@ckeditor/ckeditor5-track-changes 47.0.0-alpha.6 → 47.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/ai.js +1 -1
  158. package/src/integrations/aiassistant.js +1 -1
  159. package/src/integrations/aiquickactions.d.ts +17 -0
  160. package/src/integrations/aiquickactions.js +23 -0
  161. package/src/integrations/alignment.js +1 -1
  162. package/src/integrations/basicstyles.js +1 -1
  163. package/src/integrations/blockquote.js +1 -1
  164. package/src/integrations/bookmark.js +1 -1
  165. package/src/integrations/casechange.js +1 -1
  166. package/src/integrations/ckbox.js +1 -1
  167. package/src/integrations/codeblock.js +1 -1
  168. package/src/integrations/comments.js +1 -1
  169. package/src/integrations/deletecommand.js +1 -1
  170. package/src/integrations/emoji.js +1 -1
  171. package/src/integrations/entercommand.js +1 -1
  172. package/src/integrations/findandreplace.js +1 -1
  173. package/src/integrations/font.js +1 -1
  174. package/src/integrations/formatpainter.js +1 -1
  175. package/src/integrations/heading.js +1 -1
  176. package/src/integrations/highlight.js +1 -1
  177. package/src/integrations/horizontalline.js +1 -1
  178. package/src/integrations/htmlembed.js +1 -1
  179. package/src/integrations/image.js +1 -1
  180. package/src/integrations/imagereplace.js +1 -1
  181. package/src/integrations/imagestyle.js +1 -1
  182. package/src/integrations/importword.js +1 -1
  183. package/src/integrations/indent.js +1 -1
  184. package/src/integrations/inputcommand.js +1 -1
  185. package/src/integrations/legacylist.js +1 -1
  186. package/src/integrations/legacylistproperties.js +1 -1
  187. package/src/integrations/lineheight.js +1 -1
  188. package/src/integrations/link.js +1 -1
  189. package/src/integrations/list.js +1 -1
  190. package/src/integrations/listproperties.js +1 -1
  191. package/src/integrations/mediaembed.js +1 -1
  192. package/src/integrations/mention.js +1 -1
  193. package/src/integrations/mergefields.js +1 -1
  194. package/src/integrations/multilevellist.js +1 -1
  195. package/src/integrations/pagebreak.js +1 -1
  196. package/src/integrations/paragraph.js +1 -1
  197. package/src/integrations/removeformat.js +1 -1
  198. package/src/integrations/replacesourcecommand.js +1 -1
  199. package/src/integrations/restrictededitingmode.js +1 -1
  200. package/src/integrations/shiftentercommand.js +1 -1
  201. package/src/integrations/standardeditingmode.js +1 -1
  202. package/src/integrations/style.js +1 -1
  203. package/src/integrations/table.js +1 -1
  204. package/src/integrations/tablecaption.js +1 -1
  205. package/src/integrations/tableclipboard.js +2 -2
  206. package/src/integrations/tablecolumnresize.js +1 -1
  207. package/src/integrations/tableheadings.js +1 -1
  208. package/src/integrations/tablelayout.js +1 -1
  209. package/src/integrations/tablemergesplit.js +1 -1
  210. package/src/integrations/tableofcontents.js +1 -1
  211. package/src/integrations/tableproperties.js +1 -1
  212. package/src/integrations/template.js +1 -1
  213. package/src/integrations/title.js +1 -1
  214. package/src/integrations/undo.js +1 -1
  215. package/src/integrations/uploadcare.js +1 -1
  216. package/src/integrations/utils.js +1 -1
  217. package/src/suggestion.js +2 -2
  218. package/src/suggestiondescriptionfactory.js +1 -1
  219. package/src/trackchanges.js +1 -1
  220. package/src/trackchangesdata.js +1 -1
  221. package/src/trackchangesediting.d.ts +2 -1
  222. package/src/trackchangesediting.js +1 -1
  223. package/src/trackchangespreview.js +1 -1
  224. package/src/trackchangesui.js +1 -1
  225. package/src/ui/suggestioncontroller.js +2 -2
  226. package/src/ui/view/basesuggestionthreadview.js +1 -1
  227. package/src/ui/view/suggestionthreadview.js +1 -1
  228. package/src/ui/view/suggestionview.js +1 -1
  229. package/src/ui/view/trackchangespreviewview.js +1 -1
  230. package/src/utils/common-translations.js +1 -1
  231. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x294915,Plugin as _0x1ac4a7,PendingActions as _0x4dc787}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x515288,ObservableMixin as _0x5100d7,uid as _0x668662,priorities as _0x48e2dc,insertToPriorityArray as _0x980704,toArray as _0x211a57,logWarning as _0x508cdd,getEnvKeystrokeText as _0x465b03,FocusTracker as _0x3b3986,KeystrokeHandler as _0x182121,Collection as _0x5ca53d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5e26cb,IconCancel as _0x19f008,IconTrackChanges as _0x5d5088}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x512aab,View as _0x1a95f3,ViewCollection as _0xc18b02,FocusCycler as _0x225e9e,UIModel as _0x1e1468,createDropdown as _0x45be79,SplitButtonView as _0x7670d3,addListToDropdown as _0x2d394f,MenuBarMenuView as _0x5e2c03,MenuBarMenuListView as _0x180c07,ListSeparatorView as _0x1f0330,MenuBarMenuListItemView as _0x5bdd5b,MenuBarMenuListItemButtonView as _0xbcb65,BodyCollection as _0x4fccb4,Dialog as _0x3f5aef}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x53c5da,DocumentCompare as _0x11ae4f,hashObject as _0x318d41,surroundingMarkersDetector as _0x154636,FOCUS_ANNOTATION_KEYSTROKE as _0x15f150,AriaDescriptionView as _0x367c93,setupThreadKeyboardNavigation as _0x466ce5,trimHtml as _0x461d21,UserView as _0x1a6119,LateFocusButtonView as _0x1c6c78,getDateTimeFormatter as _0x24eb5b,getAllMarkersDomElementsSorted as _0x203780,sanitizeEditorConfig as _0x1e1567}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x417559,ModelLiveRange as _0x2fe235,ModelLivePosition as _0x4f345c,ModelPosition as _0xda936f,ModelRange as _0x4a33f5,_DetachOperation as _0x5b3eaa,ViewDowncastWriter as _0x31158e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5dc99a,toWidget as _0x376b06}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1bbeb3,set as _0x1a9a6c,isEqual as _0x5cf543,unset as _0x68555b,omit as Lt}from'es-toolkit/compat';import{Delete as _0x99ba60,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2ee569}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2d7130}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x294915{['_enabledCommands'];constructor(_0x44fb99,_0x4a4063){super(_0x44fb99),this['_enabledCommands']=_0x4a4063,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 _0x277fa4 of this['editor']['commands']['commands']())_0x277fa4['affectsData']&&!this['_enabledCommands']['has'](_0x277fa4)&&_0x277fa4['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x27a5bc of this['editor']['commands']['commands']())_0x27a5bc['affectsData']&&!this['_enabledCommands']['has'](_0x27a5bc)&&_0x27a5bc['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x294915{['_suggestions'];constructor(_0xa0cae2,_0x15fb94){super(_0xa0cae2),this['_suggestions']=_0x15fb94,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3236e9){const _0x23bce0=this['_suggestions']['get'](_0x3236e9);if(!_0x23bce0)throw new _0x515288('track-changes-accept-suggestion-not-found',this);const _0xf35574=_0x23bce0['getRanges']();this['editor']['model']['canEditAt'](_0xf35574)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x23bce0);}}class O extends _0x294915{['_suggestions'];constructor(_0x3feff0,_0x16f86a){super(_0x3feff0),this['_suggestions']=_0x16f86a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x8c67bc){const _0x472b17=this['_suggestions']['get'](_0x8c67bc);if(!_0x472b17)throw new _0x515288('track-changes-discard-suggestion-not-found',this);const _0x3c98a1=_0x472b17['getRanges']();this['editor']['model']['canEditAt'](_0x3c98a1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x472b17);}}function ls(_0xd8bc33,_0x5b5824){let _0x2fbd39='';return _0x2fbd39+=_0xd8bc33['split']('*')['map']((_0x17fb20,_0x5108b2)=>_0x5108b2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x17fb20)+'</span>':tn(_0x17fb20))['join'](''),_0x5b5824&&(_0x2fbd39+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5b5824['value']+'\x22\x20title=\x22'+_0x5b5824['title']+'\x22></span>'),_0x2fbd39;}function tn(_0x51622a){const _0x4fb905=document['createElement']('span');return _0x4fb905['innerText']=_0x51622a,_0x4fb905['innerHTML'];}function ts(_0x2cd898){return _0x2cd898['sort']((_0x10c66b,_0x372f8b)=>'attribute'===_0x10c66b['type']&&'attribute'!==_0x372f8b['type']?-0x1:'attribute'!==_0x10c66b['type']&&'attribute'===_0x372f8b['type']?0x1:'deletion'==_0x10c66b['type']&&'deletion'!=_0x372f8b['type']?-0x1:'deletion'!=_0x10c66b['type']&&'deletion'==_0x372f8b['type']?0x1:0x0);}function to(_0x2b1b98,_0x10fffa){let _0xced7d,_0x15d863=0x0;const _0x5d5292=[],_0x491523=_0x10fffa['schema'];for(;_0x15d863<_0x2b1b98['length'];){const _0x3754d6=_0x2b1b98[_0x15d863],_0x226ce9=_0x2b1b98[_0x15d863+0x1];_0xced7d||(_0xced7d=_0x10fffa['createPositionBefore'](_0x3754d6)),nn(_0x10fffa,_0x3754d6,_0x226ce9)||(_0x5d5292['push'](_0x10fffa['createRange'](_0xced7d,_0x491523['isObject'](_0x3754d6)?_0x10fffa['createPositionAfter'](_0x3754d6):_0x10fffa['createPositionAt'](_0x3754d6,'end'))),_0xced7d=null),_0x15d863++;}return _0x5d5292;}function nn(_0x3ca709,_0x47adb4,_0x1d18e5){if(!_0x1d18e5)return!0x1;const _0x1eeacb=_0x3ca709['createPositionAfter'](_0x47adb4),_0x26a4c7=_0x3ca709['createPositionBefore'](_0x1d18e5);return _0x1eeacb['isTouching'](_0x26a4c7);}function rs(_0x456cb3,_0x5114f4,_0x32a291){for(;_0x32a291['length'];){const _0x1f7cce=_0x32a291['splice'](0x0,0x64);_0x456cb3['change'](()=>{for(const _0x38a8fa of _0x1f7cce)_0x38a8fa['isInContent']&&_0x5114f4['execute'](_0x38a8fa['id']);});}}class x extends _0x294915{['_command'];['_suggestions'];constructor(_0x28d235,_0x518565,_0x580aec){super(_0x28d235),this['_command']=_0x518565,this['_suggestions']=_0x580aec,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4d8067=Array['from'](this['_suggestions']['values']())['some'](_0x47209c=>_0x47209c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4d8067;}['execute'](){const _0x112c4f=ts(Array['from'](this['_suggestions']['values']()));for(const _0x4ed775 of _0x112c4f){const _0x42d8a4=_0x4ed775['getRanges']();if(!this['editor']['model']['canEditAt'](_0x42d8a4))return;}rs(this['editor']['model'],this['_command'],_0x112c4f);}}class E extends _0x294915{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x25267d,_0x226d4b,_0x5e7823){super(_0x25267d),this['_command']=_0x226d4b,this['_suggestions']=_0x5e7823,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x52a8a9=this['editor']['model']['document']['selection'],_0x559c99=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x36d8a4,_0x405ab0){const _0x4575e5=Array['from'](_0x36d8a4['getRanges']()),_0x576765=new Set();for(const _0x540b3f of _0x405ab0)if(_0x540b3f['isInContent']){for(const _0x28b8c1 of _0x4575e5)for(const _0x854e1c of _0x540b3f['getRanges']())(_0x28b8c1['isIntersecting'](_0x854e1c)||_0x36d8a4['isCollapsed']&&!_0x540b3f['isMultiRange']&&_0x540b3f['next']&&_0x854e1c['end']['isTouching'](_0x28b8c1['start']))&&_0x576765['add'](_0x540b3f);}return _0x576765;}(_0x52a8a9,_0x559c99),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x31d263=ts(Array['from'](this['_selectedSuggestions']));for(const _0xaf3c4d of _0x31d263){const _0x398709=_0xaf3c4d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x398709))return;}rs(this['editor']['model'],this['_command'],_0x31d263);}}class R extends/* #__PURE__ -- @preserve */
24
- _0x5100d7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4f0769,_0x4afb88){super(),this['id']=_0x4afb88['id'],this['type']=_0x4afb88['type'],this['subType']=_0x4afb88['subType']||null,this['author']=_0x4afb88['author'],this['creator']=_0x4afb88['creator']||_0x4afb88['author'],this['isExternal']=Boolean(_0x4afb88['attributes']&&_0x4afb88['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4afb88['originalSuggestionId']||null,this['_model']=_0x4f0769,this['_onAccept']=_0x4afb88['onAccept'],this['_onDiscard']=_0x4afb88['onDiscard'],this['_onAttributesChange']=_0x4afb88['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4afb88['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 _0xb5c3e=this;for(;_0xb5c3e['previous'];)_0xb5c3e=_0xb5c3e['previous'];return _0xb5c3e;}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'](_0x287781){this['_markerNames']['add'](_0x287781);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x44b3fd=>this['_model']['markers']['get'](_0x44b3fd))['filter'](_0x3dbd1c=>_0x3dbd1c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x524e91=>{for(const _0x50df30 of this['getMarkers']())_0x524e91['removeMarker'](_0x50df30);}),this['_markerNames']['clear']();}['removeMarker'](_0x5f2b3f){this['_model']['change'](_0xf4b16c=>{_0xf4b16c['removeMarker'](_0x5f2b3f);}),this['_markerNames']['delete'](_0x5f2b3f);}['addRange'](_0x2adb9f){const _0x3854eb='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x3854eb),this['_model']['change'](_0x2ba4b1=>{_0x2ba4b1['addMarker'](_0x3854eb,{'range':_0x2adb9f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x10ae84){for(const _0x1f6226 of this['getRanges']())if(_0x1f6226['isIntersecting'](_0x10ae84))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x30caf2=>_0x30caf2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5a01b7,_0x45f641)=>[..._0x5a01b7,..._0x45f641['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x651c6f=this['getRanges']();if(0x1!=_0x651c6f['length'])return null;const _0x272ebe=_0x651c6f[0x0],_0x48c4db=_0x272ebe['start']['nodeAfter'],_0x30c24b=_0x272ebe['end']['nodeBefore'];return _0x48c4db instanceof _0x417559?_0x48c4db!=_0x30c24b?null:_0x48c4db: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 _0x2faa8f=[];let _0x4c9366=this['head'];for(;_0x4c9366;)_0x2faa8f['push'](_0x4c9366),_0x4c9366=_0x4c9366['next'];return _0x2faa8f;}['setAttribute'](_0x4b7f96,_0x30b5f0){const _0x3b04cf=_0x1bbeb3(this['attributes']);_0x1a9a6c(_0x3b04cf,_0x4b7f96,_0x30b5f0),_0x5cf543(_0x3b04cf,this['attributes'])||(this['attributes']=_0x3b04cf,this['_onAttributesChange'](_0x3b04cf));}['removeAttribute'](_0x16549e){const _0x185630=_0x1bbeb3(this['attributes']);_0x68555b(_0x185630,_0x16549e),_0x5cf543(_0x185630,this['attributes'])||(this['attributes']=_0x185630,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 _0x668662()['substr'](0x1,0x5);}}function o(_0x285eaf,_0x2a5699,_0x4d82e4){const _0x447bf7=_0x285eaf['t'],t=_0x285eaf['t'];switch(_0x2a5699){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',_0x4d82e4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4d82e4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4d82e4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4d82e4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4d82e4);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',_0x4d82e4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4d82e4);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',_0x4d82e4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4d82e4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4d82e4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4d82e4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4d82e4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4d82e4);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4d82e4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4d82e4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4d82e4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4d82e4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4d82e4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4d82e4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4d82e4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4d82e4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4d82e4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4d82e4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4d82e4);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4d82e4);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'},_0x4d82e4);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4d82e4);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4d82e4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4d82e4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4d82e4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4d82e4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4d82e4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4d82e4);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'},_0x4d82e4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4d82e4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4d82e4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4d82e4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4d82e4);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'},_0x4d82e4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4d82e4);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'},_0x4d82e4);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x4d82e4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4d82e4);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'},_0x4d82e4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4d82e4);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'},_0x4d82e4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4d82e4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4d82e4);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'},_0x4d82e4);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4d82e4);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 _0x447bf7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4d82e4);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x447bf7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4d82e4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4d82e4);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'},_0x4d82e4);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'},_0x4d82e4);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'},_0x4d82e4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2a5699;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x514e6b,_0x5f395a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x514e6b,this['_locale']=_0x5f395a;}['getDescriptions'](_0x1f24a6){const _0x1472c7=[],_0x2dd313=new Set(),_0x15c1f7=new Set();for(let _0x274e98=0x0;_0x274e98<_0x1f24a6['length'];_0x274e98++){const _0x426441=_0x1f24a6[_0x274e98];if(!_0x426441['isInContent'])continue;const _0x3d5c87=this['_handleCustomCallbackDescription'](_0x426441);if(_0x3d5c87){if(null!=_0x426441['subType']){if(_0x2dd313['has'](_0x426441['subType']))continue;_0x2dd313['add'](_0x426441['subType']);}_0x1472c7['push'](_0x3d5c87);}else{if('attribute'==_0x426441['type']){const _0x4eecd5=_0x426441['data']['key'];if(_0x15c1f7['has'](_0x4eecd5))continue;_0x15c1f7['add'](_0x426441['data']['key']),_0x4eecd5==m?this['_handleRenameSuggestionDescription'](_0x1472c7,_0x426441):this['_handleAttributeSuggestionDescription'](_0x1472c7,_0x426441);continue;}'insertion'!=_0x426441['type']&&'deletion'!=_0x426441['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1472c7,_0x426441,_0x1f24a6[_0x274e98+0x1]);}}return this['_resolveDescriptionItems'](_0x1472c7);}['registerDescriptionCallback'](_0x59004a){this['_customCallbacks']['push'](_0x59004a);}['registerElementLabel'](_0x1bcb26,_0x2e92ce,_0x71e2f4=_0x48e2dc['normal']){'function'==typeof _0x1bcb26?_0x980704(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1bcb26,'label':_0x2e92ce,'priority':_0x71e2f4}):this['_itemLabels']['set'](_0x1bcb26,_0x2e92ce);}['registerAttributeLabel'](_0x1bde0c,_0x2f6354){this['_attributeLabels']['set'](_0x1bde0c,_0x2f6354);}['getItemLabel'](_0x1d3367,_0x5eea73=0x1){let _0x4cef81;for(const _0x512c54 of this['_itemLabelsCallbacks'])if(_0x512c54['matchingCallback'](_0x1d3367)){_0x4cef81=_0x512c54['label'];break;}return _0x4cef81||(_0x4cef81=this['_itemLabels']['get'](_0x1d3367['name'])),_0x4cef81?_0x4cef81(_0x5eea73):0x1!==_0x5eea73?_0x5eea73+'\x20'+_0x1d3367['name']+'s':''+_0x1d3367['name'];}['_addDescriptionItems'](_0x3c679a,_0x2920ab){const _0x553aa4=_0x2920ab['getFirstRange']()['getWalker'](),_0x4889b6='insertion'==_0x2920ab['type']?'add':'remove';for(const _0x48b73f of _0x553aa4){const _0x2d51c6=_0x48b73f['item'],_0x50d55=_0x3c679a[_0x3c679a['length']-0x1];if(_0x2d51c6['is']('$textProxy'))_0x50d55&&_0x50d55['type']['indexOf']('Container')>-0x1&&_0x3c679a['pop'](),_0x50d55&&'text'==_0x50d55['type']?_0x50d55[_0x4889b6]+=_0x2d51c6['data']:_0x3c679a['push']({'type':'text','add':'add'==_0x4889b6?_0x2d51c6['data']:'','remove':'remove'==_0x4889b6?_0x2d51c6['data']:''});else{if(this['_schema']['isObject'](_0x2d51c6)){const _0xd11b53=_0x2d51c6;if(_0x50d55&&_0x50d55['type']['indexOf']('Container')>-0x1&&_0x3c679a['pop'](),'elementEnd'==_0x48b73f['type'])continue;_0x50d55&&_0x50d55['type']==_0x4889b6+'Object'&&_0x50d55['element']['name']==_0xd11b53['name']?_0x50d55['quantity']++:_0x3c679a['push']({'type':_0x4889b6+'Object','element':_0xd11b53,'quantity':0x1}),_0x553aa4['skip'](_0x417d03=>!('elementEnd'==_0x417d03['type']&&_0x417d03['item']==_0x2d51c6));}else{if(this['_schema']['checkChild'](_0x2d51c6,'$text')||_0x2d51c6['is']('element','softBreak')){const _0x28a6f6=_0x2d51c6;if('add'==_0x4889b6&&'elementStart'==_0x48b73f['type']||'remove'==_0x4889b6&&'elementEnd'==_0x48b73f['type'])continue;if(_0x50d55&&-0x1==_0x50d55['type']['indexOf']('Container')){'text'==_0x50d55['type']&&(_0x50d55[_0x4889b6]+='\x0a');continue;}let _0x34ba4c;if(_0x34ba4c='add'==_0x4889b6?_0x28a6f6['nextSibling']&&!this['_schema']['isObject'](_0x28a6f6['nextSibling'])?_0x28a6f6['nextSibling']:null:_0x28a6f6['previousSibling']&&!this['_schema']['isObject'](_0x28a6f6['previousSibling'])?_0x28a6f6['previousSibling']:null,_0x28a6f6['isEmpty']||_0x34ba4c&&_0x34ba4c['isEmpty']){const _0x19d7bc=_0x34ba4c&&_0x34ba4c['isEmpty']?_0x34ba4c:_0x28a6f6;_0x50d55&&_0x50d55['type']==_0x4889b6+'EmptyContainer'&&_0x50d55['element']['name']==_0x19d7bc['name']?_0x50d55['quantity']++:_0x3c679a['push']({'type':_0x4889b6+'EmptyContainer','element':_0x19d7bc,'quantity':0x1});}else _0x3c679a['push']({'type':_0x4889b6+'Container','element':_0x28a6f6});}}}}}['_resolveDescriptionItems'](_0x5675bc){const _0x224b41=this['_locale'],_0x4ea2f6=[],_0x2c1fa4=[],_0xbd5807=[];for(const _0x1e1dc9 of _0x5675bc)switch(_0x1e1dc9['type']){case'text':if(_0x1e1dc9['add']=_0x1e1dc9['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1e1dc9['remove']=_0x1e1dc9['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1e1dc9['add']&&''!=_0x1e1dc9['remove']){_0x4ea2f6['push']({'type':'replace','content':o(_0x224b41,'REPLACE_TEXT',['\x22'+_0x1e1dc9['remove']+'\x22','\x22'+_0x1e1dc9['add']+'\x22'])});continue;}if(null!=_0x1e1dc9['add']['match'](/^ +$/)){_0x4ea2f6['push']({'type':'insertion','content':o(_0x224b41,'*Insert:*\x20%0',o(_0x224b41,'ELEMENT_SPACE',_0x1e1dc9['add']['length']))});continue;}if(null!=_0x1e1dc9['remove']['match'](/^ +$/)){_0x4ea2f6['push']({'type':'deletion','content':o(_0x224b41,'*Remove:*\x20%0',o(_0x224b41,'ELEMENT_SPACE',_0x1e1dc9['remove']['length']))});continue;}if(''!=_0x1e1dc9['add']){_0x4ea2f6['push']({'type':'insertion','content':o(_0x224b41,'*Insert:*\x20%0','\x22'+_0x1e1dc9['add']+'\x22')});continue;}_0x4ea2f6['push']({'type':'deletion','content':o(_0x224b41,'*Remove:*\x20%0','\x22'+_0x1e1dc9['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4ea2f6['push']({'type':'insertion','content':o(_0x224b41,'*Insert:*\x20%0',this['getItemLabel'](_0x1e1dc9['element'],_0x1e1dc9['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4ea2f6['push']({'type':'deletion','content':o(_0x224b41,'*Remove:*\x20%0',this['getItemLabel'](_0x1e1dc9['element'],_0x1e1dc9['quantity']))});continue;case'addContainer':_0x4ea2f6['push']({'type':'insertion','content':o(_0x224b41,'*Split:*\x20%0',this['getItemLabel'](_0x1e1dc9['element'],_0x1e1dc9['quantity']))});continue;case'removeContainer':_0x4ea2f6['push']({'type':'deletion','content':o(_0x224b41,'*Merge:*\x20%0',this['getItemLabel'](_0x1e1dc9['element'],_0x1e1dc9['quantity']))});continue;case'addFormat':_0x2c1fa4['push'](_0x1e1dc9['key']);continue;case'removeFormat':_0xbd5807['push'](_0x1e1dc9['key']);continue;default:_0x4ea2f6['push'](_0x1e1dc9);}if(_0x2c1fa4['length']){const _0x26b56c=_0x2c1fa4['map'](_0x53a2ee=>this['_attributeLabels']['has'](_0x53a2ee)?this['_attributeLabels']['get'](_0x53a2ee):_0x53a2ee)['join'](',\x20');_0x4ea2f6['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x26b56c)});}if(_0xbd5807['length']){const _0x21d75c=_0xbd5807['map'](_0x29a90b=>this['_attributeLabels']['has'](_0x29a90b)?this['_attributeLabels']['get'](_0x29a90b):_0x29a90b)['join'](',\x20');_0x4ea2f6['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x21d75c)});}return _0x4ea2f6;}['_handleCustomCallbackDescription'](_0x3fedd0){for(const _0x23d0fa of this['_customCallbacks']){const _0x592960=_0x23d0fa(_0x3fedd0);if(_0x592960&&'type'in _0x592960)return _0x592960;}}['_handleAttributeSuggestionDescription'](_0x14f651,_0x5e0fa2){const _0xa2e580=_0x5e0fa2['data'],_0x5ebf5b=void 0x0===_0xa2e580['newValue']?'removeFormat':'addFormat';_0x14f651['push']({'type':_0x5ebf5b,'key':_0xa2e580['key']});}['_handleRenameSuggestionDescription'](_0x139e10,_0x3baa5a){_0x139e10['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3baa5a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x59628c,_0x2c8790,_0x97bfbb){if(this['_addDescriptionItems'](_0x59628c,_0x2c8790),_0x97bfbb&&_0x97bfbb['getFirstRange']()&&!_0x2c8790['getFirstRange']()['end']['isEqual'](_0x97bfbb['getFirstRange']()['start'])){const _0x4ffe9d=_0x59628c[_0x59628c['length']-0x1],_0x50a53e='insertion'==_0x2c8790['type']?'add':'remove';_0x4ffe9d&&'text'==_0x4ffe9d['type']&&(_0x4ffe9d[_0x50a53e]+='\x0a');}}}class V extends _0x1ac4a7{['afterInit'](){const _0x46d901=this['editor'],_0x1559e1=_0x46d901['plugins']['get']('TrackChangesEditing');_0x46d901['commands']['get']('showAIAssistant')&&_0x1559e1['enableCommand']('showAIAssistant');}}class F extends _0x1ac4a7{['afterInit'](){const _0x509b53=this['editor'],_0x30055d=_0x509b53['plugins']['get']('TrackChangesEditing');_0x509b53['commands']['get']('toggleAi')&&_0x30055d['enableCommand']('toggleAi');}}class G extends _0x1ac4a7{['afterInit'](){const _0x16998a=this['editor'],_0x32b835=_0x16998a['locale'];if(!_0x16998a['plugins']['has']('AlignmentEditing'))return;const _0x3cb2e4=_0x16998a['plugins']['get']('TrackChangesEditing');_0x3cb2e4['enableDefaultAttributesIntegration']('alignment'),_0x3cb2e4['registerBlockAttribute']('alignment'),_0x3cb2e4['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x32b835,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c88f9=this['editor'],_0x4e2196=_0x3c88f9['locale'];_0x3c88f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x388726=>{if('formatBlock'!=_0x388726['type'])return;const {data:_0x2689fb}=_0x388726;if(_0x2689fb&&'alignment'==_0x2689fb['commandName']){const _0x476f25=_0x2689fb['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4e2196,'*Format:*\x20%0',function(_0x1da8e3){switch(_0x1da8e3){case'left':return o(_0x4e2196,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4e2196,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4e2196,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4e2196,'FORMAT_JUSTIFY_TEXT');}}(_0x476f25))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x1ac4a7{['afterInit'](){const _0x37f4be=this['editor'],_0x55c860=_0x37f4be['plugins']['get']('TrackChangesEditing'),_0x14b651=_0x37f4be['locale'];for(const _0x5d672e of ti){if(!_0x37f4be['plugins']['has'](_0x5d672e))continue;const _0x365028=_0x5d672e['slice'](0x0,-0x7)['toLowerCase'](),_0x380478='FORMAT_'+_0x365028['toUpperCase']();_0x55c860['enableDefaultAttributesIntegration'](_0x365028),_0x55c860['registerInlineAttribute'](_0x365028),_0x55c860['descriptionFactory']['registerAttributeLabel'](_0x365028,o(_0x14b651,_0x380478));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2394ac=this['editor'],_0x323b69=_0x2394ac['locale'],_0x1a4b7a=_0x2394ac['plugins']['get']('TrackChangesEditing');function _0x1eda43(_0x55ac4e,_0xe11597){_0x1a4b7a['descriptionFactory']['registerDescriptionCallback'](_0x2a95f9=>{if('formatInline'!=_0x2a95f9['type'])return;const {data:_0x2d0afb}=_0x2a95f9;return _0x2d0afb&&_0x2d0afb['commandName']===_0x55ac4e?_0x2d0afb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x323b69,'*Format:*\x20%0',_0xe11597)}:{'type':'format','content':o(_0x323b69,'*Remove\x20format:*\x20%0',_0xe11597)}:void 0x0;});}_0x1eda43('bold',o(_0x323b69,'FORMAT_BOLD')),_0x1eda43('italic',o(_0x323b69,'FORMAT_ITALIC')),_0x1eda43('underline',o(_0x323b69,'FORMAT_UNDERLINE')),_0x1eda43('code',o(_0x323b69,'FORMAT_CODE')),_0x1eda43('strikethrough',o(_0x323b69,'FORMAT_STRIKETHROUGH')),_0x1eda43('subscript',o(_0x323b69,'FORMAT_SUBSCRIPT')),_0x1eda43('superscript',o(_0x323b69,'FORMAT_SUPERSCRIPT'));}}class J extends _0x1ac4a7{['afterInit'](){const _0x167ca0=this['editor'],_0x2ec094=_0x167ca0['locale'];if(!_0x167ca0['plugins']['has']('BlockQuoteEditing'))return;const _0x3513ea=_0x167ca0['plugins']['get']('TrackChangesEditing'),_0x47f207=this['editor']['commands']['get']('blockQuote');_0x3513ea['enableCommand']('blockQuote',(_0x2d8a65,_0x1774d6={})=>{const _0x4bbd59=this['editor']['model']['document']['selection'],_0x18996d=_0x1774d6&&void 0x0!==_0x1774d6['forceValue']?_0x1774d6['forceValue']:!_0x47f207['value'];let _0x571c7b=[];if(_0x18996d){const _0x271e3c=Array['from'](_0x4bbd59['getSelectedBlocks']())['filter'](_0x1bc2ee=>oo(_0x1bc2ee)||function(_0x420a77,_0x31b226){const _0x1b4338=_0x31b226['checkChild'](_0x420a77['parent'],'blockQuote'),_0x48fe0e=_0x31b226['checkChild'](['$root','blockQuote'],_0x420a77);return _0x1b4338&&_0x48fe0e;}(_0x1bc2ee,this['editor']['model']['schema']));_0x571c7b=to(_0x271e3c,_0x167ca0['model']);}else{const _0x434241=Array['from'](_0x4bbd59['getSelectedBlocks']())['filter'](_0x30f0f6=>oo(_0x30f0f6));_0x571c7b=to(_0x434241,_0x167ca0['model']);}_0x167ca0['model']['change'](()=>{for(const _0x37249a of _0x571c7b)_0x3513ea['markBlockFormat'](_0x37249a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x18996d}]});});}),_0x3513ea['descriptionFactory']['registerDescriptionCallback'](_0x4daea9=>{const {data:_0x4b75a4}=_0x4daea9;if(_0x4b75a4&&'blockQuote'==_0x4b75a4['commandName']){const _0x1e7070=o(_0x2ec094,'ELEMENT_BLOCK_QUOTE');return _0x4b75a4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ec094,'*Set\x20format:*\x20%0',_0x1e7070)}:{'type':'format','content':o(_0x2ec094,'*Remove\x20format:*\x20%0',_0x1e7070)};}});}}function oo(_0x3cb230){return'blockQuote'==_0x3cb230['parent']['name'];}class K extends _0x1ac4a7{['afterInit'](){const _0x43b573=this['editor'],_0x2920ce=_0x43b573['locale'],_0x3d1f04=_0x43b573['plugins']['get']('TrackChangesEditing');_0x43b573['plugins']['has']('BookmarkEditing')&&(_0x3d1f04['enableCommand']('insertBookmark'),_0x3d1f04['enableDefaultAttributesIntegration']('updateBookmark'),_0x3d1f04['registerBlockAttribute']('bookmarkId'),_0x3d1f04['descriptionFactory']['registerDescriptionCallback'](_0x3ef1bb=>{if('insertion'!=_0x3ef1bb['type']&&'deletion'!=_0x3ef1bb['type']&&'attribute'!=_0x3ef1bb['type'])return;const _0x3013b4=_0x3ef1bb['getContainedElement']();if(null==_0x3013b4)return;if(!_0x3013b4['is']('element','bookmark'))return;const _0x3a9839=_0x3013b4['getAttribute']('bookmarkId');if('insertion'==_0x3ef1bb['type'])return{'type':'insertion','content':o(_0x2920ce,'*Insert:*\x20%0','\x22'+_0x3a9839+'\x22\x20'+o(_0x2920ce,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3ef1bb['type'])return{'type':'deletion','content':o(_0x2920ce,'*Remove:*\x20%0','\x22'+_0x3a9839+'\x22\x20'+o(_0x2920ce,'ELEMENT_BOOKMARK'))};const {data:_0x24440b}=_0x3ef1bb;if(!_0x24440b||'bookmarkId'!=_0x24440b['key'])return;return{'type':'format','content':o(_0x2920ce,'*Set\x20bookmark:*\x20%0','\x22'+_0x24440b['newValue']+'\x22')};}));}}class H extends _0x1ac4a7{['afterInit'](){const _0x2ca29d=this['editor'];_0x2ca29d['plugins']['has']('CaseChange')&&(_0x2ca29d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2ca29d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2ca29d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x1ac4a7{['afterInit'](){const _0x18e1f7=this['editor'];_0x18e1f7['commands']['get']('ckbox')&&_0x18e1f7['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x1ac4a7{['afterInit'](){const _0x1a1225=this['editor'];if(!_0x1a1225['plugins']['has']('CodeBlock'))return;const _0x1f3ad6=_0x1a1225['plugins']['get']('TrackChangesEditing'),_0x18d2b7=_0x1a1225['locale'],_0x1bdde3=_0x1a1225['config']['get']('codeBlock')['languages'],_0x12f063=_0x1a1225['commands']['get']('codeBlock');_0x1f3ad6['enableCommand']('indentCodeBlock'),_0x1f3ad6['enableCommand']('outdentCodeBlock'),_0x1f3ad6['enableCommand']('codeBlock',(_0xc0f0ae,_0x418e7c={})=>{const _0x5bcb96=_0x1a1225['model'],_0x4ea802=_0x1a1225['model']['document']['selection'],_0x2d3c5f=_0x418e7c&&void 0x0!==_0x418e7c['forceValue']?_0x418e7c['forceValue']:!_0x12f063['value'];let _0x54fffe;_0x418e7c['language']||(_0x418e7c['language']=_0x1bdde3[0x0]['language']),_0x54fffe=_0x2d3c5f?Array['from'](_0x4ea802['getSelectedBlocks']())['filter'](_0x149641=>co(_0x149641)||function(_0x336c5c,_0x3a8920){if(_0x336c5c['is']('rootElement')||_0x3a8920['isLimit'](_0x336c5c))return!0x1;return _0x3a8920['checkChild'](_0x336c5c['parent'],'codeBlock');}(_0x149641,_0x5bcb96['schema'])):Array['from'](_0x4ea802['getSelectedBlocks']())['filter'](_0x224d5b=>co(_0x224d5b));const _0x33e966=to(_0x54fffe,_0x5bcb96);_0x5bcb96['change'](()=>{for(const _0x322091 of _0x33e966)_0x1f3ad6['markBlockFormat'](_0x322091,{'commandName':'codeBlock','commandParams':[{..._0x418e7c,'forceValue':_0x2d3c5f}],'formatGroupId':'blockName'});});}),(_0x1f3ad6['descriptionFactory']['registerElementLabel']('codeBlock',_0x399883=>o(_0x18d2b7,'ELEMENT_CODE_BLOCK',_0x399883)),_0x1f3ad6['descriptionFactory']['registerDescriptionCallback'](_0x1a1ea9=>{if('formatBlock'!=_0x1a1ea9['type'])return;const _0x5d235c=_0x18d2b7['t'],{data:_0x118616}=_0x1a1ea9;if(!_0x118616||'codeBlock'!=_0x118616['commandName'])return;const _0x5ca45f=_0x118616['commandParams'][0x0]['language'],_0x512455=_0x5d235c(_0x1bdde3['find'](_0x27d964=>_0x27d964['language']===_0x5ca45f)['label'])['toLowerCase']();return _0x118616['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18d2b7,'*Set\x20format:*\x20%0',o(_0x18d2b7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x512455+')')}:{'type':'format','content':o(_0x18d2b7,'*Remove\x20format:*\x20%0',o(_0x18d2b7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x49462a){return'codeBlock'==_0x49462a['name'];}class z extends _0x1ac4a7{['afterInit'](){const _0x38be04=this['editor'];if(!_0x38be04['plugins']['has']('CommentsEditing'))return;_0x38be04['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4932fc,_0x1e116b,_0xb1e68c){const _0x27292c=[];for(const _0x4f4366 of _0x1e116b['getItems']())_0x4f4366['hasAttribute'](_0x4932fc)&&_0x27292c['push'](_0xb1e68c['createRangeOn'](_0x4f4366));return _0x27292c;}function Ge(_0x49a61e,_0x403060,{showActiveMarker:_0xcdf3f7=!0x0}={}){const _0x2e964a=_0x49a61e['plugins']['get']('TrackChangesEditing');return(_0x1aed0b,_0x136560,_0x14983d)=>{if(!_0x14983d['consumable']['test'](_0x136560['markerRange'],_0x1aed0b['name']))return;const _0x231c92=_0x136560['markerRange']['getWalker'](),_0x5b886b=_0x136560['markerRange']['start'],_0x3781b3=_0x49a61e['model']['schema'];let _0x4faeb3=null,_0x2800cf=null,_0x13fd53=!0x1,_0x16e578=!0x1;for(const _0x5df4a3 of _0x231c92){const _0x13ad89=_0x5df4a3['item'];_0x13fd53=_0x13fd53||_0x3781b3['isContent'](_0x13ad89);const _0x14afda=_0x14983d['mapper']['toViewElement'](_0x13ad89);if(_0x14afda&&_0x14afda['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5df4a3['type']&&(_0x3781b3['isBlock'](_0x13ad89)&&!_0x3781b3['isLimit'](_0x13ad89)&&(_0x13ad89['nextSibling']||_0x5b886b['isAtEnd']?_0x4faeb3&&_0x4faeb3['parent']==_0x13ad89||(_0x4faeb3=_0x13ad89,_0x74056f(_0x5df4a3['previousPosition']),_0x16e578=!0x0):_0x2800cf=_0x2800cf||_0x5df4a3['previousPosition']));}function _0x74056f(_0x3b901e){const {id:_0x2816d9,authorId:_0x198f13}=_0x2e964a['_splitMarkerName'](_0x136560['markerName']),_0xed4547=_0x14983d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x403060,'data-suggestion':_0x2816d9,'data-author-id':_0x198f13}),_0x14eaa1=_0x14983d['mapper']['toViewPosition'](_0x3b901e);_0xcdf3f7&&_0x2e964a['activeMarkers']['includes'](_0x136560['markerName'])&&_0x14983d['writer']['addClass']('ck-suggestion-marker--active',_0xed4547),_0x14983d['writer']['insert'](_0x14eaa1,_0xed4547),_0x14983d['mapper']['bindElementToMarker'](_0xed4547,_0x136560['markerName']);}_0x13fd53||_0x16e578||!_0x2800cf||_0x74056f(_0x2800cf);};}class Q extends _0x1ac4a7{static get['requires'](){return[_0x99ba60];}['init'](){const _0x45266d=this['editor'],_0x580715=_0x45266d['plugins']['get']('TrackChangesEditing');_0x580715['enableCommand']('delete');const _0x20e804=_0x45266d['commands']['get']('deleteForward');_0x580715['enableCommand']('deleteForward',(_0x45620b,_0x8b4d31={})=>{const _0x37c151=_0x45266d['model']['createSelection'](_0x45266d['model']['document']['selection']);_0x37c151['isCollapsed']&&_0x45266d['model']['modifySelection'](_0x37c151,{'direction':'forward','unit':_0x8b4d31['unit']});const _0x3ebe18=_0x37c151['getFirstRange'](),_0x1fdcb8=_0x2fe235['fromRange'](_0x3ebe18);let _0x2617d6;_0x45620b(_0x8b4d31),_0x2617d6='$graveyard'==_0x1fdcb8['root']['rootName']?_0x45266d['model']['createRange'](_0x3ebe18['start']):_0x45266d['model']['createRange'](_0x1fdcb8['start'],_0x1fdcb8['end']),_0x1fdcb8['detach'](),_0x45266d['model']['enqueueChange'](_0x20e804['buffer']['batch'],_0xc43cf8=>{_0x20e804['buffer']['lock'](),_0xc43cf8['setSelection'](_0xc43cf8['createRange'](_0x2617d6['end'])),_0x20e804['buffer']['unlock']();});}),_0x45266d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0x45266d,'merge'),{'priority':'high'}),_0x45266d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x20f98f,_0x40ebbe,_0x413a91)=>{_0x413a91['options']['showSuggestionHighlights']&&Ge(_0x45266d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x20f98f,_0x40ebbe,_0x413a91);},{'priority':'high'}),_0x45266d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2e6eaa,_0x361fa9,_0x31f402)=>{const _0x36a493=_0x31f402['mapper']['markerNameToElements'](_0x361fa9['markerName']);if(_0x36a493){for(const _0x501c49 of _0x36a493)_0x501c49['is']('uiElement')&&(_0x31f402['mapper']['unbindElementFromMarkerName'](_0x501c49,_0x361fa9['markerName']),_0x31f402['writer']['remove'](_0x501c49));}},{'priority':'high'});}}class X extends _0x1ac4a7{['afterInit'](){const _0x10eba0=this['editor'];if(!_0x10eba0['plugins']['has']('ListEditing'))return;const _0xa8237d=_0x10eba0['locale'],_0x269079=_0x10eba0['plugins']['get']('TrackChangesEditing'),_0xbdcb9b=_0x10eba0['plugins']['has']('TodoListEditing'),_0x808812=!!_0x10eba0['config']['get']('list.multiBlock');function _0x148cf8(_0x437559){return{'type':'format','content':''+o(_0xa8237d,'*Set\x20format:*\x20%0',_0x437559)};}function _0x376c63(_0x3acf56){return{'type':'format','content':''+o(_0xa8237d,'*Remove\x20format:*\x20%0',_0x3acf56)};}_0x269079['enableDefaultAttributesIntegration']('numberedList'),_0x269079['enableDefaultAttributesIntegration']('bulletedList'),_0x269079['enableDefaultAttributesIntegration']('customNumberedList'),_0x269079['enableDefaultAttributesIntegration']('customBulletedList'),_0x269079['enableDefaultAttributesIntegration']('indentList'),_0x269079['enableDefaultAttributesIntegration']('outdentList'),_0x269079['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x269079['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x269079['registerBlockAttribute']('listItemId'),_0x269079['registerBlockAttribute']('listType'),_0x269079['registerBlockAttribute']('listIndent'),_0x808812&&(_0x269079['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x269079['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xbdcb9b&&(_0x269079['enableDefaultAttributesIntegration']('todoList'),_0x269079['enableDefaultAttributesIntegration']('checkTodoList'),_0x269079['registerBlockAttribute']('todoListChecked'),_0x269079['descriptionFactory']['registerDescriptionCallback'](_0x1d1f34=>{const {data:_0x47d184}=_0x1d1f34;if(_0x47d184&&'todoListChecked'==_0x47d184['key'])return{'type':'format','content':_0x47d184['newValue']?o(_0xa8237d,'*Check\x20item*'):o(_0xa8237d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x8ca2ca=>{if(_0x8ca2ca['batch']['isUndo'])return!0x1;let _0x1a1e35=!0x1;const _0x19c9d5=_0x269079['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19f6f6=>'todoListChecked'===_0x269079['_getAttributeKey'](_0x19f6f6));for(const _0x35aeb3 of _0x19c9d5){'todo'!=_0x35aeb3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x269079['_findSuggestions'](_0x35aeb3['getFirstRange'](),'attribute')['find'](_0x2ef4b8=>'listType'===_0x269079['_getAttributeKey'](_0x2ef4b8['suggestion']))||(_0x8ca2ca['removeMarker'](_0x35aeb3['getFirstMarker']()),_0x1a1e35=!0x0));}return _0x1a1e35;})),_0x269079['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xa8237d,'FORMAT_INDENT'));const _0x3ba21c={'type':'format','content':''};_0x269079['descriptionFactory']['registerDescriptionCallback'](_0x4192ce=>{const {data:_0x198d36}=_0x4192ce;if(!_0x198d36||'listType'!=_0x198d36['key'])return;let _0x293491=_0x4192ce['head'];for(;_0x293491;){if(_0x293491['data']&&(('listStyle'==_0x293491['data']['key']||'listMarkerStyle'==_0x293491['data']['key'])&&(_0x293491['data']['newValue']&&'default'!=_0x293491['data']['newValue']||'default'!=_0x293491['data']['oldValue']&&!_0x198d36['newValue'])||!_0x808812&&_0x293491['data']['key']==m))return _0x3ba21c;_0x293491=_0x293491['next'];}if(null==_0x198d36['newValue'])switch(_0x198d36['oldValue']){case'bulleted':return _0x376c63(o(_0xa8237d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x376c63(o(_0xa8237d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x376c63(o(_0xa8237d,'ELEMENT_TODO_LIST'));}switch(_0x198d36['newValue']){case'bulleted':return _0x148cf8(o(_0xa8237d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x148cf8(o(_0xa8237d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x148cf8(o(_0xa8237d,'ELEMENT_TODO_LIST'));}}),_0x269079['descriptionFactory']['registerDescriptionCallback'](_0xd4e3e4=>{const {data:_0x31ee4a}=_0xd4e3e4;if(_0x31ee4a&&'listIndent'==_0x31ee4a['key'])return null==_0x31ee4a['newValue']||null==_0x31ee4a['oldValue']&&0x0==_0x31ee4a['newValue']?_0x3ba21c:void 0x0;}),_0x269079['descriptionFactory']['registerDescriptionCallback'](_0x27eef9=>{if('attribute'!=_0x27eef9['type'])return;const {data:_0x1eeb8d}=_0x27eef9;if(!_0x1eeb8d||'listItemId'!=_0x1eeb8d['key'])return;const _0x4054bf=Be(_0x27eef9);return'newValue'==_0x4054bf?{'type':'format','content':o(_0xa8237d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4054bf?{'type':'format','content':o(_0xa8237d,'*Split:*\x20list\x20item')}:_0x3ba21c;}),_0x10eba0['model']['document']['registerPostFixer'](_0xff6032=>this['listItemIdFixer'](_0xff6032)),_0x10eba0['model']['document']['registerPostFixer'](_0x74e196=>this['noTrackChangesFixer'](_0x74e196)),_0x10eba0['model']['document']['on']('change:data',(_0x2fedcf,_0x42f2f3)=>{if(_0x42f2f3['isUndo']||!_0x42f2f3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x198696){if(_0x198696['batch']['isUndo']||!_0x198696['batch']['isLocal'])return!0x1;let _0x377f24=!0x1;const _0x5a0bb2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9119e1=>_0x9119e1['data']&&'listItemId'==_0x9119e1['data']['key'])['filter'](_0xca2033=>_0xca2033['data']['newValue']&&_0xca2033['data']['oldValue']);for(const _0x37af4c of _0x5a0bb2)Be(_0x37af4c)||(_0x198696['removeMarker'](_0x37af4c['getFirstMarker']()),_0x377f24=!0x0);return _0x377f24;}['noTrackChangesFixer'](_0x1bf6ca){if(_0x1bf6ca['batch']['isUndo']||!_0x1bf6ca['batch']['isLocal'])return!0x1;const _0x3d98b3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3d98b3['trackChangesCommand']['value'])return!0x1;let _0x136716=!0x1;const _0x24b711=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4b91d1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4373fe=>'attribute'==_0x4373fe['type'])['filter'](_0x1bb4ac=>_0x24b711['includes'](_0x1bb4ac['attributeKey']));if(0x0==_0x4b91d1['length'])return _0x136716;for(const _0x2c49de of _0x4b91d1){const _0x4244b5=_0x3d98b3['_findSuggestions'](_0x2c49de['range'],'attribute')['filter'](_0x36cb1a=>!_0x36cb1a['meta']['isNextTo'])['map'](_0x13ed28=>_0x13ed28['suggestion'])['filter'](_0x92305c=>{const _0x717073=_0x3d98b3['_getAttributeKey'](_0x92305c);return _0x24b711['includes'](_0x717073);});if(_0x4244b5['length']){for(const _0x21ab0b of _0x4244b5)_0x1bf6ca['removeMarker'](_0x21ab0b['getFirstMarker']());_0x136716=!0x0;}}return _0x136716;}['assureChains'](){const _0x596159=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e28de=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x32fd94;const _0x37b177=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3eef93=>{if(_0x3eef93['data']['oldRange']||!_0x3eef93['data']['newRange'])return null;if(!_0x3eef93['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3fbd7a}=_0x596159['_splitMarkerName'](_0x3eef93['name']);if(!_0x596159['hasSuggestion'](_0x3fbd7a))return null;const _0x39b956=_0x596159['getSuggestion'](_0x3fbd7a);return _0x3e28de['includes'](_0x39b956['data']['key']);})['map'](_0x28b3f7=>{const {id:_0x33a685}=_0x596159['_splitMarkerName'](_0x28b3f7['name']),_0x342c32=_0x596159['getSuggestion'](_0x33a685);return _0x32fd94=_0x342c32['attributes']['groupId'],_0x342c32['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x37b177['size'])return;const _0x4a4524=_0x596159['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf90122=>'attribute'==_0xf90122['type']&&_0xf90122['data']&&_0x3e28de['includes'](_0xf90122['data']['key'])&&_0xf90122['attributes']['groupId']!=_0x32fd94)['map'](_0x2ba8da=>({'listItem':_0x2ba8da['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2ba8da['attributes']['groupId']})),_0x454ac8=new Set();for(const {groupId:_0x5eac06,listItem:_0x1f3912}of _0x4a4524)_0x37b177['has'](_0x1f3912)&&_0x454ac8['add'](_0x5eac06);for(const _0x240c42 of _0x596159['getSuggestions']())_0x454ac8['has'](_0x240c42['attributes']['groupId'])&&_0x240c42['setAttribute']('groupId',_0x32fd94);}['_supportLegacySuggestions'](){const _0x74f80a=this['editor'],_0x60b008=_0x74f80a['locale'],_0x1a2d89=_0x74f80a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1a2d89['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3e12c9,_0x7c66fb){const _0x4d9317=[];for(let _0x4e54d8 of _0x3e12c9)_0x4e54d8['start']['nodeAfter']===_0x4e54d8['end']['parent']&&(_0x4e54d8=_0x74f80a['model']['createRange'](_0x74f80a['model']['createPositionAt'](_0x4e54d8['start']['nodeAfter'],0x0))),_0x4d9317['push'](_0x4e54d8);_0x74f80a['model']['change'](_0x4f314e=>{const _0x3e69e1=_0x74f80a['model']['document']['selection'],_0x2cd0c5=Array['from'](_0x3e69e1['getRanges']())['map'](_0x39c7f7=>_0x2fe235['fromRange'](_0x39c7f7));_0x4f314e['setSelection'](_0x4d9317),_0x74f80a['commands']['get'](_0x7c66fb['commandName'])['refresh'](),_0x7c66fb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x74f80a['execute'](_0x7c66fb['commandName'],..._0x7c66fb['commandParams']),_0x4f314e['setSelection'](_0x2cd0c5);for(const _0x1c3337 of _0x2cd0c5)_0x1c3337['detach']();});}),_0x1a2d89['descriptionFactory']['registerElementLabel'](function(_0x59efa8){const _0x3539da=!_0x74f80a['model']['schema']['isObject'](_0x59efa8),_0x1decc1=_0x59efa8['previousSibling'],_0x28523f=_0x59efa8['nextSibling'],_0x44bc1d=_0x59efa8['getAttribute']('listItemId'),_0x5c1a6d=!_0x1decc1||_0x1decc1['getAttribute']('listItemId')!==_0x44bc1d,_0x3d17d1=!_0x28523f||_0x28523f['getAttribute']('listItemId')!==_0x44bc1d;return _0x3539da&&Boolean(_0x44bc1d)&&_0x5c1a6d&&_0x3d17d1;},_0x5b7427=>o(_0x60b008,'ELEMENT_LIST_ITEM',_0x5b7427));}['_registerLegacyDescription'](){const _0x2cde9c=this['editor'],_0x593e34=_0x2cde9c['locale'];function _0x2b9bfe(_0x5a480c){const _0x360371=_0x2cde9c['commands']['get']('bulletedList')['value'],_0x2e2a29=_0x2cde9c['commands']['get']('numberedList')['value'];return'numberedList'===_0x5a480c?_0x360371:_0x2e2a29;}_0x2cde9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x589f74){if('formatBlock'!=_0x589f74['type'])return;const {data:_0x507cbd}=_0x589f74;if(!_0x507cbd)return;let _0x46429f,_0x736b2e,_0x10954e,_0x1c8f16;switch(_0x507cbd['commandName']){case'bulletedList':_0x10954e=_0x507cbd['commandParams'][0x0]['forceValue'],_0x1c8f16=_0x2b9bfe(_0x507cbd['commandName']),_0x46429f=_0x10954e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1c8f16&&_0x2cde9c['config']['get']('list.multiBlock')||(_0x46429f='*Change\x20to:*\x20%0'),_0x736b2e={'type':'format','content':o(_0x593e34,_0x46429f,o(_0x593e34,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x10954e=_0x507cbd['commandParams'][0x0]['forceValue'],_0x1c8f16=_0x2b9bfe(_0x507cbd['commandName']),_0x46429f=_0x10954e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1c8f16&&_0x2cde9c['config']['get']('list.multiBlock')||(_0x46429f='*Change\x20to:*\x20%0'),_0x736b2e={'type':'format','content':o(_0x593e34,_0x46429f,o(_0x593e34,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x46429f='*Indent:*\x20%0',_0x736b2e={'type':'format','content':o(_0x593e34,_0x46429f,o(_0x593e34,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x46429f=function(_0x2b8b68){const _0x47e0f5=_0x2b8b68['getFirstRange']();let _0x16ff01=_0x47e0f5['start']['nodeAfter'];for(;_0x16ff01&&_0x47e0f5['containsItem'](_0x16ff01);){if(_0x16ff01['getAttribute']('listIndent')>0x0)return!0x1;_0x16ff01=_0x16ff01['nextSibling'];}return!0x0;}(_0x589f74)?o(_0x593e34,'*Format:*\x20remove\x20from\x20%0',o(_0x593e34,function(_0x574fb2){return'ELEMENT_'+_0x574fb2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x589f74))):o(_0x593e34,'*Outdent:*\x20%0',o(_0x593e34,'ELEMENT_LIST_ITEM')),_0x736b2e={'type':'format','content':_0x46429f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x507cbd['multipleBlocks']&&(_0x46429f='*Merge:*\x20%0',_0x736b2e={'type':'deletion','content':o(_0x593e34,_0x46429f,o(_0x593e34,'ELEMENT_LIST_ITEM'))});}return _0x736b2e;});}}function Be(_0x2b2312){let _0x512044=_0x2b2312['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x512044;){const _0x396a2c=_0x512044['getAttribute']('listItemId');if(!_0x396a2c)return!0x1;if(_0x396a2c==_0x2b2312['data']['newValue'])return'newValue';if(_0x396a2c==_0x2b2312['data']['oldValue'])return'oldValue';_0x512044=_0x512044['previousSibling'];}return!0x1;}class Y extends _0x1ac4a7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2084cc=this['editor']['config']['get']('list.properties'),_0x58fbf7=this['editor']['plugins']['get']('TrackChangesEditing');_0x2084cc['styles']&&(_0x58fbf7['enableDefaultAttributesIntegration']('listStyle'),_0x58fbf7['registerBlockAttribute']('listStyle')),_0x2084cc['reversed']&&(_0x58fbf7['enableDefaultAttributesIntegration']('listReversed'),_0x58fbf7['registerBlockAttribute']('listReversed')),_0x2084cc['startIndex']&&(_0x58fbf7['enableDefaultAttributesIntegration']('listStart'),_0x58fbf7['registerBlockAttribute']('listStart'));const _0x216d71={'type':'format','content':''};_0x58fbf7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xe0f0dc=this['editor']['locale'];_0x58fbf7['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xe0f0dc,'FORMAT_LIST_REVERSED')),_0x58fbf7['descriptionFactory']['registerDescriptionCallback'](_0x504caa=>{const {data:_0x4c02ba}=_0x504caa;if(_0x4c02ba&&'listReversed'==_0x4c02ba['key'])return null==_0x4c02ba['newValue']||0x0==_0x4c02ba['newValue']&&null==_0x4c02ba['oldValue']?_0x216d71:void 0x0;}),_0x58fbf7['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xe0f0dc,'FORMAT_LIST_START')),_0x58fbf7['descriptionFactory']['registerDescriptionCallback'](_0x3f9f75=>{const {data:_0x3695ab}=_0x3f9f75;if(_0x3695ab&&'listStart'==_0x3695ab['key'])return null==_0x3695ab['newValue']||0x1==_0x3695ab['newValue']&&null==_0x3695ab['oldValue']?_0x216d71:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5511ed=>{if(_0x5511ed['batch']['isUndo'])return!0x1;let _0x25ff86=!0x1;const _0x587a98=_0x58fbf7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21bf69=>{const _0x13615a=_0x58fbf7['_getAttributeKey'](_0x21bf69);return'listStart'==_0x13615a||'listReversed'==_0x13615a;});for(const _0x166467 of _0x587a98){const _0x167a00=_0x166467['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x167a00||'customNumbered'==_0x167a00)continue;_0x58fbf7['_findSuggestions'](_0x166467['getFirstRange'](),'attribute')['find'](_0x367949=>'listType'==_0x58fbf7['_getAttributeKey'](_0x367949['suggestion']))||(_0x5511ed['removeMarker'](_0x166467['getFirstMarker']()),_0x25ff86=!0x0);}return _0x25ff86;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5e6cc8){const _0xf9f78e=this['editor']['locale'],{data:_0x3bf121}=_0x5e6cc8,_0x28c7f0={'type':'format','content':''};if(!_0x3bf121||'listStyle'!=_0x3bf121['key'])return;if(!_0x3bf121['oldValue'])return'default'==_0x3bf121['newValue']?_0x28c7f0:{'type':'format','content':''+o(_0xf9f78e,'*Set\x20format:*\x20%0',o(_0xf9f78e,this['_getTranslationKeyForListStyle'](_0x3bf121['newValue'])))};if(!_0x3bf121['newValue']){if('default'==_0x3bf121['oldValue'])return _0x28c7f0;let _0x15c2ab=_0x5e6cc8['head'];for(;_0x15c2ab;){if(_0x15c2ab['data']&&'listType'==_0x15c2ab['data']['key']&&_0x15c2ab['data']['newValue'])return _0x28c7f0;_0x15c2ab=_0x15c2ab['next'];}return{'type':'format','content':''+o(_0xf9f78e,'*Remove\x20format:*\x20%0',o(_0xf9f78e,this['_getTranslationKeyForListStyle'](_0x3bf121['oldValue'])))};}if('default'!=_0x3bf121['newValue'])return{'type':'format','content':''+o(_0xf9f78e,'*Set\x20format:*\x20%0',o(_0xf9f78e,this['_getTranslationKeyForListStyle'](_0x3bf121['newValue'])))};let _0xb75dbe=_0x5e6cc8['head'];for(;_0xb75dbe;){if(_0xb75dbe['data']&&'listType'==_0xb75dbe['data']['key']&&_0xb75dbe['data']['newValue']&&_0xb75dbe['data']['oldValue'])return _0x28c7f0;_0xb75dbe=_0xb75dbe['next'];}return{'type':'format','content':o(_0xf9f78e,'*Set\x20format:*\x20%0',o(_0xf9f78e,'ELEMENT_'+_0x5e6cc8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3580a5=this['editor'],_0x1219de=_0x3580a5['locale'];_0x3580a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30b928=>{if('formatBlock'!=_0x30b928['type'])return;const {data:_0x10377d}=_0x30b928;if(!_0x10377d)return;let _0xfd5ef4,_0x15aacb;switch(_0x10377d['commandName']){case'listStyle':_0xfd5ef4='*Change\x20to:*\x20%0',_0x15aacb={'type':'format','content':o(_0x1219de,_0xfd5ef4,o(_0x1219de,this['_getTranslationKeyForListStyle'](_0x10377d['commandParams'][0x0]['type'])))};break;case'listReversed':_0xfd5ef4=_0x10377d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x15aacb={'type':'format','content':o(_0x1219de,_0xfd5ef4)};break;case'listStart':_0xfd5ef4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x15aacb={'type':'format','content':o(_0x1219de,_0xfd5ef4,_0x10377d['commandParams'][0x0]['startIndex'])};}return _0x15aacb;});}['_getTranslationKeyForListStyle'](_0x348f11){return'ELEMENT_'+function(_0x901c39){if(Re['includes'](_0x901c39))return'bulleted';if(Ae['includes'](_0x901c39))return'numbered';return null;}(_0x348f11)['toUpperCase']()+'_LIST_'+_0x348f11['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Ae=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Z extends _0x1ac4a7{['afterInit'](){const _0x3b2f13=this['editor'];_0x3b2f13['commands']['get']('emoji')&&_0x3b2f13['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x1ac4a7{static get['requires'](){return[_0x2ee569];}['init'](){const _0xe1aa0=this['editor'],_0x51aaf1=_0xe1aa0['plugins']['get']('TrackChangesEditing'),_0x3fe3d6=_0xe1aa0['commands']['get']('enter');_0x51aaf1['enableCommand']('enter',()=>{_0xe1aa0['model']['change'](_0x1d309b=>{const _0x437063=_0xe1aa0['model']['document']['selection'],_0x4cea73=_0x437063['getFirstPosition'](),_0xdd6dc5=_0x2fe235['fromRange'](_0x437063['getFirstRange']());if(_0x3fe3d6['enterBlock'](_0x1d309b)){const _0x4dfb16=_0xe1aa0['model']['createPositionAt'](_0x4cea73['parent']['nextSibling'],0x0),_0x7a9791=_0x1d309b['createRange'](_0x4cea73,_0x4dfb16);_0x51aaf1['markInsertion'](_0x7a9791);}else _0x1d309b['setSelection'](_0x1d309b['createRange'](_0xdd6dc5['end']));_0xdd6dc5['detach'](),_0x3fe3d6['fire']('afterExecute',{'writer':_0x1d309b});});}),_0xe1aa0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0xe1aa0,'split'),{'priority':'high'}),_0xe1aa0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5611f8,_0x43ed05,_0xa57df7)=>{const _0x216449=_0xa57df7['mapper']['markerNameToElements'](_0x43ed05['markerName']);if(_0x216449){for(const _0x1730c1 of _0x216449)_0x1730c1['hasClass']('ck-suggestion-marker-split')&&(_0xa57df7['mapper']['unbindElementFromMarkerName'](_0x1730c1,_0x43ed05['markerName']),_0xa57df7['writer']['remove'](_0x1730c1));}},{'priority':'high'}),_0xe1aa0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e8fe0,_0xa198ff,_0x20a3f7)=>{_0x20a3f7['options']['showSuggestionHighlights']&&Ge(_0xe1aa0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4e8fe0,_0xa198ff,_0x20a3f7);},{'priority':'high'});}}class et extends _0x1ac4a7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1e49c5=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e49c5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1e49c5['enableCommand']('findNext'),_0x1e49c5['enableCommand']('findPrevious'),_0x1e49c5['enableCommand']('replace'),_0x1e49c5['enableCommand']('replaceAll');}['handleFindCommand'](_0x426708,_0x221859,_0x471bef={}){const _0x1346fd=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x426708(_0x2a30f0=>{let _0x3421a6=('string'==typeof _0x221859?_0x1346fd['findByTextCallback'](_0x221859,_0x471bef):_0x221859)(_0x2a30f0);Array['isArray'](_0x3421a6)&&(_0x3421a6={'results':_0x3421a6,'searchText':'string'==typeof _0x221859?_0x221859:''});const _0x30c4ec=_0x3421a6['results']['filter'](_0x514dde=>!0x1===this['_isInDeletionRange'](_0x514dde,_0x2a30f0['item']));return{..._0x3421a6,'results':_0x30c4ec};},_0x471bef);}['_isInDeletionRange'](_0x5cacdf,_0x16be18){const _0x20a635=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x16be18,_0x5cacdf['start']),this['editor']['model']['createPositionAt'](_0x16be18,_0x5cacdf['end']));for(const _0x1928e6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x20a635['getIntersection'](_0x1928e6['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x1ac4a7{['afterInit'](){const _0x45aba1=this['editor']['locale'],_0x5d85b3=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3e979f,commandName:_0x1a0bea}of eo)this['editor']['plugins']['has'](_0x3e979f)&&(_0x5d85b3['enableDefaultAttributesIntegration'](_0x1a0bea),_0x5d85b3['registerInlineAttribute'](_0x1a0bea));_0x5d85b3['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x45aba1,'FORMAT_FONT_SIZE')),_0x5d85b3['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x45aba1,'FORMAT_FONT_FAMILY')),_0x5d85b3['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x45aba1,'FORMAT_FONT_COLOR')),_0x5d85b3['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x45aba1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d9f62=this['editor'],_0x1625aa=_0x4d9f62['locale'];_0x4d9f62['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a500a=>{const _0x4ab503=_0x1625aa['t'];if('formatInline'!=_0x2a500a['type'])return;const {data:_0x5cb4a1}=_0x2a500a;if(null!=_0x5cb4a1){if('fontSize'==_0x5cb4a1['commandName']){const _0x1f7d5d=_0x5cb4a1['commandParams'][0x0]['value'];if(_0x1f7d5d){const _0xaf801=_0x4ab503(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1a8ace=>_0x1a8ace['model']==_0x1f7d5d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1625aa,'*Set\x20font\x20size:*\x20%0',_0xaf801)};}return{'type':'format','content':o(_0x1625aa,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5cb4a1['commandName']){const _0x237935=_0x5cb4a1['commandParams'][0x0]['value'];return _0x237935?{'type':'format','content':o(_0x1625aa,'*Set\x20font\x20family:*\x20%0',_0x237935)}:{'type':'format','content':o(_0x1625aa,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5cb4a1['commandName']){const _0x5a2019=_0x5cb4a1['commandParams'][0x0]['value'];if(_0x5a2019){const _0x2f0174=_0x512aab(this['editor']['config']['get']('fontColor.colors'))['find'](_0x24e7fd=>_0x24e7fd['model']==_0x5a2019);let _0x2d1a0f=_0x5a2019,_0x4c9ca1='';return _0x2f0174&&(_0x2d1a0f=_0x2f0174['label'],_0x4c9ca1=_0x4ab503(_0x2d1a0f)['toLowerCase']()),{'type':'format','content':o(_0x1625aa,'*Set\x20font\x20color:*\x20%0',_0x4c9ca1)['trim'](),'color':{'value':_0x5a2019,'title':_0x4c9ca1||_0x2d1a0f}};}return{'type':'format','content':o(_0x1625aa,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5cb4a1['commandName']){const _0x9134db=_0x5cb4a1['commandParams'][0x0]['value'];if(_0x9134db){const _0x3a60ca=_0x512aab(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2daabe=>_0x2daabe['model']==_0x9134db);let _0x463432=_0x9134db,_0x567bcc='';return _0x3a60ca&&(_0x463432=_0x3a60ca['label'],_0x567bcc=_0x4ab503(_0x463432)['toLowerCase']()),{'type':'format','content':o(_0x1625aa,'*Set\x20font\x20background\x20color:*\x20%0',_0x567bcc)['trim'](),'color':{'value':_0x9134db,'title':_0x567bcc||_0x463432}};}return{'type':'format','content':o(_0x1625aa,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x1ac4a7{['afterInit'](){const _0x4b4a09=this['editor'],_0x30b054=_0x4b4a09['plugins']['get']('TrackChangesEditing'),_0xaab919=_0x4b4a09['commands']['get']('copyFormat'),_0x563e8f=_0x4b4a09['commands']['get']('pasteFormat');_0xaab919&&_0x563e8f&&(_0x30b054['enableDefaultAttributesIntegration']('pasteFormat'),_0x30b054['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5907ed=this['editor'],_0x158535=_0x5907ed['locale'];_0x5907ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32cc13=>{if('formatBlock'!=_0x32cc13['type']&&'formatInline'!=_0x32cc13['type'])return;const {data:_0x4ea44c}=_0x32cc13;if(_0x4ea44c&&'pasteFormat'===_0x4ea44c['commandName']){const _0x2bc55f=[],_0x57b45e=_0x4ea44c['commandParams'][0x0];for(const [_0x125e1d,_0x367fc7]of Object['entries'](_0x57b45e))_0x2bc55f['push'](ro(_0x5907ed,_0x125e1d,_0x367fc7));return _0x2bc55f['length']?{'type':'format','content':o(_0x158535,'*Set\x20format\x20to:*\x20%0',_0x2bc55f['join'](',\x20'))}:{'type':'format','content':o(_0x158535,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5be66e,_0x536289,_0x469b9c){const _0x3b142c=_0x5be66e['locale']['t'],_0x5d4550=_0x536289['split'](/(?=[A-Z])/)['join']('\x20'),_0x5ce1aa=_0x3b142c(_0x5d4550['charAt'](0x0)['toUpperCase']()+_0x5d4550['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x469b9c)return _0x5ce1aa;if('fontColor'===_0x536289||'fontBackgroundColor'===_0x536289){const _0x2bcd7f=_0x512aab(_0x5be66e['config']['get']('fontColor.colors'))['find'](_0x4c6b7e=>_0x4c6b7e['model']==_0x469b9c);return _0x5ce1aa+'\x20('+(_0x2bcd7f?_0x3b142c(_0x2bcd7f['label'])['toLowerCase']():_0x469b9c)+')';}if('fontSize'===_0x536289&&isNaN(parseFloat(_0x469b9c))){const _0x41f267=_0x5be66e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5be66e['config']['get']('fontSize.options'))['find'](_0x402eaa=>_0x402eaa['model']==_0x469b9c);return _0x5ce1aa+'\x20('+(_0x41f267?_0x3b142c(_0x41f267['title'])['toLowerCase']():_0x469b9c)+')';}return _0x5ce1aa+'\x20('+_0x469b9c+')';}class st extends _0x1ac4a7{['_headingOptions'];['afterInit'](){const _0x24cc9e=this['editor'];if(!_0x24cc9e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x24cc9e['config']['get']('heading.options');const _0x5b1dbc=_0x24cc9e['locale'],_0x214479=_0x24cc9e['plugins']['get']('TrackChangesEditing');_0x214479['enableDefaultAttributesIntegration']('heading');for(const _0x1ba67f of this['_headingOptions'])'paragraph'!=_0x1ba67f['model']&&_0x214479['descriptionFactory']['registerElementLabel'](_0x1ba67f['model'],_0x27b384=>{const _0x4d08a3=this['_getHeadingLevel'](_0x1ba67f['model']);return null!==_0x4d08a3?_0x19955e(_0x27b384,_0x4d08a3):_0xb8e27a(_0x27b384,_0x1ba67f['title']);});function _0x19955e(_0x497b86,_0x1ca70d){return o(_0x5b1dbc,'ELEMENT_HEADING',[_0x497b86,_0x1ca70d]);}function _0xb8e27a(_0x1d55e7,_0x26f49a){return o(_0x5b1dbc,'ELEMENT_HEADING_CUSTOM',[_0x1d55e7,_0x26f49a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11c341=this['editor'],_0x40d1d8=_0x11c341['locale'];function _0x1241cb(_0x1ec92f,_0x13d661){return o(_0x40d1d8,'ELEMENT_HEADING_CUSTOM',[_0x1ec92f,_0x13d661]);}_0x11c341['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bfc3=>{if('formatBlock'!=_0x1bfc3['type'])return;const {data:_0x27e956}=_0x1bfc3;if(_0x27e956&&'heading'==_0x27e956['commandName']){const _0x4a43ef=_0x27e956['commandParams'][0x0]['value'],_0x1815bf=this['_getHeadingLevel'](_0x4a43ef);if(null!==_0x1815bf)return{'type':'format','content':o(_0x40d1d8,'*Change\x20to:*\x20%0',(_0xad6a76=0x1,_0x3454d8=_0x1815bf,o(_0x40d1d8,'ELEMENT_HEADING',[_0xad6a76,_0x3454d8])))};const _0x411a59=this['_headingOptions']['find'](_0x7da950=>_0x7da950['model']===_0x4a43ef)['title'];return{'type':'format','content':o(_0x40d1d8,'*Change\x20to:*\x20%0',_0x1241cb(0x1,_0x411a59))};}var _0xad6a76,_0x3454d8;});}['_getHeadingLevel'](_0x288c14){const _0x1bd822=_0x288c14['match'](/^heading(\d+)/);if(_0x1bd822)return _0x1bd822[0x1];const _0xa85738=this['_headingOptions']?.['find'](_0x3a6dc5=>_0x3a6dc5['model']==_0x288c14);if(_0xa85738&&_0xa85738['view']){const _0x424ad3=_0xa85738['view'],_0x588a6e=(_0x424ad3['name']??_0x424ad3)['match'](/^h(\d+)/);if(_0x588a6e)return _0x588a6e[0x1];}return null;}}class ot extends _0x1ac4a7{['afterInit'](){const _0x152a86=this['editor'];if(!_0x152a86['plugins']['has']('HighlightEditing'))return;const _0x21357f=_0x152a86['plugins']['get']('TrackChangesEditing'),_0x5ad92c=_0x152a86['locale'];_0x21357f['enableDefaultAttributesIntegration']('highlight'),_0x21357f['registerInlineAttribute']('highlight'),_0x21357f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5ad92c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47bc83=this['editor'],_0x3af3b0=_0x47bc83['locale'];_0x47bc83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29040a=>{if('formatInline'!=_0x29040a['type'])return;const {data:_0x59c312}=_0x29040a;if(_0x59c312&&'highlight'==_0x59c312['commandName']){const _0x1fcc63=_0x3af3b0['t'],_0x38e239=_0x59c312['commandParams'][0x0]['value'];if(_0x38e239){const _0x5c8af6=_0x47bc83['config']['get']('highlight.options')['find'](_0x3f1f44=>_0x3f1f44['model']==_0x38e239),_0x46cd3b=_0x1fcc63(_0x5c8af6['title'])['toLowerCase']();return{'type':'format','content':o(_0x3af3b0,'*Set\x20highlight:*\x20%0',_0x46cd3b),'color':{'value':_0x5c8af6['color'],'title':_0x5c8af6['title']}};}return{'type':'format','content':o(_0x3af3b0,'*Remove\x20highlight*',o(_0x3af3b0,'FORMAT_HIGHLIGHT'))};}});}}class rt extends _0x1ac4a7{['afterInit'](){const _0x1c4bb6=this['editor'];if(!_0x1c4bb6['plugins']['has']('HorizontalLineEditing'))return;_0x1c4bb6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x246500=_0x1c4bb6['plugins']['get']('TrackChangesEditing'),_0x22c422=_0x1c4bb6['locale'];_0x246500['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2b32ae=>o(_0x22c422,'ELEMENT_HORIZONTAL_LINE',_0x2b32ae)),_0x1c4bb6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x49c80d,{writer:_0x345d6d,options:_0x3cdb5d})=>{if(!_0x3cdb5d['showSuggestionHighlights'])return null;const _0x2f6306=_0x345d6d['createContainerElement']('div'),_0x42c1ce=_0x345d6d['createEmptyElement']('hr');return _0x345d6d['addClass']('ck-horizontal-line',_0x2f6306),_0x345d6d['insert'](_0x345d6d['createPositionAt'](_0x2f6306,0x0),_0x42c1ce),_0x2f6306;},'converterPriority':'high'});}}class at extends _0x1ac4a7{['afterInit'](){const _0x415b79=this['editor'];if(!_0x415b79['plugins']['has']('HtmlEmbed'))return;const _0xfbc762=_0x415b79['plugins']['get']('TrackChangesEditing'),_0x2df80b=_0x415b79['locale'];_0xfbc762['descriptionFactory']['registerElementLabel']('rawHtml',_0x13214a=>o(_0x2df80b,'ELEMENT_HTML_EMBED',_0x13214a)),_0xfbc762['enableDefaultAttributesIntegration']('htmlEmbed'),_0xfbc762['registerBlockAttribute']('value'),_0xfbc762['descriptionFactory']['registerDescriptionCallback'](_0x36a7c6=>{if('attribute'!=_0x36a7c6['type'])return;const {data:_0x9c24c8}=_0x36a7c6;if(_0x9c24c8&&'value'==_0x9c24c8['key']&&_0x36a7c6['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3aeee6=o(_0x2df80b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2df80b,'*Change\x20%0\x20content*',_0x3aeee6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ea4cc=this['editor'],_0x237223=_0x1ea4cc['locale'];_0x1ea4cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x546f34=>{if('formatBlock'!=_0x546f34['type'])return;const {data:_0x5517b6}=_0x546f34;if(_0x5517b6&&'htmlEmbed'==_0x5517b6['commandName']){const _0x2bf826=o(_0x237223,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x237223,'*Change\x20%0\x20content*',_0x2bf826)};}});}}class ct extends _0x1ac4a7{['afterInit'](){const _0x1b8ce6=this['editor'];if(!_0x1b8ce6['plugins']['has']('ImageEditing'))return;const _0x1a81d7=_0x1b8ce6['plugins']['get']('TrackChangesEditing'),_0x289677=_0x1b8ce6['plugins']['get']('ImageUtils'),_0x27e14c=_0x1b8ce6['locale'];_0x1a81d7['enableCommand']('insertImage'),_0x1a81d7['descriptionFactory']['registerElementLabel']('imageBlock',_0x56d82c=>o(_0x27e14c,'ELEMENT_IMAGE',_0x56d82c)),_0x1a81d7['descriptionFactory']['registerElementLabel']('imageInline',_0x59ba69=>o(_0x27e14c,'ELEMENT_INLINE_IMAGE',_0x59ba69)),_0x1a81d7['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x27e14c,'ELEMENT_CAPTION')),_0x1b8ce6['plugins']['has']('ImageUploadEditing')&&_0x1a81d7['enableCommand']('uploadImage'),_0x1b8ce6['plugins']['has']('ImageBlockEditing')&&_0x1b8ce6['plugins']['has']('ImageInlineEditing')&&(_0x1a81d7['enableCommand']('imageTypeInline',(_0x599455,_0x1a6d63)=>{const _0x35ea7c=_0x289677['getClosestSelectedImageElement'](_0x1b8ce6['model']['document']['selection']);_0x1b8ce6['model']['change'](()=>{_0x1a81d7['markBlockFormat'](_0x35ea7c,{'commandName':'imageTypeInline','commandParams':[_0x1a6d63]},[],'convertBlockImageToInline');});}),_0x1a81d7['enableCommand']('imageTypeBlock',(_0x247ab,_0x3e8ed0)=>{_0x1b8ce6['model']['change'](_0x5d89db=>{let _0x461a12=_0x289677['getClosestSelectedImageElement'](_0x1b8ce6['model']['document']['selection']),_0x3e7798=_0x5d89db['createRangeOn'](_0x461a12);const _0x415e9e=_0x4f345c['fromPosition'](_0x3e7798['start'],'toPrevious'),_0x57c1fa=_0x4f345c['fromPosition'](_0x3e7798['end'],'toNext');_0x1a81d7['forceDefaultExecution'](()=>_0x247ab(_0x3e8ed0)),_0x461a12=_0x289677['getClosestSelectedImageElement'](_0x1b8ce6['model']['document']['selection']),_0x3e7798=_0x5d89db['createRangeOn'](_0x461a12);const _0x24e2f3=_0x5d89db['createRange'](_0x415e9e,_0x57c1fa);_0x415e9e['detach'](),_0x57c1fa['detach'](),_0x1a81d7['markBlockFormat'](_0x461a12,{'commandName':'imageTypeInline','commandParams':[_0x3e8ed0]},[],'convertInlineImageToBlock'),_0x24e2f3['start']['isBefore'](_0x3e7798['start'])&&_0x1a81d7['markInsertion'](_0x5d89db['createRange'](_0x24e2f3['start'],_0x3e7798['start']),'convertInlineImageToBlock'),_0x3e7798['end']['isBefore'](_0x24e2f3['end'])&&_0x1a81d7['markInsertion'](_0x5d89db['createRange'](_0x3e7798['end'],_0x24e2f3['end']),'convertInlineImageToBlock');});}),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1a81d7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2dd9ed])=>{const _0xe40ee8=_0x1a81d7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1503be=_0x2dd9ed['start'],_0x23e920=_0x2dd9ed['end'];const _0x46a6b7=_0x1b8ce6['model']['schema']['getNearestSelectionRange'](_0x1503be,'backward'),_0x4abb1a=_0x1b8ce6['model']['schema']['getNearestSelectionRange'](_0x23e920,'forward');_0x46a6b7['isCollapsed']&&(_0x1503be=_0x46a6b7['start']),_0x4abb1a['isCollapsed']&&(_0x23e920=_0x4abb1a['end']),_0xe40ee8([_0x1b8ce6['model']['createRange'](_0x1503be,_0x23e920)]);}),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2f5d32),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2f5d32)),_0x1b8ce6['plugins']['has']('ImageCaptionEditing')&&(_0x1a81d7['enableCommand']('toggleImageCaption',(_0x26c3bc,_0x5ecd23)=>{const _0x1a5721=_0x1b8ce6['plugins']['get']('ImageCaptionUtils');let _0x13946c=_0x289677['getClosestSelectedImageElement'](_0x1b8ce6['model']['document']['selection']),_0xdc3e73=_0x1a5721['getCaptionFromImageModelElement'](_0x13946c);_0x1b8ce6['model']['change'](()=>{if(_0xdc3e73)return void _0x1a81d7['markDeletion'](_0x1b8ce6['model']['createRangeOn'](_0xdc3e73));const _0x34e637=_0x289677['isBlockImage'](_0x13946c);_0x26c3bc(_0x5ecd23),_0x13946c=_0x289677['getClosestSelectedImageElement'](_0x1b8ce6['model']['document']['selection']),_0xdc3e73=_0x1a5721['getCaptionFromImageModelElement'](_0x13946c),_0x1a81d7['markInsertion'](_0x1b8ce6['model']['createRangeOn'](_0xdc3e73),_0x34e637?null:'imageCaption');});}),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2f5d32));const _0x3f2025=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x38c663(_0x1fc8c2,_0x256f4c){const _0x48ca10=_0x3f2025['findIndex'](({type:_0x5636dc,subType:_0x47ad87})=>_0x1fc8c2['type']==_0x5636dc&&_0x1fc8c2['subType']==_0x47ad87),_0x305280=_0x3f2025['findIndex'](({type:_0xc46f0,subType:_0x3eb797})=>_0x256f4c['type']==_0xc46f0&&_0x256f4c['subType']==_0x3eb797);if(_0x48ca10<0x0||_0x305280<0x0)return!0x1;const _0x427ced=_0x1fc8c2['getFirstRange'](),_0x35b54e=_0x256f4c['getFirstRange']();if((0x0==_0x48ca10||0x1==_0x48ca10)&&0x2==_0x305280&&_0x427ced['isIntersecting'](_0x35b54e))return!0x0;if(0x2==_0x48ca10&&0x3==_0x305280){const _0x298d07=_0x1a81d7['_findSuggestions'](_0x427ced,'insertion')['filter'](({suggestion:_0x1863ac,meta:_0x48f013})=>_0x48f013['isOwn']&&'convertInlineImageToBlock'==_0x1863ac['subType']);if(_0x298d07['length']>0x1&&_0x35b54e['end']['isEqual'](_0x427ced['start']))return!0x0;if(0x1==_0x298d07['length']&&(_0x427ced['start']['isEqual'](_0x35b54e['end'])||_0x427ced['end']['isEqual'](_0x35b54e['start'])))return!0x0;}if(0x3==_0x48ca10&&0x3==_0x305280&&_0x427ced['start']['isBefore'](_0x35b54e['start'])){const _0x34ef62=_0x427ced['end']['nodeAfter'],_0x409493=_0x35b54e['start']['nodeBefore'];return _0x289677['isBlockImage'](_0x34ef62)&&_0x34ef62===_0x409493;}return!0x1;}function _0x2f5d32(_0x543551,_0x50c18d){return _0x38c663(_0x543551,_0x50c18d)?[_0x543551,_0x50c18d]:_0x38c663(_0x50c18d,_0x543551)?[_0x50c18d,_0x543551]:null;}_0x1b8ce6['plugins']['has']('ImageResize')&&(_0x1a81d7['enableDefaultAttributesIntegration']('resizeImage'),_0x1a81d7['registerBlockAttribute']('resizedWidth'),_0x1a81d7['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x27e14c,'FORMAT_IMAGE_SIZE'))),_0x1b8ce6['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1a81d7['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1a81d7['registerBlockAttribute']('alt')),_0x1b8ce6['plugins']['has']('PictureEditing')&&(_0x1a81d7['registerBlockAttribute']('sources'),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x448c21=>{if('attribute'!=_0x448c21['type'])return;const {data:_0x4d42e5}=_0x448c21;return _0x4d42e5&&'sources'==_0x4d42e5['key']?{'type':'format','content':''}:void 0x0;})),_0x1b8ce6['plugins']['has']('ImageSizeAttributes')&&(_0x1a81d7['registerBlockAttribute']('width'),_0x1a81d7['registerBlockAttribute']('height'),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x480ebd=>{if('attribute'!=_0x480ebd['type'])return;const {data:_0xdeb164}=_0x480ebd;return!_0xdeb164||'width'!=_0xdeb164['key']&&'height'!=_0xdeb164['key']?void 0x0:{'type':'format','content':''};})),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x967127=>{if(!!_0x3f2025['find'](({type:_0x2128d9,subType:_0x16f6e0})=>_0x967127['type']==_0x2128d9&&_0x967127['subType']==_0x16f6e0))return _0x967127['previous']?{}:void 0x0;}),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x2ce075=>{if('insertion'==_0x2ce075['type']||'deletion'==_0x2ce075['type']){const _0x4ecd66=_0x2ce075['getContainedElement']();if(_0x4ecd66&&_0x4ecd66['is']('element','caption'))return{'type':'insertion'==_0x2ce075['type']?'addObject':'removeObject','element':_0x4ecd66,'quantity':0x1};}}),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x123abd=>'formatBlock'==_0x123abd['type']&&'convertInlineImageToBlock'==_0x123abd['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x123abd['type']&&'convertBlockImageToInline'==_0x123abd['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x1be3f4=>{if('attribute'!=_0x1be3f4['type'])return;const {data:_0x3b737f}=_0x1be3f4;if(!_0x3b737f||'alt'!=_0x3b737f['key'])return;const _0x36b44b=_0x3b737f['newValue'];return _0x36b44b?{'type':'format','content':o(_0x27e14c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x36b44b+'\x22')}:{'type':'format','content':o(_0x27e14c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4725d5=this['editor'],_0x576de8=_0x4725d5['locale'];_0x4725d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ec77b=>{if('formatBlock'!=_0x1ec77b['type']&&'formatInline'!=_0x1ec77b['type'])return;const {data:_0x2499c1}=_0x1ec77b;if(_0x2499c1){if('imageTextAlternative'==_0x2499c1['commandName']){const _0xa9ff29=_0x2499c1['commandParams'][0x0]['newValue'];return _0xa9ff29?{'type':'format','content':o(_0x576de8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xa9ff29+'\x22')}:{'type':'format','content':o(_0x576de8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2499c1['commandName']){const _0x1b0ef3=_0x2499c1['commandParams'][0x0]['width'];return _0x1b0ef3?{'type':'format','content':o(_0x576de8,'*Set\x20image\x20width:*\x20%0',_0x1b0ef3)}:{'type':'format','content':o(_0x576de8,'*Reset\x20image\x20width*')};}}});}}class ut extends _0x1ac4a7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x246de7=this['editor']['locale'],_0x1d3f9e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d3f9e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1d3f9e['registerBlockAttribute']('src'),_0x1d3f9e['descriptionFactory']['registerDescriptionCallback'](_0x27bdd7=>{if('attribute'!=_0x27bdd7['type'])return;const {data:_0x5212bb}=_0x27bdd7;return _0x5212bb&&'src'==_0x5212bb['key']?_0x5212bb['newValue']&&_0x5212bb['oldValue']?{'type':'format','content':o(_0x246de7,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30c252=this['editor']['plugins']['get']('TrackChangesEditing');_0x30c252['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x30c252['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x30c252['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x30c252['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x965a14=this['editor'],_0x3560ad=_0x965a14['locale'];_0x965a14['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x120b88=>{if('formatBlock'!=_0x120b88['type']&&'formatInline'!=_0x120b88['type'])return;const {data:_0x115dea}=_0x120b88;if(!_0x115dea||'replaceImageSource'!=_0x115dea['commandName'])return;return{'type':'format','content':o(_0x3560ad,'*Format:*\x20replace\x20image\x20URL')};});}}class ft extends _0x1ac4a7{['afterInit'](){const _0x5387e5=this['editor'];if(!_0x5387e5['plugins']['has']('ImageStyleEditing'))return;const _0x3a86fe=_0x5387e5['plugins']['get']('TrackChangesEditing'),_0x227e93=_0x5387e5['plugins']['get']('ImageUtils'),_0x5c35c8={};_0x3a86fe['enableCommand']('imageStyle',(_0x3d42ef,_0x3e4914)=>{const _0x21fbc1=_0x5387e5['plugins']['get']('Users')['me'],_0x28ca17=_0x5387e5['commands']['get']('imageStyle');let _0x226793=_0x227e93['getClosestSelectedImageElement'](_0x5387e5['model']['document']['selection']),_0x32adfa=_0x5387e5['model']['createRangeOn'](_0x226793),_0x2f5bf4=_0x28ca17['value'];if(_0x2f5bf4==_0x3e4914['value'])return;const _0x1428e4={'commandName':'imageStyle','commandParams':[_0x3e4914],'formatGroupId':_0x668662()};_0x5387e5['model']['change'](()=>{if(_0x3a86fe['getSuggestions']()['filter'](_0x5cbbd1=>_0x5cbbd1['isInContent']&&_0x21fbc1==_0x5cbbd1['author']&&('formatBlock'==_0x5cbbd1['type']||'formatInline'==_0x5cbbd1['type'])&&('imageStylePreApply'==_0x5cbbd1['subType']||'imageStylePostApply'==_0x5cbbd1['subType'])&&_0x5cbbd1['getFirstRange']()['isEqual'](_0x32adfa))['forEach'](_0x5f5b56=>_0x3a86fe['discardSuggestion'](_0x5f5b56['head'])),_0x226793=_0x227e93['getClosestSelectedImageElement'](_0x5387e5['model']['document']['selection']),_0x32adfa=_0x5387e5['model']['createRangeOn'](_0x226793),_0x28ca17['refresh'](),_0x5387e5['commands']['get']('imageTypeInline')['refresh'](),_0x5387e5['commands']['get']('imageTypeBlock')['refresh'](),_0x2f5bf4=_0x28ca17['value'],_0x2f5bf4!=_0x3e4914['value'])return _0x227e93['isInlineImage'](_0x226793)&&_0x28ca17['shouldConvertImageType'](_0x3e4914['value'],_0x226793)?(_0x3d42ef({..._0x3e4914,'setImageSizes':!0x1}),_0x226793=_0x227e93['getClosestSelectedImageElement'](_0x5387e5['model']['document']['selection']),void _0x3a86fe['markBlockFormat'](_0x226793,{..._0x1428e4,'commandReversedParams':[{'value':_0x2f5bf4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x227e93['isBlockImage'](_0x226793)?_0x3a86fe['markBlockFormat'](_0x226793,_0x1428e4,[],'imageStylePostApply'):_0x3a86fe['markInlineFormat'](_0x32adfa,_0x1428e4,'imageStylePostApply'));});});for(const _0x5bd1e5 of _0x5387e5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5c35c8[_0x5bd1e5['name']]=_0x5bd1e5['title']['toLowerCase']();_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x37bf93])=>{_0x227e93['setImageNaturalSizeAttributes'](_0x37bf93['getContainedElement']());}),_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x41d051,_0xea6cc4)=>{_0x3a86fe['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x41d051,{'commandName':_0xea6cc4['commandName'],'commandParams':_0xea6cc4['commandReversedParams']});}),_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xaa7dc,_0x5730a3){if(_0x36b3aa(_0xaa7dc,_0x5730a3))return[_0xaa7dc,_0x5730a3];if(_0x36b3aa(_0x5730a3,_0xaa7dc))return[_0x5730a3,_0xaa7dc];return null;});const _0x32eaeb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x36b3aa(_0xd64505,_0xbe30e1){const _0x5247cc=_0x32eaeb['findIndex'](({type:_0x8c9070,subType:_0xe978c9})=>_0xd64505['type']==_0x8c9070&&_0xd64505['subType']==_0xe978c9),_0x10037d=_0x32eaeb['findIndex'](({type:_0x274637,subType:_0x5327cb})=>_0xbe30e1['type']==_0x274637&&_0xbe30e1['subType']==_0x5327cb);if(_0x5247cc<0x0||_0x10037d<0x0)return!0x1;const _0x1a8e92=_0xd64505['getFirstRange'](),_0x4be73c=_0xbe30e1['getFirstRange']();if((0x0==_0x5247cc||0x1==_0x5247cc)&&0x2==_0x10037d&&_0x1a8e92['isIntersecting'](_0x4be73c))return!0x0;if(0x2==_0x5247cc&&0x3==_0x10037d){const _0x57247e=_0x3a86fe['_findSuggestions'](_0x1a8e92,'insertion')['filter'](({suggestion:_0x477ade,meta:_0x3db08c})=>_0x3db08c['isOwn']&&'convertInlineImageToBlock'==_0x477ade['subType']);if(_0x57247e['length']>0x1&&_0x4be73c['end']['isEqual'](_0x1a8e92['start']))return!0x0;if(0x1==_0x57247e['length']&&(_0x1a8e92['start']['isEqual'](_0x4be73c['end'])||_0x1a8e92['end']['isEqual'](_0x4be73c['start'])))return!0x0;}if(0x3==_0x5247cc&&0x3==_0x10037d&&_0x1a8e92['start']['isBefore'](_0x4be73c['start'])){const _0x2e6a34=_0x1a8e92['end']['nodeAfter'],_0x179ce1=_0x4be73c['start']['nodeBefore'];return _0x227e93['isBlockImage'](_0x2e6a34)&&_0x2e6a34===_0x179ce1;}return!0x1;}_0x5387e5['model']['document']['registerPostFixer'](()=>{let _0x3e3517=!0x1;const _0x358efb=Array['from'](_0x5387e5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3cd726,data:_0x28da07}of _0x358efb){const {group:_0x42059b,type:_0x23dcc2,subType:_0x28bbac,id:_0x568625}=_0x3a86fe['_splitMarkerName'](_0x3cd726);if('suggestion'==_0x42059b&&_0x3a86fe['hasSuggestion'](_0x568625)){if('formatBlock'==_0x23dcc2&&('imageStylePreApply'==_0x28bbac||'imageStylePostApply'==_0x28bbac)){const _0x155bf5=_0x3a86fe['getSuggestion'](_0x568625);if(_0x28da07['newRange']){const _0x22a987=_0x155bf5['getFirstRange']()['getContainedElement']();if(_0x227e93['isBlockImage'](_0x22a987))continue;_0x3a86fe['discardSuggestion'](_0x155bf5),_0x3e3517=!0x0;}}if('insertion'==_0x23dcc2&&'imageCaption'==_0x28bbac&&!_0x28da07['newRange']){const _0x30cef2=_0x3a86fe['getSuggestion'](_0x568625);_0x30cef2['next']&&_0x30cef2['next']['isInContent']&&(_0x3a86fe['discardSuggestion'](_0x30cef2['next']),_0x3e3517=!0x0);}}}return _0x3e3517;}),this['_registerLegacyDescription'](_0x5c35c8);}['_registerLegacyDescription'](_0x3e2e25){const _0x2a082c=this['editor'],_0x1c55e6=_0x2a082c['locale'];_0x2a082c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43e4b1=>{if('formatBlock'!=_0x43e4b1['type']&&'formatInline'!=_0x43e4b1['type'])return;const {data:_0x184530}=_0x43e4b1;if(!_0x184530||'imageStyle'!=_0x184530['commandName'])return;const _0x144b7d=_0x184530['commandParams'][0x0]['value'];return _0x2b204a('side'===_0x144b7d?o(_0x1c55e6,'FORMAT_SIDE_IMAGE'):_0x3e2e25[_0x144b7d]||_0x144b7d);function _0x2b204a(_0x4ab7dc){return{'type':'format','content':o(_0x1c55e6,'*Format:*\x20%0',_0x4ab7dc)};}});}}class ht extends _0x1ac4a7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x108e5b){super(_0x108e5b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3bcf5b=this['editor'],_0x458049=_0x3bcf5b['commands']['get']('importWord'),_0x5714b2=_0x3bcf5b['commands']['get']('trackChanges');_0x458049&&(_0x458049['on']('execute',(_0xe09a71,[,_0x5e5c9c])=>{this['_trackChangesValueDuringImport']=_0x5714b2['value'],_0x5e5c9c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x458049,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x458049,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5714b2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3bcf5b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x16817c,_0x52fad4){const {suggestions:_0x9f40e}=_0x52fad4,_0x1fe4ff=this['editor']['commands']['get']('trackChanges'),_0x25b764=_0x1fe4ff['value'];this['_trackChangesValueDuringImport']!==_0x25b764&&(_0x1fe4ff['execute'](),this['_trackChangesExecuted']=!0x0),_0x9f40e&&_0x9f40e['forEach'](({id:_0x3f9590,type:_0x354946,author:_0x5b5bff,created_at:_0x46c0e9})=>{const _0x21fa3e={'id':_0x3f9590,'type':_0x354946,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5b5bff,'createdAt':_0x46c0e9?new Date(_0x46c0e9):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x21fa3e);});}}class gt extends _0x1ac4a7{['afterInit'](){const _0x16eced=this['editor'],_0x239e06=_0x16eced['plugins']['get']('TrackChangesEditing');if(_0x16eced['plugins']['has']('IndentEditing')&&(_0x239e06['enableCommand']('indent'),_0x239e06['enableCommand']('outdent')),_0x16eced['plugins']['has']('IndentBlock')){for(const _0x342e54 of['indentBlock','outdentBlock'])_0x239e06['enableDefaultAttributesIntegration'](_0x342e54);}const _0x4ba247=_0x16eced['locale'];_0x239e06['registerBlockAttribute']('blockIndent'),_0x239e06['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4ba247,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3168c0=this['editor'],_0x4ffaa2=_0x3168c0['locale'],_0x5c26c1=_0x3168c0['plugins']['get']('TrackChangesEditing');_0x5c26c1['descriptionFactory']['registerDescriptionCallback'](_0x3932c7=>{if('formatBlock'!=_0x3932c7['type'])return;const {data:_0x4aced1}=_0x3932c7;if(!_0x4aced1)return;if('indentBlock'!=_0x4aced1['commandName']&&'outdentBlock'!=_0x4aced1['commandName'])return;const _0x1410f0=_0x3932c7['getItems']()[0x0],_0x1edfe4=_0x5c26c1['descriptionFactory']['getItemLabel'](_0x1410f0);return'indentBlock'==_0x4aced1['commandName']?{'type':'format','content':o(_0x4ffaa2,'*Indent:*\x20%0',_0x1edfe4)}:'outdentBlock'==_0x4aced1['commandName']?{'type':'format','content':o(_0x4ffaa2,'*Outdent:*\x20%0',_0x1edfe4)}:void 0x0;});}}class lt extends _0x1ac4a7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x1ac4a7{['afterInit'](){const _0x444bc7=this['editor'];if(!_0x444bc7['plugins']['has']('LinkEditing'))return;const _0x5d4e4d=_0x444bc7['plugins']['get']('TrackChangesEditing'),_0x1362dc=_0x444bc7['commands']['get']('link');_0x5d4e4d['enableDefaultAttributesIntegration']('link'),_0x5d4e4d['enableDefaultAttributesIntegration']('unlink'),_0x5d4e4d['registerInlineAttribute']('linkHref');for(const _0x364ed1 of _0x1362dc['manualDecorators'])_0x5d4e4d['registerInlineAttribute'](_0x364ed1['id']),_0x5d4e4d['descriptionFactory']['registerAttributeLabel'](_0x364ed1['id'],'link\x20('+_0x364ed1['label']['toLowerCase']()+')');_0x5d4e4d['descriptionFactory']['registerDescriptionCallback'](_0xb6aba5=>{if('attribute'!=_0xb6aba5['type'])return;const {data:_0x4716c7}=_0xb6aba5;if(!_0x4716c7||'linkHref'!=_0x4716c7['key'])return;const _0x402715=_0x4716c7['newValue'],_0x3bd343=_0x444bc7['locale'];return{'type':'format','content':null==_0x402715?o(_0x3bd343,'*Remove\x20link*'):o(_0x3bd343,'*Set\x20link:*\x20%0','\x22'+_0x402715+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e7f61=this['editor'],_0x1c0c69=_0x1e7f61['locale'];_0x1e7f61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e9ae9=>{if('formatInline'!=_0x5e9ae9['type'])return;const {data:_0x2e2d21}=_0x5e9ae9;if(_0x2e2d21){if('link'==_0x2e2d21['commandName']){const _0x63e7ef=_0x2e2d21['commandParams'][0x0];return{'type':'format','content':o(_0x1c0c69,'*Set\x20link:*\x20%0','\x22'+_0x63e7ef+'\x22')};}return'unlink'==_0x2e2d21['commandName']?{'type':'format','content':o(_0x1c0c69,'*Remove\x20link*')}:void 0x0;}});}}class mt extends _0x1ac4a7{['afterInit'](){const _0x8d56ec=this['editor'],_0x447127=_0x8d56ec['locale'];if(!_0x8d56ec['plugins']['has']('LegacyListEditing'))return;const _0x389601=_0x8d56ec['plugins']['get']('TrackChangesEditing'),_0x2cfcd2=_0x8d56ec['plugins']['has']('LegacyTodoListEditing');function _0xd49148(_0x1dc122){return()=>{const _0xa9ef5=_0x8d56ec['model']['document']['selection'],_0x547d86=_0x8d56ec['commands']['get'](_0x1dc122);if(_0x547d86['value'])return void _0x8d56ec['execute']('paragraph',{});const _0x37ec28=_0x1dc122['slice'](0x0,-0x4),_0x50d835=function(_0x2bb7b7,_0x550fb8,_0x43df37){let _0xc72dc2=Array['from'](_0x2bb7b7)['filter'](_0x27e126=>function(_0x6085f3,_0x4c8841){return _0x4c8841['checkChild'](_0x6085f3['parent'],'listItem')&&!_0x4c8841['isObject'](_0x6085f3);}(_0x27e126,_0x43df37));_0xc72dc2=_0xc72dc2['filter'](_0x468d35=>!_0x468d35['is']('element','listItem')||_0x468d35['getAttribute']('listType')!=_0x550fb8);const _0x2a1442=new Set();for(const _0x246b90 of _0xc72dc2)_0x246b90['is']('element','listItem')?_0x2a1442['add'](Ne(_0x246b90)):_0x2a1442['add'](_0x246b90);return Array['from'](_0x2a1442);}(_0xa9ef5['getSelectedBlocks'](),_0x37ec28,_0x8d56ec['model']['schema']);_0x8d56ec['model']['change'](()=>{for(const _0x34a3e2 of _0x50d835)_0x389601['markBlockFormat'](_0x34a3e2,{'commandName':_0x1dc122,'commandParams':[{'forceValue':!_0x547d86['value']}],'formatGroupId':'blockName'},Se(_0x34a3e2));});};}function _0x9b3bdb(_0x3273a7){return()=>{const _0xc20be6=function(_0x1a1405){let _0xf7a6be=Array['from'](_0x1a1405);const _0x4042d5=_0xf7a6be['findIndex'](_0x5bc20e=>'listItem'!=_0x5bc20e['name']);return _0x4042d5>-0x1&&(_0xf7a6be=_0xf7a6be['slice'](0x0,_0x4042d5)),_0xf7a6be;}(_0x8d56ec['model']['document']['selection']['getSelectedBlocks']()),_0x4d40db=_0x8d56ec['model']['createRange'](_0x8d56ec['model']['createPositionAt'](_0xc20be6[0x0],'before'),_0x8d56ec['model']['createPositionAt'](_0xc20be6[_0xc20be6['length']-0x1],'end'));_0x8d56ec['model']['change'](()=>{_0x389601['markBlockFormat'](_0x4d40db,{'commandName':_0x3273a7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x55d584){const _0x535a26=new Set();for(const _0x5b3ad1 of _0x55d584){let _0xcc4bc3=_0x5b3ad1['nextSibling'];for(;_0xcc4bc3&&_0xcc4bc3['getAttribute']('listIndent')>_0x5b3ad1['getAttribute']('listIndent');)_0x535a26['add'](_0xcc4bc3),_0xcc4bc3=_0xcc4bc3['nextSibling'];}return Array['from'](_0x535a26);}(_0xc20be6));});};}_0x389601['enableCommand']('numberedList',_0xd49148('numberedList')),_0x389601['enableCommand']('bulletedList',_0xd49148('bulletedList')),_0x2cfcd2&&_0x389601['enableCommand']('todoList',_0xd49148('todoList')),_0x389601['enableCommand']('indentList',_0x9b3bdb('indentList')),_0x389601['enableCommand']('outdentList',_0x9b3bdb('outdentList')),_0x2cfcd2&&_0x389601['enableCommand']('checkTodoList',()=>{const _0x47c8e4=_0x8d56ec['commands']['get']('checkTodoList'),_0x12d313=Array['from'](_0x47c8e4['_selectedElements']);_0x12d313['filter'](_0x399552=>_0x399552['getAttribute']('todoListChecked')!=_0x47c8e4['value']),_0x8d56ec['model']['change'](()=>{for(const _0x1de53b of _0x12d313)_0x389601['markBlockFormat'](_0x1de53b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x47c8e4['value']}]});});}),_0x389601['descriptionFactory']['registerElementLabel']('listItem',_0x247983=>o(_0x447127,'ELEMENT_LIST_ITEM',_0x247983)),_0x389601['descriptionFactory']['registerDescriptionCallback'](_0x46ff0c=>{if('formatBlock'!=_0x46ff0c['type']&&'formatInline'!=_0x46ff0c['type'])return;const {data:_0x94fdb3}=_0x46ff0c;if(_0x94fdb3){if('numberedList'==_0x94fdb3['commandName']||'bulletedList'==_0x94fdb3['commandName']||'todoList'==_0x94fdb3['commandName'])switch(_0x94fdb3['commandName']['replace']('List','')){case'bulleted':return _0x45de63(o(_0x447127,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45de63(o(_0x447127,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45de63(o(_0x447127,'ELEMENT_TODO_LIST'));}if('indentList'==_0x94fdb3['commandName'])return{'type':'format','content':o(_0x447127,'*Indent:*\x20%0',o(_0x447127,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x94fdb3['commandName'])return{'type':'format','content':o(_0x447127,'*Outdent:*\x20%0',o(_0x447127,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x94fdb3['commandName'])return _0x94fdb3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x447127,'*Check\x20item*')}:{'type':'format','content':o(_0x447127,'*Uncheck\x20item*')};}function _0x45de63(_0x3d893c){return{'type':'format','content':o(_0x447127,'*Change\x20to:*\x20%0',_0x3d893c)};}});}}function Ne(_0x1edd3f){const _0x1b3f0b=_0x1edd3f['getAttribute']('listIndent');if(0x0==_0x1b3f0b)return _0x1edd3f;let _0x12d038=_0x1edd3f;for(;_0x1edd3f['previousSibling']&&_0x1edd3f['previousSibling']['is']('element','listItem');){const _0x3701c3=_0x1edd3f['previousSibling']['getAttribute']('listIndent');if(_0x3701c3==_0x1b3f0b)_0x12d038=_0x1edd3f['previousSibling'];else{if(_0x3701c3<_0x1b3f0b)break;}_0x1edd3f=_0x1edd3f['previousSibling'];}return _0x12d038;}function Se(_0x13b979){const _0x351af2=[];if(_0x13b979['is']('element','listItem')&&_0x13b979['getAttribute']('listIndent')>0x0){let _0x4ed047=_0x13b979['nextSibling'];for(;_0x4ed047&&'listItem'==_0x4ed047['name']&&_0x4ed047['getAttribute']('listIndent')==_0x13b979['getAttribute']('listIndent');)_0x351af2['push'](_0x4ed047),_0x4ed047=_0x4ed047['nextSibling'];}return _0x351af2;}class pt extends _0x1ac4a7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x9cf233=this['editor']['config']['get']('list.properties'),_0x297bcb=this['editor']['plugins']['get']('TrackChangesEditing');_0x9cf233['styles']&&_0x297bcb['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x9cf233['reversed']&&_0x297bcb['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x9cf233['startIndex']&&_0x297bcb['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x297bcb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x468038,_0x212df3={}){const _0x21890f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42ca95=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x21890f['markMultiRangeBlockFormat'](_0x42ca95,{'commandName':'listStyle','commandParams':[{'type':_0x212df3['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x414472,_0x3444fd={}){const _0x421ce6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42180b=this['_getSuggestionBlocks'](_0x58b231=>_0x58b231['is']('element','listItem')&&'numbered'===_0x58b231['getAttribute']('listType'));if(_0x42180b['length']<0x1)return;const _0x3b6d13=_0x42180b['map'](_0x19c37c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x19c37c,'before'),this['editor']['model']['createPositionAt'](_0x19c37c,0x0)));this['editor']['model']['change'](()=>{_0x421ce6['markMultiRangeBlockFormat'](_0x3b6d13,{'commandName':'listReversed','commandParams':[{'reversed':_0x3444fd['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x322bcb,_0x21ff3a={}){const _0x17a2a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a3cfd=this['_getSuggestionBlocks'](_0x309d08=>_0x309d08['is']('element','listItem')&&'numbered'===_0x309d08['getAttribute']('listType'));if(_0x2a3cfd['length']<0x1)return;const _0x6bad62=_0x2a3cfd['map'](_0x5bd150=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5bd150,'before'),this['editor']['model']['createPositionAt'](_0x5bd150,0x0)));this['editor']['model']['change'](()=>{_0x17a2a0['markMultiRangeBlockFormat'](_0x6bad62,{'commandName':'listStart','commandParams':[{'startIndex':_0x21ff3a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3038b9){if('formatBlock'!=_0x3038b9['type']&&'formatInline'!=_0x3038b9['type'])return;const _0x1ce8ee=this['editor']['locale'],{data:_0x36401}=_0x3038b9;if(!_0x36401)return;let _0x3bfc3f,_0x56e1d7;switch(_0x36401['commandName']){case'listStyle':_0x3bfc3f='*Change\x20to:*\x20%0',_0x56e1d7={'type':'format','content':o(_0x1ce8ee,_0x3bfc3f,o(_0x1ce8ee,this['_getTranslationKeyForListStyle'](_0x36401['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bfc3f=_0x36401['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56e1d7={'type':'format','content':o(_0x1ce8ee,_0x3bfc3f)};break;case'listStart':_0x3bfc3f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56e1d7={'type':'format','content':o(_0x1ce8ee,_0x3bfc3f,_0x36401['commandParams'][0x0]['startIndex'])};}return _0x56e1d7;}['_getSuggestionBlocksForListStyle'](){const _0xb143a6=this['editor']['plugins']['get']('LegacyListUtils');let _0x563baf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x563baf[0x0]?.['is']('element','listItem')&&_0x563baf['unshift'](..._0xb143a6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x563baf[_0x563baf['length']-0x1]?.['is']('element','listItem')&&_0x563baf['push'](..._0xb143a6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x563baf=[...new Set(_0x563baf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x563baf=_0x563baf['filter'](_0x273c45=>_0x273c45['is']('element','listItem'))),_0x563baf;}['_getSuggestionBlocks'](_0x449bcc){const _0x54de54=this['editor']['plugins']['get']('LegacyListUtils');let _0x1cfe42=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x449bcc)['map'](_0x850481=>{const _0x550976=this['editor']['model']['createPositionAt'](_0x850481,0x0);return[..._0x54de54['getSiblingNodes'](_0x550976,'backward'),..._0x54de54['getSiblingNodes'](_0x550976,'forward')];})['flat']();return _0x1cfe42=[...new Set(_0x1cfe42)],_0x1cfe42;}['_getTranslationKeyForListStyle'](_0x50a2b6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x50a2b6)||'default')['toUpperCase']()+'_LIST_'+_0x50a2b6['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x1ac4a7{['afterInit'](){const _0x36e58a=this['editor'];if(!_0x36e58a['plugins']['has']('MediaEmbedEditing'))return;const _0x4db4be=_0x36e58a['plugins']['get']('TrackChangesEditing'),_0x9ee36e=_0x36e58a['locale'];_0x4db4be['enableCommand']('mediaEmbed'),_0x4db4be['descriptionFactory']['registerElementLabel']('media',_0x1351a1=>o(_0x9ee36e,'ELEMENT_MEDIA',_0x1351a1)),_0x36e58a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x18749d,{writer:_0x47eb4f,options:_0x122730})=>{if(_0x122730['showSuggestionHighlights'])return _0x47eb4f['createEmptyElement']('div');},'converterPriority':'high'}),_0x36e58a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2dd33a,_0x2fdb35,_0x5dbae8)=>{_0x5dbae8['options']['showSuggestionHighlights']&&_0x2dd33a['stop']();},{'priority':'high'});}}class wt extends _0x1ac4a7{['afterInit'](){const _0x57f25a=this['editor'];_0x57f25a['plugins']['has']('MentionEditing')&&_0x57f25a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class bt extends _0x1ac4a7{['afterInit'](){const _0x17117f=this['editor'];if(!_0x17117f['plugins']['has']('MergeFieldsEditing'))return;const _0x44510d=_0x17117f['plugins']['get']('TrackChangesEditing'),_0x205fbe=_0x17117f['locale'];_0x44510d['enableCommand']('insertMergeField'),_0x44510d['enableCommand']('insertMergeFieldBlock'),_0x44510d['enableCommand']('insertMergeFieldImage'),_0x44510d['descriptionFactory']['registerElementLabel']('mergeField',_0x4e97d3=>o(_0x205fbe,'ELEMENT_MERGE_FIELD',_0x4e97d3)),_0x44510d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x166877=>o(_0x205fbe,'ELEMENT_MERGE_FIELD',_0x166877)),_0x44510d['descriptionFactory']['registerDescriptionCallback'](_0x12ba73=>{if('insertion'!=_0x12ba73['type']&&'deletion'!=_0x12ba73['type'])return;const _0x1221b2=_0x12ba73['getContainedElement']();if(null==_0x1221b2)return;const _0x1f3d22=_0x17117f['plugins']['get']('MergeFieldsEditing');let _0xf88d09;switch(_0x1f3d22['getMergeFieldType'](_0x1221b2)){case null:return;case'image':{const _0x24b4be=_0x1f3d22['unwrapAffixes'](_0x1221b2['getAttribute']('src'));_0xf88d09=_0x1f3d22['getLabel'](_0x24b4be)||_0x24b4be;break;}default:{const _0x2219f4=_0x1221b2['getAttribute']('id');_0xf88d09=_0x1f3d22['getLabel'](_0x2219f4)||_0x2219f4;break;}}return'insertion'==_0x12ba73['type']?{'type':'insertion','content':o(_0x205fbe,'*Insert:*\x20%0','\x22'+_0xf88d09+'\x22\x20'+o(_0x205fbe,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x205fbe,'*Remove:*\x20%0','\x22'+_0xf88d09+'\x22\x20'+o(_0x205fbe,'ELEMENT_MERGE_FIELD'))};});}}class yt extends _0x1ac4a7{['afterInit'](){const _0x5a04b6=this['editor'],_0x5f0d47=_0x5a04b6['plugins']['get']('TrackChangesEditing');_0x5a04b6['plugins']['has']('MultiLevelList')&&(_0x5f0d47['enableDefaultAttributesIntegration']('multiLevelList'),_0x5f0d47['registerBlockAttribute']('listMarkerStyle'),_0x5f0d47['descriptionFactory']['registerDescriptionCallback'](_0x4ccd4b=>this['handleDescriptions'](_0x4ccd4b)));}['handleDescriptions'](_0x175c9b){const _0x166ecf=this['editor']['locale'],{data:_0x3ab438}=_0x175c9b,_0x15c3df={'type':'format','content':''};if(_0x3ab438&&'listMarkerStyle'==_0x3ab438['key']){if(!_0x3ab438['oldValue'])return{'type':'format','content':o(_0x166ecf,'*Set\x20format:*\x20%0',o(_0x166ecf,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ab438['newValue']+')'};if(!_0x3ab438['newValue']){let _0x19f507=_0x175c9b['head'];for(;_0x19f507;){if(_0x19f507['data']&&'listType'==_0x19f507['data']['key']&&_0x19f507['data']['newValue'])return _0x15c3df;_0x19f507=_0x19f507['next'];}return{'type':'format','content':o(_0x166ecf,'*Remove\x20format:*\x20%0',o(_0x166ecf,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ab438['oldValue']+')'};}}}}class St extends _0x1ac4a7{['afterInit'](){const _0x1a5454=this['editor'];if(!_0x1a5454['plugins']['has']('PageBreakEditing'))return;_0x1a5454['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1fa2a2=_0x1a5454['plugins']['get']('TrackChangesEditing'),_0x36f334=_0x1a5454['locale'];_0x1fa2a2['descriptionFactory']['registerElementLabel']('pageBreak',_0x4cfbf4=>o(_0x36f334,'ELEMENT_PAGE_BREAK',_0x4cfbf4));}}class jt extends _0x1ac4a7{['afterInit'](){const _0x361b3f=this['editor'];if(!_0x361b3f['plugins']['has']('Paragraph'))return;const _0x35010e=_0x361b3f['locale'],_0x39667a=_0x361b3f['plugins']['get']('TrackChangesEditing');_0x39667a['descriptionFactory']['registerElementLabel']('paragraph',_0xfe2445=>o(_0x35010e,'ELEMENT_PARAGRAPH',_0xfe2445)),_0x39667a['enableDefaultAttributesIntegration']('paragraph'),_0x39667a['enableCommand']('insertParagraph'),_0x361b3f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x361b3f),{'priority':'highest'}),_0x361b3f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x91e892,_0x52960b,_0x2d74df)=>{_0x2d74df['options']['showSuggestionHighlights']&&nr(_0x361b3f,{'showActiveMarker':!0x1})(_0x91e892,_0x52960b,_0x2d74df);},{'priority':'highest'});const _0x440a20=_0x39667a['descriptionFactory'];_0x440a20['registerDescriptionCallback'](_0x47973c=>{if('insertion'!==_0x47973c['type'])return;const {start:_0x51f5bc,end:_0x12b809}=_0x47973c['getFirstRange']();if(!_0x51f5bc['isTouching'](_0x12b809)||!_0x51f5bc['nodeAfter'])return;const _0x16ff86=_0x361b3f['model']['schema'],_0x1c9b0c=_0x51f5bc['nodeAfter'];return _0x16ff86['isBlock'](_0x1c9b0c)&&!_0x16ff86['isLimit'](_0x1c9b0c)&&_0x16ff86['checkChild'](_0x1c9b0c,'$text')?{'type':'insertion','content':o(_0x35010e,'*Insert:*\x20%0',_0x440a20['getItemLabel'](_0x1c9b0c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6728ad=this['editor'],_0x1c65f8=_0x6728ad['locale'];_0x6728ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51b35c=>{if('formatBlock'!=_0x51b35c['type'])return;const {data:_0x3303d3}=_0x51b35c;return _0x3303d3&&'paragraph'==_0x3303d3['commandName']?{'type':'format','content':o(_0x1c65f8,'*Change\x20to:*\x20%0',o(_0x1c65f8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x11d4c1,{showActiveMarker:_0x38ece3=!0x0}={}){return(_0x2eb241,_0x734659,_0x3cc418)=>{const _0x284657=_0x11d4c1['plugins']['get']('TrackChangesEditing'),_0x57e09b=_0x734659['markerRange']['start'],_0x11c34a=_0x734659['markerRange']['end'],_0x8badf5=_0x11d4c1['model']['schema'];if(!_0x57e09b['isTouching'](_0x11c34a)||!_0x57e09b['nodeAfter'])return;const _0x2f09d9=_0x57e09b['nodeAfter'];if(_0x8badf5['isBlock'](_0x2f09d9)&&!_0x8badf5['isLimit'](_0x2f09d9)&&_0x8badf5['checkChild'](_0x2f09d9,'$text')){if(!_0x3cc418['consumable']['consume'](_0x734659['markerRange'],_0x2eb241['name']))return;const {id:_0x51a2a6,authorId:_0x566143}=_0x284657['_splitMarkerName'](_0x734659['markerName']),_0x439f3f=_0x3cc418['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x51a2a6,'data-author-id':_0x566143}),_0x38c2a2=_0x3cc418['mapper']['toViewPosition'](_0x11c34a);_0x38ece3&&_0x284657['activeMarkers']['includes'](_0x734659['markerName'])&&_0x3cc418['writer']['addClass']('ck-suggestion-marker--active',_0x439f3f),_0x3cc418['writer']['insert'](_0x38c2a2,_0x439f3f),_0x3cc418['mapper']['bindElementToMarker'](_0x439f3f,_0x734659['markerName']);}};}class It extends _0x1ac4a7{['afterInit'](){const _0x68f7ee=this['editor'];_0x68f7ee['commands']['get']('replaceSource')&&_0x68f7ee['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class At extends _0x1ac4a7{['afterInit'](){const _0x2651e4=this['editor'];if(!_0x2651e4['plugins']['has']('RemoveFormatEditing'))return;_0x2651e4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46cd7a=this['editor'];_0x46cd7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ec832=>{if('formatBlock'!=_0x1ec832['type']&&'formatInline'!=_0x1ec832['type'])return;const {data:_0x3d2adc}=_0x1ec832;return _0x3d2adc&&'removeFormat'==_0x3d2adc['commandName']?{'type':'format','content':o(_0x46cd7a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class _t extends _0x1ac4a7{['afterInit'](){const _0x3f2a42=this['editor'];if(!_0x3f2a42['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4c153a=_0x3f2a42['plugins']['get']('TrackChangesEditing');_0x4c153a['enableCommand']('goToPreviousRestrictedEditingException'),_0x4c153a['enableCommand']('goToNextRestrictedEditingException');const _0x604dbc=_0x3f2a42['plugins']['get']('RestrictedEditingModeEditing');_0x604dbc['enableCommand']('trackChanges'),_0x604dbc['enableCommand']('acceptSuggestion'),_0x604dbc['enableCommand']('discardSuggestion'),_0x604dbc['enableCommand']('acceptAllSuggestions'),_0x604dbc['enableCommand']('discardAllSuggestions'),_0x604dbc['enableCommand']('acceptSelectedSuggestions'),_0x604dbc['enableCommand']('discardSelectedSuggestions');}}class vt extends _0x1ac4a7{['afterInit'](){const _0x9d5c87=this['editor'];if(!_0x9d5c87['plugins']['has']('ShiftEnter'))return;const _0x26f066=_0x9d5c87['plugins']['get']('TrackChangesEditing');_0x26f066['enableCommand']('shiftEnter'),_0x9d5c87['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x9d5c87),{'priority':'high'}),_0x9d5c87['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x9d5c87),{'priority':'high'}),_0x9d5c87['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3b1894,_0x49aecf,_0x232ff3)=>{_0x232ff3['options']['showSuggestionHighlights']&&Fe(_0x9d5c87,{'showActiveMarker':!0x1})(_0x3b1894,_0x49aecf,_0x232ff3);}),_0x26f066['descriptionFactory']['registerElementLabel']('softBreak',_0x344ef7=>o(_0x9d5c87['locale'],'ELEMENT_LINE_BREAK',_0x344ef7));}}function Fe(_0x1eddf2,{showActiveMarker:_0x4bac62=!0x0}={}){return(_0x2affcf,_0x189d63,_0x2efc5a)=>{const _0x3ac06a=_0x1eddf2['plugins']['get']('TrackChangesEditing');if(!_0x2efc5a['consumable']['test'](_0x189d63['markerRange'],_0x2affcf['name']))return;const _0x4cd6fb=_0x1eddf2['model'];for(const _0x343fa3 of _0x189d63['markerRange']['getItems']()){if(!_0x343fa3['is']('element','softBreak'))continue;const _0x46bf97='deletion'==_0x189d63['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x52a263,authorId:_0x34e969}=_0x3ac06a['_splitMarkerName'](_0x189d63['markerName']),_0x5d1b31=_0x2efc5a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46bf97,'data-suggestion':_0x52a263,'data-author-id':_0x34e969}),_0x50d672=_0x2efc5a['mapper']['toViewPosition'](_0x4cd6fb['createPositionBefore'](_0x343fa3));_0x4bac62&&_0x3ac06a['activeMarkers']['includes'](_0x189d63['markerName'])&&_0x2efc5a['writer']['addClass']('ck-suggestion-marker--active',_0x5d1b31),_0x2efc5a['writer']['insert'](_0x50d672,_0x5d1b31),_0x2efc5a['mapper']['bindElementToMarker'](_0x5d1b31,_0x189d63['markerName']);}};}class Ct extends _0x1ac4a7{['afterInit'](){const _0x408eb8=this['editor'],_0x401355=_0x408eb8['model'],_0x123603=_0x408eb8['locale'];if(!_0x408eb8['plugins']['has']('StandardEditingModeEditing'))return;const _0x37c6a2=_0x408eb8['plugins']['get']('TrackChangesEditing'),_0x7db150='restrictedEditingException',_0x57759b=_0x408eb8['commands']['get'](_0x7db150);_0x37c6a2['enableCommand'](_0x7db150,(_0x7f6097,_0x136440={})=>{const _0x42c713=_0x401355['document']['selection'];if(_0x42c713['isCollapsed'])return void _0x7f6097(_0x136440);const _0x27ec6f=void 0x0!==_0x136440['forceValue']?_0x136440['forceValue']:!_0x57759b['value'];_0x401355['change'](()=>{const _0x318bed=Array['from'](_0x42c713['getRanges']());for(const _0x2b6cc3 of _0x318bed){const _0x160855=_0x27ec6f?[_0x2b6cc3]:io(_0x7db150,_0x2b6cc3,_0x401355);for(const _0x3428dc of _0x160855)_0x37c6a2['markInlineFormat'](_0x3428dc,{'commandName':_0x7db150,'commandParams':[{'forceValue':_0x27ec6f}]});}});}),_0x37c6a2['descriptionFactory']['registerDescriptionCallback'](_0x1e27be=>{if('formatBlock'!=_0x1e27be['type']&&'formatInline'!=_0x1e27be['type'])return;const {data:_0x2d78b4}=_0x1e27be;return _0x2d78b4&&_0x2d78b4['commandName']==_0x7db150?_0x2d78b4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x123603,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x123603,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class $t extends _0x1ac4a7{['afterInit'](){const _0x45b915=this['editor'];if(!_0x45b915['plugins']['has']('Style')||!_0x45b915['plugins']['has']('DataSchema'))return;const _0x4aeaf8=_0x45b915['plugins']['get']('TrackChangesEditing'),_0x5982d0=_0x45b915['locale'],_0xfbd6ff=_0x45b915['config']['get']('style')||{},_0x4a8573=_0x45b915['plugins']['get']('GeneralHtmlSupport'),_0x3c05f3=_0x45b915['plugins']['get']('StyleUtils')['normalizeConfig'](_0x45b915['plugins']['get']('DataSchema'),_0xfbd6ff['definitions']);_0x4aeaf8['enableDefaultAttributesIntegration']('style');const _0x3ce9f3=new Set();for(const _0xb39248 of _0x3c05f3['block']){const _0x6ee83e=_0x4a8573['getGhsAttributeNameForElement'](_0xb39248['element']);_0x3ce9f3['add'](_0x6ee83e);}const _0x46f5e7=new Set();for(const _0xc516d0 of _0x3c05f3['inline']){const _0x2c01da=_0x4a8573['getGhsAttributeNameForElement'](_0xc516d0['element']);_0x46f5e7['add'](_0x2c01da);for(const _0x45d2e7 of _0xc516d0['ghsAttributes'])_0x46f5e7['add'](_0x45d2e7);}for(const _0xe567a0 of _0x3ce9f3)_0x4aeaf8['registerBlockAttribute'](_0xe567a0),_0x4aeaf8['descriptionFactory']['registerAttributeLabel'](_0xe567a0,o(_0x5982d0,'FORMAT_STYLE'));for(const _0x1f3c1c of _0x46f5e7)_0x4aeaf8['registerInlineAttribute'](_0x1f3c1c),_0x4aeaf8['descriptionFactory']['registerAttributeLabel'](_0x1f3c1c,o(_0x5982d0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x467619=this['editor'],_0x2f0896=_0x467619['locale'];_0x467619['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ccb20=>{if('formatBlock'!=_0x5ccb20['type']&&'formatInline'!=_0x5ccb20['type'])return;const {data:_0x42d370}=_0x5ccb20;return _0x42d370&&'style'===_0x42d370['commandName']?_0x42d370['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f0896,'*Set\x20format:*\x20%0',_0x42d370['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2f0896,'*Remove\x20format:*\x20%0',_0x42d370['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x1ac4a7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2df42f){super(_0x2df42f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x16b63a=this['editor'],_0x28e695=_0x16b63a['model']['document']['selection'];if(!_0x16b63a['plugins']['has']('TableEditing'))return;const _0x4c127d=_0x16b63a['locale'],_0x58b12b=_0x16b63a['plugins']['get']('TrackChangesEditing'),_0x550a6a=_0x16b63a['plugins']['get']('TableUtils');_0x58b12b['descriptionFactory']['registerElementLabel']('table',_0x5c1e1b=>o(_0x4c127d,'ELEMENT_TABLE',_0x5c1e1b)),this['_setupColumnsRowsFixing'](),_0x58b12b['enableCommand']('insertTable'),_0x58b12b['enableCommand']('selectTableRow'),_0x58b12b['enableCommand']('selectTableColumn');for(const _0x53191e of['insertTableRowAbove','insertTableRowBelow']){const _0x484668=_0x16b63a['commands']['get'](_0x53191e);_0x58b12b['enableCommand'](_0x53191e,_0x13c259=>{_0x16b63a['model']['change'](_0x20c763=>{_0x13c259();const _0x28d4dc='above'===_0x484668['order'],_0x2ff311=_0x550a6a['getSelectionAffectedTableCells'](_0x28e695),_0x1ab27b=_0x550a6a['getRowIndexes'](_0x2ff311),_0xfd87ca=_0x28d4dc?_0x1ab27b['first']-0x1:_0x1ab27b['last']+0x1,_0x3517c8=_0x2ff311[0x0]['findAncestor']('table'),_0x5bafe3=_0x550a6a['createTableWalker'](_0x3517c8,{'startRow':_0xfd87ca,'endRow':_0xfd87ca}),_0x2ca071=Array['from'](_0x5bafe3)['map'](_0x1e872d=>_0x20c763['createRangeOn'](_0x1e872d['cell']));_0x58b12b['markMultiRangeInsertion'](_0x2ca071,'tableRow');});});}for(const _0xe21828 of['insertTableColumnLeft','insertTableColumnRight']){const _0x17be26=_0x16b63a['commands']['get'](_0xe21828);_0x58b12b['enableCommand'](_0xe21828,_0xddb5a7=>{_0x16b63a['model']['change'](_0x192c7c=>{_0xddb5a7();const _0x164515='left'===_0x17be26['order'],_0x49372b=_0x550a6a['getSelectionAffectedTableCells'](_0x28e695),_0xe25340=_0x550a6a['getColumnIndexes'](_0x49372b),_0x1c5981=_0x164515?_0xe25340['first']-0x1:_0xe25340['last']+0x1,_0x8f2618=_0x49372b[0x0]['findAncestor']('table'),_0x31d575=_0x550a6a['createTableWalker'](_0x8f2618,{'startRow':0x0,'column':_0x1c5981,'includeAllSlots':!0x1}),_0x441e90=Array['from'](_0x31d575)['map'](_0x10aab7=>_0x192c7c['createRangeOn'](_0x10aab7['cell']));_0x58b12b['markMultiRangeInsertion'](_0x441e90,'tableColumn');});});}for(const _0x2fa5e2 of['removeTableRow','removeTableColumn']){const _0x27b13e=_0x2fa5e2['substr'](0xb),_0x50188c=_0x27b13e['toLowerCase'](),_0x3f4be1=_0x50188c['substr'](0x0,0x3)+'span',_0x431232='table'+_0x27b13e,_0x2ab5f9='min'+_0x27b13e,_0x59319a='max'+_0x27b13e;_0x58b12b['enableCommand'](_0x2fa5e2,()=>{_0x16b63a['model']['change'](_0x2bba26=>{const _0x5288c3=_0x550a6a['getSelectionAffectedTableCells'](_0x28e695),_0xfed7b1=_0x5288c3[0x0]['findAncestor']('table');let _0x3de5ba;if('removeTableRow'==_0x2fa5e2){const _0x7b2568=_0x550a6a['getRowIndexes'](_0x5288c3);_0x3de5ba={'startRow':_0x7b2568['first'],'endRow':_0x7b2568['last'],'includeAllSlots':!0x0};}else{const _0x4c1267=_0x550a6a['getColumnIndexes'](_0x5288c3);_0x3de5ba={'startColumn':_0x4c1267['first'],'endColumn':_0x4c1267['last'],'includeAllSlots':!0x0};}const _0x79e552=_0x550a6a['createTableWalker'](_0xfed7b1,_0x3de5ba),_0x4cf5c6=Array['from'](_0x79e552)['map'](({cell:_0x113818})=>_0x113818),_0x599d85=Oe(_0x4cf5c6['filter'](_0x1765f3=>_0x1765f3['hasAttribute'](_0x3f4be1))),_0x282a10=Oe(_0x4cf5c6['filter'](_0x189877=>!_0x189877['hasAttribute'](_0x3f4be1)))['map'](_0xfba921=>_0x2bba26['createRangeOn'](_0xfba921)),_0x401003=_0x58b12b['markMultiRangeDeletion'](_0x282a10,_0x431232);if(_0x401003&&('tableRow'==_0x401003['subType']||'tableColumn'==_0x401003['subType'])){const _0x2e9af9=this['_getSuggestionCoords'](_0x401003);for(const _0x1ef933 of _0x599d85){const _0x422698=_0x2bba26['createRangeOn'](_0x1ef933),_0x271705=_0x550a6a['getCellLocation'](_0x1ef933),_0x243580=_0x1ef933['getAttribute'](_0x3f4be1)-0x1,_0x4b4e34=_0x2e9af9[_0x2ab5f9],_0x41bfe4=_0x2e9af9[_0x59319a];_0x4b4e34<=_0x271705[_0x50188c]&&_0x271705[_0x50188c]+_0x243580<=_0x41bfe4&&_0x401003['addRange'](_0x422698);}}});});}function _0x175c18(_0x1ba215){const _0x4130fd=Array['from'](_0x28e695['getRanges']())['map'](_0x295673=>_0x2fe235['fromRange'](_0x295673));_0x16b63a['model']['change'](_0x2794bc=>{const _0x439428=_0x2794bc['batch'];_0x1ba215=_0x1ba215['filter'](_0x31240b=>'$graveyard'!=_0x31240b['root']['rootName']),_0x2794bc['setSelection'](_0x1ba215),_0x16b63a['commands']['get']('removeTableRow')['refresh'](),_0x16b63a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x16b63a['model']['enqueueChange'](()=>{_0x16b63a['model']['enqueueChange'](_0x439428,_0x39ac39=>{const _0x33b605=_0x4130fd['filter'](_0x47227d=>'$graveyard'!=_0x47227d['root']['rootName']);_0x33b605['length']>0x0&&_0x39ac39['setSelection'](_0x33b605);for(const _0x189223 of _0x4130fd)_0x189223['detach']();});});});}function _0x5e339c(_0x386ffc){_0x16b63a['model']['change'](_0x3c3bc9=>{const _0x3c981f=Array['from'](_0x28e695['getRanges']())['map'](_0x139bca=>_0x2fe235['fromRange'](_0x139bca)),_0x33f33c=[];for(const _0x16e749 of _0x386ffc)for(const _0x120bb6 of _0x16e749['getItems']({'shallow':!0x0}))_0x33f33c['push'](_0x120bb6);for(const _0x14aa79 of _0x33f33c)'$graveyard'!=_0x14aa79['root']['rootName']&&(_0x3c3bc9['setSelection'](_0x3c3bc9['createPositionAt'](_0x14aa79,0x0)),_0x16b63a['commands']['get']('removeTableColumn')['refresh'](),_0x16b63a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4e9023=_0x3c981f['filter'](_0x2749db=>'$graveyard'!=_0x2749db['root']['rootName']);_0x4e9023['length']>0x0&&_0x3c3bc9['setSelection'](_0x4e9023);for(const _0x15c5ab of _0x3c981f)_0x15c5ab['detach']();});}function _0x12dad5(_0x3fb885,_0x1c8d51){return _0x1c8d51['every'](_0x5715d7=>_0x3fb885['some'](_0x1f29bd=>_0x1f29bd['end']['isEqual'](_0x5715d7['start'])||_0x5715d7['end']['isEqual'](_0x1f29bd['start'])));}function _0x43bbae(_0x260fae,_0x5a2424){return!_0x260fae['some'](_0x292c7b=>_0x5a2424['some'](_0x12f92d=>_0x292c7b['isIntersecting'](_0x12f92d)))&&_0x260fae['some'](_0x80bed8=>_0x5a2424['some'](_0x5bfb56=>_0x80bed8['end']['isTouching'](_0x5bfb56['start'])));}_0x16b63a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x450898,_0x5e986a,_0x5177e5)=>{if(!_0x5177e5['options']['showSuggestionHighlights'])return;const _0x21fc59=_0x5e986a['item'];if(!_0x21fc59||!_0x21fc59['is']('element','tableCell'))return;const _0x3e1c5a=_0x5177e5['mapper']['toViewElement'](_0x21fc59);if(_0x3e1c5a){const {id:_0x61e277,authorId:_0x508f5d}=_0x58b12b['_splitMarkerName'](_0x5e986a['markerName']);_0x5dc99a(_0x3e1c5a,_0x5177e5['writer'],(_0x2072e2,_0x5e065f,_0x49c082)=>{_0x49c082['addClass'](_0x211a57(_0x5e065f['classes']),_0x2072e2),_0x49c082['setAttribute']('data-suggestion-id',_0x61e277,_0x2072e2),_0x49c082['setAttribute']('data-author-id',_0x508f5d,_0x2072e2);},(_0x31a648,_0x41d9a7,_0xfa4543)=>{_0xfa4543['removeClass'](_0x211a57(_0x41d9a7['classes']),_0x31a648),_0xfa4543['removeAttribute']('data-suggestion-id',_0x31a648),_0xfa4543['removeAttribute']('data-author-id',_0x31a648);});}},{'priority':'highest'}),_0x58b12b['descriptionFactory']['registerDescriptionCallback'](_0x49f46c=>{if('insertion'!=_0x49f46c['type']&&'deletion'!=_0x49f46c['type'])return;const _0xb3f01e=_0x49f46c['getContainedElement']();if(null!=_0xb3f01e&&_0xb3f01e['is']('element','table')){if('insertion'==_0x49f46c['type']){const _0x1617b4=_0x49f46c['getItems']()['filter'](_0x13de25=>_0x13de25['is']('$textProxy'))['map'](_0x4ceac8=>_0x4ceac8['data']);if(_0x1617b4['length'])return{'type':'insertion','content':o(_0x4c127d,'*Insert:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1617b4['join']('\x20')+'\x22'))};}if('deletion'==_0x49f46c['type']){const _0x40d019=_0x49f46c['getItems']()['filter'](_0x858895=>_0x858895['is']('$textProxy'))['map'](_0x5341e5=>_0x5341e5['data']);if(_0x40d019['length'])return{'type':'deletion','content':o(_0x4c127d,'*Remove:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40d019['join']('\x20')+'\x22'))};}}}),_0x58b12b['descriptionFactory']['registerDescriptionCallback'](_0x32280b=>{if('tableRow'==_0x32280b['subType']){const _0x1aa882=_0x32280b['getItems']()['filter'](_0x42fdba=>_0x42fdba['is']('$textProxy'))['map'](_0x255a10=>_0x255a10['data']),_0x3b8c07=this['_getSuggestionCoords'](_0x32280b),_0x49073d=_0x3b8c07['maxRow']-_0x3b8c07['minRow']+0x1;if('insertion'==_0x32280b['type'])return _0x1aa882['length']?{'type':'insertion','content':o(_0x4c127d,'*Insert:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49073d,'\x22'+_0x1aa882['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c127d,'*Insert:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_ROW',_0x49073d))};if('deletion'==_0x32280b['type'])return _0x1aa882['length']?{'type':'deletion','content':o(_0x4c127d,'*Remove:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49073d,'\x22'+_0x1aa882['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c127d,'*Remove:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_ROW',_0x49073d))};}if('tableColumn'==_0x32280b['subType']){const _0x1d6dbd=_0x32280b['getItems']()['filter'](_0x1df699=>_0x1df699['is']('$textProxy'))['map'](_0x197859=>_0x197859['data']),_0x508d1c=this['_getSuggestionCoords'](_0x32280b),_0x2abe96=_0x508d1c['maxColumn']-_0x508d1c['minColumn']+0x1;if('insertion'==_0x32280b['type'])return _0x1d6dbd['length']?{'type':'insertion','content':o(_0x4c127d,'*Insert:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2abe96,'\x22'+_0x1d6dbd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c127d,'*Insert:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_COLUMN',_0x2abe96))};if('deletion'==_0x32280b['type'])return _0x1d6dbd['length']?{'type':'deletion','content':o(_0x4c127d,'*Remove:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2abe96,'\x22'+_0x1d6dbd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c127d,'*Remove:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_COLUMN',_0x2abe96))};}}),_0x58b12b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x175c18),_0x58b12b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x175c18),_0x58b12b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5e339c),_0x58b12b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5e339c),_0x58b12b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x12dad5),_0x58b12b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x12dad5),_0x58b12b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x43bbae),_0x58b12b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x43bbae);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1ee8c2=this['editor'],_0x14ab2b=_0x1ee8c2['model']['document']['selection'];return(_0x13c70c,_0x44736e)=>{_0x1ee8c2['model']['change'](_0xb6e00d=>{const {commandName:_0x18a082,commandParams:_0x306607}=_0x44736e;let _0x26b2c6=_0x13c70c[0x0]['end']['nodeBefore'];_0x306607&&_0x306607[0x0]&&!0x1===_0x306607[0x0]['forceValue']&&(_0x26b2c6=_0x13c70c[0x0]['start']['nodeAfter']);const _0x19a0d9=_0xb6e00d['createRangeIn'](_0x26b2c6);if('$graveyard'==_0x19a0d9['root']['rootName'])return;const _0x16f761=Array['from'](_0x14ab2b['getRanges']())['map'](_0x180ac6=>_0x2fe235['fromRange'](_0x180ac6));_0xb6e00d['setSelection'](_0x19a0d9),_0x1ee8c2['commands']['get'](_0x18a082)['refresh'](),_0x306607['push']({'forceDefaultExecution':!0x0}),_0x1ee8c2['execute'](_0x18a082,..._0x306607);const _0x8a18c3=_0x16f761['filter'](_0x364613=>'$graveyard'!=_0x364613['root']['rootName']);_0x8a18c3['length']>0x0&&_0xb6e00d['setSelection'](_0x8a18c3);for(const _0x2741c6 of _0x16f761)_0x2741c6['detach']();});};}['_getCoordsForCells'](_0x46c9d8){const _0x12c4bc=this['editor']['plugins']['get']('TableUtils');let _0x511275=Number['MAX_SAFE_INTEGER'],_0x256ef3=Number['MIN_SAFE_INTEGER'],_0x21ba1f=Number['MAX_SAFE_INTEGER'],_0x17e839=Number['MIN_SAFE_INTEGER'];for(const _0x35d966 of _0x46c9d8){if('$graveyard'==_0x35d966['root']['rootName'])continue;const {row:_0x5e1b49,column:_0x13453d}=_0x12c4bc['getCellLocation'](_0x35d966),_0x494850=_0x35d966['hasAttribute']('rowspan')?_0x35d966['getAttribute']('rowspan')-0x1:0x0,_0x4f7fb3=_0x35d966['hasAttribute']('colspan')?_0x35d966['getAttribute']('colspan')-0x1:0x0;_0x511275=_0x5e1b49<_0x511275?_0x5e1b49:_0x511275,_0x256ef3=_0x5e1b49+_0x494850>_0x256ef3?_0x5e1b49+_0x494850:_0x256ef3,_0x21ba1f=_0x13453d<_0x21ba1f?_0x13453d:_0x21ba1f,_0x17e839=_0x13453d+_0x4f7fb3>_0x17e839?_0x13453d+_0x4f7fb3:_0x17e839;}return{'minRow':_0x511275,'maxRow':_0x256ef3,'minColumn':_0x21ba1f,'maxColumn':_0x17e839};}['_setupColumnsRowsFixing'](){const _0x59d110=this['editor'],_0x562758=_0x59d110['plugins']['get']('TrackChangesEditing'),_0x3fe870=_0x59d110['plugins']['get']('TableUtils');_0x59d110['model']['document']['on']('change:data',()=>{const _0x5c97e9=Array['from'](_0x59d110['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48d503,data:_0x200bab}of _0x5c97e9){const {group:_0x4fac2d,id:_0x1c4996,subType:_0x5237f9}=_0x562758['_splitMarkerName'](_0x48d503);if('suggestion'!=_0x4fac2d)continue;if(null!=_0x200bab['oldRange'])continue;const _0x4c3323=_0x562758['getSuggestion'](_0x1c4996);this['_tablePostFixingSubtypes']['includes'](_0x5237f9)&&this['_tableSuggestions']['add'](_0x4c3323);}},{'priority':'low'});const _0x27cec0=(_0x17cec7,_0x1151aa)=>{let _0x356d99=!0x1;const _0x479fda=_0x1151aa['createRangeOn'](_0x17cec7),_0x4e74f5=_0x17cec7['findAncestor']('table'),_0x15c382=_0x3fe870['getCellLocation'](_0x17cec7);for(const _0x4ef3c9 of this['_tableSuggestions']){const _0x119062=_0x4ef3c9['subType'],_0x57c24e=_0x119062['startsWith']('tablePaste'),_0x3be556=_0x119062['substr'](_0x57c24e?0xa:0x5),_0x39f037=_0x3be556['toLowerCase'](),_0xf26029=_0x39f037['substr'](0x0,0x3)+'span',_0x204ee8='min'+_0x3be556,_0x29ddad='max'+_0x3be556;if(!_0x4ef3c9['isInContent'])continue;if(_0x4e74f5!=_0x4ef3c9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4ef3c9['isIntersectingWithRange'](_0x479fda))continue;const _0x268e69=_0x17cec7['hasAttribute'](_0xf26029)?_0x17cec7['getAttribute'](_0xf26029)-0x1:0x0,_0x55b26f=this['_getSuggestionCoords'](_0x4ef3c9),_0x54e842=_0x55b26f[_0x204ee8],_0x46b3e2=_0x55b26f[_0x29ddad];_0x54e842<=_0x15c382[_0x39f037]&&_0x15c382[_0x39f037]+_0x268e69<=_0x46b3e2&&(_0x4ef3c9['addRange'](_0x479fda),_0x356d99=!0x0);}return _0x356d99;};_0x59d110['model']['document']['registerPostFixer'](_0x3c4884=>{let _0x31dd41=!0x1;for(const _0x18d8de of _0x59d110['model']['document']['differ']['getChanges']())if('insert'==_0x18d8de['type']){if('tableRow'==_0x18d8de['name']){for(const _0x1b3872 of _0x18d8de['position']['nodeAfter']['getChildren']())_0x31dd41=_0x31dd41||_0x27cec0(_0x1b3872,_0x3c4884);}else'tableCell'==_0x18d8de['name']&&(_0x31dd41=_0x31dd41||_0x27cec0(_0x18d8de['position']['nodeAfter'],_0x3c4884));}return _0x31dd41;});}['_getSuggestionCoords'](_0x426d46){return this['_getCoordsForCells'](_0x426d46['getRanges']()['map'](_0x517740=>_0x517740['start']['nodeAfter']));}}function Oe(_0x331ba0){return Array['from'](new Set(_0x331ba0)['values']());}class Dt extends _0x1ac4a7{static get['requires'](){return[Nt];}['afterInit'](){const _0x13a9c9=this['editor'],_0x32e06d=_0x13a9c9['model']['document']['selection'],_0x5b69b8=_0x13a9c9['locale'];if(!_0x13a9c9['plugins']['has']('TableEditing'))return;const _0x28163f=_0x13a9c9['plugins']['get']('TrackChangesEditing'),_0x1fe8de=_0x13a9c9['plugins']['get']('TableUtils'),_0x114d14=_0x13a9c9['plugins']['get'](Nt);_0x114d14['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x28163f['enableCommand']('mergeTableCells',()=>{const _0x37adca=_0x1fe8de['getSelectionAffectedTableCells'](_0x13a9c9['model']['document']['selection']);_0x13a9c9['model']['change'](()=>{_0x28163f['markMultiRangeBlockFormat'](_0x37adca,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x13a9c9['commands']['get']('mergeTableCells')['on']('execute',(_0x35e028,_0x263650)=>{_0x13a9c9['commands']['get']('trackChanges')['value']&&(_0x263650['length']>0x0&&_0x263650[_0x263650['length']-0x1]&&_0x263650[_0x263650['length']-0x1]['forceDefaultExecution']||_0x28163f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x35e028['stop']());},{'priority':'highest'});for(const _0x57e7d5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4fdc54=_0x13a9c9['commands']['get'](_0x57e7d5);_0x28163f['enableCommand'](_0x57e7d5,()=>{const _0x7bf11d=_0x13a9c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x467a06=>_0x467a06['is']('element','tableCell')),_0x4f66b4=_0x4fdc54['value'];_0x13a9c9['model']['change'](()=>{_0x28163f['markMultiRangeBlockFormat']([_0x7bf11d,_0x4f66b4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x6b4dad of['splitTableCellVertically','splitTableCellHorizontally']){const _0x56cdfa=_0x13a9c9['commands']['get'](_0x6b4dad);_0x28163f['enableCommand'](_0x6b4dad,()=>{const _0x5c81d7=_0x1fe8de['getSelectionAffectedTableCells'](_0x13a9c9['model']['document']['selection'])[0x0],_0x515531=_0x5c81d7['findAncestor']('table'),{column:_0x4b412b,row:_0x57360b}=_0x1fe8de['getCellLocation'](_0x5c81d7);let _0x4230fc=[];if('horizontally'==_0x56cdfa['direction']){const _0x482a4a=_0x1fe8de['createTableWalker'](_0x515531,{'startRow':_0x57360b,'endRow':_0x57360b,'includeAllSlots':!0x0});_0x4230fc=Array['from'](_0x482a4a)['map'](_0x33bd02=>_0x33bd02['cell']);}else{const _0x4a76fd=_0x1fe8de['createTableWalker'](_0x515531,{'column':_0x4b412b,'includeAllSlots':!0x0});_0x4230fc=Array['from'](_0x4a76fd)['map'](_0x4acafe=>_0x4acafe['cell']);}_0x13a9c9['model']['change'](_0x597455=>{_0x28163f['markBlockFormat'](_0x597455['createRangeOn'](_0x5c81d7),{'commandName':_0x6b4dad,'commandParams':[]},_0x4230fc,_0x6b4dad);});});}_0x28163f['descriptionFactory']['registerDescriptionCallback'](_0x27053b=>{if('formatBlock'!=_0x27053b['type']&&'formatInline'!=_0x27053b['type'])return;const {data:_0x4e8c01}=_0x27053b;return _0x4e8c01&&'mergeTableCells'==_0x4e8c01['commandName']?{'type':'format','content':o(_0x5b69b8,'*Merge\x20cells*')}:void 0x0;}),_0x28163f['descriptionFactory']['registerDescriptionCallback'](_0x21444d=>{if('formatBlock'!=_0x21444d['type']&&'formatInline'!=_0x21444d['type'])return;const {data:_0x5b4339}=_0x21444d;return _0x5b4339?'splitTableCellVertically'==_0x5b4339['commandName']?{'type':'format','content':o(_0x5b69b8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5b4339['commandName']?{'type':'format','content':o(_0x5b69b8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2eafc5=_0x114d14['_acceptFormatSuggestionCallbackFactory']();for(const _0x354eb2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x28163f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x354eb2,'accept',_0x2eafc5);for(const _0x200335 of['splitTableCellVertically','splitTableCellHorizontally'])_0x28163f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x200335,'accept',_0x2eafc5);_0x28163f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4cf81e=>{_0x13a9c9['model']['change'](_0x2e3327=>{const _0x27cc54=Array['from'](_0x32e06d['getRanges']())['map'](_0x4a6190=>_0x2fe235['fromRange'](_0x4a6190));_0x2e3327['setSelection'](_0x4cf81e),_0x13a9c9['commands']['get']('mergeTableCells')['refresh'](),_0x13a9c9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5b1786=_0x27cc54['filter'](_0x35c810=>'$graveyard'!=_0x35c810['root']['rootName']);_0x5b1786['length']>0x0&&_0x2e3327['setSelection'](_0x5b1786);for(const _0x159ac5 of _0x27cc54)_0x159ac5['detach']();});});for(const _0x2c28f5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x8349c5=_0x13a9c9['commands']['get'](_0x2c28f5);_0x8349c5['on']('set:isEnabled',(_0x5a593a,_0x1f3522,_0x54d506)=>{if(_0x54d506){const _0x49a9df=_0x13a9c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x350282=>_0x350282['is']('element','tableCell'));this['_areMergableCells'](_0x8349c5['value'],_0x49a9df)||(_0x5a593a['return']=!0x1,_0x5a593a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xb271f1=this['editor']['commands']['get']('mergeTableCells'),_0x3f134f=this['editor']['plugins']['get']('TableUtils');if(!_0xb271f1['isEnabled'])return!0x1;const _0x57753c=_0x3f134f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4eed84 of _0x57753c)for(const _0x37a826 of _0x57753c)if(_0x4eed84!=_0x37a826&&!this['_areMergableCells'](_0x4eed84,_0x37a826))return!0x1;return!0x0;}['_areMergableCells'](_0x25b94b,_0xaccdb8){const _0x14fb22=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a5dc5=this['editor']['model']['createRangeOn'](_0x25b94b),_0x584b8d=this['editor']['model']['createRangeOn'](_0xaccdb8),_0x40218e=new Set(),_0x2a798c=new Set();for(const _0x1054ce of _0x14fb22['getSuggestions']())if(('insertion'==_0x1054ce['type']||'deletion'==_0x1054ce['type']||'mergeTableCells'==_0x1054ce['subType'])&&_0x1054ce['isInContent']){for(const _0x10cee4 of _0x1054ce['getRanges']())_0x10cee4['containsRange'](_0x3a5dc5,!0x0)&&_0x40218e['add'](_0x1054ce['type']+':'+_0x1054ce['author']['id']),_0x10cee4['containsRange'](_0x584b8d,!0x0)&&_0x2a798c['add'](_0x1054ce['type']+':'+_0x1054ce['author']['id']);}if(_0x40218e['size']!=_0x2a798c['size'])return!0x1;for(const _0x460d34 of _0x40218e)if(!_0x2a798c['has'](_0x460d34))return!0x1;return!0x0;}}class Mt extends _0x1ac4a7{static get['requires'](){return[Nt];}['afterInit'](){const _0x56bd39=this['editor'];if(!_0x56bd39['plugins']['has']('TableEditing'))return;const _0xd1caa7=_0x56bd39['locale'],_0x4ce7b5=_0x56bd39['plugins']['get']('TrackChangesEditing');_0x4ce7b5['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4ce7b5['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4ce7b5['registerBlockAttribute']('headingRows'),_0x4ce7b5['registerBlockAttribute']('headingColumns'),_0x4ce7b5['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xd1caa7,'FORMAT_HEADER_ROW')),_0x4ce7b5['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xd1caa7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x58eb0a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x333d22=this['editor']['plugins']['get']('TableUtils'),_0x408858=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();function _0x2de876({showActiveMarker:_0x64571d=!0x0,setDataAttribute:_0x924aa2=!0x0}={}){return(_0x136a82,_0x5b7d55,_0x3facf1)=>{const {type:_0x4f8d39,id:_0x188a69}=_0x58eb0a['_splitMarkerName'](_0x5b7d55['markerName']);if(!_0x58eb0a['hasSuggestion'](_0x188a69))return;const _0x1cabb6=_0x58eb0a['getSuggestion'](_0x188a69),_0x87a1b3=_0x1cabb6['data'];if('formatBlock'!=_0x1cabb6['type']||!_0x87a1b3||'setTableColumnHeader'!=_0x87a1b3['commandName'])return;if(_0x5b7d55['item'])return void _0x136a82['stop']();if(!_0x3facf1['consumable']['consume'](_0x5b7d55['markerRange'],_0x136a82['name']))return;const _0x2d1843=_0x5b7d55['markerRange']['start']['nodeAfter'],_0x55c2d6=_0x5b7d55['markerRange']['end']['nodeBefore'],_0x46d1d9=_0x2d1843['parent']['parent'],{column:_0xbd7047}=_0x333d22['getCellLocation'](_0x2d1843),{column:_0x17dc53}=_0x333d22['getCellLocation'](_0x55c2d6);for(let _0x3a274b=_0xbd7047;_0x3a274b<=_0x17dc53;_0x3a274b++){const _0x33378c=_0x333d22['createTableWalker'](_0x46d1d9,{'column':_0x3a274b,'includeAllSlots':!0x1});for(const _0x3121b5 of _0x33378c){const _0x151a8b=_0x3121b5['cell'],_0x41b457=_0x3facf1['mapper']['toViewElement'](_0x151a8b);_0x3facf1['writer']['addClass']('ck-suggestion-marker-'+_0x4f8d39,_0x41b457),_0x924aa2&&_0x3facf1['writer']['setAttribute']('data-suggestion',_0x188a69,_0x41b457),_0x3facf1['mapper']['bindElementToMarker'](_0x41b457,_0x5b7d55['markerName']),_0x64571d&&(_0x58eb0a['activeMarkers']['includes'](_0x5b7d55['markerName'])?_0x3facf1['writer']['addClass']('ck-suggestion-marker--active',_0x41b457):_0x3facf1['writer']['removeClass']('ck-suggestion-marker--active',_0x41b457));}}};}_0x58eb0a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x408858),_0x58eb0a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x408858),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2de876(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb67a9d,_0x2662ac,_0x338791)=>{_0x338791['options']['showSuggestionHighlights']&&_0x2de876({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xb67a9d,_0x2662ac,_0x338791);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3481f8,_0x105534,_0x1b2b0d)=>{const {type:_0x2ea5a6,id:_0x5d36fd}=_0x58eb0a['_splitMarkerName'](_0x105534['markerName']);if(!_0x58eb0a['hasSuggestion'](_0x5d36fd))return;const _0x5b2d79=_0x58eb0a['getSuggestion'](_0x5d36fd),_0x4dadb8=_0x5b2d79['data'];if('formatBlock'!=_0x5b2d79['type']||!_0x4dadb8||'setTableColumnHeader'!=_0x4dadb8['commandName'])return;const _0x56cf01=_0x1b2b0d['mapper']['markerNameToElements'](_0x105534['markerName']);if(_0x56cf01){for(const _0x27539c of _0x56cf01)_0x1b2b0d['writer']['removeClass']('ck-suggestion-marker-'+_0x2ea5a6,_0x27539c),_0x1b2b0d['writer']['removeClass']('ck-suggestion-marker--active',_0x27539c),_0x1b2b0d['writer']['removeAttribute']('data-suggestion',_0x27539c),_0x1b2b0d['mapper']['unbindElementFromMarkerName'](_0x27539c,_0x105534['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1db07d=this['editor'],_0x2c44d7=_0x1db07d['locale'];function _0x2e59bd(_0xb84b96){return{'type':'format','content':o(_0x2c44d7,'*Format:*\x20%0',_0xb84b96)};}_0x1db07d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dc9ce=>{if('formatBlock'!=_0x3dc9ce['type'])return;const {data:_0x1d7e63}=_0x3dc9ce;if(_0x1d7e63){if('setTableRowHeader'==_0x1d7e63['commandName']){const _0x2096d2=_0x1d7e63['commandParams'][0x0]['forceValue'];return _0x2e59bd(o(_0x2c44d7,_0x2096d2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1d7e63['commandName']){const _0x13d0f1=_0x1d7e63['commandParams'][0x0]['forceValue'];return _0x2e59bd(o(_0x2c44d7,_0x13d0f1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Bt extends _0x1ac4a7{['afterInit'](){const _0x262b08=this['editor'],_0x529383=_0x262b08['locale'],_0x4bd2e6=_0x262b08['plugins']['get']('TrackChangesEditing');function _0x564bbc(_0x1d5c34){return{'type':'format','content':''+o(_0x529383,'*Set\x20table\x20type:*\x20%0',_0x1d5c34)};}_0x262b08['plugins']['has']('TableLayout')&&(_0x4bd2e6['enableCommand']('insertTableLayout'),_0x4bd2e6['enableDefaultAttributesIntegration']('tableType'),_0x4bd2e6['registerBlockAttribute']('tableType'),_0x4bd2e6['descriptionFactory']['registerElementLabel'](_0x5aa223=>_0x5aa223['is']('element','table')&&'layout'===_0x5aa223['getAttribute']('tableType'),_0x46ee26=>o(_0x529383,'ELEMENT_LAYOUT_TABLE',_0x46ee26)),_0x4bd2e6['descriptionFactory']['registerDescriptionCallback'](_0x19b9e6=>{const {data:_0x6b729e}=_0x19b9e6;if(_0x6b729e&&'tableType'==_0x6b729e['key'])switch(_0x6b729e['newValue']){case'layout':return _0x564bbc(o(_0x529383,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x564bbc(o(_0x529383,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],De=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Ue['map'](_0x58a030=>[_0x58a030,null]));class Tt extends _0x1ac4a7{static get['requires'](){return[Nt];}['afterInit'](){const _0x43c17c=this['editor'];if(!_0x43c17c['plugins']['has']('TableClipboard'))return;const _0x9f71f9=_0x43c17c['plugins']['get']('TrackChangesEditing'),_0x222a9c=_0x43c17c['plugins']['get']('TableUtils'),_0xb6bfae=_0x43c17c['plugins']['get'](Nt),_0x7aa23=_0x43c17c['plugins']['get']('TableClipboard'),_0x43413e=_0x43c17c['plugins']['get']('TableSelection'),_0x697f1a=_0x43c17c['plugins']['get'](_0x2d7130);_0xb6bfae['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x43c17c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x43c17c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1aa709=null,_0x537883=!0x1;_0x697f1a['on']('contentInsertion',(_0x16f841,_0x1f0bfa)=>{_0x537883='paste'===_0x1f0bfa['method'];}),_0x43c17c['model']['on']('insertContent',(_0x88f53c,_0x24c7cd)=>{if(!_0x537883&&null===_0x43413e['getSelectedTableCells']())return;const [_0x34c81a,_0x51f993]=_0x24c7cd,_0x41c46f=_0x24c7cd[_0x24c7cd['length']-0x1];_0x41c46f&&_0x41c46f['forceDefaultExecution']||_0x9f71f9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x21c31f,_0x5d5153,_0x45f337,_0x47628d,_0x520532){if(_0x5d5153&&!_0x5d5153['is']('documentSelection'))return!0x1;const _0x38419a=_0x520532['getTableIfOnlyTableInContent'](_0x21c31f,_0x45f337);if(!_0x38419a||!qe(_0x38419a,void 0x0,_0x47628d))return!0x1;const _0x20679d=_0x47628d['getSelectionAffectedTableCells'](_0x45f337['document']['selection']);if(!_0x20679d['length'])return!0x1;const _0x51d89b=_0x20679d[0x0]['findAncestor']('table'),_0x545064=_0x47628d['getRowIndexes'](_0x20679d),_0x1fa265=_0x47628d['getColumnIndexes'](_0x20679d),_0x16e9ec={'startRow':_0x545064['first'],'endRow':_0x545064['last'],'startColumn':_0x1fa265['first'],'endColumn':_0x1fa265['last']};return 0x1==_0x20679d['length']&&(_0x16e9ec['endRow']+=_0x47628d['getRows'](_0x38419a)-0x1,_0x16e9ec['endColumn']+=_0x47628d['getColumns'](_0x38419a)-0x1),qe(_0x51d89b,_0x16e9ec,_0x47628d);}(_0x34c81a,_0x51f993,_0x43c17c['model'],_0x222a9c,_0x7aa23)&&(_0x88f53c['stop'](),_0x1aa709={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x43c17c['model']['change'](()=>{_0x43c17c['model']['insertContent'](_0x24c7cd[0x0],_0x24c7cd[0x1],_0x24c7cd[0x2],{'forceDefaultExecution':!0x0});const _0x3f2a96=_0x668662(),{rowInsertionRanges:_0x314571,columnInsertionRanges:_0x46301b,insertionRanges:_0x2b1102,deletionRanges:_0x2b100f,cells:_0x243522}=_0x1aa709;_0x314571['length']&&_0x9f71f9['markMultiRangeInsertion'](_0x314571,'tablePasteRow',{'tablePasteChainId':_0x3f2a96}),_0x46301b['length']&&_0x9f71f9['markMultiRangeInsertion'](_0x46301b,'tablePasteColumn',{'tablePasteChainId':_0x3f2a96}),_0x2b1102['length']&&(_0x9f71f9['markMultiRangeInsertion'](_0x2b1102,'tablePaste',{'tablePasteChainId':_0x3f2a96,'skipNestingCheck':!0x0}),_0x2b1102['forEach'](_0x13f1ff=>_0x13f1ff['detach']?.())),_0x2b100f['length']&&(_0x9f71f9['markMultiRangeDeletion'](_0x2b100f,'tablePaste',{'tablePasteChainId':_0x3f2a96,'skipNestingCheck':!0x0}),_0x2b100f['forEach'](_0x40b413=>_0x40b413['detach']?.()));const _0x5f0534=_0x9f71f9['markMultiRangeBlockFormat'](_0x243522['map'](({element:_0x2c7828})=>_0x2c7828),{'formatGroupId':_0x668662()},[],'tablePasteCell',{'tablePasteChainId':_0x3f2a96});if(_0x5f0534){const _0x17ce5e=_0x5f0534['getMarkers'](),_0x1c7d5a=[];for(const {element:_0x5c6cb8,attributes:_0x47ac50}of _0x243522){if(!_0x47ac50)continue;const _0x2be871=_0x43c17c['model']['createRangeOn'](_0x5c6cb8),_0x32e9f7=_0x17ce5e['find'](_0x4150c7=>_0x4150c7['getRange']()['isEqual'](_0x2be871));_0x32e9f7&&_0x1c7d5a['push']([_0x32e9f7['name'],_0x47ac50]);}_0x1c7d5a['length']&&_0x5f0534['setAttribute']('markerAttributes',Object['fromEntries'](_0x1c7d5a));}_0x1aa709=null;}));},{'priority':_0x48e2dc['high']+0xa}),_0x697f1a['on']('contentInsertion',()=>{_0x537883=!0x1;},{'priority':'lowest'}),_0x43c17c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5ebded,_0x58a709)=>{const [_0xdbd6a2,_0x2f8b0f,,_0x218cce]=_0x58a709;if(!_0x1aa709)return;_0x5ebded['stop']();const _0x34c217=_0xdbd6a2['cell'],_0x36c498=_0x2f8b0f,_0x4fbb81=He(_0x34c217),_0x5e4c09=He(_0x36c498);_0x5ebded['return']=_0x34c217;let _0x5d94ab=null,_0x52dec9=null;if(_0x5e4c09||_0x4fbb81){if(_0x4fbb81&&!_0x5e4c09){_0x218cce['remove'](_0x34c217['getChild'](0x0));for(const _0xf469b of Array['from'](_0x36c498['getChildren']()))_0x218cce['insert'](_0xf469b,_0x34c217,'end');const _0x381dae=_0x1aa709['rowInsertionIndexes']['includes'](_0xdbd6a2['row']),_0xd5a94=_0x1aa709['columnInsertionIndexes']['includes'](_0xdbd6a2['column']);_0x381dae||_0xd5a94||(_0x5d94ab=_0x2fe235['fromRange'](_0x218cce['createRangeIn'](_0x34c217)));}else _0x5e4c09&&!_0x4fbb81&&(_0x52dec9=_0x218cce['createRangeIn'](_0x34c217));}else{const _0x1b2b56=_0x218cce['createElement']('tableCellSuggestion'),_0x17a4ce=_0x218cce['createElement']('tableCellSuggestion');_0x218cce['wrap'](_0x218cce['createRangeIn'](_0x34c217),_0x17a4ce),_0x218cce['insert'](_0x1b2b56,_0x34c217,0x0);for(const _0x43d6f6 of Array['from'](_0x36c498['getChildren']()))_0x218cce['insert'](_0x43d6f6,_0x1b2b56,'end');_0x5d94ab=_0x2fe235['fromRange'](_0x218cce['createRangeOn'](_0x1b2b56)),_0x52dec9=_0x2fe235['fromRange'](_0x218cce['createRangeOn'](_0x17a4ce));}const _0x10d794=Array['from'](_0x36c498['getAttributes']())['filter'](([_0x1e8661])=>Ue['includes'](_0x1e8661));_0x1aa709['cells']['push']({'element':_0x34c217,'attributes':_0x10d794['length']?Object['fromEntries'](_0x10d794):null}),_0x5d94ab&&_0x1aa709['insertionRanges']['push'](_0x5d94ab),_0x52dec9&&_0x1aa709['deletionRanges']['push'](_0x52dec9);},{'priority':'high'}),_0x222a9c['on']('insertColumns',(_0x42555e,_0x1bef5c)=>{const [_0x27f13a,_0x5b0992={}]=_0x1bef5c;if(!_0x1aa709)return;const _0x133d09=_0x5b0992['at']||0x0,_0x118520=_0x5b0992['columns']||0x1;_0x1aa709['columnInsertionIndexes']=new Array(_0x118520)['fill'](_0x133d09)['map']((_0x420447,_0x22140c)=>_0x420447+_0x22140c);for(const {cell:_0x24de85}of _0x222a9c['createTableWalker'](_0x27f13a,{'startColumn':_0x133d09,'endColumn':_0x133d09+_0x118520-0x1}))_0x1aa709['columnInsertionRanges']['push'](_0x43c17c['model']['createRangeOn'](_0x24de85));},{'priority':'low'}),_0x222a9c['on']('insertRows',(_0xa4b95b,_0x54022b)=>{const [_0xc387fc,_0x589c65={}]=_0x54022b;if(!_0x1aa709)return;const _0x31cb66=_0x589c65['at']||0x0,_0x4f941a=_0x589c65['rows']||0x1;_0x1aa709['rowInsertionIndexes']=new Array(_0x4f941a)['fill'](_0x31cb66)['map']((_0x4adf75,_0x403aff)=>_0x4adf75+_0x403aff);for(const {cell:_0x57ad87}of _0x222a9c['createTableWalker'](_0xc387fc,{'startRow':_0x31cb66,'endRow':_0x31cb66+_0x4f941a-0x1}))_0x1aa709['rowInsertionRanges']['push'](_0x43c17c['model']['createRangeOn'](_0x57ad87));},{'priority':'low'}),_0x9f71f9['descriptionFactory']['registerDescriptionCallback'](_0x4741b4=>{if(_0x4741b4['subType']&&_0x4741b4['subType']['startsWith']('tablePaste'))return _0x4741b4['previous']?{}:{'type':'insertion','content':o(_0x43c17c['locale'],'*Replace\x20table\x20cells*')};});const _0x73715e=()=>!0x1;for(const _0x5ecf24 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x9f71f9['_suggestionFactory']['registerCustomCallback']('insertion',_0x5ecf24,'join',_0x73715e),_0x9f71f9['_suggestionFactory']['registerCustomCallback']('deletion',_0x5ecf24,'join',_0x73715e),_0x9f71f9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ecf24,'join',_0x73715e);_0x9f71f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x73715e),_0x9f71f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x129db8,_0x40a301,_0x184925)=>{const _0x4fa46c=_0x129db8['map'](_0x22d5af=>_0x22d5af['getContainedElement']())['filter'](_0x228786=>_0x228786),_0x544337=new Map(_0x4fa46c['map'](_0x521bea=>[_0x521bea,null]));if(_0x1aa709){for(const {element:_0x4bbd5b,attributes:_0xf975ff}of _0x1aa709['cells'])_0xf975ff&&_0x544337['set'](_0x4bbd5b,_0xf975ff);}else{if(_0x184925&&_0x184925['markerAttributes'])for(const [_0x30b645,_0x41042d]of Object['entries'](_0x184925['markerAttributes'])){const _0x4d033d=_0x43c17c['model']['markers']['get'](_0x30b645),_0x3e0b5e=_0x4d033d?_0x4d033d['getRange']()['getContainedElement']():null;_0x3e0b5e&&_0x544337['set'](_0x3e0b5e,_0x41042d);}}_0x43c17c['model']['change'](_0x1f2457=>{for(const [_0x3b3da8,_0x14aef8]of _0x544337)_0x1f2457['setAttributes']({...De,..._0x14aef8},_0x3b3da8);});});const _0x33858b=(_0x2323b4,_0x4fc44a)=>{_0x9f71f9['_suggestionFactory']['registerCustomCallback'](_0x2323b4,'tablePaste',_0x4fc44a,(_0x57b0ba,_0x2d5c63,_0x44c792)=>{_0x43c17c['model']['change'](_0x4b33b3=>{const _0x4f23e4=[];for(const _0x42ff3a of _0x57b0ba){const _0xccad2c=_0x42ff3a['start']['nodeAfter'];_0xccad2c['is']('element','tableCellSuggestion')&&_0x4f23e4['push'](_0xccad2c);}_0x9f71f9['_suggestionFactory']['getSuggestionCallback'](_0x2323b4,null,_0x4fc44a)(_0x57b0ba,_0x2d5c63,_0x44c792);for(const _0x180010 of _0x4f23e4)'$graveyard'!=_0x180010['root']['rootName']&&_0x4b33b3['unwrap'](_0x180010);});});};_0x33858b('insertion','accept'),_0x33858b('insertion','discard'),_0x33858b('deletion','accept'),_0x33858b('deletion','discard'),_0x9f71f9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x24b573=>{const _0x4c39dd=_0x24b573['map'](_0x438289=>_0x438289['getContainedElement']()),_0x5b1949=_0x4c39dd[0x0]['findAncestor']('table'),{minRow:_0x213693,maxRow:_0x3533c9}=_0xb6bfae['_getCoordsForCells'](_0x4c39dd);_0x222a9c['removeRows'](_0x5b1949,{'at':_0x213693,'rows':_0x3533c9-_0x213693+0x1});}),_0x9f71f9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xf9e06d=>{const _0x3d889e=_0xf9e06d['map'](_0x1c9a73=>_0x1c9a73['getContainedElement']()),_0x242d43=_0x3d889e[0x0]['findAncestor']('table'),{minColumn:_0x32baea,maxColumn:_0xf50088}=_0xb6bfae['_getCoordsForCells'](_0x3d889e);_0x222a9c['removeColumns'](_0x242d43,{'at':_0x32baea,'columns':_0xf50088-_0x32baea+0x1});});const _0x2aed8f=(_0x30fd91,_0x28b5b1)=>{if(!_0x28b5b1['subType']||!_0x28b5b1['subType']['startsWith']('tablePaste'))return;const _0x57e1b5=_0x28b5b1['attributes']['tablePasteChainId'],_0x3222f8=_0x9f71f9['getSuggestions']()['filter'](_0x5a4e56=>_0x5a4e56['isInContent']&&_0x5a4e56['attributes']&&_0x5a4e56['attributes']['tablePasteChainId']==_0x57e1b5);_0x3222f8['length']&&_0x28b5b1['getAllAdjacentSuggestions']()['length']!=_0x3222f8['length']&&_0x3222f8['reduce']((_0x31ed2e,_0x206b77)=>(_0x31ed2e['next']=_0x206b77,_0x206b77['previous']=_0x31ed2e,_0x206b77));};function _0x4d2163(_0x41d199,_0x40aca5=!0x0){const {id:_0x42ac59,authorId:_0x442bd1}=_0x9f71f9['_splitMarkerName'](_0x41d199['markerName']),_0x23d44f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x22cbbb=_0x9f71f9['activeMarkers']['includes'](_0x41d199['markerName']);return _0x22cbbb&&_0x23d44f['push']('ck-suggestion-marker--active'),{'classes':_0x23d44f,'attributes':{'data-suggestion':_0x42ac59,'data-author-id':_0x442bd1},'priority':_0x22cbbb&&_0x40aca5?0xbc2:0xbb8};}_0x9f71f9['on']('suggestionLoaded',_0x2aed8f,{'priority':'high'}),_0x9f71f9['on']('suggestionUnloaded',_0x2aed8f,{'priority':'high'}),_0x43c17c['model']['document']['registerPostFixer'](()=>{let _0x20a7d3=!0x1;const _0x27cf33=Array['from'](_0x43c17c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5795cc,data:_0x16650d}of _0x27cf33){const {group:_0x53bfc0,type:_0x4c832b,id:_0x520406}=_0x9f71f9['_splitMarkerName'](_0x5795cc);if('suggestion'!=_0x53bfc0||'deletion'!=_0x4c832b||_0x16650d['oldRange'])continue;if(!_0x9f71f9['hasSuggestion'](_0x520406))continue;const _0x21dd92=_0x9f71f9['getSuggestion'](_0x520406)['getRanges'](),_0xc746aa=_0x43c17c['plugins']['get']('Users')['me'];for(const _0x598484 of _0x9f71f9['getSuggestions']()){if(!_0x598484['isInContent']||_0x598484['author']!=_0xc746aa)continue;if('formatBlock'!=_0x598484['type']||'tablePasteCell'!=_0x598484['subType'])continue;if(_0x598484['getRanges']()['every'](_0x483783=>_0x21dd92['some'](_0x15030b=>_0x15030b['containsRange'](_0x483783,!0x0)))){for(const _0xf4a585 of _0x598484['getAllAdjacentSuggestions']())_0xf4a585['isInContent']&&(_0xf4a585['discard'](),_0x20a7d3=!0x0);}}}return _0x20a7d3;}),_0x43c17c['model']['document']['registerPostFixer'](_0x213e8f=>{const _0x10f89e=_0x43c17c['commands']['get']('redo');if(!_0x10f89e||!_0x10f89e['_createdBatches']['has'](_0x213e8f['batch']))return!0x1;let _0x5d5610=!0x1;const _0x24fcab=_0x43c17c['plugins']['get']('Users')['me'],_0x5887ac=_0x43c17c['model']['document']['differ']['getChanges'](),_0x4f2761=Array['from'](_0x43c17c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4e0877,data:_0x241d92})=>{const {group:_0x43e354,subType:_0x25003a,authorId:_0x2f8950}=_0x9f71f9['_splitMarkerName'](_0x4e0877);return'suggestion'==_0x43e354&&'tablePaste'==_0x25003a&&_0x2f8950==_0x24fcab['id']&&!_0x241d92['oldRange'];});for(const _0x5bc7b2 of _0x5887ac){if('insert'!=_0x5bc7b2['type']||'tableCellSuggestion'!=_0x5bc7b2['name']||0x1!=_0x5bc7b2['length'])continue;const _0x125c07=_0x213e8f['createRange'](_0x5bc7b2['position'],_0x5bc7b2['position']['getShiftedBy'](0x1));if(!_0x4f2761['find'](({data:_0x94f581})=>_0x94f581['newRange']['isEqual'](_0x125c07))){for(const {name:_0x54e94,data:_0x5a2e4f}of _0x4f2761)if(_0x125c07['containsRange'](_0x5a2e4f['newRange'])){_0x213e8f['updateMarker'](_0x54e94,{'range':_0x125c07}),_0x5d5610=!0x0;break;}}}return _0x5d5610;}),_0x43c17c['model']['document']['registerPostFixer'](_0x4e9292=>{let _0xd4836b=!0x1;const _0x28c9b9=_0x43c17c['plugins']['get']('Users')['me'],_0xbf7d14=_0x9f71f9['getSuggestions']()['filter'](_0x9d5747=>_0x9d5747['isInContent']&&_0x9d5747['author']==_0x28c9b9),_0x4b8e94=new Set(),_0x388fe5=new Set();for(const _0x2cdee3 of _0xbf7d14)if('tablePaste'==_0x2cdee3['subType'])for(const _0x25f903 of _0x2cdee3['getMarkers']()){const _0x3adfe3=_0x25f903['getRange']()['getContainedElement']();if(_0x3adfe3){if(_0x3adfe3['is']('element','tableCellSuggestion')&&He(_0x3adfe3)){_0x2cdee3['removeMarker'](_0x25f903['name']),_0x4b8e94['add'](_0x3adfe3),_0xd4836b=!0x0;const _0x16d9a1=_0x3adfe3['nextSibling'],_0x1d8aab=_0x3adfe3['previousSibling'],_0x529345=_0x16d9a1&&_0x16d9a1['is']('element','tableCellSuggestion'),_0x1eb9b0=_0x1d8aab&&_0x1d8aab['is']('element','tableCellSuggestion');_0x529345&&!_0x4b8e94['has'](_0x16d9a1)&&_0x388fe5['add'](_0x16d9a1),_0x1eb9b0&&!_0x4b8e94['has'](_0x1d8aab)&&_0x388fe5['add'](_0x1d8aab);}else _0x3adfe3['is']('element','paragraph')&&_0x3adfe3['isEmpty']&&(_0x2cdee3['removeMarker'](_0x25f903['name']),_0xd4836b=!0x0);}}else{if('tablePasteCell'==_0x2cdee3['subType']){if(!_0x2cdee3['attributes']||!_0x2cdee3['attributes']['tablePasteChainId'])continue;const _0x196ef2=_0x2cdee3['attributes']['markerAttributes'];if(_0x196ef2&&Object['keys'](_0x196ef2)['length'])continue;const _0x365f55=_0x2cdee3['attributes']['tablePasteChainId'];let _0x6d1348=!0x0,_0x243794=!0x0;for(const _0xdec5cd of _0xbf7d14)if(_0xdec5cd['subType']&&_0xdec5cd['subType']['startsWith']('tablePaste')){if(!_0xdec5cd['attributes']['tablePasteChainId']){_0x243794=!0x1;break;}if(_0xdec5cd['id']!=_0x2cdee3['id']&&_0xdec5cd['attributes']['tablePasteChainId']==_0x365f55){_0x6d1348=!0x1;break;}}_0x243794&&_0x6d1348&&(_0x2cdee3['removeMarkers'](),_0xd4836b=!0x0);}}for(const _0x125b14 of _0x4b8e94)_0x4e9292['remove'](_0x125b14);for(const _0x2fab9a of _0x388fe5)_0x4e9292['unwrap'](_0x2fab9a);return _0xd4836b;}),_0x43c17c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x26effa=>_0x4d2163(_0x26effa),'converterPriority':'high'}),_0x43c17c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x482ab9,_0x5d6575)=>_0x5d6575['options']['showSuggestionHighlights']?_0x4d2163(_0x482ab9,!0x1):null,'converterPriority':'high'});const _0x3f618c=_0x43c17c['editing']['view'];this['listenTo'](_0x3f618c['document'],'clipboardOutput',(_0x3a3766,_0x221fb1)=>{const _0x2a853d=[];for(const _0x2c5612 of _0x3f618c['createRangeIn'](_0x221fb1['content'])['getItems']())_0x2c5612['is']('element','suggestion-td')&&_0x2a853d['push'](_0x2c5612);_0x3f618c['change'](_0x3a829a=>{for(const _0xf513c7 of _0x2a853d)_0x3a829a['move'](_0x3a829a['createRangeIn'](_0xf513c7),_0x3a829a['createPositionBefore'](_0xf513c7)),_0x3a829a['remove'](_0xf513c7);});});}}function He(_0x9195f5){if(_0x9195f5['isEmpty'])return!0x0;const _0x54c059=_0x9195f5['getChild'](0x0);return _0x54c059['is']('element','paragraph')&&_0x54c059['isEmpty'];}function qe(_0x44a56b,_0x12cb57={},_0x3c4b48){for(const {isAnchor:_0x116992,cellHeight:_0x5bd86e,cellWidth:_0x1961ea}of _0x3c4b48['createTableWalker'](_0x44a56b,{'includeAllSlots':!0x0,..._0x12cb57}))if(!_0x116992||0x1!=_0x5bd86e||0x1!=_0x1961ea)return!0x1;return!0x0;}class Ot extends _0x1ac4a7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x44d347=this['editor']['plugins']['get']('TrackChangesEditing');_0x44d347['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x44d347['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x44d347['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44d347['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x44d347['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x44d347['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1cce5c,_0x3f6797){const _0x166889=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dca89=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5650ed=_0x3f6797['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x31705b=_0x5dca89['getColumnGroupElement'](_0x5650ed);let _0x2f5e5a=_0x31705b?_0x5dca89['getTableColumnsWidths'](_0x31705b):null,_0x10d716=_0x5650ed['getAttribute']('tableWidth')||null;const _0x4f788f=_0x3f6797['tableWidth']||_0x10d716,_0x2a62f0=_0x3f6797['columnWidths']||_0x2f5e5a,_0x1558e0=this['editor']['plugins']['get']('Users')['me'];for(const _0x5180eb of _0x166889['getSuggestions']()){const _0x32865a=_0x5180eb['getContainedElement']();if('resizeTable'===_0x5180eb['subType']&&_0x32865a===_0x5650ed){_0x5180eb['author']!==_0x1558e0&&_0x5180eb['discard']();const _0x510514=_0x5180eb['data']['commandParams'];_0x10d716=_0x510514[0x0]['tableWidth'],_0x2f5e5a=_0x510514[0x0]['columnWidths'];break;}}_0x1cce5c({'table':_0x5650ed,'tableWidth':_0x4f788f,'columnWidths':_0x2a62f0}),_0x166889['markBlockFormat'](_0x5650ed,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x10d716,'columnWidths':_0x2f5e5a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x52db28){if('formatBlock'!=_0x52db28['type']&&'formatInline'!=_0x52db28['type'])return;const {data:_0x1a6c67}=_0x52db28;if(_0x1a6c67&&'resizeTable'===_0x1a6c67['formatGroupId']){const _0xec5993='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xec5993)};}}}class xt extends _0x1ac4a7{['afterInit'](){const _0x20b5cf=this['editor'];_0x20b5cf['plugins']['has']('Template')&&_0x20b5cf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x1ac4a7{['afterInit'](){const _0x36ecf3=this['editor'];if(!_0x36ecf3['commands']['get']('insertTableOfContents'))return;_0x36ecf3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x105052=_0x36ecf3['plugins']['get']('TrackChangesEditing'),_0x36572e=_0x36ecf3['locale'];_0x105052['descriptionFactory']['registerElementLabel']('tableOfContents',_0x31a07e=>o(_0x36572e,'ELEMENT_TABLE_OF_CONTENTS',_0x31a07e));}}class Rt extends _0x1ac4a7{['afterInit'](){const _0x4b5430=this['editor'];if(!_0x4b5430['plugins']['has']('Title'))return;const _0x463ff9=_0x4b5430['plugins']['get']('TrackChangesEditing');_0x463ff9['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4b5430['locale'],'ELEMENT_TITLE')),_0x4b5430['model']['document']['registerPostFixer'](_0x129bae=>{let _0x27df0a=!0x1;const _0x5b336c=Array['from'](_0x4b5430['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25f195,data:_0x49f4fb}of _0x5b336c){const {group:_0x11c71d}=_0x463ff9['_splitMarkerName'](_0x25f195);if('suggestion'!==_0x11c71d||!_0x49f4fb['newRange'])continue;const _0x370cc4=_0x49f4fb['newRange'],_0x3d4f43=_0x370cc4['end']['nodeBefore'];if(!_0x3d4f43||!_0x3d4f43['is']('element','title-content'))continue;if(!_0x370cc4['start']['isTouching'](_0x370cc4['end']))continue;const _0x239ba9=_0x4b5430['model']['schema']['getNearestSelectionRange'](_0x370cc4['end'],'forward');if(_0x239ba9&&_0x239ba9['isCollapsed']){const _0x3d4c9a=_0x129bae['createRange'](_0x370cc4['start'],_0x239ba9['start']);_0x3d4c9a['isEqual'](_0x370cc4)||(_0x129bae['updateMarker'](_0x25f195,{'range':_0x3d4c9a}),_0x27df0a=!0x0);}_0x27df0a||(_0x129bae['removeMarker'](_0x25f195),_0x27df0a=!0x0);}return _0x27df0a;});}}class Ut extends _0x1ac4a7{['afterInit'](){const _0x3fc424=this['editor'],_0x5a9310=_0x3fc424['plugins']['get']('TrackChangesEditing');_0x3fc424['plugins']['has']('Uploadcare')&&(_0x5a9310['enableCommand']('uploadcare'),_0x3fc424['plugins']['has']('UploadcareImageEdit')&&(_0x5a9310['enableCommand']('uploadcareImageEdit'),_0x5a9310['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5a9310['registerBlockAttribute']('uploadcareImageId'),_0x5a9310['descriptionFactory']['registerDescriptionCallback'](_0x1e882b=>{if('attribute'!=_0x1e882b['type'])return;const {data:_0x4e68b4}=_0x1e882b;return _0x4e68b4&&'uploadcareImageId'==_0x4e68b4['key']?{'type':'format','content':''}:void 0x0;})));}}class Vt extends _0x1ac4a7{['afterInit'](){const _0x45956e=this['editor'],_0x42bb4b=_0x45956e['plugins']['get']('TrackChangesEditing');_0x45956e['plugins']['has']('UndoEditing')&&(_0x42bb4b['enableCommand']('undo'),_0x42bb4b['enableCommand']('redo'));}}class Ft extends _0x1ac4a7{static get['requires'](){return[Nt];}['afterInit'](){const _0x3381c1=this['editor'];if(!_0x3381c1['plugins']['has']('TableCaptionEditing'))return;_0x3381c1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Pt extends _0x1ac4a7{['tableProperties'];['tableCellProperties'];constructor(_0x561c6c){super(_0x561c6c),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 _0x506a66=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4f0f53 of this['tableProperties'])_0x506a66['enableCommand'](_0x4f0f53,(_0x4a46e9,_0x1bb74f)=>{const _0x15bda4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4f0f53,[_0x15bda4],this['tableProperties'],'tableProperties',_0x4a46e9,_0x1bb74f);});_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x506a66['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x565e8,_0x3eb194)=>this['handleDiscardAction'](this['tableProperties'],_0x565e8,_0x3eb194)),_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x519f1f of this['tableCellProperties'])_0x506a66['enableCommand'](_0x519f1f,(_0x5e7882,_0x35831c)=>{const _0x555329=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x519f1f,_0x555329,this['tableCellProperties'],'tableCellProperties',_0x5e7882,_0x35831c);});_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x506a66['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1043a5,_0x2d5521)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1043a5,_0x2d5521)),_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x506a66['descriptionFactory']['registerDescriptionCallback'](_0x96f312=>this['handleSuggestionDescription'](_0x96f312)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1a0458,_0x1d0dad,_0x69e40e,_0x4769b1,_0x30ef10,_0x5cd95f){const _0x4a276b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5cd95f['batch'],()=>{for(const _0x5b5bc1 of _0x1d0dad){if(this['_getSuggestion'](_0x5b5bc1,_0x4769b1))_0x30ef10(_0x5cd95f);else{const _0x307e53={};for(const _0x408573 of _0x69e40e){const _0x4a98f9=_0x5b5bc1['getAttribute'](_0x408573);void 0x0!==_0x4a98f9&&(_0x307e53[_0x408573]=_0x4a98f9);}_0x30ef10(_0x5cd95f),_0x4a276b['markBlockFormat'](_0x5b5bc1,{'commandParams':[_0x307e53]},[],_0x4769b1);}}});}['handleDiscardAction'](_0x3e5a81,_0x370491,_0x1f9e0f){const _0x4d7353=_0x370491[0x0]['start']['nodeAfter'],_0x475a70=_0x1f9e0f['commandParams'][0x0];this['editor']['model']['change'](_0x33b2b3=>{for(const _0x45350d of _0x3e5a81)void 0x0!==_0x475a70[_0x45350d]?_0x33b2b3['setAttribute'](_0x45350d,_0x475a70[_0x45350d],_0x4d7353):_0x33b2b3['removeAttribute'](_0x45350d,_0x4d7353);});}['handleSuggestionDescription'](_0x4441e0){if(_0x4441e0['data'])switch(_0x4441e0['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'](_0x60fddf,_0x21a23a){const _0x2fb2f9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4bf5cb of _0x2fb2f9['getSuggestions']({'skipNotAttached':!0x0})){const _0x2c7c99=_0x4bf5cb['getContainedElement']();if(_0x4bf5cb['subType']===_0x21a23a&&_0x2c7c99===_0x60fddf)return _0x4bf5cb;}return null;}['_registerTablePropertiesAttributes'](){const _0x393e73=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49e72d=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x134656 of _0x49e72d){const _0x483885=_0x134656['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x393e73['registerBlockAttribute'](_0x134656),_0x393e73['descriptionFactory']['registerAttributeLabel'](_0x134656,o(this['editor']['locale'],'FORMAT_'+_0x483885));}}}class Gt extends _0x1ac4a7{['afterInit'](){const _0x187b47=this['editor'];if(!_0x187b47['plugins']['has']('LineHeight'))return;const _0x3de10a=_0x187b47['plugins']['get']('TrackChangesEditing'),_0xee62=_0x187b47['locale'];_0x3de10a['enableDefaultAttributesIntegration']('lineHeight'),_0x3de10a['registerBlockAttribute']('lineHeight'),_0x3de10a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xee62,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x1ac4a7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x53c5da,_0x4dc787,_0x11ae4f,V,F,G,L,J,K,W,H,q,z,Q,Z,tt,et,it,nt,st,ot,rt,at,ct,ft,ut,ht,gt,lt,mt,pt,yt,dt,X,Gt,Y,kt,wt,bt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Bt,Ft,Tt,Ot,Et,Pt,xt,Rt,Ut,Vt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe16974){super(_0xe16974),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1ef9f0,_0x351c26,_0x24e387,_0x4589be)=>{this['_model']['change'](()=>{for(const _0x21d13a of[..._0x4589be,..._0x24e387])this['_model']['markers']['has'](_0x21d13a)&&_0xe16974['editing']['reconvertMarker'](_0x21d13a);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Jt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xe16974['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(),_0xe16974['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xe16974['config']['get']('trackChanges.trackFormatChanges'),_0xe16974['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xe16974['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xe16974,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x17436f=this['editor'],_0x52ee2f=(_0x28be7e,_0x2feaa7)=>{if('attribute'!=_0x28be7e)return'ck-suggestion-marker-'+_0x28be7e;const _0x59fb32=_0x2feaa7['split']('|')[0x0];return this['_isBlockAttribute'](_0x59fb32)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x17436f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x17524b=>{const {id:_0x3df7b7,authorId:_0x25b9e3,type:_0x3f759f,subType:_0x3a600e}=this['_splitMarkerName'](_0x17524b['markerName']),_0x25af46=['ck-suggestion-marker',_0x52ee2f(_0x3f759f,_0x3a600e)];let _0x107e33=0xbb8;return this['activeMarkers']['includes'](_0x17524b['markerName'])&&(_0x25af46['push']('ck-suggestion-marker--active'),_0x107e33=0xbc2),'deletion'==_0x3f759f&&(_0x107e33+=0x5),{'classes':_0x25af46,'attributes':{'data-suggestion':_0x3df7b7,'data-author-id':_0x25b9e3},'priority':_0x107e33};}}),_0x17436f['conversion']['for']('dataDowncast')['add'](_0x53b1ba=>{_0x53b1ba['on']('addMarker:suggestion',(_0x54da3d,_0x302e00,_0x1f54d0)=>{if(!_0x1f54d0['options']['showSuggestionHighlights'])return;const _0x58578f=_0x302e00['item'];if(!_0x58578f)return;const _0x5999c2=_0x1f54d0['mapper']['toViewElement'](_0x58578f);_0x17436f['model']['schema']['isObject'](_0x58578f)&&_0x5999c2&&!_0x5999c2['getCustomProperty']('widget')&&_0x5999c2['is']('containerElement')&&_0x376b06(_0x5999c2,_0x1f54d0['writer']);},{'priority':'high'});}),_0x17436f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xea98b3,_0x96a7c5)=>{if(!_0x96a7c5['options']['showSuggestionHighlights'])return null;const {id:_0x32bf06,authorId:_0x2d72d3,type:_0x4f29e7,subType:_0x20ba7d}=this['_splitMarkerName'](_0xea98b3['markerName']);return{'classes':['ck-suggestion-marker',_0x52ee2f(_0x4f29e7,_0x20ba7d)],'priority':0xbb8,'attributes':{'data-suggestion':_0x32bf06,'data-author-id':_0x2d72d3}};}});const _0x2e473a=({showActiveMarkers:_0x23f50b=!0x0,isAttributeSuggestion:_0x29c0d8=!0x1}={})=>(_0x1a87d6,_0x547910,_0x16655a)=>{if(!_0x547910['item'])return;const {id:_0x2142d5,authorId:_0x2a7643,subType:_0xa42f13}=this['_splitMarkerName'](_0x547910['markerName']);if(_0x29c0d8){const _0x4eb8db=oe(_0xa42f13);if(!this['_isBlockAttribute'](_0x4eb8db))return;}if(_0x547910['item']['is']('selection'))return void _0x16655a['consumable']['consume'](_0x547910['item'],_0x1a87d6['name']);const _0x4693a8=_0x16655a['mapper']['toViewElement'](_0x547910['item']);if(_0x547910['item']['is']('element')&&_0x17436f['model']['schema']['isBlock'](_0x547910['item'])&&!_0x4693a8['getCustomProperty']('addHighlight')){_0x16655a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4693a8),_0x16655a['writer']['setAttribute']('data-suggestion',_0x2142d5,_0x4693a8),_0x16655a['writer']['setAttribute']('data-author-id',_0x2a7643,_0x4693a8),_0x16655a['mapper']['bindElementToMarker'](_0x4693a8,_0x547910['markerName']),_0x23f50b&&(this['activeMarkers']['includes'](_0x547910['markerName'])?_0x16655a['writer']['addClass']('ck-suggestion-marker--active',_0x4693a8):_0x16655a['writer']['removeClass']('ck-suggestion-marker--active',_0x4693a8));for(const _0xd58205 of _0x17436f['model']['createRangeIn'](_0x547910['item'])['getItems']())_0x16655a['consumable']['consume'](_0xd58205,_0x1a87d6['name']);_0x16655a['consumable']['consume'](_0x547910['item'],_0x1a87d6['name']);}};_0x17436f['conversion']['for']('dataDowncast')['add'](_0x242b3f=>{_0x242b3f['on']('addMarker:suggestion:formatBlock',(_0x468183,_0x1862b7,_0x11f310)=>{_0x11f310['options']['showSuggestionHighlights']&&_0x2e473a({'showActiveMarkers':!0x1})(_0x468183,_0x1862b7,_0x11f310);},{'priority':'highest'});}),_0x17436f['conversion']['for']('dataDowncast')['add'](_0x4e6253=>{_0x4e6253['on']('addMarker:suggestion:attribute',(_0xae9bdd,_0x2f877b,_0x1a9075)=>{_0x1a9075['options']['showSuggestionHighlights']&&_0x2e473a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xae9bdd,_0x2f877b,_0x1a9075);},{'priority':'highest'});}),_0x17436f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1c07fe,_0x55abb8)=>{if(_0x55abb8['options']['showSuggestionHighlights']){const {id:_0x3e49a9,authorId:_0x551928}=this['_splitMarkerName'](_0x1c07fe);return _0x1c07fe['includes'](':split')||_0x1c07fe['includes'](':merge')?{'group':'suggestion','name':_0x1c07fe['substr'](0xb),'attributes':{'data-suggestion':_0x3e49a9,'data-author-id':_0x551928}}:null;}return{'group':'suggestion','name':_0x1c07fe['substr'](0xb)};}}),_0x17436f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a073a,{writer:_0x8514dc})=>{let _0x53585a='suggestion:'+_0x4a073a['getAttribute']('suggestion-type')+':'+_0x4a073a['getAttribute']('id');return _0x4a073a['getAttribute']('marker-count')&&(_0x53585a+=':'+_0x4a073a['getAttribute']('marker-count')),_0x8514dc['createElement']('$marker',{'data-name':_0x53585a});}}),_0x17436f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x17436f['conversion']['for']('editingDowncast')['add'](_0xa89c91=>{_0xa89c91['on']('addMarker:suggestion:formatBlock',_0x2e473a(),{'priority':'high'});}),_0x17436f['conversion']['for']('editingDowncast')['add'](_0xb33980=>{_0xb33980['on']('addMarker:suggestion:attribute',_0x2e473a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x17436f['conversion']['for']('editingDowncast')['add'](_0x3e0c0e=>{_0x3e0c0e['on']('removeMarker:suggestion:formatBlock',(_0x4502c7,_0x1e84bc,_0x51de5c)=>{const _0x4dfb76=_0x51de5c['mapper']['markerNameToElements'](_0x1e84bc['markerName']);if(_0x4dfb76){for(const _0x813fdf of _0x4dfb76)_0x813fdf['getCustomProperty']('addHighlight')||(_0x51de5c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x813fdf),_0x51de5c['writer']['removeAttribute']('data-suggestion',_0x813fdf),_0x51de5c['writer']['removeAttribute']('data-author-id',_0x813fdf),_0x51de5c['mapper']['unbindElementFromMarkerName'](_0x813fdf,_0x1e84bc['markerName']));}},{'priority':'high'});}),_0x17436f['conversion']['for']('editingDowncast')['add'](_0x133084=>{_0x133084['on']('removeMarker:suggestion:attribute',(_0x316a29,_0x3f0836,_0x4f2d82)=>{const _0x2b7216=_0x4f2d82['mapper']['markerNameToElements'](_0x3f0836['markerName']);if(!_0x2b7216)return;const {subType:_0x29cec3}=this['_splitMarkerName'](_0x3f0836['markerName']),_0x4d05bf=oe(_0x29cec3);if(this['_isBlockAttribute'](_0x4d05bf)){for(const _0x40357f of _0x2b7216)_0x40357f['getCustomProperty']('addHighlight')||(_0x4f2d82['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x40357f),_0x4f2d82['writer']['removeAttribute']('data-suggestion',_0x40357f),_0x4f2d82['writer']['removeAttribute']('data-author-id',_0x40357f),_0x4f2d82['mapper']['unbindElementFromMarkerName'](_0x40357f,_0x3f0836['markerName']));}},{'priority':'high'});}),_0x17436f['model']['document']['registerPostFixer'](_0x3378d3=>{let _0x2454c6=!0x1;const _0x4d9da3=Array['from'](_0x17436f['model']['document']['differ']['getChangedMarkers']()),_0x12a3a6=new Set();for(const {name:_0x11d5fd,data:_0x529c63}of _0x4d9da3){const {group:_0x54a956,type:_0x1c0c7e,subType:_0x26c87b,id:_0x578753}=this['_splitMarkerName'](_0x11d5fd);if('suggestion'!==_0x54a956)continue;const _0x4e16e6=_0x26c87b?'suggestion:'+_0x1c0c7e+':'+_0x26c87b+':'+_0x578753:'suggestion:'+_0x1c0c7e+':'+_0x578753,_0x4531e4=_0x17436f['model']['markers']['getMarkersGroup'](_0x4e16e6),_0x4e9c97=_0x17436f['model']['markers']['get'](_0x11d5fd),_0x53faf5=this['_suggestions']['get'](_0x578753);if(null!=_0x529c63['newRange']){'formatInline'==_0x1c0c7e&&(_0x2454c6=_0x2454c6||Wt(_0x529c63['newRange'],_0x11d5fd,_0x3378d3,_0x17436f['model']['schema']));const _0x344274='attribute'==_0x1c0c7e&&this['_isBlockAttribute'](_0x26c87b['split']('|')[0x0]),_0xfc0be1='attribute'==_0x1c0c7e&&this['_isInlineAttribute'](_0x26c87b['split']('|')[0x0]);if(_0x529c63['newRange']['isCollapsed']||'$graveyard'==_0x529c63['newRange']['root']['rootName']||'formatBlock'==_0x1c0c7e&&!zt(_0x529c63['newRange'])||_0x344274&&!zt(_0x529c63['newRange'])||_0xfc0be1&&Qt(_0x529c63['newRange'])||'deletion'==_0x1c0c7e&&Qt(_0x529c63['newRange'])||_0x4e9c97&&Xt(_0x4e9c97,_0x4531e4))_0x3378d3['removeMarker'](_0x11d5fd),_0x2454c6=!0x0;else{if(!_0x53faf5||!_0x53faf5['isInContent'])continue;if(_0x529c63['newRange']&&_0x529c63['oldRange']&&_0x529c63['newRange']['isEqual'](_0x529c63['oldRange']))continue;_0x12a3a6['add'](_0x53faf5);}}}return _0x12a3a6['size']>0x0&&(_0x2454c6=!!this['_joinWithAdjacentSuggestions'](_0x12a3a6)||_0x2454c6),_0x2454c6;}),_0x17436f['model']['document']['registerPostFixer'](_0x183e14=>{let _0x431d35=!0x1;for(const _0x17e86d of _0x17436f['model']['document']['differ']['getChanges']())if('insert'==_0x17e86d['type'])for(const _0x55e267 of this['_suggestions']['values']()){if(_0x55e267['isMultiRange']||!_0x55e267['isInContent'])continue;const _0x1aee49='formatBlock'==_0x55e267['type'],_0x3dee33=this['_getAttributeKey'](_0x55e267),_0x161e06=_0x3dee33&&this['_isBlockAttribute'](_0x3dee33);if(!_0x1aee49&&!_0x161e06)continue;const _0x31b409=_0x55e267['getFirstRange']();if(_0x31b409['start']['parent']!=_0x31b409['end']['parent']&&!_0x31b409['end']['isAtEnd']){const _0x50e33f=_0x17436f['model']['createPositionAt'](_0x31b409['start']['nodeAfter'],'end'),_0xd7e717=_0x17436f['model']['createRange'](_0x31b409['start'],_0x50e33f);_0x183e14['updateMarker'](_0x55e267['getFirstMarker'](),{'range':_0xd7e717}),_0x431d35=!0x0;}}return _0x431d35;}),_0x17436f['model']['document']['registerPostFixer'](_0x305a13=>this['_processAttributeChanges'](_0x305a13)),_0x17436f['model']['document']['registerPostFixer'](_0x1899cb=>!_0x1899cb['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1899cb)),_0x17436f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x17436f['model']['document']['on']('change:data',(_0x5154c5,_0x2c86ec)=>{if(!_0x2c86ec['isLocal']||_0x2c86ec['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x122c24=_0x17436f['model']['document']['differ']['getChanges']();if(0x0==_0x122c24['length'])return;const _0x28aadc=[],_0x47a92c=_0x122c24['filter'](_0x9e436f=>'attribute'==_0x9e436f['type']),_0x271333=_0x122c24['filter'](_0x138844=>'insert'==_0x138844['type']&&'$text'!=_0x138844['name']);for(const _0x4c051e of _0x47a92c)this['_isRegisteredAttribute'](_0x4c051e['attributeKey'])&&_0x28aadc['push']({'key':_0x4c051e['attributeKey'],'newValue':_0x4c051e['attributeNewValue'],'oldValue':_0x4c051e['attributeOldValue'],'range':Zt(_0x4c051e['range'],_0x17436f['model'])});for(const _0x300697 of _0x271333){if('rename'!=_0x300697['action']&&'refresh'!=_0x300697['action'])continue;const _0xf109e9=te(_0x300697['position']['nodeAfter'],_0x17436f['model']),_0x344dd3=_0x300697['before'];'rename'==_0x300697['action']&&_0x28aadc['push']({'key':m,'newValue':_0x300697['name'],'oldValue':_0x344dd3['name'],'range':_0xf109e9});for(const [_0x37d1e5,_0x3a0926]of _0x344dd3['attributes']){if(!this['_isRegisteredAttribute'](_0x37d1e5))continue;const _0x3c2e4b=_0x300697['attributes']['get'](_0x37d1e5);_0x3a0926!==_0x3c2e4b&&_0x28aadc['push']({'key':_0x37d1e5,'newValue':_0x3c2e4b,'oldValue':_0x3a0926,'range':_0xf109e9});}for(const [_0x4b471b,_0x162384]of _0x300697['attributes'])this['_isRegisteredAttribute'](_0x4b471b)&&(_0x344dd3['attributes']['has'](_0x4b471b)||_0x28aadc['push']({'key':_0x4b471b,'newValue':_0x162384,'oldValue':null,'range':_0xf109e9}));}0x0!=_0x28aadc['length']&&_0x17436f['model']['enqueueChange'](_0x2c86ec,_0x658a85=>{const _0x5cb728=_0x668662();for(const {range:_0x576ec7,key:_0x3ef17c,oldValue:_0x177008,newValue:_0x622a7d}of _0x28aadc)this['markAttributeChange'](_0x576ec7,_0x3ef17c,_0x177008,_0x622a7d,{'groupId':_0x5cb728});this['_reduceExistingSuggestions'](_0x658a85,_0x28aadc);});},{'priority':'lowest'}),_0x17436f['model']['markers']['on']('update:suggestion',(_0x15adf0,_0x623476,_0x2f6ba2)=>{if(null==_0x2f6ba2){const {id:_0x2fae5d}=this['_splitMarkerName'](_0x623476['name']),_0x548af4=this['_suggestions']['get'](_0x2fae5d);_0x548af4&&_0x548af4['addMarkerName'](_0x623476['name']);}}),_0x17436f['model']['document']['on']('change:data',()=>{const _0x17c388=Array['from'](_0x17436f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x264d22=>'suggestion'===this['_splitMarkerName'](_0x264d22['name'])['group']);if(0x0===_0x17c388['length'])return;_0x17c388['sort']((_0x4ed1ff,_0x10050f)=>{const _0x47dd5c=_0x4ed1ff['data']['oldRange'],_0x521cc6=_0x10050f['data']['oldRange'];return null===_0x47dd5c&&null===_0x521cc6?0x0:null===_0x47dd5c&&null!==_0x521cc6?-0x1:null!==_0x47dd5c&&null===_0x521cc6?0x1:_0x47dd5c['start']['isBefore'](_0x521cc6['start'])?-0x1:0x1;});const _0x5451ee=new Set(),_0x2592e5=new Set();for(const {name:_0x49fe90,data:_0x160caf}of _0x17c388){const {id:_0x49f30e}=this['_splitMarkerName'](_0x49fe90);if(null===_0x160caf['oldRange']){const _0x667549=this['_handleNewSuggestionMarker'](_0x49fe90);_0x2592e5['add'](_0x667549);}else{const _0x57e53a=this['_suggestions']['get'](_0x49f30e);null!==_0x160caf['newRange']||_0x57e53a['isInContent']?(_0x5451ee['add'](_0x57e53a['head']),_0x2592e5['add'](_0x57e53a)):this['_removeSuggestion'](_0x57e53a);}}_0x2592e5['size']>0x0&&this['_refreshSuggestionsChain'](_0x2592e5);for(const _0x4468af of _0x5451ee)this['fire']('suggestionChanged',_0x4468af);}),_0x17436f['model']['on']('applyOperation',(_0x6a5761,_0x4203bb)=>{const _0x430421=_0x4203bb[0x0];if(!this['_suggestions']['size'])return;if(!_0x430421['isDocumentOperation'])return;if(_0x430421['batch']['isUndo']||!_0x430421['batch']['isLocal'])return;let _0x3f19a9,_0x2b6c7d;switch(_0x430421['type']){case'insert':_0x3f19a9=_0x17436f['model']['createPositionAt'](_0x430421['position']),_0x2b6c7d=_0x3f19a9['getShiftedBy'](_0x430421['howMany']);break;case'split':_0x3f19a9=_0x17436f['model']['createPositionAt'](_0x430421['splitPosition']),_0x2b6c7d=_0x17436f['model']['createPositionAt'](_0x430421['moveTargetPosition']);break;case'move':_0x3f19a9=_0x17436f['model']['createPositionAt'](_0x430421['targetPosition']),_0x2b6c7d=_0x3f19a9['getShiftedBy'](_0x430421['howMany']);break;default:return;}const _0x5c70ca=_0x17436f['model']['createRange'](_0x3f19a9,_0x2b6c7d);_0x17436f['model']['change'](()=>{for(const {suggestion:_0x29ecfb,meta:_0x460538}of this['_findSuggestions'](_0x5c70ca)){if(_0x29ecfb['isMultiRange'])continue;if('formatInline'==_0x29ecfb['type'])continue;const _0x6f1b3e=this['_getAttributeKey'](_0x29ecfb);if(_0x6f1b3e&&this['_isBlockAttribute'](_0x6f1b3e)&&'split'!=_0x430421['type'])continue;const _0x3257c6=_0x29ecfb['data']&&_0x29ecfb['data']['multipleBlocks'];('formatBlock'!=_0x29ecfb['type']||'split'==_0x430421['type']&&!_0x3257c6)&&(_0x460538['containsRangeInObject']||'insertion'==_0x29ecfb['type']&&_0x460538['isOwn']||_0x29ecfb['getFirstRange']()['containsRange'](_0x5c70ca)&&this['_breakSuggestionMarker'](_0x29ecfb,_0x3f19a9,_0x2b6c7d));}});},{'priority':'lowest'}),_0x17436f['model']['on']('deleteContent',(_0x216f28,_0x171a58)=>{const _0x23f47e=_0x171a58[0x0],_0x3bb72f=_0x171a58[0x1];if(_0x3bb72f&&_0x3bb72f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x23f47e['isCollapsed'])return;const _0x4749ce=_0x17436f['model']['schema'],{start:_0x15c3a8,end:_0x3853dc}=_0x23f47e['getFirstRange'](),_0x221457=_0x15c3a8['nodeAfter']&&_0x4749ce['isLimit'](_0x15c3a8['nodeAfter'])?null:_0x4749ce['getNearestSelectionRange'](_0x15c3a8,'forward'),_0x148196=_0x3853dc['nodeBefore']&&_0x4749ce['isLimit'](_0x3853dc['nodeBefore'])?null:_0x4749ce['getNearestSelectionRange'](_0x3853dc,'backward'),_0x1c1def=_0x17436f['model']['createRange'](_0x221457?_0x221457['start']:_0x15c3a8,_0x148196?_0x148196['end']:_0x3853dc);_0x17436f['model']['change'](_0x4e9eec=>{this['markDeletion'](_0x1c1def);const _0x2f0eb3=_0x17436f['model']['schema']['getNearestSelectionRange'](_0x1c1def['start']);_0x23f47e['is']('documentSelection')?_0x4e9eec['setSelection'](_0x2f0eb3):_0x23f47e['setTo'](_0x2f0eb3);}),_0x216f28['stop']();},{'priority':_0x48e2dc['normal']+0xa}),_0x17436f['model']['on']('insertContent',(_0x47c4bd,_0x45e9fe)=>{const _0xb6a043=_0x45e9fe[_0x45e9fe['length']-0x1];_0xb6a043&&_0xb6a043['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x17436f['model']['change'](()=>{let _0x4d5e6a=_0x17436f['model']['insertContent'](_0x45e9fe[0x0],_0x45e9fe[0x1],_0x45e9fe[0x2],{'forceDefaultExecution':!0x0});if(!_0x4d5e6a)return;_0x47c4bd['return']=_0x4d5e6a['clone']();const _0x1f4045=_0x4d5e6a['end']['nodeBefore'],_0x41f099=_0x17436f['model']['schema'];_0x1f4045&&_0x41f099['isBlock'](_0x1f4045)&&!_0x41f099['isObject'](_0x1f4045)&&(_0x4d5e6a=_0x17436f['model']['createRange'](_0x4d5e6a['start'],_0x17436f['model']['createPositionAt'](_0x1f4045,'end'))),this['markInsertion'](_0x4d5e6a);}),_0x47c4bd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1d85d5=new T(_0x17436f,this['_suggestions']);_0x17436f['commands']['add']('acceptSuggestion',_0x1d85d5),this['enableCommand']('acceptSuggestion');const _0x1f29b8=new O(_0x17436f,this['_suggestions']);_0x17436f['commands']['add']('discardSuggestion',_0x1f29b8),this['enableCommand']('discardSuggestion'),_0x17436f['commands']['add']('acceptAllSuggestions',new x(_0x17436f,_0x1d85d5,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x17436f['commands']['add']('discardAllSuggestions',new x(_0x17436f,_0x1f29b8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x17436f['commands']['add']('acceptSelectedSuggestions',new E(_0x17436f,_0x1d85d5,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x17436f['commands']['add']('discardSelectedSuggestions',new E(_0x17436f,_0x1f29b8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x129465=_0x17436f['plugins']['get']('CommentsRepository');this['listenTo'](_0x129465,'addComment',(_0x32e664,{threadId:_0x964b6e})=>{const _0xcab355=this['_suggestions']['get'](_0x964b6e);_0xcab355&&_0xcab355['commentThread']&&0x1===_0xcab355['commentThread']['length']&&this['_updateSuggestionData'](_0x964b6e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x129465,'removeComment',(_0x242d45,{threadId:_0x13ed87})=>{const _0x1bb9ad=this['_suggestions']['get'](_0x13ed87);_0x1bb9ad&&_0x1bb9ad['commentThread']&&!_0x1bb9ad['commentThread']['length']&&this['_updateSuggestionData'](_0x13ed87,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4bdfe9){const _0x3083f9=_0x40664d([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x26cff4=0x6b0f5e6f,_0x450ab3=0x6b082aaf^_0x26cff4,_0x34ccfd=window[_0x40664d([0x44,0x61,0x74,0x65])][_0x40664d([0x6e,0x6f,0x77])](),_0x10f4fc=_0x4bdfe9[_0x40664d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x413931=new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x532ff1=>{_0x10f4fc[_0x40664d([0x6f,0x6e,0x63,0x65])](_0x40664d([0x72,0x65,0x61,0x64,0x79]),_0x532ff1);}),_0x55908e={[_0x40664d([0x6b,0x74,0x79])]:_0x40664d([0x45,0x43]),[_0x40664d([0x75,0x73,0x65])]:_0x40664d([0x73,0x69,0x67]),[_0x40664d([0x63,0x72,0x76])]:_0x40664d([0x50,0x2d,0x32,0x35,0x36]),[_0x40664d([0x78])]:_0x40664d([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]),[_0x40664d([0x79])]:_0x40664d([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]),[_0x40664d([0x61,0x6c,0x67])]:_0x40664d([0x45,0x53,0x32,0x35,0x36])},_0x2ec93e=_0x10f4fc[_0x40664d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40664d([0x67,0x65,0x74])](_0x40664d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x32e5e9(){let _0x21cff0,_0x161782=null,_0x5a4b43=null;try{if(_0x2ec93e==_0x40664d([0x47,0x50,0x4c]))return _0x40664d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21cff0=_0x84a8cf(),!_0x21cff0)return _0x40664d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21cff0[_0x40664d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a4b43=_0x4c030e(_0x21cff0[_0x40664d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21cff0[_0x40664d([0x6a,0x74,0x69])])),await _0x580a8f()?_0x209802()?_0x10e424()?_0x40664d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3d93e6()?(_0x21cff0[_0x40664d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40664d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x161782=_0x44a5fe(_0x40664d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x21cff0[_0x40664d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40664d([0x74,0x72,0x69,0x61,0x6c])&&(_0x161782=_0x44a5fe(_0x40664d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5193e8()):_0x40664d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40664d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40664d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x40664d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x10e424(){const _0x43ae6b=[_0x40664d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40664d([0x74,0x72,0x69,0x61,0x6c])][_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21cff0[_0x40664d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34ccfd/0x3e8:0xe10*_0x450ab3;return _0x21cff0[_0x40664d([0x65,0x78,0x70])]<_0x43ae6b;}function _0x209802(){const _0x116225=_0x21cff0[_0x40664d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x116225)return!0x1;if(_0x116225[_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40664d([0x2a])))return!0x0;if(_0x116225[_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40664d([0x54,0x43])))return!0x0;if(_0x116225[_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40664d([0x52,0x54,0x43]))){if(_0x9d1e04())return!0x0;if(_0x3fee05()||_0x28c433())return!0x0;}return!0x1;}function _0x3d93e6(){const _0x25c78e=_0x21cff0[_0x40664d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x25c78e||0x0==_0x25c78e[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17a2b1}=new URL(window[_0x40664d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x25c78e[_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a2b1))return!0x0;const _0x5a339e=_0x17a2b1[_0x40664d([0x73,0x70,0x6c,0x69,0x74])](_0x40664d([0x2e]));return _0x25c78e[_0x40664d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4123e4=>_0x4123e4[_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40664d([0x2a])))[_0x40664d([0x6d,0x61,0x70])](_0x1fb249=>_0x1fb249[_0x40664d([0x73,0x70,0x6c,0x69,0x74])](_0x40664d([0x2e])))[_0x40664d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x109005=>_0x109005[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5a339e[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40664d([0x6d,0x61,0x70])](_0x356fd8=>Array(_0x5a339e[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x356fd8[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40664d([0x66,0x69,0x6c,0x6c])](_0x356fd8[0x0]===_0x40664d([0x2a])?_0x40664d([0x2a]):'')[_0x40664d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x356fd8))[_0x40664d([0x73,0x6f,0x6d,0x65])](_0xa3f1f4=>_0x5a339e[_0x40664d([0x65,0x76,0x65,0x72,0x79])]((_0x5f60b4,_0x2ff4d0)=>_0xa3f1f4[_0x2ff4d0]===_0x5f60b4||_0xa3f1f4[_0x2ff4d0]===_0x40664d([0x2a])));}function _0x5193e8(){return _0x161782&&_0x5a4b43?new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x557df3,_0x12993e)=>{_0x161782[_0x40664d([0x74,0x68,0x65,0x6e])](_0x557df3,_0x12993e),_0x5a4b43[_0x40664d([0x74,0x68,0x65,0x6e])](_0x39d3d9=>{_0x39d3d9!=_0x40664d([0x56,0x61,0x6c,0x69,0x64])&&_0x557df3(_0x39d3d9);},_0x12993e);}):_0x161782||_0x5a4b43||_0x40664d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c030e(_0x18a9db,_0x3bba85){return new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9ebb89=>{if(_0x5ea360())return _0x9ebb89(_0x40664d([0x56,0x61,0x6c,0x69,0x64]));_0x4e348d(),_0x10f4fc[_0x40664d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40664d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x571c6b=!0x1;const _0x3ea523=_0x668662();function _0x34eace(_0x246920){return!!_0x246920&&(typeof _0x246920===_0x40664d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x246920===_0x40664d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x246920[_0x40664d([0x74,0x68,0x65,0x6e])]===_0x40664d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x246920[_0x40664d([0x63,0x61,0x74,0x63,0x68])]===_0x40664d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f3d76(_0x77f453){_0xf1be61(_0x77f453)[_0x40664d([0x74,0x68,0x65,0x6e])](_0x21fa00=>{if(!_0x21fa00||_0x21fa00[_0x40664d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40664d([0x6f,0x6b]))return _0x40664d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e4333(_0x22759a(_0x3ea523+_0x3bba85))!=_0x21fa00[_0x40664d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40664d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40664d([0x56,0x61,0x6c,0x69,0x64]);})[_0x40664d([0x74,0x68,0x65,0x6e])](_0x41c066=>(_0x186264(),_0x41c066),()=>{const _0x112ce9=_0x5320d1();return null==_0x112ce9?(_0x186264(),_0x40664d([0x56,0x61,0x6c,0x69,0x64])):_0x40664d(_0x34ccfd-_0x112ce9>(0x4f03da6f^_0x26cff4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40664d([0x74,0x68,0x65,0x6e])](_0x9ebb89)[_0x40664d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9ebb89(_0x40664d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x31ceb6=0x6b39b0ef^_0x26cff4;function _0x186264(){const _0x2c3a61=_0x40664d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e4333(_0x22759a(_0x18a9db)),_0x338d8a=_0x3a8d87(_0x3e4333(window[_0x40664d([0x4d,0x61,0x74,0x68])][_0x40664d([0x63,0x65,0x69,0x6c])](_0x34ccfd/_0x31ceb6)));window[_0x40664d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40664d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c3a61,_0x338d8a);}function _0x5320d1(){const _0x5d4a63=_0x40664d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e4333(_0x22759a(_0x18a9db)),_0x3c2c00=window[_0x40664d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40664d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d4a63);return _0x3c2c00?window[_0x40664d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a8d87(_0x3c2c00),0x10)*_0x31ceb6:null;}function _0xf1be61(_0x4407d9){return new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31677c,_0x1b49ed)=>{_0x4407d9[_0x40664d([0x74,0x68,0x65,0x6e])](_0x31677c,_0x1b49ed),window[_0x40664d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b49ed,0x6b0e8aaf^_0x26cff4);});}}_0x10f4fc[_0x40664d([0x6f,0x6e])](_0x40664d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c8508,_0x529ca4)=>{if(_0x529ca4[0x0]!=_0x18a9db)return _0x9ebb89(_0x40664d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x529ca4[0x1]={..._0x529ca4[0x1],[_0x40664d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ea523};},{[_0x40664d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40664d([0x68,0x69,0x67,0x68])}),_0x10f4fc[_0x40664d([0x6f,0x6e])](_0x40664d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2abf58=>{_0x34eace(_0x2abf58[_0x40664d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x571c6b=!0x0,_0x4f3d76(_0x2abf58[_0x40664d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40664d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40664d([0x6c,0x6f,0x77])}),_0x413931[_0x40664d([0x74,0x68,0x65,0x6e])](()=>{_0x571c6b||_0x9ebb89(_0x40664d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ea360(){return _0x10f4fc[_0x40664d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40664d([0x76,0x69,0x65,0x77])][_0x40664d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40664d([0x61,0x75,0x74,0x6f]);}function _0x4e348d(){_0x10f4fc[_0x40664d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40664d([0x76,0x69,0x65,0x77])][_0x40664d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40664d([0x61,0x75,0x74,0x6f]);}}function _0x44a5fe(_0xf2a411){const _0x55993a=[new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32162c=>setTimeout(_0x32162c,0x6b0660a3^_0x26cff4)),_0x413931[_0x40664d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13a0c8=>{let _0x4a01b6=0x0;_0x10f4fc[_0x40664d([0x6d,0x6f,0x64,0x65,0x6c])][_0x40664d([0x6f,0x6e])](_0x40664d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x281865,_0x3778a8)=>{_0x3778a8[0x0][_0x40664d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a01b6++,_0x4a01b6==(0x6b0f5f97^_0x26cff4)&&(_0x13a0c8(),_0x281865[_0x40664d([0x6f,0x66,0x66])]());});}))];return window[_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40664d([0x72,0x61,0x63,0x65])](_0x55993a)[_0x40664d([0x74,0x68,0x65,0x6e])](()=>_0xf2a411);}async function _0x3b1fb2(){await _0x413931,_0x10f4fc[_0x40664d([0x6d,0x6f,0x64,0x65,0x6c])][_0x40664d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4aff44,_0x10f4fc[_0x40664d([0x6d,0x6f,0x64,0x65,0x6c])][_0x40664d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4aff44,_0x10f4fc[_0x40664d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40664d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x9d1e04(){return _0x38bda4(_0x40664d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2773fb(_0x40664d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x40664d([0x73,0x74,0x61,0x74,0x65])]==_0x40664d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3fee05(){return _0x38bda4(_0x40664d([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 _0x28c433(){return _0x38bda4(_0x40664d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x27a341(_0x2ef2ea){const _0x171305=_0x1ba290();_0x10f4fc[_0x171305]=_0x40664d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ef2ea,_0x2ef2ea!=_0x40664d([0x56,0x61,0x6c,0x69,0x64])&&_0x3b1fb2();}function _0x1ba290(){const _0x4d450d=window[_0x40664d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40664d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40664d([0x6e,0x6f,0x77])]())[_0x40664d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40664d([0x2e]),'');let _0x48f2ab=_0x40664d([0x67]);for(let _0x3d4a39=0x0;_0x3d4a39<_0x4d450d[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d4a39+=0x2){let _0xf8738c=window[_0x40664d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d450d[_0x40664d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d4a39,_0x3d4a39+0x2));_0xf8738c>=_0x3083f9[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf8738c-=_0x3083f9[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x48f2ab+=_0x3083f9[_0xf8738c];}return _0x48f2ab;}function _0x84a8cf(){const _0x513d98=_0x2ec93e[_0x40664d([0x73,0x70,0x6c,0x69,0x74])](_0x40664d([0x2e]));if(0x3!=_0x513d98[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3b96f8(_0x513d98[0x1]);function _0x3b96f8(_0x26cf7b){const _0x581383=_0x5effd5(_0x26cf7b);return _0x581383&&_0x4adfc1()?_0x581383:null;function _0x4adfc1(){const _0x43638a=_0x581383[_0x40664d([0x6a,0x74,0x69])],_0x122e70=window[_0x40664d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43638a[_0x40664d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43638a[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x54ba38={..._0x581383,[_0x40664d([0x6a,0x74,0x69])]:_0x43638a[_0x40664d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x43638a[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x54ba38[_0x40664d([0x76,0x63])],_0x22759a(_0x54ba38)==_0x122e70;}}}async function _0x580a8f(){let _0x3e7be0=!0x0;try{const _0xb6ee56=_0x2ec93e[_0x40664d([0x73,0x70,0x6c,0x69,0x74])](_0x40664d([0x2e])),[_0x346d51,_0x3f80d0,_0x502149]=_0xb6ee56;return _0x1ea479(_0x346d51),await _0xe8c22a(_0x346d51,_0x3f80d0,_0x502149),_0x3e7be0;}catch{return!0x1;}function _0x1ea479(_0x1ebd7b){const _0x26d805=_0x5effd5(_0x1ebd7b);_0x26d805&&_0x26d805[_0x40664d([0x61,0x6c,0x67])]==_0x40664d([0x45,0x53,0x32,0x35,0x36])||(_0x3e7be0=!0x1);}async function _0xe8c22a(_0x2897a3,_0x4a7d84,_0x462451){const _0x24b8d4=window[_0x40664d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40664d([0x66,0x72,0x6f,0x6d])](_0x4e5a22(_0x462451),_0x23d21f=>_0x23d21f[_0x40664d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x120b0a=new window[(_0x40664d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40664d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2897a3+_0x40664d([0x2e])+_0x4a7d84),_0x256747=window[_0x40664d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40664d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x256747)return;const _0x1f3327=await _0x256747[_0x40664d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40664d([0x6a,0x77,0x6b]),_0x55908e,{[_0x40664d([0x6e,0x61,0x6d,0x65])]:_0x40664d([0x45,0x43,0x44,0x53,0x41]),[_0x40664d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40664d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40664d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x256747[_0x40664d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40664d([0x6e,0x61,0x6d,0x65])]:_0x40664d([0x45,0x43,0x44,0x53,0x41]),[_0x40664d([0x68,0x61,0x73,0x68])]:{[_0x40664d([0x6e,0x61,0x6d,0x65])]:_0x40664d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f3327,_0x24b8d4,_0x120b0a)||(_0x3e7be0=!0x1);}}function _0x5effd5(_0x26025f){return _0x26025f[_0x40664d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40664d([0x65,0x79]))?JSON[_0x40664d([0x70,0x61,0x72,0x73,0x65])](_0x4e5a22(_0x26025f)):null;}function _0x4e5a22(_0x4f4590){return window[_0x40664d([0x61,0x74,0x6f,0x62])](_0x4f4590[_0x40664d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40664d([0x2b]))[_0x40664d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40664d([0x2f])));}function _0x22759a(_0x2a23a8){let _0xfb6505=0x1505;function _0x13dd52(_0x51022e){for(let _0x3d2cb2=0x0;_0x3d2cb2<_0x51022e[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d2cb2++){const _0x28628f=_0x51022e[_0x40664d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d2cb2);_0xfb6505=(_0xfb6505<<0x5)+_0xfb6505+_0x28628f,_0xfb6505&=_0xfb6505;}}function _0x28a90d(_0x4907f0){Array[_0x40664d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4907f0)?_0x4907f0[_0x40664d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28a90d):_0x4907f0&&typeof _0x4907f0==_0x40664d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40664d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4907f0)[_0x40664d([0x73,0x6f,0x72,0x74])]()[_0x40664d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5278cf,_0x5c13fa])=>{_0x13dd52(_0x5278cf),_0x28a90d(_0x5c13fa);}):_0x13dd52(window[_0x40664d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4907f0));}return _0x28a90d(_0x2a23a8),_0xfb6505>>>0x0;}function _0x3e4333(_0xdbd9ff){return _0xdbd9ff[_0x40664d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40664d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40664d([0x30]));}function _0x3a8d87(_0x33eb5d){return _0x33eb5d[_0x40664d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40664d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40664d([0x6a,0x6f,0x69,0x6e])]('');}function _0x38bda4(_0x6a0bf4){return _0x10f4fc[_0x40664d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x40664d([0x68,0x61,0x73])](_0x6a0bf4);}function _0x2773fb(_0x5318e2){return _0x10f4fc[_0x40664d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x40664d([0x67,0x65,0x74])](_0x5318e2);}function _0x4aff44(){}function _0x40664d(_0x3ae3dc){return _0x3ae3dc['map'](_0xbf37ac=>String['fromCharCode'](_0xbf37ac))['join']('');}_0x27a341(await _0x32e5e9());}(this);}set['adapter'](_0x2d7538){if(this['_adapter'])throw new _0x515288('track-changes-adapter-already-set',this);this['_adapter']=_0x2d7538;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x533533=!0x1,toJSON:_0x4b8e38=!0x1}={}){const _0x525d8a=[];for(const _0x172e8f of this['_suggestions']['values']())_0x533533&&!_0x172e8f['isInContent']||_0x525d8a['push'](_0x172e8f);return _0x4b8e38?_0x525d8a['map'](_0x439570=>_0x439570['toJSON']()):_0x525d8a;}['getSuggestion'](_0x381ec5){const _0x3dd4c5=this['_suggestions']['get'](_0x381ec5);if(!_0x3dd4c5)throw new _0x515288('track-changes-suggestion-not-found',this);return _0x3dd4c5;}['hasSuggestion'](_0x15d63c){return this['_suggestions']['has'](_0x15d63c);}['addSuggestionData'](_0x570107){const {authorId:_0x565de0,id:_0x199569,originalSuggestionId:_0x3e2385,attributes:_0x13ff07}=_0x570107,[_0x2f27a4,_0x42fe58]=_0x570107['type']['split'](':'),_0x3abdda=this['_suggestions']['get'](_0x199569)||this['_createSuggestion'](_0x2f27a4,_0x42fe58,_0x199569,_0x565de0,_0x13ff07,_0x3e2385);if(this['_addThreadToSuggestion'](_0x3abdda),this['_checkSuggestionCorrectness'](_0x3abdda,_0x2f27a4,_0x42fe58||null,_0x565de0),_0x3abdda['createdAt']=_0x570107['createdAt'],_0x3abdda['_isDataLoaded']=!0x0,_0x13ff07&&_0x13ff07['@external']){const _0x39058b=_0x13ff07['@external'],_0x4a3cc0=this['_getExternalAuthor'](_0x39058b['authorName']);_0x3abdda['authoredAt']=_0x39058b['createdAt'],_0x3abdda['author']=_0x4a3cc0,_0x3abdda['isExternal']=!0x0;}else _0x3abdda['authoredAt']=_0x570107['createdAt'];switch(_0x570107['data']&&(_0x3abdda['data']=_0x570107['data']),_0x570107['attributes']&&(_0x3abdda['attributes']=_0x570107['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3abdda['_saved']=!0x0),this['_suggestionState']['get'](_0x3abdda)){case'notReady':this['_suggestionState']['set'](_0x3abdda,'dataReady');break;case'markerReady':_0x3abdda['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3abdda])),this['_refreshSuggestionsChain'](new Set([_0x3abdda])),this['_suggestionState']['set'](_0x3abdda,'ready'),this['fire']('suggestionLoaded',_0x3abdda)):this['_suggestionState']['set'](_0x3abdda,'removed');}return _0x3abdda;}['acceptSuggestion'](_0x53a217){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x21d7a2 of _0x53a217['getAllAdjacentSuggestions']())_0x21d7a2['accept']();});});}['discardSuggestion'](_0x18493d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5def16 of _0x18493d['getAllAdjacentSuggestions']())_0x5def16['discard']();});});}['enableCommand'](_0x53fca4,_0x34acde){const _0x1ced31=this['editor']['commands']['get'](_0x53fca4);if(!_0x1ced31)throw new _0x515288('track-changes-command-not-found',this,{'commandName':_0x53fca4});if(this['_enabledCommands']['has'](_0x1ced31))throw new _0x515288('track-changes-enable-command-twice',this,{'commandName':_0x53fca4});this['_enabledCommands']['add'](_0x1ced31),_0x34acde&&_0x1ced31['on']('execute',(_0x5f3d4e,_0x3ba5fd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3ba5fd['length']>0x0&&_0x3ba5fd[_0x3ba5fd['length']-0x1]&&_0x3ba5fd[_0x3ba5fd['length']-0x1]['forceDefaultExecution']?_0x3ba5fd['pop']():(_0x5f3d4e['return']=_0x34acde((..._0x1b0bdf)=>_0x1ced31['execute'](..._0x1b0bdf,{'forceDefaultExecution':!0x0}),..._0x3ba5fd),_0x5f3d4e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x8cd9ce){let _0x1fd20b,_0x12beec;const _0x24a3f9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1fd20b=_0x8cd9ce();}catch(_0x1b10e3){_0x12beec=_0x1b10e3;}return _0x24a3f9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x12beec&&_0x515288['rethrowUnexpectedError'](_0x12beec,this),_0x1fd20b;}['markInsertion'](_0x56a3b6,_0xc56b2e=null,_0x386627={}){if(_0x56a3b6['isCollapsed'])return null;const _0x1e6fec=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x386627['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x50ee92,meta:_0x10e046}of this['_findSuggestions'](_0x56a3b6,'insertion'))if(_0x10e046['isOwn']){if(!_0x10e046['isNextTo']){if(_0x10e046['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ne(_0x50ee92,_0x386627))continue;return _0x50ee92;}if(ne(_0x50ee92,_0x386627))return _0x50ee92;this['_breakSuggestionMarker'](_0x50ee92,_0x56a3b6['start'],_0x56a3b6['end']);break;}if(_0xc56b2e==_0x50ee92['subType']&&ne(_0x50ee92,_0x386627)){const _0x29ac73=_0x50ee92['getFirstRange']();return _0x29ac73['start']['isEqual'](_0x56a3b6['end'])?this['_setSuggestionRange'](_0x50ee92,this['_model']['createRange'](_0x56a3b6['start'],_0x29ac73['end'])):this['_setSuggestionRange'](_0x50ee92,this['_model']['createRange'](_0x29ac73['start'],_0x56a3b6['end'])),_0x50ee92;}}const _0x284d55=_0x668662(),_0x5278f5=_0x1e6fec['id'],_0x253ec0=_0xc56b2e?'insertion:'+_0xc56b2e:'insertion',_0x3e9883=this['_setSuggestionData']({'id':_0x284d55,'type':_0x253ec0,'createdAt':new Date(),'authorId':_0x5278f5,'attributes':_0x386627});return this['_addSuggestionMarker'](_0x253ec0,_0x284d55,_0x5278f5,_0x56a3b6),_0x3e9883;}['markMultiRangeInsertion'](_0xb9bf70,_0x477b81='multi',_0x980cb4={}){const _0x54edae=this['editor']['plugins']['get']('Users')['me'],_0x113350=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x477b81,'join');this['_trackingSessionId']&&(_0x980cb4['trackingSessionId']=this['_trackingSessionId']);for(const _0x43be4a of this['getSuggestions']())if(_0x43be4a['author']['id']==_0x54edae['id']&&'insertion'==_0x43be4a['type']&&_0x43be4a['subType']==_0x477b81&&ne(_0x43be4a,_0x980cb4)&&(_0x113350(_0x43be4a['getRanges'](),_0xb9bf70)||_0x113350(_0xb9bf70,_0x43be4a['getRanges']()))){for(const _0x317e4c of _0xb9bf70)_0x43be4a['addRange'](_0x317e4c);return _0x43be4a;}for(const {suggestion:_0x241175,meta:_0x18dea1}of this['_findSuggestions'](_0xb9bf70,'insertion')){if(!_0x18dea1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x18dea1['containsRangeInObject'])continue;if(!ne(_0x241175,_0x980cb4))continue;let _0x2355dc=!0x0;for(const _0x241bc0 of _0x241175['getRanges']())for(const _0x31a3fb of _0xb9bf70)if(!_0x241bc0['containsRange'](_0x31a3fb)){_0x2355dc=!0x1;break;}if(_0x2355dc)return _0x241175;}const _0x4ddd09=_0x668662(),_0xf55713=_0x54edae['id'],_0x327b2e='insertion:'+_0x477b81,_0xe1a018=this['_setSuggestionData']({'id':_0x4ddd09,'type':_0x327b2e,'createdAt':new Date(),'authorId':_0xf55713,'attributes':_0x980cb4});for(const _0x3aabdb of _0xb9bf70)this['_addSuggestionMarker'](_0x327b2e,_0x4ddd09,_0xf55713,_0x3aabdb,R['getMultiRangeId']());return _0xe1a018;}['markInlineFormat'](_0x331088,_0x5854fb,_0x204f32=null,_0x23d6d3={}){if(_0x204f32=_0x204f32||qt(_0x5854fb),_0x331088['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x23d6d3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1b4f4f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x204f32,'accept');return this['forceDefaultExecution'](()=>_0x1b4f4f([_0x331088],_0x5854fb,_0x23d6d3)),null;}const _0x223c6e=this['editor']['plugins']['get']('Users')['me'],_0x3a5a80=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5a0153,meta:_0x495003}of this['_findSuggestions'](_0x331088,'insertion'))_0x495003['isOwn']&&!_0x495003['isInsideObject']&&_0x3a5a80['push'](..._0x5a0153['getRanges']());}const _0x48df4e=function(_0x263628,_0x184f17){const _0x3a7138=[];for(const _0x134124 of _0x184f17){const _0xe8b821=_0x263628['getIntersection'](_0x134124);_0xe8b821&&_0x3a7138['push'](_0xe8b821);}return _0x3a7138;}(_0x331088,_0x3a5a80),_0x22764e=function(_0x6cd81f,_0x1e296b){const _0x184d08=[_0x6cd81f];for(const _0x246667 of _0x1e296b){let _0x22512b=0x0;for(;_0x22512b<_0x184d08['length'];){const _0x146570=_0x184d08[_0x22512b]['getDifference'](_0x246667);_0x184d08['splice'](_0x22512b,0x1,..._0x146570),_0x22512b+=_0x146570['length'];}}return _0x184d08;}(_0x331088,_0x3a5a80);_0x48df4e['length']&&this['_model']['change'](()=>{for(const _0x35af4e of _0x48df4e){const _0x22a12b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x204f32,'accept');this['forceDefaultExecution'](()=>_0x22a12b([_0x35af4e],_0x5854fb,_0x23d6d3));}});for(const _0x23ee0f of _0x22764e){let _0x3b021f=null,_0x3bf904=_0x23ee0f['start'],_0x4086ab=_0x23ee0f['end'];for(const {suggestion:_0x1b4d34,meta:_0x13382e}of this['_findSuggestions'](_0x23ee0f,'formatInline')){if(!_0x13382e['isOwn'])continue;if(_0x1b4d34['subType']!=_0x204f32)continue;if(!ne(_0x1b4d34,_0x23d6d3))continue;const _0x37aed7=_0x1b4d34['getFirstRange']();if(_0x37aed7['containsRange'](_0x23ee0f,!0x0))return null;_0x3bf904=_0x3bf904['isBefore'](_0x37aed7['start'])?_0x3bf904:_0x37aed7['start'],_0x4086ab=_0x4086ab['isAfter'](_0x37aed7['end'])?_0x4086ab:_0x37aed7['end'],_0x3b021f?_0x37aed7['start']['isBefore'](_0x3b021f['getFirstRange']()['start'])?(_0x3b021f['removeMarkers'](),_0x3b021f=_0x1b4d34):_0x1b4d34['removeMarkers']():_0x3b021f=_0x1b4d34;}const _0x550964=this['_model']['createRange'](_0x3bf904,_0x4086ab);if(_0x3b021f)this['_setSuggestionRange'](_0x3b021f,_0x550964);else{const _0x307ec9=_0x668662(),_0xd82778=_0x223c6e['id'];this['_setSuggestionData']({'id':_0x307ec9,'type':'formatInline:'+_0x204f32,'data':_0x5854fb,'createdAt':new Date(),'authorId':_0xd82778,'attributes':_0x23d6d3}),this['_addSuggestionMarker']('formatInline:'+_0x204f32,_0x307ec9,_0xd82778,_0x550964);}}return null;}['markBlockFormat'](_0x3a9f9a,_0x55f9c2,_0x28b1c0=[],_0x5a764b=null,_0x5c9bae={}){_0x55f9c2['formatGroupId']||(_0x55f9c2['formatGroupId']=_0x55f9c2['commandName']),_0x55f9c2['multipleBlocks']=_0x3a9f9a['is']('range'),_0x5a764b=_0x5a764b||qt(_0x55f9c2);const _0x304a63=_0x28b1c0['map'](_0xcaf347=>te(_0xcaf347,this['_model'])),_0x1e5d28=_0x3a9f9a['is']('range')?_0x3a9f9a:te(_0x3a9f9a,this['_model']);if(this['_trackingSessionId']&&(_0x5c9bae['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5d934b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a764b,'accept');return this['forceDefaultExecution'](()=>_0x5d934b([_0x1e5d28],_0x55f9c2,_0x5c9bae)),null;}_0x304a63['push'](_0x1e5d28);let _0x3cf729=!0x0;for(const _0x1160de of _0x304a63)if(!this['_rangeIsInLocalUserInsertion'](_0x1160de)){_0x3cf729=!0x1;break;}if(_0x3cf729&&'always'!==this['_trackFormatChanges']){const _0x390188=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a764b,'accept');return this['forceDefaultExecution'](()=>_0x390188([_0x1e5d28],_0x55f9c2,_0x5c9bae)),null;}let _0xe8c255=null,_0x30c157=_0x1e5d28['start'],_0x49f365=_0x1e5d28['end'];for(const {suggestion:_0x1073c3,meta:_0x438bb1}of this['_findSuggestions'](_0x1e5d28,'formatBlock')){if(!_0x438bb1['isOwn'])continue;if(_0x438bb1['isNextTo']||_0x438bb1['containsRangeInObject']||_0x438bb1['isInsideObject'])continue;if(_0x1073c3['data']['formatGroupId']!=_0x55f9c2['formatGroupId'])continue;if(!ne(_0x1073c3,_0x5c9bae))continue;const _0x98475e=_0x1073c3['getFirstRange']();if(_0x1073c3['subType']==_0x5a764b){if(_0x98475e['containsRange'](_0x1e5d28,!0x0))return null;_0x30c157=_0x30c157['isBefore'](_0x98475e['start'])?_0x30c157:_0x98475e['start'],_0x49f365=_0x49f365['isAfter'](_0x98475e['end'])?_0x49f365:_0x98475e['end'],_0xe8c255?_0x98475e['start']['isBefore'](_0xe8c255['getFirstRange']()['start'])?(_0xe8c255['removeMarkers'](),_0xe8c255=_0x1073c3):_0x1073c3['removeMarkers']():_0xe8c255=_0x1073c3;}else{const _0x18f66e=_0x1e5d28['getIntersection'](_0x98475e);this['_cutOutSuggestionMarker'](_0x1073c3,_0x18f66e);}}const _0x1ab4e2=this['editor']['plugins']['get']('Users')['me'],_0x449b4b=_0x668662(),_0x306c4e=_0x1ab4e2['id'];if(_0xe8c255)return this['_setSuggestionRange'](_0xe8c255,this['_model']['createRange'](_0x30c157,_0x49f365)),_0xe8c255;{const _0x521294=this['_setSuggestionData']({'id':_0x449b4b,'type':'formatBlock:'+_0x5a764b,'data':_0x55f9c2,'createdAt':new Date(),'authorId':_0x306c4e,'attributes':_0x5c9bae});return this['_addSuggestionMarker']('formatBlock:'+_0x5a764b,_0x449b4b,_0x306c4e,this['_model']['createRange'](_0x30c157,_0x49f365)),_0x521294;}}['markMultiRangeBlockFormat'](_0x40ce01,_0x2d87be,_0x16c0ad=[],_0x3f9b29=null,_0x2fdffd={}){_0x2d87be['formatGroupId']||(_0x2d87be['formatGroupId']=_0x2d87be['commandName']);const _0x19cdc4=_0x40ce01[0x0];_0x2d87be['multipleBlocks']=_0x19cdc4['is']('range'),_0x3f9b29=_0x3f9b29||qt(_0x2d87be);const _0x5719c5=_0x16c0ad['map'](_0x7724e1=>te(_0x7724e1,this['_model'])),_0x329bfb=_0x19cdc4['is']('range')?_0x40ce01:_0x40ce01['map'](_0x1abe7b=>te(_0x1abe7b,this['_model']));if(this['_trackingSessionId']&&(_0x2fdffd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc64867=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f9b29,'accept');return this['forceDefaultExecution'](()=>_0xc64867(_0x329bfb,_0x2d87be,_0x2fdffd)),null;}_0x5719c5['push'](..._0x329bfb);let _0x3a3554=!0x0;for(const _0xf1f9f9 of _0x5719c5)if(!this['_rangeIsInLocalUserInsertion'](_0xf1f9f9)){_0x3a3554=!0x1;break;}if(_0x3a3554&&'always'!==this['_trackFormatChanges']){const _0x24dd71=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f9b29,'accept');return this['forceDefaultExecution'](()=>_0x24dd71(_0x329bfb,_0x2d87be,_0x2fdffd)),null;}const _0x3f45c8=this['editor']['plugins']['get']('Users')['me'];for(const _0x2edde0 of this['getSuggestions']()){const _0x38eb9a=_0x2edde0['data'];if(_0x2edde0['author']['id']!=_0x3f45c8['id'])continue;if('formatBlock'!=_0x2edde0['type']||_0x38eb9a['formatGroupId']!=_0x2d87be['formatGroupId'])continue;if(!ne(_0x2edde0,_0x2fdffd))continue;const _0x5383b5=_0x2edde0['subType']==_0x3f9b29;for(let _0x449e7e=0x0;_0x449e7e<_0x329bfb['length'];_0x449e7e++){const _0x53443d=_0x329bfb[_0x449e7e];for(const _0x4c8557 of _0x2edde0['getMarkers']()){const _0x3c7c32=_0x4c8557['getRange']();if(_0x53443d['isEqual'](_0x3c7c32)){_0x5383b5?(_0x329bfb['splice'](_0x449e7e,0x1),_0x449e7e--):_0x2edde0['removeMarker'](_0x4c8557['name']);break;}}}}if(0x0==_0x329bfb['length'])return null;const _0x44107b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f9b29,'join');for(const _0x1e895f of this['getSuggestions']()){const _0x105f5e=_0x1e895f['data'];if(_0x1e895f['author']['id']==_0x3f45c8['id']&&('formatBlock'==_0x1e895f['type']&&_0x105f5e['formatGroupId']==_0x2d87be['formatGroupId']&&_0x1e895f['subType']==_0x3f9b29&&ne(_0x1e895f,_0x2fdffd)&&(_0x44107b(_0x1e895f['getRanges'](),_0x329bfb)||_0x44107b(_0x329bfb,_0x1e895f['getRanges']())))){for(const _0x47a843 of _0x329bfb)_0x1e895f['addRange'](_0x47a843);return _0x1e895f;}}const _0x42c17f=_0x668662(),_0x4314cd=_0x3f45c8['id'],_0x1a724e='formatBlock:'+_0x3f9b29,_0x1fb01e=this['_setSuggestionData']({'id':_0x42c17f,'type':_0x1a724e,'data':_0x2d87be,'createdAt':new Date(),'authorId':_0x4314cd,'attributes':_0x2fdffd});for(const _0x32a7a6 of _0x329bfb)this['_addSuggestionMarker'](_0x1a724e,_0x42c17f,_0x4314cd,_0x32a7a6,R['getMultiRangeId']());return _0x1fb01e;}['markDeletion'](_0x10a39f,_0x598482=null,_0x7e287={}){if(_0x10a39f['isCollapsed'])return null;const _0x20462d=this['editor']['plugins']['get']('Users')['me'],_0x21afa4=new _0x2fe235(_0x10a39f['start'],_0x10a39f['end']);this['_trackingSessionId']&&(_0x7e287['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x39772b,meta:_0x1bbb6f}of this['_findSuggestions'](_0x21afa4,'insertion'))if(_0x1bbb6f['isOwn']&&!_0x1bbb6f['isNextTo']){if(_0x39772b['isMultiRange']){const _0x3d562e=_0x39772b['getRanges']()['filter'](_0x2aa7bd=>'$graveyard'!=_0x2aa7bd['root']['rootName']);_0x3d562e['every'](_0x4c421c=>_0x21afa4['containsRange'](_0x4c421c,!0x0))&&_0x39772b['discard']();if(_0x3d562e['some'](_0x598955=>_0x598955['containsRange'](_0x21afa4,!0x0))){const _0x272ffb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x598482,'accept');return this['forceDefaultExecution'](()=>_0x272ffb([_0x21afa4],null,_0x7e287)),null;}}else{const _0x49b46d=_0x21afa4['getIntersection'](_0x39772b['getFirstRange']());null!==_0x49b46d&&_0x39772b['_onDiscard']([_0x49b46d],null,_0x7e287);}}if(_0x21afa4['detach'](),_0x21afa4['isCollapsed']||'$graveyard'==_0x21afa4['root']['rootName'])return null;let _0x282df6=null,_0x16c81b=_0x21afa4['start'],_0x17f0a2=_0x21afa4['end'];const _0x31b622=this['_findSuggestions'](_0x21afa4,'deletion');for(const {suggestion:_0xf62fb4,meta:_0x1debd0}of _0x31b622){const _0x578748=this['_model']['createRange'](_0x16c81b,_0x17f0a2);if(_0x1debd0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1debd0['containsRangeInObject']&&!_0x1debd0['isInsideObject'])){if(_0xf62fb4['isMultiRange']){if(!ne(_0xf62fb4,_0x7e287))continue;let _0x360941=!0x0;for(const _0x198388 of _0xf62fb4['getRanges']()){if(_0x198388['containsRange'](_0x578748,!0x0))return _0xf62fb4;_0x578748['containsRange'](_0x198388)||(_0x360941=!0x1);}_0x360941&&_0xf62fb4['discard']();}else{const _0x4a00a7=_0xf62fb4['getFirstRange']();if(_0x4a00a7['containsRange'](_0x578748,!0x0))return _0xf62fb4;if(!ne(_0xf62fb4,_0x7e287)){_0x578748['containsRange'](_0x4a00a7)?_0xf62fb4['removeMarkers']():_0x4a00a7['containsPosition'](_0x16c81b)?_0x16c81b=_0x4a00a7['end']:_0x4a00a7['containsPosition'](_0x17f0a2)&&(_0x17f0a2=_0x4a00a7['start']);continue;}_0x16c81b=_0x16c81b['isBefore'](_0x4a00a7['start'])?_0x16c81b:_0x4a00a7['start'],_0x17f0a2=_0x17f0a2['isAfter'](_0x4a00a7['end'])?_0x17f0a2:_0x4a00a7['end'],_0x7e287=Object['assign']({},_0xf62fb4['attributes']),_0x282df6?_0x4a00a7['start']['isBefore'](_0x282df6['getFirstRange']()['start'])?(_0x282df6['removeMarkers'](),_0x282df6=_0xf62fb4):_0xf62fb4['removeMarkers']():_0x282df6=_0xf62fb4;}}}if(_0x282df6)return this['_setSuggestionRange'](_0x282df6,this['_model']['createRange'](_0x16c81b,_0x17f0a2)),_0x282df6;{const _0x599dc0=_0x668662(),_0x386650=this['_model']['createRange'](_0x16c81b,_0x17f0a2),_0x5734f5=_0x20462d['id'],_0x5f2659=_0x598482?'deletion:'+_0x598482:'deletion',_0x2f33d9=this['_setSuggestionData']({'id':_0x599dc0,'type':_0x5f2659,'createdAt':new Date(),'authorId':_0x5734f5,'attributes':_0x7e287});return this['_addSuggestionMarker'](_0x5f2659,_0x599dc0,_0x5734f5,_0x386650),_0x2f33d9;}}['markMultiRangeDeletion'](_0x300b87,_0xd62660='multi',_0x1bd8e1={}){const _0x3b8562=this['editor']['plugins']['get']('Users')['me'],_0x46dcf6=_0x300b87['map'](_0x6d053a=>new _0x2fe235(_0x6d053a['start'],_0x6d053a['end'])),_0x24901a=new Set();this['_trackingSessionId']&&(_0x1bd8e1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3a473d,meta:_0x1e54d8}of this['_findSuggestions'](_0x46dcf6,'insertion'))_0x1e54d8['isOwn']&&!_0x1e54d8['isNextTo']&&_0x24901a['add'](_0x3a473d);for(const _0x56e7cc of _0x24901a)if(_0x56e7cc['isMultiRange']){const _0x57c749=_0x56e7cc['getRanges']();(!_0x56e7cc['attributes']||!_0x56e7cc['attributes']['skipNestingCheck'])&&(_0x57c749['every'](_0x3c47fa=>_0x46dcf6['some'](_0x1d081f=>_0x1d081f['containsRange'](_0x3c47fa,!0x0)))&&_0x56e7cc['discard']());if(_0x46dcf6['every'](_0x1ed486=>_0x57c749['some'](_0x4c6bfb=>_0x4c6bfb['containsRange'](_0x1ed486,!0x0)))){const _0x4126ad=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd62660,'accept');return this['forceDefaultExecution'](()=>_0x4126ad(_0x300b87,null,_0x1bd8e1)),null;}}else{const _0x5aea7c=_0x56e7cc['getFirstRange']();_0x46dcf6['some'](_0x36127a=>_0x36127a['containsRange'](_0x5aea7c,!0x0))&&_0x56e7cc['discard']();if(_0x46dcf6['every'](_0x1df5bd=>_0x5aea7c['containsRange'](_0x1df5bd,!0x0))){const _0x29b39f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd62660,'accept');return this['forceDefaultExecution'](()=>_0x29b39f(_0x46dcf6,null,_0x1bd8e1)),null;}}const _0x187655=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd62660,'join');let _0x57986d=null;for(const _0x53ae29 of this['getSuggestions']())if(_0x53ae29['author']['id']==_0x3b8562['id']&&_0x53ae29['isInContent']&&'deletion'==_0x53ae29['type']&&_0x53ae29['subType']==_0xd62660&&ne(_0x53ae29,_0x1bd8e1)&&(_0x187655(_0x53ae29['getRanges'](),_0x46dcf6)||_0x187655(_0x46dcf6,_0x53ae29['getRanges']()))){if(_0x57986d){if(_0x53ae29['commentThread']&&_0x53ae29['commentThread']['length'])continue;for(const _0xa5c051 of _0x53ae29['getRanges']())_0x57986d['isIntersectingWithRange'](_0xa5c051)||_0x57986d['addRange'](_0xa5c051);_0x53ae29['removeMarkers']();}else{_0x57986d=_0x53ae29;for(const _0x3ff083 of _0x46dcf6)_0x53ae29['isIntersectingWithRange'](_0x3ff083)||_0x53ae29['addRange'](_0x3ff083);}}if(_0x57986d)return _0x57986d;_0x24901a['clear']();for(const {suggestion:_0x16f5ad,meta:_0x108d63}of this['_findSuggestions'](_0x46dcf6,'deletion'))_0x108d63['isOwn']&&(this['_mergeNestedSuggestions']||!_0x108d63['containsRangeInObject']&&!_0x108d63['isInsideObject'])&&ne(_0x16f5ad,_0x1bd8e1)&&_0x24901a['add'](_0x16f5ad);for(const _0x5709b6 of _0x24901a){const _0x48b9c5=_0x5709b6['getRanges']();if(!_0x1bd8e1||!_0x1bd8e1['skipNestingCheck']){if(_0x46dcf6['every'](_0x50ee0e=>_0x48b9c5['some'](_0x41727f=>_0x41727f['containsRange'](_0x50ee0e,!0x0))))return _0x5709b6;}(!_0x5709b6['attributes']||!_0x5709b6['attributes']['skipNestingCheck'])&&(_0x48b9c5['every'](_0x1ac438=>_0x46dcf6['some'](_0x33a315=>_0x33a315['containsRange'](_0x1ac438,!0x0)))&&_0x5709b6['discard']());}const _0x3a4ac3=_0x668662(),_0x74df4e=_0x3b8562['id'],_0x45038f='deletion:'+_0xd62660,_0x5d42af=this['_setSuggestionData']({'id':_0x3a4ac3,'type':_0x45038f,'createdAt':new Date(),'authorId':_0x74df4e,'attributes':_0x1bd8e1});for(const _0x5306c6 of _0x46dcf6)_0x5306c6['detach'](),_0x5306c6['isCollapsed']||'$graveyard'==_0x5306c6['root']['rootName']||this['_addSuggestionMarker'](_0x45038f,_0x3a4ac3,_0x74df4e,_0x5306c6,R['getMultiRangeId']());return _0x5d42af;}['markAttributeChange'](_0x100c20,_0x3b64cc,_0x1e1fd7,_0x2a577e,_0x503e0c){if(_0x100c20['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x215346=this['editor']['plugins']['get']('Users')['me']['id'],_0x5dd728=Array['from'](this['_suggestions']['values']())['filter'](_0x113dd6=>'attribute'==_0x113dd6['type']&&_0x113dd6['data']['key']==_0x3b64cc&&_0x113dd6['isIntersectingWithRange'](_0x100c20));if(this['_trackingSessionId']&&(_0x503e0c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x8dc3a8=this['_findSuggestions'](_0x100c20,'insertion')['filter'](({meta:_0x4016d4})=>_0x4016d4['isOwn']&&!_0x4016d4['isInsideObject']&&!_0x4016d4['isNextTo'])['map'](({suggestion:_0x377c56})=>_0x377c56);_0x5dd728['unshift'](..._0x8dc3a8);}const _0x45ed94=new Map([[_0x100c20,_0x1e1fd7]]);for(const _0xc02d35 of _0x5dd728){const _0x5782f2='attribute'==_0xc02d35['type']?_0xc02d35['data']['oldValue']:void 0x0,_0x3f07f6=_0xc02d35['getFirstRange'](),_0xf52f30=Array['from'](_0x45ed94['keys']())['find'](_0x55ffb5=>_0x55ffb5['isIntersecting'](_0x3f07f6));if(!_0xf52f30)continue;const _0x49a416=_0xf52f30['getDifference'](_0x3f07f6);this['_isBlockAttribute'](_0x3b64cc)&&'insertion'==_0xc02d35['type']&&0x0!=_0x49a416['length']||(_0x45ed94['delete'](_0xf52f30),_0x49a416['forEach'](_0x26d0ee=>{_0x45ed94['set'](_0x26d0ee,_0x1e1fd7);}),'insertion'!=_0xc02d35['type']&&_0x5782f2!=_0x2a577e&&_0x45ed94['set'](_0xf52f30['getIntersection'](_0x3f07f6),_0x5782f2));}const _0x1ca8b8=[];for(const [_0x4072be,_0x145091]of _0x45ed94){const _0x1c8591=_0x668662(),_0x59fa03={'key':_0x3b64cc,'oldValue':_0x145091,'newValue':_0x2a577e};_0x3b64cc['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':_0x3b64cc});const _0x106b33=('attribute:'+(_0x3b64cc+'|'+qt({'newValue':_0x2a577e})))['substring'](0x0,0x3c),_0x2996ae=this['_setSuggestionData']({'id':_0x1c8591,'type':_0x106b33,'data':_0x59fa03,'createdAt':new Date(),'authorId':_0x215346,'attributes':_0x503e0c});_0x1ca8b8['push'](_0x2996ae),this['_addSuggestionMarker'](_0x106b33,_0x1c8591,_0x215346,_0x4072be);}return _0x1ca8b8;}['enableDefaultAttributesIntegration'](_0x162842){this['enableCommand'](_0x162842,(_0x132411,..._0x1b3d6a)=>{this['recordAttributeChanges'](()=>{_0x132411(..._0x1b3d6a);});});}['registerBlockAttribute'](_0xded467){this['_blockAttributeKeys']['add'](_0xded467);}['registerInlineAttribute'](_0x701729){this['_inlineAttributeKeys']['add'](_0x701729);}['startTrackingSession'](_0x19dc5b){return this['_trackingSessionId']=void 0x0!==_0x19dc5b?_0x19dc5b:_0x668662(),this['_trackingSessionId'];}['_getAttributeKey'](_0x463123){return'attribute'==_0x463123['type']?oe(_0x463123['subType']):null;}['_applyOperationsAsSuggestions'](_0x1409c0){if(0x0==_0x1409c0['length'])return;const _0x40bcf2=this['editor'],_0xaf0817=_0x40bcf2['plugins']['get'](_0x11ae4f);let _0x213a12=!0x0;for(const _0x367e28 in _0x1409c0[0x0]){const _0xb325cf=_0x1409c0[0x0][_0x367e28];if((_0xb325cf instanceof _0xda936f||_0xb325cf instanceof _0x4a33f5)&&_0xb325cf['root']['is']('documentFragment')){_0x213a12=!0x1;break;}}_0x40bcf2['model']['change'](_0x3358ca=>{const _0xb72f9f=new Set();for(const _0x426572 of _0x1409c0)if(_0x426572['baseVersion']=_0x213a12?_0x40bcf2['model']['document']['version']:null,_0x426572['isDocumentOperation']=_0x213a12,_0xaf0817['isMarkedRemoveOperation'](_0x426572)){const _0x144f84=Yt(_0x426572['newRange'],_0x40bcf2['model']);if(_0x213a12)this['markDeletion'](_0x144f84);else{const _0x4f3244='suggestion:deletion:id:authorId:'+_0x668662();_0x144f84['root']['markers']['set'](_0x4f3244,_0x144f84);}}else switch(_0x426572['type']){case'rename':{const _0x4da489=_0x426572['oldName'],_0x9bc9d4=_0x426572['newName'];if(_0x4da489==_0x9bc9d4)break;_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572);const _0x6c2c76='$elementName',_0xf4c39f=_0x426572['position'],_0x16e3db=_0x40bcf2['model']['createRange'](_0xf4c39f,_0x40bcf2['model']['createPositionAt'](_0xf4c39f['nodeAfter'],'end'));if(_0x213a12)this['markAttributeChange'](_0x16e3db,_0x6c2c76,_0x4da489,_0x9bc9d4,{'groupId':_0x668662()});else{const _0x446b53='suggestion:attribute:'+_0x6c2c76+':id:authorId:'+_0x668662();_0x16e3db['root']['markers']['set'](_0x446b53,_0x16e3db);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x4f32b7=_0x426572['oldValue'],_0x1b3fcc=_0x426572['newValue'];if(_0x4f32b7==_0x1b3fcc)break;_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572);const _0x51c8ab=_0x426572['key'];if(!this['_isRegisteredAttribute'](_0x51c8ab))break;const _0x1b81b4=Yt(_0x426572['range'],_0x40bcf2['model']);if(_0x213a12)this['markAttributeChange'](_0x1b81b4,_0x51c8ab,_0x4f32b7,_0x1b3fcc,{'groupId':_0x668662()});else{const _0x2859e1='suggestion:attribute:'+_0x51c8ab+':id:authorId:'+_0x668662();_0x1b81b4['root']['markers']['set'](_0x2859e1,_0x1b81b4);}break;}case'insert':{_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572);const _0x2e09e1=_0x426572['position'],_0x2a9117=_0x426572['howMany'],_0x5e9ea9=Yt(_0x40bcf2['model']['createRange'](_0x2e09e1,_0x2e09e1['getShiftedBy'](_0x2a9117)),_0x40bcf2['model']);if(_0x213a12)this['markInsertion'](_0x5e9ea9);else{const _0x2a6bca='suggestion:insertion:id:authorId:'+_0x668662();_0x5e9ea9['root']['markers']['set'](_0x2a6bca,_0x5e9ea9);}break;}case'split':{_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572);const _0x4b4a91=_0x426572['splitPosition'],_0xbdbcb8=_0x426572['moveTargetPosition'],_0x32af77=_0x40bcf2['model']['createRange'](_0x4b4a91,_0xbdbcb8);if(_0x213a12)this['markInsertion'](_0x40bcf2['model']['createRange'](_0x4b4a91,_0xbdbcb8));else{const _0x38c911='suggestion:insertion:id:authorId:'+_0x668662();_0x32af77['root']['markers']['set'](_0x38c911,_0x32af77);}break;}case'move':if(_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572),!_0x213a12){const _0x3b59ac=_0x426572['getMovedRangeStart'](),_0x9bafb7=_0x426572['howMany'];for(let _0x32360f=0x0;_0x32360f<_0x9bafb7;_0x32360f++){const _0x5c501a=_0x3b59ac['getShiftedBy'](_0x32360f)['nodeAfter'];_0xb72f9f['add'](_0x5c501a);}}break;case'remove':if(_0x213a12)_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572);else{const _0x325e42=_0x426572['sourcePosition'],_0x15f3f4=_0x426572['howMany'],_0x53710b=new _0x5b3eaa(_0x325e42,_0x15f3f4);_0x3358ca['batch']['addOperation'](_0x53710b),_0x40bcf2['model']['applyOperation'](_0x53710b);}}for(const _0x8e7559 of _0xb72f9f){const _0xb2ba15=_0x40bcf2['model']['createRangeOn'](_0x8e7559),_0x4833d2='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0x668662();_0xb2ba15['root']['markers']['set'](_0x4833d2,Yt(_0xb2ba15,_0x40bcf2['model']));}});}['_setSuggestionRange'](_0x2792b0,_0x34db1b){const _0x5edae4=_0x2792b0['getFirstMarker']();this['_model']['change'](_0x14146e=>{_0x14146e['updateMarker'](_0x5edae4,{'range':_0x34db1b});});}['_addThreadToSuggestion'](_0x4c98c5){const _0x5f3bf6=_0x4c98c5['id'],_0x5bc7ff=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5f3bf6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5bc7ff,'threadId':_0x5f3bf6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5445f4=this['_commentsRepository']['getCommentThread'](_0x5f3bf6);_0x5445f4['unbind']('isRemovable'),_0x5445f4['isRemovable']=!0x1,_0x4c98c5['commentThread']=_0x5445f4;}['_checkSuggestionCorrectness'](_0x6a0869,_0x52a6b0,_0x5580c2,_0x129e5d){if(_0x6a0869['type']!=_0x52a6b0||_0x6a0869['subType']!=_0x5580c2||_0x6a0869['creator']['id']!=_0x129e5d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x515288('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x137835,_0x454eb7){const _0x3c7041=_0x137835['getFirstRange']();if(_0x454eb7['isEqual'](_0x3c7041))_0x137835['removeMarkers']();else{if(_0x3c7041['containsRange'](_0x454eb7)){const _0xc5d783=this['_model']['createPositionAt'](_0x454eb7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x137835,this['_model']['createRange'](_0x3c7041['start'],_0xc5d783));const _0x2f052c=_0x668662(),_0x1860dd=_0x137835['creator']['id'],_0x126d74=_0x137835['type']+':'+_0x137835['subType'];this['_setSuggestionData']({'id':_0x2f052c,'type':_0x126d74,'createdAt':new Date(),'authorId':_0x1860dd,'data':_0x137835['data'],'attributes':_0x137835['attributes']});const _0x55f743=this['_model']['createPositionAt'](_0x454eb7['end']['parent'],'after'),_0x3ec4b8=this['_model']['createRange'](_0x55f743,_0x3c7041['end']);this['_addSuggestionMarker'](_0x126d74,_0x2f052c,_0x1860dd,_0x3ec4b8);}else{if(_0x3c7041['containsPosition'](_0x454eb7['start'])){const _0x1cde5d=this['_model']['createPositionAt'](_0x454eb7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x137835,this['_model']['createRange'](_0x3c7041['start'],_0x1cde5d));}else{const _0x5b450b=this['_model']['createPositionAt'](_0x454eb7['end']['parent'],'after');this['_setSuggestionRange'](_0x137835,this['_model']['createRange'](_0x5b450b,_0x3c7041['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3f838a){for(const {suggestion:_0x22a04f,meta:_0x5ef2cf}of this['_findSuggestions'](_0x3f838a,'insertion')){if(!_0x5ef2cf['isOwn'])continue;const _0x593c05=_0x22a04f['getRanges']();for(const _0x1749f7 of _0x593c05)if(!_0x3f838a['getDifference'](_0x1749f7)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5ae86c){return this['editor']['plugins']['get']('Users')['getUser'](_0x5ae86c);}['_getExternalAuthor'](_0x2e9f7f){const _0x238bea=this['editor']['plugins']['get']('Users'),_0x56d3a7=_0x318d41('external:'+_0x2e9f7f),_0x146f2a=_0x238bea['getUser'](_0x56d3a7);return _0x146f2a||_0x238bea['addUser']({'id':_0x56d3a7,'name':_0x2e9f7f});}['_createSuggestion'](_0x36ce6c,_0x4b5538,_0x58a39d,_0x284a1a,_0x2bde6e,_0x216a9f){const _0x1aa5f5=this['_getAuthorFromId'](_0x284a1a);if(!_0x1aa5f5)throw new _0x515288('track-changes-user-not-found',this,{'authorId':_0x284a1a,'suggestionId':_0x58a39d});const _0x2c7f5b=this['_suggestionFactory']['buildSuggestion'](_0x36ce6c,_0x4b5538,_0x58a39d,_0x1aa5f5,_0x2bde6e,_0x30cae9=>{this['_updateSuggestionData'](_0x58a39d,{'attributes':_0x30cae9});const _0x250529=this['getSuggestion'](_0x58a39d);this['_joinWithAdjacentSuggestions'](new Set([_0x250529])),this['_refreshSuggestionsChain'](new Set([_0x250529]));},_0x216a9f);return this['listenTo'](_0x2c7f5b,'accept',()=>{this['_updateSuggestionData'](_0x58a39d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2c7f5b,'discard',()=>{this['_updateSuggestionData'](_0x58a39d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x58a39d,_0x2c7f5b),this['_suggestionState']['set'](_0x2c7f5b,'notReady'),_0x2c7f5b;}['_splitMarkerName'](_0x56a5f2){const _0x555bcf=_0x56a5f2['split'](':');return{'group':_0x555bcf[0x0],'type':_0x555bcf[0x1],'subType':_0x555bcf['length']>=0x5?_0x555bcf[0x2]:null,'id':_0x555bcf['length']<0x5?_0x555bcf[0x2]:_0x555bcf[0x3],'authorId':_0x555bcf['length']<0x5?_0x555bcf[0x3]:_0x555bcf[0x4],'markerCount':0x6==_0x555bcf['length']?_0x555bcf[0x5]:null};}['_breakSuggestionMarker'](_0x1936bb,_0x4f2c1a,_0x3250d9){const _0x3c6b5a=_0x1936bb['getFirstRange'](),_0x400128=_0x3c6b5a['start'],_0x402837=_0x3c6b5a['end'];this['_setSuggestionRange'](_0x1936bb,this['_model']['createRange'](_0x400128,_0x4f2c1a));const _0x272729=_0x668662(),_0x500192=_0x1936bb['creator']['id'],_0xfec92b=_0x1936bb['type']+(_0x1936bb['subType']?':'+_0x1936bb['subType']:'');this['_setSuggestionData']({'id':_0x272729,'type':_0xfec92b,'createdAt':new Date(),'authorId':_0x500192,'originalSuggestionId':_0x1936bb['_originalSuggestionId']||_0x1936bb['id'],'attributes':_0x1936bb['attributes'],'data':_0x1936bb['data']});const _0x32aec4=this['_getAttributeKey'](_0x1936bb);('formatBlock'==_0x1936bb['type']||_0x32aec4&&this['_isBlockAttribute'](_0x32aec4))&&(_0x3250d9=this['_model']['createPositionBefore'](_0x3250d9['parent'])),this['_addSuggestionMarker'](_0xfec92b,_0x272729,_0x500192,this['_model']['createRange'](_0x3250d9,_0x402837));}['_findSuggestions'](_0x37a7fb,_0x2fbdd3=null){const _0x43de25=[],_0x19d2dc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x37a7fb)||(_0x37a7fb=[_0x37a7fb]);for(const _0x5c11f3 of this['getSuggestions']()){if(!_0x5c11f3['isInContent'])continue;if(_0x2fbdd3&&_0x5c11f3['type']!=_0x2fbdd3)continue;let _0x375603=!0x1;for(const _0x333b90 of _0x5c11f3['getRanges']()){for(const _0x26060c of _0x37a7fb){const _0x304bf7=_0x26060c['start']['isEqual'](_0x333b90['end'])||_0x26060c['end']['isEqual'](_0x333b90['start']);if(_0x304bf7||_0x26060c['getIntersection'](_0x333b90)){const _0x2d8acc=_0x26060c['containsRange'](_0x333b90)&&Kt(this['_model']['schema'],_0x333b90['start'],_0x26060c),_0x479e06=_0x333b90['containsRange'](_0x26060c)&&Kt(this['_model']['schema'],_0x26060c['start'],_0x333b90);_0x43de25['push']({'suggestion':_0x5c11f3,'meta':{'isOwn':_0x19d2dc==_0x5c11f3['author'],'isNextTo':_0x304bf7,'isInsideObject':_0x2d8acc,'containsRangeInObject':_0x479e06}}),_0x375603=!0x0;break;}}if(_0x375603)break;}}return _0x43de25;}['_addSuggestionMarker'](_0x2adb63,_0x34e0ea,_0x37ce5e,_0x420cb0,_0x2784ef){this['_model']['change'](_0x4a24f5=>{let _0x29b24d='suggestion:'+_0x2adb63+':'+_0x34e0ea+':'+_0x37ce5e;_0x2784ef&&(_0x29b24d=_0x29b24d+':'+_0x2784ef),_0x4a24f5['addMarker'](_0x29b24d,{'range':_0x420cb0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x32efa0){const _0x3fd302=_0x32efa0['previous'],_0x3a3bd9=_0x32efa0['next'];_0x32efa0['previous']=null,_0x32efa0['next']=null,null!=_0x3fd302&&_0x3fd302['next']==_0x32efa0&&(_0x3fd302['next']=_0x3a3bd9),null!=_0x3a3bd9&&_0x3a3bd9['previous']==_0x32efa0&&(_0x3a3bd9['previous']=_0x3fd302),'ready'==this['_suggestionState']['get'](_0x32efa0)&&(this['_suggestionState']['set'](_0x32efa0,'removed'),this['fire']('suggestionUnloaded',_0x32efa0,_0x3fd302,_0x3a3bd9));}['_setSuggestionData'](_0x1956c3){const _0xb573=_0x1956c3['id'],_0x4ece0f=this['addSuggestionData'](_0x1956c3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x402dee=this['editor']['plugins']['get']('PendingActions'),_0x27e297=_0x4ece0f['hasComments'],_0x2115ac=_0x4ece0f['subType']?_0x4ece0f['type']+':'+_0x4ece0f['subType']:_0x4ece0f['type'],_0x49808f=this['editor']['locale'],_0x4a500f=_0x402dee['add'](o(_0x49808f,'PENDING_ACTION_SUGGESTION')),_0x443843={'id':_0xb573,'type':_0x2115ac,'hasComments':_0x27e297,'data':_0x1956c3['data']||null,'originalSuggestionId':_0x1956c3['originalSuggestionId']||null,'attributes':_0x4ece0f['attributes']};this['_adapter']['addSuggestion'](_0x443843)['then'](_0x5ca590=>{_0x4ece0f['_saved']=!0x0,_0x402dee['remove'](_0x4a500f),_0x5ca590&&_0x5ca590['createdAt']&&(this['_suggestions']['get'](_0xb573)['createdAt']=_0x5ca590['createdAt']);})['catch'](_0x4915f4=>{throw _0x508cdd('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4ece0f['discard']();}),_0x4ece0f['stopListening'](),this['_suggestions']['delete'](_0x4ece0f['id']),this['_suggestionState']['delete'](_0x4ece0f),_0x4915f4;});}return _0x4ece0f;}['_isBlockAttribute'](_0x26ff26){return this['_blockAttributeKeys']['has'](_0x26ff26);}['_isInlineAttribute'](_0x53d756){return this['_inlineAttributeKeys']['has'](_0x53d756);}['_updateSuggestionData'](_0x17d7db,_0x1fc498){const _0x4c32ab=this['editor']['plugins']['get']('PendingActions'),_0x459597=this['getSuggestion'](_0x17d7db);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x459597['_saved']){const _0x490e10=_0x4c32ab['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x17d7db,_0x1fc498)['then'](()=>{_0x4c32ab['remove'](_0x490e10);});}else _0x459597['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x17d7db,_0x1fc498);});}}['_getSuggestionData'](_0x3dff7f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x515288('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3dff7f);}['_handleNewSuggestionMarker'](_0x3b35b4){const {id:_0x2a525a,type:_0x1b39f1,subType:_0x573cb6,authorId:_0x49d097}=this['_splitMarkerName'](_0x3b35b4),_0x3e4b90=this['_suggestions']['get'](_0x2a525a)||this['_createSuggestion'](_0x1b39f1,_0x573cb6,_0x2a525a,_0x49d097,{});switch(this['_checkSuggestionCorrectness'](_0x3e4b90,_0x1b39f1,_0x573cb6,_0x49d097),this['_suggestionState']['get'](_0x3e4b90)){case'notReady':this['_getSuggestionData'](_0x2a525a)['then'](_0x2ab7c9=>{let _0x2ea73b=Promise['resolve']();_0x2ab7c9['hasComments']&&(_0x2ea73b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2a525a})),_0x2ea73b['then'](()=>{this['addSuggestionData'](_0x2ab7c9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3e4b90,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2a525a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3e4b90,'ready'),this['fire']('suggestionLoaded',_0x3e4b90);break;case'ready':this['fire']('suggestionChanged',_0x3e4b90);}return _0x3e4b90['addMarkerName'](_0x3b35b4),_0x3e4b90;}['_refreshSuggestionsChain'](_0x17ffb1){const _0x35af9a=Array['from'](_0x17ffb1),_0x5e7bbc=_0x35af9a['filter'](_0x4ca1a7=>'attribute'==_0x4ca1a7['type']);this['_refreshAttributeSuggestionsChain'](_0x5e7bbc);const _0x40e4cd=_0x35af9a['filter'](_0x4e7473=>!_0x4e7473['isMultiRange']&&'attribute'!=_0x4e7473['type']),_0x2fd4b5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x127c62=>!_0x127c62['isMultiRange']&&'attribute'!=_0x127c62['type']),_0x41dcb0=_0x2fd4b5['filter'](_0x3da4bd=>!_0x17ffb1['has'](_0x3da4bd)),_0x23a68f=new Map(_0x2fd4b5['map'](_0x58cfae=>[_0x58cfae,this['_suggestionFactory']['getSuggestionCallback'](_0x58cfae['type'],_0x58cfae['subType'],'chain')])),_0x55d3a9=new Map(_0x2fd4b5['map'](_0x1e54fe=>[_0x1e54fe,_0x1e54fe['getFirstRange']()])),_0x2eacb0=new Set(),_0x142910=new Set();for(let _0x4f9e14=0x0;_0x4f9e14<_0x40e4cd['length'];_0x4f9e14++)_0x57b93d(_0x40e4cd[_0x4f9e14],_0x40e4cd,_0x4f9e14+0x1);for(let _0x22beff=0x0;_0x22beff<_0x40e4cd['length'];_0x22beff++)_0x57b93d(_0x40e4cd[_0x22beff],_0x41dcb0,0x0);const _0x3d8a04=new Set();for(let _0x4bd74e=0x0;_0x4bd74e<_0x40e4cd['length'];_0x4bd74e++){const _0x185395=_0x40e4cd[_0x4bd74e];!_0x142910['has'](_0x185395)&&_0x185395['previous']&&(_0x3d8a04['add'](_0x185395['previous']),_0x185395['previous']['next']===_0x185395&&(_0x185395['previous']['next']=null),_0x185395['previous']=null),!_0x2eacb0['has'](_0x185395)&&_0x185395['next']&&(_0x3d8a04['add'](_0x185395['next']),_0x185395['next']['previous']===_0x185395&&(_0x185395['next']['previous']=null),_0x185395['next']=null);}function _0x57b93d(_0x264920,_0x491840,_0x12a686){for(let _0x117b86=_0x12a686;_0x117b86<_0x491840['length'];_0x117b86++){const _0x7b6093=_0x2aa509(_0x264920,_0x491840[_0x117b86]);_0x7b6093&&(_0x7b6093[0x0]['next']=_0x7b6093[0x1],_0x7b6093[0x1]['previous']=_0x7b6093[0x0],_0x2eacb0['add'](_0x7b6093[0x0]),_0x142910['add'](_0x7b6093[0x1]));}}function _0x2aa509(_0xd94b0b,_0x7e9a53){if(_0xd94b0b['author']['id']!==_0x7e9a53['author']['id'])return null;const _0x44e4ab=_0x23a68f['get'](_0xd94b0b)(_0xd94b0b,_0x7e9a53,_0x55d3a9['get'](_0xd94b0b),_0x55d3a9['get'](_0x7e9a53));if(!_0x44e4ab)return null;return _0x23a68f['get'](_0x7e9a53)(_0xd94b0b,_0x7e9a53,_0x55d3a9['get'](_0xd94b0b),_0x55d3a9['get'](_0x7e9a53))?_0x44e4ab[0x1]['commentThread']&&_0x44e4ab[0x1]['commentThread']['length']?null:_0x44e4ab:null;}_0x3d8a04['size']&&this['_refreshSuggestionsChain'](_0x3d8a04);}['_refreshAttributeSuggestionsChain'](_0x3269e9){if(0x0==_0x3269e9['length'])return;const _0x2eda16=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5069b2=>'attribute'==_0x5069b2['type']&&_0x5069b2['_isDataLoaded']),_0x3df339=[],_0x170e97=new Map();for(const _0x332551 of _0x2eda16){const _0x181e77=_0x318d41(_0x332551['attributes']);_0x170e97['has'](_0x181e77)||(_0x170e97['set'](_0x181e77,_0x3df339['length']),_0x3df339['push']([]));const _0x31cc91=_0x170e97['get'](_0x181e77);_0x3df339[_0x31cc91]['push'](_0x332551);}!(function(){_0x3df339['sort']((_0x4c1880,_0x1abd37)=>{const _0x595594=_0x4c1880[0x0]['createdAt'],_0x24d272=_0x1abd37[0x0]['createdAt'];return _0x595594==_0x24d272?_0x4c1880[0x0]['attributes']['groupId']<_0x1abd37[0x0]['attributes']['groupId']?-0x1:0x1:_0x595594<_0x24d272?-0x1:0x1;});for(const _0x3265e3 of _0x3df339)_0x3265e3['sort']((_0x2a41db,_0x547419)=>_0x2a41db['id']<_0x547419['id']?-0x1:0x1);}());for(let _0xedb490=0x0;_0xedb490<_0x3df339['length'];_0xedb490++){if(0x0==_0x3df339[_0xedb490]['length'])continue;const _0x405026=[];for(let _0x5d016f=_0xedb490+0x1;_0x5d016f<_0x3df339['length'];_0x5d016f++)0x0!=_0x3df339[_0x5d016f]['length']&&_0x44991f(_0x3df339[_0xedb490],_0x3df339[_0x5d016f])&&_0x405026['push'](_0x5d016f);for(const _0x332673 of _0x405026)_0x3df339[_0xedb490]=_0x3df339[_0xedb490]['concat'](_0x3df339[_0x332673]),_0x3df339[_0x332673]=[];}for(const _0x14575c of _0x3df339)for(let _0x21398f=0x0;_0x21398f<_0x14575c['length'];_0x21398f++){const _0x335004=_0x14575c[_0x21398f+0x1]||null;_0x14575c[_0x21398f]['next']!==_0x335004&&(_0x14575c[_0x21398f]['next']=_0x335004);}for(const _0x4b73ae of _0x3df339)for(let _0xbfb4e1=0x0;_0xbfb4e1<_0x4b73ae['length'];_0xbfb4e1++){const _0x4243c5=_0x4b73ae[_0xbfb4e1-0x1]||null;_0x4b73ae[_0xbfb4e1]['previous']!==_0x4243c5&&(_0x4b73ae[_0xbfb4e1]['previous']=_0x4243c5);}function _0x44991f(_0x4682ed,_0x515bef){if(_0x4682ed[0x0]['attributes']['groupId']!==_0x515bef[0x0]['attributes']['groupId']&&_0x4682ed[0x0]['author']!==_0x515bef[0x0]['author'])return!0x1;if(!function(_0x465f96,_0x114cb0){if(!_0x465f96['hasComments']&&!_0x114cb0['hasComments'])return!0x0;if(_0x465f96['hasComments']&&_0x114cb0['hasComments'])return!0x1;if(_0x465f96['hasComments']&&_0x114cb0['createdAt']<_0x465f96['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x114cb0['hasComments']&&_0x465f96['createdAt']<_0x114cb0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4682ed[0x0],_0x515bef[0x0]))return!0x1;const _0x526ec9=Lt(_0x4682ed[0x0]['attributes'],['groupId','trackingSessionId']),_0x811874=Lt(_0x515bef[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5cf543(_0x526ec9,_0x811874))return!0x1;if(_0x4682ed[0x0]['attributes']['groupId']==_0x515bef[0x0]['attributes']['groupId'])return!0x0;if(_0x4682ed[0x0]['attributes']['trackingSessionId']!==_0x515bef[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4682ed['every'](_0x39f79f=>_0x515bef['some'](_0x4fecd0=>_0x39f79f['getFirstRange']()['isEqual'](_0x4fecd0['getFirstRange']())))&&_0x515bef['every'](_0x46497c=>_0x4682ed['some'](_0x2a5c0a=>_0x46497c['getFirstRange']()['isEqual'](_0x2a5c0a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x43d466){const _0x5440a8=Array['from'](_0x43d466),_0x7973e9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x364215=_0x7973e9['filter'](_0x5ca519=>!_0x43d466['has'](_0x5ca519)),_0x2c7270=new Map(_0x5440a8['map'](_0x561164=>[_0x561164,this['_suggestionFactory']['getSuggestionCallback'](_0x561164['type'],_0x561164['subType'],'join')])),_0x2eea5b=new Map(_0x7973e9['map'](_0x10d791=>[_0x10d791,_0x10d791['getRanges']()]));for(let _0x41541d=0x0;_0x41541d<_0x5440a8['length'];_0x41541d++){if(_0x151210(this,_0x5440a8[_0x41541d],_0x5440a8,_0x41541d+0x1))return!0x0;}for(let _0x349cac=0x0;_0x349cac<_0x5440a8['length'];_0x349cac++){if(_0x151210(this,_0x5440a8[_0x349cac],_0x364215,0x0))return!0x0;}return!0x1;function _0x151210(_0x34f039,_0x1ef771,_0x255cbe,_0x71efb){for(let _0x2d30c6=_0x71efb;_0x2d30c6<_0x255cbe['length'];_0x2d30c6++){const _0x915f38=_0x255cbe[_0x2d30c6];if(_0x915f38['type']!==_0x1ef771['type']||_0x915f38['author']['id']!==_0x1ef771['author']['id']||_0x915f38['subType']!==_0x1ef771['subType'])continue;if(!ie(_0x1ef771,_0x915f38))continue;if('attribute'==_0x1ef771['type']&&_0x1ef771['data']['oldValue']!=_0x915f38['data']['oldValue'])continue;if('attribute'==_0x1ef771['type']&&_0x34f039['_isBlockAttribute'](_0x1ef771['data']['key']))continue;if('formatBlock'==_0x1ef771['type']){const _0x45491d=_0x34f039['editor']['model'],_0x10a00b=_0x1ef771['getContainedElement']();if(_0x10a00b&&(_0x45491d['schema']['isObject'](_0x10a00b)||_0x45491d['schema']['isLimit'](_0x10a00b)))continue;}const _0x1cd153=_0x2c7270['get'](_0x1ef771),_0x3254a0=_0x2eea5b['get'](_0x1ef771),_0x446385=_0x2eea5b['get'](_0x915f38),_0x85ccfa=_0x1ef771['commentThread']&&_0x1ef771['commentThread']['length'],_0x2773f5=_0x915f38['commentThread']&&_0x915f38['commentThread']['length'];if(!_0x85ccfa&&_0x1cd153(_0x446385,_0x3254a0))return _0x34f039['_joinSuggestions'](_0x915f38,_0x1ef771),_0x2eea5b['delete'](_0x1ef771),!0x0;if(!_0x2773f5&&_0x1cd153(_0x3254a0,_0x446385))return _0x34f039['_joinSuggestions'](_0x1ef771,_0x915f38),_0x2eea5b['delete'](_0x915f38),!0x0;}return!0x1;}}['_joinSuggestions'](_0x277e94,_0x221154){if(_0x277e94['isMultiRange']){for(const _0x10302b of _0x221154['getRanges']())_0x277e94['addRange'](_0x10302b);}else{const _0x164ff3=_0x221154['getFirstRange']()['end'];this['_setSuggestionRange'](_0x277e94,this['_model']['createRange'](_0x277e94['getFirstRange']()['start'],_0x164ff3));}_0x221154['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2d00b0,_0x7f9bf7,_0xa558cb){const _0x191d2f=_0x2d00b0['startsWith']('format')||_0x2d00b0['startsWith']('attribute')?'FORMATTING':_0x2d00b0['toUpperCase']();return o(this['editor']['locale'],_0x7f9bf7+'_'+_0x191d2f+'_SUGGESTION_ANNOUNCEMENT',_0xa558cb);}['_initAriaMarkerChangeAnnouncements'](){const _0x27a9aa=this['editor'];if(!_0x27a9aa['ui'])return;const {ariaLiveAnnouncer:_0x38ebdf}=_0x27a9aa['ui'];_0x154636(this['_model'],({left:_0x3ebf22,entered:_0x5ce460})=>{for(const _0x58d4bf of _0x3ebf22){const {group:_0x10da06,type:_0x29046e}=this['_splitMarkerName'](_0x58d4bf['name']);if('suggestion'===_0x10da06){_0x38ebdf['announce'](this['_getMarkerAnnouncementText'](_0x29046e,'LEAVE'));break;}}for(const _0x1bbd22 of _0x5ce460){const {group:_0x2b93ef,type:_0x38c81e}=this['_splitMarkerName'](_0x1bbd22['name']);if('suggestion'===_0x2b93ef){_0x38ebdf['announce'](this['_getMarkerAnnouncementText'](_0x38c81e,'ENTER',_0x465b03(_0x15f150)));break;}}});}['_processAttributeChanges'](_0x225b00){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4d18e6=this['editor'],_0x3ab8ed=_0x4d18e6['model']['document']['differ']['getChanges']();if(0x0==_0x3ab8ed['length'])return!0x1;const _0x4e482b=[],_0x9de789=_0x3ab8ed['filter'](_0xda3ea3=>'attribute'==_0xda3ea3['type']),_0x59444a=_0x3ab8ed['filter'](_0x2ae497=>'insert'==_0x2ae497['type']&&'$text'!=_0x2ae497['name']),_0x47c70e=_0x3ab8ed['filter'](_0x337556=>'remove'==_0x337556['type']&&'$text'!=_0x337556['name']);for(const _0x1d02bd of _0x9de789)_0x4e482b['push']({'key':_0x1d02bd['attributeKey'],'newValue':_0x1d02bd['attributeNewValue'],'oldValue':_0x1d02bd['attributeOldValue'],'range':Zt(_0x1d02bd['range'],_0x4d18e6['model'])});for(const _0x51632d of _0x59444a){const _0x116bdd=_0x47c70e['find'](_0x5c2a2e=>_0x5c2a2e['position']['isEqual'](_0x51632d['position']));_0x116bdd&&_0x4e482b['push']({'key':m,'newValue':_0x51632d['name'],'oldValue':_0x116bdd['name'],'range':_0x4d18e6['model']['createRangeOn'](_0x51632d['position']['nodeAfter'])});}return 0x0!=_0x4e482b['length']&&this['_reduceExistingSuggestions'](_0x225b00,_0x4e482b);}['_processAttributeSuggestions'](_0x259215){let _0x23f416=!0x1;const _0x1629a0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1bb5f6=>_0x1bb5f6['data']['newRange']&&_0x1bb5f6['name']['startsWith']('suggestion:attribute:'));for(const _0x31cfb8 of _0x1629a0){const {subType:_0x2cecc4,id:_0x5b599c}=this['_splitMarkerName'](_0x31cfb8['name']),_0x232133=_0x2cecc4['split']('|')[0x0];for(const _0x3c9eed of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3c9eed['id']!=_0x5b599c&&'attribute'==_0x3c9eed['type']&&_0x3c9eed['data']&&_0x3c9eed['data']['key']==_0x232133&&_0x3c9eed['getFirstRange']()['isIntersecting'](_0x31cfb8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3c9eed,_0x31cfb8['data']['newRange'],_0x259215),_0x23f416=!0x0);}return _0x23f416;}['recordAttributeChanges'](_0x36c1cb){this['_recordAttributeSuggestions']=!0x0,_0x36c1cb();}['_isRegisteredAttribute'](_0xe4b2ae){const _0x53398f=this['_isBlockAttribute'](_0xe4b2ae),_0x3bfcfe=this['_isInlineAttribute'](_0xe4b2ae);return _0x53398f||_0x3bfcfe;}['_reduceExistingSuggestions'](_0x3006b8,_0x311c46){if(0x0==_0x311c46['length'])return!0x1;let _0x518c38=!0x1;for(const _0x10b2c of _0x311c46){const _0x2fab3c=this['_findSuggestions'](_0x10b2c['range'],'attribute')['filter'](_0x4424b9=>!_0x4424b9['meta']['isNextTo'])['map'](_0x4e3ba6=>_0x4e3ba6['suggestion']),_0xc8736c=_0x318d41({'newValue':_0x10b2c['newValue']});_0x2fab3c['filter'](_0x4a3bd7=>{const [_0x26def9,_0x1b15ca]=_0x4a3bd7['subType']['split']('|');return _0x26def9==_0x10b2c['key']&&_0x1b15ca!=_0xc8736c;})['forEach'](_0x27b01c=>{this['_reduceSuggestionAttributeRange'](_0x27b01c,_0x10b2c['range'],_0x3006b8),_0x518c38=!0x0;});}return _0x518c38;}['_reduceSuggestionAttributeRange'](_0x23d878,_0x5618a4,_0x2ce6c7){const _0x35bc27=_0x23d878['getFirstRange']()['getDifference'](_0x5618a4);0x0!==_0x35bc27['length']?0x1!==_0x35bc27['length']?this['_breakSuggestionMarker'](_0x23d878,_0x5618a4['start'],_0x5618a4['end']):this['_setSuggestionRange'](_0x23d878,_0x35bc27[0x0]):_0x2ce6c7['removeMarker'](_0x23d878['getFirstMarker']());}}class Jt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4c255a){this['_editor']=_0x4c255a,this['_model']=_0x4c255a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1d99e9,_0x1efb33,_0x5e3952,_0x38a20e,_0x3ce7d5,_0x13473f,_0x5b45c8){return new R(this['_model'],{'type':_0x1d99e9,'subType':_0x1efb33,'id':_0x5e3952,'originalSuggestionId':_0x5b45c8,'author':_0x38a20e,'creator':_0x38a20e,'attributes':_0x3ce7d5,'onAttributesChange':_0x13473f,'onAccept':(..._0x103528)=>this['getSuggestionCallback'](_0x1d99e9,_0x1efb33,'accept')(..._0x103528),'onDiscard':(..._0x393d13)=>this['getSuggestionCallback'](_0x1d99e9,_0x1efb33,'discard')(..._0x393d13)});}['registerCustomCallback'](_0x219232,_0xf58bb0,_0xc8046f,_0x41020c){const _0x47af3d=_0x219232+':'+_0xf58bb0+':'+_0xc8046f;this['_customCallbacks']['set'](_0x47af3d,_0x41020c);}['getSuggestionCallback'](_0x5e87bb,_0x4edcc1,_0x41af3d){const _0x195c8b=_0x5e87bb+':'+_0x4edcc1+':'+_0x41af3d;return this['_customCallbacks']['get'](_0x195c8b)||this['_defaultCallbacks']['get'](_0x5e87bb+':'+_0x41af3d);}['_registerDefaultCallbacks'](){const _0x124944=()=>!0x1,_0x290f9f=_0x135413=>{_0x135413['sort']((_0x3696b3,_0x13ea40)=>_0x3696b3['start']['isBefore'](_0x13ea40['start'])?0x1:-0x1),this['_model']['change'](_0xb3d244=>{for(const _0x372049 of _0x135413){let _0x3f5d7b;_0x3f5d7b=_0x372049['end']['isAtEnd']&&_0x372049['end']['parent']==_0x372049['start']['nodeAfter']?_0xb3d244['createSelection'](_0x372049['start']['nodeAfter'],'on'):_0xb3d244['createSelection'](_0x372049),this['_model']['deleteContent'](_0x3f5d7b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x233763=(_0x36b73d,_0x10d562)=>{_0x10d562&&this['_model']['change'](_0x40f48c=>{const {commandName:_0xd5877f,commandParams:_0x1aea7f=[]}=_0x10d562,_0x50a75a=_0x36b73d['map'](_0x4e6094=>(Ht(_0x4e6094)&&(_0x4e6094=this['_model']['createRange'](_0x4e6094['end'])),_0x4e6094))['filter'](_0x1609e0=>'$graveyard'!==_0x1609e0['root']['rootName']);if(_0x50a75a['length']<0x1)return;const _0x5d91dd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x311c8e=>_0x2fe235['fromRange'](_0x311c8e));_0x40f48c['setSelection'](_0x50a75a);for(const _0x4adfea of this['_editor']['commands']['commands']())_0x4adfea['refresh']();_0x1aea7f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xd5877f,..._0x1aea7f);const _0x25cea7=_0x5d91dd['filter'](_0x2cbe4b=>'$graveyard'!=_0x2cbe4b['root']['rootName']);_0x25cea7['length']>0x0&&_0x40f48c['setSelection'](_0x25cea7);for(const _0x421ccb of _0x5d91dd)_0x421ccb['detach']();});},_0x4a92e1=(_0x265503,_0x4a280b)=>0x1==_0x265503['length']&&0x1==_0x4a280b['length']&&_0x265503[0x0]['end']['isEqual'](_0x4a280b[0x0]['start']),_0x3055f3=(_0x32f39b,_0x357b9a,_0x22037f,_0x12576b)=>ee(_0x32f39b,_0x357b9a,_0x22037f,_0x12576b)?[_0x32f39b,_0x357b9a]:ee(_0x357b9a,_0x32f39b,_0x12576b,_0x22037f)?[_0x357b9a,_0x32f39b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x124944),this['_defaultCallbacks']['set']('insertion:discard',_0x290f9f),this['_defaultCallbacks']['set']('insertion:join',_0x4a92e1),this['_defaultCallbacks']['set']('insertion:chain',_0x3055f3),this['_defaultCallbacks']['set']('deletion:accept',_0x290f9f),this['_defaultCallbacks']['set']('deletion:discard',_0x124944),this['_defaultCallbacks']['set']('deletion:join',_0x4a92e1),this['_defaultCallbacks']['set']('deletion:chain',_0x3055f3),this['_defaultCallbacks']['set']('formatInline:accept',_0x233763),this['_defaultCallbacks']['set']('formatInline:discard',_0x124944),this['_defaultCallbacks']['set']('formatInline:join',_0x4a92e1),this['_defaultCallbacks']['set']('formatInline:chain',_0x124944),this['_defaultCallbacks']['set']('formatBlock:accept',_0x233763),this['_defaultCallbacks']['set']('formatBlock:discard',_0x124944),this['_defaultCallbacks']['set']('formatBlock:join',_0x4a92e1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x124944),this['_defaultCallbacks']['set']('attribute:accept',_0x124944),this['_defaultCallbacks']['set']('attribute:discard',(_0x5ad8e9,_0x2d102d)=>{if(!_0x2d102d)return;const _0x5cf5cc=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x5947f0=>{if(_0x2d102d['key']==m)for(const _0x33b445 of _0x5ad8e9){const _0x2d84d8=_0x33b445['start']['nodeAfter'],_0x8923f1=_0x2d102d['oldValue'];_0x5947f0['rename'](_0x2d84d8,_0x8923f1);}else{if(_0x5cf5cc['_isBlockAttribute'](_0x2d102d['key'])){for(const _0xd4d0fc of _0x5ad8e9)void 0x0!==_0x2d102d['oldValue']?_0x5947f0['setAttribute'](_0x2d102d['key'],_0x2d102d['oldValue'],_0xd4d0fc['start']['nodeAfter']):_0x5947f0['removeAttribute'](_0x2d102d['key'],_0xd4d0fc['start']['nodeAfter']);}else{for(const _0x1632dd of _0x5ad8e9)_0x2d102d['oldValue']?_0x5947f0['setAttribute'](_0x2d102d['key'],_0x2d102d['oldValue'],_0x1632dd):_0x5947f0['removeAttribute'](_0x2d102d['key'],_0x1632dd);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4a92e1);}}function Kt(_0x571ecd,_0x561761,_0x116537){for(const _0x24cad5 of _0x561761['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x24cad5['root']==_0x24cad5)return!0x1;if(!_0x116537['containsItem'](_0x24cad5))return!0x1;if(_0x571ecd['isObject'](_0x24cad5)||_0x571ecd['isLimit'](_0x24cad5))return!0x0;}return!0x1;}function Ht(_0xa8c195){return _0xa8c195['end']['parent']==_0xa8c195['start']['nodeAfter']&&_0xa8c195['end']['isAtStart'];}function Wt(_0x1ad5d2,_0x379039,_0x3676a2,_0x17c591){const _0x3f656a=_0x213d34=>!_0x213d34['item']['is']('$textProxy')&&!_0x17c591['isObject'](_0x213d34['item']),_0x3d2cb6=_0x1ad5d2['start']['getLastMatchingPosition'](_0x3f656a),_0x7f1ade=_0x1ad5d2['end']['getLastMatchingPosition'](_0x3f656a,{'direction':'backward'});return(!_0x1ad5d2['start']['isEqual'](_0x3d2cb6)||!_0x1ad5d2['end']['isEqual'](_0x7f1ade))&&(_0x3d2cb6['isBefore'](_0x7f1ade)?_0x3676a2['updateMarker'](_0x379039,{'range':_0x3676a2['createRange'](_0x3d2cb6,_0x7f1ade)}):_0x3676a2['removeMarker'](_0x379039),!0x0);}function qt(_0x49d95a){return _0x318d41(_0x49d95a);}function zt(_0x51d924){const _0x5eb758=_0x51d924['start']['nodeAfter'];return _0x5eb758&&_0x5eb758['is']('element');}function Qt(_0x5d27ff){return Ht(_0x5d27ff)||function(_0x30df16){return _0x30df16['start']['parent']==_0x30df16['end']['nodeBefore']&&_0x30df16['start']['isAtEnd'];}(_0x5d27ff);}function Xt(_0xe60885,_0x205a9b){try{const _0x3f0b50=_0xe60885['getRange']();for(const _0x5360cf of _0x205a9b)if(_0xe60885!==_0x5360cf&&_0x3f0b50&&_0x3f0b50['isIntersecting'](_0x5360cf['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Yt(_0x5c05f3,_0x40fe83){const _0x1ec134=_0x5c05f3['end']['nodeBefore'];if(_0x1ec134&&_0x1ec134['is']('element')&&_0x40fe83['schema']['isBlock'](_0x1ec134)&&!_0x40fe83['schema']['isObject'](_0x1ec134)){const _0x2360ce=_0x40fe83['createPositionAt'](_0x1ec134,'end');return _0x40fe83['createRange'](_0x5c05f3['start'],_0x2360ce);}return _0x5c05f3;}function Zt(_0x4c48d1,_0x57a91a){return null==_0x4c48d1['end']['nodeBefore']&&_0x4c48d1['end']['parent']==_0x4c48d1['start']['nodeAfter']?te(_0x4c48d1['start']['nodeAfter'],_0x57a91a):_0x4c48d1;}function te(_0x406211,_0xaf8a96){const _0x473357=_0xaf8a96['schema']['isObject'](_0x406211)||_0xaf8a96['schema']['isSelectable'](_0x406211);return _0xaf8a96['createRange'](_0xaf8a96['createPositionAt'](_0x406211,'before'),_0x473357?_0xaf8a96['createPositionAfter'](_0x406211):_0xaf8a96['createPositionAt'](_0x406211,'end'));}function ee(_0x2cdf46,_0x43a052,_0x321ecb,_0x4d8432){return!!ie(_0x2cdf46,_0x43a052)&&_0x321ecb['end']['isEqual'](_0x4d8432['start']);}function ie(_0x7c3172,_0x285860){if(!_0x7c3172['_isDataLoaded']||!_0x285860['_isDataLoaded'])return!0x1;const _0x120260=new Set(Object['keys'](_0x7c3172['attributes'])),_0x309d59=new Set(Object['keys'](_0x285860['attributes']));if(_0x120260['delete']('groupId'),_0x309d59['delete']('groupId'),0x0==_0x120260['size']&&0x0==_0x309d59['size'])return!0x0;if(_0x120260['size']!=_0x309d59['size'])return!0x1;const _0x252ddb={..._0x7c3172['attributes']},_0x58ea21={..._0x285860['attributes']};return delete _0x252ddb['groupId'],delete _0x58ea21['groupId'],JSON['stringify'](_0x252ddb)==JSON['stringify'](_0x58ea21);}function ne(_0x2b32fb,_0x196a77){const _0x16f2f4=se(_0x2b32fb['attributes']),_0x3940f2=se(_0x196a77);if(!_0x2b32fb['_isDataLoaded'])return!0x1;for(const _0x206620 of Object['keys'](_0x3940f2))if(!_0x5cf543(_0x16f2f4[_0x206620],_0x3940f2[_0x206620]))return!0x1;return!0x0;}function se(_0x236ab6){const _0xf5dfdf=Object['assign']({},_0x236ab6);return delete _0xf5dfdf['skipNestingCheck'],delete _0xf5dfdf['tablePasteChainId'],_0xf5dfdf;}function oe(_0x31db39){return _0x31db39['split']('|')[0x0];}class Te extends/* #__PURE__ -- @preserve */
26
- _0x5100d7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x585221,_0x5416a9,_0x1f0a75,_0x46dd37){super(),this['model']=_0x5416a9,this['view']=_0x1f0a75,this['commentThreadController']=_0x46dd37,this['_editor']=_0x585221,this['_acceptCommand']=_0x585221['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x585221['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x236c27,_0x71382b)=>_0x236c27||_0x71382b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x108b17=>_0x108b17&&this['_editor']['model']['canEditAt'](_0x5416a9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3487cd=>_0x3487cd&&this['_editor']['model']['canEditAt'](_0x5416a9['getRanges']())),this['_pendingAction']=null,_0x1f0a75['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1f0a75,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1f0a75,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1f0a75,'change:isDirty',()=>{_0x1f0a75['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 _0x9d6b2c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x9d6b2c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x1a95f3{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5f01d5,_0x197f97,_0x19b7d9,_0x3263f2){super(_0x5f01d5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x367c93(_0x5f01d5,o(_0x5f01d5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x197f97['authoredAt']),this['bind']('authoredAt')['to'](_0x197f97),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',_0x197f97,'authoredAt',this,'descriptionParts',(_0x48ee09,_0x4ecd42,_0x1c75c2)=>{const _0x346a51=_0x1c75c2['map'](_0x8d1852=>ls(_0x8d1852['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x48ee09-0x1,_0x197f97['author']['name'],_0x4ecd42?_0x3263f2['formatDateTime'](_0x4ecd42):'',new DOMParser()['parseFromString'](_0x346a51,'text/html')['body']['textContent']]);}),this['focusables']=new _0xc18b02(),this['focusTracker']=new _0x3b3986(),this['keystrokes']=new _0x182121(),this['focusCycler']=new _0x225e9e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5b9dd2=>_0x5b9dd2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x197f97,this['_localUser']=_0x19b7d9,this['_config']=_0x3263f2,_0x3263f2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x466ce5(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x39b38e}=this['_config'];this['commentsListView']=new _0x39b38e(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',_0x42e9b9=>_0x42e9b9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x513c4b,_0x8fd01e)=>_0x513c4b||!!_0x8fd01e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x37dffd}=this['_config'],_0x5105c9=new _0x37dffd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2c26d5=_0x5105c9['commentInputView'];return _0x5105c9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2c26d5,'value',(_0x524726,_0x42f981,_0x243e4d)=>!!_0x243e4d||_0x524726&&!_0x42f981),_0x2c26d5['on']('submit',(_0x450d2d,_0x45c18a)=>{this['fire']('addComment',_0x45c18a),_0x2c26d5['editor']['setData']('');}),_0x2c26d5['on']('cancel',()=>this['focus']()),_0x2c26d5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5105c9;}}class Le extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x16b31e,_0x5e9399,_0x322393,_0x50b44f){super(_0x16b31e,_0x5e9399,_0x322393,_0x50b44f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xb40339=>_0xb40339&&_0xb40339[0x0]?_0xb40339[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x92e6f8,_0x2634c8)=>{let _0x553b79='';for(const _0x4520c4 of _0x92e6f8)_0x553b79+='<p>'+ls(_0x4520c4['content'],_0x4520c4['color'])+'</p>';return _0x2634c8?_0x553b79:_0x461d21(_0x553b79,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x50b44f['SuggestionView'](_0x16b31e,_0x5e9399,{'formatDateTime':_0x50b44f['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 _0x4f52ee=this['bindTemplate'],_0x163ac7=[this['suggestionView']];return this['commentsListView']&&_0x163ac7['push'](this['commentsListView']),this['commentThreadInputView']&&_0x163ac7['push'](this['commentThreadInputView']),_0x163ac7['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4f52ee['if']('isActive','ck-suggestion-wrapper--active'),_0x4f52ee['to']('type',_0x3695e7=>'ck-suggestion-'+_0x3695e7),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':_0x4f52ee['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x163ac7};}['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 ve extends _0x1a95f3{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x187caf,_0x514974,_0x416524){super(_0x187caf),this['_model']=_0x514974,this['_config']=_0x416524,this['set']('description',''),this['bind']('authoredAt')['to'](_0x514974),this['acceptButton']=this['_createButton'](o(_0x187caf,'Accept\x20suggestion'),_0x5e26cb,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x187caf,'Discard\x20suggestion'),_0x19f008,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1a6119(_0x187caf,_0x514974['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xc18b02([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3b3986(),this['keystrokes']=new _0x182121(),this['focusCycler']=new _0x225e9e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1b2c3d=>_0x1b2c3d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x10ea2b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x10ea2b['innerHTML']=this['description'],this['on']('change:description',(_0xe551ea,_0x8c2076,_0x915a2)=>{_0x10ea2b['innerHTML']=_0x915a2;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x249944=this['bindTemplate'],_0x44397b=[{'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':_0x249944['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x249944['to']('authoredAt',_0x5143ce=>this['_config']['formatDateTime'](_0x5143ce))}]}]},{'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']&&_0x44397b['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':_0x44397b}]};}['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'](_0x258070,_0xa97be6,_0x163eb6,_0x4f0965,_0x37dc09){const _0x3c4793=new _0x1c6c78(this['locale']);return _0x3c4793['set']({'label':_0x258070,'icon':_0xa97be6,'tooltip':!0x0,'tooltipPosition':_0x37dc09}),_0x3c4793['extendTemplate']({'attributes':{'class':_0x163eb6}}),_0x3c4793['on']('execute',()=>{this['fire'](_0x4f0965,this['_model']['id']);}),_0x3c4793;}['_setupKeyboardNavigation'](){const _0x3bccfa=this['element'];this['keystrokes']['listenTo'](_0x3bccfa);for(const _0x3bf5c2 of this['focusables'])this['focusTracker']['add'](_0x3bf5c2['element']),this['keystrokes']['listenTo'](_0x3bf5c2['element']);this['keystrokes']['set']('enter',(_0x4e7d45,_0x169b6a)=>{_0x3bccfa===_0x4e7d45['target']&&(this['focusCycler']['focusFirst'](),_0x169b6a());}),this['keystrokes']['set']('esc',(_0x556264,_0x514771)=>{_0x3bccfa!==_0x556264['target']&&(this['focus'](),_0x514771());});}}class u extends _0x1ac4a7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x53c5da,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5898ab){super(_0x5898ab),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2f8acb=this['editor']['config'];_0x2f8acb['define']('trackChanges.SuggestionThreadView',Le),_0x2f8acb['define']('trackChanges.SuggestionView',ve),_0x2f8acb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2f8acb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5f20e4,_0x7a78d0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xf8f54e,_0x4e3cad]of this['_handleControllerBuffer']){const _0x1fa933=this['_suggestionToController']['has'](_0xf8f54e);_0x1fa933||_0x4e3cad?_0x1fa933&&_0x4e3cad&&this['_destroyController'](_0xf8f54e):this['_initializeController'](_0xf8f54e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5f20e4,_0x7a78d0);}['init'](){const _0x2ecfaa=this['editor'],_0x2d8ee7=_0x2ecfaa['plugins']['get']('TrackChangesEditing'),_0x59038b=_0x2ecfaa['plugins']['get']('Annotations'),_0x2b663d=_0x2ecfaa['plugins']['get']('EditorAnnotations'),_0x3a67de=_0x2ecfaa['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2b663d['addSourceCollector'](()=>{const _0x16a3a8=[];for(const [_0x297f33,_0x52ef29]of Array['from'](this['_suggestionToController'])){const _0x32b8e0=_0x297f33['getAllAdjacentSuggestions'](),_0x173654=[];for(const _0x2d0cf3 of _0x32b8e0){if(!_0x2d0cf3['isInContent'])continue;if(_0x2d0cf3['isMultiRange']){_0x173654['push'](..._0x2d0cf3['getRanges']());continue;}const _0xe7c6d8=_0x2d0cf3['getFirstRange']();if(_0x173654['length']>0x0){const _0x4ae7bc=_0x173654[0x0]['getJoined'](_0xe7c6d8);if(_0x4ae7bc){_0x173654[0x0]=_0x4ae7bc;continue;}}_0x173654['push'](_0xe7c6d8);}_0x16a3a8['push']([_0x52ef29['view'],_0x173654]);}return _0x16a3a8;}),this['listenTo'](_0x2d8ee7,'suggestionLoaded',(_0x41aece,_0x5d6f1b)=>{this['listenTo'](_0x5d6f1b,'change:previous',(_0x18a019,_0x402023,_0x3cf91b,_0x500274)=>{_0x5d6f1b['isInContent']&&(null==_0x3cf91b?(this['_updateController'](_0x500274['head']),this['_handleSuggestionControllerDelayed'](_0x5d6f1b,!0x1)):(this['_updateController'](_0x3cf91b['head']),null==_0x500274&&this['_handleSuggestionControllerDelayed'](_0x5d6f1b,!0x0)));}),null!==_0x5d6f1b['previous']?this['_updateController'](_0x5d6f1b['head']):this['_handleSuggestionControllerDelayed'](_0x5d6f1b,!0x1);}),this['listenTo'](_0x2d8ee7,'suggestionUnloaded',(_0x597356,_0x24d8f2,_0x3b9350)=>{this['stopListening'](_0x24d8f2,'change:previous'),this['_handleControllerBuffer']['delete'](_0x24d8f2),this['_suggestionToController']['has'](_0x24d8f2)&&this['_destroyController'](_0x24d8f2),_0x3b9350&&this['_updateController'](_0x3b9350['head']);}),this['listenTo'](_0x2d8ee7,'suggestionChanged',(_0x3e36be,_0x282d77)=>{this['_updateController'](_0x282d77);}),this['listenTo'](_0x59038b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3a67de,'addComment',(_0x5176da,{threadId:_0x516cfd,isFromAdapter:_0x5b7151})=>{if(_0x5b7151||!_0x2d8ee7['hasSuggestion'](_0x516cfd))return;const _0x2177bb=_0x2d8ee7['getSuggestion'](_0x516cfd);this['_suggestionToController']['get'](_0x2177bb)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a3dac=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe74b55;for(const _0x5ad3cf in _0x3a3dac){const _0x44e861=_0x5ad3cf,_0x310283=_0x3a3dac[_0x44e861];if('trackChangesLicenseKeyValid'==_0x310283||'trackChangesLicenseKeyInvalid'==_0x310283||'trackChangesLicenseKeyExpired'==_0x310283||'trackChangesLicenseKeyDomainLimit'==_0x310283||'trackChangesLicenseKeyNotAllowed'==_0x310283||'trackChangesLicenseKeyEvaluationLimit'==_0x310283||'trackChangesLicenseKeyTrialLimit'==_0x310283||'trackChangesLicenseKeyUsageLimit'==_0x310283){delete _0x3a3dac[_0x44e861],_0xe74b55=_0x310283,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xe74b55&&_0x3a3dac['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xe74b55&&_0x3a3dac['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xe74b55&&_0x3a3dac['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xe74b55&&_0x3a3dac['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xe74b55&&_0x3a3dac['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xe74b55&&_0x3a3dac['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xe74b55&&_0x3a3dac['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x55bdaf){const _0x44caaf=this['_suggestionToController']['get'](_0x55bdaf);if(!_0x44caaf)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x44caaf['view'])||null;}['getSuggestionForAnnotation'](_0x1a0be1){const _0x428ad4=this['_viewToController']['get'](_0x1a0be1['innerView']);return _0x428ad4?_0x428ad4['model']:null;}['_refreshActiveMarkers'](){const _0xe94233=this['editor']['plugins']['get']('Annotations'),_0x52a879=this['editor']['plugins']['get']('TrackChangesEditing'),_0x581543=Array['from'](_0xe94233['activeAnnotations'],_0x555a27=>_0x555a27['innerView'])['filter'](_0x2c9123=>this['_viewToController']['has'](_0x2c9123)),_0x3ee3d8=[];for(const _0x130c93 of _0x581543){const _0x408dd1=this['_viewToController']['get'](_0x130c93)['model']['getAllAdjacentSuggestions']();_0x3ee3d8['push'](..._0x408dd1['reduce']((_0x460906,_0x4a2478)=>[..._0x460906,..._0x4a2478['getMarkerNames']()],[]));}_0x52a879['activeMarkers']=_0x3ee3d8;}['_addUIComponentsToFactory'](){const _0x33b995=this['editor'],_0x310dd=_0x33b995['locale'],_0x450ee9=o(_0x310dd,'Track\x20changes'),_0x2d8668=new _0x5ca53d([{'type':'switchbutton','model':new _0x1e1468({'withText':!0x0,'isToggleable':!0x0,'label':_0x450ee9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1e1468({'withText':!0x0,'label':o(_0x310dd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1e1468({'withText':!0x0,'label':o(_0x310dd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1e1468({'withText':!0x0,'label':o(_0x310dd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1e1468({'withText':!0x0,'label':o(_0x310dd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x33b995['plugins']['has']('TrackChangesPreview')&&_0x2d8668['addMany']([{'type':'separator'},{'type':'button','model':new _0x1e1468({'withText':!0x0,'label':o(_0x310dd,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x581280 of _0x2d8668)if(xe(_0x581280)){const _0x3762a6=_0x33b995['commands']['get'](_0x581280['model']['commandName']);_0x581280['model']['bind']('isOn','isEnabled')['to'](_0x3762a6,'value','isEnabled');}_0x33b995['ui']['componentFactory']['add']('trackChanges',_0x207506=>this['_createToolbarButton'](_0x207506,_0x2d8668,_0x450ee9)),_0x33b995['ui']['componentFactory']['add']('menuBar:trackChanges',_0x40afaa=>this['_createMenuBarMenu'](_0x40afaa,_0x2d8668,_0x450ee9));}['_createToolbarButton'](_0x11a3e1,_0x1ccaf0,_0x2d111e){const _0x2290f2=_0x45be79(_0x11a3e1,_0x7670d3),_0x8a644a=this['editor']['commands']['get']('trackChanges');_0x2290f2['buttonView']['set']({'tooltip':_0x2d111e,'label':_0x2d111e,'icon':_0x5d5088}),_0x2290f2['buttonView']['bind']('isOn')['to'](_0x8a644a,'value'),_0x2290f2['buttonView']['on']('execute',()=>{_0x8a644a['execute'](),this['editor']['editing']['view']['focus']();}),_0x2d394f(_0x2290f2,_0x1ccaf0,{'role':'menu'});const _0x587cba=[];for(const _0x174cf0 of _0x1ccaf0)xe(_0x174cf0)&&_0x587cba['push'](this['editor']['commands']['get'](_0x174cf0['model']['commandName']));const _0x34fb7b=_0x2290f2['buttonView'];return _0x34fb7b['actionView']['unbind']('isEnabled'),_0x34fb7b['arrowView']['unbind']('isEnabled'),_0x34fb7b['actionView']['bind']('isEnabled')['to'](_0x8a644a,'isEnabled'),_0x34fb7b['arrowView']['bind']('isEnabled')['toMany'](_0x587cba,'isEnabled',(..._0x47fa3d)=>_0x47fa3d['some'](_0x463ce9=>_0x463ce9)),_0x2290f2['on']('execute',_0x29be0f=>{this['editor']['execute'](_0x29be0f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2290f2;}['_createMenuBarMenu'](_0x3b8c54,_0x44005c,_0xd670ed){const _0x1ac825=new _0x5e2c03(_0x3b8c54),_0x2d4fbc=this['editor']['commands']['get']('trackChanges');_0x1ac825['buttonView']['set']({'label':_0xd670ed,'icon':_0x5d5088});const _0x1759fd=new _0x180c07(_0x3b8c54);for(const _0xbda843 of _0x44005c){if('separator'==_0xbda843['type']){_0x1759fd['items']['add'](new _0x1f0330(_0x3b8c54));continue;}const _0x105f98=new _0x5bdd5b(_0x3b8c54,_0x1ac825),_0x1e23b2=new _0xbcb65(_0x3b8c54),_0x2331a8=_0xbda843['model'];_0x1e23b2['bind'](...Object['keys'](_0x2331a8))['to'](_0x2331a8),_0x1e23b2['delegate']('execute')['to'](_0x1ac825),_0x1e23b2['on']('execute',()=>{this['editor']['execute'](_0x2331a8['commandName']),this['editor']['editing']['view']['focus']();}),_0x105f98['children']['add'](_0x1e23b2),_0x1759fd['items']['add'](_0x105f98);}return _0x1ac825['bind']('isEnabled')['to'](_0x2d4fbc,'isEnabled'),_0x1ac825['panelView']['children']['add'](_0x1759fd),_0x1ac825;}['_initializeController'](_0x5d3c7b){const _0x3cb75d=this['editor'],_0x57a480=_0x3cb75d['config'],_0x4d75ad=_0x3cb75d['plugins']['get']('Annotations'),_0x491c4c=_0x3cb75d['plugins']['get']('CommentsRepository'),_0x5bf5b8=_0x3cb75d['plugins']['get']('EditorAnnotations'),_0x28a59a=_0x3cb75d['plugins']['get'](_0x53c5da)['me'],_0x50181c=_0x57a480['get']('trackChanges')['SuggestionThreadView'],_0x55f182=_0x57a480['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x47d9d9,CommentThreadInputView:_0xd6ea8b}=_0x3cb75d['plugins']['get']('CommentsUI');let _0x35f5aa,_0x122aa8,_0x385f27;this['_annotationViews']['has'](_0x5d3c7b['id'])?(_0x122aa8=this['_annotationViews']['get'](_0x5d3c7b['id']),_0x35f5aa=_0x122aa8['mainView']):(_0x35f5aa=new _0x50181c(_0x3cb75d['locale'],_0x5d3c7b,_0x28a59a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x57a480['get']('comments.editorConfig'),'licenseKey':_0x57a480['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x57a480['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x57a480['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x57a480['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x24eb5b(_0x57a480['get']('locale'),_0x3cb75d['locale']),'CommentView':_0x57a480['get']('comments')['CommentView'],'CommentsListView':_0x47d9d9,'CommentThreadInputView':_0xd6ea8b,'SuggestionView':_0x55f182}),_0x35f5aa['suggestionView']['acceptButton']['on']('execute',()=>{_0x3cb75d['editing']['view']['focus']();}),_0x35f5aa['suggestionView']['discardButton']['on']('execute',()=>{_0x3cb75d['editing']['view']['focus']();}),_0x122aa8=_0x4d75ad['createAnnotationView'](this['editor']['locale'],_0x35f5aa),_0x122aa8['bind']('isDirty')['to'](_0x35f5aa,'isDirty'),_0x122aa8['bind']('length')['to'](_0x35f5aa),_0x122aa8['bind']('type')['to'](_0x35f5aa,'type',_0x2dab8f=>'suggestion-'+_0x2dab8f),_0x35f5aa['on']('escape',()=>{_0x385f27['fire']('escape');}),this['_annotationViews']['set'](_0x5d3c7b['id'],_0x122aa8));const _0x32e2ab=_0x491c4c['createCommentThreadController'](_0x5d3c7b['commentThread'],_0x35f5aa),_0x168e16=new Te(_0x3cb75d,_0x5d3c7b,_0x35f5aa,_0x32e2ab),_0x26bb83=_0x5d3c7b['getAllAdjacentSuggestions']()['filter'](_0x3182d6=>_0x3182d6['isInContent']);_0x35f5aa['descriptionParts']=_0x3cb75d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x26bb83),this['_suggestionToController']['set'](_0x5d3c7b,_0x168e16),this['_viewToController']['set'](_0x35f5aa,_0x168e16);const _0x108dc6=()=>{const _0x3372f7=[],_0x256228=_0x5d3c7b['getAllAdjacentSuggestions']()['filter'](_0x4aa653=>_0x4aa653['isInContent']);for(const _0x397988 of _0x256228)_0x3372f7['push'](..._0x397988['getMarkers']());return _0x203780(_0x3cb75d['editing'],_0x3372f7);};_0x385f27=_0x4d75ad['createAnnotation']({'view':_0x122aa8,'target':_0x108dc6,'type':()=>'suggestion-'+_0x168e16['view']['type'],'isVisible':!!_0x108dc6()}),_0x491c4c['_bindAnnotationToEditors'](_0x35f5aa,_0x385f27),_0x4d75ad['add'](_0x385f27),_0x5bf5b8['registerAnnotation'](_0x385f27);}['_destroyController'](_0x1c079d){const _0x58dba2=this['editor']['plugins']['get']('CommentsRepository'),_0x368be7=this['editor']['plugins']['get']('Annotations'),_0x97cd07=this['_suggestionToController']['get'](_0x1c079d),_0xef343=_0x97cd07['view'],_0x1e2ed0=_0x368be7['getByInnerView'](_0xef343);_0x58dba2['_unbindEditors'](_0xef343),_0x1e2ed0&&_0x368be7['remove'](_0x1e2ed0),this['_suggestionToController']['delete'](_0x1c079d),this['_viewToController']['delete'](_0xef343),_0x97cd07['destroy']();}['_updateController'](_0x59230e){if(!_0x59230e['isInContent']||!this['_suggestionToController']['has'](_0x59230e))return;const _0xbb3e8c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54ac45=this['_suggestionToController']['get'](_0x59230e),_0x2955c9=_0x59230e['getAllAdjacentSuggestions']();_0x54ac45['view']['descriptionParts']=_0xbb3e8c['descriptionFactory']['getDescriptions'](_0x2955c9);}['destroy'](){for(const _0x1350ae of this['_suggestionToController']['keys']())this['_destroyController'](_0x1350ae);for(const _0x510591 of this['_annotationViews']['values']())_0x510591['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function xe(_0x207154){return'model'in _0x207154;}class Ve extends _0x1ac4a7{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2bce7a){this['editor']['plugins']['get'](d)['adapter']=_0x2bce7a;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2341e0){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2341e0);}['getSuggestions']({skipNotAttached:_0x582820=!0x1,toJSON:_0x2aa5a5=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x582820,'toJSON':_0x2aa5a5});}['getSuggestion'](_0x4eb25e){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4eb25e);}}const p=['Pagination'];class ce extends _0x1ac4a7{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xb267be=this['editor'];if(_0xb267be['config']['define']('trackChangesData.editorCreator',_0x336e94=>{const _0x494480=_0xb267be['model']['document']['getRootNames']()['reduce']((_0x284ac5,_0x1e2a4a)=>(_0x284ac5[_0x1e2a4a]='',_0x284ac5),{});return _0xb267be['constructor']['create'](_0x494480,_0x336e94);}),'function'!=typeof _0xb267be['config']['get']('trackChangesData')['editorCreator'])throw new _0x515288('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2bd23d){return P(this['editor'],!0x0,_0x2bd23d);}['getDataWithDiscardedSuggestions'](_0x4c9cfa){return P(this['editor'],!0x1,_0x4c9cfa);}}class ze extends _0x1ac4a7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x164a53){function _0x3d85d7(_0x904a53){return _0x904a53['map'](_0x502f63=>String['fromCharCode'](_0x502f63))['join']('');}super(_0x164a53),this['result']='end',_0x164a53[_0x3d85d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d85d7([0x76,0x69,0x65,0x77])][_0x3d85d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d85d7([0x61,0x75,0x74,0x6f]),_0x164a53[_0x3d85d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d85d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d85d7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d85d7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d85d7([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 Ke(_0x460812){return void 0x0!==_0x460812['getRootsAttributes'];}async function P(_0x551650,_0x45dd8c,_0x123d30){const _0x4d2abd=_0x1e1567(_0x551650,p);_0x4d2abd['plugins']['push'](d,ze),_0x4d2abd['rootsAttributes']=Ke(_0x551650)?_0x551650['getRootsAttributes']():void 0x0;const _0x78b8f5=document['createDocumentFragment'](),_0x3734ad=_0x551650['config']['get']('trackChangesData')['editorCreator'],_0x24e29c=await _0x3734ad(_0x4d2abd,()=>function(_0x32ac92){const _0x374a32=document['createElement']('div');return _0x32ac92['appendChild'](_0x374a32),_0x374a32;}(_0x78b8f5));!function(_0x4b0814,_0xadeecc){const _0xf96ca6=_0x4b0814['model']['document']['getRootNames']()['reduce']((_0x97ffc6,_0x59b39d)=>(_0x97ffc6[_0x59b39d]=_0x4b0814['data']['get']({'rootName':_0x59b39d}),_0x97ffc6),{}),_0x1a0f2f=_0x4b0814['plugins']['get']('Users')['users']['map'](_0x3087f1=>({'id':_0x3087f1['id'],'name':_0x3087f1['name']})),_0x4c1f99=_0x4b0814['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3ff7aa=_0x4b0814['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19345f=_0xadeecc['plugins']['get']('Users'),_0x4fe4ac=_0xadeecc['plugins']['get']('TrackChangesEditing'),_0x4a72da=_0xadeecc['plugins']['get']('CommentsRepository');for(const _0x423d60 of _0x4a72da['getCommentThreads']())_0x423d60['remove']();for(const _0x4f6b19 of _0x1a0f2f)_0x19345f['getUser'](_0x4f6b19['id'])||_0x19345f['addUser'](_0x4f6b19);_0x19345f['me']||_0x19345f['useAnonymousUser']();for(const _0xa2e487 of _0x3ff7aa)_0x4a72da['addCommentThread'](_0xa2e487);for(const _0x15bc28 of _0x4c1f99)_0x4fe4ac['addSuggestionData'](_0x15bc28);_0xadeecc['data']['set'](_0xf96ca6);}(_0x551650,_0x24e29c),_0x24e29c['execute'](_0x45dd8c?'acceptAllSuggestions':'discardAllSuggestions');const _0x2ac07f=Ke(_0x24e29c)?_0x24e29c['getFullData'](_0x123d30):_0x24e29c['data']['get'](_0x123d30);return await _0x24e29c['destroy'](),_0x2ac07f;}class _e extends _0x1a95f3{['options'];constructor(_0x3c4b5b,_0x5a4eb6){super(_0x3c4b5b),this['options']=_0x5a4eb6,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'](_0x32ca81,_0x19770a){if(!this['element'])return;const _0x3c4499=[];for(const [_0x25e824,_0x5662dc]of _0x32ca81){const _0x394820=document['createElement']('div');_0x394820['setAttribute']('data-ck-root-name',_0x25e824),_0x394820['className']=_0x5662dc['classes']+'\x20ck-track-changes-preview__root-container',_0x394820['innerHTML']=_0x5662dc['content'],_0x3c4499['push'](_0x394820);}_0x19770a(this['element'],_0x3c4499),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x294915{constructor(_0x4669ed){super(_0x4669ed),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4af4b5=this['editor'],_0x30adc6=_0x4af4b5['locale'],_0x17c556=_0x4af4b5['plugins']['get']('Dialog');let _0x36bcb5;const _0x428169=function(_0xe412fe){const _0x231b7d={};if('editables'in _0xe412fe['ui']['view']){for(const [_0x42586b,_0x59567b]of Object['entries'](_0xe412fe['ui']['view']['editables']))_0x231b7d[_0x42586b]=_0x59567b['element'];}else _0x231b7d[_0xe412fe['model']['document']['getRootNames']()[0x0]]=_0xe412fe['ui']['view']['editable']['element'];return _0x231b7d;}(_0x4af4b5),_0x440e91=function(_0x5bce13){let _0x18d180=0x0;for(const _0x5e20b8 of Object['values'](_0x5bce13))_0x18d180=Math['max'](_0x18d180,_0x5e20b8['getBoundingClientRect']()['width']);let _0x3f4416=0x0;for(const _0x2952b7 of Object['values'](_0x5bce13))_0x3f4416+=_0x2952b7['getBoundingClientRect']()['height'];const _0x218bf8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5d4881=Math['min'](_0x3f4416,_0x218bf8);return{'width':_0x18d180,'height':_0x5d4881};}(_0x428169);_0x17c556['show']({'id':'finalContentPreview','title':o(_0x30adc6,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x30adc6,{'dialogRects':_0x440e91}),'onHide':()=>{_0x36bcb5['detachFromDom']();},'onShow':()=>{_0x4af4b5['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x55ba64=>{const _0x3d8fd6=this['_standarizeRootsData'](_0x55ba64,_0x4af4b5,_0x428169);_0x17c556['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3d8fd6,_0x4af4b5['config']['get']('trackChanges.preview.renderFunction'));}),_0x36bcb5=new _0x4fccb4(_0x30adc6,[_0x17c556['view']]),_0x36bcb5['attachToDom'](),_0x36bcb5['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4af4b5['once']('destroy',()=>{_0x36bcb5['detachFromDom']();});const _0x289b24=_0x17c556['view']['headerView']['class'];_0x17c556['view']['headerView']['class']=_0x289b24?_0x289b24+'\x20ck-reset_all':'ck-reset_all',_0x17c556['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x17c556['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x106704=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xe0e17b=_0x106704['previewMode'],_0x5cc51b={};if('$labels'===_0xe0e17b){for(const _0x3ba686 of _0x106704['getMergeFieldsIds']())_0x5cc51b[_0x3ba686]=_0x106704['getLabel'](_0x3ba686)||_0x3ba686;}else{const _0x4edcbb='$defaultValues'===_0xe0e17b?_0x106704['getDefaultValues']():_0x106704['getDataSetValues'](_0xe0e17b,!0x0);for(const _0x524db9 of Object['entries'](_0x4edcbb)){const [_0x4b3898,_0x5a79b4]=_0x524db9;_0x5cc51b[_0x4b3898]=null!==_0x5a79b4?_0x5a79b4:_0x106704['getLabel'](_0x4b3898)||_0x4b3898;}}return{'mergeFieldsData':_0x5cc51b};}['_standarizeRootsData'](_0x16aafa,_0x53c833,_0x2ca88b){let _0x59dfe3;if('string'==typeof _0x16aafa){const _0x1c989a=_0x53c833['model']['document']['getRootNames']()[0x0];_0x59dfe3={[_0x1c989a]:_0x16aafa};}else _0x59dfe3=_0x16aafa;const _0x55ee33=this['_fixMediaEmbeds'](_0x59dfe3,_0x53c833),_0x18105c=function(_0x2271ec,_0x1a40b5){for(const [_0x18f801,_0x10787a]of _0x2271ec)_0x10787a['classes']=_0x1a40b5[_0x18f801]['classList']['value']['replace']('ck-focused','');return _0x2271ec;}(this['_sortRoots'](_0x53c833)['reduce']((_0x3fb07a,_0x3136db)=>(_0x3fb07a['push']([_0x3136db,{'content':_0x55ee33[_0x3136db],'classes':''}]),_0x3fb07a),[]),_0x2ca88b);return _0x18105c;}['_fixMediaEmbeds'](_0x3e5d15,_0x2f89f0){if(!_0x2f89f0['plugins']['has']('MediaEmbedEditing'))return _0x3e5d15;const _0x36ba0d=_0x2f89f0['plugins']['get']('MediaEmbedEditing');for(const [_0x460486,_0x209b95]of Object['entries'](_0x3e5d15)){const _0x22da46=document['createElement']('div');_0x22da46['innerHTML']=_0x209b95,(_0x22da46['querySelectorAll']('figure.media')['forEach'](_0x2bb654=>{const _0x8efd08=_0x2bb654['querySelector']('oembed');if(_0x8efd08){const _0x103431=_0x8efd08['getAttribute']('url');if(_0x103431){const _0x2fdfe2=_0x36ba0d['registry']['getMediaViewElement'](new _0x31158e(_0x2f89f0['editing']['view']['document']),_0x103431,{'elementName':'','renderForEditingView':!0x0}),_0x2b566c=document['createElement']('div');_0x2b566c['classList']['add']('ck-media__wrapper'),_0x2fdfe2['render'](_0x2b566c,_0x2f89f0['editing']['view']['domConverter']),_0x8efd08['replaceWith'](_0x2b566c);}}}),_0x3e5d15[_0x460486]=_0x22da46['innerHTML']);}return _0x3e5d15;}['_sortRoots'](_0x2856ef){if(!function(_0x485639){return void 0x0!==_0x485639['getRootsAttributes'];}(_0x2856ef))return _0x2856ef['model']['document']['getRootNames']();const _0x3b59df=[],_0x5a2fc6=new Map();for(const _0x5e198d of _0x2856ef['model']['document']['getRootNames']()){const _0x371548=_0x2856ef['editing']['view']['getDomRoot'](_0x5e198d)['getClientRects']()['item'](0x0);_0x3b59df['push'](_0x5e198d),_0x5a2fc6['set'](_0x5e198d,_0x371548);}return _0x3b59df['sort']((_0x159fd9,_0x515d4c)=>{const _0x15c6d0=_0x5a2fc6['get'](_0x159fd9),_0x5c003c=_0x5a2fc6['get'](_0x515d4c);return _0x15c6d0['y']-_0x5c003c['y']||_0x15c6d0['x']-_0x5c003c['x'];}),_0x3b59df;}}class Xe extends _0x1ac4a7{static get['requires'](){return[ce,_0x3f5aef];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21a922){super(_0x21a922),_0x21a922['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x21a922['config']['define']('trackChanges.preview.renderFunction',(_0x27759a,_0x56412e)=>{for(const _0x485d64 of _0x56412e)_0x27759a['appendChild'](_0x485d64);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Le as SuggestionThreadView,ve as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x11456d,Plugin as _0xa1bc5,PendingActions as _0x9ed7b5}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2e1b6b,ObservableMixin as _0x3a6ae7,uid as _0x4cc075,priorities as _0x2521c1,insertToPriorityArray as _0x562dd6,toArray as _0x4d6af2,logWarning as _0x165ad6,getEnvKeystrokeText as _0x28d4d9,FocusTracker as _0x442301,KeystrokeHandler as _0x499590,Collection as _0x3e5c62}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xaabd73,IconCancel as _0x288d61,IconTrackChanges as _0xeffbe7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x11673c,View as _0x2ee879,ViewCollection as _0x91f988,FocusCycler as _0x332554,UIModel as _0xa115c1,createDropdown as _0x473cb2,SplitButtonView as _0x3001c7,addListToDropdown as _0xe0c6a1,MenuBarMenuView as _0x1482b8,MenuBarMenuListView as _0x5b21d0,ListSeparatorView as _0x399a0e,MenuBarMenuListItemView as _0x6bd1d1,MenuBarMenuListItemButtonView as _0xc067cc,BodyCollection as _0x4068fa,Dialog as _0x5d80f4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x17e1d7,DocumentCompare as _0x8570be,hashObject as _0x4541a7,surroundingMarkersDetector as _0x597178,FOCUS_ANNOTATION_KEYSTROKE as _0x42f22b,AriaDescriptionView as _0x54dcd9,setupThreadKeyboardNavigation as _0x3be0d4,trimHtml as _0x470f00,UserView as _0x1bc305,LateFocusButtonView as _0x34548f,getDateTimeFormatter as _0xc3ecd3,getAllMarkersDomElementsSorted as _0x487f9d,sanitizeEditorConfig as _0x397105}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x521b05,ModelLiveRange as _0x4be877,ModelLivePosition as _0x4214f1,ModelPosition as _0x536272,ModelRange as _0x5f7bdb,_DetachOperation as _0x74bf5a,ViewDowncastWriter as _0x149119}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x342802,toWidget as _0xbfd7c1}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x48349f,set as _0x718fc2,isEqual as _0x536774,unset as _0x749894,omit as Jt}from'es-toolkit/compat';import{Delete as _0x4088aa,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x57f81e}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1246aa}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x11456d{['_enabledCommands'];constructor(_0x5aa66a,_0x4892bd){super(_0x5aa66a),this['_enabledCommands']=_0x4892bd,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 _0x3146ff of this['editor']['commands']['commands']())_0x3146ff['affectsData']&&!this['_enabledCommands']['has'](_0x3146ff)&&_0x3146ff['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x182bf0 of this['editor']['commands']['commands']())_0x182bf0['affectsData']&&!this['_enabledCommands']['has'](_0x182bf0)&&_0x182bf0['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x11456d{['_suggestions'];constructor(_0x1a85e0,_0x571a8a){super(_0x1a85e0),this['_suggestions']=_0x571a8a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2fba14){const _0x1d8ad1=this['_suggestions']['get'](_0x2fba14);if(!_0x1d8ad1)throw new _0x2e1b6b('track-changes-accept-suggestion-not-found',this);const _0x4e36ce=_0x1d8ad1['getRanges']();this['editor']['model']['canEditAt'](_0x4e36ce)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1d8ad1);}}class O extends _0x11456d{['_suggestions'];constructor(_0x1c1ae9,_0x5cf9b2){super(_0x1c1ae9),this['_suggestions']=_0x5cf9b2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x33d06d){const _0x2ce660=this['_suggestions']['get'](_0x33d06d);if(!_0x2ce660)throw new _0x2e1b6b('track-changes-discard-suggestion-not-found',this);const _0x4b5df2=_0x2ce660['getRanges']();this['editor']['model']['canEditAt'](_0x4b5df2)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2ce660);}}function ls(_0x91f84c,_0x1c6557){let _0x3b8f72='';return _0x3b8f72+=_0x91f84c['split']('*')['map']((_0x4b740c,_0x406032)=>_0x406032%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x4b740c)+'</span>':tn(_0x4b740c))['join'](''),_0x1c6557&&(_0x3b8f72+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1c6557['value']+'\x22\x20title=\x22'+_0x1c6557['title']+'\x22></span>'),_0x3b8f72;}function tn(_0x588ac7){const _0x36fd17=document['createElement']('span');return _0x36fd17['innerText']=_0x588ac7,_0x36fd17['innerHTML'];}function ts(_0x48b78f){return _0x48b78f['sort']((_0x5557d1,_0x3c3b73)=>'attribute'===_0x5557d1['type']&&'attribute'!==_0x3c3b73['type']?-0x1:'attribute'!==_0x5557d1['type']&&'attribute'===_0x3c3b73['type']?0x1:'deletion'==_0x5557d1['type']&&'deletion'!=_0x3c3b73['type']?-0x1:'deletion'!=_0x5557d1['type']&&'deletion'==_0x3c3b73['type']?0x1:0x0);}function to(_0x12d4a3,_0x661342){let _0x54ea3f,_0x29d8c4=0x0;const _0x55cfeb=[],_0x1a9750=_0x661342['schema'];for(;_0x29d8c4<_0x12d4a3['length'];){const _0x2ad7d4=_0x12d4a3[_0x29d8c4],_0x2b73ca=_0x12d4a3[_0x29d8c4+0x1];_0x54ea3f||(_0x54ea3f=_0x661342['createPositionBefore'](_0x2ad7d4)),nn(_0x661342,_0x2ad7d4,_0x2b73ca)||(_0x55cfeb['push'](_0x661342['createRange'](_0x54ea3f,_0x1a9750['isObject'](_0x2ad7d4)?_0x661342['createPositionAfter'](_0x2ad7d4):_0x661342['createPositionAt'](_0x2ad7d4,'end'))),_0x54ea3f=null),_0x29d8c4++;}return _0x55cfeb;}function nn(_0x42ec20,_0x24a9ac,_0x5c2a11){if(!_0x5c2a11)return!0x1;const _0x4a470f=_0x42ec20['createPositionAfter'](_0x24a9ac),_0x3d4d6f=_0x42ec20['createPositionBefore'](_0x5c2a11);return _0x4a470f['isTouching'](_0x3d4d6f);}function rs(_0x24ad6a,_0x667a13,_0x1ea229){for(;_0x1ea229['length'];){const _0x4a215e=_0x1ea229['splice'](0x0,0x64);_0x24ad6a['change'](()=>{for(const _0x5d6f8c of _0x4a215e)_0x5d6f8c['isInContent']&&_0x667a13['execute'](_0x5d6f8c['id']);});}}class x extends _0x11456d{['_command'];['_suggestions'];constructor(_0x449d38,_0x40a2ba,_0x55521e){super(_0x449d38),this['_command']=_0x40a2ba,this['_suggestions']=_0x55521e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4f628e=Array['from'](this['_suggestions']['values']())['some'](_0xec5e3a=>_0xec5e3a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4f628e;}['execute'](){const _0x2ea450=ts(Array['from'](this['_suggestions']['values']()));for(const _0x532951 of _0x2ea450){const _0x2dc6a8=_0x532951['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2dc6a8))return;}rs(this['editor']['model'],this['_command'],_0x2ea450);}}class E extends _0x11456d{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4fd880,_0x341761,_0x44c356){super(_0x4fd880),this['_command']=_0x341761,this['_suggestions']=_0x44c356,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x565780=this['editor']['model']['document']['selection'],_0x15c9f5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2ae1a8,_0x3bab81){const _0x1ff933=Array['from'](_0x2ae1a8['getRanges']()),_0x217220=new Set();for(const _0x315d13 of _0x3bab81)if(_0x315d13['isInContent']){for(const _0x12255c of _0x1ff933)for(const _0x1c67dd of _0x315d13['getRanges']())(_0x12255c['isIntersecting'](_0x1c67dd)||_0x2ae1a8['isCollapsed']&&!_0x315d13['isMultiRange']&&_0x315d13['next']&&_0x1c67dd['end']['isTouching'](_0x12255c['start']))&&_0x217220['add'](_0x315d13);}return _0x217220;}(_0x565780,_0x15c9f5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x137049=ts(Array['from'](this['_selectedSuggestions']));for(const _0x34af83 of _0x137049){const _0x2dc843=_0x34af83['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2dc843))return;}rs(this['editor']['model'],this['_command'],_0x137049);}}class R extends/* #__PURE__ -- @preserve */
24
+ _0x3a6ae7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x58c529,_0x342426){super(),this['id']=_0x342426['id'],this['type']=_0x342426['type'],this['subType']=_0x342426['subType']||null,this['author']=_0x342426['author'],this['creator']=_0x342426['creator']||_0x342426['author'],this['isExternal']=Boolean(_0x342426['attributes']&&_0x342426['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x342426['originalSuggestionId']||null,this['_model']=_0x58c529,this['_onAccept']=_0x342426['onAccept'],this['_onDiscard']=_0x342426['onDiscard'],this['_onAttributesChange']=_0x342426['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x342426['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 _0x22eb6a=this;for(;_0x22eb6a['previous'];)_0x22eb6a=_0x22eb6a['previous'];return _0x22eb6a;}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'](_0x510eea){this['_markerNames']['add'](_0x510eea);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3573db=>this['_model']['markers']['get'](_0x3573db))['filter'](_0x3c3749=>_0x3c3749);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x590138=>{for(const _0x5be9e5 of this['getMarkers']())_0x590138['removeMarker'](_0x5be9e5);}),this['_markerNames']['clear']();}['removeMarker'](_0xd46242){this['_model']['change'](_0x3e23b9=>{_0x3e23b9['removeMarker'](_0xd46242);}),this['_markerNames']['delete'](_0xd46242);}['addRange'](_0x217d73){const _0x4d77f3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x4d77f3),this['_model']['change'](_0x580e19=>{_0x580e19['addMarker'](_0x4d77f3,{'range':_0x217d73,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x52c486){for(const _0xc71944 of this['getRanges']())if(_0xc71944['isIntersecting'](_0x52c486))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x504a7a=>_0x504a7a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3f7f5e,_0x479f3e)=>[..._0x3f7f5e,..._0x479f3e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x213199=this['getRanges']();if(0x1!=_0x213199['length'])return null;const _0x1f4221=_0x213199[0x0],_0x53bc49=_0x1f4221['start']['nodeAfter'],_0x602bb5=_0x1f4221['end']['nodeBefore'];return _0x53bc49 instanceof _0x521b05?_0x53bc49!=_0x602bb5?null:_0x53bc49: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 _0x47c45e=[];let _0x416da2=this['head'];for(;_0x416da2;)_0x47c45e['push'](_0x416da2),_0x416da2=_0x416da2['next'];return _0x47c45e;}['setAttribute'](_0x302e72,_0x37802e){const _0x3ccd10=_0x48349f(this['attributes']);_0x718fc2(_0x3ccd10,_0x302e72,_0x37802e),_0x536774(_0x3ccd10,this['attributes'])||(this['attributes']=_0x3ccd10,this['_onAttributesChange'](_0x3ccd10));}['removeAttribute'](_0x310abd){const _0x376097=_0x48349f(this['attributes']);_0x749894(_0x376097,_0x310abd),_0x536774(_0x376097,this['attributes'])||(this['attributes']=_0x376097,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 _0x4cc075()['substr'](0x1,0x5);}}function o(_0x59339a,_0x12c4f1,_0x1be87c){const _0x5cd1f8=_0x59339a['t'],t=_0x59339a['t'];switch(_0x12c4f1){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',_0x1be87c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1be87c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1be87c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1be87c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1be87c);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',_0x1be87c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1be87c);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',_0x1be87c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1be87c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1be87c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1be87c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1be87c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1be87c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1be87c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1be87c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1be87c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1be87c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1be87c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1be87c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1be87c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1be87c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1be87c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1be87c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1be87c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1be87c);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'},_0x1be87c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1be87c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1be87c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1be87c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1be87c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1be87c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1be87c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1be87c);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'},_0x1be87c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1be87c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1be87c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1be87c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1be87c);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'},_0x1be87c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1be87c);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'},_0x1be87c);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x1be87c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1be87c);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'},_0x1be87c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1be87c);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'},_0x1be87c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1be87c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1be87c);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'},_0x1be87c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1be87c);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 _0x5cd1f8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1be87c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5cd1f8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1be87c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1be87c);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'},_0x1be87c);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'},_0x1be87c);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'},_0x1be87c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x12c4f1;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x742889,_0x51990a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x742889,this['_locale']=_0x51990a;}['getDescriptions'](_0x433409){const _0x417918=[],_0x4604e7=new Set(),_0x33a81a=new Set();for(let _0x5a4316=0x0;_0x5a4316<_0x433409['length'];_0x5a4316++){const _0x50ef66=_0x433409[_0x5a4316];if(!_0x50ef66['isInContent'])continue;const _0x3db060=this['_handleCustomCallbackDescription'](_0x50ef66);if(_0x3db060){if(null!=_0x50ef66['subType']){if(_0x4604e7['has'](_0x50ef66['subType']))continue;_0x4604e7['add'](_0x50ef66['subType']);}_0x417918['push'](_0x3db060);}else{if('attribute'==_0x50ef66['type']){const _0x2c94da=_0x50ef66['data']['key'];if(_0x33a81a['has'](_0x2c94da))continue;_0x33a81a['add'](_0x50ef66['data']['key']),_0x2c94da==m?this['_handleRenameSuggestionDescription'](_0x417918,_0x50ef66):this['_handleAttributeSuggestionDescription'](_0x417918,_0x50ef66);continue;}'insertion'!=_0x50ef66['type']&&'deletion'!=_0x50ef66['type']||this['_handleInsertRemoveSuggestionDescription'](_0x417918,_0x50ef66,_0x433409[_0x5a4316+0x1]);}}return this['_resolveDescriptionItems'](_0x417918);}['registerDescriptionCallback'](_0x3fef13){this['_customCallbacks']['push'](_0x3fef13);}['registerElementLabel'](_0x5f0378,_0xe52e73,_0x525187=_0x2521c1['normal']){'function'==typeof _0x5f0378?_0x562dd6(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5f0378,'label':_0xe52e73,'priority':_0x525187}):this['_itemLabels']['set'](_0x5f0378,_0xe52e73);}['registerAttributeLabel'](_0x6a156a,_0x54ffb6){this['_attributeLabels']['set'](_0x6a156a,_0x54ffb6);}['getItemLabel'](_0x500e39,_0x4fff01=0x1){let _0x584a77;for(const _0x1d5e43 of this['_itemLabelsCallbacks'])if(_0x1d5e43['matchingCallback'](_0x500e39)){_0x584a77=_0x1d5e43['label'];break;}return _0x584a77||(_0x584a77=this['_itemLabels']['get'](_0x500e39['name'])),_0x584a77?_0x584a77(_0x4fff01):0x1!==_0x4fff01?_0x4fff01+'\x20'+_0x500e39['name']+'s':''+_0x500e39['name'];}['_addDescriptionItems'](_0x501c11,_0x2f0837){const _0x148b02=_0x2f0837['getFirstRange']()['getWalker'](),_0x2e337c='insertion'==_0x2f0837['type']?'add':'remove';for(const _0x1b53e6 of _0x148b02){const _0x21bc66=_0x1b53e6['item'],_0x5e3618=_0x501c11[_0x501c11['length']-0x1];if(_0x21bc66['is']('$textProxy'))_0x5e3618&&_0x5e3618['type']['indexOf']('Container')>-0x1&&_0x501c11['pop'](),_0x5e3618&&'text'==_0x5e3618['type']?_0x5e3618[_0x2e337c]+=_0x21bc66['data']:_0x501c11['push']({'type':'text','add':'add'==_0x2e337c?_0x21bc66['data']:'','remove':'remove'==_0x2e337c?_0x21bc66['data']:''});else{if(this['_schema']['isObject'](_0x21bc66)){const _0x154b7e=_0x21bc66;if(_0x5e3618&&_0x5e3618['type']['indexOf']('Container')>-0x1&&_0x501c11['pop'](),'elementEnd'==_0x1b53e6['type'])continue;_0x5e3618&&_0x5e3618['type']==_0x2e337c+'Object'&&_0x5e3618['element']['name']==_0x154b7e['name']?_0x5e3618['quantity']++:_0x501c11['push']({'type':_0x2e337c+'Object','element':_0x154b7e,'quantity':0x1}),_0x148b02['skip'](_0x5c7989=>!('elementEnd'==_0x5c7989['type']&&_0x5c7989['item']==_0x21bc66));}else{if(this['_schema']['checkChild'](_0x21bc66,'$text')||_0x21bc66['is']('element','softBreak')){const _0x1d01c5=_0x21bc66;if('add'==_0x2e337c&&'elementStart'==_0x1b53e6['type']||'remove'==_0x2e337c&&'elementEnd'==_0x1b53e6['type'])continue;if(_0x5e3618&&-0x1==_0x5e3618['type']['indexOf']('Container')){'text'==_0x5e3618['type']&&(_0x5e3618[_0x2e337c]+='\x0a');continue;}let _0x4f5e56;if(_0x4f5e56='add'==_0x2e337c?_0x1d01c5['nextSibling']&&!this['_schema']['isObject'](_0x1d01c5['nextSibling'])?_0x1d01c5['nextSibling']:null:_0x1d01c5['previousSibling']&&!this['_schema']['isObject'](_0x1d01c5['previousSibling'])?_0x1d01c5['previousSibling']:null,_0x1d01c5['isEmpty']||_0x4f5e56&&_0x4f5e56['isEmpty']){const _0x36342e=_0x4f5e56&&_0x4f5e56['isEmpty']?_0x4f5e56:_0x1d01c5;_0x5e3618&&_0x5e3618['type']==_0x2e337c+'EmptyContainer'&&_0x5e3618['element']['name']==_0x36342e['name']?_0x5e3618['quantity']++:_0x501c11['push']({'type':_0x2e337c+'EmptyContainer','element':_0x36342e,'quantity':0x1});}else _0x501c11['push']({'type':_0x2e337c+'Container','element':_0x1d01c5});}}}}}['_resolveDescriptionItems'](_0x56ff9a){const _0xcd00e4=this['_locale'],_0xaa0178=[],_0x570c7f=[],_0x22c274=[];for(const _0x2fdd8d of _0x56ff9a)switch(_0x2fdd8d['type']){case'text':if(_0x2fdd8d['add']=_0x2fdd8d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2fdd8d['remove']=_0x2fdd8d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2fdd8d['add']&&''!=_0x2fdd8d['remove']){_0xaa0178['push']({'type':'replace','content':o(_0xcd00e4,'REPLACE_TEXT',['\x22'+_0x2fdd8d['remove']+'\x22','\x22'+_0x2fdd8d['add']+'\x22'])});continue;}if(null!=_0x2fdd8d['add']['match'](/^ +$/)){_0xaa0178['push']({'type':'insertion','content':o(_0xcd00e4,'*Insert:*\x20%0',o(_0xcd00e4,'ELEMENT_SPACE',_0x2fdd8d['add']['length']))});continue;}if(null!=_0x2fdd8d['remove']['match'](/^ +$/)){_0xaa0178['push']({'type':'deletion','content':o(_0xcd00e4,'*Remove:*\x20%0',o(_0xcd00e4,'ELEMENT_SPACE',_0x2fdd8d['remove']['length']))});continue;}if(''!=_0x2fdd8d['add']){_0xaa0178['push']({'type':'insertion','content':o(_0xcd00e4,'*Insert:*\x20%0','\x22'+_0x2fdd8d['add']+'\x22')});continue;}_0xaa0178['push']({'type':'deletion','content':o(_0xcd00e4,'*Remove:*\x20%0','\x22'+_0x2fdd8d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xaa0178['push']({'type':'insertion','content':o(_0xcd00e4,'*Insert:*\x20%0',this['getItemLabel'](_0x2fdd8d['element'],_0x2fdd8d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xaa0178['push']({'type':'deletion','content':o(_0xcd00e4,'*Remove:*\x20%0',this['getItemLabel'](_0x2fdd8d['element'],_0x2fdd8d['quantity']))});continue;case'addContainer':_0xaa0178['push']({'type':'insertion','content':o(_0xcd00e4,'*Split:*\x20%0',this['getItemLabel'](_0x2fdd8d['element'],_0x2fdd8d['quantity']))});continue;case'removeContainer':_0xaa0178['push']({'type':'deletion','content':o(_0xcd00e4,'*Merge:*\x20%0',this['getItemLabel'](_0x2fdd8d['element'],_0x2fdd8d['quantity']))});continue;case'addFormat':_0x570c7f['push'](_0x2fdd8d['key']);continue;case'removeFormat':_0x22c274['push'](_0x2fdd8d['key']);continue;default:_0xaa0178['push'](_0x2fdd8d);}if(_0x570c7f['length']){const _0x48d600=_0x570c7f['map'](_0x9e1f09=>this['_attributeLabels']['has'](_0x9e1f09)?this['_attributeLabels']['get'](_0x9e1f09):_0x9e1f09)['join'](',\x20');_0xaa0178['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x48d600)});}if(_0x22c274['length']){const _0x2b0fb7=_0x22c274['map'](_0xe6d675=>this['_attributeLabels']['has'](_0xe6d675)?this['_attributeLabels']['get'](_0xe6d675):_0xe6d675)['join'](',\x20');_0xaa0178['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2b0fb7)});}return _0xaa0178;}['_handleCustomCallbackDescription'](_0x1fb781){for(const _0xd05a95 of this['_customCallbacks']){const _0x29e3c4=_0xd05a95(_0x1fb781);if(_0x29e3c4&&'type'in _0x29e3c4)return _0x29e3c4;}}['_handleAttributeSuggestionDescription'](_0x52ee6,_0x5da41f){const _0x3baac9=_0x5da41f['data'],_0x352bdd=void 0x0===_0x3baac9['newValue']?'removeFormat':'addFormat';_0x52ee6['push']({'type':_0x352bdd,'key':_0x3baac9['key']});}['_handleRenameSuggestionDescription'](_0x2058f7,_0x53202d){_0x2058f7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x53202d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x19e824,_0x3a90f2,_0x571459){if(this['_addDescriptionItems'](_0x19e824,_0x3a90f2),_0x571459&&_0x571459['getFirstRange']()&&!_0x3a90f2['getFirstRange']()['end']['isEqual'](_0x571459['getFirstRange']()['start'])){const _0x453a46=_0x19e824[_0x19e824['length']-0x1],_0x56dd85='insertion'==_0x3a90f2['type']?'add':'remove';_0x453a46&&'text'==_0x453a46['type']&&(_0x453a46[_0x56dd85]+='\x0a');}}}class V extends _0xa1bc5{['afterInit'](){const _0x5ef550=this['editor'],_0x248f4b=_0x5ef550['plugins']['get']('TrackChangesEditing');_0x5ef550['commands']['get']('showAIAssistant')&&_0x248f4b['enableCommand']('showAIAssistant');}}class F extends _0xa1bc5{['afterInit'](){const _0x33c272=this['editor'],_0xdf6858=_0x33c272['plugins']['get']('TrackChangesEditing');_0x33c272['commands']['get']('toggleAi')&&_0xdf6858['enableCommand']('toggleAi');}}class G extends _0xa1bc5{['afterInit'](){const _0x50e421=this['editor'],_0x45c3fe=_0x50e421['plugins']['get']('TrackChangesEditing');_0x50e421['commands']['get']('aiQuickAction')&&_0x45c3fe['enableCommand']('aiQuickAction');}}class L extends _0xa1bc5{['afterInit'](){const _0x1c3a9b=this['editor'],_0x4843a9=_0x1c3a9b['locale'];if(!_0x1c3a9b['plugins']['has']('AlignmentEditing'))return;const _0x925339=_0x1c3a9b['plugins']['get']('TrackChangesEditing');_0x925339['enableDefaultAttributesIntegration']('alignment'),_0x925339['registerBlockAttribute']('alignment'),_0x925339['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4843a9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x355746=this['editor'],_0xa05457=_0x355746['locale'];_0x355746['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56ba16=>{if('formatBlock'!=_0x56ba16['type'])return;const {data:_0x1a88e3}=_0x56ba16;if(_0x1a88e3&&'alignment'==_0x1a88e3['commandName']){const _0x3ff091=_0x1a88e3['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xa05457,'*Format:*\x20%0',function(_0x189038){switch(_0x189038){case'left':return o(_0xa05457,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xa05457,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xa05457,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xa05457,'FORMAT_JUSTIFY_TEXT');}}(_0x3ff091))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0xa1bc5{['afterInit'](){const _0x3419b0=this['editor'],_0x5ef10d=_0x3419b0['plugins']['get']('TrackChangesEditing'),_0x300c0d=_0x3419b0['locale'];for(const _0x309620 of ti){if(!_0x3419b0['plugins']['has'](_0x309620))continue;const _0x131399=_0x309620['slice'](0x0,-0x7)['toLowerCase'](),_0x10a115='FORMAT_'+_0x131399['toUpperCase']();_0x5ef10d['enableDefaultAttributesIntegration'](_0x131399),_0x5ef10d['registerInlineAttribute'](_0x131399),_0x5ef10d['descriptionFactory']['registerAttributeLabel'](_0x131399,o(_0x300c0d,_0x10a115));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e08db=this['editor'],_0x126c4b=_0x1e08db['locale'],_0x14243e=_0x1e08db['plugins']['get']('TrackChangesEditing');function _0xf824cc(_0x1e3ac1,_0x5202e3){_0x14243e['descriptionFactory']['registerDescriptionCallback'](_0x13112d=>{if('formatInline'!=_0x13112d['type'])return;const {data:_0x33179d}=_0x13112d;return _0x33179d&&_0x33179d['commandName']===_0x1e3ac1?_0x33179d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x126c4b,'*Format:*\x20%0',_0x5202e3)}:{'type':'format','content':o(_0x126c4b,'*Remove\x20format:*\x20%0',_0x5202e3)}:void 0x0;});}_0xf824cc('bold',o(_0x126c4b,'FORMAT_BOLD')),_0xf824cc('italic',o(_0x126c4b,'FORMAT_ITALIC')),_0xf824cc('underline',o(_0x126c4b,'FORMAT_UNDERLINE')),_0xf824cc('code',o(_0x126c4b,'FORMAT_CODE')),_0xf824cc('strikethrough',o(_0x126c4b,'FORMAT_STRIKETHROUGH')),_0xf824cc('subscript',o(_0x126c4b,'FORMAT_SUBSCRIPT')),_0xf824cc('superscript',o(_0x126c4b,'FORMAT_SUPERSCRIPT'));}}class K extends _0xa1bc5{['afterInit'](){const _0x4f1457=this['editor'],_0x369e34=_0x4f1457['locale'];if(!_0x4f1457['plugins']['has']('BlockQuoteEditing'))return;const _0x4f8ed0=_0x4f1457['plugins']['get']('TrackChangesEditing'),_0x10af1f=this['editor']['commands']['get']('blockQuote');_0x4f8ed0['enableCommand']('blockQuote',(_0x581325,_0x5bbe02={})=>{const _0x596521=this['editor']['model']['document']['selection'],_0x167b2d=_0x5bbe02&&void 0x0!==_0x5bbe02['forceValue']?_0x5bbe02['forceValue']:!_0x10af1f['value'];let _0x157d04=[];if(_0x167b2d){const _0x1703d2=Array['from'](_0x596521['getSelectedBlocks']())['filter'](_0x5133f7=>oo(_0x5133f7)||function(_0x32da41,_0xa76649){const _0x3795b7=_0xa76649['checkChild'](_0x32da41['parent'],'blockQuote'),_0x23a7fb=_0xa76649['checkChild'](['$root','blockQuote'],_0x32da41);return _0x3795b7&&_0x23a7fb;}(_0x5133f7,this['editor']['model']['schema']));_0x157d04=to(_0x1703d2,_0x4f1457['model']);}else{const _0x242200=Array['from'](_0x596521['getSelectedBlocks']())['filter'](_0x3a42c8=>oo(_0x3a42c8));_0x157d04=to(_0x242200,_0x4f1457['model']);}_0x4f1457['model']['change'](()=>{for(const _0x2c2c07 of _0x157d04)_0x4f8ed0['markBlockFormat'](_0x2c2c07,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x167b2d}]});});}),_0x4f8ed0['descriptionFactory']['registerDescriptionCallback'](_0x29b42b=>{const {data:_0x247b4a}=_0x29b42b;if(_0x247b4a&&'blockQuote'==_0x247b4a['commandName']){const _0x35874a=o(_0x369e34,'ELEMENT_BLOCK_QUOTE');return _0x247b4a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x369e34,'*Set\x20format:*\x20%0',_0x35874a)}:{'type':'format','content':o(_0x369e34,'*Remove\x20format:*\x20%0',_0x35874a)};}});}}function oo(_0x35f42c){return'blockQuote'==_0x35f42c['parent']['name'];}class q extends _0xa1bc5{['afterInit'](){const _0x294208=this['editor'],_0x1db70d=_0x294208['locale'],_0x4b13ac=_0x294208['plugins']['get']('TrackChangesEditing');_0x294208['plugins']['has']('BookmarkEditing')&&(_0x4b13ac['enableCommand']('insertBookmark'),_0x4b13ac['enableDefaultAttributesIntegration']('updateBookmark'),_0x4b13ac['registerBlockAttribute']('bookmarkId'),_0x4b13ac['descriptionFactory']['registerDescriptionCallback'](_0x1662f9=>{if('insertion'!=_0x1662f9['type']&&'deletion'!=_0x1662f9['type']&&'attribute'!=_0x1662f9['type'])return;const _0x549caa=_0x1662f9['getContainedElement']();if(null==_0x549caa)return;if(!_0x549caa['is']('element','bookmark'))return;const _0x298dfa=_0x549caa['getAttribute']('bookmarkId');if('insertion'==_0x1662f9['type'])return{'type':'insertion','content':o(_0x1db70d,'*Insert:*\x20%0','\x22'+_0x298dfa+'\x22\x20'+o(_0x1db70d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1662f9['type'])return{'type':'deletion','content':o(_0x1db70d,'*Remove:*\x20%0','\x22'+_0x298dfa+'\x22\x20'+o(_0x1db70d,'ELEMENT_BOOKMARK'))};const {data:_0x529357}=_0x1662f9;if(!_0x529357||'bookmarkId'!=_0x529357['key'])return;return{'type':'format','content':o(_0x1db70d,'*Set\x20bookmark:*\x20%0','\x22'+_0x529357['newValue']+'\x22')};}));}}class H extends _0xa1bc5{['afterInit'](){const _0x46458c=this['editor'];_0x46458c['plugins']['has']('CaseChange')&&(_0x46458c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x46458c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x46458c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0xa1bc5{['afterInit'](){const _0x1afe9b=this['editor'];_0x1afe9b['commands']['get']('ckbox')&&_0x1afe9b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0xa1bc5{['afterInit'](){const _0x5cb992=this['editor'];if(!_0x5cb992['plugins']['has']('CodeBlock'))return;const _0xc41429=_0x5cb992['plugins']['get']('TrackChangesEditing'),_0x5ef9ae=_0x5cb992['locale'],_0xc1f6df=_0x5cb992['config']['get']('codeBlock')['languages'],_0x1b12b9=_0x5cb992['commands']['get']('codeBlock');_0xc41429['enableCommand']('indentCodeBlock'),_0xc41429['enableCommand']('outdentCodeBlock'),_0xc41429['enableCommand']('codeBlock',(_0x49c824,_0x1ec67e={})=>{const _0x2cbc49=_0x5cb992['model'],_0x4c1878=_0x5cb992['model']['document']['selection'],_0x3cc72f=_0x1ec67e&&void 0x0!==_0x1ec67e['forceValue']?_0x1ec67e['forceValue']:!_0x1b12b9['value'];let _0x577839;_0x1ec67e['language']||(_0x1ec67e['language']=_0xc1f6df[0x0]['language']),_0x577839=_0x3cc72f?Array['from'](_0x4c1878['getSelectedBlocks']())['filter'](_0x1b2a4c=>co(_0x1b2a4c)||function(_0x46c943,_0x56a587){if(_0x46c943['is']('rootElement')||_0x56a587['isLimit'](_0x46c943))return!0x1;return _0x56a587['checkChild'](_0x46c943['parent'],'codeBlock');}(_0x1b2a4c,_0x2cbc49['schema'])):Array['from'](_0x4c1878['getSelectedBlocks']())['filter'](_0x222be7=>co(_0x222be7));const _0x2823c5=to(_0x577839,_0x2cbc49);_0x2cbc49['change'](()=>{for(const _0x41ddba of _0x2823c5)_0xc41429['markBlockFormat'](_0x41ddba,{'commandName':'codeBlock','commandParams':[{..._0x1ec67e,'forceValue':_0x3cc72f}],'formatGroupId':'blockName'});});}),(_0xc41429['descriptionFactory']['registerElementLabel']('codeBlock',_0x1f801c=>o(_0x5ef9ae,'ELEMENT_CODE_BLOCK',_0x1f801c)),_0xc41429['descriptionFactory']['registerDescriptionCallback'](_0x206348=>{if('formatBlock'!=_0x206348['type'])return;const _0x484435=_0x5ef9ae['t'],{data:_0x10ab5b}=_0x206348;if(!_0x10ab5b||'codeBlock'!=_0x10ab5b['commandName'])return;const _0x1f1c2a=_0x10ab5b['commandParams'][0x0]['language'],_0x7ca850=_0x484435(_0xc1f6df['find'](_0x3027f3=>_0x3027f3['language']===_0x1f1c2a)['label'])['toLowerCase']();return _0x10ab5b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ef9ae,'*Set\x20format:*\x20%0',o(_0x5ef9ae,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x7ca850+')')}:{'type':'format','content':o(_0x5ef9ae,'*Remove\x20format:*\x20%0',o(_0x5ef9ae,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x370424){return'codeBlock'==_0x370424['name'];}class Q extends _0xa1bc5{['afterInit'](){const _0x5057d5=this['editor'];if(!_0x5057d5['plugins']['has']('CommentsEditing'))return;_0x5057d5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x884dfb,_0x5b0405,_0xb85ce2){const _0x3416ef=[];for(const _0x224c9b of _0x5b0405['getItems']())_0x224c9b['hasAttribute'](_0x884dfb)&&_0x3416ef['push'](_0xb85ce2['createRangeOn'](_0x224c9b));return _0x3416ef;}function Ve(_0x5e530c,_0x2d3b90,{showActiveMarker:_0x25b4cf=!0x0}={}){const _0x523cdb=_0x5e530c['plugins']['get']('TrackChangesEditing');return(_0x2d8503,_0x5daafc,_0x1fbd12)=>{if(!_0x1fbd12['consumable']['test'](_0x5daafc['markerRange'],_0x2d8503['name']))return;const _0x3d50e3=_0x5daafc['markerRange']['getWalker'](),_0x2d1447=_0x5daafc['markerRange']['start'],_0x3eeb58=_0x5e530c['model']['schema'];let _0x1bd14c=null,_0x189420=null,_0x29475c=!0x1,_0x5d188d=!0x1;for(const _0x47679a of _0x3d50e3){const _0x3d462d=_0x47679a['item'];_0x29475c=_0x29475c||_0x3eeb58['isContent'](_0x3d462d);const _0x31e29b=_0x1fbd12['mapper']['toViewElement'](_0x3d462d);if(_0x31e29b&&_0x31e29b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x47679a['type']&&(_0x3eeb58['isBlock'](_0x3d462d)&&!_0x3eeb58['isLimit'](_0x3d462d)&&(_0x3d462d['nextSibling']||_0x2d1447['isAtEnd']?_0x1bd14c&&_0x1bd14c['parent']==_0x3d462d||(_0x1bd14c=_0x3d462d,_0x5cba8f(_0x47679a['previousPosition']),_0x5d188d=!0x0):_0x189420=_0x189420||_0x47679a['previousPosition']));}function _0x5cba8f(_0x3f38b8){const {id:_0x1ebf87,authorId:_0x39af79}=_0x523cdb['_splitMarkerName'](_0x5daafc['markerName']),_0x172926=_0x1fbd12['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d3b90,'data-suggestion':_0x1ebf87,'data-author-id':_0x39af79}),_0x35a159=_0x1fbd12['mapper']['toViewPosition'](_0x3f38b8);_0x25b4cf&&_0x523cdb['activeMarkers']['includes'](_0x5daafc['markerName'])&&_0x1fbd12['writer']['addClass']('ck-suggestion-marker--active',_0x172926),_0x1fbd12['writer']['insert'](_0x35a159,_0x172926),_0x1fbd12['mapper']['bindElementToMarker'](_0x172926,_0x5daafc['markerName']);}_0x29475c||_0x5d188d||!_0x189420||_0x5cba8f(_0x189420);};}class X extends _0xa1bc5{static get['requires'](){return[_0x4088aa];}['init'](){const _0x1e4935=this['editor'],_0x3aee08=_0x1e4935['plugins']['get']('TrackChangesEditing');_0x3aee08['enableCommand']('delete');const _0x4a0bad=_0x1e4935['commands']['get']('deleteForward');_0x3aee08['enableCommand']('deleteForward',(_0x3e3270,_0x315749={})=>{const _0x4ee793=_0x1e4935['model']['createSelection'](_0x1e4935['model']['document']['selection']);_0x4ee793['isCollapsed']&&_0x1e4935['model']['modifySelection'](_0x4ee793,{'direction':'forward','unit':_0x315749['unit']});const _0x1b9f83=_0x4ee793['getFirstRange'](),_0x2df2eb=_0x4be877['fromRange'](_0x1b9f83);let _0x2827b4;_0x3e3270(_0x315749),_0x2827b4='$graveyard'==_0x2df2eb['root']['rootName']?_0x1e4935['model']['createRange'](_0x1b9f83['start']):_0x1e4935['model']['createRange'](_0x2df2eb['start'],_0x2df2eb['end']),_0x2df2eb['detach'](),_0x1e4935['model']['enqueueChange'](_0x4a0bad['buffer']['batch'],_0x11acdd=>{_0x4a0bad['buffer']['lock'](),_0x11acdd['setSelection'](_0x11acdd['createRange'](_0x2827b4['end'])),_0x4a0bad['buffer']['unlock']();});}),_0x1e4935['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0x1e4935,'merge'),{'priority':'high'}),_0x1e4935['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x966ebd,_0x5c3bb5,_0x1445fb)=>{_0x1445fb['options']['showSuggestionHighlights']&&Ve(_0x1e4935,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x966ebd,_0x5c3bb5,_0x1445fb);},{'priority':'high'}),_0x1e4935['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1cb0bb,_0x507249,_0x58c805)=>{const _0x3809d4=_0x58c805['mapper']['markerNameToElements'](_0x507249['markerName']);if(_0x3809d4){for(const _0x13a24d of _0x3809d4)_0x13a24d['is']('uiElement')&&(_0x58c805['mapper']['unbindElementFromMarkerName'](_0x13a24d,_0x507249['markerName']),_0x58c805['writer']['remove'](_0x13a24d));}},{'priority':'high'});}}class Y extends _0xa1bc5{['afterInit'](){const _0x583742=this['editor'];if(!_0x583742['plugins']['has']('ListEditing'))return;const _0x1cce3d=_0x583742['locale'],_0x207cd6=_0x583742['plugins']['get']('TrackChangesEditing'),_0x35ad12=_0x583742['plugins']['has']('TodoListEditing'),_0x110eee=!!_0x583742['config']['get']('list.multiBlock');function _0x4aafb7(_0x58b188){return{'type':'format','content':''+o(_0x1cce3d,'*Set\x20format:*\x20%0',_0x58b188)};}function _0x541728(_0x12a941){return{'type':'format','content':''+o(_0x1cce3d,'*Remove\x20format:*\x20%0',_0x12a941)};}_0x207cd6['enableDefaultAttributesIntegration']('numberedList'),_0x207cd6['enableDefaultAttributesIntegration']('bulletedList'),_0x207cd6['enableDefaultAttributesIntegration']('customNumberedList'),_0x207cd6['enableDefaultAttributesIntegration']('customBulletedList'),_0x207cd6['enableDefaultAttributesIntegration']('indentList'),_0x207cd6['enableDefaultAttributesIntegration']('outdentList'),_0x207cd6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x207cd6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x207cd6['registerBlockAttribute']('listItemId'),_0x207cd6['registerBlockAttribute']('listType'),_0x207cd6['registerBlockAttribute']('listIndent'),_0x110eee&&(_0x207cd6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x207cd6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x35ad12&&(_0x207cd6['enableDefaultAttributesIntegration']('todoList'),_0x207cd6['enableDefaultAttributesIntegration']('checkTodoList'),_0x207cd6['registerBlockAttribute']('todoListChecked'),_0x207cd6['descriptionFactory']['registerDescriptionCallback'](_0xea8f3a=>{const {data:_0x3a20bf}=_0xea8f3a;if(_0x3a20bf&&'todoListChecked'==_0x3a20bf['key'])return{'type':'format','content':_0x3a20bf['newValue']?o(_0x1cce3d,'*Check\x20item*'):o(_0x1cce3d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x381eca=>{if(_0x381eca['batch']['isUndo'])return!0x1;let _0xa56153=!0x1;const _0xfaf09c=_0x207cd6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x579f9b=>'todoListChecked'===_0x207cd6['_getAttributeKey'](_0x579f9b));for(const _0x18cb15 of _0xfaf09c){'todo'!=_0x18cb15['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x207cd6['_findSuggestions'](_0x18cb15['getFirstRange'](),'attribute')['find'](_0x24c34f=>'listType'===_0x207cd6['_getAttributeKey'](_0x24c34f['suggestion']))||(_0x381eca['removeMarker'](_0x18cb15['getFirstMarker']()),_0xa56153=!0x0));}return _0xa56153;})),_0x207cd6['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1cce3d,'FORMAT_INDENT'));const _0x4d3cd8={'type':'format','content':''};_0x207cd6['descriptionFactory']['registerDescriptionCallback'](_0x587b2b=>{const {data:_0x865c58}=_0x587b2b;if(!_0x865c58||'listType'!=_0x865c58['key'])return;let _0x3d9692=_0x587b2b['head'];for(;_0x3d9692;){if(_0x3d9692['data']&&(('listStyle'==_0x3d9692['data']['key']||'listMarkerStyle'==_0x3d9692['data']['key'])&&(_0x3d9692['data']['newValue']&&'default'!=_0x3d9692['data']['newValue']||'default'!=_0x3d9692['data']['oldValue']&&!_0x865c58['newValue'])||!_0x110eee&&_0x3d9692['data']['key']==m))return _0x4d3cd8;_0x3d9692=_0x3d9692['next'];}if(null==_0x865c58['newValue'])switch(_0x865c58['oldValue']){case'bulleted':return _0x541728(o(_0x1cce3d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x541728(o(_0x1cce3d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x541728(o(_0x1cce3d,'ELEMENT_TODO_LIST'));}switch(_0x865c58['newValue']){case'bulleted':return _0x4aafb7(o(_0x1cce3d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4aafb7(o(_0x1cce3d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4aafb7(o(_0x1cce3d,'ELEMENT_TODO_LIST'));}}),_0x207cd6['descriptionFactory']['registerDescriptionCallback'](_0x49a849=>{const {data:_0x43524}=_0x49a849;if(_0x43524&&'listIndent'==_0x43524['key'])return null==_0x43524['newValue']||null==_0x43524['oldValue']&&0x0==_0x43524['newValue']?_0x4d3cd8:void 0x0;}),_0x207cd6['descriptionFactory']['registerDescriptionCallback'](_0x448675=>{if('attribute'!=_0x448675['type'])return;const {data:_0x4883d}=_0x448675;if(!_0x4883d||'listItemId'!=_0x4883d['key'])return;const _0x145eed=Be(_0x448675);return'newValue'==_0x145eed?{'type':'format','content':o(_0x1cce3d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x145eed?{'type':'format','content':o(_0x1cce3d,'*Split:*\x20list\x20item')}:_0x4d3cd8;}),_0x583742['model']['document']['registerPostFixer'](_0x3b64cd=>this['listItemIdFixer'](_0x3b64cd)),_0x583742['model']['document']['registerPostFixer'](_0x37034e=>this['noTrackChangesFixer'](_0x37034e)),_0x583742['model']['document']['on']('change:data',(_0x35ee29,_0xcd6358)=>{if(_0xcd6358['isUndo']||!_0xcd6358['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x16e415){if(_0x16e415['batch']['isUndo']||!_0x16e415['batch']['isLocal'])return!0x1;let _0x22a398=!0x1;const _0x2dca47=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d5b83=>_0x4d5b83['data']&&'listItemId'==_0x4d5b83['data']['key'])['filter'](_0x2beaff=>_0x2beaff['data']['newValue']&&_0x2beaff['data']['oldValue']);for(const _0x308d4d of _0x2dca47)Be(_0x308d4d)||(_0x16e415['removeMarker'](_0x308d4d['getFirstMarker']()),_0x22a398=!0x0);return _0x22a398;}['noTrackChangesFixer'](_0x517763){if(_0x517763['batch']['isUndo']||!_0x517763['batch']['isLocal'])return!0x1;const _0x1de955=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1de955['trackChangesCommand']['value'])return!0x1;let _0x421595=!0x1;const _0x31fe76=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x31b5dd=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x214d13=>'attribute'==_0x214d13['type'])['filter'](_0x13bf50=>_0x31fe76['includes'](_0x13bf50['attributeKey']));if(0x0==_0x31b5dd['length'])return _0x421595;for(const _0x5cd7bc of _0x31b5dd){const _0x227974=_0x1de955['_findSuggestions'](_0x5cd7bc['range'],'attribute')['filter'](_0x51cb1d=>!_0x51cb1d['meta']['isNextTo'])['map'](_0x118611=>_0x118611['suggestion'])['filter'](_0x432daf=>{const _0xdf4b0f=_0x1de955['_getAttributeKey'](_0x432daf);return _0x31fe76['includes'](_0xdf4b0f);});if(_0x227974['length']){for(const _0x211440 of _0x227974)_0x517763['removeMarker'](_0x211440['getFirstMarker']());_0x421595=!0x0;}}return _0x421595;}['assureChains'](){const _0x5a6b8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26d79f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x49fd6d;const _0x5a9e07=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x162d68=>{if(_0x162d68['data']['oldRange']||!_0x162d68['data']['newRange'])return null;if(!_0x162d68['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3e9f41}=_0x5a6b8e['_splitMarkerName'](_0x162d68['name']);if(!_0x5a6b8e['hasSuggestion'](_0x3e9f41))return null;const _0x230088=_0x5a6b8e['getSuggestion'](_0x3e9f41);return _0x26d79f['includes'](_0x230088['data']['key']);})['map'](_0x204850=>{const {id:_0x31c894}=_0x5a6b8e['_splitMarkerName'](_0x204850['name']),_0x5eebdd=_0x5a6b8e['getSuggestion'](_0x31c894);return _0x49fd6d=_0x5eebdd['attributes']['groupId'],_0x5eebdd['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5a9e07['size'])return;const _0xb3cdd1=_0x5a6b8e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x176e2f=>'attribute'==_0x176e2f['type']&&_0x176e2f['data']&&_0x26d79f['includes'](_0x176e2f['data']['key'])&&_0x176e2f['attributes']['groupId']!=_0x49fd6d)['map'](_0x230a4b=>({'listItem':_0x230a4b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x230a4b['attributes']['groupId']})),_0x306ef7=new Set();for(const {groupId:_0x3bbb17,listItem:_0x5eaff2}of _0xb3cdd1)_0x5a9e07['has'](_0x5eaff2)&&_0x306ef7['add'](_0x3bbb17);for(const _0x343de7 of _0x5a6b8e['getSuggestions']())_0x306ef7['has'](_0x343de7['attributes']['groupId'])&&_0x343de7['setAttribute']('groupId',_0x49fd6d);}['_supportLegacySuggestions'](){const _0x4c0080=this['editor'],_0x1ba2a9=_0x4c0080['locale'],_0x3b0f54=_0x4c0080['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3b0f54['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x40a56d,_0x5b97fb){const _0x34755d=[];for(let _0x188818 of _0x40a56d)_0x188818['start']['nodeAfter']===_0x188818['end']['parent']&&(_0x188818=_0x4c0080['model']['createRange'](_0x4c0080['model']['createPositionAt'](_0x188818['start']['nodeAfter'],0x0))),_0x34755d['push'](_0x188818);_0x4c0080['model']['change'](_0x48a499=>{const _0x3d04a1=_0x4c0080['model']['document']['selection'],_0x9c38a2=Array['from'](_0x3d04a1['getRanges']())['map'](_0x6a66ba=>_0x4be877['fromRange'](_0x6a66ba));_0x48a499['setSelection'](_0x34755d),_0x4c0080['commands']['get'](_0x5b97fb['commandName'])['refresh'](),_0x5b97fb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4c0080['execute'](_0x5b97fb['commandName'],..._0x5b97fb['commandParams']),_0x48a499['setSelection'](_0x9c38a2);for(const _0x218938 of _0x9c38a2)_0x218938['detach']();});}),_0x3b0f54['descriptionFactory']['registerElementLabel'](function(_0x29b8bd){const _0x327625=!_0x4c0080['model']['schema']['isObject'](_0x29b8bd),_0x2ce727=_0x29b8bd['previousSibling'],_0x5838f9=_0x29b8bd['nextSibling'],_0x286e71=_0x29b8bd['getAttribute']('listItemId'),_0xc7dc9f=!_0x2ce727||_0x2ce727['getAttribute']('listItemId')!==_0x286e71,_0x4f72e7=!_0x5838f9||_0x5838f9['getAttribute']('listItemId')!==_0x286e71;return _0x327625&&Boolean(_0x286e71)&&_0xc7dc9f&&_0x4f72e7;},_0x32d06e=>o(_0x1ba2a9,'ELEMENT_LIST_ITEM',_0x32d06e));}['_registerLegacyDescription'](){const _0x256fc8=this['editor'],_0x395f88=_0x256fc8['locale'];function _0x5854eb(_0x245c08){const _0x318a83=_0x256fc8['commands']['get']('bulletedList')['value'],_0x54ba38=_0x256fc8['commands']['get']('numberedList')['value'];return'numberedList'===_0x245c08?_0x318a83:_0x54ba38;}_0x256fc8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3dfc39){if('formatBlock'!=_0x3dfc39['type'])return;const {data:_0x3e0f20}=_0x3dfc39;if(!_0x3e0f20)return;let _0x180530,_0x23e459,_0x51b5c5,_0x24f67a;switch(_0x3e0f20['commandName']){case'bulletedList':_0x51b5c5=_0x3e0f20['commandParams'][0x0]['forceValue'],_0x24f67a=_0x5854eb(_0x3e0f20['commandName']),_0x180530=_0x51b5c5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x24f67a&&_0x256fc8['config']['get']('list.multiBlock')||(_0x180530='*Change\x20to:*\x20%0'),_0x23e459={'type':'format','content':o(_0x395f88,_0x180530,o(_0x395f88,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x51b5c5=_0x3e0f20['commandParams'][0x0]['forceValue'],_0x24f67a=_0x5854eb(_0x3e0f20['commandName']),_0x180530=_0x51b5c5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x24f67a&&_0x256fc8['config']['get']('list.multiBlock')||(_0x180530='*Change\x20to:*\x20%0'),_0x23e459={'type':'format','content':o(_0x395f88,_0x180530,o(_0x395f88,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x180530='*Indent:*\x20%0',_0x23e459={'type':'format','content':o(_0x395f88,_0x180530,o(_0x395f88,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x180530=function(_0x95fccd){const _0x87cff1=_0x95fccd['getFirstRange']();let _0xaf1381=_0x87cff1['start']['nodeAfter'];for(;_0xaf1381&&_0x87cff1['containsItem'](_0xaf1381);){if(_0xaf1381['getAttribute']('listIndent')>0x0)return!0x1;_0xaf1381=_0xaf1381['nextSibling'];}return!0x0;}(_0x3dfc39)?o(_0x395f88,'*Format:*\x20remove\x20from\x20%0',o(_0x395f88,function(_0x2eab37){return'ELEMENT_'+_0x2eab37['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3dfc39))):o(_0x395f88,'*Outdent:*\x20%0',o(_0x395f88,'ELEMENT_LIST_ITEM')),_0x23e459={'type':'format','content':_0x180530};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3e0f20['multipleBlocks']&&(_0x180530='*Merge:*\x20%0',_0x23e459={'type':'deletion','content':o(_0x395f88,_0x180530,o(_0x395f88,'ELEMENT_LIST_ITEM'))});}return _0x23e459;});}}function Be(_0x48c1a7){let _0x29563d=_0x48c1a7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x29563d;){const _0x1e4558=_0x29563d['getAttribute']('listItemId');if(!_0x1e4558)return!0x1;if(_0x1e4558==_0x48c1a7['data']['newValue'])return'newValue';if(_0x1e4558==_0x48c1a7['data']['oldValue'])return'oldValue';_0x29563d=_0x29563d['previousSibling'];}return!0x1;}class Z extends _0xa1bc5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xb91795=this['editor']['config']['get']('list.properties'),_0x50457f=this['editor']['plugins']['get']('TrackChangesEditing');_0xb91795['styles']&&(_0x50457f['enableDefaultAttributesIntegration']('listStyle'),_0x50457f['registerBlockAttribute']('listStyle')),_0xb91795['reversed']&&(_0x50457f['enableDefaultAttributesIntegration']('listReversed'),_0x50457f['registerBlockAttribute']('listReversed')),_0xb91795['startIndex']&&(_0x50457f['enableDefaultAttributesIntegration']('listStart'),_0x50457f['registerBlockAttribute']('listStart'));const _0x46cd97={'type':'format','content':''};_0x50457f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4d60c3=this['editor']['locale'];_0x50457f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4d60c3,'FORMAT_LIST_REVERSED')),_0x50457f['descriptionFactory']['registerDescriptionCallback'](_0xc2e03a=>{const {data:_0x36b078}=_0xc2e03a;if(_0x36b078&&'listReversed'==_0x36b078['key'])return null==_0x36b078['newValue']||0x0==_0x36b078['newValue']&&null==_0x36b078['oldValue']?_0x46cd97:void 0x0;}),_0x50457f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4d60c3,'FORMAT_LIST_START')),_0x50457f['descriptionFactory']['registerDescriptionCallback'](_0x421ca6=>{const {data:_0x6b3ecd}=_0x421ca6;if(_0x6b3ecd&&'listStart'==_0x6b3ecd['key'])return null==_0x6b3ecd['newValue']||0x1==_0x6b3ecd['newValue']&&null==_0x6b3ecd['oldValue']?_0x46cd97:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x26ddfb=>{if(_0x26ddfb['batch']['isUndo'])return!0x1;let _0x178b9d=!0x1;const _0x552a8e=_0x50457f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x274d57=>{const _0x4be97b=_0x50457f['_getAttributeKey'](_0x274d57);return'listStart'==_0x4be97b||'listReversed'==_0x4be97b;});for(const _0x21efbe of _0x552a8e){const _0x5e5df5=_0x21efbe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5e5df5||'customNumbered'==_0x5e5df5)continue;_0x50457f['_findSuggestions'](_0x21efbe['getFirstRange'](),'attribute')['find'](_0x36d7c6=>'listType'==_0x50457f['_getAttributeKey'](_0x36d7c6['suggestion']))||(_0x26ddfb['removeMarker'](_0x21efbe['getFirstMarker']()),_0x178b9d=!0x0);}return _0x178b9d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1d8a7a){const _0x2cc82a=this['editor']['locale'],{data:_0x2fe914}=_0x1d8a7a,_0x49368e={'type':'format','content':''};if(!_0x2fe914||'listStyle'!=_0x2fe914['key'])return;if(!_0x2fe914['oldValue'])return'default'==_0x2fe914['newValue']?_0x49368e:{'type':'format','content':''+o(_0x2cc82a,'*Set\x20format:*\x20%0',o(_0x2cc82a,this['_getTranslationKeyForListStyle'](_0x2fe914['newValue'])))};if(!_0x2fe914['newValue']){if('default'==_0x2fe914['oldValue'])return _0x49368e;let _0x14ebf7=_0x1d8a7a['head'];for(;_0x14ebf7;){if(_0x14ebf7['data']&&'listType'==_0x14ebf7['data']['key']&&_0x14ebf7['data']['newValue'])return _0x49368e;_0x14ebf7=_0x14ebf7['next'];}return{'type':'format','content':''+o(_0x2cc82a,'*Remove\x20format:*\x20%0',o(_0x2cc82a,this['_getTranslationKeyForListStyle'](_0x2fe914['oldValue'])))};}if('default'!=_0x2fe914['newValue'])return{'type':'format','content':''+o(_0x2cc82a,'*Set\x20format:*\x20%0',o(_0x2cc82a,this['_getTranslationKeyForListStyle'](_0x2fe914['newValue'])))};let _0x339078=_0x1d8a7a['head'];for(;_0x339078;){if(_0x339078['data']&&'listType'==_0x339078['data']['key']&&_0x339078['data']['newValue']&&_0x339078['data']['oldValue'])return _0x49368e;_0x339078=_0x339078['next'];}return{'type':'format','content':o(_0x2cc82a,'*Set\x20format:*\x20%0',o(_0x2cc82a,'ELEMENT_'+_0x1d8a7a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4c143f=this['editor'],_0x3a090e=_0x4c143f['locale'];_0x4c143f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3797ca=>{if('formatBlock'!=_0x3797ca['type'])return;const {data:_0x3e770b}=_0x3797ca;if(!_0x3e770b)return;let _0x320ca3,_0x432075;switch(_0x3e770b['commandName']){case'listStyle':_0x320ca3='*Change\x20to:*\x20%0',_0x432075={'type':'format','content':o(_0x3a090e,_0x320ca3,o(_0x3a090e,this['_getTranslationKeyForListStyle'](_0x3e770b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x320ca3=_0x3e770b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x432075={'type':'format','content':o(_0x3a090e,_0x320ca3)};break;case'listStart':_0x320ca3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x432075={'type':'format','content':o(_0x3a090e,_0x320ca3,_0x3e770b['commandParams'][0x0]['startIndex'])};}return _0x432075;});}['_getTranslationKeyForListStyle'](_0x82b022){return'ELEMENT_'+function(_0x2cb88e){if(Re['includes'](_0x2cb88e))return'bulleted';if(De['includes'](_0x2cb88e))return'numbered';return null;}(_0x82b022)['toUpperCase']()+'_LIST_'+_0x82b022['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0xa1bc5{['afterInit'](){const _0x49c8ec=this['editor'];_0x49c8ec['commands']['get']('emoji')&&_0x49c8ec['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0xa1bc5{static get['requires'](){return[_0x57f81e];}['init'](){const _0x185705=this['editor'],_0x393341=_0x185705['plugins']['get']('TrackChangesEditing'),_0x286f59=_0x185705['commands']['get']('enter');_0x393341['enableCommand']('enter',()=>{_0x185705['model']['change'](_0x409eb8=>{const _0xc308fd=_0x185705['model']['document']['selection'],_0x25c83=_0xc308fd['getFirstPosition'](),_0x34df85=_0x4be877['fromRange'](_0xc308fd['getFirstRange']());if(_0x286f59['enterBlock'](_0x409eb8)){const _0x5be099=_0x185705['model']['createPositionAt'](_0x25c83['parent']['nextSibling'],0x0),_0x240b73=_0x409eb8['createRange'](_0x25c83,_0x5be099);_0x393341['markInsertion'](_0x240b73);}else _0x409eb8['setSelection'](_0x409eb8['createRange'](_0x34df85['end']));_0x34df85['detach'](),_0x286f59['fire']('afterExecute',{'writer':_0x409eb8});});}),_0x185705['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0x185705,'split'),{'priority':'high'}),_0x185705['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4c8678,_0x2553e0,_0x3a906e)=>{const _0xa12f86=_0x3a906e['mapper']['markerNameToElements'](_0x2553e0['markerName']);if(_0xa12f86){for(const _0x1608a5 of _0xa12f86)_0x1608a5['hasClass']('ck-suggestion-marker-split')&&(_0x3a906e['mapper']['unbindElementFromMarkerName'](_0x1608a5,_0x2553e0['markerName']),_0x3a906e['writer']['remove'](_0x1608a5));}},{'priority':'high'}),_0x185705['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3d7cf2,_0x26dffd,_0x95cebd)=>{_0x95cebd['options']['showSuggestionHighlights']&&Ve(_0x185705,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3d7cf2,_0x26dffd,_0x95cebd);},{'priority':'high'});}}class it extends _0xa1bc5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x49999=this['editor']['plugins']['get']('TrackChangesEditing');_0x49999['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x49999['enableCommand']('findNext'),_0x49999['enableCommand']('findPrevious'),_0x49999['enableCommand']('replace'),_0x49999['enableCommand']('replaceAll');}['handleFindCommand'](_0x47aebb,_0x18d5a2,_0x30ffd5={}){const _0x132ef9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x47aebb(_0x5b092f=>{let _0x1d7bd4=('string'==typeof _0x18d5a2?_0x132ef9['findByTextCallback'](_0x18d5a2,_0x30ffd5):_0x18d5a2)(_0x5b092f);Array['isArray'](_0x1d7bd4)&&(_0x1d7bd4={'results':_0x1d7bd4,'searchText':'string'==typeof _0x18d5a2?_0x18d5a2:''});const _0x248bdd=_0x1d7bd4['results']['filter'](_0x304808=>!0x1===this['_isInDeletionRange'](_0x304808,_0x5b092f['item']));return{..._0x1d7bd4,'results':_0x248bdd};},_0x30ffd5);}['_isInDeletionRange'](_0xcce5f7,_0x2996ea){const _0x26935c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2996ea,_0xcce5f7['start']),this['editor']['model']['createPositionAt'](_0x2996ea,_0xcce5f7['end']));for(const _0x20392f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x26935c['getIntersection'](_0x20392f['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0xa1bc5{['afterInit'](){const _0x1fff60=this['editor']['locale'],_0x29b82e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4453f6,commandName:_0x5cc4a}of eo)this['editor']['plugins']['has'](_0x4453f6)&&(_0x29b82e['enableDefaultAttributesIntegration'](_0x5cc4a),_0x29b82e['registerInlineAttribute'](_0x5cc4a));_0x29b82e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1fff60,'FORMAT_FONT_SIZE')),_0x29b82e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1fff60,'FORMAT_FONT_FAMILY')),_0x29b82e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1fff60,'FORMAT_FONT_COLOR')),_0x29b82e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1fff60,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21f231=this['editor'],_0x2ac9f0=_0x21f231['locale'];_0x21f231['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47c6f8=>{const _0x20a28f=_0x2ac9f0['t'];if('formatInline'!=_0x47c6f8['type'])return;const {data:_0x54e6e4}=_0x47c6f8;if(null!=_0x54e6e4){if('fontSize'==_0x54e6e4['commandName']){const _0x318c06=_0x54e6e4['commandParams'][0x0]['value'];if(_0x318c06){const _0x3fadaf=_0x20a28f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x21ba24=>_0x21ba24['model']==_0x318c06)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2ac9f0,'*Set\x20font\x20size:*\x20%0',_0x3fadaf)};}return{'type':'format','content':o(_0x2ac9f0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x54e6e4['commandName']){const _0x480c3a=_0x54e6e4['commandParams'][0x0]['value'];return _0x480c3a?{'type':'format','content':o(_0x2ac9f0,'*Set\x20font\x20family:*\x20%0',_0x480c3a)}:{'type':'format','content':o(_0x2ac9f0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x54e6e4['commandName']){const _0xae1f14=_0x54e6e4['commandParams'][0x0]['value'];if(_0xae1f14){const _0x31312b=_0x11673c(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1fe7ea=>_0x1fe7ea['model']==_0xae1f14);let _0x43d2ae=_0xae1f14,_0xe52db4='';return _0x31312b&&(_0x43d2ae=_0x31312b['label'],_0xe52db4=_0x20a28f(_0x43d2ae)['toLowerCase']()),{'type':'format','content':o(_0x2ac9f0,'*Set\x20font\x20color:*\x20%0',_0xe52db4)['trim'](),'color':{'value':_0xae1f14,'title':_0xe52db4||_0x43d2ae}};}return{'type':'format','content':o(_0x2ac9f0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x54e6e4['commandName']){const _0xc61a2f=_0x54e6e4['commandParams'][0x0]['value'];if(_0xc61a2f){const _0x466cf1=_0x11673c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x32070c=>_0x32070c['model']==_0xc61a2f);let _0x2c19d2=_0xc61a2f,_0x1fc161='';return _0x466cf1&&(_0x2c19d2=_0x466cf1['label'],_0x1fc161=_0x20a28f(_0x2c19d2)['toLowerCase']()),{'type':'format','content':o(_0x2ac9f0,'*Set\x20font\x20background\x20color:*\x20%0',_0x1fc161)['trim'](),'color':{'value':_0xc61a2f,'title':_0x1fc161||_0x2c19d2}};}return{'type':'format','content':o(_0x2ac9f0,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0xa1bc5{['afterInit'](){const _0x1a40ec=this['editor'],_0x73f553=_0x1a40ec['plugins']['get']('TrackChangesEditing'),_0x5297d9=_0x1a40ec['commands']['get']('copyFormat'),_0x3f3d4f=_0x1a40ec['commands']['get']('pasteFormat');_0x5297d9&&_0x3f3d4f&&(_0x73f553['enableDefaultAttributesIntegration']('pasteFormat'),_0x73f553['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x18c4b7=this['editor'],_0x1403a3=_0x18c4b7['locale'];_0x18c4b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25fe05=>{if('formatBlock'!=_0x25fe05['type']&&'formatInline'!=_0x25fe05['type'])return;const {data:_0x451d91}=_0x25fe05;if(_0x451d91&&'pasteFormat'===_0x451d91['commandName']){const _0x5ca80d=[],_0x4401f1=_0x451d91['commandParams'][0x0];for(const [_0x49620e,_0x3d0000]of Object['entries'](_0x4401f1))_0x5ca80d['push'](ro(_0x18c4b7,_0x49620e,_0x3d0000));return _0x5ca80d['length']?{'type':'format','content':o(_0x1403a3,'*Set\x20format\x20to:*\x20%0',_0x5ca80d['join'](',\x20'))}:{'type':'format','content':o(_0x1403a3,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1bfee6,_0x4d96a0,_0x1afc06){const _0x1ef76c=_0x1bfee6['locale']['t'],_0x77ac37=_0x4d96a0['split'](/(?=[A-Z])/)['join']('\x20'),_0x584fe3=_0x1ef76c(_0x77ac37['charAt'](0x0)['toUpperCase']()+_0x77ac37['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1afc06)return _0x584fe3;if('fontColor'===_0x4d96a0||'fontBackgroundColor'===_0x4d96a0){const _0xd49fd2=_0x11673c(_0x1bfee6['config']['get']('fontColor.colors'))['find'](_0x4dca72=>_0x4dca72['model']==_0x1afc06);return _0x584fe3+'\x20('+(_0xd49fd2?_0x1ef76c(_0xd49fd2['label'])['toLowerCase']():_0x1afc06)+')';}if('fontSize'===_0x4d96a0&&isNaN(parseFloat(_0x1afc06))){const _0xea0ad0=_0x1bfee6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1bfee6['config']['get']('fontSize.options'))['find'](_0x10196a=>_0x10196a['model']==_0x1afc06);return _0x584fe3+'\x20('+(_0xea0ad0?_0x1ef76c(_0xea0ad0['title'])['toLowerCase']():_0x1afc06)+')';}return _0x584fe3+'\x20('+_0x1afc06+')';}class ot extends _0xa1bc5{['_headingOptions'];['afterInit'](){const _0x6ed3ea=this['editor'];if(!_0x6ed3ea['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x6ed3ea['config']['get']('heading.options');const _0x37afa9=_0x6ed3ea['locale'],_0x55e8f3=_0x6ed3ea['plugins']['get']('TrackChangesEditing');_0x55e8f3['enableDefaultAttributesIntegration']('heading');for(const _0xcc9277 of this['_headingOptions'])'paragraph'!=_0xcc9277['model']&&_0x55e8f3['descriptionFactory']['registerElementLabel'](_0xcc9277['model'],_0x2c55ef=>{const _0x598ec0=this['_getHeadingLevel'](_0xcc9277['model']);return null!==_0x598ec0?_0x1845d9(_0x2c55ef,_0x598ec0):_0x353977(_0x2c55ef,_0xcc9277['title']);});function _0x1845d9(_0x3d38f1,_0x13eb7e){return o(_0x37afa9,'ELEMENT_HEADING',[_0x3d38f1,_0x13eb7e]);}function _0x353977(_0x51a276,_0x4e6583){return o(_0x37afa9,'ELEMENT_HEADING_CUSTOM',[_0x51a276,_0x4e6583]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bdc47=this['editor'],_0x307688=_0x3bdc47['locale'];function _0x2027cf(_0x32e09a,_0x31dca8){return o(_0x307688,'ELEMENT_HEADING_CUSTOM',[_0x32e09a,_0x31dca8]);}_0x3bdc47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x435bb6=>{if('formatBlock'!=_0x435bb6['type'])return;const {data:_0x12d73b}=_0x435bb6;if(_0x12d73b&&'heading'==_0x12d73b['commandName']){const _0x19f5ca=_0x12d73b['commandParams'][0x0]['value'],_0x4bf1eb=this['_getHeadingLevel'](_0x19f5ca);if(null!==_0x4bf1eb)return{'type':'format','content':o(_0x307688,'*Change\x20to:*\x20%0',(_0x45ce67=0x1,_0x402b02=_0x4bf1eb,o(_0x307688,'ELEMENT_HEADING',[_0x45ce67,_0x402b02])))};const _0x150a7f=this['_headingOptions']['find'](_0x4d3ba8=>_0x4d3ba8['model']===_0x19f5ca)['title'];return{'type':'format','content':o(_0x307688,'*Change\x20to:*\x20%0',_0x2027cf(0x1,_0x150a7f))};}var _0x45ce67,_0x402b02;});}['_getHeadingLevel'](_0x4d80d4){const _0x1710e6=_0x4d80d4['match'](/^heading(\d+)/);if(_0x1710e6)return _0x1710e6[0x1];const _0x1c8073=this['_headingOptions']?.['find'](_0x4bd9cf=>_0x4bd9cf['model']==_0x4d80d4);if(_0x1c8073&&_0x1c8073['view']){const _0x2dd7cc=_0x1c8073['view'],_0x21a7d0=(_0x2dd7cc['name']??_0x2dd7cc)['match'](/^h(\d+)/);if(_0x21a7d0)return _0x21a7d0[0x1];}return null;}}class rt extends _0xa1bc5{['afterInit'](){const _0xdaa3f7=this['editor'];if(!_0xdaa3f7['plugins']['has']('HighlightEditing'))return;const _0x356e53=_0xdaa3f7['plugins']['get']('TrackChangesEditing'),_0x172dac=_0xdaa3f7['locale'];_0x356e53['enableDefaultAttributesIntegration']('highlight'),_0x356e53['registerInlineAttribute']('highlight'),_0x356e53['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x172dac,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa05ed5=this['editor'],_0x100957=_0xa05ed5['locale'];_0xa05ed5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e99b3=>{if('formatInline'!=_0x3e99b3['type'])return;const {data:_0x488965}=_0x3e99b3;if(_0x488965&&'highlight'==_0x488965['commandName']){const _0x1ff06d=_0x100957['t'],_0x3120de=_0x488965['commandParams'][0x0]['value'];if(_0x3120de){const _0x3e2887=_0xa05ed5['config']['get']('highlight.options')['find'](_0x4fdce5=>_0x4fdce5['model']==_0x3120de),_0x201b3c=_0x1ff06d(_0x3e2887['title'])['toLowerCase']();return{'type':'format','content':o(_0x100957,'*Set\x20highlight:*\x20%0',_0x201b3c),'color':{'value':_0x3e2887['color'],'title':_0x3e2887['title']}};}return{'type':'format','content':o(_0x100957,'*Remove\x20highlight*',o(_0x100957,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0xa1bc5{['afterInit'](){const _0xec455a=this['editor'];if(!_0xec455a['plugins']['has']('HorizontalLineEditing'))return;_0xec455a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5e0b71=_0xec455a['plugins']['get']('TrackChangesEditing'),_0x402797=_0xec455a['locale'];_0x5e0b71['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1df30f=>o(_0x402797,'ELEMENT_HORIZONTAL_LINE',_0x1df30f)),_0xec455a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3717e0,{writer:_0x3d6f32,options:_0x33f319})=>{if(!_0x33f319['showSuggestionHighlights'])return null;const _0x21f3cf=_0x3d6f32['createContainerElement']('div'),_0x15371f=_0x3d6f32['createEmptyElement']('hr');return _0x3d6f32['addClass']('ck-horizontal-line',_0x21f3cf),_0x3d6f32['insert'](_0x3d6f32['createPositionAt'](_0x21f3cf,0x0),_0x15371f),_0x21f3cf;},'converterPriority':'high'});}}class ct extends _0xa1bc5{['afterInit'](){const _0x39565f=this['editor'];if(!_0x39565f['plugins']['has']('HtmlEmbed'))return;const _0x2a8484=_0x39565f['plugins']['get']('TrackChangesEditing'),_0x7067aa=_0x39565f['locale'];_0x2a8484['descriptionFactory']['registerElementLabel']('rawHtml',_0xdfd28b=>o(_0x7067aa,'ELEMENT_HTML_EMBED',_0xdfd28b)),_0x2a8484['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2a8484['registerBlockAttribute']('value'),_0x2a8484['descriptionFactory']['registerDescriptionCallback'](_0x20b97c=>{if('attribute'!=_0x20b97c['type'])return;const {data:_0x575870}=_0x20b97c;if(_0x575870&&'value'==_0x575870['key']&&_0x20b97c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x9ffdac=o(_0x7067aa,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x7067aa,'*Change\x20%0\x20content*',_0x9ffdac)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9913ab=this['editor'],_0x4a926c=_0x9913ab['locale'];_0x9913ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20cfb2=>{if('formatBlock'!=_0x20cfb2['type'])return;const {data:_0x303938}=_0x20cfb2;if(_0x303938&&'htmlEmbed'==_0x303938['commandName']){const _0x5c4a06=o(_0x4a926c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4a926c,'*Change\x20%0\x20content*',_0x5c4a06)};}});}}class ut extends _0xa1bc5{['afterInit'](){const _0x4d2981=this['editor'];if(!_0x4d2981['plugins']['has']('ImageEditing'))return;const _0x8222ea=_0x4d2981['plugins']['get']('TrackChangesEditing'),_0x220870=_0x4d2981['plugins']['get']('ImageUtils'),_0x4a11fe=_0x4d2981['locale'];_0x8222ea['enableCommand']('insertImage'),_0x8222ea['descriptionFactory']['registerElementLabel']('imageBlock',_0x97c506=>o(_0x4a11fe,'ELEMENT_IMAGE',_0x97c506)),_0x8222ea['descriptionFactory']['registerElementLabel']('imageInline',_0x2d3e65=>o(_0x4a11fe,'ELEMENT_INLINE_IMAGE',_0x2d3e65)),_0x8222ea['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4a11fe,'ELEMENT_CAPTION')),_0x4d2981['plugins']['has']('ImageUploadEditing')&&_0x8222ea['enableCommand']('uploadImage'),_0x4d2981['plugins']['has']('ImageBlockEditing')&&_0x4d2981['plugins']['has']('ImageInlineEditing')&&(_0x8222ea['enableCommand']('imageTypeInline',(_0x1f46f3,_0x4c90d9)=>{const _0x12fe5d=_0x220870['getClosestSelectedImageElement'](_0x4d2981['model']['document']['selection']);_0x4d2981['model']['change'](()=>{_0x8222ea['markBlockFormat'](_0x12fe5d,{'commandName':'imageTypeInline','commandParams':[_0x4c90d9]},[],'convertBlockImageToInline');});}),_0x8222ea['enableCommand']('imageTypeBlock',(_0x38f8de,_0x3a6f78)=>{_0x4d2981['model']['change'](_0x9cb3ae=>{let _0x44a440=_0x220870['getClosestSelectedImageElement'](_0x4d2981['model']['document']['selection']),_0x52c4b5=_0x9cb3ae['createRangeOn'](_0x44a440);const _0x564494=_0x4214f1['fromPosition'](_0x52c4b5['start'],'toPrevious'),_0x519c7b=_0x4214f1['fromPosition'](_0x52c4b5['end'],'toNext');_0x8222ea['forceDefaultExecution'](()=>_0x38f8de(_0x3a6f78)),_0x44a440=_0x220870['getClosestSelectedImageElement'](_0x4d2981['model']['document']['selection']),_0x52c4b5=_0x9cb3ae['createRangeOn'](_0x44a440);const _0x3a20a4=_0x9cb3ae['createRange'](_0x564494,_0x519c7b);_0x564494['detach'](),_0x519c7b['detach'](),_0x8222ea['markBlockFormat'](_0x44a440,{'commandName':'imageTypeInline','commandParams':[_0x3a6f78]},[],'convertInlineImageToBlock'),_0x3a20a4['start']['isBefore'](_0x52c4b5['start'])&&_0x8222ea['markInsertion'](_0x9cb3ae['createRange'](_0x3a20a4['start'],_0x52c4b5['start']),'convertInlineImageToBlock'),_0x52c4b5['end']['isBefore'](_0x3a20a4['end'])&&_0x8222ea['markInsertion'](_0x9cb3ae['createRange'](_0x52c4b5['end'],_0x3a20a4['end']),'convertInlineImageToBlock');});}),_0x8222ea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8222ea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8222ea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8222ea['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8222ea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8222ea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1f4193])=>{const _0xcfb0a9=_0x8222ea['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x53eccf=_0x1f4193['start'],_0x2f7aaa=_0x1f4193['end'];const _0x81e305=_0x4d2981['model']['schema']['getNearestSelectionRange'](_0x53eccf,'backward'),_0xd347f9=_0x4d2981['model']['schema']['getNearestSelectionRange'](_0x2f7aaa,'forward');_0x81e305['isCollapsed']&&(_0x53eccf=_0x81e305['start']),_0xd347f9['isCollapsed']&&(_0x2f7aaa=_0xd347f9['end']),_0xcfb0a9([_0x4d2981['model']['createRange'](_0x53eccf,_0x2f7aaa)]);}),_0x8222ea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1af136),_0x8222ea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1af136)),_0x4d2981['plugins']['has']('ImageCaptionEditing')&&(_0x8222ea['enableCommand']('toggleImageCaption',(_0x5a3697,_0x4f4824)=>{const _0x42a85d=_0x4d2981['plugins']['get']('ImageCaptionUtils');let _0x39fbe3=_0x220870['getClosestSelectedImageElement'](_0x4d2981['model']['document']['selection']),_0x2bf6e0=_0x42a85d['getCaptionFromImageModelElement'](_0x39fbe3);_0x4d2981['model']['change'](()=>{if(_0x2bf6e0)return void _0x8222ea['markDeletion'](_0x4d2981['model']['createRangeOn'](_0x2bf6e0));const _0x4e1ad2=_0x220870['isBlockImage'](_0x39fbe3);_0x5a3697(_0x4f4824),_0x39fbe3=_0x220870['getClosestSelectedImageElement'](_0x4d2981['model']['document']['selection']),_0x2bf6e0=_0x42a85d['getCaptionFromImageModelElement'](_0x39fbe3),_0x8222ea['markInsertion'](_0x4d2981['model']['createRangeOn'](_0x2bf6e0),_0x4e1ad2?null:'imageCaption');});}),_0x8222ea['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1af136));const _0x5e486d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5c669d(_0x245237,_0x454692){const _0x24024b=_0x5e486d['findIndex'](({type:_0x4ffbde,subType:_0x4fc017})=>_0x245237['type']==_0x4ffbde&&_0x245237['subType']==_0x4fc017),_0x25cf54=_0x5e486d['findIndex'](({type:_0x24255f,subType:_0x28b80a})=>_0x454692['type']==_0x24255f&&_0x454692['subType']==_0x28b80a);if(_0x24024b<0x0||_0x25cf54<0x0)return!0x1;const _0x21591a=_0x245237['getFirstRange'](),_0x39cd3f=_0x454692['getFirstRange']();if((0x0==_0x24024b||0x1==_0x24024b)&&0x2==_0x25cf54&&_0x21591a['isIntersecting'](_0x39cd3f))return!0x0;if(0x2==_0x24024b&&0x3==_0x25cf54){const _0xf76d1b=_0x8222ea['_findSuggestions'](_0x21591a,'insertion')['filter'](({suggestion:_0x10a48e,meta:_0xc65394})=>_0xc65394['isOwn']&&'convertInlineImageToBlock'==_0x10a48e['subType']);if(_0xf76d1b['length']>0x1&&_0x39cd3f['end']['isEqual'](_0x21591a['start']))return!0x0;if(0x1==_0xf76d1b['length']&&(_0x21591a['start']['isEqual'](_0x39cd3f['end'])||_0x21591a['end']['isEqual'](_0x39cd3f['start'])))return!0x0;}if(0x3==_0x24024b&&0x3==_0x25cf54&&_0x21591a['start']['isBefore'](_0x39cd3f['start'])){const _0x515f10=_0x21591a['end']['nodeAfter'],_0x54d128=_0x39cd3f['start']['nodeBefore'];return _0x220870['isBlockImage'](_0x515f10)&&_0x515f10===_0x54d128;}return!0x1;}function _0x1af136(_0x17a993,_0x51e096){return _0x5c669d(_0x17a993,_0x51e096)?[_0x17a993,_0x51e096]:_0x5c669d(_0x51e096,_0x17a993)?[_0x51e096,_0x17a993]:null;}_0x4d2981['plugins']['has']('ImageResize')&&(_0x8222ea['enableDefaultAttributesIntegration']('resizeImage'),_0x8222ea['registerBlockAttribute']('resizedWidth'),_0x8222ea['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4a11fe,'FORMAT_IMAGE_SIZE'))),_0x4d2981['plugins']['has']('ImageTextAlternativeEditing')&&(_0x8222ea['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x8222ea['registerBlockAttribute']('alt')),_0x4d2981['plugins']['has']('PictureEditing')&&(_0x8222ea['registerBlockAttribute']('sources'),_0x8222ea['descriptionFactory']['registerDescriptionCallback'](_0x18c557=>{if('attribute'!=_0x18c557['type'])return;const {data:_0x6389d5}=_0x18c557;return _0x6389d5&&'sources'==_0x6389d5['key']?{'type':'format','content':''}:void 0x0;})),_0x4d2981['plugins']['has']('ImageSizeAttributes')&&(_0x8222ea['registerBlockAttribute']('width'),_0x8222ea['registerBlockAttribute']('height'),_0x8222ea['descriptionFactory']['registerDescriptionCallback'](_0x2cc04e=>{if('attribute'!=_0x2cc04e['type'])return;const {data:_0x26d9a3}=_0x2cc04e;return!_0x26d9a3||'width'!=_0x26d9a3['key']&&'height'!=_0x26d9a3['key']?void 0x0:{'type':'format','content':''};})),_0x8222ea['descriptionFactory']['registerDescriptionCallback'](_0x5224e3=>{if(!!_0x5e486d['find'](({type:_0x17fb66,subType:_0xd80eb2})=>_0x5224e3['type']==_0x17fb66&&_0x5224e3['subType']==_0xd80eb2))return _0x5224e3['previous']?{}:void 0x0;}),_0x8222ea['descriptionFactory']['registerDescriptionCallback'](_0x1450ff=>{if('insertion'==_0x1450ff['type']||'deletion'==_0x1450ff['type']){const _0x54c613=_0x1450ff['getContainedElement']();if(_0x54c613&&_0x54c613['is']('element','caption'))return{'type':'insertion'==_0x1450ff['type']?'addObject':'removeObject','element':_0x54c613,'quantity':0x1};}}),_0x8222ea['descriptionFactory']['registerDescriptionCallback'](_0x458638=>'formatBlock'==_0x458638['type']&&'convertInlineImageToBlock'==_0x458638['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x458638['type']&&'convertBlockImageToInline'==_0x458638['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8222ea['descriptionFactory']['registerDescriptionCallback'](_0x36afb9=>{if('attribute'!=_0x36afb9['type'])return;const {data:_0x3dc763}=_0x36afb9;if(!_0x3dc763||'alt'!=_0x3dc763['key'])return;const _0x561388=_0x3dc763['newValue'];return _0x561388?{'type':'format','content':o(_0x4a11fe,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x561388+'\x22')}:{'type':'format','content':o(_0x4a11fe,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xaa7d01=this['editor'],_0x44e737=_0xaa7d01['locale'];_0xaa7d01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1691dd=>{if('formatBlock'!=_0x1691dd['type']&&'formatInline'!=_0x1691dd['type'])return;const {data:_0x16ef6b}=_0x1691dd;if(_0x16ef6b){if('imageTextAlternative'==_0x16ef6b['commandName']){const _0x2f3737=_0x16ef6b['commandParams'][0x0]['newValue'];return _0x2f3737?{'type':'format','content':o(_0x44e737,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2f3737+'\x22')}:{'type':'format','content':o(_0x44e737,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x16ef6b['commandName']){const _0x1de69e=_0x16ef6b['commandParams'][0x0]['width'];return _0x1de69e?{'type':'format','content':o(_0x44e737,'*Set\x20image\x20width:*\x20%0',_0x1de69e)}:{'type':'format','content':o(_0x44e737,'*Reset\x20image\x20width*')};}}});}}class ft extends _0xa1bc5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x34c983=this['editor']['locale'],_0x58b7d1=this['editor']['plugins']['get']('TrackChangesEditing');_0x58b7d1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x58b7d1['registerBlockAttribute']('src'),_0x58b7d1['descriptionFactory']['registerDescriptionCallback'](_0x2ee0ee=>{if('attribute'!=_0x2ee0ee['type'])return;const {data:_0x3dc47f}=_0x2ee0ee;return _0x3dc47f&&'src'==_0x3dc47f['key']?_0x3dc47f['newValue']&&_0x3dc47f['oldValue']?{'type':'format','content':o(_0x34c983,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2e9c46=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e9c46['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2e9c46['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e9c46['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2e9c46['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x196d11=this['editor'],_0x4bbcae=_0x196d11['locale'];_0x196d11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xec2012=>{if('formatBlock'!=_0xec2012['type']&&'formatInline'!=_0xec2012['type'])return;const {data:_0x25522b}=_0xec2012;if(!_0x25522b||'replaceImageSource'!=_0x25522b['commandName'])return;return{'type':'format','content':o(_0x4bbcae,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0xa1bc5{['afterInit'](){const _0x457645=this['editor'];if(!_0x457645['plugins']['has']('ImageStyleEditing'))return;const _0x3a11bc=_0x457645['plugins']['get']('TrackChangesEditing'),_0x1ae717=_0x457645['plugins']['get']('ImageUtils'),_0x118a0e={};_0x3a11bc['enableCommand']('imageStyle',(_0x828090,_0x4ec133)=>{const _0x33f99e=_0x457645['plugins']['get']('Users')['me'],_0x531a68=_0x457645['commands']['get']('imageStyle');let _0x5230ec=_0x1ae717['getClosestSelectedImageElement'](_0x457645['model']['document']['selection']),_0x22ecc4=_0x457645['model']['createRangeOn'](_0x5230ec),_0x12deec=_0x531a68['value'];if(_0x12deec==_0x4ec133['value'])return;const _0x213151={'commandName':'imageStyle','commandParams':[_0x4ec133],'formatGroupId':_0x4cc075()};_0x457645['model']['change'](()=>{if(_0x3a11bc['getSuggestions']()['filter'](_0x5b7848=>_0x5b7848['isInContent']&&_0x33f99e==_0x5b7848['author']&&('formatBlock'==_0x5b7848['type']||'formatInline'==_0x5b7848['type'])&&('imageStylePreApply'==_0x5b7848['subType']||'imageStylePostApply'==_0x5b7848['subType'])&&_0x5b7848['getFirstRange']()['isEqual'](_0x22ecc4))['forEach'](_0x5b1e06=>_0x3a11bc['discardSuggestion'](_0x5b1e06['head'])),_0x5230ec=_0x1ae717['getClosestSelectedImageElement'](_0x457645['model']['document']['selection']),_0x22ecc4=_0x457645['model']['createRangeOn'](_0x5230ec),_0x531a68['refresh'](),_0x457645['commands']['get']('imageTypeInline')['refresh'](),_0x457645['commands']['get']('imageTypeBlock')['refresh'](),_0x12deec=_0x531a68['value'],_0x12deec!=_0x4ec133['value'])return _0x1ae717['isInlineImage'](_0x5230ec)&&_0x531a68['shouldConvertImageType'](_0x4ec133['value'],_0x5230ec)?(_0x828090({..._0x4ec133,'setImageSizes':!0x1}),_0x5230ec=_0x1ae717['getClosestSelectedImageElement'](_0x457645['model']['document']['selection']),void _0x3a11bc['markBlockFormat'](_0x5230ec,{..._0x213151,'commandReversedParams':[{'value':_0x12deec||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1ae717['isBlockImage'](_0x5230ec)?_0x3a11bc['markBlockFormat'](_0x5230ec,_0x213151,[],'imageStylePostApply'):_0x3a11bc['markInlineFormat'](_0x22ecc4,_0x213151,'imageStylePostApply'));});});for(const _0x285668 of _0x457645['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x118a0e[_0x285668['name']]=_0x285668['title']['toLowerCase']();_0x3a11bc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3a11bc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3a11bc['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3a11bc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1fa39d])=>{_0x1ae717['setImageNaturalSizeAttributes'](_0x1fa39d['getContainedElement']());}),_0x3a11bc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xda290c,_0x20f5a5)=>{_0x3a11bc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xda290c,{'commandName':_0x20f5a5['commandName'],'commandParams':_0x20f5a5['commandReversedParams']});}),_0x3a11bc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3940ef,_0x2cbf74){if(_0x3db2fc(_0x3940ef,_0x2cbf74))return[_0x3940ef,_0x2cbf74];if(_0x3db2fc(_0x2cbf74,_0x3940ef))return[_0x2cbf74,_0x3940ef];return null;});const _0x2ad33b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3db2fc(_0x279c74,_0x50d1f1){const _0x4f5adf=_0x2ad33b['findIndex'](({type:_0x1e77cc,subType:_0x32d4b7})=>_0x279c74['type']==_0x1e77cc&&_0x279c74['subType']==_0x32d4b7),_0x2a8a98=_0x2ad33b['findIndex'](({type:_0x55ac94,subType:_0x57c796})=>_0x50d1f1['type']==_0x55ac94&&_0x50d1f1['subType']==_0x57c796);if(_0x4f5adf<0x0||_0x2a8a98<0x0)return!0x1;const _0x3793fa=_0x279c74['getFirstRange'](),_0x34f19d=_0x50d1f1['getFirstRange']();if((0x0==_0x4f5adf||0x1==_0x4f5adf)&&0x2==_0x2a8a98&&_0x3793fa['isIntersecting'](_0x34f19d))return!0x0;if(0x2==_0x4f5adf&&0x3==_0x2a8a98){const _0x543cfd=_0x3a11bc['_findSuggestions'](_0x3793fa,'insertion')['filter'](({suggestion:_0x56947a,meta:_0x23cf78})=>_0x23cf78['isOwn']&&'convertInlineImageToBlock'==_0x56947a['subType']);if(_0x543cfd['length']>0x1&&_0x34f19d['end']['isEqual'](_0x3793fa['start']))return!0x0;if(0x1==_0x543cfd['length']&&(_0x3793fa['start']['isEqual'](_0x34f19d['end'])||_0x3793fa['end']['isEqual'](_0x34f19d['start'])))return!0x0;}if(0x3==_0x4f5adf&&0x3==_0x2a8a98&&_0x3793fa['start']['isBefore'](_0x34f19d['start'])){const _0x4df7e8=_0x3793fa['end']['nodeAfter'],_0xf3a231=_0x34f19d['start']['nodeBefore'];return _0x1ae717['isBlockImage'](_0x4df7e8)&&_0x4df7e8===_0xf3a231;}return!0x1;}_0x457645['model']['document']['registerPostFixer'](()=>{let _0x5325be=!0x1;const _0x1108b7=Array['from'](_0x457645['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x85db05,data:_0x33de55}of _0x1108b7){const {group:_0x3309f8,type:_0x123a6d,subType:_0x2ca7b1,id:_0x88424b}=_0x3a11bc['_splitMarkerName'](_0x85db05);if('suggestion'==_0x3309f8&&_0x3a11bc['hasSuggestion'](_0x88424b)){if('formatBlock'==_0x123a6d&&('imageStylePreApply'==_0x2ca7b1||'imageStylePostApply'==_0x2ca7b1)){const _0x24afd8=_0x3a11bc['getSuggestion'](_0x88424b);if(_0x33de55['newRange']){const _0x3f87e1=_0x24afd8['getFirstRange']()['getContainedElement']();if(_0x1ae717['isBlockImage'](_0x3f87e1))continue;_0x3a11bc['discardSuggestion'](_0x24afd8),_0x5325be=!0x0;}}if('insertion'==_0x123a6d&&'imageCaption'==_0x2ca7b1&&!_0x33de55['newRange']){const _0x329b94=_0x3a11bc['getSuggestion'](_0x88424b);_0x329b94['next']&&_0x329b94['next']['isInContent']&&(_0x3a11bc['discardSuggestion'](_0x329b94['next']),_0x5325be=!0x0);}}}return _0x5325be;}),this['_registerLegacyDescription'](_0x118a0e);}['_registerLegacyDescription'](_0x24b96d){const _0x7573f3=this['editor'],_0x190d83=_0x7573f3['locale'];_0x7573f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18f222=>{if('formatBlock'!=_0x18f222['type']&&'formatInline'!=_0x18f222['type'])return;const {data:_0x58751b}=_0x18f222;if(!_0x58751b||'imageStyle'!=_0x58751b['commandName'])return;const _0x3ce755=_0x58751b['commandParams'][0x0]['value'];return _0x3ec829('side'===_0x3ce755?o(_0x190d83,'FORMAT_SIDE_IMAGE'):_0x24b96d[_0x3ce755]||_0x3ce755);function _0x3ec829(_0x14b09d){return{'type':'format','content':o(_0x190d83,'*Format:*\x20%0',_0x14b09d)};}});}}class gt extends _0xa1bc5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x52c0ff){super(_0x52c0ff),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x34f642=this['editor'],_0x185324=_0x34f642['commands']['get']('importWord'),_0x11ddb2=_0x34f642['commands']['get']('trackChanges');_0x185324&&(_0x185324['on']('execute',(_0x12ada7,[,_0x47e238])=>{this['_trackChangesValueDuringImport']=_0x11ddb2['value'],_0x47e238['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x185324,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x185324,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x11ddb2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x34f642['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x70d714,_0x1ac5db){const {suggestions:_0x354d49}=_0x1ac5db,_0x59ce8e=this['editor']['commands']['get']('trackChanges'),_0x42425a=_0x59ce8e['value'];this['_trackChangesValueDuringImport']!==_0x42425a&&(_0x59ce8e['execute'](),this['_trackChangesExecuted']=!0x0),_0x354d49&&_0x354d49['forEach'](({id:_0x2df2e8,type:_0x50b27a,author:_0x3a3097,created_at:_0x446ee1})=>{const _0x4e791c={'id':_0x2df2e8,'type':_0x50b27a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3a3097,'createdAt':_0x446ee1?new Date(_0x446ee1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4e791c);});}}class lt extends _0xa1bc5{['afterInit'](){const _0x4779c1=this['editor'],_0x332b44=_0x4779c1['plugins']['get']('TrackChangesEditing');if(_0x4779c1['plugins']['has']('IndentEditing')&&(_0x332b44['enableCommand']('indent'),_0x332b44['enableCommand']('outdent')),_0x4779c1['plugins']['has']('IndentBlock')){for(const _0x539b34 of['indentBlock','outdentBlock'])_0x332b44['enableDefaultAttributesIntegration'](_0x539b34);}const _0x1b1343=_0x4779c1['locale'];_0x332b44['registerBlockAttribute']('blockIndent'),_0x332b44['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1b1343,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f3d2d=this['editor'],_0xc6950e=_0x4f3d2d['locale'],_0x2459ea=_0x4f3d2d['plugins']['get']('TrackChangesEditing');_0x2459ea['descriptionFactory']['registerDescriptionCallback'](_0x1e01d8=>{if('formatBlock'!=_0x1e01d8['type'])return;const {data:_0x53009d}=_0x1e01d8;if(!_0x53009d)return;if('indentBlock'!=_0x53009d['commandName']&&'outdentBlock'!=_0x53009d['commandName'])return;const _0x30c11d=_0x1e01d8['getItems']()[0x0],_0x129013=_0x2459ea['descriptionFactory']['getItemLabel'](_0x30c11d);return'indentBlock'==_0x53009d['commandName']?{'type':'format','content':o(_0xc6950e,'*Indent:*\x20%0',_0x129013)}:'outdentBlock'==_0x53009d['commandName']?{'type':'format','content':o(_0xc6950e,'*Outdent:*\x20%0',_0x129013)}:void 0x0;});}}class dt extends _0xa1bc5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class mt extends _0xa1bc5{['afterInit'](){const _0x1db541=this['editor'];if(!_0x1db541['plugins']['has']('LinkEditing'))return;const _0x35a79c=_0x1db541['plugins']['get']('TrackChangesEditing'),_0x30a4f2=_0x1db541['commands']['get']('link');_0x35a79c['enableDefaultAttributesIntegration']('link'),_0x35a79c['enableDefaultAttributesIntegration']('unlink'),_0x35a79c['registerInlineAttribute']('linkHref');for(const _0xc238a6 of _0x30a4f2['manualDecorators'])_0x35a79c['registerInlineAttribute'](_0xc238a6['id']),_0x35a79c['descriptionFactory']['registerAttributeLabel'](_0xc238a6['id'],'link\x20('+_0xc238a6['label']['toLowerCase']()+')');_0x35a79c['descriptionFactory']['registerDescriptionCallback'](_0x23f475=>{if('attribute'!=_0x23f475['type'])return;const {data:_0x4536ad}=_0x23f475;if(!_0x4536ad||'linkHref'!=_0x4536ad['key'])return;const _0x3b34f0=_0x4536ad['newValue'],_0x1d658a=_0x1db541['locale'];return{'type':'format','content':null==_0x3b34f0?o(_0x1d658a,'*Remove\x20link*'):o(_0x1d658a,'*Set\x20link:*\x20%0','\x22'+_0x3b34f0+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x236dc0=this['editor'],_0x2b4082=_0x236dc0['locale'];_0x236dc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f37b6=>{if('formatInline'!=_0x5f37b6['type'])return;const {data:_0x45386c}=_0x5f37b6;if(_0x45386c){if('link'==_0x45386c['commandName']){const _0x4efaa3=_0x45386c['commandParams'][0x0];return{'type':'format','content':o(_0x2b4082,'*Set\x20link:*\x20%0','\x22'+_0x4efaa3+'\x22')};}return'unlink'==_0x45386c['commandName']?{'type':'format','content':o(_0x2b4082,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0xa1bc5{['afterInit'](){const _0x22556f=this['editor'],_0x15b8b9=_0x22556f['locale'];if(!_0x22556f['plugins']['has']('LegacyListEditing'))return;const _0xf1fa1=_0x22556f['plugins']['get']('TrackChangesEditing'),_0x2a92f4=_0x22556f['plugins']['has']('LegacyTodoListEditing');function _0x5ec6df(_0x33016b){return()=>{const _0x263b8a=_0x22556f['model']['document']['selection'],_0x3bd0f5=_0x22556f['commands']['get'](_0x33016b);if(_0x3bd0f5['value'])return void _0x22556f['execute']('paragraph',{});const _0x50bc46=_0x33016b['slice'](0x0,-0x4),_0x537edf=function(_0x1b1cf0,_0xefcb54,_0x40c699){let _0x359f6d=Array['from'](_0x1b1cf0)['filter'](_0x5c4403=>function(_0x463efe,_0x5261cb){return _0x5261cb['checkChild'](_0x463efe['parent'],'listItem')&&!_0x5261cb['isObject'](_0x463efe);}(_0x5c4403,_0x40c699));_0x359f6d=_0x359f6d['filter'](_0x141cce=>!_0x141cce['is']('element','listItem')||_0x141cce['getAttribute']('listType')!=_0xefcb54);const _0x2fed5e=new Set();for(const _0x5bbb07 of _0x359f6d)_0x5bbb07['is']('element','listItem')?_0x2fed5e['add'](Ne(_0x5bbb07)):_0x2fed5e['add'](_0x5bbb07);return Array['from'](_0x2fed5e);}(_0x263b8a['getSelectedBlocks'](),_0x50bc46,_0x22556f['model']['schema']);_0x22556f['model']['change'](()=>{for(const _0x1ae26e of _0x537edf)_0xf1fa1['markBlockFormat'](_0x1ae26e,{'commandName':_0x33016b,'commandParams':[{'forceValue':!_0x3bd0f5['value']}],'formatGroupId':'blockName'},Se(_0x1ae26e));});};}function _0x38abf4(_0x8c4fa2){return()=>{const _0x28cfff=function(_0x327b3c){let _0x143b9d=Array['from'](_0x327b3c);const _0x287add=_0x143b9d['findIndex'](_0x2d9b43=>'listItem'!=_0x2d9b43['name']);return _0x287add>-0x1&&(_0x143b9d=_0x143b9d['slice'](0x0,_0x287add)),_0x143b9d;}(_0x22556f['model']['document']['selection']['getSelectedBlocks']()),_0x333fae=_0x22556f['model']['createRange'](_0x22556f['model']['createPositionAt'](_0x28cfff[0x0],'before'),_0x22556f['model']['createPositionAt'](_0x28cfff[_0x28cfff['length']-0x1],'end'));_0x22556f['model']['change'](()=>{_0xf1fa1['markBlockFormat'](_0x333fae,{'commandName':_0x8c4fa2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1ee288){const _0x36f236=new Set();for(const _0x473de3 of _0x1ee288){let _0x96b422=_0x473de3['nextSibling'];for(;_0x96b422&&_0x96b422['getAttribute']('listIndent')>_0x473de3['getAttribute']('listIndent');)_0x36f236['add'](_0x96b422),_0x96b422=_0x96b422['nextSibling'];}return Array['from'](_0x36f236);}(_0x28cfff));});};}_0xf1fa1['enableCommand']('numberedList',_0x5ec6df('numberedList')),_0xf1fa1['enableCommand']('bulletedList',_0x5ec6df('bulletedList')),_0x2a92f4&&_0xf1fa1['enableCommand']('todoList',_0x5ec6df('todoList')),_0xf1fa1['enableCommand']('indentList',_0x38abf4('indentList')),_0xf1fa1['enableCommand']('outdentList',_0x38abf4('outdentList')),_0x2a92f4&&_0xf1fa1['enableCommand']('checkTodoList',()=>{const _0x4ee2e3=_0x22556f['commands']['get']('checkTodoList'),_0x163de3=Array['from'](_0x4ee2e3['_selectedElements']);_0x163de3['filter'](_0x2520c5=>_0x2520c5['getAttribute']('todoListChecked')!=_0x4ee2e3['value']),_0x22556f['model']['change'](()=>{for(const _0x24af06 of _0x163de3)_0xf1fa1['markBlockFormat'](_0x24af06,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4ee2e3['value']}]});});}),_0xf1fa1['descriptionFactory']['registerElementLabel']('listItem',_0x57f2ec=>o(_0x15b8b9,'ELEMENT_LIST_ITEM',_0x57f2ec)),_0xf1fa1['descriptionFactory']['registerDescriptionCallback'](_0x187dd9=>{if('formatBlock'!=_0x187dd9['type']&&'formatInline'!=_0x187dd9['type'])return;const {data:_0x389d92}=_0x187dd9;if(_0x389d92){if('numberedList'==_0x389d92['commandName']||'bulletedList'==_0x389d92['commandName']||'todoList'==_0x389d92['commandName'])switch(_0x389d92['commandName']['replace']('List','')){case'bulleted':return _0x45a03e(o(_0x15b8b9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45a03e(o(_0x15b8b9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45a03e(o(_0x15b8b9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x389d92['commandName'])return{'type':'format','content':o(_0x15b8b9,'*Indent:*\x20%0',o(_0x15b8b9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x389d92['commandName'])return{'type':'format','content':o(_0x15b8b9,'*Outdent:*\x20%0',o(_0x15b8b9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x389d92['commandName'])return _0x389d92['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15b8b9,'*Check\x20item*')}:{'type':'format','content':o(_0x15b8b9,'*Uncheck\x20item*')};}function _0x45a03e(_0x7a1e8){return{'type':'format','content':o(_0x15b8b9,'*Change\x20to:*\x20%0',_0x7a1e8)};}});}}function Ne(_0x83266e){const _0xafa596=_0x83266e['getAttribute']('listIndent');if(0x0==_0xafa596)return _0x83266e;let _0x1764d4=_0x83266e;for(;_0x83266e['previousSibling']&&_0x83266e['previousSibling']['is']('element','listItem');){const _0x3683db=_0x83266e['previousSibling']['getAttribute']('listIndent');if(_0x3683db==_0xafa596)_0x1764d4=_0x83266e['previousSibling'];else{if(_0x3683db<_0xafa596)break;}_0x83266e=_0x83266e['previousSibling'];}return _0x1764d4;}function Se(_0x1992ac){const _0x22ea84=[];if(_0x1992ac['is']('element','listItem')&&_0x1992ac['getAttribute']('listIndent')>0x0){let _0x288123=_0x1992ac['nextSibling'];for(;_0x288123&&'listItem'==_0x288123['name']&&_0x288123['getAttribute']('listIndent')==_0x1992ac['getAttribute']('listIndent');)_0x22ea84['push'](_0x288123),_0x288123=_0x288123['nextSibling'];}return _0x22ea84;}class kt extends _0xa1bc5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5c6c34=this['editor']['config']['get']('list.properties'),_0xf9b5e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c6c34['styles']&&_0xf9b5e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5c6c34['reversed']&&_0xf9b5e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5c6c34['startIndex']&&_0xf9b5e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xf9b5e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x547ee6,_0x3af6d9={}){const _0x5a2c0d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c0df1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5a2c0d['markMultiRangeBlockFormat'](_0x2c0df1,{'commandName':'listStyle','commandParams':[{'type':_0x3af6d9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x27dd58,_0x17126c={}){const _0x47781e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5993d5=this['_getSuggestionBlocks'](_0x48e24b=>_0x48e24b['is']('element','listItem')&&'numbered'===_0x48e24b['getAttribute']('listType'));if(_0x5993d5['length']<0x1)return;const _0x2cded=_0x5993d5['map'](_0x380f3f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x380f3f,'before'),this['editor']['model']['createPositionAt'](_0x380f3f,0x0)));this['editor']['model']['change'](()=>{_0x47781e['markMultiRangeBlockFormat'](_0x2cded,{'commandName':'listReversed','commandParams':[{'reversed':_0x17126c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3e1427,_0x3e3922={}){const _0x146ee2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5af546=this['_getSuggestionBlocks'](_0x159555=>_0x159555['is']('element','listItem')&&'numbered'===_0x159555['getAttribute']('listType'));if(_0x5af546['length']<0x1)return;const _0x44e886=_0x5af546['map'](_0x910fed=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x910fed,'before'),this['editor']['model']['createPositionAt'](_0x910fed,0x0)));this['editor']['model']['change'](()=>{_0x146ee2['markMultiRangeBlockFormat'](_0x44e886,{'commandName':'listStart','commandParams':[{'startIndex':_0x3e3922['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x19b823){if('formatBlock'!=_0x19b823['type']&&'formatInline'!=_0x19b823['type'])return;const _0x224fc2=this['editor']['locale'],{data:_0x2416f1}=_0x19b823;if(!_0x2416f1)return;let _0x4dca78,_0xfafac1;switch(_0x2416f1['commandName']){case'listStyle':_0x4dca78='*Change\x20to:*\x20%0',_0xfafac1={'type':'format','content':o(_0x224fc2,_0x4dca78,o(_0x224fc2,this['_getTranslationKeyForListStyle'](_0x2416f1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4dca78=_0x2416f1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xfafac1={'type':'format','content':o(_0x224fc2,_0x4dca78)};break;case'listStart':_0x4dca78='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xfafac1={'type':'format','content':o(_0x224fc2,_0x4dca78,_0x2416f1['commandParams'][0x0]['startIndex'])};}return _0xfafac1;}['_getSuggestionBlocksForListStyle'](){const _0x15a2d6=this['editor']['plugins']['get']('LegacyListUtils');let _0x52422a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x52422a[0x0]?.['is']('element','listItem')&&_0x52422a['unshift'](..._0x15a2d6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x52422a[_0x52422a['length']-0x1]?.['is']('element','listItem')&&_0x52422a['push'](..._0x15a2d6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x52422a=[...new Set(_0x52422a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x52422a=_0x52422a['filter'](_0x2ac1b1=>_0x2ac1b1['is']('element','listItem'))),_0x52422a;}['_getSuggestionBlocks'](_0x110c80){const _0x482686=this['editor']['plugins']['get']('LegacyListUtils');let _0x56c9f1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x110c80)['map'](_0x94f6b2=>{const _0xb45376=this['editor']['model']['createPositionAt'](_0x94f6b2,0x0);return[..._0x482686['getSiblingNodes'](_0xb45376,'backward'),..._0x482686['getSiblingNodes'](_0xb45376,'forward')];})['flat']();return _0x56c9f1=[...new Set(_0x56c9f1)],_0x56c9f1;}['_getTranslationKeyForListStyle'](_0x370b61){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x370b61)||'default')['toUpperCase']()+'_LIST_'+_0x370b61['toUpperCase']()['replace'](/-/g,'_');}}class wt extends _0xa1bc5{['afterInit'](){const _0x35caa5=this['editor'];if(!_0x35caa5['plugins']['has']('MediaEmbedEditing'))return;const _0x1c0818=_0x35caa5['plugins']['get']('TrackChangesEditing'),_0x45e838=_0x35caa5['locale'];_0x1c0818['enableCommand']('mediaEmbed'),_0x1c0818['descriptionFactory']['registerElementLabel']('media',_0x4dba8a=>o(_0x45e838,'ELEMENT_MEDIA',_0x4dba8a)),_0x35caa5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4c0711,{writer:_0x174267,options:_0x2b4725})=>{if(_0x2b4725['showSuggestionHighlights'])return _0x174267['createEmptyElement']('div');},'converterPriority':'high'}),_0x35caa5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x470233,_0x496404,_0x4c2843)=>{_0x4c2843['options']['showSuggestionHighlights']&&_0x470233['stop']();},{'priority':'high'});}}class bt extends _0xa1bc5{['afterInit'](){const _0x1cfef1=this['editor'];_0x1cfef1['plugins']['has']('MentionEditing')&&_0x1cfef1['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0xa1bc5{['afterInit'](){const _0x10e860=this['editor'];if(!_0x10e860['plugins']['has']('MergeFieldsEditing'))return;const _0x546f42=_0x10e860['plugins']['get']('TrackChangesEditing'),_0x1d2701=_0x10e860['locale'];_0x546f42['enableCommand']('insertMergeField'),_0x546f42['enableCommand']('insertMergeFieldBlock'),_0x546f42['enableCommand']('insertMergeFieldImage'),_0x546f42['descriptionFactory']['registerElementLabel']('mergeField',_0x1b3264=>o(_0x1d2701,'ELEMENT_MERGE_FIELD',_0x1b3264)),_0x546f42['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x487d1c=>o(_0x1d2701,'ELEMENT_MERGE_FIELD',_0x487d1c)),_0x546f42['descriptionFactory']['registerDescriptionCallback'](_0x2404a8=>{if('insertion'!=_0x2404a8['type']&&'deletion'!=_0x2404a8['type'])return;const _0x57d1b6=_0x2404a8['getContainedElement']();if(null==_0x57d1b6)return;const _0x125024=_0x10e860['plugins']['get']('MergeFieldsEditing');let _0x1f5b7b;switch(_0x125024['getMergeFieldType'](_0x57d1b6)){case null:return;case'image':{const _0x529bdc=_0x125024['unwrapAffixes'](_0x57d1b6['getAttribute']('src'));_0x1f5b7b=_0x125024['getLabel'](_0x529bdc)||_0x529bdc;break;}default:{const _0x288260=_0x57d1b6['getAttribute']('id');_0x1f5b7b=_0x125024['getLabel'](_0x288260)||_0x288260;break;}}return'insertion'==_0x2404a8['type']?{'type':'insertion','content':o(_0x1d2701,'*Insert:*\x20%0','\x22'+_0x1f5b7b+'\x22\x20'+o(_0x1d2701,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1d2701,'*Remove:*\x20%0','\x22'+_0x1f5b7b+'\x22\x20'+o(_0x1d2701,'ELEMENT_MERGE_FIELD'))};});}}class St extends _0xa1bc5{['afterInit'](){const _0x4ba26f=this['editor'],_0x128434=_0x4ba26f['plugins']['get']('TrackChangesEditing');_0x4ba26f['plugins']['has']('MultiLevelList')&&(_0x128434['enableDefaultAttributesIntegration']('multiLevelList'),_0x128434['registerBlockAttribute']('listMarkerStyle'),_0x128434['descriptionFactory']['registerDescriptionCallback'](_0x255b78=>this['handleDescriptions'](_0x255b78)));}['handleDescriptions'](_0x50ad33){const _0x2f241f=this['editor']['locale'],{data:_0x2dc7a7}=_0x50ad33,_0xbb3f47={'type':'format','content':''};if(_0x2dc7a7&&'listMarkerStyle'==_0x2dc7a7['key']){if(!_0x2dc7a7['oldValue'])return{'type':'format','content':o(_0x2f241f,'*Set\x20format:*\x20%0',o(_0x2f241f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2dc7a7['newValue']+')'};if(!_0x2dc7a7['newValue']){let _0x4062db=_0x50ad33['head'];for(;_0x4062db;){if(_0x4062db['data']&&'listType'==_0x4062db['data']['key']&&_0x4062db['data']['newValue'])return _0xbb3f47;_0x4062db=_0x4062db['next'];}return{'type':'format','content':o(_0x2f241f,'*Remove\x20format:*\x20%0',o(_0x2f241f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2dc7a7['oldValue']+')'};}}}}class jt extends _0xa1bc5{['afterInit'](){const _0x13ac98=this['editor'];if(!_0x13ac98['plugins']['has']('PageBreakEditing'))return;_0x13ac98['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4e49e0=_0x13ac98['plugins']['get']('TrackChangesEditing'),_0x582d11=_0x13ac98['locale'];_0x4e49e0['descriptionFactory']['registerElementLabel']('pageBreak',_0x2d161e=>o(_0x582d11,'ELEMENT_PAGE_BREAK',_0x2d161e));}}class It extends _0xa1bc5{['afterInit'](){const _0x567717=this['editor'];if(!_0x567717['plugins']['has']('Paragraph'))return;const _0x557575=_0x567717['locale'],_0x2d3f26=_0x567717['plugins']['get']('TrackChangesEditing');_0x2d3f26['descriptionFactory']['registerElementLabel']('paragraph',_0x301eb8=>o(_0x557575,'ELEMENT_PARAGRAPH',_0x301eb8)),_0x2d3f26['enableDefaultAttributesIntegration']('paragraph'),_0x2d3f26['enableCommand']('insertParagraph'),_0x567717['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x567717),{'priority':'highest'}),_0x567717['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3a4c9b,_0x1ce8b5,_0x1d9e39)=>{_0x1d9e39['options']['showSuggestionHighlights']&&nr(_0x567717,{'showActiveMarker':!0x1})(_0x3a4c9b,_0x1ce8b5,_0x1d9e39);},{'priority':'highest'});const _0x1ab79a=_0x2d3f26['descriptionFactory'];_0x1ab79a['registerDescriptionCallback'](_0x179c1c=>{if('insertion'!==_0x179c1c['type'])return;const {start:_0x37aeb1,end:_0x4012a9}=_0x179c1c['getFirstRange']();if(!_0x37aeb1['isTouching'](_0x4012a9)||!_0x37aeb1['nodeAfter'])return;const _0x84f7ea=_0x567717['model']['schema'],_0x588b81=_0x37aeb1['nodeAfter'];return _0x84f7ea['isBlock'](_0x588b81)&&!_0x84f7ea['isLimit'](_0x588b81)&&_0x84f7ea['checkChild'](_0x588b81,'$text')?{'type':'insertion','content':o(_0x557575,'*Insert:*\x20%0',_0x1ab79a['getItemLabel'](_0x588b81,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f635a=this['editor'],_0x2b2b64=_0x2f635a['locale'];_0x2f635a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc40e90=>{if('formatBlock'!=_0xc40e90['type'])return;const {data:_0x55c761}=_0xc40e90;return _0x55c761&&'paragraph'==_0x55c761['commandName']?{'type':'format','content':o(_0x2b2b64,'*Change\x20to:*\x20%0',o(_0x2b2b64,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3468f2,{showActiveMarker:_0x3c809c=!0x0}={}){return(_0x24ff83,_0x541364,_0x358211)=>{const _0x3b202a=_0x3468f2['plugins']['get']('TrackChangesEditing'),_0x487e8c=_0x541364['markerRange']['start'],_0xce8ca7=_0x541364['markerRange']['end'],_0x4075da=_0x3468f2['model']['schema'];if(!_0x487e8c['isTouching'](_0xce8ca7)||!_0x487e8c['nodeAfter'])return;const _0x23ec08=_0x487e8c['nodeAfter'];if(_0x4075da['isBlock'](_0x23ec08)&&!_0x4075da['isLimit'](_0x23ec08)&&_0x4075da['checkChild'](_0x23ec08,'$text')){if(!_0x358211['consumable']['consume'](_0x541364['markerRange'],_0x24ff83['name']))return;const {id:_0x2b5b31,authorId:_0x5a74d7}=_0x3b202a['_splitMarkerName'](_0x541364['markerName']),_0x534f53=_0x358211['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2b5b31,'data-author-id':_0x5a74d7}),_0x1f0c16=_0x358211['mapper']['toViewPosition'](_0xce8ca7);_0x3c809c&&_0x3b202a['activeMarkers']['includes'](_0x541364['markerName'])&&_0x358211['writer']['addClass']('ck-suggestion-marker--active',_0x534f53),_0x358211['writer']['insert'](_0x1f0c16,_0x534f53),_0x358211['mapper']['bindElementToMarker'](_0x534f53,_0x541364['markerName']);}};}class At extends _0xa1bc5{['afterInit'](){const _0x5a2b04=this['editor'];_0x5a2b04['commands']['get']('replaceSource')&&_0x5a2b04['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0xa1bc5{['afterInit'](){const _0x181571=this['editor'];if(!_0x181571['plugins']['has']('RemoveFormatEditing'))return;_0x181571['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54394b=this['editor'];_0x54394b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ffbd0=>{if('formatBlock'!=_0x4ffbd0['type']&&'formatInline'!=_0x4ffbd0['type'])return;const {data:_0x266621}=_0x4ffbd0;return _0x266621&&'removeFormat'==_0x266621['commandName']?{'type':'format','content':o(_0x54394b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class $t extends _0xa1bc5{['afterInit'](){const _0x5a9937=this['editor'];if(!_0x5a9937['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x525424=_0x5a9937['plugins']['get']('TrackChangesEditing');_0x525424['enableCommand']('goToPreviousRestrictedEditingException'),_0x525424['enableCommand']('goToNextRestrictedEditingException');const _0x5991e6=_0x5a9937['plugins']['get']('RestrictedEditingModeEditing');_0x5991e6['enableCommand']('trackChanges'),_0x5991e6['enableCommand']('acceptSuggestion'),_0x5991e6['enableCommand']('discardSuggestion'),_0x5991e6['enableCommand']('acceptAllSuggestions'),_0x5991e6['enableCommand']('discardAllSuggestions'),_0x5991e6['enableCommand']('acceptSelectedSuggestions'),_0x5991e6['enableCommand']('discardSelectedSuggestions');}}class vt extends _0xa1bc5{['afterInit'](){const _0x3778d3=this['editor'];if(!_0x3778d3['plugins']['has']('ShiftEnter'))return;const _0xf650fc=_0x3778d3['plugins']['get']('TrackChangesEditing');_0xf650fc['enableCommand']('shiftEnter'),_0x3778d3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x3778d3),{'priority':'high'}),_0x3778d3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x3778d3),{'priority':'high'}),_0x3778d3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5b69b9,_0xdeb25f,_0x33b831)=>{_0x33b831['options']['showSuggestionHighlights']&&qe(_0x3778d3,{'showActiveMarker':!0x1})(_0x5b69b9,_0xdeb25f,_0x33b831);}),_0xf650fc['descriptionFactory']['registerElementLabel']('softBreak',_0x293b83=>o(_0x3778d3['locale'],'ELEMENT_LINE_BREAK',_0x293b83));}}function qe(_0x2ebdd5,{showActiveMarker:_0x24118d=!0x0}={}){return(_0x2b39a4,_0x40b357,_0x136559)=>{const _0xf574c4=_0x2ebdd5['plugins']['get']('TrackChangesEditing');if(!_0x136559['consumable']['test'](_0x40b357['markerRange'],_0x2b39a4['name']))return;const _0x4b2940=_0x2ebdd5['model'];for(const _0x116270 of _0x40b357['markerRange']['getItems']()){if(!_0x116270['is']('element','softBreak'))continue;const _0x1eb92d='deletion'==_0x40b357['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1cc066,authorId:_0x253dc5}=_0xf574c4['_splitMarkerName'](_0x40b357['markerName']),_0x2303a8=_0x136559['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1eb92d,'data-suggestion':_0x1cc066,'data-author-id':_0x253dc5}),_0x47fa63=_0x136559['mapper']['toViewPosition'](_0x4b2940['createPositionBefore'](_0x116270));_0x24118d&&_0xf574c4['activeMarkers']['includes'](_0x40b357['markerName'])&&_0x136559['writer']['addClass']('ck-suggestion-marker--active',_0x2303a8),_0x136559['writer']['insert'](_0x47fa63,_0x2303a8),_0x136559['mapper']['bindElementToMarker'](_0x2303a8,_0x40b357['markerName']);}};}class Ct extends _0xa1bc5{['afterInit'](){const _0x41ad9f=this['editor'],_0x543351=_0x41ad9f['model'],_0x421f29=_0x41ad9f['locale'];if(!_0x41ad9f['plugins']['has']('StandardEditingModeEditing'))return;const _0x20a087=_0x41ad9f['plugins']['get']('TrackChangesEditing'),_0x200cb1='restrictedEditingException',_0x3ce585=_0x41ad9f['commands']['get'](_0x200cb1);_0x20a087['enableCommand'](_0x200cb1,(_0xde8660,_0x4c70ec={})=>{const _0x5d30bf=_0x543351['document']['selection'];if(_0x5d30bf['isCollapsed'])return void _0xde8660(_0x4c70ec);const _0x59954f=void 0x0!==_0x4c70ec['forceValue']?_0x4c70ec['forceValue']:!_0x3ce585['value'];_0x543351['change'](()=>{const _0xf105c4=Array['from'](_0x5d30bf['getRanges']());for(const _0x5877f1 of _0xf105c4){const _0x12443c=_0x59954f?[_0x5877f1]:io(_0x200cb1,_0x5877f1,_0x543351);for(const _0x351d2e of _0x12443c)_0x20a087['markInlineFormat'](_0x351d2e,{'commandName':_0x200cb1,'commandParams':[{'forceValue':_0x59954f}]});}});}),_0x20a087['descriptionFactory']['registerDescriptionCallback'](_0x1b6fa4=>{if('formatBlock'!=_0x1b6fa4['type']&&'formatInline'!=_0x1b6fa4['type'])return;const {data:_0x2cef22}=_0x1b6fa4;return _0x2cef22&&_0x2cef22['commandName']==_0x200cb1?_0x2cef22['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x421f29,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x421f29,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Nt extends _0xa1bc5{['afterInit'](){const _0x3b0d5a=this['editor'];if(!_0x3b0d5a['plugins']['has']('Style')||!_0x3b0d5a['plugins']['has']('DataSchema'))return;const _0x2196cf=_0x3b0d5a['plugins']['get']('TrackChangesEditing'),_0x149da5=_0x3b0d5a['locale'],_0x2e4ede=_0x3b0d5a['config']['get']('style')||{},_0x466309=_0x3b0d5a['plugins']['get']('GeneralHtmlSupport'),_0x1d6d8f=_0x3b0d5a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3b0d5a['plugins']['get']('DataSchema'),_0x2e4ede['definitions']);_0x2196cf['enableDefaultAttributesIntegration']('style');const _0x4dd3c8=new Set();for(const _0xc59b9 of _0x1d6d8f['block']){const _0x27bed6=_0x466309['getGhsAttributeNameForElement'](_0xc59b9['element']);_0x4dd3c8['add'](_0x27bed6);}const _0xa6be43=new Set();for(const _0x5d6b18 of _0x1d6d8f['inline']){const _0x3fa3b9=_0x466309['getGhsAttributeNameForElement'](_0x5d6b18['element']);_0xa6be43['add'](_0x3fa3b9);for(const _0x2874c7 of _0x5d6b18['ghsAttributes'])_0xa6be43['add'](_0x2874c7);}for(const _0x2850e2 of _0x4dd3c8)_0x2196cf['registerBlockAttribute'](_0x2850e2),_0x2196cf['descriptionFactory']['registerAttributeLabel'](_0x2850e2,o(_0x149da5,'FORMAT_STYLE'));for(const _0x15b243 of _0xa6be43)_0x2196cf['registerInlineAttribute'](_0x15b243),_0x2196cf['descriptionFactory']['registerAttributeLabel'](_0x15b243,o(_0x149da5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a6b75=this['editor'],_0x1bf75c=_0x2a6b75['locale'];_0x2a6b75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x573f18=>{if('formatBlock'!=_0x573f18['type']&&'formatInline'!=_0x573f18['type'])return;const {data:_0x3b2987}=_0x573f18;return _0x3b2987&&'style'===_0x3b2987['commandName']?_0x3b2987['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1bf75c,'*Set\x20format:*\x20%0',_0x3b2987['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1bf75c,'*Remove\x20format:*\x20%0',_0x3b2987['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0xa1bc5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2beabf){super(_0x2beabf),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x46b9a0=this['editor'],_0x3bfa97=_0x46b9a0['model']['document']['selection'];if(!_0x46b9a0['plugins']['has']('TableEditing'))return;const _0x3339d7=_0x46b9a0['locale'],_0x4a1a6f=_0x46b9a0['plugins']['get']('TrackChangesEditing'),_0x2be1f5=_0x46b9a0['plugins']['get']('TableUtils');_0x4a1a6f['descriptionFactory']['registerElementLabel']('table',_0xe90b85=>o(_0x3339d7,'ELEMENT_TABLE',_0xe90b85)),this['_setupColumnsRowsFixing'](),_0x4a1a6f['enableCommand']('insertTable'),_0x4a1a6f['enableCommand']('selectTableRow'),_0x4a1a6f['enableCommand']('selectTableColumn');for(const _0x12019c of['insertTableRowAbove','insertTableRowBelow']){const _0x57c5c6=_0x46b9a0['commands']['get'](_0x12019c);_0x4a1a6f['enableCommand'](_0x12019c,_0xc35ec3=>{_0x46b9a0['model']['change'](_0x4b9811=>{_0xc35ec3();const _0x1e1ff0='above'===_0x57c5c6['order'],_0x5b4872=_0x2be1f5['getSelectionAffectedTableCells'](_0x3bfa97),_0x463e38=_0x2be1f5['getRowIndexes'](_0x5b4872),_0x2de290=_0x1e1ff0?_0x463e38['first']-0x1:_0x463e38['last']+0x1,_0x4e91ed=_0x5b4872[0x0]['findAncestor']('table'),_0x20b9ab=_0x2be1f5['createTableWalker'](_0x4e91ed,{'startRow':_0x2de290,'endRow':_0x2de290}),_0x222990=Array['from'](_0x20b9ab)['map'](_0x369529=>_0x4b9811['createRangeOn'](_0x369529['cell']));_0x4a1a6f['markMultiRangeInsertion'](_0x222990,'tableRow');});});}for(const _0x20139f of['insertTableColumnLeft','insertTableColumnRight']){const _0x593a00=_0x46b9a0['commands']['get'](_0x20139f);_0x4a1a6f['enableCommand'](_0x20139f,_0x40f773=>{_0x46b9a0['model']['change'](_0xcfd51a=>{_0x40f773();const _0x3354c4='left'===_0x593a00['order'],_0x1e11ea=_0x2be1f5['getSelectionAffectedTableCells'](_0x3bfa97),_0xa2e78a=_0x2be1f5['getColumnIndexes'](_0x1e11ea),_0x1626c6=_0x3354c4?_0xa2e78a['first']-0x1:_0xa2e78a['last']+0x1,_0x15e0d3=_0x1e11ea[0x0]['findAncestor']('table'),_0x1e8447=_0x2be1f5['createTableWalker'](_0x15e0d3,{'startRow':0x0,'column':_0x1626c6,'includeAllSlots':!0x1}),_0x5471ef=Array['from'](_0x1e8447)['map'](_0x2f211a=>_0xcfd51a['createRangeOn'](_0x2f211a['cell']));_0x4a1a6f['markMultiRangeInsertion'](_0x5471ef,'tableColumn');});});}for(const _0x2404b4 of['removeTableRow','removeTableColumn']){const _0x1d6ad5=_0x2404b4['substr'](0xb),_0x4998e4=_0x1d6ad5['toLowerCase'](),_0x2188fe=_0x4998e4['substr'](0x0,0x3)+'span',_0x32a866='table'+_0x1d6ad5,_0x5060bf='min'+_0x1d6ad5,_0x4930c0='max'+_0x1d6ad5;_0x4a1a6f['enableCommand'](_0x2404b4,()=>{_0x46b9a0['model']['change'](_0x49aa1c=>{const _0x2898fa=_0x2be1f5['getSelectionAffectedTableCells'](_0x3bfa97),_0x508523=_0x2898fa[0x0]['findAncestor']('table');let _0x3d3254;if('removeTableRow'==_0x2404b4){const _0x195f7f=_0x2be1f5['getRowIndexes'](_0x2898fa);_0x3d3254={'startRow':_0x195f7f['first'],'endRow':_0x195f7f['last'],'includeAllSlots':!0x0};}else{const _0x53444b=_0x2be1f5['getColumnIndexes'](_0x2898fa);_0x3d3254={'startColumn':_0x53444b['first'],'endColumn':_0x53444b['last'],'includeAllSlots':!0x0};}const _0x53524a=_0x2be1f5['createTableWalker'](_0x508523,_0x3d3254),_0x558ee4=Array['from'](_0x53524a)['map'](({cell:_0x39e8a3})=>_0x39e8a3),_0x1a1997=Oe(_0x558ee4['filter'](_0x3f402f=>_0x3f402f['hasAttribute'](_0x2188fe))),_0x4d71fd=Oe(_0x558ee4['filter'](_0x44433b=>!_0x44433b['hasAttribute'](_0x2188fe)))['map'](_0x19da31=>_0x49aa1c['createRangeOn'](_0x19da31)),_0x346780=_0x4a1a6f['markMultiRangeDeletion'](_0x4d71fd,_0x32a866);if(_0x346780&&('tableRow'==_0x346780['subType']||'tableColumn'==_0x346780['subType'])){const _0x31a23b=this['_getSuggestionCoords'](_0x346780);for(const _0x284078 of _0x1a1997){const _0x3b8ec6=_0x49aa1c['createRangeOn'](_0x284078),_0x1147d7=_0x2be1f5['getCellLocation'](_0x284078),_0x338a67=_0x284078['getAttribute'](_0x2188fe)-0x1,_0x1be5ad=_0x31a23b[_0x5060bf],_0xe9c9ae=_0x31a23b[_0x4930c0];_0x1be5ad<=_0x1147d7[_0x4998e4]&&_0x1147d7[_0x4998e4]+_0x338a67<=_0xe9c9ae&&_0x346780['addRange'](_0x3b8ec6);}}});});}function _0x3bf373(_0x118180){const _0x3c637a=Array['from'](_0x3bfa97['getRanges']())['map'](_0x532c14=>_0x4be877['fromRange'](_0x532c14));_0x46b9a0['model']['change'](_0x46e5cb=>{const _0x2d8b26=_0x46e5cb['batch'];_0x118180=_0x118180['filter'](_0x3578f9=>'$graveyard'!=_0x3578f9['root']['rootName']),_0x46e5cb['setSelection'](_0x118180),_0x46b9a0['commands']['get']('removeTableRow')['refresh'](),_0x46b9a0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x46b9a0['model']['enqueueChange'](()=>{_0x46b9a0['model']['enqueueChange'](_0x2d8b26,_0x18286f=>{const _0x10f57b=_0x3c637a['filter'](_0x4b779a=>'$graveyard'!=_0x4b779a['root']['rootName']);_0x10f57b['length']>0x0&&_0x18286f['setSelection'](_0x10f57b);for(const _0x3ac29e of _0x3c637a)_0x3ac29e['detach']();});});});}function _0x48f6c3(_0x2065b3){_0x46b9a0['model']['change'](_0x75e847=>{const _0x4e3a8a=Array['from'](_0x3bfa97['getRanges']())['map'](_0x48f5d3=>_0x4be877['fromRange'](_0x48f5d3)),_0x5b8c4e=[];for(const _0x852b94 of _0x2065b3)for(const _0x5de1c1 of _0x852b94['getItems']({'shallow':!0x0}))_0x5b8c4e['push'](_0x5de1c1);for(const _0xbea3d1 of _0x5b8c4e)'$graveyard'!=_0xbea3d1['root']['rootName']&&(_0x75e847['setSelection'](_0x75e847['createPositionAt'](_0xbea3d1,0x0)),_0x46b9a0['commands']['get']('removeTableColumn')['refresh'](),_0x46b9a0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x7fa2e5=_0x4e3a8a['filter'](_0x1dc592=>'$graveyard'!=_0x1dc592['root']['rootName']);_0x7fa2e5['length']>0x0&&_0x75e847['setSelection'](_0x7fa2e5);for(const _0x21b424 of _0x4e3a8a)_0x21b424['detach']();});}function _0x5d102c(_0x3313fb,_0x1b51ac){return _0x1b51ac['every'](_0x5cd782=>_0x3313fb['some'](_0x4a63ab=>_0x4a63ab['end']['isEqual'](_0x5cd782['start'])||_0x5cd782['end']['isEqual'](_0x4a63ab['start'])));}function _0x421491(_0x2c7934,_0x296e41){return!_0x2c7934['some'](_0x289eb5=>_0x296e41['some'](_0x555bd1=>_0x289eb5['isIntersecting'](_0x555bd1)))&&_0x2c7934['some'](_0x86653a=>_0x296e41['some'](_0x56f002=>_0x86653a['end']['isTouching'](_0x56f002['start'])));}_0x46b9a0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xfeafc3,_0x2a0c70,_0x59bc43)=>{if(!_0x59bc43['options']['showSuggestionHighlights'])return;const _0x1e44ff=_0x2a0c70['item'];if(!_0x1e44ff||!_0x1e44ff['is']('element','tableCell'))return;const _0x5eb82d=_0x59bc43['mapper']['toViewElement'](_0x1e44ff);if(_0x5eb82d){const {id:_0xd9eaa5,authorId:_0x5e9a31}=_0x4a1a6f['_splitMarkerName'](_0x2a0c70['markerName']);_0x342802(_0x5eb82d,_0x59bc43['writer'],(_0x20d204,_0x505ecc,_0x339ede)=>{_0x339ede['addClass'](_0x4d6af2(_0x505ecc['classes']),_0x20d204),_0x339ede['setAttribute']('data-suggestion-id',_0xd9eaa5,_0x20d204),_0x339ede['setAttribute']('data-author-id',_0x5e9a31,_0x20d204);},(_0x5d0b6d,_0x59bd21,_0x25ba2f)=>{_0x25ba2f['removeClass'](_0x4d6af2(_0x59bd21['classes']),_0x5d0b6d),_0x25ba2f['removeAttribute']('data-suggestion-id',_0x5d0b6d),_0x25ba2f['removeAttribute']('data-author-id',_0x5d0b6d);});}},{'priority':'highest'}),_0x4a1a6f['descriptionFactory']['registerDescriptionCallback'](_0x7298bc=>{if('insertion'!=_0x7298bc['type']&&'deletion'!=_0x7298bc['type'])return;const _0x5d674d=_0x7298bc['getContainedElement']();if(null!=_0x5d674d&&_0x5d674d['is']('element','table')){if('insertion'==_0x7298bc['type']){const _0x2274a5=_0x7298bc['getItems']()['filter'](_0x4cf96f=>_0x4cf96f['is']('$textProxy'))['map'](_0x44f493=>_0x44f493['data']);if(_0x2274a5['length'])return{'type':'insertion','content':o(_0x3339d7,'*Insert:*\x20%0',o(_0x3339d7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2274a5['join']('\x20')+'\x22'))};}if('deletion'==_0x7298bc['type']){const _0xbf8991=_0x7298bc['getItems']()['filter'](_0x27539a=>_0x27539a['is']('$textProxy'))['map'](_0x21548c=>_0x21548c['data']);if(_0xbf8991['length'])return{'type':'deletion','content':o(_0x3339d7,'*Remove:*\x20%0',o(_0x3339d7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xbf8991['join']('\x20')+'\x22'))};}}}),_0x4a1a6f['descriptionFactory']['registerDescriptionCallback'](_0x128d65=>{if('tableRow'==_0x128d65['subType']){const _0x574965=_0x128d65['getItems']()['filter'](_0x5a4f64=>_0x5a4f64['is']('$textProxy'))['map'](_0x4f7b1c=>_0x4f7b1c['data']),_0x3dc110=this['_getSuggestionCoords'](_0x128d65),_0x14a079=_0x3dc110['maxRow']-_0x3dc110['minRow']+0x1;if('insertion'==_0x128d65['type'])return _0x574965['length']?{'type':'insertion','content':o(_0x3339d7,'*Insert:*\x20%0',o(_0x3339d7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14a079,'\x22'+_0x574965['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3339d7,'*Insert:*\x20%0',o(_0x3339d7,'ELEMENT_TABLE_ROW',_0x14a079))};if('deletion'==_0x128d65['type'])return _0x574965['length']?{'type':'deletion','content':o(_0x3339d7,'*Remove:*\x20%0',o(_0x3339d7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14a079,'\x22'+_0x574965['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3339d7,'*Remove:*\x20%0',o(_0x3339d7,'ELEMENT_TABLE_ROW',_0x14a079))};}if('tableColumn'==_0x128d65['subType']){const _0x5aa51b=_0x128d65['getItems']()['filter'](_0xff921f=>_0xff921f['is']('$textProxy'))['map'](_0x1112c7=>_0x1112c7['data']),_0x17963b=this['_getSuggestionCoords'](_0x128d65),_0x57961c=_0x17963b['maxColumn']-_0x17963b['minColumn']+0x1;if('insertion'==_0x128d65['type'])return _0x5aa51b['length']?{'type':'insertion','content':o(_0x3339d7,'*Insert:*\x20%0',o(_0x3339d7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x57961c,'\x22'+_0x5aa51b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3339d7,'*Insert:*\x20%0',o(_0x3339d7,'ELEMENT_TABLE_COLUMN',_0x57961c))};if('deletion'==_0x128d65['type'])return _0x5aa51b['length']?{'type':'deletion','content':o(_0x3339d7,'*Remove:*\x20%0',o(_0x3339d7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x57961c,'\x22'+_0x5aa51b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3339d7,'*Remove:*\x20%0',o(_0x3339d7,'ELEMENT_TABLE_COLUMN',_0x57961c))};}}),_0x4a1a6f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3bf373),_0x4a1a6f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3bf373),_0x4a1a6f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x48f6c3),_0x4a1a6f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x48f6c3),_0x4a1a6f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5d102c),_0x4a1a6f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5d102c),_0x4a1a6f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x421491),_0x4a1a6f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x421491);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3b252e=this['editor'],_0x2d952f=_0x3b252e['model']['document']['selection'];return(_0x1a21e0,_0x5a3cb8)=>{_0x3b252e['model']['change'](_0x2575ba=>{const {commandName:_0x15b5d0,commandParams:_0x4743d9}=_0x5a3cb8;let _0x54d64f=_0x1a21e0[0x0]['end']['nodeBefore'];_0x4743d9&&_0x4743d9[0x0]&&!0x1===_0x4743d9[0x0]['forceValue']&&(_0x54d64f=_0x1a21e0[0x0]['start']['nodeAfter']);const _0x5f3238=_0x2575ba['createRangeIn'](_0x54d64f);if('$graveyard'==_0x5f3238['root']['rootName'])return;const _0x291da0=Array['from'](_0x2d952f['getRanges']())['map'](_0xf650a1=>_0x4be877['fromRange'](_0xf650a1));_0x2575ba['setSelection'](_0x5f3238),_0x3b252e['commands']['get'](_0x15b5d0)['refresh'](),_0x4743d9['push']({'forceDefaultExecution':!0x0}),_0x3b252e['execute'](_0x15b5d0,..._0x4743d9);const _0x2a466e=_0x291da0['filter'](_0x1cf4d2=>'$graveyard'!=_0x1cf4d2['root']['rootName']);_0x2a466e['length']>0x0&&_0x2575ba['setSelection'](_0x2a466e);for(const _0x5c2cc1 of _0x291da0)_0x5c2cc1['detach']();});};}['_getCoordsForCells'](_0x317dc1){const _0x3d07ac=this['editor']['plugins']['get']('TableUtils');let _0x1ecb47=Number['MAX_SAFE_INTEGER'],_0x27bcd1=Number['MIN_SAFE_INTEGER'],_0x2f83c4=Number['MAX_SAFE_INTEGER'],_0x37d138=Number['MIN_SAFE_INTEGER'];for(const _0x1fb950 of _0x317dc1){if('$graveyard'==_0x1fb950['root']['rootName'])continue;const {row:_0x497a9e,column:_0x2eadd1}=_0x3d07ac['getCellLocation'](_0x1fb950),_0x32eff1=_0x1fb950['hasAttribute']('rowspan')?_0x1fb950['getAttribute']('rowspan')-0x1:0x0,_0x2a5a1d=_0x1fb950['hasAttribute']('colspan')?_0x1fb950['getAttribute']('colspan')-0x1:0x0;_0x1ecb47=_0x497a9e<_0x1ecb47?_0x497a9e:_0x1ecb47,_0x27bcd1=_0x497a9e+_0x32eff1>_0x27bcd1?_0x497a9e+_0x32eff1:_0x27bcd1,_0x2f83c4=_0x2eadd1<_0x2f83c4?_0x2eadd1:_0x2f83c4,_0x37d138=_0x2eadd1+_0x2a5a1d>_0x37d138?_0x2eadd1+_0x2a5a1d:_0x37d138;}return{'minRow':_0x1ecb47,'maxRow':_0x27bcd1,'minColumn':_0x2f83c4,'maxColumn':_0x37d138};}['_setupColumnsRowsFixing'](){const _0x30061a=this['editor'],_0x342192=_0x30061a['plugins']['get']('TrackChangesEditing'),_0x16b292=_0x30061a['plugins']['get']('TableUtils');_0x30061a['model']['document']['on']('change:data',()=>{const _0x315dba=Array['from'](_0x30061a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a2b33,data:_0x36110f}of _0x315dba){const {group:_0x54b5a0,id:_0x5f42ef,subType:_0x46d6cc}=_0x342192['_splitMarkerName'](_0x1a2b33);if('suggestion'!=_0x54b5a0)continue;if(null!=_0x36110f['oldRange'])continue;const _0x3cf1a4=_0x342192['getSuggestion'](_0x5f42ef);this['_tablePostFixingSubtypes']['includes'](_0x46d6cc)&&this['_tableSuggestions']['add'](_0x3cf1a4);}},{'priority':'low'});const _0x29df21=(_0x1b5ea9,_0x2f43a4)=>{let _0x482789=!0x1;const _0x22e4ac=_0x2f43a4['createRangeOn'](_0x1b5ea9),_0x7661ca=_0x1b5ea9['findAncestor']('table'),_0x37cc83=_0x16b292['getCellLocation'](_0x1b5ea9);for(const _0x5ea1f4 of this['_tableSuggestions']){const _0x58c9ee=_0x5ea1f4['subType'],_0x2d62ba=_0x58c9ee['startsWith']('tablePaste'),_0xdcf137=_0x58c9ee['substr'](_0x2d62ba?0xa:0x5),_0x23445d=_0xdcf137['toLowerCase'](),_0x46f1ae=_0x23445d['substr'](0x0,0x3)+'span',_0x5af873='min'+_0xdcf137,_0x2b6195='max'+_0xdcf137;if(!_0x5ea1f4['isInContent'])continue;if(_0x7661ca!=_0x5ea1f4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5ea1f4['isIntersectingWithRange'](_0x22e4ac))continue;const _0x134865=_0x1b5ea9['hasAttribute'](_0x46f1ae)?_0x1b5ea9['getAttribute'](_0x46f1ae)-0x1:0x0,_0xc17371=this['_getSuggestionCoords'](_0x5ea1f4),_0x514f46=_0xc17371[_0x5af873],_0x43a3a6=_0xc17371[_0x2b6195];_0x514f46<=_0x37cc83[_0x23445d]&&_0x37cc83[_0x23445d]+_0x134865<=_0x43a3a6&&(_0x5ea1f4['addRange'](_0x22e4ac),_0x482789=!0x0);}return _0x482789;};_0x30061a['model']['document']['registerPostFixer'](_0x45a0cb=>{let _0x5b256a=!0x1;for(const _0x286a28 of _0x30061a['model']['document']['differ']['getChanges']())if('insert'==_0x286a28['type']){if('tableRow'==_0x286a28['name']){for(const _0x5ef9d7 of _0x286a28['position']['nodeAfter']['getChildren']())_0x5b256a=_0x5b256a||_0x29df21(_0x5ef9d7,_0x45a0cb);}else'tableCell'==_0x286a28['name']&&(_0x5b256a=_0x5b256a||_0x29df21(_0x286a28['position']['nodeAfter'],_0x45a0cb));}return _0x5b256a;});}['_getSuggestionCoords'](_0x29a452){return this['_getCoordsForCells'](_0x29a452['getRanges']()['map'](_0x49f6cf=>_0x49f6cf['start']['nodeAfter']));}}function Oe(_0x23da09){return Array['from'](new Set(_0x23da09)['values']());}class Mt extends _0xa1bc5{static get['requires'](){return[Dt];}['afterInit'](){const _0x2a7c18=this['editor'],_0x52aaaa=_0x2a7c18['model']['document']['selection'],_0x2fc571=_0x2a7c18['locale'];if(!_0x2a7c18['plugins']['has']('TableEditing'))return;const _0x29d4c6=_0x2a7c18['plugins']['get']('TrackChangesEditing'),_0x5f01fa=_0x2a7c18['plugins']['get']('TableUtils'),_0x532d0d=_0x2a7c18['plugins']['get'](Dt);_0x532d0d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x29d4c6['enableCommand']('mergeTableCells',()=>{const _0x2c19a5=_0x5f01fa['getSelectionAffectedTableCells'](_0x2a7c18['model']['document']['selection']);_0x2a7c18['model']['change'](()=>{_0x29d4c6['markMultiRangeBlockFormat'](_0x2c19a5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2a7c18['commands']['get']('mergeTableCells')['on']('execute',(_0x121b08,_0x2326e8)=>{_0x2a7c18['commands']['get']('trackChanges')['value']&&(_0x2326e8['length']>0x0&&_0x2326e8[_0x2326e8['length']-0x1]&&_0x2326e8[_0x2326e8['length']-0x1]['forceDefaultExecution']||_0x29d4c6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x121b08['stop']());},{'priority':'highest'});for(const _0x36c596 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4065ee=_0x2a7c18['commands']['get'](_0x36c596);_0x29d4c6['enableCommand'](_0x36c596,()=>{const _0x46268c=_0x2a7c18['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1ae9fa=>_0x1ae9fa['is']('element','tableCell')),_0x1ab600=_0x4065ee['value'];_0x2a7c18['model']['change'](()=>{_0x29d4c6['markMultiRangeBlockFormat']([_0x46268c,_0x1ab600],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x445ccf of['splitTableCellVertically','splitTableCellHorizontally']){const _0x120258=_0x2a7c18['commands']['get'](_0x445ccf);_0x29d4c6['enableCommand'](_0x445ccf,()=>{const _0x1c17e0=_0x5f01fa['getSelectionAffectedTableCells'](_0x2a7c18['model']['document']['selection'])[0x0],_0x28f4cf=_0x1c17e0['findAncestor']('table'),{column:_0x37e1c6,row:_0x45eff6}=_0x5f01fa['getCellLocation'](_0x1c17e0);let _0x291ba4=[];if('horizontally'==_0x120258['direction']){const _0x511953=_0x5f01fa['createTableWalker'](_0x28f4cf,{'startRow':_0x45eff6,'endRow':_0x45eff6,'includeAllSlots':!0x0});_0x291ba4=Array['from'](_0x511953)['map'](_0x2fe571=>_0x2fe571['cell']);}else{const _0x36875e=_0x5f01fa['createTableWalker'](_0x28f4cf,{'column':_0x37e1c6,'includeAllSlots':!0x0});_0x291ba4=Array['from'](_0x36875e)['map'](_0x42bb16=>_0x42bb16['cell']);}_0x2a7c18['model']['change'](_0xc0f328=>{_0x29d4c6['markBlockFormat'](_0xc0f328['createRangeOn'](_0x1c17e0),{'commandName':_0x445ccf,'commandParams':[]},_0x291ba4,_0x445ccf);});});}_0x29d4c6['descriptionFactory']['registerDescriptionCallback'](_0x256e41=>{if('formatBlock'!=_0x256e41['type']&&'formatInline'!=_0x256e41['type'])return;const {data:_0x324bfa}=_0x256e41;return _0x324bfa&&'mergeTableCells'==_0x324bfa['commandName']?{'type':'format','content':o(_0x2fc571,'*Merge\x20cells*')}:void 0x0;}),_0x29d4c6['descriptionFactory']['registerDescriptionCallback'](_0x28d42f=>{if('formatBlock'!=_0x28d42f['type']&&'formatInline'!=_0x28d42f['type'])return;const {data:_0x510515}=_0x28d42f;return _0x510515?'splitTableCellVertically'==_0x510515['commandName']?{'type':'format','content':o(_0x2fc571,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x510515['commandName']?{'type':'format','content':o(_0x2fc571,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x36e8ca=_0x532d0d['_acceptFormatSuggestionCallbackFactory']();for(const _0x34e1fd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x29d4c6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x34e1fd,'accept',_0x36e8ca);for(const _0x494693 of['splitTableCellVertically','splitTableCellHorizontally'])_0x29d4c6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x494693,'accept',_0x36e8ca);_0x29d4c6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x260fa3=>{_0x2a7c18['model']['change'](_0x2d51e6=>{const _0x5eb770=Array['from'](_0x52aaaa['getRanges']())['map'](_0x2b2f60=>_0x4be877['fromRange'](_0x2b2f60));_0x2d51e6['setSelection'](_0x260fa3),_0x2a7c18['commands']['get']('mergeTableCells')['refresh'](),_0x2a7c18['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x160c31=_0x5eb770['filter'](_0x17d619=>'$graveyard'!=_0x17d619['root']['rootName']);_0x160c31['length']>0x0&&_0x2d51e6['setSelection'](_0x160c31);for(const _0x59c703 of _0x5eb770)_0x59c703['detach']();});});for(const _0x25ef50 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4d550c=_0x2a7c18['commands']['get'](_0x25ef50);_0x4d550c['on']('set:isEnabled',(_0x57f357,_0x2f3f31,_0x133392)=>{if(_0x133392){const _0x3de0fc=_0x2a7c18['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x7606d7=>_0x7606d7['is']('element','tableCell'));this['_areMergableCells'](_0x4d550c['value'],_0x3de0fc)||(_0x57f357['return']=!0x1,_0x57f357['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x132a52=this['editor']['commands']['get']('mergeTableCells'),_0x5e920c=this['editor']['plugins']['get']('TableUtils');if(!_0x132a52['isEnabled'])return!0x1;const _0x1ab0d6=_0x5e920c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1bee65 of _0x1ab0d6)for(const _0x5e1aed of _0x1ab0d6)if(_0x1bee65!=_0x5e1aed&&!this['_areMergableCells'](_0x1bee65,_0x5e1aed))return!0x1;return!0x0;}['_areMergableCells'](_0x1385a2,_0x37790e){const _0x2fb8f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbaa6dc=this['editor']['model']['createRangeOn'](_0x1385a2),_0x398536=this['editor']['model']['createRangeOn'](_0x37790e),_0x410669=new Set(),_0x3624ed=new Set();for(const _0x5f2540 of _0x2fb8f1['getSuggestions']())if(('insertion'==_0x5f2540['type']||'deletion'==_0x5f2540['type']||'mergeTableCells'==_0x5f2540['subType'])&&_0x5f2540['isInContent']){for(const _0xe35c94 of _0x5f2540['getRanges']())_0xe35c94['containsRange'](_0xbaa6dc,!0x0)&&_0x410669['add'](_0x5f2540['type']+':'+_0x5f2540['author']['id']),_0xe35c94['containsRange'](_0x398536,!0x0)&&_0x3624ed['add'](_0x5f2540['type']+':'+_0x5f2540['author']['id']);}if(_0x410669['size']!=_0x3624ed['size'])return!0x1;for(const _0x28254d of _0x410669)if(!_0x3624ed['has'](_0x28254d))return!0x1;return!0x0;}}class Bt extends _0xa1bc5{static get['requires'](){return[Dt];}['afterInit'](){const _0x14b2ec=this['editor'];if(!_0x14b2ec['plugins']['has']('TableEditing'))return;const _0x131631=_0x14b2ec['locale'],_0x5cfddd=_0x14b2ec['plugins']['get']('TrackChangesEditing');_0x5cfddd['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5cfddd['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5cfddd['registerBlockAttribute']('headingRows'),_0x5cfddd['registerBlockAttribute']('headingColumns'),_0x5cfddd['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x131631,'FORMAT_HEADER_ROW')),_0x5cfddd['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x131631,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5a6d33=this['editor']['plugins']['get']('TrackChangesEditing'),_0x238f78=this['editor']['plugins']['get']('TableUtils'),_0x54595f=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();function _0x507438({showActiveMarker:_0x12a850=!0x0,setDataAttribute:_0x372373=!0x0}={}){return(_0x4c6bfc,_0x1cc4a0,_0x522ed9)=>{const {type:_0x29ecf6,id:_0x15636b}=_0x5a6d33['_splitMarkerName'](_0x1cc4a0['markerName']);if(!_0x5a6d33['hasSuggestion'](_0x15636b))return;const _0x26903d=_0x5a6d33['getSuggestion'](_0x15636b),_0x4a777f=_0x26903d['data'];if('formatBlock'!=_0x26903d['type']||!_0x4a777f||'setTableColumnHeader'!=_0x4a777f['commandName'])return;if(_0x1cc4a0['item'])return void _0x4c6bfc['stop']();if(!_0x522ed9['consumable']['consume'](_0x1cc4a0['markerRange'],_0x4c6bfc['name']))return;const _0x4d30bb=_0x1cc4a0['markerRange']['start']['nodeAfter'],_0x3b851d=_0x1cc4a0['markerRange']['end']['nodeBefore'],_0x4da814=_0x4d30bb['parent']['parent'],{column:_0x3e605d}=_0x238f78['getCellLocation'](_0x4d30bb),{column:_0x5b5710}=_0x238f78['getCellLocation'](_0x3b851d);for(let _0x53e574=_0x3e605d;_0x53e574<=_0x5b5710;_0x53e574++){const _0x597a4a=_0x238f78['createTableWalker'](_0x4da814,{'column':_0x53e574,'includeAllSlots':!0x1});for(const _0x525f67 of _0x597a4a){const _0x2eb126=_0x525f67['cell'],_0x136ade=_0x522ed9['mapper']['toViewElement'](_0x2eb126);_0x522ed9['writer']['addClass']('ck-suggestion-marker-'+_0x29ecf6,_0x136ade),_0x372373&&_0x522ed9['writer']['setAttribute']('data-suggestion',_0x15636b,_0x136ade),_0x522ed9['mapper']['bindElementToMarker'](_0x136ade,_0x1cc4a0['markerName']),_0x12a850&&(_0x5a6d33['activeMarkers']['includes'](_0x1cc4a0['markerName'])?_0x522ed9['writer']['addClass']('ck-suggestion-marker--active',_0x136ade):_0x522ed9['writer']['removeClass']('ck-suggestion-marker--active',_0x136ade));}}};}_0x5a6d33['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x54595f),_0x5a6d33['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x54595f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x507438(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5b6989,_0xee5d3b,_0x30897b)=>{_0x30897b['options']['showSuggestionHighlights']&&_0x507438({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5b6989,_0xee5d3b,_0x30897b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x18c4a3,_0x4f944c,_0x6eb2cd)=>{const {type:_0x531cc6,id:_0x3145e1}=_0x5a6d33['_splitMarkerName'](_0x4f944c['markerName']);if(!_0x5a6d33['hasSuggestion'](_0x3145e1))return;const _0x3114ae=_0x5a6d33['getSuggestion'](_0x3145e1),_0x4f44de=_0x3114ae['data'];if('formatBlock'!=_0x3114ae['type']||!_0x4f44de||'setTableColumnHeader'!=_0x4f44de['commandName'])return;const _0x3cc4f0=_0x6eb2cd['mapper']['markerNameToElements'](_0x4f944c['markerName']);if(_0x3cc4f0){for(const _0x53e560 of _0x3cc4f0)_0x6eb2cd['writer']['removeClass']('ck-suggestion-marker-'+_0x531cc6,_0x53e560),_0x6eb2cd['writer']['removeClass']('ck-suggestion-marker--active',_0x53e560),_0x6eb2cd['writer']['removeAttribute']('data-suggestion',_0x53e560),_0x6eb2cd['mapper']['unbindElementFromMarkerName'](_0x53e560,_0x4f944c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x647459=this['editor'],_0x37581f=_0x647459['locale'];function _0x834705(_0x3ac942){return{'type':'format','content':o(_0x37581f,'*Format:*\x20%0',_0x3ac942)};}_0x647459['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5991a3=>{if('formatBlock'!=_0x5991a3['type'])return;const {data:_0xf61b56}=_0x5991a3;if(_0xf61b56){if('setTableRowHeader'==_0xf61b56['commandName']){const _0x48bb22=_0xf61b56['commandParams'][0x0]['forceValue'];return _0x834705(o(_0x37581f,_0x48bb22?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xf61b56['commandName']){const _0x4e6ad0=_0xf61b56['commandParams'][0x0]['forceValue'];return _0x834705(o(_0x37581f,_0x4e6ad0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Tt extends _0xa1bc5{['afterInit'](){const _0x43f737=this['editor'],_0x2a6ecc=_0x43f737['locale'],_0x2aa7d6=_0x43f737['plugins']['get']('TrackChangesEditing');function _0x552914(_0x4809a8){return{'type':'format','content':''+o(_0x2a6ecc,'*Set\x20table\x20type:*\x20%0',_0x4809a8)};}_0x43f737['plugins']['has']('TableLayout')&&(_0x2aa7d6['enableCommand']('insertTableLayout'),_0x2aa7d6['enableDefaultAttributesIntegration']('tableType'),_0x2aa7d6['registerBlockAttribute']('tableType'),_0x2aa7d6['descriptionFactory']['registerElementLabel'](_0x99aa8=>_0x99aa8['is']('element','table')&&'layout'===_0x99aa8['getAttribute']('tableType'),_0x435132=>o(_0x2a6ecc,'ELEMENT_LAYOUT_TABLE',_0x435132)),_0x2aa7d6['descriptionFactory']['registerDescriptionCallback'](_0x24edff=>{const {data:_0x33abc3}=_0x24edff;if(_0x33abc3&&'tableType'==_0x33abc3['key'])switch(_0x33abc3['newValue']){case'layout':return _0x552914(o(_0x2a6ecc,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x552914(o(_0x2a6ecc,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Ue['map'](_0x4f3d92=>[_0x4f3d92,null]));class Ot extends _0xa1bc5{static get['requires'](){return[Dt];}['afterInit'](){const _0x251a84=this['editor'];if(!_0x251a84['plugins']['has']('TableClipboard'))return;const _0x188d6a=_0x251a84['plugins']['get']('TrackChangesEditing'),_0x2a72e4=_0x251a84['plugins']['get']('TableUtils'),_0x1f8922=_0x251a84['plugins']['get'](Dt),_0x2a0387=_0x251a84['plugins']['get']('TableClipboard'),_0x43952=_0x251a84['plugins']['get']('TableSelection'),_0x3b5a44=_0x251a84['plugins']['get'](_0x1246aa);_0x1f8922['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x251a84['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x251a84['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5174d8=null,_0x1c8b21=!0x1;_0x3b5a44['on']('contentInsertion',(_0x20fccb,_0x375731)=>{_0x1c8b21='paste'===_0x375731['method'];}),_0x251a84['model']['on']('insertContent',(_0x1d5b24,_0x37d15f)=>{if(!_0x1c8b21&&null===_0x43952['getSelectedTableCells']())return;const [_0x566af9,_0x48422d]=_0x37d15f,_0x13a399=_0x37d15f[_0x37d15f['length']-0x1];_0x13a399&&_0x13a399['forceDefaultExecution']||_0x188d6a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x16e2cd,_0x1a738f,_0x394c7e,_0x54fc53,_0x1b2d49){if(_0x1a738f&&!_0x1a738f['is']('documentSelection'))return!0x1;const _0x551bc6=_0x1b2d49['getTableIfOnlyTableInContent'](_0x16e2cd,_0x394c7e);if(!_0x551bc6||!Ge(_0x551bc6,void 0x0,_0x54fc53))return!0x1;const _0xc6111f=_0x54fc53['getSelectionAffectedTableCells'](_0x394c7e['document']['selection']);if(!_0xc6111f['length'])return!0x1;const _0x22557a=_0xc6111f[0x0]['findAncestor']('table'),_0x5e4c81=_0x54fc53['getRowIndexes'](_0xc6111f),_0x3dbe6d=_0x54fc53['getColumnIndexes'](_0xc6111f),_0x51741a={'startRow':_0x5e4c81['first'],'endRow':_0x5e4c81['last'],'startColumn':_0x3dbe6d['first'],'endColumn':_0x3dbe6d['last']};return 0x1==_0xc6111f['length']&&(_0x51741a['endRow']+=_0x54fc53['getRows'](_0x551bc6)-0x1,_0x51741a['endColumn']+=_0x54fc53['getColumns'](_0x551bc6)-0x1),Ge(_0x22557a,_0x51741a,_0x54fc53);}(_0x566af9,_0x48422d,_0x251a84['model'],_0x2a72e4,_0x2a0387)&&(_0x1d5b24['stop'](),_0x5174d8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x251a84['model']['change'](()=>{_0x251a84['model']['insertContent'](_0x37d15f[0x0],_0x37d15f[0x1],_0x37d15f[0x2],{'forceDefaultExecution':!0x0});const _0x2922bf=_0x4cc075(),{rowInsertionRanges:_0xdf282d,columnInsertionRanges:_0x16db7c,insertionRanges:_0x46cee0,deletionRanges:_0x276e81,cells:_0x5c168f}=_0x5174d8;_0xdf282d['length']&&_0x188d6a['markMultiRangeInsertion'](_0xdf282d,'tablePasteRow',{'tablePasteChainId':_0x2922bf}),_0x16db7c['length']&&_0x188d6a['markMultiRangeInsertion'](_0x16db7c,'tablePasteColumn',{'tablePasteChainId':_0x2922bf}),_0x46cee0['length']&&(_0x188d6a['markMultiRangeInsertion'](_0x46cee0,'tablePaste',{'tablePasteChainId':_0x2922bf,'skipNestingCheck':!0x0}),_0x46cee0['forEach'](_0xfe4514=>_0xfe4514['detach']?.())),_0x276e81['length']&&(_0x188d6a['markMultiRangeDeletion'](_0x276e81,'tablePaste',{'tablePasteChainId':_0x2922bf,'skipNestingCheck':!0x0}),_0x276e81['forEach'](_0x4dbd68=>_0x4dbd68['detach']?.()));const _0x2249c0=_0x188d6a['markMultiRangeBlockFormat'](_0x5c168f['map'](({element:_0x5914fc})=>_0x5914fc),{'formatGroupId':_0x4cc075()},[],'tablePasteCell',{'tablePasteChainId':_0x2922bf});if(_0x2249c0){const _0x3765c9=_0x2249c0['getMarkers'](),_0xe0a02=[];for(const {element:_0x52704c,attributes:_0xd84c78}of _0x5c168f){if(!_0xd84c78)continue;const _0x4e0930=_0x251a84['model']['createRangeOn'](_0x52704c),_0x3dcf36=_0x3765c9['find'](_0x283cf1=>_0x283cf1['getRange']()['isEqual'](_0x4e0930));_0x3dcf36&&_0xe0a02['push']([_0x3dcf36['name'],_0xd84c78]);}_0xe0a02['length']&&_0x2249c0['setAttribute']('markerAttributes',Object['fromEntries'](_0xe0a02));}_0x5174d8=null;}));},{'priority':_0x2521c1['high']+0xa}),_0x3b5a44['on']('contentInsertion',()=>{_0x1c8b21=!0x1;},{'priority':'lowest'}),_0x251a84['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5d2eac,_0x2f271b)=>{const [_0x71e497,_0x541d74,,_0x544a1b]=_0x2f271b;if(!_0x5174d8)return;_0x5d2eac['stop']();const _0x492845=_0x71e497['cell'],_0x47399f=_0x541d74,_0x350978=ze(_0x492845),_0x6c917d=ze(_0x47399f);_0x5d2eac['return']=_0x492845;let _0xefa272=null,_0x1c8e79=null;if(_0x6c917d||_0x350978){if(_0x350978&&!_0x6c917d){_0x544a1b['remove'](_0x492845['getChild'](0x0));for(const _0x1f96e0 of Array['from'](_0x47399f['getChildren']()))_0x544a1b['insert'](_0x1f96e0,_0x492845,'end');const _0x30975b=_0x5174d8['rowInsertionIndexes']['includes'](_0x71e497['row']),_0x230ef9=_0x5174d8['columnInsertionIndexes']['includes'](_0x71e497['column']);_0x30975b||_0x230ef9||(_0xefa272=_0x4be877['fromRange'](_0x544a1b['createRangeIn'](_0x492845)));}else _0x6c917d&&!_0x350978&&(_0x1c8e79=_0x544a1b['createRangeIn'](_0x492845));}else{const _0x1fa947=_0x544a1b['createElement']('tableCellSuggestion'),_0x3cfc32=_0x544a1b['createElement']('tableCellSuggestion');_0x544a1b['wrap'](_0x544a1b['createRangeIn'](_0x492845),_0x3cfc32),_0x544a1b['insert'](_0x1fa947,_0x492845,0x0);for(const _0x127d40 of Array['from'](_0x47399f['getChildren']()))_0x544a1b['insert'](_0x127d40,_0x1fa947,'end');_0xefa272=_0x4be877['fromRange'](_0x544a1b['createRangeOn'](_0x1fa947)),_0x1c8e79=_0x4be877['fromRange'](_0x544a1b['createRangeOn'](_0x3cfc32));}const _0x52b846=Array['from'](_0x47399f['getAttributes']())['filter'](([_0x52ba61])=>Ue['includes'](_0x52ba61));_0x5174d8['cells']['push']({'element':_0x492845,'attributes':_0x52b846['length']?Object['fromEntries'](_0x52b846):null}),_0xefa272&&_0x5174d8['insertionRanges']['push'](_0xefa272),_0x1c8e79&&_0x5174d8['deletionRanges']['push'](_0x1c8e79);},{'priority':'high'}),_0x2a72e4['on']('insertColumns',(_0x45ea0d,_0x2fe246)=>{const [_0x3fc0bf,_0x4b7a42={}]=_0x2fe246;if(!_0x5174d8)return;const _0x3a337d=_0x4b7a42['at']||0x0,_0x1c8b79=_0x4b7a42['columns']||0x1;_0x5174d8['columnInsertionIndexes']=new Array(_0x1c8b79)['fill'](_0x3a337d)['map']((_0x1b1393,_0x3a946a)=>_0x1b1393+_0x3a946a);for(const {cell:_0xe6d485}of _0x2a72e4['createTableWalker'](_0x3fc0bf,{'startColumn':_0x3a337d,'endColumn':_0x3a337d+_0x1c8b79-0x1}))_0x5174d8['columnInsertionRanges']['push'](_0x251a84['model']['createRangeOn'](_0xe6d485));},{'priority':'low'}),_0x2a72e4['on']('insertRows',(_0x3b4e4c,_0x53b751)=>{const [_0x3bef93,_0x37faa3={}]=_0x53b751;if(!_0x5174d8)return;const _0x549f71=_0x37faa3['at']||0x0,_0x4a075d=_0x37faa3['rows']||0x1;_0x5174d8['rowInsertionIndexes']=new Array(_0x4a075d)['fill'](_0x549f71)['map']((_0x5d890f,_0x23e3d2)=>_0x5d890f+_0x23e3d2);for(const {cell:_0x25d94e}of _0x2a72e4['createTableWalker'](_0x3bef93,{'startRow':_0x549f71,'endRow':_0x549f71+_0x4a075d-0x1}))_0x5174d8['rowInsertionRanges']['push'](_0x251a84['model']['createRangeOn'](_0x25d94e));},{'priority':'low'}),_0x188d6a['descriptionFactory']['registerDescriptionCallback'](_0x1fa805=>{if(_0x1fa805['subType']&&_0x1fa805['subType']['startsWith']('tablePaste'))return _0x1fa805['previous']?{}:{'type':'insertion','content':o(_0x251a84['locale'],'*Replace\x20table\x20cells*')};});const _0xa163f1=()=>!0x1;for(const _0x515665 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x188d6a['_suggestionFactory']['registerCustomCallback']('insertion',_0x515665,'join',_0xa163f1),_0x188d6a['_suggestionFactory']['registerCustomCallback']('deletion',_0x515665,'join',_0xa163f1),_0x188d6a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x515665,'join',_0xa163f1);_0x188d6a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xa163f1),_0x188d6a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2ce722,_0x2cae18,_0x3b275c)=>{const _0x5c3ad2=_0x2ce722['map'](_0x18a5c0=>_0x18a5c0['getContainedElement']())['filter'](_0x4c66e4=>_0x4c66e4),_0x4a7520=new Map(_0x5c3ad2['map'](_0x40ed18=>[_0x40ed18,null]));if(_0x5174d8){for(const {element:_0xbe3daf,attributes:_0x1cddf5}of _0x5174d8['cells'])_0x1cddf5&&_0x4a7520['set'](_0xbe3daf,_0x1cddf5);}else{if(_0x3b275c&&_0x3b275c['markerAttributes'])for(const [_0x2170a5,_0x4e6119]of Object['entries'](_0x3b275c['markerAttributes'])){const _0x537053=_0x251a84['model']['markers']['get'](_0x2170a5),_0x36ce16=_0x537053?_0x537053['getRange']()['getContainedElement']():null;_0x36ce16&&_0x4a7520['set'](_0x36ce16,_0x4e6119);}}_0x251a84['model']['change'](_0x1f7aae=>{for(const [_0x3bcb8e,_0x1e8afc]of _0x4a7520)_0x1f7aae['setAttributes']({...He,..._0x1e8afc},_0x3bcb8e);});});const _0x3bea77=(_0x75e031,_0x2fd0f3)=>{_0x188d6a['_suggestionFactory']['registerCustomCallback'](_0x75e031,'tablePaste',_0x2fd0f3,(_0x220537,_0x40d720,_0xe923ce)=>{_0x251a84['model']['change'](_0xf87cba=>{const _0xe9da38=[];for(const _0x2feb9d of _0x220537){const _0x59688b=_0x2feb9d['start']['nodeAfter'];_0x59688b['is']('element','tableCellSuggestion')&&_0xe9da38['push'](_0x59688b);}_0x188d6a['_suggestionFactory']['getSuggestionCallback'](_0x75e031,null,_0x2fd0f3)(_0x220537,_0x40d720,_0xe923ce);for(const _0x2029fa of _0xe9da38)'$graveyard'!=_0x2029fa['root']['rootName']&&_0xf87cba['unwrap'](_0x2029fa);});});};_0x3bea77('insertion','accept'),_0x3bea77('insertion','discard'),_0x3bea77('deletion','accept'),_0x3bea77('deletion','discard'),_0x188d6a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x561001=>{const _0xb54d7=_0x561001['map'](_0x5aca02=>_0x5aca02['getContainedElement']()),_0x1c09c0=_0xb54d7[0x0]['findAncestor']('table'),{minRow:_0x1e127b,maxRow:_0x5c277f}=_0x1f8922['_getCoordsForCells'](_0xb54d7);_0x2a72e4['removeRows'](_0x1c09c0,{'at':_0x1e127b,'rows':_0x5c277f-_0x1e127b+0x1});}),_0x188d6a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x26426b=>{const _0x4441d2=_0x26426b['map'](_0x274575=>_0x274575['getContainedElement']()),_0x3d3856=_0x4441d2[0x0]['findAncestor']('table'),{minColumn:_0xfed007,maxColumn:_0x260914}=_0x1f8922['_getCoordsForCells'](_0x4441d2);_0x2a72e4['removeColumns'](_0x3d3856,{'at':_0xfed007,'columns':_0x260914-_0xfed007+0x1});});const _0xca43aa=(_0x1683a9,_0x183672)=>{if(!_0x183672['subType']||!_0x183672['subType']['startsWith']('tablePaste'))return;const _0x1867df=_0x183672['attributes']['tablePasteChainId'],_0xea9e4e=_0x188d6a['getSuggestions']()['filter'](_0x427230=>_0x427230['isInContent']&&_0x427230['attributes']&&_0x427230['attributes']['tablePasteChainId']==_0x1867df);_0xea9e4e['length']&&_0x183672['getAllAdjacentSuggestions']()['length']!=_0xea9e4e['length']&&_0xea9e4e['reduce']((_0x43e4ea,_0x47bc97)=>(_0x43e4ea['next']=_0x47bc97,_0x47bc97['previous']=_0x43e4ea,_0x47bc97));};function _0x50d748(_0xe00e91,_0x1b2596=!0x0){const {id:_0x3c2533,authorId:_0x5b481a}=_0x188d6a['_splitMarkerName'](_0xe00e91['markerName']),_0x44746b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x39ad42=_0x188d6a['activeMarkers']['includes'](_0xe00e91['markerName']);return _0x39ad42&&_0x44746b['push']('ck-suggestion-marker--active'),{'classes':_0x44746b,'attributes':{'data-suggestion':_0x3c2533,'data-author-id':_0x5b481a},'priority':_0x39ad42&&_0x1b2596?0xbc2:0xbb8};}_0x188d6a['on']('suggestionLoaded',_0xca43aa,{'priority':'high'}),_0x188d6a['on']('suggestionUnloaded',_0xca43aa,{'priority':'high'}),_0x251a84['model']['document']['registerPostFixer'](()=>{let _0x119238=!0x1;const _0x62991=Array['from'](_0x251a84['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x334d85,data:_0x11821e}of _0x62991){const {group:_0x272f0c,type:_0x326f06,id:_0xd7f1f5}=_0x188d6a['_splitMarkerName'](_0x334d85);if('suggestion'!=_0x272f0c||'deletion'!=_0x326f06||_0x11821e['oldRange'])continue;if(!_0x188d6a['hasSuggestion'](_0xd7f1f5))continue;const _0x826b1a=_0x188d6a['getSuggestion'](_0xd7f1f5)['getRanges'](),_0x1b1e74=_0x251a84['plugins']['get']('Users')['me'];for(const _0x4f6480 of _0x188d6a['getSuggestions']()){if(!_0x4f6480['isInContent']||_0x4f6480['author']!=_0x1b1e74)continue;if('formatBlock'!=_0x4f6480['type']||'tablePasteCell'!=_0x4f6480['subType'])continue;if(_0x4f6480['getRanges']()['every'](_0xc37cfc=>_0x826b1a['some'](_0x31ecd3=>_0x31ecd3['containsRange'](_0xc37cfc,!0x0)))){for(const _0x187d1c of _0x4f6480['getAllAdjacentSuggestions']())_0x187d1c['isInContent']&&(_0x187d1c['discard'](),_0x119238=!0x0);}}}return _0x119238;}),_0x251a84['model']['document']['registerPostFixer'](_0x2ebbfd=>{const _0x462588=_0x251a84['commands']['get']('redo');if(!_0x462588||!_0x462588['_createdBatches']['has'](_0x2ebbfd['batch']))return!0x1;let _0x1eeb24=!0x1;const _0x49d3c7=_0x251a84['plugins']['get']('Users')['me'],_0x8c8dbb=_0x251a84['model']['document']['differ']['getChanges'](),_0x4265a3=Array['from'](_0x251a84['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5146eb,data:_0x3fab7b})=>{const {group:_0x52f637,subType:_0x197fbe,authorId:_0x60f525}=_0x188d6a['_splitMarkerName'](_0x5146eb);return'suggestion'==_0x52f637&&'tablePaste'==_0x197fbe&&_0x60f525==_0x49d3c7['id']&&!_0x3fab7b['oldRange'];});for(const _0x3dc0b9 of _0x8c8dbb){if('insert'!=_0x3dc0b9['type']||'tableCellSuggestion'!=_0x3dc0b9['name']||0x1!=_0x3dc0b9['length'])continue;const _0x24c07b=_0x2ebbfd['createRange'](_0x3dc0b9['position'],_0x3dc0b9['position']['getShiftedBy'](0x1));if(!_0x4265a3['find'](({data:_0x3d8dfc})=>_0x3d8dfc['newRange']['isEqual'](_0x24c07b))){for(const {name:_0x4164fd,data:_0x75f455}of _0x4265a3)if(_0x24c07b['containsRange'](_0x75f455['newRange'])){_0x2ebbfd['updateMarker'](_0x4164fd,{'range':_0x24c07b}),_0x1eeb24=!0x0;break;}}}return _0x1eeb24;}),_0x251a84['model']['document']['registerPostFixer'](_0xe5acd6=>{let _0x109258=!0x1;const _0x1d0cce=_0x251a84['plugins']['get']('Users')['me'],_0x4e3d02=_0x188d6a['getSuggestions']()['filter'](_0x20c6c2=>_0x20c6c2['isInContent']&&_0x20c6c2['author']==_0x1d0cce),_0x4b0fc3=new Set(),_0x4129fe=new Set();for(const _0x517cf3 of _0x4e3d02)if('tablePaste'==_0x517cf3['subType'])for(const _0x4d45a2 of _0x517cf3['getMarkers']()){const _0x218427=_0x4d45a2['getRange']()['getContainedElement']();if(_0x218427){if(_0x218427['is']('element','tableCellSuggestion')&&ze(_0x218427)){_0x517cf3['removeMarker'](_0x4d45a2['name']),_0x4b0fc3['add'](_0x218427),_0x109258=!0x0;const _0x4ba8d2=_0x218427['nextSibling'],_0x3f2f56=_0x218427['previousSibling'],_0x44a829=_0x4ba8d2&&_0x4ba8d2['is']('element','tableCellSuggestion'),_0x477cdb=_0x3f2f56&&_0x3f2f56['is']('element','tableCellSuggestion');_0x44a829&&!_0x4b0fc3['has'](_0x4ba8d2)&&_0x4129fe['add'](_0x4ba8d2),_0x477cdb&&!_0x4b0fc3['has'](_0x3f2f56)&&_0x4129fe['add'](_0x3f2f56);}else _0x218427['is']('element','paragraph')&&_0x218427['isEmpty']&&(_0x517cf3['removeMarker'](_0x4d45a2['name']),_0x109258=!0x0);}}else{if('tablePasteCell'==_0x517cf3['subType']){if(!_0x517cf3['attributes']||!_0x517cf3['attributes']['tablePasteChainId'])continue;const _0x177f02=_0x517cf3['attributes']['markerAttributes'];if(_0x177f02&&Object['keys'](_0x177f02)['length'])continue;const _0x227780=_0x517cf3['attributes']['tablePasteChainId'];let _0x14dad1=!0x0,_0x152ec7=!0x0;for(const _0x183034 of _0x4e3d02)if(_0x183034['subType']&&_0x183034['subType']['startsWith']('tablePaste')){if(!_0x183034['attributes']['tablePasteChainId']){_0x152ec7=!0x1;break;}if(_0x183034['id']!=_0x517cf3['id']&&_0x183034['attributes']['tablePasteChainId']==_0x227780){_0x14dad1=!0x1;break;}}_0x152ec7&&_0x14dad1&&(_0x517cf3['removeMarkers'](),_0x109258=!0x0);}}for(const _0x377818 of _0x4b0fc3)_0xe5acd6['remove'](_0x377818);for(const _0x390591 of _0x4129fe)_0xe5acd6['unwrap'](_0x390591);return _0x109258;}),_0x251a84['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xe19046=>_0x50d748(_0xe19046),'converterPriority':'high'}),_0x251a84['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x299460,_0x29e9cf)=>_0x29e9cf['options']['showSuggestionHighlights']?_0x50d748(_0x299460,!0x1):null,'converterPriority':'high'});const _0x23a70c=_0x251a84['editing']['view'];this['listenTo'](_0x23a70c['document'],'clipboardOutput',(_0x3f7d04,_0x398ff5)=>{const _0x24d594=[];for(const _0xb79349 of _0x23a70c['createRangeIn'](_0x398ff5['content'])['getItems']())_0xb79349['is']('element','suggestion-td')&&_0x24d594['push'](_0xb79349);_0x23a70c['change'](_0x1f7493=>{for(const _0x31c40c of _0x24d594)_0x1f7493['move'](_0x1f7493['createRangeIn'](_0x31c40c),_0x1f7493['createPositionBefore'](_0x31c40c)),_0x1f7493['remove'](_0x31c40c);});});}}function ze(_0x1a66a4){if(_0x1a66a4['isEmpty'])return!0x0;const _0x4184c7=_0x1a66a4['getChild'](0x0);return _0x4184c7['is']('element','paragraph')&&_0x4184c7['isEmpty'];}function Ge(_0x3fe091,_0x320024={},_0x30b92a){for(const {isAnchor:_0x386e29,cellHeight:_0x1d5e09,cellWidth:_0x43ef5e}of _0x30b92a['createTableWalker'](_0x3fe091,{'includeAllSlots':!0x0,..._0x320024}))if(!_0x386e29||0x1!=_0x1d5e09||0x1!=_0x43ef5e)return!0x1;return!0x0;}class xt extends _0xa1bc5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xcbe87f=this['editor']['plugins']['get']('TrackChangesEditing');_0xcbe87f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xcbe87f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xcbe87f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xcbe87f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xcbe87f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xcbe87f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x14985c,_0x5d4a12){const _0x43ef5c=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe8e838=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1758e2=_0x5d4a12['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xc01bb2=_0xe8e838['getColumnGroupElement'](_0x1758e2);let _0x2bac6f=_0xc01bb2?_0xe8e838['getTableColumnsWidths'](_0xc01bb2):null,_0x323bd7=_0x1758e2['getAttribute']('tableWidth')||null;const _0x3e25a=_0x5d4a12['tableWidth']||_0x323bd7,_0x80ab8d=_0x5d4a12['columnWidths']||_0x2bac6f,_0x2266ec=this['editor']['plugins']['get']('Users')['me'];for(const _0x42fb24 of _0x43ef5c['getSuggestions']()){const _0x588b2f=_0x42fb24['getContainedElement']();if('resizeTable'===_0x42fb24['subType']&&_0x588b2f===_0x1758e2){_0x42fb24['author']!==_0x2266ec&&_0x42fb24['discard']();const _0x1cafea=_0x42fb24['data']['commandParams'];_0x323bd7=_0x1cafea[0x0]['tableWidth'],_0x2bac6f=_0x1cafea[0x0]['columnWidths'];break;}}_0x14985c({'table':_0x1758e2,'tableWidth':_0x3e25a,'columnWidths':_0x80ab8d}),_0x43ef5c['markBlockFormat'](_0x1758e2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x323bd7,'columnWidths':_0x2bac6f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1d22f5){if('formatBlock'!=_0x1d22f5['type']&&'formatInline'!=_0x1d22f5['type'])return;const {data:_0x313fb8}=_0x1d22f5;if(_0x313fb8&&'resizeTable'===_0x313fb8['formatGroupId']){const _0x545d76='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x545d76)};}}}class Et extends _0xa1bc5{['afterInit'](){const _0xf805ed=this['editor'];_0xf805ed['plugins']['has']('Template')&&_0xf805ed['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0xa1bc5{['afterInit'](){const _0x3fe240=this['editor'];if(!_0x3fe240['commands']['get']('insertTableOfContents'))return;_0x3fe240['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x170f54=_0x3fe240['plugins']['get']('TrackChangesEditing'),_0x2cdc41=_0x3fe240['locale'];_0x170f54['descriptionFactory']['registerElementLabel']('tableOfContents',_0x443269=>o(_0x2cdc41,'ELEMENT_TABLE_OF_CONTENTS',_0x443269));}}class Ut extends _0xa1bc5{['afterInit'](){const _0x58d59b=this['editor'];if(!_0x58d59b['plugins']['has']('Title'))return;const _0x5d825c=_0x58d59b['plugins']['get']('TrackChangesEditing');_0x5d825c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x58d59b['locale'],'ELEMENT_TITLE')),_0x58d59b['model']['document']['registerPostFixer'](_0x47762c=>{let _0x592924=!0x1;const _0x227313=Array['from'](_0x58d59b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x33a04a,data:_0x3aedc3}of _0x227313){const {group:_0x390d21}=_0x5d825c['_splitMarkerName'](_0x33a04a);if('suggestion'!==_0x390d21||!_0x3aedc3['newRange'])continue;const _0x592812=_0x3aedc3['newRange'],_0x1c243d=_0x592812['end']['nodeBefore'];if(!_0x1c243d||!_0x1c243d['is']('element','title-content'))continue;if(!_0x592812['start']['isTouching'](_0x592812['end']))continue;const _0x4b894c=_0x58d59b['model']['schema']['getNearestSelectionRange'](_0x592812['end'],'forward');if(_0x4b894c&&_0x4b894c['isCollapsed']){const _0x3cbbb5=_0x47762c['createRange'](_0x592812['start'],_0x4b894c['start']);_0x3cbbb5['isEqual'](_0x592812)||(_0x47762c['updateMarker'](_0x33a04a,{'range':_0x3cbbb5}),_0x592924=!0x0);}_0x592924||(_0x47762c['removeMarker'](_0x33a04a),_0x592924=!0x0);}return _0x592924;});}}class Vt extends _0xa1bc5{['afterInit'](){const _0x2bb5f1=this['editor'],_0x33672a=_0x2bb5f1['plugins']['get']('TrackChangesEditing');_0x2bb5f1['plugins']['has']('Uploadcare')&&(_0x33672a['enableCommand']('uploadcare'),_0x2bb5f1['plugins']['has']('UploadcareImageEdit')&&(_0x33672a['enableCommand']('uploadcareImageEdit'),_0x33672a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x33672a['registerBlockAttribute']('uploadcareImageId'),_0x33672a['descriptionFactory']['registerDescriptionCallback'](_0x2d41fa=>{if('attribute'!=_0x2d41fa['type'])return;const {data:_0x17d277}=_0x2d41fa;return _0x17d277&&'uploadcareImageId'==_0x17d277['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0xa1bc5{['afterInit'](){const _0x18e88b=this['editor'],_0x3bae1d=_0x18e88b['plugins']['get']('TrackChangesEditing');_0x18e88b['plugins']['has']('UndoEditing')&&(_0x3bae1d['enableCommand']('undo'),_0x3bae1d['enableCommand']('redo'));}}class Pt extends _0xa1bc5{static get['requires'](){return[Dt];}['afterInit'](){const _0x2f7856=this['editor'];if(!_0x2f7856['plugins']['has']('TableCaptionEditing'))return;_0x2f7856['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0xa1bc5{['tableProperties'];['tableCellProperties'];constructor(_0x5120ce){super(_0x5120ce),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 _0x4da439=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5f0b81 of this['tableProperties'])_0x4da439['enableCommand'](_0x5f0b81,(_0x3a3d66,_0xe65da7)=>{const _0x40c037=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5f0b81,[_0x40c037],this['tableProperties'],'tableProperties',_0x3a3d66,_0xe65da7);});_0x4da439['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4da439['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4da439['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2b32f3,_0x547b5f)=>this['handleDiscardAction'](this['tableProperties'],_0x2b32f3,_0x547b5f)),_0x4da439['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5dd189 of this['tableCellProperties'])_0x4da439['enableCommand'](_0x5dd189,(_0x1f5082,_0x46b01c)=>{const _0x20a6b3=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5dd189,_0x20a6b3,this['tableCellProperties'],'tableCellProperties',_0x1f5082,_0x46b01c);});_0x4da439['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4da439['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4da439['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x49c8c1,_0x451529)=>this['handleDiscardAction'](this['tableCellProperties'],_0x49c8c1,_0x451529)),_0x4da439['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4da439['descriptionFactory']['registerDescriptionCallback'](_0x158d79=>this['handleSuggestionDescription'](_0x158d79)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x4b19f0,_0x4af059,_0x33762a,_0x44ca6f,_0x4df89c,_0x9cf7db){const _0x3c5263=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x9cf7db['batch'],()=>{for(const _0x27b906 of _0x4af059){if(this['_getSuggestion'](_0x27b906,_0x44ca6f))_0x4df89c(_0x9cf7db);else{const _0x4315d5={};for(const _0x232673 of _0x33762a){const _0x5df7ec=_0x27b906['getAttribute'](_0x232673);void 0x0!==_0x5df7ec&&(_0x4315d5[_0x232673]=_0x5df7ec);}_0x4df89c(_0x9cf7db),_0x3c5263['markBlockFormat'](_0x27b906,{'commandParams':[_0x4315d5]},[],_0x44ca6f);}}});}['handleDiscardAction'](_0x3a8804,_0x4911e5,_0x245538){const _0x171637=_0x4911e5[0x0]['start']['nodeAfter'],_0x5ef8e2=_0x245538['commandParams'][0x0];this['editor']['model']['change'](_0x5603da=>{for(const _0x9d72ed of _0x3a8804)void 0x0!==_0x5ef8e2[_0x9d72ed]?_0x5603da['setAttribute'](_0x9d72ed,_0x5ef8e2[_0x9d72ed],_0x171637):_0x5603da['removeAttribute'](_0x9d72ed,_0x171637);});}['handleSuggestionDescription'](_0xcbec06){if(_0xcbec06['data'])switch(_0xcbec06['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'](_0x21d602,_0x47939a){const _0x205a18=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1b8f89 of _0x205a18['getSuggestions']({'skipNotAttached':!0x0})){const _0x4949a1=_0x1b8f89['getContainedElement']();if(_0x1b8f89['subType']===_0x47939a&&_0x4949a1===_0x21d602)return _0x1b8f89;}return null;}['_registerTablePropertiesAttributes'](){const _0x5d96cb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x390be6=[...this['tableProperties'],...this['tableCellProperties']];for(const _0xb803b2 of _0x390be6){const _0x424d4d=_0xb803b2['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x5d96cb['registerBlockAttribute'](_0xb803b2),_0x5d96cb['descriptionFactory']['registerAttributeLabel'](_0xb803b2,o(this['editor']['locale'],'FORMAT_'+_0x424d4d));}}}class Lt extends _0xa1bc5{['afterInit'](){const _0xe88d90=this['editor'];if(!_0xe88d90['plugins']['has']('LineHeight'))return;const _0x2f5f03=_0xe88d90['plugins']['get']('TrackChangesEditing'),_0x4024f3=_0xe88d90['locale'];_0x2f5f03['enableDefaultAttributesIntegration']('lineHeight'),_0x2f5f03['registerBlockAttribute']('lineHeight'),_0x2f5f03['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4024f3,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xa1bc5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x17e1d7,_0x9ed7b5,_0x8570be,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ht,ft,gt,lt,dt,pt,kt,St,mt,Y,Lt,Z,wt,bt,yt,jt,It,At,_t,$t,vt,Ct,Nt,Dt,Mt,Bt,Tt,Pt,Ot,xt,Rt,Gt,Et,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x76c34){super(_0x76c34),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xcbe097,_0x1a50c0,_0x176f27,_0x2f0ce6)=>{this['_model']['change'](()=>{for(const _0xc5e611 of[..._0x2f0ce6,..._0x176f27])this['_model']['markers']['has'](_0xc5e611)&&_0x76c34['editing']['reconvertMarker'](_0xc5e611);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Kt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x76c34['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(),_0x76c34['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x76c34['config']['get']('trackChanges.trackFormatChanges'),_0x76c34['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x76c34['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x76c34,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x43cef0=this['editor'],_0x322e3d=(_0x106e8c,_0x355c70)=>{if('attribute'!=_0x106e8c)return'ck-suggestion-marker-'+_0x106e8c;const _0x1fced3=_0x355c70['split']('|')[0x0];return this['_isBlockAttribute'](_0x1fced3)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x43cef0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1a3ea2=>{const {id:_0x1ee929,authorId:_0x2694be,type:_0x146e0a,subType:_0x20c814}=this['_splitMarkerName'](_0x1a3ea2['markerName']),_0x114527=['ck-suggestion-marker',_0x322e3d(_0x146e0a,_0x20c814)];let _0x435c0b=0xbb8;return this['activeMarkers']['includes'](_0x1a3ea2['markerName'])&&(_0x114527['push']('ck-suggestion-marker--active'),_0x435c0b=0xbc2),'deletion'==_0x146e0a&&(_0x435c0b+=0x5),{'classes':_0x114527,'attributes':{'data-suggestion':_0x1ee929,'data-author-id':_0x2694be},'priority':_0x435c0b};}}),_0x43cef0['conversion']['for']('dataDowncast')['add'](_0x3451bf=>{_0x3451bf['on']('addMarker:suggestion',(_0x504b29,_0x13d510,_0x58d3ca)=>{if(!_0x58d3ca['options']['showSuggestionHighlights'])return;const _0x2c2e78=_0x13d510['item'];if(!_0x2c2e78)return;const _0x588bc6=_0x58d3ca['mapper']['toViewElement'](_0x2c2e78);_0x43cef0['model']['schema']['isObject'](_0x2c2e78)&&_0x588bc6&&!_0x588bc6['getCustomProperty']('widget')&&_0x588bc6['is']('containerElement')&&_0xbfd7c1(_0x588bc6,_0x58d3ca['writer']);},{'priority':'high'});}),_0x43cef0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1f9955,_0x78cc9)=>{if(!_0x78cc9['options']['showSuggestionHighlights'])return null;const {id:_0x3b6d4e,authorId:_0x2a63a2,type:_0x4fb145,subType:_0x3a003c}=this['_splitMarkerName'](_0x1f9955['markerName']);return{'classes':['ck-suggestion-marker',_0x322e3d(_0x4fb145,_0x3a003c)],'priority':0xbb8,'attributes':{'data-suggestion':_0x3b6d4e,'data-author-id':_0x2a63a2}};}});const _0x56347a=({showActiveMarkers:_0x95cda3=!0x0,isAttributeSuggestion:_0x559c19=!0x1}={})=>(_0x5e1d4e,_0x3b4b97,_0xaa6025)=>{if(!_0x3b4b97['item'])return;const {id:_0x25e733,authorId:_0x507612,subType:_0x2f8bf6}=this['_splitMarkerName'](_0x3b4b97['markerName']);if(_0x559c19){const _0x563477=re(_0x2f8bf6);if(!this['_isBlockAttribute'](_0x563477))return;}if(_0x3b4b97['item']['is']('selection'))return void _0xaa6025['consumable']['consume'](_0x3b4b97['item'],_0x5e1d4e['name']);const _0x4cb4a8=_0xaa6025['mapper']['toViewElement'](_0x3b4b97['item']);if(_0x3b4b97['item']['is']('element')&&_0x43cef0['model']['schema']['isBlock'](_0x3b4b97['item'])&&!_0x4cb4a8['getCustomProperty']('addHighlight')){_0xaa6025['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4cb4a8),_0xaa6025['writer']['setAttribute']('data-suggestion',_0x25e733,_0x4cb4a8),_0xaa6025['writer']['setAttribute']('data-author-id',_0x507612,_0x4cb4a8),_0xaa6025['mapper']['bindElementToMarker'](_0x4cb4a8,_0x3b4b97['markerName']),_0x95cda3&&(this['activeMarkers']['includes'](_0x3b4b97['markerName'])?_0xaa6025['writer']['addClass']('ck-suggestion-marker--active',_0x4cb4a8):_0xaa6025['writer']['removeClass']('ck-suggestion-marker--active',_0x4cb4a8));for(const _0x3186a1 of _0x43cef0['model']['createRangeIn'](_0x3b4b97['item'])['getItems']())_0xaa6025['consumable']['consume'](_0x3186a1,_0x5e1d4e['name']);_0xaa6025['consumable']['consume'](_0x3b4b97['item'],_0x5e1d4e['name']);}};_0x43cef0['conversion']['for']('dataDowncast')['add'](_0x26f0bb=>{_0x26f0bb['on']('addMarker:suggestion:formatBlock',(_0x1dd74f,_0x57743a,_0x3f610c)=>{_0x3f610c['options']['showSuggestionHighlights']&&_0x56347a({'showActiveMarkers':!0x1})(_0x1dd74f,_0x57743a,_0x3f610c);},{'priority':'highest'});}),_0x43cef0['conversion']['for']('dataDowncast')['add'](_0x126ed9=>{_0x126ed9['on']('addMarker:suggestion:attribute',(_0x291eca,_0x2ef9d8,_0x1dc987)=>{_0x1dc987['options']['showSuggestionHighlights']&&_0x56347a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x291eca,_0x2ef9d8,_0x1dc987);},{'priority':'highest'});}),_0x43cef0['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3e3ff9,_0x4b5dd5)=>{if(_0x4b5dd5['options']['showSuggestionHighlights']){const {id:_0x2a4171,authorId:_0x114df8}=this['_splitMarkerName'](_0x3e3ff9);return _0x3e3ff9['includes'](':split')||_0x3e3ff9['includes'](':merge')?{'group':'suggestion','name':_0x3e3ff9['substr'](0xb),'attributes':{'data-suggestion':_0x2a4171,'data-author-id':_0x114df8}}:null;}return{'group':'suggestion','name':_0x3e3ff9['substr'](0xb)};}}),_0x43cef0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x587d71,{writer:_0x195510})=>{let _0x5ccf24='suggestion:'+_0x587d71['getAttribute']('suggestion-type')+':'+_0x587d71['getAttribute']('id');return _0x587d71['getAttribute']('marker-count')&&(_0x5ccf24+=':'+_0x587d71['getAttribute']('marker-count')),_0x195510['createElement']('$marker',{'data-name':_0x5ccf24});}}),_0x43cef0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x43cef0['conversion']['for']('editingDowncast')['add'](_0x25fd74=>{_0x25fd74['on']('addMarker:suggestion:formatBlock',_0x56347a(),{'priority':'high'});}),_0x43cef0['conversion']['for']('editingDowncast')['add'](_0x1ac4da=>{_0x1ac4da['on']('addMarker:suggestion:attribute',_0x56347a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x43cef0['conversion']['for']('editingDowncast')['add'](_0x4bedce=>{_0x4bedce['on']('removeMarker:suggestion:formatBlock',(_0x5b9c74,_0x5b2ec4,_0x5a9737)=>{const _0x3c4095=_0x5a9737['mapper']['markerNameToElements'](_0x5b2ec4['markerName']);if(_0x3c4095){for(const _0x3544cf of _0x3c4095)_0x3544cf['getCustomProperty']('addHighlight')||(_0x5a9737['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3544cf),_0x5a9737['writer']['removeAttribute']('data-suggestion',_0x3544cf),_0x5a9737['writer']['removeAttribute']('data-author-id',_0x3544cf),_0x5a9737['mapper']['unbindElementFromMarkerName'](_0x3544cf,_0x5b2ec4['markerName']));}},{'priority':'high'});}),_0x43cef0['conversion']['for']('editingDowncast')['add'](_0x3b8ad3=>{_0x3b8ad3['on']('removeMarker:suggestion:attribute',(_0x29a790,_0x1696ac,_0x30af9b)=>{const _0x5e79a7=_0x30af9b['mapper']['markerNameToElements'](_0x1696ac['markerName']);if(!_0x5e79a7)return;const {subType:_0x12ae46}=this['_splitMarkerName'](_0x1696ac['markerName']),_0x425482=re(_0x12ae46);if(this['_isBlockAttribute'](_0x425482)){for(const _0x286915 of _0x5e79a7)_0x286915['getCustomProperty']('addHighlight')||(_0x30af9b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x286915),_0x30af9b['writer']['removeAttribute']('data-suggestion',_0x286915),_0x30af9b['writer']['removeAttribute']('data-author-id',_0x286915),_0x30af9b['mapper']['unbindElementFromMarkerName'](_0x286915,_0x1696ac['markerName']));}},{'priority':'high'});}),_0x43cef0['model']['document']['registerPostFixer'](_0x5fcee5=>{let _0x720799=!0x1;const _0x1b1b14=Array['from'](_0x43cef0['model']['document']['differ']['getChangedMarkers']()),_0x4e3934=new Set();for(const {name:_0x5426dc,data:_0x4c343f}of _0x1b1b14){const {group:_0x3bdc00,type:_0x516564,subType:_0x42ab7a,id:_0x19f5a0}=this['_splitMarkerName'](_0x5426dc);if('suggestion'!==_0x3bdc00)continue;const _0x4a275b=_0x42ab7a?'suggestion:'+_0x516564+':'+_0x42ab7a+':'+_0x19f5a0:'suggestion:'+_0x516564+':'+_0x19f5a0,_0x44d133=_0x43cef0['model']['markers']['getMarkersGroup'](_0x4a275b),_0x298e1b=_0x43cef0['model']['markers']['get'](_0x5426dc),_0x23e04a=this['_suggestions']['get'](_0x19f5a0);if(null!=_0x4c343f['newRange']){'formatInline'==_0x516564&&(_0x720799=_0x720799||Wt(_0x4c343f['newRange'],_0x5426dc,_0x5fcee5,_0x43cef0['model']['schema']));const _0x2175bb='attribute'==_0x516564&&this['_isBlockAttribute'](_0x42ab7a['split']('|')[0x0]),_0xbba5fb='attribute'==_0x516564&&this['_isInlineAttribute'](_0x42ab7a['split']('|')[0x0]);if(_0x4c343f['newRange']['isCollapsed']||'$graveyard'==_0x4c343f['newRange']['root']['rootName']||'formatBlock'==_0x516564&&!Qt(_0x4c343f['newRange'])||_0x2175bb&&!Qt(_0x4c343f['newRange'])||_0xbba5fb&&Xt(_0x4c343f['newRange'])||'deletion'==_0x516564&&Xt(_0x4c343f['newRange'])||_0x298e1b&&Yt(_0x298e1b,_0x44d133))_0x5fcee5['removeMarker'](_0x5426dc),_0x720799=!0x0;else{if(!_0x23e04a||!_0x23e04a['isInContent'])continue;if(_0x4c343f['newRange']&&_0x4c343f['oldRange']&&_0x4c343f['newRange']['isEqual'](_0x4c343f['oldRange']))continue;_0x4e3934['add'](_0x23e04a);}}}return _0x4e3934['size']>0x0&&(_0x720799=!!this['_joinWithAdjacentSuggestions'](_0x4e3934)||_0x720799),_0x720799;}),_0x43cef0['model']['document']['registerPostFixer'](_0x25128f=>{let _0x21fac8=!0x1;for(const _0x5f3ca5 of _0x43cef0['model']['document']['differ']['getChanges']())if('insert'==_0x5f3ca5['type'])for(const _0x34b08e of this['_suggestions']['values']()){if(_0x34b08e['isMultiRange']||!_0x34b08e['isInContent'])continue;const _0x17b55b='formatBlock'==_0x34b08e['type'],_0x270786=this['_getAttributeKey'](_0x34b08e),_0x54e5c9=_0x270786&&this['_isBlockAttribute'](_0x270786);if(!_0x17b55b&&!_0x54e5c9)continue;const _0x510b47=_0x34b08e['getFirstRange']();if(_0x510b47['start']['parent']!=_0x510b47['end']['parent']&&!_0x510b47['end']['isAtEnd']){const _0x8ba8ce=_0x43cef0['model']['createPositionAt'](_0x510b47['start']['nodeAfter'],'end'),_0x269842=_0x43cef0['model']['createRange'](_0x510b47['start'],_0x8ba8ce);_0x25128f['updateMarker'](_0x34b08e['getFirstMarker'](),{'range':_0x269842}),_0x21fac8=!0x0;}}return _0x21fac8;}),_0x43cef0['model']['document']['registerPostFixer'](_0x5ef19c=>this['_processAttributeChanges'](_0x5ef19c)),_0x43cef0['model']['document']['registerPostFixer'](_0x5f0b57=>!_0x5f0b57['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5f0b57)),_0x43cef0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x43cef0['model']['document']['on']('change:data',(_0x458fa3,_0x2221e6)=>{if(!_0x2221e6['isLocal']||_0x2221e6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3f5370=_0x43cef0['model']['document']['differ']['getChanges']();if(0x0==_0x3f5370['length'])return;const _0x298a6e=[],_0x2e5caa=_0x3f5370['filter'](_0x475aac=>'attribute'==_0x475aac['type']),_0x3ec522=_0x3f5370['filter'](_0x4b8345=>'insert'==_0x4b8345['type']&&'$text'!=_0x4b8345['name']);for(const _0x26dc83 of _0x2e5caa)this['_isRegisteredAttribute'](_0x26dc83['attributeKey'])&&_0x298a6e['push']({'key':_0x26dc83['attributeKey'],'newValue':_0x26dc83['attributeNewValue'],'oldValue':_0x26dc83['attributeOldValue'],'range':te(_0x26dc83['range'],_0x43cef0['model'])});for(const _0x2d3d37 of _0x3ec522){if('rename'!=_0x2d3d37['action']&&'refresh'!=_0x2d3d37['action'])continue;const _0x3857bd=ee(_0x2d3d37['position']['nodeAfter'],_0x43cef0['model']),_0x505eaa=_0x2d3d37['before'];'rename'==_0x2d3d37['action']&&_0x298a6e['push']({'key':m,'newValue':_0x2d3d37['name'],'oldValue':_0x505eaa['name'],'range':_0x3857bd});for(const [_0x3858e6,_0x295276]of _0x505eaa['attributes']){if(!this['_isRegisteredAttribute'](_0x3858e6))continue;const _0x13cfc6=_0x2d3d37['attributes']['get'](_0x3858e6);_0x295276!==_0x13cfc6&&_0x298a6e['push']({'key':_0x3858e6,'newValue':_0x13cfc6,'oldValue':_0x295276,'range':_0x3857bd});}for(const [_0xdaad68,_0x59e5e5]of _0x2d3d37['attributes'])this['_isRegisteredAttribute'](_0xdaad68)&&(_0x505eaa['attributes']['has'](_0xdaad68)||_0x298a6e['push']({'key':_0xdaad68,'newValue':_0x59e5e5,'oldValue':null,'range':_0x3857bd}));}0x0!=_0x298a6e['length']&&_0x43cef0['model']['enqueueChange'](_0x2221e6,_0x116926=>{const _0x475f8e=_0x4cc075();for(const {range:_0x250306,key:_0x550208,oldValue:_0x450073,newValue:_0x6491d4}of _0x298a6e)this['markAttributeChange'](_0x250306,_0x550208,_0x450073,_0x6491d4,{'groupId':_0x475f8e});this['_reduceExistingSuggestions'](_0x116926,_0x298a6e);});},{'priority':'lowest'}),_0x43cef0['model']['markers']['on']('update:suggestion',(_0x4c6edf,_0x7f632e,_0x4b109a)=>{if(null==_0x4b109a){const {id:_0x26f919}=this['_splitMarkerName'](_0x7f632e['name']),_0x46b410=this['_suggestions']['get'](_0x26f919);_0x46b410&&_0x46b410['addMarkerName'](_0x7f632e['name']);}}),_0x43cef0['model']['document']['on']('change:data',()=>{const _0x20feca=Array['from'](_0x43cef0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x13db1d=>'suggestion'===this['_splitMarkerName'](_0x13db1d['name'])['group']);if(0x0===_0x20feca['length'])return;_0x20feca['sort']((_0x30ca4c,_0x364f98)=>{const _0x4a7d66=_0x30ca4c['data']['oldRange'],_0x7c43d0=_0x364f98['data']['oldRange'];return null===_0x4a7d66&&null===_0x7c43d0?0x0:null===_0x4a7d66&&null!==_0x7c43d0?-0x1:null!==_0x4a7d66&&null===_0x7c43d0?0x1:_0x4a7d66['start']['isBefore'](_0x7c43d0['start'])?-0x1:0x1;});const _0x5028bd=new Set(),_0x1d760a=new Set();for(const {name:_0x19b454,data:_0x50db30}of _0x20feca){const {id:_0x4f3e8}=this['_splitMarkerName'](_0x19b454);if(null===_0x50db30['oldRange']){const _0x48907d=this['_handleNewSuggestionMarker'](_0x19b454);_0x1d760a['add'](_0x48907d);}else{const _0x5b46fa=this['_suggestions']['get'](_0x4f3e8);null!==_0x50db30['newRange']||_0x5b46fa['isInContent']?(_0x5028bd['add'](_0x5b46fa['head']),_0x1d760a['add'](_0x5b46fa)):this['_removeSuggestion'](_0x5b46fa);}}_0x1d760a['size']>0x0&&this['_refreshSuggestionsChain'](_0x1d760a);for(const _0x1b88fc of _0x5028bd)this['fire']('suggestionChanged',_0x1b88fc);}),_0x43cef0['model']['on']('applyOperation',(_0xb28afb,_0x20481d)=>{const _0xdad813=_0x20481d[0x0];if(!this['_suggestions']['size'])return;if(!_0xdad813['isDocumentOperation'])return;if(_0xdad813['batch']['isUndo']||!_0xdad813['batch']['isLocal'])return;let _0x14b80b,_0x30d47e;switch(_0xdad813['type']){case'insert':_0x14b80b=_0x43cef0['model']['createPositionAt'](_0xdad813['position']),_0x30d47e=_0x14b80b['getShiftedBy'](_0xdad813['howMany']);break;case'split':_0x14b80b=_0x43cef0['model']['createPositionAt'](_0xdad813['splitPosition']),_0x30d47e=_0x43cef0['model']['createPositionAt'](_0xdad813['moveTargetPosition']);break;case'move':_0x14b80b=_0x43cef0['model']['createPositionAt'](_0xdad813['targetPosition']),_0x30d47e=_0x14b80b['getShiftedBy'](_0xdad813['howMany']);break;default:return;}const _0x3aa705=_0x43cef0['model']['createRange'](_0x14b80b,_0x30d47e);_0x43cef0['model']['change'](()=>{for(const {suggestion:_0x3d3c2f,meta:_0x8d5f8b}of this['_findSuggestions'](_0x3aa705)){if(_0x3d3c2f['isMultiRange'])continue;if('formatInline'==_0x3d3c2f['type'])continue;const _0x28b2d0=this['_getAttributeKey'](_0x3d3c2f);if(_0x28b2d0&&this['_isBlockAttribute'](_0x28b2d0)&&'split'!=_0xdad813['type'])continue;const _0x4b6e2c=_0x3d3c2f['data']&&_0x3d3c2f['data']['multipleBlocks'];('formatBlock'!=_0x3d3c2f['type']||'split'==_0xdad813['type']&&!_0x4b6e2c)&&(_0x8d5f8b['containsRangeInObject']||'insertion'==_0x3d3c2f['type']&&_0x8d5f8b['isOwn']||_0x3d3c2f['getFirstRange']()['containsRange'](_0x3aa705)&&this['_breakSuggestionMarker'](_0x3d3c2f,_0x14b80b,_0x30d47e));}});},{'priority':'lowest'}),_0x43cef0['model']['on']('deleteContent',(_0xee66ff,_0x383830)=>{const _0x2e30b0=_0x383830[0x0],_0x154117=_0x383830[0x1];if(_0x154117&&_0x154117['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2e30b0['isCollapsed'])return;const _0x1e478c=_0x43cef0['model']['schema'],{start:_0x5c494d,end:_0x351fde}=_0x2e30b0['getFirstRange'](),_0x58633c=_0x5c494d['nodeAfter']&&_0x1e478c['isLimit'](_0x5c494d['nodeAfter'])?null:_0x1e478c['getNearestSelectionRange'](_0x5c494d,'forward'),_0x1bd60b=_0x351fde['nodeBefore']&&_0x1e478c['isLimit'](_0x351fde['nodeBefore'])?null:_0x1e478c['getNearestSelectionRange'](_0x351fde,'backward'),_0x3d78b3=_0x43cef0['model']['createRange'](_0x58633c?_0x58633c['start']:_0x5c494d,_0x1bd60b?_0x1bd60b['end']:_0x351fde);_0x43cef0['model']['change'](_0x370ac4=>{this['markDeletion'](_0x3d78b3);const _0x5a59ad=_0x43cef0['model']['schema']['getNearestSelectionRange'](_0x3d78b3['start']);_0x2e30b0['is']('documentSelection')?_0x370ac4['setSelection'](_0x5a59ad):_0x2e30b0['setTo'](_0x5a59ad);}),_0xee66ff['stop']();},{'priority':_0x2521c1['normal']+0xa}),_0x43cef0['model']['on']('insertContent',(_0x6d11c5,_0x2457cd)=>{const _0x4ff6ea=_0x2457cd[_0x2457cd['length']-0x1];_0x4ff6ea&&_0x4ff6ea['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x43cef0['model']['change'](()=>{let _0x3bb954=_0x43cef0['model']['insertContent'](_0x2457cd[0x0],_0x2457cd[0x1],_0x2457cd[0x2],{'forceDefaultExecution':!0x0});if(!_0x3bb954)return;_0x6d11c5['return']=_0x3bb954['clone']();const _0x4506fb=_0x3bb954['end']['nodeBefore'],_0x5820b8=_0x43cef0['model']['schema'];_0x4506fb&&_0x5820b8['isBlock'](_0x4506fb)&&!_0x5820b8['isObject'](_0x4506fb)&&(_0x3bb954=_0x43cef0['model']['createRange'](_0x3bb954['start'],_0x43cef0['model']['createPositionAt'](_0x4506fb,'end'))),this['markInsertion'](_0x3bb954);}),_0x6d11c5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5b03e9=new T(_0x43cef0,this['_suggestions']);_0x43cef0['commands']['add']('acceptSuggestion',_0x5b03e9),this['enableCommand']('acceptSuggestion');const _0x2d0d24=new O(_0x43cef0,this['_suggestions']);_0x43cef0['commands']['add']('discardSuggestion',_0x2d0d24),this['enableCommand']('discardSuggestion'),_0x43cef0['commands']['add']('acceptAllSuggestions',new x(_0x43cef0,_0x5b03e9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x43cef0['commands']['add']('discardAllSuggestions',new x(_0x43cef0,_0x2d0d24,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x43cef0['commands']['add']('acceptSelectedSuggestions',new E(_0x43cef0,_0x5b03e9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x43cef0['commands']['add']('discardSelectedSuggestions',new E(_0x43cef0,_0x2d0d24,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x46d332=_0x43cef0['plugins']['get']('CommentsRepository');this['listenTo'](_0x46d332,'addComment',(_0x531305,{threadId:_0x246058})=>{const _0x299a57=this['_suggestions']['get'](_0x246058);_0x299a57&&_0x299a57['commentThread']&&0x1===_0x299a57['commentThread']['length']&&this['_updateSuggestionData'](_0x246058,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x46d332,'removeComment',(_0x33e200,{threadId:_0x1285af})=>{const _0x56f7e8=this['_suggestions']['get'](_0x1285af);_0x56f7e8&&_0x56f7e8['commentThread']&&!_0x56f7e8['commentThread']['length']&&this['_updateSuggestionData'](_0x1285af,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2f0c85){const _0x3d62b0=_0x5a914d([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x4614e6=0x6b0f5e6f,_0x4fd7f1=0x6b082a9f^_0x4614e6,_0x2048c9=window[_0x5a914d([0x44,0x61,0x74,0x65])][_0x5a914d([0x6e,0x6f,0x77])](),_0x23e981=_0x2f0c85[_0x5a914d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1734e5=new window[(_0x5a914d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b5023=>{_0x23e981[_0x5a914d([0x6f,0x6e,0x63,0x65])](_0x5a914d([0x72,0x65,0x61,0x64,0x79]),_0x5b5023);}),_0x46367b={[_0x5a914d([0x6b,0x74,0x79])]:_0x5a914d([0x45,0x43]),[_0x5a914d([0x75,0x73,0x65])]:_0x5a914d([0x73,0x69,0x67]),[_0x5a914d([0x63,0x72,0x76])]:_0x5a914d([0x50,0x2d,0x32,0x35,0x36]),[_0x5a914d([0x78])]:_0x5a914d([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]),[_0x5a914d([0x79])]:_0x5a914d([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]),[_0x5a914d([0x61,0x6c,0x67])]:_0x5a914d([0x45,0x53,0x32,0x35,0x36])},_0x426513=_0x23e981[_0x5a914d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a914d([0x67,0x65,0x74])](_0x5a914d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x532cd2(){let _0x4b2670,_0x29f3c=null,_0x1ddd88=null;try{if(_0x426513==_0x5a914d([0x47,0x50,0x4c]))return _0x5a914d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b2670=_0x1c61bf(),!_0x4b2670)return _0x5a914d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b2670[_0x5a914d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ddd88=_0x923fd8(_0x4b2670[_0x5a914d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b2670[_0x5a914d([0x6a,0x74,0x69])])),await _0x3ceaca()?_0x2f2ed0()?_0x562131()?_0x5a914d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25809f()?(_0x4b2670[_0x5a914d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a914d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29f3c=_0x1bff66(_0x5a914d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b2670[_0x5a914d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a914d([0x74,0x72,0x69,0x61,0x6c])&&(_0x29f3c=_0x1bff66(_0x5a914d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5974c0()):_0x5a914d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a914d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a914d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5a914d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x562131(){const _0x2b9c60=[_0x5a914d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a914d([0x74,0x72,0x69,0x61,0x6c])][_0x5a914d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b2670[_0x5a914d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2048c9/0x3e8:0xe10*_0x4fd7f1;return _0x4b2670[_0x5a914d([0x65,0x78,0x70])]<_0x2b9c60;}function _0x2f2ed0(){const _0x451ae3=_0x4b2670[_0x5a914d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x451ae3)return!0x1;if(_0x451ae3[_0x5a914d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a914d([0x2a])))return!0x0;if(_0x451ae3[_0x5a914d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a914d([0x54,0x43])))return!0x0;if(_0x451ae3[_0x5a914d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a914d([0x52,0x54,0x43]))){if(_0x4b652b())return!0x0;if(_0x448b3c()||_0x3058eb())return!0x0;}return!0x1;}function _0x25809f(){const _0x1dae56=_0x4b2670[_0x5a914d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1dae56||0x0==_0x1dae56[_0x5a914d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ddf14}=new URL(window[_0x5a914d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1dae56[_0x5a914d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ddf14))return!0x0;const _0x350ecc=_0x5ddf14[_0x5a914d([0x73,0x70,0x6c,0x69,0x74])](_0x5a914d([0x2e]));return _0x1dae56[_0x5a914d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f6870=>_0x4f6870[_0x5a914d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a914d([0x2a])))[_0x5a914d([0x6d,0x61,0x70])](_0x1a4152=>_0x1a4152[_0x5a914d([0x73,0x70,0x6c,0x69,0x74])](_0x5a914d([0x2e])))[_0x5a914d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f3da1=>_0x1f3da1[_0x5a914d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x350ecc[_0x5a914d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a914d([0x6d,0x61,0x70])](_0x251976=>Array(_0x350ecc[_0x5a914d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x251976[_0x5a914d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a914d([0x66,0x69,0x6c,0x6c])](_0x251976[0x0]===_0x5a914d([0x2a])?_0x5a914d([0x2a]):'')[_0x5a914d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x251976))[_0x5a914d([0x73,0x6f,0x6d,0x65])](_0x1f208b=>_0x350ecc[_0x5a914d([0x65,0x76,0x65,0x72,0x79])]((_0x29b91a,_0x5299f9)=>_0x1f208b[_0x5299f9]===_0x29b91a||_0x1f208b[_0x5299f9]===_0x5a914d([0x2a])));}function _0x5974c0(){return _0x29f3c&&_0x1ddd88?new window[(_0x5a914d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ecab3,_0x405745)=>{_0x29f3c[_0x5a914d([0x74,0x68,0x65,0x6e])](_0x1ecab3,_0x405745),_0x1ddd88[_0x5a914d([0x74,0x68,0x65,0x6e])](_0xeb531f=>{_0xeb531f!=_0x5a914d([0x56,0x61,0x6c,0x69,0x64])&&_0x1ecab3(_0xeb531f);},_0x405745);}):_0x29f3c||_0x1ddd88||_0x5a914d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x923fd8(_0x4f0bab,_0x1e128c){return new window[(_0x5a914d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4002bd=>{if(_0x2da490())return _0x4002bd(_0x5a914d([0x56,0x61,0x6c,0x69,0x64]));_0xaf575d(),_0x23e981[_0x5a914d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a914d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x181264=!0x1;const _0x8f3372=_0x4cc075();function _0x25c9ff(_0x15b43a){return!!_0x15b43a&&(typeof _0x15b43a===_0x5a914d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15b43a===_0x5a914d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15b43a[_0x5a914d([0x74,0x68,0x65,0x6e])]===_0x5a914d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15b43a[_0x5a914d([0x63,0x61,0x74,0x63,0x68])]===_0x5a914d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5bb484(_0x17d3e4){_0x65507d(_0x17d3e4)[_0x5a914d([0x74,0x68,0x65,0x6e])](_0x2f17f6=>{if(!_0x2f17f6||_0x2f17f6[_0x5a914d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a914d([0x6f,0x6b]))return _0x5a914d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a06d6(_0x1bcf77(_0x8f3372+_0x1e128c))!=_0x2f17f6[_0x5a914d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a914d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a914d([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a914d([0x74,0x68,0x65,0x6e])](_0x3145ad=>(_0x1465dc(),_0x3145ad),()=>{const _0x2b9b1b=_0x46ec67();return null==_0x2b9b1b?(_0x1465dc(),_0x5a914d([0x56,0x61,0x6c,0x69,0x64])):_0x5a914d(_0x2048c9-_0x2b9b1b>(0x4f03da6f^_0x4614e6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a914d([0x74,0x68,0x65,0x6e])](_0x4002bd)[_0x5a914d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4002bd(_0x5a914d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x364f7f=0x6b39b0ef^_0x4614e6;function _0x1465dc(){const _0x1a080d=_0x5a914d([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a06d6(_0x1bcf77(_0x4f0bab)),_0x3bcf5f=_0x6f9e6d(_0x2a06d6(window[_0x5a914d([0x4d,0x61,0x74,0x68])][_0x5a914d([0x63,0x65,0x69,0x6c])](_0x2048c9/_0x364f7f)));window[_0x5a914d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a914d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a080d,_0x3bcf5f);}function _0x46ec67(){const _0x5b3046=_0x5a914d([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a06d6(_0x1bcf77(_0x4f0bab)),_0x13759b=window[_0x5a914d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a914d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b3046);return _0x13759b?window[_0x5a914d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6f9e6d(_0x13759b),0x10)*_0x364f7f:null;}function _0x65507d(_0x15c9f2){return new window[(_0x5a914d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46a22f,_0x517bfe)=>{_0x15c9f2[_0x5a914d([0x74,0x68,0x65,0x6e])](_0x46a22f,_0x517bfe),window[_0x5a914d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x517bfe,0x6b0e8aaf^_0x4614e6);});}}_0x23e981[_0x5a914d([0x6f,0x6e])](_0x5a914d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x45e1e8,_0xd408e8)=>{if(_0xd408e8[0x0]!=_0x4f0bab)return _0x4002bd(_0x5a914d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd408e8[0x1]={..._0xd408e8[0x1],[_0x5a914d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8f3372};},{[_0x5a914d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a914d([0x68,0x69,0x67,0x68])}),_0x23e981[_0x5a914d([0x6f,0x6e])](_0x5a914d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b01a=>{_0x25c9ff(_0x1b01a[_0x5a914d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x181264=!0x0,_0x5bb484(_0x1b01a[_0x5a914d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a914d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a914d([0x6c,0x6f,0x77])}),_0x1734e5[_0x5a914d([0x74,0x68,0x65,0x6e])](()=>{_0x181264||_0x4002bd(_0x5a914d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2da490(){return _0x23e981[_0x5a914d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a914d([0x76,0x69,0x65,0x77])][_0x5a914d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a914d([0x61,0x75,0x74,0x6f]);}function _0xaf575d(){_0x23e981[_0x5a914d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a914d([0x76,0x69,0x65,0x77])][_0x5a914d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a914d([0x61,0x75,0x74,0x6f]);}}function _0x1bff66(_0x328eb6){const _0x17e8ac=[new window[(_0x5a914d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41456c=>setTimeout(_0x41456c,0x6b0660a3^_0x4614e6)),_0x1734e5[_0x5a914d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a914d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21e05d=>{let _0x5c9a00=0x0;_0x23e981[_0x5a914d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a914d([0x6f,0x6e])](_0x5a914d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x408fc9,_0x3a6bd7)=>{_0x3a6bd7[0x0][_0x5a914d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c9a00++,_0x5c9a00==(0x6b0f5f97^_0x4614e6)&&(_0x21e05d(),_0x408fc9[_0x5a914d([0x6f,0x66,0x66])]());});}))];return window[_0x5a914d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a914d([0x72,0x61,0x63,0x65])](_0x17e8ac)[_0x5a914d([0x74,0x68,0x65,0x6e])](()=>_0x328eb6);}async function _0x4cdfdc(){await _0x1734e5,_0x23e981[_0x5a914d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a914d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x110592,_0x23e981[_0x5a914d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a914d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x110592,_0x23e981[_0x5a914d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a914d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b652b(){return _0x48271f(_0x5a914d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xd8a50c(_0x5a914d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5a914d([0x73,0x74,0x61,0x74,0x65])]==_0x5a914d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x448b3c(){return _0x48271f(_0x5a914d([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 _0x3058eb(){return _0x48271f(_0x5a914d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x420239(_0x3ce97b){const _0x11b70f=_0x321379();_0x23e981[_0x11b70f]=_0x5a914d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ce97b,_0x3ce97b!=_0x5a914d([0x56,0x61,0x6c,0x69,0x64])&&_0x4cdfdc();}function _0x321379(){const _0x74df2b=window[_0x5a914d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a914d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a914d([0x6e,0x6f,0x77])]())[_0x5a914d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a914d([0x2e]),'');let _0x44dd89=_0x5a914d([0x67]);for(let _0x402f81=0x0;_0x402f81<_0x74df2b[_0x5a914d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x402f81+=0x2){let _0x18d90f=window[_0x5a914d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x74df2b[_0x5a914d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x402f81,_0x402f81+0x2));_0x18d90f>=_0x3d62b0[_0x5a914d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18d90f-=_0x3d62b0[_0x5a914d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x44dd89+=_0x3d62b0[_0x18d90f];}return _0x44dd89;}function _0x1c61bf(){const _0x141542=_0x426513[_0x5a914d([0x73,0x70,0x6c,0x69,0x74])](_0x5a914d([0x2e]));if(0x3!=_0x141542[_0x5a914d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5aad28(_0x141542[0x1]);function _0x5aad28(_0x3b9fc5){const _0x5b3b6a=_0x3b3aa3(_0x3b9fc5);return _0x5b3b6a&&_0x17dddc()?_0x5b3b6a:null;function _0x17dddc(){const _0x10e10b=_0x5b3b6a[_0x5a914d([0x6a,0x74,0x69])],_0x9f7cde=window[_0x5a914d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10e10b[_0x5a914d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10e10b[_0x5a914d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x304d92={..._0x5b3b6a,[_0x5a914d([0x6a,0x74,0x69])]:_0x10e10b[_0x5a914d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x10e10b[_0x5a914d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x304d92[_0x5a914d([0x76,0x63])],_0x1bcf77(_0x304d92)==_0x9f7cde;}}}async function _0x3ceaca(){let _0x29af0b=!0x0;try{const _0x2a9eae=_0x426513[_0x5a914d([0x73,0x70,0x6c,0x69,0x74])](_0x5a914d([0x2e])),[_0x281fa3,_0x122b0f,_0x5200ae]=_0x2a9eae;return _0x3692da(_0x281fa3),await _0x3ff18a(_0x281fa3,_0x122b0f,_0x5200ae),_0x29af0b;}catch{return!0x1;}function _0x3692da(_0x5af13c){const _0x26c05b=_0x3b3aa3(_0x5af13c);_0x26c05b&&_0x26c05b[_0x5a914d([0x61,0x6c,0x67])]==_0x5a914d([0x45,0x53,0x32,0x35,0x36])||(_0x29af0b=!0x1);}async function _0x3ff18a(_0x4be345,_0x55cdce,_0x2ff1da){const _0x591778=window[_0x5a914d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a914d([0x66,0x72,0x6f,0x6d])](_0x333c58(_0x2ff1da),_0x364528=>_0x364528[_0x5a914d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f107b=new window[(_0x5a914d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a914d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4be345+_0x5a914d([0x2e])+_0x55cdce),_0x11e949=window[_0x5a914d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a914d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x11e949)return;const _0x591dbc=await _0x11e949[_0x5a914d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a914d([0x6a,0x77,0x6b]),_0x46367b,{[_0x5a914d([0x6e,0x61,0x6d,0x65])]:_0x5a914d([0x45,0x43,0x44,0x53,0x41]),[_0x5a914d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a914d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a914d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x11e949[_0x5a914d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a914d([0x6e,0x61,0x6d,0x65])]:_0x5a914d([0x45,0x43,0x44,0x53,0x41]),[_0x5a914d([0x68,0x61,0x73,0x68])]:{[_0x5a914d([0x6e,0x61,0x6d,0x65])]:_0x5a914d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x591dbc,_0x591778,_0x1f107b)||(_0x29af0b=!0x1);}}function _0x3b3aa3(_0x1153da){return _0x1153da[_0x5a914d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a914d([0x65,0x79]))?JSON[_0x5a914d([0x70,0x61,0x72,0x73,0x65])](_0x333c58(_0x1153da)):null;}function _0x333c58(_0x1d2b69){return window[_0x5a914d([0x61,0x74,0x6f,0x62])](_0x1d2b69[_0x5a914d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a914d([0x2b]))[_0x5a914d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a914d([0x2f])));}function _0x1bcf77(_0xe3b39f){let _0x2ddd07=0x1505;function _0x23bc7c(_0x51fb4b){for(let _0x3913cc=0x0;_0x3913cc<_0x51fb4b[_0x5a914d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3913cc++){const _0x2cecf0=_0x51fb4b[_0x5a914d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3913cc);_0x2ddd07=(_0x2ddd07<<0x5)+_0x2ddd07+_0x2cecf0,_0x2ddd07&=_0x2ddd07;}}function _0x3f37ec(_0x2badb4){Array[_0x5a914d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2badb4)?_0x2badb4[_0x5a914d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f37ec):_0x2badb4&&typeof _0x2badb4==_0x5a914d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a914d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2badb4)[_0x5a914d([0x73,0x6f,0x72,0x74])]()[_0x5a914d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4891c8,_0x11f707])=>{_0x23bc7c(_0x4891c8),_0x3f37ec(_0x11f707);}):_0x23bc7c(window[_0x5a914d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2badb4));}return _0x3f37ec(_0xe3b39f),_0x2ddd07>>>0x0;}function _0x2a06d6(_0x1ac1b9){return _0x1ac1b9[_0x5a914d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a914d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a914d([0x30]));}function _0x6f9e6d(_0x496258){return _0x496258[_0x5a914d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a914d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a914d([0x6a,0x6f,0x69,0x6e])]('');}function _0x48271f(_0x4cf933){return _0x23e981[_0x5a914d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a914d([0x68,0x61,0x73])](_0x4cf933);}function _0xd8a50c(_0x446e15){return _0x23e981[_0x5a914d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a914d([0x67,0x65,0x74])](_0x446e15);}function _0x110592(){}function _0x5a914d(_0x28c983){return _0x28c983['map'](_0x30d1a7=>String['fromCharCode'](_0x30d1a7))['join']('');}_0x420239(await _0x532cd2());}(this);}set['adapter'](_0x5e5475){if(this['_adapter'])throw new _0x2e1b6b('track-changes-adapter-already-set',this);this['_adapter']=_0x5e5475;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x15008d=!0x1,toJSON:_0x59d3d9=!0x1}={}){const _0x1f74dd=[];for(const _0x3d13e2 of this['_suggestions']['values']())_0x15008d&&!_0x3d13e2['isInContent']||_0x1f74dd['push'](_0x3d13e2);return _0x59d3d9?_0x1f74dd['map'](_0x3b997e=>_0x3b997e['toJSON']()):_0x1f74dd;}['getSuggestion'](_0x4f0724){const _0x487519=this['_suggestions']['get'](_0x4f0724);if(!_0x487519)throw new _0x2e1b6b('track-changes-suggestion-not-found',this);return _0x487519;}['hasSuggestion'](_0x42eb9c){return this['_suggestions']['has'](_0x42eb9c);}['addSuggestionData'](_0x282141){const {authorId:_0x5f3683,id:_0x3af6d3,originalSuggestionId:_0x24436f,attributes:_0x589a0c}=_0x282141,[_0x24ac35,_0x4fcb65]=_0x282141['type']['split'](':'),_0x42da2e=this['_suggestions']['get'](_0x3af6d3)||this['_createSuggestion'](_0x24ac35,_0x4fcb65,_0x3af6d3,_0x5f3683,_0x589a0c,_0x24436f);if(this['_addThreadToSuggestion'](_0x42da2e),this['_checkSuggestionCorrectness'](_0x42da2e,_0x24ac35,_0x4fcb65||null,_0x5f3683),_0x42da2e['createdAt']=_0x282141['createdAt'],_0x42da2e['_isDataLoaded']=!0x0,_0x589a0c&&_0x589a0c['@external']){const _0x56a786=_0x589a0c['@external'],_0xa6bdd5=this['_getExternalAuthor'](_0x56a786['authorName']);_0x42da2e['authoredAt']=_0x56a786['createdAt'],_0x42da2e['author']=_0xa6bdd5,_0x42da2e['isExternal']=!0x0;}else _0x42da2e['authoredAt']=_0x282141['createdAt'];switch(_0x282141['data']&&(_0x42da2e['data']=_0x282141['data']),_0x282141['attributes']&&(_0x42da2e['attributes']=_0x282141['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x42da2e['_saved']=!0x0),this['_suggestionState']['get'](_0x42da2e)){case'notReady':this['_suggestionState']['set'](_0x42da2e,'dataReady');break;case'markerReady':_0x42da2e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x42da2e])),this['_refreshSuggestionsChain'](new Set([_0x42da2e])),this['_suggestionState']['set'](_0x42da2e,'ready'),this['fire']('suggestionLoaded',_0x42da2e)):this['_suggestionState']['set'](_0x42da2e,'removed');}return _0x42da2e;}['acceptSuggestion'](_0x5c2a3d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x26d189 of _0x5c2a3d['getAllAdjacentSuggestions']())_0x26d189['accept']();});});}['discardSuggestion'](_0x2d0b60){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x53084e of _0x2d0b60['getAllAdjacentSuggestions']())_0x53084e['discard']();});});}['enableCommand'](_0x3788e6,_0x22786d){const _0x408442=this['editor']['commands']['get'](_0x3788e6);if(!_0x408442)throw new _0x2e1b6b('track-changes-command-not-found',this,{'commandName':_0x3788e6});if(this['_enabledCommands']['has'](_0x408442))throw new _0x2e1b6b('track-changes-enable-command-twice',this,{'commandName':_0x3788e6});this['_enabledCommands']['add'](_0x408442),_0x22786d&&_0x408442['on']('execute',(_0x5a4f46,_0x45cce7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x45cce7['length']>0x0&&_0x45cce7[_0x45cce7['length']-0x1]&&_0x45cce7[_0x45cce7['length']-0x1]['forceDefaultExecution']?_0x45cce7['pop']():(_0x5a4f46['return']=_0x22786d((..._0x10e935)=>_0x408442['execute'](..._0x10e935,{'forceDefaultExecution':!0x0}),..._0x45cce7),_0x5a4f46['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5d387f){let _0x224ff5,_0x1c8786;const _0xf92e7c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x224ff5=_0x5d387f();}catch(_0x5970f5){_0x1c8786=_0x5970f5;}return _0xf92e7c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1c8786&&_0x2e1b6b['rethrowUnexpectedError'](_0x1c8786,this),_0x224ff5;}['markInsertion'](_0x539a46,_0x3f605b=null,_0x4a7386={}){if(_0x539a46['isCollapsed'])return null;const _0x5d63a0=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4a7386['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3c62af,meta:_0x21f0cd}of this['_findSuggestions'](_0x539a46,'insertion'))if(_0x21f0cd['isOwn']){if(!_0x21f0cd['isNextTo']){if(_0x21f0cd['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!se(_0x3c62af,_0x4a7386))continue;return _0x3c62af;}if(se(_0x3c62af,_0x4a7386))return _0x3c62af;this['_breakSuggestionMarker'](_0x3c62af,_0x539a46['start'],_0x539a46['end']);break;}if(_0x3f605b==_0x3c62af['subType']&&se(_0x3c62af,_0x4a7386)){const _0x2f827a=_0x3c62af['getFirstRange']();return _0x2f827a['start']['isEqual'](_0x539a46['end'])?this['_setSuggestionRange'](_0x3c62af,this['_model']['createRange'](_0x539a46['start'],_0x2f827a['end'])):this['_setSuggestionRange'](_0x3c62af,this['_model']['createRange'](_0x2f827a['start'],_0x539a46['end'])),_0x3c62af;}}const _0x111384=_0x4cc075(),_0x32fab0=_0x5d63a0['id'],_0x5f4317=_0x3f605b?'insertion:'+_0x3f605b:'insertion',_0x4dae3b=this['_setSuggestionData']({'id':_0x111384,'type':_0x5f4317,'createdAt':new Date(),'authorId':_0x32fab0,'attributes':_0x4a7386});return this['_addSuggestionMarker'](_0x5f4317,_0x111384,_0x32fab0,_0x539a46),_0x4dae3b;}['markMultiRangeInsertion'](_0x227e94,_0x3239aa='multi',_0x1abc39={}){const _0x564438=this['editor']['plugins']['get']('Users')['me'],_0x4bb938=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3239aa,'join');this['_trackingSessionId']&&(_0x1abc39['trackingSessionId']=this['_trackingSessionId']);for(const _0x4f6c06 of this['getSuggestions']())if(_0x4f6c06['author']['id']==_0x564438['id']&&'insertion'==_0x4f6c06['type']&&_0x4f6c06['subType']==_0x3239aa&&se(_0x4f6c06,_0x1abc39)&&(_0x4bb938(_0x4f6c06['getRanges'](),_0x227e94)||_0x4bb938(_0x227e94,_0x4f6c06['getRanges']()))){for(const _0x4cc631 of _0x227e94)_0x4f6c06['addRange'](_0x4cc631);return _0x4f6c06;}for(const {suggestion:_0x5d1d72,meta:_0x4612d7}of this['_findSuggestions'](_0x227e94,'insertion')){if(!_0x4612d7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4612d7['containsRangeInObject'])continue;if(!se(_0x5d1d72,_0x1abc39))continue;let _0x1260dc=!0x0;for(const _0x2352d6 of _0x5d1d72['getRanges']())for(const _0x1a10bd of _0x227e94)if(!_0x2352d6['containsRange'](_0x1a10bd)){_0x1260dc=!0x1;break;}if(_0x1260dc)return _0x5d1d72;}const _0x5146f2=_0x4cc075(),_0x22c875=_0x564438['id'],_0x16b2a7='insertion:'+_0x3239aa,_0x5106bf=this['_setSuggestionData']({'id':_0x5146f2,'type':_0x16b2a7,'createdAt':new Date(),'authorId':_0x22c875,'attributes':_0x1abc39});for(const _0x157acf of _0x227e94)this['_addSuggestionMarker'](_0x16b2a7,_0x5146f2,_0x22c875,_0x157acf,R['getMultiRangeId']());return _0x5106bf;}['markInlineFormat'](_0x3770bc,_0x984e29,_0x1dc147=null,_0x385405={}){if(_0x1dc147=_0x1dc147||zt(_0x984e29),_0x3770bc['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x385405['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x40eec7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1dc147,'accept');return this['forceDefaultExecution'](()=>_0x40eec7([_0x3770bc],_0x984e29,_0x385405)),null;}const _0x117cdc=this['editor']['plugins']['get']('Users')['me'],_0x136919=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2085d6,meta:_0x328ab5}of this['_findSuggestions'](_0x3770bc,'insertion'))_0x328ab5['isOwn']&&!_0x328ab5['isInsideObject']&&_0x136919['push'](..._0x2085d6['getRanges']());}const _0x532230=function(_0x217958,_0x2faa2f){const _0x154b93=[];for(const _0xbc3ad4 of _0x2faa2f){const _0x5078f2=_0x217958['getIntersection'](_0xbc3ad4);_0x5078f2&&_0x154b93['push'](_0x5078f2);}return _0x154b93;}(_0x3770bc,_0x136919),_0xe1bf68=function(_0xa16474,_0x50fb72){const _0x174e5b=[_0xa16474];for(const _0x4e1b02 of _0x50fb72){let _0x1e2318=0x0;for(;_0x1e2318<_0x174e5b['length'];){const _0x48f0fa=_0x174e5b[_0x1e2318]['getDifference'](_0x4e1b02);_0x174e5b['splice'](_0x1e2318,0x1,..._0x48f0fa),_0x1e2318+=_0x48f0fa['length'];}}return _0x174e5b;}(_0x3770bc,_0x136919);_0x532230['length']&&this['_model']['change'](()=>{for(const _0x337e4f of _0x532230){const _0x56da27=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1dc147,'accept');this['forceDefaultExecution'](()=>_0x56da27([_0x337e4f],_0x984e29,_0x385405));}});for(const _0x613fb4 of _0xe1bf68){let _0x4fae96=null,_0x3b9fa9=_0x613fb4['start'],_0x269e0b=_0x613fb4['end'];for(const {suggestion:_0x51beaf,meta:_0x2ffec6}of this['_findSuggestions'](_0x613fb4,'formatInline')){if(!_0x2ffec6['isOwn'])continue;if(_0x51beaf['subType']!=_0x1dc147)continue;if(!se(_0x51beaf,_0x385405))continue;const _0x43b030=_0x51beaf['getFirstRange']();if(_0x43b030['containsRange'](_0x613fb4,!0x0))return null;_0x3b9fa9=_0x3b9fa9['isBefore'](_0x43b030['start'])?_0x3b9fa9:_0x43b030['start'],_0x269e0b=_0x269e0b['isAfter'](_0x43b030['end'])?_0x269e0b:_0x43b030['end'],_0x4fae96?_0x43b030['start']['isBefore'](_0x4fae96['getFirstRange']()['start'])?(_0x4fae96['removeMarkers'](),_0x4fae96=_0x51beaf):_0x51beaf['removeMarkers']():_0x4fae96=_0x51beaf;}const _0xcd57ea=this['_model']['createRange'](_0x3b9fa9,_0x269e0b);if(_0x4fae96)this['_setSuggestionRange'](_0x4fae96,_0xcd57ea);else{const _0x4bb156=_0x4cc075(),_0x5ef715=_0x117cdc['id'];this['_setSuggestionData']({'id':_0x4bb156,'type':'formatInline:'+_0x1dc147,'data':_0x984e29,'createdAt':new Date(),'authorId':_0x5ef715,'attributes':_0x385405}),this['_addSuggestionMarker']('formatInline:'+_0x1dc147,_0x4bb156,_0x5ef715,_0xcd57ea);}}return null;}['markBlockFormat'](_0x4fa3dc,_0x5536d2,_0xce1efb=[],_0xb171d6=null,_0x226059={}){_0x5536d2['formatGroupId']||(_0x5536d2['formatGroupId']=_0x5536d2['commandName']),_0x5536d2['multipleBlocks']=_0x4fa3dc['is']('range'),_0xb171d6=_0xb171d6||zt(_0x5536d2);const _0x397bd9=_0xce1efb['map'](_0x2a4ecf=>ee(_0x2a4ecf,this['_model'])),_0x366654=_0x4fa3dc['is']('range')?_0x4fa3dc:ee(_0x4fa3dc,this['_model']);if(this['_trackingSessionId']&&(_0x226059['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xfe5b99=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb171d6,'accept');return this['forceDefaultExecution'](()=>_0xfe5b99([_0x366654],_0x5536d2,_0x226059)),null;}_0x397bd9['push'](_0x366654);let _0x580caf=!0x0;for(const _0x3aa6bd of _0x397bd9)if(!this['_rangeIsInLocalUserInsertion'](_0x3aa6bd)){_0x580caf=!0x1;break;}if(_0x580caf&&'always'!==this['_trackFormatChanges']){const _0x2e59ec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb171d6,'accept');return this['forceDefaultExecution'](()=>_0x2e59ec([_0x366654],_0x5536d2,_0x226059)),null;}let _0x54635d=null,_0xbec327=_0x366654['start'],_0x1ef16b=_0x366654['end'];for(const {suggestion:_0x37242e,meta:_0x5dc661}of this['_findSuggestions'](_0x366654,'formatBlock')){if(!_0x5dc661['isOwn'])continue;if(_0x5dc661['isNextTo']||_0x5dc661['containsRangeInObject']||_0x5dc661['isInsideObject'])continue;if(_0x37242e['data']['formatGroupId']!=_0x5536d2['formatGroupId'])continue;if(!se(_0x37242e,_0x226059))continue;const _0x28415c=_0x37242e['getFirstRange']();if(_0x37242e['subType']==_0xb171d6){if(_0x28415c['containsRange'](_0x366654,!0x0))return null;_0xbec327=_0xbec327['isBefore'](_0x28415c['start'])?_0xbec327:_0x28415c['start'],_0x1ef16b=_0x1ef16b['isAfter'](_0x28415c['end'])?_0x1ef16b:_0x28415c['end'],_0x54635d?_0x28415c['start']['isBefore'](_0x54635d['getFirstRange']()['start'])?(_0x54635d['removeMarkers'](),_0x54635d=_0x37242e):_0x37242e['removeMarkers']():_0x54635d=_0x37242e;}else{const _0xbfb79=_0x366654['getIntersection'](_0x28415c);this['_cutOutSuggestionMarker'](_0x37242e,_0xbfb79);}}const _0x53287c=this['editor']['plugins']['get']('Users')['me'],_0x486810=_0x4cc075(),_0x2449bd=_0x53287c['id'];if(_0x54635d)return this['_setSuggestionRange'](_0x54635d,this['_model']['createRange'](_0xbec327,_0x1ef16b)),_0x54635d;{const _0x5d0a76=this['_setSuggestionData']({'id':_0x486810,'type':'formatBlock:'+_0xb171d6,'data':_0x5536d2,'createdAt':new Date(),'authorId':_0x2449bd,'attributes':_0x226059});return this['_addSuggestionMarker']('formatBlock:'+_0xb171d6,_0x486810,_0x2449bd,this['_model']['createRange'](_0xbec327,_0x1ef16b)),_0x5d0a76;}}['markMultiRangeBlockFormat'](_0x1bd997,_0x53b85a,_0xafb7b8=[],_0x4dce5f=null,_0x743fb6={}){_0x53b85a['formatGroupId']||(_0x53b85a['formatGroupId']=_0x53b85a['commandName']);const _0x2b4cef=_0x1bd997[0x0];_0x53b85a['multipleBlocks']=_0x2b4cef['is']('range'),_0x4dce5f=_0x4dce5f||zt(_0x53b85a);const _0xcbee7b=_0xafb7b8['map'](_0x2c1502=>ee(_0x2c1502,this['_model'])),_0x39d35a=_0x2b4cef['is']('range')?_0x1bd997:_0x1bd997['map'](_0x429ab3=>ee(_0x429ab3,this['_model']));if(this['_trackingSessionId']&&(_0x743fb6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4a613e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4dce5f,'accept');return this['forceDefaultExecution'](()=>_0x4a613e(_0x39d35a,_0x53b85a,_0x743fb6)),null;}_0xcbee7b['push'](..._0x39d35a);let _0x2c2316=!0x0;for(const _0x4c10ec of _0xcbee7b)if(!this['_rangeIsInLocalUserInsertion'](_0x4c10ec)){_0x2c2316=!0x1;break;}if(_0x2c2316&&'always'!==this['_trackFormatChanges']){const _0xc5b806=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4dce5f,'accept');return this['forceDefaultExecution'](()=>_0xc5b806(_0x39d35a,_0x53b85a,_0x743fb6)),null;}const _0x1a7c78=this['editor']['plugins']['get']('Users')['me'];for(const _0x5dce53 of this['getSuggestions']()){const _0x81c22a=_0x5dce53['data'];if(_0x5dce53['author']['id']!=_0x1a7c78['id'])continue;if('formatBlock'!=_0x5dce53['type']||_0x81c22a['formatGroupId']!=_0x53b85a['formatGroupId'])continue;if(!se(_0x5dce53,_0x743fb6))continue;const _0x3bb213=_0x5dce53['subType']==_0x4dce5f;for(let _0x478afb=0x0;_0x478afb<_0x39d35a['length'];_0x478afb++){const _0x2d1364=_0x39d35a[_0x478afb];for(const _0x286395 of _0x5dce53['getMarkers']()){const _0x344157=_0x286395['getRange']();if(_0x2d1364['isEqual'](_0x344157)){_0x3bb213?(_0x39d35a['splice'](_0x478afb,0x1),_0x478afb--):_0x5dce53['removeMarker'](_0x286395['name']);break;}}}}if(0x0==_0x39d35a['length'])return null;const _0xcc4884=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4dce5f,'join');for(const _0x3a9d6f of this['getSuggestions']()){const _0x318066=_0x3a9d6f['data'];if(_0x3a9d6f['author']['id']==_0x1a7c78['id']&&('formatBlock'==_0x3a9d6f['type']&&_0x318066['formatGroupId']==_0x53b85a['formatGroupId']&&_0x3a9d6f['subType']==_0x4dce5f&&se(_0x3a9d6f,_0x743fb6)&&(_0xcc4884(_0x3a9d6f['getRanges'](),_0x39d35a)||_0xcc4884(_0x39d35a,_0x3a9d6f['getRanges']())))){for(const _0x18721f of _0x39d35a)_0x3a9d6f['addRange'](_0x18721f);return _0x3a9d6f;}}const _0x39efbf=_0x4cc075(),_0x45ffd7=_0x1a7c78['id'],_0x3eb234='formatBlock:'+_0x4dce5f,_0x1bd6be=this['_setSuggestionData']({'id':_0x39efbf,'type':_0x3eb234,'data':_0x53b85a,'createdAt':new Date(),'authorId':_0x45ffd7,'attributes':_0x743fb6});for(const _0x45d963 of _0x39d35a)this['_addSuggestionMarker'](_0x3eb234,_0x39efbf,_0x45ffd7,_0x45d963,R['getMultiRangeId']());return _0x1bd6be;}['markDeletion'](_0x1705d6,_0x3882ea=null,_0x19325a={}){if(_0x1705d6['isCollapsed'])return null;const _0x3da51d=this['editor']['plugins']['get']('Users')['me'],_0x3fbb66=new _0x4be877(_0x1705d6['start'],_0x1705d6['end']);this['_trackingSessionId']&&(_0x19325a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x13e294,meta:_0x15f572}of this['_findSuggestions'](_0x3fbb66,'insertion'))if(_0x15f572['isOwn']&&!_0x15f572['isNextTo']){if(_0x13e294['isMultiRange']){const _0x522f26=_0x13e294['getRanges']()['filter'](_0x3ba420=>'$graveyard'!=_0x3ba420['root']['rootName']);_0x522f26['every'](_0x375a70=>_0x3fbb66['containsRange'](_0x375a70,!0x0))&&_0x13e294['discard']();if(_0x522f26['some'](_0x1bc66f=>_0x1bc66f['containsRange'](_0x3fbb66,!0x0))){const _0x1921c5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3882ea,'accept');return this['forceDefaultExecution'](()=>_0x1921c5([_0x3fbb66],null,_0x19325a)),null;}}else{const _0x3f0d6f=_0x3fbb66['getIntersection'](_0x13e294['getFirstRange']());null!==_0x3f0d6f&&_0x13e294['_onDiscard']([_0x3f0d6f],null,_0x19325a);}}if(_0x3fbb66['detach'](),_0x3fbb66['isCollapsed']||'$graveyard'==_0x3fbb66['root']['rootName'])return null;let _0x122aa4=null,_0x2814cf=_0x3fbb66['start'],_0x421b8d=_0x3fbb66['end'];const _0x5b007d=this['_findSuggestions'](_0x3fbb66,'deletion');for(const {suggestion:_0x268754,meta:_0x2d0651}of _0x5b007d){const _0x5b4634=this['_model']['createRange'](_0x2814cf,_0x421b8d);if(_0x2d0651['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2d0651['containsRangeInObject']&&!_0x2d0651['isInsideObject'])){if(_0x268754['isMultiRange']){if(!se(_0x268754,_0x19325a))continue;let _0x355f4a=!0x0;for(const _0x195d2b of _0x268754['getRanges']()){if(_0x195d2b['containsRange'](_0x5b4634,!0x0))return _0x268754;_0x5b4634['containsRange'](_0x195d2b)||(_0x355f4a=!0x1);}_0x355f4a&&_0x268754['discard']();}else{const _0x262058=_0x268754['getFirstRange']();if(_0x262058['containsRange'](_0x5b4634,!0x0))return _0x268754;if(!se(_0x268754,_0x19325a)){_0x5b4634['containsRange'](_0x262058)?_0x268754['removeMarkers']():_0x262058['containsPosition'](_0x2814cf)?_0x2814cf=_0x262058['end']:_0x262058['containsPosition'](_0x421b8d)&&(_0x421b8d=_0x262058['start']);continue;}_0x2814cf=_0x2814cf['isBefore'](_0x262058['start'])?_0x2814cf:_0x262058['start'],_0x421b8d=_0x421b8d['isAfter'](_0x262058['end'])?_0x421b8d:_0x262058['end'],_0x19325a=Object['assign']({},_0x268754['attributes']),_0x122aa4?_0x262058['start']['isBefore'](_0x122aa4['getFirstRange']()['start'])?(_0x122aa4['removeMarkers'](),_0x122aa4=_0x268754):_0x268754['removeMarkers']():_0x122aa4=_0x268754;}}}if(_0x122aa4)return this['_setSuggestionRange'](_0x122aa4,this['_model']['createRange'](_0x2814cf,_0x421b8d)),_0x122aa4;{const _0xc6c333=_0x4cc075(),_0x325ac8=this['_model']['createRange'](_0x2814cf,_0x421b8d),_0x3a00cb=_0x3da51d['id'],_0x48e2a2=_0x3882ea?'deletion:'+_0x3882ea:'deletion',_0x4ee7c3=this['_setSuggestionData']({'id':_0xc6c333,'type':_0x48e2a2,'createdAt':new Date(),'authorId':_0x3a00cb,'attributes':_0x19325a});return this['_addSuggestionMarker'](_0x48e2a2,_0xc6c333,_0x3a00cb,_0x325ac8),_0x4ee7c3;}}['markMultiRangeDeletion'](_0x590a16,_0x1c73b0='multi',_0x1a86eb={}){const _0x5a986a=this['editor']['plugins']['get']('Users')['me'],_0x380dd5=_0x590a16['map'](_0x3d5035=>new _0x4be877(_0x3d5035['start'],_0x3d5035['end'])),_0x41ae66=new Set();this['_trackingSessionId']&&(_0x1a86eb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x294948,meta:_0x309d73}of this['_findSuggestions'](_0x380dd5,'insertion'))_0x309d73['isOwn']&&!_0x309d73['isNextTo']&&_0x41ae66['add'](_0x294948);for(const _0x40cb8c of _0x41ae66)if(_0x40cb8c['isMultiRange']){const _0x1ef31f=_0x40cb8c['getRanges']();(!_0x40cb8c['attributes']||!_0x40cb8c['attributes']['skipNestingCheck'])&&(_0x1ef31f['every'](_0x40aba1=>_0x380dd5['some'](_0x85a4bc=>_0x85a4bc['containsRange'](_0x40aba1,!0x0)))&&_0x40cb8c['discard']());if(_0x380dd5['every'](_0x4a4144=>_0x1ef31f['some'](_0x2816b3=>_0x2816b3['containsRange'](_0x4a4144,!0x0)))){const _0x4b0712=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c73b0,'accept');return this['forceDefaultExecution'](()=>_0x4b0712(_0x590a16,null,_0x1a86eb)),null;}}else{const _0x5aade4=_0x40cb8c['getFirstRange']();_0x380dd5['some'](_0x1d9eda=>_0x1d9eda['containsRange'](_0x5aade4,!0x0))&&_0x40cb8c['discard']();if(_0x380dd5['every'](_0x51282d=>_0x5aade4['containsRange'](_0x51282d,!0x0))){const _0x12a3c2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c73b0,'accept');return this['forceDefaultExecution'](()=>_0x12a3c2(_0x380dd5,null,_0x1a86eb)),null;}}const _0x42e338=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c73b0,'join');let _0x426123=null;for(const _0xbaadb9 of this['getSuggestions']())if(_0xbaadb9['author']['id']==_0x5a986a['id']&&_0xbaadb9['isInContent']&&'deletion'==_0xbaadb9['type']&&_0xbaadb9['subType']==_0x1c73b0&&se(_0xbaadb9,_0x1a86eb)&&(_0x42e338(_0xbaadb9['getRanges'](),_0x380dd5)||_0x42e338(_0x380dd5,_0xbaadb9['getRanges']()))){if(_0x426123){if(_0xbaadb9['commentThread']&&_0xbaadb9['commentThread']['length'])continue;for(const _0x3a6fb5 of _0xbaadb9['getRanges']())_0x426123['isIntersectingWithRange'](_0x3a6fb5)||_0x426123['addRange'](_0x3a6fb5);_0xbaadb9['removeMarkers']();}else{_0x426123=_0xbaadb9;for(const _0x415ce5 of _0x380dd5)_0xbaadb9['isIntersectingWithRange'](_0x415ce5)||_0xbaadb9['addRange'](_0x415ce5);}}if(_0x426123)return _0x426123;_0x41ae66['clear']();for(const {suggestion:_0x579e26,meta:_0x333a6d}of this['_findSuggestions'](_0x380dd5,'deletion'))_0x333a6d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x333a6d['containsRangeInObject']&&!_0x333a6d['isInsideObject'])&&se(_0x579e26,_0x1a86eb)&&_0x41ae66['add'](_0x579e26);for(const _0x5ed18c of _0x41ae66){const _0x115acf=_0x5ed18c['getRanges']();if(!_0x1a86eb||!_0x1a86eb['skipNestingCheck']){if(_0x380dd5['every'](_0x26f977=>_0x115acf['some'](_0x53d352=>_0x53d352['containsRange'](_0x26f977,!0x0))))return _0x5ed18c;}(!_0x5ed18c['attributes']||!_0x5ed18c['attributes']['skipNestingCheck'])&&(_0x115acf['every'](_0x491755=>_0x380dd5['some'](_0x459384=>_0x459384['containsRange'](_0x491755,!0x0)))&&_0x5ed18c['discard']());}const _0x2cf3b1=_0x4cc075(),_0x5146d3=_0x5a986a['id'],_0xf26ac3='deletion:'+_0x1c73b0,_0x31a434=this['_setSuggestionData']({'id':_0x2cf3b1,'type':_0xf26ac3,'createdAt':new Date(),'authorId':_0x5146d3,'attributes':_0x1a86eb});for(const _0x9bdc9e of _0x380dd5)_0x9bdc9e['detach'](),_0x9bdc9e['isCollapsed']||'$graveyard'==_0x9bdc9e['root']['rootName']||this['_addSuggestionMarker'](_0xf26ac3,_0x2cf3b1,_0x5146d3,_0x9bdc9e,R['getMultiRangeId']());return _0x31a434;}['markAttributeChange'](_0x368c4c,_0x1240ca,_0x36c1e6,_0xef0369,_0x53480e){if(_0x368c4c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x28afaa=this['editor']['plugins']['get']('Users')['me']['id'],_0xd35eae=Array['from'](this['_suggestions']['values']())['filter'](_0x45e8eb=>'attribute'==_0x45e8eb['type']&&_0x45e8eb['data']['key']==_0x1240ca&&_0x45e8eb['isIntersectingWithRange'](_0x368c4c));if(this['_trackingSessionId']&&(_0x53480e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x564219=this['_findSuggestions'](_0x368c4c,'insertion')['filter'](({meta:_0x935f4c})=>_0x935f4c['isOwn']&&!_0x935f4c['isInsideObject']&&!_0x935f4c['isNextTo'])['map'](({suggestion:_0xca691f})=>_0xca691f);_0xd35eae['unshift'](..._0x564219);}const _0x5b14a7=new Map([[_0x368c4c,_0x36c1e6]]);for(const _0x86da50 of _0xd35eae){const _0x12cee3='attribute'==_0x86da50['type']?_0x86da50['data']['oldValue']:void 0x0,_0x165d54=_0x86da50['getFirstRange'](),_0x22a0de=Array['from'](_0x5b14a7['keys']())['find'](_0x3e4bc7=>_0x3e4bc7['isIntersecting'](_0x165d54));if(!_0x22a0de)continue;const _0xa418b1=_0x22a0de['getDifference'](_0x165d54);this['_isBlockAttribute'](_0x1240ca)&&'insertion'==_0x86da50['type']&&0x0!=_0xa418b1['length']||(_0x5b14a7['delete'](_0x22a0de),_0xa418b1['forEach'](_0x3af3f3=>{_0x5b14a7['set'](_0x3af3f3,_0x36c1e6);}),'insertion'!=_0x86da50['type']&&_0x12cee3!=_0xef0369&&_0x5b14a7['set'](_0x22a0de['getIntersection'](_0x165d54),_0x12cee3));}const _0x1cc298=[];for(const [_0x2db34d,_0x385a48]of _0x5b14a7){const _0x4c2f6d=_0x4cc075(),_0x2cc81c={'key':_0x1240ca,'oldValue':_0x385a48,'newValue':_0xef0369};_0x1240ca['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':_0x1240ca});const _0x4c8b02=('attribute:'+(_0x1240ca+'|'+zt({'newValue':_0xef0369})))['substring'](0x0,0x3c),_0x7800e7=this['_setSuggestionData']({'id':_0x4c2f6d,'type':_0x4c8b02,'data':_0x2cc81c,'createdAt':new Date(),'authorId':_0x28afaa,'attributes':_0x53480e});_0x1cc298['push'](_0x7800e7),this['_addSuggestionMarker'](_0x4c8b02,_0x4c2f6d,_0x28afaa,_0x2db34d);}return _0x1cc298;}['enableDefaultAttributesIntegration'](_0xd0335d){this['enableCommand'](_0xd0335d,(_0x30dbb5,..._0x517546)=>{this['recordAttributeChanges'](()=>{_0x30dbb5(..._0x517546);});});}['registerBlockAttribute'](_0x1196e7){this['_blockAttributeKeys']['add'](_0x1196e7);}['registerInlineAttribute'](_0x3047f1){this['_inlineAttributeKeys']['add'](_0x3047f1);}['startTrackingSession'](_0x120bfc){return this['_trackingSessionId']=void 0x0!==_0x120bfc?_0x120bfc:_0x4cc075(),this['_trackingSessionId'];}['_getAttributeKey'](_0x505343){return'attribute'==_0x505343['type']?re(_0x505343['subType']):null;}['_applyOperationsAsSuggestions'](_0x3254d9){if(0x0==_0x3254d9['length'])return;const _0x5942d8=this['editor'],_0x477642=_0x5942d8['plugins']['get'](_0x8570be);let _0x522ef2,_0x30ac7f=!0x0;for(const _0x8def27 in _0x3254d9[0x0]){const _0x1bcd9d=_0x3254d9[0x0][_0x8def27];if((_0x1bcd9d instanceof _0x536272||_0x1bcd9d instanceof _0x5f7bdb)&&_0x1bcd9d['root']['is']('documentFragment')){_0x30ac7f=!0x1,_0x522ef2=_0x1bcd9d['root'];break;}}_0x5942d8['model']['change'](_0x5cb9c8=>{const _0x1d0c9d=new Set();for(let _0x8f1214=0x0;_0x8f1214<_0x3254d9['length'];_0x8f1214++){const _0x76b3ea=_0x3254d9[_0x8f1214];if(_0x76b3ea['baseVersion']=_0x30ac7f?_0x5942d8['model']['document']['version']:null,_0x76b3ea['isDocumentOperation']=_0x30ac7f,_0x477642['isMarkedRemoveOperation'](_0x76b3ea)){const _0x49b21e=Zt(_0x76b3ea['newRange'],_0x5942d8['model']);if(_0x30ac7f)this['markDeletion'](_0x49b21e);else{const _0x44dca8='suggestion:deletion:'+_0x4cc075()+':$aiSuggestion';_0x522ef2['markers']['set'](_0x44dca8,_0x49b21e);}}else switch(_0x76b3ea['type']){case'rename':{const _0x13b938=_0x76b3ea['oldName'],_0x31c5d4=_0x76b3ea['newName'];if(_0x13b938==_0x31c5d4)break;_0x5cb9c8['batch']['addOperation'](_0x76b3ea),_0x5942d8['model']['applyOperation'](_0x76b3ea);const _0x1dbdbd='$elementName',_0x249898=_0x76b3ea['position'],_0x1c3ee7=_0x5942d8['model']['createRange'](_0x249898,_0x5942d8['model']['createPositionAt'](_0x249898['nodeAfter'],'end'));if(_0x30ac7f)this['markAttributeChange'](_0x1c3ee7,_0x1dbdbd,_0x13b938,_0x31c5d4,{'groupId':_0x4cc075()});else{const _0x14c37e='suggestion:attribute:'+_0x1dbdbd+':'+_0x4cc075()+':$aiSuggestion';_0x522ef2['markers']['set'](_0x14c37e,_0x1c3ee7);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xca0f07=_0x76b3ea['oldValue'],_0x5184b0=_0x76b3ea['newValue'];if(_0xca0f07==_0x5184b0)break;_0x5cb9c8['batch']['addOperation'](_0x76b3ea),_0x5942d8['model']['applyOperation'](_0x76b3ea);const _0x3fa919=_0x76b3ea['key'];if(!this['_isRegisteredAttribute'](_0x3fa919))break;const _0x3480d9=Zt(_0x76b3ea['range'],_0x5942d8['model']);if(_0x30ac7f)this['markAttributeChange'](_0x3480d9,_0x3fa919,_0xca0f07,_0x5184b0,{'groupId':_0x4cc075()});else{const _0x5585d1='suggestion:attribute:'+_0x3fa919+':'+_0x4cc075()+':$aiSuggestion';_0x522ef2['markers']['set'](_0x5585d1,_0x3480d9);}break;}case'insert':{_0x5cb9c8['batch']['addOperation'](_0x76b3ea),_0x5942d8['model']['applyOperation'](_0x76b3ea);const _0x30f3b7=_0x3254d9[_0x8f1214+0x1]&&'move'==_0x3254d9[_0x8f1214+0x1]['type'];if(!_0x30ac7f&&_0x30f3b7&&ae(_0x522ef2,_0x76b3ea),_0x30f3b7)break;const _0x4d18b5=_0x76b3ea['position'],_0x456b44=_0x76b3ea['howMany'],_0x2c7abe=Zt(_0x5942d8['model']['createRange'](_0x4d18b5,_0x4d18b5['getShiftedBy'](_0x456b44)),_0x5942d8['model']);if(_0x30ac7f)this['markInsertion'](_0x2c7abe);else{const _0x1baa95='suggestion:insertion:'+_0x4cc075()+':$aiSuggestion';_0x522ef2['markers']['set'](_0x1baa95,_0x2c7abe);}break;}case'split':{_0x5cb9c8['batch']['addOperation'](_0x76b3ea),_0x5942d8['model']['applyOperation'](_0x76b3ea);const _0x1c08b6=_0x76b3ea['splitPosition'],_0x132013=_0x76b3ea['moveTargetPosition'],_0x20bbd5=_0x5942d8['model']['createRange'](_0x1c08b6,_0x132013);if(_0x30ac7f)this['markInsertion'](_0x5942d8['model']['createRange'](_0x1c08b6,_0x132013));else{const _0x44a9d6='suggestion:insertion:'+_0x4cc075()+':$aiSuggestion';_0x522ef2['markers']['set'](_0x44a9d6,_0x20bbd5);}break;}case'move':if(_0x5cb9c8['batch']['addOperation'](_0x76b3ea),_0x5942d8['model']['applyOperation'](_0x76b3ea),!_0x30ac7f&&_0x3254d9[_0x8f1214-0x1]&&'insert'==_0x3254d9[_0x8f1214-0x1]['type']&&ae(_0x522ef2,_0x76b3ea),!_0x30ac7f){const _0x5b59fb=_0x76b3ea['getMovedRangeStart'](),_0x3ac146=_0x76b3ea['howMany'];for(let _0xc2daa1=0x0;_0xc2daa1<_0x3ac146;_0xc2daa1++){const _0xdd255a=_0x5b59fb['getShiftedBy'](_0xc2daa1)['nodeAfter'];_0x1d0c9d['add'](_0xdd255a);}}break;case'remove':if(_0x30ac7f)_0x5cb9c8['batch']['addOperation'](_0x76b3ea),_0x5942d8['model']['applyOperation'](_0x76b3ea);else{const _0x1ee2e9=_0x76b3ea['sourcePosition'],_0x515f2e=_0x76b3ea['howMany'],_0x36bc29=new _0x74bf5a(_0x1ee2e9,_0x515f2e);_0x5cb9c8['batch']['addOperation'](_0x36bc29),_0x5942d8['model']['applyOperation'](_0x36bc29);}}}for(const _0x47a762 of _0x1d0c9d){const _0xc47d97=_0x5942d8['model']['createRangeOn'](_0x47a762),_0x43c72b='suggestion:formatBlock:$fakeWrap:'+_0x4cc075()+':$aiSuggestion';_0x522ef2['markers']['set'](_0x43c72b,Zt(_0xc47d97,_0x5942d8['model']));}});}['_setSuggestionRange'](_0x291d40,_0x13b554){const _0x5ccb13=_0x291d40['getFirstMarker']();this['_model']['change'](_0x1dc76d=>{_0x1dc76d['updateMarker'](_0x5ccb13,{'range':_0x13b554});});}['_addThreadToSuggestion'](_0x1743b4){const _0x33d589=_0x1743b4['id'],_0x2a0284=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x33d589)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2a0284,'threadId':_0x33d589,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x384972=this['_commentsRepository']['getCommentThread'](_0x33d589);_0x384972['unbind']('isRemovable'),_0x384972['isRemovable']=!0x1,_0x1743b4['commentThread']=_0x384972;}['_checkSuggestionCorrectness'](_0x4d1f23,_0x1729c0,_0x16f89a,_0x3e25dd){if(_0x4d1f23['type']!=_0x1729c0||_0x4d1f23['subType']!=_0x16f89a||_0x4d1f23['creator']['id']!=_0x3e25dd)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2e1b6b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x32b33b,_0x2deee7){const _0x510837=_0x32b33b['getFirstRange']();if(_0x2deee7['isEqual'](_0x510837))_0x32b33b['removeMarkers']();else{if(_0x510837['containsRange'](_0x2deee7)){const _0x12d6f5=this['_model']['createPositionAt'](_0x2deee7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x32b33b,this['_model']['createRange'](_0x510837['start'],_0x12d6f5));const _0x55d560=_0x4cc075(),_0x15d1fb=_0x32b33b['creator']['id'],_0x5b42d9=_0x32b33b['type']+':'+_0x32b33b['subType'];this['_setSuggestionData']({'id':_0x55d560,'type':_0x5b42d9,'createdAt':new Date(),'authorId':_0x15d1fb,'data':_0x32b33b['data'],'attributes':_0x32b33b['attributes']});const _0x10ca1e=this['_model']['createPositionAt'](_0x2deee7['end']['parent'],'after'),_0x1d1edb=this['_model']['createRange'](_0x10ca1e,_0x510837['end']);this['_addSuggestionMarker'](_0x5b42d9,_0x55d560,_0x15d1fb,_0x1d1edb);}else{if(_0x510837['containsPosition'](_0x2deee7['start'])){const _0x14cd02=this['_model']['createPositionAt'](_0x2deee7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x32b33b,this['_model']['createRange'](_0x510837['start'],_0x14cd02));}else{const _0x1ee41a=this['_model']['createPositionAt'](_0x2deee7['end']['parent'],'after');this['_setSuggestionRange'](_0x32b33b,this['_model']['createRange'](_0x1ee41a,_0x510837['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x188a72){for(const {suggestion:_0x301b36,meta:_0x2392c5}of this['_findSuggestions'](_0x188a72,'insertion')){if(!_0x2392c5['isOwn'])continue;const _0x5b2be2=_0x301b36['getRanges']();for(const _0x632c23 of _0x5b2be2)if(!_0x188a72['getDifference'](_0x632c23)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x34de55){return this['editor']['plugins']['get']('Users')['getUser'](_0x34de55);}['_getExternalAuthor'](_0x455e64){const _0x5aca61=this['editor']['plugins']['get']('Users'),_0x397c09=_0x4541a7('external:'+_0x455e64),_0x1e5f31=_0x5aca61['getUser'](_0x397c09);return _0x1e5f31||_0x5aca61['addUser']({'id':_0x397c09,'name':_0x455e64});}['_createSuggestion'](_0x518f7a,_0x315be4,_0x5b5439,_0x2fc7ca,_0x1da5ba,_0x50089f){const _0x280794=this['_getAuthorFromId'](_0x2fc7ca);if(!_0x280794)throw new _0x2e1b6b('track-changes-user-not-found',this,{'authorId':_0x2fc7ca,'suggestionId':_0x5b5439});const _0x392647=this['_suggestionFactory']['buildSuggestion'](_0x518f7a,_0x315be4,_0x5b5439,_0x280794,_0x1da5ba,_0x3f1752=>{this['_updateSuggestionData'](_0x5b5439,{'attributes':_0x3f1752});const _0x5197e0=this['getSuggestion'](_0x5b5439);this['_joinWithAdjacentSuggestions'](new Set([_0x5197e0])),this['_refreshSuggestionsChain'](new Set([_0x5197e0]));},_0x50089f);return this['listenTo'](_0x392647,'accept',()=>{this['_updateSuggestionData'](_0x5b5439,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x392647,'discard',()=>{this['_updateSuggestionData'](_0x5b5439,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5b5439,_0x392647),this['_suggestionState']['set'](_0x392647,'notReady'),_0x392647;}['_splitMarkerName'](_0x246aeb){const _0x169960=_0x246aeb['split'](':');return{'group':_0x169960[0x0],'type':_0x169960[0x1],'subType':_0x169960['length']>=0x5?_0x169960[0x2]:null,'id':_0x169960['length']<0x5?_0x169960[0x2]:_0x169960[0x3],'authorId':_0x169960['length']<0x5?_0x169960[0x3]:_0x169960[0x4],'markerCount':0x6==_0x169960['length']?_0x169960[0x5]:null};}['_breakSuggestionMarker'](_0x20e48d,_0x3f71d8,_0xb5aa39){const _0x28dea7=_0x20e48d['getFirstRange'](),_0x350199=_0x28dea7['start'],_0x11b345=_0x28dea7['end'];this['_setSuggestionRange'](_0x20e48d,this['_model']['createRange'](_0x350199,_0x3f71d8));const _0x483885=_0x4cc075(),_0x5931fc=_0x20e48d['creator']['id'],_0xd24a65=_0x20e48d['type']+(_0x20e48d['subType']?':'+_0x20e48d['subType']:'');this['_setSuggestionData']({'id':_0x483885,'type':_0xd24a65,'createdAt':new Date(),'authorId':_0x5931fc,'originalSuggestionId':_0x20e48d['_originalSuggestionId']||_0x20e48d['id'],'attributes':_0x20e48d['attributes'],'data':_0x20e48d['data']});const _0xce23b9=this['_getAttributeKey'](_0x20e48d);('formatBlock'==_0x20e48d['type']||_0xce23b9&&this['_isBlockAttribute'](_0xce23b9))&&(_0xb5aa39=this['_model']['createPositionBefore'](_0xb5aa39['parent'])),this['_addSuggestionMarker'](_0xd24a65,_0x483885,_0x5931fc,this['_model']['createRange'](_0xb5aa39,_0x11b345));}['_findSuggestions'](_0x9bac8b,_0x5b5133=null){const _0x1b0e2d=[],_0x47486b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x9bac8b)||(_0x9bac8b=[_0x9bac8b]);for(const _0x5a1555 of this['getSuggestions']()){if(!_0x5a1555['isInContent'])continue;if(_0x5b5133&&_0x5a1555['type']!=_0x5b5133)continue;let _0x55714e=!0x1;for(const _0xa8a364 of _0x5a1555['getRanges']()){for(const _0x449b8f of _0x9bac8b){const _0xa2cc22=_0x449b8f['start']['isEqual'](_0xa8a364['end'])||_0x449b8f['end']['isEqual'](_0xa8a364['start']);if(_0xa2cc22||_0x449b8f['getIntersection'](_0xa8a364)){const _0x301238=_0x449b8f['containsRange'](_0xa8a364)&&qt(this['_model']['schema'],_0xa8a364['start'],_0x449b8f),_0x5dca55=_0xa8a364['containsRange'](_0x449b8f)&&qt(this['_model']['schema'],_0x449b8f['start'],_0xa8a364);_0x1b0e2d['push']({'suggestion':_0x5a1555,'meta':{'isOwn':_0x47486b==_0x5a1555['author'],'isNextTo':_0xa2cc22,'isInsideObject':_0x301238,'containsRangeInObject':_0x5dca55}}),_0x55714e=!0x0;break;}}if(_0x55714e)break;}}return _0x1b0e2d;}['_addSuggestionMarker'](_0x3c2c35,_0x15848e,_0x516c75,_0x45ad31,_0x44d21c){this['_model']['change'](_0x1ec110=>{let _0x40b0fd='suggestion:'+_0x3c2c35+':'+_0x15848e+':'+_0x516c75;_0x44d21c&&(_0x40b0fd=_0x40b0fd+':'+_0x44d21c),_0x1ec110['addMarker'](_0x40b0fd,{'range':_0x45ad31,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4fa72d){const _0x2ae85c=_0x4fa72d['previous'],_0x563228=_0x4fa72d['next'];_0x4fa72d['previous']=null,_0x4fa72d['next']=null,null!=_0x2ae85c&&_0x2ae85c['next']==_0x4fa72d&&(_0x2ae85c['next']=_0x563228),null!=_0x563228&&_0x563228['previous']==_0x4fa72d&&(_0x563228['previous']=_0x2ae85c),'ready'==this['_suggestionState']['get'](_0x4fa72d)&&(this['_suggestionState']['set'](_0x4fa72d,'removed'),this['fire']('suggestionUnloaded',_0x4fa72d,_0x2ae85c,_0x563228));}['_setSuggestionData'](_0x117774){const _0x5c527c=_0x117774['id'],_0x450e2f=this['addSuggestionData'](_0x117774);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x31612f=this['editor']['plugins']['get']('PendingActions'),_0x1ab637=_0x450e2f['hasComments'],_0x1f6c75=_0x450e2f['subType']?_0x450e2f['type']+':'+_0x450e2f['subType']:_0x450e2f['type'],_0xe6ebeb=this['editor']['locale'],_0x1b963c=_0x31612f['add'](o(_0xe6ebeb,'PENDING_ACTION_SUGGESTION')),_0x267bdd={'id':_0x5c527c,'type':_0x1f6c75,'hasComments':_0x1ab637,'data':_0x117774['data']||null,'originalSuggestionId':_0x117774['originalSuggestionId']||null,'attributes':_0x450e2f['attributes']};this['_adapter']['addSuggestion'](_0x267bdd)['then'](_0x26b653=>{_0x450e2f['_saved']=!0x0,_0x31612f['remove'](_0x1b963c),_0x26b653&&_0x26b653['createdAt']&&(this['_suggestions']['get'](_0x5c527c)['createdAt']=_0x26b653['createdAt']);})['catch'](_0x4f0994=>{throw _0x165ad6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x450e2f['discard']();}),_0x450e2f['stopListening'](),this['_suggestions']['delete'](_0x450e2f['id']),this['_suggestionState']['delete'](_0x450e2f),_0x4f0994;});}return _0x450e2f;}['_isBlockAttribute'](_0x2be2a7){return this['_blockAttributeKeys']['has'](_0x2be2a7);}['_isInlineAttribute'](_0x1f98df){return this['_inlineAttributeKeys']['has'](_0x1f98df);}['_updateSuggestionData'](_0x1e9309,_0x4ef87f){const _0x5ce0bc=this['editor']['plugins']['get']('PendingActions'),_0xaee0ce=this['getSuggestion'](_0x1e9309);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xaee0ce['_saved']){const _0x1b5c8d=_0x5ce0bc['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1e9309,_0x4ef87f)['then'](()=>{_0x5ce0bc['remove'](_0x1b5c8d);});}else _0xaee0ce['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1e9309,_0x4ef87f);});}}['_getSuggestionData'](_0x20d333){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2e1b6b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x20d333);}['_handleNewSuggestionMarker'](_0x3c9dfa){const {id:_0x3fe82e,type:_0x449bd8,subType:_0x4cbd6e,authorId:_0x19c0b6}=this['_splitMarkerName'](_0x3c9dfa),_0x36db1b=this['_suggestions']['get'](_0x3fe82e)||this['_createSuggestion'](_0x449bd8,_0x4cbd6e,_0x3fe82e,_0x19c0b6,{});switch(this['_checkSuggestionCorrectness'](_0x36db1b,_0x449bd8,_0x4cbd6e,_0x19c0b6),this['_suggestionState']['get'](_0x36db1b)){case'notReady':this['_getSuggestionData'](_0x3fe82e)['then'](_0x481ff4=>{let _0xa461ea=Promise['resolve']();_0x481ff4['hasComments']&&(_0xa461ea=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3fe82e})),_0xa461ea['then'](()=>{this['addSuggestionData'](_0x481ff4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x36db1b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3fe82e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x36db1b,'ready'),this['fire']('suggestionLoaded',_0x36db1b);break;case'ready':this['fire']('suggestionChanged',_0x36db1b);}return _0x36db1b['addMarkerName'](_0x3c9dfa),_0x36db1b;}['_refreshSuggestionsChain'](_0x2356cb){const _0x2d9a38=Array['from'](_0x2356cb),_0x4af5ac=_0x2d9a38['filter'](_0x5d2a80=>'attribute'==_0x5d2a80['type']);this['_refreshAttributeSuggestionsChain'](_0x4af5ac);const _0x1f5eee=_0x2d9a38['filter'](_0x2e632e=>!_0x2e632e['isMultiRange']&&'attribute'!=_0x2e632e['type']),_0x49bb93=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44a9a5=>!_0x44a9a5['isMultiRange']&&'attribute'!=_0x44a9a5['type']),_0x4fd7f9=_0x49bb93['filter'](_0x4c2c93=>!_0x2356cb['has'](_0x4c2c93)),_0x175b71=new Map(_0x49bb93['map'](_0x3e5f2b=>[_0x3e5f2b,this['_suggestionFactory']['getSuggestionCallback'](_0x3e5f2b['type'],_0x3e5f2b['subType'],'chain')])),_0xaa9d11=new Map(_0x49bb93['map'](_0x5bf1ea=>[_0x5bf1ea,_0x5bf1ea['getFirstRange']()])),_0x4f7d03=new Set(),_0x19e990=new Set();for(let _0x563453=0x0;_0x563453<_0x1f5eee['length'];_0x563453++)_0x5d412f(_0x1f5eee[_0x563453],_0x1f5eee,_0x563453+0x1);for(let _0x504cf5=0x0;_0x504cf5<_0x1f5eee['length'];_0x504cf5++)_0x5d412f(_0x1f5eee[_0x504cf5],_0x4fd7f9,0x0);const _0x422d58=new Set();for(let _0x3010f6=0x0;_0x3010f6<_0x1f5eee['length'];_0x3010f6++){const _0x1f8017=_0x1f5eee[_0x3010f6];!_0x19e990['has'](_0x1f8017)&&_0x1f8017['previous']&&(_0x422d58['add'](_0x1f8017['previous']),_0x1f8017['previous']['next']===_0x1f8017&&(_0x1f8017['previous']['next']=null),_0x1f8017['previous']=null),!_0x4f7d03['has'](_0x1f8017)&&_0x1f8017['next']&&(_0x422d58['add'](_0x1f8017['next']),_0x1f8017['next']['previous']===_0x1f8017&&(_0x1f8017['next']['previous']=null),_0x1f8017['next']=null);}function _0x5d412f(_0x404602,_0x2caa94,_0xfde5b3){for(let _0x39628a=_0xfde5b3;_0x39628a<_0x2caa94['length'];_0x39628a++){const _0x59330a=_0x372161(_0x404602,_0x2caa94[_0x39628a]);_0x59330a&&(_0x59330a[0x0]['next']=_0x59330a[0x1],_0x59330a[0x1]['previous']=_0x59330a[0x0],_0x4f7d03['add'](_0x59330a[0x0]),_0x19e990['add'](_0x59330a[0x1]));}}function _0x372161(_0x3c04aa,_0x148fa2){if(_0x3c04aa['author']['id']!==_0x148fa2['author']['id'])return null;const _0x5cc60c=_0x175b71['get'](_0x3c04aa)(_0x3c04aa,_0x148fa2,_0xaa9d11['get'](_0x3c04aa),_0xaa9d11['get'](_0x148fa2));if(!_0x5cc60c)return null;return _0x175b71['get'](_0x148fa2)(_0x3c04aa,_0x148fa2,_0xaa9d11['get'](_0x3c04aa),_0xaa9d11['get'](_0x148fa2))?_0x5cc60c[0x1]['commentThread']&&_0x5cc60c[0x1]['commentThread']['length']?null:_0x5cc60c:null;}_0x422d58['size']&&this['_refreshSuggestionsChain'](_0x422d58);}['_refreshAttributeSuggestionsChain'](_0x156348){if(0x0==_0x156348['length'])return;const _0x297643=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57fa36=>'attribute'==_0x57fa36['type']&&_0x57fa36['_isDataLoaded']),_0x54bca2=[],_0x3e6848=new Map();for(const _0x4ce3c7 of _0x297643){const _0x20786a=_0x4541a7(_0x4ce3c7['attributes']);_0x3e6848['has'](_0x20786a)||(_0x3e6848['set'](_0x20786a,_0x54bca2['length']),_0x54bca2['push']([]));const _0xb6ed47=_0x3e6848['get'](_0x20786a);_0x54bca2[_0xb6ed47]['push'](_0x4ce3c7);}!(function(){_0x54bca2['sort']((_0x1d2dcf,_0x435cff)=>{const _0x5eba23=_0x1d2dcf[0x0]['createdAt'],_0x47ed84=_0x435cff[0x0]['createdAt'];return _0x5eba23==_0x47ed84?_0x1d2dcf[0x0]['attributes']['groupId']<_0x435cff[0x0]['attributes']['groupId']?-0x1:0x1:_0x5eba23<_0x47ed84?-0x1:0x1;});for(const _0x40d11d of _0x54bca2)_0x40d11d['sort']((_0x7d227f,_0x4cf38e)=>_0x7d227f['id']<_0x4cf38e['id']?-0x1:0x1);}());for(let _0x4bdc7b=0x0;_0x4bdc7b<_0x54bca2['length'];_0x4bdc7b++){if(0x0==_0x54bca2[_0x4bdc7b]['length'])continue;const _0x16a8b6=[];for(let _0x1efc31=_0x4bdc7b+0x1;_0x1efc31<_0x54bca2['length'];_0x1efc31++)0x0!=_0x54bca2[_0x1efc31]['length']&&_0x58011a(_0x54bca2[_0x4bdc7b],_0x54bca2[_0x1efc31])&&_0x16a8b6['push'](_0x1efc31);for(const _0x3cbc82 of _0x16a8b6)_0x54bca2[_0x4bdc7b]=_0x54bca2[_0x4bdc7b]['concat'](_0x54bca2[_0x3cbc82]),_0x54bca2[_0x3cbc82]=[];}for(const _0x1fb200 of _0x54bca2)for(let _0x4e1bca=0x0;_0x4e1bca<_0x1fb200['length'];_0x4e1bca++){const _0x22c17f=_0x1fb200[_0x4e1bca+0x1]||null;_0x1fb200[_0x4e1bca]['next']!==_0x22c17f&&(_0x1fb200[_0x4e1bca]['next']=_0x22c17f);}for(const _0x35bd45 of _0x54bca2)for(let _0x476b9d=0x0;_0x476b9d<_0x35bd45['length'];_0x476b9d++){const _0x540ca1=_0x35bd45[_0x476b9d-0x1]||null;_0x35bd45[_0x476b9d]['previous']!==_0x540ca1&&(_0x35bd45[_0x476b9d]['previous']=_0x540ca1);}function _0x58011a(_0x184c2e,_0x223194){if(_0x184c2e[0x0]['attributes']['groupId']!==_0x223194[0x0]['attributes']['groupId']&&_0x184c2e[0x0]['author']!==_0x223194[0x0]['author'])return!0x1;if(!function(_0x139324,_0x53c3e8){if(!_0x139324['hasComments']&&!_0x53c3e8['hasComments'])return!0x0;if(_0x139324['hasComments']&&_0x53c3e8['hasComments'])return!0x1;if(_0x139324['hasComments']&&_0x53c3e8['createdAt']<_0x139324['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x53c3e8['hasComments']&&_0x139324['createdAt']<_0x53c3e8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x184c2e[0x0],_0x223194[0x0]))return!0x1;const _0x511546=Jt(_0x184c2e[0x0]['attributes'],['groupId','trackingSessionId']),_0x144a18=Jt(_0x223194[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x536774(_0x511546,_0x144a18))return!0x1;if(_0x184c2e[0x0]['attributes']['groupId']==_0x223194[0x0]['attributes']['groupId'])return!0x0;if(_0x184c2e[0x0]['attributes']['trackingSessionId']!==_0x223194[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x184c2e['every'](_0x59e964=>_0x223194['some'](_0x2e4ff1=>_0x59e964['getFirstRange']()['isEqual'](_0x2e4ff1['getFirstRange']())))&&_0x223194['every'](_0xd1e6b7=>_0x184c2e['some'](_0x14803c=>_0xd1e6b7['getFirstRange']()['isEqual'](_0x14803c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x549ad7){const _0x393efd=Array['from'](_0x549ad7),_0x1ad38b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x351348=_0x1ad38b['filter'](_0x172602=>!_0x549ad7['has'](_0x172602)),_0x415541=new Map(_0x393efd['map'](_0x1455b3=>[_0x1455b3,this['_suggestionFactory']['getSuggestionCallback'](_0x1455b3['type'],_0x1455b3['subType'],'join')])),_0xf057ea=new Map(_0x1ad38b['map'](_0x2e10b4=>[_0x2e10b4,_0x2e10b4['getRanges']()]));for(let _0x4b5ec4=0x0;_0x4b5ec4<_0x393efd['length'];_0x4b5ec4++){if(_0x29ae82(this,_0x393efd[_0x4b5ec4],_0x393efd,_0x4b5ec4+0x1))return!0x0;}for(let _0x11a18a=0x0;_0x11a18a<_0x393efd['length'];_0x11a18a++){if(_0x29ae82(this,_0x393efd[_0x11a18a],_0x351348,0x0))return!0x0;}return!0x1;function _0x29ae82(_0x355181,_0x5f19a7,_0x467a9d,_0x106abc){for(let _0x26f5ab=_0x106abc;_0x26f5ab<_0x467a9d['length'];_0x26f5ab++){const _0x3d48b9=_0x467a9d[_0x26f5ab];if(_0x3d48b9['type']!==_0x5f19a7['type']||_0x3d48b9['author']['id']!==_0x5f19a7['author']['id']||_0x3d48b9['subType']!==_0x5f19a7['subType'])continue;if(!ne(_0x5f19a7,_0x3d48b9))continue;if('attribute'==_0x5f19a7['type']&&_0x5f19a7['data']['oldValue']!=_0x3d48b9['data']['oldValue'])continue;if('attribute'==_0x5f19a7['type']&&_0x355181['_isBlockAttribute'](_0x5f19a7['data']['key']))continue;if('formatBlock'==_0x5f19a7['type']){const _0x3acba3=_0x355181['editor']['model'],_0x498f37=_0x5f19a7['getContainedElement']();if(_0x498f37&&(_0x3acba3['schema']['isObject'](_0x498f37)||_0x3acba3['schema']['isLimit'](_0x498f37)))continue;}const _0x35d5a0=_0x415541['get'](_0x5f19a7),_0x106c60=_0xf057ea['get'](_0x5f19a7),_0x5d4cdb=_0xf057ea['get'](_0x3d48b9),_0x2ab2c0=_0x5f19a7['commentThread']&&_0x5f19a7['commentThread']['length'],_0x42cef6=_0x3d48b9['commentThread']&&_0x3d48b9['commentThread']['length'];if(!_0x2ab2c0&&_0x35d5a0(_0x5d4cdb,_0x106c60))return _0x355181['_joinSuggestions'](_0x3d48b9,_0x5f19a7),_0xf057ea['delete'](_0x5f19a7),!0x0;if(!_0x42cef6&&_0x35d5a0(_0x106c60,_0x5d4cdb))return _0x355181['_joinSuggestions'](_0x5f19a7,_0x3d48b9),_0xf057ea['delete'](_0x3d48b9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2e1317,_0x50a9bd){if(_0x2e1317['isMultiRange']){for(const _0x600475 of _0x50a9bd['getRanges']())_0x2e1317['addRange'](_0x600475);}else{const _0x30c31b=_0x50a9bd['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2e1317,this['_model']['createRange'](_0x2e1317['getFirstRange']()['start'],_0x30c31b));}_0x50a9bd['removeMarkers']();}['_getMarkerAnnouncementText'](_0x57e244,_0x534c89,_0x39ab58){const _0x292b4c=_0x57e244['startsWith']('format')||_0x57e244['startsWith']('attribute')?'FORMATTING':_0x57e244['toUpperCase']();return o(this['editor']['locale'],_0x534c89+'_'+_0x292b4c+'_SUGGESTION_ANNOUNCEMENT',_0x39ab58);}['_initAriaMarkerChangeAnnouncements'](){const _0x15bda0=this['editor'];if(!_0x15bda0['ui'])return;const {ariaLiveAnnouncer:_0x4b442d}=_0x15bda0['ui'];_0x597178(this['_model'],({left:_0x313392,entered:_0x51c24e})=>{for(const _0x3c6ea1 of _0x313392){const {group:_0xb26bc6,type:_0x30e898}=this['_splitMarkerName'](_0x3c6ea1['name']);if('suggestion'===_0xb26bc6){_0x4b442d['announce'](this['_getMarkerAnnouncementText'](_0x30e898,'LEAVE'));break;}}for(const _0x551621 of _0x51c24e){const {group:_0x2431ee,type:_0x557f1b}=this['_splitMarkerName'](_0x551621['name']);if('suggestion'===_0x2431ee){_0x4b442d['announce'](this['_getMarkerAnnouncementText'](_0x557f1b,'ENTER',_0x28d4d9(_0x42f22b)));break;}}});}['_processAttributeChanges'](_0x54b2f6){if(this['_recordAttributeSuggestions'])return!0x1;const _0xe52106=this['editor'],_0x8233ca=_0xe52106['model']['document']['differ']['getChanges']();if(0x0==_0x8233ca['length'])return!0x1;const _0x127a4b=[],_0x48a0fd=_0x8233ca['filter'](_0x22bd43=>'attribute'==_0x22bd43['type']),_0x74fe05=_0x8233ca['filter'](_0x1a4862=>'insert'==_0x1a4862['type']&&'$text'!=_0x1a4862['name']),_0x2fdd27=_0x8233ca['filter'](_0x5c6f10=>'remove'==_0x5c6f10['type']&&'$text'!=_0x5c6f10['name']);for(const _0x5136d8 of _0x48a0fd)_0x127a4b['push']({'key':_0x5136d8['attributeKey'],'newValue':_0x5136d8['attributeNewValue'],'oldValue':_0x5136d8['attributeOldValue'],'range':te(_0x5136d8['range'],_0xe52106['model'])});for(const _0x51ec8d of _0x74fe05){const _0x407182=_0x2fdd27['find'](_0x1fdbff=>_0x1fdbff['position']['isEqual'](_0x51ec8d['position']));_0x407182&&_0x127a4b['push']({'key':m,'newValue':_0x51ec8d['name'],'oldValue':_0x407182['name'],'range':_0xe52106['model']['createRangeOn'](_0x51ec8d['position']['nodeAfter'])});}return 0x0!=_0x127a4b['length']&&this['_reduceExistingSuggestions'](_0x54b2f6,_0x127a4b);}['_processAttributeSuggestions'](_0x5a3082){let _0xd47cd6=!0x1;const _0x1719ad=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2cb9b2=>_0x2cb9b2['data']['newRange']&&_0x2cb9b2['name']['startsWith']('suggestion:attribute:'));for(const _0x13183c of _0x1719ad){const {subType:_0xafecb9,id:_0x30a580}=this['_splitMarkerName'](_0x13183c['name']),_0x2ee08c=_0xafecb9['split']('|')[0x0];for(const _0xd3bb25 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xd3bb25['id']!=_0x30a580&&'attribute'==_0xd3bb25['type']&&_0xd3bb25['data']&&_0xd3bb25['data']['key']==_0x2ee08c&&_0xd3bb25['getFirstRange']()['isIntersecting'](_0x13183c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xd3bb25,_0x13183c['data']['newRange'],_0x5a3082),_0xd47cd6=!0x0);}return _0xd47cd6;}['recordAttributeChanges'](_0x25032c){this['_recordAttributeSuggestions']=!0x0,_0x25032c();}['_isRegisteredAttribute'](_0x2788fe){const _0x56ade0=this['_isBlockAttribute'](_0x2788fe),_0x1d403c=this['_isInlineAttribute'](_0x2788fe);return _0x56ade0||_0x1d403c;}['_reduceExistingSuggestions'](_0x446ad1,_0x373bba){if(0x0==_0x373bba['length'])return!0x1;let _0x4d3638=!0x1;for(const _0x3bf5f1 of _0x373bba){const _0x4be79c=this['_findSuggestions'](_0x3bf5f1['range'],'attribute')['filter'](_0x1de3a8=>!_0x1de3a8['meta']['isNextTo'])['map'](_0x3c129a=>_0x3c129a['suggestion']),_0x3abaaf=_0x4541a7({'newValue':_0x3bf5f1['newValue']});_0x4be79c['filter'](_0x3236b3=>{const [_0x1fa368,_0x221b28]=_0x3236b3['subType']['split']('|');return _0x1fa368==_0x3bf5f1['key']&&_0x221b28!=_0x3abaaf;})['forEach'](_0x2fa5b3=>{this['_reduceSuggestionAttributeRange'](_0x2fa5b3,_0x3bf5f1['range'],_0x446ad1),_0x4d3638=!0x0;});}return _0x4d3638;}['_reduceSuggestionAttributeRange'](_0x18961e,_0x127350,_0x1c3ee3){const _0x3d1f4c=_0x18961e['getFirstRange']()['getDifference'](_0x127350);0x0!==_0x3d1f4c['length']?0x1!==_0x3d1f4c['length']?this['_breakSuggestionMarker'](_0x18961e,_0x127350['start'],_0x127350['end']):this['_setSuggestionRange'](_0x18961e,_0x3d1f4c[0x0]):_0x1c3ee3['removeMarker'](_0x18961e['getFirstMarker']());}}class Kt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4d067e){this['_editor']=_0x4d067e,this['_model']=_0x4d067e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1b133e,_0x5d3a64,_0x22a5f3,_0x1b415f,_0xd8d8a3,_0x38e92f,_0x594a89){return new R(this['_model'],{'type':_0x1b133e,'subType':_0x5d3a64,'id':_0x22a5f3,'originalSuggestionId':_0x594a89,'author':_0x1b415f,'creator':_0x1b415f,'attributes':_0xd8d8a3,'onAttributesChange':_0x38e92f,'onAccept':(..._0x53b5b5)=>this['getSuggestionCallback'](_0x1b133e,_0x5d3a64,'accept')(..._0x53b5b5),'onDiscard':(..._0x535d69)=>this['getSuggestionCallback'](_0x1b133e,_0x5d3a64,'discard')(..._0x535d69)});}['registerCustomCallback'](_0xdab1be,_0x4490d3,_0x106aef,_0xdae7e1){const _0xdda15d=_0xdab1be+':'+_0x4490d3+':'+_0x106aef;this['_customCallbacks']['set'](_0xdda15d,_0xdae7e1);}['getSuggestionCallback'](_0x28f71,_0x391d6b,_0x979d39){const _0x18604c=_0x28f71+':'+_0x391d6b+':'+_0x979d39;return this['_customCallbacks']['get'](_0x18604c)||this['_defaultCallbacks']['get'](_0x28f71+':'+_0x979d39);}['_registerDefaultCallbacks'](){const _0x354591=()=>!0x1,_0x13f2c0=_0x33dd34=>{_0x33dd34['sort']((_0x13a1d3,_0x4dd5a1)=>_0x13a1d3['start']['isBefore'](_0x4dd5a1['start'])?0x1:-0x1),this['_model']['change'](_0x107df4=>{for(const _0x5aa263 of _0x33dd34){let _0x4fd5d2;_0x4fd5d2=_0x5aa263['end']['isAtEnd']&&_0x5aa263['end']['parent']==_0x5aa263['start']['nodeAfter']?_0x107df4['createSelection'](_0x5aa263['start']['nodeAfter'],'on'):_0x107df4['createSelection'](_0x5aa263),this['_model']['deleteContent'](_0x4fd5d2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x21f607=(_0x1724c4,_0x1a750b)=>{_0x1a750b&&this['_model']['change'](_0x3a94ac=>{const {commandName:_0x28bbd1,commandParams:_0x42f3bd=[]}=_0x1a750b,_0x2e1765=_0x1724c4['map'](_0xd3cb24=>(Ht(_0xd3cb24)&&(_0xd3cb24=this['_model']['createRange'](_0xd3cb24['end'])),_0xd3cb24))['filter'](_0x2eb183=>'$graveyard'!==_0x2eb183['root']['rootName']);if(_0x2e1765['length']<0x1)return;const _0x645473=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1c75a5=>_0x4be877['fromRange'](_0x1c75a5));_0x3a94ac['setSelection'](_0x2e1765);for(const _0x1d8dda of this['_editor']['commands']['commands']())_0x1d8dda['refresh']();_0x42f3bd['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x28bbd1,..._0x42f3bd);const _0x35af66=_0x645473['filter'](_0x2d9f63=>'$graveyard'!=_0x2d9f63['root']['rootName']);_0x35af66['length']>0x0&&_0x3a94ac['setSelection'](_0x35af66);for(const _0x5d1212 of _0x645473)_0x5d1212['detach']();});},_0x126f83=(_0x1f2740,_0x25a435)=>0x1==_0x1f2740['length']&&0x1==_0x25a435['length']&&_0x1f2740[0x0]['end']['isEqual'](_0x25a435[0x0]['start']),_0x2f90ea=(_0x19a668,_0x43c7b7,_0x20a91f,_0x54c50b)=>ie(_0x19a668,_0x43c7b7,_0x20a91f,_0x54c50b)?[_0x19a668,_0x43c7b7]:ie(_0x43c7b7,_0x19a668,_0x54c50b,_0x20a91f)?[_0x43c7b7,_0x19a668]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x354591),this['_defaultCallbacks']['set']('insertion:discard',_0x13f2c0),this['_defaultCallbacks']['set']('insertion:join',_0x126f83),this['_defaultCallbacks']['set']('insertion:chain',_0x2f90ea),this['_defaultCallbacks']['set']('deletion:accept',_0x13f2c0),this['_defaultCallbacks']['set']('deletion:discard',_0x354591),this['_defaultCallbacks']['set']('deletion:join',_0x126f83),this['_defaultCallbacks']['set']('deletion:chain',_0x2f90ea),this['_defaultCallbacks']['set']('formatInline:accept',_0x21f607),this['_defaultCallbacks']['set']('formatInline:discard',_0x354591),this['_defaultCallbacks']['set']('formatInline:join',_0x126f83),this['_defaultCallbacks']['set']('formatInline:chain',_0x354591),this['_defaultCallbacks']['set']('formatBlock:accept',_0x21f607),this['_defaultCallbacks']['set']('formatBlock:discard',_0x354591),this['_defaultCallbacks']['set']('formatBlock:join',_0x126f83),this['_defaultCallbacks']['set']('formatBlock:chain',_0x354591),this['_defaultCallbacks']['set']('attribute:accept',_0x354591),this['_defaultCallbacks']['set']('attribute:discard',(_0x2da55e,_0x287d2e)=>{if(!_0x287d2e)return;const _0x4c3fcb=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4ea7d9=>{if(_0x287d2e['key']==m)for(const _0x4d91a9 of _0x2da55e){const _0x2acb83=_0x4d91a9['start']['nodeAfter'],_0x2fd49b=_0x287d2e['oldValue'];_0x4ea7d9['rename'](_0x2acb83,_0x2fd49b);}else{if(_0x4c3fcb['_isBlockAttribute'](_0x287d2e['key'])){for(const _0x1f4b49 of _0x2da55e)void 0x0!==_0x287d2e['oldValue']?_0x4ea7d9['setAttribute'](_0x287d2e['key'],_0x287d2e['oldValue'],_0x1f4b49['start']['nodeAfter']):_0x4ea7d9['removeAttribute'](_0x287d2e['key'],_0x1f4b49['start']['nodeAfter']);}else{for(const _0x3f48b8 of _0x2da55e)_0x287d2e['oldValue']?_0x4ea7d9['setAttribute'](_0x287d2e['key'],_0x287d2e['oldValue'],_0x3f48b8):_0x4ea7d9['removeAttribute'](_0x287d2e['key'],_0x3f48b8);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x126f83);}}function qt(_0x279663,_0x17aff5,_0x4c6c6f){for(const _0x42c827 of _0x17aff5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x42c827['root']==_0x42c827)return!0x1;if(!_0x4c6c6f['containsItem'](_0x42c827))return!0x1;if(_0x279663['isObject'](_0x42c827)||_0x279663['isLimit'](_0x42c827))return!0x0;}return!0x1;}function Ht(_0x54ed56){return _0x54ed56['end']['parent']==_0x54ed56['start']['nodeAfter']&&_0x54ed56['end']['isAtStart'];}function Wt(_0x1ac1bc,_0x4def50,_0x45b8ec,_0x19b103){const _0x3f5bbb=_0x421cdb=>!_0x421cdb['item']['is']('$textProxy')&&!_0x19b103['isObject'](_0x421cdb['item']),_0x1773b1=_0x1ac1bc['start']['getLastMatchingPosition'](_0x3f5bbb),_0x443f96=_0x1ac1bc['end']['getLastMatchingPosition'](_0x3f5bbb,{'direction':'backward'});return(!_0x1ac1bc['start']['isEqual'](_0x1773b1)||!_0x1ac1bc['end']['isEqual'](_0x443f96))&&(_0x1773b1['isBefore'](_0x443f96)?_0x45b8ec['updateMarker'](_0x4def50,{'range':_0x45b8ec['createRange'](_0x1773b1,_0x443f96)}):_0x45b8ec['removeMarker'](_0x4def50),!0x0);}function zt(_0x19736a){return _0x4541a7(_0x19736a);}function Qt(_0x442017){const _0x185f6=_0x442017['start']['nodeAfter'];return _0x185f6&&_0x185f6['is']('element');}function Xt(_0x5299a3){return Ht(_0x5299a3)||function(_0x2e2014){return _0x2e2014['start']['parent']==_0x2e2014['end']['nodeBefore']&&_0x2e2014['start']['isAtEnd'];}(_0x5299a3);}function Yt(_0x1c43a0,_0x1fadfc){try{const _0x4fd812=_0x1c43a0['getRange']();for(const _0x3c0c55 of _0x1fadfc)if(_0x1c43a0!==_0x3c0c55&&_0x4fd812&&_0x4fd812['isIntersecting'](_0x3c0c55['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x5613a1,_0x436ead){const _0x293968=_0x5613a1['end']['nodeBefore'];if(_0x293968&&_0x293968['is']('element')&&_0x436ead['schema']['isBlock'](_0x293968)&&!_0x436ead['schema']['isObject'](_0x293968)){const _0x26c983=_0x436ead['createPositionAt'](_0x293968,'end');return _0x436ead['createRange'](_0x5613a1['start'],_0x26c983);}return _0x5613a1;}function te(_0x1c66c1,_0x2dfc0d){return null==_0x1c66c1['end']['nodeBefore']&&_0x1c66c1['end']['parent']==_0x1c66c1['start']['nodeAfter']?ee(_0x1c66c1['start']['nodeAfter'],_0x2dfc0d):_0x1c66c1;}function ee(_0x34316e,_0x3a82f4){const _0x25a673=_0x3a82f4['schema']['isObject'](_0x34316e)||_0x3a82f4['schema']['isSelectable'](_0x34316e);return _0x3a82f4['createRange'](_0x3a82f4['createPositionAt'](_0x34316e,'before'),_0x25a673?_0x3a82f4['createPositionAfter'](_0x34316e):_0x3a82f4['createPositionAt'](_0x34316e,'end'));}function ie(_0x1f74a9,_0x13bfe0,_0x74f1d8,_0x630a22){return!!ne(_0x1f74a9,_0x13bfe0)&&_0x74f1d8['end']['isEqual'](_0x630a22['start']);}function ne(_0x3626f8,_0x178878){if(!_0x3626f8['_isDataLoaded']||!_0x178878['_isDataLoaded'])return!0x1;const _0x38c8da=new Set(Object['keys'](_0x3626f8['attributes'])),_0x5ebf1b=new Set(Object['keys'](_0x178878['attributes']));if(_0x38c8da['delete']('groupId'),_0x5ebf1b['delete']('groupId'),0x0==_0x38c8da['size']&&0x0==_0x5ebf1b['size'])return!0x0;if(_0x38c8da['size']!=_0x5ebf1b['size'])return!0x1;const _0x5c8575={..._0x3626f8['attributes']},_0x88fa9f={..._0x178878['attributes']};return delete _0x5c8575['groupId'],delete _0x88fa9f['groupId'],JSON['stringify'](_0x5c8575)==JSON['stringify'](_0x88fa9f);}function se(_0x3aa757,_0x20aaa9){const _0x4d96ae=oe(_0x3aa757['attributes']),_0x3c3cb6=oe(_0x20aaa9);if(!_0x3aa757['_isDataLoaded'])return!0x1;for(const _0x26940f of Object['keys'](_0x3c3cb6))if(!_0x536774(_0x4d96ae[_0x26940f],_0x3c3cb6[_0x26940f]))return!0x1;return!0x0;}function oe(_0x115426){const _0x2df3b8=Object['assign']({},_0x115426);return delete _0x2df3b8['skipNestingCheck'],delete _0x2df3b8['tablePasteChainId'],_0x2df3b8;}function re(_0x1e39ca){return _0x1e39ca['split']('|')[0x0];}function ae(_0x31090e,_0x2bc9ef){for(const [_0x1cda9d,_0x17fb6e]of _0x31090e['markers']){const _0x7837f1=_0x5f7bdb['_createFromRanges'](_0x17fb6e['getTransformedByOperation'](_0x2bc9ef));_0x31090e['markers']['set'](_0x1cda9d,_0x7837f1);}}class ve extends/* #__PURE__ -- @preserve */
26
+ _0x3a6ae7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x231b13,_0x4663ed,_0x220efa,_0x2cdbf7){super(),this['model']=_0x4663ed,this['view']=_0x220efa,this['commentThreadController']=_0x2cdbf7,this['_editor']=_0x231b13,this['_acceptCommand']=_0x231b13['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x231b13['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5348e2,_0xd181c2)=>_0x5348e2||_0xd181c2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x45ec17=>_0x45ec17&&this['_editor']['model']['canEditAt'](_0x4663ed['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x55393f=>_0x55393f&&this['_editor']['model']['canEditAt'](_0x4663ed['getRanges']())),this['_pendingAction']=null,_0x220efa['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x220efa,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x220efa,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x220efa,'change:isDirty',()=>{_0x220efa['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 _0x3803c7=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3803c7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2ee879{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x237d76,_0x5ac603,_0x25d440,_0x5c92af){super(_0x237d76),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x54dcd9(_0x237d76,o(_0x237d76,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5ac603['authoredAt']),this['bind']('authoredAt')['to'](_0x5ac603),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',_0x5ac603,'authoredAt',this,'descriptionParts',(_0x4091a3,_0x4118e5,_0xaf03e9)=>{const _0x661c7f=_0xaf03e9['map'](_0xa5dbb3=>ls(_0xa5dbb3['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4091a3-0x1,_0x5ac603['author']['name'],_0x4118e5?_0x5c92af['formatDateTime'](_0x4118e5):'',new DOMParser()['parseFromString'](_0x661c7f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x91f988(),this['focusTracker']=new _0x442301(),this['keystrokes']=new _0x499590(),this['focusCycler']=new _0x332554({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x355381=>_0x355381['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5ac603,this['_localUser']=_0x25d440,this['_config']=_0x5c92af,_0x5c92af['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3be0d4(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5654cc}=this['_config'];this['commentsListView']=new _0x5654cc(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',_0x163e1f=>_0x163e1f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x36bead,_0x33d308)=>_0x36bead||!!_0x33d308);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5c18c0}=this['_config'],_0x6f4b3f=new _0x5c18c0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x427439=_0x6f4b3f['commentInputView'];return _0x6f4b3f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x427439,'value',(_0x1e8ee6,_0x2a9f21,_0x7edfee)=>!!_0x7edfee||_0x1e8ee6&&!_0x2a9f21),_0x427439['on']('submit',(_0x1e480c,_0x17901a)=>{this['fire']('addComment',_0x17901a),_0x427439['editor']['setData']('');}),_0x427439['on']('cancel',()=>this['focus']()),_0x427439['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x6f4b3f;}}class xe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x25484c,_0x479565,_0x2b516a,_0x4ba2d4){super(_0x25484c,_0x479565,_0x2b516a,_0x4ba2d4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x48b3b1=>_0x48b3b1&&_0x48b3b1[0x0]?_0x48b3b1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4439e8,_0x2eea59)=>{let _0x49d40f='';for(const _0x53a9d7 of _0x4439e8)_0x49d40f+='<p>'+ls(_0x53a9d7['content'],_0x53a9d7['color'])+'</p>';return _0x2eea59?_0x49d40f:_0x470f00(_0x49d40f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4ba2d4['SuggestionView'](_0x25484c,_0x479565,{'formatDateTime':_0x4ba2d4['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 _0x139f27=this['bindTemplate'],_0x319d14=[this['suggestionView']];return this['commentsListView']&&_0x319d14['push'](this['commentsListView']),this['commentThreadInputView']&&_0x319d14['push'](this['commentThreadInputView']),_0x319d14['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x139f27['if']('isActive','ck-suggestion-wrapper--active'),_0x139f27['to']('type',_0x2331f0=>'ck-suggestion-'+_0x2331f0),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':_0x139f27['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x319d14};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class Ae extends _0x2ee879{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x27c4dd,_0x2b4b51,_0x162070){super(_0x27c4dd),this['_model']=_0x2b4b51,this['_config']=_0x162070,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2b4b51),this['acceptButton']=this['_createButton'](o(_0x27c4dd,'Accept\x20suggestion'),_0xaabd73,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x27c4dd,'Discard\x20suggestion'),_0x288d61,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1bc305(_0x27c4dd,_0x2b4b51['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x91f988([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x442301(),this['keystrokes']=new _0x499590(),this['focusCycler']=new _0x332554({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3845f6=>_0x3845f6['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2a93b9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2a93b9['innerHTML']=this['description'],this['on']('change:description',(_0x2f7d70,_0x5dee91,_0x9d6296)=>{_0x2a93b9['innerHTML']=_0x9d6296;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x529221=this['bindTemplate'],_0x741ced=[{'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':_0x529221['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x529221['to']('authoredAt',_0x3d29a1=>this['_config']['formatDateTime'](_0x3d29a1))}]}]},{'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']&&_0x741ced['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':_0x741ced}]};}['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'](_0x351e58,_0x5e93e2,_0x4ea68b,_0xb3405f,_0x33e97a){const _0x240411=new _0x34548f(this['locale']);return _0x240411['set']({'label':_0x351e58,'icon':_0x5e93e2,'tooltip':!0x0,'tooltipPosition':_0x33e97a}),_0x240411['extendTemplate']({'attributes':{'class':_0x4ea68b}}),_0x240411['on']('execute',()=>{this['fire'](_0xb3405f,this['_model']['id']);}),_0x240411;}['_setupKeyboardNavigation'](){const _0x3a0a10=this['element'];this['keystrokes']['listenTo'](_0x3a0a10);for(const _0x15183f of this['focusables'])this['focusTracker']['add'](_0x15183f['element']),this['keystrokes']['listenTo'](_0x15183f['element']);this['keystrokes']['set']('enter',(_0x3e4ce1,_0x46c771)=>{_0x3a0a10===_0x3e4ce1['target']&&(this['focusCycler']['focusFirst'](),_0x46c771());}),this['keystrokes']['set']('esc',(_0xb6d4f7,_0x36b05f)=>{_0x3a0a10!==_0xb6d4f7['target']&&(this['focus'](),_0x36b05f());});}}class u extends _0xa1bc5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x17e1d7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38076d){super(_0x38076d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x159c61=this['editor']['config'];_0x159c61['define']('trackChanges.SuggestionThreadView',xe),_0x159c61['define']('trackChanges.SuggestionView',Ae),_0x159c61['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x159c61['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xa8eec2,_0x50ebf5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xba5f26,_0x405a76]of this['_handleControllerBuffer']){const _0x49bf28=this['_suggestionToController']['has'](_0xba5f26);_0x49bf28||_0x405a76?_0x49bf28&&_0x405a76&&this['_destroyController'](_0xba5f26):this['_initializeController'](_0xba5f26);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xa8eec2,_0x50ebf5);}['init'](){const _0x5180a3=this['editor'],_0x3e02c6=_0x5180a3['plugins']['get']('TrackChangesEditing'),_0x38ebbd=_0x5180a3['plugins']['get']('Annotations'),_0x56a7bc=_0x5180a3['plugins']['get']('EditorAnnotations'),_0x4fcff5=_0x5180a3['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x56a7bc['addSourceCollector'](()=>{const _0xd610f1=[];for(const [_0x7451da,_0x5e54c6]of Array['from'](this['_suggestionToController'])){const _0x3fa6d0=_0x7451da['getAllAdjacentSuggestions'](),_0x2cbd0a=[];for(const _0x1d4458 of _0x3fa6d0){if(!_0x1d4458['isInContent'])continue;if(_0x1d4458['isMultiRange']){_0x2cbd0a['push'](..._0x1d4458['getRanges']());continue;}const _0x3bd66b=_0x1d4458['getFirstRange']();if(_0x2cbd0a['length']>0x0){const _0xdbb6b=_0x2cbd0a[0x0]['getJoined'](_0x3bd66b);if(_0xdbb6b){_0x2cbd0a[0x0]=_0xdbb6b;continue;}}_0x2cbd0a['push'](_0x3bd66b);}_0xd610f1['push']([_0x5e54c6['view'],_0x2cbd0a]);}return _0xd610f1;}),this['listenTo'](_0x3e02c6,'suggestionLoaded',(_0x2e5acb,_0x4917db)=>{this['listenTo'](_0x4917db,'change:previous',(_0x2e49db,_0x160972,_0x1899de,_0x4387f1)=>{_0x4917db['isInContent']&&(null==_0x1899de?(this['_updateController'](_0x4387f1['head']),this['_handleSuggestionControllerDelayed'](_0x4917db,!0x1)):(this['_updateController'](_0x1899de['head']),null==_0x4387f1&&this['_handleSuggestionControllerDelayed'](_0x4917db,!0x0)));}),null!==_0x4917db['previous']?this['_updateController'](_0x4917db['head']):this['_handleSuggestionControllerDelayed'](_0x4917db,!0x1);}),this['listenTo'](_0x3e02c6,'suggestionUnloaded',(_0x320615,_0x2c4a84,_0x26aabd)=>{this['stopListening'](_0x2c4a84,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2c4a84),this['_suggestionToController']['has'](_0x2c4a84)&&this['_destroyController'](_0x2c4a84),_0x26aabd&&this['_updateController'](_0x26aabd['head']);}),this['listenTo'](_0x3e02c6,'suggestionChanged',(_0x51ab08,_0x221c03)=>{this['_updateController'](_0x221c03);}),this['listenTo'](_0x38ebbd,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4fcff5,'addComment',(_0x1c732d,{threadId:_0x5c50a9,isFromAdapter:_0x8856fd})=>{if(_0x8856fd||!_0x3e02c6['hasSuggestion'](_0x5c50a9))return;const _0x4a7085=_0x3e02c6['getSuggestion'](_0x5c50a9);this['_suggestionToController']['get'](_0x4a7085)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a2661=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x41133e;for(const _0xdd3531 in _0x5a2661){const _0x4cd6a5=_0xdd3531,_0x5a0635=_0x5a2661[_0x4cd6a5];if('trackChangesLicenseKeyValid'==_0x5a0635||'trackChangesLicenseKeyInvalid'==_0x5a0635||'trackChangesLicenseKeyExpired'==_0x5a0635||'trackChangesLicenseKeyDomainLimit'==_0x5a0635||'trackChangesLicenseKeyNotAllowed'==_0x5a0635||'trackChangesLicenseKeyEvaluationLimit'==_0x5a0635||'trackChangesLicenseKeyTrialLimit'==_0x5a0635||'trackChangesLicenseKeyUsageLimit'==_0x5a0635){delete _0x5a2661[_0x4cd6a5],_0x41133e=_0x5a0635,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x41133e&&_0x5a2661['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x41133e&&_0x5a2661['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x41133e&&_0x5a2661['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x41133e&&_0x5a2661['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x41133e&&_0x5a2661['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x41133e&&_0x5a2661['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x41133e&&_0x5a2661['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x17de86){const _0x27d80d=this['_suggestionToController']['get'](_0x17de86);if(!_0x27d80d)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x27d80d['view'])||null;}['getSuggestionForAnnotation'](_0x537579){const _0x681e68=this['_viewToController']['get'](_0x537579['innerView']);return _0x681e68?_0x681e68['model']:null;}['_refreshActiveMarkers'](){const _0x19d8d4=this['editor']['plugins']['get']('Annotations'),_0x2bb7f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e8f31=Array['from'](_0x19d8d4['activeAnnotations'],_0x3f044a=>_0x3f044a['innerView'])['filter'](_0x1a412d=>this['_viewToController']['has'](_0x1a412d)),_0x23eefe=[];for(const _0x386f9e of _0x5e8f31){const _0x154c54=this['_viewToController']['get'](_0x386f9e)['model']['getAllAdjacentSuggestions']();_0x23eefe['push'](..._0x154c54['reduce']((_0x1d0e20,_0x15b7de)=>[..._0x1d0e20,..._0x15b7de['getMarkerNames']()],[]));}_0x2bb7f2['activeMarkers']=_0x23eefe;}['_addUIComponentsToFactory'](){const _0x43d6d6=this['editor'],_0x248e27=_0x43d6d6['locale'],_0x5b224b=o(_0x248e27,'Track\x20changes'),_0x457c57=new _0x3e5c62([{'type':'switchbutton','model':new _0xa115c1({'withText':!0x0,'isToggleable':!0x0,'label':_0x5b224b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xa115c1({'withText':!0x0,'label':o(_0x248e27,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xa115c1({'withText':!0x0,'label':o(_0x248e27,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xa115c1({'withText':!0x0,'label':o(_0x248e27,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xa115c1({'withText':!0x0,'label':o(_0x248e27,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x43d6d6['plugins']['has']('TrackChangesPreview')&&_0x457c57['addMany']([{'type':'separator'},{'type':'button','model':new _0xa115c1({'withText':!0x0,'label':o(_0x248e27,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5836e3 of _0x457c57)if(Ee(_0x5836e3)){const _0x5b2863=_0x43d6d6['commands']['get'](_0x5836e3['model']['commandName']);_0x5836e3['model']['bind']('isOn','isEnabled')['to'](_0x5b2863,'value','isEnabled');}_0x43d6d6['ui']['componentFactory']['add']('trackChanges',_0x1d2ef4=>this['_createToolbarButton'](_0x1d2ef4,_0x457c57,_0x5b224b)),_0x43d6d6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x343032=>this['_createMenuBarMenu'](_0x343032,_0x457c57,_0x5b224b));}['_createToolbarButton'](_0x455fd7,_0x52588f,_0x3e643a){const _0xf703ac=_0x473cb2(_0x455fd7,_0x3001c7),_0x2b0ece=this['editor']['commands']['get']('trackChanges');_0xf703ac['buttonView']['set']({'tooltip':_0x3e643a,'label':_0x3e643a,'icon':_0xeffbe7}),_0xf703ac['buttonView']['bind']('isOn')['to'](_0x2b0ece,'value'),_0xf703ac['buttonView']['on']('execute',()=>{_0x2b0ece['execute'](),this['editor']['editing']['view']['focus']();}),_0xe0c6a1(_0xf703ac,_0x52588f,{'role':'menu'});const _0x1ec188=[];for(const _0x24ab2c of _0x52588f)Ee(_0x24ab2c)&&_0x1ec188['push'](this['editor']['commands']['get'](_0x24ab2c['model']['commandName']));const _0x44fdb2=_0xf703ac['buttonView'];return _0x44fdb2['actionView']['unbind']('isEnabled'),_0x44fdb2['arrowView']['unbind']('isEnabled'),_0x44fdb2['actionView']['bind']('isEnabled')['to'](_0x2b0ece,'isEnabled'),_0x44fdb2['arrowView']['bind']('isEnabled')['toMany'](_0x1ec188,'isEnabled',(..._0x51867f)=>_0x51867f['some'](_0x17e29d=>_0x17e29d)),_0xf703ac['on']('execute',_0x52c50b=>{this['editor']['execute'](_0x52c50b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xf703ac;}['_createMenuBarMenu'](_0x5de81b,_0x4fe4e4,_0xe9d0a6){const _0x1c07cf=new _0x1482b8(_0x5de81b),_0x289221=this['editor']['commands']['get']('trackChanges');_0x1c07cf['buttonView']['set']({'label':_0xe9d0a6,'icon':_0xeffbe7});const _0xee419e=new _0x5b21d0(_0x5de81b);for(const _0x49ef04 of _0x4fe4e4){if('separator'==_0x49ef04['type']){_0xee419e['items']['add'](new _0x399a0e(_0x5de81b));continue;}const _0x55e906=new _0x6bd1d1(_0x5de81b,_0x1c07cf),_0x1d162d=new _0xc067cc(_0x5de81b),_0x299a49=_0x49ef04['model'];_0x1d162d['bind'](...Object['keys'](_0x299a49))['to'](_0x299a49),_0x1d162d['delegate']('execute')['to'](_0x1c07cf),_0x1d162d['on']('execute',()=>{this['editor']['execute'](_0x299a49['commandName']),this['editor']['editing']['view']['focus']();}),_0x55e906['children']['add'](_0x1d162d),_0xee419e['items']['add'](_0x55e906);}return _0x1c07cf['bind']('isEnabled')['to'](_0x289221,'isEnabled'),_0x1c07cf['panelView']['children']['add'](_0xee419e),_0x1c07cf;}['_initializeController'](_0x2ca056){const _0x308cd1=this['editor'],_0x2cf850=_0x308cd1['config'],_0x4a96a2=_0x308cd1['plugins']['get']('Annotations'),_0x2b9ed0=_0x308cd1['plugins']['get']('CommentsRepository'),_0x1929df=_0x308cd1['plugins']['get']('EditorAnnotations'),_0x5391a5=_0x308cd1['plugins']['get'](_0x17e1d7)['me'],_0x41f783=_0x2cf850['get']('trackChanges')['SuggestionThreadView'],_0x659c92=_0x2cf850['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x301100,CommentThreadInputView:_0x160d0c}=_0x308cd1['plugins']['get']('CommentsUI');let _0x298efd,_0x2f2109,_0x54b0c;this['_annotationViews']['has'](_0x2ca056['id'])?(_0x2f2109=this['_annotationViews']['get'](_0x2ca056['id']),_0x298efd=_0x2f2109['mainView']):(_0x298efd=new _0x41f783(_0x308cd1['locale'],_0x2ca056,_0x5391a5,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2cf850['get']('comments.editorConfig'),'licenseKey':_0x2cf850['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2cf850['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2cf850['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2cf850['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xc3ecd3(_0x2cf850['get']('locale'),_0x308cd1['locale']),'CommentView':_0x2cf850['get']('comments')['CommentView'],'CommentsListView':_0x301100,'CommentThreadInputView':_0x160d0c,'SuggestionView':_0x659c92}),_0x298efd['suggestionView']['acceptButton']['on']('execute',()=>{_0x308cd1['editing']['view']['focus']();}),_0x298efd['suggestionView']['discardButton']['on']('execute',()=>{_0x308cd1['editing']['view']['focus']();}),_0x2f2109=_0x4a96a2['createAnnotationView'](this['editor']['locale'],_0x298efd),_0x2f2109['bind']('isDirty')['to'](_0x298efd,'isDirty'),_0x2f2109['bind']('length')['to'](_0x298efd),_0x2f2109['bind']('type')['to'](_0x298efd,'type',_0x597808=>'suggestion-'+_0x597808),_0x298efd['on']('escape',()=>{_0x54b0c['fire']('escape');}),this['_annotationViews']['set'](_0x2ca056['id'],_0x2f2109));const _0xfc78bc=_0x2b9ed0['createCommentThreadController'](_0x2ca056['commentThread'],_0x298efd),_0x3d96fa=new ve(_0x308cd1,_0x2ca056,_0x298efd,_0xfc78bc),_0x21f664=_0x2ca056['getAllAdjacentSuggestions']()['filter'](_0x5aa963=>_0x5aa963['isInContent']);_0x298efd['descriptionParts']=_0x308cd1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x21f664),this['_suggestionToController']['set'](_0x2ca056,_0x3d96fa),this['_viewToController']['set'](_0x298efd,_0x3d96fa);const _0x23d2e6=()=>{const _0x529f3a=[],_0x27b6d6=_0x2ca056['getAllAdjacentSuggestions']()['filter'](_0x39e15f=>_0x39e15f['isInContent']);for(const _0x54fe66 of _0x27b6d6)_0x529f3a['push'](..._0x54fe66['getMarkers']());return _0x487f9d(_0x308cd1['editing'],_0x529f3a);};_0x54b0c=_0x4a96a2['createAnnotation']({'view':_0x2f2109,'target':_0x23d2e6,'type':()=>'suggestion-'+_0x3d96fa['view']['type'],'isVisible':!!_0x23d2e6()}),_0x2b9ed0['_bindAnnotationToEditors'](_0x298efd,_0x54b0c),_0x4a96a2['add'](_0x54b0c),_0x1929df['registerAnnotation'](_0x54b0c);}['_destroyController'](_0x251f14){const _0x33be73=this['editor']['plugins']['get']('CommentsRepository'),_0x168b95=this['editor']['plugins']['get']('Annotations'),_0x56b461=this['_suggestionToController']['get'](_0x251f14),_0x282cf7=_0x56b461['view'],_0x130b72=_0x168b95['getByInnerView'](_0x282cf7);_0x33be73['_unbindEditors'](_0x282cf7),_0x130b72&&_0x168b95['remove'](_0x130b72),this['_suggestionToController']['delete'](_0x251f14),this['_viewToController']['delete'](_0x282cf7),_0x56b461['destroy']();}['_updateController'](_0x38f27e){if(!_0x38f27e['isInContent']||!this['_suggestionToController']['has'](_0x38f27e))return;const _0x2dda64=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5396ac=this['_suggestionToController']['get'](_0x38f27e),_0x49acd7=_0x38f27e['getAllAdjacentSuggestions']();_0x5396ac['view']['descriptionParts']=_0x2dda64['descriptionFactory']['getDescriptions'](_0x49acd7);}['destroy'](){for(const _0x2d157e of this['_suggestionToController']['keys']())this['_destroyController'](_0x2d157e);for(const _0x2eefcd of this['_annotationViews']['values']())_0x2eefcd['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ee(_0x23aa0f){return'model'in _0x23aa0f;}class Ke extends _0xa1bc5{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5b0b2a){this['editor']['plugins']['get'](d)['adapter']=_0x5b0b2a;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x472439){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x472439);}['getSuggestions']({skipNotAttached:_0x323d90=!0x1,toJSON:_0x5a2dce=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x323d90,'toJSON':_0x5a2dce});}['getSuggestion'](_0x2d7c38){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x2d7c38);}}const p=['Pagination'];class me extends _0xa1bc5{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x302714=this['editor'];if(_0x302714['config']['define']('trackChangesData.editorCreator',_0x192bfc=>{const _0x206c1e=_0x302714['model']['document']['getRootNames']()['reduce']((_0x15cb18,_0x4b8488)=>(_0x15cb18[_0x4b8488]='',_0x15cb18),{});return _0x302714['constructor']['create'](_0x206c1e,_0x192bfc);}),'function'!=typeof _0x302714['config']['get']('trackChangesData')['editorCreator'])throw new _0x2e1b6b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xdb1d05){return P(this['editor'],!0x0,_0xdb1d05);}['getDataWithDiscardedSuggestions'](_0x39433d){return P(this['editor'],!0x1,_0x39433d);}}class Xe extends _0xa1bc5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58ab09){function _0x451302(_0x2a4216){return _0x2a4216['map'](_0x1f9084=>String['fromCharCode'](_0x1f9084))['join']('');}super(_0x58ab09),this['result']='end',_0x58ab09[_0x451302([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x451302([0x76,0x69,0x65,0x77])][_0x451302([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x451302([0x61,0x75,0x74,0x6f]),_0x58ab09[_0x451302([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x451302([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x451302([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x451302([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x451302([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ye(_0x475daf){return void 0x0!==_0x475daf['getRootsAttributes'];}async function P(_0x35cb00,_0x4203ab,_0x477eba){const _0x4ca9e6=_0x397105(_0x35cb00,p);_0x4ca9e6['plugins']['push'](d,Xe),_0x4ca9e6['rootsAttributes']=Ye(_0x35cb00)?_0x35cb00['getRootsAttributes']():void 0x0;const _0x338d9c=document['createDocumentFragment'](),_0x17e9ae=_0x35cb00['config']['get']('trackChangesData')['editorCreator'],_0x2214f0=await _0x17e9ae(_0x4ca9e6,()=>function(_0x616887){const _0x5153a5=document['createElement']('div');return _0x616887['appendChild'](_0x5153a5),_0x5153a5;}(_0x338d9c));!function(_0x107d20,_0x47981b){const _0xef7054=_0x107d20['model']['document']['getRootNames']()['reduce']((_0x515df5,_0x413c33)=>(_0x515df5[_0x413c33]=_0x107d20['data']['get']({'rootName':_0x413c33}),_0x515df5),{}),_0x400610=_0x107d20['plugins']['get']('Users')['users']['map'](_0x1f470a=>({'id':_0x1f470a['id'],'name':_0x1f470a['name']})),_0x35fcb3=_0x107d20['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1e4907=_0x107d20['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x385155=_0x47981b['plugins']['get']('Users'),_0x406f81=_0x47981b['plugins']['get']('TrackChangesEditing'),_0x1182c9=_0x47981b['plugins']['get']('CommentsRepository');for(const _0x480043 of _0x1182c9['getCommentThreads']())_0x480043['remove']();for(const _0x2ce0b4 of _0x400610)_0x385155['getUser'](_0x2ce0b4['id'])||_0x385155['addUser'](_0x2ce0b4);_0x385155['me']||_0x385155['useAnonymousUser']();for(const _0x22f8fe of _0x1e4907)_0x1182c9['addCommentThread'](_0x22f8fe);for(const _0x139ee9 of _0x35fcb3)_0x406f81['addSuggestionData'](_0x139ee9);_0x47981b['data']['set'](_0xef7054);}(_0x35cb00,_0x2214f0),_0x2214f0['execute'](_0x4203ab?'acceptAllSuggestions':'discardAllSuggestions');const _0x111863=Ye(_0x2214f0)?_0x2214f0['getFullData'](_0x477eba):_0x2214f0['data']['get'](_0x477eba);return await _0x2214f0['destroy'](),_0x111863;}class _e extends _0x2ee879{['options'];constructor(_0x57f503,_0x4ef0d1){super(_0x57f503),this['options']=_0x4ef0d1,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'](_0x9164f8,_0x516fc2){if(!this['element'])return;const _0x28526b=[];for(const [_0xbc0524,_0x2f9d30]of _0x9164f8){const _0x12af8c=document['createElement']('div');_0x12af8c['setAttribute']('data-ck-root-name',_0xbc0524),_0x12af8c['className']=_0x2f9d30['classes']+'\x20ck-track-changes-preview__root-container',_0x12af8c['innerHTML']=_0x2f9d30['content'],_0x28526b['push'](_0x12af8c);}_0x516fc2(this['element'],_0x28526b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ue extends _0x11456d{constructor(_0x84b53a){super(_0x84b53a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x206d7e=this['editor'],_0x5c7478=_0x206d7e['locale'],_0x2575b3=_0x206d7e['plugins']['get']('Dialog');let _0x2736af;const _0x311b06=function(_0x317a7d){const _0x2acd6f={};if('editables'in _0x317a7d['ui']['view']){for(const [_0x21be8d,_0x2a4fdb]of Object['entries'](_0x317a7d['ui']['view']['editables']))_0x2acd6f[_0x21be8d]=_0x2a4fdb['element'];}else _0x2acd6f[_0x317a7d['model']['document']['getRootNames']()[0x0]]=_0x317a7d['ui']['view']['editable']['element'];return _0x2acd6f;}(_0x206d7e),_0x726dcf=function(_0x51866d){let _0xd335c7=0x0;for(const _0x1574b1 of Object['values'](_0x51866d))_0xd335c7=Math['max'](_0xd335c7,_0x1574b1['getBoundingClientRect']()['width']);let _0xd5103f=0x0;for(const _0x441253 of Object['values'](_0x51866d))_0xd5103f+=_0x441253['getBoundingClientRect']()['height'];const _0xbe8175=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x307c91=Math['min'](_0xd5103f,_0xbe8175);return{'width':_0xd335c7,'height':_0x307c91};}(_0x311b06);_0x2575b3['show']({'id':'finalContentPreview','title':o(_0x5c7478,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x5c7478,{'dialogRects':_0x726dcf}),'onHide':()=>{_0x2736af['detachFromDom']();},'onShow':()=>{_0x206d7e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1dcab5=>{const _0x54cbff=this['_standarizeRootsData'](_0x1dcab5,_0x206d7e,_0x311b06);_0x2575b3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x54cbff,_0x206d7e['config']['get']('trackChanges.preview.renderFunction'));}),_0x2736af=new _0x4068fa(_0x5c7478,[_0x2575b3['view']]),_0x2736af['attachToDom'](),_0x2736af['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x206d7e['once']('destroy',()=>{_0x2736af['detachFromDom']();});const _0x22788c=_0x2575b3['view']['headerView']['class'];_0x2575b3['view']['headerView']['class']=_0x22788c?_0x22788c+'\x20ck-reset_all':'ck-reset_all',_0x2575b3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2575b3['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x34b47f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1c6fde=_0x34b47f['previewMode'],_0x2ebf5={};if('$labels'===_0x1c6fde){for(const _0x5165df of _0x34b47f['getMergeFieldsIds']())_0x2ebf5[_0x5165df]=_0x34b47f['getLabel'](_0x5165df)||_0x5165df;}else{const _0x37a450='$defaultValues'===_0x1c6fde?_0x34b47f['getDefaultValues']():_0x34b47f['getDataSetValues'](_0x1c6fde,!0x0);for(const _0x547473 of Object['entries'](_0x37a450)){const [_0x5e4f97,_0x405070]=_0x547473;_0x2ebf5[_0x5e4f97]=null!==_0x405070?_0x405070:_0x34b47f['getLabel'](_0x5e4f97)||_0x5e4f97;}}return{'mergeFieldsData':_0x2ebf5};}['_standarizeRootsData'](_0x5cc149,_0x3e9543,_0x141991){let _0x4f706d;if('string'==typeof _0x5cc149){const _0x82be09=_0x3e9543['model']['document']['getRootNames']()[0x0];_0x4f706d={[_0x82be09]:_0x5cc149};}else _0x4f706d=_0x5cc149;const _0x3ec440=this['_fixMediaEmbeds'](_0x4f706d,_0x3e9543),_0x4ecaee=function(_0x1a994d,_0x189ec1){for(const [_0xe0f3c4,_0x3c9cb8]of _0x1a994d)_0x3c9cb8['classes']=_0x189ec1[_0xe0f3c4]['classList']['value']['replace']('ck-focused','');return _0x1a994d;}(this['_sortRoots'](_0x3e9543)['reduce']((_0x18e3e9,_0x3700b7)=>(_0x18e3e9['push']([_0x3700b7,{'content':_0x3ec440[_0x3700b7],'classes':''}]),_0x18e3e9),[]),_0x141991);return _0x4ecaee;}['_fixMediaEmbeds'](_0x5103b6,_0x4d3e10){if(!_0x4d3e10['plugins']['has']('MediaEmbedEditing'))return _0x5103b6;const _0x4719bc=_0x4d3e10['plugins']['get']('MediaEmbedEditing');for(const [_0x55f25e,_0x18999e]of Object['entries'](_0x5103b6)){const _0x218e62=document['createElement']('div');_0x218e62['innerHTML']=_0x18999e,(_0x218e62['querySelectorAll']('figure.media')['forEach'](_0x230565=>{const _0x20768e=_0x230565['querySelector']('oembed');if(_0x20768e){const _0x1d7ee7=_0x20768e['getAttribute']('url');if(_0x1d7ee7){const _0x560361=_0x4719bc['registry']['getMediaViewElement'](new _0x149119(_0x4d3e10['editing']['view']['document']),_0x1d7ee7,{'elementName':'','renderForEditingView':!0x0}),_0x3b6950=document['createElement']('div');_0x3b6950['classList']['add']('ck-media__wrapper'),_0x560361['render'](_0x3b6950,_0x4d3e10['editing']['view']['domConverter']),_0x20768e['replaceWith'](_0x3b6950);}}}),_0x5103b6[_0x55f25e]=_0x218e62['innerHTML']);}return _0x5103b6;}['_sortRoots'](_0x57456e){if(!function(_0x59c7f9){return void 0x0!==_0x59c7f9['getRootsAttributes'];}(_0x57456e))return _0x57456e['model']['document']['getRootNames']();const _0x3d5809=[],_0x3a7f21=new Map();for(const _0x177c63 of _0x57456e['model']['document']['getRootNames']()){const _0x30ea2a=_0x57456e['editing']['view']['getDomRoot'](_0x177c63)['getClientRects']()['item'](0x0);_0x3d5809['push'](_0x177c63),_0x3a7f21['set'](_0x177c63,_0x30ea2a);}return _0x3d5809['sort']((_0x7c687d,_0x4ac410)=>{const _0x545d5e=_0x3a7f21['get'](_0x7c687d),_0x356a04=_0x3a7f21['get'](_0x4ac410);return _0x545d5e['y']-_0x356a04['y']||_0x545d5e['x']-_0x356a04['x'];}),_0x3d5809;}}class Qe extends _0xa1bc5{static get['requires'](){return[me,_0x5d80f4];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x156cfd){super(_0x156cfd),_0x156cfd['commands']['add']('previewFinalContent',new ue(this['editor'])),_0x156cfd['config']['define']('trackChanges.preview.renderFunction',(_0x51bd5c,_0x2c772c)=>{for(const _0x5cde22 of _0x2c772c)_0x51bd5c['appendChild'](_0x5cde22);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ue as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,xe as SuggestionThreadView,Ae as SuggestionView,Ke as TrackChanges,B as TrackChangesCommand,me as TrackChangesData,Xe as TrackChangesDataGetter,d as TrackChangesEditing,Qe as TrackChangesPreview,u as TrackChangesUI};