@ckeditor/ckeditor5-track-changes 47.6.0-alpha.0 → 47.6.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +26 -26
  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 _0x2e7cb8,Plugin as _0x2aad9b,PendingActions as _0x95103c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2d7a4f,ObservableMixin as _0x3889c4,uid as _0xcdc81a,priorities as _0x525aa5,insertToPriorityArray as _0x3b470e,logWarning as _0x48198a,getEnvKeystrokeText as _0x2f6cfe,FocusTracker as _0x226a80,KeystrokeHandler as _0x3d6b21,Collection as _0x17d437}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xe4c893,IconCancel as _0x2cea36,IconTrackChanges as _0xabbb9c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x239a39,View as _0x29247f,ViewCollection as _0x24f11e,FocusCycler as _0x47c3bb,UIModel as _0x49dbe1,createDropdown as _0x556741,SplitButtonView as _0x3130d9,addListToDropdown as _0x297eb3,MenuBarMenuView as _0xa8c3c7,MenuBarMenuListView as _0x23851b,ListSeparatorView as _0x105dcd,MenuBarMenuListItemView as _0x1f9b8e,MenuBarMenuListItemButtonView as _0x405ee6,BodyCollection as _0x4788c2,Dialog as _0x470eaf}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x5d38f7,Users as _0x298dab,DocumentCompare as _0x4857f0,fixElementSuggestionRange as _0x3aaf40,hashObject as _0x420935,splitSuggestionMarkerName as _0x6e25cf,surroundingMarkersDetector as _0x776b21,FOCUS_ANNOTATION_KEYSTROKE as _0xc97117,AriaDescriptionView as _0x30bba4,setupThreadKeyboardNavigation as _0x347dc5,trimHtml as _0x490248,UserView as _0x2de657,LateFocusButtonView as _0x3c9ba0,getDateTimeFormatter as _0x33bba7,getAllMarkersDomElementsSorted as _0x498b3a,sanitizeEditorConfig as _0x32a30e}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x177ed1,ModelLiveRange as _0x4c3029,ModelLivePosition as _0x224583,ViewDowncastWriter as _0x3df5fb}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x2781f8,set as _0x425406,isEqual as _0x20d232,unset as _0x55e2d1,omit as Jt}from'es-toolkit/compat';import{Delete as _0x11609b,Input as _0x5ad772}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2d2874}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x708d7f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x2e7cb8{['_enabledCommands'];constructor(_0x40bfff,_0x24a907){super(_0x40bfff),this['_enabledCommands']=_0x24a907,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 _0x474a18 of this['editor']['commands']['commands']())_0x474a18['affectsData']&&!this['_enabledCommands']['has'](_0x474a18)&&_0x474a18['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5956a4 of this['editor']['commands']['commands']())_0x5956a4['affectsData']&&!this['_enabledCommands']['has'](_0x5956a4)&&_0x5956a4['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x2e7cb8{['_suggestions'];constructor(_0x59ba9e,_0x4d85d4){super(_0x59ba9e),this['_suggestions']=_0x4d85d4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x16de2a){const _0x224d94=this['_suggestions']['get'](_0x16de2a);if(!_0x224d94)throw new _0x2d7a4f('track-changes-accept-suggestion-not-found',this);const _0x29eef8=_0x224d94['getRanges']();this['editor']['model']['canEditAt'](_0x29eef8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x224d94);}}class x extends _0x2e7cb8{['_suggestions'];constructor(_0x54465b,_0x236482){super(_0x54465b),this['_suggestions']=_0x236482,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1c220d){const _0x2482a4=this['_suggestions']['get'](_0x1c220d);if(!_0x2482a4)throw new _0x2d7a4f('track-changes-discard-suggestion-not-found',this);const _0xc4603b=_0x2482a4['getRanges']();this['editor']['model']['canEditAt'](_0xc4603b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2482a4);}}function ls(_0xe5e91b,_0x4eda96){let _0x2d661a='';return _0x2d661a+=_0xe5e91b['split']('*')['map']((_0x55feb3,_0x6dbc40)=>_0x6dbc40%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x55feb3)+'</span>':rn(_0x55feb3))['join'](''),_0x4eda96&&(_0x2d661a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4eda96['value']+'\x22\x20title=\x22'+_0x4eda96['title']+'\x22></span>'),_0x2d661a;}function rn(_0x137660){const _0x2d4bc7=document['createElement']('span');return _0x2d4bc7['innerText']=_0x137660,_0x2d4bc7['innerHTML'];}function ts(_0x55157b){return _0x55157b['sort']((_0x1062d2,_0x4d008e)=>'attribute'===_0x1062d2['type']&&'attribute'!==_0x4d008e['type']?-0x1:'attribute'!==_0x1062d2['type']&&'attribute'===_0x4d008e['type']?0x1:'deletion'==_0x1062d2['type']&&'deletion'!=_0x4d008e['type']?-0x1:'deletion'!=_0x1062d2['type']&&'deletion'==_0x4d008e['type']?0x1:0x0);}function to(_0x5968fa,_0x5af084){let _0x41311f,_0x18637e=0x0;const _0xff7b59=[],_0x3c9692=_0x5af084['schema'];for(;_0x18637e<_0x5968fa['length'];){const _0x52acde=_0x5968fa[_0x18637e],_0x590ab9=_0x5968fa[_0x18637e+0x1];_0x41311f||(_0x41311f=_0x5af084['createPositionBefore'](_0x52acde)),cn(_0x5af084,_0x52acde,_0x590ab9)||(_0xff7b59['push'](_0x5af084['createRange'](_0x41311f,_0x3c9692['isObject'](_0x52acde)?_0x5af084['createPositionAfter'](_0x52acde):_0x5af084['createPositionAt'](_0x52acde,'end'))),_0x41311f=null),_0x18637e++;}return _0xff7b59;}function cn(_0x4010a9,_0x16ca23,_0x4ff31f){if(!_0x4ff31f)return!0x1;const _0x50696c=_0x4010a9['createPositionAfter'](_0x16ca23),_0x3e15b4=_0x4010a9['createPositionBefore'](_0x4ff31f);return _0x50696c['isTouching'](_0x3e15b4);}function rs(_0x1f13dd,_0x765b51,_0x533ade){for(;_0x533ade['length'];){const _0x1cb08f=_0x533ade['splice'](0x0,0x64);_0x1f13dd['change'](()=>{for(const _0x4d89de of _0x1cb08f)_0x4d89de['isInContent']&&_0x765b51['execute'](_0x4d89de['id']);});}}class M extends _0x2e7cb8{['_command'];['_suggestions'];constructor(_0x3a5e80,_0x2a372a,_0x304504){super(_0x3a5e80),this['_command']=_0x2a372a,this['_suggestions']=_0x304504,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x112351=Array['from'](this['_suggestions']['values']())['some'](_0x2a2161=>_0x2a2161['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x112351;}['execute'](){const _0x55d48b=ts(Array['from'](this['_suggestions']['values']()));for(const _0x5ee981 of _0x55d48b){const _0x4aa35d=_0x5ee981['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4aa35d))return;}rs(this['editor']['model'],this['_command'],_0x55d48b);}}class R extends _0x2e7cb8{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4038be,_0x3dc32a,_0xc6f0bb){super(_0x4038be),this['_command']=_0x3dc32a,this['_suggestions']=_0xc6f0bb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x377742=this['editor']['model']['document']['selection'],_0x4e9399=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4f2b3e,_0x38c5aa){const _0x184f29=Array['from'](_0x4f2b3e['getRanges']()),_0x409391=new Set();for(const _0x3bdf45 of _0x38c5aa)if(_0x3bdf45['isInContent']){for(const _0x1f7ac3 of _0x184f29)for(const _0x269bf9 of _0x3bdf45['getRanges']())(_0x1f7ac3['isIntersecting'](_0x269bf9)||_0x4f2b3e['isCollapsed']&&!_0x3bdf45['isMultiRange']&&_0x3bdf45['next']&&_0x269bf9['end']['isTouching'](_0x1f7ac3['start']))&&_0x409391['add'](_0x3bdf45);}return _0x409391;}(_0x377742,_0x4e9399),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x44d298=ts(Array['from'](this['_selectedSuggestions']));for(const _0x229747 of _0x44d298){const _0x439b51=_0x229747['getRanges']();if(!this['editor']['model']['canEditAt'](_0x439b51))return;}rs(this['editor']['model'],this['_command'],_0x44d298);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x3889c4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4c110c,_0x57d890){super(),this['id']=_0x57d890['id'],this['type']=_0x57d890['type'],this['subType']=_0x57d890['subType']||null,this['author']=_0x57d890['author'],this['creator']=_0x57d890['creator']||_0x57d890['author'],this['isExternal']=Boolean(_0x57d890['attributes']&&_0x57d890['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x57d890['originalSuggestionId']||null,this['_model']=_0x4c110c,this['_onAccept']=_0x57d890['onAccept'],this['_onDiscard']=_0x57d890['onDiscard'],this['_onAttributesChange']=_0x57d890['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x57d890['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 _0x14b0b5=this;for(;_0x14b0b5['previous'];)_0x14b0b5=_0x14b0b5['previous'];return _0x14b0b5;}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'](_0x2f215f){this['_markerNames']['add'](_0x2f215f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x23e58d=>this['_model']['markers']['get'](_0x23e58d))['filter'](_0x1d803b=>_0x1d803b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x166c2a=>{for(const _0x107dea of this['getMarkers']())_0x166c2a['removeMarker'](_0x107dea);}),this['_markerNames']['clear']();}['removeMarker'](_0x10b600){this['_model']['change'](_0xd4241b=>{_0xd4241b['removeMarker'](_0x10b600);}),this['_markerNames']['delete'](_0x10b600);}['addRange'](_0x2353c2){const _0x50a8b1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x50a8b1),this['_model']['change'](_0x26c4d0=>{_0x26c4d0['addMarker'](_0x50a8b1,{'range':_0x2353c2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x463300){for(const _0x4f0cfc of this['getRanges']())if(_0x4f0cfc['isIntersecting'](_0x463300))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x25706c=>_0x25706c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3359c6,_0x14742b)=>[..._0x3359c6,..._0x14742b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x13acfb=this['getRanges']();if(0x1!=_0x13acfb['length'])return null;const _0x43ab45=_0x13acfb[0x0],_0x1063f4=_0x43ab45['start']['nodeAfter'],_0x49c87e=_0x43ab45['end']['nodeBefore'];return _0x1063f4 instanceof _0x177ed1?_0x1063f4!=_0x49c87e?null:_0x1063f4: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 _0x36d304=[];let _0x2ce11c=this['head'];for(;_0x2ce11c;)_0x36d304['push'](_0x2ce11c),_0x2ce11c=_0x2ce11c['next'];return _0x36d304;}['setAttribute'](_0x81bfec,_0x472a44){const _0x599220=_0x2781f8(this['attributes']);_0x425406(_0x599220,_0x81bfec,_0x472a44),_0x20d232(_0x599220,this['attributes'])||(this['attributes']=_0x599220,this['_onAttributesChange'](_0x599220));}['removeAttribute'](_0x8d2cca){const _0x173164=_0x2781f8(this['attributes']);_0x55e2d1(_0x173164,_0x8d2cca),_0x20d232(_0x173164,this['attributes'])||(this['attributes']=_0x173164,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 _0xcdc81a()['substr'](0x1,0x5);}}function o(_0x4c20cb,_0x448000,_0x387068){const _0x3ac30c=_0x4c20cb['t'],t=_0x4c20cb['t'];switch(_0x448000){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',_0x387068);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x387068);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x387068);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x387068);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x387068);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',_0x387068);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x387068);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',_0x387068);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x387068);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x387068);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x387068);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x387068);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x387068);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x387068);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x387068);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x387068);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x387068);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x387068);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x387068);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x387068);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x387068);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x387068);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x387068);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x387068);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x387068);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'},_0x387068);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x387068);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x387068);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x387068);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x387068);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x387068);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x387068);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x387068);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'},_0x387068);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x387068);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x387068);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x387068);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x387068);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x387068);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x387068);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'},_0x387068);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_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});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'},_0x387068);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x387068);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'},_0x387068);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x387068);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'},_0x387068);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x387068);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x387068);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x387068);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x387068);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x387068);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'},_0x387068);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x387068);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 _0x3ac30c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x387068);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3ac30c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x387068);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x387068);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'},_0x387068);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'},_0x387068);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'},_0x387068);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x448000;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x211a1e,_0x187c88){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x211a1e,this['_locale']=_0x187c88;}['getDescriptions'](_0x4a1b75){const _0x6c2e84=[],_0xba634b=new Set(),_0xb994d7=new Set();for(let _0x3fd9bb=0x0;_0x3fd9bb<_0x4a1b75['length'];_0x3fd9bb++){const _0x46560c=_0x4a1b75[_0x3fd9bb];if(!_0x46560c['isInContent'])continue;const _0x459b99=this['_handleCustomCallbackDescription'](_0x46560c);if(_0x459b99){if(null!=_0x46560c['subType']){if(_0xba634b['has'](_0x46560c['subType']))continue;_0xba634b['add'](_0x46560c['subType']);}_0x6c2e84['push'](_0x459b99);}else{if('attribute'==_0x46560c['type']){const _0x5be901=_0x46560c['data']['key'];if(_0xb994d7['has'](_0x5be901))continue;_0xb994d7['add'](_0x46560c['data']['key']),_0x5be901==m?this['_handleRenameSuggestionDescription'](_0x6c2e84,_0x46560c):this['_handleAttributeSuggestionDescription'](_0x6c2e84,_0x46560c);continue;}'insertion'!=_0x46560c['type']&&'deletion'!=_0x46560c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x6c2e84,_0x46560c,_0x4a1b75[_0x3fd9bb+0x1]);}}return this['_resolveDescriptionItems'](_0x6c2e84);}['registerDescriptionCallback'](_0x4d0a24){this['_customCallbacks']['push'](_0x4d0a24);}['registerElementLabel'](_0x505825,_0x28a975,_0x581018=_0x525aa5['normal']){'function'==typeof _0x505825?_0x3b470e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x505825,'label':_0x28a975,'priority':_0x581018}):this['_itemLabels']['set'](_0x505825,_0x28a975);}['registerAttributeLabel'](_0x53a288,_0x12a28e){this['_attributeLabels']['set'](_0x53a288,_0x12a28e);}['getItemLabel'](_0x4db7a4,_0xdcf601=0x1){let _0x40db22;for(const _0x3de01f of this['_itemLabelsCallbacks'])if(_0x3de01f['matchingCallback'](_0x4db7a4)){_0x40db22=_0x3de01f['label'];break;}return _0x40db22||(_0x40db22=this['_itemLabels']['get'](_0x4db7a4['name'])),_0x40db22?_0x40db22(_0xdcf601):0x1!==_0xdcf601?_0xdcf601+'\x20'+_0x4db7a4['name']+'s':''+_0x4db7a4['name'];}['_addDescriptionItems'](_0x4c7b4c,_0x494cd4){const _0x405cc8=_0x494cd4['getFirstRange']()['getWalker'](),_0x1f94e8='insertion'==_0x494cd4['type']?'add':'remove';for(const _0x3da31d of _0x405cc8){const _0x59cd86=_0x3da31d['item'],_0x420c9c=_0x4c7b4c[_0x4c7b4c['length']-0x1];if(_0x59cd86['is']('$textProxy'))_0x420c9c&&_0x420c9c['type']['indexOf']('Container')>-0x1&&_0x4c7b4c['pop'](),_0x420c9c&&'text'==_0x420c9c['type']?_0x420c9c[_0x1f94e8]+=_0x59cd86['data']:_0x4c7b4c['push']({'type':'text','add':'add'==_0x1f94e8?_0x59cd86['data']:'','remove':'remove'==_0x1f94e8?_0x59cd86['data']:''});else{if(this['_schema']['isObject'](_0x59cd86)){const _0x2c3ac7=_0x59cd86;if(_0x420c9c&&_0x420c9c['type']['indexOf']('Container')>-0x1&&_0x4c7b4c['pop'](),'elementEnd'==_0x3da31d['type'])continue;_0x420c9c&&_0x420c9c['type']==_0x1f94e8+'Object'&&_0x420c9c['element']['name']==_0x2c3ac7['name']?_0x420c9c['quantity']++:_0x4c7b4c['push']({'type':_0x1f94e8+'Object','element':_0x2c3ac7,'quantity':0x1}),_0x405cc8['skip'](_0x2fc02c=>!('elementEnd'==_0x2fc02c['type']&&_0x2fc02c['item']==_0x59cd86));}else{if(this['_schema']['checkChild'](_0x59cd86,'$text')||_0x59cd86['is']('element','softBreak')){const _0x303c10=_0x59cd86;if('add'==_0x1f94e8&&'elementStart'==_0x3da31d['type']||'remove'==_0x1f94e8&&'elementEnd'==_0x3da31d['type'])continue;if(_0x420c9c&&-0x1==_0x420c9c['type']['indexOf']('Container')){'text'==_0x420c9c['type']&&(_0x420c9c[_0x1f94e8]+='\x0a');continue;}let _0x21b223;if(_0x21b223='add'==_0x1f94e8?_0x303c10['nextSibling']&&!this['_schema']['isObject'](_0x303c10['nextSibling'])?_0x303c10['nextSibling']:null:_0x303c10['previousSibling']&&!this['_schema']['isObject'](_0x303c10['previousSibling'])?_0x303c10['previousSibling']:null,_0x303c10['isEmpty']||_0x21b223&&_0x21b223['isEmpty']){const _0x2cc702=_0x21b223&&_0x21b223['isEmpty']?_0x21b223:_0x303c10;_0x420c9c&&_0x420c9c['type']==_0x1f94e8+'EmptyContainer'&&_0x420c9c['element']['name']==_0x2cc702['name']?_0x420c9c['quantity']++:_0x4c7b4c['push']({'type':_0x1f94e8+'EmptyContainer','element':_0x2cc702,'quantity':0x1});}else _0x4c7b4c['push']({'type':_0x1f94e8+'Container','element':_0x303c10});}}}}}['_resolveDescriptionItems'](_0x52fbdb){const _0x39b851=this['_locale'],_0x1939c0=[],_0x521b5a=[],_0x1ecd6d=[];for(const _0x3ad024 of _0x52fbdb)switch(_0x3ad024['type']){case'text':if(_0x3ad024['add']=_0x3ad024['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3ad024['remove']=_0x3ad024['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3ad024['add']&&''!=_0x3ad024['remove']){_0x1939c0['push']({'type':'replace','content':o(_0x39b851,'REPLACE_TEXT',['\x22'+_0x3ad024['remove']+'\x22','\x22'+_0x3ad024['add']+'\x22'])});continue;}if(null!=_0x3ad024['add']['match'](/^ +$/)){_0x1939c0['push']({'type':'insertion','content':o(_0x39b851,'*Insert:*\x20%0',o(_0x39b851,'ELEMENT_SPACE',_0x3ad024['add']['length']))});continue;}if(null!=_0x3ad024['remove']['match'](/^ +$/)){_0x1939c0['push']({'type':'deletion','content':o(_0x39b851,'*Remove:*\x20%0',o(_0x39b851,'ELEMENT_SPACE',_0x3ad024['remove']['length']))});continue;}if(''!=_0x3ad024['add']){_0x1939c0['push']({'type':'insertion','content':o(_0x39b851,'*Insert:*\x20%0','\x22'+_0x3ad024['add']+'\x22')});continue;}_0x1939c0['push']({'type':'deletion','content':o(_0x39b851,'*Remove:*\x20%0','\x22'+_0x3ad024['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1939c0['push']({'type':'insertion','content':o(_0x39b851,'*Insert:*\x20%0',this['getItemLabel'](_0x3ad024['element'],_0x3ad024['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1939c0['push']({'type':'deletion','content':o(_0x39b851,'*Remove:*\x20%0',this['getItemLabel'](_0x3ad024['element'],_0x3ad024['quantity']))});continue;case'addContainer':_0x1939c0['push']({'type':'insertion','content':o(_0x39b851,'*Split:*\x20%0',this['getItemLabel'](_0x3ad024['element'],_0x3ad024['quantity']))});continue;case'removeContainer':_0x1939c0['push']({'type':'deletion','content':o(_0x39b851,'*Merge:*\x20%0',this['getItemLabel'](_0x3ad024['element'],_0x3ad024['quantity']))});continue;case'addFormat':_0x521b5a['push'](_0x3ad024['key']);continue;case'removeFormat':_0x1ecd6d['push'](_0x3ad024['key']);continue;default:_0x1939c0['push'](_0x3ad024);}if(_0x521b5a['length']){const _0x5a7266=_0x521b5a['map'](_0x158c4e=>this['_attributeLabels']['has'](_0x158c4e)?this['_attributeLabels']['get'](_0x158c4e):_0x158c4e)['join'](',\x20');_0x1939c0['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5a7266)});}if(_0x1ecd6d['length']){const _0x577ba7=_0x1ecd6d['map'](_0x1f12c0=>this['_attributeLabels']['has'](_0x1f12c0)?this['_attributeLabels']['get'](_0x1f12c0):_0x1f12c0)['join'](',\x20');_0x1939c0['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x577ba7)});}return _0x1939c0;}['_handleCustomCallbackDescription'](_0x11b07b){for(const _0x1d7bc9 of this['_customCallbacks']){const _0x5ecb0d=_0x1d7bc9(_0x11b07b);if(_0x5ecb0d&&'type'in _0x5ecb0d)return _0x5ecb0d;}}['_handleAttributeSuggestionDescription'](_0x2cc213,_0x2c6906){const _0x32714d=_0x2c6906['data'],_0x274fbc=void 0x0===_0x32714d['newValue']?'removeFormat':'addFormat';_0x2cc213['push']({'type':_0x274fbc,'key':_0x32714d['key']});}['_handleRenameSuggestionDescription'](_0x5e71a9,_0xad04f9){_0x5e71a9['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xad04f9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2079e6,_0x3b7708,_0x59e31d){if(this['_addDescriptionItems'](_0x2079e6,_0x3b7708),_0x59e31d&&_0x59e31d['getFirstRange']()&&!_0x3b7708['getFirstRange']()['end']['isEqual'](_0x59e31d['getFirstRange']()['start'])){const _0x2c0f6a=_0x2079e6[_0x2079e6['length']-0x1],_0xb37046='insertion'==_0x3b7708['type']?'add':'remove';_0x2c0f6a&&'text'==_0x2c0f6a['type']&&(_0x2c0f6a[_0xb37046]+='\x0a');}}}class U extends _0x2aad9b{['afterInit'](){const _0x14d27f=this['editor'],_0x1549be=_0x14d27f['plugins']['get']('TrackChangesEditing');_0x14d27f['commands']['get']('showAIAssistant')&&_0x1549be['enableCommand']('showAIAssistant');}}class V extends _0x2aad9b{['afterInit'](){const _0x3084f4=this['editor'],_0x17ebb4=_0x3084f4['plugins']['get']('TrackChangesEditing');_0x3084f4['commands']['get']('toggleAi')&&_0x17ebb4['enableCommand']('toggleAi');}}class F extends _0x2aad9b{['afterInit'](){const _0x573c61=this['editor'],_0x19c6ce=_0x573c61['plugins']['get']('TrackChangesEditing');_0x573c61['commands']['get']('aiQuickAction')&&_0x19c6ce['enableCommand']('aiQuickAction');}}class G extends _0x2aad9b{['afterInit'](){const _0x213791=this['editor'],_0x11eccb=_0x213791['locale'];if(!_0x213791['plugins']['has']('AlignmentEditing'))return;const _0x49538c=_0x213791['plugins']['get']('TrackChangesEditing');_0x49538c['enableDefaultAttributesIntegration']('alignment'),_0x49538c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x11eccb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33b9d9=this['editor'],_0x3d9545=_0x33b9d9['locale'];_0x33b9d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22ae9d=>{if('formatBlock'!=_0x22ae9d['type'])return;const {data:_0x1f8a99}=_0x22ae9d;if(_0x1f8a99&&'alignment'==_0x1f8a99['commandName']){const _0x4b3140=_0x1f8a99['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3d9545,'*Format:*\x20%0',function(_0x11e5b0){switch(_0x11e5b0){case'left':return o(_0x3d9545,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3d9545,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3d9545,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3d9545,'FORMAT_JUSTIFY_TEXT');}}(_0x4b3140))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x2aad9b{['afterInit'](){const _0x2f2833=this['editor'],_0x1ff79d=_0x2f2833['plugins']['get']('TrackChangesEditing'),_0x127d57=_0x2f2833['locale'];for(const _0x5837e5 of ti){if(!_0x2f2833['plugins']['has'](_0x5837e5))continue;const _0x41cdc4=_0x5837e5['slice'](0x0,-0x7)['toLowerCase'](),_0x4d5596='FORMAT_'+_0x41cdc4['toUpperCase']();_0x1ff79d['enableDefaultAttributesIntegration'](_0x41cdc4),_0x1ff79d['descriptionFactory']['registerAttributeLabel'](_0x41cdc4,o(_0x127d57,_0x4d5596));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcedbda=this['editor'],_0x32805d=_0xcedbda['locale'],_0x2a6256=_0xcedbda['plugins']['get']('TrackChangesEditing');function _0x905f74(_0x14ab9f,_0x49e1b6){_0x2a6256['descriptionFactory']['registerDescriptionCallback'](_0x1525f0=>{if('formatInline'!=_0x1525f0['type'])return;const {data:_0x2372b0}=_0x1525f0;return _0x2372b0&&_0x2372b0['commandName']===_0x14ab9f?_0x2372b0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32805d,'*Format:*\x20%0',_0x49e1b6)}:{'type':'format','content':o(_0x32805d,'*Remove\x20format:*\x20%0',_0x49e1b6)}:void 0x0;});}_0x905f74('bold',o(_0x32805d,'FORMAT_BOLD')),_0x905f74('italic',o(_0x32805d,'FORMAT_ITALIC')),_0x905f74('underline',o(_0x32805d,'FORMAT_UNDERLINE')),_0x905f74('code',o(_0x32805d,'FORMAT_CODE')),_0x905f74('strikethrough',o(_0x32805d,'FORMAT_STRIKETHROUGH')),_0x905f74('subscript',o(_0x32805d,'FORMAT_SUBSCRIPT')),_0x905f74('superscript',o(_0x32805d,'FORMAT_SUPERSCRIPT'));}}class J extends _0x2aad9b{['afterInit'](){const _0x510ff1=this['editor'],_0x1d56d8=_0x510ff1['locale'];if(!_0x510ff1['plugins']['has']('BlockQuoteEditing'))return;const _0x2194f5=_0x510ff1['plugins']['get']('TrackChangesEditing'),_0x2d2efc=this['editor']['commands']['get']('blockQuote');_0x2194f5['enableCommand']('blockQuote',(_0x417d59,_0x59e7be={})=>{const _0xb80f40=this['editor']['model']['document']['selection'],_0x4ff2be=_0x59e7be&&void 0x0!==_0x59e7be['forceValue']?_0x59e7be['forceValue']:!_0x2d2efc['value'];let _0x32ed6b=[];if(_0x4ff2be){const _0x216b9a=Array['from'](_0xb80f40['getSelectedBlocks']())['filter'](_0x1a6199=>oo(_0x1a6199)||function(_0x3d54e0,_0x318487){const _0x1e0b25=_0x318487['checkChild'](_0x3d54e0['parent'],'blockQuote'),_0x387fb8=_0x318487['checkChild'](['$root','blockQuote'],_0x3d54e0);return _0x1e0b25&&_0x387fb8;}(_0x1a6199,this['editor']['model']['schema']));_0x32ed6b=to(_0x216b9a,_0x510ff1['model']);}else{const _0x560e08=Array['from'](_0xb80f40['getSelectedBlocks']())['filter'](_0x166427=>oo(_0x166427));_0x32ed6b=to(_0x560e08,_0x510ff1['model']);}_0x510ff1['model']['change'](()=>{for(const _0x51e76b of _0x32ed6b)_0x2194f5['markBlockFormat'](_0x51e76b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4ff2be}]});});}),_0x2194f5['descriptionFactory']['registerDescriptionCallback'](_0x527330=>{const {data:_0x1e290e}=_0x527330;if(_0x1e290e&&'blockQuote'==_0x1e290e['commandName']){const _0x48b13c=o(_0x1d56d8,'ELEMENT_BLOCK_QUOTE');return _0x1e290e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d56d8,'*Set\x20format:*\x20%0',_0x48b13c)}:{'type':'format','content':o(_0x1d56d8,'*Remove\x20format:*\x20%0',_0x48b13c)};}});}}function oo(_0x1aed47){return'blockQuote'==_0x1aed47['parent']['name'];}class q extends _0x2aad9b{['afterInit'](){const _0x349756=this['editor'],_0x572134=_0x349756['locale'],_0x2b8ce5=_0x349756['plugins']['get']('TrackChangesEditing');_0x349756['plugins']['has']('BookmarkEditing')&&(_0x2b8ce5['enableCommand']('insertBookmark'),_0x2b8ce5['enableDefaultAttributesIntegration']('updateBookmark'),_0x2b8ce5['descriptionFactory']['registerDescriptionCallback'](_0x2c14c8=>{if('insertion'!=_0x2c14c8['type']&&'deletion'!=_0x2c14c8['type']&&'attribute'!=_0x2c14c8['type'])return;const _0x4d5924=_0x2c14c8['getContainedElement']();if(null==_0x4d5924)return;if(!_0x4d5924['is']('element','bookmark'))return;const _0x4aa9e7=_0x4d5924['getAttribute']('bookmarkId');if('insertion'==_0x2c14c8['type'])return{'type':'insertion','content':o(_0x572134,'*Insert:*\x20%0','\x22'+_0x4aa9e7+'\x22\x20'+o(_0x572134,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2c14c8['type'])return{'type':'deletion','content':o(_0x572134,'*Remove:*\x20%0','\x22'+_0x4aa9e7+'\x22\x20'+o(_0x572134,'ELEMENT_BOOKMARK'))};const {data:_0x2a5742}=_0x2c14c8;if(!_0x2a5742||'bookmarkId'!=_0x2a5742['key'])return;return{'type':'format','content':o(_0x572134,'*Set\x20bookmark:*\x20%0','\x22'+_0x2a5742['newValue']+'\x22')};}));}}class z extends _0x2aad9b{['afterInit'](){const _0x3dd978=this['editor'];_0x3dd978['plugins']['has']('CaseChange')&&(_0x3dd978['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3dd978['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3dd978['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x2aad9b{['afterInit'](){const _0x5ecb3e=this['editor'];_0x5ecb3e['commands']['get']('ckbox')&&_0x5ecb3e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x2aad9b{['afterInit'](){const _0x445d89=this['editor'];if(!_0x445d89['plugins']['has']('CodeBlock'))return;const _0x2df7db=_0x445d89['plugins']['get']('TrackChangesEditing'),_0x3f14c1=_0x445d89['locale'],_0x3f72db=_0x445d89['config']['get']('codeBlock')['languages'],_0x2d4b18=_0x445d89['commands']['get']('codeBlock');_0x2df7db['enableCommand']('indentCodeBlock'),_0x2df7db['enableCommand']('outdentCodeBlock'),_0x2df7db['enableCommand']('codeBlock',(_0x34b277,_0x571bd7={})=>{const _0x34e75d=_0x445d89['model'],_0x4bb002=_0x445d89['model']['document']['selection'],_0x5d0ebe=_0x571bd7&&void 0x0!==_0x571bd7['forceValue']?_0x571bd7['forceValue']:!_0x2d4b18['value'];let _0x3b50b5;_0x571bd7['language']||(_0x571bd7['language']=_0x3f72db[0x0]['language']),_0x3b50b5=_0x5d0ebe?Array['from'](_0x4bb002['getSelectedBlocks']())['filter'](_0x28c7c7=>co(_0x28c7c7)||function(_0x1a2d9e,_0x235f50){if(_0x1a2d9e['is']('rootElement')||_0x235f50['isLimit'](_0x1a2d9e))return!0x1;return _0x235f50['checkChild'](_0x1a2d9e['parent'],'codeBlock');}(_0x28c7c7,_0x34e75d['schema'])):Array['from'](_0x4bb002['getSelectedBlocks']())['filter'](_0x463a00=>co(_0x463a00));const _0x2dd87a=to(_0x3b50b5,_0x34e75d);_0x34e75d['change'](()=>{for(const _0x11f27d of _0x2dd87a)_0x2df7db['markBlockFormat'](_0x11f27d,{'commandName':'codeBlock','commandParams':[{..._0x571bd7,'forceValue':_0x5d0ebe}],'formatGroupId':'blockName'});});}),(_0x2df7db['descriptionFactory']['registerElementLabel']('codeBlock',_0x17c739=>o(_0x3f14c1,'ELEMENT_CODE_BLOCK',_0x17c739)),_0x2df7db['descriptionFactory']['registerDescriptionCallback'](_0x1bf786=>{if('formatBlock'!=_0x1bf786['type'])return;const _0x4b5d3c=_0x3f14c1['t'],{data:_0x25ada6}=_0x1bf786;if(!_0x25ada6||'codeBlock'!=_0x25ada6['commandName'])return;const _0x3951b2=_0x25ada6['commandParams'][0x0]['language'],_0x247d52=_0x4b5d3c(_0x3f72db['find'](_0x1e3121=>_0x1e3121['language']===_0x3951b2)['label'])['toLowerCase']();return _0x25ada6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f14c1,'*Set\x20format:*\x20%0',o(_0x3f14c1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x247d52+')')}:{'type':'format','content':o(_0x3f14c1,'*Remove\x20format:*\x20%0',o(_0x3f14c1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x591869){return'codeBlock'==_0x591869['name'];}class H extends _0x2aad9b{['afterInit'](){const _0xc35f8c=this['editor'];if(!_0xc35f8c['plugins']['has']('CommentsEditing'))return;_0xc35f8c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x2aad9b{static get['requires'](){return[_0x11609b];}['init'](){const _0x1c5107=this['editor'],_0x584658=_0x1c5107['plugins']['get']('TrackChangesEditing');_0x584658['enableCommand']('delete');const _0x299e68=_0x1c5107['commands']['get']('deleteForward');_0x584658['enableCommand']('deleteForward',(_0x266c7,_0x51cc3f={})=>{const _0x273961=_0x1c5107['model']['createSelection'](_0x1c5107['model']['document']['selection']);_0x273961['isCollapsed']&&_0x1c5107['model']['modifySelection'](_0x273961,{'direction':'forward','unit':_0x51cc3f['unit']});const _0x558af5=_0x273961['getFirstRange'](),_0x5d82cf=_0x4c3029['fromRange'](_0x558af5);let _0x4e6685;_0x266c7(_0x51cc3f),_0x4e6685='$graveyard'==_0x5d82cf['root']['rootName']?_0x1c5107['model']['createRange'](_0x558af5['start']):_0x1c5107['model']['createRange'](_0x5d82cf['start'],_0x5d82cf['end']),_0x5d82cf['detach'](),_0x1c5107['model']['enqueueChange'](_0x299e68['buffer']['batch'],_0x249d82=>{_0x299e68['buffer']['lock'](),_0x249d82['setSelection'](_0x249d82['createRange'](_0x4e6685['end'])),_0x299e68['buffer']['unlock']();});});}}class X extends _0x2aad9b{['afterInit'](){const _0xffdc36=this['editor'];if(!_0xffdc36['plugins']['has']('ListEditing'))return;const _0x967ec3=_0xffdc36['locale'],_0x531196=_0xffdc36['plugins']['get']('TrackChangesEditing'),_0x2ae421=_0xffdc36['plugins']['has']('TodoListEditing'),_0x2afec6=!!_0xffdc36['config']['get']('list.multiBlock');function _0x581817(_0x1bcaba){return{'type':'format','content':''+o(_0x967ec3,'*Set\x20format:*\x20%0',_0x1bcaba)};}function _0x554c06(_0x22ab99){return{'type':'format','content':''+o(_0x967ec3,'*Remove\x20format:*\x20%0',_0x22ab99)};}_0x531196['enableDefaultAttributesIntegration']('numberedList'),_0x531196['enableDefaultAttributesIntegration']('bulletedList'),_0x531196['enableDefaultAttributesIntegration']('customNumberedList'),_0x531196['enableDefaultAttributesIntegration']('customBulletedList'),_0x531196['enableDefaultAttributesIntegration']('indentList'),_0x531196['enableDefaultAttributesIntegration']('outdentList'),_0x531196['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x531196['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2afec6&&(_0x531196['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x531196['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2ae421&&(_0x531196['enableDefaultAttributesIntegration']('todoList'),_0x531196['enableDefaultAttributesIntegration']('checkTodoList'),_0x531196['descriptionFactory']['registerDescriptionCallback'](_0x12cbb1=>{const {data:_0x512bbe}=_0x12cbb1;if(_0x512bbe&&'todoListChecked'==_0x512bbe['key'])return{'type':'format','content':_0x512bbe['newValue']?o(_0x967ec3,'*Check\x20item*'):o(_0x967ec3,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4fd243=>{if(_0x4fd243['batch']['isUndo'])return!0x1;let _0x4c79f6=!0x1;const _0x2d5b41=_0x531196['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19aaa3=>'todoListChecked'===_0x531196['_getAttributeKey'](_0x19aaa3));for(const _0x5c7845 of _0x2d5b41){'todo'!=_0x5c7845['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x531196['_findSuggestions'](_0x5c7845['getFirstRange'](),'attribute')['find'](_0x2226fb=>'listType'===_0x531196['_getAttributeKey'](_0x2226fb['suggestion']))||(_0x4fd243['removeMarker'](_0x5c7845['getFirstMarker']()),_0x4c79f6=!0x0));}return _0x4c79f6;})),_0x531196['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x967ec3,'FORMAT_INDENT'));const _0x18ed35={'type':'format','content':''};_0x531196['descriptionFactory']['registerDescriptionCallback'](_0x1de440=>{const {data:_0x452ae0}=_0x1de440;if(!_0x452ae0||'listType'!=_0x452ae0['key'])return;let _0x2df18b=_0x1de440['head'];for(;_0x2df18b;){if(_0x2df18b['data']&&(('listStyle'==_0x2df18b['data']['key']||'listMarkerStyle'==_0x2df18b['data']['key'])&&(_0x2df18b['data']['newValue']&&'default'!=_0x2df18b['data']['newValue']||'default'!=_0x2df18b['data']['oldValue']&&!_0x452ae0['newValue'])||!_0x2afec6&&_0x2df18b['data']['key']==m))return _0x18ed35;_0x2df18b=_0x2df18b['next'];}if(null==_0x452ae0['newValue'])switch(_0x452ae0['oldValue']){case'bulleted':return _0x554c06(o(_0x967ec3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x554c06(o(_0x967ec3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x554c06(o(_0x967ec3,'ELEMENT_TODO_LIST'));}switch(_0x452ae0['newValue']){case'bulleted':return _0x581817(o(_0x967ec3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x581817(o(_0x967ec3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x581817(o(_0x967ec3,'ELEMENT_TODO_LIST'));}}),_0x531196['descriptionFactory']['registerDescriptionCallback'](_0x4686bf=>{const {data:_0x3089ed}=_0x4686bf;if(_0x3089ed&&'listIndent'==_0x3089ed['key'])return null==_0x3089ed['newValue']||null==_0x3089ed['oldValue']&&0x0==_0x3089ed['newValue']?_0x18ed35:void 0x0;}),_0x531196['descriptionFactory']['registerDescriptionCallback'](_0x25389a=>{if('attribute'!=_0x25389a['type'])return;const {data:_0x3d4afc}=_0x25389a;if(!_0x3d4afc||'listItemId'!=_0x3d4afc['key'])return;const _0x441a59=Te(_0x25389a);return'newValue'==_0x441a59?{'type':'format','content':o(_0x967ec3,'*Merge:*\x20list\x20item')}:'oldValue'==_0x441a59?{'type':'format','content':o(_0x967ec3,'*Split:*\x20list\x20item')}:_0x18ed35;}),_0xffdc36['model']['document']['registerPostFixer'](_0xd963e9=>this['listItemIdFixer'](_0xd963e9)),_0xffdc36['model']['document']['registerPostFixer'](_0x10488a=>this['noTrackChangesFixer'](_0x10488a)),_0xffdc36['model']['document']['on']('change:data',(_0x387e1d,_0x21fed4)=>{if(_0x21fed4['isUndo']||!_0x21fed4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x27cc73){if(_0x27cc73['batch']['isUndo']||!_0x27cc73['batch']['isLocal'])return!0x1;let _0x1184f1=!0x1;const _0x5e07e4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x196280=>_0x196280['data']&&'listItemId'==_0x196280['data']['key'])['filter'](_0x1a9bb7=>_0x1a9bb7['data']['newValue']&&_0x1a9bb7['data']['oldValue']);for(const _0x35ca10 of _0x5e07e4)Te(_0x35ca10)||(_0x27cc73['removeMarker'](_0x35ca10['getFirstMarker']()),_0x1184f1=!0x0);return _0x1184f1;}['noTrackChangesFixer'](_0x298c43){if(_0x298c43['batch']['isUndo']||!_0x298c43['batch']['isLocal'])return!0x1;const _0x465e91=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x465e91['trackChangesCommand']['value'])return!0x1;let _0x13e14c=!0x1;const _0x1ecd30=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2222ef=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x9917f7=>'attribute'==_0x9917f7['type'])['filter'](_0x590cdf=>_0x1ecd30['includes'](_0x590cdf['attributeKey']));if(0x0==_0x2222ef['length'])return _0x13e14c;for(const _0x1903d0 of _0x2222ef){const _0x2eac48=_0x465e91['_findSuggestions'](_0x1903d0['range'],'attribute')['filter'](_0x292308=>!_0x292308['meta']['isNextTo'])['map'](_0x10b29f=>_0x10b29f['suggestion'])['filter'](_0xc9f29d=>{const _0x5f1767=_0x465e91['_getAttributeKey'](_0xc9f29d);return _0x1ecd30['includes'](_0x5f1767);});if(_0x2eac48['length']){for(const _0x20aecf of _0x2eac48)_0x298c43['removeMarker'](_0x20aecf['getFirstMarker']());_0x13e14c=!0x0;}}return _0x13e14c;}['assureChains'](){const _0x2ea2bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7f4241=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x31f2e7;const _0x11c2de=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b7bad=>{if(_0x5b7bad['data']['oldRange']||!_0x5b7bad['data']['newRange'])return null;if(!_0x5b7bad['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x54cf44}=_0x2ea2bc['_splitMarkerName'](_0x5b7bad['name']);if(!_0x2ea2bc['hasSuggestion'](_0x54cf44))return null;const _0x16c0f1=_0x2ea2bc['getSuggestion'](_0x54cf44);return _0x7f4241['includes'](_0x16c0f1['data']['key']);})['map'](_0x5ba9de=>{const {id:_0x585201}=_0x2ea2bc['_splitMarkerName'](_0x5ba9de['name']),_0x1bfea0=_0x2ea2bc['getSuggestion'](_0x585201);return _0x31f2e7=_0x1bfea0['attributes']['groupId'],_0x1bfea0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x11c2de['size'])return;const _0x46fb26=_0x2ea2bc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1822f7=>'attribute'==_0x1822f7['type']&&_0x1822f7['data']&&_0x7f4241['includes'](_0x1822f7['data']['key'])&&_0x1822f7['attributes']['groupId']!=_0x31f2e7)['map'](_0x263eb5=>({'listItem':_0x263eb5['getFirstRange']()['start']['nodeAfter'],'groupId':_0x263eb5['attributes']['groupId']})),_0x5e8297=new Set();for(const {groupId:_0x32a42d,listItem:_0x56c474}of _0x46fb26)_0x11c2de['has'](_0x56c474)&&_0x5e8297['add'](_0x32a42d);for(const _0x535b21 of _0x2ea2bc['getSuggestions']())_0x5e8297['has'](_0x535b21['attributes']['groupId'])&&_0x535b21['setAttribute']('groupId',_0x31f2e7);}['_supportLegacySuggestions'](){const _0x2d33e2=this['editor'],_0x4f1778=_0x2d33e2['locale'],_0x346c21=_0x2d33e2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x346c21['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x49507a,_0x48dc43){const _0x52c30e=[];for(let _0x244b8f of _0x49507a)_0x244b8f['start']['nodeAfter']===_0x244b8f['end']['parent']&&(_0x244b8f=_0x2d33e2['model']['createRange'](_0x2d33e2['model']['createPositionAt'](_0x244b8f['start']['nodeAfter'],0x0))),_0x52c30e['push'](_0x244b8f);_0x2d33e2['model']['change'](_0x2195a1=>{const _0x509666=_0x2d33e2['model']['document']['selection'],_0x494791=Array['from'](_0x509666['getRanges']())['map'](_0x5bc93b=>_0x4c3029['fromRange'](_0x5bc93b));_0x2195a1['setSelection'](_0x52c30e),_0x2d33e2['commands']['get'](_0x48dc43['commandName'])['refresh'](),_0x48dc43['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2d33e2['execute'](_0x48dc43['commandName'],..._0x48dc43['commandParams']),_0x2195a1['setSelection'](_0x494791);for(const _0x45481c of _0x494791)_0x45481c['detach']();});}),_0x346c21['descriptionFactory']['registerElementLabel'](function(_0x3b9893){const _0x78d1d1=!_0x2d33e2['model']['schema']['isObject'](_0x3b9893),_0x195945=_0x3b9893['previousSibling'],_0x464e02=_0x3b9893['nextSibling'],_0x383733=_0x3b9893['getAttribute']('listItemId'),_0x25aad9=!_0x195945||_0x195945['getAttribute']('listItemId')!==_0x383733,_0x261b57=!_0x464e02||_0x464e02['getAttribute']('listItemId')!==_0x383733;return _0x78d1d1&&Boolean(_0x383733)&&_0x25aad9&&_0x261b57;},_0x2d1b73=>o(_0x4f1778,'ELEMENT_LIST_ITEM',_0x2d1b73));}['_registerLegacyDescription'](){const _0x5d93af=this['editor'],_0x2b9469=_0x5d93af['locale'];function _0x537747(_0x188159){const _0x307148=_0x5d93af['commands']['get']('bulletedList')['value'],_0x41a710=_0x5d93af['commands']['get']('numberedList')['value'];return'numberedList'===_0x188159?_0x307148:_0x41a710;}_0x5d93af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x11d9dd){if('formatBlock'!=_0x11d9dd['type'])return;const {data:_0x5525a7}=_0x11d9dd;if(!_0x5525a7)return;let _0x2d3939,_0x19c3a1,_0x4c60f3,_0x27c116;switch(_0x5525a7['commandName']){case'bulletedList':_0x4c60f3=_0x5525a7['commandParams'][0x0]['forceValue'],_0x27c116=_0x537747(_0x5525a7['commandName']),_0x2d3939=_0x4c60f3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x27c116&&_0x5d93af['config']['get']('list.multiBlock')||(_0x2d3939='*Change\x20to:*\x20%0'),_0x19c3a1={'type':'format','content':o(_0x2b9469,_0x2d3939,o(_0x2b9469,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4c60f3=_0x5525a7['commandParams'][0x0]['forceValue'],_0x27c116=_0x537747(_0x5525a7['commandName']),_0x2d3939=_0x4c60f3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x27c116&&_0x5d93af['config']['get']('list.multiBlock')||(_0x2d3939='*Change\x20to:*\x20%0'),_0x19c3a1={'type':'format','content':o(_0x2b9469,_0x2d3939,o(_0x2b9469,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2d3939='*Indent:*\x20%0',_0x19c3a1={'type':'format','content':o(_0x2b9469,_0x2d3939,o(_0x2b9469,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2d3939=function(_0x33c241){const _0x49290c=_0x33c241['getFirstRange']();let _0x4fd154=_0x49290c['start']['nodeAfter'];for(;_0x4fd154&&_0x49290c['containsItem'](_0x4fd154);){if(_0x4fd154['getAttribute']('listIndent')>0x0)return!0x1;_0x4fd154=_0x4fd154['nextSibling'];}return!0x0;}(_0x11d9dd)?o(_0x2b9469,'*Format:*\x20remove\x20from\x20%0',o(_0x2b9469,function(_0x122aea){return'ELEMENT_'+_0x122aea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x11d9dd))):o(_0x2b9469,'*Outdent:*\x20%0',o(_0x2b9469,'ELEMENT_LIST_ITEM')),_0x19c3a1={'type':'format','content':_0x2d3939};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5525a7['multipleBlocks']&&(_0x2d3939='*Merge:*\x20%0',_0x19c3a1={'type':'deletion','content':o(_0x2b9469,_0x2d3939,o(_0x2b9469,'ELEMENT_LIST_ITEM'))});}return _0x19c3a1;});}}function Te(_0x40392d){let _0x255ef3=_0x40392d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x255ef3;){const _0x3ac198=_0x255ef3['getAttribute']('listItemId');if(!_0x3ac198)return!0x1;if(_0x3ac198==_0x40392d['data']['newValue'])return'newValue';if(_0x3ac198==_0x40392d['data']['oldValue'])return'oldValue';_0x255ef3=_0x255ef3['previousSibling'];}return!0x1;}class Y extends _0x2aad9b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x191f1c=this['editor']['config']['get']('list.properties'),_0x521fb4=this['editor']['plugins']['get']('TrackChangesEditing');_0x191f1c['styles']&&_0x521fb4['enableDefaultAttributesIntegration']('listStyle'),_0x191f1c['reversed']&&_0x521fb4['enableDefaultAttributesIntegration']('listReversed'),_0x191f1c['startIndex']&&_0x521fb4['enableDefaultAttributesIntegration']('listStart');const _0x190e26={'type':'format','content':''};_0x521fb4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2ee641=this['editor']['locale'];_0x521fb4['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2ee641,'FORMAT_LIST_REVERSED')),_0x521fb4['descriptionFactory']['registerDescriptionCallback'](_0x27b60d=>{const {data:_0x29009a}=_0x27b60d;if(_0x29009a&&'listReversed'==_0x29009a['key'])return null==_0x29009a['newValue']||0x0==_0x29009a['newValue']&&null==_0x29009a['oldValue']?_0x190e26:void 0x0;}),_0x521fb4['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2ee641,'FORMAT_LIST_START')),_0x521fb4['descriptionFactory']['registerDescriptionCallback'](_0x537441=>{const {data:_0x4599bf}=_0x537441;if(_0x4599bf&&'listStart'==_0x4599bf['key'])return null==_0x4599bf['newValue']||0x1==_0x4599bf['newValue']&&null==_0x4599bf['oldValue']?_0x190e26:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x21581b=>{if(_0x21581b['batch']['isUndo'])return!0x1;let _0x38b04a=!0x1;const _0x41049f=_0x521fb4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c11e2=>{const _0x553bd1=_0x521fb4['_getAttributeKey'](_0x2c11e2);return'listStart'==_0x553bd1||'listReversed'==_0x553bd1;});for(const _0x133a51 of _0x41049f){const _0x2e538d=_0x133a51['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2e538d||'customNumbered'==_0x2e538d)continue;_0x521fb4['_findSuggestions'](_0x133a51['getFirstRange'](),'attribute')['find'](_0x2a7dda=>'listType'==_0x521fb4['_getAttributeKey'](_0x2a7dda['suggestion']))||(_0x21581b['removeMarker'](_0x133a51['getFirstMarker']()),_0x38b04a=!0x0);}return _0x38b04a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2c1196){const _0x1d52eb=this['editor']['locale'],{data:_0x4e8cfc}=_0x2c1196,_0x7a1b2={'type':'format','content':''};if(!_0x4e8cfc||'listStyle'!=_0x4e8cfc['key'])return;if(!_0x4e8cfc['oldValue'])return'default'==_0x4e8cfc['newValue']?_0x7a1b2:{'type':'format','content':''+o(_0x1d52eb,'*Set\x20format:*\x20%0',o(_0x1d52eb,this['_getTranslationKeyForListStyle'](_0x4e8cfc['newValue'])))};if(!_0x4e8cfc['newValue']){if('default'==_0x4e8cfc['oldValue'])return _0x7a1b2;let _0x5c0372=_0x2c1196['head'];for(;_0x5c0372;){if(_0x5c0372['data']&&'listType'==_0x5c0372['data']['key']&&_0x5c0372['data']['newValue'])return _0x7a1b2;_0x5c0372=_0x5c0372['next'];}return{'type':'format','content':''+o(_0x1d52eb,'*Remove\x20format:*\x20%0',o(_0x1d52eb,this['_getTranslationKeyForListStyle'](_0x4e8cfc['oldValue'])))};}if('default'!=_0x4e8cfc['newValue'])return{'type':'format','content':''+o(_0x1d52eb,'*Set\x20format:*\x20%0',o(_0x1d52eb,this['_getTranslationKeyForListStyle'](_0x4e8cfc['newValue'])))};let _0x26db93=_0x2c1196['head'];for(;_0x26db93;){if(_0x26db93['data']&&'listType'==_0x26db93['data']['key']&&_0x26db93['data']['newValue']&&_0x26db93['data']['oldValue'])return _0x7a1b2;_0x26db93=_0x26db93['next'];}return{'type':'format','content':o(_0x1d52eb,'*Set\x20format:*\x20%0',o(_0x1d52eb,'ELEMENT_'+_0x2c1196['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x450f94=this['editor'],_0x295c33=_0x450f94['locale'];_0x450f94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bd8e7=>{if('formatBlock'!=_0x3bd8e7['type'])return;const {data:_0x499383}=_0x3bd8e7;if(!_0x499383)return;let _0x4cc2aa,_0x973e98;switch(_0x499383['commandName']){case'listStyle':_0x4cc2aa='*Change\x20to:*\x20%0',_0x973e98={'type':'format','content':o(_0x295c33,_0x4cc2aa,o(_0x295c33,this['_getTranslationKeyForListStyle'](_0x499383['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4cc2aa=_0x499383['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x973e98={'type':'format','content':o(_0x295c33,_0x4cc2aa)};break;case'listStart':_0x4cc2aa='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x973e98={'type':'format','content':o(_0x295c33,_0x4cc2aa,_0x499383['commandParams'][0x0]['startIndex'])};}return _0x973e98;});}['_getTranslationKeyForListStyle'](_0x5e8fef){return'ELEMENT_'+function(_0x2c4658){if(ye['includes'](_0x2c4658))return'bulleted';if(Se['includes'](_0x2c4658))return'numbered';return null;}(_0x5e8fef)['toUpperCase']()+'_LIST_'+_0x5e8fef['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x2aad9b{['afterInit'](){const _0x237f6d=this['editor'];_0x237f6d['commands']['get']('emoji')&&_0x237f6d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x2aad9b{static get['requires'](){return[_0x2d2874];}['init'](){const _0x29e5f0=this['editor'],_0x146e04=_0x29e5f0['plugins']['get']('TrackChangesEditing'),_0x2705c5=_0x29e5f0['commands']['get']('enter');_0x146e04['enableCommand']('enter',()=>{_0x29e5f0['model']['change'](_0x27ec9b=>{const _0xd7208f=_0x29e5f0['model']['document']['selection'],_0x329e39=_0xd7208f['getFirstPosition'](),_0xda32ae=_0x4c3029['fromRange'](_0xd7208f['getFirstRange']());if(_0x2705c5['enterBlock'](_0x27ec9b)){const _0x3491bb=_0x29e5f0['model']['createPositionAt'](_0x329e39['parent']['nextSibling'],0x0),_0x1ee507=_0x27ec9b['createRange'](_0x329e39,_0x3491bb);_0x146e04['markInsertion'](_0x1ee507);}else _0x27ec9b['setSelection'](_0x27ec9b['createRange'](_0xda32ae['end']));_0xda32ae['detach'](),_0x2705c5['fire']('afterExecute',{'writer':_0x27ec9b});});});}}class nt extends _0x2aad9b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x321d13=this['editor']['plugins']['get']('TrackChangesEditing');_0x321d13['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x321d13['enableCommand']('findNext'),_0x321d13['enableCommand']('findPrevious'),_0x321d13['enableCommand']('replace'),_0x321d13['enableCommand']('replaceAll');}['handleFindCommand'](_0x26890e,_0x108274,_0x404f3b={}){const _0x163941=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x26890e(_0x19f0c0=>{let _0x4be791=('string'==typeof _0x108274?_0x163941['findByTextCallback'](_0x108274,_0x404f3b):_0x108274)(_0x19f0c0);Array['isArray'](_0x4be791)&&(_0x4be791={'results':_0x4be791,'searchText':'string'==typeof _0x108274?_0x108274:''});const _0x45b128=_0x4be791['results']['filter'](_0x144dcf=>!0x1===this['_isInDeletionRange'](_0x144dcf,_0x19f0c0['item']));return{..._0x4be791,'results':_0x45b128};},_0x404f3b);}['_isInDeletionRange'](_0x1ab406,_0x26605c){const _0x4819bf=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26605c,_0x1ab406['start']),this['editor']['model']['createPositionAt'](_0x26605c,_0x1ab406['end']));for(const _0x4027a8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4819bf['getIntersection'](_0x4027a8['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x2aad9b{['afterInit'](){const _0x2c363d=this['editor']['locale'],_0x36ce27=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xa21732,commandName:_0x38294f}of eo)this['editor']['plugins']['has'](_0xa21732)&&_0x36ce27['enableDefaultAttributesIntegration'](_0x38294f);_0x36ce27['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2c363d,'FORMAT_FONT_SIZE')),_0x36ce27['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2c363d,'FORMAT_FONT_FAMILY')),_0x36ce27['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2c363d,'FORMAT_FONT_COLOR')),_0x36ce27['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2c363d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40606f=this['editor'],_0xa0e8d=_0x40606f['locale'];_0x40606f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x424af3=>{const _0x3a9082=_0xa0e8d['t'];if('formatInline'!=_0x424af3['type'])return;const {data:_0x545b11}=_0x424af3;if(null!=_0x545b11){if('fontSize'==_0x545b11['commandName']){const _0x370fc5=_0x545b11['commandParams'][0x0]['value'];if(_0x370fc5){const _0x28377f=_0x3a9082(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xcc9ef2=>_0xcc9ef2['model']==_0x370fc5)['title'])['toLowerCase']();return{'type':'format','content':o(_0xa0e8d,'*Set\x20font\x20size:*\x20%0',_0x28377f)};}return{'type':'format','content':o(_0xa0e8d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x545b11['commandName']){const _0x86b704=_0x545b11['commandParams'][0x0]['value'];return _0x86b704?{'type':'format','content':o(_0xa0e8d,'*Set\x20font\x20family:*\x20%0',_0x86b704)}:{'type':'format','content':o(_0xa0e8d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x545b11['commandName']){const _0x297946=_0x545b11['commandParams'][0x0]['value'];if(_0x297946){const _0x170df4=_0x239a39(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1591ae=>_0x1591ae['model']==_0x297946);let _0x4af341=_0x297946,_0x28bc96='';return _0x170df4&&(_0x4af341=_0x170df4['label'],_0x28bc96=_0x3a9082(_0x4af341)['toLowerCase']()),{'type':'format','content':o(_0xa0e8d,'*Set\x20font\x20color:*\x20%0',_0x28bc96)['trim'](),'color':{'value':_0x297946,'title':_0x28bc96||_0x4af341}};}return{'type':'format','content':o(_0xa0e8d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x545b11['commandName']){const _0x42aee5=_0x545b11['commandParams'][0x0]['value'];if(_0x42aee5){const _0x5cf5d4=_0x239a39(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x16432f=>_0x16432f['model']==_0x42aee5);let _0x5baa70=_0x42aee5,_0x257c8a='';return _0x5cf5d4&&(_0x5baa70=_0x5cf5d4['label'],_0x257c8a=_0x3a9082(_0x5baa70)['toLowerCase']()),{'type':'format','content':o(_0xa0e8d,'*Set\x20font\x20background\x20color:*\x20%0',_0x257c8a)['trim'](),'color':{'value':_0x42aee5,'title':_0x257c8a||_0x5baa70}};}return{'type':'format','content':o(_0xa0e8d,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x2aad9b{['afterInit'](){const {plugins:_0x2f66a5}=this['editor'];_0x2f66a5['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2f66a5['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x215e80,plugins:_0x5eff3f,commands:_0x1cfafc}=this['editor'],_0x25ab12=_0x5eff3f['get']('TrackChangesEditing');_0x1cfafc['get']('footnotesStyle')&&_0x25ab12['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1cfafc['get']('footnotesStart')&&_0x25ab12['enableDefaultAttributesIntegration']('footnotesStart'),_0x25ab12['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x215e80,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x25ab12['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x215e80,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x3bf887=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x40d512,commands:_0x311a1b}=this['editor'];_0x311a1b['get']('insertFootnote')&&_0x3bf887['enableCommand']('insertFootnote'),_0x3bf887['descriptionFactory']['registerElementLabel']('footnoteRef',_0x26ab7b=>o(_0x40d512,'ELEMENT_FOOTNOTE_REF',_0x26ab7b)),_0x3bf887['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x5f0c5a=>o(_0x40d512,'ELEMENT_FOOTNOTE_DEFINITION',_0x5f0c5a)),_0x3bf887['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x50e55a=>o(_0x40d512,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x50e55a));}}class st extends _0x2aad9b{['afterInit'](){const _0x2169f8=this['editor'],_0x247698=_0x2169f8['plugins']['get']('TrackChangesEditing'),_0x5b1ea2=_0x2169f8['commands']['get']('copyFormat'),_0x2c1456=_0x2169f8['commands']['get']('pasteFormat');_0x5b1ea2&&_0x2c1456&&(_0x247698['enableDefaultAttributesIntegration']('pasteFormat'),_0x247698['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xfc0a0e=this['editor'],_0x20f548=_0xfc0a0e['locale'];_0xfc0a0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x710ede=>{if('formatBlock'!=_0x710ede['type']&&'formatInline'!=_0x710ede['type'])return;const {data:_0x1678f8}=_0x710ede;if(_0x1678f8&&'pasteFormat'===_0x1678f8['commandName']){const _0xc2ea30=[],_0x5292ad=_0x1678f8['commandParams'][0x0];for(const [_0x23e64f,_0x584c68]of Object['entries'](_0x5292ad))_0xc2ea30['push'](ro(_0xfc0a0e,_0x23e64f,_0x584c68));return _0xc2ea30['length']?{'type':'format','content':o(_0x20f548,'*Set\x20format\x20to:*\x20%0',_0xc2ea30['join'](',\x20'))}:{'type':'format','content':o(_0x20f548,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x35ea54,_0x421945,_0x4d5336){const _0x52199f=_0x35ea54['locale']['t'],_0x187dd7=_0x421945['split'](/(?=[A-Z])/)['join']('\x20'),_0x415267=_0x52199f(_0x187dd7['charAt'](0x0)['toUpperCase']()+_0x187dd7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4d5336)return _0x415267;if('fontColor'===_0x421945||'fontBackgroundColor'===_0x421945){const _0x12ae29=_0x239a39(_0x35ea54['config']['get']('fontColor.colors'))['find'](_0x20a371=>_0x20a371['model']==_0x4d5336);return _0x415267+'\x20('+(_0x12ae29?_0x52199f(_0x12ae29['label'])['toLowerCase']():_0x4d5336)+')';}if('fontSize'===_0x421945&&isNaN(parseFloat(_0x4d5336))){const _0x531e4f=_0x35ea54['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x35ea54['config']['get']('fontSize.options'))['find'](_0x495ff6=>_0x495ff6['model']==_0x4d5336);return _0x415267+'\x20('+(_0x531e4f?_0x52199f(_0x531e4f['title'])['toLowerCase']():_0x4d5336)+')';}return _0x415267+'\x20('+_0x4d5336+')';}class ot extends _0x2aad9b{['_headingOptions'];['afterInit'](){const _0x154857=this['editor'];if(!_0x154857['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x154857['config']['get']('heading.options');const _0x476907=_0x154857['locale'],_0x3958c9=_0x154857['plugins']['get']('TrackChangesEditing');_0x3958c9['enableDefaultAttributesIntegration']('heading');for(const _0x80259e of this['_headingOptions'])'paragraph'!=_0x80259e['model']&&_0x3958c9['descriptionFactory']['registerElementLabel'](_0x80259e['model'],_0x30c102=>{const _0xef1f51=this['_getHeadingLevel'](_0x80259e['model']);return null!==_0xef1f51?_0x215346(_0x30c102,_0xef1f51):_0x51cfe7(_0x30c102,_0x80259e['title']);});function _0x215346(_0x24ebb5,_0x1d7450){return o(_0x476907,'ELEMENT_HEADING',[_0x24ebb5,_0x1d7450]);}function _0x51cfe7(_0x535973,_0x46ae74){return o(_0x476907,'ELEMENT_HEADING_CUSTOM',[_0x535973,_0x46ae74]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x203511=this['editor'],_0x505fb6=_0x203511['locale'];function _0x3769c0(_0x1df993,_0x5d5ded){return o(_0x505fb6,'ELEMENT_HEADING_CUSTOM',[_0x1df993,_0x5d5ded]);}_0x203511['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cd244=>{if('formatBlock'!=_0x2cd244['type'])return;const {data:_0x16b346}=_0x2cd244;if(_0x16b346&&'heading'==_0x16b346['commandName']){const _0x59d19b=_0x16b346['commandParams'][0x0]['value'],_0x3b5702=this['_getHeadingLevel'](_0x59d19b);if(null!==_0x3b5702)return{'type':'format','content':o(_0x505fb6,'*Change\x20to:*\x20%0',(_0x15d5b7=0x1,_0x2769c1=_0x3b5702,o(_0x505fb6,'ELEMENT_HEADING',[_0x15d5b7,_0x2769c1])))};const _0x2da4cb=this['_headingOptions']['find'](_0x59705a=>_0x59705a['model']===_0x59d19b)['title'];return{'type':'format','content':o(_0x505fb6,'*Change\x20to:*\x20%0',_0x3769c0(0x1,_0x2da4cb))};}var _0x15d5b7,_0x2769c1;});}['_getHeadingLevel'](_0x518685){const _0x2c4ba8=_0x518685['match'](/^heading(\d+)/);if(_0x2c4ba8)return _0x2c4ba8[0x1];const _0x2b32b2=this['_headingOptions']?.['find'](_0x49d586=>_0x49d586['model']==_0x518685);if(_0x2b32b2&&_0x2b32b2['view']){const _0x3df066=_0x2b32b2['view'],_0x5bfe21=(_0x3df066['name']??_0x3df066)['match'](/^h(\d+)/);if(_0x5bfe21)return _0x5bfe21[0x1];}return null;}}class rt extends _0x2aad9b{['afterInit'](){const _0x400d2b=this['editor'];if(!_0x400d2b['plugins']['has']('HighlightEditing'))return;const _0x5c99f0=_0x400d2b['plugins']['get']('TrackChangesEditing'),_0x3f2414=_0x400d2b['locale'];_0x5c99f0['enableDefaultAttributesIntegration']('highlight'),_0x5c99f0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3f2414,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x708089=this['editor'],_0x59431e=_0x708089['locale'];_0x708089['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30a131=>{if('formatInline'!=_0x30a131['type'])return;const {data:_0x480f3f}=_0x30a131;if(_0x480f3f&&'highlight'==_0x480f3f['commandName']){const _0x491821=_0x59431e['t'],_0x4be7d3=_0x480f3f['commandParams'][0x0]['value'];if(_0x4be7d3){const _0x51c7e3=_0x708089['config']['get']('highlight.options')['find'](_0x4437a0=>_0x4437a0['model']==_0x4be7d3),_0x5e2f99=_0x491821(_0x51c7e3['title'])['toLowerCase']();return{'type':'format','content':o(_0x59431e,'*Set\x20highlight:*\x20%0',_0x5e2f99),'color':{'value':_0x51c7e3['color'],'title':_0x51c7e3['title']}};}return{'type':'format','content':o(_0x59431e,'*Remove\x20highlight*',o(_0x59431e,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x2aad9b{['afterInit'](){const _0x5c7de3=this['editor'];if(!_0x5c7de3['plugins']['has']('HorizontalLineEditing'))return;_0x5c7de3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x370e5b=_0x5c7de3['plugins']['get']('TrackChangesEditing'),_0xfb284b=_0x5c7de3['locale'];_0x370e5b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2e7d77=>o(_0xfb284b,'ELEMENT_HORIZONTAL_LINE',_0x2e7d77));}}class ct extends _0x2aad9b{['afterInit'](){const _0xc935f6=this['editor'];if(!_0xc935f6['plugins']['has']('HtmlEmbed'))return;const _0x541390=_0xc935f6['plugins']['get']('TrackChangesEditing'),_0x25ccfd=_0xc935f6['locale'];_0x541390['descriptionFactory']['registerElementLabel']('rawHtml',_0x170913=>o(_0x25ccfd,'ELEMENT_HTML_EMBED',_0x170913)),_0x541390['enableDefaultAttributesIntegration']('htmlEmbed'),_0x541390['descriptionFactory']['registerDescriptionCallback'](_0x5aaa78=>{if('attribute'!=_0x5aaa78['type'])return;const {data:_0x4c458a}=_0x5aaa78;if(_0x4c458a&&'value'==_0x4c458a['key']&&_0x5aaa78['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x75e454=o(_0x25ccfd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x25ccfd,'*Change\x20%0\x20content*',_0x75e454)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32427a=this['editor'],_0x3f4af7=_0x32427a['locale'];_0x32427a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57b17b=>{if('formatBlock'!=_0x57b17b['type'])return;const {data:_0x33b96d}=_0x57b17b;if(_0x33b96d&&'htmlEmbed'==_0x33b96d['commandName']){const _0x163653=o(_0x3f4af7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3f4af7,'*Change\x20%0\x20content*',_0x163653)};}});}}class ut extends _0x2aad9b{['afterInit'](){const _0x187a2d=this['editor'];if(!_0x187a2d['plugins']['has']('ImageEditing'))return;const _0x958c85=_0x187a2d['plugins']['get']('TrackChangesEditing'),_0xcd3e9f=_0x187a2d['plugins']['get']('ImageUtils'),_0x4e88f8=_0x187a2d['locale'];_0x958c85['enableCommand']('insertImage'),_0x958c85['descriptionFactory']['registerElementLabel']('imageBlock',_0x288681=>o(_0x4e88f8,'ELEMENT_IMAGE',_0x288681)),_0x958c85['descriptionFactory']['registerElementLabel']('imageInline',_0x81b473=>o(_0x4e88f8,'ELEMENT_INLINE_IMAGE',_0x81b473)),_0x958c85['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4e88f8,'ELEMENT_CAPTION')),_0x187a2d['plugins']['has']('ImageUploadEditing')&&_0x958c85['enableCommand']('uploadImage'),_0x187a2d['plugins']['has']('ImageBlockEditing')&&_0x187a2d['plugins']['has']('ImageInlineEditing')&&(_0x958c85['enableCommand']('imageTypeInline',(_0xcf349a,_0x1669c5)=>{const _0x229fbc=_0xcd3e9f['getClosestSelectedImageElement'](_0x187a2d['model']['document']['selection']);_0x187a2d['model']['change'](()=>{_0x958c85['markBlockFormat'](_0x229fbc,{'commandName':'imageTypeInline','commandParams':[_0x1669c5]},[],'convertBlockImageToInline');});}),_0x958c85['enableCommand']('imageTypeBlock',(_0x4150e7,_0x4bc17e)=>{_0x187a2d['model']['change'](_0x523223=>{let _0x44f220=_0xcd3e9f['getClosestSelectedImageElement'](_0x187a2d['model']['document']['selection']),_0x55df55=_0x523223['createRangeOn'](_0x44f220);const _0x387efc=_0x224583['fromPosition'](_0x55df55['start'],'toPrevious'),_0xbe06f1=_0x224583['fromPosition'](_0x55df55['end'],'toNext');_0x958c85['forceDefaultExecution'](()=>_0x4150e7(_0x4bc17e)),_0x44f220=_0xcd3e9f['getClosestSelectedImageElement'](_0x187a2d['model']['document']['selection']),_0x55df55=_0x523223['createRangeOn'](_0x44f220);const _0x5151f6=_0x523223['createRange'](_0x387efc,_0xbe06f1);_0x387efc['detach'](),_0xbe06f1['detach'](),_0x958c85['markBlockFormat'](_0x44f220,{'commandName':'imageTypeInline','commandParams':[_0x4bc17e]},[],'convertInlineImageToBlock'),_0x5151f6['start']['isBefore'](_0x55df55['start'])&&_0x958c85['markInsertion'](_0x523223['createRange'](_0x5151f6['start'],_0x55df55['start']),'convertInlineImageToBlock'),_0x55df55['end']['isBefore'](_0x5151f6['end'])&&_0x958c85['markInsertion'](_0x523223['createRange'](_0x55df55['end'],_0x5151f6['end']),'convertInlineImageToBlock');});}),_0x958c85['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x958c85['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x958c85['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x958c85['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x958c85['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x958c85['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x45ca5b])=>{const _0x58f84c=_0x958c85['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3c0e08=_0x45ca5b['start'],_0x1cba91=_0x45ca5b['end'];const _0x43979a=_0x187a2d['model']['schema']['getNearestSelectionRange'](_0x3c0e08,'backward'),_0x18ddda=_0x187a2d['model']['schema']['getNearestSelectionRange'](_0x1cba91,'forward');_0x43979a['isCollapsed']&&(_0x3c0e08=_0x43979a['start']),_0x18ddda['isCollapsed']&&(_0x1cba91=_0x18ddda['end']),_0x58f84c([_0x187a2d['model']['createRange'](_0x3c0e08,_0x1cba91)]);}),_0x958c85['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xf9093e),_0x958c85['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xf9093e)),_0x187a2d['plugins']['has']('ImageCaptionEditing')&&(_0x958c85['enableCommand']('toggleImageCaption',(_0x54dfe4,_0x159e2c)=>{const _0x252ad9=_0x187a2d['plugins']['get']('ImageCaptionUtils');let _0x564806=_0xcd3e9f['getClosestSelectedImageElement'](_0x187a2d['model']['document']['selection']),_0x89c956=_0x252ad9['getCaptionFromImageModelElement'](_0x564806);_0x187a2d['model']['change'](()=>{if(_0x89c956)return void _0x958c85['markDeletion'](_0x187a2d['model']['createRangeOn'](_0x89c956));const _0x56f854=_0xcd3e9f['isBlockImage'](_0x564806);_0x54dfe4(_0x159e2c),_0x564806=_0xcd3e9f['getClosestSelectedImageElement'](_0x187a2d['model']['document']['selection']),_0x89c956=_0x252ad9['getCaptionFromImageModelElement'](_0x564806),_0x958c85['markInsertion'](_0x187a2d['model']['createRangeOn'](_0x89c956),_0x56f854?null:'imageCaption');});}),_0x958c85['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xf9093e));const _0x5610a4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3dd818(_0x3c07cd,_0x4c547b){const _0x5e6341=_0x5610a4['findIndex'](({type:_0x2a01bb,subType:_0x4f5006})=>_0x3c07cd['type']==_0x2a01bb&&_0x3c07cd['subType']==_0x4f5006),_0x16d787=_0x5610a4['findIndex'](({type:_0x3e80a1,subType:_0x3d2605})=>_0x4c547b['type']==_0x3e80a1&&_0x4c547b['subType']==_0x3d2605);if(_0x5e6341<0x0||_0x16d787<0x0)return!0x1;const _0x311677=_0x3c07cd['getFirstRange'](),_0x166572=_0x4c547b['getFirstRange']();if((0x0==_0x5e6341||0x1==_0x5e6341)&&0x2==_0x16d787&&_0x311677['isIntersecting'](_0x166572))return!0x0;if(0x2==_0x5e6341&&0x3==_0x16d787){const _0x71866b=_0x958c85['_findSuggestions'](_0x311677,'insertion')['filter'](({suggestion:_0x1a250b,meta:_0x79c5a9})=>_0x79c5a9['isOwn']&&'convertInlineImageToBlock'==_0x1a250b['subType']);if(_0x71866b['length']>0x1&&_0x166572['end']['isEqual'](_0x311677['start']))return!0x0;if(0x1==_0x71866b['length']&&(_0x311677['start']['isEqual'](_0x166572['end'])||_0x311677['end']['isEqual'](_0x166572['start'])))return!0x0;}if(0x3==_0x5e6341&&0x3==_0x16d787&&_0x311677['start']['isBefore'](_0x166572['start'])){const _0x7a0ec=_0x311677['end']['nodeAfter'],_0x5b7382=_0x166572['start']['nodeBefore'];return _0xcd3e9f['isBlockImage'](_0x7a0ec)&&_0x7a0ec===_0x5b7382;}return!0x1;}function _0xf9093e(_0x32b4bd,_0xf78e74){return _0x3dd818(_0x32b4bd,_0xf78e74)?[_0x32b4bd,_0xf78e74]:_0x3dd818(_0xf78e74,_0x32b4bd)?[_0xf78e74,_0x32b4bd]:null;}_0x187a2d['plugins']['has']('ImageResize')&&(_0x958c85['enableDefaultAttributesIntegration']('resizeImage'),_0x958c85['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4e88f8,'FORMAT_IMAGE_SIZE'))),_0x187a2d['plugins']['has']('ImageTextAlternativeEditing')&&_0x958c85['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x187a2d['plugins']['has']('PictureEditing')&&_0x958c85['descriptionFactory']['registerDescriptionCallback'](_0x44ea8e=>{if('attribute'!=_0x44ea8e['type'])return;const {data:_0x43a35e}=_0x44ea8e;return _0x43a35e&&'sources'==_0x43a35e['key']?{'type':'format','content':''}:void 0x0;}),_0x187a2d['plugins']['has']('ImageSizeAttributes')&&_0x958c85['descriptionFactory']['registerDescriptionCallback'](_0x16be3b=>{if('attribute'!=_0x16be3b['type'])return;const {data:_0x5e4157}=_0x16be3b;return!_0x5e4157||'width'!=_0x5e4157['key']&&'height'!=_0x5e4157['key']?void 0x0:{'type':'format','content':''};}),_0x958c85['descriptionFactory']['registerDescriptionCallback'](_0x119c0f=>{if(!!_0x5610a4['find'](({type:_0x3a51ae,subType:_0x463684})=>_0x119c0f['type']==_0x3a51ae&&_0x119c0f['subType']==_0x463684))return _0x119c0f['previous']?{}:void 0x0;}),_0x958c85['descriptionFactory']['registerDescriptionCallback'](_0x4f989f=>{if('insertion'==_0x4f989f['type']||'deletion'==_0x4f989f['type']){const _0x52490b=_0x4f989f['getContainedElement']();if(_0x52490b&&_0x52490b['is']('element','caption'))return{'type':'insertion'==_0x4f989f['type']?'addObject':'removeObject','element':_0x52490b,'quantity':0x1};}}),_0x958c85['descriptionFactory']['registerDescriptionCallback'](_0x3468b0=>'formatBlock'==_0x3468b0['type']&&'convertInlineImageToBlock'==_0x3468b0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3468b0['type']&&'convertBlockImageToInline'==_0x3468b0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x958c85['descriptionFactory']['registerDescriptionCallback'](_0x54791f=>{if('attribute'!=_0x54791f['type'])return;const {data:_0x15029d}=_0x54791f;if(!_0x15029d||'alt'!=_0x15029d['key'])return;const _0x54c1dc=_0x15029d['newValue'];return _0x54c1dc?{'type':'format','content':o(_0x4e88f8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x54c1dc+'\x22')}:{'type':'format','content':o(_0x4e88f8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30727f=this['editor'],_0x188263=_0x30727f['locale'];_0x30727f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e4804=>{if('formatBlock'!=_0x4e4804['type']&&'formatInline'!=_0x4e4804['type'])return;const {data:_0x41eec2}=_0x4e4804;if(_0x41eec2){if('imageTextAlternative'==_0x41eec2['commandName']){const _0x43c63e=_0x41eec2['commandParams'][0x0]['newValue'];return _0x43c63e?{'type':'format','content':o(_0x188263,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43c63e+'\x22')}:{'type':'format','content':o(_0x188263,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x41eec2['commandName']){const _0x18a2d6=_0x41eec2['commandParams'][0x0]['width'];return _0x18a2d6?{'type':'format','content':o(_0x188263,'*Set\x20image\x20width:*\x20%0',_0x18a2d6)}:{'type':'format','content':o(_0x188263,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x2aad9b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xd0adda=this['editor']['locale'],_0x148c38=this['editor']['plugins']['get']('TrackChangesEditing');_0x148c38['enableDefaultAttributesIntegration']('replaceImageSource'),_0x148c38['descriptionFactory']['registerDescriptionCallback'](_0x2d8d96=>{if('attribute'!=_0x2d8d96['type'])return;const {data:_0x2ca789}=_0x2d8d96;return _0x2ca789&&'src'==_0x2ca789['key']?_0x2ca789['newValue']&&_0x2ca789['oldValue']?{'type':'format','content':o(_0xd0adda,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x205378=this['editor']['plugins']['get']('TrackChangesEditing');_0x205378['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x205378['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x205378['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x205378['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3aebc5=this['editor'],_0x2b0c5b=_0x3aebc5['locale'];_0x3aebc5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45c1ed=>{if('formatBlock'!=_0x45c1ed['type']&&'formatInline'!=_0x45c1ed['type'])return;const {data:_0x1c2785}=_0x45c1ed;if(!_0x1c2785||'replaceImageSource'!=_0x1c2785['commandName'])return;return{'type':'format','content':o(_0x2b0c5b,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x2aad9b{['afterInit'](){const _0x367dae=this['editor'];if(!_0x367dae['plugins']['has']('ImageStyleEditing'))return;const _0x26ec0b=_0x367dae['plugins']['get']('TrackChangesEditing'),_0x1ff5ef=_0x367dae['plugins']['get']('ImageUtils'),_0x49b754={};_0x26ec0b['enableCommand']('imageStyle',(_0x2f887e,_0x4e5bf4)=>{const _0x52074f=_0x367dae['plugins']['get']('Users')['me'],_0x10cfd3=_0x367dae['commands']['get']('imageStyle');let _0x1bd481=_0x1ff5ef['getClosestSelectedImageElement'](_0x367dae['model']['document']['selection']),_0x3ad3b1=_0x367dae['model']['createRangeOn'](_0x1bd481),_0x33b72d=_0x10cfd3['value'];if(_0x33b72d==_0x4e5bf4['value'])return;const _0x22e439={'commandName':'imageStyle','commandParams':[_0x4e5bf4],'formatGroupId':_0xcdc81a()};_0x367dae['model']['change'](()=>{if(_0x26ec0b['getSuggestions']()['filter'](_0x5d6a04=>_0x5d6a04['isInContent']&&_0x52074f==_0x5d6a04['author']&&('formatBlock'==_0x5d6a04['type']||'formatInline'==_0x5d6a04['type'])&&('imageStylePreApply'==_0x5d6a04['subType']||'imageStylePostApply'==_0x5d6a04['subType'])&&_0x5d6a04['getFirstRange']()['isEqual'](_0x3ad3b1))['forEach'](_0x3529a5=>_0x26ec0b['discardSuggestion'](_0x3529a5['head'])),_0x1bd481=_0x1ff5ef['getClosestSelectedImageElement'](_0x367dae['model']['document']['selection']),_0x3ad3b1=_0x367dae['model']['createRangeOn'](_0x1bd481),_0x10cfd3['refresh'](),_0x367dae['commands']['get']('imageTypeInline')['refresh'](),_0x367dae['commands']['get']('imageTypeBlock')['refresh'](),_0x33b72d=_0x10cfd3['value'],_0x33b72d!=_0x4e5bf4['value'])return _0x1ff5ef['isInlineImage'](_0x1bd481)&&_0x10cfd3['shouldConvertImageType'](_0x4e5bf4['value'],_0x1bd481)?(_0x2f887e({..._0x4e5bf4,'setImageSizes':!0x1}),_0x1bd481=_0x1ff5ef['getClosestSelectedImageElement'](_0x367dae['model']['document']['selection']),void _0x26ec0b['markBlockFormat'](_0x1bd481,{..._0x22e439,'commandReversedParams':[{'value':_0x33b72d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1ff5ef['isBlockImage'](_0x1bd481)?_0x26ec0b['markBlockFormat'](_0x1bd481,_0x22e439,[],'imageStylePostApply'):_0x26ec0b['markInlineFormat'](_0x3ad3b1,_0x22e439,'imageStylePostApply'));});});for(const _0x3a57f7 of _0x367dae['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x49b754[_0x3a57f7['name']]=_0x3a57f7['title']['toLowerCase']();_0x26ec0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x26ec0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x26ec0b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x26ec0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x59fdfa])=>{_0x1ff5ef['setImageNaturalSizeAttributes'](_0x59fdfa['getContainedElement']());}),_0x26ec0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x56b629,_0x59d71d)=>{_0x26ec0b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x56b629,{'commandName':_0x59d71d['commandName'],'commandParams':_0x59d71d['commandReversedParams']});}),_0x26ec0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4d7bde,_0x25c723){if(_0x439a87(_0x4d7bde,_0x25c723))return[_0x4d7bde,_0x25c723];if(_0x439a87(_0x25c723,_0x4d7bde))return[_0x25c723,_0x4d7bde];return null;});const _0x5d3b63=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x439a87(_0x270db5,_0x4f199e){const _0x5805e0=_0x5d3b63['findIndex'](({type:_0x5f5814,subType:_0x506278})=>_0x270db5['type']==_0x5f5814&&_0x270db5['subType']==_0x506278),_0x444351=_0x5d3b63['findIndex'](({type:_0x3495ff,subType:_0xa6300f})=>_0x4f199e['type']==_0x3495ff&&_0x4f199e['subType']==_0xa6300f);if(_0x5805e0<0x0||_0x444351<0x0)return!0x1;const _0x5f158e=_0x270db5['getFirstRange'](),_0x4cf8ba=_0x4f199e['getFirstRange']();if((0x0==_0x5805e0||0x1==_0x5805e0)&&0x2==_0x444351&&_0x5f158e['isIntersecting'](_0x4cf8ba))return!0x0;if(0x2==_0x5805e0&&0x3==_0x444351){const _0x5af466=_0x26ec0b['_findSuggestions'](_0x5f158e,'insertion')['filter'](({suggestion:_0x332cb7,meta:_0x2fe3da})=>_0x2fe3da['isOwn']&&'convertInlineImageToBlock'==_0x332cb7['subType']);if(_0x5af466['length']>0x1&&_0x4cf8ba['end']['isEqual'](_0x5f158e['start']))return!0x0;if(0x1==_0x5af466['length']&&(_0x5f158e['start']['isEqual'](_0x4cf8ba['end'])||_0x5f158e['end']['isEqual'](_0x4cf8ba['start'])))return!0x0;}if(0x3==_0x5805e0&&0x3==_0x444351&&_0x5f158e['start']['isBefore'](_0x4cf8ba['start'])){const _0x41fa49=_0x5f158e['end']['nodeAfter'],_0x318483=_0x4cf8ba['start']['nodeBefore'];return _0x1ff5ef['isBlockImage'](_0x41fa49)&&_0x41fa49===_0x318483;}return!0x1;}_0x367dae['model']['document']['registerPostFixer'](()=>{let _0x447889=!0x1;const _0x198f30=Array['from'](_0x367dae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2456f4,data:_0x13797a}of _0x198f30){const {group:_0x1928ef,type:_0x5a6177,subType:_0x1b576a,id:_0x5091a5}=_0x26ec0b['_splitMarkerName'](_0x2456f4);if('suggestion'==_0x1928ef&&_0x26ec0b['hasSuggestion'](_0x5091a5)){if('formatBlock'==_0x5a6177&&('imageStylePreApply'==_0x1b576a||'imageStylePostApply'==_0x1b576a)){const _0x6bfc2e=_0x26ec0b['getSuggestion'](_0x5091a5);if(_0x13797a['newRange']){const _0x36ae09=_0x6bfc2e['getFirstRange']()['getContainedElement']();if(_0x1ff5ef['isBlockImage'](_0x36ae09))continue;_0x26ec0b['discardSuggestion'](_0x6bfc2e),_0x447889=!0x0;}}if('insertion'==_0x5a6177&&'imageCaption'==_0x1b576a&&!_0x13797a['newRange']){const _0x2691af=_0x26ec0b['getSuggestion'](_0x5091a5);_0x2691af['next']&&_0x2691af['next']['isInContent']&&(_0x26ec0b['discardSuggestion'](_0x2691af['next']),_0x447889=!0x0);}}}return _0x447889;}),this['_registerLegacyDescription'](_0x49b754);}['_registerLegacyDescription'](_0x5ec931){const _0x169596=this['editor'],_0x270386=_0x169596['locale'];_0x169596['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47e100=>{if('formatBlock'!=_0x47e100['type']&&'formatInline'!=_0x47e100['type'])return;const {data:_0x30ac22}=_0x47e100;if(!_0x30ac22||'imageStyle'!=_0x30ac22['commandName'])return;const _0x3630fd=_0x30ac22['commandParams'][0x0]['value'];return _0x5b82ff('side'===_0x3630fd?o(_0x270386,'FORMAT_SIDE_IMAGE'):_0x5ec931[_0x3630fd]||_0x3630fd);function _0x5b82ff(_0x52eeb1){return{'type':'format','content':o(_0x270386,'*Format:*\x20%0',_0x52eeb1)};}});}}class lt extends _0x2aad9b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x762285){super(_0x762285),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x44d287=this['editor'],_0x49bc41=_0x44d287['commands']['get']('importWord'),_0x30d8ac=_0x44d287['commands']['get']('trackChanges');_0x49bc41&&(_0x49bc41['on']('execute',(_0x52c409,[,_0x26dd29])=>{this['_trackChangesValueDuringImport']=_0x30d8ac['value'],_0x26dd29['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x49bc41,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x49bc41,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x30d8ac['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x44d287['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xff4c3c,_0x1da314){const {suggestions:_0x4d4b03}=_0x1da314,_0x4e5f5b=this['editor']['commands']['get']('trackChanges'),_0xee58f6=_0x4e5f5b['value'];this['_trackChangesValueDuringImport']!==_0xee58f6&&(_0x4e5f5b['execute'](),this['_trackChangesExecuted']=!0x0),_0x4d4b03&&_0x4d4b03['forEach'](({id:_0x50840c,type:_0x364cfe,author:_0x43ff70,created_at:_0x44ac34})=>{const _0x25b5e8={'id':_0x50840c,'type':_0x364cfe,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x43ff70,'createdAt':_0x44ac34?new Date(_0x44ac34):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x25b5e8);});}}class gt extends _0x2aad9b{['afterInit'](){const _0x23699b=this['editor'],_0x3db330=_0x23699b['plugins']['get']('TrackChangesEditing');if(_0x23699b['plugins']['has']('IndentEditing')&&(_0x3db330['enableCommand']('indent'),_0x3db330['enableCommand']('outdent')),_0x23699b['plugins']['has']('IndentBlock')){for(const _0x3ebc8d of['indentBlock','outdentBlock'])_0x3db330['enableDefaultAttributesIntegration'](_0x3ebc8d);if(_0x23699b['plugins']['has']('ListEditing')){for(const _0x1bdc66 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3db330['enableDefaultAttributesIntegration'](_0x1bdc66);}}const _0x95ccc6=_0x23699b['locale'];_0x3db330['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x95ccc6,'FORMAT_INDENT')),_0x3db330['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x95ccc6,'FORMAT_INDENT')),_0x3db330['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x95ccc6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x82150a=this['editor'],_0x4a63e3=_0x82150a['locale'],_0x2b5e5e=_0x82150a['plugins']['get']('TrackChangesEditing');_0x2b5e5e['descriptionFactory']['registerDescriptionCallback'](_0xe8a7d5=>{if('formatBlock'!=_0xe8a7d5['type'])return;const {data:_0x4b1227}=_0xe8a7d5;if(!_0x4b1227)return;if('indentBlock'!=_0x4b1227['commandName']&&'outdentBlock'!=_0x4b1227['commandName'])return;const _0x43fdcd=_0xe8a7d5['getItems']()[0x0],_0x545f2b=_0x2b5e5e['descriptionFactory']['getItemLabel'](_0x43fdcd);return'indentBlock'==_0x4b1227['commandName']?{'type':'format','content':o(_0x4a63e3,'*Indent:*\x20%0',_0x545f2b)}:'outdentBlock'==_0x4b1227['commandName']?{'type':'format','content':o(_0x4a63e3,'*Outdent:*\x20%0',_0x545f2b)}:void 0x0;});}}class mt extends _0x2aad9b{static get['requires'](){return[_0x5ad772];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x2aad9b{['afterInit'](){const _0x22bb76=this['editor'];if(!_0x22bb76['plugins']['has']('LinkEditing'))return;const _0x55b4c4=_0x22bb76['plugins']['get']('TrackChangesEditing'),_0x3b6f69=_0x22bb76['commands']['get']('link');_0x55b4c4['enableDefaultAttributesIntegration']('link'),_0x55b4c4['enableDefaultAttributesIntegration']('unlink');for(const _0xf66406 of _0x3b6f69['manualDecorators'])_0x55b4c4['descriptionFactory']['registerAttributeLabel'](_0xf66406['id'],'link\x20('+_0xf66406['label']['toLowerCase']()+')');_0x55b4c4['descriptionFactory']['registerDescriptionCallback'](_0x11b49a=>{if('attribute'!=_0x11b49a['type'])return;const {data:_0x18e825}=_0x11b49a;if(!_0x18e825||'linkHref'!=_0x18e825['key'])return;const _0x326669=_0x18e825['newValue'],_0x2e9a01=_0x22bb76['locale'];return{'type':'format','content':null==_0x326669?o(_0x2e9a01,'*Remove\x20link*'):o(_0x2e9a01,'*Set\x20link:*\x20%0','\x22'+_0x326669+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ffdd3=this['editor'],_0x3c70b2=_0x4ffdd3['locale'];_0x4ffdd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x508f65=>{if('formatInline'!=_0x508f65['type'])return;const {data:_0x284b94}=_0x508f65;if(_0x284b94){if('link'==_0x284b94['commandName']){const _0x1c9f87=_0x284b94['commandParams'][0x0];return{'type':'format','content':o(_0x3c70b2,'*Set\x20link:*\x20%0','\x22'+_0x1c9f87+'\x22')};}return'unlink'==_0x284b94['commandName']?{'type':'format','content':o(_0x3c70b2,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x2aad9b{['afterInit'](){const _0x2cffea=this['editor'],_0x2ec675=_0x2cffea['locale'];if(!_0x2cffea['plugins']['has']('LegacyListEditing'))return;const _0x57078b=_0x2cffea['plugins']['get']('TrackChangesEditing'),_0x306d27=_0x2cffea['plugins']['has']('LegacyTodoListEditing');function _0x27fcce(_0x2c182d){return()=>{const _0x5548fa=_0x2cffea['model']['document']['selection'],_0x31b19a=_0x2cffea['commands']['get'](_0x2c182d);if(_0x31b19a['value'])return void _0x2cffea['execute']('paragraph',{});const _0x500db3=_0x2c182d['slice'](0x0,-0x4),_0x13d461=function(_0x4104d7,_0x21142c,_0x39b131){let _0x2000aa=Array['from'](_0x4104d7)['filter'](_0x1b31d3=>function(_0x2fa0cb,_0x2671eb){return _0x2671eb['checkChild'](_0x2fa0cb['parent'],'listItem')&&!_0x2671eb['isObject'](_0x2fa0cb);}(_0x1b31d3,_0x39b131));_0x2000aa=_0x2000aa['filter'](_0x357908=>!_0x357908['is']('element','listItem')||_0x357908['getAttribute']('listType')!=_0x21142c);const _0x43aceb=new Set();for(const _0x2efdbf of _0x2000aa)_0x2efdbf['is']('element','listItem')?_0x43aceb['add'](Le(_0x2efdbf)):_0x43aceb['add'](_0x2efdbf);return Array['from'](_0x43aceb);}(_0x5548fa['getSelectedBlocks'](),_0x500db3,_0x2cffea['model']['schema']);_0x2cffea['model']['change'](()=>{for(const _0x26ca7a of _0x13d461)_0x57078b['markBlockFormat'](_0x26ca7a,{'commandName':_0x2c182d,'commandParams':[{'forceValue':!_0x31b19a['value']}],'formatGroupId':'blockName'},Ee(_0x26ca7a));});};}function _0x126772(_0xc6ac8){return()=>{const _0x301465=function(_0x3684dd){let _0x1679d6=Array['from'](_0x3684dd);const _0x4d4718=_0x1679d6['findIndex'](_0x292d14=>'listItem'!=_0x292d14['name']);return _0x4d4718>-0x1&&(_0x1679d6=_0x1679d6['slice'](0x0,_0x4d4718)),_0x1679d6;}(_0x2cffea['model']['document']['selection']['getSelectedBlocks']()),_0x9cb24a=_0x2cffea['model']['createRange'](_0x2cffea['model']['createPositionAt'](_0x301465[0x0],'before'),_0x2cffea['model']['createPositionAt'](_0x301465[_0x301465['length']-0x1],'end'));_0x2cffea['model']['change'](()=>{_0x57078b['markBlockFormat'](_0x9cb24a,{'commandName':_0xc6ac8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x512edd){const _0xfa2eee=new Set();for(const _0x17e9e4 of _0x512edd){let _0x331beb=_0x17e9e4['nextSibling'];for(;_0x331beb&&_0x331beb['getAttribute']('listIndent')>_0x17e9e4['getAttribute']('listIndent');)_0xfa2eee['add'](_0x331beb),_0x331beb=_0x331beb['nextSibling'];}return Array['from'](_0xfa2eee);}(_0x301465));});};}_0x57078b['enableCommand']('numberedList',_0x27fcce('numberedList')),_0x57078b['enableCommand']('bulletedList',_0x27fcce('bulletedList')),_0x306d27&&_0x57078b['enableCommand']('todoList',_0x27fcce('todoList')),_0x57078b['enableCommand']('indentList',_0x126772('indentList')),_0x57078b['enableCommand']('outdentList',_0x126772('outdentList')),_0x306d27&&_0x57078b['enableCommand']('checkTodoList',()=>{const _0x2b825f=_0x2cffea['commands']['get']('checkTodoList'),_0x3ff206=Array['from'](_0x2b825f['_selectedElements']);_0x3ff206['filter'](_0x3874e6=>_0x3874e6['getAttribute']('todoListChecked')!=_0x2b825f['value']),_0x2cffea['model']['change'](()=>{for(const _0x5acd92 of _0x3ff206)_0x57078b['markBlockFormat'](_0x5acd92,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2b825f['value']}]});});}),_0x57078b['descriptionFactory']['registerElementLabel']('listItem',_0x3af64e=>o(_0x2ec675,'ELEMENT_LIST_ITEM',_0x3af64e)),_0x57078b['descriptionFactory']['registerDescriptionCallback'](_0x143785=>{if('formatBlock'!=_0x143785['type']&&'formatInline'!=_0x143785['type'])return;const {data:_0x327f70}=_0x143785;if(_0x327f70){if('numberedList'==_0x327f70['commandName']||'bulletedList'==_0x327f70['commandName']||'todoList'==_0x327f70['commandName'])switch(_0x327f70['commandName']['replace']('List','')){case'bulleted':return _0x28e42e(o(_0x2ec675,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x28e42e(o(_0x2ec675,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x28e42e(o(_0x2ec675,'ELEMENT_TODO_LIST'));}if('indentList'==_0x327f70['commandName'])return{'type':'format','content':o(_0x2ec675,'*Indent:*\x20%0',o(_0x2ec675,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x327f70['commandName'])return{'type':'format','content':o(_0x2ec675,'*Outdent:*\x20%0',o(_0x2ec675,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x327f70['commandName'])return _0x327f70['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ec675,'*Check\x20item*')}:{'type':'format','content':o(_0x2ec675,'*Uncheck\x20item*')};}function _0x28e42e(_0x260728){return{'type':'format','content':o(_0x2ec675,'*Change\x20to:*\x20%0',_0x260728)};}});}}function Le(_0x2b48c3){const _0x1b1fb9=_0x2b48c3['getAttribute']('listIndent');if(0x0==_0x1b1fb9)return _0x2b48c3;let _0x11f4af=_0x2b48c3;for(;_0x2b48c3['previousSibling']&&_0x2b48c3['previousSibling']['is']('element','listItem');){const _0x1aae3b=_0x2b48c3['previousSibling']['getAttribute']('listIndent');if(_0x1aae3b==_0x1b1fb9)_0x11f4af=_0x2b48c3['previousSibling'];else{if(_0x1aae3b<_0x1b1fb9)break;}_0x2b48c3=_0x2b48c3['previousSibling'];}return _0x11f4af;}function Ee(_0x3fb001){const _0x4aa141=[];if(_0x3fb001['is']('element','listItem')&&_0x3fb001['getAttribute']('listIndent')>0x0){let _0x475c45=_0x3fb001['nextSibling'];for(;_0x475c45&&'listItem'==_0x475c45['name']&&_0x475c45['getAttribute']('listIndent')==_0x3fb001['getAttribute']('listIndent');)_0x4aa141['push'](_0x475c45),_0x475c45=_0x475c45['nextSibling'];}return _0x4aa141;}class wt extends _0x2aad9b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x174b25=this['editor']['config']['get']('list.properties'),_0x28ec1f=this['editor']['plugins']['get']('TrackChangesEditing');_0x174b25['styles']&&_0x28ec1f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x174b25['reversed']&&_0x28ec1f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x174b25['startIndex']&&_0x28ec1f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x28ec1f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1fcf94,_0x23626d={}){const _0x5206af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x586c8d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5206af['markMultiRangeBlockFormat'](_0x586c8d,{'commandName':'listStyle','commandParams':[{'type':_0x23626d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x472468,_0x3fb60b={}){const _0x8be7fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x520662=this['_getSuggestionBlocks'](_0x52372b=>_0x52372b['is']('element','listItem')&&'numbered'===_0x52372b['getAttribute']('listType'));if(_0x520662['length']<0x1)return;const _0x34dffd=_0x520662['map'](_0x41349b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x41349b,'before'),this['editor']['model']['createPositionAt'](_0x41349b,0x0)));this['editor']['model']['change'](()=>{_0x8be7fd['markMultiRangeBlockFormat'](_0x34dffd,{'commandName':'listReversed','commandParams':[{'reversed':_0x3fb60b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x37d2b0,_0x174688={}){const _0x3389e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x336287=this['_getSuggestionBlocks'](_0x18f741=>_0x18f741['is']('element','listItem')&&'numbered'===_0x18f741['getAttribute']('listType'));if(_0x336287['length']<0x1)return;const _0x102396=_0x336287['map'](_0x15f3a7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15f3a7,'before'),this['editor']['model']['createPositionAt'](_0x15f3a7,0x0)));this['editor']['model']['change'](()=>{_0x3389e4['markMultiRangeBlockFormat'](_0x102396,{'commandName':'listStart','commandParams':[{'startIndex':_0x174688['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3a66f1){if('formatBlock'!=_0x3a66f1['type']&&'formatInline'!=_0x3a66f1['type'])return;const _0x2eba6e=this['editor']['locale'],{data:_0x5622da}=_0x3a66f1;if(!_0x5622da)return;let _0x2c8e6a,_0x2028dc;switch(_0x5622da['commandName']){case'listStyle':_0x2c8e6a='*Change\x20to:*\x20%0',_0x2028dc={'type':'format','content':o(_0x2eba6e,_0x2c8e6a,o(_0x2eba6e,this['_getTranslationKeyForListStyle'](_0x5622da['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2c8e6a=_0x5622da['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2028dc={'type':'format','content':o(_0x2eba6e,_0x2c8e6a)};break;case'listStart':_0x2c8e6a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2028dc={'type':'format','content':o(_0x2eba6e,_0x2c8e6a,_0x5622da['commandParams'][0x0]['startIndex'])};}return _0x2028dc;}['_getSuggestionBlocksForListStyle'](){const _0x36013a=this['editor']['plugins']['get']('LegacyListUtils');let _0x2506d7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2506d7[0x0]?.['is']('element','listItem')&&_0x2506d7['unshift'](..._0x36013a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2506d7[_0x2506d7['length']-0x1]?.['is']('element','listItem')&&_0x2506d7['push'](..._0x36013a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2506d7=[...new Set(_0x2506d7)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2506d7=_0x2506d7['filter'](_0x319b69=>_0x319b69['is']('element','listItem'))),_0x2506d7;}['_getSuggestionBlocks'](_0x5c4051){const _0x2055b0=this['editor']['plugins']['get']('LegacyListUtils');let _0x2831af=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5c4051)['map'](_0x538d38=>{const _0x14f3f9=this['editor']['model']['createPositionAt'](_0x538d38,0x0);return[..._0x2055b0['getSiblingNodes'](_0x14f3f9,'backward'),..._0x2055b0['getSiblingNodes'](_0x14f3f9,'forward')];})['flat']();return _0x2831af=[...new Set(_0x2831af)],_0x2831af;}['_getTranslationKeyForListStyle'](_0x800a69){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x800a69)||'default')['toUpperCase']()+'_LIST_'+_0x800a69['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x2aad9b{['afterInit'](){const _0x405857=this['editor'];if(!_0x405857['plugins']['has']('MediaEmbedEditing'))return;const _0x48ae33=_0x405857['plugins']['get']('TrackChangesEditing'),_0x52e4ef=_0x405857['locale'];_0x48ae33['enableCommand']('mediaEmbed'),_0x48ae33['descriptionFactory']['registerElementLabel']('media',_0xba3a38=>o(_0x52e4ef,'ELEMENT_MEDIA',_0xba3a38));}}class bt extends _0x2aad9b{['afterInit'](){const _0x2118a2=this['editor'];_0x2118a2['plugins']['has']('MentionEditing')&&_0x2118a2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x2aad9b{['afterInit'](){const _0x304bea=this['editor'];if(!_0x304bea['plugins']['has']('MergeFieldsEditing'))return;const _0xc0ed17=_0x304bea['plugins']['get']('TrackChangesEditing'),_0x24e5c5=_0x304bea['locale'];_0xc0ed17['enableCommand']('insertMergeField'),_0xc0ed17['enableCommand']('insertMergeFieldBlock'),_0xc0ed17['enableCommand']('insertMergeFieldImage'),_0xc0ed17['descriptionFactory']['registerElementLabel']('mergeField',_0xa6a0f7=>o(_0x24e5c5,'ELEMENT_MERGE_FIELD',_0xa6a0f7)),_0xc0ed17['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1c1368=>o(_0x24e5c5,'ELEMENT_MERGE_FIELD',_0x1c1368)),_0xc0ed17['descriptionFactory']['registerDescriptionCallback'](_0xe17bf3=>{if('insertion'!=_0xe17bf3['type']&&'deletion'!=_0xe17bf3['type'])return;const _0x2920b0=_0xe17bf3['getContainedElement']();if(null==_0x2920b0)return;const _0x301953=_0x304bea['plugins']['get']('MergeFieldsEditing');let _0x2163ba;switch(_0x301953['getMergeFieldType'](_0x2920b0)){case null:return;case'image':{const _0x3a15ca=_0x301953['unwrapAffixes'](_0x2920b0['getAttribute']('src'));_0x2163ba=_0x301953['getLabel'](_0x3a15ca)||_0x3a15ca;break;}default:{const _0x47f5bd=_0x2920b0['getAttribute']('id');_0x2163ba=_0x301953['getLabel'](_0x47f5bd)||_0x47f5bd;break;}}return'insertion'==_0xe17bf3['type']?{'type':'insertion','content':o(_0x24e5c5,'*Insert:*\x20%0','\x22'+_0x2163ba+'\x22\x20'+o(_0x24e5c5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x24e5c5,'*Remove:*\x20%0','\x22'+_0x2163ba+'\x22\x20'+o(_0x24e5c5,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x2aad9b{['afterInit'](){const _0x1137c7=this['editor'],_0x3a57e7=_0x1137c7['plugins']['get']('TrackChangesEditing');_0x1137c7['plugins']['has']('MultiLevelList')&&(_0x3a57e7['enableDefaultAttributesIntegration']('multiLevelList'),_0x3a57e7['descriptionFactory']['registerDescriptionCallback'](_0x21b67a=>this['handleDescriptions'](_0x21b67a)));}['handleDescriptions'](_0x4d6f32){const _0x1802ed=this['editor']['locale'],{data:_0x368791}=_0x4d6f32,_0x3445a5={'type':'format','content':''};if(_0x368791&&'listMarkerStyle'==_0x368791['key']){if(!_0x368791['oldValue'])return{'type':'format','content':o(_0x1802ed,'*Set\x20format:*\x20%0',o(_0x1802ed,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x368791['newValue']+')'};if(!_0x368791['newValue']){let _0x3be6f4=_0x4d6f32['head'];for(;_0x3be6f4;){if(_0x3be6f4['data']&&'listType'==_0x3be6f4['data']['key']&&_0x3be6f4['data']['newValue'])return _0x3445a5;_0x3be6f4=_0x3be6f4['next'];}return{'type':'format','content':o(_0x1802ed,'*Remove\x20format:*\x20%0',o(_0x1802ed,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x368791['oldValue']+')'};}}}}class St extends _0x2aad9b{['afterInit'](){const _0x2f8fc5=this['editor'];if(!_0x2f8fc5['plugins']['has']('PageBreakEditing'))return;_0x2f8fc5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x99c2cc=_0x2f8fc5['plugins']['get']('TrackChangesEditing'),_0x294802=_0x2f8fc5['locale'];_0x99c2cc['descriptionFactory']['registerElementLabel']('pageBreak',_0x4ff904=>o(_0x294802,'ELEMENT_PAGE_BREAK',_0x4ff904));}}class It extends _0x2aad9b{['afterInit'](){const _0x17ca83=this['editor'];if(!_0x17ca83['plugins']['has']('Paragraph'))return;const _0x3bf32c=_0x17ca83['locale'],_0x656965=_0x17ca83['plugins']['get']('TrackChangesEditing');_0x656965['descriptionFactory']['registerElementLabel']('paragraph',_0x50012d=>o(_0x3bf32c,'ELEMENT_PARAGRAPH',_0x50012d)),_0x656965['enableDefaultAttributesIntegration']('paragraph'),_0x656965['enableCommand']('insertParagraph');const _0x5950a4=_0x656965['descriptionFactory'];_0x5950a4['registerDescriptionCallback'](_0x65f3fd=>{if('insertion'!==_0x65f3fd['type'])return;const {start:_0x514bb9,end:_0x2a2658}=_0x65f3fd['getFirstRange']();if(!_0x514bb9['isTouching'](_0x2a2658)||!_0x514bb9['nodeAfter'])return;const _0x155dcd=_0x17ca83['model']['schema'],_0x43f75f=_0x514bb9['nodeAfter'];return _0x155dcd['isBlock'](_0x43f75f)&&!_0x155dcd['isLimit'](_0x43f75f)&&_0x155dcd['checkChild'](_0x43f75f,'$text')?{'type':'insertion','content':o(_0x3bf32c,'*Insert:*\x20%0',_0x5950a4['getItemLabel'](_0x43f75f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47f159=this['editor'],_0x34e58d=_0x47f159['locale'];_0x47f159['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ceba6=>{if('formatBlock'!=_0x3ceba6['type'])return;const {data:_0x555a8a}=_0x3ceba6;return _0x555a8a&&'paragraph'==_0x555a8a['commandName']?{'type':'format','content':o(_0x34e58d,'*Change\x20to:*\x20%0',o(_0x34e58d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x2aad9b{['afterInit'](){const _0x1375e8=this['editor'];_0x1375e8['commands']['get']('replaceSource')&&_0x1375e8['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x2aad9b{['afterInit'](){const _0x29857e=this['editor'];if(!_0x29857e['plugins']['has']('RemoveFormatEditing'))return;_0x29857e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12bde2=this['editor'];_0x12bde2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17bf12=>{if('formatBlock'!=_0x17bf12['type']&&'formatInline'!=_0x17bf12['type'])return;const {data:_0x2dd1f1}=_0x17bf12;return _0x2dd1f1&&'removeFormat'==_0x2dd1f1['commandName']?{'type':'format','content':o(_0x12bde2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x2aad9b{['afterInit'](){const _0x5ff478=this['editor'];if(!_0x5ff478['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x13b5ce=_0x5ff478['plugins']['get']('TrackChangesEditing');_0x13b5ce['enableCommand']('goToPreviousRestrictedEditingException'),_0x13b5ce['enableCommand']('goToNextRestrictedEditingException');const _0x32389d=_0x5ff478['plugins']['get']('RestrictedEditingModeEditing');_0x32389d['enableCommand']('trackChanges'),_0x32389d['enableCommand']('acceptSuggestion'),_0x32389d['enableCommand']('discardSuggestion'),_0x32389d['enableCommand']('acceptAllSuggestions'),_0x32389d['enableCommand']('discardAllSuggestions'),_0x32389d['enableCommand']('acceptSelectedSuggestions'),_0x32389d['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x2aad9b{['afterInit'](){const _0x4017b9=this['editor'];if(!_0x4017b9['plugins']['has']('ShiftEnter'))return;const _0x2b60c7=_0x4017b9['plugins']['get']('TrackChangesEditing');_0x2b60c7['enableCommand']('shiftEnter'),_0x2b60c7['descriptionFactory']['registerElementLabel']('softBreak',_0x4fbe2b=>o(_0x4017b9['locale'],'ELEMENT_LINE_BREAK',_0x4fbe2b));}}function an(_0x30c7d7,_0x3d850a,_0x2abb33){const _0x41854=[];for(const _0x2cb84d of _0x3d850a['getItems']())_0x2cb84d['hasAttribute'](_0x30c7d7)&&_0x41854['push'](_0x2abb33['createRangeOn'](_0x2cb84d));return _0x41854;}class $t extends _0x2aad9b{['afterInit'](){const _0x2d88dd=this['editor'],_0x14b80d=_0x2d88dd['plugins']['get']('TrackChangesEditing');_0x2d88dd['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x14b80d['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x379e91=this['editor'],_0x55d9a8=_0x379e91['model'],_0x2030a7=_0x379e91['locale'],_0x21ca35=_0x379e91['plugins']['get']('TrackChangesEditing'),_0x1abdb5='restrictedEditingException',_0x35f89e=_0x379e91['commands']['get'](_0x1abdb5);_0x21ca35['enableCommand'](_0x1abdb5,(_0x4aff2d,_0x4c7268={})=>{const _0x388cab=_0x55d9a8['document']['selection'];if(_0x388cab['isCollapsed'])return void _0x4aff2d(_0x4c7268);const _0x35ffb3=void 0x0!==_0x4c7268['forceValue']?_0x4c7268['forceValue']:!_0x35f89e['value'];_0x55d9a8['change'](()=>{const _0x33d947=Array['from'](_0x388cab['getRanges']());for(const _0x1ef16d of _0x33d947){const _0x261eed=_0x35ffb3?[_0x1ef16d]:an(_0x1abdb5,_0x1ef16d,_0x55d9a8);for(const _0x1bfdb5 of _0x261eed)_0x21ca35['markInlineFormat'](_0x1bfdb5,{'commandName':_0x1abdb5,'commandParams':[{'forceValue':_0x35ffb3}]});}});}),_0x21ca35['descriptionFactory']['registerDescriptionCallback'](_0x115ea6=>{if('formatBlock'!=_0x115ea6['type']&&'formatInline'!=_0x115ea6['type'])return;const {data:_0x1b3f24}=_0x115ea6;return _0x1b3f24&&_0x1b3f24['commandName']==_0x1abdb5?_0x1b3f24['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2030a7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2030a7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x169ebc=this['editor'],_0x9f539f=_0x169ebc['locale'],_0x25004a=_0x169ebc['plugins']['get']('TrackChangesEditing'),_0x36dbf0='restrictedEditingExceptionBlock',_0x3e1337=this['editor']['commands']['get'](_0x36dbf0);_0x25004a['enableCommand'](_0x36dbf0,(_0x31a867,_0x2779c1={})=>{const _0x2fa25c=this['editor']['model']['document']['selection'],_0x37786a=_0x2779c1&&void 0x0!==_0x2779c1['forceValue']?_0x2779c1['forceValue']:!_0x3e1337['value'];let _0x1588e2=[];if(_0x37786a){const _0x6c7b05=Array['from'](_0x2fa25c['getSelectedBlocks']())['filter'](_0x516558=>function(_0x4356cc){return!!_0x4356cc['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x516558)||function(_0x1ace08,_0x26a4d5){const _0x306647=_0x26a4d5['createContext'](_0x1ace08['parent']);if(!_0x26a4d5['checkChild'](_0x306647,'restrictedEditingException'))return!0x1;if(!_0x26a4d5['checkChild'](_0x306647['push']('restrictedEditingException'),_0x1ace08))return!0x1;return!0x0;}(_0x516558,this['editor']['model']['schema']));_0x1588e2=to(_0x6c7b05,_0x169ebc['model']);}else{const _0x1b15d8=Array['from'](_0x2fa25c['getSelectedBlocks']())['map'](_0x409f73=>function(_0x3a1fde){let _0x424d24=_0x3a1fde;for(;_0x424d24['parent'];){if('restrictedEditingException'==_0x424d24['parent']['name'])return _0x424d24;_0x424d24=_0x424d24['parent'];}return null;}(_0x409f73))['filter'](_0x342170=>!!_0x342170);_0x1588e2=to(_0x1b15d8,_0x169ebc['model']);}_0x169ebc['model']['change'](()=>{for(const _0x483f5c of _0x1588e2)_0x25004a['markBlockFormat'](_0x483f5c,{'commandName':_0x36dbf0,'commandParams':[{'forceValue':_0x37786a}]});});}),_0x25004a['descriptionFactory']['registerDescriptionCallback'](_0x1a2002=>{const {data:_0x236905}=_0x1a2002;if(_0x236905&&_0x236905['commandName']==_0x36dbf0)return _0x236905['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9f539f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x9f539f,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x2aad9b{['afterInit'](){const _0x3fbae4=this['editor'];if(!_0x3fbae4['plugins']['has']('Style')||!_0x3fbae4['plugins']['has']('DataSchema'))return;const _0x1e60bd=_0x3fbae4['plugins']['get']('TrackChangesEditing'),_0x59a18a=_0x3fbae4['locale'],_0x413970=_0x3fbae4['config']['get']('style')||{},_0xd3ef1=_0x3fbae4['plugins']['get']('GeneralHtmlSupport'),_0x4d2dea=_0x3fbae4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3fbae4['plugins']['get']('DataSchema'),_0x413970['definitions']);_0x1e60bd['enableDefaultAttributesIntegration']('style');const _0x14ea5c=new Set();for(const _0x32a09c of _0x4d2dea['block']){const _0xb16710=_0xd3ef1['getGhsAttributeNameForElement'](_0x32a09c['element']);_0x14ea5c['add'](_0xb16710);}const _0x4e63b5=new Set();for(const _0x5878e8 of _0x4d2dea['inline']){const _0x3186a2=_0xd3ef1['getGhsAttributeNameForElement'](_0x5878e8['element']);_0x4e63b5['add'](_0x3186a2);for(const _0x1361d3 of _0x5878e8['ghsAttributes'])_0x4e63b5['add'](_0x1361d3);}for(const _0x488d4f of _0x14ea5c)_0x1e60bd['descriptionFactory']['registerAttributeLabel'](_0x488d4f,o(_0x59a18a,'FORMAT_STYLE'));for(const _0x204e9c of _0x4e63b5)_0x1e60bd['descriptionFactory']['registerAttributeLabel'](_0x204e9c,o(_0x59a18a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44b1d1=this['editor'],_0x449acd=_0x44b1d1['locale'];_0x44b1d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x471d34=>{if('formatBlock'!=_0x471d34['type']&&'formatInline'!=_0x471d34['type'])return;const {data:_0x3bafb5}=_0x471d34;return _0x3bafb5&&'style'===_0x3bafb5['commandName']?_0x3bafb5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x449acd,'*Set\x20format:*\x20%0',_0x3bafb5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x449acd,'*Remove\x20format:*\x20%0',_0x3bafb5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x2aad9b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x8203d3){super(_0x8203d3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x431729=this['editor'],_0x5f08b2=_0x431729['model']['document']['selection'];if(!_0x431729['plugins']['has']('TableEditing'))return;const _0x58b84b=_0x431729['locale'],_0x37182=_0x431729['plugins']['get']('TrackChangesEditing'),_0x4e0d1f=_0x431729['plugins']['get']('TableUtils');_0x37182['descriptionFactory']['registerElementLabel']('table',_0x19957e=>o(_0x58b84b,'ELEMENT_TABLE',_0x19957e)),this['_setupColumnsRowsFixing'](),_0x37182['enableCommand']('insertTable'),_0x37182['enableCommand']('selectTableRow'),_0x37182['enableCommand']('selectTableColumn');for(const _0x38307a of['insertTableRowAbove','insertTableRowBelow']){const _0x28c21b=_0x431729['commands']['get'](_0x38307a);_0x37182['enableCommand'](_0x38307a,_0x15c8b4=>{_0x431729['model']['change'](_0x374e79=>{_0x15c8b4();const _0x4dac7d='above'===_0x28c21b['order'],_0x9f1bc4=_0x4e0d1f['getSelectionAffectedTableCells'](_0x5f08b2),_0x26803b=_0x4e0d1f['getRowIndexes'](_0x9f1bc4),_0x137538=_0x4dac7d?_0x26803b['first']-0x1:_0x26803b['last']+0x1,_0xdae0cb=_0x9f1bc4[0x0]['findAncestor']('table'),_0x2605a1=_0x4e0d1f['createTableWalker'](_0xdae0cb,{'startRow':_0x137538,'endRow':_0x137538}),_0x5d7b62=Array['from'](_0x2605a1)['map'](_0x34e551=>_0x374e79['createRangeOn'](_0x34e551['cell']));_0x37182['markMultiRangeInsertion'](_0x5d7b62,'tableRow');});});}for(const _0x110817 of['insertTableColumnLeft','insertTableColumnRight']){const _0x32419e=_0x431729['commands']['get'](_0x110817);_0x37182['enableCommand'](_0x110817,_0x4aae85=>{_0x431729['model']['change'](_0x37104c=>{_0x4aae85();const _0x14a467='left'===_0x32419e['order'],_0x143f5d=_0x4e0d1f['getSelectionAffectedTableCells'](_0x5f08b2),_0x17c74d=_0x4e0d1f['getColumnIndexes'](_0x143f5d),_0x386736=_0x14a467?_0x17c74d['first']-0x1:_0x17c74d['last']+0x1,_0x4dcafc=_0x143f5d[0x0]['findAncestor']('table'),_0x29bb87=_0x4e0d1f['createTableWalker'](_0x4dcafc,{'startRow':0x0,'column':_0x386736,'includeAllSlots':!0x1}),_0x95b2eb=Array['from'](_0x29bb87)['map'](_0x2904be=>_0x37104c['createRangeOn'](_0x2904be['cell']));_0x37182['markMultiRangeInsertion'](_0x95b2eb,'tableColumn');});});}for(const _0x9a7fa8 of['removeTableRow','removeTableColumn']){const _0x197312=_0x9a7fa8['substr'](0xb),_0x25cac4=_0x197312['toLowerCase'](),_0x194f84=_0x25cac4['substr'](0x0,0x3)+'span',_0x50cc52='table'+_0x197312,_0x11e597='min'+_0x197312,_0x45b57f='max'+_0x197312;_0x37182['enableCommand'](_0x9a7fa8,()=>{_0x431729['model']['change'](_0x9f37d0=>{const _0xd91df3=_0x4e0d1f['getSelectionAffectedTableCells'](_0x5f08b2),_0x1b79e3=_0xd91df3[0x0]['findAncestor']('table');let _0xb1fa4;if('removeTableRow'==_0x9a7fa8){const _0x3a960d=_0x4e0d1f['getRowIndexes'](_0xd91df3);_0xb1fa4={'startRow':_0x3a960d['first'],'endRow':_0x3a960d['last'],'includeAllSlots':!0x0};}else{const _0x1a6180=_0x4e0d1f['getColumnIndexes'](_0xd91df3);_0xb1fa4={'startColumn':_0x1a6180['first'],'endColumn':_0x1a6180['last'],'includeAllSlots':!0x0};}const _0x59872=_0x4e0d1f['createTableWalker'](_0x1b79e3,_0xb1fa4),_0x45a260=Array['from'](_0x59872)['map'](({cell:_0x3d5f48})=>_0x3d5f48),_0x4cc5fe=_e(_0x45a260['filter'](_0x57b067=>_0x57b067['hasAttribute'](_0x194f84))),_0x50e8a8=_e(_0x45a260['filter'](_0xdfdb5d=>!_0xdfdb5d['hasAttribute'](_0x194f84)))['map'](_0x49007c=>_0x9f37d0['createRangeOn'](_0x49007c)),_0x1a3160=_0x37182['markMultiRangeDeletion'](_0x50e8a8,_0x50cc52);if(_0x1a3160&&('tableRow'==_0x1a3160['subType']||'tableColumn'==_0x1a3160['subType'])){const _0x4cf63a=this['_getSuggestionCoords'](_0x1a3160);for(const _0x4f6a4d of _0x4cc5fe){const _0x1b8393=_0x9f37d0['createRangeOn'](_0x4f6a4d),_0x52d1ae=_0x4e0d1f['getCellLocation'](_0x4f6a4d),_0x2b454c=_0x4f6a4d['getAttribute'](_0x194f84)-0x1,_0x36060b=_0x4cf63a[_0x11e597],_0x1f367a=_0x4cf63a[_0x45b57f];_0x36060b<=_0x52d1ae[_0x25cac4]&&_0x52d1ae[_0x25cac4]+_0x2b454c<=_0x1f367a&&_0x1a3160['addRange'](_0x1b8393);}}});});}function _0x14cb22(_0x27768e){const _0x2b53c4=Array['from'](_0x5f08b2['getRanges']())['map'](_0x187d9e=>_0x4c3029['fromRange'](_0x187d9e));_0x431729['model']['change'](_0x885dd5=>{const _0x2d5816=_0x885dd5['batch'];_0x27768e=_0x27768e['filter'](_0x40a63d=>'$graveyard'!=_0x40a63d['root']['rootName']),_0x885dd5['setSelection'](_0x27768e),_0x431729['commands']['get']('removeTableRow')['refresh'](),_0x431729['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x431729['model']['enqueueChange'](()=>{_0x431729['model']['enqueueChange'](_0x2d5816,_0x44c80a=>{const _0x4f3433=_0x2b53c4['filter'](_0x4a302d=>'$graveyard'!=_0x4a302d['root']['rootName']);_0x4f3433['length']>0x0&&_0x44c80a['setSelection'](_0x4f3433);for(const _0x2d415f of _0x2b53c4)_0x2d415f['detach']();});});});}function _0x103d8e(_0x4cb2d6){_0x431729['model']['change'](_0x402eef=>{const _0x59599b=Array['from'](_0x5f08b2['getRanges']())['map'](_0x2ab571=>_0x4c3029['fromRange'](_0x2ab571)),_0x2092b2=[];for(const _0x14ec1b of _0x4cb2d6)for(const _0x370a92 of _0x14ec1b['getItems']({'shallow':!0x0}))_0x2092b2['push'](_0x370a92);for(const _0x889658 of _0x2092b2)'$graveyard'!=_0x889658['root']['rootName']&&(_0x402eef['setSelection'](_0x402eef['createPositionAt'](_0x889658,0x0)),_0x431729['commands']['get']('removeTableColumn')['refresh'](),_0x431729['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x356c4b=_0x59599b['filter'](_0x3985e6=>'$graveyard'!=_0x3985e6['root']['rootName']);_0x356c4b['length']>0x0&&_0x402eef['setSelection'](_0x356c4b);for(const _0x245c7d of _0x59599b)_0x245c7d['detach']();});}function _0x4ae694(_0x27b238,_0x458cbb){return _0x458cbb['every'](_0x1707eb=>_0x27b238['some'](_0x596077=>_0x596077['end']['isEqual'](_0x1707eb['start'])||_0x1707eb['end']['isEqual'](_0x596077['start'])));}function _0x12ce21(_0x3be459,_0x416010){return!_0x3be459['some'](_0x5350e6=>_0x416010['some'](_0x3eacfe=>_0x5350e6['isIntersecting'](_0x3eacfe)))&&_0x3be459['some'](_0x4ddf32=>_0x416010['some'](_0x4a2360=>_0x4ddf32['end']['isTouching'](_0x4a2360['start'])));}_0x37182['descriptionFactory']['registerDescriptionCallback'](_0x31d6b4=>{if('insertion'!=_0x31d6b4['type']&&'deletion'!=_0x31d6b4['type'])return;const _0xf3abfa=_0x31d6b4['getContainedElement']();if(null!=_0xf3abfa&&_0xf3abfa['is']('element','table')){if('insertion'==_0x31d6b4['type']){const _0x538f4b=_0x31d6b4['getItems']()['filter'](_0x46beec=>_0x46beec['is']('$textProxy'))['map'](_0x12e933=>_0x12e933['data']);if(_0x538f4b['length'])return{'type':'insertion','content':o(_0x58b84b,'*Insert:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x538f4b['join']('\x20')+'\x22'))};}if('deletion'==_0x31d6b4['type']){const _0x27ebe7=_0x31d6b4['getItems']()['filter'](_0x19d3a2=>_0x19d3a2['is']('$textProxy'))['map'](_0x46f9bd=>_0x46f9bd['data']);if(_0x27ebe7['length'])return{'type':'deletion','content':o(_0x58b84b,'*Remove:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x27ebe7['join']('\x20')+'\x22'))};}}}),_0x37182['descriptionFactory']['registerDescriptionCallback'](_0x19d3b6=>{if('tableRow'==_0x19d3b6['subType']){const _0x4208ba=_0x19d3b6['getItems']()['filter'](_0x56cd9c=>_0x56cd9c['is']('$textProxy'))['map'](_0x1afb58=>_0x1afb58['data']),_0x3b2707=this['_getSuggestionCoords'](_0x19d3b6),_0x2629e0=_0x3b2707['maxRow']-_0x3b2707['minRow']+0x1;if('insertion'==_0x19d3b6['type'])return _0x4208ba['length']?{'type':'insertion','content':o(_0x58b84b,'*Insert:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2629e0,'\x22'+_0x4208ba['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x58b84b,'*Insert:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_ROW',_0x2629e0))};if('deletion'==_0x19d3b6['type'])return _0x4208ba['length']?{'type':'deletion','content':o(_0x58b84b,'*Remove:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2629e0,'\x22'+_0x4208ba['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x58b84b,'*Remove:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_ROW',_0x2629e0))};}if('tableColumn'==_0x19d3b6['subType']){const _0x539cdc=_0x19d3b6['getItems']()['filter'](_0x5f3b57=>_0x5f3b57['is']('$textProxy'))['map'](_0x27476f=>_0x27476f['data']),_0x54ae41=this['_getSuggestionCoords'](_0x19d3b6),_0x1b16c0=_0x54ae41['maxColumn']-_0x54ae41['minColumn']+0x1;if('insertion'==_0x19d3b6['type'])return _0x539cdc['length']?{'type':'insertion','content':o(_0x58b84b,'*Insert:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b16c0,'\x22'+_0x539cdc['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x58b84b,'*Insert:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_COLUMN',_0x1b16c0))};if('deletion'==_0x19d3b6['type'])return _0x539cdc['length']?{'type':'deletion','content':o(_0x58b84b,'*Remove:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b16c0,'\x22'+_0x539cdc['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x58b84b,'*Remove:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_COLUMN',_0x1b16c0))};}}),_0x37182['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x14cb22),_0x37182['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x14cb22),_0x37182['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x103d8e),_0x37182['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x103d8e),_0x37182['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4ae694),_0x37182['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4ae694),_0x37182['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x12ce21),_0x37182['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x12ce21);}['_acceptFormatSuggestionCallbackFactory'](){const _0x33cb42=this['editor'],_0x1e0399=_0x33cb42['model']['document']['selection'];return(_0x422b60,_0xb4a4ed)=>{_0x33cb42['model']['change'](_0x47ddac=>{const {commandName:_0x57b955,commandParams:_0x508cbb}=_0xb4a4ed;let _0x1ddd47=_0x422b60[0x0]['end']['nodeBefore'];_0x508cbb&&_0x508cbb[0x0]&&!0x1===_0x508cbb[0x0]['forceValue']&&(_0x1ddd47=_0x422b60[0x0]['start']['nodeAfter']);const _0x857355=_0x47ddac['createRangeIn'](_0x1ddd47);if('$graveyard'==_0x857355['root']['rootName'])return;const _0x473b17=Array['from'](_0x1e0399['getRanges']())['map'](_0x379781=>_0x4c3029['fromRange'](_0x379781));_0x47ddac['setSelection'](_0x857355),_0x33cb42['commands']['get'](_0x57b955)['refresh'](),_0x508cbb['push']({'forceDefaultExecution':!0x0}),_0x33cb42['execute'](_0x57b955,..._0x508cbb);const _0x262c73=_0x473b17['filter'](_0xda4ab6=>'$graveyard'!=_0xda4ab6['root']['rootName']);_0x262c73['length']>0x0&&_0x47ddac['setSelection'](_0x262c73);for(const _0xe28b80 of _0x473b17)_0xe28b80['detach']();});};}['_getCoordsForCells'](_0x2625c9){const _0x252e64=this['editor']['plugins']['get']('TableUtils');let _0x2be9f0=Number['MAX_SAFE_INTEGER'],_0x3135c2=Number['MIN_SAFE_INTEGER'],_0x433eb9=Number['MAX_SAFE_INTEGER'],_0x5e3165=Number['MIN_SAFE_INTEGER'];for(const _0x1db748 of _0x2625c9){if('$graveyard'==_0x1db748['root']['rootName'])continue;const {row:_0x4b5e51,column:_0x16403a}=_0x252e64['getCellLocation'](_0x1db748),_0x3c3f98=_0x1db748['hasAttribute']('rowspan')?_0x1db748['getAttribute']('rowspan')-0x1:0x0,_0x2c2345=_0x1db748['hasAttribute']('colspan')?_0x1db748['getAttribute']('colspan')-0x1:0x0;_0x2be9f0=_0x4b5e51<_0x2be9f0?_0x4b5e51:_0x2be9f0,_0x3135c2=_0x4b5e51+_0x3c3f98>_0x3135c2?_0x4b5e51+_0x3c3f98:_0x3135c2,_0x433eb9=_0x16403a<_0x433eb9?_0x16403a:_0x433eb9,_0x5e3165=_0x16403a+_0x2c2345>_0x5e3165?_0x16403a+_0x2c2345:_0x5e3165;}return{'minRow':_0x2be9f0,'maxRow':_0x3135c2,'minColumn':_0x433eb9,'maxColumn':_0x5e3165};}['_setupColumnsRowsFixing'](){const _0x3753f6=this['editor'],_0x3aec27=_0x3753f6['plugins']['get']('TrackChangesEditing'),_0x331075=_0x3753f6['plugins']['get']('TableUtils');_0x3753f6['model']['document']['on']('change:data',()=>{const _0x244fa2=Array['from'](_0x3753f6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x112f9c,data:_0x361613}of _0x244fa2){const {group:_0x1e72f5,id:_0x5e15cb,subType:_0x40ac34}=_0x3aec27['_splitMarkerName'](_0x112f9c);if('suggestion'!=_0x1e72f5)continue;if(null!=_0x361613['oldRange'])continue;const _0x2424e1=_0x3aec27['getSuggestion'](_0x5e15cb);this['_tablePostFixingSubtypes']['includes'](_0x40ac34)&&this['_tableSuggestions']['add'](_0x2424e1);}},{'priority':'low'});const _0x20b405=(_0xcbc5c6,_0x412b6f)=>{let _0x377dfc=!0x1;const _0x40dad3=_0x412b6f['createRangeOn'](_0xcbc5c6),_0x209176=_0xcbc5c6['findAncestor']('table'),_0x1245f7=_0x331075['getCellLocation'](_0xcbc5c6);for(const _0x4d6afb of this['_tableSuggestions']){const _0x1decd9=_0x4d6afb['subType'],_0x4dfeaa=_0x1decd9['startsWith']('tablePaste'),_0x357bf9=_0x1decd9['substr'](_0x4dfeaa?0xa:0x5),_0xcccb93=_0x357bf9['toLowerCase'](),_0x5e7f20=_0xcccb93['substr'](0x0,0x3)+'span',_0x45b7dc='min'+_0x357bf9,_0xfd731e='max'+_0x357bf9;if(!_0x4d6afb['isInContent'])continue;if(_0x209176!=_0x4d6afb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4d6afb['isIntersectingWithRange'](_0x40dad3))continue;const _0x3354f7=_0xcbc5c6['hasAttribute'](_0x5e7f20)?_0xcbc5c6['getAttribute'](_0x5e7f20)-0x1:0x0,_0x345866=this['_getSuggestionCoords'](_0x4d6afb),_0x41dad2=_0x345866[_0x45b7dc],_0x1f41a0=_0x345866[_0xfd731e];_0x41dad2<=_0x1245f7[_0xcccb93]&&_0x1245f7[_0xcccb93]+_0x3354f7<=_0x1f41a0&&(_0x4d6afb['addRange'](_0x40dad3),_0x377dfc=!0x0);}return _0x377dfc;};_0x3753f6['model']['document']['registerPostFixer'](_0x367168=>{let _0x16d92f=!0x1;for(const _0x35ff9f of _0x3753f6['model']['document']['differ']['getChanges']())if('insert'==_0x35ff9f['type']){if('tableRow'==_0x35ff9f['name']){for(const _0x53434b of _0x35ff9f['position']['nodeAfter']['getChildren']())_0x16d92f=_0x16d92f||_0x20b405(_0x53434b,_0x367168);}else'tableCell'==_0x35ff9f['name']&&(_0x16d92f=_0x16d92f||_0x20b405(_0x35ff9f['position']['nodeAfter'],_0x367168));}return _0x16d92f;});}['_getSuggestionCoords'](_0x4fcc51){return this['_getCoordsForCells'](_0x4fcc51['getRanges']()['map'](_0x3a0c3a=>_0x3a0c3a['start']['nodeAfter']));}}function _e(_0x53249e){return Array['from'](new Set(_0x53249e)['values']());}class Bt extends _0x2aad9b{static get['requires'](){return[Dt];}['afterInit'](){const _0x4ecf1c=this['editor'],_0xed16a=_0x4ecf1c['model']['document']['selection'],_0x5efb2b=_0x4ecf1c['locale'];if(!_0x4ecf1c['plugins']['has']('TableEditing'))return;const _0x17639=_0x4ecf1c['plugins']['get']('TrackChangesEditing'),_0x15267b=_0x4ecf1c['plugins']['get']('TableUtils'),_0x5e252f=_0x4ecf1c['plugins']['get'](Dt);_0x5e252f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x17639['enableCommand']('mergeTableCells',()=>{const _0x173f25=_0x15267b['getSelectionAffectedTableCells'](_0x4ecf1c['model']['document']['selection']);_0x4ecf1c['model']['change'](()=>{_0x17639['markMultiRangeBlockFormat'](_0x173f25,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4ecf1c['commands']['get']('mergeTableCells')['on']('execute',(_0x41af50,_0x5673fe)=>{_0x4ecf1c['commands']['get']('trackChanges')['value']&&(_0x5673fe['length']>0x0&&_0x5673fe[_0x5673fe['length']-0x1]&&_0x5673fe[_0x5673fe['length']-0x1]['forceDefaultExecution']||_0x17639['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x41af50['stop']());},{'priority':'highest'});for(const _0x34f403 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x399a7a=_0x4ecf1c['commands']['get'](_0x34f403);_0x17639['enableCommand'](_0x34f403,()=>{const _0x46ee4e=_0x4ecf1c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x357f5c=>_0x357f5c['is']('element','tableCell')),_0x231f10=_0x399a7a['value'];_0x4ecf1c['model']['change'](()=>{_0x17639['markMultiRangeBlockFormat']([_0x46ee4e,_0x231f10],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x38ddc5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4e5070=_0x4ecf1c['commands']['get'](_0x38ddc5);_0x17639['enableCommand'](_0x38ddc5,()=>{const _0xb6b4a=_0x15267b['getSelectionAffectedTableCells'](_0x4ecf1c['model']['document']['selection'])[0x0],_0x58bb08=_0xb6b4a['findAncestor']('table'),{column:_0x268666,row:_0x22b39f}=_0x15267b['getCellLocation'](_0xb6b4a);let _0xdacc77=[];if('horizontally'==_0x4e5070['direction']){const _0x3813ef=_0x15267b['createTableWalker'](_0x58bb08,{'startRow':_0x22b39f,'endRow':_0x22b39f,'includeAllSlots':!0x0});_0xdacc77=Array['from'](_0x3813ef)['map'](_0x1e7e49=>_0x1e7e49['cell']);}else{const _0x3a648d=_0x15267b['createTableWalker'](_0x58bb08,{'column':_0x268666,'includeAllSlots':!0x0});_0xdacc77=Array['from'](_0x3a648d)['map'](_0xed7a39=>_0xed7a39['cell']);}_0x4ecf1c['model']['change'](_0x17f29f=>{_0x17639['markBlockFormat'](_0x17f29f['createRangeOn'](_0xb6b4a),{'commandName':_0x38ddc5,'commandParams':[]},_0xdacc77,_0x38ddc5);});});}_0x17639['descriptionFactory']['registerDescriptionCallback'](_0x3b216d=>{if('formatBlock'!=_0x3b216d['type']&&'formatInline'!=_0x3b216d['type'])return;const {data:_0x19b9c8}=_0x3b216d;return _0x19b9c8&&'mergeTableCells'==_0x19b9c8['commandName']?{'type':'format','content':o(_0x5efb2b,'*Merge\x20cells*')}:void 0x0;}),_0x17639['descriptionFactory']['registerDescriptionCallback'](_0xa0b8a7=>{if('formatBlock'!=_0xa0b8a7['type']&&'formatInline'!=_0xa0b8a7['type'])return;const {data:_0x3b9d8a}=_0xa0b8a7;return _0x3b9d8a?'splitTableCellVertically'==_0x3b9d8a['commandName']?{'type':'format','content':o(_0x5efb2b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3b9d8a['commandName']?{'type':'format','content':o(_0x5efb2b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x976f1b=_0x5e252f['_acceptFormatSuggestionCallbackFactory']();for(const _0x5ef8d3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x17639['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ef8d3,'accept',_0x976f1b);for(const _0x36d1bd of['splitTableCellVertically','splitTableCellHorizontally'])_0x17639['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x36d1bd,'accept',_0x976f1b);_0x17639['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1fca0e=>{_0x4ecf1c['model']['change'](_0x33603c=>{const _0x55e0d3=Array['from'](_0xed16a['getRanges']())['map'](_0x4692d4=>_0x4c3029['fromRange'](_0x4692d4));_0x33603c['setSelection'](_0x1fca0e),_0x4ecf1c['commands']['get']('mergeTableCells')['refresh'](),_0x4ecf1c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3d8544=_0x55e0d3['filter'](_0x235513=>'$graveyard'!=_0x235513['root']['rootName']);_0x3d8544['length']>0x0&&_0x33603c['setSelection'](_0x3d8544);for(const _0x51ba66 of _0x55e0d3)_0x51ba66['detach']();});});for(const _0x19f64a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x344a3f=_0x4ecf1c['commands']['get'](_0x19f64a);_0x344a3f['on']('set:isEnabled',(_0x2f71f0,_0x27706e,_0x323838)=>{if(_0x323838){const _0x3a1761=_0x4ecf1c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ee5af=>_0x3ee5af['is']('element','tableCell'));this['_areMergableCells'](_0x344a3f['value'],_0x3a1761)||(_0x2f71f0['return']=!0x1,_0x2f71f0['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x59cea5=this['editor']['commands']['get']('mergeTableCells'),_0x1028da=this['editor']['plugins']['get']('TableUtils');if(!_0x59cea5['isEnabled'])return!0x1;const _0x3a7c77=_0x1028da['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2f0bb8 of _0x3a7c77)for(const _0x478219 of _0x3a7c77)if(_0x2f0bb8!=_0x478219&&!this['_areMergableCells'](_0x2f0bb8,_0x478219))return!0x1;return!0x0;}['_areMergableCells'](_0x2babf7,_0x41c8d6){const _0x40e2ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48abe7=this['editor']['model']['createRangeOn'](_0x2babf7),_0x3d557e=this['editor']['model']['createRangeOn'](_0x41c8d6),_0x3ea8f6=new Set(),_0x3b14b5=new Set();for(const _0x4c038b of _0x40e2ac['getSuggestions']())if(('insertion'==_0x4c038b['type']||'deletion'==_0x4c038b['type']||'mergeTableCells'==_0x4c038b['subType'])&&_0x4c038b['isInContent']){for(const _0x355128 of _0x4c038b['getRanges']())_0x355128['containsRange'](_0x48abe7,!0x0)&&_0x3ea8f6['add'](_0x4c038b['type']+':'+_0x4c038b['author']['id']),_0x355128['containsRange'](_0x3d557e,!0x0)&&_0x3b14b5['add'](_0x4c038b['type']+':'+_0x4c038b['author']['id']);}if(_0x3ea8f6['size']!=_0x3b14b5['size'])return!0x1;for(const _0x27f6de of _0x3ea8f6)if(!_0x3b14b5['has'](_0x27f6de))return!0x1;return!0x0;}}class Ot extends _0x2aad9b{static get['requires'](){return[Dt];}['afterInit'](){const _0x28c62f=this['editor'];if(!_0x28c62f['plugins']['has']('TableEditing'))return;const _0x1e1ea3=_0x28c62f['locale'],_0x5e66b7=_0x28c62f['plugins']['get']('TrackChangesEditing');_0x5e66b7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5e66b7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5e66b7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1e1ea3,'FORMAT_HEADER_ROW')),_0x5e66b7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1e1ea3,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4322d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0xda8e4f=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x4322d3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xda8e4f),_0x4322d3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xda8e4f),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x3397ef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49be90=this['editor']['plugins']['get']('TableUtils');function _0x43a865({showActiveMarker:_0x383ef1=!0x0,setDataAttribute:_0x4ef214=!0x0}={}){return(_0x3b031d,_0x5a35cd,_0x584b5c)=>{const {type:_0x3a69d7,id:_0x349a49}=_0x3397ef['_splitMarkerName'](_0x5a35cd['markerName']);if(!_0x3397ef['hasSuggestion'](_0x349a49))return;const _0x2cba09=_0x3397ef['getSuggestion'](_0x349a49),_0x495fc6=_0x2cba09['data'];if('formatBlock'!=_0x2cba09['type']||!_0x495fc6||'setTableColumnHeader'!=_0x495fc6['commandName'])return;if(_0x5a35cd['item'])return void _0x3b031d['stop']();if(!_0x584b5c['consumable']['consume'](_0x5a35cd['markerRange'],_0x3b031d['name']))return;const _0xa07d74=_0x5a35cd['markerRange']['start']['nodeAfter'],_0x533c52=_0x5a35cd['markerRange']['end']['nodeBefore'],_0x47c628=_0xa07d74['parent']['parent'],{column:_0x48d8be}=_0x49be90['getCellLocation'](_0xa07d74),{column:_0x348c4e}=_0x49be90['getCellLocation'](_0x533c52);for(let _0x26a5c0=_0x48d8be;_0x26a5c0<=_0x348c4e;_0x26a5c0++){const _0x161b75=_0x49be90['createTableWalker'](_0x47c628,{'column':_0x26a5c0,'includeAllSlots':!0x1});for(const _0x5e77a6 of _0x161b75){const _0x4a1be8=_0x5e77a6['cell'],_0xd5bf61=_0x584b5c['mapper']['toViewElement'](_0x4a1be8);_0x584b5c['writer']['addClass']('ck-suggestion-marker-'+_0x3a69d7,_0xd5bf61),_0x4ef214&&_0x584b5c['writer']['setAttribute']('data-suggestion',_0x349a49,_0xd5bf61),_0x584b5c['mapper']['bindElementToMarker'](_0xd5bf61,_0x5a35cd['markerName']),_0x383ef1&&(_0x3397ef['activeMarkers']['includes'](_0x5a35cd['markerName'])?_0x584b5c['writer']['addClass']('ck-suggestion-marker--active',_0xd5bf61):_0x584b5c['writer']['removeClass']('ck-suggestion-marker--active',_0xd5bf61));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x43a865(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x160554,_0x217b06,_0x139f40)=>{_0x139f40['options']['showSuggestionHighlights']&&_0x43a865({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x160554,_0x217b06,_0x139f40);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2d5cfb,_0x38bcbc,_0xf52894)=>{const {type:_0x3781ec,id:_0x3b7b70}=_0x3397ef['_splitMarkerName'](_0x38bcbc['markerName']);if(!_0x3397ef['hasSuggestion'](_0x3b7b70))return;const _0x403971=_0x3397ef['getSuggestion'](_0x3b7b70),_0x5cb762=_0x403971['data'];if('formatBlock'!=_0x403971['type']||!_0x5cb762||'setTableColumnHeader'!=_0x5cb762['commandName'])return;const _0x50027f=_0xf52894['mapper']['markerNameToElements'](_0x38bcbc['markerName']);if(_0x50027f){for(const _0x131343 of _0x50027f)_0xf52894['writer']['removeClass']('ck-suggestion-marker-'+_0x3781ec,_0x131343),_0xf52894['writer']['removeClass']('ck-suggestion-marker--active',_0x131343),_0xf52894['writer']['removeAttribute']('data-suggestion',_0x131343),_0xf52894['mapper']['unbindElementFromMarkerName'](_0x131343,_0x38bcbc['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x278020=this['editor'],_0x406c93=_0x278020['locale'];function _0x2db4da(_0x7255a0){return{'type':'format','content':o(_0x406c93,'*Format:*\x20%0',_0x7255a0)};}_0x278020['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54b68a=>{if('formatBlock'!=_0x54b68a['type'])return;const {data:_0xa6d26a}=_0x54b68a;if(_0xa6d26a){if('setTableRowHeader'==_0xa6d26a['commandName']){const _0x527c5d=_0xa6d26a['commandParams'][0x0]['forceValue'];return _0x2db4da(o(_0x406c93,_0x527c5d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xa6d26a['commandName']){const _0x34ce84=_0xa6d26a['commandParams'][0x0]['forceValue'];return _0x2db4da(o(_0x406c93,_0x34ce84?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x2aad9b{['afterInit'](){const _0x206bbc=this['editor'],_0x1bd84e=_0x206bbc['locale'],_0x4b95b4=_0x206bbc['plugins']['get']('TrackChangesEditing');function _0x31c744(_0x49d37f){return{'type':'format','content':''+o(_0x1bd84e,'*Set\x20table\x20type:*\x20%0',_0x49d37f)};}_0x206bbc['plugins']['has']('TableLayout')&&(_0x4b95b4['enableCommand']('insertTableLayout'),_0x4b95b4['enableDefaultAttributesIntegration']('tableType'),_0x4b95b4['descriptionFactory']['registerElementLabel'](_0x3b6c16=>_0x3b6c16['is']('element','table')&&'layout'===_0x3b6c16['getAttribute']('tableType'),_0x53a7e7=>o(_0x1bd84e,'ELEMENT_LAYOUT_TABLE',_0x53a7e7)),_0x4b95b4['descriptionFactory']['registerDescriptionCallback'](_0x5dac54=>{const {data:_0x37b292}=_0x5dac54;if(_0x37b292&&'tableType'==_0x37b292['key'])switch(_0x37b292['newValue']){case'layout':return _0x31c744(o(_0x1bd84e,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x31c744(o(_0x1bd84e,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x22e52b=>[_0x22e52b,null]));class Mt extends _0x2aad9b{static get['requires'](){return[Dt];}['afterInit'](){const _0x13bf56=this['editor'];if(!_0x13bf56['plugins']['has']('TableClipboard'))return;const _0x3785b5=_0x13bf56['plugins']['get']('TrackChangesEditing'),_0x5d56e6=_0x13bf56['plugins']['get']('TableUtils'),_0x3a6eaa=_0x13bf56['plugins']['get'](Dt),_0x49ee8c=_0x13bf56['plugins']['get']('TableClipboard'),_0x487c04=_0x13bf56['plugins']['get']('TableSelection'),_0x31fb11=_0x13bf56['plugins']['get'](_0x708d7f);_0x3a6eaa['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x13bf56['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x13bf56['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4482c0=null,_0xc2ccf6=!0x1;_0x31fb11['on']('contentInsertion',(_0x33220,_0x3b84ec)=>{_0xc2ccf6='paste'===_0x3b84ec['method'];}),_0x13bf56['model']['on']('insertContent',(_0x5d41d5,_0xd75eff)=>{if(!_0xc2ccf6&&null===_0x487c04['getSelectedTableCells']())return;const [_0x433685,_0x4aec35]=_0xd75eff,_0x3c1a8a=_0xd75eff[_0xd75eff['length']-0x1];_0x3c1a8a&&_0x3c1a8a['forceDefaultExecution']||_0x3785b5['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xb31a19,_0x4ec406,_0x346410,_0x5ed7f2,_0x5c4984){if(_0x4ec406&&!_0x4ec406['is']('documentSelection'))return!0x1;const _0xac51b8=_0x5c4984['getTableIfOnlyTableInContent'](_0xb31a19,_0x346410);if(!_0xac51b8||!Oe(_0xac51b8,void 0x0,_0x5ed7f2))return!0x1;const _0x339b1f=_0x5ed7f2['getSelectionAffectedTableCells'](_0x346410['document']['selection']);if(!_0x339b1f['length'])return!0x1;const _0x373e73=_0x339b1f[0x0]['findAncestor']('table'),_0x327afe=_0x5ed7f2['getRowIndexes'](_0x339b1f),_0x598867=_0x5ed7f2['getColumnIndexes'](_0x339b1f),_0x2ae27f={'startRow':_0x327afe['first'],'endRow':_0x327afe['last'],'startColumn':_0x598867['first'],'endColumn':_0x598867['last']};return 0x1==_0x339b1f['length']&&(_0x2ae27f['endRow']+=_0x5ed7f2['getRows'](_0xac51b8)-0x1,_0x2ae27f['endColumn']+=_0x5ed7f2['getColumns'](_0xac51b8)-0x1),Oe(_0x373e73,_0x2ae27f,_0x5ed7f2);}(_0x433685,_0x4aec35,_0x13bf56['model'],_0x5d56e6,_0x49ee8c)&&(_0x5d41d5['stop'](),_0x4482c0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x13bf56['model']['change'](()=>{_0x13bf56['model']['insertContent'](_0xd75eff[0x0],_0xd75eff[0x1],_0xd75eff[0x2],{'forceDefaultExecution':!0x0});const _0x167464=_0xcdc81a(),{rowInsertionRanges:_0x54deeb,columnInsertionRanges:_0x586d5d,insertionRanges:_0xff0dbc,deletionRanges:_0x1ce683,cells:_0x2ff6bb}=_0x4482c0;_0x54deeb['length']&&_0x3785b5['markMultiRangeInsertion'](_0x54deeb,'tablePasteRow',{'tablePasteChainId':_0x167464}),_0x586d5d['length']&&_0x3785b5['markMultiRangeInsertion'](_0x586d5d,'tablePasteColumn',{'tablePasteChainId':_0x167464}),_0xff0dbc['length']&&(_0x3785b5['markMultiRangeInsertion'](_0xff0dbc,'tablePaste',{'tablePasteChainId':_0x167464,'skipNestingCheck':!0x0}),_0xff0dbc['forEach'](_0x18bdd5=>_0x18bdd5['detach']?.())),_0x1ce683['length']&&(_0x3785b5['markMultiRangeDeletion'](_0x1ce683,'tablePaste',{'tablePasteChainId':_0x167464,'skipNestingCheck':!0x0}),_0x1ce683['forEach'](_0x29eba8=>_0x29eba8['detach']?.()));const _0x4e3c36=_0x3785b5['markMultiRangeBlockFormat'](_0x2ff6bb['map'](({element:_0x1da981})=>_0x1da981),{'formatGroupId':_0xcdc81a()},[],'tablePasteCell',{'tablePasteChainId':_0x167464});if(_0x4e3c36){const _0x2e8bba=_0x4e3c36['getMarkers'](),_0x14d6e6=[];for(const {element:_0x1eb875,attributes:_0x5a5cdb}of _0x2ff6bb){if(!_0x5a5cdb)continue;const _0x3a4bc9=_0x13bf56['model']['createRangeOn'](_0x1eb875),_0x19669e=_0x2e8bba['find'](_0x4ae751=>_0x4ae751['getRange']()['isEqual'](_0x3a4bc9));_0x19669e&&_0x14d6e6['push']([_0x19669e['name'],_0x5a5cdb]);}_0x14d6e6['length']&&_0x4e3c36['setAttribute']('markerAttributes',Object['fromEntries'](_0x14d6e6));}_0x4482c0=null;}));},{'priority':_0x525aa5['high']+0xa}),_0x31fb11['on']('contentInsertion',()=>{_0xc2ccf6=!0x1;},{'priority':'lowest'}),_0x13bf56['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1246f8,_0x12fe15)=>{const [_0x1cd42f,_0x1ca317,,_0x55dbf2]=_0x12fe15;if(!_0x4482c0)return;_0x1246f8['stop']();const _0x5f3200=_0x1cd42f['cell'],_0x2867bd=_0x1ca317,_0x448b3e=Be(_0x5f3200),_0x4b1ab0=Be(_0x2867bd);_0x1246f8['return']=_0x5f3200;let _0x1eaf5d=null,_0x2d1040=null;if(_0x4b1ab0||_0x448b3e){if(_0x448b3e&&!_0x4b1ab0){_0x55dbf2['remove'](_0x5f3200['getChild'](0x0));for(const _0x52e646 of Array['from'](_0x2867bd['getChildren']()))_0x55dbf2['insert'](_0x52e646,_0x5f3200,'end');const _0x48f540=_0x4482c0['rowInsertionIndexes']['includes'](_0x1cd42f['row']),_0x453435=_0x4482c0['columnInsertionIndexes']['includes'](_0x1cd42f['column']);_0x48f540||_0x453435||(_0x1eaf5d=_0x4c3029['fromRange'](_0x55dbf2['createRangeIn'](_0x5f3200)));}else _0x4b1ab0&&!_0x448b3e&&(_0x2d1040=_0x55dbf2['createRangeIn'](_0x5f3200));}else{const _0x29f1de=_0x55dbf2['createElement']('tableCellSuggestion'),_0xa9361a=_0x55dbf2['createElement']('tableCellSuggestion');_0x55dbf2['wrap'](_0x55dbf2['createRangeIn'](_0x5f3200),_0xa9361a),_0x55dbf2['insert'](_0x29f1de,_0x5f3200,0x0);for(const _0x3cd4f4 of Array['from'](_0x2867bd['getChildren']()))_0x55dbf2['insert'](_0x3cd4f4,_0x29f1de,'end');_0x1eaf5d=_0x4c3029['fromRange'](_0x55dbf2['createRangeOn'](_0x29f1de)),_0x2d1040=_0x4c3029['fromRange'](_0x55dbf2['createRangeOn'](_0xa9361a));}const _0x186550=Array['from'](_0x2867bd['getAttributes']())['filter'](([_0x803e1c])=>Re['includes'](_0x803e1c));_0x4482c0['cells']['push']({'element':_0x5f3200,'attributes':_0x186550['length']?Object['fromEntries'](_0x186550):null}),_0x1eaf5d&&_0x4482c0['insertionRanges']['push'](_0x1eaf5d),_0x2d1040&&_0x4482c0['deletionRanges']['push'](_0x2d1040);},{'priority':'high'}),_0x5d56e6['on']('insertColumns',(_0x566cac,_0x4af103)=>{const [_0x4635e5,_0x513309={}]=_0x4af103;if(!_0x4482c0)return;const _0x49f559=_0x513309['at']||0x0,_0x13fc08=_0x513309['columns']||0x1;_0x4482c0['columnInsertionIndexes']=new Array(_0x13fc08)['fill'](_0x49f559)['map']((_0x23eb73,_0x34f6be)=>_0x23eb73+_0x34f6be);for(const {cell:_0x5586ae}of _0x5d56e6['createTableWalker'](_0x4635e5,{'startColumn':_0x49f559,'endColumn':_0x49f559+_0x13fc08-0x1}))_0x4482c0['columnInsertionRanges']['push'](_0x13bf56['model']['createRangeOn'](_0x5586ae));},{'priority':'low'}),_0x5d56e6['on']('insertRows',(_0x3ae257,_0x20f8b2)=>{const [_0x4948d3,_0x475a9c={}]=_0x20f8b2;if(!_0x4482c0)return;const _0x4e998c=_0x475a9c['at']||0x0,_0x2c3145=_0x475a9c['rows']||0x1;_0x4482c0['rowInsertionIndexes']=new Array(_0x2c3145)['fill'](_0x4e998c)['map']((_0x9c7bf5,_0x49341c)=>_0x9c7bf5+_0x49341c);for(const {cell:_0x99e51}of _0x5d56e6['createTableWalker'](_0x4948d3,{'startRow':_0x4e998c,'endRow':_0x4e998c+_0x2c3145-0x1}))_0x4482c0['rowInsertionRanges']['push'](_0x13bf56['model']['createRangeOn'](_0x99e51));},{'priority':'low'}),_0x3785b5['descriptionFactory']['registerDescriptionCallback'](_0x7cad68=>{if(_0x7cad68['subType']&&_0x7cad68['subType']['startsWith']('tablePaste'))return _0x7cad68['previous']?{}:{'type':'insertion','content':o(_0x13bf56['locale'],'*Replace\x20table\x20cells*')};});const _0x590e10=()=>!0x1;for(const _0x39adac of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3785b5['_suggestionFactory']['registerCustomCallback']('insertion',_0x39adac,'join',_0x590e10),_0x3785b5['_suggestionFactory']['registerCustomCallback']('deletion',_0x39adac,'join',_0x590e10),_0x3785b5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x39adac,'join',_0x590e10);_0x3785b5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x590e10),_0x3785b5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1a2dbf,_0x3ce312,_0xfb0369)=>{const _0x4199be=_0x1a2dbf['map'](_0x55dfca=>_0x55dfca['getContainedElement']())['filter'](_0x4b0ec4=>_0x4b0ec4),_0x4a7bbb=new Map(_0x4199be['map'](_0x3c4a9f=>[_0x3c4a9f,null]));if(_0x4482c0){for(const {element:_0x4ddbde,attributes:_0x1fb20e}of _0x4482c0['cells'])_0x1fb20e&&_0x4a7bbb['set'](_0x4ddbde,_0x1fb20e);}else{if(_0xfb0369&&_0xfb0369['markerAttributes'])for(const [_0x872e4,_0x10c3c4]of Object['entries'](_0xfb0369['markerAttributes'])){const _0x56806f=_0x13bf56['model']['markers']['get'](_0x872e4),_0x358c82=_0x56806f?_0x56806f['getRange']()['getContainedElement']():null;_0x358c82&&_0x4a7bbb['set'](_0x358c82,_0x10c3c4);}}_0x13bf56['model']['change'](_0x517db8=>{for(const [_0x3fb807,_0x2ec164]of _0x4a7bbb)_0x517db8['setAttributes']({...Ae,..._0x2ec164},_0x3fb807);});});const _0x217486=(_0x76aa4e,_0x2d20e2)=>{_0x3785b5['_suggestionFactory']['registerCustomCallback'](_0x76aa4e,'tablePaste',_0x2d20e2,(_0x5b65f5,_0x46c43b,_0x56e37a)=>{_0x13bf56['model']['change'](_0x24dcdd=>{const _0x3dfc2a=[];for(const _0x20308d of _0x5b65f5){const _0x4a4765=_0x20308d['start']['nodeAfter'];_0x4a4765['is']('element','tableCellSuggestion')&&_0x3dfc2a['push'](_0x4a4765);}_0x3785b5['_suggestionFactory']['getSuggestionCallback'](_0x76aa4e,null,_0x2d20e2)(_0x5b65f5,_0x46c43b,_0x56e37a);for(const _0x4d2c4f of _0x3dfc2a)'$graveyard'!=_0x4d2c4f['root']['rootName']&&_0x24dcdd['unwrap'](_0x4d2c4f);});});};_0x217486('insertion','accept'),_0x217486('insertion','discard'),_0x217486('deletion','accept'),_0x217486('deletion','discard'),_0x3785b5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4064f2=>{const _0x5bdf38=_0x4064f2['map'](_0x1d58e3=>_0x1d58e3['getContainedElement']()),_0x421922=_0x5bdf38[0x0]['findAncestor']('table'),{minRow:_0x3f2a58,maxRow:_0x2ef4c9}=_0x3a6eaa['_getCoordsForCells'](_0x5bdf38);_0x5d56e6['removeRows'](_0x421922,{'at':_0x3f2a58,'rows':_0x2ef4c9-_0x3f2a58+0x1});}),_0x3785b5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5154cc=>{const _0x3c763f=_0x5154cc['map'](_0x14829b=>_0x14829b['getContainedElement']()),_0x446a99=_0x3c763f[0x0]['findAncestor']('table'),{minColumn:_0x13f272,maxColumn:_0x3c9c11}=_0x3a6eaa['_getCoordsForCells'](_0x3c763f);_0x5d56e6['removeColumns'](_0x446a99,{'at':_0x13f272,'columns':_0x3c9c11-_0x13f272+0x1});});const _0x27d0ad=(_0x1e0338,_0x4cb10d)=>{if(!_0x4cb10d['subType']||!_0x4cb10d['subType']['startsWith']('tablePaste'))return;const _0x386036=_0x4cb10d['attributes']['tablePasteChainId'],_0x5c7395=_0x3785b5['getSuggestions']()['filter'](_0x54ef95=>_0x54ef95['isInContent']&&_0x54ef95['attributes']&&_0x54ef95['attributes']['tablePasteChainId']==_0x386036);_0x5c7395['length']&&_0x4cb10d['getAllAdjacentSuggestions']()['length']!=_0x5c7395['length']&&_0x5c7395['reduce']((_0x3dae62,_0x12b203)=>(_0x3dae62['next']=_0x12b203,_0x12b203['previous']=_0x3dae62,_0x12b203));};function _0x5cecb2(_0x4b7cfd,_0xd3ee9d=!0x0){const {id:_0x19af83,authorId:_0x266618}=_0x3785b5['_splitMarkerName'](_0x4b7cfd['markerName']),_0x1cc539=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x58ba4e=_0x3785b5['activeMarkers']['includes'](_0x4b7cfd['markerName']);return _0x58ba4e&&_0x1cc539['push']('ck-suggestion-marker--active'),{'classes':_0x1cc539,'attributes':{'data-suggestion':_0x19af83,'data-author-id':_0x266618},'priority':_0x58ba4e&&_0xd3ee9d?0xbc2:0xbb8};}_0x3785b5['on']('suggestionLoaded',_0x27d0ad,{'priority':'high'}),_0x3785b5['on']('suggestionUnloaded',_0x27d0ad,{'priority':'high'}),_0x13bf56['model']['document']['registerPostFixer'](()=>{let _0xcbd9a5=!0x1;const _0x3c175d=Array['from'](_0x13bf56['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19a9b6,data:_0x5e8491}of _0x3c175d){const {group:_0x78ea44,type:_0x57cf14,id:_0x3806fb}=_0x3785b5['_splitMarkerName'](_0x19a9b6);if('suggestion'!=_0x78ea44||'deletion'!=_0x57cf14||_0x5e8491['oldRange'])continue;if(!_0x3785b5['hasSuggestion'](_0x3806fb))continue;const _0x4c26f1=_0x3785b5['getSuggestion'](_0x3806fb)['getRanges'](),_0x49968e=_0x13bf56['plugins']['get']('Users')['me'];for(const _0xb38c15 of _0x3785b5['getSuggestions']()){if(!_0xb38c15['isInContent']||_0xb38c15['author']!=_0x49968e)continue;if('formatBlock'!=_0xb38c15['type']||'tablePasteCell'!=_0xb38c15['subType'])continue;if(_0xb38c15['getRanges']()['every'](_0x3838cc=>_0x4c26f1['some'](_0x28788a=>_0x28788a['containsRange'](_0x3838cc,!0x0)))){for(const _0x5eaae2 of _0xb38c15['getAllAdjacentSuggestions']())_0x5eaae2['isInContent']&&(_0x5eaae2['discard'](),_0xcbd9a5=!0x0);}}}return _0xcbd9a5;}),_0x13bf56['model']['document']['registerPostFixer'](_0x3967b5=>{const _0x21c8d8=_0x13bf56['commands']['get']('redo');if(!_0x21c8d8||!_0x21c8d8['_createdBatches']['has'](_0x3967b5['batch']))return!0x1;let _0x915226=!0x1;const _0x43042e=_0x13bf56['plugins']['get']('Users')['me'],_0x45172a=_0x13bf56['model']['document']['differ']['getChanges'](),_0x452184=Array['from'](_0x13bf56['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x413d70,data:_0x3b9ecb})=>{const {group:_0x3c7949,subType:_0xf542ca,authorId:_0x6ae8df}=_0x3785b5['_splitMarkerName'](_0x413d70);return'suggestion'==_0x3c7949&&'tablePaste'==_0xf542ca&&_0x6ae8df==_0x43042e['id']&&!_0x3b9ecb['oldRange'];});for(const _0x1288cc of _0x45172a){if('insert'!=_0x1288cc['type']||'tableCellSuggestion'!=_0x1288cc['name']||0x1!=_0x1288cc['length'])continue;const _0x5856f0=_0x3967b5['createRange'](_0x1288cc['position'],_0x1288cc['position']['getShiftedBy'](0x1));if(!_0x452184['find'](({data:_0x18fa36})=>_0x18fa36['newRange']['isEqual'](_0x5856f0))){for(const {name:_0x153bdb,data:_0x13f763}of _0x452184)if(_0x5856f0['containsRange'](_0x13f763['newRange'])){_0x3967b5['updateMarker'](_0x153bdb,{'range':_0x5856f0}),_0x915226=!0x0;break;}}}return _0x915226;}),_0x13bf56['model']['document']['registerPostFixer'](_0x2cf98f=>{let _0x4ef4de=!0x1;const _0x49d588=_0x13bf56['plugins']['get']('Users')['me'],_0x2b5316=_0x3785b5['getSuggestions']()['filter'](_0xed1924=>_0xed1924['isInContent']&&_0xed1924['author']==_0x49d588),_0x4b76d1=new Set(),_0x1c0584=new Set();for(const _0x20f7e8 of _0x2b5316)if('tablePaste'==_0x20f7e8['subType'])for(const _0x8800bc of _0x20f7e8['getMarkers']()){const _0x5acd83=_0x8800bc['getRange']()['getContainedElement']();if(_0x5acd83){if(_0x5acd83['is']('element','tableCellSuggestion')&&Be(_0x5acd83)){_0x20f7e8['removeMarker'](_0x8800bc['name']),_0x4b76d1['add'](_0x5acd83),_0x4ef4de=!0x0;const _0x1a133c=_0x5acd83['nextSibling'],_0x472f04=_0x5acd83['previousSibling'],_0x139bd5=_0x1a133c&&_0x1a133c['is']('element','tableCellSuggestion'),_0x59f8b6=_0x472f04&&_0x472f04['is']('element','tableCellSuggestion');_0x139bd5&&!_0x4b76d1['has'](_0x1a133c)&&_0x1c0584['add'](_0x1a133c),_0x59f8b6&&!_0x4b76d1['has'](_0x472f04)&&_0x1c0584['add'](_0x472f04);}else _0x5acd83['is']('element','paragraph')&&_0x5acd83['isEmpty']&&(_0x20f7e8['removeMarker'](_0x8800bc['name']),_0x4ef4de=!0x0);}}else{if('tablePasteCell'==_0x20f7e8['subType']){if(!_0x20f7e8['attributes']||!_0x20f7e8['attributes']['tablePasteChainId'])continue;const _0x81279a=_0x20f7e8['attributes']['markerAttributes'];if(_0x81279a&&Object['keys'](_0x81279a)['length'])continue;const _0x40aca6=_0x20f7e8['attributes']['tablePasteChainId'];let _0x920683=!0x0,_0x112317=!0x0;for(const _0x5a2cab of _0x2b5316)if(_0x5a2cab['subType']&&_0x5a2cab['subType']['startsWith']('tablePaste')){if(!_0x5a2cab['attributes']['tablePasteChainId']){_0x112317=!0x1;break;}if(_0x5a2cab['id']!=_0x20f7e8['id']&&_0x5a2cab['attributes']['tablePasteChainId']==_0x40aca6){_0x920683=!0x1;break;}}_0x112317&&_0x920683&&(_0x20f7e8['removeMarkers'](),_0x4ef4de=!0x0);}}for(const _0x34b62b of _0x4b76d1)_0x2cf98f['remove'](_0x34b62b);for(const _0x20414d of _0x1c0584)_0x2cf98f['unwrap'](_0x20414d);return _0x4ef4de;}),_0x13bf56['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4fa93b=>_0x5cecb2(_0x4fa93b),'converterPriority':'high'}),_0x13bf56['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3bc929,_0x4c5859)=>_0x4c5859['options']['showSuggestionHighlights']?_0x5cecb2(_0x3bc929,!0x1):null,'converterPriority':'high'});const _0x276ee8=_0x13bf56['editing']['view'];this['listenTo'](_0x276ee8['document'],'clipboardOutput',(_0x220663,_0x42e734)=>{const _0x558130=[];for(const _0x5d0c4b of _0x276ee8['createRangeIn'](_0x42e734['content'])['getItems']())_0x5d0c4b['is']('element','suggestion-td')&&_0x558130['push'](_0x5d0c4b);_0x276ee8['change'](_0x4bc8b6=>{for(const _0x50b81b of _0x558130)_0x4bc8b6['move'](_0x4bc8b6['createRangeIn'](_0x50b81b),_0x4bc8b6['createPositionBefore'](_0x50b81b)),_0x4bc8b6['remove'](_0x50b81b);});});}}function Be(_0x26d5e4){if(_0x26d5e4['isEmpty'])return!0x0;const _0x149817=_0x26d5e4['getChild'](0x0);return _0x149817['is']('element','paragraph')&&_0x149817['isEmpty'];}function Oe(_0x12e102,_0x153dc5={},_0x3eef77){for(const {isAnchor:_0xa2b661,cellHeight:_0x2b0530,cellWidth:_0x29b3f8}of _0x3eef77['createTableWalker'](_0x12e102,{'includeAllSlots':!0x0,..._0x153dc5}))if(!_0xa2b661||0x1!=_0x2b0530||0x1!=_0x29b3f8)return!0x1;return!0x0;}class Rt extends _0x2aad9b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x791d57=this['editor']['plugins']['get']('TrackChangesEditing');_0x791d57['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x791d57['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x791d57['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x791d57['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x791d57['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x791d57['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x541340,_0x401557){const _0x593102=this['editor']['plugins']['get']('TrackChangesEditing'),_0x342d59=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x12eecf=_0x401557['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x169fa3=_0x342d59['getColumnGroupElement'](_0x12eecf);let _0x30e5c9=_0x169fa3?_0x342d59['getTableColumnsWidths'](_0x169fa3):null,_0x3608f0=_0x12eecf['getAttribute']('tableWidth')||null;const _0x247a25=_0x401557['tableWidth']||_0x3608f0,_0x235453=_0x401557['columnWidths']||_0x30e5c9,_0x3df41c=this['editor']['plugins']['get']('Users')['me'];for(const _0x2192be of _0x593102['getSuggestions']()){const _0x35b2da=_0x2192be['getContainedElement']();if('resizeTable'===_0x2192be['subType']&&_0x35b2da===_0x12eecf){_0x2192be['author']!==_0x3df41c&&_0x2192be['discard']();const _0xc79baf=_0x2192be['data']['commandParams'];_0x3608f0=_0xc79baf[0x0]['tableWidth'],_0x30e5c9=_0xc79baf[0x0]['columnWidths'];break;}}_0x541340({'table':_0x12eecf,'tableWidth':_0x247a25,'columnWidths':_0x235453}),_0x593102['markBlockFormat'](_0x12eecf,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3608f0,'columnWidths':_0x30e5c9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3bdad4){if('formatBlock'!=_0x3bdad4['type']&&'formatInline'!=_0x3bdad4['type'])return;const {data:_0x45108a}=_0x3bdad4;if(_0x45108a&&'resizeTable'===_0x45108a['formatGroupId']){const _0x4f9a3f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4f9a3f)};}}}class Tt extends _0x2aad9b{['afterInit'](){const _0x49fb23=this['editor'];_0x49fb23['plugins']['has']('Template')&&_0x49fb23['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x2aad9b{['afterInit'](){const _0x42dd25=this['editor'];if(!_0x42dd25['commands']['get']('insertTableOfContents'))return;_0x42dd25['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2c648f=_0x42dd25['plugins']['get']('TrackChangesEditing'),_0x3606e7=_0x42dd25['locale'];_0x2c648f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x41ead2=>o(_0x3606e7,'ELEMENT_TABLE_OF_CONTENTS',_0x41ead2));}}class Ut extends _0x2aad9b{['afterInit'](){const _0x2e4fbc=this['editor'];if(!_0x2e4fbc['plugins']['has']('Title'))return;const _0x3168d8=_0x2e4fbc['plugins']['get']('TrackChangesEditing');_0x3168d8['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2e4fbc['locale'],'ELEMENT_TITLE')),_0x2e4fbc['model']['document']['registerPostFixer'](_0x5306ee=>{let _0x5a7b00=!0x1;const _0x4b7584=Array['from'](_0x2e4fbc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24ca92,data:_0x3c5c29}of _0x4b7584){const {group:_0x5c3cf4}=_0x3168d8['_splitMarkerName'](_0x24ca92);if('suggestion'!==_0x5c3cf4||!_0x3c5c29['newRange'])continue;const _0x18a494=_0x3c5c29['newRange'],_0x1974ce=_0x18a494['end']['nodeBefore'];if(!_0x1974ce||!_0x1974ce['is']('element','title-content'))continue;if(!_0x18a494['start']['isTouching'](_0x18a494['end']))continue;const _0x34cbf9=_0x2e4fbc['model']['schema']['getNearestSelectionRange'](_0x18a494['end'],'forward');if(_0x34cbf9&&_0x34cbf9['isCollapsed']){const _0x432101=_0x5306ee['createRange'](_0x18a494['start'],_0x34cbf9['start']);_0x432101['isEqual'](_0x18a494)||(_0x5306ee['updateMarker'](_0x24ca92,{'range':_0x432101}),_0x5a7b00=!0x0);}_0x5a7b00||(_0x5306ee['removeMarker'](_0x24ca92),_0x5a7b00=!0x0);}return _0x5a7b00;});}}class Vt extends _0x2aad9b{['afterInit'](){const _0x165b7c=this['editor'],_0x2cf2d2=_0x165b7c['plugins']['get']('TrackChangesEditing');_0x165b7c['plugins']['has']('Uploadcare')&&(_0x2cf2d2['enableCommand']('uploadcare'),_0x165b7c['plugins']['has']('UploadcareImageEdit')&&(_0x2cf2d2['enableCommand']('uploadcareImageEdit'),_0x2cf2d2['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2cf2d2['descriptionFactory']['registerDescriptionCallback'](_0x4d35a7=>{if('attribute'!=_0x4d35a7['type'])return;const {data:_0x2b59ed}=_0x4d35a7;return _0x2b59ed&&'uploadcareImageId'==_0x2b59ed['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x2aad9b{['afterInit'](){const _0x18581c=this['editor'],_0x2a1855=_0x18581c['plugins']['get']('TrackChangesEditing');_0x18581c['plugins']['has']('UndoEditing')&&(_0x2a1855['enableCommand']('undo'),_0x2a1855['enableCommand']('redo'));}}class Pt extends _0x2aad9b{static get['requires'](){return[Dt];}['afterInit'](){const _0x514668=this['editor'];if(!_0x514668['plugins']['has']('TableCaptionEditing'))return;_0x514668['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x2aad9b{['tableProperties'];['tableCellProperties'];constructor(_0x1fe8bc){super(_0x1fe8bc),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x1fe8bc['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1ef85e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x36e9b4 of this['tableProperties'])_0x1ef85e['enableCommand'](_0x36e9b4,(_0x58d705,_0x51e8f0)=>{const _0x4518d5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x36e9b4,[_0x4518d5],this['tableProperties'],'tableProperties',_0x58d705,_0x51e8f0);});_0x1ef85e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1ef85e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ef85e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4ca17e,_0x19081a)=>this['handleDiscardAction'](this['tableProperties'],_0x4ca17e,_0x19081a)),_0x1ef85e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1b1a38 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1b1a38)&&_0x1ef85e['enableCommand'](_0x1b1a38,(_0x294024,_0x437d6b)=>{const _0x250774=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1b1a38,_0x250774,this['tableCellProperties'],'tableCellProperties',_0x294024,_0x437d6b);});_0x1ef85e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1ef85e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ef85e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x41dbf3,_0x3a7d7b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x41dbf3,_0x3a7d7b)),_0x1ef85e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1ef85e['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x1ef85e['descriptionFactory']['registerDescriptionCallback'](_0x2caf73=>this['handleSuggestionDescription'](_0x2caf73)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x23a6cb,_0x3bdae6,_0x4eb255,_0x55eb18,_0x307229,_0x637e25){const _0x623726=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x637e25['batch'],()=>{for(const _0x478a49 of _0x3bdae6){if(this['_getSuggestion'](_0x478a49,_0x55eb18))_0x307229(_0x637e25);else{const _0x50d4a1={};for(const _0x216a4c of _0x4eb255){const _0x364014=_0x478a49['getAttribute'](_0x216a4c);void 0x0!==_0x364014&&(_0x50d4a1[_0x216a4c]=_0x364014);}_0x307229(_0x637e25),_0x623726['markBlockFormat'](_0x478a49,{'commandParams':[_0x50d4a1]},[],_0x55eb18);}}});}['handleDiscardAction'](_0x226a74,_0x53229d,_0x4d6cbe){const _0x4ce48a=_0x53229d[0x0]['start']['nodeAfter'],_0x4f3b69=_0x4d6cbe['commandParams'][0x0];this['editor']['model']['change'](_0xd9db4e=>{for(const _0x3d4cb1 of _0x226a74)void 0x0!==_0x4f3b69[_0x3d4cb1]?_0xd9db4e['setAttribute'](_0x3d4cb1,_0x4f3b69[_0x3d4cb1],_0x4ce48a):_0xd9db4e['removeAttribute'](_0x3d4cb1,_0x4ce48a);});}['handleSuggestionDescription'](_0x5ddfc6){if(_0x5ddfc6['data'])switch(_0x5ddfc6['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'](_0x469bc8,_0x3ca469){const _0x308309=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3d1c9d of _0x308309['getSuggestions']({'skipNotAttached':!0x0})){const _0xe61bd4=_0x3d1c9d['getContainedElement']();if(_0x3d1c9d['subType']===_0x3ca469&&_0xe61bd4===_0x469bc8)return _0x3d1c9d;}return null;}['_registerTablePropertiesAttributes'](){const _0x1d999b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x266f6=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x58bd99 of _0x266f6){const _0xa02340=_0x58bd99['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1d999b['descriptionFactory']['registerAttributeLabel'](_0x58bd99,o(this['editor']['locale'],'FORMAT_'+_0xa02340));}}}class Lt extends _0x2aad9b{['afterInit'](){const _0x468b86=this['editor'];if(!_0x468b86['plugins']['has']('LineHeight'))return;const _0x5cf5af=_0x468b86['plugins']['get']('TrackChangesEditing'),_0x39162d=_0x468b86['locale'];_0x5cf5af['enableDefaultAttributesIntegration']('lineHeight'),_0x5cf5af['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x39162d,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2aad9b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x5d38f7,_0x298dab,_0x95103c,_0x4857f0,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x512f9c){super(_0x512f9c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x543ec4,_0x4179c1,_0x3dce3f,_0x10665e)=>{this['_model']['change'](()=>{for(const _0x3f59d4 of[..._0x10665e,..._0x3dce3f])this['_model']['markers']['has'](_0x3f59d4)&&_0x512f9c['editing']['reconvertMarker'](_0x3f59d4);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x512f9c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x512f9c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x512f9c['config']['get']('trackChanges.trackFormatChanges'),_0x512f9c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x512f9c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x512f9c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3d6bb8=this['editor'];_0x3d6bb8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x40a637,{writer:_0x353519})=>{let _0x537f3b='suggestion:'+_0x40a637['getAttribute']('suggestion-type')+':'+_0x40a637['getAttribute']('id');return _0x40a637['getAttribute']('marker-count')&&(_0x537f3b+=':'+_0x40a637['getAttribute']('marker-count')),_0x353519['createElement']('$marker',{'data-name':_0x537f3b});}}),_0x3d6bb8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3d6bb8['model']['document']['registerPostFixer'](_0x391b00=>{let _0x642b1f=!0x1;const _0x241a8e=Array['from'](_0x3d6bb8['model']['document']['differ']['getChangedMarkers']()),_0x1737b2=new Set();for(const {name:_0x309533,data:_0x3ddb82}of _0x241a8e){const {group:_0x4800d9,type:_0x27f454,subType:_0x1eedd6,id:_0x33e52d}=this['_splitMarkerName'](_0x309533);if('suggestion'!==_0x4800d9)continue;const _0x4b2fbd=_0x1eedd6?'suggestion:'+_0x27f454+':'+_0x1eedd6+':'+_0x33e52d:'suggestion:'+_0x27f454+':'+_0x33e52d,_0x5b38e3=_0x3d6bb8['model']['markers']['getMarkersGroup'](_0x4b2fbd),_0x116d76=_0x3d6bb8['model']['markers']['get'](_0x309533),_0x4756d7=this['_suggestions']['get'](_0x33e52d);if(null!=_0x3ddb82['newRange']){'formatInline'==_0x27f454&&(_0x642b1f=_0x642b1f||Wt(_0x3ddb82['newRange'],_0x309533,_0x391b00,_0x3d6bb8['model']['schema']));const _0x41cd67='attribute'==_0x27f454&&this['_isBlockAttribute'](_0x1eedd6['split']('|')[0x0]),_0x880a3e='attribute'==_0x27f454&&this['_isInlineAttribute'](_0x1eedd6['split']('|')[0x0]);if(_0x3ddb82['newRange']['isCollapsed']||'$graveyard'==_0x3ddb82['newRange']['root']['rootName']||'formatBlock'==_0x27f454&&!Qt(_0x3ddb82['newRange'])||_0x41cd67&&!Qt(_0x3ddb82['newRange'])||_0x880a3e&&Xt(_0x3ddb82['newRange'])||'deletion'==_0x27f454&&Xt(_0x3ddb82['newRange'])||_0x116d76&&Yt(_0x116d76,_0x5b38e3))_0x391b00['removeMarker'](_0x309533),_0x642b1f=!0x0;else{if(!_0x4756d7||!_0x4756d7['isInContent'])continue;if(_0x3ddb82['newRange']&&_0x3ddb82['oldRange']&&_0x3ddb82['newRange']['isEqual'](_0x3ddb82['oldRange']))continue;_0x1737b2['add'](_0x4756d7);}}}return _0x1737b2['size']>0x0&&(_0x642b1f=!!this['_joinWithAdjacentSuggestions'](_0x1737b2)||_0x642b1f),_0x642b1f;}),_0x3d6bb8['model']['document']['registerPostFixer'](_0x3f0f36=>{let _0x2ed10c=!0x1;for(const _0x5aadfe of _0x3d6bb8['model']['document']['differ']['getChanges']())if('insert'==_0x5aadfe['type'])for(const _0x50c3e8 of this['_suggestions']['values']()){if(_0x50c3e8['isMultiRange']||!_0x50c3e8['isInContent'])continue;const _0x769677='formatBlock'==_0x50c3e8['type'],_0x20be06=this['_getAttributeKey'](_0x50c3e8),_0x386413=_0x20be06&&this['_isBlockAttribute'](_0x20be06);if(!_0x769677&&!_0x386413)continue;const _0xc01f5b=_0x50c3e8['getFirstRange']();if(_0xc01f5b['start']['parent']!=_0xc01f5b['end']['parent']&&!_0xc01f5b['end']['isAtEnd']){const _0x4c09ae=_0x3d6bb8['model']['createPositionAt'](_0xc01f5b['start']['nodeAfter'],'end'),_0x260fdd=_0x3d6bb8['model']['createRange'](_0xc01f5b['start'],_0x4c09ae);_0x3f0f36['updateMarker'](_0x50c3e8['getFirstMarker'](),{'range':_0x260fdd}),_0x2ed10c=!0x0;}}return _0x2ed10c;}),_0x3d6bb8['model']['document']['registerPostFixer'](_0x1fa471=>this['_processAttributeChanges'](_0x1fa471)),_0x3d6bb8['model']['document']['registerPostFixer'](_0x54da1c=>!_0x54da1c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x54da1c)),_0x3d6bb8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3d6bb8['model']['document']['on']('change:data',(_0x2c6847,_0x5706ea)=>{if(!_0x5706ea['isLocal']||_0x5706ea['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4b564b=_0x3d6bb8['model']['document']['differ']['getChanges']();if(0x0==_0x4b564b['length'])return;const _0x1b46b4=[],_0x1d410b=_0x4b564b['filter'](_0x106ade=>'attribute'==_0x106ade['type']),_0x2c1997=_0x4b564b['filter'](_0x33cd5a=>'insert'==_0x33cd5a['type']&&'$text'!=_0x33cd5a['name']);for(const _0x15ff4f of _0x1d410b)this['_isRegisteredAttribute'](_0x15ff4f['attributeKey'])&&_0x1b46b4['push']({'key':_0x15ff4f['attributeKey'],'newValue':_0x15ff4f['attributeNewValue'],'oldValue':_0x15ff4f['attributeOldValue'],'range':Zt(_0x15ff4f['range'],_0x3d6bb8['model'])});for(const _0x260845 of _0x2c1997){if('rename'!=_0x260845['action']&&'refresh'!=_0x260845['action'])continue;const _0x414cc6=tn(_0x260845['position']['nodeAfter'],_0x3d6bb8['model']),_0x200db0=_0x260845['before'];'rename'==_0x260845['action']&&_0x1b46b4['push']({'key':m,'newValue':_0x260845['name'],'oldValue':_0x200db0['name'],'range':_0x414cc6});for(const [_0x5ce24a,_0x49bf59]of _0x200db0['attributes']){if(!this['_isRegisteredAttribute'](_0x5ce24a))continue;const _0x2162ea=_0x260845['attributes']['get'](_0x5ce24a);_0x49bf59!==_0x2162ea&&_0x1b46b4['push']({'key':_0x5ce24a,'newValue':_0x2162ea,'oldValue':_0x49bf59,'range':_0x414cc6});}for(const [_0x3f56a5,_0x5b2117]of _0x260845['attributes'])this['_isRegisteredAttribute'](_0x3f56a5)&&(_0x200db0['attributes']['has'](_0x3f56a5)||_0x1b46b4['push']({'key':_0x3f56a5,'newValue':_0x5b2117,'oldValue':null,'range':_0x414cc6}));}0x0!=_0x1b46b4['length']&&_0x3d6bb8['model']['enqueueChange'](_0x5706ea,_0x18d166=>{const _0x2ae5c5=_0xcdc81a();for(const {range:_0x3ce023,key:_0x20e398,oldValue:_0x25569d,newValue:_0x48fdcf}of _0x1b46b4)this['markAttributeChange'](_0x3ce023,_0x20e398,_0x25569d,_0x48fdcf,{'groupId':_0x2ae5c5});this['_reduceExistingSuggestions'](_0x18d166,_0x1b46b4);});},{'priority':'lowest'}),_0x3d6bb8['model']['markers']['on']('update:suggestion',(_0x55417b,_0x8986da,_0xc7ba95)=>{if(null==_0xc7ba95){const {id:_0x4e715a}=this['_splitMarkerName'](_0x8986da['name']),_0xb5c166=this['_suggestions']['get'](_0x4e715a);_0xb5c166&&_0xb5c166['addMarkerName'](_0x8986da['name']);}}),_0x3d6bb8['model']['document']['on']('change:data',()=>{const _0x1aff49=Array['from'](_0x3d6bb8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x527166=>'suggestion'===this['_splitMarkerName'](_0x527166['name'])['group']);if(0x0===_0x1aff49['length'])return;_0x1aff49['sort']((_0x426f41,_0x492acd)=>{const _0x1b5de5=_0x426f41['data']['oldRange'],_0x56d4c3=_0x492acd['data']['oldRange'];return null===_0x1b5de5&&null===_0x56d4c3?0x0:null===_0x1b5de5&&null!==_0x56d4c3?-0x1:null!==_0x1b5de5&&null===_0x56d4c3?0x1:_0x1b5de5['start']['isBefore'](_0x56d4c3['start'])?-0x1:0x1;});const _0x314b97=new Set(),_0x8293ec=new Set();for(const {name:_0x2283ed,data:_0x5c92d2}of _0x1aff49){const {id:_0x4025d1}=this['_splitMarkerName'](_0x2283ed);if(null===_0x5c92d2['oldRange']){const _0xf943a0=this['_handleNewSuggestionMarker'](_0x2283ed);_0x8293ec['add'](_0xf943a0);}else{const _0x3fd50c=this['_suggestions']['get'](_0x4025d1);null!==_0x5c92d2['newRange']||_0x3fd50c['isInContent']?(_0x314b97['add'](_0x3fd50c['head']),_0x8293ec['add'](_0x3fd50c)):this['_removeSuggestion'](_0x3fd50c);}}_0x8293ec['size']>0x0&&this['_refreshSuggestionsChain'](_0x8293ec);for(const _0x2c59a8 of _0x314b97)this['fire']('suggestionChanged',_0x2c59a8);}),_0x3d6bb8['model']['on']('applyOperation',(_0x517d3d,_0x91c027)=>{const _0x22a5fd=_0x91c027[0x0];if(!this['_suggestions']['size'])return;if(!_0x22a5fd['isDocumentOperation'])return;if(_0x22a5fd['batch']['isUndo']||!_0x22a5fd['batch']['isLocal'])return;let _0x6b965c,_0x27ef91;switch(_0x22a5fd['type']){case'insert':_0x6b965c=_0x3d6bb8['model']['createPositionAt'](_0x22a5fd['position']),_0x27ef91=_0x6b965c['getShiftedBy'](_0x22a5fd['howMany']);break;case'split':_0x6b965c=_0x3d6bb8['model']['createPositionAt'](_0x22a5fd['splitPosition']),_0x27ef91=_0x3d6bb8['model']['createPositionAt'](_0x22a5fd['moveTargetPosition']);break;case'move':_0x6b965c=_0x3d6bb8['model']['createPositionAt'](_0x22a5fd['targetPosition']),_0x27ef91=_0x6b965c['getShiftedBy'](_0x22a5fd['howMany']);break;default:return;}const _0x54cf68=_0x3d6bb8['model']['createRange'](_0x6b965c,_0x27ef91);_0x3d6bb8['model']['change'](()=>{for(const {suggestion:_0x5e4d06,meta:_0x481218}of this['_findSuggestions'](_0x54cf68)){if(_0x5e4d06['isMultiRange'])continue;if('formatInline'==_0x5e4d06['type'])continue;const _0x74d446=this['_getAttributeKey'](_0x5e4d06);if(_0x74d446&&this['_isBlockAttribute'](_0x74d446)&&'split'!=_0x22a5fd['type'])continue;const _0x2ce445=_0x5e4d06['data']&&_0x5e4d06['data']['multipleBlocks'];('formatBlock'!=_0x5e4d06['type']||'split'==_0x22a5fd['type']&&!_0x2ce445)&&(_0x481218['containsRangeInObject']||'insertion'==_0x5e4d06['type']&&_0x481218['isOwn']||_0x5e4d06['getFirstRange']()['containsRange'](_0x54cf68)&&this['_breakSuggestionMarker'](_0x5e4d06,_0x6b965c,_0x27ef91));}});},{'priority':'lowest'}),_0x3d6bb8['model']['on']('deleteContent',(_0x314805,_0x99b3ba)=>{const _0x56a6d1=_0x99b3ba[0x0],_0x33cec4=_0x99b3ba[0x1];if(_0x33cec4&&_0x33cec4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x56a6d1['isCollapsed'])return;const _0x1168b6=_0x3d6bb8['model']['schema'],{start:_0x5817e3,end:_0xd1044f}=_0x56a6d1['getFirstRange'](),_0xfb49b9=_0x5817e3['nodeAfter']&&_0x1168b6['isLimit'](_0x5817e3['nodeAfter'])?null:_0x1168b6['getNearestSelectionRange'](_0x5817e3,'forward'),_0x42814e=_0xd1044f['nodeBefore']&&_0x1168b6['isLimit'](_0xd1044f['nodeBefore'])?null:_0x1168b6['getNearestSelectionRange'](_0xd1044f,'backward'),_0x4fc38d=_0x3d6bb8['model']['createRange'](_0xfb49b9?_0xfb49b9['start']:_0x5817e3,_0x42814e?_0x42814e['end']:_0xd1044f);_0x3d6bb8['model']['change'](_0xe84211=>{this['markDeletion'](_0x4fc38d);const _0x169f1f=_0x3d6bb8['model']['schema']['getNearestSelectionRange'](_0x4fc38d['start']);_0x56a6d1['is']('documentSelection')?_0xe84211['setSelection'](_0x169f1f):_0x56a6d1['setTo'](_0x169f1f);}),_0x314805['stop']();},{'priority':_0x525aa5['normal']+0xa}),_0x3d6bb8['model']['on']('insertContent',(_0x21299f,_0xc14a6d)=>{const _0x4be27b=_0xc14a6d[_0xc14a6d['length']-0x1];_0x4be27b&&_0x4be27b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3d6bb8['model']['change'](()=>{let _0xcbbb3=_0x3d6bb8['model']['insertContent'](_0xc14a6d[0x0],_0xc14a6d[0x1],_0xc14a6d[0x2],{'forceDefaultExecution':!0x0});if(!_0xcbbb3)return;_0x21299f['return']=_0xcbbb3['clone']();const _0x69fe56=_0xcbbb3['end']['nodeBefore'],_0x29c710=_0x3d6bb8['model']['schema'];_0x69fe56&&_0x29c710['isBlock'](_0x69fe56)&&!_0x29c710['isObject'](_0x69fe56)&&(_0xcbbb3=_0x3d6bb8['model']['createRange'](_0xcbbb3['start'],_0x3d6bb8['model']['createPositionAt'](_0x69fe56,'end'))),this['markInsertion'](_0xcbbb3);}),_0x21299f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x51f7a6=new O(_0x3d6bb8,this['_suggestions']);_0x3d6bb8['commands']['add']('acceptSuggestion',_0x51f7a6),this['enableCommand']('acceptSuggestion');const _0x255880=new x(_0x3d6bb8,this['_suggestions']);_0x3d6bb8['commands']['add']('discardSuggestion',_0x255880),this['enableCommand']('discardSuggestion'),_0x3d6bb8['commands']['add']('acceptAllSuggestions',new M(_0x3d6bb8,_0x51f7a6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3d6bb8['commands']['add']('discardAllSuggestions',new M(_0x3d6bb8,_0x255880,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3d6bb8['commands']['add']('acceptSelectedSuggestions',new R(_0x3d6bb8,_0x51f7a6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3d6bb8['commands']['add']('discardSelectedSuggestions',new R(_0x3d6bb8,_0x255880,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x144faa=_0x3d6bb8['plugins']['get']('CommentsRepository');this['listenTo'](_0x144faa,'addComment',(_0x7d21ba,{threadId:_0x68d6ef})=>{const _0x6eb13d=this['_suggestions']['get'](_0x68d6ef);_0x6eb13d&&_0x6eb13d['commentThread']&&0x1===_0x6eb13d['commentThread']['length']&&this['_updateSuggestionData'](_0x68d6ef,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x144faa,'removeComment',(_0x3466a1,{threadId:_0x50b364})=>{const _0x5a1a61=this['_suggestions']['get'](_0x50b364);_0x5a1a61&&_0x5a1a61['commentThread']&&!_0x5a1a61['commentThread']['length']&&this['_updateSuggestionData'](_0x50b364,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x15e212){const _0x40e759=_0x38bdcb([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]),_0x2b8dff=0x3d8d0df,_0x7ce248=0x3df5267^_0x2b8dff,_0x958961=window[_0x38bdcb([0x44,0x61,0x74,0x65])][_0x38bdcb([0x6e,0x6f,0x77])](),_0x467227=_0x15e212[_0x38bdcb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5936d9=new window[(_0x38bdcb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b9a5a=>{_0x467227[_0x38bdcb([0x6f,0x6e,0x63,0x65])](_0x38bdcb([0x72,0x65,0x61,0x64,0x79]),_0x1b9a5a);}),_0x64199e={[_0x38bdcb([0x6b,0x74,0x79])]:_0x38bdcb([0x45,0x43]),[_0x38bdcb([0x75,0x73,0x65])]:_0x38bdcb([0x73,0x69,0x67]),[_0x38bdcb([0x63,0x72,0x76])]:_0x38bdcb([0x50,0x2d,0x32,0x35,0x36]),[_0x38bdcb([0x78])]:_0x38bdcb([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]),[_0x38bdcb([0x79])]:_0x38bdcb([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]),[_0x38bdcb([0x61,0x6c,0x67])]:_0x38bdcb([0x45,0x53,0x32,0x35,0x36])},_0x532fc8=_0x467227[_0x38bdcb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38bdcb([0x67,0x65,0x74])](_0x38bdcb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xd422b3(){let _0x3dc25c,_0x529d18=null,_0x59659e=null;try{if(_0x532fc8==_0x38bdcb([0x47,0x50,0x4c]))return _0x38bdcb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3dc25c=_0x20f7f7(),!_0x3dc25c)return _0x38bdcb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3dc25c[_0x38bdcb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x59659e=_0x292cfd(_0x3dc25c[_0x38bdcb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3dc25c[_0x38bdcb([0x6a,0x74,0x69])])),await _0x179820()?_0x13a457()?_0x37a480()?_0x38bdcb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x54a501()?(_0x3dc25c[_0x38bdcb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38bdcb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x529d18=_0x5514b0(_0x38bdcb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f9bc0()):_0x38bdcb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38bdcb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38bdcb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x38bdcb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x37a480(){const _0x541d99=[_0x38bdcb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38bdcb([0x74,0x72,0x69,0x61,0x6c])][_0x38bdcb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3dc25c[_0x38bdcb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x958961/0x3e8:0xe10*_0x7ce248;return _0x3dc25c[_0x38bdcb([0x65,0x78,0x70])]<_0x541d99;}function _0x13a457(){const _0x550369=_0x3dc25c[_0x38bdcb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x550369)return!0x1;if(_0x550369[_0x38bdcb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38bdcb([0x2a])))return!0x0;if(_0x550369[_0x38bdcb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38bdcb([0x54,0x43])))return!0x0;if(_0x550369[_0x38bdcb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38bdcb([0x52,0x54,0x43]))){if(_0x10a8b9())return!0x0;if(_0x22b9c6()||_0x2367dc())return!0x0;}return!0x1;}function _0x54a501(){const _0x58fd5f=_0x3dc25c[_0x38bdcb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58fd5f||0x0==_0x58fd5f[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a80a0}=new URL(window[_0x38bdcb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58fd5f[_0x38bdcb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a80a0))return!0x0;const _0x231fc0=_0x1a80a0[_0x38bdcb([0x73,0x70,0x6c,0x69,0x74])](_0x38bdcb([0x2e]));return _0x58fd5f[_0x38bdcb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x448500=>_0x448500[_0x38bdcb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38bdcb([0x2a])))[_0x38bdcb([0x6d,0x61,0x70])](_0x148de2=>_0x148de2[_0x38bdcb([0x73,0x70,0x6c,0x69,0x74])](_0x38bdcb([0x2e])))[_0x38bdcb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24418c=>_0x24418c[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x231fc0[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38bdcb([0x6d,0x61,0x70])](_0x5d39c5=>Array(_0x231fc0[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d39c5[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38bdcb([0x66,0x69,0x6c,0x6c])](_0x5d39c5[0x0]===_0x38bdcb([0x2a])?_0x38bdcb([0x2a]):'')[_0x38bdcb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d39c5))[_0x38bdcb([0x73,0x6f,0x6d,0x65])](_0x52e1a5=>_0x231fc0[_0x38bdcb([0x65,0x76,0x65,0x72,0x79])]((_0x17ab5b,_0x1ede82)=>_0x52e1a5[_0x1ede82]===_0x17ab5b||_0x52e1a5[_0x1ede82]===_0x38bdcb([0x2a])));}function _0x1f9bc0(){return _0x529d18&&_0x59659e?new window[(_0x38bdcb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x141a22,_0x5bf9bb)=>{_0x529d18[_0x38bdcb([0x74,0x68,0x65,0x6e])](_0x141a22,_0x5bf9bb),_0x59659e[_0x38bdcb([0x74,0x68,0x65,0x6e])](_0x559f0f=>{_0x559f0f!=_0x38bdcb([0x56,0x61,0x6c,0x69,0x64])&&_0x141a22(_0x559f0f);},_0x5bf9bb);}):_0x529d18||_0x59659e||_0x38bdcb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x292cfd(_0x46220f,_0x1a7e80){return new window[(_0x38bdcb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b3c3b=>{if(_0xb2ce35())return _0x4b3c3b(_0x38bdcb([0x56,0x61,0x6c,0x69,0x64]));_0x14871c(),_0x467227[_0x38bdcb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38bdcb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d8be4=!0x1;const _0x3755c0=_0xcdc81a();function _0x2083be(_0x3eb5a8){return!!_0x3eb5a8&&(typeof _0x3eb5a8===_0x38bdcb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3eb5a8===_0x38bdcb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3eb5a8[_0x38bdcb([0x74,0x68,0x65,0x6e])]===_0x38bdcb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3eb5a8[_0x38bdcb([0x63,0x61,0x74,0x63,0x68])]===_0x38bdcb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x597e27(_0x2f4148){_0x35635b(_0x2f4148)[_0x38bdcb([0x74,0x68,0x65,0x6e])](_0x217a5c=>{if(!_0x217a5c||_0x217a5c[_0x38bdcb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38bdcb([0x6f,0x6b]))return _0x38bdcb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc97b32(_0x4f2f15(_0x3755c0+_0x1a7e80))!=_0x217a5c[_0x38bdcb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38bdcb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38bdcb([0x56,0x61,0x6c,0x69,0x64]);})[_0x38bdcb([0x74,0x68,0x65,0x6e])](_0x176da1=>(_0x5b9103(),_0x176da1),()=>{const _0xe3671c=_0x199c98();return null==_0xe3671c?(_0x5b9103(),_0x38bdcb([0x56,0x61,0x6c,0x69,0x64])):_0x38bdcb(_0x958961-_0xe3671c>(0x27d454df^_0x2b8dff)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38bdcb([0x74,0x68,0x65,0x6e])](_0x4b3c3b)[_0x38bdcb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b3c3b(_0x38bdcb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x435b9d=0x3ee3e5f^_0x2b8dff;function _0x5b9103(){const _0x40faec=_0x38bdcb([0x6c,0x6c,0x63,0x74,0x2d])+_0xc97b32(_0x4f2f15(_0x46220f)),_0x4063b3=_0xefe505(_0xc97b32(window[_0x38bdcb([0x4d,0x61,0x74,0x68])][_0x38bdcb([0x63,0x65,0x69,0x6c])](_0x958961/_0x435b9d)));window[_0x38bdcb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38bdcb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40faec,_0x4063b3);}function _0x199c98(){const _0x2c43de=_0x38bdcb([0x6c,0x6c,0x63,0x74,0x2d])+_0xc97b32(_0x4f2f15(_0x46220f)),_0x49c264=window[_0x38bdcb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38bdcb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c43de);return _0x49c264?window[_0x38bdcb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xefe505(_0x49c264),0x10)*_0x435b9d:null;}function _0x35635b(_0xfdc364){return new window[(_0x38bdcb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33bc92,_0xe0f69d)=>{_0xfdc364[_0x38bdcb([0x74,0x68,0x65,0x6e])](_0x33bc92,_0xe0f69d),window[_0x38bdcb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe0f69d,0x3d9041f^_0x2b8dff);});}}_0x467227[_0x38bdcb([0x6f,0x6e])](_0x38bdcb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1849c9,_0x5281d6)=>{if(_0x5281d6[0x0]!=_0x46220f)return _0x4b3c3b(_0x38bdcb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5281d6[0x1]={..._0x5281d6[0x1],[_0x38bdcb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3755c0};},{[_0x38bdcb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38bdcb([0x68,0x69,0x67,0x68])}),_0x467227[_0x38bdcb([0x6f,0x6e])](_0x38bdcb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43516b=>{_0x2083be(_0x43516b[_0x38bdcb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d8be4=!0x0,_0x597e27(_0x43516b[_0x38bdcb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38bdcb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38bdcb([0x6c,0x6f,0x77])}),_0x5936d9[_0x38bdcb([0x74,0x68,0x65,0x6e])](()=>{_0x4d8be4||_0x4b3c3b(_0x38bdcb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb2ce35(){return _0x467227[_0x38bdcb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38bdcb([0x76,0x69,0x65,0x77])][_0x38bdcb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38bdcb([0x61,0x75,0x74,0x6f]);}function _0x14871c(){_0x467227[_0x38bdcb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38bdcb([0x76,0x69,0x65,0x77])][_0x38bdcb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38bdcb([0x61,0x75,0x74,0x6f]);}}function _0x5514b0(_0x3f63d6){const _0x3e98f1=[new window[(_0x38bdcb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10fbec=>setTimeout(_0x10fbec,0x3d1ee13^_0x2b8dff)),_0x5936d9[_0x38bdcb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38bdcb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bfd7c=>{let _0x12833b=0x0;_0x467227[_0x38bdcb([0x6d,0x6f,0x64,0x65,0x6c])][_0x38bdcb([0x6f,0x6e])](_0x38bdcb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf0e2c,_0xc19e76)=>{_0xc19e76[0x0][_0x38bdcb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x12833b++,_0x12833b==(0x3d8d537^_0x2b8dff)&&(_0x5bfd7c(),_0xf0e2c[_0x38bdcb([0x6f,0x66,0x66])]());});}))];return window[_0x38bdcb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38bdcb([0x72,0x61,0x63,0x65])](_0x3e98f1)[_0x38bdcb([0x74,0x68,0x65,0x6e])](()=>_0x3f63d6);}async function _0x43a93c(){await _0x5936d9,_0x467227[_0x38bdcb([0x6d,0x6f,0x64,0x65,0x6c])][_0x38bdcb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x47cd81,_0x467227[_0x38bdcb([0x6d,0x6f,0x64,0x65,0x6c])][_0x38bdcb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x47cd81,_0x467227[_0x38bdcb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38bdcb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x10a8b9(){return _0x2a10f6(_0x38bdcb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x387875(_0x38bdcb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x38bdcb([0x73,0x74,0x61,0x74,0x65])]==_0x38bdcb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x22b9c6(){return _0x2a10f6(_0x38bdcb([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 _0x2367dc(){return _0x2a10f6(_0x38bdcb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x11d6ee(_0x187582){const _0x29e30b=_0x5169d6();_0x467227[_0x29e30b]=_0x38bdcb([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x187582,_0x187582!=_0x38bdcb([0x56,0x61,0x6c,0x69,0x64])&&_0x43a93c();}function _0x5169d6(){const _0x57ffe0=window[_0x38bdcb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38bdcb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38bdcb([0x6e,0x6f,0x77])]())[_0x38bdcb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38bdcb([0x2e]),'');let _0x5e772e=_0x38bdcb([0x52]);for(let _0x4fc02e=0x0;_0x4fc02e<_0x57ffe0[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fc02e+=0x2){let _0x1042e3=window[_0x38bdcb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57ffe0[_0x38bdcb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fc02e,_0x4fc02e+0x2));_0x1042e3>=_0x40e759[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1042e3-=_0x40e759[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e772e+=_0x40e759[_0x1042e3];}return _0x5e772e;}function _0x20f7f7(){const _0x54e377=_0x532fc8[_0x38bdcb([0x73,0x70,0x6c,0x69,0x74])](_0x38bdcb([0x2e]));if(0x3!=_0x54e377[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47ca61(_0x54e377[0x1]);function _0x47ca61(_0x15dd73){const _0x539b50=_0x5ec09a(_0x15dd73);return _0x539b50&&_0x2ba488()?_0x539b50:null;function _0x2ba488(){const _0x2df839=_0x539b50[_0x38bdcb([0x6a,0x74,0x69])],_0x147877=window[_0x38bdcb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2df839[_0x38bdcb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2df839[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e6135={..._0x539b50,[_0x38bdcb([0x6a,0x74,0x69])]:_0x2df839[_0x38bdcb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2df839[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e6135[_0x38bdcb([0x76,0x63])],_0x4f2f15(_0x4e6135)==_0x147877;}}}async function _0x179820(){let _0x1917a9=!0x0;try{const _0x20758a=_0x532fc8[_0x38bdcb([0x73,0x70,0x6c,0x69,0x74])](_0x38bdcb([0x2e])),[_0x44b7c9,_0x490a8b,_0x5ac598]=_0x20758a;return _0x4f26f7(_0x44b7c9),await _0x5916a9(_0x44b7c9,_0x490a8b,_0x5ac598),_0x1917a9;}catch{return!0x1;}function _0x4f26f7(_0x3e22dc){const _0x5e64a4=_0x5ec09a(_0x3e22dc);_0x5e64a4&&_0x5e64a4[_0x38bdcb([0x61,0x6c,0x67])]==_0x38bdcb([0x45,0x53,0x32,0x35,0x36])||(_0x1917a9=!0x1);}async function _0x5916a9(_0x1232b7,_0x56213a,_0x441022){const _0x92ea1a=window[_0x38bdcb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38bdcb([0x66,0x72,0x6f,0x6d])](_0x2fdb88(_0x441022),_0x4b007c=>_0x4b007c[_0x38bdcb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3c7f27=new window[(_0x38bdcb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38bdcb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1232b7+_0x38bdcb([0x2e])+_0x56213a),_0x5a8928=window[_0x38bdcb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38bdcb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a8928)return;const _0x1a7d75=await _0x5a8928[_0x38bdcb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38bdcb([0x6a,0x77,0x6b]),_0x64199e,{[_0x38bdcb([0x6e,0x61,0x6d,0x65])]:_0x38bdcb([0x45,0x43,0x44,0x53,0x41]),[_0x38bdcb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38bdcb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38bdcb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a8928[_0x38bdcb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38bdcb([0x6e,0x61,0x6d,0x65])]:_0x38bdcb([0x45,0x43,0x44,0x53,0x41]),[_0x38bdcb([0x68,0x61,0x73,0x68])]:{[_0x38bdcb([0x6e,0x61,0x6d,0x65])]:_0x38bdcb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a7d75,_0x92ea1a,_0x3c7f27)||(_0x1917a9=!0x1);}}function _0x5ec09a(_0xfacfac){return _0xfacfac[_0x38bdcb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38bdcb([0x65,0x79]))?JSON[_0x38bdcb([0x70,0x61,0x72,0x73,0x65])](_0x2fdb88(_0xfacfac)):null;}function _0x2fdb88(_0x583fcb){return window[_0x38bdcb([0x61,0x74,0x6f,0x62])](_0x583fcb[_0x38bdcb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38bdcb([0x2b]))[_0x38bdcb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38bdcb([0x2f])));}function _0x4f2f15(_0xd6477f){let _0x179d91=0x1505;function _0x2f0943(_0x1e4ba9){for(let _0x952a0f=0x0;_0x952a0f<_0x1e4ba9[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x952a0f++){const _0x2df3e5=_0x1e4ba9[_0x38bdcb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x952a0f);_0x179d91=(_0x179d91<<0x5)+_0x179d91+_0x2df3e5,_0x179d91&=_0x179d91;}}function _0x336798(_0x2229be){Array[_0x38bdcb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2229be)?_0x2229be[_0x38bdcb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x336798):_0x2229be&&typeof _0x2229be==_0x38bdcb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38bdcb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2229be)[_0x38bdcb([0x73,0x6f,0x72,0x74])]()[_0x38bdcb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d4cc5,_0x27d997])=>{_0x2f0943(_0x1d4cc5),_0x336798(_0x27d997);}):_0x2f0943(window[_0x38bdcb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2229be));}return _0x336798(_0xd6477f),_0x179d91>>>0x0;}function _0xc97b32(_0x32374f){return _0x32374f[_0x38bdcb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38bdcb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38bdcb([0x30]));}function _0xefe505(_0x373cf7){return _0x373cf7[_0x38bdcb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38bdcb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38bdcb([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a10f6(_0x349487){return _0x467227[_0x38bdcb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38bdcb([0x68,0x61,0x73])](_0x349487);}function _0x387875(_0x409a2a){return _0x467227[_0x38bdcb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38bdcb([0x67,0x65,0x74])](_0x409a2a);}function _0x47cd81(){}function _0x38bdcb(_0x4c47b5){return _0x4c47b5['map'](_0x4a14b4=>String['fromCharCode'](_0x4a14b4))['join']('');}_0x11d6ee(await _0xd422b3());}(this);}set['adapter'](_0x20987f){if(this['_adapter'])throw new _0x2d7a4f('track-changes-adapter-already-set',this);this['_adapter']=_0x20987f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1a268d=!0x1,toJSON:_0x4a778a=!0x1}={}){const _0x527ac3=[];for(const _0x551bf8 of this['_suggestions']['values']())_0x1a268d&&!_0x551bf8['isInContent']||_0x527ac3['push'](_0x551bf8);return _0x4a778a?_0x527ac3['map'](_0x5b0a58=>_0x5b0a58['toJSON']()):_0x527ac3;}['getSuggestion'](_0x191057){const _0x408695=this['_suggestions']['get'](_0x191057);if(!_0x408695)throw new _0x2d7a4f('track-changes-suggestion-not-found',this);return _0x408695;}['hasSuggestion'](_0x4b197c){return this['_suggestions']['has'](_0x4b197c);}['addSuggestionData'](_0x5aa840){const {authorId:_0x3fbb38,id:_0x37ebf2,originalSuggestionId:_0x167db1,attributes:_0x2b1b39}=_0x5aa840,[_0x3a2d33,_0x20093f]=_0x5aa840['type']['split'](':'),_0x14a150=this['_suggestions']['get'](_0x37ebf2)||this['_createSuggestion'](_0x3a2d33,_0x20093f,_0x37ebf2,_0x3fbb38,_0x2b1b39,_0x167db1);if(this['_addThreadToSuggestion'](_0x14a150),this['_checkSuggestionCorrectness'](_0x14a150,_0x3a2d33,_0x20093f||null,_0x3fbb38),_0x14a150['createdAt']=_0x5aa840['createdAt'],_0x14a150['_isDataLoaded']=!0x0,_0x2b1b39&&_0x2b1b39['@external']){const _0x25b577=_0x2b1b39['@external'],_0x1285c1=this['_getExternalAuthor'](_0x25b577['authorName']);_0x14a150['authoredAt']=_0x25b577['createdAt'],_0x14a150['author']=_0x1285c1,_0x14a150['isExternal']=!0x0;}else _0x14a150['authoredAt']=_0x5aa840['createdAt'];switch(_0x5aa840['data']&&(_0x14a150['data']=_0x5aa840['data']),_0x5aa840['attributes']&&(_0x14a150['attributes']=_0x5aa840['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x14a150['_saved']=!0x0),this['_suggestionState']['get'](_0x14a150)){case'notReady':this['_suggestionState']['set'](_0x14a150,'dataReady');break;case'markerReady':_0x14a150['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x14a150])),this['_refreshSuggestionsChain'](new Set([_0x14a150])),this['_suggestionState']['set'](_0x14a150,'ready'),this['fire']('suggestionLoaded',_0x14a150)):this['_suggestionState']['set'](_0x14a150,'removed');}return _0x14a150;}['acceptSuggestion'](_0x5863f0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x248f85 of _0x5863f0['getAllAdjacentSuggestions']())_0x248f85['accept']();});});}['discardSuggestion'](_0x2e6ab1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x40cb0a of _0x2e6ab1['getAllAdjacentSuggestions']())_0x40cb0a['discard']();});});}['enableCommand'](_0x283886,_0x250c0c){const _0x6eb54d=this['editor']['commands']['get'](_0x283886);if(!_0x6eb54d)throw new _0x2d7a4f('track-changes-command-not-found',this,{'commandName':_0x283886});if(this['_enabledCommands']['has'](_0x6eb54d))throw new _0x2d7a4f('track-changes-enable-command-twice',this,{'commandName':_0x283886});this['_enabledCommands']['add'](_0x6eb54d),_0x250c0c&&_0x6eb54d['on']('execute',(_0x3e4ac2,_0x588918)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x588918['length']>0x0&&_0x588918[_0x588918['length']-0x1]&&_0x588918[_0x588918['length']-0x1]['forceDefaultExecution']?_0x588918['pop']():(_0x3e4ac2['return']=_0x250c0c((..._0x585217)=>_0x6eb54d['execute'](..._0x585217,{'forceDefaultExecution':!0x0}),..._0x588918),_0x3e4ac2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4fb971){let _0x4ae494,_0x16fadc;const _0x1b4244=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4ae494=_0x4fb971();}catch(_0x3d160c){_0x16fadc=_0x3d160c;}return _0x1b4244||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x16fadc&&_0x2d7a4f['rethrowUnexpectedError'](_0x16fadc,this),_0x4ae494;}['markInsertion'](_0x990fae,_0x428106=null,_0x3986df={}){if(_0x990fae['isCollapsed'])return null;const _0x473e1e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3986df['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2a3663,meta:_0x31ba8d}of this['_findSuggestions'](_0x990fae,'insertion'))if(_0x31ba8d['isOwn']){if(!_0x31ba8d['isNextTo']){if(_0x31ba8d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x2a3663,_0x3986df))continue;return _0x2a3663;}if(sn(_0x2a3663,_0x3986df))return _0x2a3663;this['_breakSuggestionMarker'](_0x2a3663,_0x990fae['start'],_0x990fae['end']);break;}if(_0x428106==_0x2a3663['subType']&&sn(_0x2a3663,_0x3986df)){const _0x3b591d=_0x2a3663['getFirstRange']();return _0x3b591d['start']['isEqual'](_0x990fae['end'])?this['_setSuggestionRange'](_0x2a3663,this['_model']['createRange'](_0x990fae['start'],_0x3b591d['end'])):this['_setSuggestionRange'](_0x2a3663,this['_model']['createRange'](_0x3b591d['start'],_0x990fae['end'])),_0x2a3663;}}const _0x336895=_0xcdc81a(),_0x33a555=_0x473e1e['id'],_0x498d2a=_0x428106?'insertion:'+_0x428106:'insertion',_0x53de95=this['_setSuggestionData']({'id':_0x336895,'type':_0x498d2a,'createdAt':new Date(),'authorId':_0x33a555,'attributes':_0x3986df});return this['_addSuggestionMarker'](_0x498d2a,_0x336895,_0x33a555,_0x990fae),_0x53de95;}['markMultiRangeInsertion'](_0xb30590,_0x2ea584='multi',_0x27f500={}){const _0x23c802=this['editor']['plugins']['get']('Users')['me'],_0x23dd5a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2ea584,'join');this['_trackingSessionId']&&(_0x27f500['trackingSessionId']=this['_trackingSessionId']);for(const _0x2b28d5 of this['getSuggestions']())if(_0x2b28d5['author']['id']==_0x23c802['id']&&'insertion'==_0x2b28d5['type']&&_0x2b28d5['subType']==_0x2ea584&&sn(_0x2b28d5,_0x27f500)&&(_0x23dd5a(_0x2b28d5['getRanges'](),_0xb30590)||_0x23dd5a(_0xb30590,_0x2b28d5['getRanges']()))){for(const _0x31e85d of _0xb30590)_0x2b28d5['addRange'](_0x31e85d);return _0x2b28d5;}for(const {suggestion:_0x26448f,meta:_0x4b719a}of this['_findSuggestions'](_0xb30590,'insertion')){if(!_0x4b719a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4b719a['containsRangeInObject'])continue;if(!sn(_0x26448f,_0x27f500))continue;let _0x109f9e=!0x0;for(const _0x4f2603 of _0x26448f['getRanges']())for(const _0x2808f4 of _0xb30590)if(!_0x4f2603['containsRange'](_0x2808f4)){_0x109f9e=!0x1;break;}if(_0x109f9e)return _0x26448f;}const _0x3f79b0=_0xcdc81a(),_0x22f8fd=_0x23c802['id'],_0x471bb0='insertion:'+_0x2ea584,_0x325eac=this['_setSuggestionData']({'id':_0x3f79b0,'type':_0x471bb0,'createdAt':new Date(),'authorId':_0x22f8fd,'attributes':_0x27f500});for(const _0x45e43f of _0xb30590)this['_addSuggestionMarker'](_0x471bb0,_0x3f79b0,_0x22f8fd,_0x45e43f,T['getMultiRangeId']());return _0x325eac;}['markInlineFormat'](_0xd0ac61,_0xaded0b,_0x31c083=null,_0x58d027={}){if(_0x31c083=_0x31c083||Ht(_0xaded0b),_0xd0ac61['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x58d027['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c5d1e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x31c083,'accept');return this['forceDefaultExecution'](()=>_0x2c5d1e([_0xd0ac61],_0xaded0b,_0x58d027)),null;}const _0xc32b17=this['editor']['plugins']['get']('Users')['me'],_0x2be9b3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x535e34,meta:_0x2c59e8}of this['_findSuggestions'](_0xd0ac61,'insertion'))_0x2c59e8['isOwn']&&!_0x2c59e8['isInsideObject']&&_0x2be9b3['push'](..._0x535e34['getRanges']());}const _0x294197=function(_0x28800b,_0x56cc91){const _0x4e2826=[];for(const _0x44b0de of _0x56cc91){const _0x455e46=_0x28800b['getIntersection'](_0x44b0de);_0x455e46&&_0x4e2826['push'](_0x455e46);}return _0x4e2826;}(_0xd0ac61,_0x2be9b3),_0x2d8e96=function(_0x33266c,_0x2fc3d1){const _0x3b4c44=[_0x33266c];for(const _0x5614bd of _0x2fc3d1){let _0x104dd8=0x0;for(;_0x104dd8<_0x3b4c44['length'];){const _0x548370=_0x3b4c44[_0x104dd8]['getDifference'](_0x5614bd);_0x3b4c44['splice'](_0x104dd8,0x1,..._0x548370),_0x104dd8+=_0x548370['length'];}}return _0x3b4c44;}(_0xd0ac61,_0x2be9b3);_0x294197['length']&&this['_model']['change'](()=>{for(const _0x49fc11 of _0x294197){const _0x37721d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x31c083,'accept');this['forceDefaultExecution'](()=>_0x37721d([_0x49fc11],_0xaded0b,_0x58d027));}});for(const _0xc96f2c of _0x2d8e96){let _0x9e7ee6=null,_0x242a22=_0xc96f2c['start'],_0x573b7f=_0xc96f2c['end'];for(const {suggestion:_0x2d1367,meta:_0x266fb9}of this['_findSuggestions'](_0xc96f2c,'formatInline')){if(!_0x266fb9['isOwn'])continue;if(_0x2d1367['subType']!=_0x31c083)continue;if(!sn(_0x2d1367,_0x58d027))continue;const _0x5e6777=_0x2d1367['getFirstRange']();if(_0x5e6777['containsRange'](_0xc96f2c,!0x0))return null;_0x242a22=_0x242a22['isBefore'](_0x5e6777['start'])?_0x242a22:_0x5e6777['start'],_0x573b7f=_0x573b7f['isAfter'](_0x5e6777['end'])?_0x573b7f:_0x5e6777['end'],_0x9e7ee6?_0x5e6777['start']['isBefore'](_0x9e7ee6['getFirstRange']()['start'])?(_0x9e7ee6['removeMarkers'](),_0x9e7ee6=_0x2d1367):_0x2d1367['removeMarkers']():_0x9e7ee6=_0x2d1367;}const _0x473bed=this['_model']['createRange'](_0x242a22,_0x573b7f);if(_0x9e7ee6)this['_setSuggestionRange'](_0x9e7ee6,_0x473bed);else{const _0x1ca5c5=_0xcdc81a(),_0x9dc0c1=_0xc32b17['id'];this['_setSuggestionData']({'id':_0x1ca5c5,'type':'formatInline:'+_0x31c083,'data':_0xaded0b,'createdAt':new Date(),'authorId':_0x9dc0c1,'attributes':_0x58d027}),this['_addSuggestionMarker']('formatInline:'+_0x31c083,_0x1ca5c5,_0x9dc0c1,_0x473bed);}}return null;}['markBlockFormat'](_0x5e9a88,_0x3d70fc,_0x4faf86=[],_0x5351d8=null,_0x1c45c0={}){_0x3d70fc['formatGroupId']||(_0x3d70fc['formatGroupId']=_0x3d70fc['commandName']),_0x3d70fc['multipleBlocks']=_0x5e9a88['is']('range'),_0x5351d8=_0x5351d8||Ht(_0x3d70fc);const _0x1b754c=_0x4faf86['map'](_0x4c21c0=>tn(_0x4c21c0,this['_model'])),_0x332849=_0x5e9a88['is']('range')?_0x5e9a88:tn(_0x5e9a88,this['_model']);if(this['_trackingSessionId']&&(_0x1c45c0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x35d6cb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5351d8,'accept');return this['forceDefaultExecution'](()=>_0x35d6cb([_0x332849],_0x3d70fc,_0x1c45c0)),null;}_0x1b754c['push'](_0x332849);let _0x526068=!0x0;for(const _0x48c10f of _0x1b754c)if(!this['_rangeIsInLocalUserInsertion'](_0x48c10f)){_0x526068=!0x1;break;}if(_0x526068&&'always'!==this['_trackFormatChanges']){const _0x3271f2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5351d8,'accept');return this['forceDefaultExecution'](()=>_0x3271f2([_0x332849],_0x3d70fc,_0x1c45c0)),null;}let _0x8299d=null,_0x2e8181=_0x332849['start'],_0x5bc2bd=_0x332849['end'];for(const {suggestion:_0x2480e9,meta:_0x12c3d8}of this['_findSuggestions'](_0x332849,'formatBlock')){if(!_0x12c3d8['isOwn'])continue;if(_0x12c3d8['isNextTo']||_0x12c3d8['containsRangeInObject']||_0x12c3d8['isInsideObject'])continue;if(_0x2480e9['data']['formatGroupId']!=_0x3d70fc['formatGroupId'])continue;if(!sn(_0x2480e9,_0x1c45c0))continue;const _0x234661=_0x2480e9['getFirstRange']();if(_0x2480e9['subType']==_0x5351d8){if(_0x234661['containsRange'](_0x332849,!0x0))return null;_0x2e8181=_0x2e8181['isBefore'](_0x234661['start'])?_0x2e8181:_0x234661['start'],_0x5bc2bd=_0x5bc2bd['isAfter'](_0x234661['end'])?_0x5bc2bd:_0x234661['end'],_0x8299d?_0x234661['start']['isBefore'](_0x8299d['getFirstRange']()['start'])?(_0x8299d['removeMarkers'](),_0x8299d=_0x2480e9):_0x2480e9['removeMarkers']():_0x8299d=_0x2480e9;}else{const _0x520df5=_0x332849['getIntersection'](_0x234661);this['_cutOutSuggestionMarker'](_0x2480e9,_0x520df5);}}const _0x44d31c=this['editor']['plugins']['get']('Users')['me'],_0x16a043=_0xcdc81a(),_0x4ff8de=_0x44d31c['id'];if(_0x8299d)return this['_setSuggestionRange'](_0x8299d,this['_model']['createRange'](_0x2e8181,_0x5bc2bd)),_0x8299d;{const _0x5a334f=this['_setSuggestionData']({'id':_0x16a043,'type':'formatBlock:'+_0x5351d8,'data':_0x3d70fc,'createdAt':new Date(),'authorId':_0x4ff8de,'attributes':_0x1c45c0});return this['_addSuggestionMarker']('formatBlock:'+_0x5351d8,_0x16a043,_0x4ff8de,this['_model']['createRange'](_0x2e8181,_0x5bc2bd)),_0x5a334f;}}['markMultiRangeBlockFormat'](_0x4d845a,_0x35df6c,_0x26fd5e=[],_0x31515f=null,_0x5ec659={}){_0x35df6c['formatGroupId']||(_0x35df6c['formatGroupId']=_0x35df6c['commandName']);const _0x27c719=_0x4d845a[0x0];_0x35df6c['multipleBlocks']=_0x27c719['is']('range'),_0x31515f=_0x31515f||Ht(_0x35df6c);const _0x5c4b68=_0x26fd5e['map'](_0x574bad=>tn(_0x574bad,this['_model'])),_0x205c6d=_0x27c719['is']('range')?_0x4d845a:_0x4d845a['map'](_0x5f28eb=>tn(_0x5f28eb,this['_model']));if(this['_trackingSessionId']&&(_0x5ec659['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x210a4b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31515f,'accept');return this['forceDefaultExecution'](()=>_0x210a4b(_0x205c6d,_0x35df6c,_0x5ec659)),null;}_0x5c4b68['push'](..._0x205c6d);let _0x5c28b4=!0x0;for(const _0x400425 of _0x5c4b68)if(!this['_rangeIsInLocalUserInsertion'](_0x400425)){_0x5c28b4=!0x1;break;}if(_0x5c28b4&&'always'!==this['_trackFormatChanges']){const _0x1cb7c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31515f,'accept');return this['forceDefaultExecution'](()=>_0x1cb7c4(_0x205c6d,_0x35df6c,_0x5ec659)),null;}const _0xf2d1d6=this['editor']['plugins']['get']('Users')['me'];for(const _0x3a06ab of this['getSuggestions']()){const _0x2789c7=_0x3a06ab['data'];if(_0x3a06ab['author']['id']!=_0xf2d1d6['id'])continue;if('formatBlock'!=_0x3a06ab['type']||_0x2789c7['formatGroupId']!=_0x35df6c['formatGroupId'])continue;if(!sn(_0x3a06ab,_0x5ec659))continue;const _0x55c1a6=_0x3a06ab['subType']==_0x31515f;for(let _0x19fda0=0x0;_0x19fda0<_0x205c6d['length'];_0x19fda0++){const _0xa0f82a=_0x205c6d[_0x19fda0];for(const _0x4efaa5 of _0x3a06ab['getMarkers']()){const _0x304bfa=_0x4efaa5['getRange']();if(_0xa0f82a['isEqual'](_0x304bfa)){_0x55c1a6?(_0x205c6d['splice'](_0x19fda0,0x1),_0x19fda0--):_0x3a06ab['removeMarker'](_0x4efaa5['name']);break;}}}}if(0x0==_0x205c6d['length'])return null;const _0x316953=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31515f,'join');for(const _0x2817d1 of this['getSuggestions']()){const _0x56b0a2=_0x2817d1['data'];if(_0x2817d1['author']['id']==_0xf2d1d6['id']&&('formatBlock'==_0x2817d1['type']&&_0x56b0a2['formatGroupId']==_0x35df6c['formatGroupId']&&_0x2817d1['subType']==_0x31515f&&sn(_0x2817d1,_0x5ec659)&&(_0x316953(_0x2817d1['getRanges'](),_0x205c6d)||_0x316953(_0x205c6d,_0x2817d1['getRanges']())))){for(const _0x52a516 of _0x205c6d)_0x2817d1['addRange'](_0x52a516);return _0x2817d1;}}const _0x5a308f=_0xcdc81a(),_0x1025aa=_0xf2d1d6['id'],_0x4b8087='formatBlock:'+_0x31515f,_0x30750f=this['_setSuggestionData']({'id':_0x5a308f,'type':_0x4b8087,'data':_0x35df6c,'createdAt':new Date(),'authorId':_0x1025aa,'attributes':_0x5ec659});for(const _0x16460e of _0x205c6d)this['_addSuggestionMarker'](_0x4b8087,_0x5a308f,_0x1025aa,_0x16460e,T['getMultiRangeId']());return _0x30750f;}['markDeletion'](_0x237196,_0x5d772f=null,_0x219fa4={}){if(_0x237196['isCollapsed'])return null;const _0x3ced6f=this['editor']['plugins']['get']('Users')['me'],_0x3ed196=new _0x4c3029(_0x237196['start'],_0x237196['end']);this['_trackingSessionId']&&(_0x219fa4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4a222d,meta:_0xaa78b3}of this['_findSuggestions'](_0x3ed196,'insertion'))if(_0xaa78b3['isOwn']&&!_0xaa78b3['isNextTo']){if(_0x4a222d['isMultiRange']){const _0xf5bb0d=_0x4a222d['getRanges']()['filter'](_0x39a730=>'$graveyard'!=_0x39a730['root']['rootName']);_0xf5bb0d['every'](_0x3e16b8=>_0x3ed196['containsRange'](_0x3e16b8,!0x0))&&_0x4a222d['discard']();if(_0xf5bb0d['some'](_0x3cc8c1=>_0x3cc8c1['containsRange'](_0x3ed196,!0x0))){const _0x4fa53b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d772f,'accept');return this['forceDefaultExecution'](()=>_0x4fa53b([_0x3ed196],null,_0x219fa4)),null;}}else{const _0x429e48=_0x3ed196['getIntersection'](_0x4a222d['getFirstRange']());null!==_0x429e48&&_0x4a222d['_onDiscard']([_0x429e48],null,_0x219fa4);}}if(_0x3ed196['detach'](),_0x3ed196['isCollapsed']||'$graveyard'==_0x3ed196['root']['rootName'])return null;let _0x2560d0=null,_0x248d90=_0x3ed196['start'],_0x703c61=_0x3ed196['end'];const _0x1239f9=this['_findSuggestions'](_0x3ed196,'deletion');for(const {suggestion:_0x34a112,meta:_0x30cab5}of _0x1239f9){const _0x1f33ee=this['_model']['createRange'](_0x248d90,_0x703c61);if(_0x30cab5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x30cab5['containsRangeInObject']&&!_0x30cab5['isInsideObject'])){if(_0x34a112['isMultiRange']){if(!sn(_0x34a112,_0x219fa4))continue;let _0x369113=!0x0;for(const _0x5cad6a of _0x34a112['getRanges']()){if(_0x5cad6a['containsRange'](_0x1f33ee,!0x0))return _0x34a112;_0x1f33ee['containsRange'](_0x5cad6a)||(_0x369113=!0x1);}_0x369113&&_0x34a112['discard']();}else{const _0x2f15a2=_0x34a112['getFirstRange']();if(_0x2f15a2['containsRange'](_0x1f33ee,!0x0))return _0x34a112;if(!sn(_0x34a112,_0x219fa4)){_0x1f33ee['containsRange'](_0x2f15a2)?_0x34a112['removeMarkers']():_0x2f15a2['containsPosition'](_0x248d90)?_0x248d90=_0x2f15a2['end']:_0x2f15a2['containsPosition'](_0x703c61)&&(_0x703c61=_0x2f15a2['start']);continue;}_0x248d90=_0x248d90['isBefore'](_0x2f15a2['start'])?_0x248d90:_0x2f15a2['start'],_0x703c61=_0x703c61['isAfter'](_0x2f15a2['end'])?_0x703c61:_0x2f15a2['end'],_0x219fa4=Object['assign']({},_0x34a112['attributes']),_0x2560d0?_0x2f15a2['start']['isBefore'](_0x2560d0['getFirstRange']()['start'])?(_0x2560d0['removeMarkers'](),_0x2560d0=_0x34a112):_0x34a112['removeMarkers']():_0x2560d0=_0x34a112;}}}if(_0x2560d0)return this['_setSuggestionRange'](_0x2560d0,this['_model']['createRange'](_0x248d90,_0x703c61)),_0x2560d0;{const _0x474a6e=_0xcdc81a(),_0x5a9f1c=this['_model']['createRange'](_0x248d90,_0x703c61),_0x2db3ca=_0x3ced6f['id'],_0x8dc3bb=_0x5d772f?'deletion:'+_0x5d772f:'deletion',_0x1c8c53=this['_setSuggestionData']({'id':_0x474a6e,'type':_0x8dc3bb,'createdAt':new Date(),'authorId':_0x2db3ca,'attributes':_0x219fa4});return this['_addSuggestionMarker'](_0x8dc3bb,_0x474a6e,_0x2db3ca,_0x5a9f1c),_0x1c8c53;}}['markMultiRangeDeletion'](_0x544f7e,_0x2747f6='multi',_0x1b928b={}){const _0x15467a=this['editor']['plugins']['get']('Users')['me'],_0x551c8e=_0x544f7e['map'](_0x2dca66=>new _0x4c3029(_0x2dca66['start'],_0x2dca66['end'])),_0x53a2cd=new Set();this['_trackingSessionId']&&(_0x1b928b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4dee39,meta:_0x570031}of this['_findSuggestions'](_0x551c8e,'insertion'))_0x570031['isOwn']&&!_0x570031['isNextTo']&&_0x53a2cd['add'](_0x4dee39);for(const _0x5cc1b8 of _0x53a2cd)if(_0x5cc1b8['isMultiRange']){const _0x5d1840=_0x5cc1b8['getRanges']();(!_0x5cc1b8['attributes']||!_0x5cc1b8['attributes']['skipNestingCheck'])&&(_0x5d1840['every'](_0x3f811e=>_0x551c8e['some'](_0x448bcb=>_0x448bcb['containsRange'](_0x3f811e,!0x0)))&&_0x5cc1b8['discard']());if(_0x551c8e['every'](_0x1e22bb=>_0x5d1840['some'](_0x6a83a8=>_0x6a83a8['containsRange'](_0x1e22bb,!0x0)))){const _0x177198=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2747f6,'accept');return this['forceDefaultExecution'](()=>_0x177198(_0x544f7e,null,_0x1b928b)),null;}}else{const _0x123dba=_0x5cc1b8['getFirstRange']();_0x551c8e['some'](_0x39bf82=>_0x39bf82['containsRange'](_0x123dba,!0x0))&&_0x5cc1b8['discard']();if(_0x551c8e['every'](_0x279841=>_0x123dba['containsRange'](_0x279841,!0x0))){const _0x2139a5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2747f6,'accept');return this['forceDefaultExecution'](()=>_0x2139a5(_0x551c8e,null,_0x1b928b)),null;}}const _0x44f321=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2747f6,'join');let _0x45b74b=null;for(const _0x312879 of this['getSuggestions']())if(_0x312879['author']['id']==_0x15467a['id']&&_0x312879['isInContent']&&'deletion'==_0x312879['type']&&_0x312879['subType']==_0x2747f6&&sn(_0x312879,_0x1b928b)&&(_0x44f321(_0x312879['getRanges'](),_0x551c8e)||_0x44f321(_0x551c8e,_0x312879['getRanges']()))){if(_0x45b74b){if(_0x312879['commentThread']&&_0x312879['commentThread']['length'])continue;for(const _0x569466 of _0x312879['getRanges']())_0x45b74b['isIntersectingWithRange'](_0x569466)||_0x45b74b['addRange'](_0x569466);_0x312879['removeMarkers']();}else{_0x45b74b=_0x312879;for(const _0xdc093c of _0x551c8e)_0x312879['isIntersectingWithRange'](_0xdc093c)||_0x312879['addRange'](_0xdc093c);}}if(_0x45b74b)return _0x45b74b;_0x53a2cd['clear']();for(const {suggestion:_0x3a85c4,meta:_0x4c0929}of this['_findSuggestions'](_0x551c8e,'deletion'))_0x4c0929['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4c0929['containsRangeInObject']&&!_0x4c0929['isInsideObject'])&&sn(_0x3a85c4,_0x1b928b)&&_0x53a2cd['add'](_0x3a85c4);for(const _0x5a67df of _0x53a2cd){const _0x6075cb=_0x5a67df['getRanges']();if(!_0x1b928b||!_0x1b928b['skipNestingCheck']){if(_0x551c8e['every'](_0x4fb552=>_0x6075cb['some'](_0x3bd5aa=>_0x3bd5aa['containsRange'](_0x4fb552,!0x0))))return _0x5a67df;}(!_0x5a67df['attributes']||!_0x5a67df['attributes']['skipNestingCheck'])&&(_0x6075cb['every'](_0x4d2a6b=>_0x551c8e['some'](_0x13bf0f=>_0x13bf0f['containsRange'](_0x4d2a6b,!0x0)))&&_0x5a67df['discard']());}const _0x5ee30e=_0xcdc81a(),_0x1e2c82=_0x15467a['id'],_0x55b25='deletion:'+_0x2747f6,_0x39c1ad=this['_setSuggestionData']({'id':_0x5ee30e,'type':_0x55b25,'createdAt':new Date(),'authorId':_0x1e2c82,'attributes':_0x1b928b});for(const _0x1641f6 of _0x551c8e)_0x1641f6['detach'](),_0x1641f6['isCollapsed']||'$graveyard'==_0x1641f6['root']['rootName']||this['_addSuggestionMarker'](_0x55b25,_0x5ee30e,_0x1e2c82,_0x1641f6,T['getMultiRangeId']());return _0x39c1ad;}['markAttributeChange'](_0x2421f6,_0x313f8d,_0x35f030,_0xbcb4aa,_0x55ffd3){if(_0x2421f6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x238ffd=this['editor']['plugins']['get']('Users')['me']['id'],_0x23146a=Array['from'](this['_suggestions']['values']())['filter'](_0x3c7850=>'attribute'==_0x3c7850['type']&&_0x3c7850['data']['key']==_0x313f8d&&_0x3c7850['isIntersectingWithRange'](_0x2421f6));if(this['_trackingSessionId']&&(_0x55ffd3['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x361e4c=this['_findSuggestions'](_0x2421f6,'insertion')['filter'](({meta:_0x369775})=>_0x369775['isOwn']&&!_0x369775['isInsideObject']&&!_0x369775['isNextTo'])['map'](({suggestion:_0xddf531})=>_0xddf531);_0x23146a['unshift'](..._0x361e4c);}const _0x43136c=new Map([[_0x2421f6,_0x35f030]]);for(const _0x48f176 of _0x23146a){const _0x18d5a3='attribute'==_0x48f176['type']?_0x48f176['data']['oldValue']:void 0x0,_0x120259=_0x48f176['getFirstRange'](),_0x4ae67c=Array['from'](_0x43136c['keys']())['find'](_0x57bd2f=>_0x57bd2f['isIntersecting'](_0x120259));if(!_0x4ae67c)continue;const _0x3eedcb=_0x4ae67c['getDifference'](_0x120259);this['_isBlockAttribute'](_0x313f8d)&&'insertion'==_0x48f176['type']&&0x0!=_0x3eedcb['length']||(_0x43136c['delete'](_0x4ae67c),_0x3eedcb['forEach'](_0x54c467=>{_0x43136c['set'](_0x54c467,_0x35f030);}),'insertion'!=_0x48f176['type']&&_0x18d5a3!=_0xbcb4aa&&_0x43136c['set'](_0x4ae67c['getIntersection'](_0x120259),_0x18d5a3));}const _0xbefaeb=[];for(const [_0x337edd,_0x268b27]of _0x43136c){const _0x2bf4c1=_0xcdc81a(),_0x42c75a={'key':_0x313f8d,'oldValue':_0x268b27,'newValue':_0xbcb4aa};_0x313f8d['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':_0x313f8d});const _0xeed4ea=('attribute:'+(_0x313f8d+'|'+Ht({'newValue':_0xbcb4aa})))['substring'](0x0,0x3c),_0x19c744=this['_setSuggestionData']({'id':_0x2bf4c1,'type':_0xeed4ea,'data':_0x42c75a,'createdAt':new Date(),'authorId':_0x238ffd,'attributes':_0x55ffd3});_0xbefaeb['push'](_0x19c744),this['_addSuggestionMarker'](_0xeed4ea,_0x2bf4c1,_0x238ffd,_0x337edd);}return _0xbefaeb;}['enableDefaultAttributesIntegration'](_0x31f1ea){this['enableCommand'](_0x31f1ea,(_0x2474de,..._0x55650f)=>{this['recordAttributeChanges'](()=>{_0x2474de(..._0x55650f);});});}['registerBlockAttribute'](_0x2280a3){this['editor']['plugins']['get'](_0x5d38f7)['registerBlockAttribute'](_0x2280a3);}['registerInlineAttribute'](_0x44b89b){this['editor']['plugins']['get'](_0x5d38f7)['registerInlineAttribute'](_0x44b89b);}['startTrackingSession'](_0xc31355){return this['_trackingSessionId']=void 0x0!==_0xc31355?_0xc31355:_0xcdc81a(),this['_trackingSessionId'];}['_getAttributeKey'](_0x46010b){return'attribute'==_0x46010b['type']?_0x46010b['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x32014a){if(0x0==_0x32014a['length'])return;const _0x3c1374=this['editor'],_0x48ccfd=_0x3c1374['plugins']['get'](_0x4857f0),_0x1c12db=[];_0x3c1374['model']['change'](_0xeca8e1=>{for(let _0x472743=0x0;_0x472743<_0x32014a['length'];_0x472743++){const _0x7acdac=_0x32014a[_0x472743];if(_0x7acdac['baseVersion']=_0x3c1374['model']['document']['version'],_0x7acdac['isDocumentOperation']=!0x0,_0x48ccfd['isMarkedRemoveOperation'](_0x7acdac)){const _0x4a7e09=_0x3aaf40(_0x7acdac['newRange'],_0x3c1374['model']);_0x1c12db['unshift'](_0x4c3029['fromRange'](_0x4a7e09));}else switch(_0x7acdac['type']){case'rename':{const _0x129ac2=_0x7acdac['oldName'],_0x3410ab=_0x7acdac['newName'];if(_0x129ac2==_0x3410ab)break;_0xeca8e1['batch']['addOperation'](_0x7acdac),_0x3c1374['model']['applyOperation'](_0x7acdac);const _0x5a2408='$elementName',_0x294a6c=_0x7acdac['position'],_0x57870f=_0x3c1374['model']['createRange'](_0x294a6c,_0x3c1374['model']['createPositionAt'](_0x294a6c['nodeAfter'],'end'));this['markAttributeChange'](_0x57870f,_0x5a2408,_0x129ac2,_0x3410ab,{'groupId':_0xcdc81a()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xc6c807=_0x7acdac['oldValue'],_0x14d875=_0x7acdac['newValue'];if(_0xc6c807==_0x14d875)break;_0xeca8e1['batch']['addOperation'](_0x7acdac),_0x3c1374['model']['applyOperation'](_0x7acdac);const _0x94633e=_0x7acdac['key'];if(!this['_isRegisteredAttribute'](_0x94633e))break;const _0x2b49a0=_0x3aaf40(_0x7acdac['range'],_0x3c1374['model']);this['markAttributeChange'](_0x2b49a0,_0x94633e,_0xc6c807,_0x14d875,{'groupId':_0xcdc81a()});break;}case'insert':{_0xeca8e1['batch']['addOperation'](_0x7acdac),_0x3c1374['model']['applyOperation'](_0x7acdac);if(_0x32014a[_0x472743+0x1]&&'move'==_0x32014a[_0x472743+0x1]['type'])break;const _0x51f29e=_0x7acdac['position'],_0x5c4af5=_0x7acdac['howMany'],_0xebd57e=_0x3aaf40(_0x3c1374['model']['createRange'](_0x51f29e,_0x51f29e['getShiftedBy'](_0x5c4af5)),_0x3c1374['model']);this['markInsertion'](_0xebd57e);break;}case'split':{_0xeca8e1['batch']['addOperation'](_0x7acdac),_0x3c1374['model']['applyOperation'](_0x7acdac);const _0x18b4a1=_0x7acdac['splitPosition'],_0x3632c7=_0x7acdac['moveTargetPosition'];this['markInsertion'](_0x3c1374['model']['createRange'](_0x18b4a1,_0x3632c7));break;}case'move':case'remove':_0xeca8e1['batch']['addOperation'](_0x7acdac),_0x3c1374['model']['applyOperation'](_0x7acdac);}}for(const _0x5645e7 of _0x1c12db)_0x5645e7['detach'](),this['markDeletion'](_0x5645e7);});}['_setSuggestionRange'](_0x502ac8,_0x10a659){const _0x30c35f=_0x502ac8['getFirstMarker']();this['_model']['change'](_0x4eb6ab=>{_0x4eb6ab['updateMarker'](_0x30c35f,{'range':_0x10a659});});}['_addThreadToSuggestion'](_0x126b96){const _0x575110=_0x126b96['id'],_0x1b036a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x575110)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1b036a,'threadId':_0x575110,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x946fb4=this['_commentsRepository']['getCommentThread'](_0x575110);_0x946fb4['unbind']('isRemovable'),_0x946fb4['isRemovable']=!0x1,_0x126b96['commentThread']=_0x946fb4;}['_checkSuggestionCorrectness'](_0x4d6746,_0x464e97,_0x14fa4a,_0x32e8a0){if(_0x4d6746['type']!=_0x464e97||_0x4d6746['subType']!=_0x14fa4a||_0x4d6746['creator']['id']!=_0x32e8a0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2d7a4f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1453f8,_0xa0e4fa){const _0x2ec122=_0x1453f8['getFirstRange']();if(_0xa0e4fa['isEqual'](_0x2ec122))_0x1453f8['removeMarkers']();else{if(_0x2ec122['containsRange'](_0xa0e4fa)){const _0x15bdcd=this['_model']['createPositionAt'](_0xa0e4fa['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1453f8,this['_model']['createRange'](_0x2ec122['start'],_0x15bdcd));const _0x409724=_0xcdc81a(),_0x388c52=_0x1453f8['creator']['id'],_0x4eb1c2=_0x1453f8['type']+':'+_0x1453f8['subType'];this['_setSuggestionData']({'id':_0x409724,'type':_0x4eb1c2,'createdAt':new Date(),'authorId':_0x388c52,'data':_0x1453f8['data'],'attributes':_0x1453f8['attributes']});const _0x5d5aaf=this['_model']['createPositionAt'](_0xa0e4fa['end']['parent'],'after'),_0x4e9d3e=this['_model']['createRange'](_0x5d5aaf,_0x2ec122['end']);this['_addSuggestionMarker'](_0x4eb1c2,_0x409724,_0x388c52,_0x4e9d3e);}else{if(_0x2ec122['containsPosition'](_0xa0e4fa['start'])){const _0x5dae77=this['_model']['createPositionAt'](_0xa0e4fa['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1453f8,this['_model']['createRange'](_0x2ec122['start'],_0x5dae77));}else{const _0x27ace6=this['_model']['createPositionAt'](_0xa0e4fa['end']['parent'],'after');this['_setSuggestionRange'](_0x1453f8,this['_model']['createRange'](_0x27ace6,_0x2ec122['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x316b70){for(const {suggestion:_0x3dee7a,meta:_0x63a381}of this['_findSuggestions'](_0x316b70,'insertion')){if(!_0x63a381['isOwn'])continue;const _0x5b3985=_0x3dee7a['getRanges']();for(const _0x1bca07 of _0x5b3985)if(!_0x316b70['getDifference'](_0x1bca07)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x41ff2c){return this['editor']['plugins']['get']('Users')['getUser'](_0x41ff2c);}['_getExternalAuthor'](_0x1f9607){const _0x147f76=this['editor']['plugins']['get']('Users'),_0x20cfdd=_0x420935('external:'+_0x1f9607),_0x3b290a=_0x147f76['getUser'](_0x20cfdd);return _0x3b290a||_0x147f76['addUser']({'id':_0x20cfdd,'name':_0x1f9607});}['_createSuggestion'](_0x68c0f6,_0x5ed7d6,_0x3320e0,_0x3c642d,_0x313954,_0x18a87d){const _0x7116d2=this['_getAuthorFromId'](_0x3c642d);if(!_0x7116d2)throw new _0x2d7a4f('track-changes-user-not-found',this,{'authorId':_0x3c642d,'suggestionId':_0x3320e0});const _0x577626=this['_suggestionFactory']['buildSuggestion'](_0x68c0f6,_0x5ed7d6,_0x3320e0,_0x7116d2,_0x313954,_0x4daf2b=>{this['_updateSuggestionData'](_0x3320e0,{'attributes':_0x4daf2b});const _0x305fcd=this['getSuggestion'](_0x3320e0);this['_joinWithAdjacentSuggestions'](new Set([_0x305fcd])),this['_refreshSuggestionsChain'](new Set([_0x305fcd]));},_0x18a87d);return this['listenTo'](_0x577626,'accept',()=>{this['_updateSuggestionData'](_0x3320e0,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x577626,'discard',()=>{this['_updateSuggestionData'](_0x3320e0,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3320e0,_0x577626),this['_suggestionState']['set'](_0x577626,'notReady'),_0x577626;}['_splitMarkerName'](_0x48dbd9){return _0x6e25cf(_0x48dbd9);}['_breakSuggestionMarker'](_0xe1405c,_0x153e64,_0x4bd0c7){const _0x478c9b=_0xe1405c['getFirstRange'](),_0x515d7d=_0x478c9b['start'],_0x1bad9a=_0x478c9b['end'];this['_setSuggestionRange'](_0xe1405c,this['_model']['createRange'](_0x515d7d,_0x153e64));const _0xe0efee=_0xcdc81a(),_0x1a8d3b=_0xe1405c['creator']['id'],_0x1bc0a8=_0xe1405c['type']+(_0xe1405c['subType']?':'+_0xe1405c['subType']:'');this['_setSuggestionData']({'id':_0xe0efee,'type':_0x1bc0a8,'createdAt':new Date(),'authorId':_0x1a8d3b,'originalSuggestionId':_0xe1405c['_originalSuggestionId']||_0xe1405c['id'],'attributes':_0xe1405c['attributes'],'data':_0xe1405c['data']});const _0x57785b=this['_getAttributeKey'](_0xe1405c);('formatBlock'==_0xe1405c['type']||_0x57785b&&this['_isBlockAttribute'](_0x57785b))&&(_0x4bd0c7=this['_model']['createPositionBefore'](_0x4bd0c7['parent'])),this['_addSuggestionMarker'](_0x1bc0a8,_0xe0efee,_0x1a8d3b,this['_model']['createRange'](_0x4bd0c7,_0x1bad9a));}['_findSuggestions'](_0x5b56f6,_0x35e583=null){const _0x249edf=[],_0x2cf4ab=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5b56f6)||(_0x5b56f6=[_0x5b56f6]);for(const _0x3c2e14 of this['getSuggestions']()){if(!_0x3c2e14['isInContent'])continue;if(_0x35e583&&_0x3c2e14['type']!=_0x35e583)continue;let _0x3a8310=!0x1;for(const _0x94f8c6 of _0x3c2e14['getRanges']()){for(const _0x761523 of _0x5b56f6){const _0x1c084c=_0x761523['start']['isEqual'](_0x94f8c6['end'])||_0x761523['end']['isEqual'](_0x94f8c6['start']);if(_0x1c084c||_0x761523['getIntersection'](_0x94f8c6)){const _0x2ba78c=_0x761523['containsRange'](_0x94f8c6)&&zt(this['_model']['schema'],_0x94f8c6['start'],_0x761523),_0x26befe=_0x94f8c6['containsRange'](_0x761523)&&zt(this['_model']['schema'],_0x761523['start'],_0x94f8c6);_0x249edf['push']({'suggestion':_0x3c2e14,'meta':{'isOwn':_0x2cf4ab==_0x3c2e14['author'],'isNextTo':_0x1c084c,'isInsideObject':_0x2ba78c,'containsRangeInObject':_0x26befe}}),_0x3a8310=!0x0;break;}}if(_0x3a8310)break;}}return _0x249edf;}['_addSuggestionMarker'](_0x4041df,_0x458200,_0x19b7ce,_0x2cb863,_0x2784eb){this['_model']['change'](_0x323367=>{let _0x455c85='suggestion:'+_0x4041df+':'+_0x458200+':'+_0x19b7ce;_0x2784eb&&(_0x455c85=_0x455c85+':'+_0x2784eb),_0x323367['addMarker'](_0x455c85,{'range':_0x2cb863,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1e00a0){const _0x215a78=_0x1e00a0['previous'],_0x506441=_0x1e00a0['next'];_0x1e00a0['previous']=null,_0x1e00a0['next']=null,null!=_0x215a78&&_0x215a78['next']==_0x1e00a0&&(_0x215a78['next']=_0x506441),null!=_0x506441&&_0x506441['previous']==_0x1e00a0&&(_0x506441['previous']=_0x215a78),'ready'==this['_suggestionState']['get'](_0x1e00a0)&&(this['_suggestionState']['set'](_0x1e00a0,'removed'),this['fire']('suggestionUnloaded',_0x1e00a0,_0x215a78,_0x506441));}['_setSuggestionData'](_0x28ed87){const _0x2f2065=_0x28ed87['id'],_0x2b04db=this['addSuggestionData'](_0x28ed87);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x10556c=this['editor']['plugins']['get']('PendingActions'),_0x35fda9=_0x2b04db['hasComments'],_0xa36d4e=_0x2b04db['subType']?_0x2b04db['type']+':'+_0x2b04db['subType']:_0x2b04db['type'],_0x5c4b0d=this['editor']['locale'],_0x49e83c=_0x10556c['add'](o(_0x5c4b0d,'PENDING_ACTION_SUGGESTION')),_0x27ac3b={'id':_0x2f2065,'type':_0xa36d4e,'hasComments':_0x35fda9,'data':_0x28ed87['data']||null,'originalSuggestionId':_0x28ed87['originalSuggestionId']||null,'attributes':_0x2b04db['attributes']};this['_adapter']['addSuggestion'](_0x27ac3b)['then'](_0x184f73=>{_0x2b04db['_saved']=!0x0,_0x10556c['remove'](_0x49e83c),_0x184f73&&_0x184f73['createdAt']&&(this['_suggestions']['get'](_0x2f2065)['createdAt']=_0x184f73['createdAt']);})['catch'](_0x6285d8=>{throw _0x48198a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2b04db['discard']();}),_0x2b04db['stopListening'](),this['_suggestions']['delete'](_0x2b04db['id']),this['_suggestionState']['delete'](_0x2b04db),_0x6285d8;});}return _0x2b04db;}['_isBlockAttribute'](_0x502a4d){return this['editor']['plugins']['get'](_0x5d38f7)['isBlockAttribute'](_0x502a4d);}['_isInlineAttribute'](_0x4e0d5c){return this['editor']['plugins']['get'](_0x5d38f7)['isInlineAttribute'](_0x4e0d5c);}['_updateSuggestionData'](_0xb95dc,_0x3e1e7c){const _0x2f3cb9=this['editor']['plugins']['get']('PendingActions'),_0x5e275e=this['getSuggestion'](_0xb95dc);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5e275e['_saved']){const _0x38d9f6=_0x2f3cb9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xb95dc,_0x3e1e7c)['then'](()=>{_0x2f3cb9['remove'](_0x38d9f6);});}else _0x5e275e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xb95dc,_0x3e1e7c);});}}['_getSuggestionData'](_0x1552a4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2d7a4f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1552a4);}['_handleNewSuggestionMarker'](_0x368772){const {id:_0x3033e6,type:_0xe850f3,subType:_0x3ff20d,authorId:_0x3e4400}=this['_splitMarkerName'](_0x368772),_0x3326fb=this['_suggestions']['get'](_0x3033e6)||this['_createSuggestion'](_0xe850f3,_0x3ff20d,_0x3033e6,_0x3e4400,{});switch(this['_checkSuggestionCorrectness'](_0x3326fb,_0xe850f3,_0x3ff20d,_0x3e4400),this['_suggestionState']['get'](_0x3326fb)){case'notReady':this['_getSuggestionData'](_0x3033e6)['then'](_0x9e7bb5=>{let _0x2d8bbc=Promise['resolve']();_0x9e7bb5['hasComments']&&(_0x2d8bbc=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3033e6})),_0x2d8bbc['then'](()=>{this['addSuggestionData'](_0x9e7bb5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3326fb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3033e6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3326fb,'ready'),this['fire']('suggestionLoaded',_0x3326fb);break;case'ready':this['fire']('suggestionChanged',_0x3326fb);}return _0x3326fb['addMarkerName'](_0x368772),_0x3326fb;}['_refreshSuggestionsChain'](_0x1013c8){const _0xff260a=Array['from'](_0x1013c8),_0x59ec9e=_0xff260a['filter'](_0x24e932=>'attribute'==_0x24e932['type']);this['_refreshAttributeSuggestionsChain'](_0x59ec9e);const _0x5ad380=_0xff260a['filter'](_0x4add22=>!_0x4add22['isMultiRange']&&'attribute'!=_0x4add22['type']),_0x491502=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d128a=>!_0x5d128a['isMultiRange']&&'attribute'!=_0x5d128a['type']),_0x41b989=_0x491502['filter'](_0x1abd8f=>!_0x1013c8['has'](_0x1abd8f)),_0x470c15=new Map(_0x491502['map'](_0xec64e4=>[_0xec64e4,this['_suggestionFactory']['getSuggestionCallback'](_0xec64e4['type'],_0xec64e4['subType'],'chain')])),_0x22a4f8=new Map(_0x491502['map'](_0x1ea300=>[_0x1ea300,_0x1ea300['getFirstRange']()])),_0x49215d=new Set(),_0x2fce8e=new Set();for(let _0x18a8fe=0x0;_0x18a8fe<_0x5ad380['length'];_0x18a8fe++)_0x5cb8f1(_0x5ad380[_0x18a8fe],_0x5ad380,_0x18a8fe+0x1);for(let _0x3a0aa2=0x0;_0x3a0aa2<_0x5ad380['length'];_0x3a0aa2++)_0x5cb8f1(_0x5ad380[_0x3a0aa2],_0x41b989,0x0);const _0x43392b=new Set();for(let _0x3114f6=0x0;_0x3114f6<_0x5ad380['length'];_0x3114f6++){const _0x2b7826=_0x5ad380[_0x3114f6];!_0x2fce8e['has'](_0x2b7826)&&_0x2b7826['previous']&&(_0x43392b['add'](_0x2b7826['previous']),_0x2b7826['previous']['next']===_0x2b7826&&(_0x2b7826['previous']['next']=null),_0x2b7826['previous']=null),!_0x49215d['has'](_0x2b7826)&&_0x2b7826['next']&&(_0x43392b['add'](_0x2b7826['next']),_0x2b7826['next']['previous']===_0x2b7826&&(_0x2b7826['next']['previous']=null),_0x2b7826['next']=null);}function _0x5cb8f1(_0x15e2f4,_0x2d4663,_0x2072e7){for(let _0x2fc356=_0x2072e7;_0x2fc356<_0x2d4663['length'];_0x2fc356++){const _0x399f2c=_0x344ab1(_0x15e2f4,_0x2d4663[_0x2fc356]);_0x399f2c&&(_0x399f2c[0x0]['next']=_0x399f2c[0x1],_0x399f2c[0x1]['previous']=_0x399f2c[0x0],_0x49215d['add'](_0x399f2c[0x0]),_0x2fce8e['add'](_0x399f2c[0x1]));}}function _0x344ab1(_0x3fb753,_0x991102){if(_0x3fb753['author']['id']!==_0x991102['author']['id'])return null;const _0x2d74be=_0x470c15['get'](_0x3fb753)(_0x3fb753,_0x991102,_0x22a4f8['get'](_0x3fb753),_0x22a4f8['get'](_0x991102));if(!_0x2d74be)return null;return _0x470c15['get'](_0x991102)(_0x3fb753,_0x991102,_0x22a4f8['get'](_0x3fb753),_0x22a4f8['get'](_0x991102))?_0x2d74be[0x1]['commentThread']&&_0x2d74be[0x1]['commentThread']['length']?null:_0x2d74be:null;}_0x43392b['size']&&this['_refreshSuggestionsChain'](_0x43392b);}['_refreshAttributeSuggestionsChain'](_0x1dba94){if(0x0==_0x1dba94['length'])return;const _0x39a7c0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xce0796=>'attribute'==_0xce0796['type']&&_0xce0796['_isDataLoaded']),_0x359a3f=[],_0x12d3d1=new Map();for(const _0x1d0787 of _0x39a7c0){const _0x26da9a=_0x420935(_0x1d0787['attributes']);_0x12d3d1['has'](_0x26da9a)||(_0x12d3d1['set'](_0x26da9a,_0x359a3f['length']),_0x359a3f['push']([]));const _0x2cfbe6=_0x12d3d1['get'](_0x26da9a);_0x359a3f[_0x2cfbe6]['push'](_0x1d0787);}!(function(){_0x359a3f['sort']((_0x4d61b4,_0x2931f8)=>{const _0x5c6c57=_0x4d61b4[0x0]['createdAt'],_0x388701=_0x2931f8[0x0]['createdAt'];return _0x5c6c57==_0x388701?_0x4d61b4[0x0]['attributes']['groupId']<_0x2931f8[0x0]['attributes']['groupId']?-0x1:0x1:_0x5c6c57<_0x388701?-0x1:0x1;});for(const _0x548645 of _0x359a3f)_0x548645['sort']((_0x52b954,_0x58aba0)=>_0x52b954['id']<_0x58aba0['id']?-0x1:0x1);}());for(let _0xf5b4af=0x0;_0xf5b4af<_0x359a3f['length'];_0xf5b4af++){if(0x0==_0x359a3f[_0xf5b4af]['length'])continue;const _0x4a55a1=[];for(let _0x28f52c=_0xf5b4af+0x1;_0x28f52c<_0x359a3f['length'];_0x28f52c++)0x0!=_0x359a3f[_0x28f52c]['length']&&_0x7f2f65(_0x359a3f[_0xf5b4af],_0x359a3f[_0x28f52c])&&_0x4a55a1['push'](_0x28f52c);for(const _0x3299e4 of _0x4a55a1)_0x359a3f[_0xf5b4af]=_0x359a3f[_0xf5b4af]['concat'](_0x359a3f[_0x3299e4]),_0x359a3f[_0x3299e4]=[];}for(const _0x4e5ead of _0x359a3f)for(let _0xe1ee16=0x0;_0xe1ee16<_0x4e5ead['length'];_0xe1ee16++){const _0x3fd453=_0x4e5ead[_0xe1ee16+0x1]||null;_0x4e5ead[_0xe1ee16]['next']!==_0x3fd453&&(_0x4e5ead[_0xe1ee16]['next']=_0x3fd453);}for(const _0x468527 of _0x359a3f)for(let _0x10819c=0x0;_0x10819c<_0x468527['length'];_0x10819c++){const _0x14c574=_0x468527[_0x10819c-0x1]||null;_0x468527[_0x10819c]['previous']!==_0x14c574&&(_0x468527[_0x10819c]['previous']=_0x14c574);}function _0x7f2f65(_0x5165aa,_0x11f8df){if(_0x5165aa[0x0]['attributes']['groupId']!==_0x11f8df[0x0]['attributes']['groupId']&&_0x5165aa[0x0]['author']!==_0x11f8df[0x0]['author'])return!0x1;if(!function(_0x553c7c,_0x4bc384){if(!_0x553c7c['hasComments']&&!_0x4bc384['hasComments'])return!0x0;if(_0x553c7c['hasComments']&&_0x4bc384['hasComments'])return!0x1;if(_0x553c7c['hasComments']&&_0x4bc384['createdAt']<_0x553c7c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4bc384['hasComments']&&_0x553c7c['createdAt']<_0x4bc384['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5165aa[0x0],_0x11f8df[0x0]))return!0x1;const _0x5c08c7=Jt(_0x5165aa[0x0]['attributes'],['groupId','trackingSessionId']),_0x20398a=Jt(_0x11f8df[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x20d232(_0x5c08c7,_0x20398a))return!0x1;if(_0x5165aa[0x0]['attributes']['groupId']==_0x11f8df[0x0]['attributes']['groupId'])return!0x0;if(_0x5165aa[0x0]['attributes']['trackingSessionId']!==_0x11f8df[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5165aa['every'](_0xb6cb35=>_0x11f8df['some'](_0x386e76=>_0xb6cb35['getFirstRange']()['isEqual'](_0x386e76['getFirstRange']())))&&_0x11f8df['every'](_0x1520ab=>_0x5165aa['some'](_0x178e03=>_0x1520ab['getFirstRange']()['isEqual'](_0x178e03['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3f1593){const _0x434f64=Array['from'](_0x3f1593),_0x23a383=this['getSuggestions']({'skipNotAttached':!0x0}),_0x33f0d2=_0x23a383['filter'](_0x4f21e0=>!_0x3f1593['has'](_0x4f21e0)),_0x316cb5=new Map(_0x434f64['map'](_0x277ce1=>[_0x277ce1,this['_suggestionFactory']['getSuggestionCallback'](_0x277ce1['type'],_0x277ce1['subType'],'join')])),_0x4207b4=new Map(_0x23a383['map'](_0x5b381b=>[_0x5b381b,_0x5b381b['getRanges']()]));for(let _0x4e3221=0x0;_0x4e3221<_0x434f64['length'];_0x4e3221++){if(_0x11c33a(this,_0x434f64[_0x4e3221],_0x434f64,_0x4e3221+0x1))return!0x0;}for(let _0x25b74b=0x0;_0x25b74b<_0x434f64['length'];_0x25b74b++){if(_0x11c33a(this,_0x434f64[_0x25b74b],_0x33f0d2,0x0))return!0x0;}return!0x1;function _0x11c33a(_0x3e6537,_0x9aaa27,_0x413a7a,_0x5934c2){for(let _0x47ab13=_0x5934c2;_0x47ab13<_0x413a7a['length'];_0x47ab13++){const _0x44181b=_0x413a7a[_0x47ab13];if(_0x44181b['type']!==_0x9aaa27['type']||_0x44181b['author']['id']!==_0x9aaa27['author']['id']||_0x44181b['subType']!==_0x9aaa27['subType'])continue;if(!en(_0x9aaa27,_0x44181b))continue;if('attribute'==_0x9aaa27['type']&&_0x9aaa27['data']['oldValue']!=_0x44181b['data']['oldValue'])continue;if('attribute'==_0x9aaa27['type']&&_0x3e6537['_isBlockAttribute'](_0x9aaa27['data']['key']))continue;if('formatBlock'==_0x9aaa27['type']){const _0x58a600=_0x3e6537['editor']['model'],_0x104a02=_0x9aaa27['getContainedElement']();if(_0x104a02&&(_0x58a600['schema']['isObject'](_0x104a02)||_0x58a600['schema']['isLimit'](_0x104a02)))continue;}const _0x532bf1=_0x316cb5['get'](_0x9aaa27),_0x5aa25a=_0x4207b4['get'](_0x9aaa27),_0x28bbd4=_0x4207b4['get'](_0x44181b),_0x4bfb68=_0x9aaa27['commentThread']&&_0x9aaa27['commentThread']['length'],_0x54712f=_0x44181b['commentThread']&&_0x44181b['commentThread']['length'];if(!_0x4bfb68&&_0x532bf1(_0x28bbd4,_0x5aa25a))return _0x3e6537['_joinSuggestions'](_0x44181b,_0x9aaa27),_0x4207b4['delete'](_0x9aaa27),!0x0;if(!_0x54712f&&_0x532bf1(_0x5aa25a,_0x28bbd4))return _0x3e6537['_joinSuggestions'](_0x9aaa27,_0x44181b),_0x4207b4['delete'](_0x44181b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x48ef9f,_0xc49f6b){if(_0x48ef9f['isMultiRange']){for(const _0x2fed71 of _0xc49f6b['getRanges']())_0x48ef9f['addRange'](_0x2fed71);}else{const _0x349384=_0xc49f6b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x48ef9f,this['_model']['createRange'](_0x48ef9f['getFirstRange']()['start'],_0x349384));}_0xc49f6b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x404fd8,_0x3ec8cc,_0x383686){const _0x3c4621=_0x404fd8['startsWith']('format')||_0x404fd8['startsWith']('attribute')?'FORMATTING':_0x404fd8['toUpperCase']();return o(this['editor']['locale'],_0x3ec8cc+'_'+_0x3c4621+'_SUGGESTION_ANNOUNCEMENT',_0x383686);}['_initAriaMarkerChangeAnnouncements'](){const _0x5558bd=this['editor'];if(!_0x5558bd['ui'])return;const {ariaLiveAnnouncer:_0x123ce6}=_0x5558bd['ui'];_0x776b21(this['_model'],({left:_0x380dca,entered:_0x46b0db})=>{for(const _0x27fd5f of _0x380dca){const {group:_0x44a498,type:_0x5eb316}=this['_splitMarkerName'](_0x27fd5f['name']);if('suggestion'===_0x44a498){_0x123ce6['announce'](this['_getMarkerAnnouncementText'](_0x5eb316,'LEAVE'));break;}}for(const _0x7e93fc of _0x46b0db){const {group:_0x17dd87,type:_0x2e7db3}=this['_splitMarkerName'](_0x7e93fc['name']);if('suggestion'===_0x17dd87){_0x123ce6['announce'](this['_getMarkerAnnouncementText'](_0x2e7db3,'ENTER',_0x2f6cfe(_0xc97117)));break;}}});}['_processAttributeChanges'](_0x48ca5e){if(this['_recordAttributeSuggestions'])return!0x1;const _0xa5188=this['editor'],_0x192e72=_0xa5188['model']['document']['differ']['getChanges']();if(0x0==_0x192e72['length'])return!0x1;const _0x36cfec=[],_0x143cf0=_0x192e72['filter'](_0x1a114c=>'attribute'==_0x1a114c['type']),_0x5f26ba=_0x192e72['filter'](_0x5989c5=>'insert'==_0x5989c5['type']&&'$text'!=_0x5989c5['name']),_0x4fea51=_0x192e72['filter'](_0x22916b=>'remove'==_0x22916b['type']&&'$text'!=_0x22916b['name']);for(const _0x3b59a8 of _0x143cf0)_0x36cfec['push']({'key':_0x3b59a8['attributeKey'],'newValue':_0x3b59a8['attributeNewValue'],'oldValue':_0x3b59a8['attributeOldValue'],'range':Zt(_0x3b59a8['range'],_0xa5188['model'])});for(const _0x49985c of _0x5f26ba){const _0x194920=_0x4fea51['find'](_0x2d6bc7=>_0x2d6bc7['position']['isEqual'](_0x49985c['position']));_0x194920&&_0x36cfec['push']({'key':m,'newValue':_0x49985c['name'],'oldValue':_0x194920['name'],'range':_0xa5188['model']['createRangeOn'](_0x49985c['position']['nodeAfter'])});}return 0x0!=_0x36cfec['length']&&this['_reduceExistingSuggestions'](_0x48ca5e,_0x36cfec);}['_processAttributeSuggestions'](_0x129501){let _0xa96a28=!0x1;const _0x2bdbbb=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ff461=>_0x4ff461['data']['newRange']&&_0x4ff461['name']['startsWith']('suggestion:attribute:'));for(const _0x53bb62 of _0x2bdbbb){const {subType:_0x560fba,id:_0x30daab}=this['_splitMarkerName'](_0x53bb62['name']),_0x44eb72=_0x560fba['split']('|')[0x0];for(const _0x583cd5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x583cd5['id']!=_0x30daab&&'attribute'==_0x583cd5['type']&&_0x583cd5['data']&&_0x583cd5['data']['key']==_0x44eb72&&_0x583cd5['getFirstRange']()['isIntersecting'](_0x53bb62['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x583cd5,_0x53bb62['data']['newRange'],_0x129501),_0xa96a28=!0x0);}return _0xa96a28;}['recordAttributeChanges'](_0x5b4185){this['_recordAttributeSuggestions']=!0x0,_0x5b4185();}['_isRegisteredAttribute'](_0x3b5bb3){return this['editor']['plugins']['get'](_0x5d38f7)['isRegisteredAttribute'](_0x3b5bb3);}['_reduceExistingSuggestions'](_0x1e7ca3,_0x190cd9){if(0x0==_0x190cd9['length'])return!0x1;let _0x36b85f=!0x1;for(const _0x2fa018 of _0x190cd9){const _0x4c3696=this['_findSuggestions'](_0x2fa018['range'],'attribute')['filter'](_0x1e3c13=>!_0x1e3c13['meta']['isNextTo'])['map'](_0x1473d1=>_0x1473d1['suggestion']),_0x2323d5=_0x420935({'newValue':_0x2fa018['newValue']});_0x4c3696['filter'](_0x236c66=>{const [_0x2c3f15,_0x26bd2b]=_0x236c66['subType']['split']('|');return _0x2c3f15==_0x2fa018['key']&&_0x26bd2b!=_0x2323d5;})['forEach'](_0x2ddeb1=>{this['_reduceSuggestionAttributeRange'](_0x2ddeb1,_0x2fa018['range'],_0x1e7ca3),_0x36b85f=!0x0;});}return _0x36b85f;}['_reduceSuggestionAttributeRange'](_0x49d5e7,_0x112f5f,_0x2adc64){const _0x3f8966=_0x49d5e7['getFirstRange']()['getDifference'](_0x112f5f);0x0!==_0x3f8966['length']?0x1!==_0x3f8966['length']?this['_breakSuggestionMarker'](_0x49d5e7,_0x112f5f['start'],_0x112f5f['end']):this['_setSuggestionRange'](_0x49d5e7,_0x3f8966[0x0]):_0x2adc64['removeMarker'](_0x49d5e7['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4d4334){this['_editor']=_0x4d4334,this['_model']=_0x4d4334['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3df19b,_0x739c04,_0xe884b6,_0x46f250,_0x51fe88,_0x425c0c,_0x28b127){return new T(this['_model'],{'type':_0x3df19b,'subType':_0x739c04,'id':_0xe884b6,'originalSuggestionId':_0x28b127,'author':_0x46f250,'creator':_0x46f250,'attributes':_0x51fe88,'onAttributesChange':_0x425c0c,'onAccept':(..._0x3743ec)=>this['getSuggestionCallback'](_0x3df19b,_0x739c04,'accept')(..._0x3743ec),'onDiscard':(..._0x451895)=>this['getSuggestionCallback'](_0x3df19b,_0x739c04,'discard')(..._0x451895)});}['registerCustomCallback'](_0x17d09e,_0x200705,_0xac186d,_0x6622f6){const _0x2450ba=_0x17d09e+':'+_0x200705+':'+_0xac186d;this['_customCallbacks']['set'](_0x2450ba,_0x6622f6);}['getSuggestionCallback'](_0x5e4050,_0xd71f7c,_0x1d6a61){const _0x2bf5b9=_0x5e4050+':'+_0xd71f7c+':'+_0x1d6a61;return this['_customCallbacks']['get'](_0x2bf5b9)||this['_defaultCallbacks']['get'](_0x5e4050+':'+_0x1d6a61);}['_registerDefaultCallbacks'](){const _0x2f2a5d=()=>!0x1,_0x5893ff=_0x2f1f10=>{_0x2f1f10['sort']((_0x526b34,_0x33b4aa)=>_0x526b34['start']['isBefore'](_0x33b4aa['start'])?0x1:-0x1),this['_model']['change'](_0xcfd265=>{for(const _0x507bd1 of _0x2f1f10){let _0x173acc;_0x173acc=_0x507bd1['end']['isAtEnd']&&_0x507bd1['end']['parent']==_0x507bd1['start']['nodeAfter']?_0xcfd265['createSelection'](_0x507bd1['start']['nodeAfter'],'on'):_0xcfd265['createSelection'](_0x507bd1),this['_model']['deleteContent'](_0x173acc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x54626d=(_0x745e9c,_0x137a58)=>{_0x137a58&&this['_model']['change'](_0x2491bb=>{const {commandName:_0x326c4f,commandParams:_0x50b35d=[]}=_0x137a58,_0x2044d9=_0x745e9c['map'](_0x581821=>(Kt(_0x581821)&&(_0x581821=this['_model']['createRange'](_0x581821['end'])),_0x581821))['filter'](_0x27fa7d=>'$graveyard'!==_0x27fa7d['root']['rootName']);if(_0x2044d9['length']<0x1)return;const _0x31d4ba=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5ed4ce=>_0x4c3029['fromRange'](_0x5ed4ce));_0x2491bb['setSelection'](_0x2044d9);for(const _0xad6b97 of this['_editor']['commands']['commands']())_0xad6b97['refresh']();_0x50b35d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x326c4f,..._0x50b35d);const _0x5250ba=_0x31d4ba['filter'](_0x56b9a5=>'$graveyard'!=_0x56b9a5['root']['rootName']);_0x5250ba['length']>0x0&&_0x2491bb['setSelection'](_0x5250ba);for(const _0x443521 of _0x31d4ba)_0x443521['detach']();});},_0x20858c=(_0x3b4eb2,_0x1277e0)=>0x1==_0x3b4eb2['length']&&0x1==_0x1277e0['length']&&_0x3b4eb2[0x0]['end']['isEqual'](_0x1277e0[0x0]['start']),_0x42b2ce=(_0x16522e,_0x304fbb,_0x289884,_0x17eb7d)=>nn(_0x16522e,_0x304fbb,_0x289884,_0x17eb7d)?[_0x16522e,_0x304fbb]:nn(_0x304fbb,_0x16522e,_0x17eb7d,_0x289884)?[_0x304fbb,_0x16522e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f2a5d),this['_defaultCallbacks']['set']('insertion:discard',_0x5893ff),this['_defaultCallbacks']['set']('insertion:join',_0x20858c),this['_defaultCallbacks']['set']('insertion:chain',_0x42b2ce),this['_defaultCallbacks']['set']('deletion:accept',_0x5893ff),this['_defaultCallbacks']['set']('deletion:discard',_0x2f2a5d),this['_defaultCallbacks']['set']('deletion:join',_0x20858c),this['_defaultCallbacks']['set']('deletion:chain',_0x42b2ce),this['_defaultCallbacks']['set']('formatInline:accept',_0x54626d),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f2a5d),this['_defaultCallbacks']['set']('formatInline:join',_0x20858c),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f2a5d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x54626d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f2a5d),this['_defaultCallbacks']['set']('formatBlock:join',_0x20858c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f2a5d),this['_defaultCallbacks']['set']('attribute:accept',_0x2f2a5d),this['_defaultCallbacks']['set']('attribute:discard',(_0x395a63,_0x1a5785)=>{if(!_0x1a5785)return;const _0x1fb702=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x44c9d1=>{if(_0x1a5785['key']==m)for(const _0x5ce375 of _0x395a63){const _0x233752=_0x5ce375['start']['nodeAfter'],_0x11c698=_0x1a5785['oldValue'];_0x44c9d1['rename'](_0x233752,_0x11c698);}else{if(_0x1fb702['_isBlockAttribute'](_0x1a5785['key'])){for(const _0x2eee05 of _0x395a63)void 0x0!==_0x1a5785['oldValue']?_0x44c9d1['setAttribute'](_0x1a5785['key'],_0x1a5785['oldValue'],_0x2eee05['start']['nodeAfter']):_0x44c9d1['removeAttribute'](_0x1a5785['key'],_0x2eee05['start']['nodeAfter']);}else{for(const _0x48d119 of _0x395a63)_0x1a5785['oldValue']?_0x44c9d1['setAttribute'](_0x1a5785['key'],_0x1a5785['oldValue'],_0x48d119):_0x44c9d1['removeAttribute'](_0x1a5785['key'],_0x48d119);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x20858c);}}function zt(_0x183cdc,_0x2bc7a5,_0x5914c1){for(const _0x12eb1f of _0x2bc7a5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x12eb1f['root']==_0x12eb1f)return!0x1;if(!_0x5914c1['containsItem'](_0x12eb1f))return!0x1;if(_0x183cdc['isObject'](_0x12eb1f)||_0x183cdc['isLimit'](_0x12eb1f))return!0x0;}return!0x1;}function Kt(_0x1e7050){return _0x1e7050['end']['parent']==_0x1e7050['start']['nodeAfter']&&_0x1e7050['end']['isAtStart'];}function Wt(_0x258e4b,_0x2e4440,_0x2bae5f,_0x15bd7a){const _0x379a03=_0xb1d363=>!_0xb1d363['item']['is']('$textProxy')&&!_0x15bd7a['isObject'](_0xb1d363['item']),_0x5c4e2a=_0x258e4b['start']['getLastMatchingPosition'](_0x379a03),_0x14358e=_0x258e4b['end']['getLastMatchingPosition'](_0x379a03,{'direction':'backward'});return(!_0x258e4b['start']['isEqual'](_0x5c4e2a)||!_0x258e4b['end']['isEqual'](_0x14358e))&&(_0x5c4e2a['isBefore'](_0x14358e)?_0x2bae5f['updateMarker'](_0x2e4440,{'range':_0x2bae5f['createRange'](_0x5c4e2a,_0x14358e)}):_0x2bae5f['removeMarker'](_0x2e4440),!0x0);}function Ht(_0x3b1b75){return _0x420935(_0x3b1b75);}function Qt(_0x56cf9e){const _0x128445=_0x56cf9e['start']['nodeAfter'];return _0x128445&&_0x128445['is']('element');}function Xt(_0x58e771){return Kt(_0x58e771)||function(_0x2c9710){return _0x2c9710['start']['parent']==_0x2c9710['end']['nodeBefore']&&_0x2c9710['start']['isAtEnd'];}(_0x58e771);}function Yt(_0x4df94f,_0x389251){try{const _0xb99914=_0x4df94f['getRange']();for(const _0x25b3bb of _0x389251)if(_0x4df94f!==_0x25b3bb&&_0xb99914&&_0xb99914['isIntersecting'](_0x25b3bb['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x37ac12,_0x5c6ad6){return null==_0x37ac12['end']['nodeBefore']&&_0x37ac12['end']['parent']==_0x37ac12['start']['nodeAfter']?tn(_0x37ac12['start']['nodeAfter'],_0x5c6ad6):_0x37ac12;}function tn(_0x45497c,_0x1f2910){const _0x5cb201=_0x1f2910['schema']['isObject'](_0x45497c)||_0x1f2910['schema']['isSelectable'](_0x45497c);return _0x1f2910['createRange'](_0x1f2910['createPositionAt'](_0x45497c,'before'),_0x5cb201?_0x1f2910['createPositionAfter'](_0x45497c):_0x1f2910['createPositionAt'](_0x45497c,'end'));}function nn(_0x65c8f8,_0x1dd1b8,_0x3743f5,_0x31c5a1){return!!en(_0x65c8f8,_0x1dd1b8)&&_0x3743f5['end']['isEqual'](_0x31c5a1['start']);}function en(_0x4c34e3,_0x41fdaf){if(!_0x4c34e3['_isDataLoaded']||!_0x41fdaf['_isDataLoaded'])return!0x1;const _0xdb7a6a=new Set(Object['keys'](_0x4c34e3['attributes'])),_0x2fe3ee=new Set(Object['keys'](_0x41fdaf['attributes']));if(_0xdb7a6a['delete']('groupId'),_0x2fe3ee['delete']('groupId'),0x0==_0xdb7a6a['size']&&0x0==_0x2fe3ee['size'])return!0x0;if(_0xdb7a6a['size']!=_0x2fe3ee['size'])return!0x1;const _0x5ccb68={..._0x4c34e3['attributes']},_0x58d329={..._0x41fdaf['attributes']};return delete _0x5ccb68['groupId'],delete _0x58d329['groupId'],JSON['stringify'](_0x5ccb68)==JSON['stringify'](_0x58d329);}function sn(_0x5bba76,_0x7482b3){const _0x17fb66=on(_0x5bba76['attributes']),_0x35184a=on(_0x7482b3);if(!_0x5bba76['_isDataLoaded'])return!0x1;for(const _0x2c6274 of Object['keys'](_0x35184a))if(!_0x20d232(_0x17fb66[_0x2c6274],_0x35184a[_0x2c6274]))return!0x1;return!0x0;}function on(_0x1dcc07){const _0x566b01=Object['assign']({},_0x1dcc07);return delete _0x566b01['skipNestingCheck'],delete _0x566b01['tablePasteChainId'],_0x566b01;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x3889c4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x478280,_0xd40ee5,_0x17c0ae,_0xf65c9a){super(),this['model']=_0xd40ee5,this['view']=_0x17c0ae,this['commentThreadController']=_0xf65c9a,this['_editor']=_0x478280,this['_acceptCommand']=_0x478280['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x478280['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x128dba,_0x1b80dc)=>_0x128dba||_0x1b80dc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xd63fdf=>_0xd63fdf&&this['_editor']['model']['canEditAt'](_0xd40ee5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3dea4e=>_0x3dea4e&&this['_editor']['model']['canEditAt'](_0xd40ee5['getRanges']())),this['_pendingAction']=null,_0x17c0ae['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x17c0ae,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x17c0ae,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x17c0ae,'change:isDirty',()=>{_0x17c0ae['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 _0x392a20=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x392a20);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x29247f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x530e85,_0x3f01bc,_0x189399,_0x53f11c){super(_0x530e85),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x30bba4(_0x530e85,o(_0x530e85,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3f01bc['authoredAt']),this['bind']('authoredAt')['to'](_0x3f01bc),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',_0x3f01bc,'authoredAt',this,'descriptionParts',(_0x443ba0,_0x1e500a,_0x1b72e6)=>{const _0x123563=_0x1b72e6['map'](_0x312e30=>ls(_0x312e30['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x443ba0-0x1,_0x3f01bc['author']['name'],_0x1e500a?_0x53f11c['formatDateTime'](_0x1e500a):'',new DOMParser()['parseFromString'](_0x123563,'text/html')['body']['textContent']]);}),this['focusables']=new _0x24f11e(),this['focusTracker']=new _0x226a80(),this['keystrokes']=new _0x3d6b21(),this['focusCycler']=new _0x47c3bb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x157e3f=>_0x157e3f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3f01bc,this['_localUser']=_0x189399,this['_config']=_0x53f11c,_0x53f11c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x347dc5(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3806a3}=this['_config'];this['commentsListView']=new _0x3806a3(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',_0x1b5e34=>_0x1b5e34+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3d3552,_0x408cfc)=>_0x3d3552||!!_0x408cfc);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x379f24}=this['_config'],_0x48171b=new _0x379f24(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x58a860=_0x48171b['commentInputView'];return _0x48171b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x58a860,'value',(_0x32575e,_0x52ed20,_0x118147)=>!!_0x118147||_0x32575e&&!_0x52ed20),_0x58a860['on']('submit',(_0x7514e8,_0x18673a)=>{this['fire']('addComment',_0x18673a),_0x58a860['editor']['setData']('');}),_0x58a860['on']('cancel',()=>this['focus']()),_0x58a860['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x48171b;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x3a1437,_0x374c5b,_0x4011e6,_0x5e27ef){super(_0x3a1437,_0x374c5b,_0x4011e6,_0x5e27ef),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4a1631=>_0x4a1631&&_0x4a1631[0x0]?_0x4a1631[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4ab5d6,_0x222d46)=>{let _0x32d260='';for(const _0x4b1e8b of _0x4ab5d6)_0x32d260+='<p>'+ls(_0x4b1e8b['content'],_0x4b1e8b['color'])+'</p>';return _0x222d46?_0x32d260:_0x490248(_0x32d260,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5e27ef['SuggestionView'](_0x3a1437,_0x374c5b,{'formatDateTime':_0x5e27ef['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 _0x20ec1b=this['bindTemplate'],_0x503e8e=[this['suggestionView']];return this['commentsListView']&&_0x503e8e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x503e8e['push'](this['commentThreadInputView']),_0x503e8e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x20ec1b['if']('isActive','ck-suggestion-wrapper--active'),_0x20ec1b['to']('type',_0x2dc3e=>'ck-suggestion-'+_0x2dc3e),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':_0x20ec1b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x503e8e};}['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 _0x29247f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4a0cfb,_0x790ca3,_0x5e8ee0){super(_0x4a0cfb),this['_model']=_0x790ca3,this['_config']=_0x5e8ee0,this['set']('description',''),this['bind']('authoredAt')['to'](_0x790ca3),this['acceptButton']=this['_createButton'](o(_0x4a0cfb,'Accept\x20suggestion'),_0xe4c893,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4a0cfb,'Discard\x20suggestion'),_0x2cea36,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2de657(_0x4a0cfb,_0x790ca3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x24f11e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x226a80(),this['keystrokes']=new _0x3d6b21(),this['focusCycler']=new _0x47c3bb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x143d9f=>_0x143d9f['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x47f68c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x47f68c['innerHTML']=this['description'],this['on']('change:description',(_0x1531bf,_0x5bfedc,_0xb072bb)=>{_0x47f68c['innerHTML']=_0xb072bb;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x32bf6f=this['bindTemplate'],_0x368b40=[{'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':_0x32bf6f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x32bf6f['to']('authoredAt',_0xb0ca57=>this['_config']['formatDateTime'](_0xb0ca57))}]}]},{'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']&&_0x368b40['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':_0x368b40}]};}['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'](_0xbaede6,_0x428f62,_0x3b9168,_0x218acc,_0x2d1682){const _0x2b1d00=new _0x3c9ba0(this['locale']);return _0x2b1d00['set']({'label':_0xbaede6,'icon':_0x428f62,'tooltip':!0x0,'tooltipPosition':_0x2d1682}),_0x2b1d00['extendTemplate']({'attributes':{'class':_0x3b9168}}),_0x2b1d00['on']('execute',()=>{this['fire'](_0x218acc,this['_model']['id']);}),_0x2b1d00;}['_setupKeyboardNavigation'](){const _0x50795d=this['element'];this['keystrokes']['listenTo'](_0x50795d);for(const _0x4c7e67 of this['focusables'])this['focusTracker']['add'](_0x4c7e67['element']),this['keystrokes']['listenTo'](_0x4c7e67['element']);this['keystrokes']['set']('enter',(_0x5e0090,_0xb0fa22)=>{_0x50795d===_0x5e0090['target']&&(this['focusCycler']['focusFirst'](),_0xb0fa22());}),this['keystrokes']['set']('esc',(_0x2953c2,_0x164a78)=>{_0x50795d!==_0x2953c2['target']&&(this['focus'](),_0x164a78());});}}class u extends _0x2aad9b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x298dab,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44abdc){super(_0x44abdc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a8094=this['editor']['config'];_0x4a8094['define']('trackChanges.SuggestionThreadView',fe),_0x4a8094['define']('trackChanges.SuggestionView',we),_0x4a8094['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a8094['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x69772d,_0x1f1e31){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x24afcc,_0xcd1c72]of this['_handleControllerBuffer']){const _0x3e9390=this['_suggestionToController']['has'](_0x24afcc);_0x3e9390||_0xcd1c72?_0x3e9390&&_0xcd1c72&&this['_destroyController'](_0x24afcc):this['_initializeController'](_0x24afcc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x69772d,_0x1f1e31);}['init'](){const _0x3d8145=this['editor'],_0x3b770e=_0x3d8145['plugins']['get']('TrackChangesEditing'),_0x3bb2cf=_0x3d8145['plugins']['get']('Annotations'),_0x2cf077=_0x3d8145['plugins']['get']('EditorAnnotations'),_0x5bb87f=_0x3d8145['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2cf077['addSourceCollector'](()=>{const _0x1ce663=[];for(const [_0x134de0,_0x1d7007]of Array['from'](this['_suggestionToController'])){const _0xa0e753=_0x134de0['getAllAdjacentSuggestions'](),_0x3add1d=[];for(const _0x13558f of _0xa0e753){if(!_0x13558f['isInContent'])continue;if(_0x13558f['isMultiRange']){_0x3add1d['push'](..._0x13558f['getRanges']());continue;}const _0x5e2876=_0x13558f['getFirstRange']();if(_0x3add1d['length']>0x0){const _0x20c889=_0x3add1d[0x0]['getJoined'](_0x5e2876);if(_0x20c889){_0x3add1d[0x0]=_0x20c889;continue;}}_0x3add1d['push'](_0x5e2876);}_0x1ce663['push']([_0x1d7007['view'],_0x3add1d]);}return _0x1ce663;}),this['listenTo'](_0x3b770e,'suggestionLoaded',(_0x1a0fd1,_0x1c5aa4)=>{this['listenTo'](_0x1c5aa4,'change:previous',(_0x310f7a,_0x30da9d,_0x5661cf,_0x1b99a1)=>{_0x1c5aa4['isInContent']&&(null==_0x5661cf?(this['_updateController'](_0x1b99a1['head']),this['_handleSuggestionControllerDelayed'](_0x1c5aa4,!0x1)):(this['_updateController'](_0x5661cf['head']),null==_0x1b99a1&&this['_handleSuggestionControllerDelayed'](_0x1c5aa4,!0x0)));}),null!==_0x1c5aa4['previous']?this['_updateController'](_0x1c5aa4['head']):this['_handleSuggestionControllerDelayed'](_0x1c5aa4,!0x1);}),this['listenTo'](_0x3b770e,'suggestionUnloaded',(_0x979165,_0x4d594c,_0xc0e733)=>{this['stopListening'](_0x4d594c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4d594c),this['_suggestionToController']['has'](_0x4d594c)&&this['_destroyController'](_0x4d594c),_0xc0e733&&this['_updateController'](_0xc0e733['head']);}),this['listenTo'](_0x3b770e,'suggestionChanged',(_0x463b73,_0x1ef876)=>{this['_updateController'](_0x1ef876);}),this['listenTo'](_0x3bb2cf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5bb87f,'addComment',(_0x5b1b9a,{threadId:_0x23978,isFromAdapter:_0xfff86a})=>{if(_0xfff86a||!_0x3b770e['hasSuggestion'](_0x23978))return;const _0x13e3b3=_0x3b770e['getSuggestion'](_0x23978);this['_suggestionToController']['get'](_0x13e3b3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x25f1fc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x139c75;for(const _0x2f3ea3 in _0x25f1fc){const _0x372c49=_0x2f3ea3,_0x3ad78a=_0x25f1fc[_0x372c49];if('trackChangesLicenseKeyValid'==_0x3ad78a||'trackChangesLicenseKeyInvalid'==_0x3ad78a||'trackChangesLicenseKeyExpired'==_0x3ad78a||'trackChangesLicenseKeyDomainLimit'==_0x3ad78a||'trackChangesLicenseKeyNotAllowed'==_0x3ad78a||'trackChangesLicenseKeyEvaluationLimit'==_0x3ad78a||'trackChangesLicenseKeyUsageLimit'==_0x3ad78a){delete _0x25f1fc[_0x372c49],_0x139c75=_0x3ad78a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x139c75&&_0x25f1fc['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x139c75&&_0x25f1fc['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x139c75&&_0x25f1fc['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x139c75&&_0x25f1fc['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x139c75&&_0x25f1fc['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x139c75&&_0x25f1fc['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x17aaed){const _0x43af79=this['_suggestionToController']['get'](_0x17aaed);if(!_0x43af79)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x43af79['view'])||null;}['getSuggestionForAnnotation'](_0x30a890){const _0x47f876=this['_viewToController']['get'](_0x30a890['innerView']);return _0x47f876?_0x47f876['model']:null;}['_refreshActiveMarkers'](){const _0x1de43b=this['editor']['plugins']['get']('Annotations'),_0x222a43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17b888=Array['from'](_0x1de43b['activeAnnotations'],_0x2a4314=>_0x2a4314['innerView'])['filter'](_0x469992=>this['_viewToController']['has'](_0x469992)),_0x160e54=[];for(const _0x42f552 of _0x17b888){const _0x52af8a=this['_viewToController']['get'](_0x42f552)['model']['getAllAdjacentSuggestions']();_0x160e54['push'](..._0x52af8a['reduce']((_0x3204d1,_0x294637)=>[..._0x3204d1,..._0x294637['getMarkerNames']()],[]));}_0x222a43['activeMarkers']=_0x160e54;}['_addUIComponentsToFactory'](){const _0x208b6f=this['editor'],_0x76e3c0=_0x208b6f['locale'],_0x5d0b05=o(_0x76e3c0,'Track\x20changes'),_0x42984f=new _0x17d437([{'type':'switchbutton','model':new _0x49dbe1({'withText':!0x0,'isToggleable':!0x0,'label':_0x5d0b05,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x49dbe1({'withText':!0x0,'label':o(_0x76e3c0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49dbe1({'withText':!0x0,'label':o(_0x76e3c0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49dbe1({'withText':!0x0,'label':o(_0x76e3c0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49dbe1({'withText':!0x0,'label':o(_0x76e3c0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x208b6f['plugins']['has']('TrackChangesPreview')&&_0x42984f['addMany']([{'type':'separator'},{'type':'button','model':new _0x49dbe1({'withText':!0x0,'label':o(_0x76e3c0,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x38f786 of _0x42984f)if(ke(_0x38f786)){const _0x59f6d6=_0x208b6f['commands']['get'](_0x38f786['model']['commandName']);_0x38f786['model']['bind']('isOn','isEnabled')['to'](_0x59f6d6,'value','isEnabled');}_0x208b6f['ui']['componentFactory']['add']('trackChanges',_0x58acb8=>this['_createToolbarButton'](_0x58acb8,_0x42984f,_0x5d0b05)),_0x208b6f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4192e9=>this['_createMenuBarMenu'](_0x4192e9,_0x42984f,_0x5d0b05));}['_createToolbarButton'](_0x10fd04,_0xc12e36,_0x2ca6ef){const _0x569bd9=_0x556741(_0x10fd04,_0x3130d9),_0x3bf377=this['editor']['commands']['get']('trackChanges');_0x569bd9['buttonView']['set']({'tooltip':_0x2ca6ef,'label':_0x2ca6ef,'icon':_0xabbb9c}),_0x569bd9['buttonView']['bind']('isOn')['to'](_0x3bf377,'value'),_0x569bd9['buttonView']['on']('execute',()=>{_0x3bf377['execute'](),this['editor']['editing']['view']['focus']();}),_0x297eb3(_0x569bd9,_0xc12e36,{'role':'menu'});const _0x36123f=[];for(const _0xf54034 of _0xc12e36)ke(_0xf54034)&&_0x36123f['push'](this['editor']['commands']['get'](_0xf54034['model']['commandName']));const _0x2191dc=_0x569bd9['buttonView'];return _0x2191dc['actionView']['unbind']('isEnabled'),_0x2191dc['arrowView']['unbind']('isEnabled'),_0x2191dc['actionView']['bind']('isEnabled')['to'](_0x3bf377,'isEnabled'),_0x2191dc['arrowView']['bind']('isEnabled')['toMany'](_0x36123f,'isEnabled',(..._0x88fa85)=>_0x88fa85['some'](_0x2f3198=>_0x2f3198)),_0x569bd9['on']('execute',_0x5f97c9=>{this['editor']['execute'](_0x5f97c9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x569bd9;}['_createMenuBarMenu'](_0x1607aa,_0x3d197e,_0xb49e20){const _0x27f2d6=new _0xa8c3c7(_0x1607aa),_0x4adda9=this['editor']['commands']['get']('trackChanges');_0x27f2d6['buttonView']['set']({'label':_0xb49e20,'icon':_0xabbb9c});const _0x168eb8=new _0x23851b(_0x1607aa);for(const _0x3e5d2e of _0x3d197e){if('separator'==_0x3e5d2e['type']){_0x168eb8['items']['add'](new _0x105dcd(_0x1607aa));continue;}const _0x1730b2=new _0x1f9b8e(_0x1607aa,_0x27f2d6),_0x474d36=new _0x405ee6(_0x1607aa),_0x311206=_0x3e5d2e['model'];_0x474d36['bind'](...Object['keys'](_0x311206))['to'](_0x311206),_0x474d36['delegate']('execute')['to'](_0x27f2d6),_0x474d36['on']('execute',()=>{this['editor']['execute'](_0x311206['commandName']),this['editor']['editing']['view']['focus']();}),_0x1730b2['children']['add'](_0x474d36),_0x168eb8['items']['add'](_0x1730b2);}return _0x27f2d6['bind']('isEnabled')['to'](_0x4adda9,'isEnabled'),_0x27f2d6['panelView']['children']['add'](_0x168eb8),_0x27f2d6;}['_initializeController'](_0xa0ed84){const _0x14a98a=this['editor'],_0x1c0033=_0x14a98a['config'],_0x237d4a=_0x14a98a['plugins']['get']('Annotations'),_0x2cfccc=_0x14a98a['plugins']['get']('CommentsRepository'),_0x4d1b48=_0x14a98a['plugins']['get']('EditorAnnotations'),_0x3b01d4=_0x14a98a['plugins']['get'](_0x298dab)['me'],_0x3baf74=_0x1c0033['get']('trackChanges')['SuggestionThreadView'],_0x472159=_0x1c0033['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4d8d35,CommentThreadInputView:_0x4a7eb6}=_0x14a98a['plugins']['get']('CommentsUI');let _0x24aef1,_0x51804d,_0x238e03;this['_annotationViews']['has'](_0xa0ed84['id'])?(_0x51804d=this['_annotationViews']['get'](_0xa0ed84['id']),_0x24aef1=_0x51804d['mainView']):(_0x24aef1=new _0x3baf74(_0x14a98a['locale'],_0xa0ed84,_0x3b01d4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1c0033['get']('comments.editorConfig'),'licenseKey':_0x1c0033['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1c0033['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1c0033['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1c0033['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x33bba7(_0x1c0033['get']('locale'),_0x14a98a['locale']),'CommentView':_0x1c0033['get']('comments')['CommentView'],'CommentsListView':_0x4d8d35,'CommentThreadInputView':_0x4a7eb6,'SuggestionView':_0x472159}),_0x24aef1['suggestionView']['acceptButton']['on']('execute',()=>{_0x14a98a['editing']['view']['focus']();}),_0x24aef1['suggestionView']['discardButton']['on']('execute',()=>{_0x14a98a['editing']['view']['focus']();}),_0x51804d=_0x237d4a['createAnnotationView'](this['editor']['locale'],_0x24aef1),_0x51804d['bind']('isDirty')['to'](_0x24aef1,'isDirty'),_0x51804d['bind']('length')['to'](_0x24aef1),_0x51804d['bind']('type')['to'](_0x24aef1,'type',_0x144638=>'suggestion-'+_0x144638),_0x24aef1['on']('escape',()=>{_0x238e03['fire']('escape');}),this['_annotationViews']['set'](_0xa0ed84['id'],_0x51804d));const _0x330be2=_0x2cfccc['createCommentThreadController'](_0xa0ed84['commentThread'],_0x24aef1),_0x55b239=new pe(_0x14a98a,_0xa0ed84,_0x24aef1,_0x330be2),_0x36778e=_0xa0ed84['getAllAdjacentSuggestions']()['filter'](_0x5e5049=>_0x5e5049['isInContent']);_0x24aef1['descriptionParts']=_0x14a98a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x36778e),this['_suggestionToController']['set'](_0xa0ed84,_0x55b239),this['_viewToController']['set'](_0x24aef1,_0x55b239);const _0xc83a22=()=>{const _0x11c777=[],_0x355734=_0xa0ed84['getAllAdjacentSuggestions']()['filter'](_0x1292c3=>_0x1292c3['isInContent']);for(const _0x242638 of _0x355734)_0x11c777['push'](..._0x242638['getMarkers']());return _0x498b3a(_0x14a98a['editing'],_0x11c777);};_0x238e03=_0x237d4a['createAnnotation']({'view':_0x51804d,'target':_0xc83a22,'type':()=>'suggestion-'+_0x55b239['view']['type'],'isVisible':!!_0xc83a22()}),_0x2cfccc['_bindAnnotationToEditors'](_0x24aef1,_0x238e03),_0x237d4a['add'](_0x238e03),_0x4d1b48['registerAnnotation'](_0x238e03);}['_destroyController'](_0x2564da){const _0x33b397=this['editor']['plugins']['get']('CommentsRepository'),_0x2ff4eb=this['editor']['plugins']['get']('Annotations'),_0x26bbca=this['_suggestionToController']['get'](_0x2564da),_0x40f41c=_0x26bbca['view'],_0x48f8f3=_0x2ff4eb['getByInnerView'](_0x40f41c);_0x33b397['_unbindEditors'](_0x40f41c),_0x48f8f3&&_0x2ff4eb['remove'](_0x48f8f3),this['_suggestionToController']['delete'](_0x2564da),this['_viewToController']['delete'](_0x40f41c),_0x26bbca['destroy']();}['_updateController'](_0x2d086a){if(!_0x2d086a['isInContent']||!this['_suggestionToController']['has'](_0x2d086a))return;const _0x2c23eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22d7a5=this['_suggestionToController']['get'](_0x2d086a),_0xca9745=_0x2d086a['getAllAdjacentSuggestions']();_0x22d7a5['view']['descriptionParts']=_0x2c23eb['descriptionFactory']['getDescriptions'](_0xca9745);}['destroy'](){for(const _0xb7d4fd of this['_suggestionToController']['keys']())this['_destroyController'](_0xb7d4fd);for(const _0x35765f of this['_annotationViews']['values']())_0x35765f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5aa6ab){return'model'in _0x5aa6ab;}class Ne extends _0x2aad9b{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5caded){this['editor']['plugins']['get'](d)['adapter']=_0x5caded;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2ef8a2){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2ef8a2);}['getSuggestions']({skipNotAttached:_0x1bcf36=!0x1,toJSON:_0x52b90e=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x1bcf36,'toJSON':_0x52b90e});}['getSuggestion'](_0x5d93f8){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x5d93f8);}}const p=['Pagination'];class re extends _0x2aad9b{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1b4a1b=this['editor'];if(_0x1b4a1b['config']['define']('trackChangesData.editorCreator',_0x410897=>{const _0x26db30=_0x1b4a1b['model']['document']['getRootNames']()['reduce']((_0x3662f4,_0x246f31)=>(_0x3662f4[_0x246f31]='',_0x3662f4),{});return _0x1b4a1b['constructor']['create'](_0x26db30,_0x410897);}),'function'!=typeof _0x1b4a1b['config']['get']('trackChangesData')['editorCreator'])throw new _0x2d7a4f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x538957){return P(this['editor'],!0x0,_0x538957);}['getDataWithDiscardedSuggestions'](_0xf0422e){return P(this['editor'],!0x1,_0xf0422e);}}class Fe extends _0x2aad9b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xcbc04b){function _0x312672(_0x3d8cfc){return _0x3d8cfc['map'](_0x592ba7=>String['fromCharCode'](_0x592ba7))['join']('');}super(_0xcbc04b),this['result']='end',_0xcbc04b[_0x312672([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x312672([0x76,0x69,0x65,0x77])][_0x312672([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x312672([0x61,0x75,0x74,0x6f]),_0xcbc04b[_0x312672([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x312672([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x312672([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x312672([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x312672([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(_0x3225f1){return void 0x0!==_0x3225f1['getRootsAttributes'];}async function P(_0x375c5d,_0x2d59f6,_0x2482ee){const _0x2f543c=_0x32a30e(_0x375c5d,p);_0x2f543c['plugins']['push'](d,Fe),_0x2f543c['rootsAttributes']=De(_0x375c5d)?_0x375c5d['getRootsAttributes']():void 0x0;const _0x5651be=document['createDocumentFragment'](),_0x1e1c27=_0x375c5d['config']['get']('trackChangesData')['editorCreator'],_0x326955=await _0x1e1c27(_0x2f543c,()=>function(_0x3710cc){const _0x2b6059=document['createElement']('div');return _0x3710cc['appendChild'](_0x2b6059),_0x2b6059;}(_0x5651be));!function(_0x988ba9,_0x3ced00){const _0x410fad=_0x988ba9['model']['document']['getRootNames']()['reduce']((_0x2c1962,_0x38211f)=>(_0x2c1962[_0x38211f]=_0x988ba9['data']['get']({'rootName':_0x38211f}),_0x2c1962),{}),_0x1b83a2=_0x988ba9['plugins']['get']('Users')['users']['map'](_0x326e46=>({'id':_0x326e46['id'],'name':_0x326e46['name']})),_0x390bbc=_0x988ba9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5475a1=_0x988ba9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x34911d=_0x3ced00['plugins']['get']('Users'),_0x330c1f=_0x3ced00['plugins']['get']('TrackChangesEditing'),_0x44c4ac=_0x3ced00['plugins']['get']('CommentsRepository');for(const _0x3e067c of _0x44c4ac['getCommentThreads']())_0x3e067c['remove']();for(const _0x4148fa of _0x1b83a2)_0x34911d['getUser'](_0x4148fa['id'])||_0x34911d['addUser'](_0x4148fa);_0x34911d['me']||_0x34911d['useAnonymousUser']();for(const _0xad6605 of _0x5475a1)_0x44c4ac['addCommentThread'](_0xad6605);for(const _0x2ffb09 of _0x390bbc)_0x330c1f['addSuggestionData'](_0x2ffb09);_0x3ced00['data']['set'](_0x410fad);}(_0x375c5d,_0x326955),_0x326955['execute'](_0x2d59f6?'acceptAllSuggestions':'discardAllSuggestions');const _0x1095c9=De(_0x326955)?_0x326955['getFullData'](_0x2482ee):_0x326955['data']['get'](_0x2482ee);return await _0x326955['destroy'](),_0x1095c9;}class Me extends _0x29247f{['options'];constructor(_0x4b9e89,_0x2e776f){super(_0x4b9e89),this['options']=_0x2e776f,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'](_0x4e34e4,_0x369599){if(!this['element'])return;const _0x3d4ef1=[];for(const [_0x5c2628,_0xd1cabd]of _0x4e34e4){const _0x12377e=document['createElement']('div');_0x12377e['setAttribute']('data-ck-root-name',_0x5c2628),_0x12377e['className']=_0xd1cabd['classes']+'\x20ck-track-changes-preview__root-container',_0x12377e['innerHTML']=_0xd1cabd['content'],_0x3d4ef1['push'](_0x12377e);}_0x369599(this['element'],_0x3d4ef1),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2e7cb8{constructor(_0x10efd2){super(_0x10efd2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2a71b2=this['editor'],_0x4dfd4b=_0x2a71b2['locale'],_0xbdc6ca=_0x2a71b2['plugins']['get']('Dialog');let _0x452e61;const _0x2ea320=function(_0x471bc2){const _0x134c20={};if('editables'in _0x471bc2['ui']['view']){for(const [_0x122990,_0x156b40]of Object['entries'](_0x471bc2['ui']['view']['editables']))_0x134c20[_0x122990]=_0x156b40['element'];}else _0x134c20[_0x471bc2['model']['document']['getRootNames']()[0x0]]=_0x471bc2['ui']['view']['editable']['element'];return _0x134c20;}(_0x2a71b2),_0x457069=function(_0x5839f4){let _0x13698d=0x0;for(const _0x2e0068 of Object['values'](_0x5839f4))_0x13698d=Math['max'](_0x13698d,_0x2e0068['getBoundingClientRect']()['width']);let _0x350a4a=0x0;for(const _0x3700c3 of Object['values'](_0x5839f4))_0x350a4a+=_0x3700c3['getBoundingClientRect']()['height'];const _0x2083cd=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1ad2c8=Math['min'](_0x350a4a,_0x2083cd);return{'width':_0x13698d,'height':_0x1ad2c8};}(_0x2ea320);_0xbdc6ca['show']({'id':'finalContentPreview','title':o(_0x4dfd4b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x4dfd4b,{'dialogRects':_0x457069}),'onHide':()=>{_0x452e61['detachFromDom']();},'onShow':()=>{_0x2a71b2['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x297c1d=>{const _0x34b16a=this['_standarizeRootsData'](_0x297c1d,_0x2a71b2,_0x2ea320);_0xbdc6ca['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x34b16a,_0x2a71b2['config']['get']('trackChanges.preview.renderFunction'));}),_0x452e61=new _0x4788c2(_0x4dfd4b,[_0xbdc6ca['view']]),_0x452e61['attachToDom'](),_0x452e61['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2a71b2['once']('destroy',()=>{_0x452e61['detachFromDom']();});const _0x5f17c4=_0xbdc6ca['view']['headerView']['class'];_0xbdc6ca['view']['headerView']['class']=_0x5f17c4?_0x5f17c4+'\x20ck-reset_all':'ck-reset_all',_0xbdc6ca['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xbdc6ca['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2f98fd=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x469547=_0x2f98fd['previewMode'],_0x4b0690={};if('$labels'===_0x469547){for(const _0x5a74f7 of _0x2f98fd['getMergeFieldsIds']())_0x4b0690[_0x5a74f7]=_0x2f98fd['getLabel'](_0x5a74f7)||_0x5a74f7;}else{const _0x57e9bd='$defaultValues'===_0x469547?_0x2f98fd['getDefaultValues']():_0x2f98fd['getDataSetValues'](_0x469547,!0x0);for(const _0x3f79ee of Object['entries'](_0x57e9bd)){const [_0x37b862,_0x5895bf]=_0x3f79ee;_0x4b0690[_0x37b862]=null!==_0x5895bf?_0x5895bf:_0x2f98fd['getLabel'](_0x37b862)||_0x37b862;}}return{'mergeFieldsData':_0x4b0690};}['_standarizeRootsData'](_0x136074,_0x56a861,_0x41920b){let _0x3b43b3;if('string'==typeof _0x136074){const _0xc446d6=_0x56a861['model']['document']['getRootNames']()[0x0];_0x3b43b3={[_0xc446d6]:_0x136074};}else _0x3b43b3=_0x136074;const _0x37f1d1=this['_fixMediaEmbeds'](_0x3b43b3,_0x56a861),_0x2674a3=function(_0x23f78b,_0x34934a){for(const [_0x5248f7,_0x362eb1]of _0x23f78b)_0x362eb1['classes']=_0x34934a[_0x5248f7]['classList']['value']['replace']('ck-focused','');return _0x23f78b;}(this['_sortRoots'](_0x56a861)['reduce']((_0x113c34,_0x88a921)=>(_0x113c34['push']([_0x88a921,{'content':_0x37f1d1[_0x88a921],'classes':''}]),_0x113c34),[]),_0x41920b);return _0x2674a3;}['_fixMediaEmbeds'](_0x5b07ab,_0x3638c2){if(!_0x3638c2['plugins']['has']('MediaEmbedEditing'))return _0x5b07ab;const _0x6dd71d=_0x3638c2['plugins']['get']('MediaEmbedEditing');for(const [_0x15ab0c,_0x54a7d2]of Object['entries'](_0x5b07ab)){const _0x29c973=document['createElement']('div');_0x29c973['innerHTML']=_0x54a7d2,(_0x29c973['querySelectorAll']('figure.media')['forEach'](_0x74084f=>{const _0x216931=_0x74084f['querySelector']('oembed');if(_0x216931){const _0x2a32a7=_0x216931['getAttribute']('url');if(_0x2a32a7){const _0x323da8=_0x6dd71d['registry']['getMediaViewElement'](new _0x3df5fb(_0x3638c2['editing']['view']['document']),_0x2a32a7,{'elementName':'','renderForEditingView':!0x0}),_0x1951a8=document['createElement']('div');_0x1951a8['classList']['add']('ck-media__wrapper'),_0x323da8['render'](_0x1951a8,_0x3638c2['editing']['view']['domConverter']),_0x216931['replaceWith'](_0x1951a8);}}}),_0x5b07ab[_0x15ab0c]=_0x29c973['innerHTML']);}return _0x5b07ab;}['_sortRoots'](_0x33bb4a){if(!function(_0x859cf9){return void 0x0!==_0x859cf9['getRootsAttributes'];}(_0x33bb4a))return _0x33bb4a['model']['document']['getRootNames']();const _0x5c3c3b=[],_0x5a858e=new Map();for(const _0x470d14 of _0x33bb4a['model']['document']['getRootNames']()){const _0xf77834=_0x33bb4a['editing']['view']['getDomRoot'](_0x470d14)['getClientRects']()['item'](0x0);_0x5c3c3b['push'](_0x470d14),_0x5a858e['set'](_0x470d14,_0xf77834);}return _0x5c3c3b['sort']((_0x3acbfb,_0x1641bb)=>{const _0x1853c5=_0x5a858e['get'](_0x3acbfb),_0x26a5e6=_0x5a858e['get'](_0x1641bb);return _0x1853c5['y']-_0x26a5e6['y']||_0x1853c5['x']-_0x26a5e6['x'];}),_0x5c3c3b;}}class Ue extends _0x2aad9b{static get['requires'](){return[re,_0x470eaf];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49f85b){super(_0x49f85b),_0x49f85b['commands']['add']('previewFinalContent',new te(this['editor'])),_0x49f85b['config']['define']('trackChanges.preview.renderFunction',(_0x59c92d,_0x4009fb)=>{for(const _0x20ee70 of _0x4009fb)_0x59c92d['appendChild'](_0x20ee70);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x47f84f,Plugin as _0x561601,PendingActions as _0x3127dd}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xcae84a,ObservableMixin as _0x1f6451,uid as _0x4c54e4,priorities as _0x3725e9,insertToPriorityArray as _0x22a9b0,logWarning as _0xddd03f,getEnvKeystrokeText as _0x2a3371,FocusTracker as _0x312a25,KeystrokeHandler as _0x7b97d3,Collection as _0x221e41}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x538c21,IconCancel as _0xff2a0c,IconTrackChanges as _0x1f8d12}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x20da64,View as _0x296b1b,ViewCollection as _0x29a5de,FocusCycler as _0x3e9350,UIModel as _0x13aee8,createDropdown as _0x410f15,SplitButtonView as _0x363920,addListToDropdown as _0x18ec4b,MenuBarMenuView as _0x1b4b63,MenuBarMenuListView as _0x5e8bce,ListSeparatorView as _0x30107d,MenuBarMenuListItemView as _0x33c715,MenuBarMenuListItemButtonView as _0x39b755,BodyCollection as _0x37bc31,Dialog as _0x3d70c1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x449d1e,Users as _0x2db242,DocumentCompare as _0x2e6aae,fixElementSuggestionRange as _0x2b9c32,hashObject as _0x1bcab7,splitSuggestionMarkerName as _0xca328c,surroundingMarkersDetector as _0x5cada2,FOCUS_ANNOTATION_KEYSTROKE as _0x275e30,AriaDescriptionView as _0x396acf,setupThreadKeyboardNavigation as _0x541f64,trimHtml as _0x32d800,UserView as _0x3f1a96,LateFocusButtonView as _0x406286,getDateTimeFormatter as _0x4cdcea,getAllMarkersDomElementsSorted as _0x337b71,sanitizeEditorConfig as _0x2fc5c3}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x5efab8,ModelLiveRange as _0x1c8214,ModelLivePosition as _0x186eb8,ViewDowncastWriter as _0x3ea7e6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x4d4d79,set as _0x20561c,isEqual as _0x458cd7,unset as _0x47119c,omit as Jt}from'es-toolkit/compat';import{Delete as _0x284e5a,Input as _0xd2b34b}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x19fbfb}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1f8748}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x47f84f{['_enabledCommands'];constructor(_0x53e13a,_0x142804){super(_0x53e13a),this['_enabledCommands']=_0x142804,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 _0x208935 of this['editor']['commands']['commands']())_0x208935['affectsData']&&!this['_enabledCommands']['has'](_0x208935)&&_0x208935['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4bf0ac of this['editor']['commands']['commands']())_0x4bf0ac['affectsData']&&!this['_enabledCommands']['has'](_0x4bf0ac)&&_0x4bf0ac['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x47f84f{['_suggestions'];constructor(_0xa02a60,_0x3a1032){super(_0xa02a60),this['_suggestions']=_0x3a1032,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x36a6aa){const _0x2c7ffa=this['_suggestions']['get'](_0x36a6aa);if(!_0x2c7ffa)throw new _0xcae84a('track-changes-accept-suggestion-not-found',this);const _0x2775bb=_0x2c7ffa['getRanges']();this['editor']['model']['canEditAt'](_0x2775bb)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2c7ffa);}}class x extends _0x47f84f{['_suggestions'];constructor(_0x198637,_0x5132e2){super(_0x198637),this['_suggestions']=_0x5132e2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x42cbe2){const _0x497f3c=this['_suggestions']['get'](_0x42cbe2);if(!_0x497f3c)throw new _0xcae84a('track-changes-discard-suggestion-not-found',this);const _0x32afaa=_0x497f3c['getRanges']();this['editor']['model']['canEditAt'](_0x32afaa)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x497f3c);}}function ls(_0x1f7ebf,_0xcc2547){let _0x5f480e='';return _0x5f480e+=_0x1f7ebf['split']('*')['map']((_0xfc6e22,_0x38ada2)=>_0x38ada2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0xfc6e22)+'</span>':rn(_0xfc6e22))['join'](''),_0xcc2547&&(_0x5f480e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xcc2547['value']+'\x22\x20title=\x22'+_0xcc2547['title']+'\x22></span>'),_0x5f480e;}function rn(_0x1caa9a){const _0x57f4e5=document['createElement']('span');return _0x57f4e5['innerText']=_0x1caa9a,_0x57f4e5['innerHTML'];}function ts(_0x128177){return _0x128177['sort']((_0x5f48cc,_0x5e5756)=>'attribute'===_0x5f48cc['type']&&'attribute'!==_0x5e5756['type']?-0x1:'attribute'!==_0x5f48cc['type']&&'attribute'===_0x5e5756['type']?0x1:'deletion'==_0x5f48cc['type']&&'deletion'!=_0x5e5756['type']?-0x1:'deletion'!=_0x5f48cc['type']&&'deletion'==_0x5e5756['type']?0x1:0x0);}function to(_0xf00f01,_0x396bc7){let _0x5b25dd,_0x581b6c=0x0;const _0x5dcce2=[],_0x5e0935=_0x396bc7['schema'];for(;_0x581b6c<_0xf00f01['length'];){const _0x27089c=_0xf00f01[_0x581b6c],_0x22c2d5=_0xf00f01[_0x581b6c+0x1];_0x5b25dd||(_0x5b25dd=_0x396bc7['createPositionBefore'](_0x27089c)),cn(_0x396bc7,_0x27089c,_0x22c2d5)||(_0x5dcce2['push'](_0x396bc7['createRange'](_0x5b25dd,_0x5e0935['isObject'](_0x27089c)?_0x396bc7['createPositionAfter'](_0x27089c):_0x396bc7['createPositionAt'](_0x27089c,'end'))),_0x5b25dd=null),_0x581b6c++;}return _0x5dcce2;}function cn(_0x2d5491,_0x4ad852,_0x27ad38){if(!_0x27ad38)return!0x1;const _0x27d9c6=_0x2d5491['createPositionAfter'](_0x4ad852),_0x59aa3c=_0x2d5491['createPositionBefore'](_0x27ad38);return _0x27d9c6['isTouching'](_0x59aa3c);}function rs(_0x5e6b08,_0x3921cb,_0xe0bfc0){for(;_0xe0bfc0['length'];){const _0x2624e1=_0xe0bfc0['splice'](0x0,0x64);_0x5e6b08['change'](()=>{for(const _0x4893d2 of _0x2624e1)_0x4893d2['isInContent']&&_0x3921cb['execute'](_0x4893d2['id']);});}}class M extends _0x47f84f{['_command'];['_suggestions'];constructor(_0x3f9718,_0x592dba,_0x3f30dc){super(_0x3f9718),this['_command']=_0x592dba,this['_suggestions']=_0x3f30dc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xa9c45f=Array['from'](this['_suggestions']['values']())['some'](_0x45a188=>_0x45a188['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xa9c45f;}['execute'](){const _0x7f6f5=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1c5b86 of _0x7f6f5){const _0x2e04e7=_0x1c5b86['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2e04e7))return;}rs(this['editor']['model'],this['_command'],_0x7f6f5);}}class R extends _0x47f84f{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4c2804,_0x361732,_0x2d5439){super(_0x4c2804),this['_command']=_0x361732,this['_suggestions']=_0x2d5439,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xdaac5d=this['editor']['model']['document']['selection'],_0xc0df04=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x14b480,_0x19561c){const _0x48d51c=Array['from'](_0x14b480['getRanges']()),_0x50487f=new Set();for(const _0x336178 of _0x19561c)if(_0x336178['isInContent']){for(const _0x1af723 of _0x48d51c)for(const _0x5e6553 of _0x336178['getRanges']())(_0x1af723['isIntersecting'](_0x5e6553)||_0x14b480['isCollapsed']&&!_0x336178['isMultiRange']&&_0x336178['next']&&_0x5e6553['end']['isTouching'](_0x1af723['start']))&&_0x50487f['add'](_0x336178);}return _0x50487f;}(_0xdaac5d,_0xc0df04),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5d5337=ts(Array['from'](this['_selectedSuggestions']));for(const _0x11b3c2 of _0x5d5337){const _0x5db577=_0x11b3c2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5db577))return;}rs(this['editor']['model'],this['_command'],_0x5d5337);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x1f6451(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xfb7629,_0x1677c9){super(),this['id']=_0x1677c9['id'],this['type']=_0x1677c9['type'],this['subType']=_0x1677c9['subType']||null,this['author']=_0x1677c9['author'],this['creator']=_0x1677c9['creator']||_0x1677c9['author'],this['isExternal']=Boolean(_0x1677c9['attributes']&&_0x1677c9['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1677c9['originalSuggestionId']||null,this['_model']=_0xfb7629,this['_onAccept']=_0x1677c9['onAccept'],this['_onDiscard']=_0x1677c9['onDiscard'],this['_onAttributesChange']=_0x1677c9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1677c9['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 _0x506046=this;for(;_0x506046['previous'];)_0x506046=_0x506046['previous'];return _0x506046;}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'](_0xe456a0){this['_markerNames']['add'](_0xe456a0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x53b62c=>this['_model']['markers']['get'](_0x53b62c))['filter'](_0x5a1eb9=>_0x5a1eb9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1a22e1=>{for(const _0x5a6a7e of this['getMarkers']())_0x1a22e1['removeMarker'](_0x5a6a7e);}),this['_markerNames']['clear']();}['removeMarker'](_0x151ba9){this['_model']['change'](_0x34bc07=>{_0x34bc07['removeMarker'](_0x151ba9);}),this['_markerNames']['delete'](_0x151ba9);}['addRange'](_0x5a8d1e){const _0x156964='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x156964),this['_model']['change'](_0x3d2a9b=>{_0x3d2a9b['addMarker'](_0x156964,{'range':_0x5a8d1e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x15df9a){for(const _0x1bfccd of this['getRanges']())if(_0x1bfccd['isIntersecting'](_0x15df9a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x464d16=>_0x464d16['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x41d787,_0xa31d17)=>[..._0x41d787,..._0xa31d17['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x110b25=this['getRanges']();if(0x1!=_0x110b25['length'])return null;const _0x451b76=_0x110b25[0x0],_0x82c55c=_0x451b76['start']['nodeAfter'],_0x187204=_0x451b76['end']['nodeBefore'];return _0x82c55c instanceof _0x5efab8?_0x82c55c!=_0x187204?null:_0x82c55c: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 _0xa005ad=[];let _0x703ce4=this['head'];for(;_0x703ce4;)_0xa005ad['push'](_0x703ce4),_0x703ce4=_0x703ce4['next'];return _0xa005ad;}['setAttribute'](_0x56cfbf,_0x526ad2){const _0xde55ac=_0x4d4d79(this['attributes']);_0x20561c(_0xde55ac,_0x56cfbf,_0x526ad2),_0x458cd7(_0xde55ac,this['attributes'])||(this['attributes']=_0xde55ac,this['_onAttributesChange'](_0xde55ac));}['removeAttribute'](_0x44dc00){const _0x35051e=_0x4d4d79(this['attributes']);_0x47119c(_0x35051e,_0x44dc00),_0x458cd7(_0x35051e,this['attributes'])||(this['attributes']=_0x35051e,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 _0x4c54e4()['substr'](0x1,0x5);}}function o(_0x420a70,_0x1d06ed,_0x2fe6a6){const _0x2704a5=_0x420a70['t'],t=_0x420a70['t'];switch(_0x1d06ed){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',_0x2fe6a6);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2fe6a6);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2fe6a6);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2fe6a6);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2fe6a6);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',_0x2fe6a6);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2fe6a6);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',_0x2fe6a6);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2fe6a6);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2fe6a6);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2fe6a6);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2fe6a6);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2fe6a6);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2fe6a6);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2fe6a6);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2fe6a6);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2fe6a6);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2fe6a6);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2fe6a6);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2fe6a6);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2fe6a6);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2fe6a6);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2fe6a6);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2fe6a6);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2fe6a6);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'},_0x2fe6a6);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2fe6a6);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2fe6a6);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2fe6a6);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2fe6a6);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2fe6a6);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2fe6a6);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2fe6a6);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'},_0x2fe6a6);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2fe6a6);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2fe6a6);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2fe6a6);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2fe6a6);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x2fe6a6);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2fe6a6);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'},_0x2fe6a6);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_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});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'},_0x2fe6a6);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2fe6a6);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'},_0x2fe6a6);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2fe6a6);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'},_0x2fe6a6);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2fe6a6);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2fe6a6);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2fe6a6);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2fe6a6);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2fe6a6);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'},_0x2fe6a6);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2fe6a6);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 _0x2704a5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2fe6a6);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2704a5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2fe6a6);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2fe6a6);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'},_0x2fe6a6);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'},_0x2fe6a6);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'},_0x2fe6a6);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1d06ed;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5e9f47,_0x3a4c84){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5e9f47,this['_locale']=_0x3a4c84;}['getDescriptions'](_0x548493){const _0x3eb744=[],_0xaa01ac=new Set(),_0x1b6291=new Set();for(let _0x3383b8=0x0;_0x3383b8<_0x548493['length'];_0x3383b8++){const _0x31e5db=_0x548493[_0x3383b8];if(!_0x31e5db['isInContent'])continue;const _0x1b691f=this['_handleCustomCallbackDescription'](_0x31e5db);if(_0x1b691f){if(null!=_0x31e5db['subType']){if(_0xaa01ac['has'](_0x31e5db['subType']))continue;_0xaa01ac['add'](_0x31e5db['subType']);}_0x3eb744['push'](_0x1b691f);}else{if('attribute'==_0x31e5db['type']){const _0x5b5e0b=_0x31e5db['data']['key'];if(_0x1b6291['has'](_0x5b5e0b))continue;_0x1b6291['add'](_0x31e5db['data']['key']),_0x5b5e0b==m?this['_handleRenameSuggestionDescription'](_0x3eb744,_0x31e5db):this['_handleAttributeSuggestionDescription'](_0x3eb744,_0x31e5db);continue;}'insertion'!=_0x31e5db['type']&&'deletion'!=_0x31e5db['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3eb744,_0x31e5db,_0x548493[_0x3383b8+0x1]);}}return this['_resolveDescriptionItems'](_0x3eb744);}['registerDescriptionCallback'](_0x540d49){this['_customCallbacks']['push'](_0x540d49);}['registerElementLabel'](_0x588afb,_0x587675,_0x4c812c=_0x3725e9['normal']){'function'==typeof _0x588afb?_0x22a9b0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x588afb,'label':_0x587675,'priority':_0x4c812c}):this['_itemLabels']['set'](_0x588afb,_0x587675);}['registerAttributeLabel'](_0x258434,_0x17271b){this['_attributeLabels']['set'](_0x258434,_0x17271b);}['getItemLabel'](_0x2441ab,_0x42523b=0x1){let _0x580d02;for(const _0x296fe3 of this['_itemLabelsCallbacks'])if(_0x296fe3['matchingCallback'](_0x2441ab)){_0x580d02=_0x296fe3['label'];break;}return _0x580d02||(_0x580d02=this['_itemLabels']['get'](_0x2441ab['name'])),_0x580d02?_0x580d02(_0x42523b):0x1!==_0x42523b?_0x42523b+'\x20'+_0x2441ab['name']+'s':''+_0x2441ab['name'];}['_addDescriptionItems'](_0x1b58e0,_0x42f460){const _0x4aec22=_0x42f460['getFirstRange']()['getWalker'](),_0x576c68='insertion'==_0x42f460['type']?'add':'remove';for(const _0x2a0d21 of _0x4aec22){const _0x251725=_0x2a0d21['item'],_0x5677f0=_0x1b58e0[_0x1b58e0['length']-0x1];if(_0x251725['is']('$textProxy'))_0x5677f0&&_0x5677f0['type']['indexOf']('Container')>-0x1&&_0x1b58e0['pop'](),_0x5677f0&&'text'==_0x5677f0['type']?_0x5677f0[_0x576c68]+=_0x251725['data']:_0x1b58e0['push']({'type':'text','add':'add'==_0x576c68?_0x251725['data']:'','remove':'remove'==_0x576c68?_0x251725['data']:''});else{if(this['_schema']['isObject'](_0x251725)){const _0x29f15c=_0x251725;if(_0x5677f0&&_0x5677f0['type']['indexOf']('Container')>-0x1&&_0x1b58e0['pop'](),'elementEnd'==_0x2a0d21['type'])continue;_0x5677f0&&_0x5677f0['type']==_0x576c68+'Object'&&_0x5677f0['element']['name']==_0x29f15c['name']?_0x5677f0['quantity']++:_0x1b58e0['push']({'type':_0x576c68+'Object','element':_0x29f15c,'quantity':0x1}),_0x4aec22['skip'](_0xc26002=>!('elementEnd'==_0xc26002['type']&&_0xc26002['item']==_0x251725));}else{if(this['_schema']['checkChild'](_0x251725,'$text')||_0x251725['is']('element','softBreak')){const _0x2cd0a8=_0x251725;if('add'==_0x576c68&&'elementStart'==_0x2a0d21['type']||'remove'==_0x576c68&&'elementEnd'==_0x2a0d21['type'])continue;if(_0x5677f0&&-0x1==_0x5677f0['type']['indexOf']('Container')){'text'==_0x5677f0['type']&&(_0x5677f0[_0x576c68]+='\x0a');continue;}let _0x552b2a;if(_0x552b2a='add'==_0x576c68?_0x2cd0a8['nextSibling']&&!this['_schema']['isObject'](_0x2cd0a8['nextSibling'])?_0x2cd0a8['nextSibling']:null:_0x2cd0a8['previousSibling']&&!this['_schema']['isObject'](_0x2cd0a8['previousSibling'])?_0x2cd0a8['previousSibling']:null,_0x2cd0a8['isEmpty']||_0x552b2a&&_0x552b2a['isEmpty']){const _0x3dfe82=_0x552b2a&&_0x552b2a['isEmpty']?_0x552b2a:_0x2cd0a8;_0x5677f0&&_0x5677f0['type']==_0x576c68+'EmptyContainer'&&_0x5677f0['element']['name']==_0x3dfe82['name']?_0x5677f0['quantity']++:_0x1b58e0['push']({'type':_0x576c68+'EmptyContainer','element':_0x3dfe82,'quantity':0x1});}else _0x1b58e0['push']({'type':_0x576c68+'Container','element':_0x2cd0a8});}}}}}['_resolveDescriptionItems'](_0x1a0872){const _0x222b5b=this['_locale'],_0x3870be=[],_0x3c9695=[],_0x56e1e0=[];for(const _0x30f9e6 of _0x1a0872)switch(_0x30f9e6['type']){case'text':if(_0x30f9e6['add']=_0x30f9e6['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x30f9e6['remove']=_0x30f9e6['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x30f9e6['add']&&''!=_0x30f9e6['remove']){_0x3870be['push']({'type':'replace','content':o(_0x222b5b,'REPLACE_TEXT',['\x22'+_0x30f9e6['remove']+'\x22','\x22'+_0x30f9e6['add']+'\x22'])});continue;}if(null!=_0x30f9e6['add']['match'](/^ +$/)){_0x3870be['push']({'type':'insertion','content':o(_0x222b5b,'*Insert:*\x20%0',o(_0x222b5b,'ELEMENT_SPACE',_0x30f9e6['add']['length']))});continue;}if(null!=_0x30f9e6['remove']['match'](/^ +$/)){_0x3870be['push']({'type':'deletion','content':o(_0x222b5b,'*Remove:*\x20%0',o(_0x222b5b,'ELEMENT_SPACE',_0x30f9e6['remove']['length']))});continue;}if(''!=_0x30f9e6['add']){_0x3870be['push']({'type':'insertion','content':o(_0x222b5b,'*Insert:*\x20%0','\x22'+_0x30f9e6['add']+'\x22')});continue;}_0x3870be['push']({'type':'deletion','content':o(_0x222b5b,'*Remove:*\x20%0','\x22'+_0x30f9e6['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3870be['push']({'type':'insertion','content':o(_0x222b5b,'*Insert:*\x20%0',this['getItemLabel'](_0x30f9e6['element'],_0x30f9e6['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3870be['push']({'type':'deletion','content':o(_0x222b5b,'*Remove:*\x20%0',this['getItemLabel'](_0x30f9e6['element'],_0x30f9e6['quantity']))});continue;case'addContainer':_0x3870be['push']({'type':'insertion','content':o(_0x222b5b,'*Split:*\x20%0',this['getItemLabel'](_0x30f9e6['element'],_0x30f9e6['quantity']))});continue;case'removeContainer':_0x3870be['push']({'type':'deletion','content':o(_0x222b5b,'*Merge:*\x20%0',this['getItemLabel'](_0x30f9e6['element'],_0x30f9e6['quantity']))});continue;case'addFormat':_0x3c9695['push'](_0x30f9e6['key']);continue;case'removeFormat':_0x56e1e0['push'](_0x30f9e6['key']);continue;default:_0x3870be['push'](_0x30f9e6);}if(_0x3c9695['length']){const _0x3ad360=_0x3c9695['map'](_0x3a5117=>this['_attributeLabels']['has'](_0x3a5117)?this['_attributeLabels']['get'](_0x3a5117):_0x3a5117)['join'](',\x20');_0x3870be['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3ad360)});}if(_0x56e1e0['length']){const _0x4fd324=_0x56e1e0['map'](_0x8d99d0=>this['_attributeLabels']['has'](_0x8d99d0)?this['_attributeLabels']['get'](_0x8d99d0):_0x8d99d0)['join'](',\x20');_0x3870be['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4fd324)});}return _0x3870be;}['_handleCustomCallbackDescription'](_0x1e4cd2){for(const _0x555697 of this['_customCallbacks']){const _0xca08b1=_0x555697(_0x1e4cd2);if(_0xca08b1&&'type'in _0xca08b1)return _0xca08b1;}}['_handleAttributeSuggestionDescription'](_0x1e57cd,_0x535329){const _0x318c92=_0x535329['data'],_0x3c37df=void 0x0===_0x318c92['newValue']?'removeFormat':'addFormat';_0x1e57cd['push']({'type':_0x3c37df,'key':_0x318c92['key']});}['_handleRenameSuggestionDescription'](_0x313422,_0x1c976e){_0x313422['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1c976e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2f16bd,_0x346b37,_0x2146ee){if(this['_addDescriptionItems'](_0x2f16bd,_0x346b37),_0x2146ee&&_0x2146ee['getFirstRange']()&&!_0x346b37['getFirstRange']()['end']['isEqual'](_0x2146ee['getFirstRange']()['start'])){const _0x2529e9=_0x2f16bd[_0x2f16bd['length']-0x1],_0x319760='insertion'==_0x346b37['type']?'add':'remove';_0x2529e9&&'text'==_0x2529e9['type']&&(_0x2529e9[_0x319760]+='\x0a');}}}class U extends _0x561601{['afterInit'](){const _0x14109f=this['editor'],_0x270947=_0x14109f['plugins']['get']('TrackChangesEditing');_0x14109f['commands']['get']('showAIAssistant')&&_0x270947['enableCommand']('showAIAssistant');}}class V extends _0x561601{['afterInit'](){const _0x3b592e=this['editor'],_0x2efabd=_0x3b592e['plugins']['get']('TrackChangesEditing');_0x3b592e['commands']['get']('toggleAi')&&_0x2efabd['enableCommand']('toggleAi');}}class F extends _0x561601{['afterInit'](){const _0x3ee5ff=this['editor'],_0xbc1649=_0x3ee5ff['plugins']['get']('TrackChangesEditing');_0x3ee5ff['commands']['get']('aiQuickAction')&&_0xbc1649['enableCommand']('aiQuickAction');}}class G extends _0x561601{['afterInit'](){const _0x2f90aa=this['editor'],_0x28fac6=_0x2f90aa['locale'];if(!_0x2f90aa['plugins']['has']('AlignmentEditing'))return;const _0x42f623=_0x2f90aa['plugins']['get']('TrackChangesEditing');_0x42f623['enableDefaultAttributesIntegration']('alignment'),_0x42f623['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x28fac6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3500a3=this['editor'],_0x5eb176=_0x3500a3['locale'];_0x3500a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9f863c=>{if('formatBlock'!=_0x9f863c['type'])return;const {data:_0x4c8e19}=_0x9f863c;if(_0x4c8e19&&'alignment'==_0x4c8e19['commandName']){const _0x2594de=_0x4c8e19['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5eb176,'*Format:*\x20%0',function(_0x187715){switch(_0x187715){case'left':return o(_0x5eb176,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5eb176,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5eb176,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5eb176,'FORMAT_JUSTIFY_TEXT');}}(_0x2594de))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x561601{['afterInit'](){const _0x12f9a9=this['editor'],_0xbc1b4b=_0x12f9a9['plugins']['get']('TrackChangesEditing'),_0x3c0bf4=_0x12f9a9['locale'];for(const _0x133b11 of ti){if(!_0x12f9a9['plugins']['has'](_0x133b11))continue;const _0x10e82f=_0x133b11['slice'](0x0,-0x7)['toLowerCase'](),_0x3c1a1f='FORMAT_'+_0x10e82f['toUpperCase']();_0xbc1b4b['enableDefaultAttributesIntegration'](_0x10e82f),_0xbc1b4b['descriptionFactory']['registerAttributeLabel'](_0x10e82f,o(_0x3c0bf4,_0x3c1a1f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26911b=this['editor'],_0x8f1cb9=_0x26911b['locale'],_0x53ab75=_0x26911b['plugins']['get']('TrackChangesEditing');function _0x439b8b(_0x332fe4,_0x40569d){_0x53ab75['descriptionFactory']['registerDescriptionCallback'](_0x2d81c6=>{if('formatInline'!=_0x2d81c6['type'])return;const {data:_0x5a302f}=_0x2d81c6;return _0x5a302f&&_0x5a302f['commandName']===_0x332fe4?_0x5a302f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x8f1cb9,'*Format:*\x20%0',_0x40569d)}:{'type':'format','content':o(_0x8f1cb9,'*Remove\x20format:*\x20%0',_0x40569d)}:void 0x0;});}_0x439b8b('bold',o(_0x8f1cb9,'FORMAT_BOLD')),_0x439b8b('italic',o(_0x8f1cb9,'FORMAT_ITALIC')),_0x439b8b('underline',o(_0x8f1cb9,'FORMAT_UNDERLINE')),_0x439b8b('code',o(_0x8f1cb9,'FORMAT_CODE')),_0x439b8b('strikethrough',o(_0x8f1cb9,'FORMAT_STRIKETHROUGH')),_0x439b8b('subscript',o(_0x8f1cb9,'FORMAT_SUBSCRIPT')),_0x439b8b('superscript',o(_0x8f1cb9,'FORMAT_SUPERSCRIPT'));}}class J extends _0x561601{['afterInit'](){const _0x597d70=this['editor'],_0x3b9e42=_0x597d70['locale'];if(!_0x597d70['plugins']['has']('BlockQuoteEditing'))return;const _0x2adf23=_0x597d70['plugins']['get']('TrackChangesEditing'),_0xac0ece=this['editor']['commands']['get']('blockQuote');_0x2adf23['enableCommand']('blockQuote',(_0x50e20d,_0x18df3f={})=>{const _0x2ad84e=this['editor']['model']['document']['selection'],_0x57007c=_0x18df3f&&void 0x0!==_0x18df3f['forceValue']?_0x18df3f['forceValue']:!_0xac0ece['value'];let _0xd74c21=[];if(_0x57007c){const _0x4982e4=Array['from'](_0x2ad84e['getSelectedBlocks']())['filter'](_0x16a909=>oo(_0x16a909)||function(_0x311c7d,_0x358645){const _0x27911b=_0x358645['checkChild'](_0x311c7d['parent'],'blockQuote'),_0x2e4aeb=_0x358645['checkChild'](['$root','blockQuote'],_0x311c7d);return _0x27911b&&_0x2e4aeb;}(_0x16a909,this['editor']['model']['schema']));_0xd74c21=to(_0x4982e4,_0x597d70['model']);}else{const _0x31ad23=Array['from'](_0x2ad84e['getSelectedBlocks']())['filter'](_0x42993b=>oo(_0x42993b));_0xd74c21=to(_0x31ad23,_0x597d70['model']);}_0x597d70['model']['change'](()=>{for(const _0x39628f of _0xd74c21)_0x2adf23['markBlockFormat'](_0x39628f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x57007c}]});});}),_0x2adf23['descriptionFactory']['registerDescriptionCallback'](_0x138b14=>{const {data:_0x3ad699}=_0x138b14;if(_0x3ad699&&'blockQuote'==_0x3ad699['commandName']){const _0x118b94=o(_0x3b9e42,'ELEMENT_BLOCK_QUOTE');return _0x3ad699['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b9e42,'*Set\x20format:*\x20%0',_0x118b94)}:{'type':'format','content':o(_0x3b9e42,'*Remove\x20format:*\x20%0',_0x118b94)};}});}}function oo(_0xa5f3e6){return'blockQuote'==_0xa5f3e6['parent']['name'];}class q extends _0x561601{['afterInit'](){const _0x777afe=this['editor'],_0x45643d=_0x777afe['locale'],_0x9f756e=_0x777afe['plugins']['get']('TrackChangesEditing');_0x777afe['plugins']['has']('BookmarkEditing')&&(_0x9f756e['enableCommand']('insertBookmark'),_0x9f756e['enableDefaultAttributesIntegration']('updateBookmark'),_0x9f756e['descriptionFactory']['registerDescriptionCallback'](_0x18ab1c=>{if('insertion'!=_0x18ab1c['type']&&'deletion'!=_0x18ab1c['type']&&'attribute'!=_0x18ab1c['type'])return;const _0x96b204=_0x18ab1c['getContainedElement']();if(null==_0x96b204)return;if(!_0x96b204['is']('element','bookmark'))return;const _0x1de95a=_0x96b204['getAttribute']('bookmarkId');if('insertion'==_0x18ab1c['type'])return{'type':'insertion','content':o(_0x45643d,'*Insert:*\x20%0','\x22'+_0x1de95a+'\x22\x20'+o(_0x45643d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x18ab1c['type'])return{'type':'deletion','content':o(_0x45643d,'*Remove:*\x20%0','\x22'+_0x1de95a+'\x22\x20'+o(_0x45643d,'ELEMENT_BOOKMARK'))};const {data:_0x1c2058}=_0x18ab1c;if(!_0x1c2058||'bookmarkId'!=_0x1c2058['key'])return;return{'type':'format','content':o(_0x45643d,'*Set\x20bookmark:*\x20%0','\x22'+_0x1c2058['newValue']+'\x22')};}));}}class z extends _0x561601{['afterInit'](){const _0x5e8b49=this['editor'];_0x5e8b49['plugins']['has']('CaseChange')&&(_0x5e8b49['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5e8b49['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5e8b49['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x561601{['afterInit'](){const _0x43d3ad=this['editor'];_0x43d3ad['commands']['get']('ckbox')&&_0x43d3ad['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x561601{['afterInit'](){const _0x4e5728=this['editor'];if(!_0x4e5728['plugins']['has']('CodeBlock'))return;const _0x5eb456=_0x4e5728['plugins']['get']('TrackChangesEditing'),_0x139d6b=_0x4e5728['locale'],_0x553b53=_0x4e5728['config']['get']('codeBlock')['languages'],_0x18cab1=_0x4e5728['commands']['get']('codeBlock');_0x5eb456['enableCommand']('indentCodeBlock'),_0x5eb456['enableCommand']('outdentCodeBlock'),_0x5eb456['enableCommand']('codeBlock',(_0x253069,_0x27fdfb={})=>{const _0x2d3378=_0x4e5728['model'],_0x1a1ca1=_0x4e5728['model']['document']['selection'],_0x1c3765=_0x27fdfb&&void 0x0!==_0x27fdfb['forceValue']?_0x27fdfb['forceValue']:!_0x18cab1['value'];let _0x5c6ec2;_0x27fdfb['language']||(_0x27fdfb['language']=_0x553b53[0x0]['language']),_0x5c6ec2=_0x1c3765?Array['from'](_0x1a1ca1['getSelectedBlocks']())['filter'](_0x150a40=>co(_0x150a40)||function(_0x494b44,_0x44c417){if(_0x494b44['is']('rootElement')||_0x44c417['isLimit'](_0x494b44))return!0x1;return _0x44c417['checkChild'](_0x494b44['parent'],'codeBlock');}(_0x150a40,_0x2d3378['schema'])):Array['from'](_0x1a1ca1['getSelectedBlocks']())['filter'](_0x4fd311=>co(_0x4fd311));const _0x51580d=to(_0x5c6ec2,_0x2d3378);_0x2d3378['change'](()=>{for(const _0x41e7aa of _0x51580d)_0x5eb456['markBlockFormat'](_0x41e7aa,{'commandName':'codeBlock','commandParams':[{..._0x27fdfb,'forceValue':_0x1c3765}],'formatGroupId':'blockName'});});}),(_0x5eb456['descriptionFactory']['registerElementLabel']('codeBlock',_0x2df432=>o(_0x139d6b,'ELEMENT_CODE_BLOCK',_0x2df432)),_0x5eb456['descriptionFactory']['registerDescriptionCallback'](_0x4dc65a=>{if('formatBlock'!=_0x4dc65a['type'])return;const _0x57be5c=_0x139d6b['t'],{data:_0x4ecaa6}=_0x4dc65a;if(!_0x4ecaa6||'codeBlock'!=_0x4ecaa6['commandName'])return;const _0x588dd0=_0x4ecaa6['commandParams'][0x0]['language'],_0x260778=_0x57be5c(_0x553b53['find'](_0x15bee8=>_0x15bee8['language']===_0x588dd0)['label'])['toLowerCase']();return _0x4ecaa6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x139d6b,'*Set\x20format:*\x20%0',o(_0x139d6b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x260778+')')}:{'type':'format','content':o(_0x139d6b,'*Remove\x20format:*\x20%0',o(_0x139d6b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x5adce1){return'codeBlock'==_0x5adce1['name'];}class H extends _0x561601{['afterInit'](){const _0x5a2025=this['editor'];if(!_0x5a2025['plugins']['has']('CommentsEditing'))return;_0x5a2025['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x561601{static get['requires'](){return[_0x284e5a];}['init'](){const _0x2010e5=this['editor'],_0x2b3aeb=_0x2010e5['plugins']['get']('TrackChangesEditing');_0x2b3aeb['enableCommand']('delete');const _0x5be877=_0x2010e5['commands']['get']('deleteForward');_0x2b3aeb['enableCommand']('deleteForward',(_0x3c6d7e,_0x5ad973={})=>{const _0x18c86f=_0x2010e5['model']['createSelection'](_0x2010e5['model']['document']['selection']);_0x18c86f['isCollapsed']&&_0x2010e5['model']['modifySelection'](_0x18c86f,{'direction':'forward','unit':_0x5ad973['unit']});const _0x1aa7e3=_0x18c86f['getFirstRange'](),_0xb7fb4=_0x1c8214['fromRange'](_0x1aa7e3);let _0x5677e8;_0x3c6d7e(_0x5ad973),_0x5677e8='$graveyard'==_0xb7fb4['root']['rootName']?_0x2010e5['model']['createRange'](_0x1aa7e3['start']):_0x2010e5['model']['createRange'](_0xb7fb4['start'],_0xb7fb4['end']),_0xb7fb4['detach'](),_0x2010e5['model']['enqueueChange'](_0x5be877['buffer']['batch'],_0x1d4923=>{_0x5be877['buffer']['lock'](),_0x1d4923['setSelection'](_0x1d4923['createRange'](_0x5677e8['end'])),_0x5be877['buffer']['unlock']();});});}}class X extends _0x561601{['afterInit'](){const _0x38794c=this['editor'];if(!_0x38794c['plugins']['has']('ListEditing'))return;const _0x5774c6=_0x38794c['locale'],_0x494857=_0x38794c['plugins']['get']('TrackChangesEditing'),_0x158475=_0x38794c['plugins']['has']('TodoListEditing'),_0x4c1149=!!_0x38794c['config']['get']('list.multiBlock');function _0x316a68(_0x351661){return{'type':'format','content':''+o(_0x5774c6,'*Set\x20format:*\x20%0',_0x351661)};}function _0x436d00(_0x414a43){return{'type':'format','content':''+o(_0x5774c6,'*Remove\x20format:*\x20%0',_0x414a43)};}_0x494857['enableDefaultAttributesIntegration']('numberedList'),_0x494857['enableDefaultAttributesIntegration']('bulletedList'),_0x494857['enableDefaultAttributesIntegration']('customNumberedList'),_0x494857['enableDefaultAttributesIntegration']('customBulletedList'),_0x494857['enableDefaultAttributesIntegration']('indentList'),_0x494857['enableDefaultAttributesIntegration']('outdentList'),_0x494857['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x494857['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4c1149&&(_0x494857['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x494857['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x158475&&(_0x494857['enableDefaultAttributesIntegration']('todoList'),_0x494857['enableDefaultAttributesIntegration']('checkTodoList'),_0x494857['descriptionFactory']['registerDescriptionCallback'](_0x233f3f=>{const {data:_0x34f652}=_0x233f3f;if(_0x34f652&&'todoListChecked'==_0x34f652['key'])return{'type':'format','content':_0x34f652['newValue']?o(_0x5774c6,'*Check\x20item*'):o(_0x5774c6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x51f822=>{if(_0x51f822['batch']['isUndo'])return!0x1;let _0x30e040=!0x1;const _0x165583=_0x494857['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4355fe=>'todoListChecked'===_0x494857['_getAttributeKey'](_0x4355fe));for(const _0x3a39a5 of _0x165583){'todo'!=_0x3a39a5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x494857['_findSuggestions'](_0x3a39a5['getFirstRange'](),'attribute')['find'](_0x2ffb84=>'listType'===_0x494857['_getAttributeKey'](_0x2ffb84['suggestion']))||(_0x51f822['removeMarker'](_0x3a39a5['getFirstMarker']()),_0x30e040=!0x0));}return _0x30e040;})),_0x494857['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5774c6,'FORMAT_INDENT'));const _0x41ead3={'type':'format','content':''};_0x494857['descriptionFactory']['registerDescriptionCallback'](_0xbc61a7=>{const {data:_0x22df4e}=_0xbc61a7;if(!_0x22df4e||'listType'!=_0x22df4e['key'])return;let _0x6502b3=_0xbc61a7['head'];for(;_0x6502b3;){if(_0x6502b3['data']&&(('listStyle'==_0x6502b3['data']['key']||'listMarkerStyle'==_0x6502b3['data']['key'])&&(_0x6502b3['data']['newValue']&&'default'!=_0x6502b3['data']['newValue']||'default'!=_0x6502b3['data']['oldValue']&&!_0x22df4e['newValue'])||!_0x4c1149&&_0x6502b3['data']['key']==m))return _0x41ead3;_0x6502b3=_0x6502b3['next'];}if(null==_0x22df4e['newValue'])switch(_0x22df4e['oldValue']){case'bulleted':return _0x436d00(o(_0x5774c6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x436d00(o(_0x5774c6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x436d00(o(_0x5774c6,'ELEMENT_TODO_LIST'));}switch(_0x22df4e['newValue']){case'bulleted':return _0x316a68(o(_0x5774c6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x316a68(o(_0x5774c6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x316a68(o(_0x5774c6,'ELEMENT_TODO_LIST'));}}),_0x494857['descriptionFactory']['registerDescriptionCallback'](_0x5b9005=>{const {data:_0x5424dc}=_0x5b9005;if(_0x5424dc&&'listIndent'==_0x5424dc['key'])return null==_0x5424dc['newValue']||null==_0x5424dc['oldValue']&&0x0==_0x5424dc['newValue']?_0x41ead3:void 0x0;}),_0x494857['descriptionFactory']['registerDescriptionCallback'](_0x246315=>{if('attribute'!=_0x246315['type'])return;const {data:_0x46787e}=_0x246315;if(!_0x46787e||'listItemId'!=_0x46787e['key'])return;const _0x28421c=Te(_0x246315);return'newValue'==_0x28421c?{'type':'format','content':o(_0x5774c6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x28421c?{'type':'format','content':o(_0x5774c6,'*Split:*\x20list\x20item')}:_0x41ead3;}),_0x38794c['model']['document']['registerPostFixer'](_0x45da3b=>this['listItemIdFixer'](_0x45da3b)),_0x38794c['model']['document']['registerPostFixer'](_0xa249c5=>this['noTrackChangesFixer'](_0xa249c5)),_0x38794c['model']['document']['on']('change:data',(_0xad7c8b,_0x2fe151)=>{if(_0x2fe151['isUndo']||!_0x2fe151['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x55c530){if(_0x55c530['batch']['isUndo']||!_0x55c530['batch']['isLocal'])return!0x1;let _0x597fe5=!0x1;const _0x5ae645=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d37f0=>_0x2d37f0['data']&&'listItemId'==_0x2d37f0['data']['key'])['filter'](_0x18569e=>_0x18569e['data']['newValue']&&_0x18569e['data']['oldValue']);for(const _0x2e4638 of _0x5ae645)Te(_0x2e4638)||(_0x55c530['removeMarker'](_0x2e4638['getFirstMarker']()),_0x597fe5=!0x0);return _0x597fe5;}['noTrackChangesFixer'](_0x532c4a){if(_0x532c4a['batch']['isUndo']||!_0x532c4a['batch']['isLocal'])return!0x1;const _0x48bc7e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x48bc7e['trackChangesCommand']['value'])return!0x1;let _0x2095a7=!0x1;const _0x5acb31=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x134ae6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5cfe74=>'attribute'==_0x5cfe74['type'])['filter'](_0x15ffda=>_0x5acb31['includes'](_0x15ffda['attributeKey']));if(0x0==_0x134ae6['length'])return _0x2095a7;for(const _0x55b323 of _0x134ae6){const _0x4b1920=_0x48bc7e['_findSuggestions'](_0x55b323['range'],'attribute')['filter'](_0x48b6a2=>!_0x48b6a2['meta']['isNextTo'])['map'](_0x12a292=>_0x12a292['suggestion'])['filter'](_0x1c41c4=>{const _0xd8f03c=_0x48bc7e['_getAttributeKey'](_0x1c41c4);return _0x5acb31['includes'](_0xd8f03c);});if(_0x4b1920['length']){for(const _0x107fe8 of _0x4b1920)_0x532c4a['removeMarker'](_0x107fe8['getFirstMarker']());_0x2095a7=!0x0;}}return _0x2095a7;}['assureChains'](){const _0x34fda9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5039d2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4b5e23;const _0x3e9314=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x565b3b=>{if(_0x565b3b['data']['oldRange']||!_0x565b3b['data']['newRange'])return null;if(!_0x565b3b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1266b2}=_0x34fda9['_splitMarkerName'](_0x565b3b['name']);if(!_0x34fda9['hasSuggestion'](_0x1266b2))return null;const _0xb90ba8=_0x34fda9['getSuggestion'](_0x1266b2);return _0x5039d2['includes'](_0xb90ba8['data']['key']);})['map'](_0x6bcf9f=>{const {id:_0x38688d}=_0x34fda9['_splitMarkerName'](_0x6bcf9f['name']),_0x208568=_0x34fda9['getSuggestion'](_0x38688d);return _0x4b5e23=_0x208568['attributes']['groupId'],_0x208568['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3e9314['size'])return;const _0x48fce1=_0x34fda9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cd800=>'attribute'==_0x5cd800['type']&&_0x5cd800['data']&&_0x5039d2['includes'](_0x5cd800['data']['key'])&&_0x5cd800['attributes']['groupId']!=_0x4b5e23)['map'](_0x498c0c=>({'listItem':_0x498c0c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x498c0c['attributes']['groupId']})),_0x1d29cd=new Set();for(const {groupId:_0x3d8624,listItem:_0x200a76}of _0x48fce1)_0x3e9314['has'](_0x200a76)&&_0x1d29cd['add'](_0x3d8624);for(const _0x972b92 of _0x34fda9['getSuggestions']())_0x1d29cd['has'](_0x972b92['attributes']['groupId'])&&_0x972b92['setAttribute']('groupId',_0x4b5e23);}['_supportLegacySuggestions'](){const _0x52dec8=this['editor'],_0x4513c7=_0x52dec8['locale'],_0x12513d=_0x52dec8['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x12513d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x53ec99,_0x161824){const _0x443060=[];for(let _0x297ba1 of _0x53ec99)_0x297ba1['start']['nodeAfter']===_0x297ba1['end']['parent']&&(_0x297ba1=_0x52dec8['model']['createRange'](_0x52dec8['model']['createPositionAt'](_0x297ba1['start']['nodeAfter'],0x0))),_0x443060['push'](_0x297ba1);_0x52dec8['model']['change'](_0xec343b=>{const _0x298df5=_0x52dec8['model']['document']['selection'],_0xb66943=Array['from'](_0x298df5['getRanges']())['map'](_0x419097=>_0x1c8214['fromRange'](_0x419097));_0xec343b['setSelection'](_0x443060),_0x52dec8['commands']['get'](_0x161824['commandName'])['refresh'](),_0x161824['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x52dec8['execute'](_0x161824['commandName'],..._0x161824['commandParams']),_0xec343b['setSelection'](_0xb66943);for(const _0x560b0c of _0xb66943)_0x560b0c['detach']();});}),_0x12513d['descriptionFactory']['registerElementLabel'](function(_0x67c91c){const _0x2d2380=!_0x52dec8['model']['schema']['isObject'](_0x67c91c),_0xb4f8d6=_0x67c91c['previousSibling'],_0x5ce323=_0x67c91c['nextSibling'],_0x4d8a7d=_0x67c91c['getAttribute']('listItemId'),_0x3e06c5=!_0xb4f8d6||_0xb4f8d6['getAttribute']('listItemId')!==_0x4d8a7d,_0x28fc98=!_0x5ce323||_0x5ce323['getAttribute']('listItemId')!==_0x4d8a7d;return _0x2d2380&&Boolean(_0x4d8a7d)&&_0x3e06c5&&_0x28fc98;},_0x4c1c0f=>o(_0x4513c7,'ELEMENT_LIST_ITEM',_0x4c1c0f));}['_registerLegacyDescription'](){const _0x252183=this['editor'],_0x513fe1=_0x252183['locale'];function _0x5e27e7(_0x1ce89c){const _0x300194=_0x252183['commands']['get']('bulletedList')['value'],_0x5df200=_0x252183['commands']['get']('numberedList')['value'];return'numberedList'===_0x1ce89c?_0x300194:_0x5df200;}_0x252183['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x14134b){if('formatBlock'!=_0x14134b['type'])return;const {data:_0x454f78}=_0x14134b;if(!_0x454f78)return;let _0x1e0498,_0x2e8f3a,_0x589836,_0x357c83;switch(_0x454f78['commandName']){case'bulletedList':_0x589836=_0x454f78['commandParams'][0x0]['forceValue'],_0x357c83=_0x5e27e7(_0x454f78['commandName']),_0x1e0498=_0x589836?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x357c83&&_0x252183['config']['get']('list.multiBlock')||(_0x1e0498='*Change\x20to:*\x20%0'),_0x2e8f3a={'type':'format','content':o(_0x513fe1,_0x1e0498,o(_0x513fe1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x589836=_0x454f78['commandParams'][0x0]['forceValue'],_0x357c83=_0x5e27e7(_0x454f78['commandName']),_0x1e0498=_0x589836?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x357c83&&_0x252183['config']['get']('list.multiBlock')||(_0x1e0498='*Change\x20to:*\x20%0'),_0x2e8f3a={'type':'format','content':o(_0x513fe1,_0x1e0498,o(_0x513fe1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1e0498='*Indent:*\x20%0',_0x2e8f3a={'type':'format','content':o(_0x513fe1,_0x1e0498,o(_0x513fe1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1e0498=function(_0x563819){const _0x504936=_0x563819['getFirstRange']();let _0x320d06=_0x504936['start']['nodeAfter'];for(;_0x320d06&&_0x504936['containsItem'](_0x320d06);){if(_0x320d06['getAttribute']('listIndent')>0x0)return!0x1;_0x320d06=_0x320d06['nextSibling'];}return!0x0;}(_0x14134b)?o(_0x513fe1,'*Format:*\x20remove\x20from\x20%0',o(_0x513fe1,function(_0x48772f){return'ELEMENT_'+_0x48772f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x14134b))):o(_0x513fe1,'*Outdent:*\x20%0',o(_0x513fe1,'ELEMENT_LIST_ITEM')),_0x2e8f3a={'type':'format','content':_0x1e0498};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x454f78['multipleBlocks']&&(_0x1e0498='*Merge:*\x20%0',_0x2e8f3a={'type':'deletion','content':o(_0x513fe1,_0x1e0498,o(_0x513fe1,'ELEMENT_LIST_ITEM'))});}return _0x2e8f3a;});}}function Te(_0x9fa493){let _0x1f4a98=_0x9fa493['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1f4a98;){const _0x1aaf24=_0x1f4a98['getAttribute']('listItemId');if(!_0x1aaf24)return!0x1;if(_0x1aaf24==_0x9fa493['data']['newValue'])return'newValue';if(_0x1aaf24==_0x9fa493['data']['oldValue'])return'oldValue';_0x1f4a98=_0x1f4a98['previousSibling'];}return!0x1;}class Y extends _0x561601{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1cd760=this['editor']['config']['get']('list.properties'),_0xacaefd=this['editor']['plugins']['get']('TrackChangesEditing');_0x1cd760['styles']&&_0xacaefd['enableDefaultAttributesIntegration']('listStyle'),_0x1cd760['reversed']&&_0xacaefd['enableDefaultAttributesIntegration']('listReversed'),_0x1cd760['startIndex']&&_0xacaefd['enableDefaultAttributesIntegration']('listStart');const _0x1ae6be={'type':'format','content':''};_0xacaefd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xa6d2b5=this['editor']['locale'];_0xacaefd['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xa6d2b5,'FORMAT_LIST_REVERSED')),_0xacaefd['descriptionFactory']['registerDescriptionCallback'](_0x45bee6=>{const {data:_0x5c587c}=_0x45bee6;if(_0x5c587c&&'listReversed'==_0x5c587c['key'])return null==_0x5c587c['newValue']||0x0==_0x5c587c['newValue']&&null==_0x5c587c['oldValue']?_0x1ae6be:void 0x0;}),_0xacaefd['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xa6d2b5,'FORMAT_LIST_START')),_0xacaefd['descriptionFactory']['registerDescriptionCallback'](_0x4027ce=>{const {data:_0x1498ac}=_0x4027ce;if(_0x1498ac&&'listStart'==_0x1498ac['key'])return null==_0x1498ac['newValue']||0x1==_0x1498ac['newValue']&&null==_0x1498ac['oldValue']?_0x1ae6be:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x26d864=>{if(_0x26d864['batch']['isUndo'])return!0x1;let _0x165cdc=!0x1;const _0x4082bc=_0xacaefd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x216700=>{const _0x1c1a4c=_0xacaefd['_getAttributeKey'](_0x216700);return'listStart'==_0x1c1a4c||'listReversed'==_0x1c1a4c;});for(const _0x531341 of _0x4082bc){const _0x145158=_0x531341['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x145158||'customNumbered'==_0x145158)continue;_0xacaefd['_findSuggestions'](_0x531341['getFirstRange'](),'attribute')['find'](_0x55280c=>'listType'==_0xacaefd['_getAttributeKey'](_0x55280c['suggestion']))||(_0x26d864['removeMarker'](_0x531341['getFirstMarker']()),_0x165cdc=!0x0);}return _0x165cdc;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1fb66b){const _0x54eefe=this['editor']['locale'],{data:_0xf8eb1b}=_0x1fb66b,_0x5d950d={'type':'format','content':''};if(!_0xf8eb1b||'listStyle'!=_0xf8eb1b['key'])return;if(!_0xf8eb1b['oldValue'])return'default'==_0xf8eb1b['newValue']?_0x5d950d:{'type':'format','content':''+o(_0x54eefe,'*Set\x20format:*\x20%0',o(_0x54eefe,this['_getTranslationKeyForListStyle'](_0xf8eb1b['newValue'])))};if(!_0xf8eb1b['newValue']){if('default'==_0xf8eb1b['oldValue'])return _0x5d950d;let _0x5f1d4f=_0x1fb66b['head'];for(;_0x5f1d4f;){if(_0x5f1d4f['data']&&'listType'==_0x5f1d4f['data']['key']&&_0x5f1d4f['data']['newValue'])return _0x5d950d;_0x5f1d4f=_0x5f1d4f['next'];}return{'type':'format','content':''+o(_0x54eefe,'*Remove\x20format:*\x20%0',o(_0x54eefe,this['_getTranslationKeyForListStyle'](_0xf8eb1b['oldValue'])))};}if('default'!=_0xf8eb1b['newValue'])return{'type':'format','content':''+o(_0x54eefe,'*Set\x20format:*\x20%0',o(_0x54eefe,this['_getTranslationKeyForListStyle'](_0xf8eb1b['newValue'])))};let _0x301164=_0x1fb66b['head'];for(;_0x301164;){if(_0x301164['data']&&'listType'==_0x301164['data']['key']&&_0x301164['data']['newValue']&&_0x301164['data']['oldValue'])return _0x5d950d;_0x301164=_0x301164['next'];}return{'type':'format','content':o(_0x54eefe,'*Set\x20format:*\x20%0',o(_0x54eefe,'ELEMENT_'+_0x1fb66b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xea868c=this['editor'],_0x3d4f11=_0xea868c['locale'];_0xea868c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x214ab3=>{if('formatBlock'!=_0x214ab3['type'])return;const {data:_0x2cb261}=_0x214ab3;if(!_0x2cb261)return;let _0x4a85fb,_0x1fb94d;switch(_0x2cb261['commandName']){case'listStyle':_0x4a85fb='*Change\x20to:*\x20%0',_0x1fb94d={'type':'format','content':o(_0x3d4f11,_0x4a85fb,o(_0x3d4f11,this['_getTranslationKeyForListStyle'](_0x2cb261['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4a85fb=_0x2cb261['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1fb94d={'type':'format','content':o(_0x3d4f11,_0x4a85fb)};break;case'listStart':_0x4a85fb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1fb94d={'type':'format','content':o(_0x3d4f11,_0x4a85fb,_0x2cb261['commandParams'][0x0]['startIndex'])};}return _0x1fb94d;});}['_getTranslationKeyForListStyle'](_0xf89f84){return'ELEMENT_'+function(_0x5000c3){if(ye['includes'](_0x5000c3))return'bulleted';if(Se['includes'](_0x5000c3))return'numbered';return null;}(_0xf89f84)['toUpperCase']()+'_LIST_'+_0xf89f84['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x561601{['afterInit'](){const _0x3f554b=this['editor'];_0x3f554b['commands']['get']('emoji')&&_0x3f554b['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x561601{static get['requires'](){return[_0x19fbfb];}['init'](){const _0xdbe5c0=this['editor'],_0x115cd2=_0xdbe5c0['plugins']['get']('TrackChangesEditing'),_0x4abfbb=_0xdbe5c0['commands']['get']('enter');_0x115cd2['enableCommand']('enter',()=>{_0xdbe5c0['model']['change'](_0x2d2140=>{const _0x25f56e=_0xdbe5c0['model']['document']['selection'],_0x5394f3=_0x25f56e['getFirstPosition'](),_0x17a875=_0x1c8214['fromRange'](_0x25f56e['getFirstRange']());if(_0x4abfbb['enterBlock'](_0x2d2140)){const _0x1dc232=_0xdbe5c0['model']['createPositionAt'](_0x5394f3['parent']['nextSibling'],0x0),_0x3acdf4=_0x2d2140['createRange'](_0x5394f3,_0x1dc232);_0x115cd2['markInsertion'](_0x3acdf4);}else _0x2d2140['setSelection'](_0x2d2140['createRange'](_0x17a875['end']));_0x17a875['detach'](),_0x4abfbb['fire']('afterExecute',{'writer':_0x2d2140});});});}}class nt extends _0x561601{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5792c8=this['editor']['plugins']['get']('TrackChangesEditing');_0x5792c8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5792c8['enableCommand']('findNext'),_0x5792c8['enableCommand']('findPrevious'),_0x5792c8['enableCommand']('replace'),_0x5792c8['enableCommand']('replaceAll');}['handleFindCommand'](_0x44ddc3,_0x5949d8,_0x1ee62c={}){const _0x496b13=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x44ddc3(_0x2b921d=>{let _0x3b966b=('string'==typeof _0x5949d8?_0x496b13['findByTextCallback'](_0x5949d8,_0x1ee62c):_0x5949d8)(_0x2b921d);Array['isArray'](_0x3b966b)&&(_0x3b966b={'results':_0x3b966b,'searchText':'string'==typeof _0x5949d8?_0x5949d8:''});const _0x120909=_0x3b966b['results']['filter'](_0x3b6cec=>!0x1===this['_isInDeletionRange'](_0x3b6cec,_0x2b921d['item']));return{..._0x3b966b,'results':_0x120909};},_0x1ee62c);}['_isInDeletionRange'](_0x2aabcc,_0xb1aaf){const _0x284f44=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xb1aaf,_0x2aabcc['start']),this['editor']['model']['createPositionAt'](_0xb1aaf,_0x2aabcc['end']));for(const _0x3b5ec4 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x284f44['getIntersection'](_0x3b5ec4['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x561601{['afterInit'](){const _0x89ffcc=this['editor']['locale'],_0x14f708=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xff7850,commandName:_0x186c73}of eo)this['editor']['plugins']['has'](_0xff7850)&&_0x14f708['enableDefaultAttributesIntegration'](_0x186c73);_0x14f708['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x89ffcc,'FORMAT_FONT_SIZE')),_0x14f708['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x89ffcc,'FORMAT_FONT_FAMILY')),_0x14f708['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x89ffcc,'FORMAT_FONT_COLOR')),_0x14f708['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x89ffcc,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56dafa=this['editor'],_0x2b75e6=_0x56dafa['locale'];_0x56dafa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f5242=>{const _0xeee2b2=_0x2b75e6['t'];if('formatInline'!=_0x3f5242['type'])return;const {data:_0x5dd47c}=_0x3f5242;if(null!=_0x5dd47c){if('fontSize'==_0x5dd47c['commandName']){const _0x52dfbb=_0x5dd47c['commandParams'][0x0]['value'];if(_0x52dfbb){const _0x65215f=_0xeee2b2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x190d0c=>_0x190d0c['model']==_0x52dfbb)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2b75e6,'*Set\x20font\x20size:*\x20%0',_0x65215f)};}return{'type':'format','content':o(_0x2b75e6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5dd47c['commandName']){const _0x2995c1=_0x5dd47c['commandParams'][0x0]['value'];return _0x2995c1?{'type':'format','content':o(_0x2b75e6,'*Set\x20font\x20family:*\x20%0',_0x2995c1)}:{'type':'format','content':o(_0x2b75e6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5dd47c['commandName']){const _0x3d0fda=_0x5dd47c['commandParams'][0x0]['value'];if(_0x3d0fda){const _0x51f6a4=_0x20da64(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4a1af0=>_0x4a1af0['model']==_0x3d0fda);let _0x4a1ef5=_0x3d0fda,_0x253bd2='';return _0x51f6a4&&(_0x4a1ef5=_0x51f6a4['label'],_0x253bd2=_0xeee2b2(_0x4a1ef5)['toLowerCase']()),{'type':'format','content':o(_0x2b75e6,'*Set\x20font\x20color:*\x20%0',_0x253bd2)['trim'](),'color':{'value':_0x3d0fda,'title':_0x253bd2||_0x4a1ef5}};}return{'type':'format','content':o(_0x2b75e6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5dd47c['commandName']){const _0x2b77c8=_0x5dd47c['commandParams'][0x0]['value'];if(_0x2b77c8){const _0x2f0117=_0x20da64(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3740d7=>_0x3740d7['model']==_0x2b77c8);let _0x2241f9=_0x2b77c8,_0x236539='';return _0x2f0117&&(_0x2241f9=_0x2f0117['label'],_0x236539=_0xeee2b2(_0x2241f9)['toLowerCase']()),{'type':'format','content':o(_0x2b75e6,'*Set\x20font\x20background\x20color:*\x20%0',_0x236539)['trim'](),'color':{'value':_0x2b77c8,'title':_0x236539||_0x2241f9}};}return{'type':'format','content':o(_0x2b75e6,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x561601{['afterInit'](){const {plugins:_0xac6eec}=this['editor'];_0xac6eec['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0xac6eec['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x59ddc1,plugins:_0x32ef97,commands:_0x144c37}=this['editor'],_0xe75725=_0x32ef97['get']('TrackChangesEditing');_0x144c37['get']('footnotesStyle')&&_0xe75725['enableDefaultAttributesIntegration']('footnotesStyle'),_0x144c37['get']('footnotesStart')&&_0xe75725['enableDefaultAttributesIntegration']('footnotesStart'),_0xe75725['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x59ddc1,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xe75725['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x59ddc1,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xe6ae51=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x1b39b6,commands:_0x13129b}=this['editor'];_0x13129b['get']('insertFootnote')&&_0xe6ae51['enableCommand']('insertFootnote'),_0xe6ae51['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4be674=>o(_0x1b39b6,'ELEMENT_FOOTNOTE_REF',_0x4be674)),_0xe6ae51['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3f87b8=>o(_0x1b39b6,'ELEMENT_FOOTNOTE_DEFINITION',_0x3f87b8)),_0xe6ae51['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x62c399=>o(_0x1b39b6,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x62c399));}}class st extends _0x561601{['afterInit'](){const _0x5643a8=this['editor'],_0x14228d=_0x5643a8['plugins']['get']('TrackChangesEditing'),_0x45a364=_0x5643a8['commands']['get']('copyFormat'),_0x2d9943=_0x5643a8['commands']['get']('pasteFormat');_0x45a364&&_0x2d9943&&(_0x14228d['enableDefaultAttributesIntegration']('pasteFormat'),_0x14228d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x506d63=this['editor'],_0x42bd89=_0x506d63['locale'];_0x506d63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38612f=>{if('formatBlock'!=_0x38612f['type']&&'formatInline'!=_0x38612f['type'])return;const {data:_0x3a94ea}=_0x38612f;if(_0x3a94ea&&'pasteFormat'===_0x3a94ea['commandName']){const _0x23d360=[],_0x72696f=_0x3a94ea['commandParams'][0x0];for(const [_0xdabfe,_0x2208d7]of Object['entries'](_0x72696f))_0x23d360['push'](ro(_0x506d63,_0xdabfe,_0x2208d7));return _0x23d360['length']?{'type':'format','content':o(_0x42bd89,'*Set\x20format\x20to:*\x20%0',_0x23d360['join'](',\x20'))}:{'type':'format','content':o(_0x42bd89,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x72c97e,_0x19c5f8,_0x5a1cab){const _0x2cbba4=_0x72c97e['locale']['t'],_0x55344a=_0x19c5f8['split'](/(?=[A-Z])/)['join']('\x20'),_0x2ed463=_0x2cbba4(_0x55344a['charAt'](0x0)['toUpperCase']()+_0x55344a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5a1cab)return _0x2ed463;if('fontColor'===_0x19c5f8||'fontBackgroundColor'===_0x19c5f8){const _0x45d468=_0x20da64(_0x72c97e['config']['get']('fontColor.colors'))['find'](_0x45c7ae=>_0x45c7ae['model']==_0x5a1cab);return _0x2ed463+'\x20('+(_0x45d468?_0x2cbba4(_0x45d468['label'])['toLowerCase']():_0x5a1cab)+')';}if('fontSize'===_0x19c5f8&&isNaN(parseFloat(_0x5a1cab))){const _0x2c7f25=_0x72c97e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x72c97e['config']['get']('fontSize.options'))['find'](_0x2fe6ff=>_0x2fe6ff['model']==_0x5a1cab);return _0x2ed463+'\x20('+(_0x2c7f25?_0x2cbba4(_0x2c7f25['title'])['toLowerCase']():_0x5a1cab)+')';}return _0x2ed463+'\x20('+_0x5a1cab+')';}class ot extends _0x561601{['_headingOptions'];['afterInit'](){const _0x424af8=this['editor'];if(!_0x424af8['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x424af8['config']['get']('heading.options');const _0x22820a=_0x424af8['locale'],_0xe762a2=_0x424af8['plugins']['get']('TrackChangesEditing');_0xe762a2['enableDefaultAttributesIntegration']('heading');for(const _0x5a26cf of this['_headingOptions'])'paragraph'!=_0x5a26cf['model']&&_0xe762a2['descriptionFactory']['registerElementLabel'](_0x5a26cf['model'],_0x3abb84=>{const _0xd0e888=this['_getHeadingLevel'](_0x5a26cf['model']);return null!==_0xd0e888?_0x4b4f3a(_0x3abb84,_0xd0e888):_0x4b444b(_0x3abb84,_0x5a26cf['title']);});function _0x4b4f3a(_0x524de3,_0x5c5b7f){return o(_0x22820a,'ELEMENT_HEADING',[_0x524de3,_0x5c5b7f]);}function _0x4b444b(_0x5e42d0,_0x501757){return o(_0x22820a,'ELEMENT_HEADING_CUSTOM',[_0x5e42d0,_0x501757]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a69cb=this['editor'],_0x3ce3f3=_0x2a69cb['locale'];function _0x120d8d(_0x29aa26,_0x43afc9){return o(_0x3ce3f3,'ELEMENT_HEADING_CUSTOM',[_0x29aa26,_0x43afc9]);}_0x2a69cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19f79b=>{if('formatBlock'!=_0x19f79b['type'])return;const {data:_0x40fe0d}=_0x19f79b;if(_0x40fe0d&&'heading'==_0x40fe0d['commandName']){const _0x2c6913=_0x40fe0d['commandParams'][0x0]['value'],_0x5d642d=this['_getHeadingLevel'](_0x2c6913);if(null!==_0x5d642d)return{'type':'format','content':o(_0x3ce3f3,'*Change\x20to:*\x20%0',(_0x553c34=0x1,_0x18ca93=_0x5d642d,o(_0x3ce3f3,'ELEMENT_HEADING',[_0x553c34,_0x18ca93])))};const _0x1d3f8f=this['_headingOptions']['find'](_0x1bd7e3=>_0x1bd7e3['model']===_0x2c6913)['title'];return{'type':'format','content':o(_0x3ce3f3,'*Change\x20to:*\x20%0',_0x120d8d(0x1,_0x1d3f8f))};}var _0x553c34,_0x18ca93;});}['_getHeadingLevel'](_0x13b3f3){const _0x9ecbec=_0x13b3f3['match'](/^heading(\d+)/);if(_0x9ecbec)return _0x9ecbec[0x1];const _0x149f96=this['_headingOptions']?.['find'](_0x268529=>_0x268529['model']==_0x13b3f3);if(_0x149f96&&_0x149f96['view']){const _0xe0f3ec=_0x149f96['view'],_0x4ec669=(_0xe0f3ec['name']??_0xe0f3ec)['match'](/^h(\d+)/);if(_0x4ec669)return _0x4ec669[0x1];}return null;}}class rt extends _0x561601{['afterInit'](){const _0x492b0f=this['editor'];if(!_0x492b0f['plugins']['has']('HighlightEditing'))return;const _0x3792b0=_0x492b0f['plugins']['get']('TrackChangesEditing'),_0x2977a2=_0x492b0f['locale'];_0x3792b0['enableDefaultAttributesIntegration']('highlight'),_0x3792b0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2977a2,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x566426=this['editor'],_0x147073=_0x566426['locale'];_0x566426['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39b1d7=>{if('formatInline'!=_0x39b1d7['type'])return;const {data:_0xe8609b}=_0x39b1d7;if(_0xe8609b&&'highlight'==_0xe8609b['commandName']){const _0x502fd0=_0x147073['t'],_0x40a75f=_0xe8609b['commandParams'][0x0]['value'];if(_0x40a75f){const _0x2944d8=_0x566426['config']['get']('highlight.options')['find'](_0x493cb4=>_0x493cb4['model']==_0x40a75f),_0x44d4d0=_0x502fd0(_0x2944d8['title'])['toLowerCase']();return{'type':'format','content':o(_0x147073,'*Set\x20highlight:*\x20%0',_0x44d4d0),'color':{'value':_0x2944d8['color'],'title':_0x2944d8['title']}};}return{'type':'format','content':o(_0x147073,'*Remove\x20highlight*',o(_0x147073,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x561601{['afterInit'](){const _0x561fe6=this['editor'];if(!_0x561fe6['plugins']['has']('HorizontalLineEditing'))return;_0x561fe6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xd56296=_0x561fe6['plugins']['get']('TrackChangesEditing'),_0x474f08=_0x561fe6['locale'];_0xd56296['descriptionFactory']['registerElementLabel']('horizontalLine',_0x17f592=>o(_0x474f08,'ELEMENT_HORIZONTAL_LINE',_0x17f592));}}class ct extends _0x561601{['afterInit'](){const _0x541e14=this['editor'];if(!_0x541e14['plugins']['has']('HtmlEmbed'))return;const _0x4014d4=_0x541e14['plugins']['get']('TrackChangesEditing'),_0x273999=_0x541e14['locale'];_0x4014d4['descriptionFactory']['registerElementLabel']('rawHtml',_0x55ace7=>o(_0x273999,'ELEMENT_HTML_EMBED',_0x55ace7)),_0x4014d4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4014d4['descriptionFactory']['registerDescriptionCallback'](_0x230744=>{if('attribute'!=_0x230744['type'])return;const {data:_0xad2f13}=_0x230744;if(_0xad2f13&&'value'==_0xad2f13['key']&&_0x230744['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x116781=o(_0x273999,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x273999,'*Change\x20%0\x20content*',_0x116781)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x299274=this['editor'],_0x45f9de=_0x299274['locale'];_0x299274['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f97e3=>{if('formatBlock'!=_0x2f97e3['type'])return;const {data:_0x69b2e6}=_0x2f97e3;if(_0x69b2e6&&'htmlEmbed'==_0x69b2e6['commandName']){const _0xba4d32=o(_0x45f9de,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x45f9de,'*Change\x20%0\x20content*',_0xba4d32)};}});}}class ut extends _0x561601{['afterInit'](){const _0x31f63b=this['editor'];if(!_0x31f63b['plugins']['has']('ImageEditing'))return;const _0x77f2b4=_0x31f63b['plugins']['get']('TrackChangesEditing'),_0x5430c0=_0x31f63b['plugins']['get']('ImageUtils'),_0x4a1006=_0x31f63b['locale'];_0x77f2b4['enableCommand']('insertImage'),_0x77f2b4['descriptionFactory']['registerElementLabel']('imageBlock',_0x56288f=>o(_0x4a1006,'ELEMENT_IMAGE',_0x56288f)),_0x77f2b4['descriptionFactory']['registerElementLabel']('imageInline',_0x85089d=>o(_0x4a1006,'ELEMENT_INLINE_IMAGE',_0x85089d)),_0x77f2b4['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4a1006,'ELEMENT_CAPTION')),_0x31f63b['plugins']['has']('ImageUploadEditing')&&_0x77f2b4['enableCommand']('uploadImage'),_0x31f63b['plugins']['has']('ImageBlockEditing')&&_0x31f63b['plugins']['has']('ImageInlineEditing')&&(_0x77f2b4['enableCommand']('imageTypeInline',(_0x581460,_0x135da3)=>{const _0x21527d=_0x5430c0['getClosestSelectedImageElement'](_0x31f63b['model']['document']['selection']);_0x31f63b['model']['change'](()=>{_0x77f2b4['markBlockFormat'](_0x21527d,{'commandName':'imageTypeInline','commandParams':[_0x135da3]},[],'convertBlockImageToInline');});}),_0x77f2b4['enableCommand']('imageTypeBlock',(_0xb956c5,_0x5225dd)=>{_0x31f63b['model']['change'](_0x1215de=>{let _0x2ada90=_0x5430c0['getClosestSelectedImageElement'](_0x31f63b['model']['document']['selection']),_0x262881=_0x1215de['createRangeOn'](_0x2ada90);const _0x401761=_0x186eb8['fromPosition'](_0x262881['start'],'toPrevious'),_0x25e7af=_0x186eb8['fromPosition'](_0x262881['end'],'toNext');_0x77f2b4['forceDefaultExecution'](()=>_0xb956c5(_0x5225dd)),_0x2ada90=_0x5430c0['getClosestSelectedImageElement'](_0x31f63b['model']['document']['selection']),_0x262881=_0x1215de['createRangeOn'](_0x2ada90);const _0x27f3dd=_0x1215de['createRange'](_0x401761,_0x25e7af);_0x401761['detach'](),_0x25e7af['detach'](),_0x77f2b4['markBlockFormat'](_0x2ada90,{'commandName':'imageTypeInline','commandParams':[_0x5225dd]},[],'convertInlineImageToBlock'),_0x27f3dd['start']['isBefore'](_0x262881['start'])&&_0x77f2b4['markInsertion'](_0x1215de['createRange'](_0x27f3dd['start'],_0x262881['start']),'convertInlineImageToBlock'),_0x262881['end']['isBefore'](_0x27f3dd['end'])&&_0x77f2b4['markInsertion'](_0x1215de['createRange'](_0x262881['end'],_0x27f3dd['end']),'convertInlineImageToBlock');});}),_0x77f2b4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x77f2b4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x77f2b4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x77f2b4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x77f2b4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x77f2b4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xbdba6c])=>{const _0x3e2598=_0x77f2b4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x63d162=_0xbdba6c['start'],_0x431747=_0xbdba6c['end'];const _0x2d48b3=_0x31f63b['model']['schema']['getNearestSelectionRange'](_0x63d162,'backward'),_0x5c91e7=_0x31f63b['model']['schema']['getNearestSelectionRange'](_0x431747,'forward');_0x2d48b3['isCollapsed']&&(_0x63d162=_0x2d48b3['start']),_0x5c91e7['isCollapsed']&&(_0x431747=_0x5c91e7['end']),_0x3e2598([_0x31f63b['model']['createRange'](_0x63d162,_0x431747)]);}),_0x77f2b4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1f5e38),_0x77f2b4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1f5e38)),_0x31f63b['plugins']['has']('ImageCaptionEditing')&&(_0x77f2b4['enableCommand']('toggleImageCaption',(_0x324544,_0x5a55ae)=>{const _0xf479c9=_0x31f63b['plugins']['get']('ImageCaptionUtils');let _0x39dbdc=_0x5430c0['getClosestSelectedImageElement'](_0x31f63b['model']['document']['selection']),_0x3c513b=_0xf479c9['getCaptionFromImageModelElement'](_0x39dbdc);_0x31f63b['model']['change'](()=>{if(_0x3c513b)return void _0x77f2b4['markDeletion'](_0x31f63b['model']['createRangeOn'](_0x3c513b));const _0x43c1ed=_0x5430c0['isBlockImage'](_0x39dbdc);_0x324544(_0x5a55ae),_0x39dbdc=_0x5430c0['getClosestSelectedImageElement'](_0x31f63b['model']['document']['selection']),_0x3c513b=_0xf479c9['getCaptionFromImageModelElement'](_0x39dbdc),_0x77f2b4['markInsertion'](_0x31f63b['model']['createRangeOn'](_0x3c513b),_0x43c1ed?null:'imageCaption');});}),_0x77f2b4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1f5e38));const _0x13a235=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x21cba8(_0x26318e,_0x17c1a2){const _0x2894e9=_0x13a235['findIndex'](({type:_0x1bd848,subType:_0x335970})=>_0x26318e['type']==_0x1bd848&&_0x26318e['subType']==_0x335970),_0x460ed9=_0x13a235['findIndex'](({type:_0x5975c3,subType:_0x833d08})=>_0x17c1a2['type']==_0x5975c3&&_0x17c1a2['subType']==_0x833d08);if(_0x2894e9<0x0||_0x460ed9<0x0)return!0x1;const _0x19e07f=_0x26318e['getFirstRange'](),_0x5993e2=_0x17c1a2['getFirstRange']();if((0x0==_0x2894e9||0x1==_0x2894e9)&&0x2==_0x460ed9&&_0x19e07f['isIntersecting'](_0x5993e2))return!0x0;if(0x2==_0x2894e9&&0x3==_0x460ed9){const _0x4a2a67=_0x77f2b4['_findSuggestions'](_0x19e07f,'insertion')['filter'](({suggestion:_0x215802,meta:_0x436da0})=>_0x436da0['isOwn']&&'convertInlineImageToBlock'==_0x215802['subType']);if(_0x4a2a67['length']>0x1&&_0x5993e2['end']['isEqual'](_0x19e07f['start']))return!0x0;if(0x1==_0x4a2a67['length']&&(_0x19e07f['start']['isEqual'](_0x5993e2['end'])||_0x19e07f['end']['isEqual'](_0x5993e2['start'])))return!0x0;}if(0x3==_0x2894e9&&0x3==_0x460ed9&&_0x19e07f['start']['isBefore'](_0x5993e2['start'])){const _0x89477a=_0x19e07f['end']['nodeAfter'],_0x48fbb4=_0x5993e2['start']['nodeBefore'];return _0x5430c0['isBlockImage'](_0x89477a)&&_0x89477a===_0x48fbb4;}return!0x1;}function _0x1f5e38(_0x39431c,_0x178a79){return _0x21cba8(_0x39431c,_0x178a79)?[_0x39431c,_0x178a79]:_0x21cba8(_0x178a79,_0x39431c)?[_0x178a79,_0x39431c]:null;}_0x31f63b['plugins']['has']('ImageResize')&&(_0x77f2b4['enableDefaultAttributesIntegration']('resizeImage'),_0x77f2b4['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4a1006,'FORMAT_IMAGE_SIZE'))),_0x31f63b['plugins']['has']('ImageTextAlternativeEditing')&&_0x77f2b4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x31f63b['plugins']['has']('PictureEditing')&&_0x77f2b4['descriptionFactory']['registerDescriptionCallback'](_0x2afeab=>{if('attribute'!=_0x2afeab['type'])return;const {data:_0x4f0dfd}=_0x2afeab;return _0x4f0dfd&&'sources'==_0x4f0dfd['key']?{'type':'format','content':''}:void 0x0;}),_0x31f63b['plugins']['has']('ImageSizeAttributes')&&_0x77f2b4['descriptionFactory']['registerDescriptionCallback'](_0x596fb8=>{if('attribute'!=_0x596fb8['type'])return;const {data:_0x9b9c35}=_0x596fb8;return!_0x9b9c35||'width'!=_0x9b9c35['key']&&'height'!=_0x9b9c35['key']?void 0x0:{'type':'format','content':''};}),_0x77f2b4['descriptionFactory']['registerDescriptionCallback'](_0x34e966=>{if(!!_0x13a235['find'](({type:_0x40e32b,subType:_0x1aec6f})=>_0x34e966['type']==_0x40e32b&&_0x34e966['subType']==_0x1aec6f))return _0x34e966['previous']?{}:void 0x0;}),_0x77f2b4['descriptionFactory']['registerDescriptionCallback'](_0x2425b4=>{if('insertion'==_0x2425b4['type']||'deletion'==_0x2425b4['type']){const _0x23cfa7=_0x2425b4['getContainedElement']();if(_0x23cfa7&&_0x23cfa7['is']('element','caption'))return{'type':'insertion'==_0x2425b4['type']?'addObject':'removeObject','element':_0x23cfa7,'quantity':0x1};}}),_0x77f2b4['descriptionFactory']['registerDescriptionCallback'](_0x5a5991=>'formatBlock'==_0x5a5991['type']&&'convertInlineImageToBlock'==_0x5a5991['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5a5991['type']&&'convertBlockImageToInline'==_0x5a5991['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x77f2b4['descriptionFactory']['registerDescriptionCallback'](_0xc75752=>{if('attribute'!=_0xc75752['type'])return;const {data:_0x1d1758}=_0xc75752;if(!_0x1d1758||'alt'!=_0x1d1758['key'])return;const _0x2e2f55=_0x1d1758['newValue'];return _0x2e2f55?{'type':'format','content':o(_0x4a1006,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e2f55+'\x22')}:{'type':'format','content':o(_0x4a1006,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47f397=this['editor'],_0x298893=_0x47f397['locale'];_0x47f397['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31d53b=>{if('formatBlock'!=_0x31d53b['type']&&'formatInline'!=_0x31d53b['type'])return;const {data:_0x14774e}=_0x31d53b;if(_0x14774e){if('imageTextAlternative'==_0x14774e['commandName']){const _0x1fdf0d=_0x14774e['commandParams'][0x0]['newValue'];return _0x1fdf0d?{'type':'format','content':o(_0x298893,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1fdf0d+'\x22')}:{'type':'format','content':o(_0x298893,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x14774e['commandName']){const _0x1f976a=_0x14774e['commandParams'][0x0]['width'];return _0x1f976a?{'type':'format','content':o(_0x298893,'*Set\x20image\x20width:*\x20%0',_0x1f976a)}:{'type':'format','content':o(_0x298893,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x561601{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x273e8e=this['editor']['locale'],_0x25d7f3=this['editor']['plugins']['get']('TrackChangesEditing');_0x25d7f3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x25d7f3['descriptionFactory']['registerDescriptionCallback'](_0x4083ec=>{if('attribute'!=_0x4083ec['type'])return;const {data:_0x2156b8}=_0x4083ec;return _0x2156b8&&'src'==_0x2156b8['key']?_0x2156b8['newValue']&&_0x2156b8['oldValue']?{'type':'format','content':o(_0x273e8e,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x440d73=this['editor']['plugins']['get']('TrackChangesEditing');_0x440d73['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x440d73['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x440d73['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x440d73['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x252f76=this['editor'],_0x4e5e87=_0x252f76['locale'];_0x252f76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1560b4=>{if('formatBlock'!=_0x1560b4['type']&&'formatInline'!=_0x1560b4['type'])return;const {data:_0x45f3ea}=_0x1560b4;if(!_0x45f3ea||'replaceImageSource'!=_0x45f3ea['commandName'])return;return{'type':'format','content':o(_0x4e5e87,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x561601{['afterInit'](){const _0x1acc6f=this['editor'];if(!_0x1acc6f['plugins']['has']('ImageStyleEditing'))return;const _0x83442c=_0x1acc6f['plugins']['get']('TrackChangesEditing'),_0x9b64f4=_0x1acc6f['plugins']['get']('ImageUtils'),_0xa4a0b={};_0x83442c['enableCommand']('imageStyle',(_0x55c1d1,_0x5eaa16)=>{const _0x4333fe=_0x1acc6f['plugins']['get']('Users')['me'],_0x527a71=_0x1acc6f['commands']['get']('imageStyle');let _0x41ad8a=_0x9b64f4['getClosestSelectedImageElement'](_0x1acc6f['model']['document']['selection']),_0x5d7cd0=_0x1acc6f['model']['createRangeOn'](_0x41ad8a),_0x39ea32=_0x527a71['value'];if(_0x39ea32==_0x5eaa16['value'])return;const _0x33a9b0={'commandName':'imageStyle','commandParams':[_0x5eaa16],'formatGroupId':_0x4c54e4()};_0x1acc6f['model']['change'](()=>{if(_0x83442c['getSuggestions']()['filter'](_0x229db2=>_0x229db2['isInContent']&&_0x4333fe==_0x229db2['author']&&('formatBlock'==_0x229db2['type']||'formatInline'==_0x229db2['type'])&&('imageStylePreApply'==_0x229db2['subType']||'imageStylePostApply'==_0x229db2['subType'])&&_0x229db2['getFirstRange']()['isEqual'](_0x5d7cd0))['forEach'](_0x24e679=>_0x83442c['discardSuggestion'](_0x24e679['head'])),_0x41ad8a=_0x9b64f4['getClosestSelectedImageElement'](_0x1acc6f['model']['document']['selection']),_0x5d7cd0=_0x1acc6f['model']['createRangeOn'](_0x41ad8a),_0x527a71['refresh'](),_0x1acc6f['commands']['get']('imageTypeInline')['refresh'](),_0x1acc6f['commands']['get']('imageTypeBlock')['refresh'](),_0x39ea32=_0x527a71['value'],_0x39ea32!=_0x5eaa16['value'])return _0x9b64f4['isInlineImage'](_0x41ad8a)&&_0x527a71['shouldConvertImageType'](_0x5eaa16['value'],_0x41ad8a)?(_0x55c1d1({..._0x5eaa16,'setImageSizes':!0x1}),_0x41ad8a=_0x9b64f4['getClosestSelectedImageElement'](_0x1acc6f['model']['document']['selection']),void _0x83442c['markBlockFormat'](_0x41ad8a,{..._0x33a9b0,'commandReversedParams':[{'value':_0x39ea32||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x9b64f4['isBlockImage'](_0x41ad8a)?_0x83442c['markBlockFormat'](_0x41ad8a,_0x33a9b0,[],'imageStylePostApply'):_0x83442c['markInlineFormat'](_0x5d7cd0,_0x33a9b0,'imageStylePostApply'));});});for(const _0x4be5c2 of _0x1acc6f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xa4a0b[_0x4be5c2['name']]=_0x4be5c2['title']['toLowerCase']();_0x83442c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x83442c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x83442c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x83442c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x555304])=>{_0x9b64f4['setImageNaturalSizeAttributes'](_0x555304['getContainedElement']());}),_0x83442c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x171056,_0x28afdd)=>{_0x83442c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x171056,{'commandName':_0x28afdd['commandName'],'commandParams':_0x28afdd['commandReversedParams']});}),_0x83442c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x195aff,_0x4ec6c2){if(_0x1ca9ba(_0x195aff,_0x4ec6c2))return[_0x195aff,_0x4ec6c2];if(_0x1ca9ba(_0x4ec6c2,_0x195aff))return[_0x4ec6c2,_0x195aff];return null;});const _0x7354f9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ca9ba(_0x202ea3,_0x73c979){const _0x144b65=_0x7354f9['findIndex'](({type:_0x55c54d,subType:_0x37c64e})=>_0x202ea3['type']==_0x55c54d&&_0x202ea3['subType']==_0x37c64e),_0x614823=_0x7354f9['findIndex'](({type:_0x1cb040,subType:_0x4ec285})=>_0x73c979['type']==_0x1cb040&&_0x73c979['subType']==_0x4ec285);if(_0x144b65<0x0||_0x614823<0x0)return!0x1;const _0xc2e0e6=_0x202ea3['getFirstRange'](),_0x52927a=_0x73c979['getFirstRange']();if((0x0==_0x144b65||0x1==_0x144b65)&&0x2==_0x614823&&_0xc2e0e6['isIntersecting'](_0x52927a))return!0x0;if(0x2==_0x144b65&&0x3==_0x614823){const _0x535b2d=_0x83442c['_findSuggestions'](_0xc2e0e6,'insertion')['filter'](({suggestion:_0x224e21,meta:_0x4f61de})=>_0x4f61de['isOwn']&&'convertInlineImageToBlock'==_0x224e21['subType']);if(_0x535b2d['length']>0x1&&_0x52927a['end']['isEqual'](_0xc2e0e6['start']))return!0x0;if(0x1==_0x535b2d['length']&&(_0xc2e0e6['start']['isEqual'](_0x52927a['end'])||_0xc2e0e6['end']['isEqual'](_0x52927a['start'])))return!0x0;}if(0x3==_0x144b65&&0x3==_0x614823&&_0xc2e0e6['start']['isBefore'](_0x52927a['start'])){const _0x1fd903=_0xc2e0e6['end']['nodeAfter'],_0xc3376c=_0x52927a['start']['nodeBefore'];return _0x9b64f4['isBlockImage'](_0x1fd903)&&_0x1fd903===_0xc3376c;}return!0x1;}_0x1acc6f['model']['document']['registerPostFixer'](()=>{let _0x60c800=!0x1;const _0x5461af=Array['from'](_0x1acc6f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x44130c,data:_0x43ca26}of _0x5461af){const {group:_0x5dfd4d,type:_0xbbe80f,subType:_0x5597e5,id:_0xda1264}=_0x83442c['_splitMarkerName'](_0x44130c);if('suggestion'==_0x5dfd4d&&_0x83442c['hasSuggestion'](_0xda1264)){if('formatBlock'==_0xbbe80f&&('imageStylePreApply'==_0x5597e5||'imageStylePostApply'==_0x5597e5)){const _0x417a5b=_0x83442c['getSuggestion'](_0xda1264);if(_0x43ca26['newRange']){const _0x4252d0=_0x417a5b['getFirstRange']()['getContainedElement']();if(_0x9b64f4['isBlockImage'](_0x4252d0))continue;_0x83442c['discardSuggestion'](_0x417a5b),_0x60c800=!0x0;}}if('insertion'==_0xbbe80f&&'imageCaption'==_0x5597e5&&!_0x43ca26['newRange']){const _0x2f9467=_0x83442c['getSuggestion'](_0xda1264);_0x2f9467['next']&&_0x2f9467['next']['isInContent']&&(_0x83442c['discardSuggestion'](_0x2f9467['next']),_0x60c800=!0x0);}}}return _0x60c800;}),this['_registerLegacyDescription'](_0xa4a0b);}['_registerLegacyDescription'](_0x4ddf70){const _0x3985f5=this['editor'],_0x4dfda9=_0x3985f5['locale'];_0x3985f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c299d=>{if('formatBlock'!=_0x1c299d['type']&&'formatInline'!=_0x1c299d['type'])return;const {data:_0x1843cb}=_0x1c299d;if(!_0x1843cb||'imageStyle'!=_0x1843cb['commandName'])return;const _0x20fe09=_0x1843cb['commandParams'][0x0]['value'];return _0x14f17e('side'===_0x20fe09?o(_0x4dfda9,'FORMAT_SIDE_IMAGE'):_0x4ddf70[_0x20fe09]||_0x20fe09);function _0x14f17e(_0x4b6e2e){return{'type':'format','content':o(_0x4dfda9,'*Format:*\x20%0',_0x4b6e2e)};}});}}class lt extends _0x561601{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x16332c){super(_0x16332c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x11baaf=this['editor'],_0x4d8cbe=_0x11baaf['commands']['get']('importWord'),_0x2634ff=_0x11baaf['commands']['get']('trackChanges');_0x4d8cbe&&(_0x4d8cbe['on']('execute',(_0x5730ae,[,_0x19bdd7])=>{this['_trackChangesValueDuringImport']=_0x2634ff['value'],_0x19bdd7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4d8cbe,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4d8cbe,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2634ff['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x11baaf['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x286354,_0x3ea76d){const {suggestions:_0x5d3151}=_0x3ea76d,_0x2397f8=this['editor']['commands']['get']('trackChanges'),_0x2637ec=_0x2397f8['value'];this['_trackChangesValueDuringImport']!==_0x2637ec&&(_0x2397f8['execute'](),this['_trackChangesExecuted']=!0x0),_0x5d3151&&_0x5d3151['forEach'](({id:_0x26baaa,type:_0x26fe84,author:_0x34df23,created_at:_0x3adb8c})=>{const _0x12c6ff={'id':_0x26baaa,'type':_0x26fe84,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x34df23,'createdAt':_0x3adb8c?new Date(_0x3adb8c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x12c6ff);});}}class gt extends _0x561601{['afterInit'](){const _0x4a8ffa=this['editor'],_0x462dc8=_0x4a8ffa['plugins']['get']('TrackChangesEditing');if(_0x4a8ffa['plugins']['has']('IndentEditing')&&(_0x462dc8['enableCommand']('indent'),_0x462dc8['enableCommand']('outdent')),_0x4a8ffa['plugins']['has']('IndentBlock')){for(const _0x2f2848 of['indentBlock','outdentBlock'])_0x462dc8['enableDefaultAttributesIntegration'](_0x2f2848);if(_0x4a8ffa['plugins']['has']('ListEditing')){for(const _0x345f10 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x462dc8['enableDefaultAttributesIntegration'](_0x345f10);}}const _0x7243e0=_0x4a8ffa['locale'];_0x462dc8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x7243e0,'FORMAT_INDENT')),_0x462dc8['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x7243e0,'FORMAT_INDENT')),_0x462dc8['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x7243e0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x271fad=this['editor'],_0xc4d2ed=_0x271fad['locale'],_0x3cb703=_0x271fad['plugins']['get']('TrackChangesEditing');_0x3cb703['descriptionFactory']['registerDescriptionCallback'](_0x3730ed=>{if('formatBlock'!=_0x3730ed['type'])return;const {data:_0x52abea}=_0x3730ed;if(!_0x52abea)return;if('indentBlock'!=_0x52abea['commandName']&&'outdentBlock'!=_0x52abea['commandName'])return;const _0x3c6730=_0x3730ed['getItems']()[0x0],_0x3f032a=_0x3cb703['descriptionFactory']['getItemLabel'](_0x3c6730);return'indentBlock'==_0x52abea['commandName']?{'type':'format','content':o(_0xc4d2ed,'*Indent:*\x20%0',_0x3f032a)}:'outdentBlock'==_0x52abea['commandName']?{'type':'format','content':o(_0xc4d2ed,'*Outdent:*\x20%0',_0x3f032a)}:void 0x0;});}}class mt extends _0x561601{static get['requires'](){return[_0xd2b34b];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x561601{['afterInit'](){const _0xb04f25=this['editor'];if(!_0xb04f25['plugins']['has']('LinkEditing'))return;const _0x418018=_0xb04f25['plugins']['get']('TrackChangesEditing'),_0x41b237=_0xb04f25['commands']['get']('link');_0x418018['enableDefaultAttributesIntegration']('link'),_0x418018['enableDefaultAttributesIntegration']('unlink');for(const _0xa341f8 of _0x41b237['manualDecorators'])_0x418018['descriptionFactory']['registerAttributeLabel'](_0xa341f8['id'],'link\x20('+_0xa341f8['label']['toLowerCase']()+')');_0x418018['descriptionFactory']['registerDescriptionCallback'](_0x52bf44=>{if('attribute'!=_0x52bf44['type'])return;const {data:_0x3cad33}=_0x52bf44;if(!_0x3cad33||'linkHref'!=_0x3cad33['key'])return;const _0x1eed89=_0x3cad33['newValue'],_0x1822f7=_0xb04f25['locale'];return{'type':'format','content':null==_0x1eed89?o(_0x1822f7,'*Remove\x20link*'):o(_0x1822f7,'*Set\x20link:*\x20%0','\x22'+_0x1eed89+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b9203=this['editor'],_0x4845b0=_0x5b9203['locale'];_0x5b9203['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21e392=>{if('formatInline'!=_0x21e392['type'])return;const {data:_0x25f2b1}=_0x21e392;if(_0x25f2b1){if('link'==_0x25f2b1['commandName']){const _0x2fa1c8=_0x25f2b1['commandParams'][0x0];return{'type':'format','content':o(_0x4845b0,'*Set\x20link:*\x20%0','\x22'+_0x2fa1c8+'\x22')};}return'unlink'==_0x25f2b1['commandName']?{'type':'format','content':o(_0x4845b0,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x561601{['afterInit'](){const _0xdad855=this['editor'],_0x5c6a56=_0xdad855['locale'];if(!_0xdad855['plugins']['has']('LegacyListEditing'))return;const _0x4441e9=_0xdad855['plugins']['get']('TrackChangesEditing'),_0x27c578=_0xdad855['plugins']['has']('LegacyTodoListEditing');function _0x1f6209(_0x56e4a0){return()=>{const _0xb89ef2=_0xdad855['model']['document']['selection'],_0x23afe0=_0xdad855['commands']['get'](_0x56e4a0);if(_0x23afe0['value'])return void _0xdad855['execute']('paragraph',{});const _0x146ede=_0x56e4a0['slice'](0x0,-0x4),_0x5286c4=function(_0x1d16ba,_0x17c92e,_0x267bdc){let _0x1ffe59=Array['from'](_0x1d16ba)['filter'](_0x5b735b=>function(_0x54741f,_0x5e18a4){return _0x5e18a4['checkChild'](_0x54741f['parent'],'listItem')&&!_0x5e18a4['isObject'](_0x54741f);}(_0x5b735b,_0x267bdc));_0x1ffe59=_0x1ffe59['filter'](_0x22e527=>!_0x22e527['is']('element','listItem')||_0x22e527['getAttribute']('listType')!=_0x17c92e);const _0xf6c15f=new Set();for(const _0x2f4d4d of _0x1ffe59)_0x2f4d4d['is']('element','listItem')?_0xf6c15f['add'](Le(_0x2f4d4d)):_0xf6c15f['add'](_0x2f4d4d);return Array['from'](_0xf6c15f);}(_0xb89ef2['getSelectedBlocks'](),_0x146ede,_0xdad855['model']['schema']);_0xdad855['model']['change'](()=>{for(const _0x5b0e71 of _0x5286c4)_0x4441e9['markBlockFormat'](_0x5b0e71,{'commandName':_0x56e4a0,'commandParams':[{'forceValue':!_0x23afe0['value']}],'formatGroupId':'blockName'},Ee(_0x5b0e71));});};}function _0x4d8307(_0x32bf5f){return()=>{const _0x5a1a6f=function(_0xe8ac8d){let _0xdf46fb=Array['from'](_0xe8ac8d);const _0x9dea04=_0xdf46fb['findIndex'](_0x452998=>'listItem'!=_0x452998['name']);return _0x9dea04>-0x1&&(_0xdf46fb=_0xdf46fb['slice'](0x0,_0x9dea04)),_0xdf46fb;}(_0xdad855['model']['document']['selection']['getSelectedBlocks']()),_0x4142ae=_0xdad855['model']['createRange'](_0xdad855['model']['createPositionAt'](_0x5a1a6f[0x0],'before'),_0xdad855['model']['createPositionAt'](_0x5a1a6f[_0x5a1a6f['length']-0x1],'end'));_0xdad855['model']['change'](()=>{_0x4441e9['markBlockFormat'](_0x4142ae,{'commandName':_0x32bf5f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x35571f){const _0x1fd27a=new Set();for(const _0x11954a of _0x35571f){let _0x3a1801=_0x11954a['nextSibling'];for(;_0x3a1801&&_0x3a1801['getAttribute']('listIndent')>_0x11954a['getAttribute']('listIndent');)_0x1fd27a['add'](_0x3a1801),_0x3a1801=_0x3a1801['nextSibling'];}return Array['from'](_0x1fd27a);}(_0x5a1a6f));});};}_0x4441e9['enableCommand']('numberedList',_0x1f6209('numberedList')),_0x4441e9['enableCommand']('bulletedList',_0x1f6209('bulletedList')),_0x27c578&&_0x4441e9['enableCommand']('todoList',_0x1f6209('todoList')),_0x4441e9['enableCommand']('indentList',_0x4d8307('indentList')),_0x4441e9['enableCommand']('outdentList',_0x4d8307('outdentList')),_0x27c578&&_0x4441e9['enableCommand']('checkTodoList',()=>{const _0x2bb550=_0xdad855['commands']['get']('checkTodoList'),_0x9578f4=Array['from'](_0x2bb550['_selectedElements']);_0x9578f4['filter'](_0x28c6c5=>_0x28c6c5['getAttribute']('todoListChecked')!=_0x2bb550['value']),_0xdad855['model']['change'](()=>{for(const _0x4b827c of _0x9578f4)_0x4441e9['markBlockFormat'](_0x4b827c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2bb550['value']}]});});}),_0x4441e9['descriptionFactory']['registerElementLabel']('listItem',_0x234736=>o(_0x5c6a56,'ELEMENT_LIST_ITEM',_0x234736)),_0x4441e9['descriptionFactory']['registerDescriptionCallback'](_0x224fdb=>{if('formatBlock'!=_0x224fdb['type']&&'formatInline'!=_0x224fdb['type'])return;const {data:_0x2c8baa}=_0x224fdb;if(_0x2c8baa){if('numberedList'==_0x2c8baa['commandName']||'bulletedList'==_0x2c8baa['commandName']||'todoList'==_0x2c8baa['commandName'])switch(_0x2c8baa['commandName']['replace']('List','')){case'bulleted':return _0x3d7540(o(_0x5c6a56,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3d7540(o(_0x5c6a56,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3d7540(o(_0x5c6a56,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2c8baa['commandName'])return{'type':'format','content':o(_0x5c6a56,'*Indent:*\x20%0',o(_0x5c6a56,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2c8baa['commandName'])return{'type':'format','content':o(_0x5c6a56,'*Outdent:*\x20%0',o(_0x5c6a56,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2c8baa['commandName'])return _0x2c8baa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c6a56,'*Check\x20item*')}:{'type':'format','content':o(_0x5c6a56,'*Uncheck\x20item*')};}function _0x3d7540(_0x55523a){return{'type':'format','content':o(_0x5c6a56,'*Change\x20to:*\x20%0',_0x55523a)};}});}}function Le(_0x4096e4){const _0x13e4ae=_0x4096e4['getAttribute']('listIndent');if(0x0==_0x13e4ae)return _0x4096e4;let _0x201e7d=_0x4096e4;for(;_0x4096e4['previousSibling']&&_0x4096e4['previousSibling']['is']('element','listItem');){const _0x59596d=_0x4096e4['previousSibling']['getAttribute']('listIndent');if(_0x59596d==_0x13e4ae)_0x201e7d=_0x4096e4['previousSibling'];else{if(_0x59596d<_0x13e4ae)break;}_0x4096e4=_0x4096e4['previousSibling'];}return _0x201e7d;}function Ee(_0x933eaf){const _0x476b1a=[];if(_0x933eaf['is']('element','listItem')&&_0x933eaf['getAttribute']('listIndent')>0x0){let _0x13c99f=_0x933eaf['nextSibling'];for(;_0x13c99f&&'listItem'==_0x13c99f['name']&&_0x13c99f['getAttribute']('listIndent')==_0x933eaf['getAttribute']('listIndent');)_0x476b1a['push'](_0x13c99f),_0x13c99f=_0x13c99f['nextSibling'];}return _0x476b1a;}class wt extends _0x561601{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x59e0e2=this['editor']['config']['get']('list.properties'),_0x1c0f42=this['editor']['plugins']['get']('TrackChangesEditing');_0x59e0e2['styles']&&_0x1c0f42['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x59e0e2['reversed']&&_0x1c0f42['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x59e0e2['startIndex']&&_0x1c0f42['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1c0f42['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x23f07d,_0x5741fb={}){const _0x4e9ba8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x512f40=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4e9ba8['markMultiRangeBlockFormat'](_0x512f40,{'commandName':'listStyle','commandParams':[{'type':_0x5741fb['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4e12b8,_0xde2864={}){const _0x2d6e9f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2345bc=this['_getSuggestionBlocks'](_0x48cca3=>_0x48cca3['is']('element','listItem')&&'numbered'===_0x48cca3['getAttribute']('listType'));if(_0x2345bc['length']<0x1)return;const _0x4c0ede=_0x2345bc['map'](_0x1bd270=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1bd270,'before'),this['editor']['model']['createPositionAt'](_0x1bd270,0x0)));this['editor']['model']['change'](()=>{_0x2d6e9f['markMultiRangeBlockFormat'](_0x4c0ede,{'commandName':'listReversed','commandParams':[{'reversed':_0xde2864['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3e590e,_0x350059={}){const _0x57c116=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cdcb1=this['_getSuggestionBlocks'](_0xfd7302=>_0xfd7302['is']('element','listItem')&&'numbered'===_0xfd7302['getAttribute']('listType'));if(_0x4cdcb1['length']<0x1)return;const _0x22dc77=_0x4cdcb1['map'](_0x104cdd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x104cdd,'before'),this['editor']['model']['createPositionAt'](_0x104cdd,0x0)));this['editor']['model']['change'](()=>{_0x57c116['markMultiRangeBlockFormat'](_0x22dc77,{'commandName':'listStart','commandParams':[{'startIndex':_0x350059['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x243004){if('formatBlock'!=_0x243004['type']&&'formatInline'!=_0x243004['type'])return;const _0x1a0158=this['editor']['locale'],{data:_0x14ba5c}=_0x243004;if(!_0x14ba5c)return;let _0x26bef8,_0x110e13;switch(_0x14ba5c['commandName']){case'listStyle':_0x26bef8='*Change\x20to:*\x20%0',_0x110e13={'type':'format','content':o(_0x1a0158,_0x26bef8,o(_0x1a0158,this['_getTranslationKeyForListStyle'](_0x14ba5c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x26bef8=_0x14ba5c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x110e13={'type':'format','content':o(_0x1a0158,_0x26bef8)};break;case'listStart':_0x26bef8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x110e13={'type':'format','content':o(_0x1a0158,_0x26bef8,_0x14ba5c['commandParams'][0x0]['startIndex'])};}return _0x110e13;}['_getSuggestionBlocksForListStyle'](){const _0x2d44a8=this['editor']['plugins']['get']('LegacyListUtils');let _0x207999=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x207999[0x0]?.['is']('element','listItem')&&_0x207999['unshift'](..._0x2d44a8['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x207999[_0x207999['length']-0x1]?.['is']('element','listItem')&&_0x207999['push'](..._0x2d44a8['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x207999=[...new Set(_0x207999)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x207999=_0x207999['filter'](_0x4008f8=>_0x4008f8['is']('element','listItem'))),_0x207999;}['_getSuggestionBlocks'](_0x27538f){const _0x4c7afd=this['editor']['plugins']['get']('LegacyListUtils');let _0x5634f3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x27538f)['map'](_0x4054ab=>{const _0x2c5503=this['editor']['model']['createPositionAt'](_0x4054ab,0x0);return[..._0x4c7afd['getSiblingNodes'](_0x2c5503,'backward'),..._0x4c7afd['getSiblingNodes'](_0x2c5503,'forward')];})['flat']();return _0x5634f3=[...new Set(_0x5634f3)],_0x5634f3;}['_getTranslationKeyForListStyle'](_0xf76155){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xf76155)||'default')['toUpperCase']()+'_LIST_'+_0xf76155['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x561601{['afterInit'](){const _0x5f44e1=this['editor'];if(!_0x5f44e1['plugins']['has']('MediaEmbedEditing'))return;const _0x38c570=_0x5f44e1['plugins']['get']('TrackChangesEditing'),_0x2df9b4=_0x5f44e1['locale'];_0x38c570['enableCommand']('mediaEmbed'),_0x38c570['descriptionFactory']['registerElementLabel']('media',_0x2d73a2=>o(_0x2df9b4,'ELEMENT_MEDIA',_0x2d73a2));}}class bt extends _0x561601{['afterInit'](){const _0x11c08b=this['editor'];_0x11c08b['plugins']['has']('MentionEditing')&&_0x11c08b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x561601{['afterInit'](){const _0xe3ed8c=this['editor'];if(!_0xe3ed8c['plugins']['has']('MergeFieldsEditing'))return;const _0x3f7bb9=_0xe3ed8c['plugins']['get']('TrackChangesEditing'),_0x4fe27b=_0xe3ed8c['locale'];_0x3f7bb9['enableCommand']('insertMergeField'),_0x3f7bb9['enableCommand']('insertMergeFieldBlock'),_0x3f7bb9['enableCommand']('insertMergeFieldImage'),_0x3f7bb9['descriptionFactory']['registerElementLabel']('mergeField',_0x6ef9d3=>o(_0x4fe27b,'ELEMENT_MERGE_FIELD',_0x6ef9d3)),_0x3f7bb9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x32de2a=>o(_0x4fe27b,'ELEMENT_MERGE_FIELD',_0x32de2a)),_0x3f7bb9['descriptionFactory']['registerDescriptionCallback'](_0x5bb88f=>{if('insertion'!=_0x5bb88f['type']&&'deletion'!=_0x5bb88f['type'])return;const _0x59cd76=_0x5bb88f['getContainedElement']();if(null==_0x59cd76)return;const _0x269747=_0xe3ed8c['plugins']['get']('MergeFieldsEditing');let _0x15c1fb;switch(_0x269747['getMergeFieldType'](_0x59cd76)){case null:return;case'image':{const _0x4acc9d=_0x269747['unwrapAffixes'](_0x59cd76['getAttribute']('src'));_0x15c1fb=_0x269747['getLabel'](_0x4acc9d)||_0x4acc9d;break;}default:{const _0x508e2b=_0x59cd76['getAttribute']('id');_0x15c1fb=_0x269747['getLabel'](_0x508e2b)||_0x508e2b;break;}}return'insertion'==_0x5bb88f['type']?{'type':'insertion','content':o(_0x4fe27b,'*Insert:*\x20%0','\x22'+_0x15c1fb+'\x22\x20'+o(_0x4fe27b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4fe27b,'*Remove:*\x20%0','\x22'+_0x15c1fb+'\x22\x20'+o(_0x4fe27b,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x561601{['afterInit'](){const _0x417226=this['editor'],_0x2c0e68=_0x417226['plugins']['get']('TrackChangesEditing');_0x417226['plugins']['has']('MultiLevelList')&&(_0x2c0e68['enableDefaultAttributesIntegration']('multiLevelList'),_0x2c0e68['descriptionFactory']['registerDescriptionCallback'](_0x9fe6e7=>this['handleDescriptions'](_0x9fe6e7)));}['handleDescriptions'](_0x513510){const _0x32211f=this['editor']['locale'],{data:_0x4d9c9b}=_0x513510,_0x582949={'type':'format','content':''};if(_0x4d9c9b&&'listMarkerStyle'==_0x4d9c9b['key']){if(!_0x4d9c9b['oldValue'])return{'type':'format','content':o(_0x32211f,'*Set\x20format:*\x20%0',o(_0x32211f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4d9c9b['newValue']+')'};if(!_0x4d9c9b['newValue']){let _0x10b55f=_0x513510['head'];for(;_0x10b55f;){if(_0x10b55f['data']&&'listType'==_0x10b55f['data']['key']&&_0x10b55f['data']['newValue'])return _0x582949;_0x10b55f=_0x10b55f['next'];}return{'type':'format','content':o(_0x32211f,'*Remove\x20format:*\x20%0',o(_0x32211f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4d9c9b['oldValue']+')'};}}}}class St extends _0x561601{['afterInit'](){const _0x22b6d4=this['editor'];if(!_0x22b6d4['plugins']['has']('PageBreakEditing'))return;_0x22b6d4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x138c9d=_0x22b6d4['plugins']['get']('TrackChangesEditing'),_0xa7bc4c=_0x22b6d4['locale'];_0x138c9d['descriptionFactory']['registerElementLabel']('pageBreak',_0x29b8e3=>o(_0xa7bc4c,'ELEMENT_PAGE_BREAK',_0x29b8e3));}}class It extends _0x561601{['afterInit'](){const _0x2548e5=this['editor'];if(!_0x2548e5['plugins']['has']('Paragraph'))return;const _0x38ab88=_0x2548e5['locale'],_0x2f0f22=_0x2548e5['plugins']['get']('TrackChangesEditing');_0x2f0f22['descriptionFactory']['registerElementLabel']('paragraph',_0x50964e=>o(_0x38ab88,'ELEMENT_PARAGRAPH',_0x50964e)),_0x2f0f22['enableDefaultAttributesIntegration']('paragraph'),_0x2f0f22['enableCommand']('insertParagraph');const _0x446bdb=_0x2f0f22['descriptionFactory'];_0x446bdb['registerDescriptionCallback'](_0x4f78cd=>{if('insertion'!==_0x4f78cd['type'])return;const {start:_0x234b6f,end:_0x755f83}=_0x4f78cd['getFirstRange']();if(!_0x234b6f['isTouching'](_0x755f83)||!_0x234b6f['nodeAfter'])return;const _0x4a2720=_0x2548e5['model']['schema'],_0x1b3d07=_0x234b6f['nodeAfter'];return _0x4a2720['isBlock'](_0x1b3d07)&&!_0x4a2720['isLimit'](_0x1b3d07)&&_0x4a2720['checkChild'](_0x1b3d07,'$text')?{'type':'insertion','content':o(_0x38ab88,'*Insert:*\x20%0',_0x446bdb['getItemLabel'](_0x1b3d07,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d2b91=this['editor'],_0xe7301f=_0x3d2b91['locale'];_0x3d2b91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x455488=>{if('formatBlock'!=_0x455488['type'])return;const {data:_0x1606ee}=_0x455488;return _0x1606ee&&'paragraph'==_0x1606ee['commandName']?{'type':'format','content':o(_0xe7301f,'*Change\x20to:*\x20%0',o(_0xe7301f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x561601{['afterInit'](){const _0x281c4a=this['editor'];_0x281c4a['commands']['get']('replaceSource')&&_0x281c4a['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x561601{['afterInit'](){const _0x1afbf0=this['editor'];if(!_0x1afbf0['plugins']['has']('RemoveFormatEditing'))return;_0x1afbf0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x240ffd=this['editor'];_0x240ffd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c816d=>{if('formatBlock'!=_0x3c816d['type']&&'formatInline'!=_0x3c816d['type'])return;const {data:_0x2a17df}=_0x3c816d;return _0x2a17df&&'removeFormat'==_0x2a17df['commandName']?{'type':'format','content':o(_0x240ffd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x561601{['afterInit'](){const _0x1127b2=this['editor'];if(!_0x1127b2['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3124c3=_0x1127b2['plugins']['get']('TrackChangesEditing');_0x3124c3['enableCommand']('goToPreviousRestrictedEditingException'),_0x3124c3['enableCommand']('goToNextRestrictedEditingException');const _0x58d9d4=_0x1127b2['plugins']['get']('RestrictedEditingModeEditing');_0x58d9d4['enableCommand']('trackChanges'),_0x58d9d4['enableCommand']('acceptSuggestion'),_0x58d9d4['enableCommand']('discardSuggestion'),_0x58d9d4['enableCommand']('acceptAllSuggestions'),_0x58d9d4['enableCommand']('discardAllSuggestions'),_0x58d9d4['enableCommand']('acceptSelectedSuggestions'),_0x58d9d4['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x561601{['afterInit'](){const _0x5c710d=this['editor'];if(!_0x5c710d['plugins']['has']('ShiftEnter'))return;const _0x54c49c=_0x5c710d['plugins']['get']('TrackChangesEditing');_0x54c49c['enableCommand']('shiftEnter'),_0x54c49c['descriptionFactory']['registerElementLabel']('softBreak',_0x1c33f5=>o(_0x5c710d['locale'],'ELEMENT_LINE_BREAK',_0x1c33f5));}}function an(_0x4b47be,_0x80c944,_0x412fa9){const _0xb90f1e=[];for(const _0x21ca90 of _0x80c944['getItems']())_0x21ca90['hasAttribute'](_0x4b47be)&&_0xb90f1e['push'](_0x412fa9['createRangeOn'](_0x21ca90));return _0xb90f1e;}class $t extends _0x561601{['afterInit'](){const _0x2d60cc=this['editor'],_0x2223c0=_0x2d60cc['plugins']['get']('TrackChangesEditing');_0x2d60cc['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x2223c0['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x1af0b7=this['editor'],_0x12eaa3=_0x1af0b7['model'],_0x4eedc3=_0x1af0b7['locale'],_0x177551=_0x1af0b7['plugins']['get']('TrackChangesEditing'),_0x4b1594='restrictedEditingException',_0x583495=_0x1af0b7['commands']['get'](_0x4b1594);_0x177551['enableCommand'](_0x4b1594,(_0x22c28c,_0x538714={})=>{const _0x573509=_0x12eaa3['document']['selection'];if(_0x573509['isCollapsed'])return void _0x22c28c(_0x538714);const _0x5a6b8a=void 0x0!==_0x538714['forceValue']?_0x538714['forceValue']:!_0x583495['value'];_0x12eaa3['change'](()=>{const _0x22f5d7=Array['from'](_0x573509['getRanges']());for(const _0x17e511 of _0x22f5d7){const _0x552953=_0x5a6b8a?[_0x17e511]:an(_0x4b1594,_0x17e511,_0x12eaa3);for(const _0x507acc of _0x552953)_0x177551['markInlineFormat'](_0x507acc,{'commandName':_0x4b1594,'commandParams':[{'forceValue':_0x5a6b8a}]});}});}),_0x177551['descriptionFactory']['registerDescriptionCallback'](_0x195c0b=>{if('formatBlock'!=_0x195c0b['type']&&'formatInline'!=_0x195c0b['type'])return;const {data:_0x5c74dd}=_0x195c0b;return _0x5c74dd&&_0x5c74dd['commandName']==_0x4b1594?_0x5c74dd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4eedc3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4eedc3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x22add8=this['editor'],_0x4fefdf=_0x22add8['locale'],_0x375fff=_0x22add8['plugins']['get']('TrackChangesEditing'),_0xc5ba08='restrictedEditingExceptionBlock',_0x2de5c8=this['editor']['commands']['get'](_0xc5ba08);_0x375fff['enableCommand'](_0xc5ba08,(_0x81cd26,_0x2f79ce={})=>{const _0x470cec=this['editor']['model']['document']['selection'],_0x55f718=_0x2f79ce&&void 0x0!==_0x2f79ce['forceValue']?_0x2f79ce['forceValue']:!_0x2de5c8['value'];let _0x8ab05e=[];if(_0x55f718){const _0x20a9b6=Array['from'](_0x470cec['getSelectedBlocks']())['filter'](_0x133166=>function(_0x7ce0dc){return!!_0x7ce0dc['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x133166)||function(_0x2d4d5b,_0x13517b){const _0x377201=_0x13517b['createContext'](_0x2d4d5b['parent']);if(!_0x13517b['checkChild'](_0x377201,'restrictedEditingException'))return!0x1;if(!_0x13517b['checkChild'](_0x377201['push']('restrictedEditingException'),_0x2d4d5b))return!0x1;return!0x0;}(_0x133166,this['editor']['model']['schema']));_0x8ab05e=to(_0x20a9b6,_0x22add8['model']);}else{const _0x31d161=Array['from'](_0x470cec['getSelectedBlocks']())['map'](_0xf992ea=>function(_0x5c2a09){let _0x1b0712=_0x5c2a09;for(;_0x1b0712['parent'];){if('restrictedEditingException'==_0x1b0712['parent']['name'])return _0x1b0712;_0x1b0712=_0x1b0712['parent'];}return null;}(_0xf992ea))['filter'](_0x1f475e=>!!_0x1f475e);_0x8ab05e=to(_0x31d161,_0x22add8['model']);}_0x22add8['model']['change'](()=>{for(const _0x23c1cc of _0x8ab05e)_0x375fff['markBlockFormat'](_0x23c1cc,{'commandName':_0xc5ba08,'commandParams':[{'forceValue':_0x55f718}]});});}),_0x375fff['descriptionFactory']['registerDescriptionCallback'](_0xbb769c=>{const {data:_0x40ee77}=_0xbb769c;if(_0x40ee77&&_0x40ee77['commandName']==_0xc5ba08)return _0x40ee77['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fefdf,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4fefdf,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x561601{['afterInit'](){const _0x5b6bd5=this['editor'];if(!_0x5b6bd5['plugins']['has']('Style')||!_0x5b6bd5['plugins']['has']('DataSchema'))return;const _0x5344ea=_0x5b6bd5['plugins']['get']('TrackChangesEditing'),_0x557fb8=_0x5b6bd5['locale'],_0x107f0c=_0x5b6bd5['config']['get']('style')||{},_0x517c51=_0x5b6bd5['plugins']['get']('GeneralHtmlSupport'),_0x47e689=_0x5b6bd5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5b6bd5['plugins']['get']('DataSchema'),_0x107f0c['definitions']);_0x5344ea['enableDefaultAttributesIntegration']('style');const _0x4096b9=new Set();for(const _0x101ef2 of _0x47e689['block']){const _0x151948=_0x517c51['getGhsAttributeNameForElement'](_0x101ef2['element']);_0x4096b9['add'](_0x151948);}const _0x20e403=new Set();for(const _0x375c67 of _0x47e689['inline']){const _0x6b2afd=_0x517c51['getGhsAttributeNameForElement'](_0x375c67['element']);_0x20e403['add'](_0x6b2afd);for(const _0x4c7422 of _0x375c67['ghsAttributes'])_0x20e403['add'](_0x4c7422);}for(const _0x33c26c of _0x4096b9)_0x5344ea['descriptionFactory']['registerAttributeLabel'](_0x33c26c,o(_0x557fb8,'FORMAT_STYLE'));for(const _0x457e6b of _0x20e403)_0x5344ea['descriptionFactory']['registerAttributeLabel'](_0x457e6b,o(_0x557fb8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa734f4=this['editor'],_0x8e837a=_0xa734f4['locale'];_0xa734f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e39ee=>{if('formatBlock'!=_0x1e39ee['type']&&'formatInline'!=_0x1e39ee['type'])return;const {data:_0x3924b8}=_0x1e39ee;return _0x3924b8&&'style'===_0x3924b8['commandName']?_0x3924b8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x8e837a,'*Set\x20format:*\x20%0',_0x3924b8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x8e837a,'*Remove\x20format:*\x20%0',_0x3924b8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x561601{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3f68ba){super(_0x3f68ba),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x117f6d=this['editor'],_0x6b416b=_0x117f6d['model']['document']['selection'];if(!_0x117f6d['plugins']['has']('TableEditing'))return;const _0x442143=_0x117f6d['locale'],_0x11ce50=_0x117f6d['plugins']['get']('TrackChangesEditing'),_0x31e276=_0x117f6d['plugins']['get']('TableUtils');_0x11ce50['descriptionFactory']['registerElementLabel']('table',_0x2aaa90=>o(_0x442143,'ELEMENT_TABLE',_0x2aaa90)),this['_setupColumnsRowsFixing'](),_0x11ce50['enableCommand']('insertTable'),_0x11ce50['enableCommand']('selectTableRow'),_0x11ce50['enableCommand']('selectTableColumn');for(const _0x4c43eb of['insertTableRowAbove','insertTableRowBelow']){const _0x581c1b=_0x117f6d['commands']['get'](_0x4c43eb);_0x11ce50['enableCommand'](_0x4c43eb,_0x3c36a3=>{_0x117f6d['model']['change'](_0x205dbe=>{_0x3c36a3();const _0x3a845b='above'===_0x581c1b['order'],_0x58b5d2=_0x31e276['getSelectionAffectedTableCells'](_0x6b416b),_0x139bfc=_0x31e276['getRowIndexes'](_0x58b5d2),_0x201279=_0x3a845b?_0x139bfc['first']-0x1:_0x139bfc['last']+0x1,_0x491632=_0x58b5d2[0x0]['findAncestor']('table'),_0x18d78b=_0x31e276['createTableWalker'](_0x491632,{'startRow':_0x201279,'endRow':_0x201279}),_0x41450a=Array['from'](_0x18d78b)['map'](_0x4f0e8a=>_0x205dbe['createRangeOn'](_0x4f0e8a['cell']));_0x11ce50['markMultiRangeInsertion'](_0x41450a,'tableRow');});});}for(const _0x330896 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4037d6=_0x117f6d['commands']['get'](_0x330896);_0x11ce50['enableCommand'](_0x330896,_0x266184=>{_0x117f6d['model']['change'](_0x3e1da7=>{_0x266184();const _0x1f68a1='left'===_0x4037d6['order'],_0x2cd66c=_0x31e276['getSelectionAffectedTableCells'](_0x6b416b),_0xff4e35=_0x31e276['getColumnIndexes'](_0x2cd66c),_0xb9ad95=_0x1f68a1?_0xff4e35['first']-0x1:_0xff4e35['last']+0x1,_0x13b3e9=_0x2cd66c[0x0]['findAncestor']('table'),_0x4c04f6=_0x31e276['createTableWalker'](_0x13b3e9,{'startRow':0x0,'column':_0xb9ad95,'includeAllSlots':!0x1}),_0x9b0484=Array['from'](_0x4c04f6)['map'](_0xc013d5=>_0x3e1da7['createRangeOn'](_0xc013d5['cell']));_0x11ce50['markMultiRangeInsertion'](_0x9b0484,'tableColumn');});});}for(const _0x1ca2a6 of['removeTableRow','removeTableColumn']){const _0x5d7bb8=_0x1ca2a6['substr'](0xb),_0x52e048=_0x5d7bb8['toLowerCase'](),_0x6a64ce=_0x52e048['substr'](0x0,0x3)+'span',_0x35c764='table'+_0x5d7bb8,_0x2dcd71='min'+_0x5d7bb8,_0x3309a2='max'+_0x5d7bb8;_0x11ce50['enableCommand'](_0x1ca2a6,()=>{_0x117f6d['model']['change'](_0x5268cf=>{const _0x39da52=_0x31e276['getSelectionAffectedTableCells'](_0x6b416b),_0x3039a9=_0x39da52[0x0]['findAncestor']('table');let _0x117194;if('removeTableRow'==_0x1ca2a6){const _0x130e2f=_0x31e276['getRowIndexes'](_0x39da52);_0x117194={'startRow':_0x130e2f['first'],'endRow':_0x130e2f['last'],'includeAllSlots':!0x0};}else{const _0x533b6d=_0x31e276['getColumnIndexes'](_0x39da52);_0x117194={'startColumn':_0x533b6d['first'],'endColumn':_0x533b6d['last'],'includeAllSlots':!0x0};}const _0x3d77cf=_0x31e276['createTableWalker'](_0x3039a9,_0x117194),_0x25bb34=Array['from'](_0x3d77cf)['map'](({cell:_0x166ef5})=>_0x166ef5),_0x2120e4=_e(_0x25bb34['filter'](_0x5b0204=>_0x5b0204['hasAttribute'](_0x6a64ce))),_0x1b7fe8=_e(_0x25bb34['filter'](_0x2068c3=>!_0x2068c3['hasAttribute'](_0x6a64ce)))['map'](_0x9be148=>_0x5268cf['createRangeOn'](_0x9be148)),_0x17a0f7=_0x11ce50['markMultiRangeDeletion'](_0x1b7fe8,_0x35c764);if(_0x17a0f7&&('tableRow'==_0x17a0f7['subType']||'tableColumn'==_0x17a0f7['subType'])){const _0x17d226=this['_getSuggestionCoords'](_0x17a0f7);for(const _0x34941f of _0x2120e4){const _0x3caa11=_0x5268cf['createRangeOn'](_0x34941f),_0x338ceb=_0x31e276['getCellLocation'](_0x34941f),_0xbd0012=_0x34941f['getAttribute'](_0x6a64ce)-0x1,_0x368057=_0x17d226[_0x2dcd71],_0x204fcc=_0x17d226[_0x3309a2];_0x368057<=_0x338ceb[_0x52e048]&&_0x338ceb[_0x52e048]+_0xbd0012<=_0x204fcc&&_0x17a0f7['addRange'](_0x3caa11);}}});});}function _0x4b379a(_0x52b840){const _0x3bf5e3=Array['from'](_0x6b416b['getRanges']())['map'](_0x299d9a=>_0x1c8214['fromRange'](_0x299d9a));_0x117f6d['model']['change'](_0x19d0fb=>{const _0x5356a8=_0x19d0fb['batch'];_0x52b840=_0x52b840['filter'](_0x3865dc=>'$graveyard'!=_0x3865dc['root']['rootName']),_0x19d0fb['setSelection'](_0x52b840),_0x117f6d['commands']['get']('removeTableRow')['refresh'](),_0x117f6d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x117f6d['model']['enqueueChange'](()=>{_0x117f6d['model']['enqueueChange'](_0x5356a8,_0x268450=>{const _0x288cdc=_0x3bf5e3['filter'](_0x119c14=>'$graveyard'!=_0x119c14['root']['rootName']);_0x288cdc['length']>0x0&&_0x268450['setSelection'](_0x288cdc);for(const _0x119380 of _0x3bf5e3)_0x119380['detach']();});});});}function _0x5b654c(_0x1effa2){_0x117f6d['model']['change'](_0x64dcf=>{const _0x564056=Array['from'](_0x6b416b['getRanges']())['map'](_0x3db98a=>_0x1c8214['fromRange'](_0x3db98a)),_0x3b227d=[];for(const _0x5f518d of _0x1effa2)for(const _0x461f30 of _0x5f518d['getItems']({'shallow':!0x0}))_0x3b227d['push'](_0x461f30);for(const _0xedde5a of _0x3b227d)'$graveyard'!=_0xedde5a['root']['rootName']&&(_0x64dcf['setSelection'](_0x64dcf['createPositionAt'](_0xedde5a,0x0)),_0x117f6d['commands']['get']('removeTableColumn')['refresh'](),_0x117f6d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4c2d1f=_0x564056['filter'](_0xbd72f1=>'$graveyard'!=_0xbd72f1['root']['rootName']);_0x4c2d1f['length']>0x0&&_0x64dcf['setSelection'](_0x4c2d1f);for(const _0x4d7abe of _0x564056)_0x4d7abe['detach']();});}function _0x3e2e73(_0xa95603,_0x619495){return _0x619495['every'](_0x6559de=>_0xa95603['some'](_0x547a3d=>_0x547a3d['end']['isEqual'](_0x6559de['start'])||_0x6559de['end']['isEqual'](_0x547a3d['start'])));}function _0x5ee075(_0x41cec2,_0x115f4c){return!_0x41cec2['some'](_0x503d48=>_0x115f4c['some'](_0x5d57c3=>_0x503d48['isIntersecting'](_0x5d57c3)))&&_0x41cec2['some'](_0x3d2769=>_0x115f4c['some'](_0x5b5654=>_0x3d2769['end']['isTouching'](_0x5b5654['start'])));}_0x11ce50['descriptionFactory']['registerDescriptionCallback'](_0x234d15=>{if('insertion'!=_0x234d15['type']&&'deletion'!=_0x234d15['type'])return;const _0x199221=_0x234d15['getContainedElement']();if(null!=_0x199221&&_0x199221['is']('element','table')){if('insertion'==_0x234d15['type']){const _0x47893b=_0x234d15['getItems']()['filter'](_0x1cf113=>_0x1cf113['is']('$textProxy'))['map'](_0x5d7d8b=>_0x5d7d8b['data']);if(_0x47893b['length'])return{'type':'insertion','content':o(_0x442143,'*Insert:*\x20%0',o(_0x442143,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x47893b['join']('\x20')+'\x22'))};}if('deletion'==_0x234d15['type']){const _0x311185=_0x234d15['getItems']()['filter'](_0x51f196=>_0x51f196['is']('$textProxy'))['map'](_0x49336e=>_0x49336e['data']);if(_0x311185['length'])return{'type':'deletion','content':o(_0x442143,'*Remove:*\x20%0',o(_0x442143,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x311185['join']('\x20')+'\x22'))};}}}),_0x11ce50['descriptionFactory']['registerDescriptionCallback'](_0x5e497c=>{if('tableRow'==_0x5e497c['subType']){const _0x1687fb=_0x5e497c['getItems']()['filter'](_0xf0357b=>_0xf0357b['is']('$textProxy'))['map'](_0x2af7f7=>_0x2af7f7['data']),_0x443453=this['_getSuggestionCoords'](_0x5e497c),_0x32c18f=_0x443453['maxRow']-_0x443453['minRow']+0x1;if('insertion'==_0x5e497c['type'])return _0x1687fb['length']?{'type':'insertion','content':o(_0x442143,'*Insert:*\x20%0',o(_0x442143,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x32c18f,'\x22'+_0x1687fb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x442143,'*Insert:*\x20%0',o(_0x442143,'ELEMENT_TABLE_ROW',_0x32c18f))};if('deletion'==_0x5e497c['type'])return _0x1687fb['length']?{'type':'deletion','content':o(_0x442143,'*Remove:*\x20%0',o(_0x442143,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x32c18f,'\x22'+_0x1687fb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x442143,'*Remove:*\x20%0',o(_0x442143,'ELEMENT_TABLE_ROW',_0x32c18f))};}if('tableColumn'==_0x5e497c['subType']){const _0x533805=_0x5e497c['getItems']()['filter'](_0x580fe8=>_0x580fe8['is']('$textProxy'))['map'](_0x385c3f=>_0x385c3f['data']),_0x29ea77=this['_getSuggestionCoords'](_0x5e497c),_0x1d0d21=_0x29ea77['maxColumn']-_0x29ea77['minColumn']+0x1;if('insertion'==_0x5e497c['type'])return _0x533805['length']?{'type':'insertion','content':o(_0x442143,'*Insert:*\x20%0',o(_0x442143,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1d0d21,'\x22'+_0x533805['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x442143,'*Insert:*\x20%0',o(_0x442143,'ELEMENT_TABLE_COLUMN',_0x1d0d21))};if('deletion'==_0x5e497c['type'])return _0x533805['length']?{'type':'deletion','content':o(_0x442143,'*Remove:*\x20%0',o(_0x442143,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1d0d21,'\x22'+_0x533805['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x442143,'*Remove:*\x20%0',o(_0x442143,'ELEMENT_TABLE_COLUMN',_0x1d0d21))};}}),_0x11ce50['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4b379a),_0x11ce50['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4b379a),_0x11ce50['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5b654c),_0x11ce50['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5b654c),_0x11ce50['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3e2e73),_0x11ce50['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3e2e73),_0x11ce50['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5ee075),_0x11ce50['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5ee075);}['_acceptFormatSuggestionCallbackFactory'](){const _0x564a68=this['editor'],_0x17c55d=_0x564a68['model']['document']['selection'];return(_0x38ee04,_0x252860)=>{_0x564a68['model']['change'](_0x174e3c=>{const {commandName:_0x544d78,commandParams:_0x566425}=_0x252860;let _0x471f7e=_0x38ee04[0x0]['end']['nodeBefore'];_0x566425&&_0x566425[0x0]&&!0x1===_0x566425[0x0]['forceValue']&&(_0x471f7e=_0x38ee04[0x0]['start']['nodeAfter']);const _0x71d4c=_0x174e3c['createRangeIn'](_0x471f7e);if('$graveyard'==_0x71d4c['root']['rootName'])return;const _0x2407ed=Array['from'](_0x17c55d['getRanges']())['map'](_0x3bf6fd=>_0x1c8214['fromRange'](_0x3bf6fd));_0x174e3c['setSelection'](_0x71d4c),_0x564a68['commands']['get'](_0x544d78)['refresh'](),_0x566425['push']({'forceDefaultExecution':!0x0}),_0x564a68['execute'](_0x544d78,..._0x566425);const _0x15fad1=_0x2407ed['filter'](_0x16b0ad=>'$graveyard'!=_0x16b0ad['root']['rootName']);_0x15fad1['length']>0x0&&_0x174e3c['setSelection'](_0x15fad1);for(const _0x3dd37a of _0x2407ed)_0x3dd37a['detach']();});};}['_getCoordsForCells'](_0x3f0019){const _0x32c61b=this['editor']['plugins']['get']('TableUtils');let _0x2f2bf6=Number['MAX_SAFE_INTEGER'],_0x45757c=Number['MIN_SAFE_INTEGER'],_0x25687f=Number['MAX_SAFE_INTEGER'],_0x21b8a6=Number['MIN_SAFE_INTEGER'];for(const _0x3cf3b3 of _0x3f0019){if('$graveyard'==_0x3cf3b3['root']['rootName'])continue;const {row:_0x449e2e,column:_0x1cab9c}=_0x32c61b['getCellLocation'](_0x3cf3b3),_0x4e5093=_0x3cf3b3['hasAttribute']('rowspan')?_0x3cf3b3['getAttribute']('rowspan')-0x1:0x0,_0x4ba9b8=_0x3cf3b3['hasAttribute']('colspan')?_0x3cf3b3['getAttribute']('colspan')-0x1:0x0;_0x2f2bf6=_0x449e2e<_0x2f2bf6?_0x449e2e:_0x2f2bf6,_0x45757c=_0x449e2e+_0x4e5093>_0x45757c?_0x449e2e+_0x4e5093:_0x45757c,_0x25687f=_0x1cab9c<_0x25687f?_0x1cab9c:_0x25687f,_0x21b8a6=_0x1cab9c+_0x4ba9b8>_0x21b8a6?_0x1cab9c+_0x4ba9b8:_0x21b8a6;}return{'minRow':_0x2f2bf6,'maxRow':_0x45757c,'minColumn':_0x25687f,'maxColumn':_0x21b8a6};}['_setupColumnsRowsFixing'](){const _0x4c2f1b=this['editor'],_0x15ad2e=_0x4c2f1b['plugins']['get']('TrackChangesEditing'),_0x4822ba=_0x4c2f1b['plugins']['get']('TableUtils');_0x4c2f1b['model']['document']['on']('change:data',()=>{const _0x23e2da=Array['from'](_0x4c2f1b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb4f544,data:_0x26740e}of _0x23e2da){const {group:_0x3c18b8,id:_0x690c00,subType:_0x521b2c}=_0x15ad2e['_splitMarkerName'](_0xb4f544);if('suggestion'!=_0x3c18b8)continue;if(null!=_0x26740e['oldRange'])continue;const _0x11dff6=_0x15ad2e['getSuggestion'](_0x690c00);this['_tablePostFixingSubtypes']['includes'](_0x521b2c)&&this['_tableSuggestions']['add'](_0x11dff6);}},{'priority':'low'});const _0x22a0dd=(_0x29de39,_0x4e18a7)=>{let _0x110e60=!0x1;const _0x413b47=_0x4e18a7['createRangeOn'](_0x29de39),_0x464f34=_0x29de39['findAncestor']('table'),_0x596f9d=_0x4822ba['getCellLocation'](_0x29de39);for(const _0x78ff88 of this['_tableSuggestions']){const _0x5b17d4=_0x78ff88['subType'],_0x15d8d0=_0x5b17d4['startsWith']('tablePaste'),_0x569bd7=_0x5b17d4['substr'](_0x15d8d0?0xa:0x5),_0xa04521=_0x569bd7['toLowerCase'](),_0x57bddf=_0xa04521['substr'](0x0,0x3)+'span',_0x6d5f71='min'+_0x569bd7,_0x3ccd8b='max'+_0x569bd7;if(!_0x78ff88['isInContent'])continue;if(_0x464f34!=_0x78ff88['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x78ff88['isIntersectingWithRange'](_0x413b47))continue;const _0x9c70b3=_0x29de39['hasAttribute'](_0x57bddf)?_0x29de39['getAttribute'](_0x57bddf)-0x1:0x0,_0x392033=this['_getSuggestionCoords'](_0x78ff88),_0x5f0905=_0x392033[_0x6d5f71],_0x592d87=_0x392033[_0x3ccd8b];_0x5f0905<=_0x596f9d[_0xa04521]&&_0x596f9d[_0xa04521]+_0x9c70b3<=_0x592d87&&(_0x78ff88['addRange'](_0x413b47),_0x110e60=!0x0);}return _0x110e60;};_0x4c2f1b['model']['document']['registerPostFixer'](_0x5e60b6=>{let _0x4e1ab9=!0x1;for(const _0x3a82b0 of _0x4c2f1b['model']['document']['differ']['getChanges']())if('insert'==_0x3a82b0['type']){if('tableRow'==_0x3a82b0['name']){for(const _0x183faa of _0x3a82b0['position']['nodeAfter']['getChildren']())_0x4e1ab9=_0x4e1ab9||_0x22a0dd(_0x183faa,_0x5e60b6);}else'tableCell'==_0x3a82b0['name']&&(_0x4e1ab9=_0x4e1ab9||_0x22a0dd(_0x3a82b0['position']['nodeAfter'],_0x5e60b6));}return _0x4e1ab9;});}['_getSuggestionCoords'](_0x26a719){return this['_getCoordsForCells'](_0x26a719['getRanges']()['map'](_0x90b001=>_0x90b001['start']['nodeAfter']));}}function _e(_0x53e212){return Array['from'](new Set(_0x53e212)['values']());}class Bt extends _0x561601{static get['requires'](){return[Dt];}['afterInit'](){const _0x4ba8f2=this['editor'],_0x53a7c2=_0x4ba8f2['model']['document']['selection'],_0x37ab98=_0x4ba8f2['locale'];if(!_0x4ba8f2['plugins']['has']('TableEditing'))return;const _0x874871=_0x4ba8f2['plugins']['get']('TrackChangesEditing'),_0x10c8d0=_0x4ba8f2['plugins']['get']('TableUtils'),_0x27d279=_0x4ba8f2['plugins']['get'](Dt);_0x27d279['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x874871['enableCommand']('mergeTableCells',()=>{const _0x502345=_0x10c8d0['getSelectionAffectedTableCells'](_0x4ba8f2['model']['document']['selection']);_0x4ba8f2['model']['change'](()=>{_0x874871['markMultiRangeBlockFormat'](_0x502345,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4ba8f2['commands']['get']('mergeTableCells')['on']('execute',(_0x1210f3,_0x5c0c1b)=>{_0x4ba8f2['commands']['get']('trackChanges')['value']&&(_0x5c0c1b['length']>0x0&&_0x5c0c1b[_0x5c0c1b['length']-0x1]&&_0x5c0c1b[_0x5c0c1b['length']-0x1]['forceDefaultExecution']||_0x874871['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1210f3['stop']());},{'priority':'highest'});for(const _0x282495 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x18ee46=_0x4ba8f2['commands']['get'](_0x282495);_0x874871['enableCommand'](_0x282495,()=>{const _0x185203=_0x4ba8f2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xec77b9=>_0xec77b9['is']('element','tableCell')),_0x3d0934=_0x18ee46['value'];_0x4ba8f2['model']['change'](()=>{_0x874871['markMultiRangeBlockFormat']([_0x185203,_0x3d0934],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3f7ad4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2e0639=_0x4ba8f2['commands']['get'](_0x3f7ad4);_0x874871['enableCommand'](_0x3f7ad4,()=>{const _0x4ebe59=_0x10c8d0['getSelectionAffectedTableCells'](_0x4ba8f2['model']['document']['selection'])[0x0],_0x1855a1=_0x4ebe59['findAncestor']('table'),{column:_0x3e77c1,row:_0x25d192}=_0x10c8d0['getCellLocation'](_0x4ebe59);let _0xf58ab1=[];if('horizontally'==_0x2e0639['direction']){const _0x18ee22=_0x10c8d0['createTableWalker'](_0x1855a1,{'startRow':_0x25d192,'endRow':_0x25d192,'includeAllSlots':!0x0});_0xf58ab1=Array['from'](_0x18ee22)['map'](_0x131477=>_0x131477['cell']);}else{const _0x2da8c2=_0x10c8d0['createTableWalker'](_0x1855a1,{'column':_0x3e77c1,'includeAllSlots':!0x0});_0xf58ab1=Array['from'](_0x2da8c2)['map'](_0xc51f15=>_0xc51f15['cell']);}_0x4ba8f2['model']['change'](_0x43ea68=>{_0x874871['markBlockFormat'](_0x43ea68['createRangeOn'](_0x4ebe59),{'commandName':_0x3f7ad4,'commandParams':[]},_0xf58ab1,_0x3f7ad4);});});}_0x874871['descriptionFactory']['registerDescriptionCallback'](_0x5a61dc=>{if('formatBlock'!=_0x5a61dc['type']&&'formatInline'!=_0x5a61dc['type'])return;const {data:_0x383780}=_0x5a61dc;return _0x383780&&'mergeTableCells'==_0x383780['commandName']?{'type':'format','content':o(_0x37ab98,'*Merge\x20cells*')}:void 0x0;}),_0x874871['descriptionFactory']['registerDescriptionCallback'](_0x916234=>{if('formatBlock'!=_0x916234['type']&&'formatInline'!=_0x916234['type'])return;const {data:_0x1f43e6}=_0x916234;return _0x1f43e6?'splitTableCellVertically'==_0x1f43e6['commandName']?{'type':'format','content':o(_0x37ab98,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1f43e6['commandName']?{'type':'format','content':o(_0x37ab98,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5bc24c=_0x27d279['_acceptFormatSuggestionCallbackFactory']();for(const _0x5dbcc0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x874871['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5dbcc0,'accept',_0x5bc24c);for(const _0x58a4dd of['splitTableCellVertically','splitTableCellHorizontally'])_0x874871['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x58a4dd,'accept',_0x5bc24c);_0x874871['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4f74fb=>{_0x4ba8f2['model']['change'](_0x18aee8=>{const _0x5e5e07=Array['from'](_0x53a7c2['getRanges']())['map'](_0xcc6288=>_0x1c8214['fromRange'](_0xcc6288));_0x18aee8['setSelection'](_0x4f74fb),_0x4ba8f2['commands']['get']('mergeTableCells')['refresh'](),_0x4ba8f2['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5bd20e=_0x5e5e07['filter'](_0x440719=>'$graveyard'!=_0x440719['root']['rootName']);_0x5bd20e['length']>0x0&&_0x18aee8['setSelection'](_0x5bd20e);for(const _0x58176a of _0x5e5e07)_0x58176a['detach']();});});for(const _0x2bc9ea of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1e9fd2=_0x4ba8f2['commands']['get'](_0x2bc9ea);_0x1e9fd2['on']('set:isEnabled',(_0x25c371,_0x145638,_0x5b1163)=>{if(_0x5b1163){const _0x473d39=_0x4ba8f2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4730d4=>_0x4730d4['is']('element','tableCell'));this['_areMergableCells'](_0x1e9fd2['value'],_0x473d39)||(_0x25c371['return']=!0x1,_0x25c371['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1ee0e5=this['editor']['commands']['get']('mergeTableCells'),_0x58dd74=this['editor']['plugins']['get']('TableUtils');if(!_0x1ee0e5['isEnabled'])return!0x1;const _0x2cf9b1=_0x58dd74['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x486ff5 of _0x2cf9b1)for(const _0x5d96c3 of _0x2cf9b1)if(_0x486ff5!=_0x5d96c3&&!this['_areMergableCells'](_0x486ff5,_0x5d96c3))return!0x1;return!0x0;}['_areMergableCells'](_0x4ae7c3,_0x513baf){const _0x55e79b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xec1aad=this['editor']['model']['createRangeOn'](_0x4ae7c3),_0xd6882b=this['editor']['model']['createRangeOn'](_0x513baf),_0x565788=new Set(),_0x286d3c=new Set();for(const _0x3014bb of _0x55e79b['getSuggestions']())if(('insertion'==_0x3014bb['type']||'deletion'==_0x3014bb['type']||'mergeTableCells'==_0x3014bb['subType'])&&_0x3014bb['isInContent']){for(const _0x599c08 of _0x3014bb['getRanges']())_0x599c08['containsRange'](_0xec1aad,!0x0)&&_0x565788['add'](_0x3014bb['type']+':'+_0x3014bb['author']['id']),_0x599c08['containsRange'](_0xd6882b,!0x0)&&_0x286d3c['add'](_0x3014bb['type']+':'+_0x3014bb['author']['id']);}if(_0x565788['size']!=_0x286d3c['size'])return!0x1;for(const _0x18f36d of _0x565788)if(!_0x286d3c['has'](_0x18f36d))return!0x1;return!0x0;}}class Ot extends _0x561601{static get['requires'](){return[Dt];}['afterInit'](){const _0x300341=this['editor'];if(!_0x300341['plugins']['has']('TableEditing'))return;const _0x3411a6=_0x300341['locale'],_0x545b82=_0x300341['plugins']['get']('TrackChangesEditing');_0x545b82['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x545b82['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x545b82['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3411a6,'FORMAT_HEADER_ROW')),_0x545b82['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3411a6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30025d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ebe3a=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x30025d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1ebe3a),_0x30025d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1ebe3a),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x320b5d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d43e9=this['editor']['plugins']['get']('TableUtils');function _0x117e0f({showActiveMarker:_0x132209=!0x0,setDataAttribute:_0x43cd49=!0x0}={}){return(_0x460058,_0x1c0544,_0x283b44)=>{const {type:_0x5c30d9,id:_0x354bfc}=_0x320b5d['_splitMarkerName'](_0x1c0544['markerName']);if(!_0x320b5d['hasSuggestion'](_0x354bfc))return;const _0x558133=_0x320b5d['getSuggestion'](_0x354bfc),_0x9bd31e=_0x558133['data'];if('formatBlock'!=_0x558133['type']||!_0x9bd31e||'setTableColumnHeader'!=_0x9bd31e['commandName'])return;if(_0x1c0544['item'])return void _0x460058['stop']();if(!_0x283b44['consumable']['consume'](_0x1c0544['markerRange'],_0x460058['name']))return;const _0xe6cb8d=_0x1c0544['markerRange']['start']['nodeAfter'],_0x3cb57c=_0x1c0544['markerRange']['end']['nodeBefore'],_0x291242=_0xe6cb8d['parent']['parent'],{column:_0x3d4aa1}=_0x3d43e9['getCellLocation'](_0xe6cb8d),{column:_0x5ba027}=_0x3d43e9['getCellLocation'](_0x3cb57c);for(let _0x1b7220=_0x3d4aa1;_0x1b7220<=_0x5ba027;_0x1b7220++){const _0x16b945=_0x3d43e9['createTableWalker'](_0x291242,{'column':_0x1b7220,'includeAllSlots':!0x1});for(const _0x56c982 of _0x16b945){const _0x471e15=_0x56c982['cell'],_0x237600=_0x283b44['mapper']['toViewElement'](_0x471e15);_0x283b44['writer']['addClass']('ck-suggestion-marker-'+_0x5c30d9,_0x237600),_0x43cd49&&_0x283b44['writer']['setAttribute']('data-suggestion',_0x354bfc,_0x237600),_0x283b44['mapper']['bindElementToMarker'](_0x237600,_0x1c0544['markerName']),_0x132209&&(_0x320b5d['activeMarkers']['includes'](_0x1c0544['markerName'])?_0x283b44['writer']['addClass']('ck-suggestion-marker--active',_0x237600):_0x283b44['writer']['removeClass']('ck-suggestion-marker--active',_0x237600));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x117e0f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b7fe2,_0x259e2a,_0x23ecd3)=>{_0x23ecd3['options']['showSuggestionHighlights']&&_0x117e0f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2b7fe2,_0x259e2a,_0x23ecd3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x125f01,_0x10be2f,_0x28d532)=>{const {type:_0x194659,id:_0x36875e}=_0x320b5d['_splitMarkerName'](_0x10be2f['markerName']);if(!_0x320b5d['hasSuggestion'](_0x36875e))return;const _0xcf77e3=_0x320b5d['getSuggestion'](_0x36875e),_0x387967=_0xcf77e3['data'];if('formatBlock'!=_0xcf77e3['type']||!_0x387967||'setTableColumnHeader'!=_0x387967['commandName'])return;const _0x38649e=_0x28d532['mapper']['markerNameToElements'](_0x10be2f['markerName']);if(_0x38649e){for(const _0x406377 of _0x38649e)_0x28d532['writer']['removeClass']('ck-suggestion-marker-'+_0x194659,_0x406377),_0x28d532['writer']['removeClass']('ck-suggestion-marker--active',_0x406377),_0x28d532['writer']['removeAttribute']('data-suggestion',_0x406377),_0x28d532['mapper']['unbindElementFromMarkerName'](_0x406377,_0x10be2f['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x1579d1=this['editor'],_0x70ae28=_0x1579d1['locale'];function _0x4318b4(_0x1f051b){return{'type':'format','content':o(_0x70ae28,'*Format:*\x20%0',_0x1f051b)};}_0x1579d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ba3f6=>{if('formatBlock'!=_0x3ba3f6['type'])return;const {data:_0x48c5f4}=_0x3ba3f6;if(_0x48c5f4){if('setTableRowHeader'==_0x48c5f4['commandName']){const _0x2e4cd2=_0x48c5f4['commandParams'][0x0]['forceValue'];return _0x4318b4(o(_0x70ae28,_0x2e4cd2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x48c5f4['commandName']){const _0x583c0e=_0x48c5f4['commandParams'][0x0]['forceValue'];return _0x4318b4(o(_0x70ae28,_0x583c0e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x561601{['afterInit'](){const _0x181c06=this['editor'],_0x38bfd3=_0x181c06['locale'],_0x1c0a39=_0x181c06['plugins']['get']('TrackChangesEditing');function _0x43cd1a(_0x8bb530){return{'type':'format','content':''+o(_0x38bfd3,'*Set\x20table\x20type:*\x20%0',_0x8bb530)};}_0x181c06['plugins']['has']('TableLayout')&&(_0x1c0a39['enableCommand']('insertTableLayout'),_0x1c0a39['enableDefaultAttributesIntegration']('tableType'),_0x1c0a39['descriptionFactory']['registerElementLabel'](_0x35a979=>_0x35a979['is']('element','table')&&'layout'===_0x35a979['getAttribute']('tableType'),_0x21b273=>o(_0x38bfd3,'ELEMENT_LAYOUT_TABLE',_0x21b273)),_0x1c0a39['descriptionFactory']['registerDescriptionCallback'](_0x3e675d=>{const {data:_0x41b1a1}=_0x3e675d;if(_0x41b1a1&&'tableType'==_0x41b1a1['key'])switch(_0x41b1a1['newValue']){case'layout':return _0x43cd1a(o(_0x38bfd3,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x43cd1a(o(_0x38bfd3,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x12fa13=>[_0x12fa13,null]));class Mt extends _0x561601{static get['requires'](){return[Dt];}['afterInit'](){const _0x53c517=this['editor'];if(!_0x53c517['plugins']['has']('TableClipboard'))return;const _0x233657=_0x53c517['plugins']['get']('TrackChangesEditing'),_0x4d2d29=_0x53c517['plugins']['get']('TableUtils'),_0x6b7897=_0x53c517['plugins']['get'](Dt),_0xbf6962=_0x53c517['plugins']['get']('TableClipboard'),_0x457c5f=_0x53c517['plugins']['get']('TableSelection'),_0x33c524=_0x53c517['plugins']['get'](_0x1f8748);_0x6b7897['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x53c517['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x53c517['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1bd824=null,_0x4eed10=!0x1;_0x33c524['on']('contentInsertion',(_0x221f5c,_0x265569)=>{_0x4eed10='paste'===_0x265569['method'];}),_0x53c517['model']['on']('insertContent',(_0x542397,_0x7e18c)=>{if(!_0x4eed10&&null===_0x457c5f['getSelectedTableCells']())return;const [_0x5449eb,_0x8330d8]=_0x7e18c,_0xecbe7a=_0x7e18c[_0x7e18c['length']-0x1];_0xecbe7a&&_0xecbe7a['forceDefaultExecution']||_0x233657['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x52f261,_0x1acbc2,_0xbb54d2,_0x17e9f2,_0x5b8266){if(_0x1acbc2&&!_0x1acbc2['is']('documentSelection'))return!0x1;const _0x333fd4=_0x5b8266['getTableIfOnlyTableInContent'](_0x52f261,_0xbb54d2);if(!_0x333fd4||!Oe(_0x333fd4,void 0x0,_0x17e9f2))return!0x1;const _0x5660be=_0x17e9f2['getSelectionAffectedTableCells'](_0xbb54d2['document']['selection']);if(!_0x5660be['length'])return!0x1;const _0x4b1f13=_0x5660be[0x0]['findAncestor']('table'),_0x576636=_0x17e9f2['getRowIndexes'](_0x5660be),_0x41a1e6=_0x17e9f2['getColumnIndexes'](_0x5660be),_0x1a63c5={'startRow':_0x576636['first'],'endRow':_0x576636['last'],'startColumn':_0x41a1e6['first'],'endColumn':_0x41a1e6['last']};return 0x1==_0x5660be['length']&&(_0x1a63c5['endRow']+=_0x17e9f2['getRows'](_0x333fd4)-0x1,_0x1a63c5['endColumn']+=_0x17e9f2['getColumns'](_0x333fd4)-0x1),Oe(_0x4b1f13,_0x1a63c5,_0x17e9f2);}(_0x5449eb,_0x8330d8,_0x53c517['model'],_0x4d2d29,_0xbf6962)&&(_0x542397['stop'](),_0x1bd824={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x53c517['model']['change'](()=>{_0x53c517['model']['insertContent'](_0x7e18c[0x0],_0x7e18c[0x1],_0x7e18c[0x2],{'forceDefaultExecution':!0x0});const _0x599dbe=_0x4c54e4(),{rowInsertionRanges:_0x180ef3,columnInsertionRanges:_0x4225d9,insertionRanges:_0x4937a1,deletionRanges:_0x30b175,cells:_0x43de36}=_0x1bd824;_0x180ef3['length']&&_0x233657['markMultiRangeInsertion'](_0x180ef3,'tablePasteRow',{'tablePasteChainId':_0x599dbe}),_0x4225d9['length']&&_0x233657['markMultiRangeInsertion'](_0x4225d9,'tablePasteColumn',{'tablePasteChainId':_0x599dbe}),_0x4937a1['length']&&(_0x233657['markMultiRangeInsertion'](_0x4937a1,'tablePaste',{'tablePasteChainId':_0x599dbe,'skipNestingCheck':!0x0}),_0x4937a1['forEach'](_0x353a86=>_0x353a86['detach']?.())),_0x30b175['length']&&(_0x233657['markMultiRangeDeletion'](_0x30b175,'tablePaste',{'tablePasteChainId':_0x599dbe,'skipNestingCheck':!0x0}),_0x30b175['forEach'](_0x36e07e=>_0x36e07e['detach']?.()));const _0x408c4b=_0x233657['markMultiRangeBlockFormat'](_0x43de36['map'](({element:_0x175283})=>_0x175283),{'formatGroupId':_0x4c54e4()},[],'tablePasteCell',{'tablePasteChainId':_0x599dbe});if(_0x408c4b){const _0x55b274=_0x408c4b['getMarkers'](),_0x30c028=[];for(const {element:_0x2f4c81,attributes:_0x4d3252}of _0x43de36){if(!_0x4d3252)continue;const _0x36b3d4=_0x53c517['model']['createRangeOn'](_0x2f4c81),_0x288c2f=_0x55b274['find'](_0x490db4=>_0x490db4['getRange']()['isEqual'](_0x36b3d4));_0x288c2f&&_0x30c028['push']([_0x288c2f['name'],_0x4d3252]);}_0x30c028['length']&&_0x408c4b['setAttribute']('markerAttributes',Object['fromEntries'](_0x30c028));}_0x1bd824=null;}));},{'priority':_0x3725e9['high']+0xa}),_0x33c524['on']('contentInsertion',()=>{_0x4eed10=!0x1;},{'priority':'lowest'}),_0x53c517['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x209742,_0x1c2dc8)=>{const [_0xe04b71,_0x252a22,,_0x2189a0]=_0x1c2dc8;if(!_0x1bd824)return;_0x209742['stop']();const _0x3ce86d=_0xe04b71['cell'],_0x122a5c=_0x252a22,_0x26261f=Be(_0x3ce86d),_0x30beb3=Be(_0x122a5c);_0x209742['return']=_0x3ce86d;let _0x3cc530=null,_0x47d162=null;if(_0x30beb3||_0x26261f){if(_0x26261f&&!_0x30beb3){_0x2189a0['remove'](_0x3ce86d['getChild'](0x0));for(const _0x1684e6 of Array['from'](_0x122a5c['getChildren']()))_0x2189a0['insert'](_0x1684e6,_0x3ce86d,'end');const _0x10fce9=_0x1bd824['rowInsertionIndexes']['includes'](_0xe04b71['row']),_0x5a6269=_0x1bd824['columnInsertionIndexes']['includes'](_0xe04b71['column']);_0x10fce9||_0x5a6269||(_0x3cc530=_0x1c8214['fromRange'](_0x2189a0['createRangeIn'](_0x3ce86d)));}else _0x30beb3&&!_0x26261f&&(_0x47d162=_0x2189a0['createRangeIn'](_0x3ce86d));}else{const _0x57dd13=_0x2189a0['createElement']('tableCellSuggestion'),_0x487364=_0x2189a0['createElement']('tableCellSuggestion');_0x2189a0['wrap'](_0x2189a0['createRangeIn'](_0x3ce86d),_0x487364),_0x2189a0['insert'](_0x57dd13,_0x3ce86d,0x0);for(const _0x217b4f of Array['from'](_0x122a5c['getChildren']()))_0x2189a0['insert'](_0x217b4f,_0x57dd13,'end');_0x3cc530=_0x1c8214['fromRange'](_0x2189a0['createRangeOn'](_0x57dd13)),_0x47d162=_0x1c8214['fromRange'](_0x2189a0['createRangeOn'](_0x487364));}const _0x92d3f2=Array['from'](_0x122a5c['getAttributes']())['filter'](([_0x50d376])=>Re['includes'](_0x50d376));_0x1bd824['cells']['push']({'element':_0x3ce86d,'attributes':_0x92d3f2['length']?Object['fromEntries'](_0x92d3f2):null}),_0x3cc530&&_0x1bd824['insertionRanges']['push'](_0x3cc530),_0x47d162&&_0x1bd824['deletionRanges']['push'](_0x47d162);},{'priority':'high'}),_0x4d2d29['on']('insertColumns',(_0x14644e,_0x548e09)=>{const [_0x3b0078,_0xe15da1={}]=_0x548e09;if(!_0x1bd824)return;const _0x1ed1ba=_0xe15da1['at']||0x0,_0x43f869=_0xe15da1['columns']||0x1;_0x1bd824['columnInsertionIndexes']=new Array(_0x43f869)['fill'](_0x1ed1ba)['map']((_0x22c6cb,_0x240a1e)=>_0x22c6cb+_0x240a1e);for(const {cell:_0x3c3782}of _0x4d2d29['createTableWalker'](_0x3b0078,{'startColumn':_0x1ed1ba,'endColumn':_0x1ed1ba+_0x43f869-0x1}))_0x1bd824['columnInsertionRanges']['push'](_0x53c517['model']['createRangeOn'](_0x3c3782));},{'priority':'low'}),_0x4d2d29['on']('insertRows',(_0x1479f0,_0x4f9239)=>{const [_0x181879,_0x5804f1={}]=_0x4f9239;if(!_0x1bd824)return;const _0x361b30=_0x5804f1['at']||0x0,_0x2fae05=_0x5804f1['rows']||0x1;_0x1bd824['rowInsertionIndexes']=new Array(_0x2fae05)['fill'](_0x361b30)['map']((_0x4f1734,_0x22775d)=>_0x4f1734+_0x22775d);for(const {cell:_0x3ea47a}of _0x4d2d29['createTableWalker'](_0x181879,{'startRow':_0x361b30,'endRow':_0x361b30+_0x2fae05-0x1}))_0x1bd824['rowInsertionRanges']['push'](_0x53c517['model']['createRangeOn'](_0x3ea47a));},{'priority':'low'}),_0x233657['descriptionFactory']['registerDescriptionCallback'](_0x319f44=>{if(_0x319f44['subType']&&_0x319f44['subType']['startsWith']('tablePaste'))return _0x319f44['previous']?{}:{'type':'insertion','content':o(_0x53c517['locale'],'*Replace\x20table\x20cells*')};});const _0x2f7c58=()=>!0x1;for(const _0x3c83f5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x233657['_suggestionFactory']['registerCustomCallback']('insertion',_0x3c83f5,'join',_0x2f7c58),_0x233657['_suggestionFactory']['registerCustomCallback']('deletion',_0x3c83f5,'join',_0x2f7c58),_0x233657['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c83f5,'join',_0x2f7c58);_0x233657['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2f7c58),_0x233657['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5ad800,_0x291f89,_0x27c040)=>{const _0x2847ed=_0x5ad800['map'](_0x5c2e89=>_0x5c2e89['getContainedElement']())['filter'](_0x4ecdeb=>_0x4ecdeb),_0x185d09=new Map(_0x2847ed['map'](_0x4223b9=>[_0x4223b9,null]));if(_0x1bd824){for(const {element:_0x3d4975,attributes:_0xcc799c}of _0x1bd824['cells'])_0xcc799c&&_0x185d09['set'](_0x3d4975,_0xcc799c);}else{if(_0x27c040&&_0x27c040['markerAttributes'])for(const [_0x9f4250,_0x5617e2]of Object['entries'](_0x27c040['markerAttributes'])){const _0x14f0f2=_0x53c517['model']['markers']['get'](_0x9f4250),_0x4dfcb7=_0x14f0f2?_0x14f0f2['getRange']()['getContainedElement']():null;_0x4dfcb7&&_0x185d09['set'](_0x4dfcb7,_0x5617e2);}}_0x53c517['model']['change'](_0xa3b322=>{for(const [_0x586ba4,_0x3b279b]of _0x185d09)_0xa3b322['setAttributes']({...Ae,..._0x3b279b},_0x586ba4);});});const _0x6ed7c4=(_0x1816be,_0x1a98fa)=>{_0x233657['_suggestionFactory']['registerCustomCallback'](_0x1816be,'tablePaste',_0x1a98fa,(_0x1ae57f,_0x4b4329,_0x970ff5)=>{_0x53c517['model']['change'](_0x372139=>{const _0x122e83=[];for(const _0x2b9095 of _0x1ae57f){const _0x1af791=_0x2b9095['start']['nodeAfter'];_0x1af791['is']('element','tableCellSuggestion')&&_0x122e83['push'](_0x1af791);}_0x233657['_suggestionFactory']['getSuggestionCallback'](_0x1816be,null,_0x1a98fa)(_0x1ae57f,_0x4b4329,_0x970ff5);for(const _0x35d697 of _0x122e83)'$graveyard'!=_0x35d697['root']['rootName']&&_0x372139['unwrap'](_0x35d697);});});};_0x6ed7c4('insertion','accept'),_0x6ed7c4('insertion','discard'),_0x6ed7c4('deletion','accept'),_0x6ed7c4('deletion','discard'),_0x233657['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x394d85=>{const _0x28b42a=_0x394d85['map'](_0x5ae4cf=>_0x5ae4cf['getContainedElement']()),_0x4140fd=_0x28b42a[0x0]['findAncestor']('table'),{minRow:_0x386fc4,maxRow:_0x131690}=_0x6b7897['_getCoordsForCells'](_0x28b42a);_0x4d2d29['removeRows'](_0x4140fd,{'at':_0x386fc4,'rows':_0x131690-_0x386fc4+0x1});}),_0x233657['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3381d4=>{const _0x3c74aa=_0x3381d4['map'](_0x4560d7=>_0x4560d7['getContainedElement']()),_0x5c33ce=_0x3c74aa[0x0]['findAncestor']('table'),{minColumn:_0x4533ef,maxColumn:_0x64df3}=_0x6b7897['_getCoordsForCells'](_0x3c74aa);_0x4d2d29['removeColumns'](_0x5c33ce,{'at':_0x4533ef,'columns':_0x64df3-_0x4533ef+0x1});});const _0x5667ee=(_0x410f53,_0x518f6f)=>{if(!_0x518f6f['subType']||!_0x518f6f['subType']['startsWith']('tablePaste'))return;const _0x440476=_0x518f6f['attributes']['tablePasteChainId'],_0x431cbd=_0x233657['getSuggestions']()['filter'](_0x312771=>_0x312771['isInContent']&&_0x312771['attributes']&&_0x312771['attributes']['tablePasteChainId']==_0x440476);_0x431cbd['length']&&_0x518f6f['getAllAdjacentSuggestions']()['length']!=_0x431cbd['length']&&_0x431cbd['reduce']((_0x41aaf3,_0x3cac36)=>(_0x41aaf3['next']=_0x3cac36,_0x3cac36['previous']=_0x41aaf3,_0x3cac36));};function _0x2fd7ea(_0x190906,_0x445b6b=!0x0){const {id:_0x3840da,authorId:_0x5a2ddf}=_0x233657['_splitMarkerName'](_0x190906['markerName']),_0x449702=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x9473b1=_0x233657['activeMarkers']['includes'](_0x190906['markerName']);return _0x9473b1&&_0x449702['push']('ck-suggestion-marker--active'),{'classes':_0x449702,'attributes':{'data-suggestion':_0x3840da,'data-author-id':_0x5a2ddf},'priority':_0x9473b1&&_0x445b6b?0xbc2:0xbb8};}_0x233657['on']('suggestionLoaded',_0x5667ee,{'priority':'high'}),_0x233657['on']('suggestionUnloaded',_0x5667ee,{'priority':'high'}),_0x53c517['model']['document']['registerPostFixer'](()=>{let _0x391626=!0x1;const _0x3bcdf1=Array['from'](_0x53c517['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d5a18,data:_0x43b3d2}of _0x3bcdf1){const {group:_0xb23fc5,type:_0x3d47d8,id:_0x338991}=_0x233657['_splitMarkerName'](_0x3d5a18);if('suggestion'!=_0xb23fc5||'deletion'!=_0x3d47d8||_0x43b3d2['oldRange'])continue;if(!_0x233657['hasSuggestion'](_0x338991))continue;const _0x30bbf6=_0x233657['getSuggestion'](_0x338991)['getRanges'](),_0x21cf90=_0x53c517['plugins']['get']('Users')['me'];for(const _0x31292c of _0x233657['getSuggestions']()){if(!_0x31292c['isInContent']||_0x31292c['author']!=_0x21cf90)continue;if('formatBlock'!=_0x31292c['type']||'tablePasteCell'!=_0x31292c['subType'])continue;if(_0x31292c['getRanges']()['every'](_0x41ad74=>_0x30bbf6['some'](_0x1d9d66=>_0x1d9d66['containsRange'](_0x41ad74,!0x0)))){for(const _0x28e0b8 of _0x31292c['getAllAdjacentSuggestions']())_0x28e0b8['isInContent']&&(_0x28e0b8['discard'](),_0x391626=!0x0);}}}return _0x391626;}),_0x53c517['model']['document']['registerPostFixer'](_0x2c2c2e=>{const _0x373aa0=_0x53c517['commands']['get']('redo');if(!_0x373aa0||!_0x373aa0['_createdBatches']['has'](_0x2c2c2e['batch']))return!0x1;let _0x149270=!0x1;const _0x436d4a=_0x53c517['plugins']['get']('Users')['me'],_0x560827=_0x53c517['model']['document']['differ']['getChanges'](),_0x540bf1=Array['from'](_0x53c517['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1875c7,data:_0x526821})=>{const {group:_0x2f28e3,subType:_0x2c2075,authorId:_0x287dea}=_0x233657['_splitMarkerName'](_0x1875c7);return'suggestion'==_0x2f28e3&&'tablePaste'==_0x2c2075&&_0x287dea==_0x436d4a['id']&&!_0x526821['oldRange'];});for(const _0x49f5de of _0x560827){if('insert'!=_0x49f5de['type']||'tableCellSuggestion'!=_0x49f5de['name']||0x1!=_0x49f5de['length'])continue;const _0x119e04=_0x2c2c2e['createRange'](_0x49f5de['position'],_0x49f5de['position']['getShiftedBy'](0x1));if(!_0x540bf1['find'](({data:_0x20f3d1})=>_0x20f3d1['newRange']['isEqual'](_0x119e04))){for(const {name:_0x22aff2,data:_0x1b2b17}of _0x540bf1)if(_0x119e04['containsRange'](_0x1b2b17['newRange'])){_0x2c2c2e['updateMarker'](_0x22aff2,{'range':_0x119e04}),_0x149270=!0x0;break;}}}return _0x149270;}),_0x53c517['model']['document']['registerPostFixer'](_0x5100a2=>{let _0x5b7247=!0x1;const _0x72ff26=_0x53c517['plugins']['get']('Users')['me'],_0x4d4ada=_0x233657['getSuggestions']()['filter'](_0x31bbeb=>_0x31bbeb['isInContent']&&_0x31bbeb['author']==_0x72ff26),_0x5ab829=new Set(),_0x2eaad1=new Set();for(const _0x1e96ce of _0x4d4ada)if('tablePaste'==_0x1e96ce['subType'])for(const _0x2f34b3 of _0x1e96ce['getMarkers']()){const _0x12df53=_0x2f34b3['getRange']()['getContainedElement']();if(_0x12df53){if(_0x12df53['is']('element','tableCellSuggestion')&&Be(_0x12df53)){_0x1e96ce['removeMarker'](_0x2f34b3['name']),_0x5ab829['add'](_0x12df53),_0x5b7247=!0x0;const _0x633b83=_0x12df53['nextSibling'],_0x12c1bb=_0x12df53['previousSibling'],_0x45cbef=_0x633b83&&_0x633b83['is']('element','tableCellSuggestion'),_0x585864=_0x12c1bb&&_0x12c1bb['is']('element','tableCellSuggestion');_0x45cbef&&!_0x5ab829['has'](_0x633b83)&&_0x2eaad1['add'](_0x633b83),_0x585864&&!_0x5ab829['has'](_0x12c1bb)&&_0x2eaad1['add'](_0x12c1bb);}else _0x12df53['is']('element','paragraph')&&_0x12df53['isEmpty']&&(_0x1e96ce['removeMarker'](_0x2f34b3['name']),_0x5b7247=!0x0);}}else{if('tablePasteCell'==_0x1e96ce['subType']){if(!_0x1e96ce['attributes']||!_0x1e96ce['attributes']['tablePasteChainId'])continue;const _0x2ecc3e=_0x1e96ce['attributes']['markerAttributes'];if(_0x2ecc3e&&Object['keys'](_0x2ecc3e)['length'])continue;const _0x1a60a0=_0x1e96ce['attributes']['tablePasteChainId'];let _0x2a60c1=!0x0,_0x5b7afd=!0x0;for(const _0x53bdd of _0x4d4ada)if(_0x53bdd['subType']&&_0x53bdd['subType']['startsWith']('tablePaste')){if(!_0x53bdd['attributes']['tablePasteChainId']){_0x5b7afd=!0x1;break;}if(_0x53bdd['id']!=_0x1e96ce['id']&&_0x53bdd['attributes']['tablePasteChainId']==_0x1a60a0){_0x2a60c1=!0x1;break;}}_0x5b7afd&&_0x2a60c1&&(_0x1e96ce['removeMarkers'](),_0x5b7247=!0x0);}}for(const _0x2a4da1 of _0x5ab829)_0x5100a2['remove'](_0x2a4da1);for(const _0x32523f of _0x2eaad1)_0x5100a2['unwrap'](_0x32523f);return _0x5b7247;}),_0x53c517['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2497cd=>_0x2fd7ea(_0x2497cd),'converterPriority':'high'}),_0x53c517['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xdf7d92,_0x42e34e)=>_0x42e34e['options']['showSuggestionHighlights']?_0x2fd7ea(_0xdf7d92,!0x1):null,'converterPriority':'high'});const _0x31a6db=_0x53c517['editing']['view'];this['listenTo'](_0x31a6db['document'],'clipboardOutput',(_0x593aa0,_0x2b7f27)=>{const _0x370377=[];for(const _0x2297c4 of _0x31a6db['createRangeIn'](_0x2b7f27['content'])['getItems']())_0x2297c4['is']('element','suggestion-td')&&_0x370377['push'](_0x2297c4);_0x31a6db['change'](_0x31daad=>{for(const _0x51b25c of _0x370377)_0x31daad['move'](_0x31daad['createRangeIn'](_0x51b25c),_0x31daad['createPositionBefore'](_0x51b25c)),_0x31daad['remove'](_0x51b25c);});});}}function Be(_0x4403d2){if(_0x4403d2['isEmpty'])return!0x0;const _0x563556=_0x4403d2['getChild'](0x0);return _0x563556['is']('element','paragraph')&&_0x563556['isEmpty'];}function Oe(_0x4f02f6,_0x4748fb={},_0x40ba90){for(const {isAnchor:_0x310506,cellHeight:_0x5a6f94,cellWidth:_0x4a9461}of _0x40ba90['createTableWalker'](_0x4f02f6,{'includeAllSlots':!0x0,..._0x4748fb}))if(!_0x310506||0x1!=_0x5a6f94||0x1!=_0x4a9461)return!0x1;return!0x0;}class Rt extends _0x561601{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x135601=this['editor']['plugins']['get']('TrackChangesEditing');_0x135601['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x135601['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x135601['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x135601['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x135601['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x135601['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2dce1b,_0x5156a1){const _0x254866=this['editor']['plugins']['get']('TrackChangesEditing'),_0x165258=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1dd46f=_0x5156a1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x60f0f9=_0x165258['getColumnGroupElement'](_0x1dd46f);let _0x251ea3=_0x60f0f9?_0x165258['getTableColumnsWidths'](_0x60f0f9):null,_0x4e9049=_0x1dd46f['getAttribute']('tableWidth')||null;const _0x10ecd1=_0x5156a1['tableWidth']||_0x4e9049,_0x154cf4=_0x5156a1['columnWidths']||_0x251ea3,_0x43e109=this['editor']['plugins']['get']('Users')['me'];for(const _0x840aa of _0x254866['getSuggestions']()){const _0x510c88=_0x840aa['getContainedElement']();if('resizeTable'===_0x840aa['subType']&&_0x510c88===_0x1dd46f){_0x840aa['author']!==_0x43e109&&_0x840aa['discard']();const _0xc0ef4a=_0x840aa['data']['commandParams'];_0x4e9049=_0xc0ef4a[0x0]['tableWidth'],_0x251ea3=_0xc0ef4a[0x0]['columnWidths'];break;}}_0x2dce1b({'table':_0x1dd46f,'tableWidth':_0x10ecd1,'columnWidths':_0x154cf4}),_0x254866['markBlockFormat'](_0x1dd46f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4e9049,'columnWidths':_0x251ea3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x18d0cc){if('formatBlock'!=_0x18d0cc['type']&&'formatInline'!=_0x18d0cc['type'])return;const {data:_0x211cbb}=_0x18d0cc;if(_0x211cbb&&'resizeTable'===_0x211cbb['formatGroupId']){const _0x59b1be='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x59b1be)};}}}class Tt extends _0x561601{['afterInit'](){const _0x49968c=this['editor'];_0x49968c['plugins']['has']('Template')&&_0x49968c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x561601{['afterInit'](){const _0x46a7c0=this['editor'];if(!_0x46a7c0['commands']['get']('insertTableOfContents'))return;_0x46a7c0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x188c38=_0x46a7c0['plugins']['get']('TrackChangesEditing'),_0x1f9d1c=_0x46a7c0['locale'];_0x188c38['descriptionFactory']['registerElementLabel']('tableOfContents',_0x22224e=>o(_0x1f9d1c,'ELEMENT_TABLE_OF_CONTENTS',_0x22224e));}}class Ut extends _0x561601{['afterInit'](){const _0x3f6037=this['editor'];if(!_0x3f6037['plugins']['has']('Title'))return;const _0x5eed33=_0x3f6037['plugins']['get']('TrackChangesEditing');_0x5eed33['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3f6037['locale'],'ELEMENT_TITLE')),_0x3f6037['model']['document']['registerPostFixer'](_0x5799e0=>{let _0xb654a7=!0x1;const _0x3e9ce4=Array['from'](_0x3f6037['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ea549,data:_0x5b5aca}of _0x3e9ce4){const {group:_0x452225}=_0x5eed33['_splitMarkerName'](_0x4ea549);if('suggestion'!==_0x452225||!_0x5b5aca['newRange'])continue;const _0x274404=_0x5b5aca['newRange'],_0x368a61=_0x274404['end']['nodeBefore'];if(!_0x368a61||!_0x368a61['is']('element','title-content'))continue;if(!_0x274404['start']['isTouching'](_0x274404['end']))continue;const _0x55e638=_0x3f6037['model']['schema']['getNearestSelectionRange'](_0x274404['end'],'forward');if(_0x55e638&&_0x55e638['isCollapsed']){const _0x301935=_0x5799e0['createRange'](_0x274404['start'],_0x55e638['start']);_0x301935['isEqual'](_0x274404)||(_0x5799e0['updateMarker'](_0x4ea549,{'range':_0x301935}),_0xb654a7=!0x0);}_0xb654a7||(_0x5799e0['removeMarker'](_0x4ea549),_0xb654a7=!0x0);}return _0xb654a7;});}}class Vt extends _0x561601{['afterInit'](){const _0x4d2e3f=this['editor'],_0x3e9822=_0x4d2e3f['plugins']['get']('TrackChangesEditing');_0x4d2e3f['plugins']['has']('Uploadcare')&&(_0x3e9822['enableCommand']('uploadcare'),_0x4d2e3f['plugins']['has']('UploadcareImageEdit')&&(_0x3e9822['enableCommand']('uploadcareImageEdit'),_0x3e9822['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3e9822['descriptionFactory']['registerDescriptionCallback'](_0x64bcf2=>{if('attribute'!=_0x64bcf2['type'])return;const {data:_0x2b4c54}=_0x64bcf2;return _0x2b4c54&&'uploadcareImageId'==_0x2b4c54['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x561601{['afterInit'](){const _0x63ef95=this['editor'],_0xd28108=_0x63ef95['plugins']['get']('TrackChangesEditing');_0x63ef95['plugins']['has']('UndoEditing')&&(_0xd28108['enableCommand']('undo'),_0xd28108['enableCommand']('redo'));}}class Pt extends _0x561601{static get['requires'](){return[Dt];}['afterInit'](){const _0x1b5986=this['editor'];if(!_0x1b5986['plugins']['has']('TableCaptionEditing'))return;_0x1b5986['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x561601{['tableProperties'];['tableCellProperties'];constructor(_0x57f81e){super(_0x57f81e),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x57f81e['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x41c783=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x38361e of this['tableProperties'])_0x41c783['enableCommand'](_0x38361e,(_0xc55a84,_0x390996)=>{const _0x2a6c63=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x38361e,[_0x2a6c63],this['tableProperties'],'tableProperties',_0xc55a84,_0x390996);});_0x41c783['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x41c783['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41c783['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x9e1cc,_0x2ca880)=>this['handleDiscardAction'](this['tableProperties'],_0x9e1cc,_0x2ca880)),_0x41c783['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x35ad99 of this['tableCellProperties'])this['editor']['commands']['get'](_0x35ad99)&&_0x41c783['enableCommand'](_0x35ad99,(_0x1b3521,_0xfc8a41)=>{const _0x5e2de0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x35ad99,_0x5e2de0,this['tableCellProperties'],'tableCellProperties',_0x1b3521,_0xfc8a41);});_0x41c783['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x41c783['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41c783['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3e7492,_0x526f84)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3e7492,_0x526f84)),_0x41c783['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x41c783['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x41c783['descriptionFactory']['registerDescriptionCallback'](_0x147a64=>this['handleSuggestionDescription'](_0x147a64)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xca8f4d,_0x299b70,_0x833312,_0x373e63,_0x132897,_0x22d83b){const _0x781094=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x22d83b['batch'],()=>{for(const _0x522b9e of _0x299b70){if(this['_getSuggestion'](_0x522b9e,_0x373e63))_0x132897(_0x22d83b);else{const _0x388bfe={};for(const _0x38c18f of _0x833312){const _0x150d6b=_0x522b9e['getAttribute'](_0x38c18f);void 0x0!==_0x150d6b&&(_0x388bfe[_0x38c18f]=_0x150d6b);}_0x132897(_0x22d83b),_0x781094['markBlockFormat'](_0x522b9e,{'commandParams':[_0x388bfe]},[],_0x373e63);}}});}['handleDiscardAction'](_0x4553d7,_0x28ac4e,_0x348a7c){const _0x18123b=_0x28ac4e[0x0]['start']['nodeAfter'],_0x30b4b3=_0x348a7c['commandParams'][0x0];this['editor']['model']['change'](_0x4fbd41=>{for(const _0x2b797a of _0x4553d7)void 0x0!==_0x30b4b3[_0x2b797a]?_0x4fbd41['setAttribute'](_0x2b797a,_0x30b4b3[_0x2b797a],_0x18123b):_0x4fbd41['removeAttribute'](_0x2b797a,_0x18123b);});}['handleSuggestionDescription'](_0x3a2b26){if(_0x3a2b26['data'])switch(_0x3a2b26['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'](_0x28cdaf,_0x36fc42){const _0x257cdf=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x337a36 of _0x257cdf['getSuggestions']({'skipNotAttached':!0x0})){const _0x63543a=_0x337a36['getContainedElement']();if(_0x337a36['subType']===_0x36fc42&&_0x63543a===_0x28cdaf)return _0x337a36;}return null;}['_registerTablePropertiesAttributes'](){const _0xa8892c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3de0fb=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x386b36 of _0x3de0fb){const _0x489eae=_0x386b36['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xa8892c['descriptionFactory']['registerAttributeLabel'](_0x386b36,o(this['editor']['locale'],'FORMAT_'+_0x489eae));}}}class Lt extends _0x561601{['afterInit'](){const _0x595565=this['editor'];if(!_0x595565['plugins']['has']('LineHeight'))return;const _0x4cba30=_0x595565['plugins']['get']('TrackChangesEditing'),_0x4df672=_0x595565['locale'];_0x4cba30['enableDefaultAttributesIntegration']('lineHeight'),_0x4cba30['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4df672,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x561601{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x449d1e,_0x2db242,_0x3127dd,_0x2e6aae,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x47a76c){super(_0x47a76c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x15dfdf,_0x46853f,_0x1c59bb,_0x52e6e6)=>{this['_model']['change'](()=>{for(const _0x4e22ad of[..._0x52e6e6,..._0x1c59bb])this['_model']['markers']['has'](_0x4e22ad)&&_0x47a76c['editing']['reconvertMarker'](_0x4e22ad);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x47a76c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x47a76c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x47a76c['config']['get']('trackChanges.trackFormatChanges'),_0x47a76c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x47a76c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x47a76c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2b691e=this['editor'];_0x2b691e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x114afa,{writer:_0x3d7ce5})=>{let _0x39ecc8='suggestion:'+_0x114afa['getAttribute']('suggestion-type')+':'+_0x114afa['getAttribute']('id');return _0x114afa['getAttribute']('marker-count')&&(_0x39ecc8+=':'+_0x114afa['getAttribute']('marker-count')),_0x3d7ce5['createElement']('$marker',{'data-name':_0x39ecc8});}}),_0x2b691e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2b691e['model']['document']['registerPostFixer'](_0x35f1c3=>{let _0xa481fb=!0x1;const _0x4865b6=Array['from'](_0x2b691e['model']['document']['differ']['getChangedMarkers']()),_0x2e856d=new Set();for(const {name:_0x41c2aa,data:_0x59ecbf}of _0x4865b6){const {group:_0x25521d,type:_0x38460b,subType:_0x948815,id:_0x874dcf}=this['_splitMarkerName'](_0x41c2aa);if('suggestion'!==_0x25521d)continue;const _0xbd184=_0x948815?'suggestion:'+_0x38460b+':'+_0x948815+':'+_0x874dcf:'suggestion:'+_0x38460b+':'+_0x874dcf,_0x11ca81=_0x2b691e['model']['markers']['getMarkersGroup'](_0xbd184),_0xa4a052=_0x2b691e['model']['markers']['get'](_0x41c2aa),_0x5a5172=this['_suggestions']['get'](_0x874dcf);if(null!=_0x59ecbf['newRange']){'formatInline'==_0x38460b&&(_0xa481fb=_0xa481fb||Wt(_0x59ecbf['newRange'],_0x41c2aa,_0x35f1c3,_0x2b691e['model']['schema']));const _0x6b9335='attribute'==_0x38460b&&this['_isBlockAttribute'](_0x948815['split']('|')[0x0]),_0x34017c='attribute'==_0x38460b&&this['_isInlineAttribute'](_0x948815['split']('|')[0x0]);if(_0x59ecbf['newRange']['isCollapsed']||'$graveyard'==_0x59ecbf['newRange']['root']['rootName']||'formatBlock'==_0x38460b&&!Qt(_0x59ecbf['newRange'])||_0x6b9335&&!Qt(_0x59ecbf['newRange'])||_0x34017c&&Xt(_0x59ecbf['newRange'])||'deletion'==_0x38460b&&Xt(_0x59ecbf['newRange'])||_0xa4a052&&Yt(_0xa4a052,_0x11ca81))_0x35f1c3['removeMarker'](_0x41c2aa),_0xa481fb=!0x0;else{if(!_0x5a5172||!_0x5a5172['isInContent'])continue;if(_0x59ecbf['newRange']&&_0x59ecbf['oldRange']&&_0x59ecbf['newRange']['isEqual'](_0x59ecbf['oldRange']))continue;_0x2e856d['add'](_0x5a5172);}}}return _0x2e856d['size']>0x0&&(_0xa481fb=!!this['_joinWithAdjacentSuggestions'](_0x2e856d)||_0xa481fb),_0xa481fb;}),_0x2b691e['model']['document']['registerPostFixer'](_0x32a5f7=>{let _0x539d12=!0x1;for(const _0x3aeee2 of _0x2b691e['model']['document']['differ']['getChanges']())if('insert'==_0x3aeee2['type'])for(const _0x3bdc3b of this['_suggestions']['values']()){if(_0x3bdc3b['isMultiRange']||!_0x3bdc3b['isInContent'])continue;const _0x70d2a1='formatBlock'==_0x3bdc3b['type'],_0x1d22e9=this['_getAttributeKey'](_0x3bdc3b),_0x29733b=_0x1d22e9&&this['_isBlockAttribute'](_0x1d22e9);if(!_0x70d2a1&&!_0x29733b)continue;const _0x19af63=_0x3bdc3b['getFirstRange']();if(_0x19af63['start']['parent']!=_0x19af63['end']['parent']&&!_0x19af63['end']['isAtEnd']){const _0x41a1a2=_0x2b691e['model']['createPositionAt'](_0x19af63['start']['nodeAfter'],'end'),_0x495cf2=_0x2b691e['model']['createRange'](_0x19af63['start'],_0x41a1a2);_0x32a5f7['updateMarker'](_0x3bdc3b['getFirstMarker'](),{'range':_0x495cf2}),_0x539d12=!0x0;}}return _0x539d12;}),_0x2b691e['model']['document']['registerPostFixer'](_0x245321=>this['_processAttributeChanges'](_0x245321)),_0x2b691e['model']['document']['registerPostFixer'](_0x57511d=>!_0x57511d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x57511d)),_0x2b691e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2b691e['model']['document']['on']('change:data',(_0x122a95,_0x206cb3)=>{if(!_0x206cb3['isLocal']||_0x206cb3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x353965=_0x2b691e['model']['document']['differ']['getChanges']();if(0x0==_0x353965['length'])return;const _0x1e4cc8=[],_0x55e0b1=_0x353965['filter'](_0x4f527=>'attribute'==_0x4f527['type']),_0x4b16f5=_0x353965['filter'](_0x3f74c0=>'insert'==_0x3f74c0['type']&&'$text'!=_0x3f74c0['name']);for(const _0x1b0f09 of _0x55e0b1)this['_isRegisteredAttribute'](_0x1b0f09['attributeKey'])&&_0x1e4cc8['push']({'key':_0x1b0f09['attributeKey'],'newValue':_0x1b0f09['attributeNewValue'],'oldValue':_0x1b0f09['attributeOldValue'],'range':Zt(_0x1b0f09['range'],_0x2b691e['model'])});for(const _0x1e244f of _0x4b16f5){if('rename'!=_0x1e244f['action']&&'refresh'!=_0x1e244f['action'])continue;const _0x47e975=tn(_0x1e244f['position']['nodeAfter'],_0x2b691e['model']),_0x59e6e0=_0x1e244f['before'];'rename'==_0x1e244f['action']&&_0x1e4cc8['push']({'key':m,'newValue':_0x1e244f['name'],'oldValue':_0x59e6e0['name'],'range':_0x47e975});for(const [_0x17877e,_0x18db99]of _0x59e6e0['attributes']){if(!this['_isRegisteredAttribute'](_0x17877e))continue;const _0xef5d76=_0x1e244f['attributes']['get'](_0x17877e);_0x18db99!==_0xef5d76&&_0x1e4cc8['push']({'key':_0x17877e,'newValue':_0xef5d76,'oldValue':_0x18db99,'range':_0x47e975});}for(const [_0x18a232,_0x165121]of _0x1e244f['attributes'])this['_isRegisteredAttribute'](_0x18a232)&&(_0x59e6e0['attributes']['has'](_0x18a232)||_0x1e4cc8['push']({'key':_0x18a232,'newValue':_0x165121,'oldValue':null,'range':_0x47e975}));}0x0!=_0x1e4cc8['length']&&_0x2b691e['model']['enqueueChange'](_0x206cb3,_0x5be145=>{const _0x16a50b=_0x4c54e4();for(const {range:_0x348486,key:_0x5edcd8,oldValue:_0x5e7304,newValue:_0x58a716}of _0x1e4cc8)this['markAttributeChange'](_0x348486,_0x5edcd8,_0x5e7304,_0x58a716,{'groupId':_0x16a50b});this['_reduceExistingSuggestions'](_0x5be145,_0x1e4cc8);});},{'priority':'lowest'}),_0x2b691e['model']['markers']['on']('update:suggestion',(_0x2e9fdd,_0x5569bf,_0x326862)=>{if(null==_0x326862){const {id:_0x1e148b}=this['_splitMarkerName'](_0x5569bf['name']),_0x339083=this['_suggestions']['get'](_0x1e148b);_0x339083&&_0x339083['addMarkerName'](_0x5569bf['name']);}}),_0x2b691e['model']['document']['on']('change:data',()=>{const _0x1852b5=Array['from'](_0x2b691e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2a19f4=>'suggestion'===this['_splitMarkerName'](_0x2a19f4['name'])['group']);if(0x0===_0x1852b5['length'])return;_0x1852b5['sort']((_0x4bc129,_0x313084)=>{const _0x44207f=_0x4bc129['data']['oldRange'],_0x51e385=_0x313084['data']['oldRange'];return null===_0x44207f&&null===_0x51e385?0x0:null===_0x44207f&&null!==_0x51e385?-0x1:null!==_0x44207f&&null===_0x51e385?0x1:_0x44207f['start']['isBefore'](_0x51e385['start'])?-0x1:0x1;});const _0xd71ad9=new Set(),_0xb0a1aa=new Set();for(const {name:_0x32542e,data:_0x2cab5e}of _0x1852b5){const {id:_0x5c9354}=this['_splitMarkerName'](_0x32542e);if(null===_0x2cab5e['oldRange']){const _0x245abd=this['_handleNewSuggestionMarker'](_0x32542e);_0xb0a1aa['add'](_0x245abd);}else{const _0x2afdbd=this['_suggestions']['get'](_0x5c9354);null!==_0x2cab5e['newRange']||_0x2afdbd['isInContent']?(_0xd71ad9['add'](_0x2afdbd['head']),_0xb0a1aa['add'](_0x2afdbd)):this['_removeSuggestion'](_0x2afdbd);}}_0xb0a1aa['size']>0x0&&this['_refreshSuggestionsChain'](_0xb0a1aa);for(const _0x6840d5 of _0xd71ad9)this['fire']('suggestionChanged',_0x6840d5);}),_0x2b691e['model']['on']('applyOperation',(_0x4b6135,_0x41f25c)=>{const _0xa1b3b8=_0x41f25c[0x0];if(!this['_suggestions']['size'])return;if(!_0xa1b3b8['isDocumentOperation'])return;if(_0xa1b3b8['batch']['isUndo']||!_0xa1b3b8['batch']['isLocal'])return;let _0x387973,_0xfacadf;switch(_0xa1b3b8['type']){case'insert':_0x387973=_0x2b691e['model']['createPositionAt'](_0xa1b3b8['position']),_0xfacadf=_0x387973['getShiftedBy'](_0xa1b3b8['howMany']);break;case'split':_0x387973=_0x2b691e['model']['createPositionAt'](_0xa1b3b8['splitPosition']),_0xfacadf=_0x2b691e['model']['createPositionAt'](_0xa1b3b8['moveTargetPosition']);break;case'move':_0x387973=_0x2b691e['model']['createPositionAt'](_0xa1b3b8['targetPosition']),_0xfacadf=_0x387973['getShiftedBy'](_0xa1b3b8['howMany']);break;default:return;}const _0x497599=_0x2b691e['model']['createRange'](_0x387973,_0xfacadf);_0x2b691e['model']['change'](()=>{for(const {suggestion:_0x416ba2,meta:_0x51c170}of this['_findSuggestions'](_0x497599)){if(_0x416ba2['isMultiRange'])continue;if('formatInline'==_0x416ba2['type'])continue;const _0x2922dd=this['_getAttributeKey'](_0x416ba2);if(_0x2922dd&&this['_isBlockAttribute'](_0x2922dd)&&'split'!=_0xa1b3b8['type'])continue;const _0x33d35c=_0x416ba2['data']&&_0x416ba2['data']['multipleBlocks'];('formatBlock'!=_0x416ba2['type']||'split'==_0xa1b3b8['type']&&!_0x33d35c)&&(_0x51c170['containsRangeInObject']||'insertion'==_0x416ba2['type']&&_0x51c170['isOwn']||_0x416ba2['getFirstRange']()['containsRange'](_0x497599)&&this['_breakSuggestionMarker'](_0x416ba2,_0x387973,_0xfacadf));}});},{'priority':'lowest'}),_0x2b691e['model']['on']('deleteContent',(_0x5c575f,_0x471fa9)=>{const _0x120cbb=_0x471fa9[0x0],_0x2f82f9=_0x471fa9[0x1];if(_0x2f82f9&&_0x2f82f9['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x120cbb['isCollapsed'])return;const _0x5b0ad4=_0x2b691e['model']['schema'],{start:_0x27e8f2,end:_0x261873}=_0x120cbb['getFirstRange'](),_0x412b0f=_0x27e8f2['nodeAfter']&&_0x5b0ad4['isLimit'](_0x27e8f2['nodeAfter'])?null:_0x5b0ad4['getNearestSelectionRange'](_0x27e8f2,'forward'),_0x5b288b=_0x261873['nodeBefore']&&_0x5b0ad4['isLimit'](_0x261873['nodeBefore'])?null:_0x5b0ad4['getNearestSelectionRange'](_0x261873,'backward'),_0x15838c=_0x2b691e['model']['createRange'](_0x412b0f?_0x412b0f['start']:_0x27e8f2,_0x5b288b?_0x5b288b['end']:_0x261873);_0x2b691e['model']['change'](_0x3ac2a9=>{this['markDeletion'](_0x15838c);const _0x1a670e=_0x2b691e['model']['schema']['getNearestSelectionRange'](_0x15838c['start']);_0x120cbb['is']('documentSelection')?_0x3ac2a9['setSelection'](_0x1a670e):_0x120cbb['setTo'](_0x1a670e);}),_0x5c575f['stop']();},{'priority':_0x3725e9['normal']+0xa}),_0x2b691e['model']['on']('insertContent',(_0x51b9c8,_0x130de5)=>{const _0x19e57f=_0x130de5[_0x130de5['length']-0x1];_0x19e57f&&_0x19e57f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2b691e['model']['change'](()=>{let _0x4acd1c=_0x2b691e['model']['insertContent'](_0x130de5[0x0],_0x130de5[0x1],_0x130de5[0x2],{'forceDefaultExecution':!0x0});if(!_0x4acd1c)return;_0x51b9c8['return']=_0x4acd1c['clone']();const _0x420aac=_0x4acd1c['end']['nodeBefore'],_0x21d148=_0x2b691e['model']['schema'];_0x420aac&&_0x21d148['isBlock'](_0x420aac)&&!_0x21d148['isObject'](_0x420aac)&&(_0x4acd1c=_0x2b691e['model']['createRange'](_0x4acd1c['start'],_0x2b691e['model']['createPositionAt'](_0x420aac,'end'))),this['markInsertion'](_0x4acd1c);}),_0x51b9c8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf57182=new O(_0x2b691e,this['_suggestions']);_0x2b691e['commands']['add']('acceptSuggestion',_0xf57182),this['enableCommand']('acceptSuggestion');const _0x58cf0f=new x(_0x2b691e,this['_suggestions']);_0x2b691e['commands']['add']('discardSuggestion',_0x58cf0f),this['enableCommand']('discardSuggestion'),_0x2b691e['commands']['add']('acceptAllSuggestions',new M(_0x2b691e,_0xf57182,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2b691e['commands']['add']('discardAllSuggestions',new M(_0x2b691e,_0x58cf0f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2b691e['commands']['add']('acceptSelectedSuggestions',new R(_0x2b691e,_0xf57182,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2b691e['commands']['add']('discardSelectedSuggestions',new R(_0x2b691e,_0x58cf0f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x42968e=_0x2b691e['plugins']['get']('CommentsRepository');this['listenTo'](_0x42968e,'addComment',(_0x3ef8e6,{threadId:_0xef8a6a})=>{const _0x571edf=this['_suggestions']['get'](_0xef8a6a);_0x571edf&&_0x571edf['commentThread']&&0x1===_0x571edf['commentThread']['length']&&this['_updateSuggestionData'](_0xef8a6a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x42968e,'removeComment',(_0x9f5855,{threadId:_0x59f2bb})=>{const _0x96522c=this['_suggestions']['get'](_0x59f2bb);_0x96522c&&_0x96522c['commentThread']&&!_0x96522c['commentThread']['length']&&this['_updateSuggestionData'](_0x59f2bb,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3da7e8){const _0x30e0dc=_0x2d9187([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]),_0x56654c=0x3d8d0df,_0xb80547=0x3df520f^_0x56654c,_0x472bcf=window[_0x2d9187([0x44,0x61,0x74,0x65])][_0x2d9187([0x6e,0x6f,0x77])](),_0x9fd354=_0x3da7e8[_0x2d9187([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x329d51=new window[(_0x2d9187([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x340499=>{_0x9fd354[_0x2d9187([0x6f,0x6e,0x63,0x65])](_0x2d9187([0x72,0x65,0x61,0x64,0x79]),_0x340499);}),_0x4bd0eb={[_0x2d9187([0x6b,0x74,0x79])]:_0x2d9187([0x45,0x43]),[_0x2d9187([0x75,0x73,0x65])]:_0x2d9187([0x73,0x69,0x67]),[_0x2d9187([0x63,0x72,0x76])]:_0x2d9187([0x50,0x2d,0x32,0x35,0x36]),[_0x2d9187([0x78])]:_0x2d9187([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]),[_0x2d9187([0x79])]:_0x2d9187([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]),[_0x2d9187([0x61,0x6c,0x67])]:_0x2d9187([0x45,0x53,0x32,0x35,0x36])},_0x10cdec=_0x9fd354[_0x2d9187([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2d9187([0x67,0x65,0x74])](_0x2d9187([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x440a09(){let _0x4c98d1,_0x4c23ff=null,_0x14b120=null;try{if(_0x10cdec==_0x2d9187([0x47,0x50,0x4c]))return _0x2d9187([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c98d1=_0x1d92be(),!_0x4c98d1)return _0x2d9187([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c98d1[_0x2d9187([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x14b120=_0x2f7d58(_0x4c98d1[_0x2d9187([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c98d1[_0x2d9187([0x6a,0x74,0x69])])),await _0x1cc157()?_0x3d77c4()?_0x145cdf()?_0x2d9187([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x197e47()?(_0x4c98d1[_0x2d9187([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d9187([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4c23ff=_0x6c1a4(_0x2d9187([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x39196d()):_0x2d9187([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2d9187([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2d9187([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2d9187([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x145cdf(){const _0x590660=[_0x2d9187([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2d9187([0x74,0x72,0x69,0x61,0x6c])][_0x2d9187([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c98d1[_0x2d9187([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x472bcf/0x3e8:0xe10*_0xb80547;return _0x4c98d1[_0x2d9187([0x65,0x78,0x70])]<_0x590660;}function _0x3d77c4(){const _0x47ec1d=_0x4c98d1[_0x2d9187([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x47ec1d)return!0x1;if(_0x47ec1d[_0x2d9187([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d9187([0x2a])))return!0x0;if(_0x47ec1d[_0x2d9187([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d9187([0x54,0x43])))return!0x0;if(_0x47ec1d[_0x2d9187([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d9187([0x52,0x54,0x43]))){if(_0xad7958())return!0x0;if(_0x4f1bc5()||_0x219fad())return!0x0;}return!0x1;}function _0x197e47(){const _0x1a1a23=_0x4c98d1[_0x2d9187([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a1a23||0x0==_0x1a1a23[_0x2d9187([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe2104d}=new URL(window[_0x2d9187([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a1a23[_0x2d9187([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe2104d))return!0x0;const _0x374899=_0xe2104d[_0x2d9187([0x73,0x70,0x6c,0x69,0x74])](_0x2d9187([0x2e]));return _0x1a1a23[_0x2d9187([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x167d93=>_0x167d93[_0x2d9187([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d9187([0x2a])))[_0x2d9187([0x6d,0x61,0x70])](_0x796961=>_0x796961[_0x2d9187([0x73,0x70,0x6c,0x69,0x74])](_0x2d9187([0x2e])))[_0x2d9187([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x591ffb=>_0x591ffb[_0x2d9187([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x374899[_0x2d9187([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d9187([0x6d,0x61,0x70])](_0x17cc13=>Array(_0x374899[_0x2d9187([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x17cc13[_0x2d9187([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d9187([0x66,0x69,0x6c,0x6c])](_0x17cc13[0x0]===_0x2d9187([0x2a])?_0x2d9187([0x2a]):'')[_0x2d9187([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x17cc13))[_0x2d9187([0x73,0x6f,0x6d,0x65])](_0x5e0587=>_0x374899[_0x2d9187([0x65,0x76,0x65,0x72,0x79])]((_0x247fdb,_0xaa9045)=>_0x5e0587[_0xaa9045]===_0x247fdb||_0x5e0587[_0xaa9045]===_0x2d9187([0x2a])));}function _0x39196d(){return _0x4c23ff&&_0x14b120?new window[(_0x2d9187([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c6322,_0x58fcd1)=>{_0x4c23ff[_0x2d9187([0x74,0x68,0x65,0x6e])](_0x5c6322,_0x58fcd1),_0x14b120[_0x2d9187([0x74,0x68,0x65,0x6e])](_0x75e8af=>{_0x75e8af!=_0x2d9187([0x56,0x61,0x6c,0x69,0x64])&&_0x5c6322(_0x75e8af);},_0x58fcd1);}):_0x4c23ff||_0x14b120||_0x2d9187([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f7d58(_0x513ed8,_0x15b2b7){return new window[(_0x2d9187([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16bff8=>{if(_0x368bc3())return _0x16bff8(_0x2d9187([0x56,0x61,0x6c,0x69,0x64]));_0x4b374f(),_0x9fd354[_0x2d9187([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2d9187([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d3435=!0x1;const _0x37d272=_0x4c54e4();function _0x44a248(_0x26e97f){return!!_0x26e97f&&(typeof _0x26e97f===_0x2d9187([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x26e97f===_0x2d9187([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x26e97f[_0x2d9187([0x74,0x68,0x65,0x6e])]===_0x2d9187([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x26e97f[_0x2d9187([0x63,0x61,0x74,0x63,0x68])]===_0x2d9187([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e7c40(_0x5908fa){_0x203bcb(_0x5908fa)[_0x2d9187([0x74,0x68,0x65,0x6e])](_0x51a6eb=>{if(!_0x51a6eb||_0x51a6eb[_0x2d9187([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2d9187([0x6f,0x6b]))return _0x2d9187([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x30916a(_0xa1fcc9(_0x37d272+_0x15b2b7))!=_0x51a6eb[_0x2d9187([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2d9187([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2d9187([0x56,0x61,0x6c,0x69,0x64]);})[_0x2d9187([0x74,0x68,0x65,0x6e])](_0x540147=>(_0x12dda5(),_0x540147),()=>{const _0x26bab4=_0x3d8d0e();return null==_0x26bab4?(_0x12dda5(),_0x2d9187([0x56,0x61,0x6c,0x69,0x64])):_0x2d9187(_0x472bcf-_0x26bab4>(0x27d454df^_0x56654c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2d9187([0x74,0x68,0x65,0x6e])](_0x16bff8)[_0x2d9187([0x63,0x61,0x74,0x63,0x68])](()=>{_0x16bff8(_0x2d9187([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13a473=0x3ee3e5f^_0x56654c;function _0x12dda5(){const _0x13cac3=_0x2d9187([0x6c,0x6c,0x63,0x74,0x2d])+_0x30916a(_0xa1fcc9(_0x513ed8)),_0xab737c=_0x26a21d(_0x30916a(window[_0x2d9187([0x4d,0x61,0x74,0x68])][_0x2d9187([0x63,0x65,0x69,0x6c])](_0x472bcf/_0x13a473)));window[_0x2d9187([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d9187([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13cac3,_0xab737c);}function _0x3d8d0e(){const _0x47e14c=_0x2d9187([0x6c,0x6c,0x63,0x74,0x2d])+_0x30916a(_0xa1fcc9(_0x513ed8)),_0x54e196=window[_0x2d9187([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d9187([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47e14c);return _0x54e196?window[_0x2d9187([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26a21d(_0x54e196),0x10)*_0x13a473:null;}function _0x203bcb(_0x4dd65a){return new window[(_0x2d9187([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e631c,_0x18352e)=>{_0x4dd65a[_0x2d9187([0x74,0x68,0x65,0x6e])](_0x3e631c,_0x18352e),window[_0x2d9187([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x18352e,0x3d9041f^_0x56654c);});}}_0x9fd354[_0x2d9187([0x6f,0x6e])](_0x2d9187([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26a14b,_0xb4379e)=>{if(_0xb4379e[0x0]!=_0x513ed8)return _0x16bff8(_0x2d9187([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb4379e[0x1]={..._0xb4379e[0x1],[_0x2d9187([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37d272};},{[_0x2d9187([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d9187([0x68,0x69,0x67,0x68])}),_0x9fd354[_0x2d9187([0x6f,0x6e])](_0x2d9187([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb5a014=>{_0x44a248(_0xb5a014[_0x2d9187([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d3435=!0x0,_0x2e7c40(_0xb5a014[_0x2d9187([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2d9187([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d9187([0x6c,0x6f,0x77])}),_0x329d51[_0x2d9187([0x74,0x68,0x65,0x6e])](()=>{_0x2d3435||_0x16bff8(_0x2d9187([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x368bc3(){return _0x9fd354[_0x2d9187([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d9187([0x76,0x69,0x65,0x77])][_0x2d9187([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2d9187([0x61,0x75,0x74,0x6f]);}function _0x4b374f(){_0x9fd354[_0x2d9187([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d9187([0x76,0x69,0x65,0x77])][_0x2d9187([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d9187([0x61,0x75,0x74,0x6f]);}}function _0x6c1a4(_0x382abc){const _0x3c6c7d=[new window[(_0x2d9187([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dfb09=>setTimeout(_0x1dfb09,0x3d1ee13^_0x56654c)),_0x329d51[_0x2d9187([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2d9187([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x427fd1=>{let _0x5e7c4c=0x0;_0x9fd354[_0x2d9187([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d9187([0x6f,0x6e])](_0x2d9187([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38b5b9,_0x55c72c)=>{_0x55c72c[0x0][_0x2d9187([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5e7c4c++,_0x5e7c4c==(0x3d8d537^_0x56654c)&&(_0x427fd1(),_0x38b5b9[_0x2d9187([0x6f,0x66,0x66])]());});}))];return window[_0x2d9187([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d9187([0x72,0x61,0x63,0x65])](_0x3c6c7d)[_0x2d9187([0x74,0x68,0x65,0x6e])](()=>_0x382abc);}async function _0x4e9615(){await _0x329d51,_0x9fd354[_0x2d9187([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d9187([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2cabdd,_0x9fd354[_0x2d9187([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d9187([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2cabdd,_0x9fd354[_0x2d9187([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2d9187([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xad7958(){return _0x5e6c09(_0x2d9187([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x49ffae(_0x2d9187([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2d9187([0x73,0x74,0x61,0x74,0x65])]==_0x2d9187([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4f1bc5(){return _0x5e6c09(_0x2d9187([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 _0x219fad(){return _0x5e6c09(_0x2d9187([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4e845a(_0x53431a){const _0x4af98e=_0x2cb4ae();_0x9fd354[_0x4af98e]=_0x2d9187([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x53431a,_0x53431a!=_0x2d9187([0x56,0x61,0x6c,0x69,0x64])&&_0x4e9615();}function _0x2cb4ae(){const _0x429029=window[_0x2d9187([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2d9187([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2d9187([0x6e,0x6f,0x77])]())[_0x2d9187([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2d9187([0x2e]),'');let _0x26b65c=_0x2d9187([0x52]);for(let _0x144ed4=0x0;_0x144ed4<_0x429029[_0x2d9187([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x144ed4+=0x2){let _0x51215b=window[_0x2d9187([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x429029[_0x2d9187([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x144ed4,_0x144ed4+0x2));_0x51215b>=_0x30e0dc[_0x2d9187([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51215b-=_0x30e0dc[_0x2d9187([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26b65c+=_0x30e0dc[_0x51215b];}return _0x26b65c;}function _0x1d92be(){const _0x3bdee6=_0x10cdec[_0x2d9187([0x73,0x70,0x6c,0x69,0x74])](_0x2d9187([0x2e]));if(0x3!=_0x3bdee6[_0x2d9187([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f6e21(_0x3bdee6[0x1]);function _0x3f6e21(_0x5783f1){const _0x4ad6c=_0x41f79c(_0x5783f1);return _0x4ad6c&&_0x835cf3()?_0x4ad6c:null;function _0x835cf3(){const _0x312b28=_0x4ad6c[_0x2d9187([0x6a,0x74,0x69])],_0x4b0b8e=window[_0x2d9187([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x312b28[_0x2d9187([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x312b28[_0x2d9187([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x264df2={..._0x4ad6c,[_0x2d9187([0x6a,0x74,0x69])]:_0x312b28[_0x2d9187([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x312b28[_0x2d9187([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x264df2[_0x2d9187([0x76,0x63])],_0xa1fcc9(_0x264df2)==_0x4b0b8e;}}}async function _0x1cc157(){let _0x3a47c2=!0x0;try{const _0x3fbd9a=_0x10cdec[_0x2d9187([0x73,0x70,0x6c,0x69,0x74])](_0x2d9187([0x2e])),[_0x3325b3,_0x1e1e0f,_0x14ab0d]=_0x3fbd9a;return _0x4ae3f1(_0x3325b3),await _0x3ec20c(_0x3325b3,_0x1e1e0f,_0x14ab0d),_0x3a47c2;}catch{return!0x1;}function _0x4ae3f1(_0x416b0f){const _0x3f2de5=_0x41f79c(_0x416b0f);_0x3f2de5&&_0x3f2de5[_0x2d9187([0x61,0x6c,0x67])]==_0x2d9187([0x45,0x53,0x32,0x35,0x36])||(_0x3a47c2=!0x1);}async function _0x3ec20c(_0x2b13ed,_0x3fd716,_0x55f85a){const _0x4508dc=window[_0x2d9187([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2d9187([0x66,0x72,0x6f,0x6d])](_0x2b87f2(_0x55f85a),_0x4c428c=>_0x4c428c[_0x2d9187([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x252dac=new window[(_0x2d9187([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2d9187([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b13ed+_0x2d9187([0x2e])+_0x3fd716),_0x4506cd=window[_0x2d9187([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2d9187([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4506cd)return;const _0x597e85=await _0x4506cd[_0x2d9187([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2d9187([0x6a,0x77,0x6b]),_0x4bd0eb,{[_0x2d9187([0x6e,0x61,0x6d,0x65])]:_0x2d9187([0x45,0x43,0x44,0x53,0x41]),[_0x2d9187([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2d9187([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2d9187([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4506cd[_0x2d9187([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2d9187([0x6e,0x61,0x6d,0x65])]:_0x2d9187([0x45,0x43,0x44,0x53,0x41]),[_0x2d9187([0x68,0x61,0x73,0x68])]:{[_0x2d9187([0x6e,0x61,0x6d,0x65])]:_0x2d9187([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x597e85,_0x4508dc,_0x252dac)||(_0x3a47c2=!0x1);}}function _0x41f79c(_0x2550f1){return _0x2550f1[_0x2d9187([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2d9187([0x65,0x79]))?JSON[_0x2d9187([0x70,0x61,0x72,0x73,0x65])](_0x2b87f2(_0x2550f1)):null;}function _0x2b87f2(_0x5e6de0){return window[_0x2d9187([0x61,0x74,0x6f,0x62])](_0x5e6de0[_0x2d9187([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2d9187([0x2b]))[_0x2d9187([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2d9187([0x2f])));}function _0xa1fcc9(_0x446dca){let _0x438b0e=0x1505;function _0x552222(_0x178331){for(let _0x2644fe=0x0;_0x2644fe<_0x178331[_0x2d9187([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2644fe++){const _0x3b23e2=_0x178331[_0x2d9187([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2644fe);_0x438b0e=(_0x438b0e<<0x5)+_0x438b0e+_0x3b23e2,_0x438b0e&=_0x438b0e;}}function _0x567135(_0x58f32b){Array[_0x2d9187([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58f32b)?_0x58f32b[_0x2d9187([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x567135):_0x58f32b&&typeof _0x58f32b==_0x2d9187([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2d9187([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58f32b)[_0x2d9187([0x73,0x6f,0x72,0x74])]()[_0x2d9187([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x14e447,_0x529393])=>{_0x552222(_0x14e447),_0x567135(_0x529393);}):_0x552222(window[_0x2d9187([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58f32b));}return _0x567135(_0x446dca),_0x438b0e>>>0x0;}function _0x30916a(_0x5a7802){return _0x5a7802[_0x2d9187([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2d9187([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2d9187([0x30]));}function _0x26a21d(_0x2b0665){return _0x2b0665[_0x2d9187([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2d9187([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2d9187([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e6c09(_0xba0317){return _0x9fd354[_0x2d9187([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2d9187([0x68,0x61,0x73])](_0xba0317);}function _0x49ffae(_0x5d623e){return _0x9fd354[_0x2d9187([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2d9187([0x67,0x65,0x74])](_0x5d623e);}function _0x2cabdd(){}function _0x2d9187(_0x182671){return _0x182671['map'](_0x12dc21=>String['fromCharCode'](_0x12dc21))['join']('');}_0x4e845a(await _0x440a09());}(this);}set['adapter'](_0x57a134){if(this['_adapter'])throw new _0xcae84a('track-changes-adapter-already-set',this);this['_adapter']=_0x57a134;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5dca87=!0x1,toJSON:_0x2c3a71=!0x1}={}){const _0x360e45=[];for(const _0x1ae78c of this['_suggestions']['values']())_0x5dca87&&!_0x1ae78c['isInContent']||_0x360e45['push'](_0x1ae78c);return _0x2c3a71?_0x360e45['map'](_0x45ccae=>_0x45ccae['toJSON']()):_0x360e45;}['getSuggestion'](_0x1408bf){const _0x17557b=this['_suggestions']['get'](_0x1408bf);if(!_0x17557b)throw new _0xcae84a('track-changes-suggestion-not-found',this);return _0x17557b;}['hasSuggestion'](_0xe90cf9){return this['_suggestions']['has'](_0xe90cf9);}['addSuggestionData'](_0x582023){const {authorId:_0x490312,id:_0x2ed031,originalSuggestionId:_0x40224b,attributes:_0x7cb27a}=_0x582023,[_0x46d9ee,_0x2f186a]=_0x582023['type']['split'](':'),_0x15f6e1=this['_suggestions']['get'](_0x2ed031)||this['_createSuggestion'](_0x46d9ee,_0x2f186a,_0x2ed031,_0x490312,_0x7cb27a,_0x40224b);if(this['_addThreadToSuggestion'](_0x15f6e1),this['_checkSuggestionCorrectness'](_0x15f6e1,_0x46d9ee,_0x2f186a||null,_0x490312),_0x15f6e1['createdAt']=_0x582023['createdAt'],_0x15f6e1['_isDataLoaded']=!0x0,_0x7cb27a&&_0x7cb27a['@external']){const _0x576fb2=_0x7cb27a['@external'],_0x181eb6=this['_getExternalAuthor'](_0x576fb2['authorName']);_0x15f6e1['authoredAt']=_0x576fb2['createdAt'],_0x15f6e1['author']=_0x181eb6,_0x15f6e1['isExternal']=!0x0;}else _0x15f6e1['authoredAt']=_0x582023['createdAt'];switch(_0x582023['data']&&(_0x15f6e1['data']=_0x582023['data']),_0x582023['attributes']&&(_0x15f6e1['attributes']=_0x582023['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x15f6e1['_saved']=!0x0),this['_suggestionState']['get'](_0x15f6e1)){case'notReady':this['_suggestionState']['set'](_0x15f6e1,'dataReady');break;case'markerReady':_0x15f6e1['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x15f6e1])),this['_refreshSuggestionsChain'](new Set([_0x15f6e1])),this['_suggestionState']['set'](_0x15f6e1,'ready'),this['fire']('suggestionLoaded',_0x15f6e1)):this['_suggestionState']['set'](_0x15f6e1,'removed');}return _0x15f6e1;}['acceptSuggestion'](_0x57f421){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xbc979f of _0x57f421['getAllAdjacentSuggestions']())_0xbc979f['accept']();});});}['discardSuggestion'](_0x3ddab1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x20c245 of _0x3ddab1['getAllAdjacentSuggestions']())_0x20c245['discard']();});});}['enableCommand'](_0x48e6bd,_0x2c969a){const _0x184d88=this['editor']['commands']['get'](_0x48e6bd);if(!_0x184d88)throw new _0xcae84a('track-changes-command-not-found',this,{'commandName':_0x48e6bd});if(this['_enabledCommands']['has'](_0x184d88))throw new _0xcae84a('track-changes-enable-command-twice',this,{'commandName':_0x48e6bd});this['_enabledCommands']['add'](_0x184d88),_0x2c969a&&_0x184d88['on']('execute',(_0x515e88,_0x49edab)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x49edab['length']>0x0&&_0x49edab[_0x49edab['length']-0x1]&&_0x49edab[_0x49edab['length']-0x1]['forceDefaultExecution']?_0x49edab['pop']():(_0x515e88['return']=_0x2c969a((..._0x3ac13d)=>_0x184d88['execute'](..._0x3ac13d,{'forceDefaultExecution':!0x0}),..._0x49edab),_0x515e88['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5e3744){let _0x596fad,_0x103bf2;const _0x49a1f2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x596fad=_0x5e3744();}catch(_0x853ab8){_0x103bf2=_0x853ab8;}return _0x49a1f2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x103bf2&&_0xcae84a['rethrowUnexpectedError'](_0x103bf2,this),_0x596fad;}['markInsertion'](_0x265603,_0x179620=null,_0x42c65b={}){if(_0x265603['isCollapsed'])return null;const _0x4415a4=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x42c65b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xb736dc,meta:_0xf82f77}of this['_findSuggestions'](_0x265603,'insertion'))if(_0xf82f77['isOwn']){if(!_0xf82f77['isNextTo']){if(_0xf82f77['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0xb736dc,_0x42c65b))continue;return _0xb736dc;}if(sn(_0xb736dc,_0x42c65b))return _0xb736dc;this['_breakSuggestionMarker'](_0xb736dc,_0x265603['start'],_0x265603['end']);break;}if(_0x179620==_0xb736dc['subType']&&sn(_0xb736dc,_0x42c65b)){const _0x766097=_0xb736dc['getFirstRange']();return _0x766097['start']['isEqual'](_0x265603['end'])?this['_setSuggestionRange'](_0xb736dc,this['_model']['createRange'](_0x265603['start'],_0x766097['end'])):this['_setSuggestionRange'](_0xb736dc,this['_model']['createRange'](_0x766097['start'],_0x265603['end'])),_0xb736dc;}}const _0x264dcb=_0x4c54e4(),_0x41f7a1=_0x4415a4['id'],_0x3d7145=_0x179620?'insertion:'+_0x179620:'insertion',_0x43f491=this['_setSuggestionData']({'id':_0x264dcb,'type':_0x3d7145,'createdAt':new Date(),'authorId':_0x41f7a1,'attributes':_0x42c65b});return this['_addSuggestionMarker'](_0x3d7145,_0x264dcb,_0x41f7a1,_0x265603),_0x43f491;}['markMultiRangeInsertion'](_0x210fd3,_0x1309b9='multi',_0x40fd21={}){const _0x181239=this['editor']['plugins']['get']('Users')['me'],_0x568a61=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1309b9,'join');this['_trackingSessionId']&&(_0x40fd21['trackingSessionId']=this['_trackingSessionId']);for(const _0x3f23c4 of this['getSuggestions']())if(_0x3f23c4['author']['id']==_0x181239['id']&&'insertion'==_0x3f23c4['type']&&_0x3f23c4['subType']==_0x1309b9&&sn(_0x3f23c4,_0x40fd21)&&(_0x568a61(_0x3f23c4['getRanges'](),_0x210fd3)||_0x568a61(_0x210fd3,_0x3f23c4['getRanges']()))){for(const _0x4869eb of _0x210fd3)_0x3f23c4['addRange'](_0x4869eb);return _0x3f23c4;}for(const {suggestion:_0x484885,meta:_0x35f708}of this['_findSuggestions'](_0x210fd3,'insertion')){if(!_0x35f708['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x35f708['containsRangeInObject'])continue;if(!sn(_0x484885,_0x40fd21))continue;let _0x38aff8=!0x0;for(const _0x586742 of _0x484885['getRanges']())for(const _0x2727c2 of _0x210fd3)if(!_0x586742['containsRange'](_0x2727c2)){_0x38aff8=!0x1;break;}if(_0x38aff8)return _0x484885;}const _0x1b82ac=_0x4c54e4(),_0x1e3451=_0x181239['id'],_0x4f00c9='insertion:'+_0x1309b9,_0x478165=this['_setSuggestionData']({'id':_0x1b82ac,'type':_0x4f00c9,'createdAt':new Date(),'authorId':_0x1e3451,'attributes':_0x40fd21});for(const _0x5bed6d of _0x210fd3)this['_addSuggestionMarker'](_0x4f00c9,_0x1b82ac,_0x1e3451,_0x5bed6d,T['getMultiRangeId']());return _0x478165;}['markInlineFormat'](_0x4294c4,_0x3b12c3,_0x11ee68=null,_0x415130={}){if(_0x11ee68=_0x11ee68||Ht(_0x3b12c3),_0x4294c4['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x415130['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1b6d82=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11ee68,'accept');return this['forceDefaultExecution'](()=>_0x1b6d82([_0x4294c4],_0x3b12c3,_0x415130)),null;}const _0x5c2454=this['editor']['plugins']['get']('Users')['me'],_0x1b7f7e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2bbdbb,meta:_0x50de52}of this['_findSuggestions'](_0x4294c4,'insertion'))_0x50de52['isOwn']&&!_0x50de52['isInsideObject']&&_0x1b7f7e['push'](..._0x2bbdbb['getRanges']());}const _0x4cccef=function(_0x302b27,_0x21dd3a){const _0x509678=[];for(const _0x376d21 of _0x21dd3a){const _0x5041af=_0x302b27['getIntersection'](_0x376d21);_0x5041af&&_0x509678['push'](_0x5041af);}return _0x509678;}(_0x4294c4,_0x1b7f7e),_0x362749=function(_0xf1ac79,_0xdf2767){const _0x317322=[_0xf1ac79];for(const _0x3f56f7 of _0xdf2767){let _0x218b88=0x0;for(;_0x218b88<_0x317322['length'];){const _0x447e35=_0x317322[_0x218b88]['getDifference'](_0x3f56f7);_0x317322['splice'](_0x218b88,0x1,..._0x447e35),_0x218b88+=_0x447e35['length'];}}return _0x317322;}(_0x4294c4,_0x1b7f7e);_0x4cccef['length']&&this['_model']['change'](()=>{for(const _0x3d8cd0 of _0x4cccef){const _0x425d95=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11ee68,'accept');this['forceDefaultExecution'](()=>_0x425d95([_0x3d8cd0],_0x3b12c3,_0x415130));}});for(const _0x577cc9 of _0x362749){let _0x3a1d9d=null,_0x42470b=_0x577cc9['start'],_0x4f0b34=_0x577cc9['end'];for(const {suggestion:_0x1a3525,meta:_0x2dd9f3}of this['_findSuggestions'](_0x577cc9,'formatInline')){if(!_0x2dd9f3['isOwn'])continue;if(_0x1a3525['subType']!=_0x11ee68)continue;if(!sn(_0x1a3525,_0x415130))continue;const _0x211740=_0x1a3525['getFirstRange']();if(_0x211740['containsRange'](_0x577cc9,!0x0))return null;_0x42470b=_0x42470b['isBefore'](_0x211740['start'])?_0x42470b:_0x211740['start'],_0x4f0b34=_0x4f0b34['isAfter'](_0x211740['end'])?_0x4f0b34:_0x211740['end'],_0x3a1d9d?_0x211740['start']['isBefore'](_0x3a1d9d['getFirstRange']()['start'])?(_0x3a1d9d['removeMarkers'](),_0x3a1d9d=_0x1a3525):_0x1a3525['removeMarkers']():_0x3a1d9d=_0x1a3525;}const _0x3de1ca=this['_model']['createRange'](_0x42470b,_0x4f0b34);if(_0x3a1d9d)this['_setSuggestionRange'](_0x3a1d9d,_0x3de1ca);else{const _0x1a53c4=_0x4c54e4(),_0x2c9c10=_0x5c2454['id'];this['_setSuggestionData']({'id':_0x1a53c4,'type':'formatInline:'+_0x11ee68,'data':_0x3b12c3,'createdAt':new Date(),'authorId':_0x2c9c10,'attributes':_0x415130}),this['_addSuggestionMarker']('formatInline:'+_0x11ee68,_0x1a53c4,_0x2c9c10,_0x3de1ca);}}return null;}['markBlockFormat'](_0x2c4e1f,_0x2b53a2,_0x209393=[],_0x107201=null,_0x429c0a={}){_0x2b53a2['formatGroupId']||(_0x2b53a2['formatGroupId']=_0x2b53a2['commandName']),_0x2b53a2['multipleBlocks']=_0x2c4e1f['is']('range'),_0x107201=_0x107201||Ht(_0x2b53a2);const _0x3146de=_0x209393['map'](_0x3c2fe5=>tn(_0x3c2fe5,this['_model'])),_0xa99551=_0x2c4e1f['is']('range')?_0x2c4e1f:tn(_0x2c4e1f,this['_model']);if(this['_trackingSessionId']&&(_0x429c0a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3f8793=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x107201,'accept');return this['forceDefaultExecution'](()=>_0x3f8793([_0xa99551],_0x2b53a2,_0x429c0a)),null;}_0x3146de['push'](_0xa99551);let _0x379ac6=!0x0;for(const _0x53ce92 of _0x3146de)if(!this['_rangeIsInLocalUserInsertion'](_0x53ce92)){_0x379ac6=!0x1;break;}if(_0x379ac6&&'always'!==this['_trackFormatChanges']){const _0x21292a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x107201,'accept');return this['forceDefaultExecution'](()=>_0x21292a([_0xa99551],_0x2b53a2,_0x429c0a)),null;}let _0x199048=null,_0x53b9c1=_0xa99551['start'],_0x4483ad=_0xa99551['end'];for(const {suggestion:_0x40a898,meta:_0x582c1a}of this['_findSuggestions'](_0xa99551,'formatBlock')){if(!_0x582c1a['isOwn'])continue;if(_0x582c1a['isNextTo']||_0x582c1a['containsRangeInObject']||_0x582c1a['isInsideObject'])continue;if(_0x40a898['data']['formatGroupId']!=_0x2b53a2['formatGroupId'])continue;if(!sn(_0x40a898,_0x429c0a))continue;const _0x471435=_0x40a898['getFirstRange']();if(_0x40a898['subType']==_0x107201){if(_0x471435['containsRange'](_0xa99551,!0x0))return null;_0x53b9c1=_0x53b9c1['isBefore'](_0x471435['start'])?_0x53b9c1:_0x471435['start'],_0x4483ad=_0x4483ad['isAfter'](_0x471435['end'])?_0x4483ad:_0x471435['end'],_0x199048?_0x471435['start']['isBefore'](_0x199048['getFirstRange']()['start'])?(_0x199048['removeMarkers'](),_0x199048=_0x40a898):_0x40a898['removeMarkers']():_0x199048=_0x40a898;}else{const _0x1814cd=_0xa99551['getIntersection'](_0x471435);this['_cutOutSuggestionMarker'](_0x40a898,_0x1814cd);}}const _0x1355a3=this['editor']['plugins']['get']('Users')['me'],_0x1064ca=_0x4c54e4(),_0xb7d43f=_0x1355a3['id'];if(_0x199048)return this['_setSuggestionRange'](_0x199048,this['_model']['createRange'](_0x53b9c1,_0x4483ad)),_0x199048;{const _0x3dc322=this['_setSuggestionData']({'id':_0x1064ca,'type':'formatBlock:'+_0x107201,'data':_0x2b53a2,'createdAt':new Date(),'authorId':_0xb7d43f,'attributes':_0x429c0a});return this['_addSuggestionMarker']('formatBlock:'+_0x107201,_0x1064ca,_0xb7d43f,this['_model']['createRange'](_0x53b9c1,_0x4483ad)),_0x3dc322;}}['markMultiRangeBlockFormat'](_0x2f86ec,_0x2eec33,_0x11c411=[],_0x1c407f=null,_0x39be3d={}){_0x2eec33['formatGroupId']||(_0x2eec33['formatGroupId']=_0x2eec33['commandName']);const _0x2eb5d9=_0x2f86ec[0x0];_0x2eec33['multipleBlocks']=_0x2eb5d9['is']('range'),_0x1c407f=_0x1c407f||Ht(_0x2eec33);const _0x31b99d=_0x11c411['map'](_0x4834ea=>tn(_0x4834ea,this['_model'])),_0x43bc27=_0x2eb5d9['is']('range')?_0x2f86ec:_0x2f86ec['map'](_0x152eae=>tn(_0x152eae,this['_model']));if(this['_trackingSessionId']&&(_0x39be3d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x31fd46=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c407f,'accept');return this['forceDefaultExecution'](()=>_0x31fd46(_0x43bc27,_0x2eec33,_0x39be3d)),null;}_0x31b99d['push'](..._0x43bc27);let _0x19ef7e=!0x0;for(const _0x5cc964 of _0x31b99d)if(!this['_rangeIsInLocalUserInsertion'](_0x5cc964)){_0x19ef7e=!0x1;break;}if(_0x19ef7e&&'always'!==this['_trackFormatChanges']){const _0x207e71=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c407f,'accept');return this['forceDefaultExecution'](()=>_0x207e71(_0x43bc27,_0x2eec33,_0x39be3d)),null;}const _0xbf383c=this['editor']['plugins']['get']('Users')['me'];for(const _0x1de7cb of this['getSuggestions']()){const _0x5b1e6a=_0x1de7cb['data'];if(_0x1de7cb['author']['id']!=_0xbf383c['id'])continue;if('formatBlock'!=_0x1de7cb['type']||_0x5b1e6a['formatGroupId']!=_0x2eec33['formatGroupId'])continue;if(!sn(_0x1de7cb,_0x39be3d))continue;const _0x1a20d6=_0x1de7cb['subType']==_0x1c407f;for(let _0x5387c1=0x0;_0x5387c1<_0x43bc27['length'];_0x5387c1++){const _0xecf3be=_0x43bc27[_0x5387c1];for(const _0x3160f1 of _0x1de7cb['getMarkers']()){const _0x3f2b67=_0x3160f1['getRange']();if(_0xecf3be['isEqual'](_0x3f2b67)){_0x1a20d6?(_0x43bc27['splice'](_0x5387c1,0x1),_0x5387c1--):_0x1de7cb['removeMarker'](_0x3160f1['name']);break;}}}}if(0x0==_0x43bc27['length'])return null;const _0x5becb6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c407f,'join');for(const _0x5120cc of this['getSuggestions']()){const _0x1dd213=_0x5120cc['data'];if(_0x5120cc['author']['id']==_0xbf383c['id']&&('formatBlock'==_0x5120cc['type']&&_0x1dd213['formatGroupId']==_0x2eec33['formatGroupId']&&_0x5120cc['subType']==_0x1c407f&&sn(_0x5120cc,_0x39be3d)&&(_0x5becb6(_0x5120cc['getRanges'](),_0x43bc27)||_0x5becb6(_0x43bc27,_0x5120cc['getRanges']())))){for(const _0x430fd7 of _0x43bc27)_0x5120cc['addRange'](_0x430fd7);return _0x5120cc;}}const _0x10ae3d=_0x4c54e4(),_0x16f1a4=_0xbf383c['id'],_0x442553='formatBlock:'+_0x1c407f,_0x492db2=this['_setSuggestionData']({'id':_0x10ae3d,'type':_0x442553,'data':_0x2eec33,'createdAt':new Date(),'authorId':_0x16f1a4,'attributes':_0x39be3d});for(const _0x35b25b of _0x43bc27)this['_addSuggestionMarker'](_0x442553,_0x10ae3d,_0x16f1a4,_0x35b25b,T['getMultiRangeId']());return _0x492db2;}['markDeletion'](_0x49690b,_0x45fd7a=null,_0x4ce6ff={}){if(_0x49690b['isCollapsed'])return null;const _0x9a0075=this['editor']['plugins']['get']('Users')['me'],_0x295b5f=new _0x1c8214(_0x49690b['start'],_0x49690b['end']);this['_trackingSessionId']&&(_0x4ce6ff['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x176084,meta:_0x3407d7}of this['_findSuggestions'](_0x295b5f,'insertion'))if(_0x3407d7['isOwn']&&!_0x3407d7['isNextTo']){if(_0x176084['isMultiRange']){const _0x457462=_0x176084['getRanges']()['filter'](_0x35851b=>'$graveyard'!=_0x35851b['root']['rootName']);_0x457462['every'](_0x434a96=>_0x295b5f['containsRange'](_0x434a96,!0x0))&&_0x176084['discard']();if(_0x457462['some'](_0x4acf9c=>_0x4acf9c['containsRange'](_0x295b5f,!0x0))){const _0x4bf5b2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45fd7a,'accept');return this['forceDefaultExecution'](()=>_0x4bf5b2([_0x295b5f],null,_0x4ce6ff)),null;}}else{const _0x1a5585=_0x295b5f['getIntersection'](_0x176084['getFirstRange']());null!==_0x1a5585&&_0x176084['_onDiscard']([_0x1a5585],null,_0x4ce6ff);}}if(_0x295b5f['detach'](),_0x295b5f['isCollapsed']||'$graveyard'==_0x295b5f['root']['rootName'])return null;let _0x149a07=null,_0x13ebfd=_0x295b5f['start'],_0x32f89e=_0x295b5f['end'];const _0x893ca8=this['_findSuggestions'](_0x295b5f,'deletion');for(const {suggestion:_0x50ffc9,meta:_0x482466}of _0x893ca8){const _0xf0fbbb=this['_model']['createRange'](_0x13ebfd,_0x32f89e);if(_0x482466['isOwn']&&(this['_mergeNestedSuggestions']||!_0x482466['containsRangeInObject']&&!_0x482466['isInsideObject'])){if(_0x50ffc9['isMultiRange']){if(!sn(_0x50ffc9,_0x4ce6ff))continue;let _0x4027e3=!0x0;for(const _0x1fd044 of _0x50ffc9['getRanges']()){if(_0x1fd044['containsRange'](_0xf0fbbb,!0x0))return _0x50ffc9;_0xf0fbbb['containsRange'](_0x1fd044)||(_0x4027e3=!0x1);}_0x4027e3&&_0x50ffc9['discard']();}else{const _0x1dd37a=_0x50ffc9['getFirstRange']();if(_0x1dd37a['containsRange'](_0xf0fbbb,!0x0))return _0x50ffc9;if(!sn(_0x50ffc9,_0x4ce6ff)){_0xf0fbbb['containsRange'](_0x1dd37a)?_0x50ffc9['removeMarkers']():_0x1dd37a['containsPosition'](_0x13ebfd)?_0x13ebfd=_0x1dd37a['end']:_0x1dd37a['containsPosition'](_0x32f89e)&&(_0x32f89e=_0x1dd37a['start']);continue;}_0x13ebfd=_0x13ebfd['isBefore'](_0x1dd37a['start'])?_0x13ebfd:_0x1dd37a['start'],_0x32f89e=_0x32f89e['isAfter'](_0x1dd37a['end'])?_0x32f89e:_0x1dd37a['end'],_0x4ce6ff=Object['assign']({},_0x50ffc9['attributes']),_0x149a07?_0x1dd37a['start']['isBefore'](_0x149a07['getFirstRange']()['start'])?(_0x149a07['removeMarkers'](),_0x149a07=_0x50ffc9):_0x50ffc9['removeMarkers']():_0x149a07=_0x50ffc9;}}}if(_0x149a07)return this['_setSuggestionRange'](_0x149a07,this['_model']['createRange'](_0x13ebfd,_0x32f89e)),_0x149a07;{const _0x2f7ae8=_0x4c54e4(),_0x589ac0=this['_model']['createRange'](_0x13ebfd,_0x32f89e),_0x18817b=_0x9a0075['id'],_0x2f7e3a=_0x45fd7a?'deletion:'+_0x45fd7a:'deletion',_0x2ef50a=this['_setSuggestionData']({'id':_0x2f7ae8,'type':_0x2f7e3a,'createdAt':new Date(),'authorId':_0x18817b,'attributes':_0x4ce6ff});return this['_addSuggestionMarker'](_0x2f7e3a,_0x2f7ae8,_0x18817b,_0x589ac0),_0x2ef50a;}}['markMultiRangeDeletion'](_0x1e8ba7,_0x18f753='multi',_0x1559ec={}){const _0x5ac657=this['editor']['plugins']['get']('Users')['me'],_0x3d1b39=_0x1e8ba7['map'](_0x35f21d=>new _0x1c8214(_0x35f21d['start'],_0x35f21d['end'])),_0x3cd321=new Set();this['_trackingSessionId']&&(_0x1559ec['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1d4922,meta:_0x2dc555}of this['_findSuggestions'](_0x3d1b39,'insertion'))_0x2dc555['isOwn']&&!_0x2dc555['isNextTo']&&_0x3cd321['add'](_0x1d4922);for(const _0x907abc of _0x3cd321)if(_0x907abc['isMultiRange']){const _0x3ecd85=_0x907abc['getRanges']();(!_0x907abc['attributes']||!_0x907abc['attributes']['skipNestingCheck'])&&(_0x3ecd85['every'](_0x46022f=>_0x3d1b39['some'](_0x314237=>_0x314237['containsRange'](_0x46022f,!0x0)))&&_0x907abc['discard']());if(_0x3d1b39['every'](_0x523229=>_0x3ecd85['some'](_0x25287f=>_0x25287f['containsRange'](_0x523229,!0x0)))){const _0x253707=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x18f753,'accept');return this['forceDefaultExecution'](()=>_0x253707(_0x1e8ba7,null,_0x1559ec)),null;}}else{const _0x20ef3a=_0x907abc['getFirstRange']();_0x3d1b39['some'](_0x5b62a2=>_0x5b62a2['containsRange'](_0x20ef3a,!0x0))&&_0x907abc['discard']();if(_0x3d1b39['every'](_0x38f4d3=>_0x20ef3a['containsRange'](_0x38f4d3,!0x0))){const _0x1a6e4e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x18f753,'accept');return this['forceDefaultExecution'](()=>_0x1a6e4e(_0x3d1b39,null,_0x1559ec)),null;}}const _0x44c2d5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x18f753,'join');let _0x27167e=null;for(const _0x37bad7 of this['getSuggestions']())if(_0x37bad7['author']['id']==_0x5ac657['id']&&_0x37bad7['isInContent']&&'deletion'==_0x37bad7['type']&&_0x37bad7['subType']==_0x18f753&&sn(_0x37bad7,_0x1559ec)&&(_0x44c2d5(_0x37bad7['getRanges'](),_0x3d1b39)||_0x44c2d5(_0x3d1b39,_0x37bad7['getRanges']()))){if(_0x27167e){if(_0x37bad7['commentThread']&&_0x37bad7['commentThread']['length'])continue;for(const _0x1d8479 of _0x37bad7['getRanges']())_0x27167e['isIntersectingWithRange'](_0x1d8479)||_0x27167e['addRange'](_0x1d8479);_0x37bad7['removeMarkers']();}else{_0x27167e=_0x37bad7;for(const _0x29d8cc of _0x3d1b39)_0x37bad7['isIntersectingWithRange'](_0x29d8cc)||_0x37bad7['addRange'](_0x29d8cc);}}if(_0x27167e)return _0x27167e;_0x3cd321['clear']();for(const {suggestion:_0x150e26,meta:_0x10dcdc}of this['_findSuggestions'](_0x3d1b39,'deletion'))_0x10dcdc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x10dcdc['containsRangeInObject']&&!_0x10dcdc['isInsideObject'])&&sn(_0x150e26,_0x1559ec)&&_0x3cd321['add'](_0x150e26);for(const _0x5b943c of _0x3cd321){const _0x5344d7=_0x5b943c['getRanges']();if(!_0x1559ec||!_0x1559ec['skipNestingCheck']){if(_0x3d1b39['every'](_0x9d4409=>_0x5344d7['some'](_0x221328=>_0x221328['containsRange'](_0x9d4409,!0x0))))return _0x5b943c;}(!_0x5b943c['attributes']||!_0x5b943c['attributes']['skipNestingCheck'])&&(_0x5344d7['every'](_0x42fc51=>_0x3d1b39['some'](_0x4a1144=>_0x4a1144['containsRange'](_0x42fc51,!0x0)))&&_0x5b943c['discard']());}const _0x184a87=_0x4c54e4(),_0x363046=_0x5ac657['id'],_0x3a9380='deletion:'+_0x18f753,_0xeaa8de=this['_setSuggestionData']({'id':_0x184a87,'type':_0x3a9380,'createdAt':new Date(),'authorId':_0x363046,'attributes':_0x1559ec});for(const _0x163b3d of _0x3d1b39)_0x163b3d['detach'](),_0x163b3d['isCollapsed']||'$graveyard'==_0x163b3d['root']['rootName']||this['_addSuggestionMarker'](_0x3a9380,_0x184a87,_0x363046,_0x163b3d,T['getMultiRangeId']());return _0xeaa8de;}['markAttributeChange'](_0x127868,_0xb55b8f,_0x20943c,_0x246b0d,_0x5dd800){if(_0x127868['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x12752c=this['editor']['plugins']['get']('Users')['me']['id'],_0x11426b=Array['from'](this['_suggestions']['values']())['filter'](_0x4b40e3=>'attribute'==_0x4b40e3['type']&&_0x4b40e3['data']['key']==_0xb55b8f&&_0x4b40e3['isIntersectingWithRange'](_0x127868));if(this['_trackingSessionId']&&(_0x5dd800['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xa78a56=this['_findSuggestions'](_0x127868,'insertion')['filter'](({meta:_0x71a283})=>_0x71a283['isOwn']&&!_0x71a283['isInsideObject']&&!_0x71a283['isNextTo'])['map'](({suggestion:_0x4f1899})=>_0x4f1899);_0x11426b['unshift'](..._0xa78a56);}const _0x18b616=new Map([[_0x127868,_0x20943c]]);for(const _0x28b3d9 of _0x11426b){const _0x4b8761='attribute'==_0x28b3d9['type']?_0x28b3d9['data']['oldValue']:void 0x0,_0x39fc9d=_0x28b3d9['getFirstRange'](),_0x48c928=Array['from'](_0x18b616['keys']())['find'](_0x47e894=>_0x47e894['isIntersecting'](_0x39fc9d));if(!_0x48c928)continue;const _0x58ac8b=_0x48c928['getDifference'](_0x39fc9d);this['_isBlockAttribute'](_0xb55b8f)&&'insertion'==_0x28b3d9['type']&&0x0!=_0x58ac8b['length']||(_0x18b616['delete'](_0x48c928),_0x58ac8b['forEach'](_0x4625f8=>{_0x18b616['set'](_0x4625f8,_0x20943c);}),'insertion'!=_0x28b3d9['type']&&_0x4b8761!=_0x246b0d&&_0x18b616['set'](_0x48c928['getIntersection'](_0x39fc9d),_0x4b8761));}const _0x4413c6=[];for(const [_0x159e75,_0x30e042]of _0x18b616){const _0x2b8d7e=_0x4c54e4(),_0x2e9a25={'key':_0xb55b8f,'oldValue':_0x30e042,'newValue':_0x246b0d};_0xb55b8f['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':_0xb55b8f});const _0x44a5c1=('attribute:'+(_0xb55b8f+'|'+Ht({'newValue':_0x246b0d})))['substring'](0x0,0x3c),_0xe7242=this['_setSuggestionData']({'id':_0x2b8d7e,'type':_0x44a5c1,'data':_0x2e9a25,'createdAt':new Date(),'authorId':_0x12752c,'attributes':_0x5dd800});_0x4413c6['push'](_0xe7242),this['_addSuggestionMarker'](_0x44a5c1,_0x2b8d7e,_0x12752c,_0x159e75);}return _0x4413c6;}['enableDefaultAttributesIntegration'](_0x15fb89){this['enableCommand'](_0x15fb89,(_0x2345e8,..._0x1464a4)=>{this['recordAttributeChanges'](()=>{_0x2345e8(..._0x1464a4);});});}['registerBlockAttribute'](_0x164bf6){this['editor']['plugins']['get'](_0x449d1e)['registerBlockAttribute'](_0x164bf6);}['registerInlineAttribute'](_0x547cba){this['editor']['plugins']['get'](_0x449d1e)['registerInlineAttribute'](_0x547cba);}['startTrackingSession'](_0x34d060){return this['_trackingSessionId']=void 0x0!==_0x34d060?_0x34d060:_0x4c54e4(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4b1cba){return'attribute'==_0x4b1cba['type']?_0x4b1cba['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x51c580){if(0x0==_0x51c580['length'])return;const _0x16d871=this['editor'],_0x8f7155=_0x16d871['plugins']['get'](_0x2e6aae),_0x33a21c=[];_0x16d871['model']['change'](_0x449405=>{for(let _0x9077c0=0x0;_0x9077c0<_0x51c580['length'];_0x9077c0++){const _0xa74a44=_0x51c580[_0x9077c0];if(_0xa74a44['baseVersion']=_0x16d871['model']['document']['version'],_0xa74a44['isDocumentOperation']=!0x0,_0x8f7155['isMarkedRemoveOperation'](_0xa74a44)){const _0x5a1a4a=_0x2b9c32(_0xa74a44['newRange'],_0x16d871['model']);_0x33a21c['unshift'](_0x1c8214['fromRange'](_0x5a1a4a));}else switch(_0xa74a44['type']){case'rename':{const _0x31da9d=_0xa74a44['oldName'],_0x53ca94=_0xa74a44['newName'];if(_0x31da9d==_0x53ca94)break;_0x449405['batch']['addOperation'](_0xa74a44),_0x16d871['model']['applyOperation'](_0xa74a44);const _0x4f64a6='$elementName',_0x356d75=_0xa74a44['position'],_0x59e488=_0x16d871['model']['createRange'](_0x356d75,_0x16d871['model']['createPositionAt'](_0x356d75['nodeAfter'],'end'));this['markAttributeChange'](_0x59e488,_0x4f64a6,_0x31da9d,_0x53ca94,{'groupId':_0x4c54e4()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x298c30=_0xa74a44['oldValue'],_0x3fe8ba=_0xa74a44['newValue'];if(_0x298c30==_0x3fe8ba)break;_0x449405['batch']['addOperation'](_0xa74a44),_0x16d871['model']['applyOperation'](_0xa74a44);const _0x93c189=_0xa74a44['key'];if(!this['_isRegisteredAttribute'](_0x93c189))break;const _0x4e71e6=_0x2b9c32(_0xa74a44['range'],_0x16d871['model']);this['markAttributeChange'](_0x4e71e6,_0x93c189,_0x298c30,_0x3fe8ba,{'groupId':_0x4c54e4()});break;}case'insert':{_0x449405['batch']['addOperation'](_0xa74a44),_0x16d871['model']['applyOperation'](_0xa74a44);if(_0x51c580[_0x9077c0+0x1]&&'move'==_0x51c580[_0x9077c0+0x1]['type'])break;const _0x445901=_0xa74a44['position'],_0x3ad7f3=_0xa74a44['howMany'],_0x485b61=_0x2b9c32(_0x16d871['model']['createRange'](_0x445901,_0x445901['getShiftedBy'](_0x3ad7f3)),_0x16d871['model']);this['markInsertion'](_0x485b61);break;}case'split':{_0x449405['batch']['addOperation'](_0xa74a44),_0x16d871['model']['applyOperation'](_0xa74a44);const _0x33bac4=_0xa74a44['splitPosition'],_0x4a7479=_0xa74a44['moveTargetPosition'];this['markInsertion'](_0x16d871['model']['createRange'](_0x33bac4,_0x4a7479));break;}case'move':case'remove':_0x449405['batch']['addOperation'](_0xa74a44),_0x16d871['model']['applyOperation'](_0xa74a44);}}for(const _0x4f5e89 of _0x33a21c)_0x4f5e89['detach'](),this['markDeletion'](_0x4f5e89);});}['_setSuggestionRange'](_0x57c1ba,_0x52ac03){const _0xf7b050=_0x57c1ba['getFirstMarker']();this['_model']['change'](_0x5960c5=>{_0x5960c5['updateMarker'](_0xf7b050,{'range':_0x52ac03});});}['_addThreadToSuggestion'](_0x5097ea){const _0x17d6d3=_0x5097ea['id'],_0x4c94b4=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x17d6d3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4c94b4,'threadId':_0x17d6d3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1f0d8d=this['_commentsRepository']['getCommentThread'](_0x17d6d3);_0x1f0d8d['unbind']('isRemovable'),_0x1f0d8d['isRemovable']=!0x1,_0x5097ea['commentThread']=_0x1f0d8d;}['_checkSuggestionCorrectness'](_0x3c632e,_0x1bf37d,_0xcffae6,_0x544bba){if(_0x3c632e['type']!=_0x1bf37d||_0x3c632e['subType']!=_0xcffae6||_0x3c632e['creator']['id']!=_0x544bba)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xcae84a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x556751,_0x29991d){const _0x290337=_0x556751['getFirstRange']();if(_0x29991d['isEqual'](_0x290337))_0x556751['removeMarkers']();else{if(_0x290337['containsRange'](_0x29991d)){const _0x3185bf=this['_model']['createPositionAt'](_0x29991d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x556751,this['_model']['createRange'](_0x290337['start'],_0x3185bf));const _0x4ed6ff=_0x4c54e4(),_0x17aa04=_0x556751['creator']['id'],_0xdd2152=_0x556751['type']+':'+_0x556751['subType'];this['_setSuggestionData']({'id':_0x4ed6ff,'type':_0xdd2152,'createdAt':new Date(),'authorId':_0x17aa04,'data':_0x556751['data'],'attributes':_0x556751['attributes']});const _0x217441=this['_model']['createPositionAt'](_0x29991d['end']['parent'],'after'),_0x180f94=this['_model']['createRange'](_0x217441,_0x290337['end']);this['_addSuggestionMarker'](_0xdd2152,_0x4ed6ff,_0x17aa04,_0x180f94);}else{if(_0x290337['containsPosition'](_0x29991d['start'])){const _0x3a947b=this['_model']['createPositionAt'](_0x29991d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x556751,this['_model']['createRange'](_0x290337['start'],_0x3a947b));}else{const _0x5ee2e8=this['_model']['createPositionAt'](_0x29991d['end']['parent'],'after');this['_setSuggestionRange'](_0x556751,this['_model']['createRange'](_0x5ee2e8,_0x290337['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x59f7f3){for(const {suggestion:_0x2e088d,meta:_0x5a336f}of this['_findSuggestions'](_0x59f7f3,'insertion')){if(!_0x5a336f['isOwn'])continue;const _0x418721=_0x2e088d['getRanges']();for(const _0x2ecb43 of _0x418721)if(!_0x59f7f3['getDifference'](_0x2ecb43)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x22ca9d){return this['editor']['plugins']['get']('Users')['getUser'](_0x22ca9d);}['_getExternalAuthor'](_0x2d9621){const _0x27fd54=this['editor']['plugins']['get']('Users'),_0x70c0a0=_0x1bcab7('external:'+_0x2d9621),_0x2461df=_0x27fd54['getUser'](_0x70c0a0);return _0x2461df||_0x27fd54['addUser']({'id':_0x70c0a0,'name':_0x2d9621});}['_createSuggestion'](_0x31ba91,_0x4c55ce,_0x54f8f2,_0x371104,_0x30c9fd,_0x2af5b1){const _0x3fd25c=this['_getAuthorFromId'](_0x371104);if(!_0x3fd25c)throw new _0xcae84a('track-changes-user-not-found',this,{'authorId':_0x371104,'suggestionId':_0x54f8f2});const _0x52a4e8=this['_suggestionFactory']['buildSuggestion'](_0x31ba91,_0x4c55ce,_0x54f8f2,_0x3fd25c,_0x30c9fd,_0x878cbd=>{this['_updateSuggestionData'](_0x54f8f2,{'attributes':_0x878cbd});const _0x5a40da=this['getSuggestion'](_0x54f8f2);this['_joinWithAdjacentSuggestions'](new Set([_0x5a40da])),this['_refreshSuggestionsChain'](new Set([_0x5a40da]));},_0x2af5b1);return this['listenTo'](_0x52a4e8,'accept',()=>{this['_updateSuggestionData'](_0x54f8f2,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x52a4e8,'discard',()=>{this['_updateSuggestionData'](_0x54f8f2,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x54f8f2,_0x52a4e8),this['_suggestionState']['set'](_0x52a4e8,'notReady'),_0x52a4e8;}['_splitMarkerName'](_0x176328){return _0xca328c(_0x176328);}['_breakSuggestionMarker'](_0x27d0fd,_0x3eab21,_0x29827a){const _0x3b62d1=_0x27d0fd['getFirstRange'](),_0x1ec22c=_0x3b62d1['start'],_0x5080b2=_0x3b62d1['end'];this['_setSuggestionRange'](_0x27d0fd,this['_model']['createRange'](_0x1ec22c,_0x3eab21));const _0x2a82fc=_0x4c54e4(),_0x2f7b1c=_0x27d0fd['creator']['id'],_0x570505=_0x27d0fd['type']+(_0x27d0fd['subType']?':'+_0x27d0fd['subType']:'');this['_setSuggestionData']({'id':_0x2a82fc,'type':_0x570505,'createdAt':new Date(),'authorId':_0x2f7b1c,'originalSuggestionId':_0x27d0fd['_originalSuggestionId']||_0x27d0fd['id'],'attributes':_0x27d0fd['attributes'],'data':_0x27d0fd['data']});const _0xf3a71f=this['_getAttributeKey'](_0x27d0fd);('formatBlock'==_0x27d0fd['type']||_0xf3a71f&&this['_isBlockAttribute'](_0xf3a71f))&&(_0x29827a=this['_model']['createPositionBefore'](_0x29827a['parent'])),this['_addSuggestionMarker'](_0x570505,_0x2a82fc,_0x2f7b1c,this['_model']['createRange'](_0x29827a,_0x5080b2));}['_findSuggestions'](_0x48bc1a,_0x1bfcc0=null){const _0x3dc2bb=[],_0x13855=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x48bc1a)||(_0x48bc1a=[_0x48bc1a]);for(const _0x3a4c79 of this['getSuggestions']()){if(!_0x3a4c79['isInContent'])continue;if(_0x1bfcc0&&_0x3a4c79['type']!=_0x1bfcc0)continue;let _0x5b8072=!0x1;for(const _0x444796 of _0x3a4c79['getRanges']()){for(const _0x4f44f8 of _0x48bc1a){const _0x299c10=_0x4f44f8['start']['isEqual'](_0x444796['end'])||_0x4f44f8['end']['isEqual'](_0x444796['start']);if(_0x299c10||_0x4f44f8['getIntersection'](_0x444796)){const _0x2af417=_0x4f44f8['containsRange'](_0x444796)&&zt(this['_model']['schema'],_0x444796['start'],_0x4f44f8),_0x234529=_0x444796['containsRange'](_0x4f44f8)&&zt(this['_model']['schema'],_0x4f44f8['start'],_0x444796);_0x3dc2bb['push']({'suggestion':_0x3a4c79,'meta':{'isOwn':_0x13855==_0x3a4c79['author'],'isNextTo':_0x299c10,'isInsideObject':_0x2af417,'containsRangeInObject':_0x234529}}),_0x5b8072=!0x0;break;}}if(_0x5b8072)break;}}return _0x3dc2bb;}['_addSuggestionMarker'](_0xb0caaf,_0x37120f,_0x5cc5ac,_0x322da3,_0x2e1cdd){this['_model']['change'](_0x35ec90=>{let _0x423422='suggestion:'+_0xb0caaf+':'+_0x37120f+':'+_0x5cc5ac;_0x2e1cdd&&(_0x423422=_0x423422+':'+_0x2e1cdd),_0x35ec90['addMarker'](_0x423422,{'range':_0x322da3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3d7bc7){const _0x5ca082=_0x3d7bc7['previous'],_0x128fdb=_0x3d7bc7['next'];_0x3d7bc7['previous']=null,_0x3d7bc7['next']=null,null!=_0x5ca082&&_0x5ca082['next']==_0x3d7bc7&&(_0x5ca082['next']=_0x128fdb),null!=_0x128fdb&&_0x128fdb['previous']==_0x3d7bc7&&(_0x128fdb['previous']=_0x5ca082),'ready'==this['_suggestionState']['get'](_0x3d7bc7)&&(this['_suggestionState']['set'](_0x3d7bc7,'removed'),this['fire']('suggestionUnloaded',_0x3d7bc7,_0x5ca082,_0x128fdb));}['_setSuggestionData'](_0x5db87a){const _0x29dd8e=_0x5db87a['id'],_0x331894=this['addSuggestionData'](_0x5db87a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x477141=this['editor']['plugins']['get']('PendingActions'),_0x4aad6a=_0x331894['hasComments'],_0x236cce=_0x331894['subType']?_0x331894['type']+':'+_0x331894['subType']:_0x331894['type'],_0x60413b=this['editor']['locale'],_0xc0627d=_0x477141['add'](o(_0x60413b,'PENDING_ACTION_SUGGESTION')),_0x2839b2={'id':_0x29dd8e,'type':_0x236cce,'hasComments':_0x4aad6a,'data':_0x5db87a['data']||null,'originalSuggestionId':_0x5db87a['originalSuggestionId']||null,'attributes':_0x331894['attributes']};this['_adapter']['addSuggestion'](_0x2839b2)['then'](_0x522d9c=>{_0x331894['_saved']=!0x0,_0x477141['remove'](_0xc0627d),_0x522d9c&&_0x522d9c['createdAt']&&(this['_suggestions']['get'](_0x29dd8e)['createdAt']=_0x522d9c['createdAt']);})['catch'](_0x306301=>{throw _0xddd03f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x331894['discard']();}),_0x331894['stopListening'](),this['_suggestions']['delete'](_0x331894['id']),this['_suggestionState']['delete'](_0x331894),_0x306301;});}return _0x331894;}['_isBlockAttribute'](_0x3b76fe){return this['editor']['plugins']['get'](_0x449d1e)['isBlockAttribute'](_0x3b76fe);}['_isInlineAttribute'](_0x456e29){return this['editor']['plugins']['get'](_0x449d1e)['isInlineAttribute'](_0x456e29);}['_updateSuggestionData'](_0x443697,_0x11a141){const _0x23cac0=this['editor']['plugins']['get']('PendingActions'),_0x267de3=this['getSuggestion'](_0x443697);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x267de3['_saved']){const _0x48cdfc=_0x23cac0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x443697,_0x11a141)['then'](()=>{_0x23cac0['remove'](_0x48cdfc);});}else _0x267de3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x443697,_0x11a141);});}}['_getSuggestionData'](_0x404b84){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xcae84a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x404b84);}['_handleNewSuggestionMarker'](_0x3e2333){const {id:_0x1625d9,type:_0x27215c,subType:_0x41372d,authorId:_0x8bad18}=this['_splitMarkerName'](_0x3e2333),_0x23d5c8=this['_suggestions']['get'](_0x1625d9)||this['_createSuggestion'](_0x27215c,_0x41372d,_0x1625d9,_0x8bad18,{});switch(this['_checkSuggestionCorrectness'](_0x23d5c8,_0x27215c,_0x41372d,_0x8bad18),this['_suggestionState']['get'](_0x23d5c8)){case'notReady':this['_getSuggestionData'](_0x1625d9)['then'](_0x4b6aaa=>{let _0x3a37ee=Promise['resolve']();_0x4b6aaa['hasComments']&&(_0x3a37ee=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1625d9})),_0x3a37ee['then'](()=>{this['addSuggestionData'](_0x4b6aaa)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x23d5c8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1625d9,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x23d5c8,'ready'),this['fire']('suggestionLoaded',_0x23d5c8);break;case'ready':this['fire']('suggestionChanged',_0x23d5c8);}return _0x23d5c8['addMarkerName'](_0x3e2333),_0x23d5c8;}['_refreshSuggestionsChain'](_0x4dd209){const _0xe1d70=Array['from'](_0x4dd209),_0x36db32=_0xe1d70['filter'](_0x37aa35=>'attribute'==_0x37aa35['type']);this['_refreshAttributeSuggestionsChain'](_0x36db32);const _0x49b9d3=_0xe1d70['filter'](_0x20f687=>!_0x20f687['isMultiRange']&&'attribute'!=_0x20f687['type']),_0x248717=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e102=>!_0x4e102['isMultiRange']&&'attribute'!=_0x4e102['type']),_0x93eec0=_0x248717['filter'](_0x59f4f3=>!_0x4dd209['has'](_0x59f4f3)),_0x10ba93=new Map(_0x248717['map'](_0xe0c249=>[_0xe0c249,this['_suggestionFactory']['getSuggestionCallback'](_0xe0c249['type'],_0xe0c249['subType'],'chain')])),_0x5775dc=new Map(_0x248717['map'](_0x10d54a=>[_0x10d54a,_0x10d54a['getFirstRange']()])),_0x44a761=new Set(),_0x5c3e9f=new Set();for(let _0x55fc7d=0x0;_0x55fc7d<_0x49b9d3['length'];_0x55fc7d++)_0x1f7363(_0x49b9d3[_0x55fc7d],_0x49b9d3,_0x55fc7d+0x1);for(let _0x180e04=0x0;_0x180e04<_0x49b9d3['length'];_0x180e04++)_0x1f7363(_0x49b9d3[_0x180e04],_0x93eec0,0x0);const _0x5bd0df=new Set();for(let _0x4a5365=0x0;_0x4a5365<_0x49b9d3['length'];_0x4a5365++){const _0x341c86=_0x49b9d3[_0x4a5365];!_0x5c3e9f['has'](_0x341c86)&&_0x341c86['previous']&&(_0x5bd0df['add'](_0x341c86['previous']),_0x341c86['previous']['next']===_0x341c86&&(_0x341c86['previous']['next']=null),_0x341c86['previous']=null),!_0x44a761['has'](_0x341c86)&&_0x341c86['next']&&(_0x5bd0df['add'](_0x341c86['next']),_0x341c86['next']['previous']===_0x341c86&&(_0x341c86['next']['previous']=null),_0x341c86['next']=null);}function _0x1f7363(_0x2a4e33,_0x5bcc79,_0x23a844){for(let _0x39fcfa=_0x23a844;_0x39fcfa<_0x5bcc79['length'];_0x39fcfa++){const _0xd1e746=_0x4cb799(_0x2a4e33,_0x5bcc79[_0x39fcfa]);_0xd1e746&&(_0xd1e746[0x0]['next']=_0xd1e746[0x1],_0xd1e746[0x1]['previous']=_0xd1e746[0x0],_0x44a761['add'](_0xd1e746[0x0]),_0x5c3e9f['add'](_0xd1e746[0x1]));}}function _0x4cb799(_0x20b9e2,_0x150bec){if(_0x20b9e2['author']['id']!==_0x150bec['author']['id'])return null;const _0x372a4e=_0x10ba93['get'](_0x20b9e2)(_0x20b9e2,_0x150bec,_0x5775dc['get'](_0x20b9e2),_0x5775dc['get'](_0x150bec));if(!_0x372a4e)return null;return _0x10ba93['get'](_0x150bec)(_0x20b9e2,_0x150bec,_0x5775dc['get'](_0x20b9e2),_0x5775dc['get'](_0x150bec))?_0x372a4e[0x1]['commentThread']&&_0x372a4e[0x1]['commentThread']['length']?null:_0x372a4e:null;}_0x5bd0df['size']&&this['_refreshSuggestionsChain'](_0x5bd0df);}['_refreshAttributeSuggestionsChain'](_0x4419d5){if(0x0==_0x4419d5['length'])return;const _0x268ca4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5bf360=>'attribute'==_0x5bf360['type']&&_0x5bf360['_isDataLoaded']),_0x4c56dd=[],_0x11cf4a=new Map();for(const _0x5250c8 of _0x268ca4){const _0x1e3d43=_0x1bcab7(_0x5250c8['attributes']);_0x11cf4a['has'](_0x1e3d43)||(_0x11cf4a['set'](_0x1e3d43,_0x4c56dd['length']),_0x4c56dd['push']([]));const _0x4963a7=_0x11cf4a['get'](_0x1e3d43);_0x4c56dd[_0x4963a7]['push'](_0x5250c8);}!(function(){_0x4c56dd['sort']((_0x400b64,_0x36366c)=>{const _0xacf7a5=_0x400b64[0x0]['createdAt'],_0x41151c=_0x36366c[0x0]['createdAt'];return _0xacf7a5==_0x41151c?_0x400b64[0x0]['attributes']['groupId']<_0x36366c[0x0]['attributes']['groupId']?-0x1:0x1:_0xacf7a5<_0x41151c?-0x1:0x1;});for(const _0x4c88dc of _0x4c56dd)_0x4c88dc['sort']((_0x2b89bc,_0x4f065c)=>_0x2b89bc['id']<_0x4f065c['id']?-0x1:0x1);}());for(let _0x17b8f3=0x0;_0x17b8f3<_0x4c56dd['length'];_0x17b8f3++){if(0x0==_0x4c56dd[_0x17b8f3]['length'])continue;const _0x557f95=[];for(let _0x21acaf=_0x17b8f3+0x1;_0x21acaf<_0x4c56dd['length'];_0x21acaf++)0x0!=_0x4c56dd[_0x21acaf]['length']&&_0x44f015(_0x4c56dd[_0x17b8f3],_0x4c56dd[_0x21acaf])&&_0x557f95['push'](_0x21acaf);for(const _0xecd3b7 of _0x557f95)_0x4c56dd[_0x17b8f3]=_0x4c56dd[_0x17b8f3]['concat'](_0x4c56dd[_0xecd3b7]),_0x4c56dd[_0xecd3b7]=[];}for(const _0x2f1fd9 of _0x4c56dd)for(let _0x55fbbb=0x0;_0x55fbbb<_0x2f1fd9['length'];_0x55fbbb++){const _0x323814=_0x2f1fd9[_0x55fbbb+0x1]||null;_0x2f1fd9[_0x55fbbb]['next']!==_0x323814&&(_0x2f1fd9[_0x55fbbb]['next']=_0x323814);}for(const _0x4fd389 of _0x4c56dd)for(let _0x65e8b0=0x0;_0x65e8b0<_0x4fd389['length'];_0x65e8b0++){const _0x288856=_0x4fd389[_0x65e8b0-0x1]||null;_0x4fd389[_0x65e8b0]['previous']!==_0x288856&&(_0x4fd389[_0x65e8b0]['previous']=_0x288856);}function _0x44f015(_0x4cf0f2,_0x33d81f){if(_0x4cf0f2[0x0]['attributes']['groupId']!==_0x33d81f[0x0]['attributes']['groupId']&&_0x4cf0f2[0x0]['author']!==_0x33d81f[0x0]['author'])return!0x1;if(!function(_0x40c02a,_0xb4a251){if(!_0x40c02a['hasComments']&&!_0xb4a251['hasComments'])return!0x0;if(_0x40c02a['hasComments']&&_0xb4a251['hasComments'])return!0x1;if(_0x40c02a['hasComments']&&_0xb4a251['createdAt']<_0x40c02a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xb4a251['hasComments']&&_0x40c02a['createdAt']<_0xb4a251['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4cf0f2[0x0],_0x33d81f[0x0]))return!0x1;const _0xc7177c=Jt(_0x4cf0f2[0x0]['attributes'],['groupId','trackingSessionId']),_0x341560=Jt(_0x33d81f[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x458cd7(_0xc7177c,_0x341560))return!0x1;if(_0x4cf0f2[0x0]['attributes']['groupId']==_0x33d81f[0x0]['attributes']['groupId'])return!0x0;if(_0x4cf0f2[0x0]['attributes']['trackingSessionId']!==_0x33d81f[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4cf0f2['every'](_0x467f94=>_0x33d81f['some'](_0x41c727=>_0x467f94['getFirstRange']()['isEqual'](_0x41c727['getFirstRange']())))&&_0x33d81f['every'](_0x136144=>_0x4cf0f2['some'](_0x46c25a=>_0x136144['getFirstRange']()['isEqual'](_0x46c25a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2b3e5c){const _0x11b0ac=Array['from'](_0x2b3e5c),_0x50b51c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x23ceb6=_0x50b51c['filter'](_0x576da3=>!_0x2b3e5c['has'](_0x576da3)),_0x3c9ffe=new Map(_0x11b0ac['map'](_0x5ea8a2=>[_0x5ea8a2,this['_suggestionFactory']['getSuggestionCallback'](_0x5ea8a2['type'],_0x5ea8a2['subType'],'join')])),_0x4d5dd9=new Map(_0x50b51c['map'](_0x346cc0=>[_0x346cc0,_0x346cc0['getRanges']()]));for(let _0x53f63a=0x0;_0x53f63a<_0x11b0ac['length'];_0x53f63a++){if(_0x563b4a(this,_0x11b0ac[_0x53f63a],_0x11b0ac,_0x53f63a+0x1))return!0x0;}for(let _0x13a8b9=0x0;_0x13a8b9<_0x11b0ac['length'];_0x13a8b9++){if(_0x563b4a(this,_0x11b0ac[_0x13a8b9],_0x23ceb6,0x0))return!0x0;}return!0x1;function _0x563b4a(_0x19610d,_0x33d8d8,_0x230f59,_0x3fae79){for(let _0x24322b=_0x3fae79;_0x24322b<_0x230f59['length'];_0x24322b++){const _0x4018b6=_0x230f59[_0x24322b];if(_0x4018b6['type']!==_0x33d8d8['type']||_0x4018b6['author']['id']!==_0x33d8d8['author']['id']||_0x4018b6['subType']!==_0x33d8d8['subType'])continue;if(!en(_0x33d8d8,_0x4018b6))continue;if('attribute'==_0x33d8d8['type']&&_0x33d8d8['data']['oldValue']!=_0x4018b6['data']['oldValue'])continue;if('attribute'==_0x33d8d8['type']&&_0x19610d['_isBlockAttribute'](_0x33d8d8['data']['key']))continue;if('formatBlock'==_0x33d8d8['type']){const _0x48738f=_0x19610d['editor']['model'],_0x54ed24=_0x33d8d8['getContainedElement']();if(_0x54ed24&&(_0x48738f['schema']['isObject'](_0x54ed24)||_0x48738f['schema']['isLimit'](_0x54ed24)))continue;}const _0x5b2449=_0x3c9ffe['get'](_0x33d8d8),_0x2f4bbb=_0x4d5dd9['get'](_0x33d8d8),_0x2a78fb=_0x4d5dd9['get'](_0x4018b6),_0x394d90=_0x33d8d8['commentThread']&&_0x33d8d8['commentThread']['length'],_0x48aac4=_0x4018b6['commentThread']&&_0x4018b6['commentThread']['length'];if(!_0x394d90&&_0x5b2449(_0x2a78fb,_0x2f4bbb))return _0x19610d['_joinSuggestions'](_0x4018b6,_0x33d8d8),_0x4d5dd9['delete'](_0x33d8d8),!0x0;if(!_0x48aac4&&_0x5b2449(_0x2f4bbb,_0x2a78fb))return _0x19610d['_joinSuggestions'](_0x33d8d8,_0x4018b6),_0x4d5dd9['delete'](_0x4018b6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4ebd55,_0x29b532){if(_0x4ebd55['isMultiRange']){for(const _0x331042 of _0x29b532['getRanges']())_0x4ebd55['addRange'](_0x331042);}else{const _0x370322=_0x29b532['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4ebd55,this['_model']['createRange'](_0x4ebd55['getFirstRange']()['start'],_0x370322));}_0x29b532['removeMarkers']();}['_getMarkerAnnouncementText'](_0xee980a,_0x31e2b2,_0x770ad0){const _0x7ca8af=_0xee980a['startsWith']('format')||_0xee980a['startsWith']('attribute')?'FORMATTING':_0xee980a['toUpperCase']();return o(this['editor']['locale'],_0x31e2b2+'_'+_0x7ca8af+'_SUGGESTION_ANNOUNCEMENT',_0x770ad0);}['_initAriaMarkerChangeAnnouncements'](){const _0x1b132e=this['editor'];if(!_0x1b132e['ui'])return;const {ariaLiveAnnouncer:_0x2d0e3f}=_0x1b132e['ui'];_0x5cada2(this['_model'],({left:_0x13f823,entered:_0x46001e})=>{for(const _0x443c3c of _0x13f823){const {group:_0x10f0f6,type:_0x326840}=this['_splitMarkerName'](_0x443c3c['name']);if('suggestion'===_0x10f0f6){_0x2d0e3f['announce'](this['_getMarkerAnnouncementText'](_0x326840,'LEAVE'));break;}}for(const _0x2f4aed of _0x46001e){const {group:_0x51a808,type:_0x221d17}=this['_splitMarkerName'](_0x2f4aed['name']);if('suggestion'===_0x51a808){_0x2d0e3f['announce'](this['_getMarkerAnnouncementText'](_0x221d17,'ENTER',_0x2a3371(_0x275e30)));break;}}});}['_processAttributeChanges'](_0x250e9c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x48e5fc=this['editor'],_0x244b96=_0x48e5fc['model']['document']['differ']['getChanges']();if(0x0==_0x244b96['length'])return!0x1;const _0x37a49a=[],_0x2fb2a9=_0x244b96['filter'](_0x154738=>'attribute'==_0x154738['type']),_0x3f7040=_0x244b96['filter'](_0xa5b4dd=>'insert'==_0xa5b4dd['type']&&'$text'!=_0xa5b4dd['name']),_0x18e783=_0x244b96['filter'](_0x22f95d=>'remove'==_0x22f95d['type']&&'$text'!=_0x22f95d['name']);for(const _0x2a16da of _0x2fb2a9)_0x37a49a['push']({'key':_0x2a16da['attributeKey'],'newValue':_0x2a16da['attributeNewValue'],'oldValue':_0x2a16da['attributeOldValue'],'range':Zt(_0x2a16da['range'],_0x48e5fc['model'])});for(const _0x5c5774 of _0x3f7040){const _0x540a8a=_0x18e783['find'](_0x12a204=>_0x12a204['position']['isEqual'](_0x5c5774['position']));_0x540a8a&&_0x37a49a['push']({'key':m,'newValue':_0x5c5774['name'],'oldValue':_0x540a8a['name'],'range':_0x48e5fc['model']['createRangeOn'](_0x5c5774['position']['nodeAfter'])});}return 0x0!=_0x37a49a['length']&&this['_reduceExistingSuggestions'](_0x250e9c,_0x37a49a);}['_processAttributeSuggestions'](_0x352dc2){let _0x3fbbd6=!0x1;const _0x4f6ecf=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4fd4f2=>_0x4fd4f2['data']['newRange']&&_0x4fd4f2['name']['startsWith']('suggestion:attribute:'));for(const _0x4b384c of _0x4f6ecf){const {subType:_0x2928fb,id:_0x3306cf}=this['_splitMarkerName'](_0x4b384c['name']),_0x5940be=_0x2928fb['split']('|')[0x0];for(const _0x3ee0ce of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3ee0ce['id']!=_0x3306cf&&'attribute'==_0x3ee0ce['type']&&_0x3ee0ce['data']&&_0x3ee0ce['data']['key']==_0x5940be&&_0x3ee0ce['getFirstRange']()['isIntersecting'](_0x4b384c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3ee0ce,_0x4b384c['data']['newRange'],_0x352dc2),_0x3fbbd6=!0x0);}return _0x3fbbd6;}['recordAttributeChanges'](_0x208023){this['_recordAttributeSuggestions']=!0x0,_0x208023();}['_isRegisteredAttribute'](_0x398234){return this['editor']['plugins']['get'](_0x449d1e)['isRegisteredAttribute'](_0x398234);}['_reduceExistingSuggestions'](_0x41bd79,_0x1bbf25){if(0x0==_0x1bbf25['length'])return!0x1;let _0x972f8c=!0x1;for(const _0x4fa506 of _0x1bbf25){const _0x5cc597=this['_findSuggestions'](_0x4fa506['range'],'attribute')['filter'](_0x541e43=>!_0x541e43['meta']['isNextTo'])['map'](_0x5b008e=>_0x5b008e['suggestion']),_0x17e0ec=_0x1bcab7({'newValue':_0x4fa506['newValue']});_0x5cc597['filter'](_0x82e331=>{const [_0x451507,_0x426521]=_0x82e331['subType']['split']('|');return _0x451507==_0x4fa506['key']&&_0x426521!=_0x17e0ec;})['forEach'](_0x51fabc=>{this['_reduceSuggestionAttributeRange'](_0x51fabc,_0x4fa506['range'],_0x41bd79),_0x972f8c=!0x0;});}return _0x972f8c;}['_reduceSuggestionAttributeRange'](_0x395d28,_0xa32df8,_0x49146d){const _0x2b7e26=_0x395d28['getFirstRange']()['getDifference'](_0xa32df8);0x0!==_0x2b7e26['length']?0x1!==_0x2b7e26['length']?this['_breakSuggestionMarker'](_0x395d28,_0xa32df8['start'],_0xa32df8['end']):this['_setSuggestionRange'](_0x395d28,_0x2b7e26[0x0]):_0x49146d['removeMarker'](_0x395d28['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3114af){this['_editor']=_0x3114af,this['_model']=_0x3114af['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xf3976,_0x46c1e0,_0x14b317,_0x41f000,_0x3762bc,_0x6220f7,_0x3ff83d){return new T(this['_model'],{'type':_0xf3976,'subType':_0x46c1e0,'id':_0x14b317,'originalSuggestionId':_0x3ff83d,'author':_0x41f000,'creator':_0x41f000,'attributes':_0x3762bc,'onAttributesChange':_0x6220f7,'onAccept':(..._0x427825)=>this['getSuggestionCallback'](_0xf3976,_0x46c1e0,'accept')(..._0x427825),'onDiscard':(..._0x1aa0c4)=>this['getSuggestionCallback'](_0xf3976,_0x46c1e0,'discard')(..._0x1aa0c4)});}['registerCustomCallback'](_0x2073aa,_0xaca8a7,_0x150802,_0x35f1a5){const _0x3c019b=_0x2073aa+':'+_0xaca8a7+':'+_0x150802;this['_customCallbacks']['set'](_0x3c019b,_0x35f1a5);}['getSuggestionCallback'](_0xee04c6,_0x2d1c83,_0xd9b346){const _0x274243=_0xee04c6+':'+_0x2d1c83+':'+_0xd9b346;return this['_customCallbacks']['get'](_0x274243)||this['_defaultCallbacks']['get'](_0xee04c6+':'+_0xd9b346);}['_registerDefaultCallbacks'](){const _0x3e7886=()=>!0x1,_0xd8ba9b=_0x2ab6cf=>{_0x2ab6cf['sort']((_0x563a1a,_0x409eb3)=>_0x563a1a['start']['isBefore'](_0x409eb3['start'])?0x1:-0x1),this['_model']['change'](_0x348e4c=>{for(const _0x5cfe41 of _0x2ab6cf){let _0x13492b;_0x13492b=_0x5cfe41['end']['isAtEnd']&&_0x5cfe41['end']['parent']==_0x5cfe41['start']['nodeAfter']?_0x348e4c['createSelection'](_0x5cfe41['start']['nodeAfter'],'on'):_0x348e4c['createSelection'](_0x5cfe41),this['_model']['deleteContent'](_0x13492b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x41318b=(_0x588d20,_0x32b0a5)=>{_0x32b0a5&&this['_model']['change'](_0xb0e322=>{const {commandName:_0x4c0644,commandParams:_0x303383=[]}=_0x32b0a5,_0x3192e4=_0x588d20['map'](_0x48f53b=>(Kt(_0x48f53b)&&(_0x48f53b=this['_model']['createRange'](_0x48f53b['end'])),_0x48f53b))['filter'](_0x3c0ce7=>'$graveyard'!==_0x3c0ce7['root']['rootName']);if(_0x3192e4['length']<0x1)return;const _0x20418a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x127705=>_0x1c8214['fromRange'](_0x127705));_0xb0e322['setSelection'](_0x3192e4);for(const _0x27780f of this['_editor']['commands']['commands']())_0x27780f['refresh']();_0x303383['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4c0644,..._0x303383);const _0x5aa467=_0x20418a['filter'](_0x75b4b=>'$graveyard'!=_0x75b4b['root']['rootName']);_0x5aa467['length']>0x0&&_0xb0e322['setSelection'](_0x5aa467);for(const _0x1b371b of _0x20418a)_0x1b371b['detach']();});},_0x4e485d=(_0x4ee914,_0x4df66a)=>0x1==_0x4ee914['length']&&0x1==_0x4df66a['length']&&_0x4ee914[0x0]['end']['isEqual'](_0x4df66a[0x0]['start']),_0x14244a=(_0x8657c4,_0x54cb65,_0x58534e,_0x1336e1)=>nn(_0x8657c4,_0x54cb65,_0x58534e,_0x1336e1)?[_0x8657c4,_0x54cb65]:nn(_0x54cb65,_0x8657c4,_0x1336e1,_0x58534e)?[_0x54cb65,_0x8657c4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3e7886),this['_defaultCallbacks']['set']('insertion:discard',_0xd8ba9b),this['_defaultCallbacks']['set']('insertion:join',_0x4e485d),this['_defaultCallbacks']['set']('insertion:chain',_0x14244a),this['_defaultCallbacks']['set']('deletion:accept',_0xd8ba9b),this['_defaultCallbacks']['set']('deletion:discard',_0x3e7886),this['_defaultCallbacks']['set']('deletion:join',_0x4e485d),this['_defaultCallbacks']['set']('deletion:chain',_0x14244a),this['_defaultCallbacks']['set']('formatInline:accept',_0x41318b),this['_defaultCallbacks']['set']('formatInline:discard',_0x3e7886),this['_defaultCallbacks']['set']('formatInline:join',_0x4e485d),this['_defaultCallbacks']['set']('formatInline:chain',_0x3e7886),this['_defaultCallbacks']['set']('formatBlock:accept',_0x41318b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3e7886),this['_defaultCallbacks']['set']('formatBlock:join',_0x4e485d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3e7886),this['_defaultCallbacks']['set']('attribute:accept',_0x3e7886),this['_defaultCallbacks']['set']('attribute:discard',(_0x394ca8,_0x232366)=>{if(!_0x232366)return;const _0x472411=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x691dd7=>{if(_0x232366['key']==m)for(const _0x2c6cd9 of _0x394ca8){const _0x54b5c1=_0x2c6cd9['start']['nodeAfter'],_0x472b24=_0x232366['oldValue'];_0x691dd7['rename'](_0x54b5c1,_0x472b24);}else{if(_0x472411['_isBlockAttribute'](_0x232366['key'])){for(const _0x26332a of _0x394ca8)void 0x0!==_0x232366['oldValue']?_0x691dd7['setAttribute'](_0x232366['key'],_0x232366['oldValue'],_0x26332a['start']['nodeAfter']):_0x691dd7['removeAttribute'](_0x232366['key'],_0x26332a['start']['nodeAfter']);}else{for(const _0x572597 of _0x394ca8)_0x232366['oldValue']?_0x691dd7['setAttribute'](_0x232366['key'],_0x232366['oldValue'],_0x572597):_0x691dd7['removeAttribute'](_0x232366['key'],_0x572597);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4e485d);}}function zt(_0x3ad7bb,_0x595201,_0xee06c9){for(const _0x8cafea of _0x595201['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x8cafea['root']==_0x8cafea)return!0x1;if(!_0xee06c9['containsItem'](_0x8cafea))return!0x1;if(_0x3ad7bb['isObject'](_0x8cafea)||_0x3ad7bb['isLimit'](_0x8cafea))return!0x0;}return!0x1;}function Kt(_0x56c82b){return _0x56c82b['end']['parent']==_0x56c82b['start']['nodeAfter']&&_0x56c82b['end']['isAtStart'];}function Wt(_0x2a479c,_0x3c3c17,_0x5f213d,_0x2820cf){const _0x990bea=_0x5d0b31=>!_0x5d0b31['item']['is']('$textProxy')&&!_0x2820cf['isObject'](_0x5d0b31['item']),_0x516dc4=_0x2a479c['start']['getLastMatchingPosition'](_0x990bea),_0x3f97fc=_0x2a479c['end']['getLastMatchingPosition'](_0x990bea,{'direction':'backward'});return(!_0x2a479c['start']['isEqual'](_0x516dc4)||!_0x2a479c['end']['isEqual'](_0x3f97fc))&&(_0x516dc4['isBefore'](_0x3f97fc)?_0x5f213d['updateMarker'](_0x3c3c17,{'range':_0x5f213d['createRange'](_0x516dc4,_0x3f97fc)}):_0x5f213d['removeMarker'](_0x3c3c17),!0x0);}function Ht(_0x53b43b){return _0x1bcab7(_0x53b43b);}function Qt(_0x297311){const _0x3f48f2=_0x297311['start']['nodeAfter'];return _0x3f48f2&&_0x3f48f2['is']('element');}function Xt(_0x4425de){return Kt(_0x4425de)||function(_0x219403){return _0x219403['start']['parent']==_0x219403['end']['nodeBefore']&&_0x219403['start']['isAtEnd'];}(_0x4425de);}function Yt(_0x1ced44,_0x34bb8c){try{const _0x306952=_0x1ced44['getRange']();for(const _0x50f352 of _0x34bb8c)if(_0x1ced44!==_0x50f352&&_0x306952&&_0x306952['isIntersecting'](_0x50f352['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x20ebc5,_0x509840){return null==_0x20ebc5['end']['nodeBefore']&&_0x20ebc5['end']['parent']==_0x20ebc5['start']['nodeAfter']?tn(_0x20ebc5['start']['nodeAfter'],_0x509840):_0x20ebc5;}function tn(_0xa4454d,_0x2ec0d6){const _0x152cba=_0x2ec0d6['schema']['isObject'](_0xa4454d)||_0x2ec0d6['schema']['isSelectable'](_0xa4454d);return _0x2ec0d6['createRange'](_0x2ec0d6['createPositionAt'](_0xa4454d,'before'),_0x152cba?_0x2ec0d6['createPositionAfter'](_0xa4454d):_0x2ec0d6['createPositionAt'](_0xa4454d,'end'));}function nn(_0x4be91e,_0x43206d,_0x497d71,_0x6ca502){return!!en(_0x4be91e,_0x43206d)&&_0x497d71['end']['isEqual'](_0x6ca502['start']);}function en(_0x335815,_0x25be86){if(!_0x335815['_isDataLoaded']||!_0x25be86['_isDataLoaded'])return!0x1;const _0x3b6421=new Set(Object['keys'](_0x335815['attributes'])),_0x58bac2=new Set(Object['keys'](_0x25be86['attributes']));if(_0x3b6421['delete']('groupId'),_0x58bac2['delete']('groupId'),0x0==_0x3b6421['size']&&0x0==_0x58bac2['size'])return!0x0;if(_0x3b6421['size']!=_0x58bac2['size'])return!0x1;const _0x394d04={..._0x335815['attributes']},_0x22500a={..._0x25be86['attributes']};return delete _0x394d04['groupId'],delete _0x22500a['groupId'],JSON['stringify'](_0x394d04)==JSON['stringify'](_0x22500a);}function sn(_0x28e0e4,_0x15f137){const _0x216f8e=on(_0x28e0e4['attributes']),_0x1eebe6=on(_0x15f137);if(!_0x28e0e4['_isDataLoaded'])return!0x1;for(const _0x2a20ee of Object['keys'](_0x1eebe6))if(!_0x458cd7(_0x216f8e[_0x2a20ee],_0x1eebe6[_0x2a20ee]))return!0x1;return!0x0;}function on(_0x4b6a88){const _0x55a9e5=Object['assign']({},_0x4b6a88);return delete _0x55a9e5['skipNestingCheck'],delete _0x55a9e5['tablePasteChainId'],_0x55a9e5;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x1f6451(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xa8b6d3,_0x32bea8,_0x222563,_0x6e2a08){super(),this['model']=_0x32bea8,this['view']=_0x222563,this['commentThreadController']=_0x6e2a08,this['_editor']=_0xa8b6d3,this['_acceptCommand']=_0xa8b6d3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xa8b6d3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x388f25,_0x2b3876)=>_0x388f25||_0x2b3876),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2b24d6=>_0x2b24d6&&this['_editor']['model']['canEditAt'](_0x32bea8['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2cc52b=>_0x2cc52b&&this['_editor']['model']['canEditAt'](_0x32bea8['getRanges']())),this['_pendingAction']=null,_0x222563['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x222563,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x222563,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x222563,'change:isDirty',()=>{_0x222563['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 _0x8c9a71=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x8c9a71);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x296b1b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2e9f18,_0x5d7e3b,_0x35a92e,_0x5b9933){super(_0x2e9f18),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x396acf(_0x2e9f18,o(_0x2e9f18,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d7e3b['authoredAt']),this['bind']('authoredAt')['to'](_0x5d7e3b),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',_0x5d7e3b,'authoredAt',this,'descriptionParts',(_0x32ef3d,_0x3ca69c,_0x43e8bf)=>{const _0x3a8826=_0x43e8bf['map'](_0x451695=>ls(_0x451695['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x32ef3d-0x1,_0x5d7e3b['author']['name'],_0x3ca69c?_0x5b9933['formatDateTime'](_0x3ca69c):'',new DOMParser()['parseFromString'](_0x3a8826,'text/html')['body']['textContent']]);}),this['focusables']=new _0x29a5de(),this['focusTracker']=new _0x312a25(),this['keystrokes']=new _0x7b97d3(),this['focusCycler']=new _0x3e9350({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x189056=>_0x189056['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5d7e3b,this['_localUser']=_0x35a92e,this['_config']=_0x5b9933,_0x5b9933['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x541f64(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x10513d}=this['_config'];this['commentsListView']=new _0x10513d(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',_0x4199aa=>_0x4199aa+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x59c9e3,_0x4bd8f9)=>_0x59c9e3||!!_0x4bd8f9);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4fd484}=this['_config'],_0x59b11f=new _0x4fd484(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1de2fc=_0x59b11f['commentInputView'];return _0x59b11f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1de2fc,'value',(_0x42cb43,_0x489ac3,_0x1f0c5f)=>!!_0x1f0c5f||_0x42cb43&&!_0x489ac3),_0x1de2fc['on']('submit',(_0x5f210d,_0xad879b)=>{this['fire']('addComment',_0xad879b),_0x1de2fc['editor']['setData']('');}),_0x1de2fc['on']('cancel',()=>this['focus']()),_0x1de2fc['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x59b11f;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x495fc4,_0x1bbf2c,_0x535f67,_0x2511a2){super(_0x495fc4,_0x1bbf2c,_0x535f67,_0x2511a2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x56fead=>_0x56fead&&_0x56fead[0x0]?_0x56fead[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x100ebc,_0x3217e8)=>{let _0x3cad3c='';for(const _0xdb6c5a of _0x100ebc)_0x3cad3c+='<p>'+ls(_0xdb6c5a['content'],_0xdb6c5a['color'])+'</p>';return _0x3217e8?_0x3cad3c:_0x32d800(_0x3cad3c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2511a2['SuggestionView'](_0x495fc4,_0x1bbf2c,{'formatDateTime':_0x2511a2['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 _0x45ed59=this['bindTemplate'],_0x5726ec=[this['suggestionView']];return this['commentsListView']&&_0x5726ec['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5726ec['push'](this['commentThreadInputView']),_0x5726ec['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x45ed59['if']('isActive','ck-suggestion-wrapper--active'),_0x45ed59['to']('type',_0x626587=>'ck-suggestion-'+_0x626587),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':_0x45ed59['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5726ec};}['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 _0x296b1b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2e559b,_0x28349f,_0x56cb0d){super(_0x2e559b),this['_model']=_0x28349f,this['_config']=_0x56cb0d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x28349f),this['acceptButton']=this['_createButton'](o(_0x2e559b,'Accept\x20suggestion'),_0x538c21,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2e559b,'Discard\x20suggestion'),_0xff2a0c,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3f1a96(_0x2e559b,_0x28349f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x29a5de([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x312a25(),this['keystrokes']=new _0x7b97d3(),this['focusCycler']=new _0x3e9350({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x49fba0=>_0x49fba0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xa17ab4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xa17ab4['innerHTML']=this['description'],this['on']('change:description',(_0x1632d7,_0x10ea30,_0x3a80b)=>{_0xa17ab4['innerHTML']=_0x3a80b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1aaec3=this['bindTemplate'],_0x312039=[{'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':_0x1aaec3['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1aaec3['to']('authoredAt',_0x3e1466=>this['_config']['formatDateTime'](_0x3e1466))}]}]},{'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']&&_0x312039['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':_0x312039}]};}['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'](_0x204708,_0x3cf7da,_0x184fb7,_0x5527f4,_0x52fe9b){const _0x4c1f63=new _0x406286(this['locale']);return _0x4c1f63['set']({'label':_0x204708,'icon':_0x3cf7da,'tooltip':!0x0,'tooltipPosition':_0x52fe9b}),_0x4c1f63['extendTemplate']({'attributes':{'class':_0x184fb7}}),_0x4c1f63['on']('execute',()=>{this['fire'](_0x5527f4,this['_model']['id']);}),_0x4c1f63;}['_setupKeyboardNavigation'](){const _0x20035a=this['element'];this['keystrokes']['listenTo'](_0x20035a);for(const _0x311dcb of this['focusables'])this['focusTracker']['add'](_0x311dcb['element']),this['keystrokes']['listenTo'](_0x311dcb['element']);this['keystrokes']['set']('enter',(_0x1b96cc,_0xbfb488)=>{_0x20035a===_0x1b96cc['target']&&(this['focusCycler']['focusFirst'](),_0xbfb488());}),this['keystrokes']['set']('esc',(_0x44762b,_0x20b3bd)=>{_0x20035a!==_0x44762b['target']&&(this['focus'](),_0x20b3bd());});}}class u extends _0x561601{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x2db242,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15946c){super(_0x15946c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x52cdb6=this['editor']['config'];_0x52cdb6['define']('trackChanges.SuggestionThreadView',fe),_0x52cdb6['define']('trackChanges.SuggestionView',we),_0x52cdb6['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x52cdb6['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x511fd2,_0xb394ed){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x533de9,_0x444820]of this['_handleControllerBuffer']){const _0x4a6a2f=this['_suggestionToController']['has'](_0x533de9);_0x4a6a2f||_0x444820?_0x4a6a2f&&_0x444820&&this['_destroyController'](_0x533de9):this['_initializeController'](_0x533de9);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x511fd2,_0xb394ed);}['init'](){const _0xc3d872=this['editor'],_0x24ebf9=_0xc3d872['plugins']['get']('TrackChangesEditing'),_0x16f505=_0xc3d872['plugins']['get']('Annotations'),_0x1d142d=_0xc3d872['plugins']['get']('EditorAnnotations'),_0x494afd=_0xc3d872['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1d142d['addSourceCollector'](()=>{const _0x64a62a=[];for(const [_0x41da09,_0x57ea42]of Array['from'](this['_suggestionToController'])){const _0x2c2d57=_0x41da09['getAllAdjacentSuggestions'](),_0x5528b2=[];for(const _0x39438f of _0x2c2d57){if(!_0x39438f['isInContent'])continue;if(_0x39438f['isMultiRange']){_0x5528b2['push'](..._0x39438f['getRanges']());continue;}const _0x9391d0=_0x39438f['getFirstRange']();if(_0x5528b2['length']>0x0){const _0x205ecd=_0x5528b2[0x0]['getJoined'](_0x9391d0);if(_0x205ecd){_0x5528b2[0x0]=_0x205ecd;continue;}}_0x5528b2['push'](_0x9391d0);}_0x64a62a['push']([_0x57ea42['view'],_0x5528b2]);}return _0x64a62a;}),this['listenTo'](_0x24ebf9,'suggestionLoaded',(_0x3f9073,_0x3db583)=>{this['listenTo'](_0x3db583,'change:previous',(_0xe89293,_0x55bd0e,_0x1bf3d1,_0x4edeca)=>{_0x3db583['isInContent']&&(null==_0x1bf3d1?(this['_updateController'](_0x4edeca['head']),this['_handleSuggestionControllerDelayed'](_0x3db583,!0x1)):(this['_updateController'](_0x1bf3d1['head']),null==_0x4edeca&&this['_handleSuggestionControllerDelayed'](_0x3db583,!0x0)));}),null!==_0x3db583['previous']?this['_updateController'](_0x3db583['head']):this['_handleSuggestionControllerDelayed'](_0x3db583,!0x1);}),this['listenTo'](_0x24ebf9,'suggestionUnloaded',(_0x4042fd,_0x3aaeee,_0xf874aa)=>{this['stopListening'](_0x3aaeee,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3aaeee),this['_suggestionToController']['has'](_0x3aaeee)&&this['_destroyController'](_0x3aaeee),_0xf874aa&&this['_updateController'](_0xf874aa['head']);}),this['listenTo'](_0x24ebf9,'suggestionChanged',(_0x3709c3,_0x4b69c5)=>{this['_updateController'](_0x4b69c5);}),this['listenTo'](_0x16f505,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x494afd,'addComment',(_0x40cd98,{threadId:_0x2d67a0,isFromAdapter:_0x5ac45e})=>{if(_0x5ac45e||!_0x24ebf9['hasSuggestion'](_0x2d67a0))return;const _0x42e637=_0x24ebf9['getSuggestion'](_0x2d67a0);this['_suggestionToController']['get'](_0x42e637)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x56cc36=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c776c;for(const _0x941d1b in _0x56cc36){const _0x45babe=_0x941d1b,_0x33b479=_0x56cc36[_0x45babe];if('trackChangesLicenseKeyValid'==_0x33b479||'trackChangesLicenseKeyInvalid'==_0x33b479||'trackChangesLicenseKeyExpired'==_0x33b479||'trackChangesLicenseKeyDomainLimit'==_0x33b479||'trackChangesLicenseKeyNotAllowed'==_0x33b479||'trackChangesLicenseKeyEvaluationLimit'==_0x33b479||'trackChangesLicenseKeyUsageLimit'==_0x33b479){delete _0x56cc36[_0x45babe],_0x4c776c=_0x33b479,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4c776c&&_0x56cc36['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4c776c&&_0x56cc36['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4c776c&&_0x56cc36['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4c776c&&_0x56cc36['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4c776c&&_0x56cc36['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4c776c&&_0x56cc36['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3f4b4b){const _0x1a285d=this['_suggestionToController']['get'](_0x3f4b4b);if(!_0x1a285d)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x1a285d['view'])||null;}['getSuggestionForAnnotation'](_0x534c29){const _0x24d7c0=this['_viewToController']['get'](_0x534c29['innerView']);return _0x24d7c0?_0x24d7c0['model']:null;}['_refreshActiveMarkers'](){const _0x52d103=this['editor']['plugins']['get']('Annotations'),_0xc98226=this['editor']['plugins']['get']('TrackChangesEditing'),_0x149f29=Array['from'](_0x52d103['activeAnnotations'],_0x2fa6c8=>_0x2fa6c8['innerView'])['filter'](_0x5f232b=>this['_viewToController']['has'](_0x5f232b)),_0x2ead44=[];for(const _0x3d750b of _0x149f29){const _0x49c89f=this['_viewToController']['get'](_0x3d750b)['model']['getAllAdjacentSuggestions']();_0x2ead44['push'](..._0x49c89f['reduce']((_0x171eaa,_0x5ed541)=>[..._0x171eaa,..._0x5ed541['getMarkerNames']()],[]));}_0xc98226['activeMarkers']=_0x2ead44;}['_addUIComponentsToFactory'](){const _0x1fb1b4=this['editor'],_0x163965=_0x1fb1b4['locale'],_0x1388d7=o(_0x163965,'Track\x20changes'),_0x304304=new _0x221e41([{'type':'switchbutton','model':new _0x13aee8({'withText':!0x0,'isToggleable':!0x0,'label':_0x1388d7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x13aee8({'withText':!0x0,'label':o(_0x163965,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13aee8({'withText':!0x0,'label':o(_0x163965,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13aee8({'withText':!0x0,'label':o(_0x163965,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13aee8({'withText':!0x0,'label':o(_0x163965,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1fb1b4['plugins']['has']('TrackChangesPreview')&&_0x304304['addMany']([{'type':'separator'},{'type':'button','model':new _0x13aee8({'withText':!0x0,'label':o(_0x163965,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x14014f of _0x304304)if(ke(_0x14014f)){const _0xbe4929=_0x1fb1b4['commands']['get'](_0x14014f['model']['commandName']);_0x14014f['model']['bind']('isOn','isEnabled')['to'](_0xbe4929,'value','isEnabled');}_0x1fb1b4['ui']['componentFactory']['add']('trackChanges',_0x42467b=>this['_createToolbarButton'](_0x42467b,_0x304304,_0x1388d7)),_0x1fb1b4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x38beb3=>this['_createMenuBarMenu'](_0x38beb3,_0x304304,_0x1388d7));}['_createToolbarButton'](_0x2436aa,_0x2cd40c,_0x582358){const _0x18bca5=_0x410f15(_0x2436aa,_0x363920),_0x354ee8=this['editor']['commands']['get']('trackChanges');_0x18bca5['buttonView']['set']({'tooltip':_0x582358,'label':_0x582358,'icon':_0x1f8d12}),_0x18bca5['buttonView']['bind']('isOn')['to'](_0x354ee8,'value'),_0x18bca5['buttonView']['on']('execute',()=>{_0x354ee8['execute'](),this['editor']['editing']['view']['focus']();}),_0x18ec4b(_0x18bca5,_0x2cd40c,{'role':'menu'});const _0x530ff6=[];for(const _0x463c4f of _0x2cd40c)ke(_0x463c4f)&&_0x530ff6['push'](this['editor']['commands']['get'](_0x463c4f['model']['commandName']));const _0x468494=_0x18bca5['buttonView'];return _0x468494['actionView']['unbind']('isEnabled'),_0x468494['arrowView']['unbind']('isEnabled'),_0x468494['actionView']['bind']('isEnabled')['to'](_0x354ee8,'isEnabled'),_0x468494['arrowView']['bind']('isEnabled')['toMany'](_0x530ff6,'isEnabled',(..._0x3ef1e7)=>_0x3ef1e7['some'](_0x31a457=>_0x31a457)),_0x18bca5['on']('execute',_0x2b736c=>{this['editor']['execute'](_0x2b736c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x18bca5;}['_createMenuBarMenu'](_0xd3247,_0x41f5aa,_0x44dac3){const _0x54e864=new _0x1b4b63(_0xd3247),_0x13a576=this['editor']['commands']['get']('trackChanges');_0x54e864['buttonView']['set']({'label':_0x44dac3,'icon':_0x1f8d12});const _0x38787e=new _0x5e8bce(_0xd3247);for(const _0x14c863 of _0x41f5aa){if('separator'==_0x14c863['type']){_0x38787e['items']['add'](new _0x30107d(_0xd3247));continue;}const _0x170620=new _0x33c715(_0xd3247,_0x54e864),_0xe49944=new _0x39b755(_0xd3247),_0x54e003=_0x14c863['model'];_0xe49944['bind'](...Object['keys'](_0x54e003))['to'](_0x54e003),_0xe49944['delegate']('execute')['to'](_0x54e864),_0xe49944['on']('execute',()=>{this['editor']['execute'](_0x54e003['commandName']),this['editor']['editing']['view']['focus']();}),_0x170620['children']['add'](_0xe49944),_0x38787e['items']['add'](_0x170620);}return _0x54e864['bind']('isEnabled')['to'](_0x13a576,'isEnabled'),_0x54e864['panelView']['children']['add'](_0x38787e),_0x54e864;}['_initializeController'](_0x56ec5d){const _0x4d681d=this['editor'],_0x2793cb=_0x4d681d['config'],_0x5f5843=_0x4d681d['plugins']['get']('Annotations'),_0x19a1b2=_0x4d681d['plugins']['get']('CommentsRepository'),_0x49ad33=_0x4d681d['plugins']['get']('EditorAnnotations'),_0x51a5d1=_0x4d681d['plugins']['get'](_0x2db242)['me'],_0x175c34=_0x2793cb['get']('trackChanges')['SuggestionThreadView'],_0x1ba91a=_0x2793cb['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x265381,CommentThreadInputView:_0x180b3}=_0x4d681d['plugins']['get']('CommentsUI');let _0x489a0d,_0x1dc629,_0x461b5a;this['_annotationViews']['has'](_0x56ec5d['id'])?(_0x1dc629=this['_annotationViews']['get'](_0x56ec5d['id']),_0x489a0d=_0x1dc629['mainView']):(_0x489a0d=new _0x175c34(_0x4d681d['locale'],_0x56ec5d,_0x51a5d1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2793cb['get']('comments.editorConfig'),'licenseKey':_0x2793cb['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2793cb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2793cb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2793cb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4cdcea(_0x2793cb['get']('locale'),_0x4d681d['locale']),'CommentView':_0x2793cb['get']('comments')['CommentView'],'CommentsListView':_0x265381,'CommentThreadInputView':_0x180b3,'SuggestionView':_0x1ba91a}),_0x489a0d['suggestionView']['acceptButton']['on']('execute',()=>{_0x4d681d['editing']['view']['focus']();}),_0x489a0d['suggestionView']['discardButton']['on']('execute',()=>{_0x4d681d['editing']['view']['focus']();}),_0x1dc629=_0x5f5843['createAnnotationView'](this['editor']['locale'],_0x489a0d),_0x1dc629['bind']('isDirty')['to'](_0x489a0d,'isDirty'),_0x1dc629['bind']('length')['to'](_0x489a0d),_0x1dc629['bind']('type')['to'](_0x489a0d,'type',_0x27944b=>'suggestion-'+_0x27944b),_0x489a0d['on']('escape',()=>{_0x461b5a['fire']('escape');}),this['_annotationViews']['set'](_0x56ec5d['id'],_0x1dc629));const _0xb8df57=_0x19a1b2['createCommentThreadController'](_0x56ec5d['commentThread'],_0x489a0d),_0x55913e=new pe(_0x4d681d,_0x56ec5d,_0x489a0d,_0xb8df57),_0x5cfb09=_0x56ec5d['getAllAdjacentSuggestions']()['filter'](_0x5d8ded=>_0x5d8ded['isInContent']);_0x489a0d['descriptionParts']=_0x4d681d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5cfb09),this['_suggestionToController']['set'](_0x56ec5d,_0x55913e),this['_viewToController']['set'](_0x489a0d,_0x55913e);const _0x165161=()=>{const _0x3e0b02=[],_0x1ce572=_0x56ec5d['getAllAdjacentSuggestions']()['filter'](_0x112791=>_0x112791['isInContent']);for(const _0x1a7585 of _0x1ce572)_0x3e0b02['push'](..._0x1a7585['getMarkers']());return _0x337b71(_0x4d681d['editing'],_0x3e0b02);};_0x461b5a=_0x5f5843['createAnnotation']({'view':_0x1dc629,'target':_0x165161,'type':()=>'suggestion-'+_0x55913e['view']['type'],'isVisible':!!_0x165161()}),_0x19a1b2['_bindAnnotationToEditors'](_0x489a0d,_0x461b5a),_0x5f5843['add'](_0x461b5a),_0x49ad33['registerAnnotation'](_0x461b5a);}['_destroyController'](_0x737925){const _0x4cfa0a=this['editor']['plugins']['get']('CommentsRepository'),_0x5624a4=this['editor']['plugins']['get']('Annotations'),_0x505b13=this['_suggestionToController']['get'](_0x737925),_0x4e1deb=_0x505b13['view'],_0x33ecc6=_0x5624a4['getByInnerView'](_0x4e1deb);_0x4cfa0a['_unbindEditors'](_0x4e1deb),_0x33ecc6&&_0x5624a4['remove'](_0x33ecc6),this['_suggestionToController']['delete'](_0x737925),this['_viewToController']['delete'](_0x4e1deb),_0x505b13['destroy']();}['_updateController'](_0x56306c){if(!_0x56306c['isInContent']||!this['_suggestionToController']['has'](_0x56306c))return;const _0x421908=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1322cf=this['_suggestionToController']['get'](_0x56306c),_0x23f07c=_0x56306c['getAllAdjacentSuggestions']();_0x1322cf['view']['descriptionParts']=_0x421908['descriptionFactory']['getDescriptions'](_0x23f07c);}['destroy'](){for(const _0x179ead of this['_suggestionToController']['keys']())this['_destroyController'](_0x179ead);for(const _0x7d60d1 of this['_annotationViews']['values']())_0x7d60d1['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x143c7d){return'model'in _0x143c7d;}class Ne extends _0x561601{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x32a2f2){this['editor']['plugins']['get'](d)['adapter']=_0x32a2f2;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x20f3c0){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x20f3c0);}['getSuggestions']({skipNotAttached:_0x490763=!0x1,toJSON:_0x25f321=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x490763,'toJSON':_0x25f321});}['getSuggestion'](_0x435cac){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x435cac);}}const p=['Pagination'];class re extends _0x561601{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3e68c9=this['editor'];if(_0x3e68c9['config']['define']('trackChangesData.editorCreator',_0x5c0dbc=>{const _0x478311=_0x3e68c9['model']['document']['getRootNames']()['reduce']((_0x558cf0,_0x12cf5c)=>(_0x558cf0[_0x12cf5c]='',_0x558cf0),{});return _0x3e68c9['constructor']['create'](_0x478311,_0x5c0dbc);}),'function'!=typeof _0x3e68c9['config']['get']('trackChangesData')['editorCreator'])throw new _0xcae84a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3216e7){return P(this['editor'],!0x0,_0x3216e7);}['getDataWithDiscardedSuggestions'](_0xa05b2c){return P(this['editor'],!0x1,_0xa05b2c);}}class Fe extends _0x561601{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3344b8){function _0x34e5d7(_0x11f9bd){return _0x11f9bd['map'](_0x8e3d91=>String['fromCharCode'](_0x8e3d91))['join']('');}super(_0x3344b8),this['result']='end',_0x3344b8[_0x34e5d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34e5d7([0x76,0x69,0x65,0x77])][_0x34e5d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34e5d7([0x61,0x75,0x74,0x6f]),_0x3344b8[_0x34e5d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x34e5d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34e5d7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x34e5d7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x34e5d7([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(_0x307eba){return void 0x0!==_0x307eba['getRootsAttributes'];}async function P(_0x492f51,_0x4bfc01,_0x3350f3){const _0x3ff61b=_0x2fc5c3(_0x492f51,p);_0x3ff61b['plugins']['push'](d,Fe),_0x3ff61b['rootsAttributes']=De(_0x492f51)?_0x492f51['getRootsAttributes']():void 0x0;const _0x4b01fb=document['createDocumentFragment'](),_0x58992d=_0x492f51['config']['get']('trackChangesData')['editorCreator'],_0x1db77e=await _0x58992d(_0x3ff61b,()=>function(_0x12a8b0){const _0x59fc07=document['createElement']('div');return _0x12a8b0['appendChild'](_0x59fc07),_0x59fc07;}(_0x4b01fb));!function(_0xb9d4e5,_0xc7268a){const _0x516797=_0xb9d4e5['model']['document']['getRootNames']()['reduce']((_0x740d35,_0x52ffa7)=>(_0x740d35[_0x52ffa7]=_0xb9d4e5['data']['get']({'rootName':_0x52ffa7}),_0x740d35),{}),_0x293011=_0xb9d4e5['plugins']['get']('Users')['users']['map'](_0x782899=>({'id':_0x782899['id'],'name':_0x782899['name']})),_0x46c860=_0xb9d4e5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5dd957=_0xb9d4e5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf190f9=_0xc7268a['plugins']['get']('Users'),_0x3a46b4=_0xc7268a['plugins']['get']('TrackChangesEditing'),_0x47cf1f=_0xc7268a['plugins']['get']('CommentsRepository');for(const _0x1e204a of _0x47cf1f['getCommentThreads']())_0x1e204a['remove']();for(const _0x6c4cb7 of _0x293011)_0xf190f9['getUser'](_0x6c4cb7['id'])||_0xf190f9['addUser'](_0x6c4cb7);_0xf190f9['me']||_0xf190f9['useAnonymousUser']();for(const _0x1d250e of _0x5dd957)_0x47cf1f['addCommentThread'](_0x1d250e);for(const _0x1c02c6 of _0x46c860)_0x3a46b4['addSuggestionData'](_0x1c02c6);_0xc7268a['data']['set'](_0x516797);}(_0x492f51,_0x1db77e),_0x1db77e['execute'](_0x4bfc01?'acceptAllSuggestions':'discardAllSuggestions');const _0x2aefd6=De(_0x1db77e)?_0x1db77e['getFullData'](_0x3350f3):_0x1db77e['data']['get'](_0x3350f3);return await _0x1db77e['destroy'](),_0x2aefd6;}class Me extends _0x296b1b{['options'];constructor(_0x34bea3,_0x3188d0){super(_0x34bea3),this['options']=_0x3188d0,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'](_0x3e0efe,_0x3dda2a){if(!this['element'])return;const _0xa883df=[];for(const [_0x15db40,_0x3f5ccb]of _0x3e0efe){const _0x5c97a2=document['createElement']('div');_0x5c97a2['setAttribute']('data-ck-root-name',_0x15db40),_0x5c97a2['className']=_0x3f5ccb['classes']+'\x20ck-track-changes-preview__root-container',_0x5c97a2['innerHTML']=_0x3f5ccb['content'],_0xa883df['push'](_0x5c97a2);}_0x3dda2a(this['element'],_0xa883df),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x47f84f{constructor(_0x2f7084){super(_0x2f7084),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x569be5=this['editor'],_0x11d614=_0x569be5['locale'],_0x288a97=_0x569be5['plugins']['get']('Dialog');let _0x59f03a;const _0xf43480=function(_0x5986c4){const _0x42a03d={};if('editables'in _0x5986c4['ui']['view']){for(const [_0x3b0822,_0x3bdbaa]of Object['entries'](_0x5986c4['ui']['view']['editables']))_0x42a03d[_0x3b0822]=_0x3bdbaa['element'];}else _0x42a03d[_0x5986c4['model']['document']['getRootNames']()[0x0]]=_0x5986c4['ui']['view']['editable']['element'];return _0x42a03d;}(_0x569be5),_0x552c19=function(_0x4aa73b){let _0x1729c3=0x0;for(const _0x35281a of Object['values'](_0x4aa73b))_0x1729c3=Math['max'](_0x1729c3,_0x35281a['getBoundingClientRect']()['width']);let _0x2a6b7c=0x0;for(const _0xfeda7 of Object['values'](_0x4aa73b))_0x2a6b7c+=_0xfeda7['getBoundingClientRect']()['height'];const _0x3d4426=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xe25fd9=Math['min'](_0x2a6b7c,_0x3d4426);return{'width':_0x1729c3,'height':_0xe25fd9};}(_0xf43480);_0x288a97['show']({'id':'finalContentPreview','title':o(_0x11d614,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x11d614,{'dialogRects':_0x552c19}),'onHide':()=>{_0x59f03a['detachFromDom']();},'onShow':()=>{_0x569be5['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5d1477=>{const _0x30e47f=this['_standarizeRootsData'](_0x5d1477,_0x569be5,_0xf43480);_0x288a97['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x30e47f,_0x569be5['config']['get']('trackChanges.preview.renderFunction'));}),_0x59f03a=new _0x37bc31(_0x11d614,[_0x288a97['view']]),_0x59f03a['attachToDom'](),_0x59f03a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x569be5['once']('destroy',()=>{_0x59f03a['detachFromDom']();});const _0x1941da=_0x288a97['view']['headerView']['class'];_0x288a97['view']['headerView']['class']=_0x1941da?_0x1941da+'\x20ck-reset_all':'ck-reset_all',_0x288a97['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x288a97['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x135882=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3274ac=_0x135882['previewMode'],_0x2fb4d3={};if('$labels'===_0x3274ac){for(const _0x2db9c7 of _0x135882['getMergeFieldsIds']())_0x2fb4d3[_0x2db9c7]=_0x135882['getLabel'](_0x2db9c7)||_0x2db9c7;}else{const _0x5a3494='$defaultValues'===_0x3274ac?_0x135882['getDefaultValues']():_0x135882['getDataSetValues'](_0x3274ac,!0x0);for(const _0x485d56 of Object['entries'](_0x5a3494)){const [_0x5c10f8,_0x4f44b1]=_0x485d56;_0x2fb4d3[_0x5c10f8]=null!==_0x4f44b1?_0x4f44b1:_0x135882['getLabel'](_0x5c10f8)||_0x5c10f8;}}return{'mergeFieldsData':_0x2fb4d3};}['_standarizeRootsData'](_0x3cb789,_0xe393b,_0x5aae73){let _0x5132f3;if('string'==typeof _0x3cb789){const _0x411758=_0xe393b['model']['document']['getRootNames']()[0x0];_0x5132f3={[_0x411758]:_0x3cb789};}else _0x5132f3=_0x3cb789;const _0x220959=this['_fixMediaEmbeds'](_0x5132f3,_0xe393b),_0x43e277=function(_0x193fe1,_0x5f18d0){for(const [_0x1cfcdc,_0x382e22]of _0x193fe1)_0x382e22['classes']=_0x5f18d0[_0x1cfcdc]['classList']['value']['replace']('ck-focused','');return _0x193fe1;}(this['_sortRoots'](_0xe393b)['reduce']((_0x1e2a98,_0x2d765c)=>(_0x1e2a98['push']([_0x2d765c,{'content':_0x220959[_0x2d765c],'classes':''}]),_0x1e2a98),[]),_0x5aae73);return _0x43e277;}['_fixMediaEmbeds'](_0x45ebb3,_0x269f91){if(!_0x269f91['plugins']['has']('MediaEmbedEditing'))return _0x45ebb3;const _0x51ecb6=_0x269f91['plugins']['get']('MediaEmbedEditing');for(const [_0x10d4da,_0x2d8940]of Object['entries'](_0x45ebb3)){const _0x2c10da=document['createElement']('div');_0x2c10da['innerHTML']=_0x2d8940,(_0x2c10da['querySelectorAll']('figure.media')['forEach'](_0x11511d=>{const _0x3c2855=_0x11511d['querySelector']('oembed');if(_0x3c2855){const _0x3e9dd9=_0x3c2855['getAttribute']('url');if(_0x3e9dd9){const _0x4cf339=_0x51ecb6['registry']['getMediaViewElement'](new _0x3ea7e6(_0x269f91['editing']['view']['document']),_0x3e9dd9,{'elementName':'','renderForEditingView':!0x0}),_0xc65c9a=document['createElement']('div');_0xc65c9a['classList']['add']('ck-media__wrapper'),_0x4cf339['render'](_0xc65c9a,_0x269f91['editing']['view']['domConverter']),_0x3c2855['replaceWith'](_0xc65c9a);}}}),_0x45ebb3[_0x10d4da]=_0x2c10da['innerHTML']);}return _0x45ebb3;}['_sortRoots'](_0x5df15b){if(!function(_0x2f07a7){return void 0x0!==_0x2f07a7['getRootsAttributes'];}(_0x5df15b))return _0x5df15b['model']['document']['getRootNames']();const _0x1fdd02=[],_0x5a80c5=new Map();for(const _0x422482 of _0x5df15b['model']['document']['getRootNames']()){const _0x12d356=_0x5df15b['editing']['view']['getDomRoot'](_0x422482)['getClientRects']()['item'](0x0);_0x1fdd02['push'](_0x422482),_0x5a80c5['set'](_0x422482,_0x12d356);}return _0x1fdd02['sort']((_0x3509b1,_0x35db7b)=>{const _0x5a9bea=_0x5a80c5['get'](_0x3509b1),_0x56ec0d=_0x5a80c5['get'](_0x35db7b);return _0x5a9bea['y']-_0x56ec0d['y']||_0x5a9bea['x']-_0x56ec0d['x'];}),_0x1fdd02;}}class Ue extends _0x561601{static get['requires'](){return[re,_0x3d70c1];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12e250){super(_0x12e250),_0x12e250['commands']['add']('previewFinalContent',new te(this['editor'])),_0x12e250['config']['define']('trackChanges.preview.renderFunction',(_0x54fe01,_0x1c58aa)=>{for(const _0x43cc11 of _0x1c58aa)_0x54fe01['appendChild'](_0x43cc11);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};