@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250701.0 → 0.0.0-nightly-20250701.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 (227) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/lineheight.js +1 -1
  185. package/src/integrations/link.js +1 -1
  186. package/src/integrations/list.js +1 -1
  187. package/src/integrations/listproperties.js +1 -1
  188. package/src/integrations/mediaembed.js +1 -1
  189. package/src/integrations/mention.js +1 -1
  190. package/src/integrations/mergefields.js +1 -1
  191. package/src/integrations/multilevellist.js +1 -1
  192. package/src/integrations/pagebreak.js +1 -1
  193. package/src/integrations/paragraph.js +1 -1
  194. package/src/integrations/removeformat.js +1 -1
  195. package/src/integrations/replacesourcecommand.js +1 -1
  196. package/src/integrations/restrictededitingmode.js +1 -1
  197. package/src/integrations/shiftentercommand.js +1 -1
  198. package/src/integrations/standardeditingmode.js +1 -1
  199. package/src/integrations/style.js +1 -1
  200. package/src/integrations/table.js +1 -1
  201. package/src/integrations/tablecaption.js +1 -1
  202. package/src/integrations/tableclipboard.js +2 -2
  203. package/src/integrations/tablecolumnresize.js +1 -1
  204. package/src/integrations/tableheadings.js +1 -1
  205. package/src/integrations/tablelayout.js +1 -1
  206. package/src/integrations/tablemergesplit.js +1 -1
  207. package/src/integrations/tableofcontents.js +1 -1
  208. package/src/integrations/tableproperties.js +1 -1
  209. package/src/integrations/template.js +1 -1
  210. package/src/integrations/title.js +1 -1
  211. package/src/integrations/undo.js +1 -1
  212. package/src/integrations/uploadcare.js +1 -1
  213. package/src/integrations/utils.js +1 -1
  214. package/src/suggestion.js +2 -2
  215. package/src/suggestiondescriptionfactory.js +1 -1
  216. package/src/trackchanges.js +1 -1
  217. package/src/trackchangesdata.js +1 -1
  218. package/src/trackchangesediting.js +1 -1
  219. package/src/trackchangespreview.js +1 -1
  220. package/src/trackchangesui.js +1 -1
  221. package/src/ui/suggestioncontroller.js +2 -2
  222. package/src/ui/view/basesuggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionthreadview.js +1 -1
  224. package/src/ui/view/suggestionview.js +1 -1
  225. package/src/ui/view/trackchangespreviewview.js +1 -1
  226. package/src/utils/common-translations.js +1 -1
  227. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x3c135f,Plugin as _0x3721e7,PendingActions as _0x256143}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x398139,ObservableMixin as _0x229401,uid as _0x3f8d34,priorities as _0x413344,insertToPriorityArray as _0x3776a8,toArray as _0x281280,logWarning as _0x46e55b,getEnvKeystrokeText as _0x2ebd20,FocusTracker as _0x9aaa4,KeystrokeHandler as _0x179544,Collection as _0x274924}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4f2a57,IconCancel as _0x3ce5ed,IconTrackChanges as _0x10a693}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x78b11c,View as _0x2e8354,ViewCollection as _0x1f5a57,FocusCycler as _0x517a90,UIModel as _0x2e7c3d,createDropdown as _0x11789a,SplitButtonView as _0x57fc0f,addListToDropdown as _0x5beba5,MenuBarMenuView as _0x399edc,MenuBarMenuListView as _0x42a2eb,ListSeparatorView as _0x4028bd,MenuBarMenuListItemView as _0x43a039,MenuBarMenuListItemButtonView as _0x2d4737,BodyCollection as _0x38701c,Dialog as _0x126e42}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x32d493,hashObject as _0x20757c,surroundingMarkersDetector as _0x59ecb5,FOCUS_ANNOTATION_KEYSTROKE as _0x5fe560,AriaDescriptionView as _0x2757f5,setupThreadKeyboardNavigation as _0x353e32,trimHtml as _0x26790d,UserView as _0x4ef06e,LateFocusButtonView as _0x5c32c2,getDateTimeFormatter as _0x2db124,getAllMarkersDomElementsSorted as _0x2ea878,sanitizeEditorConfig as _0x4e5478}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x7fd840,ModelLiveRange as _0x360b1f,ModelLivePosition as _0x4a360a,ViewDowncastWriter as _0x3afe49}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5ab3e8,toWidget as _0x4e2e16}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x325c04,set as _0x4c9be5,isEqual as _0x4aed31,unset as _0x3ab10e,omit as Ut}from'es-toolkit/compat';import{Delete as _0x272e87,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x53edbe}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0xb3bd0e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x3c135f{['_enabledCommands'];constructor(_0x418883,_0x518b53){super(_0x418883),this['_enabledCommands']=_0x518b53,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 _0x513a7b of this['editor']['commands']['commands']())_0x513a7b['affectsData']&&!this['_enabledCommands']['has'](_0x513a7b)&&_0x513a7b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2a7055 of this['editor']['commands']['commands']())_0x2a7055['affectsData']&&!this['_enabledCommands']['has'](_0x2a7055)&&_0x2a7055['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x3c135f{['_suggestions'];constructor(_0x1adb72,_0x2323bc){super(_0x1adb72),this['_suggestions']=_0x2323bc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x579c91){const _0x1aff3a=this['_suggestions']['get'](_0x579c91);if(!_0x1aff3a)throw new _0x398139('track-changes-accept-suggestion-not-found',this);const _0x54e05c=_0x1aff3a['getRanges']();this['editor']['model']['canEditAt'](_0x54e05c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1aff3a);}}class M extends _0x3c135f{['_suggestions'];constructor(_0x5e5bce,_0x5eb0b5){super(_0x5e5bce),this['_suggestions']=_0x5eb0b5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xd373d3){const _0x42f115=this['_suggestions']['get'](_0xd373d3);if(!_0x42f115)throw new _0x398139('track-changes-discard-suggestion-not-found',this);const _0x248bcb=_0x42f115['getRanges']();this['editor']['model']['canEditAt'](_0x248bcb)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x42f115);}}function ls(_0x1f9e6c,_0x25f9d8){let _0x575696='';return _0x575696+=_0x1f9e6c['split']('*')['map']((_0x1b56c8,_0x368fe1)=>_0x368fe1%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x1b56c8)+'</span>':Yt(_0x1b56c8))['join'](''),_0x25f9d8&&(_0x575696+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x25f9d8['value']+'\x22\x20title=\x22'+_0x25f9d8['title']+'\x22></span>'),_0x575696;}function Yt(_0x4b7eea){const _0x5d905c=document['createElement']('span');return _0x5d905c['innerText']=_0x4b7eea,_0x5d905c['innerHTML'];}function ts(_0x247621){return _0x247621['sort']((_0x234812,_0x4259c5)=>'attribute'===_0x234812['type']&&'attribute'!==_0x4259c5['type']?-0x1:'attribute'!==_0x234812['type']&&'attribute'===_0x4259c5['type']?0x1:'deletion'==_0x234812['type']&&'deletion'!=_0x4259c5['type']?-0x1:'deletion'!=_0x234812['type']&&'deletion'==_0x4259c5['type']?0x1:0x0);}function to(_0x1048e6,_0x5d2ecc){let _0x410378,_0x2c1a53=0x0;const _0x4cb6e6=[],_0x198ccb=_0x5d2ecc['schema'];for(;_0x2c1a53<_0x1048e6['length'];){const _0x4d22d7=_0x1048e6[_0x2c1a53],_0x5d9591=_0x1048e6[_0x2c1a53+0x1];_0x410378||(_0x410378=_0x5d2ecc['createPositionBefore'](_0x4d22d7)),Zt(_0x5d2ecc,_0x4d22d7,_0x5d9591)||(_0x4cb6e6['push'](_0x5d2ecc['createRange'](_0x410378,_0x198ccb['isObject'](_0x4d22d7)?_0x5d2ecc['createPositionAfter'](_0x4d22d7):_0x5d2ecc['createPositionAt'](_0x4d22d7,'end'))),_0x410378=null),_0x2c1a53++;}return _0x4cb6e6;}function Zt(_0x48468e,_0x4259b4,_0x14b416){if(!_0x14b416)return!0x1;const _0xb62f61=_0x48468e['createPositionAfter'](_0x4259b4),_0x217290=_0x48468e['createPositionBefore'](_0x14b416);return _0xb62f61['isTouching'](_0x217290);}function rs(_0xf397e6,_0x3530b1,_0x76642a){for(;_0x76642a['length'];){const _0x15c1d3=_0x76642a['splice'](0x0,0x64);_0xf397e6['change'](()=>{for(const _0x1cf2c4 of _0x15c1d3)_0x1cf2c4['isInContent']&&_0x3530b1['execute'](_0x1cf2c4['id']);});}}class $ extends _0x3c135f{['_command'];['_suggestions'];constructor(_0x4d6f4d,_0x4adb02,_0x21894b){super(_0x4d6f4d),this['_command']=_0x4adb02,this['_suggestions']=_0x21894b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x6a2eda=Array['from'](this['_suggestions']['values']())['some'](_0x1b74a3=>_0x1b74a3['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x6a2eda;}['execute'](){const _0x2d474f=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3ab1b7 of _0x2d474f){const _0x5924c5=_0x3ab1b7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5924c5))return;}rs(this['editor']['model'],this['_command'],_0x2d474f);}}class B extends _0x3c135f{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2fd53a,_0x30c957,_0x4f9579){super(_0x2fd53a),this['_command']=_0x30c957,this['_suggestions']=_0x4f9579,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x43adad=this['editor']['model']['document']['selection'],_0xece259=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x20e808,_0x6d52ef){const _0x233784=Array['from'](_0x20e808['getRanges']()),_0x522127=new Set();for(const _0x1b2ea0 of _0x6d52ef)if(_0x1b2ea0['isInContent']){for(const _0x514cc6 of _0x233784)for(const _0x216b41 of _0x1b2ea0['getRanges']())(_0x514cc6['isIntersecting'](_0x216b41)||_0x20e808['isCollapsed']&&!_0x1b2ea0['isMultiRange']&&_0x1b2ea0['next']&&_0x216b41['end']['isTouching'](_0x514cc6['start']))&&_0x522127['add'](_0x1b2ea0);}return _0x522127;}(_0x43adad,_0xece259),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xf9bcc8=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2b0ca4 of _0xf9bcc8){const _0x550caa=_0x2b0ca4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x550caa))return;}rs(this['editor']['model'],this['_command'],_0xf9bcc8);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x229401(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2b5113,_0x1e072f){super(),this['id']=_0x1e072f['id'],this['type']=_0x1e072f['type'],this['subType']=_0x1e072f['subType']||null,this['author']=_0x1e072f['author'],this['creator']=_0x1e072f['creator']||_0x1e072f['author'],this['isExternal']=Boolean(_0x1e072f['attributes']&&_0x1e072f['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1e072f['originalSuggestionId']||null,this['_model']=_0x2b5113,this['_onAccept']=_0x1e072f['onAccept'],this['_onDiscard']=_0x1e072f['onDiscard'],this['_onAttributesChange']=_0x1e072f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1e072f['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 _0xbb021a=this;for(;_0xbb021a['previous'];)_0xbb021a=_0xbb021a['previous'];return _0xbb021a;}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'](_0x3f4f38){this['_markerNames']['add'](_0x3f4f38);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x12012f=>this['_model']['markers']['get'](_0x12012f))['filter'](_0x31ddd6=>_0x31ddd6);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5a5f7b=>{for(const _0x2b2411 of this['getMarkers']())_0x5a5f7b['removeMarker'](_0x2b2411);}),this['_markerNames']['clear']();}['removeMarker'](_0x5d8fe8){this['_model']['change'](_0x2e55e7=>{_0x2e55e7['removeMarker'](_0x5d8fe8);}),this['_markerNames']['delete'](_0x5d8fe8);}['addRange'](_0x17dfd4){const _0x5deb25='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x5deb25),this['_model']['change'](_0x193015=>{_0x193015['addMarker'](_0x5deb25,{'range':_0x17dfd4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x420380){for(const _0x128abe of this['getRanges']())if(_0x128abe['isIntersecting'](_0x420380))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x324406=>_0x324406['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x59bbf8,_0x277a02)=>[..._0x59bbf8,..._0x277a02['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x336bb2=this['getRanges']();if(0x1!=_0x336bb2['length'])return null;const _0x5df4b2=_0x336bb2[0x0],_0x5b1cc7=_0x5df4b2['start']['nodeAfter'],_0x2a86fc=_0x5df4b2['end']['nodeBefore'];return _0x5b1cc7 instanceof _0x7fd840?_0x5b1cc7!=_0x2a86fc?null:_0x5b1cc7: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 _0x48c75c=[];let _0x519c31=this['head'];for(;_0x519c31;)_0x48c75c['push'](_0x519c31),_0x519c31=_0x519c31['next'];return _0x48c75c;}['setAttribute'](_0x278e9f,_0x3618b9){const _0x2503bf=_0x325c04(this['attributes']);_0x4c9be5(_0x2503bf,_0x278e9f,_0x3618b9),_0x4aed31(_0x2503bf,this['attributes'])||(this['attributes']=_0x2503bf,this['_onAttributesChange'](_0x2503bf));}['removeAttribute'](_0x6e278f){const _0x6414e1=_0x325c04(this['attributes']);_0x3ab10e(_0x6414e1,_0x6e278f),_0x4aed31(_0x6414e1,this['attributes'])||(this['attributes']=_0x6414e1,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 _0x3f8d34()['substr'](0x1,0x5);}}function o(_0x419c4b,_0x47bf24,_0x353532){const _0x4d3a2f=_0x419c4b['t'],t=_0x419c4b['t'];switch(_0x47bf24){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',_0x353532);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x353532);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x353532);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x353532);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x353532);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',_0x353532);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x353532);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',_0x353532);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x353532);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x353532);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x353532);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x353532);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x353532);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x353532);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x353532);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x353532);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x353532);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x353532);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x353532);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x353532);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x353532);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x353532);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x353532);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x353532);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x353532);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'},_0x353532);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x353532);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x353532);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x353532);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x353532);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x353532);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x353532);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x353532);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'},_0x353532);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x353532);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x353532);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x353532);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x353532);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x353532);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x353532);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'},_0x353532);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'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'},_0x353532);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x353532);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'},_0x353532);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x353532);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'},_0x353532);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x353532);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x353532);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'},_0x353532);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x353532);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 _0x4d3a2f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x353532);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4d3a2f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x353532);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x353532);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'},_0x353532);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'},_0x353532);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'},_0x353532);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x47bf24;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2d5482,_0x3765a7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2d5482,this['_locale']=_0x3765a7;}['getDescriptions'](_0x48ee1f){const _0x1911b8=[],_0x24acb6=new Set(),_0x4401cd=new Set();for(let _0x15b3e3=0x0;_0x15b3e3<_0x48ee1f['length'];_0x15b3e3++){const _0x31bdf3=_0x48ee1f[_0x15b3e3];if(!_0x31bdf3['isInContent'])continue;const _0x79d375=this['_handleCustomCallbackDescription'](_0x31bdf3);if(_0x79d375){if(null!=_0x31bdf3['subType']){if(_0x24acb6['has'](_0x31bdf3['subType']))continue;_0x24acb6['add'](_0x31bdf3['subType']);}_0x1911b8['push'](_0x79d375);}else{if('attribute'==_0x31bdf3['type']){const _0x573bc1=_0x31bdf3['data']['key'];if(_0x4401cd['has'](_0x573bc1))continue;_0x4401cd['add'](_0x31bdf3['data']['key']),_0x573bc1==m?this['_handleRenameSuggestionDescription'](_0x1911b8,_0x31bdf3):this['_handleAttributeSuggestionDescription'](_0x1911b8,_0x31bdf3);continue;}'insertion'!=_0x31bdf3['type']&&'deletion'!=_0x31bdf3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1911b8,_0x31bdf3,_0x48ee1f[_0x15b3e3+0x1]);}}return this['_resolveDescriptionItems'](_0x1911b8);}['registerDescriptionCallback'](_0x50e006){this['_customCallbacks']['push'](_0x50e006);}['registerElementLabel'](_0x151c81,_0x2fdd6c,_0x4f147b=_0x413344['normal']){'function'==typeof _0x151c81?_0x3776a8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x151c81,'label':_0x2fdd6c,'priority':_0x4f147b}):this['_itemLabels']['set'](_0x151c81,_0x2fdd6c);}['registerAttributeLabel'](_0xb07759,_0x226e05){this['_attributeLabels']['set'](_0xb07759,_0x226e05);}['getItemLabel'](_0x2eac03,_0x32688f=0x1){let _0x2efda3;for(const _0x5abb4f of this['_itemLabelsCallbacks'])if(_0x5abb4f['matchingCallback'](_0x2eac03)){_0x2efda3=_0x5abb4f['label'];break;}return _0x2efda3||(_0x2efda3=this['_itemLabels']['get'](_0x2eac03['name'])),_0x2efda3?_0x2efda3(_0x32688f):0x1!==_0x32688f?_0x32688f+'\x20'+_0x2eac03['name']+'s':''+_0x2eac03['name'];}['_addDescriptionItems'](_0x311ce5,_0x69ac90){const _0x4fbc38=_0x69ac90['getFirstRange']()['getWalker'](),_0x1ad516='insertion'==_0x69ac90['type']?'add':'remove';for(const _0x133976 of _0x4fbc38){const _0x198852=_0x133976['item'],_0x1a79a4=_0x311ce5[_0x311ce5['length']-0x1];if(_0x198852['is']('$textProxy'))_0x1a79a4&&_0x1a79a4['type']['indexOf']('Container')>-0x1&&_0x311ce5['pop'](),_0x1a79a4&&'text'==_0x1a79a4['type']?_0x1a79a4[_0x1ad516]+=_0x198852['data']:_0x311ce5['push']({'type':'text','add':'add'==_0x1ad516?_0x198852['data']:'','remove':'remove'==_0x1ad516?_0x198852['data']:''});else{if(this['_schema']['isObject'](_0x198852)){const _0x2852e9=_0x198852;if(_0x1a79a4&&_0x1a79a4['type']['indexOf']('Container')>-0x1&&_0x311ce5['pop'](),'elementEnd'==_0x133976['type'])continue;_0x1a79a4&&_0x1a79a4['type']==_0x1ad516+'Object'&&_0x1a79a4['element']['name']==_0x2852e9['name']?_0x1a79a4['quantity']++:_0x311ce5['push']({'type':_0x1ad516+'Object','element':_0x2852e9,'quantity':0x1}),_0x4fbc38['skip'](_0x479c3c=>!('elementEnd'==_0x479c3c['type']&&_0x479c3c['item']==_0x198852));}else{if(this['_schema']['checkChild'](_0x198852,'$text')||_0x198852['is']('element','softBreak')){const _0x4ca685=_0x198852;if('add'==_0x1ad516&&'elementStart'==_0x133976['type']||'remove'==_0x1ad516&&'elementEnd'==_0x133976['type'])continue;if(_0x1a79a4&&-0x1==_0x1a79a4['type']['indexOf']('Container')){'text'==_0x1a79a4['type']&&(_0x1a79a4[_0x1ad516]+='\x0a');continue;}let _0x6d709c;if(_0x6d709c='add'==_0x1ad516?_0x4ca685['nextSibling']&&!this['_schema']['isObject'](_0x4ca685['nextSibling'])?_0x4ca685['nextSibling']:null:_0x4ca685['previousSibling']&&!this['_schema']['isObject'](_0x4ca685['previousSibling'])?_0x4ca685['previousSibling']:null,_0x4ca685['isEmpty']||_0x6d709c&&_0x6d709c['isEmpty']){const _0x1e0f37=_0x6d709c&&_0x6d709c['isEmpty']?_0x6d709c:_0x4ca685;_0x1a79a4&&_0x1a79a4['type']==_0x1ad516+'EmptyContainer'&&_0x1a79a4['element']['name']==_0x1e0f37['name']?_0x1a79a4['quantity']++:_0x311ce5['push']({'type':_0x1ad516+'EmptyContainer','element':_0x1e0f37,'quantity':0x1});}else _0x311ce5['push']({'type':_0x1ad516+'Container','element':_0x4ca685});}}}}}['_resolveDescriptionItems'](_0x42ccfc){const _0x33412d=this['_locale'],_0x3b8600=[],_0x6b82e7=[],_0x171b20=[];for(const _0x5293f9 of _0x42ccfc)switch(_0x5293f9['type']){case'text':if(_0x5293f9['add']=_0x5293f9['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5293f9['remove']=_0x5293f9['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5293f9['add']&&''!=_0x5293f9['remove']){_0x3b8600['push']({'type':'replace','content':o(_0x33412d,'REPLACE_TEXT',['\x22'+_0x5293f9['remove']+'\x22','\x22'+_0x5293f9['add']+'\x22'])});continue;}if(null!=_0x5293f9['add']['match'](/^ +$/)){_0x3b8600['push']({'type':'insertion','content':o(_0x33412d,'*Insert:*\x20%0',o(_0x33412d,'ELEMENT_SPACE',_0x5293f9['add']['length']))});continue;}if(null!=_0x5293f9['remove']['match'](/^ +$/)){_0x3b8600['push']({'type':'deletion','content':o(_0x33412d,'*Remove:*\x20%0',o(_0x33412d,'ELEMENT_SPACE',_0x5293f9['remove']['length']))});continue;}if(''!=_0x5293f9['add']){_0x3b8600['push']({'type':'insertion','content':o(_0x33412d,'*Insert:*\x20%0','\x22'+_0x5293f9['add']+'\x22')});continue;}_0x3b8600['push']({'type':'deletion','content':o(_0x33412d,'*Remove:*\x20%0','\x22'+_0x5293f9['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3b8600['push']({'type':'insertion','content':o(_0x33412d,'*Insert:*\x20%0',this['getItemLabel'](_0x5293f9['element'],_0x5293f9['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3b8600['push']({'type':'deletion','content':o(_0x33412d,'*Remove:*\x20%0',this['getItemLabel'](_0x5293f9['element'],_0x5293f9['quantity']))});continue;case'addContainer':_0x3b8600['push']({'type':'insertion','content':o(_0x33412d,'*Split:*\x20%0',this['getItemLabel'](_0x5293f9['element'],_0x5293f9['quantity']))});continue;case'removeContainer':_0x3b8600['push']({'type':'deletion','content':o(_0x33412d,'*Merge:*\x20%0',this['getItemLabel'](_0x5293f9['element'],_0x5293f9['quantity']))});continue;case'addFormat':_0x6b82e7['push'](_0x5293f9['key']);continue;case'removeFormat':_0x171b20['push'](_0x5293f9['key']);continue;default:_0x3b8600['push'](_0x5293f9);}if(_0x6b82e7['length']){const _0x552f0b=_0x6b82e7['map'](_0x50f9a6=>this['_attributeLabels']['has'](_0x50f9a6)?this['_attributeLabels']['get'](_0x50f9a6):_0x50f9a6)['join'](',\x20');_0x3b8600['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x552f0b)});}if(_0x171b20['length']){const _0x55ea65=_0x171b20['map'](_0xcca68f=>this['_attributeLabels']['has'](_0xcca68f)?this['_attributeLabels']['get'](_0xcca68f):_0xcca68f)['join'](',\x20');_0x3b8600['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x55ea65)});}return _0x3b8600;}['_handleCustomCallbackDescription'](_0x5cb55c){for(const _0x8d1e4f of this['_customCallbacks']){const _0x1bc41a=_0x8d1e4f(_0x5cb55c);if(_0x1bc41a&&'type'in _0x1bc41a)return _0x1bc41a;}}['_handleAttributeSuggestionDescription'](_0x2ea0e2,_0x19ba32){const _0x35409d=_0x19ba32['data'],_0x339966=void 0x0===_0x35409d['newValue']?'removeFormat':'addFormat';_0x2ea0e2['push']({'type':_0x339966,'key':_0x35409d['key']});}['_handleRenameSuggestionDescription'](_0x23e00c,_0x3a2661){_0x23e00c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3a2661['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1a1576,_0x5c211e,_0x2fb508){if(this['_addDescriptionItems'](_0x1a1576,_0x5c211e),_0x2fb508&&_0x2fb508['getFirstRange']()&&!_0x5c211e['getFirstRange']()['end']['isEqual'](_0x2fb508['getFirstRange']()['start'])){const _0x1eb7e3=_0x1a1576[_0x1a1576['length']-0x1],_0x593a9b='insertion'==_0x5c211e['type']?'add':'remove';_0x1eb7e3&&'text'==_0x1eb7e3['type']&&(_0x1eb7e3[_0x593a9b]+='\x0a');}}}class O extends _0x3721e7{['afterInit'](){const _0x489dfd=this['editor'],_0x303751=_0x489dfd['plugins']['get']('TrackChangesEditing');_0x489dfd['commands']['get']('showAIAssistant')&&_0x303751['enableCommand']('showAIAssistant');}}class E extends _0x3721e7{['afterInit'](){const _0x4cf5cf=this['editor'],_0x1f255d=_0x4cf5cf['locale'];if(!_0x4cf5cf['plugins']['has']('AlignmentEditing'))return;const _0x36d97d=_0x4cf5cf['plugins']['get']('TrackChangesEditing');_0x36d97d['enableDefaultAttributesIntegration']('alignment'),_0x36d97d['registerBlockAttribute']('alignment'),_0x36d97d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1f255d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b933a=this['editor'],_0x35fd22=_0x1b933a['locale'];_0x1b933a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48c72c=>{if('formatBlock'!=_0x48c72c['type'])return;const {data:_0x54a696}=_0x48c72c;if(_0x54a696&&'alignment'==_0x54a696['commandName']){const _0x55992e=_0x54a696['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x35fd22,'*Format:*\x20%0',function(_0x29a0ce){switch(_0x29a0ce){case'left':return o(_0x35fd22,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x35fd22,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x35fd22,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x35fd22,'FORMAT_JUSTIFY_TEXT');}}(_0x55992e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x3721e7{['afterInit'](){const _0x2a10f8=this['editor'],_0x40295a=_0x2a10f8['plugins']['get']('TrackChangesEditing'),_0x122ee8=_0x2a10f8['locale'];for(const _0x298734 of ti){if(!_0x2a10f8['plugins']['has'](_0x298734))continue;const _0x3f1271=_0x298734['slice'](0x0,-0x7)['toLowerCase'](),_0x391c02='FORMAT_'+_0x3f1271['toUpperCase']();_0x40295a['enableDefaultAttributesIntegration'](_0x3f1271),_0x40295a['registerInlineAttribute'](_0x3f1271),_0x40295a['descriptionFactory']['registerAttributeLabel'](_0x3f1271,o(_0x122ee8,_0x391c02));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa0f9d2=this['editor'],_0x11f56f=_0xa0f9d2['locale'],_0xf9c96e=_0xa0f9d2['plugins']['get']('TrackChangesEditing');function _0x3804dd(_0x539a07,_0xd72921){_0xf9c96e['descriptionFactory']['registerDescriptionCallback'](_0x15bf9a=>{if('formatInline'!=_0x15bf9a['type'])return;const {data:_0x57cb26}=_0x15bf9a;return _0x57cb26&&_0x57cb26['commandName']===_0x539a07?_0x57cb26['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11f56f,'*Format:*\x20%0',_0xd72921)}:{'type':'format','content':o(_0x11f56f,'*Remove\x20format:*\x20%0',_0xd72921)}:void 0x0;});}_0x3804dd('bold',o(_0x11f56f,'FORMAT_BOLD')),_0x3804dd('italic',o(_0x11f56f,'FORMAT_ITALIC')),_0x3804dd('underline',o(_0x11f56f,'FORMAT_UNDERLINE')),_0x3804dd('code',o(_0x11f56f,'FORMAT_CODE')),_0x3804dd('strikethrough',o(_0x11f56f,'FORMAT_STRIKETHROUGH')),_0x3804dd('subscript',o(_0x11f56f,'FORMAT_SUBSCRIPT')),_0x3804dd('superscript',o(_0x11f56f,'FORMAT_SUPERSCRIPT'));}}class U extends _0x3721e7{['afterInit'](){const _0x5a730c=this['editor'],_0x2d3240=_0x5a730c['locale'];if(!_0x5a730c['plugins']['has']('BlockQuoteEditing'))return;const _0x543c75=_0x5a730c['plugins']['get']('TrackChangesEditing'),_0x415a78=this['editor']['commands']['get']('blockQuote');_0x543c75['enableCommand']('blockQuote',(_0x41c151,_0x1ce6c8={})=>{const _0x467513=this['editor']['model']['document']['selection'],_0x1e4fc3=_0x1ce6c8&&void 0x0!==_0x1ce6c8['forceValue']?_0x1ce6c8['forceValue']:!_0x415a78['value'];let _0xa05503=[];if(_0x1e4fc3){const _0x3b9a7c=Array['from'](_0x467513['getSelectedBlocks']())['filter'](_0x44a6be=>oo(_0x44a6be)||function(_0x20c9db,_0x56f499){const _0x27ee74=_0x56f499['checkChild'](_0x20c9db['parent'],'blockQuote'),_0xba538c=_0x56f499['checkChild'](['$root','blockQuote'],_0x20c9db);return _0x27ee74&&_0xba538c;}(_0x44a6be,this['editor']['model']['schema']));_0xa05503=to(_0x3b9a7c,_0x5a730c['model']);}else{const _0x4e206f=Array['from'](_0x467513['getSelectedBlocks']())['filter'](_0x2d71d1=>oo(_0x2d71d1));_0xa05503=to(_0x4e206f,_0x5a730c['model']);}_0x5a730c['model']['change'](()=>{for(const _0x41a106 of _0xa05503)_0x543c75['markBlockFormat'](_0x41a106,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1e4fc3}]});});}),_0x543c75['descriptionFactory']['registerDescriptionCallback'](_0x482107=>{const {data:_0x5cee54}=_0x482107;if(_0x5cee54&&'blockQuote'==_0x5cee54['commandName']){const _0x1064c4=o(_0x2d3240,'ELEMENT_BLOCK_QUOTE');return _0x5cee54['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2d3240,'*Set\x20format:*\x20%0',_0x1064c4)}:{'type':'format','content':o(_0x2d3240,'*Remove\x20format:*\x20%0',_0x1064c4)};}});}}function oo(_0x3fd38c){return'blockQuote'==_0x3fd38c['parent']['name'];}class V extends _0x3721e7{['afterInit'](){const _0x19a989=this['editor'],_0x179898=_0x19a989['locale'],_0x199102=_0x19a989['plugins']['get']('TrackChangesEditing');_0x19a989['plugins']['has']('BookmarkEditing')&&(_0x199102['enableCommand']('insertBookmark'),_0x199102['enableDefaultAttributesIntegration']('updateBookmark'),_0x199102['registerBlockAttribute']('bookmarkId'),_0x199102['descriptionFactory']['registerDescriptionCallback'](_0x3e2627=>{if('insertion'!=_0x3e2627['type']&&'deletion'!=_0x3e2627['type']&&'attribute'!=_0x3e2627['type'])return;const _0xf0ae73=_0x3e2627['getContainedElement']();if(null==_0xf0ae73)return;if(!_0xf0ae73['is']('element','bookmark'))return;const _0x98d13f=_0xf0ae73['getAttribute']('bookmarkId');if('insertion'==_0x3e2627['type'])return{'type':'insertion','content':o(_0x179898,'*Insert:*\x20%0','\x22'+_0x98d13f+'\x22\x20'+o(_0x179898,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3e2627['type'])return{'type':'deletion','content':o(_0x179898,'*Remove:*\x20%0','\x22'+_0x98d13f+'\x22\x20'+o(_0x179898,'ELEMENT_BOOKMARK'))};const {data:_0x3cda76}=_0x3e2627;if(!_0x3cda76||'bookmarkId'!=_0x3cda76['key'])return;return{'type':'format','content':o(_0x179898,'*Set\x20bookmark:*\x20%0','\x22'+_0x3cda76['newValue']+'\x22')};}));}}class F extends _0x3721e7{['afterInit'](){const _0x38a4c2=this['editor'];_0x38a4c2['plugins']['has']('CaseChange')&&(_0x38a4c2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x38a4c2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x38a4c2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x3721e7{['afterInit'](){const _0x370d9e=this['editor'];_0x370d9e['commands']['get']('ckbox')&&_0x370d9e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x3721e7{['afterInit'](){const _0x392dd8=this['editor'];if(!_0x392dd8['plugins']['has']('CodeBlock'))return;const _0x4f9750=_0x392dd8['plugins']['get']('TrackChangesEditing'),_0x445e44=_0x392dd8['locale'],_0xf6e873=_0x392dd8['config']['get']('codeBlock')['languages'],_0xde1eaf=_0x392dd8['commands']['get']('codeBlock');_0x4f9750['enableCommand']('indentCodeBlock'),_0x4f9750['enableCommand']('outdentCodeBlock'),_0x4f9750['enableCommand']('codeBlock',(_0x347b34,_0x532a9b={})=>{const _0x598919=_0x392dd8['model'],_0x25c179=_0x392dd8['model']['document']['selection'],_0x3fe023=_0x532a9b&&void 0x0!==_0x532a9b['forceValue']?_0x532a9b['forceValue']:!_0xde1eaf['value'];let _0x4d21d8;_0x532a9b['language']||(_0x532a9b['language']=_0xf6e873[0x0]['language']),_0x4d21d8=_0x3fe023?Array['from'](_0x25c179['getSelectedBlocks']())['filter'](_0xb22761=>co(_0xb22761)||function(_0x38641c,_0x20056b){if(_0x38641c['is']('rootElement')||_0x20056b['isLimit'](_0x38641c))return!0x1;return _0x20056b['checkChild'](_0x38641c['parent'],'codeBlock');}(_0xb22761,_0x598919['schema'])):Array['from'](_0x25c179['getSelectedBlocks']())['filter'](_0x33b389=>co(_0x33b389));const _0x59e8a5=to(_0x4d21d8,_0x598919);_0x598919['change'](()=>{for(const _0x3e8da4 of _0x59e8a5)_0x4f9750['markBlockFormat'](_0x3e8da4,{'commandName':'codeBlock','commandParams':[{..._0x532a9b,'forceValue':_0x3fe023}],'formatGroupId':'blockName'});});}),(_0x4f9750['descriptionFactory']['registerElementLabel']('codeBlock',_0x5bc85d=>o(_0x445e44,'ELEMENT_CODE_BLOCK',_0x5bc85d)),_0x4f9750['descriptionFactory']['registerDescriptionCallback'](_0x21aec0=>{if('formatBlock'!=_0x21aec0['type'])return;const _0x5e613e=_0x445e44['t'],{data:_0x2a5a4a}=_0x21aec0;if(!_0x2a5a4a||'codeBlock'!=_0x2a5a4a['commandName'])return;const _0x5e0a7a=_0x2a5a4a['commandParams'][0x0]['language'],_0x2947fb=_0x5e613e(_0xf6e873['find'](_0x1866dc=>_0x1866dc['language']===_0x5e0a7a)['label'])['toLowerCase']();return _0x2a5a4a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x445e44,'*Set\x20format:*\x20%0',o(_0x445e44,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2947fb+')')}:{'type':'format','content':o(_0x445e44,'*Remove\x20format:*\x20%0',o(_0x445e44,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x348e8b){return'codeBlock'==_0x348e8b['name'];}class J extends _0x3721e7{['afterInit'](){const _0x3d55f2=this['editor'];if(!_0x3d55f2['plugins']['has']('CommentsEditing'))return;_0x3d55f2['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4291ec,_0x334c34,_0x52c118){const _0x286afd=[];for(const _0x17cd87 of _0x334c34['getItems']())_0x17cd87['hasAttribute'](_0x4291ec)&&_0x286afd['push'](_0x52c118['createRangeOn'](_0x17cd87));return _0x286afd;}function De(_0x77d032,_0x3053e0,{showActiveMarker:_0x17bb5f=!0x0}={}){const _0x44e6d0=_0x77d032['plugins']['get']('TrackChangesEditing');return(_0x4f63a1,_0xc187c5,_0x9b1c03)=>{if(!_0x9b1c03['consumable']['test'](_0xc187c5['markerRange'],_0x4f63a1['name']))return;const _0x49fc52=_0xc187c5['markerRange']['getWalker'](),_0x807a5d=_0xc187c5['markerRange']['start'],_0x13bde9=_0x77d032['model']['schema'];let _0x1a4f20=null,_0x2e2e53=null,_0x3bd405=!0x1,_0x459be4=!0x1;for(const _0x4a1c8e of _0x49fc52){const _0x428242=_0x4a1c8e['item'];_0x3bd405=_0x3bd405||_0x13bde9['isContent'](_0x428242);const _0x989ad0=_0x9b1c03['mapper']['toViewElement'](_0x428242);if(_0x989ad0&&_0x989ad0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4a1c8e['type']&&(_0x13bde9['isBlock'](_0x428242)&&!_0x13bde9['isLimit'](_0x428242)&&(_0x428242['nextSibling']||_0x807a5d['isAtEnd']?_0x1a4f20&&_0x1a4f20['parent']==_0x428242||(_0x1a4f20=_0x428242,_0x434a4d(_0x4a1c8e['previousPosition']),_0x459be4=!0x0):_0x2e2e53=_0x2e2e53||_0x4a1c8e['previousPosition']));}function _0x434a4d(_0x3b18d2){const {id:_0x5c50b0,authorId:_0x1d7123}=_0x44e6d0['_splitMarkerName'](_0xc187c5['markerName']),_0x4ffcda=_0x9b1c03['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3053e0,'data-suggestion':_0x5c50b0,'data-author-id':_0x1d7123}),_0x2de66b=_0x9b1c03['mapper']['toViewPosition'](_0x3b18d2);_0x17bb5f&&_0x44e6d0['activeMarkers']['includes'](_0xc187c5['markerName'])&&_0x9b1c03['writer']['addClass']('ck-suggestion-marker--active',_0x4ffcda),_0x9b1c03['writer']['insert'](_0x2de66b,_0x4ffcda),_0x9b1c03['mapper']['bindElementToMarker'](_0x4ffcda,_0xc187c5['markerName']);}_0x3bd405||_0x459be4||!_0x2e2e53||_0x434a4d(_0x2e2e53);};}class K extends _0x3721e7{static get['requires'](){return[_0x272e87];}['init'](){const _0x2324ee=this['editor'],_0x4b8b66=_0x2324ee['plugins']['get']('TrackChangesEditing');_0x4b8b66['enableCommand']('delete');const _0x182ebe=_0x2324ee['commands']['get']('deleteForward');_0x4b8b66['enableCommand']('deleteForward',(_0x270ce9,_0x517d10={})=>{const _0x5c6ebc=_0x2324ee['model']['createSelection'](_0x2324ee['model']['document']['selection']);_0x5c6ebc['isCollapsed']&&_0x2324ee['model']['modifySelection'](_0x5c6ebc,{'direction':'forward','unit':_0x517d10['unit']});const _0x184ad8=_0x5c6ebc['getFirstRange'](),_0x2787fe=_0x360b1f['fromRange'](_0x184ad8);let _0x291b79;_0x270ce9(_0x517d10),_0x291b79='$graveyard'==_0x2787fe['root']['rootName']?_0x2324ee['model']['createRange'](_0x184ad8['start']):_0x2324ee['model']['createRange'](_0x2787fe['start'],_0x2787fe['end']),_0x2787fe['detach'](),_0x2324ee['model']['enqueueChange'](_0x182ebe['buffer']['batch'],_0x14f478=>{_0x182ebe['buffer']['lock'](),_0x14f478['setSelection'](_0x14f478['createRange'](_0x291b79['end'])),_0x182ebe['buffer']['unlock']();});}),_0x2324ee['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x2324ee,'merge'),{'priority':'high'}),_0x2324ee['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4deeb9,_0x336662,_0x245f31)=>{_0x245f31['options']['showSuggestionHighlights']&&De(_0x2324ee,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4deeb9,_0x336662,_0x245f31);},{'priority':'high'}),_0x2324ee['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x28737e,_0x128a48,_0x34b318)=>{const _0xe6a4b=_0x34b318['mapper']['markerNameToElements'](_0x128a48['markerName']);if(_0xe6a4b){for(const _0x38f815 of _0xe6a4b)_0x38f815['is']('uiElement')&&(_0x34b318['mapper']['unbindElementFromMarkerName'](_0x38f815,_0x128a48['markerName']),_0x34b318['writer']['remove'](_0x38f815));}},{'priority':'high'});}}class H extends _0x3721e7{['afterInit'](){const _0x5e73a3=this['editor'];if(!_0x5e73a3['plugins']['has']('ListEditing'))return;const _0x5ead40=_0x5e73a3['locale'],_0x4fff37=_0x5e73a3['plugins']['get']('TrackChangesEditing'),_0x35c292=_0x5e73a3['plugins']['has']('TodoListEditing'),_0x55ae97=!!_0x5e73a3['config']['get']('list.multiBlock');function _0x1cde14(_0x53f5f2){return{'type':'format','content':''+o(_0x5ead40,'*Set\x20format:*\x20%0',_0x53f5f2)};}function _0x3f8b28(_0x440030){return{'type':'format','content':''+o(_0x5ead40,'*Remove\x20format:*\x20%0',_0x440030)};}_0x4fff37['enableDefaultAttributesIntegration']('numberedList'),_0x4fff37['enableDefaultAttributesIntegration']('bulletedList'),_0x4fff37['enableDefaultAttributesIntegration']('customNumberedList'),_0x4fff37['enableDefaultAttributesIntegration']('customBulletedList'),_0x4fff37['enableDefaultAttributesIntegration']('indentList'),_0x4fff37['enableDefaultAttributesIntegration']('outdentList'),_0x4fff37['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4fff37['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4fff37['registerBlockAttribute']('listItemId'),_0x4fff37['registerBlockAttribute']('listType'),_0x4fff37['registerBlockAttribute']('listIndent'),_0x55ae97&&(_0x4fff37['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4fff37['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x35c292&&(_0x4fff37['enableDefaultAttributesIntegration']('todoList'),_0x4fff37['enableDefaultAttributesIntegration']('checkTodoList'),_0x4fff37['registerBlockAttribute']('todoListChecked'),_0x4fff37['descriptionFactory']['registerDescriptionCallback'](_0x100acf=>{const {data:_0x5cee19}=_0x100acf;if(_0x5cee19&&'todoListChecked'==_0x5cee19['key'])return{'type':'format','content':_0x5cee19['newValue']?o(_0x5ead40,'*Check\x20item*'):o(_0x5ead40,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xe3f116=>{if(_0xe3f116['batch']['isUndo'])return!0x1;let _0x3d66fa=!0x1;const _0x448f95=_0x4fff37['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x32df3e=>'todoListChecked'===_0x4fff37['_getAttributeKey'](_0x32df3e));for(const _0x16d98f of _0x448f95){'todo'!=_0x16d98f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4fff37['_findSuggestions'](_0x16d98f['getFirstRange'](),'attribute')['find'](_0x5c69d0=>'listType'===_0x4fff37['_getAttributeKey'](_0x5c69d0['suggestion']))||(_0xe3f116['removeMarker'](_0x16d98f['getFirstMarker']()),_0x3d66fa=!0x0));}return _0x3d66fa;})),_0x4fff37['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5ead40,'FORMAT_INDENT'));const _0x1132f6={'type':'format','content':''};_0x4fff37['descriptionFactory']['registerDescriptionCallback'](_0x3eed9d=>{const {data:_0x4f3edc}=_0x3eed9d;if(!_0x4f3edc||'listType'!=_0x4f3edc['key'])return;let _0x5257fa=_0x3eed9d['head'];for(;_0x5257fa;){if(_0x5257fa['data']&&(('listStyle'==_0x5257fa['data']['key']||'listMarkerStyle'==_0x5257fa['data']['key'])&&(_0x5257fa['data']['newValue']&&'default'!=_0x5257fa['data']['newValue']||'default'!=_0x5257fa['data']['oldValue']&&!_0x4f3edc['newValue'])||!_0x55ae97&&_0x5257fa['data']['key']==m))return _0x1132f6;_0x5257fa=_0x5257fa['next'];}if(null==_0x4f3edc['newValue'])switch(_0x4f3edc['oldValue']){case'bulleted':return _0x3f8b28(o(_0x5ead40,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f8b28(o(_0x5ead40,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f8b28(o(_0x5ead40,'ELEMENT_TODO_LIST'));}switch(_0x4f3edc['newValue']){case'bulleted':return _0x1cde14(o(_0x5ead40,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1cde14(o(_0x5ead40,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1cde14(o(_0x5ead40,'ELEMENT_TODO_LIST'));}}),_0x4fff37['descriptionFactory']['registerDescriptionCallback'](_0x51f787=>{const {data:_0x1e7e59}=_0x51f787;if(_0x1e7e59&&'listIndent'==_0x1e7e59['key'])return null==_0x1e7e59['newValue']||null==_0x1e7e59['oldValue']&&0x0==_0x1e7e59['newValue']?_0x1132f6:void 0x0;}),_0x4fff37['descriptionFactory']['registerDescriptionCallback'](_0x465c9f=>{if('attribute'!=_0x465c9f['type'])return;const {data:_0x41bcda}=_0x465c9f;if(!_0x41bcda||'listItemId'!=_0x41bcda['key'])return;const _0x386f0d=Te(_0x465c9f);return'newValue'==_0x386f0d?{'type':'format','content':o(_0x5ead40,'*Merge:*\x20list\x20item')}:'oldValue'==_0x386f0d?{'type':'format','content':o(_0x5ead40,'*Split:*\x20list\x20item')}:_0x1132f6;}),_0x5e73a3['model']['document']['registerPostFixer'](_0x2e1cba=>this['listItemIdFixer'](_0x2e1cba)),_0x5e73a3['model']['document']['registerPostFixer'](_0x4172a1=>this['noTrackChangesFixer'](_0x4172a1)),_0x5e73a3['model']['document']['on']('change:data',(_0x4815e4,_0x2c5b76)=>{if(_0x2c5b76['isUndo']||!_0x2c5b76['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3b37bf){if(_0x3b37bf['batch']['isUndo']||!_0x3b37bf['batch']['isLocal'])return!0x1;let _0xcf65a7=!0x1;const _0x2646b1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a4983=>_0x4a4983['data']&&'listItemId'==_0x4a4983['data']['key'])['filter'](_0x376fa6=>_0x376fa6['data']['newValue']&&_0x376fa6['data']['oldValue']);for(const _0x43d783 of _0x2646b1)Te(_0x43d783)||(_0x3b37bf['removeMarker'](_0x43d783['getFirstMarker']()),_0xcf65a7=!0x0);return _0xcf65a7;}['noTrackChangesFixer'](_0x3aa4cd){if(_0x3aa4cd['batch']['isUndo']||!_0x3aa4cd['batch']['isLocal'])return!0x1;const _0x1dee23=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1dee23['trackChangesCommand']['value'])return!0x1;let _0x1df455=!0x1;const _0x20547a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3d4694=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x6677ec=>'attribute'==_0x6677ec['type'])['filter'](_0x39e8b8=>_0x20547a['includes'](_0x39e8b8['attributeKey']));if(0x0==_0x3d4694['length'])return _0x1df455;for(const _0x100394 of _0x3d4694){const _0x527c74=_0x1dee23['_findSuggestions'](_0x100394['range'],'attribute')['filter'](_0x5c32de=>!_0x5c32de['meta']['isNextTo'])['map'](_0x43c3a5=>_0x43c3a5['suggestion'])['filter'](_0x1f3ffe=>{const _0x501e3e=_0x1dee23['_getAttributeKey'](_0x1f3ffe);return _0x20547a['includes'](_0x501e3e);});if(_0x527c74['length']){for(const _0x29b058 of _0x527c74)_0x3aa4cd['removeMarker'](_0x29b058['getFirstMarker']());_0x1df455=!0x0;}}return _0x1df455;}['assureChains'](){const _0x2b54ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x440a69=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3fc595;const _0x206259=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x440e1e=>{if(_0x440e1e['data']['oldRange']||!_0x440e1e['data']['newRange'])return null;if(!_0x440e1e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x93929b}=_0x2b54ce['_splitMarkerName'](_0x440e1e['name']);if(!_0x2b54ce['hasSuggestion'](_0x93929b))return null;const _0x4bbf7e=_0x2b54ce['getSuggestion'](_0x93929b);return _0x440a69['includes'](_0x4bbf7e['data']['key']);})['map'](_0x543418=>{const {id:_0x16bb62}=_0x2b54ce['_splitMarkerName'](_0x543418['name']),_0x56484c=_0x2b54ce['getSuggestion'](_0x16bb62);return _0x3fc595=_0x56484c['attributes']['groupId'],_0x56484c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x206259['size'])return;const _0x2fa60c=_0x2b54ce['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41a20f=>'attribute'==_0x41a20f['type']&&_0x41a20f['data']&&_0x440a69['includes'](_0x41a20f['data']['key'])&&_0x41a20f['attributes']['groupId']!=_0x3fc595)['map'](_0x483953=>({'listItem':_0x483953['getFirstRange']()['start']['nodeAfter'],'groupId':_0x483953['attributes']['groupId']})),_0x57ae8c=new Set();for(const {groupId:_0x3efff0,listItem:_0xe6cb78}of _0x2fa60c)_0x206259['has'](_0xe6cb78)&&_0x57ae8c['add'](_0x3efff0);for(const _0x172e8a of _0x2b54ce['getSuggestions']())_0x57ae8c['has'](_0x172e8a['attributes']['groupId'])&&_0x172e8a['setAttribute']('groupId',_0x3fc595);}['_supportLegacySuggestions'](){const _0x194f63=this['editor'],_0x3947e0=_0x194f63['locale'],_0x5002db=_0x194f63['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5002db['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xd71725,_0x67ff29){const _0x4ad0f6=[];for(let _0x5aa4c0 of _0xd71725)_0x5aa4c0['start']['nodeAfter']===_0x5aa4c0['end']['parent']&&(_0x5aa4c0=_0x194f63['model']['createRange'](_0x194f63['model']['createPositionAt'](_0x5aa4c0['start']['nodeAfter'],0x0))),_0x4ad0f6['push'](_0x5aa4c0);_0x194f63['model']['change'](_0x1e670d=>{const _0x5ded42=_0x194f63['model']['document']['selection'],_0x45bb98=Array['from'](_0x5ded42['getRanges']())['map'](_0x463724=>_0x360b1f['fromRange'](_0x463724));_0x1e670d['setSelection'](_0x4ad0f6),_0x194f63['commands']['get'](_0x67ff29['commandName'])['refresh'](),_0x67ff29['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x194f63['execute'](_0x67ff29['commandName'],..._0x67ff29['commandParams']),_0x1e670d['setSelection'](_0x45bb98);for(const _0x146f95 of _0x45bb98)_0x146f95['detach']();});}),_0x5002db['descriptionFactory']['registerElementLabel'](function(_0x2dada7){const _0x6adcb5=!_0x194f63['model']['schema']['isObject'](_0x2dada7),_0x54f26f=_0x2dada7['previousSibling'],_0x5a353f=_0x2dada7['nextSibling'],_0x2e8dc5=_0x2dada7['getAttribute']('listItemId'),_0x21e044=!_0x54f26f||_0x54f26f['getAttribute']('listItemId')!==_0x2e8dc5,_0x55a6e8=!_0x5a353f||_0x5a353f['getAttribute']('listItemId')!==_0x2e8dc5;return _0x6adcb5&&Boolean(_0x2e8dc5)&&_0x21e044&&_0x55a6e8;},_0x367c71=>o(_0x3947e0,'ELEMENT_LIST_ITEM',_0x367c71));}['_registerLegacyDescription'](){const _0xde66b5=this['editor'],_0x316cf1=_0xde66b5['locale'];function _0x56521e(_0x4ca7aa){const _0x529ab0=_0xde66b5['commands']['get']('bulletedList')['value'],_0x1064d2=_0xde66b5['commands']['get']('numberedList')['value'];return'numberedList'===_0x4ca7aa?_0x529ab0:_0x1064d2;}_0xde66b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x57241e){if('formatBlock'!=_0x57241e['type'])return;const {data:_0x49dcf9}=_0x57241e;if(!_0x49dcf9)return;let _0x1507bb,_0x110097,_0x264ab7,_0x2e9642;switch(_0x49dcf9['commandName']){case'bulletedList':_0x264ab7=_0x49dcf9['commandParams'][0x0]['forceValue'],_0x2e9642=_0x56521e(_0x49dcf9['commandName']),_0x1507bb=_0x264ab7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2e9642&&_0xde66b5['config']['get']('list.multiBlock')||(_0x1507bb='*Change\x20to:*\x20%0'),_0x110097={'type':'format','content':o(_0x316cf1,_0x1507bb,o(_0x316cf1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x264ab7=_0x49dcf9['commandParams'][0x0]['forceValue'],_0x2e9642=_0x56521e(_0x49dcf9['commandName']),_0x1507bb=_0x264ab7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2e9642&&_0xde66b5['config']['get']('list.multiBlock')||(_0x1507bb='*Change\x20to:*\x20%0'),_0x110097={'type':'format','content':o(_0x316cf1,_0x1507bb,o(_0x316cf1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1507bb='*Indent:*\x20%0',_0x110097={'type':'format','content':o(_0x316cf1,_0x1507bb,o(_0x316cf1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1507bb=function(_0x533a03){const _0x38bcfe=_0x533a03['getFirstRange']();let _0x18d7f3=_0x38bcfe['start']['nodeAfter'];for(;_0x18d7f3&&_0x38bcfe['containsItem'](_0x18d7f3);){if(_0x18d7f3['getAttribute']('listIndent')>0x0)return!0x1;_0x18d7f3=_0x18d7f3['nextSibling'];}return!0x0;}(_0x57241e)?o(_0x316cf1,'*Format:*\x20remove\x20from\x20%0',o(_0x316cf1,function(_0x5c5749){return'ELEMENT_'+_0x5c5749['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x57241e))):o(_0x316cf1,'*Outdent:*\x20%0',o(_0x316cf1,'ELEMENT_LIST_ITEM')),_0x110097={'type':'format','content':_0x1507bb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x49dcf9['multipleBlocks']&&(_0x1507bb='*Merge:*\x20%0',_0x110097={'type':'deletion','content':o(_0x316cf1,_0x1507bb,o(_0x316cf1,'ELEMENT_LIST_ITEM'))});}return _0x110097;});}}function Te(_0x226b55){let _0x2975d1=_0x226b55['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2975d1;){const _0x32e7d2=_0x2975d1['getAttribute']('listItemId');if(!_0x32e7d2)return!0x1;if(_0x32e7d2==_0x226b55['data']['newValue'])return'newValue';if(_0x32e7d2==_0x226b55['data']['oldValue'])return'oldValue';_0x2975d1=_0x2975d1['previousSibling'];}return!0x1;}class q extends _0x3721e7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x39c939=this['editor']['config']['get']('list.properties'),_0x504bb1=this['editor']['plugins']['get']('TrackChangesEditing');_0x39c939['styles']&&(_0x504bb1['enableDefaultAttributesIntegration']('listStyle'),_0x504bb1['registerBlockAttribute']('listStyle')),_0x39c939['reversed']&&(_0x504bb1['enableDefaultAttributesIntegration']('listReversed'),_0x504bb1['registerBlockAttribute']('listReversed')),_0x39c939['startIndex']&&(_0x504bb1['enableDefaultAttributesIntegration']('listStart'),_0x504bb1['registerBlockAttribute']('listStart'));const _0x2cade4={'type':'format','content':''};_0x504bb1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x24f5d9=this['editor']['locale'];_0x504bb1['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x24f5d9,'FORMAT_LIST_REVERSED')),_0x504bb1['descriptionFactory']['registerDescriptionCallback'](_0x2035c4=>{const {data:_0x44cc63}=_0x2035c4;if(_0x44cc63&&'listReversed'==_0x44cc63['key'])return null==_0x44cc63['newValue']||0x0==_0x44cc63['newValue']&&null==_0x44cc63['oldValue']?_0x2cade4:void 0x0;}),_0x504bb1['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x24f5d9,'FORMAT_LIST_START')),_0x504bb1['descriptionFactory']['registerDescriptionCallback'](_0x373cf6=>{const {data:_0x5b3fc5}=_0x373cf6;if(_0x5b3fc5&&'listStart'==_0x5b3fc5['key'])return null==_0x5b3fc5['newValue']||0x1==_0x5b3fc5['newValue']&&null==_0x5b3fc5['oldValue']?_0x2cade4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x421c37=>{if(_0x421c37['batch']['isUndo'])return!0x1;let _0x1fb645=!0x1;const _0x299242=_0x504bb1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d08ee=>{const _0x14e3a4=_0x504bb1['_getAttributeKey'](_0x5d08ee);return'listStart'==_0x14e3a4||'listReversed'==_0x14e3a4;});for(const _0x3c322a of _0x299242){const _0x357404=_0x3c322a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x357404||'customNumbered'==_0x357404)continue;_0x504bb1['_findSuggestions'](_0x3c322a['getFirstRange'](),'attribute')['find'](_0x226a73=>'listType'==_0x504bb1['_getAttributeKey'](_0x226a73['suggestion']))||(_0x421c37['removeMarker'](_0x3c322a['getFirstMarker']()),_0x1fb645=!0x0);}return _0x1fb645;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x12ad6b){const _0x546288=this['editor']['locale'],{data:_0x3ce4d4}=_0x12ad6b,_0x458c6b={'type':'format','content':''};if(!_0x3ce4d4||'listStyle'!=_0x3ce4d4['key'])return;if(!_0x3ce4d4['oldValue'])return'default'==_0x3ce4d4['newValue']?_0x458c6b:{'type':'format','content':''+o(_0x546288,'*Set\x20format:*\x20%0',o(_0x546288,this['_getTranslationKeyForListStyle'](_0x3ce4d4['newValue'])))};if(!_0x3ce4d4['newValue']){if('default'==_0x3ce4d4['oldValue'])return _0x458c6b;let _0x114af5=_0x12ad6b['head'];for(;_0x114af5;){if(_0x114af5['data']&&'listType'==_0x114af5['data']['key']&&_0x114af5['data']['newValue'])return _0x458c6b;_0x114af5=_0x114af5['next'];}return{'type':'format','content':''+o(_0x546288,'*Remove\x20format:*\x20%0',o(_0x546288,this['_getTranslationKeyForListStyle'](_0x3ce4d4['oldValue'])))};}if('default'!=_0x3ce4d4['newValue'])return{'type':'format','content':''+o(_0x546288,'*Set\x20format:*\x20%0',o(_0x546288,this['_getTranslationKeyForListStyle'](_0x3ce4d4['newValue'])))};let _0x46d05d=_0x12ad6b['head'];for(;_0x46d05d;){if(_0x46d05d['data']&&'listType'==_0x46d05d['data']['key']&&_0x46d05d['data']['newValue']&&_0x46d05d['data']['oldValue'])return _0x458c6b;_0x46d05d=_0x46d05d['next'];}return{'type':'format','content':o(_0x546288,'*Set\x20format:*\x20%0',o(_0x546288,'ELEMENT_'+_0x12ad6b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x262809=this['editor'],_0x4b6271=_0x262809['locale'];_0x262809['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5de4f8=>{if('formatBlock'!=_0x5de4f8['type'])return;const {data:_0x1e3820}=_0x5de4f8;if(!_0x1e3820)return;let _0x504fd1,_0x1b038e;switch(_0x1e3820['commandName']){case'listStyle':_0x504fd1='*Change\x20to:*\x20%0',_0x1b038e={'type':'format','content':o(_0x4b6271,_0x504fd1,o(_0x4b6271,this['_getTranslationKeyForListStyle'](_0x1e3820['commandParams'][0x0]['type'])))};break;case'listReversed':_0x504fd1=_0x1e3820['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1b038e={'type':'format','content':o(_0x4b6271,_0x504fd1)};break;case'listStart':_0x504fd1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1b038e={'type':'format','content':o(_0x4b6271,_0x504fd1,_0x1e3820['commandParams'][0x0]['startIndex'])};}return _0x1b038e;});}['_getTranslationKeyForListStyle'](_0x4d1e28){return'ELEMENT_'+function(_0x45711a){if(Se['includes'](_0x45711a))return'bulleted';if(_e['includes'](_0x45711a))return'numbered';return null;}(_0x4d1e28)['toUpperCase']()+'_LIST_'+_0x4d1e28['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x3721e7{['afterInit'](){const _0x400a18=this['editor'];_0x400a18['commands']['get']('emoji')&&_0x400a18['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x3721e7{static get['requires'](){return[_0x53edbe];}['init'](){const _0x4a9493=this['editor'],_0x3fb993=_0x4a9493['plugins']['get']('TrackChangesEditing'),_0x101c2d=_0x4a9493['commands']['get']('enter');_0x3fb993['enableCommand']('enter',()=>{_0x4a9493['model']['change'](_0x379068=>{const _0x38364b=_0x4a9493['model']['document']['selection'],_0xb8e55e=_0x38364b['getFirstPosition'](),_0xf4c66c=_0x360b1f['fromRange'](_0x38364b['getFirstRange']());if(_0x101c2d['enterBlock'](_0x379068)){const _0x1138b5=_0x4a9493['model']['createPositionAt'](_0xb8e55e['parent']['nextSibling'],0x0),_0x4ba99d=_0x379068['createRange'](_0xb8e55e,_0x1138b5);_0x3fb993['markInsertion'](_0x4ba99d);}else _0x379068['setSelection'](_0x379068['createRange'](_0xf4c66c['end']));_0xf4c66c['detach'](),_0x101c2d['fire']('afterExecute',{'writer':_0x379068});});}),_0x4a9493['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4a9493,'split'),{'priority':'high'}),_0x4a9493['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x7efaf,_0x2b8471,_0x247894)=>{const _0x1c7cb3=_0x247894['mapper']['markerNameToElements'](_0x2b8471['markerName']);if(_0x1c7cb3){for(const _0x56e2cd of _0x1c7cb3)_0x56e2cd['hasClass']('ck-suggestion-marker-split')&&(_0x247894['mapper']['unbindElementFromMarkerName'](_0x56e2cd,_0x2b8471['markerName']),_0x247894['writer']['remove'](_0x56e2cd));}},{'priority':'high'}),_0x4a9493['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x207a58,_0x11145e,_0x4a977b)=>{_0x4a977b['options']['showSuggestionHighlights']&&De(_0x4a9493,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x207a58,_0x11145e,_0x4a977b);},{'priority':'high'});}}class Q extends _0x3721e7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5bfbb5=this['editor']['plugins']['get']('TrackChangesEditing');_0x5bfbb5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5bfbb5['enableCommand']('findNext'),_0x5bfbb5['enableCommand']('findPrevious'),_0x5bfbb5['enableCommand']('replace'),_0x5bfbb5['enableCommand']('replaceAll');}['handleFindCommand'](_0x1ae91c,_0x376594,_0x3640c2={}){const _0x481180=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1ae91c(_0x445aaa=>{let _0xad1809=('string'==typeof _0x376594?_0x481180['findByTextCallback'](_0x376594,_0x3640c2):_0x376594)(_0x445aaa);Array['isArray'](_0xad1809)&&(_0xad1809={'results':_0xad1809,'searchText':'string'==typeof _0x376594?_0x376594:''});const _0x1263da=_0xad1809['results']['filter'](_0x59618d=>!0x1===this['_isInDeletionRange'](_0x59618d,_0x445aaa['item']));return{..._0xad1809,'results':_0x1263da};},_0x3640c2);}['_isInDeletionRange'](_0x12ec76,_0x1bf3cb){const _0x2e9c1f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1bf3cb,_0x12ec76['start']),this['editor']['model']['createPositionAt'](_0x1bf3cb,_0x12ec76['end']));for(const _0x417c03 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2e9c1f['getIntersection'](_0x417c03['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x3721e7{['afterInit'](){const _0x5a46bc=this['editor']['locale'],_0x2bec59=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x45a6f0,commandName:_0x622777}of eo)this['editor']['plugins']['has'](_0x45a6f0)&&(_0x2bec59['enableDefaultAttributesIntegration'](_0x622777),_0x2bec59['registerInlineAttribute'](_0x622777));_0x2bec59['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5a46bc,'FORMAT_FONT_SIZE')),_0x2bec59['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5a46bc,'FORMAT_FONT_FAMILY')),_0x2bec59['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5a46bc,'FORMAT_FONT_COLOR')),_0x2bec59['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5a46bc,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b8f00=this['editor'],_0x21ad3b=_0x1b8f00['locale'];_0x1b8f00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xaec894=>{const _0x30d193=_0x21ad3b['t'];if('formatInline'!=_0xaec894['type'])return;const {data:_0x5df5c9}=_0xaec894;if(null!=_0x5df5c9){if('fontSize'==_0x5df5c9['commandName']){const _0x148f20=_0x5df5c9['commandParams'][0x0]['value'];if(_0x148f20){const _0x1bea72=_0x30d193(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3240dc=>_0x3240dc['model']==_0x148f20)['title'])['toLowerCase']();return{'type':'format','content':o(_0x21ad3b,'*Set\x20font\x20size:*\x20%0',_0x1bea72)};}return{'type':'format','content':o(_0x21ad3b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5df5c9['commandName']){const _0x570c81=_0x5df5c9['commandParams'][0x0]['value'];return _0x570c81?{'type':'format','content':o(_0x21ad3b,'*Set\x20font\x20family:*\x20%0',_0x570c81)}:{'type':'format','content':o(_0x21ad3b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5df5c9['commandName']){const _0x3ac7f1=_0x5df5c9['commandParams'][0x0]['value'];if(_0x3ac7f1){const _0x4b647d=_0x78b11c(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4d6367=>_0x4d6367['model']==_0x3ac7f1);let _0xdb82a5=_0x3ac7f1,_0x473344='';return _0x4b647d&&(_0xdb82a5=_0x4b647d['label'],_0x473344=_0x30d193(_0xdb82a5)['toLowerCase']()),{'type':'format','content':o(_0x21ad3b,'*Set\x20font\x20color:*\x20%0',_0x473344)['trim'](),'color':{'value':_0x3ac7f1,'title':_0x473344||_0xdb82a5}};}return{'type':'format','content':o(_0x21ad3b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5df5c9['commandName']){const _0xa5fe50=_0x5df5c9['commandParams'][0x0]['value'];if(_0xa5fe50){const _0x577f78=_0x78b11c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x110dcf=>_0x110dcf['model']==_0xa5fe50);let _0x50fbfe=_0xa5fe50,_0x5d283e='';return _0x577f78&&(_0x50fbfe=_0x577f78['label'],_0x5d283e=_0x30d193(_0x50fbfe)['toLowerCase']()),{'type':'format','content':o(_0x21ad3b,'*Set\x20font\x20background\x20color:*\x20%0',_0x5d283e)['trim'](),'color':{'value':_0xa5fe50,'title':_0x5d283e||_0x50fbfe}};}return{'type':'format','content':o(_0x21ad3b,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x3721e7{['afterInit'](){const _0x5c35ae=this['editor'],_0x5c40f0=_0x5c35ae['plugins']['get']('TrackChangesEditing'),_0x25ef72=_0x5c35ae['commands']['get']('copyFormat'),_0x5e4fb6=_0x5c35ae['commands']['get']('pasteFormat');_0x25ef72&&_0x5e4fb6&&(_0x5c40f0['enableDefaultAttributesIntegration']('pasteFormat'),_0x5c40f0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xef048e=this['editor'],_0x29b8db=_0xef048e['locale'];_0xef048e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd4097b=>{if('formatBlock'!=_0xd4097b['type']&&'formatInline'!=_0xd4097b['type'])return;const {data:_0x4aa6c6}=_0xd4097b;if(_0x4aa6c6&&'pasteFormat'===_0x4aa6c6['commandName']){const _0x3d3fe1=[],_0x542d5a=_0x4aa6c6['commandParams'][0x0];for(const [_0x2a6f73,_0x3df04c]of Object['entries'](_0x542d5a))_0x3d3fe1['push'](ro(_0xef048e,_0x2a6f73,_0x3df04c));return _0x3d3fe1['length']?{'type':'format','content':o(_0x29b8db,'*Set\x20format\x20to:*\x20%0',_0x3d3fe1['join'](',\x20'))}:{'type':'format','content':o(_0x29b8db,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xec1d5a,_0x16e0e9,_0x187264){const _0x3914eb=_0xec1d5a['locale']['t'],_0x5858bf=_0x16e0e9['split'](/(?=[A-Z])/)['join']('\x20'),_0xbcc4c6=_0x3914eb(_0x5858bf['charAt'](0x0)['toUpperCase']()+_0x5858bf['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x187264)return _0xbcc4c6;if('fontColor'===_0x16e0e9||'fontBackgroundColor'===_0x16e0e9){const _0x529eac=_0x78b11c(_0xec1d5a['config']['get']('fontColor.colors'))['find'](_0x18456a=>_0x18456a['model']==_0x187264);return _0xbcc4c6+'\x20('+(_0x529eac?_0x3914eb(_0x529eac['label'])['toLowerCase']():_0x187264)+')';}if('fontSize'===_0x16e0e9&&isNaN(parseFloat(_0x187264))){const _0x127f1b=_0xec1d5a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xec1d5a['config']['get']('fontSize.options'))['find'](_0x2ff627=>_0x2ff627['model']==_0x187264);return _0xbcc4c6+'\x20('+(_0x127f1b?_0x3914eb(_0x127f1b['title'])['toLowerCase']():_0x187264)+')';}return _0xbcc4c6+'\x20('+_0x187264+')';}class Z extends _0x3721e7{['_headingOptions'];['afterInit'](){const _0x2fdaa6=this['editor'];if(!_0x2fdaa6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2fdaa6['config']['get']('heading.options');const _0x301626=_0x2fdaa6['locale'],_0x2e6385=_0x2fdaa6['plugins']['get']('TrackChangesEditing');_0x2e6385['enableDefaultAttributesIntegration']('heading');for(const _0x11559d of this['_headingOptions'])'paragraph'!=_0x11559d['model']&&_0x2e6385['descriptionFactory']['registerElementLabel'](_0x11559d['model'],_0x4593f2=>{const _0xab266e=this['_getHeadingLevel'](_0x11559d['model']);return null!==_0xab266e?_0x46ee1e(_0x4593f2,_0xab266e):_0x2138a5(_0x4593f2,_0x11559d['title']);});function _0x46ee1e(_0x568f0c,_0x4d624c){return o(_0x301626,'ELEMENT_HEADING',[_0x568f0c,_0x4d624c]);}function _0x2138a5(_0x112491,_0x135c2c){return o(_0x301626,'ELEMENT_HEADING_CUSTOM',[_0x112491,_0x135c2c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f77b4=this['editor'],_0x54546a=_0x2f77b4['locale'];function _0x40c709(_0x5719ae,_0x4c1e23){return o(_0x54546a,'ELEMENT_HEADING_CUSTOM',[_0x5719ae,_0x4c1e23]);}_0x2f77b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x101c7d=>{if('formatBlock'!=_0x101c7d['type'])return;const {data:_0x90680d}=_0x101c7d;if(_0x90680d&&'heading'==_0x90680d['commandName']){const _0x5a067b=_0x90680d['commandParams'][0x0]['value'],_0x3d6f34=this['_getHeadingLevel'](_0x5a067b);if(null!==_0x3d6f34)return{'type':'format','content':o(_0x54546a,'*Change\x20to:*\x20%0',(_0x4c05c7=0x1,_0x4c29c6=_0x3d6f34,o(_0x54546a,'ELEMENT_HEADING',[_0x4c05c7,_0x4c29c6])))};const _0xeafb6a=this['_headingOptions']['find'](_0x728ab5=>_0x728ab5['model']===_0x5a067b)['title'];return{'type':'format','content':o(_0x54546a,'*Change\x20to:*\x20%0',_0x40c709(0x1,_0xeafb6a))};}var _0x4c05c7,_0x4c29c6;});}['_getHeadingLevel'](_0x4f742e){const _0x4221d1=_0x4f742e['match'](/^heading(\d+)/);if(_0x4221d1)return _0x4221d1[0x1];const _0x321c7b=this['_headingOptions']?.['find'](_0x39a301=>_0x39a301['model']==_0x4f742e);if(_0x321c7b&&_0x321c7b['view']){const _0x500a8b=_0x321c7b['view'],_0x5af06a=(_0x500a8b['name']??_0x500a8b)['match'](/^h(\d+)/);if(_0x5af06a)return _0x5af06a[0x1];}return null;}}class tt extends _0x3721e7{['afterInit'](){const _0x448c94=this['editor'];if(!_0x448c94['plugins']['has']('HighlightEditing'))return;const _0x1c721b=_0x448c94['plugins']['get']('TrackChangesEditing'),_0x5b5e29=_0x448c94['locale'];_0x1c721b['enableDefaultAttributesIntegration']('highlight'),_0x1c721b['registerInlineAttribute']('highlight'),_0x1c721b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5b5e29,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3417e=this['editor'],_0x3c6d91=_0x3417e['locale'];_0x3417e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b995c=>{if('formatInline'!=_0x4b995c['type'])return;const {data:_0x211035}=_0x4b995c;if(_0x211035&&'highlight'==_0x211035['commandName']){const _0x61a55c=_0x3c6d91['t'],_0x563957=_0x211035['commandParams'][0x0]['value'];if(_0x563957){const _0x46cbd5=_0x3417e['config']['get']('highlight.options')['find'](_0x447153=>_0x447153['model']==_0x563957),_0x58d70e=_0x61a55c(_0x46cbd5['title'])['toLowerCase']();return{'type':'format','content':o(_0x3c6d91,'*Set\x20highlight:*\x20%0',_0x58d70e),'color':{'value':_0x46cbd5['color'],'title':_0x46cbd5['title']}};}return{'type':'format','content':o(_0x3c6d91,'*Remove\x20highlight*',o(_0x3c6d91,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3721e7{['afterInit'](){const _0x2e576e=this['editor'];if(!_0x2e576e['plugins']['has']('HorizontalLineEditing'))return;_0x2e576e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x29fcd2=_0x2e576e['plugins']['get']('TrackChangesEditing'),_0x1b64bd=_0x2e576e['locale'];_0x29fcd2['descriptionFactory']['registerElementLabel']('horizontalLine',_0xf283d9=>o(_0x1b64bd,'ELEMENT_HORIZONTAL_LINE',_0xf283d9)),_0x2e576e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2b2064,{writer:_0x2511d9,options:_0x558827})=>{if(!_0x558827['showSuggestionHighlights'])return null;const _0x2bf83a=_0x2511d9['createContainerElement']('div'),_0x594537=_0x2511d9['createEmptyElement']('hr');return _0x2511d9['addClass']('ck-horizontal-line',_0x2bf83a),_0x2511d9['insert'](_0x2511d9['createPositionAt'](_0x2bf83a,0x0),_0x594537),_0x2bf83a;},'converterPriority':'high'});}}class nt extends _0x3721e7{['afterInit'](){const _0xdc59c6=this['editor'];if(!_0xdc59c6['plugins']['has']('HtmlEmbed'))return;const _0x2e5d91=_0xdc59c6['plugins']['get']('TrackChangesEditing'),_0x499d86=_0xdc59c6['locale'];_0x2e5d91['descriptionFactory']['registerElementLabel']('rawHtml',_0x4bd72e=>o(_0x499d86,'ELEMENT_HTML_EMBED',_0x4bd72e)),_0x2e5d91['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2e5d91['registerBlockAttribute']('value'),_0x2e5d91['descriptionFactory']['registerDescriptionCallback'](_0x5da488=>{if('attribute'!=_0x5da488['type'])return;const {data:_0x587852}=_0x5da488;if(_0x587852&&'value'==_0x587852['key']&&_0x5da488['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x39f3a9=o(_0x499d86,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x499d86,'*Change\x20%0\x20content*',_0x39f3a9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35fc0a=this['editor'],_0x4ca9ee=_0x35fc0a['locale'];_0x35fc0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x312ea4=>{if('formatBlock'!=_0x312ea4['type'])return;const {data:_0x3a03fe}=_0x312ea4;if(_0x3a03fe&&'htmlEmbed'==_0x3a03fe['commandName']){const _0x370020=o(_0x4ca9ee,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4ca9ee,'*Change\x20%0\x20content*',_0x370020)};}});}}class et extends _0x3721e7{['afterInit'](){const _0x42c37e=this['editor'];if(!_0x42c37e['plugins']['has']('ImageEditing'))return;const _0x416ca7=_0x42c37e['plugins']['get']('TrackChangesEditing'),_0x4c2794=_0x42c37e['plugins']['get']('ImageUtils'),_0xcc463b=_0x42c37e['locale'];_0x416ca7['enableCommand']('insertImage'),_0x416ca7['descriptionFactory']['registerElementLabel']('imageBlock',_0x489771=>o(_0xcc463b,'ELEMENT_IMAGE',_0x489771)),_0x416ca7['descriptionFactory']['registerElementLabel']('imageInline',_0x57915a=>o(_0xcc463b,'ELEMENT_INLINE_IMAGE',_0x57915a)),_0x416ca7['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xcc463b,'ELEMENT_CAPTION')),_0x42c37e['plugins']['has']('ImageUploadEditing')&&_0x416ca7['enableCommand']('uploadImage'),_0x42c37e['plugins']['has']('ImageBlockEditing')&&_0x42c37e['plugins']['has']('ImageInlineEditing')&&(_0x416ca7['enableCommand']('imageTypeInline',(_0x51bd26,_0x4e33c2)=>{const _0xf599a1=_0x4c2794['getClosestSelectedImageElement'](_0x42c37e['model']['document']['selection']);_0x42c37e['model']['change'](()=>{_0x416ca7['markBlockFormat'](_0xf599a1,{'commandName':'imageTypeInline','commandParams':[_0x4e33c2]},[],'convertBlockImageToInline');});}),_0x416ca7['enableCommand']('imageTypeBlock',(_0x49467b,_0x2c9068)=>{_0x42c37e['model']['change'](_0x544b71=>{let _0x3e18c8=_0x4c2794['getClosestSelectedImageElement'](_0x42c37e['model']['document']['selection']),_0x410de6=_0x544b71['createRangeOn'](_0x3e18c8);const _0x52df68=_0x4a360a['fromPosition'](_0x410de6['start'],'toPrevious'),_0x82977d=_0x4a360a['fromPosition'](_0x410de6['end'],'toNext');_0x416ca7['forceDefaultExecution'](()=>_0x49467b(_0x2c9068)),_0x3e18c8=_0x4c2794['getClosestSelectedImageElement'](_0x42c37e['model']['document']['selection']),_0x410de6=_0x544b71['createRangeOn'](_0x3e18c8);const _0x23b67d=_0x544b71['createRange'](_0x52df68,_0x82977d);_0x52df68['detach'](),_0x82977d['detach'](),_0x416ca7['markBlockFormat'](_0x3e18c8,{'commandName':'imageTypeInline','commandParams':[_0x2c9068]},[],'convertInlineImageToBlock'),_0x23b67d['start']['isBefore'](_0x410de6['start'])&&_0x416ca7['markInsertion'](_0x544b71['createRange'](_0x23b67d['start'],_0x410de6['start']),'convertInlineImageToBlock'),_0x410de6['end']['isBefore'](_0x23b67d['end'])&&_0x416ca7['markInsertion'](_0x544b71['createRange'](_0x410de6['end'],_0x23b67d['end']),'convertInlineImageToBlock');});}),_0x416ca7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x416ca7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x416ca7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x416ca7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x416ca7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x416ca7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x39f794])=>{const _0x1d8c7f=_0x416ca7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2c7ad2=_0x39f794['start'],_0x2c3357=_0x39f794['end'];const _0x50a250=_0x42c37e['model']['schema']['getNearestSelectionRange'](_0x2c7ad2,'backward'),_0x3ec9bc=_0x42c37e['model']['schema']['getNearestSelectionRange'](_0x2c3357,'forward');_0x50a250['isCollapsed']&&(_0x2c7ad2=_0x50a250['start']),_0x3ec9bc['isCollapsed']&&(_0x2c3357=_0x3ec9bc['end']),_0x1d8c7f([_0x42c37e['model']['createRange'](_0x2c7ad2,_0x2c3357)]);}),_0x416ca7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5c3aaa),_0x416ca7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5c3aaa)),_0x42c37e['plugins']['has']('ImageCaptionEditing')&&(_0x416ca7['enableCommand']('toggleImageCaption',(_0x466bed,_0x3c638d)=>{const _0x18ab76=_0x42c37e['plugins']['get']('ImageCaptionUtils');let _0x231f2b=_0x4c2794['getClosestSelectedImageElement'](_0x42c37e['model']['document']['selection']),_0x15130f=_0x18ab76['getCaptionFromImageModelElement'](_0x231f2b);_0x42c37e['model']['change'](()=>{if(_0x15130f)return void _0x416ca7['markDeletion'](_0x42c37e['model']['createRangeOn'](_0x15130f));const _0x40267e=_0x4c2794['isBlockImage'](_0x231f2b);_0x466bed(_0x3c638d),_0x231f2b=_0x4c2794['getClosestSelectedImageElement'](_0x42c37e['model']['document']['selection']),_0x15130f=_0x18ab76['getCaptionFromImageModelElement'](_0x231f2b),_0x416ca7['markInsertion'](_0x42c37e['model']['createRangeOn'](_0x15130f),_0x40267e?null:'imageCaption');});}),_0x416ca7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5c3aaa));const _0x478bbb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xec4a2e(_0x3508ec,_0x1ab25e){const _0x3ee688=_0x478bbb['findIndex'](({type:_0x4887b7,subType:_0x50ec3f})=>_0x3508ec['type']==_0x4887b7&&_0x3508ec['subType']==_0x50ec3f),_0x41ccbb=_0x478bbb['findIndex'](({type:_0x1f17bb,subType:_0x2120a5})=>_0x1ab25e['type']==_0x1f17bb&&_0x1ab25e['subType']==_0x2120a5);if(_0x3ee688<0x0||_0x41ccbb<0x0)return!0x1;const _0x5bf849=_0x3508ec['getFirstRange'](),_0x2a66f1=_0x1ab25e['getFirstRange']();if((0x0==_0x3ee688||0x1==_0x3ee688)&&0x2==_0x41ccbb&&_0x5bf849['isIntersecting'](_0x2a66f1))return!0x0;if(0x2==_0x3ee688&&0x3==_0x41ccbb){const _0x59cb95=_0x416ca7['_findSuggestions'](_0x5bf849,'insertion')['filter'](({suggestion:_0x432755,meta:_0x473c0d})=>_0x473c0d['isOwn']&&'convertInlineImageToBlock'==_0x432755['subType']);if(_0x59cb95['length']>0x1&&_0x2a66f1['end']['isEqual'](_0x5bf849['start']))return!0x0;if(0x1==_0x59cb95['length']&&(_0x5bf849['start']['isEqual'](_0x2a66f1['end'])||_0x5bf849['end']['isEqual'](_0x2a66f1['start'])))return!0x0;}if(0x3==_0x3ee688&&0x3==_0x41ccbb&&_0x5bf849['start']['isBefore'](_0x2a66f1['start'])){const _0x2a3aae=_0x5bf849['end']['nodeAfter'],_0x33cefd=_0x2a66f1['start']['nodeBefore'];return _0x4c2794['isBlockImage'](_0x2a3aae)&&_0x2a3aae===_0x33cefd;}return!0x1;}function _0x5c3aaa(_0x2d69a4,_0x4f96ef){return _0xec4a2e(_0x2d69a4,_0x4f96ef)?[_0x2d69a4,_0x4f96ef]:_0xec4a2e(_0x4f96ef,_0x2d69a4)?[_0x4f96ef,_0x2d69a4]:null;}_0x42c37e['plugins']['has']('ImageResize')&&(_0x416ca7['enableDefaultAttributesIntegration']('resizeImage'),_0x416ca7['registerBlockAttribute']('resizedWidth'),_0x416ca7['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xcc463b,'FORMAT_IMAGE_SIZE'))),_0x42c37e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x416ca7['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x416ca7['registerBlockAttribute']('alt')),_0x42c37e['plugins']['has']('PictureEditing')&&(_0x416ca7['registerBlockAttribute']('sources'),_0x416ca7['descriptionFactory']['registerDescriptionCallback'](_0x177f2e=>{if('attribute'!=_0x177f2e['type'])return;const {data:_0x37d75c}=_0x177f2e;return _0x37d75c&&'sources'==_0x37d75c['key']?{'type':'format','content':''}:void 0x0;})),_0x42c37e['plugins']['has']('ImageSizeAttributes')&&(_0x416ca7['registerBlockAttribute']('width'),_0x416ca7['registerBlockAttribute']('height'),_0x416ca7['descriptionFactory']['registerDescriptionCallback'](_0x1a6bc8=>{if('attribute'!=_0x1a6bc8['type'])return;const {data:_0x50bc05}=_0x1a6bc8;return!_0x50bc05||'width'!=_0x50bc05['key']&&'height'!=_0x50bc05['key']?void 0x0:{'type':'format','content':''};})),_0x416ca7['descriptionFactory']['registerDescriptionCallback'](_0x37f998=>{if(!!_0x478bbb['find'](({type:_0x1b5d6e,subType:_0x1b5834})=>_0x37f998['type']==_0x1b5d6e&&_0x37f998['subType']==_0x1b5834))return _0x37f998['previous']?{}:void 0x0;}),_0x416ca7['descriptionFactory']['registerDescriptionCallback'](_0x45fd27=>{if('insertion'==_0x45fd27['type']||'deletion'==_0x45fd27['type']){const _0x52002e=_0x45fd27['getContainedElement']();if(_0x52002e&&_0x52002e['is']('element','caption'))return{'type':'insertion'==_0x45fd27['type']?'addObject':'removeObject','element':_0x52002e,'quantity':0x1};}}),_0x416ca7['descriptionFactory']['registerDescriptionCallback'](_0x4273b8=>'formatBlock'==_0x4273b8['type']&&'convertInlineImageToBlock'==_0x4273b8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4273b8['type']&&'convertBlockImageToInline'==_0x4273b8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x416ca7['descriptionFactory']['registerDescriptionCallback'](_0x462bf4=>{if('attribute'!=_0x462bf4['type'])return;const {data:_0x10ac2b}=_0x462bf4;if(!_0x10ac2b||'alt'!=_0x10ac2b['key'])return;const _0x45d7ed=_0x10ac2b['newValue'];return _0x45d7ed?{'type':'format','content':o(_0xcc463b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x45d7ed+'\x22')}:{'type':'format','content':o(_0xcc463b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51c716=this['editor'],_0xa67ea8=_0x51c716['locale'];_0x51c716['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d0a0f=>{if('formatBlock'!=_0x2d0a0f['type']&&'formatInline'!=_0x2d0a0f['type'])return;const {data:_0x5ecb53}=_0x2d0a0f;if(_0x5ecb53){if('imageTextAlternative'==_0x5ecb53['commandName']){const _0x19f5fb=_0x5ecb53['commandParams'][0x0]['newValue'];return _0x19f5fb?{'type':'format','content':o(_0xa67ea8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x19f5fb+'\x22')}:{'type':'format','content':o(_0xa67ea8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5ecb53['commandName']){const _0x1d3046=_0x5ecb53['commandParams'][0x0]['width'];return _0x1d3046?{'type':'format','content':o(_0xa67ea8,'*Set\x20image\x20width:*\x20%0',_0x1d3046)}:{'type':'format','content':o(_0xa67ea8,'*Reset\x20image\x20width*')};}}});}}class st extends _0x3721e7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x49ab94=this['editor']['locale'],_0x5a56da=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a56da['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5a56da['registerBlockAttribute']('src'),_0x5a56da['descriptionFactory']['registerDescriptionCallback'](_0x63cfa8=>{if('attribute'!=_0x63cfa8['type'])return;const {data:_0x3055ca}=_0x63cfa8;return _0x3055ca&&'src'==_0x3055ca['key']?_0x3055ca['newValue']&&_0x3055ca['oldValue']?{'type':'format','content':o(_0x49ab94,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xf0a40=this['editor']['plugins']['get']('TrackChangesEditing');_0xf0a40['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xf0a40['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf0a40['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xf0a40['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x366163=this['editor'],_0x485bc2=_0x366163['locale'];_0x366163['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x272145=>{if('formatBlock'!=_0x272145['type']&&'formatInline'!=_0x272145['type'])return;const {data:_0x2b5065}=_0x272145;if(!_0x2b5065||'replaceImageSource'!=_0x2b5065['commandName'])return;return{'type':'format','content':o(_0x485bc2,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x3721e7{['afterInit'](){const _0x4705a6=this['editor'];if(!_0x4705a6['plugins']['has']('ImageStyleEditing'))return;const _0x4e9eee=_0x4705a6['plugins']['get']('TrackChangesEditing'),_0x2ca758=_0x4705a6['plugins']['get']('ImageUtils'),_0x2f75ac={};_0x4e9eee['enableCommand']('imageStyle',(_0x19f083,_0xafa3b7)=>{const _0x414301=_0x4705a6['plugins']['get']('Users')['me'],_0x33d287=_0x4705a6['commands']['get']('imageStyle');let _0x223aa1=_0x2ca758['getClosestSelectedImageElement'](_0x4705a6['model']['document']['selection']),_0x5b105e=_0x4705a6['model']['createRangeOn'](_0x223aa1),_0x134789=_0x33d287['value'];if(_0x134789==_0xafa3b7['value'])return;const _0x1e695b={'commandName':'imageStyle','commandParams':[_0xafa3b7],'formatGroupId':_0x3f8d34()};_0x4705a6['model']['change'](()=>{if(_0x4e9eee['getSuggestions']()['filter'](_0x1cdc40=>_0x1cdc40['isInContent']&&_0x414301==_0x1cdc40['author']&&('formatBlock'==_0x1cdc40['type']||'formatInline'==_0x1cdc40['type'])&&('imageStylePreApply'==_0x1cdc40['subType']||'imageStylePostApply'==_0x1cdc40['subType'])&&_0x1cdc40['getFirstRange']()['isEqual'](_0x5b105e))['forEach'](_0x12f2fb=>_0x4e9eee['discardSuggestion'](_0x12f2fb['head'])),_0x223aa1=_0x2ca758['getClosestSelectedImageElement'](_0x4705a6['model']['document']['selection']),_0x5b105e=_0x4705a6['model']['createRangeOn'](_0x223aa1),_0x33d287['refresh'](),_0x4705a6['commands']['get']('imageTypeInline')['refresh'](),_0x4705a6['commands']['get']('imageTypeBlock')['refresh'](),_0x134789=_0x33d287['value'],_0x134789!=_0xafa3b7['value'])return _0x2ca758['isInlineImage'](_0x223aa1)&&_0x33d287['shouldConvertImageType'](_0xafa3b7['value'],_0x223aa1)?(_0x19f083({..._0xafa3b7,'setImageSizes':!0x1}),_0x223aa1=_0x2ca758['getClosestSelectedImageElement'](_0x4705a6['model']['document']['selection']),void _0x4e9eee['markBlockFormat'](_0x223aa1,{..._0x1e695b,'commandReversedParams':[{'value':_0x134789||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2ca758['isBlockImage'](_0x223aa1)?_0x4e9eee['markBlockFormat'](_0x223aa1,_0x1e695b,[],'imageStylePostApply'):_0x4e9eee['markInlineFormat'](_0x5b105e,_0x1e695b,'imageStylePostApply'));});});for(const _0x196aeb of _0x4705a6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2f75ac[_0x196aeb['name']]=_0x196aeb['title']['toLowerCase']();_0x4e9eee['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4e9eee['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4e9eee['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4e9eee['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x335ffb])=>{_0x2ca758['setImageNaturalSizeAttributes'](_0x335ffb['getContainedElement']());}),_0x4e9eee['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2a073a,_0x11df99)=>{_0x4e9eee['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2a073a,{'commandName':_0x11df99['commandName'],'commandParams':_0x11df99['commandReversedParams']});}),_0x4e9eee['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xc9352a,_0x12c74b){if(_0x187d7a(_0xc9352a,_0x12c74b))return[_0xc9352a,_0x12c74b];if(_0x187d7a(_0x12c74b,_0xc9352a))return[_0x12c74b,_0xc9352a];return null;});const _0x4ec3b1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x187d7a(_0x5813ef,_0x38cb24){const _0x49722f=_0x4ec3b1['findIndex'](({type:_0x3c72a5,subType:_0x29343d})=>_0x5813ef['type']==_0x3c72a5&&_0x5813ef['subType']==_0x29343d),_0x1db1d6=_0x4ec3b1['findIndex'](({type:_0x3b086c,subType:_0x19f055})=>_0x38cb24['type']==_0x3b086c&&_0x38cb24['subType']==_0x19f055);if(_0x49722f<0x0||_0x1db1d6<0x0)return!0x1;const _0x2d552e=_0x5813ef['getFirstRange'](),_0xaeebb0=_0x38cb24['getFirstRange']();if((0x0==_0x49722f||0x1==_0x49722f)&&0x2==_0x1db1d6&&_0x2d552e['isIntersecting'](_0xaeebb0))return!0x0;if(0x2==_0x49722f&&0x3==_0x1db1d6){const _0x35639d=_0x4e9eee['_findSuggestions'](_0x2d552e,'insertion')['filter'](({suggestion:_0x7d70ab,meta:_0x2b0e63})=>_0x2b0e63['isOwn']&&'convertInlineImageToBlock'==_0x7d70ab['subType']);if(_0x35639d['length']>0x1&&_0xaeebb0['end']['isEqual'](_0x2d552e['start']))return!0x0;if(0x1==_0x35639d['length']&&(_0x2d552e['start']['isEqual'](_0xaeebb0['end'])||_0x2d552e['end']['isEqual'](_0xaeebb0['start'])))return!0x0;}if(0x3==_0x49722f&&0x3==_0x1db1d6&&_0x2d552e['start']['isBefore'](_0xaeebb0['start'])){const _0x47fec2=_0x2d552e['end']['nodeAfter'],_0x289866=_0xaeebb0['start']['nodeBefore'];return _0x2ca758['isBlockImage'](_0x47fec2)&&_0x47fec2===_0x289866;}return!0x1;}_0x4705a6['model']['document']['registerPostFixer'](()=>{let _0x2b8b1a=!0x1;const _0x332d84=Array['from'](_0x4705a6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x485478,data:_0x204b19}of _0x332d84){const {group:_0x93a87b,type:_0x884639,subType:_0x84b549,id:_0x1d94ac}=_0x4e9eee['_splitMarkerName'](_0x485478);if('suggestion'==_0x93a87b&&_0x4e9eee['hasSuggestion'](_0x1d94ac)){if('formatBlock'==_0x884639&&('imageStylePreApply'==_0x84b549||'imageStylePostApply'==_0x84b549)){const _0x24959a=_0x4e9eee['getSuggestion'](_0x1d94ac);if(_0x204b19['newRange']){const _0x1b1f2d=_0x24959a['getFirstRange']()['getContainedElement']();if(_0x2ca758['isBlockImage'](_0x1b1f2d))continue;_0x4e9eee['discardSuggestion'](_0x24959a),_0x2b8b1a=!0x0;}}if('insertion'==_0x884639&&'imageCaption'==_0x84b549&&!_0x204b19['newRange']){const _0x47d9ed=_0x4e9eee['getSuggestion'](_0x1d94ac);_0x47d9ed['next']&&_0x47d9ed['next']['isInContent']&&(_0x4e9eee['discardSuggestion'](_0x47d9ed['next']),_0x2b8b1a=!0x0);}}}return _0x2b8b1a;}),this['_registerLegacyDescription'](_0x2f75ac);}['_registerLegacyDescription'](_0x5ce051){const _0x44d116=this['editor'],_0xf920fd=_0x44d116['locale'];_0x44d116['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x134a06=>{if('formatBlock'!=_0x134a06['type']&&'formatInline'!=_0x134a06['type'])return;const {data:_0x416217}=_0x134a06;if(!_0x416217||'imageStyle'!=_0x416217['commandName'])return;const _0xf1c0f9=_0x416217['commandParams'][0x0]['value'];return _0x3cd1e8('side'===_0xf1c0f9?o(_0xf920fd,'FORMAT_SIDE_IMAGE'):_0x5ce051[_0xf1c0f9]||_0xf1c0f9);function _0x3cd1e8(_0x58f5f){return{'type':'format','content':o(_0xf920fd,'*Format:*\x20%0',_0x58f5f)};}});}}class rt extends _0x3721e7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x13c2a8){super(_0x13c2a8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5c3325=this['editor'],_0x78dc38=_0x5c3325['commands']['get']('importWord'),_0x4e5a06=_0x5c3325['commands']['get']('trackChanges');_0x78dc38&&(_0x78dc38['on']('execute',(_0x17d160,[,_0x10a415])=>{this['_trackChangesValueDuringImport']=_0x4e5a06['value'],_0x10a415['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x78dc38,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x78dc38,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4e5a06['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5c3325['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x530f7b,_0x24e2a6){const {suggestions:_0x98f78f}=_0x24e2a6,_0x2e0169=this['editor']['commands']['get']('trackChanges'),_0x48e160=_0x2e0169['value'];this['_trackChangesValueDuringImport']!==_0x48e160&&(_0x2e0169['execute'](),this['_trackChangesExecuted']=!0x0),_0x98f78f&&_0x98f78f['forEach'](({id:_0x1d3a43,type:_0x2863d6,author:_0x5d69b2,created_at:_0x23384c})=>{const _0x356ad3={'id':_0x1d3a43,'type':_0x2863d6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5d69b2,'createdAt':_0x23384c?new Date(_0x23384c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x356ad3);});}}class at extends _0x3721e7{['afterInit'](){const _0x24b4b1=this['editor'],_0x5ea370=_0x24b4b1['plugins']['get']('TrackChangesEditing');if(_0x24b4b1['plugins']['has']('IndentEditing')&&(_0x5ea370['enableCommand']('indent'),_0x5ea370['enableCommand']('outdent')),_0x24b4b1['plugins']['has']('IndentBlock')){for(const _0x4549c7 of['indentBlock','outdentBlock'])_0x5ea370['enableDefaultAttributesIntegration'](_0x4549c7);}const _0x111f30=_0x24b4b1['locale'];_0x5ea370['registerBlockAttribute']('blockIndent'),_0x5ea370['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x111f30,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fe505=this['editor'],_0x4a7372=_0x2fe505['locale'],_0xf68667=_0x2fe505['plugins']['get']('TrackChangesEditing');_0xf68667['descriptionFactory']['registerDescriptionCallback'](_0x18a6c0=>{if('formatBlock'!=_0x18a6c0['type'])return;const {data:_0x17ce74}=_0x18a6c0;if(!_0x17ce74)return;if('indentBlock'!=_0x17ce74['commandName']&&'outdentBlock'!=_0x17ce74['commandName'])return;const _0x5c793b=_0x18a6c0['getItems']()[0x0],_0x3900fe=_0xf68667['descriptionFactory']['getItemLabel'](_0x5c793b);return'indentBlock'==_0x17ce74['commandName']?{'type':'format','content':o(_0x4a7372,'*Indent:*\x20%0',_0x3900fe)}:'outdentBlock'==_0x17ce74['commandName']?{'type':'format','content':o(_0x4a7372,'*Outdent:*\x20%0',_0x3900fe)}:void 0x0;});}}class ct extends _0x3721e7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x3721e7{['afterInit'](){const _0x16bed3=this['editor'];if(!_0x16bed3['plugins']['has']('LinkEditing'))return;const _0x371a4d=_0x16bed3['plugins']['get']('TrackChangesEditing'),_0x3fcb5a=_0x16bed3['commands']['get']('link');_0x371a4d['enableDefaultAttributesIntegration']('link'),_0x371a4d['enableDefaultAttributesIntegration']('unlink'),_0x371a4d['registerInlineAttribute']('linkHref');for(const _0x55c898 of _0x3fcb5a['manualDecorators'])_0x371a4d['registerInlineAttribute'](_0x55c898['id']),_0x371a4d['descriptionFactory']['registerAttributeLabel'](_0x55c898['id'],'link\x20('+_0x55c898['label']['toLowerCase']()+')');_0x371a4d['descriptionFactory']['registerDescriptionCallback'](_0x45102e=>{if('attribute'!=_0x45102e['type'])return;const {data:_0x15a545}=_0x45102e;if(!_0x15a545||'linkHref'!=_0x15a545['key'])return;const _0x5c64c6=_0x15a545['newValue'],_0x2d160d=_0x16bed3['locale'];return{'type':'format','content':null==_0x5c64c6?o(_0x2d160d,'*Remove\x20link*'):o(_0x2d160d,'*Set\x20link:*\x20%0','\x22'+_0x5c64c6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd2a40f=this['editor'],_0x2acfda=_0xd2a40f['locale'];_0xd2a40f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f8914=>{if('formatInline'!=_0x2f8914['type'])return;const {data:_0xfa48dc}=_0x2f8914;if(_0xfa48dc){if('link'==_0xfa48dc['commandName']){const _0x314562=_0xfa48dc['commandParams'][0x0];return{'type':'format','content':o(_0x2acfda,'*Set\x20link:*\x20%0','\x22'+_0x314562+'\x22')};}return'unlink'==_0xfa48dc['commandName']?{'type':'format','content':o(_0x2acfda,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3721e7{['afterInit'](){const _0x263e44=this['editor'],_0x24e1d0=_0x263e44['locale'];if(!_0x263e44['plugins']['has']('LegacyListEditing'))return;const _0x3e89fe=_0x263e44['plugins']['get']('TrackChangesEditing'),_0x274af5=_0x263e44['plugins']['has']('LegacyTodoListEditing');function _0x41c210(_0xff53eb){return()=>{const _0x5d7b8a=_0x263e44['model']['document']['selection'],_0x13d5cb=_0x263e44['commands']['get'](_0xff53eb);if(_0x13d5cb['value'])return void _0x263e44['execute']('paragraph',{});const _0x5c06f5=_0xff53eb['slice'](0x0,-0x4),_0x373fa0=function(_0x56a3a7,_0x5a20c2,_0x402525){let _0x3d2b2d=Array['from'](_0x56a3a7)['filter'](_0x482e88=>function(_0x1385af,_0x44b2a4){return _0x44b2a4['checkChild'](_0x1385af['parent'],'listItem')&&!_0x44b2a4['isObject'](_0x1385af);}(_0x482e88,_0x402525));_0x3d2b2d=_0x3d2b2d['filter'](_0x35ad81=>!_0x35ad81['is']('element','listItem')||_0x35ad81['getAttribute']('listType')!=_0x5a20c2);const _0x32cf95=new Set();for(const _0x5a2504 of _0x3d2b2d)_0x5a2504['is']('element','listItem')?_0x32cf95['add'](Le(_0x5a2504)):_0x32cf95['add'](_0x5a2504);return Array['from'](_0x32cf95);}(_0x5d7b8a['getSelectedBlocks'](),_0x5c06f5,_0x263e44['model']['schema']);_0x263e44['model']['change'](()=>{for(const _0xe3e3ce of _0x373fa0)_0x3e89fe['markBlockFormat'](_0xe3e3ce,{'commandName':_0xff53eb,'commandParams':[{'forceValue':!_0x13d5cb['value']}],'formatGroupId':'blockName'},Ee(_0xe3e3ce));});};}function _0x5326d5(_0x1642b2){return()=>{const _0x5cf62c=function(_0x3e0f55){let _0x4358b2=Array['from'](_0x3e0f55);const _0x11c550=_0x4358b2['findIndex'](_0x2bdf5d=>'listItem'!=_0x2bdf5d['name']);return _0x11c550>-0x1&&(_0x4358b2=_0x4358b2['slice'](0x0,_0x11c550)),_0x4358b2;}(_0x263e44['model']['document']['selection']['getSelectedBlocks']()),_0x1ba269=_0x263e44['model']['createRange'](_0x263e44['model']['createPositionAt'](_0x5cf62c[0x0],'before'),_0x263e44['model']['createPositionAt'](_0x5cf62c[_0x5cf62c['length']-0x1],'end'));_0x263e44['model']['change'](()=>{_0x3e89fe['markBlockFormat'](_0x1ba269,{'commandName':_0x1642b2,'commandParams':[],'formatGroupId':'listIndent'},function(_0xf00718){const _0x49c039=new Set();for(const _0x58ccfc of _0xf00718){let _0x579d7f=_0x58ccfc['nextSibling'];for(;_0x579d7f&&_0x579d7f['getAttribute']('listIndent')>_0x58ccfc['getAttribute']('listIndent');)_0x49c039['add'](_0x579d7f),_0x579d7f=_0x579d7f['nextSibling'];}return Array['from'](_0x49c039);}(_0x5cf62c));});};}_0x3e89fe['enableCommand']('numberedList',_0x41c210('numberedList')),_0x3e89fe['enableCommand']('bulletedList',_0x41c210('bulletedList')),_0x274af5&&_0x3e89fe['enableCommand']('todoList',_0x41c210('todoList')),_0x3e89fe['enableCommand']('indentList',_0x5326d5('indentList')),_0x3e89fe['enableCommand']('outdentList',_0x5326d5('outdentList')),_0x274af5&&_0x3e89fe['enableCommand']('checkTodoList',()=>{const _0x19b89c=_0x263e44['commands']['get']('checkTodoList'),_0xd01a80=Array['from'](_0x19b89c['_selectedElements']);_0xd01a80['filter'](_0x4bea86=>_0x4bea86['getAttribute']('todoListChecked')!=_0x19b89c['value']),_0x263e44['model']['change'](()=>{for(const _0x2aa3ad of _0xd01a80)_0x3e89fe['markBlockFormat'](_0x2aa3ad,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x19b89c['value']}]});});}),_0x3e89fe['descriptionFactory']['registerElementLabel']('listItem',_0x4446cb=>o(_0x24e1d0,'ELEMENT_LIST_ITEM',_0x4446cb)),_0x3e89fe['descriptionFactory']['registerDescriptionCallback'](_0x2e8e0a=>{if('formatBlock'!=_0x2e8e0a['type']&&'formatInline'!=_0x2e8e0a['type'])return;const {data:_0x4faa15}=_0x2e8e0a;if(_0x4faa15){if('numberedList'==_0x4faa15['commandName']||'bulletedList'==_0x4faa15['commandName']||'todoList'==_0x4faa15['commandName'])switch(_0x4faa15['commandName']['replace']('List','')){case'bulleted':return _0x25dfd5(o(_0x24e1d0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25dfd5(o(_0x24e1d0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25dfd5(o(_0x24e1d0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4faa15['commandName'])return{'type':'format','content':o(_0x24e1d0,'*Indent:*\x20%0',o(_0x24e1d0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4faa15['commandName'])return{'type':'format','content':o(_0x24e1d0,'*Outdent:*\x20%0',o(_0x24e1d0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4faa15['commandName'])return _0x4faa15['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x24e1d0,'*Check\x20item*')}:{'type':'format','content':o(_0x24e1d0,'*Uncheck\x20item*')};}function _0x25dfd5(_0x17dd5e){return{'type':'format','content':o(_0x24e1d0,'*Change\x20to:*\x20%0',_0x17dd5e)};}});}}function Le(_0x51220b){const _0x21d2e4=_0x51220b['getAttribute']('listIndent');if(0x0==_0x21d2e4)return _0x51220b;let _0x55c42e=_0x51220b;for(;_0x51220b['previousSibling']&&_0x51220b['previousSibling']['is']('element','listItem');){const _0x4487bb=_0x51220b['previousSibling']['getAttribute']('listIndent');if(_0x4487bb==_0x21d2e4)_0x55c42e=_0x51220b['previousSibling'];else{if(_0x4487bb<_0x21d2e4)break;}_0x51220b=_0x51220b['previousSibling'];}return _0x55c42e;}function Ee(_0x30906c){const _0x1d2cde=[];if(_0x30906c['is']('element','listItem')&&_0x30906c['getAttribute']('listIndent')>0x0){let _0x323dc1=_0x30906c['nextSibling'];for(;_0x323dc1&&'listItem'==_0x323dc1['name']&&_0x323dc1['getAttribute']('listIndent')==_0x30906c['getAttribute']('listIndent');)_0x1d2cde['push'](_0x323dc1),_0x323dc1=_0x323dc1['nextSibling'];}return _0x1d2cde;}class ht extends _0x3721e7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5dfdaa=this['editor']['config']['get']('list.properties'),_0xe17452=this['editor']['plugins']['get']('TrackChangesEditing');_0x5dfdaa['styles']&&_0xe17452['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5dfdaa['reversed']&&_0xe17452['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5dfdaa['startIndex']&&_0xe17452['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xe17452['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x55d27e,_0xd38cd3={}){const _0x1c3f40=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29881b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1c3f40['markMultiRangeBlockFormat'](_0x29881b,{'commandName':'listStyle','commandParams':[{'type':_0xd38cd3['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x324ac3,_0x1a718e={}){const _0x414c0a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51d3c9=this['_getSuggestionBlocks'](_0x1c4785=>_0x1c4785['is']('element','listItem')&&'numbered'===_0x1c4785['getAttribute']('listType'));if(_0x51d3c9['length']<0x1)return;const _0x137a15=_0x51d3c9['map'](_0x27d9cc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27d9cc,'before'),this['editor']['model']['createPositionAt'](_0x27d9cc,0x0)));this['editor']['model']['change'](()=>{_0x414c0a['markMultiRangeBlockFormat'](_0x137a15,{'commandName':'listReversed','commandParams':[{'reversed':_0x1a718e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x31b27c,_0x4794e0={}){const _0x17d710=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c22e7=this['_getSuggestionBlocks'](_0x6c02ad=>_0x6c02ad['is']('element','listItem')&&'numbered'===_0x6c02ad['getAttribute']('listType'));if(_0x2c22e7['length']<0x1)return;const _0x2193cb=_0x2c22e7['map'](_0x22a7f3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x22a7f3,'before'),this['editor']['model']['createPositionAt'](_0x22a7f3,0x0)));this['editor']['model']['change'](()=>{_0x17d710['markMultiRangeBlockFormat'](_0x2193cb,{'commandName':'listStart','commandParams':[{'startIndex':_0x4794e0['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x7aa357){if('formatBlock'!=_0x7aa357['type']&&'formatInline'!=_0x7aa357['type'])return;const _0xd0fdf5=this['editor']['locale'],{data:_0x2853c6}=_0x7aa357;if(!_0x2853c6)return;let _0x91b778,_0x280b8a;switch(_0x2853c6['commandName']){case'listStyle':_0x91b778='*Change\x20to:*\x20%0',_0x280b8a={'type':'format','content':o(_0xd0fdf5,_0x91b778,o(_0xd0fdf5,this['_getTranslationKeyForListStyle'](_0x2853c6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x91b778=_0x2853c6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x280b8a={'type':'format','content':o(_0xd0fdf5,_0x91b778)};break;case'listStart':_0x91b778='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x280b8a={'type':'format','content':o(_0xd0fdf5,_0x91b778,_0x2853c6['commandParams'][0x0]['startIndex'])};}return _0x280b8a;}['_getSuggestionBlocksForListStyle'](){const _0x4f647f=this['editor']['plugins']['get']('LegacyListUtils');let _0x386c5b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x386c5b[0x0]?.['is']('element','listItem')&&_0x386c5b['unshift'](..._0x4f647f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x386c5b[_0x386c5b['length']-0x1]?.['is']('element','listItem')&&_0x386c5b['push'](..._0x4f647f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x386c5b=[...new Set(_0x386c5b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x386c5b=_0x386c5b['filter'](_0x3dbf80=>_0x3dbf80['is']('element','listItem'))),_0x386c5b;}['_getSuggestionBlocks'](_0x5459d9){const _0x367162=this['editor']['plugins']['get']('LegacyListUtils');let _0x2f2394=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5459d9)['map'](_0xbe8e55=>{const _0x48a52=this['editor']['model']['createPositionAt'](_0xbe8e55,0x0);return[..._0x367162['getSiblingNodes'](_0x48a52,'backward'),..._0x367162['getSiblingNodes'](_0x48a52,'forward')];})['flat']();return _0x2f2394=[...new Set(_0x2f2394)],_0x2f2394;}['_getTranslationKeyForListStyle'](_0x5b8aee){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5b8aee)||'default')['toUpperCase']()+'_LIST_'+_0x5b8aee['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x3721e7{['afterInit'](){const _0x15e787=this['editor'];if(!_0x15e787['plugins']['has']('MediaEmbedEditing'))return;const _0x26204b=_0x15e787['plugins']['get']('TrackChangesEditing'),_0x55f458=_0x15e787['locale'];_0x26204b['enableCommand']('mediaEmbed'),_0x26204b['descriptionFactory']['registerElementLabel']('media',_0x4fc701=>o(_0x55f458,'ELEMENT_MEDIA',_0x4fc701)),_0x15e787['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x29d01f,{writer:_0x3ffb89,options:_0x22a1f4})=>{if(_0x22a1f4['showSuggestionHighlights'])return _0x3ffb89['createEmptyElement']('div');},'converterPriority':'high'}),_0x15e787['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3929fb,_0x7093af,_0x8fcbc3)=>{_0x8fcbc3['options']['showSuggestionHighlights']&&_0x3929fb['stop']();},{'priority':'high'});}}class lt extends _0x3721e7{['afterInit'](){const _0xb08876=this['editor'];_0xb08876['plugins']['has']('MentionEditing')&&_0xb08876['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3721e7{['afterInit'](){const _0xb31908=this['editor'];if(!_0xb31908['plugins']['has']('MergeFieldsEditing'))return;const _0x3d18b0=_0xb31908['plugins']['get']('TrackChangesEditing'),_0x3ae0f1=_0xb31908['locale'];_0x3d18b0['enableCommand']('insertMergeField'),_0x3d18b0['enableCommand']('insertMergeFieldBlock'),_0x3d18b0['enableCommand']('insertMergeFieldImage'),_0x3d18b0['descriptionFactory']['registerElementLabel']('mergeField',_0x3accf8=>o(_0x3ae0f1,'ELEMENT_MERGE_FIELD',_0x3accf8)),_0x3d18b0['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3e8d14=>o(_0x3ae0f1,'ELEMENT_MERGE_FIELD',_0x3e8d14)),_0x3d18b0['descriptionFactory']['registerDescriptionCallback'](_0x159e46=>{if('insertion'!=_0x159e46['type']&&'deletion'!=_0x159e46['type'])return;const _0x353f18=_0x159e46['getContainedElement']();if(null==_0x353f18)return;const _0x353550=_0xb31908['plugins']['get']('MergeFieldsEditing');let _0x1b9c22;switch(_0x353550['getMergeFieldType'](_0x353f18)){case null:return;case'image':{const _0x45b330=_0x353550['unwrapAffixes'](_0x353f18['getAttribute']('src'));_0x1b9c22=_0x353550['getLabel'](_0x45b330)||_0x45b330;break;}default:{const _0x56ef3e=_0x353f18['getAttribute']('id');_0x1b9c22=_0x353550['getLabel'](_0x56ef3e)||_0x56ef3e;break;}}return'insertion'==_0x159e46['type']?{'type':'insertion','content':o(_0x3ae0f1,'*Insert:*\x20%0','\x22'+_0x1b9c22+'\x22\x20'+o(_0x3ae0f1,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3ae0f1,'*Remove:*\x20%0','\x22'+_0x1b9c22+'\x22\x20'+o(_0x3ae0f1,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x3721e7{['afterInit'](){const _0x4ccfe4=this['editor'],_0x45893d=_0x4ccfe4['plugins']['get']('TrackChangesEditing');_0x4ccfe4['plugins']['has']('MultiLevelList')&&(_0x45893d['enableDefaultAttributesIntegration']('multiLevelList'),_0x45893d['registerBlockAttribute']('listMarkerStyle'),_0x45893d['descriptionFactory']['registerDescriptionCallback'](_0x43f42e=>this['handleDescriptions'](_0x43f42e)));}['handleDescriptions'](_0xd83fd1){const _0x4c7434=this['editor']['locale'],{data:_0x5cdd91}=_0xd83fd1,_0xb69d4b={'type':'format','content':''};if(_0x5cdd91&&'listMarkerStyle'==_0x5cdd91['key']){if(!_0x5cdd91['oldValue'])return{'type':'format','content':o(_0x4c7434,'*Set\x20format:*\x20%0',o(_0x4c7434,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5cdd91['newValue']+')'};if(!_0x5cdd91['newValue']){let _0x45b7dd=_0xd83fd1['head'];for(;_0x45b7dd;){if(_0x45b7dd['data']&&'listType'==_0x45b7dd['data']['key']&&_0x45b7dd['data']['newValue'])return _0xb69d4b;_0x45b7dd=_0x45b7dd['next'];}return{'type':'format','content':o(_0x4c7434,'*Remove\x20format:*\x20%0',o(_0x4c7434,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5cdd91['oldValue']+')'};}}}}class pt extends _0x3721e7{['afterInit'](){const _0x1d6719=this['editor'];if(!_0x1d6719['plugins']['has']('PageBreakEditing'))return;_0x1d6719['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x43670b=_0x1d6719['plugins']['get']('TrackChangesEditing'),_0xbad65e=_0x1d6719['locale'];_0x43670b['descriptionFactory']['registerElementLabel']('pageBreak',_0x91c638=>o(_0xbad65e,'ELEMENT_PAGE_BREAK',_0x91c638));}}class kt extends _0x3721e7{['afterInit'](){const _0xc1d3a0=this['editor'];if(!_0xc1d3a0['plugins']['has']('Paragraph'))return;const _0x466bd4=_0xc1d3a0['locale'],_0x4f2898=_0xc1d3a0['plugins']['get']('TrackChangesEditing');_0x4f2898['descriptionFactory']['registerElementLabel']('paragraph',_0x245057=>o(_0x466bd4,'ELEMENT_PARAGRAPH',_0x245057)),_0x4f2898['enableDefaultAttributesIntegration']('paragraph'),_0x4f2898['enableCommand']('insertParagraph'),_0xc1d3a0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xc1d3a0),{'priority':'highest'}),_0xc1d3a0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xf9461a,_0x32ca61,_0x2251ee)=>{_0x2251ee['options']['showSuggestionHighlights']&&nr(_0xc1d3a0,{'showActiveMarker':!0x1})(_0xf9461a,_0x32ca61,_0x2251ee);},{'priority':'highest'});const _0x6a2a2b=_0x4f2898['descriptionFactory'];_0x6a2a2b['registerDescriptionCallback'](_0x1d7629=>{if('insertion'!==_0x1d7629['type'])return;const {start:_0x112867,end:_0x3ed71}=_0x1d7629['getFirstRange']();if(!_0x112867['isTouching'](_0x3ed71)||!_0x112867['nodeAfter'])return;const _0x5dc58a=_0xc1d3a0['model']['schema'],_0x51c951=_0x112867['nodeAfter'];return _0x5dc58a['isBlock'](_0x51c951)&&!_0x5dc58a['isLimit'](_0x51c951)&&_0x5dc58a['checkChild'](_0x51c951,'$text')?{'type':'insertion','content':o(_0x466bd4,'*Insert:*\x20%0',_0x6a2a2b['getItemLabel'](_0x51c951,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ae5ee=this['editor'],_0x5efda8=_0x1ae5ee['locale'];_0x1ae5ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33ca60=>{if('formatBlock'!=_0x33ca60['type'])return;const {data:_0x4eb736}=_0x33ca60;return _0x4eb736&&'paragraph'==_0x4eb736['commandName']?{'type':'format','content':o(_0x5efda8,'*Change\x20to:*\x20%0',o(_0x5efda8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x520eac,{showActiveMarker:_0x5b155b=!0x0}={}){return(_0x291964,_0x1b94de,_0x2a75ca)=>{const _0x1e27f6=_0x520eac['plugins']['get']('TrackChangesEditing'),_0x249e85=_0x1b94de['markerRange']['start'],_0x5d095a=_0x1b94de['markerRange']['end'],_0xabafa6=_0x520eac['model']['schema'];if(!_0x249e85['isTouching'](_0x5d095a)||!_0x249e85['nodeAfter'])return;const _0xbe2d6c=_0x249e85['nodeAfter'];if(_0xabafa6['isBlock'](_0xbe2d6c)&&!_0xabafa6['isLimit'](_0xbe2d6c)&&_0xabafa6['checkChild'](_0xbe2d6c,'$text')){if(!_0x2a75ca['consumable']['consume'](_0x1b94de['markerRange'],_0x291964['name']))return;const {id:_0x5969fb,authorId:_0x5ba410}=_0x1e27f6['_splitMarkerName'](_0x1b94de['markerName']),_0x4665c9=_0x2a75ca['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5969fb,'data-author-id':_0x5ba410}),_0x3bd337=_0x2a75ca['mapper']['toViewPosition'](_0x5d095a);_0x5b155b&&_0x1e27f6['activeMarkers']['includes'](_0x1b94de['markerName'])&&_0x2a75ca['writer']['addClass']('ck-suggestion-marker--active',_0x4665c9),_0x2a75ca['writer']['insert'](_0x3bd337,_0x4665c9),_0x2a75ca['mapper']['bindElementToMarker'](_0x4665c9,_0x1b94de['markerName']);}};}class wt extends _0x3721e7{['afterInit'](){const _0x57e967=this['editor'];_0x57e967['commands']['get']('replaceSource')&&_0x57e967['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x3721e7{['afterInit'](){const _0x2d1411=this['editor'];if(!_0x2d1411['plugins']['has']('RemoveFormatEditing'))return;_0x2d1411['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e2c4a=this['editor'];_0x4e2c4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x581017=>{if('formatBlock'!=_0x581017['type']&&'formatInline'!=_0x581017['type'])return;const {data:_0x3e8d95}=_0x581017;return _0x3e8d95&&'removeFormat'==_0x3e8d95['commandName']?{'type':'format','content':o(_0x4e2c4a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3721e7{['afterInit'](){const _0x2a0097=this['editor'];if(!_0x2a0097['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x27a3a7=_0x2a0097['plugins']['get']('TrackChangesEditing');_0x27a3a7['enableCommand']('goToPreviousRestrictedEditingException'),_0x27a3a7['enableCommand']('goToNextRestrictedEditingException');const _0x387573=_0x2a0097['plugins']['get']('RestrictedEditingModeEditing');_0x387573['enableCommand']('trackChanges'),_0x387573['enableCommand']('acceptSuggestion'),_0x387573['enableCommand']('discardSuggestion'),_0x387573['enableCommand']('acceptAllSuggestions'),_0x387573['enableCommand']('discardAllSuggestions'),_0x387573['enableCommand']('acceptSelectedSuggestions'),_0x387573['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3721e7{['afterInit'](){const _0x294a94=this['editor'];if(!_0x294a94['plugins']['has']('ShiftEnter'))return;const _0x534638=_0x294a94['plugins']['get']('TrackChangesEditing');_0x534638['enableCommand']('shiftEnter'),_0x294a94['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x294a94),{'priority':'high'}),_0x294a94['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x294a94),{'priority':'high'}),_0x294a94['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x537794,_0x262ef0,_0x34ed42)=>{_0x34ed42['options']['showSuggestionHighlights']&&je(_0x294a94,{'showActiveMarker':!0x1})(_0x537794,_0x262ef0,_0x34ed42);}),_0x534638['descriptionFactory']['registerElementLabel']('softBreak',_0x18da3a=>o(_0x294a94['locale'],'ELEMENT_LINE_BREAK',_0x18da3a));}}function je(_0x2e2808,{showActiveMarker:_0xff8f04=!0x0}={}){return(_0x3bfffd,_0x45fb54,_0x51825b)=>{const _0x2570e8=_0x2e2808['plugins']['get']('TrackChangesEditing');if(!_0x51825b['consumable']['test'](_0x45fb54['markerRange'],_0x3bfffd['name']))return;const _0x23509a=_0x2e2808['model'];for(const _0x4403f9 of _0x45fb54['markerRange']['getItems']()){if(!_0x4403f9['is']('element','softBreak'))continue;const _0x337952='deletion'==_0x45fb54['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x53c41e,authorId:_0x346f36}=_0x2570e8['_splitMarkerName'](_0x45fb54['markerName']),_0x36c00d=_0x51825b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x337952,'data-suggestion':_0x53c41e,'data-author-id':_0x346f36}),_0x41ccb0=_0x51825b['mapper']['toViewPosition'](_0x23509a['createPositionBefore'](_0x4403f9));_0xff8f04&&_0x2570e8['activeMarkers']['includes'](_0x45fb54['markerName'])&&_0x51825b['writer']['addClass']('ck-suggestion-marker--active',_0x36c00d),_0x51825b['writer']['insert'](_0x41ccb0,_0x36c00d),_0x51825b['mapper']['bindElementToMarker'](_0x36c00d,_0x45fb54['markerName']);}};}class St extends _0x3721e7{['afterInit'](){const _0x4fc368=this['editor'],_0x1b7359=_0x4fc368['model'],_0x411ff9=_0x4fc368['locale'];if(!_0x4fc368['plugins']['has']('StandardEditingModeEditing'))return;const _0x1284e1=_0x4fc368['plugins']['get']('TrackChangesEditing'),_0x2e1f25='restrictedEditingException',_0x3460da=_0x4fc368['commands']['get'](_0x2e1f25);_0x1284e1['enableCommand'](_0x2e1f25,(_0x2d6973,_0x36283a={})=>{const _0xa7bcfd=_0x1b7359['document']['selection'];if(_0xa7bcfd['isCollapsed'])return void _0x2d6973(_0x36283a);const _0xfcf73e=void 0x0!==_0x36283a['forceValue']?_0x36283a['forceValue']:!_0x3460da['value'];_0x1b7359['change'](()=>{const _0x279bf9=Array['from'](_0xa7bcfd['getRanges']());for(const _0x51aaf6 of _0x279bf9){const _0x1ca84c=_0xfcf73e?[_0x51aaf6]:io(_0x2e1f25,_0x51aaf6,_0x1b7359);for(const _0x47866e of _0x1ca84c)_0x1284e1['markInlineFormat'](_0x47866e,{'commandName':_0x2e1f25,'commandParams':[{'forceValue':_0xfcf73e}]});}});}),_0x1284e1['descriptionFactory']['registerDescriptionCallback'](_0x3f0ccc=>{if('formatBlock'!=_0x3f0ccc['type']&&'formatInline'!=_0x3f0ccc['type'])return;const {data:_0x4d5a76}=_0x3f0ccc;return _0x4d5a76&&_0x4d5a76['commandName']==_0x2e1f25?_0x4d5a76['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x411ff9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x411ff9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x3721e7{['afterInit'](){const _0x5bb5cf=this['editor'];if(!_0x5bb5cf['plugins']['has']('Style')||!_0x5bb5cf['plugins']['has']('DataSchema'))return;const _0x4d262d=_0x5bb5cf['plugins']['get']('TrackChangesEditing'),_0x871a28=_0x5bb5cf['locale'],_0x5de555=_0x5bb5cf['config']['get']('style')||{},_0x5c6442=_0x5bb5cf['plugins']['get']('GeneralHtmlSupport'),_0xff5b03=_0x5bb5cf['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5bb5cf['plugins']['get']('DataSchema'),_0x5de555['definitions']);_0x4d262d['enableDefaultAttributesIntegration']('style');const _0x34af82=new Set();for(const _0x1bb437 of _0xff5b03['block']){const _0x1b3381=_0x5c6442['getGhsAttributeNameForElement'](_0x1bb437['element']);_0x34af82['add'](_0x1b3381);}const _0x31d6e9=new Set();for(const _0x25718f of _0xff5b03['inline']){const _0x1868ed=_0x5c6442['getGhsAttributeNameForElement'](_0x25718f['element']);_0x31d6e9['add'](_0x1868ed);for(const _0x343d08 of _0x25718f['ghsAttributes'])_0x31d6e9['add'](_0x343d08);}for(const _0x3d0566 of _0x34af82)_0x4d262d['registerBlockAttribute'](_0x3d0566),_0x4d262d['descriptionFactory']['registerAttributeLabel'](_0x3d0566,o(_0x871a28,'FORMAT_STYLE'));for(const _0x529e3 of _0x31d6e9)_0x4d262d['registerInlineAttribute'](_0x529e3),_0x4d262d['descriptionFactory']['registerAttributeLabel'](_0x529e3,o(_0x871a28,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34aab0=this['editor'],_0x46cb45=_0x34aab0['locale'];_0x34aab0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe92204=>{if('formatBlock'!=_0xe92204['type']&&'formatInline'!=_0xe92204['type'])return;const {data:_0x32168e}=_0xe92204;return _0x32168e&&'style'===_0x32168e['commandName']?_0x32168e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x46cb45,'*Set\x20format:*\x20%0',_0x32168e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x46cb45,'*Remove\x20format:*\x20%0',_0x32168e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x3721e7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1d3085){super(_0x1d3085),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4244cc=this['editor'],_0x34286c=_0x4244cc['model']['document']['selection'];if(!_0x4244cc['plugins']['has']('TableEditing'))return;const _0x2da5f9=_0x4244cc['locale'],_0x2a1836=_0x4244cc['plugins']['get']('TrackChangesEditing'),_0x27cc22=_0x4244cc['plugins']['get']('TableUtils');_0x2a1836['descriptionFactory']['registerElementLabel']('table',_0x1e03f6=>o(_0x2da5f9,'ELEMENT_TABLE',_0x1e03f6)),this['_setupColumnsRowsFixing'](),_0x2a1836['enableCommand']('insertTable'),_0x2a1836['enableCommand']('selectTableRow'),_0x2a1836['enableCommand']('selectTableColumn');for(const _0x1bd85a of['insertTableRowAbove','insertTableRowBelow']){const _0x2abf6d=_0x4244cc['commands']['get'](_0x1bd85a);_0x2a1836['enableCommand'](_0x1bd85a,_0x23c5c8=>{_0x4244cc['model']['change'](_0x435b9b=>{_0x23c5c8();const _0xd9f7ce='above'===_0x2abf6d['order'],_0x127c1e=_0x27cc22['getSelectionAffectedTableCells'](_0x34286c),_0x156a62=_0x27cc22['getRowIndexes'](_0x127c1e),_0x9b09d8=_0xd9f7ce?_0x156a62['first']-0x1:_0x156a62['last']+0x1,_0x4122d0=_0x127c1e[0x0]['findAncestor']('table'),_0x5113b3=_0x27cc22['createTableWalker'](_0x4122d0,{'startRow':_0x9b09d8,'endRow':_0x9b09d8}),_0x182600=Array['from'](_0x5113b3)['map'](_0x5ec8bd=>_0x435b9b['createRangeOn'](_0x5ec8bd['cell']));_0x2a1836['markMultiRangeInsertion'](_0x182600,'tableRow');});});}for(const _0x19d8df of['insertTableColumnLeft','insertTableColumnRight']){const _0x3c5f25=_0x4244cc['commands']['get'](_0x19d8df);_0x2a1836['enableCommand'](_0x19d8df,_0x322cfe=>{_0x4244cc['model']['change'](_0x26ada6=>{_0x322cfe();const _0x191282='left'===_0x3c5f25['order'],_0x297c39=_0x27cc22['getSelectionAffectedTableCells'](_0x34286c),_0x1aa7c7=_0x27cc22['getColumnIndexes'](_0x297c39),_0xe3d4ab=_0x191282?_0x1aa7c7['first']-0x1:_0x1aa7c7['last']+0x1,_0x4adf1e=_0x297c39[0x0]['findAncestor']('table'),_0x1463cd=_0x27cc22['createTableWalker'](_0x4adf1e,{'startRow':0x0,'column':_0xe3d4ab,'includeAllSlots':!0x1}),_0x57f6a1=Array['from'](_0x1463cd)['map'](_0x1575a5=>_0x26ada6['createRangeOn'](_0x1575a5['cell']));_0x2a1836['markMultiRangeInsertion'](_0x57f6a1,'tableColumn');});});}for(const _0x1b84e of['removeTableRow','removeTableColumn']){const _0x580349=_0x1b84e['substr'](0xb),_0x3a8b7e=_0x580349['toLowerCase'](),_0x2ebda8=_0x3a8b7e['substr'](0x0,0x3)+'span',_0x3cb24c='table'+_0x580349,_0x4fcf8f='min'+_0x580349,_0x3b085d='max'+_0x580349;_0x2a1836['enableCommand'](_0x1b84e,()=>{_0x4244cc['model']['change'](_0x4adb1d=>{const _0x56bba9=_0x27cc22['getSelectionAffectedTableCells'](_0x34286c),_0x11b321=_0x56bba9[0x0]['findAncestor']('table');let _0x5200e4;if('removeTableRow'==_0x1b84e){const _0x56b2e4=_0x27cc22['getRowIndexes'](_0x56bba9);_0x5200e4={'startRow':_0x56b2e4['first'],'endRow':_0x56b2e4['last'],'includeAllSlots':!0x0};}else{const _0x3666c8=_0x27cc22['getColumnIndexes'](_0x56bba9);_0x5200e4={'startColumn':_0x3666c8['first'],'endColumn':_0x3666c8['last'],'includeAllSlots':!0x0};}const _0x1ece0b=_0x27cc22['createTableWalker'](_0x11b321,_0x5200e4),_0xb3ad6d=Array['from'](_0x1ece0b)['map'](({cell:_0x3dd798})=>_0x3dd798),_0x31581d=Ne(_0xb3ad6d['filter'](_0x338957=>_0x338957['hasAttribute'](_0x2ebda8))),_0xf499eb=Ne(_0xb3ad6d['filter'](_0x568536=>!_0x568536['hasAttribute'](_0x2ebda8)))['map'](_0x53c4f4=>_0x4adb1d['createRangeOn'](_0x53c4f4)),_0x264ec7=_0x2a1836['markMultiRangeDeletion'](_0xf499eb,_0x3cb24c);if(_0x264ec7&&('tableRow'==_0x264ec7['subType']||'tableColumn'==_0x264ec7['subType'])){const _0x3c3b9c=this['_getSuggestionCoords'](_0x264ec7);for(const _0x52a3af of _0x31581d){const _0x4af2fe=_0x4adb1d['createRangeOn'](_0x52a3af),_0x2cdfc6=_0x27cc22['getCellLocation'](_0x52a3af),_0x524e16=_0x52a3af['getAttribute'](_0x2ebda8)-0x1,_0xc314dc=_0x3c3b9c[_0x4fcf8f],_0x547b5c=_0x3c3b9c[_0x3b085d];_0xc314dc<=_0x2cdfc6[_0x3a8b7e]&&_0x2cdfc6[_0x3a8b7e]+_0x524e16<=_0x547b5c&&_0x264ec7['addRange'](_0x4af2fe);}}});});}function _0x209b94(_0x314e72){const _0x3f0751=Array['from'](_0x34286c['getRanges']())['map'](_0x3824c2=>_0x360b1f['fromRange'](_0x3824c2));_0x4244cc['model']['change'](_0x210574=>{const _0x4358fb=_0x210574['batch'];_0x314e72=_0x314e72['filter'](_0x43868e=>'$graveyard'!=_0x43868e['root']['rootName']),_0x210574['setSelection'](_0x314e72),_0x4244cc['commands']['get']('removeTableRow')['refresh'](),_0x4244cc['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4244cc['model']['enqueueChange'](()=>{_0x4244cc['model']['enqueueChange'](_0x4358fb,_0x13d6a8=>{const _0x56f429=_0x3f0751['filter'](_0x50bc3f=>'$graveyard'!=_0x50bc3f['root']['rootName']);_0x56f429['length']>0x0&&_0x13d6a8['setSelection'](_0x56f429);for(const _0x10d3fb of _0x3f0751)_0x10d3fb['detach']();});});});}function _0x55e0b4(_0x3e8aa3){_0x4244cc['model']['change'](_0x425895=>{const _0x576cfa=Array['from'](_0x34286c['getRanges']())['map'](_0x33361d=>_0x360b1f['fromRange'](_0x33361d)),_0x20f8d3=[];for(const _0x2de20e of _0x3e8aa3)for(const _0x26eaca of _0x2de20e['getItems']({'shallow':!0x0}))_0x20f8d3['push'](_0x26eaca);for(const _0x11725b of _0x20f8d3)'$graveyard'!=_0x11725b['root']['rootName']&&(_0x425895['setSelection'](_0x425895['createPositionAt'](_0x11725b,0x0)),_0x4244cc['commands']['get']('removeTableColumn')['refresh'](),_0x4244cc['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x51b240=_0x576cfa['filter'](_0x1e02c0=>'$graveyard'!=_0x1e02c0['root']['rootName']);_0x51b240['length']>0x0&&_0x425895['setSelection'](_0x51b240);for(const _0x12dd49 of _0x576cfa)_0x12dd49['detach']();});}function _0x55ceb6(_0x2c80c8,_0x567bac){return _0x567bac['every'](_0x947e26=>_0x2c80c8['some'](_0x1e3433=>_0x1e3433['end']['isEqual'](_0x947e26['start'])||_0x947e26['end']['isEqual'](_0x1e3433['start'])));}function _0x386c8d(_0x3885cb,_0x424c03){return!_0x3885cb['some'](_0x14874e=>_0x424c03['some'](_0x50d517=>_0x14874e['isIntersecting'](_0x50d517)))&&_0x3885cb['some'](_0x2cead5=>_0x424c03['some'](_0xe33b31=>_0x2cead5['end']['isTouching'](_0xe33b31['start'])));}_0x4244cc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x207ac4,_0x42cec4,_0x2b5bdb)=>{if(!_0x2b5bdb['options']['showSuggestionHighlights'])return;const _0x5f4e7f=_0x42cec4['item'];if(!_0x5f4e7f||!_0x5f4e7f['is']('element','tableCell'))return;const _0x475f48=_0x2b5bdb['mapper']['toViewElement'](_0x5f4e7f);if(_0x475f48){const {id:_0x1056c9,authorId:_0x57735f}=_0x2a1836['_splitMarkerName'](_0x42cec4['markerName']);_0x5ab3e8(_0x475f48,_0x2b5bdb['writer'],(_0x3997b2,_0x4aab98,_0x1e09d6)=>{_0x1e09d6['addClass'](_0x281280(_0x4aab98['classes']),_0x3997b2),_0x1e09d6['setAttribute']('data-suggestion-id',_0x1056c9,_0x3997b2),_0x1e09d6['setAttribute']('data-author-id',_0x57735f,_0x3997b2);},(_0x32a21b,_0x1e0e70,_0x1ab0eb)=>{_0x1ab0eb['removeClass'](_0x281280(_0x1e0e70['classes']),_0x32a21b),_0x1ab0eb['removeAttribute']('data-suggestion-id',_0x32a21b),_0x1ab0eb['removeAttribute']('data-author-id',_0x32a21b);});}},{'priority':'highest'}),_0x2a1836['descriptionFactory']['registerDescriptionCallback'](_0x5bbcce=>{if('insertion'!=_0x5bbcce['type']&&'deletion'!=_0x5bbcce['type'])return;const _0x542500=_0x5bbcce['getContainedElement']();if(null!=_0x542500&&_0x542500['is']('element','table')){if('insertion'==_0x5bbcce['type']){const _0x129f24=_0x5bbcce['getItems']()['filter'](_0x245cf1=>_0x245cf1['is']('$textProxy'))['map'](_0x139589=>_0x139589['data']);if(_0x129f24['length'])return{'type':'insertion','content':o(_0x2da5f9,'*Insert:*\x20%0',o(_0x2da5f9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x129f24['join']('\x20')+'\x22'))};}if('deletion'==_0x5bbcce['type']){const _0x33449b=_0x5bbcce['getItems']()['filter'](_0x1cc8b9=>_0x1cc8b9['is']('$textProxy'))['map'](_0x10525c=>_0x10525c['data']);if(_0x33449b['length'])return{'type':'deletion','content':o(_0x2da5f9,'*Remove:*\x20%0',o(_0x2da5f9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x33449b['join']('\x20')+'\x22'))};}}}),_0x2a1836['descriptionFactory']['registerDescriptionCallback'](_0x1064d0=>{if('tableRow'==_0x1064d0['subType']){const _0x406ff9=_0x1064d0['getItems']()['filter'](_0x23aeb4=>_0x23aeb4['is']('$textProxy'))['map'](_0x1e85af=>_0x1e85af['data']),_0xbea59a=this['_getSuggestionCoords'](_0x1064d0),_0x1b8efe=_0xbea59a['maxRow']-_0xbea59a['minRow']+0x1;if('insertion'==_0x1064d0['type'])return _0x406ff9['length']?{'type':'insertion','content':o(_0x2da5f9,'*Insert:*\x20%0',o(_0x2da5f9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1b8efe,'\x22'+_0x406ff9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2da5f9,'*Insert:*\x20%0',o(_0x2da5f9,'ELEMENT_TABLE_ROW',_0x1b8efe))};if('deletion'==_0x1064d0['type'])return _0x406ff9['length']?{'type':'deletion','content':o(_0x2da5f9,'*Remove:*\x20%0',o(_0x2da5f9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1b8efe,'\x22'+_0x406ff9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2da5f9,'*Remove:*\x20%0',o(_0x2da5f9,'ELEMENT_TABLE_ROW',_0x1b8efe))};}if('tableColumn'==_0x1064d0['subType']){const _0x4841bf=_0x1064d0['getItems']()['filter'](_0xd5b4fa=>_0xd5b4fa['is']('$textProxy'))['map'](_0x26f520=>_0x26f520['data']),_0x5af435=this['_getSuggestionCoords'](_0x1064d0),_0x411026=_0x5af435['maxColumn']-_0x5af435['minColumn']+0x1;if('insertion'==_0x1064d0['type'])return _0x4841bf['length']?{'type':'insertion','content':o(_0x2da5f9,'*Insert:*\x20%0',o(_0x2da5f9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x411026,'\x22'+_0x4841bf['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2da5f9,'*Insert:*\x20%0',o(_0x2da5f9,'ELEMENT_TABLE_COLUMN',_0x411026))};if('deletion'==_0x1064d0['type'])return _0x4841bf['length']?{'type':'deletion','content':o(_0x2da5f9,'*Remove:*\x20%0',o(_0x2da5f9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x411026,'\x22'+_0x4841bf['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2da5f9,'*Remove:*\x20%0',o(_0x2da5f9,'ELEMENT_TABLE_COLUMN',_0x411026))};}}),_0x2a1836['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x209b94),_0x2a1836['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x209b94),_0x2a1836['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x55e0b4),_0x2a1836['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x55e0b4),_0x2a1836['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x55ceb6),_0x2a1836['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x55ceb6),_0x2a1836['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x386c8d),_0x2a1836['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x386c8d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x19c4f4=this['editor'],_0x327f5c=_0x19c4f4['model']['document']['selection'];return(_0x49e6ce,_0x45cf09)=>{_0x19c4f4['model']['change'](_0x4b2887=>{const {commandName:_0x39f1cf,commandParams:_0x10a33b}=_0x45cf09;let _0x590c49=_0x49e6ce[0x0]['end']['nodeBefore'];_0x10a33b&&_0x10a33b[0x0]&&!0x1===_0x10a33b[0x0]['forceValue']&&(_0x590c49=_0x49e6ce[0x0]['start']['nodeAfter']);const _0x4da012=_0x4b2887['createRangeIn'](_0x590c49);if('$graveyard'==_0x4da012['root']['rootName'])return;const _0x378d2c=Array['from'](_0x327f5c['getRanges']())['map'](_0x344d23=>_0x360b1f['fromRange'](_0x344d23));_0x4b2887['setSelection'](_0x4da012),_0x19c4f4['commands']['get'](_0x39f1cf)['refresh'](),_0x10a33b['push']({'forceDefaultExecution':!0x0}),_0x19c4f4['execute'](_0x39f1cf,..._0x10a33b);const _0x59abaf=_0x378d2c['filter'](_0x1911a2=>'$graveyard'!=_0x1911a2['root']['rootName']);_0x59abaf['length']>0x0&&_0x4b2887['setSelection'](_0x59abaf);for(const _0x32f369 of _0x378d2c)_0x32f369['detach']();});};}['_getCoordsForCells'](_0x5182fe){const _0xca664c=this['editor']['plugins']['get']('TableUtils');let _0x5d6850=Number['MAX_SAFE_INTEGER'],_0x27cc74=Number['MIN_SAFE_INTEGER'],_0x1f72b8=Number['MAX_SAFE_INTEGER'],_0x1d3620=Number['MIN_SAFE_INTEGER'];for(const _0x90a1f6 of _0x5182fe){if('$graveyard'==_0x90a1f6['root']['rootName'])continue;const {row:_0x2d6394,column:_0x5c84f0}=_0xca664c['getCellLocation'](_0x90a1f6),_0x2bbcc7=_0x90a1f6['hasAttribute']('rowspan')?_0x90a1f6['getAttribute']('rowspan')-0x1:0x0,_0x5af1af=_0x90a1f6['hasAttribute']('colspan')?_0x90a1f6['getAttribute']('colspan')-0x1:0x0;_0x5d6850=_0x2d6394<_0x5d6850?_0x2d6394:_0x5d6850,_0x27cc74=_0x2d6394+_0x2bbcc7>_0x27cc74?_0x2d6394+_0x2bbcc7:_0x27cc74,_0x1f72b8=_0x5c84f0<_0x1f72b8?_0x5c84f0:_0x1f72b8,_0x1d3620=_0x5c84f0+_0x5af1af>_0x1d3620?_0x5c84f0+_0x5af1af:_0x1d3620;}return{'minRow':_0x5d6850,'maxRow':_0x27cc74,'minColumn':_0x1f72b8,'maxColumn':_0x1d3620};}['_setupColumnsRowsFixing'](){const _0x6b835c=this['editor'],_0x284877=_0x6b835c['plugins']['get']('TrackChangesEditing'),_0x1ffa50=_0x6b835c['plugins']['get']('TableUtils');_0x6b835c['model']['document']['on']('change:data',()=>{const _0x14c08b=Array['from'](_0x6b835c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb6c4ea,data:_0x33e3a6}of _0x14c08b){const {group:_0x471bda,id:_0x556a1e,subType:_0x26f809}=_0x284877['_splitMarkerName'](_0xb6c4ea);if('suggestion'!=_0x471bda)continue;if(null!=_0x33e3a6['oldRange'])continue;const _0x449df3=_0x284877['getSuggestion'](_0x556a1e);this['_tablePostFixingSubtypes']['includes'](_0x26f809)&&this['_tableSuggestions']['add'](_0x449df3);}},{'priority':'low'});const _0x12e46f=(_0xe290c1,_0x22f394)=>{let _0x118cb1=!0x1;const _0x4f5e2e=_0x22f394['createRangeOn'](_0xe290c1),_0x1f040a=_0xe290c1['findAncestor']('table'),_0x133e82=_0x1ffa50['getCellLocation'](_0xe290c1);for(const _0xb6ea5d of this['_tableSuggestions']){const _0x2dc01d=_0xb6ea5d['subType'],_0x27e4f5=_0x2dc01d['startsWith']('tablePaste'),_0x47c693=_0x2dc01d['substr'](_0x27e4f5?0xa:0x5),_0x5c070e=_0x47c693['toLowerCase'](),_0x365b4b=_0x5c070e['substr'](0x0,0x3)+'span',_0xa97617='min'+_0x47c693,_0xfb5e4c='max'+_0x47c693;if(!_0xb6ea5d['isInContent'])continue;if(_0x1f040a!=_0xb6ea5d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xb6ea5d['isIntersectingWithRange'](_0x4f5e2e))continue;const _0x5bd380=_0xe290c1['hasAttribute'](_0x365b4b)?_0xe290c1['getAttribute'](_0x365b4b)-0x1:0x0,_0x3e2932=this['_getSuggestionCoords'](_0xb6ea5d),_0x38f144=_0x3e2932[_0xa97617],_0x4aebe4=_0x3e2932[_0xfb5e4c];_0x38f144<=_0x133e82[_0x5c070e]&&_0x133e82[_0x5c070e]+_0x5bd380<=_0x4aebe4&&(_0xb6ea5d['addRange'](_0x4f5e2e),_0x118cb1=!0x0);}return _0x118cb1;};_0x6b835c['model']['document']['registerPostFixer'](_0x1be8a1=>{let _0x5ec77a=!0x1;for(const _0x1b2fda of _0x6b835c['model']['document']['differ']['getChanges']())if('insert'==_0x1b2fda['type']){if('tableRow'==_0x1b2fda['name']){for(const _0x1e1b08 of _0x1b2fda['position']['nodeAfter']['getChildren']())_0x5ec77a=_0x5ec77a||_0x12e46f(_0x1e1b08,_0x1be8a1);}else'tableCell'==_0x1b2fda['name']&&(_0x5ec77a=_0x5ec77a||_0x12e46f(_0x1b2fda['position']['nodeAfter'],_0x1be8a1));}return _0x5ec77a;});}['_getSuggestionCoords'](_0x14f3d5){return this['_getCoordsForCells'](_0x14f3d5['getRanges']()['map'](_0x1320ac=>_0x1320ac['start']['nodeAfter']));}}function Ne(_0x261a1a){return Array['from'](new Set(_0x261a1a)['values']());}class _t extends _0x3721e7{static get['requires'](){return[At];}['afterInit'](){const _0x37d71e=this['editor'],_0x6e2c20=_0x37d71e['model']['document']['selection'],_0x3d3351=_0x37d71e['locale'];if(!_0x37d71e['plugins']['has']('TableEditing'))return;const _0x3ef30e=_0x37d71e['plugins']['get']('TrackChangesEditing'),_0x26d1a3=_0x37d71e['plugins']['get']('TableUtils'),_0x51f627=_0x37d71e['plugins']['get'](At);_0x51f627['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3ef30e['enableCommand']('mergeTableCells',()=>{const _0x380bc5=_0x26d1a3['getSelectionAffectedTableCells'](_0x37d71e['model']['document']['selection']);_0x37d71e['model']['change'](()=>{_0x3ef30e['markMultiRangeBlockFormat'](_0x380bc5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x37d71e['commands']['get']('mergeTableCells')['on']('execute',(_0x301d21,_0x2a45a2)=>{_0x37d71e['commands']['get']('trackChanges')['value']&&(_0x2a45a2['length']>0x0&&_0x2a45a2[_0x2a45a2['length']-0x1]&&_0x2a45a2[_0x2a45a2['length']-0x1]['forceDefaultExecution']||_0x3ef30e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x301d21['stop']());},{'priority':'highest'});for(const _0x17fd4c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x30e8bd=_0x37d71e['commands']['get'](_0x17fd4c);_0x3ef30e['enableCommand'](_0x17fd4c,()=>{const _0x2bfa66=_0x37d71e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x22b8e7=>_0x22b8e7['is']('element','tableCell')),_0x7917bd=_0x30e8bd['value'];_0x37d71e['model']['change'](()=>{_0x3ef30e['markMultiRangeBlockFormat']([_0x2bfa66,_0x7917bd],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x11a402 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x225976=_0x37d71e['commands']['get'](_0x11a402);_0x3ef30e['enableCommand'](_0x11a402,()=>{const _0x33c12e=_0x26d1a3['getSelectionAffectedTableCells'](_0x37d71e['model']['document']['selection'])[0x0],_0x17bb1f=_0x33c12e['findAncestor']('table'),{column:_0x124c2d,row:_0x1b676b}=_0x26d1a3['getCellLocation'](_0x33c12e);let _0x4db792=[];if('horizontally'==_0x225976['direction']){const _0x46ed3f=_0x26d1a3['createTableWalker'](_0x17bb1f,{'startRow':_0x1b676b,'endRow':_0x1b676b,'includeAllSlots':!0x0});_0x4db792=Array['from'](_0x46ed3f)['map'](_0x209262=>_0x209262['cell']);}else{const _0x4e3de3=_0x26d1a3['createTableWalker'](_0x17bb1f,{'column':_0x124c2d,'includeAllSlots':!0x0});_0x4db792=Array['from'](_0x4e3de3)['map'](_0x168805=>_0x168805['cell']);}_0x37d71e['model']['change'](_0x552763=>{_0x3ef30e['markBlockFormat'](_0x552763['createRangeOn'](_0x33c12e),{'commandName':_0x11a402,'commandParams':[]},_0x4db792,_0x11a402);});});}_0x3ef30e['descriptionFactory']['registerDescriptionCallback'](_0x15debb=>{if('formatBlock'!=_0x15debb['type']&&'formatInline'!=_0x15debb['type'])return;const {data:_0x124981}=_0x15debb;return _0x124981&&'mergeTableCells'==_0x124981['commandName']?{'type':'format','content':o(_0x3d3351,'*Merge\x20cells*')}:void 0x0;}),_0x3ef30e['descriptionFactory']['registerDescriptionCallback'](_0x40bc0f=>{if('formatBlock'!=_0x40bc0f['type']&&'formatInline'!=_0x40bc0f['type'])return;const {data:_0x4d80bb}=_0x40bc0f;return _0x4d80bb?'splitTableCellVertically'==_0x4d80bb['commandName']?{'type':'format','content':o(_0x3d3351,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4d80bb['commandName']?{'type':'format','content':o(_0x3d3351,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3c4efc=_0x51f627['_acceptFormatSuggestionCallbackFactory']();for(const _0x199ac2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3ef30e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x199ac2,'accept',_0x3c4efc);for(const _0x1e83c6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3ef30e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e83c6,'accept',_0x3c4efc);_0x3ef30e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x35f1d4=>{_0x37d71e['model']['change'](_0x536b70=>{const _0x490b8b=Array['from'](_0x6e2c20['getRanges']())['map'](_0xc743bf=>_0x360b1f['fromRange'](_0xc743bf));_0x536b70['setSelection'](_0x35f1d4),_0x37d71e['commands']['get']('mergeTableCells')['refresh'](),_0x37d71e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5f00b9=_0x490b8b['filter'](_0x7f7fb0=>'$graveyard'!=_0x7f7fb0['root']['rootName']);_0x5f00b9['length']>0x0&&_0x536b70['setSelection'](_0x5f00b9);for(const _0x36018e of _0x490b8b)_0x36018e['detach']();});});for(const _0x4cb5b5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4f249e=_0x37d71e['commands']['get'](_0x4cb5b5);_0x4f249e['on']('set:isEnabled',(_0x2f5698,_0x26106c,_0x57b427)=>{if(_0x57b427){const _0x5d150e=_0x37d71e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x37dda2=>_0x37dda2['is']('element','tableCell'));this['_areMergableCells'](_0x4f249e['value'],_0x5d150e)||(_0x2f5698['return']=!0x1,_0x2f5698['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x10f6e3=this['editor']['commands']['get']('mergeTableCells'),_0x29cde3=this['editor']['plugins']['get']('TableUtils');if(!_0x10f6e3['isEnabled'])return!0x1;const _0x13d710=_0x29cde3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x49499d of _0x13d710)for(const _0x213647 of _0x13d710)if(_0x49499d!=_0x213647&&!this['_areMergableCells'](_0x49499d,_0x213647))return!0x1;return!0x0;}['_areMergableCells'](_0x29dddb,_0x56e1b3){const _0x140502=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30acf5=this['editor']['model']['createRangeOn'](_0x29dddb),_0x5e23c7=this['editor']['model']['createRangeOn'](_0x56e1b3),_0x24e85b=new Set(),_0x36da78=new Set();for(const _0x18ba9b of _0x140502['getSuggestions']())if(('insertion'==_0x18ba9b['type']||'deletion'==_0x18ba9b['type']||'mergeTableCells'==_0x18ba9b['subType'])&&_0x18ba9b['isInContent']){for(const _0x3d197 of _0x18ba9b['getRanges']())_0x3d197['containsRange'](_0x30acf5,!0x0)&&_0x24e85b['add'](_0x18ba9b['type']+':'+_0x18ba9b['author']['id']),_0x3d197['containsRange'](_0x5e23c7,!0x0)&&_0x36da78['add'](_0x18ba9b['type']+':'+_0x18ba9b['author']['id']);}if(_0x24e85b['size']!=_0x36da78['size'])return!0x1;for(const _0x4a63d5 of _0x24e85b)if(!_0x36da78['has'](_0x4a63d5))return!0x1;return!0x0;}}class Ct extends _0x3721e7{static get['requires'](){return[At];}['afterInit'](){const _0x5085ac=this['editor'];if(!_0x5085ac['plugins']['has']('TableEditing'))return;const _0x94f1ea=_0x5085ac['locale'],_0xa7f500=_0x5085ac['plugins']['get']('TrackChangesEditing');_0xa7f500['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xa7f500['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xa7f500['registerBlockAttribute']('headingRows'),_0xa7f500['registerBlockAttribute']('headingColumns'),_0xa7f500['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x94f1ea,'FORMAT_HEADER_ROW')),_0xa7f500['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x94f1ea,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x154d61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53dccd=this['editor']['plugins']['get']('TableUtils'),_0x5885c1=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x4d5171({showActiveMarker:_0x59be10=!0x0,setDataAttribute:_0x1acbd9=!0x0}={}){return(_0x28e913,_0x479e19,_0x267f39)=>{const {type:_0x3af9ce,id:_0x2ff057}=_0x154d61['_splitMarkerName'](_0x479e19['markerName']),_0x4f65eb=_0x154d61['getSuggestion'](_0x2ff057),_0x3a2ecf=_0x4f65eb['data'];if('formatBlock'!=_0x4f65eb['type']||!_0x3a2ecf||'setTableColumnHeader'!=_0x3a2ecf['commandName'])return;if(_0x479e19['item'])return void _0x28e913['stop']();if(!_0x267f39['consumable']['consume'](_0x479e19['markerRange'],_0x28e913['name']))return;const _0x35b9b6=_0x479e19['markerRange']['start']['nodeAfter'],_0x118531=_0x479e19['markerRange']['end']['nodeBefore'],_0x529c40=_0x35b9b6['parent']['parent'],{column:_0x465cdb}=_0x53dccd['getCellLocation'](_0x35b9b6),{column:_0x26fb70}=_0x53dccd['getCellLocation'](_0x118531);for(let _0x290ffd=_0x465cdb;_0x290ffd<=_0x26fb70;_0x290ffd++){const _0x4d0aa7=_0x53dccd['createTableWalker'](_0x529c40,{'column':_0x290ffd,'includeAllSlots':!0x1});for(const _0x5e9288 of _0x4d0aa7){const _0x3df429=_0x5e9288['cell'],_0x5836ef=_0x267f39['mapper']['toViewElement'](_0x3df429);_0x267f39['writer']['addClass']('ck-suggestion-marker-'+_0x3af9ce,_0x5836ef),_0x1acbd9&&_0x267f39['writer']['setAttribute']('data-suggestion',_0x2ff057,_0x5836ef),_0x267f39['mapper']['bindElementToMarker'](_0x5836ef,_0x479e19['markerName']),_0x59be10&&(_0x154d61['activeMarkers']['includes'](_0x479e19['markerName'])?_0x267f39['writer']['addClass']('ck-suggestion-marker--active',_0x5836ef):_0x267f39['writer']['removeClass']('ck-suggestion-marker--active',_0x5836ef));}}};}_0x154d61['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5885c1),_0x154d61['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5885c1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4d5171(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x427159,_0x44629c,_0xa82934)=>{_0xa82934['options']['showSuggestionHighlights']&&_0x4d5171({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x427159,_0x44629c,_0xa82934);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3c16ba,_0x15f46e,_0x1b5257)=>{const {type:_0x4a5a94,id:_0x20148b}=_0x154d61['_splitMarkerName'](_0x15f46e['markerName']),_0x306c63=_0x154d61['getSuggestion'](_0x20148b),_0x48e1d9=_0x306c63['data'];if('formatBlock'!=_0x306c63['type']||!_0x48e1d9||'setTableColumnHeader'!=_0x48e1d9['commandName'])return;const _0x4e86ed=_0x1b5257['mapper']['markerNameToElements'](_0x15f46e['markerName']);if(_0x4e86ed){for(const _0x1b5a56 of _0x4e86ed)_0x1b5257['writer']['removeClass']('ck-suggestion-marker-'+_0x4a5a94,_0x1b5a56),_0x1b5257['writer']['removeClass']('ck-suggestion-marker--active',_0x1b5a56),_0x1b5257['writer']['removeAttribute']('data-suggestion',_0x1b5a56),_0x1b5257['mapper']['unbindElementFromMarkerName'](_0x1b5a56,_0x15f46e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24d0aa=this['editor'],_0x2dac2f=_0x24d0aa['locale'];function _0x5e02df(_0x25fb0c){return{'type':'format','content':o(_0x2dac2f,'*Format:*\x20%0',_0x25fb0c)};}_0x24d0aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e3620=>{if('formatBlock'!=_0x1e3620['type'])return;const {data:_0x4710e6}=_0x1e3620;if(_0x4710e6){if('setTableRowHeader'==_0x4710e6['commandName']){const _0x5bb5fb=_0x4710e6['commandParams'][0x0]['forceValue'];return _0x5e02df(o(_0x2dac2f,_0x5bb5fb?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4710e6['commandName']){const _0x5eff88=_0x4710e6['commandParams'][0x0]['forceValue'];return _0x5e02df(o(_0x2dac2f,_0x5eff88?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x3721e7{['afterInit'](){const _0x3a3277=this['editor'],_0x22868b=_0x3a3277['locale'],_0x3674f2=_0x3a3277['plugins']['get']('TrackChangesEditing');function _0x5cc6c3(_0x28068e){return{'type':'format','content':''+o(_0x22868b,'*Set\x20table\x20type:*\x20%0',_0x28068e)};}_0x3a3277['plugins']['has']('TableLayout')&&(_0x3674f2['enableCommand']('insertTableLayout'),_0x3674f2['enableDefaultAttributesIntegration']('tableType'),_0x3674f2['registerBlockAttribute']('tableType'),_0x3674f2['descriptionFactory']['registerElementLabel'](_0x4b1504=>_0x4b1504['is']('element','table')&&'layout'===_0x4b1504['getAttribute']('tableType'),_0x1c9e42=>o(_0x22868b,'ELEMENT_LAYOUT_TABLE',_0x1c9e42)),_0x3674f2['descriptionFactory']['registerDescriptionCallback'](_0x545ee9=>{const {data:_0x4b89c9}=_0x545ee9;if(_0x4b89c9&&'tableType'==_0x4b89c9['key'])switch(_0x4b89c9['newValue']){case'layout':return _0x5cc6c3(o(_0x22868b,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5cc6c3(o(_0x22868b,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x493eba=>[_0x493eba,null]));class Nt extends _0x3721e7{static get['requires'](){return[At];}['afterInit'](){const _0x3acc03=this['editor'];if(!_0x3acc03['plugins']['has']('TableClipboard'))return;const _0x2791ef=_0x3acc03['plugins']['get']('TrackChangesEditing'),_0x1036c9=_0x3acc03['plugins']['get']('TableUtils'),_0x11b613=_0x3acc03['plugins']['get'](At),_0x2ad03c=_0x3acc03['plugins']['get']('TableClipboard'),_0x3131d7=_0x3acc03['plugins']['get']('TableSelection'),_0x3c1db0=_0x3acc03['plugins']['get'](_0xb3bd0e);_0x11b613['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3acc03['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3acc03['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4b898e=null,_0x4654a4=!0x1;_0x3c1db0['on']('contentInsertion',(_0x5c4e24,_0x5b9601)=>{_0x4654a4='paste'===_0x5b9601['method'];}),_0x3acc03['model']['on']('insertContent',(_0x4c7cf4,_0x4b4df9)=>{if(!_0x4654a4&&null===_0x3131d7['getSelectedTableCells']())return;const [_0x510345,_0x2568ca]=_0x4b4df9,_0xdcb875=_0x4b4df9[_0x4b4df9['length']-0x1];_0xdcb875&&_0xdcb875['forceDefaultExecution']||_0x2791ef['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x28b9e1,_0x31bd58,_0x40ccc6,_0x46c1d0,_0x10983e){if(_0x31bd58&&!_0x31bd58['is']('documentSelection'))return!0x1;const _0x4bb91e=_0x10983e['getTableIfOnlyTableInContent'](_0x28b9e1,_0x40ccc6);if(!_0x4bb91e||!Ue(_0x4bb91e,void 0x0,_0x46c1d0))return!0x1;const _0x578866=_0x46c1d0['getSelectionAffectedTableCells'](_0x40ccc6['document']['selection']);if(!_0x578866['length'])return!0x1;const _0x2ebdb6=_0x578866[0x0]['findAncestor']('table'),_0x26fd3a=_0x46c1d0['getRowIndexes'](_0x578866),_0x5cde4e=_0x46c1d0['getColumnIndexes'](_0x578866),_0x42ee0a={'startRow':_0x26fd3a['first'],'endRow':_0x26fd3a['last'],'startColumn':_0x5cde4e['first'],'endColumn':_0x5cde4e['last']};return 0x1==_0x578866['length']&&(_0x42ee0a['endRow']+=_0x46c1d0['getRows'](_0x4bb91e)-0x1,_0x42ee0a['endColumn']+=_0x46c1d0['getColumns'](_0x4bb91e)-0x1),Ue(_0x2ebdb6,_0x42ee0a,_0x46c1d0);}(_0x510345,_0x2568ca,_0x3acc03['model'],_0x1036c9,_0x2ad03c)&&(_0x4c7cf4['stop'](),_0x4b898e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3acc03['model']['change'](()=>{_0x3acc03['model']['insertContent'](_0x4b4df9[0x0],_0x4b4df9[0x1],_0x4b4df9[0x2],{'forceDefaultExecution':!0x0});const _0x5b247e=_0x3f8d34(),{rowInsertionRanges:_0x290265,columnInsertionRanges:_0x30762b,insertionRanges:_0x490ff1,deletionRanges:_0x37edc3,cells:_0x439d41}=_0x4b898e;_0x290265['length']&&_0x2791ef['markMultiRangeInsertion'](_0x290265,'tablePasteRow',{'tablePasteChainId':_0x5b247e}),_0x30762b['length']&&_0x2791ef['markMultiRangeInsertion'](_0x30762b,'tablePasteColumn',{'tablePasteChainId':_0x5b247e}),_0x490ff1['length']&&(_0x2791ef['markMultiRangeInsertion'](_0x490ff1,'tablePaste',{'tablePasteChainId':_0x5b247e,'skipNestingCheck':!0x0}),_0x490ff1['forEach'](_0x4a851c=>_0x4a851c['detach']?.())),_0x37edc3['length']&&(_0x2791ef['markMultiRangeDeletion'](_0x37edc3,'tablePaste',{'tablePasteChainId':_0x5b247e,'skipNestingCheck':!0x0}),_0x37edc3['forEach'](_0x196402=>_0x196402['detach']?.()));const _0x144252=_0x2791ef['markMultiRangeBlockFormat'](_0x439d41['map'](({element:_0x15204b})=>_0x15204b),{'formatGroupId':_0x3f8d34()},[],'tablePasteCell',{'tablePasteChainId':_0x5b247e});if(_0x144252){const _0x32b64a=_0x144252['getMarkers'](),_0x2674e2=[];for(const {element:_0x5a3987,attributes:_0x38ab95}of _0x439d41){if(!_0x38ab95)continue;const _0x3cd6be=_0x3acc03['model']['createRangeOn'](_0x5a3987),_0x26b6e7=_0x32b64a['find'](_0x423046=>_0x423046['getRange']()['isEqual'](_0x3cd6be));_0x26b6e7&&_0x2674e2['push']([_0x26b6e7['name'],_0x38ab95]);}_0x2674e2['length']&&_0x144252['setAttribute']('markerAttributes',Object['fromEntries'](_0x2674e2));}_0x4b898e=null;}));},{'priority':_0x413344['high']+0xa}),_0x3c1db0['on']('contentInsertion',()=>{_0x4654a4=!0x1;},{'priority':'lowest'}),_0x3acc03['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3d034e,_0x262ad3)=>{const [_0x436176,_0x17f05b,,_0x11b583]=_0x262ad3;if(!_0x4b898e)return;_0x3d034e['stop']();const _0x2a6a0a=_0x436176['cell'],_0x465241=_0x17f05b,_0x20c508=Oe(_0x2a6a0a),_0x325761=Oe(_0x465241);_0x3d034e['return']=_0x2a6a0a;let _0x30d14e=null,_0x24eec1=null;if(_0x325761||_0x20c508){if(_0x20c508&&!_0x325761){_0x11b583['remove'](_0x2a6a0a['getChild'](0x0));for(const _0x18ffca of Array['from'](_0x465241['getChildren']()))_0x11b583['insert'](_0x18ffca,_0x2a6a0a,'end');const _0x2168c3=_0x4b898e['rowInsertionIndexes']['includes'](_0x436176['row']),_0x49b488=_0x4b898e['columnInsertionIndexes']['includes'](_0x436176['column']);_0x2168c3||_0x49b488||(_0x30d14e=_0x360b1f['fromRange'](_0x11b583['createRangeIn'](_0x2a6a0a)));}else _0x325761&&!_0x20c508&&(_0x24eec1=_0x11b583['createRangeIn'](_0x2a6a0a));}else{const _0x2f730e=_0x11b583['createElement']('tableCellSuggestion'),_0x179c8b=_0x11b583['createElement']('tableCellSuggestion');_0x11b583['wrap'](_0x11b583['createRangeIn'](_0x2a6a0a),_0x179c8b),_0x11b583['insert'](_0x2f730e,_0x2a6a0a,0x0);for(const _0x5236c2 of Array['from'](_0x465241['getChildren']()))_0x11b583['insert'](_0x5236c2,_0x2f730e,'end');_0x30d14e=_0x360b1f['fromRange'](_0x11b583['createRangeOn'](_0x2f730e)),_0x24eec1=_0x360b1f['fromRange'](_0x11b583['createRangeOn'](_0x179c8b));}const _0x2fd246=Array['from'](_0x465241['getAttributes']())['filter'](([_0x5a73a5])=>Be['includes'](_0x5a73a5));_0x4b898e['cells']['push']({'element':_0x2a6a0a,'attributes':_0x2fd246['length']?Object['fromEntries'](_0x2fd246):null}),_0x30d14e&&_0x4b898e['insertionRanges']['push'](_0x30d14e),_0x24eec1&&_0x4b898e['deletionRanges']['push'](_0x24eec1);},{'priority':'high'}),_0x1036c9['on']('insertColumns',(_0x4a545d,_0x2591cd)=>{const [_0x560e00,_0x51e00a={}]=_0x2591cd;if(!_0x4b898e)return;const _0x389a01=_0x51e00a['at']||0x0,_0x476a67=_0x51e00a['columns']||0x1;_0x4b898e['columnInsertionIndexes']=new Array(_0x476a67)['fill'](_0x389a01)['map']((_0x4ddbe8,_0xc4fc15)=>_0x4ddbe8+_0xc4fc15);for(const {cell:_0x5e93a0}of _0x1036c9['createTableWalker'](_0x560e00,{'startColumn':_0x389a01,'endColumn':_0x389a01+_0x476a67-0x1}))_0x4b898e['columnInsertionRanges']['push'](_0x3acc03['model']['createRangeOn'](_0x5e93a0));},{'priority':'low'}),_0x1036c9['on']('insertRows',(_0x14dfc2,_0x16909a)=>{const [_0x57427d,_0x4cc959={}]=_0x16909a;if(!_0x4b898e)return;const _0x565998=_0x4cc959['at']||0x0,_0x3486d8=_0x4cc959['rows']||0x1;_0x4b898e['rowInsertionIndexes']=new Array(_0x3486d8)['fill'](_0x565998)['map']((_0x161b27,_0x1ad7a0)=>_0x161b27+_0x1ad7a0);for(const {cell:_0x1e868a}of _0x1036c9['createTableWalker'](_0x57427d,{'startRow':_0x565998,'endRow':_0x565998+_0x3486d8-0x1}))_0x4b898e['rowInsertionRanges']['push'](_0x3acc03['model']['createRangeOn'](_0x1e868a));},{'priority':'low'}),_0x2791ef['descriptionFactory']['registerDescriptionCallback'](_0x24cf80=>{if(_0x24cf80['subType']&&_0x24cf80['subType']['startsWith']('tablePaste'))return _0x24cf80['previous']?{}:{'type':'insertion','content':o(_0x3acc03['locale'],'*Replace\x20table\x20cells*')};});const _0x1708b0=()=>!0x1;for(const _0x520bdd of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2791ef['_suggestionFactory']['registerCustomCallback']('insertion',_0x520bdd,'join',_0x1708b0),_0x2791ef['_suggestionFactory']['registerCustomCallback']('deletion',_0x520bdd,'join',_0x1708b0),_0x2791ef['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x520bdd,'join',_0x1708b0);_0x2791ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1708b0),_0x2791ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3a03f2,_0x48bd0e,_0x460b8e)=>{const _0x5e43b2=_0x3a03f2['map'](_0x52ff30=>_0x52ff30['getContainedElement']())['filter'](_0x1f5c6d=>_0x1f5c6d),_0x25fe89=new Map(_0x5e43b2['map'](_0x25e58a=>[_0x25e58a,null]));if(_0x4b898e){for(const {element:_0x4f8ea3,attributes:_0x49126a}of _0x4b898e['cells'])_0x49126a&&_0x25fe89['set'](_0x4f8ea3,_0x49126a);}else{if(_0x460b8e&&_0x460b8e['markerAttributes'])for(const [_0x30f717,_0x499b6c]of Object['entries'](_0x460b8e['markerAttributes'])){const _0x6797a0=_0x3acc03['model']['markers']['get'](_0x30f717),_0x4eaec2=_0x6797a0?_0x6797a0['getRange']()['getContainedElement']():null;_0x4eaec2&&_0x25fe89['set'](_0x4eaec2,_0x499b6c);}}_0x3acc03['model']['change'](_0x1cda34=>{for(const [_0x31f72d,_0x3840d0]of _0x25fe89)_0x1cda34['setAttributes']({...xe,..._0x3840d0},_0x31f72d);});});const _0xddb1e4=(_0x1f9902,_0x55aec7)=>{_0x2791ef['_suggestionFactory']['registerCustomCallback'](_0x1f9902,'tablePaste',_0x55aec7,(_0x29c5ba,_0xd56072,_0x554c6d)=>{_0x3acc03['model']['change'](_0x1c129c=>{const _0x222961=[];for(const _0x34c6c0 of _0x29c5ba){const _0x277cc1=_0x34c6c0['start']['nodeAfter'];_0x277cc1['is']('element','tableCellSuggestion')&&_0x222961['push'](_0x277cc1);}_0x2791ef['_suggestionFactory']['getSuggestionCallback'](_0x1f9902,null,_0x55aec7)(_0x29c5ba,_0xd56072,_0x554c6d);for(const _0x4cab2d of _0x222961)'$graveyard'!=_0x4cab2d['root']['rootName']&&_0x1c129c['unwrap'](_0x4cab2d);});});};_0xddb1e4('insertion','accept'),_0xddb1e4('insertion','discard'),_0xddb1e4('deletion','accept'),_0xddb1e4('deletion','discard'),_0x2791ef['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2b389e=>{const _0x52d335=_0x2b389e['map'](_0x2eb8ed=>_0x2eb8ed['getContainedElement']()),_0xaddfb5=_0x52d335[0x0]['findAncestor']('table'),{minRow:_0x5d3994,maxRow:_0x5d8df1}=_0x11b613['_getCoordsForCells'](_0x52d335);_0x1036c9['removeRows'](_0xaddfb5,{'at':_0x5d3994,'rows':_0x5d8df1-_0x5d3994+0x1});}),_0x2791ef['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x15dada=>{const _0x32f401=_0x15dada['map'](_0x2a9e41=>_0x2a9e41['getContainedElement']()),_0x1ec6cf=_0x32f401[0x0]['findAncestor']('table'),{minColumn:_0x3f1f85,maxColumn:_0x42c40f}=_0x11b613['_getCoordsForCells'](_0x32f401);_0x1036c9['removeColumns'](_0x1ec6cf,{'at':_0x3f1f85,'columns':_0x42c40f-_0x3f1f85+0x1});});const _0x4504b5=(_0x249168,_0x4e783d)=>{if(!_0x4e783d['subType']||!_0x4e783d['subType']['startsWith']('tablePaste'))return;const _0x399439=_0x4e783d['attributes']['tablePasteChainId'],_0x3df2c5=_0x2791ef['getSuggestions']()['filter'](_0x3398c7=>_0x3398c7['isInContent']&&_0x3398c7['attributes']&&_0x3398c7['attributes']['tablePasteChainId']==_0x399439);_0x3df2c5['length']&&_0x4e783d['getAllAdjacentSuggestions']()['length']!=_0x3df2c5['length']&&_0x3df2c5['reduce']((_0x4bc7d1,_0x59e157)=>(_0x4bc7d1['next']=_0x59e157,_0x59e157['previous']=_0x4bc7d1,_0x59e157));};function _0x4e6fca(_0xf2f070,_0x5f383f=!0x0){const {id:_0x5a4ef4,authorId:_0x4571d2}=_0x2791ef['_splitMarkerName'](_0xf2f070['markerName']),_0x69b41a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3727b3=_0x2791ef['activeMarkers']['includes'](_0xf2f070['markerName']);return _0x3727b3&&_0x69b41a['push']('ck-suggestion-marker--active'),{'classes':_0x69b41a,'attributes':{'data-suggestion':_0x5a4ef4,'data-author-id':_0x4571d2},'priority':_0x3727b3&&_0x5f383f?0xbc2:0xbb8};}_0x2791ef['on']('suggestionLoaded',_0x4504b5,{'priority':'high'}),_0x2791ef['on']('suggestionUnloaded',_0x4504b5,{'priority':'high'}),_0x3acc03['model']['document']['registerPostFixer'](()=>{let _0x1cdee4=!0x1;const _0x567515=Array['from'](_0x3acc03['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x496f04,data:_0x4c25b1}of _0x567515){const {group:_0xd44b02,type:_0x216a26,id:_0x5ddc00}=_0x2791ef['_splitMarkerName'](_0x496f04);if('suggestion'!=_0xd44b02||'deletion'!=_0x216a26||_0x4c25b1['oldRange'])continue;if(!_0x2791ef['hasSuggestion'](_0x5ddc00))continue;const _0x3ed4cc=_0x2791ef['getSuggestion'](_0x5ddc00)['getRanges'](),_0x580b27=_0x3acc03['plugins']['get']('Users')['me'];for(const _0x54bf34 of _0x2791ef['getSuggestions']()){if(!_0x54bf34['isInContent']||_0x54bf34['author']!=_0x580b27)continue;if('formatBlock'!=_0x54bf34['type']||'tablePasteCell'!=_0x54bf34['subType'])continue;if(_0x54bf34['getRanges']()['every'](_0xc531b3=>_0x3ed4cc['some'](_0x40f72a=>_0x40f72a['containsRange'](_0xc531b3,!0x0)))){for(const _0xec7298 of _0x54bf34['getAllAdjacentSuggestions']())_0xec7298['isInContent']&&(_0xec7298['discard'](),_0x1cdee4=!0x0);}}}return _0x1cdee4;}),_0x3acc03['model']['document']['registerPostFixer'](_0x343bd1=>{const _0x28b2cb=_0x3acc03['commands']['get']('redo');if(!_0x28b2cb||!_0x28b2cb['_createdBatches']['has'](_0x343bd1['batch']))return!0x1;let _0x52b5b5=!0x1;const _0x199a64=_0x3acc03['plugins']['get']('Users')['me'],_0x1b426d=_0x3acc03['model']['document']['differ']['getChanges'](),_0x7bb58=Array['from'](_0x3acc03['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3e8199,data:_0x322eb6})=>{const {group:_0x1b12f9,subType:_0x42060a,authorId:_0x6a68ce}=_0x2791ef['_splitMarkerName'](_0x3e8199);return'suggestion'==_0x1b12f9&&'tablePaste'==_0x42060a&&_0x6a68ce==_0x199a64['id']&&!_0x322eb6['oldRange'];});for(const _0x47bb58 of _0x1b426d){if('insert'!=_0x47bb58['type']||'tableCellSuggestion'!=_0x47bb58['name']||0x1!=_0x47bb58['length'])continue;const _0x4ebe0d=_0x343bd1['createRange'](_0x47bb58['position'],_0x47bb58['position']['getShiftedBy'](0x1));if(!_0x7bb58['find'](({data:_0x476f57})=>_0x476f57['newRange']['isEqual'](_0x4ebe0d))){for(const {name:_0x23d40e,data:_0x324e7a}of _0x7bb58)if(_0x4ebe0d['containsRange'](_0x324e7a['newRange'])){_0x343bd1['updateMarker'](_0x23d40e,{'range':_0x4ebe0d}),_0x52b5b5=!0x0;break;}}}return _0x52b5b5;}),_0x3acc03['model']['document']['registerPostFixer'](_0x1714ff=>{let _0x5084ed=!0x1;const _0x2b6d2e=_0x3acc03['plugins']['get']('Users')['me'],_0x4963c5=_0x2791ef['getSuggestions']()['filter'](_0x89c842=>_0x89c842['isInContent']&&_0x89c842['author']==_0x2b6d2e),_0x3cd56b=new Set(),_0x1b8b83=new Set();for(const _0x52f0b6 of _0x4963c5)if('tablePaste'==_0x52f0b6['subType'])for(const _0x1e4ceb of _0x52f0b6['getMarkers']()){const _0x1bfd13=_0x1e4ceb['getRange']()['getContainedElement']();if(_0x1bfd13){if(_0x1bfd13['is']('element','tableCellSuggestion')&&Oe(_0x1bfd13)){_0x52f0b6['removeMarker'](_0x1e4ceb['name']),_0x3cd56b['add'](_0x1bfd13),_0x5084ed=!0x0;const _0x1ed304=_0x1bfd13['nextSibling'],_0xf69a88=_0x1bfd13['previousSibling'],_0x3ab0cf=_0x1ed304&&_0x1ed304['is']('element','tableCellSuggestion'),_0x58e775=_0xf69a88&&_0xf69a88['is']('element','tableCellSuggestion');_0x3ab0cf&&!_0x3cd56b['has'](_0x1ed304)&&_0x1b8b83['add'](_0x1ed304),_0x58e775&&!_0x3cd56b['has'](_0xf69a88)&&_0x1b8b83['add'](_0xf69a88);}else _0x1bfd13['is']('element','paragraph')&&_0x1bfd13['isEmpty']&&(_0x52f0b6['removeMarker'](_0x1e4ceb['name']),_0x5084ed=!0x0);}}else{if('tablePasteCell'==_0x52f0b6['subType']){if(!_0x52f0b6['attributes']||!_0x52f0b6['attributes']['tablePasteChainId'])continue;const _0x576228=_0x52f0b6['attributes']['markerAttributes'];if(_0x576228&&Object['keys'](_0x576228)['length'])continue;const _0x1666a8=_0x52f0b6['attributes']['tablePasteChainId'];let _0x1e2aa8=!0x0,_0x1d48a7=!0x0;for(const _0x3f21d3 of _0x4963c5)if(_0x3f21d3['subType']&&_0x3f21d3['subType']['startsWith']('tablePaste')){if(!_0x3f21d3['attributes']['tablePasteChainId']){_0x1d48a7=!0x1;break;}if(_0x3f21d3['id']!=_0x52f0b6['id']&&_0x3f21d3['attributes']['tablePasteChainId']==_0x1666a8){_0x1e2aa8=!0x1;break;}}_0x1d48a7&&_0x1e2aa8&&(_0x52f0b6['removeMarkers'](),_0x5084ed=!0x0);}}for(const _0x3a0416 of _0x3cd56b)_0x1714ff['remove'](_0x3a0416);for(const _0x4190b2 of _0x1b8b83)_0x1714ff['unwrap'](_0x4190b2);return _0x5084ed;}),_0x3acc03['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2551dc=>_0x4e6fca(_0x2551dc),'converterPriority':'high'}),_0x3acc03['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xdf5096,_0x5c5753)=>_0x5c5753['options']['showSuggestionHighlights']?_0x4e6fca(_0xdf5096,!0x1):null,'converterPriority':'high'});const _0x2a3ab5=_0x3acc03['editing']['view'];this['listenTo'](_0x2a3ab5['document'],'clipboardOutput',(_0x5cd47e,_0x262c0e)=>{const _0x3e78e8=[];for(const _0x15a96e of _0x2a3ab5['createRangeIn'](_0x262c0e['content'])['getItems']())_0x15a96e['is']('element','suggestion-td')&&_0x3e78e8['push'](_0x15a96e);_0x2a3ab5['change'](_0x73a5ec=>{for(const _0x2dfc1c of _0x3e78e8)_0x73a5ec['move'](_0x73a5ec['createRangeIn'](_0x2dfc1c),_0x73a5ec['createPositionBefore'](_0x2dfc1c)),_0x73a5ec['remove'](_0x2dfc1c);});});}}function Oe(_0x5d76cc){if(_0x5d76cc['isEmpty'])return!0x0;const _0x46adc7=_0x5d76cc['getChild'](0x0);return _0x46adc7['is']('element','paragraph')&&_0x46adc7['isEmpty'];}function Ue(_0x51db68,_0x20c068={},_0x40842c){for(const {isAnchor:_0x1a483,cellHeight:_0x1eb58d,cellWidth:_0x299796}of _0x40842c['createTableWalker'](_0x51db68,{'includeAllSlots':!0x0,..._0x20c068}))if(!_0x1a483||0x1!=_0x1eb58d||0x1!=_0x299796)return!0x1;return!0x0;}class Dt extends _0x3721e7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2e12cc=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e12cc['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2e12cc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2e12cc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e12cc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2e12cc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2e12cc['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x54f106,_0x38b00c){const _0x18595c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16a8e8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x47c644=_0x38b00c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x34d8d0=_0x16a8e8['getColumnGroupElement'](_0x47c644);let _0x1dd7b8=_0x34d8d0?_0x16a8e8['getTableColumnsWidths'](_0x34d8d0):null,_0xcc6d31=_0x47c644['getAttribute']('tableWidth')||null;const _0x5a2e39=_0x38b00c['tableWidth']||_0xcc6d31,_0x54cb4e=_0x38b00c['columnWidths']||_0x1dd7b8,_0x150884=this['editor']['plugins']['get']('Users')['me'];for(const _0xe25e36 of _0x18595c['getSuggestions']()){const _0x4e2045=_0xe25e36['getContainedElement']();if('resizeTable'===_0xe25e36['subType']&&_0x4e2045===_0x47c644){_0xe25e36['author']!==_0x150884&&_0xe25e36['discard']();const _0x34f5a1=_0xe25e36['data']['commandParams'];_0xcc6d31=_0x34f5a1[0x0]['tableWidth'],_0x1dd7b8=_0x34f5a1[0x0]['columnWidths'];break;}}_0x54f106({'table':_0x47c644,'tableWidth':_0x5a2e39,'columnWidths':_0x54cb4e}),_0x18595c['markBlockFormat'](_0x47c644,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xcc6d31,'columnWidths':_0x1dd7b8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2bd97a){if('formatBlock'!=_0x2bd97a['type']&&'formatInline'!=_0x2bd97a['type'])return;const {data:_0x10c849}=_0x2bd97a;if(_0x10c849&&'resizeTable'===_0x10c849['formatGroupId']){const _0xa15ff5='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xa15ff5)};}}}class Mt extends _0x3721e7{['afterInit'](){const _0x50215f=this['editor'];_0x50215f['plugins']['has']('Template')&&_0x50215f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x3721e7{['afterInit'](){const _0x24cb74=this['editor'];if(!_0x24cb74['commands']['get']('insertTableOfContents'))return;_0x24cb74['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x14ca1b=_0x24cb74['plugins']['get']('TrackChangesEditing'),_0x2f5b33=_0x24cb74['locale'];_0x14ca1b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2aaf70=>o(_0x2f5b33,'ELEMENT_TABLE_OF_CONTENTS',_0x2aaf70));}}class Bt extends _0x3721e7{['afterInit'](){const _0x5e7947=this['editor'];if(!_0x5e7947['plugins']['has']('Title'))return;const _0x4c616f=_0x5e7947['plugins']['get']('TrackChangesEditing');_0x4c616f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5e7947['locale'],'ELEMENT_TITLE')),_0x5e7947['model']['document']['registerPostFixer'](_0x28ff97=>{let _0xed0288=!0x1;const _0x174577=Array['from'](_0x5e7947['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b507f,data:_0x577d9a}of _0x174577){const {group:_0x4a5dda}=_0x4c616f['_splitMarkerName'](_0x3b507f);if('suggestion'!==_0x4a5dda||!_0x577d9a['newRange'])continue;const _0x5024ac=_0x577d9a['newRange'],_0x18d3ec=_0x5024ac['end']['nodeBefore'];if(!_0x18d3ec||!_0x18d3ec['is']('element','title-content'))continue;if(!_0x5024ac['start']['isTouching'](_0x5024ac['end']))continue;const _0x5c40fe=_0x5e7947['model']['schema']['getNearestSelectionRange'](_0x5024ac['end'],'forward');if(_0x5c40fe&&_0x5c40fe['isCollapsed']){const _0xf6d39d=_0x28ff97['createRange'](_0x5024ac['start'],_0x5c40fe['start']);_0xf6d39d['isEqual'](_0x5024ac)||(_0x28ff97['updateMarker'](_0x3b507f,{'range':_0xf6d39d}),_0xed0288=!0x0);}_0xed0288||(_0x28ff97['removeMarker'](_0x3b507f),_0xed0288=!0x0);}return _0xed0288;});}}class Tt extends _0x3721e7{['afterInit'](){const _0x4d19f0=this['editor'],_0x8525ea=_0x4d19f0['plugins']['get']('TrackChangesEditing');_0x4d19f0['plugins']['has']('Uploadcare')&&(_0x8525ea['enableCommand']('uploadcare'),_0x4d19f0['plugins']['has']('UploadcareImageEdit')&&(_0x8525ea['enableCommand']('uploadcareImageEdit'),_0x8525ea['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x8525ea['registerBlockAttribute']('uploadcareImageId'),_0x8525ea['descriptionFactory']['registerDescriptionCallback'](_0xa15bd8=>{if('attribute'!=_0xa15bd8['type'])return;const {data:_0x9462b6}=_0xa15bd8;return _0x9462b6&&'uploadcareImageId'==_0x9462b6['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x3721e7{['afterInit'](){const _0x1a8321=this['editor'],_0x3d329e=_0x1a8321['plugins']['get']('TrackChangesEditing');_0x1a8321['plugins']['has']('UndoEditing')&&(_0x3d329e['enableCommand']('undo'),_0x3d329e['enableCommand']('redo'));}}class Ot extends _0x3721e7{static get['requires'](){return[At];}['afterInit'](){const _0x50315c=this['editor'];if(!_0x50315c['plugins']['has']('TableCaptionEditing'))return;_0x50315c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x3721e7{['tableProperties'];['tableCellProperties'];constructor(_0x4490dd){super(_0x4490dd),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x35fdfc=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x107d90 of this['tableProperties'])_0x35fdfc['enableCommand'](_0x107d90,(_0x53b09f,_0x2aeaa3)=>{const _0x5e2590=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x107d90,[_0x5e2590],this['tableProperties'],'tableProperties',_0x53b09f,_0x2aeaa3);});_0x35fdfc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x35fdfc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x35fdfc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x59a676,_0x1bd22e)=>this['handleDiscardAction'](this['tableProperties'],_0x59a676,_0x1bd22e)),_0x35fdfc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x22bef2 of this['tableCellProperties'])_0x35fdfc['enableCommand'](_0x22bef2,(_0x3ad153,_0x87f2d4)=>{const _0x31d680=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x22bef2,_0x31d680,this['tableCellProperties'],'tableCellProperties',_0x3ad153,_0x87f2d4);});_0x35fdfc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x35fdfc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x35fdfc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x244da9,_0x116a2e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x244da9,_0x116a2e)),_0x35fdfc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x35fdfc['descriptionFactory']['registerDescriptionCallback'](_0x471500=>this['handleSuggestionDescription'](_0x471500));}['_handlePropertyChange'](_0x1a0044,_0x280f1a,_0x1a633e,_0xa536ac,_0x66959c,_0x27b8e9){const _0x4d248a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x27b8e9['batch'],()=>{for(const _0x20a59b of _0x280f1a){if(this['_getSuggestion'](_0x20a59b,_0xa536ac))_0x66959c(_0x27b8e9);else{const _0x40969b={};for(const _0x52867a of _0x1a633e){const _0x1320aa=_0x20a59b['getAttribute'](_0x52867a);void 0x0!==_0x1320aa&&(_0x40969b[_0x52867a]=_0x1320aa);}_0x66959c(_0x27b8e9),_0x4d248a['markBlockFormat'](_0x20a59b,{'commandParams':[_0x40969b]},[],_0xa536ac);}}});}['handleDiscardAction'](_0x4d523a,_0x11961a,_0xc1831){const _0x2d9d57=_0x11961a[0x0]['start']['nodeAfter'],_0x2ba591=_0xc1831['commandParams'][0x0];this['editor']['model']['change'](_0x4f260e=>{for(const _0x49e0b1 of _0x4d523a)void 0x0!==_0x2ba591[_0x49e0b1]?_0x4f260e['setAttribute'](_0x49e0b1,_0x2ba591[_0x49e0b1],_0x2d9d57):_0x4f260e['removeAttribute'](_0x49e0b1,_0x2d9d57);});}['handleSuggestionDescription'](_0x5ba962){if(_0x5ba962['data'])switch(_0x5ba962['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'](_0x3decad,_0x3e4b71){const _0x362c24=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4e9e07 of _0x362c24['getSuggestions']({'skipNotAttached':!0x0})){const _0x46bf60=_0x4e9e07['getContainedElement']();if(_0x4e9e07['subType']===_0x3e4b71&&_0x46bf60===_0x3decad)return _0x4e9e07;}return null;}}class Rt extends _0x3721e7{['afterInit'](){const _0x59b318=this['editor'];if(!_0x59b318['plugins']['has']('LineHeight'))return;const _0x4378f6=_0x59b318['plugins']['get']('TrackChangesEditing'),_0x1294a1=_0x59b318['locale'];_0x4378f6['enableDefaultAttributesIntegration']('lineHeight'),_0x4378f6['registerBlockAttribute']('lineHeight'),_0x4378f6['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1294a1,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x3721e7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x32d493,_0x256143,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f8767){super(_0x4f8767),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x28331b,_0x5993b4,_0x3bc51f,_0x531f83)=>{this['_model']['change'](()=>{for(const _0x2fe32c of[..._0x531f83,..._0x3bc51f])this['_model']['markers']['has'](_0x2fe32c)&&_0x4f8767['editing']['reconvertMarker'](_0x2fe32c);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4f8767['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x4f8767['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4f8767['config']['get']('trackChanges.trackFormatChanges'),_0x4f8767['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4f8767['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x4f8767,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x298b48=this['editor'],_0x3f7a49=(_0x21aed6,_0x4fa76e)=>{if('attribute'!=_0x21aed6)return'ck-suggestion-marker-'+_0x21aed6;const _0x5a0429=_0x4fa76e['split']('|')[0x0];return this['_isBlockAttribute'](_0x5a0429)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x298b48['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1ad8cc=>{const {id:_0x1de930,authorId:_0x3ce8e2,type:_0x148bac,subType:_0x241aff}=this['_splitMarkerName'](_0x1ad8cc['markerName']),_0x48b07f=['ck-suggestion-marker',_0x3f7a49(_0x148bac,_0x241aff)];let _0x3bdcd3=0xbb8;return this['activeMarkers']['includes'](_0x1ad8cc['markerName'])&&(_0x48b07f['push']('ck-suggestion-marker--active'),_0x3bdcd3=0xbc2),'deletion'==_0x148bac&&(_0x3bdcd3+=0x5),{'classes':_0x48b07f,'attributes':{'data-suggestion':_0x1de930,'data-author-id':_0x3ce8e2},'priority':_0x3bdcd3};}}),_0x298b48['conversion']['for']('dataDowncast')['add'](_0x3e8a19=>{_0x3e8a19['on']('addMarker:suggestion',(_0x31d96d,_0xb86aac,_0x34a648)=>{if(!_0x34a648['options']['showSuggestionHighlights'])return;const _0x31687b=_0xb86aac['item'];if(!_0x31687b)return;const _0x1c5489=_0x34a648['mapper']['toViewElement'](_0x31687b);_0x298b48['model']['schema']['isObject'](_0x31687b)&&_0x1c5489&&!_0x1c5489['getCustomProperty']('widget')&&_0x1c5489['is']('containerElement')&&_0x4e2e16(_0x1c5489,_0x34a648['writer']);},{'priority':'high'});}),_0x298b48['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4efb41,_0x6d0563)=>{if(!_0x6d0563['options']['showSuggestionHighlights'])return null;const {id:_0x13cc45,authorId:_0x4fa6d4,type:_0x48360e,subType:_0x2e24d2}=this['_splitMarkerName'](_0x4efb41['markerName']);return{'classes':['ck-suggestion-marker',_0x3f7a49(_0x48360e,_0x2e24d2)],'priority':0xbb8,'attributes':{'data-suggestion':_0x13cc45,'data-author-id':_0x4fa6d4}};}});const _0x224667=({showActiveMarkers:_0x22d062=!0x0,isAttributeSuggestion:_0x1d787d=!0x1}={})=>(_0x1e8b30,_0x1089c6,_0x356b12)=>{if(!_0x1089c6['item'])return;const {id:_0x37c262,authorId:_0x180439}=this['_splitMarkerName'](_0x1089c6['markerName']);if(_0x1d787d){const _0x2922f2=this['_suggestions']['get'](_0x37c262),_0x4bb17d=this['_getAttributeKey'](_0x2922f2);if(!this['_isBlockAttribute'](_0x4bb17d))return;}if(_0x1089c6['item']['is']('selection'))return void _0x356b12['consumable']['consume'](_0x1089c6['item'],_0x1e8b30['name']);const _0x5823e0=_0x356b12['mapper']['toViewElement'](_0x1089c6['item']);if(_0x1089c6['item']['is']('element')&&_0x298b48['model']['schema']['isBlock'](_0x1089c6['item'])&&!_0x5823e0['getCustomProperty']('addHighlight')){_0x356b12['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5823e0),_0x356b12['writer']['setAttribute']('data-suggestion',_0x37c262,_0x5823e0),_0x356b12['writer']['setAttribute']('data-author-id',_0x180439,_0x5823e0),_0x356b12['mapper']['bindElementToMarker'](_0x5823e0,_0x1089c6['markerName']),_0x22d062&&(this['activeMarkers']['includes'](_0x1089c6['markerName'])?_0x356b12['writer']['addClass']('ck-suggestion-marker--active',_0x5823e0):_0x356b12['writer']['removeClass']('ck-suggestion-marker--active',_0x5823e0));for(const _0x1a1075 of _0x298b48['model']['createRangeIn'](_0x1089c6['item'])['getItems']())_0x356b12['consumable']['consume'](_0x1a1075,_0x1e8b30['name']);_0x356b12['consumable']['consume'](_0x1089c6['item'],_0x1e8b30['name']);}};_0x298b48['conversion']['for']('dataDowncast')['add'](_0x29524d=>{_0x29524d['on']('addMarker:suggestion:formatBlock',(_0x357f06,_0x218f26,_0x12cb66)=>{_0x12cb66['options']['showSuggestionHighlights']&&_0x224667({'showActiveMarkers':!0x1})(_0x357f06,_0x218f26,_0x12cb66);},{'priority':'highest'});}),_0x298b48['conversion']['for']('dataDowncast')['add'](_0x4faca3=>{_0x4faca3['on']('addMarker:suggestion:attribute',(_0x3d61c7,_0x2b6eaf,_0x5a6983)=>{_0x5a6983['options']['showSuggestionHighlights']&&_0x224667({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3d61c7,_0x2b6eaf,_0x5a6983);},{'priority':'highest'});}),_0x298b48['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x12b2b7,_0x35fc5b)=>{if(_0x35fc5b['options']['showSuggestionHighlights']){const {id:_0x37382e,authorId:_0x1e71b2}=this['_splitMarkerName'](_0x12b2b7);return _0x12b2b7['includes'](':split')||_0x12b2b7['includes'](':merge')?{'group':'suggestion','name':_0x12b2b7['substr'](0xb),'attributes':{'data-suggestion':_0x37382e,'data-author-id':_0x1e71b2}}:null;}return{'group':'suggestion','name':_0x12b2b7['substr'](0xb)};}}),_0x298b48['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1ee21c,{writer:_0x388929})=>{let _0x2ce1c4='suggestion:'+_0x1ee21c['getAttribute']('suggestion-type')+':'+_0x1ee21c['getAttribute']('id');return _0x1ee21c['getAttribute']('marker-count')&&(_0x2ce1c4+=':'+_0x1ee21c['getAttribute']('marker-count')),_0x388929['createElement']('$marker',{'data-name':_0x2ce1c4});}}),_0x298b48['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x298b48['conversion']['for']('editingDowncast')['add'](_0x2d3a39=>{_0x2d3a39['on']('addMarker:suggestion:formatBlock',_0x224667(),{'priority':'high'});}),_0x298b48['conversion']['for']('editingDowncast')['add'](_0x57f2ba=>{_0x57f2ba['on']('addMarker:suggestion:attribute',_0x224667({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x298b48['conversion']['for']('editingDowncast')['add'](_0xecc15d=>{_0xecc15d['on']('removeMarker:suggestion:formatBlock',(_0x3d1be6,_0x289450,_0x47770a)=>{const _0x403e1a=_0x47770a['mapper']['markerNameToElements'](_0x289450['markerName']);if(_0x403e1a){for(const _0x2a4afe of _0x403e1a)_0x2a4afe['getCustomProperty']('addHighlight')||(_0x47770a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2a4afe),_0x47770a['writer']['removeAttribute']('data-suggestion',_0x2a4afe),_0x47770a['writer']['removeAttribute']('data-author-id',_0x2a4afe),_0x47770a['mapper']['unbindElementFromMarkerName'](_0x2a4afe,_0x289450['markerName']));}},{'priority':'high'});}),_0x298b48['conversion']['for']('editingDowncast')['add'](_0xc34add=>{_0xc34add['on']('removeMarker:suggestion:attribute',(_0x5eeaf0,_0x5161c1,_0x260401)=>{const _0x4665f1=_0x260401['mapper']['markerNameToElements'](_0x5161c1['markerName']);if(!_0x4665f1)return;const {id:_0x35d960}=this['_splitMarkerName'](_0x5161c1['markerName']),_0x71e465=this['_suggestions']['get'](_0x35d960),_0x16d6f9=this['_getAttributeKey'](_0x71e465);if(this['_isBlockAttribute'](_0x16d6f9)){for(const _0x4a2c41 of _0x4665f1)_0x4a2c41['getCustomProperty']('addHighlight')||(_0x260401['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4a2c41),_0x260401['writer']['removeAttribute']('data-suggestion',_0x4a2c41),_0x260401['writer']['removeAttribute']('data-author-id',_0x4a2c41),_0x260401['mapper']['unbindElementFromMarkerName'](_0x4a2c41,_0x5161c1['markerName']));}},{'priority':'high'});}),_0x298b48['model']['document']['registerPostFixer'](_0x1ca0c0=>{let _0x4c8ea3=!0x1;const _0x23a495=Array['from'](_0x298b48['model']['document']['differ']['getChangedMarkers']()),_0x3c04f2=new Set();for(const {name:_0xbde47,data:_0x2644e6}of _0x23a495){const {group:_0x35ab29,type:_0x93d012,subType:_0x36eb53,id:_0x2ed56b}=this['_splitMarkerName'](_0xbde47);if('suggestion'!==_0x35ab29)continue;const _0x4ef0dd=this['_suggestions']['get'](_0x2ed56b);if(null!=_0x2644e6['newRange']){'formatInline'==_0x93d012&&(_0x4c8ea3=_0x4c8ea3||Gt(_0x2644e6['newRange'],_0xbde47,_0x1ca0c0,_0x298b48['model']['schema']));const _0x2811bf='attribute'==_0x93d012&&this['_isBlockAttribute'](_0x36eb53['split']('|')[0x0]);if(_0x2644e6['newRange']['isCollapsed']||'$graveyard'==_0x2644e6['newRange']['root']['rootName']||'formatBlock'==_0x93d012&&!Jt(_0x2644e6['newRange'])||_0x2811bf&&!Jt(_0x2644e6['newRange'])||'deletion'==_0x93d012&&!Kt(_0x2644e6['newRange']))_0x1ca0c0['removeMarker'](_0xbde47),_0x4c8ea3=!0x0;else{if(!_0x4ef0dd||!_0x4ef0dd['isInContent'])continue;if(_0x2644e6['newRange']&&_0x2644e6['oldRange']&&_0x2644e6['newRange']['isEqual'](_0x2644e6['oldRange']))continue;_0x3c04f2['add'](_0x4ef0dd);}}}return _0x3c04f2['size']>0x0&&(_0x4c8ea3=!!this['_joinWithAdjacentSuggestions'](_0x3c04f2)||_0x4c8ea3),_0x4c8ea3;}),_0x298b48['model']['document']['registerPostFixer'](_0x44e24a=>{let _0x4c45f9=!0x1;for(const _0x3b9088 of _0x298b48['model']['document']['differ']['getChanges']())if('insert'==_0x3b9088['type'])for(const _0x28b1ee of this['_suggestions']['values']()){if(_0x28b1ee['isMultiRange']||!_0x28b1ee['isInContent'])continue;const _0x2f6006='formatBlock'==_0x28b1ee['type'],_0xb7ab60=this['_getAttributeKey'](_0x28b1ee),_0x19f508=_0xb7ab60&&this['_isBlockAttribute'](_0xb7ab60);if(!_0x2f6006&&!_0x19f508)continue;const _0x1e63a9=_0x28b1ee['getFirstRange']();if(_0x1e63a9['start']['parent']!=_0x1e63a9['end']['parent']&&!_0x1e63a9['end']['isAtEnd']){const _0x88e565=_0x298b48['model']['createPositionAt'](_0x1e63a9['start']['nodeAfter'],'end'),_0x1bc149=_0x298b48['model']['createRange'](_0x1e63a9['start'],_0x88e565);_0x44e24a['updateMarker'](_0x28b1ee['getFirstMarker'](),{'range':_0x1bc149}),_0x4c45f9=!0x0;}}return _0x4c45f9;}),_0x298b48['model']['document']['registerPostFixer'](_0x549f7d=>this['_processAttributeChanges'](_0x549f7d)),_0x298b48['model']['document']['registerPostFixer'](_0x4965fb=>!_0x4965fb['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4965fb)),_0x298b48['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x298b48['model']['document']['on']('change:data',(_0x299c0e,_0x2cf0e4)=>{if(!_0x2cf0e4['isLocal']||_0x2cf0e4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x23280f=_0x298b48['model']['document']['differ']['getChanges']();if(0x0==_0x23280f['length'])return;const _0x368c70=[],_0x516a80=_0x23280f['filter'](_0x22d43e=>'attribute'==_0x22d43e['type']),_0x36aa05=_0x23280f['filter'](_0x2c8e1c=>'insert'==_0x2c8e1c['type']&&'$text'!=_0x2c8e1c['name']);for(const _0x340f56 of _0x516a80)this['_isRegisteredAttribute'](_0x340f56['attributeKey'])&&_0x368c70['push']({'key':_0x340f56['attributeKey'],'newValue':_0x340f56['attributeNewValue'],'oldValue':_0x340f56['attributeOldValue'],'range':Ht(_0x340f56['range'],_0x298b48['model'])});for(const _0x350e77 of _0x36aa05){if('rename'!=_0x350e77['action']&&'refresh'!=_0x350e77['action'])continue;const _0x5c558a=qt(_0x350e77['position']['nodeAfter'],_0x298b48['model']),_0x34692a=_0x350e77['before'];'rename'==_0x350e77['action']&&_0x368c70['push']({'key':m,'newValue':_0x350e77['name'],'oldValue':_0x34692a['name'],'range':_0x5c558a});for(const [_0x5f28ca,_0x3d44d3]of _0x34692a['attributes']){if(!this['_isRegisteredAttribute'](_0x5f28ca))continue;const _0x1c433e=_0x350e77['attributes']['get'](_0x5f28ca);_0x3d44d3!==_0x1c433e&&_0x368c70['push']({'key':_0x5f28ca,'newValue':_0x1c433e,'oldValue':_0x3d44d3,'range':_0x5c558a});}for(const [_0x47895a,_0x4f8e99]of _0x350e77['attributes'])this['_isRegisteredAttribute'](_0x47895a)&&(_0x34692a['attributes']['has'](_0x47895a)||_0x368c70['push']({'key':_0x47895a,'newValue':_0x4f8e99,'oldValue':null,'range':_0x5c558a}));}0x0!=_0x368c70['length']&&_0x298b48['model']['enqueueChange'](_0x2cf0e4,_0x39128f=>{const _0x5261b0=_0x3f8d34();for(const {range:_0x341e18,key:_0xef43aa,oldValue:_0x361027,newValue:_0x383d4b}of _0x368c70)this['markAttributeChange'](_0x341e18,_0xef43aa,_0x361027,_0x383d4b,{'groupId':_0x5261b0});this['_reduceExistingSuggestions'](_0x39128f,_0x368c70);});},{'priority':'lowest'}),_0x298b48['model']['markers']['on']('update:suggestion',(_0x3e347c,_0x1b9b2c,_0x12c58c)=>{if(null==_0x12c58c){const {id:_0x569375}=this['_splitMarkerName'](_0x1b9b2c['name']),_0x324d8e=this['_suggestions']['get'](_0x569375);_0x324d8e&&_0x324d8e['addMarkerName'](_0x1b9b2c['name']);}}),_0x298b48['model']['document']['on']('change:data',()=>{const _0x42c104=Array['from'](_0x298b48['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1096dc=>'suggestion'===this['_splitMarkerName'](_0x1096dc['name'])['group']);if(0x0===_0x42c104['length'])return;_0x42c104['sort']((_0x439488,_0x3bfbc1)=>{const _0x1f98b7=_0x439488['data']['oldRange'],_0xeb0a84=_0x3bfbc1['data']['oldRange'];return null===_0x1f98b7&&null===_0xeb0a84?0x0:null===_0x1f98b7&&null!==_0xeb0a84?-0x1:null!==_0x1f98b7&&null===_0xeb0a84?0x1:_0x1f98b7['start']['isBefore'](_0xeb0a84['start'])?-0x1:0x1;});const _0x2670b4=new Set(),_0x31ca12=new Set();for(const {name:_0x5cf171,data:_0x239767}of _0x42c104){const {id:_0x534735}=this['_splitMarkerName'](_0x5cf171);if(null===_0x239767['oldRange']){const _0x2fabee=this['_handleNewSuggestionMarker'](_0x5cf171);_0x31ca12['add'](_0x2fabee);}else{const _0x37eba6=this['_suggestions']['get'](_0x534735);null!==_0x239767['newRange']||_0x37eba6['isInContent']?(_0x2670b4['add'](_0x37eba6['head']),_0x31ca12['add'](_0x37eba6)):this['_removeSuggestion'](_0x37eba6);}}_0x31ca12['size']>0x0&&this['_refreshSuggestionsChain'](_0x31ca12);for(const _0x2cf965 of _0x2670b4)this['fire']('suggestionChanged',_0x2cf965);}),_0x298b48['model']['on']('applyOperation',(_0x9a2164,_0x2ab4dd)=>{const _0x2f070d=_0x2ab4dd[0x0];if(!this['_suggestions']['size'])return;if(!_0x2f070d['isDocumentOperation'])return;if(_0x2f070d['batch']['isUndo']||!_0x2f070d['batch']['isLocal'])return;let _0x5f4b80,_0x39a38a;switch(_0x2f070d['type']){case'insert':_0x5f4b80=_0x298b48['model']['createPositionAt'](_0x2f070d['position']),_0x39a38a=_0x5f4b80['getShiftedBy'](_0x2f070d['howMany']);break;case'split':_0x5f4b80=_0x298b48['model']['createPositionAt'](_0x2f070d['splitPosition']),_0x39a38a=_0x298b48['model']['createPositionAt'](_0x2f070d['moveTargetPosition']);break;case'move':_0x5f4b80=_0x298b48['model']['createPositionAt'](_0x2f070d['targetPosition']),_0x39a38a=_0x5f4b80['getShiftedBy'](_0x2f070d['howMany']);break;default:return;}const _0x10e9b9=_0x298b48['model']['createRange'](_0x5f4b80,_0x39a38a);_0x298b48['model']['change'](()=>{for(const {suggestion:_0x5c0578,meta:_0x31af76}of this['_findSuggestions'](_0x10e9b9)){if(_0x5c0578['isMultiRange'])continue;if('formatInline'==_0x5c0578['type'])continue;const _0x14ef60=this['_getAttributeKey'](_0x5c0578);if(_0x14ef60&&this['_isBlockAttribute'](_0x14ef60)&&'split'!=_0x2f070d['type'])continue;const _0x47a37b=_0x5c0578['data']&&_0x5c0578['data']['multipleBlocks'];('formatBlock'!=_0x5c0578['type']||'split'==_0x2f070d['type']&&!_0x47a37b)&&(_0x31af76['containsRangeInObject']||'insertion'==_0x5c0578['type']&&_0x31af76['isOwn']||_0x5c0578['getFirstRange']()['containsRange'](_0x10e9b9)&&this['_breakSuggestionMarker'](_0x5c0578,_0x5f4b80,_0x39a38a));}});},{'priority':'lowest'}),_0x298b48['model']['on']('deleteContent',(_0x149d6a,_0x57bb4a)=>{const _0x172699=_0x57bb4a[0x0],_0xf39f16=_0x57bb4a[0x1];if(_0xf39f16&&_0xf39f16['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x172699['isCollapsed'])return;const _0x3feccb=_0x298b48['model']['schema'],{start:_0xff6329,end:_0x11f6ae}=_0x172699['getFirstRange'](),_0x280fd2=_0xff6329['nodeAfter']&&_0x3feccb['isLimit'](_0xff6329['nodeAfter'])?null:_0x3feccb['getNearestSelectionRange'](_0xff6329,'forward'),_0x2417ea=_0x11f6ae['nodeBefore']&&_0x3feccb['isLimit'](_0x11f6ae['nodeBefore'])?null:_0x3feccb['getNearestSelectionRange'](_0x11f6ae,'backward'),_0xdf9c5a=_0x298b48['model']['createRange'](_0x280fd2?_0x280fd2['start']:_0xff6329,_0x2417ea?_0x2417ea['end']:_0x11f6ae);_0x298b48['model']['change'](_0x37fd34=>{this['markDeletion'](_0xdf9c5a);const _0x146c5f=_0x298b48['model']['schema']['getNearestSelectionRange'](_0xdf9c5a['start']);_0x172699['is']('documentSelection')?_0x37fd34['setSelection'](_0x146c5f):_0x172699['setTo'](_0x146c5f);}),_0x149d6a['stop']();},{'priority':_0x413344['normal']+0xa}),_0x298b48['model']['on']('insertContent',(_0x5f054a,_0x5b457e)=>{const _0x2ad96c=_0x5b457e[_0x5b457e['length']-0x1];_0x2ad96c&&_0x2ad96c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x298b48['model']['change'](()=>{let _0x1b9998=_0x298b48['model']['insertContent'](_0x5b457e[0x0],_0x5b457e[0x1],_0x5b457e[0x2],{'forceDefaultExecution':!0x0});if(!_0x1b9998)return;_0x5f054a['return']=_0x1b9998['clone']();const _0x51b3fe=_0x1b9998['end']['nodeBefore'],_0x22ceef=_0x298b48['model']['schema'];_0x51b3fe&&_0x22ceef['isBlock'](_0x51b3fe)&&!_0x22ceef['isObject'](_0x51b3fe)&&(_0x1b9998=_0x298b48['model']['createRange'](_0x1b9998['start'],_0x298b48['model']['createPositionAt'](_0x51b3fe,'end'))),this['markInsertion'](_0x1b9998);}),_0x5f054a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x21d8a7=new D(_0x298b48,this['_suggestions']);_0x298b48['commands']['add']('acceptSuggestion',_0x21d8a7),this['enableCommand']('acceptSuggestion');const _0x3c8f7c=new M(_0x298b48,this['_suggestions']);_0x298b48['commands']['add']('discardSuggestion',_0x3c8f7c),this['enableCommand']('discardSuggestion'),_0x298b48['commands']['add']('acceptAllSuggestions',new $(_0x298b48,_0x21d8a7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x298b48['commands']['add']('discardAllSuggestions',new $(_0x298b48,_0x3c8f7c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x298b48['commands']['add']('acceptSelectedSuggestions',new B(_0x298b48,_0x21d8a7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x298b48['commands']['add']('discardSelectedSuggestions',new B(_0x298b48,_0x3c8f7c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4db51d=_0x298b48['plugins']['get']('CommentsRepository');this['listenTo'](_0x4db51d,'addComment',(_0x1fc394,{threadId:_0x6c89d6})=>{const _0x57b40f=this['_suggestions']['get'](_0x6c89d6);_0x57b40f&&_0x57b40f['commentThread']&&0x1===_0x57b40f['commentThread']['length']&&this['_updateSuggestionData'](_0x6c89d6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4db51d,'removeComment',(_0x4619cf,{threadId:_0x59a76e})=>{const _0xb0b083=this['_suggestions']['get'](_0x59a76e);_0xb0b083&&_0xb0b083['commentThread']&&!_0xb0b083['commentThread']['length']&&this['_updateSuggestionData'](_0x59a76e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x478144){const _0x3df35a=_0x2da7b0([0x78,0x46,0x50,0x4d,0x77,0x63,0x58,0x38,0x68,0x67,0x4a,0x54,0x41,0x37,0x55,0x34,0x61,0x42,0x36,0x6b,0x6d,0x33,0x49,0x39,0x79,0x6f,0x66,0x47,0x4e,0x52,0x35,0x44,0x62,0x43,0x48,0x4b,0x31,0x73,0x56,0x6c,0x69,0x30,0x4f,0x75,0x71,0x45,0x64,0x59,0x6a,0x76,0x51,0x4c,0x70,0x65,0x32,0x72,0x74,0x5a,0x7a,0x57,0x6e,0x53]),_0x121ae2=0x5bf2a939,_0x1f7df6=0x5bf5c569^_0x121ae2,_0x1dc665=window[_0x2da7b0([0x44,0x61,0x74,0x65])][_0x2da7b0([0x6e,0x6f,0x77])](),_0x31bb7d=_0x478144[_0x2da7b0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x38e958=new window[(_0x2da7b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x467300=>{_0x31bb7d[_0x2da7b0([0x6f,0x6e,0x63,0x65])](_0x2da7b0([0x72,0x65,0x61,0x64,0x79]),_0x467300);}),_0x4bcbef={[_0x2da7b0([0x6b,0x74,0x79])]:_0x2da7b0([0x45,0x43]),[_0x2da7b0([0x75,0x73,0x65])]:_0x2da7b0([0x73,0x69,0x67]),[_0x2da7b0([0x63,0x72,0x76])]:_0x2da7b0([0x50,0x2d,0x32,0x35,0x36]),[_0x2da7b0([0x78])]:_0x2da7b0([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]),[_0x2da7b0([0x79])]:_0x2da7b0([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]),[_0x2da7b0([0x61,0x6c,0x67])]:_0x2da7b0([0x45,0x53,0x32,0x35,0x36])},_0x339f6b=_0x31bb7d[_0x2da7b0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2da7b0([0x67,0x65,0x74])](_0x2da7b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x42ced0(){let _0x3f21b0,_0x12ab7a=null,_0x92972=null;try{if(_0x339f6b==_0x2da7b0([0x47,0x50,0x4c]))return _0x2da7b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3f21b0=_0x48e1b0(),!_0x3f21b0)return _0x2da7b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3f21b0[_0x2da7b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x92972=_0x3931da(_0x3f21b0[_0x2da7b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3f21b0[_0x2da7b0([0x6a,0x74,0x69])])),await _0x1fdabc()?_0x472dcd()?_0x58c6b7()?_0x2da7b0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5477aa()?(_0x3f21b0[_0x2da7b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2da7b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x12ab7a=_0x2fff3f(_0x2da7b0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3f21b0[_0x2da7b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2da7b0([0x74,0x72,0x69,0x61,0x6c])&&(_0x12ab7a=_0x2fff3f(_0x2da7b0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9368eb()):_0x2da7b0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2da7b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2da7b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2da7b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x58c6b7(){const _0x56a38c=[_0x2da7b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2da7b0([0x74,0x72,0x69,0x61,0x6c])][_0x2da7b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f21b0[_0x2da7b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1dc665/0x3e8:0xe10*_0x1f7df6;return _0x3f21b0[_0x2da7b0([0x65,0x78,0x70])]<_0x56a38c;}function _0x472dcd(){const _0x59f7d6=_0x3f21b0[_0x2da7b0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x59f7d6)return!0x1;if(_0x59f7d6[_0x2da7b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2da7b0([0x2a])))return!0x0;if(_0x59f7d6[_0x2da7b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2da7b0([0x54,0x43])))return!0x0;if(_0x59f7d6[_0x2da7b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2da7b0([0x52,0x54,0x43]))){if(_0x41bd02())return!0x0;if(_0x22afd5()||_0x5ce57b())return!0x0;}return!0x1;}function _0x5477aa(){const _0x33a3b7=_0x3f21b0[_0x2da7b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33a3b7||0x0==_0x33a3b7[_0x2da7b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5124b4}=new URL(window[_0x2da7b0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33a3b7[_0x2da7b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5124b4))return!0x0;const _0x5b4c5a=_0x5124b4[_0x2da7b0([0x73,0x70,0x6c,0x69,0x74])](_0x2da7b0([0x2e]));return _0x33a3b7[_0x2da7b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55d547=>_0x55d547[_0x2da7b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2da7b0([0x2a])))[_0x2da7b0([0x6d,0x61,0x70])](_0x1d135e=>_0x1d135e[_0x2da7b0([0x73,0x70,0x6c,0x69,0x74])](_0x2da7b0([0x2e])))[_0x2da7b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3be6cb=>_0x3be6cb[_0x2da7b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5b4c5a[_0x2da7b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2da7b0([0x6d,0x61,0x70])](_0x371e58=>Array(_0x5b4c5a[_0x2da7b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x371e58[_0x2da7b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2da7b0([0x66,0x69,0x6c,0x6c])](_0x371e58[0x0]===_0x2da7b0([0x2a])?_0x2da7b0([0x2a]):'')[_0x2da7b0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x371e58))[_0x2da7b0([0x73,0x6f,0x6d,0x65])](_0x310f03=>_0x5b4c5a[_0x2da7b0([0x65,0x76,0x65,0x72,0x79])]((_0x12dfa9,_0x43275a)=>_0x310f03[_0x43275a]===_0x12dfa9||_0x310f03[_0x43275a]===_0x2da7b0([0x2a])));}function _0x9368eb(){return _0x12ab7a&&_0x92972?new window[(_0x2da7b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb7c8a4,_0x1a3bf3)=>{_0x12ab7a[_0x2da7b0([0x74,0x68,0x65,0x6e])](_0xb7c8a4,_0x1a3bf3),_0x92972[_0x2da7b0([0x74,0x68,0x65,0x6e])](_0x24b167=>{_0x24b167!=_0x2da7b0([0x56,0x61,0x6c,0x69,0x64])&&_0xb7c8a4(_0x24b167);},_0x1a3bf3);}):_0x12ab7a||_0x92972||_0x2da7b0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3931da(_0x41da62,_0x4996b6){return new window[(_0x2da7b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26a7f9=>{if(_0x5c4c0a())return _0x26a7f9(_0x2da7b0([0x56,0x61,0x6c,0x69,0x64]));_0x396c05(),_0x31bb7d[_0x2da7b0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2da7b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb0ee5b=!0x1;const _0x3db755=_0x3f8d34();function _0x37561a(_0x5319d7){return!!_0x5319d7&&(typeof _0x5319d7===_0x2da7b0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5319d7===_0x2da7b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5319d7[_0x2da7b0([0x74,0x68,0x65,0x6e])]===_0x2da7b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5319d7[_0x2da7b0([0x63,0x61,0x74,0x63,0x68])]===_0x2da7b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x14d72f(_0x4edfba){_0x564fdb(_0x4edfba)[_0x2da7b0([0x74,0x68,0x65,0x6e])](_0x4d96f1=>{if(!_0x4d96f1||_0x4d96f1[_0x2da7b0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2da7b0([0x6f,0x6b]))return _0x2da7b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40ea07(_0x485aba(_0x3db755+_0x4996b6))!=_0x4d96f1[_0x2da7b0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2da7b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2da7b0([0x56,0x61,0x6c,0x69,0x64]);})[_0x2da7b0([0x74,0x68,0x65,0x6e])](_0x4791ba=>(_0x5405c0(),_0x4791ba),()=>{const _0x519f37=_0x37664b();return null==_0x519f37?(_0x5405c0(),_0x2da7b0([0x56,0x61,0x6c,0x69,0x64])):_0x2da7b0(_0x1dc665-_0x519f37>(0x7ffe2d39^_0x121ae2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2da7b0([0x74,0x68,0x65,0x6e])](_0x26a7f9)[_0x2da7b0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26a7f9(_0x2da7b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44c10f=0x5bc447b9^_0x121ae2;function _0x5405c0(){const _0x1804e4=_0x2da7b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x40ea07(_0x485aba(_0x41da62)),_0x348c58=_0x58eaa9(_0x40ea07(window[_0x2da7b0([0x4d,0x61,0x74,0x68])][_0x2da7b0([0x63,0x65,0x69,0x6c])](_0x1dc665/_0x44c10f)));window[_0x2da7b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2da7b0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1804e4,_0x348c58);}function _0x37664b(){const _0x45059e=_0x2da7b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x40ea07(_0x485aba(_0x41da62)),_0xb6ca3c=window[_0x2da7b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2da7b0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45059e);return _0xb6ca3c?window[_0x2da7b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58eaa9(_0xb6ca3c),0x10)*_0x44c10f:null;}function _0x564fdb(_0x1a59bd){return new window[(_0x2da7b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12e59b,_0x33204a)=>{_0x1a59bd[_0x2da7b0([0x74,0x68,0x65,0x6e])](_0x12e59b,_0x33204a),window[_0x2da7b0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x33204a,0x5bf37df9^_0x121ae2);});}}_0x31bb7d[_0x2da7b0([0x6f,0x6e])](_0x2da7b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54326c,_0x8212db)=>{if(_0x8212db[0x0]!=_0x41da62)return _0x26a7f9(_0x2da7b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8212db[0x1]={..._0x8212db[0x1],[_0x2da7b0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3db755};},{[_0x2da7b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2da7b0([0x68,0x69,0x67,0x68])}),_0x31bb7d[_0x2da7b0([0x6f,0x6e])](_0x2da7b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x370729=>{_0x37561a(_0x370729[_0x2da7b0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb0ee5b=!0x0,_0x14d72f(_0x370729[_0x2da7b0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2da7b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2da7b0([0x6c,0x6f,0x77])}),_0x38e958[_0x2da7b0([0x74,0x68,0x65,0x6e])](()=>{_0xb0ee5b||_0x26a7f9(_0x2da7b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c4c0a(){return _0x31bb7d[_0x2da7b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2da7b0([0x76,0x69,0x65,0x77])][_0x2da7b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2da7b0([0x61,0x75,0x74,0x6f]);}function _0x396c05(){_0x31bb7d[_0x2da7b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2da7b0([0x76,0x69,0x65,0x77])][_0x2da7b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2da7b0([0x61,0x75,0x74,0x6f]);}}function _0x2fff3f(_0x2c113c){const _0x4c693b=[new window[(_0x2da7b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41bee5=>setTimeout(_0x41bee5,0x5bfb97f5^_0x121ae2)),_0x38e958[_0x2da7b0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2da7b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4de84e=>{let _0x2b1523=0x0;_0x31bb7d[_0x2da7b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2da7b0([0x6f,0x6e])](_0x2da7b0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x424101,_0x3800aa)=>{_0x3800aa[0x0][_0x2da7b0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b1523++,_0x2b1523==(0x5bf2a8c1^_0x121ae2)&&(_0x4de84e(),_0x424101[_0x2da7b0([0x6f,0x66,0x66])]());});}))];return window[_0x2da7b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2da7b0([0x72,0x61,0x63,0x65])](_0x4c693b)[_0x2da7b0([0x74,0x68,0x65,0x6e])](()=>_0x2c113c);}async function _0x535516(){await _0x38e958,_0x31bb7d[_0x2da7b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2da7b0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38638d,_0x31bb7d[_0x2da7b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2da7b0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38638d,_0x31bb7d[_0x2da7b0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2da7b0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41bd02(){return _0x1f1ba5(_0x2da7b0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x34b21e(_0x2da7b0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2da7b0([0x73,0x74,0x61,0x74,0x65])]==_0x2da7b0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x22afd5(){return _0x1f1ba5(_0x2da7b0([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 _0x5ce57b(){return _0x1f1ba5(_0x2da7b0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3154f6(_0x1ae324){const _0x422a04=_0x46cf0f();_0x31bb7d[_0x422a04]=_0x2da7b0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1ae324,_0x1ae324!=_0x2da7b0([0x56,0x61,0x6c,0x69,0x64])&&_0x535516();}function _0x46cf0f(){const _0x19deb3=window[_0x2da7b0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2da7b0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2da7b0([0x6e,0x6f,0x77])]())[_0x2da7b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2da7b0([0x2e]),'');let _0x559b2e=_0x2da7b0([0x78]);for(let _0x28ed1a=0x0;_0x28ed1a<_0x19deb3[_0x2da7b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28ed1a+=0x2){let _0x3e26e7=window[_0x2da7b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19deb3[_0x2da7b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28ed1a,_0x28ed1a+0x2));_0x3e26e7>=_0x3df35a[_0x2da7b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e26e7-=_0x3df35a[_0x2da7b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x559b2e+=_0x3df35a[_0x3e26e7];}return _0x559b2e;}function _0x48e1b0(){const _0x244ed6=_0x339f6b[_0x2da7b0([0x73,0x70,0x6c,0x69,0x74])](_0x2da7b0([0x2e]));if(0x3!=_0x244ed6[_0x2da7b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f7120(_0x244ed6[0x1]);function _0x4f7120(_0x20c0fb){const _0x4fb371=_0x339f40(_0x20c0fb);return _0x4fb371&&_0x4c5e3b()?_0x4fb371:null;function _0x4c5e3b(){const _0x38d369=_0x4fb371[_0x2da7b0([0x6a,0x74,0x69])],_0x28516b=window[_0x2da7b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38d369[_0x2da7b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38d369[_0x2da7b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x289865={..._0x4fb371,[_0x2da7b0([0x6a,0x74,0x69])]:_0x38d369[_0x2da7b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x38d369[_0x2da7b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x289865[_0x2da7b0([0x76,0x63])],_0x485aba(_0x289865)==_0x28516b;}}}async function _0x1fdabc(){let _0x5b47c6=!0x0;try{const _0x48f692=_0x339f6b[_0x2da7b0([0x73,0x70,0x6c,0x69,0x74])](_0x2da7b0([0x2e])),[_0x2bb067,_0x4165dd,_0x208a33]=_0x48f692;return _0x1d7539(_0x2bb067),await _0x3541ed(_0x2bb067,_0x4165dd,_0x208a33),_0x5b47c6;}catch{return!0x1;}function _0x1d7539(_0x2e888d){const _0x1ffbe5=_0x339f40(_0x2e888d);_0x1ffbe5&&_0x1ffbe5[_0x2da7b0([0x61,0x6c,0x67])]==_0x2da7b0([0x45,0x53,0x32,0x35,0x36])||(_0x5b47c6=!0x1);}async function _0x3541ed(_0x11f5e4,_0x329720,_0x4db6bc){const _0x42cc2e=window[_0x2da7b0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2da7b0([0x66,0x72,0x6f,0x6d])](_0x28a2f9(_0x4db6bc),_0x4d3c49=>_0x4d3c49[_0x2da7b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x44eff5=new window[(_0x2da7b0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2da7b0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11f5e4+_0x2da7b0([0x2e])+_0x329720),_0x3c3883=window[_0x2da7b0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2da7b0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c3883)return;const _0x2860e5=await _0x3c3883[_0x2da7b0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2da7b0([0x6a,0x77,0x6b]),_0x4bcbef,{[_0x2da7b0([0x6e,0x61,0x6d,0x65])]:_0x2da7b0([0x45,0x43,0x44,0x53,0x41]),[_0x2da7b0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2da7b0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2da7b0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c3883[_0x2da7b0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2da7b0([0x6e,0x61,0x6d,0x65])]:_0x2da7b0([0x45,0x43,0x44,0x53,0x41]),[_0x2da7b0([0x68,0x61,0x73,0x68])]:{[_0x2da7b0([0x6e,0x61,0x6d,0x65])]:_0x2da7b0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2860e5,_0x42cc2e,_0x44eff5)||(_0x5b47c6=!0x1);}}function _0x339f40(_0x52fcb6){return _0x52fcb6[_0x2da7b0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2da7b0([0x65,0x79]))?JSON[_0x2da7b0([0x70,0x61,0x72,0x73,0x65])](_0x28a2f9(_0x52fcb6)):null;}function _0x28a2f9(_0x151286){return window[_0x2da7b0([0x61,0x74,0x6f,0x62])](_0x151286[_0x2da7b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2da7b0([0x2b]))[_0x2da7b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2da7b0([0x2f])));}function _0x485aba(_0x21738c){let _0x5b991b=0x1505;function _0x1e52ab(_0x370f16){for(let _0x113e88=0x0;_0x113e88<_0x370f16[_0x2da7b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x113e88++){const _0x555989=_0x370f16[_0x2da7b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x113e88);_0x5b991b=(_0x5b991b<<0x5)+_0x5b991b+_0x555989,_0x5b991b&=_0x5b991b;}}function _0xca1cbd(_0x3c97a3){Array[_0x2da7b0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c97a3)?_0x3c97a3[_0x2da7b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xca1cbd):_0x3c97a3&&typeof _0x3c97a3==_0x2da7b0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2da7b0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c97a3)[_0x2da7b0([0x73,0x6f,0x72,0x74])]()[_0x2da7b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d5d67,_0x676ab0])=>{_0x1e52ab(_0x1d5d67),_0xca1cbd(_0x676ab0);}):_0x1e52ab(window[_0x2da7b0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c97a3));}return _0xca1cbd(_0x21738c),_0x5b991b>>>0x0;}function _0x40ea07(_0x1ef378){return _0x1ef378[_0x2da7b0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2da7b0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2da7b0([0x30]));}function _0x58eaa9(_0x24c33b){return _0x24c33b[_0x2da7b0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2da7b0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2da7b0([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f1ba5(_0x2bc5eb){return _0x31bb7d[_0x2da7b0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2da7b0([0x68,0x61,0x73])](_0x2bc5eb);}function _0x34b21e(_0x2a039c){return _0x31bb7d[_0x2da7b0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2da7b0([0x67,0x65,0x74])](_0x2a039c);}function _0x38638d(){}function _0x2da7b0(_0x5d5e2f){return _0x5d5e2f['map'](_0xba823a=>String['fromCharCode'](_0xba823a))['join']('');}_0x3154f6(await _0x42ced0());}(this);}set['adapter'](_0x4467f3){if(this['_adapter'])throw new _0x398139('track-changes-adapter-already-set',this);this['_adapter']=_0x4467f3;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5aa731=!0x1,toJSON:_0x56e83e=!0x1}={}){const _0x204765=[];for(const _0x5e6eb7 of this['_suggestions']['values']())_0x5aa731&&!_0x5e6eb7['isInContent']||_0x204765['push'](_0x5e6eb7);return _0x56e83e?_0x204765['map'](_0x55e98c=>_0x55e98c['toJSON']()):_0x204765;}['getSuggestion'](_0x2b4b6f){const _0x5d585c=this['_suggestions']['get'](_0x2b4b6f);if(!_0x5d585c)throw new _0x398139('track-changes-suggestion-not-found',this);return _0x5d585c;}['hasSuggestion'](_0x36a61d){return this['_suggestions']['has'](_0x36a61d);}['addSuggestionData'](_0x21446e){const {authorId:_0x406a75,id:_0x53dde8,originalSuggestionId:_0x1a2f97,attributes:_0x221e82}=_0x21446e,[_0x5e2205,_0x366271]=_0x21446e['type']['split'](':'),_0x4afe45=this['_suggestions']['get'](_0x53dde8)||this['_createSuggestion'](_0x5e2205,_0x366271,_0x53dde8,_0x406a75,_0x221e82,_0x1a2f97);if(this['_addThreadToSuggestion'](_0x4afe45),this['_checkSuggestionCorrectness'](_0x4afe45,_0x5e2205,_0x366271||null,_0x406a75),_0x4afe45['createdAt']=_0x21446e['createdAt'],_0x4afe45['_isDataLoaded']=!0x0,_0x221e82&&_0x221e82['@external']){const _0x43eda5=_0x221e82['@external'],_0x35288d=this['_getExternalAuthor'](_0x43eda5['authorName']);_0x4afe45['authoredAt']=_0x43eda5['createdAt'],_0x4afe45['author']=_0x35288d,_0x4afe45['isExternal']=!0x0;}else _0x4afe45['authoredAt']=_0x21446e['createdAt'];switch(_0x21446e['data']&&(_0x4afe45['data']=_0x21446e['data']),_0x21446e['attributes']&&(_0x4afe45['attributes']=_0x21446e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4afe45['_saved']=!0x0),this['_suggestionState']['get'](_0x4afe45)){case'notReady':this['_suggestionState']['set'](_0x4afe45,'dataReady');break;case'markerReady':_0x4afe45['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4afe45])),this['_refreshSuggestionsChain'](new Set([_0x4afe45])),this['_suggestionState']['set'](_0x4afe45,'ready'),this['fire']('suggestionLoaded',_0x4afe45)):this['_suggestionState']['set'](_0x4afe45,'removed');}return _0x4afe45;}['acceptSuggestion'](_0x1175b8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x481547 of _0x1175b8['getAllAdjacentSuggestions']())_0x481547['accept']();});});}['discardSuggestion'](_0x33444e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2e90ab of _0x33444e['getAllAdjacentSuggestions']())_0x2e90ab['discard']();});});}['enableCommand'](_0x34efee,_0x4f83d8){const _0x39d78f=this['editor']['commands']['get'](_0x34efee);if(!_0x39d78f)throw new _0x398139('track-changes-command-not-found',this,{'commandName':_0x34efee});if(this['_enabledCommands']['has'](_0x39d78f))throw new _0x398139('track-changes-enable-command-twice',this,{'commandName':_0x34efee});this['_enabledCommands']['add'](_0x39d78f),_0x4f83d8&&_0x39d78f['on']('execute',(_0x19ec23,_0x3ca88d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3ca88d['length']>0x0&&_0x3ca88d[_0x3ca88d['length']-0x1]&&_0x3ca88d[_0x3ca88d['length']-0x1]['forceDefaultExecution']?_0x3ca88d['pop']():(_0x19ec23['return']=_0x4f83d8((..._0x2e1d4d)=>_0x39d78f['execute'](..._0x2e1d4d,{'forceDefaultExecution':!0x0}),..._0x3ca88d),_0x19ec23['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x24fc45){let _0x11c49f,_0x186343;const _0x249f71=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x11c49f=_0x24fc45();}catch(_0x16e0e4){_0x186343=_0x16e0e4;}return _0x249f71||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x186343&&_0x398139['rethrowUnexpectedError'](_0x186343,this),_0x11c49f;}['markInsertion'](_0x24fcaf,_0x2d6d62=null,_0x57de96={}){if(_0x24fcaf['isCollapsed'])return null;const _0x5eee34=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x57de96['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x34b860,meta:_0xfdd4c8}of this['_findSuggestions'](_0x24fcaf,'insertion'))if(_0xfdd4c8['isOwn']){if(!_0xfdd4c8['isNextTo']){if(_0xfdd4c8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x34b860,_0x57de96))continue;return _0x34b860;}if(Qt(_0x34b860,_0x57de96))return _0x34b860;this['_breakSuggestionMarker'](_0x34b860,_0x24fcaf['start'],_0x24fcaf['end']);break;}if(_0x2d6d62==_0x34b860['subType']&&Qt(_0x34b860,_0x57de96)){const _0x468fa4=_0x34b860['getFirstRange']();return _0x468fa4['start']['isEqual'](_0x24fcaf['end'])?this['_setSuggestionRange'](_0x34b860,this['_model']['createRange'](_0x24fcaf['start'],_0x468fa4['end'])):this['_setSuggestionRange'](_0x34b860,this['_model']['createRange'](_0x468fa4['start'],_0x24fcaf['end'])),_0x34b860;}}const _0xad4c44=_0x3f8d34(),_0x4516fd=_0x5eee34['id'],_0x367dfe=_0x2d6d62?'insertion:'+_0x2d6d62:'insertion',_0x5d2132=this['_setSuggestionData']({'id':_0xad4c44,'type':_0x367dfe,'createdAt':new Date(),'authorId':_0x4516fd,'attributes':_0x57de96});return this['_addSuggestionMarker'](_0x367dfe,_0xad4c44,_0x4516fd,_0x24fcaf),_0x5d2132;}['markMultiRangeInsertion'](_0x3cbe39,_0x3a428d='multi',_0x3eb549={}){const _0x191318=this['editor']['plugins']['get']('Users')['me'],_0xfe8d3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3a428d,'join');this['_trackingSessionId']&&(_0x3eb549['trackingSessionId']=this['_trackingSessionId']);for(const _0x9c56c5 of this['getSuggestions']())if(_0x9c56c5['author']['id']==_0x191318['id']&&'insertion'==_0x9c56c5['type']&&_0x9c56c5['subType']==_0x3a428d&&Qt(_0x9c56c5,_0x3eb549)&&(_0xfe8d3(_0x9c56c5['getRanges'](),_0x3cbe39)||_0xfe8d3(_0x3cbe39,_0x9c56c5['getRanges']()))){for(const _0x2b5d33 of _0x3cbe39)_0x9c56c5['addRange'](_0x2b5d33);return _0x9c56c5;}for(const {suggestion:_0x286b4b,meta:_0x22aa85}of this['_findSuggestions'](_0x3cbe39,'insertion')){if(!_0x22aa85['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x22aa85['containsRangeInObject'])continue;if(!Qt(_0x286b4b,_0x3eb549))continue;let _0x57cb05=!0x0;for(const _0x23c5e7 of _0x286b4b['getRanges']())for(const _0xbb5600 of _0x3cbe39)if(!_0x23c5e7['containsRange'](_0xbb5600)){_0x57cb05=!0x1;break;}if(_0x57cb05)return _0x286b4b;}const _0x146e65=_0x3f8d34(),_0x354c83=_0x191318['id'],_0x2ce625='insertion:'+_0x3a428d,_0x5510a3=this['_setSuggestionData']({'id':_0x146e65,'type':_0x2ce625,'createdAt':new Date(),'authorId':_0x354c83,'attributes':_0x3eb549});for(const _0x12b959 of _0x3cbe39)this['_addSuggestionMarker'](_0x2ce625,_0x146e65,_0x354c83,_0x12b959,T['getMultiRangeId']());return _0x5510a3;}['markInlineFormat'](_0x113b97,_0xbed9ae,_0x56ccc3=null,_0x50af88={}){if(_0x56ccc3=_0x56ccc3||Lt(_0xbed9ae),_0x113b97['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x50af88['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5834bc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x56ccc3,'accept');return this['forceDefaultExecution'](()=>_0x5834bc([_0x113b97],_0xbed9ae,_0x50af88)),null;}const _0x5e3d69=this['editor']['plugins']['get']('Users')['me'],_0xf3aa6c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3e4d6e,meta:_0x7530c}of this['_findSuggestions'](_0x113b97,'insertion'))_0x7530c['isOwn']&&!_0x7530c['isInsideObject']&&_0xf3aa6c['push'](..._0x3e4d6e['getRanges']());}const _0x514999=function(_0xc00e19,_0x492bf8){const _0x261013=[];for(const _0x1bbfdf of _0x492bf8){const _0xcbbeb0=_0xc00e19['getIntersection'](_0x1bbfdf);_0xcbbeb0&&_0x261013['push'](_0xcbbeb0);}return _0x261013;}(_0x113b97,_0xf3aa6c),_0x5bdd0f=function(_0x1d8182,_0x378b3f){const _0x28f10d=[_0x1d8182];for(const _0x434ca3 of _0x378b3f){let _0x7dabe3=0x0;for(;_0x7dabe3<_0x28f10d['length'];){const _0x218793=_0x28f10d[_0x7dabe3]['getDifference'](_0x434ca3);_0x28f10d['splice'](_0x7dabe3,0x1,..._0x218793),_0x7dabe3+=_0x218793['length'];}}return _0x28f10d;}(_0x113b97,_0xf3aa6c);_0x514999['length']&&this['_model']['change'](()=>{for(const _0x1e5cb2 of _0x514999){const _0xbc8702=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x56ccc3,'accept');this['forceDefaultExecution'](()=>_0xbc8702([_0x1e5cb2],_0xbed9ae,_0x50af88));}});for(const _0x4579c0 of _0x5bdd0f){let _0x4ef2fc=null,_0x5d1c1a=_0x4579c0['start'],_0x17a757=_0x4579c0['end'];for(const {suggestion:_0x27a934,meta:_0x5b847b}of this['_findSuggestions'](_0x4579c0,'formatInline')){if(!_0x5b847b['isOwn'])continue;if(_0x27a934['subType']!=_0x56ccc3)continue;if(!Qt(_0x27a934,_0x50af88))continue;const _0x1c2904=_0x27a934['getFirstRange']();if(_0x1c2904['containsRange'](_0x4579c0,!0x0))return null;_0x5d1c1a=_0x5d1c1a['isBefore'](_0x1c2904['start'])?_0x5d1c1a:_0x1c2904['start'],_0x17a757=_0x17a757['isAfter'](_0x1c2904['end'])?_0x17a757:_0x1c2904['end'],_0x4ef2fc?_0x1c2904['start']['isBefore'](_0x4ef2fc['getFirstRange']()['start'])?(_0x4ef2fc['removeMarkers'](),_0x4ef2fc=_0x27a934):_0x27a934['removeMarkers']():_0x4ef2fc=_0x27a934;}const _0x164c54=this['_model']['createRange'](_0x5d1c1a,_0x17a757);if(_0x4ef2fc)this['_setSuggestionRange'](_0x4ef2fc,_0x164c54);else{const _0x1d64c1=_0x3f8d34(),_0x4d6a42=_0x5e3d69['id'];this['_setSuggestionData']({'id':_0x1d64c1,'type':'formatInline:'+_0x56ccc3,'data':_0xbed9ae,'createdAt':new Date(),'authorId':_0x4d6a42,'attributes':_0x50af88}),this['_addSuggestionMarker']('formatInline:'+_0x56ccc3,_0x1d64c1,_0x4d6a42,_0x164c54);}}return null;}['markBlockFormat'](_0x2fcdea,_0x555490,_0x546beb=[],_0x5544c7=null,_0x39a1d7={}){_0x555490['formatGroupId']||(_0x555490['formatGroupId']=_0x555490['commandName']),_0x555490['multipleBlocks']=_0x2fcdea['is']('range'),_0x5544c7=_0x5544c7||Lt(_0x555490);const _0x5ceef8=_0x546beb['map'](_0x4ec7f3=>qt(_0x4ec7f3,this['_model'])),_0x1fda43=_0x2fcdea['is']('range')?_0x2fcdea:qt(_0x2fcdea,this['_model']);if(this['_trackingSessionId']&&(_0x39a1d7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x232f69=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5544c7,'accept');return this['forceDefaultExecution'](()=>_0x232f69([_0x1fda43],_0x555490,_0x39a1d7)),null;}_0x5ceef8['push'](_0x1fda43);let _0x307d1b=!0x0;for(const _0xf7517a of _0x5ceef8)if(!this['_rangeIsInLocalUserInsertion'](_0xf7517a)){_0x307d1b=!0x1;break;}if(_0x307d1b&&'always'!==this['_trackFormatChanges']){const _0x2efb41=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5544c7,'accept');return this['forceDefaultExecution'](()=>_0x2efb41([_0x1fda43],_0x555490,_0x39a1d7)),null;}let _0x47700d=null,_0x596f7b=_0x1fda43['start'],_0x579ac3=_0x1fda43['end'];for(const {suggestion:_0x996440,meta:_0x1f3968}of this['_findSuggestions'](_0x1fda43,'formatBlock')){if(!_0x1f3968['isOwn'])continue;if(_0x1f3968['isNextTo']||_0x1f3968['containsRangeInObject']||_0x1f3968['isInsideObject'])continue;if(_0x996440['data']['formatGroupId']!=_0x555490['formatGroupId'])continue;if(!Qt(_0x996440,_0x39a1d7))continue;const _0xa236ee=_0x996440['getFirstRange']();if(_0x996440['subType']==_0x5544c7){if(_0xa236ee['containsRange'](_0x1fda43,!0x0))return null;_0x596f7b=_0x596f7b['isBefore'](_0xa236ee['start'])?_0x596f7b:_0xa236ee['start'],_0x579ac3=_0x579ac3['isAfter'](_0xa236ee['end'])?_0x579ac3:_0xa236ee['end'],_0x47700d?_0xa236ee['start']['isBefore'](_0x47700d['getFirstRange']()['start'])?(_0x47700d['removeMarkers'](),_0x47700d=_0x996440):_0x996440['removeMarkers']():_0x47700d=_0x996440;}else{const _0x472adb=_0x1fda43['getIntersection'](_0xa236ee);this['_cutOutSuggestionMarker'](_0x996440,_0x472adb);}}const _0x32db57=this['editor']['plugins']['get']('Users')['me'],_0x3ecce1=_0x3f8d34(),_0x59389b=_0x32db57['id'];if(_0x47700d)return this['_setSuggestionRange'](_0x47700d,this['_model']['createRange'](_0x596f7b,_0x579ac3)),_0x47700d;{const _0x11f91e=this['_setSuggestionData']({'id':_0x3ecce1,'type':'formatBlock:'+_0x5544c7,'data':_0x555490,'createdAt':new Date(),'authorId':_0x59389b,'attributes':_0x39a1d7});return this['_addSuggestionMarker']('formatBlock:'+_0x5544c7,_0x3ecce1,_0x59389b,this['_model']['createRange'](_0x596f7b,_0x579ac3)),_0x11f91e;}}['markMultiRangeBlockFormat'](_0x5b5bfc,_0x2ae8b4,_0x1784bb=[],_0x5a0bfa=null,_0x3df16e={}){_0x2ae8b4['formatGroupId']||(_0x2ae8b4['formatGroupId']=_0x2ae8b4['commandName']);const _0x2433c9=_0x5b5bfc[0x0];_0x2ae8b4['multipleBlocks']=_0x2433c9['is']('range'),_0x5a0bfa=_0x5a0bfa||Lt(_0x2ae8b4);const _0x1b8a3a=_0x1784bb['map'](_0x482e6e=>qt(_0x482e6e,this['_model'])),_0x1e56f1=_0x2433c9['is']('range')?_0x5b5bfc:_0x5b5bfc['map'](_0x188a21=>qt(_0x188a21,this['_model']));if(this['_trackingSessionId']&&(_0x3df16e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3b3d63=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a0bfa,'accept');return this['forceDefaultExecution'](()=>_0x3b3d63(_0x1e56f1,_0x2ae8b4,_0x3df16e)),null;}_0x1b8a3a['push'](..._0x1e56f1);let _0x4c5646=!0x0;for(const _0x4749db of _0x1b8a3a)if(!this['_rangeIsInLocalUserInsertion'](_0x4749db)){_0x4c5646=!0x1;break;}if(_0x4c5646&&'always'!==this['_trackFormatChanges']){const _0x2d475a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a0bfa,'accept');return this['forceDefaultExecution'](()=>_0x2d475a(_0x1e56f1,_0x2ae8b4,_0x3df16e)),null;}const _0x372f87=this['editor']['plugins']['get']('Users')['me'];for(const _0x12e021 of this['getSuggestions']()){const _0x2a2c50=_0x12e021['data'];if(_0x12e021['author']['id']!=_0x372f87['id'])continue;if('formatBlock'!=_0x12e021['type']||_0x2a2c50['formatGroupId']!=_0x2ae8b4['formatGroupId'])continue;if(!Qt(_0x12e021,_0x3df16e))continue;const _0x519b91=_0x12e021['subType']==_0x5a0bfa;for(let _0x2afbf6=0x0;_0x2afbf6<_0x1e56f1['length'];_0x2afbf6++){const _0x55a7bc=_0x1e56f1[_0x2afbf6];for(const _0x4c93d3 of _0x12e021['getMarkers']()){const _0x312160=_0x4c93d3['getRange']();if(_0x55a7bc['isEqual'](_0x312160)){_0x519b91?(_0x1e56f1['splice'](_0x2afbf6,0x1),_0x2afbf6--):_0x12e021['removeMarker'](_0x4c93d3['name']);break;}}}}if(0x0==_0x1e56f1['length'])return null;const _0x26a54c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a0bfa,'join');for(const _0x56d2b7 of this['getSuggestions']()){const _0x10270c=_0x56d2b7['data'];if(_0x56d2b7['author']['id']==_0x372f87['id']&&('formatBlock'==_0x56d2b7['type']&&_0x10270c['formatGroupId']==_0x2ae8b4['formatGroupId']&&_0x56d2b7['subType']==_0x5a0bfa&&Qt(_0x56d2b7,_0x3df16e)&&(_0x26a54c(_0x56d2b7['getRanges'](),_0x1e56f1)||_0x26a54c(_0x1e56f1,_0x56d2b7['getRanges']())))){for(const _0x1d9358 of _0x1e56f1)_0x56d2b7['addRange'](_0x1d9358);return _0x56d2b7;}}const _0x142f31=_0x3f8d34(),_0x239bb6=_0x372f87['id'],_0x3a7457='formatBlock:'+_0x5a0bfa,_0x1d0b22=this['_setSuggestionData']({'id':_0x142f31,'type':_0x3a7457,'data':_0x2ae8b4,'createdAt':new Date(),'authorId':_0x239bb6,'attributes':_0x3df16e});for(const _0xd2a29b of _0x1e56f1)this['_addSuggestionMarker'](_0x3a7457,_0x142f31,_0x239bb6,_0xd2a29b,T['getMultiRangeId']());return _0x1d0b22;}['markDeletion'](_0x1bbcb9,_0x237554=null,_0x4c9572={}){if(_0x1bbcb9['isCollapsed'])return null;const _0x334c27=this['editor']['plugins']['get']('Users')['me'],_0x483104=new _0x360b1f(_0x1bbcb9['start'],_0x1bbcb9['end']);this['_trackingSessionId']&&(_0x4c9572['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4761ae,meta:_0x4ff1e9}of this['_findSuggestions'](_0x483104,'insertion'))if(_0x4ff1e9['isOwn']&&!_0x4ff1e9['isNextTo']){if(_0x4761ae['isMultiRange']){const _0x58370f=_0x4761ae['getRanges']()['filter'](_0x4a68a9=>'$graveyard'!=_0x4a68a9['root']['rootName']);_0x58370f['every'](_0x3b9d91=>_0x483104['containsRange'](_0x3b9d91,!0x0))&&_0x4761ae['discard']();if(_0x58370f['some'](_0x5d9a18=>_0x5d9a18['containsRange'](_0x483104,!0x0))){const _0x164762=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x237554,'accept');return this['forceDefaultExecution'](()=>_0x164762([_0x483104],null,_0x4c9572)),null;}}else{const _0x16dd99=_0x483104['getIntersection'](_0x4761ae['getFirstRange']());null!==_0x16dd99&&_0x4761ae['_onDiscard']([_0x16dd99],null,_0x4c9572);}}if(_0x483104['detach'](),_0x483104['isCollapsed']||'$graveyard'==_0x483104['root']['rootName'])return null;let _0xe012b9=null,_0x3ff0e8=_0x483104['start'],_0x8b2f1b=_0x483104['end'];const _0x541cfd=this['_findSuggestions'](_0x483104,'deletion');for(const {suggestion:_0x3c1962,meta:_0x336bc6}of _0x541cfd){const _0x1bfb32=this['_model']['createRange'](_0x3ff0e8,_0x8b2f1b);if(_0x336bc6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x336bc6['containsRangeInObject']&&!_0x336bc6['isInsideObject'])){if(_0x3c1962['isMultiRange']){if(!Qt(_0x3c1962,_0x4c9572))continue;let _0x4afb90=!0x0;for(const _0x3e7ef5 of _0x3c1962['getRanges']()){if(_0x3e7ef5['containsRange'](_0x1bfb32,!0x0))return _0x3c1962;_0x1bfb32['containsRange'](_0x3e7ef5)||(_0x4afb90=!0x1);}_0x4afb90&&_0x3c1962['discard']();}else{const _0x3b8a36=_0x3c1962['getFirstRange']();if(_0x3b8a36['containsRange'](_0x1bfb32,!0x0))return _0x3c1962;if(!Qt(_0x3c1962,_0x4c9572)){_0x1bfb32['containsRange'](_0x3b8a36)?_0x3c1962['removeMarkers']():_0x3b8a36['containsPosition'](_0x3ff0e8)?_0x3ff0e8=_0x3b8a36['end']:_0x3b8a36['containsPosition'](_0x8b2f1b)&&(_0x8b2f1b=_0x3b8a36['start']);continue;}_0x3ff0e8=_0x3ff0e8['isBefore'](_0x3b8a36['start'])?_0x3ff0e8:_0x3b8a36['start'],_0x8b2f1b=_0x8b2f1b['isAfter'](_0x3b8a36['end'])?_0x8b2f1b:_0x3b8a36['end'],_0x4c9572=Object['assign']({},_0x3c1962['attributes']),_0xe012b9?_0x3b8a36['start']['isBefore'](_0xe012b9['getFirstRange']()['start'])?(_0xe012b9['removeMarkers'](),_0xe012b9=_0x3c1962):_0x3c1962['removeMarkers']():_0xe012b9=_0x3c1962;}}}if(_0xe012b9)return this['_setSuggestionRange'](_0xe012b9,this['_model']['createRange'](_0x3ff0e8,_0x8b2f1b)),_0xe012b9;{const _0x18c335=_0x3f8d34(),_0x1994f8=this['_model']['createRange'](_0x3ff0e8,_0x8b2f1b),_0x1cbce7=_0x334c27['id'],_0x35d1f4=_0x237554?'deletion:'+_0x237554:'deletion',_0x56f917=this['_setSuggestionData']({'id':_0x18c335,'type':_0x35d1f4,'createdAt':new Date(),'authorId':_0x1cbce7,'attributes':_0x4c9572});return this['_addSuggestionMarker'](_0x35d1f4,_0x18c335,_0x1cbce7,_0x1994f8),_0x56f917;}}['markMultiRangeDeletion'](_0x1ba3a3,_0x42f598='multi',_0x1a6fbc={}){const _0x2f9c43=this['editor']['plugins']['get']('Users')['me'],_0xfc1c81=_0x1ba3a3['map'](_0x1b6245=>new _0x360b1f(_0x1b6245['start'],_0x1b6245['end'])),_0x91ee8=new Set();this['_trackingSessionId']&&(_0x1a6fbc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3e9409,meta:_0x412bff}of this['_findSuggestions'](_0xfc1c81,'insertion'))_0x412bff['isOwn']&&!_0x412bff['isNextTo']&&_0x91ee8['add'](_0x3e9409);for(const _0x4fd73b of _0x91ee8)if(_0x4fd73b['isMultiRange']){const _0x188198=_0x4fd73b['getRanges']();(!_0x4fd73b['attributes']||!_0x4fd73b['attributes']['skipNestingCheck'])&&(_0x188198['every'](_0x97121c=>_0xfc1c81['some'](_0x33646f=>_0x33646f['containsRange'](_0x97121c,!0x0)))&&_0x4fd73b['discard']());if(_0xfc1c81['every'](_0x2077c3=>_0x188198['some'](_0x2cab30=>_0x2cab30['containsRange'](_0x2077c3,!0x0)))){const _0x4ec977=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42f598,'accept');return this['forceDefaultExecution'](()=>_0x4ec977(_0x1ba3a3,null,_0x1a6fbc)),null;}}else{const _0x4418b8=_0x4fd73b['getFirstRange']();_0xfc1c81['some'](_0x1651b5=>_0x1651b5['containsRange'](_0x4418b8,!0x0))&&_0x4fd73b['discard']();if(_0xfc1c81['every'](_0x295d9e=>_0x4418b8['containsRange'](_0x295d9e,!0x0))){const _0x5ee3a3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42f598,'accept');return this['forceDefaultExecution'](()=>_0x5ee3a3(_0xfc1c81,null,_0x1a6fbc)),null;}}const _0x3e0607=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42f598,'join');let _0x370e7d=null;for(const _0xac213 of this['getSuggestions']())if(_0xac213['author']['id']==_0x2f9c43['id']&&_0xac213['isInContent']&&'deletion'==_0xac213['type']&&_0xac213['subType']==_0x42f598&&Qt(_0xac213,_0x1a6fbc)&&(_0x3e0607(_0xac213['getRanges'](),_0xfc1c81)||_0x3e0607(_0xfc1c81,_0xac213['getRanges']()))){if(_0x370e7d){if(_0xac213['commentThread']&&_0xac213['commentThread']['length'])continue;for(const _0x49a289 of _0xac213['getRanges']())_0x370e7d['isIntersectingWithRange'](_0x49a289)||_0x370e7d['addRange'](_0x49a289);_0xac213['removeMarkers']();}else{_0x370e7d=_0xac213;for(const _0x16acff of _0xfc1c81)_0xac213['isIntersectingWithRange'](_0x16acff)||_0xac213['addRange'](_0x16acff);}}if(_0x370e7d)return _0x370e7d;_0x91ee8['clear']();for(const {suggestion:_0x408af3,meta:_0x58329a}of this['_findSuggestions'](_0xfc1c81,'deletion'))_0x58329a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x58329a['containsRangeInObject']&&!_0x58329a['isInsideObject'])&&Qt(_0x408af3,_0x1a6fbc)&&_0x91ee8['add'](_0x408af3);for(const _0x5aeeda of _0x91ee8){const _0x535a44=_0x5aeeda['getRanges']();if(!_0x1a6fbc||!_0x1a6fbc['skipNestingCheck']){if(_0xfc1c81['every'](_0x978748=>_0x535a44['some'](_0x3837cb=>_0x3837cb['containsRange'](_0x978748,!0x0))))return _0x5aeeda;}(!_0x5aeeda['attributes']||!_0x5aeeda['attributes']['skipNestingCheck'])&&(_0x535a44['every'](_0x403a0a=>_0xfc1c81['some'](_0x591ad7=>_0x591ad7['containsRange'](_0x403a0a,!0x0)))&&_0x5aeeda['discard']());}const _0x496b32=_0x3f8d34(),_0x448938=_0x2f9c43['id'],_0x352eab='deletion:'+_0x42f598,_0x55552b=this['_setSuggestionData']({'id':_0x496b32,'type':_0x352eab,'createdAt':new Date(),'authorId':_0x448938,'attributes':_0x1a6fbc});for(const _0x42333e of _0xfc1c81)_0x42333e['detach'](),_0x42333e['isCollapsed']||'$graveyard'==_0x42333e['root']['rootName']||this['_addSuggestionMarker'](_0x352eab,_0x496b32,_0x448938,_0x42333e,T['getMultiRangeId']());return _0x55552b;}['markAttributeChange'](_0x5bd145,_0x4c788d,_0xd4c925,_0x136e53,_0xce5b53){if(_0x5bd145['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2214ee=this['editor']['plugins']['get']('Users')['me']['id'],_0x5cf5ac=Array['from'](this['_suggestions']['values']())['filter'](_0x120acb=>'attribute'==_0x120acb['type']&&_0x120acb['data']['key']==_0x4c788d&&_0x120acb['isIntersectingWithRange'](_0x5bd145));if(this['_trackingSessionId']&&(_0xce5b53['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x35680e=this['_findSuggestions'](_0x5bd145,'insertion')['filter'](({meta:_0x1e9138})=>_0x1e9138['isOwn']&&!_0x1e9138['isInsideObject']&&!_0x1e9138['isNextTo'])['map'](({suggestion:_0x5d0589})=>_0x5d0589);_0x5cf5ac['unshift'](..._0x35680e);}const _0x5ccffc=new Map([[_0x5bd145,_0xd4c925]]);for(const _0x31be32 of _0x5cf5ac){const _0x7c279d='attribute'==_0x31be32['type']?_0x31be32['data']['oldValue']:void 0x0,_0x367f1e=_0x31be32['getFirstRange'](),_0x40e46=Array['from'](_0x5ccffc['keys']())['find'](_0x1baaad=>_0x1baaad['isIntersecting'](_0x367f1e));if(!_0x40e46)continue;const _0x507341=_0x40e46['getDifference'](_0x367f1e);this['_isBlockAttribute'](_0x4c788d)&&'insertion'==_0x31be32['type']&&0x0!=_0x507341['length']||(_0x5ccffc['delete'](_0x40e46),_0x507341['forEach'](_0xfc24d2=>{_0x5ccffc['set'](_0xfc24d2,_0xd4c925);}),'insertion'!=_0x31be32['type']&&_0x7c279d!=_0x136e53&&_0x5ccffc['set'](_0x40e46['getIntersection'](_0x367f1e),_0x7c279d));}const _0x7854f=[];for(const [_0x5b9145,_0x239503]of _0x5ccffc){const _0x111449=_0x3f8d34(),_0x1cdb1b={'key':_0x4c788d,'oldValue':_0x239503,'newValue':_0x136e53};_0x4c788d['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':_0x4c788d});const _0x1b8cd5=('attribute:'+(_0x4c788d+'|'+Lt({'newValue':_0x136e53})))['substring'](0x0,0x3c),_0x2fece6=this['_setSuggestionData']({'id':_0x111449,'type':_0x1b8cd5,'data':_0x1cdb1b,'createdAt':new Date(),'authorId':_0x2214ee,'attributes':_0xce5b53});_0x7854f['push'](_0x2fece6),this['_addSuggestionMarker'](_0x1b8cd5,_0x111449,_0x2214ee,_0x5b9145);}return _0x7854f;}['enableDefaultAttributesIntegration'](_0x2cf22e){this['enableCommand'](_0x2cf22e,(_0x16192c,..._0x23147a)=>{this['recordAttributeChanges'](()=>{_0x16192c(..._0x23147a);});});}['registerBlockAttribute'](_0x3c0ae3){this['_blockAttributeKeys']['add'](_0x3c0ae3);}['registerInlineAttribute'](_0x1316bc){this['_inlineAttributeKeys']['add'](_0x1316bc);}['startTrackingSession'](_0x34c1e9){return this['_trackingSessionId']=void 0x0!==_0x34c1e9?_0x34c1e9:_0x3f8d34(),this['_trackingSessionId'];}['_getAttributeKey'](_0x33b6d4){return'attribute'==_0x33b6d4['type']?_0x33b6d4['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x15dc82,_0x4882fa){const _0x33e33d=_0x15dc82['getFirstMarker']();this['_model']['change'](_0x45bddb=>{_0x45bddb['updateMarker'](_0x33e33d,{'range':_0x4882fa});});}['_addThreadToSuggestion'](_0x46e167){const _0x1e2d23=_0x46e167['id'],_0x4c27cf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1e2d23)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4c27cf,'threadId':_0x1e2d23,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x510c59=this['_commentsRepository']['getCommentThread'](_0x1e2d23);_0x510c59['unbind']('isRemovable'),_0x510c59['isRemovable']=!0x1,_0x46e167['commentThread']=_0x510c59;}['_checkSuggestionCorrectness'](_0x1284ae,_0xc16642,_0x451807,_0xe94a06){if(_0x1284ae['type']!=_0xc16642||_0x1284ae['subType']!=_0x451807||_0x1284ae['creator']['id']!=_0xe94a06)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x398139('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1b993d,_0x47c5a8){const _0x9cbb01=_0x1b993d['getFirstRange']();if(_0x47c5a8['isEqual'](_0x9cbb01))_0x1b993d['removeMarkers']();else{if(_0x9cbb01['containsRange'](_0x47c5a8)){const _0x710321=this['_model']['createPositionAt'](_0x47c5a8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1b993d,this['_model']['createRange'](_0x9cbb01['start'],_0x710321));const _0x3fb877=_0x3f8d34(),_0x240a07=_0x1b993d['creator']['id'],_0x15af49=_0x1b993d['type']+':'+_0x1b993d['subType'];this['_setSuggestionData']({'id':_0x3fb877,'type':_0x15af49,'createdAt':new Date(),'authorId':_0x240a07,'data':_0x1b993d['data'],'attributes':_0x1b993d['attributes']});const _0x53e59a=this['_model']['createPositionAt'](_0x47c5a8['end']['parent'],'after'),_0x78d516=this['_model']['createRange'](_0x53e59a,_0x9cbb01['end']);this['_addSuggestionMarker'](_0x15af49,_0x3fb877,_0x240a07,_0x78d516);}else{if(_0x9cbb01['containsPosition'](_0x47c5a8['start'])){const _0x357a65=this['_model']['createPositionAt'](_0x47c5a8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1b993d,this['_model']['createRange'](_0x9cbb01['start'],_0x357a65));}else{const _0x10eea9=this['_model']['createPositionAt'](_0x47c5a8['end']['parent'],'after');this['_setSuggestionRange'](_0x1b993d,this['_model']['createRange'](_0x10eea9,_0x9cbb01['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5856ec){for(const {suggestion:_0x33443f,meta:_0x3d250a}of this['_findSuggestions'](_0x5856ec,'insertion')){if(!_0x3d250a['isOwn'])continue;const _0x5e4ce0=_0x33443f['getRanges']();for(const _0x292729 of _0x5e4ce0)if(!_0x5856ec['getDifference'](_0x292729)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x39d66b){const _0x17e0fc=this['editor']['plugins']['get']('Users')['getUser'](_0x39d66b);if(!_0x17e0fc)throw new _0x398139('track-changes-user-not-found',this);return _0x17e0fc;}['_getExternalAuthor'](_0xbd4779){const _0x4fecaf=this['editor']['plugins']['get']('Users'),_0x334180=_0x20757c('external:'+_0xbd4779),_0x5f36ca=_0x4fecaf['getUser'](_0x334180);return _0x5f36ca||_0x4fecaf['addUser']({'id':_0x334180,'name':_0xbd4779});}['_createSuggestion'](_0x4efb45,_0x3d379f,_0x44c9ef,_0x34271d,_0x514a14,_0x5edc47){const _0x319c97=this['_getAuthorFromId'](_0x34271d),_0x190106=this['_suggestionFactory']['buildSuggestion'](_0x4efb45,_0x3d379f,_0x44c9ef,_0x319c97,_0x514a14,_0x3a33a8=>{this['_updateSuggestionData'](_0x44c9ef,{'attributes':_0x3a33a8});const _0x17c698=this['getSuggestion'](_0x44c9ef);this['_joinWithAdjacentSuggestions'](new Set([_0x17c698])),this['_refreshSuggestionsChain'](new Set([_0x17c698]));},_0x5edc47);return this['listenTo'](_0x190106,'accept',()=>{this['_updateSuggestionData'](_0x44c9ef,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x190106,'discard',()=>{this['_updateSuggestionData'](_0x44c9ef,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x44c9ef,_0x190106),this['_suggestionState']['set'](_0x190106,'notReady'),_0x190106;}['_splitMarkerName'](_0x2dea30){const _0x18afaa=_0x2dea30['split'](':');return{'group':_0x18afaa[0x0],'type':_0x18afaa[0x1],'subType':_0x18afaa['length']>=0x5?_0x18afaa[0x2]:null,'id':_0x18afaa['length']<0x5?_0x18afaa[0x2]:_0x18afaa[0x3],'authorId':_0x18afaa['length']<0x5?_0x18afaa[0x3]:_0x18afaa[0x4],'markerCount':0x6==_0x18afaa['length']?_0x18afaa[0x5]:null};}['_breakSuggestionMarker'](_0x35bf2b,_0x2ea001,_0x5619c0){const _0x4ef1c2=_0x35bf2b['getFirstRange'](),_0x41186f=_0x4ef1c2['start'],_0xbe0bc8=_0x4ef1c2['end'];this['_setSuggestionRange'](_0x35bf2b,this['_model']['createRange'](_0x41186f,_0x2ea001));const _0x294375=_0x3f8d34(),_0x38013f=_0x35bf2b['creator']['id'],_0x36c5bf=_0x35bf2b['type']+(_0x35bf2b['subType']?':'+_0x35bf2b['subType']:'');this['_setSuggestionData']({'id':_0x294375,'type':_0x36c5bf,'createdAt':new Date(),'authorId':_0x38013f,'originalSuggestionId':_0x35bf2b['_originalSuggestionId']||_0x35bf2b['id'],'attributes':_0x35bf2b['attributes'],'data':_0x35bf2b['data']});const _0x5c30c4=this['_getAttributeKey'](_0x35bf2b);('formatBlock'==_0x35bf2b['type']||_0x5c30c4&&this['_isBlockAttribute'](_0x5c30c4))&&(_0x5619c0=this['_model']['createPositionBefore'](_0x5619c0['parent'])),this['_addSuggestionMarker'](_0x36c5bf,_0x294375,_0x38013f,this['_model']['createRange'](_0x5619c0,_0xbe0bc8));}['_findSuggestions'](_0x6468c8,_0x331cc7=null){const _0x6a0a66=[],_0x76a892=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x6468c8)||(_0x6468c8=[_0x6468c8]);for(const _0x55a3df of this['getSuggestions']()){if(!_0x55a3df['isInContent'])continue;if(_0x331cc7&&_0x55a3df['type']!=_0x331cc7)continue;let _0x14e2ef=!0x1;for(const _0x3ec03 of _0x55a3df['getRanges']()){for(const _0x527acb of _0x6468c8){const _0x219c75=_0x527acb['start']['isEqual'](_0x3ec03['end'])||_0x527acb['end']['isEqual'](_0x3ec03['start']);if(_0x219c75||_0x527acb['getIntersection'](_0x3ec03)){const _0x4ce150=_0x527acb['containsRange'](_0x3ec03)&&Ft(this['_model']['schema'],_0x3ec03['start'],_0x527acb),_0x4cc7ee=_0x3ec03['containsRange'](_0x527acb)&&Ft(this['_model']['schema'],_0x527acb['start'],_0x3ec03);_0x6a0a66['push']({'suggestion':_0x55a3df,'meta':{'isOwn':_0x76a892==_0x55a3df['author'],'isNextTo':_0x219c75,'isInsideObject':_0x4ce150,'containsRangeInObject':_0x4cc7ee}}),_0x14e2ef=!0x0;break;}}if(_0x14e2ef)break;}}return _0x6a0a66;}['_addSuggestionMarker'](_0x352aa8,_0x43152d,_0x470cae,_0x429a88,_0x763d78){this['_model']['change'](_0x5bac9e=>{let _0x137c01='suggestion:'+_0x352aa8+':'+_0x43152d+':'+_0x470cae;_0x763d78&&(_0x137c01=_0x137c01+':'+_0x763d78),_0x5bac9e['addMarker'](_0x137c01,{'range':_0x429a88,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3f036e){const _0x3bf888=_0x3f036e['previous'],_0x1333a7=_0x3f036e['next'];_0x3f036e['previous']=null,_0x3f036e['next']=null,null!=_0x3bf888&&_0x3bf888['next']==_0x3f036e&&(_0x3bf888['next']=_0x1333a7),null!=_0x1333a7&&_0x1333a7['previous']==_0x3f036e&&(_0x1333a7['previous']=_0x3bf888),'ready'==this['_suggestionState']['get'](_0x3f036e)&&(this['_suggestionState']['set'](_0x3f036e,'removed'),this['fire']('suggestionUnloaded',_0x3f036e,_0x3bf888,_0x1333a7));}['_setSuggestionData'](_0x4c6c03){const _0x33b7fd=_0x4c6c03['id'],_0x48956d=this['addSuggestionData'](_0x4c6c03);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x56cf95=this['editor']['plugins']['get']('PendingActions'),_0x1bb745=_0x48956d['hasComments'],_0x25cace=_0x48956d['subType']?_0x48956d['type']+':'+_0x48956d['subType']:_0x48956d['type'],_0x450c36=this['editor']['locale'],_0x1a59a9=_0x56cf95['add'](o(_0x450c36,'PENDING_ACTION_SUGGESTION')),_0x4bbdcc={'id':_0x33b7fd,'type':_0x25cace,'hasComments':_0x1bb745,'data':_0x4c6c03['data']||null,'originalSuggestionId':_0x4c6c03['originalSuggestionId']||null,'attributes':_0x48956d['attributes']};this['_adapter']['addSuggestion'](_0x4bbdcc)['then'](_0x39ee81=>{_0x48956d['_saved']=!0x0,_0x56cf95['remove'](_0x1a59a9),_0x39ee81&&_0x39ee81['createdAt']&&(this['_suggestions']['get'](_0x33b7fd)['createdAt']=_0x39ee81['createdAt']);})['catch'](_0x32c625=>{throw _0x46e55b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x48956d['discard']();}),_0x48956d['stopListening'](),this['_suggestions']['delete'](_0x48956d['id']),this['_suggestionState']['delete'](_0x48956d),_0x32c625;});}return _0x48956d;}['_isBlockAttribute'](_0x4efc76){return this['_blockAttributeKeys']['has'](_0x4efc76);}['_updateSuggestionData'](_0x11c3db,_0x36d9f9){const _0x43f1a1=this['editor']['plugins']['get']('PendingActions'),_0x56b6c1=this['getSuggestion'](_0x11c3db);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x56b6c1['_saved']){const _0x2ec75e=_0x43f1a1['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x11c3db,_0x36d9f9)['then'](()=>{_0x43f1a1['remove'](_0x2ec75e);});}else _0x56b6c1['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x11c3db,_0x36d9f9);});}}['_getSuggestionData'](_0x1f25b1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x398139('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1f25b1);}['_handleNewSuggestionMarker'](_0x1981ea){const {id:_0x211edc,type:_0x2a5d22,subType:_0x4e99bb,authorId:_0x272b51}=this['_splitMarkerName'](_0x1981ea),_0x4e1aee=this['_suggestions']['get'](_0x211edc)||this['_createSuggestion'](_0x2a5d22,_0x4e99bb,_0x211edc,_0x272b51,{});switch(this['_checkSuggestionCorrectness'](_0x4e1aee,_0x2a5d22,_0x4e99bb,_0x272b51),this['_suggestionState']['get'](_0x4e1aee)){case'notReady':this['_getSuggestionData'](_0x211edc)['then'](_0x3e03ba=>{let _0x3f2350=Promise['resolve']();_0x3e03ba['hasComments']&&(_0x3f2350=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x211edc})),_0x3f2350['then'](()=>{this['addSuggestionData'](_0x3e03ba)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4e1aee,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x211edc,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4e1aee,'ready'),this['fire']('suggestionLoaded',_0x4e1aee);break;case'ready':this['fire']('suggestionChanged',_0x4e1aee);}return _0x4e1aee['addMarkerName'](_0x1981ea),_0x4e1aee;}['_refreshSuggestionsChain'](_0x30a573){const _0x3eb9e8=Array['from'](_0x30a573),_0x49ec35=_0x3eb9e8['filter'](_0x94037=>'attribute'==_0x94037['type']);this['_refreshAttributeSuggestionsChain'](_0x49ec35);const _0xc86443=_0x3eb9e8['filter'](_0x5bc4cd=>!_0x5bc4cd['isMultiRange']&&'attribute'!=_0x5bc4cd['type']),_0x4bd786=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49cbf1=>!_0x49cbf1['isMultiRange']&&'attribute'!=_0x49cbf1['type']),_0x2f35c7=_0x4bd786['filter'](_0x4379a6=>!_0x30a573['has'](_0x4379a6)),_0xe85133=new Map(_0x4bd786['map'](_0x472253=>[_0x472253,this['_suggestionFactory']['getSuggestionCallback'](_0x472253['type'],_0x472253['subType'],'chain')])),_0x17285a=new Map(_0x4bd786['map'](_0x333339=>[_0x333339,_0x333339['getFirstRange']()])),_0x3c7dd8=new Set(),_0x4d9b1f=new Set();for(let _0x1bef26=0x0;_0x1bef26<_0xc86443['length'];_0x1bef26++)_0x102fcb(_0xc86443[_0x1bef26],_0xc86443,_0x1bef26+0x1);for(let _0x5bf4f5=0x0;_0x5bf4f5<_0xc86443['length'];_0x5bf4f5++)_0x102fcb(_0xc86443[_0x5bf4f5],_0x2f35c7,0x0);const _0x4462aa=new Set();for(let _0x1887b7=0x0;_0x1887b7<_0xc86443['length'];_0x1887b7++){const _0x4c0089=_0xc86443[_0x1887b7];!_0x4d9b1f['has'](_0x4c0089)&&_0x4c0089['previous']&&(_0x4462aa['add'](_0x4c0089['previous']),_0x4c0089['previous']['next']===_0x4c0089&&(_0x4c0089['previous']['next']=null),_0x4c0089['previous']=null),!_0x3c7dd8['has'](_0x4c0089)&&_0x4c0089['next']&&(_0x4462aa['add'](_0x4c0089['next']),_0x4c0089['next']['previous']===_0x4c0089&&(_0x4c0089['next']['previous']=null),_0x4c0089['next']=null);}function _0x102fcb(_0x4de073,_0x2a35a3,_0x324097){for(let _0x5f6f13=_0x324097;_0x5f6f13<_0x2a35a3['length'];_0x5f6f13++){const _0x63b4c7=_0x468f7d(_0x4de073,_0x2a35a3[_0x5f6f13]);_0x63b4c7&&(_0x63b4c7[0x0]['next']=_0x63b4c7[0x1],_0x63b4c7[0x1]['previous']=_0x63b4c7[0x0],_0x3c7dd8['add'](_0x63b4c7[0x0]),_0x4d9b1f['add'](_0x63b4c7[0x1]));}}function _0x468f7d(_0x448406,_0x554eb8){if(_0x448406['author']['id']!==_0x554eb8['author']['id'])return null;const _0x3cbc4a=_0xe85133['get'](_0x448406)(_0x448406,_0x554eb8,_0x17285a['get'](_0x448406),_0x17285a['get'](_0x554eb8));if(!_0x3cbc4a)return null;return _0xe85133['get'](_0x554eb8)(_0x448406,_0x554eb8,_0x17285a['get'](_0x448406),_0x17285a['get'](_0x554eb8))?_0x3cbc4a[0x1]['commentThread']&&_0x3cbc4a[0x1]['commentThread']['length']?null:_0x3cbc4a:null;}_0x4462aa['size']&&this['_refreshSuggestionsChain'](_0x4462aa);}['_refreshAttributeSuggestionsChain'](_0x347fd6){if(0x0==_0x347fd6['length'])return;const _0x257b64=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56b6c0=>'attribute'==_0x56b6c0['type']&&_0x56b6c0['_isDataLoaded']),_0x5ef7c6=[],_0x2f555a=new Map();for(const _0x31f225 of _0x257b64){const _0x119f3f=_0x20757c(_0x31f225['attributes']);_0x2f555a['has'](_0x119f3f)||(_0x2f555a['set'](_0x119f3f,_0x5ef7c6['length']),_0x5ef7c6['push']([]));const _0xa6ade4=_0x2f555a['get'](_0x119f3f);_0x5ef7c6[_0xa6ade4]['push'](_0x31f225);}!(function(){_0x5ef7c6['sort']((_0x30bb75,_0x1b86a5)=>{const _0x4e874f=_0x30bb75[0x0]['createdAt'],_0x4b8765=_0x1b86a5[0x0]['createdAt'];return _0x4e874f==_0x4b8765?_0x30bb75[0x0]['attributes']['groupId']<_0x1b86a5[0x0]['attributes']['groupId']?-0x1:0x1:_0x4e874f<_0x4b8765?-0x1:0x1;});for(const _0xebfff9 of _0x5ef7c6)_0xebfff9['sort']((_0x347c71,_0xeb7d8c)=>_0x347c71['id']<_0xeb7d8c['id']?-0x1:0x1);}());for(let _0x15060d=0x0;_0x15060d<_0x5ef7c6['length'];_0x15060d++){if(0x0==_0x5ef7c6[_0x15060d]['length'])continue;const _0x259fab=[];for(let _0x2dfa47=_0x15060d+0x1;_0x2dfa47<_0x5ef7c6['length'];_0x2dfa47++)0x0!=_0x5ef7c6[_0x2dfa47]['length']&&_0x582c15(_0x5ef7c6[_0x15060d],_0x5ef7c6[_0x2dfa47])&&_0x259fab['push'](_0x2dfa47);for(const _0x20a772 of _0x259fab)_0x5ef7c6[_0x15060d]=_0x5ef7c6[_0x15060d]['concat'](_0x5ef7c6[_0x20a772]),_0x5ef7c6[_0x20a772]=[];}for(const _0x22a86c of _0x5ef7c6)for(let _0x4ac7f8=0x0;_0x4ac7f8<_0x22a86c['length'];_0x4ac7f8++){const _0x1db523=_0x22a86c[_0x4ac7f8+0x1]||null;_0x22a86c[_0x4ac7f8]['next']!==_0x1db523&&(_0x22a86c[_0x4ac7f8]['next']=_0x1db523);}for(const _0x2b8c93 of _0x5ef7c6)for(let _0x5e346a=0x0;_0x5e346a<_0x2b8c93['length'];_0x5e346a++){const _0x50dffe=_0x2b8c93[_0x5e346a-0x1]||null;_0x2b8c93[_0x5e346a]['previous']!==_0x50dffe&&(_0x2b8c93[_0x5e346a]['previous']=_0x50dffe);}function _0x582c15(_0x5a5422,_0x294dd4){if(_0x5a5422[0x0]['attributes']['groupId']!==_0x294dd4[0x0]['attributes']['groupId']&&_0x5a5422[0x0]['author']!==_0x294dd4[0x0]['author'])return!0x1;if(!function(_0x839316,_0xf77684){if(!_0x839316['hasComments']&&!_0xf77684['hasComments'])return!0x0;if(_0x839316['hasComments']&&_0xf77684['hasComments'])return!0x1;if(_0x839316['hasComments']&&_0xf77684['createdAt']<_0x839316['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xf77684['hasComments']&&_0x839316['createdAt']<_0xf77684['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5a5422[0x0],_0x294dd4[0x0]))return!0x1;const _0x43d9d9=Ut(_0x5a5422[0x0]['attributes'],['groupId','trackingSessionId']),_0x20f569=Ut(_0x294dd4[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4aed31(_0x43d9d9,_0x20f569))return!0x1;if(_0x5a5422[0x0]['attributes']['groupId']==_0x294dd4[0x0]['attributes']['groupId'])return!0x0;if(_0x5a5422[0x0]['attributes']['trackingSessionId']!==_0x294dd4[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5a5422['every'](_0x17488a=>_0x294dd4['some'](_0x26eb65=>_0x17488a['getFirstRange']()['isEqual'](_0x26eb65['getFirstRange']())))&&_0x294dd4['every'](_0xc85dac=>_0x5a5422['some'](_0x307537=>_0xc85dac['getFirstRange']()['isEqual'](_0x307537['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xc8cf3d){const _0x6af740=Array['from'](_0xc8cf3d),_0x261848=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4f0b5d=_0x261848['filter'](_0x18d6c3=>!_0xc8cf3d['has'](_0x18d6c3)),_0x502605=new Map(_0x6af740['map'](_0x14a308=>[_0x14a308,this['_suggestionFactory']['getSuggestionCallback'](_0x14a308['type'],_0x14a308['subType'],'join')])),_0x42623d=new Map(_0x261848['map'](_0x402cdc=>[_0x402cdc,_0x402cdc['getRanges']()]));for(let _0x454edc=0x0;_0x454edc<_0x6af740['length'];_0x454edc++){if(_0xb926da(this,_0x6af740[_0x454edc],_0x6af740,_0x454edc+0x1))return!0x0;}for(let _0x1e4b36=0x0;_0x1e4b36<_0x6af740['length'];_0x1e4b36++){if(_0xb926da(this,_0x6af740[_0x1e4b36],_0x4f0b5d,0x0))return!0x0;}return!0x1;function _0xb926da(_0x17d8a4,_0x124143,_0x49a083,_0x559c68){for(let _0x40152e=_0x559c68;_0x40152e<_0x49a083['length'];_0x40152e++){const _0x58a661=_0x49a083[_0x40152e];if(_0x58a661['type']!==_0x124143['type']||_0x58a661['author']['id']!==_0x124143['author']['id']||_0x58a661['subType']!==_0x124143['subType'])continue;if(!Wt(_0x124143,_0x58a661))continue;if('attribute'==_0x124143['type']&&_0x124143['data']['oldValue']!=_0x58a661['data']['oldValue'])continue;if('attribute'==_0x124143['type']&&_0x17d8a4['_isBlockAttribute'](_0x124143['data']['key']))continue;if('formatBlock'==_0x124143['type']){const _0x11455a=_0x17d8a4['editor']['model'],_0x537cd1=_0x124143['getContainedElement']();if(_0x537cd1&&(_0x11455a['schema']['isObject'](_0x537cd1)||_0x11455a['schema']['isLimit'](_0x537cd1)))continue;}const _0x431d4d=_0x502605['get'](_0x124143),_0x306074=_0x42623d['get'](_0x124143),_0x49a309=_0x42623d['get'](_0x58a661),_0xdfea0f=_0x124143['commentThread']&&_0x124143['commentThread']['length'],_0x30b9d4=_0x58a661['commentThread']&&_0x58a661['commentThread']['length'];if(!_0xdfea0f&&_0x431d4d(_0x49a309,_0x306074))return _0x17d8a4['_joinSuggestions'](_0x58a661,_0x124143),_0x42623d['delete'](_0x124143),!0x0;if(!_0x30b9d4&&_0x431d4d(_0x306074,_0x49a309))return _0x17d8a4['_joinSuggestions'](_0x124143,_0x58a661),_0x42623d['delete'](_0x58a661),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5f34fa,_0x20cc62){if(_0x5f34fa['isMultiRange']){for(const _0x1c7dd3 of _0x20cc62['getRanges']())_0x5f34fa['addRange'](_0x1c7dd3);}else{const _0x498d27=_0x20cc62['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5f34fa,this['_model']['createRange'](_0x5f34fa['getFirstRange']()['start'],_0x498d27));}_0x20cc62['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2de7c7,_0x64f88c,_0xb31a5f){const _0xbef19=_0x2de7c7['startsWith']('format')||_0x2de7c7['startsWith']('attribute')?'FORMATTING':_0x2de7c7['toUpperCase']();return o(this['editor']['locale'],_0x64f88c+'_'+_0xbef19+'_SUGGESTION_ANNOUNCEMENT',_0xb31a5f);}['_initAriaMarkerChangeAnnouncements'](){const _0x5a42d0=this['editor'];if(!_0x5a42d0['ui'])return;const {ariaLiveAnnouncer:_0x42368b}=_0x5a42d0['ui'];_0x59ecb5(this['_model'],({left:_0x46ed02,entered:_0x1705eb})=>{for(const _0x35f4d9 of _0x46ed02){const {group:_0x2e26d4,type:_0x959cf3}=this['_splitMarkerName'](_0x35f4d9['name']);if('suggestion'===_0x2e26d4){_0x42368b['announce'](this['_getMarkerAnnouncementText'](_0x959cf3,'LEAVE'));break;}}for(const _0xe71f91 of _0x1705eb){const {group:_0x149c6e,type:_0x28ae6c}=this['_splitMarkerName'](_0xe71f91['name']);if('suggestion'===_0x149c6e){_0x42368b['announce'](this['_getMarkerAnnouncementText'](_0x28ae6c,'ENTER',_0x2ebd20(_0x5fe560)));break;}}});}['_processAttributeChanges'](_0x57810e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x13cad0=this['editor'],_0x3d5d25=_0x13cad0['model']['document']['differ']['getChanges']();if(0x0==_0x3d5d25['length'])return!0x1;const _0x225f15=[],_0x59614f=_0x3d5d25['filter'](_0x4bce31=>'attribute'==_0x4bce31['type']),_0x55cbe4=_0x3d5d25['filter'](_0x361f60=>'insert'==_0x361f60['type']&&'$text'!=_0x361f60['name']),_0x11cbf9=_0x3d5d25['filter'](_0x174b1f=>'remove'==_0x174b1f['type']&&'$text'!=_0x174b1f['name']);for(const _0x384bff of _0x59614f)_0x225f15['push']({'key':_0x384bff['attributeKey'],'newValue':_0x384bff['attributeNewValue'],'oldValue':_0x384bff['attributeOldValue'],'range':Ht(_0x384bff['range'],_0x13cad0['model'])});for(const _0x30dd32 of _0x55cbe4){const _0x5d1ade=_0x11cbf9['find'](_0x48fc35=>_0x48fc35['position']['isEqual'](_0x30dd32['position']));_0x5d1ade&&_0x225f15['push']({'key':m,'newValue':_0x30dd32['name'],'oldValue':_0x5d1ade['name'],'range':_0x13cad0['model']['createRangeOn'](_0x30dd32['position']['nodeAfter'])});}return 0x0!=_0x225f15['length']&&this['_reduceExistingSuggestions'](_0x57810e,_0x225f15);}['_processAttributeSuggestions'](_0x2932be){let _0x291091=!0x1;const _0x48619d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xdfc747=>_0xdfc747['data']['newRange']&&_0xdfc747['name']['startsWith']('suggestion:attribute:'));for(const _0x2995a7 of _0x48619d){const {subType:_0x66db0e,id:_0x1192f8}=this['_splitMarkerName'](_0x2995a7['name']),_0x44158f=_0x66db0e['split']('|')[0x0];for(const _0x25af53 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x25af53['id']!=_0x1192f8&&'attribute'==_0x25af53['type']&&_0x25af53['data']&&_0x25af53['data']['key']==_0x44158f&&_0x25af53['getFirstRange']()['isIntersecting'](_0x2995a7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x25af53,_0x2995a7['data']['newRange'],_0x2932be),_0x291091=!0x0);}return _0x291091;}['recordAttributeChanges'](_0x34186d){this['_recordAttributeSuggestions']=!0x0,_0x34186d();}['_isRegisteredAttribute'](_0x45dffe){const _0x59d7f6=this['_isBlockAttribute'](_0x45dffe),_0x3e0957=this['_inlineAttributeKeys']['has'](_0x45dffe);return _0x59d7f6||_0x3e0957;}['_reduceExistingSuggestions'](_0x4a25fd,_0x1d47ea){if(0x0==_0x1d47ea['length'])return!0x1;let _0x275094=!0x1;for(const _0x1a8e23 of _0x1d47ea){const _0x1e5760=this['_findSuggestions'](_0x1a8e23['range'],'attribute')['filter'](_0x4462b9=>!_0x4462b9['meta']['isNextTo'])['map'](_0x79bae7=>_0x79bae7['suggestion']),_0x3916e0=_0x20757c({'newValue':_0x1a8e23['newValue']});_0x1e5760['filter'](_0x3533b4=>{const [_0x15fc28,_0x5871a3]=_0x3533b4['subType']['split']('|');return _0x15fc28==_0x1a8e23['key']&&_0x5871a3!=_0x3916e0;})['forEach'](_0x2df9ac=>{this['_reduceSuggestionAttributeRange'](_0x2df9ac,_0x1a8e23['range'],_0x4a25fd),_0x275094=!0x0;});}return _0x275094;}['_reduceSuggestionAttributeRange'](_0x411244,_0x4700c7,_0x5666f3){const _0x212492=_0x411244['getFirstRange']()['getDifference'](_0x4700c7);0x0!==_0x212492['length']?0x1!==_0x212492['length']?this['_breakSuggestionMarker'](_0x411244,_0x4700c7['start'],_0x4700c7['end']):this['_setSuggestionRange'](_0x411244,_0x212492[0x0]):_0x5666f3['removeMarker'](_0x411244['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x53e884){this['_editor']=_0x53e884,this['_model']=_0x53e884['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x25a696,_0xdabc04,_0x48e238,_0x50b531,_0x2a9d75,_0x28d036,_0xfe9c0a){return new T(this['_model'],{'type':_0x25a696,'subType':_0xdabc04,'id':_0x48e238,'originalSuggestionId':_0xfe9c0a,'author':_0x50b531,'creator':_0x50b531,'attributes':_0x2a9d75,'onAttributesChange':_0x28d036,'onAccept':(..._0x353ed1)=>this['getSuggestionCallback'](_0x25a696,_0xdabc04,'accept')(..._0x353ed1),'onDiscard':(..._0x167e49)=>this['getSuggestionCallback'](_0x25a696,_0xdabc04,'discard')(..._0x167e49)});}['registerCustomCallback'](_0x197769,_0x100cd9,_0x1fadb1,_0x6831c4){const _0x3ab50e=_0x197769+':'+_0x100cd9+':'+_0x1fadb1;this['_customCallbacks']['set'](_0x3ab50e,_0x6831c4);}['getSuggestionCallback'](_0x17db6f,_0xc28c7a,_0x1960af){const _0x1be5c6=_0x17db6f+':'+_0xc28c7a+':'+_0x1960af;return this['_customCallbacks']['get'](_0x1be5c6)||this['_defaultCallbacks']['get'](_0x17db6f+':'+_0x1960af);}['_registerDefaultCallbacks'](){const _0xc1c008=()=>!0x1,_0x2d8f2d=_0x42e22e=>{_0x42e22e['sort']((_0x39c237,_0x297dc4)=>_0x39c237['start']['isBefore'](_0x297dc4['start'])?0x1:-0x1),this['_model']['change'](_0x1c183a=>{for(const _0xbed1bd of _0x42e22e){let _0x93af98;_0x93af98=_0xbed1bd['end']['isAtEnd']&&_0xbed1bd['end']['parent']==_0xbed1bd['start']['nodeAfter']?_0x1c183a['createSelection'](_0xbed1bd['start']['nodeAfter'],'on'):_0x1c183a['createSelection'](_0xbed1bd),this['_model']['deleteContent'](_0x93af98,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1878df=(_0x585e30,_0x1a1eee)=>{_0x1a1eee&&this['_model']['change'](_0x41168b=>{const {commandName:_0x20a369,commandParams:_0x2de418=[]}=_0x1a1eee,_0x4d7699=_0x585e30['map'](_0x5eb83c=>(Pt(_0x5eb83c)&&(_0x5eb83c=this['_model']['createRange'](_0x5eb83c['end'])),_0x5eb83c))['filter'](_0x1e2d66=>'$graveyard'!==_0x1e2d66['root']['rootName']);if(_0x4d7699['length']<0x1)return;const _0x3d56d6=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3f9b4b=>_0x360b1f['fromRange'](_0x3f9b4b));_0x41168b['setSelection'](_0x4d7699);for(const _0x5c168a of this['_editor']['commands']['commands']())_0x5c168a['refresh']();_0x2de418['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x20a369,..._0x2de418);const _0x2a5b8f=_0x3d56d6['filter'](_0x55745e=>'$graveyard'!=_0x55745e['root']['rootName']);_0x2a5b8f['length']>0x0&&_0x41168b['setSelection'](_0x2a5b8f);for(const _0x5b4c8a of _0x3d56d6)_0x5b4c8a['detach']();});},_0x401ea7=(_0x155e3a,_0x3ea84a)=>0x1==_0x155e3a['length']&&0x1==_0x3ea84a['length']&&_0x155e3a[0x0]['end']['isEqual'](_0x3ea84a[0x0]['start']),_0x4782e9=(_0xb47648,_0xec5da6,_0xee90a1,_0x274d6e)=>zt(_0xb47648,_0xec5da6,_0xee90a1,_0x274d6e)?[_0xb47648,_0xec5da6]:zt(_0xec5da6,_0xb47648,_0x274d6e,_0xee90a1)?[_0xec5da6,_0xb47648]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xc1c008),this['_defaultCallbacks']['set']('insertion:discard',_0x2d8f2d),this['_defaultCallbacks']['set']('insertion:join',_0x401ea7),this['_defaultCallbacks']['set']('insertion:chain',_0x4782e9),this['_defaultCallbacks']['set']('deletion:accept',_0x2d8f2d),this['_defaultCallbacks']['set']('deletion:discard',_0xc1c008),this['_defaultCallbacks']['set']('deletion:join',_0x401ea7),this['_defaultCallbacks']['set']('deletion:chain',_0x4782e9),this['_defaultCallbacks']['set']('formatInline:accept',_0x1878df),this['_defaultCallbacks']['set']('formatInline:discard',_0xc1c008),this['_defaultCallbacks']['set']('formatInline:join',_0x401ea7),this['_defaultCallbacks']['set']('formatInline:chain',_0xc1c008),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1878df),this['_defaultCallbacks']['set']('formatBlock:discard',_0xc1c008),this['_defaultCallbacks']['set']('formatBlock:join',_0x401ea7),this['_defaultCallbacks']['set']('formatBlock:chain',_0xc1c008),this['_defaultCallbacks']['set']('attribute:accept',_0xc1c008),this['_defaultCallbacks']['set']('attribute:discard',(_0xc4eca8,_0x29f102)=>{if(!_0x29f102)return;const _0x2f4c96=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x59b7fc=>{if(_0x29f102['key']==m)for(const _0x1fd73d of _0xc4eca8){const _0x435e93=_0x1fd73d['start']['nodeAfter'],_0x2875bf=_0x29f102['oldValue'];_0x59b7fc['rename'](_0x435e93,_0x2875bf);}else{if(_0x2f4c96['_isBlockAttribute'](_0x29f102['key'])){for(const _0x5a4ff8 of _0xc4eca8)void 0x0!==_0x29f102['oldValue']?_0x59b7fc['setAttribute'](_0x29f102['key'],_0x29f102['oldValue'],_0x5a4ff8['start']['nodeAfter']):_0x59b7fc['removeAttribute'](_0x29f102['key'],_0x5a4ff8['start']['nodeAfter']);}else{for(const _0x24bf6a of _0xc4eca8)_0x29f102['oldValue']?_0x59b7fc['setAttribute'](_0x29f102['key'],_0x29f102['oldValue'],_0x24bf6a):_0x59b7fc['removeAttribute'](_0x29f102['key'],_0x24bf6a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x401ea7);}}function Ft(_0x3b35f0,_0x35d2f0,_0x31a086){for(const _0x3ef955 of _0x35d2f0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3ef955['root']==_0x3ef955)return!0x1;if(!_0x31a086['containsItem'](_0x3ef955))return!0x1;if(_0x3b35f0['isObject'](_0x3ef955)||_0x3b35f0['isLimit'](_0x3ef955))return!0x0;}return!0x1;}function Pt(_0x4b086e){return _0x4b086e['end']['parent']==_0x4b086e['start']['nodeAfter']&&_0x4b086e['end']['isAtStart'];}function Gt(_0x273af1,_0x16ac7d,_0x57c25c,_0x3667a4){const _0x46e39c=_0x989d0d=>!_0x989d0d['item']['is']('$textProxy')&&!_0x3667a4['isObject'](_0x989d0d['item']),_0x24a817=_0x273af1['start']['getLastMatchingPosition'](_0x46e39c),_0x341089=_0x273af1['end']['getLastMatchingPosition'](_0x46e39c,{'direction':'backward'});return(!_0x273af1['start']['isEqual'](_0x24a817)||!_0x273af1['end']['isEqual'](_0x341089))&&(_0x24a817['isBefore'](_0x341089)?_0x57c25c['updateMarker'](_0x16ac7d,{'range':_0x57c25c['createRange'](_0x24a817,_0x341089)}):_0x57c25c['removeMarker'](_0x16ac7d),!0x0);}function Lt(_0x30ff16){return _0x20757c(_0x30ff16);}function Jt(_0x49a678){const _0x3c1966=_0x49a678['start']['nodeAfter'];return _0x3c1966&&_0x3c1966['is']('element');}function Kt(_0x50ef4f){return!Pt(_0x50ef4f)&&!function(_0x142530){return _0x142530['start']['parent']==_0x142530['end']['nodeBefore']&&_0x142530['start']['isAtEnd'];}(_0x50ef4f);}function Ht(_0x37e29e,_0x1ccba7){return null==_0x37e29e['end']['nodeBefore']&&_0x37e29e['end']['parent']==_0x37e29e['start']['nodeAfter']?qt(_0x37e29e['start']['nodeAfter'],_0x1ccba7):_0x37e29e;}function qt(_0x24a94c,_0x3d856b){const _0xf30a3f=_0x3d856b['schema']['isObject'](_0x24a94c)||_0x3d856b['schema']['isSelectable'](_0x24a94c);return _0x3d856b['createRange'](_0x3d856b['createPositionAt'](_0x24a94c,'before'),_0xf30a3f?_0x3d856b['createPositionAfter'](_0x24a94c):_0x3d856b['createPositionAt'](_0x24a94c,'end'));}function zt(_0x23622e,_0x579457,_0x235fe6,_0x20689c){return!!Wt(_0x23622e,_0x579457)&&_0x235fe6['end']['isEqual'](_0x20689c['start']);}function Wt(_0x405dea,_0x1a97eb){if(!_0x405dea['_isDataLoaded']||!_0x1a97eb['_isDataLoaded'])return!0x1;const _0xaceb6e=new Set(Object['keys'](_0x405dea['attributes'])),_0xff9c71=new Set(Object['keys'](_0x1a97eb['attributes']));if(_0xaceb6e['delete']('groupId'),_0xff9c71['delete']('groupId'),0x0==_0xaceb6e['size']&&0x0==_0xff9c71['size'])return!0x0;if(_0xaceb6e['size']!=_0xff9c71['size'])return!0x1;const _0x4b1596={..._0x405dea['attributes']},_0x25fa65={..._0x1a97eb['attributes']};return delete _0x4b1596['groupId'],delete _0x25fa65['groupId'],JSON['stringify'](_0x4b1596)==JSON['stringify'](_0x25fa65);}function Qt(_0x3742bb,_0x574935){const _0x1947e1=Xt(_0x3742bb['attributes']),_0x36353d=Xt(_0x574935);if(!_0x3742bb['_isDataLoaded'])return!0x1;for(const _0xaf2a77 of Object['keys'](_0x36353d))if(!_0x4aed31(_0x1947e1[_0xaf2a77],_0x36353d[_0xaf2a77]))return!0x1;return!0x0;}function Xt(_0x12ebda){const _0x1dbe55=Object['assign']({},_0x12ebda);return delete _0x1dbe55['skipNestingCheck'],delete _0x1dbe55['tablePasteChainId'],_0x1dbe55;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x229401(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5b31f6,_0x3323c8,_0x745eb6,_0x119b59){super(),this['model']=_0x3323c8,this['view']=_0x745eb6,this['commentThreadController']=_0x119b59,this['_editor']=_0x5b31f6,this['_acceptCommand']=_0x5b31f6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5b31f6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x59b356,_0x10eff1)=>_0x59b356||_0x10eff1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5e0337=>_0x5e0337&&this['_editor']['model']['canEditAt'](_0x3323c8['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x341f66=>_0x341f66&&this['_editor']['model']['canEditAt'](_0x3323c8['getRanges']())),this['_pendingAction']=null,_0x745eb6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x745eb6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x745eb6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x745eb6,'change:isDirty',()=>{_0x745eb6['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 _0x518154=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x518154);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2e8354{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4a9b11,_0x2fcc2b,_0x5ae79a,_0x202342){super(_0x4a9b11),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2757f5(_0x4a9b11,o(_0x4a9b11,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2fcc2b['authoredAt']),this['bind']('authoredAt')['to'](_0x2fcc2b),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',_0x2fcc2b,'authoredAt',this,'descriptionParts',(_0x2eced1,_0x587d66,_0x3b0b75)=>{const _0x114d93=_0x3b0b75['map'](_0x2620d4=>ls(_0x2620d4['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2eced1-0x1,_0x2fcc2b['author']['name'],_0x587d66?_0x202342['formatDateTime'](_0x587d66):'',new DOMParser()['parseFromString'](_0x114d93,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1f5a57(),this['focusTracker']=new _0x9aaa4(),this['keystrokes']=new _0x179544(),this['focusCycler']=new _0x517a90({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x37789e=>_0x37789e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2fcc2b,this['_localUser']=_0x5ae79a,this['_config']=_0x202342,_0x202342['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x353e32(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5aa18a}=this['_config'];this['commentsListView']=new _0x5aa18a(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',_0x22efda=>_0x22efda+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x573861,_0x3f2bcc)=>_0x573861||!!_0x3f2bcc);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x8d0246}=this['_config'],_0x51e94e=new _0x8d0246(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x56438b=_0x51e94e['commentInputView'];return _0x51e94e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x56438b,'value',(_0x356056,_0x52f20f,_0x31f7e1)=>!!_0x31f7e1||_0x356056&&!_0x52f20f),_0x56438b['on']('submit',(_0x5b8ad3,_0xd53194)=>{this['fire']('addComment',_0xd53194),_0x56438b['editor']['setData']('');}),_0x56438b['on']('cancel',()=>this['focus']()),_0x56438b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x51e94e;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x4726a9,_0x30c2ee,_0xb0e1e9,_0x97adaf){super(_0x4726a9,_0x30c2ee,_0xb0e1e9,_0x97adaf),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x524a8b=>_0x524a8b&&_0x524a8b[0x0]?_0x524a8b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1e1227,_0x5a05c7)=>{let _0x3157a0='';for(const _0x170580 of _0x1e1227)_0x3157a0+='<p>'+ls(_0x170580['content'],_0x170580['color'])+'</p>';return _0x5a05c7?_0x3157a0:_0x26790d(_0x3157a0,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x97adaf['SuggestionView'](_0x4726a9,_0x30c2ee,{'formatDateTime':_0x97adaf['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 _0x2157d9=this['bindTemplate'],_0x272894=[this['suggestionView']];return this['commentsListView']&&_0x272894['push'](this['commentsListView']),this['commentThreadInputView']&&_0x272894['push'](this['commentThreadInputView']),_0x272894['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2157d9['if']('isActive','ck-suggestion-wrapper--active'),_0x2157d9['to']('type',_0xd0aedd=>'ck-suggestion-'+_0xd0aedd),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':_0x2157d9['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x272894};}['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 _0x2e8354{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x473884,_0xc14ac5,_0x1ff0c3){super(_0x473884),this['_model']=_0xc14ac5,this['_config']=_0x1ff0c3,this['set']('description',''),this['bind']('authoredAt')['to'](_0xc14ac5),this['acceptButton']=this['_createButton'](o(_0x473884,'Accept\x20suggestion'),_0x4f2a57,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x473884,'Discard\x20suggestion'),_0x3ce5ed,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4ef06e(_0x473884,_0xc14ac5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1f5a57([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x9aaa4(),this['keystrokes']=new _0x179544(),this['focusCycler']=new _0x517a90({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4c7092=>_0x4c7092['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x48f329=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x48f329['innerHTML']=this['description'],this['on']('change:description',(_0x14316d,_0x382cf3,_0xc2a990)=>{_0x48f329['innerHTML']=_0xc2a990;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x44f594=this['bindTemplate'],_0x214d82=[{'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':_0x44f594['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x44f594['to']('authoredAt',_0x351266=>this['_config']['formatDateTime'](_0x351266))}]}]},{'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']&&_0x214d82['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':_0x214d82}]};}['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'](_0x102612,_0xd548aa,_0x49b3ff,_0x2ed41f,_0x57a707){const _0x1aea2b=new _0x5c32c2(this['locale']);return _0x1aea2b['set']({'label':_0x102612,'icon':_0xd548aa,'tooltip':!0x0,'tooltipPosition':_0x57a707}),_0x1aea2b['extendTemplate']({'attributes':{'class':_0x49b3ff}}),_0x1aea2b['on']('execute',()=>{this['fire'](_0x2ed41f,this['_model']['id']);}),_0x1aea2b;}['_setupKeyboardNavigation'](){const _0x404e9a=this['element'];this['keystrokes']['listenTo'](_0x404e9a);for(const _0x1e8186 of this['focusables'])this['focusTracker']['add'](_0x1e8186['element']),this['keystrokes']['listenTo'](_0x1e8186['element']);this['keystrokes']['set']('enter',(_0x5ccd09,_0x23af39)=>{_0x404e9a===_0x5ccd09['target']&&(this['focusCycler']['focusFirst'](),_0x23af39());}),this['keystrokes']['set']('esc',(_0x506bed,_0x2e9cfa)=>{_0x404e9a!==_0x506bed['target']&&(this['focus'](),_0x2e9cfa());});}}class u extends _0x3721e7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x32d493,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2513ff){super(_0x2513ff),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x515198=this['editor']['config'];_0x515198['define']('trackChanges.SuggestionThreadView',fe),_0x515198['define']('trackChanges.SuggestionView',we),_0x515198['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x515198['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xf11f07,_0x16a167){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3c1e7a,_0x4cc253]of this['_handleControllerBuffer']){const _0x5a9837=this['_suggestionToController']['has'](_0x3c1e7a);_0x5a9837||_0x4cc253?_0x5a9837&&_0x4cc253&&this['_destroyController'](_0x3c1e7a):this['_initializeController'](_0x3c1e7a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xf11f07,_0x16a167);}['init'](){const _0x3586b1=this['editor'],_0x58e914=_0x3586b1['plugins']['get']('TrackChangesEditing'),_0x5a2d3f=_0x3586b1['plugins']['get']('Annotations'),_0x1db426=_0x3586b1['plugins']['get']('EditorAnnotations'),_0x1a6df9=_0x3586b1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1db426['addSourceCollector'](()=>{const _0x16f244=[];for(const [_0x3dfadc,_0x3d6b53]of Array['from'](this['_suggestionToController'])){const _0xa73cba=_0x3dfadc['getAllAdjacentSuggestions'](),_0x2ee788=[];for(const _0x593411 of _0xa73cba){if(!_0x593411['isInContent'])continue;if(_0x593411['isMultiRange']){_0x2ee788['push'](..._0x593411['getRanges']());continue;}const _0x251240=_0x593411['getFirstRange']();if(_0x2ee788['length']>0x0){const _0x393a89=_0x2ee788[0x0]['getJoined'](_0x251240);if(_0x393a89){_0x2ee788[0x0]=_0x393a89;continue;}}_0x2ee788['push'](_0x251240);}_0x16f244['push']([_0x3d6b53['view'],_0x2ee788]);}return _0x16f244;}),this['listenTo'](_0x58e914,'suggestionLoaded',(_0x2249aa,_0x293bd7)=>{this['listenTo'](_0x293bd7,'change:previous',(_0x34059e,_0x2e43d8,_0x224ede,_0x4ee654)=>{_0x293bd7['isInContent']&&(null==_0x224ede?(this['_updateController'](_0x4ee654['head']),this['_handleSuggestionControllerDelayed'](_0x293bd7,!0x1)):(this['_updateController'](_0x224ede['head']),null==_0x4ee654&&this['_handleSuggestionControllerDelayed'](_0x293bd7,!0x0)));}),null!==_0x293bd7['previous']?this['_updateController'](_0x293bd7['head']):this['_handleSuggestionControllerDelayed'](_0x293bd7,!0x1);}),this['listenTo'](_0x58e914,'suggestionUnloaded',(_0x4fd01d,_0x2c1b4a,_0x1f042c)=>{this['stopListening'](_0x2c1b4a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2c1b4a),this['_suggestionToController']['has'](_0x2c1b4a)&&this['_destroyController'](_0x2c1b4a),_0x1f042c&&this['_updateController'](_0x1f042c['head']);}),this['listenTo'](_0x58e914,'suggestionChanged',(_0x58120b,_0x2c2ec4)=>{this['_updateController'](_0x2c2ec4);}),this['listenTo'](_0x5a2d3f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1a6df9,'addComment',(_0x7eb7c2,{threadId:_0x23b6e1,isFromAdapter:_0x1ed0da})=>{if(_0x1ed0da||!_0x58e914['hasSuggestion'](_0x23b6e1))return;const _0x368ff7=_0x58e914['getSuggestion'](_0x23b6e1);this['_suggestionToController']['get'](_0x368ff7)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x576fc8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x17cb1c;for(const _0x16b47c in _0x576fc8){const _0x3a3c9c=_0x16b47c,_0x24a232=_0x576fc8[_0x3a3c9c];if('trackChangesLicenseKeyValid'==_0x24a232||'trackChangesLicenseKeyInvalid'==_0x24a232||'trackChangesLicenseKeyExpired'==_0x24a232||'trackChangesLicenseKeyDomainLimit'==_0x24a232||'trackChangesLicenseKeyNotAllowed'==_0x24a232||'trackChangesLicenseKeyEvaluationLimit'==_0x24a232||'trackChangesLicenseKeyTrialLimit'==_0x24a232||'trackChangesLicenseKeyUsageLimit'==_0x24a232){delete _0x576fc8[_0x3a3c9c],_0x17cb1c=_0x24a232,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x17cb1c&&_0x576fc8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x17cb1c&&_0x576fc8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x17cb1c&&_0x576fc8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x17cb1c&&_0x576fc8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x17cb1c&&_0x576fc8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x17cb1c&&_0x576fc8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x17cb1c&&_0x576fc8['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x6e1e40){const _0x30be49=this['_suggestionToController']['get'](_0x6e1e40);if(!_0x30be49)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x30be49['view'])||null;}['getSuggestionForAnnotation'](_0x2679f2){const _0x1ffc3f=this['_viewToController']['get'](_0x2679f2['innerView']);return _0x1ffc3f?_0x1ffc3f['model']:null;}['_refreshActiveMarkers'](){const _0x4c9ff5=this['editor']['plugins']['get']('Annotations'),_0x55a9fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50de9f=Array['from'](_0x4c9ff5['activeAnnotations'],_0x4693d4=>_0x4693d4['innerView'])['filter'](_0x5f4d62=>this['_viewToController']['has'](_0x5f4d62)),_0x4ffd3b=[];for(const _0x10c6cf of _0x50de9f){const _0x1c5ddb=this['_viewToController']['get'](_0x10c6cf)['model']['getAllAdjacentSuggestions']();_0x4ffd3b['push'](..._0x1c5ddb['reduce']((_0x4a259f,_0x40b33f)=>[..._0x4a259f,..._0x40b33f['getMarkerNames']()],[]));}_0x55a9fc['activeMarkers']=_0x4ffd3b;}['_addUIComponentsToFactory'](){const _0x216c0a=this['editor'],_0x460af0=_0x216c0a['locale'],_0x504c3f=o(_0x460af0,'Track\x20changes'),_0x480219=new _0x274924([{'type':'switchbutton','model':new _0x2e7c3d({'withText':!0x0,'isToggleable':!0x0,'label':_0x504c3f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2e7c3d({'withText':!0x0,'label':o(_0x460af0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e7c3d({'withText':!0x0,'label':o(_0x460af0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e7c3d({'withText':!0x0,'label':o(_0x460af0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e7c3d({'withText':!0x0,'label':o(_0x460af0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x216c0a['plugins']['has']('TrackChangesPreview')&&_0x480219['addMany']([{'type':'separator'},{'type':'button','model':new _0x2e7c3d({'withText':!0x0,'label':o(_0x460af0,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x706813 of _0x480219)if(ke(_0x706813)){const _0x3f3b6f=_0x216c0a['commands']['get'](_0x706813['model']['commandName']);_0x706813['model']['bind']('isOn','isEnabled')['to'](_0x3f3b6f,'value','isEnabled');}_0x216c0a['ui']['componentFactory']['add']('trackChanges',_0x35ca2f=>this['_createToolbarButton'](_0x35ca2f,_0x480219,_0x504c3f)),_0x216c0a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1eb5ce=>this['_createMenuBarMenu'](_0x1eb5ce,_0x480219,_0x504c3f));}['_createToolbarButton'](_0x3a5c2f,_0x3def9a,_0x204bc8){const _0x35382e=_0x11789a(_0x3a5c2f,_0x57fc0f),_0x11d8b1=this['editor']['commands']['get']('trackChanges');_0x35382e['buttonView']['set']({'tooltip':_0x204bc8,'label':_0x204bc8,'icon':_0x10a693}),_0x35382e['buttonView']['bind']('isOn')['to'](_0x11d8b1,'value'),_0x35382e['buttonView']['on']('execute',()=>{_0x11d8b1['execute'](),this['editor']['editing']['view']['focus']();}),_0x5beba5(_0x35382e,_0x3def9a,{'role':'menu'});const _0x4c10c6=[];for(const _0xa9c13c of _0x3def9a)ke(_0xa9c13c)&&_0x4c10c6['push'](this['editor']['commands']['get'](_0xa9c13c['model']['commandName']));const _0x524cf6=_0x35382e['buttonView'];return _0x524cf6['actionView']['unbind']('isEnabled'),_0x524cf6['arrowView']['unbind']('isEnabled'),_0x524cf6['actionView']['bind']('isEnabled')['to'](_0x11d8b1,'isEnabled'),_0x524cf6['arrowView']['bind']('isEnabled')['toMany'](_0x4c10c6,'isEnabled',(..._0x1944b2)=>_0x1944b2['some'](_0x23fdd7=>_0x23fdd7)),_0x35382e['on']('execute',_0xad701=>{this['editor']['execute'](_0xad701['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x35382e;}['_createMenuBarMenu'](_0x25f133,_0x49ba16,_0xb535c4){const _0x5e325d=new _0x399edc(_0x25f133),_0x394693=this['editor']['commands']['get']('trackChanges');_0x5e325d['buttonView']['set']({'label':_0xb535c4,'icon':_0x10a693});const _0x4bec59=new _0x42a2eb(_0x25f133);for(const _0x5212fb of _0x49ba16){if('separator'==_0x5212fb['type']){_0x4bec59['items']['add'](new _0x4028bd(_0x25f133));continue;}const _0x596395=new _0x43a039(_0x25f133,_0x5e325d),_0x2cfde5=new _0x2d4737(_0x25f133),_0x37a7ca=_0x5212fb['model'];_0x2cfde5['bind'](...Object['keys'](_0x37a7ca))['to'](_0x37a7ca),_0x2cfde5['delegate']('execute')['to'](_0x5e325d),_0x2cfde5['on']('execute',()=>{this['editor']['execute'](_0x37a7ca['commandName']),this['editor']['editing']['view']['focus']();}),_0x596395['children']['add'](_0x2cfde5),_0x4bec59['items']['add'](_0x596395);}return _0x5e325d['bind']('isEnabled')['to'](_0x394693,'isEnabled'),_0x5e325d['panelView']['children']['add'](_0x4bec59),_0x5e325d;}['_initializeController'](_0x5f2dea){const _0x3dd7e4=this['editor'],_0x450111=_0x3dd7e4['config'],_0x5bf3a1=_0x3dd7e4['plugins']['get']('Annotations'),_0x16983d=_0x3dd7e4['plugins']['get']('CommentsRepository'),_0x357b2b=_0x3dd7e4['plugins']['get']('EditorAnnotations'),_0x19ebf3=_0x3dd7e4['plugins']['get'](_0x32d493)['me'],_0x1f4bf8=_0x450111['get']('trackChanges')['SuggestionThreadView'],_0x1b9810=_0x450111['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1cc198,CommentThreadInputView:_0x11e9b5}=_0x3dd7e4['plugins']['get']('CommentsUI');let _0x15bffd,_0x452466,_0x25f3a1;this['_annotationViews']['has'](_0x5f2dea['id'])?(_0x452466=this['_annotationViews']['get'](_0x5f2dea['id']),_0x15bffd=_0x452466['mainView']):(_0x15bffd=new _0x1f4bf8(_0x3dd7e4['locale'],_0x5f2dea,_0x19ebf3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x450111['get']('comments.editorConfig'),'licenseKey':_0x450111['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x450111['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x450111['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x450111['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2db124(_0x450111['get']('locale'),_0x3dd7e4['locale']),'CommentView':_0x450111['get']('comments')['CommentView'],'CommentsListView':_0x1cc198,'CommentThreadInputView':_0x11e9b5,'SuggestionView':_0x1b9810}),_0x15bffd['suggestionView']['acceptButton']['on']('execute',()=>{_0x3dd7e4['editing']['view']['focus']();}),_0x15bffd['suggestionView']['discardButton']['on']('execute',()=>{_0x3dd7e4['editing']['view']['focus']();}),_0x452466=_0x5bf3a1['createAnnotationView'](this['editor']['locale'],_0x15bffd),_0x452466['bind']('isDirty')['to'](_0x15bffd,'isDirty'),_0x452466['bind']('length')['to'](_0x15bffd),_0x452466['bind']('type')['to'](_0x15bffd,'type',_0x5e66d3=>'suggestion-'+_0x5e66d3),_0x15bffd['on']('escape',()=>{_0x25f3a1['fire']('escape');}),this['_annotationViews']['set'](_0x5f2dea['id'],_0x452466));const _0x44fb0d=_0x16983d['createCommentThreadController'](_0x5f2dea['commentThread'],_0x15bffd),_0x45b972=new pe(_0x3dd7e4,_0x5f2dea,_0x15bffd,_0x44fb0d),_0xe9a869=_0x5f2dea['getAllAdjacentSuggestions']()['filter'](_0x5996b1=>_0x5996b1['isInContent']);_0x15bffd['descriptionParts']=_0x3dd7e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xe9a869),this['_suggestionToController']['set'](_0x5f2dea,_0x45b972),this['_viewToController']['set'](_0x15bffd,_0x45b972),_0x25f3a1=_0x5bf3a1['createAnnotation']({'view':_0x452466,'target':()=>{const _0x51e506=[],_0xf4b26a=_0x5f2dea['getAllAdjacentSuggestions']()['filter'](_0x18d7c3=>_0x18d7c3['isInContent']);for(const _0x38f704 of _0xf4b26a)_0x51e506['push'](..._0x38f704['getMarkers']());return _0x2ea878(_0x3dd7e4['editing'],_0x51e506);},'type':()=>'suggestion-'+_0x45b972['view']['type']}),_0x16983d['_bindAnnotationToEditors'](_0x15bffd,_0x25f3a1),_0x5bf3a1['add'](_0x25f3a1),_0x357b2b['registerAnnotation'](_0x25f3a1);}['_destroyController'](_0x1e6984){const _0xd1a420=this['editor']['plugins']['get']('CommentsRepository'),_0x4abf41=this['editor']['plugins']['get']('Annotations'),_0x39f47c=this['_suggestionToController']['get'](_0x1e6984),_0x5e8e02=_0x39f47c['view'],_0x5cebc3=_0x4abf41['getByInnerView'](_0x5e8e02);_0xd1a420['_unbindEditors'](_0x5e8e02),_0x5cebc3&&_0x4abf41['remove'](_0x5cebc3),this['_suggestionToController']['delete'](_0x1e6984),this['_viewToController']['delete'](_0x5e8e02),_0x39f47c['destroy']();}['_updateController'](_0x7b288e){if(!_0x7b288e['isInContent']||!this['_suggestionToController']['has'](_0x7b288e))return;const _0x58117c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57e331=this['_suggestionToController']['get'](_0x7b288e),_0x4c0c15=_0x7b288e['getAllAdjacentSuggestions']();_0x57e331['view']['descriptionParts']=_0x58117c['descriptionFactory']['getDescriptions'](_0x4c0c15);}['destroy'](){for(const _0x522640 of this['_suggestionToController']['keys']())this['_destroyController'](_0x522640);for(const _0x4fd67b of this['_annotationViews']['values']())_0x4fd67b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x52dc73){return'model'in _0x52dc73;}class Fe extends _0x3721e7{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2bde01){this['editor']['plugins']['get'](d)['adapter']=_0x2bde01;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x3a1f5c){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x3a1f5c);}['getSuggestions']({skipNotAttached:_0x112cd7=!0x1,toJSON:_0x3ddb5a=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x112cd7,'toJSON':_0x3ddb5a});}['getSuggestion'](_0x6e15f5){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x6e15f5);}}const p=['Pagination'];class re extends _0x3721e7{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5f0827=this['editor'];if(_0x5f0827['config']['define']('trackChangesData.editorCreator',_0x994c04=>{const _0xe9c8b7=_0x5f0827['model']['document']['getRootNames']()['reduce']((_0x169828,_0x2798da)=>(_0x169828[_0x2798da]='',_0x169828),{});return _0x5f0827['constructor']['create'](_0xe9c8b7,_0x994c04);}),'function'!=typeof _0x5f0827['config']['get']('trackChangesData')['editorCreator'])throw new _0x398139('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x15acd3){return P(this['editor'],!0x0,_0x15acd3);}['getDataWithDiscardedSuggestions'](_0x1ae6fa){return P(this['editor'],!0x1,_0x1ae6fa);}}class Ge extends _0x3721e7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21748e){function _0x4ded3e(_0x210d42){return _0x210d42['map'](_0x15a8a4=>String['fromCharCode'](_0x15a8a4))['join']('');}super(_0x21748e),this['result']='end',_0x21748e[_0x4ded3e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ded3e([0x76,0x69,0x65,0x77])][_0x4ded3e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ded3e([0x61,0x75,0x74,0x6f]),_0x21748e[_0x4ded3e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4ded3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ded3e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4ded3e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4ded3e([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 $e(_0x44e1ff){return void 0x0!==_0x44e1ff['getRootsAttributes'];}async function P(_0x589cbf,_0x282b34,_0x34ca37){const _0x24e765=_0x4e5478(_0x589cbf,p);_0x24e765['plugins']['push'](d,Ge),_0x24e765['rootsAttributes']=$e(_0x589cbf)?_0x589cbf['getRootsAttributes']():void 0x0;const _0x13c6c4=document['createDocumentFragment'](),_0x4f19fe=_0x589cbf['config']['get']('trackChangesData')['editorCreator'],_0x2324c8=await _0x4f19fe(_0x24e765,()=>function(_0x31c1fd){const _0x4d2033=document['createElement']('div');return _0x31c1fd['appendChild'](_0x4d2033),_0x4d2033;}(_0x13c6c4));!function(_0x2e6327,_0x1e203e){const _0x327212=_0x2e6327['model']['document']['getRootNames']()['reduce']((_0x4782c1,_0x2a52a9)=>(_0x4782c1[_0x2a52a9]=_0x2e6327['data']['get']({'rootName':_0x2a52a9}),_0x4782c1),{}),_0x2adfe8=_0x2e6327['plugins']['get']('Users')['users']['map'](_0x39dc4d=>({'id':_0x39dc4d['id'],'name':_0x39dc4d['name']})),_0x53dda1=_0x2e6327['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c8ec5=_0x2e6327['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x52b443=_0x1e203e['plugins']['get']('Users'),_0x30a3d4=_0x1e203e['plugins']['get']('TrackChangesEditing'),_0x2826b9=_0x1e203e['plugins']['get']('CommentsRepository');for(const _0x169a55 of _0x2826b9['getCommentThreads']())_0x169a55['remove']();for(const _0x56f058 of _0x2adfe8)_0x52b443['getUser'](_0x56f058['id'])||_0x52b443['addUser'](_0x56f058);_0x52b443['me']||_0x52b443['useAnonymousUser']();for(const _0x1623e of _0x5c8ec5)_0x2826b9['addCommentThread'](_0x1623e);for(const _0x454281 of _0x53dda1)_0x30a3d4['addSuggestionData'](_0x454281);_0x1e203e['data']['set'](_0x327212);}(_0x589cbf,_0x2324c8),_0x2324c8['execute'](_0x282b34?'acceptAllSuggestions':'discardAllSuggestions');const _0x2180da=$e(_0x2324c8)?_0x2324c8['getFullData'](_0x34ca37):_0x2324c8['data']['get'](_0x34ca37);return await _0x2324c8['destroy'](),_0x2180da;}class Me extends _0x2e8354{['options'];constructor(_0x3f68e3,_0x11fec2){super(_0x3f68e3),this['options']=_0x11fec2,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'](_0x1b4594,_0x3630eb){if(!this['element'])return;const _0x146d36=[];for(const [_0x2b8be3,_0x119ddb]of _0x1b4594){const _0x365e94=document['createElement']('div');_0x365e94['setAttribute']('data-ck-root-name',_0x2b8be3),_0x365e94['className']=_0x119ddb['classes']+'\x20ck-track-changes-preview__root-container',_0x365e94['innerHTML']=_0x119ddb['content'],_0x146d36['push'](_0x365e94);}_0x3630eb(this['element'],_0x146d36),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3c135f{constructor(_0xc38bec){super(_0xc38bec),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x385aac=this['editor'],_0x5c4169=_0x385aac['locale'],_0x345b6b=_0x385aac['plugins']['get']('Dialog');let _0x333d6c;const _0x20d24f=function(_0x5286f1){const _0x29ff32={};if('editables'in _0x5286f1['ui']['view']){for(const [_0x565797,_0x578eb1]of Object['entries'](_0x5286f1['ui']['view']['editables']))_0x29ff32[_0x565797]=_0x578eb1['element'];}else _0x29ff32[_0x5286f1['model']['document']['getRootNames']()[0x0]]=_0x5286f1['ui']['view']['editable']['element'];return _0x29ff32;}(_0x385aac),_0x12ea1e=function(_0x3cc0a6){let _0x327e5f=0x0;for(const _0x4cdd6b of Object['values'](_0x3cc0a6))_0x327e5f=Math['max'](_0x327e5f,_0x4cdd6b['getBoundingClientRect']()['width']);let _0x385754=0x0;for(const _0xa2cb77 of Object['values'](_0x3cc0a6))_0x385754+=_0xa2cb77['getBoundingClientRect']()['height'];const _0xad5468=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xb529e9=Math['min'](_0x385754,_0xad5468);return{'width':_0x327e5f,'height':_0xb529e9};}(_0x20d24f);_0x345b6b['show']({'id':'finalContentPreview','title':o(_0x5c4169,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5c4169,{'dialogRects':_0x12ea1e}),'onHide':()=>{_0x333d6c['detachFromDom']();},'onShow':()=>{_0x385aac['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2676af=>{const _0x5a9f07=this['_standarizeRootsData'](_0x2676af,_0x385aac,_0x20d24f);_0x345b6b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5a9f07,_0x385aac['config']['get']('trackChanges.preview.renderFunction'));}),_0x333d6c=new _0x38701c(_0x5c4169,[_0x345b6b['view']]),_0x333d6c['attachToDom'](),_0x333d6c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x385aac['once']('destroy',()=>{_0x333d6c['detachFromDom']();});const _0x39e763=_0x345b6b['view']['headerView']['class'];_0x345b6b['view']['headerView']['class']=_0x39e763?_0x39e763+'\x20ck-reset_all':'ck-reset_all',_0x345b6b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x345b6b['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x53a81c=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4322f4=_0x53a81c['previewMode'],_0x56baea={};if('$labels'===_0x4322f4){for(const _0x3ecf8d of _0x53a81c['getMergeFieldsIds']())_0x56baea[_0x3ecf8d]=_0x53a81c['getLabel'](_0x3ecf8d)||_0x3ecf8d;}else{const _0xa3bbd3='$defaultValues'===_0x4322f4?_0x53a81c['getDefaultValues']():_0x53a81c['getDataSetValues'](_0x4322f4,!0x0);for(const _0x20e8e4 of Object['entries'](_0xa3bbd3)){const [_0x63a2a5,_0x4cfbca]=_0x20e8e4;_0x56baea[_0x63a2a5]=null!==_0x4cfbca?_0x4cfbca:_0x53a81c['getLabel'](_0x63a2a5)||_0x63a2a5;}}return{'mergeFieldsData':_0x56baea};}['_standarizeRootsData'](_0x5b35c7,_0x174940,_0x70c61b){let _0x15af62;if('string'==typeof _0x5b35c7){const _0x333037=_0x174940['model']['document']['getRootNames']()[0x0];_0x15af62={[_0x333037]:_0x5b35c7};}else _0x15af62=_0x5b35c7;const _0x18e70d=this['_fixMediaEmbeds'](_0x15af62,_0x174940),_0x33a2b7=function(_0x355007,_0x59f951){for(const [_0x1c1b1d,_0x3fa5d8]of _0x355007)_0x3fa5d8['classes']=_0x59f951[_0x1c1b1d]['classList']['value']['replace']('ck-focused','');return _0x355007;}(this['_sortRoots'](_0x174940)['reduce']((_0x261949,_0x1b2755)=>(_0x261949['push']([_0x1b2755,{'content':_0x18e70d[_0x1b2755],'classes':''}]),_0x261949),[]),_0x70c61b);return _0x33a2b7;}['_fixMediaEmbeds'](_0x53c917,_0x532714){if(!_0x532714['plugins']['has']('MediaEmbedEditing'))return _0x53c917;const _0x5bd4eb=_0x532714['plugins']['get']('MediaEmbedEditing');for(const [_0x2d2e2a,_0x22df50]of Object['entries'](_0x53c917)){const _0x3598e5=document['createElement']('div');_0x3598e5['innerHTML']=_0x22df50,(_0x3598e5['querySelectorAll']('figure.media')['forEach'](_0x33888e=>{const _0x59139f=_0x33888e['querySelector']('oembed');if(_0x59139f){const _0x59db10=_0x59139f['getAttribute']('url');if(_0x59db10){const _0x1f3413=_0x5bd4eb['registry']['getMediaViewElement'](new _0x3afe49(_0x532714['editing']['view']['document']),_0x59db10,{'elementName':'','renderForEditingView':!0x0}),_0x5a19a2=document['createElement']('div');_0x5a19a2['classList']['add']('ck-media__wrapper'),_0x1f3413['render'](_0x5a19a2,_0x532714['editing']['view']['domConverter']),_0x59139f['replaceWith'](_0x5a19a2);}}}),_0x53c917[_0x2d2e2a]=_0x3598e5['innerHTML']);}return _0x53c917;}['_sortRoots'](_0x2c7745){if(!function(_0x46c5e7){return void 0x0!==_0x46c5e7['getRootsAttributes'];}(_0x2c7745))return _0x2c7745['model']['document']['getRootNames']();const _0xfb02b=[],_0x1e2df7=new Map();for(const _0x333f5d of _0x2c7745['model']['document']['getRootNames']()){const _0x2980bc=_0x2c7745['editing']['view']['getDomRoot'](_0x333f5d)['getClientRects']()['item'](0x0);_0xfb02b['push'](_0x333f5d),_0x1e2df7['set'](_0x333f5d,_0x2980bc);}return _0xfb02b['sort']((_0x12a621,_0x4e56e4)=>{const _0x2e396e=_0x1e2df7['get'](_0x12a621),_0x55d21b=_0x1e2df7['get'](_0x4e56e4);return _0x2e396e['y']-_0x55d21b['y']||_0x2e396e['x']-_0x55d21b['x'];}),_0xfb02b;}}class He extends _0x3721e7{static get['requires'](){return[re,_0x126e42];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d105f){super(_0x5d105f),_0x5d105f['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5d105f['config']['define']('trackChanges.preview.renderFunction',(_0xb43ef4,_0x537555)=>{for(const _0x4e4e5b of _0x537555)_0xb43ef4['appendChild'](_0x4e4e5b);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
23
+ import{Command as _0x270918,Plugin as _0x52a075,PendingActions as _0x3d0e7d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x7be711,ObservableMixin as _0x18315a,uid as _0x2c2b9e,priorities as _0x2c1f05,insertToPriorityArray as _0x1144b4,toArray as _0xb32834,logWarning as _0x2414da,getEnvKeystrokeText as _0x1219b2,FocusTracker as _0x13033f,KeystrokeHandler as _0x4cb6d8,Collection as _0x5b450a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5d52a8,IconCancel as _0x558c4f,IconTrackChanges as _0x59d875}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x5eae58,View as _0x51d71f,ViewCollection as _0x5a235d,FocusCycler as _0x321a44,UIModel as _0x26cb9b,createDropdown as _0x5d34d8,SplitButtonView as _0x144bfd,addListToDropdown as _0x1c341a,MenuBarMenuView as _0x1c3ee9,MenuBarMenuListView as _0x3e51c0,ListSeparatorView as _0x2f8145,MenuBarMenuListItemView as _0x3e8574,MenuBarMenuListItemButtonView as _0x2b239c,BodyCollection as _0x31fb44,Dialog as _0x5f4fe2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x579180,hashObject as _0x12f7dc,surroundingMarkersDetector as _0x3e292,FOCUS_ANNOTATION_KEYSTROKE as _0x5e10d1,AriaDescriptionView as _0x29fb78,setupThreadKeyboardNavigation as _0x928cbc,trimHtml as _0x4b53cc,UserView as _0x2b5f15,LateFocusButtonView as _0x129398,getDateTimeFormatter as _0x2b5c6e,getAllMarkersDomElementsSorted as _0x4bb435,sanitizeEditorConfig as _0x551fa1}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x5a549a,ModelLiveRange as _0x943391,ModelLivePosition as _0x32d683,ViewDowncastWriter as _0x5276ce}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xaf8ca2,toWidget as _0x16f1aa}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x42b426,set as _0x431e69,isEqual as _0x2ea7bb,unset as _0x41fe45,omit as Ut}from'es-toolkit/compat';import{Delete as _0x5a8285,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1ecc43}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x5cce79}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x270918{['_enabledCommands'];constructor(_0x2a9c0e,_0x453b58){super(_0x2a9c0e),this['_enabledCommands']=_0x453b58,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 _0x29ccdd of this['editor']['commands']['commands']())_0x29ccdd['affectsData']&&!this['_enabledCommands']['has'](_0x29ccdd)&&_0x29ccdd['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4a2c3a of this['editor']['commands']['commands']())_0x4a2c3a['affectsData']&&!this['_enabledCommands']['has'](_0x4a2c3a)&&_0x4a2c3a['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x270918{['_suggestions'];constructor(_0x5ddbd1,_0x356ae0){super(_0x5ddbd1),this['_suggestions']=_0x356ae0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4e8ca2){const _0x33c996=this['_suggestions']['get'](_0x4e8ca2);if(!_0x33c996)throw new _0x7be711('track-changes-accept-suggestion-not-found',this);const _0x4c23cf=_0x33c996['getRanges']();this['editor']['model']['canEditAt'](_0x4c23cf)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x33c996);}}class M extends _0x270918{['_suggestions'];constructor(_0x2f416f,_0x4382a5){super(_0x2f416f),this['_suggestions']=_0x4382a5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2f62b9){const _0x1a0e9f=this['_suggestions']['get'](_0x2f62b9);if(!_0x1a0e9f)throw new _0x7be711('track-changes-discard-suggestion-not-found',this);const _0x481dfc=_0x1a0e9f['getRanges']();this['editor']['model']['canEditAt'](_0x481dfc)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1a0e9f);}}function ls(_0x40fb29,_0xca2b51){let _0x13a091='';return _0x13a091+=_0x40fb29['split']('*')['map']((_0x34a293,_0x3a18fa)=>_0x3a18fa%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x34a293)+'</span>':Yt(_0x34a293))['join'](''),_0xca2b51&&(_0x13a091+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xca2b51['value']+'\x22\x20title=\x22'+_0xca2b51['title']+'\x22></span>'),_0x13a091;}function Yt(_0x3a6296){const _0x7f5e6f=document['createElement']('span');return _0x7f5e6f['innerText']=_0x3a6296,_0x7f5e6f['innerHTML'];}function ts(_0x54aaee){return _0x54aaee['sort']((_0x434427,_0x4b8804)=>'attribute'===_0x434427['type']&&'attribute'!==_0x4b8804['type']?-0x1:'attribute'!==_0x434427['type']&&'attribute'===_0x4b8804['type']?0x1:'deletion'==_0x434427['type']&&'deletion'!=_0x4b8804['type']?-0x1:'deletion'!=_0x434427['type']&&'deletion'==_0x4b8804['type']?0x1:0x0);}function to(_0x29eb1e,_0x603658){let _0x69ece1,_0x595c0a=0x0;const _0x23ef8a=[],_0x510bc8=_0x603658['schema'];for(;_0x595c0a<_0x29eb1e['length'];){const _0x3264f2=_0x29eb1e[_0x595c0a],_0x5bb6b8=_0x29eb1e[_0x595c0a+0x1];_0x69ece1||(_0x69ece1=_0x603658['createPositionBefore'](_0x3264f2)),Zt(_0x603658,_0x3264f2,_0x5bb6b8)||(_0x23ef8a['push'](_0x603658['createRange'](_0x69ece1,_0x510bc8['isObject'](_0x3264f2)?_0x603658['createPositionAfter'](_0x3264f2):_0x603658['createPositionAt'](_0x3264f2,'end'))),_0x69ece1=null),_0x595c0a++;}return _0x23ef8a;}function Zt(_0x37426d,_0x51cefc,_0x3c6177){if(!_0x3c6177)return!0x1;const _0x5f4596=_0x37426d['createPositionAfter'](_0x51cefc),_0x2c5192=_0x37426d['createPositionBefore'](_0x3c6177);return _0x5f4596['isTouching'](_0x2c5192);}function rs(_0x5951e9,_0x3119dc,_0x4e5313){for(;_0x4e5313['length'];){const _0x38b8a9=_0x4e5313['splice'](0x0,0x64);_0x5951e9['change'](()=>{for(const _0x5776f7 of _0x38b8a9)_0x5776f7['isInContent']&&_0x3119dc['execute'](_0x5776f7['id']);});}}class $ extends _0x270918{['_command'];['_suggestions'];constructor(_0x3dcfc4,_0x3c6008,_0x2c5104){super(_0x3dcfc4),this['_command']=_0x3c6008,this['_suggestions']=_0x2c5104,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4c01b4=Array['from'](this['_suggestions']['values']())['some'](_0x364247=>_0x364247['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4c01b4;}['execute'](){const _0x11d010=ts(Array['from'](this['_suggestions']['values']()));for(const _0x7f73bc of _0x11d010){const _0x4a26a4=_0x7f73bc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a26a4))return;}rs(this['editor']['model'],this['_command'],_0x11d010);}}class B extends _0x270918{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x35a8b6,_0x2b947d,_0x59d41d){super(_0x35a8b6),this['_command']=_0x2b947d,this['_suggestions']=_0x59d41d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x34b839=this['editor']['model']['document']['selection'],_0x5db4e2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5d92fc,_0x46f112){const _0x27b2d4=Array['from'](_0x5d92fc['getRanges']()),_0x1c11b7=new Set();for(const _0x1e0dc8 of _0x46f112)if(_0x1e0dc8['isInContent']){for(const _0x4f3e8a of _0x27b2d4)for(const _0x2045dd of _0x1e0dc8['getRanges']())(_0x4f3e8a['isIntersecting'](_0x2045dd)||_0x5d92fc['isCollapsed']&&!_0x1e0dc8['isMultiRange']&&_0x1e0dc8['next']&&_0x2045dd['end']['isTouching'](_0x4f3e8a['start']))&&_0x1c11b7['add'](_0x1e0dc8);}return _0x1c11b7;}(_0x34b839,_0x5db4e2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1c3355=ts(Array['from'](this['_selectedSuggestions']));for(const _0x850fd of _0x1c3355){const _0x2b0e04=_0x850fd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2b0e04))return;}rs(this['editor']['model'],this['_command'],_0x1c3355);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x18315a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x18875d,_0xac48fe){super(),this['id']=_0xac48fe['id'],this['type']=_0xac48fe['type'],this['subType']=_0xac48fe['subType']||null,this['author']=_0xac48fe['author'],this['creator']=_0xac48fe['creator']||_0xac48fe['author'],this['isExternal']=Boolean(_0xac48fe['attributes']&&_0xac48fe['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xac48fe['originalSuggestionId']||null,this['_model']=_0x18875d,this['_onAccept']=_0xac48fe['onAccept'],this['_onDiscard']=_0xac48fe['onDiscard'],this['_onAttributesChange']=_0xac48fe['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xac48fe['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 _0x1e3031=this;for(;_0x1e3031['previous'];)_0x1e3031=_0x1e3031['previous'];return _0x1e3031;}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'](_0x3dd533){this['_markerNames']['add'](_0x3dd533);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1ca810=>this['_model']['markers']['get'](_0x1ca810))['filter'](_0x487d14=>_0x487d14);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x75f985=>{for(const _0x441859 of this['getMarkers']())_0x75f985['removeMarker'](_0x441859);}),this['_markerNames']['clear']();}['removeMarker'](_0x528054){this['_model']['change'](_0x285840=>{_0x285840['removeMarker'](_0x528054);}),this['_markerNames']['delete'](_0x528054);}['addRange'](_0x3d226c){const _0x1614e6='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x1614e6),this['_model']['change'](_0x1b4d42=>{_0x1b4d42['addMarker'](_0x1614e6,{'range':_0x3d226c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2f7670){for(const _0x3b24f9 of this['getRanges']())if(_0x3b24f9['isIntersecting'](_0x2f7670))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5144f6=>_0x5144f6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x414c5e,_0x5e2673)=>[..._0x414c5e,..._0x5e2673['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x17f733=this['getRanges']();if(0x1!=_0x17f733['length'])return null;const _0x5138ca=_0x17f733[0x0],_0xacc861=_0x5138ca['start']['nodeAfter'],_0x2f60f5=_0x5138ca['end']['nodeBefore'];return _0xacc861 instanceof _0x5a549a?_0xacc861!=_0x2f60f5?null:_0xacc861: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 _0x2b8c88=[];let _0x202af6=this['head'];for(;_0x202af6;)_0x2b8c88['push'](_0x202af6),_0x202af6=_0x202af6['next'];return _0x2b8c88;}['setAttribute'](_0x2150c0,_0x3dfae4){const _0x330e1c=_0x42b426(this['attributes']);_0x431e69(_0x330e1c,_0x2150c0,_0x3dfae4),_0x2ea7bb(_0x330e1c,this['attributes'])||(this['attributes']=_0x330e1c,this['_onAttributesChange'](_0x330e1c));}['removeAttribute'](_0x1bff42){const _0x17dc92=_0x42b426(this['attributes']);_0x41fe45(_0x17dc92,_0x1bff42),_0x2ea7bb(_0x17dc92,this['attributes'])||(this['attributes']=_0x17dc92,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 _0x2c2b9e()['substr'](0x1,0x5);}}function o(_0x2891c6,_0x2d4efd,_0x32770b){const _0x42c688=_0x2891c6['t'],t=_0x2891c6['t'];switch(_0x2d4efd){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',_0x32770b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x32770b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x32770b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x32770b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x32770b);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',_0x32770b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x32770b);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',_0x32770b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x32770b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x32770b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x32770b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x32770b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x32770b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x32770b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x32770b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x32770b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x32770b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x32770b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x32770b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x32770b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x32770b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x32770b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x32770b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x32770b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x32770b);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'},_0x32770b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x32770b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x32770b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x32770b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x32770b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x32770b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x32770b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x32770b);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'},_0x32770b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x32770b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x32770b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x32770b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x32770b);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x32770b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x32770b);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'},_0x32770b);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'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'},_0x32770b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x32770b);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'},_0x32770b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x32770b);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'},_0x32770b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x32770b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x32770b);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'},_0x32770b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x32770b);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 _0x42c688({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x32770b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x42c688({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x32770b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x32770b);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'},_0x32770b);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'},_0x32770b);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'},_0x32770b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2d4efd;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x50b87a,_0x54d3f3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x50b87a,this['_locale']=_0x54d3f3;}['getDescriptions'](_0x5ce7ed){const _0x12b899=[],_0x195b82=new Set(),_0x2a3a32=new Set();for(let _0x30966f=0x0;_0x30966f<_0x5ce7ed['length'];_0x30966f++){const _0x557189=_0x5ce7ed[_0x30966f];if(!_0x557189['isInContent'])continue;const _0x12d75f=this['_handleCustomCallbackDescription'](_0x557189);if(_0x12d75f){if(null!=_0x557189['subType']){if(_0x195b82['has'](_0x557189['subType']))continue;_0x195b82['add'](_0x557189['subType']);}_0x12b899['push'](_0x12d75f);}else{if('attribute'==_0x557189['type']){const _0x2ebcbf=_0x557189['data']['key'];if(_0x2a3a32['has'](_0x2ebcbf))continue;_0x2a3a32['add'](_0x557189['data']['key']),_0x2ebcbf==m?this['_handleRenameSuggestionDescription'](_0x12b899,_0x557189):this['_handleAttributeSuggestionDescription'](_0x12b899,_0x557189);continue;}'insertion'!=_0x557189['type']&&'deletion'!=_0x557189['type']||this['_handleInsertRemoveSuggestionDescription'](_0x12b899,_0x557189,_0x5ce7ed[_0x30966f+0x1]);}}return this['_resolveDescriptionItems'](_0x12b899);}['registerDescriptionCallback'](_0x2f2d2e){this['_customCallbacks']['push'](_0x2f2d2e);}['registerElementLabel'](_0xfdbe57,_0x348a3a,_0x3b326a=_0x2c1f05['normal']){'function'==typeof _0xfdbe57?_0x1144b4(this['_itemLabelsCallbacks'],{'matchingCallback':_0xfdbe57,'label':_0x348a3a,'priority':_0x3b326a}):this['_itemLabels']['set'](_0xfdbe57,_0x348a3a);}['registerAttributeLabel'](_0x3b2ff4,_0xe6beb6){this['_attributeLabels']['set'](_0x3b2ff4,_0xe6beb6);}['getItemLabel'](_0x4e6284,_0x3dd96f=0x1){let _0x3cc99d;for(const _0x5ab0fb of this['_itemLabelsCallbacks'])if(_0x5ab0fb['matchingCallback'](_0x4e6284)){_0x3cc99d=_0x5ab0fb['label'];break;}return _0x3cc99d||(_0x3cc99d=this['_itemLabels']['get'](_0x4e6284['name'])),_0x3cc99d?_0x3cc99d(_0x3dd96f):0x1!==_0x3dd96f?_0x3dd96f+'\x20'+_0x4e6284['name']+'s':''+_0x4e6284['name'];}['_addDescriptionItems'](_0x585430,_0x4436e2){const _0x4343e3=_0x4436e2['getFirstRange']()['getWalker'](),_0x887320='insertion'==_0x4436e2['type']?'add':'remove';for(const _0x3cdbf8 of _0x4343e3){const _0x50b4f1=_0x3cdbf8['item'],_0x556fe9=_0x585430[_0x585430['length']-0x1];if(_0x50b4f1['is']('$textProxy'))_0x556fe9&&_0x556fe9['type']['indexOf']('Container')>-0x1&&_0x585430['pop'](),_0x556fe9&&'text'==_0x556fe9['type']?_0x556fe9[_0x887320]+=_0x50b4f1['data']:_0x585430['push']({'type':'text','add':'add'==_0x887320?_0x50b4f1['data']:'','remove':'remove'==_0x887320?_0x50b4f1['data']:''});else{if(this['_schema']['isObject'](_0x50b4f1)){const _0x39a9e0=_0x50b4f1;if(_0x556fe9&&_0x556fe9['type']['indexOf']('Container')>-0x1&&_0x585430['pop'](),'elementEnd'==_0x3cdbf8['type'])continue;_0x556fe9&&_0x556fe9['type']==_0x887320+'Object'&&_0x556fe9['element']['name']==_0x39a9e0['name']?_0x556fe9['quantity']++:_0x585430['push']({'type':_0x887320+'Object','element':_0x39a9e0,'quantity':0x1}),_0x4343e3['skip'](_0x2870ab=>!('elementEnd'==_0x2870ab['type']&&_0x2870ab['item']==_0x50b4f1));}else{if(this['_schema']['checkChild'](_0x50b4f1,'$text')||_0x50b4f1['is']('element','softBreak')){const _0x4c95c0=_0x50b4f1;if('add'==_0x887320&&'elementStart'==_0x3cdbf8['type']||'remove'==_0x887320&&'elementEnd'==_0x3cdbf8['type'])continue;if(_0x556fe9&&-0x1==_0x556fe9['type']['indexOf']('Container')){'text'==_0x556fe9['type']&&(_0x556fe9[_0x887320]+='\x0a');continue;}let _0xf7bb0e;if(_0xf7bb0e='add'==_0x887320?_0x4c95c0['nextSibling']&&!this['_schema']['isObject'](_0x4c95c0['nextSibling'])?_0x4c95c0['nextSibling']:null:_0x4c95c0['previousSibling']&&!this['_schema']['isObject'](_0x4c95c0['previousSibling'])?_0x4c95c0['previousSibling']:null,_0x4c95c0['isEmpty']||_0xf7bb0e&&_0xf7bb0e['isEmpty']){const _0xc32022=_0xf7bb0e&&_0xf7bb0e['isEmpty']?_0xf7bb0e:_0x4c95c0;_0x556fe9&&_0x556fe9['type']==_0x887320+'EmptyContainer'&&_0x556fe9['element']['name']==_0xc32022['name']?_0x556fe9['quantity']++:_0x585430['push']({'type':_0x887320+'EmptyContainer','element':_0xc32022,'quantity':0x1});}else _0x585430['push']({'type':_0x887320+'Container','element':_0x4c95c0});}}}}}['_resolveDescriptionItems'](_0x472e11){const _0x310545=this['_locale'],_0x110755=[],_0x138452=[],_0x341937=[];for(const _0x18e778 of _0x472e11)switch(_0x18e778['type']){case'text':if(_0x18e778['add']=_0x18e778['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x18e778['remove']=_0x18e778['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x18e778['add']&&''!=_0x18e778['remove']){_0x110755['push']({'type':'replace','content':o(_0x310545,'REPLACE_TEXT',['\x22'+_0x18e778['remove']+'\x22','\x22'+_0x18e778['add']+'\x22'])});continue;}if(null!=_0x18e778['add']['match'](/^ +$/)){_0x110755['push']({'type':'insertion','content':o(_0x310545,'*Insert:*\x20%0',o(_0x310545,'ELEMENT_SPACE',_0x18e778['add']['length']))});continue;}if(null!=_0x18e778['remove']['match'](/^ +$/)){_0x110755['push']({'type':'deletion','content':o(_0x310545,'*Remove:*\x20%0',o(_0x310545,'ELEMENT_SPACE',_0x18e778['remove']['length']))});continue;}if(''!=_0x18e778['add']){_0x110755['push']({'type':'insertion','content':o(_0x310545,'*Insert:*\x20%0','\x22'+_0x18e778['add']+'\x22')});continue;}_0x110755['push']({'type':'deletion','content':o(_0x310545,'*Remove:*\x20%0','\x22'+_0x18e778['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x110755['push']({'type':'insertion','content':o(_0x310545,'*Insert:*\x20%0',this['getItemLabel'](_0x18e778['element'],_0x18e778['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x110755['push']({'type':'deletion','content':o(_0x310545,'*Remove:*\x20%0',this['getItemLabel'](_0x18e778['element'],_0x18e778['quantity']))});continue;case'addContainer':_0x110755['push']({'type':'insertion','content':o(_0x310545,'*Split:*\x20%0',this['getItemLabel'](_0x18e778['element'],_0x18e778['quantity']))});continue;case'removeContainer':_0x110755['push']({'type':'deletion','content':o(_0x310545,'*Merge:*\x20%0',this['getItemLabel'](_0x18e778['element'],_0x18e778['quantity']))});continue;case'addFormat':_0x138452['push'](_0x18e778['key']);continue;case'removeFormat':_0x341937['push'](_0x18e778['key']);continue;default:_0x110755['push'](_0x18e778);}if(_0x138452['length']){const _0x49e9f9=_0x138452['map'](_0x45701f=>this['_attributeLabels']['has'](_0x45701f)?this['_attributeLabels']['get'](_0x45701f):_0x45701f)['join'](',\x20');_0x110755['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x49e9f9)});}if(_0x341937['length']){const _0x43348d=_0x341937['map'](_0x2878ca=>this['_attributeLabels']['has'](_0x2878ca)?this['_attributeLabels']['get'](_0x2878ca):_0x2878ca)['join'](',\x20');_0x110755['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x43348d)});}return _0x110755;}['_handleCustomCallbackDescription'](_0x4bd2e0){for(const _0x5510ee of this['_customCallbacks']){const _0x32baee=_0x5510ee(_0x4bd2e0);if(_0x32baee&&'type'in _0x32baee)return _0x32baee;}}['_handleAttributeSuggestionDescription'](_0x289da7,_0x6b411b){const _0x1a5b93=_0x6b411b['data'],_0x2fa191=void 0x0===_0x1a5b93['newValue']?'removeFormat':'addFormat';_0x289da7['push']({'type':_0x2fa191,'key':_0x1a5b93['key']});}['_handleRenameSuggestionDescription'](_0x45e2f7,_0x497534){_0x45e2f7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x497534['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xd95dab,_0x5ec62a,_0x58571a){if(this['_addDescriptionItems'](_0xd95dab,_0x5ec62a),_0x58571a&&_0x58571a['getFirstRange']()&&!_0x5ec62a['getFirstRange']()['end']['isEqual'](_0x58571a['getFirstRange']()['start'])){const _0x46f33a=_0xd95dab[_0xd95dab['length']-0x1],_0x2e6d26='insertion'==_0x5ec62a['type']?'add':'remove';_0x46f33a&&'text'==_0x46f33a['type']&&(_0x46f33a[_0x2e6d26]+='\x0a');}}}class O extends _0x52a075{['afterInit'](){const _0x1a9c37=this['editor'],_0x148c9b=_0x1a9c37['plugins']['get']('TrackChangesEditing');_0x1a9c37['commands']['get']('showAIAssistant')&&_0x148c9b['enableCommand']('showAIAssistant');}}class E extends _0x52a075{['afterInit'](){const _0x236f7f=this['editor'],_0x5da671=_0x236f7f['locale'];if(!_0x236f7f['plugins']['has']('AlignmentEditing'))return;const _0x7f0c59=_0x236f7f['plugins']['get']('TrackChangesEditing');_0x7f0c59['enableDefaultAttributesIntegration']('alignment'),_0x7f0c59['registerBlockAttribute']('alignment'),_0x7f0c59['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5da671,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b1bd5=this['editor'],_0x2cebf2=_0x2b1bd5['locale'];_0x2b1bd5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22abd7=>{if('formatBlock'!=_0x22abd7['type'])return;const {data:_0x1dcea6}=_0x22abd7;if(_0x1dcea6&&'alignment'==_0x1dcea6['commandName']){const _0x23d06a=_0x1dcea6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2cebf2,'*Format:*\x20%0',function(_0x218bf9){switch(_0x218bf9){case'left':return o(_0x2cebf2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2cebf2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2cebf2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2cebf2,'FORMAT_JUSTIFY_TEXT');}}(_0x23d06a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x52a075{['afterInit'](){const _0x4a5a21=this['editor'],_0x19d484=_0x4a5a21['plugins']['get']('TrackChangesEditing'),_0x45955d=_0x4a5a21['locale'];for(const _0x162604 of ti){if(!_0x4a5a21['plugins']['has'](_0x162604))continue;const _0x3504df=_0x162604['slice'](0x0,-0x7)['toLowerCase'](),_0x14a278='FORMAT_'+_0x3504df['toUpperCase']();_0x19d484['enableDefaultAttributesIntegration'](_0x3504df),_0x19d484['registerInlineAttribute'](_0x3504df),_0x19d484['descriptionFactory']['registerAttributeLabel'](_0x3504df,o(_0x45955d,_0x14a278));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e106b=this['editor'],_0x48b765=_0x5e106b['locale'],_0x4450e9=_0x5e106b['plugins']['get']('TrackChangesEditing');function _0x1e4f0e(_0x15b977,_0x51bc12){_0x4450e9['descriptionFactory']['registerDescriptionCallback'](_0x2aa2f4=>{if('formatInline'!=_0x2aa2f4['type'])return;const {data:_0x5cbad5}=_0x2aa2f4;return _0x5cbad5&&_0x5cbad5['commandName']===_0x15b977?_0x5cbad5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48b765,'*Format:*\x20%0',_0x51bc12)}:{'type':'format','content':o(_0x48b765,'*Remove\x20format:*\x20%0',_0x51bc12)}:void 0x0;});}_0x1e4f0e('bold',o(_0x48b765,'FORMAT_BOLD')),_0x1e4f0e('italic',o(_0x48b765,'FORMAT_ITALIC')),_0x1e4f0e('underline',o(_0x48b765,'FORMAT_UNDERLINE')),_0x1e4f0e('code',o(_0x48b765,'FORMAT_CODE')),_0x1e4f0e('strikethrough',o(_0x48b765,'FORMAT_STRIKETHROUGH')),_0x1e4f0e('subscript',o(_0x48b765,'FORMAT_SUBSCRIPT')),_0x1e4f0e('superscript',o(_0x48b765,'FORMAT_SUPERSCRIPT'));}}class U extends _0x52a075{['afterInit'](){const _0x15e19b=this['editor'],_0x3722bb=_0x15e19b['locale'];if(!_0x15e19b['plugins']['has']('BlockQuoteEditing'))return;const _0x6a965c=_0x15e19b['plugins']['get']('TrackChangesEditing'),_0x211948=this['editor']['commands']['get']('blockQuote');_0x6a965c['enableCommand']('blockQuote',(_0x519226,_0x5b1fbf={})=>{const _0x47abca=this['editor']['model']['document']['selection'],_0x3ce953=_0x5b1fbf&&void 0x0!==_0x5b1fbf['forceValue']?_0x5b1fbf['forceValue']:!_0x211948['value'];let _0x2a8f15=[];if(_0x3ce953){const _0x2cdf43=Array['from'](_0x47abca['getSelectedBlocks']())['filter'](_0x247135=>oo(_0x247135)||function(_0x46f05c,_0x3fe5cb){const _0x3ceb4=_0x3fe5cb['checkChild'](_0x46f05c['parent'],'blockQuote'),_0x26705b=_0x3fe5cb['checkChild'](['$root','blockQuote'],_0x46f05c);return _0x3ceb4&&_0x26705b;}(_0x247135,this['editor']['model']['schema']));_0x2a8f15=to(_0x2cdf43,_0x15e19b['model']);}else{const _0x3d63f4=Array['from'](_0x47abca['getSelectedBlocks']())['filter'](_0x1a6378=>oo(_0x1a6378));_0x2a8f15=to(_0x3d63f4,_0x15e19b['model']);}_0x15e19b['model']['change'](()=>{for(const _0x10fe2d of _0x2a8f15)_0x6a965c['markBlockFormat'](_0x10fe2d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3ce953}]});});}),_0x6a965c['descriptionFactory']['registerDescriptionCallback'](_0x5d43f5=>{const {data:_0x444d59}=_0x5d43f5;if(_0x444d59&&'blockQuote'==_0x444d59['commandName']){const _0x3b5b92=o(_0x3722bb,'ELEMENT_BLOCK_QUOTE');return _0x444d59['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3722bb,'*Set\x20format:*\x20%0',_0x3b5b92)}:{'type':'format','content':o(_0x3722bb,'*Remove\x20format:*\x20%0',_0x3b5b92)};}});}}function oo(_0x47db9c){return'blockQuote'==_0x47db9c['parent']['name'];}class V extends _0x52a075{['afterInit'](){const _0x130213=this['editor'],_0x7d8f72=_0x130213['locale'],_0x4129d5=_0x130213['plugins']['get']('TrackChangesEditing');_0x130213['plugins']['has']('BookmarkEditing')&&(_0x4129d5['enableCommand']('insertBookmark'),_0x4129d5['enableDefaultAttributesIntegration']('updateBookmark'),_0x4129d5['registerBlockAttribute']('bookmarkId'),_0x4129d5['descriptionFactory']['registerDescriptionCallback'](_0xd1c12f=>{if('insertion'!=_0xd1c12f['type']&&'deletion'!=_0xd1c12f['type']&&'attribute'!=_0xd1c12f['type'])return;const _0x18ab48=_0xd1c12f['getContainedElement']();if(null==_0x18ab48)return;if(!_0x18ab48['is']('element','bookmark'))return;const _0x20895f=_0x18ab48['getAttribute']('bookmarkId');if('insertion'==_0xd1c12f['type'])return{'type':'insertion','content':o(_0x7d8f72,'*Insert:*\x20%0','\x22'+_0x20895f+'\x22\x20'+o(_0x7d8f72,'ELEMENT_BOOKMARK'))};if('deletion'==_0xd1c12f['type'])return{'type':'deletion','content':o(_0x7d8f72,'*Remove:*\x20%0','\x22'+_0x20895f+'\x22\x20'+o(_0x7d8f72,'ELEMENT_BOOKMARK'))};const {data:_0x14291e}=_0xd1c12f;if(!_0x14291e||'bookmarkId'!=_0x14291e['key'])return;return{'type':'format','content':o(_0x7d8f72,'*Set\x20bookmark:*\x20%0','\x22'+_0x14291e['newValue']+'\x22')};}));}}class F extends _0x52a075{['afterInit'](){const _0x193201=this['editor'];_0x193201['plugins']['has']('CaseChange')&&(_0x193201['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x193201['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x193201['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x52a075{['afterInit'](){const _0x3f0771=this['editor'];_0x3f0771['commands']['get']('ckbox')&&_0x3f0771['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x52a075{['afterInit'](){const _0x122ef9=this['editor'];if(!_0x122ef9['plugins']['has']('CodeBlock'))return;const _0x15f089=_0x122ef9['plugins']['get']('TrackChangesEditing'),_0x424e1a=_0x122ef9['locale'],_0x59811e=_0x122ef9['config']['get']('codeBlock')['languages'],_0x452456=_0x122ef9['commands']['get']('codeBlock');_0x15f089['enableCommand']('indentCodeBlock'),_0x15f089['enableCommand']('outdentCodeBlock'),_0x15f089['enableCommand']('codeBlock',(_0x4df6f9,_0x2a424c={})=>{const _0x590674=_0x122ef9['model'],_0x4ddc1a=_0x122ef9['model']['document']['selection'],_0x20e886=_0x2a424c&&void 0x0!==_0x2a424c['forceValue']?_0x2a424c['forceValue']:!_0x452456['value'];let _0x3b4c6f;_0x2a424c['language']||(_0x2a424c['language']=_0x59811e[0x0]['language']),_0x3b4c6f=_0x20e886?Array['from'](_0x4ddc1a['getSelectedBlocks']())['filter'](_0x2b59f8=>co(_0x2b59f8)||function(_0x5cee4a,_0x1f3162){if(_0x5cee4a['is']('rootElement')||_0x1f3162['isLimit'](_0x5cee4a))return!0x1;return _0x1f3162['checkChild'](_0x5cee4a['parent'],'codeBlock');}(_0x2b59f8,_0x590674['schema'])):Array['from'](_0x4ddc1a['getSelectedBlocks']())['filter'](_0x344928=>co(_0x344928));const _0x3856a1=to(_0x3b4c6f,_0x590674);_0x590674['change'](()=>{for(const _0x2aaa15 of _0x3856a1)_0x15f089['markBlockFormat'](_0x2aaa15,{'commandName':'codeBlock','commandParams':[{..._0x2a424c,'forceValue':_0x20e886}],'formatGroupId':'blockName'});});}),(_0x15f089['descriptionFactory']['registerElementLabel']('codeBlock',_0x469094=>o(_0x424e1a,'ELEMENT_CODE_BLOCK',_0x469094)),_0x15f089['descriptionFactory']['registerDescriptionCallback'](_0x2f0187=>{if('formatBlock'!=_0x2f0187['type'])return;const _0x4178d4=_0x424e1a['t'],{data:_0xc7d962}=_0x2f0187;if(!_0xc7d962||'codeBlock'!=_0xc7d962['commandName'])return;const _0x3652bc=_0xc7d962['commandParams'][0x0]['language'],_0x5063ee=_0x4178d4(_0x59811e['find'](_0x1e02e6=>_0x1e02e6['language']===_0x3652bc)['label'])['toLowerCase']();return _0xc7d962['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x424e1a,'*Set\x20format:*\x20%0',o(_0x424e1a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5063ee+')')}:{'type':'format','content':o(_0x424e1a,'*Remove\x20format:*\x20%0',o(_0x424e1a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3318cb){return'codeBlock'==_0x3318cb['name'];}class J extends _0x52a075{['afterInit'](){const _0x43fbc0=this['editor'];if(!_0x43fbc0['plugins']['has']('CommentsEditing'))return;_0x43fbc0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4988b0,_0x2b4b03,_0x1d5341){const _0x37ee65=[];for(const _0x4dee7a of _0x2b4b03['getItems']())_0x4dee7a['hasAttribute'](_0x4988b0)&&_0x37ee65['push'](_0x1d5341['createRangeOn'](_0x4dee7a));return _0x37ee65;}function De(_0x318118,_0x19b8e2,{showActiveMarker:_0x431ed4=!0x0}={}){const _0x25548b=_0x318118['plugins']['get']('TrackChangesEditing');return(_0x2dd55b,_0x520c09,_0x3619c9)=>{if(!_0x3619c9['consumable']['test'](_0x520c09['markerRange'],_0x2dd55b['name']))return;const _0x23bdbc=_0x520c09['markerRange']['getWalker'](),_0x3432ce=_0x520c09['markerRange']['start'],_0x595898=_0x318118['model']['schema'];let _0x30152b=null,_0x2ef093=null,_0x5a0a8d=!0x1,_0x26f73c=!0x1;for(const _0x505cef of _0x23bdbc){const _0x2a06fa=_0x505cef['item'];_0x5a0a8d=_0x5a0a8d||_0x595898['isContent'](_0x2a06fa);const _0x2aa4d7=_0x3619c9['mapper']['toViewElement'](_0x2a06fa);if(_0x2aa4d7&&_0x2aa4d7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x505cef['type']&&(_0x595898['isBlock'](_0x2a06fa)&&!_0x595898['isLimit'](_0x2a06fa)&&(_0x2a06fa['nextSibling']||_0x3432ce['isAtEnd']?_0x30152b&&_0x30152b['parent']==_0x2a06fa||(_0x30152b=_0x2a06fa,_0x411cd8(_0x505cef['previousPosition']),_0x26f73c=!0x0):_0x2ef093=_0x2ef093||_0x505cef['previousPosition']));}function _0x411cd8(_0x35f8a7){const {id:_0x4cb1c4,authorId:_0x116477}=_0x25548b['_splitMarkerName'](_0x520c09['markerName']),_0x2c855f=_0x3619c9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x19b8e2,'data-suggestion':_0x4cb1c4,'data-author-id':_0x116477}),_0x1ed309=_0x3619c9['mapper']['toViewPosition'](_0x35f8a7);_0x431ed4&&_0x25548b['activeMarkers']['includes'](_0x520c09['markerName'])&&_0x3619c9['writer']['addClass']('ck-suggestion-marker--active',_0x2c855f),_0x3619c9['writer']['insert'](_0x1ed309,_0x2c855f),_0x3619c9['mapper']['bindElementToMarker'](_0x2c855f,_0x520c09['markerName']);}_0x5a0a8d||_0x26f73c||!_0x2ef093||_0x411cd8(_0x2ef093);};}class K extends _0x52a075{static get['requires'](){return[_0x5a8285];}['init'](){const _0x2f7aa4=this['editor'],_0x1dd715=_0x2f7aa4['plugins']['get']('TrackChangesEditing');_0x1dd715['enableCommand']('delete');const _0x3ca768=_0x2f7aa4['commands']['get']('deleteForward');_0x1dd715['enableCommand']('deleteForward',(_0x2d3888,_0x489a1c={})=>{const _0x5509c3=_0x2f7aa4['model']['createSelection'](_0x2f7aa4['model']['document']['selection']);_0x5509c3['isCollapsed']&&_0x2f7aa4['model']['modifySelection'](_0x5509c3,{'direction':'forward','unit':_0x489a1c['unit']});const _0x30a12c=_0x5509c3['getFirstRange'](),_0x1a084f=_0x943391['fromRange'](_0x30a12c);let _0x1605d2;_0x2d3888(_0x489a1c),_0x1605d2='$graveyard'==_0x1a084f['root']['rootName']?_0x2f7aa4['model']['createRange'](_0x30a12c['start']):_0x2f7aa4['model']['createRange'](_0x1a084f['start'],_0x1a084f['end']),_0x1a084f['detach'](),_0x2f7aa4['model']['enqueueChange'](_0x3ca768['buffer']['batch'],_0x232110=>{_0x3ca768['buffer']['lock'](),_0x232110['setSelection'](_0x232110['createRange'](_0x1605d2['end'])),_0x3ca768['buffer']['unlock']();});}),_0x2f7aa4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x2f7aa4,'merge'),{'priority':'high'}),_0x2f7aa4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5cd502,_0x33ac51,_0x2249aa)=>{_0x2249aa['options']['showSuggestionHighlights']&&De(_0x2f7aa4,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5cd502,_0x33ac51,_0x2249aa);},{'priority':'high'}),_0x2f7aa4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x334e8f,_0x84070c,_0x11a432)=>{const _0x124905=_0x11a432['mapper']['markerNameToElements'](_0x84070c['markerName']);if(_0x124905){for(const _0x1ffcc9 of _0x124905)_0x1ffcc9['is']('uiElement')&&(_0x11a432['mapper']['unbindElementFromMarkerName'](_0x1ffcc9,_0x84070c['markerName']),_0x11a432['writer']['remove'](_0x1ffcc9));}},{'priority':'high'});}}class H extends _0x52a075{['afterInit'](){const _0x21c650=this['editor'];if(!_0x21c650['plugins']['has']('ListEditing'))return;const _0x50355e=_0x21c650['locale'],_0xa87284=_0x21c650['plugins']['get']('TrackChangesEditing'),_0x89b6b6=_0x21c650['plugins']['has']('TodoListEditing'),_0x3770b0=!!_0x21c650['config']['get']('list.multiBlock');function _0x2c3b29(_0x22c876){return{'type':'format','content':''+o(_0x50355e,'*Set\x20format:*\x20%0',_0x22c876)};}function _0xcd56fd(_0x43773c){return{'type':'format','content':''+o(_0x50355e,'*Remove\x20format:*\x20%0',_0x43773c)};}_0xa87284['enableDefaultAttributesIntegration']('numberedList'),_0xa87284['enableDefaultAttributesIntegration']('bulletedList'),_0xa87284['enableDefaultAttributesIntegration']('customNumberedList'),_0xa87284['enableDefaultAttributesIntegration']('customBulletedList'),_0xa87284['enableDefaultAttributesIntegration']('indentList'),_0xa87284['enableDefaultAttributesIntegration']('outdentList'),_0xa87284['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xa87284['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xa87284['registerBlockAttribute']('listItemId'),_0xa87284['registerBlockAttribute']('listType'),_0xa87284['registerBlockAttribute']('listIndent'),_0x3770b0&&(_0xa87284['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xa87284['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x89b6b6&&(_0xa87284['enableDefaultAttributesIntegration']('todoList'),_0xa87284['enableDefaultAttributesIntegration']('checkTodoList'),_0xa87284['registerBlockAttribute']('todoListChecked'),_0xa87284['descriptionFactory']['registerDescriptionCallback'](_0x4c5009=>{const {data:_0xb8cdb6}=_0x4c5009;if(_0xb8cdb6&&'todoListChecked'==_0xb8cdb6['key'])return{'type':'format','content':_0xb8cdb6['newValue']?o(_0x50355e,'*Check\x20item*'):o(_0x50355e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x22416e=>{if(_0x22416e['batch']['isUndo'])return!0x1;let _0x1bc91c=!0x1;const _0x31c4f7=_0xa87284['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x471fee=>'todoListChecked'===_0xa87284['_getAttributeKey'](_0x471fee));for(const _0x48d4d3 of _0x31c4f7){'todo'!=_0x48d4d3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xa87284['_findSuggestions'](_0x48d4d3['getFirstRange'](),'attribute')['find'](_0x470c8e=>'listType'===_0xa87284['_getAttributeKey'](_0x470c8e['suggestion']))||(_0x22416e['removeMarker'](_0x48d4d3['getFirstMarker']()),_0x1bc91c=!0x0));}return _0x1bc91c;})),_0xa87284['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x50355e,'FORMAT_INDENT'));const _0x273145={'type':'format','content':''};_0xa87284['descriptionFactory']['registerDescriptionCallback'](_0x290097=>{const {data:_0x421755}=_0x290097;if(!_0x421755||'listType'!=_0x421755['key'])return;let _0x1a94ea=_0x290097['head'];for(;_0x1a94ea;){if(_0x1a94ea['data']&&(('listStyle'==_0x1a94ea['data']['key']||'listMarkerStyle'==_0x1a94ea['data']['key'])&&(_0x1a94ea['data']['newValue']&&'default'!=_0x1a94ea['data']['newValue']||'default'!=_0x1a94ea['data']['oldValue']&&!_0x421755['newValue'])||!_0x3770b0&&_0x1a94ea['data']['key']==m))return _0x273145;_0x1a94ea=_0x1a94ea['next'];}if(null==_0x421755['newValue'])switch(_0x421755['oldValue']){case'bulleted':return _0xcd56fd(o(_0x50355e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xcd56fd(o(_0x50355e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xcd56fd(o(_0x50355e,'ELEMENT_TODO_LIST'));}switch(_0x421755['newValue']){case'bulleted':return _0x2c3b29(o(_0x50355e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c3b29(o(_0x50355e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c3b29(o(_0x50355e,'ELEMENT_TODO_LIST'));}}),_0xa87284['descriptionFactory']['registerDescriptionCallback'](_0x3cfb50=>{const {data:_0x201741}=_0x3cfb50;if(_0x201741&&'listIndent'==_0x201741['key'])return null==_0x201741['newValue']||null==_0x201741['oldValue']&&0x0==_0x201741['newValue']?_0x273145:void 0x0;}),_0xa87284['descriptionFactory']['registerDescriptionCallback'](_0x18b191=>{if('attribute'!=_0x18b191['type'])return;const {data:_0x4ef703}=_0x18b191;if(!_0x4ef703||'listItemId'!=_0x4ef703['key'])return;const _0x54edfc=Te(_0x18b191);return'newValue'==_0x54edfc?{'type':'format','content':o(_0x50355e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x54edfc?{'type':'format','content':o(_0x50355e,'*Split:*\x20list\x20item')}:_0x273145;}),_0x21c650['model']['document']['registerPostFixer'](_0x380c14=>this['listItemIdFixer'](_0x380c14)),_0x21c650['model']['document']['registerPostFixer'](_0x44b148=>this['noTrackChangesFixer'](_0x44b148)),_0x21c650['model']['document']['on']('change:data',(_0x363f43,_0x164c04)=>{if(_0x164c04['isUndo']||!_0x164c04['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x55eab6){if(_0x55eab6['batch']['isUndo']||!_0x55eab6['batch']['isLocal'])return!0x1;let _0x3d7313=!0x1;const _0x2f12aa=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x418e1b=>_0x418e1b['data']&&'listItemId'==_0x418e1b['data']['key'])['filter'](_0x4685c8=>_0x4685c8['data']['newValue']&&_0x4685c8['data']['oldValue']);for(const _0x1053c5 of _0x2f12aa)Te(_0x1053c5)||(_0x55eab6['removeMarker'](_0x1053c5['getFirstMarker']()),_0x3d7313=!0x0);return _0x3d7313;}['noTrackChangesFixer'](_0x57b4d4){if(_0x57b4d4['batch']['isUndo']||!_0x57b4d4['batch']['isLocal'])return!0x1;const _0x3042b6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3042b6['trackChangesCommand']['value'])return!0x1;let _0x5b6637=!0x1;const _0x2b5daa=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5c3f0a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5582ad=>'attribute'==_0x5582ad['type'])['filter'](_0x38c018=>_0x2b5daa['includes'](_0x38c018['attributeKey']));if(0x0==_0x5c3f0a['length'])return _0x5b6637;for(const _0x2b647a of _0x5c3f0a){const _0xeeba6d=_0x3042b6['_findSuggestions'](_0x2b647a['range'],'attribute')['filter'](_0x1044e1=>!_0x1044e1['meta']['isNextTo'])['map'](_0x37717d=>_0x37717d['suggestion'])['filter'](_0x35d5ee=>{const _0x5971f9=_0x3042b6['_getAttributeKey'](_0x35d5ee);return _0x2b5daa['includes'](_0x5971f9);});if(_0xeeba6d['length']){for(const _0x4642a1 of _0xeeba6d)_0x57b4d4['removeMarker'](_0x4642a1['getFirstMarker']());_0x5b6637=!0x0;}}return _0x5b6637;}['assureChains'](){const _0x4947f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x170838=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x268d1d;const _0x23ce13=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5533af=>{if(_0x5533af['data']['oldRange']||!_0x5533af['data']['newRange'])return null;if(!_0x5533af['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xbf4451}=_0x4947f1['_splitMarkerName'](_0x5533af['name']);if(!_0x4947f1['hasSuggestion'](_0xbf4451))return null;const _0x22716e=_0x4947f1['getSuggestion'](_0xbf4451);return _0x170838['includes'](_0x22716e['data']['key']);})['map'](_0xff9efd=>{const {id:_0x14faf0}=_0x4947f1['_splitMarkerName'](_0xff9efd['name']),_0x5ca26c=_0x4947f1['getSuggestion'](_0x14faf0);return _0x268d1d=_0x5ca26c['attributes']['groupId'],_0x5ca26c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x23ce13['size'])return;const _0x44c00a=_0x4947f1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5933dd=>'attribute'==_0x5933dd['type']&&_0x5933dd['data']&&_0x170838['includes'](_0x5933dd['data']['key'])&&_0x5933dd['attributes']['groupId']!=_0x268d1d)['map'](_0x2fd1f2=>({'listItem':_0x2fd1f2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2fd1f2['attributes']['groupId']})),_0x171617=new Set();for(const {groupId:_0x336743,listItem:_0x4d82ab}of _0x44c00a)_0x23ce13['has'](_0x4d82ab)&&_0x171617['add'](_0x336743);for(const _0x26119c of _0x4947f1['getSuggestions']())_0x171617['has'](_0x26119c['attributes']['groupId'])&&_0x26119c['setAttribute']('groupId',_0x268d1d);}['_supportLegacySuggestions'](){const _0x3d4a7b=this['editor'],_0x2220a2=_0x3d4a7b['locale'],_0x3fda47=_0x3d4a7b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3fda47['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x236a8e,_0x211fc8){const _0x172f22=[];for(let _0x52d32b of _0x236a8e)_0x52d32b['start']['nodeAfter']===_0x52d32b['end']['parent']&&(_0x52d32b=_0x3d4a7b['model']['createRange'](_0x3d4a7b['model']['createPositionAt'](_0x52d32b['start']['nodeAfter'],0x0))),_0x172f22['push'](_0x52d32b);_0x3d4a7b['model']['change'](_0x2a5a5c=>{const _0x3a73b6=_0x3d4a7b['model']['document']['selection'],_0x14856a=Array['from'](_0x3a73b6['getRanges']())['map'](_0x410780=>_0x943391['fromRange'](_0x410780));_0x2a5a5c['setSelection'](_0x172f22),_0x3d4a7b['commands']['get'](_0x211fc8['commandName'])['refresh'](),_0x211fc8['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3d4a7b['execute'](_0x211fc8['commandName'],..._0x211fc8['commandParams']),_0x2a5a5c['setSelection'](_0x14856a);for(const _0x2e36c7 of _0x14856a)_0x2e36c7['detach']();});}),_0x3fda47['descriptionFactory']['registerElementLabel'](function(_0x5ee157){const _0x30c118=!_0x3d4a7b['model']['schema']['isObject'](_0x5ee157),_0x4720fd=_0x5ee157['previousSibling'],_0x9e0ceb=_0x5ee157['nextSibling'],_0x2c7f07=_0x5ee157['getAttribute']('listItemId'),_0x27cd03=!_0x4720fd||_0x4720fd['getAttribute']('listItemId')!==_0x2c7f07,_0x2f3f4c=!_0x9e0ceb||_0x9e0ceb['getAttribute']('listItemId')!==_0x2c7f07;return _0x30c118&&Boolean(_0x2c7f07)&&_0x27cd03&&_0x2f3f4c;},_0x4036df=>o(_0x2220a2,'ELEMENT_LIST_ITEM',_0x4036df));}['_registerLegacyDescription'](){const _0x124347=this['editor'],_0x683e5f=_0x124347['locale'];function _0x128b1f(_0x38fd83){const _0x4da777=_0x124347['commands']['get']('bulletedList')['value'],_0x159eb6=_0x124347['commands']['get']('numberedList')['value'];return'numberedList'===_0x38fd83?_0x4da777:_0x159eb6;}_0x124347['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3d2cfe){if('formatBlock'!=_0x3d2cfe['type'])return;const {data:_0x1fc547}=_0x3d2cfe;if(!_0x1fc547)return;let _0xc92714,_0x1e4ba8,_0x2a7799,_0x2f6907;switch(_0x1fc547['commandName']){case'bulletedList':_0x2a7799=_0x1fc547['commandParams'][0x0]['forceValue'],_0x2f6907=_0x128b1f(_0x1fc547['commandName']),_0xc92714=_0x2a7799?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2f6907&&_0x124347['config']['get']('list.multiBlock')||(_0xc92714='*Change\x20to:*\x20%0'),_0x1e4ba8={'type':'format','content':o(_0x683e5f,_0xc92714,o(_0x683e5f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2a7799=_0x1fc547['commandParams'][0x0]['forceValue'],_0x2f6907=_0x128b1f(_0x1fc547['commandName']),_0xc92714=_0x2a7799?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2f6907&&_0x124347['config']['get']('list.multiBlock')||(_0xc92714='*Change\x20to:*\x20%0'),_0x1e4ba8={'type':'format','content':o(_0x683e5f,_0xc92714,o(_0x683e5f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xc92714='*Indent:*\x20%0',_0x1e4ba8={'type':'format','content':o(_0x683e5f,_0xc92714,o(_0x683e5f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xc92714=function(_0x377daa){const _0x25ba5d=_0x377daa['getFirstRange']();let _0x1af62d=_0x25ba5d['start']['nodeAfter'];for(;_0x1af62d&&_0x25ba5d['containsItem'](_0x1af62d);){if(_0x1af62d['getAttribute']('listIndent')>0x0)return!0x1;_0x1af62d=_0x1af62d['nextSibling'];}return!0x0;}(_0x3d2cfe)?o(_0x683e5f,'*Format:*\x20remove\x20from\x20%0',o(_0x683e5f,function(_0x3ae233){return'ELEMENT_'+_0x3ae233['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3d2cfe))):o(_0x683e5f,'*Outdent:*\x20%0',o(_0x683e5f,'ELEMENT_LIST_ITEM')),_0x1e4ba8={'type':'format','content':_0xc92714};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1fc547['multipleBlocks']&&(_0xc92714='*Merge:*\x20%0',_0x1e4ba8={'type':'deletion','content':o(_0x683e5f,_0xc92714,o(_0x683e5f,'ELEMENT_LIST_ITEM'))});}return _0x1e4ba8;});}}function Te(_0x340d76){let _0x5788b4=_0x340d76['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5788b4;){const _0x41056a=_0x5788b4['getAttribute']('listItemId');if(!_0x41056a)return!0x1;if(_0x41056a==_0x340d76['data']['newValue'])return'newValue';if(_0x41056a==_0x340d76['data']['oldValue'])return'oldValue';_0x5788b4=_0x5788b4['previousSibling'];}return!0x1;}class q extends _0x52a075{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x14c664=this['editor']['config']['get']('list.properties'),_0x2e201c=this['editor']['plugins']['get']('TrackChangesEditing');_0x14c664['styles']&&(_0x2e201c['enableDefaultAttributesIntegration']('listStyle'),_0x2e201c['registerBlockAttribute']('listStyle')),_0x14c664['reversed']&&(_0x2e201c['enableDefaultAttributesIntegration']('listReversed'),_0x2e201c['registerBlockAttribute']('listReversed')),_0x14c664['startIndex']&&(_0x2e201c['enableDefaultAttributesIntegration']('listStart'),_0x2e201c['registerBlockAttribute']('listStart'));const _0x41be6b={'type':'format','content':''};_0x2e201c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x53d206=this['editor']['locale'];_0x2e201c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x53d206,'FORMAT_LIST_REVERSED')),_0x2e201c['descriptionFactory']['registerDescriptionCallback'](_0x574a77=>{const {data:_0x54ced5}=_0x574a77;if(_0x54ced5&&'listReversed'==_0x54ced5['key'])return null==_0x54ced5['newValue']||0x0==_0x54ced5['newValue']&&null==_0x54ced5['oldValue']?_0x41be6b:void 0x0;}),_0x2e201c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x53d206,'FORMAT_LIST_START')),_0x2e201c['descriptionFactory']['registerDescriptionCallback'](_0x18397c=>{const {data:_0x48b6f9}=_0x18397c;if(_0x48b6f9&&'listStart'==_0x48b6f9['key'])return null==_0x48b6f9['newValue']||0x1==_0x48b6f9['newValue']&&null==_0x48b6f9['oldValue']?_0x41be6b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xa59a38=>{if(_0xa59a38['batch']['isUndo'])return!0x1;let _0x4c7e17=!0x1;const _0x548abc=_0x2e201c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4891c4=>{const _0xd132b1=_0x2e201c['_getAttributeKey'](_0x4891c4);return'listStart'==_0xd132b1||'listReversed'==_0xd132b1;});for(const _0x318f31 of _0x548abc){const _0x1f686f=_0x318f31['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1f686f||'customNumbered'==_0x1f686f)continue;_0x2e201c['_findSuggestions'](_0x318f31['getFirstRange'](),'attribute')['find'](_0x46cde2=>'listType'==_0x2e201c['_getAttributeKey'](_0x46cde2['suggestion']))||(_0xa59a38['removeMarker'](_0x318f31['getFirstMarker']()),_0x4c7e17=!0x0);}return _0x4c7e17;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x280d59){const _0x192458=this['editor']['locale'],{data:_0x23dcf6}=_0x280d59,_0x704bde={'type':'format','content':''};if(!_0x23dcf6||'listStyle'!=_0x23dcf6['key'])return;if(!_0x23dcf6['oldValue'])return'default'==_0x23dcf6['newValue']?_0x704bde:{'type':'format','content':''+o(_0x192458,'*Set\x20format:*\x20%0',o(_0x192458,this['_getTranslationKeyForListStyle'](_0x23dcf6['newValue'])))};if(!_0x23dcf6['newValue']){if('default'==_0x23dcf6['oldValue'])return _0x704bde;let _0x36037a=_0x280d59['head'];for(;_0x36037a;){if(_0x36037a['data']&&'listType'==_0x36037a['data']['key']&&_0x36037a['data']['newValue'])return _0x704bde;_0x36037a=_0x36037a['next'];}return{'type':'format','content':''+o(_0x192458,'*Remove\x20format:*\x20%0',o(_0x192458,this['_getTranslationKeyForListStyle'](_0x23dcf6['oldValue'])))};}if('default'!=_0x23dcf6['newValue'])return{'type':'format','content':''+o(_0x192458,'*Set\x20format:*\x20%0',o(_0x192458,this['_getTranslationKeyForListStyle'](_0x23dcf6['newValue'])))};let _0x21fde5=_0x280d59['head'];for(;_0x21fde5;){if(_0x21fde5['data']&&'listType'==_0x21fde5['data']['key']&&_0x21fde5['data']['newValue']&&_0x21fde5['data']['oldValue'])return _0x704bde;_0x21fde5=_0x21fde5['next'];}return{'type':'format','content':o(_0x192458,'*Set\x20format:*\x20%0',o(_0x192458,'ELEMENT_'+_0x280d59['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1a4b15=this['editor'],_0x45f507=_0x1a4b15['locale'];_0x1a4b15['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x81590a=>{if('formatBlock'!=_0x81590a['type'])return;const {data:_0x26f29a}=_0x81590a;if(!_0x26f29a)return;let _0x1d9aa1,_0xec02cd;switch(_0x26f29a['commandName']){case'listStyle':_0x1d9aa1='*Change\x20to:*\x20%0',_0xec02cd={'type':'format','content':o(_0x45f507,_0x1d9aa1,o(_0x45f507,this['_getTranslationKeyForListStyle'](_0x26f29a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1d9aa1=_0x26f29a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xec02cd={'type':'format','content':o(_0x45f507,_0x1d9aa1)};break;case'listStart':_0x1d9aa1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xec02cd={'type':'format','content':o(_0x45f507,_0x1d9aa1,_0x26f29a['commandParams'][0x0]['startIndex'])};}return _0xec02cd;});}['_getTranslationKeyForListStyle'](_0x440cd4){return'ELEMENT_'+function(_0x4dd568){if(Se['includes'](_0x4dd568))return'bulleted';if(_e['includes'](_0x4dd568))return'numbered';return null;}(_0x440cd4)['toUpperCase']()+'_LIST_'+_0x440cd4['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x52a075{['afterInit'](){const _0x2a4887=this['editor'];_0x2a4887['commands']['get']('emoji')&&_0x2a4887['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x52a075{static get['requires'](){return[_0x1ecc43];}['init'](){const _0x36f0ba=this['editor'],_0x3197e0=_0x36f0ba['plugins']['get']('TrackChangesEditing'),_0x2bda2b=_0x36f0ba['commands']['get']('enter');_0x3197e0['enableCommand']('enter',()=>{_0x36f0ba['model']['change'](_0x197302=>{const _0x3778f9=_0x36f0ba['model']['document']['selection'],_0x49bca5=_0x3778f9['getFirstPosition'](),_0x43e7c6=_0x943391['fromRange'](_0x3778f9['getFirstRange']());if(_0x2bda2b['enterBlock'](_0x197302)){const _0x465e82=_0x36f0ba['model']['createPositionAt'](_0x49bca5['parent']['nextSibling'],0x0),_0x546ed0=_0x197302['createRange'](_0x49bca5,_0x465e82);_0x3197e0['markInsertion'](_0x546ed0);}else _0x197302['setSelection'](_0x197302['createRange'](_0x43e7c6['end']));_0x43e7c6['detach'](),_0x2bda2b['fire']('afterExecute',{'writer':_0x197302});});}),_0x36f0ba['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x36f0ba,'split'),{'priority':'high'}),_0x36f0ba['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x129c6f,_0x4d1930,_0x2097d0)=>{const _0x2e76c4=_0x2097d0['mapper']['markerNameToElements'](_0x4d1930['markerName']);if(_0x2e76c4){for(const _0x3e1c0d of _0x2e76c4)_0x3e1c0d['hasClass']('ck-suggestion-marker-split')&&(_0x2097d0['mapper']['unbindElementFromMarkerName'](_0x3e1c0d,_0x4d1930['markerName']),_0x2097d0['writer']['remove'](_0x3e1c0d));}},{'priority':'high'}),_0x36f0ba['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x29cf0b,_0x32f550,_0x4927bd)=>{_0x4927bd['options']['showSuggestionHighlights']&&De(_0x36f0ba,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x29cf0b,_0x32f550,_0x4927bd);},{'priority':'high'});}}class Q extends _0x52a075{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x19c029=this['editor']['plugins']['get']('TrackChangesEditing');_0x19c029['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x19c029['enableCommand']('findNext'),_0x19c029['enableCommand']('findPrevious'),_0x19c029['enableCommand']('replace'),_0x19c029['enableCommand']('replaceAll');}['handleFindCommand'](_0x118d1e,_0x3ec78a,_0x3fd557={}){const _0x2bf60a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x118d1e(_0x1862de=>{let _0x51b0ff=('string'==typeof _0x3ec78a?_0x2bf60a['findByTextCallback'](_0x3ec78a,_0x3fd557):_0x3ec78a)(_0x1862de);Array['isArray'](_0x51b0ff)&&(_0x51b0ff={'results':_0x51b0ff,'searchText':'string'==typeof _0x3ec78a?_0x3ec78a:''});const _0x31e1ce=_0x51b0ff['results']['filter'](_0x152d64=>!0x1===this['_isInDeletionRange'](_0x152d64,_0x1862de['item']));return{..._0x51b0ff,'results':_0x31e1ce};},_0x3fd557);}['_isInDeletionRange'](_0x37aaaf,_0x1b4e15){const _0x91c089=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b4e15,_0x37aaaf['start']),this['editor']['model']['createPositionAt'](_0x1b4e15,_0x37aaaf['end']));for(const _0x545a7e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x91c089['getIntersection'](_0x545a7e['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x52a075{['afterInit'](){const _0x406c51=this['editor']['locale'],_0x3622bd=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x36e84d,commandName:_0x325f90}of eo)this['editor']['plugins']['has'](_0x36e84d)&&(_0x3622bd['enableDefaultAttributesIntegration'](_0x325f90),_0x3622bd['registerInlineAttribute'](_0x325f90));_0x3622bd['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x406c51,'FORMAT_FONT_SIZE')),_0x3622bd['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x406c51,'FORMAT_FONT_FAMILY')),_0x3622bd['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x406c51,'FORMAT_FONT_COLOR')),_0x3622bd['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x406c51,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53e0a4=this['editor'],_0x182b77=_0x53e0a4['locale'];_0x53e0a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x447c83=>{const _0xb186cf=_0x182b77['t'];if('formatInline'!=_0x447c83['type'])return;const {data:_0x16d847}=_0x447c83;if(null!=_0x16d847){if('fontSize'==_0x16d847['commandName']){const _0x4b4d09=_0x16d847['commandParams'][0x0]['value'];if(_0x4b4d09){const _0x3eebac=_0xb186cf(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x468849=>_0x468849['model']==_0x4b4d09)['title'])['toLowerCase']();return{'type':'format','content':o(_0x182b77,'*Set\x20font\x20size:*\x20%0',_0x3eebac)};}return{'type':'format','content':o(_0x182b77,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x16d847['commandName']){const _0x250861=_0x16d847['commandParams'][0x0]['value'];return _0x250861?{'type':'format','content':o(_0x182b77,'*Set\x20font\x20family:*\x20%0',_0x250861)}:{'type':'format','content':o(_0x182b77,'*Reset\x20font\x20family*')};}if('fontColor'==_0x16d847['commandName']){const _0x54e8f2=_0x16d847['commandParams'][0x0]['value'];if(_0x54e8f2){const _0x25158f=_0x5eae58(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2fb133=>_0x2fb133['model']==_0x54e8f2);let _0x8329b1=_0x54e8f2,_0x9e0360='';return _0x25158f&&(_0x8329b1=_0x25158f['label'],_0x9e0360=_0xb186cf(_0x8329b1)['toLowerCase']()),{'type':'format','content':o(_0x182b77,'*Set\x20font\x20color:*\x20%0',_0x9e0360)['trim'](),'color':{'value':_0x54e8f2,'title':_0x9e0360||_0x8329b1}};}return{'type':'format','content':o(_0x182b77,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x16d847['commandName']){const _0x1fdb61=_0x16d847['commandParams'][0x0]['value'];if(_0x1fdb61){const _0x4a0410=_0x5eae58(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x471331=>_0x471331['model']==_0x1fdb61);let _0x52ca05=_0x1fdb61,_0x51ca42='';return _0x4a0410&&(_0x52ca05=_0x4a0410['label'],_0x51ca42=_0xb186cf(_0x52ca05)['toLowerCase']()),{'type':'format','content':o(_0x182b77,'*Set\x20font\x20background\x20color:*\x20%0',_0x51ca42)['trim'](),'color':{'value':_0x1fdb61,'title':_0x51ca42||_0x52ca05}};}return{'type':'format','content':o(_0x182b77,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x52a075{['afterInit'](){const _0x29feeb=this['editor'],_0x257b9d=_0x29feeb['plugins']['get']('TrackChangesEditing'),_0x169f6b=_0x29feeb['commands']['get']('copyFormat'),_0x2c15ec=_0x29feeb['commands']['get']('pasteFormat');_0x169f6b&&_0x2c15ec&&(_0x257b9d['enableDefaultAttributesIntegration']('pasteFormat'),_0x257b9d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5e64b6=this['editor'],_0x3c003d=_0x5e64b6['locale'];_0x5e64b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c9eda=>{if('formatBlock'!=_0x5c9eda['type']&&'formatInline'!=_0x5c9eda['type'])return;const {data:_0x3268d2}=_0x5c9eda;if(_0x3268d2&&'pasteFormat'===_0x3268d2['commandName']){const _0x436efd=[],_0x225e2f=_0x3268d2['commandParams'][0x0];for(const [_0x5e3d4b,_0x2fe0fc]of Object['entries'](_0x225e2f))_0x436efd['push'](ro(_0x5e64b6,_0x5e3d4b,_0x2fe0fc));return _0x436efd['length']?{'type':'format','content':o(_0x3c003d,'*Set\x20format\x20to:*\x20%0',_0x436efd['join'](',\x20'))}:{'type':'format','content':o(_0x3c003d,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1b4e6b,_0xb47cda,_0x496560){const _0x38e752=_0x1b4e6b['locale']['t'],_0x36231c=_0xb47cda['split'](/(?=[A-Z])/)['join']('\x20'),_0x5e80b4=_0x38e752(_0x36231c['charAt'](0x0)['toUpperCase']()+_0x36231c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x496560)return _0x5e80b4;if('fontColor'===_0xb47cda||'fontBackgroundColor'===_0xb47cda){const _0x29eeca=_0x5eae58(_0x1b4e6b['config']['get']('fontColor.colors'))['find'](_0xb4fe5=>_0xb4fe5['model']==_0x496560);return _0x5e80b4+'\x20('+(_0x29eeca?_0x38e752(_0x29eeca['label'])['toLowerCase']():_0x496560)+')';}if('fontSize'===_0xb47cda&&isNaN(parseFloat(_0x496560))){const _0xd6a41f=_0x1b4e6b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1b4e6b['config']['get']('fontSize.options'))['find'](_0x412931=>_0x412931['model']==_0x496560);return _0x5e80b4+'\x20('+(_0xd6a41f?_0x38e752(_0xd6a41f['title'])['toLowerCase']():_0x496560)+')';}return _0x5e80b4+'\x20('+_0x496560+')';}class Z extends _0x52a075{['_headingOptions'];['afterInit'](){const _0x28b719=this['editor'];if(!_0x28b719['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x28b719['config']['get']('heading.options');const _0x301f64=_0x28b719['locale'],_0x10db68=_0x28b719['plugins']['get']('TrackChangesEditing');_0x10db68['enableDefaultAttributesIntegration']('heading');for(const _0xe072a4 of this['_headingOptions'])'paragraph'!=_0xe072a4['model']&&_0x10db68['descriptionFactory']['registerElementLabel'](_0xe072a4['model'],_0x190ba0=>{const _0x5a2b30=this['_getHeadingLevel'](_0xe072a4['model']);return null!==_0x5a2b30?_0x1f7bf5(_0x190ba0,_0x5a2b30):_0x494527(_0x190ba0,_0xe072a4['title']);});function _0x1f7bf5(_0x203f69,_0x4b717f){return o(_0x301f64,'ELEMENT_HEADING',[_0x203f69,_0x4b717f]);}function _0x494527(_0x26af60,_0x1cb2e9){return o(_0x301f64,'ELEMENT_HEADING_CUSTOM',[_0x26af60,_0x1cb2e9]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30522d=this['editor'],_0x46f917=_0x30522d['locale'];function _0x4b6bd2(_0x10594d,_0x549b7b){return o(_0x46f917,'ELEMENT_HEADING_CUSTOM',[_0x10594d,_0x549b7b]);}_0x30522d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a83f5=>{if('formatBlock'!=_0x3a83f5['type'])return;const {data:_0x4f4a03}=_0x3a83f5;if(_0x4f4a03&&'heading'==_0x4f4a03['commandName']){const _0x3be9e1=_0x4f4a03['commandParams'][0x0]['value'],_0x23e78a=this['_getHeadingLevel'](_0x3be9e1);if(null!==_0x23e78a)return{'type':'format','content':o(_0x46f917,'*Change\x20to:*\x20%0',(_0x2f6d42=0x1,_0x3b82a9=_0x23e78a,o(_0x46f917,'ELEMENT_HEADING',[_0x2f6d42,_0x3b82a9])))};const _0x2a8999=this['_headingOptions']['find'](_0x7b0542=>_0x7b0542['model']===_0x3be9e1)['title'];return{'type':'format','content':o(_0x46f917,'*Change\x20to:*\x20%0',_0x4b6bd2(0x1,_0x2a8999))};}var _0x2f6d42,_0x3b82a9;});}['_getHeadingLevel'](_0x47be98){const _0x26a57c=_0x47be98['match'](/^heading(\d+)/);if(_0x26a57c)return _0x26a57c[0x1];const _0x516411=this['_headingOptions']?.['find'](_0x52528a=>_0x52528a['model']==_0x47be98);if(_0x516411&&_0x516411['view']){const _0x225093=_0x516411['view'],_0x2ebb60=(_0x225093['name']??_0x225093)['match'](/^h(\d+)/);if(_0x2ebb60)return _0x2ebb60[0x1];}return null;}}class tt extends _0x52a075{['afterInit'](){const _0x243c26=this['editor'];if(!_0x243c26['plugins']['has']('HighlightEditing'))return;const _0x458174=_0x243c26['plugins']['get']('TrackChangesEditing'),_0x1e362d=_0x243c26['locale'];_0x458174['enableDefaultAttributesIntegration']('highlight'),_0x458174['registerInlineAttribute']('highlight'),_0x458174['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1e362d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d9c00=this['editor'],_0x20d85b=_0x3d9c00['locale'];_0x3d9c00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e15db=>{if('formatInline'!=_0x3e15db['type'])return;const {data:_0x220df5}=_0x3e15db;if(_0x220df5&&'highlight'==_0x220df5['commandName']){const _0xd82a2f=_0x20d85b['t'],_0x4ac5c2=_0x220df5['commandParams'][0x0]['value'];if(_0x4ac5c2){const _0x4e29ae=_0x3d9c00['config']['get']('highlight.options')['find'](_0x2037f0=>_0x2037f0['model']==_0x4ac5c2),_0x23c79a=_0xd82a2f(_0x4e29ae['title'])['toLowerCase']();return{'type':'format','content':o(_0x20d85b,'*Set\x20highlight:*\x20%0',_0x23c79a),'color':{'value':_0x4e29ae['color'],'title':_0x4e29ae['title']}};}return{'type':'format','content':o(_0x20d85b,'*Remove\x20highlight*',o(_0x20d85b,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x52a075{['afterInit'](){const _0x5813c1=this['editor'];if(!_0x5813c1['plugins']['has']('HorizontalLineEditing'))return;_0x5813c1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xa83fba=_0x5813c1['plugins']['get']('TrackChangesEditing'),_0x39f8b4=_0x5813c1['locale'];_0xa83fba['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5a9d86=>o(_0x39f8b4,'ELEMENT_HORIZONTAL_LINE',_0x5a9d86)),_0x5813c1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4fa261,{writer:_0x18286b,options:_0xbb3108})=>{if(!_0xbb3108['showSuggestionHighlights'])return null;const _0x113209=_0x18286b['createContainerElement']('div'),_0x331b6b=_0x18286b['createEmptyElement']('hr');return _0x18286b['addClass']('ck-horizontal-line',_0x113209),_0x18286b['insert'](_0x18286b['createPositionAt'](_0x113209,0x0),_0x331b6b),_0x113209;},'converterPriority':'high'});}}class nt extends _0x52a075{['afterInit'](){const _0x46ce9e=this['editor'];if(!_0x46ce9e['plugins']['has']('HtmlEmbed'))return;const _0x1bfce4=_0x46ce9e['plugins']['get']('TrackChangesEditing'),_0x4819d4=_0x46ce9e['locale'];_0x1bfce4['descriptionFactory']['registerElementLabel']('rawHtml',_0x136e54=>o(_0x4819d4,'ELEMENT_HTML_EMBED',_0x136e54)),_0x1bfce4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1bfce4['registerBlockAttribute']('value'),_0x1bfce4['descriptionFactory']['registerDescriptionCallback'](_0x728759=>{if('attribute'!=_0x728759['type'])return;const {data:_0x75b0d4}=_0x728759;if(_0x75b0d4&&'value'==_0x75b0d4['key']&&_0x728759['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2e1621=o(_0x4819d4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4819d4,'*Change\x20%0\x20content*',_0x2e1621)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x453722=this['editor'],_0x257fd0=_0x453722['locale'];_0x453722['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c0a55=>{if('formatBlock'!=_0x5c0a55['type'])return;const {data:_0xb1cc65}=_0x5c0a55;if(_0xb1cc65&&'htmlEmbed'==_0xb1cc65['commandName']){const _0x3fabfa=o(_0x257fd0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x257fd0,'*Change\x20%0\x20content*',_0x3fabfa)};}});}}class et extends _0x52a075{['afterInit'](){const _0x20d6c8=this['editor'];if(!_0x20d6c8['plugins']['has']('ImageEditing'))return;const _0x51d626=_0x20d6c8['plugins']['get']('TrackChangesEditing'),_0xc7f900=_0x20d6c8['plugins']['get']('ImageUtils'),_0x7cf0ec=_0x20d6c8['locale'];_0x51d626['enableCommand']('insertImage'),_0x51d626['descriptionFactory']['registerElementLabel']('imageBlock',_0xe9cb6d=>o(_0x7cf0ec,'ELEMENT_IMAGE',_0xe9cb6d)),_0x51d626['descriptionFactory']['registerElementLabel']('imageInline',_0x21909a=>o(_0x7cf0ec,'ELEMENT_INLINE_IMAGE',_0x21909a)),_0x51d626['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x7cf0ec,'ELEMENT_CAPTION')),_0x20d6c8['plugins']['has']('ImageUploadEditing')&&_0x51d626['enableCommand']('uploadImage'),_0x20d6c8['plugins']['has']('ImageBlockEditing')&&_0x20d6c8['plugins']['has']('ImageInlineEditing')&&(_0x51d626['enableCommand']('imageTypeInline',(_0x54efeb,_0x46e18d)=>{const _0x4646a7=_0xc7f900['getClosestSelectedImageElement'](_0x20d6c8['model']['document']['selection']);_0x20d6c8['model']['change'](()=>{_0x51d626['markBlockFormat'](_0x4646a7,{'commandName':'imageTypeInline','commandParams':[_0x46e18d]},[],'convertBlockImageToInline');});}),_0x51d626['enableCommand']('imageTypeBlock',(_0x5d725e,_0x39a0c1)=>{_0x20d6c8['model']['change'](_0x5a5322=>{let _0x155c07=_0xc7f900['getClosestSelectedImageElement'](_0x20d6c8['model']['document']['selection']),_0x538c77=_0x5a5322['createRangeOn'](_0x155c07);const _0x37e71c=_0x32d683['fromPosition'](_0x538c77['start'],'toPrevious'),_0x263d3d=_0x32d683['fromPosition'](_0x538c77['end'],'toNext');_0x51d626['forceDefaultExecution'](()=>_0x5d725e(_0x39a0c1)),_0x155c07=_0xc7f900['getClosestSelectedImageElement'](_0x20d6c8['model']['document']['selection']),_0x538c77=_0x5a5322['createRangeOn'](_0x155c07);const _0x175511=_0x5a5322['createRange'](_0x37e71c,_0x263d3d);_0x37e71c['detach'](),_0x263d3d['detach'](),_0x51d626['markBlockFormat'](_0x155c07,{'commandName':'imageTypeInline','commandParams':[_0x39a0c1]},[],'convertInlineImageToBlock'),_0x175511['start']['isBefore'](_0x538c77['start'])&&_0x51d626['markInsertion'](_0x5a5322['createRange'](_0x175511['start'],_0x538c77['start']),'convertInlineImageToBlock'),_0x538c77['end']['isBefore'](_0x175511['end'])&&_0x51d626['markInsertion'](_0x5a5322['createRange'](_0x538c77['end'],_0x175511['end']),'convertInlineImageToBlock');});}),_0x51d626['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x51d626['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x51d626['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x51d626['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x51d626['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x51d626['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5e809a])=>{const _0x37fc63=_0x51d626['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x24ae65=_0x5e809a['start'],_0x43c7cb=_0x5e809a['end'];const _0x1d02a2=_0x20d6c8['model']['schema']['getNearestSelectionRange'](_0x24ae65,'backward'),_0x3c4e4c=_0x20d6c8['model']['schema']['getNearestSelectionRange'](_0x43c7cb,'forward');_0x1d02a2['isCollapsed']&&(_0x24ae65=_0x1d02a2['start']),_0x3c4e4c['isCollapsed']&&(_0x43c7cb=_0x3c4e4c['end']),_0x37fc63([_0x20d6c8['model']['createRange'](_0x24ae65,_0x43c7cb)]);}),_0x51d626['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5f1e31),_0x51d626['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5f1e31)),_0x20d6c8['plugins']['has']('ImageCaptionEditing')&&(_0x51d626['enableCommand']('toggleImageCaption',(_0x438271,_0x323112)=>{const _0x22cdfa=_0x20d6c8['plugins']['get']('ImageCaptionUtils');let _0x4b9911=_0xc7f900['getClosestSelectedImageElement'](_0x20d6c8['model']['document']['selection']),_0xac739b=_0x22cdfa['getCaptionFromImageModelElement'](_0x4b9911);_0x20d6c8['model']['change'](()=>{if(_0xac739b)return void _0x51d626['markDeletion'](_0x20d6c8['model']['createRangeOn'](_0xac739b));const _0x5160f1=_0xc7f900['isBlockImage'](_0x4b9911);_0x438271(_0x323112),_0x4b9911=_0xc7f900['getClosestSelectedImageElement'](_0x20d6c8['model']['document']['selection']),_0xac739b=_0x22cdfa['getCaptionFromImageModelElement'](_0x4b9911),_0x51d626['markInsertion'](_0x20d6c8['model']['createRangeOn'](_0xac739b),_0x5160f1?null:'imageCaption');});}),_0x51d626['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5f1e31));const _0x10b964=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x13197f(_0x3626d1,_0x19aa91){const _0x78be77=_0x10b964['findIndex'](({type:_0x470124,subType:_0x511ed3})=>_0x3626d1['type']==_0x470124&&_0x3626d1['subType']==_0x511ed3),_0x5c82b9=_0x10b964['findIndex'](({type:_0x47b5a9,subType:_0x3baf5e})=>_0x19aa91['type']==_0x47b5a9&&_0x19aa91['subType']==_0x3baf5e);if(_0x78be77<0x0||_0x5c82b9<0x0)return!0x1;const _0x26f2a6=_0x3626d1['getFirstRange'](),_0x119211=_0x19aa91['getFirstRange']();if((0x0==_0x78be77||0x1==_0x78be77)&&0x2==_0x5c82b9&&_0x26f2a6['isIntersecting'](_0x119211))return!0x0;if(0x2==_0x78be77&&0x3==_0x5c82b9){const _0xb98b9d=_0x51d626['_findSuggestions'](_0x26f2a6,'insertion')['filter'](({suggestion:_0x3535ef,meta:_0x5533e5})=>_0x5533e5['isOwn']&&'convertInlineImageToBlock'==_0x3535ef['subType']);if(_0xb98b9d['length']>0x1&&_0x119211['end']['isEqual'](_0x26f2a6['start']))return!0x0;if(0x1==_0xb98b9d['length']&&(_0x26f2a6['start']['isEqual'](_0x119211['end'])||_0x26f2a6['end']['isEqual'](_0x119211['start'])))return!0x0;}if(0x3==_0x78be77&&0x3==_0x5c82b9&&_0x26f2a6['start']['isBefore'](_0x119211['start'])){const _0x36f2b0=_0x26f2a6['end']['nodeAfter'],_0x57d947=_0x119211['start']['nodeBefore'];return _0xc7f900['isBlockImage'](_0x36f2b0)&&_0x36f2b0===_0x57d947;}return!0x1;}function _0x5f1e31(_0x821664,_0x4b3f5c){return _0x13197f(_0x821664,_0x4b3f5c)?[_0x821664,_0x4b3f5c]:_0x13197f(_0x4b3f5c,_0x821664)?[_0x4b3f5c,_0x821664]:null;}_0x20d6c8['plugins']['has']('ImageResize')&&(_0x51d626['enableDefaultAttributesIntegration']('resizeImage'),_0x51d626['registerBlockAttribute']('resizedWidth'),_0x51d626['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x7cf0ec,'FORMAT_IMAGE_SIZE'))),_0x20d6c8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x51d626['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x51d626['registerBlockAttribute']('alt')),_0x20d6c8['plugins']['has']('PictureEditing')&&(_0x51d626['registerBlockAttribute']('sources'),_0x51d626['descriptionFactory']['registerDescriptionCallback'](_0x17698d=>{if('attribute'!=_0x17698d['type'])return;const {data:_0x470605}=_0x17698d;return _0x470605&&'sources'==_0x470605['key']?{'type':'format','content':''}:void 0x0;})),_0x20d6c8['plugins']['has']('ImageSizeAttributes')&&(_0x51d626['registerBlockAttribute']('width'),_0x51d626['registerBlockAttribute']('height'),_0x51d626['descriptionFactory']['registerDescriptionCallback'](_0x3c394a=>{if('attribute'!=_0x3c394a['type'])return;const {data:_0x374010}=_0x3c394a;return!_0x374010||'width'!=_0x374010['key']&&'height'!=_0x374010['key']?void 0x0:{'type':'format','content':''};})),_0x51d626['descriptionFactory']['registerDescriptionCallback'](_0x34fbb8=>{if(!!_0x10b964['find'](({type:_0x252869,subType:_0x492e1e})=>_0x34fbb8['type']==_0x252869&&_0x34fbb8['subType']==_0x492e1e))return _0x34fbb8['previous']?{}:void 0x0;}),_0x51d626['descriptionFactory']['registerDescriptionCallback'](_0x110566=>{if('insertion'==_0x110566['type']||'deletion'==_0x110566['type']){const _0x35f21b=_0x110566['getContainedElement']();if(_0x35f21b&&_0x35f21b['is']('element','caption'))return{'type':'insertion'==_0x110566['type']?'addObject':'removeObject','element':_0x35f21b,'quantity':0x1};}}),_0x51d626['descriptionFactory']['registerDescriptionCallback'](_0x107b05=>'formatBlock'==_0x107b05['type']&&'convertInlineImageToBlock'==_0x107b05['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x107b05['type']&&'convertBlockImageToInline'==_0x107b05['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x51d626['descriptionFactory']['registerDescriptionCallback'](_0x35403e=>{if('attribute'!=_0x35403e['type'])return;const {data:_0x2198c4}=_0x35403e;if(!_0x2198c4||'alt'!=_0x2198c4['key'])return;const _0xe34776=_0x2198c4['newValue'];return _0xe34776?{'type':'format','content':o(_0x7cf0ec,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xe34776+'\x22')}:{'type':'format','content':o(_0x7cf0ec,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c8d45=this['editor'],_0xc4d60d=_0x1c8d45['locale'];_0x1c8d45['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f9dec=>{if('formatBlock'!=_0x1f9dec['type']&&'formatInline'!=_0x1f9dec['type'])return;const {data:_0xa7946}=_0x1f9dec;if(_0xa7946){if('imageTextAlternative'==_0xa7946['commandName']){const _0x48001a=_0xa7946['commandParams'][0x0]['newValue'];return _0x48001a?{'type':'format','content':o(_0xc4d60d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x48001a+'\x22')}:{'type':'format','content':o(_0xc4d60d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xa7946['commandName']){const _0x506d89=_0xa7946['commandParams'][0x0]['width'];return _0x506d89?{'type':'format','content':o(_0xc4d60d,'*Set\x20image\x20width:*\x20%0',_0x506d89)}:{'type':'format','content':o(_0xc4d60d,'*Reset\x20image\x20width*')};}}});}}class st extends _0x52a075{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x6b680b=this['editor']['locale'],_0x122180=this['editor']['plugins']['get']('TrackChangesEditing');_0x122180['enableDefaultAttributesIntegration']('replaceImageSource'),_0x122180['registerBlockAttribute']('src'),_0x122180['descriptionFactory']['registerDescriptionCallback'](_0x2fd279=>{if('attribute'!=_0x2fd279['type'])return;const {data:_0x33869f}=_0x2fd279;return _0x33869f&&'src'==_0x33869f['key']?_0x33869f['newValue']&&_0x33869f['oldValue']?{'type':'format','content':o(_0x6b680b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x193866=this['editor']['plugins']['get']('TrackChangesEditing');_0x193866['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x193866['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x193866['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x193866['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f13e8=this['editor'],_0x5d1584=_0x1f13e8['locale'];_0x1f13e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b0bd4=>{if('formatBlock'!=_0x4b0bd4['type']&&'formatInline'!=_0x4b0bd4['type'])return;const {data:_0x4cada0}=_0x4b0bd4;if(!_0x4cada0||'replaceImageSource'!=_0x4cada0['commandName'])return;return{'type':'format','content':o(_0x5d1584,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x52a075{['afterInit'](){const _0x1e9ee8=this['editor'];if(!_0x1e9ee8['plugins']['has']('ImageStyleEditing'))return;const _0xef17f5=_0x1e9ee8['plugins']['get']('TrackChangesEditing'),_0x4a759f=_0x1e9ee8['plugins']['get']('ImageUtils'),_0x3c0f8b={};_0xef17f5['enableCommand']('imageStyle',(_0xbc65b1,_0x2790e5)=>{const _0x3a1623=_0x1e9ee8['plugins']['get']('Users')['me'],_0x1a605e=_0x1e9ee8['commands']['get']('imageStyle');let _0x2bdf09=_0x4a759f['getClosestSelectedImageElement'](_0x1e9ee8['model']['document']['selection']),_0x38f7e9=_0x1e9ee8['model']['createRangeOn'](_0x2bdf09),_0x424b4f=_0x1a605e['value'];if(_0x424b4f==_0x2790e5['value'])return;const _0x411559={'commandName':'imageStyle','commandParams':[_0x2790e5],'formatGroupId':_0x2c2b9e()};_0x1e9ee8['model']['change'](()=>{if(_0xef17f5['getSuggestions']()['filter'](_0xeb3e11=>_0xeb3e11['isInContent']&&_0x3a1623==_0xeb3e11['author']&&('formatBlock'==_0xeb3e11['type']||'formatInline'==_0xeb3e11['type'])&&('imageStylePreApply'==_0xeb3e11['subType']||'imageStylePostApply'==_0xeb3e11['subType'])&&_0xeb3e11['getFirstRange']()['isEqual'](_0x38f7e9))['forEach'](_0x4b4420=>_0xef17f5['discardSuggestion'](_0x4b4420['head'])),_0x2bdf09=_0x4a759f['getClosestSelectedImageElement'](_0x1e9ee8['model']['document']['selection']),_0x38f7e9=_0x1e9ee8['model']['createRangeOn'](_0x2bdf09),_0x1a605e['refresh'](),_0x1e9ee8['commands']['get']('imageTypeInline')['refresh'](),_0x1e9ee8['commands']['get']('imageTypeBlock')['refresh'](),_0x424b4f=_0x1a605e['value'],_0x424b4f!=_0x2790e5['value'])return _0x4a759f['isInlineImage'](_0x2bdf09)&&_0x1a605e['shouldConvertImageType'](_0x2790e5['value'],_0x2bdf09)?(_0xbc65b1({..._0x2790e5,'setImageSizes':!0x1}),_0x2bdf09=_0x4a759f['getClosestSelectedImageElement'](_0x1e9ee8['model']['document']['selection']),void _0xef17f5['markBlockFormat'](_0x2bdf09,{..._0x411559,'commandReversedParams':[{'value':_0x424b4f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4a759f['isBlockImage'](_0x2bdf09)?_0xef17f5['markBlockFormat'](_0x2bdf09,_0x411559,[],'imageStylePostApply'):_0xef17f5['markInlineFormat'](_0x38f7e9,_0x411559,'imageStylePostApply'));});});for(const _0x16b29d of _0x1e9ee8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3c0f8b[_0x16b29d['name']]=_0x16b29d['title']['toLowerCase']();_0xef17f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xef17f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xef17f5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xef17f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5cb973])=>{_0x4a759f['setImageNaturalSizeAttributes'](_0x5cb973['getContainedElement']());}),_0xef17f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2c3e5d,_0x3caa2e)=>{_0xef17f5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2c3e5d,{'commandName':_0x3caa2e['commandName'],'commandParams':_0x3caa2e['commandReversedParams']});}),_0xef17f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x52b695,_0x2257f2){if(_0x3f9154(_0x52b695,_0x2257f2))return[_0x52b695,_0x2257f2];if(_0x3f9154(_0x2257f2,_0x52b695))return[_0x2257f2,_0x52b695];return null;});const _0x44bdc4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3f9154(_0x2d98d5,_0x46632e){const _0x559946=_0x44bdc4['findIndex'](({type:_0x1a881c,subType:_0x23cd78})=>_0x2d98d5['type']==_0x1a881c&&_0x2d98d5['subType']==_0x23cd78),_0x5a83d7=_0x44bdc4['findIndex'](({type:_0x2a14c9,subType:_0x373407})=>_0x46632e['type']==_0x2a14c9&&_0x46632e['subType']==_0x373407);if(_0x559946<0x0||_0x5a83d7<0x0)return!0x1;const _0x1b905f=_0x2d98d5['getFirstRange'](),_0x59846d=_0x46632e['getFirstRange']();if((0x0==_0x559946||0x1==_0x559946)&&0x2==_0x5a83d7&&_0x1b905f['isIntersecting'](_0x59846d))return!0x0;if(0x2==_0x559946&&0x3==_0x5a83d7){const _0xe6edeb=_0xef17f5['_findSuggestions'](_0x1b905f,'insertion')['filter'](({suggestion:_0x15d044,meta:_0x2afde5})=>_0x2afde5['isOwn']&&'convertInlineImageToBlock'==_0x15d044['subType']);if(_0xe6edeb['length']>0x1&&_0x59846d['end']['isEqual'](_0x1b905f['start']))return!0x0;if(0x1==_0xe6edeb['length']&&(_0x1b905f['start']['isEqual'](_0x59846d['end'])||_0x1b905f['end']['isEqual'](_0x59846d['start'])))return!0x0;}if(0x3==_0x559946&&0x3==_0x5a83d7&&_0x1b905f['start']['isBefore'](_0x59846d['start'])){const _0x5a9609=_0x1b905f['end']['nodeAfter'],_0x4d94e9=_0x59846d['start']['nodeBefore'];return _0x4a759f['isBlockImage'](_0x5a9609)&&_0x5a9609===_0x4d94e9;}return!0x1;}_0x1e9ee8['model']['document']['registerPostFixer'](()=>{let _0x113b6e=!0x1;const _0x572e33=Array['from'](_0x1e9ee8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x11c969,data:_0x4ececf}of _0x572e33){const {group:_0x37b33d,type:_0x4543ef,subType:_0x52dea4,id:_0x8a2cd8}=_0xef17f5['_splitMarkerName'](_0x11c969);if('suggestion'==_0x37b33d&&_0xef17f5['hasSuggestion'](_0x8a2cd8)){if('formatBlock'==_0x4543ef&&('imageStylePreApply'==_0x52dea4||'imageStylePostApply'==_0x52dea4)){const _0x1cf1b7=_0xef17f5['getSuggestion'](_0x8a2cd8);if(_0x4ececf['newRange']){const _0x15f74b=_0x1cf1b7['getFirstRange']()['getContainedElement']();if(_0x4a759f['isBlockImage'](_0x15f74b))continue;_0xef17f5['discardSuggestion'](_0x1cf1b7),_0x113b6e=!0x0;}}if('insertion'==_0x4543ef&&'imageCaption'==_0x52dea4&&!_0x4ececf['newRange']){const _0x3c7fcb=_0xef17f5['getSuggestion'](_0x8a2cd8);_0x3c7fcb['next']&&_0x3c7fcb['next']['isInContent']&&(_0xef17f5['discardSuggestion'](_0x3c7fcb['next']),_0x113b6e=!0x0);}}}return _0x113b6e;}),this['_registerLegacyDescription'](_0x3c0f8b);}['_registerLegacyDescription'](_0x45046b){const _0xa04594=this['editor'],_0xb68631=_0xa04594['locale'];_0xa04594['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ef01f=>{if('formatBlock'!=_0x1ef01f['type']&&'formatInline'!=_0x1ef01f['type'])return;const {data:_0x2a911e}=_0x1ef01f;if(!_0x2a911e||'imageStyle'!=_0x2a911e['commandName'])return;const _0x38f4ed=_0x2a911e['commandParams'][0x0]['value'];return _0xd75a69('side'===_0x38f4ed?o(_0xb68631,'FORMAT_SIDE_IMAGE'):_0x45046b[_0x38f4ed]||_0x38f4ed);function _0xd75a69(_0x4378ae){return{'type':'format','content':o(_0xb68631,'*Format:*\x20%0',_0x4378ae)};}});}}class rt extends _0x52a075{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x34b4ae){super(_0x34b4ae),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x424080=this['editor'],_0x27a1a2=_0x424080['commands']['get']('importWord'),_0xdfe59b=_0x424080['commands']['get']('trackChanges');_0x27a1a2&&(_0x27a1a2['on']('execute',(_0x58810b,[,_0x9e816c])=>{this['_trackChangesValueDuringImport']=_0xdfe59b['value'],_0x9e816c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x27a1a2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x27a1a2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xdfe59b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x424080['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2fe1b5,_0xf5ad9d){const {suggestions:_0x5d349f}=_0xf5ad9d,_0x40d3d5=this['editor']['commands']['get']('trackChanges'),_0x6388df=_0x40d3d5['value'];this['_trackChangesValueDuringImport']!==_0x6388df&&(_0x40d3d5['execute'](),this['_trackChangesExecuted']=!0x0),_0x5d349f&&_0x5d349f['forEach'](({id:_0x534921,type:_0x39462c,author:_0x2e68d7,created_at:_0x5a7680})=>{const _0x38d72a={'id':_0x534921,'type':_0x39462c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2e68d7,'createdAt':_0x5a7680?new Date(_0x5a7680):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x38d72a);});}}class at extends _0x52a075{['afterInit'](){const _0x5681e1=this['editor'],_0x9d1813=_0x5681e1['plugins']['get']('TrackChangesEditing');if(_0x5681e1['plugins']['has']('IndentEditing')&&(_0x9d1813['enableCommand']('indent'),_0x9d1813['enableCommand']('outdent')),_0x5681e1['plugins']['has']('IndentBlock')){for(const _0x2693b4 of['indentBlock','outdentBlock'])_0x9d1813['enableDefaultAttributesIntegration'](_0x2693b4);}const _0x41cc5d=_0x5681e1['locale'];_0x9d1813['registerBlockAttribute']('blockIndent'),_0x9d1813['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x41cc5d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x120eb0=this['editor'],_0x3ed44f=_0x120eb0['locale'],_0xfaaddf=_0x120eb0['plugins']['get']('TrackChangesEditing');_0xfaaddf['descriptionFactory']['registerDescriptionCallback'](_0x290b3b=>{if('formatBlock'!=_0x290b3b['type'])return;const {data:_0xc74fcb}=_0x290b3b;if(!_0xc74fcb)return;if('indentBlock'!=_0xc74fcb['commandName']&&'outdentBlock'!=_0xc74fcb['commandName'])return;const _0xce93bb=_0x290b3b['getItems']()[0x0],_0x563001=_0xfaaddf['descriptionFactory']['getItemLabel'](_0xce93bb);return'indentBlock'==_0xc74fcb['commandName']?{'type':'format','content':o(_0x3ed44f,'*Indent:*\x20%0',_0x563001)}:'outdentBlock'==_0xc74fcb['commandName']?{'type':'format','content':o(_0x3ed44f,'*Outdent:*\x20%0',_0x563001)}:void 0x0;});}}class ct extends _0x52a075{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x52a075{['afterInit'](){const _0x17de47=this['editor'];if(!_0x17de47['plugins']['has']('LinkEditing'))return;const _0x161d02=_0x17de47['plugins']['get']('TrackChangesEditing'),_0x486570=_0x17de47['commands']['get']('link');_0x161d02['enableDefaultAttributesIntegration']('link'),_0x161d02['enableDefaultAttributesIntegration']('unlink'),_0x161d02['registerInlineAttribute']('linkHref');for(const _0x5628f2 of _0x486570['manualDecorators'])_0x161d02['registerInlineAttribute'](_0x5628f2['id']),_0x161d02['descriptionFactory']['registerAttributeLabel'](_0x5628f2['id'],'link\x20('+_0x5628f2['label']['toLowerCase']()+')');_0x161d02['descriptionFactory']['registerDescriptionCallback'](_0x187703=>{if('attribute'!=_0x187703['type'])return;const {data:_0x2e44dd}=_0x187703;if(!_0x2e44dd||'linkHref'!=_0x2e44dd['key'])return;const _0x8db6d8=_0x2e44dd['newValue'],_0x3f62f6=_0x17de47['locale'];return{'type':'format','content':null==_0x8db6d8?o(_0x3f62f6,'*Remove\x20link*'):o(_0x3f62f6,'*Set\x20link:*\x20%0','\x22'+_0x8db6d8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29d904=this['editor'],_0x8cf5dd=_0x29d904['locale'];_0x29d904['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb6c06e=>{if('formatInline'!=_0xb6c06e['type'])return;const {data:_0xf55a29}=_0xb6c06e;if(_0xf55a29){if('link'==_0xf55a29['commandName']){const _0x13444e=_0xf55a29['commandParams'][0x0];return{'type':'format','content':o(_0x8cf5dd,'*Set\x20link:*\x20%0','\x22'+_0x13444e+'\x22')};}return'unlink'==_0xf55a29['commandName']?{'type':'format','content':o(_0x8cf5dd,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x52a075{['afterInit'](){const _0x495baf=this['editor'],_0x5782da=_0x495baf['locale'];if(!_0x495baf['plugins']['has']('LegacyListEditing'))return;const _0x4d5d6f=_0x495baf['plugins']['get']('TrackChangesEditing'),_0x2eb88=_0x495baf['plugins']['has']('LegacyTodoListEditing');function _0x4a3503(_0x55c314){return()=>{const _0x4c1209=_0x495baf['model']['document']['selection'],_0x2a6a57=_0x495baf['commands']['get'](_0x55c314);if(_0x2a6a57['value'])return void _0x495baf['execute']('paragraph',{});const _0x4ad0e3=_0x55c314['slice'](0x0,-0x4),_0x2e3761=function(_0x5659a2,_0x212df4,_0x13d7ec){let _0x38fc3c=Array['from'](_0x5659a2)['filter'](_0x2c2f18=>function(_0x1fb889,_0x5ab53c){return _0x5ab53c['checkChild'](_0x1fb889['parent'],'listItem')&&!_0x5ab53c['isObject'](_0x1fb889);}(_0x2c2f18,_0x13d7ec));_0x38fc3c=_0x38fc3c['filter'](_0x3ace6c=>!_0x3ace6c['is']('element','listItem')||_0x3ace6c['getAttribute']('listType')!=_0x212df4);const _0x217115=new Set();for(const _0x2de174 of _0x38fc3c)_0x2de174['is']('element','listItem')?_0x217115['add'](Le(_0x2de174)):_0x217115['add'](_0x2de174);return Array['from'](_0x217115);}(_0x4c1209['getSelectedBlocks'](),_0x4ad0e3,_0x495baf['model']['schema']);_0x495baf['model']['change'](()=>{for(const _0x8bb278 of _0x2e3761)_0x4d5d6f['markBlockFormat'](_0x8bb278,{'commandName':_0x55c314,'commandParams':[{'forceValue':!_0x2a6a57['value']}],'formatGroupId':'blockName'},Ee(_0x8bb278));});};}function _0x4f2570(_0x16e87a){return()=>{const _0xbca019=function(_0x3107a7){let _0x303dd6=Array['from'](_0x3107a7);const _0x219500=_0x303dd6['findIndex'](_0x5c288d=>'listItem'!=_0x5c288d['name']);return _0x219500>-0x1&&(_0x303dd6=_0x303dd6['slice'](0x0,_0x219500)),_0x303dd6;}(_0x495baf['model']['document']['selection']['getSelectedBlocks']()),_0x94ab8f=_0x495baf['model']['createRange'](_0x495baf['model']['createPositionAt'](_0xbca019[0x0],'before'),_0x495baf['model']['createPositionAt'](_0xbca019[_0xbca019['length']-0x1],'end'));_0x495baf['model']['change'](()=>{_0x4d5d6f['markBlockFormat'](_0x94ab8f,{'commandName':_0x16e87a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x539c15){const _0x371d35=new Set();for(const _0x4fac60 of _0x539c15){let _0x19a43b=_0x4fac60['nextSibling'];for(;_0x19a43b&&_0x19a43b['getAttribute']('listIndent')>_0x4fac60['getAttribute']('listIndent');)_0x371d35['add'](_0x19a43b),_0x19a43b=_0x19a43b['nextSibling'];}return Array['from'](_0x371d35);}(_0xbca019));});};}_0x4d5d6f['enableCommand']('numberedList',_0x4a3503('numberedList')),_0x4d5d6f['enableCommand']('bulletedList',_0x4a3503('bulletedList')),_0x2eb88&&_0x4d5d6f['enableCommand']('todoList',_0x4a3503('todoList')),_0x4d5d6f['enableCommand']('indentList',_0x4f2570('indentList')),_0x4d5d6f['enableCommand']('outdentList',_0x4f2570('outdentList')),_0x2eb88&&_0x4d5d6f['enableCommand']('checkTodoList',()=>{const _0x454058=_0x495baf['commands']['get']('checkTodoList'),_0x4e8c34=Array['from'](_0x454058['_selectedElements']);_0x4e8c34['filter'](_0x2f94e8=>_0x2f94e8['getAttribute']('todoListChecked')!=_0x454058['value']),_0x495baf['model']['change'](()=>{for(const _0x470c25 of _0x4e8c34)_0x4d5d6f['markBlockFormat'](_0x470c25,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x454058['value']}]});});}),_0x4d5d6f['descriptionFactory']['registerElementLabel']('listItem',_0x2c25de=>o(_0x5782da,'ELEMENT_LIST_ITEM',_0x2c25de)),_0x4d5d6f['descriptionFactory']['registerDescriptionCallback'](_0x3654f8=>{if('formatBlock'!=_0x3654f8['type']&&'formatInline'!=_0x3654f8['type'])return;const {data:_0x34f623}=_0x3654f8;if(_0x34f623){if('numberedList'==_0x34f623['commandName']||'bulletedList'==_0x34f623['commandName']||'todoList'==_0x34f623['commandName'])switch(_0x34f623['commandName']['replace']('List','')){case'bulleted':return _0x13e739(o(_0x5782da,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x13e739(o(_0x5782da,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x13e739(o(_0x5782da,'ELEMENT_TODO_LIST'));}if('indentList'==_0x34f623['commandName'])return{'type':'format','content':o(_0x5782da,'*Indent:*\x20%0',o(_0x5782da,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x34f623['commandName'])return{'type':'format','content':o(_0x5782da,'*Outdent:*\x20%0',o(_0x5782da,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x34f623['commandName'])return _0x34f623['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5782da,'*Check\x20item*')}:{'type':'format','content':o(_0x5782da,'*Uncheck\x20item*')};}function _0x13e739(_0x10b2a3){return{'type':'format','content':o(_0x5782da,'*Change\x20to:*\x20%0',_0x10b2a3)};}});}}function Le(_0x5003f5){const _0x37acee=_0x5003f5['getAttribute']('listIndent');if(0x0==_0x37acee)return _0x5003f5;let _0x32ff51=_0x5003f5;for(;_0x5003f5['previousSibling']&&_0x5003f5['previousSibling']['is']('element','listItem');){const _0x50c387=_0x5003f5['previousSibling']['getAttribute']('listIndent');if(_0x50c387==_0x37acee)_0x32ff51=_0x5003f5['previousSibling'];else{if(_0x50c387<_0x37acee)break;}_0x5003f5=_0x5003f5['previousSibling'];}return _0x32ff51;}function Ee(_0x52e945){const _0x20b16e=[];if(_0x52e945['is']('element','listItem')&&_0x52e945['getAttribute']('listIndent')>0x0){let _0x3fea97=_0x52e945['nextSibling'];for(;_0x3fea97&&'listItem'==_0x3fea97['name']&&_0x3fea97['getAttribute']('listIndent')==_0x52e945['getAttribute']('listIndent');)_0x20b16e['push'](_0x3fea97),_0x3fea97=_0x3fea97['nextSibling'];}return _0x20b16e;}class ht extends _0x52a075{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x26eb7f=this['editor']['config']['get']('list.properties'),_0x20e3a0=this['editor']['plugins']['get']('TrackChangesEditing');_0x26eb7f['styles']&&_0x20e3a0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x26eb7f['reversed']&&_0x20e3a0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x26eb7f['startIndex']&&_0x20e3a0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x20e3a0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x38d301,_0x5e39b2={}){const _0x23199f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18f846=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x23199f['markMultiRangeBlockFormat'](_0x18f846,{'commandName':'listStyle','commandParams':[{'type':_0x5e39b2['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5cbcf9,_0x26a83a={}){const _0x308328=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d9e9f=this['_getSuggestionBlocks'](_0xbe3c09=>_0xbe3c09['is']('element','listItem')&&'numbered'===_0xbe3c09['getAttribute']('listType'));if(_0x5d9e9f['length']<0x1)return;const _0xb158fb=_0x5d9e9f['map'](_0x177251=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x177251,'before'),this['editor']['model']['createPositionAt'](_0x177251,0x0)));this['editor']['model']['change'](()=>{_0x308328['markMultiRangeBlockFormat'](_0xb158fb,{'commandName':'listReversed','commandParams':[{'reversed':_0x26a83a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x590da4,_0x3cc92e={}){const _0x1047c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x492415=this['_getSuggestionBlocks'](_0x28ae85=>_0x28ae85['is']('element','listItem')&&'numbered'===_0x28ae85['getAttribute']('listType'));if(_0x492415['length']<0x1)return;const _0x573c8a=_0x492415['map'](_0x4f0055=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f0055,'before'),this['editor']['model']['createPositionAt'](_0x4f0055,0x0)));this['editor']['model']['change'](()=>{_0x1047c9['markMultiRangeBlockFormat'](_0x573c8a,{'commandName':'listStart','commandParams':[{'startIndex':_0x3cc92e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5115a7){if('formatBlock'!=_0x5115a7['type']&&'formatInline'!=_0x5115a7['type'])return;const _0x12a6d0=this['editor']['locale'],{data:_0x56ea0d}=_0x5115a7;if(!_0x56ea0d)return;let _0x5d3687,_0x4cfda1;switch(_0x56ea0d['commandName']){case'listStyle':_0x5d3687='*Change\x20to:*\x20%0',_0x4cfda1={'type':'format','content':o(_0x12a6d0,_0x5d3687,o(_0x12a6d0,this['_getTranslationKeyForListStyle'](_0x56ea0d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5d3687=_0x56ea0d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4cfda1={'type':'format','content':o(_0x12a6d0,_0x5d3687)};break;case'listStart':_0x5d3687='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4cfda1={'type':'format','content':o(_0x12a6d0,_0x5d3687,_0x56ea0d['commandParams'][0x0]['startIndex'])};}return _0x4cfda1;}['_getSuggestionBlocksForListStyle'](){const _0x29a9a2=this['editor']['plugins']['get']('LegacyListUtils');let _0x28d9c2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x28d9c2[0x0]?.['is']('element','listItem')&&_0x28d9c2['unshift'](..._0x29a9a2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x28d9c2[_0x28d9c2['length']-0x1]?.['is']('element','listItem')&&_0x28d9c2['push'](..._0x29a9a2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x28d9c2=[...new Set(_0x28d9c2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x28d9c2=_0x28d9c2['filter'](_0x5d467e=>_0x5d467e['is']('element','listItem'))),_0x28d9c2;}['_getSuggestionBlocks'](_0x32b178){const _0x280ec7=this['editor']['plugins']['get']('LegacyListUtils');let _0xe281a1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x32b178)['map'](_0x1644a7=>{const _0x2b5a61=this['editor']['model']['createPositionAt'](_0x1644a7,0x0);return[..._0x280ec7['getSiblingNodes'](_0x2b5a61,'backward'),..._0x280ec7['getSiblingNodes'](_0x2b5a61,'forward')];})['flat']();return _0xe281a1=[...new Set(_0xe281a1)],_0xe281a1;}['_getTranslationKeyForListStyle'](_0x439fa8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x439fa8)||'default')['toUpperCase']()+'_LIST_'+_0x439fa8['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x52a075{['afterInit'](){const _0x20c08e=this['editor'];if(!_0x20c08e['plugins']['has']('MediaEmbedEditing'))return;const _0x1d991b=_0x20c08e['plugins']['get']('TrackChangesEditing'),_0x3d88b2=_0x20c08e['locale'];_0x1d991b['enableCommand']('mediaEmbed'),_0x1d991b['descriptionFactory']['registerElementLabel']('media',_0x27e5d6=>o(_0x3d88b2,'ELEMENT_MEDIA',_0x27e5d6)),_0x20c08e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x28cc46,{writer:_0x584ce2,options:_0x39a9af})=>{if(_0x39a9af['showSuggestionHighlights'])return _0x584ce2['createEmptyElement']('div');},'converterPriority':'high'}),_0x20c08e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x38af9e,_0x2adc46,_0x197455)=>{_0x197455['options']['showSuggestionHighlights']&&_0x38af9e['stop']();},{'priority':'high'});}}class lt extends _0x52a075{['afterInit'](){const _0x4ec8d4=this['editor'];_0x4ec8d4['plugins']['has']('MentionEditing')&&_0x4ec8d4['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x52a075{['afterInit'](){const _0x2627fa=this['editor'];if(!_0x2627fa['plugins']['has']('MergeFieldsEditing'))return;const _0x266a06=_0x2627fa['plugins']['get']('TrackChangesEditing'),_0x4392fa=_0x2627fa['locale'];_0x266a06['enableCommand']('insertMergeField'),_0x266a06['enableCommand']('insertMergeFieldBlock'),_0x266a06['enableCommand']('insertMergeFieldImage'),_0x266a06['descriptionFactory']['registerElementLabel']('mergeField',_0x456d95=>o(_0x4392fa,'ELEMENT_MERGE_FIELD',_0x456d95)),_0x266a06['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5502e4=>o(_0x4392fa,'ELEMENT_MERGE_FIELD',_0x5502e4)),_0x266a06['descriptionFactory']['registerDescriptionCallback'](_0x1aae4a=>{if('insertion'!=_0x1aae4a['type']&&'deletion'!=_0x1aae4a['type'])return;const _0x2f29b=_0x1aae4a['getContainedElement']();if(null==_0x2f29b)return;const _0x373de5=_0x2627fa['plugins']['get']('MergeFieldsEditing');let _0x4978f0;switch(_0x373de5['getMergeFieldType'](_0x2f29b)){case null:return;case'image':{const _0x592d28=_0x373de5['unwrapAffixes'](_0x2f29b['getAttribute']('src'));_0x4978f0=_0x373de5['getLabel'](_0x592d28)||_0x592d28;break;}default:{const _0xfe2c13=_0x2f29b['getAttribute']('id');_0x4978f0=_0x373de5['getLabel'](_0xfe2c13)||_0xfe2c13;break;}}return'insertion'==_0x1aae4a['type']?{'type':'insertion','content':o(_0x4392fa,'*Insert:*\x20%0','\x22'+_0x4978f0+'\x22\x20'+o(_0x4392fa,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4392fa,'*Remove:*\x20%0','\x22'+_0x4978f0+'\x22\x20'+o(_0x4392fa,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x52a075{['afterInit'](){const _0x2616f4=this['editor'],_0x56ffc2=_0x2616f4['plugins']['get']('TrackChangesEditing');_0x2616f4['plugins']['has']('MultiLevelList')&&(_0x56ffc2['enableDefaultAttributesIntegration']('multiLevelList'),_0x56ffc2['registerBlockAttribute']('listMarkerStyle'),_0x56ffc2['descriptionFactory']['registerDescriptionCallback'](_0x238652=>this['handleDescriptions'](_0x238652)));}['handleDescriptions'](_0x23d294){const _0x4f8de6=this['editor']['locale'],{data:_0x42d325}=_0x23d294,_0x15359a={'type':'format','content':''};if(_0x42d325&&'listMarkerStyle'==_0x42d325['key']){if(!_0x42d325['oldValue'])return{'type':'format','content':o(_0x4f8de6,'*Set\x20format:*\x20%0',o(_0x4f8de6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x42d325['newValue']+')'};if(!_0x42d325['newValue']){let _0x30a05f=_0x23d294['head'];for(;_0x30a05f;){if(_0x30a05f['data']&&'listType'==_0x30a05f['data']['key']&&_0x30a05f['data']['newValue'])return _0x15359a;_0x30a05f=_0x30a05f['next'];}return{'type':'format','content':o(_0x4f8de6,'*Remove\x20format:*\x20%0',o(_0x4f8de6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x42d325['oldValue']+')'};}}}}class pt extends _0x52a075{['afterInit'](){const _0x1b7b19=this['editor'];if(!_0x1b7b19['plugins']['has']('PageBreakEditing'))return;_0x1b7b19['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x8b3bd4=_0x1b7b19['plugins']['get']('TrackChangesEditing'),_0x532e0b=_0x1b7b19['locale'];_0x8b3bd4['descriptionFactory']['registerElementLabel']('pageBreak',_0x25a10e=>o(_0x532e0b,'ELEMENT_PAGE_BREAK',_0x25a10e));}}class kt extends _0x52a075{['afterInit'](){const _0x56adce=this['editor'];if(!_0x56adce['plugins']['has']('Paragraph'))return;const _0x5b5469=_0x56adce['locale'],_0x1f573d=_0x56adce['plugins']['get']('TrackChangesEditing');_0x1f573d['descriptionFactory']['registerElementLabel']('paragraph',_0x562187=>o(_0x5b5469,'ELEMENT_PARAGRAPH',_0x562187)),_0x1f573d['enableDefaultAttributesIntegration']('paragraph'),_0x1f573d['enableCommand']('insertParagraph'),_0x56adce['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x56adce),{'priority':'highest'}),_0x56adce['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4c14b7,_0x4f3e5b,_0x21f628)=>{_0x21f628['options']['showSuggestionHighlights']&&nr(_0x56adce,{'showActiveMarker':!0x1})(_0x4c14b7,_0x4f3e5b,_0x21f628);},{'priority':'highest'});const _0x3126d2=_0x1f573d['descriptionFactory'];_0x3126d2['registerDescriptionCallback'](_0xac9003=>{if('insertion'!==_0xac9003['type'])return;const {start:_0x5bdae9,end:_0x5a73ff}=_0xac9003['getFirstRange']();if(!_0x5bdae9['isTouching'](_0x5a73ff)||!_0x5bdae9['nodeAfter'])return;const _0x3ec353=_0x56adce['model']['schema'],_0x10f8b5=_0x5bdae9['nodeAfter'];return _0x3ec353['isBlock'](_0x10f8b5)&&!_0x3ec353['isLimit'](_0x10f8b5)&&_0x3ec353['checkChild'](_0x10f8b5,'$text')?{'type':'insertion','content':o(_0x5b5469,'*Insert:*\x20%0',_0x3126d2['getItemLabel'](_0x10f8b5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x583d07=this['editor'],_0x2df7e9=_0x583d07['locale'];_0x583d07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e8ef2=>{if('formatBlock'!=_0x2e8ef2['type'])return;const {data:_0x19aa88}=_0x2e8ef2;return _0x19aa88&&'paragraph'==_0x19aa88['commandName']?{'type':'format','content':o(_0x2df7e9,'*Change\x20to:*\x20%0',o(_0x2df7e9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x175203,{showActiveMarker:_0x2ac1f0=!0x0}={}){return(_0x273644,_0x238946,_0x3a8e0d)=>{const _0x210906=_0x175203['plugins']['get']('TrackChangesEditing'),_0x195692=_0x238946['markerRange']['start'],_0x58a5e5=_0x238946['markerRange']['end'],_0x1d767b=_0x175203['model']['schema'];if(!_0x195692['isTouching'](_0x58a5e5)||!_0x195692['nodeAfter'])return;const _0x3a1c10=_0x195692['nodeAfter'];if(_0x1d767b['isBlock'](_0x3a1c10)&&!_0x1d767b['isLimit'](_0x3a1c10)&&_0x1d767b['checkChild'](_0x3a1c10,'$text')){if(!_0x3a8e0d['consumable']['consume'](_0x238946['markerRange'],_0x273644['name']))return;const {id:_0x4a0296,authorId:_0x256d06}=_0x210906['_splitMarkerName'](_0x238946['markerName']),_0x485878=_0x3a8e0d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4a0296,'data-author-id':_0x256d06}),_0x4b64f3=_0x3a8e0d['mapper']['toViewPosition'](_0x58a5e5);_0x2ac1f0&&_0x210906['activeMarkers']['includes'](_0x238946['markerName'])&&_0x3a8e0d['writer']['addClass']('ck-suggestion-marker--active',_0x485878),_0x3a8e0d['writer']['insert'](_0x4b64f3,_0x485878),_0x3a8e0d['mapper']['bindElementToMarker'](_0x485878,_0x238946['markerName']);}};}class wt extends _0x52a075{['afterInit'](){const _0x35a013=this['editor'];_0x35a013['commands']['get']('replaceSource')&&_0x35a013['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x52a075{['afterInit'](){const _0x3649da=this['editor'];if(!_0x3649da['plugins']['has']('RemoveFormatEditing'))return;_0x3649da['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x266a28=this['editor'];_0x266a28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf9a639=>{if('formatBlock'!=_0xf9a639['type']&&'formatInline'!=_0xf9a639['type'])return;const {data:_0x4f1a94}=_0xf9a639;return _0x4f1a94&&'removeFormat'==_0x4f1a94['commandName']?{'type':'format','content':o(_0x266a28['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x52a075{['afterInit'](){const _0x44900e=this['editor'];if(!_0x44900e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x211323=_0x44900e['plugins']['get']('TrackChangesEditing');_0x211323['enableCommand']('goToPreviousRestrictedEditingException'),_0x211323['enableCommand']('goToNextRestrictedEditingException');const _0x40e396=_0x44900e['plugins']['get']('RestrictedEditingModeEditing');_0x40e396['enableCommand']('trackChanges'),_0x40e396['enableCommand']('acceptSuggestion'),_0x40e396['enableCommand']('discardSuggestion'),_0x40e396['enableCommand']('acceptAllSuggestions'),_0x40e396['enableCommand']('discardAllSuggestions'),_0x40e396['enableCommand']('acceptSelectedSuggestions'),_0x40e396['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x52a075{['afterInit'](){const _0x30b83e=this['editor'];if(!_0x30b83e['plugins']['has']('ShiftEnter'))return;const _0x5abeda=_0x30b83e['plugins']['get']('TrackChangesEditing');_0x5abeda['enableCommand']('shiftEnter'),_0x30b83e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x30b83e),{'priority':'high'}),_0x30b83e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x30b83e),{'priority':'high'}),_0x30b83e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x444032,_0x41e6f5,_0x5878b8)=>{_0x5878b8['options']['showSuggestionHighlights']&&je(_0x30b83e,{'showActiveMarker':!0x1})(_0x444032,_0x41e6f5,_0x5878b8);}),_0x5abeda['descriptionFactory']['registerElementLabel']('softBreak',_0x58c242=>o(_0x30b83e['locale'],'ELEMENT_LINE_BREAK',_0x58c242));}}function je(_0x27136c,{showActiveMarker:_0x43a29e=!0x0}={}){return(_0x189783,_0x343cc1,_0x39a2a7)=>{const _0x1e4c9d=_0x27136c['plugins']['get']('TrackChangesEditing');if(!_0x39a2a7['consumable']['test'](_0x343cc1['markerRange'],_0x189783['name']))return;const _0x537685=_0x27136c['model'];for(const _0x299dba of _0x343cc1['markerRange']['getItems']()){if(!_0x299dba['is']('element','softBreak'))continue;const _0x2e190b='deletion'==_0x343cc1['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x12a1f7,authorId:_0x195907}=_0x1e4c9d['_splitMarkerName'](_0x343cc1['markerName']),_0x1193e7=_0x39a2a7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2e190b,'data-suggestion':_0x12a1f7,'data-author-id':_0x195907}),_0x36e5bd=_0x39a2a7['mapper']['toViewPosition'](_0x537685['createPositionBefore'](_0x299dba));_0x43a29e&&_0x1e4c9d['activeMarkers']['includes'](_0x343cc1['markerName'])&&_0x39a2a7['writer']['addClass']('ck-suggestion-marker--active',_0x1193e7),_0x39a2a7['writer']['insert'](_0x36e5bd,_0x1193e7),_0x39a2a7['mapper']['bindElementToMarker'](_0x1193e7,_0x343cc1['markerName']);}};}class St extends _0x52a075{['afterInit'](){const _0x404b43=this['editor'],_0x3711d0=_0x404b43['model'],_0x227fcb=_0x404b43['locale'];if(!_0x404b43['plugins']['has']('StandardEditingModeEditing'))return;const _0x1d1e24=_0x404b43['plugins']['get']('TrackChangesEditing'),_0x5de664='restrictedEditingException',_0x80e64f=_0x404b43['commands']['get'](_0x5de664);_0x1d1e24['enableCommand'](_0x5de664,(_0x1b519d,_0x599668={})=>{const _0x240013=_0x3711d0['document']['selection'];if(_0x240013['isCollapsed'])return void _0x1b519d(_0x599668);const _0x62cfd4=void 0x0!==_0x599668['forceValue']?_0x599668['forceValue']:!_0x80e64f['value'];_0x3711d0['change'](()=>{const _0x37bd63=Array['from'](_0x240013['getRanges']());for(const _0x4decbe of _0x37bd63){const _0x33c12d=_0x62cfd4?[_0x4decbe]:io(_0x5de664,_0x4decbe,_0x3711d0);for(const _0x5204aa of _0x33c12d)_0x1d1e24['markInlineFormat'](_0x5204aa,{'commandName':_0x5de664,'commandParams':[{'forceValue':_0x62cfd4}]});}});}),_0x1d1e24['descriptionFactory']['registerDescriptionCallback'](_0x439c2c=>{if('formatBlock'!=_0x439c2c['type']&&'formatInline'!=_0x439c2c['type'])return;const {data:_0x4cacca}=_0x439c2c;return _0x4cacca&&_0x4cacca['commandName']==_0x5de664?_0x4cacca['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x227fcb,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x227fcb,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x52a075{['afterInit'](){const _0x135c2c=this['editor'];if(!_0x135c2c['plugins']['has']('Style')||!_0x135c2c['plugins']['has']('DataSchema'))return;const _0x43091d=_0x135c2c['plugins']['get']('TrackChangesEditing'),_0x4dc420=_0x135c2c['locale'],_0x1cc073=_0x135c2c['config']['get']('style')||{},_0x4c8d38=_0x135c2c['plugins']['get']('GeneralHtmlSupport'),_0x2bda4c=_0x135c2c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x135c2c['plugins']['get']('DataSchema'),_0x1cc073['definitions']);_0x43091d['enableDefaultAttributesIntegration']('style');const _0x267f52=new Set();for(const _0x49150e of _0x2bda4c['block']){const _0x4d306b=_0x4c8d38['getGhsAttributeNameForElement'](_0x49150e['element']);_0x267f52['add'](_0x4d306b);}const _0x346df0=new Set();for(const _0x2cf350 of _0x2bda4c['inline']){const _0x10b72a=_0x4c8d38['getGhsAttributeNameForElement'](_0x2cf350['element']);_0x346df0['add'](_0x10b72a);for(const _0x22cf96 of _0x2cf350['ghsAttributes'])_0x346df0['add'](_0x22cf96);}for(const _0x1f8535 of _0x267f52)_0x43091d['registerBlockAttribute'](_0x1f8535),_0x43091d['descriptionFactory']['registerAttributeLabel'](_0x1f8535,o(_0x4dc420,'FORMAT_STYLE'));for(const _0x457763 of _0x346df0)_0x43091d['registerInlineAttribute'](_0x457763),_0x43091d['descriptionFactory']['registerAttributeLabel'](_0x457763,o(_0x4dc420,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38b736=this['editor'],_0xd9e8f0=_0x38b736['locale'];_0x38b736['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11486a=>{if('formatBlock'!=_0x11486a['type']&&'formatInline'!=_0x11486a['type'])return;const {data:_0x4d3f0d}=_0x11486a;return _0x4d3f0d&&'style'===_0x4d3f0d['commandName']?_0x4d3f0d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd9e8f0,'*Set\x20format:*\x20%0',_0x4d3f0d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xd9e8f0,'*Remove\x20format:*\x20%0',_0x4d3f0d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x52a075{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x324ec9){super(_0x324ec9),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2659b0=this['editor'],_0x271b6f=_0x2659b0['model']['document']['selection'];if(!_0x2659b0['plugins']['has']('TableEditing'))return;const _0x18d1b9=_0x2659b0['locale'],_0x47bd5f=_0x2659b0['plugins']['get']('TrackChangesEditing'),_0x2ff75c=_0x2659b0['plugins']['get']('TableUtils');_0x47bd5f['descriptionFactory']['registerElementLabel']('table',_0x3d3d8a=>o(_0x18d1b9,'ELEMENT_TABLE',_0x3d3d8a)),this['_setupColumnsRowsFixing'](),_0x47bd5f['enableCommand']('insertTable'),_0x47bd5f['enableCommand']('selectTableRow'),_0x47bd5f['enableCommand']('selectTableColumn');for(const _0x28e17d of['insertTableRowAbove','insertTableRowBelow']){const _0x2d2bf5=_0x2659b0['commands']['get'](_0x28e17d);_0x47bd5f['enableCommand'](_0x28e17d,_0x41a104=>{_0x2659b0['model']['change'](_0x2689dc=>{_0x41a104();const _0xb6dbd8='above'===_0x2d2bf5['order'],_0x27e1af=_0x2ff75c['getSelectionAffectedTableCells'](_0x271b6f),_0x19ca6d=_0x2ff75c['getRowIndexes'](_0x27e1af),_0x244429=_0xb6dbd8?_0x19ca6d['first']-0x1:_0x19ca6d['last']+0x1,_0x223bed=_0x27e1af[0x0]['findAncestor']('table'),_0x5a4d35=_0x2ff75c['createTableWalker'](_0x223bed,{'startRow':_0x244429,'endRow':_0x244429}),_0x279fcd=Array['from'](_0x5a4d35)['map'](_0x14ad81=>_0x2689dc['createRangeOn'](_0x14ad81['cell']));_0x47bd5f['markMultiRangeInsertion'](_0x279fcd,'tableRow');});});}for(const _0x234385 of['insertTableColumnLeft','insertTableColumnRight']){const _0x39412c=_0x2659b0['commands']['get'](_0x234385);_0x47bd5f['enableCommand'](_0x234385,_0x5af67f=>{_0x2659b0['model']['change'](_0x578134=>{_0x5af67f();const _0x41f1cd='left'===_0x39412c['order'],_0xf28ddb=_0x2ff75c['getSelectionAffectedTableCells'](_0x271b6f),_0x4339b8=_0x2ff75c['getColumnIndexes'](_0xf28ddb),_0x5c93db=_0x41f1cd?_0x4339b8['first']-0x1:_0x4339b8['last']+0x1,_0xfefc75=_0xf28ddb[0x0]['findAncestor']('table'),_0x5aea76=_0x2ff75c['createTableWalker'](_0xfefc75,{'startRow':0x0,'column':_0x5c93db,'includeAllSlots':!0x1}),_0x52a5bf=Array['from'](_0x5aea76)['map'](_0x256026=>_0x578134['createRangeOn'](_0x256026['cell']));_0x47bd5f['markMultiRangeInsertion'](_0x52a5bf,'tableColumn');});});}for(const _0x5f22f6 of['removeTableRow','removeTableColumn']){const _0x50c464=_0x5f22f6['substr'](0xb),_0x5090fd=_0x50c464['toLowerCase'](),_0x514bf1=_0x5090fd['substr'](0x0,0x3)+'span',_0x2dcc2e='table'+_0x50c464,_0x580bb6='min'+_0x50c464,_0x398164='max'+_0x50c464;_0x47bd5f['enableCommand'](_0x5f22f6,()=>{_0x2659b0['model']['change'](_0x3e7460=>{const _0x1d0a1f=_0x2ff75c['getSelectionAffectedTableCells'](_0x271b6f),_0x44cf49=_0x1d0a1f[0x0]['findAncestor']('table');let _0x1ad791;if('removeTableRow'==_0x5f22f6){const _0x5e7538=_0x2ff75c['getRowIndexes'](_0x1d0a1f);_0x1ad791={'startRow':_0x5e7538['first'],'endRow':_0x5e7538['last'],'includeAllSlots':!0x0};}else{const _0xd19a05=_0x2ff75c['getColumnIndexes'](_0x1d0a1f);_0x1ad791={'startColumn':_0xd19a05['first'],'endColumn':_0xd19a05['last'],'includeAllSlots':!0x0};}const _0x536faa=_0x2ff75c['createTableWalker'](_0x44cf49,_0x1ad791),_0xfb2399=Array['from'](_0x536faa)['map'](({cell:_0x17c581})=>_0x17c581),_0x59900d=Ne(_0xfb2399['filter'](_0xa61410=>_0xa61410['hasAttribute'](_0x514bf1))),_0xb99b45=Ne(_0xfb2399['filter'](_0x74a106=>!_0x74a106['hasAttribute'](_0x514bf1)))['map'](_0x4a0146=>_0x3e7460['createRangeOn'](_0x4a0146)),_0x1a2c32=_0x47bd5f['markMultiRangeDeletion'](_0xb99b45,_0x2dcc2e);if(_0x1a2c32&&('tableRow'==_0x1a2c32['subType']||'tableColumn'==_0x1a2c32['subType'])){const _0x55b13c=this['_getSuggestionCoords'](_0x1a2c32);for(const _0x26d987 of _0x59900d){const _0x3d1396=_0x3e7460['createRangeOn'](_0x26d987),_0x5baba3=_0x2ff75c['getCellLocation'](_0x26d987),_0x4ff063=_0x26d987['getAttribute'](_0x514bf1)-0x1,_0x2e6738=_0x55b13c[_0x580bb6],_0xc5045a=_0x55b13c[_0x398164];_0x2e6738<=_0x5baba3[_0x5090fd]&&_0x5baba3[_0x5090fd]+_0x4ff063<=_0xc5045a&&_0x1a2c32['addRange'](_0x3d1396);}}});});}function _0x16feb5(_0x34b3bd){const _0x40c7c3=Array['from'](_0x271b6f['getRanges']())['map'](_0x119ac5=>_0x943391['fromRange'](_0x119ac5));_0x2659b0['model']['change'](_0x8107d1=>{const _0x86b640=_0x8107d1['batch'];_0x34b3bd=_0x34b3bd['filter'](_0x500342=>'$graveyard'!=_0x500342['root']['rootName']),_0x8107d1['setSelection'](_0x34b3bd),_0x2659b0['commands']['get']('removeTableRow')['refresh'](),_0x2659b0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2659b0['model']['enqueueChange'](()=>{_0x2659b0['model']['enqueueChange'](_0x86b640,_0x31036f=>{const _0x4df2c5=_0x40c7c3['filter'](_0x3fb6a4=>'$graveyard'!=_0x3fb6a4['root']['rootName']);_0x4df2c5['length']>0x0&&_0x31036f['setSelection'](_0x4df2c5);for(const _0x41e5e9 of _0x40c7c3)_0x41e5e9['detach']();});});});}function _0x275549(_0x516254){_0x2659b0['model']['change'](_0xa7e191=>{const _0x49f325=Array['from'](_0x271b6f['getRanges']())['map'](_0x4daa7e=>_0x943391['fromRange'](_0x4daa7e)),_0x22205f=[];for(const _0x1787c6 of _0x516254)for(const _0x2bee35 of _0x1787c6['getItems']({'shallow':!0x0}))_0x22205f['push'](_0x2bee35);for(const _0x5e2e78 of _0x22205f)'$graveyard'!=_0x5e2e78['root']['rootName']&&(_0xa7e191['setSelection'](_0xa7e191['createPositionAt'](_0x5e2e78,0x0)),_0x2659b0['commands']['get']('removeTableColumn')['refresh'](),_0x2659b0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x139424=_0x49f325['filter'](_0x3b6a24=>'$graveyard'!=_0x3b6a24['root']['rootName']);_0x139424['length']>0x0&&_0xa7e191['setSelection'](_0x139424);for(const _0x4cb34c of _0x49f325)_0x4cb34c['detach']();});}function _0x579004(_0x27e6e9,_0x1f35f6){return _0x1f35f6['every'](_0x13475d=>_0x27e6e9['some'](_0x14251e=>_0x14251e['end']['isEqual'](_0x13475d['start'])||_0x13475d['end']['isEqual'](_0x14251e['start'])));}function _0x221239(_0xf24e68,_0x53b9c4){return!_0xf24e68['some'](_0x401dbd=>_0x53b9c4['some'](_0x40a5d9=>_0x401dbd['isIntersecting'](_0x40a5d9)))&&_0xf24e68['some'](_0xa6867b=>_0x53b9c4['some'](_0x253db2=>_0xa6867b['end']['isTouching'](_0x253db2['start'])));}_0x2659b0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x457f5f,_0x22debe,_0x46c10a)=>{if(!_0x46c10a['options']['showSuggestionHighlights'])return;const _0x49bd9=_0x22debe['item'];if(!_0x49bd9||!_0x49bd9['is']('element','tableCell'))return;const _0x1b0b70=_0x46c10a['mapper']['toViewElement'](_0x49bd9);if(_0x1b0b70){const {id:_0x216ab6,authorId:_0x20c784}=_0x47bd5f['_splitMarkerName'](_0x22debe['markerName']);_0xaf8ca2(_0x1b0b70,_0x46c10a['writer'],(_0x281cbd,_0x3a309f,_0x5e19bc)=>{_0x5e19bc['addClass'](_0xb32834(_0x3a309f['classes']),_0x281cbd),_0x5e19bc['setAttribute']('data-suggestion-id',_0x216ab6,_0x281cbd),_0x5e19bc['setAttribute']('data-author-id',_0x20c784,_0x281cbd);},(_0xda062f,_0x518c9f,_0x2e08a)=>{_0x2e08a['removeClass'](_0xb32834(_0x518c9f['classes']),_0xda062f),_0x2e08a['removeAttribute']('data-suggestion-id',_0xda062f),_0x2e08a['removeAttribute']('data-author-id',_0xda062f);});}},{'priority':'highest'}),_0x47bd5f['descriptionFactory']['registerDescriptionCallback'](_0x4b464e=>{if('insertion'!=_0x4b464e['type']&&'deletion'!=_0x4b464e['type'])return;const _0x31c19c=_0x4b464e['getContainedElement']();if(null!=_0x31c19c&&_0x31c19c['is']('element','table')){if('insertion'==_0x4b464e['type']){const _0x1833f2=_0x4b464e['getItems']()['filter'](_0x2dbfbf=>_0x2dbfbf['is']('$textProxy'))['map'](_0x3bfd0f=>_0x3bfd0f['data']);if(_0x1833f2['length'])return{'type':'insertion','content':o(_0x18d1b9,'*Insert:*\x20%0',o(_0x18d1b9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1833f2['join']('\x20')+'\x22'))};}if('deletion'==_0x4b464e['type']){const _0x1ea661=_0x4b464e['getItems']()['filter'](_0x263a10=>_0x263a10['is']('$textProxy'))['map'](_0x38a02d=>_0x38a02d['data']);if(_0x1ea661['length'])return{'type':'deletion','content':o(_0x18d1b9,'*Remove:*\x20%0',o(_0x18d1b9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1ea661['join']('\x20')+'\x22'))};}}}),_0x47bd5f['descriptionFactory']['registerDescriptionCallback'](_0x4557ab=>{if('tableRow'==_0x4557ab['subType']){const _0x36c999=_0x4557ab['getItems']()['filter'](_0xbbc1d8=>_0xbbc1d8['is']('$textProxy'))['map'](_0x5a15d5=>_0x5a15d5['data']),_0x40451f=this['_getSuggestionCoords'](_0x4557ab),_0x3c3d85=_0x40451f['maxRow']-_0x40451f['minRow']+0x1;if('insertion'==_0x4557ab['type'])return _0x36c999['length']?{'type':'insertion','content':o(_0x18d1b9,'*Insert:*\x20%0',o(_0x18d1b9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3c3d85,'\x22'+_0x36c999['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x18d1b9,'*Insert:*\x20%0',o(_0x18d1b9,'ELEMENT_TABLE_ROW',_0x3c3d85))};if('deletion'==_0x4557ab['type'])return _0x36c999['length']?{'type':'deletion','content':o(_0x18d1b9,'*Remove:*\x20%0',o(_0x18d1b9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3c3d85,'\x22'+_0x36c999['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x18d1b9,'*Remove:*\x20%0',o(_0x18d1b9,'ELEMENT_TABLE_ROW',_0x3c3d85))};}if('tableColumn'==_0x4557ab['subType']){const _0x4f4eb4=_0x4557ab['getItems']()['filter'](_0x3060ce=>_0x3060ce['is']('$textProxy'))['map'](_0x28be9a=>_0x28be9a['data']),_0x3bd869=this['_getSuggestionCoords'](_0x4557ab),_0x3cc529=_0x3bd869['maxColumn']-_0x3bd869['minColumn']+0x1;if('insertion'==_0x4557ab['type'])return _0x4f4eb4['length']?{'type':'insertion','content':o(_0x18d1b9,'*Insert:*\x20%0',o(_0x18d1b9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3cc529,'\x22'+_0x4f4eb4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x18d1b9,'*Insert:*\x20%0',o(_0x18d1b9,'ELEMENT_TABLE_COLUMN',_0x3cc529))};if('deletion'==_0x4557ab['type'])return _0x4f4eb4['length']?{'type':'deletion','content':o(_0x18d1b9,'*Remove:*\x20%0',o(_0x18d1b9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3cc529,'\x22'+_0x4f4eb4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x18d1b9,'*Remove:*\x20%0',o(_0x18d1b9,'ELEMENT_TABLE_COLUMN',_0x3cc529))};}}),_0x47bd5f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x16feb5),_0x47bd5f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x16feb5),_0x47bd5f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x275549),_0x47bd5f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x275549),_0x47bd5f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x579004),_0x47bd5f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x579004),_0x47bd5f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x221239),_0x47bd5f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x221239);}['_acceptFormatSuggestionCallbackFactory'](){const _0x22612c=this['editor'],_0x5de84f=_0x22612c['model']['document']['selection'];return(_0x58c2e1,_0x367200)=>{_0x22612c['model']['change'](_0x2fb84b=>{const {commandName:_0x2ffe31,commandParams:_0x148d53}=_0x367200;let _0x4a54eb=_0x58c2e1[0x0]['end']['nodeBefore'];_0x148d53&&_0x148d53[0x0]&&!0x1===_0x148d53[0x0]['forceValue']&&(_0x4a54eb=_0x58c2e1[0x0]['start']['nodeAfter']);const _0x4c5b2d=_0x2fb84b['createRangeIn'](_0x4a54eb);if('$graveyard'==_0x4c5b2d['root']['rootName'])return;const _0x5d149e=Array['from'](_0x5de84f['getRanges']())['map'](_0x3ebb97=>_0x943391['fromRange'](_0x3ebb97));_0x2fb84b['setSelection'](_0x4c5b2d),_0x22612c['commands']['get'](_0x2ffe31)['refresh'](),_0x148d53['push']({'forceDefaultExecution':!0x0}),_0x22612c['execute'](_0x2ffe31,..._0x148d53);const _0x11a995=_0x5d149e['filter'](_0x4d9b3d=>'$graveyard'!=_0x4d9b3d['root']['rootName']);_0x11a995['length']>0x0&&_0x2fb84b['setSelection'](_0x11a995);for(const _0x43cdcb of _0x5d149e)_0x43cdcb['detach']();});};}['_getCoordsForCells'](_0x299fc1){const _0x337311=this['editor']['plugins']['get']('TableUtils');let _0x3771ec=Number['MAX_SAFE_INTEGER'],_0x38c730=Number['MIN_SAFE_INTEGER'],_0x4aaae5=Number['MAX_SAFE_INTEGER'],_0x36d1eb=Number['MIN_SAFE_INTEGER'];for(const _0x5991ea of _0x299fc1){if('$graveyard'==_0x5991ea['root']['rootName'])continue;const {row:_0x4ee6a4,column:_0x16867f}=_0x337311['getCellLocation'](_0x5991ea),_0x26af96=_0x5991ea['hasAttribute']('rowspan')?_0x5991ea['getAttribute']('rowspan')-0x1:0x0,_0x48fc49=_0x5991ea['hasAttribute']('colspan')?_0x5991ea['getAttribute']('colspan')-0x1:0x0;_0x3771ec=_0x4ee6a4<_0x3771ec?_0x4ee6a4:_0x3771ec,_0x38c730=_0x4ee6a4+_0x26af96>_0x38c730?_0x4ee6a4+_0x26af96:_0x38c730,_0x4aaae5=_0x16867f<_0x4aaae5?_0x16867f:_0x4aaae5,_0x36d1eb=_0x16867f+_0x48fc49>_0x36d1eb?_0x16867f+_0x48fc49:_0x36d1eb;}return{'minRow':_0x3771ec,'maxRow':_0x38c730,'minColumn':_0x4aaae5,'maxColumn':_0x36d1eb};}['_setupColumnsRowsFixing'](){const _0x4ef156=this['editor'],_0x319cda=_0x4ef156['plugins']['get']('TrackChangesEditing'),_0x3ce702=_0x4ef156['plugins']['get']('TableUtils');_0x4ef156['model']['document']['on']('change:data',()=>{const _0x2a8f98=Array['from'](_0x4ef156['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c5b10,data:_0x2797dc}of _0x2a8f98){const {group:_0x1c1507,id:_0x27019e,subType:_0x2998da}=_0x319cda['_splitMarkerName'](_0x3c5b10);if('suggestion'!=_0x1c1507)continue;if(null!=_0x2797dc['oldRange'])continue;const _0x2196a1=_0x319cda['getSuggestion'](_0x27019e);this['_tablePostFixingSubtypes']['includes'](_0x2998da)&&this['_tableSuggestions']['add'](_0x2196a1);}},{'priority':'low'});const _0x6081a6=(_0x10a9ef,_0x38eb9d)=>{let _0x4f74f7=!0x1;const _0x445e47=_0x38eb9d['createRangeOn'](_0x10a9ef),_0x4353e4=_0x10a9ef['findAncestor']('table'),_0x2923f2=_0x3ce702['getCellLocation'](_0x10a9ef);for(const _0x39db39 of this['_tableSuggestions']){const _0x56e2ce=_0x39db39['subType'],_0x38d9ff=_0x56e2ce['startsWith']('tablePaste'),_0x8d3aae=_0x56e2ce['substr'](_0x38d9ff?0xa:0x5),_0x1dcb24=_0x8d3aae['toLowerCase'](),_0x38d258=_0x1dcb24['substr'](0x0,0x3)+'span',_0x4cd11b='min'+_0x8d3aae,_0x430d14='max'+_0x8d3aae;if(!_0x39db39['isInContent'])continue;if(_0x4353e4!=_0x39db39['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x39db39['isIntersectingWithRange'](_0x445e47))continue;const _0x1babd3=_0x10a9ef['hasAttribute'](_0x38d258)?_0x10a9ef['getAttribute'](_0x38d258)-0x1:0x0,_0x13ab7a=this['_getSuggestionCoords'](_0x39db39),_0x426630=_0x13ab7a[_0x4cd11b],_0x46a5ef=_0x13ab7a[_0x430d14];_0x426630<=_0x2923f2[_0x1dcb24]&&_0x2923f2[_0x1dcb24]+_0x1babd3<=_0x46a5ef&&(_0x39db39['addRange'](_0x445e47),_0x4f74f7=!0x0);}return _0x4f74f7;};_0x4ef156['model']['document']['registerPostFixer'](_0x14d28d=>{let _0x3b9797=!0x1;for(const _0x4089f7 of _0x4ef156['model']['document']['differ']['getChanges']())if('insert'==_0x4089f7['type']){if('tableRow'==_0x4089f7['name']){for(const _0x2e2952 of _0x4089f7['position']['nodeAfter']['getChildren']())_0x3b9797=_0x3b9797||_0x6081a6(_0x2e2952,_0x14d28d);}else'tableCell'==_0x4089f7['name']&&(_0x3b9797=_0x3b9797||_0x6081a6(_0x4089f7['position']['nodeAfter'],_0x14d28d));}return _0x3b9797;});}['_getSuggestionCoords'](_0x4de250){return this['_getCoordsForCells'](_0x4de250['getRanges']()['map'](_0x1abcb0=>_0x1abcb0['start']['nodeAfter']));}}function Ne(_0x3ffc04){return Array['from'](new Set(_0x3ffc04)['values']());}class _t extends _0x52a075{static get['requires'](){return[At];}['afterInit'](){const _0x1fd45c=this['editor'],_0x4ddf8a=_0x1fd45c['model']['document']['selection'],_0x2269d3=_0x1fd45c['locale'];if(!_0x1fd45c['plugins']['has']('TableEditing'))return;const _0x43938f=_0x1fd45c['plugins']['get']('TrackChangesEditing'),_0x5cdccb=_0x1fd45c['plugins']['get']('TableUtils'),_0x26cae4=_0x1fd45c['plugins']['get'](At);_0x26cae4['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x43938f['enableCommand']('mergeTableCells',()=>{const _0x139cac=_0x5cdccb['getSelectionAffectedTableCells'](_0x1fd45c['model']['document']['selection']);_0x1fd45c['model']['change'](()=>{_0x43938f['markMultiRangeBlockFormat'](_0x139cac,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1fd45c['commands']['get']('mergeTableCells')['on']('execute',(_0xd2819c,_0x21d028)=>{_0x1fd45c['commands']['get']('trackChanges')['value']&&(_0x21d028['length']>0x0&&_0x21d028[_0x21d028['length']-0x1]&&_0x21d028[_0x21d028['length']-0x1]['forceDefaultExecution']||_0x43938f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xd2819c['stop']());},{'priority':'highest'});for(const _0x8452ff of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x446533=_0x1fd45c['commands']['get'](_0x8452ff);_0x43938f['enableCommand'](_0x8452ff,()=>{const _0x805943=_0x1fd45c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x14197d=>_0x14197d['is']('element','tableCell')),_0x1a1221=_0x446533['value'];_0x1fd45c['model']['change'](()=>{_0x43938f['markMultiRangeBlockFormat']([_0x805943,_0x1a1221],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x21f8e4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x370c4c=_0x1fd45c['commands']['get'](_0x21f8e4);_0x43938f['enableCommand'](_0x21f8e4,()=>{const _0x367e53=_0x5cdccb['getSelectionAffectedTableCells'](_0x1fd45c['model']['document']['selection'])[0x0],_0x3ea12c=_0x367e53['findAncestor']('table'),{column:_0x2275a0,row:_0x5ccc90}=_0x5cdccb['getCellLocation'](_0x367e53);let _0x53db22=[];if('horizontally'==_0x370c4c['direction']){const _0x90c83a=_0x5cdccb['createTableWalker'](_0x3ea12c,{'startRow':_0x5ccc90,'endRow':_0x5ccc90,'includeAllSlots':!0x0});_0x53db22=Array['from'](_0x90c83a)['map'](_0x1d0139=>_0x1d0139['cell']);}else{const _0x105a60=_0x5cdccb['createTableWalker'](_0x3ea12c,{'column':_0x2275a0,'includeAllSlots':!0x0});_0x53db22=Array['from'](_0x105a60)['map'](_0x19b7ff=>_0x19b7ff['cell']);}_0x1fd45c['model']['change'](_0x12ab7f=>{_0x43938f['markBlockFormat'](_0x12ab7f['createRangeOn'](_0x367e53),{'commandName':_0x21f8e4,'commandParams':[]},_0x53db22,_0x21f8e4);});});}_0x43938f['descriptionFactory']['registerDescriptionCallback'](_0x4c4092=>{if('formatBlock'!=_0x4c4092['type']&&'formatInline'!=_0x4c4092['type'])return;const {data:_0x5230d0}=_0x4c4092;return _0x5230d0&&'mergeTableCells'==_0x5230d0['commandName']?{'type':'format','content':o(_0x2269d3,'*Merge\x20cells*')}:void 0x0;}),_0x43938f['descriptionFactory']['registerDescriptionCallback'](_0x40770f=>{if('formatBlock'!=_0x40770f['type']&&'formatInline'!=_0x40770f['type'])return;const {data:_0x293652}=_0x40770f;return _0x293652?'splitTableCellVertically'==_0x293652['commandName']?{'type':'format','content':o(_0x2269d3,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x293652['commandName']?{'type':'format','content':o(_0x2269d3,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x824a26=_0x26cae4['_acceptFormatSuggestionCallbackFactory']();for(const _0x5c2f89 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x43938f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5c2f89,'accept',_0x824a26);for(const _0x3ae0fd of['splitTableCellVertically','splitTableCellHorizontally'])_0x43938f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ae0fd,'accept',_0x824a26);_0x43938f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3146fb=>{_0x1fd45c['model']['change'](_0x498e95=>{const _0x2892d3=Array['from'](_0x4ddf8a['getRanges']())['map'](_0x54302b=>_0x943391['fromRange'](_0x54302b));_0x498e95['setSelection'](_0x3146fb),_0x1fd45c['commands']['get']('mergeTableCells')['refresh'](),_0x1fd45c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4ebf21=_0x2892d3['filter'](_0x4fd211=>'$graveyard'!=_0x4fd211['root']['rootName']);_0x4ebf21['length']>0x0&&_0x498e95['setSelection'](_0x4ebf21);for(const _0x1fd7e4 of _0x2892d3)_0x1fd7e4['detach']();});});for(const _0x2e68f3 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x48eb8f=_0x1fd45c['commands']['get'](_0x2e68f3);_0x48eb8f['on']('set:isEnabled',(_0xebdf20,_0x1ec83f,_0x96f434)=>{if(_0x96f434){const _0x1ac767=_0x1fd45c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4da772=>_0x4da772['is']('element','tableCell'));this['_areMergableCells'](_0x48eb8f['value'],_0x1ac767)||(_0xebdf20['return']=!0x1,_0xebdf20['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x119dce=this['editor']['commands']['get']('mergeTableCells'),_0x119cc2=this['editor']['plugins']['get']('TableUtils');if(!_0x119dce['isEnabled'])return!0x1;const _0x27c1f2=_0x119cc2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x52b8b5 of _0x27c1f2)for(const _0x3c5ddb of _0x27c1f2)if(_0x52b8b5!=_0x3c5ddb&&!this['_areMergableCells'](_0x52b8b5,_0x3c5ddb))return!0x1;return!0x0;}['_areMergableCells'](_0x1cf3a2,_0x7cf517){const _0x3eb613=this['editor']['plugins']['get']('TrackChangesEditing'),_0x586cc3=this['editor']['model']['createRangeOn'](_0x1cf3a2),_0x22d1ad=this['editor']['model']['createRangeOn'](_0x7cf517),_0x206db9=new Set(),_0x1f1b1a=new Set();for(const _0x48faf5 of _0x3eb613['getSuggestions']())if(('insertion'==_0x48faf5['type']||'deletion'==_0x48faf5['type']||'mergeTableCells'==_0x48faf5['subType'])&&_0x48faf5['isInContent']){for(const _0xae5321 of _0x48faf5['getRanges']())_0xae5321['containsRange'](_0x586cc3,!0x0)&&_0x206db9['add'](_0x48faf5['type']+':'+_0x48faf5['author']['id']),_0xae5321['containsRange'](_0x22d1ad,!0x0)&&_0x1f1b1a['add'](_0x48faf5['type']+':'+_0x48faf5['author']['id']);}if(_0x206db9['size']!=_0x1f1b1a['size'])return!0x1;for(const _0x31eb3d of _0x206db9)if(!_0x1f1b1a['has'](_0x31eb3d))return!0x1;return!0x0;}}class Ct extends _0x52a075{static get['requires'](){return[At];}['afterInit'](){const _0x4f7df0=this['editor'];if(!_0x4f7df0['plugins']['has']('TableEditing'))return;const _0x12c96c=_0x4f7df0['locale'],_0x4afe40=_0x4f7df0['plugins']['get']('TrackChangesEditing');_0x4afe40['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4afe40['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4afe40['registerBlockAttribute']('headingRows'),_0x4afe40['registerBlockAttribute']('headingColumns'),_0x4afe40['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x12c96c,'FORMAT_HEADER_ROW')),_0x4afe40['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x12c96c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3b922f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14afe4=this['editor']['plugins']['get']('TableUtils'),_0x35f75c=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x41bbd3({showActiveMarker:_0x3b5b3c=!0x0,setDataAttribute:_0x35881c=!0x0}={}){return(_0x1ddd1a,_0x3d67c3,_0x5122d8)=>{const {type:_0x195927,id:_0x3b55e8}=_0x3b922f['_splitMarkerName'](_0x3d67c3['markerName']),_0x2ad0ba=_0x3b922f['getSuggestion'](_0x3b55e8),_0x27f797=_0x2ad0ba['data'];if('formatBlock'!=_0x2ad0ba['type']||!_0x27f797||'setTableColumnHeader'!=_0x27f797['commandName'])return;if(_0x3d67c3['item'])return void _0x1ddd1a['stop']();if(!_0x5122d8['consumable']['consume'](_0x3d67c3['markerRange'],_0x1ddd1a['name']))return;const _0x64cbbc=_0x3d67c3['markerRange']['start']['nodeAfter'],_0x1b5bc1=_0x3d67c3['markerRange']['end']['nodeBefore'],_0x9a92d6=_0x64cbbc['parent']['parent'],{column:_0x4712da}=_0x14afe4['getCellLocation'](_0x64cbbc),{column:_0x59d62e}=_0x14afe4['getCellLocation'](_0x1b5bc1);for(let _0x1bc555=_0x4712da;_0x1bc555<=_0x59d62e;_0x1bc555++){const _0x4878df=_0x14afe4['createTableWalker'](_0x9a92d6,{'column':_0x1bc555,'includeAllSlots':!0x1});for(const _0x11e988 of _0x4878df){const _0x424eb2=_0x11e988['cell'],_0x386b2b=_0x5122d8['mapper']['toViewElement'](_0x424eb2);_0x5122d8['writer']['addClass']('ck-suggestion-marker-'+_0x195927,_0x386b2b),_0x35881c&&_0x5122d8['writer']['setAttribute']('data-suggestion',_0x3b55e8,_0x386b2b),_0x5122d8['mapper']['bindElementToMarker'](_0x386b2b,_0x3d67c3['markerName']),_0x3b5b3c&&(_0x3b922f['activeMarkers']['includes'](_0x3d67c3['markerName'])?_0x5122d8['writer']['addClass']('ck-suggestion-marker--active',_0x386b2b):_0x5122d8['writer']['removeClass']('ck-suggestion-marker--active',_0x386b2b));}}};}_0x3b922f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x35f75c),_0x3b922f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x35f75c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x41bbd3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x559289,_0x35e2cc,_0x57b0ed)=>{_0x57b0ed['options']['showSuggestionHighlights']&&_0x41bbd3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x559289,_0x35e2cc,_0x57b0ed);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x581b8d,_0x3990b6,_0x277162)=>{const {type:_0x408024,id:_0xfd2853}=_0x3b922f['_splitMarkerName'](_0x3990b6['markerName']),_0x2a90db=_0x3b922f['getSuggestion'](_0xfd2853),_0x549eae=_0x2a90db['data'];if('formatBlock'!=_0x2a90db['type']||!_0x549eae||'setTableColumnHeader'!=_0x549eae['commandName'])return;const _0x29ba88=_0x277162['mapper']['markerNameToElements'](_0x3990b6['markerName']);if(_0x29ba88){for(const _0x34ca8c of _0x29ba88)_0x277162['writer']['removeClass']('ck-suggestion-marker-'+_0x408024,_0x34ca8c),_0x277162['writer']['removeClass']('ck-suggestion-marker--active',_0x34ca8c),_0x277162['writer']['removeAttribute']('data-suggestion',_0x34ca8c),_0x277162['mapper']['unbindElementFromMarkerName'](_0x34ca8c,_0x3990b6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x144959=this['editor'],_0x5e794e=_0x144959['locale'];function _0x3640a9(_0x3304c5){return{'type':'format','content':o(_0x5e794e,'*Format:*\x20%0',_0x3304c5)};}_0x144959['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59f47e=>{if('formatBlock'!=_0x59f47e['type'])return;const {data:_0x181816}=_0x59f47e;if(_0x181816){if('setTableRowHeader'==_0x181816['commandName']){const _0x51a658=_0x181816['commandParams'][0x0]['forceValue'];return _0x3640a9(o(_0x5e794e,_0x51a658?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x181816['commandName']){const _0x44634f=_0x181816['commandParams'][0x0]['forceValue'];return _0x3640a9(o(_0x5e794e,_0x44634f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x52a075{['afterInit'](){const _0x176379=this['editor'],_0x23985a=_0x176379['locale'],_0xccefb1=_0x176379['plugins']['get']('TrackChangesEditing');function _0x15a3c1(_0x23bb18){return{'type':'format','content':''+o(_0x23985a,'*Set\x20table\x20type:*\x20%0',_0x23bb18)};}_0x176379['plugins']['has']('TableLayout')&&(_0xccefb1['enableCommand']('insertTableLayout'),_0xccefb1['enableDefaultAttributesIntegration']('tableType'),_0xccefb1['registerBlockAttribute']('tableType'),_0xccefb1['descriptionFactory']['registerElementLabel'](_0x35036a=>_0x35036a['is']('element','table')&&'layout'===_0x35036a['getAttribute']('tableType'),_0x3449b0=>o(_0x23985a,'ELEMENT_LAYOUT_TABLE',_0x3449b0)),_0xccefb1['descriptionFactory']['registerDescriptionCallback'](_0x378ff5=>{const {data:_0x386a92}=_0x378ff5;if(_0x386a92&&'tableType'==_0x386a92['key'])switch(_0x386a92['newValue']){case'layout':return _0x15a3c1(o(_0x23985a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x15a3c1(o(_0x23985a,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x561caf=>[_0x561caf,null]));class Nt extends _0x52a075{static get['requires'](){return[At];}['afterInit'](){const _0x54f40b=this['editor'];if(!_0x54f40b['plugins']['has']('TableClipboard'))return;const _0xcb902=_0x54f40b['plugins']['get']('TrackChangesEditing'),_0x4a93dd=_0x54f40b['plugins']['get']('TableUtils'),_0xbb8882=_0x54f40b['plugins']['get'](At),_0x1a6899=_0x54f40b['plugins']['get']('TableClipboard'),_0x16dc4d=_0x54f40b['plugins']['get']('TableSelection'),_0x794b3e=_0x54f40b['plugins']['get'](_0x5cce79);_0xbb8882['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x54f40b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x54f40b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x386426=null,_0x284e75=!0x1;_0x794b3e['on']('contentInsertion',(_0x12534b,_0x49567f)=>{_0x284e75='paste'===_0x49567f['method'];}),_0x54f40b['model']['on']('insertContent',(_0x2109bc,_0x3d2dee)=>{if(!_0x284e75&&null===_0x16dc4d['getSelectedTableCells']())return;const [_0x2cd09d,_0x27168b]=_0x3d2dee,_0x43119d=_0x3d2dee[_0x3d2dee['length']-0x1];_0x43119d&&_0x43119d['forceDefaultExecution']||_0xcb902['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x488bfb,_0x2dbcc1,_0x3167b9,_0x55c86b,_0x2615ca){if(_0x2dbcc1&&!_0x2dbcc1['is']('documentSelection'))return!0x1;const _0x3fa300=_0x2615ca['getTableIfOnlyTableInContent'](_0x488bfb,_0x3167b9);if(!_0x3fa300||!Ue(_0x3fa300,void 0x0,_0x55c86b))return!0x1;const _0x385b0e=_0x55c86b['getSelectionAffectedTableCells'](_0x3167b9['document']['selection']);if(!_0x385b0e['length'])return!0x1;const _0x12b5d1=_0x385b0e[0x0]['findAncestor']('table'),_0x3e1805=_0x55c86b['getRowIndexes'](_0x385b0e),_0x556404=_0x55c86b['getColumnIndexes'](_0x385b0e),_0x2d0bec={'startRow':_0x3e1805['first'],'endRow':_0x3e1805['last'],'startColumn':_0x556404['first'],'endColumn':_0x556404['last']};return 0x1==_0x385b0e['length']&&(_0x2d0bec['endRow']+=_0x55c86b['getRows'](_0x3fa300)-0x1,_0x2d0bec['endColumn']+=_0x55c86b['getColumns'](_0x3fa300)-0x1),Ue(_0x12b5d1,_0x2d0bec,_0x55c86b);}(_0x2cd09d,_0x27168b,_0x54f40b['model'],_0x4a93dd,_0x1a6899)&&(_0x2109bc['stop'](),_0x386426={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x54f40b['model']['change'](()=>{_0x54f40b['model']['insertContent'](_0x3d2dee[0x0],_0x3d2dee[0x1],_0x3d2dee[0x2],{'forceDefaultExecution':!0x0});const _0x1b6acb=_0x2c2b9e(),{rowInsertionRanges:_0x1c42d2,columnInsertionRanges:_0x4bb67d,insertionRanges:_0x4c8e98,deletionRanges:_0x108466,cells:_0x11a942}=_0x386426;_0x1c42d2['length']&&_0xcb902['markMultiRangeInsertion'](_0x1c42d2,'tablePasteRow',{'tablePasteChainId':_0x1b6acb}),_0x4bb67d['length']&&_0xcb902['markMultiRangeInsertion'](_0x4bb67d,'tablePasteColumn',{'tablePasteChainId':_0x1b6acb}),_0x4c8e98['length']&&(_0xcb902['markMultiRangeInsertion'](_0x4c8e98,'tablePaste',{'tablePasteChainId':_0x1b6acb,'skipNestingCheck':!0x0}),_0x4c8e98['forEach'](_0x57cfe5=>_0x57cfe5['detach']?.())),_0x108466['length']&&(_0xcb902['markMultiRangeDeletion'](_0x108466,'tablePaste',{'tablePasteChainId':_0x1b6acb,'skipNestingCheck':!0x0}),_0x108466['forEach'](_0x32257f=>_0x32257f['detach']?.()));const _0x463c27=_0xcb902['markMultiRangeBlockFormat'](_0x11a942['map'](({element:_0x2f71a0})=>_0x2f71a0),{'formatGroupId':_0x2c2b9e()},[],'tablePasteCell',{'tablePasteChainId':_0x1b6acb});if(_0x463c27){const _0x3628d4=_0x463c27['getMarkers'](),_0x1bd9af=[];for(const {element:_0x4c316d,attributes:_0x2c078e}of _0x11a942){if(!_0x2c078e)continue;const _0x15e971=_0x54f40b['model']['createRangeOn'](_0x4c316d),_0x1a81d2=_0x3628d4['find'](_0x515400=>_0x515400['getRange']()['isEqual'](_0x15e971));_0x1a81d2&&_0x1bd9af['push']([_0x1a81d2['name'],_0x2c078e]);}_0x1bd9af['length']&&_0x463c27['setAttribute']('markerAttributes',Object['fromEntries'](_0x1bd9af));}_0x386426=null;}));},{'priority':_0x2c1f05['high']+0xa}),_0x794b3e['on']('contentInsertion',()=>{_0x284e75=!0x1;},{'priority':'lowest'}),_0x54f40b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x55dd0c,_0xb24d85)=>{const [_0x2e5ea2,_0x5b70a3,,_0x1e26b1]=_0xb24d85;if(!_0x386426)return;_0x55dd0c['stop']();const _0x50901b=_0x2e5ea2['cell'],_0x311880=_0x5b70a3,_0x4ff393=Oe(_0x50901b),_0x22a916=Oe(_0x311880);_0x55dd0c['return']=_0x50901b;let _0x2b778b=null,_0x5d5e2e=null;if(_0x22a916||_0x4ff393){if(_0x4ff393&&!_0x22a916){_0x1e26b1['remove'](_0x50901b['getChild'](0x0));for(const _0xc97848 of Array['from'](_0x311880['getChildren']()))_0x1e26b1['insert'](_0xc97848,_0x50901b,'end');const _0x5ce6c9=_0x386426['rowInsertionIndexes']['includes'](_0x2e5ea2['row']),_0x145a12=_0x386426['columnInsertionIndexes']['includes'](_0x2e5ea2['column']);_0x5ce6c9||_0x145a12||(_0x2b778b=_0x943391['fromRange'](_0x1e26b1['createRangeIn'](_0x50901b)));}else _0x22a916&&!_0x4ff393&&(_0x5d5e2e=_0x1e26b1['createRangeIn'](_0x50901b));}else{const _0x50ccb7=_0x1e26b1['createElement']('tableCellSuggestion'),_0x53a632=_0x1e26b1['createElement']('tableCellSuggestion');_0x1e26b1['wrap'](_0x1e26b1['createRangeIn'](_0x50901b),_0x53a632),_0x1e26b1['insert'](_0x50ccb7,_0x50901b,0x0);for(const _0x3400ea of Array['from'](_0x311880['getChildren']()))_0x1e26b1['insert'](_0x3400ea,_0x50ccb7,'end');_0x2b778b=_0x943391['fromRange'](_0x1e26b1['createRangeOn'](_0x50ccb7)),_0x5d5e2e=_0x943391['fromRange'](_0x1e26b1['createRangeOn'](_0x53a632));}const _0x234ab2=Array['from'](_0x311880['getAttributes']())['filter'](([_0x422c84])=>Be['includes'](_0x422c84));_0x386426['cells']['push']({'element':_0x50901b,'attributes':_0x234ab2['length']?Object['fromEntries'](_0x234ab2):null}),_0x2b778b&&_0x386426['insertionRanges']['push'](_0x2b778b),_0x5d5e2e&&_0x386426['deletionRanges']['push'](_0x5d5e2e);},{'priority':'high'}),_0x4a93dd['on']('insertColumns',(_0x500e1c,_0x51527d)=>{const [_0x8bc6bf,_0x3f342d={}]=_0x51527d;if(!_0x386426)return;const _0x1c12a1=_0x3f342d['at']||0x0,_0xa0745e=_0x3f342d['columns']||0x1;_0x386426['columnInsertionIndexes']=new Array(_0xa0745e)['fill'](_0x1c12a1)['map']((_0x46a9c3,_0x5b0366)=>_0x46a9c3+_0x5b0366);for(const {cell:_0x549c1e}of _0x4a93dd['createTableWalker'](_0x8bc6bf,{'startColumn':_0x1c12a1,'endColumn':_0x1c12a1+_0xa0745e-0x1}))_0x386426['columnInsertionRanges']['push'](_0x54f40b['model']['createRangeOn'](_0x549c1e));},{'priority':'low'}),_0x4a93dd['on']('insertRows',(_0x59d3c8,_0xfaa2b3)=>{const [_0x155115,_0x276709={}]=_0xfaa2b3;if(!_0x386426)return;const _0x490d91=_0x276709['at']||0x0,_0x5b8df1=_0x276709['rows']||0x1;_0x386426['rowInsertionIndexes']=new Array(_0x5b8df1)['fill'](_0x490d91)['map']((_0xa5cfdf,_0x2a5ca9)=>_0xa5cfdf+_0x2a5ca9);for(const {cell:_0x40b74e}of _0x4a93dd['createTableWalker'](_0x155115,{'startRow':_0x490d91,'endRow':_0x490d91+_0x5b8df1-0x1}))_0x386426['rowInsertionRanges']['push'](_0x54f40b['model']['createRangeOn'](_0x40b74e));},{'priority':'low'}),_0xcb902['descriptionFactory']['registerDescriptionCallback'](_0x1ed29c=>{if(_0x1ed29c['subType']&&_0x1ed29c['subType']['startsWith']('tablePaste'))return _0x1ed29c['previous']?{}:{'type':'insertion','content':o(_0x54f40b['locale'],'*Replace\x20table\x20cells*')};});const _0x30c47c=()=>!0x1;for(const _0x1df0eb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xcb902['_suggestionFactory']['registerCustomCallback']('insertion',_0x1df0eb,'join',_0x30c47c),_0xcb902['_suggestionFactory']['registerCustomCallback']('deletion',_0x1df0eb,'join',_0x30c47c),_0xcb902['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1df0eb,'join',_0x30c47c);_0xcb902['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x30c47c),_0xcb902['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x51a307,_0x5cea32,_0x56ba9d)=>{const _0x214fd3=_0x51a307['map'](_0x413691=>_0x413691['getContainedElement']())['filter'](_0x51cab2=>_0x51cab2),_0x2e7c88=new Map(_0x214fd3['map'](_0x323f92=>[_0x323f92,null]));if(_0x386426){for(const {element:_0x3aacd8,attributes:_0x3d4c27}of _0x386426['cells'])_0x3d4c27&&_0x2e7c88['set'](_0x3aacd8,_0x3d4c27);}else{if(_0x56ba9d&&_0x56ba9d['markerAttributes'])for(const [_0x3e1b2d,_0x33af15]of Object['entries'](_0x56ba9d['markerAttributes'])){const _0x1ebfbf=_0x54f40b['model']['markers']['get'](_0x3e1b2d),_0x276fe9=_0x1ebfbf?_0x1ebfbf['getRange']()['getContainedElement']():null;_0x276fe9&&_0x2e7c88['set'](_0x276fe9,_0x33af15);}}_0x54f40b['model']['change'](_0x57d9dd=>{for(const [_0xb35d72,_0x397c28]of _0x2e7c88)_0x57d9dd['setAttributes']({...xe,..._0x397c28},_0xb35d72);});});const _0x713768=(_0x435a89,_0x3fced5)=>{_0xcb902['_suggestionFactory']['registerCustomCallback'](_0x435a89,'tablePaste',_0x3fced5,(_0x184eae,_0x2a440f,_0x147c0e)=>{_0x54f40b['model']['change'](_0x3bdafb=>{const _0x501f76=[];for(const _0x22ca45 of _0x184eae){const _0xa25daa=_0x22ca45['start']['nodeAfter'];_0xa25daa['is']('element','tableCellSuggestion')&&_0x501f76['push'](_0xa25daa);}_0xcb902['_suggestionFactory']['getSuggestionCallback'](_0x435a89,null,_0x3fced5)(_0x184eae,_0x2a440f,_0x147c0e);for(const _0x3eccdd of _0x501f76)'$graveyard'!=_0x3eccdd['root']['rootName']&&_0x3bdafb['unwrap'](_0x3eccdd);});});};_0x713768('insertion','accept'),_0x713768('insertion','discard'),_0x713768('deletion','accept'),_0x713768('deletion','discard'),_0xcb902['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3e642f=>{const _0x319e88=_0x3e642f['map'](_0x1fca30=>_0x1fca30['getContainedElement']()),_0xc36b22=_0x319e88[0x0]['findAncestor']('table'),{minRow:_0x3e67e8,maxRow:_0x1d71f0}=_0xbb8882['_getCoordsForCells'](_0x319e88);_0x4a93dd['removeRows'](_0xc36b22,{'at':_0x3e67e8,'rows':_0x1d71f0-_0x3e67e8+0x1});}),_0xcb902['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4989ce=>{const _0x2ec8f9=_0x4989ce['map'](_0x2ac5f5=>_0x2ac5f5['getContainedElement']()),_0x28bde9=_0x2ec8f9[0x0]['findAncestor']('table'),{minColumn:_0x8cf24d,maxColumn:_0x5f04bb}=_0xbb8882['_getCoordsForCells'](_0x2ec8f9);_0x4a93dd['removeColumns'](_0x28bde9,{'at':_0x8cf24d,'columns':_0x5f04bb-_0x8cf24d+0x1});});const _0x4ae29a=(_0x117494,_0x3e7251)=>{if(!_0x3e7251['subType']||!_0x3e7251['subType']['startsWith']('tablePaste'))return;const _0x47c504=_0x3e7251['attributes']['tablePasteChainId'],_0x371f97=_0xcb902['getSuggestions']()['filter'](_0x2ad27d=>_0x2ad27d['isInContent']&&_0x2ad27d['attributes']&&_0x2ad27d['attributes']['tablePasteChainId']==_0x47c504);_0x371f97['length']&&_0x3e7251['getAllAdjacentSuggestions']()['length']!=_0x371f97['length']&&_0x371f97['reduce']((_0x56cc9c,_0x1784e2)=>(_0x56cc9c['next']=_0x1784e2,_0x1784e2['previous']=_0x56cc9c,_0x1784e2));};function _0x152574(_0x3a4f9b,_0x7f7f14=!0x0){const {id:_0x58bb4a,authorId:_0xdc3e69}=_0xcb902['_splitMarkerName'](_0x3a4f9b['markerName']),_0x2a0988=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1caae3=_0xcb902['activeMarkers']['includes'](_0x3a4f9b['markerName']);return _0x1caae3&&_0x2a0988['push']('ck-suggestion-marker--active'),{'classes':_0x2a0988,'attributes':{'data-suggestion':_0x58bb4a,'data-author-id':_0xdc3e69},'priority':_0x1caae3&&_0x7f7f14?0xbc2:0xbb8};}_0xcb902['on']('suggestionLoaded',_0x4ae29a,{'priority':'high'}),_0xcb902['on']('suggestionUnloaded',_0x4ae29a,{'priority':'high'}),_0x54f40b['model']['document']['registerPostFixer'](()=>{let _0x332ff2=!0x1;const _0x1d0797=Array['from'](_0x54f40b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ec6dd,data:_0x1a8470}of _0x1d0797){const {group:_0x97295c,type:_0x431716,id:_0x11ce9f}=_0xcb902['_splitMarkerName'](_0x4ec6dd);if('suggestion'!=_0x97295c||'deletion'!=_0x431716||_0x1a8470['oldRange'])continue;if(!_0xcb902['hasSuggestion'](_0x11ce9f))continue;const _0x10337c=_0xcb902['getSuggestion'](_0x11ce9f)['getRanges'](),_0x4cca57=_0x54f40b['plugins']['get']('Users')['me'];for(const _0xf261d0 of _0xcb902['getSuggestions']()){if(!_0xf261d0['isInContent']||_0xf261d0['author']!=_0x4cca57)continue;if('formatBlock'!=_0xf261d0['type']||'tablePasteCell'!=_0xf261d0['subType'])continue;if(_0xf261d0['getRanges']()['every'](_0x35c44c=>_0x10337c['some'](_0x51cc24=>_0x51cc24['containsRange'](_0x35c44c,!0x0)))){for(const _0x4c4204 of _0xf261d0['getAllAdjacentSuggestions']())_0x4c4204['isInContent']&&(_0x4c4204['discard'](),_0x332ff2=!0x0);}}}return _0x332ff2;}),_0x54f40b['model']['document']['registerPostFixer'](_0x4d2dd7=>{const _0xdf888f=_0x54f40b['commands']['get']('redo');if(!_0xdf888f||!_0xdf888f['_createdBatches']['has'](_0x4d2dd7['batch']))return!0x1;let _0x469858=!0x1;const _0x2fb295=_0x54f40b['plugins']['get']('Users')['me'],_0x6a272a=_0x54f40b['model']['document']['differ']['getChanges'](),_0x3807ed=Array['from'](_0x54f40b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3a9910,data:_0x271016})=>{const {group:_0x58d5bb,subType:_0x4e0b6b,authorId:_0x537be7}=_0xcb902['_splitMarkerName'](_0x3a9910);return'suggestion'==_0x58d5bb&&'tablePaste'==_0x4e0b6b&&_0x537be7==_0x2fb295['id']&&!_0x271016['oldRange'];});for(const _0x3ef952 of _0x6a272a){if('insert'!=_0x3ef952['type']||'tableCellSuggestion'!=_0x3ef952['name']||0x1!=_0x3ef952['length'])continue;const _0x53848b=_0x4d2dd7['createRange'](_0x3ef952['position'],_0x3ef952['position']['getShiftedBy'](0x1));if(!_0x3807ed['find'](({data:_0x345ccd})=>_0x345ccd['newRange']['isEqual'](_0x53848b))){for(const {name:_0x260f6a,data:_0x275406}of _0x3807ed)if(_0x53848b['containsRange'](_0x275406['newRange'])){_0x4d2dd7['updateMarker'](_0x260f6a,{'range':_0x53848b}),_0x469858=!0x0;break;}}}return _0x469858;}),_0x54f40b['model']['document']['registerPostFixer'](_0x159623=>{let _0xe9cd0c=!0x1;const _0x20a61e=_0x54f40b['plugins']['get']('Users')['me'],_0x2a1a9d=_0xcb902['getSuggestions']()['filter'](_0x569085=>_0x569085['isInContent']&&_0x569085['author']==_0x20a61e),_0x5374d6=new Set(),_0x12b327=new Set();for(const _0x3b9c14 of _0x2a1a9d)if('tablePaste'==_0x3b9c14['subType'])for(const _0x95a61 of _0x3b9c14['getMarkers']()){const _0x3c7f3a=_0x95a61['getRange']()['getContainedElement']();if(_0x3c7f3a){if(_0x3c7f3a['is']('element','tableCellSuggestion')&&Oe(_0x3c7f3a)){_0x3b9c14['removeMarker'](_0x95a61['name']),_0x5374d6['add'](_0x3c7f3a),_0xe9cd0c=!0x0;const _0x87679c=_0x3c7f3a['nextSibling'],_0x292568=_0x3c7f3a['previousSibling'],_0x2fbf76=_0x87679c&&_0x87679c['is']('element','tableCellSuggestion'),_0x4aa9af=_0x292568&&_0x292568['is']('element','tableCellSuggestion');_0x2fbf76&&!_0x5374d6['has'](_0x87679c)&&_0x12b327['add'](_0x87679c),_0x4aa9af&&!_0x5374d6['has'](_0x292568)&&_0x12b327['add'](_0x292568);}else _0x3c7f3a['is']('element','paragraph')&&_0x3c7f3a['isEmpty']&&(_0x3b9c14['removeMarker'](_0x95a61['name']),_0xe9cd0c=!0x0);}}else{if('tablePasteCell'==_0x3b9c14['subType']){if(!_0x3b9c14['attributes']||!_0x3b9c14['attributes']['tablePasteChainId'])continue;const _0x363970=_0x3b9c14['attributes']['markerAttributes'];if(_0x363970&&Object['keys'](_0x363970)['length'])continue;const _0x1464a7=_0x3b9c14['attributes']['tablePasteChainId'];let _0x186b06=!0x0,_0x1201d9=!0x0;for(const _0x59133f of _0x2a1a9d)if(_0x59133f['subType']&&_0x59133f['subType']['startsWith']('tablePaste')){if(!_0x59133f['attributes']['tablePasteChainId']){_0x1201d9=!0x1;break;}if(_0x59133f['id']!=_0x3b9c14['id']&&_0x59133f['attributes']['tablePasteChainId']==_0x1464a7){_0x186b06=!0x1;break;}}_0x1201d9&&_0x186b06&&(_0x3b9c14['removeMarkers'](),_0xe9cd0c=!0x0);}}for(const _0x43cfc0 of _0x5374d6)_0x159623['remove'](_0x43cfc0);for(const _0x5ee709 of _0x12b327)_0x159623['unwrap'](_0x5ee709);return _0xe9cd0c;}),_0x54f40b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x25e4fc=>_0x152574(_0x25e4fc),'converterPriority':'high'}),_0x54f40b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x74f971,_0x2da427)=>_0x2da427['options']['showSuggestionHighlights']?_0x152574(_0x74f971,!0x1):null,'converterPriority':'high'});const _0x162b8f=_0x54f40b['editing']['view'];this['listenTo'](_0x162b8f['document'],'clipboardOutput',(_0x15449d,_0x5b0ebe)=>{const _0x25c452=[];for(const _0x148788 of _0x162b8f['createRangeIn'](_0x5b0ebe['content'])['getItems']())_0x148788['is']('element','suggestion-td')&&_0x25c452['push'](_0x148788);_0x162b8f['change'](_0x3cc483=>{for(const _0x6d79b5 of _0x25c452)_0x3cc483['move'](_0x3cc483['createRangeIn'](_0x6d79b5),_0x3cc483['createPositionBefore'](_0x6d79b5)),_0x3cc483['remove'](_0x6d79b5);});});}}function Oe(_0x518b54){if(_0x518b54['isEmpty'])return!0x0;const _0x952a5f=_0x518b54['getChild'](0x0);return _0x952a5f['is']('element','paragraph')&&_0x952a5f['isEmpty'];}function Ue(_0x42972c,_0x58c4ca={},_0x14df9f){for(const {isAnchor:_0x4ee585,cellHeight:_0x70d01a,cellWidth:_0x3d88e5}of _0x14df9f['createTableWalker'](_0x42972c,{'includeAllSlots':!0x0,..._0x58c4ca}))if(!_0x4ee585||0x1!=_0x70d01a||0x1!=_0x3d88e5)return!0x1;return!0x0;}class Dt extends _0x52a075{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4294ea=this['editor']['plugins']['get']('TrackChangesEditing');_0x4294ea['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4294ea['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4294ea['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4294ea['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4294ea['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4294ea['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4b10d6,_0x41178f){const _0x4f8cac=this['editor']['plugins']['get']('TrackChangesEditing'),_0xffc794=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x26bbc8=_0x41178f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5f4065=_0xffc794['getColumnGroupElement'](_0x26bbc8);let _0x53cb9f=_0x5f4065?_0xffc794['getTableColumnsWidths'](_0x5f4065):null,_0x48cbc0=_0x26bbc8['getAttribute']('tableWidth')||null;const _0x3ec4a8=_0x41178f['tableWidth']||_0x48cbc0,_0xc8e8d3=_0x41178f['columnWidths']||_0x53cb9f,_0x41adf4=this['editor']['plugins']['get']('Users')['me'];for(const _0x1f6cc9 of _0x4f8cac['getSuggestions']()){const _0x12f13b=_0x1f6cc9['getContainedElement']();if('resizeTable'===_0x1f6cc9['subType']&&_0x12f13b===_0x26bbc8){_0x1f6cc9['author']!==_0x41adf4&&_0x1f6cc9['discard']();const _0x13705d=_0x1f6cc9['data']['commandParams'];_0x48cbc0=_0x13705d[0x0]['tableWidth'],_0x53cb9f=_0x13705d[0x0]['columnWidths'];break;}}_0x4b10d6({'table':_0x26bbc8,'tableWidth':_0x3ec4a8,'columnWidths':_0xc8e8d3}),_0x4f8cac['markBlockFormat'](_0x26bbc8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x48cbc0,'columnWidths':_0x53cb9f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x74c87d){if('formatBlock'!=_0x74c87d['type']&&'formatInline'!=_0x74c87d['type'])return;const {data:_0x2e28f6}=_0x74c87d;if(_0x2e28f6&&'resizeTable'===_0x2e28f6['formatGroupId']){const _0x2a87d8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2a87d8)};}}}class Mt extends _0x52a075{['afterInit'](){const _0x25c0fa=this['editor'];_0x25c0fa['plugins']['has']('Template')&&_0x25c0fa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x52a075{['afterInit'](){const _0x269750=this['editor'];if(!_0x269750['commands']['get']('insertTableOfContents'))return;_0x269750['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x35da23=_0x269750['plugins']['get']('TrackChangesEditing'),_0x2a651a=_0x269750['locale'];_0x35da23['descriptionFactory']['registerElementLabel']('tableOfContents',_0x37817c=>o(_0x2a651a,'ELEMENT_TABLE_OF_CONTENTS',_0x37817c));}}class Bt extends _0x52a075{['afterInit'](){const _0xa25a7f=this['editor'];if(!_0xa25a7f['plugins']['has']('Title'))return;const _0x18185d=_0xa25a7f['plugins']['get']('TrackChangesEditing');_0x18185d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xa25a7f['locale'],'ELEMENT_TITLE')),_0xa25a7f['model']['document']['registerPostFixer'](_0x4f4803=>{let _0x2cd54c=!0x1;const _0x1a3443=Array['from'](_0xa25a7f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28b54d,data:_0x24391e}of _0x1a3443){const {group:_0x43f039}=_0x18185d['_splitMarkerName'](_0x28b54d);if('suggestion'!==_0x43f039||!_0x24391e['newRange'])continue;const _0x30b670=_0x24391e['newRange'],_0x398a0f=_0x30b670['end']['nodeBefore'];if(!_0x398a0f||!_0x398a0f['is']('element','title-content'))continue;if(!_0x30b670['start']['isTouching'](_0x30b670['end']))continue;const _0x17df69=_0xa25a7f['model']['schema']['getNearestSelectionRange'](_0x30b670['end'],'forward');if(_0x17df69&&_0x17df69['isCollapsed']){const _0x449a52=_0x4f4803['createRange'](_0x30b670['start'],_0x17df69['start']);_0x449a52['isEqual'](_0x30b670)||(_0x4f4803['updateMarker'](_0x28b54d,{'range':_0x449a52}),_0x2cd54c=!0x0);}_0x2cd54c||(_0x4f4803['removeMarker'](_0x28b54d),_0x2cd54c=!0x0);}return _0x2cd54c;});}}class Tt extends _0x52a075{['afterInit'](){const _0x1a223f=this['editor'],_0x2ffac4=_0x1a223f['plugins']['get']('TrackChangesEditing');_0x1a223f['plugins']['has']('Uploadcare')&&(_0x2ffac4['enableCommand']('uploadcare'),_0x1a223f['plugins']['has']('UploadcareImageEdit')&&(_0x2ffac4['enableCommand']('uploadcareImageEdit'),_0x2ffac4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2ffac4['registerBlockAttribute']('uploadcareImageId'),_0x2ffac4['descriptionFactory']['registerDescriptionCallback'](_0xd02c=>{if('attribute'!=_0xd02c['type'])return;const {data:_0x369b3a}=_0xd02c;return _0x369b3a&&'uploadcareImageId'==_0x369b3a['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x52a075{['afterInit'](){const _0x2341e3=this['editor'],_0x392ec0=_0x2341e3['plugins']['get']('TrackChangesEditing');_0x2341e3['plugins']['has']('UndoEditing')&&(_0x392ec0['enableCommand']('undo'),_0x392ec0['enableCommand']('redo'));}}class Ot extends _0x52a075{static get['requires'](){return[At];}['afterInit'](){const _0x211302=this['editor'];if(!_0x211302['plugins']['has']('TableCaptionEditing'))return;_0x211302['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x52a075{['tableProperties'];['tableCellProperties'];constructor(_0x5185cf){super(_0x5185cf),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x3c9466=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1ec045 of this['tableProperties'])_0x3c9466['enableCommand'](_0x1ec045,(_0x3e06e4,_0x290cd9)=>{const _0x167d7a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1ec045,[_0x167d7a],this['tableProperties'],'tableProperties',_0x3e06e4,_0x290cd9);});_0x3c9466['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3c9466['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c9466['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x40bf21,_0x640c18)=>this['handleDiscardAction'](this['tableProperties'],_0x40bf21,_0x640c18)),_0x3c9466['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x257ab0 of this['tableCellProperties'])_0x3c9466['enableCommand'](_0x257ab0,(_0x9cdcff,_0xda670b)=>{const _0x540d2c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x257ab0,_0x540d2c,this['tableCellProperties'],'tableCellProperties',_0x9cdcff,_0xda670b);});_0x3c9466['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3c9466['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c9466['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x25b6ed,_0x2801ec)=>this['handleDiscardAction'](this['tableCellProperties'],_0x25b6ed,_0x2801ec)),_0x3c9466['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3c9466['descriptionFactory']['registerDescriptionCallback'](_0x4483b1=>this['handleSuggestionDescription'](_0x4483b1));}['_handlePropertyChange'](_0x2a23e8,_0xfe82c1,_0xf688d5,_0x1b8b66,_0x41eb18,_0x509dd8){const _0x4c8a18=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x509dd8['batch'],()=>{for(const _0x44c0ee of _0xfe82c1){if(this['_getSuggestion'](_0x44c0ee,_0x1b8b66))_0x41eb18(_0x509dd8);else{const _0x3fe650={};for(const _0x38585a of _0xf688d5){const _0x51df17=_0x44c0ee['getAttribute'](_0x38585a);void 0x0!==_0x51df17&&(_0x3fe650[_0x38585a]=_0x51df17);}_0x41eb18(_0x509dd8),_0x4c8a18['markBlockFormat'](_0x44c0ee,{'commandParams':[_0x3fe650]},[],_0x1b8b66);}}});}['handleDiscardAction'](_0x11f222,_0x134037,_0x35e1a7){const _0x4bebff=_0x134037[0x0]['start']['nodeAfter'],_0x6739d6=_0x35e1a7['commandParams'][0x0];this['editor']['model']['change'](_0x56db39=>{for(const _0x2964c0 of _0x11f222)void 0x0!==_0x6739d6[_0x2964c0]?_0x56db39['setAttribute'](_0x2964c0,_0x6739d6[_0x2964c0],_0x4bebff):_0x56db39['removeAttribute'](_0x2964c0,_0x4bebff);});}['handleSuggestionDescription'](_0x1539ee){if(_0x1539ee['data'])switch(_0x1539ee['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'](_0x46b014,_0x3646c4){const _0x481f28=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3996f7 of _0x481f28['getSuggestions']({'skipNotAttached':!0x0})){const _0x458cb0=_0x3996f7['getContainedElement']();if(_0x3996f7['subType']===_0x3646c4&&_0x458cb0===_0x46b014)return _0x3996f7;}return null;}}class Rt extends _0x52a075{['afterInit'](){const _0xa8110f=this['editor'];if(!_0xa8110f['plugins']['has']('LineHeight'))return;const _0x134110=_0xa8110f['plugins']['get']('TrackChangesEditing'),_0x499e2f=_0xa8110f['locale'];_0x134110['enableDefaultAttributesIntegration']('lineHeight'),_0x134110['registerBlockAttribute']('lineHeight'),_0x134110['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x499e2f,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x52a075{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x579180,_0x3d0e7d,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3353cb){super(_0x3353cb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4a75cc,_0x224807,_0x4e9ebe,_0x2430e3)=>{this['_model']['change'](()=>{for(const _0x5a691c of[..._0x2430e3,..._0x4e9ebe])this['_model']['markers']['has'](_0x5a691c)&&_0x3353cb['editing']['reconvertMarker'](_0x5a691c);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3353cb['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x3353cb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3353cb['config']['get']('trackChanges.trackFormatChanges'),_0x3353cb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3353cb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x3353cb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4b00ad=this['editor'],_0x3be6f3=(_0x2ad89b,_0x31e816)=>{if('attribute'!=_0x2ad89b)return'ck-suggestion-marker-'+_0x2ad89b;const _0x20f68b=_0x31e816['split']('|')[0x0];return this['_isBlockAttribute'](_0x20f68b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4b00ad['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3bb733=>{const {id:_0x3e17aa,authorId:_0x23207b,type:_0x41e28d,subType:_0xe2ba82}=this['_splitMarkerName'](_0x3bb733['markerName']),_0x4abe35=['ck-suggestion-marker',_0x3be6f3(_0x41e28d,_0xe2ba82)];let _0x318f83=0xbb8;return this['activeMarkers']['includes'](_0x3bb733['markerName'])&&(_0x4abe35['push']('ck-suggestion-marker--active'),_0x318f83=0xbc2),'deletion'==_0x41e28d&&(_0x318f83+=0x5),{'classes':_0x4abe35,'attributes':{'data-suggestion':_0x3e17aa,'data-author-id':_0x23207b},'priority':_0x318f83};}}),_0x4b00ad['conversion']['for']('dataDowncast')['add'](_0x43d4b7=>{_0x43d4b7['on']('addMarker:suggestion',(_0x2c1555,_0x4c9495,_0x4696ef)=>{if(!_0x4696ef['options']['showSuggestionHighlights'])return;const _0x4f43aa=_0x4c9495['item'];if(!_0x4f43aa)return;const _0x5d212b=_0x4696ef['mapper']['toViewElement'](_0x4f43aa);_0x4b00ad['model']['schema']['isObject'](_0x4f43aa)&&_0x5d212b&&!_0x5d212b['getCustomProperty']('widget')&&_0x5d212b['is']('containerElement')&&_0x16f1aa(_0x5d212b,_0x4696ef['writer']);},{'priority':'high'});}),_0x4b00ad['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x557d71,_0x2d7924)=>{if(!_0x2d7924['options']['showSuggestionHighlights'])return null;const {id:_0x331e2e,authorId:_0x517005,type:_0x1f7151,subType:_0x494182}=this['_splitMarkerName'](_0x557d71['markerName']);return{'classes':['ck-suggestion-marker',_0x3be6f3(_0x1f7151,_0x494182)],'priority':0xbb8,'attributes':{'data-suggestion':_0x331e2e,'data-author-id':_0x517005}};}});const _0x331c03=({showActiveMarkers:_0x17c8b9=!0x0,isAttributeSuggestion:_0x38ec4e=!0x1}={})=>(_0x119f24,_0xd8cc48,_0x5a8885)=>{if(!_0xd8cc48['item'])return;const {id:_0x3c3f87,authorId:_0x390b1b}=this['_splitMarkerName'](_0xd8cc48['markerName']);if(_0x38ec4e){const _0x445365=this['_suggestions']['get'](_0x3c3f87),_0x53207e=this['_getAttributeKey'](_0x445365);if(!this['_isBlockAttribute'](_0x53207e))return;}if(_0xd8cc48['item']['is']('selection'))return void _0x5a8885['consumable']['consume'](_0xd8cc48['item'],_0x119f24['name']);const _0x2c6d0b=_0x5a8885['mapper']['toViewElement'](_0xd8cc48['item']);if(_0xd8cc48['item']['is']('element')&&_0x4b00ad['model']['schema']['isBlock'](_0xd8cc48['item'])&&!_0x2c6d0b['getCustomProperty']('addHighlight')){_0x5a8885['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2c6d0b),_0x5a8885['writer']['setAttribute']('data-suggestion',_0x3c3f87,_0x2c6d0b),_0x5a8885['writer']['setAttribute']('data-author-id',_0x390b1b,_0x2c6d0b),_0x5a8885['mapper']['bindElementToMarker'](_0x2c6d0b,_0xd8cc48['markerName']),_0x17c8b9&&(this['activeMarkers']['includes'](_0xd8cc48['markerName'])?_0x5a8885['writer']['addClass']('ck-suggestion-marker--active',_0x2c6d0b):_0x5a8885['writer']['removeClass']('ck-suggestion-marker--active',_0x2c6d0b));for(const _0x302d8f of _0x4b00ad['model']['createRangeIn'](_0xd8cc48['item'])['getItems']())_0x5a8885['consumable']['consume'](_0x302d8f,_0x119f24['name']);_0x5a8885['consumable']['consume'](_0xd8cc48['item'],_0x119f24['name']);}};_0x4b00ad['conversion']['for']('dataDowncast')['add'](_0x4dbf88=>{_0x4dbf88['on']('addMarker:suggestion:formatBlock',(_0x3346e3,_0x4d0adb,_0xd4cf2c)=>{_0xd4cf2c['options']['showSuggestionHighlights']&&_0x331c03({'showActiveMarkers':!0x1})(_0x3346e3,_0x4d0adb,_0xd4cf2c);},{'priority':'highest'});}),_0x4b00ad['conversion']['for']('dataDowncast')['add'](_0x9dc07a=>{_0x9dc07a['on']('addMarker:suggestion:attribute',(_0x263e63,_0x35295f,_0x52e5e4)=>{_0x52e5e4['options']['showSuggestionHighlights']&&_0x331c03({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x263e63,_0x35295f,_0x52e5e4);},{'priority':'highest'});}),_0x4b00ad['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4d6e21,_0x2e45e3)=>{if(_0x2e45e3['options']['showSuggestionHighlights']){const {id:_0x2c7cac,authorId:_0x47dd5f}=this['_splitMarkerName'](_0x4d6e21);return _0x4d6e21['includes'](':split')||_0x4d6e21['includes'](':merge')?{'group':'suggestion','name':_0x4d6e21['substr'](0xb),'attributes':{'data-suggestion':_0x2c7cac,'data-author-id':_0x47dd5f}}:null;}return{'group':'suggestion','name':_0x4d6e21['substr'](0xb)};}}),_0x4b00ad['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1264a0,{writer:_0x242b20})=>{let _0x5d45de='suggestion:'+_0x1264a0['getAttribute']('suggestion-type')+':'+_0x1264a0['getAttribute']('id');return _0x1264a0['getAttribute']('marker-count')&&(_0x5d45de+=':'+_0x1264a0['getAttribute']('marker-count')),_0x242b20['createElement']('$marker',{'data-name':_0x5d45de});}}),_0x4b00ad['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4b00ad['conversion']['for']('editingDowncast')['add'](_0x34a09d=>{_0x34a09d['on']('addMarker:suggestion:formatBlock',_0x331c03(),{'priority':'high'});}),_0x4b00ad['conversion']['for']('editingDowncast')['add'](_0x5b2da2=>{_0x5b2da2['on']('addMarker:suggestion:attribute',_0x331c03({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4b00ad['conversion']['for']('editingDowncast')['add'](_0x33a80e=>{_0x33a80e['on']('removeMarker:suggestion:formatBlock',(_0x20dc40,_0x43a85a,_0xde6233)=>{const _0x29d278=_0xde6233['mapper']['markerNameToElements'](_0x43a85a['markerName']);if(_0x29d278){for(const _0x37f894 of _0x29d278)_0x37f894['getCustomProperty']('addHighlight')||(_0xde6233['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x37f894),_0xde6233['writer']['removeAttribute']('data-suggestion',_0x37f894),_0xde6233['writer']['removeAttribute']('data-author-id',_0x37f894),_0xde6233['mapper']['unbindElementFromMarkerName'](_0x37f894,_0x43a85a['markerName']));}},{'priority':'high'});}),_0x4b00ad['conversion']['for']('editingDowncast')['add'](_0x145730=>{_0x145730['on']('removeMarker:suggestion:attribute',(_0xcad920,_0x369a0a,_0xf15a20)=>{const _0x55cf63=_0xf15a20['mapper']['markerNameToElements'](_0x369a0a['markerName']);if(!_0x55cf63)return;const {id:_0x93a87a}=this['_splitMarkerName'](_0x369a0a['markerName']),_0x37e30b=this['_suggestions']['get'](_0x93a87a),_0x105374=this['_getAttributeKey'](_0x37e30b);if(this['_isBlockAttribute'](_0x105374)){for(const _0x4e9f51 of _0x55cf63)_0x4e9f51['getCustomProperty']('addHighlight')||(_0xf15a20['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4e9f51),_0xf15a20['writer']['removeAttribute']('data-suggestion',_0x4e9f51),_0xf15a20['writer']['removeAttribute']('data-author-id',_0x4e9f51),_0xf15a20['mapper']['unbindElementFromMarkerName'](_0x4e9f51,_0x369a0a['markerName']));}},{'priority':'high'});}),_0x4b00ad['model']['document']['registerPostFixer'](_0x3fe18f=>{let _0x5be2a7=!0x1;const _0x421243=Array['from'](_0x4b00ad['model']['document']['differ']['getChangedMarkers']()),_0x38850c=new Set();for(const {name:_0xdb5212,data:_0x5dc480}of _0x421243){const {group:_0x7a0178,type:_0x5aed3e,subType:_0x3f4d50,id:_0x176f86}=this['_splitMarkerName'](_0xdb5212);if('suggestion'!==_0x7a0178)continue;const _0x38334a=this['_suggestions']['get'](_0x176f86);if(null!=_0x5dc480['newRange']){'formatInline'==_0x5aed3e&&(_0x5be2a7=_0x5be2a7||Gt(_0x5dc480['newRange'],_0xdb5212,_0x3fe18f,_0x4b00ad['model']['schema']));const _0x21c354='attribute'==_0x5aed3e&&this['_isBlockAttribute'](_0x3f4d50['split']('|')[0x0]);if(_0x5dc480['newRange']['isCollapsed']||'$graveyard'==_0x5dc480['newRange']['root']['rootName']||'formatBlock'==_0x5aed3e&&!Jt(_0x5dc480['newRange'])||_0x21c354&&!Jt(_0x5dc480['newRange'])||'deletion'==_0x5aed3e&&!Kt(_0x5dc480['newRange']))_0x3fe18f['removeMarker'](_0xdb5212),_0x5be2a7=!0x0;else{if(!_0x38334a||!_0x38334a['isInContent'])continue;if(_0x5dc480['newRange']&&_0x5dc480['oldRange']&&_0x5dc480['newRange']['isEqual'](_0x5dc480['oldRange']))continue;_0x38850c['add'](_0x38334a);}}}return _0x38850c['size']>0x0&&(_0x5be2a7=!!this['_joinWithAdjacentSuggestions'](_0x38850c)||_0x5be2a7),_0x5be2a7;}),_0x4b00ad['model']['document']['registerPostFixer'](_0xb91a6d=>{let _0x481029=!0x1;for(const _0x36eed3 of _0x4b00ad['model']['document']['differ']['getChanges']())if('insert'==_0x36eed3['type'])for(const _0x1c02a4 of this['_suggestions']['values']()){if(_0x1c02a4['isMultiRange']||!_0x1c02a4['isInContent'])continue;const _0x37d4b6='formatBlock'==_0x1c02a4['type'],_0x403842=this['_getAttributeKey'](_0x1c02a4),_0x321ff1=_0x403842&&this['_isBlockAttribute'](_0x403842);if(!_0x37d4b6&&!_0x321ff1)continue;const _0x1508fb=_0x1c02a4['getFirstRange']();if(_0x1508fb['start']['parent']!=_0x1508fb['end']['parent']&&!_0x1508fb['end']['isAtEnd']){const _0x40bd88=_0x4b00ad['model']['createPositionAt'](_0x1508fb['start']['nodeAfter'],'end'),_0xf14b2=_0x4b00ad['model']['createRange'](_0x1508fb['start'],_0x40bd88);_0xb91a6d['updateMarker'](_0x1c02a4['getFirstMarker'](),{'range':_0xf14b2}),_0x481029=!0x0;}}return _0x481029;}),_0x4b00ad['model']['document']['registerPostFixer'](_0x1684f4=>this['_processAttributeChanges'](_0x1684f4)),_0x4b00ad['model']['document']['registerPostFixer'](_0x1f3c37=>!_0x1f3c37['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1f3c37)),_0x4b00ad['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4b00ad['model']['document']['on']('change:data',(_0x53db68,_0x473e12)=>{if(!_0x473e12['isLocal']||_0x473e12['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xd0877c=_0x4b00ad['model']['document']['differ']['getChanges']();if(0x0==_0xd0877c['length'])return;const _0x242629=[],_0xaf21da=_0xd0877c['filter'](_0xf80a69=>'attribute'==_0xf80a69['type']),_0x39b9ab=_0xd0877c['filter'](_0x22b2ea=>'insert'==_0x22b2ea['type']&&'$text'!=_0x22b2ea['name']);for(const _0x553102 of _0xaf21da)this['_isRegisteredAttribute'](_0x553102['attributeKey'])&&_0x242629['push']({'key':_0x553102['attributeKey'],'newValue':_0x553102['attributeNewValue'],'oldValue':_0x553102['attributeOldValue'],'range':Ht(_0x553102['range'],_0x4b00ad['model'])});for(const _0x4ec7c8 of _0x39b9ab){if('rename'!=_0x4ec7c8['action']&&'refresh'!=_0x4ec7c8['action'])continue;const _0x222538=qt(_0x4ec7c8['position']['nodeAfter'],_0x4b00ad['model']),_0x287642=_0x4ec7c8['before'];'rename'==_0x4ec7c8['action']&&_0x242629['push']({'key':m,'newValue':_0x4ec7c8['name'],'oldValue':_0x287642['name'],'range':_0x222538});for(const [_0x24a649,_0x2a4482]of _0x287642['attributes']){if(!this['_isRegisteredAttribute'](_0x24a649))continue;const _0x3ea79c=_0x4ec7c8['attributes']['get'](_0x24a649);_0x2a4482!==_0x3ea79c&&_0x242629['push']({'key':_0x24a649,'newValue':_0x3ea79c,'oldValue':_0x2a4482,'range':_0x222538});}for(const [_0x1dff21,_0x1f0b16]of _0x4ec7c8['attributes'])this['_isRegisteredAttribute'](_0x1dff21)&&(_0x287642['attributes']['has'](_0x1dff21)||_0x242629['push']({'key':_0x1dff21,'newValue':_0x1f0b16,'oldValue':null,'range':_0x222538}));}0x0!=_0x242629['length']&&_0x4b00ad['model']['enqueueChange'](_0x473e12,_0x3f0704=>{const _0x1e514f=_0x2c2b9e();for(const {range:_0x8a9249,key:_0x63f7a7,oldValue:_0x3f36a8,newValue:_0x168193}of _0x242629)this['markAttributeChange'](_0x8a9249,_0x63f7a7,_0x3f36a8,_0x168193,{'groupId':_0x1e514f});this['_reduceExistingSuggestions'](_0x3f0704,_0x242629);});},{'priority':'lowest'}),_0x4b00ad['model']['markers']['on']('update:suggestion',(_0x2f57e9,_0x53a169,_0x39e103)=>{if(null==_0x39e103){const {id:_0x1bb135}=this['_splitMarkerName'](_0x53a169['name']),_0xdb5eb=this['_suggestions']['get'](_0x1bb135);_0xdb5eb&&_0xdb5eb['addMarkerName'](_0x53a169['name']);}}),_0x4b00ad['model']['document']['on']('change:data',()=>{const _0x4710ca=Array['from'](_0x4b00ad['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2b906d=>'suggestion'===this['_splitMarkerName'](_0x2b906d['name'])['group']);if(0x0===_0x4710ca['length'])return;_0x4710ca['sort']((_0x225b83,_0x4a9ac9)=>{const _0x3cd384=_0x225b83['data']['oldRange'],_0x1cad6f=_0x4a9ac9['data']['oldRange'];return null===_0x3cd384&&null===_0x1cad6f?0x0:null===_0x3cd384&&null!==_0x1cad6f?-0x1:null!==_0x3cd384&&null===_0x1cad6f?0x1:_0x3cd384['start']['isBefore'](_0x1cad6f['start'])?-0x1:0x1;});const _0x2d065c=new Set(),_0x2051a3=new Set();for(const {name:_0x2c78c8,data:_0x5ec25a}of _0x4710ca){const {id:_0x2101df}=this['_splitMarkerName'](_0x2c78c8);if(null===_0x5ec25a['oldRange']){const _0x1d4d60=this['_handleNewSuggestionMarker'](_0x2c78c8);_0x2051a3['add'](_0x1d4d60);}else{const _0x42b264=this['_suggestions']['get'](_0x2101df);null!==_0x5ec25a['newRange']||_0x42b264['isInContent']?(_0x2d065c['add'](_0x42b264['head']),_0x2051a3['add'](_0x42b264)):this['_removeSuggestion'](_0x42b264);}}_0x2051a3['size']>0x0&&this['_refreshSuggestionsChain'](_0x2051a3);for(const _0x9fd097 of _0x2d065c)this['fire']('suggestionChanged',_0x9fd097);}),_0x4b00ad['model']['on']('applyOperation',(_0x36424c,_0xf165ea)=>{const _0x54d479=_0xf165ea[0x0];if(!this['_suggestions']['size'])return;if(!_0x54d479['isDocumentOperation'])return;if(_0x54d479['batch']['isUndo']||!_0x54d479['batch']['isLocal'])return;let _0x46bf59,_0x1746c5;switch(_0x54d479['type']){case'insert':_0x46bf59=_0x4b00ad['model']['createPositionAt'](_0x54d479['position']),_0x1746c5=_0x46bf59['getShiftedBy'](_0x54d479['howMany']);break;case'split':_0x46bf59=_0x4b00ad['model']['createPositionAt'](_0x54d479['splitPosition']),_0x1746c5=_0x4b00ad['model']['createPositionAt'](_0x54d479['moveTargetPosition']);break;case'move':_0x46bf59=_0x4b00ad['model']['createPositionAt'](_0x54d479['targetPosition']),_0x1746c5=_0x46bf59['getShiftedBy'](_0x54d479['howMany']);break;default:return;}const _0x3eb3dc=_0x4b00ad['model']['createRange'](_0x46bf59,_0x1746c5);_0x4b00ad['model']['change'](()=>{for(const {suggestion:_0x1ff1db,meta:_0x9dd12b}of this['_findSuggestions'](_0x3eb3dc)){if(_0x1ff1db['isMultiRange'])continue;if('formatInline'==_0x1ff1db['type'])continue;const _0x1bc6a2=this['_getAttributeKey'](_0x1ff1db);if(_0x1bc6a2&&this['_isBlockAttribute'](_0x1bc6a2)&&'split'!=_0x54d479['type'])continue;const _0xacc730=_0x1ff1db['data']&&_0x1ff1db['data']['multipleBlocks'];('formatBlock'!=_0x1ff1db['type']||'split'==_0x54d479['type']&&!_0xacc730)&&(_0x9dd12b['containsRangeInObject']||'insertion'==_0x1ff1db['type']&&_0x9dd12b['isOwn']||_0x1ff1db['getFirstRange']()['containsRange'](_0x3eb3dc)&&this['_breakSuggestionMarker'](_0x1ff1db,_0x46bf59,_0x1746c5));}});},{'priority':'lowest'}),_0x4b00ad['model']['on']('deleteContent',(_0x4f03c4,_0x5ea4bf)=>{const _0x58b9b2=_0x5ea4bf[0x0],_0x4dc294=_0x5ea4bf[0x1];if(_0x4dc294&&_0x4dc294['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x58b9b2['isCollapsed'])return;const _0x2f68b0=_0x4b00ad['model']['schema'],{start:_0x3c6416,end:_0x1b1b4a}=_0x58b9b2['getFirstRange'](),_0x53c9ab=_0x3c6416['nodeAfter']&&_0x2f68b0['isLimit'](_0x3c6416['nodeAfter'])?null:_0x2f68b0['getNearestSelectionRange'](_0x3c6416,'forward'),_0x397b67=_0x1b1b4a['nodeBefore']&&_0x2f68b0['isLimit'](_0x1b1b4a['nodeBefore'])?null:_0x2f68b0['getNearestSelectionRange'](_0x1b1b4a,'backward'),_0x4b49dc=_0x4b00ad['model']['createRange'](_0x53c9ab?_0x53c9ab['start']:_0x3c6416,_0x397b67?_0x397b67['end']:_0x1b1b4a);_0x4b00ad['model']['change'](_0x5c1639=>{this['markDeletion'](_0x4b49dc);const _0x26d0e8=_0x4b00ad['model']['schema']['getNearestSelectionRange'](_0x4b49dc['start']);_0x58b9b2['is']('documentSelection')?_0x5c1639['setSelection'](_0x26d0e8):_0x58b9b2['setTo'](_0x26d0e8);}),_0x4f03c4['stop']();},{'priority':_0x2c1f05['normal']+0xa}),_0x4b00ad['model']['on']('insertContent',(_0x49de6b,_0x1f969f)=>{const _0x50112c=_0x1f969f[_0x1f969f['length']-0x1];_0x50112c&&_0x50112c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4b00ad['model']['change'](()=>{let _0x68335e=_0x4b00ad['model']['insertContent'](_0x1f969f[0x0],_0x1f969f[0x1],_0x1f969f[0x2],{'forceDefaultExecution':!0x0});if(!_0x68335e)return;_0x49de6b['return']=_0x68335e['clone']();const _0x1c9556=_0x68335e['end']['nodeBefore'],_0x1e0b54=_0x4b00ad['model']['schema'];_0x1c9556&&_0x1e0b54['isBlock'](_0x1c9556)&&!_0x1e0b54['isObject'](_0x1c9556)&&(_0x68335e=_0x4b00ad['model']['createRange'](_0x68335e['start'],_0x4b00ad['model']['createPositionAt'](_0x1c9556,'end'))),this['markInsertion'](_0x68335e);}),_0x49de6b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1b6391=new D(_0x4b00ad,this['_suggestions']);_0x4b00ad['commands']['add']('acceptSuggestion',_0x1b6391),this['enableCommand']('acceptSuggestion');const _0x3eadd1=new M(_0x4b00ad,this['_suggestions']);_0x4b00ad['commands']['add']('discardSuggestion',_0x3eadd1),this['enableCommand']('discardSuggestion'),_0x4b00ad['commands']['add']('acceptAllSuggestions',new $(_0x4b00ad,_0x1b6391,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4b00ad['commands']['add']('discardAllSuggestions',new $(_0x4b00ad,_0x3eadd1,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4b00ad['commands']['add']('acceptSelectedSuggestions',new B(_0x4b00ad,_0x1b6391,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4b00ad['commands']['add']('discardSelectedSuggestions',new B(_0x4b00ad,_0x3eadd1,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x130462=_0x4b00ad['plugins']['get']('CommentsRepository');this['listenTo'](_0x130462,'addComment',(_0x27b911,{threadId:_0x2ec9a5})=>{const _0x8aa350=this['_suggestions']['get'](_0x2ec9a5);_0x8aa350&&_0x8aa350['commentThread']&&0x1===_0x8aa350['commentThread']['length']&&this['_updateSuggestionData'](_0x2ec9a5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x130462,'removeComment',(_0x8e1944,{threadId:_0x28b267})=>{const _0x217c7e=this['_suggestions']['get'](_0x28b267);_0x217c7e&&_0x217c7e['commentThread']&&!_0x217c7e['commentThread']['length']&&this['_updateSuggestionData'](_0x28b267,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3089c7){const _0x4ef643=_0x387d05([0x42,0x6a,0x48,0x54,0x52,0x56,0x68,0x4d,0x4b,0x79,0x49,0x59,0x58,0x57,0x41,0x71,0x37,0x62,0x6c,0x64,0x67,0x6b,0x39,0x4e,0x43,0x50,0x72,0x34,0x4c,0x6e,0x44,0x6f,0x55,0x47,0x4f,0x75,0x35,0x7a,0x74,0x76,0x31,0x6d,0x61,0x73,0x65,0x45,0x70,0x77,0x63,0x46,0x36,0x51,0x38,0x4a,0x78,0x33,0x66,0x69,0x30,0x5a,0x32,0x53]),_0x669493=0x671be605,_0x18bfaa=0x671c8a55^_0x669493,_0x4b2f21=window[_0x387d05([0x44,0x61,0x74,0x65])][_0x387d05([0x6e,0x6f,0x77])](),_0x5b18a1=_0x3089c7[_0x387d05([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c563d=new window[(_0x387d05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b3092=>{_0x5b18a1[_0x387d05([0x6f,0x6e,0x63,0x65])](_0x387d05([0x72,0x65,0x61,0x64,0x79]),_0x4b3092);}),_0x2c86e6={[_0x387d05([0x6b,0x74,0x79])]:_0x387d05([0x45,0x43]),[_0x387d05([0x75,0x73,0x65])]:_0x387d05([0x73,0x69,0x67]),[_0x387d05([0x63,0x72,0x76])]:_0x387d05([0x50,0x2d,0x32,0x35,0x36]),[_0x387d05([0x78])]:_0x387d05([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]),[_0x387d05([0x79])]:_0x387d05([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]),[_0x387d05([0x61,0x6c,0x67])]:_0x387d05([0x45,0x53,0x32,0x35,0x36])},_0x2333dd=_0x5b18a1[_0x387d05([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x387d05([0x67,0x65,0x74])](_0x387d05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59765e(){let _0x5a8b4e,_0xb7ed1c=null,_0x395a01=null;try{if(_0x2333dd==_0x387d05([0x47,0x50,0x4c]))return _0x387d05([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a8b4e=_0x1a174a(),!_0x5a8b4e)return _0x387d05([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a8b4e[_0x387d05([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x395a01=_0x408740(_0x5a8b4e[_0x387d05([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a8b4e[_0x387d05([0x6a,0x74,0x69])])),await _0x5eb4b9()?_0x138d23()?_0x55089d()?_0x387d05([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5045a6()?(_0x5a8b4e[_0x387d05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x387d05([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xb7ed1c=_0x17d996(_0x387d05([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a8b4e[_0x387d05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x387d05([0x74,0x72,0x69,0x61,0x6c])&&(_0xb7ed1c=_0x17d996(_0x387d05([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59f610()):_0x387d05([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x387d05([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x387d05([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x387d05([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55089d(){const _0x4a7678=[_0x387d05([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x387d05([0x74,0x72,0x69,0x61,0x6c])][_0x387d05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8b4e[_0x387d05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b2f21/0x3e8:0xe10*_0x18bfaa;return _0x5a8b4e[_0x387d05([0x65,0x78,0x70])]<_0x4a7678;}function _0x138d23(){const _0x3cd777=_0x5a8b4e[_0x387d05([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3cd777)return!0x1;if(_0x3cd777[_0x387d05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x387d05([0x2a])))return!0x0;if(_0x3cd777[_0x387d05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x387d05([0x54,0x43])))return!0x0;if(_0x3cd777[_0x387d05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x387d05([0x52,0x54,0x43]))){if(_0x2bce0c())return!0x0;if(_0x2ee72a()||_0x42ef98())return!0x0;}return!0x1;}function _0x5045a6(){const _0x39f8cb=_0x5a8b4e[_0x387d05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x39f8cb||0x0==_0x39f8cb[_0x387d05([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3cc13f}=new URL(window[_0x387d05([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x39f8cb[_0x387d05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cc13f))return!0x0;const _0x2b7f2b=_0x3cc13f[_0x387d05([0x73,0x70,0x6c,0x69,0x74])](_0x387d05([0x2e]));return _0x39f8cb[_0x387d05([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e9729=>_0x2e9729[_0x387d05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x387d05([0x2a])))[_0x387d05([0x6d,0x61,0x70])](_0x10a446=>_0x10a446[_0x387d05([0x73,0x70,0x6c,0x69,0x74])](_0x387d05([0x2e])))[_0x387d05([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e4506=>_0x1e4506[_0x387d05([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2b7f2b[_0x387d05([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x387d05([0x6d,0x61,0x70])](_0x54b34c=>Array(_0x2b7f2b[_0x387d05([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x54b34c[_0x387d05([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x387d05([0x66,0x69,0x6c,0x6c])](_0x54b34c[0x0]===_0x387d05([0x2a])?_0x387d05([0x2a]):'')[_0x387d05([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x54b34c))[_0x387d05([0x73,0x6f,0x6d,0x65])](_0x5b71c9=>_0x2b7f2b[_0x387d05([0x65,0x76,0x65,0x72,0x79])]((_0x163f31,_0x34efc4)=>_0x5b71c9[_0x34efc4]===_0x163f31||_0x5b71c9[_0x34efc4]===_0x387d05([0x2a])));}function _0x59f610(){return _0xb7ed1c&&_0x395a01?new window[(_0x387d05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d5786,_0xb6b75e)=>{_0xb7ed1c[_0x387d05([0x74,0x68,0x65,0x6e])](_0x3d5786,_0xb6b75e),_0x395a01[_0x387d05([0x74,0x68,0x65,0x6e])](_0x1d29bd=>{_0x1d29bd!=_0x387d05([0x56,0x61,0x6c,0x69,0x64])&&_0x3d5786(_0x1d29bd);},_0xb6b75e);}):_0xb7ed1c||_0x395a01||_0x387d05([0x56,0x61,0x6c,0x69,0x64]);}}function _0x408740(_0x12f891,_0xca31de){return new window[(_0x387d05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ac9ef=>{if(_0x12bd4b())return _0x2ac9ef(_0x387d05([0x56,0x61,0x6c,0x69,0x64]));_0x185fb6(),_0x5b18a1[_0x387d05([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x387d05([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x22d12e=!0x1;const _0x4a63e2=_0x2c2b9e();function _0x4c1e26(_0xfa3cde){return!!_0xfa3cde&&(typeof _0xfa3cde===_0x387d05([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xfa3cde===_0x387d05([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xfa3cde[_0x387d05([0x74,0x68,0x65,0x6e])]===_0x387d05([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xfa3cde[_0x387d05([0x63,0x61,0x74,0x63,0x68])]===_0x387d05([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x434845(_0x21af78){_0x4606ff(_0x21af78)[_0x387d05([0x74,0x68,0x65,0x6e])](_0x1212ba=>{if(!_0x1212ba||_0x1212ba[_0x387d05([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x387d05([0x6f,0x6b]))return _0x387d05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1debb3(_0x12be91(_0x4a63e2+_0xca31de))!=_0x1212ba[_0x387d05([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x387d05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x387d05([0x56,0x61,0x6c,0x69,0x64]);})[_0x387d05([0x74,0x68,0x65,0x6e])](_0x5930ef=>(_0x190a8e(),_0x5930ef),()=>{const _0x387c6f=_0x3d92ce();return null==_0x387c6f?(_0x190a8e(),_0x387d05([0x56,0x61,0x6c,0x69,0x64])):_0x387d05(_0x4b2f21-_0x387c6f>(0x43176205^_0x669493)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x387d05([0x74,0x68,0x65,0x6e])](_0x2ac9ef)[_0x387d05([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ac9ef(_0x387d05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36f334=0x672d0885^_0x669493;function _0x190a8e(){const _0x551aed=_0x387d05([0x6c,0x6c,0x63,0x74,0x2d])+_0x1debb3(_0x12be91(_0x12f891)),_0x457a14=_0x6cf634(_0x1debb3(window[_0x387d05([0x4d,0x61,0x74,0x68])][_0x387d05([0x63,0x65,0x69,0x6c])](_0x4b2f21/_0x36f334)));window[_0x387d05([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x387d05([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x551aed,_0x457a14);}function _0x3d92ce(){const _0x30f96a=_0x387d05([0x6c,0x6c,0x63,0x74,0x2d])+_0x1debb3(_0x12be91(_0x12f891)),_0x353c86=window[_0x387d05([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x387d05([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30f96a);return _0x353c86?window[_0x387d05([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6cf634(_0x353c86),0x10)*_0x36f334:null;}function _0x4606ff(_0x479b9d){return new window[(_0x387d05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8fe394,_0x56ad74)=>{_0x479b9d[_0x387d05([0x74,0x68,0x65,0x6e])](_0x8fe394,_0x56ad74),window[_0x387d05([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56ad74,0x671a32c5^_0x669493);});}}_0x5b18a1[_0x387d05([0x6f,0x6e])](_0x387d05([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x97564c,_0x2d46e5)=>{if(_0x2d46e5[0x0]!=_0x12f891)return _0x2ac9ef(_0x387d05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d46e5[0x1]={..._0x2d46e5[0x1],[_0x387d05([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a63e2};},{[_0x387d05([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x387d05([0x68,0x69,0x67,0x68])}),_0x5b18a1[_0x387d05([0x6f,0x6e])](_0x387d05([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5a22fc=>{_0x4c1e26(_0x5a22fc[_0x387d05([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x22d12e=!0x0,_0x434845(_0x5a22fc[_0x387d05([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x387d05([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x387d05([0x6c,0x6f,0x77])}),_0x1c563d[_0x387d05([0x74,0x68,0x65,0x6e])](()=>{_0x22d12e||_0x2ac9ef(_0x387d05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x12bd4b(){return _0x5b18a1[_0x387d05([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x387d05([0x76,0x69,0x65,0x77])][_0x387d05([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x387d05([0x61,0x75,0x74,0x6f]);}function _0x185fb6(){_0x5b18a1[_0x387d05([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x387d05([0x76,0x69,0x65,0x77])][_0x387d05([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x387d05([0x61,0x75,0x74,0x6f]);}}function _0x17d996(_0x89fbd){const _0x4cd929=[new window[(_0x387d05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53b0e8=>setTimeout(_0x53b0e8,0x6712d8c9^_0x669493)),_0x1c563d[_0x387d05([0x74,0x68,0x65,0x6e])](()=>new window[(_0x387d05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fd072=>{let _0x32fdc5=0x0;_0x5b18a1[_0x387d05([0x6d,0x6f,0x64,0x65,0x6c])][_0x387d05([0x6f,0x6e])](_0x387d05([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5b5714,_0xdf38d)=>{_0xdf38d[0x0][_0x387d05([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x32fdc5++,_0x32fdc5==(0x671be7fd^_0x669493)&&(_0x4fd072(),_0x5b5714[_0x387d05([0x6f,0x66,0x66])]());});}))];return window[_0x387d05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x387d05([0x72,0x61,0x63,0x65])](_0x4cd929)[_0x387d05([0x74,0x68,0x65,0x6e])](()=>_0x89fbd);}async function _0x2a42f7(){await _0x1c563d,_0x5b18a1[_0x387d05([0x6d,0x6f,0x64,0x65,0x6c])][_0x387d05([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x19a7de,_0x5b18a1[_0x387d05([0x6d,0x6f,0x64,0x65,0x6c])][_0x387d05([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x19a7de,_0x5b18a1[_0x387d05([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x387d05([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2bce0c(){return _0x217da5(_0x387d05([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x493079(_0x387d05([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x387d05([0x73,0x74,0x61,0x74,0x65])]==_0x387d05([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2ee72a(){return _0x217da5(_0x387d05([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 _0x42ef98(){return _0x217da5(_0x387d05([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4ce655(_0x40f433){const _0x57d471=_0x16b418();_0x5b18a1[_0x57d471]=_0x387d05([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x40f433,_0x40f433!=_0x387d05([0x56,0x61,0x6c,0x69,0x64])&&_0x2a42f7();}function _0x16b418(){const _0x285f82=window[_0x387d05([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x387d05([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x387d05([0x6e,0x6f,0x77])]())[_0x387d05([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x387d05([0x2e]),'');let _0x256cd2=_0x387d05([0x42]);for(let _0x39b8bb=0x0;_0x39b8bb<_0x285f82[_0x387d05([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39b8bb+=0x2){let _0x2ee686=window[_0x387d05([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x285f82[_0x387d05([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39b8bb,_0x39b8bb+0x2));_0x2ee686>=_0x4ef643[_0x387d05([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ee686-=_0x4ef643[_0x387d05([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x256cd2+=_0x4ef643[_0x2ee686];}return _0x256cd2;}function _0x1a174a(){const _0x2c4e15=_0x2333dd[_0x387d05([0x73,0x70,0x6c,0x69,0x74])](_0x387d05([0x2e]));if(0x3!=_0x2c4e15[_0x387d05([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x503ea0(_0x2c4e15[0x1]);function _0x503ea0(_0x324bf3){const _0x5e282b=_0x11283e(_0x324bf3);return _0x5e282b&&_0xb29201()?_0x5e282b:null;function _0xb29201(){const _0x3bd25b=_0x5e282b[_0x387d05([0x6a,0x74,0x69])],_0x6a93fe=window[_0x387d05([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bd25b[_0x387d05([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3bd25b[_0x387d05([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2559b8={..._0x5e282b,[_0x387d05([0x6a,0x74,0x69])]:_0x3bd25b[_0x387d05([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3bd25b[_0x387d05([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2559b8[_0x387d05([0x76,0x63])],_0x12be91(_0x2559b8)==_0x6a93fe;}}}async function _0x5eb4b9(){let _0x437f8c=!0x0;try{const _0x228eff=_0x2333dd[_0x387d05([0x73,0x70,0x6c,0x69,0x74])](_0x387d05([0x2e])),[_0x525fc0,_0x5a1547,_0x325f6e]=_0x228eff;return _0x34613c(_0x525fc0),await _0x58feae(_0x525fc0,_0x5a1547,_0x325f6e),_0x437f8c;}catch{return!0x1;}function _0x34613c(_0x31dad6){const _0x28b5fb=_0x11283e(_0x31dad6);_0x28b5fb&&_0x28b5fb[_0x387d05([0x61,0x6c,0x67])]==_0x387d05([0x45,0x53,0x32,0x35,0x36])||(_0x437f8c=!0x1);}async function _0x58feae(_0xa070d5,_0x48a3e7,_0x37ca9e){const _0x1ed6dd=window[_0x387d05([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x387d05([0x66,0x72,0x6f,0x6d])](_0x57a1d9(_0x37ca9e),_0x58770c=>_0x58770c[_0x387d05([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x17d4fc=new window[(_0x387d05([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x387d05([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xa070d5+_0x387d05([0x2e])+_0x48a3e7),_0x396518=window[_0x387d05([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x387d05([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x396518)return;const _0x13839f=await _0x396518[_0x387d05([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x387d05([0x6a,0x77,0x6b]),_0x2c86e6,{[_0x387d05([0x6e,0x61,0x6d,0x65])]:_0x387d05([0x45,0x43,0x44,0x53,0x41]),[_0x387d05([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x387d05([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x387d05([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x396518[_0x387d05([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x387d05([0x6e,0x61,0x6d,0x65])]:_0x387d05([0x45,0x43,0x44,0x53,0x41]),[_0x387d05([0x68,0x61,0x73,0x68])]:{[_0x387d05([0x6e,0x61,0x6d,0x65])]:_0x387d05([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x13839f,_0x1ed6dd,_0x17d4fc)||(_0x437f8c=!0x1);}}function _0x11283e(_0x209ea2){return _0x209ea2[_0x387d05([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x387d05([0x65,0x79]))?JSON[_0x387d05([0x70,0x61,0x72,0x73,0x65])](_0x57a1d9(_0x209ea2)):null;}function _0x57a1d9(_0x46967c){return window[_0x387d05([0x61,0x74,0x6f,0x62])](_0x46967c[_0x387d05([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x387d05([0x2b]))[_0x387d05([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x387d05([0x2f])));}function _0x12be91(_0x93abeb){let _0x4dd80a=0x1505;function _0x3382fd(_0x13c1df){for(let _0x5e4bd2=0x0;_0x5e4bd2<_0x13c1df[_0x387d05([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e4bd2++){const _0x5ce167=_0x13c1df[_0x387d05([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5e4bd2);_0x4dd80a=(_0x4dd80a<<0x5)+_0x4dd80a+_0x5ce167,_0x4dd80a&=_0x4dd80a;}}function _0x10b7d2(_0x388eca){Array[_0x387d05([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x388eca)?_0x388eca[_0x387d05([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x10b7d2):_0x388eca&&typeof _0x388eca==_0x387d05([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x387d05([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x388eca)[_0x387d05([0x73,0x6f,0x72,0x74])]()[_0x387d05([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1bd375,_0x2c1bd1])=>{_0x3382fd(_0x1bd375),_0x10b7d2(_0x2c1bd1);}):_0x3382fd(window[_0x387d05([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x388eca));}return _0x10b7d2(_0x93abeb),_0x4dd80a>>>0x0;}function _0x1debb3(_0x3b9455){return _0x3b9455[_0x387d05([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x387d05([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x387d05([0x30]));}function _0x6cf634(_0x322281){return _0x322281[_0x387d05([0x73,0x70,0x6c,0x69,0x74])]('')[_0x387d05([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x387d05([0x6a,0x6f,0x69,0x6e])]('');}function _0x217da5(_0x45a1e8){return _0x5b18a1[_0x387d05([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x387d05([0x68,0x61,0x73])](_0x45a1e8);}function _0x493079(_0x567c64){return _0x5b18a1[_0x387d05([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x387d05([0x67,0x65,0x74])](_0x567c64);}function _0x19a7de(){}function _0x387d05(_0x1638c0){return _0x1638c0['map'](_0x2db952=>String['fromCharCode'](_0x2db952))['join']('');}_0x4ce655(await _0x59765e());}(this);}set['adapter'](_0xe54e79){if(this['_adapter'])throw new _0x7be711('track-changes-adapter-already-set',this);this['_adapter']=_0xe54e79;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4ac789=!0x1,toJSON:_0x168033=!0x1}={}){const _0x11a606=[];for(const _0x4397eb of this['_suggestions']['values']())_0x4ac789&&!_0x4397eb['isInContent']||_0x11a606['push'](_0x4397eb);return _0x168033?_0x11a606['map'](_0x4d4af9=>_0x4d4af9['toJSON']()):_0x11a606;}['getSuggestion'](_0x287f80){const _0x1d2981=this['_suggestions']['get'](_0x287f80);if(!_0x1d2981)throw new _0x7be711('track-changes-suggestion-not-found',this);return _0x1d2981;}['hasSuggestion'](_0x10b55d){return this['_suggestions']['has'](_0x10b55d);}['addSuggestionData'](_0x3435af){const {authorId:_0x3caf64,id:_0x1f4be8,originalSuggestionId:_0x5862c5,attributes:_0x487558}=_0x3435af,[_0x546e31,_0xb3d774]=_0x3435af['type']['split'](':'),_0x3667b2=this['_suggestions']['get'](_0x1f4be8)||this['_createSuggestion'](_0x546e31,_0xb3d774,_0x1f4be8,_0x3caf64,_0x487558,_0x5862c5);if(this['_addThreadToSuggestion'](_0x3667b2),this['_checkSuggestionCorrectness'](_0x3667b2,_0x546e31,_0xb3d774||null,_0x3caf64),_0x3667b2['createdAt']=_0x3435af['createdAt'],_0x3667b2['_isDataLoaded']=!0x0,_0x487558&&_0x487558['@external']){const _0x2f4c4c=_0x487558['@external'],_0x54dfb4=this['_getExternalAuthor'](_0x2f4c4c['authorName']);_0x3667b2['authoredAt']=_0x2f4c4c['createdAt'],_0x3667b2['author']=_0x54dfb4,_0x3667b2['isExternal']=!0x0;}else _0x3667b2['authoredAt']=_0x3435af['createdAt'];switch(_0x3435af['data']&&(_0x3667b2['data']=_0x3435af['data']),_0x3435af['attributes']&&(_0x3667b2['attributes']=_0x3435af['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3667b2['_saved']=!0x0),this['_suggestionState']['get'](_0x3667b2)){case'notReady':this['_suggestionState']['set'](_0x3667b2,'dataReady');break;case'markerReady':_0x3667b2['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3667b2])),this['_refreshSuggestionsChain'](new Set([_0x3667b2])),this['_suggestionState']['set'](_0x3667b2,'ready'),this['fire']('suggestionLoaded',_0x3667b2)):this['_suggestionState']['set'](_0x3667b2,'removed');}return _0x3667b2;}['acceptSuggestion'](_0x7297c6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x54afbd of _0x7297c6['getAllAdjacentSuggestions']())_0x54afbd['accept']();});});}['discardSuggestion'](_0x26813b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x43a649 of _0x26813b['getAllAdjacentSuggestions']())_0x43a649['discard']();});});}['enableCommand'](_0x94807,_0x54a21a){const _0x56fb51=this['editor']['commands']['get'](_0x94807);if(!_0x56fb51)throw new _0x7be711('track-changes-command-not-found',this,{'commandName':_0x94807});if(this['_enabledCommands']['has'](_0x56fb51))throw new _0x7be711('track-changes-enable-command-twice',this,{'commandName':_0x94807});this['_enabledCommands']['add'](_0x56fb51),_0x54a21a&&_0x56fb51['on']('execute',(_0x3d7125,_0x103bd9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x103bd9['length']>0x0&&_0x103bd9[_0x103bd9['length']-0x1]&&_0x103bd9[_0x103bd9['length']-0x1]['forceDefaultExecution']?_0x103bd9['pop']():(_0x3d7125['return']=_0x54a21a((..._0x509641)=>_0x56fb51['execute'](..._0x509641,{'forceDefaultExecution':!0x0}),..._0x103bd9),_0x3d7125['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x13d347){let _0x180219,_0x221d55;const _0x45744d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x180219=_0x13d347();}catch(_0x5415fc){_0x221d55=_0x5415fc;}return _0x45744d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x221d55&&_0x7be711['rethrowUnexpectedError'](_0x221d55,this),_0x180219;}['markInsertion'](_0x4a96c3,_0x524e40=null,_0x55aa27={}){if(_0x4a96c3['isCollapsed'])return null;const _0xcfc71b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x55aa27['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x50d6f5,meta:_0x7f36ad}of this['_findSuggestions'](_0x4a96c3,'insertion'))if(_0x7f36ad['isOwn']){if(!_0x7f36ad['isNextTo']){if(_0x7f36ad['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x50d6f5,_0x55aa27))continue;return _0x50d6f5;}if(Qt(_0x50d6f5,_0x55aa27))return _0x50d6f5;this['_breakSuggestionMarker'](_0x50d6f5,_0x4a96c3['start'],_0x4a96c3['end']);break;}if(_0x524e40==_0x50d6f5['subType']&&Qt(_0x50d6f5,_0x55aa27)){const _0x2256e1=_0x50d6f5['getFirstRange']();return _0x2256e1['start']['isEqual'](_0x4a96c3['end'])?this['_setSuggestionRange'](_0x50d6f5,this['_model']['createRange'](_0x4a96c3['start'],_0x2256e1['end'])):this['_setSuggestionRange'](_0x50d6f5,this['_model']['createRange'](_0x2256e1['start'],_0x4a96c3['end'])),_0x50d6f5;}}const _0xfc7f00=_0x2c2b9e(),_0x4db48e=_0xcfc71b['id'],_0xfbf24b=_0x524e40?'insertion:'+_0x524e40:'insertion',_0x172c41=this['_setSuggestionData']({'id':_0xfc7f00,'type':_0xfbf24b,'createdAt':new Date(),'authorId':_0x4db48e,'attributes':_0x55aa27});return this['_addSuggestionMarker'](_0xfbf24b,_0xfc7f00,_0x4db48e,_0x4a96c3),_0x172c41;}['markMultiRangeInsertion'](_0x329a25,_0x32c2cc='multi',_0x30df2b={}){const _0x392f4b=this['editor']['plugins']['get']('Users')['me'],_0x4a1b99=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x32c2cc,'join');this['_trackingSessionId']&&(_0x30df2b['trackingSessionId']=this['_trackingSessionId']);for(const _0x2d9a0b of this['getSuggestions']())if(_0x2d9a0b['author']['id']==_0x392f4b['id']&&'insertion'==_0x2d9a0b['type']&&_0x2d9a0b['subType']==_0x32c2cc&&Qt(_0x2d9a0b,_0x30df2b)&&(_0x4a1b99(_0x2d9a0b['getRanges'](),_0x329a25)||_0x4a1b99(_0x329a25,_0x2d9a0b['getRanges']()))){for(const _0x181e24 of _0x329a25)_0x2d9a0b['addRange'](_0x181e24);return _0x2d9a0b;}for(const {suggestion:_0x2c6338,meta:_0x423b9b}of this['_findSuggestions'](_0x329a25,'insertion')){if(!_0x423b9b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x423b9b['containsRangeInObject'])continue;if(!Qt(_0x2c6338,_0x30df2b))continue;let _0x535607=!0x0;for(const _0x12c3d6 of _0x2c6338['getRanges']())for(const _0x38ca27 of _0x329a25)if(!_0x12c3d6['containsRange'](_0x38ca27)){_0x535607=!0x1;break;}if(_0x535607)return _0x2c6338;}const _0x2159ca=_0x2c2b9e(),_0x52a935=_0x392f4b['id'],_0x4dccef='insertion:'+_0x32c2cc,_0x5252a5=this['_setSuggestionData']({'id':_0x2159ca,'type':_0x4dccef,'createdAt':new Date(),'authorId':_0x52a935,'attributes':_0x30df2b});for(const _0x3f3db4 of _0x329a25)this['_addSuggestionMarker'](_0x4dccef,_0x2159ca,_0x52a935,_0x3f3db4,T['getMultiRangeId']());return _0x5252a5;}['markInlineFormat'](_0x53741c,_0x2d44fb,_0x1d29ea=null,_0x548099={}){if(_0x1d29ea=_0x1d29ea||Lt(_0x2d44fb),_0x53741c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x548099['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xaf7f2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1d29ea,'accept');return this['forceDefaultExecution'](()=>_0xaf7f2([_0x53741c],_0x2d44fb,_0x548099)),null;}const _0x1aeb17=this['editor']['plugins']['get']('Users')['me'],_0x349625=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x60e9b4,meta:_0x35c296}of this['_findSuggestions'](_0x53741c,'insertion'))_0x35c296['isOwn']&&!_0x35c296['isInsideObject']&&_0x349625['push'](..._0x60e9b4['getRanges']());}const _0x4c4b76=function(_0x151b2a,_0x219cad){const _0x20c49e=[];for(const _0xe96a69 of _0x219cad){const _0x89ce1e=_0x151b2a['getIntersection'](_0xe96a69);_0x89ce1e&&_0x20c49e['push'](_0x89ce1e);}return _0x20c49e;}(_0x53741c,_0x349625),_0x2cbcb8=function(_0x41c5c0,_0x31d0e2){const _0x498c3b=[_0x41c5c0];for(const _0x5ea978 of _0x31d0e2){let _0x4a22f8=0x0;for(;_0x4a22f8<_0x498c3b['length'];){const _0x556813=_0x498c3b[_0x4a22f8]['getDifference'](_0x5ea978);_0x498c3b['splice'](_0x4a22f8,0x1,..._0x556813),_0x4a22f8+=_0x556813['length'];}}return _0x498c3b;}(_0x53741c,_0x349625);_0x4c4b76['length']&&this['_model']['change'](()=>{for(const _0x1b51a1 of _0x4c4b76){const _0x41f268=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1d29ea,'accept');this['forceDefaultExecution'](()=>_0x41f268([_0x1b51a1],_0x2d44fb,_0x548099));}});for(const _0x35ac37 of _0x2cbcb8){let _0x28901f=null,_0x511526=_0x35ac37['start'],_0x1d9645=_0x35ac37['end'];for(const {suggestion:_0x4457a1,meta:_0x302bb9}of this['_findSuggestions'](_0x35ac37,'formatInline')){if(!_0x302bb9['isOwn'])continue;if(_0x4457a1['subType']!=_0x1d29ea)continue;if(!Qt(_0x4457a1,_0x548099))continue;const _0x409c29=_0x4457a1['getFirstRange']();if(_0x409c29['containsRange'](_0x35ac37,!0x0))return null;_0x511526=_0x511526['isBefore'](_0x409c29['start'])?_0x511526:_0x409c29['start'],_0x1d9645=_0x1d9645['isAfter'](_0x409c29['end'])?_0x1d9645:_0x409c29['end'],_0x28901f?_0x409c29['start']['isBefore'](_0x28901f['getFirstRange']()['start'])?(_0x28901f['removeMarkers'](),_0x28901f=_0x4457a1):_0x4457a1['removeMarkers']():_0x28901f=_0x4457a1;}const _0x13fc3d=this['_model']['createRange'](_0x511526,_0x1d9645);if(_0x28901f)this['_setSuggestionRange'](_0x28901f,_0x13fc3d);else{const _0x5ddb1c=_0x2c2b9e(),_0x596e15=_0x1aeb17['id'];this['_setSuggestionData']({'id':_0x5ddb1c,'type':'formatInline:'+_0x1d29ea,'data':_0x2d44fb,'createdAt':new Date(),'authorId':_0x596e15,'attributes':_0x548099}),this['_addSuggestionMarker']('formatInline:'+_0x1d29ea,_0x5ddb1c,_0x596e15,_0x13fc3d);}}return null;}['markBlockFormat'](_0x43d4f0,_0x51ac8b,_0xe0784=[],_0x14f948=null,_0x43578e={}){_0x51ac8b['formatGroupId']||(_0x51ac8b['formatGroupId']=_0x51ac8b['commandName']),_0x51ac8b['multipleBlocks']=_0x43d4f0['is']('range'),_0x14f948=_0x14f948||Lt(_0x51ac8b);const _0x1b6e93=_0xe0784['map'](_0x1a6d7e=>qt(_0x1a6d7e,this['_model'])),_0x25eacf=_0x43d4f0['is']('range')?_0x43d4f0:qt(_0x43d4f0,this['_model']);if(this['_trackingSessionId']&&(_0x43578e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x52fae3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x14f948,'accept');return this['forceDefaultExecution'](()=>_0x52fae3([_0x25eacf],_0x51ac8b,_0x43578e)),null;}_0x1b6e93['push'](_0x25eacf);let _0x13fb54=!0x0;for(const _0x2b8fc9 of _0x1b6e93)if(!this['_rangeIsInLocalUserInsertion'](_0x2b8fc9)){_0x13fb54=!0x1;break;}if(_0x13fb54&&'always'!==this['_trackFormatChanges']){const _0x23907f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x14f948,'accept');return this['forceDefaultExecution'](()=>_0x23907f([_0x25eacf],_0x51ac8b,_0x43578e)),null;}let _0x1f9d8a=null,_0x3d9d96=_0x25eacf['start'],_0x768ebd=_0x25eacf['end'];for(const {suggestion:_0x1701c3,meta:_0x360fab}of this['_findSuggestions'](_0x25eacf,'formatBlock')){if(!_0x360fab['isOwn'])continue;if(_0x360fab['isNextTo']||_0x360fab['containsRangeInObject']||_0x360fab['isInsideObject'])continue;if(_0x1701c3['data']['formatGroupId']!=_0x51ac8b['formatGroupId'])continue;if(!Qt(_0x1701c3,_0x43578e))continue;const _0x527951=_0x1701c3['getFirstRange']();if(_0x1701c3['subType']==_0x14f948){if(_0x527951['containsRange'](_0x25eacf,!0x0))return null;_0x3d9d96=_0x3d9d96['isBefore'](_0x527951['start'])?_0x3d9d96:_0x527951['start'],_0x768ebd=_0x768ebd['isAfter'](_0x527951['end'])?_0x768ebd:_0x527951['end'],_0x1f9d8a?_0x527951['start']['isBefore'](_0x1f9d8a['getFirstRange']()['start'])?(_0x1f9d8a['removeMarkers'](),_0x1f9d8a=_0x1701c3):_0x1701c3['removeMarkers']():_0x1f9d8a=_0x1701c3;}else{const _0x4f1c63=_0x25eacf['getIntersection'](_0x527951);this['_cutOutSuggestionMarker'](_0x1701c3,_0x4f1c63);}}const _0x18d8c6=this['editor']['plugins']['get']('Users')['me'],_0x579fd5=_0x2c2b9e(),_0x4b9b45=_0x18d8c6['id'];if(_0x1f9d8a)return this['_setSuggestionRange'](_0x1f9d8a,this['_model']['createRange'](_0x3d9d96,_0x768ebd)),_0x1f9d8a;{const _0x29768=this['_setSuggestionData']({'id':_0x579fd5,'type':'formatBlock:'+_0x14f948,'data':_0x51ac8b,'createdAt':new Date(),'authorId':_0x4b9b45,'attributes':_0x43578e});return this['_addSuggestionMarker']('formatBlock:'+_0x14f948,_0x579fd5,_0x4b9b45,this['_model']['createRange'](_0x3d9d96,_0x768ebd)),_0x29768;}}['markMultiRangeBlockFormat'](_0x2066e2,_0x270d08,_0x29adcd=[],_0x3f34a3=null,_0xf18727={}){_0x270d08['formatGroupId']||(_0x270d08['formatGroupId']=_0x270d08['commandName']);const _0x9bde99=_0x2066e2[0x0];_0x270d08['multipleBlocks']=_0x9bde99['is']('range'),_0x3f34a3=_0x3f34a3||Lt(_0x270d08);const _0x2a2a0b=_0x29adcd['map'](_0x17565f=>qt(_0x17565f,this['_model'])),_0x324fb3=_0x9bde99['is']('range')?_0x2066e2:_0x2066e2['map'](_0x5439c5=>qt(_0x5439c5,this['_model']));if(this['_trackingSessionId']&&(_0xf18727['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2f2fed=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f34a3,'accept');return this['forceDefaultExecution'](()=>_0x2f2fed(_0x324fb3,_0x270d08,_0xf18727)),null;}_0x2a2a0b['push'](..._0x324fb3);let _0x534993=!0x0;for(const _0x3e42a4 of _0x2a2a0b)if(!this['_rangeIsInLocalUserInsertion'](_0x3e42a4)){_0x534993=!0x1;break;}if(_0x534993&&'always'!==this['_trackFormatChanges']){const _0x25c3a2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f34a3,'accept');return this['forceDefaultExecution'](()=>_0x25c3a2(_0x324fb3,_0x270d08,_0xf18727)),null;}const _0x2476fc=this['editor']['plugins']['get']('Users')['me'];for(const _0x12c8b0 of this['getSuggestions']()){const _0x26dcb4=_0x12c8b0['data'];if(_0x12c8b0['author']['id']!=_0x2476fc['id'])continue;if('formatBlock'!=_0x12c8b0['type']||_0x26dcb4['formatGroupId']!=_0x270d08['formatGroupId'])continue;if(!Qt(_0x12c8b0,_0xf18727))continue;const _0x590419=_0x12c8b0['subType']==_0x3f34a3;for(let _0x1dca6c=0x0;_0x1dca6c<_0x324fb3['length'];_0x1dca6c++){const _0x484401=_0x324fb3[_0x1dca6c];for(const _0x352757 of _0x12c8b0['getMarkers']()){const _0x467b4e=_0x352757['getRange']();if(_0x484401['isEqual'](_0x467b4e)){_0x590419?(_0x324fb3['splice'](_0x1dca6c,0x1),_0x1dca6c--):_0x12c8b0['removeMarker'](_0x352757['name']);break;}}}}if(0x0==_0x324fb3['length'])return null;const _0x56e23b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f34a3,'join');for(const _0x514d54 of this['getSuggestions']()){const _0x1b3c8c=_0x514d54['data'];if(_0x514d54['author']['id']==_0x2476fc['id']&&('formatBlock'==_0x514d54['type']&&_0x1b3c8c['formatGroupId']==_0x270d08['formatGroupId']&&_0x514d54['subType']==_0x3f34a3&&Qt(_0x514d54,_0xf18727)&&(_0x56e23b(_0x514d54['getRanges'](),_0x324fb3)||_0x56e23b(_0x324fb3,_0x514d54['getRanges']())))){for(const _0x57bdc4 of _0x324fb3)_0x514d54['addRange'](_0x57bdc4);return _0x514d54;}}const _0x3c58fc=_0x2c2b9e(),_0xe51781=_0x2476fc['id'],_0x22b4e3='formatBlock:'+_0x3f34a3,_0x14526e=this['_setSuggestionData']({'id':_0x3c58fc,'type':_0x22b4e3,'data':_0x270d08,'createdAt':new Date(),'authorId':_0xe51781,'attributes':_0xf18727});for(const _0x381ae9 of _0x324fb3)this['_addSuggestionMarker'](_0x22b4e3,_0x3c58fc,_0xe51781,_0x381ae9,T['getMultiRangeId']());return _0x14526e;}['markDeletion'](_0x55d94a,_0x4f7631=null,_0x390799={}){if(_0x55d94a['isCollapsed'])return null;const _0x5f2060=this['editor']['plugins']['get']('Users')['me'],_0x303524=new _0x943391(_0x55d94a['start'],_0x55d94a['end']);this['_trackingSessionId']&&(_0x390799['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x41852e,meta:_0x209a78}of this['_findSuggestions'](_0x303524,'insertion'))if(_0x209a78['isOwn']&&!_0x209a78['isNextTo']){if(_0x41852e['isMultiRange']){const _0x3bf142=_0x41852e['getRanges']()['filter'](_0x2a8435=>'$graveyard'!=_0x2a8435['root']['rootName']);_0x3bf142['every'](_0x248792=>_0x303524['containsRange'](_0x248792,!0x0))&&_0x41852e['discard']();if(_0x3bf142['some'](_0x439820=>_0x439820['containsRange'](_0x303524,!0x0))){const _0x101b0b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4f7631,'accept');return this['forceDefaultExecution'](()=>_0x101b0b([_0x303524],null,_0x390799)),null;}}else{const _0x31f667=_0x303524['getIntersection'](_0x41852e['getFirstRange']());null!==_0x31f667&&_0x41852e['_onDiscard']([_0x31f667],null,_0x390799);}}if(_0x303524['detach'](),_0x303524['isCollapsed']||'$graveyard'==_0x303524['root']['rootName'])return null;let _0x221d1b=null,_0x177583=_0x303524['start'],_0x555efa=_0x303524['end'];const _0x400c79=this['_findSuggestions'](_0x303524,'deletion');for(const {suggestion:_0x417ecb,meta:_0x5d2d10}of _0x400c79){const _0x1050a6=this['_model']['createRange'](_0x177583,_0x555efa);if(_0x5d2d10['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5d2d10['containsRangeInObject']&&!_0x5d2d10['isInsideObject'])){if(_0x417ecb['isMultiRange']){if(!Qt(_0x417ecb,_0x390799))continue;let _0x584c03=!0x0;for(const _0xada5e5 of _0x417ecb['getRanges']()){if(_0xada5e5['containsRange'](_0x1050a6,!0x0))return _0x417ecb;_0x1050a6['containsRange'](_0xada5e5)||(_0x584c03=!0x1);}_0x584c03&&_0x417ecb['discard']();}else{const _0x1c35de=_0x417ecb['getFirstRange']();if(_0x1c35de['containsRange'](_0x1050a6,!0x0))return _0x417ecb;if(!Qt(_0x417ecb,_0x390799)){_0x1050a6['containsRange'](_0x1c35de)?_0x417ecb['removeMarkers']():_0x1c35de['containsPosition'](_0x177583)?_0x177583=_0x1c35de['end']:_0x1c35de['containsPosition'](_0x555efa)&&(_0x555efa=_0x1c35de['start']);continue;}_0x177583=_0x177583['isBefore'](_0x1c35de['start'])?_0x177583:_0x1c35de['start'],_0x555efa=_0x555efa['isAfter'](_0x1c35de['end'])?_0x555efa:_0x1c35de['end'],_0x390799=Object['assign']({},_0x417ecb['attributes']),_0x221d1b?_0x1c35de['start']['isBefore'](_0x221d1b['getFirstRange']()['start'])?(_0x221d1b['removeMarkers'](),_0x221d1b=_0x417ecb):_0x417ecb['removeMarkers']():_0x221d1b=_0x417ecb;}}}if(_0x221d1b)return this['_setSuggestionRange'](_0x221d1b,this['_model']['createRange'](_0x177583,_0x555efa)),_0x221d1b;{const _0x5b4595=_0x2c2b9e(),_0xdf9ec1=this['_model']['createRange'](_0x177583,_0x555efa),_0x2fa45f=_0x5f2060['id'],_0x2e4fe9=_0x4f7631?'deletion:'+_0x4f7631:'deletion',_0x5b631c=this['_setSuggestionData']({'id':_0x5b4595,'type':_0x2e4fe9,'createdAt':new Date(),'authorId':_0x2fa45f,'attributes':_0x390799});return this['_addSuggestionMarker'](_0x2e4fe9,_0x5b4595,_0x2fa45f,_0xdf9ec1),_0x5b631c;}}['markMultiRangeDeletion'](_0x124fd6,_0x50323b='multi',_0xa0af31={}){const _0x2a9e39=this['editor']['plugins']['get']('Users')['me'],_0x59d407=_0x124fd6['map'](_0x543a54=>new _0x943391(_0x543a54['start'],_0x543a54['end'])),_0x14850f=new Set();this['_trackingSessionId']&&(_0xa0af31['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5b61e3,meta:_0x4f2755}of this['_findSuggestions'](_0x59d407,'insertion'))_0x4f2755['isOwn']&&!_0x4f2755['isNextTo']&&_0x14850f['add'](_0x5b61e3);for(const _0x476113 of _0x14850f)if(_0x476113['isMultiRange']){const _0x32a3a9=_0x476113['getRanges']();(!_0x476113['attributes']||!_0x476113['attributes']['skipNestingCheck'])&&(_0x32a3a9['every'](_0x32bf08=>_0x59d407['some'](_0x3803e1=>_0x3803e1['containsRange'](_0x32bf08,!0x0)))&&_0x476113['discard']());if(_0x59d407['every'](_0x149641=>_0x32a3a9['some'](_0x32ca1d=>_0x32ca1d['containsRange'](_0x149641,!0x0)))){const _0x32f455=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x50323b,'accept');return this['forceDefaultExecution'](()=>_0x32f455(_0x124fd6,null,_0xa0af31)),null;}}else{const _0x388b4c=_0x476113['getFirstRange']();_0x59d407['some'](_0x3ca414=>_0x3ca414['containsRange'](_0x388b4c,!0x0))&&_0x476113['discard']();if(_0x59d407['every'](_0x2806a3=>_0x388b4c['containsRange'](_0x2806a3,!0x0))){const _0x16fa2f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x50323b,'accept');return this['forceDefaultExecution'](()=>_0x16fa2f(_0x59d407,null,_0xa0af31)),null;}}const _0x546d43=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x50323b,'join');let _0x2ef771=null;for(const _0x46798a of this['getSuggestions']())if(_0x46798a['author']['id']==_0x2a9e39['id']&&_0x46798a['isInContent']&&'deletion'==_0x46798a['type']&&_0x46798a['subType']==_0x50323b&&Qt(_0x46798a,_0xa0af31)&&(_0x546d43(_0x46798a['getRanges'](),_0x59d407)||_0x546d43(_0x59d407,_0x46798a['getRanges']()))){if(_0x2ef771){if(_0x46798a['commentThread']&&_0x46798a['commentThread']['length'])continue;for(const _0x271b94 of _0x46798a['getRanges']())_0x2ef771['isIntersectingWithRange'](_0x271b94)||_0x2ef771['addRange'](_0x271b94);_0x46798a['removeMarkers']();}else{_0x2ef771=_0x46798a;for(const _0x19cc9d of _0x59d407)_0x46798a['isIntersectingWithRange'](_0x19cc9d)||_0x46798a['addRange'](_0x19cc9d);}}if(_0x2ef771)return _0x2ef771;_0x14850f['clear']();for(const {suggestion:_0x191736,meta:_0x218c6d}of this['_findSuggestions'](_0x59d407,'deletion'))_0x218c6d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x218c6d['containsRangeInObject']&&!_0x218c6d['isInsideObject'])&&Qt(_0x191736,_0xa0af31)&&_0x14850f['add'](_0x191736);for(const _0x44641a of _0x14850f){const _0x443e11=_0x44641a['getRanges']();if(!_0xa0af31||!_0xa0af31['skipNestingCheck']){if(_0x59d407['every'](_0x3d69e3=>_0x443e11['some'](_0x4ffeaf=>_0x4ffeaf['containsRange'](_0x3d69e3,!0x0))))return _0x44641a;}(!_0x44641a['attributes']||!_0x44641a['attributes']['skipNestingCheck'])&&(_0x443e11['every'](_0xa63093=>_0x59d407['some'](_0x340648=>_0x340648['containsRange'](_0xa63093,!0x0)))&&_0x44641a['discard']());}const _0x514441=_0x2c2b9e(),_0x2f88e2=_0x2a9e39['id'],_0x1eef31='deletion:'+_0x50323b,_0x1805a0=this['_setSuggestionData']({'id':_0x514441,'type':_0x1eef31,'createdAt':new Date(),'authorId':_0x2f88e2,'attributes':_0xa0af31});for(const _0x32da60 of _0x59d407)_0x32da60['detach'](),_0x32da60['isCollapsed']||'$graveyard'==_0x32da60['root']['rootName']||this['_addSuggestionMarker'](_0x1eef31,_0x514441,_0x2f88e2,_0x32da60,T['getMultiRangeId']());return _0x1805a0;}['markAttributeChange'](_0x3e63f7,_0x5923ff,_0x2192c9,_0x5a1393,_0xa7a25f){if(_0x3e63f7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x284357=this['editor']['plugins']['get']('Users')['me']['id'],_0x253298=Array['from'](this['_suggestions']['values']())['filter'](_0x5a81fa=>'attribute'==_0x5a81fa['type']&&_0x5a81fa['data']['key']==_0x5923ff&&_0x5a81fa['isIntersectingWithRange'](_0x3e63f7));if(this['_trackingSessionId']&&(_0xa7a25f['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1c77cb=this['_findSuggestions'](_0x3e63f7,'insertion')['filter'](({meta:_0x490ff8})=>_0x490ff8['isOwn']&&!_0x490ff8['isInsideObject']&&!_0x490ff8['isNextTo'])['map'](({suggestion:_0x4d0ad6})=>_0x4d0ad6);_0x253298['unshift'](..._0x1c77cb);}const _0x520dc4=new Map([[_0x3e63f7,_0x2192c9]]);for(const _0x296763 of _0x253298){const _0x59bd50='attribute'==_0x296763['type']?_0x296763['data']['oldValue']:void 0x0,_0x419c8e=_0x296763['getFirstRange'](),_0x403445=Array['from'](_0x520dc4['keys']())['find'](_0x319ea4=>_0x319ea4['isIntersecting'](_0x419c8e));if(!_0x403445)continue;const _0x41befc=_0x403445['getDifference'](_0x419c8e);this['_isBlockAttribute'](_0x5923ff)&&'insertion'==_0x296763['type']&&0x0!=_0x41befc['length']||(_0x520dc4['delete'](_0x403445),_0x41befc['forEach'](_0x60b9d9=>{_0x520dc4['set'](_0x60b9d9,_0x2192c9);}),'insertion'!=_0x296763['type']&&_0x59bd50!=_0x5a1393&&_0x520dc4['set'](_0x403445['getIntersection'](_0x419c8e),_0x59bd50));}const _0x2c79d7=[];for(const [_0x1a74b7,_0x9fc553]of _0x520dc4){const _0x56194c=_0x2c2b9e(),_0x41ab40={'key':_0x5923ff,'oldValue':_0x9fc553,'newValue':_0x5a1393};_0x5923ff['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':_0x5923ff});const _0x2804b6=('attribute:'+(_0x5923ff+'|'+Lt({'newValue':_0x5a1393})))['substring'](0x0,0x3c),_0x55b966=this['_setSuggestionData']({'id':_0x56194c,'type':_0x2804b6,'data':_0x41ab40,'createdAt':new Date(),'authorId':_0x284357,'attributes':_0xa7a25f});_0x2c79d7['push'](_0x55b966),this['_addSuggestionMarker'](_0x2804b6,_0x56194c,_0x284357,_0x1a74b7);}return _0x2c79d7;}['enableDefaultAttributesIntegration'](_0x3bc524){this['enableCommand'](_0x3bc524,(_0x50a0f8,..._0x3c605a)=>{this['recordAttributeChanges'](()=>{_0x50a0f8(..._0x3c605a);});});}['registerBlockAttribute'](_0x2e77f4){this['_blockAttributeKeys']['add'](_0x2e77f4);}['registerInlineAttribute'](_0x558fef){this['_inlineAttributeKeys']['add'](_0x558fef);}['startTrackingSession'](_0x5d928f){return this['_trackingSessionId']=void 0x0!==_0x5d928f?_0x5d928f:_0x2c2b9e(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3d071e){return'attribute'==_0x3d071e['type']?_0x3d071e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x566a2e,_0x4b1398){const _0xb1c984=_0x566a2e['getFirstMarker']();this['_model']['change'](_0x1db900=>{_0x1db900['updateMarker'](_0xb1c984,{'range':_0x4b1398});});}['_addThreadToSuggestion'](_0x16a6b7){const _0x32386f=_0x16a6b7['id'],_0x491c78=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x32386f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x491c78,'threadId':_0x32386f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2d37d9=this['_commentsRepository']['getCommentThread'](_0x32386f);_0x2d37d9['unbind']('isRemovable'),_0x2d37d9['isRemovable']=!0x1,_0x16a6b7['commentThread']=_0x2d37d9;}['_checkSuggestionCorrectness'](_0x5b92e6,_0x5f1f9d,_0x390203,_0x59efe0){if(_0x5b92e6['type']!=_0x5f1f9d||_0x5b92e6['subType']!=_0x390203||_0x5b92e6['creator']['id']!=_0x59efe0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x7be711('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x395158,_0x4f5b05){const _0x1697c1=_0x395158['getFirstRange']();if(_0x4f5b05['isEqual'](_0x1697c1))_0x395158['removeMarkers']();else{if(_0x1697c1['containsRange'](_0x4f5b05)){const _0xff1283=this['_model']['createPositionAt'](_0x4f5b05['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x395158,this['_model']['createRange'](_0x1697c1['start'],_0xff1283));const _0x167e37=_0x2c2b9e(),_0x5a23ac=_0x395158['creator']['id'],_0x308352=_0x395158['type']+':'+_0x395158['subType'];this['_setSuggestionData']({'id':_0x167e37,'type':_0x308352,'createdAt':new Date(),'authorId':_0x5a23ac,'data':_0x395158['data'],'attributes':_0x395158['attributes']});const _0x399a95=this['_model']['createPositionAt'](_0x4f5b05['end']['parent'],'after'),_0x3cbeb4=this['_model']['createRange'](_0x399a95,_0x1697c1['end']);this['_addSuggestionMarker'](_0x308352,_0x167e37,_0x5a23ac,_0x3cbeb4);}else{if(_0x1697c1['containsPosition'](_0x4f5b05['start'])){const _0x201482=this['_model']['createPositionAt'](_0x4f5b05['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x395158,this['_model']['createRange'](_0x1697c1['start'],_0x201482));}else{const _0x31a256=this['_model']['createPositionAt'](_0x4f5b05['end']['parent'],'after');this['_setSuggestionRange'](_0x395158,this['_model']['createRange'](_0x31a256,_0x1697c1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x356fb0){for(const {suggestion:_0x3d05c1,meta:_0x309776}of this['_findSuggestions'](_0x356fb0,'insertion')){if(!_0x309776['isOwn'])continue;const _0x5f3d63=_0x3d05c1['getRanges']();for(const _0x1402e5 of _0x5f3d63)if(!_0x356fb0['getDifference'](_0x1402e5)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1e5cd9){const _0x12f328=this['editor']['plugins']['get']('Users')['getUser'](_0x1e5cd9);if(!_0x12f328)throw new _0x7be711('track-changes-user-not-found',this);return _0x12f328;}['_getExternalAuthor'](_0x36007a){const _0x28e1a9=this['editor']['plugins']['get']('Users'),_0x1cac47=_0x12f7dc('external:'+_0x36007a),_0x2158e8=_0x28e1a9['getUser'](_0x1cac47);return _0x2158e8||_0x28e1a9['addUser']({'id':_0x1cac47,'name':_0x36007a});}['_createSuggestion'](_0x27a8f2,_0x1140b5,_0x120db6,_0x5e86d3,_0x1637f3,_0xfb8305){const _0x379495=this['_getAuthorFromId'](_0x5e86d3),_0x4b44e4=this['_suggestionFactory']['buildSuggestion'](_0x27a8f2,_0x1140b5,_0x120db6,_0x379495,_0x1637f3,_0x5878d2=>{this['_updateSuggestionData'](_0x120db6,{'attributes':_0x5878d2});const _0x380121=this['getSuggestion'](_0x120db6);this['_joinWithAdjacentSuggestions'](new Set([_0x380121])),this['_refreshSuggestionsChain'](new Set([_0x380121]));},_0xfb8305);return this['listenTo'](_0x4b44e4,'accept',()=>{this['_updateSuggestionData'](_0x120db6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4b44e4,'discard',()=>{this['_updateSuggestionData'](_0x120db6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x120db6,_0x4b44e4),this['_suggestionState']['set'](_0x4b44e4,'notReady'),_0x4b44e4;}['_splitMarkerName'](_0x3c0c97){const _0x209224=_0x3c0c97['split'](':');return{'group':_0x209224[0x0],'type':_0x209224[0x1],'subType':_0x209224['length']>=0x5?_0x209224[0x2]:null,'id':_0x209224['length']<0x5?_0x209224[0x2]:_0x209224[0x3],'authorId':_0x209224['length']<0x5?_0x209224[0x3]:_0x209224[0x4],'markerCount':0x6==_0x209224['length']?_0x209224[0x5]:null};}['_breakSuggestionMarker'](_0x5b7746,_0xeff446,_0x2e54b7){const _0x5adb79=_0x5b7746['getFirstRange'](),_0x30437a=_0x5adb79['start'],_0x205649=_0x5adb79['end'];this['_setSuggestionRange'](_0x5b7746,this['_model']['createRange'](_0x30437a,_0xeff446));const _0x16246c=_0x2c2b9e(),_0x509497=_0x5b7746['creator']['id'],_0x208f2c=_0x5b7746['type']+(_0x5b7746['subType']?':'+_0x5b7746['subType']:'');this['_setSuggestionData']({'id':_0x16246c,'type':_0x208f2c,'createdAt':new Date(),'authorId':_0x509497,'originalSuggestionId':_0x5b7746['_originalSuggestionId']||_0x5b7746['id'],'attributes':_0x5b7746['attributes'],'data':_0x5b7746['data']});const _0x6f1576=this['_getAttributeKey'](_0x5b7746);('formatBlock'==_0x5b7746['type']||_0x6f1576&&this['_isBlockAttribute'](_0x6f1576))&&(_0x2e54b7=this['_model']['createPositionBefore'](_0x2e54b7['parent'])),this['_addSuggestionMarker'](_0x208f2c,_0x16246c,_0x509497,this['_model']['createRange'](_0x2e54b7,_0x205649));}['_findSuggestions'](_0x4154fa,_0xbf07f7=null){const _0x37b562=[],_0x3a9a9f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4154fa)||(_0x4154fa=[_0x4154fa]);for(const _0x11f0c5 of this['getSuggestions']()){if(!_0x11f0c5['isInContent'])continue;if(_0xbf07f7&&_0x11f0c5['type']!=_0xbf07f7)continue;let _0x349e87=!0x1;for(const _0x215ffe of _0x11f0c5['getRanges']()){for(const _0x282c79 of _0x4154fa){const _0x200fac=_0x282c79['start']['isEqual'](_0x215ffe['end'])||_0x282c79['end']['isEqual'](_0x215ffe['start']);if(_0x200fac||_0x282c79['getIntersection'](_0x215ffe)){const _0x4c53ea=_0x282c79['containsRange'](_0x215ffe)&&Ft(this['_model']['schema'],_0x215ffe['start'],_0x282c79),_0x57c4d5=_0x215ffe['containsRange'](_0x282c79)&&Ft(this['_model']['schema'],_0x282c79['start'],_0x215ffe);_0x37b562['push']({'suggestion':_0x11f0c5,'meta':{'isOwn':_0x3a9a9f==_0x11f0c5['author'],'isNextTo':_0x200fac,'isInsideObject':_0x4c53ea,'containsRangeInObject':_0x57c4d5}}),_0x349e87=!0x0;break;}}if(_0x349e87)break;}}return _0x37b562;}['_addSuggestionMarker'](_0x15d319,_0x26897c,_0x462ddc,_0x22a834,_0x36d314){this['_model']['change'](_0x2933be=>{let _0x2bd953='suggestion:'+_0x15d319+':'+_0x26897c+':'+_0x462ddc;_0x36d314&&(_0x2bd953=_0x2bd953+':'+_0x36d314),_0x2933be['addMarker'](_0x2bd953,{'range':_0x22a834,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xc1b1ba){const _0x228754=_0xc1b1ba['previous'],_0x4972c3=_0xc1b1ba['next'];_0xc1b1ba['previous']=null,_0xc1b1ba['next']=null,null!=_0x228754&&_0x228754['next']==_0xc1b1ba&&(_0x228754['next']=_0x4972c3),null!=_0x4972c3&&_0x4972c3['previous']==_0xc1b1ba&&(_0x4972c3['previous']=_0x228754),'ready'==this['_suggestionState']['get'](_0xc1b1ba)&&(this['_suggestionState']['set'](_0xc1b1ba,'removed'),this['fire']('suggestionUnloaded',_0xc1b1ba,_0x228754,_0x4972c3));}['_setSuggestionData'](_0x2963a6){const _0x8e4e1=_0x2963a6['id'],_0x3ff3ed=this['addSuggestionData'](_0x2963a6);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1feac2=this['editor']['plugins']['get']('PendingActions'),_0x23d598=_0x3ff3ed['hasComments'],_0x47323e=_0x3ff3ed['subType']?_0x3ff3ed['type']+':'+_0x3ff3ed['subType']:_0x3ff3ed['type'],_0x1bc7f5=this['editor']['locale'],_0x1540c4=_0x1feac2['add'](o(_0x1bc7f5,'PENDING_ACTION_SUGGESTION')),_0x596b8a={'id':_0x8e4e1,'type':_0x47323e,'hasComments':_0x23d598,'data':_0x2963a6['data']||null,'originalSuggestionId':_0x2963a6['originalSuggestionId']||null,'attributes':_0x3ff3ed['attributes']};this['_adapter']['addSuggestion'](_0x596b8a)['then'](_0x21171a=>{_0x3ff3ed['_saved']=!0x0,_0x1feac2['remove'](_0x1540c4),_0x21171a&&_0x21171a['createdAt']&&(this['_suggestions']['get'](_0x8e4e1)['createdAt']=_0x21171a['createdAt']);})['catch'](_0x3e15dc=>{throw _0x2414da('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3ff3ed['discard']();}),_0x3ff3ed['stopListening'](),this['_suggestions']['delete'](_0x3ff3ed['id']),this['_suggestionState']['delete'](_0x3ff3ed),_0x3e15dc;});}return _0x3ff3ed;}['_isBlockAttribute'](_0x12938e){return this['_blockAttributeKeys']['has'](_0x12938e);}['_updateSuggestionData'](_0x21f197,_0x4ceb7e){const _0x3ba926=this['editor']['plugins']['get']('PendingActions'),_0x58bee4=this['getSuggestion'](_0x21f197);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x58bee4['_saved']){const _0x5d548a=_0x3ba926['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x21f197,_0x4ceb7e)['then'](()=>{_0x3ba926['remove'](_0x5d548a);});}else _0x58bee4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x21f197,_0x4ceb7e);});}}['_getSuggestionData'](_0x4e0455){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x7be711('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4e0455);}['_handleNewSuggestionMarker'](_0x493a03){const {id:_0xcfd6db,type:_0x192c2b,subType:_0x3795fe,authorId:_0x2a2e80}=this['_splitMarkerName'](_0x493a03),_0x167553=this['_suggestions']['get'](_0xcfd6db)||this['_createSuggestion'](_0x192c2b,_0x3795fe,_0xcfd6db,_0x2a2e80,{});switch(this['_checkSuggestionCorrectness'](_0x167553,_0x192c2b,_0x3795fe,_0x2a2e80),this['_suggestionState']['get'](_0x167553)){case'notReady':this['_getSuggestionData'](_0xcfd6db)['then'](_0x4fe8c0=>{let _0x5bcbcc=Promise['resolve']();_0x4fe8c0['hasComments']&&(_0x5bcbcc=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xcfd6db})),_0x5bcbcc['then'](()=>{this['addSuggestionData'](_0x4fe8c0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x167553,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xcfd6db,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x167553,'ready'),this['fire']('suggestionLoaded',_0x167553);break;case'ready':this['fire']('suggestionChanged',_0x167553);}return _0x167553['addMarkerName'](_0x493a03),_0x167553;}['_refreshSuggestionsChain'](_0x364cdc){const _0x1d58dd=Array['from'](_0x364cdc),_0x5ba4a2=_0x1d58dd['filter'](_0x103877=>'attribute'==_0x103877['type']);this['_refreshAttributeSuggestionsChain'](_0x5ba4a2);const _0x188e9c=_0x1d58dd['filter'](_0x19c1f6=>!_0x19c1f6['isMultiRange']&&'attribute'!=_0x19c1f6['type']),_0xd93afa=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c812d=>!_0x2c812d['isMultiRange']&&'attribute'!=_0x2c812d['type']),_0x4983ba=_0xd93afa['filter'](_0xa047ef=>!_0x364cdc['has'](_0xa047ef)),_0x3f0a03=new Map(_0xd93afa['map'](_0x1081e7=>[_0x1081e7,this['_suggestionFactory']['getSuggestionCallback'](_0x1081e7['type'],_0x1081e7['subType'],'chain')])),_0x52f189=new Map(_0xd93afa['map'](_0x37e891=>[_0x37e891,_0x37e891['getFirstRange']()])),_0x13559e=new Set(),_0x5c9011=new Set();for(let _0x4ccc8e=0x0;_0x4ccc8e<_0x188e9c['length'];_0x4ccc8e++)_0x2507cf(_0x188e9c[_0x4ccc8e],_0x188e9c,_0x4ccc8e+0x1);for(let _0x2f7498=0x0;_0x2f7498<_0x188e9c['length'];_0x2f7498++)_0x2507cf(_0x188e9c[_0x2f7498],_0x4983ba,0x0);const _0x8d51cf=new Set();for(let _0x3a6f28=0x0;_0x3a6f28<_0x188e9c['length'];_0x3a6f28++){const _0x297467=_0x188e9c[_0x3a6f28];!_0x5c9011['has'](_0x297467)&&_0x297467['previous']&&(_0x8d51cf['add'](_0x297467['previous']),_0x297467['previous']['next']===_0x297467&&(_0x297467['previous']['next']=null),_0x297467['previous']=null),!_0x13559e['has'](_0x297467)&&_0x297467['next']&&(_0x8d51cf['add'](_0x297467['next']),_0x297467['next']['previous']===_0x297467&&(_0x297467['next']['previous']=null),_0x297467['next']=null);}function _0x2507cf(_0x59bf2d,_0x4b6453,_0x28b000){for(let _0x29a19e=_0x28b000;_0x29a19e<_0x4b6453['length'];_0x29a19e++){const _0x23dd8d=_0x1ade16(_0x59bf2d,_0x4b6453[_0x29a19e]);_0x23dd8d&&(_0x23dd8d[0x0]['next']=_0x23dd8d[0x1],_0x23dd8d[0x1]['previous']=_0x23dd8d[0x0],_0x13559e['add'](_0x23dd8d[0x0]),_0x5c9011['add'](_0x23dd8d[0x1]));}}function _0x1ade16(_0x4f0649,_0x5a8c99){if(_0x4f0649['author']['id']!==_0x5a8c99['author']['id'])return null;const _0x37e1a2=_0x3f0a03['get'](_0x4f0649)(_0x4f0649,_0x5a8c99,_0x52f189['get'](_0x4f0649),_0x52f189['get'](_0x5a8c99));if(!_0x37e1a2)return null;return _0x3f0a03['get'](_0x5a8c99)(_0x4f0649,_0x5a8c99,_0x52f189['get'](_0x4f0649),_0x52f189['get'](_0x5a8c99))?_0x37e1a2[0x1]['commentThread']&&_0x37e1a2[0x1]['commentThread']['length']?null:_0x37e1a2:null;}_0x8d51cf['size']&&this['_refreshSuggestionsChain'](_0x8d51cf);}['_refreshAttributeSuggestionsChain'](_0x47e4f3){if(0x0==_0x47e4f3['length'])return;const _0x5a0997=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x550932=>'attribute'==_0x550932['type']&&_0x550932['_isDataLoaded']),_0x5edfad=[],_0xcb772a=new Map();for(const _0x188e8 of _0x5a0997){const _0x4bf576=_0x12f7dc(_0x188e8['attributes']);_0xcb772a['has'](_0x4bf576)||(_0xcb772a['set'](_0x4bf576,_0x5edfad['length']),_0x5edfad['push']([]));const _0x125a72=_0xcb772a['get'](_0x4bf576);_0x5edfad[_0x125a72]['push'](_0x188e8);}!(function(){_0x5edfad['sort']((_0x386e28,_0x2a9720)=>{const _0xa4773f=_0x386e28[0x0]['createdAt'],_0x1425f7=_0x2a9720[0x0]['createdAt'];return _0xa4773f==_0x1425f7?_0x386e28[0x0]['attributes']['groupId']<_0x2a9720[0x0]['attributes']['groupId']?-0x1:0x1:_0xa4773f<_0x1425f7?-0x1:0x1;});for(const _0x338187 of _0x5edfad)_0x338187['sort']((_0x46befe,_0x3525a1)=>_0x46befe['id']<_0x3525a1['id']?-0x1:0x1);}());for(let _0x477a62=0x0;_0x477a62<_0x5edfad['length'];_0x477a62++){if(0x0==_0x5edfad[_0x477a62]['length'])continue;const _0xc82854=[];for(let _0x539763=_0x477a62+0x1;_0x539763<_0x5edfad['length'];_0x539763++)0x0!=_0x5edfad[_0x539763]['length']&&_0x129a85(_0x5edfad[_0x477a62],_0x5edfad[_0x539763])&&_0xc82854['push'](_0x539763);for(const _0xd5ac9e of _0xc82854)_0x5edfad[_0x477a62]=_0x5edfad[_0x477a62]['concat'](_0x5edfad[_0xd5ac9e]),_0x5edfad[_0xd5ac9e]=[];}for(const _0x5400d7 of _0x5edfad)for(let _0x344c93=0x0;_0x344c93<_0x5400d7['length'];_0x344c93++){const _0xa24f83=_0x5400d7[_0x344c93+0x1]||null;_0x5400d7[_0x344c93]['next']!==_0xa24f83&&(_0x5400d7[_0x344c93]['next']=_0xa24f83);}for(const _0x186446 of _0x5edfad)for(let _0x1accc1=0x0;_0x1accc1<_0x186446['length'];_0x1accc1++){const _0x52a4b1=_0x186446[_0x1accc1-0x1]||null;_0x186446[_0x1accc1]['previous']!==_0x52a4b1&&(_0x186446[_0x1accc1]['previous']=_0x52a4b1);}function _0x129a85(_0x3cd260,_0x3adfbe){if(_0x3cd260[0x0]['attributes']['groupId']!==_0x3adfbe[0x0]['attributes']['groupId']&&_0x3cd260[0x0]['author']!==_0x3adfbe[0x0]['author'])return!0x1;if(!function(_0x563512,_0x573bc3){if(!_0x563512['hasComments']&&!_0x573bc3['hasComments'])return!0x0;if(_0x563512['hasComments']&&_0x573bc3['hasComments'])return!0x1;if(_0x563512['hasComments']&&_0x573bc3['createdAt']<_0x563512['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x573bc3['hasComments']&&_0x563512['createdAt']<_0x573bc3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3cd260[0x0],_0x3adfbe[0x0]))return!0x1;const _0x45efe6=Ut(_0x3cd260[0x0]['attributes'],['groupId','trackingSessionId']),_0x4e0dc4=Ut(_0x3adfbe[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2ea7bb(_0x45efe6,_0x4e0dc4))return!0x1;if(_0x3cd260[0x0]['attributes']['groupId']==_0x3adfbe[0x0]['attributes']['groupId'])return!0x0;if(_0x3cd260[0x0]['attributes']['trackingSessionId']!==_0x3adfbe[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3cd260['every'](_0x3e1f16=>_0x3adfbe['some'](_0x52bce3=>_0x3e1f16['getFirstRange']()['isEqual'](_0x52bce3['getFirstRange']())))&&_0x3adfbe['every'](_0x5108c2=>_0x3cd260['some'](_0x311833=>_0x5108c2['getFirstRange']()['isEqual'](_0x311833['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2956cd){const _0x2705bf=Array['from'](_0x2956cd),_0x251f56=this['getSuggestions']({'skipNotAttached':!0x0}),_0xcbfe43=_0x251f56['filter'](_0x57fc48=>!_0x2956cd['has'](_0x57fc48)),_0x3e65cf=new Map(_0x2705bf['map'](_0x13b194=>[_0x13b194,this['_suggestionFactory']['getSuggestionCallback'](_0x13b194['type'],_0x13b194['subType'],'join')])),_0x37f62e=new Map(_0x251f56['map'](_0x3503f9=>[_0x3503f9,_0x3503f9['getRanges']()]));for(let _0x432d5d=0x0;_0x432d5d<_0x2705bf['length'];_0x432d5d++){if(_0xcdc59c(this,_0x2705bf[_0x432d5d],_0x2705bf,_0x432d5d+0x1))return!0x0;}for(let _0x5c2504=0x0;_0x5c2504<_0x2705bf['length'];_0x5c2504++){if(_0xcdc59c(this,_0x2705bf[_0x5c2504],_0xcbfe43,0x0))return!0x0;}return!0x1;function _0xcdc59c(_0x16e389,_0x384fc9,_0x5cf1b8,_0x26f524){for(let _0x3b201f=_0x26f524;_0x3b201f<_0x5cf1b8['length'];_0x3b201f++){const _0x455622=_0x5cf1b8[_0x3b201f];if(_0x455622['type']!==_0x384fc9['type']||_0x455622['author']['id']!==_0x384fc9['author']['id']||_0x455622['subType']!==_0x384fc9['subType'])continue;if(!Wt(_0x384fc9,_0x455622))continue;if('attribute'==_0x384fc9['type']&&_0x384fc9['data']['oldValue']!=_0x455622['data']['oldValue'])continue;if('attribute'==_0x384fc9['type']&&_0x16e389['_isBlockAttribute'](_0x384fc9['data']['key']))continue;if('formatBlock'==_0x384fc9['type']){const _0x364491=_0x16e389['editor']['model'],_0x560fe3=_0x384fc9['getContainedElement']();if(_0x560fe3&&(_0x364491['schema']['isObject'](_0x560fe3)||_0x364491['schema']['isLimit'](_0x560fe3)))continue;}const _0xbd064f=_0x3e65cf['get'](_0x384fc9),_0x837de7=_0x37f62e['get'](_0x384fc9),_0x477e48=_0x37f62e['get'](_0x455622),_0x379008=_0x384fc9['commentThread']&&_0x384fc9['commentThread']['length'],_0x28573a=_0x455622['commentThread']&&_0x455622['commentThread']['length'];if(!_0x379008&&_0xbd064f(_0x477e48,_0x837de7))return _0x16e389['_joinSuggestions'](_0x455622,_0x384fc9),_0x37f62e['delete'](_0x384fc9),!0x0;if(!_0x28573a&&_0xbd064f(_0x837de7,_0x477e48))return _0x16e389['_joinSuggestions'](_0x384fc9,_0x455622),_0x37f62e['delete'](_0x455622),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4ca336,_0x3d264b){if(_0x4ca336['isMultiRange']){for(const _0x41e3ea of _0x3d264b['getRanges']())_0x4ca336['addRange'](_0x41e3ea);}else{const _0x69083=_0x3d264b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4ca336,this['_model']['createRange'](_0x4ca336['getFirstRange']()['start'],_0x69083));}_0x3d264b['removeMarkers']();}['_getMarkerAnnouncementText'](_0xa91fe1,_0x1b510b,_0x3e53fc){const _0x322d54=_0xa91fe1['startsWith']('format')||_0xa91fe1['startsWith']('attribute')?'FORMATTING':_0xa91fe1['toUpperCase']();return o(this['editor']['locale'],_0x1b510b+'_'+_0x322d54+'_SUGGESTION_ANNOUNCEMENT',_0x3e53fc);}['_initAriaMarkerChangeAnnouncements'](){const _0x47c548=this['editor'];if(!_0x47c548['ui'])return;const {ariaLiveAnnouncer:_0x2b098a}=_0x47c548['ui'];_0x3e292(this['_model'],({left:_0x3967c0,entered:_0x391264})=>{for(const _0x24759b of _0x3967c0){const {group:_0x1f0267,type:_0x33ac0c}=this['_splitMarkerName'](_0x24759b['name']);if('suggestion'===_0x1f0267){_0x2b098a['announce'](this['_getMarkerAnnouncementText'](_0x33ac0c,'LEAVE'));break;}}for(const _0x416fcd of _0x391264){const {group:_0x474437,type:_0x4a699e}=this['_splitMarkerName'](_0x416fcd['name']);if('suggestion'===_0x474437){_0x2b098a['announce'](this['_getMarkerAnnouncementText'](_0x4a699e,'ENTER',_0x1219b2(_0x5e10d1)));break;}}});}['_processAttributeChanges'](_0x217dfd){if(this['_recordAttributeSuggestions'])return!0x1;const _0x18c89b=this['editor'],_0x208cdc=_0x18c89b['model']['document']['differ']['getChanges']();if(0x0==_0x208cdc['length'])return!0x1;const _0x3a111a=[],_0xaddc73=_0x208cdc['filter'](_0x3e39b3=>'attribute'==_0x3e39b3['type']),_0x847de2=_0x208cdc['filter'](_0x5b01f5=>'insert'==_0x5b01f5['type']&&'$text'!=_0x5b01f5['name']),_0x410a32=_0x208cdc['filter'](_0x1f65ff=>'remove'==_0x1f65ff['type']&&'$text'!=_0x1f65ff['name']);for(const _0x4d1cc4 of _0xaddc73)_0x3a111a['push']({'key':_0x4d1cc4['attributeKey'],'newValue':_0x4d1cc4['attributeNewValue'],'oldValue':_0x4d1cc4['attributeOldValue'],'range':Ht(_0x4d1cc4['range'],_0x18c89b['model'])});for(const _0x5584b4 of _0x847de2){const _0xbff377=_0x410a32['find'](_0x323ea1=>_0x323ea1['position']['isEqual'](_0x5584b4['position']));_0xbff377&&_0x3a111a['push']({'key':m,'newValue':_0x5584b4['name'],'oldValue':_0xbff377['name'],'range':_0x18c89b['model']['createRangeOn'](_0x5584b4['position']['nodeAfter'])});}return 0x0!=_0x3a111a['length']&&this['_reduceExistingSuggestions'](_0x217dfd,_0x3a111a);}['_processAttributeSuggestions'](_0x4a0fa9){let _0x14ca30=!0x1;const _0x2d433e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x182eaa=>_0x182eaa['data']['newRange']&&_0x182eaa['name']['startsWith']('suggestion:attribute:'));for(const _0x2a87af of _0x2d433e){const {subType:_0x247200,id:_0x4d604a}=this['_splitMarkerName'](_0x2a87af['name']),_0x12bf3a=_0x247200['split']('|')[0x0];for(const _0x263336 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x263336['id']!=_0x4d604a&&'attribute'==_0x263336['type']&&_0x263336['data']&&_0x263336['data']['key']==_0x12bf3a&&_0x263336['getFirstRange']()['isIntersecting'](_0x2a87af['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x263336,_0x2a87af['data']['newRange'],_0x4a0fa9),_0x14ca30=!0x0);}return _0x14ca30;}['recordAttributeChanges'](_0x2c055b){this['_recordAttributeSuggestions']=!0x0,_0x2c055b();}['_isRegisteredAttribute'](_0xa9a2e8){const _0x539f8b=this['_isBlockAttribute'](_0xa9a2e8),_0x134034=this['_inlineAttributeKeys']['has'](_0xa9a2e8);return _0x539f8b||_0x134034;}['_reduceExistingSuggestions'](_0x220e22,_0x588250){if(0x0==_0x588250['length'])return!0x1;let _0x1c39da=!0x1;for(const _0x329c2a of _0x588250){const _0x5a04c9=this['_findSuggestions'](_0x329c2a['range'],'attribute')['filter'](_0x4ffea4=>!_0x4ffea4['meta']['isNextTo'])['map'](_0x44f8b2=>_0x44f8b2['suggestion']),_0x595ee8=_0x12f7dc({'newValue':_0x329c2a['newValue']});_0x5a04c9['filter'](_0x40dc3a=>{const [_0x1e70f1,_0x8fc0c9]=_0x40dc3a['subType']['split']('|');return _0x1e70f1==_0x329c2a['key']&&_0x8fc0c9!=_0x595ee8;})['forEach'](_0x27280f=>{this['_reduceSuggestionAttributeRange'](_0x27280f,_0x329c2a['range'],_0x220e22),_0x1c39da=!0x0;});}return _0x1c39da;}['_reduceSuggestionAttributeRange'](_0x537ef9,_0x8d6efe,_0x5926b6){const _0x3584b3=_0x537ef9['getFirstRange']()['getDifference'](_0x8d6efe);0x0!==_0x3584b3['length']?0x1!==_0x3584b3['length']?this['_breakSuggestionMarker'](_0x537ef9,_0x8d6efe['start'],_0x8d6efe['end']):this['_setSuggestionRange'](_0x537ef9,_0x3584b3[0x0]):_0x5926b6['removeMarker'](_0x537ef9['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1d1072){this['_editor']=_0x1d1072,this['_model']=_0x1d1072['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x55d6ed,_0x45ee6d,_0x500018,_0x29e67a,_0x5a6654,_0x27fba2,_0x390b1a){return new T(this['_model'],{'type':_0x55d6ed,'subType':_0x45ee6d,'id':_0x500018,'originalSuggestionId':_0x390b1a,'author':_0x29e67a,'creator':_0x29e67a,'attributes':_0x5a6654,'onAttributesChange':_0x27fba2,'onAccept':(..._0x28c0e0)=>this['getSuggestionCallback'](_0x55d6ed,_0x45ee6d,'accept')(..._0x28c0e0),'onDiscard':(..._0x1fb0cb)=>this['getSuggestionCallback'](_0x55d6ed,_0x45ee6d,'discard')(..._0x1fb0cb)});}['registerCustomCallback'](_0x3f67fa,_0x457efe,_0x57aaec,_0x212970){const _0x445cf1=_0x3f67fa+':'+_0x457efe+':'+_0x57aaec;this['_customCallbacks']['set'](_0x445cf1,_0x212970);}['getSuggestionCallback'](_0x325388,_0x20ec06,_0x3f959d){const _0x219834=_0x325388+':'+_0x20ec06+':'+_0x3f959d;return this['_customCallbacks']['get'](_0x219834)||this['_defaultCallbacks']['get'](_0x325388+':'+_0x3f959d);}['_registerDefaultCallbacks'](){const _0x41a6df=()=>!0x1,_0x3ebffc=_0x239a27=>{_0x239a27['sort']((_0x287327,_0x502a35)=>_0x287327['start']['isBefore'](_0x502a35['start'])?0x1:-0x1),this['_model']['change'](_0x5ef2a7=>{for(const _0xf917a3 of _0x239a27){let _0x23ea87;_0x23ea87=_0xf917a3['end']['isAtEnd']&&_0xf917a3['end']['parent']==_0xf917a3['start']['nodeAfter']?_0x5ef2a7['createSelection'](_0xf917a3['start']['nodeAfter'],'on'):_0x5ef2a7['createSelection'](_0xf917a3),this['_model']['deleteContent'](_0x23ea87,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2f88ff=(_0x2ca48e,_0x42516c)=>{_0x42516c&&this['_model']['change'](_0x22c7af=>{const {commandName:_0x5f4b63,commandParams:_0x13e489=[]}=_0x42516c,_0xdf5da9=_0x2ca48e['map'](_0x1f7652=>(Pt(_0x1f7652)&&(_0x1f7652=this['_model']['createRange'](_0x1f7652['end'])),_0x1f7652))['filter'](_0x3ed6ac=>'$graveyard'!==_0x3ed6ac['root']['rootName']);if(_0xdf5da9['length']<0x1)return;const _0x5245fe=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x54f4d7=>_0x943391['fromRange'](_0x54f4d7));_0x22c7af['setSelection'](_0xdf5da9);for(const _0x4cb108 of this['_editor']['commands']['commands']())_0x4cb108['refresh']();_0x13e489['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5f4b63,..._0x13e489);const _0x39b4f1=_0x5245fe['filter'](_0xa42d0e=>'$graveyard'!=_0xa42d0e['root']['rootName']);_0x39b4f1['length']>0x0&&_0x22c7af['setSelection'](_0x39b4f1);for(const _0x15732d of _0x5245fe)_0x15732d['detach']();});},_0x3e7e8=(_0x5d1f78,_0x4252a5)=>0x1==_0x5d1f78['length']&&0x1==_0x4252a5['length']&&_0x5d1f78[0x0]['end']['isEqual'](_0x4252a5[0x0]['start']),_0x64aae3=(_0x52cb58,_0x1bc423,_0x3f5bfc,_0x59bb1b)=>zt(_0x52cb58,_0x1bc423,_0x3f5bfc,_0x59bb1b)?[_0x52cb58,_0x1bc423]:zt(_0x1bc423,_0x52cb58,_0x59bb1b,_0x3f5bfc)?[_0x1bc423,_0x52cb58]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x41a6df),this['_defaultCallbacks']['set']('insertion:discard',_0x3ebffc),this['_defaultCallbacks']['set']('insertion:join',_0x3e7e8),this['_defaultCallbacks']['set']('insertion:chain',_0x64aae3),this['_defaultCallbacks']['set']('deletion:accept',_0x3ebffc),this['_defaultCallbacks']['set']('deletion:discard',_0x41a6df),this['_defaultCallbacks']['set']('deletion:join',_0x3e7e8),this['_defaultCallbacks']['set']('deletion:chain',_0x64aae3),this['_defaultCallbacks']['set']('formatInline:accept',_0x2f88ff),this['_defaultCallbacks']['set']('formatInline:discard',_0x41a6df),this['_defaultCallbacks']['set']('formatInline:join',_0x3e7e8),this['_defaultCallbacks']['set']('formatInline:chain',_0x41a6df),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2f88ff),this['_defaultCallbacks']['set']('formatBlock:discard',_0x41a6df),this['_defaultCallbacks']['set']('formatBlock:join',_0x3e7e8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x41a6df),this['_defaultCallbacks']['set']('attribute:accept',_0x41a6df),this['_defaultCallbacks']['set']('attribute:discard',(_0x2597f6,_0x1c4ccb)=>{if(!_0x1c4ccb)return;const _0x18d381=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1ccd9a=>{if(_0x1c4ccb['key']==m)for(const _0x42a143 of _0x2597f6){const _0x63f783=_0x42a143['start']['nodeAfter'],_0x85ee45=_0x1c4ccb['oldValue'];_0x1ccd9a['rename'](_0x63f783,_0x85ee45);}else{if(_0x18d381['_isBlockAttribute'](_0x1c4ccb['key'])){for(const _0x50f5ba of _0x2597f6)void 0x0!==_0x1c4ccb['oldValue']?_0x1ccd9a['setAttribute'](_0x1c4ccb['key'],_0x1c4ccb['oldValue'],_0x50f5ba['start']['nodeAfter']):_0x1ccd9a['removeAttribute'](_0x1c4ccb['key'],_0x50f5ba['start']['nodeAfter']);}else{for(const _0x33c3f9 of _0x2597f6)_0x1c4ccb['oldValue']?_0x1ccd9a['setAttribute'](_0x1c4ccb['key'],_0x1c4ccb['oldValue'],_0x33c3f9):_0x1ccd9a['removeAttribute'](_0x1c4ccb['key'],_0x33c3f9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3e7e8);}}function Ft(_0x34b070,_0xd1bda,_0x9f1e9d){for(const _0x1c064d of _0xd1bda['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1c064d['root']==_0x1c064d)return!0x1;if(!_0x9f1e9d['containsItem'](_0x1c064d))return!0x1;if(_0x34b070['isObject'](_0x1c064d)||_0x34b070['isLimit'](_0x1c064d))return!0x0;}return!0x1;}function Pt(_0x2e8456){return _0x2e8456['end']['parent']==_0x2e8456['start']['nodeAfter']&&_0x2e8456['end']['isAtStart'];}function Gt(_0x139c82,_0x1814c9,_0x49d471,_0x128675){const _0x5d50e5=_0xcbefa0=>!_0xcbefa0['item']['is']('$textProxy')&&!_0x128675['isObject'](_0xcbefa0['item']),_0x3ebf39=_0x139c82['start']['getLastMatchingPosition'](_0x5d50e5),_0x1c1341=_0x139c82['end']['getLastMatchingPosition'](_0x5d50e5,{'direction':'backward'});return(!_0x139c82['start']['isEqual'](_0x3ebf39)||!_0x139c82['end']['isEqual'](_0x1c1341))&&(_0x3ebf39['isBefore'](_0x1c1341)?_0x49d471['updateMarker'](_0x1814c9,{'range':_0x49d471['createRange'](_0x3ebf39,_0x1c1341)}):_0x49d471['removeMarker'](_0x1814c9),!0x0);}function Lt(_0x4593f5){return _0x12f7dc(_0x4593f5);}function Jt(_0x46dc13){const _0x195e25=_0x46dc13['start']['nodeAfter'];return _0x195e25&&_0x195e25['is']('element');}function Kt(_0x18d536){return!Pt(_0x18d536)&&!function(_0xea165){return _0xea165['start']['parent']==_0xea165['end']['nodeBefore']&&_0xea165['start']['isAtEnd'];}(_0x18d536);}function Ht(_0x46fd07,_0x2e24da){return null==_0x46fd07['end']['nodeBefore']&&_0x46fd07['end']['parent']==_0x46fd07['start']['nodeAfter']?qt(_0x46fd07['start']['nodeAfter'],_0x2e24da):_0x46fd07;}function qt(_0x39316d,_0x5a4259){const _0x2950ee=_0x5a4259['schema']['isObject'](_0x39316d)||_0x5a4259['schema']['isSelectable'](_0x39316d);return _0x5a4259['createRange'](_0x5a4259['createPositionAt'](_0x39316d,'before'),_0x2950ee?_0x5a4259['createPositionAfter'](_0x39316d):_0x5a4259['createPositionAt'](_0x39316d,'end'));}function zt(_0x3353e4,_0x139afe,_0x339223,_0x94edcd){return!!Wt(_0x3353e4,_0x139afe)&&_0x339223['end']['isEqual'](_0x94edcd['start']);}function Wt(_0x4acd72,_0x1e6072){if(!_0x4acd72['_isDataLoaded']||!_0x1e6072['_isDataLoaded'])return!0x1;const _0x32f9fc=new Set(Object['keys'](_0x4acd72['attributes'])),_0x3c0f9d=new Set(Object['keys'](_0x1e6072['attributes']));if(_0x32f9fc['delete']('groupId'),_0x3c0f9d['delete']('groupId'),0x0==_0x32f9fc['size']&&0x0==_0x3c0f9d['size'])return!0x0;if(_0x32f9fc['size']!=_0x3c0f9d['size'])return!0x1;const _0x4acaf9={..._0x4acd72['attributes']},_0x2b3694={..._0x1e6072['attributes']};return delete _0x4acaf9['groupId'],delete _0x2b3694['groupId'],JSON['stringify'](_0x4acaf9)==JSON['stringify'](_0x2b3694);}function Qt(_0x421175,_0x38af52){const _0x39d446=Xt(_0x421175['attributes']),_0x5a5637=Xt(_0x38af52);if(!_0x421175['_isDataLoaded'])return!0x1;for(const _0xb2da3 of Object['keys'](_0x5a5637))if(!_0x2ea7bb(_0x39d446[_0xb2da3],_0x5a5637[_0xb2da3]))return!0x1;return!0x0;}function Xt(_0x518b66){const _0x4c4b94=Object['assign']({},_0x518b66);return delete _0x4c4b94['skipNestingCheck'],delete _0x4c4b94['tablePasteChainId'],_0x4c4b94;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x18315a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3d472c,_0x40b0af,_0x504e4a,_0x2e1acf){super(),this['model']=_0x40b0af,this['view']=_0x504e4a,this['commentThreadController']=_0x2e1acf,this['_editor']=_0x3d472c,this['_acceptCommand']=_0x3d472c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3d472c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x42fcaf,_0x3fed1d)=>_0x42fcaf||_0x3fed1d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x8483af=>_0x8483af&&this['_editor']['model']['canEditAt'](_0x40b0af['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42c0e1=>_0x42c0e1&&this['_editor']['model']['canEditAt'](_0x40b0af['getRanges']())),this['_pendingAction']=null,_0x504e4a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x504e4a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x504e4a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x504e4a,'change:isDirty',()=>{_0x504e4a['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 _0x60588c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x60588c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x51d71f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x301cbe,_0x39903b,_0x393071,_0x5ed122){super(_0x301cbe),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x29fb78(_0x301cbe,o(_0x301cbe,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x39903b['authoredAt']),this['bind']('authoredAt')['to'](_0x39903b),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',_0x39903b,'authoredAt',this,'descriptionParts',(_0x1d7e50,_0x4df6fd,_0x9c18f3)=>{const _0x149009=_0x9c18f3['map'](_0x27b272=>ls(_0x27b272['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1d7e50-0x1,_0x39903b['author']['name'],_0x4df6fd?_0x5ed122['formatDateTime'](_0x4df6fd):'',new DOMParser()['parseFromString'](_0x149009,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5a235d(),this['focusTracker']=new _0x13033f(),this['keystrokes']=new _0x4cb6d8(),this['focusCycler']=new _0x321a44({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x347caf=>_0x347caf['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x39903b,this['_localUser']=_0x393071,this['_config']=_0x5ed122,_0x5ed122['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x928cbc(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4c10d5}=this['_config'];this['commentsListView']=new _0x4c10d5(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',_0x3dfdb4=>_0x3dfdb4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3d3b6a,_0x568d3b)=>_0x3d3b6a||!!_0x568d3b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x749e7b}=this['_config'],_0x23f498=new _0x749e7b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x62e364=_0x23f498['commentInputView'];return _0x23f498['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x62e364,'value',(_0x45ea9a,_0x39dfa0,_0x59d9fb)=>!!_0x59d9fb||_0x45ea9a&&!_0x39dfa0),_0x62e364['on']('submit',(_0x92d526,_0x1b6df3)=>{this['fire']('addComment',_0x1b6df3),_0x62e364['editor']['setData']('');}),_0x62e364['on']('cancel',()=>this['focus']()),_0x62e364['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x23f498;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x268066,_0x490bc2,_0x31459a,_0x1ac162){super(_0x268066,_0x490bc2,_0x31459a,_0x1ac162),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1269a1=>_0x1269a1&&_0x1269a1[0x0]?_0x1269a1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x39d059,_0x3c959d)=>{let _0x2fde1f='';for(const _0x52ab7b of _0x39d059)_0x2fde1f+='<p>'+ls(_0x52ab7b['content'],_0x52ab7b['color'])+'</p>';return _0x3c959d?_0x2fde1f:_0x4b53cc(_0x2fde1f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1ac162['SuggestionView'](_0x268066,_0x490bc2,{'formatDateTime':_0x1ac162['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 _0x93b9f3=this['bindTemplate'],_0x3fc8b2=[this['suggestionView']];return this['commentsListView']&&_0x3fc8b2['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3fc8b2['push'](this['commentThreadInputView']),_0x3fc8b2['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x93b9f3['if']('isActive','ck-suggestion-wrapper--active'),_0x93b9f3['to']('type',_0x96fe83=>'ck-suggestion-'+_0x96fe83),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':_0x93b9f3['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3fc8b2};}['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 _0x51d71f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x561408,_0x28996e,_0x10fcd0){super(_0x561408),this['_model']=_0x28996e,this['_config']=_0x10fcd0,this['set']('description',''),this['bind']('authoredAt')['to'](_0x28996e),this['acceptButton']=this['_createButton'](o(_0x561408,'Accept\x20suggestion'),_0x5d52a8,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x561408,'Discard\x20suggestion'),_0x558c4f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2b5f15(_0x561408,_0x28996e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5a235d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x13033f(),this['keystrokes']=new _0x4cb6d8(),this['focusCycler']=new _0x321a44({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x234baf=>_0x234baf['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3ac706=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3ac706['innerHTML']=this['description'],this['on']('change:description',(_0x44d26b,_0x4ae3a2,_0x444155)=>{_0x3ac706['innerHTML']=_0x444155;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x57d737=this['bindTemplate'],_0x887ceb=[{'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':_0x57d737['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x57d737['to']('authoredAt',_0x5468bb=>this['_config']['formatDateTime'](_0x5468bb))}]}]},{'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']&&_0x887ceb['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':_0x887ceb}]};}['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'](_0x230979,_0x2b8641,_0x500deb,_0x2ac992,_0x68d26b){const _0x16ca41=new _0x129398(this['locale']);return _0x16ca41['set']({'label':_0x230979,'icon':_0x2b8641,'tooltip':!0x0,'tooltipPosition':_0x68d26b}),_0x16ca41['extendTemplate']({'attributes':{'class':_0x500deb}}),_0x16ca41['on']('execute',()=>{this['fire'](_0x2ac992,this['_model']['id']);}),_0x16ca41;}['_setupKeyboardNavigation'](){const _0xc32fff=this['element'];this['keystrokes']['listenTo'](_0xc32fff);for(const _0x322221 of this['focusables'])this['focusTracker']['add'](_0x322221['element']),this['keystrokes']['listenTo'](_0x322221['element']);this['keystrokes']['set']('enter',(_0xee295c,_0x2a18b3)=>{_0xc32fff===_0xee295c['target']&&(this['focusCycler']['focusFirst'](),_0x2a18b3());}),this['keystrokes']['set']('esc',(_0x547a9a,_0x5d8c8d)=>{_0xc32fff!==_0x547a9a['target']&&(this['focus'](),_0x5d8c8d());});}}class u extends _0x52a075{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x579180,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xff2151){super(_0xff2151),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xb8e0b3=this['editor']['config'];_0xb8e0b3['define']('trackChanges.SuggestionThreadView',fe),_0xb8e0b3['define']('trackChanges.SuggestionView',we),_0xb8e0b3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xb8e0b3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3ce5f6,_0x52a114){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1416f6,_0x502610]of this['_handleControllerBuffer']){const _0x1736e5=this['_suggestionToController']['has'](_0x1416f6);_0x1736e5||_0x502610?_0x1736e5&&_0x502610&&this['_destroyController'](_0x1416f6):this['_initializeController'](_0x1416f6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3ce5f6,_0x52a114);}['init'](){const _0x19324d=this['editor'],_0x1492d6=_0x19324d['plugins']['get']('TrackChangesEditing'),_0x1061e4=_0x19324d['plugins']['get']('Annotations'),_0x30136e=_0x19324d['plugins']['get']('EditorAnnotations'),_0x5c9db1=_0x19324d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x30136e['addSourceCollector'](()=>{const _0x7287=[];for(const [_0x35224d,_0x5115f5]of Array['from'](this['_suggestionToController'])){const _0x4d5907=_0x35224d['getAllAdjacentSuggestions'](),_0x29e349=[];for(const _0x56dc58 of _0x4d5907){if(!_0x56dc58['isInContent'])continue;if(_0x56dc58['isMultiRange']){_0x29e349['push'](..._0x56dc58['getRanges']());continue;}const _0x325522=_0x56dc58['getFirstRange']();if(_0x29e349['length']>0x0){const _0x21066c=_0x29e349[0x0]['getJoined'](_0x325522);if(_0x21066c){_0x29e349[0x0]=_0x21066c;continue;}}_0x29e349['push'](_0x325522);}_0x7287['push']([_0x5115f5['view'],_0x29e349]);}return _0x7287;}),this['listenTo'](_0x1492d6,'suggestionLoaded',(_0x58b5d8,_0x403bfd)=>{this['listenTo'](_0x403bfd,'change:previous',(_0x504e7d,_0x15083a,_0x347357,_0x328ba6)=>{_0x403bfd['isInContent']&&(null==_0x347357?(this['_updateController'](_0x328ba6['head']),this['_handleSuggestionControllerDelayed'](_0x403bfd,!0x1)):(this['_updateController'](_0x347357['head']),null==_0x328ba6&&this['_handleSuggestionControllerDelayed'](_0x403bfd,!0x0)));}),null!==_0x403bfd['previous']?this['_updateController'](_0x403bfd['head']):this['_handleSuggestionControllerDelayed'](_0x403bfd,!0x1);}),this['listenTo'](_0x1492d6,'suggestionUnloaded',(_0x2122e2,_0x32727c,_0x1551e2)=>{this['stopListening'](_0x32727c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x32727c),this['_suggestionToController']['has'](_0x32727c)&&this['_destroyController'](_0x32727c),_0x1551e2&&this['_updateController'](_0x1551e2['head']);}),this['listenTo'](_0x1492d6,'suggestionChanged',(_0x5aa4b8,_0x316dc4)=>{this['_updateController'](_0x316dc4);}),this['listenTo'](_0x1061e4,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5c9db1,'addComment',(_0x2b5032,{threadId:_0x2377e6,isFromAdapter:_0xe437cf})=>{if(_0xe437cf||!_0x1492d6['hasSuggestion'](_0x2377e6))return;const _0x1ea6c0=_0x1492d6['getSuggestion'](_0x2377e6);this['_suggestionToController']['get'](_0x1ea6c0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2e1cfe=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x7ba509;for(const _0xf4e8d2 in _0x2e1cfe){const _0x7c20d0=_0xf4e8d2,_0x587d4e=_0x2e1cfe[_0x7c20d0];if('trackChangesLicenseKeyValid'==_0x587d4e||'trackChangesLicenseKeyInvalid'==_0x587d4e||'trackChangesLicenseKeyExpired'==_0x587d4e||'trackChangesLicenseKeyDomainLimit'==_0x587d4e||'trackChangesLicenseKeyNotAllowed'==_0x587d4e||'trackChangesLicenseKeyEvaluationLimit'==_0x587d4e||'trackChangesLicenseKeyTrialLimit'==_0x587d4e||'trackChangesLicenseKeyUsageLimit'==_0x587d4e){delete _0x2e1cfe[_0x7c20d0],_0x7ba509=_0x587d4e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x7ba509&&_0x2e1cfe['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x7ba509&&_0x2e1cfe['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x7ba509&&_0x2e1cfe['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x7ba509&&_0x2e1cfe['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x7ba509&&_0x2e1cfe['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x7ba509&&_0x2e1cfe['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x7ba509&&_0x2e1cfe['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x15f85a){const _0x564799=this['_suggestionToController']['get'](_0x15f85a);if(!_0x564799)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x564799['view'])||null;}['getSuggestionForAnnotation'](_0x3d665e){const _0x49136c=this['_viewToController']['get'](_0x3d665e['innerView']);return _0x49136c?_0x49136c['model']:null;}['_refreshActiveMarkers'](){const _0x2928d6=this['editor']['plugins']['get']('Annotations'),_0x11441d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56f1e3=Array['from'](_0x2928d6['activeAnnotations'],_0x211913=>_0x211913['innerView'])['filter'](_0x7d46bc=>this['_viewToController']['has'](_0x7d46bc)),_0x43de0f=[];for(const _0x46fe3f of _0x56f1e3){const _0x40b9f5=this['_viewToController']['get'](_0x46fe3f)['model']['getAllAdjacentSuggestions']();_0x43de0f['push'](..._0x40b9f5['reduce']((_0x1a2e37,_0x2e9cf8)=>[..._0x1a2e37,..._0x2e9cf8['getMarkerNames']()],[]));}_0x11441d['activeMarkers']=_0x43de0f;}['_addUIComponentsToFactory'](){const _0x7f59cc=this['editor'],_0x585471=_0x7f59cc['locale'],_0x598c0f=o(_0x585471,'Track\x20changes'),_0x5e23c7=new _0x5b450a([{'type':'switchbutton','model':new _0x26cb9b({'withText':!0x0,'isToggleable':!0x0,'label':_0x598c0f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x26cb9b({'withText':!0x0,'label':o(_0x585471,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26cb9b({'withText':!0x0,'label':o(_0x585471,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26cb9b({'withText':!0x0,'label':o(_0x585471,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26cb9b({'withText':!0x0,'label':o(_0x585471,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x7f59cc['plugins']['has']('TrackChangesPreview')&&_0x5e23c7['addMany']([{'type':'separator'},{'type':'button','model':new _0x26cb9b({'withText':!0x0,'label':o(_0x585471,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3690c9 of _0x5e23c7)if(ke(_0x3690c9)){const _0x1532a0=_0x7f59cc['commands']['get'](_0x3690c9['model']['commandName']);_0x3690c9['model']['bind']('isOn','isEnabled')['to'](_0x1532a0,'value','isEnabled');}_0x7f59cc['ui']['componentFactory']['add']('trackChanges',_0x5b1a72=>this['_createToolbarButton'](_0x5b1a72,_0x5e23c7,_0x598c0f)),_0x7f59cc['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5ee23d=>this['_createMenuBarMenu'](_0x5ee23d,_0x5e23c7,_0x598c0f));}['_createToolbarButton'](_0x1ee8cc,_0x4a3a0a,_0x2108d0){const _0x2f372b=_0x5d34d8(_0x1ee8cc,_0x144bfd),_0x3ae720=this['editor']['commands']['get']('trackChanges');_0x2f372b['buttonView']['set']({'tooltip':_0x2108d0,'label':_0x2108d0,'icon':_0x59d875}),_0x2f372b['buttonView']['bind']('isOn')['to'](_0x3ae720,'value'),_0x2f372b['buttonView']['on']('execute',()=>{_0x3ae720['execute'](),this['editor']['editing']['view']['focus']();}),_0x1c341a(_0x2f372b,_0x4a3a0a,{'role':'menu'});const _0x1b0403=[];for(const _0x45a58c of _0x4a3a0a)ke(_0x45a58c)&&_0x1b0403['push'](this['editor']['commands']['get'](_0x45a58c['model']['commandName']));const _0x2f4138=_0x2f372b['buttonView'];return _0x2f4138['actionView']['unbind']('isEnabled'),_0x2f4138['arrowView']['unbind']('isEnabled'),_0x2f4138['actionView']['bind']('isEnabled')['to'](_0x3ae720,'isEnabled'),_0x2f4138['arrowView']['bind']('isEnabled')['toMany'](_0x1b0403,'isEnabled',(..._0x27ceac)=>_0x27ceac['some'](_0x3247b4=>_0x3247b4)),_0x2f372b['on']('execute',_0x48968d=>{this['editor']['execute'](_0x48968d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2f372b;}['_createMenuBarMenu'](_0xcc7162,_0x148c67,_0x4f9c90){const _0x5b686c=new _0x1c3ee9(_0xcc7162),_0x2e88bf=this['editor']['commands']['get']('trackChanges');_0x5b686c['buttonView']['set']({'label':_0x4f9c90,'icon':_0x59d875});const _0x3c6bab=new _0x3e51c0(_0xcc7162);for(const _0x31c4ad of _0x148c67){if('separator'==_0x31c4ad['type']){_0x3c6bab['items']['add'](new _0x2f8145(_0xcc7162));continue;}const _0x310ff5=new _0x3e8574(_0xcc7162,_0x5b686c),_0xe27bbc=new _0x2b239c(_0xcc7162),_0x4a2834=_0x31c4ad['model'];_0xe27bbc['bind'](...Object['keys'](_0x4a2834))['to'](_0x4a2834),_0xe27bbc['delegate']('execute')['to'](_0x5b686c),_0xe27bbc['on']('execute',()=>{this['editor']['execute'](_0x4a2834['commandName']),this['editor']['editing']['view']['focus']();}),_0x310ff5['children']['add'](_0xe27bbc),_0x3c6bab['items']['add'](_0x310ff5);}return _0x5b686c['bind']('isEnabled')['to'](_0x2e88bf,'isEnabled'),_0x5b686c['panelView']['children']['add'](_0x3c6bab),_0x5b686c;}['_initializeController'](_0x179b84){const _0x16e0f3=this['editor'],_0x2757a2=_0x16e0f3['config'],_0x1d1e72=_0x16e0f3['plugins']['get']('Annotations'),_0xf10484=_0x16e0f3['plugins']['get']('CommentsRepository'),_0xe04bda=_0x16e0f3['plugins']['get']('EditorAnnotations'),_0x38835e=_0x16e0f3['plugins']['get'](_0x579180)['me'],_0x5ebffc=_0x2757a2['get']('trackChanges')['SuggestionThreadView'],_0x43e4e4=_0x2757a2['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x45d527,CommentThreadInputView:_0x2946b4}=_0x16e0f3['plugins']['get']('CommentsUI');let _0x5ea1e4,_0x61d437,_0x3dcae8;this['_annotationViews']['has'](_0x179b84['id'])?(_0x61d437=this['_annotationViews']['get'](_0x179b84['id']),_0x5ea1e4=_0x61d437['mainView']):(_0x5ea1e4=new _0x5ebffc(_0x16e0f3['locale'],_0x179b84,_0x38835e,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2757a2['get']('comments.editorConfig'),'licenseKey':_0x2757a2['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2757a2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2757a2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2757a2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2b5c6e(_0x2757a2['get']('locale'),_0x16e0f3['locale']),'CommentView':_0x2757a2['get']('comments')['CommentView'],'CommentsListView':_0x45d527,'CommentThreadInputView':_0x2946b4,'SuggestionView':_0x43e4e4}),_0x5ea1e4['suggestionView']['acceptButton']['on']('execute',()=>{_0x16e0f3['editing']['view']['focus']();}),_0x5ea1e4['suggestionView']['discardButton']['on']('execute',()=>{_0x16e0f3['editing']['view']['focus']();}),_0x61d437=_0x1d1e72['createAnnotationView'](this['editor']['locale'],_0x5ea1e4),_0x61d437['bind']('isDirty')['to'](_0x5ea1e4,'isDirty'),_0x61d437['bind']('length')['to'](_0x5ea1e4),_0x61d437['bind']('type')['to'](_0x5ea1e4,'type',_0x4195c4=>'suggestion-'+_0x4195c4),_0x5ea1e4['on']('escape',()=>{_0x3dcae8['fire']('escape');}),this['_annotationViews']['set'](_0x179b84['id'],_0x61d437));const _0x5f51e9=_0xf10484['createCommentThreadController'](_0x179b84['commentThread'],_0x5ea1e4),_0x11a0f2=new pe(_0x16e0f3,_0x179b84,_0x5ea1e4,_0x5f51e9),_0x44a4d8=_0x179b84['getAllAdjacentSuggestions']()['filter'](_0x43cd5c=>_0x43cd5c['isInContent']);_0x5ea1e4['descriptionParts']=_0x16e0f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x44a4d8),this['_suggestionToController']['set'](_0x179b84,_0x11a0f2),this['_viewToController']['set'](_0x5ea1e4,_0x11a0f2),_0x3dcae8=_0x1d1e72['createAnnotation']({'view':_0x61d437,'target':()=>{const _0x4b7749=[],_0x2f603f=_0x179b84['getAllAdjacentSuggestions']()['filter'](_0x162e71=>_0x162e71['isInContent']);for(const _0x5172e9 of _0x2f603f)_0x4b7749['push'](..._0x5172e9['getMarkers']());return _0x4bb435(_0x16e0f3['editing'],_0x4b7749);},'type':()=>'suggestion-'+_0x11a0f2['view']['type']}),_0xf10484['_bindAnnotationToEditors'](_0x5ea1e4,_0x3dcae8),_0x1d1e72['add'](_0x3dcae8),_0xe04bda['registerAnnotation'](_0x3dcae8);}['_destroyController'](_0xfdbb87){const _0x31b530=this['editor']['plugins']['get']('CommentsRepository'),_0x545fca=this['editor']['plugins']['get']('Annotations'),_0x57cc83=this['_suggestionToController']['get'](_0xfdbb87),_0x41037e=_0x57cc83['view'],_0x24af89=_0x545fca['getByInnerView'](_0x41037e);_0x31b530['_unbindEditors'](_0x41037e),_0x24af89&&_0x545fca['remove'](_0x24af89),this['_suggestionToController']['delete'](_0xfdbb87),this['_viewToController']['delete'](_0x41037e),_0x57cc83['destroy']();}['_updateController'](_0x4d445a){if(!_0x4d445a['isInContent']||!this['_suggestionToController']['has'](_0x4d445a))return;const _0xa6f232=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bfd17=this['_suggestionToController']['get'](_0x4d445a),_0x2c0a06=_0x4d445a['getAllAdjacentSuggestions']();_0x3bfd17['view']['descriptionParts']=_0xa6f232['descriptionFactory']['getDescriptions'](_0x2c0a06);}['destroy'](){for(const _0xd4a1ad of this['_suggestionToController']['keys']())this['_destroyController'](_0xd4a1ad);for(const _0x156738 of this['_annotationViews']['values']())_0x156738['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1cf42c){return'model'in _0x1cf42c;}class Fe extends _0x52a075{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5735b8){this['editor']['plugins']['get'](d)['adapter']=_0x5735b8;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2d63fc){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2d63fc);}['getSuggestions']({skipNotAttached:_0x526c33=!0x1,toJSON:_0x55a618=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x526c33,'toJSON':_0x55a618});}['getSuggestion'](_0x4dd630){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4dd630);}}const p=['Pagination'];class re extends _0x52a075{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4ca473=this['editor'];if(_0x4ca473['config']['define']('trackChangesData.editorCreator',_0x34e1eb=>{const _0x363efb=_0x4ca473['model']['document']['getRootNames']()['reduce']((_0x2caeb7,_0x1d404f)=>(_0x2caeb7[_0x1d404f]='',_0x2caeb7),{});return _0x4ca473['constructor']['create'](_0x363efb,_0x34e1eb);}),'function'!=typeof _0x4ca473['config']['get']('trackChangesData')['editorCreator'])throw new _0x7be711('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4c3a65){return P(this['editor'],!0x0,_0x4c3a65);}['getDataWithDiscardedSuggestions'](_0x509fe1){return P(this['editor'],!0x1,_0x509fe1);}}class Ge extends _0x52a075{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f06a7){function _0x1cea44(_0x4e5d9c){return _0x4e5d9c['map'](_0x30908f=>String['fromCharCode'](_0x30908f))['join']('');}super(_0x2f06a7),this['result']='end',_0x2f06a7[_0x1cea44([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cea44([0x76,0x69,0x65,0x77])][_0x1cea44([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1cea44([0x61,0x75,0x74,0x6f]),_0x2f06a7[_0x1cea44([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1cea44([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1cea44([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1cea44([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1cea44([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 $e(_0x5872f5){return void 0x0!==_0x5872f5['getRootsAttributes'];}async function P(_0x5517cf,_0xb99ad8,_0x505206){const _0x2d8145=_0x551fa1(_0x5517cf,p);_0x2d8145['plugins']['push'](d,Ge),_0x2d8145['rootsAttributes']=$e(_0x5517cf)?_0x5517cf['getRootsAttributes']():void 0x0;const _0x4e70fe=document['createDocumentFragment'](),_0xbabe28=_0x5517cf['config']['get']('trackChangesData')['editorCreator'],_0x1d1d72=await _0xbabe28(_0x2d8145,()=>function(_0x45032e){const _0x58cdc9=document['createElement']('div');return _0x45032e['appendChild'](_0x58cdc9),_0x58cdc9;}(_0x4e70fe));!function(_0x2a5cfd,_0x50fda4){const _0x347fed=_0x2a5cfd['model']['document']['getRootNames']()['reduce']((_0x5f4a72,_0xd6f732)=>(_0x5f4a72[_0xd6f732]=_0x2a5cfd['data']['get']({'rootName':_0xd6f732}),_0x5f4a72),{}),_0x3dd916=_0x2a5cfd['plugins']['get']('Users')['users']['map'](_0x23c2f6=>({'id':_0x23c2f6['id'],'name':_0x23c2f6['name']})),_0x361b6b=_0x2a5cfd['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x368887=_0x2a5cfd['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x424ab5=_0x50fda4['plugins']['get']('Users'),_0x21295d=_0x50fda4['plugins']['get']('TrackChangesEditing'),_0x342db4=_0x50fda4['plugins']['get']('CommentsRepository');for(const _0x1d0458 of _0x342db4['getCommentThreads']())_0x1d0458['remove']();for(const _0x1fb4fd of _0x3dd916)_0x424ab5['getUser'](_0x1fb4fd['id'])||_0x424ab5['addUser'](_0x1fb4fd);_0x424ab5['me']||_0x424ab5['useAnonymousUser']();for(const _0x4345ea of _0x368887)_0x342db4['addCommentThread'](_0x4345ea);for(const _0x3ef6ee of _0x361b6b)_0x21295d['addSuggestionData'](_0x3ef6ee);_0x50fda4['data']['set'](_0x347fed);}(_0x5517cf,_0x1d1d72),_0x1d1d72['execute'](_0xb99ad8?'acceptAllSuggestions':'discardAllSuggestions');const _0x1d9f57=$e(_0x1d1d72)?_0x1d1d72['getFullData'](_0x505206):_0x1d1d72['data']['get'](_0x505206);return await _0x1d1d72['destroy'](),_0x1d9f57;}class Me extends _0x51d71f{['options'];constructor(_0x1b190f,_0x1a1d66){super(_0x1b190f),this['options']=_0x1a1d66,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'](_0x303af8,_0xaee2e5){if(!this['element'])return;const _0x3d06ec=[];for(const [_0x5d8b12,_0x1d5719]of _0x303af8){const _0x43e124=document['createElement']('div');_0x43e124['setAttribute']('data-ck-root-name',_0x5d8b12),_0x43e124['className']=_0x1d5719['classes']+'\x20ck-track-changes-preview__root-container',_0x43e124['innerHTML']=_0x1d5719['content'],_0x3d06ec['push'](_0x43e124);}_0xaee2e5(this['element'],_0x3d06ec),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x270918{constructor(_0xc38a5f){super(_0xc38a5f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5c11fd=this['editor'],_0x5b9dcc=_0x5c11fd['locale'],_0x79de76=_0x5c11fd['plugins']['get']('Dialog');let _0x25974a;const _0x35ecd7=function(_0x5226a7){const _0x41d9db={};if('editables'in _0x5226a7['ui']['view']){for(const [_0x1b0dd3,_0x1dd4cf]of Object['entries'](_0x5226a7['ui']['view']['editables']))_0x41d9db[_0x1b0dd3]=_0x1dd4cf['element'];}else _0x41d9db[_0x5226a7['model']['document']['getRootNames']()[0x0]]=_0x5226a7['ui']['view']['editable']['element'];return _0x41d9db;}(_0x5c11fd),_0x1ee0ff=function(_0x1ea124){let _0x5e398a=0x0;for(const _0x26fe33 of Object['values'](_0x1ea124))_0x5e398a=Math['max'](_0x5e398a,_0x26fe33['getBoundingClientRect']()['width']);let _0x2fdfd9=0x0;for(const _0xdf32ce of Object['values'](_0x1ea124))_0x2fdfd9+=_0xdf32ce['getBoundingClientRect']()['height'];const _0x2e865a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x10e802=Math['min'](_0x2fdfd9,_0x2e865a);return{'width':_0x5e398a,'height':_0x10e802};}(_0x35ecd7);_0x79de76['show']({'id':'finalContentPreview','title':o(_0x5b9dcc,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5b9dcc,{'dialogRects':_0x1ee0ff}),'onHide':()=>{_0x25974a['detachFromDom']();},'onShow':()=>{_0x5c11fd['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x56eae7=>{const _0x36d136=this['_standarizeRootsData'](_0x56eae7,_0x5c11fd,_0x35ecd7);_0x79de76['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x36d136,_0x5c11fd['config']['get']('trackChanges.preview.renderFunction'));}),_0x25974a=new _0x31fb44(_0x5b9dcc,[_0x79de76['view']]),_0x25974a['attachToDom'](),_0x25974a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5c11fd['once']('destroy',()=>{_0x25974a['detachFromDom']();});const _0x18de05=_0x79de76['view']['headerView']['class'];_0x79de76['view']['headerView']['class']=_0x18de05?_0x18de05+'\x20ck-reset_all':'ck-reset_all',_0x79de76['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x79de76['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x418a06=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x498d80=_0x418a06['previewMode'],_0x561903={};if('$labels'===_0x498d80){for(const _0x2ecf53 of _0x418a06['getMergeFieldsIds']())_0x561903[_0x2ecf53]=_0x418a06['getLabel'](_0x2ecf53)||_0x2ecf53;}else{const _0x466ba7='$defaultValues'===_0x498d80?_0x418a06['getDefaultValues']():_0x418a06['getDataSetValues'](_0x498d80,!0x0);for(const _0x496dd4 of Object['entries'](_0x466ba7)){const [_0x3b1e3c,_0x56aee7]=_0x496dd4;_0x561903[_0x3b1e3c]=null!==_0x56aee7?_0x56aee7:_0x418a06['getLabel'](_0x3b1e3c)||_0x3b1e3c;}}return{'mergeFieldsData':_0x561903};}['_standarizeRootsData'](_0xaae585,_0x12c6c6,_0x5f2f22){let _0x5d42d6;if('string'==typeof _0xaae585){const _0x39948b=_0x12c6c6['model']['document']['getRootNames']()[0x0];_0x5d42d6={[_0x39948b]:_0xaae585};}else _0x5d42d6=_0xaae585;const _0x13c45a=this['_fixMediaEmbeds'](_0x5d42d6,_0x12c6c6),_0x53dbf6=function(_0x491167,_0x10bc4b){for(const [_0x39ce22,_0x9fa100]of _0x491167)_0x9fa100['classes']=_0x10bc4b[_0x39ce22]['classList']['value']['replace']('ck-focused','');return _0x491167;}(this['_sortRoots'](_0x12c6c6)['reduce']((_0x107b71,_0x36afca)=>(_0x107b71['push']([_0x36afca,{'content':_0x13c45a[_0x36afca],'classes':''}]),_0x107b71),[]),_0x5f2f22);return _0x53dbf6;}['_fixMediaEmbeds'](_0x5a956c,_0x3b65b2){if(!_0x3b65b2['plugins']['has']('MediaEmbedEditing'))return _0x5a956c;const _0x365754=_0x3b65b2['plugins']['get']('MediaEmbedEditing');for(const [_0x27dae2,_0x3b7737]of Object['entries'](_0x5a956c)){const _0x170669=document['createElement']('div');_0x170669['innerHTML']=_0x3b7737,(_0x170669['querySelectorAll']('figure.media')['forEach'](_0x57c45f=>{const _0x34e274=_0x57c45f['querySelector']('oembed');if(_0x34e274){const _0x26b53d=_0x34e274['getAttribute']('url');if(_0x26b53d){const _0x8d552f=_0x365754['registry']['getMediaViewElement'](new _0x5276ce(_0x3b65b2['editing']['view']['document']),_0x26b53d,{'elementName':'','renderForEditingView':!0x0}),_0xb028b3=document['createElement']('div');_0xb028b3['classList']['add']('ck-media__wrapper'),_0x8d552f['render'](_0xb028b3,_0x3b65b2['editing']['view']['domConverter']),_0x34e274['replaceWith'](_0xb028b3);}}}),_0x5a956c[_0x27dae2]=_0x170669['innerHTML']);}return _0x5a956c;}['_sortRoots'](_0x12561e){if(!function(_0x3aae8b){return void 0x0!==_0x3aae8b['getRootsAttributes'];}(_0x12561e))return _0x12561e['model']['document']['getRootNames']();const _0x512785=[],_0x174d00=new Map();for(const _0x29c717 of _0x12561e['model']['document']['getRootNames']()){const _0x1a40a3=_0x12561e['editing']['view']['getDomRoot'](_0x29c717)['getClientRects']()['item'](0x0);_0x512785['push'](_0x29c717),_0x174d00['set'](_0x29c717,_0x1a40a3);}return _0x512785['sort']((_0x187e59,_0x128bff)=>{const _0x4e43e5=_0x174d00['get'](_0x187e59),_0x30f42d=_0x174d00['get'](_0x128bff);return _0x4e43e5['y']-_0x30f42d['y']||_0x4e43e5['x']-_0x30f42d['x'];}),_0x512785;}}class He extends _0x52a075{static get['requires'](){return[re,_0x5f4fe2];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e1ffe){super(_0x5e1ffe),_0x5e1ffe['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5e1ffe['config']['define']('trackChanges.preview.renderFunction',(_0x134ce1,_0x36cb45)=>{for(const _0x4550f2 of _0x36cb45)_0x134ce1['appendChild'](_0x4550f2);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};