@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250627.0 → 0.0.0-nightly-20250628.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/build/track-changes.js +2 -2
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/lang/contexts.json +1 -0
  150. package/lang/translations/en.po +4 -0
  151. package/package.json +27 -27
  152. package/src/commands/acceptsuggestioncommand.js +1 -1
  153. package/src/commands/discardsuggestioncommand.js +1 -1
  154. package/src/commands/executeonallsuggestionscommand.js +1 -1
  155. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  156. package/src/commands/previewfinalcontentcommand.js +1 -1
  157. package/src/commands/trackchangescommand.js +1 -1
  158. package/src/index.js +1 -1
  159. package/src/integrations/aiassistant.js +1 -1
  160. package/src/integrations/alignment.js +1 -1
  161. package/src/integrations/basicstyles.js +1 -1
  162. package/src/integrations/blockquote.js +1 -1
  163. package/src/integrations/bookmark.js +1 -1
  164. package/src/integrations/casechange.js +1 -1
  165. package/src/integrations/ckbox.js +1 -1
  166. package/src/integrations/codeblock.js +1 -1
  167. package/src/integrations/comments.js +1 -1
  168. package/src/integrations/deletecommand.js +1 -1
  169. package/src/integrations/emoji.js +1 -1
  170. package/src/integrations/entercommand.js +1 -1
  171. package/src/integrations/findandreplace.js +1 -1
  172. package/src/integrations/font.js +1 -1
  173. package/src/integrations/formatpainter.js +1 -1
  174. package/src/integrations/heading.js +1 -1
  175. package/src/integrations/highlight.js +1 -1
  176. package/src/integrations/horizontalline.js +1 -1
  177. package/src/integrations/htmlembed.js +1 -1
  178. package/src/integrations/image.js +1 -1
  179. package/src/integrations/imagereplace.js +1 -1
  180. package/src/integrations/imagestyle.js +1 -1
  181. package/src/integrations/importword.js +1 -1
  182. package/src/integrations/indent.js +1 -1
  183. package/src/integrations/inputcommand.js +1 -1
  184. package/src/integrations/legacylist.js +1 -1
  185. package/src/integrations/legacylistproperties.js +1 -1
  186. package/src/integrations/lineheight.d.ts +17 -0
  187. package/src/integrations/lineheight.js +23 -0
  188. package/src/integrations/link.js +1 -1
  189. package/src/integrations/list.js +1 -1
  190. package/src/integrations/listproperties.js +1 -1
  191. package/src/integrations/mediaembed.js +1 -1
  192. package/src/integrations/mention.js +1 -1
  193. package/src/integrations/mergefields.js +1 -1
  194. package/src/integrations/multilevellist.js +1 -1
  195. package/src/integrations/pagebreak.js +1 -1
  196. package/src/integrations/paragraph.js +1 -1
  197. package/src/integrations/removeformat.js +1 -1
  198. package/src/integrations/replacesourcecommand.js +1 -1
  199. package/src/integrations/restrictededitingmode.js +1 -1
  200. package/src/integrations/shiftentercommand.js +1 -1
  201. package/src/integrations/standardeditingmode.js +1 -1
  202. package/src/integrations/style.js +1 -1
  203. package/src/integrations/table.js +1 -1
  204. package/src/integrations/tablecaption.js +1 -1
  205. package/src/integrations/tableclipboard.js +2 -2
  206. package/src/integrations/tablecolumnresize.js +1 -1
  207. package/src/integrations/tableheadings.js +1 -1
  208. package/src/integrations/tablelayout.js +1 -1
  209. package/src/integrations/tablemergesplit.js +1 -1
  210. package/src/integrations/tableofcontents.js +1 -1
  211. package/src/integrations/tableproperties.js +1 -1
  212. package/src/integrations/template.js +1 -1
  213. package/src/integrations/title.js +1 -1
  214. package/src/integrations/undo.js +1 -1
  215. package/src/integrations/uploadcare.js +1 -1
  216. package/src/integrations/utils.js +1 -1
  217. package/src/suggestion.js +2 -2
  218. package/src/suggestiondescriptionfactory.js +1 -1
  219. package/src/trackchanges.js +1 -1
  220. package/src/trackchangesdata.js +1 -1
  221. package/src/trackchangesediting.d.ts +2 -1
  222. package/src/trackchangesediting.js +1 -1
  223. package/src/trackchangespreview.js +1 -1
  224. package/src/trackchangesui.js +1 -1
  225. package/src/ui/suggestioncontroller.js +2 -2
  226. package/src/ui/view/basesuggestionthreadview.js +1 -1
  227. package/src/ui/view/suggestionthreadview.js +1 -1
  228. package/src/ui/view/suggestionview.js +1 -1
  229. package/src/ui/view/trackchangespreviewview.js +1 -1
  230. package/src/utils/common-translations.js +1 -1
  231. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x4bc546,Plugin as _0x27f707,PendingActions as _0x165dfb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x55a365,ObservableMixin as _0xe2fa8e,uid as _0x1f311e,priorities as _0x5971fc,insertToPriorityArray as _0x4e05b4,toArray as _0x37833e,logWarning as _0x35d61e,getEnvKeystrokeText as _0x3f39bb,FocusTracker as _0x453b07,KeystrokeHandler as _0x392f6a,Collection as _0x20735f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x180c93,IconCancel as _0x33253a,IconTrackChanges as _0x441021}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3cf48c,View as _0x4b361c,ViewCollection as _0x216aeb,FocusCycler as _0x1fb8b4,UIModel as _0x573886,createDropdown as _0x1574e1,SplitButtonView as _0x4adb16,addListToDropdown as _0x665b2d,MenuBarMenuView as _0x117c7e,MenuBarMenuListView as _0x3d298e,ListSeparatorView as _0x361e15,MenuBarMenuListItemView as _0x4e83ce,MenuBarMenuListItemButtonView as _0x33227c,BodyCollection as _0x3b1f59,Dialog as _0x5c6607}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x23be23,hashObject as _0x5c09b9,surroundingMarkersDetector as _0x57f799,FOCUS_ANNOTATION_KEYSTROKE as _0x1c966a,AriaDescriptionView as _0x1bb425,setupThreadKeyboardNavigation as _0x1ecf72,trimHtml as _0x402eb8,UserView as _0x340ac7,LateFocusButtonView as _0x431cba,getDateTimeFormatter as _0x460132,getAllMarkersDomElementsSorted as _0x57530a,sanitizeEditorConfig as _0x4d60cb}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x13f5bb,ModelLiveRange as _0x23c46b,ModelLivePosition as _0x3c1417,ViewDowncastWriter as _0x52093d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2c0529,toWidget as _0x2e6643}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3f7b3f,set as _0x38b5e2,isEqual as _0x40f550,unset as _0x548aed,omit as Rt}from'es-toolkit/compat';import{Delete as _0x4dfb2b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3f7cbd}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x192aff}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x4bc546{['_enabledCommands'];constructor(_0x1e35e8,_0x46ba9d){super(_0x1e35e8),this['_enabledCommands']=_0x46ba9d,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 _0x5a4513 of this['editor']['commands']['commands']())_0x5a4513['affectsData']&&!this['_enabledCommands']['has'](_0x5a4513)&&_0x5a4513['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4d7d88 of this['editor']['commands']['commands']())_0x4d7d88['affectsData']&&!this['_enabledCommands']['has'](_0x4d7d88)&&_0x4d7d88['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x4bc546{['_suggestions'];constructor(_0x9600f5,_0x160010){super(_0x9600f5),this['_suggestions']=_0x160010,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x497305){const _0x5cbd6f=this['_suggestions']['get'](_0x497305);if(!_0x5cbd6f)throw new _0x55a365('track-changes-accept-suggestion-not-found',this);const _0x5c0885=_0x5cbd6f['getRanges']();this['editor']['model']['canEditAt'](_0x5c0885)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5cbd6f);}}class M extends _0x4bc546{['_suggestions'];constructor(_0x519ea0,_0x3b7038){super(_0x519ea0),this['_suggestions']=_0x3b7038,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x56e0fb){const _0x26a057=this['_suggestions']['get'](_0x56e0fb);if(!_0x26a057)throw new _0x55a365('track-changes-discard-suggestion-not-found',this);const _0x395782=_0x26a057['getRanges']();this['editor']['model']['canEditAt'](_0x395782)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x26a057);}}function ls(_0x34bc76,_0x3e1c18){let _0x379acb='';return _0x379acb+=_0x34bc76['split']('*')['map']((_0x3fc825,_0x11b008)=>_0x11b008%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Xt(_0x3fc825)+'</span>':Xt(_0x3fc825))['join'](''),_0x3e1c18&&(_0x379acb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3e1c18['value']+'\x22\x20title=\x22'+_0x3e1c18['title']+'\x22></span>'),_0x379acb;}function Xt(_0x39e6cb){const _0x356535=document['createElement']('span');return _0x356535['innerText']=_0x39e6cb,_0x356535['innerHTML'];}function ts(_0xaa3ddf){return _0xaa3ddf['sort']((_0x21021e,_0x121987)=>'attribute'===_0x21021e['type']&&'attribute'!==_0x121987['type']?-0x1:'attribute'!==_0x21021e['type']&&'attribute'===_0x121987['type']?0x1:'deletion'==_0x21021e['type']&&'deletion'!=_0x121987['type']?-0x1:'deletion'!=_0x21021e['type']&&'deletion'==_0x121987['type']?0x1:0x0);}function to(_0x2e375c,_0x460cfa){let _0x32ce58,_0x4caf47=0x0;const _0x1d6256=[],_0x215f98=_0x460cfa['schema'];for(;_0x4caf47<_0x2e375c['length'];){const _0x426975=_0x2e375c[_0x4caf47],_0x1f8aa1=_0x2e375c[_0x4caf47+0x1];_0x32ce58||(_0x32ce58=_0x460cfa['createPositionBefore'](_0x426975)),Yt(_0x460cfa,_0x426975,_0x1f8aa1)||(_0x1d6256['push'](_0x460cfa['createRange'](_0x32ce58,_0x215f98['isObject'](_0x426975)?_0x460cfa['createPositionAfter'](_0x426975):_0x460cfa['createPositionAt'](_0x426975,'end'))),_0x32ce58=null),_0x4caf47++;}return _0x1d6256;}function Yt(_0x3fa8fd,_0x1a8a6e,_0x5c1e74){if(!_0x5c1e74)return!0x1;const _0x107d01=_0x3fa8fd['createPositionAfter'](_0x1a8a6e),_0x322dea=_0x3fa8fd['createPositionBefore'](_0x5c1e74);return _0x107d01['isTouching'](_0x322dea);}function rs(_0xdf1a2c,_0x1cf3dc,_0x48a372){for(;_0x48a372['length'];){const _0x8c038=_0x48a372['splice'](0x0,0x64);_0xdf1a2c['change'](()=>{for(const _0x639432 of _0x8c038)_0x639432['isInContent']&&_0x1cf3dc['execute'](_0x639432['id']);});}}class $ extends _0x4bc546{['_command'];['_suggestions'];constructor(_0x156f12,_0x14df1e,_0x2879c2){super(_0x156f12),this['_command']=_0x14df1e,this['_suggestions']=_0x2879c2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x359a3f=Array['from'](this['_suggestions']['values']())['some'](_0x3620d5=>_0x3620d5['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x359a3f;}['execute'](){const _0x4cb7f5=ts(Array['from'](this['_suggestions']['values']()));for(const _0x4fee28 of _0x4cb7f5){const _0x3b5a2a=_0x4fee28['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3b5a2a))return;}rs(this['editor']['model'],this['_command'],_0x4cb7f5);}}class B extends _0x4bc546{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x341e8f,_0x377311,_0x3bbbee){super(_0x341e8f),this['_command']=_0x377311,this['_suggestions']=_0x3bbbee,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3feee2=this['editor']['model']['document']['selection'],_0x345d93=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x7d74c7,_0x44aab0){const _0x148948=Array['from'](_0x7d74c7['getRanges']()),_0x5288c4=new Set();for(const _0x313445 of _0x44aab0)if(_0x313445['isInContent']){for(const _0x42dbec of _0x148948)for(const _0x52c7a7 of _0x313445['getRanges']())(_0x42dbec['isIntersecting'](_0x52c7a7)||_0x7d74c7['isCollapsed']&&!_0x313445['isMultiRange']&&_0x313445['next']&&_0x52c7a7['end']['isTouching'](_0x42dbec['start']))&&_0x5288c4['add'](_0x313445);}return _0x5288c4;}(_0x3feee2,_0x345d93),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2fecf5=ts(Array['from'](this['_selectedSuggestions']));for(const _0x184c52 of _0x2fecf5){const _0x4de6a1=_0x184c52['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4de6a1))return;}rs(this['editor']['model'],this['_command'],_0x2fecf5);}}class T extends/* #__PURE__ -- @preserve */
24
- _0xe2fa8e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4b40d5,_0xd2a429){super(),this['id']=_0xd2a429['id'],this['type']=_0xd2a429['type'],this['subType']=_0xd2a429['subType']||null,this['author']=_0xd2a429['author'],this['creator']=_0xd2a429['creator']||_0xd2a429['author'],this['isExternal']=Boolean(_0xd2a429['attributes']&&_0xd2a429['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xd2a429['originalSuggestionId']||null,this['_model']=_0x4b40d5,this['_onAccept']=_0xd2a429['onAccept'],this['_onDiscard']=_0xd2a429['onDiscard'],this['_onAttributesChange']=_0xd2a429['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xd2a429['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 _0x53c4fd=this;for(;_0x53c4fd['previous'];)_0x53c4fd=_0x53c4fd['previous'];return _0x53c4fd;}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'](_0x463b3c){this['_markerNames']['add'](_0x463b3c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x56c7f0=>this['_model']['markers']['get'](_0x56c7f0))['filter'](_0x77666c=>_0x77666c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x167e2c=>{for(const _0x19e678 of this['getMarkers']())_0x167e2c['removeMarker'](_0x19e678);}),this['_markerNames']['clear']();}['removeMarker'](_0xfb3d6d){this['_model']['change'](_0xaecc2c=>{_0xaecc2c['removeMarker'](_0xfb3d6d);}),this['_markerNames']['delete'](_0xfb3d6d);}['addRange'](_0x40d957){const _0x378a3c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x378a3c),this['_model']['change'](_0x264fc4=>{_0x264fc4['addMarker'](_0x378a3c,{'range':_0x40d957,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4bf572){for(const _0x33501c of this['getRanges']())if(_0x33501c['isIntersecting'](_0x4bf572))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x266ba4=>_0x266ba4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3ec280,_0x5d3919)=>[..._0x3ec280,..._0x5d3919['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2ac8a8=this['getRanges']();if(0x1!=_0x2ac8a8['length'])return null;const _0x192a95=_0x2ac8a8[0x0],_0x170c5e=_0x192a95['start']['nodeAfter'],_0x18cce0=_0x192a95['end']['nodeBefore'];return _0x170c5e instanceof _0x13f5bb?_0x170c5e!=_0x18cce0?null:_0x170c5e: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 _0x3576bd=[];let _0x25e14b=this['head'];for(;_0x25e14b;)_0x3576bd['push'](_0x25e14b),_0x25e14b=_0x25e14b['next'];return _0x3576bd;}['setAttribute'](_0x44f384,_0x4a8380){const _0x175c65=_0x3f7b3f(this['attributes']);_0x38b5e2(_0x175c65,_0x44f384,_0x4a8380),_0x40f550(_0x175c65,this['attributes'])||(this['attributes']=_0x175c65,this['_onAttributesChange'](_0x175c65));}['removeAttribute'](_0x54de96){const _0x21d5d8=_0x3f7b3f(this['attributes']);_0x548aed(_0x21d5d8,_0x54de96),_0x40f550(_0x21d5d8,this['attributes'])||(this['attributes']=_0x21d5d8,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 _0x1f311e()['substr'](0x1,0x5);}}function o(_0x580d47,_0x440675,_0xd15cf9){const _0x3c49ab=_0x580d47['t'],t=_0x580d47['t'];switch(_0x440675){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',_0xd15cf9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xd15cf9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xd15cf9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xd15cf9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xd15cf9);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',_0xd15cf9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xd15cf9);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',_0xd15cf9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xd15cf9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xd15cf9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xd15cf9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xd15cf9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xd15cf9);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xd15cf9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xd15cf9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xd15cf9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xd15cf9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xd15cf9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xd15cf9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xd15cf9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xd15cf9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xd15cf9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xd15cf9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xd15cf9);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xd15cf9);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'},_0xd15cf9);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xd15cf9);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xd15cf9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xd15cf9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xd15cf9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xd15cf9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xd15cf9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xd15cf9);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'},_0xd15cf9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xd15cf9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xd15cf9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xd15cf9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xd15cf9);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'},_0xd15cf9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xd15cf9);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'},_0xd15cf9);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'},_0xd15cf9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xd15cf9);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'},_0xd15cf9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xd15cf9);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'},_0xd15cf9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xd15cf9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xd15cf9);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'},_0xd15cf9);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xd15cf9);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 _0x3c49ab({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xd15cf9);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3c49ab({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xd15cf9);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xd15cf9);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'},_0xd15cf9);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'},_0xd15cf9);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'},_0xd15cf9);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x440675;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x17db81,_0x39ff87){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x17db81,this['_locale']=_0x39ff87;}['getDescriptions'](_0x1a325f){const _0x925b4f=[],_0x1db646=new Set(),_0x3c71b3=new Set();for(let _0x3714ca=0x0;_0x3714ca<_0x1a325f['length'];_0x3714ca++){const _0x334547=_0x1a325f[_0x3714ca];if(!_0x334547['isInContent'])continue;const _0x1576ed=this['_handleCustomCallbackDescription'](_0x334547);if(_0x1576ed){if(null!=_0x334547['subType']){if(_0x1db646['has'](_0x334547['subType']))continue;_0x1db646['add'](_0x334547['subType']);}_0x925b4f['push'](_0x1576ed);}else{if('attribute'==_0x334547['type']){const _0x32962e=_0x334547['data']['key'];if(_0x3c71b3['has'](_0x32962e))continue;_0x3c71b3['add'](_0x334547['data']['key']),_0x32962e==m?this['_handleRenameSuggestionDescription'](_0x925b4f,_0x334547):this['_handleAttributeSuggestionDescription'](_0x925b4f,_0x334547);continue;}'insertion'!=_0x334547['type']&&'deletion'!=_0x334547['type']||this['_handleInsertRemoveSuggestionDescription'](_0x925b4f,_0x334547,_0x1a325f[_0x3714ca+0x1]);}}return this['_resolveDescriptionItems'](_0x925b4f);}['registerDescriptionCallback'](_0x3e6610){this['_customCallbacks']['push'](_0x3e6610);}['registerElementLabel'](_0x1100e8,_0x4174d3,_0x23981c=_0x5971fc['normal']){'function'==typeof _0x1100e8?_0x4e05b4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1100e8,'label':_0x4174d3,'priority':_0x23981c}):this['_itemLabels']['set'](_0x1100e8,_0x4174d3);}['registerAttributeLabel'](_0x38fffd,_0x2ffcbf){this['_attributeLabels']['set'](_0x38fffd,_0x2ffcbf);}['getItemLabel'](_0x4bca19,_0x39ca1a=0x1){let _0x2d4c00;for(const _0x3e0add of this['_itemLabelsCallbacks'])if(_0x3e0add['matchingCallback'](_0x4bca19)){_0x2d4c00=_0x3e0add['label'];break;}return _0x2d4c00||(_0x2d4c00=this['_itemLabels']['get'](_0x4bca19['name'])),_0x2d4c00?_0x2d4c00(_0x39ca1a):0x1!==_0x39ca1a?_0x39ca1a+'\x20'+_0x4bca19['name']+'s':''+_0x4bca19['name'];}['_addDescriptionItems'](_0x563a50,_0x5da657){const _0x5b3c90=_0x5da657['getFirstRange']()['getWalker'](),_0x37e02c='insertion'==_0x5da657['type']?'add':'remove';for(const _0x54cf88 of _0x5b3c90){const _0x55093a=_0x54cf88['item'],_0x342c9f=_0x563a50[_0x563a50['length']-0x1];if(_0x55093a['is']('$textProxy'))_0x342c9f&&_0x342c9f['type']['indexOf']('Container')>-0x1&&_0x563a50['pop'](),_0x342c9f&&'text'==_0x342c9f['type']?_0x342c9f[_0x37e02c]+=_0x55093a['data']:_0x563a50['push']({'type':'text','add':'add'==_0x37e02c?_0x55093a['data']:'','remove':'remove'==_0x37e02c?_0x55093a['data']:''});else{if(this['_schema']['isObject'](_0x55093a)){const _0x3d04f8=_0x55093a;if(_0x342c9f&&_0x342c9f['type']['indexOf']('Container')>-0x1&&_0x563a50['pop'](),'elementEnd'==_0x54cf88['type'])continue;_0x342c9f&&_0x342c9f['type']==_0x37e02c+'Object'&&_0x342c9f['element']['name']==_0x3d04f8['name']?_0x342c9f['quantity']++:_0x563a50['push']({'type':_0x37e02c+'Object','element':_0x3d04f8,'quantity':0x1}),_0x5b3c90['skip'](_0x5e4d5a=>!('elementEnd'==_0x5e4d5a['type']&&_0x5e4d5a['item']==_0x55093a));}else{if(this['_schema']['checkChild'](_0x55093a,'$text')||_0x55093a['is']('element','softBreak')){const _0x5ca54a=_0x55093a;if('add'==_0x37e02c&&'elementStart'==_0x54cf88['type']||'remove'==_0x37e02c&&'elementEnd'==_0x54cf88['type'])continue;if(_0x342c9f&&-0x1==_0x342c9f['type']['indexOf']('Container')){'text'==_0x342c9f['type']&&(_0x342c9f[_0x37e02c]+='\x0a');continue;}let _0x27d468;if(_0x27d468='add'==_0x37e02c?_0x5ca54a['nextSibling']&&!this['_schema']['isObject'](_0x5ca54a['nextSibling'])?_0x5ca54a['nextSibling']:null:_0x5ca54a['previousSibling']&&!this['_schema']['isObject'](_0x5ca54a['previousSibling'])?_0x5ca54a['previousSibling']:null,_0x5ca54a['isEmpty']||_0x27d468&&_0x27d468['isEmpty']){const _0x467630=_0x27d468&&_0x27d468['isEmpty']?_0x27d468:_0x5ca54a;_0x342c9f&&_0x342c9f['type']==_0x37e02c+'EmptyContainer'&&_0x342c9f['element']['name']==_0x467630['name']?_0x342c9f['quantity']++:_0x563a50['push']({'type':_0x37e02c+'EmptyContainer','element':_0x467630,'quantity':0x1});}else _0x563a50['push']({'type':_0x37e02c+'Container','element':_0x5ca54a});}}}}}['_resolveDescriptionItems'](_0x161438){const _0x663047=this['_locale'],_0x536e0d=[],_0xc08076=[],_0x1a51ea=[];for(const _0x458164 of _0x161438)switch(_0x458164['type']){case'text':if(_0x458164['add']=_0x458164['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x458164['remove']=_0x458164['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x458164['add']&&''!=_0x458164['remove']){_0x536e0d['push']({'type':'replace','content':o(_0x663047,'REPLACE_TEXT',['\x22'+_0x458164['remove']+'\x22','\x22'+_0x458164['add']+'\x22'])});continue;}if(null!=_0x458164['add']['match'](/^ +$/)){_0x536e0d['push']({'type':'insertion','content':o(_0x663047,'*Insert:*\x20%0',o(_0x663047,'ELEMENT_SPACE',_0x458164['add']['length']))});continue;}if(null!=_0x458164['remove']['match'](/^ +$/)){_0x536e0d['push']({'type':'deletion','content':o(_0x663047,'*Remove:*\x20%0',o(_0x663047,'ELEMENT_SPACE',_0x458164['remove']['length']))});continue;}if(''!=_0x458164['add']){_0x536e0d['push']({'type':'insertion','content':o(_0x663047,'*Insert:*\x20%0','\x22'+_0x458164['add']+'\x22')});continue;}_0x536e0d['push']({'type':'deletion','content':o(_0x663047,'*Remove:*\x20%0','\x22'+_0x458164['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x536e0d['push']({'type':'insertion','content':o(_0x663047,'*Insert:*\x20%0',this['getItemLabel'](_0x458164['element'],_0x458164['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x536e0d['push']({'type':'deletion','content':o(_0x663047,'*Remove:*\x20%0',this['getItemLabel'](_0x458164['element'],_0x458164['quantity']))});continue;case'addContainer':_0x536e0d['push']({'type':'insertion','content':o(_0x663047,'*Split:*\x20%0',this['getItemLabel'](_0x458164['element'],_0x458164['quantity']))});continue;case'removeContainer':_0x536e0d['push']({'type':'deletion','content':o(_0x663047,'*Merge:*\x20%0',this['getItemLabel'](_0x458164['element'],_0x458164['quantity']))});continue;case'addFormat':_0xc08076['push'](_0x458164['key']);continue;case'removeFormat':_0x1a51ea['push'](_0x458164['key']);continue;default:_0x536e0d['push'](_0x458164);}if(_0xc08076['length']){const _0x4cab86=_0xc08076['map'](_0xd99668=>this['_attributeLabels']['has'](_0xd99668)?this['_attributeLabels']['get'](_0xd99668):_0xd99668)['join'](',\x20');_0x536e0d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4cab86)});}if(_0x1a51ea['length']){const _0x587a36=_0x1a51ea['map'](_0x3fe5aa=>this['_attributeLabels']['has'](_0x3fe5aa)?this['_attributeLabels']['get'](_0x3fe5aa):_0x3fe5aa)['join'](',\x20');_0x536e0d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x587a36)});}return _0x536e0d;}['_handleCustomCallbackDescription'](_0x1e71d1){for(const _0x59c8f2 of this['_customCallbacks']){const _0x5de4c6=_0x59c8f2(_0x1e71d1);if(_0x5de4c6&&'type'in _0x5de4c6)return _0x5de4c6;}}['_handleAttributeSuggestionDescription'](_0xf6ad29,_0x37240d){const _0x3f5244=_0x37240d['data'],_0x2cbf55=void 0x0===_0x3f5244['newValue']?'removeFormat':'addFormat';_0xf6ad29['push']({'type':_0x2cbf55,'key':_0x3f5244['key']});}['_handleRenameSuggestionDescription'](_0x1ece97,_0x39aa17){_0x1ece97['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x39aa17['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3e8832,_0x159ec1,_0x339e77){if(this['_addDescriptionItems'](_0x3e8832,_0x159ec1),_0x339e77&&_0x339e77['getFirstRange']()&&!_0x159ec1['getFirstRange']()['end']['isEqual'](_0x339e77['getFirstRange']()['start'])){const _0x3b75d1=_0x3e8832[_0x3e8832['length']-0x1],_0x548e8d='insertion'==_0x159ec1['type']?'add':'remove';_0x3b75d1&&'text'==_0x3b75d1['type']&&(_0x3b75d1[_0x548e8d]+='\x0a');}}}class O extends _0x27f707{['afterInit'](){const _0x5c1071=this['editor'],_0x4f354b=_0x5c1071['plugins']['get']('TrackChangesEditing');_0x5c1071['commands']['get']('showAIAssistant')&&_0x4f354b['enableCommand']('showAIAssistant');}}class E extends _0x27f707{['afterInit'](){const _0x347f69=this['editor'],_0x32f18e=_0x347f69['locale'];if(!_0x347f69['plugins']['has']('AlignmentEditing'))return;const _0x1cb8eb=_0x347f69['plugins']['get']('TrackChangesEditing');_0x1cb8eb['enableDefaultAttributesIntegration']('alignment'),_0x1cb8eb['registerBlockAttribute']('alignment'),_0x1cb8eb['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x32f18e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ce890=this['editor'],_0x48dd8f=_0x3ce890['locale'];_0x3ce890['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x72532c=>{if('formatBlock'!=_0x72532c['type'])return;const {data:_0x4f5c92}=_0x72532c;if(_0x4f5c92&&'alignment'==_0x4f5c92['commandName']){const _0x46a925=_0x4f5c92['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x48dd8f,'*Format:*\x20%0',function(_0x54b66a){switch(_0x54b66a){case'left':return o(_0x48dd8f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x48dd8f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x48dd8f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x48dd8f,'FORMAT_JUSTIFY_TEXT');}}(_0x46a925))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x27f707{['afterInit'](){const _0x1046a5=this['editor'],_0x2d0907=_0x1046a5['plugins']['get']('TrackChangesEditing'),_0x147d85=_0x1046a5['locale'];for(const _0x2da2bb of Zt){if(!_0x1046a5['plugins']['has'](_0x2da2bb))continue;const _0x31d3b1=_0x2da2bb['slice'](0x0,-0x7)['toLowerCase'](),_0x4e09eb='FORMAT_'+_0x31d3b1['toUpperCase']();_0x2d0907['enableDefaultAttributesIntegration'](_0x31d3b1),_0x2d0907['registerInlineAttribute'](_0x31d3b1),_0x2d0907['descriptionFactory']['registerAttributeLabel'](_0x31d3b1,o(_0x147d85,_0x4e09eb));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x380ad8=this['editor'],_0x3d993b=_0x380ad8['locale'],_0x4d2eca=_0x380ad8['plugins']['get']('TrackChangesEditing');function _0x34bf63(_0x596cd3,_0x3df59d){_0x4d2eca['descriptionFactory']['registerDescriptionCallback'](_0x35aeb4=>{if('formatInline'!=_0x35aeb4['type'])return;const {data:_0x1549bc}=_0x35aeb4;return _0x1549bc&&_0x1549bc['commandName']===_0x596cd3?_0x1549bc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3d993b,'*Format:*\x20%0',_0x3df59d)}:{'type':'format','content':o(_0x3d993b,'*Remove\x20format:*\x20%0',_0x3df59d)}:void 0x0;});}_0x34bf63('bold',o(_0x3d993b,'FORMAT_BOLD')),_0x34bf63('italic',o(_0x3d993b,'FORMAT_ITALIC')),_0x34bf63('underline',o(_0x3d993b,'FORMAT_UNDERLINE')),_0x34bf63('code',o(_0x3d993b,'FORMAT_CODE')),_0x34bf63('strikethrough',o(_0x3d993b,'FORMAT_STRIKETHROUGH')),_0x34bf63('subscript',o(_0x3d993b,'FORMAT_SUBSCRIPT')),_0x34bf63('superscript',o(_0x3d993b,'FORMAT_SUPERSCRIPT'));}}class U extends _0x27f707{['afterInit'](){const _0x105ca9=this['editor'],_0x2279b5=_0x105ca9['locale'];if(!_0x105ca9['plugins']['has']('BlockQuoteEditing'))return;const _0x34e547=_0x105ca9['plugins']['get']('TrackChangesEditing'),_0x1fdb74=this['editor']['commands']['get']('blockQuote');_0x34e547['enableCommand']('blockQuote',(_0x4d256e,_0x2e036c={})=>{const _0x348040=this['editor']['model']['document']['selection'],_0x4f3e74=_0x2e036c&&void 0x0!==_0x2e036c['forceValue']?_0x2e036c['forceValue']:!_0x1fdb74['value'];let _0xda6fb=[];if(_0x4f3e74){const _0x504751=Array['from'](_0x348040['getSelectedBlocks']())['filter'](_0x370dbf=>oo(_0x370dbf)||function(_0x4b7e1d,_0x27084f){const _0x1fc652=_0x27084f['checkChild'](_0x4b7e1d['parent'],'blockQuote'),_0x48288b=_0x27084f['checkChild'](['$root','blockQuote'],_0x4b7e1d);return _0x1fc652&&_0x48288b;}(_0x370dbf,this['editor']['model']['schema']));_0xda6fb=to(_0x504751,_0x105ca9['model']);}else{const _0x46fbe0=Array['from'](_0x348040['getSelectedBlocks']())['filter'](_0x4f02d1=>oo(_0x4f02d1));_0xda6fb=to(_0x46fbe0,_0x105ca9['model']);}_0x105ca9['model']['change'](()=>{for(const _0xbd8214 of _0xda6fb)_0x34e547['markBlockFormat'](_0xbd8214,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4f3e74}]});});}),_0x34e547['descriptionFactory']['registerDescriptionCallback'](_0xae1225=>{const {data:_0xfc0f64}=_0xae1225;if(_0xfc0f64&&'blockQuote'==_0xfc0f64['commandName']){const _0x3daf83=o(_0x2279b5,'ELEMENT_BLOCK_QUOTE');return _0xfc0f64['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2279b5,'*Set\x20format:*\x20%0',_0x3daf83)}:{'type':'format','content':o(_0x2279b5,'*Remove\x20format:*\x20%0',_0x3daf83)};}});}}function oo(_0x5dfb59){return'blockQuote'==_0x5dfb59['parent']['name'];}class V extends _0x27f707{['afterInit'](){const _0x16caf2=this['editor'],_0x503768=_0x16caf2['locale'],_0x49ee43=_0x16caf2['plugins']['get']('TrackChangesEditing');_0x16caf2['plugins']['has']('BookmarkEditing')&&(_0x49ee43['enableCommand']('insertBookmark'),_0x49ee43['enableDefaultAttributesIntegration']('updateBookmark'),_0x49ee43['registerBlockAttribute']('bookmarkId'),_0x49ee43['descriptionFactory']['registerDescriptionCallback'](_0x389ce7=>{if('insertion'!=_0x389ce7['type']&&'deletion'!=_0x389ce7['type']&&'attribute'!=_0x389ce7['type'])return;const _0x1ffe01=_0x389ce7['getContainedElement']();if(null==_0x1ffe01)return;if(!_0x1ffe01['is']('element','bookmark'))return;const _0x376d88=_0x1ffe01['getAttribute']('bookmarkId');if('insertion'==_0x389ce7['type'])return{'type':'insertion','content':o(_0x503768,'*Insert:*\x20%0','\x22'+_0x376d88+'\x22\x20'+o(_0x503768,'ELEMENT_BOOKMARK'))};if('deletion'==_0x389ce7['type'])return{'type':'deletion','content':o(_0x503768,'*Remove:*\x20%0','\x22'+_0x376d88+'\x22\x20'+o(_0x503768,'ELEMENT_BOOKMARK'))};const {data:_0x1b160d}=_0x389ce7;if(!_0x1b160d||'bookmarkId'!=_0x1b160d['key'])return;return{'type':'format','content':o(_0x503768,'*Set\x20bookmark:*\x20%0','\x22'+_0x1b160d['newValue']+'\x22')};}));}}class F extends _0x27f707{['afterInit'](){const _0x5ce222=this['editor'];_0x5ce222['plugins']['has']('CaseChange')&&(_0x5ce222['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5ce222['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5ce222['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x27f707{['afterInit'](){const _0x6423ba=this['editor'];_0x6423ba['commands']['get']('ckbox')&&_0x6423ba['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x27f707{['afterInit'](){const _0x66cb9d=this['editor'];if(!_0x66cb9d['plugins']['has']('CodeBlock'))return;const _0xa1c8e3=_0x66cb9d['plugins']['get']('TrackChangesEditing'),_0x414b01=_0x66cb9d['locale'],_0x1247ee=_0x66cb9d['config']['get']('codeBlock')['languages'],_0x27e79b=_0x66cb9d['commands']['get']('codeBlock');_0xa1c8e3['enableCommand']('indentCodeBlock'),_0xa1c8e3['enableCommand']('outdentCodeBlock'),_0xa1c8e3['enableCommand']('codeBlock',(_0x3eb823,_0x120edc={})=>{const _0x36d53c=_0x66cb9d['model'],_0x1c387e=_0x66cb9d['model']['document']['selection'],_0x3b1420=_0x120edc&&void 0x0!==_0x120edc['forceValue']?_0x120edc['forceValue']:!_0x27e79b['value'];let _0x54e0b0;_0x120edc['language']||(_0x120edc['language']=_0x1247ee[0x0]['language']),_0x54e0b0=_0x3b1420?Array['from'](_0x1c387e['getSelectedBlocks']())['filter'](_0x16ce44=>co(_0x16ce44)||function(_0x1c7d9d,_0x4b8564){if(_0x1c7d9d['is']('rootElement')||_0x4b8564['isLimit'](_0x1c7d9d))return!0x1;return _0x4b8564['checkChild'](_0x1c7d9d['parent'],'codeBlock');}(_0x16ce44,_0x36d53c['schema'])):Array['from'](_0x1c387e['getSelectedBlocks']())['filter'](_0x5d5a29=>co(_0x5d5a29));const _0x10de03=to(_0x54e0b0,_0x36d53c);_0x36d53c['change'](()=>{for(const _0xd348d5 of _0x10de03)_0xa1c8e3['markBlockFormat'](_0xd348d5,{'commandName':'codeBlock','commandParams':[{..._0x120edc,'forceValue':_0x3b1420}],'formatGroupId':'blockName'});});}),(_0xa1c8e3['descriptionFactory']['registerElementLabel']('codeBlock',_0x23524f=>o(_0x414b01,'ELEMENT_CODE_BLOCK',_0x23524f)),_0xa1c8e3['descriptionFactory']['registerDescriptionCallback'](_0xc85fbe=>{if('formatBlock'!=_0xc85fbe['type'])return;const _0xa1e24f=_0x414b01['t'],{data:_0x428bd0}=_0xc85fbe;if(!_0x428bd0||'codeBlock'!=_0x428bd0['commandName'])return;const _0x2b0f46=_0x428bd0['commandParams'][0x0]['language'],_0x4f7d91=_0xa1e24f(_0x1247ee['find'](_0x1a8088=>_0x1a8088['language']===_0x2b0f46)['label'])['toLowerCase']();return _0x428bd0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x414b01,'*Set\x20format:*\x20%0',o(_0x414b01,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4f7d91+')')}:{'type':'format','content':o(_0x414b01,'*Remove\x20format:*\x20%0',o(_0x414b01,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x14fa01){return'codeBlock'==_0x14fa01['name'];}class J extends _0x27f707{['afterInit'](){const _0x1a4028=this['editor'];if(!_0x1a4028['plugins']['has']('CommentsEditing'))return;_0x1a4028['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xc387e1,_0x221ba1,_0x418f13){const _0x1bd8d2=[];for(const _0x33ea3f of _0x221ba1['getItems']())_0x33ea3f['hasAttribute'](_0xc387e1)&&_0x1bd8d2['push'](_0x418f13['createRangeOn'](_0x33ea3f));return _0x1bd8d2;}function De(_0x9f30b5,_0x16fb6b,{showActiveMarker:_0x111ba2=!0x0}={}){const _0x325e2a=_0x9f30b5['plugins']['get']('TrackChangesEditing');return(_0x30f4e3,_0xa0db5b,_0x10a1ca)=>{if(!_0x10a1ca['consumable']['test'](_0xa0db5b['markerRange'],_0x30f4e3['name']))return;const _0x46d02e=_0xa0db5b['markerRange']['getWalker'](),_0x24d36f=_0xa0db5b['markerRange']['start'],_0x5550e0=_0x9f30b5['model']['schema'];let _0x16e22b=null,_0x5c4f47=null,_0x3496e7=!0x1,_0x3d891a=!0x1;for(const _0x1139ba of _0x46d02e){const _0x992379=_0x1139ba['item'];_0x3496e7=_0x3496e7||_0x5550e0['isContent'](_0x992379);const _0x53f3a7=_0x10a1ca['mapper']['toViewElement'](_0x992379);if(_0x53f3a7&&_0x53f3a7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1139ba['type']&&(_0x5550e0['isBlock'](_0x992379)&&!_0x5550e0['isLimit'](_0x992379)&&(_0x992379['nextSibling']||_0x24d36f['isAtEnd']?_0x16e22b&&_0x16e22b['parent']==_0x992379||(_0x16e22b=_0x992379,_0x378c98(_0x1139ba['previousPosition']),_0x3d891a=!0x0):_0x5c4f47=_0x5c4f47||_0x1139ba['previousPosition']));}function _0x378c98(_0x115f30){const {id:_0x24eb98,authorId:_0x2b4a5c}=_0x325e2a['_splitMarkerName'](_0xa0db5b['markerName']),_0x13ba73=_0x10a1ca['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x16fb6b,'data-suggestion':_0x24eb98,'data-author-id':_0x2b4a5c}),_0x101060=_0x10a1ca['mapper']['toViewPosition'](_0x115f30);_0x111ba2&&_0x325e2a['activeMarkers']['includes'](_0xa0db5b['markerName'])&&_0x10a1ca['writer']['addClass']('ck-suggestion-marker--active',_0x13ba73),_0x10a1ca['writer']['insert'](_0x101060,_0x13ba73),_0x10a1ca['mapper']['bindElementToMarker'](_0x13ba73,_0xa0db5b['markerName']);}_0x3496e7||_0x3d891a||!_0x5c4f47||_0x378c98(_0x5c4f47);};}class K extends _0x27f707{static get['requires'](){return[_0x4dfb2b];}['init'](){const _0x1d8038=this['editor'],_0xa67d5f=_0x1d8038['plugins']['get']('TrackChangesEditing');_0xa67d5f['enableCommand']('delete');const _0x5eb061=_0x1d8038['commands']['get']('deleteForward');_0xa67d5f['enableCommand']('deleteForward',(_0x579e95,_0x58460d={})=>{const _0x575e95=_0x1d8038['model']['createSelection'](_0x1d8038['model']['document']['selection']);_0x575e95['isCollapsed']&&_0x1d8038['model']['modifySelection'](_0x575e95,{'direction':'forward','unit':_0x58460d['unit']});const _0x1ea165=_0x575e95['getFirstRange'](),_0x1a6900=_0x23c46b['fromRange'](_0x1ea165);let _0x36bb1c;_0x579e95(_0x58460d),_0x36bb1c='$graveyard'==_0x1a6900['root']['rootName']?_0x1d8038['model']['createRange'](_0x1ea165['start']):_0x1d8038['model']['createRange'](_0x1a6900['start'],_0x1a6900['end']),_0x1a6900['detach'](),_0x1d8038['model']['enqueueChange'](_0x5eb061['buffer']['batch'],_0x35a5ae=>{_0x5eb061['buffer']['lock'](),_0x35a5ae['setSelection'](_0x35a5ae['createRange'](_0x36bb1c['end'])),_0x5eb061['buffer']['unlock']();});}),_0x1d8038['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1d8038,'merge'),{'priority':'high'}),_0x1d8038['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x15d31c,_0xe7f8c5,_0x3df09b)=>{_0x3df09b['options']['showSuggestionHighlights']&&De(_0x1d8038,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x15d31c,_0xe7f8c5,_0x3df09b);},{'priority':'high'}),_0x1d8038['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x415d09,_0x210294,_0x3af941)=>{const _0x3bb4d9=_0x3af941['mapper']['markerNameToElements'](_0x210294['markerName']);if(_0x3bb4d9){for(const _0x4fb266 of _0x3bb4d9)_0x4fb266['is']('uiElement')&&(_0x3af941['mapper']['unbindElementFromMarkerName'](_0x4fb266,_0x210294['markerName']),_0x3af941['writer']['remove'](_0x4fb266));}},{'priority':'high'});}}class H extends _0x27f707{['afterInit'](){const _0x595115=this['editor'];if(!_0x595115['plugins']['has']('ListEditing'))return;const _0x5a85a8=_0x595115['locale'],_0xadde3f=_0x595115['plugins']['get']('TrackChangesEditing'),_0x52f287=_0x595115['plugins']['has']('TodoListEditing'),_0x3e1c11=!!_0x595115['config']['get']('list.multiBlock');function _0xbbfc10(_0x3af208){return{'type':'format','content':''+o(_0x5a85a8,'*Set\x20format:*\x20%0',_0x3af208)};}function _0x471172(_0x56b31a){return{'type':'format','content':''+o(_0x5a85a8,'*Remove\x20format:*\x20%0',_0x56b31a)};}_0xadde3f['enableDefaultAttributesIntegration']('numberedList'),_0xadde3f['enableDefaultAttributesIntegration']('bulletedList'),_0xadde3f['enableDefaultAttributesIntegration']('customNumberedList'),_0xadde3f['enableDefaultAttributesIntegration']('customBulletedList'),_0xadde3f['enableDefaultAttributesIntegration']('indentList'),_0xadde3f['enableDefaultAttributesIntegration']('outdentList'),_0xadde3f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xadde3f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xadde3f['registerBlockAttribute']('listItemId'),_0xadde3f['registerBlockAttribute']('listType'),_0xadde3f['registerBlockAttribute']('listIndent'),_0x3e1c11&&(_0xadde3f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xadde3f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x52f287&&(_0xadde3f['enableDefaultAttributesIntegration']('todoList'),_0xadde3f['enableDefaultAttributesIntegration']('checkTodoList'),_0xadde3f['registerBlockAttribute']('todoListChecked'),_0xadde3f['descriptionFactory']['registerDescriptionCallback'](_0x3ea7f1=>{const {data:_0x5212f8}=_0x3ea7f1;if(_0x5212f8&&'todoListChecked'==_0x5212f8['key'])return{'type':'format','content':_0x5212f8['newValue']?o(_0x5a85a8,'*Check\x20item*'):o(_0x5a85a8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2e1a04=>{if(_0x2e1a04['batch']['isUndo'])return!0x1;let _0x23f39b=!0x1;const _0x73b914=_0xadde3f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ee64a=>'todoListChecked'===_0xadde3f['_getAttributeKey'](_0x2ee64a));for(const _0x1547d3 of _0x73b914){'todo'!=_0x1547d3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xadde3f['_findSuggestions'](_0x1547d3['getFirstRange'](),'attribute')['find'](_0x5b4e93=>'listType'===_0xadde3f['_getAttributeKey'](_0x5b4e93['suggestion']))||(_0x2e1a04['removeMarker'](_0x1547d3['getFirstMarker']()),_0x23f39b=!0x0));}return _0x23f39b;})),_0xadde3f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5a85a8,'FORMAT_INDENT'));const _0x18e022={'type':'format','content':''};_0xadde3f['descriptionFactory']['registerDescriptionCallback'](_0x385cb5=>{const {data:_0x25e1e6}=_0x385cb5;if(!_0x25e1e6||'listType'!=_0x25e1e6['key'])return;let _0x1c3e66=_0x385cb5['head'];for(;_0x1c3e66;){if(_0x1c3e66['data']&&(('listStyle'==_0x1c3e66['data']['key']||'listMarkerStyle'==_0x1c3e66['data']['key'])&&(_0x1c3e66['data']['newValue']&&'default'!=_0x1c3e66['data']['newValue']||'default'!=_0x1c3e66['data']['oldValue']&&!_0x25e1e6['newValue'])||!_0x3e1c11&&_0x1c3e66['data']['key']==m))return _0x18e022;_0x1c3e66=_0x1c3e66['next'];}if(null==_0x25e1e6['newValue'])switch(_0x25e1e6['oldValue']){case'bulleted':return _0x471172(o(_0x5a85a8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x471172(o(_0x5a85a8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x471172(o(_0x5a85a8,'ELEMENT_TODO_LIST'));}switch(_0x25e1e6['newValue']){case'bulleted':return _0xbbfc10(o(_0x5a85a8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xbbfc10(o(_0x5a85a8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xbbfc10(o(_0x5a85a8,'ELEMENT_TODO_LIST'));}}),_0xadde3f['descriptionFactory']['registerDescriptionCallback'](_0x3dea9f=>{const {data:_0x3fd9b1}=_0x3dea9f;if(_0x3fd9b1&&'listIndent'==_0x3fd9b1['key'])return null==_0x3fd9b1['newValue']||null==_0x3fd9b1['oldValue']&&0x0==_0x3fd9b1['newValue']?_0x18e022:void 0x0;}),_0xadde3f['descriptionFactory']['registerDescriptionCallback'](_0x120549=>{if('attribute'!=_0x120549['type'])return;const {data:_0x284a52}=_0x120549;if(!_0x284a52||'listItemId'!=_0x284a52['key'])return;const _0xb4e9ee=Te(_0x120549);return'newValue'==_0xb4e9ee?{'type':'format','content':o(_0x5a85a8,'*Merge:*\x20list\x20item')}:'oldValue'==_0xb4e9ee?{'type':'format','content':o(_0x5a85a8,'*Split:*\x20list\x20item')}:_0x18e022;}),_0x595115['model']['document']['registerPostFixer'](_0x427606=>this['listItemIdFixer'](_0x427606)),_0x595115['model']['document']['registerPostFixer'](_0x1a1b6c=>this['noTrackChangesFixer'](_0x1a1b6c)),_0x595115['model']['document']['on']('change:data',(_0x293adf,_0xf9d5c0)=>{if(_0xf9d5c0['isUndo']||!_0xf9d5c0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x474e24){if(_0x474e24['batch']['isUndo']||!_0x474e24['batch']['isLocal'])return!0x1;let _0xfa8934=!0x1;const _0x5e4a7f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cd720=>_0x5cd720['data']&&'listItemId'==_0x5cd720['data']['key'])['filter'](_0x47e856=>_0x47e856['data']['newValue']&&_0x47e856['data']['oldValue']);for(const _0x436552 of _0x5e4a7f)Te(_0x436552)||(_0x474e24['removeMarker'](_0x436552['getFirstMarker']()),_0xfa8934=!0x0);return _0xfa8934;}['noTrackChangesFixer'](_0x18403f){if(_0x18403f['batch']['isUndo']||!_0x18403f['batch']['isLocal'])return!0x1;const _0x2a41b3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2a41b3['trackChangesCommand']['value'])return!0x1;let _0x4c9863=!0x1;const _0x2763d3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1171aa=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4f054e=>'attribute'==_0x4f054e['type'])['filter'](_0x5b1110=>_0x2763d3['includes'](_0x5b1110['attributeKey']));if(0x0==_0x1171aa['length'])return _0x4c9863;for(const _0x108a46 of _0x1171aa){const _0x18f104=_0x2a41b3['_findSuggestions'](_0x108a46['range'],'attribute')['filter'](_0x579ae5=>!_0x579ae5['meta']['isNextTo'])['map'](_0x39896f=>_0x39896f['suggestion'])['filter'](_0x83ecc1=>{const _0x2a65a2=_0x2a41b3['_getAttributeKey'](_0x83ecc1);return _0x2763d3['includes'](_0x2a65a2);});if(_0x18f104['length']){for(const _0x1020d6 of _0x18f104)_0x18403f['removeMarker'](_0x1020d6['getFirstMarker']());_0x4c9863=!0x0;}}return _0x4c9863;}['assureChains'](){const _0x3f2990=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42ba9d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x581cdc;const _0x4ec28b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1158ef=>{if(_0x1158ef['data']['oldRange']||!_0x1158ef['data']['newRange'])return null;if(!_0x1158ef['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x123f7c}=_0x3f2990['_splitMarkerName'](_0x1158ef['name']);if(!_0x3f2990['hasSuggestion'](_0x123f7c))return null;const _0x1d7b1b=_0x3f2990['getSuggestion'](_0x123f7c);return _0x42ba9d['includes'](_0x1d7b1b['data']['key']);})['map'](_0x1bdd4d=>{const {id:_0x24728f}=_0x3f2990['_splitMarkerName'](_0x1bdd4d['name']),_0x4a2c14=_0x3f2990['getSuggestion'](_0x24728f);return _0x581cdc=_0x4a2c14['attributes']['groupId'],_0x4a2c14['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4ec28b['size'])return;const _0x4c1388=_0x3f2990['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x528653=>'attribute'==_0x528653['type']&&_0x528653['data']&&_0x42ba9d['includes'](_0x528653['data']['key'])&&_0x528653['attributes']['groupId']!=_0x581cdc)['map'](_0x39cd5f=>({'listItem':_0x39cd5f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x39cd5f['attributes']['groupId']})),_0x58ff44=new Set();for(const {groupId:_0x168e8a,listItem:_0x4425ab}of _0x4c1388)_0x4ec28b['has'](_0x4425ab)&&_0x58ff44['add'](_0x168e8a);for(const _0x5d58a8 of _0x3f2990['getSuggestions']())_0x58ff44['has'](_0x5d58a8['attributes']['groupId'])&&_0x5d58a8['setAttribute']('groupId',_0x581cdc);}['_supportLegacySuggestions'](){const _0x1ee2f4=this['editor'],_0x2f0e25=_0x1ee2f4['locale'],_0x34d29e=_0x1ee2f4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x34d29e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5f12a5,_0x3060e7){const _0x50429f=[];for(let _0x3bc054 of _0x5f12a5)_0x3bc054['start']['nodeAfter']===_0x3bc054['end']['parent']&&(_0x3bc054=_0x1ee2f4['model']['createRange'](_0x1ee2f4['model']['createPositionAt'](_0x3bc054['start']['nodeAfter'],0x0))),_0x50429f['push'](_0x3bc054);_0x1ee2f4['model']['change'](_0x5a9a9f=>{const _0x69a7a0=_0x1ee2f4['model']['document']['selection'],_0x3ac47c=Array['from'](_0x69a7a0['getRanges']())['map'](_0x4c63ee=>_0x23c46b['fromRange'](_0x4c63ee));_0x5a9a9f['setSelection'](_0x50429f),_0x1ee2f4['commands']['get'](_0x3060e7['commandName'])['refresh'](),_0x3060e7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1ee2f4['execute'](_0x3060e7['commandName'],..._0x3060e7['commandParams']),_0x5a9a9f['setSelection'](_0x3ac47c);for(const _0x409c0d of _0x3ac47c)_0x409c0d['detach']();});}),_0x34d29e['descriptionFactory']['registerElementLabel'](function(_0x5523ea){const _0x4d9e64=!_0x1ee2f4['model']['schema']['isObject'](_0x5523ea),_0x4f8881=_0x5523ea['previousSibling'],_0x56e9d6=_0x5523ea['nextSibling'],_0x9f3c0d=_0x5523ea['getAttribute']('listItemId'),_0xff6134=!_0x4f8881||_0x4f8881['getAttribute']('listItemId')!==_0x9f3c0d,_0x38824f=!_0x56e9d6||_0x56e9d6['getAttribute']('listItemId')!==_0x9f3c0d;return _0x4d9e64&&Boolean(_0x9f3c0d)&&_0xff6134&&_0x38824f;},_0x523d30=>o(_0x2f0e25,'ELEMENT_LIST_ITEM',_0x523d30));}['_registerLegacyDescription'](){const _0x3f75e1=this['editor'],_0x83c745=_0x3f75e1['locale'];function _0x134c46(_0x5279de){const _0x66cb18=_0x3f75e1['commands']['get']('bulletedList')['value'],_0x1ac3cb=_0x3f75e1['commands']['get']('numberedList')['value'];return'numberedList'===_0x5279de?_0x66cb18:_0x1ac3cb;}_0x3f75e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x46d248){if('formatBlock'!=_0x46d248['type'])return;const {data:_0x2e1de9}=_0x46d248;if(!_0x2e1de9)return;let _0xb7cf8d,_0x3f02d6,_0xf5cc84,_0xc34492;switch(_0x2e1de9['commandName']){case'bulletedList':_0xf5cc84=_0x2e1de9['commandParams'][0x0]['forceValue'],_0xc34492=_0x134c46(_0x2e1de9['commandName']),_0xb7cf8d=_0xf5cc84?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xc34492&&_0x3f75e1['config']['get']('list.multiBlock')||(_0xb7cf8d='*Change\x20to:*\x20%0'),_0x3f02d6={'type':'format','content':o(_0x83c745,_0xb7cf8d,o(_0x83c745,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xf5cc84=_0x2e1de9['commandParams'][0x0]['forceValue'],_0xc34492=_0x134c46(_0x2e1de9['commandName']),_0xb7cf8d=_0xf5cc84?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xc34492&&_0x3f75e1['config']['get']('list.multiBlock')||(_0xb7cf8d='*Change\x20to:*\x20%0'),_0x3f02d6={'type':'format','content':o(_0x83c745,_0xb7cf8d,o(_0x83c745,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xb7cf8d='*Indent:*\x20%0',_0x3f02d6={'type':'format','content':o(_0x83c745,_0xb7cf8d,o(_0x83c745,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xb7cf8d=function(_0x5153dd){const _0x2c16de=_0x5153dd['getFirstRange']();let _0x3ede2c=_0x2c16de['start']['nodeAfter'];for(;_0x3ede2c&&_0x2c16de['containsItem'](_0x3ede2c);){if(_0x3ede2c['getAttribute']('listIndent')>0x0)return!0x1;_0x3ede2c=_0x3ede2c['nextSibling'];}return!0x0;}(_0x46d248)?o(_0x83c745,'*Format:*\x20remove\x20from\x20%0',o(_0x83c745,function(_0x3ab9b4){return'ELEMENT_'+_0x3ab9b4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x46d248))):o(_0x83c745,'*Outdent:*\x20%0',o(_0x83c745,'ELEMENT_LIST_ITEM')),_0x3f02d6={'type':'format','content':_0xb7cf8d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2e1de9['multipleBlocks']&&(_0xb7cf8d='*Merge:*\x20%0',_0x3f02d6={'type':'deletion','content':o(_0x83c745,_0xb7cf8d,o(_0x83c745,'ELEMENT_LIST_ITEM'))});}return _0x3f02d6;});}}function Te(_0x5313d3){let _0x1e3802=_0x5313d3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1e3802;){const _0x2c6307=_0x1e3802['getAttribute']('listItemId');if(!_0x2c6307)return!0x1;if(_0x2c6307==_0x5313d3['data']['newValue'])return'newValue';if(_0x2c6307==_0x5313d3['data']['oldValue'])return'oldValue';_0x1e3802=_0x1e3802['previousSibling'];}return!0x1;}class q extends _0x27f707{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2df5c0=this['editor']['config']['get']('list.properties'),_0x9dc39b=this['editor']['plugins']['get']('TrackChangesEditing');_0x2df5c0['styles']&&(_0x9dc39b['enableDefaultAttributesIntegration']('listStyle'),_0x9dc39b['registerBlockAttribute']('listStyle')),_0x2df5c0['reversed']&&(_0x9dc39b['enableDefaultAttributesIntegration']('listReversed'),_0x9dc39b['registerBlockAttribute']('listReversed')),_0x2df5c0['startIndex']&&(_0x9dc39b['enableDefaultAttributesIntegration']('listStart'),_0x9dc39b['registerBlockAttribute']('listStart'));const _0x2f8ae6={'type':'format','content':''};_0x9dc39b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x494e22=this['editor']['locale'];_0x9dc39b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x494e22,'FORMAT_LIST_REVERSED')),_0x9dc39b['descriptionFactory']['registerDescriptionCallback'](_0x28102a=>{const {data:_0x24c65d}=_0x28102a;if(_0x24c65d&&'listReversed'==_0x24c65d['key'])return null==_0x24c65d['newValue']||0x0==_0x24c65d['newValue']&&null==_0x24c65d['oldValue']?_0x2f8ae6:void 0x0;}),_0x9dc39b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x494e22,'FORMAT_LIST_START')),_0x9dc39b['descriptionFactory']['registerDescriptionCallback'](_0x2f0124=>{const {data:_0x2cb36a}=_0x2f0124;if(_0x2cb36a&&'listStart'==_0x2cb36a['key'])return null==_0x2cb36a['newValue']||0x1==_0x2cb36a['newValue']&&null==_0x2cb36a['oldValue']?_0x2f8ae6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3d7b10=>{if(_0x3d7b10['batch']['isUndo'])return!0x1;let _0xd41155=!0x1;const _0x4ade29=_0x9dc39b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b546c=>{const _0x32ce44=_0x9dc39b['_getAttributeKey'](_0x2b546c);return'listStart'==_0x32ce44||'listReversed'==_0x32ce44;});for(const _0x531961 of _0x4ade29){const _0x49b005=_0x531961['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x49b005||'customNumbered'==_0x49b005)continue;_0x9dc39b['_findSuggestions'](_0x531961['getFirstRange'](),'attribute')['find'](_0x36a6e2=>'listType'==_0x9dc39b['_getAttributeKey'](_0x36a6e2['suggestion']))||(_0x3d7b10['removeMarker'](_0x531961['getFirstMarker']()),_0xd41155=!0x0);}return _0xd41155;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2c6d93){const _0x660d12=this['editor']['locale'],{data:_0x82f0aa}=_0x2c6d93,_0x3d53f5={'type':'format','content':''};if(!_0x82f0aa||'listStyle'!=_0x82f0aa['key'])return;if(!_0x82f0aa['oldValue'])return'default'==_0x82f0aa['newValue']?_0x3d53f5:{'type':'format','content':''+o(_0x660d12,'*Set\x20format:*\x20%0',o(_0x660d12,this['_getTranslationKeyForListStyle'](_0x82f0aa['newValue'])))};if(!_0x82f0aa['newValue']){if('default'==_0x82f0aa['oldValue'])return _0x3d53f5;let _0x30efae=_0x2c6d93['head'];for(;_0x30efae;){if(_0x30efae['data']&&'listType'==_0x30efae['data']['key']&&_0x30efae['data']['newValue'])return _0x3d53f5;_0x30efae=_0x30efae['next'];}return{'type':'format','content':''+o(_0x660d12,'*Remove\x20format:*\x20%0',o(_0x660d12,this['_getTranslationKeyForListStyle'](_0x82f0aa['oldValue'])))};}if('default'!=_0x82f0aa['newValue'])return{'type':'format','content':''+o(_0x660d12,'*Set\x20format:*\x20%0',o(_0x660d12,this['_getTranslationKeyForListStyle'](_0x82f0aa['newValue'])))};let _0x422652=_0x2c6d93['head'];for(;_0x422652;){if(_0x422652['data']&&'listType'==_0x422652['data']['key']&&_0x422652['data']['newValue']&&_0x422652['data']['oldValue'])return _0x3d53f5;_0x422652=_0x422652['next'];}return{'type':'format','content':o(_0x660d12,'*Set\x20format:*\x20%0',o(_0x660d12,'ELEMENT_'+_0x2c6d93['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x13f3c2=this['editor'],_0x36cb27=_0x13f3c2['locale'];_0x13f3c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc2c03c=>{if('formatBlock'!=_0xc2c03c['type'])return;const {data:_0x3cdbf6}=_0xc2c03c;if(!_0x3cdbf6)return;let _0x15d056,_0x198f9e;switch(_0x3cdbf6['commandName']){case'listStyle':_0x15d056='*Change\x20to:*\x20%0',_0x198f9e={'type':'format','content':o(_0x36cb27,_0x15d056,o(_0x36cb27,this['_getTranslationKeyForListStyle'](_0x3cdbf6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x15d056=_0x3cdbf6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x198f9e={'type':'format','content':o(_0x36cb27,_0x15d056)};break;case'listStart':_0x15d056='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x198f9e={'type':'format','content':o(_0x36cb27,_0x15d056,_0x3cdbf6['commandParams'][0x0]['startIndex'])};}return _0x198f9e;});}['_getTranslationKeyForListStyle'](_0x2a8668){return'ELEMENT_'+function(_0x43b92a){if(Se['includes'](_0x43b92a))return'bulleted';if(_e['includes'](_0x43b92a))return'numbered';return null;}(_0x2a8668)['toUpperCase']()+'_LIST_'+_0x2a8668['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x27f707{['afterInit'](){const _0x4e131c=this['editor'];_0x4e131c['commands']['get']('emoji')&&_0x4e131c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x27f707{static get['requires'](){return[_0x3f7cbd];}['init'](){const _0x56582=this['editor'],_0x3e9884=_0x56582['plugins']['get']('TrackChangesEditing'),_0x3b8842=_0x56582['commands']['get']('enter');_0x3e9884['enableCommand']('enter',()=>{_0x56582['model']['change'](_0x95fac9=>{const _0x16ef50=_0x56582['model']['document']['selection'],_0x5584b4=_0x16ef50['getFirstPosition'](),_0x1da7f2=_0x23c46b['fromRange'](_0x16ef50['getFirstRange']());if(_0x3b8842['enterBlock'](_0x95fac9)){const _0x4fb98a=_0x56582['model']['createPositionAt'](_0x5584b4['parent']['nextSibling'],0x0),_0x372d98=_0x95fac9['createRange'](_0x5584b4,_0x4fb98a);_0x3e9884['markInsertion'](_0x372d98);}else _0x95fac9['setSelection'](_0x95fac9['createRange'](_0x1da7f2['end']));_0x1da7f2['detach'](),_0x3b8842['fire']('afterExecute',{'writer':_0x95fac9});});}),_0x56582['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x56582,'split'),{'priority':'high'}),_0x56582['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3c3318,_0x177fb2,_0x2be08d)=>{const _0x296d1a=_0x2be08d['mapper']['markerNameToElements'](_0x177fb2['markerName']);if(_0x296d1a){for(const _0x56aac0 of _0x296d1a)_0x56aac0['hasClass']('ck-suggestion-marker-split')&&(_0x2be08d['mapper']['unbindElementFromMarkerName'](_0x56aac0,_0x177fb2['markerName']),_0x2be08d['writer']['remove'](_0x56aac0));}},{'priority':'high'}),_0x56582['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2bfc56,_0x772788,_0x4e94d8)=>{_0x4e94d8['options']['showSuggestionHighlights']&&De(_0x56582,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2bfc56,_0x772788,_0x4e94d8);},{'priority':'high'});}}class Q extends _0x27f707{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1849cf=this['editor']['plugins']['get']('TrackChangesEditing');_0x1849cf['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1849cf['enableCommand']('findNext'),_0x1849cf['enableCommand']('findPrevious'),_0x1849cf['enableCommand']('replace'),_0x1849cf['enableCommand']('replaceAll');}['handleFindCommand'](_0x1d35dc,_0x7934fb,_0x5c4fcb={}){const _0xc6329=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1d35dc(_0x11fe99=>{let _0x15f67d=('string'==typeof _0x7934fb?_0xc6329['findByTextCallback'](_0x7934fb,_0x5c4fcb):_0x7934fb)(_0x11fe99);Array['isArray'](_0x15f67d)&&(_0x15f67d={'results':_0x15f67d,'searchText':'string'==typeof _0x7934fb?_0x7934fb:''});const _0x1b081a=_0x15f67d['results']['filter'](_0x5eeac6=>!0x1===this['_isInDeletionRange'](_0x5eeac6,_0x11fe99['item']));return{..._0x15f67d,'results':_0x1b081a};},_0x5c4fcb);}['_isInDeletionRange'](_0x315324,_0x55ce88){const _0x3e7a4a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x55ce88,_0x315324['start']),this['editor']['model']['createPositionAt'](_0x55ce88,_0x315324['end']));for(const _0x2f2a0e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3e7a4a['getIntersection'](_0x2f2a0e['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x27f707{['afterInit'](){const _0x3da651=this['editor']['locale'],_0x2e7ef7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5a664f,commandName:_0x33cea5}of eo)this['editor']['plugins']['has'](_0x5a664f)&&(_0x2e7ef7['enableDefaultAttributesIntegration'](_0x33cea5),_0x2e7ef7['registerInlineAttribute'](_0x33cea5));_0x2e7ef7['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3da651,'FORMAT_FONT_SIZE')),_0x2e7ef7['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3da651,'FORMAT_FONT_FAMILY')),_0x2e7ef7['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3da651,'FORMAT_FONT_COLOR')),_0x2e7ef7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3da651,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d5ea5=this['editor'],_0x2935fe=_0x4d5ea5['locale'];_0x4d5ea5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21d59e=>{const _0x47f93a=_0x2935fe['t'];if('formatInline'!=_0x21d59e['type'])return;const {data:_0x143634}=_0x21d59e;if(null!=_0x143634){if('fontSize'==_0x143634['commandName']){const _0x5e5fdc=_0x143634['commandParams'][0x0]['value'];if(_0x5e5fdc){const _0x4f7002=_0x47f93a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x31a1eb=>_0x31a1eb['model']==_0x5e5fdc)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2935fe,'*Set\x20font\x20size:*\x20%0',_0x4f7002)};}return{'type':'format','content':o(_0x2935fe,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x143634['commandName']){const _0x5444d3=_0x143634['commandParams'][0x0]['value'];return _0x5444d3?{'type':'format','content':o(_0x2935fe,'*Set\x20font\x20family:*\x20%0',_0x5444d3)}:{'type':'format','content':o(_0x2935fe,'*Reset\x20font\x20family*')};}if('fontColor'==_0x143634['commandName']){const _0x1c3550=_0x143634['commandParams'][0x0]['value'];if(_0x1c3550){const _0x582a5b=_0x3cf48c(this['editor']['config']['get']('fontColor.colors'))['find'](_0x476692=>_0x476692['model']==_0x1c3550);let _0x31058b=_0x1c3550,_0x4cdf9e='';return _0x582a5b&&(_0x31058b=_0x582a5b['label'],_0x4cdf9e=_0x47f93a(_0x31058b)['toLowerCase']()),{'type':'format','content':o(_0x2935fe,'*Set\x20font\x20color:*\x20%0',_0x4cdf9e)['trim'](),'color':{'value':_0x1c3550,'title':_0x4cdf9e||_0x31058b}};}return{'type':'format','content':o(_0x2935fe,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x143634['commandName']){const _0x1502f1=_0x143634['commandParams'][0x0]['value'];if(_0x1502f1){const _0x18f22c=_0x3cf48c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x28e9db=>_0x28e9db['model']==_0x1502f1);let _0x53194d=_0x1502f1,_0x139f94='';return _0x18f22c&&(_0x53194d=_0x18f22c['label'],_0x139f94=_0x47f93a(_0x53194d)['toLowerCase']()),{'type':'format','content':o(_0x2935fe,'*Set\x20font\x20background\x20color:*\x20%0',_0x139f94)['trim'](),'color':{'value':_0x1502f1,'title':_0x139f94||_0x53194d}};}return{'type':'format','content':o(_0x2935fe,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x27f707{['afterInit'](){const _0x2cfecb=this['editor'],_0x3a260f=_0x2cfecb['plugins']['get']('TrackChangesEditing'),_0x380393=_0x2cfecb['commands']['get']('copyFormat'),_0x5d64a7=_0x2cfecb['commands']['get']('pasteFormat');_0x380393&&_0x5d64a7&&(_0x3a260f['enableDefaultAttributesIntegration']('pasteFormat'),_0x3a260f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x325159=this['editor'],_0x50984c=_0x325159['locale'];_0x325159['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dd54b=>{if('formatBlock'!=_0x4dd54b['type']&&'formatInline'!=_0x4dd54b['type'])return;const {data:_0x1f0d76}=_0x4dd54b;if(_0x1f0d76&&'pasteFormat'===_0x1f0d76['commandName']){const _0x4dd27c=[],_0x50ff65=_0x1f0d76['commandParams'][0x0];for(const [_0x344960,_0x4ac1ed]of Object['entries'](_0x50ff65))_0x4dd27c['push'](ro(_0x325159,_0x344960,_0x4ac1ed));return _0x4dd27c['length']?{'type':'format','content':o(_0x50984c,'*Set\x20format\x20to:*\x20%0',_0x4dd27c['join'](',\x20'))}:{'type':'format','content':o(_0x50984c,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x151e47,_0x5b5b5d,_0x3051e5){const _0x4160a0=_0x151e47['locale']['t'],_0x5976b0=_0x5b5b5d['split'](/(?=[A-Z])/)['join']('\x20'),_0x11bdc9=_0x4160a0(_0x5976b0['charAt'](0x0)['toUpperCase']()+_0x5976b0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3051e5)return _0x11bdc9;if('fontColor'===_0x5b5b5d||'fontBackgroundColor'===_0x5b5b5d){const _0x78e1e3=_0x3cf48c(_0x151e47['config']['get']('fontColor.colors'))['find'](_0x511fd1=>_0x511fd1['model']==_0x3051e5);return _0x11bdc9+'\x20('+(_0x78e1e3?_0x4160a0(_0x78e1e3['label'])['toLowerCase']():_0x3051e5)+')';}if('fontSize'===_0x5b5b5d&&isNaN(parseFloat(_0x3051e5))){const _0x45e0c4=_0x151e47['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x151e47['config']['get']('fontSize.options'))['find'](_0x31a8fd=>_0x31a8fd['model']==_0x3051e5);return _0x11bdc9+'\x20('+(_0x45e0c4?_0x4160a0(_0x45e0c4['title'])['toLowerCase']():_0x3051e5)+')';}return _0x11bdc9+'\x20('+_0x3051e5+')';}class Z extends _0x27f707{['_headingOptions'];['afterInit'](){const _0x43a904=this['editor'];if(!_0x43a904['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x43a904['config']['get']('heading.options');const _0x111214=_0x43a904['locale'],_0x40d037=_0x43a904['plugins']['get']('TrackChangesEditing');_0x40d037['enableDefaultAttributesIntegration']('heading');for(const _0xd7b6e0 of this['_headingOptions'])'paragraph'!=_0xd7b6e0['model']&&_0x40d037['descriptionFactory']['registerElementLabel'](_0xd7b6e0['model'],_0x2fa872=>{const _0x13640d=this['_getHeadingLevel'](_0xd7b6e0['model']);return null!==_0x13640d?_0x124bf3(_0x2fa872,_0x13640d):_0x530c2f(_0x2fa872,_0xd7b6e0['title']);});function _0x124bf3(_0x42359b,_0x58e303){return o(_0x111214,'ELEMENT_HEADING',[_0x42359b,_0x58e303]);}function _0x530c2f(_0x4f3e65,_0x437a97){return o(_0x111214,'ELEMENT_HEADING_CUSTOM',[_0x4f3e65,_0x437a97]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42a7c5=this['editor'],_0x31efa6=_0x42a7c5['locale'];function _0x1848ff(_0x1384f4,_0x46e53f){return o(_0x31efa6,'ELEMENT_HEADING_CUSTOM',[_0x1384f4,_0x46e53f]);}_0x42a7c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2adc3d=>{if('formatBlock'!=_0x2adc3d['type'])return;const {data:_0x38a68d}=_0x2adc3d;if(_0x38a68d&&'heading'==_0x38a68d['commandName']){const _0x49f3bd=_0x38a68d['commandParams'][0x0]['value'],_0x3dc179=this['_getHeadingLevel'](_0x49f3bd);if(null!==_0x3dc179)return{'type':'format','content':o(_0x31efa6,'*Change\x20to:*\x20%0',(_0x550549=0x1,_0x47cf92=_0x3dc179,o(_0x31efa6,'ELEMENT_HEADING',[_0x550549,_0x47cf92])))};const _0x3f93f2=this['_headingOptions']['find'](_0x5b53fe=>_0x5b53fe['model']===_0x49f3bd)['title'];return{'type':'format','content':o(_0x31efa6,'*Change\x20to:*\x20%0',_0x1848ff(0x1,_0x3f93f2))};}var _0x550549,_0x47cf92;});}['_getHeadingLevel'](_0x4e8c42){const _0xd64a71=_0x4e8c42['match'](/^heading(\d+)/);if(_0xd64a71)return _0xd64a71[0x1];const _0x4bdb32=this['_headingOptions']?.['find'](_0x16ccf3=>_0x16ccf3['model']==_0x4e8c42);if(_0x4bdb32&&_0x4bdb32['view']){const _0x483e61=_0x4bdb32['view'],_0x3aad6d=(_0x483e61['name']??_0x483e61)['match'](/^h(\d+)/);if(_0x3aad6d)return _0x3aad6d[0x1];}return null;}}class tt extends _0x27f707{['afterInit'](){const _0x4ff8a3=this['editor'];if(!_0x4ff8a3['plugins']['has']('HighlightEditing'))return;const _0x3d4ec6=_0x4ff8a3['plugins']['get']('TrackChangesEditing'),_0x381278=_0x4ff8a3['locale'];_0x3d4ec6['enableDefaultAttributesIntegration']('highlight'),_0x3d4ec6['registerInlineAttribute']('highlight'),_0x3d4ec6['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x381278,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18b73c=this['editor'],_0x3d83ce=_0x18b73c['locale'];_0x18b73c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2603ac=>{if('formatInline'!=_0x2603ac['type'])return;const {data:_0x288828}=_0x2603ac;if(_0x288828&&'highlight'==_0x288828['commandName']){const _0x139b15=_0x3d83ce['t'],_0x5afb79=_0x288828['commandParams'][0x0]['value'];if(_0x5afb79){const _0x3b4a27=_0x18b73c['config']['get']('highlight.options')['find'](_0x65d49e=>_0x65d49e['model']==_0x5afb79),_0x300e82=_0x139b15(_0x3b4a27['title'])['toLowerCase']();return{'type':'format','content':o(_0x3d83ce,'*Set\x20highlight:*\x20%0',_0x300e82),'color':{'value':_0x3b4a27['color'],'title':_0x3b4a27['title']}};}return{'type':'format','content':o(_0x3d83ce,'*Remove\x20highlight*',o(_0x3d83ce,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x27f707{['afterInit'](){const _0x22e662=this['editor'];if(!_0x22e662['plugins']['has']('HorizontalLineEditing'))return;_0x22e662['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5857f1=_0x22e662['plugins']['get']('TrackChangesEditing'),_0x4871be=_0x22e662['locale'];_0x5857f1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x236a56=>o(_0x4871be,'ELEMENT_HORIZONTAL_LINE',_0x236a56)),_0x22e662['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xc8e64b,{writer:_0x1d07eb,options:_0x4e5d7a})=>{if(!_0x4e5d7a['showSuggestionHighlights'])return null;const _0x302b53=_0x1d07eb['createContainerElement']('div'),_0x596b5a=_0x1d07eb['createEmptyElement']('hr');return _0x1d07eb['addClass']('ck-horizontal-line',_0x302b53),_0x1d07eb['insert'](_0x1d07eb['createPositionAt'](_0x302b53,0x0),_0x596b5a),_0x302b53;},'converterPriority':'high'});}}class nt extends _0x27f707{['afterInit'](){const _0x31dea3=this['editor'];if(!_0x31dea3['plugins']['has']('HtmlEmbed'))return;const _0x1bde14=_0x31dea3['plugins']['get']('TrackChangesEditing'),_0x3bfff2=_0x31dea3['locale'];_0x1bde14['descriptionFactory']['registerElementLabel']('rawHtml',_0x11d06b=>o(_0x3bfff2,'ELEMENT_HTML_EMBED',_0x11d06b)),_0x1bde14['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1bde14['registerBlockAttribute']('value'),_0x1bde14['descriptionFactory']['registerDescriptionCallback'](_0x515949=>{if('attribute'!=_0x515949['type'])return;const {data:_0x291f0d}=_0x515949;if(_0x291f0d&&'value'==_0x291f0d['key']&&_0x515949['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2580d3=o(_0x3bfff2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3bfff2,'*Change\x20%0\x20content*',_0x2580d3)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d6380=this['editor'],_0x6a5f8=_0x3d6380['locale'];_0x3d6380['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cafb1=>{if('formatBlock'!=_0x2cafb1['type'])return;const {data:_0x28ecf1}=_0x2cafb1;if(_0x28ecf1&&'htmlEmbed'==_0x28ecf1['commandName']){const _0x396793=o(_0x6a5f8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x6a5f8,'*Change\x20%0\x20content*',_0x396793)};}});}}class et extends _0x27f707{['afterInit'](){const _0x577a52=this['editor'];if(!_0x577a52['plugins']['has']('ImageEditing'))return;const _0x24b18f=_0x577a52['plugins']['get']('TrackChangesEditing'),_0x29924d=_0x577a52['plugins']['get']('ImageUtils'),_0x560cdf=_0x577a52['locale'];_0x24b18f['enableCommand']('insertImage'),_0x24b18f['descriptionFactory']['registerElementLabel']('imageBlock',_0x17de1c=>o(_0x560cdf,'ELEMENT_IMAGE',_0x17de1c)),_0x24b18f['descriptionFactory']['registerElementLabel']('imageInline',_0x1b403a=>o(_0x560cdf,'ELEMENT_INLINE_IMAGE',_0x1b403a)),_0x24b18f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x560cdf,'ELEMENT_CAPTION')),_0x577a52['plugins']['has']('ImageUploadEditing')&&_0x24b18f['enableCommand']('uploadImage'),_0x577a52['plugins']['has']('ImageBlockEditing')&&_0x577a52['plugins']['has']('ImageInlineEditing')&&(_0x24b18f['enableCommand']('imageTypeInline',(_0x35a7e2,_0x47205e)=>{const _0x3a4f9c=_0x29924d['getClosestSelectedImageElement'](_0x577a52['model']['document']['selection']);_0x577a52['model']['change'](()=>{_0x24b18f['markBlockFormat'](_0x3a4f9c,{'commandName':'imageTypeInline','commandParams':[_0x47205e]},[],'convertBlockImageToInline');});}),_0x24b18f['enableCommand']('imageTypeBlock',(_0x419e80,_0x13117f)=>{_0x577a52['model']['change'](_0x503775=>{let _0x169d8b=_0x29924d['getClosestSelectedImageElement'](_0x577a52['model']['document']['selection']),_0x5ea599=_0x503775['createRangeOn'](_0x169d8b);const _0x18fd37=_0x3c1417['fromPosition'](_0x5ea599['start'],'toPrevious'),_0x5bb91b=_0x3c1417['fromPosition'](_0x5ea599['end'],'toNext');_0x24b18f['forceDefaultExecution'](()=>_0x419e80(_0x13117f)),_0x169d8b=_0x29924d['getClosestSelectedImageElement'](_0x577a52['model']['document']['selection']),_0x5ea599=_0x503775['createRangeOn'](_0x169d8b);const _0x1d9d04=_0x503775['createRange'](_0x18fd37,_0x5bb91b);_0x18fd37['detach'](),_0x5bb91b['detach'](),_0x24b18f['markBlockFormat'](_0x169d8b,{'commandName':'imageTypeInline','commandParams':[_0x13117f]},[],'convertInlineImageToBlock'),_0x1d9d04['start']['isBefore'](_0x5ea599['start'])&&_0x24b18f['markInsertion'](_0x503775['createRange'](_0x1d9d04['start'],_0x5ea599['start']),'convertInlineImageToBlock'),_0x5ea599['end']['isBefore'](_0x1d9d04['end'])&&_0x24b18f['markInsertion'](_0x503775['createRange'](_0x5ea599['end'],_0x1d9d04['end']),'convertInlineImageToBlock');});}),_0x24b18f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x24b18f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x24b18f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x24b18f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x24b18f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x24b18f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5baf58])=>{const _0x1b1d37=_0x24b18f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x19c09e=_0x5baf58['start'],_0x573815=_0x5baf58['end'];const _0x48a1a1=_0x577a52['model']['schema']['getNearestSelectionRange'](_0x19c09e,'backward'),_0x57960c=_0x577a52['model']['schema']['getNearestSelectionRange'](_0x573815,'forward');_0x48a1a1['isCollapsed']&&(_0x19c09e=_0x48a1a1['start']),_0x57960c['isCollapsed']&&(_0x573815=_0x57960c['end']),_0x1b1d37([_0x577a52['model']['createRange'](_0x19c09e,_0x573815)]);}),_0x24b18f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x34c421),_0x24b18f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x34c421)),_0x577a52['plugins']['has']('ImageCaptionEditing')&&(_0x24b18f['enableCommand']('toggleImageCaption',(_0x5601be,_0x3e919e)=>{const _0x4cd41a=_0x577a52['plugins']['get']('ImageCaptionUtils');let _0x33d446=_0x29924d['getClosestSelectedImageElement'](_0x577a52['model']['document']['selection']),_0x50860b=_0x4cd41a['getCaptionFromImageModelElement'](_0x33d446);_0x577a52['model']['change'](()=>{if(_0x50860b)return void _0x24b18f['markDeletion'](_0x577a52['model']['createRangeOn'](_0x50860b));const _0x39494a=_0x29924d['isBlockImage'](_0x33d446);_0x5601be(_0x3e919e),_0x33d446=_0x29924d['getClosestSelectedImageElement'](_0x577a52['model']['document']['selection']),_0x50860b=_0x4cd41a['getCaptionFromImageModelElement'](_0x33d446),_0x24b18f['markInsertion'](_0x577a52['model']['createRangeOn'](_0x50860b),_0x39494a?null:'imageCaption');});}),_0x24b18f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x34c421));const _0x1a5426=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x196ded(_0x44df81,_0x213b6c){const _0xfa1a61=_0x1a5426['findIndex'](({type:_0x4cca3f,subType:_0x23ca9c})=>_0x44df81['type']==_0x4cca3f&&_0x44df81['subType']==_0x23ca9c),_0x43e000=_0x1a5426['findIndex'](({type:_0x4fa8ae,subType:_0x320291})=>_0x213b6c['type']==_0x4fa8ae&&_0x213b6c['subType']==_0x320291);if(_0xfa1a61<0x0||_0x43e000<0x0)return!0x1;const _0x5e99bc=_0x44df81['getFirstRange'](),_0x441619=_0x213b6c['getFirstRange']();if((0x0==_0xfa1a61||0x1==_0xfa1a61)&&0x2==_0x43e000&&_0x5e99bc['isIntersecting'](_0x441619))return!0x0;if(0x2==_0xfa1a61&&0x3==_0x43e000){const _0x1a1d56=_0x24b18f['_findSuggestions'](_0x5e99bc,'insertion')['filter'](({suggestion:_0x34ebe4,meta:_0x5e83d2})=>_0x5e83d2['isOwn']&&'convertInlineImageToBlock'==_0x34ebe4['subType']);if(_0x1a1d56['length']>0x1&&_0x441619['end']['isEqual'](_0x5e99bc['start']))return!0x0;if(0x1==_0x1a1d56['length']&&(_0x5e99bc['start']['isEqual'](_0x441619['end'])||_0x5e99bc['end']['isEqual'](_0x441619['start'])))return!0x0;}if(0x3==_0xfa1a61&&0x3==_0x43e000&&_0x5e99bc['start']['isBefore'](_0x441619['start'])){const _0x587ddf=_0x5e99bc['end']['nodeAfter'],_0x13b7c1=_0x441619['start']['nodeBefore'];return _0x29924d['isBlockImage'](_0x587ddf)&&_0x587ddf===_0x13b7c1;}return!0x1;}function _0x34c421(_0x3b4fcf,_0x215e3a){return _0x196ded(_0x3b4fcf,_0x215e3a)?[_0x3b4fcf,_0x215e3a]:_0x196ded(_0x215e3a,_0x3b4fcf)?[_0x215e3a,_0x3b4fcf]:null;}_0x577a52['plugins']['has']('ImageResize')&&(_0x24b18f['enableDefaultAttributesIntegration']('resizeImage'),_0x24b18f['registerBlockAttribute']('resizedWidth'),_0x24b18f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x560cdf,'FORMAT_IMAGE_SIZE'))),_0x577a52['plugins']['has']('ImageTextAlternativeEditing')&&(_0x24b18f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x24b18f['registerBlockAttribute']('alt')),_0x577a52['plugins']['has']('PictureEditing')&&(_0x24b18f['registerBlockAttribute']('sources'),_0x24b18f['descriptionFactory']['registerDescriptionCallback'](_0x369ea0=>{if('attribute'!=_0x369ea0['type'])return;const {data:_0x26b150}=_0x369ea0;return _0x26b150&&'sources'==_0x26b150['key']?{'type':'format','content':''}:void 0x0;})),_0x577a52['plugins']['has']('ImageSizeAttributes')&&(_0x24b18f['registerBlockAttribute']('width'),_0x24b18f['registerBlockAttribute']('height'),_0x24b18f['descriptionFactory']['registerDescriptionCallback'](_0x276f3e=>{if('attribute'!=_0x276f3e['type'])return;const {data:_0x252807}=_0x276f3e;return!_0x252807||'width'!=_0x252807['key']&&'height'!=_0x252807['key']?void 0x0:{'type':'format','content':''};})),_0x24b18f['descriptionFactory']['registerDescriptionCallback'](_0x17b719=>{if(!!_0x1a5426['find'](({type:_0xf4a85d,subType:_0x1673e6})=>_0x17b719['type']==_0xf4a85d&&_0x17b719['subType']==_0x1673e6))return _0x17b719['previous']?{}:void 0x0;}),_0x24b18f['descriptionFactory']['registerDescriptionCallback'](_0x5eaee=>{if('insertion'==_0x5eaee['type']||'deletion'==_0x5eaee['type']){const _0x3deacb=_0x5eaee['getContainedElement']();if(_0x3deacb&&_0x3deacb['is']('element','caption'))return{'type':'insertion'==_0x5eaee['type']?'addObject':'removeObject','element':_0x3deacb,'quantity':0x1};}}),_0x24b18f['descriptionFactory']['registerDescriptionCallback'](_0x408283=>'formatBlock'==_0x408283['type']&&'convertInlineImageToBlock'==_0x408283['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x408283['type']&&'convertBlockImageToInline'==_0x408283['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x24b18f['descriptionFactory']['registerDescriptionCallback'](_0x4e90d9=>{if('attribute'!=_0x4e90d9['type'])return;const {data:_0x8c32c2}=_0x4e90d9;if(!_0x8c32c2||'alt'!=_0x8c32c2['key'])return;const _0x275287=_0x8c32c2['newValue'];return _0x275287?{'type':'format','content':o(_0x560cdf,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x275287+'\x22')}:{'type':'format','content':o(_0x560cdf,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12571e=this['editor'],_0x4a4c84=_0x12571e['locale'];_0x12571e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a69e6=>{if('formatBlock'!=_0x1a69e6['type']&&'formatInline'!=_0x1a69e6['type'])return;const {data:_0x1d8106}=_0x1a69e6;if(_0x1d8106){if('imageTextAlternative'==_0x1d8106['commandName']){const _0xa4a5a3=_0x1d8106['commandParams'][0x0]['newValue'];return _0xa4a5a3?{'type':'format','content':o(_0x4a4c84,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xa4a5a3+'\x22')}:{'type':'format','content':o(_0x4a4c84,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1d8106['commandName']){const _0x46fb0a=_0x1d8106['commandParams'][0x0]['width'];return _0x46fb0a?{'type':'format','content':o(_0x4a4c84,'*Set\x20image\x20width:*\x20%0',_0x46fb0a)}:{'type':'format','content':o(_0x4a4c84,'*Reset\x20image\x20width*')};}}});}}class st extends _0x27f707{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4923c8=this['editor']['locale'],_0x1c541a=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c541a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1c541a['registerBlockAttribute']('src'),_0x1c541a['descriptionFactory']['registerDescriptionCallback'](_0x3067cc=>{if('attribute'!=_0x3067cc['type'])return;const {data:_0x51602b}=_0x3067cc;return _0x51602b&&'src'==_0x51602b['key']?_0x51602b['newValue']&&_0x51602b['oldValue']?{'type':'format','content':o(_0x4923c8,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3efeba=this['editor']['plugins']['get']('TrackChangesEditing');_0x3efeba['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3efeba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3efeba['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3efeba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x254ec7=this['editor'],_0x4a06b3=_0x254ec7['locale'];_0x254ec7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x586790=>{if('formatBlock'!=_0x586790['type']&&'formatInline'!=_0x586790['type'])return;const {data:_0x42166e}=_0x586790;if(!_0x42166e||'replaceImageSource'!=_0x42166e['commandName'])return;return{'type':'format','content':o(_0x4a06b3,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x27f707{['afterInit'](){const _0x3d26cd=this['editor'];if(!_0x3d26cd['plugins']['has']('ImageStyleEditing'))return;const _0x350e93=_0x3d26cd['plugins']['get']('TrackChangesEditing'),_0x4cec64=_0x3d26cd['plugins']['get']('ImageUtils'),_0x47b43b={};_0x350e93['enableCommand']('imageStyle',(_0x55c2c0,_0x5cfff8)=>{const _0x393255=_0x3d26cd['plugins']['get']('Users')['me'],_0x569f95=_0x3d26cd['commands']['get']('imageStyle');let _0x35aa97=_0x4cec64['getClosestSelectedImageElement'](_0x3d26cd['model']['document']['selection']),_0xf6bc03=_0x3d26cd['model']['createRangeOn'](_0x35aa97),_0x1a9c59=_0x569f95['value'];if(_0x1a9c59==_0x5cfff8['value'])return;const _0x67d267={'commandName':'imageStyle','commandParams':[_0x5cfff8],'formatGroupId':_0x1f311e()};_0x3d26cd['model']['change'](()=>{if(_0x350e93['getSuggestions']()['filter'](_0x22a26b=>_0x22a26b['isInContent']&&_0x393255==_0x22a26b['author']&&('formatBlock'==_0x22a26b['type']||'formatInline'==_0x22a26b['type'])&&('imageStylePreApply'==_0x22a26b['subType']||'imageStylePostApply'==_0x22a26b['subType'])&&_0x22a26b['getFirstRange']()['isEqual'](_0xf6bc03))['forEach'](_0x40b101=>_0x350e93['discardSuggestion'](_0x40b101['head'])),_0x35aa97=_0x4cec64['getClosestSelectedImageElement'](_0x3d26cd['model']['document']['selection']),_0xf6bc03=_0x3d26cd['model']['createRangeOn'](_0x35aa97),_0x569f95['refresh'](),_0x3d26cd['commands']['get']('imageTypeInline')['refresh'](),_0x3d26cd['commands']['get']('imageTypeBlock')['refresh'](),_0x1a9c59=_0x569f95['value'],_0x1a9c59!=_0x5cfff8['value'])return _0x4cec64['isInlineImage'](_0x35aa97)&&_0x569f95['shouldConvertImageType'](_0x5cfff8['value'],_0x35aa97)?(_0x55c2c0({..._0x5cfff8,'setImageSizes':!0x1}),_0x35aa97=_0x4cec64['getClosestSelectedImageElement'](_0x3d26cd['model']['document']['selection']),void _0x350e93['markBlockFormat'](_0x35aa97,{..._0x67d267,'commandReversedParams':[{'value':_0x1a9c59||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4cec64['isBlockImage'](_0x35aa97)?_0x350e93['markBlockFormat'](_0x35aa97,_0x67d267,[],'imageStylePostApply'):_0x350e93['markInlineFormat'](_0xf6bc03,_0x67d267,'imageStylePostApply'));});});for(const _0xa304c6 of _0x3d26cd['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x47b43b[_0xa304c6['name']]=_0xa304c6['title']['toLowerCase']();_0x350e93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x350e93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x350e93['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x350e93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xe22d60])=>{_0x4cec64['setImageNaturalSizeAttributes'](_0xe22d60['getContainedElement']());}),_0x350e93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x384c51,_0x41c780)=>{_0x350e93['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x384c51,{'commandName':_0x41c780['commandName'],'commandParams':_0x41c780['commandReversedParams']});}),_0x350e93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x194a4b,_0x13efdb){if(_0x3f803e(_0x194a4b,_0x13efdb))return[_0x194a4b,_0x13efdb];if(_0x3f803e(_0x13efdb,_0x194a4b))return[_0x13efdb,_0x194a4b];return null;});const _0x2ccba0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3f803e(_0x127a46,_0x33766f){const _0x2bfc01=_0x2ccba0['findIndex'](({type:_0x5e63a4,subType:_0x434407})=>_0x127a46['type']==_0x5e63a4&&_0x127a46['subType']==_0x434407),_0x1dce01=_0x2ccba0['findIndex'](({type:_0x1cbf51,subType:_0x343818})=>_0x33766f['type']==_0x1cbf51&&_0x33766f['subType']==_0x343818);if(_0x2bfc01<0x0||_0x1dce01<0x0)return!0x1;const _0x2658de=_0x127a46['getFirstRange'](),_0x52dd62=_0x33766f['getFirstRange']();if((0x0==_0x2bfc01||0x1==_0x2bfc01)&&0x2==_0x1dce01&&_0x2658de['isIntersecting'](_0x52dd62))return!0x0;if(0x2==_0x2bfc01&&0x3==_0x1dce01){const _0x42bfaa=_0x350e93['_findSuggestions'](_0x2658de,'insertion')['filter'](({suggestion:_0x4d0a51,meta:_0x502869})=>_0x502869['isOwn']&&'convertInlineImageToBlock'==_0x4d0a51['subType']);if(_0x42bfaa['length']>0x1&&_0x52dd62['end']['isEqual'](_0x2658de['start']))return!0x0;if(0x1==_0x42bfaa['length']&&(_0x2658de['start']['isEqual'](_0x52dd62['end'])||_0x2658de['end']['isEqual'](_0x52dd62['start'])))return!0x0;}if(0x3==_0x2bfc01&&0x3==_0x1dce01&&_0x2658de['start']['isBefore'](_0x52dd62['start'])){const _0x4e5b08=_0x2658de['end']['nodeAfter'],_0x1853ed=_0x52dd62['start']['nodeBefore'];return _0x4cec64['isBlockImage'](_0x4e5b08)&&_0x4e5b08===_0x1853ed;}return!0x1;}_0x3d26cd['model']['document']['registerPostFixer'](()=>{let _0x4c17c0=!0x1;const _0x2c01a0=Array['from'](_0x3d26cd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b0040,data:_0x395a06}of _0x2c01a0){const {group:_0xdb8693,type:_0x5343ec,subType:_0xe0b7e3,id:_0x34f173}=_0x350e93['_splitMarkerName'](_0x2b0040);if('suggestion'==_0xdb8693&&_0x350e93['hasSuggestion'](_0x34f173)){if('formatBlock'==_0x5343ec&&('imageStylePreApply'==_0xe0b7e3||'imageStylePostApply'==_0xe0b7e3)){const _0x4e0c6e=_0x350e93['getSuggestion'](_0x34f173);if(_0x395a06['newRange']){const _0xd25c7f=_0x4e0c6e['getFirstRange']()['getContainedElement']();if(_0x4cec64['isBlockImage'](_0xd25c7f))continue;_0x350e93['discardSuggestion'](_0x4e0c6e),_0x4c17c0=!0x0;}}if('insertion'==_0x5343ec&&'imageCaption'==_0xe0b7e3&&!_0x395a06['newRange']){const _0x1b03d8=_0x350e93['getSuggestion'](_0x34f173);_0x1b03d8['next']&&_0x1b03d8['next']['isInContent']&&(_0x350e93['discardSuggestion'](_0x1b03d8['next']),_0x4c17c0=!0x0);}}}return _0x4c17c0;}),this['_registerLegacyDescription'](_0x47b43b);}['_registerLegacyDescription'](_0xfcc86c){const _0x45fc14=this['editor'],_0x4be17d=_0x45fc14['locale'];_0x45fc14['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15181e=>{if('formatBlock'!=_0x15181e['type']&&'formatInline'!=_0x15181e['type'])return;const {data:_0x319ab7}=_0x15181e;if(!_0x319ab7||'imageStyle'!=_0x319ab7['commandName'])return;const _0x4acfd4=_0x319ab7['commandParams'][0x0]['value'];return _0x527164('side'===_0x4acfd4?o(_0x4be17d,'FORMAT_SIDE_IMAGE'):_0xfcc86c[_0x4acfd4]||_0x4acfd4);function _0x527164(_0x40e6d8){return{'type':'format','content':o(_0x4be17d,'*Format:*\x20%0',_0x40e6d8)};}});}}class rt extends _0x27f707{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x25f757){super(_0x25f757),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x24e406=this['editor'],_0x4260b9=_0x24e406['commands']['get']('importWord'),_0x190119=_0x24e406['commands']['get']('trackChanges');_0x4260b9&&(_0x4260b9['on']('execute',(_0x286fa8,[,_0x4f8e19])=>{this['_trackChangesValueDuringImport']=_0x190119['value'],_0x4f8e19['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4260b9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4260b9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x190119['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x24e406['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x18d33a,_0x13d3f7){const {suggestions:_0x4cd49f}=_0x13d3f7,_0x17f532=this['editor']['commands']['get']('trackChanges'),_0x1f77fb=_0x17f532['value'];this['_trackChangesValueDuringImport']!==_0x1f77fb&&(_0x17f532['execute'](),this['_trackChangesExecuted']=!0x0),_0x4cd49f&&_0x4cd49f['forEach'](({id:_0x5660ef,type:_0x58283f,author:_0x117fea,created_at:_0x4f0401})=>{const _0x127a71={'id':_0x5660ef,'type':_0x58283f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x117fea,'createdAt':_0x4f0401?new Date(_0x4f0401):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x127a71);});}}class at extends _0x27f707{['afterInit'](){const _0x55d658=this['editor'],_0x503054=_0x55d658['plugins']['get']('TrackChangesEditing');if(_0x55d658['plugins']['has']('IndentEditing')&&(_0x503054['enableCommand']('indent'),_0x503054['enableCommand']('outdent')),_0x55d658['plugins']['has']('IndentBlock')){for(const _0x3029ff of['indentBlock','outdentBlock'])_0x503054['enableDefaultAttributesIntegration'](_0x3029ff);}const _0x53d1b2=_0x55d658['locale'];_0x503054['registerBlockAttribute']('blockIndent'),_0x503054['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x53d1b2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x154a87=this['editor'],_0x30677d=_0x154a87['locale'],_0x1524c0=_0x154a87['plugins']['get']('TrackChangesEditing');_0x1524c0['descriptionFactory']['registerDescriptionCallback'](_0x42a7b8=>{if('formatBlock'!=_0x42a7b8['type'])return;const {data:_0x2e14a0}=_0x42a7b8;if(!_0x2e14a0)return;if('indentBlock'!=_0x2e14a0['commandName']&&'outdentBlock'!=_0x2e14a0['commandName'])return;const _0x104af7=_0x42a7b8['getItems']()[0x0],_0x587a0f=_0x1524c0['descriptionFactory']['getItemLabel'](_0x104af7);return'indentBlock'==_0x2e14a0['commandName']?{'type':'format','content':o(_0x30677d,'*Indent:*\x20%0',_0x587a0f)}:'outdentBlock'==_0x2e14a0['commandName']?{'type':'format','content':o(_0x30677d,'*Outdent:*\x20%0',_0x587a0f)}:void 0x0;});}}class ct extends _0x27f707{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x27f707{['afterInit'](){const _0xc59011=this['editor'];if(!_0xc59011['plugins']['has']('LinkEditing'))return;const _0x42e478=_0xc59011['plugins']['get']('TrackChangesEditing'),_0x34b5fe=_0xc59011['commands']['get']('link');_0x42e478['enableDefaultAttributesIntegration']('link'),_0x42e478['enableDefaultAttributesIntegration']('unlink'),_0x42e478['registerInlineAttribute']('linkHref');for(const _0x5c7927 of _0x34b5fe['manualDecorators'])_0x42e478['registerInlineAttribute'](_0x5c7927['id']),_0x42e478['descriptionFactory']['registerAttributeLabel'](_0x5c7927['id'],'link\x20('+_0x5c7927['label']['toLowerCase']()+')');_0x42e478['descriptionFactory']['registerDescriptionCallback'](_0x2814d1=>{if('attribute'!=_0x2814d1['type'])return;const {data:_0x3be4b0}=_0x2814d1;if(!_0x3be4b0||'linkHref'!=_0x3be4b0['key'])return;const _0x30f5e7=_0x3be4b0['newValue'],_0x21e465=_0xc59011['locale'];return{'type':'format','content':null==_0x30f5e7?o(_0x21e465,'*Remove\x20link*'):o(_0x21e465,'*Set\x20link:*\x20%0','\x22'+_0x30f5e7+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1be8a0=this['editor'],_0x56107d=_0x1be8a0['locale'];_0x1be8a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40cfaa=>{if('formatInline'!=_0x40cfaa['type'])return;const {data:_0x5bf2ac}=_0x40cfaa;if(_0x5bf2ac){if('link'==_0x5bf2ac['commandName']){const _0x25186c=_0x5bf2ac['commandParams'][0x0];return{'type':'format','content':o(_0x56107d,'*Set\x20link:*\x20%0','\x22'+_0x25186c+'\x22')};}return'unlink'==_0x5bf2ac['commandName']?{'type':'format','content':o(_0x56107d,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x27f707{['afterInit'](){const _0xe4c7c8=this['editor'],_0xcd0441=_0xe4c7c8['locale'];if(!_0xe4c7c8['plugins']['has']('LegacyListEditing'))return;const _0x36afe1=_0xe4c7c8['plugins']['get']('TrackChangesEditing'),_0x19c770=_0xe4c7c8['plugins']['has']('LegacyTodoListEditing');function _0x2ae40e(_0x389772){return()=>{const _0x33a1c8=_0xe4c7c8['model']['document']['selection'],_0x437f59=_0xe4c7c8['commands']['get'](_0x389772);if(_0x437f59['value'])return void _0xe4c7c8['execute']('paragraph',{});const _0x9e7f41=_0x389772['slice'](0x0,-0x4),_0x20ecf2=function(_0x1957e7,_0x153072,_0x3c4733){let _0x5d6611=Array['from'](_0x1957e7)['filter'](_0x2116e2=>function(_0x53fe03,_0x1d6196){return _0x1d6196['checkChild'](_0x53fe03['parent'],'listItem')&&!_0x1d6196['isObject'](_0x53fe03);}(_0x2116e2,_0x3c4733));_0x5d6611=_0x5d6611['filter'](_0x189170=>!_0x189170['is']('element','listItem')||_0x189170['getAttribute']('listType')!=_0x153072);const _0x506ea3=new Set();for(const _0x3f6d32 of _0x5d6611)_0x3f6d32['is']('element','listItem')?_0x506ea3['add'](Le(_0x3f6d32)):_0x506ea3['add'](_0x3f6d32);return Array['from'](_0x506ea3);}(_0x33a1c8['getSelectedBlocks'](),_0x9e7f41,_0xe4c7c8['model']['schema']);_0xe4c7c8['model']['change'](()=>{for(const _0x2703e2 of _0x20ecf2)_0x36afe1['markBlockFormat'](_0x2703e2,{'commandName':_0x389772,'commandParams':[{'forceValue':!_0x437f59['value']}],'formatGroupId':'blockName'},Ee(_0x2703e2));});};}function _0xef8c2(_0x5290fd){return()=>{const _0x156e3b=function(_0x9278d9){let _0x3a7d11=Array['from'](_0x9278d9);const _0x504520=_0x3a7d11['findIndex'](_0x5423da=>'listItem'!=_0x5423da['name']);return _0x504520>-0x1&&(_0x3a7d11=_0x3a7d11['slice'](0x0,_0x504520)),_0x3a7d11;}(_0xe4c7c8['model']['document']['selection']['getSelectedBlocks']()),_0x9e6747=_0xe4c7c8['model']['createRange'](_0xe4c7c8['model']['createPositionAt'](_0x156e3b[0x0],'before'),_0xe4c7c8['model']['createPositionAt'](_0x156e3b[_0x156e3b['length']-0x1],'end'));_0xe4c7c8['model']['change'](()=>{_0x36afe1['markBlockFormat'](_0x9e6747,{'commandName':_0x5290fd,'commandParams':[],'formatGroupId':'listIndent'},function(_0x385bb8){const _0x128038=new Set();for(const _0x5f4e40 of _0x385bb8){let _0x4a1f46=_0x5f4e40['nextSibling'];for(;_0x4a1f46&&_0x4a1f46['getAttribute']('listIndent')>_0x5f4e40['getAttribute']('listIndent');)_0x128038['add'](_0x4a1f46),_0x4a1f46=_0x4a1f46['nextSibling'];}return Array['from'](_0x128038);}(_0x156e3b));});};}_0x36afe1['enableCommand']('numberedList',_0x2ae40e('numberedList')),_0x36afe1['enableCommand']('bulletedList',_0x2ae40e('bulletedList')),_0x19c770&&_0x36afe1['enableCommand']('todoList',_0x2ae40e('todoList')),_0x36afe1['enableCommand']('indentList',_0xef8c2('indentList')),_0x36afe1['enableCommand']('outdentList',_0xef8c2('outdentList')),_0x19c770&&_0x36afe1['enableCommand']('checkTodoList',()=>{const _0x24149c=_0xe4c7c8['commands']['get']('checkTodoList'),_0x1cfd61=Array['from'](_0x24149c['_selectedElements']);_0x1cfd61['filter'](_0x298d7e=>_0x298d7e['getAttribute']('todoListChecked')!=_0x24149c['value']),_0xe4c7c8['model']['change'](()=>{for(const _0x26e2e8 of _0x1cfd61)_0x36afe1['markBlockFormat'](_0x26e2e8,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x24149c['value']}]});});}),_0x36afe1['descriptionFactory']['registerElementLabel']('listItem',_0x3659ab=>o(_0xcd0441,'ELEMENT_LIST_ITEM',_0x3659ab)),_0x36afe1['descriptionFactory']['registerDescriptionCallback'](_0x4551c1=>{if('formatBlock'!=_0x4551c1['type']&&'formatInline'!=_0x4551c1['type'])return;const {data:_0x552168}=_0x4551c1;if(_0x552168){if('numberedList'==_0x552168['commandName']||'bulletedList'==_0x552168['commandName']||'todoList'==_0x552168['commandName'])switch(_0x552168['commandName']['replace']('List','')){case'bulleted':return _0x408cbd(o(_0xcd0441,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x408cbd(o(_0xcd0441,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x408cbd(o(_0xcd0441,'ELEMENT_TODO_LIST'));}if('indentList'==_0x552168['commandName'])return{'type':'format','content':o(_0xcd0441,'*Indent:*\x20%0',o(_0xcd0441,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x552168['commandName'])return{'type':'format','content':o(_0xcd0441,'*Outdent:*\x20%0',o(_0xcd0441,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x552168['commandName'])return _0x552168['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xcd0441,'*Check\x20item*')}:{'type':'format','content':o(_0xcd0441,'*Uncheck\x20item*')};}function _0x408cbd(_0x15cd13){return{'type':'format','content':o(_0xcd0441,'*Change\x20to:*\x20%0',_0x15cd13)};}});}}function Le(_0x148858){const _0x18f8e4=_0x148858['getAttribute']('listIndent');if(0x0==_0x18f8e4)return _0x148858;let _0x1a0273=_0x148858;for(;_0x148858['previousSibling']&&_0x148858['previousSibling']['is']('element','listItem');){const _0x2c9dd2=_0x148858['previousSibling']['getAttribute']('listIndent');if(_0x2c9dd2==_0x18f8e4)_0x1a0273=_0x148858['previousSibling'];else{if(_0x2c9dd2<_0x18f8e4)break;}_0x148858=_0x148858['previousSibling'];}return _0x1a0273;}function Ee(_0x23bbc5){const _0x41dc96=[];if(_0x23bbc5['is']('element','listItem')&&_0x23bbc5['getAttribute']('listIndent')>0x0){let _0x194b90=_0x23bbc5['nextSibling'];for(;_0x194b90&&'listItem'==_0x194b90['name']&&_0x194b90['getAttribute']('listIndent')==_0x23bbc5['getAttribute']('listIndent');)_0x41dc96['push'](_0x194b90),_0x194b90=_0x194b90['nextSibling'];}return _0x41dc96;}class ht extends _0x27f707{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x895d1d=this['editor']['config']['get']('list.properties'),_0x4823ec=this['editor']['plugins']['get']('TrackChangesEditing');_0x895d1d['styles']&&_0x4823ec['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x895d1d['reversed']&&_0x4823ec['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x895d1d['startIndex']&&_0x4823ec['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4823ec['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1af4a0,_0x6d15dd={}){const _0x27baae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38e213=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x27baae['markMultiRangeBlockFormat'](_0x38e213,{'commandName':'listStyle','commandParams':[{'type':_0x6d15dd['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3c613e,_0x4905f9={}){const _0xc421e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20d73d=this['_getSuggestionBlocks'](_0x57003c=>_0x57003c['is']('element','listItem')&&'numbered'===_0x57003c['getAttribute']('listType'));if(_0x20d73d['length']<0x1)return;const _0x2545fe=_0x20d73d['map'](_0x44fba0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x44fba0,'before'),this['editor']['model']['createPositionAt'](_0x44fba0,0x0)));this['editor']['model']['change'](()=>{_0xc421e5['markMultiRangeBlockFormat'](_0x2545fe,{'commandName':'listReversed','commandParams':[{'reversed':_0x4905f9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x353d72,_0x211a69={}){const _0x74df6c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ef025=this['_getSuggestionBlocks'](_0x52b8df=>_0x52b8df['is']('element','listItem')&&'numbered'===_0x52b8df['getAttribute']('listType'));if(_0x2ef025['length']<0x1)return;const _0x384bc5=_0x2ef025['map'](_0x290c51=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x290c51,'before'),this['editor']['model']['createPositionAt'](_0x290c51,0x0)));this['editor']['model']['change'](()=>{_0x74df6c['markMultiRangeBlockFormat'](_0x384bc5,{'commandName':'listStart','commandParams':[{'startIndex':_0x211a69['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1ac627){if('formatBlock'!=_0x1ac627['type']&&'formatInline'!=_0x1ac627['type'])return;const _0x41c153=this['editor']['locale'],{data:_0x1abf62}=_0x1ac627;if(!_0x1abf62)return;let _0xf80fa1,_0x3c388f;switch(_0x1abf62['commandName']){case'listStyle':_0xf80fa1='*Change\x20to:*\x20%0',_0x3c388f={'type':'format','content':o(_0x41c153,_0xf80fa1,o(_0x41c153,this['_getTranslationKeyForListStyle'](_0x1abf62['commandParams'][0x0]['type'])))};break;case'listReversed':_0xf80fa1=_0x1abf62['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3c388f={'type':'format','content':o(_0x41c153,_0xf80fa1)};break;case'listStart':_0xf80fa1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3c388f={'type':'format','content':o(_0x41c153,_0xf80fa1,_0x1abf62['commandParams'][0x0]['startIndex'])};}return _0x3c388f;}['_getSuggestionBlocksForListStyle'](){const _0xd7ca90=this['editor']['plugins']['get']('LegacyListUtils');let _0x1961f9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1961f9[0x0]?.['is']('element','listItem')&&_0x1961f9['unshift'](..._0xd7ca90['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1961f9[_0x1961f9['length']-0x1]?.['is']('element','listItem')&&_0x1961f9['push'](..._0xd7ca90['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1961f9=[...new Set(_0x1961f9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1961f9=_0x1961f9['filter'](_0x17b387=>_0x17b387['is']('element','listItem'))),_0x1961f9;}['_getSuggestionBlocks'](_0x3769e6){const _0x31be8f=this['editor']['plugins']['get']('LegacyListUtils');let _0xfd02d9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3769e6)['map'](_0x4794aa=>{const _0x41e831=this['editor']['model']['createPositionAt'](_0x4794aa,0x0);return[..._0x31be8f['getSiblingNodes'](_0x41e831,'backward'),..._0x31be8f['getSiblingNodes'](_0x41e831,'forward')];})['flat']();return _0xfd02d9=[...new Set(_0xfd02d9)],_0xfd02d9;}['_getTranslationKeyForListStyle'](_0x341132){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x341132)||'default')['toUpperCase']()+'_LIST_'+_0x341132['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x27f707{['afterInit'](){const _0x489e33=this['editor'];if(!_0x489e33['plugins']['has']('MediaEmbedEditing'))return;const _0x4ecc81=_0x489e33['plugins']['get']('TrackChangesEditing'),_0x328b9a=_0x489e33['locale'];_0x4ecc81['enableCommand']('mediaEmbed'),_0x4ecc81['descriptionFactory']['registerElementLabel']('media',_0x183d9e=>o(_0x328b9a,'ELEMENT_MEDIA',_0x183d9e)),_0x489e33['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4b13f0,{writer:_0x48c2f3,options:_0x1f6986})=>{if(_0x1f6986['showSuggestionHighlights'])return _0x48c2f3['createEmptyElement']('div');},'converterPriority':'high'}),_0x489e33['data']['downcastDispatcher']['on']('attribute:url:media',(_0x199231,_0x5cfbad,_0x411a0c)=>{_0x411a0c['options']['showSuggestionHighlights']&&_0x199231['stop']();},{'priority':'high'});}}class lt extends _0x27f707{['afterInit'](){const _0x1a4ada=this['editor'];_0x1a4ada['plugins']['has']('MentionEditing')&&_0x1a4ada['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x27f707{['afterInit'](){const _0x425bc5=this['editor'];if(!_0x425bc5['plugins']['has']('MergeFieldsEditing'))return;const _0x5059b3=_0x425bc5['plugins']['get']('TrackChangesEditing'),_0x2979d0=_0x425bc5['locale'];_0x5059b3['enableCommand']('insertMergeField'),_0x5059b3['enableCommand']('insertMergeFieldBlock'),_0x5059b3['enableCommand']('insertMergeFieldImage'),_0x5059b3['descriptionFactory']['registerElementLabel']('mergeField',_0x449e71=>o(_0x2979d0,'ELEMENT_MERGE_FIELD',_0x449e71)),_0x5059b3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3a8d59=>o(_0x2979d0,'ELEMENT_MERGE_FIELD',_0x3a8d59)),_0x5059b3['descriptionFactory']['registerDescriptionCallback'](_0x5e1d38=>{if('insertion'!=_0x5e1d38['type']&&'deletion'!=_0x5e1d38['type'])return;const _0x114ef6=_0x5e1d38['getContainedElement']();if(null==_0x114ef6)return;const _0x517a42=_0x425bc5['plugins']['get']('MergeFieldsEditing');let _0x5d80bc;switch(_0x517a42['getMergeFieldType'](_0x114ef6)){case null:return;case'image':{const _0x444236=_0x517a42['unwrapAffixes'](_0x114ef6['getAttribute']('src'));_0x5d80bc=_0x517a42['getLabel'](_0x444236)||_0x444236;break;}default:{const _0x452451=_0x114ef6['getAttribute']('id');_0x5d80bc=_0x517a42['getLabel'](_0x452451)||_0x452451;break;}}return'insertion'==_0x5e1d38['type']?{'type':'insertion','content':o(_0x2979d0,'*Insert:*\x20%0','\x22'+_0x5d80bc+'\x22\x20'+o(_0x2979d0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2979d0,'*Remove:*\x20%0','\x22'+_0x5d80bc+'\x22\x20'+o(_0x2979d0,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x27f707{['afterInit'](){const _0x435a9e=this['editor'],_0xa808a0=_0x435a9e['plugins']['get']('TrackChangesEditing');_0x435a9e['plugins']['has']('MultiLevelList')&&(_0xa808a0['enableDefaultAttributesIntegration']('multiLevelList'),_0xa808a0['registerBlockAttribute']('listMarkerStyle'),_0xa808a0['descriptionFactory']['registerDescriptionCallback'](_0x5cbd93=>this['handleDescriptions'](_0x5cbd93)));}['handleDescriptions'](_0x23abb0){const _0x9d05e6=this['editor']['locale'],{data:_0x1fdc0b}=_0x23abb0,_0x525439={'type':'format','content':''};if(_0x1fdc0b&&'listMarkerStyle'==_0x1fdc0b['key']){if(!_0x1fdc0b['oldValue'])return{'type':'format','content':o(_0x9d05e6,'*Set\x20format:*\x20%0',o(_0x9d05e6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1fdc0b['newValue']+')'};if(!_0x1fdc0b['newValue']){let _0x59f499=_0x23abb0['head'];for(;_0x59f499;){if(_0x59f499['data']&&'listType'==_0x59f499['data']['key']&&_0x59f499['data']['newValue'])return _0x525439;_0x59f499=_0x59f499['next'];}return{'type':'format','content':o(_0x9d05e6,'*Remove\x20format:*\x20%0',o(_0x9d05e6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1fdc0b['oldValue']+')'};}}}}class pt extends _0x27f707{['afterInit'](){const _0x394f01=this['editor'];if(!_0x394f01['plugins']['has']('PageBreakEditing'))return;_0x394f01['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2b94b5=_0x394f01['plugins']['get']('TrackChangesEditing'),_0x471622=_0x394f01['locale'];_0x2b94b5['descriptionFactory']['registerElementLabel']('pageBreak',_0x59c50d=>o(_0x471622,'ELEMENT_PAGE_BREAK',_0x59c50d));}}class kt extends _0x27f707{['afterInit'](){const _0x32dc0f=this['editor'];if(!_0x32dc0f['plugins']['has']('Paragraph'))return;const _0x15708b=_0x32dc0f['locale'],_0x381aac=_0x32dc0f['plugins']['get']('TrackChangesEditing');_0x381aac['descriptionFactory']['registerElementLabel']('paragraph',_0x3d1788=>o(_0x15708b,'ELEMENT_PARAGRAPH',_0x3d1788)),_0x381aac['enableDefaultAttributesIntegration']('paragraph'),_0x381aac['enableCommand']('insertParagraph'),_0x32dc0f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x32dc0f),{'priority':'highest'}),_0x32dc0f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x29227a,_0x58785f,_0x320540)=>{_0x320540['options']['showSuggestionHighlights']&&nr(_0x32dc0f,{'showActiveMarker':!0x1})(_0x29227a,_0x58785f,_0x320540);},{'priority':'highest'});const _0x1f4463=_0x381aac['descriptionFactory'];_0x1f4463['registerDescriptionCallback'](_0x35c39b=>{if('insertion'!==_0x35c39b['type'])return;const {start:_0x1eed9a,end:_0x5b67d4}=_0x35c39b['getFirstRange']();if(!_0x1eed9a['isTouching'](_0x5b67d4)||!_0x1eed9a['nodeAfter'])return;const _0x4d3c05=_0x32dc0f['model']['schema'],_0x58b6ed=_0x1eed9a['nodeAfter'];return _0x4d3c05['isBlock'](_0x58b6ed)&&!_0x4d3c05['isLimit'](_0x58b6ed)&&_0x4d3c05['checkChild'](_0x58b6ed,'$text')?{'type':'insertion','content':o(_0x15708b,'*Insert:*\x20%0',_0x1f4463['getItemLabel'](_0x58b6ed,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9aa85a=this['editor'],_0x557e87=_0x9aa85a['locale'];_0x9aa85a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28fff0=>{if('formatBlock'!=_0x28fff0['type'])return;const {data:_0x6ae316}=_0x28fff0;return _0x6ae316&&'paragraph'==_0x6ae316['commandName']?{'type':'format','content':o(_0x557e87,'*Change\x20to:*\x20%0',o(_0x557e87,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xd6ff5,{showActiveMarker:_0x412302=!0x0}={}){return(_0x474564,_0x58a8dc,_0x30154a)=>{const _0x252b16=_0xd6ff5['plugins']['get']('TrackChangesEditing'),_0x68f3d7=_0x58a8dc['markerRange']['start'],_0x5129e5=_0x58a8dc['markerRange']['end'],_0x115ff6=_0xd6ff5['model']['schema'];if(!_0x68f3d7['isTouching'](_0x5129e5)||!_0x68f3d7['nodeAfter'])return;const _0x2b6ff7=_0x68f3d7['nodeAfter'];if(_0x115ff6['isBlock'](_0x2b6ff7)&&!_0x115ff6['isLimit'](_0x2b6ff7)&&_0x115ff6['checkChild'](_0x2b6ff7,'$text')){if(!_0x30154a['consumable']['consume'](_0x58a8dc['markerRange'],_0x474564['name']))return;const {id:_0x5eea87,authorId:_0x291113}=_0x252b16['_splitMarkerName'](_0x58a8dc['markerName']),_0x44fa37=_0x30154a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5eea87,'data-author-id':_0x291113}),_0x35ede8=_0x30154a['mapper']['toViewPosition'](_0x5129e5);_0x412302&&_0x252b16['activeMarkers']['includes'](_0x58a8dc['markerName'])&&_0x30154a['writer']['addClass']('ck-suggestion-marker--active',_0x44fa37),_0x30154a['writer']['insert'](_0x35ede8,_0x44fa37),_0x30154a['mapper']['bindElementToMarker'](_0x44fa37,_0x58a8dc['markerName']);}};}class wt extends _0x27f707{['afterInit'](){const _0x1a2ffc=this['editor'];_0x1a2ffc['commands']['get']('replaceSource')&&_0x1a2ffc['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x27f707{['afterInit'](){const _0xb54536=this['editor'];if(!_0xb54536['plugins']['has']('RemoveFormatEditing'))return;_0xb54536['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f3c20=this['editor'];_0x3f3c20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c4a81=>{if('formatBlock'!=_0x2c4a81['type']&&'formatInline'!=_0x2c4a81['type'])return;const {data:_0x5bd6ce}=_0x2c4a81;return _0x5bd6ce&&'removeFormat'==_0x5bd6ce['commandName']?{'type':'format','content':o(_0x3f3c20['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x27f707{['afterInit'](){const _0x3b0793=this['editor'];if(!_0x3b0793['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x320cbf=_0x3b0793['plugins']['get']('TrackChangesEditing');_0x320cbf['enableCommand']('goToPreviousRestrictedEditingException'),_0x320cbf['enableCommand']('goToNextRestrictedEditingException');const _0x1834f6=_0x3b0793['plugins']['get']('RestrictedEditingModeEditing');_0x1834f6['enableCommand']('trackChanges'),_0x1834f6['enableCommand']('acceptSuggestion'),_0x1834f6['enableCommand']('discardSuggestion'),_0x1834f6['enableCommand']('acceptAllSuggestions'),_0x1834f6['enableCommand']('discardAllSuggestions'),_0x1834f6['enableCommand']('acceptSelectedSuggestions'),_0x1834f6['enableCommand']('discardSelectedSuggestions');}}class St extends _0x27f707{['afterInit'](){const _0x4fdfe3=this['editor'];if(!_0x4fdfe3['plugins']['has']('ShiftEnter'))return;const _0x3bed34=_0x4fdfe3['plugins']['get']('TrackChangesEditing');_0x3bed34['enableCommand']('shiftEnter'),_0x4fdfe3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4fdfe3),{'priority':'high'}),_0x4fdfe3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4fdfe3),{'priority':'high'}),_0x4fdfe3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5e8e9c,_0x4d89f8,_0x3f54c8)=>{_0x3f54c8['options']['showSuggestionHighlights']&&je(_0x4fdfe3,{'showActiveMarker':!0x1})(_0x5e8e9c,_0x4d89f8,_0x3f54c8);}),_0x3bed34['descriptionFactory']['registerElementLabel']('softBreak',_0x19f846=>o(_0x4fdfe3['locale'],'ELEMENT_LINE_BREAK',_0x19f846));}}function je(_0x333e5a,{showActiveMarker:_0x5ad6b4=!0x0}={}){return(_0x197fc7,_0x987b8e,_0xd2f66b)=>{const _0x436306=_0x333e5a['plugins']['get']('TrackChangesEditing');if(!_0xd2f66b['consumable']['test'](_0x987b8e['markerRange'],_0x197fc7['name']))return;const _0x53b76=_0x333e5a['model'];for(const _0x21e45c of _0x987b8e['markerRange']['getItems']()){if(!_0x21e45c['is']('element','softBreak'))continue;const _0x590e3d='deletion'==_0x987b8e['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x516d50,authorId:_0x47c72e}=_0x436306['_splitMarkerName'](_0x987b8e['markerName']),_0x700cca=_0xd2f66b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x590e3d,'data-suggestion':_0x516d50,'data-author-id':_0x47c72e}),_0x51f94d=_0xd2f66b['mapper']['toViewPosition'](_0x53b76['createPositionBefore'](_0x21e45c));_0x5ad6b4&&_0x436306['activeMarkers']['includes'](_0x987b8e['markerName'])&&_0xd2f66b['writer']['addClass']('ck-suggestion-marker--active',_0x700cca),_0xd2f66b['writer']['insert'](_0x51f94d,_0x700cca),_0xd2f66b['mapper']['bindElementToMarker'](_0x700cca,_0x987b8e['markerName']);}};}class jt extends _0x27f707{['afterInit'](){const _0x50b73d=this['editor'],_0x246ecf=_0x50b73d['model'],_0x2dfce1=_0x50b73d['locale'];if(!_0x50b73d['plugins']['has']('StandardEditingModeEditing'))return;const _0x181ba4=_0x50b73d['plugins']['get']('TrackChangesEditing'),_0x3b6293='restrictedEditingException',_0x25c0c1=_0x50b73d['commands']['get'](_0x3b6293);_0x181ba4['enableCommand'](_0x3b6293,(_0xfd22cd,_0x4acb55={})=>{const _0x1b1efb=_0x246ecf['document']['selection'];if(_0x1b1efb['isCollapsed'])return void _0xfd22cd(_0x4acb55);const _0x4f0bb3=void 0x0!==_0x4acb55['forceValue']?_0x4acb55['forceValue']:!_0x25c0c1['value'];_0x246ecf['change'](()=>{const _0x25c1a5=Array['from'](_0x1b1efb['getRanges']());for(const _0x12f4f2 of _0x25c1a5){const _0x226d86=_0x4f0bb3?[_0x12f4f2]:io(_0x3b6293,_0x12f4f2,_0x246ecf);for(const _0x339208 of _0x226d86)_0x181ba4['markInlineFormat'](_0x339208,{'commandName':_0x3b6293,'commandParams':[{'forceValue':_0x4f0bb3}]});}});}),_0x181ba4['descriptionFactory']['registerDescriptionCallback'](_0x24a53=>{if('formatBlock'!=_0x24a53['type']&&'formatInline'!=_0x24a53['type'])return;const {data:_0x5e47cb}=_0x24a53;return _0x5e47cb&&_0x5e47cb['commandName']==_0x3b6293?_0x5e47cb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2dfce1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2dfce1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x27f707{['afterInit'](){const _0x37b54d=this['editor'];if(!_0x37b54d['plugins']['has']('Style')||!_0x37b54d['plugins']['has']('DataSchema'))return;const _0x71518=_0x37b54d['plugins']['get']('TrackChangesEditing'),_0x140e44=_0x37b54d['locale'],_0x2e4171=_0x37b54d['config']['get']('style')||{},_0x59fc9c=_0x37b54d['plugins']['get']('GeneralHtmlSupport'),_0x3e1e1a=_0x37b54d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x37b54d['plugins']['get']('DataSchema'),_0x2e4171['definitions']);_0x71518['enableDefaultAttributesIntegration']('style');const _0x2a5229=new Set();for(const _0x30999d of _0x3e1e1a['block']){const _0x19b1a2=_0x59fc9c['getGhsAttributeNameForElement'](_0x30999d['element']);_0x2a5229['add'](_0x19b1a2);}const _0x53b980=new Set();for(const _0x29e8d4 of _0x3e1e1a['inline']){const _0x1dfb60=_0x59fc9c['getGhsAttributeNameForElement'](_0x29e8d4['element']);_0x53b980['add'](_0x1dfb60);for(const _0x389c7f of _0x29e8d4['ghsAttributes'])_0x53b980['add'](_0x389c7f);}for(const _0x1de1c6 of _0x2a5229)_0x71518['registerBlockAttribute'](_0x1de1c6),_0x71518['descriptionFactory']['registerAttributeLabel'](_0x1de1c6,o(_0x140e44,'FORMAT_STYLE'));for(const _0x42ffde of _0x53b980)_0x71518['registerInlineAttribute'](_0x42ffde),_0x71518['descriptionFactory']['registerAttributeLabel'](_0x42ffde,o(_0x140e44,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9a8a06=this['editor'],_0x335a3a=_0x9a8a06['locale'];_0x9a8a06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37c539=>{if('formatBlock'!=_0x37c539['type']&&'formatInline'!=_0x37c539['type'])return;const {data:_0x45ad3a}=_0x37c539;return _0x45ad3a&&'style'===_0x45ad3a['commandName']?_0x45ad3a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x335a3a,'*Set\x20format:*\x20%0',_0x45ad3a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x335a3a,'*Remove\x20format:*\x20%0',_0x45ad3a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x27f707{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3e11e8){super(_0x3e11e8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x299a09=this['editor'],_0x2816ba=_0x299a09['model']['document']['selection'];if(!_0x299a09['plugins']['has']('TableEditing'))return;const _0x183ded=_0x299a09['locale'],_0x112b4e=_0x299a09['plugins']['get']('TrackChangesEditing'),_0x518f14=_0x299a09['plugins']['get']('TableUtils');_0x112b4e['descriptionFactory']['registerElementLabel']('table',_0x2c1ee8=>o(_0x183ded,'ELEMENT_TABLE',_0x2c1ee8)),this['_setupColumnsRowsFixing'](),_0x112b4e['enableCommand']('insertTable'),_0x112b4e['enableCommand']('selectTableRow'),_0x112b4e['enableCommand']('selectTableColumn');for(const _0x57d918 of['insertTableRowAbove','insertTableRowBelow']){const _0x24273a=_0x299a09['commands']['get'](_0x57d918);_0x112b4e['enableCommand'](_0x57d918,_0x1bed6c=>{_0x299a09['model']['change'](_0x39e567=>{_0x1bed6c();const _0xa78923='above'===_0x24273a['order'],_0x2b3b24=_0x518f14['getSelectionAffectedTableCells'](_0x2816ba),_0x135b54=_0x518f14['getRowIndexes'](_0x2b3b24),_0x3675f5=_0xa78923?_0x135b54['first']-0x1:_0x135b54['last']+0x1,_0x2db67d=_0x2b3b24[0x0]['findAncestor']('table'),_0x1ca791=_0x518f14['createTableWalker'](_0x2db67d,{'startRow':_0x3675f5,'endRow':_0x3675f5}),_0xc49090=Array['from'](_0x1ca791)['map'](_0x2e48b9=>_0x39e567['createRangeOn'](_0x2e48b9['cell']));_0x112b4e['markMultiRangeInsertion'](_0xc49090,'tableRow');});});}for(const _0x185d60 of['insertTableColumnLeft','insertTableColumnRight']){const _0xb50535=_0x299a09['commands']['get'](_0x185d60);_0x112b4e['enableCommand'](_0x185d60,_0x241ada=>{_0x299a09['model']['change'](_0x37490d=>{_0x241ada();const _0x505264='left'===_0xb50535['order'],_0x1f4f37=_0x518f14['getSelectionAffectedTableCells'](_0x2816ba),_0x91a7de=_0x518f14['getColumnIndexes'](_0x1f4f37),_0x2e6aa5=_0x505264?_0x91a7de['first']-0x1:_0x91a7de['last']+0x1,_0xa073a=_0x1f4f37[0x0]['findAncestor']('table'),_0x37abcd=_0x518f14['createTableWalker'](_0xa073a,{'startRow':0x0,'column':_0x2e6aa5,'includeAllSlots':!0x1}),_0x28f643=Array['from'](_0x37abcd)['map'](_0x4bf6e0=>_0x37490d['createRangeOn'](_0x4bf6e0['cell']));_0x112b4e['markMultiRangeInsertion'](_0x28f643,'tableColumn');});});}for(const _0x216cbd of['removeTableRow','removeTableColumn']){const _0x3a4ddd=_0x216cbd['substr'](0xb),_0x5c598e=_0x3a4ddd['toLowerCase'](),_0x4e24e0=_0x5c598e['substr'](0x0,0x3)+'span',_0x347db5='table'+_0x3a4ddd,_0x364d79='min'+_0x3a4ddd,_0x187fac='max'+_0x3a4ddd;_0x112b4e['enableCommand'](_0x216cbd,()=>{_0x299a09['model']['change'](_0x349403=>{const _0x57eaa0=_0x518f14['getSelectionAffectedTableCells'](_0x2816ba),_0x18971f=_0x57eaa0[0x0]['findAncestor']('table');let _0x5c1e05;if('removeTableRow'==_0x216cbd){const _0x4e49be=_0x518f14['getRowIndexes'](_0x57eaa0);_0x5c1e05={'startRow':_0x4e49be['first'],'endRow':_0x4e49be['last'],'includeAllSlots':!0x0};}else{const _0x1592b5=_0x518f14['getColumnIndexes'](_0x57eaa0);_0x5c1e05={'startColumn':_0x1592b5['first'],'endColumn':_0x1592b5['last'],'includeAllSlots':!0x0};}const _0x1fcd1c=_0x518f14['createTableWalker'](_0x18971f,_0x5c1e05),_0x222e4f=Array['from'](_0x1fcd1c)['map'](({cell:_0x376f52})=>_0x376f52),_0x3ab6fa=Ne(_0x222e4f['filter'](_0x3af485=>_0x3af485['hasAttribute'](_0x4e24e0))),_0x5a9b57=Ne(_0x222e4f['filter'](_0x40f130=>!_0x40f130['hasAttribute'](_0x4e24e0)))['map'](_0xcfcbd7=>_0x349403['createRangeOn'](_0xcfcbd7)),_0x3d9ac8=_0x112b4e['markMultiRangeDeletion'](_0x5a9b57,_0x347db5);if(_0x3d9ac8&&('tableRow'==_0x3d9ac8['subType']||'tableColumn'==_0x3d9ac8['subType'])){const _0xbd33f9=this['_getSuggestionCoords'](_0x3d9ac8);for(const _0x379fcd of _0x3ab6fa){const _0x1e30fe=_0x349403['createRangeOn'](_0x379fcd),_0x1c4c0e=_0x518f14['getCellLocation'](_0x379fcd),_0x2ae9fd=_0x379fcd['getAttribute'](_0x4e24e0)-0x1,_0x339ae4=_0xbd33f9[_0x364d79],_0x348f43=_0xbd33f9[_0x187fac];_0x339ae4<=_0x1c4c0e[_0x5c598e]&&_0x1c4c0e[_0x5c598e]+_0x2ae9fd<=_0x348f43&&_0x3d9ac8['addRange'](_0x1e30fe);}}});});}function _0x4e2c1c(_0x4c438d){const _0xb36669=Array['from'](_0x2816ba['getRanges']())['map'](_0x5e3714=>_0x23c46b['fromRange'](_0x5e3714));_0x299a09['model']['change'](_0x102a37=>{const _0xa4c850=_0x102a37['batch'];_0x4c438d=_0x4c438d['filter'](_0x17fa28=>'$graveyard'!=_0x17fa28['root']['rootName']),_0x102a37['setSelection'](_0x4c438d),_0x299a09['commands']['get']('removeTableRow')['refresh'](),_0x299a09['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x299a09['model']['enqueueChange'](()=>{_0x299a09['model']['enqueueChange'](_0xa4c850,_0x1a1428=>{const _0x118265=_0xb36669['filter'](_0x5f2af2=>'$graveyard'!=_0x5f2af2['root']['rootName']);_0x118265['length']>0x0&&_0x1a1428['setSelection'](_0x118265);for(const _0x3b54be of _0xb36669)_0x3b54be['detach']();});});});}function _0x46508b(_0x3441e5){_0x299a09['model']['change'](_0x228c76=>{const _0x83f6fe=Array['from'](_0x2816ba['getRanges']())['map'](_0x353abc=>_0x23c46b['fromRange'](_0x353abc)),_0x4062f9=[];for(const _0x45d74a of _0x3441e5)for(const _0x1a337a of _0x45d74a['getItems']({'shallow':!0x0}))_0x4062f9['push'](_0x1a337a);for(const _0x281f7 of _0x4062f9)'$graveyard'!=_0x281f7['root']['rootName']&&(_0x228c76['setSelection'](_0x228c76['createPositionAt'](_0x281f7,0x0)),_0x299a09['commands']['get']('removeTableColumn')['refresh'](),_0x299a09['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1fa490=_0x83f6fe['filter'](_0x27ea16=>'$graveyard'!=_0x27ea16['root']['rootName']);_0x1fa490['length']>0x0&&_0x228c76['setSelection'](_0x1fa490);for(const _0x3093be of _0x83f6fe)_0x3093be['detach']();});}function _0x35520f(_0x1c941a,_0x19c0fc){return _0x19c0fc['every'](_0xa339a2=>_0x1c941a['some'](_0x4e0b21=>_0x4e0b21['end']['isEqual'](_0xa339a2['start'])||_0xa339a2['end']['isEqual'](_0x4e0b21['start'])));}function _0xd3f990(_0x541052,_0x55332b){return!_0x541052['some'](_0x182261=>_0x55332b['some'](_0x85d075=>_0x182261['isIntersecting'](_0x85d075)))&&_0x541052['some'](_0x4ec995=>_0x55332b['some'](_0x259be2=>_0x4ec995['end']['isTouching'](_0x259be2['start'])));}_0x299a09['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x375b50,_0x47c09c,_0x59a2a2)=>{if(!_0x59a2a2['options']['showSuggestionHighlights'])return;const _0x27d620=_0x47c09c['item'];if(!_0x27d620||!_0x27d620['is']('element','tableCell'))return;const _0x155a08=_0x59a2a2['mapper']['toViewElement'](_0x27d620);if(_0x155a08){const {id:_0x22a6e0,authorId:_0xafe652}=_0x112b4e['_splitMarkerName'](_0x47c09c['markerName']);_0x2c0529(_0x155a08,_0x59a2a2['writer'],(_0x1e2f58,_0x25fce5,_0x584e3b)=>{_0x584e3b['addClass'](_0x37833e(_0x25fce5['classes']),_0x1e2f58),_0x584e3b['setAttribute']('data-suggestion-id',_0x22a6e0,_0x1e2f58),_0x584e3b['setAttribute']('data-author-id',_0xafe652,_0x1e2f58);},(_0x3aac49,_0x4419ee,_0x30de10)=>{_0x30de10['removeClass'](_0x37833e(_0x4419ee['classes']),_0x3aac49),_0x30de10['removeAttribute']('data-suggestion-id',_0x3aac49),_0x30de10['removeAttribute']('data-author-id',_0x3aac49);});}},{'priority':'highest'}),_0x112b4e['descriptionFactory']['registerDescriptionCallback'](_0x2cd80a=>{if('insertion'!=_0x2cd80a['type']&&'deletion'!=_0x2cd80a['type'])return;const _0x3f7618=_0x2cd80a['getContainedElement']();if(null!=_0x3f7618&&_0x3f7618['is']('element','table')){if('insertion'==_0x2cd80a['type']){const _0x479a7d=_0x2cd80a['getItems']()['filter'](_0x4028be=>_0x4028be['is']('$textProxy'))['map'](_0x12799f=>_0x12799f['data']);if(_0x479a7d['length'])return{'type':'insertion','content':o(_0x183ded,'*Insert:*\x20%0',o(_0x183ded,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x479a7d['join']('\x20')+'\x22'))};}if('deletion'==_0x2cd80a['type']){const _0x49e293=_0x2cd80a['getItems']()['filter'](_0x394e97=>_0x394e97['is']('$textProxy'))['map'](_0x1ad3cd=>_0x1ad3cd['data']);if(_0x49e293['length'])return{'type':'deletion','content':o(_0x183ded,'*Remove:*\x20%0',o(_0x183ded,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x49e293['join']('\x20')+'\x22'))};}}}),_0x112b4e['descriptionFactory']['registerDescriptionCallback'](_0x482a5f=>{if('tableRow'==_0x482a5f['subType']){const _0x54df17=_0x482a5f['getItems']()['filter'](_0x532236=>_0x532236['is']('$textProxy'))['map'](_0x585e75=>_0x585e75['data']),_0x490887=this['_getSuggestionCoords'](_0x482a5f),_0x336074=_0x490887['maxRow']-_0x490887['minRow']+0x1;if('insertion'==_0x482a5f['type'])return _0x54df17['length']?{'type':'insertion','content':o(_0x183ded,'*Insert:*\x20%0',o(_0x183ded,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x336074,'\x22'+_0x54df17['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x183ded,'*Insert:*\x20%0',o(_0x183ded,'ELEMENT_TABLE_ROW',_0x336074))};if('deletion'==_0x482a5f['type'])return _0x54df17['length']?{'type':'deletion','content':o(_0x183ded,'*Remove:*\x20%0',o(_0x183ded,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x336074,'\x22'+_0x54df17['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x183ded,'*Remove:*\x20%0',o(_0x183ded,'ELEMENT_TABLE_ROW',_0x336074))};}if('tableColumn'==_0x482a5f['subType']){const _0x55299f=_0x482a5f['getItems']()['filter'](_0xb4a28b=>_0xb4a28b['is']('$textProxy'))['map'](_0x4bbfbb=>_0x4bbfbb['data']),_0x1db05c=this['_getSuggestionCoords'](_0x482a5f),_0x4051c1=_0x1db05c['maxColumn']-_0x1db05c['minColumn']+0x1;if('insertion'==_0x482a5f['type'])return _0x55299f['length']?{'type':'insertion','content':o(_0x183ded,'*Insert:*\x20%0',o(_0x183ded,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4051c1,'\x22'+_0x55299f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x183ded,'*Insert:*\x20%0',o(_0x183ded,'ELEMENT_TABLE_COLUMN',_0x4051c1))};if('deletion'==_0x482a5f['type'])return _0x55299f['length']?{'type':'deletion','content':o(_0x183ded,'*Remove:*\x20%0',o(_0x183ded,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4051c1,'\x22'+_0x55299f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x183ded,'*Remove:*\x20%0',o(_0x183ded,'ELEMENT_TABLE_COLUMN',_0x4051c1))};}}),_0x112b4e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4e2c1c),_0x112b4e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4e2c1c),_0x112b4e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x46508b),_0x112b4e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x46508b),_0x112b4e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x35520f),_0x112b4e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x35520f),_0x112b4e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xd3f990),_0x112b4e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xd3f990);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1fa5ef=this['editor'],_0x315b9b=_0x1fa5ef['model']['document']['selection'];return(_0x3ff674,_0x456cdd)=>{_0x1fa5ef['model']['change'](_0x516efb=>{const {commandName:_0x36d601,commandParams:_0x429b88}=_0x456cdd;let _0x9d7f9e=_0x3ff674[0x0]['end']['nodeBefore'];_0x429b88&&_0x429b88[0x0]&&!0x1===_0x429b88[0x0]['forceValue']&&(_0x9d7f9e=_0x3ff674[0x0]['start']['nodeAfter']);const _0x2f8161=_0x516efb['createRangeIn'](_0x9d7f9e);if('$graveyard'==_0x2f8161['root']['rootName'])return;const _0x303839=Array['from'](_0x315b9b['getRanges']())['map'](_0x22e17b=>_0x23c46b['fromRange'](_0x22e17b));_0x516efb['setSelection'](_0x2f8161),_0x1fa5ef['commands']['get'](_0x36d601)['refresh'](),_0x429b88['push']({'forceDefaultExecution':!0x0}),_0x1fa5ef['execute'](_0x36d601,..._0x429b88);const _0x257087=_0x303839['filter'](_0x4c1ddb=>'$graveyard'!=_0x4c1ddb['root']['rootName']);_0x257087['length']>0x0&&_0x516efb['setSelection'](_0x257087);for(const _0x5164ed of _0x303839)_0x5164ed['detach']();});};}['_getCoordsForCells'](_0x4cc365){const _0x1f5b1a=this['editor']['plugins']['get']('TableUtils');let _0x2f0bf0=Number['MAX_SAFE_INTEGER'],_0x569be4=Number['MIN_SAFE_INTEGER'],_0x345d19=Number['MAX_SAFE_INTEGER'],_0x375225=Number['MIN_SAFE_INTEGER'];for(const _0x1da920 of _0x4cc365){if('$graveyard'==_0x1da920['root']['rootName'])continue;const {row:_0x60c552,column:_0x4acab4}=_0x1f5b1a['getCellLocation'](_0x1da920),_0x52f04a=_0x1da920['hasAttribute']('rowspan')?_0x1da920['getAttribute']('rowspan')-0x1:0x0,_0x1683d4=_0x1da920['hasAttribute']('colspan')?_0x1da920['getAttribute']('colspan')-0x1:0x0;_0x2f0bf0=_0x60c552<_0x2f0bf0?_0x60c552:_0x2f0bf0,_0x569be4=_0x60c552+_0x52f04a>_0x569be4?_0x60c552+_0x52f04a:_0x569be4,_0x345d19=_0x4acab4<_0x345d19?_0x4acab4:_0x345d19,_0x375225=_0x4acab4+_0x1683d4>_0x375225?_0x4acab4+_0x1683d4:_0x375225;}return{'minRow':_0x2f0bf0,'maxRow':_0x569be4,'minColumn':_0x345d19,'maxColumn':_0x375225};}['_setupColumnsRowsFixing'](){const _0x19dfe4=this['editor'],_0x183aca=_0x19dfe4['plugins']['get']('TrackChangesEditing'),_0x2d56b1=_0x19dfe4['plugins']['get']('TableUtils');_0x19dfe4['model']['document']['on']('change:data',()=>{const _0x985b7=Array['from'](_0x19dfe4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb82dc,data:_0x5845fb}of _0x985b7){const {group:_0x32610c,id:_0x4a9888,subType:_0x4e2813}=_0x183aca['_splitMarkerName'](_0xb82dc);if('suggestion'!=_0x32610c)continue;if(null!=_0x5845fb['oldRange'])continue;const _0x4f646b=_0x183aca['getSuggestion'](_0x4a9888);this['_tablePostFixingSubtypes']['includes'](_0x4e2813)&&this['_tableSuggestions']['add'](_0x4f646b);}},{'priority':'low'});const _0xae1b49=(_0x2ae236,_0x173210)=>{let _0x2c4890=!0x1;const _0x49daa2=_0x173210['createRangeOn'](_0x2ae236),_0x42c1f0=_0x2ae236['findAncestor']('table'),_0x2b68e2=_0x2d56b1['getCellLocation'](_0x2ae236);for(const _0x47e193 of this['_tableSuggestions']){const _0x3259a2=_0x47e193['subType'],_0x15266c=_0x3259a2['startsWith']('tablePaste'),_0x5c3cef=_0x3259a2['substr'](_0x15266c?0xa:0x5),_0x125a06=_0x5c3cef['toLowerCase'](),_0xb08508=_0x125a06['substr'](0x0,0x3)+'span',_0x9c774c='min'+_0x5c3cef,_0xdee167='max'+_0x5c3cef;if(!_0x47e193['isInContent'])continue;if(_0x42c1f0!=_0x47e193['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x47e193['isIntersectingWithRange'](_0x49daa2))continue;const _0x409054=_0x2ae236['hasAttribute'](_0xb08508)?_0x2ae236['getAttribute'](_0xb08508)-0x1:0x0,_0x1c2476=this['_getSuggestionCoords'](_0x47e193),_0x32bf07=_0x1c2476[_0x9c774c],_0x19d54b=_0x1c2476[_0xdee167];_0x32bf07<=_0x2b68e2[_0x125a06]&&_0x2b68e2[_0x125a06]+_0x409054<=_0x19d54b&&(_0x47e193['addRange'](_0x49daa2),_0x2c4890=!0x0);}return _0x2c4890;};_0x19dfe4['model']['document']['registerPostFixer'](_0x5eb433=>{let _0x472cab=!0x1;for(const _0x43d8ca of _0x19dfe4['model']['document']['differ']['getChanges']())if('insert'==_0x43d8ca['type']){if('tableRow'==_0x43d8ca['name']){for(const _0x4c8244 of _0x43d8ca['position']['nodeAfter']['getChildren']())_0x472cab=_0x472cab||_0xae1b49(_0x4c8244,_0x5eb433);}else'tableCell'==_0x43d8ca['name']&&(_0x472cab=_0x472cab||_0xae1b49(_0x43d8ca['position']['nodeAfter'],_0x5eb433));}return _0x472cab;});}['_getSuggestionCoords'](_0x557812){return this['_getCoordsForCells'](_0x557812['getRanges']()['map'](_0x525db4=>_0x525db4['start']['nodeAfter']));}}function Ne(_0x2ebb97){return Array['from'](new Set(_0x2ebb97)['values']());}class _t extends _0x27f707{static get['requires'](){return[At];}['afterInit'](){const _0x201725=this['editor'],_0x2134de=_0x201725['model']['document']['selection'],_0x408b32=_0x201725['locale'];if(!_0x201725['plugins']['has']('TableEditing'))return;const _0x1ce681=_0x201725['plugins']['get']('TrackChangesEditing'),_0xf8042e=_0x201725['plugins']['get']('TableUtils'),_0x3d9ec7=_0x201725['plugins']['get'](At);_0x3d9ec7['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1ce681['enableCommand']('mergeTableCells',()=>{const _0xc148bb=_0xf8042e['getSelectionAffectedTableCells'](_0x201725['model']['document']['selection']);_0x201725['model']['change'](()=>{_0x1ce681['markMultiRangeBlockFormat'](_0xc148bb,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x201725['commands']['get']('mergeTableCells')['on']('execute',(_0x554b1e,_0x31de77)=>{_0x201725['commands']['get']('trackChanges')['value']&&(_0x31de77['length']>0x0&&_0x31de77[_0x31de77['length']-0x1]&&_0x31de77[_0x31de77['length']-0x1]['forceDefaultExecution']||_0x1ce681['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x554b1e['stop']());},{'priority':'highest'});for(const _0xcce4f8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5f4e41=_0x201725['commands']['get'](_0xcce4f8);_0x1ce681['enableCommand'](_0xcce4f8,()=>{const _0x42988c=_0x201725['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x18ca45=>_0x18ca45['is']('element','tableCell')),_0x517748=_0x5f4e41['value'];_0x201725['model']['change'](()=>{_0x1ce681['markMultiRangeBlockFormat']([_0x42988c,_0x517748],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x44a6e8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x220ecd=_0x201725['commands']['get'](_0x44a6e8);_0x1ce681['enableCommand'](_0x44a6e8,()=>{const _0xbd5444=_0xf8042e['getSelectionAffectedTableCells'](_0x201725['model']['document']['selection'])[0x0],_0x207b18=_0xbd5444['findAncestor']('table'),{column:_0x469ded,row:_0x17b274}=_0xf8042e['getCellLocation'](_0xbd5444);let _0x48ce4d=[];if('horizontally'==_0x220ecd['direction']){const _0x468d6f=_0xf8042e['createTableWalker'](_0x207b18,{'startRow':_0x17b274,'endRow':_0x17b274,'includeAllSlots':!0x0});_0x48ce4d=Array['from'](_0x468d6f)['map'](_0x449eab=>_0x449eab['cell']);}else{const _0x54ba55=_0xf8042e['createTableWalker'](_0x207b18,{'column':_0x469ded,'includeAllSlots':!0x0});_0x48ce4d=Array['from'](_0x54ba55)['map'](_0x35a08a=>_0x35a08a['cell']);}_0x201725['model']['change'](_0xabafa8=>{_0x1ce681['markBlockFormat'](_0xabafa8['createRangeOn'](_0xbd5444),{'commandName':_0x44a6e8,'commandParams':[]},_0x48ce4d,_0x44a6e8);});});}_0x1ce681['descriptionFactory']['registerDescriptionCallback'](_0x564044=>{if('formatBlock'!=_0x564044['type']&&'formatInline'!=_0x564044['type'])return;const {data:_0x4cb70c}=_0x564044;return _0x4cb70c&&'mergeTableCells'==_0x4cb70c['commandName']?{'type':'format','content':o(_0x408b32,'*Merge\x20cells*')}:void 0x0;}),_0x1ce681['descriptionFactory']['registerDescriptionCallback'](_0x111ea3=>{if('formatBlock'!=_0x111ea3['type']&&'formatInline'!=_0x111ea3['type'])return;const {data:_0x5b6641}=_0x111ea3;return _0x5b6641?'splitTableCellVertically'==_0x5b6641['commandName']?{'type':'format','content':o(_0x408b32,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5b6641['commandName']?{'type':'format','content':o(_0x408b32,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x26431b=_0x3d9ec7['_acceptFormatSuggestionCallbackFactory']();for(const _0x184131 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1ce681['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x184131,'accept',_0x26431b);for(const _0x580385 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1ce681['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x580385,'accept',_0x26431b);_0x1ce681['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5bcbe8=>{_0x201725['model']['change'](_0x27f193=>{const _0x3da570=Array['from'](_0x2134de['getRanges']())['map'](_0x3ef323=>_0x23c46b['fromRange'](_0x3ef323));_0x27f193['setSelection'](_0x5bcbe8),_0x201725['commands']['get']('mergeTableCells')['refresh'](),_0x201725['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xe7d2a0=_0x3da570['filter'](_0x4475fb=>'$graveyard'!=_0x4475fb['root']['rootName']);_0xe7d2a0['length']>0x0&&_0x27f193['setSelection'](_0xe7d2a0);for(const _0x421c0f of _0x3da570)_0x421c0f['detach']();});});for(const _0x4a3e06 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x435286=_0x201725['commands']['get'](_0x4a3e06);_0x435286['on']('set:isEnabled',(_0x432022,_0x8d4382,_0x3f3a94)=>{if(_0x3f3a94){const _0x10eb3b=_0x201725['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2f583c=>_0x2f583c['is']('element','tableCell'));this['_areMergableCells'](_0x435286['value'],_0x10eb3b)||(_0x432022['return']=!0x1,_0x432022['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2c3bfe=this['editor']['commands']['get']('mergeTableCells'),_0x2f485e=this['editor']['plugins']['get']('TableUtils');if(!_0x2c3bfe['isEnabled'])return!0x1;const _0x2a8155=_0x2f485e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4d3515 of _0x2a8155)for(const _0x3fc492 of _0x2a8155)if(_0x4d3515!=_0x3fc492&&!this['_areMergableCells'](_0x4d3515,_0x3fc492))return!0x1;return!0x0;}['_areMergableCells'](_0x3b1bb6,_0x3d667b){const _0x33768f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x486f24=this['editor']['model']['createRangeOn'](_0x3b1bb6),_0x2acd0c=this['editor']['model']['createRangeOn'](_0x3d667b),_0x52fa9=new Set(),_0x4834bd=new Set();for(const _0x4e88ea of _0x33768f['getSuggestions']())if(('insertion'==_0x4e88ea['type']||'deletion'==_0x4e88ea['type']||'mergeTableCells'==_0x4e88ea['subType'])&&_0x4e88ea['isInContent']){for(const _0x10734e of _0x4e88ea['getRanges']())_0x10734e['containsRange'](_0x486f24,!0x0)&&_0x52fa9['add'](_0x4e88ea['type']+':'+_0x4e88ea['author']['id']),_0x10734e['containsRange'](_0x2acd0c,!0x0)&&_0x4834bd['add'](_0x4e88ea['type']+':'+_0x4e88ea['author']['id']);}if(_0x52fa9['size']!=_0x4834bd['size'])return!0x1;for(const _0x61cbdf of _0x52fa9)if(!_0x4834bd['has'](_0x61cbdf))return!0x1;return!0x0;}}class Ct extends _0x27f707{static get['requires'](){return[At];}['afterInit'](){const _0x5c70b2=this['editor'];if(!_0x5c70b2['plugins']['has']('TableEditing'))return;const _0x580719=_0x5c70b2['locale'],_0x5d5a97=_0x5c70b2['plugins']['get']('TrackChangesEditing');_0x5d5a97['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5d5a97['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5d5a97['registerBlockAttribute']('headingRows'),_0x5d5a97['registerBlockAttribute']('headingColumns'),_0x5d5a97['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x580719,'FORMAT_HEADER_ROW')),_0x5d5a97['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x580719,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xd6bd45=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c96de=this['editor']['plugins']['get']('TableUtils'),_0x1c8fc1=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x1d2766({showActiveMarker:_0x23bfa4=!0x0,setDataAttribute:_0x34966a=!0x0}={}){return(_0x25f103,_0x551e5d,_0x36ce3d)=>{const {type:_0x28983d,id:_0x5208e7}=_0xd6bd45['_splitMarkerName'](_0x551e5d['markerName']),_0xa93311=_0xd6bd45['getSuggestion'](_0x5208e7),_0x209585=_0xa93311['data'];if('formatBlock'!=_0xa93311['type']||!_0x209585||'setTableColumnHeader'!=_0x209585['commandName'])return;if(_0x551e5d['item'])return void _0x25f103['stop']();if(!_0x36ce3d['consumable']['consume'](_0x551e5d['markerRange'],_0x25f103['name']))return;const _0x117b76=_0x551e5d['markerRange']['start']['nodeAfter'],_0x4fe7b6=_0x551e5d['markerRange']['end']['nodeBefore'],_0x14646d=_0x117b76['parent']['parent'],{column:_0x57bde1}=_0x5c96de['getCellLocation'](_0x117b76),{column:_0x1e81d4}=_0x5c96de['getCellLocation'](_0x4fe7b6);for(let _0x499d27=_0x57bde1;_0x499d27<=_0x1e81d4;_0x499d27++){const _0x36d76c=_0x5c96de['createTableWalker'](_0x14646d,{'column':_0x499d27,'includeAllSlots':!0x1});for(const _0xd7d69d of _0x36d76c){const _0xf60a74=_0xd7d69d['cell'],_0x15f722=_0x36ce3d['mapper']['toViewElement'](_0xf60a74);_0x36ce3d['writer']['addClass']('ck-suggestion-marker-'+_0x28983d,_0x15f722),_0x34966a&&_0x36ce3d['writer']['setAttribute']('data-suggestion',_0x5208e7,_0x15f722),_0x36ce3d['mapper']['bindElementToMarker'](_0x15f722,_0x551e5d['markerName']),_0x23bfa4&&(_0xd6bd45['activeMarkers']['includes'](_0x551e5d['markerName'])?_0x36ce3d['writer']['addClass']('ck-suggestion-marker--active',_0x15f722):_0x36ce3d['writer']['removeClass']('ck-suggestion-marker--active',_0x15f722));}}};}_0xd6bd45['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1c8fc1),_0xd6bd45['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1c8fc1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1d2766(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a14e5,_0xcd8822,_0x5b5108)=>{_0x5b5108['options']['showSuggestionHighlights']&&_0x1d2766({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a14e5,_0xcd8822,_0x5b5108);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1ab4d0,_0x2bd602,_0x3b013b)=>{const {type:_0x289486,id:_0x52a46a}=_0xd6bd45['_splitMarkerName'](_0x2bd602['markerName']),_0x3fcfca=_0xd6bd45['getSuggestion'](_0x52a46a),_0x35fa47=_0x3fcfca['data'];if('formatBlock'!=_0x3fcfca['type']||!_0x35fa47||'setTableColumnHeader'!=_0x35fa47['commandName'])return;const _0x5a5c13=_0x3b013b['mapper']['markerNameToElements'](_0x2bd602['markerName']);if(_0x5a5c13){for(const _0x580994 of _0x5a5c13)_0x3b013b['writer']['removeClass']('ck-suggestion-marker-'+_0x289486,_0x580994),_0x3b013b['writer']['removeClass']('ck-suggestion-marker--active',_0x580994),_0x3b013b['writer']['removeAttribute']('data-suggestion',_0x580994),_0x3b013b['mapper']['unbindElementFromMarkerName'](_0x580994,_0x2bd602['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x493e60=this['editor'],_0x17ce0e=_0x493e60['locale'];function _0x101962(_0x1ac1c6){return{'type':'format','content':o(_0x17ce0e,'*Format:*\x20%0',_0x1ac1c6)};}_0x493e60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x589f08=>{if('formatBlock'!=_0x589f08['type'])return;const {data:_0x12250c}=_0x589f08;if(_0x12250c){if('setTableRowHeader'==_0x12250c['commandName']){const _0x4a0706=_0x12250c['commandParams'][0x0]['forceValue'];return _0x101962(o(_0x17ce0e,_0x4a0706?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x12250c['commandName']){const _0xa219f=_0x12250c['commandParams'][0x0]['forceValue'];return _0x101962(o(_0x17ce0e,_0xa219f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x27f707{['afterInit'](){const _0x4e7722=this['editor'],_0x28e0fb=_0x4e7722['locale'],_0x3bab8d=_0x4e7722['plugins']['get']('TrackChangesEditing');function _0xc4a706(_0x57ed74){return{'type':'format','content':''+o(_0x28e0fb,'*Set\x20table\x20type:*\x20%0',_0x57ed74)};}_0x4e7722['plugins']['has']('TableLayout')&&(_0x3bab8d['enableCommand']('insertTableLayout'),_0x3bab8d['enableDefaultAttributesIntegration']('tableType'),_0x3bab8d['registerBlockAttribute']('tableType'),_0x3bab8d['descriptionFactory']['registerElementLabel'](_0x22b50e=>_0x22b50e['is']('element','table')&&'layout'===_0x22b50e['getAttribute']('tableType'),_0x1fbeda=>o(_0x28e0fb,'ELEMENT_LAYOUT_TABLE',_0x1fbeda)),_0x3bab8d['descriptionFactory']['registerDescriptionCallback'](_0x54e3ab=>{const {data:_0x286626}=_0x54e3ab;if(_0x286626&&'tableType'==_0x286626['key'])switch(_0x286626['newValue']){case'layout':return _0xc4a706(o(_0x28e0fb,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xc4a706(o(_0x28e0fb,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x2777cd=>[_0x2777cd,null]));class Nt extends _0x27f707{static get['requires'](){return[At];}['afterInit'](){const _0x54292e=this['editor'];if(!_0x54292e['plugins']['has']('TableClipboard'))return;const _0x4fa031=_0x54292e['plugins']['get']('TrackChangesEditing'),_0x3bf608=_0x54292e['plugins']['get']('TableUtils'),_0xf5b16c=_0x54292e['plugins']['get'](At),_0x5f366b=_0x54292e['plugins']['get']('TableClipboard'),_0x504475=_0x54292e['plugins']['get']('TableSelection'),_0x2d3d21=_0x54292e['plugins']['get'](_0x192aff);_0xf5b16c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x54292e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x54292e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4a0306=null,_0x418432=!0x1;_0x2d3d21['on']('contentInsertion',(_0x189fdb,_0x37a4ce)=>{_0x418432='paste'===_0x37a4ce['method'];}),_0x54292e['model']['on']('insertContent',(_0x1265ef,_0x4fbcca)=>{if(!_0x418432&&null===_0x504475['getSelectedTableCells']())return;const [_0x24d04b,_0x521661]=_0x4fbcca,_0x2c0b95=_0x4fbcca[_0x4fbcca['length']-0x1];_0x2c0b95&&_0x2c0b95['forceDefaultExecution']||_0x4fa031['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x57ced1,_0x4a1860,_0x3601d8,_0x419d38,_0x200612){if(_0x4a1860&&!_0x4a1860['is']('documentSelection'))return!0x1;const _0x1447c4=_0x200612['getTableIfOnlyTableInContent'](_0x57ced1,_0x3601d8);if(!_0x1447c4||!Ue(_0x1447c4,void 0x0,_0x419d38))return!0x1;const _0x2c4f5f=_0x419d38['getSelectionAffectedTableCells'](_0x3601d8['document']['selection']);if(!_0x2c4f5f['length'])return!0x1;const _0x23e5d1=_0x2c4f5f[0x0]['findAncestor']('table'),_0x55f1ad=_0x419d38['getRowIndexes'](_0x2c4f5f),_0x3979f2=_0x419d38['getColumnIndexes'](_0x2c4f5f),_0x3f5830={'startRow':_0x55f1ad['first'],'endRow':_0x55f1ad['last'],'startColumn':_0x3979f2['first'],'endColumn':_0x3979f2['last']};return 0x1==_0x2c4f5f['length']&&(_0x3f5830['endRow']+=_0x419d38['getRows'](_0x1447c4)-0x1,_0x3f5830['endColumn']+=_0x419d38['getColumns'](_0x1447c4)-0x1),Ue(_0x23e5d1,_0x3f5830,_0x419d38);}(_0x24d04b,_0x521661,_0x54292e['model'],_0x3bf608,_0x5f366b)&&(_0x1265ef['stop'](),_0x4a0306={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x54292e['model']['change'](()=>{_0x54292e['model']['insertContent'](_0x4fbcca[0x0],_0x4fbcca[0x1],_0x4fbcca[0x2],{'forceDefaultExecution':!0x0});const _0x794b0f=_0x1f311e(),{rowInsertionRanges:_0x180607,columnInsertionRanges:_0x387c36,insertionRanges:_0x939aaf,deletionRanges:_0x4bf006,cells:_0x267796}=_0x4a0306;_0x180607['length']&&_0x4fa031['markMultiRangeInsertion'](_0x180607,'tablePasteRow',{'tablePasteChainId':_0x794b0f}),_0x387c36['length']&&_0x4fa031['markMultiRangeInsertion'](_0x387c36,'tablePasteColumn',{'tablePasteChainId':_0x794b0f}),_0x939aaf['length']&&(_0x4fa031['markMultiRangeInsertion'](_0x939aaf,'tablePaste',{'tablePasteChainId':_0x794b0f,'skipNestingCheck':!0x0}),_0x939aaf['forEach'](_0x1df6ff=>_0x1df6ff['detach']?.())),_0x4bf006['length']&&(_0x4fa031['markMultiRangeDeletion'](_0x4bf006,'tablePaste',{'tablePasteChainId':_0x794b0f,'skipNestingCheck':!0x0}),_0x4bf006['forEach'](_0x200367=>_0x200367['detach']?.()));const _0x54dd6f=_0x4fa031['markMultiRangeBlockFormat'](_0x267796['map'](({element:_0x385ea7})=>_0x385ea7),{'formatGroupId':_0x1f311e()},[],'tablePasteCell',{'tablePasteChainId':_0x794b0f});if(_0x54dd6f){const _0x383292=_0x54dd6f['getMarkers'](),_0xb83217=[];for(const {element:_0x55ddc7,attributes:_0x4115ce}of _0x267796){if(!_0x4115ce)continue;const _0x3e1fd5=_0x54292e['model']['createRangeOn'](_0x55ddc7),_0xd2825=_0x383292['find'](_0x5112d1=>_0x5112d1['getRange']()['isEqual'](_0x3e1fd5));_0xd2825&&_0xb83217['push']([_0xd2825['name'],_0x4115ce]);}_0xb83217['length']&&_0x54dd6f['setAttribute']('markerAttributes',Object['fromEntries'](_0xb83217));}_0x4a0306=null;}));},{'priority':_0x5971fc['high']+0xa}),_0x2d3d21['on']('contentInsertion',()=>{_0x418432=!0x1;},{'priority':'lowest'}),_0x54292e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1965e0,_0x4e0787)=>{const [_0x18f508,_0x3cafcf,,_0x2083a0]=_0x4e0787;if(!_0x4a0306)return;_0x1965e0['stop']();const _0x1d4ccc=_0x18f508['cell'],_0x2f356b=_0x3cafcf,_0x4348d=Oe(_0x1d4ccc),_0x3b0e02=Oe(_0x2f356b);_0x1965e0['return']=_0x1d4ccc;let _0x35da08=null,_0x512ee5=null;if(_0x3b0e02||_0x4348d){if(_0x4348d&&!_0x3b0e02){_0x2083a0['remove'](_0x1d4ccc['getChild'](0x0));for(const _0x40dd07 of Array['from'](_0x2f356b['getChildren']()))_0x2083a0['insert'](_0x40dd07,_0x1d4ccc,'end');const _0x2687e5=_0x4a0306['rowInsertionIndexes']['includes'](_0x18f508['row']),_0x53bfbc=_0x4a0306['columnInsertionIndexes']['includes'](_0x18f508['column']);_0x2687e5||_0x53bfbc||(_0x35da08=_0x23c46b['fromRange'](_0x2083a0['createRangeIn'](_0x1d4ccc)));}else _0x3b0e02&&!_0x4348d&&(_0x512ee5=_0x2083a0['createRangeIn'](_0x1d4ccc));}else{const _0x3dceba=_0x2083a0['createElement']('tableCellSuggestion'),_0x284fa5=_0x2083a0['createElement']('tableCellSuggestion');_0x2083a0['wrap'](_0x2083a0['createRangeIn'](_0x1d4ccc),_0x284fa5),_0x2083a0['insert'](_0x3dceba,_0x1d4ccc,0x0);for(const _0x509947 of Array['from'](_0x2f356b['getChildren']()))_0x2083a0['insert'](_0x509947,_0x3dceba,'end');_0x35da08=_0x23c46b['fromRange'](_0x2083a0['createRangeOn'](_0x3dceba)),_0x512ee5=_0x23c46b['fromRange'](_0x2083a0['createRangeOn'](_0x284fa5));}const _0x4e4d8a=Array['from'](_0x2f356b['getAttributes']())['filter'](([_0x814ea9])=>Be['includes'](_0x814ea9));_0x4a0306['cells']['push']({'element':_0x1d4ccc,'attributes':_0x4e4d8a['length']?Object['fromEntries'](_0x4e4d8a):null}),_0x35da08&&_0x4a0306['insertionRanges']['push'](_0x35da08),_0x512ee5&&_0x4a0306['deletionRanges']['push'](_0x512ee5);},{'priority':'high'}),_0x3bf608['on']('insertColumns',(_0x48bfce,_0x3c568c)=>{const [_0x5bd862,_0x5b51c8={}]=_0x3c568c;if(!_0x4a0306)return;const _0x56a6c6=_0x5b51c8['at']||0x0,_0x3c72fb=_0x5b51c8['columns']||0x1;_0x4a0306['columnInsertionIndexes']=new Array(_0x3c72fb)['fill'](_0x56a6c6)['map']((_0x440b40,_0x4e838f)=>_0x440b40+_0x4e838f);for(const {cell:_0x1346bb}of _0x3bf608['createTableWalker'](_0x5bd862,{'startColumn':_0x56a6c6,'endColumn':_0x56a6c6+_0x3c72fb-0x1}))_0x4a0306['columnInsertionRanges']['push'](_0x54292e['model']['createRangeOn'](_0x1346bb));},{'priority':'low'}),_0x3bf608['on']('insertRows',(_0x4275a1,_0x438037)=>{const [_0x4773a3,_0x4272e3={}]=_0x438037;if(!_0x4a0306)return;const _0x10027f=_0x4272e3['at']||0x0,_0x550da8=_0x4272e3['rows']||0x1;_0x4a0306['rowInsertionIndexes']=new Array(_0x550da8)['fill'](_0x10027f)['map']((_0x577050,_0x530f7b)=>_0x577050+_0x530f7b);for(const {cell:_0x576722}of _0x3bf608['createTableWalker'](_0x4773a3,{'startRow':_0x10027f,'endRow':_0x10027f+_0x550da8-0x1}))_0x4a0306['rowInsertionRanges']['push'](_0x54292e['model']['createRangeOn'](_0x576722));},{'priority':'low'}),_0x4fa031['descriptionFactory']['registerDescriptionCallback'](_0x2c8894=>{if(_0x2c8894['subType']&&_0x2c8894['subType']['startsWith']('tablePaste'))return _0x2c8894['previous']?{}:{'type':'insertion','content':o(_0x54292e['locale'],'*Replace\x20table\x20cells*')};});const _0x324064=()=>!0x1;for(const _0x12ebdf of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4fa031['_suggestionFactory']['registerCustomCallback']('insertion',_0x12ebdf,'join',_0x324064),_0x4fa031['_suggestionFactory']['registerCustomCallback']('deletion',_0x12ebdf,'join',_0x324064),_0x4fa031['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x12ebdf,'join',_0x324064);_0x4fa031['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x324064),_0x4fa031['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x51859b,_0x4461df,_0x4a1e71)=>{const _0x9a0e4d=_0x51859b['map'](_0x5684f9=>_0x5684f9['getContainedElement']())['filter'](_0x13eae7=>_0x13eae7),_0x1a4e70=new Map(_0x9a0e4d['map'](_0x431073=>[_0x431073,null]));if(_0x4a0306){for(const {element:_0x4bd0eb,attributes:_0x362a89}of _0x4a0306['cells'])_0x362a89&&_0x1a4e70['set'](_0x4bd0eb,_0x362a89);}else{if(_0x4a1e71&&_0x4a1e71['markerAttributes'])for(const [_0x49aeaf,_0x423826]of Object['entries'](_0x4a1e71['markerAttributes'])){const _0x5c96ca=_0x54292e['model']['markers']['get'](_0x49aeaf),_0x445a03=_0x5c96ca?_0x5c96ca['getRange']()['getContainedElement']():null;_0x445a03&&_0x1a4e70['set'](_0x445a03,_0x423826);}}_0x54292e['model']['change'](_0x3dec6e=>{for(const [_0x5dc26f,_0x54b406]of _0x1a4e70)_0x3dec6e['setAttributes']({...xe,..._0x54b406},_0x5dc26f);});});const _0x2d3d4e=(_0x58f911,_0x315703)=>{_0x4fa031['_suggestionFactory']['registerCustomCallback'](_0x58f911,'tablePaste',_0x315703,(_0x1eebaa,_0x456a10,_0x51bc91)=>{_0x54292e['model']['change'](_0x59665e=>{const _0x4f0892=[];for(const _0x18dc3a of _0x1eebaa){const _0x46bcd0=_0x18dc3a['start']['nodeAfter'];_0x46bcd0['is']('element','tableCellSuggestion')&&_0x4f0892['push'](_0x46bcd0);}_0x4fa031['_suggestionFactory']['getSuggestionCallback'](_0x58f911,null,_0x315703)(_0x1eebaa,_0x456a10,_0x51bc91);for(const _0x25f5c3 of _0x4f0892)'$graveyard'!=_0x25f5c3['root']['rootName']&&_0x59665e['unwrap'](_0x25f5c3);});});};_0x2d3d4e('insertion','accept'),_0x2d3d4e('insertion','discard'),_0x2d3d4e('deletion','accept'),_0x2d3d4e('deletion','discard'),_0x4fa031['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3fbd52=>{const _0x2a8a65=_0x3fbd52['map'](_0x43a882=>_0x43a882['getContainedElement']()),_0x1a8e2d=_0x2a8a65[0x0]['findAncestor']('table'),{minRow:_0x423654,maxRow:_0x56ff09}=_0xf5b16c['_getCoordsForCells'](_0x2a8a65);_0x3bf608['removeRows'](_0x1a8e2d,{'at':_0x423654,'rows':_0x56ff09-_0x423654+0x1});}),_0x4fa031['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1cd40e=>{const _0x560e08=_0x1cd40e['map'](_0x71a618=>_0x71a618['getContainedElement']()),_0x3be938=_0x560e08[0x0]['findAncestor']('table'),{minColumn:_0x7e2e4f,maxColumn:_0x3ca785}=_0xf5b16c['_getCoordsForCells'](_0x560e08);_0x3bf608['removeColumns'](_0x3be938,{'at':_0x7e2e4f,'columns':_0x3ca785-_0x7e2e4f+0x1});});const _0x451c58=(_0x889f5f,_0x1e7770)=>{if(!_0x1e7770['subType']||!_0x1e7770['subType']['startsWith']('tablePaste'))return;const _0x212ef7=_0x1e7770['attributes']['tablePasteChainId'],_0x11766b=_0x4fa031['getSuggestions']()['filter'](_0x408379=>_0x408379['isInContent']&&_0x408379['attributes']&&_0x408379['attributes']['tablePasteChainId']==_0x212ef7);_0x11766b['length']&&_0x1e7770['getAllAdjacentSuggestions']()['length']!=_0x11766b['length']&&_0x11766b['reduce']((_0xa02957,_0x24a8ea)=>(_0xa02957['next']=_0x24a8ea,_0x24a8ea['previous']=_0xa02957,_0x24a8ea));};function _0x23b8ca(_0x25b2d7,_0x1e8d48=!0x0){const {id:_0x19f6e4,authorId:_0x7f0e32}=_0x4fa031['_splitMarkerName'](_0x25b2d7['markerName']),_0x5d29fb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x185bc2=_0x4fa031['activeMarkers']['includes'](_0x25b2d7['markerName']);return _0x185bc2&&_0x5d29fb['push']('ck-suggestion-marker--active'),{'classes':_0x5d29fb,'attributes':{'data-suggestion':_0x19f6e4,'data-author-id':_0x7f0e32},'priority':_0x185bc2&&_0x1e8d48?0xbc2:0xbb8};}_0x4fa031['on']('suggestionLoaded',_0x451c58,{'priority':'high'}),_0x4fa031['on']('suggestionUnloaded',_0x451c58,{'priority':'high'}),_0x54292e['model']['document']['registerPostFixer'](()=>{let _0x2456c7=!0x1;const _0x19e84b=Array['from'](_0x54292e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25c68a,data:_0x23368f}of _0x19e84b){const {group:_0x4fbc21,type:_0x47befe,id:_0x2528c3}=_0x4fa031['_splitMarkerName'](_0x25c68a);if('suggestion'!=_0x4fbc21||'deletion'!=_0x47befe||_0x23368f['oldRange'])continue;if(!_0x4fa031['hasSuggestion'](_0x2528c3))continue;const _0x52884d=_0x4fa031['getSuggestion'](_0x2528c3)['getRanges'](),_0x9f68cb=_0x54292e['plugins']['get']('Users')['me'];for(const _0x13ade8 of _0x4fa031['getSuggestions']()){if(!_0x13ade8['isInContent']||_0x13ade8['author']!=_0x9f68cb)continue;if('formatBlock'!=_0x13ade8['type']||'tablePasteCell'!=_0x13ade8['subType'])continue;if(_0x13ade8['getRanges']()['every'](_0x12a69e=>_0x52884d['some'](_0x34017c=>_0x34017c['containsRange'](_0x12a69e,!0x0)))){for(const _0x490c85 of _0x13ade8['getAllAdjacentSuggestions']())_0x490c85['isInContent']&&(_0x490c85['discard'](),_0x2456c7=!0x0);}}}return _0x2456c7;}),_0x54292e['model']['document']['registerPostFixer'](_0x2df616=>{const _0xc80ef=_0x54292e['commands']['get']('redo');if(!_0xc80ef||!_0xc80ef['_createdBatches']['has'](_0x2df616['batch']))return!0x1;let _0x2f1241=!0x1;const _0x49415b=_0x54292e['plugins']['get']('Users')['me'],_0x112ae2=_0x54292e['model']['document']['differ']['getChanges'](),_0x1a70d3=Array['from'](_0x54292e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x38f130,data:_0x4697bd})=>{const {group:_0x2786c4,subType:_0x1fd347,authorId:_0x243a3c}=_0x4fa031['_splitMarkerName'](_0x38f130);return'suggestion'==_0x2786c4&&'tablePaste'==_0x1fd347&&_0x243a3c==_0x49415b['id']&&!_0x4697bd['oldRange'];});for(const _0x4d0729 of _0x112ae2){if('insert'!=_0x4d0729['type']||'tableCellSuggestion'!=_0x4d0729['name']||0x1!=_0x4d0729['length'])continue;const _0x19c7a5=_0x2df616['createRange'](_0x4d0729['position'],_0x4d0729['position']['getShiftedBy'](0x1));if(!_0x1a70d3['find'](({data:_0x3109ec})=>_0x3109ec['newRange']['isEqual'](_0x19c7a5))){for(const {name:_0x1d8909,data:_0x661b5b}of _0x1a70d3)if(_0x19c7a5['containsRange'](_0x661b5b['newRange'])){_0x2df616['updateMarker'](_0x1d8909,{'range':_0x19c7a5}),_0x2f1241=!0x0;break;}}}return _0x2f1241;}),_0x54292e['model']['document']['registerPostFixer'](_0x575cd8=>{let _0x447a4b=!0x1;const _0x35d4f5=_0x54292e['plugins']['get']('Users')['me'],_0xc1ea93=_0x4fa031['getSuggestions']()['filter'](_0x2b4b78=>_0x2b4b78['isInContent']&&_0x2b4b78['author']==_0x35d4f5),_0xbd053e=new Set(),_0x5edf0f=new Set();for(const _0x53a660 of _0xc1ea93)if('tablePaste'==_0x53a660['subType'])for(const _0xd3c1fc of _0x53a660['getMarkers']()){const _0x21b2e2=_0xd3c1fc['getRange']()['getContainedElement']();if(_0x21b2e2){if(_0x21b2e2['is']('element','tableCellSuggestion')&&Oe(_0x21b2e2)){_0x53a660['removeMarker'](_0xd3c1fc['name']),_0xbd053e['add'](_0x21b2e2),_0x447a4b=!0x0;const _0x477772=_0x21b2e2['nextSibling'],_0x4881af=_0x21b2e2['previousSibling'],_0x3c4f43=_0x477772&&_0x477772['is']('element','tableCellSuggestion'),_0x4746b3=_0x4881af&&_0x4881af['is']('element','tableCellSuggestion');_0x3c4f43&&!_0xbd053e['has'](_0x477772)&&_0x5edf0f['add'](_0x477772),_0x4746b3&&!_0xbd053e['has'](_0x4881af)&&_0x5edf0f['add'](_0x4881af);}else _0x21b2e2['is']('element','paragraph')&&_0x21b2e2['isEmpty']&&(_0x53a660['removeMarker'](_0xd3c1fc['name']),_0x447a4b=!0x0);}}else{if('tablePasteCell'==_0x53a660['subType']){if(!_0x53a660['attributes']||!_0x53a660['attributes']['tablePasteChainId'])continue;const _0x291474=_0x53a660['attributes']['markerAttributes'];if(_0x291474&&Object['keys'](_0x291474)['length'])continue;const _0x40f369=_0x53a660['attributes']['tablePasteChainId'];let _0x318207=!0x0,_0x46066f=!0x0;for(const _0x4c6c8a of _0xc1ea93)if(_0x4c6c8a['subType']&&_0x4c6c8a['subType']['startsWith']('tablePaste')){if(!_0x4c6c8a['attributes']['tablePasteChainId']){_0x46066f=!0x1;break;}if(_0x4c6c8a['id']!=_0x53a660['id']&&_0x4c6c8a['attributes']['tablePasteChainId']==_0x40f369){_0x318207=!0x1;break;}}_0x46066f&&_0x318207&&(_0x53a660['removeMarkers'](),_0x447a4b=!0x0);}}for(const _0x5c044f of _0xbd053e)_0x575cd8['remove'](_0x5c044f);for(const _0x2b37bf of _0x5edf0f)_0x575cd8['unwrap'](_0x2b37bf);return _0x447a4b;}),_0x54292e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2e0e4e=>_0x23b8ca(_0x2e0e4e),'converterPriority':'high'}),_0x54292e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1b0272,_0x417189)=>_0x417189['options']['showSuggestionHighlights']?_0x23b8ca(_0x1b0272,!0x1):null,'converterPriority':'high'});const _0x1fc0be=_0x54292e['editing']['view'];this['listenTo'](_0x1fc0be['document'],'clipboardOutput',(_0x26b224,_0x2d252f)=>{const _0x349146=[];for(const _0x5f0651 of _0x1fc0be['createRangeIn'](_0x2d252f['content'])['getItems']())_0x5f0651['is']('element','suggestion-td')&&_0x349146['push'](_0x5f0651);_0x1fc0be['change'](_0x5189b3=>{for(const _0x44dd94 of _0x349146)_0x5189b3['move'](_0x5189b3['createRangeIn'](_0x44dd94),_0x5189b3['createPositionBefore'](_0x44dd94)),_0x5189b3['remove'](_0x44dd94);});});}}function Oe(_0x13afb6){if(_0x13afb6['isEmpty'])return!0x0;const _0x4aead5=_0x13afb6['getChild'](0x0);return _0x4aead5['is']('element','paragraph')&&_0x4aead5['isEmpty'];}function Ue(_0x28c85e,_0x3c6a69={},_0x20f777){for(const {isAnchor:_0x4738dd,cellHeight:_0x391435,cellWidth:_0x57aa7b}of _0x20f777['createTableWalker'](_0x28c85e,{'includeAllSlots':!0x0,..._0x3c6a69}))if(!_0x4738dd||0x1!=_0x391435||0x1!=_0x57aa7b)return!0x1;return!0x0;}class Dt extends _0x27f707{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x244e16=this['editor']['plugins']['get']('TrackChangesEditing');_0x244e16['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x244e16['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x244e16['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x244e16['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x244e16['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x244e16['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x56572a,_0x1bb2a2){const _0x4d09b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19917a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x58ec44=_0x1bb2a2['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xf93fff=_0x19917a['getColumnGroupElement'](_0x58ec44);let _0x5160df=_0xf93fff?_0x19917a['getTableColumnsWidths'](_0xf93fff):null,_0x572351=_0x58ec44['getAttribute']('tableWidth')||null;const _0x575942=_0x1bb2a2['tableWidth']||_0x572351,_0x369b58=_0x1bb2a2['columnWidths']||_0x5160df,_0x413f23=this['editor']['plugins']['get']('Users')['me'];for(const _0x1c9029 of _0x4d09b7['getSuggestions']()){const _0x1db965=_0x1c9029['getContainedElement']();if('resizeTable'===_0x1c9029['subType']&&_0x1db965===_0x58ec44){_0x1c9029['author']!==_0x413f23&&_0x1c9029['discard']();const _0x4bb275=_0x1c9029['data']['commandParams'];_0x572351=_0x4bb275[0x0]['tableWidth'],_0x5160df=_0x4bb275[0x0]['columnWidths'];break;}}_0x56572a({'table':_0x58ec44,'tableWidth':_0x575942,'columnWidths':_0x369b58}),_0x4d09b7['markBlockFormat'](_0x58ec44,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x572351,'columnWidths':_0x5160df}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5ce7eb){if('formatBlock'!=_0x5ce7eb['type']&&'formatInline'!=_0x5ce7eb['type'])return;const {data:_0x249543}=_0x5ce7eb;if(_0x249543&&'resizeTable'===_0x249543['formatGroupId']){const _0x18229a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x18229a)};}}}class Mt extends _0x27f707{['afterInit'](){const _0x296bc0=this['editor'];_0x296bc0['plugins']['has']('Template')&&_0x296bc0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x27f707{['afterInit'](){const _0x18a56b=this['editor'];if(!_0x18a56b['commands']['get']('insertTableOfContents'))return;_0x18a56b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2ca2f0=_0x18a56b['plugins']['get']('TrackChangesEditing'),_0x5c5b53=_0x18a56b['locale'];_0x2ca2f0['descriptionFactory']['registerElementLabel']('tableOfContents',_0xb22241=>o(_0x5c5b53,'ELEMENT_TABLE_OF_CONTENTS',_0xb22241));}}class Bt extends _0x27f707{['afterInit'](){const _0x535b63=this['editor'];if(!_0x535b63['plugins']['has']('Title'))return;const _0x2503ba=_0x535b63['plugins']['get']('TrackChangesEditing');_0x2503ba['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x535b63['locale'],'ELEMENT_TITLE')),_0x535b63['model']['document']['registerPostFixer'](_0x5102be=>{let _0x4f41cc=!0x1;const _0x5651ec=Array['from'](_0x535b63['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x560aa6,data:_0x14dcb4}of _0x5651ec){const {group:_0x422b1c}=_0x2503ba['_splitMarkerName'](_0x560aa6);if('suggestion'!==_0x422b1c||!_0x14dcb4['newRange'])continue;const _0x744977=_0x14dcb4['newRange'],_0x3615bb=_0x744977['end']['nodeBefore'];if(!_0x3615bb||!_0x3615bb['is']('element','title-content'))continue;if(!_0x744977['start']['isTouching'](_0x744977['end']))continue;const _0x259b42=_0x535b63['model']['schema']['getNearestSelectionRange'](_0x744977['end'],'forward');if(_0x259b42&&_0x259b42['isCollapsed']){const _0x267ad8=_0x5102be['createRange'](_0x744977['start'],_0x259b42['start']);_0x267ad8['isEqual'](_0x744977)||(_0x5102be['updateMarker'](_0x560aa6,{'range':_0x267ad8}),_0x4f41cc=!0x0);}_0x4f41cc||(_0x5102be['removeMarker'](_0x560aa6),_0x4f41cc=!0x0);}return _0x4f41cc;});}}class Tt extends _0x27f707{['afterInit'](){const _0x30aca0=this['editor'],_0x1bb71e=_0x30aca0['plugins']['get']('TrackChangesEditing');_0x30aca0['plugins']['has']('Uploadcare')&&(_0x1bb71e['enableCommand']('uploadcare'),_0x30aca0['plugins']['has']('UploadcareImageEdit')&&(_0x1bb71e['enableCommand']('uploadcareImageEdit'),_0x1bb71e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1bb71e['registerBlockAttribute']('uploadcareImageId'),_0x1bb71e['descriptionFactory']['registerDescriptionCallback'](_0x3ebdcd=>{if('attribute'!=_0x3ebdcd['type'])return;const {data:_0x11dd71}=_0x3ebdcd;return _0x11dd71&&'uploadcareImageId'==_0x11dd71['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x27f707{['afterInit'](){const _0x2347d7=this['editor'],_0x20e0ad=_0x2347d7['plugins']['get']('TrackChangesEditing');_0x2347d7['plugins']['has']('UndoEditing')&&(_0x20e0ad['enableCommand']('undo'),_0x20e0ad['enableCommand']('redo'));}}class Ot extends _0x27f707{static get['requires'](){return[At];}['afterInit'](){const _0x236ce5=this['editor'];if(!_0x236ce5['plugins']['has']('TableCaptionEditing'))return;_0x236ce5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x27f707{['tableProperties'];['tableCellProperties'];constructor(_0x2e8b76){super(_0x2e8b76),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 _0x509d50=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x12d4d7 of this['tableProperties'])_0x509d50['enableCommand'](_0x12d4d7,(_0x2ff706,_0x2a3806)=>{const _0x3bd01e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x12d4d7,[_0x3bd01e],this['tableProperties'],'tableProperties',_0x2ff706,_0x2a3806);});_0x509d50['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x509d50['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x509d50['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5b42a1,_0x1a158a)=>this['handleDiscardAction'](this['tableProperties'],_0x5b42a1,_0x1a158a)),_0x509d50['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1b2cda of this['tableCellProperties'])_0x509d50['enableCommand'](_0x1b2cda,(_0x2243ef,_0x256ead)=>{const _0x2c929d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1b2cda,_0x2c929d,this['tableCellProperties'],'tableCellProperties',_0x2243ef,_0x256ead);});_0x509d50['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x509d50['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x509d50['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3d0723,_0xff15fd)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3d0723,_0xff15fd)),_0x509d50['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x509d50['descriptionFactory']['registerDescriptionCallback'](_0x21d31f=>this['handleSuggestionDescription'](_0x21d31f));}['_handlePropertyChange'](_0x2c76f8,_0x1a6ab1,_0x8326c8,_0x2f5032,_0x3be6d2,_0x173de2){const _0x569d57=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x173de2['batch'],()=>{for(const _0xe71253 of _0x1a6ab1){if(this['_getSuggestion'](_0xe71253,_0x2f5032))_0x3be6d2(_0x173de2);else{const _0x51bd71={};for(const _0x435825 of _0x8326c8){const _0x37a468=_0xe71253['getAttribute'](_0x435825);void 0x0!==_0x37a468&&(_0x51bd71[_0x435825]=_0x37a468);}_0x3be6d2(_0x173de2),_0x569d57['markBlockFormat'](_0xe71253,{'commandParams':[_0x51bd71]},[],_0x2f5032);}}});}['handleDiscardAction'](_0x48e0fe,_0x522642,_0x10db90){const _0x2ae7ee=_0x522642[0x0]['start']['nodeAfter'],_0x3a9a9d=_0x10db90['commandParams'][0x0];this['editor']['model']['change'](_0x315af8=>{for(const _0x4ab1ba of _0x48e0fe)void 0x0!==_0x3a9a9d[_0x4ab1ba]?_0x315af8['setAttribute'](_0x4ab1ba,_0x3a9a9d[_0x4ab1ba],_0x2ae7ee):_0x315af8['removeAttribute'](_0x4ab1ba,_0x2ae7ee);});}['handleSuggestionDescription'](_0x19b940){if(_0x19b940['data'])switch(_0x19b940['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'](_0x9b418f,_0x224550){const _0x20b991=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x439e75 of _0x20b991['getSuggestions']({'skipNotAttached':!0x0})){const _0x414d30=_0x439e75['getContainedElement']();if(_0x439e75['subType']===_0x224550&&_0x414d30===_0x9b418f)return _0x439e75;}return null;}}const m='$elementName';class d extends _0x27f707{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x23be23,_0x165dfb,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,q,gt,lt,dt,pt,kt,wt,bt,yt,St,jt,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5df50f){super(_0x5df50f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x47683d,_0xcc3897,_0x19d200,_0x5676a5)=>{this['_model']['change'](()=>{for(const _0x3916d9 of[..._0x5676a5,..._0x19d200])this['_model']['markers']['has'](_0x3916d9)&&_0x5df50f['editing']['reconvertMarker'](_0x3916d9);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5df50f['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(),_0x5df50f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5df50f['config']['get']('trackChanges.trackFormatChanges'),_0x5df50f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5df50f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x5df50f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1688d8=this['editor'],_0x3ce1c0=(_0x255be5,_0x92cfa2)=>{if('attribute'!=_0x255be5)return'ck-suggestion-marker-'+_0x255be5;const _0x5970c9=_0x92cfa2['split']('|')[0x0];return this['_isBlockAttribute'](_0x5970c9)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1688d8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x17734a=>{const {id:_0x383c86,authorId:_0xfcf8a9,type:_0x500644,subType:_0x50a652}=this['_splitMarkerName'](_0x17734a['markerName']),_0x3cbed7=['ck-suggestion-marker',_0x3ce1c0(_0x500644,_0x50a652)];let _0x329c84=0xbb8;return this['activeMarkers']['includes'](_0x17734a['markerName'])&&(_0x3cbed7['push']('ck-suggestion-marker--active'),_0x329c84=0xbc2),'deletion'==_0x500644&&(_0x329c84+=0x5),{'classes':_0x3cbed7,'attributes':{'data-suggestion':_0x383c86,'data-author-id':_0xfcf8a9},'priority':_0x329c84};}}),_0x1688d8['conversion']['for']('dataDowncast')['add'](_0x308a6e=>{_0x308a6e['on']('addMarker:suggestion',(_0x12ec44,_0x290d0f,_0x3af743)=>{if(!_0x3af743['options']['showSuggestionHighlights'])return;const _0x3267f1=_0x290d0f['item'];if(!_0x3267f1)return;const _0xb91e1c=_0x3af743['mapper']['toViewElement'](_0x3267f1);_0x1688d8['model']['schema']['isObject'](_0x3267f1)&&_0xb91e1c&&!_0xb91e1c['getCustomProperty']('widget')&&_0xb91e1c['is']('containerElement')&&_0x2e6643(_0xb91e1c,_0x3af743['writer']);},{'priority':'high'});}),_0x1688d8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1e2f63,_0x21bb3f)=>{if(!_0x21bb3f['options']['showSuggestionHighlights'])return null;const {id:_0x2b27f1,authorId:_0x4081ac,type:_0x3ad980,subType:_0x198c26}=this['_splitMarkerName'](_0x1e2f63['markerName']);return{'classes':['ck-suggestion-marker',_0x3ce1c0(_0x3ad980,_0x198c26)],'priority':0xbb8,'attributes':{'data-suggestion':_0x2b27f1,'data-author-id':_0x4081ac}};}});const _0x458f82=({showActiveMarkers:_0x165a89=!0x0,isAttributeSuggestion:_0x36b310=!0x1}={})=>(_0x4a3f18,_0x1db138,_0x4cf7c1)=>{if(!_0x1db138['item'])return;const {id:_0x50dd82,authorId:_0x3bf76e}=this['_splitMarkerName'](_0x1db138['markerName']);if(_0x36b310){const _0x1143c2=this['_suggestions']['get'](_0x50dd82),_0x379e04=this['_getAttributeKey'](_0x1143c2);if(!this['_isBlockAttribute'](_0x379e04))return;}if(_0x1db138['item']['is']('selection'))return void _0x4cf7c1['consumable']['consume'](_0x1db138['item'],_0x4a3f18['name']);const _0x436aaa=_0x4cf7c1['mapper']['toViewElement'](_0x1db138['item']);if(_0x1db138['item']['is']('element')&&_0x1688d8['model']['schema']['isBlock'](_0x1db138['item'])&&!_0x436aaa['getCustomProperty']('addHighlight')){_0x4cf7c1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x436aaa),_0x4cf7c1['writer']['setAttribute']('data-suggestion',_0x50dd82,_0x436aaa),_0x4cf7c1['writer']['setAttribute']('data-author-id',_0x3bf76e,_0x436aaa),_0x4cf7c1['mapper']['bindElementToMarker'](_0x436aaa,_0x1db138['markerName']),_0x165a89&&(this['activeMarkers']['includes'](_0x1db138['markerName'])?_0x4cf7c1['writer']['addClass']('ck-suggestion-marker--active',_0x436aaa):_0x4cf7c1['writer']['removeClass']('ck-suggestion-marker--active',_0x436aaa));for(const _0x443053 of _0x1688d8['model']['createRangeIn'](_0x1db138['item'])['getItems']())_0x4cf7c1['consumable']['consume'](_0x443053,_0x4a3f18['name']);_0x4cf7c1['consumable']['consume'](_0x1db138['item'],_0x4a3f18['name']);}};_0x1688d8['conversion']['for']('dataDowncast')['add'](_0x2371a7=>{_0x2371a7['on']('addMarker:suggestion:formatBlock',(_0x55a4ea,_0x5c6867,_0x52eb26)=>{_0x52eb26['options']['showSuggestionHighlights']&&_0x458f82({'showActiveMarkers':!0x1})(_0x55a4ea,_0x5c6867,_0x52eb26);},{'priority':'highest'});}),_0x1688d8['conversion']['for']('dataDowncast')['add'](_0x5f3340=>{_0x5f3340['on']('addMarker:suggestion:attribute',(_0xdbfdd3,_0x2563f6,_0x508c0b)=>{_0x508c0b['options']['showSuggestionHighlights']&&_0x458f82({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xdbfdd3,_0x2563f6,_0x508c0b);},{'priority':'highest'});}),_0x1688d8['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2b49e4,_0x5d48b9)=>{if(_0x5d48b9['options']['showSuggestionHighlights']){const {id:_0x20ffbc,authorId:_0x3f079c}=this['_splitMarkerName'](_0x2b49e4);return _0x2b49e4['includes'](':split')||_0x2b49e4['includes'](':merge')?{'group':'suggestion','name':_0x2b49e4['substr'](0xb),'attributes':{'data-suggestion':_0x20ffbc,'data-author-id':_0x3f079c}}:null;}return{'group':'suggestion','name':_0x2b49e4['substr'](0xb)};}}),_0x1688d8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5f393d,{writer:_0x588406})=>{let _0x423786='suggestion:'+_0x5f393d['getAttribute']('suggestion-type')+':'+_0x5f393d['getAttribute']('id');return _0x5f393d['getAttribute']('marker-count')&&(_0x423786+=':'+_0x5f393d['getAttribute']('marker-count')),_0x588406['createElement']('$marker',{'data-name':_0x423786});}}),_0x1688d8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1688d8['conversion']['for']('editingDowncast')['add'](_0x8d308a=>{_0x8d308a['on']('addMarker:suggestion:formatBlock',_0x458f82(),{'priority':'high'});}),_0x1688d8['conversion']['for']('editingDowncast')['add'](_0x256d07=>{_0x256d07['on']('addMarker:suggestion:attribute',_0x458f82({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1688d8['conversion']['for']('editingDowncast')['add'](_0x5d09d5=>{_0x5d09d5['on']('removeMarker:suggestion:formatBlock',(_0x3c6869,_0x695d1,_0x2cc9f1)=>{const _0x4b746d=_0x2cc9f1['mapper']['markerNameToElements'](_0x695d1['markerName']);if(_0x4b746d){for(const _0x350722 of _0x4b746d)_0x350722['getCustomProperty']('addHighlight')||(_0x2cc9f1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x350722),_0x2cc9f1['writer']['removeAttribute']('data-suggestion',_0x350722),_0x2cc9f1['writer']['removeAttribute']('data-author-id',_0x350722),_0x2cc9f1['mapper']['unbindElementFromMarkerName'](_0x350722,_0x695d1['markerName']));}},{'priority':'high'});}),_0x1688d8['conversion']['for']('editingDowncast')['add'](_0x435bd1=>{_0x435bd1['on']('removeMarker:suggestion:attribute',(_0x1580c4,_0x306b81,_0x45dc7a)=>{const _0xbce631=_0x45dc7a['mapper']['markerNameToElements'](_0x306b81['markerName']);if(!_0xbce631)return;const {id:_0x547051}=this['_splitMarkerName'](_0x306b81['markerName']),_0x194542=this['_suggestions']['get'](_0x547051),_0x5db205=this['_getAttributeKey'](_0x194542);if(this['_isBlockAttribute'](_0x5db205)){for(const _0x3f41ce of _0xbce631)_0x3f41ce['getCustomProperty']('addHighlight')||(_0x45dc7a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3f41ce),_0x45dc7a['writer']['removeAttribute']('data-suggestion',_0x3f41ce),_0x45dc7a['writer']['removeAttribute']('data-author-id',_0x3f41ce),_0x45dc7a['mapper']['unbindElementFromMarkerName'](_0x3f41ce,_0x306b81['markerName']));}},{'priority':'high'});}),_0x1688d8['model']['document']['registerPostFixer'](_0x376e51=>{let _0x2fbc2b=!0x1;const _0xe40b1e=Array['from'](_0x1688d8['model']['document']['differ']['getChangedMarkers']()),_0x3779e0=new Set();for(const {name:_0x47a23b,data:_0x3ccd6b}of _0xe40b1e){const {group:_0x368e2a,type:_0x3890e5,subType:_0xd25b6b,id:_0x226c34}=this['_splitMarkerName'](_0x47a23b);if('suggestion'!==_0x368e2a)continue;const _0x34ee15=this['_suggestions']['get'](_0x226c34);if(null!=_0x3ccd6b['newRange']){'formatInline'==_0x3890e5&&(_0x2fbc2b=_0x2fbc2b||Pt(_0x3ccd6b['newRange'],_0x47a23b,_0x376e51,_0x1688d8['model']['schema']));const _0x3b8b58='attribute'==_0x3890e5&&this['_isBlockAttribute'](_0xd25b6b['split']('|')[0x0]);if(_0x3ccd6b['newRange']['isCollapsed']||'$graveyard'==_0x3ccd6b['newRange']['root']['rootName']||'formatBlock'==_0x3890e5&&!Lt(_0x3ccd6b['newRange'])||_0x3b8b58&&!Lt(_0x3ccd6b['newRange'])||'deletion'==_0x3890e5&&!Jt(_0x3ccd6b['newRange']))_0x376e51['removeMarker'](_0x47a23b),_0x2fbc2b=!0x0;else{if(!_0x34ee15||!_0x34ee15['isInContent'])continue;if(_0x3ccd6b['newRange']&&_0x3ccd6b['oldRange']&&_0x3ccd6b['newRange']['isEqual'](_0x3ccd6b['oldRange']))continue;_0x3779e0['add'](_0x34ee15);}}}return _0x3779e0['size']>0x0&&(_0x2fbc2b=!!this['_joinWithAdjacentSuggestions'](_0x3779e0)||_0x2fbc2b),_0x2fbc2b;}),_0x1688d8['model']['document']['registerPostFixer'](_0x53ca48=>{let _0x5512b4=!0x1;for(const _0x1dc82d of _0x1688d8['model']['document']['differ']['getChanges']())if('insert'==_0x1dc82d['type'])for(const _0x17b542 of this['_suggestions']['values']()){if(_0x17b542['isMultiRange']||!_0x17b542['isInContent'])continue;const _0x3e5db1='formatBlock'==_0x17b542['type'],_0x3b5474=this['_getAttributeKey'](_0x17b542),_0x278cdb=_0x3b5474&&this['_isBlockAttribute'](_0x3b5474);if(!_0x3e5db1&&!_0x278cdb)continue;const _0x194aa4=_0x17b542['getFirstRange']();if(_0x194aa4['start']['parent']!=_0x194aa4['end']['parent']&&!_0x194aa4['end']['isAtEnd']){const _0x8b1fb9=_0x1688d8['model']['createPositionAt'](_0x194aa4['start']['nodeAfter'],'end'),_0x3b6d15=_0x1688d8['model']['createRange'](_0x194aa4['start'],_0x8b1fb9);_0x53ca48['updateMarker'](_0x17b542['getFirstMarker'](),{'range':_0x3b6d15}),_0x5512b4=!0x0;}}return _0x5512b4;}),_0x1688d8['model']['document']['registerPostFixer'](_0x15552e=>this['_processAttributeChanges'](_0x15552e)),_0x1688d8['model']['document']['registerPostFixer'](_0xbda011=>!_0xbda011['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xbda011)),_0x1688d8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1688d8['model']['document']['on']('change:data',(_0x56dad8,_0x45aba8)=>{if(!_0x45aba8['isLocal']||_0x45aba8['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x42acda=_0x1688d8['model']['document']['differ']['getChanges']();if(0x0==_0x42acda['length'])return;const _0x500763=[],_0xb13a72=_0x42acda['filter'](_0x547815=>'attribute'==_0x547815['type']),_0x24b7ab=_0x42acda['filter'](_0x201031=>'insert'==_0x201031['type']&&'$text'!=_0x201031['name']);for(const _0x24ab54 of _0xb13a72)this['_isRegisteredAttribute'](_0x24ab54['attributeKey'])&&_0x500763['push']({'key':_0x24ab54['attributeKey'],'newValue':_0x24ab54['attributeNewValue'],'oldValue':_0x24ab54['attributeOldValue'],'range':Kt(_0x24ab54['range'],_0x1688d8['model'])});for(const _0x305835 of _0x24b7ab){if('rename'!=_0x305835['action']&&'refresh'!=_0x305835['action'])continue;const _0x3ccddc=Ht(_0x305835['position']['nodeAfter'],_0x1688d8['model']),_0x5e3694=_0x305835['before'];'rename'==_0x305835['action']&&_0x500763['push']({'key':m,'newValue':_0x305835['name'],'oldValue':_0x5e3694['name'],'range':_0x3ccddc});for(const [_0x2f1452,_0x28ddb9]of _0x5e3694['attributes']){if(!this['_isRegisteredAttribute'](_0x2f1452))continue;const _0x40b70e=_0x305835['attributes']['get'](_0x2f1452);_0x28ddb9!==_0x40b70e&&_0x500763['push']({'key':_0x2f1452,'newValue':_0x40b70e,'oldValue':_0x28ddb9,'range':_0x3ccddc});}for(const [_0x4c8ce,_0x5636c5]of _0x305835['attributes'])this['_isRegisteredAttribute'](_0x4c8ce)&&(_0x5e3694['attributes']['has'](_0x4c8ce)||_0x500763['push']({'key':_0x4c8ce,'newValue':_0x5636c5,'oldValue':null,'range':_0x3ccddc}));}0x0!=_0x500763['length']&&_0x1688d8['model']['enqueueChange'](_0x45aba8,_0x56023d=>{const _0x4f6698=_0x1f311e();for(const {range:_0x2dfe5b,key:_0x3608bc,oldValue:_0x17191a,newValue:_0x247e15}of _0x500763)this['markAttributeChange'](_0x2dfe5b,_0x3608bc,_0x17191a,_0x247e15,{'groupId':_0x4f6698});this['_reduceExistingSuggestions'](_0x56023d,_0x500763);});},{'priority':'lowest'}),_0x1688d8['model']['markers']['on']('update:suggestion',(_0x10179b,_0x303fec,_0x853e30)=>{if(null==_0x853e30){const {id:_0x2941d2}=this['_splitMarkerName'](_0x303fec['name']),_0xc38373=this['_suggestions']['get'](_0x2941d2);_0xc38373&&_0xc38373['addMarkerName'](_0x303fec['name']);}}),_0x1688d8['model']['document']['on']('change:data',()=>{const _0x49644f=Array['from'](_0x1688d8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x46676b=>'suggestion'===this['_splitMarkerName'](_0x46676b['name'])['group']);if(0x0===_0x49644f['length'])return;_0x49644f['sort']((_0x45b6b1,_0x4a5772)=>{const _0x56085f=_0x45b6b1['data']['oldRange'],_0x4f84d6=_0x4a5772['data']['oldRange'];return null===_0x56085f&&null===_0x4f84d6?0x0:null===_0x56085f&&null!==_0x4f84d6?-0x1:null!==_0x56085f&&null===_0x4f84d6?0x1:_0x56085f['start']['isBefore'](_0x4f84d6['start'])?-0x1:0x1;});const _0x394ae2=new Set(),_0x10efe1=new Set();for(const {name:_0x5c0370,data:_0x3159fc}of _0x49644f){const {id:_0x554234}=this['_splitMarkerName'](_0x5c0370);if(null===_0x3159fc['oldRange']){const _0x8e19f4=this['_handleNewSuggestionMarker'](_0x5c0370);_0x10efe1['add'](_0x8e19f4);}else{const _0x406427=this['_suggestions']['get'](_0x554234);null!==_0x3159fc['newRange']||_0x406427['isInContent']?(_0x394ae2['add'](_0x406427['head']),_0x10efe1['add'](_0x406427)):this['_removeSuggestion'](_0x406427);}}_0x10efe1['size']>0x0&&this['_refreshSuggestionsChain'](_0x10efe1);for(const _0x460947 of _0x394ae2)this['fire']('suggestionChanged',_0x460947);}),_0x1688d8['model']['on']('applyOperation',(_0x56f2c5,_0x38ef23)=>{const _0x413bf0=_0x38ef23[0x0];if(!this['_suggestions']['size'])return;if(!_0x413bf0['isDocumentOperation'])return;if(_0x413bf0['batch']['isUndo']||!_0x413bf0['batch']['isLocal'])return;let _0x4085f5,_0xe5f7fc;switch(_0x413bf0['type']){case'insert':_0x4085f5=_0x1688d8['model']['createPositionAt'](_0x413bf0['position']),_0xe5f7fc=_0x4085f5['getShiftedBy'](_0x413bf0['howMany']);break;case'split':_0x4085f5=_0x1688d8['model']['createPositionAt'](_0x413bf0['splitPosition']),_0xe5f7fc=_0x1688d8['model']['createPositionAt'](_0x413bf0['moveTargetPosition']);break;case'move':_0x4085f5=_0x1688d8['model']['createPositionAt'](_0x413bf0['targetPosition']),_0xe5f7fc=_0x4085f5['getShiftedBy'](_0x413bf0['howMany']);break;default:return;}const _0x4ba153=_0x1688d8['model']['createRange'](_0x4085f5,_0xe5f7fc);_0x1688d8['model']['change'](()=>{for(const {suggestion:_0x10685d,meta:_0x3444fe}of this['_findSuggestions'](_0x4ba153)){if(_0x10685d['isMultiRange'])continue;if('formatInline'==_0x10685d['type'])continue;const _0xd77971=this['_getAttributeKey'](_0x10685d);if(_0xd77971&&this['_isBlockAttribute'](_0xd77971)&&'split'!=_0x413bf0['type'])continue;const _0x20000a=_0x10685d['data']&&_0x10685d['data']['multipleBlocks'];('formatBlock'!=_0x10685d['type']||'split'==_0x413bf0['type']&&!_0x20000a)&&(_0x3444fe['containsRangeInObject']||'insertion'==_0x10685d['type']&&_0x3444fe['isOwn']||_0x10685d['getFirstRange']()['containsRange'](_0x4ba153)&&this['_breakSuggestionMarker'](_0x10685d,_0x4085f5,_0xe5f7fc));}});},{'priority':'lowest'}),_0x1688d8['model']['on']('deleteContent',(_0x3e0755,_0x49fea2)=>{const _0x29cf87=_0x49fea2[0x0],_0x48c630=_0x49fea2[0x1];if(_0x48c630&&_0x48c630['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x29cf87['isCollapsed'])return;const _0x10d3c8=_0x1688d8['model']['schema'],{start:_0x3dca8f,end:_0x4ce1ce}=_0x29cf87['getFirstRange'](),_0x3f2934=_0x3dca8f['nodeAfter']&&_0x10d3c8['isLimit'](_0x3dca8f['nodeAfter'])?null:_0x10d3c8['getNearestSelectionRange'](_0x3dca8f,'forward'),_0x59403a=_0x4ce1ce['nodeBefore']&&_0x10d3c8['isLimit'](_0x4ce1ce['nodeBefore'])?null:_0x10d3c8['getNearestSelectionRange'](_0x4ce1ce,'backward'),_0x92ad66=_0x1688d8['model']['createRange'](_0x3f2934?_0x3f2934['start']:_0x3dca8f,_0x59403a?_0x59403a['end']:_0x4ce1ce);_0x1688d8['model']['change'](_0x5f1ae0=>{this['markDeletion'](_0x92ad66);const _0x2cc615=_0x1688d8['model']['schema']['getNearestSelectionRange'](_0x92ad66['start']);_0x29cf87['is']('documentSelection')?_0x5f1ae0['setSelection'](_0x2cc615):_0x29cf87['setTo'](_0x2cc615);}),_0x3e0755['stop']();},{'priority':_0x5971fc['normal']+0xa}),_0x1688d8['model']['on']('insertContent',(_0x1d0e96,_0x17c909)=>{const _0x41eb26=_0x17c909[_0x17c909['length']-0x1];_0x41eb26&&_0x41eb26['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1688d8['model']['change'](()=>{let _0x42cba3=_0x1688d8['model']['insertContent'](_0x17c909[0x0],_0x17c909[0x1],_0x17c909[0x2],{'forceDefaultExecution':!0x0});if(!_0x42cba3)return;_0x1d0e96['return']=_0x42cba3['clone']();const _0x2d4307=_0x42cba3['end']['nodeBefore'],_0x2b758c=_0x1688d8['model']['schema'];_0x2d4307&&_0x2b758c['isBlock'](_0x2d4307)&&!_0x2b758c['isObject'](_0x2d4307)&&(_0x42cba3=_0x1688d8['model']['createRange'](_0x42cba3['start'],_0x1688d8['model']['createPositionAt'](_0x2d4307,'end'))),this['markInsertion'](_0x42cba3);}),_0x1d0e96['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x209f5e=new D(_0x1688d8,this['_suggestions']);_0x1688d8['commands']['add']('acceptSuggestion',_0x209f5e),this['enableCommand']('acceptSuggestion');const _0x1be64e=new M(_0x1688d8,this['_suggestions']);_0x1688d8['commands']['add']('discardSuggestion',_0x1be64e),this['enableCommand']('discardSuggestion'),_0x1688d8['commands']['add']('acceptAllSuggestions',new $(_0x1688d8,_0x209f5e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1688d8['commands']['add']('discardAllSuggestions',new $(_0x1688d8,_0x1be64e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1688d8['commands']['add']('acceptSelectedSuggestions',new B(_0x1688d8,_0x209f5e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1688d8['commands']['add']('discardSelectedSuggestions',new B(_0x1688d8,_0x1be64e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3beb44=_0x1688d8['plugins']['get']('CommentsRepository');this['listenTo'](_0x3beb44,'addComment',(_0x272fda,{threadId:_0x26ce0f})=>{const _0x2e69fa=this['_suggestions']['get'](_0x26ce0f);_0x2e69fa&&_0x2e69fa['commentThread']&&0x1===_0x2e69fa['commentThread']['length']&&this['_updateSuggestionData'](_0x26ce0f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3beb44,'removeComment',(_0x14b644,{threadId:_0x1e3e92})=>{const _0x2c213e=this['_suggestions']['get'](_0x1e3e92);_0x2c213e&&_0x2c213e['commentThread']&&!_0x2c213e['commentThread']['length']&&this['_updateSuggestionData'](_0x1e3e92,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x49b0c6){const _0x2c7803=_0x17aa10([0x39,0x7a,0x6a,0x31,0x67,0x54,0x71,0x42,0x55,0x65,0x58,0x6d,0x79,0x4e,0x62,0x41,0x47,0x32,0x38,0x75,0x48,0x77,0x59,0x53,0x4a,0x76,0x44,0x4c,0x66,0x43,0x30,0x6e,0x73,0x78,0x52,0x4f,0x4d,0x35,0x56,0x6b,0x57,0x50,0x68,0x63,0x4b,0x45,0x33,0x64,0x36,0x61,0x74,0x70,0x37,0x6f,0x72,0x69,0x6c,0x51,0x5a,0x34,0x49,0x46]),_0x481fbc=0x115fabbb,_0x510818=0x1158c04b^_0x481fbc,_0x10db6c=window[_0x17aa10([0x44,0x61,0x74,0x65])][_0x17aa10([0x6e,0x6f,0x77])](),_0x5e49c7=_0x49b0c6[_0x17aa10([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x8da717=new window[(_0x17aa10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c065d=>{_0x5e49c7[_0x17aa10([0x6f,0x6e,0x63,0x65])](_0x17aa10([0x72,0x65,0x61,0x64,0x79]),_0x5c065d);}),_0x37e573={[_0x17aa10([0x6b,0x74,0x79])]:_0x17aa10([0x45,0x43]),[_0x17aa10([0x75,0x73,0x65])]:_0x17aa10([0x73,0x69,0x67]),[_0x17aa10([0x63,0x72,0x76])]:_0x17aa10([0x50,0x2d,0x32,0x35,0x36]),[_0x17aa10([0x78])]:_0x17aa10([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]),[_0x17aa10([0x79])]:_0x17aa10([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]),[_0x17aa10([0x61,0x6c,0x67])]:_0x17aa10([0x45,0x53,0x32,0x35,0x36])},_0x440084=_0x5e49c7[_0x17aa10([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17aa10([0x67,0x65,0x74])](_0x17aa10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ebf21(){let _0x107f98,_0x3c6ef0=null,_0x2b07ce=null;try{if(_0x440084==_0x17aa10([0x47,0x50,0x4c]))return _0x17aa10([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x107f98=_0x3ef3db(),!_0x107f98)return _0x17aa10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x107f98[_0x17aa10([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b07ce=_0x76f25c(_0x107f98[_0x17aa10([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x107f98[_0x17aa10([0x6a,0x74,0x69])])),await _0x3f8ac6()?_0x5b0f85()?_0x96740f()?_0x17aa10([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40d834()?(_0x107f98[_0x17aa10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17aa10([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3c6ef0=_0x19b6e1(_0x17aa10([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x107f98[_0x17aa10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17aa10([0x74,0x72,0x69,0x61,0x6c])&&(_0x3c6ef0=_0x19b6e1(_0x17aa10([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d65d1()):_0x17aa10([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17aa10([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17aa10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x17aa10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x96740f(){const _0x347f6a=[_0x17aa10([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17aa10([0x74,0x72,0x69,0x61,0x6c])][_0x17aa10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x107f98[_0x17aa10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10db6c/0x3e8:0xe10*_0x510818;return _0x107f98[_0x17aa10([0x65,0x78,0x70])]<_0x347f6a;}function _0x5b0f85(){const _0x4cdfad=_0x107f98[_0x17aa10([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4cdfad)return!0x1;if(_0x4cdfad[_0x17aa10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17aa10([0x2a])))return!0x0;if(_0x4cdfad[_0x17aa10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17aa10([0x54,0x43])))return!0x0;if(_0x4cdfad[_0x17aa10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17aa10([0x52,0x54,0x43]))){if(_0x3d675c())return!0x0;if(_0x196e19()||_0x2bf9a5())return!0x0;}return!0x1;}function _0x40d834(){const _0x5d74c7=_0x107f98[_0x17aa10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d74c7||0x0==_0x5d74c7[_0x17aa10([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x162c2a}=new URL(window[_0x17aa10([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d74c7[_0x17aa10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x162c2a))return!0x0;const _0x30f2d8=_0x162c2a[_0x17aa10([0x73,0x70,0x6c,0x69,0x74])](_0x17aa10([0x2e]));return _0x5d74c7[_0x17aa10([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41a95a=>_0x41a95a[_0x17aa10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17aa10([0x2a])))[_0x17aa10([0x6d,0x61,0x70])](_0x2c05af=>_0x2c05af[_0x17aa10([0x73,0x70,0x6c,0x69,0x74])](_0x17aa10([0x2e])))[_0x17aa10([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x590232=>_0x590232[_0x17aa10([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x30f2d8[_0x17aa10([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17aa10([0x6d,0x61,0x70])](_0xa985fa=>Array(_0x30f2d8[_0x17aa10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xa985fa[_0x17aa10([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17aa10([0x66,0x69,0x6c,0x6c])](_0xa985fa[0x0]===_0x17aa10([0x2a])?_0x17aa10([0x2a]):'')[_0x17aa10([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xa985fa))[_0x17aa10([0x73,0x6f,0x6d,0x65])](_0xaaea17=>_0x30f2d8[_0x17aa10([0x65,0x76,0x65,0x72,0x79])]((_0x482958,_0x54b12d)=>_0xaaea17[_0x54b12d]===_0x482958||_0xaaea17[_0x54b12d]===_0x17aa10([0x2a])));}function _0x4d65d1(){return _0x3c6ef0&&_0x2b07ce?new window[(_0x17aa10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x571470,_0x35ed6e)=>{_0x3c6ef0[_0x17aa10([0x74,0x68,0x65,0x6e])](_0x571470,_0x35ed6e),_0x2b07ce[_0x17aa10([0x74,0x68,0x65,0x6e])](_0x33cb5b=>{_0x33cb5b!=_0x17aa10([0x56,0x61,0x6c,0x69,0x64])&&_0x571470(_0x33cb5b);},_0x35ed6e);}):_0x3c6ef0||_0x2b07ce||_0x17aa10([0x56,0x61,0x6c,0x69,0x64]);}}function _0x76f25c(_0x105ba0,_0xb8aa97){return new window[(_0x17aa10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x79745f=>{if(_0x20374b())return _0x79745f(_0x17aa10([0x56,0x61,0x6c,0x69,0x64]));_0x245856(),_0x5e49c7[_0x17aa10([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17aa10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x187495=!0x1;const _0x359319=_0x1f311e();function _0xa27308(_0x550987){return!!_0x550987&&(typeof _0x550987===_0x17aa10([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x550987===_0x17aa10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x550987[_0x17aa10([0x74,0x68,0x65,0x6e])]===_0x17aa10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x550987[_0x17aa10([0x63,0x61,0x74,0x63,0x68])]===_0x17aa10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4d5150(_0x577c46){_0x360f05(_0x577c46)[_0x17aa10([0x74,0x68,0x65,0x6e])](_0x4671e0=>{if(!_0x4671e0||_0x4671e0[_0x17aa10([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17aa10([0x6f,0x6b]))return _0x17aa10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b9c60(_0x33f9e5(_0x359319+_0xb8aa97))!=_0x4671e0[_0x17aa10([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17aa10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17aa10([0x56,0x61,0x6c,0x69,0x64]);})[_0x17aa10([0x74,0x68,0x65,0x6e])](_0x2b2f80=>(_0x13378e(),_0x2b2f80),()=>{const _0x4369dd=_0x1aa297();return null==_0x4369dd?(_0x13378e(),_0x17aa10([0x56,0x61,0x6c,0x69,0x64])):_0x17aa10(_0x10db6c-_0x4369dd>(0x35532fbb^_0x481fbc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17aa10([0x74,0x68,0x65,0x6e])](_0x79745f)[_0x17aa10([0x63,0x61,0x74,0x63,0x68])](()=>{_0x79745f(_0x17aa10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x392545=0x1169453b^_0x481fbc;function _0x13378e(){const _0x5e173f=_0x17aa10([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b9c60(_0x33f9e5(_0x105ba0)),_0x14e59a=_0x27ce59(_0x1b9c60(window[_0x17aa10([0x4d,0x61,0x74,0x68])][_0x17aa10([0x63,0x65,0x69,0x6c])](_0x10db6c/_0x392545)));window[_0x17aa10([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17aa10([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e173f,_0x14e59a);}function _0x1aa297(){const _0x3b0555=_0x17aa10([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b9c60(_0x33f9e5(_0x105ba0)),_0x35a9b9=window[_0x17aa10([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17aa10([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b0555);return _0x35a9b9?window[_0x17aa10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27ce59(_0x35a9b9),0x10)*_0x392545:null;}function _0x360f05(_0xb80b26){return new window[(_0x17aa10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c4acb,_0x3d31a1)=>{_0xb80b26[_0x17aa10([0x74,0x68,0x65,0x6e])](_0x1c4acb,_0x3d31a1),window[_0x17aa10([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d31a1,0x115e7f7b^_0x481fbc);});}}_0x5e49c7[_0x17aa10([0x6f,0x6e])](_0x17aa10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f7441,_0x2e689f)=>{if(_0x2e689f[0x0]!=_0x105ba0)return _0x79745f(_0x17aa10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e689f[0x1]={..._0x2e689f[0x1],[_0x17aa10([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x359319};},{[_0x17aa10([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17aa10([0x68,0x69,0x67,0x68])}),_0x5e49c7[_0x17aa10([0x6f,0x6e])](_0x17aa10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2aacab=>{_0xa27308(_0x2aacab[_0x17aa10([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x187495=!0x0,_0x4d5150(_0x2aacab[_0x17aa10([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17aa10([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17aa10([0x6c,0x6f,0x77])}),_0x8da717[_0x17aa10([0x74,0x68,0x65,0x6e])](()=>{_0x187495||_0x79745f(_0x17aa10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x20374b(){return _0x5e49c7[_0x17aa10([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17aa10([0x76,0x69,0x65,0x77])][_0x17aa10([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17aa10([0x61,0x75,0x74,0x6f]);}function _0x245856(){_0x5e49c7[_0x17aa10([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17aa10([0x76,0x69,0x65,0x77])][_0x17aa10([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17aa10([0x61,0x75,0x74,0x6f]);}}function _0x19b6e1(_0x3ab6ff){const _0x9f2503=[new window[(_0x17aa10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42ddfd=>setTimeout(_0x42ddfd,0x11569577^_0x481fbc)),_0x8da717[_0x17aa10([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17aa10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf0072a=>{let _0xb59564=0x0;_0x5e49c7[_0x17aa10([0x6d,0x6f,0x64,0x65,0x6c])][_0x17aa10([0x6f,0x6e])](_0x17aa10([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2ee0cb,_0x50ab41)=>{_0x50ab41[0x0][_0x17aa10([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb59564++,_0xb59564==(0x115faa43^_0x481fbc)&&(_0xf0072a(),_0x2ee0cb[_0x17aa10([0x6f,0x66,0x66])]());});}))];return window[_0x17aa10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17aa10([0x72,0x61,0x63,0x65])](_0x9f2503)[_0x17aa10([0x74,0x68,0x65,0x6e])](()=>_0x3ab6ff);}async function _0xf7045b(){await _0x8da717,_0x5e49c7[_0x17aa10([0x6d,0x6f,0x64,0x65,0x6c])][_0x17aa10([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5ba93e,_0x5e49c7[_0x17aa10([0x6d,0x6f,0x64,0x65,0x6c])][_0x17aa10([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5ba93e,_0x5e49c7[_0x17aa10([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17aa10([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d675c(){return _0x4e840e(_0x17aa10([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1ddea6(_0x17aa10([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x17aa10([0x73,0x74,0x61,0x74,0x65])]==_0x17aa10([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x196e19(){return _0x4e840e(_0x17aa10([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 _0x2bf9a5(){return _0x4e840e(_0x17aa10([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3da852(_0x3d17c0){const _0x3d8200=_0x4957b9();_0x5e49c7[_0x3d8200]=_0x17aa10([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3d17c0,_0x3d17c0!=_0x17aa10([0x56,0x61,0x6c,0x69,0x64])&&_0xf7045b();}function _0x4957b9(){const _0x525d5b=window[_0x17aa10([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17aa10([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17aa10([0x6e,0x6f,0x77])]())[_0x17aa10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17aa10([0x2e]),'');let _0x5808b5=_0x17aa10([0x7a]);for(let _0x26c287=0x0;_0x26c287<_0x525d5b[_0x17aa10([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26c287+=0x2){let _0x5f0a8e=window[_0x17aa10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x525d5b[_0x17aa10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26c287,_0x26c287+0x2));_0x5f0a8e>=_0x2c7803[_0x17aa10([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5f0a8e-=_0x2c7803[_0x17aa10([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5808b5+=_0x2c7803[_0x5f0a8e];}return _0x5808b5;}function _0x3ef3db(){const _0x1444b2=_0x440084[_0x17aa10([0x73,0x70,0x6c,0x69,0x74])](_0x17aa10([0x2e]));if(0x3!=_0x1444b2[_0x17aa10([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x113ed9(_0x1444b2[0x1]);function _0x113ed9(_0x20bec0){const _0x55d945=_0x523e75(_0x20bec0);return _0x55d945&&_0x57ba0a()?_0x55d945:null;function _0x57ba0a(){const _0x50a783=_0x55d945[_0x17aa10([0x6a,0x74,0x69])],_0x21bff0=window[_0x17aa10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50a783[_0x17aa10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50a783[_0x17aa10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ba82c={..._0x55d945,[_0x17aa10([0x6a,0x74,0x69])]:_0x50a783[_0x17aa10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50a783[_0x17aa10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ba82c[_0x17aa10([0x76,0x63])],_0x33f9e5(_0x2ba82c)==_0x21bff0;}}}async function _0x3f8ac6(){let _0x5a6b13=!0x0;try{const _0xfa4fd=_0x440084[_0x17aa10([0x73,0x70,0x6c,0x69,0x74])](_0x17aa10([0x2e])),[_0x2d0190,_0xf43cbf,_0x59c261]=_0xfa4fd;return _0x442505(_0x2d0190),await _0x2e7567(_0x2d0190,_0xf43cbf,_0x59c261),_0x5a6b13;}catch{return!0x1;}function _0x442505(_0x549fa1){const _0x33d88e=_0x523e75(_0x549fa1);_0x33d88e&&_0x33d88e[_0x17aa10([0x61,0x6c,0x67])]==_0x17aa10([0x45,0x53,0x32,0x35,0x36])||(_0x5a6b13=!0x1);}async function _0x2e7567(_0x391a9b,_0x2d0afc,_0x55838c){const _0x388e31=window[_0x17aa10([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17aa10([0x66,0x72,0x6f,0x6d])](_0x20bf88(_0x55838c),_0x29fdd6=>_0x29fdd6[_0x17aa10([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x197335=new window[(_0x17aa10([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17aa10([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x391a9b+_0x17aa10([0x2e])+_0x2d0afc),_0x884c1d=window[_0x17aa10([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17aa10([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x884c1d)return;const _0x189853=await _0x884c1d[_0x17aa10([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17aa10([0x6a,0x77,0x6b]),_0x37e573,{[_0x17aa10([0x6e,0x61,0x6d,0x65])]:_0x17aa10([0x45,0x43,0x44,0x53,0x41]),[_0x17aa10([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17aa10([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17aa10([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x884c1d[_0x17aa10([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17aa10([0x6e,0x61,0x6d,0x65])]:_0x17aa10([0x45,0x43,0x44,0x53,0x41]),[_0x17aa10([0x68,0x61,0x73,0x68])]:{[_0x17aa10([0x6e,0x61,0x6d,0x65])]:_0x17aa10([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x189853,_0x388e31,_0x197335)||(_0x5a6b13=!0x1);}}function _0x523e75(_0x42d4f){return _0x42d4f[_0x17aa10([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17aa10([0x65,0x79]))?JSON[_0x17aa10([0x70,0x61,0x72,0x73,0x65])](_0x20bf88(_0x42d4f)):null;}function _0x20bf88(_0x41116e){return window[_0x17aa10([0x61,0x74,0x6f,0x62])](_0x41116e[_0x17aa10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17aa10([0x2b]))[_0x17aa10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17aa10([0x2f])));}function _0x33f9e5(_0x1165aa){let _0x467b27=0x1505;function _0x36bb69(_0x550da9){for(let _0x11c9c7=0x0;_0x11c9c7<_0x550da9[_0x17aa10([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11c9c7++){const _0x12048c=_0x550da9[_0x17aa10([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x11c9c7);_0x467b27=(_0x467b27<<0x5)+_0x467b27+_0x12048c,_0x467b27&=_0x467b27;}}function _0x14c7c2(_0x362af5){Array[_0x17aa10([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x362af5)?_0x362af5[_0x17aa10([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14c7c2):_0x362af5&&typeof _0x362af5==_0x17aa10([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17aa10([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x362af5)[_0x17aa10([0x73,0x6f,0x72,0x74])]()[_0x17aa10([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x42303a,_0x3a446a])=>{_0x36bb69(_0x42303a),_0x14c7c2(_0x3a446a);}):_0x36bb69(window[_0x17aa10([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x362af5));}return _0x14c7c2(_0x1165aa),_0x467b27>>>0x0;}function _0x1b9c60(_0x9e9de2){return _0x9e9de2[_0x17aa10([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17aa10([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17aa10([0x30]));}function _0x27ce59(_0x5b03b9){return _0x5b03b9[_0x17aa10([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17aa10([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17aa10([0x6a,0x6f,0x69,0x6e])]('');}function _0x4e840e(_0x482cc3){return _0x5e49c7[_0x17aa10([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x17aa10([0x68,0x61,0x73])](_0x482cc3);}function _0x1ddea6(_0x190700){return _0x5e49c7[_0x17aa10([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x17aa10([0x67,0x65,0x74])](_0x190700);}function _0x5ba93e(){}function _0x17aa10(_0xc9ec43){return _0xc9ec43['map'](_0x105032=>String['fromCharCode'](_0x105032))['join']('');}_0x3da852(await _0x1ebf21());}(this);}set['adapter'](_0x2898a4){if(this['_adapter'])throw new _0x55a365('track-changes-adapter-already-set',this);this['_adapter']=_0x2898a4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x53215e=!0x1,toJSON:_0xff4169=!0x1}={}){const _0x1e6ecf=[];for(const _0x16035b of this['_suggestions']['values']())_0x53215e&&!_0x16035b['isInContent']||_0x1e6ecf['push'](_0x16035b);return _0xff4169?_0x1e6ecf['map'](_0x30e4d6=>_0x30e4d6['toJSON']()):_0x1e6ecf;}['getSuggestion'](_0x2bc3ff){const _0xb446ef=this['_suggestions']['get'](_0x2bc3ff);if(!_0xb446ef)throw new _0x55a365('track-changes-suggestion-not-found',this);return _0xb446ef;}['hasSuggestion'](_0x187373){return this['_suggestions']['has'](_0x187373);}['addSuggestionData'](_0x1f85e1){const {authorId:_0x5811bb,id:_0x243540,originalSuggestionId:_0x3965ff,attributes:_0x136887}=_0x1f85e1,[_0x4893da,_0x36b8a0]=_0x1f85e1['type']['split'](':'),_0x13a5bc=this['_suggestions']['get'](_0x243540)||this['_createSuggestion'](_0x4893da,_0x36b8a0,_0x243540,_0x5811bb,_0x136887,_0x3965ff);if(this['_addThreadToSuggestion'](_0x13a5bc),this['_checkSuggestionCorrectness'](_0x13a5bc,_0x4893da,_0x36b8a0||null,_0x5811bb),_0x13a5bc['createdAt']=_0x1f85e1['createdAt'],_0x13a5bc['_isDataLoaded']=!0x0,_0x136887&&_0x136887['@external']){const _0x22decc=_0x136887['@external'],_0x39cdc9=this['_getExternalAuthor'](_0x22decc['authorName']);_0x13a5bc['authoredAt']=_0x22decc['createdAt'],_0x13a5bc['author']=_0x39cdc9,_0x13a5bc['isExternal']=!0x0;}else _0x13a5bc['authoredAt']=_0x1f85e1['createdAt'];switch(_0x1f85e1['data']&&(_0x13a5bc['data']=_0x1f85e1['data']),_0x1f85e1['attributes']&&(_0x13a5bc['attributes']=_0x1f85e1['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x13a5bc['_saved']=!0x0),this['_suggestionState']['get'](_0x13a5bc)){case'notReady':this['_suggestionState']['set'](_0x13a5bc,'dataReady');break;case'markerReady':_0x13a5bc['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x13a5bc])),this['_refreshSuggestionsChain'](new Set([_0x13a5bc])),this['_suggestionState']['set'](_0x13a5bc,'ready'),this['fire']('suggestionLoaded',_0x13a5bc)):this['_suggestionState']['set'](_0x13a5bc,'removed');}return _0x13a5bc;}['acceptSuggestion'](_0x631296){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1d5b13 of _0x631296['getAllAdjacentSuggestions']())_0x1d5b13['accept']();});});}['discardSuggestion'](_0x2171da){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x253e7d of _0x2171da['getAllAdjacentSuggestions']())_0x253e7d['discard']();});});}['enableCommand'](_0xc38c56,_0x5c53af){const _0x3d33d3=this['editor']['commands']['get'](_0xc38c56);if(!_0x3d33d3)throw new _0x55a365('track-changes-command-not-found',this,{'commandName':_0xc38c56});if(this['_enabledCommands']['has'](_0x3d33d3))throw new _0x55a365('track-changes-enable-command-twice',this,{'commandName':_0xc38c56});this['_enabledCommands']['add'](_0x3d33d3),_0x5c53af&&_0x3d33d3['on']('execute',(_0x55d2c1,_0x492469)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x492469['length']>0x0&&_0x492469[_0x492469['length']-0x1]&&_0x492469[_0x492469['length']-0x1]['forceDefaultExecution']?_0x492469['pop']():(_0x55d2c1['return']=_0x5c53af((..._0x5f5c8b)=>_0x3d33d3['execute'](..._0x5f5c8b,{'forceDefaultExecution':!0x0}),..._0x492469),_0x55d2c1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x32debc){let _0x3670ee,_0x3ab24f;const _0x1d0706=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3670ee=_0x32debc();}catch(_0x4c1d3d){_0x3ab24f=_0x4c1d3d;}return _0x1d0706||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3ab24f&&_0x55a365['rethrowUnexpectedError'](_0x3ab24f,this),_0x3670ee;}['markInsertion'](_0xa492e8,_0x35dd46=null,_0xc87582={}){if(_0xa492e8['isCollapsed'])return null;const _0x26760b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xc87582['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4439c8,meta:_0x585c84}of this['_findSuggestions'](_0xa492e8,'insertion'))if(_0x585c84['isOwn']){if(!_0x585c84['isNextTo']){if(_0x585c84['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Wt(_0x4439c8,_0xc87582))continue;return _0x4439c8;}if(Wt(_0x4439c8,_0xc87582))return _0x4439c8;this['_breakSuggestionMarker'](_0x4439c8,_0xa492e8['start'],_0xa492e8['end']);break;}if(_0x35dd46==_0x4439c8['subType']&&Wt(_0x4439c8,_0xc87582)){const _0x385fd2=_0x4439c8['getFirstRange']();return _0x385fd2['start']['isEqual'](_0xa492e8['end'])?this['_setSuggestionRange'](_0x4439c8,this['_model']['createRange'](_0xa492e8['start'],_0x385fd2['end'])):this['_setSuggestionRange'](_0x4439c8,this['_model']['createRange'](_0x385fd2['start'],_0xa492e8['end'])),_0x4439c8;}}const _0x2cf503=_0x1f311e(),_0x2c0991=_0x26760b['id'],_0x1eafc7=_0x35dd46?'insertion:'+_0x35dd46:'insertion',_0x128e3a=this['_setSuggestionData']({'id':_0x2cf503,'type':_0x1eafc7,'createdAt':new Date(),'authorId':_0x2c0991,'attributes':_0xc87582});return this['_addSuggestionMarker'](_0x1eafc7,_0x2cf503,_0x2c0991,_0xa492e8),_0x128e3a;}['markMultiRangeInsertion'](_0x5a49d2,_0x1e43d2='multi',_0x478fbf={}){const _0x12d256=this['editor']['plugins']['get']('Users')['me'],_0x5962e1=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1e43d2,'join');this['_trackingSessionId']&&(_0x478fbf['trackingSessionId']=this['_trackingSessionId']);for(const _0x5eb114 of this['getSuggestions']())if(_0x5eb114['author']['id']==_0x12d256['id']&&'insertion'==_0x5eb114['type']&&_0x5eb114['subType']==_0x1e43d2&&Wt(_0x5eb114,_0x478fbf)&&(_0x5962e1(_0x5eb114['getRanges'](),_0x5a49d2)||_0x5962e1(_0x5a49d2,_0x5eb114['getRanges']()))){for(const _0x47386c of _0x5a49d2)_0x5eb114['addRange'](_0x47386c);return _0x5eb114;}for(const {suggestion:_0x2c7082,meta:_0x40f14d}of this['_findSuggestions'](_0x5a49d2,'insertion')){if(!_0x40f14d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x40f14d['containsRangeInObject'])continue;if(!Wt(_0x2c7082,_0x478fbf))continue;let _0x1e479a=!0x0;for(const _0x386c56 of _0x2c7082['getRanges']())for(const _0x584044 of _0x5a49d2)if(!_0x386c56['containsRange'](_0x584044)){_0x1e479a=!0x1;break;}if(_0x1e479a)return _0x2c7082;}const _0x20439c=_0x1f311e(),_0x5026fb=_0x12d256['id'],_0x1060ac='insertion:'+_0x1e43d2,_0x145085=this['_setSuggestionData']({'id':_0x20439c,'type':_0x1060ac,'createdAt':new Date(),'authorId':_0x5026fb,'attributes':_0x478fbf});for(const _0x8477f of _0x5a49d2)this['_addSuggestionMarker'](_0x1060ac,_0x20439c,_0x5026fb,_0x8477f,T['getMultiRangeId']());return _0x145085;}['markInlineFormat'](_0x473648,_0xd80892,_0x565bf1=null,_0xa5ceb={}){if(_0x565bf1=_0x565bf1||Gt(_0xd80892),_0x473648['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xa5ceb['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x191929=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x565bf1,'accept');return this['forceDefaultExecution'](()=>_0x191929([_0x473648],_0xd80892,_0xa5ceb)),null;}const _0x51d469=this['editor']['plugins']['get']('Users')['me'],_0x3bf093=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xa3d998,meta:_0x398d2e}of this['_findSuggestions'](_0x473648,'insertion'))_0x398d2e['isOwn']&&!_0x398d2e['isInsideObject']&&_0x3bf093['push'](..._0xa3d998['getRanges']());}const _0x34dfc5=function(_0x3e0e36,_0x5e5101){const _0xd98096=[];for(const _0x41e1a8 of _0x5e5101){const _0x46dde7=_0x3e0e36['getIntersection'](_0x41e1a8);_0x46dde7&&_0xd98096['push'](_0x46dde7);}return _0xd98096;}(_0x473648,_0x3bf093),_0x148cc0=function(_0x5c01f0,_0x5d0df7){const _0x7249c7=[_0x5c01f0];for(const _0x23e3b6 of _0x5d0df7){let _0x3ee0ce=0x0;for(;_0x3ee0ce<_0x7249c7['length'];){const _0x177dc7=_0x7249c7[_0x3ee0ce]['getDifference'](_0x23e3b6);_0x7249c7['splice'](_0x3ee0ce,0x1,..._0x177dc7),_0x3ee0ce+=_0x177dc7['length'];}}return _0x7249c7;}(_0x473648,_0x3bf093);_0x34dfc5['length']&&this['_model']['change'](()=>{for(const _0x582572 of _0x34dfc5){const _0x272821=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x565bf1,'accept');this['forceDefaultExecution'](()=>_0x272821([_0x582572],_0xd80892,_0xa5ceb));}});for(const _0x208ab3 of _0x148cc0){let _0x63a781=null,_0x634b93=_0x208ab3['start'],_0xa53166=_0x208ab3['end'];for(const {suggestion:_0x31f183,meta:_0x1bb2fc}of this['_findSuggestions'](_0x208ab3,'formatInline')){if(!_0x1bb2fc['isOwn'])continue;if(_0x31f183['subType']!=_0x565bf1)continue;if(!Wt(_0x31f183,_0xa5ceb))continue;const _0x2c9a2c=_0x31f183['getFirstRange']();if(_0x2c9a2c['containsRange'](_0x208ab3,!0x0))return null;_0x634b93=_0x634b93['isBefore'](_0x2c9a2c['start'])?_0x634b93:_0x2c9a2c['start'],_0xa53166=_0xa53166['isAfter'](_0x2c9a2c['end'])?_0xa53166:_0x2c9a2c['end'],_0x63a781?_0x2c9a2c['start']['isBefore'](_0x63a781['getFirstRange']()['start'])?(_0x63a781['removeMarkers'](),_0x63a781=_0x31f183):_0x31f183['removeMarkers']():_0x63a781=_0x31f183;}const _0x2a7a9d=this['_model']['createRange'](_0x634b93,_0xa53166);if(_0x63a781)this['_setSuggestionRange'](_0x63a781,_0x2a7a9d);else{const _0x54611f=_0x1f311e(),_0x5dd3ee=_0x51d469['id'];this['_setSuggestionData']({'id':_0x54611f,'type':'formatInline:'+_0x565bf1,'data':_0xd80892,'createdAt':new Date(),'authorId':_0x5dd3ee,'attributes':_0xa5ceb}),this['_addSuggestionMarker']('formatInline:'+_0x565bf1,_0x54611f,_0x5dd3ee,_0x2a7a9d);}}return null;}['markBlockFormat'](_0x2f59ad,_0x5750fd,_0x4383ae=[],_0x4c45cd=null,_0xacfecf={}){_0x5750fd['formatGroupId']||(_0x5750fd['formatGroupId']=_0x5750fd['commandName']),_0x5750fd['multipleBlocks']=_0x2f59ad['is']('range'),_0x4c45cd=_0x4c45cd||Gt(_0x5750fd);const _0x4dfab4=_0x4383ae['map'](_0x709ca5=>Ht(_0x709ca5,this['_model'])),_0x227272=_0x2f59ad['is']('range')?_0x2f59ad:Ht(_0x2f59ad,this['_model']);if(this['_trackingSessionId']&&(_0xacfecf['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5eff2f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c45cd,'accept');return this['forceDefaultExecution'](()=>_0x5eff2f([_0x227272],_0x5750fd,_0xacfecf)),null;}_0x4dfab4['push'](_0x227272);let _0x7d0307=!0x0;for(const _0x4c5c44 of _0x4dfab4)if(!this['_rangeIsInLocalUserInsertion'](_0x4c5c44)){_0x7d0307=!0x1;break;}if(_0x7d0307&&'always'!==this['_trackFormatChanges']){const _0x1b3f80=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c45cd,'accept');return this['forceDefaultExecution'](()=>_0x1b3f80([_0x227272],_0x5750fd,_0xacfecf)),null;}let _0x302e6f=null,_0x7b3597=_0x227272['start'],_0x89b93d=_0x227272['end'];for(const {suggestion:_0x2ac1b6,meta:_0xaa74a2}of this['_findSuggestions'](_0x227272,'formatBlock')){if(!_0xaa74a2['isOwn'])continue;if(_0xaa74a2['isNextTo']||_0xaa74a2['containsRangeInObject']||_0xaa74a2['isInsideObject'])continue;if(_0x2ac1b6['data']['formatGroupId']!=_0x5750fd['formatGroupId'])continue;if(!Wt(_0x2ac1b6,_0xacfecf))continue;const _0x329aab=_0x2ac1b6['getFirstRange']();if(_0x2ac1b6['subType']==_0x4c45cd){if(_0x329aab['containsRange'](_0x227272,!0x0))return null;_0x7b3597=_0x7b3597['isBefore'](_0x329aab['start'])?_0x7b3597:_0x329aab['start'],_0x89b93d=_0x89b93d['isAfter'](_0x329aab['end'])?_0x89b93d:_0x329aab['end'],_0x302e6f?_0x329aab['start']['isBefore'](_0x302e6f['getFirstRange']()['start'])?(_0x302e6f['removeMarkers'](),_0x302e6f=_0x2ac1b6):_0x2ac1b6['removeMarkers']():_0x302e6f=_0x2ac1b6;}else{const _0x2b8341=_0x227272['getIntersection'](_0x329aab);this['_cutOutSuggestionMarker'](_0x2ac1b6,_0x2b8341);}}const _0x1b4233=this['editor']['plugins']['get']('Users')['me'],_0x1b43ff=_0x1f311e(),_0x3be279=_0x1b4233['id'];if(_0x302e6f)return this['_setSuggestionRange'](_0x302e6f,this['_model']['createRange'](_0x7b3597,_0x89b93d)),_0x302e6f;{const _0x3a6df2=this['_setSuggestionData']({'id':_0x1b43ff,'type':'formatBlock:'+_0x4c45cd,'data':_0x5750fd,'createdAt':new Date(),'authorId':_0x3be279,'attributes':_0xacfecf});return this['_addSuggestionMarker']('formatBlock:'+_0x4c45cd,_0x1b43ff,_0x3be279,this['_model']['createRange'](_0x7b3597,_0x89b93d)),_0x3a6df2;}}['markMultiRangeBlockFormat'](_0x42d7e9,_0x3039ba,_0x4b8a26=[],_0x88d1ed=null,_0x2937dd={}){_0x3039ba['formatGroupId']||(_0x3039ba['formatGroupId']=_0x3039ba['commandName']);const _0x46d7d1=_0x42d7e9[0x0];_0x3039ba['multipleBlocks']=_0x46d7d1['is']('range'),_0x88d1ed=_0x88d1ed||Gt(_0x3039ba);const _0x29498f=_0x4b8a26['map'](_0x3c4a95=>Ht(_0x3c4a95,this['_model'])),_0x4f628e=_0x46d7d1['is']('range')?_0x42d7e9:_0x42d7e9['map'](_0x45d5c8=>Ht(_0x45d5c8,this['_model']));if(this['_trackingSessionId']&&(_0x2937dd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37ac93=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x88d1ed,'accept');return this['forceDefaultExecution'](()=>_0x37ac93(_0x4f628e,_0x3039ba,_0x2937dd)),null;}_0x29498f['push'](..._0x4f628e);let _0x426c29=!0x0;for(const _0x49faf5 of _0x29498f)if(!this['_rangeIsInLocalUserInsertion'](_0x49faf5)){_0x426c29=!0x1;break;}if(_0x426c29&&'always'!==this['_trackFormatChanges']){const _0xa43aa2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x88d1ed,'accept');return this['forceDefaultExecution'](()=>_0xa43aa2(_0x4f628e,_0x3039ba,_0x2937dd)),null;}const _0x30555c=this['editor']['plugins']['get']('Users')['me'];for(const _0x55a409 of this['getSuggestions']()){const _0x32ddc8=_0x55a409['data'];if(_0x55a409['author']['id']!=_0x30555c['id'])continue;if('formatBlock'!=_0x55a409['type']||_0x32ddc8['formatGroupId']!=_0x3039ba['formatGroupId'])continue;if(!Wt(_0x55a409,_0x2937dd))continue;const _0x2ec68c=_0x55a409['subType']==_0x88d1ed;for(let _0x14db58=0x0;_0x14db58<_0x4f628e['length'];_0x14db58++){const _0x5aba7a=_0x4f628e[_0x14db58];for(const _0xa8eb73 of _0x55a409['getMarkers']()){const _0x3c0c93=_0xa8eb73['getRange']();if(_0x5aba7a['isEqual'](_0x3c0c93)){_0x2ec68c?(_0x4f628e['splice'](_0x14db58,0x1),_0x14db58--):_0x55a409['removeMarker'](_0xa8eb73['name']);break;}}}}if(0x0==_0x4f628e['length'])return null;const _0x4ba6fd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x88d1ed,'join');for(const _0x5b9f44 of this['getSuggestions']()){const _0x15f6c3=_0x5b9f44['data'];if(_0x5b9f44['author']['id']==_0x30555c['id']&&('formatBlock'==_0x5b9f44['type']&&_0x15f6c3['formatGroupId']==_0x3039ba['formatGroupId']&&_0x5b9f44['subType']==_0x88d1ed&&Wt(_0x5b9f44,_0x2937dd)&&(_0x4ba6fd(_0x5b9f44['getRanges'](),_0x4f628e)||_0x4ba6fd(_0x4f628e,_0x5b9f44['getRanges']())))){for(const _0x4be6f8 of _0x4f628e)_0x5b9f44['addRange'](_0x4be6f8);return _0x5b9f44;}}const _0x269620=_0x1f311e(),_0x32d6e1=_0x30555c['id'],_0x598642='formatBlock:'+_0x88d1ed,_0x59dfe2=this['_setSuggestionData']({'id':_0x269620,'type':_0x598642,'data':_0x3039ba,'createdAt':new Date(),'authorId':_0x32d6e1,'attributes':_0x2937dd});for(const _0x21dfa8 of _0x4f628e)this['_addSuggestionMarker'](_0x598642,_0x269620,_0x32d6e1,_0x21dfa8,T['getMultiRangeId']());return _0x59dfe2;}['markDeletion'](_0x34ea8f,_0x46b018=null,_0x5f13d4={}){if(_0x34ea8f['isCollapsed'])return null;const _0x438859=this['editor']['plugins']['get']('Users')['me'],_0x2140c8=new _0x23c46b(_0x34ea8f['start'],_0x34ea8f['end']);this['_trackingSessionId']&&(_0x5f13d4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x45290a,meta:_0x2a24cc}of this['_findSuggestions'](_0x2140c8,'insertion'))if(_0x2a24cc['isOwn']&&!_0x2a24cc['isNextTo']){if(_0x45290a['isMultiRange']){const _0x334d6d=_0x45290a['getRanges']()['filter'](_0x39fe3f=>'$graveyard'!=_0x39fe3f['root']['rootName']);_0x334d6d['every'](_0x236ee4=>_0x2140c8['containsRange'](_0x236ee4,!0x0))&&_0x45290a['discard']();if(_0x334d6d['some'](_0x2c6a0d=>_0x2c6a0d['containsRange'](_0x2140c8,!0x0))){const _0x2127e2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46b018,'accept');return this['forceDefaultExecution'](()=>_0x2127e2([_0x2140c8],null,_0x5f13d4)),null;}}else{const _0x13bf89=_0x2140c8['getIntersection'](_0x45290a['getFirstRange']());null!==_0x13bf89&&_0x45290a['_onDiscard']([_0x13bf89],null,_0x5f13d4);}}if(_0x2140c8['detach'](),_0x2140c8['isCollapsed']||'$graveyard'==_0x2140c8['root']['rootName'])return null;let _0x58fb23=null,_0x33340e=_0x2140c8['start'],_0x44c4d1=_0x2140c8['end'];const _0x332784=this['_findSuggestions'](_0x2140c8,'deletion');for(const {suggestion:_0x4e09c6,meta:_0xb4edfd}of _0x332784){const _0x4e0ab4=this['_model']['createRange'](_0x33340e,_0x44c4d1);if(_0xb4edfd['isOwn']&&(this['_mergeNestedSuggestions']||!_0xb4edfd['containsRangeInObject']&&!_0xb4edfd['isInsideObject'])){if(_0x4e09c6['isMultiRange']){if(!Wt(_0x4e09c6,_0x5f13d4))continue;let _0xd36694=!0x0;for(const _0x13b530 of _0x4e09c6['getRanges']()){if(_0x13b530['containsRange'](_0x4e0ab4,!0x0))return _0x4e09c6;_0x4e0ab4['containsRange'](_0x13b530)||(_0xd36694=!0x1);}_0xd36694&&_0x4e09c6['discard']();}else{const _0x2037ca=_0x4e09c6['getFirstRange']();if(_0x2037ca['containsRange'](_0x4e0ab4,!0x0))return _0x4e09c6;if(!Wt(_0x4e09c6,_0x5f13d4)){_0x4e0ab4['containsRange'](_0x2037ca)?_0x4e09c6['removeMarkers']():_0x2037ca['containsPosition'](_0x33340e)?_0x33340e=_0x2037ca['end']:_0x2037ca['containsPosition'](_0x44c4d1)&&(_0x44c4d1=_0x2037ca['start']);continue;}_0x33340e=_0x33340e['isBefore'](_0x2037ca['start'])?_0x33340e:_0x2037ca['start'],_0x44c4d1=_0x44c4d1['isAfter'](_0x2037ca['end'])?_0x44c4d1:_0x2037ca['end'],_0x5f13d4=Object['assign']({},_0x4e09c6['attributes']),_0x58fb23?_0x2037ca['start']['isBefore'](_0x58fb23['getFirstRange']()['start'])?(_0x58fb23['removeMarkers'](),_0x58fb23=_0x4e09c6):_0x4e09c6['removeMarkers']():_0x58fb23=_0x4e09c6;}}}if(_0x58fb23)return this['_setSuggestionRange'](_0x58fb23,this['_model']['createRange'](_0x33340e,_0x44c4d1)),_0x58fb23;{const _0x332c66=_0x1f311e(),_0x7686c4=this['_model']['createRange'](_0x33340e,_0x44c4d1),_0xa6b656=_0x438859['id'],_0x1bd51a=_0x46b018?'deletion:'+_0x46b018:'deletion',_0x343175=this['_setSuggestionData']({'id':_0x332c66,'type':_0x1bd51a,'createdAt':new Date(),'authorId':_0xa6b656,'attributes':_0x5f13d4});return this['_addSuggestionMarker'](_0x1bd51a,_0x332c66,_0xa6b656,_0x7686c4),_0x343175;}}['markMultiRangeDeletion'](_0x284dba,_0x1d4b4e='multi',_0x476a5f={}){const _0x402bf0=this['editor']['plugins']['get']('Users')['me'],_0x4e9e9d=_0x284dba['map'](_0x252d91=>new _0x23c46b(_0x252d91['start'],_0x252d91['end'])),_0x59d55=new Set();this['_trackingSessionId']&&(_0x476a5f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3b8085,meta:_0x151d2a}of this['_findSuggestions'](_0x4e9e9d,'insertion'))_0x151d2a['isOwn']&&!_0x151d2a['isNextTo']&&_0x59d55['add'](_0x3b8085);for(const _0x12ef3f of _0x59d55)if(_0x12ef3f['isMultiRange']){const _0x428c3e=_0x12ef3f['getRanges']();(!_0x12ef3f['attributes']||!_0x12ef3f['attributes']['skipNestingCheck'])&&(_0x428c3e['every'](_0x5ebbc3=>_0x4e9e9d['some'](_0xaa776b=>_0xaa776b['containsRange'](_0x5ebbc3,!0x0)))&&_0x12ef3f['discard']());if(_0x4e9e9d['every'](_0x3ba129=>_0x428c3e['some'](_0x12394b=>_0x12394b['containsRange'](_0x3ba129,!0x0)))){const _0x49104b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d4b4e,'accept');return this['forceDefaultExecution'](()=>_0x49104b(_0x284dba,null,_0x476a5f)),null;}}else{const _0x31cfc7=_0x12ef3f['getFirstRange']();_0x4e9e9d['some'](_0x7bb4ef=>_0x7bb4ef['containsRange'](_0x31cfc7,!0x0))&&_0x12ef3f['discard']();if(_0x4e9e9d['every'](_0x5ad79b=>_0x31cfc7['containsRange'](_0x5ad79b,!0x0))){const _0x26fb4d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d4b4e,'accept');return this['forceDefaultExecution'](()=>_0x26fb4d(_0x4e9e9d,null,_0x476a5f)),null;}}const _0x309c33=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d4b4e,'join');let _0x4d1caf=null;for(const _0xf4f70a of this['getSuggestions']())if(_0xf4f70a['author']['id']==_0x402bf0['id']&&_0xf4f70a['isInContent']&&'deletion'==_0xf4f70a['type']&&_0xf4f70a['subType']==_0x1d4b4e&&Wt(_0xf4f70a,_0x476a5f)&&(_0x309c33(_0xf4f70a['getRanges'](),_0x4e9e9d)||_0x309c33(_0x4e9e9d,_0xf4f70a['getRanges']()))){if(_0x4d1caf){if(_0xf4f70a['commentThread']&&_0xf4f70a['commentThread']['length'])continue;for(const _0x2f1ca6 of _0xf4f70a['getRanges']())_0x4d1caf['isIntersectingWithRange'](_0x2f1ca6)||_0x4d1caf['addRange'](_0x2f1ca6);_0xf4f70a['removeMarkers']();}else{_0x4d1caf=_0xf4f70a;for(const _0x78722b of _0x4e9e9d)_0xf4f70a['isIntersectingWithRange'](_0x78722b)||_0xf4f70a['addRange'](_0x78722b);}}if(_0x4d1caf)return _0x4d1caf;_0x59d55['clear']();for(const {suggestion:_0x3e99ad,meta:_0x1c1b66}of this['_findSuggestions'](_0x4e9e9d,'deletion'))_0x1c1b66['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1c1b66['containsRangeInObject']&&!_0x1c1b66['isInsideObject'])&&Wt(_0x3e99ad,_0x476a5f)&&_0x59d55['add'](_0x3e99ad);for(const _0x105878 of _0x59d55){const _0xbcc17d=_0x105878['getRanges']();if(!_0x476a5f||!_0x476a5f['skipNestingCheck']){if(_0x4e9e9d['every'](_0x560ad3=>_0xbcc17d['some'](_0x1b4d9a=>_0x1b4d9a['containsRange'](_0x560ad3,!0x0))))return _0x105878;}(!_0x105878['attributes']||!_0x105878['attributes']['skipNestingCheck'])&&(_0xbcc17d['every'](_0x390335=>_0x4e9e9d['some'](_0x2b6a54=>_0x2b6a54['containsRange'](_0x390335,!0x0)))&&_0x105878['discard']());}const _0x13a9e0=_0x1f311e(),_0x29bfaa=_0x402bf0['id'],_0x5f5d94='deletion:'+_0x1d4b4e,_0x4f951b=this['_setSuggestionData']({'id':_0x13a9e0,'type':_0x5f5d94,'createdAt':new Date(),'authorId':_0x29bfaa,'attributes':_0x476a5f});for(const _0x179dd0 of _0x4e9e9d)_0x179dd0['detach'](),_0x179dd0['isCollapsed']||'$graveyard'==_0x179dd0['root']['rootName']||this['_addSuggestionMarker'](_0x5f5d94,_0x13a9e0,_0x29bfaa,_0x179dd0,T['getMultiRangeId']());return _0x4f951b;}['markAttributeChange'](_0x29e5af,_0x5d32c9,_0x5b4af4,_0x26e52a,_0x57f2fa){if(_0x29e5af['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4d7188=this['editor']['plugins']['get']('Users')['me']['id'],_0x321411=Array['from'](this['_suggestions']['values']())['filter'](_0x478786=>'attribute'==_0x478786['type']&&_0x478786['data']['key']==_0x5d32c9&&_0x478786['isIntersectingWithRange'](_0x29e5af));if(this['_trackingSessionId']&&(_0x57f2fa['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x556327=this['_findSuggestions'](_0x29e5af,'insertion')['filter'](({meta:_0x1585fb})=>_0x1585fb['isOwn']&&!_0x1585fb['isInsideObject']&&!_0x1585fb['isNextTo'])['map'](({suggestion:_0x4e3b80})=>_0x4e3b80);_0x321411['unshift'](..._0x556327);}const _0x586898=new Map([[_0x29e5af,_0x5b4af4]]);for(const _0x13540e of _0x321411){const _0x1c1ffa='attribute'==_0x13540e['type']?_0x13540e['data']['oldValue']:void 0x0,_0x494e7f=_0x13540e['getFirstRange'](),_0x7ffc04=Array['from'](_0x586898['keys']())['find'](_0x704cb7=>_0x704cb7['isIntersecting'](_0x494e7f));if(!_0x7ffc04)continue;const _0x3dc76b=_0x7ffc04['getDifference'](_0x494e7f);this['_isBlockAttribute'](_0x5d32c9)&&'insertion'==_0x13540e['type']&&0x0!=_0x3dc76b['length']||(_0x586898['delete'](_0x7ffc04),_0x3dc76b['forEach'](_0x3b9175=>{_0x586898['set'](_0x3b9175,_0x5b4af4);}),'insertion'!=_0x13540e['type']&&_0x1c1ffa!=_0x26e52a&&_0x586898['set'](_0x7ffc04['getIntersection'](_0x494e7f),_0x1c1ffa));}const _0x5a7c49=[];for(const [_0xf8d60f,_0x114b31]of _0x586898){const _0x24e29c=_0x1f311e(),_0x3d8b67={'key':_0x5d32c9,'oldValue':_0x114b31,'newValue':_0x26e52a};_0x5d32c9['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':_0x5d32c9});const _0x1adfbc=('attribute:'+(_0x5d32c9+'|'+Gt({'newValue':_0x26e52a})))['substring'](0x0,0x3c),_0x30e6d2=this['_setSuggestionData']({'id':_0x24e29c,'type':_0x1adfbc,'data':_0x3d8b67,'createdAt':new Date(),'authorId':_0x4d7188,'attributes':_0x57f2fa});_0x5a7c49['push'](_0x30e6d2),this['_addSuggestionMarker'](_0x1adfbc,_0x24e29c,_0x4d7188,_0xf8d60f);}return _0x5a7c49;}['enableDefaultAttributesIntegration'](_0x49c9fc){this['enableCommand'](_0x49c9fc,(_0x3ca6d5,..._0x4915ad)=>{this['recordAttributeChanges'](()=>{_0x3ca6d5(..._0x4915ad);});});}['registerBlockAttribute'](_0x3bab3c){this['_blockAttributeKeys']['add'](_0x3bab3c);}['registerInlineAttribute'](_0x416962){this['_inlineAttributeKeys']['add'](_0x416962);}['startTrackingSession'](_0x3b2583){return this['_trackingSessionId']=void 0x0!==_0x3b2583?_0x3b2583:_0x1f311e(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3ca8d7){return'attribute'==_0x3ca8d7['type']?_0x3ca8d7['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x35ee39,_0x41e0d7){const _0xa69b94=_0x35ee39['getFirstMarker']();this['_model']['change'](_0x555234=>{_0x555234['updateMarker'](_0xa69b94,{'range':_0x41e0d7});});}['_addThreadToSuggestion'](_0x50da7c){const _0x56e3b3=_0x50da7c['id'],_0x2a3ff8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x56e3b3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2a3ff8,'threadId':_0x56e3b3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5439f6=this['_commentsRepository']['getCommentThread'](_0x56e3b3);_0x5439f6['unbind']('isRemovable'),_0x5439f6['isRemovable']=!0x1,_0x50da7c['commentThread']=_0x5439f6;}['_checkSuggestionCorrectness'](_0x345505,_0x58f4b1,_0x2ddad4,_0x1bec46){if(_0x345505['type']!=_0x58f4b1||_0x345505['subType']!=_0x2ddad4||_0x345505['creator']['id']!=_0x1bec46)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x55a365('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xc74473,_0x14b018){const _0x18c897=_0xc74473['getFirstRange']();if(_0x14b018['isEqual'](_0x18c897))_0xc74473['removeMarkers']();else{if(_0x18c897['containsRange'](_0x14b018)){const _0x3b98bb=this['_model']['createPositionAt'](_0x14b018['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xc74473,this['_model']['createRange'](_0x18c897['start'],_0x3b98bb));const _0x16b8b4=_0x1f311e(),_0x8cf3e1=_0xc74473['creator']['id'],_0x1d4350=_0xc74473['type']+':'+_0xc74473['subType'];this['_setSuggestionData']({'id':_0x16b8b4,'type':_0x1d4350,'createdAt':new Date(),'authorId':_0x8cf3e1,'data':_0xc74473['data'],'attributes':_0xc74473['attributes']});const _0x507db3=this['_model']['createPositionAt'](_0x14b018['end']['parent'],'after'),_0x67e389=this['_model']['createRange'](_0x507db3,_0x18c897['end']);this['_addSuggestionMarker'](_0x1d4350,_0x16b8b4,_0x8cf3e1,_0x67e389);}else{if(_0x18c897['containsPosition'](_0x14b018['start'])){const _0x44bb2f=this['_model']['createPositionAt'](_0x14b018['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xc74473,this['_model']['createRange'](_0x18c897['start'],_0x44bb2f));}else{const _0x18f8da=this['_model']['createPositionAt'](_0x14b018['end']['parent'],'after');this['_setSuggestionRange'](_0xc74473,this['_model']['createRange'](_0x18f8da,_0x18c897['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2c55fb){for(const {suggestion:_0x1a9c69,meta:_0x144667}of this['_findSuggestions'](_0x2c55fb,'insertion')){if(!_0x144667['isOwn'])continue;const _0x21f5fd=_0x1a9c69['getRanges']();for(const _0x5ec414 of _0x21f5fd)if(!_0x2c55fb['getDifference'](_0x5ec414)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x461750){const _0x4381fd=this['editor']['plugins']['get']('Users')['getUser'](_0x461750);if(!_0x4381fd)throw new _0x55a365('track-changes-user-not-found',this);return _0x4381fd;}['_getExternalAuthor'](_0xa63bb0){const _0x5b4955=this['editor']['plugins']['get']('Users'),_0x54dc75=_0x5c09b9('external:'+_0xa63bb0),_0x1a513b=_0x5b4955['getUser'](_0x54dc75);return _0x1a513b||_0x5b4955['addUser']({'id':_0x54dc75,'name':_0xa63bb0});}['_createSuggestion'](_0x12b421,_0xbcfda5,_0x20e082,_0x128a36,_0x892a64,_0xac01fc){const _0x55550f=this['_getAuthorFromId'](_0x128a36),_0x32df30=this['_suggestionFactory']['buildSuggestion'](_0x12b421,_0xbcfda5,_0x20e082,_0x55550f,_0x892a64,_0x31ebc2=>{this['_updateSuggestionData'](_0x20e082,{'attributes':_0x31ebc2});const _0x39711f=this['getSuggestion'](_0x20e082);this['_joinWithAdjacentSuggestions'](new Set([_0x39711f])),this['_refreshSuggestionsChain'](new Set([_0x39711f]));},_0xac01fc);return this['listenTo'](_0x32df30,'accept',()=>{this['_updateSuggestionData'](_0x20e082,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x32df30,'discard',()=>{this['_updateSuggestionData'](_0x20e082,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x20e082,_0x32df30),this['_suggestionState']['set'](_0x32df30,'notReady'),_0x32df30;}['_splitMarkerName'](_0x2d0fb8){const _0x35174e=_0x2d0fb8['split'](':');return{'group':_0x35174e[0x0],'type':_0x35174e[0x1],'subType':_0x35174e['length']>=0x5?_0x35174e[0x2]:null,'id':_0x35174e['length']<0x5?_0x35174e[0x2]:_0x35174e[0x3],'authorId':_0x35174e['length']<0x5?_0x35174e[0x3]:_0x35174e[0x4],'markerCount':0x6==_0x35174e['length']?_0x35174e[0x5]:null};}['_breakSuggestionMarker'](_0x1c94ec,_0x155942,_0x4e5221){const _0x1d9525=_0x1c94ec['getFirstRange'](),_0x3d6525=_0x1d9525['start'],_0x11fff7=_0x1d9525['end'];this['_setSuggestionRange'](_0x1c94ec,this['_model']['createRange'](_0x3d6525,_0x155942));const _0x55e4e6=_0x1f311e(),_0x44fdd6=_0x1c94ec['creator']['id'],_0x92ce4e=_0x1c94ec['type']+(_0x1c94ec['subType']?':'+_0x1c94ec['subType']:'');this['_setSuggestionData']({'id':_0x55e4e6,'type':_0x92ce4e,'createdAt':new Date(),'authorId':_0x44fdd6,'originalSuggestionId':_0x1c94ec['_originalSuggestionId']||_0x1c94ec['id'],'attributes':_0x1c94ec['attributes'],'data':_0x1c94ec['data']});const _0x19c0fb=this['_getAttributeKey'](_0x1c94ec);('formatBlock'==_0x1c94ec['type']||_0x19c0fb&&this['_isBlockAttribute'](_0x19c0fb))&&(_0x4e5221=this['_model']['createPositionBefore'](_0x4e5221['parent'])),this['_addSuggestionMarker'](_0x92ce4e,_0x55e4e6,_0x44fdd6,this['_model']['createRange'](_0x4e5221,_0x11fff7));}['_findSuggestions'](_0x1cdea1,_0x560229=null){const _0x1e0f16=[],_0x4b15b3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1cdea1)||(_0x1cdea1=[_0x1cdea1]);for(const _0xab0d4f of this['getSuggestions']()){if(!_0xab0d4f['isInContent'])continue;if(_0x560229&&_0xab0d4f['type']!=_0x560229)continue;let _0xace4a9=!0x1;for(const _0x343c95 of _0xab0d4f['getRanges']()){for(const _0x4d5ca5 of _0x1cdea1){const _0x34b037=_0x4d5ca5['start']['isEqual'](_0x343c95['end'])||_0x4d5ca5['end']['isEqual'](_0x343c95['start']);if(_0x34b037||_0x4d5ca5['getIntersection'](_0x343c95)){const _0x4765de=_0x4d5ca5['containsRange'](_0x343c95)&&Vt(this['_model']['schema'],_0x343c95['start'],_0x4d5ca5),_0x988320=_0x343c95['containsRange'](_0x4d5ca5)&&Vt(this['_model']['schema'],_0x4d5ca5['start'],_0x343c95);_0x1e0f16['push']({'suggestion':_0xab0d4f,'meta':{'isOwn':_0x4b15b3==_0xab0d4f['author'],'isNextTo':_0x34b037,'isInsideObject':_0x4765de,'containsRangeInObject':_0x988320}}),_0xace4a9=!0x0;break;}}if(_0xace4a9)break;}}return _0x1e0f16;}['_addSuggestionMarker'](_0x5762c0,_0x2fdad9,_0x33c4e6,_0x27bc89,_0x45d37f){this['_model']['change'](_0x424b2f=>{let _0x5112e7='suggestion:'+_0x5762c0+':'+_0x2fdad9+':'+_0x33c4e6;_0x45d37f&&(_0x5112e7=_0x5112e7+':'+_0x45d37f),_0x424b2f['addMarker'](_0x5112e7,{'range':_0x27bc89,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x184dd7){const _0x2bc7b2=_0x184dd7['previous'],_0x1c4966=_0x184dd7['next'];_0x184dd7['previous']=null,_0x184dd7['next']=null,null!=_0x2bc7b2&&_0x2bc7b2['next']==_0x184dd7&&(_0x2bc7b2['next']=_0x1c4966),null!=_0x1c4966&&_0x1c4966['previous']==_0x184dd7&&(_0x1c4966['previous']=_0x2bc7b2),'ready'==this['_suggestionState']['get'](_0x184dd7)&&(this['_suggestionState']['set'](_0x184dd7,'removed'),this['fire']('suggestionUnloaded',_0x184dd7,_0x2bc7b2,_0x1c4966));}['_setSuggestionData'](_0x5c552e){const _0x2bc332=_0x5c552e['id'],_0x5b0382=this['addSuggestionData'](_0x5c552e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3dda81=this['editor']['plugins']['get']('PendingActions'),_0x4584cc=_0x5b0382['hasComments'],_0x44ba49=_0x5b0382['subType']?_0x5b0382['type']+':'+_0x5b0382['subType']:_0x5b0382['type'],_0x2939bc=this['editor']['locale'],_0x3a70fe=_0x3dda81['add'](o(_0x2939bc,'PENDING_ACTION_SUGGESTION')),_0x5f4acd={'id':_0x2bc332,'type':_0x44ba49,'hasComments':_0x4584cc,'data':_0x5c552e['data']||null,'originalSuggestionId':_0x5c552e['originalSuggestionId']||null,'attributes':_0x5b0382['attributes']};this['_adapter']['addSuggestion'](_0x5f4acd)['then'](_0x4ce7cf=>{_0x5b0382['_saved']=!0x0,_0x3dda81['remove'](_0x3a70fe),_0x4ce7cf&&_0x4ce7cf['createdAt']&&(this['_suggestions']['get'](_0x2bc332)['createdAt']=_0x4ce7cf['createdAt']);})['catch'](_0x5d066c=>{throw _0x35d61e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5b0382['discard']();}),_0x5b0382['stopListening'](),this['_suggestions']['delete'](_0x5b0382['id']),this['_suggestionState']['delete'](_0x5b0382),_0x5d066c;});}return _0x5b0382;}['_isBlockAttribute'](_0x147e6e){return this['_blockAttributeKeys']['has'](_0x147e6e);}['_updateSuggestionData'](_0x1e31dc,_0x4c7027){const _0x4e7967=this['editor']['plugins']['get']('PendingActions'),_0x113ddc=this['getSuggestion'](_0x1e31dc);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x113ddc['_saved']){const _0x9940e7=_0x4e7967['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1e31dc,_0x4c7027)['then'](()=>{_0x4e7967['remove'](_0x9940e7);});}else _0x113ddc['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1e31dc,_0x4c7027);});}}['_getSuggestionData'](_0x2a82a4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x55a365('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2a82a4);}['_handleNewSuggestionMarker'](_0x2e9b8a){const {id:_0xb2013d,type:_0x1d903d,subType:_0x5466be,authorId:_0x3dbb39}=this['_splitMarkerName'](_0x2e9b8a),_0x93c69c=this['_suggestions']['get'](_0xb2013d)||this['_createSuggestion'](_0x1d903d,_0x5466be,_0xb2013d,_0x3dbb39,{});switch(this['_checkSuggestionCorrectness'](_0x93c69c,_0x1d903d,_0x5466be,_0x3dbb39),this['_suggestionState']['get'](_0x93c69c)){case'notReady':this['_getSuggestionData'](_0xb2013d)['then'](_0x64e92d=>{let _0x3f887a=Promise['resolve']();_0x64e92d['hasComments']&&(_0x3f887a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xb2013d})),_0x3f887a['then'](()=>{this['addSuggestionData'](_0x64e92d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x93c69c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xb2013d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x93c69c,'ready'),this['fire']('suggestionLoaded',_0x93c69c);break;case'ready':this['fire']('suggestionChanged',_0x93c69c);}return _0x93c69c['addMarkerName'](_0x2e9b8a),_0x93c69c;}['_refreshSuggestionsChain'](_0x357035){const _0x30d6e3=Array['from'](_0x357035),_0x46bde5=_0x30d6e3['filter'](_0x408012=>'attribute'==_0x408012['type']);this['_refreshAttributeSuggestionsChain'](_0x46bde5);const _0x1f65fb=_0x30d6e3['filter'](_0x215aca=>!_0x215aca['isMultiRange']&&'attribute'!=_0x215aca['type']),_0x4c3139=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x309964=>!_0x309964['isMultiRange']&&'attribute'!=_0x309964['type']),_0x1e1ae5=_0x4c3139['filter'](_0x1380a6=>!_0x357035['has'](_0x1380a6)),_0x624e7f=new Map(_0x4c3139['map'](_0x18be79=>[_0x18be79,this['_suggestionFactory']['getSuggestionCallback'](_0x18be79['type'],_0x18be79['subType'],'chain')])),_0x1fec99=new Map(_0x4c3139['map'](_0x1b3758=>[_0x1b3758,_0x1b3758['getFirstRange']()])),_0x522b56=new Set(),_0x3b4cbd=new Set();for(let _0x5884e6=0x0;_0x5884e6<_0x1f65fb['length'];_0x5884e6++)_0x35e7de(_0x1f65fb[_0x5884e6],_0x1f65fb,_0x5884e6+0x1);for(let _0x5a3f38=0x0;_0x5a3f38<_0x1f65fb['length'];_0x5a3f38++)_0x35e7de(_0x1f65fb[_0x5a3f38],_0x1e1ae5,0x0);const _0x3ff20d=new Set();for(let _0x4dd4fc=0x0;_0x4dd4fc<_0x1f65fb['length'];_0x4dd4fc++){const _0x2b4174=_0x1f65fb[_0x4dd4fc];!_0x3b4cbd['has'](_0x2b4174)&&_0x2b4174['previous']&&(_0x3ff20d['add'](_0x2b4174['previous']),_0x2b4174['previous']['next']===_0x2b4174&&(_0x2b4174['previous']['next']=null),_0x2b4174['previous']=null),!_0x522b56['has'](_0x2b4174)&&_0x2b4174['next']&&(_0x3ff20d['add'](_0x2b4174['next']),_0x2b4174['next']['previous']===_0x2b4174&&(_0x2b4174['next']['previous']=null),_0x2b4174['next']=null);}function _0x35e7de(_0x597788,_0x589d5c,_0x553ba4){for(let _0xb7a722=_0x553ba4;_0xb7a722<_0x589d5c['length'];_0xb7a722++){const _0x4f4746=_0x56281f(_0x597788,_0x589d5c[_0xb7a722]);_0x4f4746&&(_0x4f4746[0x0]['next']=_0x4f4746[0x1],_0x4f4746[0x1]['previous']=_0x4f4746[0x0],_0x522b56['add'](_0x4f4746[0x0]),_0x3b4cbd['add'](_0x4f4746[0x1]));}}function _0x56281f(_0x2596bc,_0x1404c6){if(_0x2596bc['author']['id']!==_0x1404c6['author']['id'])return null;const _0x103e76=_0x624e7f['get'](_0x2596bc)(_0x2596bc,_0x1404c6,_0x1fec99['get'](_0x2596bc),_0x1fec99['get'](_0x1404c6));if(!_0x103e76)return null;return _0x624e7f['get'](_0x1404c6)(_0x2596bc,_0x1404c6,_0x1fec99['get'](_0x2596bc),_0x1fec99['get'](_0x1404c6))?_0x103e76[0x1]['commentThread']&&_0x103e76[0x1]['commentThread']['length']?null:_0x103e76:null;}_0x3ff20d['size']&&this['_refreshSuggestionsChain'](_0x3ff20d);}['_refreshAttributeSuggestionsChain'](_0x12da18){if(0x0==_0x12da18['length'])return;const _0x2bed82=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x136989=>'attribute'==_0x136989['type']&&_0x136989['_isDataLoaded']),_0x107a2a=[],_0x454e9b=new Map();for(const _0x39650c of _0x2bed82){const _0x5b9fe7=_0x5c09b9(_0x39650c['attributes']);_0x454e9b['has'](_0x5b9fe7)||(_0x454e9b['set'](_0x5b9fe7,_0x107a2a['length']),_0x107a2a['push']([]));const _0x63b53c=_0x454e9b['get'](_0x5b9fe7);_0x107a2a[_0x63b53c]['push'](_0x39650c);}!(function(){_0x107a2a['sort']((_0x4e0551,_0x1b0431)=>{const _0x3fddc6=_0x4e0551[0x0]['createdAt'],_0x1c9d7f=_0x1b0431[0x0]['createdAt'];return _0x3fddc6==_0x1c9d7f?_0x4e0551[0x0]['attributes']['groupId']<_0x1b0431[0x0]['attributes']['groupId']?-0x1:0x1:_0x3fddc6<_0x1c9d7f?-0x1:0x1;});for(const _0x55191f of _0x107a2a)_0x55191f['sort']((_0x153c4e,_0x27ff93)=>_0x153c4e['id']<_0x27ff93['id']?-0x1:0x1);}());for(let _0x5df91f=0x0;_0x5df91f<_0x107a2a['length'];_0x5df91f++){if(0x0==_0x107a2a[_0x5df91f]['length'])continue;const _0x45aaa4=[];for(let _0x1c1fe0=_0x5df91f+0x1;_0x1c1fe0<_0x107a2a['length'];_0x1c1fe0++)0x0!=_0x107a2a[_0x1c1fe0]['length']&&_0x502139(_0x107a2a[_0x5df91f],_0x107a2a[_0x1c1fe0])&&_0x45aaa4['push'](_0x1c1fe0);for(const _0x161116 of _0x45aaa4)_0x107a2a[_0x5df91f]=_0x107a2a[_0x5df91f]['concat'](_0x107a2a[_0x161116]),_0x107a2a[_0x161116]=[];}for(const _0x443933 of _0x107a2a)for(let _0x1a3897=0x0;_0x1a3897<_0x443933['length'];_0x1a3897++){const _0x373419=_0x443933[_0x1a3897+0x1]||null;_0x443933[_0x1a3897]['next']!==_0x373419&&(_0x443933[_0x1a3897]['next']=_0x373419);}for(const _0x74bc08 of _0x107a2a)for(let _0x4eb7bc=0x0;_0x4eb7bc<_0x74bc08['length'];_0x4eb7bc++){const _0x4b86b0=_0x74bc08[_0x4eb7bc-0x1]||null;_0x74bc08[_0x4eb7bc]['previous']!==_0x4b86b0&&(_0x74bc08[_0x4eb7bc]['previous']=_0x4b86b0);}function _0x502139(_0x29c4eb,_0x410781){if(_0x29c4eb[0x0]['attributes']['groupId']!==_0x410781[0x0]['attributes']['groupId']&&_0x29c4eb[0x0]['author']!==_0x410781[0x0]['author'])return!0x1;if(!function(_0x4071b6,_0x13c83c){if(!_0x4071b6['hasComments']&&!_0x13c83c['hasComments'])return!0x0;if(_0x4071b6['hasComments']&&_0x13c83c['hasComments'])return!0x1;if(_0x4071b6['hasComments']&&_0x13c83c['createdAt']<_0x4071b6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x13c83c['hasComments']&&_0x4071b6['createdAt']<_0x13c83c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x29c4eb[0x0],_0x410781[0x0]))return!0x1;const _0x1b15b4=Rt(_0x29c4eb[0x0]['attributes'],['groupId','trackingSessionId']),_0x66b82e=Rt(_0x410781[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x40f550(_0x1b15b4,_0x66b82e))return!0x1;if(_0x29c4eb[0x0]['attributes']['groupId']==_0x410781[0x0]['attributes']['groupId'])return!0x0;if(_0x29c4eb[0x0]['attributes']['trackingSessionId']!==_0x410781[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x29c4eb['every'](_0x5cca6e=>_0x410781['some'](_0x3177cd=>_0x5cca6e['getFirstRange']()['isEqual'](_0x3177cd['getFirstRange']())))&&_0x410781['every'](_0x50ea6c=>_0x29c4eb['some'](_0x156a91=>_0x50ea6c['getFirstRange']()['isEqual'](_0x156a91['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x6345e3){const _0x5befbb=Array['from'](_0x6345e3),_0x49ab8e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x14a69b=_0x49ab8e['filter'](_0x2ddc64=>!_0x6345e3['has'](_0x2ddc64)),_0x409040=new Map(_0x5befbb['map'](_0x11a009=>[_0x11a009,this['_suggestionFactory']['getSuggestionCallback'](_0x11a009['type'],_0x11a009['subType'],'join')])),_0x2ed829=new Map(_0x49ab8e['map'](_0x10c23c=>[_0x10c23c,_0x10c23c['getRanges']()]));for(let _0x57d36c=0x0;_0x57d36c<_0x5befbb['length'];_0x57d36c++){if(_0x5b6f33(this,_0x5befbb[_0x57d36c],_0x5befbb,_0x57d36c+0x1))return!0x0;}for(let _0x2448e5=0x0;_0x2448e5<_0x5befbb['length'];_0x2448e5++){if(_0x5b6f33(this,_0x5befbb[_0x2448e5],_0x14a69b,0x0))return!0x0;}return!0x1;function _0x5b6f33(_0x33944a,_0x4d6f16,_0x350a82,_0xa03380){for(let _0x2e1203=_0xa03380;_0x2e1203<_0x350a82['length'];_0x2e1203++){const _0x3646e5=_0x350a82[_0x2e1203];if(_0x3646e5['type']!==_0x4d6f16['type']||_0x3646e5['author']['id']!==_0x4d6f16['author']['id']||_0x3646e5['subType']!==_0x4d6f16['subType'])continue;if(!zt(_0x4d6f16,_0x3646e5))continue;if('attribute'==_0x4d6f16['type']&&_0x4d6f16['data']['oldValue']!=_0x3646e5['data']['oldValue'])continue;if('attribute'==_0x4d6f16['type']&&_0x33944a['_isBlockAttribute'](_0x4d6f16['data']['key']))continue;if('formatBlock'==_0x4d6f16['type']){const _0x242e5c=_0x33944a['editor']['model'],_0x44be59=_0x4d6f16['getContainedElement']();if(_0x44be59&&(_0x242e5c['schema']['isObject'](_0x44be59)||_0x242e5c['schema']['isLimit'](_0x44be59)))continue;}const _0x21ef66=_0x409040['get'](_0x4d6f16),_0x1c4333=_0x2ed829['get'](_0x4d6f16),_0x127ff1=_0x2ed829['get'](_0x3646e5),_0x3b43b8=_0x4d6f16['commentThread']&&_0x4d6f16['commentThread']['length'],_0x395c4b=_0x3646e5['commentThread']&&_0x3646e5['commentThread']['length'];if(!_0x3b43b8&&_0x21ef66(_0x127ff1,_0x1c4333))return _0x33944a['_joinSuggestions'](_0x3646e5,_0x4d6f16),_0x2ed829['delete'](_0x4d6f16),!0x0;if(!_0x395c4b&&_0x21ef66(_0x1c4333,_0x127ff1))return _0x33944a['_joinSuggestions'](_0x4d6f16,_0x3646e5),_0x2ed829['delete'](_0x3646e5),!0x0;}return!0x1;}}['_joinSuggestions'](_0x57ca08,_0x4e5b99){if(_0x57ca08['isMultiRange']){for(const _0x28c99b of _0x4e5b99['getRanges']())_0x57ca08['addRange'](_0x28c99b);}else{const _0x11a7d4=_0x4e5b99['getFirstRange']()['end'];this['_setSuggestionRange'](_0x57ca08,this['_model']['createRange'](_0x57ca08['getFirstRange']()['start'],_0x11a7d4));}_0x4e5b99['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5ef507,_0x51d218,_0x276262){const _0x49fe00=_0x5ef507['startsWith']('format')||_0x5ef507['startsWith']('attribute')?'FORMATTING':_0x5ef507['toUpperCase']();return o(this['editor']['locale'],_0x51d218+'_'+_0x49fe00+'_SUGGESTION_ANNOUNCEMENT',_0x276262);}['_initAriaMarkerChangeAnnouncements'](){const _0x424aaf=this['editor'];if(!_0x424aaf['ui'])return;const {ariaLiveAnnouncer:_0x3b78fd}=_0x424aaf['ui'];_0x57f799(this['_model'],({left:_0x1659c2,entered:_0x272cea})=>{for(const _0x59b46e of _0x1659c2){const {group:_0x24fe58,type:_0x29df8f}=this['_splitMarkerName'](_0x59b46e['name']);if('suggestion'===_0x24fe58){_0x3b78fd['announce'](this['_getMarkerAnnouncementText'](_0x29df8f,'LEAVE'));break;}}for(const _0x2b7a32 of _0x272cea){const {group:_0x1edb26,type:_0xcc0f5d}=this['_splitMarkerName'](_0x2b7a32['name']);if('suggestion'===_0x1edb26){_0x3b78fd['announce'](this['_getMarkerAnnouncementText'](_0xcc0f5d,'ENTER',_0x3f39bb(_0x1c966a)));break;}}});}['_processAttributeChanges'](_0x46b223){if(this['_recordAttributeSuggestions'])return!0x1;const _0x210fd4=this['editor'],_0x2752d3=_0x210fd4['model']['document']['differ']['getChanges']();if(0x0==_0x2752d3['length'])return!0x1;const _0x14cb21=[],_0x431477=_0x2752d3['filter'](_0x1db5e0=>'attribute'==_0x1db5e0['type']),_0x217f1a=_0x2752d3['filter'](_0x9bf60b=>'insert'==_0x9bf60b['type']&&'$text'!=_0x9bf60b['name']),_0x1d5f9b=_0x2752d3['filter'](_0x2b2540=>'remove'==_0x2b2540['type']&&'$text'!=_0x2b2540['name']);for(const _0x470bd8 of _0x431477)_0x14cb21['push']({'key':_0x470bd8['attributeKey'],'newValue':_0x470bd8['attributeNewValue'],'oldValue':_0x470bd8['attributeOldValue'],'range':Kt(_0x470bd8['range'],_0x210fd4['model'])});for(const _0x31b6cc of _0x217f1a){const _0x45523e=_0x1d5f9b['find'](_0x2256d4=>_0x2256d4['position']['isEqual'](_0x31b6cc['position']));_0x45523e&&_0x14cb21['push']({'key':m,'newValue':_0x31b6cc['name'],'oldValue':_0x45523e['name'],'range':_0x210fd4['model']['createRangeOn'](_0x31b6cc['position']['nodeAfter'])});}return 0x0!=_0x14cb21['length']&&this['_reduceExistingSuggestions'](_0x46b223,_0x14cb21);}['_processAttributeSuggestions'](_0x56eeea){let _0x1a2568=!0x1;const _0x37c75d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2ebe7b=>_0x2ebe7b['data']['newRange']&&_0x2ebe7b['name']['startsWith']('suggestion:attribute:'));for(const _0x206c00 of _0x37c75d){const {subType:_0x25d08e,id:_0xe3d636}=this['_splitMarkerName'](_0x206c00['name']),_0x13fe2d=_0x25d08e['split']('|')[0x0];for(const _0x343bd9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x343bd9['id']!=_0xe3d636&&'attribute'==_0x343bd9['type']&&_0x343bd9['data']&&_0x343bd9['data']['key']==_0x13fe2d&&_0x343bd9['getFirstRange']()['isIntersecting'](_0x206c00['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x343bd9,_0x206c00['data']['newRange'],_0x56eeea),_0x1a2568=!0x0);}return _0x1a2568;}['recordAttributeChanges'](_0xa40ca0){this['_recordAttributeSuggestions']=!0x0,_0xa40ca0();}['_isRegisteredAttribute'](_0x5146fa){const _0x521248=this['_isBlockAttribute'](_0x5146fa),_0x176a8b=this['_inlineAttributeKeys']['has'](_0x5146fa);return _0x521248||_0x176a8b;}['_reduceExistingSuggestions'](_0x1374b9,_0x58f9){if(0x0==_0x58f9['length'])return!0x1;let _0x57c8ca=!0x1;for(const _0xf1b8ec of _0x58f9){const _0x185d43=this['_findSuggestions'](_0xf1b8ec['range'],'attribute')['filter'](_0x53d72c=>!_0x53d72c['meta']['isNextTo'])['map'](_0xb16a4f=>_0xb16a4f['suggestion']),_0x236764=_0x5c09b9({'newValue':_0xf1b8ec['newValue']});_0x185d43['filter'](_0x1b9f83=>{const [_0x317f85,_0x5e1173]=_0x1b9f83['subType']['split']('|');return _0x317f85==_0xf1b8ec['key']&&_0x5e1173!=_0x236764;})['forEach'](_0x390490=>{this['_reduceSuggestionAttributeRange'](_0x390490,_0xf1b8ec['range'],_0x1374b9),_0x57c8ca=!0x0;});}return _0x57c8ca;}['_reduceSuggestionAttributeRange'](_0x515aaa,_0x2b7058,_0xfcd7bc){const _0xadac29=_0x515aaa['getFirstRange']()['getDifference'](_0x2b7058);0x0!==_0xadac29['length']?0x1!==_0xadac29['length']?this['_breakSuggestionMarker'](_0x515aaa,_0x2b7058['start'],_0x2b7058['end']):this['_setSuggestionRange'](_0x515aaa,_0xadac29[0x0]):_0xfcd7bc['removeMarker'](_0x515aaa['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x591b70){this['_editor']=_0x591b70,this['_model']=_0x591b70['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2b1f00,_0xabd09b,_0x4715d2,_0x368f67,_0x3ae022,_0x5df8ad,_0x111b34){return new T(this['_model'],{'type':_0x2b1f00,'subType':_0xabd09b,'id':_0x4715d2,'originalSuggestionId':_0x111b34,'author':_0x368f67,'creator':_0x368f67,'attributes':_0x3ae022,'onAttributesChange':_0x5df8ad,'onAccept':(..._0x112a49)=>this['getSuggestionCallback'](_0x2b1f00,_0xabd09b,'accept')(..._0x112a49),'onDiscard':(..._0x46f049)=>this['getSuggestionCallback'](_0x2b1f00,_0xabd09b,'discard')(..._0x46f049)});}['registerCustomCallback'](_0x1f384d,_0xc96e8c,_0x5d903f,_0x5a8df3){const _0x50fcbc=_0x1f384d+':'+_0xc96e8c+':'+_0x5d903f;this['_customCallbacks']['set'](_0x50fcbc,_0x5a8df3);}['getSuggestionCallback'](_0x19ba86,_0x1f604d,_0x3ad911){const _0x2d707e=_0x19ba86+':'+_0x1f604d+':'+_0x3ad911;return this['_customCallbacks']['get'](_0x2d707e)||this['_defaultCallbacks']['get'](_0x19ba86+':'+_0x3ad911);}['_registerDefaultCallbacks'](){const _0x2fa21a=()=>!0x1,_0x5641f2=_0xf7d2a3=>{_0xf7d2a3['sort']((_0x1457d0,_0x264fc6)=>_0x1457d0['start']['isBefore'](_0x264fc6['start'])?0x1:-0x1),this['_model']['change'](_0x1d6d8e=>{for(const _0x234cdc of _0xf7d2a3){let _0x314f69;_0x314f69=_0x234cdc['end']['isAtEnd']&&_0x234cdc['end']['parent']==_0x234cdc['start']['nodeAfter']?_0x1d6d8e['createSelection'](_0x234cdc['start']['nodeAfter'],'on'):_0x1d6d8e['createSelection'](_0x234cdc),this['_model']['deleteContent'](_0x314f69,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x386d26=(_0x580a60,_0x5a6dfc)=>{_0x5a6dfc&&this['_model']['change'](_0x15d571=>{const {commandName:_0x2973bc,commandParams:_0x1f616d=[]}=_0x5a6dfc,_0x2b1266=_0x580a60['map'](_0x56a662=>(Ft(_0x56a662)&&(_0x56a662=this['_model']['createRange'](_0x56a662['end'])),_0x56a662))['filter'](_0x3f9c1b=>'$graveyard'!==_0x3f9c1b['root']['rootName']);if(_0x2b1266['length']<0x1)return;const _0x263c5a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3dc5ba=>_0x23c46b['fromRange'](_0x3dc5ba));_0x15d571['setSelection'](_0x2b1266);for(const _0xe03789 of this['_editor']['commands']['commands']())_0xe03789['refresh']();_0x1f616d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2973bc,..._0x1f616d);const _0x166b51=_0x263c5a['filter'](_0x40cf6c=>'$graveyard'!=_0x40cf6c['root']['rootName']);_0x166b51['length']>0x0&&_0x15d571['setSelection'](_0x166b51);for(const _0x4af75e of _0x263c5a)_0x4af75e['detach']();});},_0x3e93b3=(_0x4c26ac,_0x66c847)=>0x1==_0x4c26ac['length']&&0x1==_0x66c847['length']&&_0x4c26ac[0x0]['end']['isEqual'](_0x66c847[0x0]['start']),_0x4d2e29=(_0x4f3851,_0x414e6d,_0x3a5981,_0x11a66c)=>qt(_0x4f3851,_0x414e6d,_0x3a5981,_0x11a66c)?[_0x4f3851,_0x414e6d]:qt(_0x414e6d,_0x4f3851,_0x11a66c,_0x3a5981)?[_0x414e6d,_0x4f3851]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2fa21a),this['_defaultCallbacks']['set']('insertion:discard',_0x5641f2),this['_defaultCallbacks']['set']('insertion:join',_0x3e93b3),this['_defaultCallbacks']['set']('insertion:chain',_0x4d2e29),this['_defaultCallbacks']['set']('deletion:accept',_0x5641f2),this['_defaultCallbacks']['set']('deletion:discard',_0x2fa21a),this['_defaultCallbacks']['set']('deletion:join',_0x3e93b3),this['_defaultCallbacks']['set']('deletion:chain',_0x4d2e29),this['_defaultCallbacks']['set']('formatInline:accept',_0x386d26),this['_defaultCallbacks']['set']('formatInline:discard',_0x2fa21a),this['_defaultCallbacks']['set']('formatInline:join',_0x3e93b3),this['_defaultCallbacks']['set']('formatInline:chain',_0x2fa21a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x386d26),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2fa21a),this['_defaultCallbacks']['set']('formatBlock:join',_0x3e93b3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2fa21a),this['_defaultCallbacks']['set']('attribute:accept',_0x2fa21a),this['_defaultCallbacks']['set']('attribute:discard',(_0x6d9e72,_0xe2144)=>{if(!_0xe2144)return;const _0x329755=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x51af3c=>{if(_0xe2144['key']==m)for(const _0x20e556 of _0x6d9e72){const _0x249166=_0x20e556['start']['nodeAfter'],_0x3a3e74=_0xe2144['oldValue'];_0x51af3c['rename'](_0x249166,_0x3a3e74);}else{if(_0x329755['_isBlockAttribute'](_0xe2144['key'])){for(const _0x438f9b of _0x6d9e72)void 0x0!==_0xe2144['oldValue']?_0x51af3c['setAttribute'](_0xe2144['key'],_0xe2144['oldValue'],_0x438f9b['start']['nodeAfter']):_0x51af3c['removeAttribute'](_0xe2144['key'],_0x438f9b['start']['nodeAfter']);}else{for(const _0x182825 of _0x6d9e72)_0xe2144['oldValue']?_0x51af3c['setAttribute'](_0xe2144['key'],_0xe2144['oldValue'],_0x182825):_0x51af3c['removeAttribute'](_0xe2144['key'],_0x182825);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3e93b3);}}function Vt(_0xac2f1e,_0x5bbeef,_0x311c23){for(const _0x581dcf of _0x5bbeef['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x581dcf['root']==_0x581dcf)return!0x1;if(!_0x311c23['containsItem'](_0x581dcf))return!0x1;if(_0xac2f1e['isObject'](_0x581dcf)||_0xac2f1e['isLimit'](_0x581dcf))return!0x0;}return!0x1;}function Ft(_0x413e94){return _0x413e94['end']['parent']==_0x413e94['start']['nodeAfter']&&_0x413e94['end']['isAtStart'];}function Pt(_0x4705d6,_0x3d1c42,_0x38ba16,_0x40bef2){const _0x5bb56b=_0x186392=>!_0x186392['item']['is']('$textProxy')&&!_0x40bef2['isObject'](_0x186392['item']),_0xa499a8=_0x4705d6['start']['getLastMatchingPosition'](_0x5bb56b),_0x383879=_0x4705d6['end']['getLastMatchingPosition'](_0x5bb56b,{'direction':'backward'});return(!_0x4705d6['start']['isEqual'](_0xa499a8)||!_0x4705d6['end']['isEqual'](_0x383879))&&(_0xa499a8['isBefore'](_0x383879)?_0x38ba16['updateMarker'](_0x3d1c42,{'range':_0x38ba16['createRange'](_0xa499a8,_0x383879)}):_0x38ba16['removeMarker'](_0x3d1c42),!0x0);}function Gt(_0x3b4d35){return _0x5c09b9(_0x3b4d35);}function Lt(_0x1c390e){const _0x310a7c=_0x1c390e['start']['nodeAfter'];return _0x310a7c&&_0x310a7c['is']('element');}function Jt(_0x310b8e){return!Ft(_0x310b8e)&&!function(_0x1a0167){return _0x1a0167['start']['parent']==_0x1a0167['end']['nodeBefore']&&_0x1a0167['start']['isAtEnd'];}(_0x310b8e);}function Kt(_0x152b6d,_0x4957a4){return null==_0x152b6d['end']['nodeBefore']&&_0x152b6d['end']['parent']==_0x152b6d['start']['nodeAfter']?Ht(_0x152b6d['start']['nodeAfter'],_0x4957a4):_0x152b6d;}function Ht(_0x5e08cb,_0x18761a){const _0x451d8c=_0x18761a['schema']['isObject'](_0x5e08cb)||_0x18761a['schema']['isSelectable'](_0x5e08cb);return _0x18761a['createRange'](_0x18761a['createPositionAt'](_0x5e08cb,'before'),_0x451d8c?_0x18761a['createPositionAfter'](_0x5e08cb):_0x18761a['createPositionAt'](_0x5e08cb,'end'));}function qt(_0x3dbbe8,_0x2c17c2,_0x4b98c8,_0x48fdfd){return!!zt(_0x3dbbe8,_0x2c17c2)&&_0x4b98c8['end']['isEqual'](_0x48fdfd['start']);}function zt(_0x54a5b8,_0x5642da){if(!_0x54a5b8['_isDataLoaded']||!_0x5642da['_isDataLoaded'])return!0x1;const _0x1054c4=new Set(Object['keys'](_0x54a5b8['attributes'])),_0x25792f=new Set(Object['keys'](_0x5642da['attributes']));if(_0x1054c4['delete']('groupId'),_0x25792f['delete']('groupId'),0x0==_0x1054c4['size']&&0x0==_0x25792f['size'])return!0x0;if(_0x1054c4['size']!=_0x25792f['size'])return!0x1;const _0xedb3c2={..._0x54a5b8['attributes']},_0xacfdb3={..._0x5642da['attributes']};return delete _0xedb3c2['groupId'],delete _0xacfdb3['groupId'],JSON['stringify'](_0xedb3c2)==JSON['stringify'](_0xacfdb3);}function Wt(_0x140d5c,_0x261d65){const _0x1ac309=Qt(_0x140d5c['attributes']),_0x2efea0=Qt(_0x261d65);if(!_0x140d5c['_isDataLoaded'])return!0x1;for(const _0x3dd3a1 of Object['keys'](_0x2efea0))if(!_0x40f550(_0x1ac309[_0x3dd3a1],_0x2efea0[_0x3dd3a1]))return!0x1;return!0x0;}function Qt(_0xbfa00b){const _0x25e30f=Object['assign']({},_0xbfa00b);return delete _0x25e30f['skipNestingCheck'],delete _0x25e30f['tablePasteChainId'],_0x25e30f;}class pe extends/* #__PURE__ -- @preserve */
26
- _0xe2fa8e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2227f8,_0x3c41e5,_0x194c31,_0x2dd8dd){super(),this['model']=_0x3c41e5,this['view']=_0x194c31,this['commentThreadController']=_0x2dd8dd,this['_editor']=_0x2227f8,this['_acceptCommand']=_0x2227f8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2227f8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x472ff9,_0x1a0481)=>_0x472ff9||_0x1a0481),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x482001=>_0x482001&&this['_editor']['model']['canEditAt'](_0x3c41e5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2a2862=>_0x2a2862&&this['_editor']['model']['canEditAt'](_0x3c41e5['getRanges']())),this['_pendingAction']=null,_0x194c31['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x194c31,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x194c31,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x194c31,'change:isDirty',()=>{_0x194c31['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 _0x288abe=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x288abe);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x4b361c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x594087,_0x112dc4,_0x3666bd,_0x423431){super(_0x594087),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1bb425(_0x594087,o(_0x594087,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x112dc4['authoredAt']),this['bind']('authoredAt')['to'](_0x112dc4),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',_0x112dc4,'authoredAt',this,'descriptionParts',(_0xb4c7ae,_0x37df99,_0x1f83c7)=>{const _0x4a99fb=_0x1f83c7['map'](_0x1adbd7=>ls(_0x1adbd7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xb4c7ae-0x1,_0x112dc4['author']['name'],_0x37df99?_0x423431['formatDateTime'](_0x37df99):'',new DOMParser()['parseFromString'](_0x4a99fb,'text/html')['body']['textContent']]);}),this['focusables']=new _0x216aeb(),this['focusTracker']=new _0x453b07(),this['keystrokes']=new _0x392f6a(),this['focusCycler']=new _0x1fb8b4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3b5e3d=>_0x3b5e3d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x112dc4,this['_localUser']=_0x3666bd,this['_config']=_0x423431,_0x423431['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1ecf72(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x50604d}=this['_config'];this['commentsListView']=new _0x50604d(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',_0x139c3e=>_0x139c3e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xf4ca39,_0xc2d788)=>_0xf4ca39||!!_0xc2d788);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x59a3ef}=this['_config'],_0x1faf29=new _0x59a3ef(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xd44fe7=_0x1faf29['commentInputView'];return _0x1faf29['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xd44fe7,'value',(_0x34a741,_0x1c5086,_0x44d3c9)=>!!_0x44d3c9||_0x34a741&&!_0x1c5086),_0xd44fe7['on']('submit',(_0x367f9d,_0x536ed1)=>{this['fire']('addComment',_0x536ed1),_0xd44fe7['editor']['setData']('');}),_0xd44fe7['on']('cancel',()=>this['focus']()),_0xd44fe7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1faf29;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0x4ec87c,_0x15c4fd,_0x49a7c9,_0x50d6df){super(_0x4ec87c,_0x15c4fd,_0x49a7c9,_0x50d6df),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1009c7=>_0x1009c7&&_0x1009c7[0x0]?_0x1009c7[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x292949,_0x2c3804)=>{let _0x5b9f48='';for(const _0x3d1a49 of _0x292949)_0x5b9f48+='<p>'+ls(_0x3d1a49['content'],_0x3d1a49['color'])+'</p>';return _0x2c3804?_0x5b9f48:_0x402eb8(_0x5b9f48,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x50d6df['SuggestionView'](_0x4ec87c,_0x15c4fd,{'formatDateTime':_0x50d6df['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 _0x45d161=this['bindTemplate'],_0x2a0b3f=[this['suggestionView']];return this['commentsListView']&&_0x2a0b3f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2a0b3f['push'](this['commentThreadInputView']),_0x2a0b3f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x45d161['if']('isActive','ck-suggestion-wrapper--active'),_0x45d161['to']('type',_0x50ad15=>'ck-suggestion-'+_0x50ad15),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':_0x45d161['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2a0b3f};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x4b361c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4bb8ea,_0x27d2b2,_0x187365){super(_0x4bb8ea),this['_model']=_0x27d2b2,this['_config']=_0x187365,this['set']('description',''),this['bind']('authoredAt')['to'](_0x27d2b2),this['acceptButton']=this['_createButton'](o(_0x4bb8ea,'Accept\x20suggestion'),_0x180c93,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4bb8ea,'Discard\x20suggestion'),_0x33253a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x340ac7(_0x4bb8ea,_0x27d2b2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x216aeb([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x453b07(),this['keystrokes']=new _0x392f6a(),this['focusCycler']=new _0x1fb8b4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4bee81=>_0x4bee81['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x456f7a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x456f7a['innerHTML']=this['description'],this['on']('change:description',(_0x3f381e,_0x424683,_0x463f0d)=>{_0x456f7a['innerHTML']=_0x463f0d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x18f078=this['bindTemplate'],_0x5c8e8c=[{'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':_0x18f078['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x18f078['to']('authoredAt',_0x2b0e6a=>this['_config']['formatDateTime'](_0x2b0e6a))}]}]},{'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']&&_0x5c8e8c['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':_0x5c8e8c}]};}['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'](_0x11f3e8,_0x26e010,_0xa7b499,_0x455fd5,_0x42c6e8){const _0x4a2e7d=new _0x431cba(this['locale']);return _0x4a2e7d['set']({'label':_0x11f3e8,'icon':_0x26e010,'tooltip':!0x0,'tooltipPosition':_0x42c6e8}),_0x4a2e7d['extendTemplate']({'attributes':{'class':_0xa7b499}}),_0x4a2e7d['on']('execute',()=>{this['fire'](_0x455fd5,this['_model']['id']);}),_0x4a2e7d;}['_setupKeyboardNavigation'](){const _0x386e84=this['element'];this['keystrokes']['listenTo'](_0x386e84);for(const _0x4bd922 of this['focusables'])this['focusTracker']['add'](_0x4bd922['element']),this['keystrokes']['listenTo'](_0x4bd922['element']);this['keystrokes']['set']('enter',(_0x185e5b,_0x54846b)=>{_0x386e84===_0x185e5b['target']&&(this['focusCycler']['focusFirst'](),_0x54846b());}),this['keystrokes']['set']('esc',(_0xe95b8b,_0x4921ce)=>{_0x386e84!==_0xe95b8b['target']&&(this['focus'](),_0x4921ce());});}}class u extends _0x27f707{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x23be23,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x316857){super(_0x316857),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x28c81d=this['editor']['config'];_0x28c81d['define']('trackChanges.SuggestionThreadView',fe),_0x28c81d['define']('trackChanges.SuggestionView',we),_0x28c81d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x28c81d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x529f1d,_0xcf825b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5dca05,_0x186445]of this['_handleControllerBuffer']){const _0x135c7c=this['_suggestionToController']['has'](_0x5dca05);_0x135c7c||_0x186445?_0x135c7c&&_0x186445&&this['_destroyController'](_0x5dca05):this['_initializeController'](_0x5dca05);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x529f1d,_0xcf825b);}['init'](){const _0x2c6ebd=this['editor'],_0x219dd1=_0x2c6ebd['plugins']['get']('TrackChangesEditing'),_0x5c9a85=_0x2c6ebd['plugins']['get']('Annotations'),_0x3da7b4=_0x2c6ebd['plugins']['get']('EditorAnnotations'),_0x1646e1=_0x2c6ebd['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3da7b4['addSourceCollector'](()=>{const _0x186cc3=[];for(const [_0xb50b00,_0x335b4c]of Array['from'](this['_suggestionToController'])){const _0x2e587e=_0xb50b00['getAllAdjacentSuggestions'](),_0x162346=[];for(const _0x52dcb3 of _0x2e587e){if(!_0x52dcb3['isInContent'])continue;if(_0x52dcb3['isMultiRange']){_0x162346['push'](..._0x52dcb3['getRanges']());continue;}const _0x303f86=_0x52dcb3['getFirstRange']();if(_0x162346['length']>0x0){const _0x3b4035=_0x162346[0x0]['getJoined'](_0x303f86);if(_0x3b4035){_0x162346[0x0]=_0x3b4035;continue;}}_0x162346['push'](_0x303f86);}_0x186cc3['push']([_0x335b4c['view'],_0x162346]);}return _0x186cc3;}),this['listenTo'](_0x219dd1,'suggestionLoaded',(_0x21e77a,_0x27a3cb)=>{this['listenTo'](_0x27a3cb,'change:previous',(_0x43fcef,_0x5eeef0,_0x1665d8,_0x4c32b3)=>{_0x27a3cb['isInContent']&&(null==_0x1665d8?(this['_updateController'](_0x4c32b3['head']),this['_handleSuggestionControllerDelayed'](_0x27a3cb,!0x1)):(this['_updateController'](_0x1665d8['head']),null==_0x4c32b3&&this['_handleSuggestionControllerDelayed'](_0x27a3cb,!0x0)));}),null!==_0x27a3cb['previous']?this['_updateController'](_0x27a3cb['head']):this['_handleSuggestionControllerDelayed'](_0x27a3cb,!0x1);}),this['listenTo'](_0x219dd1,'suggestionUnloaded',(_0x450790,_0x2625ef,_0x504c66)=>{this['stopListening'](_0x2625ef,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2625ef),this['_suggestionToController']['has'](_0x2625ef)&&this['_destroyController'](_0x2625ef),_0x504c66&&this['_updateController'](_0x504c66['head']);}),this['listenTo'](_0x219dd1,'suggestionChanged',(_0x55f8f8,_0x170d18)=>{this['_updateController'](_0x170d18);}),this['listenTo'](_0x5c9a85,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1646e1,'addComment',(_0x187a5d,{threadId:_0x480f4f,isFromAdapter:_0x2d54c9})=>{if(_0x2d54c9||!_0x219dd1['hasSuggestion'](_0x480f4f))return;const _0x3832f5=_0x219dd1['getSuggestion'](_0x480f4f);this['_suggestionToController']['get'](_0x3832f5)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x23c1e7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x44356b;for(const _0x263f85 in _0x23c1e7){const _0x1975f3=_0x263f85,_0x530dcf=_0x23c1e7[_0x1975f3];if('trackChangesLicenseKeyValid'==_0x530dcf||'trackChangesLicenseKeyInvalid'==_0x530dcf||'trackChangesLicenseKeyExpired'==_0x530dcf||'trackChangesLicenseKeyDomainLimit'==_0x530dcf||'trackChangesLicenseKeyNotAllowed'==_0x530dcf||'trackChangesLicenseKeyEvaluationLimit'==_0x530dcf||'trackChangesLicenseKeyTrialLimit'==_0x530dcf||'trackChangesLicenseKeyUsageLimit'==_0x530dcf){delete _0x23c1e7[_0x1975f3],_0x44356b=_0x530dcf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x44356b&&_0x23c1e7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x44356b&&_0x23c1e7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x44356b&&_0x23c1e7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x44356b&&_0x23c1e7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x44356b&&_0x23c1e7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x44356b&&_0x23c1e7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x44356b&&_0x23c1e7['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3e9759){const _0x1a4073=this['_suggestionToController']['get'](_0x3e9759);if(!_0x1a4073)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x1a4073['view'])||null;}['getSuggestionForAnnotation'](_0x12ab92){const _0x2adc59=this['_viewToController']['get'](_0x12ab92['innerView']);return _0x2adc59?_0x2adc59['model']:null;}['_refreshActiveMarkers'](){const _0x4d5c25=this['editor']['plugins']['get']('Annotations'),_0x2cf6b1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a5d6f=Array['from'](_0x4d5c25['activeAnnotations'],_0x3b1123=>_0x3b1123['innerView'])['filter'](_0x55c4db=>this['_viewToController']['has'](_0x55c4db)),_0x34a380=[];for(const _0x18eace of _0x2a5d6f){const _0x22bccd=this['_viewToController']['get'](_0x18eace)['model']['getAllAdjacentSuggestions']();_0x34a380['push'](..._0x22bccd['reduce']((_0x1db56f,_0x25b87a)=>[..._0x1db56f,..._0x25b87a['getMarkerNames']()],[]));}_0x2cf6b1['activeMarkers']=_0x34a380;}['_addUIComponentsToFactory'](){const _0x46923f=this['editor'],_0x398805=_0x46923f['locale'],_0x64c1e4=o(_0x398805,'Track\x20changes'),_0x2143a9=new _0x20735f([{'type':'switchbutton','model':new _0x573886({'withText':!0x0,'isToggleable':!0x0,'label':_0x64c1e4,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x573886({'withText':!0x0,'label':o(_0x398805,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x573886({'withText':!0x0,'label':o(_0x398805,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x573886({'withText':!0x0,'label':o(_0x398805,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x573886({'withText':!0x0,'label':o(_0x398805,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x46923f['plugins']['has']('TrackChangesPreview')&&_0x2143a9['addMany']([{'type':'separator'},{'type':'button','model':new _0x573886({'withText':!0x0,'label':o(_0x398805,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4ad8f5 of _0x2143a9)if(ke(_0x4ad8f5)){const _0x44cafd=_0x46923f['commands']['get'](_0x4ad8f5['model']['commandName']);_0x4ad8f5['model']['bind']('isOn','isEnabled')['to'](_0x44cafd,'value','isEnabled');}_0x46923f['ui']['componentFactory']['add']('trackChanges',_0x5372e9=>this['_createToolbarButton'](_0x5372e9,_0x2143a9,_0x64c1e4)),_0x46923f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1633de=>this['_createMenuBarMenu'](_0x1633de,_0x2143a9,_0x64c1e4));}['_createToolbarButton'](_0x3307b0,_0x3c0b59,_0x1e98bc){const _0x1cbcc8=_0x1574e1(_0x3307b0,_0x4adb16),_0x347653=this['editor']['commands']['get']('trackChanges');_0x1cbcc8['buttonView']['set']({'tooltip':_0x1e98bc,'label':_0x1e98bc,'icon':_0x441021}),_0x1cbcc8['buttonView']['bind']('isOn')['to'](_0x347653,'value'),_0x1cbcc8['buttonView']['on']('execute',()=>{_0x347653['execute'](),this['editor']['editing']['view']['focus']();}),_0x665b2d(_0x1cbcc8,_0x3c0b59,{'role':'menu'});const _0x38eecc=[];for(const _0x3768ee of _0x3c0b59)ke(_0x3768ee)&&_0x38eecc['push'](this['editor']['commands']['get'](_0x3768ee['model']['commandName']));const _0x420112=_0x1cbcc8['buttonView'];return _0x420112['actionView']['unbind']('isEnabled'),_0x420112['arrowView']['unbind']('isEnabled'),_0x420112['actionView']['bind']('isEnabled')['to'](_0x347653,'isEnabled'),_0x420112['arrowView']['bind']('isEnabled')['toMany'](_0x38eecc,'isEnabled',(..._0x4b90da)=>_0x4b90da['some'](_0x1c0c1a=>_0x1c0c1a)),_0x1cbcc8['on']('execute',_0x454513=>{this['editor']['execute'](_0x454513['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1cbcc8;}['_createMenuBarMenu'](_0x53b0a6,_0x268977,_0x3f6829){const _0x357ea9=new _0x117c7e(_0x53b0a6),_0x588917=this['editor']['commands']['get']('trackChanges');_0x357ea9['buttonView']['set']({'label':_0x3f6829,'icon':_0x441021});const _0x5b8daf=new _0x3d298e(_0x53b0a6);for(const _0x81babb of _0x268977){if('separator'==_0x81babb['type']){_0x5b8daf['items']['add'](new _0x361e15(_0x53b0a6));continue;}const _0x9bb3fb=new _0x4e83ce(_0x53b0a6,_0x357ea9),_0x2abbcd=new _0x33227c(_0x53b0a6),_0x38b188=_0x81babb['model'];_0x2abbcd['bind'](...Object['keys'](_0x38b188))['to'](_0x38b188),_0x2abbcd['delegate']('execute')['to'](_0x357ea9),_0x2abbcd['on']('execute',()=>{this['editor']['execute'](_0x38b188['commandName']),this['editor']['editing']['view']['focus']();}),_0x9bb3fb['children']['add'](_0x2abbcd),_0x5b8daf['items']['add'](_0x9bb3fb);}return _0x357ea9['bind']('isEnabled')['to'](_0x588917,'isEnabled'),_0x357ea9['panelView']['children']['add'](_0x5b8daf),_0x357ea9;}['_initializeController'](_0x3ad485){const _0x396fcd=this['editor'],_0x15f6fd=_0x396fcd['config'],_0x32e4b3=_0x396fcd['plugins']['get']('Annotations'),_0x39e1c3=_0x396fcd['plugins']['get']('CommentsRepository'),_0x3f15e1=_0x396fcd['plugins']['get']('EditorAnnotations'),_0x14f680=_0x396fcd['plugins']['get'](_0x23be23)['me'],_0x4d9aa3=_0x15f6fd['get']('trackChanges')['SuggestionThreadView'],_0x9b295f=_0x15f6fd['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xf8fb3d,CommentThreadInputView:_0x539cfe}=_0x396fcd['plugins']['get']('CommentsUI');let _0x323c34,_0x4f242b,_0x155a78;this['_annotationViews']['has'](_0x3ad485['id'])?(_0x4f242b=this['_annotationViews']['get'](_0x3ad485['id']),_0x323c34=_0x4f242b['mainView']):(_0x323c34=new _0x4d9aa3(_0x396fcd['locale'],_0x3ad485,_0x14f680,{'disableComments':this['_disableComments'],'editorConfig':{..._0x15f6fd['get']('comments.editorConfig'),'licenseKey':_0x15f6fd['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x15f6fd['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x15f6fd['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x15f6fd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x460132(_0x15f6fd['get']('locale'),_0x396fcd['locale']),'CommentView':_0x15f6fd['get']('comments')['CommentView'],'CommentsListView':_0xf8fb3d,'CommentThreadInputView':_0x539cfe,'SuggestionView':_0x9b295f}),_0x323c34['suggestionView']['acceptButton']['on']('execute',()=>{_0x396fcd['editing']['view']['focus']();}),_0x323c34['suggestionView']['discardButton']['on']('execute',()=>{_0x396fcd['editing']['view']['focus']();}),_0x4f242b=_0x32e4b3['createAnnotationView'](this['editor']['locale'],_0x323c34),_0x4f242b['bind']('isDirty')['to'](_0x323c34,'isDirty'),_0x4f242b['bind']('length')['to'](_0x323c34),_0x4f242b['bind']('type')['to'](_0x323c34,'type',_0x89e8d1=>'suggestion-'+_0x89e8d1),_0x323c34['on']('escape',()=>{_0x155a78['fire']('escape');}),this['_annotationViews']['set'](_0x3ad485['id'],_0x4f242b));const _0xdb01a=_0x39e1c3['createCommentThreadController'](_0x3ad485['commentThread'],_0x323c34),_0x5f4a8e=new pe(_0x396fcd,_0x3ad485,_0x323c34,_0xdb01a),_0x23c22d=_0x3ad485['getAllAdjacentSuggestions']()['filter'](_0xda1814=>_0xda1814['isInContent']);_0x323c34['descriptionParts']=_0x396fcd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x23c22d),this['_suggestionToController']['set'](_0x3ad485,_0x5f4a8e),this['_viewToController']['set'](_0x323c34,_0x5f4a8e),_0x155a78=_0x32e4b3['createAnnotation']({'view':_0x4f242b,'target':()=>{const _0x3f843c=[],_0x5aebf9=_0x3ad485['getAllAdjacentSuggestions']()['filter'](_0x48090d=>_0x48090d['isInContent']);for(const _0x31df6e of _0x5aebf9)_0x3f843c['push'](..._0x31df6e['getMarkers']());return _0x57530a(_0x396fcd['editing'],_0x3f843c);},'type':()=>'suggestion-'+_0x5f4a8e['view']['type']}),_0x39e1c3['_bindAnnotationToEditors'](_0x323c34,_0x155a78),_0x32e4b3['add'](_0x155a78),_0x3f15e1['registerAnnotation'](_0x155a78);}['_destroyController'](_0x18f794){const _0x3617ca=this['editor']['plugins']['get']('CommentsRepository'),_0x300115=this['editor']['plugins']['get']('Annotations'),_0x10a964=this['_suggestionToController']['get'](_0x18f794),_0x253cad=_0x10a964['view'],_0x4bd095=_0x300115['getByInnerView'](_0x253cad);_0x3617ca['_unbindEditors'](_0x253cad),_0x4bd095&&_0x300115['remove'](_0x4bd095),this['_suggestionToController']['delete'](_0x18f794),this['_viewToController']['delete'](_0x253cad),_0x10a964['destroy']();}['_updateController'](_0xf5af07){if(!_0xf5af07['isInContent']||!this['_suggestionToController']['has'](_0xf5af07))return;const _0x58662b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e02df=this['_suggestionToController']['get'](_0xf5af07),_0x38a93b=_0xf5af07['getAllAdjacentSuggestions']();_0x1e02df['view']['descriptionParts']=_0x58662b['descriptionFactory']['getDescriptions'](_0x38a93b);}['destroy'](){for(const _0x4ccdba of this['_suggestionToController']['keys']())this['_destroyController'](_0x4ccdba);for(const _0x1449a2 of this['_annotationViews']['values']())_0x1449a2['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5b6786){return'model'in _0x5b6786;}class Fe extends _0x27f707{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x39b5cb){this['editor']['plugins']['get'](d)['adapter']=_0x39b5cb;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x477bec){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x477bec);}['getSuggestions']({skipNotAttached:_0x188eae=!0x1,toJSON:_0xf15ace=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x188eae,'toJSON':_0xf15ace});}['getSuggestion'](_0x28f3bf){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x28f3bf);}}const p=['Pagination'];class re extends _0x27f707{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x168471=this['editor'];if(_0x168471['config']['define']('trackChangesData.editorCreator',_0x89488=>{const _0x115c27=_0x168471['model']['document']['getRootNames']()['reduce']((_0x54edd3,_0x163595)=>(_0x54edd3[_0x163595]='',_0x54edd3),{});return _0x168471['constructor']['create'](_0x115c27,_0x89488);}),'function'!=typeof _0x168471['config']['get']('trackChangesData')['editorCreator'])throw new _0x55a365('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4397eb){return P(this['editor'],!0x0,_0x4397eb);}['getDataWithDiscardedSuggestions'](_0x1ba19a){return P(this['editor'],!0x1,_0x1ba19a);}}class Ge extends _0x27f707{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a9339){function _0x54438c(_0x5de2f5){return _0x5de2f5['map'](_0x56caf3=>String['fromCharCode'](_0x56caf3))['join']('');}super(_0x5a9339),this['result']='end',_0x5a9339[_0x54438c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54438c([0x76,0x69,0x65,0x77])][_0x54438c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54438c([0x61,0x75,0x74,0x6f]),_0x5a9339[_0x54438c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x54438c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54438c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x54438c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x54438c([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function $e(_0x4a6d97){return void 0x0!==_0x4a6d97['getRootsAttributes'];}async function P(_0x5df4f2,_0x2451af,_0x2daac9){const _0x732f6f=_0x4d60cb(_0x5df4f2,p);_0x732f6f['plugins']['push'](d,Ge),_0x732f6f['rootsAttributes']=$e(_0x5df4f2)?_0x5df4f2['getRootsAttributes']():void 0x0;const _0x23ad7f=document['createDocumentFragment'](),_0x1bfe12=_0x5df4f2['config']['get']('trackChangesData')['editorCreator'],_0x5b3f8f=await _0x1bfe12(_0x732f6f,()=>function(_0x188ce9){const _0x256a01=document['createElement']('div');return _0x188ce9['appendChild'](_0x256a01),_0x256a01;}(_0x23ad7f));!function(_0x579cae,_0x2f423f){const _0x51b607=_0x579cae['model']['document']['getRootNames']()['reduce']((_0x145144,_0x154f17)=>(_0x145144[_0x154f17]=_0x579cae['data']['get']({'rootName':_0x154f17}),_0x145144),{}),_0x32c9fc=_0x579cae['plugins']['get']('Users')['users']['map'](_0x54325f=>({'id':_0x54325f['id'],'name':_0x54325f['name']})),_0x4db9ff=_0x579cae['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x874890=_0x579cae['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2fad98=_0x2f423f['plugins']['get']('Users'),_0x442189=_0x2f423f['plugins']['get']('TrackChangesEditing'),_0x39c7a8=_0x2f423f['plugins']['get']('CommentsRepository');for(const _0x3eb520 of _0x39c7a8['getCommentThreads']())_0x3eb520['remove']();for(const _0x5c3a46 of _0x32c9fc)_0x2fad98['getUser'](_0x5c3a46['id'])||_0x2fad98['addUser'](_0x5c3a46);_0x2fad98['me']||_0x2fad98['useAnonymousUser']();for(const _0x3c7459 of _0x874890)_0x39c7a8['addCommentThread'](_0x3c7459);for(const _0x5f163f of _0x4db9ff)_0x442189['addSuggestionData'](_0x5f163f);_0x2f423f['data']['set'](_0x51b607);}(_0x5df4f2,_0x5b3f8f),_0x5b3f8f['execute'](_0x2451af?'acceptAllSuggestions':'discardAllSuggestions');const _0x171a60=$e(_0x5b3f8f)?_0x5b3f8f['getFullData'](_0x2daac9):_0x5b3f8f['data']['get'](_0x2daac9);return await _0x5b3f8f['destroy'](),_0x171a60;}class Me extends _0x4b361c{['options'];constructor(_0x56b76e,_0x20efa5){super(_0x56b76e),this['options']=_0x20efa5,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'](_0xa12743,_0x27fc3f){if(!this['element'])return;const _0x346a74=[];for(const [_0x56f8bb,_0x9fc178]of _0xa12743){const _0x44f0d1=document['createElement']('div');_0x44f0d1['setAttribute']('data-ck-root-name',_0x56f8bb),_0x44f0d1['className']=_0x9fc178['classes']+'\x20ck-track-changes-preview__root-container',_0x44f0d1['innerHTML']=_0x9fc178['content'],_0x346a74['push'](_0x44f0d1);}_0x27fc3f(this['element'],_0x346a74),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x4bc546{constructor(_0x190dca){super(_0x190dca),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x880e1c=this['editor'],_0x40a4c5=_0x880e1c['locale'],_0x595abc=_0x880e1c['plugins']['get']('Dialog');let _0x408ac8;const _0xd5e3c5=function(_0x50125c){const _0x495fd1={};if('editables'in _0x50125c['ui']['view']){for(const [_0x4aac5d,_0x472e64]of Object['entries'](_0x50125c['ui']['view']['editables']))_0x495fd1[_0x4aac5d]=_0x472e64['element'];}else _0x495fd1[_0x50125c['model']['document']['getRootNames']()[0x0]]=_0x50125c['ui']['view']['editable']['element'];return _0x495fd1;}(_0x880e1c),_0xedb17b=function(_0xb6b94d){let _0x1f040a=0x0;for(const _0x12d676 of Object['values'](_0xb6b94d))_0x1f040a=Math['max'](_0x1f040a,_0x12d676['getBoundingClientRect']()['width']);let _0x5d2c05=0x0;for(const _0x316f3e of Object['values'](_0xb6b94d))_0x5d2c05+=_0x316f3e['getBoundingClientRect']()['height'];const _0x479915=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2927b5=Math['min'](_0x5d2c05,_0x479915);return{'width':_0x1f040a,'height':_0x2927b5};}(_0xd5e3c5);_0x595abc['show']({'id':'finalContentPreview','title':o(_0x40a4c5,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x40a4c5,{'dialogRects':_0xedb17b}),'onHide':()=>{_0x408ac8['detachFromDom']();},'onShow':()=>{_0x880e1c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2b514e=>{const _0x4a714b=this['_standarizeRootsData'](_0x2b514e,_0x880e1c,_0xd5e3c5);_0x595abc['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4a714b,_0x880e1c['config']['get']('trackChanges.preview.renderFunction'));}),_0x408ac8=new _0x3b1f59(_0x40a4c5,[_0x595abc['view']]),_0x408ac8['attachToDom'](),_0x408ac8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x880e1c['once']('destroy',()=>{_0x408ac8['detachFromDom']();});const _0x37da26=_0x595abc['view']['headerView']['class'];_0x595abc['view']['headerView']['class']=_0x37da26?_0x37da26+'\x20ck-reset_all':'ck-reset_all',_0x595abc['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x595abc['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x56c61a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x55bc9e=_0x56c61a['previewMode'],_0x1dbeed={};if('$labels'===_0x55bc9e){for(const _0x319ff2 of _0x56c61a['getMergeFieldsIds']())_0x1dbeed[_0x319ff2]=_0x56c61a['getLabel'](_0x319ff2)||_0x319ff2;}else{const _0x37a4c2='$defaultValues'===_0x55bc9e?_0x56c61a['getDefaultValues']():_0x56c61a['getDataSetValues'](_0x55bc9e,!0x0);for(const _0x4c0f80 of Object['entries'](_0x37a4c2)){const [_0x4f1d3d,_0x3020df]=_0x4c0f80;_0x1dbeed[_0x4f1d3d]=null!==_0x3020df?_0x3020df:_0x56c61a['getLabel'](_0x4f1d3d)||_0x4f1d3d;}}return{'mergeFieldsData':_0x1dbeed};}['_standarizeRootsData'](_0x53cb76,_0x5d8d78,_0x519cf3){let _0x3c61dc;if('string'==typeof _0x53cb76){const _0x240526=_0x5d8d78['model']['document']['getRootNames']()[0x0];_0x3c61dc={[_0x240526]:_0x53cb76};}else _0x3c61dc=_0x53cb76;const _0x1d96e2=this['_fixMediaEmbeds'](_0x3c61dc,_0x5d8d78),_0x143ca8=function(_0x13bb43,_0xa20eb7){for(const [_0x5937b4,_0x1ff7b5]of _0x13bb43)_0x1ff7b5['classes']=_0xa20eb7[_0x5937b4]['classList']['value']['replace']('ck-focused','');return _0x13bb43;}(this['_sortRoots'](_0x5d8d78)['reduce']((_0x13212e,_0xb45fff)=>(_0x13212e['push']([_0xb45fff,{'content':_0x1d96e2[_0xb45fff],'classes':''}]),_0x13212e),[]),_0x519cf3);return _0x143ca8;}['_fixMediaEmbeds'](_0x2c50ae,_0x171db9){if(!_0x171db9['plugins']['has']('MediaEmbedEditing'))return _0x2c50ae;const _0x5cfcdf=_0x171db9['plugins']['get']('MediaEmbedEditing');for(const [_0x51b38b,_0x5a5194]of Object['entries'](_0x2c50ae)){const _0x458f1a=document['createElement']('div');_0x458f1a['innerHTML']=_0x5a5194,(_0x458f1a['querySelectorAll']('figure.media')['forEach'](_0x14ea37=>{const _0x3aab91=_0x14ea37['querySelector']('oembed');if(_0x3aab91){const _0x4dcba2=_0x3aab91['getAttribute']('url');if(_0x4dcba2){const _0x505458=_0x5cfcdf['registry']['getMediaViewElement'](new _0x52093d(_0x171db9['editing']['view']['document']),_0x4dcba2,{'elementName':'','renderForEditingView':!0x0}),_0x319c12=document['createElement']('div');_0x319c12['classList']['add']('ck-media__wrapper'),_0x505458['render'](_0x319c12,_0x171db9['editing']['view']['domConverter']),_0x3aab91['replaceWith'](_0x319c12);}}}),_0x2c50ae[_0x51b38b]=_0x458f1a['innerHTML']);}return _0x2c50ae;}['_sortRoots'](_0x1f76e9){if(!function(_0x1e768a){return void 0x0!==_0x1e768a['getRootsAttributes'];}(_0x1f76e9))return _0x1f76e9['model']['document']['getRootNames']();const _0x325e87=[],_0x25ecba=new Map();for(const _0x361889 of _0x1f76e9['model']['document']['getRootNames']()){const _0x2f33ac=_0x1f76e9['editing']['view']['getDomRoot'](_0x361889)['getClientRects']()['item'](0x0);_0x325e87['push'](_0x361889),_0x25ecba['set'](_0x361889,_0x2f33ac);}return _0x325e87['sort']((_0x3cc62d,_0x51d61a)=>{const _0x503e9f=_0x25ecba['get'](_0x3cc62d),_0x380f74=_0x25ecba['get'](_0x51d61a);return _0x503e9f['y']-_0x380f74['y']||_0x503e9f['x']-_0x380f74['x'];}),_0x325e87;}}class He extends _0x27f707{static get['requires'](){return[re,_0x5c6607];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5cdbae){super(_0x5cdbae),_0x5cdbae['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5cdbae['config']['define']('trackChanges.preview.renderFunction',(_0x579d4c,_0x1a3baf)=>{for(const _0x400b06 of _0x1a3baf)_0x579d4c['appendChild'](_0x400b06);});}}export{D as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
23
+ import{Command as _0x572c4e,Plugin as _0x2bddd5,PendingActions as _0x5b857b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x30e493,ObservableMixin as _0x30d850,uid as _0x4bb6e6,priorities as _0x2048ff,insertToPriorityArray as _0x1b416a,toArray as _0xbaf344,logWarning as _0x17884f,getEnvKeystrokeText as _0x33f11a,FocusTracker as _0x554881,KeystrokeHandler as _0x468202,Collection as _0x34de8a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5413dd,IconCancel as _0xf05574,IconTrackChanges as _0xbecfc5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x38fe7e,View as _0x227c41,ViewCollection as _0x3c433f,FocusCycler as _0x566dc2,UIModel as _0x595d42,createDropdown as _0x348d4d,SplitButtonView as _0x17ee4a,addListToDropdown as _0x5cbd92,MenuBarMenuView as _0xa70834,MenuBarMenuListView as _0x5d1ff9,ListSeparatorView as _0x247408,MenuBarMenuListItemView as _0x3991a7,MenuBarMenuListItemButtonView as _0x47cc69,BodyCollection as _0x2fab16,Dialog as _0x34ef5c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x27b3d9,hashObject as _0x19e181,surroundingMarkersDetector as _0x5c23cf,FOCUS_ANNOTATION_KEYSTROKE as _0x707fe4,AriaDescriptionView as _0x3b31bb,setupThreadKeyboardNavigation as _0x66196a,trimHtml as _0x28f8fc,UserView as _0x15bd94,LateFocusButtonView as _0x47319b,getDateTimeFormatter as _0x3e584c,getAllMarkersDomElementsSorted as _0x190f99,sanitizeEditorConfig as _0x52af52}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x3915fe,ModelLiveRange as _0xd7f50,ModelLivePosition as _0x26c143,ViewDowncastWriter as _0x2ea7db}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x53eb21,toWidget as _0x313690}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1b0acd,set as _0x59688e,isEqual as _0x1ccc9c,unset as _0x2ddd1c,omit as Ut}from'es-toolkit/compat';import{Delete as _0x345ded,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x399c1c}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4495bb}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x572c4e{['_enabledCommands'];constructor(_0x3aebfe,_0x3347f6){super(_0x3aebfe),this['_enabledCommands']=_0x3347f6,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 _0x54556c of this['editor']['commands']['commands']())_0x54556c['affectsData']&&!this['_enabledCommands']['has'](_0x54556c)&&_0x54556c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xd617a0 of this['editor']['commands']['commands']())_0xd617a0['affectsData']&&!this['_enabledCommands']['has'](_0xd617a0)&&_0xd617a0['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x572c4e{['_suggestions'];constructor(_0x5e225c,_0x4cc79f){super(_0x5e225c),this['_suggestions']=_0x4cc79f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x154e62){const _0x2d9f5=this['_suggestions']['get'](_0x154e62);if(!_0x2d9f5)throw new _0x30e493('track-changes-accept-suggestion-not-found',this);const _0x2d01bf=_0x2d9f5['getRanges']();this['editor']['model']['canEditAt'](_0x2d01bf)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2d9f5);}}class M extends _0x572c4e{['_suggestions'];constructor(_0x805c6e,_0x16e4a5){super(_0x805c6e),this['_suggestions']=_0x16e4a5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xbd02a4){const _0x14649a=this['_suggestions']['get'](_0xbd02a4);if(!_0x14649a)throw new _0x30e493('track-changes-discard-suggestion-not-found',this);const _0x472182=_0x14649a['getRanges']();this['editor']['model']['canEditAt'](_0x472182)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x14649a);}}function ls(_0xd880f1,_0x4b51b8){let _0x125340='';return _0x125340+=_0xd880f1['split']('*')['map']((_0x7ab5ac,_0x130354)=>_0x130354%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x7ab5ac)+'</span>':Yt(_0x7ab5ac))['join'](''),_0x4b51b8&&(_0x125340+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4b51b8['value']+'\x22\x20title=\x22'+_0x4b51b8['title']+'\x22></span>'),_0x125340;}function Yt(_0x219aac){const _0x4e8679=document['createElement']('span');return _0x4e8679['innerText']=_0x219aac,_0x4e8679['innerHTML'];}function ts(_0x4bde43){return _0x4bde43['sort']((_0x5e4a37,_0x4edc47)=>'attribute'===_0x5e4a37['type']&&'attribute'!==_0x4edc47['type']?-0x1:'attribute'!==_0x5e4a37['type']&&'attribute'===_0x4edc47['type']?0x1:'deletion'==_0x5e4a37['type']&&'deletion'!=_0x4edc47['type']?-0x1:'deletion'!=_0x5e4a37['type']&&'deletion'==_0x4edc47['type']?0x1:0x0);}function to(_0x71f117,_0x38d96c){let _0xeffb33,_0x3ece85=0x0;const _0x248acd=[],_0x46a49d=_0x38d96c['schema'];for(;_0x3ece85<_0x71f117['length'];){const _0x326467=_0x71f117[_0x3ece85],_0x37afee=_0x71f117[_0x3ece85+0x1];_0xeffb33||(_0xeffb33=_0x38d96c['createPositionBefore'](_0x326467)),Zt(_0x38d96c,_0x326467,_0x37afee)||(_0x248acd['push'](_0x38d96c['createRange'](_0xeffb33,_0x46a49d['isObject'](_0x326467)?_0x38d96c['createPositionAfter'](_0x326467):_0x38d96c['createPositionAt'](_0x326467,'end'))),_0xeffb33=null),_0x3ece85++;}return _0x248acd;}function Zt(_0x543a05,_0x259a61,_0x260dfd){if(!_0x260dfd)return!0x1;const _0x4bd4a8=_0x543a05['createPositionAfter'](_0x259a61),_0x39dfab=_0x543a05['createPositionBefore'](_0x260dfd);return _0x4bd4a8['isTouching'](_0x39dfab);}function rs(_0x9d28d0,_0x1b1ad3,_0x859380){for(;_0x859380['length'];){const _0x5f0c7d=_0x859380['splice'](0x0,0x64);_0x9d28d0['change'](()=>{for(const _0x1fd15f of _0x5f0c7d)_0x1fd15f['isInContent']&&_0x1b1ad3['execute'](_0x1fd15f['id']);});}}class $ extends _0x572c4e{['_command'];['_suggestions'];constructor(_0x1c4f3e,_0x78848b,_0x2acee9){super(_0x1c4f3e),this['_command']=_0x78848b,this['_suggestions']=_0x2acee9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5879a1=Array['from'](this['_suggestions']['values']())['some'](_0x21e365=>_0x21e365['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5879a1;}['execute'](){const _0x1ead51=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3dc2d5 of _0x1ead51){const _0x1581f2=_0x3dc2d5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1581f2))return;}rs(this['editor']['model'],this['_command'],_0x1ead51);}}class B extends _0x572c4e{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5e6463,_0x5d3ebc,_0x45410b){super(_0x5e6463),this['_command']=_0x5d3ebc,this['_suggestions']=_0x45410b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x485611=this['editor']['model']['document']['selection'],_0x58d81b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4f55c3,_0x5db013){const _0x51ea5f=Array['from'](_0x4f55c3['getRanges']()),_0x434222=new Set();for(const _0x275498 of _0x5db013)if(_0x275498['isInContent']){for(const _0x3d0ef5 of _0x51ea5f)for(const _0x4841be of _0x275498['getRanges']())(_0x3d0ef5['isIntersecting'](_0x4841be)||_0x4f55c3['isCollapsed']&&!_0x275498['isMultiRange']&&_0x275498['next']&&_0x4841be['end']['isTouching'](_0x3d0ef5['start']))&&_0x434222['add'](_0x275498);}return _0x434222;}(_0x485611,_0x58d81b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x20be62=ts(Array['from'](this['_selectedSuggestions']));for(const _0xe62b34 of _0x20be62){const _0x5cb27c=_0xe62b34['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5cb27c))return;}rs(this['editor']['model'],this['_command'],_0x20be62);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x30d850(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4fd7bf,_0x5ceb8a){super(),this['id']=_0x5ceb8a['id'],this['type']=_0x5ceb8a['type'],this['subType']=_0x5ceb8a['subType']||null,this['author']=_0x5ceb8a['author'],this['creator']=_0x5ceb8a['creator']||_0x5ceb8a['author'],this['isExternal']=Boolean(_0x5ceb8a['attributes']&&_0x5ceb8a['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5ceb8a['originalSuggestionId']||null,this['_model']=_0x4fd7bf,this['_onAccept']=_0x5ceb8a['onAccept'],this['_onDiscard']=_0x5ceb8a['onDiscard'],this['_onAttributesChange']=_0x5ceb8a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5ceb8a['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 _0x11fb46=this;for(;_0x11fb46['previous'];)_0x11fb46=_0x11fb46['previous'];return _0x11fb46;}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'](_0x590366){this['_markerNames']['add'](_0x590366);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x24701e=>this['_model']['markers']['get'](_0x24701e))['filter'](_0x36be41=>_0x36be41);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x59c41b=>{for(const _0x43709e of this['getMarkers']())_0x59c41b['removeMarker'](_0x43709e);}),this['_markerNames']['clear']();}['removeMarker'](_0x46199a){this['_model']['change'](_0x4bba60=>{_0x4bba60['removeMarker'](_0x46199a);}),this['_markerNames']['delete'](_0x46199a);}['addRange'](_0x438f6f){const _0x54f751='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x54f751),this['_model']['change'](_0x510e5f=>{_0x510e5f['addMarker'](_0x54f751,{'range':_0x438f6f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4b647e){for(const _0x3b73b3 of this['getRanges']())if(_0x3b73b3['isIntersecting'](_0x4b647e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x296cd3=>_0x296cd3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3f1281,_0x1cc76b)=>[..._0x3f1281,..._0x1cc76b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1a1979=this['getRanges']();if(0x1!=_0x1a1979['length'])return null;const _0x340357=_0x1a1979[0x0],_0x4c0c1b=_0x340357['start']['nodeAfter'],_0x15b379=_0x340357['end']['nodeBefore'];return _0x4c0c1b instanceof _0x3915fe?_0x4c0c1b!=_0x15b379?null:_0x4c0c1b: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 _0x1b6e28=[];let _0x2d297c=this['head'];for(;_0x2d297c;)_0x1b6e28['push'](_0x2d297c),_0x2d297c=_0x2d297c['next'];return _0x1b6e28;}['setAttribute'](_0x2ffbf6,_0x1988e0){const _0x5b55df=_0x1b0acd(this['attributes']);_0x59688e(_0x5b55df,_0x2ffbf6,_0x1988e0),_0x1ccc9c(_0x5b55df,this['attributes'])||(this['attributes']=_0x5b55df,this['_onAttributesChange'](_0x5b55df));}['removeAttribute'](_0x4f3497){const _0x131235=_0x1b0acd(this['attributes']);_0x2ddd1c(_0x131235,_0x4f3497),_0x1ccc9c(_0x131235,this['attributes'])||(this['attributes']=_0x131235,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 _0x4bb6e6()['substr'](0x1,0x5);}}function o(_0x4a6195,_0x248af5,_0x5d4373){const _0x1be950=_0x4a6195['t'],t=_0x4a6195['t'];switch(_0x248af5){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',_0x5d4373);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5d4373);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5d4373);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5d4373);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5d4373);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',_0x5d4373);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5d4373);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',_0x5d4373);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5d4373);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5d4373);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5d4373);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5d4373);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5d4373);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5d4373);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5d4373);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5d4373);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5d4373);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5d4373);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5d4373);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5d4373);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5d4373);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5d4373);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5d4373);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5d4373);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5d4373);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'},_0x5d4373);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5d4373);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5d4373);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5d4373);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5d4373);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5d4373);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5d4373);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5d4373);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'},_0x5d4373);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5d4373);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5d4373);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5d4373);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5d4373);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'},_0x5d4373);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5d4373);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'},_0x5d4373);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5d4373);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5d4373);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'},_0x5d4373);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5d4373);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'},_0x5d4373);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5d4373);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5d4373);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'},_0x5d4373);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5d4373);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 _0x1be950({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5d4373);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1be950({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5d4373);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5d4373);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'},_0x5d4373);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'},_0x5d4373);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'},_0x5d4373);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x248af5;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x534582,_0x46c579){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x534582,this['_locale']=_0x46c579;}['getDescriptions'](_0x593403){const _0x4eacd9=[],_0xf8280f=new Set(),_0x20f06b=new Set();for(let _0x21e33f=0x0;_0x21e33f<_0x593403['length'];_0x21e33f++){const _0x308d02=_0x593403[_0x21e33f];if(!_0x308d02['isInContent'])continue;const _0x4eadf2=this['_handleCustomCallbackDescription'](_0x308d02);if(_0x4eadf2){if(null!=_0x308d02['subType']){if(_0xf8280f['has'](_0x308d02['subType']))continue;_0xf8280f['add'](_0x308d02['subType']);}_0x4eacd9['push'](_0x4eadf2);}else{if('attribute'==_0x308d02['type']){const _0x416949=_0x308d02['data']['key'];if(_0x20f06b['has'](_0x416949))continue;_0x20f06b['add'](_0x308d02['data']['key']),_0x416949==m?this['_handleRenameSuggestionDescription'](_0x4eacd9,_0x308d02):this['_handleAttributeSuggestionDescription'](_0x4eacd9,_0x308d02);continue;}'insertion'!=_0x308d02['type']&&'deletion'!=_0x308d02['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4eacd9,_0x308d02,_0x593403[_0x21e33f+0x1]);}}return this['_resolveDescriptionItems'](_0x4eacd9);}['registerDescriptionCallback'](_0x1137d0){this['_customCallbacks']['push'](_0x1137d0);}['registerElementLabel'](_0x1cc79e,_0x59c5dd,_0x1fbf65=_0x2048ff['normal']){'function'==typeof _0x1cc79e?_0x1b416a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1cc79e,'label':_0x59c5dd,'priority':_0x1fbf65}):this['_itemLabels']['set'](_0x1cc79e,_0x59c5dd);}['registerAttributeLabel'](_0x447a2c,_0x248c8b){this['_attributeLabels']['set'](_0x447a2c,_0x248c8b);}['getItemLabel'](_0x34dae5,_0x398958=0x1){let _0x109067;for(const _0x1eaed5 of this['_itemLabelsCallbacks'])if(_0x1eaed5['matchingCallback'](_0x34dae5)){_0x109067=_0x1eaed5['label'];break;}return _0x109067||(_0x109067=this['_itemLabels']['get'](_0x34dae5['name'])),_0x109067?_0x109067(_0x398958):0x1!==_0x398958?_0x398958+'\x20'+_0x34dae5['name']+'s':''+_0x34dae5['name'];}['_addDescriptionItems'](_0x58e95f,_0x389798){const _0x41af30=_0x389798['getFirstRange']()['getWalker'](),_0x2f995c='insertion'==_0x389798['type']?'add':'remove';for(const _0x3f9cf2 of _0x41af30){const _0xa07006=_0x3f9cf2['item'],_0xd5a091=_0x58e95f[_0x58e95f['length']-0x1];if(_0xa07006['is']('$textProxy'))_0xd5a091&&_0xd5a091['type']['indexOf']('Container')>-0x1&&_0x58e95f['pop'](),_0xd5a091&&'text'==_0xd5a091['type']?_0xd5a091[_0x2f995c]+=_0xa07006['data']:_0x58e95f['push']({'type':'text','add':'add'==_0x2f995c?_0xa07006['data']:'','remove':'remove'==_0x2f995c?_0xa07006['data']:''});else{if(this['_schema']['isObject'](_0xa07006)){const _0x424715=_0xa07006;if(_0xd5a091&&_0xd5a091['type']['indexOf']('Container')>-0x1&&_0x58e95f['pop'](),'elementEnd'==_0x3f9cf2['type'])continue;_0xd5a091&&_0xd5a091['type']==_0x2f995c+'Object'&&_0xd5a091['element']['name']==_0x424715['name']?_0xd5a091['quantity']++:_0x58e95f['push']({'type':_0x2f995c+'Object','element':_0x424715,'quantity':0x1}),_0x41af30['skip'](_0x588fa5=>!('elementEnd'==_0x588fa5['type']&&_0x588fa5['item']==_0xa07006));}else{if(this['_schema']['checkChild'](_0xa07006,'$text')||_0xa07006['is']('element','softBreak')){const _0x124213=_0xa07006;if('add'==_0x2f995c&&'elementStart'==_0x3f9cf2['type']||'remove'==_0x2f995c&&'elementEnd'==_0x3f9cf2['type'])continue;if(_0xd5a091&&-0x1==_0xd5a091['type']['indexOf']('Container')){'text'==_0xd5a091['type']&&(_0xd5a091[_0x2f995c]+='\x0a');continue;}let _0x214167;if(_0x214167='add'==_0x2f995c?_0x124213['nextSibling']&&!this['_schema']['isObject'](_0x124213['nextSibling'])?_0x124213['nextSibling']:null:_0x124213['previousSibling']&&!this['_schema']['isObject'](_0x124213['previousSibling'])?_0x124213['previousSibling']:null,_0x124213['isEmpty']||_0x214167&&_0x214167['isEmpty']){const _0x5b1183=_0x214167&&_0x214167['isEmpty']?_0x214167:_0x124213;_0xd5a091&&_0xd5a091['type']==_0x2f995c+'EmptyContainer'&&_0xd5a091['element']['name']==_0x5b1183['name']?_0xd5a091['quantity']++:_0x58e95f['push']({'type':_0x2f995c+'EmptyContainer','element':_0x5b1183,'quantity':0x1});}else _0x58e95f['push']({'type':_0x2f995c+'Container','element':_0x124213});}}}}}['_resolveDescriptionItems'](_0x3d8cb7){const _0x1f56ec=this['_locale'],_0x23ab24=[],_0x9bae65=[],_0x2b42f1=[];for(const _0x29a1c7 of _0x3d8cb7)switch(_0x29a1c7['type']){case'text':if(_0x29a1c7['add']=_0x29a1c7['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x29a1c7['remove']=_0x29a1c7['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x29a1c7['add']&&''!=_0x29a1c7['remove']){_0x23ab24['push']({'type':'replace','content':o(_0x1f56ec,'REPLACE_TEXT',['\x22'+_0x29a1c7['remove']+'\x22','\x22'+_0x29a1c7['add']+'\x22'])});continue;}if(null!=_0x29a1c7['add']['match'](/^ +$/)){_0x23ab24['push']({'type':'insertion','content':o(_0x1f56ec,'*Insert:*\x20%0',o(_0x1f56ec,'ELEMENT_SPACE',_0x29a1c7['add']['length']))});continue;}if(null!=_0x29a1c7['remove']['match'](/^ +$/)){_0x23ab24['push']({'type':'deletion','content':o(_0x1f56ec,'*Remove:*\x20%0',o(_0x1f56ec,'ELEMENT_SPACE',_0x29a1c7['remove']['length']))});continue;}if(''!=_0x29a1c7['add']){_0x23ab24['push']({'type':'insertion','content':o(_0x1f56ec,'*Insert:*\x20%0','\x22'+_0x29a1c7['add']+'\x22')});continue;}_0x23ab24['push']({'type':'deletion','content':o(_0x1f56ec,'*Remove:*\x20%0','\x22'+_0x29a1c7['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x23ab24['push']({'type':'insertion','content':o(_0x1f56ec,'*Insert:*\x20%0',this['getItemLabel'](_0x29a1c7['element'],_0x29a1c7['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x23ab24['push']({'type':'deletion','content':o(_0x1f56ec,'*Remove:*\x20%0',this['getItemLabel'](_0x29a1c7['element'],_0x29a1c7['quantity']))});continue;case'addContainer':_0x23ab24['push']({'type':'insertion','content':o(_0x1f56ec,'*Split:*\x20%0',this['getItemLabel'](_0x29a1c7['element'],_0x29a1c7['quantity']))});continue;case'removeContainer':_0x23ab24['push']({'type':'deletion','content':o(_0x1f56ec,'*Merge:*\x20%0',this['getItemLabel'](_0x29a1c7['element'],_0x29a1c7['quantity']))});continue;case'addFormat':_0x9bae65['push'](_0x29a1c7['key']);continue;case'removeFormat':_0x2b42f1['push'](_0x29a1c7['key']);continue;default:_0x23ab24['push'](_0x29a1c7);}if(_0x9bae65['length']){const _0x27b06d=_0x9bae65['map'](_0x5c787d=>this['_attributeLabels']['has'](_0x5c787d)?this['_attributeLabels']['get'](_0x5c787d):_0x5c787d)['join'](',\x20');_0x23ab24['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x27b06d)});}if(_0x2b42f1['length']){const _0x308374=_0x2b42f1['map'](_0x4d7ea6=>this['_attributeLabels']['has'](_0x4d7ea6)?this['_attributeLabels']['get'](_0x4d7ea6):_0x4d7ea6)['join'](',\x20');_0x23ab24['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x308374)});}return _0x23ab24;}['_handleCustomCallbackDescription'](_0x8b48b8){for(const _0x6057fe of this['_customCallbacks']){const _0x379180=_0x6057fe(_0x8b48b8);if(_0x379180&&'type'in _0x379180)return _0x379180;}}['_handleAttributeSuggestionDescription'](_0x21255c,_0x26c499){const _0x134e06=_0x26c499['data'],_0x4f8013=void 0x0===_0x134e06['newValue']?'removeFormat':'addFormat';_0x21255c['push']({'type':_0x4f8013,'key':_0x134e06['key']});}['_handleRenameSuggestionDescription'](_0x9fb1f1,_0x4c4646){_0x9fb1f1['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4c4646['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x177a94,_0x7da3f9,_0x3afb56){if(this['_addDescriptionItems'](_0x177a94,_0x7da3f9),_0x3afb56&&_0x3afb56['getFirstRange']()&&!_0x7da3f9['getFirstRange']()['end']['isEqual'](_0x3afb56['getFirstRange']()['start'])){const _0x2fd1e7=_0x177a94[_0x177a94['length']-0x1],_0x586f08='insertion'==_0x7da3f9['type']?'add':'remove';_0x2fd1e7&&'text'==_0x2fd1e7['type']&&(_0x2fd1e7[_0x586f08]+='\x0a');}}}class O extends _0x2bddd5{['afterInit'](){const _0x21b7ad=this['editor'],_0x16ced1=_0x21b7ad['plugins']['get']('TrackChangesEditing');_0x21b7ad['commands']['get']('showAIAssistant')&&_0x16ced1['enableCommand']('showAIAssistant');}}class E extends _0x2bddd5{['afterInit'](){const _0x2c7842=this['editor'],_0x448ebc=_0x2c7842['locale'];if(!_0x2c7842['plugins']['has']('AlignmentEditing'))return;const _0x25c867=_0x2c7842['plugins']['get']('TrackChangesEditing');_0x25c867['enableDefaultAttributesIntegration']('alignment'),_0x25c867['registerBlockAttribute']('alignment'),_0x25c867['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x448ebc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x390d39=this['editor'],_0x48d314=_0x390d39['locale'];_0x390d39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45d4f5=>{if('formatBlock'!=_0x45d4f5['type'])return;const {data:_0x5e13cf}=_0x45d4f5;if(_0x5e13cf&&'alignment'==_0x5e13cf['commandName']){const _0x2300b9=_0x5e13cf['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x48d314,'*Format:*\x20%0',function(_0x2e054b){switch(_0x2e054b){case'left':return o(_0x48d314,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x48d314,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x48d314,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x48d314,'FORMAT_JUSTIFY_TEXT');}}(_0x2300b9))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x2bddd5{['afterInit'](){const _0x51b173=this['editor'],_0x2da3cb=_0x51b173['plugins']['get']('TrackChangesEditing'),_0x20f9aa=_0x51b173['locale'];for(const _0x59afa2 of ti){if(!_0x51b173['plugins']['has'](_0x59afa2))continue;const _0x218519=_0x59afa2['slice'](0x0,-0x7)['toLowerCase'](),_0x314f11='FORMAT_'+_0x218519['toUpperCase']();_0x2da3cb['enableDefaultAttributesIntegration'](_0x218519),_0x2da3cb['registerInlineAttribute'](_0x218519),_0x2da3cb['descriptionFactory']['registerAttributeLabel'](_0x218519,o(_0x20f9aa,_0x314f11));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e8af6=this['editor'],_0x1fb71c=_0x4e8af6['locale'],_0x158ee4=_0x4e8af6['plugins']['get']('TrackChangesEditing');function _0x578288(_0x5f0132,_0x28a0d4){_0x158ee4['descriptionFactory']['registerDescriptionCallback'](_0x34efcc=>{if('formatInline'!=_0x34efcc['type'])return;const {data:_0x12f95e}=_0x34efcc;return _0x12f95e&&_0x12f95e['commandName']===_0x5f0132?_0x12f95e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1fb71c,'*Format:*\x20%0',_0x28a0d4)}:{'type':'format','content':o(_0x1fb71c,'*Remove\x20format:*\x20%0',_0x28a0d4)}:void 0x0;});}_0x578288('bold',o(_0x1fb71c,'FORMAT_BOLD')),_0x578288('italic',o(_0x1fb71c,'FORMAT_ITALIC')),_0x578288('underline',o(_0x1fb71c,'FORMAT_UNDERLINE')),_0x578288('code',o(_0x1fb71c,'FORMAT_CODE')),_0x578288('strikethrough',o(_0x1fb71c,'FORMAT_STRIKETHROUGH')),_0x578288('subscript',o(_0x1fb71c,'FORMAT_SUBSCRIPT')),_0x578288('superscript',o(_0x1fb71c,'FORMAT_SUPERSCRIPT'));}}class U extends _0x2bddd5{['afterInit'](){const _0x488af8=this['editor'],_0x1c8e76=_0x488af8['locale'];if(!_0x488af8['plugins']['has']('BlockQuoteEditing'))return;const _0x3b3c56=_0x488af8['plugins']['get']('TrackChangesEditing'),_0x1c9fa6=this['editor']['commands']['get']('blockQuote');_0x3b3c56['enableCommand']('blockQuote',(_0x4936b6,_0x8ff05c={})=>{const _0x5c3112=this['editor']['model']['document']['selection'],_0x3926b5=_0x8ff05c&&void 0x0!==_0x8ff05c['forceValue']?_0x8ff05c['forceValue']:!_0x1c9fa6['value'];let _0x59c088=[];if(_0x3926b5){const _0x156310=Array['from'](_0x5c3112['getSelectedBlocks']())['filter'](_0x3d71df=>oo(_0x3d71df)||function(_0x4d0ffd,_0x142e6a){const _0x439b18=_0x142e6a['checkChild'](_0x4d0ffd['parent'],'blockQuote'),_0x4976ce=_0x142e6a['checkChild'](['$root','blockQuote'],_0x4d0ffd);return _0x439b18&&_0x4976ce;}(_0x3d71df,this['editor']['model']['schema']));_0x59c088=to(_0x156310,_0x488af8['model']);}else{const _0x256617=Array['from'](_0x5c3112['getSelectedBlocks']())['filter'](_0x2254a2=>oo(_0x2254a2));_0x59c088=to(_0x256617,_0x488af8['model']);}_0x488af8['model']['change'](()=>{for(const _0x1a2572 of _0x59c088)_0x3b3c56['markBlockFormat'](_0x1a2572,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3926b5}]});});}),_0x3b3c56['descriptionFactory']['registerDescriptionCallback'](_0x30d1e1=>{const {data:_0x48735d}=_0x30d1e1;if(_0x48735d&&'blockQuote'==_0x48735d['commandName']){const _0x564c71=o(_0x1c8e76,'ELEMENT_BLOCK_QUOTE');return _0x48735d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c8e76,'*Set\x20format:*\x20%0',_0x564c71)}:{'type':'format','content':o(_0x1c8e76,'*Remove\x20format:*\x20%0',_0x564c71)};}});}}function oo(_0x446309){return'blockQuote'==_0x446309['parent']['name'];}class V extends _0x2bddd5{['afterInit'](){const _0x3a6014=this['editor'],_0x8753a8=_0x3a6014['locale'],_0x21f2e7=_0x3a6014['plugins']['get']('TrackChangesEditing');_0x3a6014['plugins']['has']('BookmarkEditing')&&(_0x21f2e7['enableCommand']('insertBookmark'),_0x21f2e7['enableDefaultAttributesIntegration']('updateBookmark'),_0x21f2e7['registerBlockAttribute']('bookmarkId'),_0x21f2e7['descriptionFactory']['registerDescriptionCallback'](_0x20fb18=>{if('insertion'!=_0x20fb18['type']&&'deletion'!=_0x20fb18['type']&&'attribute'!=_0x20fb18['type'])return;const _0x55d11b=_0x20fb18['getContainedElement']();if(null==_0x55d11b)return;if(!_0x55d11b['is']('element','bookmark'))return;const _0x376309=_0x55d11b['getAttribute']('bookmarkId');if('insertion'==_0x20fb18['type'])return{'type':'insertion','content':o(_0x8753a8,'*Insert:*\x20%0','\x22'+_0x376309+'\x22\x20'+o(_0x8753a8,'ELEMENT_BOOKMARK'))};if('deletion'==_0x20fb18['type'])return{'type':'deletion','content':o(_0x8753a8,'*Remove:*\x20%0','\x22'+_0x376309+'\x22\x20'+o(_0x8753a8,'ELEMENT_BOOKMARK'))};const {data:_0x4ac8cc}=_0x20fb18;if(!_0x4ac8cc||'bookmarkId'!=_0x4ac8cc['key'])return;return{'type':'format','content':o(_0x8753a8,'*Set\x20bookmark:*\x20%0','\x22'+_0x4ac8cc['newValue']+'\x22')};}));}}class F extends _0x2bddd5{['afterInit'](){const _0x455c7e=this['editor'];_0x455c7e['plugins']['has']('CaseChange')&&(_0x455c7e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x455c7e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x455c7e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x2bddd5{['afterInit'](){const _0x410c9e=this['editor'];_0x410c9e['commands']['get']('ckbox')&&_0x410c9e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x2bddd5{['afterInit'](){const _0x2459d3=this['editor'];if(!_0x2459d3['plugins']['has']('CodeBlock'))return;const _0x1b4406=_0x2459d3['plugins']['get']('TrackChangesEditing'),_0x26f25a=_0x2459d3['locale'],_0x63f5db=_0x2459d3['config']['get']('codeBlock')['languages'],_0x3224fb=_0x2459d3['commands']['get']('codeBlock');_0x1b4406['enableCommand']('indentCodeBlock'),_0x1b4406['enableCommand']('outdentCodeBlock'),_0x1b4406['enableCommand']('codeBlock',(_0x66f479,_0x2c6cb3={})=>{const _0x74f1ff=_0x2459d3['model'],_0x45a2df=_0x2459d3['model']['document']['selection'],_0x2280e4=_0x2c6cb3&&void 0x0!==_0x2c6cb3['forceValue']?_0x2c6cb3['forceValue']:!_0x3224fb['value'];let _0xad1dc7;_0x2c6cb3['language']||(_0x2c6cb3['language']=_0x63f5db[0x0]['language']),_0xad1dc7=_0x2280e4?Array['from'](_0x45a2df['getSelectedBlocks']())['filter'](_0x48633f=>co(_0x48633f)||function(_0x5126c7,_0x2c3b25){if(_0x5126c7['is']('rootElement')||_0x2c3b25['isLimit'](_0x5126c7))return!0x1;return _0x2c3b25['checkChild'](_0x5126c7['parent'],'codeBlock');}(_0x48633f,_0x74f1ff['schema'])):Array['from'](_0x45a2df['getSelectedBlocks']())['filter'](_0x1eb124=>co(_0x1eb124));const _0x305435=to(_0xad1dc7,_0x74f1ff);_0x74f1ff['change'](()=>{for(const _0x4e9bef of _0x305435)_0x1b4406['markBlockFormat'](_0x4e9bef,{'commandName':'codeBlock','commandParams':[{..._0x2c6cb3,'forceValue':_0x2280e4}],'formatGroupId':'blockName'});});}),(_0x1b4406['descriptionFactory']['registerElementLabel']('codeBlock',_0xbac78c=>o(_0x26f25a,'ELEMENT_CODE_BLOCK',_0xbac78c)),_0x1b4406['descriptionFactory']['registerDescriptionCallback'](_0x5377ad=>{if('formatBlock'!=_0x5377ad['type'])return;const _0x88d5a1=_0x26f25a['t'],{data:_0x3b350d}=_0x5377ad;if(!_0x3b350d||'codeBlock'!=_0x3b350d['commandName'])return;const _0x4bbebe=_0x3b350d['commandParams'][0x0]['language'],_0x524242=_0x88d5a1(_0x63f5db['find'](_0x103227=>_0x103227['language']===_0x4bbebe)['label'])['toLowerCase']();return _0x3b350d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26f25a,'*Set\x20format:*\x20%0',o(_0x26f25a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x524242+')')}:{'type':'format','content':o(_0x26f25a,'*Remove\x20format:*\x20%0',o(_0x26f25a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0xa89abb){return'codeBlock'==_0xa89abb['name'];}class J extends _0x2bddd5{['afterInit'](){const _0x206cc3=this['editor'];if(!_0x206cc3['plugins']['has']('CommentsEditing'))return;_0x206cc3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2836f2,_0x5c3c09,_0x3d7cab){const _0x14848a=[];for(const _0x461311 of _0x5c3c09['getItems']())_0x461311['hasAttribute'](_0x2836f2)&&_0x14848a['push'](_0x3d7cab['createRangeOn'](_0x461311));return _0x14848a;}function De(_0x14c6ee,_0x58dbf1,{showActiveMarker:_0x4b6b8f=!0x0}={}){const _0x5dbc52=_0x14c6ee['plugins']['get']('TrackChangesEditing');return(_0x4d3821,_0x3f51b0,_0x4a9eda)=>{if(!_0x4a9eda['consumable']['test'](_0x3f51b0['markerRange'],_0x4d3821['name']))return;const _0x261093=_0x3f51b0['markerRange']['getWalker'](),_0x15d94c=_0x3f51b0['markerRange']['start'],_0x393f32=_0x14c6ee['model']['schema'];let _0x450932=null,_0x55a8a2=null,_0x5e89dd=!0x1,_0x5b3e8e=!0x1;for(const _0x50f5aa of _0x261093){const _0x2afd34=_0x50f5aa['item'];_0x5e89dd=_0x5e89dd||_0x393f32['isContent'](_0x2afd34);const _0x391fd8=_0x4a9eda['mapper']['toViewElement'](_0x2afd34);if(_0x391fd8&&_0x391fd8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x50f5aa['type']&&(_0x393f32['isBlock'](_0x2afd34)&&!_0x393f32['isLimit'](_0x2afd34)&&(_0x2afd34['nextSibling']||_0x15d94c['isAtEnd']?_0x450932&&_0x450932['parent']==_0x2afd34||(_0x450932=_0x2afd34,_0x277bda(_0x50f5aa['previousPosition']),_0x5b3e8e=!0x0):_0x55a8a2=_0x55a8a2||_0x50f5aa['previousPosition']));}function _0x277bda(_0x45972e){const {id:_0x7e48f6,authorId:_0x29abe5}=_0x5dbc52['_splitMarkerName'](_0x3f51b0['markerName']),_0x272958=_0x4a9eda['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58dbf1,'data-suggestion':_0x7e48f6,'data-author-id':_0x29abe5}),_0xacb24a=_0x4a9eda['mapper']['toViewPosition'](_0x45972e);_0x4b6b8f&&_0x5dbc52['activeMarkers']['includes'](_0x3f51b0['markerName'])&&_0x4a9eda['writer']['addClass']('ck-suggestion-marker--active',_0x272958),_0x4a9eda['writer']['insert'](_0xacb24a,_0x272958),_0x4a9eda['mapper']['bindElementToMarker'](_0x272958,_0x3f51b0['markerName']);}_0x5e89dd||_0x5b3e8e||!_0x55a8a2||_0x277bda(_0x55a8a2);};}class K extends _0x2bddd5{static get['requires'](){return[_0x345ded];}['init'](){const _0x22f387=this['editor'],_0xcec010=_0x22f387['plugins']['get']('TrackChangesEditing');_0xcec010['enableCommand']('delete');const _0x1dc19f=_0x22f387['commands']['get']('deleteForward');_0xcec010['enableCommand']('deleteForward',(_0x291dab,_0x350f43={})=>{const _0x1daaca=_0x22f387['model']['createSelection'](_0x22f387['model']['document']['selection']);_0x1daaca['isCollapsed']&&_0x22f387['model']['modifySelection'](_0x1daaca,{'direction':'forward','unit':_0x350f43['unit']});const _0x11d2f0=_0x1daaca['getFirstRange'](),_0x394e31=_0xd7f50['fromRange'](_0x11d2f0);let _0x41be95;_0x291dab(_0x350f43),_0x41be95='$graveyard'==_0x394e31['root']['rootName']?_0x22f387['model']['createRange'](_0x11d2f0['start']):_0x22f387['model']['createRange'](_0x394e31['start'],_0x394e31['end']),_0x394e31['detach'](),_0x22f387['model']['enqueueChange'](_0x1dc19f['buffer']['batch'],_0x10d3dc=>{_0x1dc19f['buffer']['lock'](),_0x10d3dc['setSelection'](_0x10d3dc['createRange'](_0x41be95['end'])),_0x1dc19f['buffer']['unlock']();});}),_0x22f387['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x22f387,'merge'),{'priority':'high'}),_0x22f387['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x12f81f,_0x257fcf,_0x370500)=>{_0x370500['options']['showSuggestionHighlights']&&De(_0x22f387,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x12f81f,_0x257fcf,_0x370500);},{'priority':'high'}),_0x22f387['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x307dc3,_0x4f3707,_0x9854b7)=>{const _0x5c754a=_0x9854b7['mapper']['markerNameToElements'](_0x4f3707['markerName']);if(_0x5c754a){for(const _0x433d76 of _0x5c754a)_0x433d76['is']('uiElement')&&(_0x9854b7['mapper']['unbindElementFromMarkerName'](_0x433d76,_0x4f3707['markerName']),_0x9854b7['writer']['remove'](_0x433d76));}},{'priority':'high'});}}class H extends _0x2bddd5{['afterInit'](){const _0x11995d=this['editor'];if(!_0x11995d['plugins']['has']('ListEditing'))return;const _0x3112ec=_0x11995d['locale'],_0x5d4a72=_0x11995d['plugins']['get']('TrackChangesEditing'),_0x5920a5=_0x11995d['plugins']['has']('TodoListEditing'),_0x177e5d=!!_0x11995d['config']['get']('list.multiBlock');function _0x4b22e0(_0x2ab2f0){return{'type':'format','content':''+o(_0x3112ec,'*Set\x20format:*\x20%0',_0x2ab2f0)};}function _0x2b89fa(_0x5e4d30){return{'type':'format','content':''+o(_0x3112ec,'*Remove\x20format:*\x20%0',_0x5e4d30)};}_0x5d4a72['enableDefaultAttributesIntegration']('numberedList'),_0x5d4a72['enableDefaultAttributesIntegration']('bulletedList'),_0x5d4a72['enableDefaultAttributesIntegration']('customNumberedList'),_0x5d4a72['enableDefaultAttributesIntegration']('customBulletedList'),_0x5d4a72['enableDefaultAttributesIntegration']('indentList'),_0x5d4a72['enableDefaultAttributesIntegration']('outdentList'),_0x5d4a72['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5d4a72['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5d4a72['registerBlockAttribute']('listItemId'),_0x5d4a72['registerBlockAttribute']('listType'),_0x5d4a72['registerBlockAttribute']('listIndent'),_0x177e5d&&(_0x5d4a72['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5d4a72['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5920a5&&(_0x5d4a72['enableDefaultAttributesIntegration']('todoList'),_0x5d4a72['enableDefaultAttributesIntegration']('checkTodoList'),_0x5d4a72['registerBlockAttribute']('todoListChecked'),_0x5d4a72['descriptionFactory']['registerDescriptionCallback'](_0x3ed958=>{const {data:_0x26268e}=_0x3ed958;if(_0x26268e&&'todoListChecked'==_0x26268e['key'])return{'type':'format','content':_0x26268e['newValue']?o(_0x3112ec,'*Check\x20item*'):o(_0x3112ec,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5d7789=>{if(_0x5d7789['batch']['isUndo'])return!0x1;let _0x4b67ce=!0x1;const _0x5567fe=_0x5d4a72['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11da88=>'todoListChecked'===_0x5d4a72['_getAttributeKey'](_0x11da88));for(const _0x5405b7 of _0x5567fe){'todo'!=_0x5405b7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5d4a72['_findSuggestions'](_0x5405b7['getFirstRange'](),'attribute')['find'](_0x5cd7dd=>'listType'===_0x5d4a72['_getAttributeKey'](_0x5cd7dd['suggestion']))||(_0x5d7789['removeMarker'](_0x5405b7['getFirstMarker']()),_0x4b67ce=!0x0));}return _0x4b67ce;})),_0x5d4a72['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3112ec,'FORMAT_INDENT'));const _0x2bf207={'type':'format','content':''};_0x5d4a72['descriptionFactory']['registerDescriptionCallback'](_0x154d96=>{const {data:_0x5e8ea2}=_0x154d96;if(!_0x5e8ea2||'listType'!=_0x5e8ea2['key'])return;let _0x2a948e=_0x154d96['head'];for(;_0x2a948e;){if(_0x2a948e['data']&&(('listStyle'==_0x2a948e['data']['key']||'listMarkerStyle'==_0x2a948e['data']['key'])&&(_0x2a948e['data']['newValue']&&'default'!=_0x2a948e['data']['newValue']||'default'!=_0x2a948e['data']['oldValue']&&!_0x5e8ea2['newValue'])||!_0x177e5d&&_0x2a948e['data']['key']==m))return _0x2bf207;_0x2a948e=_0x2a948e['next'];}if(null==_0x5e8ea2['newValue'])switch(_0x5e8ea2['oldValue']){case'bulleted':return _0x2b89fa(o(_0x3112ec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b89fa(o(_0x3112ec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b89fa(o(_0x3112ec,'ELEMENT_TODO_LIST'));}switch(_0x5e8ea2['newValue']){case'bulleted':return _0x4b22e0(o(_0x3112ec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b22e0(o(_0x3112ec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b22e0(o(_0x3112ec,'ELEMENT_TODO_LIST'));}}),_0x5d4a72['descriptionFactory']['registerDescriptionCallback'](_0x570a39=>{const {data:_0x1fe709}=_0x570a39;if(_0x1fe709&&'listIndent'==_0x1fe709['key'])return null==_0x1fe709['newValue']||null==_0x1fe709['oldValue']&&0x0==_0x1fe709['newValue']?_0x2bf207:void 0x0;}),_0x5d4a72['descriptionFactory']['registerDescriptionCallback'](_0x3cb267=>{if('attribute'!=_0x3cb267['type'])return;const {data:_0x173f67}=_0x3cb267;if(!_0x173f67||'listItemId'!=_0x173f67['key'])return;const _0x39ecd1=Te(_0x3cb267);return'newValue'==_0x39ecd1?{'type':'format','content':o(_0x3112ec,'*Merge:*\x20list\x20item')}:'oldValue'==_0x39ecd1?{'type':'format','content':o(_0x3112ec,'*Split:*\x20list\x20item')}:_0x2bf207;}),_0x11995d['model']['document']['registerPostFixer'](_0x3d0ba1=>this['listItemIdFixer'](_0x3d0ba1)),_0x11995d['model']['document']['registerPostFixer'](_0x24a3d5=>this['noTrackChangesFixer'](_0x24a3d5)),_0x11995d['model']['document']['on']('change:data',(_0x73e8c2,_0x259d85)=>{if(_0x259d85['isUndo']||!_0x259d85['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x388fbd){if(_0x388fbd['batch']['isUndo']||!_0x388fbd['batch']['isLocal'])return!0x1;let _0x1964df=!0x1;const _0x53f05a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48fbef=>_0x48fbef['data']&&'listItemId'==_0x48fbef['data']['key'])['filter'](_0x26aa1d=>_0x26aa1d['data']['newValue']&&_0x26aa1d['data']['oldValue']);for(const _0x29ee34 of _0x53f05a)Te(_0x29ee34)||(_0x388fbd['removeMarker'](_0x29ee34['getFirstMarker']()),_0x1964df=!0x0);return _0x1964df;}['noTrackChangesFixer'](_0x337017){if(_0x337017['batch']['isUndo']||!_0x337017['batch']['isLocal'])return!0x1;const _0x520d7b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x520d7b['trackChangesCommand']['value'])return!0x1;let _0x2c130e=!0x1;const _0x136fcf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2549a9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3214ce=>'attribute'==_0x3214ce['type'])['filter'](_0x3d56ea=>_0x136fcf['includes'](_0x3d56ea['attributeKey']));if(0x0==_0x2549a9['length'])return _0x2c130e;for(const _0x2cfac2 of _0x2549a9){const _0x7ab487=_0x520d7b['_findSuggestions'](_0x2cfac2['range'],'attribute')['filter'](_0x2c0108=>!_0x2c0108['meta']['isNextTo'])['map'](_0x212fbc=>_0x212fbc['suggestion'])['filter'](_0x3eeb68=>{const _0x5bfa5c=_0x520d7b['_getAttributeKey'](_0x3eeb68);return _0x136fcf['includes'](_0x5bfa5c);});if(_0x7ab487['length']){for(const _0x18dc36 of _0x7ab487)_0x337017['removeMarker'](_0x18dc36['getFirstMarker']());_0x2c130e=!0x0;}}return _0x2c130e;}['assureChains'](){const _0x31f099=this['editor']['plugins']['get']('TrackChangesEditing'),_0x393ecb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5051f3;const _0x55e0f3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4c6901=>{if(_0x4c6901['data']['oldRange']||!_0x4c6901['data']['newRange'])return null;if(!_0x4c6901['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x207ab9}=_0x31f099['_splitMarkerName'](_0x4c6901['name']);if(!_0x31f099['hasSuggestion'](_0x207ab9))return null;const _0x4dc647=_0x31f099['getSuggestion'](_0x207ab9);return _0x393ecb['includes'](_0x4dc647['data']['key']);})['map'](_0x5e5461=>{const {id:_0x13ff76}=_0x31f099['_splitMarkerName'](_0x5e5461['name']),_0x42bc93=_0x31f099['getSuggestion'](_0x13ff76);return _0x5051f3=_0x42bc93['attributes']['groupId'],_0x42bc93['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x55e0f3['size'])return;const _0x2d7a8f=_0x31f099['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x337192=>'attribute'==_0x337192['type']&&_0x337192['data']&&_0x393ecb['includes'](_0x337192['data']['key'])&&_0x337192['attributes']['groupId']!=_0x5051f3)['map'](_0x51ccd3=>({'listItem':_0x51ccd3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x51ccd3['attributes']['groupId']})),_0x3b0681=new Set();for(const {groupId:_0x345c78,listItem:_0x2f1749}of _0x2d7a8f)_0x55e0f3['has'](_0x2f1749)&&_0x3b0681['add'](_0x345c78);for(const _0x1f9fe0 of _0x31f099['getSuggestions']())_0x3b0681['has'](_0x1f9fe0['attributes']['groupId'])&&_0x1f9fe0['setAttribute']('groupId',_0x5051f3);}['_supportLegacySuggestions'](){const _0x4a3775=this['editor'],_0x2e783f=_0x4a3775['locale'],_0x2732eb=_0x4a3775['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2732eb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x37f1a5,_0x17b4f6){const _0x18b98f=[];for(let _0x558f74 of _0x37f1a5)_0x558f74['start']['nodeAfter']===_0x558f74['end']['parent']&&(_0x558f74=_0x4a3775['model']['createRange'](_0x4a3775['model']['createPositionAt'](_0x558f74['start']['nodeAfter'],0x0))),_0x18b98f['push'](_0x558f74);_0x4a3775['model']['change'](_0x19717c=>{const _0x460e44=_0x4a3775['model']['document']['selection'],_0x2616cc=Array['from'](_0x460e44['getRanges']())['map'](_0xf13071=>_0xd7f50['fromRange'](_0xf13071));_0x19717c['setSelection'](_0x18b98f),_0x4a3775['commands']['get'](_0x17b4f6['commandName'])['refresh'](),_0x17b4f6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a3775['execute'](_0x17b4f6['commandName'],..._0x17b4f6['commandParams']),_0x19717c['setSelection'](_0x2616cc);for(const _0x1a4bcb of _0x2616cc)_0x1a4bcb['detach']();});}),_0x2732eb['descriptionFactory']['registerElementLabel'](function(_0x8bcdc0){const _0x166611=!_0x4a3775['model']['schema']['isObject'](_0x8bcdc0),_0x36c805=_0x8bcdc0['previousSibling'],_0x4d1a70=_0x8bcdc0['nextSibling'],_0x15865d=_0x8bcdc0['getAttribute']('listItemId'),_0x161a9b=!_0x36c805||_0x36c805['getAttribute']('listItemId')!==_0x15865d,_0x142c64=!_0x4d1a70||_0x4d1a70['getAttribute']('listItemId')!==_0x15865d;return _0x166611&&Boolean(_0x15865d)&&_0x161a9b&&_0x142c64;},_0x56c3d5=>o(_0x2e783f,'ELEMENT_LIST_ITEM',_0x56c3d5));}['_registerLegacyDescription'](){const _0x2c611d=this['editor'],_0x1188bb=_0x2c611d['locale'];function _0x5653ba(_0x158520){const _0x5510e5=_0x2c611d['commands']['get']('bulletedList')['value'],_0x8759e3=_0x2c611d['commands']['get']('numberedList')['value'];return'numberedList'===_0x158520?_0x5510e5:_0x8759e3;}_0x2c611d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x93ff3e){if('formatBlock'!=_0x93ff3e['type'])return;const {data:_0xc4c88d}=_0x93ff3e;if(!_0xc4c88d)return;let _0x1c6f92,_0x24b968,_0x2027f3,_0x1320a2;switch(_0xc4c88d['commandName']){case'bulletedList':_0x2027f3=_0xc4c88d['commandParams'][0x0]['forceValue'],_0x1320a2=_0x5653ba(_0xc4c88d['commandName']),_0x1c6f92=_0x2027f3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1320a2&&_0x2c611d['config']['get']('list.multiBlock')||(_0x1c6f92='*Change\x20to:*\x20%0'),_0x24b968={'type':'format','content':o(_0x1188bb,_0x1c6f92,o(_0x1188bb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2027f3=_0xc4c88d['commandParams'][0x0]['forceValue'],_0x1320a2=_0x5653ba(_0xc4c88d['commandName']),_0x1c6f92=_0x2027f3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1320a2&&_0x2c611d['config']['get']('list.multiBlock')||(_0x1c6f92='*Change\x20to:*\x20%0'),_0x24b968={'type':'format','content':o(_0x1188bb,_0x1c6f92,o(_0x1188bb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c6f92='*Indent:*\x20%0',_0x24b968={'type':'format','content':o(_0x1188bb,_0x1c6f92,o(_0x1188bb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c6f92=function(_0x527547){const _0x1bd6f8=_0x527547['getFirstRange']();let _0xea03a3=_0x1bd6f8['start']['nodeAfter'];for(;_0xea03a3&&_0x1bd6f8['containsItem'](_0xea03a3);){if(_0xea03a3['getAttribute']('listIndent')>0x0)return!0x1;_0xea03a3=_0xea03a3['nextSibling'];}return!0x0;}(_0x93ff3e)?o(_0x1188bb,'*Format:*\x20remove\x20from\x20%0',o(_0x1188bb,function(_0x57a278){return'ELEMENT_'+_0x57a278['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x93ff3e))):o(_0x1188bb,'*Outdent:*\x20%0',o(_0x1188bb,'ELEMENT_LIST_ITEM')),_0x24b968={'type':'format','content':_0x1c6f92};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xc4c88d['multipleBlocks']&&(_0x1c6f92='*Merge:*\x20%0',_0x24b968={'type':'deletion','content':o(_0x1188bb,_0x1c6f92,o(_0x1188bb,'ELEMENT_LIST_ITEM'))});}return _0x24b968;});}}function Te(_0x3c4eae){let _0x108b02=_0x3c4eae['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x108b02;){const _0x2c8d70=_0x108b02['getAttribute']('listItemId');if(!_0x2c8d70)return!0x1;if(_0x2c8d70==_0x3c4eae['data']['newValue'])return'newValue';if(_0x2c8d70==_0x3c4eae['data']['oldValue'])return'oldValue';_0x108b02=_0x108b02['previousSibling'];}return!0x1;}class q extends _0x2bddd5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x63df33=this['editor']['config']['get']('list.properties'),_0x38bf67=this['editor']['plugins']['get']('TrackChangesEditing');_0x63df33['styles']&&(_0x38bf67['enableDefaultAttributesIntegration']('listStyle'),_0x38bf67['registerBlockAttribute']('listStyle')),_0x63df33['reversed']&&(_0x38bf67['enableDefaultAttributesIntegration']('listReversed'),_0x38bf67['registerBlockAttribute']('listReversed')),_0x63df33['startIndex']&&(_0x38bf67['enableDefaultAttributesIntegration']('listStart'),_0x38bf67['registerBlockAttribute']('listStart'));const _0x5c3ec6={'type':'format','content':''};_0x38bf67['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3fe9e8=this['editor']['locale'];_0x38bf67['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3fe9e8,'FORMAT_LIST_REVERSED')),_0x38bf67['descriptionFactory']['registerDescriptionCallback'](_0x12794e=>{const {data:_0x174f89}=_0x12794e;if(_0x174f89&&'listReversed'==_0x174f89['key'])return null==_0x174f89['newValue']||0x0==_0x174f89['newValue']&&null==_0x174f89['oldValue']?_0x5c3ec6:void 0x0;}),_0x38bf67['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3fe9e8,'FORMAT_LIST_START')),_0x38bf67['descriptionFactory']['registerDescriptionCallback'](_0x5a1954=>{const {data:_0x144e1d}=_0x5a1954;if(_0x144e1d&&'listStart'==_0x144e1d['key'])return null==_0x144e1d['newValue']||0x1==_0x144e1d['newValue']&&null==_0x144e1d['oldValue']?_0x5c3ec6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3eebd3=>{if(_0x3eebd3['batch']['isUndo'])return!0x1;let _0x3d4c81=!0x1;const _0x3e2399=_0x38bf67['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x701dd6=>{const _0x334ae5=_0x38bf67['_getAttributeKey'](_0x701dd6);return'listStart'==_0x334ae5||'listReversed'==_0x334ae5;});for(const _0x5ea815 of _0x3e2399){const _0x4d8bd5=_0x5ea815['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4d8bd5||'customNumbered'==_0x4d8bd5)continue;_0x38bf67['_findSuggestions'](_0x5ea815['getFirstRange'](),'attribute')['find'](_0x980d2f=>'listType'==_0x38bf67['_getAttributeKey'](_0x980d2f['suggestion']))||(_0x3eebd3['removeMarker'](_0x5ea815['getFirstMarker']()),_0x3d4c81=!0x0);}return _0x3d4c81;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2de852){const _0xb59b21=this['editor']['locale'],{data:_0xc6dd}=_0x2de852,_0x1b9ef4={'type':'format','content':''};if(!_0xc6dd||'listStyle'!=_0xc6dd['key'])return;if(!_0xc6dd['oldValue'])return'default'==_0xc6dd['newValue']?_0x1b9ef4:{'type':'format','content':''+o(_0xb59b21,'*Set\x20format:*\x20%0',o(_0xb59b21,this['_getTranslationKeyForListStyle'](_0xc6dd['newValue'])))};if(!_0xc6dd['newValue']){if('default'==_0xc6dd['oldValue'])return _0x1b9ef4;let _0x329698=_0x2de852['head'];for(;_0x329698;){if(_0x329698['data']&&'listType'==_0x329698['data']['key']&&_0x329698['data']['newValue'])return _0x1b9ef4;_0x329698=_0x329698['next'];}return{'type':'format','content':''+o(_0xb59b21,'*Remove\x20format:*\x20%0',o(_0xb59b21,this['_getTranslationKeyForListStyle'](_0xc6dd['oldValue'])))};}if('default'!=_0xc6dd['newValue'])return{'type':'format','content':''+o(_0xb59b21,'*Set\x20format:*\x20%0',o(_0xb59b21,this['_getTranslationKeyForListStyle'](_0xc6dd['newValue'])))};let _0x3a16bc=_0x2de852['head'];for(;_0x3a16bc;){if(_0x3a16bc['data']&&'listType'==_0x3a16bc['data']['key']&&_0x3a16bc['data']['newValue']&&_0x3a16bc['data']['oldValue'])return _0x1b9ef4;_0x3a16bc=_0x3a16bc['next'];}return{'type':'format','content':o(_0xb59b21,'*Set\x20format:*\x20%0',o(_0xb59b21,'ELEMENT_'+_0x2de852['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2ff647=this['editor'],_0x1c2a2c=_0x2ff647['locale'];_0x2ff647['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30e525=>{if('formatBlock'!=_0x30e525['type'])return;const {data:_0xd7eb21}=_0x30e525;if(!_0xd7eb21)return;let _0x31b316,_0x4840dd;switch(_0xd7eb21['commandName']){case'listStyle':_0x31b316='*Change\x20to:*\x20%0',_0x4840dd={'type':'format','content':o(_0x1c2a2c,_0x31b316,o(_0x1c2a2c,this['_getTranslationKeyForListStyle'](_0xd7eb21['commandParams'][0x0]['type'])))};break;case'listReversed':_0x31b316=_0xd7eb21['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4840dd={'type':'format','content':o(_0x1c2a2c,_0x31b316)};break;case'listStart':_0x31b316='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4840dd={'type':'format','content':o(_0x1c2a2c,_0x31b316,_0xd7eb21['commandParams'][0x0]['startIndex'])};}return _0x4840dd;});}['_getTranslationKeyForListStyle'](_0x4ac692){return'ELEMENT_'+function(_0x48460f){if(Se['includes'](_0x48460f))return'bulleted';if(_e['includes'](_0x48460f))return'numbered';return null;}(_0x4ac692)['toUpperCase']()+'_LIST_'+_0x4ac692['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x2bddd5{['afterInit'](){const _0x1ef941=this['editor'];_0x1ef941['commands']['get']('emoji')&&_0x1ef941['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x2bddd5{static get['requires'](){return[_0x399c1c];}['init'](){const _0x596cd1=this['editor'],_0x2e758f=_0x596cd1['plugins']['get']('TrackChangesEditing'),_0x2b8031=_0x596cd1['commands']['get']('enter');_0x2e758f['enableCommand']('enter',()=>{_0x596cd1['model']['change'](_0x44ceaf=>{const _0x298882=_0x596cd1['model']['document']['selection'],_0x4d9ab6=_0x298882['getFirstPosition'](),_0x5a478a=_0xd7f50['fromRange'](_0x298882['getFirstRange']());if(_0x2b8031['enterBlock'](_0x44ceaf)){const _0xb6eaed=_0x596cd1['model']['createPositionAt'](_0x4d9ab6['parent']['nextSibling'],0x0),_0x52d5e5=_0x44ceaf['createRange'](_0x4d9ab6,_0xb6eaed);_0x2e758f['markInsertion'](_0x52d5e5);}else _0x44ceaf['setSelection'](_0x44ceaf['createRange'](_0x5a478a['end']));_0x5a478a['detach'](),_0x2b8031['fire']('afterExecute',{'writer':_0x44ceaf});});}),_0x596cd1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x596cd1,'split'),{'priority':'high'}),_0x596cd1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x38157e,_0x54e4f4,_0x501db9)=>{const _0x588c7a=_0x501db9['mapper']['markerNameToElements'](_0x54e4f4['markerName']);if(_0x588c7a){for(const _0x4fdc59 of _0x588c7a)_0x4fdc59['hasClass']('ck-suggestion-marker-split')&&(_0x501db9['mapper']['unbindElementFromMarkerName'](_0x4fdc59,_0x54e4f4['markerName']),_0x501db9['writer']['remove'](_0x4fdc59));}},{'priority':'high'}),_0x596cd1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x567f9a,_0x2d486f,_0x3b6fe3)=>{_0x3b6fe3['options']['showSuggestionHighlights']&&De(_0x596cd1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x567f9a,_0x2d486f,_0x3b6fe3);},{'priority':'high'});}}class Q extends _0x2bddd5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4aa2a3=this['editor']['plugins']['get']('TrackChangesEditing');_0x4aa2a3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4aa2a3['enableCommand']('findNext'),_0x4aa2a3['enableCommand']('findPrevious'),_0x4aa2a3['enableCommand']('replace'),_0x4aa2a3['enableCommand']('replaceAll');}['handleFindCommand'](_0x575c9f,_0x2788de,_0x3ac1aa={}){const _0x53e5d9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x575c9f(_0x2ff81b=>{let _0x55fedd=('string'==typeof _0x2788de?_0x53e5d9['findByTextCallback'](_0x2788de,_0x3ac1aa):_0x2788de)(_0x2ff81b);Array['isArray'](_0x55fedd)&&(_0x55fedd={'results':_0x55fedd,'searchText':'string'==typeof _0x2788de?_0x2788de:''});const _0x4c3087=_0x55fedd['results']['filter'](_0x4be462=>!0x1===this['_isInDeletionRange'](_0x4be462,_0x2ff81b['item']));return{..._0x55fedd,'results':_0x4c3087};},_0x3ac1aa);}['_isInDeletionRange'](_0x27aaf4,_0x34c4b8){const _0x4b408e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34c4b8,_0x27aaf4['start']),this['editor']['model']['createPositionAt'](_0x34c4b8,_0x27aaf4['end']));for(const _0x4d7b01 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4b408e['getIntersection'](_0x4d7b01['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x2bddd5{['afterInit'](){const _0x22c25e=this['editor']['locale'],_0x149d47=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x32d3b2,commandName:_0x5bc947}of eo)this['editor']['plugins']['has'](_0x32d3b2)&&(_0x149d47['enableDefaultAttributesIntegration'](_0x5bc947),_0x149d47['registerInlineAttribute'](_0x5bc947));_0x149d47['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x22c25e,'FORMAT_FONT_SIZE')),_0x149d47['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x22c25e,'FORMAT_FONT_FAMILY')),_0x149d47['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x22c25e,'FORMAT_FONT_COLOR')),_0x149d47['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x22c25e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5977a4=this['editor'],_0x4fb7bf=_0x5977a4['locale'];_0x5977a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b5e4a=>{const _0x59833e=_0x4fb7bf['t'];if('formatInline'!=_0x1b5e4a['type'])return;const {data:_0x53abe6}=_0x1b5e4a;if(null!=_0x53abe6){if('fontSize'==_0x53abe6['commandName']){const _0x2c6422=_0x53abe6['commandParams'][0x0]['value'];if(_0x2c6422){const _0x2f3d96=_0x59833e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3f7150=>_0x3f7150['model']==_0x2c6422)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4fb7bf,'*Set\x20font\x20size:*\x20%0',_0x2f3d96)};}return{'type':'format','content':o(_0x4fb7bf,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x53abe6['commandName']){const _0x429769=_0x53abe6['commandParams'][0x0]['value'];return _0x429769?{'type':'format','content':o(_0x4fb7bf,'*Set\x20font\x20family:*\x20%0',_0x429769)}:{'type':'format','content':o(_0x4fb7bf,'*Reset\x20font\x20family*')};}if('fontColor'==_0x53abe6['commandName']){const _0x183993=_0x53abe6['commandParams'][0x0]['value'];if(_0x183993){const _0x23f47f=_0x38fe7e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x491bde=>_0x491bde['model']==_0x183993);let _0x5e1b64=_0x183993,_0x5cf7c3='';return _0x23f47f&&(_0x5e1b64=_0x23f47f['label'],_0x5cf7c3=_0x59833e(_0x5e1b64)['toLowerCase']()),{'type':'format','content':o(_0x4fb7bf,'*Set\x20font\x20color:*\x20%0',_0x5cf7c3)['trim'](),'color':{'value':_0x183993,'title':_0x5cf7c3||_0x5e1b64}};}return{'type':'format','content':o(_0x4fb7bf,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x53abe6['commandName']){const _0x5bf341=_0x53abe6['commandParams'][0x0]['value'];if(_0x5bf341){const _0x1d807c=_0x38fe7e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x24d78d=>_0x24d78d['model']==_0x5bf341);let _0x2bf6ef=_0x5bf341,_0x1382ad='';return _0x1d807c&&(_0x2bf6ef=_0x1d807c['label'],_0x1382ad=_0x59833e(_0x2bf6ef)['toLowerCase']()),{'type':'format','content':o(_0x4fb7bf,'*Set\x20font\x20background\x20color:*\x20%0',_0x1382ad)['trim'](),'color':{'value':_0x5bf341,'title':_0x1382ad||_0x2bf6ef}};}return{'type':'format','content':o(_0x4fb7bf,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x2bddd5{['afterInit'](){const _0x5cdf55=this['editor'],_0x5aeae8=_0x5cdf55['plugins']['get']('TrackChangesEditing'),_0x227ef6=_0x5cdf55['commands']['get']('copyFormat'),_0x57a670=_0x5cdf55['commands']['get']('pasteFormat');_0x227ef6&&_0x57a670&&(_0x5aeae8['enableDefaultAttributesIntegration']('pasteFormat'),_0x5aeae8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x331631=this['editor'],_0x1e0833=_0x331631['locale'];_0x331631['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa91611=>{if('formatBlock'!=_0xa91611['type']&&'formatInline'!=_0xa91611['type'])return;const {data:_0x2eeb27}=_0xa91611;if(_0x2eeb27&&'pasteFormat'===_0x2eeb27['commandName']){const _0x4c5e7e=[],_0x483b3e=_0x2eeb27['commandParams'][0x0];for(const [_0x4302c1,_0x5bd046]of Object['entries'](_0x483b3e))_0x4c5e7e['push'](ro(_0x331631,_0x4302c1,_0x5bd046));return _0x4c5e7e['length']?{'type':'format','content':o(_0x1e0833,'*Set\x20format\x20to:*\x20%0',_0x4c5e7e['join'](',\x20'))}:{'type':'format','content':o(_0x1e0833,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x20b73f,_0xbb9f19,_0x495feb){const _0x482493=_0x20b73f['locale']['t'],_0x57e971=_0xbb9f19['split'](/(?=[A-Z])/)['join']('\x20'),_0x9c1f61=_0x482493(_0x57e971['charAt'](0x0)['toUpperCase']()+_0x57e971['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x495feb)return _0x9c1f61;if('fontColor'===_0xbb9f19||'fontBackgroundColor'===_0xbb9f19){const _0x2a1ad9=_0x38fe7e(_0x20b73f['config']['get']('fontColor.colors'))['find'](_0x53a32f=>_0x53a32f['model']==_0x495feb);return _0x9c1f61+'\x20('+(_0x2a1ad9?_0x482493(_0x2a1ad9['label'])['toLowerCase']():_0x495feb)+')';}if('fontSize'===_0xbb9f19&&isNaN(parseFloat(_0x495feb))){const _0x11680a=_0x20b73f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x20b73f['config']['get']('fontSize.options'))['find'](_0x3f09c3=>_0x3f09c3['model']==_0x495feb);return _0x9c1f61+'\x20('+(_0x11680a?_0x482493(_0x11680a['title'])['toLowerCase']():_0x495feb)+')';}return _0x9c1f61+'\x20('+_0x495feb+')';}class Z extends _0x2bddd5{['_headingOptions'];['afterInit'](){const _0x2a4451=this['editor'];if(!_0x2a4451['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2a4451['config']['get']('heading.options');const _0x5017f9=_0x2a4451['locale'],_0x2760cb=_0x2a4451['plugins']['get']('TrackChangesEditing');_0x2760cb['enableDefaultAttributesIntegration']('heading');for(const _0x38be10 of this['_headingOptions'])'paragraph'!=_0x38be10['model']&&_0x2760cb['descriptionFactory']['registerElementLabel'](_0x38be10['model'],_0x55885e=>{const _0x582e61=this['_getHeadingLevel'](_0x38be10['model']);return null!==_0x582e61?_0x442f9c(_0x55885e,_0x582e61):_0x4b17d8(_0x55885e,_0x38be10['title']);});function _0x442f9c(_0x22dd18,_0x38386a){return o(_0x5017f9,'ELEMENT_HEADING',[_0x22dd18,_0x38386a]);}function _0x4b17d8(_0x323d13,_0x253a1b){return o(_0x5017f9,'ELEMENT_HEADING_CUSTOM',[_0x323d13,_0x253a1b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45d6ce=this['editor'],_0x54bdb8=_0x45d6ce['locale'];function _0x4932eb(_0x2201b0,_0x53ea70){return o(_0x54bdb8,'ELEMENT_HEADING_CUSTOM',[_0x2201b0,_0x53ea70]);}_0x45d6ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xea2091=>{if('formatBlock'!=_0xea2091['type'])return;const {data:_0x49b0b4}=_0xea2091;if(_0x49b0b4&&'heading'==_0x49b0b4['commandName']){const _0x14ed09=_0x49b0b4['commandParams'][0x0]['value'],_0x1fb019=this['_getHeadingLevel'](_0x14ed09);if(null!==_0x1fb019)return{'type':'format','content':o(_0x54bdb8,'*Change\x20to:*\x20%0',(_0x558289=0x1,_0xfadfac=_0x1fb019,o(_0x54bdb8,'ELEMENT_HEADING',[_0x558289,_0xfadfac])))};const _0x4465f5=this['_headingOptions']['find'](_0x27788e=>_0x27788e['model']===_0x14ed09)['title'];return{'type':'format','content':o(_0x54bdb8,'*Change\x20to:*\x20%0',_0x4932eb(0x1,_0x4465f5))};}var _0x558289,_0xfadfac;});}['_getHeadingLevel'](_0x4f754d){const _0x33fd02=_0x4f754d['match'](/^heading(\d+)/);if(_0x33fd02)return _0x33fd02[0x1];const _0x276679=this['_headingOptions']?.['find'](_0x28a55c=>_0x28a55c['model']==_0x4f754d);if(_0x276679&&_0x276679['view']){const _0x216992=_0x276679['view'],_0x54d0cc=(_0x216992['name']??_0x216992)['match'](/^h(\d+)/);if(_0x54d0cc)return _0x54d0cc[0x1];}return null;}}class tt extends _0x2bddd5{['afterInit'](){const _0x171f82=this['editor'];if(!_0x171f82['plugins']['has']('HighlightEditing'))return;const _0x50b699=_0x171f82['plugins']['get']('TrackChangesEditing'),_0x189aa9=_0x171f82['locale'];_0x50b699['enableDefaultAttributesIntegration']('highlight'),_0x50b699['registerInlineAttribute']('highlight'),_0x50b699['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x189aa9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b4ade=this['editor'],_0x2e57ef=_0x5b4ade['locale'];_0x5b4ade['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5262a2=>{if('formatInline'!=_0x5262a2['type'])return;const {data:_0x3bb05f}=_0x5262a2;if(_0x3bb05f&&'highlight'==_0x3bb05f['commandName']){const _0x35a8cb=_0x2e57ef['t'],_0x1c9e2c=_0x3bb05f['commandParams'][0x0]['value'];if(_0x1c9e2c){const _0xce0a69=_0x5b4ade['config']['get']('highlight.options')['find'](_0x125c63=>_0x125c63['model']==_0x1c9e2c),_0x559227=_0x35a8cb(_0xce0a69['title'])['toLowerCase']();return{'type':'format','content':o(_0x2e57ef,'*Set\x20highlight:*\x20%0',_0x559227),'color':{'value':_0xce0a69['color'],'title':_0xce0a69['title']}};}return{'type':'format','content':o(_0x2e57ef,'*Remove\x20highlight*',o(_0x2e57ef,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x2bddd5{['afterInit'](){const _0x429014=this['editor'];if(!_0x429014['plugins']['has']('HorizontalLineEditing'))return;_0x429014['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x378fb7=_0x429014['plugins']['get']('TrackChangesEditing'),_0x493927=_0x429014['locale'];_0x378fb7['descriptionFactory']['registerElementLabel']('horizontalLine',_0x50e50a=>o(_0x493927,'ELEMENT_HORIZONTAL_LINE',_0x50e50a)),_0x429014['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x56995b,{writer:_0x1d8b76,options:_0x4702f5})=>{if(!_0x4702f5['showSuggestionHighlights'])return null;const _0x17c493=_0x1d8b76['createContainerElement']('div'),_0x344d49=_0x1d8b76['createEmptyElement']('hr');return _0x1d8b76['addClass']('ck-horizontal-line',_0x17c493),_0x1d8b76['insert'](_0x1d8b76['createPositionAt'](_0x17c493,0x0),_0x344d49),_0x17c493;},'converterPriority':'high'});}}class nt extends _0x2bddd5{['afterInit'](){const _0x6ba8f9=this['editor'];if(!_0x6ba8f9['plugins']['has']('HtmlEmbed'))return;const _0x28389f=_0x6ba8f9['plugins']['get']('TrackChangesEditing'),_0x15abdb=_0x6ba8f9['locale'];_0x28389f['descriptionFactory']['registerElementLabel']('rawHtml',_0x21f5e3=>o(_0x15abdb,'ELEMENT_HTML_EMBED',_0x21f5e3)),_0x28389f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x28389f['registerBlockAttribute']('value'),_0x28389f['descriptionFactory']['registerDescriptionCallback'](_0x4cad4f=>{if('attribute'!=_0x4cad4f['type'])return;const {data:_0x4d27a1}=_0x4cad4f;if(_0x4d27a1&&'value'==_0x4d27a1['key']&&_0x4cad4f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3ed3f5=o(_0x15abdb,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x15abdb,'*Change\x20%0\x20content*',_0x3ed3f5)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x183e0a=this['editor'],_0x13ecd0=_0x183e0a['locale'];_0x183e0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34a59f=>{if('formatBlock'!=_0x34a59f['type'])return;const {data:_0x4a5d16}=_0x34a59f;if(_0x4a5d16&&'htmlEmbed'==_0x4a5d16['commandName']){const _0x5e5153=o(_0x13ecd0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x13ecd0,'*Change\x20%0\x20content*',_0x5e5153)};}});}}class et extends _0x2bddd5{['afterInit'](){const _0xe764e=this['editor'];if(!_0xe764e['plugins']['has']('ImageEditing'))return;const _0x3aba5a=_0xe764e['plugins']['get']('TrackChangesEditing'),_0x3a85b8=_0xe764e['plugins']['get']('ImageUtils'),_0x56bff7=_0xe764e['locale'];_0x3aba5a['enableCommand']('insertImage'),_0x3aba5a['descriptionFactory']['registerElementLabel']('imageBlock',_0x1e4601=>o(_0x56bff7,'ELEMENT_IMAGE',_0x1e4601)),_0x3aba5a['descriptionFactory']['registerElementLabel']('imageInline',_0x1f74c5=>o(_0x56bff7,'ELEMENT_INLINE_IMAGE',_0x1f74c5)),_0x3aba5a['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x56bff7,'ELEMENT_CAPTION')),_0xe764e['plugins']['has']('ImageUploadEditing')&&_0x3aba5a['enableCommand']('uploadImage'),_0xe764e['plugins']['has']('ImageBlockEditing')&&_0xe764e['plugins']['has']('ImageInlineEditing')&&(_0x3aba5a['enableCommand']('imageTypeInline',(_0x4f050c,_0x1e5736)=>{const _0x2da9e9=_0x3a85b8['getClosestSelectedImageElement'](_0xe764e['model']['document']['selection']);_0xe764e['model']['change'](()=>{_0x3aba5a['markBlockFormat'](_0x2da9e9,{'commandName':'imageTypeInline','commandParams':[_0x1e5736]},[],'convertBlockImageToInline');});}),_0x3aba5a['enableCommand']('imageTypeBlock',(_0xa5f33d,_0xbd0184)=>{_0xe764e['model']['change'](_0x4053d6=>{let _0x271822=_0x3a85b8['getClosestSelectedImageElement'](_0xe764e['model']['document']['selection']),_0xbd216f=_0x4053d6['createRangeOn'](_0x271822);const _0x5b528a=_0x26c143['fromPosition'](_0xbd216f['start'],'toPrevious'),_0xb11c8=_0x26c143['fromPosition'](_0xbd216f['end'],'toNext');_0x3aba5a['forceDefaultExecution'](()=>_0xa5f33d(_0xbd0184)),_0x271822=_0x3a85b8['getClosestSelectedImageElement'](_0xe764e['model']['document']['selection']),_0xbd216f=_0x4053d6['createRangeOn'](_0x271822);const _0x23a33a=_0x4053d6['createRange'](_0x5b528a,_0xb11c8);_0x5b528a['detach'](),_0xb11c8['detach'](),_0x3aba5a['markBlockFormat'](_0x271822,{'commandName':'imageTypeInline','commandParams':[_0xbd0184]},[],'convertInlineImageToBlock'),_0x23a33a['start']['isBefore'](_0xbd216f['start'])&&_0x3aba5a['markInsertion'](_0x4053d6['createRange'](_0x23a33a['start'],_0xbd216f['start']),'convertInlineImageToBlock'),_0xbd216f['end']['isBefore'](_0x23a33a['end'])&&_0x3aba5a['markInsertion'](_0x4053d6['createRange'](_0xbd216f['end'],_0x23a33a['end']),'convertInlineImageToBlock');});}),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3aba5a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3999a1])=>{const _0x2fb126=_0x3aba5a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x39e8f4=_0x3999a1['start'],_0x15e7d8=_0x3999a1['end'];const _0x2c0caa=_0xe764e['model']['schema']['getNearestSelectionRange'](_0x39e8f4,'backward'),_0x57a4d3=_0xe764e['model']['schema']['getNearestSelectionRange'](_0x15e7d8,'forward');_0x2c0caa['isCollapsed']&&(_0x39e8f4=_0x2c0caa['start']),_0x57a4d3['isCollapsed']&&(_0x15e7d8=_0x57a4d3['end']),_0x2fb126([_0xe764e['model']['createRange'](_0x39e8f4,_0x15e7d8)]);}),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4c05d0),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4c05d0)),_0xe764e['plugins']['has']('ImageCaptionEditing')&&(_0x3aba5a['enableCommand']('toggleImageCaption',(_0x4f21e2,_0x579e28)=>{const _0x4900c0=_0xe764e['plugins']['get']('ImageCaptionUtils');let _0x388463=_0x3a85b8['getClosestSelectedImageElement'](_0xe764e['model']['document']['selection']),_0x1e86c3=_0x4900c0['getCaptionFromImageModelElement'](_0x388463);_0xe764e['model']['change'](()=>{if(_0x1e86c3)return void _0x3aba5a['markDeletion'](_0xe764e['model']['createRangeOn'](_0x1e86c3));const _0x5704f9=_0x3a85b8['isBlockImage'](_0x388463);_0x4f21e2(_0x579e28),_0x388463=_0x3a85b8['getClosestSelectedImageElement'](_0xe764e['model']['document']['selection']),_0x1e86c3=_0x4900c0['getCaptionFromImageModelElement'](_0x388463),_0x3aba5a['markInsertion'](_0xe764e['model']['createRangeOn'](_0x1e86c3),_0x5704f9?null:'imageCaption');});}),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4c05d0));const _0x1a55b9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x568147(_0x2b2195,_0x2d681a){const _0x4de3d6=_0x1a55b9['findIndex'](({type:_0x299bab,subType:_0x31a27c})=>_0x2b2195['type']==_0x299bab&&_0x2b2195['subType']==_0x31a27c),_0x240d36=_0x1a55b9['findIndex'](({type:_0xfd1ab1,subType:_0x416b45})=>_0x2d681a['type']==_0xfd1ab1&&_0x2d681a['subType']==_0x416b45);if(_0x4de3d6<0x0||_0x240d36<0x0)return!0x1;const _0x59198d=_0x2b2195['getFirstRange'](),_0x565324=_0x2d681a['getFirstRange']();if((0x0==_0x4de3d6||0x1==_0x4de3d6)&&0x2==_0x240d36&&_0x59198d['isIntersecting'](_0x565324))return!0x0;if(0x2==_0x4de3d6&&0x3==_0x240d36){const _0x494078=_0x3aba5a['_findSuggestions'](_0x59198d,'insertion')['filter'](({suggestion:_0x85d563,meta:_0x19bb88})=>_0x19bb88['isOwn']&&'convertInlineImageToBlock'==_0x85d563['subType']);if(_0x494078['length']>0x1&&_0x565324['end']['isEqual'](_0x59198d['start']))return!0x0;if(0x1==_0x494078['length']&&(_0x59198d['start']['isEqual'](_0x565324['end'])||_0x59198d['end']['isEqual'](_0x565324['start'])))return!0x0;}if(0x3==_0x4de3d6&&0x3==_0x240d36&&_0x59198d['start']['isBefore'](_0x565324['start'])){const _0x25029f=_0x59198d['end']['nodeAfter'],_0x1356c2=_0x565324['start']['nodeBefore'];return _0x3a85b8['isBlockImage'](_0x25029f)&&_0x25029f===_0x1356c2;}return!0x1;}function _0x4c05d0(_0x5d63a0,_0x28e79a){return _0x568147(_0x5d63a0,_0x28e79a)?[_0x5d63a0,_0x28e79a]:_0x568147(_0x28e79a,_0x5d63a0)?[_0x28e79a,_0x5d63a0]:null;}_0xe764e['plugins']['has']('ImageResize')&&(_0x3aba5a['enableDefaultAttributesIntegration']('resizeImage'),_0x3aba5a['registerBlockAttribute']('resizedWidth'),_0x3aba5a['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x56bff7,'FORMAT_IMAGE_SIZE'))),_0xe764e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3aba5a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3aba5a['registerBlockAttribute']('alt')),_0xe764e['plugins']['has']('PictureEditing')&&(_0x3aba5a['registerBlockAttribute']('sources'),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x4b706e=>{if('attribute'!=_0x4b706e['type'])return;const {data:_0x478b0e}=_0x4b706e;return _0x478b0e&&'sources'==_0x478b0e['key']?{'type':'format','content':''}:void 0x0;})),_0xe764e['plugins']['has']('ImageSizeAttributes')&&(_0x3aba5a['registerBlockAttribute']('width'),_0x3aba5a['registerBlockAttribute']('height'),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x12015b=>{if('attribute'!=_0x12015b['type'])return;const {data:_0x429bfb}=_0x12015b;return!_0x429bfb||'width'!=_0x429bfb['key']&&'height'!=_0x429bfb['key']?void 0x0:{'type':'format','content':''};})),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x48cd38=>{if(!!_0x1a55b9['find'](({type:_0x27c2a1,subType:_0x1e55e4})=>_0x48cd38['type']==_0x27c2a1&&_0x48cd38['subType']==_0x1e55e4))return _0x48cd38['previous']?{}:void 0x0;}),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x2eb464=>{if('insertion'==_0x2eb464['type']||'deletion'==_0x2eb464['type']){const _0x2fb3d3=_0x2eb464['getContainedElement']();if(_0x2fb3d3&&_0x2fb3d3['is']('element','caption'))return{'type':'insertion'==_0x2eb464['type']?'addObject':'removeObject','element':_0x2fb3d3,'quantity':0x1};}}),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x269191=>'formatBlock'==_0x269191['type']&&'convertInlineImageToBlock'==_0x269191['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x269191['type']&&'convertBlockImageToInline'==_0x269191['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x15c8a7=>{if('attribute'!=_0x15c8a7['type'])return;const {data:_0x196a67}=_0x15c8a7;if(!_0x196a67||'alt'!=_0x196a67['key'])return;const _0x2fa6b1=_0x196a67['newValue'];return _0x2fa6b1?{'type':'format','content':o(_0x56bff7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2fa6b1+'\x22')}:{'type':'format','content':o(_0x56bff7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46924e=this['editor'],_0x4ec167=_0x46924e['locale'];_0x46924e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a9b32=>{if('formatBlock'!=_0x5a9b32['type']&&'formatInline'!=_0x5a9b32['type'])return;const {data:_0x1eeb7f}=_0x5a9b32;if(_0x1eeb7f){if('imageTextAlternative'==_0x1eeb7f['commandName']){const _0x83537=_0x1eeb7f['commandParams'][0x0]['newValue'];return _0x83537?{'type':'format','content':o(_0x4ec167,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x83537+'\x22')}:{'type':'format','content':o(_0x4ec167,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1eeb7f['commandName']){const _0x2ce2c4=_0x1eeb7f['commandParams'][0x0]['width'];return _0x2ce2c4?{'type':'format','content':o(_0x4ec167,'*Set\x20image\x20width:*\x20%0',_0x2ce2c4)}:{'type':'format','content':o(_0x4ec167,'*Reset\x20image\x20width*')};}}});}}class st extends _0x2bddd5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x36a05c=this['editor']['locale'],_0x4ee96e=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ee96e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4ee96e['registerBlockAttribute']('src'),_0x4ee96e['descriptionFactory']['registerDescriptionCallback'](_0x359a38=>{if('attribute'!=_0x359a38['type'])return;const {data:_0xe363da}=_0x359a38;return _0xe363da&&'src'==_0xe363da['key']?_0xe363da['newValue']&&_0xe363da['oldValue']?{'type':'format','content':o(_0x36a05c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x444ded=this['editor']['plugins']['get']('TrackChangesEditing');_0x444ded['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x444ded['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x444ded['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x444ded['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdba06c=this['editor'],_0x2e6660=_0xdba06c['locale'];_0xdba06c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x375f4f=>{if('formatBlock'!=_0x375f4f['type']&&'formatInline'!=_0x375f4f['type'])return;const {data:_0x46b87e}=_0x375f4f;if(!_0x46b87e||'replaceImageSource'!=_0x46b87e['commandName'])return;return{'type':'format','content':o(_0x2e6660,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x2bddd5{['afterInit'](){const _0x1e7bc4=this['editor'];if(!_0x1e7bc4['plugins']['has']('ImageStyleEditing'))return;const _0x5442d6=_0x1e7bc4['plugins']['get']('TrackChangesEditing'),_0x5e5fde=_0x1e7bc4['plugins']['get']('ImageUtils'),_0x1625b4={};_0x5442d6['enableCommand']('imageStyle',(_0xbc0789,_0x2827f3)=>{const _0x3eaf29=_0x1e7bc4['plugins']['get']('Users')['me'],_0x13863d=_0x1e7bc4['commands']['get']('imageStyle');let _0x5d1718=_0x5e5fde['getClosestSelectedImageElement'](_0x1e7bc4['model']['document']['selection']),_0x1859c0=_0x1e7bc4['model']['createRangeOn'](_0x5d1718),_0x4f70d5=_0x13863d['value'];if(_0x4f70d5==_0x2827f3['value'])return;const _0x410891={'commandName':'imageStyle','commandParams':[_0x2827f3],'formatGroupId':_0x4bb6e6()};_0x1e7bc4['model']['change'](()=>{if(_0x5442d6['getSuggestions']()['filter'](_0x1ee834=>_0x1ee834['isInContent']&&_0x3eaf29==_0x1ee834['author']&&('formatBlock'==_0x1ee834['type']||'formatInline'==_0x1ee834['type'])&&('imageStylePreApply'==_0x1ee834['subType']||'imageStylePostApply'==_0x1ee834['subType'])&&_0x1ee834['getFirstRange']()['isEqual'](_0x1859c0))['forEach'](_0x436470=>_0x5442d6['discardSuggestion'](_0x436470['head'])),_0x5d1718=_0x5e5fde['getClosestSelectedImageElement'](_0x1e7bc4['model']['document']['selection']),_0x1859c0=_0x1e7bc4['model']['createRangeOn'](_0x5d1718),_0x13863d['refresh'](),_0x1e7bc4['commands']['get']('imageTypeInline')['refresh'](),_0x1e7bc4['commands']['get']('imageTypeBlock')['refresh'](),_0x4f70d5=_0x13863d['value'],_0x4f70d5!=_0x2827f3['value'])return _0x5e5fde['isInlineImage'](_0x5d1718)&&_0x13863d['shouldConvertImageType'](_0x2827f3['value'],_0x5d1718)?(_0xbc0789({..._0x2827f3,'setImageSizes':!0x1}),_0x5d1718=_0x5e5fde['getClosestSelectedImageElement'](_0x1e7bc4['model']['document']['selection']),void _0x5442d6['markBlockFormat'](_0x5d1718,{..._0x410891,'commandReversedParams':[{'value':_0x4f70d5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5e5fde['isBlockImage'](_0x5d1718)?_0x5442d6['markBlockFormat'](_0x5d1718,_0x410891,[],'imageStylePostApply'):_0x5442d6['markInlineFormat'](_0x1859c0,_0x410891,'imageStylePostApply'));});});for(const _0x5f3156 of _0x1e7bc4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1625b4[_0x5f3156['name']]=_0x5f3156['title']['toLowerCase']();_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3ea094])=>{_0x5e5fde['setImageNaturalSizeAttributes'](_0x3ea094['getContainedElement']());}),_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5bfc6c,_0x2037d7)=>{_0x5442d6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5bfc6c,{'commandName':_0x2037d7['commandName'],'commandParams':_0x2037d7['commandReversedParams']});}),_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x51b45f,_0x54b38d){if(_0x509d1e(_0x51b45f,_0x54b38d))return[_0x51b45f,_0x54b38d];if(_0x509d1e(_0x54b38d,_0x51b45f))return[_0x54b38d,_0x51b45f];return null;});const _0x33948a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x509d1e(_0x34f5d3,_0x263f1a){const _0x5e38fb=_0x33948a['findIndex'](({type:_0x83f25f,subType:_0x3d41d2})=>_0x34f5d3['type']==_0x83f25f&&_0x34f5d3['subType']==_0x3d41d2),_0x15926b=_0x33948a['findIndex'](({type:_0x118b69,subType:_0x4fccfc})=>_0x263f1a['type']==_0x118b69&&_0x263f1a['subType']==_0x4fccfc);if(_0x5e38fb<0x0||_0x15926b<0x0)return!0x1;const _0x18e593=_0x34f5d3['getFirstRange'](),_0x3c7f32=_0x263f1a['getFirstRange']();if((0x0==_0x5e38fb||0x1==_0x5e38fb)&&0x2==_0x15926b&&_0x18e593['isIntersecting'](_0x3c7f32))return!0x0;if(0x2==_0x5e38fb&&0x3==_0x15926b){const _0x4127c6=_0x5442d6['_findSuggestions'](_0x18e593,'insertion')['filter'](({suggestion:_0x52fc2a,meta:_0x2c109b})=>_0x2c109b['isOwn']&&'convertInlineImageToBlock'==_0x52fc2a['subType']);if(_0x4127c6['length']>0x1&&_0x3c7f32['end']['isEqual'](_0x18e593['start']))return!0x0;if(0x1==_0x4127c6['length']&&(_0x18e593['start']['isEqual'](_0x3c7f32['end'])||_0x18e593['end']['isEqual'](_0x3c7f32['start'])))return!0x0;}if(0x3==_0x5e38fb&&0x3==_0x15926b&&_0x18e593['start']['isBefore'](_0x3c7f32['start'])){const _0x5b95d6=_0x18e593['end']['nodeAfter'],_0x37afec=_0x3c7f32['start']['nodeBefore'];return _0x5e5fde['isBlockImage'](_0x5b95d6)&&_0x5b95d6===_0x37afec;}return!0x1;}_0x1e7bc4['model']['document']['registerPostFixer'](()=>{let _0x38051a=!0x1;const _0x18e7e7=Array['from'](_0x1e7bc4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1cf617,data:_0x5d82fb}of _0x18e7e7){const {group:_0x2d56f4,type:_0x7e1e54,subType:_0x1f5ad2,id:_0x31a10a}=_0x5442d6['_splitMarkerName'](_0x1cf617);if('suggestion'==_0x2d56f4&&_0x5442d6['hasSuggestion'](_0x31a10a)){if('formatBlock'==_0x7e1e54&&('imageStylePreApply'==_0x1f5ad2||'imageStylePostApply'==_0x1f5ad2)){const _0x238eec=_0x5442d6['getSuggestion'](_0x31a10a);if(_0x5d82fb['newRange']){const _0x3e7f8a=_0x238eec['getFirstRange']()['getContainedElement']();if(_0x5e5fde['isBlockImage'](_0x3e7f8a))continue;_0x5442d6['discardSuggestion'](_0x238eec),_0x38051a=!0x0;}}if('insertion'==_0x7e1e54&&'imageCaption'==_0x1f5ad2&&!_0x5d82fb['newRange']){const _0x1231cb=_0x5442d6['getSuggestion'](_0x31a10a);_0x1231cb['next']&&_0x1231cb['next']['isInContent']&&(_0x5442d6['discardSuggestion'](_0x1231cb['next']),_0x38051a=!0x0);}}}return _0x38051a;}),this['_registerLegacyDescription'](_0x1625b4);}['_registerLegacyDescription'](_0x3753d7){const _0x4b63a4=this['editor'],_0x323839=_0x4b63a4['locale'];_0x4b63a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f6742=>{if('formatBlock'!=_0x1f6742['type']&&'formatInline'!=_0x1f6742['type'])return;const {data:_0x1ef1b0}=_0x1f6742;if(!_0x1ef1b0||'imageStyle'!=_0x1ef1b0['commandName'])return;const _0x1b022a=_0x1ef1b0['commandParams'][0x0]['value'];return _0x19e09c('side'===_0x1b022a?o(_0x323839,'FORMAT_SIDE_IMAGE'):_0x3753d7[_0x1b022a]||_0x1b022a);function _0x19e09c(_0x3f8396){return{'type':'format','content':o(_0x323839,'*Format:*\x20%0',_0x3f8396)};}});}}class rt extends _0x2bddd5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x51763f){super(_0x51763f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x67114a=this['editor'],_0x54cf73=_0x67114a['commands']['get']('importWord'),_0x59155b=_0x67114a['commands']['get']('trackChanges');_0x54cf73&&(_0x54cf73['on']('execute',(_0x1e5532,[,_0x54a488])=>{this['_trackChangesValueDuringImport']=_0x59155b['value'],_0x54a488['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x54cf73,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x54cf73,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x59155b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x67114a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2800d8,_0x5c52ac){const {suggestions:_0x511f33}=_0x5c52ac,_0x5dd845=this['editor']['commands']['get']('trackChanges'),_0x1c9a62=_0x5dd845['value'];this['_trackChangesValueDuringImport']!==_0x1c9a62&&(_0x5dd845['execute'](),this['_trackChangesExecuted']=!0x0),_0x511f33&&_0x511f33['forEach'](({id:_0x5eb512,type:_0x14a3ec,author:_0x252e10,created_at:_0x379721})=>{const _0x5da142={'id':_0x5eb512,'type':_0x14a3ec,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x252e10,'createdAt':_0x379721?new Date(_0x379721):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5da142);});}}class at extends _0x2bddd5{['afterInit'](){const _0x17d233=this['editor'],_0x40a247=_0x17d233['plugins']['get']('TrackChangesEditing');if(_0x17d233['plugins']['has']('IndentEditing')&&(_0x40a247['enableCommand']('indent'),_0x40a247['enableCommand']('outdent')),_0x17d233['plugins']['has']('IndentBlock')){for(const _0x595d4f of['indentBlock','outdentBlock'])_0x40a247['enableDefaultAttributesIntegration'](_0x595d4f);}const _0x1659d4=_0x17d233['locale'];_0x40a247['registerBlockAttribute']('blockIndent'),_0x40a247['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1659d4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x72d514=this['editor'],_0x28a383=_0x72d514['locale'],_0x441d7e=_0x72d514['plugins']['get']('TrackChangesEditing');_0x441d7e['descriptionFactory']['registerDescriptionCallback'](_0x3ef741=>{if('formatBlock'!=_0x3ef741['type'])return;const {data:_0x49994d}=_0x3ef741;if(!_0x49994d)return;if('indentBlock'!=_0x49994d['commandName']&&'outdentBlock'!=_0x49994d['commandName'])return;const _0x188a21=_0x3ef741['getItems']()[0x0],_0x4aa3a3=_0x441d7e['descriptionFactory']['getItemLabel'](_0x188a21);return'indentBlock'==_0x49994d['commandName']?{'type':'format','content':o(_0x28a383,'*Indent:*\x20%0',_0x4aa3a3)}:'outdentBlock'==_0x49994d['commandName']?{'type':'format','content':o(_0x28a383,'*Outdent:*\x20%0',_0x4aa3a3)}:void 0x0;});}}class ct extends _0x2bddd5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x2bddd5{['afterInit'](){const _0x1f39ee=this['editor'];if(!_0x1f39ee['plugins']['has']('LinkEditing'))return;const _0x125083=_0x1f39ee['plugins']['get']('TrackChangesEditing'),_0x30ece7=_0x1f39ee['commands']['get']('link');_0x125083['enableDefaultAttributesIntegration']('link'),_0x125083['enableDefaultAttributesIntegration']('unlink'),_0x125083['registerInlineAttribute']('linkHref');for(const _0x331221 of _0x30ece7['manualDecorators'])_0x125083['registerInlineAttribute'](_0x331221['id']),_0x125083['descriptionFactory']['registerAttributeLabel'](_0x331221['id'],'link\x20('+_0x331221['label']['toLowerCase']()+')');_0x125083['descriptionFactory']['registerDescriptionCallback'](_0x4b325c=>{if('attribute'!=_0x4b325c['type'])return;const {data:_0x194bb5}=_0x4b325c;if(!_0x194bb5||'linkHref'!=_0x194bb5['key'])return;const _0x25ded3=_0x194bb5['newValue'],_0x5acca0=_0x1f39ee['locale'];return{'type':'format','content':null==_0x25ded3?o(_0x5acca0,'*Remove\x20link*'):o(_0x5acca0,'*Set\x20link:*\x20%0','\x22'+_0x25ded3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d39ee=this['editor'],_0x30d3b8=_0x5d39ee['locale'];_0x5d39ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x153ee9=>{if('formatInline'!=_0x153ee9['type'])return;const {data:_0x2d2408}=_0x153ee9;if(_0x2d2408){if('link'==_0x2d2408['commandName']){const _0x2247ef=_0x2d2408['commandParams'][0x0];return{'type':'format','content':o(_0x30d3b8,'*Set\x20link:*\x20%0','\x22'+_0x2247ef+'\x22')};}return'unlink'==_0x2d2408['commandName']?{'type':'format','content':o(_0x30d3b8,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x2bddd5{['afterInit'](){const _0x29f920=this['editor'],_0x295279=_0x29f920['locale'];if(!_0x29f920['plugins']['has']('LegacyListEditing'))return;const _0x51a779=_0x29f920['plugins']['get']('TrackChangesEditing'),_0x2a75c6=_0x29f920['plugins']['has']('LegacyTodoListEditing');function _0x3f466b(_0x31bbcf){return()=>{const _0x3a54fc=_0x29f920['model']['document']['selection'],_0x3be6ea=_0x29f920['commands']['get'](_0x31bbcf);if(_0x3be6ea['value'])return void _0x29f920['execute']('paragraph',{});const _0x5340e5=_0x31bbcf['slice'](0x0,-0x4),_0x41dfe4=function(_0x5a00b0,_0x1dd686,_0x209a61){let _0x492cef=Array['from'](_0x5a00b0)['filter'](_0x3481c1=>function(_0x256f3e,_0x3f4a91){return _0x3f4a91['checkChild'](_0x256f3e['parent'],'listItem')&&!_0x3f4a91['isObject'](_0x256f3e);}(_0x3481c1,_0x209a61));_0x492cef=_0x492cef['filter'](_0x1d9c63=>!_0x1d9c63['is']('element','listItem')||_0x1d9c63['getAttribute']('listType')!=_0x1dd686);const _0x3eceab=new Set();for(const _0x463b7d of _0x492cef)_0x463b7d['is']('element','listItem')?_0x3eceab['add'](Le(_0x463b7d)):_0x3eceab['add'](_0x463b7d);return Array['from'](_0x3eceab);}(_0x3a54fc['getSelectedBlocks'](),_0x5340e5,_0x29f920['model']['schema']);_0x29f920['model']['change'](()=>{for(const _0x93bcb of _0x41dfe4)_0x51a779['markBlockFormat'](_0x93bcb,{'commandName':_0x31bbcf,'commandParams':[{'forceValue':!_0x3be6ea['value']}],'formatGroupId':'blockName'},Ee(_0x93bcb));});};}function _0xbd9cf4(_0x4621b9){return()=>{const _0x1ddac6=function(_0x1b0747){let _0x13b1d6=Array['from'](_0x1b0747);const _0x2a0977=_0x13b1d6['findIndex'](_0x241e63=>'listItem'!=_0x241e63['name']);return _0x2a0977>-0x1&&(_0x13b1d6=_0x13b1d6['slice'](0x0,_0x2a0977)),_0x13b1d6;}(_0x29f920['model']['document']['selection']['getSelectedBlocks']()),_0x56916e=_0x29f920['model']['createRange'](_0x29f920['model']['createPositionAt'](_0x1ddac6[0x0],'before'),_0x29f920['model']['createPositionAt'](_0x1ddac6[_0x1ddac6['length']-0x1],'end'));_0x29f920['model']['change'](()=>{_0x51a779['markBlockFormat'](_0x56916e,{'commandName':_0x4621b9,'commandParams':[],'formatGroupId':'listIndent'},function(_0xa3b988){const _0x11c7cb=new Set();for(const _0x54fe14 of _0xa3b988){let _0x368a4a=_0x54fe14['nextSibling'];for(;_0x368a4a&&_0x368a4a['getAttribute']('listIndent')>_0x54fe14['getAttribute']('listIndent');)_0x11c7cb['add'](_0x368a4a),_0x368a4a=_0x368a4a['nextSibling'];}return Array['from'](_0x11c7cb);}(_0x1ddac6));});};}_0x51a779['enableCommand']('numberedList',_0x3f466b('numberedList')),_0x51a779['enableCommand']('bulletedList',_0x3f466b('bulletedList')),_0x2a75c6&&_0x51a779['enableCommand']('todoList',_0x3f466b('todoList')),_0x51a779['enableCommand']('indentList',_0xbd9cf4('indentList')),_0x51a779['enableCommand']('outdentList',_0xbd9cf4('outdentList')),_0x2a75c6&&_0x51a779['enableCommand']('checkTodoList',()=>{const _0x44baa0=_0x29f920['commands']['get']('checkTodoList'),_0x12bfe2=Array['from'](_0x44baa0['_selectedElements']);_0x12bfe2['filter'](_0xcc840c=>_0xcc840c['getAttribute']('todoListChecked')!=_0x44baa0['value']),_0x29f920['model']['change'](()=>{for(const _0x5b6e13 of _0x12bfe2)_0x51a779['markBlockFormat'](_0x5b6e13,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x44baa0['value']}]});});}),_0x51a779['descriptionFactory']['registerElementLabel']('listItem',_0x179acd=>o(_0x295279,'ELEMENT_LIST_ITEM',_0x179acd)),_0x51a779['descriptionFactory']['registerDescriptionCallback'](_0xeaa239=>{if('formatBlock'!=_0xeaa239['type']&&'formatInline'!=_0xeaa239['type'])return;const {data:_0x58af86}=_0xeaa239;if(_0x58af86){if('numberedList'==_0x58af86['commandName']||'bulletedList'==_0x58af86['commandName']||'todoList'==_0x58af86['commandName'])switch(_0x58af86['commandName']['replace']('List','')){case'bulleted':return _0x39a33d(o(_0x295279,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39a33d(o(_0x295279,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39a33d(o(_0x295279,'ELEMENT_TODO_LIST'));}if('indentList'==_0x58af86['commandName'])return{'type':'format','content':o(_0x295279,'*Indent:*\x20%0',o(_0x295279,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x58af86['commandName'])return{'type':'format','content':o(_0x295279,'*Outdent:*\x20%0',o(_0x295279,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x58af86['commandName'])return _0x58af86['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x295279,'*Check\x20item*')}:{'type':'format','content':o(_0x295279,'*Uncheck\x20item*')};}function _0x39a33d(_0xd68697){return{'type':'format','content':o(_0x295279,'*Change\x20to:*\x20%0',_0xd68697)};}});}}function Le(_0x1b63c6){const _0x4a486e=_0x1b63c6['getAttribute']('listIndent');if(0x0==_0x4a486e)return _0x1b63c6;let _0x1a6b31=_0x1b63c6;for(;_0x1b63c6['previousSibling']&&_0x1b63c6['previousSibling']['is']('element','listItem');){const _0x3d9a72=_0x1b63c6['previousSibling']['getAttribute']('listIndent');if(_0x3d9a72==_0x4a486e)_0x1a6b31=_0x1b63c6['previousSibling'];else{if(_0x3d9a72<_0x4a486e)break;}_0x1b63c6=_0x1b63c6['previousSibling'];}return _0x1a6b31;}function Ee(_0x287be9){const _0x2d36f7=[];if(_0x287be9['is']('element','listItem')&&_0x287be9['getAttribute']('listIndent')>0x0){let _0x224f11=_0x287be9['nextSibling'];for(;_0x224f11&&'listItem'==_0x224f11['name']&&_0x224f11['getAttribute']('listIndent')==_0x287be9['getAttribute']('listIndent');)_0x2d36f7['push'](_0x224f11),_0x224f11=_0x224f11['nextSibling'];}return _0x2d36f7;}class ht extends _0x2bddd5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x59e271=this['editor']['config']['get']('list.properties'),_0x10e345=this['editor']['plugins']['get']('TrackChangesEditing');_0x59e271['styles']&&_0x10e345['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x59e271['reversed']&&_0x10e345['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x59e271['startIndex']&&_0x10e345['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x10e345['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1e5bc3,_0x42baf6={}){const _0xad051d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57b42d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xad051d['markMultiRangeBlockFormat'](_0x57b42d,{'commandName':'listStyle','commandParams':[{'type':_0x42baf6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xcd826c,_0x5c6e08={}){const _0x5a1d30=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bc0c9=this['_getSuggestionBlocks'](_0x1811e9=>_0x1811e9['is']('element','listItem')&&'numbered'===_0x1811e9['getAttribute']('listType'));if(_0x5bc0c9['length']<0x1)return;const _0x302608=_0x5bc0c9['map'](_0x9f1b82=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x9f1b82,'before'),this['editor']['model']['createPositionAt'](_0x9f1b82,0x0)));this['editor']['model']['change'](()=>{_0x5a1d30['markMultiRangeBlockFormat'](_0x302608,{'commandName':'listReversed','commandParams':[{'reversed':_0x5c6e08['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x44473f,_0x580f92={}){const _0x4e64f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1357ac=this['_getSuggestionBlocks'](_0xe5e590=>_0xe5e590['is']('element','listItem')&&'numbered'===_0xe5e590['getAttribute']('listType'));if(_0x1357ac['length']<0x1)return;const _0x27d280=_0x1357ac['map'](_0x2203aa=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2203aa,'before'),this['editor']['model']['createPositionAt'](_0x2203aa,0x0)));this['editor']['model']['change'](()=>{_0x4e64f6['markMultiRangeBlockFormat'](_0x27d280,{'commandName':'listStart','commandParams':[{'startIndex':_0x580f92['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x210659){if('formatBlock'!=_0x210659['type']&&'formatInline'!=_0x210659['type'])return;const _0x1ae1b2=this['editor']['locale'],{data:_0x161a99}=_0x210659;if(!_0x161a99)return;let _0x31d52f,_0x16684f;switch(_0x161a99['commandName']){case'listStyle':_0x31d52f='*Change\x20to:*\x20%0',_0x16684f={'type':'format','content':o(_0x1ae1b2,_0x31d52f,o(_0x1ae1b2,this['_getTranslationKeyForListStyle'](_0x161a99['commandParams'][0x0]['type'])))};break;case'listReversed':_0x31d52f=_0x161a99['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x16684f={'type':'format','content':o(_0x1ae1b2,_0x31d52f)};break;case'listStart':_0x31d52f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x16684f={'type':'format','content':o(_0x1ae1b2,_0x31d52f,_0x161a99['commandParams'][0x0]['startIndex'])};}return _0x16684f;}['_getSuggestionBlocksForListStyle'](){const _0x1e4bad=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b8fb6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5b8fb6[0x0]?.['is']('element','listItem')&&_0x5b8fb6['unshift'](..._0x1e4bad['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5b8fb6[_0x5b8fb6['length']-0x1]?.['is']('element','listItem')&&_0x5b8fb6['push'](..._0x1e4bad['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5b8fb6=[...new Set(_0x5b8fb6)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5b8fb6=_0x5b8fb6['filter'](_0x3b273a=>_0x3b273a['is']('element','listItem'))),_0x5b8fb6;}['_getSuggestionBlocks'](_0x53e70b){const _0x5de439=this['editor']['plugins']['get']('LegacyListUtils');let _0x39c04b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x53e70b)['map'](_0x372bf6=>{const _0x7370f1=this['editor']['model']['createPositionAt'](_0x372bf6,0x0);return[..._0x5de439['getSiblingNodes'](_0x7370f1,'backward'),..._0x5de439['getSiblingNodes'](_0x7370f1,'forward')];})['flat']();return _0x39c04b=[...new Set(_0x39c04b)],_0x39c04b;}['_getTranslationKeyForListStyle'](_0x4982a0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4982a0)||'default')['toUpperCase']()+'_LIST_'+_0x4982a0['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x2bddd5{['afterInit'](){const _0x173faf=this['editor'];if(!_0x173faf['plugins']['has']('MediaEmbedEditing'))return;const _0x5727b1=_0x173faf['plugins']['get']('TrackChangesEditing'),_0x3948ca=_0x173faf['locale'];_0x5727b1['enableCommand']('mediaEmbed'),_0x5727b1['descriptionFactory']['registerElementLabel']('media',_0x332802=>o(_0x3948ca,'ELEMENT_MEDIA',_0x332802)),_0x173faf['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x502ebf,{writer:_0x5e6ab9,options:_0x32bb31})=>{if(_0x32bb31['showSuggestionHighlights'])return _0x5e6ab9['createEmptyElement']('div');},'converterPriority':'high'}),_0x173faf['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5cdaac,_0x10c829,_0x2374b2)=>{_0x2374b2['options']['showSuggestionHighlights']&&_0x5cdaac['stop']();},{'priority':'high'});}}class lt extends _0x2bddd5{['afterInit'](){const _0x1b8d7f=this['editor'];_0x1b8d7f['plugins']['has']('MentionEditing')&&_0x1b8d7f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x2bddd5{['afterInit'](){const _0x892fca=this['editor'];if(!_0x892fca['plugins']['has']('MergeFieldsEditing'))return;const _0x5dd9d5=_0x892fca['plugins']['get']('TrackChangesEditing'),_0xe979cc=_0x892fca['locale'];_0x5dd9d5['enableCommand']('insertMergeField'),_0x5dd9d5['enableCommand']('insertMergeFieldBlock'),_0x5dd9d5['enableCommand']('insertMergeFieldImage'),_0x5dd9d5['descriptionFactory']['registerElementLabel']('mergeField',_0x1474e3=>o(_0xe979cc,'ELEMENT_MERGE_FIELD',_0x1474e3)),_0x5dd9d5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4704f0=>o(_0xe979cc,'ELEMENT_MERGE_FIELD',_0x4704f0)),_0x5dd9d5['descriptionFactory']['registerDescriptionCallback'](_0x6abc2a=>{if('insertion'!=_0x6abc2a['type']&&'deletion'!=_0x6abc2a['type'])return;const _0x394e61=_0x6abc2a['getContainedElement']();if(null==_0x394e61)return;const _0x1a35bd=_0x892fca['plugins']['get']('MergeFieldsEditing');let _0x186502;switch(_0x1a35bd['getMergeFieldType'](_0x394e61)){case null:return;case'image':{const _0x4fc9f5=_0x1a35bd['unwrapAffixes'](_0x394e61['getAttribute']('src'));_0x186502=_0x1a35bd['getLabel'](_0x4fc9f5)||_0x4fc9f5;break;}default:{const _0x250fc0=_0x394e61['getAttribute']('id');_0x186502=_0x1a35bd['getLabel'](_0x250fc0)||_0x250fc0;break;}}return'insertion'==_0x6abc2a['type']?{'type':'insertion','content':o(_0xe979cc,'*Insert:*\x20%0','\x22'+_0x186502+'\x22\x20'+o(_0xe979cc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xe979cc,'*Remove:*\x20%0','\x22'+_0x186502+'\x22\x20'+o(_0xe979cc,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x2bddd5{['afterInit'](){const _0x2b103b=this['editor'],_0x1b0c59=_0x2b103b['plugins']['get']('TrackChangesEditing');_0x2b103b['plugins']['has']('MultiLevelList')&&(_0x1b0c59['enableDefaultAttributesIntegration']('multiLevelList'),_0x1b0c59['registerBlockAttribute']('listMarkerStyle'),_0x1b0c59['descriptionFactory']['registerDescriptionCallback'](_0x327c99=>this['handleDescriptions'](_0x327c99)));}['handleDescriptions'](_0x4ade50){const _0x34460b=this['editor']['locale'],{data:_0x44e8b5}=_0x4ade50,_0x578bf8={'type':'format','content':''};if(_0x44e8b5&&'listMarkerStyle'==_0x44e8b5['key']){if(!_0x44e8b5['oldValue'])return{'type':'format','content':o(_0x34460b,'*Set\x20format:*\x20%0',o(_0x34460b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44e8b5['newValue']+')'};if(!_0x44e8b5['newValue']){let _0x145ca2=_0x4ade50['head'];for(;_0x145ca2;){if(_0x145ca2['data']&&'listType'==_0x145ca2['data']['key']&&_0x145ca2['data']['newValue'])return _0x578bf8;_0x145ca2=_0x145ca2['next'];}return{'type':'format','content':o(_0x34460b,'*Remove\x20format:*\x20%0',o(_0x34460b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44e8b5['oldValue']+')'};}}}}class pt extends _0x2bddd5{['afterInit'](){const _0x593795=this['editor'];if(!_0x593795['plugins']['has']('PageBreakEditing'))return;_0x593795['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x24bf65=_0x593795['plugins']['get']('TrackChangesEditing'),_0x2a3df2=_0x593795['locale'];_0x24bf65['descriptionFactory']['registerElementLabel']('pageBreak',_0x1cf840=>o(_0x2a3df2,'ELEMENT_PAGE_BREAK',_0x1cf840));}}class kt extends _0x2bddd5{['afterInit'](){const _0x4ea305=this['editor'];if(!_0x4ea305['plugins']['has']('Paragraph'))return;const _0x2e7ad5=_0x4ea305['locale'],_0x26f332=_0x4ea305['plugins']['get']('TrackChangesEditing');_0x26f332['descriptionFactory']['registerElementLabel']('paragraph',_0x245f2d=>o(_0x2e7ad5,'ELEMENT_PARAGRAPH',_0x245f2d)),_0x26f332['enableDefaultAttributesIntegration']('paragraph'),_0x26f332['enableCommand']('insertParagraph'),_0x4ea305['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4ea305),{'priority':'highest'}),_0x4ea305['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2c8938,_0x1aa7db,_0xc8433e)=>{_0xc8433e['options']['showSuggestionHighlights']&&nr(_0x4ea305,{'showActiveMarker':!0x1})(_0x2c8938,_0x1aa7db,_0xc8433e);},{'priority':'highest'});const _0x47797e=_0x26f332['descriptionFactory'];_0x47797e['registerDescriptionCallback'](_0xa826b4=>{if('insertion'!==_0xa826b4['type'])return;const {start:_0x4ffb5d,end:_0x1a9811}=_0xa826b4['getFirstRange']();if(!_0x4ffb5d['isTouching'](_0x1a9811)||!_0x4ffb5d['nodeAfter'])return;const _0x44d621=_0x4ea305['model']['schema'],_0x28f9cc=_0x4ffb5d['nodeAfter'];return _0x44d621['isBlock'](_0x28f9cc)&&!_0x44d621['isLimit'](_0x28f9cc)&&_0x44d621['checkChild'](_0x28f9cc,'$text')?{'type':'insertion','content':o(_0x2e7ad5,'*Insert:*\x20%0',_0x47797e['getItemLabel'](_0x28f9cc,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x319d9c=this['editor'],_0x26617b=_0x319d9c['locale'];_0x319d9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf6aa1d=>{if('formatBlock'!=_0xf6aa1d['type'])return;const {data:_0x2c960d}=_0xf6aa1d;return _0x2c960d&&'paragraph'==_0x2c960d['commandName']?{'type':'format','content':o(_0x26617b,'*Change\x20to:*\x20%0',o(_0x26617b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x573177,{showActiveMarker:_0x33d30f=!0x0}={}){return(_0x51acb3,_0x198097,_0x28b422)=>{const _0x274a2b=_0x573177['plugins']['get']('TrackChangesEditing'),_0x1d9b54=_0x198097['markerRange']['start'],_0x3e0476=_0x198097['markerRange']['end'],_0x5a84b4=_0x573177['model']['schema'];if(!_0x1d9b54['isTouching'](_0x3e0476)||!_0x1d9b54['nodeAfter'])return;const _0x3444b4=_0x1d9b54['nodeAfter'];if(_0x5a84b4['isBlock'](_0x3444b4)&&!_0x5a84b4['isLimit'](_0x3444b4)&&_0x5a84b4['checkChild'](_0x3444b4,'$text')){if(!_0x28b422['consumable']['consume'](_0x198097['markerRange'],_0x51acb3['name']))return;const {id:_0x593346,authorId:_0x265dd2}=_0x274a2b['_splitMarkerName'](_0x198097['markerName']),_0x449fa9=_0x28b422['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x593346,'data-author-id':_0x265dd2}),_0x3e1709=_0x28b422['mapper']['toViewPosition'](_0x3e0476);_0x33d30f&&_0x274a2b['activeMarkers']['includes'](_0x198097['markerName'])&&_0x28b422['writer']['addClass']('ck-suggestion-marker--active',_0x449fa9),_0x28b422['writer']['insert'](_0x3e1709,_0x449fa9),_0x28b422['mapper']['bindElementToMarker'](_0x449fa9,_0x198097['markerName']);}};}class wt extends _0x2bddd5{['afterInit'](){const _0x25867b=this['editor'];_0x25867b['commands']['get']('replaceSource')&&_0x25867b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x2bddd5{['afterInit'](){const _0x22491d=this['editor'];if(!_0x22491d['plugins']['has']('RemoveFormatEditing'))return;_0x22491d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f2b0=this['editor'];_0x3f2b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2183a8=>{if('formatBlock'!=_0x2183a8['type']&&'formatInline'!=_0x2183a8['type'])return;const {data:_0x337e25}=_0x2183a8;return _0x337e25&&'removeFormat'==_0x337e25['commandName']?{'type':'format','content':o(_0x3f2b0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x2bddd5{['afterInit'](){const _0x37b178=this['editor'];if(!_0x37b178['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3b5964=_0x37b178['plugins']['get']('TrackChangesEditing');_0x3b5964['enableCommand']('goToPreviousRestrictedEditingException'),_0x3b5964['enableCommand']('goToNextRestrictedEditingException');const _0x3d67b1=_0x37b178['plugins']['get']('RestrictedEditingModeEditing');_0x3d67b1['enableCommand']('trackChanges'),_0x3d67b1['enableCommand']('acceptSuggestion'),_0x3d67b1['enableCommand']('discardSuggestion'),_0x3d67b1['enableCommand']('acceptAllSuggestions'),_0x3d67b1['enableCommand']('discardAllSuggestions'),_0x3d67b1['enableCommand']('acceptSelectedSuggestions'),_0x3d67b1['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x2bddd5{['afterInit'](){const _0x481705=this['editor'];if(!_0x481705['plugins']['has']('ShiftEnter'))return;const _0x46059c=_0x481705['plugins']['get']('TrackChangesEditing');_0x46059c['enableCommand']('shiftEnter'),_0x481705['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x481705),{'priority':'high'}),_0x481705['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x481705),{'priority':'high'}),_0x481705['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x193fa7,_0x5a6381,_0x517863)=>{_0x517863['options']['showSuggestionHighlights']&&je(_0x481705,{'showActiveMarker':!0x1})(_0x193fa7,_0x5a6381,_0x517863);}),_0x46059c['descriptionFactory']['registerElementLabel']('softBreak',_0x2af5ae=>o(_0x481705['locale'],'ELEMENT_LINE_BREAK',_0x2af5ae));}}function je(_0x27eb9e,{showActiveMarker:_0x5709ba=!0x0}={}){return(_0x134155,_0x53221a,_0x4f169c)=>{const _0x4b594f=_0x27eb9e['plugins']['get']('TrackChangesEditing');if(!_0x4f169c['consumable']['test'](_0x53221a['markerRange'],_0x134155['name']))return;const _0x39f3e8=_0x27eb9e['model'];for(const _0x9d5681 of _0x53221a['markerRange']['getItems']()){if(!_0x9d5681['is']('element','softBreak'))continue;const _0x2fd7d5='deletion'==_0x53221a['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x52a059,authorId:_0x40a078}=_0x4b594f['_splitMarkerName'](_0x53221a['markerName']),_0x535442=_0x4f169c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2fd7d5,'data-suggestion':_0x52a059,'data-author-id':_0x40a078}),_0x4e90f7=_0x4f169c['mapper']['toViewPosition'](_0x39f3e8['createPositionBefore'](_0x9d5681));_0x5709ba&&_0x4b594f['activeMarkers']['includes'](_0x53221a['markerName'])&&_0x4f169c['writer']['addClass']('ck-suggestion-marker--active',_0x535442),_0x4f169c['writer']['insert'](_0x4e90f7,_0x535442),_0x4f169c['mapper']['bindElementToMarker'](_0x535442,_0x53221a['markerName']);}};}class St extends _0x2bddd5{['afterInit'](){const _0x8e3fe9=this['editor'],_0x5aa7f2=_0x8e3fe9['model'],_0x4b1ab2=_0x8e3fe9['locale'];if(!_0x8e3fe9['plugins']['has']('StandardEditingModeEditing'))return;const _0x5987d9=_0x8e3fe9['plugins']['get']('TrackChangesEditing'),_0x25bd55='restrictedEditingException',_0x35ac48=_0x8e3fe9['commands']['get'](_0x25bd55);_0x5987d9['enableCommand'](_0x25bd55,(_0x5a83eb,_0x3fe4f2={})=>{const _0x29dca8=_0x5aa7f2['document']['selection'];if(_0x29dca8['isCollapsed'])return void _0x5a83eb(_0x3fe4f2);const _0x14ecab=void 0x0!==_0x3fe4f2['forceValue']?_0x3fe4f2['forceValue']:!_0x35ac48['value'];_0x5aa7f2['change'](()=>{const _0x39af25=Array['from'](_0x29dca8['getRanges']());for(const _0x5a1438 of _0x39af25){const _0x5d675c=_0x14ecab?[_0x5a1438]:io(_0x25bd55,_0x5a1438,_0x5aa7f2);for(const _0x178bb1 of _0x5d675c)_0x5987d9['markInlineFormat'](_0x178bb1,{'commandName':_0x25bd55,'commandParams':[{'forceValue':_0x14ecab}]});}});}),_0x5987d9['descriptionFactory']['registerDescriptionCallback'](_0x2cd981=>{if('formatBlock'!=_0x2cd981['type']&&'formatInline'!=_0x2cd981['type'])return;const {data:_0x34a5cf}=_0x2cd981;return _0x34a5cf&&_0x34a5cf['commandName']==_0x25bd55?_0x34a5cf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b1ab2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4b1ab2,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x2bddd5{['afterInit'](){const _0x25fa7a=this['editor'];if(!_0x25fa7a['plugins']['has']('Style')||!_0x25fa7a['plugins']['has']('DataSchema'))return;const _0x492df8=_0x25fa7a['plugins']['get']('TrackChangesEditing'),_0x454a44=_0x25fa7a['locale'],_0x2975e9=_0x25fa7a['config']['get']('style')||{},_0x39f5be=_0x25fa7a['plugins']['get']('GeneralHtmlSupport'),_0x5aa3e5=_0x25fa7a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x25fa7a['plugins']['get']('DataSchema'),_0x2975e9['definitions']);_0x492df8['enableDefaultAttributesIntegration']('style');const _0x1868be=new Set();for(const _0x26087e of _0x5aa3e5['block']){const _0x43edd9=_0x39f5be['getGhsAttributeNameForElement'](_0x26087e['element']);_0x1868be['add'](_0x43edd9);}const _0x540b7e=new Set();for(const _0x3987dd of _0x5aa3e5['inline']){const _0x4da99c=_0x39f5be['getGhsAttributeNameForElement'](_0x3987dd['element']);_0x540b7e['add'](_0x4da99c);for(const _0x2fc481 of _0x3987dd['ghsAttributes'])_0x540b7e['add'](_0x2fc481);}for(const _0x287101 of _0x1868be)_0x492df8['registerBlockAttribute'](_0x287101),_0x492df8['descriptionFactory']['registerAttributeLabel'](_0x287101,o(_0x454a44,'FORMAT_STYLE'));for(const _0x4d0ee2 of _0x540b7e)_0x492df8['registerInlineAttribute'](_0x4d0ee2),_0x492df8['descriptionFactory']['registerAttributeLabel'](_0x4d0ee2,o(_0x454a44,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e991c=this['editor'],_0x5cb858=_0x5e991c['locale'];_0x5e991c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c8f5b=>{if('formatBlock'!=_0x4c8f5b['type']&&'formatInline'!=_0x4c8f5b['type'])return;const {data:_0x1f9305}=_0x4c8f5b;return _0x1f9305&&'style'===_0x1f9305['commandName']?_0x1f9305['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5cb858,'*Set\x20format:*\x20%0',_0x1f9305['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5cb858,'*Remove\x20format:*\x20%0',_0x1f9305['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x2bddd5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x233f21){super(_0x233f21),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4d15ae=this['editor'],_0x36d7ea=_0x4d15ae['model']['document']['selection'];if(!_0x4d15ae['plugins']['has']('TableEditing'))return;const _0x50906b=_0x4d15ae['locale'],_0x2c753e=_0x4d15ae['plugins']['get']('TrackChangesEditing'),_0xf7dad9=_0x4d15ae['plugins']['get']('TableUtils');_0x2c753e['descriptionFactory']['registerElementLabel']('table',_0x4c6037=>o(_0x50906b,'ELEMENT_TABLE',_0x4c6037)),this['_setupColumnsRowsFixing'](),_0x2c753e['enableCommand']('insertTable'),_0x2c753e['enableCommand']('selectTableRow'),_0x2c753e['enableCommand']('selectTableColumn');for(const _0x3e63b4 of['insertTableRowAbove','insertTableRowBelow']){const _0x1ebfc7=_0x4d15ae['commands']['get'](_0x3e63b4);_0x2c753e['enableCommand'](_0x3e63b4,_0x54c4d5=>{_0x4d15ae['model']['change'](_0x41099b=>{_0x54c4d5();const _0x1ce612='above'===_0x1ebfc7['order'],_0x4ff333=_0xf7dad9['getSelectionAffectedTableCells'](_0x36d7ea),_0x5aa14a=_0xf7dad9['getRowIndexes'](_0x4ff333),_0x390c5d=_0x1ce612?_0x5aa14a['first']-0x1:_0x5aa14a['last']+0x1,_0xb5ba84=_0x4ff333[0x0]['findAncestor']('table'),_0x3fe06a=_0xf7dad9['createTableWalker'](_0xb5ba84,{'startRow':_0x390c5d,'endRow':_0x390c5d}),_0xe455d2=Array['from'](_0x3fe06a)['map'](_0x4438e4=>_0x41099b['createRangeOn'](_0x4438e4['cell']));_0x2c753e['markMultiRangeInsertion'](_0xe455d2,'tableRow');});});}for(const _0x19d905 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3da91d=_0x4d15ae['commands']['get'](_0x19d905);_0x2c753e['enableCommand'](_0x19d905,_0x903ffd=>{_0x4d15ae['model']['change'](_0x2f4201=>{_0x903ffd();const _0x5b5f72='left'===_0x3da91d['order'],_0x4cc01c=_0xf7dad9['getSelectionAffectedTableCells'](_0x36d7ea),_0x1ae422=_0xf7dad9['getColumnIndexes'](_0x4cc01c),_0x506d6b=_0x5b5f72?_0x1ae422['first']-0x1:_0x1ae422['last']+0x1,_0x347090=_0x4cc01c[0x0]['findAncestor']('table'),_0x33853a=_0xf7dad9['createTableWalker'](_0x347090,{'startRow':0x0,'column':_0x506d6b,'includeAllSlots':!0x1}),_0x3244da=Array['from'](_0x33853a)['map'](_0x191a93=>_0x2f4201['createRangeOn'](_0x191a93['cell']));_0x2c753e['markMultiRangeInsertion'](_0x3244da,'tableColumn');});});}for(const _0xe4582e of['removeTableRow','removeTableColumn']){const _0x9eed1b=_0xe4582e['substr'](0xb),_0x14bdb5=_0x9eed1b['toLowerCase'](),_0x10b600=_0x14bdb5['substr'](0x0,0x3)+'span',_0x57f2d7='table'+_0x9eed1b,_0x189cd2='min'+_0x9eed1b,_0x418388='max'+_0x9eed1b;_0x2c753e['enableCommand'](_0xe4582e,()=>{_0x4d15ae['model']['change'](_0x448b1e=>{const _0x58f879=_0xf7dad9['getSelectionAffectedTableCells'](_0x36d7ea),_0x13271d=_0x58f879[0x0]['findAncestor']('table');let _0x41208f;if('removeTableRow'==_0xe4582e){const _0x2204bd=_0xf7dad9['getRowIndexes'](_0x58f879);_0x41208f={'startRow':_0x2204bd['first'],'endRow':_0x2204bd['last'],'includeAllSlots':!0x0};}else{const _0x411989=_0xf7dad9['getColumnIndexes'](_0x58f879);_0x41208f={'startColumn':_0x411989['first'],'endColumn':_0x411989['last'],'includeAllSlots':!0x0};}const _0x26c975=_0xf7dad9['createTableWalker'](_0x13271d,_0x41208f),_0x178f1b=Array['from'](_0x26c975)['map'](({cell:_0xdb9510})=>_0xdb9510),_0x121cf2=Ne(_0x178f1b['filter'](_0x7ca53a=>_0x7ca53a['hasAttribute'](_0x10b600))),_0x485be9=Ne(_0x178f1b['filter'](_0x5bc5da=>!_0x5bc5da['hasAttribute'](_0x10b600)))['map'](_0x1dc327=>_0x448b1e['createRangeOn'](_0x1dc327)),_0xd882dc=_0x2c753e['markMultiRangeDeletion'](_0x485be9,_0x57f2d7);if(_0xd882dc&&('tableRow'==_0xd882dc['subType']||'tableColumn'==_0xd882dc['subType'])){const _0x1b1c38=this['_getSuggestionCoords'](_0xd882dc);for(const _0x2ce783 of _0x121cf2){const _0x18df3d=_0x448b1e['createRangeOn'](_0x2ce783),_0x147732=_0xf7dad9['getCellLocation'](_0x2ce783),_0x4cba61=_0x2ce783['getAttribute'](_0x10b600)-0x1,_0xe71fa8=_0x1b1c38[_0x189cd2],_0x36f674=_0x1b1c38[_0x418388];_0xe71fa8<=_0x147732[_0x14bdb5]&&_0x147732[_0x14bdb5]+_0x4cba61<=_0x36f674&&_0xd882dc['addRange'](_0x18df3d);}}});});}function _0x404a63(_0x4a7291){const _0x3254e4=Array['from'](_0x36d7ea['getRanges']())['map'](_0x57d1b2=>_0xd7f50['fromRange'](_0x57d1b2));_0x4d15ae['model']['change'](_0x4bb260=>{const _0x10bbc4=_0x4bb260['batch'];_0x4a7291=_0x4a7291['filter'](_0x2a9bfe=>'$graveyard'!=_0x2a9bfe['root']['rootName']),_0x4bb260['setSelection'](_0x4a7291),_0x4d15ae['commands']['get']('removeTableRow')['refresh'](),_0x4d15ae['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4d15ae['model']['enqueueChange'](()=>{_0x4d15ae['model']['enqueueChange'](_0x10bbc4,_0x2689aa=>{const _0x5aaf47=_0x3254e4['filter'](_0x3a6c43=>'$graveyard'!=_0x3a6c43['root']['rootName']);_0x5aaf47['length']>0x0&&_0x2689aa['setSelection'](_0x5aaf47);for(const _0x37cdda of _0x3254e4)_0x37cdda['detach']();});});});}function _0x259941(_0x2790bb){_0x4d15ae['model']['change'](_0xf6cc6f=>{const _0xa1ee11=Array['from'](_0x36d7ea['getRanges']())['map'](_0x33b01d=>_0xd7f50['fromRange'](_0x33b01d)),_0x26e934=[];for(const _0x47aca9 of _0x2790bb)for(const _0x31143b of _0x47aca9['getItems']({'shallow':!0x0}))_0x26e934['push'](_0x31143b);for(const _0x5b0b99 of _0x26e934)'$graveyard'!=_0x5b0b99['root']['rootName']&&(_0xf6cc6f['setSelection'](_0xf6cc6f['createPositionAt'](_0x5b0b99,0x0)),_0x4d15ae['commands']['get']('removeTableColumn')['refresh'](),_0x4d15ae['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x6c4cfb=_0xa1ee11['filter'](_0x14d6ea=>'$graveyard'!=_0x14d6ea['root']['rootName']);_0x6c4cfb['length']>0x0&&_0xf6cc6f['setSelection'](_0x6c4cfb);for(const _0x5dc2db of _0xa1ee11)_0x5dc2db['detach']();});}function _0x1490d3(_0x5825c4,_0x273825){return _0x273825['every'](_0xdd570=>_0x5825c4['some'](_0x6c69cc=>_0x6c69cc['end']['isEqual'](_0xdd570['start'])||_0xdd570['end']['isEqual'](_0x6c69cc['start'])));}function _0x20c972(_0xba095e,_0x2c8c7f){return!_0xba095e['some'](_0x5531cd=>_0x2c8c7f['some'](_0x4f63fe=>_0x5531cd['isIntersecting'](_0x4f63fe)))&&_0xba095e['some'](_0x45e2b9=>_0x2c8c7f['some'](_0x1d608d=>_0x45e2b9['end']['isTouching'](_0x1d608d['start'])));}_0x4d15ae['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47ff0a,_0xe4e826,_0x3011d3)=>{if(!_0x3011d3['options']['showSuggestionHighlights'])return;const _0x331d91=_0xe4e826['item'];if(!_0x331d91||!_0x331d91['is']('element','tableCell'))return;const _0x5a0e5e=_0x3011d3['mapper']['toViewElement'](_0x331d91);if(_0x5a0e5e){const {id:_0x106a82,authorId:_0x1a2a21}=_0x2c753e['_splitMarkerName'](_0xe4e826['markerName']);_0x53eb21(_0x5a0e5e,_0x3011d3['writer'],(_0x3657d9,_0x4beb1d,_0x287d4e)=>{_0x287d4e['addClass'](_0xbaf344(_0x4beb1d['classes']),_0x3657d9),_0x287d4e['setAttribute']('data-suggestion-id',_0x106a82,_0x3657d9),_0x287d4e['setAttribute']('data-author-id',_0x1a2a21,_0x3657d9);},(_0x35b121,_0x408660,_0x136928)=>{_0x136928['removeClass'](_0xbaf344(_0x408660['classes']),_0x35b121),_0x136928['removeAttribute']('data-suggestion-id',_0x35b121),_0x136928['removeAttribute']('data-author-id',_0x35b121);});}},{'priority':'highest'}),_0x2c753e['descriptionFactory']['registerDescriptionCallback'](_0xbfc4f=>{if('insertion'!=_0xbfc4f['type']&&'deletion'!=_0xbfc4f['type'])return;const _0x17dda7=_0xbfc4f['getContainedElement']();if(null!=_0x17dda7&&_0x17dda7['is']('element','table')){if('insertion'==_0xbfc4f['type']){const _0x1cb4cb=_0xbfc4f['getItems']()['filter'](_0x233cf1=>_0x233cf1['is']('$textProxy'))['map'](_0x3b668c=>_0x3b668c['data']);if(_0x1cb4cb['length'])return{'type':'insertion','content':o(_0x50906b,'*Insert:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1cb4cb['join']('\x20')+'\x22'))};}if('deletion'==_0xbfc4f['type']){const _0x58df75=_0xbfc4f['getItems']()['filter'](_0x2173f5=>_0x2173f5['is']('$textProxy'))['map'](_0x47c0f5=>_0x47c0f5['data']);if(_0x58df75['length'])return{'type':'deletion','content':o(_0x50906b,'*Remove:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x58df75['join']('\x20')+'\x22'))};}}}),_0x2c753e['descriptionFactory']['registerDescriptionCallback'](_0x10de6d=>{if('tableRow'==_0x10de6d['subType']){const _0x5c9a8e=_0x10de6d['getItems']()['filter'](_0x375f32=>_0x375f32['is']('$textProxy'))['map'](_0x5287ec=>_0x5287ec['data']),_0xedecd1=this['_getSuggestionCoords'](_0x10de6d),_0x43c3dc=_0xedecd1['maxRow']-_0xedecd1['minRow']+0x1;if('insertion'==_0x10de6d['type'])return _0x5c9a8e['length']?{'type':'insertion','content':o(_0x50906b,'*Insert:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x43c3dc,'\x22'+_0x5c9a8e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50906b,'*Insert:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_ROW',_0x43c3dc))};if('deletion'==_0x10de6d['type'])return _0x5c9a8e['length']?{'type':'deletion','content':o(_0x50906b,'*Remove:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x43c3dc,'\x22'+_0x5c9a8e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50906b,'*Remove:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_ROW',_0x43c3dc))};}if('tableColumn'==_0x10de6d['subType']){const _0x420d57=_0x10de6d['getItems']()['filter'](_0x8ebe89=>_0x8ebe89['is']('$textProxy'))['map'](_0x52adb6=>_0x52adb6['data']),_0x269a49=this['_getSuggestionCoords'](_0x10de6d),_0x39d7c9=_0x269a49['maxColumn']-_0x269a49['minColumn']+0x1;if('insertion'==_0x10de6d['type'])return _0x420d57['length']?{'type':'insertion','content':o(_0x50906b,'*Insert:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x39d7c9,'\x22'+_0x420d57['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50906b,'*Insert:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_COLUMN',_0x39d7c9))};if('deletion'==_0x10de6d['type'])return _0x420d57['length']?{'type':'deletion','content':o(_0x50906b,'*Remove:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x39d7c9,'\x22'+_0x420d57['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50906b,'*Remove:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_COLUMN',_0x39d7c9))};}}),_0x2c753e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x404a63),_0x2c753e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x404a63),_0x2c753e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x259941),_0x2c753e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x259941),_0x2c753e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1490d3),_0x2c753e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1490d3),_0x2c753e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x20c972),_0x2c753e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x20c972);}['_acceptFormatSuggestionCallbackFactory'](){const _0x37edf2=this['editor'],_0x24f08c=_0x37edf2['model']['document']['selection'];return(_0x44fbcd,_0x438af1)=>{_0x37edf2['model']['change'](_0x9e0d19=>{const {commandName:_0x37d894,commandParams:_0x3e2cf1}=_0x438af1;let _0x2b7f77=_0x44fbcd[0x0]['end']['nodeBefore'];_0x3e2cf1&&_0x3e2cf1[0x0]&&!0x1===_0x3e2cf1[0x0]['forceValue']&&(_0x2b7f77=_0x44fbcd[0x0]['start']['nodeAfter']);const _0x31d894=_0x9e0d19['createRangeIn'](_0x2b7f77);if('$graveyard'==_0x31d894['root']['rootName'])return;const _0x3b1f22=Array['from'](_0x24f08c['getRanges']())['map'](_0x47707d=>_0xd7f50['fromRange'](_0x47707d));_0x9e0d19['setSelection'](_0x31d894),_0x37edf2['commands']['get'](_0x37d894)['refresh'](),_0x3e2cf1['push']({'forceDefaultExecution':!0x0}),_0x37edf2['execute'](_0x37d894,..._0x3e2cf1);const _0x9736df=_0x3b1f22['filter'](_0x30be94=>'$graveyard'!=_0x30be94['root']['rootName']);_0x9736df['length']>0x0&&_0x9e0d19['setSelection'](_0x9736df);for(const _0x5de2ef of _0x3b1f22)_0x5de2ef['detach']();});};}['_getCoordsForCells'](_0x26c264){const _0x5a9fdf=this['editor']['plugins']['get']('TableUtils');let _0x493f01=Number['MAX_SAFE_INTEGER'],_0x284be3=Number['MIN_SAFE_INTEGER'],_0x2d55ab=Number['MAX_SAFE_INTEGER'],_0x5e0d29=Number['MIN_SAFE_INTEGER'];for(const _0x4c9e6b of _0x26c264){if('$graveyard'==_0x4c9e6b['root']['rootName'])continue;const {row:_0x50a514,column:_0x4aae97}=_0x5a9fdf['getCellLocation'](_0x4c9e6b),_0xfa461e=_0x4c9e6b['hasAttribute']('rowspan')?_0x4c9e6b['getAttribute']('rowspan')-0x1:0x0,_0x54b90a=_0x4c9e6b['hasAttribute']('colspan')?_0x4c9e6b['getAttribute']('colspan')-0x1:0x0;_0x493f01=_0x50a514<_0x493f01?_0x50a514:_0x493f01,_0x284be3=_0x50a514+_0xfa461e>_0x284be3?_0x50a514+_0xfa461e:_0x284be3,_0x2d55ab=_0x4aae97<_0x2d55ab?_0x4aae97:_0x2d55ab,_0x5e0d29=_0x4aae97+_0x54b90a>_0x5e0d29?_0x4aae97+_0x54b90a:_0x5e0d29;}return{'minRow':_0x493f01,'maxRow':_0x284be3,'minColumn':_0x2d55ab,'maxColumn':_0x5e0d29};}['_setupColumnsRowsFixing'](){const _0x192fb5=this['editor'],_0x5d732d=_0x192fb5['plugins']['get']('TrackChangesEditing'),_0x133393=_0x192fb5['plugins']['get']('TableUtils');_0x192fb5['model']['document']['on']('change:data',()=>{const _0x95e794=Array['from'](_0x192fb5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf7cbf9,data:_0x305344}of _0x95e794){const {group:_0x204426,id:_0x4abbcd,subType:_0x28dc8d}=_0x5d732d['_splitMarkerName'](_0xf7cbf9);if('suggestion'!=_0x204426)continue;if(null!=_0x305344['oldRange'])continue;const _0x2174bf=_0x5d732d['getSuggestion'](_0x4abbcd);this['_tablePostFixingSubtypes']['includes'](_0x28dc8d)&&this['_tableSuggestions']['add'](_0x2174bf);}},{'priority':'low'});const _0x219810=(_0x2c7649,_0x2bc9c4)=>{let _0x19d16c=!0x1;const _0x2c28c4=_0x2bc9c4['createRangeOn'](_0x2c7649),_0x7c6cc6=_0x2c7649['findAncestor']('table'),_0x22e9f5=_0x133393['getCellLocation'](_0x2c7649);for(const _0x258570 of this['_tableSuggestions']){const _0x215acd=_0x258570['subType'],_0x1d3b75=_0x215acd['startsWith']('tablePaste'),_0x2ff97a=_0x215acd['substr'](_0x1d3b75?0xa:0x5),_0x26c84c=_0x2ff97a['toLowerCase'](),_0xa42205=_0x26c84c['substr'](0x0,0x3)+'span',_0x5ad959='min'+_0x2ff97a,_0x177782='max'+_0x2ff97a;if(!_0x258570['isInContent'])continue;if(_0x7c6cc6!=_0x258570['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x258570['isIntersectingWithRange'](_0x2c28c4))continue;const _0x17f241=_0x2c7649['hasAttribute'](_0xa42205)?_0x2c7649['getAttribute'](_0xa42205)-0x1:0x0,_0xedebf5=this['_getSuggestionCoords'](_0x258570),_0x4ba5f1=_0xedebf5[_0x5ad959],_0x14f44b=_0xedebf5[_0x177782];_0x4ba5f1<=_0x22e9f5[_0x26c84c]&&_0x22e9f5[_0x26c84c]+_0x17f241<=_0x14f44b&&(_0x258570['addRange'](_0x2c28c4),_0x19d16c=!0x0);}return _0x19d16c;};_0x192fb5['model']['document']['registerPostFixer'](_0x6150a2=>{let _0x4dc809=!0x1;for(const _0x48e591 of _0x192fb5['model']['document']['differ']['getChanges']())if('insert'==_0x48e591['type']){if('tableRow'==_0x48e591['name']){for(const _0x5b2c35 of _0x48e591['position']['nodeAfter']['getChildren']())_0x4dc809=_0x4dc809||_0x219810(_0x5b2c35,_0x6150a2);}else'tableCell'==_0x48e591['name']&&(_0x4dc809=_0x4dc809||_0x219810(_0x48e591['position']['nodeAfter'],_0x6150a2));}return _0x4dc809;});}['_getSuggestionCoords'](_0x3a0c79){return this['_getCoordsForCells'](_0x3a0c79['getRanges']()['map'](_0x410e58=>_0x410e58['start']['nodeAfter']));}}function Ne(_0x1ad233){return Array['from'](new Set(_0x1ad233)['values']());}class _t extends _0x2bddd5{static get['requires'](){return[At];}['afterInit'](){const _0x4000c6=this['editor'],_0xeb9802=_0x4000c6['model']['document']['selection'],_0x144f13=_0x4000c6['locale'];if(!_0x4000c6['plugins']['has']('TableEditing'))return;const _0x2761fa=_0x4000c6['plugins']['get']('TrackChangesEditing'),_0x4d4a3e=_0x4000c6['plugins']['get']('TableUtils'),_0x1cca7d=_0x4000c6['plugins']['get'](At);_0x1cca7d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2761fa['enableCommand']('mergeTableCells',()=>{const _0x410e7c=_0x4d4a3e['getSelectionAffectedTableCells'](_0x4000c6['model']['document']['selection']);_0x4000c6['model']['change'](()=>{_0x2761fa['markMultiRangeBlockFormat'](_0x410e7c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4000c6['commands']['get']('mergeTableCells')['on']('execute',(_0x151084,_0x1fef0f)=>{_0x4000c6['commands']['get']('trackChanges')['value']&&(_0x1fef0f['length']>0x0&&_0x1fef0f[_0x1fef0f['length']-0x1]&&_0x1fef0f[_0x1fef0f['length']-0x1]['forceDefaultExecution']||_0x2761fa['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x151084['stop']());},{'priority':'highest'});for(const _0x944939 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1e372e=_0x4000c6['commands']['get'](_0x944939);_0x2761fa['enableCommand'](_0x944939,()=>{const _0x497432=_0x4000c6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xee0bd9=>_0xee0bd9['is']('element','tableCell')),_0x2465af=_0x1e372e['value'];_0x4000c6['model']['change'](()=>{_0x2761fa['markMultiRangeBlockFormat']([_0x497432,_0x2465af],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1f3557 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x463159=_0x4000c6['commands']['get'](_0x1f3557);_0x2761fa['enableCommand'](_0x1f3557,()=>{const _0x2a4cbb=_0x4d4a3e['getSelectionAffectedTableCells'](_0x4000c6['model']['document']['selection'])[0x0],_0x44b548=_0x2a4cbb['findAncestor']('table'),{column:_0x1871d2,row:_0x569dc6}=_0x4d4a3e['getCellLocation'](_0x2a4cbb);let _0x50dcef=[];if('horizontally'==_0x463159['direction']){const _0x90d2fc=_0x4d4a3e['createTableWalker'](_0x44b548,{'startRow':_0x569dc6,'endRow':_0x569dc6,'includeAllSlots':!0x0});_0x50dcef=Array['from'](_0x90d2fc)['map'](_0x4490e4=>_0x4490e4['cell']);}else{const _0x34ae27=_0x4d4a3e['createTableWalker'](_0x44b548,{'column':_0x1871d2,'includeAllSlots':!0x0});_0x50dcef=Array['from'](_0x34ae27)['map'](_0x43ba6c=>_0x43ba6c['cell']);}_0x4000c6['model']['change'](_0x5105ec=>{_0x2761fa['markBlockFormat'](_0x5105ec['createRangeOn'](_0x2a4cbb),{'commandName':_0x1f3557,'commandParams':[]},_0x50dcef,_0x1f3557);});});}_0x2761fa['descriptionFactory']['registerDescriptionCallback'](_0x166e99=>{if('formatBlock'!=_0x166e99['type']&&'formatInline'!=_0x166e99['type'])return;const {data:_0x5056e4}=_0x166e99;return _0x5056e4&&'mergeTableCells'==_0x5056e4['commandName']?{'type':'format','content':o(_0x144f13,'*Merge\x20cells*')}:void 0x0;}),_0x2761fa['descriptionFactory']['registerDescriptionCallback'](_0xbdcfc7=>{if('formatBlock'!=_0xbdcfc7['type']&&'formatInline'!=_0xbdcfc7['type'])return;const {data:_0x3b01b3}=_0xbdcfc7;return _0x3b01b3?'splitTableCellVertically'==_0x3b01b3['commandName']?{'type':'format','content':o(_0x144f13,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3b01b3['commandName']?{'type':'format','content':o(_0x144f13,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x32205f=_0x1cca7d['_acceptFormatSuggestionCallbackFactory']();for(const _0xdf7d6e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2761fa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xdf7d6e,'accept',_0x32205f);for(const _0x4e731f of['splitTableCellVertically','splitTableCellHorizontally'])_0x2761fa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e731f,'accept',_0x32205f);_0x2761fa['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x554053=>{_0x4000c6['model']['change'](_0x304528=>{const _0x1f967c=Array['from'](_0xeb9802['getRanges']())['map'](_0x148da7=>_0xd7f50['fromRange'](_0x148da7));_0x304528['setSelection'](_0x554053),_0x4000c6['commands']['get']('mergeTableCells')['refresh'](),_0x4000c6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x336fcc=_0x1f967c['filter'](_0x337aba=>'$graveyard'!=_0x337aba['root']['rootName']);_0x336fcc['length']>0x0&&_0x304528['setSelection'](_0x336fcc);for(const _0x5df707 of _0x1f967c)_0x5df707['detach']();});});for(const _0x3faac2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x24463a=_0x4000c6['commands']['get'](_0x3faac2);_0x24463a['on']('set:isEnabled',(_0x6e03e1,_0x4fd96e,_0x44c363)=>{if(_0x44c363){const _0x3744a1=_0x4000c6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x513064=>_0x513064['is']('element','tableCell'));this['_areMergableCells'](_0x24463a['value'],_0x3744a1)||(_0x6e03e1['return']=!0x1,_0x6e03e1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x51ad7f=this['editor']['commands']['get']('mergeTableCells'),_0x582ab5=this['editor']['plugins']['get']('TableUtils');if(!_0x51ad7f['isEnabled'])return!0x1;const _0x1f1a9d=_0x582ab5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x277e1f of _0x1f1a9d)for(const _0x237dcd of _0x1f1a9d)if(_0x277e1f!=_0x237dcd&&!this['_areMergableCells'](_0x277e1f,_0x237dcd))return!0x1;return!0x0;}['_areMergableCells'](_0x2c0fbd,_0x361d3e){const _0x171655=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e3e8b=this['editor']['model']['createRangeOn'](_0x2c0fbd),_0x328e49=this['editor']['model']['createRangeOn'](_0x361d3e),_0x5a4a1f=new Set(),_0xa61f48=new Set();for(const _0x2448aa of _0x171655['getSuggestions']())if(('insertion'==_0x2448aa['type']||'deletion'==_0x2448aa['type']||'mergeTableCells'==_0x2448aa['subType'])&&_0x2448aa['isInContent']){for(const _0x26467d of _0x2448aa['getRanges']())_0x26467d['containsRange'](_0x3e3e8b,!0x0)&&_0x5a4a1f['add'](_0x2448aa['type']+':'+_0x2448aa['author']['id']),_0x26467d['containsRange'](_0x328e49,!0x0)&&_0xa61f48['add'](_0x2448aa['type']+':'+_0x2448aa['author']['id']);}if(_0x5a4a1f['size']!=_0xa61f48['size'])return!0x1;for(const _0x3b68d6 of _0x5a4a1f)if(!_0xa61f48['has'](_0x3b68d6))return!0x1;return!0x0;}}class Ct extends _0x2bddd5{static get['requires'](){return[At];}['afterInit'](){const _0x4adad3=this['editor'];if(!_0x4adad3['plugins']['has']('TableEditing'))return;const _0x42b17b=_0x4adad3['locale'],_0x8a4c33=_0x4adad3['plugins']['get']('TrackChangesEditing');_0x8a4c33['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x8a4c33['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x8a4c33['registerBlockAttribute']('headingRows'),_0x8a4c33['registerBlockAttribute']('headingColumns'),_0x8a4c33['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x42b17b,'FORMAT_HEADER_ROW')),_0x8a4c33['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x42b17b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1342c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31b060=this['editor']['plugins']['get']('TableUtils'),_0x53b563=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2af99f({showActiveMarker:_0x40decf=!0x0,setDataAttribute:_0x5dd2c3=!0x0}={}){return(_0x220016,_0x369a14,_0x5bf552)=>{const {type:_0x50f3ca,id:_0x30a9d1}=_0x1342c4['_splitMarkerName'](_0x369a14['markerName']),_0x2b57ea=_0x1342c4['getSuggestion'](_0x30a9d1),_0x4be606=_0x2b57ea['data'];if('formatBlock'!=_0x2b57ea['type']||!_0x4be606||'setTableColumnHeader'!=_0x4be606['commandName'])return;if(_0x369a14['item'])return void _0x220016['stop']();if(!_0x5bf552['consumable']['consume'](_0x369a14['markerRange'],_0x220016['name']))return;const _0x4c347a=_0x369a14['markerRange']['start']['nodeAfter'],_0x1844b1=_0x369a14['markerRange']['end']['nodeBefore'],_0x165b64=_0x4c347a['parent']['parent'],{column:_0x3a10a8}=_0x31b060['getCellLocation'](_0x4c347a),{column:_0x1a3835}=_0x31b060['getCellLocation'](_0x1844b1);for(let _0x4858e5=_0x3a10a8;_0x4858e5<=_0x1a3835;_0x4858e5++){const _0x3f5ca8=_0x31b060['createTableWalker'](_0x165b64,{'column':_0x4858e5,'includeAllSlots':!0x1});for(const _0x5ebd81 of _0x3f5ca8){const _0x3562ee=_0x5ebd81['cell'],_0x40fad9=_0x5bf552['mapper']['toViewElement'](_0x3562ee);_0x5bf552['writer']['addClass']('ck-suggestion-marker-'+_0x50f3ca,_0x40fad9),_0x5dd2c3&&_0x5bf552['writer']['setAttribute']('data-suggestion',_0x30a9d1,_0x40fad9),_0x5bf552['mapper']['bindElementToMarker'](_0x40fad9,_0x369a14['markerName']),_0x40decf&&(_0x1342c4['activeMarkers']['includes'](_0x369a14['markerName'])?_0x5bf552['writer']['addClass']('ck-suggestion-marker--active',_0x40fad9):_0x5bf552['writer']['removeClass']('ck-suggestion-marker--active',_0x40fad9));}}};}_0x1342c4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x53b563),_0x1342c4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x53b563),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2af99f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4d64a9,_0x6d183f,_0x42b761)=>{_0x42b761['options']['showSuggestionHighlights']&&_0x2af99f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4d64a9,_0x6d183f,_0x42b761);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xe2b779,_0x142ab8,_0x9dd05)=>{const {type:_0x1aead8,id:_0x1c3e7c}=_0x1342c4['_splitMarkerName'](_0x142ab8['markerName']),_0x5b5273=_0x1342c4['getSuggestion'](_0x1c3e7c),_0x3091a0=_0x5b5273['data'];if('formatBlock'!=_0x5b5273['type']||!_0x3091a0||'setTableColumnHeader'!=_0x3091a0['commandName'])return;const _0x500f44=_0x9dd05['mapper']['markerNameToElements'](_0x142ab8['markerName']);if(_0x500f44){for(const _0x592eb7 of _0x500f44)_0x9dd05['writer']['removeClass']('ck-suggestion-marker-'+_0x1aead8,_0x592eb7),_0x9dd05['writer']['removeClass']('ck-suggestion-marker--active',_0x592eb7),_0x9dd05['writer']['removeAttribute']('data-suggestion',_0x592eb7),_0x9dd05['mapper']['unbindElementFromMarkerName'](_0x592eb7,_0x142ab8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fba4b=this['editor'],_0x2184ff=_0x3fba4b['locale'];function _0x2f849c(_0xe7527a){return{'type':'format','content':o(_0x2184ff,'*Format:*\x20%0',_0xe7527a)};}_0x3fba4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14fc79=>{if('formatBlock'!=_0x14fc79['type'])return;const {data:_0x5272d7}=_0x14fc79;if(_0x5272d7){if('setTableRowHeader'==_0x5272d7['commandName']){const _0x55bdb9=_0x5272d7['commandParams'][0x0]['forceValue'];return _0x2f849c(o(_0x2184ff,_0x55bdb9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5272d7['commandName']){const _0x20c037=_0x5272d7['commandParams'][0x0]['forceValue'];return _0x2f849c(o(_0x2184ff,_0x20c037?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x2bddd5{['afterInit'](){const _0x59ba0a=this['editor'],_0x5af96c=_0x59ba0a['locale'],_0x4c7534=_0x59ba0a['plugins']['get']('TrackChangesEditing');function _0x3da0cd(_0x204312){return{'type':'format','content':''+o(_0x5af96c,'*Set\x20table\x20type:*\x20%0',_0x204312)};}_0x59ba0a['plugins']['has']('TableLayout')&&(_0x4c7534['enableCommand']('insertTableLayout'),_0x4c7534['enableDefaultAttributesIntegration']('tableType'),_0x4c7534['registerBlockAttribute']('tableType'),_0x4c7534['descriptionFactory']['registerElementLabel'](_0x1aff96=>_0x1aff96['is']('element','table')&&'layout'===_0x1aff96['getAttribute']('tableType'),_0x143c73=>o(_0x5af96c,'ELEMENT_LAYOUT_TABLE',_0x143c73)),_0x4c7534['descriptionFactory']['registerDescriptionCallback'](_0x5826cf=>{const {data:_0x2c7a64}=_0x5826cf;if(_0x2c7a64&&'tableType'==_0x2c7a64['key'])switch(_0x2c7a64['newValue']){case'layout':return _0x3da0cd(o(_0x5af96c,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3da0cd(o(_0x5af96c,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x56e573=>[_0x56e573,null]));class Nt extends _0x2bddd5{static get['requires'](){return[At];}['afterInit'](){const _0x1e5652=this['editor'];if(!_0x1e5652['plugins']['has']('TableClipboard'))return;const _0x19a15b=_0x1e5652['plugins']['get']('TrackChangesEditing'),_0x1241a0=_0x1e5652['plugins']['get']('TableUtils'),_0x170f1d=_0x1e5652['plugins']['get'](At),_0x22a762=_0x1e5652['plugins']['get']('TableClipboard'),_0x4b3a6f=_0x1e5652['plugins']['get']('TableSelection'),_0x500bf9=_0x1e5652['plugins']['get'](_0x4495bb);_0x170f1d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1e5652['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1e5652['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3de6ea=null,_0x4211f8=!0x1;_0x500bf9['on']('contentInsertion',(_0x19fc85,_0x5b4a26)=>{_0x4211f8='paste'===_0x5b4a26['method'];}),_0x1e5652['model']['on']('insertContent',(_0xe04ea1,_0xa30978)=>{if(!_0x4211f8&&null===_0x4b3a6f['getSelectedTableCells']())return;const [_0x5a8d99,_0x618e40]=_0xa30978,_0x5ae083=_0xa30978[_0xa30978['length']-0x1];_0x5ae083&&_0x5ae083['forceDefaultExecution']||_0x19a15b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4e53bb,_0x10da3a,_0x5451be,_0x41f718,_0x4c449f){if(_0x10da3a&&!_0x10da3a['is']('documentSelection'))return!0x1;const _0x553e41=_0x4c449f['getTableIfOnlyTableInContent'](_0x4e53bb,_0x5451be);if(!_0x553e41||!Ue(_0x553e41,void 0x0,_0x41f718))return!0x1;const _0x43bafa=_0x41f718['getSelectionAffectedTableCells'](_0x5451be['document']['selection']);if(!_0x43bafa['length'])return!0x1;const _0x44ab9b=_0x43bafa[0x0]['findAncestor']('table'),_0x3ad29e=_0x41f718['getRowIndexes'](_0x43bafa),_0x25c13f=_0x41f718['getColumnIndexes'](_0x43bafa),_0x25298d={'startRow':_0x3ad29e['first'],'endRow':_0x3ad29e['last'],'startColumn':_0x25c13f['first'],'endColumn':_0x25c13f['last']};return 0x1==_0x43bafa['length']&&(_0x25298d['endRow']+=_0x41f718['getRows'](_0x553e41)-0x1,_0x25298d['endColumn']+=_0x41f718['getColumns'](_0x553e41)-0x1),Ue(_0x44ab9b,_0x25298d,_0x41f718);}(_0x5a8d99,_0x618e40,_0x1e5652['model'],_0x1241a0,_0x22a762)&&(_0xe04ea1['stop'](),_0x3de6ea={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1e5652['model']['change'](()=>{_0x1e5652['model']['insertContent'](_0xa30978[0x0],_0xa30978[0x1],_0xa30978[0x2],{'forceDefaultExecution':!0x0});const _0x43aa9d=_0x4bb6e6(),{rowInsertionRanges:_0x58bf43,columnInsertionRanges:_0x5d9740,insertionRanges:_0x19b86b,deletionRanges:_0x2a46b3,cells:_0x4c5964}=_0x3de6ea;_0x58bf43['length']&&_0x19a15b['markMultiRangeInsertion'](_0x58bf43,'tablePasteRow',{'tablePasteChainId':_0x43aa9d}),_0x5d9740['length']&&_0x19a15b['markMultiRangeInsertion'](_0x5d9740,'tablePasteColumn',{'tablePasteChainId':_0x43aa9d}),_0x19b86b['length']&&(_0x19a15b['markMultiRangeInsertion'](_0x19b86b,'tablePaste',{'tablePasteChainId':_0x43aa9d,'skipNestingCheck':!0x0}),_0x19b86b['forEach'](_0x2bcb02=>_0x2bcb02['detach']?.())),_0x2a46b3['length']&&(_0x19a15b['markMultiRangeDeletion'](_0x2a46b3,'tablePaste',{'tablePasteChainId':_0x43aa9d,'skipNestingCheck':!0x0}),_0x2a46b3['forEach'](_0x33e1ac=>_0x33e1ac['detach']?.()));const _0x576788=_0x19a15b['markMultiRangeBlockFormat'](_0x4c5964['map'](({element:_0x112cb5})=>_0x112cb5),{'formatGroupId':_0x4bb6e6()},[],'tablePasteCell',{'tablePasteChainId':_0x43aa9d});if(_0x576788){const _0x491a23=_0x576788['getMarkers'](),_0x5e9e3f=[];for(const {element:_0x5d6b67,attributes:_0x2bd7f9}of _0x4c5964){if(!_0x2bd7f9)continue;const _0x225990=_0x1e5652['model']['createRangeOn'](_0x5d6b67),_0x44c5ab=_0x491a23['find'](_0x44c357=>_0x44c357['getRange']()['isEqual'](_0x225990));_0x44c5ab&&_0x5e9e3f['push']([_0x44c5ab['name'],_0x2bd7f9]);}_0x5e9e3f['length']&&_0x576788['setAttribute']('markerAttributes',Object['fromEntries'](_0x5e9e3f));}_0x3de6ea=null;}));},{'priority':_0x2048ff['high']+0xa}),_0x500bf9['on']('contentInsertion',()=>{_0x4211f8=!0x1;},{'priority':'lowest'}),_0x1e5652['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3b4314,_0x283d63)=>{const [_0xae62b4,_0x25ed06,,_0xd3992f]=_0x283d63;if(!_0x3de6ea)return;_0x3b4314['stop']();const _0x44c45f=_0xae62b4['cell'],_0x511dcd=_0x25ed06,_0x2d2281=Oe(_0x44c45f),_0x2ba724=Oe(_0x511dcd);_0x3b4314['return']=_0x44c45f;let _0x5b3796=null,_0x379edd=null;if(_0x2ba724||_0x2d2281){if(_0x2d2281&&!_0x2ba724){_0xd3992f['remove'](_0x44c45f['getChild'](0x0));for(const _0xf64fcd of Array['from'](_0x511dcd['getChildren']()))_0xd3992f['insert'](_0xf64fcd,_0x44c45f,'end');const _0x3334a3=_0x3de6ea['rowInsertionIndexes']['includes'](_0xae62b4['row']),_0x31d64a=_0x3de6ea['columnInsertionIndexes']['includes'](_0xae62b4['column']);_0x3334a3||_0x31d64a||(_0x5b3796=_0xd7f50['fromRange'](_0xd3992f['createRangeIn'](_0x44c45f)));}else _0x2ba724&&!_0x2d2281&&(_0x379edd=_0xd3992f['createRangeIn'](_0x44c45f));}else{const _0x240907=_0xd3992f['createElement']('tableCellSuggestion'),_0x1963a3=_0xd3992f['createElement']('tableCellSuggestion');_0xd3992f['wrap'](_0xd3992f['createRangeIn'](_0x44c45f),_0x1963a3),_0xd3992f['insert'](_0x240907,_0x44c45f,0x0);for(const _0x4f1c6f of Array['from'](_0x511dcd['getChildren']()))_0xd3992f['insert'](_0x4f1c6f,_0x240907,'end');_0x5b3796=_0xd7f50['fromRange'](_0xd3992f['createRangeOn'](_0x240907)),_0x379edd=_0xd7f50['fromRange'](_0xd3992f['createRangeOn'](_0x1963a3));}const _0x12c66a=Array['from'](_0x511dcd['getAttributes']())['filter'](([_0x5ae46d])=>Be['includes'](_0x5ae46d));_0x3de6ea['cells']['push']({'element':_0x44c45f,'attributes':_0x12c66a['length']?Object['fromEntries'](_0x12c66a):null}),_0x5b3796&&_0x3de6ea['insertionRanges']['push'](_0x5b3796),_0x379edd&&_0x3de6ea['deletionRanges']['push'](_0x379edd);},{'priority':'high'}),_0x1241a0['on']('insertColumns',(_0x2f1961,_0x1bc9f3)=>{const [_0x5f1b95,_0x4bb7d2={}]=_0x1bc9f3;if(!_0x3de6ea)return;const _0x4f661a=_0x4bb7d2['at']||0x0,_0x110de2=_0x4bb7d2['columns']||0x1;_0x3de6ea['columnInsertionIndexes']=new Array(_0x110de2)['fill'](_0x4f661a)['map']((_0x371659,_0x3df38a)=>_0x371659+_0x3df38a);for(const {cell:_0x2b9011}of _0x1241a0['createTableWalker'](_0x5f1b95,{'startColumn':_0x4f661a,'endColumn':_0x4f661a+_0x110de2-0x1}))_0x3de6ea['columnInsertionRanges']['push'](_0x1e5652['model']['createRangeOn'](_0x2b9011));},{'priority':'low'}),_0x1241a0['on']('insertRows',(_0x17a3e4,_0x28e318)=>{const [_0x2a3581,_0xbc9c1d={}]=_0x28e318;if(!_0x3de6ea)return;const _0x1fc174=_0xbc9c1d['at']||0x0,_0xc53094=_0xbc9c1d['rows']||0x1;_0x3de6ea['rowInsertionIndexes']=new Array(_0xc53094)['fill'](_0x1fc174)['map']((_0x1f14fb,_0x3b4495)=>_0x1f14fb+_0x3b4495);for(const {cell:_0x46305f}of _0x1241a0['createTableWalker'](_0x2a3581,{'startRow':_0x1fc174,'endRow':_0x1fc174+_0xc53094-0x1}))_0x3de6ea['rowInsertionRanges']['push'](_0x1e5652['model']['createRangeOn'](_0x46305f));},{'priority':'low'}),_0x19a15b['descriptionFactory']['registerDescriptionCallback'](_0x33bf01=>{if(_0x33bf01['subType']&&_0x33bf01['subType']['startsWith']('tablePaste'))return _0x33bf01['previous']?{}:{'type':'insertion','content':o(_0x1e5652['locale'],'*Replace\x20table\x20cells*')};});const _0x149112=()=>!0x1;for(const _0x4f15d7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x19a15b['_suggestionFactory']['registerCustomCallback']('insertion',_0x4f15d7,'join',_0x149112),_0x19a15b['_suggestionFactory']['registerCustomCallback']('deletion',_0x4f15d7,'join',_0x149112),_0x19a15b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4f15d7,'join',_0x149112);_0x19a15b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x149112),_0x19a15b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2cbe5d,_0x478b58,_0x2c89a2)=>{const _0x450015=_0x2cbe5d['map'](_0x48bd41=>_0x48bd41['getContainedElement']())['filter'](_0x4f3f70=>_0x4f3f70),_0x2dc451=new Map(_0x450015['map'](_0x42708b=>[_0x42708b,null]));if(_0x3de6ea){for(const {element:_0x2dacef,attributes:_0x46d235}of _0x3de6ea['cells'])_0x46d235&&_0x2dc451['set'](_0x2dacef,_0x46d235);}else{if(_0x2c89a2&&_0x2c89a2['markerAttributes'])for(const [_0x5559d0,_0x284dd4]of Object['entries'](_0x2c89a2['markerAttributes'])){const _0x3c362f=_0x1e5652['model']['markers']['get'](_0x5559d0),_0x478288=_0x3c362f?_0x3c362f['getRange']()['getContainedElement']():null;_0x478288&&_0x2dc451['set'](_0x478288,_0x284dd4);}}_0x1e5652['model']['change'](_0x29be12=>{for(const [_0x45884e,_0x275847]of _0x2dc451)_0x29be12['setAttributes']({...xe,..._0x275847},_0x45884e);});});const _0x20b49d=(_0x14e0b1,_0x2987ad)=>{_0x19a15b['_suggestionFactory']['registerCustomCallback'](_0x14e0b1,'tablePaste',_0x2987ad,(_0x14d0fd,_0x56780e,_0x494317)=>{_0x1e5652['model']['change'](_0x57c492=>{const _0x41de2f=[];for(const _0x3eb364 of _0x14d0fd){const _0x590c32=_0x3eb364['start']['nodeAfter'];_0x590c32['is']('element','tableCellSuggestion')&&_0x41de2f['push'](_0x590c32);}_0x19a15b['_suggestionFactory']['getSuggestionCallback'](_0x14e0b1,null,_0x2987ad)(_0x14d0fd,_0x56780e,_0x494317);for(const _0x2ba039 of _0x41de2f)'$graveyard'!=_0x2ba039['root']['rootName']&&_0x57c492['unwrap'](_0x2ba039);});});};_0x20b49d('insertion','accept'),_0x20b49d('insertion','discard'),_0x20b49d('deletion','accept'),_0x20b49d('deletion','discard'),_0x19a15b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x33e4bb=>{const _0x3cf058=_0x33e4bb['map'](_0x55be53=>_0x55be53['getContainedElement']()),_0x2e14ec=_0x3cf058[0x0]['findAncestor']('table'),{minRow:_0xa8e1bd,maxRow:_0x401c5e}=_0x170f1d['_getCoordsForCells'](_0x3cf058);_0x1241a0['removeRows'](_0x2e14ec,{'at':_0xa8e1bd,'rows':_0x401c5e-_0xa8e1bd+0x1});}),_0x19a15b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x112439=>{const _0x3316b0=_0x112439['map'](_0x10c2a8=>_0x10c2a8['getContainedElement']()),_0x16313c=_0x3316b0[0x0]['findAncestor']('table'),{minColumn:_0x2d0ccc,maxColumn:_0x3a1743}=_0x170f1d['_getCoordsForCells'](_0x3316b0);_0x1241a0['removeColumns'](_0x16313c,{'at':_0x2d0ccc,'columns':_0x3a1743-_0x2d0ccc+0x1});});const _0x588438=(_0x235158,_0x3deb6c)=>{if(!_0x3deb6c['subType']||!_0x3deb6c['subType']['startsWith']('tablePaste'))return;const _0x20cdd6=_0x3deb6c['attributes']['tablePasteChainId'],_0x811ce1=_0x19a15b['getSuggestions']()['filter'](_0xc38b97=>_0xc38b97['isInContent']&&_0xc38b97['attributes']&&_0xc38b97['attributes']['tablePasteChainId']==_0x20cdd6);_0x811ce1['length']&&_0x3deb6c['getAllAdjacentSuggestions']()['length']!=_0x811ce1['length']&&_0x811ce1['reduce']((_0x5d782b,_0x18f54e)=>(_0x5d782b['next']=_0x18f54e,_0x18f54e['previous']=_0x5d782b,_0x18f54e));};function _0x12b457(_0x46d8de,_0x26b55f=!0x0){const {id:_0x57ac01,authorId:_0x2397b6}=_0x19a15b['_splitMarkerName'](_0x46d8de['markerName']),_0x533aec=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3be8fb=_0x19a15b['activeMarkers']['includes'](_0x46d8de['markerName']);return _0x3be8fb&&_0x533aec['push']('ck-suggestion-marker--active'),{'classes':_0x533aec,'attributes':{'data-suggestion':_0x57ac01,'data-author-id':_0x2397b6},'priority':_0x3be8fb&&_0x26b55f?0xbc2:0xbb8};}_0x19a15b['on']('suggestionLoaded',_0x588438,{'priority':'high'}),_0x19a15b['on']('suggestionUnloaded',_0x588438,{'priority':'high'}),_0x1e5652['model']['document']['registerPostFixer'](()=>{let _0x384c6d=!0x1;const _0x3954cb=Array['from'](_0x1e5652['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48f3f9,data:_0x1d9632}of _0x3954cb){const {group:_0x31a822,type:_0x4c47d5,id:_0x2c6a30}=_0x19a15b['_splitMarkerName'](_0x48f3f9);if('suggestion'!=_0x31a822||'deletion'!=_0x4c47d5||_0x1d9632['oldRange'])continue;if(!_0x19a15b['hasSuggestion'](_0x2c6a30))continue;const _0x447d94=_0x19a15b['getSuggestion'](_0x2c6a30)['getRanges'](),_0x54b0fd=_0x1e5652['plugins']['get']('Users')['me'];for(const _0x52c3dd of _0x19a15b['getSuggestions']()){if(!_0x52c3dd['isInContent']||_0x52c3dd['author']!=_0x54b0fd)continue;if('formatBlock'!=_0x52c3dd['type']||'tablePasteCell'!=_0x52c3dd['subType'])continue;if(_0x52c3dd['getRanges']()['every'](_0x6e68f0=>_0x447d94['some'](_0x1c03b5=>_0x1c03b5['containsRange'](_0x6e68f0,!0x0)))){for(const _0x5e79ec of _0x52c3dd['getAllAdjacentSuggestions']())_0x5e79ec['isInContent']&&(_0x5e79ec['discard'](),_0x384c6d=!0x0);}}}return _0x384c6d;}),_0x1e5652['model']['document']['registerPostFixer'](_0x53f287=>{const _0x48428f=_0x1e5652['commands']['get']('redo');if(!_0x48428f||!_0x48428f['_createdBatches']['has'](_0x53f287['batch']))return!0x1;let _0x490c20=!0x1;const _0x37891c=_0x1e5652['plugins']['get']('Users')['me'],_0x3e6beb=_0x1e5652['model']['document']['differ']['getChanges'](),_0x17f8a4=Array['from'](_0x1e5652['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3dc5f,data:_0x124a24})=>{const {group:_0x3860e8,subType:_0x5a5c31,authorId:_0x4e63fe}=_0x19a15b['_splitMarkerName'](_0x3dc5f);return'suggestion'==_0x3860e8&&'tablePaste'==_0x5a5c31&&_0x4e63fe==_0x37891c['id']&&!_0x124a24['oldRange'];});for(const _0x110f53 of _0x3e6beb){if('insert'!=_0x110f53['type']||'tableCellSuggestion'!=_0x110f53['name']||0x1!=_0x110f53['length'])continue;const _0xdb0254=_0x53f287['createRange'](_0x110f53['position'],_0x110f53['position']['getShiftedBy'](0x1));if(!_0x17f8a4['find'](({data:_0xbd9820})=>_0xbd9820['newRange']['isEqual'](_0xdb0254))){for(const {name:_0xc41209,data:_0x5b9d5a}of _0x17f8a4)if(_0xdb0254['containsRange'](_0x5b9d5a['newRange'])){_0x53f287['updateMarker'](_0xc41209,{'range':_0xdb0254}),_0x490c20=!0x0;break;}}}return _0x490c20;}),_0x1e5652['model']['document']['registerPostFixer'](_0x39afd9=>{let _0x464bc6=!0x1;const _0x2cfa78=_0x1e5652['plugins']['get']('Users')['me'],_0x238acf=_0x19a15b['getSuggestions']()['filter'](_0x4e080b=>_0x4e080b['isInContent']&&_0x4e080b['author']==_0x2cfa78),_0x5a65d8=new Set(),_0x136952=new Set();for(const _0x4e9968 of _0x238acf)if('tablePaste'==_0x4e9968['subType'])for(const _0x30f607 of _0x4e9968['getMarkers']()){const _0x43b6ee=_0x30f607['getRange']()['getContainedElement']();if(_0x43b6ee){if(_0x43b6ee['is']('element','tableCellSuggestion')&&Oe(_0x43b6ee)){_0x4e9968['removeMarker'](_0x30f607['name']),_0x5a65d8['add'](_0x43b6ee),_0x464bc6=!0x0;const _0x35bb50=_0x43b6ee['nextSibling'],_0x5ae37e=_0x43b6ee['previousSibling'],_0x12ae22=_0x35bb50&&_0x35bb50['is']('element','tableCellSuggestion'),_0x398545=_0x5ae37e&&_0x5ae37e['is']('element','tableCellSuggestion');_0x12ae22&&!_0x5a65d8['has'](_0x35bb50)&&_0x136952['add'](_0x35bb50),_0x398545&&!_0x5a65d8['has'](_0x5ae37e)&&_0x136952['add'](_0x5ae37e);}else _0x43b6ee['is']('element','paragraph')&&_0x43b6ee['isEmpty']&&(_0x4e9968['removeMarker'](_0x30f607['name']),_0x464bc6=!0x0);}}else{if('tablePasteCell'==_0x4e9968['subType']){if(!_0x4e9968['attributes']||!_0x4e9968['attributes']['tablePasteChainId'])continue;const _0x37ccb6=_0x4e9968['attributes']['markerAttributes'];if(_0x37ccb6&&Object['keys'](_0x37ccb6)['length'])continue;const _0x2ce1fc=_0x4e9968['attributes']['tablePasteChainId'];let _0x26a880=!0x0,_0x48d418=!0x0;for(const _0x2c84b6 of _0x238acf)if(_0x2c84b6['subType']&&_0x2c84b6['subType']['startsWith']('tablePaste')){if(!_0x2c84b6['attributes']['tablePasteChainId']){_0x48d418=!0x1;break;}if(_0x2c84b6['id']!=_0x4e9968['id']&&_0x2c84b6['attributes']['tablePasteChainId']==_0x2ce1fc){_0x26a880=!0x1;break;}}_0x48d418&&_0x26a880&&(_0x4e9968['removeMarkers'](),_0x464bc6=!0x0);}}for(const _0x4c48c9 of _0x5a65d8)_0x39afd9['remove'](_0x4c48c9);for(const _0x2c8ae8 of _0x136952)_0x39afd9['unwrap'](_0x2c8ae8);return _0x464bc6;}),_0x1e5652['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5b3998=>_0x12b457(_0x5b3998),'converterPriority':'high'}),_0x1e5652['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b7d9b,_0x135bb1)=>_0x135bb1['options']['showSuggestionHighlights']?_0x12b457(_0x3b7d9b,!0x1):null,'converterPriority':'high'});const _0x2a0d55=_0x1e5652['editing']['view'];this['listenTo'](_0x2a0d55['document'],'clipboardOutput',(_0x2cd112,_0x4396d6)=>{const _0x59764c=[];for(const _0x34201b of _0x2a0d55['createRangeIn'](_0x4396d6['content'])['getItems']())_0x34201b['is']('element','suggestion-td')&&_0x59764c['push'](_0x34201b);_0x2a0d55['change'](_0x210603=>{for(const _0x2ff3cf of _0x59764c)_0x210603['move'](_0x210603['createRangeIn'](_0x2ff3cf),_0x210603['createPositionBefore'](_0x2ff3cf)),_0x210603['remove'](_0x2ff3cf);});});}}function Oe(_0x35a1fb){if(_0x35a1fb['isEmpty'])return!0x0;const _0x36f5b7=_0x35a1fb['getChild'](0x0);return _0x36f5b7['is']('element','paragraph')&&_0x36f5b7['isEmpty'];}function Ue(_0x221825,_0x5bb234={},_0x3f0ec7){for(const {isAnchor:_0x3a1a89,cellHeight:_0xae93c8,cellWidth:_0x433bb9}of _0x3f0ec7['createTableWalker'](_0x221825,{'includeAllSlots':!0x0,..._0x5bb234}))if(!_0x3a1a89||0x1!=_0xae93c8||0x1!=_0x433bb9)return!0x1;return!0x0;}class Dt extends _0x2bddd5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xd3ca88=this['editor']['plugins']['get']('TrackChangesEditing');_0xd3ca88['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xd3ca88['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xd3ca88['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd3ca88['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xd3ca88['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xd3ca88['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1f0d13,_0x1e1da1){const _0x4ae09a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35e7a7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1f9f13=_0x1e1da1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1360e5=_0x35e7a7['getColumnGroupElement'](_0x1f9f13);let _0x20288f=_0x1360e5?_0x35e7a7['getTableColumnsWidths'](_0x1360e5):null,_0x26bc1f=_0x1f9f13['getAttribute']('tableWidth')||null;const _0xd756d2=_0x1e1da1['tableWidth']||_0x26bc1f,_0x2d1feb=_0x1e1da1['columnWidths']||_0x20288f,_0x5c5101=this['editor']['plugins']['get']('Users')['me'];for(const _0x586959 of _0x4ae09a['getSuggestions']()){const _0x39eadb=_0x586959['getContainedElement']();if('resizeTable'===_0x586959['subType']&&_0x39eadb===_0x1f9f13){_0x586959['author']!==_0x5c5101&&_0x586959['discard']();const _0x2ee0b5=_0x586959['data']['commandParams'];_0x26bc1f=_0x2ee0b5[0x0]['tableWidth'],_0x20288f=_0x2ee0b5[0x0]['columnWidths'];break;}}_0x1f0d13({'table':_0x1f9f13,'tableWidth':_0xd756d2,'columnWidths':_0x2d1feb}),_0x4ae09a['markBlockFormat'](_0x1f9f13,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x26bc1f,'columnWidths':_0x20288f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4509aa){if('formatBlock'!=_0x4509aa['type']&&'formatInline'!=_0x4509aa['type'])return;const {data:_0x2f088d}=_0x4509aa;if(_0x2f088d&&'resizeTable'===_0x2f088d['formatGroupId']){const _0x150e79='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x150e79)};}}}class Mt extends _0x2bddd5{['afterInit'](){const _0x512658=this['editor'];_0x512658['plugins']['has']('Template')&&_0x512658['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x2bddd5{['afterInit'](){const _0xa1aa94=this['editor'];if(!_0xa1aa94['commands']['get']('insertTableOfContents'))return;_0xa1aa94['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x556efc=_0xa1aa94['plugins']['get']('TrackChangesEditing'),_0x4be991=_0xa1aa94['locale'];_0x556efc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1a6ea5=>o(_0x4be991,'ELEMENT_TABLE_OF_CONTENTS',_0x1a6ea5));}}class Bt extends _0x2bddd5{['afterInit'](){const _0x5999b7=this['editor'];if(!_0x5999b7['plugins']['has']('Title'))return;const _0x357fe1=_0x5999b7['plugins']['get']('TrackChangesEditing');_0x357fe1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5999b7['locale'],'ELEMENT_TITLE')),_0x5999b7['model']['document']['registerPostFixer'](_0x14cefe=>{let _0x2b984a=!0x1;const _0x220d4c=Array['from'](_0x5999b7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2cac1b,data:_0x82ad8}of _0x220d4c){const {group:_0xc8ee26}=_0x357fe1['_splitMarkerName'](_0x2cac1b);if('suggestion'!==_0xc8ee26||!_0x82ad8['newRange'])continue;const _0x2ce443=_0x82ad8['newRange'],_0x2ed016=_0x2ce443['end']['nodeBefore'];if(!_0x2ed016||!_0x2ed016['is']('element','title-content'))continue;if(!_0x2ce443['start']['isTouching'](_0x2ce443['end']))continue;const _0x51346c=_0x5999b7['model']['schema']['getNearestSelectionRange'](_0x2ce443['end'],'forward');if(_0x51346c&&_0x51346c['isCollapsed']){const _0x5475b8=_0x14cefe['createRange'](_0x2ce443['start'],_0x51346c['start']);_0x5475b8['isEqual'](_0x2ce443)||(_0x14cefe['updateMarker'](_0x2cac1b,{'range':_0x5475b8}),_0x2b984a=!0x0);}_0x2b984a||(_0x14cefe['removeMarker'](_0x2cac1b),_0x2b984a=!0x0);}return _0x2b984a;});}}class Tt extends _0x2bddd5{['afterInit'](){const _0x402705=this['editor'],_0x5eb76b=_0x402705['plugins']['get']('TrackChangesEditing');_0x402705['plugins']['has']('Uploadcare')&&(_0x5eb76b['enableCommand']('uploadcare'),_0x402705['plugins']['has']('UploadcareImageEdit')&&(_0x5eb76b['enableCommand']('uploadcareImageEdit'),_0x5eb76b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5eb76b['registerBlockAttribute']('uploadcareImageId'),_0x5eb76b['descriptionFactory']['registerDescriptionCallback'](_0x546f8d=>{if('attribute'!=_0x546f8d['type'])return;const {data:_0x481136}=_0x546f8d;return _0x481136&&'uploadcareImageId'==_0x481136['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x2bddd5{['afterInit'](){const _0x50a4ef=this['editor'],_0xfafb90=_0x50a4ef['plugins']['get']('TrackChangesEditing');_0x50a4ef['plugins']['has']('UndoEditing')&&(_0xfafb90['enableCommand']('undo'),_0xfafb90['enableCommand']('redo'));}}class Ot extends _0x2bddd5{static get['requires'](){return[At];}['afterInit'](){const _0x252bfc=this['editor'];if(!_0x252bfc['plugins']['has']('TableCaptionEditing'))return;_0x252bfc['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x2bddd5{['tableProperties'];['tableCellProperties'];constructor(_0x2720d6){super(_0x2720d6),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 _0x4ec333=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5727d4 of this['tableProperties'])_0x4ec333['enableCommand'](_0x5727d4,(_0x190632,_0x5885c1)=>{const _0x3f11f4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5727d4,[_0x3f11f4],this['tableProperties'],'tableProperties',_0x190632,_0x5885c1);});_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4ec333['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3f04fd,_0x246399)=>this['handleDiscardAction'](this['tableProperties'],_0x3f04fd,_0x246399)),_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1a5d74 of this['tableCellProperties'])_0x4ec333['enableCommand'](_0x1a5d74,(_0x3764ea,_0x777e25)=>{const _0x932ef9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1a5d74,_0x932ef9,this['tableCellProperties'],'tableCellProperties',_0x3764ea,_0x777e25);});_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4ec333['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xf7bcec,_0x144c5c)=>this['handleDiscardAction'](this['tableCellProperties'],_0xf7bcec,_0x144c5c)),_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4ec333['descriptionFactory']['registerDescriptionCallback'](_0x58e5d7=>this['handleSuggestionDescription'](_0x58e5d7));}['_handlePropertyChange'](_0x158fbd,_0x241c7f,_0x11364e,_0x14f4c2,_0x5298de,_0x4da503){const _0xff8a10=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4da503['batch'],()=>{for(const _0x779ac6 of _0x241c7f){if(this['_getSuggestion'](_0x779ac6,_0x14f4c2))_0x5298de(_0x4da503);else{const _0x6d5c8f={};for(const _0x31a051 of _0x11364e){const _0x36ae6d=_0x779ac6['getAttribute'](_0x31a051);void 0x0!==_0x36ae6d&&(_0x6d5c8f[_0x31a051]=_0x36ae6d);}_0x5298de(_0x4da503),_0xff8a10['markBlockFormat'](_0x779ac6,{'commandParams':[_0x6d5c8f]},[],_0x14f4c2);}}});}['handleDiscardAction'](_0x1473de,_0x23853d,_0x410b19){const _0x4d819f=_0x23853d[0x0]['start']['nodeAfter'],_0x9cadc9=_0x410b19['commandParams'][0x0];this['editor']['model']['change'](_0x3eee12=>{for(const _0x2713fc of _0x1473de)void 0x0!==_0x9cadc9[_0x2713fc]?_0x3eee12['setAttribute'](_0x2713fc,_0x9cadc9[_0x2713fc],_0x4d819f):_0x3eee12['removeAttribute'](_0x2713fc,_0x4d819f);});}['handleSuggestionDescription'](_0x1d87d2){if(_0x1d87d2['data'])switch(_0x1d87d2['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'](_0x88f0ca,_0x3d54b0){const _0x52db88=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3f8546 of _0x52db88['getSuggestions']({'skipNotAttached':!0x0})){const _0x18fb74=_0x3f8546['getContainedElement']();if(_0x3f8546['subType']===_0x3d54b0&&_0x18fb74===_0x88f0ca)return _0x3f8546;}return null;}}class Rt extends _0x2bddd5{['afterInit'](){const _0x468b2f=this['editor'];if(!_0x468b2f['plugins']['has']('LineHeight'))return;const _0x3d572c=_0x468b2f['plugins']['get']('TrackChangesEditing'),_0x34af53=_0x468b2f['locale'];_0x3d572c['enableDefaultAttributesIntegration']('lineHeight'),_0x3d572c['registerBlockAttribute']('lineHeight'),_0x3d572c['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x34af53,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2bddd5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x27b3d9,_0x5b857b,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5df943){super(_0x5df943),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x196f7c,_0x267bbf,_0x4ea7c9,_0x1a564d)=>{this['_model']['change'](()=>{for(const _0x7e9835 of[..._0x1a564d,..._0x4ea7c9])this['_model']['markers']['has'](_0x7e9835)&&_0x5df943['editing']['reconvertMarker'](_0x7e9835);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5df943['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(),_0x5df943['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5df943['config']['get']('trackChanges.trackFormatChanges'),_0x5df943['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5df943['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x5df943,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5b67ca=this['editor'],_0x28120e=(_0x50443e,_0x33713a)=>{if('attribute'!=_0x50443e)return'ck-suggestion-marker-'+_0x50443e;const _0x105f0d=_0x33713a['split']('|')[0x0];return this['_isBlockAttribute'](_0x105f0d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5b67ca['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x526a6a=>{const {id:_0x21929d,authorId:_0x4d9035,type:_0x475a99,subType:_0x307ab9}=this['_splitMarkerName'](_0x526a6a['markerName']),_0x4ed093=['ck-suggestion-marker',_0x28120e(_0x475a99,_0x307ab9)];let _0x1d2512=0xbb8;return this['activeMarkers']['includes'](_0x526a6a['markerName'])&&(_0x4ed093['push']('ck-suggestion-marker--active'),_0x1d2512=0xbc2),'deletion'==_0x475a99&&(_0x1d2512+=0x5),{'classes':_0x4ed093,'attributes':{'data-suggestion':_0x21929d,'data-author-id':_0x4d9035},'priority':_0x1d2512};}}),_0x5b67ca['conversion']['for']('dataDowncast')['add'](_0x524025=>{_0x524025['on']('addMarker:suggestion',(_0x296d3e,_0x5028cb,_0x598bf6)=>{if(!_0x598bf6['options']['showSuggestionHighlights'])return;const _0x168fd4=_0x5028cb['item'];if(!_0x168fd4)return;const _0xf93bad=_0x598bf6['mapper']['toViewElement'](_0x168fd4);_0x5b67ca['model']['schema']['isObject'](_0x168fd4)&&_0xf93bad&&!_0xf93bad['getCustomProperty']('widget')&&_0xf93bad['is']('containerElement')&&_0x313690(_0xf93bad,_0x598bf6['writer']);},{'priority':'high'});}),_0x5b67ca['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x53d9bc,_0x474d37)=>{if(!_0x474d37['options']['showSuggestionHighlights'])return null;const {id:_0x1ebb6b,authorId:_0x5d0b17,type:_0x12ca18,subType:_0x454e3f}=this['_splitMarkerName'](_0x53d9bc['markerName']);return{'classes':['ck-suggestion-marker',_0x28120e(_0x12ca18,_0x454e3f)],'priority':0xbb8,'attributes':{'data-suggestion':_0x1ebb6b,'data-author-id':_0x5d0b17}};}});const _0xce2940=({showActiveMarkers:_0x4dba53=!0x0,isAttributeSuggestion:_0x5c9e38=!0x1}={})=>(_0x26ceca,_0x2ce09,_0x52d987)=>{if(!_0x2ce09['item'])return;const {id:_0x2925d7,authorId:_0x3e539a}=this['_splitMarkerName'](_0x2ce09['markerName']);if(_0x5c9e38){const _0x47d07a=this['_suggestions']['get'](_0x2925d7),_0x4a3337=this['_getAttributeKey'](_0x47d07a);if(!this['_isBlockAttribute'](_0x4a3337))return;}if(_0x2ce09['item']['is']('selection'))return void _0x52d987['consumable']['consume'](_0x2ce09['item'],_0x26ceca['name']);const _0xb3bd02=_0x52d987['mapper']['toViewElement'](_0x2ce09['item']);if(_0x2ce09['item']['is']('element')&&_0x5b67ca['model']['schema']['isBlock'](_0x2ce09['item'])&&!_0xb3bd02['getCustomProperty']('addHighlight')){_0x52d987['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xb3bd02),_0x52d987['writer']['setAttribute']('data-suggestion',_0x2925d7,_0xb3bd02),_0x52d987['writer']['setAttribute']('data-author-id',_0x3e539a,_0xb3bd02),_0x52d987['mapper']['bindElementToMarker'](_0xb3bd02,_0x2ce09['markerName']),_0x4dba53&&(this['activeMarkers']['includes'](_0x2ce09['markerName'])?_0x52d987['writer']['addClass']('ck-suggestion-marker--active',_0xb3bd02):_0x52d987['writer']['removeClass']('ck-suggestion-marker--active',_0xb3bd02));for(const _0x4bc199 of _0x5b67ca['model']['createRangeIn'](_0x2ce09['item'])['getItems']())_0x52d987['consumable']['consume'](_0x4bc199,_0x26ceca['name']);_0x52d987['consumable']['consume'](_0x2ce09['item'],_0x26ceca['name']);}};_0x5b67ca['conversion']['for']('dataDowncast')['add'](_0x50ff20=>{_0x50ff20['on']('addMarker:suggestion:formatBlock',(_0x382281,_0x3a4293,_0x57d217)=>{_0x57d217['options']['showSuggestionHighlights']&&_0xce2940({'showActiveMarkers':!0x1})(_0x382281,_0x3a4293,_0x57d217);},{'priority':'highest'});}),_0x5b67ca['conversion']['for']('dataDowncast')['add'](_0x47f018=>{_0x47f018['on']('addMarker:suggestion:attribute',(_0x2a5944,_0x16d7bb,_0xbf94df)=>{_0xbf94df['options']['showSuggestionHighlights']&&_0xce2940({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2a5944,_0x16d7bb,_0xbf94df);},{'priority':'highest'});}),_0x5b67ca['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x540150,_0x2b7cb9)=>{if(_0x2b7cb9['options']['showSuggestionHighlights']){const {id:_0x47d56b,authorId:_0x49d6d6}=this['_splitMarkerName'](_0x540150);return _0x540150['includes'](':split')||_0x540150['includes'](':merge')?{'group':'suggestion','name':_0x540150['substr'](0xb),'attributes':{'data-suggestion':_0x47d56b,'data-author-id':_0x49d6d6}}:null;}return{'group':'suggestion','name':_0x540150['substr'](0xb)};}}),_0x5b67ca['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x453122,{writer:_0x285933})=>{let _0x4b6590='suggestion:'+_0x453122['getAttribute']('suggestion-type')+':'+_0x453122['getAttribute']('id');return _0x453122['getAttribute']('marker-count')&&(_0x4b6590+=':'+_0x453122['getAttribute']('marker-count')),_0x285933['createElement']('$marker',{'data-name':_0x4b6590});}}),_0x5b67ca['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5b67ca['conversion']['for']('editingDowncast')['add'](_0x2c4366=>{_0x2c4366['on']('addMarker:suggestion:formatBlock',_0xce2940(),{'priority':'high'});}),_0x5b67ca['conversion']['for']('editingDowncast')['add'](_0x44966b=>{_0x44966b['on']('addMarker:suggestion:attribute',_0xce2940({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5b67ca['conversion']['for']('editingDowncast')['add'](_0x42ba4d=>{_0x42ba4d['on']('removeMarker:suggestion:formatBlock',(_0x43bbaf,_0x225904,_0x468a34)=>{const _0x185e48=_0x468a34['mapper']['markerNameToElements'](_0x225904['markerName']);if(_0x185e48){for(const _0x88ab18 of _0x185e48)_0x88ab18['getCustomProperty']('addHighlight')||(_0x468a34['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x88ab18),_0x468a34['writer']['removeAttribute']('data-suggestion',_0x88ab18),_0x468a34['writer']['removeAttribute']('data-author-id',_0x88ab18),_0x468a34['mapper']['unbindElementFromMarkerName'](_0x88ab18,_0x225904['markerName']));}},{'priority':'high'});}),_0x5b67ca['conversion']['for']('editingDowncast')['add'](_0x16fdb5=>{_0x16fdb5['on']('removeMarker:suggestion:attribute',(_0x2a78f3,_0x540c7b,_0x36a542)=>{const _0x48b465=_0x36a542['mapper']['markerNameToElements'](_0x540c7b['markerName']);if(!_0x48b465)return;const {id:_0x46cda4}=this['_splitMarkerName'](_0x540c7b['markerName']),_0x460e37=this['_suggestions']['get'](_0x46cda4),_0x41957e=this['_getAttributeKey'](_0x460e37);if(this['_isBlockAttribute'](_0x41957e)){for(const _0xdfcfd8 of _0x48b465)_0xdfcfd8['getCustomProperty']('addHighlight')||(_0x36a542['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xdfcfd8),_0x36a542['writer']['removeAttribute']('data-suggestion',_0xdfcfd8),_0x36a542['writer']['removeAttribute']('data-author-id',_0xdfcfd8),_0x36a542['mapper']['unbindElementFromMarkerName'](_0xdfcfd8,_0x540c7b['markerName']));}},{'priority':'high'});}),_0x5b67ca['model']['document']['registerPostFixer'](_0x5eccb1=>{let _0x2e9c51=!0x1;const _0x19a57b=Array['from'](_0x5b67ca['model']['document']['differ']['getChangedMarkers']()),_0x542d05=new Set();for(const {name:_0xa500a9,data:_0x2d9709}of _0x19a57b){const {group:_0x18d156,type:_0x257b6e,subType:_0x5600df,id:_0x3b94d8}=this['_splitMarkerName'](_0xa500a9);if('suggestion'!==_0x18d156)continue;const _0x4ac537=this['_suggestions']['get'](_0x3b94d8);if(null!=_0x2d9709['newRange']){'formatInline'==_0x257b6e&&(_0x2e9c51=_0x2e9c51||Gt(_0x2d9709['newRange'],_0xa500a9,_0x5eccb1,_0x5b67ca['model']['schema']));const _0x145c20='attribute'==_0x257b6e&&this['_isBlockAttribute'](_0x5600df['split']('|')[0x0]);if(_0x2d9709['newRange']['isCollapsed']||'$graveyard'==_0x2d9709['newRange']['root']['rootName']||'formatBlock'==_0x257b6e&&!Jt(_0x2d9709['newRange'])||_0x145c20&&!Jt(_0x2d9709['newRange'])||'deletion'==_0x257b6e&&!Kt(_0x2d9709['newRange']))_0x5eccb1['removeMarker'](_0xa500a9),_0x2e9c51=!0x0;else{if(!_0x4ac537||!_0x4ac537['isInContent'])continue;if(_0x2d9709['newRange']&&_0x2d9709['oldRange']&&_0x2d9709['newRange']['isEqual'](_0x2d9709['oldRange']))continue;_0x542d05['add'](_0x4ac537);}}}return _0x542d05['size']>0x0&&(_0x2e9c51=!!this['_joinWithAdjacentSuggestions'](_0x542d05)||_0x2e9c51),_0x2e9c51;}),_0x5b67ca['model']['document']['registerPostFixer'](_0x55be59=>{let _0x4aee3f=!0x1;for(const _0xaa69c8 of _0x5b67ca['model']['document']['differ']['getChanges']())if('insert'==_0xaa69c8['type'])for(const _0x3a3025 of this['_suggestions']['values']()){if(_0x3a3025['isMultiRange']||!_0x3a3025['isInContent'])continue;const _0x22d081='formatBlock'==_0x3a3025['type'],_0x57aeca=this['_getAttributeKey'](_0x3a3025),_0x47b4f9=_0x57aeca&&this['_isBlockAttribute'](_0x57aeca);if(!_0x22d081&&!_0x47b4f9)continue;const _0xe24ff7=_0x3a3025['getFirstRange']();if(_0xe24ff7['start']['parent']!=_0xe24ff7['end']['parent']&&!_0xe24ff7['end']['isAtEnd']){const _0xcc8317=_0x5b67ca['model']['createPositionAt'](_0xe24ff7['start']['nodeAfter'],'end'),_0x5e3839=_0x5b67ca['model']['createRange'](_0xe24ff7['start'],_0xcc8317);_0x55be59['updateMarker'](_0x3a3025['getFirstMarker'](),{'range':_0x5e3839}),_0x4aee3f=!0x0;}}return _0x4aee3f;}),_0x5b67ca['model']['document']['registerPostFixer'](_0x17509b=>this['_processAttributeChanges'](_0x17509b)),_0x5b67ca['model']['document']['registerPostFixer'](_0x39817f=>!_0x39817f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x39817f)),_0x5b67ca['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5b67ca['model']['document']['on']('change:data',(_0x18533b,_0x331c71)=>{if(!_0x331c71['isLocal']||_0x331c71['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x410393=_0x5b67ca['model']['document']['differ']['getChanges']();if(0x0==_0x410393['length'])return;const _0x497492=[],_0x1f4f34=_0x410393['filter'](_0x451156=>'attribute'==_0x451156['type']),_0x362718=_0x410393['filter'](_0x322b7d=>'insert'==_0x322b7d['type']&&'$text'!=_0x322b7d['name']);for(const _0x3cd685 of _0x1f4f34)this['_isRegisteredAttribute'](_0x3cd685['attributeKey'])&&_0x497492['push']({'key':_0x3cd685['attributeKey'],'newValue':_0x3cd685['attributeNewValue'],'oldValue':_0x3cd685['attributeOldValue'],'range':Ht(_0x3cd685['range'],_0x5b67ca['model'])});for(const _0x5d8b9e of _0x362718){if('rename'!=_0x5d8b9e['action']&&'refresh'!=_0x5d8b9e['action'])continue;const _0x11033c=qt(_0x5d8b9e['position']['nodeAfter'],_0x5b67ca['model']),_0x49f7e9=_0x5d8b9e['before'];'rename'==_0x5d8b9e['action']&&_0x497492['push']({'key':m,'newValue':_0x5d8b9e['name'],'oldValue':_0x49f7e9['name'],'range':_0x11033c});for(const [_0x298dea,_0x212c6d]of _0x49f7e9['attributes']){if(!this['_isRegisteredAttribute'](_0x298dea))continue;const _0xa28e88=_0x5d8b9e['attributes']['get'](_0x298dea);_0x212c6d!==_0xa28e88&&_0x497492['push']({'key':_0x298dea,'newValue':_0xa28e88,'oldValue':_0x212c6d,'range':_0x11033c});}for(const [_0x12f005,_0x26a83d]of _0x5d8b9e['attributes'])this['_isRegisteredAttribute'](_0x12f005)&&(_0x49f7e9['attributes']['has'](_0x12f005)||_0x497492['push']({'key':_0x12f005,'newValue':_0x26a83d,'oldValue':null,'range':_0x11033c}));}0x0!=_0x497492['length']&&_0x5b67ca['model']['enqueueChange'](_0x331c71,_0x3495f0=>{const _0x127247=_0x4bb6e6();for(const {range:_0x2e63bf,key:_0x362c80,oldValue:_0x34478c,newValue:_0x2248f4}of _0x497492)this['markAttributeChange'](_0x2e63bf,_0x362c80,_0x34478c,_0x2248f4,{'groupId':_0x127247});this['_reduceExistingSuggestions'](_0x3495f0,_0x497492);});},{'priority':'lowest'}),_0x5b67ca['model']['markers']['on']('update:suggestion',(_0xea2309,_0x4cd3cc,_0x13cfab)=>{if(null==_0x13cfab){const {id:_0x12002e}=this['_splitMarkerName'](_0x4cd3cc['name']),_0x11fe39=this['_suggestions']['get'](_0x12002e);_0x11fe39&&_0x11fe39['addMarkerName'](_0x4cd3cc['name']);}}),_0x5b67ca['model']['document']['on']('change:data',()=>{const _0x2345b8=Array['from'](_0x5b67ca['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2d0b40=>'suggestion'===this['_splitMarkerName'](_0x2d0b40['name'])['group']);if(0x0===_0x2345b8['length'])return;_0x2345b8['sort']((_0x1d687b,_0x189ad0)=>{const _0x37d309=_0x1d687b['data']['oldRange'],_0x441895=_0x189ad0['data']['oldRange'];return null===_0x37d309&&null===_0x441895?0x0:null===_0x37d309&&null!==_0x441895?-0x1:null!==_0x37d309&&null===_0x441895?0x1:_0x37d309['start']['isBefore'](_0x441895['start'])?-0x1:0x1;});const _0x3830f7=new Set(),_0x406ef3=new Set();for(const {name:_0x528e61,data:_0xc44100}of _0x2345b8){const {id:_0x2f3d92}=this['_splitMarkerName'](_0x528e61);if(null===_0xc44100['oldRange']){const _0x323da2=this['_handleNewSuggestionMarker'](_0x528e61);_0x406ef3['add'](_0x323da2);}else{const _0x3e9196=this['_suggestions']['get'](_0x2f3d92);null!==_0xc44100['newRange']||_0x3e9196['isInContent']?(_0x3830f7['add'](_0x3e9196['head']),_0x406ef3['add'](_0x3e9196)):this['_removeSuggestion'](_0x3e9196);}}_0x406ef3['size']>0x0&&this['_refreshSuggestionsChain'](_0x406ef3);for(const _0x4ef0d9 of _0x3830f7)this['fire']('suggestionChanged',_0x4ef0d9);}),_0x5b67ca['model']['on']('applyOperation',(_0x35e6b8,_0x444454)=>{const _0x49bb60=_0x444454[0x0];if(!this['_suggestions']['size'])return;if(!_0x49bb60['isDocumentOperation'])return;if(_0x49bb60['batch']['isUndo']||!_0x49bb60['batch']['isLocal'])return;let _0x21e932,_0x2f2561;switch(_0x49bb60['type']){case'insert':_0x21e932=_0x5b67ca['model']['createPositionAt'](_0x49bb60['position']),_0x2f2561=_0x21e932['getShiftedBy'](_0x49bb60['howMany']);break;case'split':_0x21e932=_0x5b67ca['model']['createPositionAt'](_0x49bb60['splitPosition']),_0x2f2561=_0x5b67ca['model']['createPositionAt'](_0x49bb60['moveTargetPosition']);break;case'move':_0x21e932=_0x5b67ca['model']['createPositionAt'](_0x49bb60['targetPosition']),_0x2f2561=_0x21e932['getShiftedBy'](_0x49bb60['howMany']);break;default:return;}const _0x4fda20=_0x5b67ca['model']['createRange'](_0x21e932,_0x2f2561);_0x5b67ca['model']['change'](()=>{for(const {suggestion:_0xb94d74,meta:_0x2e6ef2}of this['_findSuggestions'](_0x4fda20)){if(_0xb94d74['isMultiRange'])continue;if('formatInline'==_0xb94d74['type'])continue;const _0x4a6fcd=this['_getAttributeKey'](_0xb94d74);if(_0x4a6fcd&&this['_isBlockAttribute'](_0x4a6fcd)&&'split'!=_0x49bb60['type'])continue;const _0x186995=_0xb94d74['data']&&_0xb94d74['data']['multipleBlocks'];('formatBlock'!=_0xb94d74['type']||'split'==_0x49bb60['type']&&!_0x186995)&&(_0x2e6ef2['containsRangeInObject']||'insertion'==_0xb94d74['type']&&_0x2e6ef2['isOwn']||_0xb94d74['getFirstRange']()['containsRange'](_0x4fda20)&&this['_breakSuggestionMarker'](_0xb94d74,_0x21e932,_0x2f2561));}});},{'priority':'lowest'}),_0x5b67ca['model']['on']('deleteContent',(_0x50bf3e,_0xfb8aad)=>{const _0x66ac63=_0xfb8aad[0x0],_0x12159d=_0xfb8aad[0x1];if(_0x12159d&&_0x12159d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x66ac63['isCollapsed'])return;const _0x2cc8b7=_0x5b67ca['model']['schema'],{start:_0x384b51,end:_0x1ab562}=_0x66ac63['getFirstRange'](),_0x558e53=_0x384b51['nodeAfter']&&_0x2cc8b7['isLimit'](_0x384b51['nodeAfter'])?null:_0x2cc8b7['getNearestSelectionRange'](_0x384b51,'forward'),_0x34ebe2=_0x1ab562['nodeBefore']&&_0x2cc8b7['isLimit'](_0x1ab562['nodeBefore'])?null:_0x2cc8b7['getNearestSelectionRange'](_0x1ab562,'backward'),_0x342114=_0x5b67ca['model']['createRange'](_0x558e53?_0x558e53['start']:_0x384b51,_0x34ebe2?_0x34ebe2['end']:_0x1ab562);_0x5b67ca['model']['change'](_0x4454cf=>{this['markDeletion'](_0x342114);const _0x4c3d98=_0x5b67ca['model']['schema']['getNearestSelectionRange'](_0x342114['start']);_0x66ac63['is']('documentSelection')?_0x4454cf['setSelection'](_0x4c3d98):_0x66ac63['setTo'](_0x4c3d98);}),_0x50bf3e['stop']();},{'priority':_0x2048ff['normal']+0xa}),_0x5b67ca['model']['on']('insertContent',(_0x3dff11,_0x4a2814)=>{const _0x303c38=_0x4a2814[_0x4a2814['length']-0x1];_0x303c38&&_0x303c38['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5b67ca['model']['change'](()=>{let _0x10321b=_0x5b67ca['model']['insertContent'](_0x4a2814[0x0],_0x4a2814[0x1],_0x4a2814[0x2],{'forceDefaultExecution':!0x0});if(!_0x10321b)return;_0x3dff11['return']=_0x10321b['clone']();const _0x481b1c=_0x10321b['end']['nodeBefore'],_0x52f9d3=_0x5b67ca['model']['schema'];_0x481b1c&&_0x52f9d3['isBlock'](_0x481b1c)&&!_0x52f9d3['isObject'](_0x481b1c)&&(_0x10321b=_0x5b67ca['model']['createRange'](_0x10321b['start'],_0x5b67ca['model']['createPositionAt'](_0x481b1c,'end'))),this['markInsertion'](_0x10321b);}),_0x3dff11['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x150a43=new D(_0x5b67ca,this['_suggestions']);_0x5b67ca['commands']['add']('acceptSuggestion',_0x150a43),this['enableCommand']('acceptSuggestion');const _0xcfc5ac=new M(_0x5b67ca,this['_suggestions']);_0x5b67ca['commands']['add']('discardSuggestion',_0xcfc5ac),this['enableCommand']('discardSuggestion'),_0x5b67ca['commands']['add']('acceptAllSuggestions',new $(_0x5b67ca,_0x150a43,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5b67ca['commands']['add']('discardAllSuggestions',new $(_0x5b67ca,_0xcfc5ac,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5b67ca['commands']['add']('acceptSelectedSuggestions',new B(_0x5b67ca,_0x150a43,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5b67ca['commands']['add']('discardSelectedSuggestions',new B(_0x5b67ca,_0xcfc5ac,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x17c381=_0x5b67ca['plugins']['get']('CommentsRepository');this['listenTo'](_0x17c381,'addComment',(_0xac626,{threadId:_0x4627f2})=>{const _0x6c36e=this['_suggestions']['get'](_0x4627f2);_0x6c36e&&_0x6c36e['commentThread']&&0x1===_0x6c36e['commentThread']['length']&&this['_updateSuggestionData'](_0x4627f2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x17c381,'removeComment',(_0x525d7c,{threadId:_0x23c36d})=>{const _0x212e6f=this['_suggestions']['get'](_0x23c36d);_0x212e6f&&_0x212e6f['commentThread']&&!_0x212e6f['commentThread']['length']&&this['_updateSuggestionData'](_0x23c36d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2616db){const _0x2cb66a=_0x1e85de([0x69,0x6a,0x56,0x61,0x36,0x33,0x68,0x65,0x6b,0x30,0x47,0x4a,0x32,0x72,0x59,0x6d,0x6f,0x4f,0x78,0x48,0x4b,0x58,0x42,0x45,0x7a,0x38,0x76,0x49,0x6e,0x70,0x5a,0x67,0x79,0x4e,0x77,0x41,0x43,0x44,0x39,0x6c,0x53,0x31,0x46,0x57,0x74,0x50,0x34,0x63,0x51,0x52,0x62,0x64,0x4d,0x54,0x75,0x71,0x4c,0x73,0x35,0x66,0x37,0x55]),_0xf39ede=0x39fbb5b1,_0x1f1b8c=0x39fcd9b9^_0xf39ede,_0x4be78e=window[_0x1e85de([0x44,0x61,0x74,0x65])][_0x1e85de([0x6e,0x6f,0x77])](),_0x2bced8=_0x2616db[_0x1e85de([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d193c=new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54e957=>{_0x2bced8[_0x1e85de([0x6f,0x6e,0x63,0x65])](_0x1e85de([0x72,0x65,0x61,0x64,0x79]),_0x54e957);}),_0x40aae0={[_0x1e85de([0x6b,0x74,0x79])]:_0x1e85de([0x45,0x43]),[_0x1e85de([0x75,0x73,0x65])]:_0x1e85de([0x73,0x69,0x67]),[_0x1e85de([0x63,0x72,0x76])]:_0x1e85de([0x50,0x2d,0x32,0x35,0x36]),[_0x1e85de([0x78])]:_0x1e85de([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]),[_0x1e85de([0x79])]:_0x1e85de([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]),[_0x1e85de([0x61,0x6c,0x67])]:_0x1e85de([0x45,0x53,0x32,0x35,0x36])},_0x5c9041=_0x2bced8[_0x1e85de([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e85de([0x67,0x65,0x74])](_0x1e85de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x202aa9(){let _0x53b836,_0x306b3=null,_0x24d6cf=null;try{if(_0x5c9041==_0x1e85de([0x47,0x50,0x4c]))return _0x1e85de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x53b836=_0x4a6e38(),!_0x53b836)return _0x1e85de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x53b836[_0x1e85de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24d6cf=_0x2e6aee(_0x53b836[_0x1e85de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x53b836[_0x1e85de([0x6a,0x74,0x69])])),await _0x33bf8f()?_0x2dad99()?_0x583946()?_0x1e85de([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a6f11()?(_0x53b836[_0x1e85de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e85de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x306b3=_0x35096b(_0x1e85de([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x53b836[_0x1e85de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e85de([0x74,0x72,0x69,0x61,0x6c])&&(_0x306b3=_0x35096b(_0x1e85de([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x298a5a()):_0x1e85de([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e85de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e85de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e85de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x583946(){const _0x189556=[_0x1e85de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e85de([0x74,0x72,0x69,0x61,0x6c])][_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53b836[_0x1e85de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4be78e/0x3e8:0xe10*_0x1f1b8c;return _0x53b836[_0x1e85de([0x65,0x78,0x70])]<_0x189556;}function _0x2dad99(){const _0x15402=_0x53b836[_0x1e85de([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x15402)return!0x1;if(_0x15402[_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e85de([0x2a])))return!0x0;if(_0x15402[_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e85de([0x54,0x43])))return!0x0;if(_0x15402[_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e85de([0x52,0x54,0x43]))){if(_0x3d5645())return!0x0;if(_0x524d6e()||_0x25b85d())return!0x0;}return!0x1;}function _0x3a6f11(){const _0x5413d4=_0x53b836[_0x1e85de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5413d4||0x0==_0x5413d4[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9756f5}=new URL(window[_0x1e85de([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5413d4[_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9756f5))return!0x0;const _0x5503d5=_0x9756f5[_0x1e85de([0x73,0x70,0x6c,0x69,0x74])](_0x1e85de([0x2e]));return _0x5413d4[_0x1e85de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18a68b=>_0x18a68b[_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e85de([0x2a])))[_0x1e85de([0x6d,0x61,0x70])](_0xbecc3e=>_0xbecc3e[_0x1e85de([0x73,0x70,0x6c,0x69,0x74])](_0x1e85de([0x2e])))[_0x1e85de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x473e39=>_0x473e39[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5503d5[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e85de([0x6d,0x61,0x70])](_0xf4182b=>Array(_0x5503d5[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf4182b[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e85de([0x66,0x69,0x6c,0x6c])](_0xf4182b[0x0]===_0x1e85de([0x2a])?_0x1e85de([0x2a]):'')[_0x1e85de([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf4182b))[_0x1e85de([0x73,0x6f,0x6d,0x65])](_0x119e72=>_0x5503d5[_0x1e85de([0x65,0x76,0x65,0x72,0x79])]((_0x1ff3f8,_0x5476f8)=>_0x119e72[_0x5476f8]===_0x1ff3f8||_0x119e72[_0x5476f8]===_0x1e85de([0x2a])));}function _0x298a5a(){return _0x306b3&&_0x24d6cf?new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x185b25,_0x13679f)=>{_0x306b3[_0x1e85de([0x74,0x68,0x65,0x6e])](_0x185b25,_0x13679f),_0x24d6cf[_0x1e85de([0x74,0x68,0x65,0x6e])](_0x58b4d8=>{_0x58b4d8!=_0x1e85de([0x56,0x61,0x6c,0x69,0x64])&&_0x185b25(_0x58b4d8);},_0x13679f);}):_0x306b3||_0x24d6cf||_0x1e85de([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e6aee(_0x4ce77b,_0x5be370){return new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19c340=>{if(_0x11364a())return _0x19c340(_0x1e85de([0x56,0x61,0x6c,0x69,0x64]));_0x3df894(),_0x2bced8[_0x1e85de([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e85de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14d648=!0x1;const _0x4d61b7=_0x4bb6e6();function _0x756464(_0x58fa83){return!!_0x58fa83&&(typeof _0x58fa83===_0x1e85de([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58fa83===_0x1e85de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58fa83[_0x1e85de([0x74,0x68,0x65,0x6e])]===_0x1e85de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58fa83[_0x1e85de([0x63,0x61,0x74,0x63,0x68])]===_0x1e85de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x110cd9(_0x23fb04){_0x1feda0(_0x23fb04)[_0x1e85de([0x74,0x68,0x65,0x6e])](_0x20302d=>{if(!_0x20302d||_0x20302d[_0x1e85de([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e85de([0x6f,0x6b]))return _0x1e85de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x32bc96(_0x49c89c(_0x4d61b7+_0x5be370))!=_0x20302d[_0x1e85de([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e85de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e85de([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e85de([0x74,0x68,0x65,0x6e])](_0x232d75=>(_0x3e3a21(),_0x232d75),()=>{const _0x3e1728=_0x38241e();return null==_0x3e1728?(_0x3e3a21(),_0x1e85de([0x56,0x61,0x6c,0x69,0x64])):_0x1e85de(_0x4be78e-_0x3e1728>(0x1df731b1^_0xf39ede)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e85de([0x74,0x68,0x65,0x6e])](_0x19c340)[_0x1e85de([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19c340(_0x1e85de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x471778=0x39cd5b31^_0xf39ede;function _0x3e3a21(){const _0xfb96f5=_0x1e85de([0x6c,0x6c,0x63,0x74,0x2d])+_0x32bc96(_0x49c89c(_0x4ce77b)),_0x2804ef=_0x2a663d(_0x32bc96(window[_0x1e85de([0x4d,0x61,0x74,0x68])][_0x1e85de([0x63,0x65,0x69,0x6c])](_0x4be78e/_0x471778)));window[_0x1e85de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e85de([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfb96f5,_0x2804ef);}function _0x38241e(){const _0x306f74=_0x1e85de([0x6c,0x6c,0x63,0x74,0x2d])+_0x32bc96(_0x49c89c(_0x4ce77b)),_0x5d8c54=window[_0x1e85de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e85de([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x306f74);return _0x5d8c54?window[_0x1e85de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a663d(_0x5d8c54),0x10)*_0x471778:null;}function _0x1feda0(_0x4c82cd){return new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb5545f,_0x14162a)=>{_0x4c82cd[_0x1e85de([0x74,0x68,0x65,0x6e])](_0xb5545f,_0x14162a),window[_0x1e85de([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14162a,0x39fa6171^_0xf39ede);});}}_0x2bced8[_0x1e85de([0x6f,0x6e])](_0x1e85de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4fae4f,_0x3d22b2)=>{if(_0x3d22b2[0x0]!=_0x4ce77b)return _0x19c340(_0x1e85de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d22b2[0x1]={..._0x3d22b2[0x1],[_0x1e85de([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d61b7};},{[_0x1e85de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e85de([0x68,0x69,0x67,0x68])}),_0x2bced8[_0x1e85de([0x6f,0x6e])](_0x1e85de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xbb1fb9=>{_0x756464(_0xbb1fb9[_0x1e85de([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14d648=!0x0,_0x110cd9(_0xbb1fb9[_0x1e85de([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e85de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e85de([0x6c,0x6f,0x77])}),_0x5d193c[_0x1e85de([0x74,0x68,0x65,0x6e])](()=>{_0x14d648||_0x19c340(_0x1e85de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x11364a(){return _0x2bced8[_0x1e85de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e85de([0x76,0x69,0x65,0x77])][_0x1e85de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e85de([0x61,0x75,0x74,0x6f]);}function _0x3df894(){_0x2bced8[_0x1e85de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e85de([0x76,0x69,0x65,0x77])][_0x1e85de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e85de([0x61,0x75,0x74,0x6f]);}}function _0x35096b(_0x39234a){const _0x205be7=[new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52c827=>setTimeout(_0x52c827,0x39f28b7d^_0xf39ede)),_0x5d193c[_0x1e85de([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x584fe1=>{let _0xdb1037=0x0;_0x2bced8[_0x1e85de([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e85de([0x6f,0x6e])](_0x1e85de([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a94f8,_0x3f0700)=>{_0x3f0700[0x0][_0x1e85de([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xdb1037++,_0xdb1037==(0x39fbb449^_0xf39ede)&&(_0x584fe1(),_0x4a94f8[_0x1e85de([0x6f,0x66,0x66])]());});}))];return window[_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e85de([0x72,0x61,0x63,0x65])](_0x205be7)[_0x1e85de([0x74,0x68,0x65,0x6e])](()=>_0x39234a);}async function _0x39f216(){await _0x5d193c,_0x2bced8[_0x1e85de([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e85de([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x14e444,_0x2bced8[_0x1e85de([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e85de([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x14e444,_0x2bced8[_0x1e85de([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e85de([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d5645(){return _0x5a907c(_0x1e85de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x276861(_0x1e85de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1e85de([0x73,0x74,0x61,0x74,0x65])]==_0x1e85de([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x524d6e(){return _0x5a907c(_0x1e85de([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 _0x25b85d(){return _0x5a907c(_0x1e85de([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x47c25b(_0x296d89){const _0x558fa9=_0x437a0f();_0x2bced8[_0x558fa9]=_0x1e85de([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x296d89,_0x296d89!=_0x1e85de([0x56,0x61,0x6c,0x69,0x64])&&_0x39f216();}function _0x437a0f(){const _0x1ad2da=window[_0x1e85de([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e85de([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e85de([0x6e,0x6f,0x77])]())[_0x1e85de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e85de([0x2e]),'');let _0x458cf7=_0x1e85de([0x69]);for(let _0x63e535=0x0;_0x63e535<_0x1ad2da[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x63e535+=0x2){let _0x104051=window[_0x1e85de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ad2da[_0x1e85de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x63e535,_0x63e535+0x2));_0x104051>=_0x2cb66a[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x104051-=_0x2cb66a[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x458cf7+=_0x2cb66a[_0x104051];}return _0x458cf7;}function _0x4a6e38(){const _0xbd99f7=_0x5c9041[_0x1e85de([0x73,0x70,0x6c,0x69,0x74])](_0x1e85de([0x2e]));if(0x3!=_0xbd99f7[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54d595(_0xbd99f7[0x1]);function _0x54d595(_0x294564){const _0x1b1a20=_0x310020(_0x294564);return _0x1b1a20&&_0x4ff9f9()?_0x1b1a20:null;function _0x4ff9f9(){const _0x2d14ec=_0x1b1a20[_0x1e85de([0x6a,0x74,0x69])],_0x20fc82=window[_0x1e85de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d14ec[_0x1e85de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d14ec[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c1a77={..._0x1b1a20,[_0x1e85de([0x6a,0x74,0x69])]:_0x2d14ec[_0x1e85de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d14ec[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c1a77[_0x1e85de([0x76,0x63])],_0x49c89c(_0x5c1a77)==_0x20fc82;}}}async function _0x33bf8f(){let _0x330af8=!0x0;try{const _0x4e8653=_0x5c9041[_0x1e85de([0x73,0x70,0x6c,0x69,0x74])](_0x1e85de([0x2e])),[_0x2bbc49,_0x551d24,_0x253b01]=_0x4e8653;return _0x80123f(_0x2bbc49),await _0x31c163(_0x2bbc49,_0x551d24,_0x253b01),_0x330af8;}catch{return!0x1;}function _0x80123f(_0x14581d){const _0x25ef7a=_0x310020(_0x14581d);_0x25ef7a&&_0x25ef7a[_0x1e85de([0x61,0x6c,0x67])]==_0x1e85de([0x45,0x53,0x32,0x35,0x36])||(_0x330af8=!0x1);}async function _0x31c163(_0x3f2b36,_0x2e64b2,_0x317db7){const _0x1aa4f1=window[_0x1e85de([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e85de([0x66,0x72,0x6f,0x6d])](_0x5d3ef5(_0x317db7),_0x5058b2=>_0x5058b2[_0x1e85de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x14812c=new window[(_0x1e85de([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e85de([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f2b36+_0x1e85de([0x2e])+_0x2e64b2),_0x4e5c1e=window[_0x1e85de([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e85de([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e5c1e)return;const _0x33aaa6=await _0x4e5c1e[_0x1e85de([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e85de([0x6a,0x77,0x6b]),_0x40aae0,{[_0x1e85de([0x6e,0x61,0x6d,0x65])]:_0x1e85de([0x45,0x43,0x44,0x53,0x41]),[_0x1e85de([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e85de([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e85de([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e5c1e[_0x1e85de([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e85de([0x6e,0x61,0x6d,0x65])]:_0x1e85de([0x45,0x43,0x44,0x53,0x41]),[_0x1e85de([0x68,0x61,0x73,0x68])]:{[_0x1e85de([0x6e,0x61,0x6d,0x65])]:_0x1e85de([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x33aaa6,_0x1aa4f1,_0x14812c)||(_0x330af8=!0x1);}}function _0x310020(_0x42a099){return _0x42a099[_0x1e85de([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e85de([0x65,0x79]))?JSON[_0x1e85de([0x70,0x61,0x72,0x73,0x65])](_0x5d3ef5(_0x42a099)):null;}function _0x5d3ef5(_0x3a5a84){return window[_0x1e85de([0x61,0x74,0x6f,0x62])](_0x3a5a84[_0x1e85de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e85de([0x2b]))[_0x1e85de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e85de([0x2f])));}function _0x49c89c(_0x2fefa0){let _0x8b1b1d=0x1505;function _0x1f63d8(_0x2a4064){for(let _0x5ba380=0x0;_0x5ba380<_0x2a4064[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ba380++){const _0x589caa=_0x2a4064[_0x1e85de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ba380);_0x8b1b1d=(_0x8b1b1d<<0x5)+_0x8b1b1d+_0x589caa,_0x8b1b1d&=_0x8b1b1d;}}function _0x2a0af6(_0x252068){Array[_0x1e85de([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x252068)?_0x252068[_0x1e85de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a0af6):_0x252068&&typeof _0x252068==_0x1e85de([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e85de([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x252068)[_0x1e85de([0x73,0x6f,0x72,0x74])]()[_0x1e85de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59c265,_0xf3baac])=>{_0x1f63d8(_0x59c265),_0x2a0af6(_0xf3baac);}):_0x1f63d8(window[_0x1e85de([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x252068));}return _0x2a0af6(_0x2fefa0),_0x8b1b1d>>>0x0;}function _0x32bc96(_0x4f6277){return _0x4f6277[_0x1e85de([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e85de([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e85de([0x30]));}function _0x2a663d(_0x5231dc){return _0x5231dc[_0x1e85de([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e85de([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e85de([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a907c(_0x1d1f42){return _0x2bced8[_0x1e85de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e85de([0x68,0x61,0x73])](_0x1d1f42);}function _0x276861(_0x534550){return _0x2bced8[_0x1e85de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e85de([0x67,0x65,0x74])](_0x534550);}function _0x14e444(){}function _0x1e85de(_0x5d20df){return _0x5d20df['map'](_0x10b5a1=>String['fromCharCode'](_0x10b5a1))['join']('');}_0x47c25b(await _0x202aa9());}(this);}set['adapter'](_0x16123e){if(this['_adapter'])throw new _0x30e493('track-changes-adapter-already-set',this);this['_adapter']=_0x16123e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2807e5=!0x1,toJSON:_0x12faca=!0x1}={}){const _0x2f8111=[];for(const _0x1e6e70 of this['_suggestions']['values']())_0x2807e5&&!_0x1e6e70['isInContent']||_0x2f8111['push'](_0x1e6e70);return _0x12faca?_0x2f8111['map'](_0x2f6799=>_0x2f6799['toJSON']()):_0x2f8111;}['getSuggestion'](_0x193908){const _0x1794e2=this['_suggestions']['get'](_0x193908);if(!_0x1794e2)throw new _0x30e493('track-changes-suggestion-not-found',this);return _0x1794e2;}['hasSuggestion'](_0x24f566){return this['_suggestions']['has'](_0x24f566);}['addSuggestionData'](_0x243cd3){const {authorId:_0x325c3a,id:_0x440946,originalSuggestionId:_0x4c1a16,attributes:_0x423c8a}=_0x243cd3,[_0xede251,_0x319b6c]=_0x243cd3['type']['split'](':'),_0x4557d9=this['_suggestions']['get'](_0x440946)||this['_createSuggestion'](_0xede251,_0x319b6c,_0x440946,_0x325c3a,_0x423c8a,_0x4c1a16);if(this['_addThreadToSuggestion'](_0x4557d9),this['_checkSuggestionCorrectness'](_0x4557d9,_0xede251,_0x319b6c||null,_0x325c3a),_0x4557d9['createdAt']=_0x243cd3['createdAt'],_0x4557d9['_isDataLoaded']=!0x0,_0x423c8a&&_0x423c8a['@external']){const _0x241d1b=_0x423c8a['@external'],_0x371d02=this['_getExternalAuthor'](_0x241d1b['authorName']);_0x4557d9['authoredAt']=_0x241d1b['createdAt'],_0x4557d9['author']=_0x371d02,_0x4557d9['isExternal']=!0x0;}else _0x4557d9['authoredAt']=_0x243cd3['createdAt'];switch(_0x243cd3['data']&&(_0x4557d9['data']=_0x243cd3['data']),_0x243cd3['attributes']&&(_0x4557d9['attributes']=_0x243cd3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4557d9['_saved']=!0x0),this['_suggestionState']['get'](_0x4557d9)){case'notReady':this['_suggestionState']['set'](_0x4557d9,'dataReady');break;case'markerReady':_0x4557d9['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4557d9])),this['_refreshSuggestionsChain'](new Set([_0x4557d9])),this['_suggestionState']['set'](_0x4557d9,'ready'),this['fire']('suggestionLoaded',_0x4557d9)):this['_suggestionState']['set'](_0x4557d9,'removed');}return _0x4557d9;}['acceptSuggestion'](_0x4e575f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2ecf47 of _0x4e575f['getAllAdjacentSuggestions']())_0x2ecf47['accept']();});});}['discardSuggestion'](_0x56cbea){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x317436 of _0x56cbea['getAllAdjacentSuggestions']())_0x317436['discard']();});});}['enableCommand'](_0xafea7b,_0x3f820f){const _0x18f815=this['editor']['commands']['get'](_0xafea7b);if(!_0x18f815)throw new _0x30e493('track-changes-command-not-found',this,{'commandName':_0xafea7b});if(this['_enabledCommands']['has'](_0x18f815))throw new _0x30e493('track-changes-enable-command-twice',this,{'commandName':_0xafea7b});this['_enabledCommands']['add'](_0x18f815),_0x3f820f&&_0x18f815['on']('execute',(_0x33db4b,_0x526ee6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x526ee6['length']>0x0&&_0x526ee6[_0x526ee6['length']-0x1]&&_0x526ee6[_0x526ee6['length']-0x1]['forceDefaultExecution']?_0x526ee6['pop']():(_0x33db4b['return']=_0x3f820f((..._0x4acf9f)=>_0x18f815['execute'](..._0x4acf9f,{'forceDefaultExecution':!0x0}),..._0x526ee6),_0x33db4b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5164f2){let _0xb7afac,_0xb96540;const _0x3d315d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xb7afac=_0x5164f2();}catch(_0x17ef17){_0xb96540=_0x17ef17;}return _0x3d315d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xb96540&&_0x30e493['rethrowUnexpectedError'](_0xb96540,this),_0xb7afac;}['markInsertion'](_0x4b8f19,_0x1b28b8=null,_0x14a91d={}){if(_0x4b8f19['isCollapsed'])return null;const _0x50be98=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x14a91d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4e1e88,meta:_0x2d1bc9}of this['_findSuggestions'](_0x4b8f19,'insertion'))if(_0x2d1bc9['isOwn']){if(!_0x2d1bc9['isNextTo']){if(_0x2d1bc9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x4e1e88,_0x14a91d))continue;return _0x4e1e88;}if(Qt(_0x4e1e88,_0x14a91d))return _0x4e1e88;this['_breakSuggestionMarker'](_0x4e1e88,_0x4b8f19['start'],_0x4b8f19['end']);break;}if(_0x1b28b8==_0x4e1e88['subType']&&Qt(_0x4e1e88,_0x14a91d)){const _0x257742=_0x4e1e88['getFirstRange']();return _0x257742['start']['isEqual'](_0x4b8f19['end'])?this['_setSuggestionRange'](_0x4e1e88,this['_model']['createRange'](_0x4b8f19['start'],_0x257742['end'])):this['_setSuggestionRange'](_0x4e1e88,this['_model']['createRange'](_0x257742['start'],_0x4b8f19['end'])),_0x4e1e88;}}const _0x5d9f70=_0x4bb6e6(),_0x14c3f4=_0x50be98['id'],_0x55ce0a=_0x1b28b8?'insertion:'+_0x1b28b8:'insertion',_0x530cbc=this['_setSuggestionData']({'id':_0x5d9f70,'type':_0x55ce0a,'createdAt':new Date(),'authorId':_0x14c3f4,'attributes':_0x14a91d});return this['_addSuggestionMarker'](_0x55ce0a,_0x5d9f70,_0x14c3f4,_0x4b8f19),_0x530cbc;}['markMultiRangeInsertion'](_0x4199a7,_0x6a07cb='multi',_0x149e9e={}){const _0x2e76ad=this['editor']['plugins']['get']('Users')['me'],_0x1dcf10=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x6a07cb,'join');this['_trackingSessionId']&&(_0x149e9e['trackingSessionId']=this['_trackingSessionId']);for(const _0x574137 of this['getSuggestions']())if(_0x574137['author']['id']==_0x2e76ad['id']&&'insertion'==_0x574137['type']&&_0x574137['subType']==_0x6a07cb&&Qt(_0x574137,_0x149e9e)&&(_0x1dcf10(_0x574137['getRanges'](),_0x4199a7)||_0x1dcf10(_0x4199a7,_0x574137['getRanges']()))){for(const _0x1c20bd of _0x4199a7)_0x574137['addRange'](_0x1c20bd);return _0x574137;}for(const {suggestion:_0x3bc96c,meta:_0x2d5dad}of this['_findSuggestions'](_0x4199a7,'insertion')){if(!_0x2d5dad['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2d5dad['containsRangeInObject'])continue;if(!Qt(_0x3bc96c,_0x149e9e))continue;let _0x21089a=!0x0;for(const _0x2a65c2 of _0x3bc96c['getRanges']())for(const _0x33b114 of _0x4199a7)if(!_0x2a65c2['containsRange'](_0x33b114)){_0x21089a=!0x1;break;}if(_0x21089a)return _0x3bc96c;}const _0x46d2ca=_0x4bb6e6(),_0x175f8c=_0x2e76ad['id'],_0x4769ba='insertion:'+_0x6a07cb,_0x27b09b=this['_setSuggestionData']({'id':_0x46d2ca,'type':_0x4769ba,'createdAt':new Date(),'authorId':_0x175f8c,'attributes':_0x149e9e});for(const _0x2c6a8d of _0x4199a7)this['_addSuggestionMarker'](_0x4769ba,_0x46d2ca,_0x175f8c,_0x2c6a8d,T['getMultiRangeId']());return _0x27b09b;}['markInlineFormat'](_0x3f0b11,_0x2bf282,_0x4b7d1c=null,_0x517c89={}){if(_0x4b7d1c=_0x4b7d1c||Lt(_0x2bf282),_0x3f0b11['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x517c89['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3bdded=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b7d1c,'accept');return this['forceDefaultExecution'](()=>_0x3bdded([_0x3f0b11],_0x2bf282,_0x517c89)),null;}const _0x4bd1e7=this['editor']['plugins']['get']('Users')['me'],_0x5e4676=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2fb6c7,meta:_0x261102}of this['_findSuggestions'](_0x3f0b11,'insertion'))_0x261102['isOwn']&&!_0x261102['isInsideObject']&&_0x5e4676['push'](..._0x2fb6c7['getRanges']());}const _0x206078=function(_0x563e0b,_0x4a7297){const _0x4c4306=[];for(const _0x5c9451 of _0x4a7297){const _0x15852d=_0x563e0b['getIntersection'](_0x5c9451);_0x15852d&&_0x4c4306['push'](_0x15852d);}return _0x4c4306;}(_0x3f0b11,_0x5e4676),_0x348ec7=function(_0x598b90,_0x5677ed){const _0x1e85fc=[_0x598b90];for(const _0xe7fdb8 of _0x5677ed){let _0x1a709f=0x0;for(;_0x1a709f<_0x1e85fc['length'];){const _0x4ed0a1=_0x1e85fc[_0x1a709f]['getDifference'](_0xe7fdb8);_0x1e85fc['splice'](_0x1a709f,0x1,..._0x4ed0a1),_0x1a709f+=_0x4ed0a1['length'];}}return _0x1e85fc;}(_0x3f0b11,_0x5e4676);_0x206078['length']&&this['_model']['change'](()=>{for(const _0x3f1dbd of _0x206078){const _0x28d113=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b7d1c,'accept');this['forceDefaultExecution'](()=>_0x28d113([_0x3f1dbd],_0x2bf282,_0x517c89));}});for(const _0x426617 of _0x348ec7){let _0x2b27c9=null,_0x33d6ff=_0x426617['start'],_0x2357ce=_0x426617['end'];for(const {suggestion:_0x2adc92,meta:_0x58e96a}of this['_findSuggestions'](_0x426617,'formatInline')){if(!_0x58e96a['isOwn'])continue;if(_0x2adc92['subType']!=_0x4b7d1c)continue;if(!Qt(_0x2adc92,_0x517c89))continue;const _0x5675db=_0x2adc92['getFirstRange']();if(_0x5675db['containsRange'](_0x426617,!0x0))return null;_0x33d6ff=_0x33d6ff['isBefore'](_0x5675db['start'])?_0x33d6ff:_0x5675db['start'],_0x2357ce=_0x2357ce['isAfter'](_0x5675db['end'])?_0x2357ce:_0x5675db['end'],_0x2b27c9?_0x5675db['start']['isBefore'](_0x2b27c9['getFirstRange']()['start'])?(_0x2b27c9['removeMarkers'](),_0x2b27c9=_0x2adc92):_0x2adc92['removeMarkers']():_0x2b27c9=_0x2adc92;}const _0x32eff5=this['_model']['createRange'](_0x33d6ff,_0x2357ce);if(_0x2b27c9)this['_setSuggestionRange'](_0x2b27c9,_0x32eff5);else{const _0x501a56=_0x4bb6e6(),_0x1d0e7c=_0x4bd1e7['id'];this['_setSuggestionData']({'id':_0x501a56,'type':'formatInline:'+_0x4b7d1c,'data':_0x2bf282,'createdAt':new Date(),'authorId':_0x1d0e7c,'attributes':_0x517c89}),this['_addSuggestionMarker']('formatInline:'+_0x4b7d1c,_0x501a56,_0x1d0e7c,_0x32eff5);}}return null;}['markBlockFormat'](_0x37da9e,_0x2efd87,_0x51ba83=[],_0x3aab0e=null,_0x58f045={}){_0x2efd87['formatGroupId']||(_0x2efd87['formatGroupId']=_0x2efd87['commandName']),_0x2efd87['multipleBlocks']=_0x37da9e['is']('range'),_0x3aab0e=_0x3aab0e||Lt(_0x2efd87);const _0x34206f=_0x51ba83['map'](_0x235dbd=>qt(_0x235dbd,this['_model'])),_0x28b853=_0x37da9e['is']('range')?_0x37da9e:qt(_0x37da9e,this['_model']);if(this['_trackingSessionId']&&(_0x58f045['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x421a87=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3aab0e,'accept');return this['forceDefaultExecution'](()=>_0x421a87([_0x28b853],_0x2efd87,_0x58f045)),null;}_0x34206f['push'](_0x28b853);let _0x3dba11=!0x0;for(const _0x3b420b of _0x34206f)if(!this['_rangeIsInLocalUserInsertion'](_0x3b420b)){_0x3dba11=!0x1;break;}if(_0x3dba11&&'always'!==this['_trackFormatChanges']){const _0x3e2a4d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3aab0e,'accept');return this['forceDefaultExecution'](()=>_0x3e2a4d([_0x28b853],_0x2efd87,_0x58f045)),null;}let _0x3675ae=null,_0x4178d7=_0x28b853['start'],_0x2970a7=_0x28b853['end'];for(const {suggestion:_0x2f4a1e,meta:_0xc6861a}of this['_findSuggestions'](_0x28b853,'formatBlock')){if(!_0xc6861a['isOwn'])continue;if(_0xc6861a['isNextTo']||_0xc6861a['containsRangeInObject']||_0xc6861a['isInsideObject'])continue;if(_0x2f4a1e['data']['formatGroupId']!=_0x2efd87['formatGroupId'])continue;if(!Qt(_0x2f4a1e,_0x58f045))continue;const _0x3144bf=_0x2f4a1e['getFirstRange']();if(_0x2f4a1e['subType']==_0x3aab0e){if(_0x3144bf['containsRange'](_0x28b853,!0x0))return null;_0x4178d7=_0x4178d7['isBefore'](_0x3144bf['start'])?_0x4178d7:_0x3144bf['start'],_0x2970a7=_0x2970a7['isAfter'](_0x3144bf['end'])?_0x2970a7:_0x3144bf['end'],_0x3675ae?_0x3144bf['start']['isBefore'](_0x3675ae['getFirstRange']()['start'])?(_0x3675ae['removeMarkers'](),_0x3675ae=_0x2f4a1e):_0x2f4a1e['removeMarkers']():_0x3675ae=_0x2f4a1e;}else{const _0x385226=_0x28b853['getIntersection'](_0x3144bf);this['_cutOutSuggestionMarker'](_0x2f4a1e,_0x385226);}}const _0x76626b=this['editor']['plugins']['get']('Users')['me'],_0x15e521=_0x4bb6e6(),_0x102c74=_0x76626b['id'];if(_0x3675ae)return this['_setSuggestionRange'](_0x3675ae,this['_model']['createRange'](_0x4178d7,_0x2970a7)),_0x3675ae;{const _0x328a26=this['_setSuggestionData']({'id':_0x15e521,'type':'formatBlock:'+_0x3aab0e,'data':_0x2efd87,'createdAt':new Date(),'authorId':_0x102c74,'attributes':_0x58f045});return this['_addSuggestionMarker']('formatBlock:'+_0x3aab0e,_0x15e521,_0x102c74,this['_model']['createRange'](_0x4178d7,_0x2970a7)),_0x328a26;}}['markMultiRangeBlockFormat'](_0x50f4ae,_0x14ccee,_0x100cc3=[],_0x4b64e5=null,_0x1391ae={}){_0x14ccee['formatGroupId']||(_0x14ccee['formatGroupId']=_0x14ccee['commandName']);const _0x578f5d=_0x50f4ae[0x0];_0x14ccee['multipleBlocks']=_0x578f5d['is']('range'),_0x4b64e5=_0x4b64e5||Lt(_0x14ccee);const _0x23c715=_0x100cc3['map'](_0x41382b=>qt(_0x41382b,this['_model'])),_0x1a88ca=_0x578f5d['is']('range')?_0x50f4ae:_0x50f4ae['map'](_0x3f584c=>qt(_0x3f584c,this['_model']));if(this['_trackingSessionId']&&(_0x1391ae['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4177de=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b64e5,'accept');return this['forceDefaultExecution'](()=>_0x4177de(_0x1a88ca,_0x14ccee,_0x1391ae)),null;}_0x23c715['push'](..._0x1a88ca);let _0x246c9a=!0x0;for(const _0x5af8d7 of _0x23c715)if(!this['_rangeIsInLocalUserInsertion'](_0x5af8d7)){_0x246c9a=!0x1;break;}if(_0x246c9a&&'always'!==this['_trackFormatChanges']){const _0x456e54=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b64e5,'accept');return this['forceDefaultExecution'](()=>_0x456e54(_0x1a88ca,_0x14ccee,_0x1391ae)),null;}const _0x58789c=this['editor']['plugins']['get']('Users')['me'];for(const _0x3089d3 of this['getSuggestions']()){const _0x5a6daf=_0x3089d3['data'];if(_0x3089d3['author']['id']!=_0x58789c['id'])continue;if('formatBlock'!=_0x3089d3['type']||_0x5a6daf['formatGroupId']!=_0x14ccee['formatGroupId'])continue;if(!Qt(_0x3089d3,_0x1391ae))continue;const _0x46ecc1=_0x3089d3['subType']==_0x4b64e5;for(let _0x59cb78=0x0;_0x59cb78<_0x1a88ca['length'];_0x59cb78++){const _0x272388=_0x1a88ca[_0x59cb78];for(const _0x204516 of _0x3089d3['getMarkers']()){const _0x1b5593=_0x204516['getRange']();if(_0x272388['isEqual'](_0x1b5593)){_0x46ecc1?(_0x1a88ca['splice'](_0x59cb78,0x1),_0x59cb78--):_0x3089d3['removeMarker'](_0x204516['name']);break;}}}}if(0x0==_0x1a88ca['length'])return null;const _0xf10d4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b64e5,'join');for(const _0x51a126 of this['getSuggestions']()){const _0x143da0=_0x51a126['data'];if(_0x51a126['author']['id']==_0x58789c['id']&&('formatBlock'==_0x51a126['type']&&_0x143da0['formatGroupId']==_0x14ccee['formatGroupId']&&_0x51a126['subType']==_0x4b64e5&&Qt(_0x51a126,_0x1391ae)&&(_0xf10d4(_0x51a126['getRanges'](),_0x1a88ca)||_0xf10d4(_0x1a88ca,_0x51a126['getRanges']())))){for(const _0x539935 of _0x1a88ca)_0x51a126['addRange'](_0x539935);return _0x51a126;}}const _0x13e2a1=_0x4bb6e6(),_0x154072=_0x58789c['id'],_0x5b56a2='formatBlock:'+_0x4b64e5,_0x222411=this['_setSuggestionData']({'id':_0x13e2a1,'type':_0x5b56a2,'data':_0x14ccee,'createdAt':new Date(),'authorId':_0x154072,'attributes':_0x1391ae});for(const _0x581f5a of _0x1a88ca)this['_addSuggestionMarker'](_0x5b56a2,_0x13e2a1,_0x154072,_0x581f5a,T['getMultiRangeId']());return _0x222411;}['markDeletion'](_0x59f721,_0x27b183=null,_0x442508={}){if(_0x59f721['isCollapsed'])return null;const _0x1a9035=this['editor']['plugins']['get']('Users')['me'],_0x442b6f=new _0xd7f50(_0x59f721['start'],_0x59f721['end']);this['_trackingSessionId']&&(_0x442508['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3ff71e,meta:_0x18ddc1}of this['_findSuggestions'](_0x442b6f,'insertion'))if(_0x18ddc1['isOwn']&&!_0x18ddc1['isNextTo']){if(_0x3ff71e['isMultiRange']){const _0x5593bf=_0x3ff71e['getRanges']()['filter'](_0x43f8b9=>'$graveyard'!=_0x43f8b9['root']['rootName']);_0x5593bf['every'](_0x2a4dd2=>_0x442b6f['containsRange'](_0x2a4dd2,!0x0))&&_0x3ff71e['discard']();if(_0x5593bf['some'](_0x38028c=>_0x38028c['containsRange'](_0x442b6f,!0x0))){const _0x2bc1f9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27b183,'accept');return this['forceDefaultExecution'](()=>_0x2bc1f9([_0x442b6f],null,_0x442508)),null;}}else{const _0x5a86f1=_0x442b6f['getIntersection'](_0x3ff71e['getFirstRange']());null!==_0x5a86f1&&_0x3ff71e['_onDiscard']([_0x5a86f1],null,_0x442508);}}if(_0x442b6f['detach'](),_0x442b6f['isCollapsed']||'$graveyard'==_0x442b6f['root']['rootName'])return null;let _0x5e3930=null,_0x4269d5=_0x442b6f['start'],_0x384ca2=_0x442b6f['end'];const _0xc619f5=this['_findSuggestions'](_0x442b6f,'deletion');for(const {suggestion:_0x5f5b2b,meta:_0x3d6286}of _0xc619f5){const _0x28f81b=this['_model']['createRange'](_0x4269d5,_0x384ca2);if(_0x3d6286['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3d6286['containsRangeInObject']&&!_0x3d6286['isInsideObject'])){if(_0x5f5b2b['isMultiRange']){if(!Qt(_0x5f5b2b,_0x442508))continue;let _0x550390=!0x0;for(const _0x30f438 of _0x5f5b2b['getRanges']()){if(_0x30f438['containsRange'](_0x28f81b,!0x0))return _0x5f5b2b;_0x28f81b['containsRange'](_0x30f438)||(_0x550390=!0x1);}_0x550390&&_0x5f5b2b['discard']();}else{const _0x3dba8b=_0x5f5b2b['getFirstRange']();if(_0x3dba8b['containsRange'](_0x28f81b,!0x0))return _0x5f5b2b;if(!Qt(_0x5f5b2b,_0x442508)){_0x28f81b['containsRange'](_0x3dba8b)?_0x5f5b2b['removeMarkers']():_0x3dba8b['containsPosition'](_0x4269d5)?_0x4269d5=_0x3dba8b['end']:_0x3dba8b['containsPosition'](_0x384ca2)&&(_0x384ca2=_0x3dba8b['start']);continue;}_0x4269d5=_0x4269d5['isBefore'](_0x3dba8b['start'])?_0x4269d5:_0x3dba8b['start'],_0x384ca2=_0x384ca2['isAfter'](_0x3dba8b['end'])?_0x384ca2:_0x3dba8b['end'],_0x442508=Object['assign']({},_0x5f5b2b['attributes']),_0x5e3930?_0x3dba8b['start']['isBefore'](_0x5e3930['getFirstRange']()['start'])?(_0x5e3930['removeMarkers'](),_0x5e3930=_0x5f5b2b):_0x5f5b2b['removeMarkers']():_0x5e3930=_0x5f5b2b;}}}if(_0x5e3930)return this['_setSuggestionRange'](_0x5e3930,this['_model']['createRange'](_0x4269d5,_0x384ca2)),_0x5e3930;{const _0x2d810f=_0x4bb6e6(),_0x542c06=this['_model']['createRange'](_0x4269d5,_0x384ca2),_0x1f4a12=_0x1a9035['id'],_0xaf84e2=_0x27b183?'deletion:'+_0x27b183:'deletion',_0x7cf854=this['_setSuggestionData']({'id':_0x2d810f,'type':_0xaf84e2,'createdAt':new Date(),'authorId':_0x1f4a12,'attributes':_0x442508});return this['_addSuggestionMarker'](_0xaf84e2,_0x2d810f,_0x1f4a12,_0x542c06),_0x7cf854;}}['markMultiRangeDeletion'](_0x299475,_0x5cfe2d='multi',_0x459383={}){const _0x4f283c=this['editor']['plugins']['get']('Users')['me'],_0xbbeff6=_0x299475['map'](_0xca7263=>new _0xd7f50(_0xca7263['start'],_0xca7263['end'])),_0x25fbda=new Set();this['_trackingSessionId']&&(_0x459383['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x276085,meta:_0x4cef}of this['_findSuggestions'](_0xbbeff6,'insertion'))_0x4cef['isOwn']&&!_0x4cef['isNextTo']&&_0x25fbda['add'](_0x276085);for(const _0x53afa1 of _0x25fbda)if(_0x53afa1['isMultiRange']){const _0x35c5ad=_0x53afa1['getRanges']();(!_0x53afa1['attributes']||!_0x53afa1['attributes']['skipNestingCheck'])&&(_0x35c5ad['every'](_0x49fbcb=>_0xbbeff6['some'](_0x45639d=>_0x45639d['containsRange'](_0x49fbcb,!0x0)))&&_0x53afa1['discard']());if(_0xbbeff6['every'](_0x46db42=>_0x35c5ad['some'](_0x26f971=>_0x26f971['containsRange'](_0x46db42,!0x0)))){const _0x42193c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5cfe2d,'accept');return this['forceDefaultExecution'](()=>_0x42193c(_0x299475,null,_0x459383)),null;}}else{const _0x36dbc8=_0x53afa1['getFirstRange']();_0xbbeff6['some'](_0x8d6add=>_0x8d6add['containsRange'](_0x36dbc8,!0x0))&&_0x53afa1['discard']();if(_0xbbeff6['every'](_0x517aa0=>_0x36dbc8['containsRange'](_0x517aa0,!0x0))){const _0x211cfa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5cfe2d,'accept');return this['forceDefaultExecution'](()=>_0x211cfa(_0xbbeff6,null,_0x459383)),null;}}const _0x2ae1fd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5cfe2d,'join');let _0x2ebf02=null;for(const _0x36884a of this['getSuggestions']())if(_0x36884a['author']['id']==_0x4f283c['id']&&_0x36884a['isInContent']&&'deletion'==_0x36884a['type']&&_0x36884a['subType']==_0x5cfe2d&&Qt(_0x36884a,_0x459383)&&(_0x2ae1fd(_0x36884a['getRanges'](),_0xbbeff6)||_0x2ae1fd(_0xbbeff6,_0x36884a['getRanges']()))){if(_0x2ebf02){if(_0x36884a['commentThread']&&_0x36884a['commentThread']['length'])continue;for(const _0x447d13 of _0x36884a['getRanges']())_0x2ebf02['isIntersectingWithRange'](_0x447d13)||_0x2ebf02['addRange'](_0x447d13);_0x36884a['removeMarkers']();}else{_0x2ebf02=_0x36884a;for(const _0x3af0c3 of _0xbbeff6)_0x36884a['isIntersectingWithRange'](_0x3af0c3)||_0x36884a['addRange'](_0x3af0c3);}}if(_0x2ebf02)return _0x2ebf02;_0x25fbda['clear']();for(const {suggestion:_0xedd641,meta:_0x2e7f4b}of this['_findSuggestions'](_0xbbeff6,'deletion'))_0x2e7f4b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2e7f4b['containsRangeInObject']&&!_0x2e7f4b['isInsideObject'])&&Qt(_0xedd641,_0x459383)&&_0x25fbda['add'](_0xedd641);for(const _0x53893c of _0x25fbda){const _0x10ff65=_0x53893c['getRanges']();if(!_0x459383||!_0x459383['skipNestingCheck']){if(_0xbbeff6['every'](_0x3412b7=>_0x10ff65['some'](_0x127581=>_0x127581['containsRange'](_0x3412b7,!0x0))))return _0x53893c;}(!_0x53893c['attributes']||!_0x53893c['attributes']['skipNestingCheck'])&&(_0x10ff65['every'](_0x44c3fa=>_0xbbeff6['some'](_0x272ad5=>_0x272ad5['containsRange'](_0x44c3fa,!0x0)))&&_0x53893c['discard']());}const _0x1ebb09=_0x4bb6e6(),_0x27f6ac=_0x4f283c['id'],_0x1de963='deletion:'+_0x5cfe2d,_0x5a096d=this['_setSuggestionData']({'id':_0x1ebb09,'type':_0x1de963,'createdAt':new Date(),'authorId':_0x27f6ac,'attributes':_0x459383});for(const _0x4e12d0 of _0xbbeff6)_0x4e12d0['detach'](),_0x4e12d0['isCollapsed']||'$graveyard'==_0x4e12d0['root']['rootName']||this['_addSuggestionMarker'](_0x1de963,_0x1ebb09,_0x27f6ac,_0x4e12d0,T['getMultiRangeId']());return _0x5a096d;}['markAttributeChange'](_0xf880ba,_0x4d1d22,_0x44a39c,_0xe73c23,_0x158961){if(_0xf880ba['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x36ebbf=this['editor']['plugins']['get']('Users')['me']['id'],_0x35968e=Array['from'](this['_suggestions']['values']())['filter'](_0x44379a=>'attribute'==_0x44379a['type']&&_0x44379a['data']['key']==_0x4d1d22&&_0x44379a['isIntersectingWithRange'](_0xf880ba));if(this['_trackingSessionId']&&(_0x158961['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4caa2e=this['_findSuggestions'](_0xf880ba,'insertion')['filter'](({meta:_0x2aa76e})=>_0x2aa76e['isOwn']&&!_0x2aa76e['isInsideObject']&&!_0x2aa76e['isNextTo'])['map'](({suggestion:_0x51da8f})=>_0x51da8f);_0x35968e['unshift'](..._0x4caa2e);}const _0x570905=new Map([[_0xf880ba,_0x44a39c]]);for(const _0x442161 of _0x35968e){const _0x3b91ad='attribute'==_0x442161['type']?_0x442161['data']['oldValue']:void 0x0,_0x368bbe=_0x442161['getFirstRange'](),_0x24fe28=Array['from'](_0x570905['keys']())['find'](_0x3538d2=>_0x3538d2['isIntersecting'](_0x368bbe));if(!_0x24fe28)continue;const _0x382863=_0x24fe28['getDifference'](_0x368bbe);this['_isBlockAttribute'](_0x4d1d22)&&'insertion'==_0x442161['type']&&0x0!=_0x382863['length']||(_0x570905['delete'](_0x24fe28),_0x382863['forEach'](_0x1176f1=>{_0x570905['set'](_0x1176f1,_0x44a39c);}),'insertion'!=_0x442161['type']&&_0x3b91ad!=_0xe73c23&&_0x570905['set'](_0x24fe28['getIntersection'](_0x368bbe),_0x3b91ad));}const _0x373c8c=[];for(const [_0x568c6f,_0x5e6dd4]of _0x570905){const _0x5b408b=_0x4bb6e6(),_0x506e95={'key':_0x4d1d22,'oldValue':_0x5e6dd4,'newValue':_0xe73c23};_0x4d1d22['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':_0x4d1d22});const _0x42ab2e=('attribute:'+(_0x4d1d22+'|'+Lt({'newValue':_0xe73c23})))['substring'](0x0,0x3c),_0xad2fdb=this['_setSuggestionData']({'id':_0x5b408b,'type':_0x42ab2e,'data':_0x506e95,'createdAt':new Date(),'authorId':_0x36ebbf,'attributes':_0x158961});_0x373c8c['push'](_0xad2fdb),this['_addSuggestionMarker'](_0x42ab2e,_0x5b408b,_0x36ebbf,_0x568c6f);}return _0x373c8c;}['enableDefaultAttributesIntegration'](_0x48e1cb){this['enableCommand'](_0x48e1cb,(_0x1e8350,..._0x18b35d)=>{this['recordAttributeChanges'](()=>{_0x1e8350(..._0x18b35d);});});}['registerBlockAttribute'](_0x370245){this['_blockAttributeKeys']['add'](_0x370245);}['registerInlineAttribute'](_0x414242){this['_inlineAttributeKeys']['add'](_0x414242);}['startTrackingSession'](_0x362128){return this['_trackingSessionId']=void 0x0!==_0x362128?_0x362128:_0x4bb6e6(),this['_trackingSessionId'];}['_getAttributeKey'](_0x542624){return'attribute'==_0x542624['type']?_0x542624['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x384feb,_0xd00ce1){const _0x44ea5d=_0x384feb['getFirstMarker']();this['_model']['change'](_0x59dfa3=>{_0x59dfa3['updateMarker'](_0x44ea5d,{'range':_0xd00ce1});});}['_addThreadToSuggestion'](_0x42fa38){const _0x20df9e=_0x42fa38['id'],_0x47828d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x20df9e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x47828d,'threadId':_0x20df9e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x285b50=this['_commentsRepository']['getCommentThread'](_0x20df9e);_0x285b50['unbind']('isRemovable'),_0x285b50['isRemovable']=!0x1,_0x42fa38['commentThread']=_0x285b50;}['_checkSuggestionCorrectness'](_0x18cd9d,_0x8cd18f,_0x35ff52,_0x3cb2ee){if(_0x18cd9d['type']!=_0x8cd18f||_0x18cd9d['subType']!=_0x35ff52||_0x18cd9d['creator']['id']!=_0x3cb2ee)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x30e493('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x35b0b5,_0x4e1bfd){const _0x5611d0=_0x35b0b5['getFirstRange']();if(_0x4e1bfd['isEqual'](_0x5611d0))_0x35b0b5['removeMarkers']();else{if(_0x5611d0['containsRange'](_0x4e1bfd)){const _0x57c2da=this['_model']['createPositionAt'](_0x4e1bfd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35b0b5,this['_model']['createRange'](_0x5611d0['start'],_0x57c2da));const _0x174e4e=_0x4bb6e6(),_0x24abe8=_0x35b0b5['creator']['id'],_0x4c6cbd=_0x35b0b5['type']+':'+_0x35b0b5['subType'];this['_setSuggestionData']({'id':_0x174e4e,'type':_0x4c6cbd,'createdAt':new Date(),'authorId':_0x24abe8,'data':_0x35b0b5['data'],'attributes':_0x35b0b5['attributes']});const _0xf56fe0=this['_model']['createPositionAt'](_0x4e1bfd['end']['parent'],'after'),_0x3c5e24=this['_model']['createRange'](_0xf56fe0,_0x5611d0['end']);this['_addSuggestionMarker'](_0x4c6cbd,_0x174e4e,_0x24abe8,_0x3c5e24);}else{if(_0x5611d0['containsPosition'](_0x4e1bfd['start'])){const _0x29737e=this['_model']['createPositionAt'](_0x4e1bfd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35b0b5,this['_model']['createRange'](_0x5611d0['start'],_0x29737e));}else{const _0x2eb963=this['_model']['createPositionAt'](_0x4e1bfd['end']['parent'],'after');this['_setSuggestionRange'](_0x35b0b5,this['_model']['createRange'](_0x2eb963,_0x5611d0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x28e40b){for(const {suggestion:_0x4ca1fb,meta:_0x344a55}of this['_findSuggestions'](_0x28e40b,'insertion')){if(!_0x344a55['isOwn'])continue;const _0x2a7ec2=_0x4ca1fb['getRanges']();for(const _0x33a998 of _0x2a7ec2)if(!_0x28e40b['getDifference'](_0x33a998)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5af254){const _0x508c60=this['editor']['plugins']['get']('Users')['getUser'](_0x5af254);if(!_0x508c60)throw new _0x30e493('track-changes-user-not-found',this);return _0x508c60;}['_getExternalAuthor'](_0x4c5ae7){const _0xf3fbc4=this['editor']['plugins']['get']('Users'),_0x585447=_0x19e181('external:'+_0x4c5ae7),_0x22fff7=_0xf3fbc4['getUser'](_0x585447);return _0x22fff7||_0xf3fbc4['addUser']({'id':_0x585447,'name':_0x4c5ae7});}['_createSuggestion'](_0x46033c,_0x5c40d5,_0x2cc9f4,_0x5a0f80,_0x53a386,_0x2fcdd1){const _0x5329bc=this['_getAuthorFromId'](_0x5a0f80),_0x5db4c2=this['_suggestionFactory']['buildSuggestion'](_0x46033c,_0x5c40d5,_0x2cc9f4,_0x5329bc,_0x53a386,_0x1bc2e5=>{this['_updateSuggestionData'](_0x2cc9f4,{'attributes':_0x1bc2e5});const _0x1da60c=this['getSuggestion'](_0x2cc9f4);this['_joinWithAdjacentSuggestions'](new Set([_0x1da60c])),this['_refreshSuggestionsChain'](new Set([_0x1da60c]));},_0x2fcdd1);return this['listenTo'](_0x5db4c2,'accept',()=>{this['_updateSuggestionData'](_0x2cc9f4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5db4c2,'discard',()=>{this['_updateSuggestionData'](_0x2cc9f4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2cc9f4,_0x5db4c2),this['_suggestionState']['set'](_0x5db4c2,'notReady'),_0x5db4c2;}['_splitMarkerName'](_0x41e903){const _0x19128a=_0x41e903['split'](':');return{'group':_0x19128a[0x0],'type':_0x19128a[0x1],'subType':_0x19128a['length']>=0x5?_0x19128a[0x2]:null,'id':_0x19128a['length']<0x5?_0x19128a[0x2]:_0x19128a[0x3],'authorId':_0x19128a['length']<0x5?_0x19128a[0x3]:_0x19128a[0x4],'markerCount':0x6==_0x19128a['length']?_0x19128a[0x5]:null};}['_breakSuggestionMarker'](_0x4898ce,_0x46d4c1,_0x7b4c5d){const _0x2d853a=_0x4898ce['getFirstRange'](),_0x5aa488=_0x2d853a['start'],_0x17ddb3=_0x2d853a['end'];this['_setSuggestionRange'](_0x4898ce,this['_model']['createRange'](_0x5aa488,_0x46d4c1));const _0x388010=_0x4bb6e6(),_0x4ed462=_0x4898ce['creator']['id'],_0x119ce8=_0x4898ce['type']+(_0x4898ce['subType']?':'+_0x4898ce['subType']:'');this['_setSuggestionData']({'id':_0x388010,'type':_0x119ce8,'createdAt':new Date(),'authorId':_0x4ed462,'originalSuggestionId':_0x4898ce['_originalSuggestionId']||_0x4898ce['id'],'attributes':_0x4898ce['attributes'],'data':_0x4898ce['data']});const _0x134777=this['_getAttributeKey'](_0x4898ce);('formatBlock'==_0x4898ce['type']||_0x134777&&this['_isBlockAttribute'](_0x134777))&&(_0x7b4c5d=this['_model']['createPositionBefore'](_0x7b4c5d['parent'])),this['_addSuggestionMarker'](_0x119ce8,_0x388010,_0x4ed462,this['_model']['createRange'](_0x7b4c5d,_0x17ddb3));}['_findSuggestions'](_0x15b44a,_0x491e13=null){const _0x198de4=[],_0x3098cc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x15b44a)||(_0x15b44a=[_0x15b44a]);for(const _0x400023 of this['getSuggestions']()){if(!_0x400023['isInContent'])continue;if(_0x491e13&&_0x400023['type']!=_0x491e13)continue;let _0x3408fa=!0x1;for(const _0x23d2a3 of _0x400023['getRanges']()){for(const _0x248d32 of _0x15b44a){const _0x5b3f37=_0x248d32['start']['isEqual'](_0x23d2a3['end'])||_0x248d32['end']['isEqual'](_0x23d2a3['start']);if(_0x5b3f37||_0x248d32['getIntersection'](_0x23d2a3)){const _0x4fe943=_0x248d32['containsRange'](_0x23d2a3)&&Ft(this['_model']['schema'],_0x23d2a3['start'],_0x248d32),_0x4c107b=_0x23d2a3['containsRange'](_0x248d32)&&Ft(this['_model']['schema'],_0x248d32['start'],_0x23d2a3);_0x198de4['push']({'suggestion':_0x400023,'meta':{'isOwn':_0x3098cc==_0x400023['author'],'isNextTo':_0x5b3f37,'isInsideObject':_0x4fe943,'containsRangeInObject':_0x4c107b}}),_0x3408fa=!0x0;break;}}if(_0x3408fa)break;}}return _0x198de4;}['_addSuggestionMarker'](_0x352abd,_0x5ae4ff,_0x2351bb,_0x264016,_0x4202bb){this['_model']['change'](_0x4adaf2=>{let _0x2e0831='suggestion:'+_0x352abd+':'+_0x5ae4ff+':'+_0x2351bb;_0x4202bb&&(_0x2e0831=_0x2e0831+':'+_0x4202bb),_0x4adaf2['addMarker'](_0x2e0831,{'range':_0x264016,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x32c7cd){const _0x227627=_0x32c7cd['previous'],_0x4a41e5=_0x32c7cd['next'];_0x32c7cd['previous']=null,_0x32c7cd['next']=null,null!=_0x227627&&_0x227627['next']==_0x32c7cd&&(_0x227627['next']=_0x4a41e5),null!=_0x4a41e5&&_0x4a41e5['previous']==_0x32c7cd&&(_0x4a41e5['previous']=_0x227627),'ready'==this['_suggestionState']['get'](_0x32c7cd)&&(this['_suggestionState']['set'](_0x32c7cd,'removed'),this['fire']('suggestionUnloaded',_0x32c7cd,_0x227627,_0x4a41e5));}['_setSuggestionData'](_0x33be4e){const _0x4dfea0=_0x33be4e['id'],_0x59bfc9=this['addSuggestionData'](_0x33be4e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5ec23f=this['editor']['plugins']['get']('PendingActions'),_0x234190=_0x59bfc9['hasComments'],_0x4846d3=_0x59bfc9['subType']?_0x59bfc9['type']+':'+_0x59bfc9['subType']:_0x59bfc9['type'],_0x417f9e=this['editor']['locale'],_0x3b8c68=_0x5ec23f['add'](o(_0x417f9e,'PENDING_ACTION_SUGGESTION')),_0x41ef64={'id':_0x4dfea0,'type':_0x4846d3,'hasComments':_0x234190,'data':_0x33be4e['data']||null,'originalSuggestionId':_0x33be4e['originalSuggestionId']||null,'attributes':_0x59bfc9['attributes']};this['_adapter']['addSuggestion'](_0x41ef64)['then'](_0x581cdc=>{_0x59bfc9['_saved']=!0x0,_0x5ec23f['remove'](_0x3b8c68),_0x581cdc&&_0x581cdc['createdAt']&&(this['_suggestions']['get'](_0x4dfea0)['createdAt']=_0x581cdc['createdAt']);})['catch'](_0x27642d=>{throw _0x17884f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x59bfc9['discard']();}),_0x59bfc9['stopListening'](),this['_suggestions']['delete'](_0x59bfc9['id']),this['_suggestionState']['delete'](_0x59bfc9),_0x27642d;});}return _0x59bfc9;}['_isBlockAttribute'](_0x3ff2fe){return this['_blockAttributeKeys']['has'](_0x3ff2fe);}['_updateSuggestionData'](_0x187a07,_0x3a53b7){const _0x25d856=this['editor']['plugins']['get']('PendingActions'),_0x23613c=this['getSuggestion'](_0x187a07);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x23613c['_saved']){const _0x4ff7eb=_0x25d856['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x187a07,_0x3a53b7)['then'](()=>{_0x25d856['remove'](_0x4ff7eb);});}else _0x23613c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x187a07,_0x3a53b7);});}}['_getSuggestionData'](_0x50546b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x30e493('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x50546b);}['_handleNewSuggestionMarker'](_0xf9ea8e){const {id:_0xff136b,type:_0x28af73,subType:_0x4e5241,authorId:_0x24ea0a}=this['_splitMarkerName'](_0xf9ea8e),_0x322a13=this['_suggestions']['get'](_0xff136b)||this['_createSuggestion'](_0x28af73,_0x4e5241,_0xff136b,_0x24ea0a,{});switch(this['_checkSuggestionCorrectness'](_0x322a13,_0x28af73,_0x4e5241,_0x24ea0a),this['_suggestionState']['get'](_0x322a13)){case'notReady':this['_getSuggestionData'](_0xff136b)['then'](_0x47035f=>{let _0x16cdd8=Promise['resolve']();_0x47035f['hasComments']&&(_0x16cdd8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xff136b})),_0x16cdd8['then'](()=>{this['addSuggestionData'](_0x47035f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x322a13,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xff136b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x322a13,'ready'),this['fire']('suggestionLoaded',_0x322a13);break;case'ready':this['fire']('suggestionChanged',_0x322a13);}return _0x322a13['addMarkerName'](_0xf9ea8e),_0x322a13;}['_refreshSuggestionsChain'](_0xdc48fe){const _0xdf46fb=Array['from'](_0xdc48fe),_0x5b31ec=_0xdf46fb['filter'](_0x164aae=>'attribute'==_0x164aae['type']);this['_refreshAttributeSuggestionsChain'](_0x5b31ec);const _0x5289ed=_0xdf46fb['filter'](_0x52b9a8=>!_0x52b9a8['isMultiRange']&&'attribute'!=_0x52b9a8['type']),_0x33530b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28e631=>!_0x28e631['isMultiRange']&&'attribute'!=_0x28e631['type']),_0x2f4d24=_0x33530b['filter'](_0x1f0ced=>!_0xdc48fe['has'](_0x1f0ced)),_0xcc416=new Map(_0x33530b['map'](_0x1a6af3=>[_0x1a6af3,this['_suggestionFactory']['getSuggestionCallback'](_0x1a6af3['type'],_0x1a6af3['subType'],'chain')])),_0x4a1f6a=new Map(_0x33530b['map'](_0x15b780=>[_0x15b780,_0x15b780['getFirstRange']()])),_0x5d2573=new Set(),_0x57a121=new Set();for(let _0x13d817=0x0;_0x13d817<_0x5289ed['length'];_0x13d817++)_0x1b6a76(_0x5289ed[_0x13d817],_0x5289ed,_0x13d817+0x1);for(let _0x45f6d2=0x0;_0x45f6d2<_0x5289ed['length'];_0x45f6d2++)_0x1b6a76(_0x5289ed[_0x45f6d2],_0x2f4d24,0x0);const _0x12e75c=new Set();for(let _0x22394b=0x0;_0x22394b<_0x5289ed['length'];_0x22394b++){const _0x26bbe9=_0x5289ed[_0x22394b];!_0x57a121['has'](_0x26bbe9)&&_0x26bbe9['previous']&&(_0x12e75c['add'](_0x26bbe9['previous']),_0x26bbe9['previous']['next']===_0x26bbe9&&(_0x26bbe9['previous']['next']=null),_0x26bbe9['previous']=null),!_0x5d2573['has'](_0x26bbe9)&&_0x26bbe9['next']&&(_0x12e75c['add'](_0x26bbe9['next']),_0x26bbe9['next']['previous']===_0x26bbe9&&(_0x26bbe9['next']['previous']=null),_0x26bbe9['next']=null);}function _0x1b6a76(_0x4d06a9,_0x5d102f,_0x40e0ef){for(let _0x2ef417=_0x40e0ef;_0x2ef417<_0x5d102f['length'];_0x2ef417++){const _0x1397e0=_0x5f0ecb(_0x4d06a9,_0x5d102f[_0x2ef417]);_0x1397e0&&(_0x1397e0[0x0]['next']=_0x1397e0[0x1],_0x1397e0[0x1]['previous']=_0x1397e0[0x0],_0x5d2573['add'](_0x1397e0[0x0]),_0x57a121['add'](_0x1397e0[0x1]));}}function _0x5f0ecb(_0x1396fa,_0x127aa1){if(_0x1396fa['author']['id']!==_0x127aa1['author']['id'])return null;const _0x1ac337=_0xcc416['get'](_0x1396fa)(_0x1396fa,_0x127aa1,_0x4a1f6a['get'](_0x1396fa),_0x4a1f6a['get'](_0x127aa1));if(!_0x1ac337)return null;return _0xcc416['get'](_0x127aa1)(_0x1396fa,_0x127aa1,_0x4a1f6a['get'](_0x1396fa),_0x4a1f6a['get'](_0x127aa1))?_0x1ac337[0x1]['commentThread']&&_0x1ac337[0x1]['commentThread']['length']?null:_0x1ac337:null;}_0x12e75c['size']&&this['_refreshSuggestionsChain'](_0x12e75c);}['_refreshAttributeSuggestionsChain'](_0x369744){if(0x0==_0x369744['length'])return;const _0x3b690b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xcc36b1=>'attribute'==_0xcc36b1['type']&&_0xcc36b1['_isDataLoaded']),_0x1f67c1=[],_0x5699e7=new Map();for(const _0x73e137 of _0x3b690b){const _0x35e364=_0x19e181(_0x73e137['attributes']);_0x5699e7['has'](_0x35e364)||(_0x5699e7['set'](_0x35e364,_0x1f67c1['length']),_0x1f67c1['push']([]));const _0x242db4=_0x5699e7['get'](_0x35e364);_0x1f67c1[_0x242db4]['push'](_0x73e137);}!(function(){_0x1f67c1['sort']((_0x5cb9db,_0x2615d9)=>{const _0x5a6ab9=_0x5cb9db[0x0]['createdAt'],_0x23947f=_0x2615d9[0x0]['createdAt'];return _0x5a6ab9==_0x23947f?_0x5cb9db[0x0]['attributes']['groupId']<_0x2615d9[0x0]['attributes']['groupId']?-0x1:0x1:_0x5a6ab9<_0x23947f?-0x1:0x1;});for(const _0x21cbdc of _0x1f67c1)_0x21cbdc['sort']((_0x4c4339,_0x5c86b0)=>_0x4c4339['id']<_0x5c86b0['id']?-0x1:0x1);}());for(let _0x361047=0x0;_0x361047<_0x1f67c1['length'];_0x361047++){if(0x0==_0x1f67c1[_0x361047]['length'])continue;const _0xbfa28d=[];for(let _0x2bfe70=_0x361047+0x1;_0x2bfe70<_0x1f67c1['length'];_0x2bfe70++)0x0!=_0x1f67c1[_0x2bfe70]['length']&&_0x11a22c(_0x1f67c1[_0x361047],_0x1f67c1[_0x2bfe70])&&_0xbfa28d['push'](_0x2bfe70);for(const _0x56aba of _0xbfa28d)_0x1f67c1[_0x361047]=_0x1f67c1[_0x361047]['concat'](_0x1f67c1[_0x56aba]),_0x1f67c1[_0x56aba]=[];}for(const _0x357d4f of _0x1f67c1)for(let _0x180a44=0x0;_0x180a44<_0x357d4f['length'];_0x180a44++){const _0x3e7b3e=_0x357d4f[_0x180a44+0x1]||null;_0x357d4f[_0x180a44]['next']!==_0x3e7b3e&&(_0x357d4f[_0x180a44]['next']=_0x3e7b3e);}for(const _0x355633 of _0x1f67c1)for(let _0x4aeb60=0x0;_0x4aeb60<_0x355633['length'];_0x4aeb60++){const _0x3cb2fd=_0x355633[_0x4aeb60-0x1]||null;_0x355633[_0x4aeb60]['previous']!==_0x3cb2fd&&(_0x355633[_0x4aeb60]['previous']=_0x3cb2fd);}function _0x11a22c(_0xb4a84,_0x24ade6){if(_0xb4a84[0x0]['attributes']['groupId']!==_0x24ade6[0x0]['attributes']['groupId']&&_0xb4a84[0x0]['author']!==_0x24ade6[0x0]['author'])return!0x1;if(!function(_0x4a1d02,_0xb72c40){if(!_0x4a1d02['hasComments']&&!_0xb72c40['hasComments'])return!0x0;if(_0x4a1d02['hasComments']&&_0xb72c40['hasComments'])return!0x1;if(_0x4a1d02['hasComments']&&_0xb72c40['createdAt']<_0x4a1d02['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xb72c40['hasComments']&&_0x4a1d02['createdAt']<_0xb72c40['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xb4a84[0x0],_0x24ade6[0x0]))return!0x1;const _0x24accf=Ut(_0xb4a84[0x0]['attributes'],['groupId','trackingSessionId']),_0x1ff312=Ut(_0x24ade6[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1ccc9c(_0x24accf,_0x1ff312))return!0x1;if(_0xb4a84[0x0]['attributes']['groupId']==_0x24ade6[0x0]['attributes']['groupId'])return!0x0;if(_0xb4a84[0x0]['attributes']['trackingSessionId']!==_0x24ade6[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xb4a84['every'](_0x340377=>_0x24ade6['some'](_0x3480ec=>_0x340377['getFirstRange']()['isEqual'](_0x3480ec['getFirstRange']())))&&_0x24ade6['every'](_0x3795f6=>_0xb4a84['some'](_0x1f45d9=>_0x3795f6['getFirstRange']()['isEqual'](_0x1f45d9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x6dc594){const _0x49e98c=Array['from'](_0x6dc594),_0x4c9cf5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x44f4bf=_0x4c9cf5['filter'](_0x66ec9=>!_0x6dc594['has'](_0x66ec9)),_0x59bca0=new Map(_0x49e98c['map'](_0x5ad209=>[_0x5ad209,this['_suggestionFactory']['getSuggestionCallback'](_0x5ad209['type'],_0x5ad209['subType'],'join')])),_0x80ad62=new Map(_0x4c9cf5['map'](_0x2af8c3=>[_0x2af8c3,_0x2af8c3['getRanges']()]));for(let _0x368ab3=0x0;_0x368ab3<_0x49e98c['length'];_0x368ab3++){if(_0x10d84d(this,_0x49e98c[_0x368ab3],_0x49e98c,_0x368ab3+0x1))return!0x0;}for(let _0x2120fe=0x0;_0x2120fe<_0x49e98c['length'];_0x2120fe++){if(_0x10d84d(this,_0x49e98c[_0x2120fe],_0x44f4bf,0x0))return!0x0;}return!0x1;function _0x10d84d(_0x16e6d2,_0x1ff151,_0x520f6c,_0x80320d){for(let _0x36db6f=_0x80320d;_0x36db6f<_0x520f6c['length'];_0x36db6f++){const _0x537ea2=_0x520f6c[_0x36db6f];if(_0x537ea2['type']!==_0x1ff151['type']||_0x537ea2['author']['id']!==_0x1ff151['author']['id']||_0x537ea2['subType']!==_0x1ff151['subType'])continue;if(!Wt(_0x1ff151,_0x537ea2))continue;if('attribute'==_0x1ff151['type']&&_0x1ff151['data']['oldValue']!=_0x537ea2['data']['oldValue'])continue;if('attribute'==_0x1ff151['type']&&_0x16e6d2['_isBlockAttribute'](_0x1ff151['data']['key']))continue;if('formatBlock'==_0x1ff151['type']){const _0x2743dd=_0x16e6d2['editor']['model'],_0xd40b5d=_0x1ff151['getContainedElement']();if(_0xd40b5d&&(_0x2743dd['schema']['isObject'](_0xd40b5d)||_0x2743dd['schema']['isLimit'](_0xd40b5d)))continue;}const _0x3a998d=_0x59bca0['get'](_0x1ff151),_0x30c5de=_0x80ad62['get'](_0x1ff151),_0x3a1fbb=_0x80ad62['get'](_0x537ea2),_0x46a095=_0x1ff151['commentThread']&&_0x1ff151['commentThread']['length'],_0x31a41f=_0x537ea2['commentThread']&&_0x537ea2['commentThread']['length'];if(!_0x46a095&&_0x3a998d(_0x3a1fbb,_0x30c5de))return _0x16e6d2['_joinSuggestions'](_0x537ea2,_0x1ff151),_0x80ad62['delete'](_0x1ff151),!0x0;if(!_0x31a41f&&_0x3a998d(_0x30c5de,_0x3a1fbb))return _0x16e6d2['_joinSuggestions'](_0x1ff151,_0x537ea2),_0x80ad62['delete'](_0x537ea2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3408c9,_0x4852ad){if(_0x3408c9['isMultiRange']){for(const _0x529383 of _0x4852ad['getRanges']())_0x3408c9['addRange'](_0x529383);}else{const _0x2b2f6d=_0x4852ad['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3408c9,this['_model']['createRange'](_0x3408c9['getFirstRange']()['start'],_0x2b2f6d));}_0x4852ad['removeMarkers']();}['_getMarkerAnnouncementText'](_0x40df4d,_0x1b18bd,_0x23d6e1){const _0x41f9e7=_0x40df4d['startsWith']('format')||_0x40df4d['startsWith']('attribute')?'FORMATTING':_0x40df4d['toUpperCase']();return o(this['editor']['locale'],_0x1b18bd+'_'+_0x41f9e7+'_SUGGESTION_ANNOUNCEMENT',_0x23d6e1);}['_initAriaMarkerChangeAnnouncements'](){const _0x316877=this['editor'];if(!_0x316877['ui'])return;const {ariaLiveAnnouncer:_0x5b87be}=_0x316877['ui'];_0x5c23cf(this['_model'],({left:_0x77e3b5,entered:_0x57f893})=>{for(const _0x1a61fb of _0x77e3b5){const {group:_0x52594f,type:_0x187acc}=this['_splitMarkerName'](_0x1a61fb['name']);if('suggestion'===_0x52594f){_0x5b87be['announce'](this['_getMarkerAnnouncementText'](_0x187acc,'LEAVE'));break;}}for(const _0x58b93e of _0x57f893){const {group:_0x2b4355,type:_0x39dac1}=this['_splitMarkerName'](_0x58b93e['name']);if('suggestion'===_0x2b4355){_0x5b87be['announce'](this['_getMarkerAnnouncementText'](_0x39dac1,'ENTER',_0x33f11a(_0x707fe4)));break;}}});}['_processAttributeChanges'](_0x1d938a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x27b78e=this['editor'],_0x35f216=_0x27b78e['model']['document']['differ']['getChanges']();if(0x0==_0x35f216['length'])return!0x1;const _0xe28b9f=[],_0x167a88=_0x35f216['filter'](_0x2cf19b=>'attribute'==_0x2cf19b['type']),_0xf0e94=_0x35f216['filter'](_0x2571f6=>'insert'==_0x2571f6['type']&&'$text'!=_0x2571f6['name']),_0x2cedbe=_0x35f216['filter'](_0x26331a=>'remove'==_0x26331a['type']&&'$text'!=_0x26331a['name']);for(const _0x2e7856 of _0x167a88)_0xe28b9f['push']({'key':_0x2e7856['attributeKey'],'newValue':_0x2e7856['attributeNewValue'],'oldValue':_0x2e7856['attributeOldValue'],'range':Ht(_0x2e7856['range'],_0x27b78e['model'])});for(const _0x5000f9 of _0xf0e94){const _0x41a19a=_0x2cedbe['find'](_0x54adb8=>_0x54adb8['position']['isEqual'](_0x5000f9['position']));_0x41a19a&&_0xe28b9f['push']({'key':m,'newValue':_0x5000f9['name'],'oldValue':_0x41a19a['name'],'range':_0x27b78e['model']['createRangeOn'](_0x5000f9['position']['nodeAfter'])});}return 0x0!=_0xe28b9f['length']&&this['_reduceExistingSuggestions'](_0x1d938a,_0xe28b9f);}['_processAttributeSuggestions'](_0x5f41c2){let _0x38a064=!0x1;const _0x5af131=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4eb301=>_0x4eb301['data']['newRange']&&_0x4eb301['name']['startsWith']('suggestion:attribute:'));for(const _0x5e6965 of _0x5af131){const {subType:_0x165a94,id:_0x1ab9e2}=this['_splitMarkerName'](_0x5e6965['name']),_0x25b192=_0x165a94['split']('|')[0x0];for(const _0x3aee66 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3aee66['id']!=_0x1ab9e2&&'attribute'==_0x3aee66['type']&&_0x3aee66['data']&&_0x3aee66['data']['key']==_0x25b192&&_0x3aee66['getFirstRange']()['isIntersecting'](_0x5e6965['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3aee66,_0x5e6965['data']['newRange'],_0x5f41c2),_0x38a064=!0x0);}return _0x38a064;}['recordAttributeChanges'](_0x328bce){this['_recordAttributeSuggestions']=!0x0,_0x328bce();}['_isRegisteredAttribute'](_0x170305){const _0x1adea1=this['_isBlockAttribute'](_0x170305),_0x1d3bb1=this['_inlineAttributeKeys']['has'](_0x170305);return _0x1adea1||_0x1d3bb1;}['_reduceExistingSuggestions'](_0x512492,_0x1a8e39){if(0x0==_0x1a8e39['length'])return!0x1;let _0x4f1e37=!0x1;for(const _0x2d86db of _0x1a8e39){const _0x51c299=this['_findSuggestions'](_0x2d86db['range'],'attribute')['filter'](_0x3aa19f=>!_0x3aa19f['meta']['isNextTo'])['map'](_0xf7a59=>_0xf7a59['suggestion']),_0x3a3ab7=_0x19e181({'newValue':_0x2d86db['newValue']});_0x51c299['filter'](_0x542095=>{const [_0x2d031f,_0x3c4ca5]=_0x542095['subType']['split']('|');return _0x2d031f==_0x2d86db['key']&&_0x3c4ca5!=_0x3a3ab7;})['forEach'](_0x1e89ce=>{this['_reduceSuggestionAttributeRange'](_0x1e89ce,_0x2d86db['range'],_0x512492),_0x4f1e37=!0x0;});}return _0x4f1e37;}['_reduceSuggestionAttributeRange'](_0x3061b3,_0x518ac2,_0xd7b7b2){const _0x274a06=_0x3061b3['getFirstRange']()['getDifference'](_0x518ac2);0x0!==_0x274a06['length']?0x1!==_0x274a06['length']?this['_breakSuggestionMarker'](_0x3061b3,_0x518ac2['start'],_0x518ac2['end']):this['_setSuggestionRange'](_0x3061b3,_0x274a06[0x0]):_0xd7b7b2['removeMarker'](_0x3061b3['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x58e633){this['_editor']=_0x58e633,this['_model']=_0x58e633['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x57ea7c,_0x347c8e,_0x290fad,_0x23d096,_0x131682,_0xa4c982,_0x10f1dc){return new T(this['_model'],{'type':_0x57ea7c,'subType':_0x347c8e,'id':_0x290fad,'originalSuggestionId':_0x10f1dc,'author':_0x23d096,'creator':_0x23d096,'attributes':_0x131682,'onAttributesChange':_0xa4c982,'onAccept':(..._0x231d08)=>this['getSuggestionCallback'](_0x57ea7c,_0x347c8e,'accept')(..._0x231d08),'onDiscard':(..._0x4096fe)=>this['getSuggestionCallback'](_0x57ea7c,_0x347c8e,'discard')(..._0x4096fe)});}['registerCustomCallback'](_0x54439a,_0x23bd30,_0x515e12,_0x595533){const _0x7bf4cb=_0x54439a+':'+_0x23bd30+':'+_0x515e12;this['_customCallbacks']['set'](_0x7bf4cb,_0x595533);}['getSuggestionCallback'](_0x5306d2,_0x1d83d6,_0x30a72e){const _0x30acba=_0x5306d2+':'+_0x1d83d6+':'+_0x30a72e;return this['_customCallbacks']['get'](_0x30acba)||this['_defaultCallbacks']['get'](_0x5306d2+':'+_0x30a72e);}['_registerDefaultCallbacks'](){const _0x2c13ae=()=>!0x1,_0x1634c7=_0x4cf82c=>{_0x4cf82c['sort']((_0xac4ada,_0x20afb1)=>_0xac4ada['start']['isBefore'](_0x20afb1['start'])?0x1:-0x1),this['_model']['change'](_0x38a2f4=>{for(const _0x18301a of _0x4cf82c){let _0x5a7ab0;_0x5a7ab0=_0x18301a['end']['isAtEnd']&&_0x18301a['end']['parent']==_0x18301a['start']['nodeAfter']?_0x38a2f4['createSelection'](_0x18301a['start']['nodeAfter'],'on'):_0x38a2f4['createSelection'](_0x18301a),this['_model']['deleteContent'](_0x5a7ab0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3a2156=(_0xa018b9,_0x34adc4)=>{_0x34adc4&&this['_model']['change'](_0x306c4e=>{const {commandName:_0xb73b93,commandParams:_0x5bb02b=[]}=_0x34adc4,_0x31e7d2=_0xa018b9['map'](_0x3b9c79=>(Pt(_0x3b9c79)&&(_0x3b9c79=this['_model']['createRange'](_0x3b9c79['end'])),_0x3b9c79))['filter'](_0x50f1e8=>'$graveyard'!==_0x50f1e8['root']['rootName']);if(_0x31e7d2['length']<0x1)return;const _0x46528c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2823fe=>_0xd7f50['fromRange'](_0x2823fe));_0x306c4e['setSelection'](_0x31e7d2);for(const _0x22d96e of this['_editor']['commands']['commands']())_0x22d96e['refresh']();_0x5bb02b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xb73b93,..._0x5bb02b);const _0x201005=_0x46528c['filter'](_0x3ab7e9=>'$graveyard'!=_0x3ab7e9['root']['rootName']);_0x201005['length']>0x0&&_0x306c4e['setSelection'](_0x201005);for(const _0x1d0262 of _0x46528c)_0x1d0262['detach']();});},_0x1f9b30=(_0x3fc34b,_0x5ce31b)=>0x1==_0x3fc34b['length']&&0x1==_0x5ce31b['length']&&_0x3fc34b[0x0]['end']['isEqual'](_0x5ce31b[0x0]['start']),_0x1d2af4=(_0x47851f,_0x319689,_0x65ca10,_0x160f5b)=>zt(_0x47851f,_0x319689,_0x65ca10,_0x160f5b)?[_0x47851f,_0x319689]:zt(_0x319689,_0x47851f,_0x160f5b,_0x65ca10)?[_0x319689,_0x47851f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2c13ae),this['_defaultCallbacks']['set']('insertion:discard',_0x1634c7),this['_defaultCallbacks']['set']('insertion:join',_0x1f9b30),this['_defaultCallbacks']['set']('insertion:chain',_0x1d2af4),this['_defaultCallbacks']['set']('deletion:accept',_0x1634c7),this['_defaultCallbacks']['set']('deletion:discard',_0x2c13ae),this['_defaultCallbacks']['set']('deletion:join',_0x1f9b30),this['_defaultCallbacks']['set']('deletion:chain',_0x1d2af4),this['_defaultCallbacks']['set']('formatInline:accept',_0x3a2156),this['_defaultCallbacks']['set']('formatInline:discard',_0x2c13ae),this['_defaultCallbacks']['set']('formatInline:join',_0x1f9b30),this['_defaultCallbacks']['set']('formatInline:chain',_0x2c13ae),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3a2156),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2c13ae),this['_defaultCallbacks']['set']('formatBlock:join',_0x1f9b30),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2c13ae),this['_defaultCallbacks']['set']('attribute:accept',_0x2c13ae),this['_defaultCallbacks']['set']('attribute:discard',(_0x1acd87,_0x3f1380)=>{if(!_0x3f1380)return;const _0x3b9a2e=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4dc8a6=>{if(_0x3f1380['key']==m)for(const _0x3c9999 of _0x1acd87){const _0x52547c=_0x3c9999['start']['nodeAfter'],_0x17c156=_0x3f1380['oldValue'];_0x4dc8a6['rename'](_0x52547c,_0x17c156);}else{if(_0x3b9a2e['_isBlockAttribute'](_0x3f1380['key'])){for(const _0x19f150 of _0x1acd87)void 0x0!==_0x3f1380['oldValue']?_0x4dc8a6['setAttribute'](_0x3f1380['key'],_0x3f1380['oldValue'],_0x19f150['start']['nodeAfter']):_0x4dc8a6['removeAttribute'](_0x3f1380['key'],_0x19f150['start']['nodeAfter']);}else{for(const _0x1d4b88 of _0x1acd87)_0x3f1380['oldValue']?_0x4dc8a6['setAttribute'](_0x3f1380['key'],_0x3f1380['oldValue'],_0x1d4b88):_0x4dc8a6['removeAttribute'](_0x3f1380['key'],_0x1d4b88);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1f9b30);}}function Ft(_0x543347,_0x2ce677,_0x26dc0f){for(const _0x576a17 of _0x2ce677['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x576a17['root']==_0x576a17)return!0x1;if(!_0x26dc0f['containsItem'](_0x576a17))return!0x1;if(_0x543347['isObject'](_0x576a17)||_0x543347['isLimit'](_0x576a17))return!0x0;}return!0x1;}function Pt(_0x5d7544){return _0x5d7544['end']['parent']==_0x5d7544['start']['nodeAfter']&&_0x5d7544['end']['isAtStart'];}function Gt(_0x1ea693,_0x7abf98,_0x3bfc1b,_0x2ff6b4){const _0x477cb9=_0x205400=>!_0x205400['item']['is']('$textProxy')&&!_0x2ff6b4['isObject'](_0x205400['item']),_0xb3aff6=_0x1ea693['start']['getLastMatchingPosition'](_0x477cb9),_0xe3f252=_0x1ea693['end']['getLastMatchingPosition'](_0x477cb9,{'direction':'backward'});return(!_0x1ea693['start']['isEqual'](_0xb3aff6)||!_0x1ea693['end']['isEqual'](_0xe3f252))&&(_0xb3aff6['isBefore'](_0xe3f252)?_0x3bfc1b['updateMarker'](_0x7abf98,{'range':_0x3bfc1b['createRange'](_0xb3aff6,_0xe3f252)}):_0x3bfc1b['removeMarker'](_0x7abf98),!0x0);}function Lt(_0x2131fb){return _0x19e181(_0x2131fb);}function Jt(_0x466e41){const _0x16a57c=_0x466e41['start']['nodeAfter'];return _0x16a57c&&_0x16a57c['is']('element');}function Kt(_0x4d51dd){return!Pt(_0x4d51dd)&&!function(_0x106959){return _0x106959['start']['parent']==_0x106959['end']['nodeBefore']&&_0x106959['start']['isAtEnd'];}(_0x4d51dd);}function Ht(_0x17b4ad,_0x140585){return null==_0x17b4ad['end']['nodeBefore']&&_0x17b4ad['end']['parent']==_0x17b4ad['start']['nodeAfter']?qt(_0x17b4ad['start']['nodeAfter'],_0x140585):_0x17b4ad;}function qt(_0x159dd1,_0x45eb19){const _0x5cddfc=_0x45eb19['schema']['isObject'](_0x159dd1)||_0x45eb19['schema']['isSelectable'](_0x159dd1);return _0x45eb19['createRange'](_0x45eb19['createPositionAt'](_0x159dd1,'before'),_0x5cddfc?_0x45eb19['createPositionAfter'](_0x159dd1):_0x45eb19['createPositionAt'](_0x159dd1,'end'));}function zt(_0x40321f,_0x4fbe7b,_0x5c4e63,_0x10948d){return!!Wt(_0x40321f,_0x4fbe7b)&&_0x5c4e63['end']['isEqual'](_0x10948d['start']);}function Wt(_0xe35f87,_0x823368){if(!_0xe35f87['_isDataLoaded']||!_0x823368['_isDataLoaded'])return!0x1;const _0x3e1a46=new Set(Object['keys'](_0xe35f87['attributes'])),_0x1eb578=new Set(Object['keys'](_0x823368['attributes']));if(_0x3e1a46['delete']('groupId'),_0x1eb578['delete']('groupId'),0x0==_0x3e1a46['size']&&0x0==_0x1eb578['size'])return!0x0;if(_0x3e1a46['size']!=_0x1eb578['size'])return!0x1;const _0x1e61ea={..._0xe35f87['attributes']},_0x38cdc6={..._0x823368['attributes']};return delete _0x1e61ea['groupId'],delete _0x38cdc6['groupId'],JSON['stringify'](_0x1e61ea)==JSON['stringify'](_0x38cdc6);}function Qt(_0x4eaa09,_0x1f7004){const _0x3a7c0c=Xt(_0x4eaa09['attributes']),_0x393ca7=Xt(_0x1f7004);if(!_0x4eaa09['_isDataLoaded'])return!0x1;for(const _0x2d4978 of Object['keys'](_0x393ca7))if(!_0x1ccc9c(_0x3a7c0c[_0x2d4978],_0x393ca7[_0x2d4978]))return!0x1;return!0x0;}function Xt(_0x1b6989){const _0x1d1d07=Object['assign']({},_0x1b6989);return delete _0x1d1d07['skipNestingCheck'],delete _0x1d1d07['tablePasteChainId'],_0x1d1d07;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x30d850(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4b8e5c,_0x1b06f6,_0x2f72f0,_0x5be155){super(),this['model']=_0x1b06f6,this['view']=_0x2f72f0,this['commentThreadController']=_0x5be155,this['_editor']=_0x4b8e5c,this['_acceptCommand']=_0x4b8e5c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4b8e5c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5a00b5,_0x2710be)=>_0x5a00b5||_0x2710be),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4b4919=>_0x4b4919&&this['_editor']['model']['canEditAt'](_0x1b06f6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5e6a93=>_0x5e6a93&&this['_editor']['model']['canEditAt'](_0x1b06f6['getRanges']())),this['_pendingAction']=null,_0x2f72f0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2f72f0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2f72f0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2f72f0,'change:isDirty',()=>{_0x2f72f0['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 _0x1374cb=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1374cb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x227c41{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3c2fd3,_0x37bafc,_0x2e68e5,_0x133ec6){super(_0x3c2fd3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3b31bb(_0x3c2fd3,o(_0x3c2fd3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x37bafc['authoredAt']),this['bind']('authoredAt')['to'](_0x37bafc),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',_0x37bafc,'authoredAt',this,'descriptionParts',(_0x3914fd,_0x5bfaf8,_0x8b3c35)=>{const _0x19f6c7=_0x8b3c35['map'](_0x1e4ac8=>ls(_0x1e4ac8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3914fd-0x1,_0x37bafc['author']['name'],_0x5bfaf8?_0x133ec6['formatDateTime'](_0x5bfaf8):'',new DOMParser()['parseFromString'](_0x19f6c7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3c433f(),this['focusTracker']=new _0x554881(),this['keystrokes']=new _0x468202(),this['focusCycler']=new _0x566dc2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x110480=>_0x110480['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x37bafc,this['_localUser']=_0x2e68e5,this['_config']=_0x133ec6,_0x133ec6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x66196a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x489cc1}=this['_config'];this['commentsListView']=new _0x489cc1(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',_0x352bad=>_0x352bad+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4aacc0,_0x434777)=>_0x4aacc0||!!_0x434777);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x377ca8}=this['_config'],_0x321f50=new _0x377ca8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2cafac=_0x321f50['commentInputView'];return _0x321f50['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2cafac,'value',(_0x34b3c8,_0x25645b,_0x20e3a4)=>!!_0x20e3a4||_0x34b3c8&&!_0x25645b),_0x2cafac['on']('submit',(_0x41748f,_0x1c6ea7)=>{this['fire']('addComment',_0x1c6ea7),_0x2cafac['editor']['setData']('');}),_0x2cafac['on']('cancel',()=>this['focus']()),_0x2cafac['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x321f50;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x303016,_0x23d836,_0x1b5cac,_0x5aac9f){super(_0x303016,_0x23d836,_0x1b5cac,_0x5aac9f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x57447f=>_0x57447f&&_0x57447f[0x0]?_0x57447f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3baa32,_0x45f3be)=>{let _0x4329ba='';for(const _0x369a95 of _0x3baa32)_0x4329ba+='<p>'+ls(_0x369a95['content'],_0x369a95['color'])+'</p>';return _0x45f3be?_0x4329ba:_0x28f8fc(_0x4329ba,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5aac9f['SuggestionView'](_0x303016,_0x23d836,{'formatDateTime':_0x5aac9f['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 _0x574a84=this['bindTemplate'],_0x5e6d3a=[this['suggestionView']];return this['commentsListView']&&_0x5e6d3a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5e6d3a['push'](this['commentThreadInputView']),_0x5e6d3a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x574a84['if']('isActive','ck-suggestion-wrapper--active'),_0x574a84['to']('type',_0x3fbe8d=>'ck-suggestion-'+_0x3fbe8d),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':_0x574a84['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5e6d3a};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x227c41{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5db7ca,_0x512c06,_0x385de1){super(_0x5db7ca),this['_model']=_0x512c06,this['_config']=_0x385de1,this['set']('description',''),this['bind']('authoredAt')['to'](_0x512c06),this['acceptButton']=this['_createButton'](o(_0x5db7ca,'Accept\x20suggestion'),_0x5413dd,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5db7ca,'Discard\x20suggestion'),_0xf05574,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x15bd94(_0x5db7ca,_0x512c06['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3c433f([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x554881(),this['keystrokes']=new _0x468202(),this['focusCycler']=new _0x566dc2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x493749=>_0x493749['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x43cace=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x43cace['innerHTML']=this['description'],this['on']('change:description',(_0x51a105,_0x3c0325,_0x108e0e)=>{_0x43cace['innerHTML']=_0x108e0e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x19ba81=this['bindTemplate'],_0x609438=[{'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':_0x19ba81['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x19ba81['to']('authoredAt',_0x27a564=>this['_config']['formatDateTime'](_0x27a564))}]}]},{'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']&&_0x609438['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':_0x609438}]};}['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'](_0x1d4e4d,_0x253c9c,_0x144d8e,_0x28beb9,_0x5b7bd7){const _0x294887=new _0x47319b(this['locale']);return _0x294887['set']({'label':_0x1d4e4d,'icon':_0x253c9c,'tooltip':!0x0,'tooltipPosition':_0x5b7bd7}),_0x294887['extendTemplate']({'attributes':{'class':_0x144d8e}}),_0x294887['on']('execute',()=>{this['fire'](_0x28beb9,this['_model']['id']);}),_0x294887;}['_setupKeyboardNavigation'](){const _0x27c805=this['element'];this['keystrokes']['listenTo'](_0x27c805);for(const _0x212850 of this['focusables'])this['focusTracker']['add'](_0x212850['element']),this['keystrokes']['listenTo'](_0x212850['element']);this['keystrokes']['set']('enter',(_0x179f74,_0x18854c)=>{_0x27c805===_0x179f74['target']&&(this['focusCycler']['focusFirst'](),_0x18854c());}),this['keystrokes']['set']('esc',(_0x48c5d4,_0xfe1142)=>{_0x27c805!==_0x48c5d4['target']&&(this['focus'](),_0xfe1142());});}}class u extends _0x2bddd5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x27b3d9,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e355f){super(_0x4e355f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5cebc4=this['editor']['config'];_0x5cebc4['define']('trackChanges.SuggestionThreadView',fe),_0x5cebc4['define']('trackChanges.SuggestionView',we),_0x5cebc4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5cebc4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1b7fb1,_0x19c9d0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x248505,_0x2372a5]of this['_handleControllerBuffer']){const _0x18a0f7=this['_suggestionToController']['has'](_0x248505);_0x18a0f7||_0x2372a5?_0x18a0f7&&_0x2372a5&&this['_destroyController'](_0x248505):this['_initializeController'](_0x248505);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1b7fb1,_0x19c9d0);}['init'](){const _0x4dcd88=this['editor'],_0x4f04fe=_0x4dcd88['plugins']['get']('TrackChangesEditing'),_0x120fda=_0x4dcd88['plugins']['get']('Annotations'),_0x5d1443=_0x4dcd88['plugins']['get']('EditorAnnotations'),_0x1ce81d=_0x4dcd88['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5d1443['addSourceCollector'](()=>{const _0x316e6=[];for(const [_0x3cb5a7,_0x14eeaf]of Array['from'](this['_suggestionToController'])){const _0x4b8873=_0x3cb5a7['getAllAdjacentSuggestions'](),_0x43de75=[];for(const _0x1848ad of _0x4b8873){if(!_0x1848ad['isInContent'])continue;if(_0x1848ad['isMultiRange']){_0x43de75['push'](..._0x1848ad['getRanges']());continue;}const _0xe59825=_0x1848ad['getFirstRange']();if(_0x43de75['length']>0x0){const _0x802701=_0x43de75[0x0]['getJoined'](_0xe59825);if(_0x802701){_0x43de75[0x0]=_0x802701;continue;}}_0x43de75['push'](_0xe59825);}_0x316e6['push']([_0x14eeaf['view'],_0x43de75]);}return _0x316e6;}),this['listenTo'](_0x4f04fe,'suggestionLoaded',(_0xc53b1,_0x30a94e)=>{this['listenTo'](_0x30a94e,'change:previous',(_0x25a04b,_0x1f7ce6,_0x136fc6,_0x3fa9ee)=>{_0x30a94e['isInContent']&&(null==_0x136fc6?(this['_updateController'](_0x3fa9ee['head']),this['_handleSuggestionControllerDelayed'](_0x30a94e,!0x1)):(this['_updateController'](_0x136fc6['head']),null==_0x3fa9ee&&this['_handleSuggestionControllerDelayed'](_0x30a94e,!0x0)));}),null!==_0x30a94e['previous']?this['_updateController'](_0x30a94e['head']):this['_handleSuggestionControllerDelayed'](_0x30a94e,!0x1);}),this['listenTo'](_0x4f04fe,'suggestionUnloaded',(_0x1c3692,_0x2e5b0c,_0x5e987f)=>{this['stopListening'](_0x2e5b0c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2e5b0c),this['_suggestionToController']['has'](_0x2e5b0c)&&this['_destroyController'](_0x2e5b0c),_0x5e987f&&this['_updateController'](_0x5e987f['head']);}),this['listenTo'](_0x4f04fe,'suggestionChanged',(_0x5bd8d8,_0x54c5bd)=>{this['_updateController'](_0x54c5bd);}),this['listenTo'](_0x120fda,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1ce81d,'addComment',(_0x31feee,{threadId:_0x37f88,isFromAdapter:_0x348270})=>{if(_0x348270||!_0x4f04fe['hasSuggestion'](_0x37f88))return;const _0x5594c0=_0x4f04fe['getSuggestion'](_0x37f88);this['_suggestionToController']['get'](_0x5594c0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x25b2c0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x50d1aa;for(const _0xd9c079 in _0x25b2c0){const _0x5e92c3=_0xd9c079,_0x48a041=_0x25b2c0[_0x5e92c3];if('trackChangesLicenseKeyValid'==_0x48a041||'trackChangesLicenseKeyInvalid'==_0x48a041||'trackChangesLicenseKeyExpired'==_0x48a041||'trackChangesLicenseKeyDomainLimit'==_0x48a041||'trackChangesLicenseKeyNotAllowed'==_0x48a041||'trackChangesLicenseKeyEvaluationLimit'==_0x48a041||'trackChangesLicenseKeyTrialLimit'==_0x48a041||'trackChangesLicenseKeyUsageLimit'==_0x48a041){delete _0x25b2c0[_0x5e92c3],_0x50d1aa=_0x48a041,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4bd008){const _0x274e4c=this['_suggestionToController']['get'](_0x4bd008);if(!_0x274e4c)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x274e4c['view'])||null;}['getSuggestionForAnnotation'](_0x49c423){const _0x79d15a=this['_viewToController']['get'](_0x49c423['innerView']);return _0x79d15a?_0x79d15a['model']:null;}['_refreshActiveMarkers'](){const _0x237bbf=this['editor']['plugins']['get']('Annotations'),_0x7241b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21f08f=Array['from'](_0x237bbf['activeAnnotations'],_0x4185c4=>_0x4185c4['innerView'])['filter'](_0x46f263=>this['_viewToController']['has'](_0x46f263)),_0x42d2fb=[];for(const _0x1a63ab of _0x21f08f){const _0x1efb06=this['_viewToController']['get'](_0x1a63ab)['model']['getAllAdjacentSuggestions']();_0x42d2fb['push'](..._0x1efb06['reduce']((_0x1406d3,_0x23d1ea)=>[..._0x1406d3,..._0x23d1ea['getMarkerNames']()],[]));}_0x7241b4['activeMarkers']=_0x42d2fb;}['_addUIComponentsToFactory'](){const _0x40e29a=this['editor'],_0x574ff5=_0x40e29a['locale'],_0x1bb90f=o(_0x574ff5,'Track\x20changes'),_0x29e9f4=new _0x34de8a([{'type':'switchbutton','model':new _0x595d42({'withText':!0x0,'isToggleable':!0x0,'label':_0x1bb90f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x595d42({'withText':!0x0,'label':o(_0x574ff5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x595d42({'withText':!0x0,'label':o(_0x574ff5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x595d42({'withText':!0x0,'label':o(_0x574ff5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x595d42({'withText':!0x0,'label':o(_0x574ff5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x40e29a['plugins']['has']('TrackChangesPreview')&&_0x29e9f4['addMany']([{'type':'separator'},{'type':'button','model':new _0x595d42({'withText':!0x0,'label':o(_0x574ff5,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x304b60 of _0x29e9f4)if(ke(_0x304b60)){const _0x4d28fe=_0x40e29a['commands']['get'](_0x304b60['model']['commandName']);_0x304b60['model']['bind']('isOn','isEnabled')['to'](_0x4d28fe,'value','isEnabled');}_0x40e29a['ui']['componentFactory']['add']('trackChanges',_0x5cfe06=>this['_createToolbarButton'](_0x5cfe06,_0x29e9f4,_0x1bb90f)),_0x40e29a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1f5adf=>this['_createMenuBarMenu'](_0x1f5adf,_0x29e9f4,_0x1bb90f));}['_createToolbarButton'](_0x43a5ea,_0x2cdbc8,_0x36d510){const _0x16f1d7=_0x348d4d(_0x43a5ea,_0x17ee4a),_0x149117=this['editor']['commands']['get']('trackChanges');_0x16f1d7['buttonView']['set']({'tooltip':_0x36d510,'label':_0x36d510,'icon':_0xbecfc5}),_0x16f1d7['buttonView']['bind']('isOn')['to'](_0x149117,'value'),_0x16f1d7['buttonView']['on']('execute',()=>{_0x149117['execute'](),this['editor']['editing']['view']['focus']();}),_0x5cbd92(_0x16f1d7,_0x2cdbc8,{'role':'menu'});const _0x269104=[];for(const _0x22a91a of _0x2cdbc8)ke(_0x22a91a)&&_0x269104['push'](this['editor']['commands']['get'](_0x22a91a['model']['commandName']));const _0x3aae8b=_0x16f1d7['buttonView'];return _0x3aae8b['actionView']['unbind']('isEnabled'),_0x3aae8b['arrowView']['unbind']('isEnabled'),_0x3aae8b['actionView']['bind']('isEnabled')['to'](_0x149117,'isEnabled'),_0x3aae8b['arrowView']['bind']('isEnabled')['toMany'](_0x269104,'isEnabled',(..._0x2a2f87)=>_0x2a2f87['some'](_0x454c2d=>_0x454c2d)),_0x16f1d7['on']('execute',_0x53cc8a=>{this['editor']['execute'](_0x53cc8a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x16f1d7;}['_createMenuBarMenu'](_0x775531,_0x1b853b,_0x4e78ba){const _0x39fcc9=new _0xa70834(_0x775531),_0x2c14ea=this['editor']['commands']['get']('trackChanges');_0x39fcc9['buttonView']['set']({'label':_0x4e78ba,'icon':_0xbecfc5});const _0x15ffbf=new _0x5d1ff9(_0x775531);for(const _0x4601bd of _0x1b853b){if('separator'==_0x4601bd['type']){_0x15ffbf['items']['add'](new _0x247408(_0x775531));continue;}const _0x1395ea=new _0x3991a7(_0x775531,_0x39fcc9),_0x401a65=new _0x47cc69(_0x775531),_0x10554b=_0x4601bd['model'];_0x401a65['bind'](...Object['keys'](_0x10554b))['to'](_0x10554b),_0x401a65['delegate']('execute')['to'](_0x39fcc9),_0x401a65['on']('execute',()=>{this['editor']['execute'](_0x10554b['commandName']),this['editor']['editing']['view']['focus']();}),_0x1395ea['children']['add'](_0x401a65),_0x15ffbf['items']['add'](_0x1395ea);}return _0x39fcc9['bind']('isEnabled')['to'](_0x2c14ea,'isEnabled'),_0x39fcc9['panelView']['children']['add'](_0x15ffbf),_0x39fcc9;}['_initializeController'](_0x1333aa){const _0x21edf5=this['editor'],_0x75d078=_0x21edf5['config'],_0x4f5ab6=_0x21edf5['plugins']['get']('Annotations'),_0x14b80c=_0x21edf5['plugins']['get']('CommentsRepository'),_0x235840=_0x21edf5['plugins']['get']('EditorAnnotations'),_0x8a6382=_0x21edf5['plugins']['get'](_0x27b3d9)['me'],_0xd49654=_0x75d078['get']('trackChanges')['SuggestionThreadView'],_0x50d65d=_0x75d078['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2f672c,CommentThreadInputView:_0x5f1d67}=_0x21edf5['plugins']['get']('CommentsUI');let _0x2776fb,_0x117da2,_0x10dbbf;this['_annotationViews']['has'](_0x1333aa['id'])?(_0x117da2=this['_annotationViews']['get'](_0x1333aa['id']),_0x2776fb=_0x117da2['mainView']):(_0x2776fb=new _0xd49654(_0x21edf5['locale'],_0x1333aa,_0x8a6382,{'disableComments':this['_disableComments'],'editorConfig':{..._0x75d078['get']('comments.editorConfig'),'licenseKey':_0x75d078['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x75d078['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x75d078['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x75d078['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3e584c(_0x75d078['get']('locale'),_0x21edf5['locale']),'CommentView':_0x75d078['get']('comments')['CommentView'],'CommentsListView':_0x2f672c,'CommentThreadInputView':_0x5f1d67,'SuggestionView':_0x50d65d}),_0x2776fb['suggestionView']['acceptButton']['on']('execute',()=>{_0x21edf5['editing']['view']['focus']();}),_0x2776fb['suggestionView']['discardButton']['on']('execute',()=>{_0x21edf5['editing']['view']['focus']();}),_0x117da2=_0x4f5ab6['createAnnotationView'](this['editor']['locale'],_0x2776fb),_0x117da2['bind']('isDirty')['to'](_0x2776fb,'isDirty'),_0x117da2['bind']('length')['to'](_0x2776fb),_0x117da2['bind']('type')['to'](_0x2776fb,'type',_0xe1a43b=>'suggestion-'+_0xe1a43b),_0x2776fb['on']('escape',()=>{_0x10dbbf['fire']('escape');}),this['_annotationViews']['set'](_0x1333aa['id'],_0x117da2));const _0x1e66f7=_0x14b80c['createCommentThreadController'](_0x1333aa['commentThread'],_0x2776fb),_0x3c2713=new pe(_0x21edf5,_0x1333aa,_0x2776fb,_0x1e66f7),_0x234e5e=_0x1333aa['getAllAdjacentSuggestions']()['filter'](_0x1f2051=>_0x1f2051['isInContent']);_0x2776fb['descriptionParts']=_0x21edf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x234e5e),this['_suggestionToController']['set'](_0x1333aa,_0x3c2713),this['_viewToController']['set'](_0x2776fb,_0x3c2713),_0x10dbbf=_0x4f5ab6['createAnnotation']({'view':_0x117da2,'target':()=>{const _0x1cd6bc=[],_0x488b73=_0x1333aa['getAllAdjacentSuggestions']()['filter'](_0x121520=>_0x121520['isInContent']);for(const _0x452af9 of _0x488b73)_0x1cd6bc['push'](..._0x452af9['getMarkers']());return _0x190f99(_0x21edf5['editing'],_0x1cd6bc);},'type':()=>'suggestion-'+_0x3c2713['view']['type']}),_0x14b80c['_bindAnnotationToEditors'](_0x2776fb,_0x10dbbf),_0x4f5ab6['add'](_0x10dbbf),_0x235840['registerAnnotation'](_0x10dbbf);}['_destroyController'](_0x379365){const _0x20262f=this['editor']['plugins']['get']('CommentsRepository'),_0x204ec2=this['editor']['plugins']['get']('Annotations'),_0x3b9545=this['_suggestionToController']['get'](_0x379365),_0x13afa8=_0x3b9545['view'],_0xfe766b=_0x204ec2['getByInnerView'](_0x13afa8);_0x20262f['_unbindEditors'](_0x13afa8),_0xfe766b&&_0x204ec2['remove'](_0xfe766b),this['_suggestionToController']['delete'](_0x379365),this['_viewToController']['delete'](_0x13afa8),_0x3b9545['destroy']();}['_updateController'](_0x3a4ad2){if(!_0x3a4ad2['isInContent']||!this['_suggestionToController']['has'](_0x3a4ad2))return;const _0x307d4b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14fdae=this['_suggestionToController']['get'](_0x3a4ad2),_0x3d909f=_0x3a4ad2['getAllAdjacentSuggestions']();_0x14fdae['view']['descriptionParts']=_0x307d4b['descriptionFactory']['getDescriptions'](_0x3d909f);}['destroy'](){for(const _0x2d2933 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2d2933);for(const _0x33065b of this['_annotationViews']['values']())_0x33065b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x43ae89){return'model'in _0x43ae89;}class Fe extends _0x2bddd5{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x52672c){this['editor']['plugins']['get'](d)['adapter']=_0x52672c;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2412c9){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2412c9);}['getSuggestions']({skipNotAttached:_0x2e507c=!0x1,toJSON:_0x3730a3=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2e507c,'toJSON':_0x3730a3});}['getSuggestion'](_0x5f2f10){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x5f2f10);}}const p=['Pagination'];class re extends _0x2bddd5{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5e6b2a=this['editor'];if(_0x5e6b2a['config']['define']('trackChangesData.editorCreator',_0xc92674=>{const _0x1c202b=_0x5e6b2a['model']['document']['getRootNames']()['reduce']((_0x28a4b1,_0x58e54c)=>(_0x28a4b1[_0x58e54c]='',_0x28a4b1),{});return _0x5e6b2a['constructor']['create'](_0x1c202b,_0xc92674);}),'function'!=typeof _0x5e6b2a['config']['get']('trackChangesData')['editorCreator'])throw new _0x30e493('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x319210){return P(this['editor'],!0x0,_0x319210);}['getDataWithDiscardedSuggestions'](_0x3f9c96){return P(this['editor'],!0x1,_0x3f9c96);}}class Ge extends _0x2bddd5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x407f99){function _0x14738f(_0x4e53d6){return _0x4e53d6['map'](_0x1d7c13=>String['fromCharCode'](_0x1d7c13))['join']('');}super(_0x407f99),this['result']='end',_0x407f99[_0x14738f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14738f([0x76,0x69,0x65,0x77])][_0x14738f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14738f([0x61,0x75,0x74,0x6f]),_0x407f99[_0x14738f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x14738f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14738f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x14738f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x14738f([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function $e(_0x1da857){return void 0x0!==_0x1da857['getRootsAttributes'];}async function P(_0x56cff9,_0x2d7166,_0x5c6a2b){const _0x222dba=_0x52af52(_0x56cff9,p);_0x222dba['plugins']['push'](d,Ge),_0x222dba['rootsAttributes']=$e(_0x56cff9)?_0x56cff9['getRootsAttributes']():void 0x0;const _0x5cb655=document['createDocumentFragment'](),_0x39be89=_0x56cff9['config']['get']('trackChangesData')['editorCreator'],_0x528ab5=await _0x39be89(_0x222dba,()=>function(_0x24f77e){const _0x102c9a=document['createElement']('div');return _0x24f77e['appendChild'](_0x102c9a),_0x102c9a;}(_0x5cb655));!function(_0x4aa566,_0x130737){const _0x2decd9=_0x4aa566['model']['document']['getRootNames']()['reduce']((_0x9c0fac,_0x497ec2)=>(_0x9c0fac[_0x497ec2]=_0x4aa566['data']['get']({'rootName':_0x497ec2}),_0x9c0fac),{}),_0x4f4398=_0x4aa566['plugins']['get']('Users')['users']['map'](_0xbcba97=>({'id':_0xbcba97['id'],'name':_0xbcba97['name']})),_0x2e9b1f=_0x4aa566['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2d244a=_0x4aa566['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x223949=_0x130737['plugins']['get']('Users'),_0x1c763d=_0x130737['plugins']['get']('TrackChangesEditing'),_0x51e124=_0x130737['plugins']['get']('CommentsRepository');for(const _0x98e164 of _0x51e124['getCommentThreads']())_0x98e164['remove']();for(const _0xe5de66 of _0x4f4398)_0x223949['getUser'](_0xe5de66['id'])||_0x223949['addUser'](_0xe5de66);_0x223949['me']||_0x223949['useAnonymousUser']();for(const _0x968d40 of _0x2d244a)_0x51e124['addCommentThread'](_0x968d40);for(const _0x26deeb of _0x2e9b1f)_0x1c763d['addSuggestionData'](_0x26deeb);_0x130737['data']['set'](_0x2decd9);}(_0x56cff9,_0x528ab5),_0x528ab5['execute'](_0x2d7166?'acceptAllSuggestions':'discardAllSuggestions');const _0x30c33f=$e(_0x528ab5)?_0x528ab5['getFullData'](_0x5c6a2b):_0x528ab5['data']['get'](_0x5c6a2b);return await _0x528ab5['destroy'](),_0x30c33f;}class Me extends _0x227c41{['options'];constructor(_0x22441e,_0x5ef4bf){super(_0x22441e),this['options']=_0x5ef4bf,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'](_0x13c539,_0x5b8fc3){if(!this['element'])return;const _0x385c9f=[];for(const [_0x34eba7,_0x4bee2e]of _0x13c539){const _0x469558=document['createElement']('div');_0x469558['setAttribute']('data-ck-root-name',_0x34eba7),_0x469558['className']=_0x4bee2e['classes']+'\x20ck-track-changes-preview__root-container',_0x469558['innerHTML']=_0x4bee2e['content'],_0x385c9f['push'](_0x469558);}_0x5b8fc3(this['element'],_0x385c9f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x572c4e{constructor(_0x1ac1ad){super(_0x1ac1ad),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5158fa=this['editor'],_0x44350e=_0x5158fa['locale'],_0x4f2ce8=_0x5158fa['plugins']['get']('Dialog');let _0x1eac86;const _0xd869d2=function(_0xdb0857){const _0x21b848={};if('editables'in _0xdb0857['ui']['view']){for(const [_0x1d3522,_0x5c4fdf]of Object['entries'](_0xdb0857['ui']['view']['editables']))_0x21b848[_0x1d3522]=_0x5c4fdf['element'];}else _0x21b848[_0xdb0857['model']['document']['getRootNames']()[0x0]]=_0xdb0857['ui']['view']['editable']['element'];return _0x21b848;}(_0x5158fa),_0x3d3945=function(_0x1cbb83){let _0x605806=0x0;for(const _0x2b22b8 of Object['values'](_0x1cbb83))_0x605806=Math['max'](_0x605806,_0x2b22b8['getBoundingClientRect']()['width']);let _0x493b3f=0x0;for(const _0x8604fa of Object['values'](_0x1cbb83))_0x493b3f+=_0x8604fa['getBoundingClientRect']()['height'];const _0x5d4145=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x224f5c=Math['min'](_0x493b3f,_0x5d4145);return{'width':_0x605806,'height':_0x224f5c};}(_0xd869d2);_0x4f2ce8['show']({'id':'finalContentPreview','title':o(_0x44350e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x44350e,{'dialogRects':_0x3d3945}),'onHide':()=>{_0x1eac86['detachFromDom']();},'onShow':()=>{_0x5158fa['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x44ce70=>{const _0x3de66a=this['_standarizeRootsData'](_0x44ce70,_0x5158fa,_0xd869d2);_0x4f2ce8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3de66a,_0x5158fa['config']['get']('trackChanges.preview.renderFunction'));}),_0x1eac86=new _0x2fab16(_0x44350e,[_0x4f2ce8['view']]),_0x1eac86['attachToDom'](),_0x1eac86['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5158fa['once']('destroy',()=>{_0x1eac86['detachFromDom']();});const _0x9ab894=_0x4f2ce8['view']['headerView']['class'];_0x4f2ce8['view']['headerView']['class']=_0x9ab894?_0x9ab894+'\x20ck-reset_all':'ck-reset_all',_0x4f2ce8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4f2ce8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2fe9be=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x26f555=_0x2fe9be['previewMode'],_0x1d045f={};if('$labels'===_0x26f555){for(const _0x5afdea of _0x2fe9be['getMergeFieldsIds']())_0x1d045f[_0x5afdea]=_0x2fe9be['getLabel'](_0x5afdea)||_0x5afdea;}else{const _0x4a4eee='$defaultValues'===_0x26f555?_0x2fe9be['getDefaultValues']():_0x2fe9be['getDataSetValues'](_0x26f555,!0x0);for(const _0x3f503a of Object['entries'](_0x4a4eee)){const [_0x14b8b0,_0x49c44e]=_0x3f503a;_0x1d045f[_0x14b8b0]=null!==_0x49c44e?_0x49c44e:_0x2fe9be['getLabel'](_0x14b8b0)||_0x14b8b0;}}return{'mergeFieldsData':_0x1d045f};}['_standarizeRootsData'](_0x4f05c5,_0x4a34a8,_0x573065){let _0x26a395;if('string'==typeof _0x4f05c5){const _0x48c2b5=_0x4a34a8['model']['document']['getRootNames']()[0x0];_0x26a395={[_0x48c2b5]:_0x4f05c5};}else _0x26a395=_0x4f05c5;const _0x5b9c24=this['_fixMediaEmbeds'](_0x26a395,_0x4a34a8),_0x12d9d9=function(_0x57a3f7,_0x490f1e){for(const [_0x234401,_0x47cb17]of _0x57a3f7)_0x47cb17['classes']=_0x490f1e[_0x234401]['classList']['value']['replace']('ck-focused','');return _0x57a3f7;}(this['_sortRoots'](_0x4a34a8)['reduce']((_0x5cdda5,_0x3282b9)=>(_0x5cdda5['push']([_0x3282b9,{'content':_0x5b9c24[_0x3282b9],'classes':''}]),_0x5cdda5),[]),_0x573065);return _0x12d9d9;}['_fixMediaEmbeds'](_0x1b4156,_0x5f0b86){if(!_0x5f0b86['plugins']['has']('MediaEmbedEditing'))return _0x1b4156;const _0x5affcb=_0x5f0b86['plugins']['get']('MediaEmbedEditing');for(const [_0x484e3b,_0x6a00c3]of Object['entries'](_0x1b4156)){const _0xb24746=document['createElement']('div');_0xb24746['innerHTML']=_0x6a00c3,(_0xb24746['querySelectorAll']('figure.media')['forEach'](_0x315a3a=>{const _0x43701b=_0x315a3a['querySelector']('oembed');if(_0x43701b){const _0x11cc04=_0x43701b['getAttribute']('url');if(_0x11cc04){const _0x17c979=_0x5affcb['registry']['getMediaViewElement'](new _0x2ea7db(_0x5f0b86['editing']['view']['document']),_0x11cc04,{'elementName':'','renderForEditingView':!0x0}),_0x558b4a=document['createElement']('div');_0x558b4a['classList']['add']('ck-media__wrapper'),_0x17c979['render'](_0x558b4a,_0x5f0b86['editing']['view']['domConverter']),_0x43701b['replaceWith'](_0x558b4a);}}}),_0x1b4156[_0x484e3b]=_0xb24746['innerHTML']);}return _0x1b4156;}['_sortRoots'](_0x328d2d){if(!function(_0x57de5b){return void 0x0!==_0x57de5b['getRootsAttributes'];}(_0x328d2d))return _0x328d2d['model']['document']['getRootNames']();const _0x3ddc01=[],_0x1de9c9=new Map();for(const _0x2a210e of _0x328d2d['model']['document']['getRootNames']()){const _0x28f2b7=_0x328d2d['editing']['view']['getDomRoot'](_0x2a210e)['getClientRects']()['item'](0x0);_0x3ddc01['push'](_0x2a210e),_0x1de9c9['set'](_0x2a210e,_0x28f2b7);}return _0x3ddc01['sort']((_0x12d507,_0x4c6ae5)=>{const _0x2b62d5=_0x1de9c9['get'](_0x12d507),_0x41590e=_0x1de9c9['get'](_0x4c6ae5);return _0x2b62d5['y']-_0x41590e['y']||_0x2b62d5['x']-_0x41590e['x'];}),_0x3ddc01;}}class He extends _0x2bddd5{static get['requires'](){return[re,_0x34ef5c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38d5fa){super(_0x38d5fa),_0x38d5fa['commands']['add']('previewFinalContent',new te(this['editor'])),_0x38d5fa['config']['define']('trackChanges.preview.renderFunction',(_0xe814f,_0x4634ae)=>{for(const _0x2a8799 of _0x4634ae)_0xe814f['appendChild'](_0x2a8799);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};