@ckeditor/ckeditor5-track-changes 44.2.1-alpha.0 → 44.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  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/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +25 -25
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/previewfinalcontentcommand.js +1 -1
  153. package/src/commands/trackchangescommand.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/integrations/aiassistant.js +1 -1
  156. package/src/integrations/alignment.js +1 -1
  157. package/src/integrations/basicstyles.js +1 -1
  158. package/src/integrations/blockquote.js +1 -1
  159. package/src/integrations/bookmark.js +1 -1
  160. package/src/integrations/casechange.js +1 -1
  161. package/src/integrations/ckbox.js +1 -1
  162. package/src/integrations/codeblock.js +1 -1
  163. package/src/integrations/comments.js +1 -1
  164. package/src/integrations/deletecommand.js +1 -1
  165. package/src/integrations/emoji.js +1 -1
  166. package/src/integrations/entercommand.js +1 -1
  167. package/src/integrations/findandreplace.js +1 -1
  168. package/src/integrations/font.js +1 -1
  169. package/src/integrations/formatpainter.js +1 -1
  170. package/src/integrations/heading.js +1 -1
  171. package/src/integrations/highlight.js +1 -1
  172. package/src/integrations/horizontalline.js +1 -1
  173. package/src/integrations/htmlembed.js +1 -1
  174. package/src/integrations/image.js +1 -1
  175. package/src/integrations/imagereplace.js +1 -1
  176. package/src/integrations/imagestyle.js +1 -1
  177. package/src/integrations/importword.js +1 -1
  178. package/src/integrations/indent.js +1 -1
  179. package/src/integrations/inputcommand.js +1 -1
  180. package/src/integrations/legacylist.js +1 -1
  181. package/src/integrations/legacylistproperties.js +1 -1
  182. package/src/integrations/link.js +1 -1
  183. package/src/integrations/list.js +1 -1
  184. package/src/integrations/listproperties.js +1 -1
  185. package/src/integrations/mediaembed.js +1 -1
  186. package/src/integrations/mention.js +1 -1
  187. package/src/integrations/mergefields.js +1 -1
  188. package/src/integrations/multilevellist.js +1 -1
  189. package/src/integrations/pagebreak.js +1 -1
  190. package/src/integrations/paragraph.js +1 -1
  191. package/src/integrations/removeformat.js +1 -1
  192. package/src/integrations/replacesourcecommand.js +1 -1
  193. package/src/integrations/restrictededitingmode.js +1 -1
  194. package/src/integrations/shiftentercommand.js +1 -1
  195. package/src/integrations/standardeditingmode.js +1 -1
  196. package/src/integrations/style.js +1 -1
  197. package/src/integrations/table.js +1 -1
  198. package/src/integrations/tablecaption.js +1 -1
  199. package/src/integrations/tableclipboard.js +1 -1
  200. package/src/integrations/tablecolumnresize.js +1 -1
  201. package/src/integrations/tableheadings.js +1 -1
  202. package/src/integrations/tablemergesplit.js +1 -1
  203. package/src/integrations/tableofcontents.js +1 -1
  204. package/src/integrations/tableproperties.js +1 -1
  205. package/src/integrations/template.js +1 -1
  206. package/src/integrations/title.js +1 -1
  207. package/src/integrations/undo.js +1 -1
  208. package/src/integrations/uploadcare.js +1 -1
  209. package/src/integrations/utils.js +1 -1
  210. package/src/suggestion.js +2 -2
  211. package/src/suggestiondescriptionfactory.js +1 -1
  212. package/src/trackchanges.js +1 -1
  213. package/src/trackchangesdata.js +1 -1
  214. package/src/trackchangesediting.js +1 -1
  215. package/src/trackchangespreview.js +1 -1
  216. package/src/trackchangesui.js +1 -1
  217. package/src/ui/suggestioncontroller.js +2 -2
  218. package/src/ui/view/basesuggestionthreadview.js +1 -1
  219. package/src/ui/view/suggestionthreadview.js +1 -1
  220. package/src/ui/view/suggestionview.js +1 -1
  221. package/src/ui/view/trackchangespreviewview.js +1 -1
  222. package/src/utils/common-translations.js +1 -1
  223. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Yt,Plugin as _0x3b6a96,PendingActions as _0x2edff2,icons as _0x3be9a2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5e7b1c,ObservableMixin as _0x5dafa9,uid as _0x42a68b,priorities as _0x45202f,insertToPriorityArray as _0x382009,logWarning as _0x43f625,getEnvKeystrokeText as _0x18904c,FocusTracker as _0x389f82,KeystrokeHandler as _0x42d792,Collection as _0x38066d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x164a1a,View as _0x438d77,ViewCollection as _0x310ce4,FocusCycler as _0x1038ae,ViewModel as _0x13b983,createDropdown as _0x1adfcd,SplitButtonView as _0x4d8b05,addListToDropdown as _0x19a3f9,MenuBarMenuView as _0x4b2de6,MenuBarMenuListView as _0x3dd24d,ListSeparatorView as _0xd93d6d,MenuBarMenuListItemView as _0x115ee8,MenuBarMenuListItemButtonView as _0x5a64f7,BodyCollection as _0x50b542,Dialog as _0x409a42}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x58d047,hashObject as _0x3d15d9,surroundingMarkersDetector as _0x29ed23,FOCUS_ANNOTATION_KEYSTROKE as _0x4d04d6,AriaDescriptionView as _0x47fc0e,setupThreadKeyboardNavigation as _0x4eeeba,trimHtml as _0x4a0fbd,UserView as _0x5bda4a,LateFocusButtonView as _0x5e49fa,getDateTimeFormatter as _0x4b7818,getAllMarkersDomElementsSorted as _0x1df16c,sanitizeEditorConfig as _0x3547f2}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1c665d,LiveRange as _0x4f6ba5,LivePosition as _0x2719a2,DowncastWriter as _0x3dc4c2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3d73e1,toWidget as _0x59695c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2e8e85,set as _0x222a9f,isEqual as _0x351c09,unset as _0x591239,omit as Vt}from'lodash-es';import{Delete as _0x2272f2,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x49dcc7,ShiftEnter as _0x4b8f8b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x2d9811,_0x1b7ace){super(_0x2d9811),this['_enabledCommands']=_0x1b7ace,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 _0x5cd09e of this['editor']['commands']['commands']())_0x5cd09e['affectsData']&&!this['_enabledCommands']['has'](_0x5cd09e)&&_0x5cd09e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1f6c12 of this['editor']['commands']['commands']())_0x1f6c12['affectsData']&&!this['_enabledCommands']['has'](_0x1f6c12)&&_0x1f6c12['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x17a8dd,_0x1bd38d){super(_0x17a8dd),this['_suggestions']=_0x1bd38d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5d7b59){const _0x316ac3=this['_suggestions']['get'](_0x5d7b59);if(!_0x316ac3)throw new _0x5e7b1c('track-changes-accept-suggestion-not-found',this);const _0x42a1e2=_0x316ac3['getRanges']();this['editor']['model']['canEditAt'](_0x42a1e2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x316ac3);}}class R extends Yt{['_suggestions'];constructor(_0xa25599,_0x5bc8ac){super(_0xa25599),this['_suggestions']=_0x5bc8ac,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4abdcc){const _0x178323=this['_suggestions']['get'](_0x4abdcc);if(!_0x178323)throw new _0x5e7b1c('track-changes-discard-suggestion-not-found',this);const _0x5d2d41=_0x178323['getRanges']();this['editor']['model']['canEditAt'](_0x5d2d41)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x178323);}}function cs(_0x5bffd2,_0x2954a9){let _0x4b21df='';return _0x4b21df+=_0x5bffd2['split']('*')['map']((_0x3ee83b,_0xfaeeb8)=>_0xfaeeb8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3ee83b)+'</span>':nn(_0x3ee83b))['join'](''),_0x2954a9&&(_0x4b21df+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2954a9['value']+'\x22\x20title=\x22'+_0x2954a9['title']+'\x22></span>'),_0x4b21df;}function nn(_0x41f8d4){const _0xa52c75=document['createElement']('span');return _0xa52c75['innerText']=_0x41f8d4,_0xa52c75['innerHTML'];}function Zt(_0x37c009){return _0x37c009['sort']((_0x43da77,_0x59f252)=>'deletion'==_0x43da77['type']&&'deletion'!=_0x59f252['type']?-0x1:'deletion'!=_0x43da77['type']&&'deletion'==_0x59f252['type']?0x1:0x0);}function to(_0x398a3b,_0x1b758b){let _0x1b19f9,_0x29351d=0x0;const _0x2f3d38=[],_0x91e224=_0x1b758b['schema'];for(;_0x29351d<_0x398a3b['length'];){const _0x563a7a=_0x398a3b[_0x29351d],_0x219f42=_0x398a3b[_0x29351d+0x1];_0x1b19f9||(_0x1b19f9=_0x1b758b['createPositionBefore'](_0x563a7a)),on(_0x1b758b,_0x563a7a,_0x219f42)||(_0x2f3d38['push'](_0x1b758b['createRange'](_0x1b19f9,_0x91e224['isObject'](_0x563a7a)?_0x1b758b['createPositionAfter'](_0x563a7a):_0x1b758b['createPositionAt'](_0x563a7a,'end'))),_0x1b19f9=null),_0x29351d++;}return _0x2f3d38;}function on(_0x100ee9,_0x24a16c,_0x52396c){if(!_0x52396c)return!0x1;const _0x411602=_0x100ee9['createPositionAfter'](_0x24a16c),_0xc9dcf6=_0x100ee9['createPositionBefore'](_0x52396c);return _0x411602['isTouching'](_0xc9dcf6);}function ts(_0x41e0c2,_0x10d78f,_0x21a5d2){for(;_0x21a5d2['length'];){const _0x1e7d69=_0x21a5d2['splice'](0x0,0x64);_0x41e0c2['change'](()=>{for(const _0x4659c9 of _0x1e7d69)_0x4659c9['isInContent']&&_0x10d78f['execute'](_0x4659c9['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x5e2406,_0x3e91a7,_0x118b82){super(_0x5e2406),this['_command']=_0x3e91a7,this['_suggestions']=_0x118b82,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x286de7=Array['from'](this['_suggestions']['values']())['some'](_0x1b49ef=>_0x1b49ef['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x286de7;}['execute'](){const _0x15199f=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x32978e of _0x15199f){const _0x5b9698=_0x32978e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5b9698))return;}ts(this['editor']['model'],this['_command'],_0x15199f);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4d04c9,_0x2d10e2,_0x15b809){super(_0x4d04c9),this['_command']=_0x2d10e2,this['_suggestions']=_0x15b809,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5837e6=this['editor']['model']['document']['selection'],_0x1d3008=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4a669c,_0x24e799){const _0x4f4cb0=Array['from'](_0x4a669c['getRanges']()),_0x3d89e6=new Set();for(const _0x160fb1 of _0x24e799)if(_0x160fb1['isInContent']){for(const _0x2af279 of _0x4f4cb0)for(const _0x26551f of _0x160fb1['getRanges']())(_0x2af279['isIntersecting'](_0x26551f)||_0x4a669c['isCollapsed']&&!_0x160fb1['isMultiRange']&&_0x160fb1['next']&&_0x26551f['end']['isTouching'](_0x2af279['start']))&&_0x3d89e6['add'](_0x160fb1);}return _0x3d89e6;}(_0x5837e6,_0x1d3008),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5b6310=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x325fa6 of _0x5b6310){const _0x5d4e9c=_0x325fa6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5d4e9c))return;}ts(this['editor']['model'],this['_command'],_0x5b6310);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x5dafa9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x42bdff,_0x3b8e36){super(),this['id']=_0x3b8e36['id'],this['type']=_0x3b8e36['type'],this['subType']=_0x3b8e36['subType']||null,this['author']=_0x3b8e36['author'],this['creator']=_0x3b8e36['creator']||_0x3b8e36['author'],this['isExternal']=Boolean(_0x3b8e36['attributes']&&_0x3b8e36['attributes']['@external']),this['data']=null,this['_model']=_0x42bdff,this['_onAccept']=_0x3b8e36['onAccept'],this['_onDiscard']=_0x3b8e36['onDiscard'],this['_onAttributesChange']=_0x3b8e36['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3b8e36['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 _0x5b2157=this;for(;_0x5b2157['previous'];)_0x5b2157=_0x5b2157['previous'];return _0x5b2157;}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'](_0x516f52){this['_markerNames']['add'](_0x516f52);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xf105a4=>this['_model']['markers']['get'](_0xf105a4))['filter'](_0x19b0b3=>_0x19b0b3);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x244dd8=>{for(const _0x5deb3c of this['getMarkers']())_0x244dd8['removeMarker'](_0x5deb3c);}),this['_markerNames']['clear']();}['removeMarker'](_0x579984){this['_model']['change'](_0x1f4dcd=>{_0x1f4dcd['removeMarker'](_0x579984);}),this['_markerNames']['delete'](_0x579984);}['addRange'](_0x2a2e53){const _0x272a75='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x272a75),this['_model']['change'](_0x541ced=>{_0x541ced['addMarker'](_0x272a75,{'range':_0x2a2e53,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x18052f){for(const _0x1ba895 of this['getRanges']())if(_0x1ba895['isIntersecting'](_0x18052f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2cc482=>_0x2cc482['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x163563,_0x2dae42)=>[..._0x163563,..._0x2dae42['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1a7fe4=this['getRanges']();if(0x1!=_0x1a7fe4['length'])return null;const _0x3a749c=_0x1a7fe4[0x0],_0x5a0b0e=_0x3a749c['start']['nodeAfter'],_0x2ac4a2=_0x3a749c['end']['nodeBefore'];return _0x5a0b0e instanceof _0x1c665d?_0x5a0b0e!=_0x2ac4a2?null:_0x5a0b0e: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 _0x1b0dff=[];let _0x341596=this['head'];for(;_0x341596;)_0x1b0dff['push'](_0x341596),_0x341596=_0x341596['next'];return _0x1b0dff;}['setAttribute'](_0x2f278a,_0x284645){const _0x568d6f=_0x2e8e85(this['attributes']);_0x222a9f(_0x568d6f,_0x2f278a,_0x284645),_0x351c09(_0x568d6f,this['attributes'])||(this['attributes']=_0x568d6f,this['_onAttributesChange'](_0x568d6f));}['removeAttribute'](_0xe1d284){const _0x3410d9=_0x2e8e85(this['attributes']);_0x591239(_0x3410d9,_0xe1d284),_0x351c09(_0x3410d9,this['attributes'])||(this['attributes']=_0x3410d9,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 _0x42a68b()['substr'](0x1,0x5);}}function o(_0x392581,_0x32cddd,_0x1b2f83){const _0x56558a=_0x392581['t'],t=_0x392581['t'];switch(_0x32cddd){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',_0x1b2f83);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1b2f83);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1b2f83);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1b2f83);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1b2f83);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',_0x1b2f83);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1b2f83);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',_0x1b2f83);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1b2f83);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1b2f83);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1b2f83);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1b2f83);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1b2f83);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1b2f83);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1b2f83);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1b2f83);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1b2f83);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1b2f83);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1b2f83);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1b2f83);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1b2f83);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1b2f83);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1b2f83);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1b2f83);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'},_0x1b2f83);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1b2f83);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1b2f83);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1b2f83);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1b2f83);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1b2f83);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'},_0x1b2f83);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1b2f83);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1b2f83);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1b2f83);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1b2f83);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'},_0x1b2f83);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1b2f83);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'},_0x1b2f83);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'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'},_0x1b2f83);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1b2f83);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'},_0x1b2f83);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1b2f83);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'},_0x1b2f83);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1b2f83);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1b2f83);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'},_0x1b2f83);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1b2f83);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 _0x56558a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1b2f83);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x56558a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1b2f83);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1b2f83);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'},_0x1b2f83);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'},_0x1b2f83);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'},_0x1b2f83);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x32cddd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x353080,_0x58ff09){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x353080,this['_locale']=_0x58ff09;}['getDescriptions'](_0x451adb){const _0xe19130=[],_0x4f8350=new Set(),_0x36229f=new Set();for(let _0x57aaad=0x0;_0x57aaad<_0x451adb['length'];_0x57aaad++){const _0x55ee84=_0x451adb[_0x57aaad];if(!_0x55ee84['isInContent'])continue;const _0x28c39d=this['_handleCustomCallbackDescription'](_0x55ee84);if(_0x28c39d){if(null!=_0x55ee84['subType']){if(_0x4f8350['has'](_0x55ee84['subType']))continue;_0x4f8350['add'](_0x55ee84['subType']);}_0xe19130['push'](_0x28c39d);}else{if('attribute'!=_0x55ee84['type'])'insertion'!=_0x55ee84['type']&&'deletion'!=_0x55ee84['type']||this['_handleInsertRemoveSuggestionDescription'](_0xe19130,_0x55ee84,_0x451adb[_0x57aaad+0x1]);else{const _0x2da63e=_0x55ee84['data']['key'];if(_0x36229f['has'](_0x2da63e))continue;_0x36229f['add'](_0x55ee84['data']['key']),_0x2da63e==m?this['_handleRenameSuggestionDescription'](_0xe19130,_0x55ee84):this['_handleAttributeSuggestionDescription'](_0xe19130,_0x55ee84);}}}return this['_resolveDescriptionItems'](_0xe19130);}['registerDescriptionCallback'](_0x25736d){this['_customCallbacks']['push'](_0x25736d);}['registerElementLabel'](_0x533968,_0x262df0,_0x5f9d10=_0x45202f['normal']){'function'==typeof _0x533968?_0x382009(this['_itemLabelsCallbacks'],{'matchingCallback':_0x533968,'label':_0x262df0,'priority':_0x5f9d10}):this['_itemLabels']['set'](_0x533968,_0x262df0);}['registerAttributeLabel'](_0x14bdd8,_0x23af3c){this['_attributeLabels']['set'](_0x14bdd8,_0x23af3c);}['getItemLabel'](_0xa64584,_0x152f61=0x1){let _0x1ee595;for(const _0x2ffb38 of this['_itemLabelsCallbacks'])if(_0x2ffb38['matchingCallback'](_0xa64584)){_0x1ee595=_0x2ffb38['label'];break;}return _0x1ee595||(_0x1ee595=this['_itemLabels']['get'](_0xa64584['name'])),_0x1ee595?_0x1ee595(_0x152f61):0x1!==_0x152f61?_0x152f61+'\x20'+_0xa64584['name']+'s':''+_0xa64584['name'];}['_addDescriptionItems'](_0x23f05f,_0x1da10f){const _0x3b3ae1=_0x1da10f['getFirstRange']()['getWalker'](),_0x2ed3d3='insertion'==_0x1da10f['type']?'add':'remove';for(const _0x46df21 of _0x3b3ae1){const _0x5e7219=_0x46df21['item'],_0x4c9dbe=_0x23f05f[_0x23f05f['length']-0x1];if(_0x5e7219['is']('$textProxy'))_0x4c9dbe&&_0x4c9dbe['type']['indexOf']('Container')>-0x1&&_0x23f05f['pop'](),_0x4c9dbe&&'text'==_0x4c9dbe['type']?_0x4c9dbe[_0x2ed3d3]+=_0x5e7219['data']:_0x23f05f['push']({'type':'text','add':'add'==_0x2ed3d3?_0x5e7219['data']:'','remove':'remove'==_0x2ed3d3?_0x5e7219['data']:''});else{if(this['_schema']['isObject'](_0x5e7219)){const _0x40e304=_0x5e7219;if(_0x4c9dbe&&_0x4c9dbe['type']['indexOf']('Container')>-0x1&&_0x23f05f['pop'](),'elementEnd'==_0x46df21['type'])continue;_0x4c9dbe&&_0x4c9dbe['type']==_0x2ed3d3+'Object'&&_0x4c9dbe['element']['name']==_0x40e304['name']?_0x4c9dbe['quantity']++:_0x23f05f['push']({'type':_0x2ed3d3+'Object','element':_0x40e304,'quantity':0x1}),_0x3b3ae1['skip'](_0x1c275a=>!('elementEnd'==_0x1c275a['type']&&_0x1c275a['item']==_0x5e7219));}else{if(this['_schema']['checkChild'](_0x5e7219,'$text')||_0x5e7219['is']('element','softBreak')){const _0x3d277d=_0x5e7219;if('add'==_0x2ed3d3&&'elementStart'==_0x46df21['type']||'remove'==_0x2ed3d3&&'elementEnd'==_0x46df21['type'])continue;if(_0x4c9dbe&&-0x1==_0x4c9dbe['type']['indexOf']('Container')){'text'==_0x4c9dbe['type']&&(_0x4c9dbe[_0x2ed3d3]+='\x0a');continue;}let _0x33eb87;if(_0x33eb87='add'==_0x2ed3d3?_0x3d277d['nextSibling']&&!this['_schema']['isObject'](_0x3d277d['nextSibling'])?_0x3d277d['nextSibling']:null:_0x3d277d['previousSibling']&&!this['_schema']['isObject'](_0x3d277d['previousSibling'])?_0x3d277d['previousSibling']:null,_0x3d277d['isEmpty']||_0x33eb87&&_0x33eb87['isEmpty']){const _0x2b1715=_0x33eb87&&_0x33eb87['isEmpty']?_0x33eb87:_0x3d277d;_0x4c9dbe&&_0x4c9dbe['type']==_0x2ed3d3+'EmptyContainer'&&_0x4c9dbe['element']['name']==_0x2b1715['name']?_0x4c9dbe['quantity']++:_0x23f05f['push']({'type':_0x2ed3d3+'EmptyContainer','element':_0x2b1715,'quantity':0x1});}else _0x23f05f['push']({'type':_0x2ed3d3+'Container','element':_0x3d277d});}}}}}['_resolveDescriptionItems'](_0x39e294){const _0x2da90a=this['_locale'],_0x4a10c3=[],_0x4f07cd=[],_0x1ffb88=[];for(const _0xc9dec9 of _0x39e294)switch(_0xc9dec9['type']){case'text':if(_0xc9dec9['add']=_0xc9dec9['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xc9dec9['remove']=_0xc9dec9['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xc9dec9['add']&&''!=_0xc9dec9['remove']){_0x4a10c3['push']({'type':'replace','content':o(_0x2da90a,'REPLACE_TEXT',['\x22'+_0xc9dec9['remove']+'\x22','\x22'+_0xc9dec9['add']+'\x22'])});continue;}if(null!=_0xc9dec9['add']['match'](/^ +$/)){_0x4a10c3['push']({'type':'insertion','content':o(_0x2da90a,'*Insert:*\x20%0',o(_0x2da90a,'ELEMENT_SPACE',_0xc9dec9['add']['length']))});continue;}if(null!=_0xc9dec9['remove']['match'](/^ +$/)){_0x4a10c3['push']({'type':'deletion','content':o(_0x2da90a,'*Remove:*\x20%0',o(_0x2da90a,'ELEMENT_SPACE',_0xc9dec9['remove']['length']))});continue;}if(''!=_0xc9dec9['add']){_0x4a10c3['push']({'type':'insertion','content':o(_0x2da90a,'*Insert:*\x20%0','\x22'+_0xc9dec9['add']+'\x22')});continue;}_0x4a10c3['push']({'type':'deletion','content':o(_0x2da90a,'*Remove:*\x20%0','\x22'+_0xc9dec9['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4a10c3['push']({'type':'insertion','content':o(_0x2da90a,'*Insert:*\x20%0',this['getItemLabel'](_0xc9dec9['element'],_0xc9dec9['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4a10c3['push']({'type':'deletion','content':o(_0x2da90a,'*Remove:*\x20%0',this['getItemLabel'](_0xc9dec9['element'],_0xc9dec9['quantity']))});continue;case'addContainer':_0x4a10c3['push']({'type':'insertion','content':o(_0x2da90a,'*Split:*\x20%0',this['getItemLabel'](_0xc9dec9['element'],_0xc9dec9['quantity']))});continue;case'removeContainer':_0x4a10c3['push']({'type':'deletion','content':o(_0x2da90a,'*Merge:*\x20%0',this['getItemLabel'](_0xc9dec9['element'],_0xc9dec9['quantity']))});continue;case'addFormat':_0x4f07cd['push'](_0xc9dec9['key']);continue;case'removeFormat':_0x1ffb88['push'](_0xc9dec9['key']);continue;default:_0x4a10c3['push'](_0xc9dec9);}if(_0x4f07cd['length']){const _0x59026c=_0x4f07cd['map'](_0x19160b=>this['_attributeLabels']['has'](_0x19160b)?this['_attributeLabels']['get'](_0x19160b):_0x19160b)['join'](',\x20');_0x4a10c3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x59026c)});}if(_0x1ffb88['length']){const _0x249be1=_0x1ffb88['map'](_0x508226=>this['_attributeLabels']['has'](_0x508226)?this['_attributeLabels']['get'](_0x508226):_0x508226)['join'](',\x20');_0x4a10c3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x249be1)});}return _0x4a10c3;}['_handleCustomCallbackDescription'](_0x4f0f14){for(const _0x197792 of this['_customCallbacks']){const _0x53cbf8=_0x197792(_0x4f0f14);if(_0x53cbf8&&'type'in _0x53cbf8)return _0x53cbf8;}}['_handleAttributeSuggestionDescription'](_0x375ad9,_0x5795b5){const _0x511f7b=_0x5795b5['data'],_0x288e24=void 0x0===_0x511f7b['newValue']?'removeFormat':'addFormat';_0x375ad9['push']({'type':_0x288e24,'key':_0x511f7b['key']});}['_handleRenameSuggestionDescription'](_0x5686e1,_0x3d1bd2){_0x5686e1['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3d1bd2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x55c632,_0x1eab1f,_0x285b5f){if(this['_addDescriptionItems'](_0x55c632,_0x1eab1f),_0x285b5f&&_0x285b5f['getFirstRange']()&&!_0x1eab1f['getFirstRange']()['end']['isEqual'](_0x285b5f['getFirstRange']()['start'])){const _0x3eb75c=_0x55c632[_0x55c632['length']-0x1],_0x129504='insertion'==_0x1eab1f['type']?'add':'remove';_0x3eb75c&&'text'==_0x3eb75c['type']&&(_0x3eb75c[_0x129504]+='\x0a');}}}class U extends _0x3b6a96{['afterInit'](){const _0x4a0111=this['editor'],_0x72cc32=_0x4a0111['plugins']['get']('TrackChangesEditing');_0x4a0111['commands']['get']('showAIAssistant')&&_0x72cc32['enableCommand']('showAIAssistant');}}class V extends _0x3b6a96{['afterInit'](){const _0x41e87a=this['editor'],_0x2eacd8=_0x41e87a['locale'];if(!_0x41e87a['plugins']['has']('AlignmentEditing'))return;const _0x4937d7=_0x41e87a['plugins']['get']('TrackChangesEditing');_0x4937d7['enableDefaultAttributesIntegration']('alignment'),_0x4937d7['registerBlockAttribute']('alignment'),_0x4937d7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2eacd8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15b9b1=this['editor'],_0x4e4834=_0x15b9b1['locale'];_0x15b9b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51f21a=>{if('formatBlock'!=_0x51f21a['type'])return;const {data:_0xdc8cc2}=_0x51f21a;if(_0xdc8cc2&&'alignment'==_0xdc8cc2['commandName']){const _0x18dc30=_0xdc8cc2['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4e4834,'*Format:*\x20%0',function(_0xd61aa1){switch(_0xd61aa1){case'left':return o(_0x4e4834,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4e4834,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4e4834,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4e4834,'FORMAT_JUSTIFY_TEXT');}}(_0x18dc30))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3b6a96{['afterInit'](){const _0x478f82=this['editor'],_0x11cb93=_0x478f82['plugins']['get']('TrackChangesEditing'),_0x5295c0=_0x478f82['locale'];for(const _0x436540 of ti){if(!_0x478f82['plugins']['has'](_0x436540))continue;const _0x4b478d=_0x436540['slice'](0x0,-0x7)['toLowerCase'](),_0x50faa8='FORMAT_'+_0x4b478d['toUpperCase']();_0x11cb93['enableDefaultAttributesIntegration'](_0x4b478d),_0x11cb93['registerInlineAttribute'](_0x4b478d),_0x11cb93['descriptionFactory']['registerAttributeLabel'](_0x4b478d,o(_0x5295c0,_0x50faa8));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a7ff2=this['editor'],_0x3e848a=_0x1a7ff2['locale'],_0x2d5c2d=_0x1a7ff2['plugins']['get']('TrackChangesEditing');function _0x1cfa08(_0x3f3390,_0x41cbf8){_0x2d5c2d['descriptionFactory']['registerDescriptionCallback'](_0x3696e4=>{if('formatInline'!=_0x3696e4['type'])return;const {data:_0x14a7f7}=_0x3696e4;return _0x14a7f7&&_0x14a7f7['commandName']===_0x3f3390?_0x14a7f7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e848a,'*Format:*\x20%0',_0x41cbf8)}:{'type':'format','content':o(_0x3e848a,'*Remove\x20format:*\x20%0',_0x41cbf8)}:void 0x0;});}_0x1cfa08('bold',o(_0x3e848a,'FORMAT_BOLD')),_0x1cfa08('italic',o(_0x3e848a,'FORMAT_ITALIC')),_0x1cfa08('underline',o(_0x3e848a,'FORMAT_UNDERLINE')),_0x1cfa08('code',o(_0x3e848a,'FORMAT_CODE')),_0x1cfa08('strikethrough',o(_0x3e848a,'FORMAT_STRIKETHROUGH')),_0x1cfa08('subscript',o(_0x3e848a,'FORMAT_SUBSCRIPT')),_0x1cfa08('superscript',o(_0x3e848a,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3b6a96{['afterInit'](){const _0x347948=this['editor'],_0x438aec=_0x347948['locale'];if(!_0x347948['plugins']['has']('BlockQuoteEditing'))return;const _0x342b14=_0x347948['plugins']['get']('TrackChangesEditing'),_0x13c0d6=this['editor']['commands']['get']('blockQuote');_0x342b14['enableCommand']('blockQuote',(_0x36b807,_0x2ccc81={})=>{const _0x1fe83a=this['editor']['model']['document']['selection'],_0x46946b=_0x2ccc81&&void 0x0!==_0x2ccc81['forceValue']?_0x2ccc81['forceValue']:!_0x13c0d6['value'];let _0x2c0274=[];if(_0x46946b){const _0x2257e1=Array['from'](_0x1fe83a['getSelectedBlocks']())['filter'](_0x3f8895=>oo(_0x3f8895)||function(_0x2c6302,_0x52827d){const _0x139402=_0x52827d['checkChild'](_0x2c6302['parent'],'blockQuote'),_0x15aa69=_0x52827d['checkChild'](['$root','blockQuote'],_0x2c6302);return _0x139402&&_0x15aa69;}(_0x3f8895,this['editor']['model']['schema']));_0x2c0274=to(_0x2257e1,_0x347948['model']);}else{const _0x6b23b7=Array['from'](_0x1fe83a['getSelectedBlocks']())['filter'](_0x582491=>oo(_0x582491));_0x2c0274=to(_0x6b23b7,_0x347948['model']);}_0x347948['model']['change'](()=>{for(const _0x4d40d7 of _0x2c0274)_0x342b14['markBlockFormat'](_0x4d40d7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x46946b}]});});}),_0x342b14['descriptionFactory']['registerDescriptionCallback'](_0x580406=>{const {data:_0x372fb2}=_0x580406;if(_0x372fb2&&'blockQuote'==_0x372fb2['commandName']){const _0x447291=o(_0x438aec,'ELEMENT_BLOCK_QUOTE');return _0x372fb2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x438aec,'*Set\x20format:*\x20%0',_0x447291)}:{'type':'format','content':o(_0x438aec,'*Remove\x20format:*\x20%0',_0x447291)};}});}}function oo(_0x1fec03){return'blockQuote'==_0x1fec03['parent']['name'];}class L extends _0x3b6a96{['afterInit'](){const _0x2d3996=this['editor'],_0x471c08=_0x2d3996['locale'],_0x2c37f2=_0x2d3996['plugins']['get']('TrackChangesEditing');_0x2d3996['plugins']['has']('BookmarkEditing')&&(_0x2c37f2['enableCommand']('insertBookmark'),_0x2c37f2['enableDefaultAttributesIntegration']('updateBookmark'),_0x2c37f2['registerBlockAttribute']('bookmarkId'),_0x2c37f2['descriptionFactory']['registerDescriptionCallback'](_0x352847=>{if('insertion'!=_0x352847['type']&&'deletion'!=_0x352847['type']&&'attribute'!=_0x352847['type'])return;const _0x488810=_0x352847['getContainedElement']();if(null==_0x488810)return;if(!_0x488810['is']('element','bookmark'))return;const _0x60269b=_0x488810['getAttribute']('bookmarkId');if('insertion'==_0x352847['type'])return{'type':'insertion','content':o(_0x471c08,'*Insert:*\x20%0','\x22'+_0x60269b+'\x22\x20'+o(_0x471c08,'ELEMENT_BOOKMARK'))};if('deletion'==_0x352847['type'])return{'type':'deletion','content':o(_0x471c08,'*Remove:*\x20%0','\x22'+_0x60269b+'\x22\x20'+o(_0x471c08,'ELEMENT_BOOKMARK'))};const {data:_0x3cd01d}=_0x352847;if(!_0x3cd01d||'bookmarkId'!=_0x3cd01d['key'])return;return{'type':'format','content':o(_0x471c08,'*Set\x20bookmark:*\x20%0','\x22'+_0x3cd01d['newValue']+'\x22')};}));}}class J extends _0x3b6a96{['afterInit'](){const _0x3cbc76=this['editor'];_0x3cbc76['plugins']['has']('CaseChange')&&(_0x3cbc76['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3cbc76['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3cbc76['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3b6a96{['afterInit'](){const _0x32f468=this['editor'];_0x32f468['commands']['get']('ckbox')&&_0x32f468['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x3b6a96{['afterInit'](){const _0x56fc1c=this['editor'];if(!_0x56fc1c['plugins']['has']('CodeBlock'))return;const _0x59aab1=_0x56fc1c['plugins']['get']('TrackChangesEditing'),_0x29a2a2=_0x56fc1c['locale'],_0x53913f=_0x56fc1c['config']['get']('codeBlock')['languages'],_0x596f4f=_0x56fc1c['commands']['get']('codeBlock');_0x59aab1['enableCommand']('indentCodeBlock'),_0x59aab1['enableCommand']('outdentCodeBlock'),_0x59aab1['enableCommand']('codeBlock',(_0xec9783,_0x10e038={})=>{const _0x444ee4=_0x56fc1c['model'],_0x22062d=_0x56fc1c['model']['document']['selection'],_0x14815c=_0x10e038&&void 0x0!==_0x10e038['forceValue']?_0x10e038['forceValue']:!_0x596f4f['value'];let _0x1ebdfb;_0x10e038['language']||(_0x10e038['language']=_0x53913f[0x0]['language']),_0x1ebdfb=_0x14815c?Array['from'](_0x22062d['getSelectedBlocks']())['filter'](_0x21a37b=>eo(_0x21a37b)||function(_0x164427,_0x2c2c25){if(_0x164427['is']('rootElement')||_0x2c2c25['isLimit'](_0x164427))return!0x1;return _0x2c2c25['checkChild'](_0x164427['parent'],'codeBlock');}(_0x21a37b,_0x444ee4['schema'])):Array['from'](_0x22062d['getSelectedBlocks']())['filter'](_0x138f35=>eo(_0x138f35));const _0x298699=to(_0x1ebdfb,_0x444ee4);_0x444ee4['change'](()=>{for(const _0x4bda60 of _0x298699)_0x59aab1['markBlockFormat'](_0x4bda60,{'commandName':'codeBlock','commandParams':[{..._0x10e038,'forceValue':_0x14815c}],'formatGroupId':'blockName'});});}),(_0x59aab1['descriptionFactory']['registerElementLabel']('codeBlock',_0x380ebd=>o(_0x29a2a2,'ELEMENT_CODE_BLOCK',_0x380ebd)),_0x59aab1['descriptionFactory']['registerDescriptionCallback'](_0x16ba28=>{if('formatBlock'!=_0x16ba28['type'])return;const _0x1481aa=_0x29a2a2['t'],{data:_0x590172}=_0x16ba28;if(!_0x590172||'codeBlock'!=_0x590172['commandName'])return;const _0x489931=_0x590172['commandParams'][0x0]['language'],_0x40d07c=_0x1481aa(_0x53913f['find'](_0x727e97=>_0x727e97['language']===_0x489931)['label'])['toLowerCase']();return _0x590172['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x29a2a2,'*Set\x20format:*\x20%0',o(_0x29a2a2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x40d07c+')')}:{'type':'format','content':o(_0x29a2a2,'*Remove\x20format:*\x20%0',o(_0x29a2a2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x51ca0a){return'codeBlock'==_0x51ca0a['name'];}class z extends _0x3b6a96{['afterInit'](){const _0x290528=this['editor'];if(!_0x290528['plugins']['has']('CommentsEditing'))return;_0x290528['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x239074,_0x5b461d,_0x57b447){const _0x128bce=[];for(const _0x5db4ac of _0x5b461d['getItems']())_0x5db4ac['hasAttribute'](_0x239074)&&_0x128bce['push'](_0x57b447['createRangeOn'](_0x5db4ac));return _0x128bce;}function De(_0x6647fe,_0x24f6da,{showActiveMarker:_0x375e18=!0x0}={}){const _0x3a7f79=_0x6647fe['plugins']['get']('TrackChangesEditing');return(_0x3f673c,_0x1476b5,_0x3dfb7a)=>{if(!_0x3dfb7a['consumable']['test'](_0x1476b5['markerRange'],_0x3f673c['name']))return;const _0x148a2d=_0x1476b5['markerRange']['getWalker'](),_0x11edc2=_0x1476b5['markerRange']['start'],_0x22baa7=_0x6647fe['model']['schema'];let _0x4691bd=null,_0x2fd40f=null,_0x3a474c=!0x1,_0x26ae28=!0x1;for(const _0x1a58f5 of _0x148a2d){const _0x105759=_0x1a58f5['item'];_0x3a474c=_0x3a474c||_0x22baa7['isContent'](_0x105759);const _0x40c712=_0x3dfb7a['mapper']['toViewElement'](_0x105759);if(_0x40c712&&_0x40c712['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1a58f5['type']&&(_0x22baa7['isBlock'](_0x105759)&&!_0x22baa7['isLimit'](_0x105759)&&(_0x105759['nextSibling']||_0x11edc2['isAtEnd']?_0x4691bd&&_0x4691bd['parent']==_0x105759||(_0x4691bd=_0x105759,_0x4f038e(_0x1a58f5['previousPosition']),_0x26ae28=!0x0):_0x2fd40f=_0x2fd40f||_0x1a58f5['previousPosition']));}function _0x4f038e(_0x277790){const {authorId:_0x580196}=_0x3a7f79['_splitMarkerName'](_0x1476b5['markerName']),_0x411dd6=_0x3dfb7a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x24f6da,'data-author-id':_0x580196}),_0x12e885=_0x3dfb7a['mapper']['toViewPosition'](_0x277790);_0x375e18&&_0x3a7f79['activeMarkers']['includes'](_0x1476b5['markerName'])&&_0x3dfb7a['writer']['addClass']('ck-suggestion-marker--active',_0x411dd6),_0x3dfb7a['writer']['insert'](_0x12e885,_0x411dd6),_0x3dfb7a['mapper']['bindElementToMarker'](_0x411dd6,_0x1476b5['markerName']);}_0x3a474c||_0x26ae28||!_0x2fd40f||_0x4f038e(_0x2fd40f);};}class K extends _0x3b6a96{static get['requires'](){return[_0x2272f2];}['init'](){const _0x1b5000=this['editor'],_0x472d53=_0x1b5000['plugins']['get']('TrackChangesEditing');_0x472d53['enableCommand']('delete');const _0x295cac=_0x1b5000['commands']['get']('deleteForward');_0x472d53['enableCommand']('deleteForward',(_0x3cf70c,_0x49d483={})=>{const _0x5667fc=_0x1b5000['model']['createSelection'](_0x1b5000['model']['document']['selection']);_0x5667fc['isCollapsed']&&_0x1b5000['model']['modifySelection'](_0x5667fc,{'direction':'forward','unit':_0x49d483['unit']});const _0xfcd40b=_0x5667fc['getFirstRange'](),_0x176200=_0x4f6ba5['fromRange'](_0xfcd40b);let _0x4d4a43;_0x3cf70c(_0x49d483),_0x4d4a43='$graveyard'==_0x176200['root']['rootName']?_0x1b5000['model']['createRange'](_0xfcd40b['start']):_0x1b5000['model']['createRange'](_0x176200['start'],_0x176200['end']),_0x176200['detach'](),_0x1b5000['model']['enqueueChange'](_0x295cac['buffer']['batch'],_0x475bd7=>{_0x295cac['buffer']['lock'](),_0x475bd7['setSelection'](_0x475bd7['createRange'](_0x4d4a43['end'])),_0x295cac['buffer']['unlock']();});}),_0x1b5000['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1b5000,'merge'),{'priority':'high'}),_0x1b5000['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x17a5b9,_0x694e91,_0x3d6c5a)=>{_0x3d6c5a['options']['showSuggestionHighlights']&&De(_0x1b5000,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x17a5b9,_0x694e91,_0x3d6c5a);},{'priority':'high'}),_0x1b5000['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x40c671,_0x48000e,_0x33dbcf)=>{const _0x237fe4=_0x33dbcf['mapper']['markerNameToElements'](_0x48000e['markerName']);if(_0x237fe4){for(const _0x99277b of _0x237fe4)_0x99277b['is']('uiElement')&&(_0x33dbcf['mapper']['unbindElementFromMarkerName'](_0x99277b,_0x48000e['markerName']),_0x33dbcf['writer']['remove'](_0x99277b));}},{'priority':'high'});}}class W extends _0x3b6a96{['afterInit'](){const _0x38bc87=this['editor'];if(!_0x38bc87['plugins']['has']('ListEditing'))return;const _0x2d77a9=_0x38bc87['locale'],_0x833841=_0x38bc87['plugins']['get']('TrackChangesEditing'),_0x42a478=_0x38bc87['plugins']['has']('TodoListEditing'),_0x243e8b=!!_0x38bc87['config']['get']('list.multiBlock');function _0x4ff533(_0x4bba40){return{'type':'format','content':''+o(_0x2d77a9,'*Set\x20format:*\x20%0',_0x4bba40)};}function _0x80e6ca(_0x39fc5a){return{'type':'format','content':''+o(_0x2d77a9,'*Remove\x20format:*\x20%0',_0x39fc5a)};}_0x833841['enableDefaultAttributesIntegration']('numberedList'),_0x833841['enableDefaultAttributesIntegration']('bulletedList'),_0x833841['enableDefaultAttributesIntegration']('customNumberedList'),_0x833841['enableDefaultAttributesIntegration']('customBulletedList'),_0x833841['enableDefaultAttributesIntegration']('indentList'),_0x833841['enableDefaultAttributesIntegration']('outdentList'),_0x833841['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x833841['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x833841['registerBlockAttribute']('listItemId'),_0x833841['registerBlockAttribute']('listType'),_0x833841['registerBlockAttribute']('listIndent'),_0x243e8b&&(_0x833841['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x833841['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x42a478&&(_0x833841['enableDefaultAttributesIntegration']('todoList'),_0x833841['enableDefaultAttributesIntegration']('checkTodoList'),_0x833841['registerBlockAttribute']('todoListChecked'),_0x833841['descriptionFactory']['registerDescriptionCallback'](_0x2dc5b4=>{const {data:_0xd8422b}=_0x2dc5b4;if(_0xd8422b&&'todoListChecked'==_0xd8422b['key'])return{'type':'format','content':_0xd8422b['newValue']?o(_0x2d77a9,'*Check\x20item*'):o(_0x2d77a9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x356ba4=>{if(_0x356ba4['batch']['isUndo'])return!0x1;let _0x5d944f=!0x1;const _0x245f84=_0x833841['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50699f=>'todoListChecked'===_0x833841['_getAttributeKey'](_0x50699f));for(const _0x2cda51 of _0x245f84){'todo'!=_0x2cda51['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x833841['_findSuggestions'](_0x2cda51['getFirstRange'](),'attribute')['find'](_0x4e6ee8=>'listType'===_0x833841['_getAttributeKey'](_0x4e6ee8['suggestion']))||(_0x356ba4['removeMarker'](_0x2cda51['getFirstMarker']()),_0x5d944f=!0x0));}return _0x5d944f;})),_0x833841['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2d77a9,'FORMAT_INDENT'));const _0x4f75d0={'type':'format','content':''};_0x833841['descriptionFactory']['registerDescriptionCallback'](_0x5be711=>{const {data:_0x5c504f}=_0x5be711;if(!_0x5c504f||'listType'!=_0x5c504f['key'])return;let _0x1c3084=_0x5be711['head'];for(;_0x1c3084;){if(_0x1c3084['data']&&(('listStyle'==_0x1c3084['data']['key']||'listMarkerStyle'==_0x1c3084['data']['key'])&&(_0x1c3084['data']['newValue']&&'default'!=_0x1c3084['data']['newValue']||'default'!=_0x1c3084['data']['oldValue']&&!_0x5c504f['newValue'])||!_0x243e8b&&_0x1c3084['data']['key']==m))return _0x4f75d0;_0x1c3084=_0x1c3084['next'];}if(null==_0x5c504f['newValue'])switch(_0x5c504f['oldValue']){case'bulleted':return _0x80e6ca(o(_0x2d77a9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x80e6ca(o(_0x2d77a9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x80e6ca(o(_0x2d77a9,'ELEMENT_TODO_LIST'));}switch(_0x5c504f['newValue']){case'bulleted':return _0x4ff533(o(_0x2d77a9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ff533(o(_0x2d77a9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ff533(o(_0x2d77a9,'ELEMENT_TODO_LIST'));}}),_0x833841['descriptionFactory']['registerDescriptionCallback'](_0x5c31a4=>{const {data:_0x48b554}=_0x5c31a4;if(_0x48b554&&'listIndent'==_0x48b554['key'])return null==_0x48b554['newValue']||null==_0x48b554['oldValue']&&0x0==_0x48b554['newValue']?_0x4f75d0:void 0x0;}),_0x833841['descriptionFactory']['registerDescriptionCallback'](_0x18bb93=>{if('attribute'!=_0x18bb93['type'])return;const {data:_0x121ef3}=_0x18bb93;if(!_0x121ef3||'listItemId'!=_0x121ef3['key'])return;const _0x2ccc99=Te(_0x18bb93);return'newValue'==_0x2ccc99?{'type':'format','content':o(_0x2d77a9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2ccc99?{'type':'format','content':o(_0x2d77a9,'*Split:*\x20list\x20item')}:_0x4f75d0;}),_0x38bc87['model']['document']['registerPostFixer'](_0x38c5b6=>this['listItemIdFixer'](_0x38c5b6)),_0x38bc87['model']['document']['registerPostFixer'](_0x20c90a=>this['noTrackChangesFixer'](_0x20c90a)),_0x38bc87['model']['document']['on']('change:data',(_0x590610,_0x5f438f)=>{if(_0x5f438f['isUndo']||!_0x5f438f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1960e7){if(_0x1960e7['batch']['isUndo']||!_0x1960e7['batch']['isLocal'])return!0x1;let _0x39fa42=!0x1;const _0x23bea1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4eaf29=>_0x4eaf29['data']&&'listItemId'==_0x4eaf29['data']['key'])['filter'](_0x1af110=>_0x1af110['data']['newValue']&&_0x1af110['data']['oldValue']);for(const _0x580143 of _0x23bea1)Te(_0x580143)||(_0x1960e7['removeMarker'](_0x580143['getFirstMarker']()),_0x39fa42=!0x0);return _0x39fa42;}['noTrackChangesFixer'](_0x5eef87){if(_0x5eef87['batch']['isUndo']||!_0x5eef87['batch']['isLocal'])return!0x1;const _0x530944=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x530944['trackChangesCommand']['value'])return!0x1;let _0x50b6bb=!0x1;const _0x470494=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5a7e17=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xb4fad9=>'attribute'==_0xb4fad9['type'])['filter'](_0x1e3c77=>_0x470494['includes'](_0x1e3c77['attributeKey']));if(0x0==_0x5a7e17['length'])return _0x50b6bb;for(const _0x16e1d7 of _0x5a7e17){const _0x371436=_0x530944['_findSuggestions'](_0x16e1d7['range'],'attribute')['filter'](_0x172c12=>!_0x172c12['meta']['isNextTo'])['map'](_0x339da7=>_0x339da7['suggestion'])['filter'](_0x7f9499=>{const _0x1da154=_0x530944['_getAttributeKey'](_0x7f9499);return _0x470494['includes'](_0x1da154);});if(_0x371436['length']){for(const _0x552b31 of _0x371436)_0x5eef87['removeMarker'](_0x552b31['getFirstMarker']());_0x50b6bb=!0x0;}}return _0x50b6bb;}['assureChains'](){const _0x3ffa08=this['editor']['plugins']['get']('TrackChangesEditing'),_0x66c629=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x436808;const _0x5b06ac=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3f7bb5=>{if(_0x3f7bb5['data']['oldRange']||!_0x3f7bb5['data']['newRange'])return null;if(!_0x3f7bb5['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x249719}=_0x3ffa08['_splitMarkerName'](_0x3f7bb5['name']);if(!_0x3ffa08['hasSuggestion'](_0x249719))return null;const _0xb8ae7e=_0x3ffa08['getSuggestion'](_0x249719);return _0x66c629['includes'](_0xb8ae7e['data']['key']);})['map'](_0x2ae343=>{const {id:_0x39bbbd}=_0x3ffa08['_splitMarkerName'](_0x2ae343['name']),_0x3dd1b8=_0x3ffa08['getSuggestion'](_0x39bbbd);return _0x436808=_0x3dd1b8['attributes']['groupId'],_0x3dd1b8['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5b06ac['size'])return;const _0x291f3d=_0x3ffa08['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e086f=>'attribute'==_0x1e086f['type']&&_0x1e086f['data']&&_0x66c629['includes'](_0x1e086f['data']['key'])&&_0x1e086f['attributes']['groupId']!=_0x436808)['map'](_0xcd2d93=>({'listItem':_0xcd2d93['getFirstRange']()['start']['nodeAfter'],'groupId':_0xcd2d93['attributes']['groupId']})),_0x5c67f2=new Set();for(const {groupId:_0x12dc6f,listItem:_0x133504}of _0x291f3d)_0x5b06ac['has'](_0x133504)&&_0x5c67f2['add'](_0x12dc6f);for(const _0x161cbc of _0x3ffa08['getSuggestions']())_0x5c67f2['has'](_0x161cbc['attributes']['groupId'])&&_0x161cbc['setAttribute']('groupId',_0x436808);}['_supportLegacySuggestions'](){const _0x4a57f6=this['editor'],_0x5c8982=_0x4a57f6['locale'],_0x4859e6=_0x4a57f6['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4859e6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x7a2ba3,_0x2b3ae2){const _0x5e5a24=[];for(let _0x40ea29 of _0x7a2ba3)_0x40ea29['start']['nodeAfter']===_0x40ea29['end']['parent']&&(_0x40ea29=_0x4a57f6['model']['createRange'](_0x4a57f6['model']['createPositionAt'](_0x40ea29['start']['nodeAfter'],0x0))),_0x5e5a24['push'](_0x40ea29);_0x4a57f6['model']['change'](_0x4f26eb=>{const _0x1b1ddb=_0x4a57f6['model']['document']['selection'],_0x2b6ca4=Array['from'](_0x1b1ddb['getRanges']())['map'](_0x2f5d26=>_0x4f6ba5['fromRange'](_0x2f5d26));_0x4f26eb['setSelection'](_0x5e5a24),_0x4a57f6['commands']['get'](_0x2b3ae2['commandName'])['refresh'](),_0x2b3ae2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a57f6['execute'](_0x2b3ae2['commandName'],..._0x2b3ae2['commandParams']),_0x4f26eb['setSelection'](_0x2b6ca4);for(const _0x6f9c6a of _0x2b6ca4)_0x6f9c6a['detach']();});}),_0x4859e6['descriptionFactory']['registerElementLabel'](function(_0xe56002){const _0x3d56c2=!_0x4a57f6['model']['schema']['isObject'](_0xe56002),_0x48252b=_0xe56002['previousSibling'],_0x3a7c26=_0xe56002['nextSibling'],_0x30f8d9=_0xe56002['getAttribute']('listItemId'),_0x4ce941=!_0x48252b||_0x48252b['getAttribute']('listItemId')!==_0x30f8d9,_0x186811=!_0x3a7c26||_0x3a7c26['getAttribute']('listItemId')!==_0x30f8d9;return _0x3d56c2&&Boolean(_0x30f8d9)&&_0x4ce941&&_0x186811;},_0x6da2ed=>o(_0x5c8982,'ELEMENT_LIST_ITEM',_0x6da2ed));}['_registerLegacyDescription'](){const _0x2ec85a=this['editor'],_0x506423=_0x2ec85a['locale'];function _0x4f932f(_0x1e2b9f){const _0x339f92=_0x2ec85a['commands']['get']('bulletedList')['value'],_0x173190=_0x2ec85a['commands']['get']('numberedList')['value'];return'numberedList'===_0x1e2b9f?_0x339f92:_0x173190;}_0x2ec85a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x44fffd){if('formatBlock'!=_0x44fffd['type'])return;const {data:_0x145273}=_0x44fffd;if(!_0x145273)return;let _0x57be34,_0x148300,_0x4c3645,_0x551a25;switch(_0x145273['commandName']){case'bulletedList':_0x4c3645=_0x145273['commandParams'][0x0]['forceValue'],_0x551a25=_0x4f932f(_0x145273['commandName']),_0x57be34=_0x4c3645?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x551a25&&_0x2ec85a['config']['get']('list.multiBlock')||(_0x57be34='*Change\x20to:*\x20%0'),_0x148300={'type':'format','content':o(_0x506423,_0x57be34,o(_0x506423,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4c3645=_0x145273['commandParams'][0x0]['forceValue'],_0x551a25=_0x4f932f(_0x145273['commandName']),_0x57be34=_0x4c3645?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x551a25&&_0x2ec85a['config']['get']('list.multiBlock')||(_0x57be34='*Change\x20to:*\x20%0'),_0x148300={'type':'format','content':o(_0x506423,_0x57be34,o(_0x506423,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x57be34='*Indent:*\x20%0',_0x148300={'type':'format','content':o(_0x506423,_0x57be34,o(_0x506423,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x57be34=function(_0x68de9c){const _0x46dbd0=_0x68de9c['getFirstRange']();let _0x2dfb78=_0x46dbd0['start']['nodeAfter'];for(;_0x2dfb78&&_0x46dbd0['containsItem'](_0x2dfb78);){if(_0x2dfb78['getAttribute']('listIndent')>0x0)return!0x1;_0x2dfb78=_0x2dfb78['nextSibling'];}return!0x0;}(_0x44fffd)?o(_0x506423,'*Format:*\x20remove\x20from\x20%0',o(_0x506423,function(_0x43dd89){return'ELEMENT_'+_0x43dd89['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x44fffd))):o(_0x506423,'*Outdent:*\x20%0',o(_0x506423,'ELEMENT_LIST_ITEM')),_0x148300={'type':'format','content':_0x57be34};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x145273['multipleBlocks']&&(_0x57be34='*Merge:*\x20%0',_0x148300={'type':'deletion','content':o(_0x506423,_0x57be34,o(_0x506423,'ELEMENT_LIST_ITEM'))});}return _0x148300;});}}function Te(_0x52f3b8){let _0x1a9a83=_0x52f3b8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1a9a83;){const _0x139690=_0x1a9a83['getAttribute']('listItemId');if(!_0x139690)return!0x1;if(_0x139690==_0x52f3b8['data']['newValue'])return'newValue';if(_0x139690==_0x52f3b8['data']['oldValue'])return'oldValue';_0x1a9a83=_0x1a9a83['previousSibling'];}return!0x1;}class Se extends _0x3b6a96{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3c59bf=this['editor']['config']['get']('list.properties'),_0x1ce833=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c59bf['styles']&&(_0x1ce833['enableDefaultAttributesIntegration']('listStyle'),_0x1ce833['registerBlockAttribute']('listStyle')),_0x3c59bf['reversed']&&(_0x1ce833['enableDefaultAttributesIntegration']('listReversed'),_0x1ce833['registerBlockAttribute']('listReversed')),_0x3c59bf['startIndex']&&(_0x1ce833['enableDefaultAttributesIntegration']('listStart'),_0x1ce833['registerBlockAttribute']('listStart'));const _0x4c4a00={'type':'format','content':''};_0x1ce833['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xa15b02=this['editor']['locale'];_0x1ce833['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xa15b02,'FORMAT_LIST_REVERSED')),_0x1ce833['descriptionFactory']['registerDescriptionCallback'](_0x15425a=>{const {data:_0x52fe23}=_0x15425a;if(_0x52fe23&&'listReversed'==_0x52fe23['key'])return null==_0x52fe23['newValue']||0x0==_0x52fe23['newValue']&&null==_0x52fe23['oldValue']?_0x4c4a00:void 0x0;}),_0x1ce833['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xa15b02,'FORMAT_LIST_START')),_0x1ce833['descriptionFactory']['registerDescriptionCallback'](_0x13c340=>{const {data:_0x230495}=_0x13c340;if(_0x230495&&'listStart'==_0x230495['key'])return null==_0x230495['newValue']||0x1==_0x230495['newValue']&&null==_0x230495['oldValue']?_0x4c4a00:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1a60a1=>{if(_0x1a60a1['batch']['isUndo'])return!0x1;let _0x4693e9=!0x1;const _0x2ae26c=_0x1ce833['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45388e=>{const _0x2d59a4=_0x1ce833['_getAttributeKey'](_0x45388e);return'listStart'==_0x2d59a4||'listReversed'==_0x2d59a4;});for(const _0x1b8b5c of _0x2ae26c){const _0x20f7b2=_0x1b8b5c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x20f7b2||'customNumbered'==_0x20f7b2)continue;_0x1ce833['_findSuggestions'](_0x1b8b5c['getFirstRange'](),'attribute')['find'](_0xd230fc=>'listType'==_0x1ce833['_getAttributeKey'](_0xd230fc['suggestion']))||(_0x1a60a1['removeMarker'](_0x1b8b5c['getFirstMarker']()),_0x4693e9=!0x0);}return _0x4693e9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5687b8){const _0x2aaf56=this['editor']['locale'],{data:_0x6b2b4e}=_0x5687b8,_0x16e952={'type':'format','content':''};if(!_0x6b2b4e||'listStyle'!=_0x6b2b4e['key'])return;if(!_0x6b2b4e['oldValue'])return'default'==_0x6b2b4e['newValue']?_0x16e952:{'type':'format','content':''+o(_0x2aaf56,'*Set\x20format:*\x20%0',o(_0x2aaf56,this['_getTranslationKeyForListStyle'](_0x6b2b4e['newValue'])))};if(!_0x6b2b4e['newValue']){if('default'==_0x6b2b4e['oldValue'])return _0x16e952;let _0x4de6bf=_0x5687b8['head'];for(;_0x4de6bf;){if(_0x4de6bf['data']&&'listType'==_0x4de6bf['data']['key']&&_0x4de6bf['data']['newValue'])return _0x16e952;_0x4de6bf=_0x4de6bf['next'];}return{'type':'format','content':''+o(_0x2aaf56,'*Remove\x20format:*\x20%0',o(_0x2aaf56,this['_getTranslationKeyForListStyle'](_0x6b2b4e['oldValue'])))};}if('default'!=_0x6b2b4e['newValue'])return{'type':'format','content':''+o(_0x2aaf56,'*Set\x20format:*\x20%0',o(_0x2aaf56,this['_getTranslationKeyForListStyle'](_0x6b2b4e['newValue'])))};let _0x12a1cc=_0x5687b8['head'];for(;_0x12a1cc;){if(_0x12a1cc['data']&&'listType'==_0x12a1cc['data']['key']&&_0x12a1cc['data']['newValue']&&_0x12a1cc['data']['oldValue'])return _0x16e952;_0x12a1cc=_0x12a1cc['next'];}return{'type':'format','content':o(_0x2aaf56,'*Set\x20format:*\x20%0',o(_0x2aaf56,'ELEMENT_'+_0x5687b8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x55ec39=this['editor'],_0x5aca6b=_0x55ec39['locale'];_0x55ec39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4684a0=>{if('formatBlock'!=_0x4684a0['type'])return;const {data:_0x1ede57}=_0x4684a0;if(!_0x1ede57)return;let _0x114f63,_0x23c38c;switch(_0x1ede57['commandName']){case'listStyle':_0x114f63='*Change\x20to:*\x20%0',_0x23c38c={'type':'format','content':o(_0x5aca6b,_0x114f63,o(_0x5aca6b,this['_getTranslationKeyForListStyle'](_0x1ede57['commandParams'][0x0]['type'])))};break;case'listReversed':_0x114f63=_0x1ede57['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x23c38c={'type':'format','content':o(_0x5aca6b,_0x114f63)};break;case'listStart':_0x114f63='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x23c38c={'type':'format','content':o(_0x5aca6b,_0x114f63,_0x1ede57['commandParams'][0x0]['startIndex'])};}return _0x23c38c;});}['_getTranslationKeyForListStyle'](_0x5a30f3){return'ELEMENT_'+function(_0x49c0b3){if(_e['includes'](_0x49c0b3))return'bulleted';if(Re['includes'](_0x49c0b3))return'numbered';return null;}(_0x5a30f3)['toUpperCase']()+'_LIST_'+_0x5a30f3['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3b6a96{['afterInit'](){const _0x5c8ba1=this['editor'];_0x5c8ba1['commands']['get']('emoji')&&_0x5c8ba1['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3b6a96{static get['requires'](){return[_0x49dcc7];}['init'](){const _0x4402dd=this['editor'],_0x422316=_0x4402dd['plugins']['get']('TrackChangesEditing'),_0x3966c1=_0x4402dd['commands']['get']('enter');_0x422316['enableCommand']('enter',()=>{_0x4402dd['model']['change'](_0x15b87c=>{const _0x4d20c3=_0x4402dd['model']['document']['selection'],_0x417a74=_0x4d20c3['getFirstPosition'](),_0x15d626=_0x4f6ba5['fromRange'](_0x4d20c3['getFirstRange']());if(_0x3966c1['enterBlock'](_0x15b87c)){const _0x54fc14=_0x4402dd['model']['createPositionAt'](_0x417a74['parent']['nextSibling'],0x0),_0x42a8fb=_0x15b87c['createRange'](_0x417a74,_0x54fc14);_0x422316['markInsertion'](_0x42a8fb);}else _0x15b87c['setSelection'](_0x15b87c['createRange'](_0x15d626['end']));_0x15d626['detach'](),_0x3966c1['fire']('afterExecute',{'writer':_0x15b87c});});}),_0x4402dd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4402dd,'split'),{'priority':'high'}),_0x4402dd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x47ff06,_0x30344e,_0x1e52d4)=>{const _0x43de33=_0x1e52d4['mapper']['markerNameToElements'](_0x30344e['markerName']);if(_0x43de33){for(const _0x57f9e1 of _0x43de33)_0x57f9e1['hasClass']('ck-suggestion-marker-split')&&(_0x1e52d4['mapper']['unbindElementFromMarkerName'](_0x57f9e1,_0x30344e['markerName']),_0x1e52d4['writer']['remove'](_0x57f9e1));}},{'priority':'high'}),_0x4402dd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x138f9c,_0x5f59f3,_0x4c3e20)=>{_0x4c3e20['options']['showSuggestionHighlights']&&De(_0x4402dd,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x138f9c,_0x5f59f3,_0x4c3e20);},{'priority':'high'});}}class Z extends _0x3b6a96{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x24834c=this['editor']['plugins']['get']('TrackChangesEditing');_0x24834c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x24834c['enableCommand']('findNext'),_0x24834c['enableCommand']('findPrevious'),_0x24834c['enableCommand']('replace'),_0x24834c['enableCommand']('replaceAll');}['handleFindCommand'](_0x4e6b27,_0x46ac1e,_0x52996c={}){const _0xbf0c5f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4e6b27(_0x2411db=>{let _0x3e08f3=('string'==typeof _0x46ac1e?_0xbf0c5f['findByTextCallback'](_0x46ac1e,_0x52996c):_0x46ac1e)(_0x2411db);Array['isArray'](_0x3e08f3)&&(_0x3e08f3={'results':_0x3e08f3,'searchText':'string'==typeof _0x46ac1e?_0x46ac1e:''});const _0x1b322b=_0x3e08f3['results']['filter'](_0x4b1c36=>!0x1===this['_isInDeletionRange'](_0x4b1c36,_0x2411db['item']));return{..._0x3e08f3,'results':_0x1b322b};},_0x52996c);}['_isInDeletionRange'](_0x1db9bd,_0x4af2){const _0x16203d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4af2,_0x1db9bd['start']),this['editor']['model']['createPositionAt'](_0x4af2,_0x1db9bd['end']));for(const _0x782253 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x16203d['getIntersection'](_0x782253['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x3b6a96{['afterInit'](){const _0x41c3e8=this['editor']['locale'],_0x1855e2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4efc30,commandName:_0x36b339}of ro)this['editor']['plugins']['has'](_0x4efc30)&&(_0x1855e2['enableDefaultAttributesIntegration'](_0x36b339),_0x1855e2['registerInlineAttribute'](_0x36b339));_0x1855e2['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x41c3e8,'FORMAT_FONT_SIZE')),_0x1855e2['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x41c3e8,'FORMAT_FONT_FAMILY')),_0x1855e2['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x41c3e8,'FORMAT_FONT_COLOR')),_0x1855e2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x41c3e8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c546e=this['editor'],_0xe0520d=_0x2c546e['locale'];_0x2c546e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x175543=>{const _0x48d231=_0xe0520d['t'];if('formatInline'!=_0x175543['type'])return;const {data:_0x101da9}=_0x175543;if(null!=_0x101da9){if('fontSize'==_0x101da9['commandName']){const _0x18c9da=_0x101da9['commandParams'][0x0]['value'];if(_0x18c9da){const _0x417659=_0x48d231(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x450278=>_0x450278['model']==_0x18c9da)['title'])['toLowerCase']();return{'type':'format','content':o(_0xe0520d,'*Set\x20font\x20size:*\x20%0',_0x417659)};}return{'type':'format','content':o(_0xe0520d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x101da9['commandName']){const _0x2c26fc=_0x101da9['commandParams'][0x0]['value'];return _0x2c26fc?{'type':'format','content':o(_0xe0520d,'*Set\x20font\x20family:*\x20%0',_0x2c26fc)}:{'type':'format','content':o(_0xe0520d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x101da9['commandName']){const _0x2f25d3=_0x101da9['commandParams'][0x0]['value'];if(_0x2f25d3){const _0x3410fc=_0x164a1a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5061aa=>_0x5061aa['model']==_0x2f25d3);let _0x56ecc5=_0x2f25d3,_0x485f5a='';return _0x3410fc&&(_0x56ecc5=_0x3410fc['label'],_0x485f5a=_0x48d231(_0x56ecc5)['toLowerCase']()),{'type':'format','content':o(_0xe0520d,'*Set\x20font\x20color:*\x20%0',_0x485f5a)['trim'](),'color':{'value':_0x2f25d3,'title':_0x485f5a||_0x56ecc5}};}return{'type':'format','content':o(_0xe0520d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x101da9['commandName']){const _0xed73f5=_0x101da9['commandParams'][0x0]['value'];if(_0xed73f5){const _0x4094a9=_0x164a1a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3c0d7b=>_0x3c0d7b['model']==_0xed73f5);let _0x14cc4e=_0xed73f5,_0x3f8ef7='';return _0x4094a9&&(_0x14cc4e=_0x4094a9['label'],_0x3f8ef7=_0x48d231(_0x14cc4e)['toLowerCase']()),{'type':'format','content':o(_0xe0520d,'*Set\x20font\x20background\x20color:*\x20%0',_0x3f8ef7)['trim'](),'color':{'value':_0xed73f5,'title':_0x3f8ef7||_0x14cc4e}};}return{'type':'format','content':o(_0xe0520d,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x3b6a96{['afterInit'](){const _0x4ef1f9=this['editor'],_0x115e4f=_0x4ef1f9['plugins']['get']('TrackChangesEditing'),_0x4fd028=_0x4ef1f9['commands']['get']('copyFormat'),_0x417209=_0x4ef1f9['commands']['get']('pasteFormat');_0x4fd028&&_0x417209&&(_0x115e4f['enableDefaultAttributesIntegration']('pasteFormat'),_0x115e4f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x255538=this['editor'],_0x36a789=_0x255538['locale'];_0x255538['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33837d=>{if('formatBlock'!=_0x33837d['type']&&'formatInline'!=_0x33837d['type'])return;const {data:_0x35f530}=_0x33837d;if(_0x35f530&&'pasteFormat'===_0x35f530['commandName']){const _0x3be756=[],_0x55fb65=_0x35f530['commandParams'][0x0];for(const [_0x337a24,_0x3fc2bd]of Object['entries'](_0x55fb65))_0x3be756['push'](so(_0x255538,_0x337a24,_0x3fc2bd));return _0x3be756['length']?{'type':'format','content':o(_0x36a789,'*Set\x20format\x20to:*\x20%0',_0x3be756['join'](',\x20'))}:{'type':'format','content':o(_0x36a789,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4e1242,_0x13784a,_0x5bd5ef){const _0xf0e565=_0x4e1242['locale']['t'],_0x2d9e5d=_0x13784a['split'](/(?=[A-Z])/)['join']('\x20'),_0x4effcd=_0xf0e565(_0x2d9e5d['charAt'](0x0)['toUpperCase']()+_0x2d9e5d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5bd5ef)return _0x4effcd;if('fontColor'===_0x13784a||'fontBackgroundColor'===_0x13784a){const _0x29de61=_0x164a1a(_0x4e1242['config']['get']('fontColor.colors'))['find'](_0x1b8f1f=>_0x1b8f1f['model']==_0x5bd5ef);return _0x4effcd+'\x20('+(_0x29de61?_0xf0e565(_0x29de61['label'])['toLowerCase']():_0x5bd5ef)+')';}if('fontSize'===_0x13784a&&isNaN(parseFloat(_0x5bd5ef))){const _0x176a1f=_0x4e1242['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4e1242['config']['get']('fontSize.options'))['find'](_0x2043bc=>_0x2043bc['model']==_0x5bd5ef);return _0x4effcd+'\x20('+(_0x176a1f?_0xf0e565(_0x176a1f['title'])['toLowerCase']():_0x5bd5ef)+')';}return _0x4effcd+'\x20('+_0x5bd5ef+')';}class it extends _0x3b6a96{['_headingOptions'];['afterInit'](){const _0x2c41bf=this['editor'];if(!_0x2c41bf['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2c41bf['config']['get']('heading.options');const _0x2e4250=_0x2c41bf['locale'],_0x36072c=_0x2c41bf['plugins']['get']('TrackChangesEditing');_0x36072c['enableDefaultAttributesIntegration']('heading');for(const _0x487277 of this['_headingOptions'])'paragraph'!=_0x487277['model']&&_0x36072c['descriptionFactory']['registerElementLabel'](_0x487277['model'],_0x3a1a43=>{const _0x560fbd=this['_getHeadingLevel'](_0x487277['model']);return null!==_0x560fbd?_0x2588f3(_0x3a1a43,_0x560fbd):_0x283777(_0x3a1a43,_0x487277['title']);});function _0x2588f3(_0x4a2174,_0x524e13){return o(_0x2e4250,'ELEMENT_HEADING',[_0x4a2174,_0x524e13]);}function _0x283777(_0x42bcf7,_0x49459d){return o(_0x2e4250,'ELEMENT_HEADING_CUSTOM',[_0x42bcf7,_0x49459d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28d662=this['editor'],_0x4e9560=_0x28d662['locale'];function _0x20e480(_0x535d8d,_0x20c32d){return o(_0x4e9560,'ELEMENT_HEADING_CUSTOM',[_0x535d8d,_0x20c32d]);}_0x28d662['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49049b=>{if('formatBlock'!=_0x49049b['type'])return;const {data:_0xf7dc6a}=_0x49049b;if(_0xf7dc6a&&'heading'==_0xf7dc6a['commandName']){const _0x43e3f4=_0xf7dc6a['commandParams'][0x0]['value'],_0x4fbc02=this['_getHeadingLevel'](_0x43e3f4);if(null!==_0x4fbc02)return{'type':'format','content':o(_0x4e9560,'*Change\x20to:*\x20%0',(_0x56c254=0x1,_0x5e05cd=_0x4fbc02,o(_0x4e9560,'ELEMENT_HEADING',[_0x56c254,_0x5e05cd])))};const _0x1989c7=this['_headingOptions']['find'](_0x899d39=>_0x899d39['model']===_0x43e3f4)['title'];return{'type':'format','content':o(_0x4e9560,'*Change\x20to:*\x20%0',_0x20e480(0x1,_0x1989c7))};}var _0x56c254,_0x5e05cd;});}['_getHeadingLevel'](_0x24d533){const _0x429b60=_0x24d533['match'](/^heading(\d+)/);if(_0x429b60)return _0x429b60[0x1];const _0x43073c=this['_headingOptions']?.['find'](_0x346ae1=>_0x346ae1['model']==_0x24d533);if(_0x43073c&&_0x43073c['view']){const _0x1c5be0=_0x43073c['view'],_0x301581=(_0x1c5be0['name']??_0x1c5be0)['match'](/^h(\d+)/);if(_0x301581)return _0x301581[0x1];}return null;}}class et extends _0x3b6a96{['afterInit'](){const _0x13e411=this['editor'];if(!_0x13e411['plugins']['has']('HighlightEditing'))return;const _0x592d1d=_0x13e411['plugins']['get']('TrackChangesEditing'),_0x4fd13a=_0x13e411['locale'];_0x592d1d['enableDefaultAttributesIntegration']('highlight'),_0x592d1d['registerInlineAttribute']('highlight'),_0x592d1d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4fd13a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d8f69=this['editor'],_0x3365d6=_0x5d8f69['locale'];_0x5d8f69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4778fe=>{if('formatInline'!=_0x4778fe['type'])return;const {data:_0x6d7d74}=_0x4778fe;if(_0x6d7d74&&'highlight'==_0x6d7d74['commandName']){const _0x967116=_0x3365d6['t'],_0x4bc943=_0x6d7d74['commandParams'][0x0]['value'];if(_0x4bc943){const _0x262087=_0x5d8f69['config']['get']('highlight.options')['find'](_0x52a258=>_0x52a258['model']==_0x4bc943),_0x15c30c=_0x967116(_0x262087['title'])['toLowerCase']();return{'type':'format','content':o(_0x3365d6,'*Set\x20highlight:*\x20%0',_0x15c30c),'color':{'value':_0x262087['color'],'title':_0x262087['title']}};}return{'type':'format','content':o(_0x3365d6,'*Remove\x20highlight*',o(_0x3365d6,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3b6a96{['afterInit'](){const _0x1ca336=this['editor'];if(!_0x1ca336['plugins']['has']('HorizontalLineEditing'))return;_0x1ca336['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x46a9ec=_0x1ca336['plugins']['get']('TrackChangesEditing'),_0x2cec3b=_0x1ca336['locale'];_0x46a9ec['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4429e3=>o(_0x2cec3b,'ELEMENT_HORIZONTAL_LINE',_0x4429e3)),_0x1ca336['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x20f76a,{writer:_0x448380,options:_0x1d4574})=>{if(!_0x1d4574['showSuggestionHighlights'])return null;const _0x4ba506=_0x448380['createContainerElement']('div'),_0x5869a7=_0x448380['createEmptyElement']('hr');return _0x448380['addClass']('ck-horizontal-line',_0x4ba506),_0x448380['insert'](_0x448380['createPositionAt'](_0x4ba506,0x0),_0x5869a7),_0x4ba506;},'converterPriority':'high'});}}class ot extends _0x3b6a96{['afterInit'](){const _0x83af4e=this['editor'];if(!_0x83af4e['plugins']['has']('HtmlEmbed'))return;const _0x52d707=_0x83af4e['plugins']['get']('TrackChangesEditing'),_0x246b38=_0x83af4e['locale'];_0x52d707['descriptionFactory']['registerElementLabel']('rawHtml',_0x48fa14=>o(_0x246b38,'ELEMENT_HTML_EMBED',_0x48fa14)),_0x52d707['enableDefaultAttributesIntegration']('htmlEmbed'),_0x52d707['registerBlockAttribute']('value'),_0x52d707['descriptionFactory']['registerDescriptionCallback'](_0x1ebaf6=>{if('attribute'!=_0x1ebaf6['type'])return;const {data:_0x58f13c}=_0x1ebaf6;if(_0x58f13c&&'value'==_0x58f13c['key']&&_0x1ebaf6['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xe0d8c8=o(_0x246b38,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x246b38,'*Change\x20%0\x20content*',_0xe0d8c8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52f1c1=this['editor'],_0x1dff7a=_0x52f1c1['locale'];_0x52f1c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3430d4=>{if('formatBlock'!=_0x3430d4['type'])return;const {data:_0x16f243}=_0x3430d4;if(_0x16f243&&'htmlEmbed'==_0x16f243['commandName']){const _0x5ead56=o(_0x1dff7a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1dff7a,'*Change\x20%0\x20content*',_0x5ead56)};}});}}class rt extends _0x3b6a96{['afterInit'](){const _0x34b737=this['editor'];if(!_0x34b737['plugins']['has']('ImageEditing'))return;const _0x1b14fa=_0x34b737['plugins']['get']('TrackChangesEditing'),_0x40725c=_0x34b737['plugins']['get']('ImageUtils'),_0x1e044b=_0x34b737['locale'];_0x1b14fa['enableCommand']('insertImage'),_0x1b14fa['descriptionFactory']['registerElementLabel']('imageBlock',_0x403af5=>o(_0x1e044b,'ELEMENT_IMAGE',_0x403af5)),_0x1b14fa['descriptionFactory']['registerElementLabel']('imageInline',_0x376f34=>o(_0x1e044b,'ELEMENT_INLINE_IMAGE',_0x376f34)),_0x1b14fa['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1e044b,'ELEMENT_CAPTION')),_0x34b737['plugins']['has']('ImageUploadEditing')&&_0x1b14fa['enableCommand']('uploadImage'),_0x34b737['plugins']['has']('ImageBlockEditing')&&_0x34b737['plugins']['has']('ImageInlineEditing')&&(_0x1b14fa['enableCommand']('imageTypeInline',(_0x1de4bf,_0x2953c0)=>{const _0x5adb0f=_0x40725c['getClosestSelectedImageElement'](_0x34b737['model']['document']['selection']);_0x34b737['model']['change'](()=>{_0x1b14fa['markBlockFormat'](_0x5adb0f,{'commandName':'imageTypeInline','commandParams':[_0x2953c0]},[],'convertBlockImageToInline');});}),_0x1b14fa['enableCommand']('imageTypeBlock',(_0x240ac2,_0x1fd582)=>{_0x34b737['model']['change'](_0x4f5733=>{let _0x3cd4b3=_0x40725c['getClosestSelectedImageElement'](_0x34b737['model']['document']['selection']),_0x23f675=_0x4f5733['createRangeOn'](_0x3cd4b3);const _0x2496f6=_0x2719a2['fromPosition'](_0x23f675['start'],'toPrevious'),_0x8d1eb3=_0x2719a2['fromPosition'](_0x23f675['end'],'toNext');_0x1b14fa['forceDefaultExecution'](()=>_0x240ac2(_0x1fd582)),_0x3cd4b3=_0x40725c['getClosestSelectedImageElement'](_0x34b737['model']['document']['selection']),_0x23f675=_0x4f5733['createRangeOn'](_0x3cd4b3);const _0x352079=_0x4f5733['createRange'](_0x2496f6,_0x8d1eb3);_0x2496f6['detach'](),_0x8d1eb3['detach'](),_0x1b14fa['markBlockFormat'](_0x3cd4b3,{'commandName':'imageTypeInline','commandParams':[_0x1fd582]},[],'convertInlineImageToBlock'),_0x352079['start']['isBefore'](_0x23f675['start'])&&_0x1b14fa['markInsertion'](_0x4f5733['createRange'](_0x352079['start'],_0x23f675['start']),'convertInlineImageToBlock'),_0x23f675['end']['isBefore'](_0x352079['end'])&&_0x1b14fa['markInsertion'](_0x4f5733['createRange'](_0x23f675['end'],_0x352079['end']),'convertInlineImageToBlock');});}),_0x1b14fa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1b14fa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1b14fa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1b14fa['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1b14fa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1b14fa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x6cf216])=>{const _0x52297a=_0x1b14fa['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x6af37b=_0x6cf216['start'],_0x1288ca=_0x6cf216['end'];const _0xa389ae=_0x34b737['model']['schema']['getNearestSelectionRange'](_0x6af37b,'backward'),_0x1d8c6b=_0x34b737['model']['schema']['getNearestSelectionRange'](_0x1288ca,'forward');_0xa389ae['isCollapsed']&&(_0x6af37b=_0xa389ae['start']),_0x1d8c6b['isCollapsed']&&(_0x1288ca=_0x1d8c6b['end']),_0x52297a([_0x34b737['model']['createRange'](_0x6af37b,_0x1288ca)]);}),_0x1b14fa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2d58fa),_0x1b14fa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2d58fa)),_0x34b737['plugins']['has']('ImageCaptionEditing')&&(_0x1b14fa['enableCommand']('toggleImageCaption',(_0x212eb8,_0xe4441)=>{const _0x1d6454=_0x34b737['plugins']['get']('ImageCaptionUtils');let _0x39138f=_0x40725c['getClosestSelectedImageElement'](_0x34b737['model']['document']['selection']),_0x168d10=_0x1d6454['getCaptionFromImageModelElement'](_0x39138f);_0x34b737['model']['change'](()=>{if(_0x168d10)return void _0x1b14fa['markDeletion'](_0x34b737['model']['createRangeOn'](_0x168d10));const _0x5532cb=_0x40725c['isBlockImage'](_0x39138f);_0x212eb8(_0xe4441),_0x39138f=_0x40725c['getClosestSelectedImageElement'](_0x34b737['model']['document']['selection']),_0x168d10=_0x1d6454['getCaptionFromImageModelElement'](_0x39138f),_0x1b14fa['markInsertion'](_0x34b737['model']['createRangeOn'](_0x168d10),_0x5532cb?null:'imageCaption');});}),_0x1b14fa['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2d58fa));const _0x594b72=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3224e7(_0x177bb2,_0x17ce3b){const _0x56deda=_0x594b72['findIndex'](({type:_0x5a3609,subType:_0x22ffb6})=>_0x177bb2['type']==_0x5a3609&&_0x177bb2['subType']==_0x22ffb6),_0x8043a5=_0x594b72['findIndex'](({type:_0x4ae693,subType:_0x2aa783})=>_0x17ce3b['type']==_0x4ae693&&_0x17ce3b['subType']==_0x2aa783);if(_0x56deda<0x0||_0x8043a5<0x0)return!0x1;const _0x429c67=_0x177bb2['getFirstRange'](),_0x1b44c9=_0x17ce3b['getFirstRange']();if((0x0==_0x56deda||0x1==_0x56deda)&&0x2==_0x8043a5&&_0x429c67['isIntersecting'](_0x1b44c9))return!0x0;if(0x2==_0x56deda&&0x3==_0x8043a5){const _0x5833ee=_0x1b14fa['_findSuggestions'](_0x429c67,'insertion')['filter'](({suggestion:_0x3baf74,meta:_0x2ddca6})=>_0x2ddca6['isOwn']&&'convertInlineImageToBlock'==_0x3baf74['subType']);if(_0x5833ee['length']>0x1&&_0x1b44c9['end']['isEqual'](_0x429c67['start']))return!0x0;if(0x1==_0x5833ee['length']&&(_0x429c67['start']['isEqual'](_0x1b44c9['end'])||_0x429c67['end']['isEqual'](_0x1b44c9['start'])))return!0x0;}if(0x3==_0x56deda&&0x3==_0x8043a5&&_0x429c67['start']['isBefore'](_0x1b44c9['start'])){const _0xefb0dd=_0x429c67['end']['nodeAfter'],_0x119506=_0x1b44c9['start']['nodeBefore'];return _0x40725c['isBlockImage'](_0xefb0dd)&&_0xefb0dd===_0x119506;}return!0x1;}function _0x2d58fa(_0x355dd5,_0x4b60fd){return _0x3224e7(_0x355dd5,_0x4b60fd)?[_0x355dd5,_0x4b60fd]:_0x3224e7(_0x4b60fd,_0x355dd5)?[_0x4b60fd,_0x355dd5]:null;}_0x34b737['plugins']['has']('ImageResize')&&(_0x1b14fa['enableDefaultAttributesIntegration']('resizeImage'),_0x1b14fa['registerBlockAttribute']('resizedWidth'),_0x1b14fa['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1e044b,'FORMAT_IMAGE_SIZE'))),_0x34b737['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1b14fa['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1b14fa['registerBlockAttribute']('alt')),_0x34b737['plugins']['has']('PictureEditing')&&(_0x1b14fa['registerBlockAttribute']('sources'),_0x1b14fa['descriptionFactory']['registerDescriptionCallback'](_0xde58ba=>{if('attribute'!=_0xde58ba['type'])return;const {data:_0x19104d}=_0xde58ba;return _0x19104d&&'sources'==_0x19104d['key']?{'type':'format','content':''}:void 0x0;})),_0x34b737['plugins']['has']('ImageSizeAttributes')&&(_0x1b14fa['registerBlockAttribute']('width'),_0x1b14fa['registerBlockAttribute']('height'),_0x1b14fa['descriptionFactory']['registerDescriptionCallback'](_0x236ea8=>{if('attribute'!=_0x236ea8['type'])return;const {data:_0x31d345}=_0x236ea8;return!_0x31d345||'width'!=_0x31d345['key']&&'height'!=_0x31d345['key']?void 0x0:{'type':'format','content':''};})),_0x1b14fa['descriptionFactory']['registerDescriptionCallback'](_0x4eaa5c=>{if(!!_0x594b72['find'](({type:_0x3f4344,subType:_0x1e27da})=>_0x4eaa5c['type']==_0x3f4344&&_0x4eaa5c['subType']==_0x1e27da))return _0x4eaa5c['previous']?{}:void 0x0;}),_0x1b14fa['descriptionFactory']['registerDescriptionCallback'](_0x2577a3=>{if('insertion'==_0x2577a3['type']||'deletion'==_0x2577a3['type']){const _0x4aa4d2=_0x2577a3['getContainedElement']();if(_0x4aa4d2&&_0x4aa4d2['is']('element','caption'))return{'type':'insertion'==_0x2577a3['type']?'addObject':'removeObject','element':_0x4aa4d2,'quantity':0x1};}}),_0x1b14fa['descriptionFactory']['registerDescriptionCallback'](_0x4108f1=>'formatBlock'==_0x4108f1['type']&&'convertInlineImageToBlock'==_0x4108f1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4108f1['type']&&'convertBlockImageToInline'==_0x4108f1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1b14fa['descriptionFactory']['registerDescriptionCallback'](_0xc15b1c=>{if('attribute'!=_0xc15b1c['type'])return;const {data:_0x33cfb9}=_0xc15b1c;if(!_0x33cfb9||'alt'!=_0x33cfb9['key'])return;const _0x3a5c4a=_0x33cfb9['newValue'];return _0x3a5c4a?{'type':'format','content':o(_0x1e044b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3a5c4a+'\x22')}:{'type':'format','content':o(_0x1e044b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x191299=this['editor'],_0x1b29e4=_0x191299['locale'];_0x191299['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a7e0b=>{if('formatBlock'!=_0x5a7e0b['type']&&'formatInline'!=_0x5a7e0b['type'])return;const {data:_0x426c37}=_0x5a7e0b;if(_0x426c37){if('imageTextAlternative'==_0x426c37['commandName']){const _0x2d8849=_0x426c37['commandParams'][0x0]['newValue'];return _0x2d8849?{'type':'format','content':o(_0x1b29e4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d8849+'\x22')}:{'type':'format','content':o(_0x1b29e4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x426c37['commandName']){const _0x19b9ec=_0x426c37['commandParams'][0x0]['width'];return _0x19b9ec?{'type':'format','content':o(_0x1b29e4,'*Set\x20image\x20width:*\x20%0',_0x19b9ec)}:{'type':'format','content':o(_0x1b29e4,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3b6a96{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x28b27b=this['editor']['locale'],_0x19eec0=this['editor']['plugins']['get']('TrackChangesEditing');_0x19eec0['enableDefaultAttributesIntegration']('replaceImageSource'),_0x19eec0['registerBlockAttribute']('src'),_0x19eec0['descriptionFactory']['registerDescriptionCallback'](_0x3372f8=>{if('attribute'!=_0x3372f8['type'])return;const {data:_0x530f38}=_0x3372f8;return _0x530f38&&'src'==_0x530f38['key']?_0x530f38['newValue']&&_0x530f38['oldValue']?{'type':'format','content':o(_0x28b27b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x11894a=this['editor']['plugins']['get']('TrackChangesEditing');_0x11894a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x11894a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11894a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x11894a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5573aa=this['editor'],_0x2b5595=_0x5573aa['locale'];_0x5573aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x419f44=>{if('formatBlock'!=_0x419f44['type']&&'formatInline'!=_0x419f44['type'])return;const {data:_0x30df51}=_0x419f44;if(!_0x30df51||'replaceImageSource'!=_0x30df51['commandName'])return;return{'type':'format','content':o(_0x2b5595,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3b6a96{['afterInit'](){const _0x2f846b=this['editor'];if(!_0x2f846b['plugins']['has']('ImageStyleEditing'))return;const _0x5df90c=_0x2f846b['plugins']['get']('TrackChangesEditing'),_0xbb1f4f=_0x2f846b['plugins']['get']('ImageUtils'),_0x1f3e88={};_0x5df90c['enableCommand']('imageStyle',(_0x4a8fe0,_0x56295c)=>{const _0x2df08d=_0x2f846b['plugins']['get']('Users')['me'],_0x521c4d=_0x2f846b['commands']['get']('imageStyle');let _0x536e59=_0xbb1f4f['getClosestSelectedImageElement'](_0x2f846b['model']['document']['selection']),_0x416b0=_0x2f846b['model']['createRangeOn'](_0x536e59),_0x36ae4d=_0x521c4d['value'];if(_0x36ae4d==_0x56295c['value'])return;const _0x5c8dc3={'commandName':'imageStyle','commandParams':[_0x56295c],'formatGroupId':_0x42a68b()};_0x2f846b['model']['change'](()=>{if(_0x5df90c['getSuggestions']()['filter'](_0xb997d5=>_0xb997d5['isInContent']&&_0x2df08d==_0xb997d5['author']&&('formatBlock'==_0xb997d5['type']||'formatInline'==_0xb997d5['type'])&&('imageStylePreApply'==_0xb997d5['subType']||'imageStylePostApply'==_0xb997d5['subType'])&&_0xb997d5['getFirstRange']()['isEqual'](_0x416b0))['forEach'](_0x2ef741=>_0x5df90c['discardSuggestion'](_0x2ef741['head'])),_0x536e59=_0xbb1f4f['getClosestSelectedImageElement'](_0x2f846b['model']['document']['selection']),_0x416b0=_0x2f846b['model']['createRangeOn'](_0x536e59),_0x521c4d['refresh'](),_0x2f846b['commands']['get']('imageTypeInline')['refresh'](),_0x2f846b['commands']['get']('imageTypeBlock')['refresh'](),_0x36ae4d=_0x521c4d['value'],_0x36ae4d!=_0x56295c['value'])return _0xbb1f4f['isInlineImage'](_0x536e59)&&_0x521c4d['shouldConvertImageType'](_0x56295c['value'],_0x536e59)?(_0x4a8fe0({..._0x56295c,'setImageSizes':!0x1}),_0x536e59=_0xbb1f4f['getClosestSelectedImageElement'](_0x2f846b['model']['document']['selection']),void _0x5df90c['markBlockFormat'](_0x536e59,{..._0x5c8dc3,'commandReversedParams':[{'value':_0x36ae4d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xbb1f4f['isBlockImage'](_0x536e59)?_0x5df90c['markBlockFormat'](_0x536e59,_0x5c8dc3,[],'imageStylePostApply'):_0x5df90c['markInlineFormat'](_0x416b0,_0x5c8dc3,'imageStylePostApply'));});});for(const _0x2cbc4e of _0x2f846b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1f3e88[_0x2cbc4e['name']]=_0x2cbc4e['title']['toLowerCase']();_0x5df90c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5df90c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5df90c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5df90c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x307de4])=>{_0xbb1f4f['setImageNaturalSizeAttributes'](_0x307de4['getContainedElement']());}),_0x5df90c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4a4072,_0x5b108e)=>{_0x5df90c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4a4072,{'commandName':_0x5b108e['commandName'],'commandParams':_0x5b108e['commandReversedParams']});}),_0x5df90c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x41467a,_0x8e911a){if(_0x4d5614(_0x41467a,_0x8e911a))return[_0x41467a,_0x8e911a];if(_0x4d5614(_0x8e911a,_0x41467a))return[_0x8e911a,_0x41467a];return null;});const _0x2765d0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4d5614(_0xf38e52,_0x53934f){const _0xdadb47=_0x2765d0['findIndex'](({type:_0x3f7a9a,subType:_0x1df352})=>_0xf38e52['type']==_0x3f7a9a&&_0xf38e52['subType']==_0x1df352),_0x2854ce=_0x2765d0['findIndex'](({type:_0x4b82e4,subType:_0xe023f6})=>_0x53934f['type']==_0x4b82e4&&_0x53934f['subType']==_0xe023f6);if(_0xdadb47<0x0||_0x2854ce<0x0)return!0x1;const _0x11cd1b=_0xf38e52['getFirstRange'](),_0x3633fb=_0x53934f['getFirstRange']();if((0x0==_0xdadb47||0x1==_0xdadb47)&&0x2==_0x2854ce&&_0x11cd1b['isIntersecting'](_0x3633fb))return!0x0;if(0x2==_0xdadb47&&0x3==_0x2854ce){const _0x4bb98c=_0x5df90c['_findSuggestions'](_0x11cd1b,'insertion')['filter'](({suggestion:_0x114c6a,meta:_0x5e2b22})=>_0x5e2b22['isOwn']&&'convertInlineImageToBlock'==_0x114c6a['subType']);if(_0x4bb98c['length']>0x1&&_0x3633fb['end']['isEqual'](_0x11cd1b['start']))return!0x0;if(0x1==_0x4bb98c['length']&&(_0x11cd1b['start']['isEqual'](_0x3633fb['end'])||_0x11cd1b['end']['isEqual'](_0x3633fb['start'])))return!0x0;}if(0x3==_0xdadb47&&0x3==_0x2854ce&&_0x11cd1b['start']['isBefore'](_0x3633fb['start'])){const _0x14b733=_0x11cd1b['end']['nodeAfter'],_0x58e857=_0x3633fb['start']['nodeBefore'];return _0xbb1f4f['isBlockImage'](_0x14b733)&&_0x14b733===_0x58e857;}return!0x1;}_0x2f846b['model']['document']['registerPostFixer'](()=>{let _0x1f4ec7=!0x1;const _0x15256d=Array['from'](_0x2f846b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d85ae,data:_0xa8ff1e}of _0x15256d){const {group:_0x19e94c,type:_0x4a23af,subType:_0x4b2885,id:_0x57f9b3}=_0x5df90c['_splitMarkerName'](_0x3d85ae);if('suggestion'==_0x19e94c&&_0x5df90c['hasSuggestion'](_0x57f9b3)){if('formatBlock'==_0x4a23af&&('imageStylePreApply'==_0x4b2885||'imageStylePostApply'==_0x4b2885)){const _0x4aa83b=_0x5df90c['getSuggestion'](_0x57f9b3);if(_0xa8ff1e['newRange']){const _0x1f4e1f=_0x4aa83b['getFirstRange']()['getContainedElement']();if(_0xbb1f4f['isBlockImage'](_0x1f4e1f))continue;_0x5df90c['discardSuggestion'](_0x4aa83b),_0x1f4ec7=!0x0;}}if('insertion'==_0x4a23af&&'imageCaption'==_0x4b2885&&!_0xa8ff1e['newRange']){const _0x68edba=_0x5df90c['getSuggestion'](_0x57f9b3);_0x68edba['next']&&_0x68edba['next']['isInContent']&&(_0x5df90c['discardSuggestion'](_0x68edba['next']),_0x1f4ec7=!0x0);}}}return _0x1f4ec7;}),this['_registerLegacyDescription'](_0x1f3e88);}['_registerLegacyDescription'](_0x504a09){const _0x12aef2=this['editor'],_0x2820da=_0x12aef2['locale'];_0x12aef2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59f519=>{if('formatBlock'!=_0x59f519['type']&&'formatInline'!=_0x59f519['type'])return;const {data:_0x57c9ae}=_0x59f519;if(!_0x57c9ae||'imageStyle'!=_0x57c9ae['commandName'])return;const _0xeb0aea=_0x57c9ae['commandParams'][0x0]['value'];return _0xb1b94b('side'===_0xeb0aea?o(_0x2820da,'FORMAT_SIDE_IMAGE'):_0x504a09[_0xeb0aea]||_0xeb0aea);function _0xb1b94b(_0x2df55c){return{'type':'format','content':o(_0x2820da,'*Format:*\x20%0',_0x2df55c)};}});}}class ut extends _0x3b6a96{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xfe2c63){super(_0xfe2c63),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xdf6e54=this['editor'],_0x3ecfa5=_0xdf6e54['commands']['get']('importWord'),_0x1f5d15=_0xdf6e54['commands']['get']('trackChanges');_0x3ecfa5&&(_0x3ecfa5['on']('execute',(_0x1de411,[,_0x2f6cae])=>{this['_trackChangesValueDuringImport']=_0x1f5d15['value'],_0x2f6cae['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3ecfa5,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3ecfa5,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1f5d15['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xdf6e54['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x47c0da,_0x2773e7){const {suggestions:_0x421de9}=_0x2773e7,_0xf78489=this['editor']['commands']['get']('trackChanges'),_0x598af6=_0xf78489['value'];this['_trackChangesValueDuringImport']!==_0x598af6&&(_0xf78489['execute'](),this['_trackChangesExecuted']=!0x0),_0x421de9&&_0x421de9['forEach'](({id:_0x41d374,type:_0x3ca21b,author:_0x45b9c5,created_at:_0x1f93b2})=>{const _0x4c4313={'id':_0x41d374,'type':_0x3ca21b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x45b9c5,'createdAt':_0x1f93b2?new Date(_0x1f93b2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4c4313);});}}class ft extends _0x3b6a96{['afterInit'](){const _0x35b75f=this['editor'],_0x3c2dd2=_0x35b75f['plugins']['get']('TrackChangesEditing');if(_0x35b75f['plugins']['has']('IndentEditing')&&(_0x3c2dd2['enableCommand']('indent'),_0x3c2dd2['enableCommand']('outdent')),_0x35b75f['plugins']['has']('IndentBlock')){for(const _0x499787 of['indentBlock','outdentBlock'])_0x3c2dd2['enableDefaultAttributesIntegration'](_0x499787);}const _0x5796d5=_0x35b75f['locale'];_0x3c2dd2['registerBlockAttribute']('blockIndent'),_0x3c2dd2['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5796d5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44eb0d=this['editor'],_0x30a0bc=_0x44eb0d['locale'],_0x11a415=_0x44eb0d['plugins']['get']('TrackChangesEditing');_0x11a415['descriptionFactory']['registerDescriptionCallback'](_0x3d108e=>{if('formatBlock'!=_0x3d108e['type'])return;const {data:_0x565ca3}=_0x3d108e;if(!_0x565ca3)return;if('indentBlock'!=_0x565ca3['commandName']&&'outdentBlock'!=_0x565ca3['commandName'])return;const _0x3839a0=_0x3d108e['getItems']()[0x0],_0x5a429b=_0x11a415['descriptionFactory']['getItemLabel'](_0x3839a0);return'indentBlock'==_0x565ca3['commandName']?{'type':'format','content':o(_0x30a0bc,'*Indent:*\x20%0',_0x5a429b)}:'outdentBlock'==_0x565ca3['commandName']?{'type':'format','content':o(_0x30a0bc,'*Outdent:*\x20%0',_0x5a429b)}:void 0x0;});}}class ht extends _0x3b6a96{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x3b6a96{['afterInit'](){const _0x351b87=this['editor'];if(!_0x351b87['plugins']['has']('LinkEditing'))return;const _0x28fc96=_0x351b87['plugins']['get']('TrackChangesEditing'),_0xc7f4fe=_0x351b87['commands']['get']('link');_0x28fc96['enableDefaultAttributesIntegration']('link'),_0x28fc96['enableDefaultAttributesIntegration']('unlink'),_0x28fc96['registerInlineAttribute']('linkHref');for(const _0x84d5ca of _0xc7f4fe['manualDecorators'])_0x28fc96['registerInlineAttribute'](_0x84d5ca['id']),_0x28fc96['descriptionFactory']['registerAttributeLabel'](_0x84d5ca['id'],'link\x20('+_0x84d5ca['label']['toLowerCase']()+')');_0x28fc96['descriptionFactory']['registerDescriptionCallback'](_0x5a16f2=>{if('attribute'!=_0x5a16f2['type'])return;const {data:_0x33788e}=_0x5a16f2;if(!_0x33788e||'linkHref'!=_0x33788e['key'])return;const _0x1c54fe=_0x33788e['newValue'],_0x4d1c1e=_0x351b87['locale'];return{'type':'format','content':null==_0x1c54fe?o(_0x4d1c1e,'*Remove\x20link*'):o(_0x4d1c1e,'*Set\x20link:*\x20%0','\x22'+_0x1c54fe+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c4f21=this['editor'],_0x5a23b1=_0x5c4f21['locale'];_0x5c4f21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28454d=>{if('formatInline'!=_0x28454d['type'])return;const {data:_0x203cf8}=_0x28454d;if(_0x203cf8){if('link'==_0x203cf8['commandName']){const _0x26a1d8=_0x203cf8['commandParams'][0x0];return{'type':'format','content':o(_0x5a23b1,'*Set\x20link:*\x20%0','\x22'+_0x26a1d8+'\x22')};}return'unlink'==_0x203cf8['commandName']?{'type':'format','content':o(_0x5a23b1,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x3b6a96{['afterInit'](){const _0x4ab8a4=this['editor'],_0x4012b0=_0x4ab8a4['locale'];if(!_0x4ab8a4['plugins']['has']('LegacyListEditing'))return;const _0xa3598e=_0x4ab8a4['plugins']['get']('TrackChangesEditing'),_0xee7683=_0x4ab8a4['plugins']['has']('LegacyTodoListEditing');function _0x4b628d(_0x35a49a){return()=>{const _0xbaceaf=_0x4ab8a4['model']['document']['selection'],_0x4eb974=_0x4ab8a4['commands']['get'](_0x35a49a);if(_0x4eb974['value'])return void _0x4ab8a4['execute']('paragraph',{});const _0x44a4e0=_0x35a49a['slice'](0x0,-0x4),_0x9b10ae=function(_0x4fa53b,_0x11906b,_0x3fd61f){let _0x54d5a6=Array['from'](_0x4fa53b)['filter'](_0x3e6b2c=>function(_0x78013f,_0x27a9c9){return _0x27a9c9['checkChild'](_0x78013f['parent'],'listItem')&&!_0x27a9c9['isObject'](_0x78013f);}(_0x3e6b2c,_0x3fd61f));_0x54d5a6=_0x54d5a6['filter'](_0x4c10dd=>!_0x4c10dd['is']('element','listItem')||_0x4c10dd['getAttribute']('listType')!=_0x11906b);const _0x4742f7=new Set();for(const _0x29ddf9 of _0x54d5a6)_0x29ddf9['is']('element','listItem')?_0x4742f7['add'](Le(_0x29ddf9)):_0x4742f7['add'](_0x29ddf9);return Array['from'](_0x4742f7);}(_0xbaceaf['getSelectedBlocks'](),_0x44a4e0,_0x4ab8a4['model']['schema']);_0x4ab8a4['model']['change'](()=>{for(const _0x2bd3e0 of _0x9b10ae)_0xa3598e['markBlockFormat'](_0x2bd3e0,{'commandName':_0x35a49a,'commandParams':[{'forceValue':!_0x4eb974['value']}],'formatGroupId':'blockName'},Ee(_0x2bd3e0));});};}function _0x15ea70(_0x1bf762){return()=>{const _0x3a778a=function(_0xaa2765){let _0x1cdbdd=Array['from'](_0xaa2765);const _0x25e174=_0x1cdbdd['findIndex'](_0x554173=>'listItem'!=_0x554173['name']);return _0x25e174>-0x1&&(_0x1cdbdd=_0x1cdbdd['slice'](0x0,_0x25e174)),_0x1cdbdd;}(_0x4ab8a4['model']['document']['selection']['getSelectedBlocks']()),_0x2023af=_0x4ab8a4['model']['createRange'](_0x4ab8a4['model']['createPositionAt'](_0x3a778a[0x0],'before'),_0x4ab8a4['model']['createPositionAt'](_0x3a778a[_0x3a778a['length']-0x1],'end'));_0x4ab8a4['model']['change'](()=>{_0xa3598e['markBlockFormat'](_0x2023af,{'commandName':_0x1bf762,'commandParams':[],'formatGroupId':'listIndent'},function(_0x41ead9){const _0x10aa97=new Set();for(const _0x165e04 of _0x41ead9){let _0x989720=_0x165e04['nextSibling'];for(;_0x989720&&_0x989720['getAttribute']('listIndent')>_0x165e04['getAttribute']('listIndent');)_0x10aa97['add'](_0x989720),_0x989720=_0x989720['nextSibling'];}return Array['from'](_0x10aa97);}(_0x3a778a));});};}_0xa3598e['enableCommand']('numberedList',_0x4b628d('numberedList')),_0xa3598e['enableCommand']('bulletedList',_0x4b628d('bulletedList')),_0xee7683&&_0xa3598e['enableCommand']('todoList',_0x4b628d('todoList')),_0xa3598e['enableCommand']('indentList',_0x15ea70('indentList')),_0xa3598e['enableCommand']('outdentList',_0x15ea70('outdentList')),_0xee7683&&_0xa3598e['enableCommand']('checkTodoList',()=>{const _0x2dba80=_0x4ab8a4['commands']['get']('checkTodoList'),_0x45aeba=Array['from'](_0x2dba80['_selectedElements']);_0x45aeba['filter'](_0x4d57c3=>_0x4d57c3['getAttribute']('todoListChecked')!=_0x2dba80['value']),_0x4ab8a4['model']['change'](()=>{for(const _0x38847c of _0x45aeba)_0xa3598e['markBlockFormat'](_0x38847c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2dba80['value']}]});});}),_0xa3598e['descriptionFactory']['registerElementLabel']('listItem',_0x47f767=>o(_0x4012b0,'ELEMENT_LIST_ITEM',_0x47f767)),_0xa3598e['descriptionFactory']['registerDescriptionCallback'](_0x36cf87=>{if('formatBlock'!=_0x36cf87['type']&&'formatInline'!=_0x36cf87['type'])return;const {data:_0x1f1e3f}=_0x36cf87;if(_0x1f1e3f){if('numberedList'==_0x1f1e3f['commandName']||'bulletedList'==_0x1f1e3f['commandName']||'todoList'==_0x1f1e3f['commandName'])switch(_0x1f1e3f['commandName']['replace']('List','')){case'bulleted':return _0xba18cd(o(_0x4012b0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xba18cd(o(_0x4012b0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xba18cd(o(_0x4012b0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1f1e3f['commandName'])return{'type':'format','content':o(_0x4012b0,'*Indent:*\x20%0',o(_0x4012b0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1f1e3f['commandName'])return{'type':'format','content':o(_0x4012b0,'*Outdent:*\x20%0',o(_0x4012b0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1f1e3f['commandName'])return _0x1f1e3f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4012b0,'*Check\x20item*')}:{'type':'format','content':o(_0x4012b0,'*Uncheck\x20item*')};}function _0xba18cd(_0xfc77c9){return{'type':'format','content':o(_0x4012b0,'*Change\x20to:*\x20%0',_0xfc77c9)};}});}}function Le(_0x187eaf){const _0x57c693=_0x187eaf['getAttribute']('listIndent');if(0x0==_0x57c693)return _0x187eaf;let _0x20e1d2=_0x187eaf;for(;_0x187eaf['previousSibling']&&_0x187eaf['previousSibling']['is']('element','listItem');){const _0xabeda3=_0x187eaf['previousSibling']['getAttribute']('listIndent');if(_0xabeda3==_0x57c693)_0x20e1d2=_0x187eaf['previousSibling'];else{if(_0xabeda3<_0x57c693)break;}_0x187eaf=_0x187eaf['previousSibling'];}return _0x20e1d2;}function Ee(_0x3372b0){const _0xcf5fb1=[];if(_0x3372b0['is']('element','listItem')&&_0x3372b0['getAttribute']('listIndent')>0x0){let _0x39d09f=_0x3372b0['nextSibling'];for(;_0x39d09f&&'listItem'==_0x39d09f['name']&&_0x39d09f['getAttribute']('listIndent')==_0x3372b0['getAttribute']('listIndent');)_0xcf5fb1['push'](_0x39d09f),_0x39d09f=_0x39d09f['nextSibling'];}return _0xcf5fb1;}class Q extends _0x3b6a96{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xa8bb15=this['editor']['config']['get']('list.properties'),_0x5ccbaf=this['editor']['plugins']['get']('TrackChangesEditing');_0xa8bb15['styles']&&_0x5ccbaf['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xa8bb15['reversed']&&_0x5ccbaf['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xa8bb15['startIndex']&&_0x5ccbaf['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5ccbaf['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x189316,_0x446837={}){const _0x3c362d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x438acb=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3c362d['markMultiRangeBlockFormat'](_0x438acb,{'commandName':'listStyle','commandParams':[{'type':_0x446837['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x38a4ed,_0x313f11={}){const _0x5d6e13=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b0b80=this['_getSuggestionBlocks'](_0x7eeefe=>_0x7eeefe['is']('element','listItem')&&'numbered'===_0x7eeefe['getAttribute']('listType'));if(_0x5b0b80['length']<0x1)return;const _0x149d66=_0x5b0b80['map'](_0x5a2737=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a2737,'before'),this['editor']['model']['createPositionAt'](_0x5a2737,0x0)));this['editor']['model']['change'](()=>{_0x5d6e13['markMultiRangeBlockFormat'](_0x149d66,{'commandName':'listReversed','commandParams':[{'reversed':_0x313f11['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x20c3f2,_0x2ed484={}){const _0x24caff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x614dd=this['_getSuggestionBlocks'](_0x5fe147=>_0x5fe147['is']('element','listItem')&&'numbered'===_0x5fe147['getAttribute']('listType'));if(_0x614dd['length']<0x1)return;const _0x2ff8a8=_0x614dd['map'](_0x4befee=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4befee,'before'),this['editor']['model']['createPositionAt'](_0x4befee,0x0)));this['editor']['model']['change'](()=>{_0x24caff['markMultiRangeBlockFormat'](_0x2ff8a8,{'commandName':'listStart','commandParams':[{'startIndex':_0x2ed484['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2242a7){if('formatBlock'!=_0x2242a7['type']&&'formatInline'!=_0x2242a7['type'])return;const _0x51c041=this['editor']['locale'],{data:_0x1034a1}=_0x2242a7;if(!_0x1034a1)return;let _0x265425,_0x4eaea5;switch(_0x1034a1['commandName']){case'listStyle':_0x265425='*Change\x20to:*\x20%0',_0x4eaea5={'type':'format','content':o(_0x51c041,_0x265425,o(_0x51c041,this['_getTranslationKeyForListStyle'](_0x1034a1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x265425=_0x1034a1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4eaea5={'type':'format','content':o(_0x51c041,_0x265425)};break;case'listStart':_0x265425='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4eaea5={'type':'format','content':o(_0x51c041,_0x265425,_0x1034a1['commandParams'][0x0]['startIndex'])};}return _0x4eaea5;}['_getSuggestionBlocksForListStyle'](){const _0x57372c=this['editor']['plugins']['get']('LegacyListUtils');let _0x53226e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x53226e[0x0]?.['is']('element','listItem')&&_0x53226e['unshift'](..._0x57372c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x53226e[_0x53226e['length']-0x1]?.['is']('element','listItem')&&_0x53226e['push'](..._0x57372c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x53226e=[...new Set(_0x53226e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x53226e=_0x53226e['filter'](_0x18e2cc=>_0x18e2cc['is']('element','listItem'))),_0x53226e;}['_getSuggestionBlocks'](_0x443e73){const _0x241445=this['editor']['plugins']['get']('LegacyListUtils');let _0x3f3cae=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x443e73)['map'](_0x253716=>{const _0x4288dd=this['editor']['model']['createPositionAt'](_0x253716,0x0);return[..._0x241445['getSiblingNodes'](_0x4288dd,'backward'),..._0x241445['getSiblingNodes'](_0x4288dd,'forward')];})['flat']();return _0x3f3cae=[...new Set(_0x3f3cae)],_0x3f3cae;}['_getTranslationKeyForListStyle'](_0x5e9a89){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5e9a89)||'default')['toUpperCase']()+'_LIST_'+_0x5e9a89['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x3b6a96{['afterInit'](){const _0x588852=this['editor'];if(!_0x588852['plugins']['has']('MediaEmbedEditing'))return;const _0x165d7=_0x588852['plugins']['get']('TrackChangesEditing'),_0xf905b6=_0x588852['locale'];_0x165d7['enableCommand']('mediaEmbed'),_0x165d7['descriptionFactory']['registerElementLabel']('media',_0x15ce4a=>o(_0xf905b6,'ELEMENT_MEDIA',_0x15ce4a)),_0x588852['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4f6087,{writer:_0x27b270,options:_0x5a0e97})=>{if(_0x5a0e97['showSuggestionHighlights'])return _0x27b270['createEmptyElement']('div');},'converterPriority':'high'}),_0x588852['data']['downcastDispatcher']['on']('attribute:url:media',(_0x50ed76,_0x54ac55,_0x5e594f)=>{_0x5e594f['options']['showSuggestionHighlights']&&_0x50ed76['stop']();},{'priority':'high'});}}class pt extends _0x3b6a96{['afterInit'](){const _0x3f9ac6=this['editor'];_0x3f9ac6['plugins']['has']('MentionEditing')&&_0x3f9ac6['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x3b6a96{['afterInit'](){const _0x1d75f8=this['editor'];if(!_0x1d75f8['plugins']['has']('MergeFieldsEditing'))return;const _0x1561b1=_0x1d75f8['plugins']['get']('TrackChangesEditing'),_0x5bf97b=_0x1d75f8['locale'];_0x1561b1['enableCommand']('insertMergeField'),_0x1561b1['enableCommand']('insertMergeFieldBlock'),_0x1561b1['enableCommand']('insertMergeFieldImage'),_0x1561b1['descriptionFactory']['registerElementLabel']('mergeField',_0x34ff6b=>o(_0x5bf97b,'ELEMENT_MERGE_FIELD',_0x34ff6b)),_0x1561b1['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x291395=>o(_0x5bf97b,'ELEMENT_MERGE_FIELD',_0x291395)),_0x1561b1['descriptionFactory']['registerDescriptionCallback'](_0x552a35=>{if('insertion'!=_0x552a35['type']&&'deletion'!=_0x552a35['type'])return;const _0x517b6e=_0x552a35['getContainedElement']();if(null==_0x517b6e)return;const _0x2a0020=_0x1d75f8['plugins']['get']('MergeFieldsEditing');let _0x1bc65f;switch(_0x2a0020['getMergeFieldType'](_0x517b6e)){case null:return;case'image':{const _0x3b61da=_0x2a0020['unwrapAffixes'](_0x517b6e['getAttribute']('src'));_0x1bc65f=_0x2a0020['getLabel'](_0x3b61da)||_0x3b61da;break;}default:{const _0x57f8b9=_0x517b6e['getAttribute']('id');_0x1bc65f=_0x2a0020['getLabel'](_0x57f8b9)||_0x57f8b9;break;}}return'insertion'==_0x552a35['type']?{'type':'insertion','content':o(_0x5bf97b,'*Insert:*\x20%0','\x22'+_0x1bc65f+'\x22\x20'+o(_0x5bf97b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5bf97b,'*Remove:*\x20%0','\x22'+_0x1bc65f+'\x22\x20'+o(_0x5bf97b,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x3b6a96{['afterInit'](){const _0x18ee05=this['editor'],_0x711100=_0x18ee05['plugins']['get']('TrackChangesEditing');_0x18ee05['plugins']['has']('MultiLevelList')&&(_0x711100['enableDefaultAttributesIntegration']('multiLevelList'),_0x711100['registerBlockAttribute']('listMarkerStyle'),_0x711100['descriptionFactory']['registerDescriptionCallback'](_0x99d63a=>this['handleDescriptions'](_0x99d63a)));}['handleDescriptions'](_0x3ca867){const _0x1974ab=this['editor']['locale'],{data:_0x490df9}=_0x3ca867,_0x45a2cb={'type':'format','content':''};if(_0x490df9&&'listMarkerStyle'==_0x490df9['key']){if(!_0x490df9['oldValue'])return{'type':'format','content':o(_0x1974ab,'*Set\x20format:*\x20%0',o(_0x1974ab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x490df9['newValue']+')'};if(!_0x490df9['newValue']){let _0x919479=_0x3ca867['head'];for(;_0x919479;){if(_0x919479['data']&&'listType'==_0x919479['data']['key']&&_0x919479['data']['newValue'])return _0x45a2cb;_0x919479=_0x919479['next'];}return{'type':'format','content':o(_0x1974ab,'*Remove\x20format:*\x20%0',o(_0x1974ab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x490df9['oldValue']+')'};}}}}class bt extends _0x3b6a96{['afterInit'](){const _0x3548ec=this['editor'];if(!_0x3548ec['plugins']['has']('PageBreakEditing'))return;_0x3548ec['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3dcfab=_0x3548ec['plugins']['get']('TrackChangesEditing'),_0x4bd42f=_0x3548ec['locale'];_0x3dcfab['descriptionFactory']['registerElementLabel']('pageBreak',_0x4a9145=>o(_0x4bd42f,'ELEMENT_PAGE_BREAK',_0x4a9145));}}class yt extends _0x3b6a96{['afterInit'](){const _0xb46ee6=this['editor'];if(!_0xb46ee6['plugins']['has']('Paragraph'))return;const _0x1ff1f0=_0xb46ee6['locale'],_0x211b18=_0xb46ee6['plugins']['get']('TrackChangesEditing');_0x211b18['descriptionFactory']['registerElementLabel']('paragraph',_0x38e025=>o(_0x1ff1f0,'ELEMENT_PARAGRAPH',_0x38e025)),_0x211b18['enableDefaultAttributesIntegration']('paragraph'),_0x211b18['enableCommand']('insertParagraph'),_0xb46ee6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xb46ee6),{'priority':'highest'}),_0xb46ee6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x180034,_0x1300e8,_0x36e75f)=>{_0x36e75f['options']['showSuggestionHighlights']&&nr(_0xb46ee6,{'showActiveMarker':!0x1})(_0x180034,_0x1300e8,_0x36e75f);},{'priority':'highest'});const _0x41955d=_0x211b18['descriptionFactory'];_0x41955d['registerDescriptionCallback'](_0x20567f=>{if('insertion'!==_0x20567f['type'])return;const {start:_0x409965,end:_0x405236}=_0x20567f['getFirstRange']();if(!_0x409965['isTouching'](_0x405236)||!_0x409965['nodeAfter'])return;const _0x4b693d=_0xb46ee6['model']['schema'],_0x4fdbcc=_0x409965['nodeAfter'];return _0x4b693d['isBlock'](_0x4fdbcc)&&!_0x4b693d['isLimit'](_0x4fdbcc)&&_0x4b693d['checkChild'](_0x4fdbcc,'$text')?{'type':'insertion','content':o(_0x1ff1f0,'*Insert:*\x20%0',_0x41955d['getItemLabel'](_0x4fdbcc,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc3b1a1=this['editor'],_0x30a6f7=_0xc3b1a1['locale'];_0xc3b1a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2121b0=>{if('formatBlock'!=_0x2121b0['type'])return;const {data:_0x46c8f6}=_0x2121b0;return _0x46c8f6&&'paragraph'==_0x46c8f6['commandName']?{'type':'format','content':o(_0x30a6f7,'*Change\x20to:*\x20%0',o(_0x30a6f7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x768f5e,{showActiveMarker:_0x322230=!0x0}={}){return(_0x2b5c11,_0x3ca59d,_0x5c63fd)=>{const _0x3ae5ed=_0x768f5e['plugins']['get']('TrackChangesEditing'),_0x545a63=_0x3ca59d['markerRange']['start'],_0x363eaa=_0x3ca59d['markerRange']['end'],_0x1587c3=_0x768f5e['model']['schema'];if(!_0x545a63['isTouching'](_0x363eaa)||!_0x545a63['nodeAfter'])return;const _0x1a67ad=_0x545a63['nodeAfter'];if(_0x1587c3['isBlock'](_0x1a67ad)&&!_0x1587c3['isLimit'](_0x1a67ad)&&_0x1587c3['checkChild'](_0x1a67ad,'$text')){if(!_0x5c63fd['consumable']['consume'](_0x3ca59d['markerRange'],_0x2b5c11['name']))return;const {authorId:_0x564f3a}=_0x3ae5ed['_splitMarkerName'](_0x3ca59d['markerName']),_0xa903d9=_0x5c63fd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x564f3a}),_0x26055d=_0x5c63fd['mapper']['toViewPosition'](_0x363eaa);_0x322230&&_0x3ae5ed['activeMarkers']['includes'](_0x3ca59d['markerName'])&&_0x5c63fd['writer']['addClass']('ck-suggestion-marker--active',_0xa903d9),_0x5c63fd['writer']['insert'](_0x26055d,_0xa903d9),_0x5c63fd['mapper']['bindElementToMarker'](_0xa903d9,_0x3ca59d['markerName']);}};}class jt extends _0x3b6a96{['afterInit'](){const _0x58848b=this['editor'];_0x58848b['commands']['get']('replaceSource')&&_0x58848b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x3b6a96{['afterInit'](){const _0x1064f0=this['editor'];if(!_0x1064f0['plugins']['has']('RemoveFormatEditing'))return;_0x1064f0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cc6af=this['editor'];_0x2cc6af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x372fb4=>{if('formatBlock'!=_0x372fb4['type']&&'formatInline'!=_0x372fb4['type'])return;const {data:_0x141056}=_0x372fb4;return _0x141056&&'removeFormat'==_0x141056['commandName']?{'type':'format','content':o(_0x2cc6af['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x3b6a96{['afterInit'](){const _0xe843c8=this['editor'];if(!_0xe843c8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x374ccf=_0xe843c8['plugins']['get']('TrackChangesEditing');_0x374ccf['enableCommand']('goToPreviousRestrictedEditingException'),_0x374ccf['enableCommand']('goToNextRestrictedEditingException');const _0x3926b8=_0xe843c8['plugins']['get']('RestrictedEditingModeEditing');_0x3926b8['enableCommand']('trackChanges'),_0x3926b8['enableCommand']('acceptSuggestion'),_0x3926b8['enableCommand']('discardSuggestion'),_0x3926b8['enableCommand']('acceptAllSuggestions'),_0x3926b8['enableCommand']('discardAllSuggestions'),_0x3926b8['enableCommand']('acceptSelectedSuggestions'),_0x3926b8['enableCommand']('discardSelectedSuggestions');}}class It extends _0x3b6a96{static get['requires'](){return[_0x4b8f8b];}['init'](){const _0x51ac15=this['editor'],_0x23d90c=_0x51ac15['plugins']['get']('TrackChangesEditing');_0x23d90c['enableCommand']('shiftEnter'),_0x51ac15['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x51ac15),{'priority':'high'}),_0x51ac15['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x51ac15),{'priority':'high'}),_0x51ac15['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1640c1,_0x193ead,_0xe46e97)=>{_0xe46e97['options']['showSuggestionHighlights']&&je(_0x51ac15,{'showActiveMarker':!0x1})(_0x1640c1,_0x193ead,_0xe46e97);}),_0x23d90c['descriptionFactory']['registerElementLabel']('softBreak',_0x5237ec=>o(_0x51ac15['locale'],'ELEMENT_LINE_BREAK',_0x5237ec));}}function je(_0xd1ea33,{showActiveMarker:_0x34391a=!0x0}={}){return(_0x42ac11,_0x144af3,_0x4f86be)=>{const _0x250b1c=_0xd1ea33['plugins']['get']('TrackChangesEditing');if(!_0x4f86be['consumable']['test'](_0x144af3['markerRange'],_0x42ac11['name']))return;const _0x2c9d0e=_0xd1ea33['model'];for(const _0x2da58e of _0x144af3['markerRange']['getItems']()){if(!_0x2da58e['is']('element','softBreak'))continue;const _0x3b6261='deletion'==_0x144af3['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x21e518}=_0x250b1c['_splitMarkerName'](_0x144af3['markerName']),_0x146b0d=_0x4f86be['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3b6261,'data-author-id':_0x21e518}),_0x287436=_0x4f86be['mapper']['toViewPosition'](_0x2c9d0e['createPositionBefore'](_0x2da58e));_0x34391a&&_0x250b1c['activeMarkers']['includes'](_0x144af3['markerName'])&&_0x4f86be['writer']['addClass']('ck-suggestion-marker--active',_0x146b0d),_0x4f86be['writer']['insert'](_0x287436,_0x146b0d),_0x4f86be['mapper']['bindElementToMarker'](_0x146b0d,_0x144af3['markerName']);}};}class vt extends _0x3b6a96{['afterInit'](){const _0x245bf2=this['editor'],_0x1455d4=_0x245bf2['model'],_0x58dafb=_0x245bf2['locale'];if(!_0x245bf2['plugins']['has']('StandardEditingModeEditing'))return;const _0x441abe=_0x245bf2['plugins']['get']('TrackChangesEditing'),_0x2a0751='restrictedEditingException',_0xe9083=_0x245bf2['commands']['get'](_0x2a0751);_0x441abe['enableCommand'](_0x2a0751,(_0x2d8bff,_0x9520d7={})=>{const _0x4cadb9=_0x1455d4['document']['selection'];if(_0x4cadb9['isCollapsed'])return void _0x2d8bff(_0x9520d7);const _0x539394=void 0x0!==_0x9520d7['forceValue']?_0x9520d7['forceValue']:!_0xe9083['value'];_0x1455d4['change'](()=>{const _0x184d28=Array['from'](_0x4cadb9['getRanges']());for(const _0x1c236c of _0x184d28){const _0x558553=_0x539394?[_0x1c236c]:io(_0x2a0751,_0x1c236c,_0x1455d4);for(const _0x478cb8 of _0x558553)_0x441abe['markInlineFormat'](_0x478cb8,{'commandName':_0x2a0751,'commandParams':[{'forceValue':_0x539394}]});}});}),_0x441abe['descriptionFactory']['registerDescriptionCallback'](_0x4920f2=>{if('formatBlock'!=_0x4920f2['type']&&'formatInline'!=_0x4920f2['type'])return;const {data:_0x2d0a4f}=_0x4920f2;return _0x2d0a4f&&_0x2d0a4f['commandName']==_0x2a0751?_0x2d0a4f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58dafb,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x58dafb,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x3b6a96{['afterInit'](){const _0x4effc5=this['editor'];if(!_0x4effc5['plugins']['has']('Style')||!_0x4effc5['plugins']['has']('DataSchema'))return;const _0x27a141=_0x4effc5['plugins']['get']('TrackChangesEditing'),_0x3ceb07=_0x4effc5['locale'],_0x4671ad=_0x4effc5['config']['get']('style')||{},_0x7698e6=_0x4effc5['plugins']['get']('GeneralHtmlSupport'),_0x8cc70d=_0x4effc5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4effc5['plugins']['get']('DataSchema'),_0x4671ad['definitions']);_0x27a141['enableDefaultAttributesIntegration']('style');const _0x38e735=new Set();for(const _0x1d9a25 of _0x8cc70d['block']){const _0x579f56=_0x7698e6['getGhsAttributeNameForElement'](_0x1d9a25['element']);_0x38e735['add'](_0x579f56);}const _0x33dbf0=new Set();for(const _0x160b2b of _0x8cc70d['inline']){const _0x5939dc=_0x7698e6['getGhsAttributeNameForElement'](_0x160b2b['element']);_0x33dbf0['add'](_0x5939dc);for(const _0x489606 of _0x160b2b['ghsAttributes'])_0x33dbf0['add'](_0x489606);}for(const _0x20c447 of _0x38e735)_0x27a141['registerBlockAttribute'](_0x20c447),_0x27a141['descriptionFactory']['registerAttributeLabel'](_0x20c447,o(_0x3ceb07,'FORMAT_STYLE'));for(const _0x58fe17 of _0x33dbf0)_0x27a141['registerInlineAttribute'](_0x58fe17),_0x27a141['descriptionFactory']['registerAttributeLabel'](_0x58fe17,o(_0x3ceb07,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x86a1b7=this['editor'],_0x249491=_0x86a1b7['locale'];_0x86a1b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c8b43=>{if('formatBlock'!=_0x2c8b43['type']&&'formatInline'!=_0x2c8b43['type'])return;const {data:_0x316489}=_0x2c8b43;return _0x316489&&'style'===_0x316489['commandName']?_0x316489['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x249491,'*Set\x20format:*\x20%0',_0x316489['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x249491,'*Remove\x20format:*\x20%0',_0x316489['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3b6a96{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xd24696){super(_0xd24696),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x557b0b=this['editor'],_0x31137f=_0x557b0b['model']['document']['selection'];if(!_0x557b0b['plugins']['has']('TableEditing'))return;const _0x5e03d7=_0x557b0b['locale'],_0x8718ef=_0x557b0b['plugins']['get']('TrackChangesEditing'),_0x1eb0ce=_0x557b0b['plugins']['get']('TableUtils');_0x8718ef['descriptionFactory']['registerElementLabel']('table',_0x543323=>o(_0x5e03d7,'ELEMENT_TABLE',_0x543323)),this['_setupColumnsRowsFixing'](),_0x8718ef['enableCommand']('insertTable'),_0x8718ef['enableCommand']('selectTableRow'),_0x8718ef['enableCommand']('selectTableColumn');for(const _0x409427 of['insertTableRowAbove','insertTableRowBelow']){const _0x319b95=_0x557b0b['commands']['get'](_0x409427);_0x8718ef['enableCommand'](_0x409427,_0x1ff50c=>{_0x557b0b['model']['change'](_0x45eba7=>{_0x1ff50c();const _0x1e9285='above'===_0x319b95['order'],_0x208379=_0x1eb0ce['getSelectionAffectedTableCells'](_0x31137f),_0x2a4fed=_0x1eb0ce['getRowIndexes'](_0x208379),_0x1f6578=_0x1e9285?_0x2a4fed['first']-0x1:_0x2a4fed['last']+0x1,_0xcd7e50=_0x208379[0x0]['findAncestor']('table'),_0xd5fcb4=_0x1eb0ce['createTableWalker'](_0xcd7e50,{'startRow':_0x1f6578,'endRow':_0x1f6578}),_0x47d16f=Array['from'](_0xd5fcb4)['map'](_0x48281d=>_0x45eba7['createRangeOn'](_0x48281d['cell']));_0x8718ef['markMultiRangeInsertion'](_0x47d16f,'tableRow');});});}for(const _0x22173a of['insertTableColumnLeft','insertTableColumnRight']){const _0x563086=_0x557b0b['commands']['get'](_0x22173a);_0x8718ef['enableCommand'](_0x22173a,_0xfcba40=>{_0x557b0b['model']['change'](_0x4f7b73=>{_0xfcba40();const _0x5aa581='left'===_0x563086['order'],_0x485474=_0x1eb0ce['getSelectionAffectedTableCells'](_0x31137f),_0x5d735a=_0x1eb0ce['getColumnIndexes'](_0x485474),_0x22cdc1=_0x5aa581?_0x5d735a['first']-0x1:_0x5d735a['last']+0x1,_0xf16919=_0x485474[0x0]['findAncestor']('table'),_0x6eaac1=_0x1eb0ce['createTableWalker'](_0xf16919,{'startRow':0x0,'column':_0x22cdc1,'includeAllSlots':!0x1}),_0x2da600=Array['from'](_0x6eaac1)['map'](_0x362804=>_0x4f7b73['createRangeOn'](_0x362804['cell']));_0x8718ef['markMultiRangeInsertion'](_0x2da600,'tableColumn');});});}for(const _0x65b49c of['removeTableRow','removeTableColumn']){const _0x5e00a7=_0x65b49c['substr'](0xb),_0x1f2a00=_0x5e00a7['toLowerCase'](),_0x3087e2=_0x1f2a00['substr'](0x0,0x3)+'span',_0x379b3e='table'+_0x5e00a7,_0x4273a0='min'+_0x5e00a7,_0x59c266='max'+_0x5e00a7;_0x8718ef['enableCommand'](_0x65b49c,()=>{_0x557b0b['model']['change'](_0x5e34df=>{const _0x343f57=_0x1eb0ce['getSelectionAffectedTableCells'](_0x31137f),_0x3ffabd=_0x343f57[0x0]['findAncestor']('table');let _0x1cfdc3;if('removeTableRow'==_0x65b49c){const _0x92228d=_0x1eb0ce['getRowIndexes'](_0x343f57);_0x1cfdc3={'startRow':_0x92228d['first'],'endRow':_0x92228d['last'],'includeAllSlots':!0x0};}else{const _0x3d3adb=_0x1eb0ce['getColumnIndexes'](_0x343f57);_0x1cfdc3={'startColumn':_0x3d3adb['first'],'endColumn':_0x3d3adb['last'],'includeAllSlots':!0x0};}const _0x3d72e4=_0x1eb0ce['createTableWalker'](_0x3ffabd,_0x1cfdc3),_0x152796=Array['from'](_0x3d72e4)['map'](({cell:_0x3e39bf})=>_0x3e39bf),_0x288d37=Ne(_0x152796['filter'](_0x324d3f=>_0x324d3f['hasAttribute'](_0x3087e2))),_0x56c47d=Ne(_0x152796['filter'](_0x18d4a0=>!_0x18d4a0['hasAttribute'](_0x3087e2)))['map'](_0x54989a=>_0x5e34df['createRangeOn'](_0x54989a)),_0x346083=_0x8718ef['markMultiRangeDeletion'](_0x56c47d,_0x379b3e);if(_0x346083&&('tableRow'==_0x346083['subType']||'tableColumn'==_0x346083['subType'])){const _0x1c5491=this['_getSuggestionCoords'](_0x346083);for(const _0x508869 of _0x288d37){const _0xdcc2d5=_0x5e34df['createRangeOn'](_0x508869),_0x489771=_0x1eb0ce['getCellLocation'](_0x508869),_0xff23b=_0x508869['getAttribute'](_0x3087e2)-0x1,_0x432888=_0x1c5491[_0x4273a0],_0x412d6d=_0x1c5491[_0x59c266];_0x432888<=_0x489771[_0x1f2a00]&&_0x489771[_0x1f2a00]+_0xff23b<=_0x412d6d&&_0x346083['addRange'](_0xdcc2d5);}}});});}function _0x8e9474(_0x364b3d){const _0x541813=Array['from'](_0x31137f['getRanges']())['map'](_0x40ca7f=>_0x4f6ba5['fromRange'](_0x40ca7f));_0x557b0b['model']['change'](_0x1e1e5a=>{const _0x1ce137=_0x1e1e5a['batch'];_0x364b3d=_0x364b3d['filter'](_0x2e11da=>'$graveyard'!=_0x2e11da['root']['rootName']),_0x1e1e5a['setSelection'](_0x364b3d),_0x557b0b['commands']['get']('removeTableRow')['refresh'](),_0x557b0b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x557b0b['model']['enqueueChange'](()=>{_0x557b0b['model']['enqueueChange'](_0x1ce137,_0x1f7462=>{const _0xac3306=_0x541813['filter'](_0x2e570b=>'$graveyard'!=_0x2e570b['root']['rootName']);_0xac3306['length']>0x0&&_0x1f7462['setSelection'](_0xac3306);for(const _0x5cce99 of _0x541813)_0x5cce99['detach']();});});});}function _0x584e5d(_0x165aed){_0x557b0b['model']['change'](_0x14f7f5=>{const _0xfe6ca2=Array['from'](_0x31137f['getRanges']())['map'](_0x211f1b=>_0x4f6ba5['fromRange'](_0x211f1b)),_0x46b1f3=[];for(const _0x4da84e of _0x165aed)for(const _0x5186bd of _0x4da84e['getItems']({'shallow':!0x0}))_0x46b1f3['push'](_0x5186bd);for(const _0x5a08a4 of _0x46b1f3)'$graveyard'!=_0x5a08a4['root']['rootName']&&(_0x14f7f5['setSelection'](_0x14f7f5['createPositionAt'](_0x5a08a4,0x0)),_0x557b0b['commands']['get']('removeTableColumn')['refresh'](),_0x557b0b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2ece3=_0xfe6ca2['filter'](_0xa98176=>'$graveyard'!=_0xa98176['root']['rootName']);_0x2ece3['length']>0x0&&_0x14f7f5['setSelection'](_0x2ece3);for(const _0x5c2b3c of _0xfe6ca2)_0x5c2b3c['detach']();});}function _0x4763de(_0x688a62,_0x4d007b){return _0x4d007b['every'](_0x20c99d=>_0x688a62['some'](_0x3b4967=>_0x3b4967['end']['isEqual'](_0x20c99d['start'])||_0x20c99d['end']['isEqual'](_0x3b4967['start'])));}function _0x3fdc05(_0x5d44bc,_0x204f1c){return!_0x5d44bc['some'](_0x58360a=>_0x204f1c['some'](_0x16144e=>_0x58360a['isIntersecting'](_0x16144e)))&&_0x5d44bc['some'](_0x11083b=>_0x204f1c['some'](_0x249159=>_0x11083b['end']['isTouching'](_0x249159['start'])));}_0x557b0b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x206d44,_0x47c20c,_0x4713ab)=>{if(!_0x4713ab['options']['showSuggestionHighlights'])return;const _0x492e92=_0x47c20c['item'];if(!_0x492e92)return;const _0x151099=_0x4713ab['mapper']['toViewElement'](_0x492e92);function _0x1dbadb(_0x8041e5){return Array['isArray'](_0x8041e5)?_0x8041e5:[_0x8041e5];}_0x151099&&'tableCell'===_0x492e92['name']&&_0x3d73e1(_0x151099,_0x4713ab['writer'],(_0x1c5405,_0xa30886,_0x5f0b5e)=>_0x5f0b5e['addClass'](_0x1dbadb(_0xa30886['classes']),_0x1c5405),(_0x2f062b,_0x282add,_0x235c8d)=>_0x235c8d['removeClass'](_0x1dbadb(_0x282add['classes']),_0x2f062b));},{'priority':'highest'}),_0x8718ef['descriptionFactory']['registerDescriptionCallback'](_0x5de683=>{if('insertion'!=_0x5de683['type']&&'deletion'!=_0x5de683['type'])return;const _0x563bf3=_0x5de683['getContainedElement']();if(null!=_0x563bf3&&_0x563bf3['is']('element','table')){if('insertion'==_0x5de683['type']){const _0x1cd228=_0x5de683['getItems']()['filter'](_0x51a877=>_0x51a877['is']('$textProxy'))['map'](_0x5b8209=>_0x5b8209['data']);if(_0x1cd228['length'])return{'type':'insertion','content':o(_0x5e03d7,'*Insert:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1cd228['join']('\x20')+'\x22'))};}if('deletion'==_0x5de683['type']){const _0x1da61d=_0x5de683['getItems']()['filter'](_0x554f06=>_0x554f06['is']('$textProxy'))['map'](_0x8fead1=>_0x8fead1['data']);if(_0x1da61d['length'])return{'type':'deletion','content':o(_0x5e03d7,'*Remove:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1da61d['join']('\x20')+'\x22'))};}}}),_0x8718ef['descriptionFactory']['registerDescriptionCallback'](_0x1cd8af=>{if('tableRow'==_0x1cd8af['subType']){const _0x255da7=_0x1cd8af['getItems']()['filter'](_0x51f695=>_0x51f695['is']('$textProxy'))['map'](_0x36609e=>_0x36609e['data']),_0x45378d=this['_getSuggestionCoords'](_0x1cd8af),_0x1d69ea=_0x45378d['maxRow']-_0x45378d['minRow']+0x1;if('insertion'==_0x1cd8af['type'])return _0x255da7['length']?{'type':'insertion','content':o(_0x5e03d7,'*Insert:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d69ea,'\x22'+_0x255da7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5e03d7,'*Insert:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_ROW',_0x1d69ea))};if('deletion'==_0x1cd8af['type'])return _0x255da7['length']?{'type':'deletion','content':o(_0x5e03d7,'*Remove:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d69ea,'\x22'+_0x255da7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5e03d7,'*Remove:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_ROW',_0x1d69ea))};}if('tableColumn'==_0x1cd8af['subType']){const _0x20c92a=_0x1cd8af['getItems']()['filter'](_0x3b834f=>_0x3b834f['is']('$textProxy'))['map'](_0x417906=>_0x417906['data']),_0x51ace0=this['_getSuggestionCoords'](_0x1cd8af),_0x16b4e6=_0x51ace0['maxColumn']-_0x51ace0['minColumn']+0x1;if('insertion'==_0x1cd8af['type'])return _0x20c92a['length']?{'type':'insertion','content':o(_0x5e03d7,'*Insert:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x16b4e6,'\x22'+_0x20c92a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5e03d7,'*Insert:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_COLUMN',_0x16b4e6))};if('deletion'==_0x1cd8af['type'])return _0x20c92a['length']?{'type':'deletion','content':o(_0x5e03d7,'*Remove:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x16b4e6,'\x22'+_0x20c92a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5e03d7,'*Remove:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_COLUMN',_0x16b4e6))};}}),_0x8718ef['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x8e9474),_0x8718ef['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x8e9474),_0x8718ef['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x584e5d),_0x8718ef['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x584e5d),_0x8718ef['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4763de),_0x8718ef['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4763de),_0x8718ef['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3fdc05),_0x8718ef['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3fdc05);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2169e7=this['editor'],_0x207801=_0x2169e7['model']['document']['selection'];return(_0x4ea0fd,_0x283261)=>{_0x2169e7['model']['change'](_0x384493=>{const {commandName:_0xc15419,commandParams:_0x51d946}=_0x283261;let _0x70086c=_0x4ea0fd[0x0]['end']['nodeBefore'];_0x51d946&&_0x51d946[0x0]&&!0x1===_0x51d946[0x0]['forceValue']&&(_0x70086c=_0x4ea0fd[0x0]['start']['nodeAfter']);const _0x1abffb=_0x384493['createRangeIn'](_0x70086c);if('$graveyard'==_0x1abffb['root']['rootName'])return;const _0x456a6f=Array['from'](_0x207801['getRanges']())['map'](_0xd2d173=>_0x4f6ba5['fromRange'](_0xd2d173));_0x384493['setSelection'](_0x1abffb),_0x2169e7['commands']['get'](_0xc15419)['refresh'](),_0x51d946['push']({'forceDefaultExecution':!0x0}),_0x2169e7['execute'](_0xc15419,..._0x51d946);const _0x44b17d=_0x456a6f['filter'](_0x28163b=>'$graveyard'!=_0x28163b['root']['rootName']);_0x44b17d['length']>0x0&&_0x384493['setSelection'](_0x44b17d);for(const _0x14dec1 of _0x456a6f)_0x14dec1['detach']();});};}['_getCoordsForCells'](_0x80a920){const _0x2e42ca=this['editor']['plugins']['get']('TableUtils');let _0x5d461f=Number['MAX_SAFE_INTEGER'],_0xf5fdcd=Number['MIN_SAFE_INTEGER'],_0x2d3324=Number['MAX_SAFE_INTEGER'],_0x2811a4=Number['MIN_SAFE_INTEGER'];for(const _0x1773ad of _0x80a920){if('$graveyard'==_0x1773ad['root']['rootName'])continue;const {row:_0x10e24c,column:_0x59d90a}=_0x2e42ca['getCellLocation'](_0x1773ad),_0x2f3821=_0x1773ad['hasAttribute']('rowspan')?_0x1773ad['getAttribute']('rowspan')-0x1:0x0,_0xa69ea4=_0x1773ad['hasAttribute']('colspan')?_0x1773ad['getAttribute']('colspan')-0x1:0x0;_0x5d461f=_0x10e24c<_0x5d461f?_0x10e24c:_0x5d461f,_0xf5fdcd=_0x10e24c+_0x2f3821>_0xf5fdcd?_0x10e24c+_0x2f3821:_0xf5fdcd,_0x2d3324=_0x59d90a<_0x2d3324?_0x59d90a:_0x2d3324,_0x2811a4=_0x59d90a+_0xa69ea4>_0x2811a4?_0x59d90a+_0xa69ea4:_0x2811a4;}return{'minRow':_0x5d461f,'maxRow':_0xf5fdcd,'minColumn':_0x2d3324,'maxColumn':_0x2811a4};}['_setupColumnsRowsFixing'](){const _0x363723=this['editor'],_0x14a494=_0x363723['plugins']['get']('TrackChangesEditing'),_0x2db0bf=_0x363723['plugins']['get']('TableUtils');_0x363723['model']['document']['on']('change:data',()=>{const _0x734d66=Array['from'](_0x363723['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3895c9,data:_0x133509}of _0x734d66){const {group:_0x1117ac,id:_0x4405e4,subType:_0x4fe122}=_0x14a494['_splitMarkerName'](_0x3895c9);if('suggestion'!=_0x1117ac)continue;if(null!=_0x133509['oldRange'])continue;const _0x10d94a=_0x14a494['getSuggestion'](_0x4405e4);this['_tablePostFixingSubtypes']['includes'](_0x4fe122)&&this['_tableSuggestions']['add'](_0x10d94a);}},{'priority':'low'});const _0x184b2e=(_0x88fdc3,_0x36a0fd)=>{let _0x1aac30=!0x1;const _0xa81e44=_0x36a0fd['createRangeOn'](_0x88fdc3),_0x39d61d=_0x88fdc3['findAncestor']('table'),_0x50305f=_0x2db0bf['getCellLocation'](_0x88fdc3);for(const _0x571ee9 of this['_tableSuggestions']){const _0x21a5d8=_0x571ee9['subType'],_0x365fe7=_0x21a5d8['startsWith']('tablePaste'),_0x53c666=_0x21a5d8['substr'](_0x365fe7?0xa:0x5),_0x4a7d4b=_0x53c666['toLowerCase'](),_0x91ecf4=_0x4a7d4b['substr'](0x0,0x3)+'span',_0x175161='min'+_0x53c666,_0x46c436='max'+_0x53c666;if(!_0x571ee9['isInContent'])continue;if(_0x39d61d!=_0x571ee9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x571ee9['isIntersectingWithRange'](_0xa81e44))continue;const _0x3b0fd2=_0x88fdc3['hasAttribute'](_0x91ecf4)?_0x88fdc3['getAttribute'](_0x91ecf4)-0x1:0x0,_0x37503c=this['_getSuggestionCoords'](_0x571ee9),_0x33df3a=_0x37503c[_0x175161],_0x32a7d4=_0x37503c[_0x46c436];_0x33df3a<=_0x50305f[_0x4a7d4b]&&_0x50305f[_0x4a7d4b]+_0x3b0fd2<=_0x32a7d4&&(_0x571ee9['addRange'](_0xa81e44),_0x1aac30=!0x0);}return _0x1aac30;};_0x363723['model']['document']['registerPostFixer'](_0x463c79=>{let _0x3f8bcc=!0x1;for(const _0x435c7d of _0x363723['model']['document']['differ']['getChanges']())if('insert'==_0x435c7d['type']){if('tableRow'==_0x435c7d['name']){for(const _0x55d36c of _0x435c7d['position']['nodeAfter']['getChildren']())_0x3f8bcc=_0x3f8bcc||_0x184b2e(_0x55d36c,_0x463c79);}else'tableCell'==_0x435c7d['name']&&(_0x3f8bcc=_0x3f8bcc||_0x184b2e(_0x435c7d['position']['nodeAfter'],_0x463c79));}return _0x3f8bcc;});}['_getSuggestionCoords'](_0x685f01){return this['_getCoordsForCells'](_0x685f01['getRanges']()['map'](_0x29bd25=>_0x29bd25['start']['nodeAfter']));}}function Ne(_0x2e0b55){return Array['from'](new Set(_0x2e0b55)['values']());}class Nt extends _0x3b6a96{static get['requires'](){return[Ct];}['afterInit'](){const _0x1c5544=this['editor'],_0x180c3c=_0x1c5544['model']['document']['selection'],_0x54ea45=_0x1c5544['locale'];if(!_0x1c5544['plugins']['has']('TableEditing'))return;const _0x54601e=_0x1c5544['plugins']['get']('TrackChangesEditing'),_0x175df3=_0x1c5544['plugins']['get']('TableUtils'),_0x14bfdf=_0x1c5544['plugins']['get'](Ct);_0x14bfdf['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x54601e['enableCommand']('mergeTableCells',()=>{const _0x49aa5f=_0x175df3['getSelectionAffectedTableCells'](_0x1c5544['model']['document']['selection']);_0x1c5544['model']['change'](()=>{_0x54601e['markMultiRangeBlockFormat'](_0x49aa5f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1c5544['commands']['get']('mergeTableCells')['on']('execute',(_0x13f528,_0x16b660)=>{_0x1c5544['commands']['get']('trackChanges')['value']&&(_0x16b660['length']>0x0&&_0x16b660[_0x16b660['length']-0x1]&&_0x16b660[_0x16b660['length']-0x1]['forceDefaultExecution']||_0x54601e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x13f528['stop']());},{'priority':'highest'});for(const _0x22e905 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5ab4ec=_0x1c5544['commands']['get'](_0x22e905);_0x54601e['enableCommand'](_0x22e905,()=>{const _0x18da50=_0x1c5544['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4fb40a=>_0x4fb40a['is']('element','tableCell')),_0x594589=_0x5ab4ec['value'];_0x1c5544['model']['change'](()=>{_0x54601e['markMultiRangeBlockFormat']([_0x18da50,_0x594589],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4112a9 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x49c6f7=_0x1c5544['commands']['get'](_0x4112a9);_0x54601e['enableCommand'](_0x4112a9,()=>{const _0x2de9ef=_0x175df3['getSelectionAffectedTableCells'](_0x1c5544['model']['document']['selection'])[0x0],_0x2ed6d9=_0x2de9ef['findAncestor']('table'),{column:_0x344de5,row:_0x3a3c2f}=_0x175df3['getCellLocation'](_0x2de9ef);let _0x2f80ed=[];if('horizontally'==_0x49c6f7['direction']){const _0xdf8d1f=_0x175df3['createTableWalker'](_0x2ed6d9,{'startRow':_0x3a3c2f,'endRow':_0x3a3c2f,'includeAllSlots':!0x0});_0x2f80ed=Array['from'](_0xdf8d1f)['map'](_0x406338=>_0x406338['cell']);}else{const _0x4bf8a4=_0x175df3['createTableWalker'](_0x2ed6d9,{'column':_0x344de5,'includeAllSlots':!0x0});_0x2f80ed=Array['from'](_0x4bf8a4)['map'](_0x1a5490=>_0x1a5490['cell']);}_0x1c5544['model']['change'](_0x67a2d8=>{_0x54601e['markBlockFormat'](_0x67a2d8['createRangeOn'](_0x2de9ef),{'commandName':_0x4112a9,'commandParams':[]},_0x2f80ed,_0x4112a9);});});}_0x54601e['descriptionFactory']['registerDescriptionCallback'](_0x28f5be=>{if('formatBlock'!=_0x28f5be['type']&&'formatInline'!=_0x28f5be['type'])return;const {data:_0x42fbdb}=_0x28f5be;return _0x42fbdb&&'mergeTableCells'==_0x42fbdb['commandName']?{'type':'format','content':o(_0x54ea45,'*Merge\x20cells*')}:void 0x0;}),_0x54601e['descriptionFactory']['registerDescriptionCallback'](_0x42b2cc=>{if('formatBlock'!=_0x42b2cc['type']&&'formatInline'!=_0x42b2cc['type'])return;const {data:_0x4d4ea7}=_0x42b2cc;return _0x4d4ea7?'splitTableCellVertically'==_0x4d4ea7['commandName']?{'type':'format','content':o(_0x54ea45,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4d4ea7['commandName']?{'type':'format','content':o(_0x54ea45,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4335b1=_0x14bfdf['_acceptFormatSuggestionCallbackFactory']();for(const _0x444909 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x54601e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x444909,'accept',_0x4335b1);for(const _0x57d236 of['splitTableCellVertically','splitTableCellHorizontally'])_0x54601e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x57d236,'accept',_0x4335b1);_0x54601e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x24c3fe=>{_0x1c5544['model']['change'](_0x216a52=>{const _0x5a5820=Array['from'](_0x180c3c['getRanges']())['map'](_0x5c2656=>_0x4f6ba5['fromRange'](_0x5c2656));_0x216a52['setSelection'](_0x24c3fe),_0x1c5544['commands']['get']('mergeTableCells')['refresh'](),_0x1c5544['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x596dd3=_0x5a5820['filter'](_0x2a1f8c=>'$graveyard'!=_0x2a1f8c['root']['rootName']);_0x596dd3['length']>0x0&&_0x216a52['setSelection'](_0x596dd3);for(const _0x28a392 of _0x5a5820)_0x28a392['detach']();});});for(const _0x7c1d90 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2158f9=_0x1c5544['commands']['get'](_0x7c1d90);_0x2158f9['on']('set:isEnabled',(_0x19c44a,_0x15dcdf,_0x4d6079)=>{if(_0x4d6079){const _0x2e9562=_0x1c5544['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x25ce43=>_0x25ce43['is']('element','tableCell'));this['_areMergableCells'](_0x2158f9['value'],_0x2e9562)||(_0x19c44a['return']=!0x1,_0x19c44a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x913059=this['editor']['commands']['get']('mergeTableCells'),_0x1e901a=this['editor']['plugins']['get']('TableUtils');if(!_0x913059['isEnabled'])return!0x1;const _0x2dbb82=_0x1e901a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x44d4f8 of _0x2dbb82)for(const _0xc90057 of _0x2dbb82)if(_0x44d4f8!=_0xc90057&&!this['_areMergableCells'](_0x44d4f8,_0xc90057))return!0x1;return!0x0;}['_areMergableCells'](_0x49011c,_0x383d34){const _0x5ea1b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x403ca3=this['editor']['model']['createRangeOn'](_0x49011c),_0x23d001=this['editor']['model']['createRangeOn'](_0x383d34),_0x14b66a=new Set(),_0x2fbe71=new Set();for(const _0x1b2aad of _0x5ea1b9['getSuggestions']())if(('insertion'==_0x1b2aad['type']||'deletion'==_0x1b2aad['type']||'mergeTableCells'==_0x1b2aad['subType'])&&_0x1b2aad['isInContent']){for(const _0x4a06fb of _0x1b2aad['getRanges']())_0x4a06fb['containsRange'](_0x403ca3,!0x0)&&_0x14b66a['add'](_0x1b2aad['type']+':'+_0x1b2aad['author']['id']),_0x4a06fb['containsRange'](_0x23d001,!0x0)&&_0x2fbe71['add'](_0x1b2aad['type']+':'+_0x1b2aad['author']['id']);}if(_0x14b66a['size']!=_0x2fbe71['size'])return!0x1;for(const _0x1eb8fe of _0x14b66a)if(!_0x2fbe71['has'](_0x1eb8fe))return!0x1;return!0x0;}}class Dt extends _0x3b6a96{static get['requires'](){return[Ct];}['afterInit'](){const _0x206c55=this['editor'];if(!_0x206c55['plugins']['has']('TableEditing'))return;const _0x33bcf1=_0x206c55['locale'],_0x14b637=_0x206c55['plugins']['get']('TrackChangesEditing');_0x14b637['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x14b637['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x14b637['registerBlockAttribute']('headingRows'),_0x14b637['registerBlockAttribute']('headingColumns'),_0x14b637['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x33bcf1,'FORMAT_HEADER_ROW')),_0x14b637['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x33bcf1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59372b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x351793=this['editor']['plugins']['get']('TableUtils'),_0x29c01a=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x313786({showActiveMarker:_0x3e8780=!0x0,setDataAttribute:_0x43879a=!0x0}={}){return(_0x525dfd,_0x3d6e36,_0x56d0d2)=>{const {type:_0x3be5f1,id:_0x488b48}=_0x59372b['_splitMarkerName'](_0x3d6e36['markerName']),_0x1f5959=_0x59372b['getSuggestion'](_0x488b48),_0xd6c252=_0x1f5959['data'];if('formatBlock'!=_0x1f5959['type']||!_0xd6c252||'setTableColumnHeader'!=_0xd6c252['commandName'])return;if(_0x3d6e36['item'])return void _0x525dfd['stop']();if(!_0x56d0d2['consumable']['consume'](_0x3d6e36['markerRange'],_0x525dfd['name']))return;const _0x300115=_0x3d6e36['markerRange']['start']['nodeAfter'],_0x33e354=_0x3d6e36['markerRange']['end']['nodeBefore'],_0x104153=_0x300115['parent']['parent'],{column:_0x1d5bf0}=_0x351793['getCellLocation'](_0x300115),{column:_0x53d0ed}=_0x351793['getCellLocation'](_0x33e354);for(let _0x5a8b14=_0x1d5bf0;_0x5a8b14<=_0x53d0ed;_0x5a8b14++){const _0x1ebcf7=_0x351793['createTableWalker'](_0x104153,{'column':_0x5a8b14,'includeAllSlots':!0x1});for(const _0x12d083 of _0x1ebcf7){const _0x2af857=_0x12d083['cell'],_0x30b162=_0x56d0d2['mapper']['toViewElement'](_0x2af857);_0x56d0d2['writer']['addClass']('ck-suggestion-marker-'+_0x3be5f1,_0x30b162),_0x43879a&&_0x56d0d2['writer']['setAttribute']('data-suggestion',_0x488b48,_0x30b162),_0x56d0d2['mapper']['bindElementToMarker'](_0x30b162,_0x3d6e36['markerName']),_0x3e8780&&(_0x59372b['activeMarkers']['includes'](_0x3d6e36['markerName'])?_0x56d0d2['writer']['addClass']('ck-suggestion-marker--active',_0x30b162):_0x56d0d2['writer']['removeClass']('ck-suggestion-marker--active',_0x30b162));}}};}_0x59372b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x29c01a),_0x59372b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x29c01a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x313786(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c74e6,_0x2c6f4d,_0xa35397)=>{_0xa35397['options']['showSuggestionHighlights']&&_0x313786({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2c74e6,_0x2c6f4d,_0xa35397);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2ff351,_0x12a13c,_0x3de1aa)=>{const {type:_0x2242b9,id:_0xdb9099}=_0x59372b['_splitMarkerName'](_0x12a13c['markerName']),_0x345efd=_0x59372b['getSuggestion'](_0xdb9099),_0x47f2cf=_0x345efd['data'];if('formatBlock'!=_0x345efd['type']||!_0x47f2cf||'setTableColumnHeader'!=_0x47f2cf['commandName'])return;const _0x4a4acf=_0x3de1aa['mapper']['markerNameToElements'](_0x12a13c['markerName']);if(_0x4a4acf){for(const _0x3da954 of _0x4a4acf)_0x3de1aa['writer']['removeClass']('ck-suggestion-marker-'+_0x2242b9,_0x3da954),_0x3de1aa['writer']['removeClass']('ck-suggestion-marker--active',_0x3da954),_0x3de1aa['writer']['removeAttribute']('data-suggestion',_0x3da954),_0x3de1aa['mapper']['unbindElementFromMarkerName'](_0x3da954,_0x12a13c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d8796=this['editor'],_0x132686=_0x4d8796['locale'];function _0x1ac932(_0x24b6aa){return{'type':'format','content':o(_0x132686,'*Format:*\x20%0',_0x24b6aa)};}_0x4d8796['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x564c5c=>{if('formatBlock'!=_0x564c5c['type'])return;const {data:_0x1753b9}=_0x564c5c;if(_0x1753b9){if('setTableRowHeader'==_0x1753b9['commandName']){const _0x5c541c=_0x1753b9['commandParams'][0x0]['forceValue'];return _0x1ac932(o(_0x132686,_0x5c541c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1753b9['commandName']){const _0x3c4a2d=_0x1753b9['commandParams'][0x0]['forceValue'];return _0x1ac932(o(_0x132686,_0x3c4a2d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x5d24f8=>[_0x5d24f8,null]));class Mt extends _0x3b6a96{static get['requires'](){return[Ct];}['afterInit'](){const _0x3cb55c=this['editor'];if(!_0x3cb55c['plugins']['has']('TableClipboard'))return;const _0x47831b=_0x3cb55c['plugins']['get']('TrackChangesEditing'),_0x4b32fa=_0x3cb55c['plugins']['get']('TableUtils'),_0x1314e9=_0x3cb55c['plugins']['get'](Ct),_0x5cba8f=_0x3cb55c['plugins']['get']('TableClipboard');_0x1314e9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3cb55c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3cb55c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x33f364=null;_0x3cb55c['model']['on']('insertContent',(_0x325089,_0x37a492)=>{const [_0x55f458,_0x1acc93]=_0x37a492,_0x5dabcb=_0x37a492[_0x37a492['length']-0x1];_0x5dabcb&&_0x5dabcb['forceDefaultExecution']||_0x47831b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3e579a,_0x23dd93,_0x2b34c8,_0x5af35c,_0x13fe47){if(_0x23dd93&&!_0x23dd93['is']('documentSelection'))return!0x1;const _0x165108=_0x13fe47['getTableIfOnlyTableInContent'](_0x3e579a,_0x2b34c8);if(!_0x165108||!Ue(_0x165108,void 0x0,_0x5af35c))return!0x1;const _0x52df6d=_0x5af35c['getSelectionAffectedTableCells'](_0x2b34c8['document']['selection']);if(!_0x52df6d['length'])return!0x1;const _0x724201=_0x52df6d[0x0]['findAncestor']('table'),_0x5680b7=_0x5af35c['getRowIndexes'](_0x52df6d),_0x5ab504=_0x5af35c['getColumnIndexes'](_0x52df6d),_0x57a7b8={'startRow':_0x5680b7['first'],'endRow':_0x5680b7['last'],'startColumn':_0x5ab504['first'],'endColumn':_0x5ab504['last']};return 0x1==_0x52df6d['length']&&(_0x57a7b8['endRow']+=_0x5af35c['getRows'](_0x165108)-0x1,_0x57a7b8['endColumn']+=_0x5af35c['getColumns'](_0x165108)-0x1),Ue(_0x724201,_0x57a7b8,_0x5af35c);}(_0x55f458,_0x1acc93,_0x3cb55c['model'],_0x4b32fa,_0x5cba8f)&&(_0x325089['stop'](),_0x33f364={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3cb55c['model']['change'](()=>{_0x3cb55c['model']['insertContent'](_0x37a492[0x0],_0x37a492[0x1],_0x37a492[0x2],{'forceDefaultExecution':!0x0});const _0x41503c=_0x42a68b(),{rowInsertionRanges:_0x2f69da,columnInsertionRanges:_0x28949e,insertionRanges:_0x14aac5,deletionRanges:_0x1ec072,cells:_0x3697e8}=_0x33f364;_0x2f69da['length']&&_0x47831b['markMultiRangeInsertion'](_0x2f69da,'tablePasteRow',{'tablePasteChainId':_0x41503c}),_0x28949e['length']&&_0x47831b['markMultiRangeInsertion'](_0x28949e,'tablePasteColumn',{'tablePasteChainId':_0x41503c}),_0x14aac5['length']&&(_0x47831b['markMultiRangeInsertion'](_0x14aac5,'tablePaste',{'tablePasteChainId':_0x41503c,'skipNestingCheck':!0x0}),_0x14aac5['forEach'](_0x4d4647=>_0x4d4647['detach']?.())),_0x1ec072['length']&&(_0x47831b['markMultiRangeDeletion'](_0x1ec072,'tablePaste',{'tablePasteChainId':_0x41503c,'skipNestingCheck':!0x0}),_0x1ec072['forEach'](_0x3e0f0f=>_0x3e0f0f['detach']?.()));const _0x389a9d=_0x47831b['markMultiRangeBlockFormat'](_0x3697e8['map'](({element:_0x98513})=>_0x98513),{'formatGroupId':_0x42a68b()},[],'tablePasteCell',{'tablePasteChainId':_0x41503c});if(_0x389a9d){const _0x53613c=_0x389a9d['getMarkers'](),_0x57955e=[];for(const {element:_0x57d29f,attributes:_0x439904}of _0x3697e8){if(!_0x439904)continue;const _0x400bea=_0x3cb55c['model']['createRangeOn'](_0x57d29f),_0x729a45=_0x53613c['find'](_0x350e9b=>_0x350e9b['getRange']()['isEqual'](_0x400bea));_0x729a45&&_0x57955e['push']([_0x729a45['name'],_0x439904]);}_0x57955e['length']&&_0x389a9d['setAttribute']('markerAttributes',Object['fromEntries'](_0x57955e));}_0x33f364=null;}));},{'priority':_0x45202f['high']+0xa}),_0x3cb55c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1e594d,_0x38a7a8)=>{const [_0x43ab99,_0x4fdb9e,,_0x2ad6ef]=_0x38a7a8;if(!_0x33f364)return;_0x1e594d['stop']();const _0x323652=_0x43ab99['cell'],_0x285161=_0x4fdb9e,_0x3bda82=Oe(_0x323652),_0x4cdca4=Oe(_0x285161);_0x1e594d['return']=_0x323652;let _0x138f7e=null,_0xbe2d3d=null;if(_0x4cdca4||_0x3bda82){if(_0x3bda82&&!_0x4cdca4){_0x2ad6ef['remove'](_0x323652['getChild'](0x0));for(const _0x43fc99 of Array['from'](_0x285161['getChildren']()))_0x2ad6ef['insert'](_0x43fc99,_0x323652,'end');const _0x383c10=_0x33f364['rowInsertionIndexes']['includes'](_0x43ab99['row']),_0x438add=_0x33f364['columnInsertionIndexes']['includes'](_0x43ab99['column']);_0x383c10||_0x438add||(_0x138f7e=_0x4f6ba5['fromRange'](_0x2ad6ef['createRangeIn'](_0x323652)));}else _0x4cdca4&&!_0x3bda82&&(_0xbe2d3d=_0x2ad6ef['createRangeIn'](_0x323652));}else{const _0x1ed8d1=_0x2ad6ef['createElement']('tableCellSuggestion'),_0x315cb7=_0x2ad6ef['createElement']('tableCellSuggestion');_0x2ad6ef['wrap'](_0x2ad6ef['createRangeIn'](_0x323652),_0x315cb7),_0x2ad6ef['insert'](_0x1ed8d1,_0x323652,0x0);for(const _0x5b5eb9 of Array['from'](_0x285161['getChildren']()))_0x2ad6ef['insert'](_0x5b5eb9,_0x1ed8d1,'end');_0x138f7e=_0x4f6ba5['fromRange'](_0x2ad6ef['createRangeOn'](_0x1ed8d1)),_0xbe2d3d=_0x4f6ba5['fromRange'](_0x2ad6ef['createRangeOn'](_0x315cb7));}const _0xc36472=Array['from'](_0x285161['getAttributes']())['filter'](([_0x1b52b7])=>Be['includes'](_0x1b52b7));_0x33f364['cells']['push']({'element':_0x323652,'attributes':_0xc36472['length']?Object['fromEntries'](_0xc36472):null}),_0x138f7e&&_0x33f364['insertionRanges']['push'](_0x138f7e),_0xbe2d3d&&_0x33f364['deletionRanges']['push'](_0xbe2d3d);},{'priority':'high'}),_0x4b32fa['on']('insertColumns',(_0x290aa8,_0x2a205d)=>{const [_0x3cce69,_0x26fcb7={}]=_0x2a205d;if(!_0x33f364)return;const _0x521e2a=_0x26fcb7['at']||0x0,_0x343a65=_0x26fcb7['columns']||0x1;_0x33f364['columnInsertionIndexes']=new Array(_0x343a65)['fill'](_0x521e2a)['map']((_0xf1d0ca,_0x325d88)=>_0xf1d0ca+_0x325d88);for(const {cell:_0x15b5bd}of _0x4b32fa['createTableWalker'](_0x3cce69,{'startColumn':_0x521e2a,'endColumn':_0x521e2a+_0x343a65-0x1}))_0x33f364['columnInsertionRanges']['push'](_0x3cb55c['model']['createRangeOn'](_0x15b5bd));},{'priority':'low'}),_0x4b32fa['on']('insertRows',(_0x10637c,_0x1ff35b)=>{const [_0xc7c3e,_0x5329f9={}]=_0x1ff35b;if(!_0x33f364)return;const _0xf28678=_0x5329f9['at']||0x0,_0xdbf6fa=_0x5329f9['rows']||0x1;_0x33f364['rowInsertionIndexes']=new Array(_0xdbf6fa)['fill'](_0xf28678)['map']((_0x37d56f,_0x1ad1a2)=>_0x37d56f+_0x1ad1a2);for(const {cell:_0xc0d0c6}of _0x4b32fa['createTableWalker'](_0xc7c3e,{'startRow':_0xf28678,'endRow':_0xf28678+_0xdbf6fa-0x1}))_0x33f364['rowInsertionRanges']['push'](_0x3cb55c['model']['createRangeOn'](_0xc0d0c6));},{'priority':'low'}),_0x47831b['descriptionFactory']['registerDescriptionCallback'](_0x26bba7=>{if(_0x26bba7['subType']&&_0x26bba7['subType']['startsWith']('tablePaste'))return _0x26bba7['previous']?{}:{'type':'insertion','content':o(_0x3cb55c['locale'],'*Replace\x20table\x20cells*')};});const _0xef26ad=()=>!0x1;for(const _0x1177cf of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x47831b['_suggestionFactory']['registerCustomCallback']('insertion',_0x1177cf,'join',_0xef26ad),_0x47831b['_suggestionFactory']['registerCustomCallback']('deletion',_0x1177cf,'join',_0xef26ad),_0x47831b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1177cf,'join',_0xef26ad);_0x47831b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xef26ad),_0x47831b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x553a73,_0x2dfe25,_0x12da20)=>{const _0x3bc23f=_0x553a73['map'](_0x22898a=>_0x22898a['getContainedElement']())['filter'](_0x2c6e59=>_0x2c6e59),_0x361194=new Map(_0x3bc23f['map'](_0x3d5819=>[_0x3d5819,null]));if(_0x33f364){for(const {element:_0x43d144,attributes:_0x216403}of _0x33f364['cells'])_0x216403&&_0x361194['set'](_0x43d144,_0x216403);}else{if(_0x12da20&&_0x12da20['markerAttributes'])for(const [_0x45bda3,_0xfbc538]of Object['entries'](_0x12da20['markerAttributes'])){const _0x13f693=_0x3cb55c['model']['markers']['get'](_0x45bda3),_0x2f8223=_0x13f693?_0x13f693['getRange']()['getContainedElement']():null;_0x2f8223&&_0x361194['set'](_0x2f8223,_0xfbc538);}}_0x3cb55c['model']['change'](_0x16db13=>{for(const [_0x3a4f90,_0x158a66]of _0x361194)_0x16db13['setAttributes']({...xe,..._0x158a66},_0x3a4f90);});});const _0x24b7b3=(_0x4be60c,_0x395f8e)=>{_0x47831b['_suggestionFactory']['registerCustomCallback'](_0x4be60c,'tablePaste',_0x395f8e,(_0x49aeb3,_0x5a84d6,_0xbd5f36)=>{_0x3cb55c['model']['change'](_0x276bab=>{const _0xdb7d2c=[];for(const _0x59d7f0 of _0x49aeb3){const _0x335c5e=_0x59d7f0['start']['nodeAfter'];_0x335c5e['is']('element','tableCellSuggestion')&&_0xdb7d2c['push'](_0x335c5e);}_0x47831b['_suggestionFactory']['getSuggestionCallback'](_0x4be60c,null,_0x395f8e)(_0x49aeb3,_0x5a84d6,_0xbd5f36);for(const _0x5eb783 of _0xdb7d2c)'$graveyard'!=_0x5eb783['root']['rootName']&&_0x276bab['unwrap'](_0x5eb783);});});};_0x24b7b3('insertion','accept'),_0x24b7b3('insertion','discard'),_0x24b7b3('deletion','accept'),_0x24b7b3('deletion','discard'),_0x47831b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1994c8=>{const _0x55484f=_0x1994c8['map'](_0x824f9c=>_0x824f9c['getContainedElement']()),_0x531571=_0x55484f[0x0]['findAncestor']('table'),{minRow:_0x24d21d,maxRow:_0x33e76b}=_0x1314e9['_getCoordsForCells'](_0x55484f);_0x4b32fa['removeRows'](_0x531571,{'at':_0x24d21d,'rows':_0x33e76b-_0x24d21d+0x1});}),_0x47831b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1613ee=>{const _0x5f005c=_0x1613ee['map'](_0x5cf002=>_0x5cf002['getContainedElement']()),_0x5a115f=_0x5f005c[0x0]['findAncestor']('table'),{minColumn:_0x358b2f,maxColumn:_0x5f21e1}=_0x1314e9['_getCoordsForCells'](_0x5f005c);_0x4b32fa['removeColumns'](_0x5a115f,{'at':_0x358b2f,'columns':_0x5f21e1-_0x358b2f+0x1});});const _0x411626=(_0x5bb464,_0x105f17)=>{if(!_0x105f17['subType']||!_0x105f17['subType']['startsWith']('tablePaste'))return;const _0x17aa1a=_0x105f17['attributes']['tablePasteChainId'],_0x295e5d=_0x47831b['getSuggestions']()['filter'](_0x3f2c33=>_0x3f2c33['isInContent']&&_0x3f2c33['attributes']&&_0x3f2c33['attributes']['tablePasteChainId']==_0x17aa1a);_0x295e5d['length']&&_0x105f17['getAllAdjacentSuggestions']()['length']!=_0x295e5d['length']&&_0x295e5d['reduce']((_0x5f60bc,_0x1481be)=>(_0x5f60bc['next']=_0x1481be,_0x1481be['previous']=_0x5f60bc,_0x1481be));};function _0x3d0650(_0xad7f19,_0xb36269=!0x0){const {id:_0x4f491a,authorId:_0x5ce1e9}=_0x47831b['_splitMarkerName'](_0xad7f19['markerName']),_0x522e5a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x498248=_0x47831b['activeMarkers']['includes'](_0xad7f19['markerName']);return _0x498248&&_0x522e5a['push']('ck-suggestion-marker--active'),{'classes':_0x522e5a,'attributes':{'data-suggestion':_0x4f491a,'data-author-id':_0x5ce1e9},'priority':_0x498248&&_0xb36269?0xbc2:0xbb8};}_0x47831b['on']('suggestionLoaded',_0x411626,{'priority':'high'}),_0x47831b['on']('suggestionUnloaded',_0x411626,{'priority':'high'}),_0x3cb55c['model']['document']['registerPostFixer'](()=>{let _0x827867=!0x1;const _0x49029e=Array['from'](_0x3cb55c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1e0ac5,data:_0x4245ac}of _0x49029e){const {group:_0x3b40e2,type:_0x16de9d,id:_0x7f56df}=_0x47831b['_splitMarkerName'](_0x1e0ac5);if('suggestion'!=_0x3b40e2||'deletion'!=_0x16de9d||_0x4245ac['oldRange'])continue;if(!_0x47831b['hasSuggestion'](_0x7f56df))continue;const _0x2888d0=_0x47831b['getSuggestion'](_0x7f56df)['getRanges'](),_0x180631=_0x3cb55c['plugins']['get']('Users')['me'];for(const _0x449eb7 of _0x47831b['getSuggestions']()){if(!_0x449eb7['isInContent']||_0x449eb7['author']!=_0x180631)continue;if('formatBlock'!=_0x449eb7['type']||'tablePasteCell'!=_0x449eb7['subType'])continue;if(_0x449eb7['getRanges']()['every'](_0x1ac289=>_0x2888d0['some'](_0x83c0a1=>_0x83c0a1['containsRange'](_0x1ac289,!0x0)))){for(const _0x3f4d37 of _0x449eb7['getAllAdjacentSuggestions']())_0x3f4d37['isInContent']&&(_0x3f4d37['discard'](),_0x827867=!0x0);}}}return _0x827867;}),_0x3cb55c['model']['document']['registerPostFixer'](_0x2bbef9=>{const _0x29c64f=_0x3cb55c['commands']['get']('redo');if(!_0x29c64f||!_0x29c64f['_createdBatches']['has'](_0x2bbef9['batch']))return!0x1;let _0x8cc174=!0x1;const _0xf0fb1f=_0x3cb55c['plugins']['get']('Users')['me'],_0x20d449=_0x3cb55c['model']['document']['differ']['getChanges'](),_0x5219ec=Array['from'](_0x3cb55c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1b6bb6,data:_0xb35693})=>{const {group:_0x10d7e8,subType:_0x56a923,authorId:_0x1ff5a8}=_0x47831b['_splitMarkerName'](_0x1b6bb6);return'suggestion'==_0x10d7e8&&'tablePaste'==_0x56a923&&_0x1ff5a8==_0xf0fb1f['id']&&!_0xb35693['oldRange'];});for(const _0x1def9c of _0x20d449){if('insert'!=_0x1def9c['type']||'tableCellSuggestion'!=_0x1def9c['name']||0x1!=_0x1def9c['length'])continue;const _0x409d68=_0x2bbef9['createRange'](_0x1def9c['position'],_0x1def9c['position']['getShiftedBy'](0x1));if(!_0x5219ec['find'](({data:_0x678164})=>_0x678164['newRange']['isEqual'](_0x409d68))){for(const {name:_0x3ef396,data:_0x4d08ff}of _0x5219ec)if(_0x409d68['containsRange'](_0x4d08ff['newRange'])){_0x2bbef9['updateMarker'](_0x3ef396,{'range':_0x409d68}),_0x8cc174=!0x0;break;}}}return _0x8cc174;}),_0x3cb55c['model']['document']['registerPostFixer'](_0x34c81f=>{let _0x2b07dc=!0x1;const _0x37cf43=_0x3cb55c['plugins']['get']('Users')['me'],_0x1429a5=_0x47831b['getSuggestions']()['filter'](_0x2024c4=>_0x2024c4['isInContent']&&_0x2024c4['author']==_0x37cf43),_0x2ddb53=new Set(),_0x2b1f8a=new Set();for(const _0x1da12a of _0x1429a5)if('tablePaste'==_0x1da12a['subType'])for(const _0x2d010b of _0x1da12a['getMarkers']()){const _0x2b68e5=_0x2d010b['getRange']()['getContainedElement']();if(_0x2b68e5){if(_0x2b68e5['is']('element','tableCellSuggestion')&&Oe(_0x2b68e5)){_0x1da12a['removeMarker'](_0x2d010b['name']),_0x2ddb53['add'](_0x2b68e5),_0x2b07dc=!0x0;const _0x3f0119=_0x2b68e5['nextSibling'],_0x429ab8=_0x2b68e5['previousSibling'],_0x3fe06f=_0x3f0119&&_0x3f0119['is']('element','tableCellSuggestion'),_0x2b21a5=_0x429ab8&&_0x429ab8['is']('element','tableCellSuggestion');_0x3fe06f&&!_0x2ddb53['has'](_0x3f0119)&&_0x2b1f8a['add'](_0x3f0119),_0x2b21a5&&!_0x2ddb53['has'](_0x429ab8)&&_0x2b1f8a['add'](_0x429ab8);}else _0x2b68e5['is']('element','paragraph')&&_0x2b68e5['isEmpty']&&(_0x1da12a['removeMarker'](_0x2d010b['name']),_0x2b07dc=!0x0);}}else{if('tablePasteCell'==_0x1da12a['subType']){if(!_0x1da12a['attributes']||!_0x1da12a['attributes']['tablePasteChainId'])continue;const _0x26bc2d=_0x1da12a['attributes']['markerAttributes'];if(_0x26bc2d&&Object['keys'](_0x26bc2d)['length'])continue;const _0x127206=_0x1da12a['attributes']['tablePasteChainId'];let _0x545716=!0x0,_0xe83807=!0x0;for(const _0x1004f4 of _0x1429a5)if(_0x1004f4['subType']&&_0x1004f4['subType']['startsWith']('tablePaste')){if(!_0x1004f4['attributes']['tablePasteChainId']){_0xe83807=!0x1;break;}if(_0x1004f4['id']!=_0x1da12a['id']&&_0x1004f4['attributes']['tablePasteChainId']==_0x127206){_0x545716=!0x1;break;}}_0xe83807&&_0x545716&&(_0x1da12a['removeMarkers'](),_0x2b07dc=!0x0);}}for(const _0xa9c25 of _0x2ddb53)_0x34c81f['remove'](_0xa9c25);for(const _0xf0cd3e of _0x2b1f8a)_0x34c81f['unwrap'](_0xf0cd3e);return _0x2b07dc;}),_0x3cb55c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2d9991=>_0x3d0650(_0x2d9991),'converterPriority':'high'}),_0x3cb55c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1dd6eb,_0x14921a)=>_0x14921a['options']['showSuggestionHighlights']?_0x3d0650(_0x1dd6eb,!0x1):null,'converterPriority':'high'});const _0x3bd2f6=_0x3cb55c['editing']['view'];this['listenTo'](_0x3bd2f6['document'],'clipboardOutput',(_0x531fba,_0x3d948b)=>{const _0x182406=[];for(const _0x1572da of _0x3bd2f6['createRangeIn'](_0x3d948b['content'])['getItems']())_0x1572da['is']('element','suggestion-td')&&_0x182406['push'](_0x1572da);_0x3bd2f6['change'](_0x44e2cb=>{for(const _0x51855f of _0x182406)_0x44e2cb['move'](_0x44e2cb['createRangeIn'](_0x51855f),_0x44e2cb['createPositionBefore'](_0x51855f)),_0x44e2cb['remove'](_0x51855f);});});}}function Oe(_0x323f04){if(_0x323f04['isEmpty'])return!0x0;const _0x70cf84=_0x323f04['getChild'](0x0);return _0x70cf84['is']('element','paragraph')&&_0x70cf84['isEmpty'];}function Ue(_0xc7877b,_0x232977={},_0x5369f6){for(const {isAnchor:_0x258ed5,cellHeight:_0x4c8770,cellWidth:_0x510368}of _0x5369f6['createTableWalker'](_0xc7877b,{'includeAllSlots':!0x0,..._0x232977}))if(!_0x258ed5||0x1!=_0x4c8770||0x1!=_0x510368)return!0x1;return!0x0;}class $t extends _0x3b6a96{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x176c18=this['editor']['plugins']['get']('TrackChangesEditing');_0x176c18['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x176c18['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x176c18['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x176c18['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x176c18['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x176c18['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2332b4,_0x155b6e){const _0x4b6930=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1eb15e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4ee115=_0x155b6e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x11141a=_0x1eb15e['getColumnGroupElement'](_0x4ee115);let _0x948f4=_0x11141a?_0x1eb15e['getTableColumnsWidths'](_0x11141a):null,_0x1d7994=_0x4ee115['getAttribute']('tableWidth')||null;const _0x3af6a9=_0x155b6e['tableWidth']||_0x1d7994,_0x24a619=_0x155b6e['columnWidths']||_0x948f4,_0x4b86e4=this['editor']['plugins']['get']('Users')['me'];for(const _0xbc10f0 of _0x4b6930['getSuggestions']()){const _0x5b9eb6=_0xbc10f0['getContainedElement']();if('resizeTable'===_0xbc10f0['subType']&&_0x5b9eb6===_0x4ee115){_0xbc10f0['author']!==_0x4b86e4&&_0xbc10f0['discard']();const _0x3ad9bb=_0xbc10f0['data']['commandParams'];_0x1d7994=_0x3ad9bb[0x0]['tableWidth'],_0x948f4=_0x3ad9bb[0x0]['columnWidths'];break;}}_0x2332b4({'table':_0x4ee115,'tableWidth':_0x3af6a9,'columnWidths':_0x24a619}),_0x4b6930['markBlockFormat'](_0x4ee115,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1d7994,'columnWidths':_0x948f4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4693ed){if('formatBlock'!=_0x4693ed['type']&&'formatInline'!=_0x4693ed['type'])return;const {data:_0x57be0e}=_0x4693ed;if(_0x57be0e&&'resizeTable'===_0x57be0e['formatGroupId']){const _0x19ce66='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x19ce66)};}}}class Bt extends _0x3b6a96{['afterInit'](){const _0x43155e=this['editor'];_0x43155e['plugins']['has']('Template')&&_0x43155e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3b6a96{['afterInit'](){const _0x4878dc=this['editor'];if(!_0x4878dc['commands']['get']('insertTableOfContents'))return;_0x4878dc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x228c27=_0x4878dc['plugins']['get']('TrackChangesEditing'),_0x5b01de=_0x4878dc['locale'];_0x228c27['descriptionFactory']['registerElementLabel']('tableOfContents',_0x20bf03=>o(_0x5b01de,'ELEMENT_TABLE_OF_CONTENTS',_0x20bf03));}}class Rt extends _0x3b6a96{['afterInit'](){const _0x4a4939=this['editor'];if(!_0x4a4939['plugins']['has']('Title'))return;const _0x14990f=_0x4a4939['plugins']['get']('TrackChangesEditing');_0x14990f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4a4939['locale'],'ELEMENT_TITLE')),_0x4a4939['model']['document']['registerPostFixer'](_0x251d7c=>{let _0x5d037c=!0x1;const _0x5c9ab5=Array['from'](_0x4a4939['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15c479,data:_0x4a3925}of _0x5c9ab5){const {group:_0x74ff45}=_0x14990f['_splitMarkerName'](_0x15c479);if('suggestion'!==_0x74ff45||!_0x4a3925['newRange'])continue;const _0x4e0db5=_0x4a3925['newRange'],_0x19df6e=_0x4e0db5['end']['nodeBefore'];if(!_0x19df6e||!_0x19df6e['is']('element','title-content'))continue;if(!_0x4e0db5['start']['isTouching'](_0x4e0db5['end']))continue;const _0x56a4b6=_0x4a4939['model']['schema']['getNearestSelectionRange'](_0x4e0db5['end'],'forward');if(_0x56a4b6&&_0x56a4b6['isCollapsed']){const _0x5006d3=_0x251d7c['createRange'](_0x4e0db5['start'],_0x56a4b6['start']);_0x5006d3['isEqual'](_0x4e0db5)||(_0x251d7c['updateMarker'](_0x15c479,{'range':_0x5006d3}),_0x5d037c=!0x0);}_0x5d037c||(_0x251d7c['removeMarker'](_0x15c479),_0x5d037c=!0x0);}return _0x5d037c;});}}class Tt extends _0x3b6a96{['afterInit'](){const _0x244ebe=this['editor'],_0x1263eb=_0x244ebe['plugins']['get']('TrackChangesEditing');_0x244ebe['plugins']['has']('Uploadcare')&&(_0x1263eb['enableCommand']('uploadcare'),_0x244ebe['plugins']['has']('UploadcareImageEdit')&&(_0x1263eb['enableCommand']('uploadcareImageEdit'),_0x1263eb['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1263eb['registerBlockAttribute']('uploadcareImageId'),_0x1263eb['descriptionFactory']['registerDescriptionCallback'](_0x18adae=>{if('attribute'!=_0x18adae['type'])return;const {data:_0x173011}=_0x18adae;return _0x173011&&'uploadcareImageId'==_0x173011['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x3b6a96{['afterInit'](){const _0x20c0cd=this['editor'],_0x2dff2e=_0x20c0cd['plugins']['get']('TrackChangesEditing');_0x20c0cd['plugins']['has']('UndoEditing')&&(_0x2dff2e['enableCommand']('undo'),_0x2dff2e['enableCommand']('redo'));}}class Et extends _0x3b6a96{static get['requires'](){return[Ct];}['afterInit'](){const _0x50f8ba=this['editor'];if(!_0x50f8ba['plugins']['has']('TableCaptionEditing'))return;_0x50f8ba['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x3b6a96{['tableProperties'];['tableCellProperties'];constructor(_0x3af51f){super(_0x3af51f),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 _0x2cafa9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x19cc9d of this['tableProperties'])_0x2cafa9['enableCommand'](_0x19cc9d,(_0x4bdbed,_0x579263)=>{const _0x5b421f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x19cc9d,[_0x5b421f],this['tableProperties'],'tableProperties',_0x4bdbed,_0x579263);});_0x2cafa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2cafa9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2cafa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x348db5,_0x2fde9b)=>this['handleDiscardAction'](this['tableProperties'],_0x348db5,_0x2fde9b)),_0x2cafa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2a0242 of this['tableCellProperties'])_0x2cafa9['enableCommand'](_0x2a0242,(_0x536eaa,_0x267343)=>{const _0xb40e64=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2a0242,_0xb40e64,this['tableCellProperties'],'tableCellProperties',_0x536eaa,_0x267343);});_0x2cafa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2cafa9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2cafa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x7bd380,_0x2d5828)=>this['handleDiscardAction'](this['tableCellProperties'],_0x7bd380,_0x2d5828)),_0x2cafa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2cafa9['descriptionFactory']['registerDescriptionCallback'](_0x264073=>this['handleSuggestionDescription'](_0x264073));}['_handlePropertyChange'](_0x48b6a1,_0x54cbf4,_0xc925d7,_0x37d29d,_0x27f716,_0x4b3612){const _0x2e8d0c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4b3612['batch'],()=>{for(const _0x3fdbba of _0x54cbf4){if(this['_getSuggestion'](_0x3fdbba,_0x37d29d))_0x27f716(_0x4b3612);else{const _0x3a2998={};for(const _0xe6cad0 of _0xc925d7){const _0x492291=_0x3fdbba['getAttribute'](_0xe6cad0);void 0x0!==_0x492291&&(_0x3a2998[_0xe6cad0]=_0x492291);}_0x27f716(_0x4b3612),_0x2e8d0c['markBlockFormat'](_0x3fdbba,{'commandParams':[_0x3a2998]},[],_0x37d29d);}}});}['handleDiscardAction'](_0x2c5f7c,_0x2a588a,_0x55f0bb){const _0x4409b8=_0x2a588a[0x0]['start']['nodeAfter'],_0x34e2b1=_0x55f0bb['commandParams'][0x0];this['editor']['model']['change'](_0x188e97=>{for(const _0x25a98d of _0x2c5f7c)void 0x0!==_0x34e2b1[_0x25a98d]?_0x188e97['setAttribute'](_0x25a98d,_0x34e2b1[_0x25a98d],_0x4409b8):_0x188e97['removeAttribute'](_0x25a98d,_0x4409b8);});}['handleSuggestionDescription'](_0x461fd2){if(_0x461fd2['data'])switch(_0x461fd2['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'](_0x105092,_0x2624f3){const _0x54bd49=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x553c62 of _0x54bd49['getSuggestions']({'skipNotAttached':!0x0})){const _0x57c2b1=_0x553c62['getContainedElement']();if(_0x553c62['subType']===_0x2624f3&&_0x57c2b1===_0x105092)return _0x553c62;}return null;}}const m='$elementName';class p extends _0x3b6a96{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x58d047,_0x2edff2,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e74dd){super(_0x1e74dd),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3a416b,_0x3770cb,_0x19093b,_0x2c58b2)=>{this['_model']['change'](()=>{for(const _0x3b43aa of[..._0x2c58b2,..._0x19093b])this['_model']['markers']['has'](_0x3b43aa)&&_0x1e74dd['editing']['reconvertMarker'](_0x3b43aa);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1e74dd['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(),_0x1e74dd['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1e74dd['config']['get']('trackChanges.trackFormatChanges'),_0x1e74dd['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1e74dd['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1e74dd,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x50263e=this['editor'],_0x6d0921=(_0x5e869a,_0x30b0fd)=>{if('attribute'!=_0x5e869a)return'ck-suggestion-marker-'+_0x5e869a;const _0x1bab0c=_0x30b0fd['split']('|')[0x0];return this['_isBlockAttribute'](_0x1bab0c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x50263e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x44da45=>{const {id:_0x2d4531,authorId:_0x4e87b6,type:_0x5aad6f,subType:_0xccb912}=this['_splitMarkerName'](_0x44da45['markerName']),_0x19ae66=['ck-suggestion-marker',_0x6d0921(_0x5aad6f,_0xccb912)];let _0x5c0287=0xbb8;return this['activeMarkers']['includes'](_0x44da45['markerName'])&&(_0x19ae66['push']('ck-suggestion-marker--active'),_0x5c0287=0xbc2),'deletion'==_0x5aad6f&&(_0x5c0287+=0x5),{'classes':_0x19ae66,'attributes':{'data-suggestion':_0x2d4531,'data-author-id':_0x4e87b6},'priority':_0x5c0287};}}),_0x50263e['conversion']['for']('dataDowncast')['add'](_0x49b8ba=>{_0x49b8ba['on']('addMarker:suggestion',(_0x5343b4,_0x1b3c43,_0x3ab86e)=>{if(!_0x3ab86e['options']['showSuggestionHighlights'])return;const _0x1e3287=_0x1b3c43['item'];if(!_0x1e3287)return;const _0x1c34f6=_0x3ab86e['mapper']['toViewElement'](_0x1e3287);_0x50263e['model']['schema']['isObject'](_0x1e3287)&&_0x1c34f6&&!_0x1c34f6['getCustomProperty']('widget')&&_0x1c34f6['is']('containerElement')&&_0x59695c(_0x1c34f6,_0x3ab86e['writer']);},{'priority':'high'});}),_0x50263e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3f3047,_0x2997a1)=>{if(!_0x2997a1['options']['showSuggestionHighlights'])return null;const {type:_0x456e1a,subType:_0x199f90}=this['_splitMarkerName'](_0x3f3047['markerName']);return{'classes':['ck-suggestion-marker',_0x6d0921(_0x456e1a,_0x199f90)],'priority':0xbb8};}});const _0x40cb85=({showActiveMarkers:_0xafbcec=!0x0,isAttributeSuggestion:_0x3f1b74=!0x1}={})=>(_0x4aac47,_0x24199d,_0xa326da)=>{if(!_0x24199d['item'])return;const {id:_0x2bd3dc,authorId:_0x3d0a94}=this['_splitMarkerName'](_0x24199d['markerName']);if(_0x3f1b74){const _0x3c0ddd=this['_suggestions']['get'](_0x2bd3dc),_0x4a16f5=this['_getAttributeKey'](_0x3c0ddd);if(!this['_isBlockAttribute'](_0x4a16f5))return;}if(_0x24199d['item']['is']('selection'))return void _0xa326da['consumable']['consume'](_0x24199d['item'],_0x4aac47['name']);const _0x47fa1f=_0xa326da['mapper']['toViewElement'](_0x24199d['item']);if(_0x24199d['item']['is']('element')&&_0x50263e['model']['schema']['isBlock'](_0x24199d['item'])&&!_0x47fa1f['getCustomProperty']('addHighlight')){_0xa326da['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x47fa1f),_0xa326da['writer']['setAttribute']('data-suggestion',_0x2bd3dc,_0x47fa1f),_0xa326da['writer']['setAttribute']('data-author-id',_0x3d0a94,_0x47fa1f),_0xa326da['mapper']['bindElementToMarker'](_0x47fa1f,_0x24199d['markerName']),_0xafbcec&&(this['activeMarkers']['includes'](_0x24199d['markerName'])?_0xa326da['writer']['addClass']('ck-suggestion-marker--active',_0x47fa1f):_0xa326da['writer']['removeClass']('ck-suggestion-marker--active',_0x47fa1f));for(const _0xf0a237 of _0x50263e['model']['createRangeIn'](_0x24199d['item'])['getItems']())_0xa326da['consumable']['consume'](_0xf0a237,_0x4aac47['name']);_0xa326da['consumable']['consume'](_0x24199d['item'],_0x4aac47['name']);}};_0x50263e['conversion']['for']('dataDowncast')['add'](_0x4d4a40=>{_0x4d4a40['on']('addMarker:suggestion:formatBlock',(_0xa27df5,_0x2d296d,_0x261c6e)=>{_0x261c6e['options']['showSuggestionHighlights']&&_0x40cb85({'showActiveMarkers':!0x1})(_0xa27df5,_0x2d296d,_0x261c6e);},{'priority':'highest'});}),_0x50263e['conversion']['for']('dataDowncast')['add'](_0x51c9c9=>{_0x51c9c9['on']('addMarker:suggestion:attribute',(_0x1c53cf,_0x5ab3ec,_0x4a8885)=>{_0x4a8885['options']['showSuggestionHighlights']&&_0x40cb85({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1c53cf,_0x5ab3ec,_0x4a8885);},{'priority':'highest'});}),_0x50263e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x25da43,_0x2f66fb)=>_0x2f66fb['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x25da43['substr'](0xb)}}),_0x50263e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x34e45d,{writer:_0xca9e1c})=>{let _0x401698='suggestion:'+_0x34e45d['getAttribute']('suggestion-type')+':'+_0x34e45d['getAttribute']('id');return _0x34e45d['getAttribute']('marker-count')&&(_0x401698+=':'+_0x34e45d['getAttribute']('marker-count')),_0xca9e1c['createElement']('$marker',{'data-name':_0x401698});}}),_0x50263e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x50263e['conversion']['for']('editingDowncast')['add'](_0x57b7aa=>{_0x57b7aa['on']('addMarker:suggestion:formatBlock',_0x40cb85(),{'priority':'high'});}),_0x50263e['conversion']['for']('editingDowncast')['add'](_0x177202=>{_0x177202['on']('addMarker:suggestion:attribute',_0x40cb85({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x50263e['conversion']['for']('editingDowncast')['add'](_0x548397=>{_0x548397['on']('removeMarker:suggestion:formatBlock',(_0x3771f7,_0x31aab2,_0x228230)=>{const _0x2995a2=_0x228230['mapper']['markerNameToElements'](_0x31aab2['markerName']);if(_0x2995a2){for(const _0x30ecbb of _0x2995a2)_0x30ecbb['getCustomProperty']('addHighlight')||(_0x228230['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x30ecbb),_0x228230['writer']['removeAttribute']('data-suggestion',_0x30ecbb),_0x228230['writer']['removeAttribute']('data-author-id',_0x30ecbb),_0x228230['mapper']['unbindElementFromMarkerName'](_0x30ecbb,_0x31aab2['markerName']));}},{'priority':'high'});}),_0x50263e['conversion']['for']('editingDowncast')['add'](_0x1f0879=>{_0x1f0879['on']('removeMarker:suggestion:attribute',(_0x34b5f3,_0x183ef3,_0x3a3dee)=>{const _0x32d313=_0x3a3dee['mapper']['markerNameToElements'](_0x183ef3['markerName']);if(!_0x32d313)return;const {id:_0x2fa5e0}=this['_splitMarkerName'](_0x183ef3['markerName']),_0x557d80=this['_suggestions']['get'](_0x2fa5e0),_0x4dd2f2=this['_getAttributeKey'](_0x557d80);if(this['_isBlockAttribute'](_0x4dd2f2)){for(const _0x174f29 of _0x32d313)_0x174f29['getCustomProperty']('addHighlight')||(_0x3a3dee['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x174f29),_0x3a3dee['writer']['removeAttribute']('data-suggestion',_0x174f29),_0x3a3dee['writer']['removeAttribute']('data-author-id',_0x174f29),_0x3a3dee['mapper']['unbindElementFromMarkerName'](_0x174f29,_0x183ef3['markerName']));}},{'priority':'high'});}),_0x50263e['model']['document']['registerPostFixer'](_0x1f13b0=>{let _0x371b7f=!0x1;const _0x3d05ad=Array['from'](_0x50263e['model']['document']['differ']['getChangedMarkers']()),_0x4e7570=new Set();for(const {name:_0x30c73b,data:_0x13589e}of _0x3d05ad){const {group:_0x56306c,type:_0x5b16dd,subType:_0x2b36ac,id:_0x371409}=this['_splitMarkerName'](_0x30c73b);if('suggestion'!==_0x56306c)continue;const _0x521cab=this['_suggestions']['get'](_0x371409);if(null!=_0x13589e['newRange']){'formatInline'==_0x5b16dd&&(_0x371b7f=_0x371b7f||Lt(_0x13589e['newRange'],_0x30c73b,_0x1f13b0,_0x50263e['model']['schema']));const _0xc86a64='attribute'==_0x5b16dd&&this['_isBlockAttribute'](_0x2b36ac['split']('|')[0x0]);if(_0x13589e['newRange']['isCollapsed']||'$graveyard'==_0x13589e['newRange']['root']['rootName']||'formatBlock'==_0x5b16dd&&!Ht(_0x13589e['newRange'])||_0xc86a64&&!Ht(_0x13589e['newRange'])||'deletion'==_0x5b16dd&&!(!Ft(_0x5d09b8=_0x13589e['newRange'])&&!function(_0x3b4495){return _0x3b4495['start']['parent']==_0x3b4495['end']['nodeBefore']&&_0x3b4495['start']['isAtEnd'];}(_0x5d09b8)))_0x1f13b0['removeMarker'](_0x30c73b),_0x371b7f=!0x0;else{if(!_0x521cab||!_0x521cab['isInContent'])continue;if(_0x13589e['newRange']&&_0x13589e['oldRange']&&_0x13589e['newRange']['isEqual'](_0x13589e['oldRange']))continue;_0x4e7570['add'](_0x521cab);}}}var _0x5d09b8;return _0x4e7570['size']>0x0&&(_0x371b7f=!!this['_joinWithAdjacentSuggestions'](_0x4e7570)||_0x371b7f),_0x371b7f;}),_0x50263e['model']['document']['registerPostFixer'](_0xda04bf=>{let _0x443102=!0x1;for(const _0x52a315 of _0x50263e['model']['document']['differ']['getChanges']())if('insert'==_0x52a315['type'])for(const _0x206fa5 of this['_suggestions']['values']()){if(_0x206fa5['isMultiRange']||!_0x206fa5['isInContent'])continue;const _0x354485='formatBlock'==_0x206fa5['type'],_0x2858f4=this['_getAttributeKey'](_0x206fa5),_0xbfc80d=_0x2858f4&&this['_isBlockAttribute'](_0x2858f4);if(!_0x354485&&!_0xbfc80d)continue;const _0x352e41=_0x206fa5['getFirstRange']();if(_0x352e41['start']['parent']!=_0x352e41['end']['parent']&&!_0x352e41['end']['isAtEnd']){const _0x4d0050=_0x50263e['model']['createPositionAt'](_0x352e41['start']['nodeAfter'],'end'),_0x2966a3=_0x50263e['model']['createRange'](_0x352e41['start'],_0x4d0050);_0xda04bf['updateMarker'](_0x206fa5['getFirstMarker'](),{'range':_0x2966a3}),_0x443102=!0x0;}}return _0x443102;}),_0x50263e['model']['document']['registerPostFixer'](_0x383928=>this['_processAttributeChanges'](_0x383928)),_0x50263e['model']['document']['registerPostFixer'](_0x546304=>!_0x546304['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x546304)),_0x50263e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x50263e['model']['document']['on']('change:data',(_0xd066d7,_0x221586)=>{if(!_0x221586['isLocal']||_0x221586['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x235d0c=_0x50263e['model']['document']['differ']['getChanges']();if(0x0==_0x235d0c['length'])return;const _0x4a812d=[],_0x22ae8e=_0x235d0c['filter'](_0x91cd19=>'attribute'==_0x91cd19['type']),_0x51b82e=_0x235d0c['filter'](_0x545ad6=>'insert'==_0x545ad6['type']&&'$text'!=_0x545ad6['name']);for(const _0x196ed2 of _0x22ae8e)this['_isRegisteredAttribute'](_0x196ed2['attributeKey'])&&_0x4a812d['push']({'key':_0x196ed2['attributeKey'],'newValue':_0x196ed2['attributeNewValue'],'oldValue':_0x196ed2['attributeOldValue'],'range':qt(_0x196ed2['range'],_0x50263e['model'])});for(const _0x45d015 of _0x51b82e){if('rename'!=_0x45d015['action']&&'refresh'!=_0x45d015['action'])continue;const _0x248a74=zt(_0x45d015['position']['nodeAfter'],_0x50263e['model']),_0x2f85db=_0x45d015['before'];'rename'==_0x45d015['action']&&_0x4a812d['push']({'key':m,'newValue':_0x45d015['name'],'oldValue':_0x2f85db['name'],'range':_0x248a74});for(const [_0x40e25a,_0x24f8d4]of _0x2f85db['attributes']){if(!this['_isRegisteredAttribute'](_0x40e25a))continue;const _0xf416ad=_0x45d015['attributes']['get'](_0x40e25a);_0x24f8d4!==_0xf416ad&&_0x4a812d['push']({'key':_0x40e25a,'newValue':_0xf416ad,'oldValue':_0x24f8d4,'range':_0x248a74});}for(const [_0x4242ad,_0x2b8299]of _0x45d015['attributes'])this['_isRegisteredAttribute'](_0x4242ad)&&(_0x2f85db['attributes']['has'](_0x4242ad)||_0x4a812d['push']({'key':_0x4242ad,'newValue':_0x2b8299,'oldValue':null,'range':_0x248a74}));}0x0!=_0x4a812d['length']&&_0x50263e['model']['enqueueChange'](_0x221586,_0x43eedf=>{const _0x71e504=_0x42a68b();for(const {range:_0x105b20,key:_0x31c1cb,oldValue:_0x2fe43f,newValue:_0x392336}of _0x4a812d)this['markAttributeChange'](_0x105b20,_0x31c1cb,_0x2fe43f,_0x392336,{'groupId':_0x71e504});this['_reduceExistingSuggestions'](_0x43eedf,_0x4a812d);});},{'priority':'lowest'}),_0x50263e['model']['markers']['on']('update:suggestion',(_0x37ec48,_0xd3b31c,_0x797e11)=>{if(null==_0x797e11){const {id:_0x1c6acb}=this['_splitMarkerName'](_0xd3b31c['name']),_0x23362a=this['_suggestions']['get'](_0x1c6acb);_0x23362a&&_0x23362a['addMarkerName'](_0xd3b31c['name']);}}),_0x50263e['model']['document']['on']('change:data',()=>{const _0x2205a7=Array['from'](_0x50263e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1c0547=>'suggestion'===this['_splitMarkerName'](_0x1c0547['name'])['group']);if(0x0===_0x2205a7['length'])return;_0x2205a7['sort']((_0x277e5a,_0x5686c6)=>{const _0x10ba01=_0x277e5a['data']['oldRange'],_0x5cb725=_0x5686c6['data']['oldRange'];return null===_0x10ba01&&null===_0x5cb725?0x0:null===_0x10ba01&&null!==_0x5cb725?-0x1:null!==_0x10ba01&&null===_0x5cb725?0x1:_0x10ba01['start']['isBefore'](_0x5cb725['start'])?-0x1:0x1;});const _0x53e6d5=new Set(),_0x23371b=new Set();for(const {name:_0x4787bb,data:_0x1e5f39}of _0x2205a7){const {id:_0x575931}=this['_splitMarkerName'](_0x4787bb);if(null===_0x1e5f39['oldRange']){const _0x2d54f0=this['_handleNewSuggestionMarker'](_0x4787bb);_0x23371b['add'](_0x2d54f0);}else{const _0x300cfe=this['_suggestions']['get'](_0x575931);null!==_0x1e5f39['newRange']||_0x300cfe['isInContent']?(_0x53e6d5['add'](_0x300cfe['head']),_0x23371b['add'](_0x300cfe)):this['_removeSuggestion'](_0x300cfe);}}_0x23371b['size']>0x0&&this['_refreshSuggestionsChain'](_0x23371b);for(const _0x52c0c7 of _0x53e6d5)this['fire']('suggestionChanged',_0x52c0c7);}),_0x50263e['model']['on']('applyOperation',(_0x1bfcaa,_0x4cb72c)=>{const _0xebac9b=_0x4cb72c[0x0];if(!this['_suggestions']['size'])return;if(!_0xebac9b['isDocumentOperation'])return;if(_0xebac9b['batch']['isUndo']||!_0xebac9b['batch']['isLocal'])return;let _0x490491,_0x26efa8;switch(_0xebac9b['type']){case'insert':_0x490491=_0x50263e['model']['createPositionAt'](_0xebac9b['position']),_0x26efa8=_0x490491['getShiftedBy'](_0xebac9b['howMany']);break;case'split':_0x490491=_0x50263e['model']['createPositionAt'](_0xebac9b['splitPosition']),_0x26efa8=_0x50263e['model']['createPositionAt'](_0xebac9b['moveTargetPosition']);break;case'move':_0x490491=_0x50263e['model']['createPositionAt'](_0xebac9b['targetPosition']),_0x26efa8=_0x490491['getShiftedBy'](_0xebac9b['howMany']);break;default:return;}const _0x238f19=_0x50263e['model']['createRange'](_0x490491,_0x26efa8);_0x50263e['model']['change'](()=>{for(const {suggestion:_0x2c0459,meta:_0x47e4f5}of this['_findSuggestions'](_0x238f19)){if(_0x2c0459['isMultiRange'])continue;if('formatInline'==_0x2c0459['type'])continue;const _0x584605=this['_getAttributeKey'](_0x2c0459);if(_0x584605&&this['_isBlockAttribute'](_0x584605)&&'split'!=_0xebac9b['type'])continue;const _0x542401=_0x2c0459['data']&&_0x2c0459['data']['multipleBlocks'];('formatBlock'!=_0x2c0459['type']||'split'==_0xebac9b['type']&&!_0x542401)&&(_0x47e4f5['containsRangeInObject']||'insertion'==_0x2c0459['type']&&_0x47e4f5['isOwn']||_0x2c0459['getFirstRange']()['containsRange'](_0x238f19)&&this['_breakSuggestionMarker'](_0x2c0459,_0x490491,_0x26efa8));}});},{'priority':'lowest'}),_0x50263e['model']['on']('deleteContent',(_0x33938a,_0x358c6d)=>{const _0x5282ea=_0x358c6d[0x0],_0x397185=_0x358c6d[0x1];if(_0x397185&&_0x397185['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5282ea['isCollapsed'])return;const _0x410428=_0x50263e['model']['schema'],{start:_0x36d101,end:_0x510783}=_0x5282ea['getFirstRange'](),_0x1ffd53=_0x36d101['nodeAfter']&&_0x410428['isLimit'](_0x36d101['nodeAfter'])?null:_0x410428['getNearestSelectionRange'](_0x36d101,'forward'),_0x16ef4c=_0x510783['nodeBefore']&&_0x410428['isLimit'](_0x510783['nodeBefore'])?null:_0x410428['getNearestSelectionRange'](_0x510783,'backward'),_0x229c3a=_0x50263e['model']['createRange'](_0x1ffd53?_0x1ffd53['start']:_0x36d101,_0x16ef4c?_0x16ef4c['end']:_0x510783);_0x50263e['model']['change'](_0xbcf6fd=>{this['markDeletion'](_0x229c3a);const _0x50c163=_0x50263e['model']['schema']['getNearestSelectionRange'](_0x229c3a['start']);_0x5282ea['is']('documentSelection')?_0xbcf6fd['setSelection'](_0x50c163):_0x5282ea['setTo'](_0x50c163);}),_0x33938a['stop']();},{'priority':_0x45202f['normal']+0xa}),_0x50263e['model']['on']('insertContent',(_0x1984ae,_0x49a02d)=>{const _0x4076bf=_0x49a02d[_0x49a02d['length']-0x1];_0x4076bf&&_0x4076bf['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x50263e['model']['change'](()=>{let _0x11a4c4=_0x50263e['model']['insertContent'](_0x49a02d[0x0],_0x49a02d[0x1],_0x49a02d[0x2],{'forceDefaultExecution':!0x0});if(!_0x11a4c4)return;_0x1984ae['return']=_0x11a4c4['clone']();const _0x1d426d=_0x11a4c4['end']['nodeBefore'],_0x22f786=_0x50263e['model']['schema'];_0x1d426d&&_0x22f786['isBlock'](_0x1d426d)&&!_0x22f786['isObject'](_0x1d426d)&&(_0x11a4c4=_0x50263e['model']['createRange'](_0x11a4c4['start'],_0x50263e['model']['createPositionAt'](_0x1d426d,'end'))),this['markInsertion'](_0x11a4c4);}),_0x1984ae['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2ae956=new O(_0x50263e,this['_suggestions']);_0x50263e['commands']['add']('acceptSuggestion',_0x2ae956),this['enableCommand']('acceptSuggestion');const _0x422bf9=new R(_0x50263e,this['_suggestions']);_0x50263e['commands']['add']('discardSuggestion',_0x422bf9),this['enableCommand']('discardSuggestion'),_0x50263e['commands']['add']('acceptAllSuggestions',new x(_0x50263e,_0x2ae956,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x50263e['commands']['add']('discardAllSuggestions',new x(_0x50263e,_0x422bf9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x50263e['commands']['add']('acceptSelectedSuggestions',new E(_0x50263e,_0x2ae956,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x50263e['commands']['add']('discardSelectedSuggestions',new E(_0x50263e,_0x422bf9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5b3515=_0x50263e['plugins']['get']('CommentsRepository');this['listenTo'](_0x5b3515,'addComment',(_0x2c975d,{threadId:_0x57fa24})=>{const _0x85fb3b=this['_suggestions']['get'](_0x57fa24);_0x85fb3b&&_0x85fb3b['commentThread']&&0x1===_0x85fb3b['commentThread']['length']&&this['_updateSuggestionData'](_0x57fa24,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5b3515,'removeComment',(_0x1bf1ac,{threadId:_0x50fa82})=>{const _0x82048f=this['_suggestions']['get'](_0x50fa82);_0x82048f&&_0x82048f['commentThread']&&!_0x82048f['commentThread']['length']&&this['_updateSuggestionData'](_0x50fa82,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1a2916){const _0x4b72e6=_0x17202c([0x71,0x45,0x56,0x67,0x75,0x55,0x5a,0x62,0x73,0x68,0x52,0x63,0x7a,0x35,0x4a,0x59,0x74,0x61,0x64,0x70,0x4c,0x6d,0x34,0x32,0x53,0x44,0x79,0x6e,0x58,0x48,0x4e,0x54,0x6b,0x57,0x38,0x76,0x78,0x51,0x69,0x41,0x4f,0x39,0x77,0x6f,0x46,0x4b,0x4d,0x66,0x6a,0x43,0x36,0x42,0x65,0x33,0x49,0x72,0x50,0x47,0x6c,0x31,0x37,0x30]),_0x12f872=0x5cfeea06,_0x45cb6a=0x5cf9b5f6^_0x12f872,_0x32d9ea=window[_0x17202c([0x44,0x61,0x74,0x65])][_0x17202c([0x6e,0x6f,0x77])](),_0x4b453b=_0x1a2916[_0x17202c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf1f2cd=new window[(_0x17202c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24b6ff=>{_0x4b453b[_0x17202c([0x6f,0x6e,0x63,0x65])](_0x17202c([0x72,0x65,0x61,0x64,0x79]),_0x24b6ff);}),_0x619eee={[_0x17202c([0x6b,0x74,0x79])]:_0x17202c([0x45,0x43]),[_0x17202c([0x75,0x73,0x65])]:_0x17202c([0x73,0x69,0x67]),[_0x17202c([0x63,0x72,0x76])]:_0x17202c([0x50,0x2d,0x32,0x35,0x36]),[_0x17202c([0x78])]:_0x17202c([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]),[_0x17202c([0x79])]:_0x17202c([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]),[_0x17202c([0x61,0x6c,0x67])]:_0x17202c([0x45,0x53,0x32,0x35,0x36])},_0x368839=_0x4b453b[_0x17202c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17202c([0x67,0x65,0x74])](_0x17202c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d3185(){let _0x24ec46,_0xabb9a0=null,_0x1bfb10=null;try{if(_0x368839==_0x17202c([0x47,0x50,0x4c]))return _0x17202c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x24ec46=_0x302b1e(),!_0x24ec46)return _0x17202c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x24ec46[_0x17202c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bfb10=_0x4555d3(_0x24ec46[_0x17202c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x24ec46[_0x17202c([0x6a,0x74,0x69])])),await _0x276b90()?_0x2c2b81()?_0x457bac()?_0x17202c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x155360()?(_0x24ec46[_0x17202c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17202c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xabb9a0=_0x4e6727(_0x17202c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x24ec46[_0x17202c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17202c([0x74,0x72,0x69,0x61,0x6c])&&(_0xabb9a0=_0x4e6727(_0x17202c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x13a84c()):_0x17202c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17202c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17202c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4614be){return _0x17202c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x457bac(){const _0xcade0c=[_0x17202c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17202c([0x74,0x72,0x69,0x61,0x6c])][_0x17202c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24ec46[_0x17202c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32d9ea/0x3e8:0xe10*_0x45cb6a;return _0x24ec46[_0x17202c([0x65,0x78,0x70])]<_0xcade0c;}function _0x2c2b81(){const _0x26f7ae=_0x24ec46[_0x17202c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x26f7ae)return!0x1;if(_0x26f7ae[_0x17202c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17202c([0x2a])))return!0x0;if(_0x26f7ae[_0x17202c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17202c([0x54,0x43])))return!0x0;if(_0x26f7ae[_0x17202c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17202c([0x52,0x54,0x43]))){if(_0x2c0b0f())return!0x0;if(_0x5e5a5e()||_0x45ece1())return!0x0;}return!0x1;}function _0x155360(){const _0x1e79ce=_0x24ec46[_0x17202c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1e79ce||0x0==_0x1e79ce[_0x17202c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x47f7bc}=new URL(window[_0x17202c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1e79ce[_0x17202c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47f7bc))return!0x0;const _0x38d66c=_0x47f7bc[_0x17202c([0x73,0x70,0x6c,0x69,0x74])](_0x17202c([0x2e]));return _0x1e79ce[_0x17202c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f3370=>_0x3f3370[_0x17202c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17202c([0x2a])))[_0x17202c([0x6d,0x61,0x70])](_0x3bcb46=>_0x3bcb46[_0x17202c([0x73,0x70,0x6c,0x69,0x74])](_0x17202c([0x2e])))[_0x17202c([0x73,0x6f,0x6d,0x65])](_0x337c7c=>_0x38d66c[_0x17202c([0x65,0x76,0x65,0x72,0x79])]((_0x53f6f3,_0x5ca010)=>_0x337c7c[_0x5ca010]===_0x53f6f3||_0x337c7c[_0x5ca010]===_0x17202c([0x2a])));}function _0x13a84c(){return _0xabb9a0&&_0x1bfb10?new window[(_0x17202c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x159b2a,_0x3b6905)=>{_0xabb9a0[_0x17202c([0x74,0x68,0x65,0x6e])](_0x159b2a,_0x3b6905),_0x1bfb10[_0x17202c([0x74,0x68,0x65,0x6e])](_0x38b4cf=>{_0x38b4cf!=_0x17202c([0x56,0x61,0x6c,0x69,0x64])&&_0x159b2a(_0x38b4cf);},_0x3b6905);}):_0xabb9a0||_0x1bfb10||_0x17202c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4555d3(_0x8368c5,_0x18eb12){return new window[(_0x17202c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e1dc7=>{if(_0x224916())return _0x4e1dc7(_0x17202c([0x56,0x61,0x6c,0x69,0x64]));_0x514564(),_0x4b453b[_0x17202c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17202c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c5113=!0x1;const _0x1f932a=_0x42a68b();function _0x31a397(_0x4bed7b){return!!_0x4bed7b&&(typeof _0x4bed7b===_0x17202c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4bed7b===_0x17202c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4bed7b[_0x17202c([0x74,0x68,0x65,0x6e])]===_0x17202c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4bed7b[_0x17202c([0x63,0x61,0x74,0x63,0x68])]===_0x17202c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x500338(_0x2c1409){_0x197394(_0x2c1409)[_0x17202c([0x74,0x68,0x65,0x6e])](_0x6d6e6e=>{if(!_0x6d6e6e||_0x6d6e6e[_0x17202c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17202c([0x6f,0x6b]))return _0x17202c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb0cfb(_0x52131c(_0x1f932a+_0x18eb12))!=_0x6d6e6e[_0x17202c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17202c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17202c([0x56,0x61,0x6c,0x69,0x64]);})[_0x17202c([0x74,0x68,0x65,0x6e])](_0x4118a9=>(_0x477fe8(),_0x4118a9),()=>{const _0x578632=_0x15d605();return null==_0x578632?(_0x477fe8(),_0x17202c([0x56,0x61,0x6c,0x69,0x64])):_0x17202c(_0x32d9ea-_0x578632>(0x78f26e06^_0x12f872)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17202c([0x74,0x68,0x65,0x6e])](_0x4e1dc7)[_0x17202c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e1dc7(_0x17202c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x738ed5=0x5cc80486^_0x12f872;function _0x477fe8(){const _0x33e1b5=_0x17202c([0x6c,0x6c,0x63,0x74,0x2d])+_0xb0cfb(_0x52131c(_0x8368c5)),_0x3e2a51=_0x24a444(_0xb0cfb(window[_0x17202c([0x4d,0x61,0x74,0x68])][_0x17202c([0x63,0x65,0x69,0x6c])](_0x32d9ea/_0x738ed5)));window[_0x17202c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17202c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33e1b5,_0x3e2a51);}function _0x15d605(){const _0x54e23a=_0x17202c([0x6c,0x6c,0x63,0x74,0x2d])+_0xb0cfb(_0x52131c(_0x8368c5)),_0xf67f1d=window[_0x17202c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17202c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54e23a);return _0xf67f1d?window[_0x17202c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24a444(_0xf67f1d),0x10)*_0x738ed5:null;}function _0x197394(_0x5cf50d){return new window[(_0x17202c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39191d,_0x425a8f)=>{_0x5cf50d[_0x17202c([0x74,0x68,0x65,0x6e])](_0x39191d,_0x425a8f),window[_0x17202c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x425a8f,0x5cff3ec6^_0x12f872);});}}_0x4b453b[_0x17202c([0x6f,0x6e])](_0x17202c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xaaef93,_0x5d6f7a)=>{if(_0x5d6f7a[0x0]!=_0x8368c5)return _0x4e1dc7(_0x17202c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d6f7a[0x1]={..._0x5d6f7a[0x1],[_0x17202c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f932a};},{[_0x17202c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17202c([0x68,0x69,0x67,0x68])}),_0x4b453b[_0x17202c([0x6f,0x6e])](_0x17202c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e8dcf=>{_0x31a397(_0x4e8dcf[_0x17202c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c5113=!0x0,_0x500338(_0x4e8dcf[_0x17202c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17202c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17202c([0x6c,0x6f,0x77])}),_0xf1f2cd[_0x17202c([0x74,0x68,0x65,0x6e])](()=>{_0x1c5113||_0x4e1dc7(_0x17202c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x224916(){return _0x4b453b[_0x17202c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17202c([0x76,0x69,0x65,0x77])][_0x17202c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17202c([0x61,0x75,0x74,0x6f]);}function _0x514564(){_0x4b453b[_0x17202c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17202c([0x76,0x69,0x65,0x77])][_0x17202c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17202c([0x61,0x75,0x74,0x6f]);}}function _0x4e6727(_0x5c12a3){const _0x1357a2=[new window[(_0x17202c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x159f11=>setTimeout(_0x159f11,0x5cf7d4ca^_0x12f872)),_0xf1f2cd[_0x17202c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17202c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x355ebf=>{let _0x5a9efe=0x0;_0x4b453b[_0x17202c([0x6d,0x6f,0x64,0x65,0x6c])][_0x17202c([0x6f,0x6e])](_0x17202c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1cf2b0,_0xa31adc)=>{_0xa31adc[0x0][_0x17202c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5a9efe++,_0x5a9efe==(0x5cfeebfe^_0x12f872)&&(_0x355ebf(),_0x1cf2b0[_0x17202c([0x6f,0x66,0x66])]());});}))];return window[_0x17202c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17202c([0x72,0x61,0x63,0x65])](_0x1357a2)[_0x17202c([0x74,0x68,0x65,0x6e])](()=>_0x5c12a3);}async function _0x134b2f(){await _0xf1f2cd,_0x4b453b[_0x17202c([0x6d,0x6f,0x64,0x65,0x6c])][_0x17202c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x56b910,_0x4b453b[_0x17202c([0x6d,0x6f,0x64,0x65,0x6c])][_0x17202c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x56b910,_0x4b453b[_0x17202c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17202c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c0b0f(){return _0x286c4d(_0x17202c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1add79(_0x17202c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x17202c([0x73,0x74,0x61,0x74,0x65])]==_0x17202c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5e5a5e(){return _0x286c4d(_0x17202c([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 _0x45ece1(){return _0x286c4d(_0x17202c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x17c775(_0x21c6fc){const _0xfe8589=_0x32575d();_0x4b453b[_0xfe8589]=_0x17202c([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x21c6fc,_0x21c6fc!=_0x17202c([0x56,0x61,0x6c,0x69,0x64])&&_0x134b2f();}function _0x32575d(){const _0x205328=window[_0x17202c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17202c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17202c([0x6e,0x6f,0x77])]())[_0x17202c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17202c([0x2e]),'');let _0x4c212f=_0x17202c([0x71]);for(let _0x162253=0x0;_0x162253<_0x205328[_0x17202c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x162253+=0x2){let _0x2b4c6f=window[_0x17202c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x205328[_0x17202c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x162253,_0x162253+0x2));_0x2b4c6f>=_0x4b72e6[_0x17202c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2b4c6f-=_0x4b72e6[_0x17202c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4c212f+=_0x4b72e6[_0x2b4c6f];}return _0x4c212f;}function _0x302b1e(){const _0x225eb7=_0x368839[_0x17202c([0x73,0x70,0x6c,0x69,0x74])](_0x17202c([0x2e]));if(0x3!=_0x225eb7[_0x17202c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e8e3f(_0x225eb7[0x1]);function _0x2e8e3f(_0x32d35b){const _0x30efcb=_0x37e19f(_0x32d35b);return _0x30efcb&&_0x5ae861()?_0x30efcb:null;function _0x5ae861(){const _0x3d0d34=_0x30efcb[_0x17202c([0x6a,0x74,0x69])],_0x16acd0=window[_0x17202c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d0d34[_0x17202c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d0d34[_0x17202c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x80e746={..._0x30efcb,[_0x17202c([0x6a,0x74,0x69])]:_0x3d0d34[_0x17202c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3d0d34[_0x17202c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x80e746[_0x17202c([0x76,0x63])],_0x52131c(_0x80e746)==_0x16acd0;}}}async function _0x276b90(){let _0x45e7b3=!0x0;try{const _0x5647cc=_0x368839[_0x17202c([0x73,0x70,0x6c,0x69,0x74])](_0x17202c([0x2e])),[_0x8f1acb,_0xe048e7,_0x544b15]=_0x5647cc;return _0x1440c7(_0x8f1acb),await _0x615e6c(_0x8f1acb,_0xe048e7,_0x544b15),_0x45e7b3;}catch(_0x291b94){return!0x1;}function _0x1440c7(_0x50029d){const _0xa281f=_0x37e19f(_0x50029d);_0xa281f&&_0xa281f[_0x17202c([0x61,0x6c,0x67])]==_0x17202c([0x45,0x53,0x32,0x35,0x36])||(_0x45e7b3=!0x1);}async function _0x615e6c(_0xbc8604,_0x193213,_0x5bcfb5){const _0xb27df5=window[_0x17202c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17202c([0x66,0x72,0x6f,0x6d])](_0x2aba76(_0x5bcfb5),_0x187aa5=>_0x187aa5[_0x17202c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x323216=new window[(_0x17202c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17202c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xbc8604+_0x17202c([0x2e])+_0x193213),_0x15efed=window[_0x17202c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17202c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15efed)return;const _0x4f7004=await _0x15efed[_0x17202c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17202c([0x6a,0x77,0x6b]),_0x619eee,{[_0x17202c([0x6e,0x61,0x6d,0x65])]:_0x17202c([0x45,0x43,0x44,0x53,0x41]),[_0x17202c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17202c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17202c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15efed[_0x17202c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17202c([0x6e,0x61,0x6d,0x65])]:_0x17202c([0x45,0x43,0x44,0x53,0x41]),[_0x17202c([0x68,0x61,0x73,0x68])]:{[_0x17202c([0x6e,0x61,0x6d,0x65])]:_0x17202c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4f7004,_0xb27df5,_0x323216)||(_0x45e7b3=!0x1);}}function _0x37e19f(_0x2f1d2c){return _0x2f1d2c[_0x17202c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17202c([0x65,0x79]))?JSON[_0x17202c([0x70,0x61,0x72,0x73,0x65])](_0x2aba76(_0x2f1d2c)):null;}function _0x2aba76(_0x2ec424){return window[_0x17202c([0x61,0x74,0x6f,0x62])](_0x2ec424[_0x17202c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17202c([0x2b]))[_0x17202c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17202c([0x2f])));}function _0x52131c(_0x29e92d){let _0xffadac=0x1505;function _0x49103f(_0xc66401){for(let _0x149329=0x0;_0x149329<_0xc66401[_0x17202c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x149329++){const _0x11930a=_0xc66401[_0x17202c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x149329);_0xffadac=(_0xffadac<<0x5)+_0xffadac+_0x11930a,_0xffadac&=_0xffadac;}}function _0x57da0c(_0xdc2a33){Array[_0x17202c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xdc2a33)?_0xdc2a33[_0x17202c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57da0c):_0xdc2a33&&typeof _0xdc2a33==_0x17202c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17202c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xdc2a33)[_0x17202c([0x73,0x6f,0x72,0x74])]()[_0x17202c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x518953,_0x3c243e])=>{_0x49103f(_0x518953),_0x57da0c(_0x3c243e);}):_0x49103f(window[_0x17202c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xdc2a33));}return _0x57da0c(_0x29e92d),_0xffadac>>>0x0;}function _0xb0cfb(_0x52b531){return _0x52b531[_0x17202c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17202c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17202c([0x30]));}function _0x24a444(_0x34f347){return _0x34f347[_0x17202c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17202c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17202c([0x6a,0x6f,0x69,0x6e])]('');}function _0x286c4d(_0x2079ab){return _0x4b453b[_0x17202c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x17202c([0x68,0x61,0x73])](_0x2079ab);}function _0x1add79(_0x53f079){return _0x4b453b[_0x17202c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x17202c([0x67,0x65,0x74])](_0x53f079);}function _0x56b910(){}function _0x17202c(_0x250094){return _0x250094['map'](_0x5a17c0=>String['fromCharCode'](_0x5a17c0))['join']('');}_0x17c775(await _0x1d3185());}(this);}set['adapter'](_0x2c2690){if(this['_adapter'])throw new _0x5e7b1c('track-changes-adapter-already-set',this);this['_adapter']=_0x2c2690;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x174051=!0x1,toJSON:_0x3b8762=!0x1}={}){const _0x17877c=[];for(const _0x3b4bfd of this['_suggestions']['values']())_0x174051&&!_0x3b4bfd['isInContent']||_0x17877c['push'](_0x3b4bfd);return _0x3b8762?_0x17877c['map'](_0x137486=>_0x137486['toJSON']()):_0x17877c;}['getSuggestion'](_0xdfd602){const _0x439200=this['_suggestions']['get'](_0xdfd602);if(!_0x439200)throw new _0x5e7b1c('track-changes-suggestion-not-found',this);return _0x439200;}['hasSuggestion'](_0x438e35){return this['_suggestions']['has'](_0x438e35);}['addSuggestionData'](_0x1fbf8b){const {authorId:_0x5058f8,id:_0xe6c49c,attributes:_0x445c3d}=_0x1fbf8b,[_0x1271a6,_0x307140]=_0x1fbf8b['type']['split'](':'),_0x5d05a=this['_suggestions']['get'](_0xe6c49c)||this['_createSuggestion'](_0x1271a6,_0x307140,_0xe6c49c,_0x5058f8,_0x445c3d);if(this['_addThreadToSuggestion'](_0x5d05a),this['_checkSuggestionCorrectness'](_0x5d05a,_0x1271a6,_0x307140||null,_0x5058f8),_0x5d05a['createdAt']=_0x1fbf8b['createdAt'],_0x5d05a['_isDataLoaded']=!0x0,_0x445c3d&&_0x445c3d['@external']){const _0x512df9=_0x445c3d['@external'],_0x3acd69=this['_getExternalAuthor'](_0x512df9['authorName']);_0x5d05a['authoredAt']=_0x512df9['createdAt'],_0x5d05a['author']=_0x3acd69,_0x5d05a['isExternal']=!0x0;}else _0x5d05a['authoredAt']=_0x1fbf8b['createdAt'];switch(_0x1fbf8b['data']&&(_0x5d05a['data']=_0x1fbf8b['data']),_0x1fbf8b['attributes']&&(_0x5d05a['attributes']=_0x1fbf8b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5d05a['_saved']=!0x0),this['_suggestionState']['get'](_0x5d05a)){case'notReady':this['_suggestionState']['set'](_0x5d05a,'dataReady');break;case'markerReady':_0x5d05a['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5d05a])),this['_refreshSuggestionsChain'](new Set([_0x5d05a])),this['_suggestionState']['set'](_0x5d05a,'ready'),this['fire']('suggestionLoaded',_0x5d05a)):this['_suggestionState']['set'](_0x5d05a,'removed');}return _0x5d05a;}['acceptSuggestion'](_0x2b275d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x340d12 of _0x2b275d['getAllAdjacentSuggestions']())_0x340d12['accept']();});});}['discardSuggestion'](_0x49e006){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x27490a of _0x49e006['getAllAdjacentSuggestions']())_0x27490a['discard']();});});}['enableCommand'](_0x2b46f2,_0x1f59a5){const _0x124a55=this['editor']['commands']['get'](_0x2b46f2);if(!_0x124a55)throw new _0x5e7b1c('track-changes-command-not-found',this,{'commandName':_0x2b46f2});if(this['_enabledCommands']['has'](_0x124a55))throw new _0x5e7b1c('track-changes-enable-command-twice',this,{'commandName':_0x2b46f2});this['_enabledCommands']['add'](_0x124a55),_0x1f59a5&&_0x124a55['on']('execute',(_0x1f28b0,_0x53edad)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x53edad['length']>0x0&&_0x53edad[_0x53edad['length']-0x1]&&_0x53edad[_0x53edad['length']-0x1]['forceDefaultExecution']?_0x53edad['pop']():(_0x1f28b0['return']=_0x1f59a5((..._0x367bdb)=>_0x124a55['execute'](..._0x367bdb,{'forceDefaultExecution':!0x0}),..._0x53edad),_0x1f28b0['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xa44aae){let _0x5aa761,_0x3c6207;const _0xcf2db8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5aa761=_0xa44aae();}catch(_0x50df9e){_0x3c6207=_0x50df9e;}return _0xcf2db8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3c6207&&_0x5e7b1c['rethrowUnexpectedError'](_0x3c6207,this),_0x5aa761;}['markInsertion'](_0x3775fe,_0x1a1619=null,_0x572ac6={}){if(_0x3775fe['isCollapsed'])return null;const _0x4a3b66=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5b573b,meta:_0x14f9d8}of this['_findSuggestions'](_0x3775fe,'insertion'))if(_0x14f9d8['isOwn']){if(!_0x14f9d8['isNextTo']){if(_0x14f9d8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x5b573b,_0x572ac6))continue;return _0x5b573b;}if(Qt(_0x5b573b,_0x572ac6))return _0x5b573b;this['_breakSuggestionMarker'](_0x5b573b,_0x3775fe['start'],_0x3775fe['end']);break;}if(_0x1a1619==_0x5b573b['subType']&&Qt(_0x5b573b,_0x572ac6)){const _0x5998b8=_0x5b573b['getFirstRange']();return _0x5998b8['start']['isEqual'](_0x3775fe['end'])?this['_setSuggestionRange'](_0x5b573b,this['_model']['createRange'](_0x3775fe['start'],_0x5998b8['end'])):this['_setSuggestionRange'](_0x5b573b,this['_model']['createRange'](_0x5998b8['start'],_0x3775fe['end'])),_0x5b573b;}}const _0x37a8e8=_0x42a68b(),_0x53b413=_0x4a3b66['id'],_0x12a42b=_0x1a1619?'insertion:'+_0x1a1619:'insertion',_0x3f5a67=this['_setSuggestionData']({'id':_0x37a8e8,'type':_0x12a42b,'createdAt':new Date(),'authorId':_0x53b413,'attributes':_0x572ac6});return this['_addSuggestionMarker'](_0x12a42b,_0x37a8e8,_0x53b413,_0x3775fe),_0x3f5a67;}['markMultiRangeInsertion'](_0x5f3215,_0x563b6f='multi',_0x23a045={}){const _0x3fb258=this['editor']['plugins']['get']('Users')['me'],_0x2091a5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x563b6f,'join');for(const _0x19f6a5 of this['getSuggestions']())if(_0x19f6a5['author']['id']==_0x3fb258['id']&&'insertion'==_0x19f6a5['type']&&_0x19f6a5['subType']==_0x563b6f&&Qt(_0x19f6a5,_0x23a045)&&(_0x2091a5(_0x19f6a5['getRanges'](),_0x5f3215)||_0x2091a5(_0x5f3215,_0x19f6a5['getRanges']()))){for(const _0x4ee23a of _0x5f3215)_0x19f6a5['addRange'](_0x4ee23a);return _0x19f6a5;}for(const {suggestion:_0x7c8697,meta:_0x44d997}of this['_findSuggestions'](_0x5f3215,'insertion')){if(!_0x44d997['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x44d997['containsRangeInObject'])continue;if(!Qt(_0x7c8697,_0x23a045))continue;let _0x3b23fc=!0x0;for(const _0x294174 of _0x7c8697['getRanges']())for(const _0x5c63f6 of _0x5f3215)if(!_0x294174['containsRange'](_0x5c63f6)){_0x3b23fc=!0x1;break;}if(_0x3b23fc)return _0x7c8697;}const _0x258eac=_0x42a68b(),_0x5dab28=_0x3fb258['id'],_0xf8cc91='insertion:'+_0x563b6f,_0x4f4754=this['_setSuggestionData']({'id':_0x258eac,'type':_0xf8cc91,'createdAt':new Date(),'authorId':_0x5dab28,'attributes':_0x23a045});for(const _0x2b1f3e of _0x5f3215)this['_addSuggestionMarker'](_0xf8cc91,_0x258eac,_0x5dab28,_0x2b1f3e,u['getMultiRangeId']());return _0x4f4754;}['markInlineFormat'](_0x3bfb5b,_0x206bdc,_0x25ac7b=null,_0x2ab831={}){if(_0x25ac7b=_0x25ac7b||Jt(_0x206bdc),_0x3bfb5b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5dc45d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x25ac7b,'accept');return this['forceDefaultExecution'](()=>_0x5dc45d([_0x3bfb5b],_0x206bdc,_0x2ab831)),null;}const _0x5ba2cf=this['editor']['plugins']['get']('Users')['me'],_0x180a88=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x283d33,meta:_0x27dad4}of this['_findSuggestions'](_0x3bfb5b,'insertion'))_0x27dad4['isOwn']&&!_0x27dad4['isInsideObject']&&_0x180a88['push'](..._0x283d33['getRanges']());}const _0x406203=function(_0x2df0a1,_0x2c0d32){const _0x2d03bf=[];for(const _0x475296 of _0x2c0d32){const _0x83db9e=_0x2df0a1['getIntersection'](_0x475296);_0x83db9e&&_0x2d03bf['push'](_0x83db9e);}return _0x2d03bf;}(_0x3bfb5b,_0x180a88),_0x8badc2=function(_0x506c98,_0x105dc3){const _0x36b34e=[_0x506c98];for(const _0x31e6c6 of _0x105dc3){let _0x20773a=0x0;for(;_0x20773a<_0x36b34e['length'];){const _0x56141b=_0x36b34e[_0x20773a]['getDifference'](_0x31e6c6);_0x36b34e['splice'](_0x20773a,0x1,..._0x56141b),_0x20773a+=_0x56141b['length'];}}return _0x36b34e;}(_0x3bfb5b,_0x180a88);_0x406203['length']&&this['_model']['change'](()=>{for(const _0x14b056 of _0x406203){const _0x294363=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x25ac7b,'accept');this['forceDefaultExecution'](()=>_0x294363([_0x14b056],_0x206bdc,_0x2ab831));}});for(const _0x86e4c4 of _0x8badc2){let _0x3e270a=null,_0x110b3e=_0x86e4c4['start'],_0x436297=_0x86e4c4['end'];for(const {suggestion:_0x52392d,meta:_0x18a3a6}of this['_findSuggestions'](_0x86e4c4,'formatInline')){if(!_0x18a3a6['isOwn'])continue;if(_0x52392d['subType']!=_0x25ac7b)continue;if(!Qt(_0x52392d,_0x2ab831))continue;const _0x3dbfeb=_0x52392d['getFirstRange']();if(_0x3dbfeb['containsRange'](_0x86e4c4,!0x0))return null;_0x110b3e=_0x110b3e['isBefore'](_0x3dbfeb['start'])?_0x110b3e:_0x3dbfeb['start'],_0x436297=_0x436297['isAfter'](_0x3dbfeb['end'])?_0x436297:_0x3dbfeb['end'],_0x3e270a?_0x3dbfeb['start']['isBefore'](_0x3e270a['getFirstRange']()['start'])?(_0x3e270a['removeMarkers'](),_0x3e270a=_0x52392d):_0x52392d['removeMarkers']():_0x3e270a=_0x52392d;}const _0x4d090a=this['_model']['createRange'](_0x110b3e,_0x436297);if(_0x3e270a)this['_setSuggestionRange'](_0x3e270a,_0x4d090a);else{const _0x2a6715=_0x42a68b(),_0xc82c4c=_0x5ba2cf['id'];this['_setSuggestionData']({'id':_0x2a6715,'type':'formatInline:'+_0x25ac7b,'data':_0x206bdc,'createdAt':new Date(),'authorId':_0xc82c4c,'attributes':_0x2ab831}),this['_addSuggestionMarker']('formatInline:'+_0x25ac7b,_0x2a6715,_0xc82c4c,_0x4d090a);}}return null;}['markBlockFormat'](_0x3476f8,_0x2c616c,_0x5cd466=[],_0x424f2b=null,_0x3bdd67={}){_0x2c616c['formatGroupId']||(_0x2c616c['formatGroupId']=_0x2c616c['commandName']),_0x2c616c['multipleBlocks']=_0x3476f8['is']('range'),_0x424f2b=_0x424f2b||Jt(_0x2c616c);const _0x4d2d7e=_0x5cd466['map'](_0x379cbb=>zt(_0x379cbb,this['_model'])),_0x1e414b=_0x3476f8['is']('range')?_0x3476f8:zt(_0x3476f8,this['_model']);if('never'===this['_trackFormatChanges']){const _0x51b33a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x424f2b,'accept');return this['forceDefaultExecution'](()=>_0x51b33a([_0x1e414b],_0x2c616c,_0x3bdd67)),null;}_0x4d2d7e['push'](_0x1e414b);let _0x1f63c7=!0x0;for(const _0x502d3c of _0x4d2d7e)if(!this['_rangeIsInLocalUserInsertion'](_0x502d3c)){_0x1f63c7=!0x1;break;}if(_0x1f63c7&&'always'!==this['_trackFormatChanges']){const _0x4dfb19=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x424f2b,'accept');return this['forceDefaultExecution'](()=>_0x4dfb19([_0x1e414b],_0x2c616c,_0x3bdd67)),null;}let _0x3c6f55=null,_0x22b374=_0x1e414b['start'],_0x4b089d=_0x1e414b['end'];for(const {suggestion:_0x29edce,meta:_0x3483cb}of this['_findSuggestions'](_0x1e414b,'formatBlock')){if(!_0x3483cb['isOwn'])continue;if(_0x3483cb['isNextTo']||_0x3483cb['containsRangeInObject']||_0x3483cb['isInsideObject'])continue;if(_0x29edce['data']['formatGroupId']!=_0x2c616c['formatGroupId'])continue;if(!Qt(_0x29edce,_0x3bdd67))continue;const _0x4855c4=_0x29edce['getFirstRange']();if(_0x29edce['subType']==_0x424f2b){if(_0x4855c4['containsRange'](_0x1e414b,!0x0))return null;_0x22b374=_0x22b374['isBefore'](_0x4855c4['start'])?_0x22b374:_0x4855c4['start'],_0x4b089d=_0x4b089d['isAfter'](_0x4855c4['end'])?_0x4b089d:_0x4855c4['end'],_0x3c6f55?_0x4855c4['start']['isBefore'](_0x3c6f55['getFirstRange']()['start'])?(_0x3c6f55['removeMarkers'](),_0x3c6f55=_0x29edce):_0x29edce['removeMarkers']():_0x3c6f55=_0x29edce;}else{const _0x278237=_0x1e414b['getIntersection'](_0x4855c4);this['_cutOutSuggestionMarker'](_0x29edce,_0x278237);}}const _0x14a62d=this['editor']['plugins']['get']('Users')['me'],_0x38a7b4=_0x42a68b(),_0x190de5=_0x14a62d['id'];if(_0x3c6f55)return this['_setSuggestionRange'](_0x3c6f55,this['_model']['createRange'](_0x22b374,_0x4b089d)),_0x3c6f55;{const _0x3ed23a=this['_setSuggestionData']({'id':_0x38a7b4,'type':'formatBlock:'+_0x424f2b,'data':_0x2c616c,'createdAt':new Date(),'authorId':_0x190de5,'attributes':_0x3bdd67});return this['_addSuggestionMarker']('formatBlock:'+_0x424f2b,_0x38a7b4,_0x190de5,this['_model']['createRange'](_0x22b374,_0x4b089d)),_0x3ed23a;}}['markMultiRangeBlockFormat'](_0x111b18,_0x3819e4,_0x17f252=[],_0x4384a7=null,_0x1a9888={}){_0x3819e4['formatGroupId']||(_0x3819e4['formatGroupId']=_0x3819e4['commandName']);const _0xd66f03=_0x111b18[0x0];_0x3819e4['multipleBlocks']=_0xd66f03['is']('range'),_0x4384a7=_0x4384a7||Jt(_0x3819e4);const _0x4bcc86=_0x17f252['map'](_0x331b6e=>zt(_0x331b6e,this['_model'])),_0xd74ca0=_0xd66f03['is']('range')?_0x111b18:_0x111b18['map'](_0x1755df=>zt(_0x1755df,this['_model']));if('never'===this['_trackFormatChanges']){const _0x6bed75=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4384a7,'accept');return this['forceDefaultExecution'](()=>_0x6bed75(_0xd74ca0,_0x3819e4,_0x1a9888)),null;}_0x4bcc86['push'](..._0xd74ca0);let _0x50f053=!0x0;for(const _0x1fb036 of _0x4bcc86)if(!this['_rangeIsInLocalUserInsertion'](_0x1fb036)){_0x50f053=!0x1;break;}if(_0x50f053&&'always'!==this['_trackFormatChanges']){const _0x4d6d5d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4384a7,'accept');return this['forceDefaultExecution'](()=>_0x4d6d5d(_0xd74ca0,_0x3819e4,_0x1a9888)),null;}const _0x52c0d0=this['editor']['plugins']['get']('Users')['me'];for(const _0x17a4bb of this['getSuggestions']()){if(_0x17a4bb['author']['id']!=_0x52c0d0['id'])continue;if('formatBlock'!=_0x17a4bb['type']||_0x17a4bb['data']['formatGroupId']!=_0x3819e4['formatGroupId'])continue;if(!Qt(_0x17a4bb,_0x1a9888))continue;const _0x1c89ea=_0x17a4bb['subType']==_0x4384a7;for(let _0x403b5b=0x0;_0x403b5b<_0xd74ca0['length'];_0x403b5b++){const _0x43ac9a=_0xd74ca0[_0x403b5b];for(const _0x10fa99 of _0x17a4bb['getMarkers']()){const _0x51ac53=_0x10fa99['getRange']();if(_0x43ac9a['isEqual'](_0x51ac53)){_0x1c89ea?(_0xd74ca0['splice'](_0x403b5b,0x1),_0x403b5b--):_0x17a4bb['removeMarker'](_0x10fa99['name']);break;}}}}if(0x0==_0xd74ca0['length'])return null;const _0x27d48f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4384a7,'join');for(const _0x46bf86 of this['getSuggestions']())if(_0x46bf86['author']['id']==_0x52c0d0['id']&&'formatBlock'==_0x46bf86['type']&&_0x46bf86['data']['formatGroupId']==_0x3819e4['formatGroupId']&&_0x46bf86['subType']==_0x4384a7&&Qt(_0x46bf86,_0x1a9888)&&(_0x27d48f(_0x46bf86['getRanges'](),_0xd74ca0)||_0x27d48f(_0xd74ca0,_0x46bf86['getRanges']()))){for(const _0x5dda8e of _0xd74ca0)_0x46bf86['addRange'](_0x5dda8e);return _0x46bf86;}const _0x1d6ae4=_0x42a68b(),_0x2eef86=_0x52c0d0['id'],_0x4f4886='formatBlock:'+_0x4384a7,_0x1ba29c=this['_setSuggestionData']({'id':_0x1d6ae4,'type':_0x4f4886,'data':_0x3819e4,'createdAt':new Date(),'authorId':_0x2eef86,'attributes':_0x1a9888});for(const _0x411048 of _0xd74ca0)this['_addSuggestionMarker'](_0x4f4886,_0x1d6ae4,_0x2eef86,_0x411048,u['getMultiRangeId']());return _0x1ba29c;}['markDeletion'](_0xfeccae,_0x47b686=null,_0x52d49e={}){if(_0xfeccae['isCollapsed'])return null;const _0x17f5ec=this['editor']['plugins']['get']('Users')['me'],_0x2a9f0f=new _0x4f6ba5(_0xfeccae['start'],_0xfeccae['end']);for(const {suggestion:_0x47986c,meta:_0x3006a7}of this['_findSuggestions'](_0x2a9f0f,'insertion'))if(_0x3006a7['isOwn']&&!_0x3006a7['isNextTo']){if(_0x47986c['isMultiRange']){const _0x46c798=_0x47986c['getRanges']()['filter'](_0x50b125=>'$graveyard'!=_0x50b125['root']['rootName']);_0x46c798['every'](_0x1ffdea=>_0x2a9f0f['containsRange'](_0x1ffdea,!0x0))&&_0x47986c['discard']();if(_0x46c798['some'](_0x27eef1=>_0x27eef1['containsRange'](_0x2a9f0f,!0x0))){const _0x1cd1c1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47b686,'accept');return this['forceDefaultExecution'](()=>_0x1cd1c1([_0x2a9f0f],null,_0x52d49e)),null;}}else{const _0x55f204=_0x2a9f0f['getIntersection'](_0x47986c['getFirstRange']());null!==_0x55f204&&_0x47986c['_onDiscard']([_0x55f204],null,_0x52d49e);}}if(_0x2a9f0f['detach'](),_0x2a9f0f['isCollapsed']||'$graveyard'==_0x2a9f0f['root']['rootName'])return null;let _0x24e2d9=null,_0x5c4a9c=_0x2a9f0f['start'],_0x12330a=_0x2a9f0f['end'];const _0xd9d30e=this['_findSuggestions'](_0x2a9f0f,'deletion');for(const {suggestion:_0x1690c1,meta:_0x2a2e1b}of _0xd9d30e){const _0x441a3=this['_model']['createRange'](_0x5c4a9c,_0x12330a);if(_0x2a2e1b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2a2e1b['containsRangeInObject']&&!_0x2a2e1b['isInsideObject'])){if(_0x1690c1['isMultiRange']){if(!Qt(_0x1690c1,_0x52d49e))continue;let _0x15c1ff=!0x0;for(const _0x235bcc of _0x1690c1['getRanges']()){if(_0x235bcc['containsRange'](_0x441a3,!0x0))return _0x1690c1;_0x441a3['containsRange'](_0x235bcc)||(_0x15c1ff=!0x1);}_0x15c1ff&&_0x1690c1['discard']();}else{const _0x899067=_0x1690c1['getFirstRange']();if(_0x899067['containsRange'](_0x441a3,!0x0))return _0x1690c1;if(!Qt(_0x1690c1,_0x52d49e)){_0x441a3['containsRange'](_0x899067)?_0x1690c1['removeMarkers']():_0x899067['containsPosition'](_0x5c4a9c)?_0x5c4a9c=_0x899067['end']:_0x899067['containsPosition'](_0x12330a)&&(_0x12330a=_0x899067['start']);continue;}_0x5c4a9c=_0x5c4a9c['isBefore'](_0x899067['start'])?_0x5c4a9c:_0x899067['start'],_0x12330a=_0x12330a['isAfter'](_0x899067['end'])?_0x12330a:_0x899067['end'],_0x52d49e=Object['assign']({},_0x1690c1['attributes']),_0x24e2d9?_0x899067['start']['isBefore'](_0x24e2d9['getFirstRange']()['start'])?(_0x24e2d9['removeMarkers'](),_0x24e2d9=_0x1690c1):_0x1690c1['removeMarkers']():_0x24e2d9=_0x1690c1;}}}if(_0x24e2d9)return this['_setSuggestionRange'](_0x24e2d9,this['_model']['createRange'](_0x5c4a9c,_0x12330a)),_0x24e2d9;{const _0x1e77c6=_0x42a68b(),_0x5c13f6=this['_model']['createRange'](_0x5c4a9c,_0x12330a),_0x486417=_0x17f5ec['id'],_0x40c15b=_0x47b686?'deletion:'+_0x47b686:'deletion',_0x31faec=this['_setSuggestionData']({'id':_0x1e77c6,'type':_0x40c15b,'createdAt':new Date(),'authorId':_0x486417,'attributes':_0x52d49e});return this['_addSuggestionMarker'](_0x40c15b,_0x1e77c6,_0x486417,_0x5c13f6),_0x31faec;}}['markMultiRangeDeletion'](_0x104ee4,_0x341b14='multi',_0x4de44b={}){const _0x1eae22=this['editor']['plugins']['get']('Users')['me'],_0x17830a=_0x104ee4['map'](_0xdb61d6=>new _0x4f6ba5(_0xdb61d6['start'],_0xdb61d6['end'])),_0x3dd4ea=new Set();for(const {suggestion:_0x4623d3,meta:_0x38db84}of this['_findSuggestions'](_0x17830a,'insertion'))_0x38db84['isOwn']&&!_0x38db84['isNextTo']&&_0x3dd4ea['add'](_0x4623d3);for(const _0x1febed of _0x3dd4ea)if(_0x1febed['isMultiRange']){const _0x46ce00=_0x1febed['getRanges']();(!_0x1febed['attributes']||!_0x1febed['attributes']['skipNestingCheck'])&&(_0x46ce00['every'](_0x4e9ac3=>_0x17830a['some'](_0xdb4978=>_0xdb4978['containsRange'](_0x4e9ac3,!0x0)))&&_0x1febed['discard']());if(_0x17830a['every'](_0x453eb0=>_0x46ce00['some'](_0x775ef7=>_0x775ef7['containsRange'](_0x453eb0,!0x0)))){const _0x3814c2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x341b14,'accept');return this['forceDefaultExecution'](()=>_0x3814c2(_0x104ee4,null,_0x4de44b)),null;}}else{const _0x5b77c5=_0x1febed['getFirstRange']();_0x17830a['some'](_0x16ef4b=>_0x16ef4b['containsRange'](_0x5b77c5,!0x0))&&_0x1febed['discard']();if(_0x17830a['every'](_0x370815=>_0x5b77c5['containsRange'](_0x370815,!0x0))){const _0x5ce820=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x341b14,'accept');return this['forceDefaultExecution'](()=>_0x5ce820(_0x17830a,null,_0x4de44b)),null;}}const _0x2cac0f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x341b14,'join');let _0x14b8cc=null;for(const _0x388c07 of this['getSuggestions']())if(_0x388c07['author']['id']==_0x1eae22['id']&&_0x388c07['isInContent']&&'deletion'==_0x388c07['type']&&_0x388c07['subType']==_0x341b14&&Qt(_0x388c07,_0x4de44b)&&(_0x2cac0f(_0x388c07['getRanges'](),_0x17830a)||_0x2cac0f(_0x17830a,_0x388c07['getRanges']()))){if(_0x14b8cc){if(_0x388c07['commentThread']&&_0x388c07['commentThread']['length'])continue;for(const _0xccd03b of _0x388c07['getRanges']())_0x14b8cc['isIntersectingWithRange'](_0xccd03b)||_0x14b8cc['addRange'](_0xccd03b);_0x388c07['removeMarkers']();}else{_0x14b8cc=_0x388c07;for(const _0x1333ee of _0x17830a)_0x388c07['isIntersectingWithRange'](_0x1333ee)||_0x388c07['addRange'](_0x1333ee);}}if(_0x14b8cc)return _0x14b8cc;_0x3dd4ea['clear']();for(const {suggestion:_0x2ce5dd,meta:_0x4aa852}of this['_findSuggestions'](_0x17830a,'deletion'))_0x4aa852['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4aa852['containsRangeInObject']&&!_0x4aa852['isInsideObject'])&&Qt(_0x2ce5dd,_0x4de44b)&&_0x3dd4ea['add'](_0x2ce5dd);for(const _0x2d23cf of _0x3dd4ea){const _0x2b8406=_0x2d23cf['getRanges']();if(!_0x4de44b||!_0x4de44b['skipNestingCheck']){if(_0x17830a['every'](_0x28b5ac=>_0x2b8406['some'](_0x127c7d=>_0x127c7d['containsRange'](_0x28b5ac,!0x0))))return _0x2d23cf;}(!_0x2d23cf['attributes']||!_0x2d23cf['attributes']['skipNestingCheck'])&&(_0x2b8406['every'](_0x50cf12=>_0x17830a['some'](_0x50492c=>_0x50492c['containsRange'](_0x50cf12,!0x0)))&&_0x2d23cf['discard']());}const _0x3fa1c8=_0x42a68b(),_0x31ecaf=_0x1eae22['id'],_0x3a6e='deletion:'+_0x341b14,_0x559c47=this['_setSuggestionData']({'id':_0x3fa1c8,'type':_0x3a6e,'createdAt':new Date(),'authorId':_0x31ecaf,'attributes':_0x4de44b});for(const _0x36d7d7 of _0x17830a)_0x36d7d7['detach'](),_0x36d7d7['isCollapsed']||'$graveyard'==_0x36d7d7['root']['rootName']||this['_addSuggestionMarker'](_0x3a6e,_0x3fa1c8,_0x31ecaf,_0x36d7d7,u['getMultiRangeId']());return _0x559c47;}['markAttributeChange'](_0x4ee071,_0x4f718f,_0x118611,_0x47d33d,_0x521752){if(_0x4ee071['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x42d7e3=this['editor']['plugins']['get']('Users')['me']['id'],_0x3daa27=Array['from'](this['_suggestions']['values']())['filter'](_0x592b3f=>'attribute'==_0x592b3f['type']&&_0x592b3f['data']['key']==_0x4f718f&&_0x592b3f['isIntersectingWithRange'](_0x4ee071));if('default'===this['_trackFormatChanges']){const _0x2c8e1b=this['_findSuggestions'](_0x4ee071,'insertion')['filter'](({meta:_0x1ec96a})=>_0x1ec96a['isOwn']&&!_0x1ec96a['isInsideObject']&&!_0x1ec96a['isNextTo'])['map'](({suggestion:_0x234c0e})=>_0x234c0e);_0x3daa27['unshift'](..._0x2c8e1b);}const _0x56faf9=new Map([[_0x4ee071,_0x118611]]);for(const _0x2df0dd of _0x3daa27){const _0xd9196b='attribute'==_0x2df0dd['type']?_0x2df0dd['data']['oldValue']:void 0x0,_0x140d2f=_0x2df0dd['getFirstRange'](),_0x509560=Array['from'](_0x56faf9['keys']())['find'](_0x252ec8=>_0x252ec8['isIntersecting'](_0x140d2f));if(!_0x509560)continue;const _0x2cc44b=_0x509560['getDifference'](_0x140d2f);this['_isBlockAttribute'](_0x4f718f)&&'insertion'==_0x2df0dd['type']&&0x0!=_0x2cc44b['length']||(_0x56faf9['delete'](_0x509560),_0x2cc44b['forEach'](_0x11c506=>{_0x56faf9['set'](_0x11c506,_0x118611);}),'insertion'!=_0x2df0dd['type']&&_0xd9196b!=_0x47d33d&&_0x56faf9['set'](_0x509560['getIntersection'](_0x140d2f),_0xd9196b));}const _0x5029a5=[];for(const [_0x177d0e,_0x5de6fb]of _0x56faf9){const _0x37239e=_0x42a68b(),_0x145803={'key':_0x4f718f,'oldValue':_0x5de6fb,'newValue':_0x47d33d};_0x4f718f['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':_0x4f718f});const _0x112330=('attribute:'+(_0x4f718f+'|'+Jt({'newValue':_0x47d33d})))['substring'](0x0,0x3c),_0x4cd698=this['_setSuggestionData']({'id':_0x37239e,'type':_0x112330,'data':_0x145803,'createdAt':new Date(),'authorId':_0x42d7e3,'attributes':_0x521752});_0x5029a5['push'](_0x4cd698),this['_addSuggestionMarker'](_0x112330,_0x37239e,_0x42d7e3,_0x177d0e);}return _0x5029a5;}['enableDefaultAttributesIntegration'](_0x364b1e){this['enableCommand'](_0x364b1e,(_0x3561af,..._0x49f8c9)=>{this['_recordAttributeChanges'](()=>{_0x3561af(..._0x49f8c9);});});}['registerBlockAttribute'](_0xdffa36){this['_blockAttributeKeys']['add'](_0xdffa36);}['registerInlineAttribute'](_0x6df442){this['_inlineAttributeKeys']['add'](_0x6df442);}['_getAttributeKey'](_0x15fe2a){return'attribute'==_0x15fe2a['type']?_0x15fe2a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x12fa98,_0x1de996){const _0x37579d=_0x12fa98['getFirstMarker']();this['_model']['change'](_0x289c90=>{_0x289c90['updateMarker'](_0x37579d,{'range':_0x1de996});});}['_addThreadToSuggestion'](_0x1cb7a6){const _0xa3eb2e=_0x1cb7a6['id'],_0x5f357b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xa3eb2e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5f357b,'threadId':_0xa3eb2e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x431a34=this['_commentsRepository']['getCommentThread'](_0xa3eb2e);_0x431a34['unbind']('isRemovable'),_0x431a34['isRemovable']=!0x1,_0x1cb7a6['commentThread']=_0x431a34;}['_checkSuggestionCorrectness'](_0xc3df10,_0x215fed,_0x466877,_0xb04ba6){if(_0xc3df10['type']!=_0x215fed||_0xc3df10['subType']!=_0x466877||_0xc3df10['creator']['id']!=_0xb04ba6)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5e7b1c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x281e3a,_0x108c7f){const _0x3e293f=_0x281e3a['getFirstRange']();if(_0x108c7f['isEqual'](_0x3e293f))_0x281e3a['removeMarkers']();else{if(_0x3e293f['containsRange'](_0x108c7f)){const _0x34224f=this['_model']['createPositionAt'](_0x108c7f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x281e3a,this['_model']['createRange'](_0x3e293f['start'],_0x34224f));const _0x439dc2=_0x42a68b(),_0x46fe83=_0x281e3a['creator']['id'],_0x42e14d=_0x281e3a['type']+':'+_0x281e3a['subType'];this['_setSuggestionData']({'id':_0x439dc2,'type':_0x42e14d,'createdAt':new Date(),'authorId':_0x46fe83,'data':_0x281e3a['data'],'attributes':_0x281e3a['attributes']});const _0x3916f3=this['_model']['createPositionAt'](_0x108c7f['end']['parent'],'after'),_0x3054d4=this['_model']['createRange'](_0x3916f3,_0x3e293f['end']);this['_addSuggestionMarker'](_0x42e14d,_0x439dc2,_0x46fe83,_0x3054d4);}else{if(_0x3e293f['containsPosition'](_0x108c7f['start'])){const _0x33527b=this['_model']['createPositionAt'](_0x108c7f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x281e3a,this['_model']['createRange'](_0x3e293f['start'],_0x33527b));}else{const _0x539781=this['_model']['createPositionAt'](_0x108c7f['end']['parent'],'after');this['_setSuggestionRange'](_0x281e3a,this['_model']['createRange'](_0x539781,_0x3e293f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5624f9){for(const {suggestion:_0x292ef2,meta:_0x3293c3}of this['_findSuggestions'](_0x5624f9,'insertion')){if(!_0x3293c3['isOwn'])continue;const _0x55668f=_0x292ef2['getRanges']();for(const _0x58c99b of _0x55668f)if(!_0x5624f9['getDifference'](_0x58c99b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x29142f){const _0x20caf4=this['editor']['plugins']['get']('Users')['getUser'](_0x29142f);if(!_0x20caf4)throw new _0x5e7b1c('track-changes-user-not-found',this);return _0x20caf4;}['_getExternalAuthor'](_0x2ca6d1){const _0x5420d6=this['editor']['plugins']['get']('Users'),_0x478742=_0x3d15d9('external:'+_0x2ca6d1),_0x1e5395=_0x5420d6['getUser'](_0x478742);return _0x1e5395||_0x5420d6['addUser']({'id':_0x478742,'name':_0x2ca6d1});}['_createSuggestion'](_0x31b52a,_0x29fed7,_0x148ae6,_0x300a13,_0x525bc9){const _0x331979=this['_getAuthorFromId'](_0x300a13),_0x1d9c6d=this['_suggestionFactory']['buildSuggestion'](_0x31b52a,_0x29fed7,_0x148ae6,_0x331979,_0x525bc9,_0x23ee03=>{this['_updateSuggestionData'](_0x148ae6,{'attributes':_0x23ee03});const _0x22b8d4=this['getSuggestion'](_0x148ae6);this['_joinWithAdjacentSuggestions'](new Set([_0x22b8d4])),this['_refreshSuggestionsChain'](new Set([_0x22b8d4]));});return this['listenTo'](_0x1d9c6d,'accept',()=>{this['_updateSuggestionData'](_0x148ae6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1d9c6d,'discard',()=>{this['_updateSuggestionData'](_0x148ae6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x148ae6,_0x1d9c6d),this['_suggestionState']['set'](_0x1d9c6d,'notReady'),_0x1d9c6d;}['_splitMarkerName'](_0x4318d7){const _0x5e564c=_0x4318d7['split'](':');return{'group':_0x5e564c[0x0],'type':_0x5e564c[0x1],'subType':_0x5e564c['length']>=0x5?_0x5e564c[0x2]:null,'id':_0x5e564c['length']<0x5?_0x5e564c[0x2]:_0x5e564c[0x3],'authorId':_0x5e564c['length']<0x5?_0x5e564c[0x3]:_0x5e564c[0x4],'markerCount':0x6==_0x5e564c['length']?_0x5e564c[0x5]:null};}['_breakSuggestionMarker'](_0x5cca3d,_0x2904c6,_0x14759d){const _0x2b2179=_0x5cca3d['getFirstRange'](),_0x52f691=_0x2b2179['start'],_0x3dbb95=_0x2b2179['end'];this['_setSuggestionRange'](_0x5cca3d,this['_model']['createRange'](_0x52f691,_0x2904c6));const _0x5f5259=_0x42a68b(),_0x2f87aa=_0x5cca3d['creator']['id'],_0x2fd616=_0x5cca3d['type']+(_0x5cca3d['subType']?':'+_0x5cca3d['subType']:'');this['_setSuggestionData']({'id':_0x5f5259,'type':_0x2fd616,'createdAt':new Date(),'authorId':_0x2f87aa,'originalSuggestionId':_0x5cca3d['id'],'attributes':_0x5cca3d['attributes'],'data':_0x5cca3d['data']});const _0x219876=this['_getAttributeKey'](_0x5cca3d);('formatBlock'==_0x5cca3d['type']||_0x219876&&this['_isBlockAttribute'](_0x219876))&&(_0x14759d=this['_model']['createPositionBefore'](_0x14759d['parent'])),this['_addSuggestionMarker'](_0x2fd616,_0x5f5259,_0x2f87aa,this['_model']['createRange'](_0x14759d,_0x3dbb95));}['_findSuggestions'](_0x208173,_0x45c412=null){const _0x2f849a=[],_0x183d04=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x208173)||(_0x208173=[_0x208173]);for(const _0x10a8f5 of this['getSuggestions']()){if(!_0x10a8f5['isInContent'])continue;if(_0x45c412&&_0x10a8f5['type']!=_0x45c412)continue;let _0x5952ce=!0x1;for(const _0x6ad9a2 of _0x10a8f5['getRanges']()){for(const _0x42f81a of _0x208173){const _0x558f21=_0x42f81a['start']['isEqual'](_0x6ad9a2['end'])||_0x42f81a['end']['isEqual'](_0x6ad9a2['start']);if(_0x558f21||_0x42f81a['getIntersection'](_0x6ad9a2)){const _0x5855ac=_0x42f81a['containsRange'](_0x6ad9a2)&&Gt(this['_model']['schema'],_0x6ad9a2['start'],_0x42f81a),_0x39ca6f=_0x6ad9a2['containsRange'](_0x42f81a)&&Gt(this['_model']['schema'],_0x42f81a['start'],_0x6ad9a2);_0x2f849a['push']({'suggestion':_0x10a8f5,'meta':{'isOwn':_0x183d04==_0x10a8f5['author'],'isNextTo':_0x558f21,'isInsideObject':_0x5855ac,'containsRangeInObject':_0x39ca6f}}),_0x5952ce=!0x0;break;}}if(_0x5952ce)break;}}return _0x2f849a;}['_addSuggestionMarker'](_0x460300,_0x4a1a67,_0x19dc15,_0x91109d,_0x297f45){this['_model']['change'](_0x5607fc=>{let _0x104933='suggestion:'+_0x460300+':'+_0x4a1a67+':'+_0x19dc15;_0x297f45&&(_0x104933=_0x104933+':'+_0x297f45),_0x5607fc['addMarker'](_0x104933,{'range':_0x91109d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x54c21b){const _0x340f80=_0x54c21b['previous'],_0x47b136=_0x54c21b['next'];_0x54c21b['previous']=null,_0x54c21b['next']=null,null!=_0x340f80&&_0x340f80['next']==_0x54c21b&&(_0x340f80['next']=_0x47b136),null!=_0x47b136&&_0x47b136['previous']==_0x54c21b&&(_0x47b136['previous']=_0x340f80),'ready'==this['_suggestionState']['get'](_0x54c21b)&&(this['_suggestionState']['set'](_0x54c21b,'removed'),this['fire']('suggestionUnloaded',_0x54c21b,_0x340f80,_0x47b136));}['_setSuggestionData'](_0x171f4c){const _0x9024ac=_0x171f4c['id'],_0x58f0cd=this['addSuggestionData'](_0x171f4c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x26673d=this['editor']['plugins']['get']('PendingActions'),_0x3e0ee5=_0x58f0cd['hasComments'],_0x2820e2=_0x58f0cd['subType']?_0x58f0cd['type']+':'+_0x58f0cd['subType']:_0x58f0cd['type'],_0xe13e1f=this['editor']['locale'],_0x47849e=_0x26673d['add'](o(_0xe13e1f,'PENDING_ACTION_SUGGESTION')),_0x59c5cc={'id':_0x9024ac,'type':_0x2820e2,'hasComments':_0x3e0ee5,'data':_0x171f4c['data']||null,'originalSuggestionId':_0x171f4c['originalSuggestionId']||null,'attributes':_0x58f0cd['attributes']};this['_adapter']['addSuggestion'](_0x59c5cc)['then'](_0x40063a=>{_0x58f0cd['_saved']=!0x0,_0x26673d['remove'](_0x47849e),_0x40063a&&_0x40063a['createdAt']&&(this['_suggestions']['get'](_0x9024ac)['createdAt']=_0x40063a['createdAt']);})['catch'](_0xc5fe88=>{throw _0x43f625('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x58f0cd['discard']();}),_0x58f0cd['stopListening'](),this['_suggestions']['delete'](_0x58f0cd['id']),this['_suggestionState']['delete'](_0x58f0cd),_0xc5fe88;});}return _0x58f0cd;}['_isBlockAttribute'](_0x4576bc){return this['_blockAttributeKeys']['has'](_0x4576bc);}['_updateSuggestionData'](_0x2740bd,_0x347cd4){const _0x2eecad=this['editor']['plugins']['get']('PendingActions'),_0xe41eab=this['getSuggestion'](_0x2740bd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xe41eab['_saved']){const _0x56a3a=_0x2eecad['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2740bd,_0x347cd4)['then'](()=>{_0x2eecad['remove'](_0x56a3a);});}else _0xe41eab['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2740bd,_0x347cd4);});}}['_getSuggestionData'](_0xa859aa){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5e7b1c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xa859aa);}['_handleNewSuggestionMarker'](_0x4660e2){const {id:_0x4dd05e,type:_0x578291,subType:_0x16f7f0,authorId:_0x2956f3}=this['_splitMarkerName'](_0x4660e2),_0x1684be=this['_suggestions']['get'](_0x4dd05e)||this['_createSuggestion'](_0x578291,_0x16f7f0,_0x4dd05e,_0x2956f3,{});switch(this['_checkSuggestionCorrectness'](_0x1684be,_0x578291,_0x16f7f0,_0x2956f3),this['_suggestionState']['get'](_0x1684be)){case'notReady':this['_getSuggestionData'](_0x4dd05e)['then'](_0x56cd2e=>{let _0x137b64=Promise['resolve']();_0x56cd2e['hasComments']&&(_0x137b64=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4dd05e})),_0x137b64['then'](()=>{this['addSuggestionData'](_0x56cd2e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1684be,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4dd05e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1684be,'ready'),this['fire']('suggestionLoaded',_0x1684be);break;case'ready':this['fire']('suggestionChanged',_0x1684be);}return _0x1684be['addMarkerName'](_0x4660e2),_0x1684be;}['_refreshSuggestionsChain'](_0x3da495){const _0x789dcc=Array['from'](_0x3da495),_0x408e10=_0x789dcc['filter'](_0x447227=>'attribute'==_0x447227['type']);this['_refreshAttributeSuggestionsChain'](_0x408e10);const _0x201f62=_0x789dcc['filter'](_0x42f541=>!_0x42f541['isMultiRange']&&'attribute'!=_0x42f541['type']),_0xb49f2d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a4dc1=>!_0x2a4dc1['isMultiRange']&&'attribute'!=_0x2a4dc1['type']),_0xd53758=_0xb49f2d['filter'](_0x190a32=>!_0x3da495['has'](_0x190a32)),_0x572f1b=new Map(_0xb49f2d['map'](_0x376acc=>[_0x376acc,this['_suggestionFactory']['getSuggestionCallback'](_0x376acc['type'],_0x376acc['subType'],'chain')])),_0x383054=new Map(_0xb49f2d['map'](_0x15e1b1=>[_0x15e1b1,_0x15e1b1['getFirstRange']()])),_0x3fe966=new Set(),_0x2c1886=new Set();for(let _0x1e067c=0x0;_0x1e067c<_0x201f62['length'];_0x1e067c++)_0x1fb4ca(_0x201f62[_0x1e067c],_0x201f62,_0x1e067c+0x1);for(let _0x55e041=0x0;_0x55e041<_0x201f62['length'];_0x55e041++)_0x1fb4ca(_0x201f62[_0x55e041],_0xd53758,0x0);const _0x4c3acb=new Set();for(let _0x31c095=0x0;_0x31c095<_0x201f62['length'];_0x31c095++){const _0x3c0109=_0x201f62[_0x31c095];!_0x2c1886['has'](_0x3c0109)&&_0x3c0109['previous']&&(_0x4c3acb['add'](_0x3c0109['previous']),_0x3c0109['previous']['next']===_0x3c0109&&(_0x3c0109['previous']['next']=null),_0x3c0109['previous']=null),!_0x3fe966['has'](_0x3c0109)&&_0x3c0109['next']&&(_0x4c3acb['add'](_0x3c0109['next']),_0x3c0109['next']['previous']===_0x3c0109&&(_0x3c0109['next']['previous']=null),_0x3c0109['next']=null);}function _0x1fb4ca(_0x257b1c,_0x2d9b61,_0x49279e){for(let _0x47a14d=_0x49279e;_0x47a14d<_0x2d9b61['length'];_0x47a14d++){const _0x3dbaa0=_0x37f0e3(_0x257b1c,_0x2d9b61[_0x47a14d]);_0x3dbaa0&&(_0x3dbaa0[0x0]['next']=_0x3dbaa0[0x1],_0x3dbaa0[0x1]['previous']=_0x3dbaa0[0x0],_0x3fe966['add'](_0x3dbaa0[0x0]),_0x2c1886['add'](_0x3dbaa0[0x1]));}}function _0x37f0e3(_0x10542e,_0x3f7d16){if(_0x10542e['author']['id']!==_0x3f7d16['author']['id'])return null;const _0xba94d9=_0x572f1b['get'](_0x10542e)(_0x10542e,_0x3f7d16,_0x383054['get'](_0x10542e),_0x383054['get'](_0x3f7d16));if(!_0xba94d9)return null;return _0x572f1b['get'](_0x3f7d16)(_0x10542e,_0x3f7d16,_0x383054['get'](_0x10542e),_0x383054['get'](_0x3f7d16))?_0xba94d9[0x1]['commentThread']&&_0xba94d9[0x1]['commentThread']['length']?null:_0xba94d9:null;}_0x4c3acb['size']&&this['_refreshSuggestionsChain'](_0x4c3acb);}['_refreshAttributeSuggestionsChain'](_0x2b4326){if(0x0==_0x2b4326['length'])return;const _0x37b806=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a2227=>'attribute'==_0x5a2227['type']&&_0x5a2227['_isDataLoaded']),_0x4d6d19=[],_0x5227b7=new Map();for(const _0x40c49f of _0x37b806){const _0x31d868=_0x3d15d9(_0x40c49f['attributes']);_0x5227b7['has'](_0x31d868)||(_0x5227b7['set'](_0x31d868,_0x4d6d19['length']),_0x4d6d19['push']([]));const _0x1d0731=_0x5227b7['get'](_0x31d868);_0x4d6d19[_0x1d0731]['push'](_0x40c49f);}!(function(){_0x4d6d19['sort']((_0x3b3161,_0x236d53)=>{const _0x10f645=_0x3b3161[0x0]['createdAt'],_0x6a4de4=_0x236d53[0x0]['createdAt'];return _0x10f645==_0x6a4de4?_0x3b3161[0x0]['attributes']['groupId']<_0x236d53[0x0]['attributes']['groupId']?-0x1:0x1:_0x10f645<_0x6a4de4?-0x1:0x1;});for(const _0x4d33f5 of _0x4d6d19)_0x4d33f5['sort']((_0x555afa,_0xa9906b)=>_0x555afa['id']<_0xa9906b['id']?-0x1:0x1);}());for(let _0x1bc7b3=0x0;_0x1bc7b3<_0x4d6d19['length'];_0x1bc7b3++){if(0x0==_0x4d6d19[_0x1bc7b3]['length'])continue;const _0xf3ff28=[];for(let _0x1f387b=_0x1bc7b3+0x1;_0x1f387b<_0x4d6d19['length'];_0x1f387b++)0x0!=_0x4d6d19[_0x1f387b]['length']&&_0x1aedc5(_0x4d6d19[_0x1bc7b3],_0x4d6d19[_0x1f387b])&&_0xf3ff28['push'](_0x1f387b);for(const _0x565f92 of _0xf3ff28)_0x4d6d19[_0x1bc7b3]=_0x4d6d19[_0x1bc7b3]['concat'](_0x4d6d19[_0x565f92]),_0x4d6d19[_0x565f92]=[];}for(const _0x10acf3 of _0x4d6d19)for(let _0xc08a7a=0x0;_0xc08a7a<_0x10acf3['length'];_0xc08a7a++){const _0x5e72ab=_0x10acf3[_0xc08a7a+0x1]||null;_0x10acf3[_0xc08a7a]['next']!==_0x5e72ab&&(_0x10acf3[_0xc08a7a]['next']=_0x5e72ab);}for(const _0x59c707 of _0x4d6d19)for(let _0x1321aa=0x0;_0x1321aa<_0x59c707['length'];_0x1321aa++){const _0x30bf2a=_0x59c707[_0x1321aa-0x1]||null;_0x59c707[_0x1321aa]['previous']!==_0x30bf2a&&(_0x59c707[_0x1321aa]['previous']=_0x30bf2a);}function _0x1aedc5(_0x593f48,_0x2d18b7){if(_0x593f48[0x0]['attributes']['groupId']!==_0x2d18b7[0x0]['attributes']['groupId']&&_0x593f48[0x0]['author']!==_0x2d18b7[0x0]['author'])return!0x1;if(!function(_0x5f4e62,_0x1285b3){if(!_0x5f4e62['hasComments']&&!_0x1285b3['hasComments'])return!0x0;if(_0x5f4e62['hasComments']&&_0x1285b3['hasComments'])return!0x1;if(_0x5f4e62['hasComments']&&_0x1285b3['createdAt']<_0x5f4e62['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1285b3['hasComments']&&_0x5f4e62['createdAt']<_0x1285b3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x593f48[0x0],_0x2d18b7[0x0]))return!0x1;const _0x5c05e8=Vt(_0x593f48[0x0]['attributes'],'groupId'),_0x58b7d9=Vt(_0x2d18b7[0x0]['attributes'],'groupId');if(!_0x351c09(_0x5c05e8,_0x58b7d9))return!0x1;return!!_0x593f48['every'](_0x4b90c9=>_0x2d18b7['some'](_0x35c975=>_0x4b90c9['getFirstRange']()['isEqual'](_0x35c975['getFirstRange']())))&&_0x2d18b7['every'](_0x4078aa=>_0x593f48['some'](_0x30187b=>_0x4078aa['getFirstRange']()['isEqual'](_0x30187b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xe0169b){const _0x1ca8b3=Array['from'](_0xe0169b),_0x45cb5e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1113a3=_0x45cb5e['filter'](_0x3ca4b8=>!_0xe0169b['has'](_0x3ca4b8)),_0x1879ac=new Map(_0x1ca8b3['map'](_0x407463=>[_0x407463,this['_suggestionFactory']['getSuggestionCallback'](_0x407463['type'],_0x407463['subType'],'join')])),_0x5c3b0f=new Map(_0x45cb5e['map'](_0x573cec=>[_0x573cec,_0x573cec['getRanges']()]));for(let _0x5ba05f=0x0;_0x5ba05f<_0x1ca8b3['length'];_0x5ba05f++){if(_0x3b651d(this,_0x1ca8b3[_0x5ba05f],_0x1ca8b3,_0x5ba05f+0x1))return!0x0;}for(let _0x518778=0x0;_0x518778<_0x1ca8b3['length'];_0x518778++){if(_0x3b651d(this,_0x1ca8b3[_0x518778],_0x1113a3,0x0))return!0x0;}return!0x1;function _0x3b651d(_0x5c3682,_0x39c0b8,_0x13ec1e,_0x126877){for(let _0x21fb74=_0x126877;_0x21fb74<_0x13ec1e['length'];_0x21fb74++){const _0x413c1c=_0x13ec1e[_0x21fb74];if(_0x413c1c['type']!==_0x39c0b8['type']||_0x413c1c['author']['id']!==_0x39c0b8['author']['id']||_0x413c1c['subType']!==_0x39c0b8['subType'])continue;if(!Wt(_0x39c0b8,_0x413c1c))continue;if('attribute'==_0x39c0b8['type']&&_0x39c0b8['data']['oldValue']!=_0x413c1c['data']['oldValue'])continue;if('attribute'==_0x39c0b8['type']&&_0x5c3682['_isBlockAttribute'](_0x39c0b8['data']['key']))continue;if('formatBlock'==_0x39c0b8['type']){const _0x29b76b=_0x5c3682['editor']['model'],_0x36ece1=_0x39c0b8['getContainedElement']();if(_0x36ece1&&(_0x29b76b['schema']['isObject'](_0x36ece1)||_0x29b76b['schema']['isLimit'](_0x36ece1)))continue;}const _0x1ea8cb=_0x1879ac['get'](_0x39c0b8),_0x4b3ad2=_0x5c3b0f['get'](_0x39c0b8),_0x884944=_0x5c3b0f['get'](_0x413c1c),_0x49ed96=_0x39c0b8['commentThread']&&_0x39c0b8['commentThread']['length'],_0x2401fb=_0x413c1c['commentThread']&&_0x413c1c['commentThread']['length'];if(!_0x49ed96&&_0x1ea8cb(_0x884944,_0x4b3ad2))return _0x5c3682['_joinSuggestions'](_0x413c1c,_0x39c0b8),_0x5c3b0f['delete'](_0x39c0b8),!0x0;if(!_0x2401fb&&_0x1ea8cb(_0x4b3ad2,_0x884944))return _0x5c3682['_joinSuggestions'](_0x39c0b8,_0x413c1c),_0x5c3b0f['delete'](_0x413c1c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5f02bc,_0x42730f){if(_0x5f02bc['isMultiRange']){for(const _0x1a0196 of _0x42730f['getRanges']())_0x5f02bc['addRange'](_0x1a0196);}else{const _0x46f3a2=_0x42730f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5f02bc,this['_model']['createRange'](_0x5f02bc['getFirstRange']()['start'],_0x46f3a2));}_0x42730f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x496ee5,_0x2efb30,_0xa6c14b){const _0x5622ff=_0x496ee5['startsWith']('format')||_0x496ee5['startsWith']('attribute')?'FORMATTING':_0x496ee5['toUpperCase']();return o(this['editor']['locale'],_0x2efb30+'_'+_0x5622ff+'_SUGGESTION_ANNOUNCEMENT',_0xa6c14b);}['_initAriaMarkerChangeAnnouncements'](){const _0x15e743=this['editor'];if(!_0x15e743['ui'])return;const {ariaLiveAnnouncer:_0x25f7d4}=_0x15e743['ui'];_0x29ed23(this['_model'],({left:_0x1be3b7,entered:_0x372643})=>{for(const _0x5cc32c of _0x1be3b7){const {group:_0x33f95d,type:_0x3fc588}=this['_splitMarkerName'](_0x5cc32c['name']);if('suggestion'===_0x33f95d){_0x25f7d4['announce'](this['_getMarkerAnnouncementText'](_0x3fc588,'LEAVE'));break;}}for(const _0x306a27 of _0x372643){const {group:_0x1d08b7,type:_0x5b4fae}=this['_splitMarkerName'](_0x306a27['name']);if('suggestion'===_0x1d08b7){_0x25f7d4['announce'](this['_getMarkerAnnouncementText'](_0x5b4fae,'ENTER',_0x18904c(_0x4d04d6)));break;}}});}['_processAttributeChanges'](_0x487310){if(this['_recordAttributeSuggestions'])return!0x1;const _0x322279=this['editor'],_0x2aac3e=_0x322279['model']['document']['differ']['getChanges']();if(0x0==_0x2aac3e['length'])return!0x1;const _0x7e92c9=[],_0x29fcb8=_0x2aac3e['filter'](_0x5efffc=>'attribute'==_0x5efffc['type']),_0x1328ad=_0x2aac3e['filter'](_0x11daa1=>'insert'==_0x11daa1['type']&&'$text'!=_0x11daa1['name']),_0x3ada49=_0x2aac3e['filter'](_0x481cb4=>'remove'==_0x481cb4['type']&&'$text'!=_0x481cb4['name']);for(const _0xdcf1a of _0x29fcb8)_0x7e92c9['push']({'key':_0xdcf1a['attributeKey'],'newValue':_0xdcf1a['attributeNewValue'],'oldValue':_0xdcf1a['attributeOldValue'],'range':qt(_0xdcf1a['range'],_0x322279['model'])});for(const _0x123b62 of _0x1328ad){const _0x51ac26=_0x3ada49['find'](_0x89a235=>_0x89a235['position']['isEqual'](_0x123b62['position']));_0x51ac26&&_0x7e92c9['push']({'key':m,'newValue':_0x123b62['name'],'oldValue':_0x51ac26['name'],'range':_0x322279['model']['createRangeOn'](_0x123b62['position']['nodeAfter'])});}return 0x0!=_0x7e92c9['length']&&this['_reduceExistingSuggestions'](_0x487310,_0x7e92c9);}['_processAttributeSuggestions'](_0x200212){let _0xac0c65=!0x1;const _0x274f67=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2d73bb=>_0x2d73bb['data']['newRange']&&_0x2d73bb['name']['startsWith']('suggestion:attribute:'));for(const _0x217633 of _0x274f67){const {subType:_0x4921f0,id:_0x411a10}=this['_splitMarkerName'](_0x217633['name']),_0x45c7f0=_0x4921f0['split']('|')[0x0];for(const _0x52d200 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x52d200['id']!=_0x411a10&&'attribute'==_0x52d200['type']&&_0x52d200['data']&&_0x52d200['data']['key']==_0x45c7f0&&_0x52d200['getFirstRange']()['isIntersecting'](_0x217633['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x52d200,_0x217633['data']['newRange'],_0x200212),_0xac0c65=!0x0);}return _0xac0c65;}['_recordAttributeChanges'](_0x246286){this['_recordAttributeSuggestions']=!0x0,_0x246286();}['_isRegisteredAttribute'](_0x4f50b1){const _0x4384db=this['_isBlockAttribute'](_0x4f50b1),_0x27cb41=this['_inlineAttributeKeys']['has'](_0x4f50b1);return _0x4384db||_0x27cb41;}['_reduceExistingSuggestions'](_0x16802a,_0x267b25){if(0x0==_0x267b25['length'])return!0x1;let _0x3a041d=!0x1;for(const _0x3033b0 of _0x267b25){const _0x26b6fe=this['_findSuggestions'](_0x3033b0['range'],'attribute')['filter'](_0x5c6cca=>!_0x5c6cca['meta']['isNextTo'])['map'](_0x3610d6=>_0x3610d6['suggestion']),_0x1c5910=_0x3d15d9({'newValue':_0x3033b0['newValue']});_0x26b6fe['filter'](_0x14b937=>{const [_0x2af78b,_0x46e9e7]=_0x14b937['subType']['split']('|');return _0x2af78b==_0x3033b0['key']&&_0x46e9e7!=_0x1c5910;})['forEach'](_0x563304=>{this['_reduceSuggestionAttributeRange'](_0x563304,_0x3033b0['range'],_0x16802a),_0x3a041d=!0x0;});}return _0x3a041d;}['_reduceSuggestionAttributeRange'](_0x4c946b,_0x21bde6,_0x3cd13f){const _0x4b0bb3=_0x4c946b['getFirstRange']()['getDifference'](_0x21bde6);0x0!==_0x4b0bb3['length']?0x1!==_0x4b0bb3['length']?this['_breakSuggestionMarker'](_0x4c946b,_0x21bde6['start'],_0x21bde6['end']):this['_setSuggestionRange'](_0x4c946b,_0x4b0bb3[0x0]):_0x3cd13f['removeMarker'](_0x4c946b['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x268896){this['_editor']=_0x268896,this['_model']=_0x268896['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x369bd4,_0xabbaeb,_0x143cc6,_0x3c571b,_0x5a8d57,_0x56108e){return new u(this['_model'],{'type':_0x369bd4,'subType':_0xabbaeb,'id':_0x143cc6,'author':_0x3c571b,'creator':_0x3c571b,'attributes':_0x5a8d57,'onAttributesChange':_0x56108e,'onAccept':(..._0x34e17a)=>this['getSuggestionCallback'](_0x369bd4,_0xabbaeb,'accept')(..._0x34e17a),'onDiscard':(..._0x2abd36)=>this['getSuggestionCallback'](_0x369bd4,_0xabbaeb,'discard')(..._0x2abd36)});}['registerCustomCallback'](_0x481be1,_0x49a667,_0xdb7387,_0xf44f12){const _0x38213f=_0x481be1+':'+_0x49a667+':'+_0xdb7387;this['_customCallbacks']['set'](_0x38213f,_0xf44f12);}['getSuggestionCallback'](_0xf6ba94,_0x1ed548,_0x3bb4b7){const _0x190dac=_0xf6ba94+':'+_0x1ed548+':'+_0x3bb4b7;return this['_customCallbacks']['get'](_0x190dac)||this['_defaultCallbacks']['get'](_0xf6ba94+':'+_0x3bb4b7);}['_registerDefaultCallbacks'](){const _0x4b0f12=()=>!0x1,_0x4075be=_0x5089bf=>{_0x5089bf['sort']((_0x26016b,_0x61f226)=>_0x26016b['start']['isBefore'](_0x61f226['start'])?0x1:-0x1),this['_model']['change'](_0xa8881f=>{for(const _0x206b89 of _0x5089bf){let _0x1deb62;_0x1deb62=_0x206b89['end']['isAtEnd']&&_0x206b89['end']['parent']==_0x206b89['start']['nodeAfter']?_0xa8881f['createSelection'](_0x206b89['start']['nodeAfter'],'on'):_0xa8881f['createSelection'](_0x206b89),this['_model']['deleteContent'](_0x1deb62,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5e8265=(_0x276ba,_0x4402f4)=>{_0x4402f4&&this['_model']['change'](_0xac56eb=>{const {commandName:_0x199c09,commandParams:_0x35c85e=[]}=_0x4402f4,_0x2ae36b=_0x276ba['map'](_0x4eea91=>(Ft(_0x4eea91)&&(_0x4eea91=this['_model']['createRange'](_0x4eea91['end'])),_0x4eea91))['filter'](_0x41f33d=>'$graveyard'!==_0x41f33d['root']['rootName']);if(_0x2ae36b['length']<0x1)return;const _0x5b0e49=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x165b9d=>_0x4f6ba5['fromRange'](_0x165b9d));_0xac56eb['setSelection'](_0x2ae36b);for(const _0x5c3d44 of this['_editor']['commands']['commands']())_0x5c3d44['refresh']();_0x35c85e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x199c09,..._0x35c85e);const _0x4e3d7c=_0x5b0e49['filter'](_0x4a0aa1=>'$graveyard'!=_0x4a0aa1['root']['rootName']);_0x4e3d7c['length']>0x0&&_0xac56eb['setSelection'](_0x4e3d7c);for(const _0x42efe0 of _0x5b0e49)_0x42efe0['detach']();});},_0x118a7e=(_0x2283ed,_0x35b6a5)=>0x1==_0x2283ed['length']&&0x1==_0x35b6a5['length']&&_0x2283ed[0x0]['end']['isEqual'](_0x35b6a5[0x0]['start']),_0x12cba3=(_0x1361c8,_0x52f929,_0x4232f3,_0x5ae0b1)=>Kt(_0x1361c8,_0x52f929,_0x4232f3,_0x5ae0b1)?[_0x1361c8,_0x52f929]:Kt(_0x52f929,_0x1361c8,_0x5ae0b1,_0x4232f3)?[_0x52f929,_0x1361c8]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4b0f12),this['_defaultCallbacks']['set']('insertion:discard',_0x4075be),this['_defaultCallbacks']['set']('insertion:join',_0x118a7e),this['_defaultCallbacks']['set']('insertion:chain',_0x12cba3),this['_defaultCallbacks']['set']('deletion:accept',_0x4075be),this['_defaultCallbacks']['set']('deletion:discard',_0x4b0f12),this['_defaultCallbacks']['set']('deletion:join',_0x118a7e),this['_defaultCallbacks']['set']('deletion:chain',_0x12cba3),this['_defaultCallbacks']['set']('formatInline:accept',_0x5e8265),this['_defaultCallbacks']['set']('formatInline:discard',_0x4b0f12),this['_defaultCallbacks']['set']('formatInline:join',_0x118a7e),this['_defaultCallbacks']['set']('formatInline:chain',_0x4b0f12),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5e8265),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4b0f12),this['_defaultCallbacks']['set']('formatBlock:join',_0x118a7e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4b0f12),this['_defaultCallbacks']['set']('attribute:accept',_0x4b0f12),this['_defaultCallbacks']['set']('attribute:discard',(_0x3ba8a2,_0x54bf6a)=>{if(!_0x54bf6a)return;const _0x5c9ad5=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x51280c=>{if(_0x54bf6a['key']==m)for(const _0x3de250 of _0x3ba8a2){const _0x5d43f7=_0x3de250['start']['nodeAfter'],_0x335376=_0x54bf6a['oldValue'];_0x51280c['rename'](_0x5d43f7,_0x335376);}else{if(_0x5c9ad5['_isBlockAttribute'](_0x54bf6a['key'])){for(const _0x225b9e of _0x3ba8a2)void 0x0!==_0x54bf6a['oldValue']?_0x51280c['setAttribute'](_0x54bf6a['key'],_0x54bf6a['oldValue'],_0x225b9e['start']['nodeAfter']):_0x51280c['removeAttribute'](_0x54bf6a['key'],_0x225b9e['start']['nodeAfter']);}else{for(const _0x278f37 of _0x3ba8a2)_0x54bf6a['oldValue']?_0x51280c['setAttribute'](_0x54bf6a['key'],_0x54bf6a['oldValue'],_0x278f37):_0x51280c['removeAttribute'](_0x54bf6a['key'],_0x278f37);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x118a7e);}}function Gt(_0x45c00a,_0x14f8aa,_0x5caf75){for(const _0x2ff056 of _0x14f8aa['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2ff056['root']==_0x2ff056)return!0x1;if(!_0x5caf75['containsItem'](_0x2ff056))return!0x1;if(_0x45c00a['isObject'](_0x2ff056)||_0x45c00a['isLimit'](_0x2ff056))return!0x0;}return!0x1;}function Ft(_0xdbb3e9){return _0xdbb3e9['end']['parent']==_0xdbb3e9['start']['nodeAfter']&&_0xdbb3e9['end']['isAtStart'];}function Lt(_0x37fe7c,_0x5e9c08,_0x11fe4e,_0x28308e){const _0x2d729e=_0x4b15c9=>!_0x4b15c9['item']['is']('$textProxy')&&!_0x28308e['isObject'](_0x4b15c9['item']),_0x5f0507=_0x37fe7c['start']['getLastMatchingPosition'](_0x2d729e),_0x511a50=_0x37fe7c['end']['getLastMatchingPosition'](_0x2d729e,{'direction':'backward'});return(!_0x37fe7c['start']['isEqual'](_0x5f0507)||!_0x37fe7c['end']['isEqual'](_0x511a50))&&(_0x5f0507['isBefore'](_0x511a50)?_0x11fe4e['updateMarker'](_0x5e9c08,{'range':_0x11fe4e['createRange'](_0x5f0507,_0x511a50)}):_0x11fe4e['removeMarker'](_0x5e9c08),!0x0);}function Jt(_0x26e0fa){return _0x3d15d9(_0x26e0fa);}function Ht(_0x1f66fa){const _0x891812=_0x1f66fa['start']['nodeAfter'];return _0x891812&&_0x891812['is']('element');}function qt(_0x1b5b48,_0x5bb826){return null==_0x1b5b48['end']['nodeBefore']&&_0x1b5b48['end']['parent']==_0x1b5b48['start']['nodeAfter']?zt(_0x1b5b48['start']['nodeAfter'],_0x5bb826):_0x1b5b48;}function zt(_0x4c223d,_0x3660d9){const _0x444727=_0x3660d9['schema']['isObject'](_0x4c223d)||_0x3660d9['schema']['isSelectable'](_0x4c223d);return _0x3660d9['createRange'](_0x3660d9['createPositionAt'](_0x4c223d,'before'),_0x444727?_0x3660d9['createPositionAfter'](_0x4c223d):_0x3660d9['createPositionAt'](_0x4c223d,'end'));}function Kt(_0x3f5dd0,_0x41dc20,_0x3756cf,_0x475587){return!!Wt(_0x3f5dd0,_0x41dc20)&&_0x3756cf['end']['isEqual'](_0x475587['start']);}function Wt(_0xc13c55,_0xae5d2f){if(!_0xc13c55['_isDataLoaded']||!_0xae5d2f['_isDataLoaded'])return!0x1;const _0x160c94=new Set(Object['keys'](_0xc13c55['attributes'])),_0xd593ef=new Set(Object['keys'](_0xae5d2f['attributes']));if(_0x160c94['delete']('groupId'),_0xd593ef['delete']('groupId'),0x0==_0x160c94['size']&&0x0==_0xd593ef['size'])return!0x0;if(_0x160c94['size']!=_0xd593ef['size'])return!0x1;const _0x4baf05={..._0xc13c55['attributes']},_0x4f5431={..._0xae5d2f['attributes']};return delete _0x4baf05['groupId'],delete _0x4f5431['groupId'],JSON['stringify'](_0x4baf05)==JSON['stringify'](_0x4f5431);}function Qt(_0x53bcc8,_0x131161){const _0x3ae443=Xt(_0x53bcc8['attributes']),_0x3ea79c=Xt(_0x131161);if(!_0x53bcc8['_isDataLoaded'])return!0x1;for(const _0x51b266 of Object['keys'](_0x3ea79c))if(!_0x351c09(_0x3ae443[_0x51b266],_0x3ea79c[_0x51b266]))return!0x1;return!0x0;}function Xt(_0x500f39){const _0x5c3776=Object['assign']({},_0x500f39);return delete _0x5c3776['skipNestingCheck'],delete _0x5c3776['tablePasteChainId'],_0x5c3776;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x5dafa9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x586716,_0x57e38b,_0x3816f5,_0x6e5c52){super(),this['model']=_0x57e38b,this['view']=_0x3816f5,this['commentThreadController']=_0x6e5c52,this['_editor']=_0x586716,this['_acceptCommand']=_0x586716['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x586716['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x36694f,_0x16c0c6)=>_0x36694f||_0x16c0c6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x109a5c=>_0x109a5c&&this['_editor']['model']['canEditAt'](_0x57e38b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x395c14=>_0x395c14&&this['_editor']['model']['canEditAt'](_0x57e38b['getRanges']())),this['_pendingAction']=null,_0x3816f5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3816f5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3816f5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3816f5,'change:isDirty',()=>{_0x3816f5['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 _0x9777d8=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x9777d8);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x438d77{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3cadf4,_0x329c0b,_0xcd5a37,_0x495c0e){super(_0x3cadf4),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x47fc0e(_0x3cadf4,o(_0x3cadf4,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x329c0b['authoredAt']),this['bind']('authoredAt')['to'](_0x329c0b),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',_0x329c0b,'authoredAt',this,'descriptionParts',(_0x4e4be7,_0x94b24a,_0x4d1e13)=>{const _0x5b2047=_0x4d1e13['map'](_0x3d5f74=>cs(_0x3d5f74['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4e4be7-0x1,_0x329c0b['author']['name'],_0x94b24a?_0x495c0e['formatDateTime'](_0x94b24a):'',new DOMParser()['parseFromString'](_0x5b2047,'text/html')['body']['textContent']]);}),this['focusables']=new _0x310ce4(),this['focusTracker']=new _0x389f82(),this['keystrokes']=new _0x42d792(),this['focusCycler']=new _0x1038ae({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3fd02b=>_0x3fd02b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x329c0b,this['_localUser']=_0xcd5a37,this['_config']=_0x495c0e,_0x495c0e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4eeeba(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5898e3}=this['_config'];this['commentsListView']=new _0x5898e3(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',_0x40f8c7=>_0x40f8c7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2c7e53,_0xe269f6)=>_0x2c7e53||!!_0xe269f6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2e3839}=this['_config'],_0x1b795a=new _0x2e3839(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x34a0d8=_0x1b795a['commentInputView'];return _0x1b795a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x34a0d8,'value',(_0x3ec9a6,_0x2f63e2,_0x4a8aed)=>!!_0x4a8aed||_0x3ec9a6&&!_0x2f63e2),_0x34a0d8['on']('submit',(_0x2502b1,_0x3b53d9)=>{this['fire']('addComment',_0x3b53d9),_0x34a0d8['editor']['setData']('');}),_0x34a0d8['on']('cancel',()=>this['focus']()),_0x34a0d8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1b795a;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x226aa4,_0x38242c,_0x1e237d,_0x40c169){super(_0x226aa4,_0x38242c,_0x1e237d,_0x40c169),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x22e899=>_0x22e899&&_0x22e899[0x0]?_0x22e899[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x277b4d,_0x5b474e)=>{let _0x451549='';for(const _0x34f643 of _0x277b4d)_0x451549+='<p>'+cs(_0x34f643['content'],_0x34f643['color'])+'</p>';return _0x5b474e?_0x451549:_0x4a0fbd(_0x451549,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x40c169['SuggestionView'](_0x226aa4,_0x38242c,{'formatDateTime':_0x40c169['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 _0x4f5b6c=this['bindTemplate'],_0x49e1d6=[this['suggestionView']];return this['commentsListView']&&_0x49e1d6['push'](this['commentsListView']),this['commentThreadInputView']&&_0x49e1d6['push'](this['commentThreadInputView']),_0x49e1d6['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4f5b6c['if']('isActive','ck-suggestion-wrapper--active'),_0x4f5b6c['to']('type',_0x100c71=>'ck-suggestion-'+_0x100c71),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':_0x4f5b6c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x49e1d6};}['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 fe extends _0x438d77{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2a6ec3,_0x1a2e91,_0x19c67b){super(_0x2a6ec3),this['_model']=_0x1a2e91,this['_config']=_0x19c67b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1a2e91),this['acceptButton']=this['_createButton'](o(_0x2a6ec3,'Accept\x20suggestion'),_0x3be9a2['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2a6ec3,'Discard\x20suggestion'),_0x3be9a2['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5bda4a(_0x2a6ec3,_0x1a2e91['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x310ce4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x389f82(),this['keystrokes']=new _0x42d792(),this['focusCycler']=new _0x1038ae({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x336c14=>_0x336c14['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x454982=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x454982['innerHTML']=this['description'],this['on']('change:description',(_0x2ee7ca,_0x29c3c7,_0x125f63)=>{_0x454982['innerHTML']=_0x125f63;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1d513f=this['bindTemplate'],_0x9f2c94=[{'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':_0x1d513f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1d513f['to']('authoredAt',_0x3bf93b=>this['_config']['formatDateTime'](_0x3bf93b))}]}]},{'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']&&_0x9f2c94['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':_0x9f2c94}]};}['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'](_0xf4bf28,_0x381d9e,_0x2db8e0,_0x41746d,_0x4303cd){const _0x1e1d8e=new _0x5e49fa(this['locale']);return _0x1e1d8e['set']({'label':_0xf4bf28,'icon':_0x381d9e,'tooltip':!0x0,'tooltipPosition':_0x4303cd}),_0x1e1d8e['extendTemplate']({'attributes':{'class':_0x2db8e0}}),_0x1e1d8e['on']('execute',()=>{this['fire'](_0x41746d,this['_model']['id']);}),_0x1e1d8e;}['_setupKeyboardNavigation'](){const _0x23887e=this['element'];this['keystrokes']['listenTo'](_0x23887e);for(const _0x5943ff of this['focusables'])this['focusTracker']['add'](_0x5943ff['element']),this['keystrokes']['listenTo'](_0x5943ff['element']);this['keystrokes']['set']('enter',(_0x43b6bb,_0x532633)=>{_0x23887e===_0x43b6bb['target']&&(this['focusCycler']['focusFirst'](),_0x532633());}),this['keystrokes']['set']('esc',(_0x85cb7b,_0x3ccc02)=>{_0x23887e!==_0x85cb7b['target']&&(this['focus'](),_0x3ccc02());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x3b6a96{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x58d047,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x234aea){super(_0x234aea),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1cf222=this['editor']['config'];_0x1cf222['define']('trackChanges.SuggestionThreadView',pe),_0x1cf222['define']('trackChanges.SuggestionView',fe),_0x1cf222['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1cf222['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2d161f,_0x357146){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5ec335,_0x48d803]of this['_handleControllerBuffer']){const _0xa99de3=this['_suggestionToController']['has'](_0x5ec335);_0xa99de3||_0x48d803?_0xa99de3&&_0x48d803&&this['_destroyController'](_0x5ec335):this['_initializeController'](_0x5ec335);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2d161f,_0x357146);}['init'](){const _0x12f8ee=this['editor'],_0x10d880=_0x12f8ee['plugins']['get']('TrackChangesEditing'),_0x4c641c=_0x12f8ee['plugins']['get']('Annotations'),_0x325417=_0x12f8ee['plugins']['get']('EditorAnnotations'),_0x375e50=_0x12f8ee['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x325417['addSourceCollector'](()=>{const _0x32399c=[];for(const [_0x43255b,_0x2640d7]of Array['from'](this['_suggestionToController'])){const _0x108d5e=_0x43255b['getAllAdjacentSuggestions'](),_0x26c35f=[];for(const _0x1f0a8b of _0x108d5e){if(!_0x1f0a8b['isInContent'])continue;if(_0x1f0a8b['isMultiRange']){_0x26c35f['push'](..._0x1f0a8b['getRanges']());continue;}const _0x3e3e17=_0x1f0a8b['getFirstRange']();if(_0x26c35f['length']>0x0){const _0x3d8f75=_0x26c35f[0x0]['getJoined'](_0x3e3e17);if(_0x3d8f75){_0x26c35f[0x0]=_0x3d8f75;continue;}}_0x26c35f['push'](_0x3e3e17);}_0x32399c['push']([_0x2640d7['view'],_0x26c35f]);}return _0x32399c;}),this['listenTo'](_0x10d880,'suggestionLoaded',(_0x40edad,_0x393dbb)=>{this['listenTo'](_0x393dbb,'change:previous',(_0x5376c3,_0x15cd11,_0x67d7d5,_0x37c297)=>{_0x393dbb['isInContent']&&(null==_0x67d7d5?(this['_updateController'](_0x37c297['head']),this['_handleSuggestionControllerDelayed'](_0x393dbb,!0x1)):(this['_updateController'](_0x67d7d5['head']),null==_0x37c297&&this['_handleSuggestionControllerDelayed'](_0x393dbb,!0x0)));}),null!==_0x393dbb['previous']?this['_updateController'](_0x393dbb['head']):this['_handleSuggestionControllerDelayed'](_0x393dbb,!0x1);}),this['listenTo'](_0x10d880,'suggestionUnloaded',(_0x3dc169,_0x5bbf82,_0x4da58e)=>{this['stopListening'](_0x5bbf82,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5bbf82),this['_suggestionToController']['has'](_0x5bbf82)&&this['_destroyController'](_0x5bbf82),_0x4da58e&&this['_updateController'](_0x4da58e['head']);}),this['listenTo'](_0x10d880,'suggestionChanged',(_0x16ced5,_0x1ee5c5)=>{this['_updateController'](_0x1ee5c5);}),this['listenTo'](_0x4c641c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x375e50,'addComment',(_0x446f44,{threadId:_0x94a6a,isFromAdapter:_0x12ea65})=>{if(_0x12ea65||!_0x10d880['hasSuggestion'](_0x94a6a))return;const _0x31dfad=_0x10d880['getSuggestion'](_0x94a6a);this['_suggestionToController']['get'](_0x31dfad)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3de82a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4ac630;for(const _0x41ac9a in _0x3de82a){const _0x12f628=_0x41ac9a,_0x106f9a=_0x3de82a[_0x12f628];if('trackChangesLicenseKeyValid'==_0x106f9a||'trackChangesLicenseKeyInvalid'==_0x106f9a||'trackChangesLicenseKeyExpired'==_0x106f9a||'trackChangesLicenseKeyDomainLimit'==_0x106f9a||'trackChangesLicenseKeyNotAllowed'==_0x106f9a||'trackChangesLicenseKeyEvaluationLimit'==_0x106f9a||'trackChangesLicenseKeyTrialLimit'==_0x106f9a||'trackChangesLicenseKeyUsageLimit'==_0x106f9a){delete _0x3de82a[_0x12f628],_0x4ac630=_0x106f9a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4ac630&&_0x3de82a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4ac630&&_0x3de82a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4ac630&&_0x3de82a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4ac630&&_0x3de82a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4ac630&&_0x3de82a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4ac630&&_0x3de82a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4ac630&&_0x3de82a['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xd13730=this['editor']['plugins']['get']('Annotations'),_0x12fcd9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb52b45=Array['from'](_0xd13730['activeAnnotations'],_0x131f81=>_0x131f81['innerView'])['filter'](_0x14fc89=>this['_viewToController']['has'](_0x14fc89)),_0x1ee084=[];for(const _0x128593 of _0xb52b45){const _0x305687=this['_viewToController']['get'](_0x128593)['model']['getAllAdjacentSuggestions']();_0x1ee084['push'](..._0x305687['reduce']((_0x16879d,_0x579cba)=>[..._0x16879d,..._0x579cba['getMarkerNames']()],[]));}_0x12fcd9['activeMarkers']=_0x1ee084;}['_addUIComponentsToFactory'](){const _0x4fb79a=this['editor'],_0x3d2ad7=_0x4fb79a['locale'],_0x542d03=o(_0x3d2ad7,'Track\x20changes'),_0x17827f=new _0x38066d([{'type':'switchbutton','model':new _0x13b983({'withText':!0x0,'isToggleable':!0x0,'label':_0x542d03,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x13b983({'withText':!0x0,'label':o(_0x3d2ad7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13b983({'withText':!0x0,'label':o(_0x3d2ad7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13b983({'withText':!0x0,'label':o(_0x3d2ad7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13b983({'withText':!0x0,'label':o(_0x3d2ad7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4fb79a['plugins']['has']('TrackChangesPreview')&&_0x17827f['addMany']([{'type':'separator'},{'type':'button','model':new _0x13b983({'withText':!0x0,'label':o(_0x3d2ad7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x402e99 of _0x17827f)if(ke(_0x402e99)){const _0x4e7d83=_0x4fb79a['commands']['get'](_0x402e99['model']['commandName']);_0x402e99['model']['bind']('isOn','isEnabled')['to'](_0x4e7d83,'value','isEnabled');}_0x4fb79a['ui']['componentFactory']['add']('trackChanges',_0x348bfe=>this['_createToolbarButton'](_0x348bfe,_0x17827f,_0x542d03)),_0x4fb79a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x22b42f=>this['_createMenuBarMenu'](_0x22b42f,_0x17827f,_0x542d03));}['_createToolbarButton'](_0x46d6d8,_0x8490ff,_0x48be41){const _0x1150f0=_0x1adfcd(_0x46d6d8,_0x4d8b05),_0x13e30e=this['editor']['commands']['get']('trackChanges');_0x1150f0['buttonView']['set']({'tooltip':_0x48be41,'label':_0x48be41,'icon':we}),_0x1150f0['buttonView']['bind']('isOn')['to'](_0x13e30e,'value'),_0x1150f0['buttonView']['on']('execute',()=>{_0x13e30e['execute'](),this['editor']['editing']['view']['focus']();}),_0x19a3f9(_0x1150f0,_0x8490ff,{'role':'menu'});const _0x341473=[];for(const _0x29a349 of _0x8490ff)ke(_0x29a349)&&_0x341473['push'](this['editor']['commands']['get'](_0x29a349['model']['commandName']));const _0x39e49a=_0x1150f0['buttonView'];return _0x39e49a['actionView']['unbind']('isEnabled'),_0x39e49a['arrowView']['unbind']('isEnabled'),_0x39e49a['actionView']['bind']('isEnabled')['to'](_0x13e30e,'isEnabled'),_0x39e49a['arrowView']['bind']('isEnabled')['toMany'](_0x341473,'isEnabled',(..._0x36b1f2)=>_0x36b1f2['some'](_0x308b2b=>_0x308b2b)),_0x1150f0['on']('execute',_0x318c1d=>{this['editor']['execute'](_0x318c1d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1150f0;}['_createMenuBarMenu'](_0x4030c9,_0x288994,_0x4129f4){const _0x58c7dc=new _0x4b2de6(_0x4030c9),_0x282f1a=this['editor']['commands']['get']('trackChanges');_0x58c7dc['buttonView']['set']({'label':_0x4129f4,'icon':we});const _0x3a9a7c=new _0x3dd24d(_0x4030c9);for(const _0x2b0f7f of _0x288994){if('separator'==_0x2b0f7f['type']){_0x3a9a7c['items']['add'](new _0xd93d6d(_0x4030c9));continue;}const _0x888ad3=new _0x115ee8(_0x4030c9,_0x58c7dc),_0x4f3937=new _0x5a64f7(_0x4030c9),_0x4ca3e6=_0x2b0f7f['model'];_0x4f3937['bind'](...Object['keys'](_0x4ca3e6))['to'](_0x4ca3e6),_0x4f3937['delegate']('execute')['to'](_0x58c7dc),_0x4f3937['on']('execute',()=>{this['editor']['execute'](_0x4ca3e6['commandName']),this['editor']['editing']['view']['focus']();}),_0x888ad3['children']['add'](_0x4f3937),_0x3a9a7c['items']['add'](_0x888ad3);}return _0x58c7dc['bind']('isEnabled')['to'](_0x282f1a,'isEnabled'),_0x58c7dc['panelView']['children']['add'](_0x3a9a7c),_0x58c7dc;}['_initializeController'](_0x42f5ce){const _0x348554=this['editor'],_0x28c2fb=_0x348554['config'],_0x13421d=_0x348554['plugins']['get']('Annotations'),_0x415b8e=_0x348554['plugins']['get']('CommentsRepository'),_0x3aea42=_0x348554['plugins']['get']('EditorAnnotations'),_0x681652=_0x348554['plugins']['get'](_0x58d047)['me'],_0x308bca=_0x28c2fb['get']('trackChanges')['SuggestionThreadView'],_0xb8bcbd=_0x28c2fb['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1b7428,CommentThreadInputView:_0x13824a}=_0x348554['plugins']['get']('CommentsUI');let _0x222ee8,_0x15f65c,_0x4143e9;this['_annotationViews']['has'](_0x42f5ce['id'])?(_0x15f65c=this['_annotationViews']['get'](_0x42f5ce['id']),_0x222ee8=_0x15f65c['mainView']):(_0x222ee8=new _0x308bca(_0x348554['locale'],_0x42f5ce,_0x681652,{'disableComments':this['_disableComments'],'editorConfig':{..._0x28c2fb['get']('comments.editorConfig'),'licenseKey':_0x28c2fb['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x28c2fb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x28c2fb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x28c2fb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4b7818(_0x28c2fb['get']('locale')),'CommentView':_0x28c2fb['get']('comments')['CommentView'],'CommentsListView':_0x1b7428,'CommentThreadInputView':_0x13824a,'SuggestionView':_0xb8bcbd}),_0x222ee8['suggestionView']['acceptButton']['on']('execute',()=>{_0x348554['editing']['view']['focus']();}),_0x222ee8['suggestionView']['discardButton']['on']('execute',()=>{_0x348554['editing']['view']['focus']();}),_0x15f65c=_0x13421d['createAnnotationView'](this['editor']['locale'],_0x222ee8),_0x15f65c['bind']('isDirty')['to'](_0x222ee8,'isDirty'),_0x15f65c['bind']('length')['to'](_0x222ee8),_0x15f65c['bind']('type')['to'](_0x222ee8,'type',_0x1ad860=>'suggestion-'+_0x1ad860),_0x222ee8['on']('escape',()=>{_0x4143e9['fire']('escape');}),this['_annotationViews']['set'](_0x42f5ce['id'],_0x15f65c));const _0x36ea09=_0x415b8e['createCommentThreadController'](_0x42f5ce['commentThread'],_0x222ee8),_0x1fcef5=new Ce(_0x348554,_0x42f5ce,_0x222ee8,_0x36ea09),_0x3b02cf=_0x42f5ce['getAllAdjacentSuggestions']()['filter'](_0x85155a=>_0x85155a['isInContent']);_0x222ee8['descriptionParts']=_0x348554['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3b02cf),this['_suggestionToController']['set'](_0x42f5ce,_0x1fcef5),this['_viewToController']['set'](_0x222ee8,_0x1fcef5),_0x4143e9=_0x13421d['createAnnotation']({'view':_0x15f65c,'target':()=>{const _0x43bd51=[],_0x60fafa=_0x42f5ce['getAllAdjacentSuggestions']()['filter'](_0x3d0510=>_0x3d0510['isInContent']);for(const _0x1a5a31 of _0x60fafa)_0x43bd51['push'](..._0x1a5a31['getMarkers']());return _0x1df16c(_0x348554['editing'],_0x43bd51);},'type':()=>'suggestion-'+_0x1fcef5['view']['type']}),_0x415b8e['_bindAnnotationToEditors'](_0x222ee8,_0x4143e9),_0x13421d['add'](_0x4143e9),_0x3aea42['registerAnnotation'](_0x4143e9);}['_destroyController'](_0x27dc0a){const _0x119ace=this['editor']['plugins']['get']('CommentsRepository'),_0x35ab37=this['editor']['plugins']['get']('Annotations'),_0x48e3bd=this['_suggestionToController']['get'](_0x27dc0a),_0x22d883=_0x48e3bd['view'],_0x313eac=_0x35ab37['getByInnerView'](_0x22d883);_0x119ace['_unbindEditors'](_0x22d883),_0x313eac&&_0x35ab37['remove'](_0x313eac),this['_suggestionToController']['delete'](_0x27dc0a),this['_viewToController']['delete'](_0x22d883),_0x48e3bd['destroy']();}['_updateController'](_0x13537a){if(!_0x13537a['isInContent']||!this['_suggestionToController']['has'](_0x13537a))return;const _0x4687d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48eb54=this['_suggestionToController']['get'](_0x13537a),_0x36b380=_0x13537a['getAllAdjacentSuggestions']();_0x48eb54['view']['descriptionParts']=_0x4687d3['descriptionFactory']['getDescriptions'](_0x36b380);}['destroy'](){for(const _0x2060b1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2060b1);for(const _0x3b451b of this['_annotationViews']['values']())_0x3b451b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x25ec2c){return'model'in _0x25ec2c;}class k extends _0x3b6a96{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x21bd35){this['editor']['plugins']['get'](p)['adapter']=_0x21bd35;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2a7ca6){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2a7ca6);}['getSuggestions']({skipNotAttached:_0x9bf3cf=!0x1,toJSON:_0x2d5c5f=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x9bf3cf,'toJSON':_0x2d5c5f});}['getSuggestion'](_0x3f37af){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3f37af);}}const w=['Pagination'];class T extends _0x3b6a96{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xfae21c=this['editor'];if(_0xfae21c['config']['define']('trackChangesData.editorCreator',_0x52e5d4=>{const _0x1dc8a4=_0xfae21c['model']['document']['getRootNames']()['reduce']((_0xffc6a5,_0x37daf3)=>(_0xffc6a5[_0x37daf3]='',_0xffc6a5),{});return _0xfae21c['constructor']['create'](_0x1dc8a4,_0x52e5d4);}),'function'!=typeof _0xfae21c['config']['get']('trackChangesData')['editorCreator'])throw new _0x5e7b1c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x34c32b){return N(this['editor'],!0x0,_0x34c32b);}['getDataWithDiscardedSuggestions'](_0x57205b){return N(this['editor'],!0x1,_0x57205b);}}class D extends _0x3b6a96{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f3845){function _0x2c9252(_0x4fc5bb){return _0x4fc5bb['map'](_0xa99c3b=>String['fromCharCode'](_0xa99c3b))['join']('');}super(_0x5f3845),this['result']='end',_0x5f3845[_0x2c9252([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c9252([0x76,0x69,0x65,0x77])][_0x2c9252([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c9252([0x61,0x75,0x74,0x6f]),_0x5f3845[_0x2c9252([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c9252([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c9252([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c9252([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c9252([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 Fe(_0x132b86){return void 0x0!==_0x132b86['getRootsAttributes'];}async function N(_0x4d5130,_0x5e39ee,_0x3f1394){const _0x203f7a=_0x3547f2(_0x4d5130,w);_0x203f7a['plugins']['push'](p,D),_0x203f7a['rootsAttributes']=Fe(_0x4d5130)?_0x4d5130['getRootsAttributes']():void 0x0;const _0x45aa7e=document['createDocumentFragment'](),_0x159aff=_0x4d5130['config']['get']('trackChangesData')['editorCreator'],_0x470482=await _0x159aff(_0x203f7a,()=>function(_0x954b3b){const _0x348212=document['createElement']('div');return _0x954b3b['appendChild'](_0x348212),_0x348212;}(_0x45aa7e));!function(_0x5439aa,_0x3eee0a){const _0x561737=_0x5439aa['model']['document']['getRootNames']()['reduce']((_0x8fe9d6,_0x57b93a)=>(_0x8fe9d6[_0x57b93a]=_0x5439aa['data']['get']({'rootName':_0x57b93a}),_0x8fe9d6),{}),_0x300ce2=_0x5439aa['plugins']['get']('Users')['users']['map'](_0x37434f=>({'id':_0x37434f['id'],'name':_0x37434f['name']})),_0x22a174=_0x5439aa['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x79d33f=_0x5439aa['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x500865=_0x3eee0a['plugins']['get']('Users'),_0x291b74=_0x3eee0a['plugins']['get']('TrackChangesEditing'),_0x5577fb=_0x3eee0a['plugins']['get']('CommentsRepository');for(const _0x501c03 of _0x5577fb['getCommentThreads']())_0x501c03['remove']();for(const _0x4df8ff of _0x300ce2)_0x500865['getUser'](_0x4df8ff['id'])||_0x500865['addUser'](_0x4df8ff);_0x500865['me']||_0x500865['useAnonymousUser']();for(const _0x501e64 of _0x79d33f)_0x5577fb['addCommentThread'](_0x501e64);for(const _0x348a7e of _0x22a174)_0x291b74['addSuggestionData'](_0x348a7e);_0x3eee0a['data']['set'](_0x561737);}(_0x4d5130,_0x470482),_0x470482['execute'](_0x5e39ee?'acceptAllSuggestions':'discardAllSuggestions');const _0x7c0ac4=Fe(_0x470482)?_0x470482['getFullData'](_0x3f1394):_0x470482['data']['get'](_0x3f1394);return await _0x470482['destroy'](),_0x7c0ac4;}class Me extends _0x438d77{['options'];constructor(_0x261dc2,_0x1c9d75){super(_0x261dc2),this['options']=_0x1c9d75,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'](_0x27a954,_0x5a8e35){if(!this['element'])return;const _0x1d99f3=[];for(const [_0x2078f8,_0x4bec83]of _0x27a954){const _0x4594aa=document['createElement']('div');_0x4594aa['setAttribute']('data-ck-root-name',_0x2078f8),_0x4594aa['className']=_0x4bec83['classes']+'\x20ck-track-changes-preview__root-container',_0x4594aa['innerHTML']=_0x4bec83['content'],_0x1d99f3['push'](_0x4594aa);}_0x5a8e35(this['element'],_0x1d99f3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x112fec){super(_0x112fec),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xb69e6b=this['editor'],_0x39ae23=_0xb69e6b['locale'],_0x2ec5ed=_0xb69e6b['plugins']['get']('Dialog');let _0xde4b1c;const _0x2c5f2c=function(_0x59c2bb){const _0x3101d2={};if('editables'in _0x59c2bb['ui']['view']){for(const [_0x3cc2ec,_0x34ed75]of Object['entries'](_0x59c2bb['ui']['view']['editables']))_0x3101d2[_0x3cc2ec]=_0x34ed75['element'];}else _0x3101d2[_0x59c2bb['model']['document']['getRootNames']()[0x0]]=_0x59c2bb['ui']['view']['editable']['element'];return _0x3101d2;}(_0xb69e6b),_0xfb66ce=function(_0x5ae586){let _0xe91c3b=0x0;for(const _0x157baa of Object['values'](_0x5ae586))_0xe91c3b=Math['max'](_0xe91c3b,_0x157baa['getBoundingClientRect']()['width']);let _0x44f515=0x0;for(const _0x294247 of Object['values'](_0x5ae586))_0x44f515+=_0x294247['getBoundingClientRect']()['height'];const _0x23355e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x44986b=Math['min'](_0x44f515,_0x23355e);return{'width':_0xe91c3b,'height':_0x44986b};}(_0x2c5f2c);_0x2ec5ed['show']({'id':'finalContentPreview','title':o(_0x39ae23,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x39ae23,{'dialogRects':_0xfb66ce}),'onHide':()=>{_0xde4b1c['detachFromDom']();},'onShow':()=>{_0xb69e6b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4b4447=>{const _0x5f071e=this['_standarizeRootsData'](_0x4b4447,_0xb69e6b,_0x2c5f2c);_0x2ec5ed['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5f071e,_0xb69e6b['config']['get']('trackChanges.preview.renderFunction'));}),_0xde4b1c=new _0x50b542(_0x39ae23,[_0x2ec5ed['view']]),_0xde4b1c['attachToDom'](),_0xde4b1c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xb69e6b['once']('destroy',()=>{_0xde4b1c['detachFromDom']();});const _0x132c3c=_0x2ec5ed['view']['headerView']['class'];_0x2ec5ed['view']['headerView']['class']=_0x132c3c?_0x132c3c+'\x20ck-reset_all':'ck-reset_all',_0x2ec5ed['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2ec5ed['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4cd947=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x570dd1=_0x4cd947['previewMode'],_0x4974ff={};if('$labels'===_0x570dd1){for(const _0x1dcc57 of _0x4cd947['getMergeFieldsIds']())_0x4974ff[_0x1dcc57]=_0x4cd947['getLabel'](_0x1dcc57)||_0x1dcc57;}else{const _0x2ef78a='$defaultValues'===_0x570dd1?_0x4cd947['getDefaultValues']():_0x4cd947['getDataSetValues'](_0x570dd1,!0x0);for(const _0x5f3631 of Object['entries'](_0x2ef78a)){const [_0x3c27bf,_0x2c3441]=_0x5f3631;_0x4974ff[_0x3c27bf]=null!==_0x2c3441?_0x2c3441:_0x4cd947['getLabel'](_0x3c27bf)||_0x3c27bf;}}return{'mergeFieldsData':_0x4974ff};}['_standarizeRootsData'](_0x361a0f,_0x1266d5,_0x4adb11){let _0x3a97ca;if('string'==typeof _0x361a0f){const _0x135f1b=_0x1266d5['model']['document']['getRootNames']()[0x0];_0x3a97ca={[_0x135f1b]:_0x361a0f};}else _0x3a97ca=_0x361a0f;const _0x1aa0d2=this['_fixMediaEmbeds'](_0x3a97ca,_0x1266d5),_0x4598f2=function(_0x42c66c,_0x934943){for(const [_0x3efa86,_0x3c2200]of _0x42c66c)_0x3c2200['classes']=_0x934943[_0x3efa86]['classList']['value']['replace']('ck-focused','');return _0x42c66c;}(this['_sortRoots'](_0x1266d5)['reduce']((_0x2ec6d6,_0x48ef4e)=>(_0x2ec6d6['push']([_0x48ef4e,{'content':_0x1aa0d2[_0x48ef4e],'classes':''}]),_0x2ec6d6),[]),_0x4adb11);return _0x4598f2;}['_fixMediaEmbeds'](_0x507267,_0x2e4972){if(!_0x2e4972['plugins']['has']('MediaEmbedEditing'))return _0x507267;const _0x43faef=_0x2e4972['plugins']['get']('MediaEmbedEditing');for(const [_0x1828c3,_0x2d6b0a]of Object['entries'](_0x507267)){const _0x15ad22=document['createElement']('div');_0x15ad22['innerHTML']=_0x2d6b0a,(_0x15ad22['querySelectorAll']('figure.media')['forEach'](_0x4bbd3d=>{const _0x1bd1f3=_0x4bbd3d['querySelector']('oembed');if(_0x1bd1f3){const _0x5ac5de=_0x1bd1f3['getAttribute']('url');if(_0x5ac5de){const _0x27b022=_0x43faef['registry']['getMediaViewElement'](new _0x3dc4c2(_0x2e4972['editing']['view']['document']),_0x5ac5de,{'elementName':'','renderForEditingView':!0x0}),_0x4c446f=document['createElement']('div');_0x4c446f['classList']['add']('ck-media__wrapper'),_0x27b022['render'](_0x4c446f,_0x2e4972['editing']['view']['domConverter']),_0x1bd1f3['replaceWith'](_0x4c446f);}}}),_0x507267[_0x1828c3]=_0x15ad22['innerHTML']);}return _0x507267;}['_sortRoots'](_0x585da3){if(!function(_0x27a1fa){return void 0x0!==_0x27a1fa['getRootsAttributes'];}(_0x585da3))return _0x585da3['model']['document']['getRootNames']();const _0x5ddcf4=[],_0x37b33a=new Map();for(const _0x192b4b of _0x585da3['model']['document']['getRootNames']()){const _0x5b5ec4=_0x585da3['editing']['view']['getDomRoot'](_0x192b4b)['getClientRects']()['item'](0x0);_0x5ddcf4['push'](_0x192b4b),_0x37b33a['set'](_0x192b4b,_0x5b5ec4);}return _0x5ddcf4['sort']((_0x793802,_0x10bb99)=>{const _0x4ec381=_0x37b33a['get'](_0x793802),_0x4ada35=_0x37b33a['get'](_0x10bb99);return _0x4ec381['y']-_0x4ada35['y']||_0x4ec381['x']-_0x4ada35['x'];}),_0x5ddcf4;}}class te extends _0x3b6a96{static get['requires'](){return[T,_0x409a42];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e3843){super(_0x3e3843),_0x3e3843['commands']['add']('previewFinalContent',new re(this['editor'])),_0x3e3843['config']['define']('trackChanges.preview.renderFunction',(_0xfb89fb,_0x25650d)=>{for(const _0x3328e7 of _0x25650d)_0xfb89fb['appendChild'](_0x3328e7);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as Yt,Plugin as _0xa4b53f,PendingActions as _0x2f23c0,icons as _0x146320}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x11aaec,ObservableMixin as _0x28b3e7,uid as _0xf688c7,priorities as _0x2435d0,insertToPriorityArray as _0x337c6b,logWarning as _0x578fad,getEnvKeystrokeText as _0x3cca6d,FocusTracker as _0x2c535c,KeystrokeHandler as _0x411b8d,Collection as _0xbd48a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3e4cac,View as _0x33b69b,ViewCollection as _0x5ba900,FocusCycler as _0x3a69b4,ViewModel as _0x56f17e,createDropdown as _0x12c985,SplitButtonView as _0x120e2f,addListToDropdown as _0x2136e8,MenuBarMenuView as _0x922c1d,MenuBarMenuListView as _0xceb2eb,ListSeparatorView as _0x297364,MenuBarMenuListItemView as _0x29da40,MenuBarMenuListItemButtonView as _0x23292a,BodyCollection as _0x187050,Dialog as _0x32ba8b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x110e12,hashObject as _0x1c2190,surroundingMarkersDetector as _0x5c679e,FOCUS_ANNOTATION_KEYSTROKE as _0x17554f,AriaDescriptionView as _0xde46fc,setupThreadKeyboardNavigation as _0x3df98c,trimHtml as _0xce5d8e,UserView as _0x28de63,LateFocusButtonView as _0x5e2872,getDateTimeFormatter as _0x11931c,getAllMarkersDomElementsSorted as _0x300bcd,sanitizeEditorConfig as _0x3f9cf9}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x7e3eca,LiveRange as _0x4f46eb,LivePosition as _0x38a415,DowncastWriter as _0x1145a5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5cfe2f,toWidget as _0x517cc2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x272af8,set as _0x3e29d3,isEqual as _0x483e20,unset as _0x5cdb86,omit as Vt}from'lodash-es';import{Delete as _0x3bbbf9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x30a68b,ShiftEnter as _0x9d657b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x3ebb28,_0x6d5964){super(_0x3ebb28),this['_enabledCommands']=_0x6d5964,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 _0x1dcc76 of this['editor']['commands']['commands']())_0x1dcc76['affectsData']&&!this['_enabledCommands']['has'](_0x1dcc76)&&_0x1dcc76['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4fc695 of this['editor']['commands']['commands']())_0x4fc695['affectsData']&&!this['_enabledCommands']['has'](_0x4fc695)&&_0x4fc695['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x2c11fc,_0x544d1d){super(_0x2c11fc),this['_suggestions']=_0x544d1d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x14ebf3){const _0x338795=this['_suggestions']['get'](_0x14ebf3);if(!_0x338795)throw new _0x11aaec('track-changes-accept-suggestion-not-found',this);const _0x3c6265=_0x338795['getRanges']();this['editor']['model']['canEditAt'](_0x3c6265)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x338795);}}class R extends Yt{['_suggestions'];constructor(_0x47a3eb,_0x45170f){super(_0x47a3eb),this['_suggestions']=_0x45170f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x39321b){const _0x28e8e8=this['_suggestions']['get'](_0x39321b);if(!_0x28e8e8)throw new _0x11aaec('track-changes-discard-suggestion-not-found',this);const _0xca10d=_0x28e8e8['getRanges']();this['editor']['model']['canEditAt'](_0xca10d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x28e8e8);}}function cs(_0x4bbfdf,_0x1bd6fc){let _0x5edb7e='';return _0x5edb7e+=_0x4bbfdf['split']('*')['map']((_0x34abd1,_0x2b5f57)=>_0x2b5f57%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x34abd1)+'</span>':nn(_0x34abd1))['join'](''),_0x1bd6fc&&(_0x5edb7e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1bd6fc['value']+'\x22\x20title=\x22'+_0x1bd6fc['title']+'\x22></span>'),_0x5edb7e;}function nn(_0x56d02f){const _0xeeb40c=document['createElement']('span');return _0xeeb40c['innerText']=_0x56d02f,_0xeeb40c['innerHTML'];}function Zt(_0x336779){return _0x336779['sort']((_0x47ad79,_0x310c6f)=>'deletion'==_0x47ad79['type']&&'deletion'!=_0x310c6f['type']?-0x1:'deletion'!=_0x47ad79['type']&&'deletion'==_0x310c6f['type']?0x1:0x0);}function to(_0x237010,_0x1a21ca){let _0x5c87bd,_0x2e774f=0x0;const _0x3badf7=[],_0x4ab627=_0x1a21ca['schema'];for(;_0x2e774f<_0x237010['length'];){const _0x2203a2=_0x237010[_0x2e774f],_0x31580d=_0x237010[_0x2e774f+0x1];_0x5c87bd||(_0x5c87bd=_0x1a21ca['createPositionBefore'](_0x2203a2)),on(_0x1a21ca,_0x2203a2,_0x31580d)||(_0x3badf7['push'](_0x1a21ca['createRange'](_0x5c87bd,_0x4ab627['isObject'](_0x2203a2)?_0x1a21ca['createPositionAfter'](_0x2203a2):_0x1a21ca['createPositionAt'](_0x2203a2,'end'))),_0x5c87bd=null),_0x2e774f++;}return _0x3badf7;}function on(_0x515aa9,_0x3c83fd,_0x17e5ea){if(!_0x17e5ea)return!0x1;const _0x515686=_0x515aa9['createPositionAfter'](_0x3c83fd),_0x135148=_0x515aa9['createPositionBefore'](_0x17e5ea);return _0x515686['isTouching'](_0x135148);}function ts(_0x1bb509,_0x1f4ac6,_0x30061b){for(;_0x30061b['length'];){const _0x5da59f=_0x30061b['splice'](0x0,0x64);_0x1bb509['change'](()=>{for(const _0x2733a8 of _0x5da59f)_0x2733a8['isInContent']&&_0x1f4ac6['execute'](_0x2733a8['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x5cf58f,_0x24c2ce,_0xdceeff){super(_0x5cf58f),this['_command']=_0x24c2ce,this['_suggestions']=_0xdceeff,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x193a29=Array['from'](this['_suggestions']['values']())['some'](_0x2e47cc=>_0x2e47cc['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x193a29;}['execute'](){const _0x2aa7ca=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x108499 of _0x2aa7ca){const _0x19e9d6=_0x108499['getRanges']();if(!this['editor']['model']['canEditAt'](_0x19e9d6))return;}ts(this['editor']['model'],this['_command'],_0x2aa7ca);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3ddba2,_0x125cc5,_0x4b1b13){super(_0x3ddba2),this['_command']=_0x125cc5,this['_suggestions']=_0x4b1b13,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x54818d=this['editor']['model']['document']['selection'],_0xda12c4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x594cd4,_0x4f0fa8){const _0x17fb36=Array['from'](_0x594cd4['getRanges']()),_0x14b40e=new Set();for(const _0x260d6c of _0x4f0fa8)if(_0x260d6c['isInContent']){for(const _0x411f8e of _0x17fb36)for(const _0x1c0acc of _0x260d6c['getRanges']())(_0x411f8e['isIntersecting'](_0x1c0acc)||_0x594cd4['isCollapsed']&&!_0x260d6c['isMultiRange']&&_0x260d6c['next']&&_0x1c0acc['end']['isTouching'](_0x411f8e['start']))&&_0x14b40e['add'](_0x260d6c);}return _0x14b40e;}(_0x54818d,_0xda12c4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5f1417=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x95c2fd of _0x5f1417){const _0x4b6dc5=_0x95c2fd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b6dc5))return;}ts(this['editor']['model'],this['_command'],_0x5f1417);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x28b3e7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x6309,_0x981165){super(),this['id']=_0x981165['id'],this['type']=_0x981165['type'],this['subType']=_0x981165['subType']||null,this['author']=_0x981165['author'],this['creator']=_0x981165['creator']||_0x981165['author'],this['isExternal']=Boolean(_0x981165['attributes']&&_0x981165['attributes']['@external']),this['data']=null,this['_model']=_0x6309,this['_onAccept']=_0x981165['onAccept'],this['_onDiscard']=_0x981165['onDiscard'],this['_onAttributesChange']=_0x981165['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x981165['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 _0x5928f8=this;for(;_0x5928f8['previous'];)_0x5928f8=_0x5928f8['previous'];return _0x5928f8;}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'](_0x2fc270){this['_markerNames']['add'](_0x2fc270);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x23b1f0=>this['_model']['markers']['get'](_0x23b1f0))['filter'](_0x4466ea=>_0x4466ea);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3be6bb=>{for(const _0x508c06 of this['getMarkers']())_0x3be6bb['removeMarker'](_0x508c06);}),this['_markerNames']['clear']();}['removeMarker'](_0x10ad3a){this['_model']['change'](_0x4d92cd=>{_0x4d92cd['removeMarker'](_0x10ad3a);}),this['_markerNames']['delete'](_0x10ad3a);}['addRange'](_0xff1833){const _0x48caa1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x48caa1),this['_model']['change'](_0xf4f216=>{_0xf4f216['addMarker'](_0x48caa1,{'range':_0xff1833,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x30b97a){for(const _0x46f94b of this['getRanges']())if(_0x46f94b['isIntersecting'](_0x30b97a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x32c0c0=>_0x32c0c0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x27b8b6,_0x273ec3)=>[..._0x27b8b6,..._0x273ec3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xfabec8=this['getRanges']();if(0x1!=_0xfabec8['length'])return null;const _0x4f10d4=_0xfabec8[0x0],_0x2ecd5e=_0x4f10d4['start']['nodeAfter'],_0x58df82=_0x4f10d4['end']['nodeBefore'];return _0x2ecd5e instanceof _0x7e3eca?_0x2ecd5e!=_0x58df82?null:_0x2ecd5e: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 _0x2031b6=[];let _0x1d80a1=this['head'];for(;_0x1d80a1;)_0x2031b6['push'](_0x1d80a1),_0x1d80a1=_0x1d80a1['next'];return _0x2031b6;}['setAttribute'](_0x3ca6ae,_0x3f0159){const _0xeca2ed=_0x272af8(this['attributes']);_0x3e29d3(_0xeca2ed,_0x3ca6ae,_0x3f0159),_0x483e20(_0xeca2ed,this['attributes'])||(this['attributes']=_0xeca2ed,this['_onAttributesChange'](_0xeca2ed));}['removeAttribute'](_0x49be3c){const _0x3fe613=_0x272af8(this['attributes']);_0x5cdb86(_0x3fe613,_0x49be3c),_0x483e20(_0x3fe613,this['attributes'])||(this['attributes']=_0x3fe613,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 _0xf688c7()['substr'](0x1,0x5);}}function o(_0x1e5de7,_0x1755a4,_0x2350e6){const _0x47a48b=_0x1e5de7['t'],t=_0x1e5de7['t'];switch(_0x1755a4){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',_0x2350e6);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2350e6);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2350e6);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2350e6);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2350e6);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',_0x2350e6);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2350e6);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',_0x2350e6);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2350e6);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2350e6);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2350e6);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2350e6);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2350e6);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2350e6);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2350e6);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2350e6);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2350e6);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2350e6);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2350e6);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2350e6);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2350e6);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2350e6);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2350e6);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2350e6);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'},_0x2350e6);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2350e6);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2350e6);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2350e6);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2350e6);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2350e6);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'},_0x2350e6);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2350e6);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2350e6);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2350e6);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2350e6);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'},_0x2350e6);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2350e6);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'},_0x2350e6);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'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'},_0x2350e6);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2350e6);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'},_0x2350e6);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2350e6);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'},_0x2350e6);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2350e6);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2350e6);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'},_0x2350e6);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2350e6);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 _0x47a48b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2350e6);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x47a48b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2350e6);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2350e6);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'},_0x2350e6);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'},_0x2350e6);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'},_0x2350e6);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1755a4;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xf22364,_0x240c8a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xf22364,this['_locale']=_0x240c8a;}['getDescriptions'](_0x2f5eec){const _0x50e833=[],_0x23f07d=new Set(),_0x1b5fdc=new Set();for(let _0x287d45=0x0;_0x287d45<_0x2f5eec['length'];_0x287d45++){const _0x4313ff=_0x2f5eec[_0x287d45];if(!_0x4313ff['isInContent'])continue;const _0x4e1816=this['_handleCustomCallbackDescription'](_0x4313ff);if(_0x4e1816){if(null!=_0x4313ff['subType']){if(_0x23f07d['has'](_0x4313ff['subType']))continue;_0x23f07d['add'](_0x4313ff['subType']);}_0x50e833['push'](_0x4e1816);}else{if('attribute'!=_0x4313ff['type'])'insertion'!=_0x4313ff['type']&&'deletion'!=_0x4313ff['type']||this['_handleInsertRemoveSuggestionDescription'](_0x50e833,_0x4313ff,_0x2f5eec[_0x287d45+0x1]);else{const _0x1a8ee0=_0x4313ff['data']['key'];if(_0x1b5fdc['has'](_0x1a8ee0))continue;_0x1b5fdc['add'](_0x4313ff['data']['key']),_0x1a8ee0==m?this['_handleRenameSuggestionDescription'](_0x50e833,_0x4313ff):this['_handleAttributeSuggestionDescription'](_0x50e833,_0x4313ff);}}}return this['_resolveDescriptionItems'](_0x50e833);}['registerDescriptionCallback'](_0x2a0e64){this['_customCallbacks']['push'](_0x2a0e64);}['registerElementLabel'](_0x23f043,_0x3b7f73,_0x35fca7=_0x2435d0['normal']){'function'==typeof _0x23f043?_0x337c6b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x23f043,'label':_0x3b7f73,'priority':_0x35fca7}):this['_itemLabels']['set'](_0x23f043,_0x3b7f73);}['registerAttributeLabel'](_0x5176b9,_0x4a3707){this['_attributeLabels']['set'](_0x5176b9,_0x4a3707);}['getItemLabel'](_0x35494e,_0x550f6b=0x1){let _0x44bece;for(const _0xeb22ff of this['_itemLabelsCallbacks'])if(_0xeb22ff['matchingCallback'](_0x35494e)){_0x44bece=_0xeb22ff['label'];break;}return _0x44bece||(_0x44bece=this['_itemLabels']['get'](_0x35494e['name'])),_0x44bece?_0x44bece(_0x550f6b):0x1!==_0x550f6b?_0x550f6b+'\x20'+_0x35494e['name']+'s':''+_0x35494e['name'];}['_addDescriptionItems'](_0x174e4d,_0x4b2b82){const _0x123e5a=_0x4b2b82['getFirstRange']()['getWalker'](),_0x5d3ea2='insertion'==_0x4b2b82['type']?'add':'remove';for(const _0x1bfe32 of _0x123e5a){const _0x4f17dc=_0x1bfe32['item'],_0x391cfb=_0x174e4d[_0x174e4d['length']-0x1];if(_0x4f17dc['is']('$textProxy'))_0x391cfb&&_0x391cfb['type']['indexOf']('Container')>-0x1&&_0x174e4d['pop'](),_0x391cfb&&'text'==_0x391cfb['type']?_0x391cfb[_0x5d3ea2]+=_0x4f17dc['data']:_0x174e4d['push']({'type':'text','add':'add'==_0x5d3ea2?_0x4f17dc['data']:'','remove':'remove'==_0x5d3ea2?_0x4f17dc['data']:''});else{if(this['_schema']['isObject'](_0x4f17dc)){const _0x19709f=_0x4f17dc;if(_0x391cfb&&_0x391cfb['type']['indexOf']('Container')>-0x1&&_0x174e4d['pop'](),'elementEnd'==_0x1bfe32['type'])continue;_0x391cfb&&_0x391cfb['type']==_0x5d3ea2+'Object'&&_0x391cfb['element']['name']==_0x19709f['name']?_0x391cfb['quantity']++:_0x174e4d['push']({'type':_0x5d3ea2+'Object','element':_0x19709f,'quantity':0x1}),_0x123e5a['skip'](_0x44afa6=>!('elementEnd'==_0x44afa6['type']&&_0x44afa6['item']==_0x4f17dc));}else{if(this['_schema']['checkChild'](_0x4f17dc,'$text')||_0x4f17dc['is']('element','softBreak')){const _0x965033=_0x4f17dc;if('add'==_0x5d3ea2&&'elementStart'==_0x1bfe32['type']||'remove'==_0x5d3ea2&&'elementEnd'==_0x1bfe32['type'])continue;if(_0x391cfb&&-0x1==_0x391cfb['type']['indexOf']('Container')){'text'==_0x391cfb['type']&&(_0x391cfb[_0x5d3ea2]+='\x0a');continue;}let _0x4e7586;if(_0x4e7586='add'==_0x5d3ea2?_0x965033['nextSibling']&&!this['_schema']['isObject'](_0x965033['nextSibling'])?_0x965033['nextSibling']:null:_0x965033['previousSibling']&&!this['_schema']['isObject'](_0x965033['previousSibling'])?_0x965033['previousSibling']:null,_0x965033['isEmpty']||_0x4e7586&&_0x4e7586['isEmpty']){const _0x4db218=_0x4e7586&&_0x4e7586['isEmpty']?_0x4e7586:_0x965033;_0x391cfb&&_0x391cfb['type']==_0x5d3ea2+'EmptyContainer'&&_0x391cfb['element']['name']==_0x4db218['name']?_0x391cfb['quantity']++:_0x174e4d['push']({'type':_0x5d3ea2+'EmptyContainer','element':_0x4db218,'quantity':0x1});}else _0x174e4d['push']({'type':_0x5d3ea2+'Container','element':_0x965033});}}}}}['_resolveDescriptionItems'](_0x1ac6d7){const _0x18aace=this['_locale'],_0x3bf59d=[],_0x5da50=[],_0x54c29c=[];for(const _0xb411ca of _0x1ac6d7)switch(_0xb411ca['type']){case'text':if(_0xb411ca['add']=_0xb411ca['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xb411ca['remove']=_0xb411ca['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xb411ca['add']&&''!=_0xb411ca['remove']){_0x3bf59d['push']({'type':'replace','content':o(_0x18aace,'REPLACE_TEXT',['\x22'+_0xb411ca['remove']+'\x22','\x22'+_0xb411ca['add']+'\x22'])});continue;}if(null!=_0xb411ca['add']['match'](/^ +$/)){_0x3bf59d['push']({'type':'insertion','content':o(_0x18aace,'*Insert:*\x20%0',o(_0x18aace,'ELEMENT_SPACE',_0xb411ca['add']['length']))});continue;}if(null!=_0xb411ca['remove']['match'](/^ +$/)){_0x3bf59d['push']({'type':'deletion','content':o(_0x18aace,'*Remove:*\x20%0',o(_0x18aace,'ELEMENT_SPACE',_0xb411ca['remove']['length']))});continue;}if(''!=_0xb411ca['add']){_0x3bf59d['push']({'type':'insertion','content':o(_0x18aace,'*Insert:*\x20%0','\x22'+_0xb411ca['add']+'\x22')});continue;}_0x3bf59d['push']({'type':'deletion','content':o(_0x18aace,'*Remove:*\x20%0','\x22'+_0xb411ca['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3bf59d['push']({'type':'insertion','content':o(_0x18aace,'*Insert:*\x20%0',this['getItemLabel'](_0xb411ca['element'],_0xb411ca['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3bf59d['push']({'type':'deletion','content':o(_0x18aace,'*Remove:*\x20%0',this['getItemLabel'](_0xb411ca['element'],_0xb411ca['quantity']))});continue;case'addContainer':_0x3bf59d['push']({'type':'insertion','content':o(_0x18aace,'*Split:*\x20%0',this['getItemLabel'](_0xb411ca['element'],_0xb411ca['quantity']))});continue;case'removeContainer':_0x3bf59d['push']({'type':'deletion','content':o(_0x18aace,'*Merge:*\x20%0',this['getItemLabel'](_0xb411ca['element'],_0xb411ca['quantity']))});continue;case'addFormat':_0x5da50['push'](_0xb411ca['key']);continue;case'removeFormat':_0x54c29c['push'](_0xb411ca['key']);continue;default:_0x3bf59d['push'](_0xb411ca);}if(_0x5da50['length']){const _0x5c4a99=_0x5da50['map'](_0x43dc30=>this['_attributeLabels']['has'](_0x43dc30)?this['_attributeLabels']['get'](_0x43dc30):_0x43dc30)['join'](',\x20');_0x3bf59d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5c4a99)});}if(_0x54c29c['length']){const _0xa596a=_0x54c29c['map'](_0x117217=>this['_attributeLabels']['has'](_0x117217)?this['_attributeLabels']['get'](_0x117217):_0x117217)['join'](',\x20');_0x3bf59d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xa596a)});}return _0x3bf59d;}['_handleCustomCallbackDescription'](_0x59e72f){for(const _0x3884c8 of this['_customCallbacks']){const _0x284386=_0x3884c8(_0x59e72f);if(_0x284386&&'type'in _0x284386)return _0x284386;}}['_handleAttributeSuggestionDescription'](_0x3524e8,_0x593eeb){const _0x50cb15=_0x593eeb['data'],_0x10953a=void 0x0===_0x50cb15['newValue']?'removeFormat':'addFormat';_0x3524e8['push']({'type':_0x10953a,'key':_0x50cb15['key']});}['_handleRenameSuggestionDescription'](_0xc50f68,_0x158840){_0xc50f68['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x158840['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x37d7cc,_0x464186,_0x565111){if(this['_addDescriptionItems'](_0x37d7cc,_0x464186),_0x565111&&_0x565111['getFirstRange']()&&!_0x464186['getFirstRange']()['end']['isEqual'](_0x565111['getFirstRange']()['start'])){const _0x1ed467=_0x37d7cc[_0x37d7cc['length']-0x1],_0x88790a='insertion'==_0x464186['type']?'add':'remove';_0x1ed467&&'text'==_0x1ed467['type']&&(_0x1ed467[_0x88790a]+='\x0a');}}}class U extends _0xa4b53f{['afterInit'](){const _0x233b93=this['editor'],_0x2bb709=_0x233b93['plugins']['get']('TrackChangesEditing');_0x233b93['commands']['get']('showAIAssistant')&&_0x2bb709['enableCommand']('showAIAssistant');}}class V extends _0xa4b53f{['afterInit'](){const _0xb2639c=this['editor'],_0xd91a1d=_0xb2639c['locale'];if(!_0xb2639c['plugins']['has']('AlignmentEditing'))return;const _0x2fc70c=_0xb2639c['plugins']['get']('TrackChangesEditing');_0x2fc70c['enableDefaultAttributesIntegration']('alignment'),_0x2fc70c['registerBlockAttribute']('alignment'),_0x2fc70c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xd91a1d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x498934=this['editor'],_0x234676=_0x498934['locale'];_0x498934['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3be098=>{if('formatBlock'!=_0x3be098['type'])return;const {data:_0x35e6b2}=_0x3be098;if(_0x35e6b2&&'alignment'==_0x35e6b2['commandName']){const _0x50e05f=_0x35e6b2['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x234676,'*Format:*\x20%0',function(_0x3ac4a2){switch(_0x3ac4a2){case'left':return o(_0x234676,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x234676,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x234676,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x234676,'FORMAT_JUSTIFY_TEXT');}}(_0x50e05f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xa4b53f{['afterInit'](){const _0x5ae9ab=this['editor'],_0x1b2b6b=_0x5ae9ab['plugins']['get']('TrackChangesEditing'),_0x404bb8=_0x5ae9ab['locale'];for(const _0x3c546d of ti){if(!_0x5ae9ab['plugins']['has'](_0x3c546d))continue;const _0x541d7d=_0x3c546d['slice'](0x0,-0x7)['toLowerCase'](),_0x4616fa='FORMAT_'+_0x541d7d['toUpperCase']();_0x1b2b6b['enableDefaultAttributesIntegration'](_0x541d7d),_0x1b2b6b['registerInlineAttribute'](_0x541d7d),_0x1b2b6b['descriptionFactory']['registerAttributeLabel'](_0x541d7d,o(_0x404bb8,_0x4616fa));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59bcda=this['editor'],_0x12c8ba=_0x59bcda['locale'],_0x56a1a8=_0x59bcda['plugins']['get']('TrackChangesEditing');function _0x46bff7(_0x303914,_0x277120){_0x56a1a8['descriptionFactory']['registerDescriptionCallback'](_0x4dd5a9=>{if('formatInline'!=_0x4dd5a9['type'])return;const {data:_0x26f2ab}=_0x4dd5a9;return _0x26f2ab&&_0x26f2ab['commandName']===_0x303914?_0x26f2ab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12c8ba,'*Format:*\x20%0',_0x277120)}:{'type':'format','content':o(_0x12c8ba,'*Remove\x20format:*\x20%0',_0x277120)}:void 0x0;});}_0x46bff7('bold',o(_0x12c8ba,'FORMAT_BOLD')),_0x46bff7('italic',o(_0x12c8ba,'FORMAT_ITALIC')),_0x46bff7('underline',o(_0x12c8ba,'FORMAT_UNDERLINE')),_0x46bff7('code',o(_0x12c8ba,'FORMAT_CODE')),_0x46bff7('strikethrough',o(_0x12c8ba,'FORMAT_STRIKETHROUGH')),_0x46bff7('subscript',o(_0x12c8ba,'FORMAT_SUBSCRIPT')),_0x46bff7('superscript',o(_0x12c8ba,'FORMAT_SUPERSCRIPT'));}}class F extends _0xa4b53f{['afterInit'](){const _0x5c6b59=this['editor'],_0x11c1cb=_0x5c6b59['locale'];if(!_0x5c6b59['plugins']['has']('BlockQuoteEditing'))return;const _0x44bfb1=_0x5c6b59['plugins']['get']('TrackChangesEditing'),_0x42dde8=this['editor']['commands']['get']('blockQuote');_0x44bfb1['enableCommand']('blockQuote',(_0x51feee,_0x180564={})=>{const _0x34abb6=this['editor']['model']['document']['selection'],_0x2c87b3=_0x180564&&void 0x0!==_0x180564['forceValue']?_0x180564['forceValue']:!_0x42dde8['value'];let _0x480e8c=[];if(_0x2c87b3){const _0x5717e3=Array['from'](_0x34abb6['getSelectedBlocks']())['filter'](_0x453691=>oo(_0x453691)||function(_0x4e6bb3,_0x30d1f4){const _0x230880=_0x30d1f4['checkChild'](_0x4e6bb3['parent'],'blockQuote'),_0x41c4d3=_0x30d1f4['checkChild'](['$root','blockQuote'],_0x4e6bb3);return _0x230880&&_0x41c4d3;}(_0x453691,this['editor']['model']['schema']));_0x480e8c=to(_0x5717e3,_0x5c6b59['model']);}else{const _0x25e0a5=Array['from'](_0x34abb6['getSelectedBlocks']())['filter'](_0x592589=>oo(_0x592589));_0x480e8c=to(_0x25e0a5,_0x5c6b59['model']);}_0x5c6b59['model']['change'](()=>{for(const _0xd3415c of _0x480e8c)_0x44bfb1['markBlockFormat'](_0xd3415c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2c87b3}]});});}),_0x44bfb1['descriptionFactory']['registerDescriptionCallback'](_0x330bff=>{const {data:_0x1eabfe}=_0x330bff;if(_0x1eabfe&&'blockQuote'==_0x1eabfe['commandName']){const _0x38ebcd=o(_0x11c1cb,'ELEMENT_BLOCK_QUOTE');return _0x1eabfe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11c1cb,'*Set\x20format:*\x20%0',_0x38ebcd)}:{'type':'format','content':o(_0x11c1cb,'*Remove\x20format:*\x20%0',_0x38ebcd)};}});}}function oo(_0x3b0426){return'blockQuote'==_0x3b0426['parent']['name'];}class L extends _0xa4b53f{['afterInit'](){const _0x1012a4=this['editor'],_0x48ee15=_0x1012a4['locale'],_0x4d365d=_0x1012a4['plugins']['get']('TrackChangesEditing');_0x1012a4['plugins']['has']('BookmarkEditing')&&(_0x4d365d['enableCommand']('insertBookmark'),_0x4d365d['enableDefaultAttributesIntegration']('updateBookmark'),_0x4d365d['registerBlockAttribute']('bookmarkId'),_0x4d365d['descriptionFactory']['registerDescriptionCallback'](_0x430fa2=>{if('insertion'!=_0x430fa2['type']&&'deletion'!=_0x430fa2['type']&&'attribute'!=_0x430fa2['type'])return;const _0x4723fb=_0x430fa2['getContainedElement']();if(null==_0x4723fb)return;if(!_0x4723fb['is']('element','bookmark'))return;const _0x5554a9=_0x4723fb['getAttribute']('bookmarkId');if('insertion'==_0x430fa2['type'])return{'type':'insertion','content':o(_0x48ee15,'*Insert:*\x20%0','\x22'+_0x5554a9+'\x22\x20'+o(_0x48ee15,'ELEMENT_BOOKMARK'))};if('deletion'==_0x430fa2['type'])return{'type':'deletion','content':o(_0x48ee15,'*Remove:*\x20%0','\x22'+_0x5554a9+'\x22\x20'+o(_0x48ee15,'ELEMENT_BOOKMARK'))};const {data:_0x3da3eb}=_0x430fa2;if(!_0x3da3eb||'bookmarkId'!=_0x3da3eb['key'])return;return{'type':'format','content':o(_0x48ee15,'*Set\x20bookmark:*\x20%0','\x22'+_0x3da3eb['newValue']+'\x22')};}));}}class J extends _0xa4b53f{['afterInit'](){const _0x2cded3=this['editor'];_0x2cded3['plugins']['has']('CaseChange')&&(_0x2cded3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2cded3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2cded3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0xa4b53f{['afterInit'](){const _0x34ede4=this['editor'];_0x34ede4['commands']['get']('ckbox')&&_0x34ede4['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0xa4b53f{['afterInit'](){const _0x761b54=this['editor'];if(!_0x761b54['plugins']['has']('CodeBlock'))return;const _0x504346=_0x761b54['plugins']['get']('TrackChangesEditing'),_0x44b617=_0x761b54['locale'],_0x301b1d=_0x761b54['config']['get']('codeBlock')['languages'],_0x1ea9c9=_0x761b54['commands']['get']('codeBlock');_0x504346['enableCommand']('indentCodeBlock'),_0x504346['enableCommand']('outdentCodeBlock'),_0x504346['enableCommand']('codeBlock',(_0x4daeca,_0x3b448a={})=>{const _0x5b034e=_0x761b54['model'],_0x204893=_0x761b54['model']['document']['selection'],_0x523e99=_0x3b448a&&void 0x0!==_0x3b448a['forceValue']?_0x3b448a['forceValue']:!_0x1ea9c9['value'];let _0x14f5ec;_0x3b448a['language']||(_0x3b448a['language']=_0x301b1d[0x0]['language']),_0x14f5ec=_0x523e99?Array['from'](_0x204893['getSelectedBlocks']())['filter'](_0x112f90=>eo(_0x112f90)||function(_0x447a4c,_0xb3b1e3){if(_0x447a4c['is']('rootElement')||_0xb3b1e3['isLimit'](_0x447a4c))return!0x1;return _0xb3b1e3['checkChild'](_0x447a4c['parent'],'codeBlock');}(_0x112f90,_0x5b034e['schema'])):Array['from'](_0x204893['getSelectedBlocks']())['filter'](_0x1d3e25=>eo(_0x1d3e25));const _0x96fc42=to(_0x14f5ec,_0x5b034e);_0x5b034e['change'](()=>{for(const _0xdce852 of _0x96fc42)_0x504346['markBlockFormat'](_0xdce852,{'commandName':'codeBlock','commandParams':[{..._0x3b448a,'forceValue':_0x523e99}],'formatGroupId':'blockName'});});}),(_0x504346['descriptionFactory']['registerElementLabel']('codeBlock',_0x26ae34=>o(_0x44b617,'ELEMENT_CODE_BLOCK',_0x26ae34)),_0x504346['descriptionFactory']['registerDescriptionCallback'](_0x512bda=>{if('formatBlock'!=_0x512bda['type'])return;const _0x980978=_0x44b617['t'],{data:_0x55fca0}=_0x512bda;if(!_0x55fca0||'codeBlock'!=_0x55fca0['commandName'])return;const _0x30b0e1=_0x55fca0['commandParams'][0x0]['language'],_0x480beb=_0x980978(_0x301b1d['find'](_0x327125=>_0x327125['language']===_0x30b0e1)['label'])['toLowerCase']();return _0x55fca0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44b617,'*Set\x20format:*\x20%0',o(_0x44b617,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x480beb+')')}:{'type':'format','content':o(_0x44b617,'*Remove\x20format:*\x20%0',o(_0x44b617,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5b5bb8){return'codeBlock'==_0x5b5bb8['name'];}class z extends _0xa4b53f{['afterInit'](){const _0x4c828d=this['editor'];if(!_0x4c828d['plugins']['has']('CommentsEditing'))return;_0x4c828d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5b096e,_0x3533ae,_0x19fa20){const _0x3a5d98=[];for(const _0x2e193f of _0x3533ae['getItems']())_0x2e193f['hasAttribute'](_0x5b096e)&&_0x3a5d98['push'](_0x19fa20['createRangeOn'](_0x2e193f));return _0x3a5d98;}function De(_0x4b6e92,_0x2b9e98,{showActiveMarker:_0x424b86=!0x0}={}){const _0x3ac555=_0x4b6e92['plugins']['get']('TrackChangesEditing');return(_0x22e128,_0x53dcd4,_0x4fcc56)=>{if(!_0x4fcc56['consumable']['test'](_0x53dcd4['markerRange'],_0x22e128['name']))return;const _0x4363be=_0x53dcd4['markerRange']['getWalker'](),_0x367039=_0x53dcd4['markerRange']['start'],_0x3850b8=_0x4b6e92['model']['schema'];let _0x3452f8=null,_0x1d374a=null,_0xd17b3f=!0x1,_0x22c904=!0x1;for(const _0x10d7a2 of _0x4363be){const _0x5b08bc=_0x10d7a2['item'];_0xd17b3f=_0xd17b3f||_0x3850b8['isContent'](_0x5b08bc);const _0x442168=_0x4fcc56['mapper']['toViewElement'](_0x5b08bc);if(_0x442168&&_0x442168['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x10d7a2['type']&&(_0x3850b8['isBlock'](_0x5b08bc)&&!_0x3850b8['isLimit'](_0x5b08bc)&&(_0x5b08bc['nextSibling']||_0x367039['isAtEnd']?_0x3452f8&&_0x3452f8['parent']==_0x5b08bc||(_0x3452f8=_0x5b08bc,_0x5d87c6(_0x10d7a2['previousPosition']),_0x22c904=!0x0):_0x1d374a=_0x1d374a||_0x10d7a2['previousPosition']));}function _0x5d87c6(_0x5c2b2f){const {authorId:_0xa68223}=_0x3ac555['_splitMarkerName'](_0x53dcd4['markerName']),_0x20ae09=_0x4fcc56['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b9e98,'data-author-id':_0xa68223}),_0x1c76d4=_0x4fcc56['mapper']['toViewPosition'](_0x5c2b2f);_0x424b86&&_0x3ac555['activeMarkers']['includes'](_0x53dcd4['markerName'])&&_0x4fcc56['writer']['addClass']('ck-suggestion-marker--active',_0x20ae09),_0x4fcc56['writer']['insert'](_0x1c76d4,_0x20ae09),_0x4fcc56['mapper']['bindElementToMarker'](_0x20ae09,_0x53dcd4['markerName']);}_0xd17b3f||_0x22c904||!_0x1d374a||_0x5d87c6(_0x1d374a);};}class K extends _0xa4b53f{static get['requires'](){return[_0x3bbbf9];}['init'](){const _0x4b6e22=this['editor'],_0x50f19f=_0x4b6e22['plugins']['get']('TrackChangesEditing');_0x50f19f['enableCommand']('delete');const _0x3f6d6c=_0x4b6e22['commands']['get']('deleteForward');_0x50f19f['enableCommand']('deleteForward',(_0xea0d52,_0x367fa5={})=>{const _0x3f671b=_0x4b6e22['model']['createSelection'](_0x4b6e22['model']['document']['selection']);_0x3f671b['isCollapsed']&&_0x4b6e22['model']['modifySelection'](_0x3f671b,{'direction':'forward','unit':_0x367fa5['unit']});const _0x7725bf=_0x3f671b['getFirstRange'](),_0x129a6b=_0x4f46eb['fromRange'](_0x7725bf);let _0x1aad0c;_0xea0d52(_0x367fa5),_0x1aad0c='$graveyard'==_0x129a6b['root']['rootName']?_0x4b6e22['model']['createRange'](_0x7725bf['start']):_0x4b6e22['model']['createRange'](_0x129a6b['start'],_0x129a6b['end']),_0x129a6b['detach'](),_0x4b6e22['model']['enqueueChange'](_0x3f6d6c['buffer']['batch'],_0x2fe4d8=>{_0x3f6d6c['buffer']['lock'](),_0x2fe4d8['setSelection'](_0x2fe4d8['createRange'](_0x1aad0c['end'])),_0x3f6d6c['buffer']['unlock']();});}),_0x4b6e22['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x4b6e22,'merge'),{'priority':'high'}),_0x4b6e22['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4c859d,_0xcd01a2,_0x10872b)=>{_0x10872b['options']['showSuggestionHighlights']&&De(_0x4b6e22,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4c859d,_0xcd01a2,_0x10872b);},{'priority':'high'}),_0x4b6e22['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x292dc5,_0x2a27b5,_0x5120c6)=>{const _0x8318f2=_0x5120c6['mapper']['markerNameToElements'](_0x2a27b5['markerName']);if(_0x8318f2){for(const _0x4e54e4 of _0x8318f2)_0x4e54e4['is']('uiElement')&&(_0x5120c6['mapper']['unbindElementFromMarkerName'](_0x4e54e4,_0x2a27b5['markerName']),_0x5120c6['writer']['remove'](_0x4e54e4));}},{'priority':'high'});}}class W extends _0xa4b53f{['afterInit'](){const _0x4118a1=this['editor'];if(!_0x4118a1['plugins']['has']('ListEditing'))return;const _0x49e1c=_0x4118a1['locale'],_0x382fbe=_0x4118a1['plugins']['get']('TrackChangesEditing'),_0x4ad249=_0x4118a1['plugins']['has']('TodoListEditing'),_0x190871=!!_0x4118a1['config']['get']('list.multiBlock');function _0x4f5d3d(_0x5b2208){return{'type':'format','content':''+o(_0x49e1c,'*Set\x20format:*\x20%0',_0x5b2208)};}function _0x529fc9(_0x80ad4c){return{'type':'format','content':''+o(_0x49e1c,'*Remove\x20format:*\x20%0',_0x80ad4c)};}_0x382fbe['enableDefaultAttributesIntegration']('numberedList'),_0x382fbe['enableDefaultAttributesIntegration']('bulletedList'),_0x382fbe['enableDefaultAttributesIntegration']('customNumberedList'),_0x382fbe['enableDefaultAttributesIntegration']('customBulletedList'),_0x382fbe['enableDefaultAttributesIntegration']('indentList'),_0x382fbe['enableDefaultAttributesIntegration']('outdentList'),_0x382fbe['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x382fbe['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x382fbe['registerBlockAttribute']('listItemId'),_0x382fbe['registerBlockAttribute']('listType'),_0x382fbe['registerBlockAttribute']('listIndent'),_0x190871&&(_0x382fbe['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x382fbe['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4ad249&&(_0x382fbe['enableDefaultAttributesIntegration']('todoList'),_0x382fbe['enableDefaultAttributesIntegration']('checkTodoList'),_0x382fbe['registerBlockAttribute']('todoListChecked'),_0x382fbe['descriptionFactory']['registerDescriptionCallback'](_0x46f6d4=>{const {data:_0xfb201d}=_0x46f6d4;if(_0xfb201d&&'todoListChecked'==_0xfb201d['key'])return{'type':'format','content':_0xfb201d['newValue']?o(_0x49e1c,'*Check\x20item*'):o(_0x49e1c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2ab683=>{if(_0x2ab683['batch']['isUndo'])return!0x1;let _0x39733c=!0x1;const _0x2e9dc3=_0x382fbe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d37b8=>'todoListChecked'===_0x382fbe['_getAttributeKey'](_0x3d37b8));for(const _0x30ff0f of _0x2e9dc3){'todo'!=_0x30ff0f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x382fbe['_findSuggestions'](_0x30ff0f['getFirstRange'](),'attribute')['find'](_0x5cedbb=>'listType'===_0x382fbe['_getAttributeKey'](_0x5cedbb['suggestion']))||(_0x2ab683['removeMarker'](_0x30ff0f['getFirstMarker']()),_0x39733c=!0x0));}return _0x39733c;})),_0x382fbe['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x49e1c,'FORMAT_INDENT'));const _0x6da670={'type':'format','content':''};_0x382fbe['descriptionFactory']['registerDescriptionCallback'](_0xcacf4c=>{const {data:_0x21cf7b}=_0xcacf4c;if(!_0x21cf7b||'listType'!=_0x21cf7b['key'])return;let _0x38fb7c=_0xcacf4c['head'];for(;_0x38fb7c;){if(_0x38fb7c['data']&&(('listStyle'==_0x38fb7c['data']['key']||'listMarkerStyle'==_0x38fb7c['data']['key'])&&(_0x38fb7c['data']['newValue']&&'default'!=_0x38fb7c['data']['newValue']||'default'!=_0x38fb7c['data']['oldValue']&&!_0x21cf7b['newValue'])||!_0x190871&&_0x38fb7c['data']['key']==m))return _0x6da670;_0x38fb7c=_0x38fb7c['next'];}if(null==_0x21cf7b['newValue'])switch(_0x21cf7b['oldValue']){case'bulleted':return _0x529fc9(o(_0x49e1c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x529fc9(o(_0x49e1c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x529fc9(o(_0x49e1c,'ELEMENT_TODO_LIST'));}switch(_0x21cf7b['newValue']){case'bulleted':return _0x4f5d3d(o(_0x49e1c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f5d3d(o(_0x49e1c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f5d3d(o(_0x49e1c,'ELEMENT_TODO_LIST'));}}),_0x382fbe['descriptionFactory']['registerDescriptionCallback'](_0x59ffdd=>{const {data:_0x5c9702}=_0x59ffdd;if(_0x5c9702&&'listIndent'==_0x5c9702['key'])return null==_0x5c9702['newValue']||null==_0x5c9702['oldValue']&&0x0==_0x5c9702['newValue']?_0x6da670:void 0x0;}),_0x382fbe['descriptionFactory']['registerDescriptionCallback'](_0x333150=>{if('attribute'!=_0x333150['type'])return;const {data:_0x13750b}=_0x333150;if(!_0x13750b||'listItemId'!=_0x13750b['key'])return;const _0x7099cf=Te(_0x333150);return'newValue'==_0x7099cf?{'type':'format','content':o(_0x49e1c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x7099cf?{'type':'format','content':o(_0x49e1c,'*Split:*\x20list\x20item')}:_0x6da670;}),_0x4118a1['model']['document']['registerPostFixer'](_0x902294=>this['listItemIdFixer'](_0x902294)),_0x4118a1['model']['document']['registerPostFixer'](_0x1f0dcb=>this['noTrackChangesFixer'](_0x1f0dcb)),_0x4118a1['model']['document']['on']('change:data',(_0x1d0e7c,_0x2f1adc)=>{if(_0x2f1adc['isUndo']||!_0x2f1adc['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x6c075){if(_0x6c075['batch']['isUndo']||!_0x6c075['batch']['isLocal'])return!0x1;let _0x57dcfb=!0x1;const _0x28c061=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21952c=>_0x21952c['data']&&'listItemId'==_0x21952c['data']['key'])['filter'](_0x1d2404=>_0x1d2404['data']['newValue']&&_0x1d2404['data']['oldValue']);for(const _0x7474d0 of _0x28c061)Te(_0x7474d0)||(_0x6c075['removeMarker'](_0x7474d0['getFirstMarker']()),_0x57dcfb=!0x0);return _0x57dcfb;}['noTrackChangesFixer'](_0x3663b7){if(_0x3663b7['batch']['isUndo']||!_0x3663b7['batch']['isLocal'])return!0x1;const _0x237a78=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x237a78['trackChangesCommand']['value'])return!0x1;let _0x189428=!0x1;const _0x233441=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xea46d1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x17c94a=>'attribute'==_0x17c94a['type'])['filter'](_0x34fa57=>_0x233441['includes'](_0x34fa57['attributeKey']));if(0x0==_0xea46d1['length'])return _0x189428;for(const _0x19eaae of _0xea46d1){const _0x4515a8=_0x237a78['_findSuggestions'](_0x19eaae['range'],'attribute')['filter'](_0x48e762=>!_0x48e762['meta']['isNextTo'])['map'](_0x2a7f68=>_0x2a7f68['suggestion'])['filter'](_0x23ac85=>{const _0x1fd4f0=_0x237a78['_getAttributeKey'](_0x23ac85);return _0x233441['includes'](_0x1fd4f0);});if(_0x4515a8['length']){for(const _0x31c5d8 of _0x4515a8)_0x3663b7['removeMarker'](_0x31c5d8['getFirstMarker']());_0x189428=!0x0;}}return _0x189428;}['assureChains'](){const _0x588102=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29e613=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x17942e;const _0x4c8f41=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x371cf4=>{if(_0x371cf4['data']['oldRange']||!_0x371cf4['data']['newRange'])return null;if(!_0x371cf4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x39ef17}=_0x588102['_splitMarkerName'](_0x371cf4['name']);if(!_0x588102['hasSuggestion'](_0x39ef17))return null;const _0x15b911=_0x588102['getSuggestion'](_0x39ef17);return _0x29e613['includes'](_0x15b911['data']['key']);})['map'](_0x32cc1a=>{const {id:_0x17f612}=_0x588102['_splitMarkerName'](_0x32cc1a['name']),_0x4f3250=_0x588102['getSuggestion'](_0x17f612);return _0x17942e=_0x4f3250['attributes']['groupId'],_0x4f3250['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4c8f41['size'])return;const _0x4aefbd=_0x588102['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52e2c2=>'attribute'==_0x52e2c2['type']&&_0x52e2c2['data']&&_0x29e613['includes'](_0x52e2c2['data']['key'])&&_0x52e2c2['attributes']['groupId']!=_0x17942e)['map'](_0x3259ce=>({'listItem':_0x3259ce['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3259ce['attributes']['groupId']})),_0x3edc96=new Set();for(const {groupId:_0x1c1660,listItem:_0x12a620}of _0x4aefbd)_0x4c8f41['has'](_0x12a620)&&_0x3edc96['add'](_0x1c1660);for(const _0x4d2bd7 of _0x588102['getSuggestions']())_0x3edc96['has'](_0x4d2bd7['attributes']['groupId'])&&_0x4d2bd7['setAttribute']('groupId',_0x17942e);}['_supportLegacySuggestions'](){const _0x3faa4f=this['editor'],_0x21c8b5=_0x3faa4f['locale'],_0x2760ba=_0x3faa4f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2760ba['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3c4f96,_0xcff5ba){const _0xf0794c=[];for(let _0x4f72ab of _0x3c4f96)_0x4f72ab['start']['nodeAfter']===_0x4f72ab['end']['parent']&&(_0x4f72ab=_0x3faa4f['model']['createRange'](_0x3faa4f['model']['createPositionAt'](_0x4f72ab['start']['nodeAfter'],0x0))),_0xf0794c['push'](_0x4f72ab);_0x3faa4f['model']['change'](_0x2fa9e2=>{const _0x37600d=_0x3faa4f['model']['document']['selection'],_0x2e41b7=Array['from'](_0x37600d['getRanges']())['map'](_0x4f97bd=>_0x4f46eb['fromRange'](_0x4f97bd));_0x2fa9e2['setSelection'](_0xf0794c),_0x3faa4f['commands']['get'](_0xcff5ba['commandName'])['refresh'](),_0xcff5ba['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3faa4f['execute'](_0xcff5ba['commandName'],..._0xcff5ba['commandParams']),_0x2fa9e2['setSelection'](_0x2e41b7);for(const _0x5bd996 of _0x2e41b7)_0x5bd996['detach']();});}),_0x2760ba['descriptionFactory']['registerElementLabel'](function(_0x459931){const _0x276bf8=!_0x3faa4f['model']['schema']['isObject'](_0x459931),_0x3ea004=_0x459931['previousSibling'],_0x32710b=_0x459931['nextSibling'],_0x1daece=_0x459931['getAttribute']('listItemId'),_0x169796=!_0x3ea004||_0x3ea004['getAttribute']('listItemId')!==_0x1daece,_0x371891=!_0x32710b||_0x32710b['getAttribute']('listItemId')!==_0x1daece;return _0x276bf8&&Boolean(_0x1daece)&&_0x169796&&_0x371891;},_0x24ca4e=>o(_0x21c8b5,'ELEMENT_LIST_ITEM',_0x24ca4e));}['_registerLegacyDescription'](){const _0x1effe9=this['editor'],_0x97d072=_0x1effe9['locale'];function _0x37dec4(_0x16612a){const _0x1f1042=_0x1effe9['commands']['get']('bulletedList')['value'],_0xec52f4=_0x1effe9['commands']['get']('numberedList')['value'];return'numberedList'===_0x16612a?_0x1f1042:_0xec52f4;}_0x1effe9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x21182e){if('formatBlock'!=_0x21182e['type'])return;const {data:_0xd64e1e}=_0x21182e;if(!_0xd64e1e)return;let _0x36f39b,_0x5c4caf,_0x5a8ea4,_0x58f031;switch(_0xd64e1e['commandName']){case'bulletedList':_0x5a8ea4=_0xd64e1e['commandParams'][0x0]['forceValue'],_0x58f031=_0x37dec4(_0xd64e1e['commandName']),_0x36f39b=_0x5a8ea4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x58f031&&_0x1effe9['config']['get']('list.multiBlock')||(_0x36f39b='*Change\x20to:*\x20%0'),_0x5c4caf={'type':'format','content':o(_0x97d072,_0x36f39b,o(_0x97d072,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5a8ea4=_0xd64e1e['commandParams'][0x0]['forceValue'],_0x58f031=_0x37dec4(_0xd64e1e['commandName']),_0x36f39b=_0x5a8ea4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x58f031&&_0x1effe9['config']['get']('list.multiBlock')||(_0x36f39b='*Change\x20to:*\x20%0'),_0x5c4caf={'type':'format','content':o(_0x97d072,_0x36f39b,o(_0x97d072,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x36f39b='*Indent:*\x20%0',_0x5c4caf={'type':'format','content':o(_0x97d072,_0x36f39b,o(_0x97d072,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x36f39b=function(_0x286e2d){const _0x4b1281=_0x286e2d['getFirstRange']();let _0x584c0a=_0x4b1281['start']['nodeAfter'];for(;_0x584c0a&&_0x4b1281['containsItem'](_0x584c0a);){if(_0x584c0a['getAttribute']('listIndent')>0x0)return!0x1;_0x584c0a=_0x584c0a['nextSibling'];}return!0x0;}(_0x21182e)?o(_0x97d072,'*Format:*\x20remove\x20from\x20%0',o(_0x97d072,function(_0x3e80c7){return'ELEMENT_'+_0x3e80c7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x21182e))):o(_0x97d072,'*Outdent:*\x20%0',o(_0x97d072,'ELEMENT_LIST_ITEM')),_0x5c4caf={'type':'format','content':_0x36f39b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xd64e1e['multipleBlocks']&&(_0x36f39b='*Merge:*\x20%0',_0x5c4caf={'type':'deletion','content':o(_0x97d072,_0x36f39b,o(_0x97d072,'ELEMENT_LIST_ITEM'))});}return _0x5c4caf;});}}function Te(_0x477a91){let _0x38b393=_0x477a91['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x38b393;){const _0x53aff1=_0x38b393['getAttribute']('listItemId');if(!_0x53aff1)return!0x1;if(_0x53aff1==_0x477a91['data']['newValue'])return'newValue';if(_0x53aff1==_0x477a91['data']['oldValue'])return'oldValue';_0x38b393=_0x38b393['previousSibling'];}return!0x1;}class Se extends _0xa4b53f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x27e85c=this['editor']['config']['get']('list.properties'),_0x2fa434=this['editor']['plugins']['get']('TrackChangesEditing');_0x27e85c['styles']&&(_0x2fa434['enableDefaultAttributesIntegration']('listStyle'),_0x2fa434['registerBlockAttribute']('listStyle')),_0x27e85c['reversed']&&(_0x2fa434['enableDefaultAttributesIntegration']('listReversed'),_0x2fa434['registerBlockAttribute']('listReversed')),_0x27e85c['startIndex']&&(_0x2fa434['enableDefaultAttributesIntegration']('listStart'),_0x2fa434['registerBlockAttribute']('listStart'));const _0x58efd5={'type':'format','content':''};_0x2fa434['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x57bad3=this['editor']['locale'];_0x2fa434['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x57bad3,'FORMAT_LIST_REVERSED')),_0x2fa434['descriptionFactory']['registerDescriptionCallback'](_0x5cfd1d=>{const {data:_0x7dc9d}=_0x5cfd1d;if(_0x7dc9d&&'listReversed'==_0x7dc9d['key'])return null==_0x7dc9d['newValue']||0x0==_0x7dc9d['newValue']&&null==_0x7dc9d['oldValue']?_0x58efd5:void 0x0;}),_0x2fa434['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x57bad3,'FORMAT_LIST_START')),_0x2fa434['descriptionFactory']['registerDescriptionCallback'](_0x442c41=>{const {data:_0x35bc21}=_0x442c41;if(_0x35bc21&&'listStart'==_0x35bc21['key'])return null==_0x35bc21['newValue']||0x1==_0x35bc21['newValue']&&null==_0x35bc21['oldValue']?_0x58efd5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x124356=>{if(_0x124356['batch']['isUndo'])return!0x1;let _0x2c7bf8=!0x1;const _0x4a063b=_0x2fa434['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x189189=>{const _0x84e083=_0x2fa434['_getAttributeKey'](_0x189189);return'listStart'==_0x84e083||'listReversed'==_0x84e083;});for(const _0xdda5bd of _0x4a063b){const _0x444cc2=_0xdda5bd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x444cc2||'customNumbered'==_0x444cc2)continue;_0x2fa434['_findSuggestions'](_0xdda5bd['getFirstRange'](),'attribute')['find'](_0x3ff693=>'listType'==_0x2fa434['_getAttributeKey'](_0x3ff693['suggestion']))||(_0x124356['removeMarker'](_0xdda5bd['getFirstMarker']()),_0x2c7bf8=!0x0);}return _0x2c7bf8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4556c5){const _0xb81ca7=this['editor']['locale'],{data:_0x47705e}=_0x4556c5,_0x205acb={'type':'format','content':''};if(!_0x47705e||'listStyle'!=_0x47705e['key'])return;if(!_0x47705e['oldValue'])return'default'==_0x47705e['newValue']?_0x205acb:{'type':'format','content':''+o(_0xb81ca7,'*Set\x20format:*\x20%0',o(_0xb81ca7,this['_getTranslationKeyForListStyle'](_0x47705e['newValue'])))};if(!_0x47705e['newValue']){if('default'==_0x47705e['oldValue'])return _0x205acb;let _0x48ed6e=_0x4556c5['head'];for(;_0x48ed6e;){if(_0x48ed6e['data']&&'listType'==_0x48ed6e['data']['key']&&_0x48ed6e['data']['newValue'])return _0x205acb;_0x48ed6e=_0x48ed6e['next'];}return{'type':'format','content':''+o(_0xb81ca7,'*Remove\x20format:*\x20%0',o(_0xb81ca7,this['_getTranslationKeyForListStyle'](_0x47705e['oldValue'])))};}if('default'!=_0x47705e['newValue'])return{'type':'format','content':''+o(_0xb81ca7,'*Set\x20format:*\x20%0',o(_0xb81ca7,this['_getTranslationKeyForListStyle'](_0x47705e['newValue'])))};let _0x64fbe9=_0x4556c5['head'];for(;_0x64fbe9;){if(_0x64fbe9['data']&&'listType'==_0x64fbe9['data']['key']&&_0x64fbe9['data']['newValue']&&_0x64fbe9['data']['oldValue'])return _0x205acb;_0x64fbe9=_0x64fbe9['next'];}return{'type':'format','content':o(_0xb81ca7,'*Set\x20format:*\x20%0',o(_0xb81ca7,'ELEMENT_'+_0x4556c5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x497c57=this['editor'],_0x58f3b4=_0x497c57['locale'];_0x497c57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50fd9c=>{if('formatBlock'!=_0x50fd9c['type'])return;const {data:_0x1b3bb0}=_0x50fd9c;if(!_0x1b3bb0)return;let _0x8aafc7,_0x2d71ee;switch(_0x1b3bb0['commandName']){case'listStyle':_0x8aafc7='*Change\x20to:*\x20%0',_0x2d71ee={'type':'format','content':o(_0x58f3b4,_0x8aafc7,o(_0x58f3b4,this['_getTranslationKeyForListStyle'](_0x1b3bb0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x8aafc7=_0x1b3bb0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2d71ee={'type':'format','content':o(_0x58f3b4,_0x8aafc7)};break;case'listStart':_0x8aafc7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2d71ee={'type':'format','content':o(_0x58f3b4,_0x8aafc7,_0x1b3bb0['commandParams'][0x0]['startIndex'])};}return _0x2d71ee;});}['_getTranslationKeyForListStyle'](_0xcba927){return'ELEMENT_'+function(_0x31f3c4){if(_e['includes'](_0x31f3c4))return'bulleted';if(Re['includes'](_0x31f3c4))return'numbered';return null;}(_0xcba927)['toUpperCase']()+'_LIST_'+_0xcba927['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xa4b53f{['afterInit'](){const _0x1b333c=this['editor'];_0x1b333c['commands']['get']('emoji')&&_0x1b333c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0xa4b53f{static get['requires'](){return[_0x30a68b];}['init'](){const _0xecd9c2=this['editor'],_0xc375f7=_0xecd9c2['plugins']['get']('TrackChangesEditing'),_0x5ab5f6=_0xecd9c2['commands']['get']('enter');_0xc375f7['enableCommand']('enter',()=>{_0xecd9c2['model']['change'](_0x3bf6f2=>{const _0x469cfe=_0xecd9c2['model']['document']['selection'],_0x62f7ae=_0x469cfe['getFirstPosition'](),_0x3f32fd=_0x4f46eb['fromRange'](_0x469cfe['getFirstRange']());if(_0x5ab5f6['enterBlock'](_0x3bf6f2)){const _0x465bc6=_0xecd9c2['model']['createPositionAt'](_0x62f7ae['parent']['nextSibling'],0x0),_0xcd7f96=_0x3bf6f2['createRange'](_0x62f7ae,_0x465bc6);_0xc375f7['markInsertion'](_0xcd7f96);}else _0x3bf6f2['setSelection'](_0x3bf6f2['createRange'](_0x3f32fd['end']));_0x3f32fd['detach'](),_0x5ab5f6['fire']('afterExecute',{'writer':_0x3bf6f2});});}),_0xecd9c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xecd9c2,'split'),{'priority':'high'}),_0xecd9c2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x20becd,_0x56c982,_0x22275b)=>{const _0x54a20b=_0x22275b['mapper']['markerNameToElements'](_0x56c982['markerName']);if(_0x54a20b){for(const _0x3204fe of _0x54a20b)_0x3204fe['hasClass']('ck-suggestion-marker-split')&&(_0x22275b['mapper']['unbindElementFromMarkerName'](_0x3204fe,_0x56c982['markerName']),_0x22275b['writer']['remove'](_0x3204fe));}},{'priority':'high'}),_0xecd9c2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b3fd2,_0x18ddd6,_0x59a3af)=>{_0x59a3af['options']['showSuggestionHighlights']&&De(_0xecd9c2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2b3fd2,_0x18ddd6,_0x59a3af);},{'priority':'high'});}}class Z extends _0xa4b53f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x47b9a2=this['editor']['plugins']['get']('TrackChangesEditing');_0x47b9a2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x47b9a2['enableCommand']('findNext'),_0x47b9a2['enableCommand']('findPrevious'),_0x47b9a2['enableCommand']('replace'),_0x47b9a2['enableCommand']('replaceAll');}['handleFindCommand'](_0x2f8e93,_0xc49a4a,_0x25a30b={}){const _0x337c2b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2f8e93(_0x559ca7=>{let _0x24651a=('string'==typeof _0xc49a4a?_0x337c2b['findByTextCallback'](_0xc49a4a,_0x25a30b):_0xc49a4a)(_0x559ca7);Array['isArray'](_0x24651a)&&(_0x24651a={'results':_0x24651a,'searchText':'string'==typeof _0xc49a4a?_0xc49a4a:''});const _0x547701=_0x24651a['results']['filter'](_0x170db4=>!0x1===this['_isInDeletionRange'](_0x170db4,_0x559ca7['item']));return{..._0x24651a,'results':_0x547701};},_0x25a30b);}['_isInDeletionRange'](_0x59798a,_0x2fe349){const _0x3845b3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2fe349,_0x59798a['start']),this['editor']['model']['createPositionAt'](_0x2fe349,_0x59798a['end']));for(const _0x39ea91 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3845b3['getIntersection'](_0x39ea91['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0xa4b53f{['afterInit'](){const _0xb5cca4=this['editor']['locale'],_0x2357f6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x33f82b,commandName:_0x204921}of ro)this['editor']['plugins']['has'](_0x33f82b)&&(_0x2357f6['enableDefaultAttributesIntegration'](_0x204921),_0x2357f6['registerInlineAttribute'](_0x204921));_0x2357f6['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xb5cca4,'FORMAT_FONT_SIZE')),_0x2357f6['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xb5cca4,'FORMAT_FONT_FAMILY')),_0x2357f6['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xb5cca4,'FORMAT_FONT_COLOR')),_0x2357f6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xb5cca4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5153e7=this['editor'],_0x374170=_0x5153e7['locale'];_0x5153e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd4631d=>{const _0x47fe03=_0x374170['t'];if('formatInline'!=_0xd4631d['type'])return;const {data:_0x4794f2}=_0xd4631d;if(null!=_0x4794f2){if('fontSize'==_0x4794f2['commandName']){const _0x37d9ed=_0x4794f2['commandParams'][0x0]['value'];if(_0x37d9ed){const _0x325b7c=_0x47fe03(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3d140e=>_0x3d140e['model']==_0x37d9ed)['title'])['toLowerCase']();return{'type':'format','content':o(_0x374170,'*Set\x20font\x20size:*\x20%0',_0x325b7c)};}return{'type':'format','content':o(_0x374170,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4794f2['commandName']){const _0x49c72e=_0x4794f2['commandParams'][0x0]['value'];return _0x49c72e?{'type':'format','content':o(_0x374170,'*Set\x20font\x20family:*\x20%0',_0x49c72e)}:{'type':'format','content':o(_0x374170,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4794f2['commandName']){const _0xaeb521=_0x4794f2['commandParams'][0x0]['value'];if(_0xaeb521){const _0x1682d9=_0x3e4cac(this['editor']['config']['get']('fontColor.colors'))['find'](_0x18daf6=>_0x18daf6['model']==_0xaeb521);let _0x5934d0=_0xaeb521,_0x2c6607='';return _0x1682d9&&(_0x5934d0=_0x1682d9['label'],_0x2c6607=_0x47fe03(_0x5934d0)['toLowerCase']()),{'type':'format','content':o(_0x374170,'*Set\x20font\x20color:*\x20%0',_0x2c6607)['trim'](),'color':{'value':_0xaeb521,'title':_0x2c6607||_0x5934d0}};}return{'type':'format','content':o(_0x374170,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4794f2['commandName']){const _0x140b3f=_0x4794f2['commandParams'][0x0]['value'];if(_0x140b3f){const _0x38eddc=_0x3e4cac(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3a54e9=>_0x3a54e9['model']==_0x140b3f);let _0x1f9366=_0x140b3f,_0x2cfe35='';return _0x38eddc&&(_0x1f9366=_0x38eddc['label'],_0x2cfe35=_0x47fe03(_0x1f9366)['toLowerCase']()),{'type':'format','content':o(_0x374170,'*Set\x20font\x20background\x20color:*\x20%0',_0x2cfe35)['trim'](),'color':{'value':_0x140b3f,'title':_0x2cfe35||_0x1f9366}};}return{'type':'format','content':o(_0x374170,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0xa4b53f{['afterInit'](){const _0x5e55e2=this['editor'],_0x4cf8c2=_0x5e55e2['plugins']['get']('TrackChangesEditing'),_0x3c6908=_0x5e55e2['commands']['get']('copyFormat'),_0x4905d5=_0x5e55e2['commands']['get']('pasteFormat');_0x3c6908&&_0x4905d5&&(_0x4cf8c2['enableDefaultAttributesIntegration']('pasteFormat'),_0x4cf8c2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5608df=this['editor'],_0x3057c8=_0x5608df['locale'];_0x5608df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18d565=>{if('formatBlock'!=_0x18d565['type']&&'formatInline'!=_0x18d565['type'])return;const {data:_0x5001df}=_0x18d565;if(_0x5001df&&'pasteFormat'===_0x5001df['commandName']){const _0x52af15=[],_0x5493f6=_0x5001df['commandParams'][0x0];for(const [_0x2d60a1,_0x168a2d]of Object['entries'](_0x5493f6))_0x52af15['push'](so(_0x5608df,_0x2d60a1,_0x168a2d));return _0x52af15['length']?{'type':'format','content':o(_0x3057c8,'*Set\x20format\x20to:*\x20%0',_0x52af15['join'](',\x20'))}:{'type':'format','content':o(_0x3057c8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4b6f55,_0x76d578,_0x38a76d){const _0x5a1fdd=_0x4b6f55['locale']['t'],_0x22b5b0=_0x76d578['split'](/(?=[A-Z])/)['join']('\x20'),_0x4ff8cf=_0x5a1fdd(_0x22b5b0['charAt'](0x0)['toUpperCase']()+_0x22b5b0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x38a76d)return _0x4ff8cf;if('fontColor'===_0x76d578||'fontBackgroundColor'===_0x76d578){const _0x53ecd3=_0x3e4cac(_0x4b6f55['config']['get']('fontColor.colors'))['find'](_0x187079=>_0x187079['model']==_0x38a76d);return _0x4ff8cf+'\x20('+(_0x53ecd3?_0x5a1fdd(_0x53ecd3['label'])['toLowerCase']():_0x38a76d)+')';}if('fontSize'===_0x76d578&&isNaN(parseFloat(_0x38a76d))){const _0x1bf051=_0x4b6f55['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4b6f55['config']['get']('fontSize.options'))['find'](_0x30f17c=>_0x30f17c['model']==_0x38a76d);return _0x4ff8cf+'\x20('+(_0x1bf051?_0x5a1fdd(_0x1bf051['title'])['toLowerCase']():_0x38a76d)+')';}return _0x4ff8cf+'\x20('+_0x38a76d+')';}class it extends _0xa4b53f{['_headingOptions'];['afterInit'](){const _0x418cdc=this['editor'];if(!_0x418cdc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x418cdc['config']['get']('heading.options');const _0x7d38d5=_0x418cdc['locale'],_0x4c6ee2=_0x418cdc['plugins']['get']('TrackChangesEditing');_0x4c6ee2['enableDefaultAttributesIntegration']('heading');for(const _0x6a1a2a of this['_headingOptions'])'paragraph'!=_0x6a1a2a['model']&&_0x4c6ee2['descriptionFactory']['registerElementLabel'](_0x6a1a2a['model'],_0x2fb5a4=>{const _0x333e59=this['_getHeadingLevel'](_0x6a1a2a['model']);return null!==_0x333e59?_0x176b37(_0x2fb5a4,_0x333e59):_0x200822(_0x2fb5a4,_0x6a1a2a['title']);});function _0x176b37(_0x534b58,_0x4b9e51){return o(_0x7d38d5,'ELEMENT_HEADING',[_0x534b58,_0x4b9e51]);}function _0x200822(_0x4bab0f,_0x3becef){return o(_0x7d38d5,'ELEMENT_HEADING_CUSTOM',[_0x4bab0f,_0x3becef]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7293a6=this['editor'],_0x55f383=_0x7293a6['locale'];function _0x329961(_0x23f293,_0x33b24f){return o(_0x55f383,'ELEMENT_HEADING_CUSTOM',[_0x23f293,_0x33b24f]);}_0x7293a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33bbf1=>{if('formatBlock'!=_0x33bbf1['type'])return;const {data:_0x3e112e}=_0x33bbf1;if(_0x3e112e&&'heading'==_0x3e112e['commandName']){const _0x561530=_0x3e112e['commandParams'][0x0]['value'],_0x3fe186=this['_getHeadingLevel'](_0x561530);if(null!==_0x3fe186)return{'type':'format','content':o(_0x55f383,'*Change\x20to:*\x20%0',(_0x3a21b7=0x1,_0x4c3483=_0x3fe186,o(_0x55f383,'ELEMENT_HEADING',[_0x3a21b7,_0x4c3483])))};const _0x4259fc=this['_headingOptions']['find'](_0x129013=>_0x129013['model']===_0x561530)['title'];return{'type':'format','content':o(_0x55f383,'*Change\x20to:*\x20%0',_0x329961(0x1,_0x4259fc))};}var _0x3a21b7,_0x4c3483;});}['_getHeadingLevel'](_0x29877a){const _0x1c97c9=_0x29877a['match'](/^heading(\d+)/);if(_0x1c97c9)return _0x1c97c9[0x1];const _0x2104a4=this['_headingOptions']?.['find'](_0x109810=>_0x109810['model']==_0x29877a);if(_0x2104a4&&_0x2104a4['view']){const _0x2c4aa0=_0x2104a4['view'],_0x5b4898=(_0x2c4aa0['name']??_0x2c4aa0)['match'](/^h(\d+)/);if(_0x5b4898)return _0x5b4898[0x1];}return null;}}class et extends _0xa4b53f{['afterInit'](){const _0x2ad346=this['editor'];if(!_0x2ad346['plugins']['has']('HighlightEditing'))return;const _0x1e7561=_0x2ad346['plugins']['get']('TrackChangesEditing'),_0x2a6c1a=_0x2ad346['locale'];_0x1e7561['enableDefaultAttributesIntegration']('highlight'),_0x1e7561['registerInlineAttribute']('highlight'),_0x1e7561['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2a6c1a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32a5fa=this['editor'],_0x4989d5=_0x32a5fa['locale'];_0x32a5fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x439552=>{if('formatInline'!=_0x439552['type'])return;const {data:_0x775c5e}=_0x439552;if(_0x775c5e&&'highlight'==_0x775c5e['commandName']){const _0x1d3008=_0x4989d5['t'],_0x5d01d0=_0x775c5e['commandParams'][0x0]['value'];if(_0x5d01d0){const _0x360bee=_0x32a5fa['config']['get']('highlight.options')['find'](_0xcbd3ed=>_0xcbd3ed['model']==_0x5d01d0),_0x4c6148=_0x1d3008(_0x360bee['title'])['toLowerCase']();return{'type':'format','content':o(_0x4989d5,'*Set\x20highlight:*\x20%0',_0x4c6148),'color':{'value':_0x360bee['color'],'title':_0x360bee['title']}};}return{'type':'format','content':o(_0x4989d5,'*Remove\x20highlight*',o(_0x4989d5,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0xa4b53f{['afterInit'](){const _0x156fee=this['editor'];if(!_0x156fee['plugins']['has']('HorizontalLineEditing'))return;_0x156fee['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x104408=_0x156fee['plugins']['get']('TrackChangesEditing'),_0x3dfef9=_0x156fee['locale'];_0x104408['descriptionFactory']['registerElementLabel']('horizontalLine',_0x377cb9=>o(_0x3dfef9,'ELEMENT_HORIZONTAL_LINE',_0x377cb9)),_0x156fee['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3a2d24,{writer:_0x4cd8c8,options:_0x5baea8})=>{if(!_0x5baea8['showSuggestionHighlights'])return null;const _0x3d1c46=_0x4cd8c8['createContainerElement']('div'),_0x3f44a5=_0x4cd8c8['createEmptyElement']('hr');return _0x4cd8c8['addClass']('ck-horizontal-line',_0x3d1c46),_0x4cd8c8['insert'](_0x4cd8c8['createPositionAt'](_0x3d1c46,0x0),_0x3f44a5),_0x3d1c46;},'converterPriority':'high'});}}class ot extends _0xa4b53f{['afterInit'](){const _0x2935e5=this['editor'];if(!_0x2935e5['plugins']['has']('HtmlEmbed'))return;const _0x57ae0a=_0x2935e5['plugins']['get']('TrackChangesEditing'),_0x35e0d6=_0x2935e5['locale'];_0x57ae0a['descriptionFactory']['registerElementLabel']('rawHtml',_0x11743d=>o(_0x35e0d6,'ELEMENT_HTML_EMBED',_0x11743d)),_0x57ae0a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x57ae0a['registerBlockAttribute']('value'),_0x57ae0a['descriptionFactory']['registerDescriptionCallback'](_0x3e656c=>{if('attribute'!=_0x3e656c['type'])return;const {data:_0x83abd2}=_0x3e656c;if(_0x83abd2&&'value'==_0x83abd2['key']&&_0x3e656c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x323b87=o(_0x35e0d6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x35e0d6,'*Change\x20%0\x20content*',_0x323b87)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x462826=this['editor'],_0x255f6b=_0x462826['locale'];_0x462826['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33e23d=>{if('formatBlock'!=_0x33e23d['type'])return;const {data:_0x5cc5c1}=_0x33e23d;if(_0x5cc5c1&&'htmlEmbed'==_0x5cc5c1['commandName']){const _0x5568c0=o(_0x255f6b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x255f6b,'*Change\x20%0\x20content*',_0x5568c0)};}});}}class rt extends _0xa4b53f{['afterInit'](){const _0x80d26c=this['editor'];if(!_0x80d26c['plugins']['has']('ImageEditing'))return;const _0x5e8397=_0x80d26c['plugins']['get']('TrackChangesEditing'),_0x26d8c5=_0x80d26c['plugins']['get']('ImageUtils'),_0x25bb81=_0x80d26c['locale'];_0x5e8397['enableCommand']('insertImage'),_0x5e8397['descriptionFactory']['registerElementLabel']('imageBlock',_0x503f1c=>o(_0x25bb81,'ELEMENT_IMAGE',_0x503f1c)),_0x5e8397['descriptionFactory']['registerElementLabel']('imageInline',_0x50675d=>o(_0x25bb81,'ELEMENT_INLINE_IMAGE',_0x50675d)),_0x5e8397['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x25bb81,'ELEMENT_CAPTION')),_0x80d26c['plugins']['has']('ImageUploadEditing')&&_0x5e8397['enableCommand']('uploadImage'),_0x80d26c['plugins']['has']('ImageBlockEditing')&&_0x80d26c['plugins']['has']('ImageInlineEditing')&&(_0x5e8397['enableCommand']('imageTypeInline',(_0x49031a,_0x11e25b)=>{const _0x50a17e=_0x26d8c5['getClosestSelectedImageElement'](_0x80d26c['model']['document']['selection']);_0x80d26c['model']['change'](()=>{_0x5e8397['markBlockFormat'](_0x50a17e,{'commandName':'imageTypeInline','commandParams':[_0x11e25b]},[],'convertBlockImageToInline');});}),_0x5e8397['enableCommand']('imageTypeBlock',(_0x3f6145,_0x473d7b)=>{_0x80d26c['model']['change'](_0x4b1328=>{let _0x350543=_0x26d8c5['getClosestSelectedImageElement'](_0x80d26c['model']['document']['selection']),_0x2aa530=_0x4b1328['createRangeOn'](_0x350543);const _0x2ab21f=_0x38a415['fromPosition'](_0x2aa530['start'],'toPrevious'),_0x7d9188=_0x38a415['fromPosition'](_0x2aa530['end'],'toNext');_0x5e8397['forceDefaultExecution'](()=>_0x3f6145(_0x473d7b)),_0x350543=_0x26d8c5['getClosestSelectedImageElement'](_0x80d26c['model']['document']['selection']),_0x2aa530=_0x4b1328['createRangeOn'](_0x350543);const _0x4590c7=_0x4b1328['createRange'](_0x2ab21f,_0x7d9188);_0x2ab21f['detach'](),_0x7d9188['detach'](),_0x5e8397['markBlockFormat'](_0x350543,{'commandName':'imageTypeInline','commandParams':[_0x473d7b]},[],'convertInlineImageToBlock'),_0x4590c7['start']['isBefore'](_0x2aa530['start'])&&_0x5e8397['markInsertion'](_0x4b1328['createRange'](_0x4590c7['start'],_0x2aa530['start']),'convertInlineImageToBlock'),_0x2aa530['end']['isBefore'](_0x4590c7['end'])&&_0x5e8397['markInsertion'](_0x4b1328['createRange'](_0x2aa530['end'],_0x4590c7['end']),'convertInlineImageToBlock');});}),_0x5e8397['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e8397['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e8397['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e8397['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e8397['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e8397['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x334782])=>{const _0x15b54e=_0x5e8397['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x492632=_0x334782['start'],_0x5c6975=_0x334782['end'];const _0x55b7b8=_0x80d26c['model']['schema']['getNearestSelectionRange'](_0x492632,'backward'),_0xb360f1=_0x80d26c['model']['schema']['getNearestSelectionRange'](_0x5c6975,'forward');_0x55b7b8['isCollapsed']&&(_0x492632=_0x55b7b8['start']),_0xb360f1['isCollapsed']&&(_0x5c6975=_0xb360f1['end']),_0x15b54e([_0x80d26c['model']['createRange'](_0x492632,_0x5c6975)]);}),_0x5e8397['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x146021),_0x5e8397['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x146021)),_0x80d26c['plugins']['has']('ImageCaptionEditing')&&(_0x5e8397['enableCommand']('toggleImageCaption',(_0x45af99,_0x4be894)=>{const _0xb7e24b=_0x80d26c['plugins']['get']('ImageCaptionUtils');let _0x2297e4=_0x26d8c5['getClosestSelectedImageElement'](_0x80d26c['model']['document']['selection']),_0x47ebd7=_0xb7e24b['getCaptionFromImageModelElement'](_0x2297e4);_0x80d26c['model']['change'](()=>{if(_0x47ebd7)return void _0x5e8397['markDeletion'](_0x80d26c['model']['createRangeOn'](_0x47ebd7));const _0xd2abfe=_0x26d8c5['isBlockImage'](_0x2297e4);_0x45af99(_0x4be894),_0x2297e4=_0x26d8c5['getClosestSelectedImageElement'](_0x80d26c['model']['document']['selection']),_0x47ebd7=_0xb7e24b['getCaptionFromImageModelElement'](_0x2297e4),_0x5e8397['markInsertion'](_0x80d26c['model']['createRangeOn'](_0x47ebd7),_0xd2abfe?null:'imageCaption');});}),_0x5e8397['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x146021));const _0x195066=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x204d89(_0x19ee07,_0x216663){const _0x550c36=_0x195066['findIndex'](({type:_0x46079c,subType:_0x101162})=>_0x19ee07['type']==_0x46079c&&_0x19ee07['subType']==_0x101162),_0xd3f278=_0x195066['findIndex'](({type:_0x1e01d4,subType:_0x47f57d})=>_0x216663['type']==_0x1e01d4&&_0x216663['subType']==_0x47f57d);if(_0x550c36<0x0||_0xd3f278<0x0)return!0x1;const _0x2a36b1=_0x19ee07['getFirstRange'](),_0x44a86a=_0x216663['getFirstRange']();if((0x0==_0x550c36||0x1==_0x550c36)&&0x2==_0xd3f278&&_0x2a36b1['isIntersecting'](_0x44a86a))return!0x0;if(0x2==_0x550c36&&0x3==_0xd3f278){const _0x3d0add=_0x5e8397['_findSuggestions'](_0x2a36b1,'insertion')['filter'](({suggestion:_0x1e584a,meta:_0x3c1a06})=>_0x3c1a06['isOwn']&&'convertInlineImageToBlock'==_0x1e584a['subType']);if(_0x3d0add['length']>0x1&&_0x44a86a['end']['isEqual'](_0x2a36b1['start']))return!0x0;if(0x1==_0x3d0add['length']&&(_0x2a36b1['start']['isEqual'](_0x44a86a['end'])||_0x2a36b1['end']['isEqual'](_0x44a86a['start'])))return!0x0;}if(0x3==_0x550c36&&0x3==_0xd3f278&&_0x2a36b1['start']['isBefore'](_0x44a86a['start'])){const _0x295ef6=_0x2a36b1['end']['nodeAfter'],_0x5b8465=_0x44a86a['start']['nodeBefore'];return _0x26d8c5['isBlockImage'](_0x295ef6)&&_0x295ef6===_0x5b8465;}return!0x1;}function _0x146021(_0xa5cc45,_0x419b36){return _0x204d89(_0xa5cc45,_0x419b36)?[_0xa5cc45,_0x419b36]:_0x204d89(_0x419b36,_0xa5cc45)?[_0x419b36,_0xa5cc45]:null;}_0x80d26c['plugins']['has']('ImageResize')&&(_0x5e8397['enableDefaultAttributesIntegration']('resizeImage'),_0x5e8397['registerBlockAttribute']('resizedWidth'),_0x5e8397['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x25bb81,'FORMAT_IMAGE_SIZE'))),_0x80d26c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e8397['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e8397['registerBlockAttribute']('alt')),_0x80d26c['plugins']['has']('PictureEditing')&&(_0x5e8397['registerBlockAttribute']('sources'),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0x36a9ac=>{if('attribute'!=_0x36a9ac['type'])return;const {data:_0x27f2b7}=_0x36a9ac;return _0x27f2b7&&'sources'==_0x27f2b7['key']?{'type':'format','content':''}:void 0x0;})),_0x80d26c['plugins']['has']('ImageSizeAttributes')&&(_0x5e8397['registerBlockAttribute']('width'),_0x5e8397['registerBlockAttribute']('height'),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0x24bb27=>{if('attribute'!=_0x24bb27['type'])return;const {data:_0x5d73fa}=_0x24bb27;return!_0x5d73fa||'width'!=_0x5d73fa['key']&&'height'!=_0x5d73fa['key']?void 0x0:{'type':'format','content':''};})),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0x5ee743=>{if(!!_0x195066['find'](({type:_0x2e97ca,subType:_0x4b5659})=>_0x5ee743['type']==_0x2e97ca&&_0x5ee743['subType']==_0x4b5659))return _0x5ee743['previous']?{}:void 0x0;}),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0xbb9e7c=>{if('insertion'==_0xbb9e7c['type']||'deletion'==_0xbb9e7c['type']){const _0x59f1ed=_0xbb9e7c['getContainedElement']();if(_0x59f1ed&&_0x59f1ed['is']('element','caption'))return{'type':'insertion'==_0xbb9e7c['type']?'addObject':'removeObject','element':_0x59f1ed,'quantity':0x1};}}),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0x10a020=>'formatBlock'==_0x10a020['type']&&'convertInlineImageToBlock'==_0x10a020['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x10a020['type']&&'convertBlockImageToInline'==_0x10a020['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0x40b703=>{if('attribute'!=_0x40b703['type'])return;const {data:_0x37cea9}=_0x40b703;if(!_0x37cea9||'alt'!=_0x37cea9['key'])return;const _0x20007c=_0x37cea9['newValue'];return _0x20007c?{'type':'format','content':o(_0x25bb81,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x20007c+'\x22')}:{'type':'format','content':o(_0x25bb81,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1861a5=this['editor'],_0x471ab5=_0x1861a5['locale'];_0x1861a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4584c2=>{if('formatBlock'!=_0x4584c2['type']&&'formatInline'!=_0x4584c2['type'])return;const {data:_0x4e7232}=_0x4584c2;if(_0x4e7232){if('imageTextAlternative'==_0x4e7232['commandName']){const _0x1ff87e=_0x4e7232['commandParams'][0x0]['newValue'];return _0x1ff87e?{'type':'format','content':o(_0x471ab5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1ff87e+'\x22')}:{'type':'format','content':o(_0x471ab5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4e7232['commandName']){const _0x16caea=_0x4e7232['commandParams'][0x0]['width'];return _0x16caea?{'type':'format','content':o(_0x471ab5,'*Set\x20image\x20width:*\x20%0',_0x16caea)}:{'type':'format','content':o(_0x471ab5,'*Reset\x20image\x20width*')};}}});}}class at extends _0xa4b53f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x175a3b=this['editor']['locale'],_0x299bd7=this['editor']['plugins']['get']('TrackChangesEditing');_0x299bd7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x299bd7['registerBlockAttribute']('src'),_0x299bd7['descriptionFactory']['registerDescriptionCallback'](_0x2e900c=>{if('attribute'!=_0x2e900c['type'])return;const {data:_0x58a0c9}=_0x2e900c;return _0x58a0c9&&'src'==_0x58a0c9['key']?_0x58a0c9['newValue']&&_0x58a0c9['oldValue']?{'type':'format','content':o(_0x175a3b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1c2c7d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c2c7d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1c2c7d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c2c7d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1c2c7d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x261c22=this['editor'],_0x264055=_0x261c22['locale'];_0x261c22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28bfb4=>{if('formatBlock'!=_0x28bfb4['type']&&'formatInline'!=_0x28bfb4['type'])return;const {data:_0x478318}=_0x28bfb4;if(!_0x478318||'replaceImageSource'!=_0x478318['commandName'])return;return{'type':'format','content':o(_0x264055,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0xa4b53f{['afterInit'](){const _0x590bd2=this['editor'];if(!_0x590bd2['plugins']['has']('ImageStyleEditing'))return;const _0x1f19e2=_0x590bd2['plugins']['get']('TrackChangesEditing'),_0x54fe54=_0x590bd2['plugins']['get']('ImageUtils'),_0x472cb6={};_0x1f19e2['enableCommand']('imageStyle',(_0x326c41,_0x186293)=>{const _0x1e8abd=_0x590bd2['plugins']['get']('Users')['me'],_0x368a92=_0x590bd2['commands']['get']('imageStyle');let _0x373190=_0x54fe54['getClosestSelectedImageElement'](_0x590bd2['model']['document']['selection']),_0x2872f6=_0x590bd2['model']['createRangeOn'](_0x373190),_0x187953=_0x368a92['value'];if(_0x187953==_0x186293['value'])return;const _0x3eb525={'commandName':'imageStyle','commandParams':[_0x186293],'formatGroupId':_0xf688c7()};_0x590bd2['model']['change'](()=>{if(_0x1f19e2['getSuggestions']()['filter'](_0x2fb1b1=>_0x2fb1b1['isInContent']&&_0x1e8abd==_0x2fb1b1['author']&&('formatBlock'==_0x2fb1b1['type']||'formatInline'==_0x2fb1b1['type'])&&('imageStylePreApply'==_0x2fb1b1['subType']||'imageStylePostApply'==_0x2fb1b1['subType'])&&_0x2fb1b1['getFirstRange']()['isEqual'](_0x2872f6))['forEach'](_0x1eda7a=>_0x1f19e2['discardSuggestion'](_0x1eda7a['head'])),_0x373190=_0x54fe54['getClosestSelectedImageElement'](_0x590bd2['model']['document']['selection']),_0x2872f6=_0x590bd2['model']['createRangeOn'](_0x373190),_0x368a92['refresh'](),_0x590bd2['commands']['get']('imageTypeInline')['refresh'](),_0x590bd2['commands']['get']('imageTypeBlock')['refresh'](),_0x187953=_0x368a92['value'],_0x187953!=_0x186293['value'])return _0x54fe54['isInlineImage'](_0x373190)&&_0x368a92['shouldConvertImageType'](_0x186293['value'],_0x373190)?(_0x326c41({..._0x186293,'setImageSizes':!0x1}),_0x373190=_0x54fe54['getClosestSelectedImageElement'](_0x590bd2['model']['document']['selection']),void _0x1f19e2['markBlockFormat'](_0x373190,{..._0x3eb525,'commandReversedParams':[{'value':_0x187953||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x54fe54['isBlockImage'](_0x373190)?_0x1f19e2['markBlockFormat'](_0x373190,_0x3eb525,[],'imageStylePostApply'):_0x1f19e2['markInlineFormat'](_0x2872f6,_0x3eb525,'imageStylePostApply'));});});for(const _0x58a884 of _0x590bd2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x472cb6[_0x58a884['name']]=_0x58a884['title']['toLowerCase']();_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x38996b])=>{_0x54fe54['setImageNaturalSizeAttributes'](_0x38996b['getContainedElement']());}),_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x17b7fa,_0x218290)=>{_0x1f19e2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x17b7fa,{'commandName':_0x218290['commandName'],'commandParams':_0x218290['commandReversedParams']});}),_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x22e17d,_0x4cb271){if(_0x4d9041(_0x22e17d,_0x4cb271))return[_0x22e17d,_0x4cb271];if(_0x4d9041(_0x4cb271,_0x22e17d))return[_0x4cb271,_0x22e17d];return null;});const _0x56763f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4d9041(_0x2f7543,_0x80a30f){const _0x1054b4=_0x56763f['findIndex'](({type:_0x54b2a7,subType:_0x11f7bf})=>_0x2f7543['type']==_0x54b2a7&&_0x2f7543['subType']==_0x11f7bf),_0x580763=_0x56763f['findIndex'](({type:_0x32496f,subType:_0x6e284e})=>_0x80a30f['type']==_0x32496f&&_0x80a30f['subType']==_0x6e284e);if(_0x1054b4<0x0||_0x580763<0x0)return!0x1;const _0x2939f3=_0x2f7543['getFirstRange'](),_0x2d13f=_0x80a30f['getFirstRange']();if((0x0==_0x1054b4||0x1==_0x1054b4)&&0x2==_0x580763&&_0x2939f3['isIntersecting'](_0x2d13f))return!0x0;if(0x2==_0x1054b4&&0x3==_0x580763){const _0x399902=_0x1f19e2['_findSuggestions'](_0x2939f3,'insertion')['filter'](({suggestion:_0x40aee0,meta:_0x3efb98})=>_0x3efb98['isOwn']&&'convertInlineImageToBlock'==_0x40aee0['subType']);if(_0x399902['length']>0x1&&_0x2d13f['end']['isEqual'](_0x2939f3['start']))return!0x0;if(0x1==_0x399902['length']&&(_0x2939f3['start']['isEqual'](_0x2d13f['end'])||_0x2939f3['end']['isEqual'](_0x2d13f['start'])))return!0x0;}if(0x3==_0x1054b4&&0x3==_0x580763&&_0x2939f3['start']['isBefore'](_0x2d13f['start'])){const _0x21af37=_0x2939f3['end']['nodeAfter'],_0x35125b=_0x2d13f['start']['nodeBefore'];return _0x54fe54['isBlockImage'](_0x21af37)&&_0x21af37===_0x35125b;}return!0x1;}_0x590bd2['model']['document']['registerPostFixer'](()=>{let _0x4081dc=!0x1;const _0x153e85=Array['from'](_0x590bd2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32fd97,data:_0x125082}of _0x153e85){const {group:_0x4b5af7,type:_0x278b31,subType:_0x3fa4d0,id:_0x3248e0}=_0x1f19e2['_splitMarkerName'](_0x32fd97);if('suggestion'==_0x4b5af7&&_0x1f19e2['hasSuggestion'](_0x3248e0)){if('formatBlock'==_0x278b31&&('imageStylePreApply'==_0x3fa4d0||'imageStylePostApply'==_0x3fa4d0)){const _0x8830c0=_0x1f19e2['getSuggestion'](_0x3248e0);if(_0x125082['newRange']){const _0xaa4e40=_0x8830c0['getFirstRange']()['getContainedElement']();if(_0x54fe54['isBlockImage'](_0xaa4e40))continue;_0x1f19e2['discardSuggestion'](_0x8830c0),_0x4081dc=!0x0;}}if('insertion'==_0x278b31&&'imageCaption'==_0x3fa4d0&&!_0x125082['newRange']){const _0x3b16d0=_0x1f19e2['getSuggestion'](_0x3248e0);_0x3b16d0['next']&&_0x3b16d0['next']['isInContent']&&(_0x1f19e2['discardSuggestion'](_0x3b16d0['next']),_0x4081dc=!0x0);}}}return _0x4081dc;}),this['_registerLegacyDescription'](_0x472cb6);}['_registerLegacyDescription'](_0x52f8eb){const _0xbd73c2=this['editor'],_0x221425=_0xbd73c2['locale'];_0xbd73c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ed61c=>{if('formatBlock'!=_0x3ed61c['type']&&'formatInline'!=_0x3ed61c['type'])return;const {data:_0x5aee55}=_0x3ed61c;if(!_0x5aee55||'imageStyle'!=_0x5aee55['commandName'])return;const _0x3fd4bb=_0x5aee55['commandParams'][0x0]['value'];return _0x3b9c76('side'===_0x3fd4bb?o(_0x221425,'FORMAT_SIDE_IMAGE'):_0x52f8eb[_0x3fd4bb]||_0x3fd4bb);function _0x3b9c76(_0x19bbaf){return{'type':'format','content':o(_0x221425,'*Format:*\x20%0',_0x19bbaf)};}});}}class ut extends _0xa4b53f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5be19a){super(_0x5be19a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4ce58d=this['editor'],_0x4c7c5c=_0x4ce58d['commands']['get']('importWord'),_0x2587e5=_0x4ce58d['commands']['get']('trackChanges');_0x4c7c5c&&(_0x4c7c5c['on']('execute',(_0x9a53a9,[,_0x3b118c])=>{this['_trackChangesValueDuringImport']=_0x2587e5['value'],_0x3b118c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4c7c5c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4c7c5c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2587e5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4ce58d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x14f891,_0x1d7d54){const {suggestions:_0xca37da}=_0x1d7d54,_0x41ad9f=this['editor']['commands']['get']('trackChanges'),_0x314597=_0x41ad9f['value'];this['_trackChangesValueDuringImport']!==_0x314597&&(_0x41ad9f['execute'](),this['_trackChangesExecuted']=!0x0),_0xca37da&&_0xca37da['forEach'](({id:_0x3e7cdf,type:_0x3d460e,author:_0x26bc59,created_at:_0x4f8d48})=>{const _0x309c5d={'id':_0x3e7cdf,'type':_0x3d460e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x26bc59,'createdAt':_0x4f8d48?new Date(_0x4f8d48):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x309c5d);});}}class ft extends _0xa4b53f{['afterInit'](){const _0x241663=this['editor'],_0xa9919d=_0x241663['plugins']['get']('TrackChangesEditing');if(_0x241663['plugins']['has']('IndentEditing')&&(_0xa9919d['enableCommand']('indent'),_0xa9919d['enableCommand']('outdent')),_0x241663['plugins']['has']('IndentBlock')){for(const _0x35a5f9 of['indentBlock','outdentBlock'])_0xa9919d['enableDefaultAttributesIntegration'](_0x35a5f9);}const _0x94c6bb=_0x241663['locale'];_0xa9919d['registerBlockAttribute']('blockIndent'),_0xa9919d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x94c6bb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9abc85=this['editor'],_0x4cdaef=_0x9abc85['locale'],_0x466032=_0x9abc85['plugins']['get']('TrackChangesEditing');_0x466032['descriptionFactory']['registerDescriptionCallback'](_0x20039d=>{if('formatBlock'!=_0x20039d['type'])return;const {data:_0x474e92}=_0x20039d;if(!_0x474e92)return;if('indentBlock'!=_0x474e92['commandName']&&'outdentBlock'!=_0x474e92['commandName'])return;const _0x31934d=_0x20039d['getItems']()[0x0],_0xbb2301=_0x466032['descriptionFactory']['getItemLabel'](_0x31934d);return'indentBlock'==_0x474e92['commandName']?{'type':'format','content':o(_0x4cdaef,'*Indent:*\x20%0',_0xbb2301)}:'outdentBlock'==_0x474e92['commandName']?{'type':'format','content':o(_0x4cdaef,'*Outdent:*\x20%0',_0xbb2301)}:void 0x0;});}}class ht extends _0xa4b53f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0xa4b53f{['afterInit'](){const _0x4ae21a=this['editor'];if(!_0x4ae21a['plugins']['has']('LinkEditing'))return;const _0x16514a=_0x4ae21a['plugins']['get']('TrackChangesEditing'),_0x33baa5=_0x4ae21a['commands']['get']('link');_0x16514a['enableDefaultAttributesIntegration']('link'),_0x16514a['enableDefaultAttributesIntegration']('unlink'),_0x16514a['registerInlineAttribute']('linkHref');for(const _0xcc385a of _0x33baa5['manualDecorators'])_0x16514a['registerInlineAttribute'](_0xcc385a['id']),_0x16514a['descriptionFactory']['registerAttributeLabel'](_0xcc385a['id'],'link\x20('+_0xcc385a['label']['toLowerCase']()+')');_0x16514a['descriptionFactory']['registerDescriptionCallback'](_0x52d337=>{if('attribute'!=_0x52d337['type'])return;const {data:_0x5e61fe}=_0x52d337;if(!_0x5e61fe||'linkHref'!=_0x5e61fe['key'])return;const _0x115935=_0x5e61fe['newValue'],_0x3d09b3=_0x4ae21a['locale'];return{'type':'format','content':null==_0x115935?o(_0x3d09b3,'*Remove\x20link*'):o(_0x3d09b3,'*Set\x20link:*\x20%0','\x22'+_0x115935+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4829f0=this['editor'],_0x1e57ed=_0x4829f0['locale'];_0x4829f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe2ed31=>{if('formatInline'!=_0xe2ed31['type'])return;const {data:_0x70f096}=_0xe2ed31;if(_0x70f096){if('link'==_0x70f096['commandName']){const _0xeaab32=_0x70f096['commandParams'][0x0];return{'type':'format','content':o(_0x1e57ed,'*Set\x20link:*\x20%0','\x22'+_0xeaab32+'\x22')};}return'unlink'==_0x70f096['commandName']?{'type':'format','content':o(_0x1e57ed,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0xa4b53f{['afterInit'](){const _0x481b52=this['editor'],_0x145324=_0x481b52['locale'];if(!_0x481b52['plugins']['has']('LegacyListEditing'))return;const _0x36f11e=_0x481b52['plugins']['get']('TrackChangesEditing'),_0x5d626f=_0x481b52['plugins']['has']('LegacyTodoListEditing');function _0x121c67(_0x390f21){return()=>{const _0xb15c3b=_0x481b52['model']['document']['selection'],_0x2fc83c=_0x481b52['commands']['get'](_0x390f21);if(_0x2fc83c['value'])return void _0x481b52['execute']('paragraph',{});const _0x550b3d=_0x390f21['slice'](0x0,-0x4),_0x43f8c4=function(_0x57fcd2,_0x15dc30,_0x26da32){let _0x581a69=Array['from'](_0x57fcd2)['filter'](_0x289887=>function(_0x20122e,_0x1912e4){return _0x1912e4['checkChild'](_0x20122e['parent'],'listItem')&&!_0x1912e4['isObject'](_0x20122e);}(_0x289887,_0x26da32));_0x581a69=_0x581a69['filter'](_0x3d4101=>!_0x3d4101['is']('element','listItem')||_0x3d4101['getAttribute']('listType')!=_0x15dc30);const _0x39def6=new Set();for(const _0x1abbfa of _0x581a69)_0x1abbfa['is']('element','listItem')?_0x39def6['add'](Le(_0x1abbfa)):_0x39def6['add'](_0x1abbfa);return Array['from'](_0x39def6);}(_0xb15c3b['getSelectedBlocks'](),_0x550b3d,_0x481b52['model']['schema']);_0x481b52['model']['change'](()=>{for(const _0x255787 of _0x43f8c4)_0x36f11e['markBlockFormat'](_0x255787,{'commandName':_0x390f21,'commandParams':[{'forceValue':!_0x2fc83c['value']}],'formatGroupId':'blockName'},Ee(_0x255787));});};}function _0x546dd8(_0x1120ff){return()=>{const _0x1c66bc=function(_0xe13fc9){let _0x2218ec=Array['from'](_0xe13fc9);const _0xf4ade7=_0x2218ec['findIndex'](_0x9c224d=>'listItem'!=_0x9c224d['name']);return _0xf4ade7>-0x1&&(_0x2218ec=_0x2218ec['slice'](0x0,_0xf4ade7)),_0x2218ec;}(_0x481b52['model']['document']['selection']['getSelectedBlocks']()),_0x2c8388=_0x481b52['model']['createRange'](_0x481b52['model']['createPositionAt'](_0x1c66bc[0x0],'before'),_0x481b52['model']['createPositionAt'](_0x1c66bc[_0x1c66bc['length']-0x1],'end'));_0x481b52['model']['change'](()=>{_0x36f11e['markBlockFormat'](_0x2c8388,{'commandName':_0x1120ff,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4895d8){const _0x240d2e=new Set();for(const _0x152252 of _0x4895d8){let _0x48760d=_0x152252['nextSibling'];for(;_0x48760d&&_0x48760d['getAttribute']('listIndent')>_0x152252['getAttribute']('listIndent');)_0x240d2e['add'](_0x48760d),_0x48760d=_0x48760d['nextSibling'];}return Array['from'](_0x240d2e);}(_0x1c66bc));});};}_0x36f11e['enableCommand']('numberedList',_0x121c67('numberedList')),_0x36f11e['enableCommand']('bulletedList',_0x121c67('bulletedList')),_0x5d626f&&_0x36f11e['enableCommand']('todoList',_0x121c67('todoList')),_0x36f11e['enableCommand']('indentList',_0x546dd8('indentList')),_0x36f11e['enableCommand']('outdentList',_0x546dd8('outdentList')),_0x5d626f&&_0x36f11e['enableCommand']('checkTodoList',()=>{const _0x2f96eb=_0x481b52['commands']['get']('checkTodoList'),_0x10c0ee=Array['from'](_0x2f96eb['_selectedElements']);_0x10c0ee['filter'](_0x5442c7=>_0x5442c7['getAttribute']('todoListChecked')!=_0x2f96eb['value']),_0x481b52['model']['change'](()=>{for(const _0x1fe943 of _0x10c0ee)_0x36f11e['markBlockFormat'](_0x1fe943,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2f96eb['value']}]});});}),_0x36f11e['descriptionFactory']['registerElementLabel']('listItem',_0x21543e=>o(_0x145324,'ELEMENT_LIST_ITEM',_0x21543e)),_0x36f11e['descriptionFactory']['registerDescriptionCallback'](_0x3dfa6e=>{if('formatBlock'!=_0x3dfa6e['type']&&'formatInline'!=_0x3dfa6e['type'])return;const {data:_0x1cc9c8}=_0x3dfa6e;if(_0x1cc9c8){if('numberedList'==_0x1cc9c8['commandName']||'bulletedList'==_0x1cc9c8['commandName']||'todoList'==_0x1cc9c8['commandName'])switch(_0x1cc9c8['commandName']['replace']('List','')){case'bulleted':return _0x1efdb5(o(_0x145324,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1efdb5(o(_0x145324,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1efdb5(o(_0x145324,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1cc9c8['commandName'])return{'type':'format','content':o(_0x145324,'*Indent:*\x20%0',o(_0x145324,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1cc9c8['commandName'])return{'type':'format','content':o(_0x145324,'*Outdent:*\x20%0',o(_0x145324,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1cc9c8['commandName'])return _0x1cc9c8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x145324,'*Check\x20item*')}:{'type':'format','content':o(_0x145324,'*Uncheck\x20item*')};}function _0x1efdb5(_0x3a2bc7){return{'type':'format','content':o(_0x145324,'*Change\x20to:*\x20%0',_0x3a2bc7)};}});}}function Le(_0x3340a){const _0x43101f=_0x3340a['getAttribute']('listIndent');if(0x0==_0x43101f)return _0x3340a;let _0x2cc4c4=_0x3340a;for(;_0x3340a['previousSibling']&&_0x3340a['previousSibling']['is']('element','listItem');){const _0x138522=_0x3340a['previousSibling']['getAttribute']('listIndent');if(_0x138522==_0x43101f)_0x2cc4c4=_0x3340a['previousSibling'];else{if(_0x138522<_0x43101f)break;}_0x3340a=_0x3340a['previousSibling'];}return _0x2cc4c4;}function Ee(_0x2d7963){const _0x480c8a=[];if(_0x2d7963['is']('element','listItem')&&_0x2d7963['getAttribute']('listIndent')>0x0){let _0x547adf=_0x2d7963['nextSibling'];for(;_0x547adf&&'listItem'==_0x547adf['name']&&_0x547adf['getAttribute']('listIndent')==_0x2d7963['getAttribute']('listIndent');)_0x480c8a['push'](_0x547adf),_0x547adf=_0x547adf['nextSibling'];}return _0x480c8a;}class Q extends _0xa4b53f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1bdc2f=this['editor']['config']['get']('list.properties'),_0x1dc768=this['editor']['plugins']['get']('TrackChangesEditing');_0x1bdc2f['styles']&&_0x1dc768['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1bdc2f['reversed']&&_0x1dc768['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1bdc2f['startIndex']&&_0x1dc768['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1dc768['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x199be2,_0x29c814={}){const _0x1aca22=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53e587=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1aca22['markMultiRangeBlockFormat'](_0x53e587,{'commandName':'listStyle','commandParams':[{'type':_0x29c814['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x939c3f,_0x216d21={}){const _0x413fc3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ccfb0=this['_getSuggestionBlocks'](_0x5b098b=>_0x5b098b['is']('element','listItem')&&'numbered'===_0x5b098b['getAttribute']('listType'));if(_0x3ccfb0['length']<0x1)return;const _0x38090b=_0x3ccfb0['map'](_0x565d03=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x565d03,'before'),this['editor']['model']['createPositionAt'](_0x565d03,0x0)));this['editor']['model']['change'](()=>{_0x413fc3['markMultiRangeBlockFormat'](_0x38090b,{'commandName':'listReversed','commandParams':[{'reversed':_0x216d21['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x227b8d,_0x16fe68={}){const _0x4403aa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d597b=this['_getSuggestionBlocks'](_0x1ee903=>_0x1ee903['is']('element','listItem')&&'numbered'===_0x1ee903['getAttribute']('listType'));if(_0x3d597b['length']<0x1)return;const _0x864a17=_0x3d597b['map'](_0x358bf9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x358bf9,'before'),this['editor']['model']['createPositionAt'](_0x358bf9,0x0)));this['editor']['model']['change'](()=>{_0x4403aa['markMultiRangeBlockFormat'](_0x864a17,{'commandName':'listStart','commandParams':[{'startIndex':_0x16fe68['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5e4608){if('formatBlock'!=_0x5e4608['type']&&'formatInline'!=_0x5e4608['type'])return;const _0x1cf28c=this['editor']['locale'],{data:_0x8f4501}=_0x5e4608;if(!_0x8f4501)return;let _0x2ff0b2,_0xf5b690;switch(_0x8f4501['commandName']){case'listStyle':_0x2ff0b2='*Change\x20to:*\x20%0',_0xf5b690={'type':'format','content':o(_0x1cf28c,_0x2ff0b2,o(_0x1cf28c,this['_getTranslationKeyForListStyle'](_0x8f4501['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2ff0b2=_0x8f4501['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xf5b690={'type':'format','content':o(_0x1cf28c,_0x2ff0b2)};break;case'listStart':_0x2ff0b2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xf5b690={'type':'format','content':o(_0x1cf28c,_0x2ff0b2,_0x8f4501['commandParams'][0x0]['startIndex'])};}return _0xf5b690;}['_getSuggestionBlocksForListStyle'](){const _0x1e3fac=this['editor']['plugins']['get']('LegacyListUtils');let _0x3a6dd0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3a6dd0[0x0]?.['is']('element','listItem')&&_0x3a6dd0['unshift'](..._0x1e3fac['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3a6dd0[_0x3a6dd0['length']-0x1]?.['is']('element','listItem')&&_0x3a6dd0['push'](..._0x1e3fac['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3a6dd0=[...new Set(_0x3a6dd0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3a6dd0=_0x3a6dd0['filter'](_0x5e3718=>_0x5e3718['is']('element','listItem'))),_0x3a6dd0;}['_getSuggestionBlocks'](_0xb888e2){const _0x1d24b5=this['editor']['plugins']['get']('LegacyListUtils');let _0x2ba166=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xb888e2)['map'](_0x19674a=>{const _0x19d05c=this['editor']['model']['createPositionAt'](_0x19674a,0x0);return[..._0x1d24b5['getSiblingNodes'](_0x19d05c,'backward'),..._0x1d24b5['getSiblingNodes'](_0x19d05c,'forward')];})['flat']();return _0x2ba166=[...new Set(_0x2ba166)],_0x2ba166;}['_getTranslationKeyForListStyle'](_0x37b175){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x37b175)||'default')['toUpperCase']()+'_LIST_'+_0x37b175['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0xa4b53f{['afterInit'](){const _0x32bb11=this['editor'];if(!_0x32bb11['plugins']['has']('MediaEmbedEditing'))return;const _0x34edfa=_0x32bb11['plugins']['get']('TrackChangesEditing'),_0x1636a1=_0x32bb11['locale'];_0x34edfa['enableCommand']('mediaEmbed'),_0x34edfa['descriptionFactory']['registerElementLabel']('media',_0xf4091f=>o(_0x1636a1,'ELEMENT_MEDIA',_0xf4091f)),_0x32bb11['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4f6645,{writer:_0x45f28a,options:_0x389c4a})=>{if(_0x389c4a['showSuggestionHighlights'])return _0x45f28a['createEmptyElement']('div');},'converterPriority':'high'}),_0x32bb11['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3ab7c6,_0x514b06,_0x5a45bc)=>{_0x5a45bc['options']['showSuggestionHighlights']&&_0x3ab7c6['stop']();},{'priority':'high'});}}class pt extends _0xa4b53f{['afterInit'](){const _0x86f331=this['editor'];_0x86f331['plugins']['has']('MentionEditing')&&_0x86f331['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0xa4b53f{['afterInit'](){const _0xca87f9=this['editor'];if(!_0xca87f9['plugins']['has']('MergeFieldsEditing'))return;const _0x24ec8b=_0xca87f9['plugins']['get']('TrackChangesEditing'),_0x2c24eb=_0xca87f9['locale'];_0x24ec8b['enableCommand']('insertMergeField'),_0x24ec8b['enableCommand']('insertMergeFieldBlock'),_0x24ec8b['enableCommand']('insertMergeFieldImage'),_0x24ec8b['descriptionFactory']['registerElementLabel']('mergeField',_0x16e2a6=>o(_0x2c24eb,'ELEMENT_MERGE_FIELD',_0x16e2a6)),_0x24ec8b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4509d8=>o(_0x2c24eb,'ELEMENT_MERGE_FIELD',_0x4509d8)),_0x24ec8b['descriptionFactory']['registerDescriptionCallback'](_0x1b85c7=>{if('insertion'!=_0x1b85c7['type']&&'deletion'!=_0x1b85c7['type'])return;const _0x3b6adb=_0x1b85c7['getContainedElement']();if(null==_0x3b6adb)return;const _0x52e5ea=_0xca87f9['plugins']['get']('MergeFieldsEditing');let _0x50ba91;switch(_0x52e5ea['getMergeFieldType'](_0x3b6adb)){case null:return;case'image':{const _0x4777f2=_0x52e5ea['unwrapAffixes'](_0x3b6adb['getAttribute']('src'));_0x50ba91=_0x52e5ea['getLabel'](_0x4777f2)||_0x4777f2;break;}default:{const _0x390911=_0x3b6adb['getAttribute']('id');_0x50ba91=_0x52e5ea['getLabel'](_0x390911)||_0x390911;break;}}return'insertion'==_0x1b85c7['type']?{'type':'insertion','content':o(_0x2c24eb,'*Insert:*\x20%0','\x22'+_0x50ba91+'\x22\x20'+o(_0x2c24eb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2c24eb,'*Remove:*\x20%0','\x22'+_0x50ba91+'\x22\x20'+o(_0x2c24eb,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0xa4b53f{['afterInit'](){const _0x272436=this['editor'],_0xb1a142=_0x272436['plugins']['get']('TrackChangesEditing');_0x272436['plugins']['has']('MultiLevelList')&&(_0xb1a142['enableDefaultAttributesIntegration']('multiLevelList'),_0xb1a142['registerBlockAttribute']('listMarkerStyle'),_0xb1a142['descriptionFactory']['registerDescriptionCallback'](_0x416546=>this['handleDescriptions'](_0x416546)));}['handleDescriptions'](_0x3a5bdf){const _0x2e5426=this['editor']['locale'],{data:_0x2e1914}=_0x3a5bdf,_0x2a37dd={'type':'format','content':''};if(_0x2e1914&&'listMarkerStyle'==_0x2e1914['key']){if(!_0x2e1914['oldValue'])return{'type':'format','content':o(_0x2e5426,'*Set\x20format:*\x20%0',o(_0x2e5426,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e1914['newValue']+')'};if(!_0x2e1914['newValue']){let _0x3d0c9c=_0x3a5bdf['head'];for(;_0x3d0c9c;){if(_0x3d0c9c['data']&&'listType'==_0x3d0c9c['data']['key']&&_0x3d0c9c['data']['newValue'])return _0x2a37dd;_0x3d0c9c=_0x3d0c9c['next'];}return{'type':'format','content':o(_0x2e5426,'*Remove\x20format:*\x20%0',o(_0x2e5426,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e1914['oldValue']+')'};}}}}class bt extends _0xa4b53f{['afterInit'](){const _0x18969d=this['editor'];if(!_0x18969d['plugins']['has']('PageBreakEditing'))return;_0x18969d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4ae5cb=_0x18969d['plugins']['get']('TrackChangesEditing'),_0x71aa73=_0x18969d['locale'];_0x4ae5cb['descriptionFactory']['registerElementLabel']('pageBreak',_0x5dd5cc=>o(_0x71aa73,'ELEMENT_PAGE_BREAK',_0x5dd5cc));}}class yt extends _0xa4b53f{['afterInit'](){const _0x5a0529=this['editor'];if(!_0x5a0529['plugins']['has']('Paragraph'))return;const _0xc787c7=_0x5a0529['locale'],_0x52017b=_0x5a0529['plugins']['get']('TrackChangesEditing');_0x52017b['descriptionFactory']['registerElementLabel']('paragraph',_0x570209=>o(_0xc787c7,'ELEMENT_PARAGRAPH',_0x570209)),_0x52017b['enableDefaultAttributesIntegration']('paragraph'),_0x52017b['enableCommand']('insertParagraph'),_0x5a0529['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5a0529),{'priority':'highest'}),_0x5a0529['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x28dfeb,_0x9473ab,_0x2f97bc)=>{_0x2f97bc['options']['showSuggestionHighlights']&&nr(_0x5a0529,{'showActiveMarker':!0x1})(_0x28dfeb,_0x9473ab,_0x2f97bc);},{'priority':'highest'});const _0x14541d=_0x52017b['descriptionFactory'];_0x14541d['registerDescriptionCallback'](_0x4f4463=>{if('insertion'!==_0x4f4463['type'])return;const {start:_0x448aaf,end:_0x2fe50a}=_0x4f4463['getFirstRange']();if(!_0x448aaf['isTouching'](_0x2fe50a)||!_0x448aaf['nodeAfter'])return;const _0x1d8a48=_0x5a0529['model']['schema'],_0x3b79f7=_0x448aaf['nodeAfter'];return _0x1d8a48['isBlock'](_0x3b79f7)&&!_0x1d8a48['isLimit'](_0x3b79f7)&&_0x1d8a48['checkChild'](_0x3b79f7,'$text')?{'type':'insertion','content':o(_0xc787c7,'*Insert:*\x20%0',_0x14541d['getItemLabel'](_0x3b79f7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f59c7=this['editor'],_0x2c610f=_0x5f59c7['locale'];_0x5f59c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ff505=>{if('formatBlock'!=_0x1ff505['type'])return;const {data:_0x3776fb}=_0x1ff505;return _0x3776fb&&'paragraph'==_0x3776fb['commandName']?{'type':'format','content':o(_0x2c610f,'*Change\x20to:*\x20%0',o(_0x2c610f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x137314,{showActiveMarker:_0x5f2993=!0x0}={}){return(_0x4576d9,_0x35d608,_0x338a98)=>{const _0x135e10=_0x137314['plugins']['get']('TrackChangesEditing'),_0x54cca0=_0x35d608['markerRange']['start'],_0x431c9c=_0x35d608['markerRange']['end'],_0x1d2c2a=_0x137314['model']['schema'];if(!_0x54cca0['isTouching'](_0x431c9c)||!_0x54cca0['nodeAfter'])return;const _0x509187=_0x54cca0['nodeAfter'];if(_0x1d2c2a['isBlock'](_0x509187)&&!_0x1d2c2a['isLimit'](_0x509187)&&_0x1d2c2a['checkChild'](_0x509187,'$text')){if(!_0x338a98['consumable']['consume'](_0x35d608['markerRange'],_0x4576d9['name']))return;const {authorId:_0x4ac227}=_0x135e10['_splitMarkerName'](_0x35d608['markerName']),_0x3c4774=_0x338a98['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4ac227}),_0x46b891=_0x338a98['mapper']['toViewPosition'](_0x431c9c);_0x5f2993&&_0x135e10['activeMarkers']['includes'](_0x35d608['markerName'])&&_0x338a98['writer']['addClass']('ck-suggestion-marker--active',_0x3c4774),_0x338a98['writer']['insert'](_0x46b891,_0x3c4774),_0x338a98['mapper']['bindElementToMarker'](_0x3c4774,_0x35d608['markerName']);}};}class jt extends _0xa4b53f{['afterInit'](){const _0x2673d4=this['editor'];_0x2673d4['commands']['get']('replaceSource')&&_0x2673d4['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0xa4b53f{['afterInit'](){const _0x3dcbff=this['editor'];if(!_0x3dcbff['plugins']['has']('RemoveFormatEditing'))return;_0x3dcbff['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe9506d=this['editor'];_0xe9506d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x392a9d=>{if('formatBlock'!=_0x392a9d['type']&&'formatInline'!=_0x392a9d['type'])return;const {data:_0x34a892}=_0x392a9d;return _0x34a892&&'removeFormat'==_0x34a892['commandName']?{'type':'format','content':o(_0xe9506d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0xa4b53f{['afterInit'](){const _0x49173c=this['editor'];if(!_0x49173c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x421716=_0x49173c['plugins']['get']('TrackChangesEditing');_0x421716['enableCommand']('goToPreviousRestrictedEditingException'),_0x421716['enableCommand']('goToNextRestrictedEditingException');const _0x650577=_0x49173c['plugins']['get']('RestrictedEditingModeEditing');_0x650577['enableCommand']('trackChanges'),_0x650577['enableCommand']('acceptSuggestion'),_0x650577['enableCommand']('discardSuggestion'),_0x650577['enableCommand']('acceptAllSuggestions'),_0x650577['enableCommand']('discardAllSuggestions'),_0x650577['enableCommand']('acceptSelectedSuggestions'),_0x650577['enableCommand']('discardSelectedSuggestions');}}class It extends _0xa4b53f{static get['requires'](){return[_0x9d657b];}['init'](){const _0x43fc=this['editor'],_0x106597=_0x43fc['plugins']['get']('TrackChangesEditing');_0x106597['enableCommand']('shiftEnter'),_0x43fc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x43fc),{'priority':'high'}),_0x43fc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x43fc),{'priority':'high'}),_0x43fc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50ae5a,_0xb59b49,_0x55546e)=>{_0x55546e['options']['showSuggestionHighlights']&&je(_0x43fc,{'showActiveMarker':!0x1})(_0x50ae5a,_0xb59b49,_0x55546e);}),_0x106597['descriptionFactory']['registerElementLabel']('softBreak',_0x45a14a=>o(_0x43fc['locale'],'ELEMENT_LINE_BREAK',_0x45a14a));}}function je(_0xd0b2e5,{showActiveMarker:_0x3debf6=!0x0}={}){return(_0x55128c,_0x309c1f,_0x5e645c)=>{const _0x1937bf=_0xd0b2e5['plugins']['get']('TrackChangesEditing');if(!_0x5e645c['consumable']['test'](_0x309c1f['markerRange'],_0x55128c['name']))return;const _0x50c844=_0xd0b2e5['model'];for(const _0x2fc62a of _0x309c1f['markerRange']['getItems']()){if(!_0x2fc62a['is']('element','softBreak'))continue;const _0x1a29ba='deletion'==_0x309c1f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x51d1cf}=_0x1937bf['_splitMarkerName'](_0x309c1f['markerName']),_0x3af6b7=_0x5e645c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1a29ba,'data-author-id':_0x51d1cf}),_0x49ca95=_0x5e645c['mapper']['toViewPosition'](_0x50c844['createPositionBefore'](_0x2fc62a));_0x3debf6&&_0x1937bf['activeMarkers']['includes'](_0x309c1f['markerName'])&&_0x5e645c['writer']['addClass']('ck-suggestion-marker--active',_0x3af6b7),_0x5e645c['writer']['insert'](_0x49ca95,_0x3af6b7),_0x5e645c['mapper']['bindElementToMarker'](_0x3af6b7,_0x309c1f['markerName']);}};}class vt extends _0xa4b53f{['afterInit'](){const _0x27fa8d=this['editor'],_0x510fef=_0x27fa8d['model'],_0x5e34f5=_0x27fa8d['locale'];if(!_0x27fa8d['plugins']['has']('StandardEditingModeEditing'))return;const _0x4673bc=_0x27fa8d['plugins']['get']('TrackChangesEditing'),_0x253ec9='restrictedEditingException',_0x239947=_0x27fa8d['commands']['get'](_0x253ec9);_0x4673bc['enableCommand'](_0x253ec9,(_0x565c68,_0x285d8c={})=>{const _0x38d200=_0x510fef['document']['selection'];if(_0x38d200['isCollapsed'])return void _0x565c68(_0x285d8c);const _0x135769=void 0x0!==_0x285d8c['forceValue']?_0x285d8c['forceValue']:!_0x239947['value'];_0x510fef['change'](()=>{const _0x2015cc=Array['from'](_0x38d200['getRanges']());for(const _0x3c61fb of _0x2015cc){const _0x5c3548=_0x135769?[_0x3c61fb]:io(_0x253ec9,_0x3c61fb,_0x510fef);for(const _0x1a2f72 of _0x5c3548)_0x4673bc['markInlineFormat'](_0x1a2f72,{'commandName':_0x253ec9,'commandParams':[{'forceValue':_0x135769}]});}});}),_0x4673bc['descriptionFactory']['registerDescriptionCallback'](_0x3dc14c=>{if('formatBlock'!=_0x3dc14c['type']&&'formatInline'!=_0x3dc14c['type'])return;const {data:_0x465fb1}=_0x3dc14c;return _0x465fb1&&_0x465fb1['commandName']==_0x253ec9?_0x465fb1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e34f5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5e34f5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0xa4b53f{['afterInit'](){const _0x271b53=this['editor'];if(!_0x271b53['plugins']['has']('Style')||!_0x271b53['plugins']['has']('DataSchema'))return;const _0x4dc101=_0x271b53['plugins']['get']('TrackChangesEditing'),_0x151cf7=_0x271b53['locale'],_0x501561=_0x271b53['config']['get']('style')||{},_0x5ceb80=_0x271b53['plugins']['get']('GeneralHtmlSupport'),_0x4f9607=_0x271b53['plugins']['get']('StyleUtils')['normalizeConfig'](_0x271b53['plugins']['get']('DataSchema'),_0x501561['definitions']);_0x4dc101['enableDefaultAttributesIntegration']('style');const _0x271240=new Set();for(const _0xafd7fa of _0x4f9607['block']){const _0x50269a=_0x5ceb80['getGhsAttributeNameForElement'](_0xafd7fa['element']);_0x271240['add'](_0x50269a);}const _0x1f9298=new Set();for(const _0x2c8263 of _0x4f9607['inline']){const _0x2e2d66=_0x5ceb80['getGhsAttributeNameForElement'](_0x2c8263['element']);_0x1f9298['add'](_0x2e2d66);for(const _0x5f0a88 of _0x2c8263['ghsAttributes'])_0x1f9298['add'](_0x5f0a88);}for(const _0x35a6df of _0x271240)_0x4dc101['registerBlockAttribute'](_0x35a6df),_0x4dc101['descriptionFactory']['registerAttributeLabel'](_0x35a6df,o(_0x151cf7,'FORMAT_STYLE'));for(const _0x249815 of _0x1f9298)_0x4dc101['registerInlineAttribute'](_0x249815),_0x4dc101['descriptionFactory']['registerAttributeLabel'](_0x249815,o(_0x151cf7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x196be6=this['editor'],_0x446f96=_0x196be6['locale'];_0x196be6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x487dd1=>{if('formatBlock'!=_0x487dd1['type']&&'formatInline'!=_0x487dd1['type'])return;const {data:_0x414b37}=_0x487dd1;return _0x414b37&&'style'===_0x414b37['commandName']?_0x414b37['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x446f96,'*Set\x20format:*\x20%0',_0x414b37['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x446f96,'*Remove\x20format:*\x20%0',_0x414b37['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0xa4b53f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2639dc){super(_0x2639dc),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5e2bd5=this['editor'],_0x2507e4=_0x5e2bd5['model']['document']['selection'];if(!_0x5e2bd5['plugins']['has']('TableEditing'))return;const _0x469947=_0x5e2bd5['locale'],_0x31ebcc=_0x5e2bd5['plugins']['get']('TrackChangesEditing'),_0x41c1fb=_0x5e2bd5['plugins']['get']('TableUtils');_0x31ebcc['descriptionFactory']['registerElementLabel']('table',_0x4dc3d5=>o(_0x469947,'ELEMENT_TABLE',_0x4dc3d5)),this['_setupColumnsRowsFixing'](),_0x31ebcc['enableCommand']('insertTable'),_0x31ebcc['enableCommand']('selectTableRow'),_0x31ebcc['enableCommand']('selectTableColumn');for(const _0x5b2449 of['insertTableRowAbove','insertTableRowBelow']){const _0x2f0dc1=_0x5e2bd5['commands']['get'](_0x5b2449);_0x31ebcc['enableCommand'](_0x5b2449,_0x5941df=>{_0x5e2bd5['model']['change'](_0x563281=>{_0x5941df();const _0x568b2d='above'===_0x2f0dc1['order'],_0xd7d920=_0x41c1fb['getSelectionAffectedTableCells'](_0x2507e4),_0x8cf2c0=_0x41c1fb['getRowIndexes'](_0xd7d920),_0x46174a=_0x568b2d?_0x8cf2c0['first']-0x1:_0x8cf2c0['last']+0x1,_0x3a6251=_0xd7d920[0x0]['findAncestor']('table'),_0x1aa4bf=_0x41c1fb['createTableWalker'](_0x3a6251,{'startRow':_0x46174a,'endRow':_0x46174a}),_0x51c38a=Array['from'](_0x1aa4bf)['map'](_0x489fb9=>_0x563281['createRangeOn'](_0x489fb9['cell']));_0x31ebcc['markMultiRangeInsertion'](_0x51c38a,'tableRow');});});}for(const _0x1448a7 of['insertTableColumnLeft','insertTableColumnRight']){const _0x34252a=_0x5e2bd5['commands']['get'](_0x1448a7);_0x31ebcc['enableCommand'](_0x1448a7,_0x52511c=>{_0x5e2bd5['model']['change'](_0x54bb0e=>{_0x52511c();const _0x47779b='left'===_0x34252a['order'],_0x2a68e1=_0x41c1fb['getSelectionAffectedTableCells'](_0x2507e4),_0x75f631=_0x41c1fb['getColumnIndexes'](_0x2a68e1),_0x5a4bcb=_0x47779b?_0x75f631['first']-0x1:_0x75f631['last']+0x1,_0x4d6678=_0x2a68e1[0x0]['findAncestor']('table'),_0x50f5ad=_0x41c1fb['createTableWalker'](_0x4d6678,{'startRow':0x0,'column':_0x5a4bcb,'includeAllSlots':!0x1}),_0x4606ca=Array['from'](_0x50f5ad)['map'](_0x2bc132=>_0x54bb0e['createRangeOn'](_0x2bc132['cell']));_0x31ebcc['markMultiRangeInsertion'](_0x4606ca,'tableColumn');});});}for(const _0x588711 of['removeTableRow','removeTableColumn']){const _0x90bbb7=_0x588711['substr'](0xb),_0x52c22d=_0x90bbb7['toLowerCase'](),_0x498eff=_0x52c22d['substr'](0x0,0x3)+'span',_0x272789='table'+_0x90bbb7,_0x58aed8='min'+_0x90bbb7,_0x184a6c='max'+_0x90bbb7;_0x31ebcc['enableCommand'](_0x588711,()=>{_0x5e2bd5['model']['change'](_0x5c5ffc=>{const _0x53a7c3=_0x41c1fb['getSelectionAffectedTableCells'](_0x2507e4),_0x4d8b49=_0x53a7c3[0x0]['findAncestor']('table');let _0x592097;if('removeTableRow'==_0x588711){const _0x3a1850=_0x41c1fb['getRowIndexes'](_0x53a7c3);_0x592097={'startRow':_0x3a1850['first'],'endRow':_0x3a1850['last'],'includeAllSlots':!0x0};}else{const _0x1678d9=_0x41c1fb['getColumnIndexes'](_0x53a7c3);_0x592097={'startColumn':_0x1678d9['first'],'endColumn':_0x1678d9['last'],'includeAllSlots':!0x0};}const _0xdb4ec=_0x41c1fb['createTableWalker'](_0x4d8b49,_0x592097),_0x5615dd=Array['from'](_0xdb4ec)['map'](({cell:_0x383c7d})=>_0x383c7d),_0x22efc8=Ne(_0x5615dd['filter'](_0x3b1242=>_0x3b1242['hasAttribute'](_0x498eff))),_0x5e20c1=Ne(_0x5615dd['filter'](_0x593a78=>!_0x593a78['hasAttribute'](_0x498eff)))['map'](_0x3247d3=>_0x5c5ffc['createRangeOn'](_0x3247d3)),_0x3b7b61=_0x31ebcc['markMultiRangeDeletion'](_0x5e20c1,_0x272789);if(_0x3b7b61&&('tableRow'==_0x3b7b61['subType']||'tableColumn'==_0x3b7b61['subType'])){const _0x94fe90=this['_getSuggestionCoords'](_0x3b7b61);for(const _0x25eb3a of _0x22efc8){const _0x16d7dc=_0x5c5ffc['createRangeOn'](_0x25eb3a),_0x5de48a=_0x41c1fb['getCellLocation'](_0x25eb3a),_0x3e1d67=_0x25eb3a['getAttribute'](_0x498eff)-0x1,_0x56489e=_0x94fe90[_0x58aed8],_0x4073d5=_0x94fe90[_0x184a6c];_0x56489e<=_0x5de48a[_0x52c22d]&&_0x5de48a[_0x52c22d]+_0x3e1d67<=_0x4073d5&&_0x3b7b61['addRange'](_0x16d7dc);}}});});}function _0x398180(_0x514bde){const _0x4c8377=Array['from'](_0x2507e4['getRanges']())['map'](_0x8764ca=>_0x4f46eb['fromRange'](_0x8764ca));_0x5e2bd5['model']['change'](_0x2e87b9=>{const _0x259704=_0x2e87b9['batch'];_0x514bde=_0x514bde['filter'](_0x1a398b=>'$graveyard'!=_0x1a398b['root']['rootName']),_0x2e87b9['setSelection'](_0x514bde),_0x5e2bd5['commands']['get']('removeTableRow')['refresh'](),_0x5e2bd5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5e2bd5['model']['enqueueChange'](()=>{_0x5e2bd5['model']['enqueueChange'](_0x259704,_0x26a0ee=>{const _0x3040e7=_0x4c8377['filter'](_0x3334ec=>'$graveyard'!=_0x3334ec['root']['rootName']);_0x3040e7['length']>0x0&&_0x26a0ee['setSelection'](_0x3040e7);for(const _0x41f612 of _0x4c8377)_0x41f612['detach']();});});});}function _0x46c609(_0x349cc4){_0x5e2bd5['model']['change'](_0x5602b6=>{const _0xce6b85=Array['from'](_0x2507e4['getRanges']())['map'](_0x3a8381=>_0x4f46eb['fromRange'](_0x3a8381)),_0x34949e=[];for(const _0x95d2a9 of _0x349cc4)for(const _0x237cbc of _0x95d2a9['getItems']({'shallow':!0x0}))_0x34949e['push'](_0x237cbc);for(const _0x3a2a30 of _0x34949e)'$graveyard'!=_0x3a2a30['root']['rootName']&&(_0x5602b6['setSelection'](_0x5602b6['createPositionAt'](_0x3a2a30,0x0)),_0x5e2bd5['commands']['get']('removeTableColumn')['refresh'](),_0x5e2bd5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1682de=_0xce6b85['filter'](_0x4a1248=>'$graveyard'!=_0x4a1248['root']['rootName']);_0x1682de['length']>0x0&&_0x5602b6['setSelection'](_0x1682de);for(const _0x44b2a0 of _0xce6b85)_0x44b2a0['detach']();});}function _0x5bcf59(_0x1bde64,_0x332923){return _0x332923['every'](_0x37f491=>_0x1bde64['some'](_0x42229e=>_0x42229e['end']['isEqual'](_0x37f491['start'])||_0x37f491['end']['isEqual'](_0x42229e['start'])));}function _0x45c108(_0x3d7668,_0x291a1d){return!_0x3d7668['some'](_0x511a0a=>_0x291a1d['some'](_0x453653=>_0x511a0a['isIntersecting'](_0x453653)))&&_0x3d7668['some'](_0x3e23b9=>_0x291a1d['some'](_0x330e5c=>_0x3e23b9['end']['isTouching'](_0x330e5c['start'])));}_0x5e2bd5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x569a40,_0x6ce307,_0x27252c)=>{if(!_0x27252c['options']['showSuggestionHighlights'])return;const _0x4342f6=_0x6ce307['item'];if(!_0x4342f6)return;const _0x27785c=_0x27252c['mapper']['toViewElement'](_0x4342f6);function _0x54926a(_0xd1e5ad){return Array['isArray'](_0xd1e5ad)?_0xd1e5ad:[_0xd1e5ad];}_0x27785c&&'tableCell'===_0x4342f6['name']&&_0x5cfe2f(_0x27785c,_0x27252c['writer'],(_0x7695d1,_0xf37c3,_0x5d8d83)=>_0x5d8d83['addClass'](_0x54926a(_0xf37c3['classes']),_0x7695d1),(_0x5767db,_0x4ea00e,_0x23b46c)=>_0x23b46c['removeClass'](_0x54926a(_0x4ea00e['classes']),_0x5767db));},{'priority':'highest'}),_0x31ebcc['descriptionFactory']['registerDescriptionCallback'](_0x172c86=>{if('insertion'!=_0x172c86['type']&&'deletion'!=_0x172c86['type'])return;const _0x2d92b4=_0x172c86['getContainedElement']();if(null!=_0x2d92b4&&_0x2d92b4['is']('element','table')){if('insertion'==_0x172c86['type']){const _0x271c2f=_0x172c86['getItems']()['filter'](_0x70cd20=>_0x70cd20['is']('$textProxy'))['map'](_0x4ba479=>_0x4ba479['data']);if(_0x271c2f['length'])return{'type':'insertion','content':o(_0x469947,'*Insert:*\x20%0',o(_0x469947,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x271c2f['join']('\x20')+'\x22'))};}if('deletion'==_0x172c86['type']){const _0x215214=_0x172c86['getItems']()['filter'](_0xf07816=>_0xf07816['is']('$textProxy'))['map'](_0x17f3f1=>_0x17f3f1['data']);if(_0x215214['length'])return{'type':'deletion','content':o(_0x469947,'*Remove:*\x20%0',o(_0x469947,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x215214['join']('\x20')+'\x22'))};}}}),_0x31ebcc['descriptionFactory']['registerDescriptionCallback'](_0x23f2b2=>{if('tableRow'==_0x23f2b2['subType']){const _0x38d05c=_0x23f2b2['getItems']()['filter'](_0x4f6a5e=>_0x4f6a5e['is']('$textProxy'))['map'](_0x14ce80=>_0x14ce80['data']),_0xf1fc10=this['_getSuggestionCoords'](_0x23f2b2),_0x551f51=_0xf1fc10['maxRow']-_0xf1fc10['minRow']+0x1;if('insertion'==_0x23f2b2['type'])return _0x38d05c['length']?{'type':'insertion','content':o(_0x469947,'*Insert:*\x20%0',o(_0x469947,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x551f51,'\x22'+_0x38d05c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x469947,'*Insert:*\x20%0',o(_0x469947,'ELEMENT_TABLE_ROW',_0x551f51))};if('deletion'==_0x23f2b2['type'])return _0x38d05c['length']?{'type':'deletion','content':o(_0x469947,'*Remove:*\x20%0',o(_0x469947,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x551f51,'\x22'+_0x38d05c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x469947,'*Remove:*\x20%0',o(_0x469947,'ELEMENT_TABLE_ROW',_0x551f51))};}if('tableColumn'==_0x23f2b2['subType']){const _0xfd880b=_0x23f2b2['getItems']()['filter'](_0x20974f=>_0x20974f['is']('$textProxy'))['map'](_0x311b28=>_0x311b28['data']),_0x5c74c1=this['_getSuggestionCoords'](_0x23f2b2),_0xdd064b=_0x5c74c1['maxColumn']-_0x5c74c1['minColumn']+0x1;if('insertion'==_0x23f2b2['type'])return _0xfd880b['length']?{'type':'insertion','content':o(_0x469947,'*Insert:*\x20%0',o(_0x469947,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdd064b,'\x22'+_0xfd880b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x469947,'*Insert:*\x20%0',o(_0x469947,'ELEMENT_TABLE_COLUMN',_0xdd064b))};if('deletion'==_0x23f2b2['type'])return _0xfd880b['length']?{'type':'deletion','content':o(_0x469947,'*Remove:*\x20%0',o(_0x469947,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdd064b,'\x22'+_0xfd880b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x469947,'*Remove:*\x20%0',o(_0x469947,'ELEMENT_TABLE_COLUMN',_0xdd064b))};}}),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x398180),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x398180),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x46c609),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x46c609),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5bcf59),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5bcf59),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x45c108),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x45c108);}['_acceptFormatSuggestionCallbackFactory'](){const _0x44283e=this['editor'],_0xd6aeac=_0x44283e['model']['document']['selection'];return(_0x4bea63,_0x36ca96)=>{_0x44283e['model']['change'](_0x49c4da=>{const {commandName:_0x34023d,commandParams:_0x4ed502}=_0x36ca96;let _0x3447d5=_0x4bea63[0x0]['end']['nodeBefore'];_0x4ed502&&_0x4ed502[0x0]&&!0x1===_0x4ed502[0x0]['forceValue']&&(_0x3447d5=_0x4bea63[0x0]['start']['nodeAfter']);const _0x2e273f=_0x49c4da['createRangeIn'](_0x3447d5);if('$graveyard'==_0x2e273f['root']['rootName'])return;const _0x53bc63=Array['from'](_0xd6aeac['getRanges']())['map'](_0x2998df=>_0x4f46eb['fromRange'](_0x2998df));_0x49c4da['setSelection'](_0x2e273f),_0x44283e['commands']['get'](_0x34023d)['refresh'](),_0x4ed502['push']({'forceDefaultExecution':!0x0}),_0x44283e['execute'](_0x34023d,..._0x4ed502);const _0x308de7=_0x53bc63['filter'](_0x4c8462=>'$graveyard'!=_0x4c8462['root']['rootName']);_0x308de7['length']>0x0&&_0x49c4da['setSelection'](_0x308de7);for(const _0x4d581f of _0x53bc63)_0x4d581f['detach']();});};}['_getCoordsForCells'](_0xbef91f){const _0x3eee32=this['editor']['plugins']['get']('TableUtils');let _0x5756dc=Number['MAX_SAFE_INTEGER'],_0x3d20a3=Number['MIN_SAFE_INTEGER'],_0x32d331=Number['MAX_SAFE_INTEGER'],_0xd62414=Number['MIN_SAFE_INTEGER'];for(const _0x5a2278 of _0xbef91f){if('$graveyard'==_0x5a2278['root']['rootName'])continue;const {row:_0x322d00,column:_0x535d4f}=_0x3eee32['getCellLocation'](_0x5a2278),_0x18e676=_0x5a2278['hasAttribute']('rowspan')?_0x5a2278['getAttribute']('rowspan')-0x1:0x0,_0x11f012=_0x5a2278['hasAttribute']('colspan')?_0x5a2278['getAttribute']('colspan')-0x1:0x0;_0x5756dc=_0x322d00<_0x5756dc?_0x322d00:_0x5756dc,_0x3d20a3=_0x322d00+_0x18e676>_0x3d20a3?_0x322d00+_0x18e676:_0x3d20a3,_0x32d331=_0x535d4f<_0x32d331?_0x535d4f:_0x32d331,_0xd62414=_0x535d4f+_0x11f012>_0xd62414?_0x535d4f+_0x11f012:_0xd62414;}return{'minRow':_0x5756dc,'maxRow':_0x3d20a3,'minColumn':_0x32d331,'maxColumn':_0xd62414};}['_setupColumnsRowsFixing'](){const _0x401959=this['editor'],_0x21e49d=_0x401959['plugins']['get']('TrackChangesEditing'),_0x57ba45=_0x401959['plugins']['get']('TableUtils');_0x401959['model']['document']['on']('change:data',()=>{const _0x213c88=Array['from'](_0x401959['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d2c46,data:_0xe50f2d}of _0x213c88){const {group:_0x52a4fd,id:_0x353e3b,subType:_0x3a237a}=_0x21e49d['_splitMarkerName'](_0x3d2c46);if('suggestion'!=_0x52a4fd)continue;if(null!=_0xe50f2d['oldRange'])continue;const _0x4a242b=_0x21e49d['getSuggestion'](_0x353e3b);this['_tablePostFixingSubtypes']['includes'](_0x3a237a)&&this['_tableSuggestions']['add'](_0x4a242b);}},{'priority':'low'});const _0x52dc92=(_0x35269e,_0x58d017)=>{let _0x108422=!0x1;const _0x3f4ae1=_0x58d017['createRangeOn'](_0x35269e),_0x419bb3=_0x35269e['findAncestor']('table'),_0x58ac89=_0x57ba45['getCellLocation'](_0x35269e);for(const _0x1e4796 of this['_tableSuggestions']){const _0x5dc2b7=_0x1e4796['subType'],_0x4d8913=_0x5dc2b7['startsWith']('tablePaste'),_0x3da059=_0x5dc2b7['substr'](_0x4d8913?0xa:0x5),_0x542601=_0x3da059['toLowerCase'](),_0x104a39=_0x542601['substr'](0x0,0x3)+'span',_0x148d97='min'+_0x3da059,_0x28b91f='max'+_0x3da059;if(!_0x1e4796['isInContent'])continue;if(_0x419bb3!=_0x1e4796['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1e4796['isIntersectingWithRange'](_0x3f4ae1))continue;const _0x63f2ad=_0x35269e['hasAttribute'](_0x104a39)?_0x35269e['getAttribute'](_0x104a39)-0x1:0x0,_0x129074=this['_getSuggestionCoords'](_0x1e4796),_0x2e510f=_0x129074[_0x148d97],_0x12c708=_0x129074[_0x28b91f];_0x2e510f<=_0x58ac89[_0x542601]&&_0x58ac89[_0x542601]+_0x63f2ad<=_0x12c708&&(_0x1e4796['addRange'](_0x3f4ae1),_0x108422=!0x0);}return _0x108422;};_0x401959['model']['document']['registerPostFixer'](_0x472315=>{let _0x5d516f=!0x1;for(const _0x389e88 of _0x401959['model']['document']['differ']['getChanges']())if('insert'==_0x389e88['type']){if('tableRow'==_0x389e88['name']){for(const _0x120b29 of _0x389e88['position']['nodeAfter']['getChildren']())_0x5d516f=_0x5d516f||_0x52dc92(_0x120b29,_0x472315);}else'tableCell'==_0x389e88['name']&&(_0x5d516f=_0x5d516f||_0x52dc92(_0x389e88['position']['nodeAfter'],_0x472315));}return _0x5d516f;});}['_getSuggestionCoords'](_0x594718){return this['_getCoordsForCells'](_0x594718['getRanges']()['map'](_0x163b70=>_0x163b70['start']['nodeAfter']));}}function Ne(_0x18517b){return Array['from'](new Set(_0x18517b)['values']());}class Nt extends _0xa4b53f{static get['requires'](){return[Ct];}['afterInit'](){const _0x3de926=this['editor'],_0x38a619=_0x3de926['model']['document']['selection'],_0x2b9604=_0x3de926['locale'];if(!_0x3de926['plugins']['has']('TableEditing'))return;const _0x1e64e2=_0x3de926['plugins']['get']('TrackChangesEditing'),_0xdab861=_0x3de926['plugins']['get']('TableUtils'),_0x58b10d=_0x3de926['plugins']['get'](Ct);_0x58b10d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1e64e2['enableCommand']('mergeTableCells',()=>{const _0x566255=_0xdab861['getSelectionAffectedTableCells'](_0x3de926['model']['document']['selection']);_0x3de926['model']['change'](()=>{_0x1e64e2['markMultiRangeBlockFormat'](_0x566255,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3de926['commands']['get']('mergeTableCells')['on']('execute',(_0x2dd887,_0x24ee90)=>{_0x3de926['commands']['get']('trackChanges')['value']&&(_0x24ee90['length']>0x0&&_0x24ee90[_0x24ee90['length']-0x1]&&_0x24ee90[_0x24ee90['length']-0x1]['forceDefaultExecution']||_0x1e64e2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2dd887['stop']());},{'priority':'highest'});for(const _0x3491bd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x245980=_0x3de926['commands']['get'](_0x3491bd);_0x1e64e2['enableCommand'](_0x3491bd,()=>{const _0x5cbcfa=_0x3de926['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x58528e=>_0x58528e['is']('element','tableCell')),_0x248a4a=_0x245980['value'];_0x3de926['model']['change'](()=>{_0x1e64e2['markMultiRangeBlockFormat']([_0x5cbcfa,_0x248a4a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3f0c75 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x34c7df=_0x3de926['commands']['get'](_0x3f0c75);_0x1e64e2['enableCommand'](_0x3f0c75,()=>{const _0x2183b0=_0xdab861['getSelectionAffectedTableCells'](_0x3de926['model']['document']['selection'])[0x0],_0x3b6d1d=_0x2183b0['findAncestor']('table'),{column:_0x50ce4f,row:_0x3b5583}=_0xdab861['getCellLocation'](_0x2183b0);let _0x8b1124=[];if('horizontally'==_0x34c7df['direction']){const _0x597abb=_0xdab861['createTableWalker'](_0x3b6d1d,{'startRow':_0x3b5583,'endRow':_0x3b5583,'includeAllSlots':!0x0});_0x8b1124=Array['from'](_0x597abb)['map'](_0x3e1442=>_0x3e1442['cell']);}else{const _0x480072=_0xdab861['createTableWalker'](_0x3b6d1d,{'column':_0x50ce4f,'includeAllSlots':!0x0});_0x8b1124=Array['from'](_0x480072)['map'](_0x4e324f=>_0x4e324f['cell']);}_0x3de926['model']['change'](_0xa57975=>{_0x1e64e2['markBlockFormat'](_0xa57975['createRangeOn'](_0x2183b0),{'commandName':_0x3f0c75,'commandParams':[]},_0x8b1124,_0x3f0c75);});});}_0x1e64e2['descriptionFactory']['registerDescriptionCallback'](_0x4218ef=>{if('formatBlock'!=_0x4218ef['type']&&'formatInline'!=_0x4218ef['type'])return;const {data:_0x2bd1ff}=_0x4218ef;return _0x2bd1ff&&'mergeTableCells'==_0x2bd1ff['commandName']?{'type':'format','content':o(_0x2b9604,'*Merge\x20cells*')}:void 0x0;}),_0x1e64e2['descriptionFactory']['registerDescriptionCallback'](_0x273db4=>{if('formatBlock'!=_0x273db4['type']&&'formatInline'!=_0x273db4['type'])return;const {data:_0x2a6a44}=_0x273db4;return _0x2a6a44?'splitTableCellVertically'==_0x2a6a44['commandName']?{'type':'format','content':o(_0x2b9604,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2a6a44['commandName']?{'type':'format','content':o(_0x2b9604,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3141e5=_0x58b10d['_acceptFormatSuggestionCallbackFactory']();for(const _0x2ca468 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1e64e2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2ca468,'accept',_0x3141e5);for(const _0x1fc46f of['splitTableCellVertically','splitTableCellHorizontally'])_0x1e64e2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1fc46f,'accept',_0x3141e5);_0x1e64e2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x362520=>{_0x3de926['model']['change'](_0x33f552=>{const _0x21026b=Array['from'](_0x38a619['getRanges']())['map'](_0x53e1cb=>_0x4f46eb['fromRange'](_0x53e1cb));_0x33f552['setSelection'](_0x362520),_0x3de926['commands']['get']('mergeTableCells')['refresh'](),_0x3de926['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x46b602=_0x21026b['filter'](_0x9daec9=>'$graveyard'!=_0x9daec9['root']['rootName']);_0x46b602['length']>0x0&&_0x33f552['setSelection'](_0x46b602);for(const _0xe10f3d of _0x21026b)_0xe10f3d['detach']();});});for(const _0x5e0e3b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3c49cc=_0x3de926['commands']['get'](_0x5e0e3b);_0x3c49cc['on']('set:isEnabled',(_0x203b54,_0x2bb0bb,_0x108bfc)=>{if(_0x108bfc){const _0x548ea4=_0x3de926['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x228437=>_0x228437['is']('element','tableCell'));this['_areMergableCells'](_0x3c49cc['value'],_0x548ea4)||(_0x203b54['return']=!0x1,_0x203b54['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xec7ad8=this['editor']['commands']['get']('mergeTableCells'),_0x44e7ba=this['editor']['plugins']['get']('TableUtils');if(!_0xec7ad8['isEnabled'])return!0x1;const _0x397a6e=_0x44e7ba['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x11dd52 of _0x397a6e)for(const _0x53d581 of _0x397a6e)if(_0x11dd52!=_0x53d581&&!this['_areMergableCells'](_0x11dd52,_0x53d581))return!0x1;return!0x0;}['_areMergableCells'](_0x2b82da,_0x3c0d16){const _0x3730af=this['editor']['plugins']['get']('TrackChangesEditing'),_0xed02e8=this['editor']['model']['createRangeOn'](_0x2b82da),_0x251a91=this['editor']['model']['createRangeOn'](_0x3c0d16),_0x1eefce=new Set(),_0x4f3fc9=new Set();for(const _0x1ad849 of _0x3730af['getSuggestions']())if(('insertion'==_0x1ad849['type']||'deletion'==_0x1ad849['type']||'mergeTableCells'==_0x1ad849['subType'])&&_0x1ad849['isInContent']){for(const _0x5519fa of _0x1ad849['getRanges']())_0x5519fa['containsRange'](_0xed02e8,!0x0)&&_0x1eefce['add'](_0x1ad849['type']+':'+_0x1ad849['author']['id']),_0x5519fa['containsRange'](_0x251a91,!0x0)&&_0x4f3fc9['add'](_0x1ad849['type']+':'+_0x1ad849['author']['id']);}if(_0x1eefce['size']!=_0x4f3fc9['size'])return!0x1;for(const _0x5b1983 of _0x1eefce)if(!_0x4f3fc9['has'](_0x5b1983))return!0x1;return!0x0;}}class Dt extends _0xa4b53f{static get['requires'](){return[Ct];}['afterInit'](){const _0x88ed25=this['editor'];if(!_0x88ed25['plugins']['has']('TableEditing'))return;const _0x4ebdce=_0x88ed25['locale'],_0x219c39=_0x88ed25['plugins']['get']('TrackChangesEditing');_0x219c39['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x219c39['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x219c39['registerBlockAttribute']('headingRows'),_0x219c39['registerBlockAttribute']('headingColumns'),_0x219c39['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4ebdce,'FORMAT_HEADER_ROW')),_0x219c39['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4ebdce,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x595915=this['editor']['plugins']['get']('TrackChangesEditing'),_0x368145=this['editor']['plugins']['get']('TableUtils'),_0x1d621a=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3d1216({showActiveMarker:_0x466e45=!0x0,setDataAttribute:_0x46fe7e=!0x0}={}){return(_0x4f5d19,_0x2744b9,_0x54440e)=>{const {type:_0x338cce,id:_0x36693c}=_0x595915['_splitMarkerName'](_0x2744b9['markerName']),_0x2d53e0=_0x595915['getSuggestion'](_0x36693c),_0x5e05df=_0x2d53e0['data'];if('formatBlock'!=_0x2d53e0['type']||!_0x5e05df||'setTableColumnHeader'!=_0x5e05df['commandName'])return;if(_0x2744b9['item'])return void _0x4f5d19['stop']();if(!_0x54440e['consumable']['consume'](_0x2744b9['markerRange'],_0x4f5d19['name']))return;const _0x4e2dc=_0x2744b9['markerRange']['start']['nodeAfter'],_0x28b89d=_0x2744b9['markerRange']['end']['nodeBefore'],_0x118784=_0x4e2dc['parent']['parent'],{column:_0x2656c5}=_0x368145['getCellLocation'](_0x4e2dc),{column:_0x57f5d7}=_0x368145['getCellLocation'](_0x28b89d);for(let _0x59b221=_0x2656c5;_0x59b221<=_0x57f5d7;_0x59b221++){const _0x3f5d8e=_0x368145['createTableWalker'](_0x118784,{'column':_0x59b221,'includeAllSlots':!0x1});for(const _0x2ba526 of _0x3f5d8e){const _0x3c1804=_0x2ba526['cell'],_0xd74c8=_0x54440e['mapper']['toViewElement'](_0x3c1804);_0x54440e['writer']['addClass']('ck-suggestion-marker-'+_0x338cce,_0xd74c8),_0x46fe7e&&_0x54440e['writer']['setAttribute']('data-suggestion',_0x36693c,_0xd74c8),_0x54440e['mapper']['bindElementToMarker'](_0xd74c8,_0x2744b9['markerName']),_0x466e45&&(_0x595915['activeMarkers']['includes'](_0x2744b9['markerName'])?_0x54440e['writer']['addClass']('ck-suggestion-marker--active',_0xd74c8):_0x54440e['writer']['removeClass']('ck-suggestion-marker--active',_0xd74c8));}}};}_0x595915['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1d621a),_0x595915['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1d621a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3d1216(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd847a0,_0x5ef510,_0xfe7421)=>{_0xfe7421['options']['showSuggestionHighlights']&&_0x3d1216({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xd847a0,_0x5ef510,_0xfe7421);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x406bf2,_0x5cc166,_0xeb10d3)=>{const {type:_0xa48eb6,id:_0x98f589}=_0x595915['_splitMarkerName'](_0x5cc166['markerName']),_0x314cda=_0x595915['getSuggestion'](_0x98f589),_0xfd6004=_0x314cda['data'];if('formatBlock'!=_0x314cda['type']||!_0xfd6004||'setTableColumnHeader'!=_0xfd6004['commandName'])return;const _0x14d102=_0xeb10d3['mapper']['markerNameToElements'](_0x5cc166['markerName']);if(_0x14d102){for(const _0xcf7bcc of _0x14d102)_0xeb10d3['writer']['removeClass']('ck-suggestion-marker-'+_0xa48eb6,_0xcf7bcc),_0xeb10d3['writer']['removeClass']('ck-suggestion-marker--active',_0xcf7bcc),_0xeb10d3['writer']['removeAttribute']('data-suggestion',_0xcf7bcc),_0xeb10d3['mapper']['unbindElementFromMarkerName'](_0xcf7bcc,_0x5cc166['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19f9df=this['editor'],_0x2ece7f=_0x19f9df['locale'];function _0x4dc673(_0x54548e){return{'type':'format','content':o(_0x2ece7f,'*Format:*\x20%0',_0x54548e)};}_0x19f9df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dc5b0=>{if('formatBlock'!=_0x4dc5b0['type'])return;const {data:_0x2ffbd6}=_0x4dc5b0;if(_0x2ffbd6){if('setTableRowHeader'==_0x2ffbd6['commandName']){const _0x26e436=_0x2ffbd6['commandParams'][0x0]['forceValue'];return _0x4dc673(o(_0x2ece7f,_0x26e436?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2ffbd6['commandName']){const _0x3b3ec8=_0x2ffbd6['commandParams'][0x0]['forceValue'];return _0x4dc673(o(_0x2ece7f,_0x3b3ec8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x5c3c15=>[_0x5c3c15,null]));class Mt extends _0xa4b53f{static get['requires'](){return[Ct];}['afterInit'](){const _0x53e3e3=this['editor'];if(!_0x53e3e3['plugins']['has']('TableClipboard'))return;const _0x4e0b35=_0x53e3e3['plugins']['get']('TrackChangesEditing'),_0x1dd714=_0x53e3e3['plugins']['get']('TableUtils'),_0x3f341d=_0x53e3e3['plugins']['get'](Ct),_0x18a0c8=_0x53e3e3['plugins']['get']('TableClipboard');_0x3f341d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x53e3e3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x53e3e3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x556481=null;_0x53e3e3['model']['on']('insertContent',(_0x58ec16,_0x11bc48)=>{const [_0xa39841,_0x28b2cc]=_0x11bc48,_0x121ca8=_0x11bc48[_0x11bc48['length']-0x1];_0x121ca8&&_0x121ca8['forceDefaultExecution']||_0x4e0b35['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4313ad,_0x523dc9,_0x769ebd,_0x3d6ea1,_0x5bdb87){if(_0x523dc9&&!_0x523dc9['is']('documentSelection'))return!0x1;const _0xcfe1d8=_0x5bdb87['getTableIfOnlyTableInContent'](_0x4313ad,_0x769ebd);if(!_0xcfe1d8||!Ue(_0xcfe1d8,void 0x0,_0x3d6ea1))return!0x1;const _0x21d959=_0x3d6ea1['getSelectionAffectedTableCells'](_0x769ebd['document']['selection']);if(!_0x21d959['length'])return!0x1;const _0x129a88=_0x21d959[0x0]['findAncestor']('table'),_0x3785a7=_0x3d6ea1['getRowIndexes'](_0x21d959),_0x524a68=_0x3d6ea1['getColumnIndexes'](_0x21d959),_0x19a4a2={'startRow':_0x3785a7['first'],'endRow':_0x3785a7['last'],'startColumn':_0x524a68['first'],'endColumn':_0x524a68['last']};return 0x1==_0x21d959['length']&&(_0x19a4a2['endRow']+=_0x3d6ea1['getRows'](_0xcfe1d8)-0x1,_0x19a4a2['endColumn']+=_0x3d6ea1['getColumns'](_0xcfe1d8)-0x1),Ue(_0x129a88,_0x19a4a2,_0x3d6ea1);}(_0xa39841,_0x28b2cc,_0x53e3e3['model'],_0x1dd714,_0x18a0c8)&&(_0x58ec16['stop'](),_0x556481={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x53e3e3['model']['change'](()=>{_0x53e3e3['model']['insertContent'](_0x11bc48[0x0],_0x11bc48[0x1],_0x11bc48[0x2],{'forceDefaultExecution':!0x0});const _0x148f75=_0xf688c7(),{rowInsertionRanges:_0x539a62,columnInsertionRanges:_0x58acd2,insertionRanges:_0x172b78,deletionRanges:_0xe09634,cells:_0x1623b0}=_0x556481;_0x539a62['length']&&_0x4e0b35['markMultiRangeInsertion'](_0x539a62,'tablePasteRow',{'tablePasteChainId':_0x148f75}),_0x58acd2['length']&&_0x4e0b35['markMultiRangeInsertion'](_0x58acd2,'tablePasteColumn',{'tablePasteChainId':_0x148f75}),_0x172b78['length']&&(_0x4e0b35['markMultiRangeInsertion'](_0x172b78,'tablePaste',{'tablePasteChainId':_0x148f75,'skipNestingCheck':!0x0}),_0x172b78['forEach'](_0x592b25=>_0x592b25['detach']?.())),_0xe09634['length']&&(_0x4e0b35['markMultiRangeDeletion'](_0xe09634,'tablePaste',{'tablePasteChainId':_0x148f75,'skipNestingCheck':!0x0}),_0xe09634['forEach'](_0x1cce2f=>_0x1cce2f['detach']?.()));const _0x37dbe1=_0x4e0b35['markMultiRangeBlockFormat'](_0x1623b0['map'](({element:_0x3e4f3e})=>_0x3e4f3e),{'formatGroupId':_0xf688c7()},[],'tablePasteCell',{'tablePasteChainId':_0x148f75});if(_0x37dbe1){const _0xfc6e7f=_0x37dbe1['getMarkers'](),_0x46dad7=[];for(const {element:_0x26078d,attributes:_0x479657}of _0x1623b0){if(!_0x479657)continue;const _0x485165=_0x53e3e3['model']['createRangeOn'](_0x26078d),_0x3bc960=_0xfc6e7f['find'](_0x3e9adb=>_0x3e9adb['getRange']()['isEqual'](_0x485165));_0x3bc960&&_0x46dad7['push']([_0x3bc960['name'],_0x479657]);}_0x46dad7['length']&&_0x37dbe1['setAttribute']('markerAttributes',Object['fromEntries'](_0x46dad7));}_0x556481=null;}));},{'priority':_0x2435d0['high']+0xa}),_0x53e3e3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xe7192b,_0x16a53a)=>{const [_0xf547d4,_0x823463,,_0x39f604]=_0x16a53a;if(!_0x556481)return;_0xe7192b['stop']();const _0x20787d=_0xf547d4['cell'],_0x225625=_0x823463,_0x3f95f0=Oe(_0x20787d),_0x4874ae=Oe(_0x225625);_0xe7192b['return']=_0x20787d;let _0x572294=null,_0x5671f5=null;if(_0x4874ae||_0x3f95f0){if(_0x3f95f0&&!_0x4874ae){_0x39f604['remove'](_0x20787d['getChild'](0x0));for(const _0x309221 of Array['from'](_0x225625['getChildren']()))_0x39f604['insert'](_0x309221,_0x20787d,'end');const _0x3b4930=_0x556481['rowInsertionIndexes']['includes'](_0xf547d4['row']),_0x101aeb=_0x556481['columnInsertionIndexes']['includes'](_0xf547d4['column']);_0x3b4930||_0x101aeb||(_0x572294=_0x4f46eb['fromRange'](_0x39f604['createRangeIn'](_0x20787d)));}else _0x4874ae&&!_0x3f95f0&&(_0x5671f5=_0x39f604['createRangeIn'](_0x20787d));}else{const _0xbf24dc=_0x39f604['createElement']('tableCellSuggestion'),_0x54a627=_0x39f604['createElement']('tableCellSuggestion');_0x39f604['wrap'](_0x39f604['createRangeIn'](_0x20787d),_0x54a627),_0x39f604['insert'](_0xbf24dc,_0x20787d,0x0);for(const _0x58f802 of Array['from'](_0x225625['getChildren']()))_0x39f604['insert'](_0x58f802,_0xbf24dc,'end');_0x572294=_0x4f46eb['fromRange'](_0x39f604['createRangeOn'](_0xbf24dc)),_0x5671f5=_0x4f46eb['fromRange'](_0x39f604['createRangeOn'](_0x54a627));}const _0x5b8429=Array['from'](_0x225625['getAttributes']())['filter'](([_0x5c2abe])=>Be['includes'](_0x5c2abe));_0x556481['cells']['push']({'element':_0x20787d,'attributes':_0x5b8429['length']?Object['fromEntries'](_0x5b8429):null}),_0x572294&&_0x556481['insertionRanges']['push'](_0x572294),_0x5671f5&&_0x556481['deletionRanges']['push'](_0x5671f5);},{'priority':'high'}),_0x1dd714['on']('insertColumns',(_0x408e2a,_0x417eca)=>{const [_0x41cd07,_0x2b28c2={}]=_0x417eca;if(!_0x556481)return;const _0x4c5623=_0x2b28c2['at']||0x0,_0x4e163a=_0x2b28c2['columns']||0x1;_0x556481['columnInsertionIndexes']=new Array(_0x4e163a)['fill'](_0x4c5623)['map']((_0x319835,_0x1fdcee)=>_0x319835+_0x1fdcee);for(const {cell:_0x3b101b}of _0x1dd714['createTableWalker'](_0x41cd07,{'startColumn':_0x4c5623,'endColumn':_0x4c5623+_0x4e163a-0x1}))_0x556481['columnInsertionRanges']['push'](_0x53e3e3['model']['createRangeOn'](_0x3b101b));},{'priority':'low'}),_0x1dd714['on']('insertRows',(_0x46beda,_0x19160b)=>{const [_0x865474,_0x51bf5a={}]=_0x19160b;if(!_0x556481)return;const _0x18911c=_0x51bf5a['at']||0x0,_0x2cb772=_0x51bf5a['rows']||0x1;_0x556481['rowInsertionIndexes']=new Array(_0x2cb772)['fill'](_0x18911c)['map']((_0x4f38ef,_0x3b5f24)=>_0x4f38ef+_0x3b5f24);for(const {cell:_0x4e6623}of _0x1dd714['createTableWalker'](_0x865474,{'startRow':_0x18911c,'endRow':_0x18911c+_0x2cb772-0x1}))_0x556481['rowInsertionRanges']['push'](_0x53e3e3['model']['createRangeOn'](_0x4e6623));},{'priority':'low'}),_0x4e0b35['descriptionFactory']['registerDescriptionCallback'](_0xa59add=>{if(_0xa59add['subType']&&_0xa59add['subType']['startsWith']('tablePaste'))return _0xa59add['previous']?{}:{'type':'insertion','content':o(_0x53e3e3['locale'],'*Replace\x20table\x20cells*')};});const _0x11559c=()=>!0x1;for(const _0xe6dd7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4e0b35['_suggestionFactory']['registerCustomCallback']('insertion',_0xe6dd7,'join',_0x11559c),_0x4e0b35['_suggestionFactory']['registerCustomCallback']('deletion',_0xe6dd7,'join',_0x11559c),_0x4e0b35['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe6dd7,'join',_0x11559c);_0x4e0b35['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x11559c),_0x4e0b35['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3ac6de,_0x9b6c73,_0x5003e8)=>{const _0x1f46d4=_0x3ac6de['map'](_0x3afe31=>_0x3afe31['getContainedElement']())['filter'](_0x2d2085=>_0x2d2085),_0x599101=new Map(_0x1f46d4['map'](_0x1fe2a9=>[_0x1fe2a9,null]));if(_0x556481){for(const {element:_0x5c8ac8,attributes:_0x577e70}of _0x556481['cells'])_0x577e70&&_0x599101['set'](_0x5c8ac8,_0x577e70);}else{if(_0x5003e8&&_0x5003e8['markerAttributes'])for(const [_0x1c09c5,_0x3d67f8]of Object['entries'](_0x5003e8['markerAttributes'])){const _0x47c512=_0x53e3e3['model']['markers']['get'](_0x1c09c5),_0x2f4028=_0x47c512?_0x47c512['getRange']()['getContainedElement']():null;_0x2f4028&&_0x599101['set'](_0x2f4028,_0x3d67f8);}}_0x53e3e3['model']['change'](_0x5527d2=>{for(const [_0x151167,_0x1a3c65]of _0x599101)_0x5527d2['setAttributes']({...xe,..._0x1a3c65},_0x151167);});});const _0x3bf32f=(_0xe261,_0x47bc4e)=>{_0x4e0b35['_suggestionFactory']['registerCustomCallback'](_0xe261,'tablePaste',_0x47bc4e,(_0x4379a7,_0x1860d5,_0x2d19d7)=>{_0x53e3e3['model']['change'](_0x5e85c3=>{const _0x4925c8=[];for(const _0x2ef791 of _0x4379a7){const _0x564c5e=_0x2ef791['start']['nodeAfter'];_0x564c5e['is']('element','tableCellSuggestion')&&_0x4925c8['push'](_0x564c5e);}_0x4e0b35['_suggestionFactory']['getSuggestionCallback'](_0xe261,null,_0x47bc4e)(_0x4379a7,_0x1860d5,_0x2d19d7);for(const _0x1e4882 of _0x4925c8)'$graveyard'!=_0x1e4882['root']['rootName']&&_0x5e85c3['unwrap'](_0x1e4882);});});};_0x3bf32f('insertion','accept'),_0x3bf32f('insertion','discard'),_0x3bf32f('deletion','accept'),_0x3bf32f('deletion','discard'),_0x4e0b35['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x492038=>{const _0xd93861=_0x492038['map'](_0x1c775e=>_0x1c775e['getContainedElement']()),_0x1d6918=_0xd93861[0x0]['findAncestor']('table'),{minRow:_0x53b06d,maxRow:_0x3f4207}=_0x3f341d['_getCoordsForCells'](_0xd93861);_0x1dd714['removeRows'](_0x1d6918,{'at':_0x53b06d,'rows':_0x3f4207-_0x53b06d+0x1});}),_0x4e0b35['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x72a86c=>{const _0x374415=_0x72a86c['map'](_0xcc1e74=>_0xcc1e74['getContainedElement']()),_0xbb6fd=_0x374415[0x0]['findAncestor']('table'),{minColumn:_0x22f8d6,maxColumn:_0x3ef4f8}=_0x3f341d['_getCoordsForCells'](_0x374415);_0x1dd714['removeColumns'](_0xbb6fd,{'at':_0x22f8d6,'columns':_0x3ef4f8-_0x22f8d6+0x1});});const _0x4660a0=(_0x1c6e8e,_0xa76e3d)=>{if(!_0xa76e3d['subType']||!_0xa76e3d['subType']['startsWith']('tablePaste'))return;const _0xa420c4=_0xa76e3d['attributes']['tablePasteChainId'],_0x36d17e=_0x4e0b35['getSuggestions']()['filter'](_0x5bb224=>_0x5bb224['isInContent']&&_0x5bb224['attributes']&&_0x5bb224['attributes']['tablePasteChainId']==_0xa420c4);_0x36d17e['length']&&_0xa76e3d['getAllAdjacentSuggestions']()['length']!=_0x36d17e['length']&&_0x36d17e['reduce']((_0x452f80,_0x373cd6)=>(_0x452f80['next']=_0x373cd6,_0x373cd6['previous']=_0x452f80,_0x373cd6));};function _0x4dde74(_0x3a57ad,_0x397139=!0x0){const {id:_0x5eac1c,authorId:_0x474678}=_0x4e0b35['_splitMarkerName'](_0x3a57ad['markerName']),_0x251187=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x44830a=_0x4e0b35['activeMarkers']['includes'](_0x3a57ad['markerName']);return _0x44830a&&_0x251187['push']('ck-suggestion-marker--active'),{'classes':_0x251187,'attributes':{'data-suggestion':_0x5eac1c,'data-author-id':_0x474678},'priority':_0x44830a&&_0x397139?0xbc2:0xbb8};}_0x4e0b35['on']('suggestionLoaded',_0x4660a0,{'priority':'high'}),_0x4e0b35['on']('suggestionUnloaded',_0x4660a0,{'priority':'high'}),_0x53e3e3['model']['document']['registerPostFixer'](()=>{let _0x3baae7=!0x1;const _0x3c2181=Array['from'](_0x53e3e3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x76de0b,data:_0x2caf3b}of _0x3c2181){const {group:_0x319542,type:_0x5e27af,id:_0x56478f}=_0x4e0b35['_splitMarkerName'](_0x76de0b);if('suggestion'!=_0x319542||'deletion'!=_0x5e27af||_0x2caf3b['oldRange'])continue;if(!_0x4e0b35['hasSuggestion'](_0x56478f))continue;const _0x1c165a=_0x4e0b35['getSuggestion'](_0x56478f)['getRanges'](),_0x2d3125=_0x53e3e3['plugins']['get']('Users')['me'];for(const _0x62cfea of _0x4e0b35['getSuggestions']()){if(!_0x62cfea['isInContent']||_0x62cfea['author']!=_0x2d3125)continue;if('formatBlock'!=_0x62cfea['type']||'tablePasteCell'!=_0x62cfea['subType'])continue;if(_0x62cfea['getRanges']()['every'](_0xd0d3ec=>_0x1c165a['some'](_0x5af216=>_0x5af216['containsRange'](_0xd0d3ec,!0x0)))){for(const _0x904cb6 of _0x62cfea['getAllAdjacentSuggestions']())_0x904cb6['isInContent']&&(_0x904cb6['discard'](),_0x3baae7=!0x0);}}}return _0x3baae7;}),_0x53e3e3['model']['document']['registerPostFixer'](_0x35e281=>{const _0x42e39f=_0x53e3e3['commands']['get']('redo');if(!_0x42e39f||!_0x42e39f['_createdBatches']['has'](_0x35e281['batch']))return!0x1;let _0x265ed0=!0x1;const _0x31d0ee=_0x53e3e3['plugins']['get']('Users')['me'],_0x143340=_0x53e3e3['model']['document']['differ']['getChanges'](),_0x271b73=Array['from'](_0x53e3e3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3b5906,data:_0xe2aabc})=>{const {group:_0x4f55bb,subType:_0x564cb0,authorId:_0x21be77}=_0x4e0b35['_splitMarkerName'](_0x3b5906);return'suggestion'==_0x4f55bb&&'tablePaste'==_0x564cb0&&_0x21be77==_0x31d0ee['id']&&!_0xe2aabc['oldRange'];});for(const _0x3832a2 of _0x143340){if('insert'!=_0x3832a2['type']||'tableCellSuggestion'!=_0x3832a2['name']||0x1!=_0x3832a2['length'])continue;const _0x85375c=_0x35e281['createRange'](_0x3832a2['position'],_0x3832a2['position']['getShiftedBy'](0x1));if(!_0x271b73['find'](({data:_0xa05e4})=>_0xa05e4['newRange']['isEqual'](_0x85375c))){for(const {name:_0x2d7751,data:_0x383afb}of _0x271b73)if(_0x85375c['containsRange'](_0x383afb['newRange'])){_0x35e281['updateMarker'](_0x2d7751,{'range':_0x85375c}),_0x265ed0=!0x0;break;}}}return _0x265ed0;}),_0x53e3e3['model']['document']['registerPostFixer'](_0x1f4197=>{let _0x45dd8d=!0x1;const _0x575c12=_0x53e3e3['plugins']['get']('Users')['me'],_0x2f2728=_0x4e0b35['getSuggestions']()['filter'](_0x34e337=>_0x34e337['isInContent']&&_0x34e337['author']==_0x575c12),_0x5091e1=new Set(),_0x485984=new Set();for(const _0x3d9100 of _0x2f2728)if('tablePaste'==_0x3d9100['subType'])for(const _0x5df8a1 of _0x3d9100['getMarkers']()){const _0x3bbf45=_0x5df8a1['getRange']()['getContainedElement']();if(_0x3bbf45){if(_0x3bbf45['is']('element','tableCellSuggestion')&&Oe(_0x3bbf45)){_0x3d9100['removeMarker'](_0x5df8a1['name']),_0x5091e1['add'](_0x3bbf45),_0x45dd8d=!0x0;const _0x443548=_0x3bbf45['nextSibling'],_0x3c95ad=_0x3bbf45['previousSibling'],_0x2f5df4=_0x443548&&_0x443548['is']('element','tableCellSuggestion'),_0x1f5147=_0x3c95ad&&_0x3c95ad['is']('element','tableCellSuggestion');_0x2f5df4&&!_0x5091e1['has'](_0x443548)&&_0x485984['add'](_0x443548),_0x1f5147&&!_0x5091e1['has'](_0x3c95ad)&&_0x485984['add'](_0x3c95ad);}else _0x3bbf45['is']('element','paragraph')&&_0x3bbf45['isEmpty']&&(_0x3d9100['removeMarker'](_0x5df8a1['name']),_0x45dd8d=!0x0);}}else{if('tablePasteCell'==_0x3d9100['subType']){if(!_0x3d9100['attributes']||!_0x3d9100['attributes']['tablePasteChainId'])continue;const _0x171dc6=_0x3d9100['attributes']['markerAttributes'];if(_0x171dc6&&Object['keys'](_0x171dc6)['length'])continue;const _0x115c2e=_0x3d9100['attributes']['tablePasteChainId'];let _0x4e679b=!0x0,_0x94c559=!0x0;for(const _0xa4ec2d of _0x2f2728)if(_0xa4ec2d['subType']&&_0xa4ec2d['subType']['startsWith']('tablePaste')){if(!_0xa4ec2d['attributes']['tablePasteChainId']){_0x94c559=!0x1;break;}if(_0xa4ec2d['id']!=_0x3d9100['id']&&_0xa4ec2d['attributes']['tablePasteChainId']==_0x115c2e){_0x4e679b=!0x1;break;}}_0x94c559&&_0x4e679b&&(_0x3d9100['removeMarkers'](),_0x45dd8d=!0x0);}}for(const _0x49592e of _0x5091e1)_0x1f4197['remove'](_0x49592e);for(const _0x56abe0 of _0x485984)_0x1f4197['unwrap'](_0x56abe0);return _0x45dd8d;}),_0x53e3e3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x175d59=>_0x4dde74(_0x175d59),'converterPriority':'high'}),_0x53e3e3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5f2de8,_0x4d4d8c)=>_0x4d4d8c['options']['showSuggestionHighlights']?_0x4dde74(_0x5f2de8,!0x1):null,'converterPriority':'high'});const _0x424ac2=_0x53e3e3['editing']['view'];this['listenTo'](_0x424ac2['document'],'clipboardOutput',(_0x40fd1f,_0x538565)=>{const _0x5a807f=[];for(const _0x57b26c of _0x424ac2['createRangeIn'](_0x538565['content'])['getItems']())_0x57b26c['is']('element','suggestion-td')&&_0x5a807f['push'](_0x57b26c);_0x424ac2['change'](_0x2ab620=>{for(const _0x24190f of _0x5a807f)_0x2ab620['move'](_0x2ab620['createRangeIn'](_0x24190f),_0x2ab620['createPositionBefore'](_0x24190f)),_0x2ab620['remove'](_0x24190f);});});}}function Oe(_0xa7ddcc){if(_0xa7ddcc['isEmpty'])return!0x0;const _0x17f0cd=_0xa7ddcc['getChild'](0x0);return _0x17f0cd['is']('element','paragraph')&&_0x17f0cd['isEmpty'];}function Ue(_0x49a4b6,_0x562080={},_0x388014){for(const {isAnchor:_0x501c75,cellHeight:_0x205c47,cellWidth:_0x1abf9c}of _0x388014['createTableWalker'](_0x49a4b6,{'includeAllSlots':!0x0,..._0x562080}))if(!_0x501c75||0x1!=_0x205c47||0x1!=_0x1abf9c)return!0x1;return!0x0;}class $t extends _0xa4b53f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1ac101=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ac101['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1ac101['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1ac101['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ac101['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1ac101['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1ac101['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x51db1f,_0x498a2e){const _0x51651e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e713f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x314474=_0x498a2e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x28ebae=_0x4e713f['getColumnGroupElement'](_0x314474);let _0xa3836f=_0x28ebae?_0x4e713f['getTableColumnsWidths'](_0x28ebae):null,_0x527c55=_0x314474['getAttribute']('tableWidth')||null;const _0x5e1362=_0x498a2e['tableWidth']||_0x527c55,_0x5d15c3=_0x498a2e['columnWidths']||_0xa3836f,_0x108bf5=this['editor']['plugins']['get']('Users')['me'];for(const _0x1caea7 of _0x51651e['getSuggestions']()){const _0x26ff09=_0x1caea7['getContainedElement']();if('resizeTable'===_0x1caea7['subType']&&_0x26ff09===_0x314474){_0x1caea7['author']!==_0x108bf5&&_0x1caea7['discard']();const _0x5ed257=_0x1caea7['data']['commandParams'];_0x527c55=_0x5ed257[0x0]['tableWidth'],_0xa3836f=_0x5ed257[0x0]['columnWidths'];break;}}_0x51db1f({'table':_0x314474,'tableWidth':_0x5e1362,'columnWidths':_0x5d15c3}),_0x51651e['markBlockFormat'](_0x314474,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x527c55,'columnWidths':_0xa3836f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x545c67){if('formatBlock'!=_0x545c67['type']&&'formatInline'!=_0x545c67['type'])return;const {data:_0x51417f}=_0x545c67;if(_0x51417f&&'resizeTable'===_0x51417f['formatGroupId']){const _0x337a83='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x337a83)};}}}class Bt extends _0xa4b53f{['afterInit'](){const _0x39efc5=this['editor'];_0x39efc5['plugins']['has']('Template')&&_0x39efc5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0xa4b53f{['afterInit'](){const _0x4f4ec9=this['editor'];if(!_0x4f4ec9['commands']['get']('insertTableOfContents'))return;_0x4f4ec9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x254ddf=_0x4f4ec9['plugins']['get']('TrackChangesEditing'),_0x4f3938=_0x4f4ec9['locale'];_0x254ddf['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4eeb96=>o(_0x4f3938,'ELEMENT_TABLE_OF_CONTENTS',_0x4eeb96));}}class Rt extends _0xa4b53f{['afterInit'](){const _0x4f7e6b=this['editor'];if(!_0x4f7e6b['plugins']['has']('Title'))return;const _0x3214db=_0x4f7e6b['plugins']['get']('TrackChangesEditing');_0x3214db['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4f7e6b['locale'],'ELEMENT_TITLE')),_0x4f7e6b['model']['document']['registerPostFixer'](_0x21905f=>{let _0x5917cf=!0x1;const _0x568493=Array['from'](_0x4f7e6b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xafe0ba,data:_0x520f24}of _0x568493){const {group:_0x22a5f9}=_0x3214db['_splitMarkerName'](_0xafe0ba);if('suggestion'!==_0x22a5f9||!_0x520f24['newRange'])continue;const _0x4efeb9=_0x520f24['newRange'],_0x3463a1=_0x4efeb9['end']['nodeBefore'];if(!_0x3463a1||!_0x3463a1['is']('element','title-content'))continue;if(!_0x4efeb9['start']['isTouching'](_0x4efeb9['end']))continue;const _0x3c1d83=_0x4f7e6b['model']['schema']['getNearestSelectionRange'](_0x4efeb9['end'],'forward');if(_0x3c1d83&&_0x3c1d83['isCollapsed']){const _0x2ad753=_0x21905f['createRange'](_0x4efeb9['start'],_0x3c1d83['start']);_0x2ad753['isEqual'](_0x4efeb9)||(_0x21905f['updateMarker'](_0xafe0ba,{'range':_0x2ad753}),_0x5917cf=!0x0);}_0x5917cf||(_0x21905f['removeMarker'](_0xafe0ba),_0x5917cf=!0x0);}return _0x5917cf;});}}class Tt extends _0xa4b53f{['afterInit'](){const _0x4b15ec=this['editor'],_0x9bf790=_0x4b15ec['plugins']['get']('TrackChangesEditing');_0x4b15ec['plugins']['has']('Uploadcare')&&(_0x9bf790['enableCommand']('uploadcare'),_0x4b15ec['plugins']['has']('UploadcareImageEdit')&&(_0x9bf790['enableCommand']('uploadcareImageEdit'),_0x9bf790['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x9bf790['registerBlockAttribute']('uploadcareImageId'),_0x9bf790['descriptionFactory']['registerDescriptionCallback'](_0x340ffb=>{if('attribute'!=_0x340ffb['type'])return;const {data:_0x5bf302}=_0x340ffb;return _0x5bf302&&'uploadcareImageId'==_0x5bf302['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xa4b53f{['afterInit'](){const _0x2e62d8=this['editor'],_0x5dd8ef=_0x2e62d8['plugins']['get']('TrackChangesEditing');_0x2e62d8['plugins']['has']('UndoEditing')&&(_0x5dd8ef['enableCommand']('undo'),_0x5dd8ef['enableCommand']('redo'));}}class Et extends _0xa4b53f{static get['requires'](){return[Ct];}['afterInit'](){const _0x233f5a=this['editor'];if(!_0x233f5a['plugins']['has']('TableCaptionEditing'))return;_0x233f5a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0xa4b53f{['tableProperties'];['tableCellProperties'];constructor(_0x46fad7){super(_0x46fad7),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 _0x369c59=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x10529f of this['tableProperties'])_0x369c59['enableCommand'](_0x10529f,(_0x396f3a,_0x4f7eca)=>{const _0x42587a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x10529f,[_0x42587a],this['tableProperties'],'tableProperties',_0x396f3a,_0x4f7eca);});_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x369c59['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4d3bd0,_0x5a149a)=>this['handleDiscardAction'](this['tableProperties'],_0x4d3bd0,_0x5a149a)),_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x40e91f of this['tableCellProperties'])_0x369c59['enableCommand'](_0x40e91f,(_0x85837a,_0x25e844)=>{const _0x3cb1e2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x40e91f,_0x3cb1e2,this['tableCellProperties'],'tableCellProperties',_0x85837a,_0x25e844);});_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x369c59['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x16b399,_0x5a8394)=>this['handleDiscardAction'](this['tableCellProperties'],_0x16b399,_0x5a8394)),_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x369c59['descriptionFactory']['registerDescriptionCallback'](_0x283d44=>this['handleSuggestionDescription'](_0x283d44));}['_handlePropertyChange'](_0x20470c,_0x14c0aa,_0x1dc711,_0x514800,_0x4e6ec2,_0x38a617){const _0x513cc7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x38a617['batch'],()=>{for(const _0x5c173a of _0x14c0aa){if(this['_getSuggestion'](_0x5c173a,_0x514800))_0x4e6ec2(_0x38a617);else{const _0x496e86={};for(const _0x3dead2 of _0x1dc711){const _0x5f259f=_0x5c173a['getAttribute'](_0x3dead2);void 0x0!==_0x5f259f&&(_0x496e86[_0x3dead2]=_0x5f259f);}_0x4e6ec2(_0x38a617),_0x513cc7['markBlockFormat'](_0x5c173a,{'commandParams':[_0x496e86]},[],_0x514800);}}});}['handleDiscardAction'](_0x5c42c0,_0x5a71a8,_0x5b8386){const _0x4cf34c=_0x5a71a8[0x0]['start']['nodeAfter'],_0x97deb9=_0x5b8386['commandParams'][0x0];this['editor']['model']['change'](_0x1912fb=>{for(const _0x4d9706 of _0x5c42c0)void 0x0!==_0x97deb9[_0x4d9706]?_0x1912fb['setAttribute'](_0x4d9706,_0x97deb9[_0x4d9706],_0x4cf34c):_0x1912fb['removeAttribute'](_0x4d9706,_0x4cf34c);});}['handleSuggestionDescription'](_0xe195fd){if(_0xe195fd['data'])switch(_0xe195fd['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'](_0x55e756,_0x210101){const _0x397cac=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x22cc49 of _0x397cac['getSuggestions']({'skipNotAttached':!0x0})){const _0x124adb=_0x22cc49['getContainedElement']();if(_0x22cc49['subType']===_0x210101&&_0x124adb===_0x55e756)return _0x22cc49;}return null;}}const m='$elementName';class p extends _0xa4b53f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x110e12,_0x2f23c0,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5331ec){super(_0x5331ec),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x156d88,_0x175454,_0x436521,_0x1658e3)=>{this['_model']['change'](()=>{for(const _0x388fdc of[..._0x1658e3,..._0x436521])this['_model']['markers']['has'](_0x388fdc)&&_0x5331ec['editing']['reconvertMarker'](_0x388fdc);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5331ec['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(),_0x5331ec['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5331ec['config']['get']('trackChanges.trackFormatChanges'),_0x5331ec['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5331ec['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5331ec,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x10ccf5=this['editor'],_0x143609=(_0x134932,_0x2d80ec)=>{if('attribute'!=_0x134932)return'ck-suggestion-marker-'+_0x134932;const _0x222c77=_0x2d80ec['split']('|')[0x0];return this['_isBlockAttribute'](_0x222c77)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x10ccf5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x536656=>{const {id:_0x9268d8,authorId:_0x432fcf,type:_0x1e4ebc,subType:_0x2e61a9}=this['_splitMarkerName'](_0x536656['markerName']),_0x3a1420=['ck-suggestion-marker',_0x143609(_0x1e4ebc,_0x2e61a9)];let _0x285849=0xbb8;return this['activeMarkers']['includes'](_0x536656['markerName'])&&(_0x3a1420['push']('ck-suggestion-marker--active'),_0x285849=0xbc2),'deletion'==_0x1e4ebc&&(_0x285849+=0x5),{'classes':_0x3a1420,'attributes':{'data-suggestion':_0x9268d8,'data-author-id':_0x432fcf},'priority':_0x285849};}}),_0x10ccf5['conversion']['for']('dataDowncast')['add'](_0x387f48=>{_0x387f48['on']('addMarker:suggestion',(_0x543f0e,_0x437c33,_0x4df75b)=>{if(!_0x4df75b['options']['showSuggestionHighlights'])return;const _0x5d36d5=_0x437c33['item'];if(!_0x5d36d5)return;const _0x1191c5=_0x4df75b['mapper']['toViewElement'](_0x5d36d5);_0x10ccf5['model']['schema']['isObject'](_0x5d36d5)&&_0x1191c5&&!_0x1191c5['getCustomProperty']('widget')&&_0x1191c5['is']('containerElement')&&_0x517cc2(_0x1191c5,_0x4df75b['writer']);},{'priority':'high'});}),_0x10ccf5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5237e7,_0x4730c6)=>{if(!_0x4730c6['options']['showSuggestionHighlights'])return null;const {type:_0x2a3c03,subType:_0x1a6bc0}=this['_splitMarkerName'](_0x5237e7['markerName']);return{'classes':['ck-suggestion-marker',_0x143609(_0x2a3c03,_0x1a6bc0)],'priority':0xbb8};}});const _0x1f2087=({showActiveMarkers:_0x44ff0e=!0x0,isAttributeSuggestion:_0x7ddc4d=!0x1}={})=>(_0x1096d1,_0x449006,_0x3a3126)=>{if(!_0x449006['item'])return;const {id:_0x34f7e7,authorId:_0x4005d5}=this['_splitMarkerName'](_0x449006['markerName']);if(_0x7ddc4d){const _0xacc2cd=this['_suggestions']['get'](_0x34f7e7),_0x5e574d=this['_getAttributeKey'](_0xacc2cd);if(!this['_isBlockAttribute'](_0x5e574d))return;}if(_0x449006['item']['is']('selection'))return void _0x3a3126['consumable']['consume'](_0x449006['item'],_0x1096d1['name']);const _0x27a86f=_0x3a3126['mapper']['toViewElement'](_0x449006['item']);if(_0x449006['item']['is']('element')&&_0x10ccf5['model']['schema']['isBlock'](_0x449006['item'])&&!_0x27a86f['getCustomProperty']('addHighlight')){_0x3a3126['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x27a86f),_0x3a3126['writer']['setAttribute']('data-suggestion',_0x34f7e7,_0x27a86f),_0x3a3126['writer']['setAttribute']('data-author-id',_0x4005d5,_0x27a86f),_0x3a3126['mapper']['bindElementToMarker'](_0x27a86f,_0x449006['markerName']),_0x44ff0e&&(this['activeMarkers']['includes'](_0x449006['markerName'])?_0x3a3126['writer']['addClass']('ck-suggestion-marker--active',_0x27a86f):_0x3a3126['writer']['removeClass']('ck-suggestion-marker--active',_0x27a86f));for(const _0xadc527 of _0x10ccf5['model']['createRangeIn'](_0x449006['item'])['getItems']())_0x3a3126['consumable']['consume'](_0xadc527,_0x1096d1['name']);_0x3a3126['consumable']['consume'](_0x449006['item'],_0x1096d1['name']);}};_0x10ccf5['conversion']['for']('dataDowncast')['add'](_0x46b780=>{_0x46b780['on']('addMarker:suggestion:formatBlock',(_0xa50941,_0x2af5dc,_0x28bcbb)=>{_0x28bcbb['options']['showSuggestionHighlights']&&_0x1f2087({'showActiveMarkers':!0x1})(_0xa50941,_0x2af5dc,_0x28bcbb);},{'priority':'highest'});}),_0x10ccf5['conversion']['for']('dataDowncast')['add'](_0x464344=>{_0x464344['on']('addMarker:suggestion:attribute',(_0x544db0,_0x1b888d,_0x15203f)=>{_0x15203f['options']['showSuggestionHighlights']&&_0x1f2087({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x544db0,_0x1b888d,_0x15203f);},{'priority':'highest'});}),_0x10ccf5['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5013e5,_0x4e0366)=>_0x4e0366['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5013e5['substr'](0xb)}}),_0x10ccf5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x394ea,{writer:_0x27e8b2})=>{let _0x3e6e82='suggestion:'+_0x394ea['getAttribute']('suggestion-type')+':'+_0x394ea['getAttribute']('id');return _0x394ea['getAttribute']('marker-count')&&(_0x3e6e82+=':'+_0x394ea['getAttribute']('marker-count')),_0x27e8b2['createElement']('$marker',{'data-name':_0x3e6e82});}}),_0x10ccf5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x10ccf5['conversion']['for']('editingDowncast')['add'](_0x134093=>{_0x134093['on']('addMarker:suggestion:formatBlock',_0x1f2087(),{'priority':'high'});}),_0x10ccf5['conversion']['for']('editingDowncast')['add'](_0x36a670=>{_0x36a670['on']('addMarker:suggestion:attribute',_0x1f2087({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x10ccf5['conversion']['for']('editingDowncast')['add'](_0x1d51fe=>{_0x1d51fe['on']('removeMarker:suggestion:formatBlock',(_0x312739,_0x541b7a,_0x3e8713)=>{const _0x50ecb5=_0x3e8713['mapper']['markerNameToElements'](_0x541b7a['markerName']);if(_0x50ecb5){for(const _0x5bdcf9 of _0x50ecb5)_0x5bdcf9['getCustomProperty']('addHighlight')||(_0x3e8713['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5bdcf9),_0x3e8713['writer']['removeAttribute']('data-suggestion',_0x5bdcf9),_0x3e8713['writer']['removeAttribute']('data-author-id',_0x5bdcf9),_0x3e8713['mapper']['unbindElementFromMarkerName'](_0x5bdcf9,_0x541b7a['markerName']));}},{'priority':'high'});}),_0x10ccf5['conversion']['for']('editingDowncast')['add'](_0x19da82=>{_0x19da82['on']('removeMarker:suggestion:attribute',(_0x5c237b,_0xc5daba,_0xe3df77)=>{const _0x4c0f3e=_0xe3df77['mapper']['markerNameToElements'](_0xc5daba['markerName']);if(!_0x4c0f3e)return;const {id:_0x308a32}=this['_splitMarkerName'](_0xc5daba['markerName']),_0x193bb6=this['_suggestions']['get'](_0x308a32),_0x1f6cf3=this['_getAttributeKey'](_0x193bb6);if(this['_isBlockAttribute'](_0x1f6cf3)){for(const _0x2a9b04 of _0x4c0f3e)_0x2a9b04['getCustomProperty']('addHighlight')||(_0xe3df77['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2a9b04),_0xe3df77['writer']['removeAttribute']('data-suggestion',_0x2a9b04),_0xe3df77['writer']['removeAttribute']('data-author-id',_0x2a9b04),_0xe3df77['mapper']['unbindElementFromMarkerName'](_0x2a9b04,_0xc5daba['markerName']));}},{'priority':'high'});}),_0x10ccf5['model']['document']['registerPostFixer'](_0x6abef6=>{let _0x3ac9bc=!0x1;const _0x1f83f9=Array['from'](_0x10ccf5['model']['document']['differ']['getChangedMarkers']()),_0x3c894b=new Set();for(const {name:_0x168928,data:_0x391db1}of _0x1f83f9){const {group:_0x5131b0,type:_0x4e848f,subType:_0x2a90b2,id:_0x152ba0}=this['_splitMarkerName'](_0x168928);if('suggestion'!==_0x5131b0)continue;const _0x385824=this['_suggestions']['get'](_0x152ba0);if(null!=_0x391db1['newRange']){'formatInline'==_0x4e848f&&(_0x3ac9bc=_0x3ac9bc||Lt(_0x391db1['newRange'],_0x168928,_0x6abef6,_0x10ccf5['model']['schema']));const _0x19a899='attribute'==_0x4e848f&&this['_isBlockAttribute'](_0x2a90b2['split']('|')[0x0]);if(_0x391db1['newRange']['isCollapsed']||'$graveyard'==_0x391db1['newRange']['root']['rootName']||'formatBlock'==_0x4e848f&&!Ht(_0x391db1['newRange'])||_0x19a899&&!Ht(_0x391db1['newRange'])||'deletion'==_0x4e848f&&!(!Ft(_0x29a202=_0x391db1['newRange'])&&!function(_0x4252a7){return _0x4252a7['start']['parent']==_0x4252a7['end']['nodeBefore']&&_0x4252a7['start']['isAtEnd'];}(_0x29a202)))_0x6abef6['removeMarker'](_0x168928),_0x3ac9bc=!0x0;else{if(!_0x385824||!_0x385824['isInContent'])continue;if(_0x391db1['newRange']&&_0x391db1['oldRange']&&_0x391db1['newRange']['isEqual'](_0x391db1['oldRange']))continue;_0x3c894b['add'](_0x385824);}}}var _0x29a202;return _0x3c894b['size']>0x0&&(_0x3ac9bc=!!this['_joinWithAdjacentSuggestions'](_0x3c894b)||_0x3ac9bc),_0x3ac9bc;}),_0x10ccf5['model']['document']['registerPostFixer'](_0x1111f4=>{let _0x145a61=!0x1;for(const _0x3e26f6 of _0x10ccf5['model']['document']['differ']['getChanges']())if('insert'==_0x3e26f6['type'])for(const _0x3b16e7 of this['_suggestions']['values']()){if(_0x3b16e7['isMultiRange']||!_0x3b16e7['isInContent'])continue;const _0x5200db='formatBlock'==_0x3b16e7['type'],_0x9bfbde=this['_getAttributeKey'](_0x3b16e7),_0x55c924=_0x9bfbde&&this['_isBlockAttribute'](_0x9bfbde);if(!_0x5200db&&!_0x55c924)continue;const _0x4d4cbb=_0x3b16e7['getFirstRange']();if(_0x4d4cbb['start']['parent']!=_0x4d4cbb['end']['parent']&&!_0x4d4cbb['end']['isAtEnd']){const _0x13c88c=_0x10ccf5['model']['createPositionAt'](_0x4d4cbb['start']['nodeAfter'],'end'),_0xee098f=_0x10ccf5['model']['createRange'](_0x4d4cbb['start'],_0x13c88c);_0x1111f4['updateMarker'](_0x3b16e7['getFirstMarker'](),{'range':_0xee098f}),_0x145a61=!0x0;}}return _0x145a61;}),_0x10ccf5['model']['document']['registerPostFixer'](_0x58c0a9=>this['_processAttributeChanges'](_0x58c0a9)),_0x10ccf5['model']['document']['registerPostFixer'](_0x603150=>!_0x603150['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x603150)),_0x10ccf5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x10ccf5['model']['document']['on']('change:data',(_0x1229de,_0x5b128e)=>{if(!_0x5b128e['isLocal']||_0x5b128e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x299fe5=_0x10ccf5['model']['document']['differ']['getChanges']();if(0x0==_0x299fe5['length'])return;const _0x23e01d=[],_0x2a5586=_0x299fe5['filter'](_0x369cd6=>'attribute'==_0x369cd6['type']),_0x2bc7ed=_0x299fe5['filter'](_0x34fa43=>'insert'==_0x34fa43['type']&&'$text'!=_0x34fa43['name']);for(const _0x11f2c8 of _0x2a5586)this['_isRegisteredAttribute'](_0x11f2c8['attributeKey'])&&_0x23e01d['push']({'key':_0x11f2c8['attributeKey'],'newValue':_0x11f2c8['attributeNewValue'],'oldValue':_0x11f2c8['attributeOldValue'],'range':qt(_0x11f2c8['range'],_0x10ccf5['model'])});for(const _0x4fc7ae of _0x2bc7ed){if('rename'!=_0x4fc7ae['action']&&'refresh'!=_0x4fc7ae['action'])continue;const _0x92c3bf=zt(_0x4fc7ae['position']['nodeAfter'],_0x10ccf5['model']),_0x4e4622=_0x4fc7ae['before'];'rename'==_0x4fc7ae['action']&&_0x23e01d['push']({'key':m,'newValue':_0x4fc7ae['name'],'oldValue':_0x4e4622['name'],'range':_0x92c3bf});for(const [_0x12f7a2,_0x2d3543]of _0x4e4622['attributes']){if(!this['_isRegisteredAttribute'](_0x12f7a2))continue;const _0x514d25=_0x4fc7ae['attributes']['get'](_0x12f7a2);_0x2d3543!==_0x514d25&&_0x23e01d['push']({'key':_0x12f7a2,'newValue':_0x514d25,'oldValue':_0x2d3543,'range':_0x92c3bf});}for(const [_0x2cb4f9,_0x357c64]of _0x4fc7ae['attributes'])this['_isRegisteredAttribute'](_0x2cb4f9)&&(_0x4e4622['attributes']['has'](_0x2cb4f9)||_0x23e01d['push']({'key':_0x2cb4f9,'newValue':_0x357c64,'oldValue':null,'range':_0x92c3bf}));}0x0!=_0x23e01d['length']&&_0x10ccf5['model']['enqueueChange'](_0x5b128e,_0x465305=>{const _0x64c625=_0xf688c7();for(const {range:_0x95a33a,key:_0x15045a,oldValue:_0x484331,newValue:_0x32e2a2}of _0x23e01d)this['markAttributeChange'](_0x95a33a,_0x15045a,_0x484331,_0x32e2a2,{'groupId':_0x64c625});this['_reduceExistingSuggestions'](_0x465305,_0x23e01d);});},{'priority':'lowest'}),_0x10ccf5['model']['markers']['on']('update:suggestion',(_0x247331,_0x1e407e,_0x1fbca4)=>{if(null==_0x1fbca4){const {id:_0x5ed0c8}=this['_splitMarkerName'](_0x1e407e['name']),_0x46d171=this['_suggestions']['get'](_0x5ed0c8);_0x46d171&&_0x46d171['addMarkerName'](_0x1e407e['name']);}}),_0x10ccf5['model']['document']['on']('change:data',()=>{const _0x21b468=Array['from'](_0x10ccf5['model']['document']['differ']['getChangedMarkers']())['filter'](_0x23b97e=>'suggestion'===this['_splitMarkerName'](_0x23b97e['name'])['group']);if(0x0===_0x21b468['length'])return;_0x21b468['sort']((_0x76e0e3,_0x191c99)=>{const _0x1a6798=_0x76e0e3['data']['oldRange'],_0x170303=_0x191c99['data']['oldRange'];return null===_0x1a6798&&null===_0x170303?0x0:null===_0x1a6798&&null!==_0x170303?-0x1:null!==_0x1a6798&&null===_0x170303?0x1:_0x1a6798['start']['isBefore'](_0x170303['start'])?-0x1:0x1;});const _0x4713c3=new Set(),_0x37f746=new Set();for(const {name:_0x18676e,data:_0x7cf58}of _0x21b468){const {id:_0x2a7d90}=this['_splitMarkerName'](_0x18676e);if(null===_0x7cf58['oldRange']){const _0x2db97e=this['_handleNewSuggestionMarker'](_0x18676e);_0x37f746['add'](_0x2db97e);}else{const _0x3e5026=this['_suggestions']['get'](_0x2a7d90);null!==_0x7cf58['newRange']||_0x3e5026['isInContent']?(_0x4713c3['add'](_0x3e5026['head']),_0x37f746['add'](_0x3e5026)):this['_removeSuggestion'](_0x3e5026);}}_0x37f746['size']>0x0&&this['_refreshSuggestionsChain'](_0x37f746);for(const _0x409f83 of _0x4713c3)this['fire']('suggestionChanged',_0x409f83);}),_0x10ccf5['model']['on']('applyOperation',(_0x466bb1,_0x1c978a)=>{const _0x53ccf6=_0x1c978a[0x0];if(!this['_suggestions']['size'])return;if(!_0x53ccf6['isDocumentOperation'])return;if(_0x53ccf6['batch']['isUndo']||!_0x53ccf6['batch']['isLocal'])return;let _0x404db9,_0x285135;switch(_0x53ccf6['type']){case'insert':_0x404db9=_0x10ccf5['model']['createPositionAt'](_0x53ccf6['position']),_0x285135=_0x404db9['getShiftedBy'](_0x53ccf6['howMany']);break;case'split':_0x404db9=_0x10ccf5['model']['createPositionAt'](_0x53ccf6['splitPosition']),_0x285135=_0x10ccf5['model']['createPositionAt'](_0x53ccf6['moveTargetPosition']);break;case'move':_0x404db9=_0x10ccf5['model']['createPositionAt'](_0x53ccf6['targetPosition']),_0x285135=_0x404db9['getShiftedBy'](_0x53ccf6['howMany']);break;default:return;}const _0x17e298=_0x10ccf5['model']['createRange'](_0x404db9,_0x285135);_0x10ccf5['model']['change'](()=>{for(const {suggestion:_0x1e8b0d,meta:_0x5807cf}of this['_findSuggestions'](_0x17e298)){if(_0x1e8b0d['isMultiRange'])continue;if('formatInline'==_0x1e8b0d['type'])continue;const _0x3efc53=this['_getAttributeKey'](_0x1e8b0d);if(_0x3efc53&&this['_isBlockAttribute'](_0x3efc53)&&'split'!=_0x53ccf6['type'])continue;const _0x365fce=_0x1e8b0d['data']&&_0x1e8b0d['data']['multipleBlocks'];('formatBlock'!=_0x1e8b0d['type']||'split'==_0x53ccf6['type']&&!_0x365fce)&&(_0x5807cf['containsRangeInObject']||'insertion'==_0x1e8b0d['type']&&_0x5807cf['isOwn']||_0x1e8b0d['getFirstRange']()['containsRange'](_0x17e298)&&this['_breakSuggestionMarker'](_0x1e8b0d,_0x404db9,_0x285135));}});},{'priority':'lowest'}),_0x10ccf5['model']['on']('deleteContent',(_0x10a2e0,_0x28eee0)=>{const _0x4181ff=_0x28eee0[0x0],_0x2f98b3=_0x28eee0[0x1];if(_0x2f98b3&&_0x2f98b3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4181ff['isCollapsed'])return;const _0x215846=_0x10ccf5['model']['schema'],{start:_0x42fd6f,end:_0x60e220}=_0x4181ff['getFirstRange'](),_0x385f20=_0x42fd6f['nodeAfter']&&_0x215846['isLimit'](_0x42fd6f['nodeAfter'])?null:_0x215846['getNearestSelectionRange'](_0x42fd6f,'forward'),_0x247c40=_0x60e220['nodeBefore']&&_0x215846['isLimit'](_0x60e220['nodeBefore'])?null:_0x215846['getNearestSelectionRange'](_0x60e220,'backward'),_0x25f6b5=_0x10ccf5['model']['createRange'](_0x385f20?_0x385f20['start']:_0x42fd6f,_0x247c40?_0x247c40['end']:_0x60e220);_0x10ccf5['model']['change'](_0x4dac91=>{this['markDeletion'](_0x25f6b5);const _0x2552b8=_0x10ccf5['model']['schema']['getNearestSelectionRange'](_0x25f6b5['start']);_0x4181ff['is']('documentSelection')?_0x4dac91['setSelection'](_0x2552b8):_0x4181ff['setTo'](_0x2552b8);}),_0x10a2e0['stop']();},{'priority':_0x2435d0['normal']+0xa}),_0x10ccf5['model']['on']('insertContent',(_0x16f061,_0x5ed21d)=>{const _0x112303=_0x5ed21d[_0x5ed21d['length']-0x1];_0x112303&&_0x112303['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x10ccf5['model']['change'](()=>{let _0x5653fd=_0x10ccf5['model']['insertContent'](_0x5ed21d[0x0],_0x5ed21d[0x1],_0x5ed21d[0x2],{'forceDefaultExecution':!0x0});if(!_0x5653fd)return;_0x16f061['return']=_0x5653fd['clone']();const _0x2fd6f6=_0x5653fd['end']['nodeBefore'],_0x3f4656=_0x10ccf5['model']['schema'];_0x2fd6f6&&_0x3f4656['isBlock'](_0x2fd6f6)&&!_0x3f4656['isObject'](_0x2fd6f6)&&(_0x5653fd=_0x10ccf5['model']['createRange'](_0x5653fd['start'],_0x10ccf5['model']['createPositionAt'](_0x2fd6f6,'end'))),this['markInsertion'](_0x5653fd);}),_0x16f061['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x332f0=new O(_0x10ccf5,this['_suggestions']);_0x10ccf5['commands']['add']('acceptSuggestion',_0x332f0),this['enableCommand']('acceptSuggestion');const _0x357240=new R(_0x10ccf5,this['_suggestions']);_0x10ccf5['commands']['add']('discardSuggestion',_0x357240),this['enableCommand']('discardSuggestion'),_0x10ccf5['commands']['add']('acceptAllSuggestions',new x(_0x10ccf5,_0x332f0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x10ccf5['commands']['add']('discardAllSuggestions',new x(_0x10ccf5,_0x357240,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x10ccf5['commands']['add']('acceptSelectedSuggestions',new E(_0x10ccf5,_0x332f0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x10ccf5['commands']['add']('discardSelectedSuggestions',new E(_0x10ccf5,_0x357240,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4cf2c9=_0x10ccf5['plugins']['get']('CommentsRepository');this['listenTo'](_0x4cf2c9,'addComment',(_0x37006e,{threadId:_0x3876cd})=>{const _0x57ee0c=this['_suggestions']['get'](_0x3876cd);_0x57ee0c&&_0x57ee0c['commentThread']&&0x1===_0x57ee0c['commentThread']['length']&&this['_updateSuggestionData'](_0x3876cd,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4cf2c9,'removeComment',(_0x56e92d,{threadId:_0x5d8223})=>{const _0x2c8202=this['_suggestions']['get'](_0x5d8223);_0x2c8202&&_0x2c8202['commentThread']&&!_0x2c8202['commentThread']['length']&&this['_updateSuggestionData'](_0x5d8223,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x31d0dd){const _0x78d28=_0x52e74f([0x64,0x66,0x38,0x65,0x70,0x57,0x4b,0x45,0x5a,0x4c,0x46,0x49,0x31,0x32,0x67,0x41,0x58,0x6a,0x55,0x73,0x76,0x6f,0x35,0x47,0x36,0x77,0x4e,0x4d,0x79,0x62,0x61,0x44,0x48,0x68,0x56,0x71,0x42,0x75,0x34,0x37,0x72,0x33,0x6d,0x51,0x59,0x63,0x43,0x53,0x39,0x6e,0x6c,0x52,0x4a,0x4f,0x78,0x50,0x74,0x54,0x6b,0x30,0x7a,0x69]),_0x6ca1d4=0x24e4c314,_0x555fb6=0x24e3a31c^_0x6ca1d4,_0x48c58e=window[_0x52e74f([0x44,0x61,0x74,0x65])][_0x52e74f([0x6e,0x6f,0x77])](),_0x162710=_0x31d0dd[_0x52e74f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3878b1=new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e904a=>{_0x162710[_0x52e74f([0x6f,0x6e,0x63,0x65])](_0x52e74f([0x72,0x65,0x61,0x64,0x79]),_0x4e904a);}),_0x5c619a={[_0x52e74f([0x6b,0x74,0x79])]:_0x52e74f([0x45,0x43]),[_0x52e74f([0x75,0x73,0x65])]:_0x52e74f([0x73,0x69,0x67]),[_0x52e74f([0x63,0x72,0x76])]:_0x52e74f([0x50,0x2d,0x32,0x35,0x36]),[_0x52e74f([0x78])]:_0x52e74f([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]),[_0x52e74f([0x79])]:_0x52e74f([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]),[_0x52e74f([0x61,0x6c,0x67])]:_0x52e74f([0x45,0x53,0x32,0x35,0x36])},_0x3e1913=_0x162710[_0x52e74f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52e74f([0x67,0x65,0x74])](_0x52e74f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x44fa4d(){let _0x154947,_0x41f77b=null,_0x4dbc9f=null;try{if(_0x3e1913==_0x52e74f([0x47,0x50,0x4c]))return _0x52e74f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x154947=_0xc7cf86(),!_0x154947)return _0x52e74f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x154947[_0x52e74f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4dbc9f=_0x496880(_0x154947[_0x52e74f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x154947[_0x52e74f([0x6a,0x74,0x69])])),await _0x51704c()?_0x4b670e()?_0xf805ab()?_0x52e74f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12a6f7()?(_0x154947[_0x52e74f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52e74f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41f77b=_0x3a0b76(_0x52e74f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x154947[_0x52e74f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52e74f([0x74,0x72,0x69,0x61,0x6c])&&(_0x41f77b=_0x3a0b76(_0x52e74f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f66f1()):_0x52e74f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52e74f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52e74f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2ca499){return _0x52e74f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xf805ab(){const _0x41288d=[_0x52e74f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52e74f([0x74,0x72,0x69,0x61,0x6c])][_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x154947[_0x52e74f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x48c58e/0x3e8:0xe10*_0x555fb6;return _0x154947[_0x52e74f([0x65,0x78,0x70])]<_0x41288d;}function _0x4b670e(){const _0x32687d=_0x154947[_0x52e74f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x32687d)return!0x1;if(_0x32687d[_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52e74f([0x2a])))return!0x0;if(_0x32687d[_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52e74f([0x54,0x43])))return!0x0;if(_0x32687d[_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52e74f([0x52,0x54,0x43]))){if(_0x32c884())return!0x0;if(_0x21b090()||_0x3f4b04())return!0x0;}return!0x1;}function _0x12a6f7(){const _0x59345d=_0x154947[_0x52e74f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59345d||0x0==_0x59345d[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4db4fc}=new URL(window[_0x52e74f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59345d[_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db4fc))return!0x0;const _0xe5164b=_0x4db4fc[_0x52e74f([0x73,0x70,0x6c,0x69,0x74])](_0x52e74f([0x2e]));return _0x59345d[_0x52e74f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39fcc3=>_0x39fcc3[_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52e74f([0x2a])))[_0x52e74f([0x6d,0x61,0x70])](_0x2ddf86=>_0x2ddf86[_0x52e74f([0x73,0x70,0x6c,0x69,0x74])](_0x52e74f([0x2e])))[_0x52e74f([0x73,0x6f,0x6d,0x65])](_0x1b7a57=>_0xe5164b[_0x52e74f([0x65,0x76,0x65,0x72,0x79])]((_0x3b834e,_0x39f2d3)=>_0x1b7a57[_0x39f2d3]===_0x3b834e||_0x1b7a57[_0x39f2d3]===_0x52e74f([0x2a])));}function _0x2f66f1(){return _0x41f77b&&_0x4dbc9f?new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fdc1d,_0x2f44e4)=>{_0x41f77b[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x3fdc1d,_0x2f44e4),_0x4dbc9f[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x35f02d=>{_0x35f02d!=_0x52e74f([0x56,0x61,0x6c,0x69,0x64])&&_0x3fdc1d(_0x35f02d);},_0x2f44e4);}):_0x41f77b||_0x4dbc9f||_0x52e74f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x496880(_0x332a22,_0x3f7d0a){return new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f39f8=>{if(_0x2cd78f())return _0x3f39f8(_0x52e74f([0x56,0x61,0x6c,0x69,0x64]));_0x594a3a(),_0x162710[_0x52e74f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52e74f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe4a051=!0x1;const _0x22869f=_0xf688c7();function _0x31a751(_0x58fe09){return!!_0x58fe09&&(typeof _0x58fe09===_0x52e74f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58fe09===_0x52e74f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58fe09[_0x52e74f([0x74,0x68,0x65,0x6e])]===_0x52e74f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58fe09[_0x52e74f([0x63,0x61,0x74,0x63,0x68])]===_0x52e74f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2424c3(_0x383812){_0x924b31(_0x383812)[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x250c66=>{if(!_0x250c66||_0x250c66[_0x52e74f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52e74f([0x6f,0x6b]))return _0x52e74f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f03c4(_0x2984fe(_0x22869f+_0x3f7d0a))!=_0x250c66[_0x52e74f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52e74f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52e74f([0x56,0x61,0x6c,0x69,0x64]);})[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x1e46d1=>(_0x9fca54(),_0x1e46d1),()=>{const _0xa7a33b=_0x29797e();return null==_0xa7a33b?(_0x9fca54(),_0x52e74f([0x56,0x61,0x6c,0x69,0x64])):_0x52e74f(_0x48c58e-_0xa7a33b>(0xe84714^_0x6ca1d4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x3f39f8)[_0x52e74f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3f39f8(_0x52e74f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x426eae=0x24d22d94^_0x6ca1d4;function _0x9fca54(){const _0xc9a13e=_0x52e74f([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f03c4(_0x2984fe(_0x332a22)),_0x329ae0=_0xdf0145(_0x2f03c4(window[_0x52e74f([0x4d,0x61,0x74,0x68])][_0x52e74f([0x63,0x65,0x69,0x6c])](_0x48c58e/_0x426eae)));window[_0x52e74f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52e74f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc9a13e,_0x329ae0);}function _0x29797e(){const _0x8fa865=_0x52e74f([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f03c4(_0x2984fe(_0x332a22)),_0x3b8caa=window[_0x52e74f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52e74f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8fa865);return _0x3b8caa?window[_0x52e74f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdf0145(_0x3b8caa),0x10)*_0x426eae:null;}function _0x924b31(_0x5a80a7){return new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x565bd7,_0x8e3833)=>{_0x5a80a7[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x565bd7,_0x8e3833),window[_0x52e74f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8e3833,0x24e517d4^_0x6ca1d4);});}}_0x162710[_0x52e74f([0x6f,0x6e])](_0x52e74f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x22c60c,_0x23c41a)=>{if(_0x23c41a[0x0]!=_0x332a22)return _0x3f39f8(_0x52e74f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23c41a[0x1]={..._0x23c41a[0x1],[_0x52e74f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x22869f};},{[_0x52e74f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52e74f([0x68,0x69,0x67,0x68])}),_0x162710[_0x52e74f([0x6f,0x6e])](_0x52e74f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19926f=>{_0x31a751(_0x19926f[_0x52e74f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe4a051=!0x0,_0x2424c3(_0x19926f[_0x52e74f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52e74f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52e74f([0x6c,0x6f,0x77])}),_0x3878b1[_0x52e74f([0x74,0x68,0x65,0x6e])](()=>{_0xe4a051||_0x3f39f8(_0x52e74f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2cd78f(){return _0x162710[_0x52e74f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52e74f([0x76,0x69,0x65,0x77])][_0x52e74f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52e74f([0x61,0x75,0x74,0x6f]);}function _0x594a3a(){_0x162710[_0x52e74f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52e74f([0x76,0x69,0x65,0x77])][_0x52e74f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52e74f([0x61,0x75,0x74,0x6f]);}}function _0x3a0b76(_0x165968){const _0x5b6705=[new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b2b76=>setTimeout(_0x3b2b76,0x24edfdd8^_0x6ca1d4)),_0x3878b1[_0x52e74f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33d0f4=>{let _0x1f4de7=0x0;_0x162710[_0x52e74f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52e74f([0x6f,0x6e])](_0x52e74f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c63a6,_0x276ab4)=>{_0x276ab4[0x0][_0x52e74f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f4de7++,_0x1f4de7==(0x24e4c2ec^_0x6ca1d4)&&(_0x33d0f4(),_0x1c63a6[_0x52e74f([0x6f,0x66,0x66])]());});}))];return window[_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52e74f([0x72,0x61,0x63,0x65])](_0x5b6705)[_0x52e74f([0x74,0x68,0x65,0x6e])](()=>_0x165968);}async function _0x4d08ef(){await _0x3878b1,_0x162710[_0x52e74f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52e74f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b0446,_0x162710[_0x52e74f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52e74f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b0446,_0x162710[_0x52e74f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52e74f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x32c884(){return _0x1900fb(_0x52e74f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xf97f92(_0x52e74f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x52e74f([0x73,0x74,0x61,0x74,0x65])]==_0x52e74f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x21b090(){return _0x1900fb(_0x52e74f([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 _0x3f4b04(){return _0x1900fb(_0x52e74f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2c72a8(_0x21529c){const _0x3413f6=_0x12172c();_0x162710[_0x3413f6]=_0x52e74f([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x21529c,_0x21529c!=_0x52e74f([0x56,0x61,0x6c,0x69,0x64])&&_0x4d08ef();}function _0x12172c(){const _0x58ced5=window[_0x52e74f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52e74f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52e74f([0x6e,0x6f,0x77])]())[_0x52e74f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52e74f([0x2e]),'');let _0x11ef18=_0x52e74f([0x64]);for(let _0x1a2114=0x0;_0x1a2114<_0x58ced5[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a2114+=0x2){let _0x438f5b=window[_0x52e74f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58ced5[_0x52e74f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a2114,_0x1a2114+0x2));_0x438f5b>=_0x78d28[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x438f5b-=_0x78d28[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11ef18+=_0x78d28[_0x438f5b];}return _0x11ef18;}function _0xc7cf86(){const _0x10551c=_0x3e1913[_0x52e74f([0x73,0x70,0x6c,0x69,0x74])](_0x52e74f([0x2e]));if(0x3!=_0x10551c[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5bf26f(_0x10551c[0x1]);function _0x5bf26f(_0x1ebd3d){const _0x3660a1=_0x2d1adc(_0x1ebd3d);return _0x3660a1&&_0x4b6125()?_0x3660a1:null;function _0x4b6125(){const _0x52cca8=_0x3660a1[_0x52e74f([0x6a,0x74,0x69])],_0x4f8c28=window[_0x52e74f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52cca8[_0x52e74f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52cca8[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf26cb2={..._0x3660a1,[_0x52e74f([0x6a,0x74,0x69])]:_0x52cca8[_0x52e74f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x52cca8[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf26cb2[_0x52e74f([0x76,0x63])],_0x2984fe(_0xf26cb2)==_0x4f8c28;}}}async function _0x51704c(){let _0xd68ca8=!0x0;try{const _0x201a63=_0x3e1913[_0x52e74f([0x73,0x70,0x6c,0x69,0x74])](_0x52e74f([0x2e])),[_0x176b93,_0x3957d7,_0x38f696]=_0x201a63;return _0x41ee84(_0x176b93),await _0x4dbc0e(_0x176b93,_0x3957d7,_0x38f696),_0xd68ca8;}catch(_0x48c235){return!0x1;}function _0x41ee84(_0x8ddea4){const _0x5109d4=_0x2d1adc(_0x8ddea4);_0x5109d4&&_0x5109d4[_0x52e74f([0x61,0x6c,0x67])]==_0x52e74f([0x45,0x53,0x32,0x35,0x36])||(_0xd68ca8=!0x1);}async function _0x4dbc0e(_0x5db341,_0x4d8170,_0x46a176){const _0x3f253c=window[_0x52e74f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52e74f([0x66,0x72,0x6f,0x6d])](_0x3fa5c7(_0x46a176),_0x39015d=>_0x39015d[_0x52e74f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28d8a1=new window[(_0x52e74f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52e74f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5db341+_0x52e74f([0x2e])+_0x4d8170),_0x373cab=window[_0x52e74f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52e74f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x373cab)return;const _0x24afcd=await _0x373cab[_0x52e74f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52e74f([0x6a,0x77,0x6b]),_0x5c619a,{[_0x52e74f([0x6e,0x61,0x6d,0x65])]:_0x52e74f([0x45,0x43,0x44,0x53,0x41]),[_0x52e74f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52e74f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52e74f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x373cab[_0x52e74f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52e74f([0x6e,0x61,0x6d,0x65])]:_0x52e74f([0x45,0x43,0x44,0x53,0x41]),[_0x52e74f([0x68,0x61,0x73,0x68])]:{[_0x52e74f([0x6e,0x61,0x6d,0x65])]:_0x52e74f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24afcd,_0x3f253c,_0x28d8a1)||(_0xd68ca8=!0x1);}}function _0x2d1adc(_0x117dbb){return _0x117dbb[_0x52e74f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52e74f([0x65,0x79]))?JSON[_0x52e74f([0x70,0x61,0x72,0x73,0x65])](_0x3fa5c7(_0x117dbb)):null;}function _0x3fa5c7(_0x3a8943){return window[_0x52e74f([0x61,0x74,0x6f,0x62])](_0x3a8943[_0x52e74f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52e74f([0x2b]))[_0x52e74f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52e74f([0x2f])));}function _0x2984fe(_0x25f894){let _0x3f8e49=0x1505;function _0x49fb3d(_0x2c1090){for(let _0x4c9433=0x0;_0x4c9433<_0x2c1090[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c9433++){const _0x2630e6=_0x2c1090[_0x52e74f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c9433);_0x3f8e49=(_0x3f8e49<<0x5)+_0x3f8e49+_0x2630e6,_0x3f8e49&=_0x3f8e49;}}function _0x2fe6fa(_0xb2c0a9){Array[_0x52e74f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb2c0a9)?_0xb2c0a9[_0x52e74f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2fe6fa):_0xb2c0a9&&typeof _0xb2c0a9==_0x52e74f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52e74f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb2c0a9)[_0x52e74f([0x73,0x6f,0x72,0x74])]()[_0x52e74f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x436252,_0x410053])=>{_0x49fb3d(_0x436252),_0x2fe6fa(_0x410053);}):_0x49fb3d(window[_0x52e74f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb2c0a9));}return _0x2fe6fa(_0x25f894),_0x3f8e49>>>0x0;}function _0x2f03c4(_0x27dc9f){return _0x27dc9f[_0x52e74f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52e74f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52e74f([0x30]));}function _0xdf0145(_0x36a1dc){return _0x36a1dc[_0x52e74f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52e74f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52e74f([0x6a,0x6f,0x69,0x6e])]('');}function _0x1900fb(_0x346aa4){return _0x162710[_0x52e74f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x52e74f([0x68,0x61,0x73])](_0x346aa4);}function _0xf97f92(_0x42de76){return _0x162710[_0x52e74f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x52e74f([0x67,0x65,0x74])](_0x42de76);}function _0x4b0446(){}function _0x52e74f(_0x4a0a79){return _0x4a0a79['map'](_0x42440c=>String['fromCharCode'](_0x42440c))['join']('');}_0x2c72a8(await _0x44fa4d());}(this);}set['adapter'](_0x194704){if(this['_adapter'])throw new _0x11aaec('track-changes-adapter-already-set',this);this['_adapter']=_0x194704;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x20a535=!0x1,toJSON:_0x5202cf=!0x1}={}){const _0x540163=[];for(const _0x1ab1c6 of this['_suggestions']['values']())_0x20a535&&!_0x1ab1c6['isInContent']||_0x540163['push'](_0x1ab1c6);return _0x5202cf?_0x540163['map'](_0x37068a=>_0x37068a['toJSON']()):_0x540163;}['getSuggestion'](_0x3e43c8){const _0x4a3620=this['_suggestions']['get'](_0x3e43c8);if(!_0x4a3620)throw new _0x11aaec('track-changes-suggestion-not-found',this);return _0x4a3620;}['hasSuggestion'](_0x274304){return this['_suggestions']['has'](_0x274304);}['addSuggestionData'](_0x117d05){const {authorId:_0x361d67,id:_0x28a196,attributes:_0x180066}=_0x117d05,[_0x1a6364,_0x219797]=_0x117d05['type']['split'](':'),_0x43f5bb=this['_suggestions']['get'](_0x28a196)||this['_createSuggestion'](_0x1a6364,_0x219797,_0x28a196,_0x361d67,_0x180066);if(this['_addThreadToSuggestion'](_0x43f5bb),this['_checkSuggestionCorrectness'](_0x43f5bb,_0x1a6364,_0x219797||null,_0x361d67),_0x43f5bb['createdAt']=_0x117d05['createdAt'],_0x43f5bb['_isDataLoaded']=!0x0,_0x180066&&_0x180066['@external']){const _0xa278aa=_0x180066['@external'],_0x19a29c=this['_getExternalAuthor'](_0xa278aa['authorName']);_0x43f5bb['authoredAt']=_0xa278aa['createdAt'],_0x43f5bb['author']=_0x19a29c,_0x43f5bb['isExternal']=!0x0;}else _0x43f5bb['authoredAt']=_0x117d05['createdAt'];switch(_0x117d05['data']&&(_0x43f5bb['data']=_0x117d05['data']),_0x117d05['attributes']&&(_0x43f5bb['attributes']=_0x117d05['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x43f5bb['_saved']=!0x0),this['_suggestionState']['get'](_0x43f5bb)){case'notReady':this['_suggestionState']['set'](_0x43f5bb,'dataReady');break;case'markerReady':_0x43f5bb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x43f5bb])),this['_refreshSuggestionsChain'](new Set([_0x43f5bb])),this['_suggestionState']['set'](_0x43f5bb,'ready'),this['fire']('suggestionLoaded',_0x43f5bb)):this['_suggestionState']['set'](_0x43f5bb,'removed');}return _0x43f5bb;}['acceptSuggestion'](_0x3d8d30){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d6338 of _0x3d8d30['getAllAdjacentSuggestions']())_0x3d6338['accept']();});});}['discardSuggestion'](_0xf9a4ec){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x320c7b of _0xf9a4ec['getAllAdjacentSuggestions']())_0x320c7b['discard']();});});}['enableCommand'](_0x31309e,_0x24b7e8){const _0x482606=this['editor']['commands']['get'](_0x31309e);if(!_0x482606)throw new _0x11aaec('track-changes-command-not-found',this,{'commandName':_0x31309e});if(this['_enabledCommands']['has'](_0x482606))throw new _0x11aaec('track-changes-enable-command-twice',this,{'commandName':_0x31309e});this['_enabledCommands']['add'](_0x482606),_0x24b7e8&&_0x482606['on']('execute',(_0x1f4293,_0x5e5f39)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5e5f39['length']>0x0&&_0x5e5f39[_0x5e5f39['length']-0x1]&&_0x5e5f39[_0x5e5f39['length']-0x1]['forceDefaultExecution']?_0x5e5f39['pop']():(_0x1f4293['return']=_0x24b7e8((..._0x26de40)=>_0x482606['execute'](..._0x26de40,{'forceDefaultExecution':!0x0}),..._0x5e5f39),_0x1f4293['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x558f6f){let _0xab8319,_0xe9e03;const _0x68feb6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xab8319=_0x558f6f();}catch(_0x3fa4d4){_0xe9e03=_0x3fa4d4;}return _0x68feb6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xe9e03&&_0x11aaec['rethrowUnexpectedError'](_0xe9e03,this),_0xab8319;}['markInsertion'](_0x32340e,_0x162f7c=null,_0x354b63={}){if(_0x32340e['isCollapsed'])return null;const _0x108337=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1d3fd4,meta:_0x1da9f9}of this['_findSuggestions'](_0x32340e,'insertion'))if(_0x1da9f9['isOwn']){if(!_0x1da9f9['isNextTo']){if(_0x1da9f9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x1d3fd4,_0x354b63))continue;return _0x1d3fd4;}if(Qt(_0x1d3fd4,_0x354b63))return _0x1d3fd4;this['_breakSuggestionMarker'](_0x1d3fd4,_0x32340e['start'],_0x32340e['end']);break;}if(_0x162f7c==_0x1d3fd4['subType']&&Qt(_0x1d3fd4,_0x354b63)){const _0x8b6405=_0x1d3fd4['getFirstRange']();return _0x8b6405['start']['isEqual'](_0x32340e['end'])?this['_setSuggestionRange'](_0x1d3fd4,this['_model']['createRange'](_0x32340e['start'],_0x8b6405['end'])):this['_setSuggestionRange'](_0x1d3fd4,this['_model']['createRange'](_0x8b6405['start'],_0x32340e['end'])),_0x1d3fd4;}}const _0x21dfae=_0xf688c7(),_0x4ecc42=_0x108337['id'],_0x9b0d19=_0x162f7c?'insertion:'+_0x162f7c:'insertion',_0x13bcb8=this['_setSuggestionData']({'id':_0x21dfae,'type':_0x9b0d19,'createdAt':new Date(),'authorId':_0x4ecc42,'attributes':_0x354b63});return this['_addSuggestionMarker'](_0x9b0d19,_0x21dfae,_0x4ecc42,_0x32340e),_0x13bcb8;}['markMultiRangeInsertion'](_0x3536e3,_0x39d93b='multi',_0x3a48f9={}){const _0x3ca3d2=this['editor']['plugins']['get']('Users')['me'],_0x3946d3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x39d93b,'join');for(const _0x484f92 of this['getSuggestions']())if(_0x484f92['author']['id']==_0x3ca3d2['id']&&'insertion'==_0x484f92['type']&&_0x484f92['subType']==_0x39d93b&&Qt(_0x484f92,_0x3a48f9)&&(_0x3946d3(_0x484f92['getRanges'](),_0x3536e3)||_0x3946d3(_0x3536e3,_0x484f92['getRanges']()))){for(const _0x395f33 of _0x3536e3)_0x484f92['addRange'](_0x395f33);return _0x484f92;}for(const {suggestion:_0x171926,meta:_0x5b7c55}of this['_findSuggestions'](_0x3536e3,'insertion')){if(!_0x5b7c55['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5b7c55['containsRangeInObject'])continue;if(!Qt(_0x171926,_0x3a48f9))continue;let _0x2d826c=!0x0;for(const _0x464545 of _0x171926['getRanges']())for(const _0x296ec5 of _0x3536e3)if(!_0x464545['containsRange'](_0x296ec5)){_0x2d826c=!0x1;break;}if(_0x2d826c)return _0x171926;}const _0x52d730=_0xf688c7(),_0x4a3b24=_0x3ca3d2['id'],_0x273b60='insertion:'+_0x39d93b,_0x51ac2f=this['_setSuggestionData']({'id':_0x52d730,'type':_0x273b60,'createdAt':new Date(),'authorId':_0x4a3b24,'attributes':_0x3a48f9});for(const _0x1d2862 of _0x3536e3)this['_addSuggestionMarker'](_0x273b60,_0x52d730,_0x4a3b24,_0x1d2862,u['getMultiRangeId']());return _0x51ac2f;}['markInlineFormat'](_0x5279e1,_0x3d4542,_0x1422bb=null,_0x4331dc={}){if(_0x1422bb=_0x1422bb||Jt(_0x3d4542),_0x5279e1['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x462a89=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1422bb,'accept');return this['forceDefaultExecution'](()=>_0x462a89([_0x5279e1],_0x3d4542,_0x4331dc)),null;}const _0x5d09e0=this['editor']['plugins']['get']('Users')['me'],_0x472cba=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x15fe5d,meta:_0x1a4f5a}of this['_findSuggestions'](_0x5279e1,'insertion'))_0x1a4f5a['isOwn']&&!_0x1a4f5a['isInsideObject']&&_0x472cba['push'](..._0x15fe5d['getRanges']());}const _0x3433fb=function(_0x5560d2,_0x1ee124){const _0x580e2c=[];for(const _0x2d9e2a of _0x1ee124){const _0x8e7c3e=_0x5560d2['getIntersection'](_0x2d9e2a);_0x8e7c3e&&_0x580e2c['push'](_0x8e7c3e);}return _0x580e2c;}(_0x5279e1,_0x472cba),_0x45223e=function(_0x214ea8,_0xff129){const _0x5d6cae=[_0x214ea8];for(const _0x8c3a3e of _0xff129){let _0x385b14=0x0;for(;_0x385b14<_0x5d6cae['length'];){const _0x108eea=_0x5d6cae[_0x385b14]['getDifference'](_0x8c3a3e);_0x5d6cae['splice'](_0x385b14,0x1,..._0x108eea),_0x385b14+=_0x108eea['length'];}}return _0x5d6cae;}(_0x5279e1,_0x472cba);_0x3433fb['length']&&this['_model']['change'](()=>{for(const _0x286994 of _0x3433fb){const _0x2b2caf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1422bb,'accept');this['forceDefaultExecution'](()=>_0x2b2caf([_0x286994],_0x3d4542,_0x4331dc));}});for(const _0x12c454 of _0x45223e){let _0x312605=null,_0x2e0e88=_0x12c454['start'],_0x13b5d2=_0x12c454['end'];for(const {suggestion:_0x44475b,meta:_0x286734}of this['_findSuggestions'](_0x12c454,'formatInline')){if(!_0x286734['isOwn'])continue;if(_0x44475b['subType']!=_0x1422bb)continue;if(!Qt(_0x44475b,_0x4331dc))continue;const _0x362c76=_0x44475b['getFirstRange']();if(_0x362c76['containsRange'](_0x12c454,!0x0))return null;_0x2e0e88=_0x2e0e88['isBefore'](_0x362c76['start'])?_0x2e0e88:_0x362c76['start'],_0x13b5d2=_0x13b5d2['isAfter'](_0x362c76['end'])?_0x13b5d2:_0x362c76['end'],_0x312605?_0x362c76['start']['isBefore'](_0x312605['getFirstRange']()['start'])?(_0x312605['removeMarkers'](),_0x312605=_0x44475b):_0x44475b['removeMarkers']():_0x312605=_0x44475b;}const _0x1ca54c=this['_model']['createRange'](_0x2e0e88,_0x13b5d2);if(_0x312605)this['_setSuggestionRange'](_0x312605,_0x1ca54c);else{const _0x27de59=_0xf688c7(),_0x3e99eb=_0x5d09e0['id'];this['_setSuggestionData']({'id':_0x27de59,'type':'formatInline:'+_0x1422bb,'data':_0x3d4542,'createdAt':new Date(),'authorId':_0x3e99eb,'attributes':_0x4331dc}),this['_addSuggestionMarker']('formatInline:'+_0x1422bb,_0x27de59,_0x3e99eb,_0x1ca54c);}}return null;}['markBlockFormat'](_0x505bb5,_0x3498d9,_0x2ef67d=[],_0x2035b7=null,_0x231049={}){_0x3498d9['formatGroupId']||(_0x3498d9['formatGroupId']=_0x3498d9['commandName']),_0x3498d9['multipleBlocks']=_0x505bb5['is']('range'),_0x2035b7=_0x2035b7||Jt(_0x3498d9);const _0xdc5a3d=_0x2ef67d['map'](_0x5688c5=>zt(_0x5688c5,this['_model'])),_0x21354d=_0x505bb5['is']('range')?_0x505bb5:zt(_0x505bb5,this['_model']);if('never'===this['_trackFormatChanges']){const _0x14b610=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2035b7,'accept');return this['forceDefaultExecution'](()=>_0x14b610([_0x21354d],_0x3498d9,_0x231049)),null;}_0xdc5a3d['push'](_0x21354d);let _0x10010f=!0x0;for(const _0x264cae of _0xdc5a3d)if(!this['_rangeIsInLocalUserInsertion'](_0x264cae)){_0x10010f=!0x1;break;}if(_0x10010f&&'always'!==this['_trackFormatChanges']){const _0x5bedcb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2035b7,'accept');return this['forceDefaultExecution'](()=>_0x5bedcb([_0x21354d],_0x3498d9,_0x231049)),null;}let _0x30bd72=null,_0x1498e5=_0x21354d['start'],_0x3af147=_0x21354d['end'];for(const {suggestion:_0x12312c,meta:_0x28b926}of this['_findSuggestions'](_0x21354d,'formatBlock')){if(!_0x28b926['isOwn'])continue;if(_0x28b926['isNextTo']||_0x28b926['containsRangeInObject']||_0x28b926['isInsideObject'])continue;if(_0x12312c['data']['formatGroupId']!=_0x3498d9['formatGroupId'])continue;if(!Qt(_0x12312c,_0x231049))continue;const _0x43996d=_0x12312c['getFirstRange']();if(_0x12312c['subType']==_0x2035b7){if(_0x43996d['containsRange'](_0x21354d,!0x0))return null;_0x1498e5=_0x1498e5['isBefore'](_0x43996d['start'])?_0x1498e5:_0x43996d['start'],_0x3af147=_0x3af147['isAfter'](_0x43996d['end'])?_0x3af147:_0x43996d['end'],_0x30bd72?_0x43996d['start']['isBefore'](_0x30bd72['getFirstRange']()['start'])?(_0x30bd72['removeMarkers'](),_0x30bd72=_0x12312c):_0x12312c['removeMarkers']():_0x30bd72=_0x12312c;}else{const _0x38c289=_0x21354d['getIntersection'](_0x43996d);this['_cutOutSuggestionMarker'](_0x12312c,_0x38c289);}}const _0x2c219d=this['editor']['plugins']['get']('Users')['me'],_0x321612=_0xf688c7(),_0x57f553=_0x2c219d['id'];if(_0x30bd72)return this['_setSuggestionRange'](_0x30bd72,this['_model']['createRange'](_0x1498e5,_0x3af147)),_0x30bd72;{const _0x4d4e2f=this['_setSuggestionData']({'id':_0x321612,'type':'formatBlock:'+_0x2035b7,'data':_0x3498d9,'createdAt':new Date(),'authorId':_0x57f553,'attributes':_0x231049});return this['_addSuggestionMarker']('formatBlock:'+_0x2035b7,_0x321612,_0x57f553,this['_model']['createRange'](_0x1498e5,_0x3af147)),_0x4d4e2f;}}['markMultiRangeBlockFormat'](_0x3486fd,_0x5a3b2f,_0x3ff1a4=[],_0x266b02=null,_0x8b49f2={}){_0x5a3b2f['formatGroupId']||(_0x5a3b2f['formatGroupId']=_0x5a3b2f['commandName']);const _0x5d2e06=_0x3486fd[0x0];_0x5a3b2f['multipleBlocks']=_0x5d2e06['is']('range'),_0x266b02=_0x266b02||Jt(_0x5a3b2f);const _0x387798=_0x3ff1a4['map'](_0x41138d=>zt(_0x41138d,this['_model'])),_0x2beb4d=_0x5d2e06['is']('range')?_0x3486fd:_0x3486fd['map'](_0x50d648=>zt(_0x50d648,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3eea81=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x266b02,'accept');return this['forceDefaultExecution'](()=>_0x3eea81(_0x2beb4d,_0x5a3b2f,_0x8b49f2)),null;}_0x387798['push'](..._0x2beb4d);let _0x411bca=!0x0;for(const _0x1ee58a of _0x387798)if(!this['_rangeIsInLocalUserInsertion'](_0x1ee58a)){_0x411bca=!0x1;break;}if(_0x411bca&&'always'!==this['_trackFormatChanges']){const _0x2dcdad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x266b02,'accept');return this['forceDefaultExecution'](()=>_0x2dcdad(_0x2beb4d,_0x5a3b2f,_0x8b49f2)),null;}const _0x221d83=this['editor']['plugins']['get']('Users')['me'];for(const _0x883ae4 of this['getSuggestions']()){if(_0x883ae4['author']['id']!=_0x221d83['id'])continue;if('formatBlock'!=_0x883ae4['type']||_0x883ae4['data']['formatGroupId']!=_0x5a3b2f['formatGroupId'])continue;if(!Qt(_0x883ae4,_0x8b49f2))continue;const _0x1b290c=_0x883ae4['subType']==_0x266b02;for(let _0x374b0c=0x0;_0x374b0c<_0x2beb4d['length'];_0x374b0c++){const _0x50faab=_0x2beb4d[_0x374b0c];for(const _0x4621da of _0x883ae4['getMarkers']()){const _0xd0cc7a=_0x4621da['getRange']();if(_0x50faab['isEqual'](_0xd0cc7a)){_0x1b290c?(_0x2beb4d['splice'](_0x374b0c,0x1),_0x374b0c--):_0x883ae4['removeMarker'](_0x4621da['name']);break;}}}}if(0x0==_0x2beb4d['length'])return null;const _0x1442de=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x266b02,'join');for(const _0x112422 of this['getSuggestions']())if(_0x112422['author']['id']==_0x221d83['id']&&'formatBlock'==_0x112422['type']&&_0x112422['data']['formatGroupId']==_0x5a3b2f['formatGroupId']&&_0x112422['subType']==_0x266b02&&Qt(_0x112422,_0x8b49f2)&&(_0x1442de(_0x112422['getRanges'](),_0x2beb4d)||_0x1442de(_0x2beb4d,_0x112422['getRanges']()))){for(const _0x5a2b04 of _0x2beb4d)_0x112422['addRange'](_0x5a2b04);return _0x112422;}const _0x5ab01d=_0xf688c7(),_0x5cb3c3=_0x221d83['id'],_0x45c599='formatBlock:'+_0x266b02,_0xb521b0=this['_setSuggestionData']({'id':_0x5ab01d,'type':_0x45c599,'data':_0x5a3b2f,'createdAt':new Date(),'authorId':_0x5cb3c3,'attributes':_0x8b49f2});for(const _0x3562f5 of _0x2beb4d)this['_addSuggestionMarker'](_0x45c599,_0x5ab01d,_0x5cb3c3,_0x3562f5,u['getMultiRangeId']());return _0xb521b0;}['markDeletion'](_0x3a93bf,_0x3e80b1=null,_0x241334={}){if(_0x3a93bf['isCollapsed'])return null;const _0x51f52d=this['editor']['plugins']['get']('Users')['me'],_0x4953ad=new _0x4f46eb(_0x3a93bf['start'],_0x3a93bf['end']);for(const {suggestion:_0x59bd46,meta:_0x4afabd}of this['_findSuggestions'](_0x4953ad,'insertion'))if(_0x4afabd['isOwn']&&!_0x4afabd['isNextTo']){if(_0x59bd46['isMultiRange']){const _0x3cc173=_0x59bd46['getRanges']()['filter'](_0x3de3ea=>'$graveyard'!=_0x3de3ea['root']['rootName']);_0x3cc173['every'](_0x38f0d4=>_0x4953ad['containsRange'](_0x38f0d4,!0x0))&&_0x59bd46['discard']();if(_0x3cc173['some'](_0x58f72d=>_0x58f72d['containsRange'](_0x4953ad,!0x0))){const _0x50a25b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e80b1,'accept');return this['forceDefaultExecution'](()=>_0x50a25b([_0x4953ad],null,_0x241334)),null;}}else{const _0x52fa4f=_0x4953ad['getIntersection'](_0x59bd46['getFirstRange']());null!==_0x52fa4f&&_0x59bd46['_onDiscard']([_0x52fa4f],null,_0x241334);}}if(_0x4953ad['detach'](),_0x4953ad['isCollapsed']||'$graveyard'==_0x4953ad['root']['rootName'])return null;let _0xcef4e9=null,_0x3c4f94=_0x4953ad['start'],_0x250eeb=_0x4953ad['end'];const _0x474c68=this['_findSuggestions'](_0x4953ad,'deletion');for(const {suggestion:_0x6327ce,meta:_0x4ee71b}of _0x474c68){const _0x3af96a=this['_model']['createRange'](_0x3c4f94,_0x250eeb);if(_0x4ee71b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4ee71b['containsRangeInObject']&&!_0x4ee71b['isInsideObject'])){if(_0x6327ce['isMultiRange']){if(!Qt(_0x6327ce,_0x241334))continue;let _0x4fd256=!0x0;for(const _0x45c580 of _0x6327ce['getRanges']()){if(_0x45c580['containsRange'](_0x3af96a,!0x0))return _0x6327ce;_0x3af96a['containsRange'](_0x45c580)||(_0x4fd256=!0x1);}_0x4fd256&&_0x6327ce['discard']();}else{const _0xa89617=_0x6327ce['getFirstRange']();if(_0xa89617['containsRange'](_0x3af96a,!0x0))return _0x6327ce;if(!Qt(_0x6327ce,_0x241334)){_0x3af96a['containsRange'](_0xa89617)?_0x6327ce['removeMarkers']():_0xa89617['containsPosition'](_0x3c4f94)?_0x3c4f94=_0xa89617['end']:_0xa89617['containsPosition'](_0x250eeb)&&(_0x250eeb=_0xa89617['start']);continue;}_0x3c4f94=_0x3c4f94['isBefore'](_0xa89617['start'])?_0x3c4f94:_0xa89617['start'],_0x250eeb=_0x250eeb['isAfter'](_0xa89617['end'])?_0x250eeb:_0xa89617['end'],_0x241334=Object['assign']({},_0x6327ce['attributes']),_0xcef4e9?_0xa89617['start']['isBefore'](_0xcef4e9['getFirstRange']()['start'])?(_0xcef4e9['removeMarkers'](),_0xcef4e9=_0x6327ce):_0x6327ce['removeMarkers']():_0xcef4e9=_0x6327ce;}}}if(_0xcef4e9)return this['_setSuggestionRange'](_0xcef4e9,this['_model']['createRange'](_0x3c4f94,_0x250eeb)),_0xcef4e9;{const _0xa45078=_0xf688c7(),_0x3b7006=this['_model']['createRange'](_0x3c4f94,_0x250eeb),_0x1eb544=_0x51f52d['id'],_0x5949bb=_0x3e80b1?'deletion:'+_0x3e80b1:'deletion',_0x181124=this['_setSuggestionData']({'id':_0xa45078,'type':_0x5949bb,'createdAt':new Date(),'authorId':_0x1eb544,'attributes':_0x241334});return this['_addSuggestionMarker'](_0x5949bb,_0xa45078,_0x1eb544,_0x3b7006),_0x181124;}}['markMultiRangeDeletion'](_0x5cd874,_0x715861='multi',_0x9816dd={}){const _0x590788=this['editor']['plugins']['get']('Users')['me'],_0x9f88e4=_0x5cd874['map'](_0x55dbd5=>new _0x4f46eb(_0x55dbd5['start'],_0x55dbd5['end'])),_0x57f5fc=new Set();for(const {suggestion:_0x5ee2a0,meta:_0xd243ea}of this['_findSuggestions'](_0x9f88e4,'insertion'))_0xd243ea['isOwn']&&!_0xd243ea['isNextTo']&&_0x57f5fc['add'](_0x5ee2a0);for(const _0x389322 of _0x57f5fc)if(_0x389322['isMultiRange']){const _0x1885ce=_0x389322['getRanges']();(!_0x389322['attributes']||!_0x389322['attributes']['skipNestingCheck'])&&(_0x1885ce['every'](_0x131e99=>_0x9f88e4['some'](_0xb1905e=>_0xb1905e['containsRange'](_0x131e99,!0x0)))&&_0x389322['discard']());if(_0x9f88e4['every'](_0x55292f=>_0x1885ce['some'](_0x3ba5b2=>_0x3ba5b2['containsRange'](_0x55292f,!0x0)))){const _0x298048=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x715861,'accept');return this['forceDefaultExecution'](()=>_0x298048(_0x5cd874,null,_0x9816dd)),null;}}else{const _0x2a4e49=_0x389322['getFirstRange']();_0x9f88e4['some'](_0x1d5a4b=>_0x1d5a4b['containsRange'](_0x2a4e49,!0x0))&&_0x389322['discard']();if(_0x9f88e4['every'](_0x2283cf=>_0x2a4e49['containsRange'](_0x2283cf,!0x0))){const _0x154d58=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x715861,'accept');return this['forceDefaultExecution'](()=>_0x154d58(_0x9f88e4,null,_0x9816dd)),null;}}const _0x626726=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x715861,'join');let _0x1103f6=null;for(const _0x3f91ca of this['getSuggestions']())if(_0x3f91ca['author']['id']==_0x590788['id']&&_0x3f91ca['isInContent']&&'deletion'==_0x3f91ca['type']&&_0x3f91ca['subType']==_0x715861&&Qt(_0x3f91ca,_0x9816dd)&&(_0x626726(_0x3f91ca['getRanges'](),_0x9f88e4)||_0x626726(_0x9f88e4,_0x3f91ca['getRanges']()))){if(_0x1103f6){if(_0x3f91ca['commentThread']&&_0x3f91ca['commentThread']['length'])continue;for(const _0x37f10b of _0x3f91ca['getRanges']())_0x1103f6['isIntersectingWithRange'](_0x37f10b)||_0x1103f6['addRange'](_0x37f10b);_0x3f91ca['removeMarkers']();}else{_0x1103f6=_0x3f91ca;for(const _0x17c8ba of _0x9f88e4)_0x3f91ca['isIntersectingWithRange'](_0x17c8ba)||_0x3f91ca['addRange'](_0x17c8ba);}}if(_0x1103f6)return _0x1103f6;_0x57f5fc['clear']();for(const {suggestion:_0x254fb1,meta:_0x351932}of this['_findSuggestions'](_0x9f88e4,'deletion'))_0x351932['isOwn']&&(this['_mergeNestedSuggestions']||!_0x351932['containsRangeInObject']&&!_0x351932['isInsideObject'])&&Qt(_0x254fb1,_0x9816dd)&&_0x57f5fc['add'](_0x254fb1);for(const _0x3847c7 of _0x57f5fc){const _0x3ff00c=_0x3847c7['getRanges']();if(!_0x9816dd||!_0x9816dd['skipNestingCheck']){if(_0x9f88e4['every'](_0x5a0572=>_0x3ff00c['some'](_0x5636b5=>_0x5636b5['containsRange'](_0x5a0572,!0x0))))return _0x3847c7;}(!_0x3847c7['attributes']||!_0x3847c7['attributes']['skipNestingCheck'])&&(_0x3ff00c['every'](_0x1f0525=>_0x9f88e4['some'](_0x2ec135=>_0x2ec135['containsRange'](_0x1f0525,!0x0)))&&_0x3847c7['discard']());}const _0x5551cf=_0xf688c7(),_0x124f58=_0x590788['id'],_0x51ef99='deletion:'+_0x715861,_0x169682=this['_setSuggestionData']({'id':_0x5551cf,'type':_0x51ef99,'createdAt':new Date(),'authorId':_0x124f58,'attributes':_0x9816dd});for(const _0x223407 of _0x9f88e4)_0x223407['detach'](),_0x223407['isCollapsed']||'$graveyard'==_0x223407['root']['rootName']||this['_addSuggestionMarker'](_0x51ef99,_0x5551cf,_0x124f58,_0x223407,u['getMultiRangeId']());return _0x169682;}['markAttributeChange'](_0x308f9a,_0x52494b,_0x1c7859,_0x5c32aa,_0x57d426){if(_0x308f9a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x47a665=this['editor']['plugins']['get']('Users')['me']['id'],_0xcf3e77=Array['from'](this['_suggestions']['values']())['filter'](_0xd364d2=>'attribute'==_0xd364d2['type']&&_0xd364d2['data']['key']==_0x52494b&&_0xd364d2['isIntersectingWithRange'](_0x308f9a));if('default'===this['_trackFormatChanges']){const _0x50f16c=this['_findSuggestions'](_0x308f9a,'insertion')['filter'](({meta:_0x5e81fd})=>_0x5e81fd['isOwn']&&!_0x5e81fd['isInsideObject']&&!_0x5e81fd['isNextTo'])['map'](({suggestion:_0x2b1b15})=>_0x2b1b15);_0xcf3e77['unshift'](..._0x50f16c);}const _0x25fe45=new Map([[_0x308f9a,_0x1c7859]]);for(const _0x46d2ad of _0xcf3e77){const _0x246760='attribute'==_0x46d2ad['type']?_0x46d2ad['data']['oldValue']:void 0x0,_0x2ab131=_0x46d2ad['getFirstRange'](),_0x3ca71d=Array['from'](_0x25fe45['keys']())['find'](_0x1549f4=>_0x1549f4['isIntersecting'](_0x2ab131));if(!_0x3ca71d)continue;const _0x1cd506=_0x3ca71d['getDifference'](_0x2ab131);this['_isBlockAttribute'](_0x52494b)&&'insertion'==_0x46d2ad['type']&&0x0!=_0x1cd506['length']||(_0x25fe45['delete'](_0x3ca71d),_0x1cd506['forEach'](_0x44e7ac=>{_0x25fe45['set'](_0x44e7ac,_0x1c7859);}),'insertion'!=_0x46d2ad['type']&&_0x246760!=_0x5c32aa&&_0x25fe45['set'](_0x3ca71d['getIntersection'](_0x2ab131),_0x246760));}const _0x1f8c9e=[];for(const [_0x1c4aa0,_0x41dd8f]of _0x25fe45){const _0x1e92e2=_0xf688c7(),_0x1122ad={'key':_0x52494b,'oldValue':_0x41dd8f,'newValue':_0x5c32aa};_0x52494b['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':_0x52494b});const _0x544a0f=('attribute:'+(_0x52494b+'|'+Jt({'newValue':_0x5c32aa})))['substring'](0x0,0x3c),_0x4a0145=this['_setSuggestionData']({'id':_0x1e92e2,'type':_0x544a0f,'data':_0x1122ad,'createdAt':new Date(),'authorId':_0x47a665,'attributes':_0x57d426});_0x1f8c9e['push'](_0x4a0145),this['_addSuggestionMarker'](_0x544a0f,_0x1e92e2,_0x47a665,_0x1c4aa0);}return _0x1f8c9e;}['enableDefaultAttributesIntegration'](_0x55dd90){this['enableCommand'](_0x55dd90,(_0x5747a8,..._0x26df8f)=>{this['_recordAttributeChanges'](()=>{_0x5747a8(..._0x26df8f);});});}['registerBlockAttribute'](_0x4e8357){this['_blockAttributeKeys']['add'](_0x4e8357);}['registerInlineAttribute'](_0x4d0def){this['_inlineAttributeKeys']['add'](_0x4d0def);}['_getAttributeKey'](_0x14f992){return'attribute'==_0x14f992['type']?_0x14f992['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4a2218,_0x1d6e1a){const _0x497fd0=_0x4a2218['getFirstMarker']();this['_model']['change'](_0x41284a=>{_0x41284a['updateMarker'](_0x497fd0,{'range':_0x1d6e1a});});}['_addThreadToSuggestion'](_0x3fbf74){const _0x17f780=_0x3fbf74['id'],_0x2befcb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x17f780)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2befcb,'threadId':_0x17f780,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4eb90a=this['_commentsRepository']['getCommentThread'](_0x17f780);_0x4eb90a['unbind']('isRemovable'),_0x4eb90a['isRemovable']=!0x1,_0x3fbf74['commentThread']=_0x4eb90a;}['_checkSuggestionCorrectness'](_0x20c576,_0x2bdd94,_0x2d113e,_0x2a222c){if(_0x20c576['type']!=_0x2bdd94||_0x20c576['subType']!=_0x2d113e||_0x20c576['creator']['id']!=_0x2a222c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x11aaec('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x590f95,_0x2b6f75){const _0x324c0a=_0x590f95['getFirstRange']();if(_0x2b6f75['isEqual'](_0x324c0a))_0x590f95['removeMarkers']();else{if(_0x324c0a['containsRange'](_0x2b6f75)){const _0x3f387d=this['_model']['createPositionAt'](_0x2b6f75['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x590f95,this['_model']['createRange'](_0x324c0a['start'],_0x3f387d));const _0x310d16=_0xf688c7(),_0x303d7c=_0x590f95['creator']['id'],_0x45843e=_0x590f95['type']+':'+_0x590f95['subType'];this['_setSuggestionData']({'id':_0x310d16,'type':_0x45843e,'createdAt':new Date(),'authorId':_0x303d7c,'data':_0x590f95['data'],'attributes':_0x590f95['attributes']});const _0x54f2f8=this['_model']['createPositionAt'](_0x2b6f75['end']['parent'],'after'),_0x28fa68=this['_model']['createRange'](_0x54f2f8,_0x324c0a['end']);this['_addSuggestionMarker'](_0x45843e,_0x310d16,_0x303d7c,_0x28fa68);}else{if(_0x324c0a['containsPosition'](_0x2b6f75['start'])){const _0x80fcb2=this['_model']['createPositionAt'](_0x2b6f75['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x590f95,this['_model']['createRange'](_0x324c0a['start'],_0x80fcb2));}else{const _0x11342b=this['_model']['createPositionAt'](_0x2b6f75['end']['parent'],'after');this['_setSuggestionRange'](_0x590f95,this['_model']['createRange'](_0x11342b,_0x324c0a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x31e3c3){for(const {suggestion:_0x3af794,meta:_0x18332f}of this['_findSuggestions'](_0x31e3c3,'insertion')){if(!_0x18332f['isOwn'])continue;const _0x410ac5=_0x3af794['getRanges']();for(const _0x35f7cd of _0x410ac5)if(!_0x31e3c3['getDifference'](_0x35f7cd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5bc0c8){const _0x2ae83e=this['editor']['plugins']['get']('Users')['getUser'](_0x5bc0c8);if(!_0x2ae83e)throw new _0x11aaec('track-changes-user-not-found',this);return _0x2ae83e;}['_getExternalAuthor'](_0x27324f){const _0xf9e658=this['editor']['plugins']['get']('Users'),_0x197d93=_0x1c2190('external:'+_0x27324f),_0x8fe239=_0xf9e658['getUser'](_0x197d93);return _0x8fe239||_0xf9e658['addUser']({'id':_0x197d93,'name':_0x27324f});}['_createSuggestion'](_0xb8001a,_0x453d7f,_0x37be11,_0x483d7d,_0x2884e4){const _0x187e25=this['_getAuthorFromId'](_0x483d7d),_0x2cd353=this['_suggestionFactory']['buildSuggestion'](_0xb8001a,_0x453d7f,_0x37be11,_0x187e25,_0x2884e4,_0x1358fd=>{this['_updateSuggestionData'](_0x37be11,{'attributes':_0x1358fd});const _0x176714=this['getSuggestion'](_0x37be11);this['_joinWithAdjacentSuggestions'](new Set([_0x176714])),this['_refreshSuggestionsChain'](new Set([_0x176714]));});return this['listenTo'](_0x2cd353,'accept',()=>{this['_updateSuggestionData'](_0x37be11,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2cd353,'discard',()=>{this['_updateSuggestionData'](_0x37be11,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x37be11,_0x2cd353),this['_suggestionState']['set'](_0x2cd353,'notReady'),_0x2cd353;}['_splitMarkerName'](_0x4a43b0){const _0x25792a=_0x4a43b0['split'](':');return{'group':_0x25792a[0x0],'type':_0x25792a[0x1],'subType':_0x25792a['length']>=0x5?_0x25792a[0x2]:null,'id':_0x25792a['length']<0x5?_0x25792a[0x2]:_0x25792a[0x3],'authorId':_0x25792a['length']<0x5?_0x25792a[0x3]:_0x25792a[0x4],'markerCount':0x6==_0x25792a['length']?_0x25792a[0x5]:null};}['_breakSuggestionMarker'](_0x5db172,_0x10c92b,_0x2583ff){const _0x4839a1=_0x5db172['getFirstRange'](),_0x59d684=_0x4839a1['start'],_0x393406=_0x4839a1['end'];this['_setSuggestionRange'](_0x5db172,this['_model']['createRange'](_0x59d684,_0x10c92b));const _0x284c57=_0xf688c7(),_0x4cf2fd=_0x5db172['creator']['id'],_0x181046=_0x5db172['type']+(_0x5db172['subType']?':'+_0x5db172['subType']:'');this['_setSuggestionData']({'id':_0x284c57,'type':_0x181046,'createdAt':new Date(),'authorId':_0x4cf2fd,'originalSuggestionId':_0x5db172['id'],'attributes':_0x5db172['attributes'],'data':_0x5db172['data']});const _0x3084fd=this['_getAttributeKey'](_0x5db172);('formatBlock'==_0x5db172['type']||_0x3084fd&&this['_isBlockAttribute'](_0x3084fd))&&(_0x2583ff=this['_model']['createPositionBefore'](_0x2583ff['parent'])),this['_addSuggestionMarker'](_0x181046,_0x284c57,_0x4cf2fd,this['_model']['createRange'](_0x2583ff,_0x393406));}['_findSuggestions'](_0x3bc08a,_0x341045=null){const _0x290538=[],_0x221a56=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3bc08a)||(_0x3bc08a=[_0x3bc08a]);for(const _0x166660 of this['getSuggestions']()){if(!_0x166660['isInContent'])continue;if(_0x341045&&_0x166660['type']!=_0x341045)continue;let _0x164047=!0x1;for(const _0x590846 of _0x166660['getRanges']()){for(const _0x17daf7 of _0x3bc08a){const _0x3f4da3=_0x17daf7['start']['isEqual'](_0x590846['end'])||_0x17daf7['end']['isEqual'](_0x590846['start']);if(_0x3f4da3||_0x17daf7['getIntersection'](_0x590846)){const _0x264180=_0x17daf7['containsRange'](_0x590846)&&Gt(this['_model']['schema'],_0x590846['start'],_0x17daf7),_0x35f66f=_0x590846['containsRange'](_0x17daf7)&&Gt(this['_model']['schema'],_0x17daf7['start'],_0x590846);_0x290538['push']({'suggestion':_0x166660,'meta':{'isOwn':_0x221a56==_0x166660['author'],'isNextTo':_0x3f4da3,'isInsideObject':_0x264180,'containsRangeInObject':_0x35f66f}}),_0x164047=!0x0;break;}}if(_0x164047)break;}}return _0x290538;}['_addSuggestionMarker'](_0x3f2132,_0xe5639e,_0x57ae3a,_0x233ce6,_0x39d9e9){this['_model']['change'](_0x5117a6=>{let _0x19fbcf='suggestion:'+_0x3f2132+':'+_0xe5639e+':'+_0x57ae3a;_0x39d9e9&&(_0x19fbcf=_0x19fbcf+':'+_0x39d9e9),_0x5117a6['addMarker'](_0x19fbcf,{'range':_0x233ce6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1f9d0e){const _0x50e8bd=_0x1f9d0e['previous'],_0x2e5678=_0x1f9d0e['next'];_0x1f9d0e['previous']=null,_0x1f9d0e['next']=null,null!=_0x50e8bd&&_0x50e8bd['next']==_0x1f9d0e&&(_0x50e8bd['next']=_0x2e5678),null!=_0x2e5678&&_0x2e5678['previous']==_0x1f9d0e&&(_0x2e5678['previous']=_0x50e8bd),'ready'==this['_suggestionState']['get'](_0x1f9d0e)&&(this['_suggestionState']['set'](_0x1f9d0e,'removed'),this['fire']('suggestionUnloaded',_0x1f9d0e,_0x50e8bd,_0x2e5678));}['_setSuggestionData'](_0x3be436){const _0x5eca48=_0x3be436['id'],_0x2aa471=this['addSuggestionData'](_0x3be436);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x56c808=this['editor']['plugins']['get']('PendingActions'),_0x18c50a=_0x2aa471['hasComments'],_0x13bfc0=_0x2aa471['subType']?_0x2aa471['type']+':'+_0x2aa471['subType']:_0x2aa471['type'],_0x199cca=this['editor']['locale'],_0x20deaa=_0x56c808['add'](o(_0x199cca,'PENDING_ACTION_SUGGESTION')),_0x2b0ca7={'id':_0x5eca48,'type':_0x13bfc0,'hasComments':_0x18c50a,'data':_0x3be436['data']||null,'originalSuggestionId':_0x3be436['originalSuggestionId']||null,'attributes':_0x2aa471['attributes']};this['_adapter']['addSuggestion'](_0x2b0ca7)['then'](_0x2529f1=>{_0x2aa471['_saved']=!0x0,_0x56c808['remove'](_0x20deaa),_0x2529f1&&_0x2529f1['createdAt']&&(this['_suggestions']['get'](_0x5eca48)['createdAt']=_0x2529f1['createdAt']);})['catch'](_0x2a9d33=>{throw _0x578fad('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2aa471['discard']();}),_0x2aa471['stopListening'](),this['_suggestions']['delete'](_0x2aa471['id']),this['_suggestionState']['delete'](_0x2aa471),_0x2a9d33;});}return _0x2aa471;}['_isBlockAttribute'](_0x546ba2){return this['_blockAttributeKeys']['has'](_0x546ba2);}['_updateSuggestionData'](_0x2a78ee,_0x30191b){const _0x4839a6=this['editor']['plugins']['get']('PendingActions'),_0x18c3c2=this['getSuggestion'](_0x2a78ee);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x18c3c2['_saved']){const _0x5fd03c=_0x4839a6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2a78ee,_0x30191b)['then'](()=>{_0x4839a6['remove'](_0x5fd03c);});}else _0x18c3c2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2a78ee,_0x30191b);});}}['_getSuggestionData'](_0x554d3a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x11aaec('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x554d3a);}['_handleNewSuggestionMarker'](_0x2b1f6f){const {id:_0x119564,type:_0x26886d,subType:_0x43df9a,authorId:_0x140530}=this['_splitMarkerName'](_0x2b1f6f),_0x5a7aa4=this['_suggestions']['get'](_0x119564)||this['_createSuggestion'](_0x26886d,_0x43df9a,_0x119564,_0x140530,{});switch(this['_checkSuggestionCorrectness'](_0x5a7aa4,_0x26886d,_0x43df9a,_0x140530),this['_suggestionState']['get'](_0x5a7aa4)){case'notReady':this['_getSuggestionData'](_0x119564)['then'](_0xcde29a=>{let _0x5355f3=Promise['resolve']();_0xcde29a['hasComments']&&(_0x5355f3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x119564})),_0x5355f3['then'](()=>{this['addSuggestionData'](_0xcde29a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5a7aa4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x119564,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5a7aa4,'ready'),this['fire']('suggestionLoaded',_0x5a7aa4);break;case'ready':this['fire']('suggestionChanged',_0x5a7aa4);}return _0x5a7aa4['addMarkerName'](_0x2b1f6f),_0x5a7aa4;}['_refreshSuggestionsChain'](_0x2ab326){const _0x259ca9=Array['from'](_0x2ab326),_0x3c1c64=_0x259ca9['filter'](_0x3ece02=>'attribute'==_0x3ece02['type']);this['_refreshAttributeSuggestionsChain'](_0x3c1c64);const _0x3faaf8=_0x259ca9['filter'](_0x25fe84=>!_0x25fe84['isMultiRange']&&'attribute'!=_0x25fe84['type']),_0x2a7a96=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19c19c=>!_0x19c19c['isMultiRange']&&'attribute'!=_0x19c19c['type']),_0x1df3f7=_0x2a7a96['filter'](_0x1f9cde=>!_0x2ab326['has'](_0x1f9cde)),_0x382f41=new Map(_0x2a7a96['map'](_0x289eee=>[_0x289eee,this['_suggestionFactory']['getSuggestionCallback'](_0x289eee['type'],_0x289eee['subType'],'chain')])),_0x474ce=new Map(_0x2a7a96['map'](_0x7642c8=>[_0x7642c8,_0x7642c8['getFirstRange']()])),_0x45497f=new Set(),_0x378831=new Set();for(let _0x1c0612=0x0;_0x1c0612<_0x3faaf8['length'];_0x1c0612++)_0x31454d(_0x3faaf8[_0x1c0612],_0x3faaf8,_0x1c0612+0x1);for(let _0x39c0b5=0x0;_0x39c0b5<_0x3faaf8['length'];_0x39c0b5++)_0x31454d(_0x3faaf8[_0x39c0b5],_0x1df3f7,0x0);const _0x299c1e=new Set();for(let _0x4d2ac2=0x0;_0x4d2ac2<_0x3faaf8['length'];_0x4d2ac2++){const _0x54ec65=_0x3faaf8[_0x4d2ac2];!_0x378831['has'](_0x54ec65)&&_0x54ec65['previous']&&(_0x299c1e['add'](_0x54ec65['previous']),_0x54ec65['previous']['next']===_0x54ec65&&(_0x54ec65['previous']['next']=null),_0x54ec65['previous']=null),!_0x45497f['has'](_0x54ec65)&&_0x54ec65['next']&&(_0x299c1e['add'](_0x54ec65['next']),_0x54ec65['next']['previous']===_0x54ec65&&(_0x54ec65['next']['previous']=null),_0x54ec65['next']=null);}function _0x31454d(_0x3f7453,_0x519a16,_0x27207f){for(let _0x5e28da=_0x27207f;_0x5e28da<_0x519a16['length'];_0x5e28da++){const _0x4140a3=_0x289d33(_0x3f7453,_0x519a16[_0x5e28da]);_0x4140a3&&(_0x4140a3[0x0]['next']=_0x4140a3[0x1],_0x4140a3[0x1]['previous']=_0x4140a3[0x0],_0x45497f['add'](_0x4140a3[0x0]),_0x378831['add'](_0x4140a3[0x1]));}}function _0x289d33(_0x578ff3,_0x120861){if(_0x578ff3['author']['id']!==_0x120861['author']['id'])return null;const _0xc1421a=_0x382f41['get'](_0x578ff3)(_0x578ff3,_0x120861,_0x474ce['get'](_0x578ff3),_0x474ce['get'](_0x120861));if(!_0xc1421a)return null;return _0x382f41['get'](_0x120861)(_0x578ff3,_0x120861,_0x474ce['get'](_0x578ff3),_0x474ce['get'](_0x120861))?_0xc1421a[0x1]['commentThread']&&_0xc1421a[0x1]['commentThread']['length']?null:_0xc1421a:null;}_0x299c1e['size']&&this['_refreshSuggestionsChain'](_0x299c1e);}['_refreshAttributeSuggestionsChain'](_0x228d5c){if(0x0==_0x228d5c['length'])return;const _0x55f207=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x552fec=>'attribute'==_0x552fec['type']&&_0x552fec['_isDataLoaded']),_0x407929=[],_0x46a081=new Map();for(const _0x313301 of _0x55f207){const _0x15916a=_0x1c2190(_0x313301['attributes']);_0x46a081['has'](_0x15916a)||(_0x46a081['set'](_0x15916a,_0x407929['length']),_0x407929['push']([]));const _0x5abfed=_0x46a081['get'](_0x15916a);_0x407929[_0x5abfed]['push'](_0x313301);}!(function(){_0x407929['sort']((_0x4c074e,_0x528094)=>{const _0x1b415b=_0x4c074e[0x0]['createdAt'],_0x37ca2f=_0x528094[0x0]['createdAt'];return _0x1b415b==_0x37ca2f?_0x4c074e[0x0]['attributes']['groupId']<_0x528094[0x0]['attributes']['groupId']?-0x1:0x1:_0x1b415b<_0x37ca2f?-0x1:0x1;});for(const _0x3e430b of _0x407929)_0x3e430b['sort']((_0x6a6545,_0x2fbb2f)=>_0x6a6545['id']<_0x2fbb2f['id']?-0x1:0x1);}());for(let _0x171072=0x0;_0x171072<_0x407929['length'];_0x171072++){if(0x0==_0x407929[_0x171072]['length'])continue;const _0x19c843=[];for(let _0xe0b6b2=_0x171072+0x1;_0xe0b6b2<_0x407929['length'];_0xe0b6b2++)0x0!=_0x407929[_0xe0b6b2]['length']&&_0x1eb123(_0x407929[_0x171072],_0x407929[_0xe0b6b2])&&_0x19c843['push'](_0xe0b6b2);for(const _0x4d1582 of _0x19c843)_0x407929[_0x171072]=_0x407929[_0x171072]['concat'](_0x407929[_0x4d1582]),_0x407929[_0x4d1582]=[];}for(const _0x1ca4f3 of _0x407929)for(let _0x5c75a6=0x0;_0x5c75a6<_0x1ca4f3['length'];_0x5c75a6++){const _0x36f153=_0x1ca4f3[_0x5c75a6+0x1]||null;_0x1ca4f3[_0x5c75a6]['next']!==_0x36f153&&(_0x1ca4f3[_0x5c75a6]['next']=_0x36f153);}for(const _0x361e7a of _0x407929)for(let _0x253ccd=0x0;_0x253ccd<_0x361e7a['length'];_0x253ccd++){const _0x5469fb=_0x361e7a[_0x253ccd-0x1]||null;_0x361e7a[_0x253ccd]['previous']!==_0x5469fb&&(_0x361e7a[_0x253ccd]['previous']=_0x5469fb);}function _0x1eb123(_0x5a685d,_0x9d8f44){if(_0x5a685d[0x0]['attributes']['groupId']!==_0x9d8f44[0x0]['attributes']['groupId']&&_0x5a685d[0x0]['author']!==_0x9d8f44[0x0]['author'])return!0x1;if(!function(_0x4ffe82,_0x390440){if(!_0x4ffe82['hasComments']&&!_0x390440['hasComments'])return!0x0;if(_0x4ffe82['hasComments']&&_0x390440['hasComments'])return!0x1;if(_0x4ffe82['hasComments']&&_0x390440['createdAt']<_0x4ffe82['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x390440['hasComments']&&_0x4ffe82['createdAt']<_0x390440['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5a685d[0x0],_0x9d8f44[0x0]))return!0x1;const _0x11dd6c=Vt(_0x5a685d[0x0]['attributes'],'groupId'),_0x2e02ed=Vt(_0x9d8f44[0x0]['attributes'],'groupId');if(!_0x483e20(_0x11dd6c,_0x2e02ed))return!0x1;return!!_0x5a685d['every'](_0x22608c=>_0x9d8f44['some'](_0xe30e65=>_0x22608c['getFirstRange']()['isEqual'](_0xe30e65['getFirstRange']())))&&_0x9d8f44['every'](_0x18a218=>_0x5a685d['some'](_0x3b82fd=>_0x18a218['getFirstRange']()['isEqual'](_0x3b82fd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x49fcd5){const _0x4cf31a=Array['from'](_0x49fcd5),_0x3e592e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4c7c54=_0x3e592e['filter'](_0x2966c7=>!_0x49fcd5['has'](_0x2966c7)),_0x1d4141=new Map(_0x4cf31a['map'](_0x347151=>[_0x347151,this['_suggestionFactory']['getSuggestionCallback'](_0x347151['type'],_0x347151['subType'],'join')])),_0x4b89cc=new Map(_0x3e592e['map'](_0x4700d8=>[_0x4700d8,_0x4700d8['getRanges']()]));for(let _0x281a9d=0x0;_0x281a9d<_0x4cf31a['length'];_0x281a9d++){if(_0x55b461(this,_0x4cf31a[_0x281a9d],_0x4cf31a,_0x281a9d+0x1))return!0x0;}for(let _0x2969ee=0x0;_0x2969ee<_0x4cf31a['length'];_0x2969ee++){if(_0x55b461(this,_0x4cf31a[_0x2969ee],_0x4c7c54,0x0))return!0x0;}return!0x1;function _0x55b461(_0x8a4634,_0x33ce29,_0x450b33,_0x8d4237){for(let _0x77f6ec=_0x8d4237;_0x77f6ec<_0x450b33['length'];_0x77f6ec++){const _0xff4039=_0x450b33[_0x77f6ec];if(_0xff4039['type']!==_0x33ce29['type']||_0xff4039['author']['id']!==_0x33ce29['author']['id']||_0xff4039['subType']!==_0x33ce29['subType'])continue;if(!Wt(_0x33ce29,_0xff4039))continue;if('attribute'==_0x33ce29['type']&&_0x33ce29['data']['oldValue']!=_0xff4039['data']['oldValue'])continue;if('attribute'==_0x33ce29['type']&&_0x8a4634['_isBlockAttribute'](_0x33ce29['data']['key']))continue;if('formatBlock'==_0x33ce29['type']){const _0x4b345b=_0x8a4634['editor']['model'],_0x2f57ba=_0x33ce29['getContainedElement']();if(_0x2f57ba&&(_0x4b345b['schema']['isObject'](_0x2f57ba)||_0x4b345b['schema']['isLimit'](_0x2f57ba)))continue;}const _0x277ffd=_0x1d4141['get'](_0x33ce29),_0x4ab329=_0x4b89cc['get'](_0x33ce29),_0x34bd2b=_0x4b89cc['get'](_0xff4039),_0x30fdec=_0x33ce29['commentThread']&&_0x33ce29['commentThread']['length'],_0x4c5fec=_0xff4039['commentThread']&&_0xff4039['commentThread']['length'];if(!_0x30fdec&&_0x277ffd(_0x34bd2b,_0x4ab329))return _0x8a4634['_joinSuggestions'](_0xff4039,_0x33ce29),_0x4b89cc['delete'](_0x33ce29),!0x0;if(!_0x4c5fec&&_0x277ffd(_0x4ab329,_0x34bd2b))return _0x8a4634['_joinSuggestions'](_0x33ce29,_0xff4039),_0x4b89cc['delete'](_0xff4039),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5cc6b9,_0x377114){if(_0x5cc6b9['isMultiRange']){for(const _0x5edfbe of _0x377114['getRanges']())_0x5cc6b9['addRange'](_0x5edfbe);}else{const _0x8362cd=_0x377114['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5cc6b9,this['_model']['createRange'](_0x5cc6b9['getFirstRange']()['start'],_0x8362cd));}_0x377114['removeMarkers']();}['_getMarkerAnnouncementText'](_0x58f471,_0xe54196,_0xaea7fd){const _0x5ae86c=_0x58f471['startsWith']('format')||_0x58f471['startsWith']('attribute')?'FORMATTING':_0x58f471['toUpperCase']();return o(this['editor']['locale'],_0xe54196+'_'+_0x5ae86c+'_SUGGESTION_ANNOUNCEMENT',_0xaea7fd);}['_initAriaMarkerChangeAnnouncements'](){const _0x1141fc=this['editor'];if(!_0x1141fc['ui'])return;const {ariaLiveAnnouncer:_0x369f7d}=_0x1141fc['ui'];_0x5c679e(this['_model'],({left:_0x1ea28e,entered:_0x238b30})=>{for(const _0x5c8b84 of _0x1ea28e){const {group:_0x3a6000,type:_0x2c41a5}=this['_splitMarkerName'](_0x5c8b84['name']);if('suggestion'===_0x3a6000){_0x369f7d['announce'](this['_getMarkerAnnouncementText'](_0x2c41a5,'LEAVE'));break;}}for(const _0x4958db of _0x238b30){const {group:_0x2f72ce,type:_0x5682e8}=this['_splitMarkerName'](_0x4958db['name']);if('suggestion'===_0x2f72ce){_0x369f7d['announce'](this['_getMarkerAnnouncementText'](_0x5682e8,'ENTER',_0x3cca6d(_0x17554f)));break;}}});}['_processAttributeChanges'](_0x535afa){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1c970f=this['editor'],_0x4d6f54=_0x1c970f['model']['document']['differ']['getChanges']();if(0x0==_0x4d6f54['length'])return!0x1;const _0xc6d0e7=[],_0x4f3a7f=_0x4d6f54['filter'](_0x3c4fba=>'attribute'==_0x3c4fba['type']),_0x3bb2a0=_0x4d6f54['filter'](_0x13ba52=>'insert'==_0x13ba52['type']&&'$text'!=_0x13ba52['name']),_0x5acdc0=_0x4d6f54['filter'](_0x4dbe7e=>'remove'==_0x4dbe7e['type']&&'$text'!=_0x4dbe7e['name']);for(const _0x1ebac9 of _0x4f3a7f)_0xc6d0e7['push']({'key':_0x1ebac9['attributeKey'],'newValue':_0x1ebac9['attributeNewValue'],'oldValue':_0x1ebac9['attributeOldValue'],'range':qt(_0x1ebac9['range'],_0x1c970f['model'])});for(const _0x2e9440 of _0x3bb2a0){const _0xda8af2=_0x5acdc0['find'](_0x314b87=>_0x314b87['position']['isEqual'](_0x2e9440['position']));_0xda8af2&&_0xc6d0e7['push']({'key':m,'newValue':_0x2e9440['name'],'oldValue':_0xda8af2['name'],'range':_0x1c970f['model']['createRangeOn'](_0x2e9440['position']['nodeAfter'])});}return 0x0!=_0xc6d0e7['length']&&this['_reduceExistingSuggestions'](_0x535afa,_0xc6d0e7);}['_processAttributeSuggestions'](_0x47289f){let _0x24cae8=!0x1;const _0x4ed10c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x57f643=>_0x57f643['data']['newRange']&&_0x57f643['name']['startsWith']('suggestion:attribute:'));for(const _0x5d8d56 of _0x4ed10c){const {subType:_0x5edd54,id:_0x5e7f5b}=this['_splitMarkerName'](_0x5d8d56['name']),_0x4f483b=_0x5edd54['split']('|')[0x0];for(const _0x3bb550 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3bb550['id']!=_0x5e7f5b&&'attribute'==_0x3bb550['type']&&_0x3bb550['data']&&_0x3bb550['data']['key']==_0x4f483b&&_0x3bb550['getFirstRange']()['isIntersecting'](_0x5d8d56['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3bb550,_0x5d8d56['data']['newRange'],_0x47289f),_0x24cae8=!0x0);}return _0x24cae8;}['_recordAttributeChanges'](_0xf5e8a4){this['_recordAttributeSuggestions']=!0x0,_0xf5e8a4();}['_isRegisteredAttribute'](_0x206996){const _0x228e97=this['_isBlockAttribute'](_0x206996),_0x5449b2=this['_inlineAttributeKeys']['has'](_0x206996);return _0x228e97||_0x5449b2;}['_reduceExistingSuggestions'](_0x12cc19,_0x5f214b){if(0x0==_0x5f214b['length'])return!0x1;let _0x7c66f=!0x1;for(const _0x2fdd97 of _0x5f214b){const _0x4ca7ce=this['_findSuggestions'](_0x2fdd97['range'],'attribute')['filter'](_0x1530fc=>!_0x1530fc['meta']['isNextTo'])['map'](_0x1d26a9=>_0x1d26a9['suggestion']),_0x1cdec4=_0x1c2190({'newValue':_0x2fdd97['newValue']});_0x4ca7ce['filter'](_0x6170a3=>{const [_0x551a9e,_0x412cbd]=_0x6170a3['subType']['split']('|');return _0x551a9e==_0x2fdd97['key']&&_0x412cbd!=_0x1cdec4;})['forEach'](_0x2fffb2=>{this['_reduceSuggestionAttributeRange'](_0x2fffb2,_0x2fdd97['range'],_0x12cc19),_0x7c66f=!0x0;});}return _0x7c66f;}['_reduceSuggestionAttributeRange'](_0x5d1fa6,_0x589598,_0x77895f){const _0x110b77=_0x5d1fa6['getFirstRange']()['getDifference'](_0x589598);0x0!==_0x110b77['length']?0x1!==_0x110b77['length']?this['_breakSuggestionMarker'](_0x5d1fa6,_0x589598['start'],_0x589598['end']):this['_setSuggestionRange'](_0x5d1fa6,_0x110b77[0x0]):_0x77895f['removeMarker'](_0x5d1fa6['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1d8d5e){this['_editor']=_0x1d8d5e,this['_model']=_0x1d8d5e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3b180e,_0x42d673,_0xdbfa60,_0x25904a,_0x16ede5,_0x2c58fc){return new u(this['_model'],{'type':_0x3b180e,'subType':_0x42d673,'id':_0xdbfa60,'author':_0x25904a,'creator':_0x25904a,'attributes':_0x16ede5,'onAttributesChange':_0x2c58fc,'onAccept':(..._0x183b20)=>this['getSuggestionCallback'](_0x3b180e,_0x42d673,'accept')(..._0x183b20),'onDiscard':(..._0x77bef6)=>this['getSuggestionCallback'](_0x3b180e,_0x42d673,'discard')(..._0x77bef6)});}['registerCustomCallback'](_0xaa709c,_0x4e3a67,_0x5caf6f,_0x376a96){const _0x1c69d0=_0xaa709c+':'+_0x4e3a67+':'+_0x5caf6f;this['_customCallbacks']['set'](_0x1c69d0,_0x376a96);}['getSuggestionCallback'](_0x276fac,_0x22da0b,_0x3dc695){const _0x3fccd1=_0x276fac+':'+_0x22da0b+':'+_0x3dc695;return this['_customCallbacks']['get'](_0x3fccd1)||this['_defaultCallbacks']['get'](_0x276fac+':'+_0x3dc695);}['_registerDefaultCallbacks'](){const _0x2b7e47=()=>!0x1,_0x20496e=_0x5dcbfd=>{_0x5dcbfd['sort']((_0x7ccd94,_0x1f7462)=>_0x7ccd94['start']['isBefore'](_0x1f7462['start'])?0x1:-0x1),this['_model']['change'](_0x5b33e3=>{for(const _0x57c018 of _0x5dcbfd){let _0x5cea46;_0x5cea46=_0x57c018['end']['isAtEnd']&&_0x57c018['end']['parent']==_0x57c018['start']['nodeAfter']?_0x5b33e3['createSelection'](_0x57c018['start']['nodeAfter'],'on'):_0x5b33e3['createSelection'](_0x57c018),this['_model']['deleteContent'](_0x5cea46,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x59a6e3=(_0x582a54,_0x2e9d51)=>{_0x2e9d51&&this['_model']['change'](_0x3cd6a2=>{const {commandName:_0x31f88b,commandParams:_0x11917f=[]}=_0x2e9d51,_0x25fe6d=_0x582a54['map'](_0x48a560=>(Ft(_0x48a560)&&(_0x48a560=this['_model']['createRange'](_0x48a560['end'])),_0x48a560))['filter'](_0x38b741=>'$graveyard'!==_0x38b741['root']['rootName']);if(_0x25fe6d['length']<0x1)return;const _0x5551fe=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1d385f=>_0x4f46eb['fromRange'](_0x1d385f));_0x3cd6a2['setSelection'](_0x25fe6d);for(const _0x47669c of this['_editor']['commands']['commands']())_0x47669c['refresh']();_0x11917f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31f88b,..._0x11917f);const _0x107622=_0x5551fe['filter'](_0x3b97d3=>'$graveyard'!=_0x3b97d3['root']['rootName']);_0x107622['length']>0x0&&_0x3cd6a2['setSelection'](_0x107622);for(const _0x12c98f of _0x5551fe)_0x12c98f['detach']();});},_0x367793=(_0x28432a,_0xc82f54)=>0x1==_0x28432a['length']&&0x1==_0xc82f54['length']&&_0x28432a[0x0]['end']['isEqual'](_0xc82f54[0x0]['start']),_0x5c704f=(_0x101dfc,_0x5b902f,_0x4d5819,_0x3e7045)=>Kt(_0x101dfc,_0x5b902f,_0x4d5819,_0x3e7045)?[_0x101dfc,_0x5b902f]:Kt(_0x5b902f,_0x101dfc,_0x3e7045,_0x4d5819)?[_0x5b902f,_0x101dfc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2b7e47),this['_defaultCallbacks']['set']('insertion:discard',_0x20496e),this['_defaultCallbacks']['set']('insertion:join',_0x367793),this['_defaultCallbacks']['set']('insertion:chain',_0x5c704f),this['_defaultCallbacks']['set']('deletion:accept',_0x20496e),this['_defaultCallbacks']['set']('deletion:discard',_0x2b7e47),this['_defaultCallbacks']['set']('deletion:join',_0x367793),this['_defaultCallbacks']['set']('deletion:chain',_0x5c704f),this['_defaultCallbacks']['set']('formatInline:accept',_0x59a6e3),this['_defaultCallbacks']['set']('formatInline:discard',_0x2b7e47),this['_defaultCallbacks']['set']('formatInline:join',_0x367793),this['_defaultCallbacks']['set']('formatInline:chain',_0x2b7e47),this['_defaultCallbacks']['set']('formatBlock:accept',_0x59a6e3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2b7e47),this['_defaultCallbacks']['set']('formatBlock:join',_0x367793),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2b7e47),this['_defaultCallbacks']['set']('attribute:accept',_0x2b7e47),this['_defaultCallbacks']['set']('attribute:discard',(_0x4f82b1,_0xb514f3)=>{if(!_0xb514f3)return;const _0x64174e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x301e35=>{if(_0xb514f3['key']==m)for(const _0x203be6 of _0x4f82b1){const _0x4bd6b4=_0x203be6['start']['nodeAfter'],_0x188af5=_0xb514f3['oldValue'];_0x301e35['rename'](_0x4bd6b4,_0x188af5);}else{if(_0x64174e['_isBlockAttribute'](_0xb514f3['key'])){for(const _0x48222d of _0x4f82b1)void 0x0!==_0xb514f3['oldValue']?_0x301e35['setAttribute'](_0xb514f3['key'],_0xb514f3['oldValue'],_0x48222d['start']['nodeAfter']):_0x301e35['removeAttribute'](_0xb514f3['key'],_0x48222d['start']['nodeAfter']);}else{for(const _0x12cdc7 of _0x4f82b1)_0xb514f3['oldValue']?_0x301e35['setAttribute'](_0xb514f3['key'],_0xb514f3['oldValue'],_0x12cdc7):_0x301e35['removeAttribute'](_0xb514f3['key'],_0x12cdc7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x367793);}}function Gt(_0x459c6e,_0x321ae2,_0x254f7a){for(const _0x571182 of _0x321ae2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x571182['root']==_0x571182)return!0x1;if(!_0x254f7a['containsItem'](_0x571182))return!0x1;if(_0x459c6e['isObject'](_0x571182)||_0x459c6e['isLimit'](_0x571182))return!0x0;}return!0x1;}function Ft(_0x3654be){return _0x3654be['end']['parent']==_0x3654be['start']['nodeAfter']&&_0x3654be['end']['isAtStart'];}function Lt(_0x56b545,_0x2aa75b,_0x1374c3,_0x33be10){const _0x57b098=_0x344b1d=>!_0x344b1d['item']['is']('$textProxy')&&!_0x33be10['isObject'](_0x344b1d['item']),_0x55a051=_0x56b545['start']['getLastMatchingPosition'](_0x57b098),_0x3f964d=_0x56b545['end']['getLastMatchingPosition'](_0x57b098,{'direction':'backward'});return(!_0x56b545['start']['isEqual'](_0x55a051)||!_0x56b545['end']['isEqual'](_0x3f964d))&&(_0x55a051['isBefore'](_0x3f964d)?_0x1374c3['updateMarker'](_0x2aa75b,{'range':_0x1374c3['createRange'](_0x55a051,_0x3f964d)}):_0x1374c3['removeMarker'](_0x2aa75b),!0x0);}function Jt(_0x25e380){return _0x1c2190(_0x25e380);}function Ht(_0x159b14){const _0x3dd59e=_0x159b14['start']['nodeAfter'];return _0x3dd59e&&_0x3dd59e['is']('element');}function qt(_0x1c263b,_0x5107fe){return null==_0x1c263b['end']['nodeBefore']&&_0x1c263b['end']['parent']==_0x1c263b['start']['nodeAfter']?zt(_0x1c263b['start']['nodeAfter'],_0x5107fe):_0x1c263b;}function zt(_0x48365a,_0x190ee4){const _0x3f65d2=_0x190ee4['schema']['isObject'](_0x48365a)||_0x190ee4['schema']['isSelectable'](_0x48365a);return _0x190ee4['createRange'](_0x190ee4['createPositionAt'](_0x48365a,'before'),_0x3f65d2?_0x190ee4['createPositionAfter'](_0x48365a):_0x190ee4['createPositionAt'](_0x48365a,'end'));}function Kt(_0x51873f,_0x2960dc,_0x54ac66,_0x2ab359){return!!Wt(_0x51873f,_0x2960dc)&&_0x54ac66['end']['isEqual'](_0x2ab359['start']);}function Wt(_0x5c1a98,_0x1b975f){if(!_0x5c1a98['_isDataLoaded']||!_0x1b975f['_isDataLoaded'])return!0x1;const _0x3766e1=new Set(Object['keys'](_0x5c1a98['attributes'])),_0xa917ba=new Set(Object['keys'](_0x1b975f['attributes']));if(_0x3766e1['delete']('groupId'),_0xa917ba['delete']('groupId'),0x0==_0x3766e1['size']&&0x0==_0xa917ba['size'])return!0x0;if(_0x3766e1['size']!=_0xa917ba['size'])return!0x1;const _0x1bb6c5={..._0x5c1a98['attributes']},_0x19ca0f={..._0x1b975f['attributes']};return delete _0x1bb6c5['groupId'],delete _0x19ca0f['groupId'],JSON['stringify'](_0x1bb6c5)==JSON['stringify'](_0x19ca0f);}function Qt(_0x37df6a,_0x58c53a){const _0xd5ef4e=Xt(_0x37df6a['attributes']),_0x15ee7f=Xt(_0x58c53a);if(!_0x37df6a['_isDataLoaded'])return!0x1;for(const _0x50666b of Object['keys'](_0x15ee7f))if(!_0x483e20(_0xd5ef4e[_0x50666b],_0x15ee7f[_0x50666b]))return!0x1;return!0x0;}function Xt(_0x48511c){const _0x1dd3f7=Object['assign']({},_0x48511c);return delete _0x1dd3f7['skipNestingCheck'],delete _0x1dd3f7['tablePasteChainId'],_0x1dd3f7;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x28b3e7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x512a28,_0x437861,_0xdc74dc,_0x735075){super(),this['model']=_0x437861,this['view']=_0xdc74dc,this['commentThreadController']=_0x735075,this['_editor']=_0x512a28,this['_acceptCommand']=_0x512a28['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x512a28['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3ab750,_0x503096)=>_0x3ab750||_0x503096),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3b2962=>_0x3b2962&&this['_editor']['model']['canEditAt'](_0x437861['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3ae24c=>_0x3ae24c&&this['_editor']['model']['canEditAt'](_0x437861['getRanges']())),this['_pendingAction']=null,_0xdc74dc['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xdc74dc,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xdc74dc,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xdc74dc,'change:isDirty',()=>{_0xdc74dc['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 _0x1fd882=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1fd882);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x33b69b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x592229,_0x266c80,_0x9c81ce,_0x352854){super(_0x592229),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xde46fc(_0x592229,o(_0x592229,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x266c80['authoredAt']),this['bind']('authoredAt')['to'](_0x266c80),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',_0x266c80,'authoredAt',this,'descriptionParts',(_0x211dce,_0x5da4ca,_0x386a3d)=>{const _0x77fdfb=_0x386a3d['map'](_0x456bb0=>cs(_0x456bb0['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x211dce-0x1,_0x266c80['author']['name'],_0x5da4ca?_0x352854['formatDateTime'](_0x5da4ca):'',new DOMParser()['parseFromString'](_0x77fdfb,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5ba900(),this['focusTracker']=new _0x2c535c(),this['keystrokes']=new _0x411b8d(),this['focusCycler']=new _0x3a69b4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x45c2c2=>_0x45c2c2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x266c80,this['_localUser']=_0x9c81ce,this['_config']=_0x352854,_0x352854['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3df98c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3f12f6}=this['_config'];this['commentsListView']=new _0x3f12f6(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',_0x204094=>_0x204094+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x565cb5,_0x21070b)=>_0x565cb5||!!_0x21070b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x434ece}=this['_config'],_0x4b2333=new _0x434ece(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3f316e=_0x4b2333['commentInputView'];return _0x4b2333['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3f316e,'value',(_0x249d56,_0x56d4f2,_0x52eaea)=>!!_0x52eaea||_0x249d56&&!_0x56d4f2),_0x3f316e['on']('submit',(_0x3a4747,_0x2934c5)=>{this['fire']('addComment',_0x2934c5),_0x3f316e['editor']['setData']('');}),_0x3f316e['on']('cancel',()=>this['focus']()),_0x3f316e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4b2333;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x5d4d2d,_0x27d359,_0x1309fe,_0x1f00f8){super(_0x5d4d2d,_0x27d359,_0x1309fe,_0x1f00f8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x156755=>_0x156755&&_0x156755[0x0]?_0x156755[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x461730,_0x38c7e7)=>{let _0x11d562='';for(const _0x583a9b of _0x461730)_0x11d562+='<p>'+cs(_0x583a9b['content'],_0x583a9b['color'])+'</p>';return _0x38c7e7?_0x11d562:_0xce5d8e(_0x11d562,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1f00f8['SuggestionView'](_0x5d4d2d,_0x27d359,{'formatDateTime':_0x1f00f8['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 _0x5ae8f6=this['bindTemplate'],_0x29c850=[this['suggestionView']];return this['commentsListView']&&_0x29c850['push'](this['commentsListView']),this['commentThreadInputView']&&_0x29c850['push'](this['commentThreadInputView']),_0x29c850['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5ae8f6['if']('isActive','ck-suggestion-wrapper--active'),_0x5ae8f6['to']('type',_0x51f348=>'ck-suggestion-'+_0x51f348),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':_0x5ae8f6['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x29c850};}['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 fe extends _0x33b69b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4bc85d,_0x3881eb,_0x1ed12b){super(_0x4bc85d),this['_model']=_0x3881eb,this['_config']=_0x1ed12b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3881eb),this['acceptButton']=this['_createButton'](o(_0x4bc85d,'Accept\x20suggestion'),_0x146320['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4bc85d,'Discard\x20suggestion'),_0x146320['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x28de63(_0x4bc85d,_0x3881eb['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5ba900([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2c535c(),this['keystrokes']=new _0x411b8d(),this['focusCycler']=new _0x3a69b4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x394709=>_0x394709['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x123b64=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x123b64['innerHTML']=this['description'],this['on']('change:description',(_0x1ab792,_0x1f49fc,_0x877a4f)=>{_0x123b64['innerHTML']=_0x877a4f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xfe6633=this['bindTemplate'],_0x1e7a5f=[{'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':_0xfe6633['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xfe6633['to']('authoredAt',_0x207f8d=>this['_config']['formatDateTime'](_0x207f8d))}]}]},{'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']&&_0x1e7a5f['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':_0x1e7a5f}]};}['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'](_0x3411b9,_0x110743,_0x12852d,_0x3bc84c,_0x2a7c07){const _0x3edbf3=new _0x5e2872(this['locale']);return _0x3edbf3['set']({'label':_0x3411b9,'icon':_0x110743,'tooltip':!0x0,'tooltipPosition':_0x2a7c07}),_0x3edbf3['extendTemplate']({'attributes':{'class':_0x12852d}}),_0x3edbf3['on']('execute',()=>{this['fire'](_0x3bc84c,this['_model']['id']);}),_0x3edbf3;}['_setupKeyboardNavigation'](){const _0x244c72=this['element'];this['keystrokes']['listenTo'](_0x244c72);for(const _0x1af992 of this['focusables'])this['focusTracker']['add'](_0x1af992['element']),this['keystrokes']['listenTo'](_0x1af992['element']);this['keystrokes']['set']('enter',(_0x2a96df,_0xd6e84a)=>{_0x244c72===_0x2a96df['target']&&(this['focusCycler']['focusFirst'](),_0xd6e84a());}),this['keystrokes']['set']('esc',(_0x448379,_0x204ea8)=>{_0x244c72!==_0x448379['target']&&(this['focus'](),_0x204ea8());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0xa4b53f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x110e12,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11272e){super(_0x11272e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x571535=this['editor']['config'];_0x571535['define']('trackChanges.SuggestionThreadView',pe),_0x571535['define']('trackChanges.SuggestionView',fe),_0x571535['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x571535['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5940ef,_0xea4324){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2703e5,_0x4751f5]of this['_handleControllerBuffer']){const _0x2ecfed=this['_suggestionToController']['has'](_0x2703e5);_0x2ecfed||_0x4751f5?_0x2ecfed&&_0x4751f5&&this['_destroyController'](_0x2703e5):this['_initializeController'](_0x2703e5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5940ef,_0xea4324);}['init'](){const _0x4fcc9b=this['editor'],_0x39de1f=_0x4fcc9b['plugins']['get']('TrackChangesEditing'),_0x32a26f=_0x4fcc9b['plugins']['get']('Annotations'),_0x5a1e58=_0x4fcc9b['plugins']['get']('EditorAnnotations'),_0x139bb0=_0x4fcc9b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5a1e58['addSourceCollector'](()=>{const _0x3391bf=[];for(const [_0x311591,_0x1d53df]of Array['from'](this['_suggestionToController'])){const _0x2db6fb=_0x311591['getAllAdjacentSuggestions'](),_0x28ee48=[];for(const _0x58eddf of _0x2db6fb){if(!_0x58eddf['isInContent'])continue;if(_0x58eddf['isMultiRange']){_0x28ee48['push'](..._0x58eddf['getRanges']());continue;}const _0x4b28a3=_0x58eddf['getFirstRange']();if(_0x28ee48['length']>0x0){const _0x2900d7=_0x28ee48[0x0]['getJoined'](_0x4b28a3);if(_0x2900d7){_0x28ee48[0x0]=_0x2900d7;continue;}}_0x28ee48['push'](_0x4b28a3);}_0x3391bf['push']([_0x1d53df['view'],_0x28ee48]);}return _0x3391bf;}),this['listenTo'](_0x39de1f,'suggestionLoaded',(_0x498bfd,_0x75db63)=>{this['listenTo'](_0x75db63,'change:previous',(_0x4835d7,_0x50b0cc,_0x106a59,_0x448a76)=>{_0x75db63['isInContent']&&(null==_0x106a59?(this['_updateController'](_0x448a76['head']),this['_handleSuggestionControllerDelayed'](_0x75db63,!0x1)):(this['_updateController'](_0x106a59['head']),null==_0x448a76&&this['_handleSuggestionControllerDelayed'](_0x75db63,!0x0)));}),null!==_0x75db63['previous']?this['_updateController'](_0x75db63['head']):this['_handleSuggestionControllerDelayed'](_0x75db63,!0x1);}),this['listenTo'](_0x39de1f,'suggestionUnloaded',(_0x42dd98,_0x899528,_0x4d7e41)=>{this['stopListening'](_0x899528,'change:previous'),this['_handleControllerBuffer']['delete'](_0x899528),this['_suggestionToController']['has'](_0x899528)&&this['_destroyController'](_0x899528),_0x4d7e41&&this['_updateController'](_0x4d7e41['head']);}),this['listenTo'](_0x39de1f,'suggestionChanged',(_0x264fb2,_0x411c86)=>{this['_updateController'](_0x411c86);}),this['listenTo'](_0x32a26f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x139bb0,'addComment',(_0x4a8fca,{threadId:_0xfb5c6c,isFromAdapter:_0x564544})=>{if(_0x564544||!_0x39de1f['hasSuggestion'](_0xfb5c6c))return;const _0x387e6d=_0x39de1f['getSuggestion'](_0xfb5c6c);this['_suggestionToController']['get'](_0x387e6d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ec3fd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3bf92e;for(const _0x51ad26 in _0x3ec3fd){const _0x1c0910=_0x51ad26,_0x515df2=_0x3ec3fd[_0x1c0910];if('trackChangesLicenseKeyValid'==_0x515df2||'trackChangesLicenseKeyInvalid'==_0x515df2||'trackChangesLicenseKeyExpired'==_0x515df2||'trackChangesLicenseKeyDomainLimit'==_0x515df2||'trackChangesLicenseKeyNotAllowed'==_0x515df2||'trackChangesLicenseKeyEvaluationLimit'==_0x515df2||'trackChangesLicenseKeyTrialLimit'==_0x515df2||'trackChangesLicenseKeyUsageLimit'==_0x515df2){delete _0x3ec3fd[_0x1c0910],_0x3bf92e=_0x515df2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xe3fe02=this['editor']['plugins']['get']('Annotations'),_0x2ad68d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39a116=Array['from'](_0xe3fe02['activeAnnotations'],_0x836d00=>_0x836d00['innerView'])['filter'](_0x299c22=>this['_viewToController']['has'](_0x299c22)),_0x356b76=[];for(const _0x363c00 of _0x39a116){const _0x3b7c1d=this['_viewToController']['get'](_0x363c00)['model']['getAllAdjacentSuggestions']();_0x356b76['push'](..._0x3b7c1d['reduce']((_0x55887c,_0x3a1ae0)=>[..._0x55887c,..._0x3a1ae0['getMarkerNames']()],[]));}_0x2ad68d['activeMarkers']=_0x356b76;}['_addUIComponentsToFactory'](){const _0xe32798=this['editor'],_0x4cccf1=_0xe32798['locale'],_0x1d8b29=o(_0x4cccf1,'Track\x20changes'),_0x424781=new _0xbd48a([{'type':'switchbutton','model':new _0x56f17e({'withText':!0x0,'isToggleable':!0x0,'label':_0x1d8b29,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x56f17e({'withText':!0x0,'label':o(_0x4cccf1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56f17e({'withText':!0x0,'label':o(_0x4cccf1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56f17e({'withText':!0x0,'label':o(_0x4cccf1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56f17e({'withText':!0x0,'label':o(_0x4cccf1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xe32798['plugins']['has']('TrackChangesPreview')&&_0x424781['addMany']([{'type':'separator'},{'type':'button','model':new _0x56f17e({'withText':!0x0,'label':o(_0x4cccf1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x412949 of _0x424781)if(ke(_0x412949)){const _0x265d4b=_0xe32798['commands']['get'](_0x412949['model']['commandName']);_0x412949['model']['bind']('isOn','isEnabled')['to'](_0x265d4b,'value','isEnabled');}_0xe32798['ui']['componentFactory']['add']('trackChanges',_0x2a7dee=>this['_createToolbarButton'](_0x2a7dee,_0x424781,_0x1d8b29)),_0xe32798['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2d7911=>this['_createMenuBarMenu'](_0x2d7911,_0x424781,_0x1d8b29));}['_createToolbarButton'](_0x3bdfee,_0xe0aabe,_0x19031b){const _0x2aa86b=_0x12c985(_0x3bdfee,_0x120e2f),_0x41683a=this['editor']['commands']['get']('trackChanges');_0x2aa86b['buttonView']['set']({'tooltip':_0x19031b,'label':_0x19031b,'icon':we}),_0x2aa86b['buttonView']['bind']('isOn')['to'](_0x41683a,'value'),_0x2aa86b['buttonView']['on']('execute',()=>{_0x41683a['execute'](),this['editor']['editing']['view']['focus']();}),_0x2136e8(_0x2aa86b,_0xe0aabe,{'role':'menu'});const _0x1dbb11=[];for(const _0x46b928 of _0xe0aabe)ke(_0x46b928)&&_0x1dbb11['push'](this['editor']['commands']['get'](_0x46b928['model']['commandName']));const _0xee0d3c=_0x2aa86b['buttonView'];return _0xee0d3c['actionView']['unbind']('isEnabled'),_0xee0d3c['arrowView']['unbind']('isEnabled'),_0xee0d3c['actionView']['bind']('isEnabled')['to'](_0x41683a,'isEnabled'),_0xee0d3c['arrowView']['bind']('isEnabled')['toMany'](_0x1dbb11,'isEnabled',(..._0x1e2990)=>_0x1e2990['some'](_0x21eadb=>_0x21eadb)),_0x2aa86b['on']('execute',_0x23569a=>{this['editor']['execute'](_0x23569a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2aa86b;}['_createMenuBarMenu'](_0x235fdb,_0x52ef30,_0x28df89){const _0x1c827e=new _0x922c1d(_0x235fdb),_0x5e2ece=this['editor']['commands']['get']('trackChanges');_0x1c827e['buttonView']['set']({'label':_0x28df89,'icon':we});const _0x11c428=new _0xceb2eb(_0x235fdb);for(const _0x3ae9ea of _0x52ef30){if('separator'==_0x3ae9ea['type']){_0x11c428['items']['add'](new _0x297364(_0x235fdb));continue;}const _0x11b58f=new _0x29da40(_0x235fdb,_0x1c827e),_0x50a4b4=new _0x23292a(_0x235fdb),_0x28d61a=_0x3ae9ea['model'];_0x50a4b4['bind'](...Object['keys'](_0x28d61a))['to'](_0x28d61a),_0x50a4b4['delegate']('execute')['to'](_0x1c827e),_0x50a4b4['on']('execute',()=>{this['editor']['execute'](_0x28d61a['commandName']),this['editor']['editing']['view']['focus']();}),_0x11b58f['children']['add'](_0x50a4b4),_0x11c428['items']['add'](_0x11b58f);}return _0x1c827e['bind']('isEnabled')['to'](_0x5e2ece,'isEnabled'),_0x1c827e['panelView']['children']['add'](_0x11c428),_0x1c827e;}['_initializeController'](_0xad29fc){const _0x5b751a=this['editor'],_0x9bb8da=_0x5b751a['config'],_0x2e4121=_0x5b751a['plugins']['get']('Annotations'),_0x4b302d=_0x5b751a['plugins']['get']('CommentsRepository'),_0x230498=_0x5b751a['plugins']['get']('EditorAnnotations'),_0x32a9e9=_0x5b751a['plugins']['get'](_0x110e12)['me'],_0x37e69a=_0x9bb8da['get']('trackChanges')['SuggestionThreadView'],_0xcdbaf=_0x9bb8da['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x246926,CommentThreadInputView:_0x32a4a8}=_0x5b751a['plugins']['get']('CommentsUI');let _0x21d4fd,_0x238961,_0x377ac4;this['_annotationViews']['has'](_0xad29fc['id'])?(_0x238961=this['_annotationViews']['get'](_0xad29fc['id']),_0x21d4fd=_0x238961['mainView']):(_0x21d4fd=new _0x37e69a(_0x5b751a['locale'],_0xad29fc,_0x32a9e9,{'disableComments':this['_disableComments'],'editorConfig':{..._0x9bb8da['get']('comments.editorConfig'),'licenseKey':_0x9bb8da['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x9bb8da['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x9bb8da['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x9bb8da['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x11931c(_0x9bb8da['get']('locale')),'CommentView':_0x9bb8da['get']('comments')['CommentView'],'CommentsListView':_0x246926,'CommentThreadInputView':_0x32a4a8,'SuggestionView':_0xcdbaf}),_0x21d4fd['suggestionView']['acceptButton']['on']('execute',()=>{_0x5b751a['editing']['view']['focus']();}),_0x21d4fd['suggestionView']['discardButton']['on']('execute',()=>{_0x5b751a['editing']['view']['focus']();}),_0x238961=_0x2e4121['createAnnotationView'](this['editor']['locale'],_0x21d4fd),_0x238961['bind']('isDirty')['to'](_0x21d4fd,'isDirty'),_0x238961['bind']('length')['to'](_0x21d4fd),_0x238961['bind']('type')['to'](_0x21d4fd,'type',_0x1cb340=>'suggestion-'+_0x1cb340),_0x21d4fd['on']('escape',()=>{_0x377ac4['fire']('escape');}),this['_annotationViews']['set'](_0xad29fc['id'],_0x238961));const _0x48512c=_0x4b302d['createCommentThreadController'](_0xad29fc['commentThread'],_0x21d4fd),_0x1600e1=new Ce(_0x5b751a,_0xad29fc,_0x21d4fd,_0x48512c),_0x4f3b63=_0xad29fc['getAllAdjacentSuggestions']()['filter'](_0x5cb705=>_0x5cb705['isInContent']);_0x21d4fd['descriptionParts']=_0x5b751a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4f3b63),this['_suggestionToController']['set'](_0xad29fc,_0x1600e1),this['_viewToController']['set'](_0x21d4fd,_0x1600e1),_0x377ac4=_0x2e4121['createAnnotation']({'view':_0x238961,'target':()=>{const _0x3a1aea=[],_0x395787=_0xad29fc['getAllAdjacentSuggestions']()['filter'](_0x4008bc=>_0x4008bc['isInContent']);for(const _0x3df667 of _0x395787)_0x3a1aea['push'](..._0x3df667['getMarkers']());return _0x300bcd(_0x5b751a['editing'],_0x3a1aea);},'type':()=>'suggestion-'+_0x1600e1['view']['type']}),_0x4b302d['_bindAnnotationToEditors'](_0x21d4fd,_0x377ac4),_0x2e4121['add'](_0x377ac4),_0x230498['registerAnnotation'](_0x377ac4);}['_destroyController'](_0x3def0f){const _0x236d4b=this['editor']['plugins']['get']('CommentsRepository'),_0x1c447b=this['editor']['plugins']['get']('Annotations'),_0x475f4d=this['_suggestionToController']['get'](_0x3def0f),_0x211184=_0x475f4d['view'],_0x530889=_0x1c447b['getByInnerView'](_0x211184);_0x236d4b['_unbindEditors'](_0x211184),_0x530889&&_0x1c447b['remove'](_0x530889),this['_suggestionToController']['delete'](_0x3def0f),this['_viewToController']['delete'](_0x211184),_0x475f4d['destroy']();}['_updateController'](_0x38b9e3){if(!_0x38b9e3['isInContent']||!this['_suggestionToController']['has'](_0x38b9e3))return;const _0x1b3df8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f92df=this['_suggestionToController']['get'](_0x38b9e3),_0x244807=_0x38b9e3['getAllAdjacentSuggestions']();_0x2f92df['view']['descriptionParts']=_0x1b3df8['descriptionFactory']['getDescriptions'](_0x244807);}['destroy'](){for(const _0x25d387 of this['_suggestionToController']['keys']())this['_destroyController'](_0x25d387);for(const _0x11828c of this['_annotationViews']['values']())_0x11828c['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x592373){return'model'in _0x592373;}class k extends _0xa4b53f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x7de181){this['editor']['plugins']['get'](p)['adapter']=_0x7de181;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x32103b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x32103b);}['getSuggestions']({skipNotAttached:_0x133c41=!0x1,toJSON:_0x28069c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x133c41,'toJSON':_0x28069c});}['getSuggestion'](_0x42ed46){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x42ed46);}}const w=['Pagination'];class T extends _0xa4b53f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x487f9c=this['editor'];if(_0x487f9c['config']['define']('trackChangesData.editorCreator',_0x246e4a=>{const _0xb40b2b=_0x487f9c['model']['document']['getRootNames']()['reduce']((_0x238fcc,_0x52a278)=>(_0x238fcc[_0x52a278]='',_0x238fcc),{});return _0x487f9c['constructor']['create'](_0xb40b2b,_0x246e4a);}),'function'!=typeof _0x487f9c['config']['get']('trackChangesData')['editorCreator'])throw new _0x11aaec('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x38c097){return N(this['editor'],!0x0,_0x38c097);}['getDataWithDiscardedSuggestions'](_0x552695){return N(this['editor'],!0x1,_0x552695);}}class D extends _0xa4b53f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f1d3d){function _0x1800ac(_0x134671){return _0x134671['map'](_0x31d588=>String['fromCharCode'](_0x31d588))['join']('');}super(_0x5f1d3d),this['result']='end',_0x5f1d3d[_0x1800ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1800ac([0x76,0x69,0x65,0x77])][_0x1800ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1800ac([0x61,0x75,0x74,0x6f]),_0x5f1d3d[_0x1800ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1800ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1800ac([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1800ac([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1800ac([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 Fe(_0x209f9e){return void 0x0!==_0x209f9e['getRootsAttributes'];}async function N(_0x2d8f40,_0x110f62,_0x12eb0b){const _0x2a3964=_0x3f9cf9(_0x2d8f40,w);_0x2a3964['plugins']['push'](p,D),_0x2a3964['rootsAttributes']=Fe(_0x2d8f40)?_0x2d8f40['getRootsAttributes']():void 0x0;const _0x58b772=document['createDocumentFragment'](),_0x3b743e=_0x2d8f40['config']['get']('trackChangesData')['editorCreator'],_0x3e8623=await _0x3b743e(_0x2a3964,()=>function(_0xf0c8be){const _0x3719da=document['createElement']('div');return _0xf0c8be['appendChild'](_0x3719da),_0x3719da;}(_0x58b772));!function(_0x21446f,_0x4d3048){const _0x49c284=_0x21446f['model']['document']['getRootNames']()['reduce']((_0x3388e5,_0x5eeaeb)=>(_0x3388e5[_0x5eeaeb]=_0x21446f['data']['get']({'rootName':_0x5eeaeb}),_0x3388e5),{}),_0x3a2342=_0x21446f['plugins']['get']('Users')['users']['map'](_0x2d74d9=>({'id':_0x2d74d9['id'],'name':_0x2d74d9['name']})),_0x39b0d8=_0x21446f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4854c9=_0x21446f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x29d0e0=_0x4d3048['plugins']['get']('Users'),_0x11f622=_0x4d3048['plugins']['get']('TrackChangesEditing'),_0x151dc7=_0x4d3048['plugins']['get']('CommentsRepository');for(const _0x3717a0 of _0x151dc7['getCommentThreads']())_0x3717a0['remove']();for(const _0x19cf4c of _0x3a2342)_0x29d0e0['getUser'](_0x19cf4c['id'])||_0x29d0e0['addUser'](_0x19cf4c);_0x29d0e0['me']||_0x29d0e0['useAnonymousUser']();for(const _0x25edb6 of _0x4854c9)_0x151dc7['addCommentThread'](_0x25edb6);for(const _0xa53afe of _0x39b0d8)_0x11f622['addSuggestionData'](_0xa53afe);_0x4d3048['data']['set'](_0x49c284);}(_0x2d8f40,_0x3e8623),_0x3e8623['execute'](_0x110f62?'acceptAllSuggestions':'discardAllSuggestions');const _0x1cc6d7=Fe(_0x3e8623)?_0x3e8623['getFullData'](_0x12eb0b):_0x3e8623['data']['get'](_0x12eb0b);return await _0x3e8623['destroy'](),_0x1cc6d7;}class Me extends _0x33b69b{['options'];constructor(_0x1c4827,_0x54d4e2){super(_0x1c4827),this['options']=_0x54d4e2,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'](_0x4b9d66,_0x2aa450){if(!this['element'])return;const _0x56e35a=[];for(const [_0xd29635,_0x585310]of _0x4b9d66){const _0x48d687=document['createElement']('div');_0x48d687['setAttribute']('data-ck-root-name',_0xd29635),_0x48d687['className']=_0x585310['classes']+'\x20ck-track-changes-preview__root-container',_0x48d687['innerHTML']=_0x585310['content'],_0x56e35a['push'](_0x48d687);}_0x2aa450(this['element'],_0x56e35a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x14acb2){super(_0x14acb2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4e2c97=this['editor'],_0x350f3f=_0x4e2c97['locale'],_0x53ef6f=_0x4e2c97['plugins']['get']('Dialog');let _0x548e11;const _0x2cba8b=function(_0x597807){const _0x3c2569={};if('editables'in _0x597807['ui']['view']){for(const [_0x47e4e7,_0x13df6b]of Object['entries'](_0x597807['ui']['view']['editables']))_0x3c2569[_0x47e4e7]=_0x13df6b['element'];}else _0x3c2569[_0x597807['model']['document']['getRootNames']()[0x0]]=_0x597807['ui']['view']['editable']['element'];return _0x3c2569;}(_0x4e2c97),_0x304499=function(_0x239e27){let _0x59490f=0x0;for(const _0x18313e of Object['values'](_0x239e27))_0x59490f=Math['max'](_0x59490f,_0x18313e['getBoundingClientRect']()['width']);let _0x3ca127=0x0;for(const _0x2d2227 of Object['values'](_0x239e27))_0x3ca127+=_0x2d2227['getBoundingClientRect']()['height'];const _0x1c561e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x33674f=Math['min'](_0x3ca127,_0x1c561e);return{'width':_0x59490f,'height':_0x33674f};}(_0x2cba8b);_0x53ef6f['show']({'id':'finalContentPreview','title':o(_0x350f3f,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x350f3f,{'dialogRects':_0x304499}),'onHide':()=>{_0x548e11['detachFromDom']();},'onShow':()=>{_0x4e2c97['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1f7b93=>{const _0x59ec96=this['_standarizeRootsData'](_0x1f7b93,_0x4e2c97,_0x2cba8b);_0x53ef6f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x59ec96,_0x4e2c97['config']['get']('trackChanges.preview.renderFunction'));}),_0x548e11=new _0x187050(_0x350f3f,[_0x53ef6f['view']]),_0x548e11['attachToDom'](),_0x548e11['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4e2c97['once']('destroy',()=>{_0x548e11['detachFromDom']();});const _0x235ada=_0x53ef6f['view']['headerView']['class'];_0x53ef6f['view']['headerView']['class']=_0x235ada?_0x235ada+'\x20ck-reset_all':'ck-reset_all',_0x53ef6f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x53ef6f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x52981a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x15036a=_0x52981a['previewMode'],_0x2b3ca1={};if('$labels'===_0x15036a){for(const _0x4e1198 of _0x52981a['getMergeFieldsIds']())_0x2b3ca1[_0x4e1198]=_0x52981a['getLabel'](_0x4e1198)||_0x4e1198;}else{const _0x763e20='$defaultValues'===_0x15036a?_0x52981a['getDefaultValues']():_0x52981a['getDataSetValues'](_0x15036a,!0x0);for(const _0x5f6081 of Object['entries'](_0x763e20)){const [_0x31a409,_0x1195ed]=_0x5f6081;_0x2b3ca1[_0x31a409]=null!==_0x1195ed?_0x1195ed:_0x52981a['getLabel'](_0x31a409)||_0x31a409;}}return{'mergeFieldsData':_0x2b3ca1};}['_standarizeRootsData'](_0x168df0,_0x565d0d,_0x3f74dd){let _0x3a93ae;if('string'==typeof _0x168df0){const _0x4a0d6d=_0x565d0d['model']['document']['getRootNames']()[0x0];_0x3a93ae={[_0x4a0d6d]:_0x168df0};}else _0x3a93ae=_0x168df0;const _0x3e4ccd=this['_fixMediaEmbeds'](_0x3a93ae,_0x565d0d),_0x24ce1b=function(_0x246f4d,_0x336b8b){for(const [_0x3744b7,_0x431108]of _0x246f4d)_0x431108['classes']=_0x336b8b[_0x3744b7]['classList']['value']['replace']('ck-focused','');return _0x246f4d;}(this['_sortRoots'](_0x565d0d)['reduce']((_0x1e86a0,_0x3da285)=>(_0x1e86a0['push']([_0x3da285,{'content':_0x3e4ccd[_0x3da285],'classes':''}]),_0x1e86a0),[]),_0x3f74dd);return _0x24ce1b;}['_fixMediaEmbeds'](_0x17730c,_0x4d18f7){if(!_0x4d18f7['plugins']['has']('MediaEmbedEditing'))return _0x17730c;const _0x4e9805=_0x4d18f7['plugins']['get']('MediaEmbedEditing');for(const [_0x1f1c9d,_0x31795b]of Object['entries'](_0x17730c)){const _0x39108a=document['createElement']('div');_0x39108a['innerHTML']=_0x31795b,(_0x39108a['querySelectorAll']('figure.media')['forEach'](_0x15fb83=>{const _0x10bbf6=_0x15fb83['querySelector']('oembed');if(_0x10bbf6){const _0x5bb75f=_0x10bbf6['getAttribute']('url');if(_0x5bb75f){const _0x30f118=_0x4e9805['registry']['getMediaViewElement'](new _0x1145a5(_0x4d18f7['editing']['view']['document']),_0x5bb75f,{'elementName':'','renderForEditingView':!0x0}),_0x49dbd6=document['createElement']('div');_0x49dbd6['classList']['add']('ck-media__wrapper'),_0x30f118['render'](_0x49dbd6,_0x4d18f7['editing']['view']['domConverter']),_0x10bbf6['replaceWith'](_0x49dbd6);}}}),_0x17730c[_0x1f1c9d]=_0x39108a['innerHTML']);}return _0x17730c;}['_sortRoots'](_0x3ef127){if(!function(_0x1e97cb){return void 0x0!==_0x1e97cb['getRootsAttributes'];}(_0x3ef127))return _0x3ef127['model']['document']['getRootNames']();const _0x4cc888=[],_0x5d5310=new Map();for(const _0x2673d9 of _0x3ef127['model']['document']['getRootNames']()){const _0x21b311=_0x3ef127['editing']['view']['getDomRoot'](_0x2673d9)['getClientRects']()['item'](0x0);_0x4cc888['push'](_0x2673d9),_0x5d5310['set'](_0x2673d9,_0x21b311);}return _0x4cc888['sort']((_0x36a278,_0x40196d)=>{const _0x507a5b=_0x5d5310['get'](_0x36a278),_0x50a54e=_0x5d5310['get'](_0x40196d);return _0x507a5b['y']-_0x50a54e['y']||_0x507a5b['x']-_0x50a54e['x'];}),_0x4cc888;}}class te extends _0xa4b53f{static get['requires'](){return[T,_0x32ba8b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24d3ac){super(_0x24d3ac),_0x24d3ac['commands']['add']('previewFinalContent',new re(this['editor'])),_0x24d3ac['config']['define']('trackChanges.preview.renderFunction',(_0x3d7d8c,_0x3c47fd)=>{for(const _0x2c0a87 of _0x3c47fd)_0x3d7d8c['appendChild'](_0x2c0a87);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};