@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250203.0 → 0.0.0-nightly-20250205.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 (221) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +25 -25
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/previewfinalcontentcommand.js +1 -1
  153. package/src/commands/trackchangescommand.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/integrations/aiassistant.js +1 -1
  156. package/src/integrations/alignment.js +1 -1
  157. package/src/integrations/basicstyles.js +1 -1
  158. package/src/integrations/blockquote.js +1 -1
  159. package/src/integrations/bookmark.js +1 -1
  160. package/src/integrations/casechange.js +1 -1
  161. package/src/integrations/ckbox.js +1 -1
  162. package/src/integrations/codeblock.js +1 -1
  163. package/src/integrations/comments.js +1 -1
  164. package/src/integrations/deletecommand.js +1 -1
  165. package/src/integrations/entercommand.js +1 -1
  166. package/src/integrations/findandreplace.js +1 -1
  167. package/src/integrations/font.js +1 -1
  168. package/src/integrations/formatpainter.js +1 -1
  169. package/src/integrations/heading.js +1 -1
  170. package/src/integrations/highlight.js +1 -1
  171. package/src/integrations/horizontalline.js +1 -1
  172. package/src/integrations/htmlembed.js +1 -1
  173. package/src/integrations/image.js +1 -1
  174. package/src/integrations/imagereplace.js +1 -1
  175. package/src/integrations/imagestyle.js +1 -1
  176. package/src/integrations/importword.js +1 -1
  177. package/src/integrations/indent.js +1 -1
  178. package/src/integrations/inputcommand.js +1 -1
  179. package/src/integrations/legacylist.js +1 -1
  180. package/src/integrations/legacylistproperties.js +1 -1
  181. package/src/integrations/link.js +1 -1
  182. package/src/integrations/list.js +1 -1
  183. package/src/integrations/listproperties.js +1 -1
  184. package/src/integrations/mediaembed.js +1 -1
  185. package/src/integrations/mention.js +1 -1
  186. package/src/integrations/mergefields.js +1 -1
  187. package/src/integrations/multilevellist.js +1 -1
  188. package/src/integrations/pagebreak.js +1 -1
  189. package/src/integrations/paragraph.js +1 -1
  190. package/src/integrations/removeformat.js +1 -1
  191. package/src/integrations/restrictededitingmode.js +1 -1
  192. package/src/integrations/shiftentercommand.js +1 -1
  193. package/src/integrations/standardeditingmode.js +1 -1
  194. package/src/integrations/style.js +1 -1
  195. package/src/integrations/table.js +1 -1
  196. package/src/integrations/tablecaption.js +1 -1
  197. package/src/integrations/tableclipboard.js +1 -1
  198. package/src/integrations/tablecolumnresize.js +1 -1
  199. package/src/integrations/tableheadings.js +1 -1
  200. package/src/integrations/tablemergesplit.js +1 -1
  201. package/src/integrations/tableofcontents.js +1 -1
  202. package/src/integrations/tableproperties.js +1 -1
  203. package/src/integrations/template.js +1 -1
  204. package/src/integrations/title.js +1 -1
  205. package/src/integrations/undo.js +1 -1
  206. package/src/integrations/uploadcare.js +1 -1
  207. package/src/integrations/utils.js +1 -1
  208. package/src/suggestion.js +2 -2
  209. package/src/suggestiondescriptionfactory.js +1 -1
  210. package/src/trackchanges.js +1 -1
  211. package/src/trackchangesdata.js +1 -1
  212. package/src/trackchangesediting.js +1 -1
  213. package/src/trackchangespreview.js +1 -1
  214. package/src/trackchangesui.js +1 -1
  215. package/src/ui/suggestioncontroller.js +2 -2
  216. package/src/ui/view/basesuggestionthreadview.js +1 -1
  217. package/src/ui/view/suggestionthreadview.js +1 -1
  218. package/src/ui/view/suggestionview.js +1 -1
  219. package/src/ui/view/trackchangespreviewview.js +1 -1
  220. package/src/utils/common-translations.js +1 -1
  221. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Qt,Plugin as _0x32720e,PendingActions as _0x2ac36e,icons as _0x230c64}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xfec3cf,ObservableMixin as _0x132ed3,uid as _0x2cd620,priorities as _0x4368d6,insertToPriorityArray as _0x6a8e58,logWarning as _0x9317a6,getEnvKeystrokeText as _0x315ef0,FocusTracker as _0x23ef9f,KeystrokeHandler as _0x3bdab9,Collection as _0x33f543}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x53def7,View as _0x11e5db,ViewCollection as _0x5c8dec,FocusCycler as ts,ViewModel as _0x41358f,createDropdown as _0x4cb20b,SplitButtonView as _0x4b215d,addListToDropdown as _0x4322f7,MenuBarMenuView as _0x3a12bc,MenuBarMenuListView as _0x376e85,ListSeparatorView as _0xa8bd4d,MenuBarMenuListItemView as _0x5369f1,MenuBarMenuListItemButtonView as _0x4ce01f,BodyCollection as _0x2be798,Dialog as _0x26d4e0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x48e0a0,hashObject as _0x2ae810,surroundingMarkersDetector as _0x439ccd,FOCUS_ANNOTATION_KEYSTROKE as _0x2978b7,AriaDescriptionView as _0x2b5eba,setupThreadKeyboardNavigation as _0x484b13,trimHtml as _0x54b9fd,UserView as _0xf70ba3,LateFocusButtonView as _0xc6c968,getDateTimeFormatter as _0x1872cb,getAllMarkersDomElementsSorted as _0xf76376,sanitizeEditorConfig as _0x46ee85}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x35966e,LiveRange as _0x114c36,LivePosition as _0xc42979,DowncastWriter as _0x35eebe}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x58a981,toWidget as _0x1a00cd}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x597c63,set as _0x3c5465,isEqual as _0x2cb703,unset as _0x532bc6,omit as Et}from'lodash-es';import{Delete as _0x1c8203,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x21923b,ShiftEnter as _0x31c31b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x19bee3,_0xf0bc9c){super(_0x19bee3),this['_enabledCommands']=_0xf0bc9c,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 _0x1f5b07 of this['editor']['commands']['commands']())_0x1f5b07['affectsData']&&!this['_enabledCommands']['has'](_0x1f5b07)&&_0x1f5b07['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x34eef6 of this['editor']['commands']['commands']())_0x34eef6['affectsData']&&!this['_enabledCommands']['has'](_0x34eef6)&&_0x34eef6['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x391e66,_0x31cdcb){super(_0x391e66),this['_suggestions']=_0x31cdcb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4b63d0){const _0xa2a008=this['_suggestions']['get'](_0x4b63d0);if(!_0xa2a008)throw new _0xfec3cf('track-changes-accept-suggestion-not-found',this);const _0x1c1066=_0xa2a008['getRanges']();this['editor']['model']['canEditAt'](_0x1c1066)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xa2a008);}}class R extends Qt{['_suggestions'];constructor(_0x272973,_0x465374){super(_0x272973),this['_suggestions']=_0x465374,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3aaf90){const _0x41e61d=this['_suggestions']['get'](_0x3aaf90);if(!_0x41e61d)throw new _0xfec3cf('track-changes-discard-suggestion-not-found',this);const _0xe9a81=_0x41e61d['getRanges']();this['editor']['model']['canEditAt'](_0xe9a81)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x41e61d);}}function ns(_0x4f13d3,_0x156cd0){let _0x2fb65f='';return _0x2fb65f+=_0x4f13d3['split']('*')['map']((_0x2f418b,_0x3098b9)=>_0x3098b9%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2f418b)+'</span>':nn(_0x2f418b))['join'](''),_0x156cd0&&(_0x2fb65f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x156cd0['value']+'\x22\x20title=\x22'+_0x156cd0['title']+'\x22></span>'),_0x2fb65f;}function nn(_0x239484){const _0x3c54b0=document['createElement']('span');return _0x3c54b0['innerText']=_0x239484,_0x3c54b0['innerHTML'];}function Xt(_0x287f5c){return _0x287f5c['sort']((_0x57e93d,_0x1e5779)=>'deletion'==_0x57e93d['type']&&'deletion'!=_0x1e5779['type']?-0x1:'deletion'!=_0x57e93d['type']&&'deletion'==_0x1e5779['type']?0x1:0x0);}function to(_0x22d054,_0x4c8144){let _0x548c94,_0x87ff77=0x0;const _0x1c3457=[],_0x366031=_0x4c8144['schema'];for(;_0x87ff77<_0x22d054['length'];){const _0x174f8c=_0x22d054[_0x87ff77],_0x598734=_0x22d054[_0x87ff77+0x1];_0x548c94||(_0x548c94=_0x4c8144['createPositionBefore'](_0x174f8c)),on(_0x4c8144,_0x174f8c,_0x598734)||(_0x1c3457['push'](_0x4c8144['createRange'](_0x548c94,_0x366031['isObject'](_0x174f8c)?_0x4c8144['createPositionAfter'](_0x174f8c):_0x4c8144['createPositionAt'](_0x174f8c,'end'))),_0x548c94=null),_0x87ff77++;}return _0x1c3457;}function on(_0x18074e,_0x88aaed,_0x49d018){if(!_0x49d018)return!0x1;const _0x26c658=_0x18074e['createPositionAfter'](_0x88aaed),_0x3875e3=_0x18074e['createPositionBefore'](_0x49d018);return _0x26c658['isTouching'](_0x3875e3);}function Yt(_0x1eed81,_0x4f900b,_0x1b9427){for(;_0x1b9427['length'];){const _0x335049=_0x1b9427['splice'](0x0,0x64);_0x1eed81['change'](()=>{for(const _0x549eb0 of _0x335049)_0x549eb0['isInContent']&&_0x4f900b['execute'](_0x549eb0['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x403efe,_0x41e8c4,_0x5a11fb){super(_0x403efe),this['_command']=_0x41e8c4,this['_suggestions']=_0x5a11fb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x511179=Array['from'](this['_suggestions']['values']())['some'](_0x3fe36d=>_0x3fe36d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x511179;}['execute'](){const _0xf4e4fe=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x3203de of _0xf4e4fe){const _0x1e83af=_0x3203de['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1e83af))return;}Yt(this['editor']['model'],this['_command'],_0xf4e4fe);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x334fed,_0x447029,_0x367abb){super(_0x334fed),this['_command']=_0x447029,this['_suggestions']=_0x367abb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x350a3a=this['editor']['model']['document']['selection'],_0x4d97f1=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x9f6d3e,_0x30fc1c){const _0x42609b=Array['from'](_0x9f6d3e['getRanges']()),_0x5902fb=new Set();for(const _0xc7bfcb of _0x30fc1c)if(_0xc7bfcb['isInContent']){for(const _0x412be4 of _0x42609b)for(const _0x5eb5f8 of _0xc7bfcb['getRanges']())(_0x412be4['isIntersecting'](_0x5eb5f8)||_0x9f6d3e['isCollapsed']&&!_0xc7bfcb['isMultiRange']&&_0xc7bfcb['next']&&_0x5eb5f8['end']['isTouching'](_0x412be4['start']))&&_0x5902fb['add'](_0xc7bfcb);}return _0x5902fb;}(_0x350a3a,_0x4d97f1),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x27d994=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x4b8ae2 of _0x27d994){const _0x520c58=_0x4b8ae2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x520c58))return;}Yt(this['editor']['model'],this['_command'],_0x27d994);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x132ed3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x9ef453,_0x85f06b){super(),this['id']=_0x85f06b['id'],this['type']=_0x85f06b['type'],this['subType']=_0x85f06b['subType']||null,this['author']=_0x85f06b['author'],this['creator']=_0x85f06b['creator']||_0x85f06b['author'],this['isExternal']=Boolean(_0x85f06b['attributes']&&_0x85f06b['attributes']['@external']),this['data']=null,this['_model']=_0x9ef453,this['_onAccept']=_0x85f06b['onAccept'],this['_onDiscard']=_0x85f06b['onDiscard'],this['_onAttributesChange']=_0x85f06b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x85f06b['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 _0x542422=this;for(;_0x542422['previous'];)_0x542422=_0x542422['previous'];return _0x542422;}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'](_0x2d343d){this['_markerNames']['add'](_0x2d343d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x56441b=>this['_model']['markers']['get'](_0x56441b))['filter'](_0x10d198=>_0x10d198);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4cf197=>{for(const _0x4cf96e of this['getMarkers']())_0x4cf197['removeMarker'](_0x4cf96e);}),this['_markerNames']['clear']();}['removeMarker'](_0x565652){this['_model']['change'](_0x38b695=>{_0x38b695['removeMarker'](_0x565652);}),this['_markerNames']['delete'](_0x565652);}['addRange'](_0xff05ec){const _0x4a1a62='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4a1a62),this['_model']['change'](_0x578870=>{_0x578870['addMarker'](_0x4a1a62,{'range':_0xff05ec,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x31c757){for(const _0xcd7aa4 of this['getRanges']())if(_0xcd7aa4['isIntersecting'](_0x31c757))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1b9af8=>_0x1b9af8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x16abd1,_0x494f2b)=>[..._0x16abd1,..._0x494f2b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2faa97=this['getRanges']();if(0x1!=_0x2faa97['length'])return null;const _0x3f135d=_0x2faa97[0x0],_0x4f5737=_0x3f135d['start']['nodeAfter'],_0x316a93=_0x3f135d['end']['nodeBefore'];return _0x4f5737 instanceof _0x35966e?_0x4f5737!=_0x316a93?null:_0x4f5737: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 _0xb276cb=[];let _0x258ccd=this['head'];for(;_0x258ccd;)_0xb276cb['push'](_0x258ccd),_0x258ccd=_0x258ccd['next'];return _0xb276cb;}['setAttribute'](_0xd38015,_0x2b2f69){const _0x7d143e=_0x597c63(this['attributes']);_0x3c5465(_0x7d143e,_0xd38015,_0x2b2f69),_0x2cb703(_0x7d143e,this['attributes'])||(this['attributes']=_0x7d143e,this['_onAttributesChange'](_0x7d143e));}['removeAttribute'](_0xfef8ce){const _0x2d557e=_0x597c63(this['attributes']);_0x532bc6(_0x2d557e,_0xfef8ce),_0x2cb703(_0x2d557e,this['attributes'])||(this['attributes']=_0x2d557e,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 _0x2cd620()['substr'](0x1,0x5);}}function o(_0x1de9d1,_0x247288,_0x44c7c3){const _0xcd7e49=_0x1de9d1['t'],t=_0x1de9d1['t'];switch(_0x247288){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',_0x44c7c3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x44c7c3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x44c7c3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x44c7c3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x44c7c3);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',_0x44c7c3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x44c7c3);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',_0x44c7c3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x44c7c3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x44c7c3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x44c7c3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x44c7c3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x44c7c3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x44c7c3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x44c7c3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x44c7c3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x44c7c3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x44c7c3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x44c7c3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x44c7c3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x44c7c3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x44c7c3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x44c7c3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x44c7c3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x44c7c3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x44c7c3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x44c7c3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x44c7c3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x44c7c3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x44c7c3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x44c7c3);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'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x44c7c3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x44c7c3);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 _0xcd7e49({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x44c7c3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xcd7e49({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x44c7c3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x44c7c3);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'},_0x44c7c3);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'},_0x44c7c3);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'},_0x44c7c3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x247288;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x375f19,_0x16acef){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x375f19,this['_locale']=_0x16acef;}['getDescriptions'](_0x53a925){const _0x57e492=[],_0x51bbb6=new Set(),_0x317526=new Set();for(let _0x6298c1=0x0;_0x6298c1<_0x53a925['length'];_0x6298c1++){const _0x3aab2f=_0x53a925[_0x6298c1];if(!_0x3aab2f['isInContent'])continue;const _0x4c43a6=this['_handleCustomCallbackDescription'](_0x3aab2f);if(_0x4c43a6){if(null!=_0x3aab2f['subType']){if(_0x51bbb6['has'](_0x3aab2f['subType']))continue;_0x51bbb6['add'](_0x3aab2f['subType']);}_0x57e492['push'](_0x4c43a6);}else{if('attribute'!=_0x3aab2f['type'])'insertion'!=_0x3aab2f['type']&&'deletion'!=_0x3aab2f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x57e492,_0x3aab2f,_0x53a925[_0x6298c1+0x1]);else{const _0x4b55c2=_0x3aab2f['data']['key'];if(_0x317526['has'](_0x4b55c2))continue;_0x317526['add'](_0x3aab2f['data']['key']),_0x4b55c2==m?this['_handleRenameSuggestionDescription'](_0x57e492,_0x3aab2f):this['_handleAttributeSuggestionDescription'](_0x57e492,_0x3aab2f);}}}return this['_resolveDescriptionItems'](_0x57e492);}['registerDescriptionCallback'](_0x2ae9f3){this['_customCallbacks']['push'](_0x2ae9f3);}['registerElementLabel'](_0x22be5f,_0xc30f80,_0x3debf0=_0x4368d6['normal']){'function'==typeof _0x22be5f?_0x6a8e58(this['_itemLabelsCallbacks'],{'matchingCallback':_0x22be5f,'label':_0xc30f80,'priority':_0x3debf0}):this['_itemLabels']['set'](_0x22be5f,_0xc30f80);}['registerAttributeLabel'](_0xa4dbc7,_0xd493c6){this['_attributeLabels']['set'](_0xa4dbc7,_0xd493c6);}['getItemLabel'](_0x31505f,_0x56a92b=0x1){let _0x589c45;for(const _0x12fbf1 of this['_itemLabelsCallbacks'])if(_0x12fbf1['matchingCallback'](_0x31505f)){_0x589c45=_0x12fbf1['label'];break;}return _0x589c45||(_0x589c45=this['_itemLabels']['get'](_0x31505f['name'])),_0x589c45?_0x589c45(_0x56a92b):0x1!==_0x56a92b?_0x56a92b+'\x20'+_0x31505f['name']+'s':''+_0x31505f['name'];}['_addDescriptionItems'](_0x8cae64,_0xcde22a){const _0x434737=_0xcde22a['getFirstRange']()['getWalker'](),_0x311530='insertion'==_0xcde22a['type']?'add':'remove';for(const _0x398de6 of _0x434737){const _0x1cc0f0=_0x398de6['item'],_0x2efaa1=_0x8cae64[_0x8cae64['length']-0x1];if(_0x1cc0f0['is']('$textProxy'))_0x2efaa1&&_0x2efaa1['type']['indexOf']('Container')>-0x1&&_0x8cae64['pop'](),_0x2efaa1&&'text'==_0x2efaa1['type']?_0x2efaa1[_0x311530]+=_0x1cc0f0['data']:_0x8cae64['push']({'type':'text','add':'add'==_0x311530?_0x1cc0f0['data']:'','remove':'remove'==_0x311530?_0x1cc0f0['data']:''});else{if(this['_schema']['isObject'](_0x1cc0f0)){const _0x4d2fd6=_0x1cc0f0;if(_0x2efaa1&&_0x2efaa1['type']['indexOf']('Container')>-0x1&&_0x8cae64['pop'](),'elementEnd'==_0x398de6['type'])continue;_0x2efaa1&&_0x2efaa1['type']==_0x311530+'Object'&&_0x2efaa1['element']['name']==_0x4d2fd6['name']?_0x2efaa1['quantity']++:_0x8cae64['push']({'type':_0x311530+'Object','element':_0x4d2fd6,'quantity':0x1}),_0x434737['skip'](_0x1f7ea1=>!('elementEnd'==_0x1f7ea1['type']&&_0x1f7ea1['item']==_0x1cc0f0));}else{if(this['_schema']['checkChild'](_0x1cc0f0,'$text')||_0x1cc0f0['is']('element','softBreak')){const _0x3ed680=_0x1cc0f0;if('add'==_0x311530&&'elementStart'==_0x398de6['type']||'remove'==_0x311530&&'elementEnd'==_0x398de6['type'])continue;if(_0x2efaa1&&-0x1==_0x2efaa1['type']['indexOf']('Container')){'text'==_0x2efaa1['type']&&(_0x2efaa1[_0x311530]+='\x0a');continue;}let _0x4b877e;if(_0x4b877e='add'==_0x311530?_0x3ed680['nextSibling']&&!this['_schema']['isObject'](_0x3ed680['nextSibling'])?_0x3ed680['nextSibling']:null:_0x3ed680['previousSibling']&&!this['_schema']['isObject'](_0x3ed680['previousSibling'])?_0x3ed680['previousSibling']:null,_0x3ed680['isEmpty']||_0x4b877e&&_0x4b877e['isEmpty']){const _0xd4223f=_0x4b877e&&_0x4b877e['isEmpty']?_0x4b877e:_0x3ed680;_0x2efaa1&&_0x2efaa1['type']==_0x311530+'EmptyContainer'&&_0x2efaa1['element']['name']==_0xd4223f['name']?_0x2efaa1['quantity']++:_0x8cae64['push']({'type':_0x311530+'EmptyContainer','element':_0xd4223f,'quantity':0x1});}else _0x8cae64['push']({'type':_0x311530+'Container','element':_0x3ed680});}}}}}['_resolveDescriptionItems'](_0x1134ef){const _0x21ff4d=this['_locale'],_0x23ec94=[],_0x399ab0=[],_0x1e36f2=[];for(const _0x3846f4 of _0x1134ef)switch(_0x3846f4['type']){case'text':if(_0x3846f4['add']=_0x3846f4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3846f4['remove']=_0x3846f4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3846f4['add']&&''!=_0x3846f4['remove']){_0x23ec94['push']({'type':'replace','content':o(_0x21ff4d,'REPLACE_TEXT',['\x22'+_0x3846f4['remove']+'\x22','\x22'+_0x3846f4['add']+'\x22'])});continue;}if(null!=_0x3846f4['add']['match'](/^ +$/)){_0x23ec94['push']({'type':'insertion','content':o(_0x21ff4d,'*Insert:*\x20%0',o(_0x21ff4d,'ELEMENT_SPACE',_0x3846f4['add']['length']))});continue;}if(null!=_0x3846f4['remove']['match'](/^ +$/)){_0x23ec94['push']({'type':'deletion','content':o(_0x21ff4d,'*Remove:*\x20%0',o(_0x21ff4d,'ELEMENT_SPACE',_0x3846f4['remove']['length']))});continue;}if(''!=_0x3846f4['add']){_0x23ec94['push']({'type':'insertion','content':o(_0x21ff4d,'*Insert:*\x20%0','\x22'+_0x3846f4['add']+'\x22')});continue;}_0x23ec94['push']({'type':'deletion','content':o(_0x21ff4d,'*Remove:*\x20%0','\x22'+_0x3846f4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x23ec94['push']({'type':'insertion','content':o(_0x21ff4d,'*Insert:*\x20%0',this['getItemLabel'](_0x3846f4['element'],_0x3846f4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x23ec94['push']({'type':'deletion','content':o(_0x21ff4d,'*Remove:*\x20%0',this['getItemLabel'](_0x3846f4['element'],_0x3846f4['quantity']))});continue;case'addContainer':_0x23ec94['push']({'type':'insertion','content':o(_0x21ff4d,'*Split:*\x20%0',this['getItemLabel'](_0x3846f4['element'],_0x3846f4['quantity']))});continue;case'removeContainer':_0x23ec94['push']({'type':'deletion','content':o(_0x21ff4d,'*Merge:*\x20%0',this['getItemLabel'](_0x3846f4['element'],_0x3846f4['quantity']))});continue;case'addFormat':_0x399ab0['push'](_0x3846f4['key']);continue;case'removeFormat':_0x1e36f2['push'](_0x3846f4['key']);continue;default:_0x23ec94['push'](_0x3846f4);}if(_0x399ab0['length']){const _0x4aa2fd=_0x399ab0['map'](_0x37c919=>this['_attributeLabels']['has'](_0x37c919)?this['_attributeLabels']['get'](_0x37c919):_0x37c919)['join'](',\x20');_0x23ec94['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4aa2fd)});}if(_0x1e36f2['length']){const _0xac5958=_0x1e36f2['map'](_0x4662bd=>this['_attributeLabels']['has'](_0x4662bd)?this['_attributeLabels']['get'](_0x4662bd):_0x4662bd)['join'](',\x20');_0x23ec94['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xac5958)});}return _0x23ec94;}['_handleCustomCallbackDescription'](_0x5e6c5c){for(const _0xe2c589 of this['_customCallbacks']){const _0x3b9628=_0xe2c589(_0x5e6c5c);if(_0x3b9628&&'type'in _0x3b9628)return _0x3b9628;}}['_handleAttributeSuggestionDescription'](_0x4decc7,_0x46161e){const _0x48d0f5=_0x46161e['data'],_0x33974c=void 0x0===_0x48d0f5['newValue']?'removeFormat':'addFormat';_0x4decc7['push']({'type':_0x33974c,'key':_0x48d0f5['key']});}['_handleRenameSuggestionDescription'](_0xfe95b4,_0x43ba1f){_0xfe95b4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x43ba1f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x112db4,_0x1ad483,_0x5ae806){if(this['_addDescriptionItems'](_0x112db4,_0x1ad483),_0x5ae806&&_0x5ae806['getFirstRange']()&&!_0x1ad483['getFirstRange']()['end']['isEqual'](_0x5ae806['getFirstRange']()['start'])){const _0x21185e=_0x112db4[_0x112db4['length']-0x1],_0x5da10a='insertion'==_0x1ad483['type']?'add':'remove';_0x21185e&&'text'==_0x21185e['type']&&(_0x21185e[_0x5da10a]+='\x0a');}}}class U extends _0x32720e{['afterInit'](){const _0x424b07=this['editor'],_0x51a309=_0x424b07['plugins']['get']('TrackChangesEditing');_0x424b07['commands']['get']('showAIAssistant')&&_0x51a309['enableCommand']('showAIAssistant');}}class V extends _0x32720e{['afterInit'](){const _0x37f295=this['editor'],_0x404570=_0x37f295['locale'];if(!_0x37f295['plugins']['has']('AlignmentEditing'))return;const _0x1c1a11=_0x37f295['plugins']['get']('TrackChangesEditing');_0x1c1a11['enableDefaultAttributesIntegration']('alignment'),_0x1c1a11['registerBlockAttribute']('alignment'),_0x1c1a11['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x404570,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2654ba=this['editor'],_0x379601=_0x2654ba['locale'];_0x2654ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10c496=>{if('formatBlock'!=_0x10c496['type'])return;const {data:_0x181a48}=_0x10c496;if(_0x181a48&&'alignment'==_0x181a48['commandName']){const _0x5d8bd4=_0x181a48['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x379601,'*Format:*\x20%0',function(_0x5178f2){switch(_0x5178f2){case'left':return o(_0x379601,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x379601,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x379601,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x379601,'FORMAT_JUSTIFY_TEXT');}}(_0x5d8bd4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x32720e{['afterInit'](){const _0x31ed5b=this['editor'],_0x1c1e08=_0x31ed5b['plugins']['get']('TrackChangesEditing'),_0x5c813c=_0x31ed5b['locale'];for(const _0x3cec06 of ti){if(!_0x31ed5b['plugins']['has'](_0x3cec06))continue;const _0x83fe95=_0x3cec06['slice'](0x0,-0x7)['toLowerCase'](),_0xd387ff='FORMAT_'+_0x83fe95['toUpperCase']();_0x1c1e08['enableDefaultAttributesIntegration'](_0x83fe95),_0x1c1e08['registerInlineAttribute'](_0x83fe95),_0x1c1e08['descriptionFactory']['registerAttributeLabel'](_0x83fe95,o(_0x5c813c,_0xd387ff));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3eb2a0=this['editor'],_0x597600=_0x3eb2a0['locale'],_0x12c7cd=_0x3eb2a0['plugins']['get']('TrackChangesEditing');function _0x2e9b16(_0x1aac11,_0x505886){_0x12c7cd['descriptionFactory']['registerDescriptionCallback'](_0xf1c2be=>{if('formatInline'!=_0xf1c2be['type'])return;const {data:_0x2b429e}=_0xf1c2be;return _0x2b429e&&_0x2b429e['commandName']===_0x1aac11?_0x2b429e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x597600,'*Format:*\x20%0',_0x505886)}:{'type':'format','content':o(_0x597600,'*Remove\x20format:*\x20%0',_0x505886)}:void 0x0;});}_0x2e9b16('bold',o(_0x597600,'FORMAT_BOLD')),_0x2e9b16('italic',o(_0x597600,'FORMAT_ITALIC')),_0x2e9b16('underline',o(_0x597600,'FORMAT_UNDERLINE')),_0x2e9b16('code',o(_0x597600,'FORMAT_CODE')),_0x2e9b16('strikethrough',o(_0x597600,'FORMAT_STRIKETHROUGH')),_0x2e9b16('subscript',o(_0x597600,'FORMAT_SUBSCRIPT')),_0x2e9b16('superscript',o(_0x597600,'FORMAT_SUPERSCRIPT'));}}class F extends _0x32720e{['afterInit'](){const _0x5e0b29=this['editor'],_0x3eb320=_0x5e0b29['locale'];if(!_0x5e0b29['plugins']['has']('BlockQuoteEditing'))return;const _0x153ded=_0x5e0b29['plugins']['get']('TrackChangesEditing'),_0x5943e3=this['editor']['commands']['get']('blockQuote');_0x153ded['enableCommand']('blockQuote',(_0x112129,_0x32db20={})=>{const _0x4d876e=this['editor']['model']['document']['selection'],_0x40d4b1=_0x32db20&&void 0x0!==_0x32db20['forceValue']?_0x32db20['forceValue']:!_0x5943e3['value'];let _0x62d71c=[];if(_0x40d4b1){const _0x5ffe0=Array['from'](_0x4d876e['getSelectedBlocks']())['filter'](_0x2c620c=>oo(_0x2c620c)||function(_0x3bded4,_0x4be94d){const _0x5a2e53=_0x4be94d['checkChild'](_0x3bded4['parent'],'blockQuote'),_0x24bab2=_0x4be94d['checkChild'](['$root','blockQuote'],_0x3bded4);return _0x5a2e53&&_0x24bab2;}(_0x2c620c,this['editor']['model']['schema']));_0x62d71c=to(_0x5ffe0,_0x5e0b29['model']);}else{const _0x12e98d=Array['from'](_0x4d876e['getSelectedBlocks']())['filter'](_0x1082f6=>oo(_0x1082f6));_0x62d71c=to(_0x12e98d,_0x5e0b29['model']);}_0x5e0b29['model']['change'](()=>{for(const _0x194f46 of _0x62d71c)_0x153ded['markBlockFormat'](_0x194f46,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x40d4b1}]});});}),_0x153ded['descriptionFactory']['registerDescriptionCallback'](_0x241261=>{const {data:_0x56fb0c}=_0x241261;if(_0x56fb0c&&'blockQuote'==_0x56fb0c['commandName']){const _0x5a6b9d=o(_0x3eb320,'ELEMENT_BLOCK_QUOTE');return _0x56fb0c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3eb320,'*Set\x20format:*\x20%0',_0x5a6b9d)}:{'type':'format','content':o(_0x3eb320,'*Remove\x20format:*\x20%0',_0x5a6b9d)};}});}}function oo(_0x257482){return'blockQuote'==_0x257482['parent']['name'];}class L extends _0x32720e{['afterInit'](){const _0x183951=this['editor'],_0x134daf=_0x183951['locale'],_0x52ca5d=_0x183951['plugins']['get']('TrackChangesEditing');_0x183951['plugins']['has']('BookmarkEditing')&&(_0x52ca5d['enableCommand']('insertBookmark'),_0x52ca5d['enableDefaultAttributesIntegration']('updateBookmark'),_0x52ca5d['registerBlockAttribute']('bookmarkId'),_0x52ca5d['descriptionFactory']['registerDescriptionCallback'](_0x57e986=>{if('insertion'!=_0x57e986['type']&&'deletion'!=_0x57e986['type']&&'attribute'!=_0x57e986['type'])return;const _0x51ab10=_0x57e986['getContainedElement']();if(null==_0x51ab10)return;if(!_0x51ab10['is']('element','bookmark'))return;const _0x12c50a=_0x51ab10['getAttribute']('bookmarkId');if('insertion'==_0x57e986['type'])return{'type':'insertion','content':o(_0x134daf,'*Insert:*\x20%0','\x22'+_0x12c50a+'\x22\x20'+o(_0x134daf,'ELEMENT_BOOKMARK'))};if('deletion'==_0x57e986['type'])return{'type':'deletion','content':o(_0x134daf,'*Remove:*\x20%0','\x22'+_0x12c50a+'\x22\x20'+o(_0x134daf,'ELEMENT_BOOKMARK'))};const {data:_0x5a18de}=_0x57e986;if(!_0x5a18de||'bookmarkId'!=_0x5a18de['key'])return;return{'type':'format','content':o(_0x134daf,'*Set\x20bookmark:*\x20%0','\x22'+_0x5a18de['newValue']+'\x22')};}));}}class J extends _0x32720e{['afterInit'](){const _0x48adb9=this['editor'];_0x48adb9['plugins']['has']('CaseChange')&&(_0x48adb9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x48adb9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x48adb9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x32720e{['afterInit'](){const _0x26c4d1=this['editor'];_0x26c4d1['commands']['get']('ckbox')&&_0x26c4d1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x32720e{['afterInit'](){const _0x52a7bb=this['editor'];if(!_0x52a7bb['plugins']['has']('CodeBlock'))return;const _0x24071c=_0x52a7bb['plugins']['get']('TrackChangesEditing'),_0x3fe9f7=_0x52a7bb['locale'],_0x3c860e=_0x52a7bb['config']['get']('codeBlock')['languages'],_0x1b0d8c=_0x52a7bb['commands']['get']('codeBlock');_0x24071c['enableCommand']('indentCodeBlock'),_0x24071c['enableCommand']('outdentCodeBlock'),_0x24071c['enableCommand']('codeBlock',(_0x4a5415,_0x1ffbc9={})=>{const _0xa9aded=_0x52a7bb['model'],_0xd0974e=_0x52a7bb['model']['document']['selection'],_0x2e14be=_0x1ffbc9&&void 0x0!==_0x1ffbc9['forceValue']?_0x1ffbc9['forceValue']:!_0x1b0d8c['value'];let _0x233e88;_0x1ffbc9['language']||(_0x1ffbc9['language']=_0x3c860e[0x0]['language']),_0x233e88=_0x2e14be?Array['from'](_0xd0974e['getSelectedBlocks']())['filter'](_0x343345=>eo(_0x343345)||function(_0x10dea1,_0x4bcee2){if(_0x10dea1['is']('rootElement')||_0x4bcee2['isLimit'](_0x10dea1))return!0x1;return _0x4bcee2['checkChild'](_0x10dea1['parent'],'codeBlock');}(_0x343345,_0xa9aded['schema'])):Array['from'](_0xd0974e['getSelectedBlocks']())['filter'](_0x425cec=>eo(_0x425cec));const _0xd43fc1=to(_0x233e88,_0xa9aded);_0xa9aded['change'](()=>{for(const _0x2537ae of _0xd43fc1)_0x24071c['markBlockFormat'](_0x2537ae,{'commandName':'codeBlock','commandParams':[{..._0x1ffbc9,'forceValue':_0x2e14be}],'formatGroupId':'blockName'});});}),(_0x24071c['descriptionFactory']['registerElementLabel']('codeBlock',_0x4039a8=>o(_0x3fe9f7,'ELEMENT_CODE_BLOCK',_0x4039a8)),_0x24071c['descriptionFactory']['registerDescriptionCallback'](_0x245fde=>{if('formatBlock'!=_0x245fde['type'])return;const _0x577f05=_0x3fe9f7['t'],{data:_0x10917e}=_0x245fde;if(!_0x10917e||'codeBlock'!=_0x10917e['commandName'])return;const _0x10e835=_0x10917e['commandParams'][0x0]['language'],_0x139316=_0x577f05(_0x3c860e['find'](_0x25910d=>_0x25910d['language']===_0x10e835)['label'])['toLowerCase']();return _0x10917e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fe9f7,'*Set\x20format:*\x20%0',o(_0x3fe9f7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x139316+')')}:{'type':'format','content':o(_0x3fe9f7,'*Remove\x20format:*\x20%0',o(_0x3fe9f7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4d3bcc){return'codeBlock'==_0x4d3bcc['name'];}class z extends _0x32720e{['afterInit'](){const _0xb21e36=this['editor'];if(!_0xb21e36['plugins']['has']('CommentsEditing'))return;_0xb21e36['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3c8604,_0x46d9af,_0x41ed44){const _0x182d6f=[];for(const _0x43bed5 of _0x46d9af['getItems']())_0x43bed5['hasAttribute'](_0x3c8604)&&_0x182d6f['push'](_0x41ed44['createRangeOn'](_0x43bed5));return _0x182d6f;}function De(_0x3aafca,_0x4760a9,{showActiveMarker:_0x1692c4=!0x0}={}){const _0x1662f4=_0x3aafca['plugins']['get']('TrackChangesEditing');return(_0x4752a6,_0x132a40,_0x3c12a5)=>{if(!_0x3c12a5['consumable']['test'](_0x132a40['markerRange'],_0x4752a6['name']))return;const _0x58d65c=_0x132a40['markerRange']['getWalker'](),_0x5c1904=_0x132a40['markerRange']['start'],_0x3b439d=_0x3aafca['model']['schema'];let _0x17c446=null,_0x176047=null,_0x550106=!0x1,_0x2064db=!0x1;for(const _0x409165 of _0x58d65c){const _0x3f9f2f=_0x409165['item'];_0x550106=_0x550106||_0x3b439d['isContent'](_0x3f9f2f);const _0x1ef5ce=_0x3c12a5['mapper']['toViewElement'](_0x3f9f2f);if(_0x1ef5ce&&_0x1ef5ce['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x409165['type']&&(_0x3b439d['isBlock'](_0x3f9f2f)&&!_0x3b439d['isLimit'](_0x3f9f2f)&&(_0x3f9f2f['nextSibling']||_0x5c1904['isAtEnd']?_0x17c446&&_0x17c446['parent']==_0x3f9f2f||(_0x17c446=_0x3f9f2f,_0x57a645(_0x409165['previousPosition']),_0x2064db=!0x0):_0x176047=_0x176047||_0x409165['previousPosition']));}function _0x57a645(_0x202b3f){const {authorId:_0x10ea53}=_0x1662f4['_splitMarkerName'](_0x132a40['markerName']),_0x42d7c4=_0x3c12a5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4760a9,'data-author-id':_0x10ea53}),_0x1ca2d9=_0x3c12a5['mapper']['toViewPosition'](_0x202b3f);_0x1692c4&&_0x1662f4['activeMarkers']['includes'](_0x132a40['markerName'])&&_0x3c12a5['writer']['addClass']('ck-suggestion-marker--active',_0x42d7c4),_0x3c12a5['writer']['insert'](_0x1ca2d9,_0x42d7c4),_0x3c12a5['mapper']['bindElementToMarker'](_0x42d7c4,_0x132a40['markerName']);}_0x550106||_0x2064db||!_0x176047||_0x57a645(_0x176047);};}class K extends _0x32720e{static get['requires'](){return[_0x1c8203];}['init'](){const _0x484153=this['editor'],_0x1ab7c4=_0x484153['plugins']['get']('TrackChangesEditing');_0x1ab7c4['enableCommand']('delete');const _0xf5d41d=_0x484153['commands']['get']('deleteForward');_0x1ab7c4['enableCommand']('deleteForward',(_0x21acb2,_0x170091={})=>{const _0x4e8401=_0x484153['model']['createSelection'](_0x484153['model']['document']['selection']);_0x4e8401['isCollapsed']&&_0x484153['model']['modifySelection'](_0x4e8401,{'direction':'forward','unit':_0x170091['unit']});const _0x3cb653=_0x4e8401['getFirstRange'](),_0x30bbc7=_0x114c36['fromRange'](_0x3cb653);let _0x41e05f;_0x21acb2(_0x170091),_0x41e05f='$graveyard'==_0x30bbc7['root']['rootName']?_0x484153['model']['createRange'](_0x3cb653['start']):_0x484153['model']['createRange'](_0x30bbc7['start'],_0x30bbc7['end']),_0x30bbc7['detach'](),_0x484153['model']['enqueueChange'](_0xf5d41d['buffer']['batch'],_0x5b6ca2=>{_0xf5d41d['buffer']['lock'](),_0x5b6ca2['setSelection'](_0x5b6ca2['createRange'](_0x41e05f['end'])),_0xf5d41d['buffer']['unlock']();});}),_0x484153['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x484153,'merge'),{'priority':'high'}),_0x484153['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x162f8c,_0x22a24a,_0x2c275a)=>{_0x2c275a['options']['showSuggestionHighlights']&&De(_0x484153,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x162f8c,_0x22a24a,_0x2c275a);},{'priority':'high'}),_0x484153['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x29ab26,_0x45789f,_0x486023)=>{const _0x18ee9b=_0x486023['mapper']['markerNameToElements'](_0x45789f['markerName']);if(_0x18ee9b){for(const _0x3915f3 of _0x18ee9b)_0x3915f3['is']('uiElement')&&(_0x486023['mapper']['unbindElementFromMarkerName'](_0x3915f3,_0x45789f['markerName']),_0x486023['writer']['remove'](_0x3915f3));}},{'priority':'high'});}}class W extends _0x32720e{['afterInit'](){const _0x5925e8=this['editor'];if(!_0x5925e8['plugins']['has']('ListEditing'))return;const _0x1dabe1=_0x5925e8['locale'],_0x133edc=_0x5925e8['plugins']['get']('TrackChangesEditing'),_0x15a5fb=_0x5925e8['plugins']['has']('TodoListEditing'),_0x457492=!!_0x5925e8['config']['get']('list.multiBlock');function _0x79b00(_0x337ba8){return{'type':'format','content':''+o(_0x1dabe1,'*Set\x20format:*\x20%0',_0x337ba8)};}function _0x3c7fad(_0x35e4c5){return{'type':'format','content':''+o(_0x1dabe1,'*Remove\x20format:*\x20%0',_0x35e4c5)};}_0x133edc['enableDefaultAttributesIntegration']('numberedList'),_0x133edc['enableDefaultAttributesIntegration']('bulletedList'),_0x133edc['enableDefaultAttributesIntegration']('customNumberedList'),_0x133edc['enableDefaultAttributesIntegration']('customBulletedList'),_0x133edc['enableDefaultAttributesIntegration']('indentList'),_0x133edc['enableDefaultAttributesIntegration']('outdentList'),_0x133edc['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x133edc['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x133edc['registerBlockAttribute']('listItemId'),_0x133edc['registerBlockAttribute']('listType'),_0x133edc['registerBlockAttribute']('listIndent'),_0x457492&&(_0x133edc['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x133edc['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x15a5fb&&(_0x133edc['enableDefaultAttributesIntegration']('todoList'),_0x133edc['enableDefaultAttributesIntegration']('checkTodoList'),_0x133edc['registerBlockAttribute']('todoListChecked'),_0x133edc['descriptionFactory']['registerDescriptionCallback'](_0x325ecf=>{const {data:_0x1246e9}=_0x325ecf;if(_0x1246e9&&'todoListChecked'==_0x1246e9['key'])return{'type':'format','content':_0x1246e9['newValue']?o(_0x1dabe1,'*Check\x20item*'):o(_0x1dabe1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x248493=>{if(_0x248493['batch']['isUndo'])return!0x1;let _0x4d3b1a=!0x1;const _0x387b36=_0x133edc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45df98=>'todoListChecked'===_0x133edc['_getAttributeKey'](_0x45df98));for(const _0x3a1e4f of _0x387b36){'todo'!=_0x3a1e4f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x133edc['_findSuggestions'](_0x3a1e4f['getFirstRange'](),'attribute')['find'](_0x18a0b8=>'listType'===_0x133edc['_getAttributeKey'](_0x18a0b8['suggestion']))||(_0x248493['removeMarker'](_0x3a1e4f['getFirstMarker']()),_0x4d3b1a=!0x0));}return _0x4d3b1a;})),_0x133edc['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1dabe1,'FORMAT_INDENT'));const _0x115f0d={'type':'format','content':''};_0x133edc['descriptionFactory']['registerDescriptionCallback'](_0x4cb4d3=>{const {data:_0xc6aca6}=_0x4cb4d3;if(!_0xc6aca6||'listType'!=_0xc6aca6['key'])return;let _0x210794=_0x4cb4d3['head'];for(;_0x210794;){if(_0x210794['data']&&(('listStyle'==_0x210794['data']['key']||'listMarkerStyle'==_0x210794['data']['key'])&&(_0x210794['data']['newValue']&&'default'!=_0x210794['data']['newValue']||'default'!=_0x210794['data']['oldValue']&&!_0xc6aca6['newValue'])||!_0x457492&&_0x210794['data']['key']==m))return _0x115f0d;_0x210794=_0x210794['next'];}if(null==_0xc6aca6['newValue'])switch(_0xc6aca6['oldValue']){case'bulleted':return _0x3c7fad(o(_0x1dabe1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c7fad(o(_0x1dabe1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c7fad(o(_0x1dabe1,'ELEMENT_TODO_LIST'));}switch(_0xc6aca6['newValue']){case'bulleted':return _0x79b00(o(_0x1dabe1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x79b00(o(_0x1dabe1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x79b00(o(_0x1dabe1,'ELEMENT_TODO_LIST'));}}),_0x133edc['descriptionFactory']['registerDescriptionCallback'](_0x3dc98f=>{const {data:_0xce830e}=_0x3dc98f;if(_0xce830e&&'listIndent'==_0xce830e['key'])return null==_0xce830e['newValue']||null==_0xce830e['oldValue']&&0x0==_0xce830e['newValue']?_0x115f0d:void 0x0;}),_0x133edc['descriptionFactory']['registerDescriptionCallback'](_0x1dea90=>{if('attribute'!=_0x1dea90['type'])return;const {data:_0x259443}=_0x1dea90;if(!_0x259443||'listItemId'!=_0x259443['key'])return;const _0x51e980=Te(_0x1dea90);return'newValue'==_0x51e980?{'type':'format','content':o(_0x1dabe1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x51e980?{'type':'format','content':o(_0x1dabe1,'*Split:*\x20list\x20item')}:_0x115f0d;}),_0x5925e8['model']['document']['registerPostFixer'](_0x44e5d3=>this['listItemIdFixer'](_0x44e5d3)),_0x5925e8['model']['document']['registerPostFixer'](_0x5eb459=>this['noTrackChangesFixer'](_0x5eb459)),_0x5925e8['model']['document']['on']('change:data',(_0x4e0e5d,_0x1959f2)=>{if(_0x1959f2['isUndo']||!_0x1959f2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x35a2f3){if(_0x35a2f3['batch']['isUndo']||!_0x35a2f3['batch']['isLocal'])return!0x1;let _0x399fa1=!0x1;const _0x522876=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49e142=>_0x49e142['data']&&'listItemId'==_0x49e142['data']['key'])['filter'](_0x549963=>_0x549963['data']['newValue']&&_0x549963['data']['oldValue']);for(const _0x1be129 of _0x522876)Te(_0x1be129)||(_0x35a2f3['removeMarker'](_0x1be129['getFirstMarker']()),_0x399fa1=!0x0);return _0x399fa1;}['noTrackChangesFixer'](_0x529310){if(_0x529310['batch']['isUndo']||!_0x529310['batch']['isLocal'])return!0x1;const _0x5b5aea=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5b5aea['trackChangesCommand']['value'])return!0x1;let _0x1db6ad=!0x1;const _0xfe78bc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2288a5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x7f3b4a=>'attribute'==_0x7f3b4a['type'])['filter'](_0x6fe85d=>_0xfe78bc['includes'](_0x6fe85d['attributeKey']));if(0x0==_0x2288a5['length'])return _0x1db6ad;for(const _0x3ceb84 of _0x2288a5){const _0x44bbe6=_0x5b5aea['_findSuggestions'](_0x3ceb84['range'],'attribute')['filter'](_0x1e403f=>!_0x1e403f['meta']['isNextTo'])['map'](_0x3611cf=>_0x3611cf['suggestion'])['filter'](_0x3a6ab8=>{const _0xf1236=_0x5b5aea['_getAttributeKey'](_0x3a6ab8);return _0xfe78bc['includes'](_0xf1236);});if(_0x44bbe6['length']){for(const _0x232808 of _0x44bbe6)_0x529310['removeMarker'](_0x232808['getFirstMarker']());_0x1db6ad=!0x0;}}return _0x1db6ad;}['assureChains'](){const _0x5bc8de=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb39705=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x588de8;const _0x58957b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4b8091=>{if(_0x4b8091['data']['oldRange']||!_0x4b8091['data']['newRange'])return null;if(!_0x4b8091['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5f1d79}=_0x5bc8de['_splitMarkerName'](_0x4b8091['name']);if(!_0x5bc8de['hasSuggestion'](_0x5f1d79))return null;const _0x435e27=_0x5bc8de['getSuggestion'](_0x5f1d79);return _0xb39705['includes'](_0x435e27['data']['key']);})['map'](_0xf078e2=>{const {id:_0x17d103}=_0x5bc8de['_splitMarkerName'](_0xf078e2['name']),_0x5425d2=_0x5bc8de['getSuggestion'](_0x17d103);return _0x588de8=_0x5425d2['attributes']['groupId'],_0x5425d2['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x58957b['size'])return;const _0x190e19=_0x5bc8de['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36317b=>'attribute'==_0x36317b['type']&&_0x36317b['data']&&_0xb39705['includes'](_0x36317b['data']['key'])&&_0x36317b['attributes']['groupId']!=_0x588de8)['map'](_0x5eb7c7=>({'listItem':_0x5eb7c7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5eb7c7['attributes']['groupId']})),_0x2dd4d8=new Set();for(const {groupId:_0x18b4a5,listItem:_0x32cce8}of _0x190e19)_0x58957b['has'](_0x32cce8)&&_0x2dd4d8['add'](_0x18b4a5);for(const _0x2c16fc of _0x5bc8de['getSuggestions']())_0x2dd4d8['has'](_0x2c16fc['attributes']['groupId'])&&_0x2c16fc['setAttribute']('groupId',_0x588de8);}['_supportLegacySuggestions'](){const _0x3ea0cf=this['editor'],_0x8189d4=_0x3ea0cf['locale'],_0x4061ae=_0x3ea0cf['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4061ae['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1fed0b,_0x460499){const _0xa4ec83=[];for(let _0x3d491e of _0x1fed0b)_0x3d491e['start']['nodeAfter']===_0x3d491e['end']['parent']&&(_0x3d491e=_0x3ea0cf['model']['createRange'](_0x3ea0cf['model']['createPositionAt'](_0x3d491e['start']['nodeAfter'],0x0))),_0xa4ec83['push'](_0x3d491e);_0x3ea0cf['model']['change'](_0x2d776c=>{const _0x6d3712=_0x3ea0cf['model']['document']['selection'],_0x5be182=Array['from'](_0x6d3712['getRanges']())['map'](_0x577482=>_0x114c36['fromRange'](_0x577482));_0x2d776c['setSelection'](_0xa4ec83),_0x3ea0cf['commands']['get'](_0x460499['commandName'])['refresh'](),_0x460499['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3ea0cf['execute'](_0x460499['commandName'],..._0x460499['commandParams']),_0x2d776c['setSelection'](_0x5be182);for(const _0x8ee2fe of _0x5be182)_0x8ee2fe['detach']();});}),_0x4061ae['descriptionFactory']['registerElementLabel'](function(_0x5933bd){const _0x5225a1=!_0x3ea0cf['model']['schema']['isObject'](_0x5933bd),_0x22ee79=_0x5933bd['previousSibling'],_0x1a8399=_0x5933bd['nextSibling'],_0xb2221d=_0x5933bd['getAttribute']('listItemId'),_0x399951=!_0x22ee79||_0x22ee79['getAttribute']('listItemId')!==_0xb2221d,_0x1001a0=!_0x1a8399||_0x1a8399['getAttribute']('listItemId')!==_0xb2221d;return _0x5225a1&&Boolean(_0xb2221d)&&_0x399951&&_0x1001a0;},_0x412116=>o(_0x8189d4,'ELEMENT_LIST_ITEM',_0x412116));}['_registerLegacyDescription'](){const _0x24e3d8=this['editor'],_0x326752=_0x24e3d8['locale'];function _0x4d05bc(_0x227b16){const _0x17bf1d=_0x24e3d8['commands']['get']('bulletedList')['value'],_0x1919cc=_0x24e3d8['commands']['get']('numberedList')['value'];return'numberedList'===_0x227b16?_0x17bf1d:_0x1919cc;}_0x24e3d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x495302){if('formatBlock'!=_0x495302['type'])return;const {data:_0x1c2ff2}=_0x495302;if(!_0x1c2ff2)return;let _0x49f5be,_0x2f1c9b,_0x12d994,_0x3af161;switch(_0x1c2ff2['commandName']){case'bulletedList':_0x12d994=_0x1c2ff2['commandParams'][0x0]['forceValue'],_0x3af161=_0x4d05bc(_0x1c2ff2['commandName']),_0x49f5be=_0x12d994?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3af161&&_0x24e3d8['config']['get']('list.multiBlock')||(_0x49f5be='*Change\x20to:*\x20%0'),_0x2f1c9b={'type':'format','content':o(_0x326752,_0x49f5be,o(_0x326752,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x12d994=_0x1c2ff2['commandParams'][0x0]['forceValue'],_0x3af161=_0x4d05bc(_0x1c2ff2['commandName']),_0x49f5be=_0x12d994?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3af161&&_0x24e3d8['config']['get']('list.multiBlock')||(_0x49f5be='*Change\x20to:*\x20%0'),_0x2f1c9b={'type':'format','content':o(_0x326752,_0x49f5be,o(_0x326752,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x49f5be='*Indent:*\x20%0',_0x2f1c9b={'type':'format','content':o(_0x326752,_0x49f5be,o(_0x326752,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x49f5be=function(_0x16f503){const _0x573295=_0x16f503['getFirstRange']();let _0x1be105=_0x573295['start']['nodeAfter'];for(;_0x1be105&&_0x573295['containsItem'](_0x1be105);){if(_0x1be105['getAttribute']('listIndent')>0x0)return!0x1;_0x1be105=_0x1be105['nextSibling'];}return!0x0;}(_0x495302)?o(_0x326752,'*Format:*\x20remove\x20from\x20%0',o(_0x326752,function(_0x4a988d){return'ELEMENT_'+_0x4a988d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x495302))):o(_0x326752,'*Outdent:*\x20%0',o(_0x326752,'ELEMENT_LIST_ITEM')),_0x2f1c9b={'type':'format','content':_0x49f5be};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1c2ff2['multipleBlocks']&&(_0x49f5be='*Merge:*\x20%0',_0x2f1c9b={'type':'deletion','content':o(_0x326752,_0x49f5be,o(_0x326752,'ELEMENT_LIST_ITEM'))});}return _0x2f1c9b;});}}function Te(_0x15fa8d){let _0x5f11a8=_0x15fa8d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5f11a8;){const _0xa7017e=_0x5f11a8['getAttribute']('listItemId');if(!_0xa7017e)return!0x1;if(_0xa7017e==_0x15fa8d['data']['newValue'])return'newValue';if(_0xa7017e==_0x15fa8d['data']['oldValue'])return'oldValue';_0x5f11a8=_0x5f11a8['previousSibling'];}return!0x1;}class Se extends _0x32720e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x224ed4=this['editor']['config']['get']('list.properties'),_0x179c6c=this['editor']['plugins']['get']('TrackChangesEditing');_0x224ed4['styles']&&(_0x179c6c['enableDefaultAttributesIntegration']('listStyle'),_0x179c6c['registerBlockAttribute']('listStyle')),_0x224ed4['reversed']&&(_0x179c6c['enableDefaultAttributesIntegration']('listReversed'),_0x179c6c['registerBlockAttribute']('listReversed')),_0x224ed4['startIndex']&&(_0x179c6c['enableDefaultAttributesIntegration']('listStart'),_0x179c6c['registerBlockAttribute']('listStart'));const _0x47b8c1={'type':'format','content':''};_0x179c6c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4d63e9=this['editor']['locale'];_0x179c6c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4d63e9,'FORMAT_LIST_REVERSED')),_0x179c6c['descriptionFactory']['registerDescriptionCallback'](_0x14a7a1=>{const {data:_0x4d9996}=_0x14a7a1;if(_0x4d9996&&'listReversed'==_0x4d9996['key'])return null==_0x4d9996['newValue']||0x0==_0x4d9996['newValue']&&null==_0x4d9996['oldValue']?_0x47b8c1:void 0x0;}),_0x179c6c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4d63e9,'FORMAT_LIST_START')),_0x179c6c['descriptionFactory']['registerDescriptionCallback'](_0x12472f=>{const {data:_0x3bc47a}=_0x12472f;if(_0x3bc47a&&'listStart'==_0x3bc47a['key'])return null==_0x3bc47a['newValue']||0x1==_0x3bc47a['newValue']&&null==_0x3bc47a['oldValue']?_0x47b8c1:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x40de48=>{if(_0x40de48['batch']['isUndo'])return!0x1;let _0x540ffb=!0x1;const _0x2c75cd=_0x179c6c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x489f3f=>{const _0x4d2e9f=_0x179c6c['_getAttributeKey'](_0x489f3f);return'listStart'==_0x4d2e9f||'listReversed'==_0x4d2e9f;});for(const _0x11f68d of _0x2c75cd){const _0x23f5b9=_0x11f68d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x23f5b9||'customNumbered'==_0x23f5b9)continue;_0x179c6c['_findSuggestions'](_0x11f68d['getFirstRange'](),'attribute')['find'](_0x5dcd69=>'listType'==_0x179c6c['_getAttributeKey'](_0x5dcd69['suggestion']))||(_0x40de48['removeMarker'](_0x11f68d['getFirstMarker']()),_0x540ffb=!0x0);}return _0x540ffb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x27acbe){const _0x45d765=this['editor']['locale'],{data:_0x46127f}=_0x27acbe,_0x21aef4={'type':'format','content':''};if(!_0x46127f||'listStyle'!=_0x46127f['key'])return;if(!_0x46127f['oldValue'])return'default'==_0x46127f['newValue']?_0x21aef4:{'type':'format','content':''+o(_0x45d765,'*Set\x20format:*\x20%0',o(_0x45d765,this['_getTranslationKeyForListStyle'](_0x46127f['newValue'])))};if(!_0x46127f['newValue']){if('default'==_0x46127f['oldValue'])return _0x21aef4;let _0x5b0665=_0x27acbe['head'];for(;_0x5b0665;){if(_0x5b0665['data']&&'listType'==_0x5b0665['data']['key']&&_0x5b0665['data']['newValue'])return _0x21aef4;_0x5b0665=_0x5b0665['next'];}return{'type':'format','content':''+o(_0x45d765,'*Remove\x20format:*\x20%0',o(_0x45d765,this['_getTranslationKeyForListStyle'](_0x46127f['oldValue'])))};}if('default'!=_0x46127f['newValue'])return{'type':'format','content':''+o(_0x45d765,'*Set\x20format:*\x20%0',o(_0x45d765,this['_getTranslationKeyForListStyle'](_0x46127f['newValue'])))};let _0x51d5e4=_0x27acbe['head'];for(;_0x51d5e4;){if(_0x51d5e4['data']&&'listType'==_0x51d5e4['data']['key']&&_0x51d5e4['data']['newValue']&&_0x51d5e4['data']['oldValue'])return _0x21aef4;_0x51d5e4=_0x51d5e4['next'];}return{'type':'format','content':o(_0x45d765,'*Set\x20format:*\x20%0',o(_0x45d765,'ELEMENT_'+_0x27acbe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5440c5=this['editor'],_0x5a3e73=_0x5440c5['locale'];_0x5440c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19a624=>{if('formatBlock'!=_0x19a624['type'])return;const {data:_0x3be347}=_0x19a624;if(!_0x3be347)return;let _0x4c061a,_0x4fe95b;switch(_0x3be347['commandName']){case'listStyle':_0x4c061a='*Change\x20to:*\x20%0',_0x4fe95b={'type':'format','content':o(_0x5a3e73,_0x4c061a,o(_0x5a3e73,this['_getTranslationKeyForListStyle'](_0x3be347['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4c061a=_0x3be347['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4fe95b={'type':'format','content':o(_0x5a3e73,_0x4c061a)};break;case'listStart':_0x4c061a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4fe95b={'type':'format','content':o(_0x5a3e73,_0x4c061a,_0x3be347['commandParams'][0x0]['startIndex'])};}return _0x4fe95b;});}['_getTranslationKeyForListStyle'](_0x45b62a){return'ELEMENT_'+function(_0x539611){if(_e['includes'](_0x539611))return'bulleted';if(Re['includes'](_0x539611))return'numbered';return null;}(_0x45b62a)['toUpperCase']()+'_LIST_'+_0x45b62a['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x32720e{static get['requires'](){return[_0x21923b];}['init'](){const _0xd976b=this['editor'],_0x290db1=_0xd976b['plugins']['get']('TrackChangesEditing'),_0x5d61c4=_0xd976b['commands']['get']('enter');_0x290db1['enableCommand']('enter',()=>{_0xd976b['model']['change'](_0x20a4c6=>{const _0x3aaf82=_0xd976b['model']['document']['selection'],_0x4f2aa2=_0x3aaf82['getFirstPosition'](),_0x5ac519=_0x114c36['fromRange'](_0x3aaf82['getFirstRange']());if(_0x5d61c4['enterBlock'](_0x20a4c6)){const _0xefaa5=_0xd976b['model']['createPositionAt'](_0x4f2aa2['parent']['nextSibling'],0x0),_0x5ba3d5=_0x20a4c6['createRange'](_0x4f2aa2,_0xefaa5);_0x290db1['markInsertion'](_0x5ba3d5);}else _0x20a4c6['setSelection'](_0x20a4c6['createRange'](_0x5ac519['end']));_0x5ac519['detach'](),_0x5d61c4['fire']('afterExecute',{'writer':_0x20a4c6});});}),_0xd976b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xd976b,'split'),{'priority':'high'}),_0xd976b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x266410,_0x45b2e6,_0x2b07a1)=>{const _0x195322=_0x2b07a1['mapper']['markerNameToElements'](_0x45b2e6['markerName']);if(_0x195322){for(const _0x23c362 of _0x195322)_0x23c362['hasClass']('ck-suggestion-marker-split')&&(_0x2b07a1['mapper']['unbindElementFromMarkerName'](_0x23c362,_0x45b2e6['markerName']),_0x2b07a1['writer']['remove'](_0x23c362));}},{'priority':'high'}),_0xd976b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x29069b,_0x293567,_0x4dcd7b)=>{_0x4dcd7b['options']['showSuggestionHighlights']&&De(_0xd976b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x29069b,_0x293567,_0x4dcd7b);},{'priority':'high'});}}class Y extends _0x32720e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x87f39a=this['editor']['plugins']['get']('TrackChangesEditing');_0x87f39a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x87f39a['enableCommand']('findNext'),_0x87f39a['enableCommand']('findPrevious'),_0x87f39a['enableCommand']('replace'),_0x87f39a['enableCommand']('replaceAll');}['handleFindCommand'](_0x2eb909,_0x39fff3,_0x2a7005={}){const _0x1cd897=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2eb909(_0x429179=>{let _0x163607=('string'==typeof _0x39fff3?_0x1cd897['findByTextCallback'](_0x39fff3,_0x2a7005):_0x39fff3)(_0x429179);Array['isArray'](_0x163607)&&(_0x163607={'results':_0x163607,'searchText':'string'==typeof _0x39fff3?_0x39fff3:''});const _0x1b728a=_0x163607['results']['filter'](_0x459e0a=>!0x1===this['_isInDeletionRange'](_0x459e0a,_0x429179['item']));return{..._0x163607,'results':_0x1b728a};},_0x2a7005);}['_isInDeletionRange'](_0xcaae83,_0x15f75c){const _0x34baa7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15f75c,_0xcaae83['start']),this['editor']['model']['createPositionAt'](_0x15f75c,_0xcaae83['end']));for(const _0x6363b6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x34baa7['getIntersection'](_0x6363b6['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x32720e{['afterInit'](){const _0x5e39e7=this['editor']['locale'],_0x25263d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5067f0,commandName:_0x50ad3d}of ro)this['editor']['plugins']['has'](_0x5067f0)&&(_0x25263d['enableDefaultAttributesIntegration'](_0x50ad3d),_0x25263d['registerInlineAttribute'](_0x50ad3d));_0x25263d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5e39e7,'FORMAT_FONT_SIZE')),_0x25263d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5e39e7,'FORMAT_FONT_FAMILY')),_0x25263d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5e39e7,'FORMAT_FONT_COLOR')),_0x25263d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5e39e7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1471d7=this['editor'],_0x283dc0=_0x1471d7['locale'];_0x1471d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ff37f=>{const _0x3113b3=_0x283dc0['t'];if('formatInline'!=_0x2ff37f['type'])return;const {data:_0x3dff63}=_0x2ff37f;if(null!=_0x3dff63){if('fontSize'==_0x3dff63['commandName']){const _0x58acd7=_0x3dff63['commandParams'][0x0]['value'];if(_0x58acd7){const _0x3eda43=_0x3113b3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x219291=>_0x219291['model']==_0x58acd7)['title'])['toLowerCase']();return{'type':'format','content':o(_0x283dc0,'*Set\x20font\x20size:*\x20%0',_0x3eda43)};}return{'type':'format','content':o(_0x283dc0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3dff63['commandName']){const _0x3df386=_0x3dff63['commandParams'][0x0]['value'];return _0x3df386?{'type':'format','content':o(_0x283dc0,'*Set\x20font\x20family:*\x20%0',_0x3df386)}:{'type':'format','content':o(_0x283dc0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3dff63['commandName']){const _0x3092ec=_0x3dff63['commandParams'][0x0]['value'];if(_0x3092ec){const _0x2309b5=_0x53def7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x18e564=>_0x18e564['model']==_0x3092ec);let _0x1dd2c2=_0x3092ec,_0x1b42dc='';return _0x2309b5&&(_0x1dd2c2=_0x2309b5['label'],_0x1b42dc=_0x3113b3(_0x1dd2c2)['toLowerCase']()),{'type':'format','content':o(_0x283dc0,'*Set\x20font\x20color:*\x20%0',_0x1b42dc)['trim'](),'color':{'value':_0x3092ec,'title':_0x1b42dc||_0x1dd2c2}};}return{'type':'format','content':o(_0x283dc0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3dff63['commandName']){const _0x508cf4=_0x3dff63['commandParams'][0x0]['value'];if(_0x508cf4){const _0x3eca2b=_0x53def7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x41addb=>_0x41addb['model']==_0x508cf4);let _0x4fcc78=_0x508cf4,_0x279542='';return _0x3eca2b&&(_0x4fcc78=_0x3eca2b['label'],_0x279542=_0x3113b3(_0x4fcc78)['toLowerCase']()),{'type':'format','content':o(_0x283dc0,'*Set\x20font\x20background\x20color:*\x20%0',_0x279542)['trim'](),'color':{'value':_0x508cf4,'title':_0x279542||_0x4fcc78}};}return{'type':'format','content':o(_0x283dc0,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x32720e{['afterInit'](){const _0x1b122e=this['editor'],_0x410a2a=_0x1b122e['plugins']['get']('TrackChangesEditing'),_0x1b14e2=_0x1b122e['commands']['get']('copyFormat'),_0x35c5af=_0x1b122e['commands']['get']('pasteFormat');_0x1b14e2&&_0x35c5af&&(_0x410a2a['enableDefaultAttributesIntegration']('pasteFormat'),_0x410a2a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3b6006=this['editor'],_0x1342be=_0x3b6006['locale'];_0x3b6006['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xccbf34=>{if('formatBlock'!=_0xccbf34['type']&&'formatInline'!=_0xccbf34['type'])return;const {data:_0x509a55}=_0xccbf34;if(_0x509a55&&'pasteFormat'===_0x509a55['commandName']){const _0x423972=[],_0x5e5581=_0x509a55['commandParams'][0x0];for(const [_0x5e6980,_0x44ac03]of Object['entries'](_0x5e5581))_0x423972['push'](so(_0x3b6006,_0x5e6980,_0x44ac03));return _0x423972['length']?{'type':'format','content':o(_0x1342be,'*Set\x20format\x20to:*\x20%0',_0x423972['join'](',\x20'))}:{'type':'format','content':o(_0x1342be,'*Remove\x20all\x20formatting*')};}});}}function so(_0x12670f,_0x220945,_0x4d6aef){const _0x525bc0=_0x12670f['locale']['t'],_0x25c84e=_0x220945['split'](/(?=[A-Z])/)['join']('\x20'),_0x93b79=_0x525bc0(_0x25c84e['charAt'](0x0)['toUpperCase']()+_0x25c84e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4d6aef)return _0x93b79;if('fontColor'===_0x220945||'fontBackgroundColor'===_0x220945){const _0x1dd2d4=_0x53def7(_0x12670f['config']['get']('fontColor.colors'))['find'](_0x38b14d=>_0x38b14d['model']==_0x4d6aef);return _0x93b79+'\x20('+(_0x1dd2d4?_0x525bc0(_0x1dd2d4['label'])['toLowerCase']():_0x4d6aef)+')';}if('fontSize'===_0x220945&&isNaN(parseFloat(_0x4d6aef))){const _0xd42c49=_0x12670f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x12670f['config']['get']('fontSize.options'))['find'](_0x4fdfe3=>_0x4fdfe3['model']==_0x4d6aef);return _0x93b79+'\x20('+(_0xd42c49?_0x525bc0(_0xd42c49['title'])['toLowerCase']():_0x4d6aef)+')';}return _0x93b79+'\x20('+_0x4d6aef+')';}class nt extends _0x32720e{['_headingOptions'];['afterInit'](){const _0x12762c=this['editor'];if(!_0x12762c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x12762c['config']['get']('heading.options');const _0x35761a=_0x12762c['locale'],_0x5a3e71=_0x12762c['plugins']['get']('TrackChangesEditing');_0x5a3e71['enableDefaultAttributesIntegration']('heading');for(const _0x563ed4 of this['_headingOptions'])'paragraph'!=_0x563ed4['model']&&_0x5a3e71['descriptionFactory']['registerElementLabel'](_0x563ed4['model'],_0x17c9c2=>{const _0x195d2a=this['_getHeadingLevel'](_0x563ed4['model']);return null!==_0x195d2a?_0x56e85a(_0x17c9c2,_0x195d2a):_0x541823(_0x17c9c2,_0x563ed4['title']);});function _0x56e85a(_0x1cbd04,_0x1af83c){return o(_0x35761a,'ELEMENT_HEADING',[_0x1cbd04,_0x1af83c]);}function _0x541823(_0x263895,_0x476987){return o(_0x35761a,'ELEMENT_HEADING_CUSTOM',[_0x263895,_0x476987]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a3f38=this['editor'],_0x50cc1a=_0x5a3f38['locale'];function _0x39923c(_0x351844,_0xa0998){return o(_0x50cc1a,'ELEMENT_HEADING_CUSTOM',[_0x351844,_0xa0998]);}_0x5a3f38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31c8bf=>{if('formatBlock'!=_0x31c8bf['type'])return;const {data:_0x200c41}=_0x31c8bf;if(_0x200c41&&'heading'==_0x200c41['commandName']){const _0x21270c=_0x200c41['commandParams'][0x0]['value'],_0x57bf4c=this['_getHeadingLevel'](_0x21270c);if(null!==_0x57bf4c)return{'type':'format','content':o(_0x50cc1a,'*Change\x20to:*\x20%0',(_0x5a6e96=0x1,_0x26272f=_0x57bf4c,o(_0x50cc1a,'ELEMENT_HEADING',[_0x5a6e96,_0x26272f])))};const _0x434d5c=this['_headingOptions']['find'](_0xb9523d=>_0xb9523d['model']===_0x21270c)['title'];return{'type':'format','content':o(_0x50cc1a,'*Change\x20to:*\x20%0',_0x39923c(0x1,_0x434d5c))};}var _0x5a6e96,_0x26272f;});}['_getHeadingLevel'](_0x3995df){const _0x5aeec=_0x3995df['match'](/^heading(\d+)/);if(_0x5aeec)return _0x5aeec[0x1];const _0x4a4877=this['_headingOptions']?.['find'](_0x7a0bdc=>_0x7a0bdc['model']==_0x3995df);if(_0x4a4877&&_0x4a4877['view']){const _0xcf038f=_0x4a4877['view'],_0x176f32=(_0xcf038f['name']??_0xcf038f)['match'](/^h(\d+)/);if(_0x176f32)return _0x176f32[0x1];}return null;}}class it extends _0x32720e{['afterInit'](){const _0xe7dd09=this['editor'];if(!_0xe7dd09['plugins']['has']('HighlightEditing'))return;const _0x242379=_0xe7dd09['plugins']['get']('TrackChangesEditing'),_0x16933a=_0xe7dd09['locale'];_0x242379['enableDefaultAttributesIntegration']('highlight'),_0x242379['registerInlineAttribute']('highlight'),_0x242379['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x16933a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27a273=this['editor'],_0xf9a1d2=_0x27a273['locale'];_0x27a273['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19b7c7=>{if('formatInline'!=_0x19b7c7['type'])return;const {data:_0x22ab87}=_0x19b7c7;if(_0x22ab87&&'highlight'==_0x22ab87['commandName']){const _0x275a44=_0xf9a1d2['t'],_0x1837c8=_0x22ab87['commandParams'][0x0]['value'];if(_0x1837c8){const _0xf1729d=_0x27a273['config']['get']('highlight.options')['find'](_0x23c185=>_0x23c185['model']==_0x1837c8),_0x36cf87=_0x275a44(_0xf1729d['title'])['toLowerCase']();return{'type':'format','content':o(_0xf9a1d2,'*Set\x20highlight:*\x20%0',_0x36cf87),'color':{'value':_0xf1729d['color'],'title':_0xf1729d['title']}};}return{'type':'format','content':o(_0xf9a1d2,'*Remove\x20highlight*',o(_0xf9a1d2,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x32720e{['afterInit'](){const _0x40e2c6=this['editor'];if(!_0x40e2c6['plugins']['has']('HorizontalLineEditing'))return;_0x40e2c6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x155b92=_0x40e2c6['plugins']['get']('TrackChangesEditing'),_0x256224=_0x40e2c6['locale'];_0x155b92['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4d1e56=>o(_0x256224,'ELEMENT_HORIZONTAL_LINE',_0x4d1e56)),_0x40e2c6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x17b5d,{writer:_0x39300e,options:_0x5dd08d})=>{if(!_0x5dd08d['showSuggestionHighlights'])return null;const _0x3ce4ae=_0x39300e['createContainerElement']('div'),_0x352e3e=_0x39300e['createEmptyElement']('hr');return _0x39300e['addClass']('ck-horizontal-line',_0x3ce4ae),_0x39300e['insert'](_0x39300e['createPositionAt'](_0x3ce4ae,0x0),_0x352e3e),_0x3ce4ae;},'converterPriority':'high'});}}class st extends _0x32720e{['afterInit'](){const _0x408f0b=this['editor'];if(!_0x408f0b['plugins']['has']('HtmlEmbed'))return;const _0x4671ac=_0x408f0b['plugins']['get']('TrackChangesEditing'),_0x48f42=_0x408f0b['locale'];_0x4671ac['descriptionFactory']['registerElementLabel']('rawHtml',_0x44669c=>o(_0x48f42,'ELEMENT_HTML_EMBED',_0x44669c)),_0x4671ac['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4671ac['registerBlockAttribute']('value'),_0x4671ac['descriptionFactory']['registerDescriptionCallback'](_0x5eae0d=>{if('attribute'!=_0x5eae0d['type'])return;const {data:_0x59069d}=_0x5eae0d;if(_0x59069d&&'value'==_0x59069d['key']&&_0x5eae0d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x237241=o(_0x48f42,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x48f42,'*Change\x20%0\x20content*',_0x237241)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29daa9=this['editor'],_0x236124=_0x29daa9['locale'];_0x29daa9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5457c0=>{if('formatBlock'!=_0x5457c0['type'])return;const {data:_0x310b36}=_0x5457c0;if(_0x310b36&&'htmlEmbed'==_0x310b36['commandName']){const _0x3ec2e4=o(_0x236124,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x236124,'*Change\x20%0\x20content*',_0x3ec2e4)};}});}}class ot extends _0x32720e{['afterInit'](){const _0x30ec10=this['editor'];if(!_0x30ec10['plugins']['has']('ImageEditing'))return;const _0x4d9433=_0x30ec10['plugins']['get']('TrackChangesEditing'),_0x41e042=_0x30ec10['plugins']['get']('ImageUtils'),_0x3d798d=_0x30ec10['locale'];_0x4d9433['enableCommand']('insertImage'),_0x4d9433['descriptionFactory']['registerElementLabel']('imageBlock',_0x205e36=>o(_0x3d798d,'ELEMENT_IMAGE',_0x205e36)),_0x4d9433['descriptionFactory']['registerElementLabel']('imageInline',_0x49bea5=>o(_0x3d798d,'ELEMENT_INLINE_IMAGE',_0x49bea5)),_0x4d9433['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3d798d,'ELEMENT_CAPTION')),_0x30ec10['plugins']['has']('ImageUploadEditing')&&_0x4d9433['enableCommand']('uploadImage'),_0x30ec10['plugins']['has']('ImageBlockEditing')&&_0x30ec10['plugins']['has']('ImageInlineEditing')&&(_0x4d9433['enableCommand']('imageTypeInline',(_0x26d3ee,_0x51ccb6)=>{const _0x4764c1=_0x41e042['getClosestSelectedImageElement'](_0x30ec10['model']['document']['selection']);_0x30ec10['model']['change'](()=>{_0x4d9433['markBlockFormat'](_0x4764c1,{'commandName':'imageTypeInline','commandParams':[_0x51ccb6]},[],'convertBlockImageToInline');});}),_0x4d9433['enableCommand']('imageTypeBlock',(_0x4fb232,_0xdf62a6)=>{_0x30ec10['model']['change'](_0x16c9ed=>{let _0x355af1=_0x41e042['getClosestSelectedImageElement'](_0x30ec10['model']['document']['selection']),_0xc32198=_0x16c9ed['createRangeOn'](_0x355af1);const _0x318e04=_0xc42979['fromPosition'](_0xc32198['start'],'toPrevious'),_0x59bef0=_0xc42979['fromPosition'](_0xc32198['end'],'toNext');_0x4d9433['forceDefaultExecution'](()=>_0x4fb232(_0xdf62a6)),_0x355af1=_0x41e042['getClosestSelectedImageElement'](_0x30ec10['model']['document']['selection']),_0xc32198=_0x16c9ed['createRangeOn'](_0x355af1);const _0x1f77ba=_0x16c9ed['createRange'](_0x318e04,_0x59bef0);_0x318e04['detach'](),_0x59bef0['detach'](),_0x4d9433['markBlockFormat'](_0x355af1,{'commandName':'imageTypeInline','commandParams':[_0xdf62a6]},[],'convertInlineImageToBlock'),_0x1f77ba['start']['isBefore'](_0xc32198['start'])&&_0x4d9433['markInsertion'](_0x16c9ed['createRange'](_0x1f77ba['start'],_0xc32198['start']),'convertInlineImageToBlock'),_0xc32198['end']['isBefore'](_0x1f77ba['end'])&&_0x4d9433['markInsertion'](_0x16c9ed['createRange'](_0xc32198['end'],_0x1f77ba['end']),'convertInlineImageToBlock');});}),_0x4d9433['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4d9433['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4d9433['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4d9433['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4d9433['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4d9433['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5139e3])=>{const _0x13f6ec=_0x4d9433['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x53ce9f=_0x5139e3['start'],_0x1773cb=_0x5139e3['end'];const _0x1f6feb=_0x30ec10['model']['schema']['getNearestSelectionRange'](_0x53ce9f,'backward'),_0x31be9c=_0x30ec10['model']['schema']['getNearestSelectionRange'](_0x1773cb,'forward');_0x1f6feb['isCollapsed']&&(_0x53ce9f=_0x1f6feb['start']),_0x31be9c['isCollapsed']&&(_0x1773cb=_0x31be9c['end']),_0x13f6ec([_0x30ec10['model']['createRange'](_0x53ce9f,_0x1773cb)]);}),_0x4d9433['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x13a3bc),_0x4d9433['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x13a3bc)),_0x30ec10['plugins']['has']('ImageCaptionEditing')&&(_0x4d9433['enableCommand']('toggleImageCaption',(_0x3aaf63,_0x18db87)=>{const _0x26e324=_0x30ec10['plugins']['get']('ImageCaptionUtils');let _0x4f6554=_0x41e042['getClosestSelectedImageElement'](_0x30ec10['model']['document']['selection']),_0x128e9b=_0x26e324['getCaptionFromImageModelElement'](_0x4f6554);_0x30ec10['model']['change'](()=>{if(_0x128e9b)return void _0x4d9433['markDeletion'](_0x30ec10['model']['createRangeOn'](_0x128e9b));const _0x293d1c=_0x41e042['isBlockImage'](_0x4f6554);_0x3aaf63(_0x18db87),_0x4f6554=_0x41e042['getClosestSelectedImageElement'](_0x30ec10['model']['document']['selection']),_0x128e9b=_0x26e324['getCaptionFromImageModelElement'](_0x4f6554),_0x4d9433['markInsertion'](_0x30ec10['model']['createRangeOn'](_0x128e9b),_0x293d1c?null:'imageCaption');});}),_0x4d9433['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x13a3bc));const _0x3f725a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x392423(_0xad580f,_0x4be5d2){const _0x5345fa=_0x3f725a['findIndex'](({type:_0x3e5b80,subType:_0x49ec7d})=>_0xad580f['type']==_0x3e5b80&&_0xad580f['subType']==_0x49ec7d),_0x2c5dde=_0x3f725a['findIndex'](({type:_0xbc1951,subType:_0x1f797a})=>_0x4be5d2['type']==_0xbc1951&&_0x4be5d2['subType']==_0x1f797a);if(_0x5345fa<0x0||_0x2c5dde<0x0)return!0x1;const _0x4dbcea=_0xad580f['getFirstRange'](),_0x5ca1fc=_0x4be5d2['getFirstRange']();if((0x0==_0x5345fa||0x1==_0x5345fa)&&0x2==_0x2c5dde&&_0x4dbcea['isIntersecting'](_0x5ca1fc))return!0x0;if(0x2==_0x5345fa&&0x3==_0x2c5dde){const _0x31da8f=_0x4d9433['_findSuggestions'](_0x4dbcea,'insertion')['filter'](({suggestion:_0x37b921,meta:_0x22380d})=>_0x22380d['isOwn']&&'convertInlineImageToBlock'==_0x37b921['subType']);if(_0x31da8f['length']>0x1&&_0x5ca1fc['end']['isEqual'](_0x4dbcea['start']))return!0x0;if(0x1==_0x31da8f['length']&&(_0x4dbcea['start']['isEqual'](_0x5ca1fc['end'])||_0x4dbcea['end']['isEqual'](_0x5ca1fc['start'])))return!0x0;}if(0x3==_0x5345fa&&0x3==_0x2c5dde&&_0x4dbcea['start']['isBefore'](_0x5ca1fc['start'])){const _0x5ec6ac=_0x4dbcea['end']['nodeAfter'],_0x287209=_0x5ca1fc['start']['nodeBefore'];return _0x41e042['isBlockImage'](_0x5ec6ac)&&_0x5ec6ac===_0x287209;}return!0x1;}function _0x13a3bc(_0x8d7168,_0x69db72){return _0x392423(_0x8d7168,_0x69db72)?[_0x8d7168,_0x69db72]:_0x392423(_0x69db72,_0x8d7168)?[_0x69db72,_0x8d7168]:null;}_0x30ec10['plugins']['has']('ImageResize')&&(_0x4d9433['enableDefaultAttributesIntegration']('resizeImage'),_0x4d9433['registerBlockAttribute']('resizedWidth'),_0x4d9433['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3d798d,'FORMAT_IMAGE_SIZE'))),_0x30ec10['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4d9433['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4d9433['registerBlockAttribute']('alt')),_0x30ec10['plugins']['has']('PictureEditing')&&(_0x4d9433['registerBlockAttribute']('sources'),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0x56c1c5=>{if('attribute'!=_0x56c1c5['type'])return;const {data:_0xd734eb}=_0x56c1c5;return _0xd734eb&&'sources'==_0xd734eb['key']?{'type':'format','content':''}:void 0x0;})),_0x30ec10['plugins']['has']('ImageSizeAttributes')&&(_0x4d9433['registerBlockAttribute']('width'),_0x4d9433['registerBlockAttribute']('height'),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0xb64c9b=>{if('attribute'!=_0xb64c9b['type'])return;const {data:_0x140391}=_0xb64c9b;return!_0x140391||'width'!=_0x140391['key']&&'height'!=_0x140391['key']?void 0x0:{'type':'format','content':''};})),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0x304843=>{if(!!_0x3f725a['find'](({type:_0x1d559e,subType:_0x5c6c7a})=>_0x304843['type']==_0x1d559e&&_0x304843['subType']==_0x5c6c7a))return _0x304843['previous']?{}:void 0x0;}),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0x52b26b=>{if('insertion'==_0x52b26b['type']||'deletion'==_0x52b26b['type']){const _0x5fb62b=_0x52b26b['getContainedElement']();if(_0x5fb62b&&_0x5fb62b['is']('element','caption'))return{'type':'insertion'==_0x52b26b['type']?'addObject':'removeObject','element':_0x5fb62b,'quantity':0x1};}}),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0x2fd61e=>'formatBlock'==_0x2fd61e['type']&&'convertInlineImageToBlock'==_0x2fd61e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2fd61e['type']&&'convertBlockImageToInline'==_0x2fd61e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0x3cd17e=>{if('attribute'!=_0x3cd17e['type'])return;const {data:_0x4ec753}=_0x3cd17e;if(!_0x4ec753||'alt'!=_0x4ec753['key'])return;const _0x892414=_0x4ec753['newValue'];return _0x892414?{'type':'format','content':o(_0x3d798d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x892414+'\x22')}:{'type':'format','content':o(_0x3d798d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1de4e3=this['editor'],_0x57cbe5=_0x1de4e3['locale'];_0x1de4e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cd554=>{if('formatBlock'!=_0x1cd554['type']&&'formatInline'!=_0x1cd554['type'])return;const {data:_0x20fac7}=_0x1cd554;if(_0x20fac7){if('imageTextAlternative'==_0x20fac7['commandName']){const _0x132e28=_0x20fac7['commandParams'][0x0]['newValue'];return _0x132e28?{'type':'format','content':o(_0x57cbe5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x132e28+'\x22')}:{'type':'format','content':o(_0x57cbe5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x20fac7['commandName']){const _0x416321=_0x20fac7['commandParams'][0x0]['width'];return _0x416321?{'type':'format','content':o(_0x57cbe5,'*Set\x20image\x20width:*\x20%0',_0x416321)}:{'type':'format','content':o(_0x57cbe5,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x32720e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x474473=this['editor']['locale'],_0x2f7122=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f7122['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2f7122['registerBlockAttribute']('src'),_0x2f7122['descriptionFactory']['registerDescriptionCallback'](_0x117f2f=>{if('attribute'!=_0x117f2f['type'])return;const {data:_0x1e23b5}=_0x117f2f;return _0x1e23b5&&'src'==_0x1e23b5['key']?_0x1e23b5['newValue']&&_0x1e23b5['oldValue']?{'type':'format','content':o(_0x474473,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xde2c4a=this['editor']['plugins']['get']('TrackChangesEditing');_0xde2c4a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xde2c4a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xde2c4a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xde2c4a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x391caf=this['editor'],_0xec0599=_0x391caf['locale'];_0x391caf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a9a5f=>{if('formatBlock'!=_0x3a9a5f['type']&&'formatInline'!=_0x3a9a5f['type'])return;const {data:_0x417e08}=_0x3a9a5f;if(!_0x417e08||'replaceImageSource'!=_0x417e08['commandName'])return;return{'type':'format','content':o(_0xec0599,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x32720e{['afterInit'](){const _0x54d9a4=this['editor'];if(!_0x54d9a4['plugins']['has']('ImageStyleEditing'))return;const _0x50bddb=_0x54d9a4['plugins']['get']('TrackChangesEditing'),_0x1e04d1=_0x54d9a4['plugins']['get']('ImageUtils'),_0x4fcf8e={};_0x50bddb['enableCommand']('imageStyle',(_0x51cb3e,_0x498543)=>{const _0xbd3364=_0x54d9a4['plugins']['get']('Users')['me'],_0x2b0da8=_0x54d9a4['commands']['get']('imageStyle');let _0x53570e=_0x1e04d1['getClosestSelectedImageElement'](_0x54d9a4['model']['document']['selection']),_0x46cfc6=_0x54d9a4['model']['createRangeOn'](_0x53570e),_0x412283=_0x2b0da8['value'];if(_0x412283==_0x498543['value'])return;const _0x55da89={'commandName':'imageStyle','commandParams':[_0x498543],'formatGroupId':_0x2cd620()};_0x54d9a4['model']['change'](()=>{if(_0x50bddb['getSuggestions']()['filter'](_0x29ad0c=>_0x29ad0c['isInContent']&&_0xbd3364==_0x29ad0c['author']&&('formatBlock'==_0x29ad0c['type']||'formatInline'==_0x29ad0c['type'])&&('imageStylePreApply'==_0x29ad0c['subType']||'imageStylePostApply'==_0x29ad0c['subType'])&&_0x29ad0c['getFirstRange']()['isEqual'](_0x46cfc6))['forEach'](_0x58f704=>_0x50bddb['discardSuggestion'](_0x58f704['head'])),_0x53570e=_0x1e04d1['getClosestSelectedImageElement'](_0x54d9a4['model']['document']['selection']),_0x46cfc6=_0x54d9a4['model']['createRangeOn'](_0x53570e),_0x2b0da8['refresh'](),_0x54d9a4['commands']['get']('imageTypeInline')['refresh'](),_0x54d9a4['commands']['get']('imageTypeBlock')['refresh'](),_0x412283=_0x2b0da8['value'],_0x412283!=_0x498543['value'])return _0x1e04d1['isInlineImage'](_0x53570e)&&_0x2b0da8['shouldConvertImageType'](_0x498543['value'],_0x53570e)?(_0x51cb3e({..._0x498543,'setImageSizes':!0x1}),_0x53570e=_0x1e04d1['getClosestSelectedImageElement'](_0x54d9a4['model']['document']['selection']),void _0x50bddb['markBlockFormat'](_0x53570e,{..._0x55da89,'commandReversedParams':[{'value':_0x412283||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1e04d1['isBlockImage'](_0x53570e)?_0x50bddb['markBlockFormat'](_0x53570e,_0x55da89,[],'imageStylePostApply'):_0x50bddb['markInlineFormat'](_0x46cfc6,_0x55da89,'imageStylePostApply'));});});for(const _0x818f31 of _0x54d9a4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4fcf8e[_0x818f31['name']]=_0x818f31['title']['toLowerCase']();_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3731c5])=>{_0x1e04d1['setImageNaturalSizeAttributes'](_0x3731c5['getContainedElement']());}),_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x19c429,_0xefcf11)=>{_0x50bddb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x19c429,{'commandName':_0xefcf11['commandName'],'commandParams':_0xefcf11['commandReversedParams']});}),_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1bb10a,_0x22ad1c){if(_0x301d7b(_0x1bb10a,_0x22ad1c))return[_0x1bb10a,_0x22ad1c];if(_0x301d7b(_0x22ad1c,_0x1bb10a))return[_0x22ad1c,_0x1bb10a];return null;});const _0xf6af=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x301d7b(_0xbdb91f,_0x271092){const _0x4027ce=_0xf6af['findIndex'](({type:_0x23205b,subType:_0x27964c})=>_0xbdb91f['type']==_0x23205b&&_0xbdb91f['subType']==_0x27964c),_0x42f34b=_0xf6af['findIndex'](({type:_0x39ad70,subType:_0x452843})=>_0x271092['type']==_0x39ad70&&_0x271092['subType']==_0x452843);if(_0x4027ce<0x0||_0x42f34b<0x0)return!0x1;const _0x410536=_0xbdb91f['getFirstRange'](),_0x1e8f63=_0x271092['getFirstRange']();if((0x0==_0x4027ce||0x1==_0x4027ce)&&0x2==_0x42f34b&&_0x410536['isIntersecting'](_0x1e8f63))return!0x0;if(0x2==_0x4027ce&&0x3==_0x42f34b){const _0x8a6166=_0x50bddb['_findSuggestions'](_0x410536,'insertion')['filter'](({suggestion:_0x53f0a9,meta:_0x319735})=>_0x319735['isOwn']&&'convertInlineImageToBlock'==_0x53f0a9['subType']);if(_0x8a6166['length']>0x1&&_0x1e8f63['end']['isEqual'](_0x410536['start']))return!0x0;if(0x1==_0x8a6166['length']&&(_0x410536['start']['isEqual'](_0x1e8f63['end'])||_0x410536['end']['isEqual'](_0x1e8f63['start'])))return!0x0;}if(0x3==_0x4027ce&&0x3==_0x42f34b&&_0x410536['start']['isBefore'](_0x1e8f63['start'])){const _0x347f8e=_0x410536['end']['nodeAfter'],_0x29ae14=_0x1e8f63['start']['nodeBefore'];return _0x1e04d1['isBlockImage'](_0x347f8e)&&_0x347f8e===_0x29ae14;}return!0x1;}_0x54d9a4['model']['document']['registerPostFixer'](()=>{let _0x1f67d1=!0x1;const _0x300ff7=Array['from'](_0x54d9a4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f1f90,data:_0x3ac912}of _0x300ff7){const {group:_0x2f1a08,type:_0x3d527e,subType:_0x4f8b5f,id:_0xffa7c7}=_0x50bddb['_splitMarkerName'](_0x4f1f90);if('suggestion'==_0x2f1a08&&_0x50bddb['hasSuggestion'](_0xffa7c7)){if('formatBlock'==_0x3d527e&&('imageStylePreApply'==_0x4f8b5f||'imageStylePostApply'==_0x4f8b5f)){const _0x4d86a8=_0x50bddb['getSuggestion'](_0xffa7c7);if(_0x3ac912['newRange']){const _0xd85a69=_0x4d86a8['getFirstRange']()['getContainedElement']();if(_0x1e04d1['isBlockImage'](_0xd85a69))continue;_0x50bddb['discardSuggestion'](_0x4d86a8),_0x1f67d1=!0x0;}}if('insertion'==_0x3d527e&&'imageCaption'==_0x4f8b5f&&!_0x3ac912['newRange']){const _0x442d17=_0x50bddb['getSuggestion'](_0xffa7c7);_0x442d17['next']&&_0x442d17['next']['isInContent']&&(_0x50bddb['discardSuggestion'](_0x442d17['next']),_0x1f67d1=!0x0);}}}return _0x1f67d1;}),this['_registerLegacyDescription'](_0x4fcf8e);}['_registerLegacyDescription'](_0x25617b){const _0x538de4=this['editor'],_0x3ce70d=_0x538de4['locale'];_0x538de4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeec2c7=>{if('formatBlock'!=_0xeec2c7['type']&&'formatInline'!=_0xeec2c7['type'])return;const {data:_0x3e4f66}=_0xeec2c7;if(!_0x3e4f66||'imageStyle'!=_0x3e4f66['commandName'])return;const _0x316162=_0x3e4f66['commandParams'][0x0]['value'];return _0x268115('side'===_0x316162?o(_0x3ce70d,'FORMAT_SIDE_IMAGE'):_0x25617b[_0x316162]||_0x316162);function _0x268115(_0x40974d){return{'type':'format','content':o(_0x3ce70d,'*Format:*\x20%0',_0x40974d)};}});}}class ct extends _0x32720e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x43ee83){super(_0x43ee83),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5b1a89=this['editor'],_0x5b97fb=_0x5b1a89['commands']['get']('importWord'),_0x54eb72=_0x5b1a89['commands']['get']('trackChanges');_0x5b97fb&&(_0x5b97fb['on']('execute',(_0x1bf1a9,[,_0x3fc250])=>{this['_trackChangesValueDuringImport']=_0x54eb72['value'],_0x3fc250['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5b97fb,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5b97fb,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x54eb72['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5b1a89['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x56c47f,_0x3e7f63){const {suggestions:_0x57e234}=_0x3e7f63,_0xe2d7f=this['editor']['commands']['get']('trackChanges'),_0x5b4c4c=_0xe2d7f['value'];this['_trackChangesValueDuringImport']!==_0x5b4c4c&&(_0xe2d7f['execute'](),this['_trackChangesExecuted']=!0x0),_0x57e234&&_0x57e234['forEach'](({id:_0x24e95b,type:_0x10a0a0,author:_0x273e76,created_at:_0x416583})=>{const _0x500a13={'id':_0x24e95b,'type':_0x10a0a0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x273e76,'createdAt':_0x416583?new Date(_0x416583):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x500a13);});}}class ut extends _0x32720e{['afterInit'](){const _0x293a8f=this['editor'],_0x5b2f10=_0x293a8f['plugins']['get']('TrackChangesEditing');if(_0x293a8f['plugins']['has']('IndentEditing')&&(_0x5b2f10['enableCommand']('indent'),_0x5b2f10['enableCommand']('outdent')),_0x293a8f['plugins']['has']('IndentBlock')){for(const _0x2ec052 of['indentBlock','outdentBlock'])_0x5b2f10['enableDefaultAttributesIntegration'](_0x2ec052);}const _0x2696ca=_0x293a8f['locale'];_0x5b2f10['registerBlockAttribute']('blockIndent'),_0x5b2f10['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2696ca,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13d720=this['editor'],_0x14bb30=_0x13d720['locale'],_0x4bb920=_0x13d720['plugins']['get']('TrackChangesEditing');_0x4bb920['descriptionFactory']['registerDescriptionCallback'](_0x522be3=>{if('formatBlock'!=_0x522be3['type'])return;const {data:_0x2aa3aa}=_0x522be3;if(!_0x2aa3aa)return;if('indentBlock'!=_0x2aa3aa['commandName']&&'outdentBlock'!=_0x2aa3aa['commandName'])return;const _0x29184b=_0x522be3['getItems']()[0x0],_0x45a3b5=_0x4bb920['descriptionFactory']['getItemLabel'](_0x29184b);return'indentBlock'==_0x2aa3aa['commandName']?{'type':'format','content':o(_0x14bb30,'*Indent:*\x20%0',_0x45a3b5)}:'outdentBlock'==_0x2aa3aa['commandName']?{'type':'format','content':o(_0x14bb30,'*Outdent:*\x20%0',_0x45a3b5)}:void 0x0;});}}class ft extends _0x32720e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x32720e{['afterInit'](){const _0x4da7bd=this['editor'];if(!_0x4da7bd['plugins']['has']('LinkEditing'))return;const _0x4b5c95=_0x4da7bd['plugins']['get']('TrackChangesEditing'),_0x589ec7=_0x4da7bd['commands']['get']('link');_0x4b5c95['enableDefaultAttributesIntegration']('link'),_0x4b5c95['enableDefaultAttributesIntegration']('unlink'),_0x4b5c95['registerInlineAttribute']('linkHref');for(const _0x50e062 of _0x589ec7['manualDecorators'])_0x4b5c95['registerInlineAttribute'](_0x50e062['id']),_0x4b5c95['descriptionFactory']['registerAttributeLabel'](_0x50e062['id'],'link\x20('+_0x50e062['label']['toLowerCase']()+')');_0x4b5c95['descriptionFactory']['registerDescriptionCallback'](_0x128b1c=>{if('attribute'!=_0x128b1c['type'])return;const {data:_0x3069c6}=_0x128b1c;if(!_0x3069c6||'linkHref'!=_0x3069c6['key'])return;const _0x23e23c=_0x3069c6['newValue'],_0x3f2813=_0x4da7bd['locale'];return{'type':'format','content':null==_0x23e23c?o(_0x3f2813,'*Remove\x20link*'):o(_0x3f2813,'*Set\x20link:*\x20%0','\x22'+_0x23e23c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2262c7=this['editor'],_0x45da7e=_0x2262c7['locale'];_0x2262c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59cd59=>{if('formatInline'!=_0x59cd59['type'])return;const {data:_0x3a8d53}=_0x59cd59;if(_0x3a8d53){if('link'==_0x3a8d53['commandName']){const _0xe06ce1=_0x3a8d53['commandParams'][0x0];return{'type':'format','content':o(_0x45da7e,'*Set\x20link:*\x20%0','\x22'+_0xe06ce1+'\x22')};}return'unlink'==_0x3a8d53['commandName']?{'type':'format','content':o(_0x45da7e,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x32720e{['afterInit'](){const _0x13e995=this['editor'],_0x350805=_0x13e995['locale'];if(!_0x13e995['plugins']['has']('LegacyListEditing'))return;const _0x357bf4=_0x13e995['plugins']['get']('TrackChangesEditing'),_0x427e6e=_0x13e995['plugins']['has']('LegacyTodoListEditing');function _0x5a9f46(_0x2fcbf7){return()=>{const _0x2cb7a3=_0x13e995['model']['document']['selection'],_0x25314c=_0x13e995['commands']['get'](_0x2fcbf7);if(_0x25314c['value'])return void _0x13e995['execute']('paragraph',{});const _0x5b5f7d=_0x2fcbf7['slice'](0x0,-0x4),_0xf7f8b5=function(_0x26aaca,_0x56f6df,_0x5a4b44){let _0xb0041c=Array['from'](_0x26aaca)['filter'](_0x20e5e2=>function(_0xea0830,_0x4c9eee){return _0x4c9eee['checkChild'](_0xea0830['parent'],'listItem')&&!_0x4c9eee['isObject'](_0xea0830);}(_0x20e5e2,_0x5a4b44));_0xb0041c=_0xb0041c['filter'](_0x21e241=>!_0x21e241['is']('element','listItem')||_0x21e241['getAttribute']('listType')!=_0x56f6df);const _0x469574=new Set();for(const _0x2781a0 of _0xb0041c)_0x2781a0['is']('element','listItem')?_0x469574['add'](Le(_0x2781a0)):_0x469574['add'](_0x2781a0);return Array['from'](_0x469574);}(_0x2cb7a3['getSelectedBlocks'](),_0x5b5f7d,_0x13e995['model']['schema']);_0x13e995['model']['change'](()=>{for(const _0x51d4b1 of _0xf7f8b5)_0x357bf4['markBlockFormat'](_0x51d4b1,{'commandName':_0x2fcbf7,'commandParams':[{'forceValue':!_0x25314c['value']}],'formatGroupId':'blockName'},Ee(_0x51d4b1));});};}function _0x1dc343(_0x394e63){return()=>{const _0x41e37c=function(_0x51ced8){let _0x4e1487=Array['from'](_0x51ced8);const _0x3277c0=_0x4e1487['findIndex'](_0x303e1b=>'listItem'!=_0x303e1b['name']);return _0x3277c0>-0x1&&(_0x4e1487=_0x4e1487['slice'](0x0,_0x3277c0)),_0x4e1487;}(_0x13e995['model']['document']['selection']['getSelectedBlocks']()),_0x511a39=_0x13e995['model']['createRange'](_0x13e995['model']['createPositionAt'](_0x41e37c[0x0],'before'),_0x13e995['model']['createPositionAt'](_0x41e37c[_0x41e37c['length']-0x1],'end'));_0x13e995['model']['change'](()=>{_0x357bf4['markBlockFormat'](_0x511a39,{'commandName':_0x394e63,'commandParams':[],'formatGroupId':'listIndent'},function(_0x23da1f){const _0x37114e=new Set();for(const _0x38cbb6 of _0x23da1f){let _0x18363a=_0x38cbb6['nextSibling'];for(;_0x18363a&&_0x18363a['getAttribute']('listIndent')>_0x38cbb6['getAttribute']('listIndent');)_0x37114e['add'](_0x18363a),_0x18363a=_0x18363a['nextSibling'];}return Array['from'](_0x37114e);}(_0x41e37c));});};}_0x357bf4['enableCommand']('numberedList',_0x5a9f46('numberedList')),_0x357bf4['enableCommand']('bulletedList',_0x5a9f46('bulletedList')),_0x427e6e&&_0x357bf4['enableCommand']('todoList',_0x5a9f46('todoList')),_0x357bf4['enableCommand']('indentList',_0x1dc343('indentList')),_0x357bf4['enableCommand']('outdentList',_0x1dc343('outdentList')),_0x427e6e&&_0x357bf4['enableCommand']('checkTodoList',()=>{const _0x180f67=_0x13e995['commands']['get']('checkTodoList'),_0x48c025=Array['from'](_0x180f67['_selectedElements']);_0x48c025['filter'](_0x542e12=>_0x542e12['getAttribute']('todoListChecked')!=_0x180f67['value']),_0x13e995['model']['change'](()=>{for(const _0x2075cf of _0x48c025)_0x357bf4['markBlockFormat'](_0x2075cf,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x180f67['value']}]});});}),_0x357bf4['descriptionFactory']['registerElementLabel']('listItem',_0x47d9f7=>o(_0x350805,'ELEMENT_LIST_ITEM',_0x47d9f7)),_0x357bf4['descriptionFactory']['registerDescriptionCallback'](_0x5450a2=>{if('formatBlock'!=_0x5450a2['type']&&'formatInline'!=_0x5450a2['type'])return;const {data:_0x97be20}=_0x5450a2;if(_0x97be20){if('numberedList'==_0x97be20['commandName']||'bulletedList'==_0x97be20['commandName']||'todoList'==_0x97be20['commandName'])switch(_0x97be20['commandName']['replace']('List','')){case'bulleted':return _0x2547b7(o(_0x350805,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2547b7(o(_0x350805,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2547b7(o(_0x350805,'ELEMENT_TODO_LIST'));}if('indentList'==_0x97be20['commandName'])return{'type':'format','content':o(_0x350805,'*Indent:*\x20%0',o(_0x350805,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x97be20['commandName'])return{'type':'format','content':o(_0x350805,'*Outdent:*\x20%0',o(_0x350805,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x97be20['commandName'])return _0x97be20['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x350805,'*Check\x20item*')}:{'type':'format','content':o(_0x350805,'*Uncheck\x20item*')};}function _0x2547b7(_0x2ad3f7){return{'type':'format','content':o(_0x350805,'*Change\x20to:*\x20%0',_0x2ad3f7)};}});}}function Le(_0xe24235){const _0x46ba3a=_0xe24235['getAttribute']('listIndent');if(0x0==_0x46ba3a)return _0xe24235;let _0x473d3e=_0xe24235;for(;_0xe24235['previousSibling']&&_0xe24235['previousSibling']['is']('element','listItem');){const _0x11e1cb=_0xe24235['previousSibling']['getAttribute']('listIndent');if(_0x11e1cb==_0x46ba3a)_0x473d3e=_0xe24235['previousSibling'];else{if(_0x11e1cb<_0x46ba3a)break;}_0xe24235=_0xe24235['previousSibling'];}return _0x473d3e;}function Ee(_0x4f76b5){const _0x47b7d0=[];if(_0x4f76b5['is']('element','listItem')&&_0x4f76b5['getAttribute']('listIndent')>0x0){let _0x3b9bc8=_0x4f76b5['nextSibling'];for(;_0x3b9bc8&&'listItem'==_0x3b9bc8['name']&&_0x3b9bc8['getAttribute']('listIndent')==_0x4f76b5['getAttribute']('listIndent');)_0x47b7d0['push'](_0x3b9bc8),_0x3b9bc8=_0x3b9bc8['nextSibling'];}return _0x47b7d0;}class Q extends _0x32720e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1eb3b7=this['editor']['config']['get']('list.properties'),_0x109dba=this['editor']['plugins']['get']('TrackChangesEditing');_0x1eb3b7['styles']&&_0x109dba['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1eb3b7['reversed']&&_0x109dba['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1eb3b7['startIndex']&&_0x109dba['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x109dba['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x45aae5,_0x3e7205={}){const _0x308ac7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dec48=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x308ac7['markMultiRangeBlockFormat'](_0x5dec48,{'commandName':'listStyle','commandParams':[{'type':_0x3e7205['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x34c4e5,_0x1e6836={}){const _0x2069c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b1606=this['_getSuggestionBlocks'](_0x3a17fa=>_0x3a17fa['is']('element','listItem')&&'numbered'===_0x3a17fa['getAttribute']('listType'));if(_0x3b1606['length']<0x1)return;const _0x188dad=_0x3b1606['map'](_0x3a6c1e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a6c1e,'before'),this['editor']['model']['createPositionAt'](_0x3a6c1e,0x0)));this['editor']['model']['change'](()=>{_0x2069c6['markMultiRangeBlockFormat'](_0x188dad,{'commandName':'listReversed','commandParams':[{'reversed':_0x1e6836['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x587625,_0xa400a5={}){const _0x1002a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e2a5a=this['_getSuggestionBlocks'](_0x40f9c4=>_0x40f9c4['is']('element','listItem')&&'numbered'===_0x40f9c4['getAttribute']('listType'));if(_0x2e2a5a['length']<0x1)return;const _0x262c53=_0x2e2a5a['map'](_0x1201bf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1201bf,'before'),this['editor']['model']['createPositionAt'](_0x1201bf,0x0)));this['editor']['model']['change'](()=>{_0x1002a8['markMultiRangeBlockFormat'](_0x262c53,{'commandName':'listStart','commandParams':[{'startIndex':_0xa400a5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x41b2){if('formatBlock'!=_0x41b2['type']&&'formatInline'!=_0x41b2['type'])return;const _0x5a4616=this['editor']['locale'],{data:_0x541b54}=_0x41b2;if(!_0x541b54)return;let _0x757792,_0x5b9481;switch(_0x541b54['commandName']){case'listStyle':_0x757792='*Change\x20to:*\x20%0',_0x5b9481={'type':'format','content':o(_0x5a4616,_0x757792,o(_0x5a4616,this['_getTranslationKeyForListStyle'](_0x541b54['commandParams'][0x0]['type'])))};break;case'listReversed':_0x757792=_0x541b54['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5b9481={'type':'format','content':o(_0x5a4616,_0x757792)};break;case'listStart':_0x757792='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5b9481={'type':'format','content':o(_0x5a4616,_0x757792,_0x541b54['commandParams'][0x0]['startIndex'])};}return _0x5b9481;}['_getSuggestionBlocksForListStyle'](){const _0x1c2b35=this['editor']['plugins']['get']('LegacyListUtils');let _0x55717a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x55717a[0x0]?.['is']('element','listItem')&&_0x55717a['unshift'](..._0x1c2b35['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x55717a[_0x55717a['length']-0x1]?.['is']('element','listItem')&&_0x55717a['push'](..._0x1c2b35['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x55717a=[...new Set(_0x55717a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x55717a=_0x55717a['filter'](_0x472103=>_0x472103['is']('element','listItem'))),_0x55717a;}['_getSuggestionBlocks'](_0x1eab81){const _0x1b4aeb=this['editor']['plugins']['get']('LegacyListUtils');let _0x48affb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1eab81)['map'](_0x4718b6=>{const _0xf5b660=this['editor']['model']['createPositionAt'](_0x4718b6,0x0);return[..._0x1b4aeb['getSiblingNodes'](_0xf5b660,'backward'),..._0x1b4aeb['getSiblingNodes'](_0xf5b660,'forward')];})['flat']();return _0x48affb=[...new Set(_0x48affb)],_0x48affb;}['_getTranslationKeyForListStyle'](_0x4b6ae3){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4b6ae3)||'default')['toUpperCase']()+'_LIST_'+_0x4b6ae3['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x32720e{['afterInit'](){const _0x285776=this['editor'];if(!_0x285776['plugins']['has']('MediaEmbedEditing'))return;const _0xc7f391=_0x285776['plugins']['get']('TrackChangesEditing'),_0x2a4000=_0x285776['locale'];_0xc7f391['enableCommand']('mediaEmbed'),_0xc7f391['descriptionFactory']['registerElementLabel']('media',_0xc0df0a=>o(_0x2a4000,'ELEMENT_MEDIA',_0xc0df0a)),_0x285776['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5636f4,{writer:_0x4b43f1,options:_0x3d0f26})=>{if(_0x3d0f26['showSuggestionHighlights'])return _0x4b43f1['createEmptyElement']('div');},'converterPriority':'high'}),_0x285776['data']['downcastDispatcher']['on']('attribute:url:media',(_0xa359d7,_0x5a0c38,_0x37651f)=>{_0x37651f['options']['showSuggestionHighlights']&&_0xa359d7['stop']();},{'priority':'high'});}}class mt extends _0x32720e{['afterInit'](){const _0x3b6e5c=this['editor'];_0x3b6e5c['plugins']['has']('MentionEditing')&&_0x3b6e5c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x32720e{['afterInit'](){const _0x2cc82f=this['editor'];if(!_0x2cc82f['plugins']['has']('MergeFieldsEditing'))return;const _0x45faf5=_0x2cc82f['plugins']['get']('TrackChangesEditing'),_0x27ad17=_0x2cc82f['locale'];_0x45faf5['enableCommand']('insertMergeField'),_0x45faf5['enableCommand']('insertMergeFieldBlock'),_0x45faf5['enableCommand']('insertMergeFieldImage'),_0x45faf5['descriptionFactory']['registerElementLabel']('mergeField',_0x17efbb=>o(_0x27ad17,'ELEMENT_MERGE_FIELD',_0x17efbb)),_0x45faf5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x52f227=>o(_0x27ad17,'ELEMENT_MERGE_FIELD',_0x52f227)),_0x45faf5['descriptionFactory']['registerDescriptionCallback'](_0x2889ec=>{if('insertion'!=_0x2889ec['type']&&'deletion'!=_0x2889ec['type'])return;const _0x1e1e55=_0x2889ec['getContainedElement']();if(null==_0x1e1e55)return;const _0x11bfb4=_0x2cc82f['plugins']['get']('MergeFieldsEditing');let _0x17bd1f;switch(_0x11bfb4['getMergeFieldType'](_0x1e1e55)){case null:return;case'image':{const _0x8b0050=_0x11bfb4['unwrapAffixes'](_0x1e1e55['getAttribute']('src'));_0x17bd1f=_0x11bfb4['getLabel'](_0x8b0050)||_0x8b0050;break;}default:{const _0x53f658=_0x1e1e55['getAttribute']('id');_0x17bd1f=_0x11bfb4['getLabel'](_0x53f658)||_0x53f658;break;}}return'insertion'==_0x2889ec['type']?{'type':'insertion','content':o(_0x27ad17,'*Insert:*\x20%0','\x22'+_0x17bd1f+'\x22\x20'+o(_0x27ad17,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x27ad17,'*Remove:*\x20%0','\x22'+_0x17bd1f+'\x22\x20'+o(_0x27ad17,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x32720e{['afterInit'](){const _0x2479fc=this['editor'],_0x58edbd=_0x2479fc['plugins']['get']('TrackChangesEditing');_0x2479fc['plugins']['has']('MultiLevelList')&&(_0x58edbd['enableDefaultAttributesIntegration']('multiLevelList'),_0x58edbd['registerBlockAttribute']('listMarkerStyle'),_0x58edbd['descriptionFactory']['registerDescriptionCallback'](_0x18108d=>this['handleDescriptions'](_0x18108d)));}['handleDescriptions'](_0x183ef4){const _0x56969b=this['editor']['locale'],{data:_0x13f817}=_0x183ef4,_0x276ba8={'type':'format','content':''};if(_0x13f817&&'listMarkerStyle'==_0x13f817['key']){if(!_0x13f817['oldValue'])return{'type':'format','content':o(_0x56969b,'*Set\x20format:*\x20%0',o(_0x56969b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x13f817['newValue']+')'};if(!_0x13f817['newValue']){let _0x18c001=_0x183ef4['head'];for(;_0x18c001;){if(_0x18c001['data']&&'listType'==_0x18c001['data']['key']&&_0x18c001['data']['newValue'])return _0x276ba8;_0x18c001=_0x18c001['next'];}return{'type':'format','content':o(_0x56969b,'*Remove\x20format:*\x20%0',o(_0x56969b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x13f817['oldValue']+')'};}}}}class kt extends _0x32720e{['afterInit'](){const _0x472105=this['editor'];if(!_0x472105['plugins']['has']('PageBreakEditing'))return;_0x472105['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x50fe3f=_0x472105['plugins']['get']('TrackChangesEditing'),_0x5c0c61=_0x472105['locale'];_0x50fe3f['descriptionFactory']['registerElementLabel']('pageBreak',_0x29afb9=>o(_0x5c0c61,'ELEMENT_PAGE_BREAK',_0x29afb9));}}class bt extends _0x32720e{['afterInit'](){const _0x213ce9=this['editor'];if(!_0x213ce9['plugins']['has']('Paragraph'))return;const _0x5b4250=_0x213ce9['locale'],_0x5219d3=_0x213ce9['plugins']['get']('TrackChangesEditing');_0x5219d3['descriptionFactory']['registerElementLabel']('paragraph',_0x511f1c=>o(_0x5b4250,'ELEMENT_PARAGRAPH',_0x511f1c)),_0x5219d3['enableDefaultAttributesIntegration']('paragraph'),_0x5219d3['enableCommand']('insertParagraph'),_0x213ce9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x213ce9),{'priority':'highest'}),_0x213ce9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3d7b2b,_0x1f1fb3,_0x5ad99a)=>{_0x5ad99a['options']['showSuggestionHighlights']&&nr(_0x213ce9,{'showActiveMarker':!0x1})(_0x3d7b2b,_0x1f1fb3,_0x5ad99a);},{'priority':'highest'});const _0x1985ac=_0x5219d3['descriptionFactory'];_0x1985ac['registerDescriptionCallback'](_0x23d9fa=>{if('insertion'!==_0x23d9fa['type'])return;const {start:_0x182430,end:_0x4c5aff}=_0x23d9fa['getFirstRange']();if(!_0x182430['isTouching'](_0x4c5aff)||!_0x182430['nodeAfter'])return;const _0x2ddf1b=_0x213ce9['model']['schema'],_0x8aa38=_0x182430['nodeAfter'];return _0x2ddf1b['isBlock'](_0x8aa38)&&!_0x2ddf1b['isLimit'](_0x8aa38)&&_0x2ddf1b['checkChild'](_0x8aa38,'$text')?{'type':'insertion','content':o(_0x5b4250,'*Insert:*\x20%0',_0x1985ac['getItemLabel'](_0x8aa38,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38c597=this['editor'],_0x293b4c=_0x38c597['locale'];_0x38c597['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27dccf=>{if('formatBlock'!=_0x27dccf['type'])return;const {data:_0x3a9890}=_0x27dccf;return _0x3a9890&&'paragraph'==_0x3a9890['commandName']?{'type':'format','content':o(_0x293b4c,'*Change\x20to:*\x20%0',o(_0x293b4c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x53874d,{showActiveMarker:_0x53d2f6=!0x0}={}){return(_0xaaa622,_0x1d5aa5,_0x1e8122)=>{const _0x5dcf59=_0x53874d['plugins']['get']('TrackChangesEditing'),_0x302a96=_0x1d5aa5['markerRange']['start'],_0x5b2812=_0x1d5aa5['markerRange']['end'],_0x3e3342=_0x53874d['model']['schema'];if(!_0x302a96['isTouching'](_0x5b2812)||!_0x302a96['nodeAfter'])return;const _0x2ef15a=_0x302a96['nodeAfter'];if(_0x3e3342['isBlock'](_0x2ef15a)&&!_0x3e3342['isLimit'](_0x2ef15a)&&_0x3e3342['checkChild'](_0x2ef15a,'$text')){if(!_0x1e8122['consumable']['consume'](_0x1d5aa5['markerRange'],_0xaaa622['name']))return;const {authorId:_0x4dcbbe}=_0x5dcf59['_splitMarkerName'](_0x1d5aa5['markerName']),_0x5683ba=_0x1e8122['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4dcbbe}),_0x3ea6d2=_0x1e8122['mapper']['toViewPosition'](_0x5b2812);_0x53d2f6&&_0x5dcf59['activeMarkers']['includes'](_0x1d5aa5['markerName'])&&_0x1e8122['writer']['addClass']('ck-suggestion-marker--active',_0x5683ba),_0x1e8122['writer']['insert'](_0x3ea6d2,_0x5683ba),_0x1e8122['mapper']['bindElementToMarker'](_0x5683ba,_0x1d5aa5['markerName']);}};}class yt extends _0x32720e{['afterInit'](){const _0x485320=this['editor'];if(!_0x485320['plugins']['has']('RemoveFormatEditing'))return;_0x485320['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30de9b=this['editor'];_0x30de9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36bfce=>{if('formatBlock'!=_0x36bfce['type']&&'formatInline'!=_0x36bfce['type'])return;const {data:_0x392c6a}=_0x36bfce;return _0x392c6a&&'removeFormat'==_0x392c6a['commandName']?{'type':'format','content':o(_0x30de9b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x32720e{['afterInit'](){const _0x792c60=this['editor'];if(!_0x792c60['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x57aff1=_0x792c60['plugins']['get']('TrackChangesEditing');_0x57aff1['enableCommand']('goToPreviousRestrictedEditingException'),_0x57aff1['enableCommand']('goToNextRestrictedEditingException');const _0x29e94c=_0x792c60['plugins']['get']('RestrictedEditingModeEditing');_0x29e94c['enableCommand']('trackChanges'),_0x29e94c['enableCommand']('acceptSuggestion'),_0x29e94c['enableCommand']('discardSuggestion'),_0x29e94c['enableCommand']('acceptAllSuggestions'),_0x29e94c['enableCommand']('discardAllSuggestions'),_0x29e94c['enableCommand']('acceptSelectedSuggestions'),_0x29e94c['enableCommand']('discardSelectedSuggestions');}}class St extends _0x32720e{static get['requires'](){return[_0x31c31b];}['init'](){const _0x5e60b5=this['editor'],_0x137eb9=_0x5e60b5['plugins']['get']('TrackChangesEditing');_0x137eb9['enableCommand']('shiftEnter'),_0x5e60b5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5e60b5),{'priority':'high'}),_0x5e60b5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5e60b5),{'priority':'high'}),_0x5e60b5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29781d,_0x5cc4fe,_0x5a3aab)=>{_0x5a3aab['options']['showSuggestionHighlights']&&je(_0x5e60b5,{'showActiveMarker':!0x1})(_0x29781d,_0x5cc4fe,_0x5a3aab);}),_0x137eb9['descriptionFactory']['registerElementLabel']('softBreak',_0x360190=>o(_0x5e60b5['locale'],'ELEMENT_LINE_BREAK',_0x360190));}}function je(_0xc0b2e,{showActiveMarker:_0x131f71=!0x0}={}){return(_0x2d3100,_0x4590d5,_0xd1c4d2)=>{const _0x2ebd86=_0xc0b2e['plugins']['get']('TrackChangesEditing');if(!_0xd1c4d2['consumable']['test'](_0x4590d5['markerRange'],_0x2d3100['name']))return;const _0xc1983f=_0xc0b2e['model'];for(const _0x45cb84 of _0x4590d5['markerRange']['getItems']()){if(!_0x45cb84['is']('element','softBreak'))continue;const _0x372049='deletion'==_0x4590d5['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5dfe7b}=_0x2ebd86['_splitMarkerName'](_0x4590d5['markerName']),_0x52ed1e=_0xd1c4d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x372049,'data-author-id':_0x5dfe7b}),_0x4f5007=_0xd1c4d2['mapper']['toViewPosition'](_0xc1983f['createPositionBefore'](_0x45cb84));_0x131f71&&_0x2ebd86['activeMarkers']['includes'](_0x4590d5['markerName'])&&_0xd1c4d2['writer']['addClass']('ck-suggestion-marker--active',_0x52ed1e),_0xd1c4d2['writer']['insert'](_0x4f5007,_0x52ed1e),_0xd1c4d2['mapper']['bindElementToMarker'](_0x52ed1e,_0x4590d5['markerName']);}};}class At extends _0x32720e{['afterInit'](){const _0x1bf0bc=this['editor'],_0xea5099=_0x1bf0bc['model'],_0x1b5b55=_0x1bf0bc['locale'];if(!_0x1bf0bc['plugins']['has']('StandardEditingModeEditing'))return;const _0x2d48cd=_0x1bf0bc['plugins']['get']('TrackChangesEditing'),_0x84f92a='restrictedEditingException',_0x3d8db4=_0x1bf0bc['commands']['get'](_0x84f92a);_0x2d48cd['enableCommand'](_0x84f92a,(_0x4d900a,_0x4469aa={})=>{const _0x305d90=_0xea5099['document']['selection'];if(_0x305d90['isCollapsed'])return void _0x4d900a(_0x4469aa);const _0x14af90=void 0x0!==_0x4469aa['forceValue']?_0x4469aa['forceValue']:!_0x3d8db4['value'];_0xea5099['change'](()=>{const _0x3b78a6=Array['from'](_0x305d90['getRanges']());for(const _0x2d95e5 of _0x3b78a6){const _0x1e2200=_0x14af90?[_0x2d95e5]:io(_0x84f92a,_0x2d95e5,_0xea5099);for(const _0x4c559e of _0x1e2200)_0x2d48cd['markInlineFormat'](_0x4c559e,{'commandName':_0x84f92a,'commandParams':[{'forceValue':_0x14af90}]});}});}),_0x2d48cd['descriptionFactory']['registerDescriptionCallback'](_0x2b241a=>{if('formatBlock'!=_0x2b241a['type']&&'formatInline'!=_0x2b241a['type'])return;const {data:_0x102ea2}=_0x2b241a;return _0x102ea2&&_0x102ea2['commandName']==_0x84f92a?_0x102ea2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b5b55,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1b5b55,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x32720e{['afterInit'](){const _0x9d0cb2=this['editor'];if(!_0x9d0cb2['plugins']['has']('Style')||!_0x9d0cb2['plugins']['has']('DataSchema'))return;const _0xb20c54=_0x9d0cb2['plugins']['get']('TrackChangesEditing'),_0x53c5ac=_0x9d0cb2['locale'],_0x5ec419=_0x9d0cb2['config']['get']('style')||{},_0x543865=_0x9d0cb2['plugins']['get']('GeneralHtmlSupport'),_0xfa0a6e=_0x9d0cb2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x9d0cb2['plugins']['get']('DataSchema'),_0x5ec419['definitions']);_0xb20c54['enableDefaultAttributesIntegration']('style');const _0x3dc258=new Set();for(const _0x4473a0 of _0xfa0a6e['block']){const _0x57b55a=_0x543865['getGhsAttributeNameForElement'](_0x4473a0['element']);_0x3dc258['add'](_0x57b55a);}const _0x24d2f8=new Set();for(const _0x160ce0 of _0xfa0a6e['inline']){const _0x30eb25=_0x543865['getGhsAttributeNameForElement'](_0x160ce0['element']);_0x24d2f8['add'](_0x30eb25);for(const _0x6a6e5d of _0x160ce0['ghsAttributes'])_0x24d2f8['add'](_0x6a6e5d);}for(const _0xd1f8e2 of _0x3dc258)_0xb20c54['registerBlockAttribute'](_0xd1f8e2),_0xb20c54['descriptionFactory']['registerAttributeLabel'](_0xd1f8e2,o(_0x53c5ac,'FORMAT_STYLE'));for(const _0x1e7887 of _0x24d2f8)_0xb20c54['registerInlineAttribute'](_0x1e7887),_0xb20c54['descriptionFactory']['registerAttributeLabel'](_0x1e7887,o(_0x53c5ac,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4dbe81=this['editor'],_0x1192e4=_0x4dbe81['locale'];_0x4dbe81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x404af1=>{if('formatBlock'!=_0x404af1['type']&&'formatInline'!=_0x404af1['type'])return;const {data:_0x2c07c2}=_0x404af1;return _0x2c07c2&&'style'===_0x2c07c2['commandName']?_0x2c07c2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1192e4,'*Set\x20format:*\x20%0',_0x2c07c2['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1192e4,'*Remove\x20format:*\x20%0',_0x2c07c2['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x32720e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x44a9e4){super(_0x44a9e4),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x258919=this['editor'],_0x5045bd=_0x258919['model']['document']['selection'];if(!_0x258919['plugins']['has']('TableEditing'))return;const _0x2c1946=_0x258919['locale'],_0x2130e5=_0x258919['plugins']['get']('TrackChangesEditing'),_0x3bb46f=_0x258919['plugins']['get']('TableUtils');_0x2130e5['descriptionFactory']['registerElementLabel']('table',_0x5303bd=>o(_0x2c1946,'ELEMENT_TABLE',_0x5303bd)),this['_setupColumnsRowsFixing'](),_0x2130e5['enableCommand']('insertTable'),_0x2130e5['enableCommand']('selectTableRow'),_0x2130e5['enableCommand']('selectTableColumn');for(const _0x2610c5 of['insertTableRowAbove','insertTableRowBelow']){const _0x46fd61=_0x258919['commands']['get'](_0x2610c5);_0x2130e5['enableCommand'](_0x2610c5,_0x4f215c=>{_0x258919['model']['change'](_0x48368c=>{_0x4f215c();const _0x86fdf2='above'===_0x46fd61['order'],_0x148b61=_0x3bb46f['getSelectionAffectedTableCells'](_0x5045bd),_0x4e76aa=_0x3bb46f['getRowIndexes'](_0x148b61),_0x2c27f7=_0x86fdf2?_0x4e76aa['first']-0x1:_0x4e76aa['last']+0x1,_0x58cce8=_0x148b61[0x0]['findAncestor']('table'),_0x42a375=_0x3bb46f['createTableWalker'](_0x58cce8,{'startRow':_0x2c27f7,'endRow':_0x2c27f7}),_0x14a3d4=Array['from'](_0x42a375)['map'](_0x5a72a7=>_0x48368c['createRangeOn'](_0x5a72a7['cell']));_0x2130e5['markMultiRangeInsertion'](_0x14a3d4,'tableRow');});});}for(const _0x3d0f32 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2e3d19=_0x258919['commands']['get'](_0x3d0f32);_0x2130e5['enableCommand'](_0x3d0f32,_0x8a996d=>{_0x258919['model']['change'](_0x5afdc3=>{_0x8a996d();const _0x5db93e='left'===_0x2e3d19['order'],_0x1e7dff=_0x3bb46f['getSelectionAffectedTableCells'](_0x5045bd),_0x4eb4f2=_0x3bb46f['getColumnIndexes'](_0x1e7dff),_0x381078=_0x5db93e?_0x4eb4f2['first']-0x1:_0x4eb4f2['last']+0x1,_0x36bb85=_0x1e7dff[0x0]['findAncestor']('table'),_0x3bb499=_0x3bb46f['createTableWalker'](_0x36bb85,{'startRow':0x0,'column':_0x381078,'includeAllSlots':!0x1}),_0x536536=Array['from'](_0x3bb499)['map'](_0x54c76d=>_0x5afdc3['createRangeOn'](_0x54c76d['cell']));_0x2130e5['markMultiRangeInsertion'](_0x536536,'tableColumn');});});}for(const _0x2c95f4 of['removeTableRow','removeTableColumn']){const _0x48146e=_0x2c95f4['substr'](0xb),_0x20c136=_0x48146e['toLowerCase'](),_0x44bb82=_0x20c136['substr'](0x0,0x3)+'span',_0x2ea9c3='table'+_0x48146e,_0x583048='min'+_0x48146e,_0x42e03a='max'+_0x48146e;_0x2130e5['enableCommand'](_0x2c95f4,()=>{_0x258919['model']['change'](_0x149c2e=>{const _0xe9c9f5=_0x3bb46f['getSelectionAffectedTableCells'](_0x5045bd),_0x544331=_0xe9c9f5[0x0]['findAncestor']('table');let _0x31af13;if('removeTableRow'==_0x2c95f4){const _0x12bc50=_0x3bb46f['getRowIndexes'](_0xe9c9f5);_0x31af13={'startRow':_0x12bc50['first'],'endRow':_0x12bc50['last'],'includeAllSlots':!0x0};}else{const _0x3adadc=_0x3bb46f['getColumnIndexes'](_0xe9c9f5);_0x31af13={'startColumn':_0x3adadc['first'],'endColumn':_0x3adadc['last'],'includeAllSlots':!0x0};}const _0x2aa5cd=_0x3bb46f['createTableWalker'](_0x544331,_0x31af13),_0x1b5114=Array['from'](_0x2aa5cd)['map'](({cell:_0x263aa3})=>_0x263aa3),_0x291a75=Ne(_0x1b5114['filter'](_0x5eaa01=>_0x5eaa01['hasAttribute'](_0x44bb82))),_0x558a45=Ne(_0x1b5114['filter'](_0x3b515c=>!_0x3b515c['hasAttribute'](_0x44bb82)))['map'](_0x531415=>_0x149c2e['createRangeOn'](_0x531415)),_0x198376=_0x2130e5['markMultiRangeDeletion'](_0x558a45,_0x2ea9c3);if(_0x198376&&('tableRow'==_0x198376['subType']||'tableColumn'==_0x198376['subType'])){const _0x541c41=this['_getSuggestionCoords'](_0x198376);for(const _0x36c24b of _0x291a75){const _0x12473a=_0x149c2e['createRangeOn'](_0x36c24b),_0xa008de=_0x3bb46f['getCellLocation'](_0x36c24b),_0x338082=_0x36c24b['getAttribute'](_0x44bb82)-0x1,_0x42e04e=_0x541c41[_0x583048],_0x21402d=_0x541c41[_0x42e03a];_0x42e04e<=_0xa008de[_0x20c136]&&_0xa008de[_0x20c136]+_0x338082<=_0x21402d&&_0x198376['addRange'](_0x12473a);}}});});}function _0x2e2a03(_0x294428){const _0x2bd28f=Array['from'](_0x5045bd['getRanges']())['map'](_0x42e4a7=>_0x114c36['fromRange'](_0x42e4a7));_0x258919['model']['change'](_0x19986c=>{const _0x5d8678=_0x19986c['batch'];_0x294428=_0x294428['filter'](_0x14845c=>'$graveyard'!=_0x14845c['root']['rootName']),_0x19986c['setSelection'](_0x294428),_0x258919['commands']['get']('removeTableRow')['refresh'](),_0x258919['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x258919['model']['enqueueChange'](()=>{_0x258919['model']['enqueueChange'](_0x5d8678,_0x44fa80=>{const _0x2c6647=_0x2bd28f['filter'](_0xc2f047=>'$graveyard'!=_0xc2f047['root']['rootName']);_0x2c6647['length']>0x0&&_0x44fa80['setSelection'](_0x2c6647);for(const _0x5bd6be of _0x2bd28f)_0x5bd6be['detach']();});});});}function _0x136cba(_0x253444){_0x258919['model']['change'](_0x130a42=>{const _0x51d7b2=Array['from'](_0x5045bd['getRanges']())['map'](_0x43bad7=>_0x114c36['fromRange'](_0x43bad7)),_0x5d591b=[];for(const _0x167d35 of _0x253444)for(const _0x4b8445 of _0x167d35['getItems']({'shallow':!0x0}))_0x5d591b['push'](_0x4b8445);for(const _0xcfc7ac of _0x5d591b)'$graveyard'!=_0xcfc7ac['root']['rootName']&&(_0x130a42['setSelection'](_0x130a42['createPositionAt'](_0xcfc7ac,0x0)),_0x258919['commands']['get']('removeTableColumn')['refresh'](),_0x258919['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xc27261=_0x51d7b2['filter'](_0x25fee9=>'$graveyard'!=_0x25fee9['root']['rootName']);_0xc27261['length']>0x0&&_0x130a42['setSelection'](_0xc27261);for(const _0x38faef of _0x51d7b2)_0x38faef['detach']();});}function _0x51f6e4(_0x5431a2,_0x56d4c1){return _0x56d4c1['every'](_0xbd4262=>_0x5431a2['some'](_0x10aa71=>_0x10aa71['end']['isEqual'](_0xbd4262['start'])||_0xbd4262['end']['isEqual'](_0x10aa71['start'])));}function _0x4e3181(_0x5bfc25,_0x1401c9){return!_0x5bfc25['some'](_0x37f568=>_0x1401c9['some'](_0x1b9398=>_0x37f568['isIntersecting'](_0x1b9398)))&&_0x5bfc25['some'](_0x2470b9=>_0x1401c9['some'](_0x3e13f0=>_0x2470b9['end']['isTouching'](_0x3e13f0['start'])));}_0x258919['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27a4dc,_0xed7b6d,_0x529ba8)=>{if(!_0x529ba8['options']['showSuggestionHighlights'])return;const _0x492113=_0xed7b6d['item'];if(!_0x492113)return;const _0x148790=_0x529ba8['mapper']['toViewElement'](_0x492113);function _0x1143a0(_0xfac316){return Array['isArray'](_0xfac316)?_0xfac316:[_0xfac316];}_0x148790&&'tableCell'===_0x492113['name']&&_0x58a981(_0x148790,_0x529ba8['writer'],(_0x2bdaca,_0x22dbb8,_0x4f8095)=>_0x4f8095['addClass'](_0x1143a0(_0x22dbb8['classes']),_0x2bdaca),(_0x39b598,_0x5b06b1,_0x3efcd0)=>_0x3efcd0['removeClass'](_0x1143a0(_0x5b06b1['classes']),_0x39b598));},{'priority':'highest'}),_0x2130e5['descriptionFactory']['registerDescriptionCallback'](_0x402e5b=>{if('insertion'!=_0x402e5b['type']&&'deletion'!=_0x402e5b['type'])return;const _0xd1baae=_0x402e5b['getContainedElement']();if(null!=_0xd1baae&&_0xd1baae['is']('element','table')){if('insertion'==_0x402e5b['type']){const _0x194454=_0x402e5b['getItems']()['filter'](_0x5a8f6c=>_0x5a8f6c['is']('$textProxy'))['map'](_0x54c489=>_0x54c489['data']);if(_0x194454['length'])return{'type':'insertion','content':o(_0x2c1946,'*Insert:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x194454['join']('\x20')+'\x22'))};}if('deletion'==_0x402e5b['type']){const _0x1384ce=_0x402e5b['getItems']()['filter'](_0x305a06=>_0x305a06['is']('$textProxy'))['map'](_0x54d3c9=>_0x54d3c9['data']);if(_0x1384ce['length'])return{'type':'deletion','content':o(_0x2c1946,'*Remove:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1384ce['join']('\x20')+'\x22'))};}}}),_0x2130e5['descriptionFactory']['registerDescriptionCallback'](_0x2303d2=>{if('tableRow'==_0x2303d2['subType']){const _0xee8180=_0x2303d2['getItems']()['filter'](_0x38df45=>_0x38df45['is']('$textProxy'))['map'](_0x513d7b=>_0x513d7b['data']),_0x19be8c=this['_getSuggestionCoords'](_0x2303d2),_0x1f5097=_0x19be8c['maxRow']-_0x19be8c['minRow']+0x1;if('insertion'==_0x2303d2['type'])return _0xee8180['length']?{'type':'insertion','content':o(_0x2c1946,'*Insert:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f5097,'\x22'+_0xee8180['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2c1946,'*Insert:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_ROW',_0x1f5097))};if('deletion'==_0x2303d2['type'])return _0xee8180['length']?{'type':'deletion','content':o(_0x2c1946,'*Remove:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f5097,'\x22'+_0xee8180['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2c1946,'*Remove:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_ROW',_0x1f5097))};}if('tableColumn'==_0x2303d2['subType']){const _0x166f02=_0x2303d2['getItems']()['filter'](_0x3dc375=>_0x3dc375['is']('$textProxy'))['map'](_0x307bb5=>_0x307bb5['data']),_0x45ce8a=this['_getSuggestionCoords'](_0x2303d2),_0x407fa7=_0x45ce8a['maxColumn']-_0x45ce8a['minColumn']+0x1;if('insertion'==_0x2303d2['type'])return _0x166f02['length']?{'type':'insertion','content':o(_0x2c1946,'*Insert:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x407fa7,'\x22'+_0x166f02['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2c1946,'*Insert:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_COLUMN',_0x407fa7))};if('deletion'==_0x2303d2['type'])return _0x166f02['length']?{'type':'deletion','content':o(_0x2c1946,'*Remove:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x407fa7,'\x22'+_0x166f02['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2c1946,'*Remove:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_COLUMN',_0x407fa7))};}}),_0x2130e5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2e2a03),_0x2130e5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2e2a03),_0x2130e5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x136cba),_0x2130e5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x136cba),_0x2130e5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x51f6e4),_0x2130e5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x51f6e4),_0x2130e5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4e3181),_0x2130e5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4e3181);}['_acceptFormatSuggestionCallbackFactory'](){const _0x18702c=this['editor'],_0xb94012=_0x18702c['model']['document']['selection'];return(_0x16d944,_0x50a806)=>{_0x18702c['model']['change'](_0x351b29=>{const {commandName:_0x25aa25,commandParams:_0x21c6a0}=_0x50a806;let _0x2d51bf=_0x16d944[0x0]['end']['nodeBefore'];_0x21c6a0&&_0x21c6a0[0x0]&&!0x1===_0x21c6a0[0x0]['forceValue']&&(_0x2d51bf=_0x16d944[0x0]['start']['nodeAfter']);const _0x4b2f72=_0x351b29['createRangeIn'](_0x2d51bf);if('$graveyard'==_0x4b2f72['root']['rootName'])return;const _0x433ef1=Array['from'](_0xb94012['getRanges']())['map'](_0xef5b75=>_0x114c36['fromRange'](_0xef5b75));_0x351b29['setSelection'](_0x4b2f72),_0x18702c['commands']['get'](_0x25aa25)['refresh'](),_0x21c6a0['push']({'forceDefaultExecution':!0x0}),_0x18702c['execute'](_0x25aa25,..._0x21c6a0);const _0x599a04=_0x433ef1['filter'](_0x22a089=>'$graveyard'!=_0x22a089['root']['rootName']);_0x599a04['length']>0x0&&_0x351b29['setSelection'](_0x599a04);for(const _0x5e4b33 of _0x433ef1)_0x5e4b33['detach']();});};}['_getCoordsForCells'](_0x2ec41a){const _0x4887f4=this['editor']['plugins']['get']('TableUtils');let _0x1b9b8e=Number['MAX_SAFE_INTEGER'],_0x449a85=Number['MIN_SAFE_INTEGER'],_0x4f7310=Number['MAX_SAFE_INTEGER'],_0x3a46cc=Number['MIN_SAFE_INTEGER'];for(const _0x5b445e of _0x2ec41a){if('$graveyard'==_0x5b445e['root']['rootName'])continue;const {row:_0x1ed611,column:_0x498f36}=_0x4887f4['getCellLocation'](_0x5b445e),_0x38472c=_0x5b445e['hasAttribute']('rowspan')?_0x5b445e['getAttribute']('rowspan')-0x1:0x0,_0x4800cb=_0x5b445e['hasAttribute']('colspan')?_0x5b445e['getAttribute']('colspan')-0x1:0x0;_0x1b9b8e=_0x1ed611<_0x1b9b8e?_0x1ed611:_0x1b9b8e,_0x449a85=_0x1ed611+_0x38472c>_0x449a85?_0x1ed611+_0x38472c:_0x449a85,_0x4f7310=_0x498f36<_0x4f7310?_0x498f36:_0x4f7310,_0x3a46cc=_0x498f36+_0x4800cb>_0x3a46cc?_0x498f36+_0x4800cb:_0x3a46cc;}return{'minRow':_0x1b9b8e,'maxRow':_0x449a85,'minColumn':_0x4f7310,'maxColumn':_0x3a46cc};}['_setupColumnsRowsFixing'](){const _0x20a388=this['editor'],_0x25fd55=_0x20a388['plugins']['get']('TrackChangesEditing'),_0x7d5333=_0x20a388['plugins']['get']('TableUtils');_0x20a388['model']['document']['on']('change:data',()=>{const _0x42e9a5=Array['from'](_0x20a388['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30e456,data:_0x5055f3}of _0x42e9a5){const {group:_0x3789cb,id:_0x50a9c7,subType:_0xcf8ad3}=_0x25fd55['_splitMarkerName'](_0x30e456);if('suggestion'!=_0x3789cb)continue;if(null!=_0x5055f3['oldRange'])continue;const _0x3aad43=_0x25fd55['getSuggestion'](_0x50a9c7);this['_tablePostFixingSubtypes']['includes'](_0xcf8ad3)&&this['_tableSuggestions']['add'](_0x3aad43);}},{'priority':'low'});const _0xa9624a=(_0x2fa014,_0x342b93)=>{let _0x5cd789=!0x1;const _0x32d763=_0x342b93['createRangeOn'](_0x2fa014),_0x17e7fb=_0x2fa014['findAncestor']('table'),_0x1ca9cb=_0x7d5333['getCellLocation'](_0x2fa014);for(const _0x836844 of this['_tableSuggestions']){const _0x564e90=_0x836844['subType'],_0x4df469=_0x564e90['startsWith']('tablePaste'),_0x354aca=_0x564e90['substr'](_0x4df469?0xa:0x5),_0x4c8a1e=_0x354aca['toLowerCase'](),_0x1e145b=_0x4c8a1e['substr'](0x0,0x3)+'span',_0x1b33fb='min'+_0x354aca,_0xbf9510='max'+_0x354aca;if(!_0x836844['isInContent'])continue;if(_0x17e7fb!=_0x836844['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x836844['isIntersectingWithRange'](_0x32d763))continue;const _0x4ba00c=_0x2fa014['hasAttribute'](_0x1e145b)?_0x2fa014['getAttribute'](_0x1e145b)-0x1:0x0,_0x5dd590=this['_getSuggestionCoords'](_0x836844),_0x185ab5=_0x5dd590[_0x1b33fb],_0x44f4de=_0x5dd590[_0xbf9510];_0x185ab5<=_0x1ca9cb[_0x4c8a1e]&&_0x1ca9cb[_0x4c8a1e]+_0x4ba00c<=_0x44f4de&&(_0x836844['addRange'](_0x32d763),_0x5cd789=!0x0);}return _0x5cd789;};_0x20a388['model']['document']['registerPostFixer'](_0x54db7c=>{let _0x513209=!0x1;for(const _0x483d9c of _0x20a388['model']['document']['differ']['getChanges']())if('insert'==_0x483d9c['type']){if('tableRow'==_0x483d9c['name']){for(const _0x2f655f of _0x483d9c['position']['nodeAfter']['getChildren']())_0x513209=_0x513209||_0xa9624a(_0x2f655f,_0x54db7c);}else'tableCell'==_0x483d9c['name']&&(_0x513209=_0x513209||_0xa9624a(_0x483d9c['position']['nodeAfter'],_0x54db7c));}return _0x513209;});}['_getSuggestionCoords'](_0x29f7ed){return this['_getCoordsForCells'](_0x29f7ed['getRanges']()['map'](_0x282da0=>_0x282da0['start']['nodeAfter']));}}function Ne(_0x38a816){return Array['from'](new Set(_0x38a816)['values']());}class _t extends _0x32720e{static get['requires'](){return[vt];}['afterInit'](){const _0x4659c9=this['editor'],_0x6f5da4=_0x4659c9['model']['document']['selection'],_0x2becc0=_0x4659c9['locale'];if(!_0x4659c9['plugins']['has']('TableEditing'))return;const _0x5557df=_0x4659c9['plugins']['get']('TrackChangesEditing'),_0x494332=_0x4659c9['plugins']['get']('TableUtils'),_0x41318e=_0x4659c9['plugins']['get'](vt);_0x41318e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5557df['enableCommand']('mergeTableCells',()=>{const _0x18d4e7=_0x494332['getSelectionAffectedTableCells'](_0x4659c9['model']['document']['selection']);_0x4659c9['model']['change'](()=>{_0x5557df['markMultiRangeBlockFormat'](_0x18d4e7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4659c9['commands']['get']('mergeTableCells')['on']('execute',(_0x5f0978,_0x4c93d1)=>{_0x4659c9['commands']['get']('trackChanges')['value']&&(_0x4c93d1['length']>0x0&&_0x4c93d1[_0x4c93d1['length']-0x1]&&_0x4c93d1[_0x4c93d1['length']-0x1]['forceDefaultExecution']||_0x5557df['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5f0978['stop']());},{'priority':'highest'});for(const _0x2f471d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1dbc5=_0x4659c9['commands']['get'](_0x2f471d);_0x5557df['enableCommand'](_0x2f471d,()=>{const _0x565e13=_0x4659c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5c6883=>_0x5c6883['is']('element','tableCell')),_0x5e468f=_0x1dbc5['value'];_0x4659c9['model']['change'](()=>{_0x5557df['markMultiRangeBlockFormat']([_0x565e13,_0x5e468f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3642da of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3bfd21=_0x4659c9['commands']['get'](_0x3642da);_0x5557df['enableCommand'](_0x3642da,()=>{const _0x5dfb36=_0x494332['getSelectionAffectedTableCells'](_0x4659c9['model']['document']['selection'])[0x0],_0x467ac5=_0x5dfb36['findAncestor']('table'),{column:_0x30d614,row:_0x249800}=_0x494332['getCellLocation'](_0x5dfb36);let _0x13e6a0=[];if('horizontally'==_0x3bfd21['direction']){const _0x174879=_0x494332['createTableWalker'](_0x467ac5,{'startRow':_0x249800,'endRow':_0x249800,'includeAllSlots':!0x0});_0x13e6a0=Array['from'](_0x174879)['map'](_0x57a7a2=>_0x57a7a2['cell']);}else{const _0x150327=_0x494332['createTableWalker'](_0x467ac5,{'column':_0x30d614,'includeAllSlots':!0x0});_0x13e6a0=Array['from'](_0x150327)['map'](_0x5d19f9=>_0x5d19f9['cell']);}_0x4659c9['model']['change'](_0x2c12c8=>{_0x5557df['markBlockFormat'](_0x2c12c8['createRangeOn'](_0x5dfb36),{'commandName':_0x3642da,'commandParams':[]},_0x13e6a0,_0x3642da);});});}_0x5557df['descriptionFactory']['registerDescriptionCallback'](_0x377068=>{if('formatBlock'!=_0x377068['type']&&'formatInline'!=_0x377068['type'])return;const {data:_0x3e38ae}=_0x377068;return _0x3e38ae&&'mergeTableCells'==_0x3e38ae['commandName']?{'type':'format','content':o(_0x2becc0,'*Merge\x20cells*')}:void 0x0;}),_0x5557df['descriptionFactory']['registerDescriptionCallback'](_0x3f5fae=>{if('formatBlock'!=_0x3f5fae['type']&&'formatInline'!=_0x3f5fae['type'])return;const {data:_0x359103}=_0x3f5fae;return _0x359103?'splitTableCellVertically'==_0x359103['commandName']?{'type':'format','content':o(_0x2becc0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x359103['commandName']?{'type':'format','content':o(_0x2becc0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x440d0f=_0x41318e['_acceptFormatSuggestionCallbackFactory']();for(const _0x112fdb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5557df['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x112fdb,'accept',_0x440d0f);for(const _0x336eab of['splitTableCellVertically','splitTableCellHorizontally'])_0x5557df['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x336eab,'accept',_0x440d0f);_0x5557df['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4c156e=>{_0x4659c9['model']['change'](_0x219fec=>{const _0x4ee621=Array['from'](_0x6f5da4['getRanges']())['map'](_0x2566e5=>_0x114c36['fromRange'](_0x2566e5));_0x219fec['setSelection'](_0x4c156e),_0x4659c9['commands']['get']('mergeTableCells')['refresh'](),_0x4659c9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x45a6cc=_0x4ee621['filter'](_0x253705=>'$graveyard'!=_0x253705['root']['rootName']);_0x45a6cc['length']>0x0&&_0x219fec['setSelection'](_0x45a6cc);for(const _0x26e662 of _0x4ee621)_0x26e662['detach']();});});for(const _0x39cd18 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x23c2ea=_0x4659c9['commands']['get'](_0x39cd18);_0x23c2ea['on']('set:isEnabled',(_0x531d70,_0xa68ac2,_0x2f714a)=>{if(_0x2f714a){const _0x1559ce=_0x4659c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x15eeab=>_0x15eeab['is']('element','tableCell'));this['_areMergableCells'](_0x23c2ea['value'],_0x1559ce)||(_0x531d70['return']=!0x1,_0x531d70['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x42bba1=this['editor']['commands']['get']('mergeTableCells'),_0x2a0031=this['editor']['plugins']['get']('TableUtils');if(!_0x42bba1['isEnabled'])return!0x1;const _0x19e19e=_0x2a0031['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1b90d3 of _0x19e19e)for(const _0x36e32c of _0x19e19e)if(_0x1b90d3!=_0x36e32c&&!this['_areMergableCells'](_0x1b90d3,_0x36e32c))return!0x1;return!0x0;}['_areMergableCells'](_0x17c559,_0x12a7ef){const _0x209f7f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bdc69=this['editor']['model']['createRangeOn'](_0x17c559),_0x98c8f7=this['editor']['model']['createRangeOn'](_0x12a7ef),_0x3b42f6=new Set(),_0x568195=new Set();for(const _0x18162f of _0x209f7f['getSuggestions']())if(('insertion'==_0x18162f['type']||'deletion'==_0x18162f['type']||'mergeTableCells'==_0x18162f['subType'])&&_0x18162f['isInContent']){for(const _0x807fbd of _0x18162f['getRanges']())_0x807fbd['containsRange'](_0x4bdc69,!0x0)&&_0x3b42f6['add'](_0x18162f['type']+':'+_0x18162f['author']['id']),_0x807fbd['containsRange'](_0x98c8f7,!0x0)&&_0x568195['add'](_0x18162f['type']+':'+_0x18162f['author']['id']);}if(_0x3b42f6['size']!=_0x568195['size'])return!0x1;for(const _0x1396a4 of _0x3b42f6)if(!_0x568195['has'](_0x1396a4))return!0x1;return!0x0;}}class Ct extends _0x32720e{static get['requires'](){return[vt];}['afterInit'](){const _0xf75533=this['editor'];if(!_0xf75533['plugins']['has']('TableEditing'))return;const _0x529006=_0xf75533['locale'],_0x5e9e8b=_0xf75533['plugins']['get']('TrackChangesEditing');_0x5e9e8b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5e9e8b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5e9e8b['registerBlockAttribute']('headingRows'),_0x5e9e8b['registerBlockAttribute']('headingColumns'),_0x5e9e8b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x529006,'FORMAT_HEADER_ROW')),_0x5e9e8b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x529006,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xe80839=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cf1f1=this['editor']['plugins']['get']('TableUtils'),_0x2b080c=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x46efa9({showActiveMarker:_0x5ab9d1=!0x0,setDataAttribute:_0x5661fb=!0x0}={}){return(_0x3348b1,_0x13d9fa,_0x319c0f)=>{const {type:_0x19dfe9,id:_0x5da1f8}=_0xe80839['_splitMarkerName'](_0x13d9fa['markerName']),_0x501717=_0xe80839['getSuggestion'](_0x5da1f8),_0x192dfe=_0x501717['data'];if('formatBlock'!=_0x501717['type']||!_0x192dfe||'setTableColumnHeader'!=_0x192dfe['commandName'])return;if(_0x13d9fa['item'])return void _0x3348b1['stop']();if(!_0x319c0f['consumable']['consume'](_0x13d9fa['markerRange'],_0x3348b1['name']))return;const _0xa558ac=_0x13d9fa['markerRange']['start']['nodeAfter'],_0x511573=_0x13d9fa['markerRange']['end']['nodeBefore'],_0x88c0e0=_0xa558ac['parent']['parent'],{column:_0x2e10de}=_0x3cf1f1['getCellLocation'](_0xa558ac),{column:_0x202d2a}=_0x3cf1f1['getCellLocation'](_0x511573);for(let _0x37739b=_0x2e10de;_0x37739b<=_0x202d2a;_0x37739b++){const _0x487209=_0x3cf1f1['createTableWalker'](_0x88c0e0,{'column':_0x37739b,'includeAllSlots':!0x1});for(const _0x5aa26e of _0x487209){const _0x2a953e=_0x5aa26e['cell'],_0xb4c1b8=_0x319c0f['mapper']['toViewElement'](_0x2a953e);_0x319c0f['writer']['addClass']('ck-suggestion-marker-'+_0x19dfe9,_0xb4c1b8),_0x5661fb&&_0x319c0f['writer']['setAttribute']('data-suggestion',_0x5da1f8,_0xb4c1b8),_0x319c0f['mapper']['bindElementToMarker'](_0xb4c1b8,_0x13d9fa['markerName']),_0x5ab9d1&&(_0xe80839['activeMarkers']['includes'](_0x13d9fa['markerName'])?_0x319c0f['writer']['addClass']('ck-suggestion-marker--active',_0xb4c1b8):_0x319c0f['writer']['removeClass']('ck-suggestion-marker--active',_0xb4c1b8));}}};}_0xe80839['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2b080c),_0xe80839['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2b080c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x46efa9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x16be59,_0x3aa403,_0x240f1a)=>{_0x240f1a['options']['showSuggestionHighlights']&&_0x46efa9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x16be59,_0x3aa403,_0x240f1a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x259f0d,_0x169a1b,_0x31a777)=>{const {type:_0x5cd98c,id:_0x397240}=_0xe80839['_splitMarkerName'](_0x169a1b['markerName']),_0x3f5452=_0xe80839['getSuggestion'](_0x397240),_0x7e9f5f=_0x3f5452['data'];if('formatBlock'!=_0x3f5452['type']||!_0x7e9f5f||'setTableColumnHeader'!=_0x7e9f5f['commandName'])return;const _0x2dac31=_0x31a777['mapper']['markerNameToElements'](_0x169a1b['markerName']);if(_0x2dac31){for(const _0x2b65e9 of _0x2dac31)_0x31a777['writer']['removeClass']('ck-suggestion-marker-'+_0x5cd98c,_0x2b65e9),_0x31a777['writer']['removeClass']('ck-suggestion-marker--active',_0x2b65e9),_0x31a777['writer']['removeAttribute']('data-suggestion',_0x2b65e9),_0x31a777['mapper']['unbindElementFromMarkerName'](_0x2b65e9,_0x169a1b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x228825=this['editor'],_0x59677f=_0x228825['locale'];function _0x4255b7(_0x364915){return{'type':'format','content':o(_0x59677f,'*Format:*\x20%0',_0x364915)};}_0x228825['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xec4ef8=>{if('formatBlock'!=_0xec4ef8['type'])return;const {data:_0x418bd8}=_0xec4ef8;if(_0x418bd8){if('setTableRowHeader'==_0x418bd8['commandName']){const _0x398102=_0x418bd8['commandParams'][0x0]['forceValue'];return _0x4255b7(o(_0x59677f,_0x398102?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x418bd8['commandName']){const _0x4ac18a=_0x418bd8['commandParams'][0x0]['forceValue'];return _0x4255b7(o(_0x59677f,_0x4ac18a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x3854d2=>[_0x3854d2,null]));class Nt extends _0x32720e{static get['requires'](){return[vt];}['afterInit'](){const _0x5a385d=this['editor'];if(!_0x5a385d['plugins']['has']('TableClipboard'))return;const _0x42fd4d=_0x5a385d['plugins']['get']('TrackChangesEditing'),_0x1d269d=_0x5a385d['plugins']['get']('TableUtils'),_0x212eac=_0x5a385d['plugins']['get'](vt),_0x1bd0c8=_0x5a385d['plugins']['get']('TableClipboard');_0x212eac['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5a385d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5a385d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x17b6e6=null;_0x5a385d['model']['on']('insertContent',(_0x403dff,_0x4c98ee)=>{const [_0x362a1c,_0x1f2f17]=_0x4c98ee,_0x3be23e=_0x4c98ee[_0x4c98ee['length']-0x1];_0x3be23e&&_0x3be23e['forceDefaultExecution']||_0x42fd4d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3ade5e,_0x457060,_0x22634f,_0x4d5363,_0x37a30a){if(_0x457060&&!_0x457060['is']('documentSelection'))return!0x1;const _0x39c9ae=_0x37a30a['getTableIfOnlyTableInContent'](_0x3ade5e,_0x22634f);if(!_0x39c9ae||!Ue(_0x39c9ae,void 0x0,_0x4d5363))return!0x1;const _0x5f182d=_0x4d5363['getSelectionAffectedTableCells'](_0x22634f['document']['selection']);if(!_0x5f182d['length'])return!0x1;const _0x558b0b=_0x5f182d[0x0]['findAncestor']('table'),_0x3a48b5=_0x4d5363['getRowIndexes'](_0x5f182d),_0x2a86ac=_0x4d5363['getColumnIndexes'](_0x5f182d),_0x4e72cd={'startRow':_0x3a48b5['first'],'endRow':_0x3a48b5['last'],'startColumn':_0x2a86ac['first'],'endColumn':_0x2a86ac['last']};return 0x1==_0x5f182d['length']&&(_0x4e72cd['endRow']+=_0x4d5363['getRows'](_0x39c9ae)-0x1,_0x4e72cd['endColumn']+=_0x4d5363['getColumns'](_0x39c9ae)-0x1),Ue(_0x558b0b,_0x4e72cd,_0x4d5363);}(_0x362a1c,_0x1f2f17,_0x5a385d['model'],_0x1d269d,_0x1bd0c8)&&(_0x403dff['stop'](),_0x17b6e6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5a385d['model']['change'](()=>{_0x5a385d['model']['insertContent'](_0x4c98ee[0x0],_0x4c98ee[0x1],_0x4c98ee[0x2],{'forceDefaultExecution':!0x0});const _0x152f12=_0x2cd620(),{rowInsertionRanges:_0x532dd7,columnInsertionRanges:_0x41bf5d,insertionRanges:_0x5b956d,deletionRanges:_0x16282b,cells:_0x232532}=_0x17b6e6;_0x532dd7['length']&&_0x42fd4d['markMultiRangeInsertion'](_0x532dd7,'tablePasteRow',{'tablePasteChainId':_0x152f12}),_0x41bf5d['length']&&_0x42fd4d['markMultiRangeInsertion'](_0x41bf5d,'tablePasteColumn',{'tablePasteChainId':_0x152f12}),_0x5b956d['length']&&(_0x42fd4d['markMultiRangeInsertion'](_0x5b956d,'tablePaste',{'tablePasteChainId':_0x152f12,'skipNestingCheck':!0x0}),_0x5b956d['forEach'](_0x431979=>_0x431979['detach']?.())),_0x16282b['length']&&(_0x42fd4d['markMultiRangeDeletion'](_0x16282b,'tablePaste',{'tablePasteChainId':_0x152f12,'skipNestingCheck':!0x0}),_0x16282b['forEach'](_0x42b902=>_0x42b902['detach']?.()));const _0x3eb6e2=_0x42fd4d['markMultiRangeBlockFormat'](_0x232532['map'](({element:_0x337779})=>_0x337779),{'formatGroupId':_0x2cd620()},[],'tablePasteCell',{'tablePasteChainId':_0x152f12});if(_0x3eb6e2){const _0x143aed=_0x3eb6e2['getMarkers'](),_0x4ae5bf=[];for(const {element:_0x10a27c,attributes:_0xb4941f}of _0x232532){if(!_0xb4941f)continue;const _0x593d02=_0x5a385d['model']['createRangeOn'](_0x10a27c),_0x3600b5=_0x143aed['find'](_0x45b5d4=>_0x45b5d4['getRange']()['isEqual'](_0x593d02));_0x3600b5&&_0x4ae5bf['push']([_0x3600b5['name'],_0xb4941f]);}_0x4ae5bf['length']&&_0x3eb6e2['setAttribute']('markerAttributes',Object['fromEntries'](_0x4ae5bf));}_0x17b6e6=null;}));},{'priority':_0x4368d6['high']+0xa}),_0x5a385d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x59601e,_0x183157)=>{const [_0x112b2e,_0x11ad9c,,_0x4c5a76]=_0x183157;if(!_0x17b6e6)return;_0x59601e['stop']();const _0x1f0420=_0x112b2e['cell'],_0x5709c6=_0x11ad9c,_0x3b8370=Oe(_0x1f0420),_0x3d858f=Oe(_0x5709c6);_0x59601e['return']=_0x1f0420;let _0x1029aa=null,_0x7211b6=null;if(_0x3d858f||_0x3b8370){if(_0x3b8370&&!_0x3d858f){_0x4c5a76['remove'](_0x1f0420['getChild'](0x0));for(const _0x44d6ff of Array['from'](_0x5709c6['getChildren']()))_0x4c5a76['insert'](_0x44d6ff,_0x1f0420,'end');const _0xc3c547=_0x17b6e6['rowInsertionIndexes']['includes'](_0x112b2e['row']),_0x3224b3=_0x17b6e6['columnInsertionIndexes']['includes'](_0x112b2e['column']);_0xc3c547||_0x3224b3||(_0x1029aa=_0x114c36['fromRange'](_0x4c5a76['createRangeIn'](_0x1f0420)));}else _0x3d858f&&!_0x3b8370&&(_0x7211b6=_0x4c5a76['createRangeIn'](_0x1f0420));}else{const _0x3f2fad=_0x4c5a76['createElement']('tableCellSuggestion'),_0x3ce1e0=_0x4c5a76['createElement']('tableCellSuggestion');_0x4c5a76['wrap'](_0x4c5a76['createRangeIn'](_0x1f0420),_0x3ce1e0),_0x4c5a76['insert'](_0x3f2fad,_0x1f0420,0x0);for(const _0x2ca5b9 of Array['from'](_0x5709c6['getChildren']()))_0x4c5a76['insert'](_0x2ca5b9,_0x3f2fad,'end');_0x1029aa=_0x114c36['fromRange'](_0x4c5a76['createRangeOn'](_0x3f2fad)),_0x7211b6=_0x114c36['fromRange'](_0x4c5a76['createRangeOn'](_0x3ce1e0));}const _0x49fd8d=Array['from'](_0x5709c6['getAttributes']())['filter'](([_0x1551c7])=>Be['includes'](_0x1551c7));_0x17b6e6['cells']['push']({'element':_0x1f0420,'attributes':_0x49fd8d['length']?Object['fromEntries'](_0x49fd8d):null}),_0x1029aa&&_0x17b6e6['insertionRanges']['push'](_0x1029aa),_0x7211b6&&_0x17b6e6['deletionRanges']['push'](_0x7211b6);},{'priority':'high'}),_0x1d269d['on']('insertColumns',(_0x244d09,_0x3e212f)=>{const [_0xf9ee7e,_0x56e850={}]=_0x3e212f;if(!_0x17b6e6)return;const _0x138714=_0x56e850['at']||0x0,_0x25624b=_0x56e850['columns']||0x1;_0x17b6e6['columnInsertionIndexes']=new Array(_0x25624b)['fill'](_0x138714)['map']((_0x48a218,_0x49c51a)=>_0x48a218+_0x49c51a);for(const {cell:_0x528f8c}of _0x1d269d['createTableWalker'](_0xf9ee7e,{'startColumn':_0x138714,'endColumn':_0x138714+_0x25624b-0x1}))_0x17b6e6['columnInsertionRanges']['push'](_0x5a385d['model']['createRangeOn'](_0x528f8c));},{'priority':'low'}),_0x1d269d['on']('insertRows',(_0x10764d,_0x1fc9d8)=>{const [_0x256b6a,_0x4b7a98={}]=_0x1fc9d8;if(!_0x17b6e6)return;const _0x55faab=_0x4b7a98['at']||0x0,_0x4724da=_0x4b7a98['rows']||0x1;_0x17b6e6['rowInsertionIndexes']=new Array(_0x4724da)['fill'](_0x55faab)['map']((_0x33f6b0,_0x2d7c0a)=>_0x33f6b0+_0x2d7c0a);for(const {cell:_0x22d5ee}of _0x1d269d['createTableWalker'](_0x256b6a,{'startRow':_0x55faab,'endRow':_0x55faab+_0x4724da-0x1}))_0x17b6e6['rowInsertionRanges']['push'](_0x5a385d['model']['createRangeOn'](_0x22d5ee));},{'priority':'low'}),_0x42fd4d['descriptionFactory']['registerDescriptionCallback'](_0x40bdd=>{if(_0x40bdd['subType']&&_0x40bdd['subType']['startsWith']('tablePaste'))return _0x40bdd['previous']?{}:{'type':'insertion','content':o(_0x5a385d['locale'],'*Replace\x20table\x20cells*')};});const _0x47ea7f=()=>!0x1;for(const _0x30eeaf of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x42fd4d['_suggestionFactory']['registerCustomCallback']('insertion',_0x30eeaf,'join',_0x47ea7f),_0x42fd4d['_suggestionFactory']['registerCustomCallback']('deletion',_0x30eeaf,'join',_0x47ea7f),_0x42fd4d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30eeaf,'join',_0x47ea7f);_0x42fd4d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x47ea7f),_0x42fd4d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1876de,_0x57ef06,_0x4d02ca)=>{const _0x20da2b=_0x1876de['map'](_0x22a29f=>_0x22a29f['getContainedElement']())['filter'](_0x3ea483=>_0x3ea483),_0x4b9790=new Map(_0x20da2b['map'](_0x397a90=>[_0x397a90,null]));if(_0x17b6e6){for(const {element:_0x293a8e,attributes:_0xa920d7}of _0x17b6e6['cells'])_0xa920d7&&_0x4b9790['set'](_0x293a8e,_0xa920d7);}else{if(_0x4d02ca&&_0x4d02ca['markerAttributes'])for(const [_0x29ddf6,_0x40e7e5]of Object['entries'](_0x4d02ca['markerAttributes'])){const _0x41ba70=_0x5a385d['model']['markers']['get'](_0x29ddf6),_0x1992e9=_0x41ba70?_0x41ba70['getRange']()['getContainedElement']():null;_0x1992e9&&_0x4b9790['set'](_0x1992e9,_0x40e7e5);}}_0x5a385d['model']['change'](_0x1bc3fb=>{for(const [_0x273e32,_0x4c2639]of _0x4b9790)_0x1bc3fb['setAttributes']({...xe,..._0x4c2639},_0x273e32);});});const _0x276642=(_0x452220,_0x3d09da)=>{_0x42fd4d['_suggestionFactory']['registerCustomCallback'](_0x452220,'tablePaste',_0x3d09da,(_0x2a6eea,_0x14484a,_0x3afd51)=>{_0x5a385d['model']['change'](_0x4750c0=>{const _0x30f671=[];for(const _0x5bfdbb of _0x2a6eea){const _0x4299ae=_0x5bfdbb['start']['nodeAfter'];_0x4299ae['is']('element','tableCellSuggestion')&&_0x30f671['push'](_0x4299ae);}_0x42fd4d['_suggestionFactory']['getSuggestionCallback'](_0x452220,null,_0x3d09da)(_0x2a6eea,_0x14484a,_0x3afd51);for(const _0x236f76 of _0x30f671)'$graveyard'!=_0x236f76['root']['rootName']&&_0x4750c0['unwrap'](_0x236f76);});});};_0x276642('insertion','accept'),_0x276642('insertion','discard'),_0x276642('deletion','accept'),_0x276642('deletion','discard'),_0x42fd4d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x21188f=>{const _0xaf221a=_0x21188f['map'](_0x4c2ecd=>_0x4c2ecd['getContainedElement']()),_0x911281=_0xaf221a[0x0]['findAncestor']('table'),{minRow:_0x4a09f6,maxRow:_0x481377}=_0x212eac['_getCoordsForCells'](_0xaf221a);_0x1d269d['removeRows'](_0x911281,{'at':_0x4a09f6,'rows':_0x481377-_0x4a09f6+0x1});}),_0x42fd4d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x140e23=>{const _0x4eeead=_0x140e23['map'](_0x554c64=>_0x554c64['getContainedElement']()),_0x527144=_0x4eeead[0x0]['findAncestor']('table'),{minColumn:_0x49720f,maxColumn:_0x87d78a}=_0x212eac['_getCoordsForCells'](_0x4eeead);_0x1d269d['removeColumns'](_0x527144,{'at':_0x49720f,'columns':_0x87d78a-_0x49720f+0x1});});const _0x5f03bc=(_0x1e62f7,_0x5cde28)=>{if(!_0x5cde28['subType']||!_0x5cde28['subType']['startsWith']('tablePaste'))return;const _0x200fdc=_0x5cde28['attributes']['tablePasteChainId'],_0x683418=_0x42fd4d['getSuggestions']()['filter'](_0x5021cc=>_0x5021cc['isInContent']&&_0x5021cc['attributes']&&_0x5021cc['attributes']['tablePasteChainId']==_0x200fdc);_0x683418['length']&&_0x5cde28['getAllAdjacentSuggestions']()['length']!=_0x683418['length']&&_0x683418['reduce']((_0x2c1936,_0x47cd63)=>(_0x2c1936['next']=_0x47cd63,_0x47cd63['previous']=_0x2c1936,_0x47cd63));};function _0x229622(_0x2f9a05,_0x538f2c=!0x0){const {id:_0x5bf832,authorId:_0x4f2a18}=_0x42fd4d['_splitMarkerName'](_0x2f9a05['markerName']),_0x5585e3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4b711b=_0x42fd4d['activeMarkers']['includes'](_0x2f9a05['markerName']);return _0x4b711b&&_0x5585e3['push']('ck-suggestion-marker--active'),{'classes':_0x5585e3,'attributes':{'data-suggestion':_0x5bf832,'data-author-id':_0x4f2a18},'priority':_0x4b711b&&_0x538f2c?0xbc2:0xbb8};}_0x42fd4d['on']('suggestionLoaded',_0x5f03bc,{'priority':'high'}),_0x42fd4d['on']('suggestionUnloaded',_0x5f03bc,{'priority':'high'}),_0x5a385d['model']['document']['registerPostFixer'](()=>{let _0x57814e=!0x1;const _0x22c902=Array['from'](_0x5a385d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e3f02,data:_0x47db65}of _0x22c902){const {group:_0x3bb48d,type:_0x327390,id:_0x13a4bf}=_0x42fd4d['_splitMarkerName'](_0x4e3f02);if('suggestion'!=_0x3bb48d||'deletion'!=_0x327390||_0x47db65['oldRange'])continue;if(!_0x42fd4d['hasSuggestion'](_0x13a4bf))continue;const _0x48e1cf=_0x42fd4d['getSuggestion'](_0x13a4bf)['getRanges'](),_0xf47848=_0x5a385d['plugins']['get']('Users')['me'];for(const _0x12ca9b of _0x42fd4d['getSuggestions']()){if(!_0x12ca9b['isInContent']||_0x12ca9b['author']!=_0xf47848)continue;if('formatBlock'!=_0x12ca9b['type']||'tablePasteCell'!=_0x12ca9b['subType'])continue;if(_0x12ca9b['getRanges']()['every'](_0x341a43=>_0x48e1cf['some'](_0xcb6fdf=>_0xcb6fdf['containsRange'](_0x341a43,!0x0)))){for(const _0xeb2718 of _0x12ca9b['getAllAdjacentSuggestions']())_0xeb2718['isInContent']&&(_0xeb2718['discard'](),_0x57814e=!0x0);}}}return _0x57814e;}),_0x5a385d['model']['document']['registerPostFixer'](_0x18b813=>{const _0x1c874d=_0x5a385d['commands']['get']('redo');if(!_0x1c874d||!_0x1c874d['_createdBatches']['has'](_0x18b813['batch']))return!0x1;let _0x3e022c=!0x1;const _0x14b591=_0x5a385d['plugins']['get']('Users')['me'],_0x365642=_0x5a385d['model']['document']['differ']['getChanges'](),_0x203f06=Array['from'](_0x5a385d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5e75fb,data:_0x4ad02b})=>{const {group:_0x2fb44c,subType:_0x4c1f1c,authorId:_0x31689f}=_0x42fd4d['_splitMarkerName'](_0x5e75fb);return'suggestion'==_0x2fb44c&&'tablePaste'==_0x4c1f1c&&_0x31689f==_0x14b591['id']&&!_0x4ad02b['oldRange'];});for(const _0x4f6c37 of _0x365642){if('insert'!=_0x4f6c37['type']||'tableCellSuggestion'!=_0x4f6c37['name']||0x1!=_0x4f6c37['length'])continue;const _0x3ab8da=_0x18b813['createRange'](_0x4f6c37['position'],_0x4f6c37['position']['getShiftedBy'](0x1));if(!_0x203f06['find'](({data:_0x539e5c})=>_0x539e5c['newRange']['isEqual'](_0x3ab8da))){for(const {name:_0x29220b,data:_0x3a2f78}of _0x203f06)if(_0x3ab8da['containsRange'](_0x3a2f78['newRange'])){_0x18b813['updateMarker'](_0x29220b,{'range':_0x3ab8da}),_0x3e022c=!0x0;break;}}}return _0x3e022c;}),_0x5a385d['model']['document']['registerPostFixer'](_0x2fab6c=>{let _0x5e37f4=!0x1;const _0x5b66b4=_0x5a385d['plugins']['get']('Users')['me'],_0x150eb8=_0x42fd4d['getSuggestions']()['filter'](_0x52ede=>_0x52ede['isInContent']&&_0x52ede['author']==_0x5b66b4),_0x2601c7=new Set(),_0x48a227=new Set();for(const _0x1c9e92 of _0x150eb8)if('tablePaste'==_0x1c9e92['subType'])for(const _0x11f462 of _0x1c9e92['getMarkers']()){const _0x153b84=_0x11f462['getRange']()['getContainedElement']();if(_0x153b84){if(_0x153b84['is']('element','tableCellSuggestion')&&Oe(_0x153b84)){_0x1c9e92['removeMarker'](_0x11f462['name']),_0x2601c7['add'](_0x153b84),_0x5e37f4=!0x0;const _0x47459c=_0x153b84['nextSibling'],_0x22eb14=_0x153b84['previousSibling'],_0x3d698d=_0x47459c&&_0x47459c['is']('element','tableCellSuggestion'),_0x207d4b=_0x22eb14&&_0x22eb14['is']('element','tableCellSuggestion');_0x3d698d&&!_0x2601c7['has'](_0x47459c)&&_0x48a227['add'](_0x47459c),_0x207d4b&&!_0x2601c7['has'](_0x22eb14)&&_0x48a227['add'](_0x22eb14);}else _0x153b84['is']('element','paragraph')&&_0x153b84['isEmpty']&&(_0x1c9e92['removeMarker'](_0x11f462['name']),_0x5e37f4=!0x0);}}else{if('tablePasteCell'==_0x1c9e92['subType']){if(!_0x1c9e92['attributes']||!_0x1c9e92['attributes']['tablePasteChainId'])continue;const _0x44734e=_0x1c9e92['attributes']['markerAttributes'];if(_0x44734e&&Object['keys'](_0x44734e)['length'])continue;const _0x334cde=_0x1c9e92['attributes']['tablePasteChainId'];let _0x405ebb=!0x0,_0x22f419=!0x0;for(const _0x4e20ab of _0x150eb8)if(_0x4e20ab['subType']&&_0x4e20ab['subType']['startsWith']('tablePaste')){if(!_0x4e20ab['attributes']['tablePasteChainId']){_0x22f419=!0x1;break;}if(_0x4e20ab['id']!=_0x1c9e92['id']&&_0x4e20ab['attributes']['tablePasteChainId']==_0x334cde){_0x405ebb=!0x1;break;}}_0x22f419&&_0x405ebb&&(_0x1c9e92['removeMarkers'](),_0x5e37f4=!0x0);}}for(const _0x3dc734 of _0x2601c7)_0x2fab6c['remove'](_0x3dc734);for(const _0x43bd09 of _0x48a227)_0x2fab6c['unwrap'](_0x43bd09);return _0x5e37f4;}),_0x5a385d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x17b15f=>_0x229622(_0x17b15f),'converterPriority':'high'}),_0x5a385d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xcfcec8,_0x424f2b)=>_0x424f2b['options']['showSuggestionHighlights']?_0x229622(_0xcfcec8,!0x1):null,'converterPriority':'high'});const _0xf11761=_0x5a385d['editing']['view'];this['listenTo'](_0xf11761['document'],'clipboardOutput',(_0x48b708,_0x1139fa)=>{const _0x5b7418=[];for(const _0x47d466 of _0xf11761['createRangeIn'](_0x1139fa['content'])['getItems']())_0x47d466['is']('element','suggestion-td')&&_0x5b7418['push'](_0x47d466);_0xf11761['change'](_0x2e8912=>{for(const _0xcec983 of _0x5b7418)_0x2e8912['move'](_0x2e8912['createRangeIn'](_0xcec983),_0x2e8912['createPositionBefore'](_0xcec983)),_0x2e8912['remove'](_0xcec983);});});}}function Oe(_0x327872){if(_0x327872['isEmpty'])return!0x0;const _0x20a5f8=_0x327872['getChild'](0x0);return _0x20a5f8['is']('element','paragraph')&&_0x20a5f8['isEmpty'];}function Ue(_0x315059,_0x3ed105={},_0xdc2453){for(const {isAnchor:_0x580524,cellHeight:_0x5e725b,cellWidth:_0xc3c56}of _0xdc2453['createTableWalker'](_0x315059,{'includeAllSlots':!0x0,..._0x3ed105}))if(!_0x580524||0x1!=_0x5e725b||0x1!=_0xc3c56)return!0x1;return!0x0;}class Dt extends _0x32720e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x347ab5=this['editor']['plugins']['get']('TrackChangesEditing');_0x347ab5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x347ab5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x347ab5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x347ab5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x347ab5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x347ab5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1cb83b,_0x5cdfc5){const _0x5444cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46dcaa=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x165768=_0x5cdfc5['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1ac11a=_0x46dcaa['getColumnGroupElement'](_0x165768);let _0x5890c0=_0x1ac11a?_0x46dcaa['getTableColumnsWidths'](_0x1ac11a):null,_0x5d12c3=_0x165768['getAttribute']('tableWidth')||null;const _0x3cf089=_0x5cdfc5['tableWidth']||_0x5d12c3,_0xaae0db=_0x5cdfc5['columnWidths']||_0x5890c0,_0x16b2b6=this['editor']['plugins']['get']('Users')['me'];for(const _0xa540c3 of _0x5444cc['getSuggestions']()){const _0xf4610e=_0xa540c3['getContainedElement']();if('resizeTable'===_0xa540c3['subType']&&_0xf4610e===_0x165768){_0xa540c3['author']!==_0x16b2b6&&_0xa540c3['discard']();const _0x85944f=_0xa540c3['data']['commandParams'];_0x5d12c3=_0x85944f[0x0]['tableWidth'],_0x5890c0=_0x85944f[0x0]['columnWidths'];break;}}_0x1cb83b({'table':_0x165768,'tableWidth':_0x3cf089,'columnWidths':_0xaae0db}),_0x5444cc['markBlockFormat'](_0x165768,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5d12c3,'columnWidths':_0x5890c0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xa2b4e7){if('formatBlock'!=_0xa2b4e7['type']&&'formatInline'!=_0xa2b4e7['type'])return;const {data:_0x5c79e2}=_0xa2b4e7;if(_0x5c79e2&&'resizeTable'===_0x5c79e2['formatGroupId']){const _0x32ad5c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x32ad5c)};}}}class Mt extends _0x32720e{['afterInit'](){const _0x87aa63=this['editor'];_0x87aa63['plugins']['has']('Template')&&_0x87aa63['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x32720e{['afterInit'](){const _0x218cb2=this['editor'];if(!_0x218cb2['commands']['get']('insertTableOfContents'))return;_0x218cb2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1db4af=_0x218cb2['plugins']['get']('TrackChangesEditing'),_0x4cea1b=_0x218cb2['locale'];_0x1db4af['descriptionFactory']['registerElementLabel']('tableOfContents',_0x143d2f=>o(_0x4cea1b,'ELEMENT_TABLE_OF_CONTENTS',_0x143d2f));}}class Bt extends _0x32720e{['afterInit'](){const _0x2dc32b=this['editor'];if(!_0x2dc32b['plugins']['has']('Title'))return;const _0x1cd62b=_0x2dc32b['plugins']['get']('TrackChangesEditing');_0x1cd62b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2dc32b['locale'],'ELEMENT_TITLE')),_0x2dc32b['model']['document']['registerPostFixer'](_0x348347=>{let _0xd619f9=!0x1;const _0x42df37=Array['from'](_0x2dc32b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x338abf,data:_0x468bf7}of _0x42df37){const {group:_0x4637d9}=_0x1cd62b['_splitMarkerName'](_0x338abf);if('suggestion'!==_0x4637d9||!_0x468bf7['newRange'])continue;const _0x5b485a=_0x468bf7['newRange'],_0x32f626=_0x5b485a['end']['nodeBefore'];if(!_0x32f626||!_0x32f626['is']('element','title-content'))continue;if(!_0x5b485a['start']['isTouching'](_0x5b485a['end']))continue;const _0x1ad34e=_0x2dc32b['model']['schema']['getNearestSelectionRange'](_0x5b485a['end'],'forward');if(_0x1ad34e&&_0x1ad34e['isCollapsed']){const _0x537cc1=_0x348347['createRange'](_0x5b485a['start'],_0x1ad34e['start']);_0x537cc1['isEqual'](_0x5b485a)||(_0x348347['updateMarker'](_0x338abf,{'range':_0x537cc1}),_0xd619f9=!0x0);}_0xd619f9||(_0x348347['removeMarker'](_0x338abf),_0xd619f9=!0x0);}return _0xd619f9;});}}class Ot extends _0x32720e{['afterInit'](){const _0x82d84d=this['editor'],_0x2a1c24=_0x82d84d['plugins']['get']('TrackChangesEditing');_0x82d84d['plugins']['has']('Uploadcare')&&(_0x2a1c24['enableCommand']('uploadcare'),_0x82d84d['plugins']['has']('UploadcareImageEdit')&&(_0x2a1c24['enableCommand']('uploadcareImageEdit'),_0x2a1c24['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2a1c24['registerBlockAttribute']('uploadcareImageId'),_0x2a1c24['descriptionFactory']['registerDescriptionCallback'](_0x24f067=>{if('attribute'!=_0x24f067['type'])return;const {data:_0x5d4e1a}=_0x24f067;return _0x5d4e1a&&'uploadcareImageId'==_0x5d4e1a['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x32720e{['afterInit'](){const _0x117c09=this['editor'],_0x424e33=_0x117c09['plugins']['get']('TrackChangesEditing');_0x117c09['plugins']['has']('UndoEditing')&&(_0x424e33['enableCommand']('undo'),_0x424e33['enableCommand']('redo'));}}class Tt extends _0x32720e{static get['requires'](){return[vt];}['afterInit'](){const _0xf939a2=this['editor'];if(!_0xf939a2['plugins']['has']('TableCaptionEditing'))return;_0xf939a2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x32720e{['tableProperties'];['tableCellProperties'];constructor(_0x993d67){super(_0x993d67),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 _0xc5f488=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xad3018 of this['tableProperties'])_0xc5f488['enableCommand'](_0xad3018,(_0x5936e2,_0x259276)=>{const _0x1b2291=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xad3018,[_0x1b2291],this['tableProperties'],'tableProperties',_0x5936e2,_0x259276);});_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xc5f488['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2c6150,_0x232a56)=>this['handleDiscardAction'](this['tableProperties'],_0x2c6150,_0x232a56)),_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x429ec5 of this['tableCellProperties'])_0xc5f488['enableCommand'](_0x429ec5,(_0x194200,_0x4d76fe)=>{const _0x1b4364=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x429ec5,_0x1b4364,this['tableCellProperties'],'tableCellProperties',_0x194200,_0x4d76fe);});_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xc5f488['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3996f9,_0x9e49cc)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3996f9,_0x9e49cc)),_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xc5f488['descriptionFactory']['registerDescriptionCallback'](_0x20f475=>this['handleSuggestionDescription'](_0x20f475));}['_handlePropertyChange'](_0x21a5b7,_0x525b4d,_0x53c0fd,_0x111f7d,_0x2fe765,_0x120631){const _0x480d37=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x120631['batch'],()=>{for(const _0x560ab8 of _0x525b4d){if(this['_getSuggestion'](_0x560ab8,_0x111f7d))_0x2fe765(_0x120631);else{const _0x28a65d={};for(const _0x296448 of _0x53c0fd){const _0x201458=_0x560ab8['getAttribute'](_0x296448);void 0x0!==_0x201458&&(_0x28a65d[_0x296448]=_0x201458);}_0x2fe765(_0x120631),_0x480d37['markBlockFormat'](_0x560ab8,{'commandParams':[_0x28a65d]},[],_0x111f7d);}}});}['handleDiscardAction'](_0x51efcc,_0x23aa40,_0x123350){const _0x3b7c4a=_0x23aa40[0x0]['start']['nodeAfter'],_0x346dab=_0x123350['commandParams'][0x0];this['editor']['model']['change'](_0x1ab02d=>{for(const _0xfe91ff of _0x51efcc)void 0x0!==_0x346dab[_0xfe91ff]?_0x1ab02d['setAttribute'](_0xfe91ff,_0x346dab[_0xfe91ff],_0x3b7c4a):_0x1ab02d['removeAttribute'](_0xfe91ff,_0x3b7c4a);});}['handleSuggestionDescription'](_0x43991d){if(_0x43991d['data'])switch(_0x43991d['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'](_0x5e4471,_0x33de0e){const _0xab24a5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x801eca of _0xab24a5['getSuggestions']({'skipNotAttached':!0x0})){const _0x1b4dff=_0x801eca['getContainedElement']();if(_0x801eca['subType']===_0x33de0e&&_0x1b4dff===_0x5e4471)return _0x801eca;}return null;}}const m='$elementName';class p extends _0x32720e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x48e0a0,_0x2ac36e,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57ab2f){super(_0x57ab2f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x59f05c,_0x2a94ad,_0x31a2a8,_0x1f85bd)=>{this['_model']['change'](()=>{for(const _0x4bb3a0 of[..._0x1f85bd,..._0x31a2a8])this['_model']['markers']['has'](_0x4bb3a0)&&_0x57ab2f['editing']['reconvertMarker'](_0x4bb3a0);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x57ab2f['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(),_0x57ab2f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x57ab2f['config']['get']('trackChanges.trackFormatChanges'),_0x57ab2f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x57ab2f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x57ab2f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3ced0f=this['editor'],_0x5b2311=(_0x38797c,_0x23ec46)=>{if('attribute'!=_0x38797c)return'ck-suggestion-marker-'+_0x38797c;const _0x25c188=_0x23ec46['split']('|')[0x0];return this['_isBlockAttribute'](_0x25c188)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3ced0f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x307c82=>{const {id:_0x32f3ff,authorId:_0x17fbc7,type:_0x3673da,subType:_0xb5af14}=this['_splitMarkerName'](_0x307c82['markerName']),_0x4d9f6a=['ck-suggestion-marker',_0x5b2311(_0x3673da,_0xb5af14)];let _0xb84249=0xbb8;return this['activeMarkers']['includes'](_0x307c82['markerName'])&&(_0x4d9f6a['push']('ck-suggestion-marker--active'),_0xb84249=0xbc2),'deletion'==_0x3673da&&(_0xb84249+=0x5),{'classes':_0x4d9f6a,'attributes':{'data-suggestion':_0x32f3ff,'data-author-id':_0x17fbc7},'priority':_0xb84249};}}),_0x3ced0f['conversion']['for']('dataDowncast')['add'](_0x4b1ccb=>{_0x4b1ccb['on']('addMarker:suggestion',(_0x5063f4,_0x11d7d1,_0x23df12)=>{if(!_0x23df12['options']['showSuggestionHighlights'])return;const _0x969968=_0x11d7d1['item'];if(!_0x969968)return;const _0x1556a6=_0x23df12['mapper']['toViewElement'](_0x969968);_0x3ced0f['model']['schema']['isObject'](_0x969968)&&_0x1556a6&&!_0x1556a6['getCustomProperty']('widget')&&_0x1556a6['is']('containerElement')&&_0x1a00cd(_0x1556a6,_0x23df12['writer']);},{'priority':'high'});}),_0x3ced0f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x58b49f,_0x488d10)=>{if(!_0x488d10['options']['showSuggestionHighlights'])return null;const {type:_0x2deaea,subType:_0x21128e}=this['_splitMarkerName'](_0x58b49f['markerName']);return{'classes':['ck-suggestion-marker',_0x5b2311(_0x2deaea,_0x21128e)],'priority':0xbb8};}});const _0x412b4b=({showActiveMarkers:_0x404646=!0x0,isAttributeSuggestion:_0x27cbdd=!0x1}={})=>(_0x20a3df,_0x30b4a9,_0x2b9903)=>{if(!_0x30b4a9['item'])return;const {id:_0x300ef2,authorId:_0x3da117}=this['_splitMarkerName'](_0x30b4a9['markerName']);if(_0x27cbdd){const _0x4a88e4=this['_suggestions']['get'](_0x300ef2),_0x2761f9=this['_getAttributeKey'](_0x4a88e4);if(!this['_isBlockAttribute'](_0x2761f9))return;}if(_0x30b4a9['item']['is']('selection'))return void _0x2b9903['consumable']['consume'](_0x30b4a9['item'],_0x20a3df['name']);const _0x382df2=_0x2b9903['mapper']['toViewElement'](_0x30b4a9['item']);if(_0x30b4a9['item']['is']('element')&&_0x3ced0f['model']['schema']['isBlock'](_0x30b4a9['item'])&&!_0x382df2['getCustomProperty']('addHighlight')){_0x2b9903['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x382df2),_0x2b9903['writer']['setAttribute']('data-suggestion',_0x300ef2,_0x382df2),_0x2b9903['writer']['setAttribute']('data-author-id',_0x3da117,_0x382df2),_0x2b9903['mapper']['bindElementToMarker'](_0x382df2,_0x30b4a9['markerName']),_0x404646&&(this['activeMarkers']['includes'](_0x30b4a9['markerName'])?_0x2b9903['writer']['addClass']('ck-suggestion-marker--active',_0x382df2):_0x2b9903['writer']['removeClass']('ck-suggestion-marker--active',_0x382df2));for(const _0xc0c354 of _0x3ced0f['model']['createRangeIn'](_0x30b4a9['item'])['getItems']())_0x2b9903['consumable']['consume'](_0xc0c354,_0x20a3df['name']);_0x2b9903['consumable']['consume'](_0x30b4a9['item'],_0x20a3df['name']);}};_0x3ced0f['conversion']['for']('dataDowncast')['add'](_0x59373d=>{_0x59373d['on']('addMarker:suggestion:formatBlock',(_0x22a593,_0x3ef6d6,_0x1de6c2)=>{_0x1de6c2['options']['showSuggestionHighlights']&&_0x412b4b({'showActiveMarkers':!0x1})(_0x22a593,_0x3ef6d6,_0x1de6c2);},{'priority':'highest'});}),_0x3ced0f['conversion']['for']('dataDowncast')['add'](_0x1d78c9=>{_0x1d78c9['on']('addMarker:suggestion:attribute',(_0x1911a6,_0x353de9,_0x5e1661)=>{_0x5e1661['options']['showSuggestionHighlights']&&_0x412b4b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1911a6,_0x353de9,_0x5e1661);},{'priority':'highest'});}),_0x3ced0f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1e66c8,_0x2990c1)=>_0x2990c1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1e66c8['substr'](0xb)}}),_0x3ced0f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xa0af7d,{writer:_0x1249c2})=>{let _0x220250='suggestion:'+_0xa0af7d['getAttribute']('suggestion-type')+':'+_0xa0af7d['getAttribute']('id');return _0xa0af7d['getAttribute']('marker-count')&&(_0x220250+=':'+_0xa0af7d['getAttribute']('marker-count')),_0x1249c2['createElement']('$marker',{'data-name':_0x220250});}}),_0x3ced0f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3ced0f['conversion']['for']('editingDowncast')['add'](_0xed3887=>{_0xed3887['on']('addMarker:suggestion:formatBlock',_0x412b4b(),{'priority':'high'});}),_0x3ced0f['conversion']['for']('editingDowncast')['add'](_0x49a143=>{_0x49a143['on']('addMarker:suggestion:attribute',_0x412b4b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3ced0f['conversion']['for']('editingDowncast')['add'](_0x1a0dd5=>{_0x1a0dd5['on']('removeMarker:suggestion:formatBlock',(_0x3be4ba,_0x237b68,_0x5d6127)=>{const _0x34cead=_0x5d6127['mapper']['markerNameToElements'](_0x237b68['markerName']);if(_0x34cead){for(const _0x2393d5 of _0x34cead)_0x2393d5['getCustomProperty']('addHighlight')||(_0x5d6127['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2393d5),_0x5d6127['writer']['removeAttribute']('data-suggestion',_0x2393d5),_0x5d6127['writer']['removeAttribute']('data-author-id',_0x2393d5),_0x5d6127['mapper']['unbindElementFromMarkerName'](_0x2393d5,_0x237b68['markerName']));}},{'priority':'high'});}),_0x3ced0f['conversion']['for']('editingDowncast')['add'](_0x5d4b92=>{_0x5d4b92['on']('removeMarker:suggestion:attribute',(_0x2397be,_0x16985e,_0x1f20e8)=>{const _0x524764=_0x1f20e8['mapper']['markerNameToElements'](_0x16985e['markerName']);if(!_0x524764)return;const {id:_0x7ebc56}=this['_splitMarkerName'](_0x16985e['markerName']),_0x13cafd=this['_suggestions']['get'](_0x7ebc56),_0xfbbc9a=this['_getAttributeKey'](_0x13cafd);if(this['_isBlockAttribute'](_0xfbbc9a)){for(const _0x44e7e9 of _0x524764)_0x44e7e9['getCustomProperty']('addHighlight')||(_0x1f20e8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x44e7e9),_0x1f20e8['writer']['removeAttribute']('data-suggestion',_0x44e7e9),_0x1f20e8['writer']['removeAttribute']('data-author-id',_0x44e7e9),_0x1f20e8['mapper']['unbindElementFromMarkerName'](_0x44e7e9,_0x16985e['markerName']));}},{'priority':'high'});}),_0x3ced0f['model']['document']['registerPostFixer'](_0xeff71d=>{let _0x33672b=!0x1;const _0x3b44ac=Array['from'](_0x3ced0f['model']['document']['differ']['getChangedMarkers']()),_0x2e87aa=new Set();for(const {name:_0x3708af,data:_0x124e72}of _0x3b44ac){const {group:_0x52979e,type:_0x592dbb,subType:_0x51a9ad,id:_0x3f08aa}=this['_splitMarkerName'](_0x3708af);if('suggestion'!==_0x52979e)continue;const _0x312c92=this['_suggestions']['get'](_0x3f08aa);if(null!=_0x124e72['newRange']){'formatInline'==_0x592dbb&&(_0x33672b=_0x33672b||Gt(_0x124e72['newRange'],_0x3708af,_0xeff71d,_0x3ced0f['model']['schema']));const _0x157719='attribute'==_0x592dbb&&this['_isBlockAttribute'](_0x51a9ad['split']('|')[0x0]);if(_0x124e72['newRange']['isCollapsed']||'$graveyard'==_0x124e72['newRange']['root']['rootName']||'formatBlock'==_0x592dbb&&!Lt(_0x124e72['newRange'])||_0x157719&&!Lt(_0x124e72['newRange'])||'deletion'==_0x592dbb&&!(!Pt(_0xcf0357=_0x124e72['newRange'])&&!function(_0x18dd74){return _0x18dd74['start']['parent']==_0x18dd74['end']['nodeBefore']&&_0x18dd74['start']['isAtEnd'];}(_0xcf0357)))_0xeff71d['removeMarker'](_0x3708af),_0x33672b=!0x0;else{if(!_0x312c92||!_0x312c92['isInContent'])continue;if(_0x124e72['newRange']&&_0x124e72['oldRange']&&_0x124e72['newRange']['isEqual'](_0x124e72['oldRange']))continue;_0x2e87aa['add'](_0x312c92);}}}var _0xcf0357;return _0x2e87aa['size']>0x0&&(_0x33672b=!!this['_joinWithAdjacentSuggestions'](_0x2e87aa)||_0x33672b),_0x33672b;}),_0x3ced0f['model']['document']['registerPostFixer'](_0x5831cc=>{let _0x6daa41=!0x1;for(const _0x895247 of _0x3ced0f['model']['document']['differ']['getChanges']())if('insert'==_0x895247['type'])for(const _0x181d18 of this['_suggestions']['values']()){if(_0x181d18['isMultiRange']||!_0x181d18['isInContent'])continue;const _0x1d566a='formatBlock'==_0x181d18['type'],_0x4ebd12=this['_getAttributeKey'](_0x181d18),_0x865ea1=_0x4ebd12&&this['_isBlockAttribute'](_0x4ebd12);if(!_0x1d566a&&!_0x865ea1)continue;const _0x29a4e1=_0x181d18['getFirstRange']();if(_0x29a4e1['start']['parent']!=_0x29a4e1['end']['parent']&&!_0x29a4e1['end']['isAtEnd']){const _0x4b0da4=_0x3ced0f['model']['createPositionAt'](_0x29a4e1['start']['nodeAfter'],'end'),_0x560ced=_0x3ced0f['model']['createRange'](_0x29a4e1['start'],_0x4b0da4);_0x5831cc['updateMarker'](_0x181d18['getFirstMarker'](),{'range':_0x560ced}),_0x6daa41=!0x0;}}return _0x6daa41;}),_0x3ced0f['model']['document']['registerPostFixer'](_0x119d2e=>this['_processAttributeChanges'](_0x119d2e)),_0x3ced0f['model']['document']['registerPostFixer'](_0x2114dd=>!_0x2114dd['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2114dd)),_0x3ced0f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3ced0f['model']['document']['on']('change:data',(_0x47f451,_0x52e9c1)=>{if(!_0x52e9c1['isLocal']||_0x52e9c1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4757ed=_0x3ced0f['model']['document']['differ']['getChanges']();if(0x0==_0x4757ed['length'])return;const _0x84f279=[],_0x8b9e69=_0x4757ed['filter'](_0x15ccfb=>'attribute'==_0x15ccfb['type']),_0x239460=_0x4757ed['filter'](_0x3ac6e4=>'insert'==_0x3ac6e4['type']&&'$text'!=_0x3ac6e4['name']);for(const _0xb65b5f of _0x8b9e69)this['_isRegisteredAttribute'](_0xb65b5f['attributeKey'])&&_0x84f279['push']({'key':_0xb65b5f['attributeKey'],'newValue':_0xb65b5f['attributeNewValue'],'oldValue':_0xb65b5f['attributeOldValue'],'range':Jt(_0xb65b5f['range'],_0x3ced0f['model'])});for(const _0x5ab3f4 of _0x239460){if('rename'!=_0x5ab3f4['action']&&'refresh'!=_0x5ab3f4['action'])continue;const _0xb3a431=Ht(_0x5ab3f4['position']['nodeAfter'],_0x3ced0f['model']),_0x45a875=_0x5ab3f4['before'];'rename'==_0x5ab3f4['action']&&_0x84f279['push']({'key':m,'newValue':_0x5ab3f4['name'],'oldValue':_0x45a875['name'],'range':_0xb3a431});for(const [_0x4e4818,_0x190854]of _0x45a875['attributes']){if(!this['_isRegisteredAttribute'](_0x4e4818))continue;const _0x2b95e2=_0x5ab3f4['attributes']['get'](_0x4e4818);_0x190854!==_0x2b95e2&&_0x84f279['push']({'key':_0x4e4818,'newValue':_0x2b95e2,'oldValue':_0x190854,'range':_0xb3a431});}for(const [_0x49ead0,_0x4f9fd2]of _0x5ab3f4['attributes'])this['_isRegisteredAttribute'](_0x49ead0)&&(_0x45a875['attributes']['has'](_0x49ead0)||_0x84f279['push']({'key':_0x49ead0,'newValue':_0x4f9fd2,'oldValue':null,'range':_0xb3a431}));}0x0!=_0x84f279['length']&&_0x3ced0f['model']['enqueueChange'](_0x52e9c1,_0x46936b=>{const _0x23224c=_0x2cd620();for(const {range:_0x4051c6,key:_0x1a6af6,oldValue:_0xef45c2,newValue:_0x574459}of _0x84f279)this['markAttributeChange'](_0x4051c6,_0x1a6af6,_0xef45c2,_0x574459,{'groupId':_0x23224c});this['_reduceExistingSuggestions'](_0x46936b,_0x84f279);});},{'priority':'lowest'}),_0x3ced0f['model']['markers']['on']('update:suggestion',(_0xf423f5,_0x1d2bf6,_0x5abf2f)=>{if(null==_0x5abf2f){const {id:_0x395948}=this['_splitMarkerName'](_0x1d2bf6['name']),_0x198eed=this['_suggestions']['get'](_0x395948);_0x198eed&&_0x198eed['addMarkerName'](_0x1d2bf6['name']);}}),_0x3ced0f['model']['document']['on']('change:data',()=>{const _0x4e5c1a=Array['from'](_0x3ced0f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5e030e=>'suggestion'===this['_splitMarkerName'](_0x5e030e['name'])['group']);if(0x0===_0x4e5c1a['length'])return;_0x4e5c1a['sort']((_0x2e89c2,_0x2f9a63)=>{const _0x46721f=_0x2e89c2['data']['oldRange'],_0x253342=_0x2f9a63['data']['oldRange'];return null===_0x46721f&&null===_0x253342?0x0:null===_0x46721f&&null!==_0x253342?-0x1:null!==_0x46721f&&null===_0x253342?0x1:_0x46721f['start']['isBefore'](_0x253342['start'])?-0x1:0x1;});const _0x321888=new Set(),_0x424b4d=new Set();for(const {name:_0x5cc538,data:_0x43c00a}of _0x4e5c1a){const {id:_0x5545d8}=this['_splitMarkerName'](_0x5cc538);if(null===_0x43c00a['oldRange']){const _0x44b7d8=this['_handleNewSuggestionMarker'](_0x5cc538);_0x424b4d['add'](_0x44b7d8);}else{const _0x4a6b17=this['_suggestions']['get'](_0x5545d8);null!==_0x43c00a['newRange']||_0x4a6b17['isInContent']?(_0x321888['add'](_0x4a6b17['head']),_0x424b4d['add'](_0x4a6b17)):this['_removeSuggestion'](_0x4a6b17);}}_0x424b4d['size']>0x0&&this['_refreshSuggestionsChain'](_0x424b4d);for(const _0x1767b0 of _0x321888)this['fire']('suggestionChanged',_0x1767b0);}),_0x3ced0f['model']['on']('applyOperation',(_0xab8afa,_0x24212f)=>{const _0x27431f=_0x24212f[0x0];if(!this['_suggestions']['size'])return;if(!_0x27431f['isDocumentOperation'])return;if(_0x27431f['batch']['isUndo']||!_0x27431f['batch']['isLocal'])return;let _0x33c04d,_0x490932;switch(_0x27431f['type']){case'insert':_0x33c04d=_0x3ced0f['model']['createPositionAt'](_0x27431f['position']),_0x490932=_0x33c04d['getShiftedBy'](_0x27431f['howMany']);break;case'split':_0x33c04d=_0x3ced0f['model']['createPositionAt'](_0x27431f['splitPosition']),_0x490932=_0x3ced0f['model']['createPositionAt'](_0x27431f['moveTargetPosition']);break;case'move':_0x33c04d=_0x3ced0f['model']['createPositionAt'](_0x27431f['targetPosition']),_0x490932=_0x33c04d['getShiftedBy'](_0x27431f['howMany']);break;default:return;}const _0x54ad02=_0x3ced0f['model']['createRange'](_0x33c04d,_0x490932);_0x3ced0f['model']['change'](()=>{for(const {suggestion:_0x3d35cc,meta:_0x3b8930}of this['_findSuggestions'](_0x54ad02)){if(_0x3d35cc['isMultiRange'])continue;if('formatInline'==_0x3d35cc['type'])continue;const _0x2b8f06=this['_getAttributeKey'](_0x3d35cc);if(_0x2b8f06&&this['_isBlockAttribute'](_0x2b8f06)&&'split'!=_0x27431f['type'])continue;const _0x4c0225=_0x3d35cc['data']&&_0x3d35cc['data']['multipleBlocks'];('formatBlock'!=_0x3d35cc['type']||'split'==_0x27431f['type']&&!_0x4c0225)&&(_0x3b8930['containsRangeInObject']||'insertion'==_0x3d35cc['type']&&_0x3b8930['isOwn']||_0x3d35cc['getFirstRange']()['containsRange'](_0x54ad02)&&this['_breakSuggestionMarker'](_0x3d35cc,_0x33c04d,_0x490932));}});},{'priority':'lowest'}),_0x3ced0f['model']['on']('deleteContent',(_0x2e735a,_0x166e1b)=>{const _0x41d1a2=_0x166e1b[0x0],_0x2f19c7=_0x166e1b[0x1];if(_0x2f19c7&&_0x2f19c7['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x41d1a2['isCollapsed'])return;const _0x7dc6aa=_0x3ced0f['model']['schema'],{start:_0x1015a3,end:_0x2e9554}=_0x41d1a2['getFirstRange'](),_0x7e0caf=_0x1015a3['nodeAfter']&&_0x7dc6aa['isLimit'](_0x1015a3['nodeAfter'])?null:_0x7dc6aa['getNearestSelectionRange'](_0x1015a3,'forward'),_0x30bd98=_0x2e9554['nodeBefore']&&_0x7dc6aa['isLimit'](_0x2e9554['nodeBefore'])?null:_0x7dc6aa['getNearestSelectionRange'](_0x2e9554,'backward'),_0x5396e6=_0x3ced0f['model']['createRange'](_0x7e0caf?_0x7e0caf['start']:_0x1015a3,_0x30bd98?_0x30bd98['end']:_0x2e9554);_0x3ced0f['model']['change'](_0x1a1a78=>{this['markDeletion'](_0x5396e6);const _0xc2910a=_0x3ced0f['model']['schema']['getNearestSelectionRange'](_0x5396e6['start']);_0x41d1a2['is']('documentSelection')?_0x1a1a78['setSelection'](_0xc2910a):_0x41d1a2['setTo'](_0xc2910a);}),_0x2e735a['stop']();},{'priority':_0x4368d6['normal']+0xa}),_0x3ced0f['model']['on']('insertContent',(_0x373446,_0x156b82)=>{const _0x15d2df=_0x156b82[_0x156b82['length']-0x1];_0x15d2df&&_0x15d2df['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3ced0f['model']['change'](()=>{let _0x1fe24d=_0x3ced0f['model']['insertContent'](_0x156b82[0x0],_0x156b82[0x1],_0x156b82[0x2],{'forceDefaultExecution':!0x0});if(!_0x1fe24d)return;_0x373446['return']=_0x1fe24d['clone']();const _0x46ad45=_0x1fe24d['end']['nodeBefore'],_0x4bce81=_0x3ced0f['model']['schema'];_0x46ad45&&_0x4bce81['isBlock'](_0x46ad45)&&!_0x4bce81['isObject'](_0x46ad45)&&(_0x1fe24d=_0x3ced0f['model']['createRange'](_0x1fe24d['start'],_0x3ced0f['model']['createPositionAt'](_0x46ad45,'end'))),this['markInsertion'](_0x1fe24d);}),_0x373446['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5ba808=new O(_0x3ced0f,this['_suggestions']);_0x3ced0f['commands']['add']('acceptSuggestion',_0x5ba808),this['enableCommand']('acceptSuggestion');const _0x480f5a=new R(_0x3ced0f,this['_suggestions']);_0x3ced0f['commands']['add']('discardSuggestion',_0x480f5a),this['enableCommand']('discardSuggestion'),_0x3ced0f['commands']['add']('acceptAllSuggestions',new x(_0x3ced0f,_0x5ba808,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3ced0f['commands']['add']('discardAllSuggestions',new x(_0x3ced0f,_0x480f5a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3ced0f['commands']['add']('acceptSelectedSuggestions',new E(_0x3ced0f,_0x5ba808,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3ced0f['commands']['add']('discardSelectedSuggestions',new E(_0x3ced0f,_0x480f5a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3909cf=_0x3ced0f['plugins']['get']('CommentsRepository');this['listenTo'](_0x3909cf,'addComment',(_0x493718,{threadId:_0x3f7417})=>{const _0x559c76=this['_suggestions']['get'](_0x3f7417);_0x559c76&&_0x559c76['commentThread']&&0x1===_0x559c76['commentThread']['length']&&this['_updateSuggestionData'](_0x3f7417,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3909cf,'removeComment',(_0x40a61b,{threadId:_0x3180b8})=>{const _0x38d143=this['_suggestions']['get'](_0x3180b8);_0x38d143&&_0x38d143['commentThread']&&!_0x38d143['commentThread']['length']&&this['_updateSuggestionData'](_0x3180b8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3409c8){const _0x14a9ac=_0x38c42e([0x4a,0x38,0x74,0x55,0x6f,0x66,0x68,0x36,0x75,0x62,0x72,0x50,0x58,0x30,0x63,0x65,0x32,0x77,0x4c,0x7a,0x4b,0x33,0x76,0x6e,0x44,0x64,0x70,0x43,0x52,0x37,0x35,0x41,0x78,0x45,0x4d,0x6d,0x69,0x71,0x46,0x31,0x67,0x57,0x6b,0x61,0x4f,0x4e,0x34,0x47,0x49,0x51,0x54,0x39,0x6a,0x59,0x73,0x5a,0x79,0x53,0x42,0x48,0x56,0x6c]),_0x133c0c=0x5b82dd74,_0x198da7=0x5b858304^_0x133c0c,_0x286424=window[_0x38c42e([0x44,0x61,0x74,0x65])][_0x38c42e([0x6e,0x6f,0x77])](),_0x579595=_0x3409c8[_0x38c42e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe75c36=new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16eab7=>{_0x579595[_0x38c42e([0x6f,0x6e,0x63,0x65])](_0x38c42e([0x72,0x65,0x61,0x64,0x79]),_0x16eab7);}),_0x5b2c25={[_0x38c42e([0x6b,0x74,0x79])]:_0x38c42e([0x45,0x43]),[_0x38c42e([0x75,0x73,0x65])]:_0x38c42e([0x73,0x69,0x67]),[_0x38c42e([0x63,0x72,0x76])]:_0x38c42e([0x50,0x2d,0x32,0x35,0x36]),[_0x38c42e([0x78])]:_0x38c42e([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]),[_0x38c42e([0x79])]:_0x38c42e([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]),[_0x38c42e([0x61,0x6c,0x67])]:_0x38c42e([0x45,0x53,0x32,0x35,0x36])},_0x2c9faa=_0x579595[_0x38c42e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38c42e([0x67,0x65,0x74])](_0x38c42e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x10f406(){let _0x4388af,_0x32712d=null,_0x194558=null;try{if(_0x2c9faa==_0x38c42e([0x47,0x50,0x4c]))return _0x38c42e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4388af=_0x6c1269(),!_0x4388af)return _0x38c42e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4388af[_0x38c42e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x194558=_0x18ccb3(_0x4388af[_0x38c42e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4388af[_0x38c42e([0x6a,0x74,0x69])])),await _0x1db4e6()?_0x1a53f2()?_0xfc139b()?_0x38c42e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1aca7e()?(_0x4388af[_0x38c42e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38c42e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32712d=_0xc67b0(_0x38c42e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4388af[_0x38c42e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38c42e([0x74,0x72,0x69,0x61,0x6c])&&(_0x32712d=_0xc67b0(_0x38c42e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16fdf5()):_0x38c42e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38c42e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38c42e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xf5154f){return _0x38c42e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xfc139b(){const _0x556ed3=[_0x38c42e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38c42e([0x74,0x72,0x69,0x61,0x6c])][_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4388af[_0x38c42e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x286424/0x3e8:0xe10*_0x198da7;return _0x4388af[_0x38c42e([0x65,0x78,0x70])]<_0x556ed3;}function _0x1a53f2(){const _0x27dd7f=_0x4388af[_0x38c42e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x27dd7f)return!0x1;if(_0x27dd7f[_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c42e([0x2a])))return!0x0;if(_0x27dd7f[_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c42e([0x54,0x43])))return!0x0;if(_0x27dd7f[_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c42e([0x52,0x54,0x43]))){if(_0x4b9930())return!0x0;if(_0x4686f0()||_0x3a934f())return!0x0;}return!0x1;}function _0x1aca7e(){const _0x2c0107=_0x4388af[_0x38c42e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c0107||0x0==_0x2c0107[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5dc8e1}=new URL(window[_0x38c42e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2c0107[_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dc8e1))return!0x0;const _0xf50e5f=_0x5dc8e1[_0x38c42e([0x73,0x70,0x6c,0x69,0x74])](_0x38c42e([0x2e]));return _0x2c0107[_0x38c42e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29818c=>_0x29818c[_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c42e([0x2a])))[_0x38c42e([0x6d,0x61,0x70])](_0x299fb2=>_0x299fb2[_0x38c42e([0x73,0x70,0x6c,0x69,0x74])](_0x38c42e([0x2e])))[_0x38c42e([0x73,0x6f,0x6d,0x65])](_0x599d=>_0xf50e5f[_0x38c42e([0x65,0x76,0x65,0x72,0x79])]((_0x168bee,_0x800552)=>_0x599d[_0x800552]===_0x168bee||_0x599d[_0x800552]===_0x38c42e([0x2a])));}function _0x16fdf5(){return _0x32712d&&_0x194558?new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10c485,_0x46a949)=>{_0x32712d[_0x38c42e([0x74,0x68,0x65,0x6e])](_0x10c485,_0x46a949),_0x194558[_0x38c42e([0x74,0x68,0x65,0x6e])](_0x2af316=>{_0x2af316!=_0x38c42e([0x56,0x61,0x6c,0x69,0x64])&&_0x10c485(_0x2af316);},_0x46a949);}):_0x32712d||_0x194558||_0x38c42e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18ccb3(_0x2eede6,_0x5ec2a9){return new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d815f=>{if(_0x5c2a6f())return _0x4d815f(_0x38c42e([0x56,0x61,0x6c,0x69,0x64]));_0x5255de(),_0x579595[_0x38c42e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38c42e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f671f=!0x1;const _0x21912d=_0x2cd620();function _0x386de3(_0x21c026){return!!_0x21c026&&(typeof _0x21c026===_0x38c42e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21c026===_0x38c42e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21c026[_0x38c42e([0x74,0x68,0x65,0x6e])]===_0x38c42e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21c026[_0x38c42e([0x63,0x61,0x74,0x63,0x68])]===_0x38c42e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fb422(_0x394915){_0x5db51d(_0x394915)[_0x38c42e([0x74,0x68,0x65,0x6e])](_0xc6127f=>{if(!_0xc6127f||_0xc6127f[_0x38c42e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38c42e([0x6f,0x6b]))return _0x38c42e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2878fe(_0x4c7c21(_0x21912d+_0x5ec2a9))!=_0xc6127f[_0x38c42e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38c42e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38c42e([0x56,0x61,0x6c,0x69,0x64]);})[_0x38c42e([0x74,0x68,0x65,0x6e])](_0x4b4465=>(_0x43ace8(),_0x4b4465),()=>{const _0x2b9213=_0x1f9bca();return null==_0x2b9213?(_0x43ace8(),_0x38c42e([0x56,0x61,0x6c,0x69,0x64])):_0x38c42e(_0x286424-_0x2b9213>(0x7f8e5974^_0x133c0c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38c42e([0x74,0x68,0x65,0x6e])](_0x4d815f)[_0x38c42e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d815f(_0x38c42e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7125e7=0x5bb433f4^_0x133c0c;function _0x43ace8(){const _0xe7283a=_0x38c42e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2878fe(_0x4c7c21(_0x2eede6)),_0x5c68ce=_0x2d576e(_0x2878fe(window[_0x38c42e([0x4d,0x61,0x74,0x68])][_0x38c42e([0x63,0x65,0x69,0x6c])](_0x286424/_0x7125e7)));window[_0x38c42e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38c42e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe7283a,_0x5c68ce);}function _0x1f9bca(){const _0x5ae8cc=_0x38c42e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2878fe(_0x4c7c21(_0x2eede6)),_0x116a3a=window[_0x38c42e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38c42e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ae8cc);return _0x116a3a?window[_0x38c42e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d576e(_0x116a3a),0x10)*_0x7125e7:null;}function _0x5db51d(_0x1fb1a3){return new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d7143,_0x1c8c8f)=>{_0x1fb1a3[_0x38c42e([0x74,0x68,0x65,0x6e])](_0x2d7143,_0x1c8c8f),window[_0x38c42e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c8c8f,0x5b8309b4^_0x133c0c);});}}_0x579595[_0x38c42e([0x6f,0x6e])](_0x38c42e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xaa4d56,_0x152bb9)=>{if(_0x152bb9[0x0]!=_0x2eede6)return _0x4d815f(_0x38c42e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x152bb9[0x1]={..._0x152bb9[0x1],[_0x38c42e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21912d};},{[_0x38c42e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38c42e([0x68,0x69,0x67,0x68])}),_0x579595[_0x38c42e([0x6f,0x6e])](_0x38c42e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x305064=>{_0x386de3(_0x305064[_0x38c42e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f671f=!0x0,_0x2fb422(_0x305064[_0x38c42e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38c42e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38c42e([0x6c,0x6f,0x77])}),_0xe75c36[_0x38c42e([0x74,0x68,0x65,0x6e])](()=>{_0x2f671f||_0x4d815f(_0x38c42e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c2a6f(){return _0x579595[_0x38c42e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38c42e([0x76,0x69,0x65,0x77])][_0x38c42e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38c42e([0x61,0x75,0x74,0x6f]);}function _0x5255de(){_0x579595[_0x38c42e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38c42e([0x76,0x69,0x65,0x77])][_0x38c42e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38c42e([0x61,0x75,0x74,0x6f]);}}function _0xc67b0(_0x16b018){const _0x3742d4=[new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xae9e3c=>setTimeout(_0xae9e3c,0x5b8be3b8^_0x133c0c)),_0xe75c36[_0x38c42e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3161fc=>{let _0x4db6a8=0x0;_0x579595[_0x38c42e([0x6d,0x6f,0x64,0x65,0x6c])][_0x38c42e([0x6f,0x6e])](_0x38c42e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f8ce0,_0x2204ed)=>{_0x2204ed[0x0][_0x38c42e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4db6a8++,_0x4db6a8==(0x5b82dc8c^_0x133c0c)&&(_0x3161fc(),_0x4f8ce0[_0x38c42e([0x6f,0x66,0x66])]());});}))];return window[_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38c42e([0x72,0x61,0x63,0x65])](_0x3742d4)[_0x38c42e([0x74,0x68,0x65,0x6e])](()=>_0x16b018);}async function _0xcf60c0(){await _0xe75c36,_0x579595[_0x38c42e([0x6d,0x6f,0x64,0x65,0x6c])][_0x38c42e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x29fa37,_0x579595[_0x38c42e([0x6d,0x6f,0x64,0x65,0x6c])][_0x38c42e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x29fa37,_0x579595[_0x38c42e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38c42e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b9930(){return _0x4f858d(_0x38c42e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1a51c4(_0x38c42e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x38c42e([0x73,0x74,0x61,0x74,0x65])]==_0x38c42e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4686f0(){return _0x4f858d(_0x38c42e([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 _0x3a934f(){return _0x4f858d(_0x38c42e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x11f813(_0x90cf62){const _0x33d40e=_0x5cb202();_0x579595[_0x33d40e]=_0x38c42e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x90cf62,_0x90cf62!=_0x38c42e([0x56,0x61,0x6c,0x69,0x64])&&_0xcf60c0();}function _0x5cb202(){const _0x50651c=window[_0x38c42e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38c42e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38c42e([0x6e,0x6f,0x77])]())[_0x38c42e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38c42e([0x2e]),'');let _0x3f9fcc=_0x38c42e([0x4a]);for(let _0x2013f7=0x0;_0x2013f7<_0x50651c[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2013f7+=0x2){let _0x4d68ac=window[_0x38c42e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50651c[_0x38c42e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2013f7,_0x2013f7+0x2));_0x4d68ac>=_0x14a9ac[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d68ac-=_0x14a9ac[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f9fcc+=_0x14a9ac[_0x4d68ac];}return _0x3f9fcc;}function _0x6c1269(){const _0x5e94f7=_0x2c9faa[_0x38c42e([0x73,0x70,0x6c,0x69,0x74])](_0x38c42e([0x2e]));if(0x3!=_0x5e94f7[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x42cc22(_0x5e94f7[0x1]);function _0x42cc22(_0x4d8cfd){const _0x3dde48=_0x21101f(_0x4d8cfd);return _0x3dde48&&_0x136108()?_0x3dde48:null;function _0x136108(){const _0x5cf1aa=_0x3dde48[_0x38c42e([0x6a,0x74,0x69])],_0x2cf9d2=window[_0x38c42e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cf1aa[_0x38c42e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cf1aa[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4cc5e6={..._0x3dde48,[_0x38c42e([0x6a,0x74,0x69])]:_0x5cf1aa[_0x38c42e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5cf1aa[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4cc5e6[_0x38c42e([0x76,0x63])],_0x4c7c21(_0x4cc5e6)==_0x2cf9d2;}}}async function _0x1db4e6(){let _0x1ae047=!0x0;try{const _0x131d5b=_0x2c9faa[_0x38c42e([0x73,0x70,0x6c,0x69,0x74])](_0x38c42e([0x2e])),[_0x5cc292,_0x39b8f7,_0x308fd2]=_0x131d5b;return _0x159f5c(_0x5cc292),await _0x432dd0(_0x5cc292,_0x39b8f7,_0x308fd2),_0x1ae047;}catch(_0x36d19d){return!0x1;}function _0x159f5c(_0x12fdae){const _0x5cac90=_0x21101f(_0x12fdae);_0x5cac90&&_0x5cac90[_0x38c42e([0x61,0x6c,0x67])]==_0x38c42e([0x45,0x53,0x32,0x35,0x36])||(_0x1ae047=!0x1);}async function _0x432dd0(_0x558f93,_0x400f9b,_0x5d77d7){const _0x490e0e=window[_0x38c42e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38c42e([0x66,0x72,0x6f,0x6d])](_0x582820(_0x5d77d7),_0x3f9a9f=>_0x3f9a9f[_0x38c42e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x353855=new window[(_0x38c42e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38c42e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x558f93+_0x38c42e([0x2e])+_0x400f9b),_0x18fecd=window[_0x38c42e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38c42e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x18fecd)return;const _0x36a271=await _0x18fecd[_0x38c42e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38c42e([0x6a,0x77,0x6b]),_0x5b2c25,{[_0x38c42e([0x6e,0x61,0x6d,0x65])]:_0x38c42e([0x45,0x43,0x44,0x53,0x41]),[_0x38c42e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38c42e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38c42e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x18fecd[_0x38c42e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38c42e([0x6e,0x61,0x6d,0x65])]:_0x38c42e([0x45,0x43,0x44,0x53,0x41]),[_0x38c42e([0x68,0x61,0x73,0x68])]:{[_0x38c42e([0x6e,0x61,0x6d,0x65])]:_0x38c42e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x36a271,_0x490e0e,_0x353855)||(_0x1ae047=!0x1);}}function _0x21101f(_0x4580bf){return _0x4580bf[_0x38c42e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38c42e([0x65,0x79]))?JSON[_0x38c42e([0x70,0x61,0x72,0x73,0x65])](_0x582820(_0x4580bf)):null;}function _0x582820(_0x57bb42){return window[_0x38c42e([0x61,0x74,0x6f,0x62])](_0x57bb42[_0x38c42e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38c42e([0x2b]))[_0x38c42e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38c42e([0x2f])));}function _0x4c7c21(_0x3627ff){let _0x9550d6=0x1505;function _0x36f2ba(_0x3be3c2){for(let _0x19f1ea=0x0;_0x19f1ea<_0x3be3c2[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19f1ea++){const _0xf8f3f9=_0x3be3c2[_0x38c42e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19f1ea);_0x9550d6=(_0x9550d6<<0x5)+_0x9550d6+_0xf8f3f9,_0x9550d6&=_0x9550d6;}}function _0x278e2a(_0x5448ad){Array[_0x38c42e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5448ad)?_0x5448ad[_0x38c42e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x278e2a):_0x5448ad&&typeof _0x5448ad==_0x38c42e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38c42e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5448ad)[_0x38c42e([0x73,0x6f,0x72,0x74])]()[_0x38c42e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ec443,_0x4b84c1])=>{_0x36f2ba(_0x4ec443),_0x278e2a(_0x4b84c1);}):_0x36f2ba(window[_0x38c42e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5448ad));}return _0x278e2a(_0x3627ff),_0x9550d6>>>0x0;}function _0x2878fe(_0x447d52){return _0x447d52[_0x38c42e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38c42e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38c42e([0x30]));}function _0x2d576e(_0x41e351){return _0x41e351[_0x38c42e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38c42e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38c42e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f858d(_0x2528a6){return _0x579595[_0x38c42e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38c42e([0x68,0x61,0x73])](_0x2528a6);}function _0x1a51c4(_0x3251b0){return _0x579595[_0x38c42e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38c42e([0x67,0x65,0x74])](_0x3251b0);}function _0x29fa37(){}function _0x38c42e(_0x1ded14){return _0x1ded14['map'](_0x4a5feb=>String['fromCharCode'](_0x4a5feb))['join']('');}_0x11f813(await _0x10f406());}(this);}set['adapter'](_0x23ddff){if(this['_adapter'])throw new _0xfec3cf('track-changes-adapter-already-set',this);this['_adapter']=_0x23ddff;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2b069a=!0x1,toJSON:_0x446c0a=!0x1}={}){const _0x394abd=[];for(const _0x5d1f90 of this['_suggestions']['values']())_0x2b069a&&!_0x5d1f90['isInContent']||_0x394abd['push'](_0x5d1f90);return _0x446c0a?_0x394abd['map'](_0x18f217=>_0x18f217['toJSON']()):_0x394abd;}['getSuggestion'](_0x561026){const _0x575886=this['_suggestions']['get'](_0x561026);if(!_0x575886)throw new _0xfec3cf('track-changes-suggestion-not-found',this);return _0x575886;}['hasSuggestion'](_0x18dd38){return this['_suggestions']['has'](_0x18dd38);}['addSuggestionData'](_0x350935){const {authorId:_0x72665f,id:_0x5d6f03,attributes:_0x302c34}=_0x350935,[_0x2f9aae,_0x456a35]=_0x350935['type']['split'](':'),_0x522e2d=this['_suggestions']['get'](_0x5d6f03)||this['_createSuggestion'](_0x2f9aae,_0x456a35,_0x5d6f03,_0x72665f,_0x302c34);if(this['_addThreadToSuggestion'](_0x522e2d),this['_checkSuggestionCorrectness'](_0x522e2d,_0x2f9aae,_0x456a35||null,_0x72665f),_0x522e2d['createdAt']=_0x350935['createdAt'],_0x522e2d['_isDataLoaded']=!0x0,_0x302c34&&_0x302c34['@external']){const _0x5be366=_0x302c34['@external'],_0x55a553=this['_getExternalAuthor'](_0x5be366['authorName']);_0x522e2d['authoredAt']=_0x5be366['createdAt'],_0x522e2d['author']=_0x55a553,_0x522e2d['isExternal']=!0x0;}else _0x522e2d['authoredAt']=_0x350935['createdAt'];switch(_0x350935['data']&&(_0x522e2d['data']=_0x350935['data']),_0x350935['attributes']&&(_0x522e2d['attributes']=_0x350935['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x522e2d['_saved']=!0x0),this['_suggestionState']['get'](_0x522e2d)){case'notReady':this['_suggestionState']['set'](_0x522e2d,'dataReady');break;case'markerReady':_0x522e2d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x522e2d])),this['_refreshSuggestionsChain'](new Set([_0x522e2d])),this['_suggestionState']['set'](_0x522e2d,'ready'),this['fire']('suggestionLoaded',_0x522e2d)):this['_suggestionState']['set'](_0x522e2d,'removed');}return _0x522e2d;}['acceptSuggestion'](_0x434918){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3410d8 of _0x434918['getAllAdjacentSuggestions']())_0x3410d8['accept']();});});}['discardSuggestion'](_0x5570d7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x312711 of _0x5570d7['getAllAdjacentSuggestions']())_0x312711['discard']();});});}['enableCommand'](_0x14da33,_0x3c711b){const _0x37ddd2=this['editor']['commands']['get'](_0x14da33);if(!_0x37ddd2)throw new _0xfec3cf('track-changes-command-not-found',this,{'commandName':_0x14da33});if(this['_enabledCommands']['has'](_0x37ddd2))throw new _0xfec3cf('track-changes-enable-command-twice',this,{'commandName':_0x14da33});this['_enabledCommands']['add'](_0x37ddd2),_0x3c711b&&_0x37ddd2['on']('execute',(_0x3bcc95,_0x2751be)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2751be['length']>0x0&&_0x2751be[_0x2751be['length']-0x1]&&_0x2751be[_0x2751be['length']-0x1]['forceDefaultExecution']?_0x2751be['pop']():(_0x3bcc95['return']=_0x3c711b((..._0x5ed9c6)=>_0x37ddd2['execute'](..._0x5ed9c6,{'forceDefaultExecution':!0x0}),..._0x2751be),_0x3bcc95['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x8fbdc3){let _0x7acf79,_0x3969bb;const _0x5ab0c2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x7acf79=_0x8fbdc3();}catch(_0x49c855){_0x3969bb=_0x49c855;}return _0x5ab0c2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3969bb&&_0xfec3cf['rethrowUnexpectedError'](_0x3969bb,this),_0x7acf79;}['markInsertion'](_0x1acb0f,_0x47304f=null,_0xe7d07={}){if(_0x1acb0f['isCollapsed'])return null;const _0x399dd1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x30184e,meta:_0x87f8ce}of this['_findSuggestions'](_0x1acb0f,'insertion'))if(_0x87f8ce['isOwn']){if(!_0x87f8ce['isNextTo']){if(_0x87f8ce['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x30184e,_0xe7d07))continue;return _0x30184e;}if(Kt(_0x30184e,_0xe7d07))return _0x30184e;this['_breakSuggestionMarker'](_0x30184e,_0x1acb0f['start'],_0x1acb0f['end']);break;}if(_0x47304f==_0x30184e['subType']&&Kt(_0x30184e,_0xe7d07)){const _0x393af5=_0x30184e['getFirstRange']();return _0x393af5['start']['isEqual'](_0x1acb0f['end'])?this['_setSuggestionRange'](_0x30184e,this['_model']['createRange'](_0x1acb0f['start'],_0x393af5['end'])):this['_setSuggestionRange'](_0x30184e,this['_model']['createRange'](_0x393af5['start'],_0x1acb0f['end'])),_0x30184e;}}const _0x443868=_0x2cd620(),_0x5ac1c8=_0x399dd1['id'],_0x362a0d=_0x47304f?'insertion:'+_0x47304f:'insertion',_0x1fb27b=this['_setSuggestionData']({'id':_0x443868,'type':_0x362a0d,'createdAt':new Date(),'authorId':_0x5ac1c8,'attributes':_0xe7d07});return this['_addSuggestionMarker'](_0x362a0d,_0x443868,_0x5ac1c8,_0x1acb0f),_0x1fb27b;}['markMultiRangeInsertion'](_0x46c821,_0x54c867='multi',_0x4a72a0={}){const _0xb09b2d=this['editor']['plugins']['get']('Users')['me'],_0x401faf=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x54c867,'join');for(const _0x445e5f of this['getSuggestions']())if(_0x445e5f['author']['id']==_0xb09b2d['id']&&'insertion'==_0x445e5f['type']&&_0x445e5f['subType']==_0x54c867&&Kt(_0x445e5f,_0x4a72a0)&&(_0x401faf(_0x445e5f['getRanges'](),_0x46c821)||_0x401faf(_0x46c821,_0x445e5f['getRanges']()))){for(const _0x140612 of _0x46c821)_0x445e5f['addRange'](_0x140612);return _0x445e5f;}for(const {suggestion:_0x46c97b,meta:_0x4bf48c}of this['_findSuggestions'](_0x46c821,'insertion')){if(!_0x4bf48c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4bf48c['containsRangeInObject'])continue;if(!Kt(_0x46c97b,_0x4a72a0))continue;let _0x249496=!0x0;for(const _0x1739d2 of _0x46c97b['getRanges']())for(const _0x358f7f of _0x46c821)if(!_0x1739d2['containsRange'](_0x358f7f)){_0x249496=!0x1;break;}if(_0x249496)return _0x46c97b;}const _0x23974f=_0x2cd620(),_0x1d288a=_0xb09b2d['id'],_0x5c2fc1='insertion:'+_0x54c867,_0x592770=this['_setSuggestionData']({'id':_0x23974f,'type':_0x5c2fc1,'createdAt':new Date(),'authorId':_0x1d288a,'attributes':_0x4a72a0});for(const _0x66c97d of _0x46c821)this['_addSuggestionMarker'](_0x5c2fc1,_0x23974f,_0x1d288a,_0x66c97d,u['getMultiRangeId']());return _0x592770;}['markInlineFormat'](_0x35524a,_0x213f87,_0x43a87b=null,_0x2e99ec={}){if(_0x43a87b=_0x43a87b||Ft(_0x213f87),_0x35524a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1d5583=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x43a87b,'accept');return this['forceDefaultExecution'](()=>_0x1d5583([_0x35524a],_0x213f87,_0x2e99ec)),null;}const _0x57f45e=this['editor']['plugins']['get']('Users')['me'],_0x173342=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d3610,meta:_0x4d6eaa}of this['_findSuggestions'](_0x35524a,'insertion'))_0x4d6eaa['isOwn']&&!_0x4d6eaa['isInsideObject']&&_0x173342['push'](..._0x3d3610['getRanges']());}const _0x105a3c=function(_0x9faefc,_0x1bc6ed){const _0x53fbad=[];for(const _0x5263be of _0x1bc6ed){const _0x2bce36=_0x9faefc['getIntersection'](_0x5263be);_0x2bce36&&_0x53fbad['push'](_0x2bce36);}return _0x53fbad;}(_0x35524a,_0x173342),_0xba7408=function(_0x357e55,_0x2d0ce3){const _0xe92f6b=[_0x357e55];for(const _0x5ed281 of _0x2d0ce3){let _0x3380b9=0x0;for(;_0x3380b9<_0xe92f6b['length'];){const _0x3eacbf=_0xe92f6b[_0x3380b9]['getDifference'](_0x5ed281);_0xe92f6b['splice'](_0x3380b9,0x1,..._0x3eacbf),_0x3380b9+=_0x3eacbf['length'];}}return _0xe92f6b;}(_0x35524a,_0x173342);_0x105a3c['length']&&this['_model']['change'](()=>{for(const _0x11c2ee of _0x105a3c){const _0x3f74c6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x43a87b,'accept');this['forceDefaultExecution'](()=>_0x3f74c6([_0x11c2ee],_0x213f87,_0x2e99ec));}});for(const _0x463f14 of _0xba7408){let _0x18127a=null,_0x16e49b=_0x463f14['start'],_0x4b3820=_0x463f14['end'];for(const {suggestion:_0x334d7b,meta:_0x41d2c4}of this['_findSuggestions'](_0x463f14,'formatInline')){if(!_0x41d2c4['isOwn'])continue;if(_0x334d7b['subType']!=_0x43a87b)continue;if(!Kt(_0x334d7b,_0x2e99ec))continue;const _0x11bd2b=_0x334d7b['getFirstRange']();if(_0x11bd2b['containsRange'](_0x463f14,!0x0))return null;_0x16e49b=_0x16e49b['isBefore'](_0x11bd2b['start'])?_0x16e49b:_0x11bd2b['start'],_0x4b3820=_0x4b3820['isAfter'](_0x11bd2b['end'])?_0x4b3820:_0x11bd2b['end'],_0x18127a?_0x11bd2b['start']['isBefore'](_0x18127a['getFirstRange']()['start'])?(_0x18127a['removeMarkers'](),_0x18127a=_0x334d7b):_0x334d7b['removeMarkers']():_0x18127a=_0x334d7b;}const _0xddb0b5=this['_model']['createRange'](_0x16e49b,_0x4b3820);if(_0x18127a)this['_setSuggestionRange'](_0x18127a,_0xddb0b5);else{const _0x436ca5=_0x2cd620(),_0x12fb6c=_0x57f45e['id'];this['_setSuggestionData']({'id':_0x436ca5,'type':'formatInline:'+_0x43a87b,'data':_0x213f87,'createdAt':new Date(),'authorId':_0x12fb6c,'attributes':_0x2e99ec}),this['_addSuggestionMarker']('formatInline:'+_0x43a87b,_0x436ca5,_0x12fb6c,_0xddb0b5);}}return null;}['markBlockFormat'](_0x345d1e,_0x2091c3,_0x4f7748=[],_0x6024ef=null,_0x5b38b6={}){_0x2091c3['formatGroupId']||(_0x2091c3['formatGroupId']=_0x2091c3['commandName']),_0x2091c3['multipleBlocks']=_0x345d1e['is']('range'),_0x6024ef=_0x6024ef||Ft(_0x2091c3);const _0x20bd72=_0x4f7748['map'](_0x2c2865=>Ht(_0x2c2865,this['_model'])),_0xb1f508=_0x345d1e['is']('range')?_0x345d1e:Ht(_0x345d1e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1d79d0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6024ef,'accept');return this['forceDefaultExecution'](()=>_0x1d79d0([_0xb1f508],_0x2091c3,_0x5b38b6)),null;}_0x20bd72['push'](_0xb1f508);let _0x1cd43e=!0x0;for(const _0x206b99 of _0x20bd72)if(!this['_rangeIsInLocalUserInsertion'](_0x206b99)){_0x1cd43e=!0x1;break;}if(_0x1cd43e&&'always'!==this['_trackFormatChanges']){const _0x3925a2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6024ef,'accept');return this['forceDefaultExecution'](()=>_0x3925a2([_0xb1f508],_0x2091c3,_0x5b38b6)),null;}let _0xa9ab91=null,_0x5712ab=_0xb1f508['start'],_0x1fa7b1=_0xb1f508['end'];for(const {suggestion:_0x33f235,meta:_0x215a72}of this['_findSuggestions'](_0xb1f508,'formatBlock')){if(!_0x215a72['isOwn'])continue;if(_0x215a72['isNextTo']||_0x215a72['containsRangeInObject']||_0x215a72['isInsideObject'])continue;if(_0x33f235['data']['formatGroupId']!=_0x2091c3['formatGroupId'])continue;if(!Kt(_0x33f235,_0x5b38b6))continue;const _0x59ca2e=_0x33f235['getFirstRange']();if(_0x33f235['subType']==_0x6024ef){if(_0x59ca2e['containsRange'](_0xb1f508,!0x0))return null;_0x5712ab=_0x5712ab['isBefore'](_0x59ca2e['start'])?_0x5712ab:_0x59ca2e['start'],_0x1fa7b1=_0x1fa7b1['isAfter'](_0x59ca2e['end'])?_0x1fa7b1:_0x59ca2e['end'],_0xa9ab91?_0x59ca2e['start']['isBefore'](_0xa9ab91['getFirstRange']()['start'])?(_0xa9ab91['removeMarkers'](),_0xa9ab91=_0x33f235):_0x33f235['removeMarkers']():_0xa9ab91=_0x33f235;}else{const _0x394aef=_0xb1f508['getIntersection'](_0x59ca2e);this['_cutOutSuggestionMarker'](_0x33f235,_0x394aef);}}const _0x1a2466=this['editor']['plugins']['get']('Users')['me'],_0x5bbad2=_0x2cd620(),_0x12b131=_0x1a2466['id'];if(_0xa9ab91)return this['_setSuggestionRange'](_0xa9ab91,this['_model']['createRange'](_0x5712ab,_0x1fa7b1)),_0xa9ab91;{const _0x28b9e8=this['_setSuggestionData']({'id':_0x5bbad2,'type':'formatBlock:'+_0x6024ef,'data':_0x2091c3,'createdAt':new Date(),'authorId':_0x12b131,'attributes':_0x5b38b6});return this['_addSuggestionMarker']('formatBlock:'+_0x6024ef,_0x5bbad2,_0x12b131,this['_model']['createRange'](_0x5712ab,_0x1fa7b1)),_0x28b9e8;}}['markMultiRangeBlockFormat'](_0x4684c7,_0x1fe06b,_0x411125=[],_0x7f9c39=null,_0x329c82={}){_0x1fe06b['formatGroupId']||(_0x1fe06b['formatGroupId']=_0x1fe06b['commandName']);const _0x2c3132=_0x4684c7[0x0];_0x1fe06b['multipleBlocks']=_0x2c3132['is']('range'),_0x7f9c39=_0x7f9c39||Ft(_0x1fe06b);const _0x356705=_0x411125['map'](_0x4251ce=>Ht(_0x4251ce,this['_model'])),_0x699412=_0x2c3132['is']('range')?_0x4684c7:_0x4684c7['map'](_0x21c89b=>Ht(_0x21c89b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x147e6a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7f9c39,'accept');return this['forceDefaultExecution'](()=>_0x147e6a(_0x699412,_0x1fe06b,_0x329c82)),null;}_0x356705['push'](..._0x699412);let _0x438ec=!0x0;for(const _0x595b6e of _0x356705)if(!this['_rangeIsInLocalUserInsertion'](_0x595b6e)){_0x438ec=!0x1;break;}if(_0x438ec&&'always'!==this['_trackFormatChanges']){const _0x3c52b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7f9c39,'accept');return this['forceDefaultExecution'](()=>_0x3c52b5(_0x699412,_0x1fe06b,_0x329c82)),null;}const _0x5a028e=this['editor']['plugins']['get']('Users')['me'];for(const _0x293d3d of this['getSuggestions']()){if(_0x293d3d['author']['id']!=_0x5a028e['id'])continue;if('formatBlock'!=_0x293d3d['type']||_0x293d3d['data']['formatGroupId']!=_0x1fe06b['formatGroupId'])continue;if(!Kt(_0x293d3d,_0x329c82))continue;const _0x4729fd=_0x293d3d['subType']==_0x7f9c39;for(let _0x4f81ec=0x0;_0x4f81ec<_0x699412['length'];_0x4f81ec++){const _0x2a6e07=_0x699412[_0x4f81ec];for(const _0x37303f of _0x293d3d['getMarkers']()){const _0x4255e4=_0x37303f['getRange']();if(_0x2a6e07['isEqual'](_0x4255e4)){_0x4729fd?(_0x699412['splice'](_0x4f81ec,0x1),_0x4f81ec--):_0x293d3d['removeMarker'](_0x37303f['name']);break;}}}}if(0x0==_0x699412['length'])return null;const _0xd7372e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7f9c39,'join');for(const _0x3b889a of this['getSuggestions']())if(_0x3b889a['author']['id']==_0x5a028e['id']&&'formatBlock'==_0x3b889a['type']&&_0x3b889a['data']['formatGroupId']==_0x1fe06b['formatGroupId']&&_0x3b889a['subType']==_0x7f9c39&&Kt(_0x3b889a,_0x329c82)&&(_0xd7372e(_0x3b889a['getRanges'](),_0x699412)||_0xd7372e(_0x699412,_0x3b889a['getRanges']()))){for(const _0xbf6e2d of _0x699412)_0x3b889a['addRange'](_0xbf6e2d);return _0x3b889a;}const _0x533410=_0x2cd620(),_0x4613fc=_0x5a028e['id'],_0x57a96a='formatBlock:'+_0x7f9c39,_0x2b1e5f=this['_setSuggestionData']({'id':_0x533410,'type':_0x57a96a,'data':_0x1fe06b,'createdAt':new Date(),'authorId':_0x4613fc,'attributes':_0x329c82});for(const _0x222b60 of _0x699412)this['_addSuggestionMarker'](_0x57a96a,_0x533410,_0x4613fc,_0x222b60,u['getMultiRangeId']());return _0x2b1e5f;}['markDeletion'](_0x40a17e,_0x4f2578=null,_0x270e98={}){if(_0x40a17e['isCollapsed'])return null;const _0x514e07=this['editor']['plugins']['get']('Users')['me'],_0x5be59b=new _0x114c36(_0x40a17e['start'],_0x40a17e['end']);for(const {suggestion:_0x2459e8,meta:_0x4719f7}of this['_findSuggestions'](_0x5be59b,'insertion'))if(_0x4719f7['isOwn']&&!_0x4719f7['isNextTo']){if(_0x2459e8['isMultiRange']){const _0x27df10=_0x2459e8['getRanges']()['filter'](_0x549d13=>'$graveyard'!=_0x549d13['root']['rootName']);_0x27df10['every'](_0x3e002a=>_0x5be59b['containsRange'](_0x3e002a,!0x0))&&_0x2459e8['discard']();if(_0x27df10['some'](_0x53daad=>_0x53daad['containsRange'](_0x5be59b,!0x0))){const _0x575902=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4f2578,'accept');return this['forceDefaultExecution'](()=>_0x575902([_0x5be59b],null,_0x270e98)),null;}}else{const _0x5c9a93=_0x5be59b['getIntersection'](_0x2459e8['getFirstRange']());null!==_0x5c9a93&&_0x2459e8['_onDiscard']([_0x5c9a93],null,_0x270e98);}}if(_0x5be59b['detach'](),_0x5be59b['isCollapsed']||'$graveyard'==_0x5be59b['root']['rootName'])return null;let _0x8efb1=null,_0x548798=_0x5be59b['start'],_0x2c61ed=_0x5be59b['end'];const _0x256821=this['_findSuggestions'](_0x5be59b,'deletion');for(const {suggestion:_0x438594,meta:_0x19faa9}of _0x256821){const _0x1be35c=this['_model']['createRange'](_0x548798,_0x2c61ed);if(_0x19faa9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x19faa9['containsRangeInObject']&&!_0x19faa9['isInsideObject'])){if(_0x438594['isMultiRange']){if(!Kt(_0x438594,_0x270e98))continue;let _0x14f6f9=!0x0;for(const _0xa0942a of _0x438594['getRanges']()){if(_0xa0942a['containsRange'](_0x1be35c,!0x0))return _0x438594;_0x1be35c['containsRange'](_0xa0942a)||(_0x14f6f9=!0x1);}_0x14f6f9&&_0x438594['discard']();}else{const _0x5a582a=_0x438594['getFirstRange']();if(_0x5a582a['containsRange'](_0x1be35c,!0x0))return _0x438594;if(!Kt(_0x438594,_0x270e98)){_0x1be35c['containsRange'](_0x5a582a)?_0x438594['removeMarkers']():_0x5a582a['containsPosition'](_0x548798)?_0x548798=_0x5a582a['end']:_0x5a582a['containsPosition'](_0x2c61ed)&&(_0x2c61ed=_0x5a582a['start']);continue;}_0x548798=_0x548798['isBefore'](_0x5a582a['start'])?_0x548798:_0x5a582a['start'],_0x2c61ed=_0x2c61ed['isAfter'](_0x5a582a['end'])?_0x2c61ed:_0x5a582a['end'],_0x270e98=Object['assign']({},_0x438594['attributes']),_0x8efb1?_0x5a582a['start']['isBefore'](_0x8efb1['getFirstRange']()['start'])?(_0x8efb1['removeMarkers'](),_0x8efb1=_0x438594):_0x438594['removeMarkers']():_0x8efb1=_0x438594;}}}if(_0x8efb1)return this['_setSuggestionRange'](_0x8efb1,this['_model']['createRange'](_0x548798,_0x2c61ed)),_0x8efb1;{const _0x3225e1=_0x2cd620(),_0x100b5e=this['_model']['createRange'](_0x548798,_0x2c61ed),_0x589e53=_0x514e07['id'],_0x2c8682=_0x4f2578?'deletion:'+_0x4f2578:'deletion',_0x4a21f5=this['_setSuggestionData']({'id':_0x3225e1,'type':_0x2c8682,'createdAt':new Date(),'authorId':_0x589e53,'attributes':_0x270e98});return this['_addSuggestionMarker'](_0x2c8682,_0x3225e1,_0x589e53,_0x100b5e),_0x4a21f5;}}['markMultiRangeDeletion'](_0x4facd3,_0x108752='multi',_0x2a7e98={}){const _0x57ebb0=this['editor']['plugins']['get']('Users')['me'],_0x1f7f3d=_0x4facd3['map'](_0x53afcd=>new _0x114c36(_0x53afcd['start'],_0x53afcd['end'])),_0x5417b6=new Set();for(const {suggestion:_0x395f07,meta:_0x276f72}of this['_findSuggestions'](_0x1f7f3d,'insertion'))_0x276f72['isOwn']&&!_0x276f72['isNextTo']&&_0x5417b6['add'](_0x395f07);for(const _0x1856e6 of _0x5417b6)if(_0x1856e6['isMultiRange']){const _0x3d7fce=_0x1856e6['getRanges']();(!_0x1856e6['attributes']||!_0x1856e6['attributes']['skipNestingCheck'])&&(_0x3d7fce['every'](_0x36ed76=>_0x1f7f3d['some'](_0x381823=>_0x381823['containsRange'](_0x36ed76,!0x0)))&&_0x1856e6['discard']());if(_0x1f7f3d['every'](_0xc6b509=>_0x3d7fce['some'](_0x57a445=>_0x57a445['containsRange'](_0xc6b509,!0x0)))){const _0x31bff2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x108752,'accept');return this['forceDefaultExecution'](()=>_0x31bff2(_0x4facd3,null,_0x2a7e98)),null;}}else{const _0x187aba=_0x1856e6['getFirstRange']();_0x1f7f3d['some'](_0x477886=>_0x477886['containsRange'](_0x187aba,!0x0))&&_0x1856e6['discard']();if(_0x1f7f3d['every'](_0x28cf27=>_0x187aba['containsRange'](_0x28cf27,!0x0))){const _0x5ac108=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x108752,'accept');return this['forceDefaultExecution'](()=>_0x5ac108(_0x1f7f3d,null,_0x2a7e98)),null;}}const _0x40d97a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x108752,'join');let _0x564c2b=null;for(const _0x316270 of this['getSuggestions']())if(_0x316270['author']['id']==_0x57ebb0['id']&&_0x316270['isInContent']&&'deletion'==_0x316270['type']&&_0x316270['subType']==_0x108752&&Kt(_0x316270,_0x2a7e98)&&(_0x40d97a(_0x316270['getRanges'](),_0x1f7f3d)||_0x40d97a(_0x1f7f3d,_0x316270['getRanges']()))){if(_0x564c2b){if(_0x316270['commentThread']&&_0x316270['commentThread']['length'])continue;for(const _0x2c5189 of _0x316270['getRanges']())_0x564c2b['isIntersectingWithRange'](_0x2c5189)||_0x564c2b['addRange'](_0x2c5189);_0x316270['removeMarkers']();}else{_0x564c2b=_0x316270;for(const _0x595986 of _0x1f7f3d)_0x316270['isIntersectingWithRange'](_0x595986)||_0x316270['addRange'](_0x595986);}}if(_0x564c2b)return _0x564c2b;_0x5417b6['clear']();for(const {suggestion:_0x1bdaf8,meta:_0x97639}of this['_findSuggestions'](_0x1f7f3d,'deletion'))_0x97639['isOwn']&&(this['_mergeNestedSuggestions']||!_0x97639['containsRangeInObject']&&!_0x97639['isInsideObject'])&&Kt(_0x1bdaf8,_0x2a7e98)&&_0x5417b6['add'](_0x1bdaf8);for(const _0x2e1585 of _0x5417b6){const _0x268d8a=_0x2e1585['getRanges']();if(!_0x2a7e98||!_0x2a7e98['skipNestingCheck']){if(_0x1f7f3d['every'](_0x438479=>_0x268d8a['some'](_0x8e3f00=>_0x8e3f00['containsRange'](_0x438479,!0x0))))return _0x2e1585;}(!_0x2e1585['attributes']||!_0x2e1585['attributes']['skipNestingCheck'])&&(_0x268d8a['every'](_0x285a29=>_0x1f7f3d['some'](_0x22544a=>_0x22544a['containsRange'](_0x285a29,!0x0)))&&_0x2e1585['discard']());}const _0x3d89b6=_0x2cd620(),_0x52988b=_0x57ebb0['id'],_0x33d923='deletion:'+_0x108752,_0x5c70c5=this['_setSuggestionData']({'id':_0x3d89b6,'type':_0x33d923,'createdAt':new Date(),'authorId':_0x52988b,'attributes':_0x2a7e98});for(const _0xd539d0 of _0x1f7f3d)_0xd539d0['detach'](),_0xd539d0['isCollapsed']||'$graveyard'==_0xd539d0['root']['rootName']||this['_addSuggestionMarker'](_0x33d923,_0x3d89b6,_0x52988b,_0xd539d0,u['getMultiRangeId']());return _0x5c70c5;}['markAttributeChange'](_0x21fae9,_0x267f6d,_0x4ec794,_0x1b5805,_0x5a726b){if(_0x21fae9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xc1aefb=this['editor']['plugins']['get']('Users')['me']['id'],_0xbe43ed=Array['from'](this['_suggestions']['values']())['filter'](_0x592435=>'attribute'==_0x592435['type']&&_0x592435['data']['key']==_0x267f6d&&_0x592435['isIntersectingWithRange'](_0x21fae9));if('default'===this['_trackFormatChanges']){const _0xecd6db=this['_findSuggestions'](_0x21fae9,'insertion')['filter'](({meta:_0x4a95cc})=>_0x4a95cc['isOwn']&&!_0x4a95cc['isInsideObject']&&!_0x4a95cc['isNextTo'])['map'](({suggestion:_0x122105})=>_0x122105);_0xbe43ed['unshift'](..._0xecd6db);}const _0xfe4cdc=new Map([[_0x21fae9,_0x4ec794]]);for(const _0x50f582 of _0xbe43ed){const _0x54779b='attribute'==_0x50f582['type']?_0x50f582['data']['oldValue']:void 0x0,_0x1426a7=_0x50f582['getFirstRange'](),_0x4ec04f=Array['from'](_0xfe4cdc['keys']())['find'](_0x132594=>_0x132594['isIntersecting'](_0x1426a7));if(!_0x4ec04f)continue;const _0x1a25c4=_0x4ec04f['getDifference'](_0x1426a7);this['_isBlockAttribute'](_0x267f6d)&&'insertion'==_0x50f582['type']&&0x0!=_0x1a25c4['length']||(_0xfe4cdc['delete'](_0x4ec04f),_0x1a25c4['forEach'](_0x559f24=>{_0xfe4cdc['set'](_0x559f24,_0x4ec794);}),'insertion'!=_0x50f582['type']&&_0x54779b!=_0x1b5805&&_0xfe4cdc['set'](_0x4ec04f['getIntersection'](_0x1426a7),_0x54779b));}const _0x3ac081=[];for(const [_0x5ab9a4,_0x405f39]of _0xfe4cdc){const _0x17261c=_0x2cd620(),_0x1c8cf7={'key':_0x267f6d,'oldValue':_0x405f39,'newValue':_0x1b5805};_0x267f6d['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':_0x267f6d});const _0x37a957=('attribute:'+(_0x267f6d+'|'+Ft({'newValue':_0x1b5805})))['substring'](0x0,0x3c),_0x1d55ff=this['_setSuggestionData']({'id':_0x17261c,'type':_0x37a957,'data':_0x1c8cf7,'createdAt':new Date(),'authorId':_0xc1aefb,'attributes':_0x5a726b});_0x3ac081['push'](_0x1d55ff),this['_addSuggestionMarker'](_0x37a957,_0x17261c,_0xc1aefb,_0x5ab9a4);}return _0x3ac081;}['enableDefaultAttributesIntegration'](_0x3eb664){this['enableCommand'](_0x3eb664,(_0x3284ad,..._0x4132f3)=>{this['_recordAttributeChanges'](()=>{_0x3284ad(..._0x4132f3);});});}['registerBlockAttribute'](_0x52aacb){this['_blockAttributeKeys']['add'](_0x52aacb);}['registerInlineAttribute'](_0x261fc3){this['_inlineAttributeKeys']['add'](_0x261fc3);}['_getAttributeKey'](_0x32be75){return'attribute'==_0x32be75['type']?_0x32be75['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x449777,_0x1efaec){const _0x35777e=_0x449777['getFirstMarker']();this['_model']['change'](_0x2e88db=>{_0x2e88db['updateMarker'](_0x35777e,{'range':_0x1efaec});});}['_addThreadToSuggestion'](_0x25b809){const _0x5af81f=_0x25b809['id'],_0x3ba614=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5af81f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3ba614,'threadId':_0x5af81f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3da65a=this['_commentsRepository']['getCommentThread'](_0x5af81f);_0x3da65a['unbind']('isRemovable'),_0x3da65a['isRemovable']=!0x1,_0x25b809['commentThread']=_0x3da65a;}['_checkSuggestionCorrectness'](_0x3f3fa7,_0x21bd74,_0x1b0cb5,_0x52f6ca){if(_0x3f3fa7['type']!=_0x21bd74||_0x3f3fa7['subType']!=_0x1b0cb5||_0x3f3fa7['creator']['id']!=_0x52f6ca)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xfec3cf('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x54a311,_0x868760){const _0x493a9c=_0x54a311['getFirstRange']();if(_0x868760['isEqual'](_0x493a9c))_0x54a311['removeMarkers']();else{if(_0x493a9c['containsRange'](_0x868760)){const _0x5ca06e=this['_model']['createPositionAt'](_0x868760['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54a311,this['_model']['createRange'](_0x493a9c['start'],_0x5ca06e));const _0x53b3fa=_0x2cd620(),_0xc4ed35=_0x54a311['creator']['id'],_0xaba6a7=_0x54a311['type']+':'+_0x54a311['subType'];this['_setSuggestionData']({'id':_0x53b3fa,'type':_0xaba6a7,'createdAt':new Date(),'authorId':_0xc4ed35,'data':_0x54a311['data'],'attributes':_0x54a311['attributes']});const _0x2d1ec4=this['_model']['createPositionAt'](_0x868760['end']['parent'],'after'),_0x9c686f=this['_model']['createRange'](_0x2d1ec4,_0x493a9c['end']);this['_addSuggestionMarker'](_0xaba6a7,_0x53b3fa,_0xc4ed35,_0x9c686f);}else{if(_0x493a9c['containsPosition'](_0x868760['start'])){const _0x40fdd2=this['_model']['createPositionAt'](_0x868760['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54a311,this['_model']['createRange'](_0x493a9c['start'],_0x40fdd2));}else{const _0xf890ca=this['_model']['createPositionAt'](_0x868760['end']['parent'],'after');this['_setSuggestionRange'](_0x54a311,this['_model']['createRange'](_0xf890ca,_0x493a9c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x282aa3){for(const {suggestion:_0x42d079,meta:_0x2a1fbd}of this['_findSuggestions'](_0x282aa3,'insertion')){if(!_0x2a1fbd['isOwn'])continue;const _0x3654ad=_0x42d079['getRanges']();for(const _0x27a894 of _0x3654ad)if(!_0x282aa3['getDifference'](_0x27a894)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5790f3){const _0x71eef2=this['editor']['plugins']['get']('Users')['getUser'](_0x5790f3);if(!_0x71eef2)throw new _0xfec3cf('track-changes-user-not-found',this);return _0x71eef2;}['_getExternalAuthor'](_0x3a466b){const _0x10d2f1=this['editor']['plugins']['get']('Users'),_0x29dcc7=_0x2ae810('external:'+_0x3a466b),_0x33d58f=_0x10d2f1['getUser'](_0x29dcc7);return _0x33d58f||_0x10d2f1['addUser']({'id':_0x29dcc7,'name':_0x3a466b});}['_createSuggestion'](_0xda0ba,_0x49b658,_0x409dae,_0x3b2825,_0x346084){const _0x4f90eb=this['_getAuthorFromId'](_0x3b2825),_0x4b4d4b=this['_suggestionFactory']['buildSuggestion'](_0xda0ba,_0x49b658,_0x409dae,_0x4f90eb,_0x346084,_0x4e2b84=>{this['_updateSuggestionData'](_0x409dae,{'attributes':_0x4e2b84});const _0x40a193=this['getSuggestion'](_0x409dae);this['_joinWithAdjacentSuggestions'](new Set([_0x40a193])),this['_refreshSuggestionsChain'](new Set([_0x40a193]));});return this['listenTo'](_0x4b4d4b,'accept',()=>{this['_updateSuggestionData'](_0x409dae,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4b4d4b,'discard',()=>{this['_updateSuggestionData'](_0x409dae,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x409dae,_0x4b4d4b),this['_suggestionState']['set'](_0x4b4d4b,'notReady'),_0x4b4d4b;}['_splitMarkerName'](_0x1bcc54){const _0x1d8ad0=_0x1bcc54['split'](':');return{'group':_0x1d8ad0[0x0],'type':_0x1d8ad0[0x1],'subType':_0x1d8ad0['length']>=0x5?_0x1d8ad0[0x2]:null,'id':_0x1d8ad0['length']<0x5?_0x1d8ad0[0x2]:_0x1d8ad0[0x3],'authorId':_0x1d8ad0['length']<0x5?_0x1d8ad0[0x3]:_0x1d8ad0[0x4],'markerCount':0x6==_0x1d8ad0['length']?_0x1d8ad0[0x5]:null};}['_breakSuggestionMarker'](_0x29da39,_0x3251f8,_0x4e88f9){const _0x440328=_0x29da39['getFirstRange'](),_0x6eb2bc=_0x440328['start'],_0x8294d9=_0x440328['end'];this['_setSuggestionRange'](_0x29da39,this['_model']['createRange'](_0x6eb2bc,_0x3251f8));const _0x2e61dd=_0x2cd620(),_0x316382=_0x29da39['creator']['id'],_0x2be655=_0x29da39['type']+(_0x29da39['subType']?':'+_0x29da39['subType']:'');this['_setSuggestionData']({'id':_0x2e61dd,'type':_0x2be655,'createdAt':new Date(),'authorId':_0x316382,'originalSuggestionId':_0x29da39['id'],'attributes':_0x29da39['attributes'],'data':_0x29da39['data']});const _0x12f4af=this['_getAttributeKey'](_0x29da39);('formatBlock'==_0x29da39['type']||_0x12f4af&&this['_isBlockAttribute'](_0x12f4af))&&(_0x4e88f9=this['_model']['createPositionBefore'](_0x4e88f9['parent'])),this['_addSuggestionMarker'](_0x2be655,_0x2e61dd,_0x316382,this['_model']['createRange'](_0x4e88f9,_0x8294d9));}['_findSuggestions'](_0x1e6caa,_0xb5d247=null){const _0x3d9ea4=[],_0x223fea=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1e6caa)||(_0x1e6caa=[_0x1e6caa]);for(const _0xeebfee of this['getSuggestions']()){if(!_0xeebfee['isInContent'])continue;if(_0xb5d247&&_0xeebfee['type']!=_0xb5d247)continue;let _0x2756dc=!0x1;for(const _0x4fc27f of _0xeebfee['getRanges']()){for(const _0x198bf2 of _0x1e6caa){const _0xdcbae4=_0x198bf2['start']['isEqual'](_0x4fc27f['end'])||_0x198bf2['end']['isEqual'](_0x4fc27f['start']);if(_0xdcbae4||_0x198bf2['getIntersection'](_0x4fc27f)){const _0xf4ec1e=_0x198bf2['containsRange'](_0x4fc27f)&&Vt(this['_model']['schema'],_0x4fc27f['start'],_0x198bf2),_0xed01e1=_0x4fc27f['containsRange'](_0x198bf2)&&Vt(this['_model']['schema'],_0x198bf2['start'],_0x4fc27f);_0x3d9ea4['push']({'suggestion':_0xeebfee,'meta':{'isOwn':_0x223fea==_0xeebfee['author'],'isNextTo':_0xdcbae4,'isInsideObject':_0xf4ec1e,'containsRangeInObject':_0xed01e1}}),_0x2756dc=!0x0;break;}}if(_0x2756dc)break;}}return _0x3d9ea4;}['_addSuggestionMarker'](_0x203606,_0x496155,_0xe00705,_0x33a963,_0x2d86ca){this['_model']['change'](_0x508475=>{let _0x395173='suggestion:'+_0x203606+':'+_0x496155+':'+_0xe00705;_0x2d86ca&&(_0x395173=_0x395173+':'+_0x2d86ca),_0x508475['addMarker'](_0x395173,{'range':_0x33a963,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x52e58c){const _0xe18dd0=_0x52e58c['previous'],_0x46305b=_0x52e58c['next'];_0x52e58c['previous']=null,_0x52e58c['next']=null,null!=_0xe18dd0&&_0xe18dd0['next']==_0x52e58c&&(_0xe18dd0['next']=_0x46305b),null!=_0x46305b&&_0x46305b['previous']==_0x52e58c&&(_0x46305b['previous']=_0xe18dd0),'ready'==this['_suggestionState']['get'](_0x52e58c)&&(this['_suggestionState']['set'](_0x52e58c,'removed'),this['fire']('suggestionUnloaded',_0x52e58c,_0xe18dd0,_0x46305b));}['_setSuggestionData'](_0x4b91ea){const _0x469240=_0x4b91ea['id'],_0x21a23b=this['addSuggestionData'](_0x4b91ea);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x18b0bd=this['editor']['plugins']['get']('PendingActions'),_0x1b11b3=_0x21a23b['hasComments'],_0x1fba8a=_0x21a23b['subType']?_0x21a23b['type']+':'+_0x21a23b['subType']:_0x21a23b['type'],_0x1ae3c8=this['editor']['locale'],_0xf42a39=_0x18b0bd['add'](o(_0x1ae3c8,'PENDING_ACTION_SUGGESTION')),_0x471eea={'id':_0x469240,'type':_0x1fba8a,'hasComments':_0x1b11b3,'data':_0x4b91ea['data']||null,'originalSuggestionId':_0x4b91ea['originalSuggestionId']||null,'attributes':_0x21a23b['attributes']};this['_adapter']['addSuggestion'](_0x471eea)['then'](_0x4e7ca7=>{_0x21a23b['_saved']=!0x0,_0x18b0bd['remove'](_0xf42a39),_0x4e7ca7&&_0x4e7ca7['createdAt']&&(this['_suggestions']['get'](_0x469240)['createdAt']=_0x4e7ca7['createdAt']);})['catch'](_0x270e95=>{throw _0x9317a6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x21a23b['discard']();}),_0x21a23b['stopListening'](),this['_suggestions']['delete'](_0x21a23b['id']),this['_suggestionState']['delete'](_0x21a23b),_0x270e95;});}return _0x21a23b;}['_isBlockAttribute'](_0x1ab30b){return this['_blockAttributeKeys']['has'](_0x1ab30b);}['_updateSuggestionData'](_0x33dd01,_0x4911eb){const _0x41bbe4=this['editor']['plugins']['get']('PendingActions'),_0x3a8050=this['getSuggestion'](_0x33dd01);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3a8050['_saved']){const _0x2e9cf6=_0x41bbe4['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x33dd01,_0x4911eb)['then'](()=>{_0x41bbe4['remove'](_0x2e9cf6);});}else _0x3a8050['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x33dd01,_0x4911eb);});}}['_getSuggestionData'](_0x16ca77){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xfec3cf('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x16ca77);}['_handleNewSuggestionMarker'](_0x20dd97){const {id:_0x4e33cc,type:_0x1d52bd,subType:_0x13d4bb,authorId:_0x327c33}=this['_splitMarkerName'](_0x20dd97),_0x42a0bc=this['_suggestions']['get'](_0x4e33cc)||this['_createSuggestion'](_0x1d52bd,_0x13d4bb,_0x4e33cc,_0x327c33,{});switch(this['_checkSuggestionCorrectness'](_0x42a0bc,_0x1d52bd,_0x13d4bb,_0x327c33),this['_suggestionState']['get'](_0x42a0bc)){case'notReady':this['_getSuggestionData'](_0x4e33cc)['then'](_0x51be24=>{let _0x1203a7=Promise['resolve']();_0x51be24['hasComments']&&(_0x1203a7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4e33cc})),_0x1203a7['then'](()=>{this['addSuggestionData'](_0x51be24)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x42a0bc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4e33cc,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x42a0bc,'ready'),this['fire']('suggestionLoaded',_0x42a0bc);break;case'ready':this['fire']('suggestionChanged',_0x42a0bc);}return _0x42a0bc['addMarkerName'](_0x20dd97),_0x42a0bc;}['_refreshSuggestionsChain'](_0x5456a9){const _0x331474=Array['from'](_0x5456a9),_0x5cab87=_0x331474['filter'](_0x5b8098=>'attribute'==_0x5b8098['type']);this['_refreshAttributeSuggestionsChain'](_0x5cab87);const _0x2780b6=_0x331474['filter'](_0x427aaf=>!_0x427aaf['isMultiRange']&&'attribute'!=_0x427aaf['type']),_0x2bad42=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3955e5=>!_0x3955e5['isMultiRange']&&'attribute'!=_0x3955e5['type']),_0x11b686=_0x2bad42['filter'](_0x3a4d61=>!_0x5456a9['has'](_0x3a4d61)),_0x59b997=new Map(_0x2bad42['map'](_0x495255=>[_0x495255,this['_suggestionFactory']['getSuggestionCallback'](_0x495255['type'],_0x495255['subType'],'chain')])),_0x26c258=new Map(_0x2bad42['map'](_0x39dba8=>[_0x39dba8,_0x39dba8['getFirstRange']()])),_0x2e86e1=new Set(),_0xbd48a4=new Set();for(let _0x597ba4=0x0;_0x597ba4<_0x2780b6['length'];_0x597ba4++)_0x314a1d(_0x2780b6[_0x597ba4],_0x2780b6,_0x597ba4+0x1);for(let _0x7194a2=0x0;_0x7194a2<_0x2780b6['length'];_0x7194a2++)_0x314a1d(_0x2780b6[_0x7194a2],_0x11b686,0x0);const _0x4bb5a5=new Set();for(let _0x259aa7=0x0;_0x259aa7<_0x2780b6['length'];_0x259aa7++){const _0x5c2cae=_0x2780b6[_0x259aa7];!_0xbd48a4['has'](_0x5c2cae)&&_0x5c2cae['previous']&&(_0x4bb5a5['add'](_0x5c2cae['previous']),_0x5c2cae['previous']['next']===_0x5c2cae&&(_0x5c2cae['previous']['next']=null),_0x5c2cae['previous']=null),!_0x2e86e1['has'](_0x5c2cae)&&_0x5c2cae['next']&&(_0x4bb5a5['add'](_0x5c2cae['next']),_0x5c2cae['next']['previous']===_0x5c2cae&&(_0x5c2cae['next']['previous']=null),_0x5c2cae['next']=null);}function _0x314a1d(_0x2789be,_0x2652e0,_0x29379f){for(let _0x171443=_0x29379f;_0x171443<_0x2652e0['length'];_0x171443++){const _0xf7ba4f=_0x83d597(_0x2789be,_0x2652e0[_0x171443]);_0xf7ba4f&&(_0xf7ba4f[0x0]['next']=_0xf7ba4f[0x1],_0xf7ba4f[0x1]['previous']=_0xf7ba4f[0x0],_0x2e86e1['add'](_0xf7ba4f[0x0]),_0xbd48a4['add'](_0xf7ba4f[0x1]));}}function _0x83d597(_0x1b5002,_0x412256){if(_0x1b5002['author']['id']!==_0x412256['author']['id'])return null;const _0x4b1edf=_0x59b997['get'](_0x1b5002)(_0x1b5002,_0x412256,_0x26c258['get'](_0x1b5002),_0x26c258['get'](_0x412256));if(!_0x4b1edf)return null;return _0x59b997['get'](_0x412256)(_0x1b5002,_0x412256,_0x26c258['get'](_0x1b5002),_0x26c258['get'](_0x412256))?_0x4b1edf[0x1]['commentThread']&&_0x4b1edf[0x1]['commentThread']['length']?null:_0x4b1edf:null;}_0x4bb5a5['size']&&this['_refreshSuggestionsChain'](_0x4bb5a5);}['_refreshAttributeSuggestionsChain'](_0x4bdc1b){if(0x0==_0x4bdc1b['length'])return;const _0xeb1b41=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c87d2=>'attribute'==_0x4c87d2['type']&&_0x4c87d2['_isDataLoaded']),_0xcdac5b=[],_0xc7bb8=new Map();for(const _0x48debe of _0xeb1b41){const _0x3ea73d=_0x2ae810(_0x48debe['attributes']);_0xc7bb8['has'](_0x3ea73d)||(_0xc7bb8['set'](_0x3ea73d,_0xcdac5b['length']),_0xcdac5b['push']([]));const _0xf00da0=_0xc7bb8['get'](_0x3ea73d);_0xcdac5b[_0xf00da0]['push'](_0x48debe);}!(function(){_0xcdac5b['sort']((_0xd6bb33,_0x5533c9)=>{const _0x31c494=_0xd6bb33[0x0]['createdAt'],_0x484c1e=_0x5533c9[0x0]['createdAt'];return _0x31c494==_0x484c1e?_0xd6bb33[0x0]['attributes']['groupId']<_0x5533c9[0x0]['attributes']['groupId']?-0x1:0x1:_0x31c494<_0x484c1e?-0x1:0x1;});for(const _0x552103 of _0xcdac5b)_0x552103['sort']((_0x4a333f,_0x141ac3)=>_0x4a333f['id']<_0x141ac3['id']?-0x1:0x1);}());for(let _0x51a1a1=0x0;_0x51a1a1<_0xcdac5b['length'];_0x51a1a1++){if(0x0==_0xcdac5b[_0x51a1a1]['length'])continue;const _0x3237f9=[];for(let _0x575e64=_0x51a1a1+0x1;_0x575e64<_0xcdac5b['length'];_0x575e64++)0x0!=_0xcdac5b[_0x575e64]['length']&&_0x1715ed(_0xcdac5b[_0x51a1a1],_0xcdac5b[_0x575e64])&&_0x3237f9['push'](_0x575e64);for(const _0x526c32 of _0x3237f9)_0xcdac5b[_0x51a1a1]=_0xcdac5b[_0x51a1a1]['concat'](_0xcdac5b[_0x526c32]),_0xcdac5b[_0x526c32]=[];}for(const _0x2d2bc6 of _0xcdac5b)for(let _0x3a412e=0x0;_0x3a412e<_0x2d2bc6['length'];_0x3a412e++){const _0x46d100=_0x2d2bc6[_0x3a412e+0x1]||null;_0x2d2bc6[_0x3a412e]['next']!==_0x46d100&&(_0x2d2bc6[_0x3a412e]['next']=_0x46d100);}for(const _0x37b38a of _0xcdac5b)for(let _0x2216f4=0x0;_0x2216f4<_0x37b38a['length'];_0x2216f4++){const _0x320721=_0x37b38a[_0x2216f4-0x1]||null;_0x37b38a[_0x2216f4]['previous']!==_0x320721&&(_0x37b38a[_0x2216f4]['previous']=_0x320721);}function _0x1715ed(_0x2d4ae4,_0x25b9b1){if(_0x2d4ae4[0x0]['attributes']['groupId']!==_0x25b9b1[0x0]['attributes']['groupId']&&_0x2d4ae4[0x0]['author']!==_0x25b9b1[0x0]['author'])return!0x1;if(!function(_0x147c31,_0x519c8a){if(!_0x147c31['hasComments']&&!_0x519c8a['hasComments'])return!0x0;if(_0x147c31['hasComments']&&_0x519c8a['hasComments'])return!0x1;if(_0x147c31['hasComments']&&_0x519c8a['createdAt']<_0x147c31['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x519c8a['hasComments']&&_0x147c31['createdAt']<_0x519c8a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2d4ae4[0x0],_0x25b9b1[0x0]))return!0x1;const _0x19b162=Et(_0x2d4ae4[0x0]['attributes'],'groupId'),_0x3ef9e1=Et(_0x25b9b1[0x0]['attributes'],'groupId');if(!_0x2cb703(_0x19b162,_0x3ef9e1))return!0x1;return!!_0x2d4ae4['every'](_0x311bdb=>_0x25b9b1['some'](_0x5a173e=>_0x311bdb['getFirstRange']()['isEqual'](_0x5a173e['getFirstRange']())))&&_0x25b9b1['every'](_0xab814c=>_0x2d4ae4['some'](_0xc48c6b=>_0xab814c['getFirstRange']()['isEqual'](_0xc48c6b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5b7907){const _0xb43d02=Array['from'](_0x5b7907),_0x16fd68=this['getSuggestions']({'skipNotAttached':!0x0}),_0x43a786=_0x16fd68['filter'](_0xa5a5ea=>!_0x5b7907['has'](_0xa5a5ea)),_0x4bb9b9=new Map(_0xb43d02['map'](_0x1c5493=>[_0x1c5493,this['_suggestionFactory']['getSuggestionCallback'](_0x1c5493['type'],_0x1c5493['subType'],'join')])),_0x34303f=new Map(_0x16fd68['map'](_0x11878b=>[_0x11878b,_0x11878b['getRanges']()]));for(let _0x3b96b3=0x0;_0x3b96b3<_0xb43d02['length'];_0x3b96b3++){if(_0x5d4d57(this,_0xb43d02[_0x3b96b3],_0xb43d02,_0x3b96b3+0x1))return!0x0;}for(let _0x2a5f82=0x0;_0x2a5f82<_0xb43d02['length'];_0x2a5f82++){if(_0x5d4d57(this,_0xb43d02[_0x2a5f82],_0x43a786,0x0))return!0x0;}return!0x1;function _0x5d4d57(_0x47c6b9,_0x2dffda,_0x37976e,_0x57a784){for(let _0x4d795e=_0x57a784;_0x4d795e<_0x37976e['length'];_0x4d795e++){const _0x19564e=_0x37976e[_0x4d795e];if(_0x19564e['type']!==_0x2dffda['type']||_0x19564e['author']['id']!==_0x2dffda['author']['id']||_0x19564e['subType']!==_0x2dffda['subType'])continue;if(!zt(_0x2dffda,_0x19564e))continue;if('attribute'==_0x2dffda['type']&&_0x2dffda['data']['oldValue']!=_0x19564e['data']['oldValue'])continue;if('attribute'==_0x2dffda['type']&&_0x47c6b9['_isBlockAttribute'](_0x2dffda['data']['key']))continue;if('formatBlock'==_0x2dffda['type']){const _0x4ca081=_0x47c6b9['editor']['model'],_0x477ad2=_0x2dffda['getContainedElement']();if(_0x477ad2&&(_0x4ca081['schema']['isObject'](_0x477ad2)||_0x4ca081['schema']['isLimit'](_0x477ad2)))continue;}const _0x55fcd7=_0x4bb9b9['get'](_0x2dffda),_0x38b822=_0x34303f['get'](_0x2dffda),_0x1a7c55=_0x34303f['get'](_0x19564e),_0x55295b=_0x2dffda['commentThread']&&_0x2dffda['commentThread']['length'],_0x139edb=_0x19564e['commentThread']&&_0x19564e['commentThread']['length'];if(!_0x55295b&&_0x55fcd7(_0x1a7c55,_0x38b822))return _0x47c6b9['_joinSuggestions'](_0x19564e,_0x2dffda),_0x34303f['delete'](_0x2dffda),!0x0;if(!_0x139edb&&_0x55fcd7(_0x38b822,_0x1a7c55))return _0x47c6b9['_joinSuggestions'](_0x2dffda,_0x19564e),_0x34303f['delete'](_0x19564e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1d21c6,_0x33addf){if(_0x1d21c6['isMultiRange']){for(const _0x2083be of _0x33addf['getRanges']())_0x1d21c6['addRange'](_0x2083be);}else{const _0x3a4a15=_0x33addf['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1d21c6,this['_model']['createRange'](_0x1d21c6['getFirstRange']()['start'],_0x3a4a15));}_0x33addf['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4081a0,_0x585b41,_0x5905ef){const _0x3b9cea=_0x4081a0['startsWith']('format')||_0x4081a0['startsWith']('attribute')?'FORMATTING':_0x4081a0['toUpperCase']();return o(this['editor']['locale'],_0x585b41+'_'+_0x3b9cea+'_SUGGESTION_ANNOUNCEMENT',_0x5905ef);}['_initAriaMarkerChangeAnnouncements'](){const _0x56f1f6=this['editor'];if(!_0x56f1f6['ui'])return;const {ariaLiveAnnouncer:_0x57a1c3}=_0x56f1f6['ui'];_0x439ccd(this['_model'],({left:_0x336b72,entered:_0x2c6f18})=>{for(const _0x193a62 of _0x336b72){const {group:_0xac8e82,type:_0x40429e}=this['_splitMarkerName'](_0x193a62['name']);if('suggestion'===_0xac8e82){_0x57a1c3['announce'](this['_getMarkerAnnouncementText'](_0x40429e,'LEAVE'));break;}}for(const _0x4ca7b4 of _0x2c6f18){const {group:_0x1a9d48,type:_0x1705a2}=this['_splitMarkerName'](_0x4ca7b4['name']);if('suggestion'===_0x1a9d48){_0x57a1c3['announce'](this['_getMarkerAnnouncementText'](_0x1705a2,'ENTER',_0x315ef0(_0x2978b7)));break;}}});}['_processAttributeChanges'](_0x406fa9){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3fbcb6=this['editor'],_0x3aa19d=_0x3fbcb6['model']['document']['differ']['getChanges']();if(0x0==_0x3aa19d['length'])return!0x1;const _0x16c38c=[],_0x57bd39=_0x3aa19d['filter'](_0x37a43e=>'attribute'==_0x37a43e['type']),_0x4fe9f5=_0x3aa19d['filter'](_0x2a6aee=>'insert'==_0x2a6aee['type']&&'$text'!=_0x2a6aee['name']),_0x3194ad=_0x3aa19d['filter'](_0x1a4498=>'remove'==_0x1a4498['type']&&'$text'!=_0x1a4498['name']);for(const _0x149557 of _0x57bd39)_0x16c38c['push']({'key':_0x149557['attributeKey'],'newValue':_0x149557['attributeNewValue'],'oldValue':_0x149557['attributeOldValue'],'range':Jt(_0x149557['range'],_0x3fbcb6['model'])});for(const _0x55fcb2 of _0x4fe9f5){const _0x2c2b9a=_0x3194ad['find'](_0x238db2=>_0x238db2['position']['isEqual'](_0x55fcb2['position']));_0x2c2b9a&&_0x16c38c['push']({'key':m,'newValue':_0x55fcb2['name'],'oldValue':_0x2c2b9a['name'],'range':_0x3fbcb6['model']['createRangeOn'](_0x55fcb2['position']['nodeAfter'])});}return 0x0!=_0x16c38c['length']&&this['_reduceExistingSuggestions'](_0x406fa9,_0x16c38c);}['_processAttributeSuggestions'](_0x3dd18e){let _0x2ffd44=!0x1;const _0x40f819=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5ba462=>_0x5ba462['data']['newRange']&&_0x5ba462['name']['startsWith']('suggestion:attribute:'));for(const _0x4deaff of _0x40f819){const {subType:_0x1ad15f,id:_0xbd28e5}=this['_splitMarkerName'](_0x4deaff['name']),_0x453e0e=_0x1ad15f['split']('|')[0x0];for(const _0x22305f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x22305f['id']!=_0xbd28e5&&'attribute'==_0x22305f['type']&&_0x22305f['data']&&_0x22305f['data']['key']==_0x453e0e&&_0x22305f['getFirstRange']()['isIntersecting'](_0x4deaff['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x22305f,_0x4deaff['data']['newRange'],_0x3dd18e),_0x2ffd44=!0x0);}return _0x2ffd44;}['_recordAttributeChanges'](_0x5d1fce){this['_recordAttributeSuggestions']=!0x0,_0x5d1fce();}['_isRegisteredAttribute'](_0x3184c5){const _0x4c7fe0=this['_isBlockAttribute'](_0x3184c5),_0x558969=this['_inlineAttributeKeys']['has'](_0x3184c5);return _0x4c7fe0||_0x558969;}['_reduceExistingSuggestions'](_0x42572e,_0x2ad627){if(0x0==_0x2ad627['length'])return!0x1;let _0x58fb62=!0x1;for(const _0x3dea6f of _0x2ad627){const _0x10d639=this['_findSuggestions'](_0x3dea6f['range'],'attribute')['filter'](_0x24a519=>!_0x24a519['meta']['isNextTo'])['map'](_0x1062a6=>_0x1062a6['suggestion']),_0x41647b=_0x2ae810({'newValue':_0x3dea6f['newValue']});_0x10d639['filter'](_0x1c1dd0=>{const [_0x1f9fb5,_0x101546]=_0x1c1dd0['subType']['split']('|');return _0x1f9fb5==_0x3dea6f['key']&&_0x101546!=_0x41647b;})['forEach'](_0x5dd0cd=>{this['_reduceSuggestionAttributeRange'](_0x5dd0cd,_0x3dea6f['range'],_0x42572e),_0x58fb62=!0x0;});}return _0x58fb62;}['_reduceSuggestionAttributeRange'](_0x36cca2,_0x36961c,_0x5ef25e){const _0xac39b1=_0x36cca2['getFirstRange']()['getDifference'](_0x36961c);0x0!==_0xac39b1['length']?0x1!==_0xac39b1['length']?this['_breakSuggestionMarker'](_0x36cca2,_0x36961c['start'],_0x36961c['end']):this['_setSuggestionRange'](_0x36cca2,_0xac39b1[0x0]):_0x5ef25e['removeMarker'](_0x36cca2['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3827a7){this['_editor']=_0x3827a7,this['_model']=_0x3827a7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1c2ce0,_0xcee901,_0x9cbfac,_0x4a04de,_0x509dbe,_0x2fce0c){return new u(this['_model'],{'type':_0x1c2ce0,'subType':_0xcee901,'id':_0x9cbfac,'author':_0x4a04de,'creator':_0x4a04de,'attributes':_0x509dbe,'onAttributesChange':_0x2fce0c,'onAccept':(..._0x1a1b0d)=>this['getSuggestionCallback'](_0x1c2ce0,_0xcee901,'accept')(..._0x1a1b0d),'onDiscard':(..._0x452ed8)=>this['getSuggestionCallback'](_0x1c2ce0,_0xcee901,'discard')(..._0x452ed8)});}['registerCustomCallback'](_0x1b1c22,_0x1680ff,_0x2c9bfa,_0x188f31){const _0x30ca5e=_0x1b1c22+':'+_0x1680ff+':'+_0x2c9bfa;this['_customCallbacks']['set'](_0x30ca5e,_0x188f31);}['getSuggestionCallback'](_0x202bf4,_0x54481c,_0x3e9132){const _0x5c7191=_0x202bf4+':'+_0x54481c+':'+_0x3e9132;return this['_customCallbacks']['get'](_0x5c7191)||this['_defaultCallbacks']['get'](_0x202bf4+':'+_0x3e9132);}['_registerDefaultCallbacks'](){const _0x6cdd91=()=>!0x1,_0x3598eb=_0x22a604=>{_0x22a604['sort']((_0x2154d8,_0x6d5e0e)=>_0x2154d8['start']['isBefore'](_0x6d5e0e['start'])?0x1:-0x1),this['_model']['change'](_0xad59a6=>{for(const _0x2577fb of _0x22a604){let _0x5a14fa;_0x5a14fa=_0x2577fb['end']['isAtEnd']&&_0x2577fb['end']['parent']==_0x2577fb['start']['nodeAfter']?_0xad59a6['createSelection'](_0x2577fb['start']['nodeAfter'],'on'):_0xad59a6['createSelection'](_0x2577fb),this['_model']['deleteContent'](_0x5a14fa,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1a9c27=(_0x14890f,_0x38c5ed)=>{_0x38c5ed&&this['_model']['change'](_0x290a5a=>{const {commandName:_0x53950d,commandParams:_0x3bffa3=[]}=_0x38c5ed,_0x23d8e1=_0x14890f['map'](_0x27a66b=>(Pt(_0x27a66b)&&(_0x27a66b=this['_model']['createRange'](_0x27a66b['end'])),_0x27a66b))['filter'](_0x21efaa=>'$graveyard'!==_0x21efaa['root']['rootName']);if(_0x23d8e1['length']<0x1)return;const _0x58dd39=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x34e345=>_0x114c36['fromRange'](_0x34e345));_0x290a5a['setSelection'](_0x23d8e1);for(const _0x43c492 of this['_editor']['commands']['commands']())_0x43c492['refresh']();_0x3bffa3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x53950d,..._0x3bffa3);const _0x1eb06f=_0x58dd39['filter'](_0x360a02=>'$graveyard'!=_0x360a02['root']['rootName']);_0x1eb06f['length']>0x0&&_0x290a5a['setSelection'](_0x1eb06f);for(const _0x338751 of _0x58dd39)_0x338751['detach']();});},_0x51442d=(_0x3c9dfe,_0x376357)=>0x1==_0x3c9dfe['length']&&0x1==_0x376357['length']&&_0x3c9dfe[0x0]['end']['isEqual'](_0x376357[0x0]['start']),_0x5f1017=(_0x4b96c2,_0x4212f8,_0xaa3a4d,_0x29a9b1)=>qt(_0x4b96c2,_0x4212f8,_0xaa3a4d,_0x29a9b1)?[_0x4b96c2,_0x4212f8]:qt(_0x4212f8,_0x4b96c2,_0x29a9b1,_0xaa3a4d)?[_0x4212f8,_0x4b96c2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x6cdd91),this['_defaultCallbacks']['set']('insertion:discard',_0x3598eb),this['_defaultCallbacks']['set']('insertion:join',_0x51442d),this['_defaultCallbacks']['set']('insertion:chain',_0x5f1017),this['_defaultCallbacks']['set']('deletion:accept',_0x3598eb),this['_defaultCallbacks']['set']('deletion:discard',_0x6cdd91),this['_defaultCallbacks']['set']('deletion:join',_0x51442d),this['_defaultCallbacks']['set']('deletion:chain',_0x5f1017),this['_defaultCallbacks']['set']('formatInline:accept',_0x1a9c27),this['_defaultCallbacks']['set']('formatInline:discard',_0x6cdd91),this['_defaultCallbacks']['set']('formatInline:join',_0x51442d),this['_defaultCallbacks']['set']('formatInline:chain',_0x6cdd91),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1a9c27),this['_defaultCallbacks']['set']('formatBlock:discard',_0x6cdd91),this['_defaultCallbacks']['set']('formatBlock:join',_0x51442d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x6cdd91),this['_defaultCallbacks']['set']('attribute:accept',_0x6cdd91),this['_defaultCallbacks']['set']('attribute:discard',(_0x5130bf,_0x11c687)=>{if(!_0x11c687)return;const _0x4380dc=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x515106=>{if(_0x11c687['key']==m)for(const _0x186055 of _0x5130bf){const _0x47fbe0=_0x186055['start']['nodeAfter'],_0x2cf1a4=_0x11c687['oldValue'];_0x515106['rename'](_0x47fbe0,_0x2cf1a4);}else{if(_0x4380dc['_isBlockAttribute'](_0x11c687['key'])){for(const _0x149604 of _0x5130bf)void 0x0!==_0x11c687['oldValue']?_0x515106['setAttribute'](_0x11c687['key'],_0x11c687['oldValue'],_0x149604['start']['nodeAfter']):_0x515106['removeAttribute'](_0x11c687['key'],_0x149604['start']['nodeAfter']);}else{for(const _0x5edd62 of _0x5130bf)_0x11c687['oldValue']?_0x515106['setAttribute'](_0x11c687['key'],_0x11c687['oldValue'],_0x5edd62):_0x515106['removeAttribute'](_0x11c687['key'],_0x5edd62);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x51442d);}}function Vt(_0x1e0383,_0x16d2a5,_0x491a01){for(const _0x304d3c of _0x16d2a5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x304d3c['root']==_0x304d3c)return!0x1;if(!_0x491a01['containsItem'](_0x304d3c))return!0x1;if(_0x1e0383['isObject'](_0x304d3c)||_0x1e0383['isLimit'](_0x304d3c))return!0x0;}return!0x1;}function Pt(_0x191de5){return _0x191de5['end']['parent']==_0x191de5['start']['nodeAfter']&&_0x191de5['end']['isAtStart'];}function Gt(_0x1f24ee,_0x631f46,_0xc79769,_0x7cb8a7){const _0x51d0bb=_0x55968c=>!_0x55968c['item']['is']('$textProxy')&&!_0x7cb8a7['isObject'](_0x55968c['item']),_0x12bc9b=_0x1f24ee['start']['getLastMatchingPosition'](_0x51d0bb),_0x24387b=_0x1f24ee['end']['getLastMatchingPosition'](_0x51d0bb,{'direction':'backward'});return(!_0x1f24ee['start']['isEqual'](_0x12bc9b)||!_0x1f24ee['end']['isEqual'](_0x24387b))&&(_0x12bc9b['isBefore'](_0x24387b)?_0xc79769['updateMarker'](_0x631f46,{'range':_0xc79769['createRange'](_0x12bc9b,_0x24387b)}):_0xc79769['removeMarker'](_0x631f46),!0x0);}function Ft(_0x3889dc){return _0x2ae810(_0x3889dc);}function Lt(_0x5e79a0){const _0x4d3e66=_0x5e79a0['start']['nodeAfter'];return _0x4d3e66&&_0x4d3e66['is']('element');}function Jt(_0x5f3905,_0x19c745){return null==_0x5f3905['end']['nodeBefore']&&_0x5f3905['end']['parent']==_0x5f3905['start']['nodeAfter']?Ht(_0x5f3905['start']['nodeAfter'],_0x19c745):_0x5f3905;}function Ht(_0x12424a,_0x2e206d){const _0x4bf56e=_0x2e206d['schema']['isObject'](_0x12424a)||_0x2e206d['schema']['isSelectable'](_0x12424a);return _0x2e206d['createRange'](_0x2e206d['createPositionAt'](_0x12424a,'before'),_0x4bf56e?_0x2e206d['createPositionAfter'](_0x12424a):_0x2e206d['createPositionAt'](_0x12424a,'end'));}function qt(_0x54cce8,_0x309ad2,_0xd54248,_0x634ab9){return!!zt(_0x54cce8,_0x309ad2)&&_0xd54248['end']['isEqual'](_0x634ab9['start']);}function zt(_0x455d33,_0xaef567){if(!_0x455d33['_isDataLoaded']||!_0xaef567['_isDataLoaded'])return!0x1;const _0x812b41=new Set(Object['keys'](_0x455d33['attributes'])),_0x5f555c=new Set(Object['keys'](_0xaef567['attributes']));if(_0x812b41['delete']('groupId'),_0x5f555c['delete']('groupId'),0x0==_0x812b41['size']&&0x0==_0x5f555c['size'])return!0x0;if(_0x812b41['size']!=_0x5f555c['size'])return!0x1;const _0x1fa8bf={..._0x455d33['attributes']},_0x485560={..._0xaef567['attributes']};return delete _0x1fa8bf['groupId'],delete _0x485560['groupId'],JSON['stringify'](_0x1fa8bf)==JSON['stringify'](_0x485560);}function Kt(_0x28d3c0,_0x117946){const _0xc8537b=Wt(_0x28d3c0['attributes']),_0x23388f=Wt(_0x117946);if(!_0x28d3c0['_isDataLoaded'])return!0x1;for(const _0x5d483c of Object['keys'](_0x23388f))if(!_0x2cb703(_0xc8537b[_0x5d483c],_0x23388f[_0x5d483c]))return!0x1;return!0x0;}function Wt(_0x95c437){const _0x3901bb=Object['assign']({},_0x95c437);return delete _0x3901bb['skipNestingCheck'],delete _0x3901bb['tablePasteChainId'],_0x3901bb;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x132ed3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x423384,_0x4c71dc,_0x4e8e59,_0x3979f0){super(),this['model']=_0x4c71dc,this['view']=_0x4e8e59,this['commentThreadController']=_0x3979f0,this['_editor']=_0x423384,this['_acceptCommand']=_0x423384['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x423384['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5d4710,_0x2b49e1)=>_0x5d4710||_0x2b49e1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x24edeb=>_0x24edeb&&this['_editor']['model']['canEditAt'](_0x4c71dc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x57659e=>_0x57659e&&this['_editor']['model']['canEditAt'](_0x4c71dc['getRanges']())),this['_pendingAction']=null,_0x4e8e59['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4e8e59,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4e8e59,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4e8e59,'change:isDirty',()=>{_0x4e8e59['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 _0x273ab4=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x273ab4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x11e5db{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x529fc9,_0x2b1978,_0x18a310,_0xae2e0e){super(_0x529fc9),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2b5eba(_0x529fc9,o(_0x529fc9,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2b1978['authoredAt']),this['bind']('authoredAt')['to'](_0x2b1978),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',_0x2b1978,'authoredAt',this,'descriptionParts',(_0x28c1a9,_0xe220fb,_0x2d6bcc)=>{const _0x409d7f=_0x2d6bcc['map'](_0x48106d=>ns(_0x48106d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x28c1a9-0x1,_0x2b1978['author']['name'],_0xe220fb?_0xae2e0e['formatDateTime'](_0xe220fb):'',new DOMParser()['parseFromString'](_0x409d7f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5c8dec(),this['focusTracker']=new _0x23ef9f(),this['keystrokes']=new _0x3bdab9(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x12a7bd=>_0x12a7bd['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2b1978,this['_localUser']=_0x18a310,this['_config']=_0xae2e0e,_0xae2e0e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x484b13(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x304da8}=this['_config'];this['commentsListView']=new _0x304da8(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',_0x35360f=>_0x35360f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4b097f,_0x290df3)=>_0x4b097f||!!_0x290df3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3d68be}=this['_config'],_0x9ac893=new _0x3d68be(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2beece=_0x9ac893['commentInputView'];return _0x9ac893['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2beece,'value',(_0x36937f,_0x3cf6d7,_0x2053ab)=>!!_0x2053ab||_0x36937f&&!_0x3cf6d7),_0x2beece['on']('submit',(_0x44896c,_0x430171)=>{this['fire']('addComment',_0x430171),_0x2beece['editor']['setData']('');}),_0x2beece['on']('cancel',()=>this['focus']()),_0x2beece['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x9ac893;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x1390de,_0x5ac79d,_0x2f4be2,_0x32b632){super(_0x1390de,_0x5ac79d,_0x2f4be2,_0x32b632),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x35c43a=>_0x35c43a&&_0x35c43a[0x0]?_0x35c43a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3bc95a,_0x43744e)=>{let _0x207933='';for(const _0x3546d2 of _0x3bc95a)_0x207933+='<p>'+ns(_0x3546d2['content'],_0x3546d2['color'])+'</p>';return _0x43744e?_0x207933:_0x54b9fd(_0x207933,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x32b632['SuggestionView'](_0x1390de,_0x5ac79d,{'formatDateTime':_0x32b632['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 _0x4d77a6=this['bindTemplate'],_0x9ce038=[this['suggestionView']];return this['commentsListView']&&_0x9ce038['push'](this['commentsListView']),this['commentThreadInputView']&&_0x9ce038['push'](this['commentThreadInputView']),_0x9ce038['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4d77a6['if']('isActive','ck-suggestion-wrapper--active'),_0x4d77a6['to']('type',_0x411940=>'ck-suggestion-'+_0x411940),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':_0x4d77a6['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x9ce038};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x11e5db{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2589d3,_0x4a64d3,_0x1d72ea){super(_0x2589d3),this['_model']=_0x4a64d3,this['_config']=_0x1d72ea,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4a64d3),this['acceptButton']=this['_createButton'](o(_0x2589d3,'Accept\x20suggestion'),_0x230c64['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2589d3,'Discard\x20suggestion'),_0x230c64['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xf70ba3(_0x2589d3,_0x4a64d3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5c8dec([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x23ef9f(),this['keystrokes']=new _0x3bdab9(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4960b3=>_0x4960b3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x257513=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x257513['innerHTML']=this['description'],this['on']('change:description',(_0x36996f,_0x2e7817,_0x180ec4)=>{_0x257513['innerHTML']=_0x180ec4;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x37a88b=this['bindTemplate'],_0x1b75be=[{'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':_0x37a88b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x37a88b['to']('authoredAt',_0x21adea=>this['_config']['formatDateTime'](_0x21adea))}]}]},{'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']&&_0x1b75be['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':_0x1b75be}]};}['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'](_0x10f0bf,_0x2c4916,_0x550f07,_0x30d984,_0x39b34c){const _0x1c4407=new _0xc6c968(this['locale']);return _0x1c4407['set']({'label':_0x10f0bf,'icon':_0x2c4916,'tooltip':!0x0,'tooltipPosition':_0x39b34c}),_0x1c4407['extendTemplate']({'attributes':{'class':_0x550f07}}),_0x1c4407['on']('execute',()=>{this['fire'](_0x30d984,this['_model']['id']);}),_0x1c4407;}['_setupKeyboardNavigation'](){const _0x4648c6=this['element'];this['keystrokes']['listenTo'](_0x4648c6);for(const _0x54a872 of this['focusables'])this['focusTracker']['add'](_0x54a872['element']),this['keystrokes']['listenTo'](_0x54a872['element']);this['keystrokes']['set']('enter',(_0x3abc2f,_0x555853)=>{_0x4648c6===_0x3abc2f['target']&&(this['focusCycler']['focusFirst'](),_0x555853());}),this['keystrokes']['set']('esc',(_0x16b326,_0x37bac5)=>{_0x4648c6!==_0x16b326['target']&&(this['focus'](),_0x37bac5());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x32720e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x48e0a0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1071c7){super(_0x1071c7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1672bd=this['editor']['config'];_0x1672bd['define']('trackChanges.SuggestionThreadView',pe),_0x1672bd['define']('trackChanges.SuggestionView',fe),_0x1672bd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1672bd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x575ebb,_0x2f6299){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x57a123,_0x1d1e32]of this['_handleControllerBuffer']){const _0x25e769=this['_suggestionToController']['has'](_0x57a123);_0x25e769||_0x1d1e32?_0x25e769&&_0x1d1e32&&this['_destroyController'](_0x57a123):this['_initializeController'](_0x57a123);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x575ebb,_0x2f6299);}['init'](){const _0x16d96e=this['editor'],_0x3cdc09=_0x16d96e['plugins']['get']('TrackChangesEditing'),_0x39f6ef=_0x16d96e['plugins']['get']('Annotations'),_0x52cf25=_0x16d96e['plugins']['get']('EditorAnnotations'),_0x14d0a8=_0x16d96e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x52cf25['addSourceCollector'](()=>{const _0xb84493=[];for(const [_0x318a05,_0xd867de]of Array['from'](this['_suggestionToController'])){const _0x54f476=_0x318a05['getAllAdjacentSuggestions'](),_0x597dd4=[];for(const _0x502684 of _0x54f476){if(!_0x502684['isInContent'])continue;if(_0x502684['isMultiRange']){_0x597dd4['push'](..._0x502684['getRanges']());continue;}const _0x45fcf2=_0x502684['getFirstRange']();if(_0x597dd4['length']>0x0){const _0x528ba5=_0x597dd4[0x0]['getJoined'](_0x45fcf2);if(_0x528ba5){_0x597dd4[0x0]=_0x528ba5;continue;}}_0x597dd4['push'](_0x45fcf2);}_0xb84493['push']([_0xd867de['view'],_0x597dd4]);}return _0xb84493;}),this['listenTo'](_0x3cdc09,'suggestionLoaded',(_0x39f0db,_0x36bca6)=>{this['listenTo'](_0x36bca6,'change:previous',(_0x292cd7,_0x179c6a,_0x27c7c8,_0x29daa0)=>{_0x36bca6['isInContent']&&(null==_0x27c7c8?(this['_updateController'](_0x29daa0['head']),this['_handleSuggestionControllerDelayed'](_0x36bca6,!0x1)):(this['_updateController'](_0x27c7c8['head']),null==_0x29daa0&&this['_handleSuggestionControllerDelayed'](_0x36bca6,!0x0)));}),null!==_0x36bca6['previous']?this['_updateController'](_0x36bca6['head']):this['_handleSuggestionControllerDelayed'](_0x36bca6,!0x1);}),this['listenTo'](_0x3cdc09,'suggestionUnloaded',(_0x55aa7d,_0x159b36,_0xfc4c0b)=>{this['stopListening'](_0x159b36,'change:previous'),this['_handleControllerBuffer']['delete'](_0x159b36),this['_suggestionToController']['has'](_0x159b36)&&this['_destroyController'](_0x159b36),_0xfc4c0b&&this['_updateController'](_0xfc4c0b['head']);}),this['listenTo'](_0x3cdc09,'suggestionChanged',(_0xf3b880,_0x5cbc54)=>{this['_updateController'](_0x5cbc54);}),this['listenTo'](_0x39f6ef,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x14d0a8,'addComment',(_0x6d6d85,{threadId:_0x20188b,isFromAdapter:_0x1c4e63})=>{if(_0x1c4e63||!_0x3cdc09['hasSuggestion'](_0x20188b))return;const _0x43cc95=_0x3cdc09['getSuggestion'](_0x20188b);this['_suggestionToController']['get'](_0x43cc95)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16d96a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x17cf8f;for(const _0x29239a in _0x16d96a){const _0x6f50ed=_0x29239a,_0x8b1d54=_0x16d96a[_0x6f50ed];if('trackChangesLicenseKeyValid'==_0x8b1d54||'trackChangesLicenseKeyInvalid'==_0x8b1d54||'trackChangesLicenseKeyExpired'==_0x8b1d54||'trackChangesLicenseKeyDomainLimit'==_0x8b1d54||'trackChangesLicenseKeyNotAllowed'==_0x8b1d54||'trackChangesLicenseKeyEvaluationLimit'==_0x8b1d54||'trackChangesLicenseKeyTrialLimit'==_0x8b1d54||'trackChangesLicenseKeyUsageLimit'==_0x8b1d54){delete _0x16d96a[_0x6f50ed],_0x17cf8f=_0x8b1d54,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x17cf8f&&_0x16d96a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x17cf8f&&_0x16d96a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x17cf8f&&_0x16d96a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x17cf8f&&_0x16d96a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x17cf8f&&_0x16d96a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x17cf8f&&_0x16d96a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x17cf8f&&_0x16d96a['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3e453b=this['editor']['plugins']['get']('Annotations'),_0x57bd93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f98d2=Array['from'](_0x3e453b['activeAnnotations'],_0x5c5663=>_0x5c5663['innerView'])['filter'](_0xb265aa=>this['_viewToController']['has'](_0xb265aa)),_0x2ad8ea=[];for(const _0x31f0a2 of _0x3f98d2){const _0x1d9d39=this['_viewToController']['get'](_0x31f0a2)['model']['getAllAdjacentSuggestions']();_0x2ad8ea['push'](..._0x1d9d39['reduce']((_0x43f3b0,_0x1a2dca)=>[..._0x43f3b0,..._0x1a2dca['getMarkerNames']()],[]));}_0x57bd93['activeMarkers']=_0x2ad8ea;}['_addUIComponentsToFactory'](){const _0x35dc56=this['editor'],_0x460929=_0x35dc56['locale'],_0x3ef0d3=o(_0x460929,'Track\x20changes'),_0x30dabc=new _0x33f543([{'type':'switchbutton','model':new _0x41358f({'withText':!0x0,'isToggleable':!0x0,'label':_0x3ef0d3,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x41358f({'withText':!0x0,'label':o(_0x460929,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41358f({'withText':!0x0,'label':o(_0x460929,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41358f({'withText':!0x0,'label':o(_0x460929,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41358f({'withText':!0x0,'label':o(_0x460929,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x35dc56['plugins']['has']('TrackChangesPreview')&&_0x30dabc['addMany']([{'type':'separator'},{'type':'button','model':new _0x41358f({'withText':!0x0,'label':o(_0x460929,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xf7089f of _0x30dabc)if(ke(_0xf7089f)){const _0x352c88=_0x35dc56['commands']['get'](_0xf7089f['model']['commandName']);_0xf7089f['model']['bind']('isOn','isEnabled')['to'](_0x352c88,'value','isEnabled');}_0x35dc56['ui']['componentFactory']['add']('trackChanges',_0x1effcb=>this['_createToolbarButton'](_0x1effcb,_0x30dabc,_0x3ef0d3)),_0x35dc56['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3031be=>this['_createMenuBarMenu'](_0x3031be,_0x30dabc,_0x3ef0d3));}['_createToolbarButton'](_0x56091d,_0x300b26,_0x26d090){const _0x4172b9=_0x4cb20b(_0x56091d,_0x4b215d),_0x1e44d8=this['editor']['commands']['get']('trackChanges');_0x4172b9['buttonView']['set']({'tooltip':_0x26d090,'label':_0x26d090,'icon':we}),_0x4172b9['buttonView']['bind']('isOn')['to'](_0x1e44d8,'value'),_0x4172b9['buttonView']['on']('execute',()=>{_0x1e44d8['execute'](),this['editor']['editing']['view']['focus']();}),_0x4322f7(_0x4172b9,_0x300b26,{'role':'menu'});const _0x55c59e=[];for(const _0x9b522 of _0x300b26)ke(_0x9b522)&&_0x55c59e['push'](this['editor']['commands']['get'](_0x9b522['model']['commandName']));const _0x5d170e=_0x4172b9['buttonView'];return _0x5d170e['actionView']['unbind']('isEnabled'),_0x5d170e['arrowView']['unbind']('isEnabled'),_0x5d170e['actionView']['bind']('isEnabled')['to'](_0x1e44d8,'isEnabled'),_0x5d170e['arrowView']['bind']('isEnabled')['toMany'](_0x55c59e,'isEnabled',(..._0x27b772)=>_0x27b772['some'](_0xd861ac=>_0xd861ac)),_0x4172b9['on']('execute',_0x1cc18c=>{this['editor']['execute'](_0x1cc18c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4172b9;}['_createMenuBarMenu'](_0x19d32d,_0x2bc5b1,_0x2f4015){const _0x4880d7=new _0x3a12bc(_0x19d32d),_0x160356=this['editor']['commands']['get']('trackChanges');_0x4880d7['buttonView']['set']({'label':_0x2f4015,'icon':we});const _0x30b7a4=new _0x376e85(_0x19d32d);for(const _0x15cc97 of _0x2bc5b1){if('separator'==_0x15cc97['type']){_0x30b7a4['items']['add'](new _0xa8bd4d(_0x19d32d));continue;}const _0x3d0a94=new _0x5369f1(_0x19d32d,_0x4880d7),_0xd8c85f=new _0x4ce01f(_0x19d32d),_0x141b98=_0x15cc97['model'];_0xd8c85f['bind'](...Object['keys'](_0x141b98))['to'](_0x141b98),_0xd8c85f['delegate']('execute')['to'](_0x4880d7),_0xd8c85f['on']('execute',()=>{this['editor']['execute'](_0x141b98['commandName']),this['editor']['editing']['view']['focus']();}),_0x3d0a94['children']['add'](_0xd8c85f),_0x30b7a4['items']['add'](_0x3d0a94);}return _0x4880d7['bind']('isEnabled')['to'](_0x160356,'isEnabled'),_0x4880d7['panelView']['children']['add'](_0x30b7a4),_0x4880d7;}['_initializeController'](_0x3eb50c){const _0x2b0a7f=this['editor'],_0x22bcde=_0x2b0a7f['config'],_0x3cfed8=_0x2b0a7f['plugins']['get']('Annotations'),_0x47bcc7=_0x2b0a7f['plugins']['get']('CommentsRepository'),_0x50442c=_0x2b0a7f['plugins']['get']('EditorAnnotations'),_0xc78b86=_0x2b0a7f['plugins']['get'](_0x48e0a0)['me'],_0xd05191=_0x22bcde['get']('trackChanges')['SuggestionThreadView'],_0x378510=_0x22bcde['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2a2782,CommentThreadInputView:_0x512abf}=_0x2b0a7f['plugins']['get']('CommentsUI');let _0x3dd86a,_0x502915,_0x5115ae;this['_annotationViews']['has'](_0x3eb50c['id'])?(_0x502915=this['_annotationViews']['get'](_0x3eb50c['id']),_0x3dd86a=_0x502915['mainView']):(_0x3dd86a=new _0xd05191(_0x2b0a7f['locale'],_0x3eb50c,_0xc78b86,{'disableComments':this['_disableComments'],'editorConfig':{..._0x22bcde['get']('comments.editorConfig'),'licenseKey':_0x22bcde['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x22bcde['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x22bcde['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x22bcde['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1872cb(_0x22bcde['get']('locale')),'CommentView':_0x22bcde['get']('comments')['CommentView'],'CommentsListView':_0x2a2782,'CommentThreadInputView':_0x512abf,'SuggestionView':_0x378510}),_0x3dd86a['suggestionView']['acceptButton']['on']('execute',()=>{_0x2b0a7f['editing']['view']['focus']();}),_0x3dd86a['suggestionView']['discardButton']['on']('execute',()=>{_0x2b0a7f['editing']['view']['focus']();}),_0x502915=_0x3cfed8['createAnnotationView'](this['editor']['locale'],_0x3dd86a),_0x502915['bind']('isDirty')['to'](_0x3dd86a,'isDirty'),_0x502915['bind']('length')['to'](_0x3dd86a),_0x502915['bind']('type')['to'](_0x3dd86a,'type',_0x5a7a21=>'suggestion-'+_0x5a7a21),_0x3dd86a['on']('escape',()=>{_0x5115ae['fire']('escape');}),this['_annotationViews']['set'](_0x3eb50c['id'],_0x502915));const _0xe6ecd4=_0x47bcc7['createCommentThreadController'](_0x3eb50c['commentThread'],_0x3dd86a),_0x2851da=new Ce(_0x2b0a7f,_0x3eb50c,_0x3dd86a,_0xe6ecd4),_0x44a1e0=_0x3eb50c['getAllAdjacentSuggestions']()['filter'](_0x2e784f=>_0x2e784f['isInContent']);_0x3dd86a['descriptionParts']=_0x2b0a7f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x44a1e0),this['_suggestionToController']['set'](_0x3eb50c,_0x2851da),this['_viewToController']['set'](_0x3dd86a,_0x2851da),_0x5115ae=_0x3cfed8['createAnnotation']({'view':_0x502915,'target':()=>{const _0x2e841f=[],_0x189b3e=_0x3eb50c['getAllAdjacentSuggestions']()['filter'](_0x3ccb0b=>_0x3ccb0b['isInContent']);for(const _0x48fa57 of _0x189b3e)_0x2e841f['push'](..._0x48fa57['getMarkers']());return _0xf76376(_0x2b0a7f['editing'],_0x2e841f);},'type':()=>'suggestion-'+_0x2851da['view']['type']}),_0x47bcc7['_bindAnnotationToEditors'](_0x3dd86a,_0x5115ae),_0x3cfed8['add'](_0x5115ae),_0x50442c['registerAnnotation'](_0x5115ae);}['_destroyController'](_0x52cf77){const _0x268c5d=this['editor']['plugins']['get']('CommentsRepository'),_0x282a29=this['editor']['plugins']['get']('Annotations'),_0x12a8df=this['_suggestionToController']['get'](_0x52cf77),_0x4b25eb=_0x12a8df['view'],_0x2fbe20=_0x282a29['getByInnerView'](_0x4b25eb);_0x268c5d['_unbindEditors'](_0x4b25eb),_0x2fbe20&&_0x282a29['remove'](_0x2fbe20),this['_suggestionToController']['delete'](_0x52cf77),this['_viewToController']['delete'](_0x4b25eb),_0x12a8df['destroy']();}['_updateController'](_0x32f4db){if(!_0x32f4db['isInContent']||!this['_suggestionToController']['has'](_0x32f4db))return;const _0x3e50a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcb59f4=this['_suggestionToController']['get'](_0x32f4db),_0x3a009e=_0x32f4db['getAllAdjacentSuggestions']();_0xcb59f4['view']['descriptionParts']=_0x3e50a9['descriptionFactory']['getDescriptions'](_0x3a009e);}['destroy'](){for(const _0x25e897 of this['_suggestionToController']['keys']())this['_destroyController'](_0x25e897);for(const _0x193a20 of this['_annotationViews']['values']())_0x193a20['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x14ab3b){return'model'in _0x14ab3b;}class k extends _0x32720e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x29098d){this['editor']['plugins']['get'](p)['adapter']=_0x29098d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1839f4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1839f4);}['getSuggestions']({skipNotAttached:_0x49586d=!0x1,toJSON:_0x1a9ab3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x49586d,'toJSON':_0x1a9ab3});}['getSuggestion'](_0x102eeb){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x102eeb);}}const w=['Pagination'];class T extends _0x32720e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5c5305=this['editor'];if(_0x5c5305['config']['define']('trackChangesData.editorCreator',_0x38fdc7=>{const _0xe95fa1=_0x5c5305['model']['document']['getRootNames']()['reduce']((_0x5345c0,_0x3b1505)=>(_0x5345c0[_0x3b1505]='',_0x5345c0),{});return _0x5c5305['constructor']['create'](_0xe95fa1,_0x38fdc7);}),'function'!=typeof _0x5c5305['config']['get']('trackChangesData')['editorCreator'])throw new _0xfec3cf('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x7801ea){return N(this['editor'],!0x0,_0x7801ea);}['getDataWithDiscardedSuggestions'](_0x385090){return N(this['editor'],!0x1,_0x385090);}}class D extends _0x32720e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d5cd4){function _0x2e5af9(_0x518eb9){return _0x518eb9['map'](_0x226405=>String['fromCharCode'](_0x226405))['join']('');}super(_0x4d5cd4),this['result']='end',_0x4d5cd4[_0x2e5af9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e5af9([0x76,0x69,0x65,0x77])][_0x2e5af9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e5af9([0x61,0x75,0x74,0x6f]),_0x4d5cd4[_0x2e5af9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2e5af9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e5af9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2e5af9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2e5af9([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x3d0bd8){return void 0x0!==_0x3d0bd8['getRootsAttributes'];}async function N(_0x1b3b68,_0x576d02,_0x2c89eb){const _0x373f03=_0x46ee85(_0x1b3b68,w);_0x373f03['plugins']['push'](p,D),_0x373f03['rootsAttributes']=Fe(_0x1b3b68)?_0x1b3b68['getRootsAttributes']():void 0x0;const _0x5b09ac=document['createDocumentFragment'](),_0x547d97=_0x1b3b68['config']['get']('trackChangesData')['editorCreator'],_0x2343f5=await _0x547d97(_0x373f03,()=>function(_0x5f5310){const _0x1fd185=document['createElement']('div');return _0x5f5310['appendChild'](_0x1fd185),_0x1fd185;}(_0x5b09ac));!function(_0xa7f47c,_0x368fc2){const _0x643e2d=_0xa7f47c['model']['document']['getRootNames']()['reduce']((_0x22f582,_0x1f65ca)=>(_0x22f582[_0x1f65ca]=_0xa7f47c['data']['get']({'rootName':_0x1f65ca}),_0x22f582),{}),_0x289584=_0xa7f47c['plugins']['get']('Users')['users']['map'](_0xe7a727=>({'id':_0xe7a727['id'],'name':_0xe7a727['name']})),_0x179594=_0xa7f47c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x56a22d=_0xa7f47c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xd2885a=_0x368fc2['plugins']['get']('Users'),_0x2dc616=_0x368fc2['plugins']['get']('TrackChangesEditing'),_0x43b88=_0x368fc2['plugins']['get']('CommentsRepository');for(const _0x3b20a1 of _0x43b88['getCommentThreads']())_0x3b20a1['remove']();for(const _0x32d218 of _0x289584)_0xd2885a['getUser'](_0x32d218['id'])||_0xd2885a['addUser'](_0x32d218);_0xd2885a['me']||_0xd2885a['useAnonymousUser']();for(const _0x550028 of _0x56a22d)_0x43b88['addCommentThread'](_0x550028);for(const _0xa26b11 of _0x179594)_0x2dc616['addSuggestionData'](_0xa26b11);_0x368fc2['data']['set'](_0x643e2d);}(_0x1b3b68,_0x2343f5),_0x2343f5['execute'](_0x576d02?'acceptAllSuggestions':'discardAllSuggestions');const _0x227f3f=Fe(_0x2343f5)?_0x2343f5['getFullData'](_0x2c89eb):_0x2343f5['data']['get'](_0x2c89eb);return await _0x2343f5['destroy'](),_0x227f3f;}class Me extends _0x11e5db{['options'];constructor(_0x81f3a3,_0x2fb0c7){super(_0x81f3a3),this['options']=_0x2fb0c7,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'](_0x47ba51,_0x40b9de){if(!this['element'])return;const _0x2004e0=[];for(const [_0x5de751,_0x23624b]of _0x47ba51){const _0x257dc1=document['createElement']('div');_0x257dc1['setAttribute']('data-ck-root-name',_0x5de751),_0x257dc1['className']=_0x23624b['classes']+'\x20ck-track-changes-preview__root-container',_0x257dc1['innerHTML']=_0x23624b['content'],_0x2004e0['push'](_0x257dc1);}_0x40b9de(this['element'],_0x2004e0),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x534b21){super(_0x534b21),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x51f8c6=this['editor'],_0x988ccf=_0x51f8c6['locale'],_0x2c8eb8=_0x51f8c6['plugins']['get']('Dialog');let _0x5e3e1b;const _0x4879fe=function(_0xce73c){const _0x49c298={};if('editables'in _0xce73c['ui']['view']){for(const [_0xafccec,_0xe3a4f3]of Object['entries'](_0xce73c['ui']['view']['editables']))_0x49c298[_0xafccec]=_0xe3a4f3['element'];}else _0x49c298[_0xce73c['model']['document']['getRootNames']()[0x0]]=_0xce73c['ui']['view']['editable']['element'];return _0x49c298;}(_0x51f8c6),_0x5f4b69=function(_0xf8b08b){let _0x169106=0x0;for(const _0xeef46c of Object['values'](_0xf8b08b))_0x169106=Math['max'](_0x169106,_0xeef46c['getBoundingClientRect']()['width']);let _0x37bb67=0x0;for(const _0x5effc4 of Object['values'](_0xf8b08b))_0x37bb67+=_0x5effc4['getBoundingClientRect']()['height'];const _0x5ef255=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2b4271=Math['min'](_0x37bb67,_0x5ef255);return{'width':_0x169106,'height':_0x2b4271};}(_0x4879fe);_0x2c8eb8['show']({'id':'finalContentPreview','title':o(_0x988ccf,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x988ccf,{'dialogRects':_0x5f4b69}),'onHide':()=>{_0x5e3e1b['detachFromDom']();},'onShow':()=>{_0x51f8c6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x59ce17=>{const _0x2b3b22=this['_standarizeRootsData'](_0x59ce17,_0x51f8c6,_0x4879fe);_0x2c8eb8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2b3b22,_0x51f8c6['config']['get']('trackChanges.preview.renderFunction'));}),_0x5e3e1b=new _0x2be798(_0x988ccf,[_0x2c8eb8['view']]),_0x5e3e1b['attachToDom'](),_0x5e3e1b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x51f8c6['once']('destroy',()=>{_0x5e3e1b['detachFromDom']();});const _0x16c3f4=_0x2c8eb8['view']['headerView']['class'];_0x2c8eb8['view']['headerView']['class']=_0x16c3f4?_0x16c3f4+'\x20ck-reset_all':'ck-reset_all',_0x2c8eb8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2c8eb8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2556ac=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x57ac0e=_0x2556ac['previewMode'],_0x795e3a={};if('$labels'===_0x57ac0e){for(const _0x3abb6d of _0x2556ac['getMergeFieldsIds']())_0x795e3a[_0x3abb6d]=_0x2556ac['getLabel'](_0x3abb6d)||_0x3abb6d;}else{const _0x11f0cb='$defaultValues'===_0x57ac0e?_0x2556ac['getDefaultValues']():_0x2556ac['getDataSetValues'](_0x57ac0e,!0x0);for(const _0x24aa0f of Object['entries'](_0x11f0cb)){const [_0x2ae944,_0x496e29]=_0x24aa0f;_0x795e3a[_0x2ae944]=null!==_0x496e29?_0x496e29:_0x2556ac['getLabel'](_0x2ae944)||_0x2ae944;}}return{'mergeFieldsData':_0x795e3a};}['_standarizeRootsData'](_0x3fd92e,_0x371f77,_0x3f0941){let _0x353ba1;if('string'==typeof _0x3fd92e){const _0x3f7ad3=_0x371f77['model']['document']['getRootNames']()[0x0];_0x353ba1={[_0x3f7ad3]:_0x3fd92e};}else _0x353ba1=_0x3fd92e;const _0x3ca72e=this['_fixMediaEmbeds'](_0x353ba1,_0x371f77),_0x5edee2=function(_0x4f04b3,_0x150147){for(const [_0x4e7723,_0x2c3460]of _0x4f04b3)_0x2c3460['classes']=_0x150147[_0x4e7723]['classList']['value']['replace']('ck-focused','');return _0x4f04b3;}(this['_sortRoots'](_0x371f77)['reduce']((_0x4b6d28,_0x303616)=>(_0x4b6d28['push']([_0x303616,{'content':_0x3ca72e[_0x303616],'classes':''}]),_0x4b6d28),[]),_0x3f0941);return _0x5edee2;}['_fixMediaEmbeds'](_0x1c6029,_0x2c6963){if(!_0x2c6963['plugins']['has']('MediaEmbedEditing'))return _0x1c6029;const _0x29afc4=_0x2c6963['plugins']['get']('MediaEmbedEditing');for(const [_0x2d13f8,_0x34e1e3]of Object['entries'](_0x1c6029)){const _0x19a746=document['createElement']('div');_0x19a746['innerHTML']=_0x34e1e3,(_0x19a746['querySelectorAll']('figure.media')['forEach'](_0x388d10=>{const _0x2c3989=_0x388d10['querySelector']('oembed');if(_0x2c3989){const _0xfda75=_0x2c3989['getAttribute']('url');if(_0xfda75){const _0x35ffaa=_0x29afc4['registry']['getMediaViewElement'](new _0x35eebe(_0x2c6963['editing']['view']['document']),_0xfda75,{'elementName':'','renderForEditingView':!0x0}),_0x6d6557=document['createElement']('div');_0x6d6557['classList']['add']('ck-media__wrapper'),_0x35ffaa['render'](_0x6d6557,_0x2c6963['editing']['view']['domConverter']),_0x2c3989['replaceWith'](_0x6d6557);}}}),_0x1c6029[_0x2d13f8]=_0x19a746['innerHTML']);}return _0x1c6029;}['_sortRoots'](_0x47396d){if(!function(_0x259c03){return void 0x0!==_0x259c03['getRootsAttributes'];}(_0x47396d))return _0x47396d['model']['document']['getRootNames']();const _0x302370=[],_0x220735=new Map();for(const _0x3d9e5e of _0x47396d['model']['document']['getRootNames']()){const _0x510af7=_0x47396d['editing']['view']['getDomRoot'](_0x3d9e5e)['getClientRects']()['item'](0x0);_0x302370['push'](_0x3d9e5e),_0x220735['set'](_0x3d9e5e,_0x510af7);}return _0x302370['sort']((_0x13969a,_0x6371f4)=>{const _0x2c3ad4=_0x220735['get'](_0x13969a),_0x281dca=_0x220735['get'](_0x6371f4);return _0x2c3ad4['y']-_0x281dca['y']||_0x2c3ad4['x']-_0x281dca['x'];}),_0x302370;}}class te extends _0x32720e{static get['requires'](){return[T,_0x26d4e0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e715b){super(_0x1e715b),_0x1e715b['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1e715b['config']['define']('trackChanges.preview.renderFunction',(_0x21e8d7,_0x56a367)=>{for(const _0x105c4a of _0x56a367)_0x21e8d7['appendChild'](_0x105c4a);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as Qt,Plugin as _0x5d6089,PendingActions as _0x51645a,icons as _0x4175cb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x443412,ObservableMixin as _0x1e4a9e,uid as _0x3e98cb,priorities as _0xa7b267,insertToPriorityArray as _0x4c87f7,logWarning as _0x5d59b3,getEnvKeystrokeText as _0x2b9d18,FocusTracker as _0x48b573,KeystrokeHandler as _0xace25c,Collection as _0x587b41}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4a36e9,View as _0x5af415,ViewCollection as _0x2ee850,FocusCycler as ts,ViewModel as _0x5d4f74,createDropdown as _0x21aa3c,SplitButtonView as _0xe7a2f2,addListToDropdown as _0x20b8e0,MenuBarMenuView as _0x54474e,MenuBarMenuListView as _0x2c7f70,ListSeparatorView as _0x1eeea8,MenuBarMenuListItemView as _0x37c849,MenuBarMenuListItemButtonView as _0x2a6114,BodyCollection as _0x91a64,Dialog as _0x3b1aab}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xb5d06b,hashObject as _0x567c87,surroundingMarkersDetector as _0x499a36,FOCUS_ANNOTATION_KEYSTROKE as _0x3b30c0,AriaDescriptionView as _0x43b6cb,setupThreadKeyboardNavigation as _0x5a76a7,trimHtml as _0x1eae6c,UserView as _0x52c9bb,LateFocusButtonView as _0x5b52ba,getDateTimeFormatter as _0x492577,getAllMarkersDomElementsSorted as _0x2912c5,sanitizeEditorConfig as _0x25065b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2ae963,LiveRange as _0x190639,LivePosition as _0x1f9cd0,DowncastWriter as _0x714d27}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4bfc39,toWidget as _0x464eed}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x12f90d,set as _0x27cd11,isEqual as _0x3a2d98,unset as _0x5eaa15,omit as Et}from'lodash-es';import{Delete as _0x460f75,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2cc9cd,ShiftEnter as _0x1b9647}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0xdd56c8,_0x2170b8){super(_0xdd56c8),this['_enabledCommands']=_0x2170b8,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 _0x373e0b of this['editor']['commands']['commands']())_0x373e0b['affectsData']&&!this['_enabledCommands']['has'](_0x373e0b)&&_0x373e0b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x41440d of this['editor']['commands']['commands']())_0x41440d['affectsData']&&!this['_enabledCommands']['has'](_0x41440d)&&_0x41440d['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x170e18,_0x416291){super(_0x170e18),this['_suggestions']=_0x416291,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xafb5b6){const _0x3aafeb=this['_suggestions']['get'](_0xafb5b6);if(!_0x3aafeb)throw new _0x443412('track-changes-accept-suggestion-not-found',this);const _0xb9bab6=_0x3aafeb['getRanges']();this['editor']['model']['canEditAt'](_0xb9bab6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3aafeb);}}class R extends Qt{['_suggestions'];constructor(_0x599369,_0x395b53){super(_0x599369),this['_suggestions']=_0x395b53,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x582cfe){const _0x443120=this['_suggestions']['get'](_0x582cfe);if(!_0x443120)throw new _0x443412('track-changes-discard-suggestion-not-found',this);const _0x567f14=_0x443120['getRanges']();this['editor']['model']['canEditAt'](_0x567f14)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x443120);}}function ns(_0x547264,_0x5b6994){let _0x2298d7='';return _0x2298d7+=_0x547264['split']('*')['map']((_0x185af8,_0x38eccb)=>_0x38eccb%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x185af8)+'</span>':nn(_0x185af8))['join'](''),_0x5b6994&&(_0x2298d7+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5b6994['value']+'\x22\x20title=\x22'+_0x5b6994['title']+'\x22></span>'),_0x2298d7;}function nn(_0x2a0b17){const _0x557e05=document['createElement']('span');return _0x557e05['innerText']=_0x2a0b17,_0x557e05['innerHTML'];}function Xt(_0x1a76f4){return _0x1a76f4['sort']((_0x579aa8,_0x113e7e)=>'deletion'==_0x579aa8['type']&&'deletion'!=_0x113e7e['type']?-0x1:'deletion'!=_0x579aa8['type']&&'deletion'==_0x113e7e['type']?0x1:0x0);}function to(_0x512e10,_0x15d318){let _0xddcdbf,_0x3866d0=0x0;const _0xd0c6b1=[],_0x597917=_0x15d318['schema'];for(;_0x3866d0<_0x512e10['length'];){const _0x1c5c89=_0x512e10[_0x3866d0],_0x119a1f=_0x512e10[_0x3866d0+0x1];_0xddcdbf||(_0xddcdbf=_0x15d318['createPositionBefore'](_0x1c5c89)),on(_0x15d318,_0x1c5c89,_0x119a1f)||(_0xd0c6b1['push'](_0x15d318['createRange'](_0xddcdbf,_0x597917['isObject'](_0x1c5c89)?_0x15d318['createPositionAfter'](_0x1c5c89):_0x15d318['createPositionAt'](_0x1c5c89,'end'))),_0xddcdbf=null),_0x3866d0++;}return _0xd0c6b1;}function on(_0x138e9b,_0x225927,_0x350611){if(!_0x350611)return!0x1;const _0x250af1=_0x138e9b['createPositionAfter'](_0x225927),_0x552522=_0x138e9b['createPositionBefore'](_0x350611);return _0x250af1['isTouching'](_0x552522);}function Yt(_0x527ca8,_0x6018e6,_0x314082){for(;_0x314082['length'];){const _0x765480=_0x314082['splice'](0x0,0x64);_0x527ca8['change'](()=>{for(const _0x192343 of _0x765480)_0x192343['isInContent']&&_0x6018e6['execute'](_0x192343['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x290c6d,_0xfbff61,_0x2b3b9f){super(_0x290c6d),this['_command']=_0xfbff61,this['_suggestions']=_0x2b3b9f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x14e3a9=Array['from'](this['_suggestions']['values']())['some'](_0xde5c50=>_0xde5c50['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x14e3a9;}['execute'](){const _0x27001a=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x9fc8ac of _0x27001a){const _0x3520e5=_0x9fc8ac['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3520e5))return;}Yt(this['editor']['model'],this['_command'],_0x27001a);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2b9aa7,_0x238837,_0x263eac){super(_0x2b9aa7),this['_command']=_0x238837,this['_suggestions']=_0x263eac,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xe75796=this['editor']['model']['document']['selection'],_0x33081e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x29c745,_0x33df87){const _0x3d793d=Array['from'](_0x29c745['getRanges']()),_0x118966=new Set();for(const _0x32ddf8 of _0x33df87)if(_0x32ddf8['isInContent']){for(const _0x229d4d of _0x3d793d)for(const _0x15940b of _0x32ddf8['getRanges']())(_0x229d4d['isIntersecting'](_0x15940b)||_0x29c745['isCollapsed']&&!_0x32ddf8['isMultiRange']&&_0x32ddf8['next']&&_0x15940b['end']['isTouching'](_0x229d4d['start']))&&_0x118966['add'](_0x32ddf8);}return _0x118966;}(_0xe75796,_0x33081e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x54ab38=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x38e20e of _0x54ab38){const _0x30655b=_0x38e20e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x30655b))return;}Yt(this['editor']['model'],this['_command'],_0x54ab38);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x1e4a9e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x42b6d6,_0x7479eb){super(),this['id']=_0x7479eb['id'],this['type']=_0x7479eb['type'],this['subType']=_0x7479eb['subType']||null,this['author']=_0x7479eb['author'],this['creator']=_0x7479eb['creator']||_0x7479eb['author'],this['isExternal']=Boolean(_0x7479eb['attributes']&&_0x7479eb['attributes']['@external']),this['data']=null,this['_model']=_0x42b6d6,this['_onAccept']=_0x7479eb['onAccept'],this['_onDiscard']=_0x7479eb['onDiscard'],this['_onAttributesChange']=_0x7479eb['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x7479eb['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 _0xace9c7=this;for(;_0xace9c7['previous'];)_0xace9c7=_0xace9c7['previous'];return _0xace9c7;}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'](_0x470893){this['_markerNames']['add'](_0x470893);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2be7cf=>this['_model']['markers']['get'](_0x2be7cf))['filter'](_0x29250b=>_0x29250b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x173dff=>{for(const _0x123e3a of this['getMarkers']())_0x173dff['removeMarker'](_0x123e3a);}),this['_markerNames']['clear']();}['removeMarker'](_0x1e066b){this['_model']['change'](_0x3bf65b=>{_0x3bf65b['removeMarker'](_0x1e066b);}),this['_markerNames']['delete'](_0x1e066b);}['addRange'](_0x24abba){const _0xf5b8e4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xf5b8e4),this['_model']['change'](_0x3635c3=>{_0x3635c3['addMarker'](_0xf5b8e4,{'range':_0x24abba,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2157e4){for(const _0x5322a8 of this['getRanges']())if(_0x5322a8['isIntersecting'](_0x2157e4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x36a8f8=>_0x36a8f8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x481a3f,_0x156711)=>[..._0x481a3f,..._0x156711['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x249c0b=this['getRanges']();if(0x1!=_0x249c0b['length'])return null;const _0x1ed128=_0x249c0b[0x0],_0x31a2db=_0x1ed128['start']['nodeAfter'],_0x59bb9d=_0x1ed128['end']['nodeBefore'];return _0x31a2db instanceof _0x2ae963?_0x31a2db!=_0x59bb9d?null:_0x31a2db: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 _0x64bfe7=[];let _0x47d11c=this['head'];for(;_0x47d11c;)_0x64bfe7['push'](_0x47d11c),_0x47d11c=_0x47d11c['next'];return _0x64bfe7;}['setAttribute'](_0x488f97,_0x165c3f){const _0x240045=_0x12f90d(this['attributes']);_0x27cd11(_0x240045,_0x488f97,_0x165c3f),_0x3a2d98(_0x240045,this['attributes'])||(this['attributes']=_0x240045,this['_onAttributesChange'](_0x240045));}['removeAttribute'](_0x240683){const _0x59e1e7=_0x12f90d(this['attributes']);_0x5eaa15(_0x59e1e7,_0x240683),_0x3a2d98(_0x59e1e7,this['attributes'])||(this['attributes']=_0x59e1e7,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 _0x3e98cb()['substr'](0x1,0x5);}}function o(_0x92193d,_0x46b696,_0x1c386a){const _0x2d60b4=_0x92193d['t'],t=_0x92193d['t'];switch(_0x46b696){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',_0x1c386a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1c386a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1c386a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1c386a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1c386a);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',_0x1c386a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1c386a);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',_0x1c386a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1c386a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1c386a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1c386a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1c386a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1c386a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1c386a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1c386a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1c386a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1c386a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1c386a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1c386a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1c386a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1c386a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1c386a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1c386a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1c386a);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'},_0x1c386a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1c386a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1c386a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1c386a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1c386a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1c386a);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'},_0x1c386a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1c386a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1c386a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1c386a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1c386a);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'},_0x1c386a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1c386a);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'},_0x1c386a);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'},_0x1c386a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1c386a);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'},_0x1c386a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1c386a);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'},_0x1c386a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1c386a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1c386a);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'},_0x1c386a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1c386a);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 _0x2d60b4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1c386a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2d60b4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1c386a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1c386a);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'},_0x1c386a);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'},_0x1c386a);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'},_0x1c386a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x46b696;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1b4aa7,_0x246150){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1b4aa7,this['_locale']=_0x246150;}['getDescriptions'](_0x3cd18a){const _0x46409f=[],_0x4f2b26=new Set(),_0xdd0167=new Set();for(let _0x58e67b=0x0;_0x58e67b<_0x3cd18a['length'];_0x58e67b++){const _0x13e387=_0x3cd18a[_0x58e67b];if(!_0x13e387['isInContent'])continue;const _0x2fe1fd=this['_handleCustomCallbackDescription'](_0x13e387);if(_0x2fe1fd){if(null!=_0x13e387['subType']){if(_0x4f2b26['has'](_0x13e387['subType']))continue;_0x4f2b26['add'](_0x13e387['subType']);}_0x46409f['push'](_0x2fe1fd);}else{if('attribute'!=_0x13e387['type'])'insertion'!=_0x13e387['type']&&'deletion'!=_0x13e387['type']||this['_handleInsertRemoveSuggestionDescription'](_0x46409f,_0x13e387,_0x3cd18a[_0x58e67b+0x1]);else{const _0x2b41c3=_0x13e387['data']['key'];if(_0xdd0167['has'](_0x2b41c3))continue;_0xdd0167['add'](_0x13e387['data']['key']),_0x2b41c3==m?this['_handleRenameSuggestionDescription'](_0x46409f,_0x13e387):this['_handleAttributeSuggestionDescription'](_0x46409f,_0x13e387);}}}return this['_resolveDescriptionItems'](_0x46409f);}['registerDescriptionCallback'](_0x2a9117){this['_customCallbacks']['push'](_0x2a9117);}['registerElementLabel'](_0x26bbb8,_0x15ebb3,_0x58eff0=_0xa7b267['normal']){'function'==typeof _0x26bbb8?_0x4c87f7(this['_itemLabelsCallbacks'],{'matchingCallback':_0x26bbb8,'label':_0x15ebb3,'priority':_0x58eff0}):this['_itemLabels']['set'](_0x26bbb8,_0x15ebb3);}['registerAttributeLabel'](_0x58fb53,_0x17cb70){this['_attributeLabels']['set'](_0x58fb53,_0x17cb70);}['getItemLabel'](_0xebf5d5,_0x780c7f=0x1){let _0x3e3d9d;for(const _0x396c77 of this['_itemLabelsCallbacks'])if(_0x396c77['matchingCallback'](_0xebf5d5)){_0x3e3d9d=_0x396c77['label'];break;}return _0x3e3d9d||(_0x3e3d9d=this['_itemLabels']['get'](_0xebf5d5['name'])),_0x3e3d9d?_0x3e3d9d(_0x780c7f):0x1!==_0x780c7f?_0x780c7f+'\x20'+_0xebf5d5['name']+'s':''+_0xebf5d5['name'];}['_addDescriptionItems'](_0x392e11,_0x4e9173){const _0x5f2f33=_0x4e9173['getFirstRange']()['getWalker'](),_0x4d22bd='insertion'==_0x4e9173['type']?'add':'remove';for(const _0x573f4a of _0x5f2f33){const _0x429377=_0x573f4a['item'],_0x369de4=_0x392e11[_0x392e11['length']-0x1];if(_0x429377['is']('$textProxy'))_0x369de4&&_0x369de4['type']['indexOf']('Container')>-0x1&&_0x392e11['pop'](),_0x369de4&&'text'==_0x369de4['type']?_0x369de4[_0x4d22bd]+=_0x429377['data']:_0x392e11['push']({'type':'text','add':'add'==_0x4d22bd?_0x429377['data']:'','remove':'remove'==_0x4d22bd?_0x429377['data']:''});else{if(this['_schema']['isObject'](_0x429377)){const _0x4e05a8=_0x429377;if(_0x369de4&&_0x369de4['type']['indexOf']('Container')>-0x1&&_0x392e11['pop'](),'elementEnd'==_0x573f4a['type'])continue;_0x369de4&&_0x369de4['type']==_0x4d22bd+'Object'&&_0x369de4['element']['name']==_0x4e05a8['name']?_0x369de4['quantity']++:_0x392e11['push']({'type':_0x4d22bd+'Object','element':_0x4e05a8,'quantity':0x1}),_0x5f2f33['skip'](_0x5ce404=>!('elementEnd'==_0x5ce404['type']&&_0x5ce404['item']==_0x429377));}else{if(this['_schema']['checkChild'](_0x429377,'$text')||_0x429377['is']('element','softBreak')){const _0x1cc187=_0x429377;if('add'==_0x4d22bd&&'elementStart'==_0x573f4a['type']||'remove'==_0x4d22bd&&'elementEnd'==_0x573f4a['type'])continue;if(_0x369de4&&-0x1==_0x369de4['type']['indexOf']('Container')){'text'==_0x369de4['type']&&(_0x369de4[_0x4d22bd]+='\x0a');continue;}let _0x1735ee;if(_0x1735ee='add'==_0x4d22bd?_0x1cc187['nextSibling']&&!this['_schema']['isObject'](_0x1cc187['nextSibling'])?_0x1cc187['nextSibling']:null:_0x1cc187['previousSibling']&&!this['_schema']['isObject'](_0x1cc187['previousSibling'])?_0x1cc187['previousSibling']:null,_0x1cc187['isEmpty']||_0x1735ee&&_0x1735ee['isEmpty']){const _0x4d0284=_0x1735ee&&_0x1735ee['isEmpty']?_0x1735ee:_0x1cc187;_0x369de4&&_0x369de4['type']==_0x4d22bd+'EmptyContainer'&&_0x369de4['element']['name']==_0x4d0284['name']?_0x369de4['quantity']++:_0x392e11['push']({'type':_0x4d22bd+'EmptyContainer','element':_0x4d0284,'quantity':0x1});}else _0x392e11['push']({'type':_0x4d22bd+'Container','element':_0x1cc187});}}}}}['_resolveDescriptionItems'](_0x2fe1cb){const _0x319c9f=this['_locale'],_0x2bb7a2=[],_0x4bb12f=[],_0x5e9c30=[];for(const _0x2eff38 of _0x2fe1cb)switch(_0x2eff38['type']){case'text':if(_0x2eff38['add']=_0x2eff38['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2eff38['remove']=_0x2eff38['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2eff38['add']&&''!=_0x2eff38['remove']){_0x2bb7a2['push']({'type':'replace','content':o(_0x319c9f,'REPLACE_TEXT',['\x22'+_0x2eff38['remove']+'\x22','\x22'+_0x2eff38['add']+'\x22'])});continue;}if(null!=_0x2eff38['add']['match'](/^ +$/)){_0x2bb7a2['push']({'type':'insertion','content':o(_0x319c9f,'*Insert:*\x20%0',o(_0x319c9f,'ELEMENT_SPACE',_0x2eff38['add']['length']))});continue;}if(null!=_0x2eff38['remove']['match'](/^ +$/)){_0x2bb7a2['push']({'type':'deletion','content':o(_0x319c9f,'*Remove:*\x20%0',o(_0x319c9f,'ELEMENT_SPACE',_0x2eff38['remove']['length']))});continue;}if(''!=_0x2eff38['add']){_0x2bb7a2['push']({'type':'insertion','content':o(_0x319c9f,'*Insert:*\x20%0','\x22'+_0x2eff38['add']+'\x22')});continue;}_0x2bb7a2['push']({'type':'deletion','content':o(_0x319c9f,'*Remove:*\x20%0','\x22'+_0x2eff38['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2bb7a2['push']({'type':'insertion','content':o(_0x319c9f,'*Insert:*\x20%0',this['getItemLabel'](_0x2eff38['element'],_0x2eff38['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2bb7a2['push']({'type':'deletion','content':o(_0x319c9f,'*Remove:*\x20%0',this['getItemLabel'](_0x2eff38['element'],_0x2eff38['quantity']))});continue;case'addContainer':_0x2bb7a2['push']({'type':'insertion','content':o(_0x319c9f,'*Split:*\x20%0',this['getItemLabel'](_0x2eff38['element'],_0x2eff38['quantity']))});continue;case'removeContainer':_0x2bb7a2['push']({'type':'deletion','content':o(_0x319c9f,'*Merge:*\x20%0',this['getItemLabel'](_0x2eff38['element'],_0x2eff38['quantity']))});continue;case'addFormat':_0x4bb12f['push'](_0x2eff38['key']);continue;case'removeFormat':_0x5e9c30['push'](_0x2eff38['key']);continue;default:_0x2bb7a2['push'](_0x2eff38);}if(_0x4bb12f['length']){const _0x4d5d2e=_0x4bb12f['map'](_0x11f662=>this['_attributeLabels']['has'](_0x11f662)?this['_attributeLabels']['get'](_0x11f662):_0x11f662)['join'](',\x20');_0x2bb7a2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4d5d2e)});}if(_0x5e9c30['length']){const _0x1edbd8=_0x5e9c30['map'](_0x275bf3=>this['_attributeLabels']['has'](_0x275bf3)?this['_attributeLabels']['get'](_0x275bf3):_0x275bf3)['join'](',\x20');_0x2bb7a2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1edbd8)});}return _0x2bb7a2;}['_handleCustomCallbackDescription'](_0x30712d){for(const _0x31e756 of this['_customCallbacks']){const _0x9aeac3=_0x31e756(_0x30712d);if(_0x9aeac3&&'type'in _0x9aeac3)return _0x9aeac3;}}['_handleAttributeSuggestionDescription'](_0x3f32be,_0x4cabdc){const _0x3161c2=_0x4cabdc['data'],_0x583303=void 0x0===_0x3161c2['newValue']?'removeFormat':'addFormat';_0x3f32be['push']({'type':_0x583303,'key':_0x3161c2['key']});}['_handleRenameSuggestionDescription'](_0x2bfa8b,_0x13f574){_0x2bfa8b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x13f574['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2bcaae,_0x58bd0e,_0xaf0ee5){if(this['_addDescriptionItems'](_0x2bcaae,_0x58bd0e),_0xaf0ee5&&_0xaf0ee5['getFirstRange']()&&!_0x58bd0e['getFirstRange']()['end']['isEqual'](_0xaf0ee5['getFirstRange']()['start'])){const _0xffee5=_0x2bcaae[_0x2bcaae['length']-0x1],_0x29431a='insertion'==_0x58bd0e['type']?'add':'remove';_0xffee5&&'text'==_0xffee5['type']&&(_0xffee5[_0x29431a]+='\x0a');}}}class U extends _0x5d6089{['afterInit'](){const _0x52caef=this['editor'],_0x53c542=_0x52caef['plugins']['get']('TrackChangesEditing');_0x52caef['commands']['get']('showAIAssistant')&&_0x53c542['enableCommand']('showAIAssistant');}}class V extends _0x5d6089{['afterInit'](){const _0x15d4b3=this['editor'],_0x3b4561=_0x15d4b3['locale'];if(!_0x15d4b3['plugins']['has']('AlignmentEditing'))return;const _0x581e61=_0x15d4b3['plugins']['get']('TrackChangesEditing');_0x581e61['enableDefaultAttributesIntegration']('alignment'),_0x581e61['registerBlockAttribute']('alignment'),_0x581e61['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3b4561,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30e694=this['editor'],_0x2a9d22=_0x30e694['locale'];_0x30e694['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe82e0e=>{if('formatBlock'!=_0xe82e0e['type'])return;const {data:_0x25b680}=_0xe82e0e;if(_0x25b680&&'alignment'==_0x25b680['commandName']){const _0x6505a2=_0x25b680['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2a9d22,'*Format:*\x20%0',function(_0x100c63){switch(_0x100c63){case'left':return o(_0x2a9d22,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2a9d22,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2a9d22,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2a9d22,'FORMAT_JUSTIFY_TEXT');}}(_0x6505a2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x5d6089{['afterInit'](){const _0xa7c9fb=this['editor'],_0x52b519=_0xa7c9fb['plugins']['get']('TrackChangesEditing'),_0xa452db=_0xa7c9fb['locale'];for(const _0x5dfbd3 of ti){if(!_0xa7c9fb['plugins']['has'](_0x5dfbd3))continue;const _0x1d2f16=_0x5dfbd3['slice'](0x0,-0x7)['toLowerCase'](),_0x395054='FORMAT_'+_0x1d2f16['toUpperCase']();_0x52b519['enableDefaultAttributesIntegration'](_0x1d2f16),_0x52b519['registerInlineAttribute'](_0x1d2f16),_0x52b519['descriptionFactory']['registerAttributeLabel'](_0x1d2f16,o(_0xa452db,_0x395054));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x140575=this['editor'],_0x7474e4=_0x140575['locale'],_0x43fd12=_0x140575['plugins']['get']('TrackChangesEditing');function _0x5e4bef(_0x4716c9,_0x1bf385){_0x43fd12['descriptionFactory']['registerDescriptionCallback'](_0x58e5f5=>{if('formatInline'!=_0x58e5f5['type'])return;const {data:_0x1a1588}=_0x58e5f5;return _0x1a1588&&_0x1a1588['commandName']===_0x4716c9?_0x1a1588['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x7474e4,'*Format:*\x20%0',_0x1bf385)}:{'type':'format','content':o(_0x7474e4,'*Remove\x20format:*\x20%0',_0x1bf385)}:void 0x0;});}_0x5e4bef('bold',o(_0x7474e4,'FORMAT_BOLD')),_0x5e4bef('italic',o(_0x7474e4,'FORMAT_ITALIC')),_0x5e4bef('underline',o(_0x7474e4,'FORMAT_UNDERLINE')),_0x5e4bef('code',o(_0x7474e4,'FORMAT_CODE')),_0x5e4bef('strikethrough',o(_0x7474e4,'FORMAT_STRIKETHROUGH')),_0x5e4bef('subscript',o(_0x7474e4,'FORMAT_SUBSCRIPT')),_0x5e4bef('superscript',o(_0x7474e4,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5d6089{['afterInit'](){const _0x4527e1=this['editor'],_0x4038f8=_0x4527e1['locale'];if(!_0x4527e1['plugins']['has']('BlockQuoteEditing'))return;const _0x2fc4c4=_0x4527e1['plugins']['get']('TrackChangesEditing'),_0x58d0eb=this['editor']['commands']['get']('blockQuote');_0x2fc4c4['enableCommand']('blockQuote',(_0x39b59b,_0x555236={})=>{const _0x28b3c1=this['editor']['model']['document']['selection'],_0x47dff9=_0x555236&&void 0x0!==_0x555236['forceValue']?_0x555236['forceValue']:!_0x58d0eb['value'];let _0x92928b=[];if(_0x47dff9){const _0x4108ef=Array['from'](_0x28b3c1['getSelectedBlocks']())['filter'](_0x5e652e=>oo(_0x5e652e)||function(_0xc36a58,_0x18d9c8){const _0x371e2b=_0x18d9c8['checkChild'](_0xc36a58['parent'],'blockQuote'),_0xbc0e60=_0x18d9c8['checkChild'](['$root','blockQuote'],_0xc36a58);return _0x371e2b&&_0xbc0e60;}(_0x5e652e,this['editor']['model']['schema']));_0x92928b=to(_0x4108ef,_0x4527e1['model']);}else{const _0x3e6ca2=Array['from'](_0x28b3c1['getSelectedBlocks']())['filter'](_0x42d52d=>oo(_0x42d52d));_0x92928b=to(_0x3e6ca2,_0x4527e1['model']);}_0x4527e1['model']['change'](()=>{for(const _0x1b023c of _0x92928b)_0x2fc4c4['markBlockFormat'](_0x1b023c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x47dff9}]});});}),_0x2fc4c4['descriptionFactory']['registerDescriptionCallback'](_0x5841fe=>{const {data:_0x45b451}=_0x5841fe;if(_0x45b451&&'blockQuote'==_0x45b451['commandName']){const _0x2bfc5f=o(_0x4038f8,'ELEMENT_BLOCK_QUOTE');return _0x45b451['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4038f8,'*Set\x20format:*\x20%0',_0x2bfc5f)}:{'type':'format','content':o(_0x4038f8,'*Remove\x20format:*\x20%0',_0x2bfc5f)};}});}}function oo(_0x7f0c33){return'blockQuote'==_0x7f0c33['parent']['name'];}class L extends _0x5d6089{['afterInit'](){const _0x1db357=this['editor'],_0xc3cedb=_0x1db357['locale'],_0x3e69bc=_0x1db357['plugins']['get']('TrackChangesEditing');_0x1db357['plugins']['has']('BookmarkEditing')&&(_0x3e69bc['enableCommand']('insertBookmark'),_0x3e69bc['enableDefaultAttributesIntegration']('updateBookmark'),_0x3e69bc['registerBlockAttribute']('bookmarkId'),_0x3e69bc['descriptionFactory']['registerDescriptionCallback'](_0x2a836d=>{if('insertion'!=_0x2a836d['type']&&'deletion'!=_0x2a836d['type']&&'attribute'!=_0x2a836d['type'])return;const _0x4d697d=_0x2a836d['getContainedElement']();if(null==_0x4d697d)return;if(!_0x4d697d['is']('element','bookmark'))return;const _0x8c34c2=_0x4d697d['getAttribute']('bookmarkId');if('insertion'==_0x2a836d['type'])return{'type':'insertion','content':o(_0xc3cedb,'*Insert:*\x20%0','\x22'+_0x8c34c2+'\x22\x20'+o(_0xc3cedb,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2a836d['type'])return{'type':'deletion','content':o(_0xc3cedb,'*Remove:*\x20%0','\x22'+_0x8c34c2+'\x22\x20'+o(_0xc3cedb,'ELEMENT_BOOKMARK'))};const {data:_0x30991f}=_0x2a836d;if(!_0x30991f||'bookmarkId'!=_0x30991f['key'])return;return{'type':'format','content':o(_0xc3cedb,'*Set\x20bookmark:*\x20%0','\x22'+_0x30991f['newValue']+'\x22')};}));}}class J extends _0x5d6089{['afterInit'](){const _0x2bcc1e=this['editor'];_0x2bcc1e['plugins']['has']('CaseChange')&&(_0x2bcc1e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2bcc1e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2bcc1e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x5d6089{['afterInit'](){const _0x5b2711=this['editor'];_0x5b2711['commands']['get']('ckbox')&&_0x5b2711['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x5d6089{['afterInit'](){const _0x1e102e=this['editor'];if(!_0x1e102e['plugins']['has']('CodeBlock'))return;const _0x35a41f=_0x1e102e['plugins']['get']('TrackChangesEditing'),_0x3ea388=_0x1e102e['locale'],_0x3c235c=_0x1e102e['config']['get']('codeBlock')['languages'],_0x40862f=_0x1e102e['commands']['get']('codeBlock');_0x35a41f['enableCommand']('indentCodeBlock'),_0x35a41f['enableCommand']('outdentCodeBlock'),_0x35a41f['enableCommand']('codeBlock',(_0x413be4,_0x2ea078={})=>{const _0x38c4ec=_0x1e102e['model'],_0x45a7a1=_0x1e102e['model']['document']['selection'],_0x1a6737=_0x2ea078&&void 0x0!==_0x2ea078['forceValue']?_0x2ea078['forceValue']:!_0x40862f['value'];let _0x33d458;_0x2ea078['language']||(_0x2ea078['language']=_0x3c235c[0x0]['language']),_0x33d458=_0x1a6737?Array['from'](_0x45a7a1['getSelectedBlocks']())['filter'](_0x36f899=>eo(_0x36f899)||function(_0x415ed4,_0x5a22a9){if(_0x415ed4['is']('rootElement')||_0x5a22a9['isLimit'](_0x415ed4))return!0x1;return _0x5a22a9['checkChild'](_0x415ed4['parent'],'codeBlock');}(_0x36f899,_0x38c4ec['schema'])):Array['from'](_0x45a7a1['getSelectedBlocks']())['filter'](_0x5bead8=>eo(_0x5bead8));const _0x1e909b=to(_0x33d458,_0x38c4ec);_0x38c4ec['change'](()=>{for(const _0x2aa387 of _0x1e909b)_0x35a41f['markBlockFormat'](_0x2aa387,{'commandName':'codeBlock','commandParams':[{..._0x2ea078,'forceValue':_0x1a6737}],'formatGroupId':'blockName'});});}),(_0x35a41f['descriptionFactory']['registerElementLabel']('codeBlock',_0x47401c=>o(_0x3ea388,'ELEMENT_CODE_BLOCK',_0x47401c)),_0x35a41f['descriptionFactory']['registerDescriptionCallback'](_0x57233d=>{if('formatBlock'!=_0x57233d['type'])return;const _0x5a28b7=_0x3ea388['t'],{data:_0xb99cfa}=_0x57233d;if(!_0xb99cfa||'codeBlock'!=_0xb99cfa['commandName'])return;const _0xb264fa=_0xb99cfa['commandParams'][0x0]['language'],_0xe2be22=_0x5a28b7(_0x3c235c['find'](_0x94b10c=>_0x94b10c['language']===_0xb264fa)['label'])['toLowerCase']();return _0xb99cfa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ea388,'*Set\x20format:*\x20%0',o(_0x3ea388,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xe2be22+')')}:{'type':'format','content':o(_0x3ea388,'*Remove\x20format:*\x20%0',o(_0x3ea388,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x40b3a6){return'codeBlock'==_0x40b3a6['name'];}class z extends _0x5d6089{['afterInit'](){const _0x324b8a=this['editor'];if(!_0x324b8a['plugins']['has']('CommentsEditing'))return;_0x324b8a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xe208e4,_0x5c2d23,_0x354a48){const _0x128d56=[];for(const _0x1750c2 of _0x5c2d23['getItems']())_0x1750c2['hasAttribute'](_0xe208e4)&&_0x128d56['push'](_0x354a48['createRangeOn'](_0x1750c2));return _0x128d56;}function De(_0x3907c9,_0x491a57,{showActiveMarker:_0x13bb78=!0x0}={}){const _0x567bf9=_0x3907c9['plugins']['get']('TrackChangesEditing');return(_0x41d266,_0x3a04af,_0x5c95fb)=>{if(!_0x5c95fb['consumable']['test'](_0x3a04af['markerRange'],_0x41d266['name']))return;const _0x17911b=_0x3a04af['markerRange']['getWalker'](),_0x4e7994=_0x3a04af['markerRange']['start'],_0x30e72f=_0x3907c9['model']['schema'];let _0x23b235=null,_0x50813c=null,_0x1ee558=!0x1,_0x1ffbdd=!0x1;for(const _0x5b767c of _0x17911b){const _0x205851=_0x5b767c['item'];_0x1ee558=_0x1ee558||_0x30e72f['isContent'](_0x205851);const _0xcf300d=_0x5c95fb['mapper']['toViewElement'](_0x205851);if(_0xcf300d&&_0xcf300d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b767c['type']&&(_0x30e72f['isBlock'](_0x205851)&&!_0x30e72f['isLimit'](_0x205851)&&(_0x205851['nextSibling']||_0x4e7994['isAtEnd']?_0x23b235&&_0x23b235['parent']==_0x205851||(_0x23b235=_0x205851,_0x11c556(_0x5b767c['previousPosition']),_0x1ffbdd=!0x0):_0x50813c=_0x50813c||_0x5b767c['previousPosition']));}function _0x11c556(_0x33893e){const {authorId:_0x214a80}=_0x567bf9['_splitMarkerName'](_0x3a04af['markerName']),_0x5de874=_0x5c95fb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x491a57,'data-author-id':_0x214a80}),_0x5d7518=_0x5c95fb['mapper']['toViewPosition'](_0x33893e);_0x13bb78&&_0x567bf9['activeMarkers']['includes'](_0x3a04af['markerName'])&&_0x5c95fb['writer']['addClass']('ck-suggestion-marker--active',_0x5de874),_0x5c95fb['writer']['insert'](_0x5d7518,_0x5de874),_0x5c95fb['mapper']['bindElementToMarker'](_0x5de874,_0x3a04af['markerName']);}_0x1ee558||_0x1ffbdd||!_0x50813c||_0x11c556(_0x50813c);};}class K extends _0x5d6089{static get['requires'](){return[_0x460f75];}['init'](){const _0x58c93b=this['editor'],_0x58565b=_0x58c93b['plugins']['get']('TrackChangesEditing');_0x58565b['enableCommand']('delete');const _0x36189e=_0x58c93b['commands']['get']('deleteForward');_0x58565b['enableCommand']('deleteForward',(_0x26576f,_0x22abfe={})=>{const _0x24c0a3=_0x58c93b['model']['createSelection'](_0x58c93b['model']['document']['selection']);_0x24c0a3['isCollapsed']&&_0x58c93b['model']['modifySelection'](_0x24c0a3,{'direction':'forward','unit':_0x22abfe['unit']});const _0x16e2c6=_0x24c0a3['getFirstRange'](),_0x43da7d=_0x190639['fromRange'](_0x16e2c6);let _0x42b2fa;_0x26576f(_0x22abfe),_0x42b2fa='$graveyard'==_0x43da7d['root']['rootName']?_0x58c93b['model']['createRange'](_0x16e2c6['start']):_0x58c93b['model']['createRange'](_0x43da7d['start'],_0x43da7d['end']),_0x43da7d['detach'](),_0x58c93b['model']['enqueueChange'](_0x36189e['buffer']['batch'],_0x3c71ad=>{_0x36189e['buffer']['lock'](),_0x3c71ad['setSelection'](_0x3c71ad['createRange'](_0x42b2fa['end'])),_0x36189e['buffer']['unlock']();});}),_0x58c93b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x58c93b,'merge'),{'priority':'high'}),_0x58c93b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4a4480,_0x5f2fd1,_0x26d5fa)=>{_0x26d5fa['options']['showSuggestionHighlights']&&De(_0x58c93b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4a4480,_0x5f2fd1,_0x26d5fa);},{'priority':'high'}),_0x58c93b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5d0252,_0x338b09,_0x2df0f1)=>{const _0x59270c=_0x2df0f1['mapper']['markerNameToElements'](_0x338b09['markerName']);if(_0x59270c){for(const _0x45b4b7 of _0x59270c)_0x45b4b7['is']('uiElement')&&(_0x2df0f1['mapper']['unbindElementFromMarkerName'](_0x45b4b7,_0x338b09['markerName']),_0x2df0f1['writer']['remove'](_0x45b4b7));}},{'priority':'high'});}}class W extends _0x5d6089{['afterInit'](){const _0x3ef549=this['editor'];if(!_0x3ef549['plugins']['has']('ListEditing'))return;const _0x77b8c2=_0x3ef549['locale'],_0x2847ff=_0x3ef549['plugins']['get']('TrackChangesEditing'),_0x1eacf9=_0x3ef549['plugins']['has']('TodoListEditing'),_0x534aa6=!!_0x3ef549['config']['get']('list.multiBlock');function _0x412bbb(_0x25f471){return{'type':'format','content':''+o(_0x77b8c2,'*Set\x20format:*\x20%0',_0x25f471)};}function _0x1f65df(_0x322e62){return{'type':'format','content':''+o(_0x77b8c2,'*Remove\x20format:*\x20%0',_0x322e62)};}_0x2847ff['enableDefaultAttributesIntegration']('numberedList'),_0x2847ff['enableDefaultAttributesIntegration']('bulletedList'),_0x2847ff['enableDefaultAttributesIntegration']('customNumberedList'),_0x2847ff['enableDefaultAttributesIntegration']('customBulletedList'),_0x2847ff['enableDefaultAttributesIntegration']('indentList'),_0x2847ff['enableDefaultAttributesIntegration']('outdentList'),_0x2847ff['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2847ff['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2847ff['registerBlockAttribute']('listItemId'),_0x2847ff['registerBlockAttribute']('listType'),_0x2847ff['registerBlockAttribute']('listIndent'),_0x534aa6&&(_0x2847ff['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2847ff['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1eacf9&&(_0x2847ff['enableDefaultAttributesIntegration']('todoList'),_0x2847ff['enableDefaultAttributesIntegration']('checkTodoList'),_0x2847ff['registerBlockAttribute']('todoListChecked'),_0x2847ff['descriptionFactory']['registerDescriptionCallback'](_0x12ab80=>{const {data:_0x185c5b}=_0x12ab80;if(_0x185c5b&&'todoListChecked'==_0x185c5b['key'])return{'type':'format','content':_0x185c5b['newValue']?o(_0x77b8c2,'*Check\x20item*'):o(_0x77b8c2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3e5c01=>{if(_0x3e5c01['batch']['isUndo'])return!0x1;let _0x3505b7=!0x1;const _0x436152=_0x2847ff['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5bd4ec=>'todoListChecked'===_0x2847ff['_getAttributeKey'](_0x5bd4ec));for(const _0x3ae48d of _0x436152){'todo'!=_0x3ae48d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2847ff['_findSuggestions'](_0x3ae48d['getFirstRange'](),'attribute')['find'](_0x4b4b8b=>'listType'===_0x2847ff['_getAttributeKey'](_0x4b4b8b['suggestion']))||(_0x3e5c01['removeMarker'](_0x3ae48d['getFirstMarker']()),_0x3505b7=!0x0));}return _0x3505b7;})),_0x2847ff['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x77b8c2,'FORMAT_INDENT'));const _0x2cbda9={'type':'format','content':''};_0x2847ff['descriptionFactory']['registerDescriptionCallback'](_0x4437b2=>{const {data:_0x5ca47e}=_0x4437b2;if(!_0x5ca47e||'listType'!=_0x5ca47e['key'])return;let _0x14ee2e=_0x4437b2['head'];for(;_0x14ee2e;){if(_0x14ee2e['data']&&(('listStyle'==_0x14ee2e['data']['key']||'listMarkerStyle'==_0x14ee2e['data']['key'])&&(_0x14ee2e['data']['newValue']&&'default'!=_0x14ee2e['data']['newValue']||'default'!=_0x14ee2e['data']['oldValue']&&!_0x5ca47e['newValue'])||!_0x534aa6&&_0x14ee2e['data']['key']==m))return _0x2cbda9;_0x14ee2e=_0x14ee2e['next'];}if(null==_0x5ca47e['newValue'])switch(_0x5ca47e['oldValue']){case'bulleted':return _0x1f65df(o(_0x77b8c2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f65df(o(_0x77b8c2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f65df(o(_0x77b8c2,'ELEMENT_TODO_LIST'));}switch(_0x5ca47e['newValue']){case'bulleted':return _0x412bbb(o(_0x77b8c2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x412bbb(o(_0x77b8c2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x412bbb(o(_0x77b8c2,'ELEMENT_TODO_LIST'));}}),_0x2847ff['descriptionFactory']['registerDescriptionCallback'](_0x260085=>{const {data:_0xf965b4}=_0x260085;if(_0xf965b4&&'listIndent'==_0xf965b4['key'])return null==_0xf965b4['newValue']||null==_0xf965b4['oldValue']&&0x0==_0xf965b4['newValue']?_0x2cbda9:void 0x0;}),_0x2847ff['descriptionFactory']['registerDescriptionCallback'](_0x3f769a=>{if('attribute'!=_0x3f769a['type'])return;const {data:_0x497a95}=_0x3f769a;if(!_0x497a95||'listItemId'!=_0x497a95['key'])return;const _0xd67baf=Te(_0x3f769a);return'newValue'==_0xd67baf?{'type':'format','content':o(_0x77b8c2,'*Merge:*\x20list\x20item')}:'oldValue'==_0xd67baf?{'type':'format','content':o(_0x77b8c2,'*Split:*\x20list\x20item')}:_0x2cbda9;}),_0x3ef549['model']['document']['registerPostFixer'](_0x15539d=>this['listItemIdFixer'](_0x15539d)),_0x3ef549['model']['document']['registerPostFixer'](_0x1c500d=>this['noTrackChangesFixer'](_0x1c500d)),_0x3ef549['model']['document']['on']('change:data',(_0xd86400,_0x3e48f5)=>{if(_0x3e48f5['isUndo']||!_0x3e48f5['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1099f8){if(_0x1099f8['batch']['isUndo']||!_0x1099f8['batch']['isLocal'])return!0x1;let _0x400011=!0x1;const _0x4f7f96=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x242522=>_0x242522['data']&&'listItemId'==_0x242522['data']['key'])['filter'](_0x25c06e=>_0x25c06e['data']['newValue']&&_0x25c06e['data']['oldValue']);for(const _0x30ef43 of _0x4f7f96)Te(_0x30ef43)||(_0x1099f8['removeMarker'](_0x30ef43['getFirstMarker']()),_0x400011=!0x0);return _0x400011;}['noTrackChangesFixer'](_0xaccbad){if(_0xaccbad['batch']['isUndo']||!_0xaccbad['batch']['isLocal'])return!0x1;const _0x488660=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x488660['trackChangesCommand']['value'])return!0x1;let _0x44d615=!0x1;const _0x4f4d09=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x13a557=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x17dd88=>'attribute'==_0x17dd88['type'])['filter'](_0x3e1a10=>_0x4f4d09['includes'](_0x3e1a10['attributeKey']));if(0x0==_0x13a557['length'])return _0x44d615;for(const _0x47ecda of _0x13a557){const _0x40af67=_0x488660['_findSuggestions'](_0x47ecda['range'],'attribute')['filter'](_0x749cb=>!_0x749cb['meta']['isNextTo'])['map'](_0x8c3092=>_0x8c3092['suggestion'])['filter'](_0xdbbc16=>{const _0x3a2564=_0x488660['_getAttributeKey'](_0xdbbc16);return _0x4f4d09['includes'](_0x3a2564);});if(_0x40af67['length']){for(const _0x570e16 of _0x40af67)_0xaccbad['removeMarker'](_0x570e16['getFirstMarker']());_0x44d615=!0x0;}}return _0x44d615;}['assureChains'](){const _0x3280fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d0a49=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1599d6;const _0x3a7747=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2cf7b1=>{if(_0x2cf7b1['data']['oldRange']||!_0x2cf7b1['data']['newRange'])return null;if(!_0x2cf7b1['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2712d9}=_0x3280fd['_splitMarkerName'](_0x2cf7b1['name']);if(!_0x3280fd['hasSuggestion'](_0x2712d9))return null;const _0x5d2cc6=_0x3280fd['getSuggestion'](_0x2712d9);return _0x5d0a49['includes'](_0x5d2cc6['data']['key']);})['map'](_0xfdf8f7=>{const {id:_0x1b3ceb}=_0x3280fd['_splitMarkerName'](_0xfdf8f7['name']),_0x6c6ef7=_0x3280fd['getSuggestion'](_0x1b3ceb);return _0x1599d6=_0x6c6ef7['attributes']['groupId'],_0x6c6ef7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3a7747['size'])return;const _0x8f8600=_0x3280fd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48843d=>'attribute'==_0x48843d['type']&&_0x48843d['data']&&_0x5d0a49['includes'](_0x48843d['data']['key'])&&_0x48843d['attributes']['groupId']!=_0x1599d6)['map'](_0x4691c4=>({'listItem':_0x4691c4['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4691c4['attributes']['groupId']})),_0x4185a1=new Set();for(const {groupId:_0x3d7a37,listItem:_0x5e0ae8}of _0x8f8600)_0x3a7747['has'](_0x5e0ae8)&&_0x4185a1['add'](_0x3d7a37);for(const _0xebc304 of _0x3280fd['getSuggestions']())_0x4185a1['has'](_0xebc304['attributes']['groupId'])&&_0xebc304['setAttribute']('groupId',_0x1599d6);}['_supportLegacySuggestions'](){const _0x35ee8f=this['editor'],_0x2cdb85=_0x35ee8f['locale'],_0x333ae4=_0x35ee8f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x333ae4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x7ec967,_0x8e4826){const _0xe4ee9b=[];for(let _0x2e19d9 of _0x7ec967)_0x2e19d9['start']['nodeAfter']===_0x2e19d9['end']['parent']&&(_0x2e19d9=_0x35ee8f['model']['createRange'](_0x35ee8f['model']['createPositionAt'](_0x2e19d9['start']['nodeAfter'],0x0))),_0xe4ee9b['push'](_0x2e19d9);_0x35ee8f['model']['change'](_0x387346=>{const _0x52f946=_0x35ee8f['model']['document']['selection'],_0x33ed07=Array['from'](_0x52f946['getRanges']())['map'](_0x9844db=>_0x190639['fromRange'](_0x9844db));_0x387346['setSelection'](_0xe4ee9b),_0x35ee8f['commands']['get'](_0x8e4826['commandName'])['refresh'](),_0x8e4826['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x35ee8f['execute'](_0x8e4826['commandName'],..._0x8e4826['commandParams']),_0x387346['setSelection'](_0x33ed07);for(const _0x361a39 of _0x33ed07)_0x361a39['detach']();});}),_0x333ae4['descriptionFactory']['registerElementLabel'](function(_0x28ac37){const _0x2a8315=!_0x35ee8f['model']['schema']['isObject'](_0x28ac37),_0x17879c=_0x28ac37['previousSibling'],_0x29bb37=_0x28ac37['nextSibling'],_0x107193=_0x28ac37['getAttribute']('listItemId'),_0x31ecb3=!_0x17879c||_0x17879c['getAttribute']('listItemId')!==_0x107193,_0x258115=!_0x29bb37||_0x29bb37['getAttribute']('listItemId')!==_0x107193;return _0x2a8315&&Boolean(_0x107193)&&_0x31ecb3&&_0x258115;},_0x545b89=>o(_0x2cdb85,'ELEMENT_LIST_ITEM',_0x545b89));}['_registerLegacyDescription'](){const _0x4948dc=this['editor'],_0x2c3e6a=_0x4948dc['locale'];function _0x5ae99b(_0x1bbfba){const _0x4963a4=_0x4948dc['commands']['get']('bulletedList')['value'],_0x3ff448=_0x4948dc['commands']['get']('numberedList')['value'];return'numberedList'===_0x1bbfba?_0x4963a4:_0x3ff448;}_0x4948dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5e8059){if('formatBlock'!=_0x5e8059['type'])return;const {data:_0x4a456c}=_0x5e8059;if(!_0x4a456c)return;let _0x84b301,_0x2c59d1,_0x5e5527,_0x852c85;switch(_0x4a456c['commandName']){case'bulletedList':_0x5e5527=_0x4a456c['commandParams'][0x0]['forceValue'],_0x852c85=_0x5ae99b(_0x4a456c['commandName']),_0x84b301=_0x5e5527?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x852c85&&_0x4948dc['config']['get']('list.multiBlock')||(_0x84b301='*Change\x20to:*\x20%0'),_0x2c59d1={'type':'format','content':o(_0x2c3e6a,_0x84b301,o(_0x2c3e6a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5e5527=_0x4a456c['commandParams'][0x0]['forceValue'],_0x852c85=_0x5ae99b(_0x4a456c['commandName']),_0x84b301=_0x5e5527?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x852c85&&_0x4948dc['config']['get']('list.multiBlock')||(_0x84b301='*Change\x20to:*\x20%0'),_0x2c59d1={'type':'format','content':o(_0x2c3e6a,_0x84b301,o(_0x2c3e6a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x84b301='*Indent:*\x20%0',_0x2c59d1={'type':'format','content':o(_0x2c3e6a,_0x84b301,o(_0x2c3e6a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x84b301=function(_0x42e600){const _0x321a78=_0x42e600['getFirstRange']();let _0x39e182=_0x321a78['start']['nodeAfter'];for(;_0x39e182&&_0x321a78['containsItem'](_0x39e182);){if(_0x39e182['getAttribute']('listIndent')>0x0)return!0x1;_0x39e182=_0x39e182['nextSibling'];}return!0x0;}(_0x5e8059)?o(_0x2c3e6a,'*Format:*\x20remove\x20from\x20%0',o(_0x2c3e6a,function(_0x4bffbb){return'ELEMENT_'+_0x4bffbb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5e8059))):o(_0x2c3e6a,'*Outdent:*\x20%0',o(_0x2c3e6a,'ELEMENT_LIST_ITEM')),_0x2c59d1={'type':'format','content':_0x84b301};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4a456c['multipleBlocks']&&(_0x84b301='*Merge:*\x20%0',_0x2c59d1={'type':'deletion','content':o(_0x2c3e6a,_0x84b301,o(_0x2c3e6a,'ELEMENT_LIST_ITEM'))});}return _0x2c59d1;});}}function Te(_0x38c6f1){let _0x93c886=_0x38c6f1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x93c886;){const _0x593834=_0x93c886['getAttribute']('listItemId');if(!_0x593834)return!0x1;if(_0x593834==_0x38c6f1['data']['newValue'])return'newValue';if(_0x593834==_0x38c6f1['data']['oldValue'])return'oldValue';_0x93c886=_0x93c886['previousSibling'];}return!0x1;}class Se extends _0x5d6089{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x207516=this['editor']['config']['get']('list.properties'),_0x474889=this['editor']['plugins']['get']('TrackChangesEditing');_0x207516['styles']&&(_0x474889['enableDefaultAttributesIntegration']('listStyle'),_0x474889['registerBlockAttribute']('listStyle')),_0x207516['reversed']&&(_0x474889['enableDefaultAttributesIntegration']('listReversed'),_0x474889['registerBlockAttribute']('listReversed')),_0x207516['startIndex']&&(_0x474889['enableDefaultAttributesIntegration']('listStart'),_0x474889['registerBlockAttribute']('listStart'));const _0x4cd6f8={'type':'format','content':''};_0x474889['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x35f7f8=this['editor']['locale'];_0x474889['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x35f7f8,'FORMAT_LIST_REVERSED')),_0x474889['descriptionFactory']['registerDescriptionCallback'](_0x2e4da3=>{const {data:_0xb548ed}=_0x2e4da3;if(_0xb548ed&&'listReversed'==_0xb548ed['key'])return null==_0xb548ed['newValue']||0x0==_0xb548ed['newValue']&&null==_0xb548ed['oldValue']?_0x4cd6f8:void 0x0;}),_0x474889['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x35f7f8,'FORMAT_LIST_START')),_0x474889['descriptionFactory']['registerDescriptionCallback'](_0x40a23f=>{const {data:_0x119142}=_0x40a23f;if(_0x119142&&'listStart'==_0x119142['key'])return null==_0x119142['newValue']||0x1==_0x119142['newValue']&&null==_0x119142['oldValue']?_0x4cd6f8:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x413c0e=>{if(_0x413c0e['batch']['isUndo'])return!0x1;let _0x4c2ecc=!0x1;const _0x7334d9=_0x474889['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2db5d3=>{const _0x4ba375=_0x474889['_getAttributeKey'](_0x2db5d3);return'listStart'==_0x4ba375||'listReversed'==_0x4ba375;});for(const _0x3e4a01 of _0x7334d9){const _0x386f30=_0x3e4a01['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x386f30||'customNumbered'==_0x386f30)continue;_0x474889['_findSuggestions'](_0x3e4a01['getFirstRange'](),'attribute')['find'](_0x3bf05b=>'listType'==_0x474889['_getAttributeKey'](_0x3bf05b['suggestion']))||(_0x413c0e['removeMarker'](_0x3e4a01['getFirstMarker']()),_0x4c2ecc=!0x0);}return _0x4c2ecc;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x49aaf1){const _0x176f5d=this['editor']['locale'],{data:_0x322405}=_0x49aaf1,_0x4c470a={'type':'format','content':''};if(!_0x322405||'listStyle'!=_0x322405['key'])return;if(!_0x322405['oldValue'])return'default'==_0x322405['newValue']?_0x4c470a:{'type':'format','content':''+o(_0x176f5d,'*Set\x20format:*\x20%0',o(_0x176f5d,this['_getTranslationKeyForListStyle'](_0x322405['newValue'])))};if(!_0x322405['newValue']){if('default'==_0x322405['oldValue'])return _0x4c470a;let _0x3df8cd=_0x49aaf1['head'];for(;_0x3df8cd;){if(_0x3df8cd['data']&&'listType'==_0x3df8cd['data']['key']&&_0x3df8cd['data']['newValue'])return _0x4c470a;_0x3df8cd=_0x3df8cd['next'];}return{'type':'format','content':''+o(_0x176f5d,'*Remove\x20format:*\x20%0',o(_0x176f5d,this['_getTranslationKeyForListStyle'](_0x322405['oldValue'])))};}if('default'!=_0x322405['newValue'])return{'type':'format','content':''+o(_0x176f5d,'*Set\x20format:*\x20%0',o(_0x176f5d,this['_getTranslationKeyForListStyle'](_0x322405['newValue'])))};let _0x498216=_0x49aaf1['head'];for(;_0x498216;){if(_0x498216['data']&&'listType'==_0x498216['data']['key']&&_0x498216['data']['newValue']&&_0x498216['data']['oldValue'])return _0x4c470a;_0x498216=_0x498216['next'];}return{'type':'format','content':o(_0x176f5d,'*Set\x20format:*\x20%0',o(_0x176f5d,'ELEMENT_'+_0x49aaf1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x25858d=this['editor'],_0xa55f30=_0x25858d['locale'];_0x25858d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x91e8fd=>{if('formatBlock'!=_0x91e8fd['type'])return;const {data:_0x4863ec}=_0x91e8fd;if(!_0x4863ec)return;let _0xbde7b4,_0x527fc8;switch(_0x4863ec['commandName']){case'listStyle':_0xbde7b4='*Change\x20to:*\x20%0',_0x527fc8={'type':'format','content':o(_0xa55f30,_0xbde7b4,o(_0xa55f30,this['_getTranslationKeyForListStyle'](_0x4863ec['commandParams'][0x0]['type'])))};break;case'listReversed':_0xbde7b4=_0x4863ec['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x527fc8={'type':'format','content':o(_0xa55f30,_0xbde7b4)};break;case'listStart':_0xbde7b4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x527fc8={'type':'format','content':o(_0xa55f30,_0xbde7b4,_0x4863ec['commandParams'][0x0]['startIndex'])};}return _0x527fc8;});}['_getTranslationKeyForListStyle'](_0x4007dc){return'ELEMENT_'+function(_0x1b1fb2){if(_e['includes'](_0x1b1fb2))return'bulleted';if(Re['includes'](_0x1b1fb2))return'numbered';return null;}(_0x4007dc)['toUpperCase']()+'_LIST_'+_0x4007dc['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5d6089{static get['requires'](){return[_0x2cc9cd];}['init'](){const _0x20a967=this['editor'],_0x4bbe52=_0x20a967['plugins']['get']('TrackChangesEditing'),_0x4d6db0=_0x20a967['commands']['get']('enter');_0x4bbe52['enableCommand']('enter',()=>{_0x20a967['model']['change'](_0x301c6c=>{const _0x3548a4=_0x20a967['model']['document']['selection'],_0x4841de=_0x3548a4['getFirstPosition'](),_0x4010a6=_0x190639['fromRange'](_0x3548a4['getFirstRange']());if(_0x4d6db0['enterBlock'](_0x301c6c)){const _0x1ae376=_0x20a967['model']['createPositionAt'](_0x4841de['parent']['nextSibling'],0x0),_0x596488=_0x301c6c['createRange'](_0x4841de,_0x1ae376);_0x4bbe52['markInsertion'](_0x596488);}else _0x301c6c['setSelection'](_0x301c6c['createRange'](_0x4010a6['end']));_0x4010a6['detach'](),_0x4d6db0['fire']('afterExecute',{'writer':_0x301c6c});});}),_0x20a967['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x20a967,'split'),{'priority':'high'}),_0x20a967['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4993d1,_0x34322d,_0x19e0b3)=>{const _0x3eb037=_0x19e0b3['mapper']['markerNameToElements'](_0x34322d['markerName']);if(_0x3eb037){for(const _0x69b0ec of _0x3eb037)_0x69b0ec['hasClass']('ck-suggestion-marker-split')&&(_0x19e0b3['mapper']['unbindElementFromMarkerName'](_0x69b0ec,_0x34322d['markerName']),_0x19e0b3['writer']['remove'](_0x69b0ec));}},{'priority':'high'}),_0x20a967['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4718eb,_0x25fe7b,_0x562482)=>{_0x562482['options']['showSuggestionHighlights']&&De(_0x20a967,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4718eb,_0x25fe7b,_0x562482);},{'priority':'high'});}}class Y extends _0x5d6089{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5cbadb=this['editor']['plugins']['get']('TrackChangesEditing');_0x5cbadb['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5cbadb['enableCommand']('findNext'),_0x5cbadb['enableCommand']('findPrevious'),_0x5cbadb['enableCommand']('replace'),_0x5cbadb['enableCommand']('replaceAll');}['handleFindCommand'](_0x234b9c,_0x4f749c,_0x51b14a={}){const _0x529de8=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x234b9c(_0x22d1ee=>{let _0x4bcd84=('string'==typeof _0x4f749c?_0x529de8['findByTextCallback'](_0x4f749c,_0x51b14a):_0x4f749c)(_0x22d1ee);Array['isArray'](_0x4bcd84)&&(_0x4bcd84={'results':_0x4bcd84,'searchText':'string'==typeof _0x4f749c?_0x4f749c:''});const _0x4bbaf3=_0x4bcd84['results']['filter'](_0xa30801=>!0x1===this['_isInDeletionRange'](_0xa30801,_0x22d1ee['item']));return{..._0x4bcd84,'results':_0x4bbaf3};},_0x51b14a);}['_isInDeletionRange'](_0xe2a906,_0x2307aa){const _0x38dde8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2307aa,_0xe2a906['start']),this['editor']['model']['createPositionAt'](_0x2307aa,_0xe2a906['end']));for(const _0x4d7ddb of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x38dde8['getIntersection'](_0x4d7ddb['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x5d6089{['afterInit'](){const _0x2e2d56=this['editor']['locale'],_0x3c5814=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xdf161f,commandName:_0x46ff9f}of ro)this['editor']['plugins']['has'](_0xdf161f)&&(_0x3c5814['enableDefaultAttributesIntegration'](_0x46ff9f),_0x3c5814['registerInlineAttribute'](_0x46ff9f));_0x3c5814['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2e2d56,'FORMAT_FONT_SIZE')),_0x3c5814['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2e2d56,'FORMAT_FONT_FAMILY')),_0x3c5814['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2e2d56,'FORMAT_FONT_COLOR')),_0x3c5814['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2e2d56,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55b246=this['editor'],_0x245925=_0x55b246['locale'];_0x55b246['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21f3df=>{const _0x15e445=_0x245925['t'];if('formatInline'!=_0x21f3df['type'])return;const {data:_0x3b6683}=_0x21f3df;if(null!=_0x3b6683){if('fontSize'==_0x3b6683['commandName']){const _0x5b4197=_0x3b6683['commandParams'][0x0]['value'];if(_0x5b4197){const _0x18311c=_0x15e445(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5078fd=>_0x5078fd['model']==_0x5b4197)['title'])['toLowerCase']();return{'type':'format','content':o(_0x245925,'*Set\x20font\x20size:*\x20%0',_0x18311c)};}return{'type':'format','content':o(_0x245925,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3b6683['commandName']){const _0x4a2264=_0x3b6683['commandParams'][0x0]['value'];return _0x4a2264?{'type':'format','content':o(_0x245925,'*Set\x20font\x20family:*\x20%0',_0x4a2264)}:{'type':'format','content':o(_0x245925,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3b6683['commandName']){const _0x55094d=_0x3b6683['commandParams'][0x0]['value'];if(_0x55094d){const _0x5b9e1d=_0x4a36e9(this['editor']['config']['get']('fontColor.colors'))['find'](_0x440c86=>_0x440c86['model']==_0x55094d);let _0x557cf6=_0x55094d,_0x33e773='';return _0x5b9e1d&&(_0x557cf6=_0x5b9e1d['label'],_0x33e773=_0x15e445(_0x557cf6)['toLowerCase']()),{'type':'format','content':o(_0x245925,'*Set\x20font\x20color:*\x20%0',_0x33e773)['trim'](),'color':{'value':_0x55094d,'title':_0x33e773||_0x557cf6}};}return{'type':'format','content':o(_0x245925,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3b6683['commandName']){const _0x5511ec=_0x3b6683['commandParams'][0x0]['value'];if(_0x5511ec){const _0xa82965=_0x4a36e9(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4af109=>_0x4af109['model']==_0x5511ec);let _0x56eb4d=_0x5511ec,_0x4e9c1e='';return _0xa82965&&(_0x56eb4d=_0xa82965['label'],_0x4e9c1e=_0x15e445(_0x56eb4d)['toLowerCase']()),{'type':'format','content':o(_0x245925,'*Set\x20font\x20background\x20color:*\x20%0',_0x4e9c1e)['trim'](),'color':{'value':_0x5511ec,'title':_0x4e9c1e||_0x56eb4d}};}return{'type':'format','content':o(_0x245925,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x5d6089{['afterInit'](){const _0x313131=this['editor'],_0x226500=_0x313131['plugins']['get']('TrackChangesEditing'),_0x4bdc46=_0x313131['commands']['get']('copyFormat'),_0x128586=_0x313131['commands']['get']('pasteFormat');_0x4bdc46&&_0x128586&&(_0x226500['enableDefaultAttributesIntegration']('pasteFormat'),_0x226500['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5c4ce4=this['editor'],_0x522548=_0x5c4ce4['locale'];_0x5c4ce4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42f184=>{if('formatBlock'!=_0x42f184['type']&&'formatInline'!=_0x42f184['type'])return;const {data:_0x5cf7f2}=_0x42f184;if(_0x5cf7f2&&'pasteFormat'===_0x5cf7f2['commandName']){const _0x33d954=[],_0x10372e=_0x5cf7f2['commandParams'][0x0];for(const [_0x55b271,_0x3dd433]of Object['entries'](_0x10372e))_0x33d954['push'](so(_0x5c4ce4,_0x55b271,_0x3dd433));return _0x33d954['length']?{'type':'format','content':o(_0x522548,'*Set\x20format\x20to:*\x20%0',_0x33d954['join'](',\x20'))}:{'type':'format','content':o(_0x522548,'*Remove\x20all\x20formatting*')};}});}}function so(_0x47464b,_0xa2b85e,_0x113b47){const _0x154fd1=_0x47464b['locale']['t'],_0x56876d=_0xa2b85e['split'](/(?=[A-Z])/)['join']('\x20'),_0x3c3393=_0x154fd1(_0x56876d['charAt'](0x0)['toUpperCase']()+_0x56876d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x113b47)return _0x3c3393;if('fontColor'===_0xa2b85e||'fontBackgroundColor'===_0xa2b85e){const _0x462c68=_0x4a36e9(_0x47464b['config']['get']('fontColor.colors'))['find'](_0x28db94=>_0x28db94['model']==_0x113b47);return _0x3c3393+'\x20('+(_0x462c68?_0x154fd1(_0x462c68['label'])['toLowerCase']():_0x113b47)+')';}if('fontSize'===_0xa2b85e&&isNaN(parseFloat(_0x113b47))){const _0x106828=_0x47464b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x47464b['config']['get']('fontSize.options'))['find'](_0x526bd5=>_0x526bd5['model']==_0x113b47);return _0x3c3393+'\x20('+(_0x106828?_0x154fd1(_0x106828['title'])['toLowerCase']():_0x113b47)+')';}return _0x3c3393+'\x20('+_0x113b47+')';}class nt extends _0x5d6089{['_headingOptions'];['afterInit'](){const _0x11ae2a=this['editor'];if(!_0x11ae2a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x11ae2a['config']['get']('heading.options');const _0x84a2aa=_0x11ae2a['locale'],_0x203b38=_0x11ae2a['plugins']['get']('TrackChangesEditing');_0x203b38['enableDefaultAttributesIntegration']('heading');for(const _0x5f0dfc of this['_headingOptions'])'paragraph'!=_0x5f0dfc['model']&&_0x203b38['descriptionFactory']['registerElementLabel'](_0x5f0dfc['model'],_0x2d7ccf=>{const _0x670421=this['_getHeadingLevel'](_0x5f0dfc['model']);return null!==_0x670421?_0x57ea35(_0x2d7ccf,_0x670421):_0x20d608(_0x2d7ccf,_0x5f0dfc['title']);});function _0x57ea35(_0x2cc552,_0x394bc7){return o(_0x84a2aa,'ELEMENT_HEADING',[_0x2cc552,_0x394bc7]);}function _0x20d608(_0x2ea736,_0x497940){return o(_0x84a2aa,'ELEMENT_HEADING_CUSTOM',[_0x2ea736,_0x497940]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7b8da5=this['editor'],_0x26f25e=_0x7b8da5['locale'];function _0x3d5759(_0xc0e462,_0x35dd8f){return o(_0x26f25e,'ELEMENT_HEADING_CUSTOM',[_0xc0e462,_0x35dd8f]);}_0x7b8da5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54517f=>{if('formatBlock'!=_0x54517f['type'])return;const {data:_0x55c9d}=_0x54517f;if(_0x55c9d&&'heading'==_0x55c9d['commandName']){const _0x264396=_0x55c9d['commandParams'][0x0]['value'],_0x5a96c6=this['_getHeadingLevel'](_0x264396);if(null!==_0x5a96c6)return{'type':'format','content':o(_0x26f25e,'*Change\x20to:*\x20%0',(_0x424eb6=0x1,_0x57a692=_0x5a96c6,o(_0x26f25e,'ELEMENT_HEADING',[_0x424eb6,_0x57a692])))};const _0x6f7918=this['_headingOptions']['find'](_0x31a3c6=>_0x31a3c6['model']===_0x264396)['title'];return{'type':'format','content':o(_0x26f25e,'*Change\x20to:*\x20%0',_0x3d5759(0x1,_0x6f7918))};}var _0x424eb6,_0x57a692;});}['_getHeadingLevel'](_0x62d711){const _0x367cb0=_0x62d711['match'](/^heading(\d+)/);if(_0x367cb0)return _0x367cb0[0x1];const _0x5d3323=this['_headingOptions']?.['find'](_0x14f977=>_0x14f977['model']==_0x62d711);if(_0x5d3323&&_0x5d3323['view']){const _0x7e74c8=_0x5d3323['view'],_0x4b0907=(_0x7e74c8['name']??_0x7e74c8)['match'](/^h(\d+)/);if(_0x4b0907)return _0x4b0907[0x1];}return null;}}class it extends _0x5d6089{['afterInit'](){const _0x3bcbfe=this['editor'];if(!_0x3bcbfe['plugins']['has']('HighlightEditing'))return;const _0x14589f=_0x3bcbfe['plugins']['get']('TrackChangesEditing'),_0x218b7e=_0x3bcbfe['locale'];_0x14589f['enableDefaultAttributesIntegration']('highlight'),_0x14589f['registerInlineAttribute']('highlight'),_0x14589f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x218b7e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53efcd=this['editor'],_0xaaa38a=_0x53efcd['locale'];_0x53efcd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bb69a=>{if('formatInline'!=_0x2bb69a['type'])return;const {data:_0x3d1f67}=_0x2bb69a;if(_0x3d1f67&&'highlight'==_0x3d1f67['commandName']){const _0x248a7b=_0xaaa38a['t'],_0x4c2b22=_0x3d1f67['commandParams'][0x0]['value'];if(_0x4c2b22){const _0x10aba2=_0x53efcd['config']['get']('highlight.options')['find'](_0x4f3b40=>_0x4f3b40['model']==_0x4c2b22),_0x4e0182=_0x248a7b(_0x10aba2['title'])['toLowerCase']();return{'type':'format','content':o(_0xaaa38a,'*Set\x20highlight:*\x20%0',_0x4e0182),'color':{'value':_0x10aba2['color'],'title':_0x10aba2['title']}};}return{'type':'format','content':o(_0xaaa38a,'*Remove\x20highlight*',o(_0xaaa38a,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x5d6089{['afterInit'](){const _0x28280a=this['editor'];if(!_0x28280a['plugins']['has']('HorizontalLineEditing'))return;_0x28280a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3cc56f=_0x28280a['plugins']['get']('TrackChangesEditing'),_0x247943=_0x28280a['locale'];_0x3cc56f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x47e1ec=>o(_0x247943,'ELEMENT_HORIZONTAL_LINE',_0x47e1ec)),_0x28280a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x49a6e1,{writer:_0x29fc8f,options:_0x19a7d5})=>{if(!_0x19a7d5['showSuggestionHighlights'])return null;const _0x41b6e8=_0x29fc8f['createContainerElement']('div'),_0x14fdcf=_0x29fc8f['createEmptyElement']('hr');return _0x29fc8f['addClass']('ck-horizontal-line',_0x41b6e8),_0x29fc8f['insert'](_0x29fc8f['createPositionAt'](_0x41b6e8,0x0),_0x14fdcf),_0x41b6e8;},'converterPriority':'high'});}}class st extends _0x5d6089{['afterInit'](){const _0x2b4f4c=this['editor'];if(!_0x2b4f4c['plugins']['has']('HtmlEmbed'))return;const _0x29c97a=_0x2b4f4c['plugins']['get']('TrackChangesEditing'),_0x6aa879=_0x2b4f4c['locale'];_0x29c97a['descriptionFactory']['registerElementLabel']('rawHtml',_0xe9151=>o(_0x6aa879,'ELEMENT_HTML_EMBED',_0xe9151)),_0x29c97a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x29c97a['registerBlockAttribute']('value'),_0x29c97a['descriptionFactory']['registerDescriptionCallback'](_0x43916c=>{if('attribute'!=_0x43916c['type'])return;const {data:_0x51a258}=_0x43916c;if(_0x51a258&&'value'==_0x51a258['key']&&_0x43916c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x36dccc=o(_0x6aa879,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x6aa879,'*Change\x20%0\x20content*',_0x36dccc)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27851f=this['editor'],_0x37a609=_0x27851f['locale'];_0x27851f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5917e7=>{if('formatBlock'!=_0x5917e7['type'])return;const {data:_0x559e27}=_0x5917e7;if(_0x559e27&&'htmlEmbed'==_0x559e27['commandName']){const _0x1d695b=o(_0x37a609,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x37a609,'*Change\x20%0\x20content*',_0x1d695b)};}});}}class ot extends _0x5d6089{['afterInit'](){const _0x4e64d5=this['editor'];if(!_0x4e64d5['plugins']['has']('ImageEditing'))return;const _0xb8f254=_0x4e64d5['plugins']['get']('TrackChangesEditing'),_0x2e0534=_0x4e64d5['plugins']['get']('ImageUtils'),_0x117e27=_0x4e64d5['locale'];_0xb8f254['enableCommand']('insertImage'),_0xb8f254['descriptionFactory']['registerElementLabel']('imageBlock',_0x3439de=>o(_0x117e27,'ELEMENT_IMAGE',_0x3439de)),_0xb8f254['descriptionFactory']['registerElementLabel']('imageInline',_0x2cdff0=>o(_0x117e27,'ELEMENT_INLINE_IMAGE',_0x2cdff0)),_0xb8f254['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x117e27,'ELEMENT_CAPTION')),_0x4e64d5['plugins']['has']('ImageUploadEditing')&&_0xb8f254['enableCommand']('uploadImage'),_0x4e64d5['plugins']['has']('ImageBlockEditing')&&_0x4e64d5['plugins']['has']('ImageInlineEditing')&&(_0xb8f254['enableCommand']('imageTypeInline',(_0x3f70f9,_0x3862a1)=>{const _0x5d6f73=_0x2e0534['getClosestSelectedImageElement'](_0x4e64d5['model']['document']['selection']);_0x4e64d5['model']['change'](()=>{_0xb8f254['markBlockFormat'](_0x5d6f73,{'commandName':'imageTypeInline','commandParams':[_0x3862a1]},[],'convertBlockImageToInline');});}),_0xb8f254['enableCommand']('imageTypeBlock',(_0x40ac18,_0x183883)=>{_0x4e64d5['model']['change'](_0x213e51=>{let _0x1990c4=_0x2e0534['getClosestSelectedImageElement'](_0x4e64d5['model']['document']['selection']),_0x5635ee=_0x213e51['createRangeOn'](_0x1990c4);const _0x56c9b4=_0x1f9cd0['fromPosition'](_0x5635ee['start'],'toPrevious'),_0x40ba70=_0x1f9cd0['fromPosition'](_0x5635ee['end'],'toNext');_0xb8f254['forceDefaultExecution'](()=>_0x40ac18(_0x183883)),_0x1990c4=_0x2e0534['getClosestSelectedImageElement'](_0x4e64d5['model']['document']['selection']),_0x5635ee=_0x213e51['createRangeOn'](_0x1990c4);const _0x530be9=_0x213e51['createRange'](_0x56c9b4,_0x40ba70);_0x56c9b4['detach'](),_0x40ba70['detach'](),_0xb8f254['markBlockFormat'](_0x1990c4,{'commandName':'imageTypeInline','commandParams':[_0x183883]},[],'convertInlineImageToBlock'),_0x530be9['start']['isBefore'](_0x5635ee['start'])&&_0xb8f254['markInsertion'](_0x213e51['createRange'](_0x530be9['start'],_0x5635ee['start']),'convertInlineImageToBlock'),_0x5635ee['end']['isBefore'](_0x530be9['end'])&&_0xb8f254['markInsertion'](_0x213e51['createRange'](_0x5635ee['end'],_0x530be9['end']),'convertInlineImageToBlock');});}),_0xb8f254['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xb8f254['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xb8f254['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xb8f254['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xb8f254['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xb8f254['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2db7ee])=>{const _0x42590=_0xb8f254['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x335883=_0x2db7ee['start'],_0x513240=_0x2db7ee['end'];const _0x3c0e38=_0x4e64d5['model']['schema']['getNearestSelectionRange'](_0x335883,'backward'),_0x469498=_0x4e64d5['model']['schema']['getNearestSelectionRange'](_0x513240,'forward');_0x3c0e38['isCollapsed']&&(_0x335883=_0x3c0e38['start']),_0x469498['isCollapsed']&&(_0x513240=_0x469498['end']),_0x42590([_0x4e64d5['model']['createRange'](_0x335883,_0x513240)]);}),_0xb8f254['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x442a5c),_0xb8f254['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x442a5c)),_0x4e64d5['plugins']['has']('ImageCaptionEditing')&&(_0xb8f254['enableCommand']('toggleImageCaption',(_0x235085,_0x4fbebd)=>{const _0x3771eb=_0x4e64d5['plugins']['get']('ImageCaptionUtils');let _0x5156a5=_0x2e0534['getClosestSelectedImageElement'](_0x4e64d5['model']['document']['selection']),_0x5957f2=_0x3771eb['getCaptionFromImageModelElement'](_0x5156a5);_0x4e64d5['model']['change'](()=>{if(_0x5957f2)return void _0xb8f254['markDeletion'](_0x4e64d5['model']['createRangeOn'](_0x5957f2));const _0x8c3804=_0x2e0534['isBlockImage'](_0x5156a5);_0x235085(_0x4fbebd),_0x5156a5=_0x2e0534['getClosestSelectedImageElement'](_0x4e64d5['model']['document']['selection']),_0x5957f2=_0x3771eb['getCaptionFromImageModelElement'](_0x5156a5),_0xb8f254['markInsertion'](_0x4e64d5['model']['createRangeOn'](_0x5957f2),_0x8c3804?null:'imageCaption');});}),_0xb8f254['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x442a5c));const _0x3c7607=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31d7b4(_0x247da2,_0x20f046){const _0x257a7d=_0x3c7607['findIndex'](({type:_0x388e96,subType:_0x4f1b1e})=>_0x247da2['type']==_0x388e96&&_0x247da2['subType']==_0x4f1b1e),_0x2d8b7f=_0x3c7607['findIndex'](({type:_0x283cb9,subType:_0x4c1b9a})=>_0x20f046['type']==_0x283cb9&&_0x20f046['subType']==_0x4c1b9a);if(_0x257a7d<0x0||_0x2d8b7f<0x0)return!0x1;const _0x20bea0=_0x247da2['getFirstRange'](),_0x52d4f1=_0x20f046['getFirstRange']();if((0x0==_0x257a7d||0x1==_0x257a7d)&&0x2==_0x2d8b7f&&_0x20bea0['isIntersecting'](_0x52d4f1))return!0x0;if(0x2==_0x257a7d&&0x3==_0x2d8b7f){const _0x27e4d7=_0xb8f254['_findSuggestions'](_0x20bea0,'insertion')['filter'](({suggestion:_0x1b6522,meta:_0x42628a})=>_0x42628a['isOwn']&&'convertInlineImageToBlock'==_0x1b6522['subType']);if(_0x27e4d7['length']>0x1&&_0x52d4f1['end']['isEqual'](_0x20bea0['start']))return!0x0;if(0x1==_0x27e4d7['length']&&(_0x20bea0['start']['isEqual'](_0x52d4f1['end'])||_0x20bea0['end']['isEqual'](_0x52d4f1['start'])))return!0x0;}if(0x3==_0x257a7d&&0x3==_0x2d8b7f&&_0x20bea0['start']['isBefore'](_0x52d4f1['start'])){const _0x30a496=_0x20bea0['end']['nodeAfter'],_0xcf5fa2=_0x52d4f1['start']['nodeBefore'];return _0x2e0534['isBlockImage'](_0x30a496)&&_0x30a496===_0xcf5fa2;}return!0x1;}function _0x442a5c(_0x2b6661,_0x2459b3){return _0x31d7b4(_0x2b6661,_0x2459b3)?[_0x2b6661,_0x2459b3]:_0x31d7b4(_0x2459b3,_0x2b6661)?[_0x2459b3,_0x2b6661]:null;}_0x4e64d5['plugins']['has']('ImageResize')&&(_0xb8f254['enableDefaultAttributesIntegration']('resizeImage'),_0xb8f254['registerBlockAttribute']('resizedWidth'),_0xb8f254['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x117e27,'FORMAT_IMAGE_SIZE'))),_0x4e64d5['plugins']['has']('ImageTextAlternativeEditing')&&(_0xb8f254['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xb8f254['registerBlockAttribute']('alt')),_0x4e64d5['plugins']['has']('PictureEditing')&&(_0xb8f254['registerBlockAttribute']('sources'),_0xb8f254['descriptionFactory']['registerDescriptionCallback'](_0x5704f2=>{if('attribute'!=_0x5704f2['type'])return;const {data:_0x23310b}=_0x5704f2;return _0x23310b&&'sources'==_0x23310b['key']?{'type':'format','content':''}:void 0x0;})),_0x4e64d5['plugins']['has']('ImageSizeAttributes')&&(_0xb8f254['registerBlockAttribute']('width'),_0xb8f254['registerBlockAttribute']('height'),_0xb8f254['descriptionFactory']['registerDescriptionCallback'](_0xca71e6=>{if('attribute'!=_0xca71e6['type'])return;const {data:_0x5b2c89}=_0xca71e6;return!_0x5b2c89||'width'!=_0x5b2c89['key']&&'height'!=_0x5b2c89['key']?void 0x0:{'type':'format','content':''};})),_0xb8f254['descriptionFactory']['registerDescriptionCallback'](_0x5b3c24=>{if(!!_0x3c7607['find'](({type:_0x517e12,subType:_0x4508f2})=>_0x5b3c24['type']==_0x517e12&&_0x5b3c24['subType']==_0x4508f2))return _0x5b3c24['previous']?{}:void 0x0;}),_0xb8f254['descriptionFactory']['registerDescriptionCallback'](_0x25f750=>{if('insertion'==_0x25f750['type']||'deletion'==_0x25f750['type']){const _0x38da86=_0x25f750['getContainedElement']();if(_0x38da86&&_0x38da86['is']('element','caption'))return{'type':'insertion'==_0x25f750['type']?'addObject':'removeObject','element':_0x38da86,'quantity':0x1};}}),_0xb8f254['descriptionFactory']['registerDescriptionCallback'](_0x86c3f7=>'formatBlock'==_0x86c3f7['type']&&'convertInlineImageToBlock'==_0x86c3f7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x86c3f7['type']&&'convertBlockImageToInline'==_0x86c3f7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xb8f254['descriptionFactory']['registerDescriptionCallback'](_0x316543=>{if('attribute'!=_0x316543['type'])return;const {data:_0x1a404e}=_0x316543;if(!_0x1a404e||'alt'!=_0x1a404e['key'])return;const _0x42a57b=_0x1a404e['newValue'];return _0x42a57b?{'type':'format','content':o(_0x117e27,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x42a57b+'\x22')}:{'type':'format','content':o(_0x117e27,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa1ae0a=this['editor'],_0x10cc33=_0xa1ae0a['locale'];_0xa1ae0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x524316=>{if('formatBlock'!=_0x524316['type']&&'formatInline'!=_0x524316['type'])return;const {data:_0x44ece6}=_0x524316;if(_0x44ece6){if('imageTextAlternative'==_0x44ece6['commandName']){const _0x1d0d08=_0x44ece6['commandParams'][0x0]['newValue'];return _0x1d0d08?{'type':'format','content':o(_0x10cc33,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1d0d08+'\x22')}:{'type':'format','content':o(_0x10cc33,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x44ece6['commandName']){const _0x56a163=_0x44ece6['commandParams'][0x0]['width'];return _0x56a163?{'type':'format','content':o(_0x10cc33,'*Set\x20image\x20width:*\x20%0',_0x56a163)}:{'type':'format','content':o(_0x10cc33,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x5d6089{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x290874=this['editor']['locale'],_0xf6f286=this['editor']['plugins']['get']('TrackChangesEditing');_0xf6f286['enableDefaultAttributesIntegration']('replaceImageSource'),_0xf6f286['registerBlockAttribute']('src'),_0xf6f286['descriptionFactory']['registerDescriptionCallback'](_0x4e5a0c=>{if('attribute'!=_0x4e5a0c['type'])return;const {data:_0x4e93c8}=_0x4e5a0c;return _0x4e93c8&&'src'==_0x4e93c8['key']?_0x4e93c8['newValue']&&_0x4e93c8['oldValue']?{'type':'format','content':o(_0x290874,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4a5680=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a5680['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4a5680['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a5680['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4a5680['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x234c0d=this['editor'],_0x5f394e=_0x234c0d['locale'];_0x234c0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x221a83=>{if('formatBlock'!=_0x221a83['type']&&'formatInline'!=_0x221a83['type'])return;const {data:_0x53d64a}=_0x221a83;if(!_0x53d64a||'replaceImageSource'!=_0x53d64a['commandName'])return;return{'type':'format','content':o(_0x5f394e,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x5d6089{['afterInit'](){const _0x18a95e=this['editor'];if(!_0x18a95e['plugins']['has']('ImageStyleEditing'))return;const _0x359a9f=_0x18a95e['plugins']['get']('TrackChangesEditing'),_0x4462ae=_0x18a95e['plugins']['get']('ImageUtils'),_0x194166={};_0x359a9f['enableCommand']('imageStyle',(_0x43f7c7,_0x2ec25e)=>{const _0x587163=_0x18a95e['plugins']['get']('Users')['me'],_0x3142d3=_0x18a95e['commands']['get']('imageStyle');let _0x454cf6=_0x4462ae['getClosestSelectedImageElement'](_0x18a95e['model']['document']['selection']),_0x19a2f5=_0x18a95e['model']['createRangeOn'](_0x454cf6),_0x447253=_0x3142d3['value'];if(_0x447253==_0x2ec25e['value'])return;const _0x25b70f={'commandName':'imageStyle','commandParams':[_0x2ec25e],'formatGroupId':_0x3e98cb()};_0x18a95e['model']['change'](()=>{if(_0x359a9f['getSuggestions']()['filter'](_0x134f61=>_0x134f61['isInContent']&&_0x587163==_0x134f61['author']&&('formatBlock'==_0x134f61['type']||'formatInline'==_0x134f61['type'])&&('imageStylePreApply'==_0x134f61['subType']||'imageStylePostApply'==_0x134f61['subType'])&&_0x134f61['getFirstRange']()['isEqual'](_0x19a2f5))['forEach'](_0x5a5832=>_0x359a9f['discardSuggestion'](_0x5a5832['head'])),_0x454cf6=_0x4462ae['getClosestSelectedImageElement'](_0x18a95e['model']['document']['selection']),_0x19a2f5=_0x18a95e['model']['createRangeOn'](_0x454cf6),_0x3142d3['refresh'](),_0x18a95e['commands']['get']('imageTypeInline')['refresh'](),_0x18a95e['commands']['get']('imageTypeBlock')['refresh'](),_0x447253=_0x3142d3['value'],_0x447253!=_0x2ec25e['value'])return _0x4462ae['isInlineImage'](_0x454cf6)&&_0x3142d3['shouldConvertImageType'](_0x2ec25e['value'],_0x454cf6)?(_0x43f7c7({..._0x2ec25e,'setImageSizes':!0x1}),_0x454cf6=_0x4462ae['getClosestSelectedImageElement'](_0x18a95e['model']['document']['selection']),void _0x359a9f['markBlockFormat'](_0x454cf6,{..._0x25b70f,'commandReversedParams':[{'value':_0x447253||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4462ae['isBlockImage'](_0x454cf6)?_0x359a9f['markBlockFormat'](_0x454cf6,_0x25b70f,[],'imageStylePostApply'):_0x359a9f['markInlineFormat'](_0x19a2f5,_0x25b70f,'imageStylePostApply'));});});for(const _0x5cb682 of _0x18a95e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x194166[_0x5cb682['name']]=_0x5cb682['title']['toLowerCase']();_0x359a9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x359a9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x359a9f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x359a9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x36496d])=>{_0x4462ae['setImageNaturalSizeAttributes'](_0x36496d['getContainedElement']());}),_0x359a9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xecb86,_0x244e67)=>{_0x359a9f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xecb86,{'commandName':_0x244e67['commandName'],'commandParams':_0x244e67['commandReversedParams']});}),_0x359a9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1cb0c1,_0x17d99c){if(_0xbbfd18(_0x1cb0c1,_0x17d99c))return[_0x1cb0c1,_0x17d99c];if(_0xbbfd18(_0x17d99c,_0x1cb0c1))return[_0x17d99c,_0x1cb0c1];return null;});const _0x5f0e69=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xbbfd18(_0x258316,_0xe8c5ea){const _0x336fba=_0x5f0e69['findIndex'](({type:_0x2a0f0f,subType:_0x17f002})=>_0x258316['type']==_0x2a0f0f&&_0x258316['subType']==_0x17f002),_0x34658e=_0x5f0e69['findIndex'](({type:_0x35692b,subType:_0x1a2498})=>_0xe8c5ea['type']==_0x35692b&&_0xe8c5ea['subType']==_0x1a2498);if(_0x336fba<0x0||_0x34658e<0x0)return!0x1;const _0x94cfcf=_0x258316['getFirstRange'](),_0x5473a6=_0xe8c5ea['getFirstRange']();if((0x0==_0x336fba||0x1==_0x336fba)&&0x2==_0x34658e&&_0x94cfcf['isIntersecting'](_0x5473a6))return!0x0;if(0x2==_0x336fba&&0x3==_0x34658e){const _0x3506a8=_0x359a9f['_findSuggestions'](_0x94cfcf,'insertion')['filter'](({suggestion:_0x16e33b,meta:_0x5bdab6})=>_0x5bdab6['isOwn']&&'convertInlineImageToBlock'==_0x16e33b['subType']);if(_0x3506a8['length']>0x1&&_0x5473a6['end']['isEqual'](_0x94cfcf['start']))return!0x0;if(0x1==_0x3506a8['length']&&(_0x94cfcf['start']['isEqual'](_0x5473a6['end'])||_0x94cfcf['end']['isEqual'](_0x5473a6['start'])))return!0x0;}if(0x3==_0x336fba&&0x3==_0x34658e&&_0x94cfcf['start']['isBefore'](_0x5473a6['start'])){const _0x4aed94=_0x94cfcf['end']['nodeAfter'],_0xf66a13=_0x5473a6['start']['nodeBefore'];return _0x4462ae['isBlockImage'](_0x4aed94)&&_0x4aed94===_0xf66a13;}return!0x1;}_0x18a95e['model']['document']['registerPostFixer'](()=>{let _0x4303b0=!0x1;const _0x452eee=Array['from'](_0x18a95e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5cc076,data:_0x51365d}of _0x452eee){const {group:_0x5177d4,type:_0x541565,subType:_0x566ea4,id:_0x4b8e1d}=_0x359a9f['_splitMarkerName'](_0x5cc076);if('suggestion'==_0x5177d4&&_0x359a9f['hasSuggestion'](_0x4b8e1d)){if('formatBlock'==_0x541565&&('imageStylePreApply'==_0x566ea4||'imageStylePostApply'==_0x566ea4)){const _0x48448b=_0x359a9f['getSuggestion'](_0x4b8e1d);if(_0x51365d['newRange']){const _0x166609=_0x48448b['getFirstRange']()['getContainedElement']();if(_0x4462ae['isBlockImage'](_0x166609))continue;_0x359a9f['discardSuggestion'](_0x48448b),_0x4303b0=!0x0;}}if('insertion'==_0x541565&&'imageCaption'==_0x566ea4&&!_0x51365d['newRange']){const _0x18f823=_0x359a9f['getSuggestion'](_0x4b8e1d);_0x18f823['next']&&_0x18f823['next']['isInContent']&&(_0x359a9f['discardSuggestion'](_0x18f823['next']),_0x4303b0=!0x0);}}}return _0x4303b0;}),this['_registerLegacyDescription'](_0x194166);}['_registerLegacyDescription'](_0x49d24d){const _0x670432=this['editor'],_0x23ffbd=_0x670432['locale'];_0x670432['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x189558=>{if('formatBlock'!=_0x189558['type']&&'formatInline'!=_0x189558['type'])return;const {data:_0x118efd}=_0x189558;if(!_0x118efd||'imageStyle'!=_0x118efd['commandName'])return;const _0x4b652a=_0x118efd['commandParams'][0x0]['value'];return _0x1bcfb1('side'===_0x4b652a?o(_0x23ffbd,'FORMAT_SIDE_IMAGE'):_0x49d24d[_0x4b652a]||_0x4b652a);function _0x1bcfb1(_0x2635e1){return{'type':'format','content':o(_0x23ffbd,'*Format:*\x20%0',_0x2635e1)};}});}}class ct extends _0x5d6089{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2c3ba6){super(_0x2c3ba6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x183079=this['editor'],_0x29e8e2=_0x183079['commands']['get']('importWord'),_0x32c4fa=_0x183079['commands']['get']('trackChanges');_0x29e8e2&&(_0x29e8e2['on']('execute',(_0x2b3da5,[,_0x1f9795])=>{this['_trackChangesValueDuringImport']=_0x32c4fa['value'],_0x1f9795['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x29e8e2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x29e8e2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x32c4fa['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x183079['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x25a751,_0x3d7228){const {suggestions:_0x1d27fc}=_0x3d7228,_0x45c34d=this['editor']['commands']['get']('trackChanges'),_0x2da7af=_0x45c34d['value'];this['_trackChangesValueDuringImport']!==_0x2da7af&&(_0x45c34d['execute'](),this['_trackChangesExecuted']=!0x0),_0x1d27fc&&_0x1d27fc['forEach'](({id:_0x1118d8,type:_0x3aa07a,author:_0x308c2c,created_at:_0x4fbc5e})=>{const _0x4599c0={'id':_0x1118d8,'type':_0x3aa07a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x308c2c,'createdAt':_0x4fbc5e?new Date(_0x4fbc5e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4599c0);});}}class ut extends _0x5d6089{['afterInit'](){const _0x5761c4=this['editor'],_0x584d2f=_0x5761c4['plugins']['get']('TrackChangesEditing');if(_0x5761c4['plugins']['has']('IndentEditing')&&(_0x584d2f['enableCommand']('indent'),_0x584d2f['enableCommand']('outdent')),_0x5761c4['plugins']['has']('IndentBlock')){for(const _0x41cdf2 of['indentBlock','outdentBlock'])_0x584d2f['enableDefaultAttributesIntegration'](_0x41cdf2);}const _0x4a27f9=_0x5761c4['locale'];_0x584d2f['registerBlockAttribute']('blockIndent'),_0x584d2f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4a27f9,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b688b=this['editor'],_0x3ed031=_0x3b688b['locale'],_0x3bb1df=_0x3b688b['plugins']['get']('TrackChangesEditing');_0x3bb1df['descriptionFactory']['registerDescriptionCallback'](_0x3350df=>{if('formatBlock'!=_0x3350df['type'])return;const {data:_0x546525}=_0x3350df;if(!_0x546525)return;if('indentBlock'!=_0x546525['commandName']&&'outdentBlock'!=_0x546525['commandName'])return;const _0x8c80b4=_0x3350df['getItems']()[0x0],_0x5f217d=_0x3bb1df['descriptionFactory']['getItemLabel'](_0x8c80b4);return'indentBlock'==_0x546525['commandName']?{'type':'format','content':o(_0x3ed031,'*Indent:*\x20%0',_0x5f217d)}:'outdentBlock'==_0x546525['commandName']?{'type':'format','content':o(_0x3ed031,'*Outdent:*\x20%0',_0x5f217d)}:void 0x0;});}}class ft extends _0x5d6089{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x5d6089{['afterInit'](){const _0x497f1e=this['editor'];if(!_0x497f1e['plugins']['has']('LinkEditing'))return;const _0x362ff6=_0x497f1e['plugins']['get']('TrackChangesEditing'),_0x10257c=_0x497f1e['commands']['get']('link');_0x362ff6['enableDefaultAttributesIntegration']('link'),_0x362ff6['enableDefaultAttributesIntegration']('unlink'),_0x362ff6['registerInlineAttribute']('linkHref');for(const _0x12921a of _0x10257c['manualDecorators'])_0x362ff6['registerInlineAttribute'](_0x12921a['id']),_0x362ff6['descriptionFactory']['registerAttributeLabel'](_0x12921a['id'],'link\x20('+_0x12921a['label']['toLowerCase']()+')');_0x362ff6['descriptionFactory']['registerDescriptionCallback'](_0x436d15=>{if('attribute'!=_0x436d15['type'])return;const {data:_0x6fb011}=_0x436d15;if(!_0x6fb011||'linkHref'!=_0x6fb011['key'])return;const _0x2c86d1=_0x6fb011['newValue'],_0x17e695=_0x497f1e['locale'];return{'type':'format','content':null==_0x2c86d1?o(_0x17e695,'*Remove\x20link*'):o(_0x17e695,'*Set\x20link:*\x20%0','\x22'+_0x2c86d1+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e352e=this['editor'],_0x471092=_0x4e352e['locale'];_0x4e352e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57fe0b=>{if('formatInline'!=_0x57fe0b['type'])return;const {data:_0x3e6da3}=_0x57fe0b;if(_0x3e6da3){if('link'==_0x3e6da3['commandName']){const _0x3bd96a=_0x3e6da3['commandParams'][0x0];return{'type':'format','content':o(_0x471092,'*Set\x20link:*\x20%0','\x22'+_0x3bd96a+'\x22')};}return'unlink'==_0x3e6da3['commandName']?{'type':'format','content':o(_0x471092,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x5d6089{['afterInit'](){const _0x124bd1=this['editor'],_0x33d3eb=_0x124bd1['locale'];if(!_0x124bd1['plugins']['has']('LegacyListEditing'))return;const _0x1f9fdc=_0x124bd1['plugins']['get']('TrackChangesEditing'),_0x348ed2=_0x124bd1['plugins']['has']('LegacyTodoListEditing');function _0x520ccc(_0xdecdbd){return()=>{const _0xfaa40c=_0x124bd1['model']['document']['selection'],_0x2fe702=_0x124bd1['commands']['get'](_0xdecdbd);if(_0x2fe702['value'])return void _0x124bd1['execute']('paragraph',{});const _0x2ec874=_0xdecdbd['slice'](0x0,-0x4),_0x3833dc=function(_0x5cf6c4,_0x56c43a,_0x2e37f4){let _0x13f9f9=Array['from'](_0x5cf6c4)['filter'](_0x1687a9=>function(_0x4863c3,_0xb1f4e8){return _0xb1f4e8['checkChild'](_0x4863c3['parent'],'listItem')&&!_0xb1f4e8['isObject'](_0x4863c3);}(_0x1687a9,_0x2e37f4));_0x13f9f9=_0x13f9f9['filter'](_0xdede69=>!_0xdede69['is']('element','listItem')||_0xdede69['getAttribute']('listType')!=_0x56c43a);const _0x3fc328=new Set();for(const _0x226adc of _0x13f9f9)_0x226adc['is']('element','listItem')?_0x3fc328['add'](Le(_0x226adc)):_0x3fc328['add'](_0x226adc);return Array['from'](_0x3fc328);}(_0xfaa40c['getSelectedBlocks'](),_0x2ec874,_0x124bd1['model']['schema']);_0x124bd1['model']['change'](()=>{for(const _0x1dba3b of _0x3833dc)_0x1f9fdc['markBlockFormat'](_0x1dba3b,{'commandName':_0xdecdbd,'commandParams':[{'forceValue':!_0x2fe702['value']}],'formatGroupId':'blockName'},Ee(_0x1dba3b));});};}function _0x4f3ad7(_0x5d823b){return()=>{const _0x335a4e=function(_0x35733a){let _0x5ed222=Array['from'](_0x35733a);const _0x27ab71=_0x5ed222['findIndex'](_0x1c9205=>'listItem'!=_0x1c9205['name']);return _0x27ab71>-0x1&&(_0x5ed222=_0x5ed222['slice'](0x0,_0x27ab71)),_0x5ed222;}(_0x124bd1['model']['document']['selection']['getSelectedBlocks']()),_0x18431c=_0x124bd1['model']['createRange'](_0x124bd1['model']['createPositionAt'](_0x335a4e[0x0],'before'),_0x124bd1['model']['createPositionAt'](_0x335a4e[_0x335a4e['length']-0x1],'end'));_0x124bd1['model']['change'](()=>{_0x1f9fdc['markBlockFormat'](_0x18431c,{'commandName':_0x5d823b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2c2616){const _0x35f7a5=new Set();for(const _0xb48674 of _0x2c2616){let _0x435910=_0xb48674['nextSibling'];for(;_0x435910&&_0x435910['getAttribute']('listIndent')>_0xb48674['getAttribute']('listIndent');)_0x35f7a5['add'](_0x435910),_0x435910=_0x435910['nextSibling'];}return Array['from'](_0x35f7a5);}(_0x335a4e));});};}_0x1f9fdc['enableCommand']('numberedList',_0x520ccc('numberedList')),_0x1f9fdc['enableCommand']('bulletedList',_0x520ccc('bulletedList')),_0x348ed2&&_0x1f9fdc['enableCommand']('todoList',_0x520ccc('todoList')),_0x1f9fdc['enableCommand']('indentList',_0x4f3ad7('indentList')),_0x1f9fdc['enableCommand']('outdentList',_0x4f3ad7('outdentList')),_0x348ed2&&_0x1f9fdc['enableCommand']('checkTodoList',()=>{const _0x1c3edc=_0x124bd1['commands']['get']('checkTodoList'),_0x8150c3=Array['from'](_0x1c3edc['_selectedElements']);_0x8150c3['filter'](_0x40fba3=>_0x40fba3['getAttribute']('todoListChecked')!=_0x1c3edc['value']),_0x124bd1['model']['change'](()=>{for(const _0x4364f7 of _0x8150c3)_0x1f9fdc['markBlockFormat'](_0x4364f7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1c3edc['value']}]});});}),_0x1f9fdc['descriptionFactory']['registerElementLabel']('listItem',_0x31ecd6=>o(_0x33d3eb,'ELEMENT_LIST_ITEM',_0x31ecd6)),_0x1f9fdc['descriptionFactory']['registerDescriptionCallback'](_0x34583a=>{if('formatBlock'!=_0x34583a['type']&&'formatInline'!=_0x34583a['type'])return;const {data:_0x42dd60}=_0x34583a;if(_0x42dd60){if('numberedList'==_0x42dd60['commandName']||'bulletedList'==_0x42dd60['commandName']||'todoList'==_0x42dd60['commandName'])switch(_0x42dd60['commandName']['replace']('List','')){case'bulleted':return _0x17275a(o(_0x33d3eb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x17275a(o(_0x33d3eb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x17275a(o(_0x33d3eb,'ELEMENT_TODO_LIST'));}if('indentList'==_0x42dd60['commandName'])return{'type':'format','content':o(_0x33d3eb,'*Indent:*\x20%0',o(_0x33d3eb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x42dd60['commandName'])return{'type':'format','content':o(_0x33d3eb,'*Outdent:*\x20%0',o(_0x33d3eb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x42dd60['commandName'])return _0x42dd60['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33d3eb,'*Check\x20item*')}:{'type':'format','content':o(_0x33d3eb,'*Uncheck\x20item*')};}function _0x17275a(_0x3e9601){return{'type':'format','content':o(_0x33d3eb,'*Change\x20to:*\x20%0',_0x3e9601)};}});}}function Le(_0x536981){const _0x33ecef=_0x536981['getAttribute']('listIndent');if(0x0==_0x33ecef)return _0x536981;let _0x1e4a0b=_0x536981;for(;_0x536981['previousSibling']&&_0x536981['previousSibling']['is']('element','listItem');){const _0x3c72e6=_0x536981['previousSibling']['getAttribute']('listIndent');if(_0x3c72e6==_0x33ecef)_0x1e4a0b=_0x536981['previousSibling'];else{if(_0x3c72e6<_0x33ecef)break;}_0x536981=_0x536981['previousSibling'];}return _0x1e4a0b;}function Ee(_0xd713e8){const _0x1f6b66=[];if(_0xd713e8['is']('element','listItem')&&_0xd713e8['getAttribute']('listIndent')>0x0){let _0x1cc8c2=_0xd713e8['nextSibling'];for(;_0x1cc8c2&&'listItem'==_0x1cc8c2['name']&&_0x1cc8c2['getAttribute']('listIndent')==_0xd713e8['getAttribute']('listIndent');)_0x1f6b66['push'](_0x1cc8c2),_0x1cc8c2=_0x1cc8c2['nextSibling'];}return _0x1f6b66;}class Q extends _0x5d6089{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x16b255=this['editor']['config']['get']('list.properties'),_0x3386e4=this['editor']['plugins']['get']('TrackChangesEditing');_0x16b255['styles']&&_0x3386e4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x16b255['reversed']&&_0x3386e4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x16b255['startIndex']&&_0x3386e4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3386e4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5ff958,_0x2a72bd={}){const _0x5bfacb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b34c9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5bfacb['markMultiRangeBlockFormat'](_0x2b34c9,{'commandName':'listStyle','commandParams':[{'type':_0x2a72bd['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x15170e,_0x2da3e5={}){const _0x49548d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47fd4a=this['_getSuggestionBlocks'](_0x3e13ef=>_0x3e13ef['is']('element','listItem')&&'numbered'===_0x3e13ef['getAttribute']('listType'));if(_0x47fd4a['length']<0x1)return;const _0x3e32e3=_0x47fd4a['map'](_0x240ec6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x240ec6,'before'),this['editor']['model']['createPositionAt'](_0x240ec6,0x0)));this['editor']['model']['change'](()=>{_0x49548d['markMultiRangeBlockFormat'](_0x3e32e3,{'commandName':'listReversed','commandParams':[{'reversed':_0x2da3e5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1b0df6,_0x5eb4df={}){const _0x28ee46=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5baf1d=this['_getSuggestionBlocks'](_0x217d25=>_0x217d25['is']('element','listItem')&&'numbered'===_0x217d25['getAttribute']('listType'));if(_0x5baf1d['length']<0x1)return;const _0x1d8b14=_0x5baf1d['map'](_0x5db837=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5db837,'before'),this['editor']['model']['createPositionAt'](_0x5db837,0x0)));this['editor']['model']['change'](()=>{_0x28ee46['markMultiRangeBlockFormat'](_0x1d8b14,{'commandName':'listStart','commandParams':[{'startIndex':_0x5eb4df['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4675be){if('formatBlock'!=_0x4675be['type']&&'formatInline'!=_0x4675be['type'])return;const _0x53cf9b=this['editor']['locale'],{data:_0x44e9db}=_0x4675be;if(!_0x44e9db)return;let _0x2f25df,_0x13a8bd;switch(_0x44e9db['commandName']){case'listStyle':_0x2f25df='*Change\x20to:*\x20%0',_0x13a8bd={'type':'format','content':o(_0x53cf9b,_0x2f25df,o(_0x53cf9b,this['_getTranslationKeyForListStyle'](_0x44e9db['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2f25df=_0x44e9db['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x13a8bd={'type':'format','content':o(_0x53cf9b,_0x2f25df)};break;case'listStart':_0x2f25df='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x13a8bd={'type':'format','content':o(_0x53cf9b,_0x2f25df,_0x44e9db['commandParams'][0x0]['startIndex'])};}return _0x13a8bd;}['_getSuggestionBlocksForListStyle'](){const _0x2298b2=this['editor']['plugins']['get']('LegacyListUtils');let _0x36bf11=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x36bf11[0x0]?.['is']('element','listItem')&&_0x36bf11['unshift'](..._0x2298b2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x36bf11[_0x36bf11['length']-0x1]?.['is']('element','listItem')&&_0x36bf11['push'](..._0x2298b2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x36bf11=[...new Set(_0x36bf11)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x36bf11=_0x36bf11['filter'](_0x3a9d23=>_0x3a9d23['is']('element','listItem'))),_0x36bf11;}['_getSuggestionBlocks'](_0x4c1e02){const _0x7d1a94=this['editor']['plugins']['get']('LegacyListUtils');let _0x2bc629=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4c1e02)['map'](_0x2e6717=>{const _0x5b9418=this['editor']['model']['createPositionAt'](_0x2e6717,0x0);return[..._0x7d1a94['getSiblingNodes'](_0x5b9418,'backward'),..._0x7d1a94['getSiblingNodes'](_0x5b9418,'forward')];})['flat']();return _0x2bc629=[...new Set(_0x2bc629)],_0x2bc629;}['_getTranslationKeyForListStyle'](_0x27d4e8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x27d4e8)||'default')['toUpperCase']()+'_LIST_'+_0x27d4e8['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x5d6089{['afterInit'](){const _0x18b569=this['editor'];if(!_0x18b569['plugins']['has']('MediaEmbedEditing'))return;const _0x31e50d=_0x18b569['plugins']['get']('TrackChangesEditing'),_0x357ee7=_0x18b569['locale'];_0x31e50d['enableCommand']('mediaEmbed'),_0x31e50d['descriptionFactory']['registerElementLabel']('media',_0x1320ee=>o(_0x357ee7,'ELEMENT_MEDIA',_0x1320ee)),_0x18b569['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x24e34f,{writer:_0x212a2a,options:_0x52c47e})=>{if(_0x52c47e['showSuggestionHighlights'])return _0x212a2a['createEmptyElement']('div');},'converterPriority':'high'}),_0x18b569['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5a6c4f,_0x1e3bb6,_0x473f6f)=>{_0x473f6f['options']['showSuggestionHighlights']&&_0x5a6c4f['stop']();},{'priority':'high'});}}class mt extends _0x5d6089{['afterInit'](){const _0x1e3d7d=this['editor'];_0x1e3d7d['plugins']['has']('MentionEditing')&&_0x1e3d7d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x5d6089{['afterInit'](){const _0xb2fc1d=this['editor'];if(!_0xb2fc1d['plugins']['has']('MergeFieldsEditing'))return;const _0x9e300=_0xb2fc1d['plugins']['get']('TrackChangesEditing'),_0x405fdc=_0xb2fc1d['locale'];_0x9e300['enableCommand']('insertMergeField'),_0x9e300['enableCommand']('insertMergeFieldBlock'),_0x9e300['enableCommand']('insertMergeFieldImage'),_0x9e300['descriptionFactory']['registerElementLabel']('mergeField',_0x3f7fcc=>o(_0x405fdc,'ELEMENT_MERGE_FIELD',_0x3f7fcc)),_0x9e300['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xcf5e48=>o(_0x405fdc,'ELEMENT_MERGE_FIELD',_0xcf5e48)),_0x9e300['descriptionFactory']['registerDescriptionCallback'](_0x33f8bf=>{if('insertion'!=_0x33f8bf['type']&&'deletion'!=_0x33f8bf['type'])return;const _0x5de4ef=_0x33f8bf['getContainedElement']();if(null==_0x5de4ef)return;const _0x49dc01=_0xb2fc1d['plugins']['get']('MergeFieldsEditing');let _0x18be34;switch(_0x49dc01['getMergeFieldType'](_0x5de4ef)){case null:return;case'image':{const _0x6862a3=_0x49dc01['unwrapAffixes'](_0x5de4ef['getAttribute']('src'));_0x18be34=_0x49dc01['getLabel'](_0x6862a3)||_0x6862a3;break;}default:{const _0x301c31=_0x5de4ef['getAttribute']('id');_0x18be34=_0x49dc01['getLabel'](_0x301c31)||_0x301c31;break;}}return'insertion'==_0x33f8bf['type']?{'type':'insertion','content':o(_0x405fdc,'*Insert:*\x20%0','\x22'+_0x18be34+'\x22\x20'+o(_0x405fdc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x405fdc,'*Remove:*\x20%0','\x22'+_0x18be34+'\x22\x20'+o(_0x405fdc,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x5d6089{['afterInit'](){const _0x3c0366=this['editor'],_0x4cf69e=_0x3c0366['plugins']['get']('TrackChangesEditing');_0x3c0366['plugins']['has']('MultiLevelList')&&(_0x4cf69e['enableDefaultAttributesIntegration']('multiLevelList'),_0x4cf69e['registerBlockAttribute']('listMarkerStyle'),_0x4cf69e['descriptionFactory']['registerDescriptionCallback'](_0x1e4b5c=>this['handleDescriptions'](_0x1e4b5c)));}['handleDescriptions'](_0x80b1a7){const _0x417dc9=this['editor']['locale'],{data:_0x68738c}=_0x80b1a7,_0x4521e={'type':'format','content':''};if(_0x68738c&&'listMarkerStyle'==_0x68738c['key']){if(!_0x68738c['oldValue'])return{'type':'format','content':o(_0x417dc9,'*Set\x20format:*\x20%0',o(_0x417dc9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x68738c['newValue']+')'};if(!_0x68738c['newValue']){let _0xa0ed1=_0x80b1a7['head'];for(;_0xa0ed1;){if(_0xa0ed1['data']&&'listType'==_0xa0ed1['data']['key']&&_0xa0ed1['data']['newValue'])return _0x4521e;_0xa0ed1=_0xa0ed1['next'];}return{'type':'format','content':o(_0x417dc9,'*Remove\x20format:*\x20%0',o(_0x417dc9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x68738c['oldValue']+')'};}}}}class kt extends _0x5d6089{['afterInit'](){const _0x3ed053=this['editor'];if(!_0x3ed053['plugins']['has']('PageBreakEditing'))return;_0x3ed053['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x221810=_0x3ed053['plugins']['get']('TrackChangesEditing'),_0x5d4342=_0x3ed053['locale'];_0x221810['descriptionFactory']['registerElementLabel']('pageBreak',_0x17aff5=>o(_0x5d4342,'ELEMENT_PAGE_BREAK',_0x17aff5));}}class bt extends _0x5d6089{['afterInit'](){const _0x23f1bc=this['editor'];if(!_0x23f1bc['plugins']['has']('Paragraph'))return;const _0x592145=_0x23f1bc['locale'],_0x585590=_0x23f1bc['plugins']['get']('TrackChangesEditing');_0x585590['descriptionFactory']['registerElementLabel']('paragraph',_0x126d5b=>o(_0x592145,'ELEMENT_PARAGRAPH',_0x126d5b)),_0x585590['enableDefaultAttributesIntegration']('paragraph'),_0x585590['enableCommand']('insertParagraph'),_0x23f1bc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x23f1bc),{'priority':'highest'}),_0x23f1bc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4ca39b,_0x3473e6,_0x4ee287)=>{_0x4ee287['options']['showSuggestionHighlights']&&nr(_0x23f1bc,{'showActiveMarker':!0x1})(_0x4ca39b,_0x3473e6,_0x4ee287);},{'priority':'highest'});const _0x1c476b=_0x585590['descriptionFactory'];_0x1c476b['registerDescriptionCallback'](_0x111cd1=>{if('insertion'!==_0x111cd1['type'])return;const {start:_0x5da9b7,end:_0x431e87}=_0x111cd1['getFirstRange']();if(!_0x5da9b7['isTouching'](_0x431e87)||!_0x5da9b7['nodeAfter'])return;const _0x110d43=_0x23f1bc['model']['schema'],_0x23aead=_0x5da9b7['nodeAfter'];return _0x110d43['isBlock'](_0x23aead)&&!_0x110d43['isLimit'](_0x23aead)&&_0x110d43['checkChild'](_0x23aead,'$text')?{'type':'insertion','content':o(_0x592145,'*Insert:*\x20%0',_0x1c476b['getItemLabel'](_0x23aead,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58e7ed=this['editor'],_0x297ae7=_0x58e7ed['locale'];_0x58e7ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24f643=>{if('formatBlock'!=_0x24f643['type'])return;const {data:_0x591023}=_0x24f643;return _0x591023&&'paragraph'==_0x591023['commandName']?{'type':'format','content':o(_0x297ae7,'*Change\x20to:*\x20%0',o(_0x297ae7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x10efb6,{showActiveMarker:_0x2afde7=!0x0}={}){return(_0x1253e7,_0x1465d7,_0x3324fe)=>{const _0x556be6=_0x10efb6['plugins']['get']('TrackChangesEditing'),_0x245ff4=_0x1465d7['markerRange']['start'],_0x397a0f=_0x1465d7['markerRange']['end'],_0x33c261=_0x10efb6['model']['schema'];if(!_0x245ff4['isTouching'](_0x397a0f)||!_0x245ff4['nodeAfter'])return;const _0x5a23e7=_0x245ff4['nodeAfter'];if(_0x33c261['isBlock'](_0x5a23e7)&&!_0x33c261['isLimit'](_0x5a23e7)&&_0x33c261['checkChild'](_0x5a23e7,'$text')){if(!_0x3324fe['consumable']['consume'](_0x1465d7['markerRange'],_0x1253e7['name']))return;const {authorId:_0x4712c1}=_0x556be6['_splitMarkerName'](_0x1465d7['markerName']),_0x4b0052=_0x3324fe['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4712c1}),_0xc1f748=_0x3324fe['mapper']['toViewPosition'](_0x397a0f);_0x2afde7&&_0x556be6['activeMarkers']['includes'](_0x1465d7['markerName'])&&_0x3324fe['writer']['addClass']('ck-suggestion-marker--active',_0x4b0052),_0x3324fe['writer']['insert'](_0xc1f748,_0x4b0052),_0x3324fe['mapper']['bindElementToMarker'](_0x4b0052,_0x1465d7['markerName']);}};}class yt extends _0x5d6089{['afterInit'](){const _0x5aa2dd=this['editor'];if(!_0x5aa2dd['plugins']['has']('RemoveFormatEditing'))return;_0x5aa2dd['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28bcaf=this['editor'];_0x28bcaf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x415c83=>{if('formatBlock'!=_0x415c83['type']&&'formatInline'!=_0x415c83['type'])return;const {data:_0xe7f706}=_0x415c83;return _0xe7f706&&'removeFormat'==_0xe7f706['commandName']?{'type':'format','content':o(_0x28bcaf['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x5d6089{['afterInit'](){const _0x3c2f74=this['editor'];if(!_0x3c2f74['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x301e1c=_0x3c2f74['plugins']['get']('TrackChangesEditing');_0x301e1c['enableCommand']('goToPreviousRestrictedEditingException'),_0x301e1c['enableCommand']('goToNextRestrictedEditingException');const _0x176f95=_0x3c2f74['plugins']['get']('RestrictedEditingModeEditing');_0x176f95['enableCommand']('trackChanges'),_0x176f95['enableCommand']('acceptSuggestion'),_0x176f95['enableCommand']('discardSuggestion'),_0x176f95['enableCommand']('acceptAllSuggestions'),_0x176f95['enableCommand']('discardAllSuggestions'),_0x176f95['enableCommand']('acceptSelectedSuggestions'),_0x176f95['enableCommand']('discardSelectedSuggestions');}}class St extends _0x5d6089{static get['requires'](){return[_0x1b9647];}['init'](){const _0x59adb5=this['editor'],_0x14e5c7=_0x59adb5['plugins']['get']('TrackChangesEditing');_0x14e5c7['enableCommand']('shiftEnter'),_0x59adb5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x59adb5),{'priority':'high'}),_0x59adb5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x59adb5),{'priority':'high'}),_0x59adb5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x137de4,_0x2f1ec9,_0x5528f6)=>{_0x5528f6['options']['showSuggestionHighlights']&&je(_0x59adb5,{'showActiveMarker':!0x1})(_0x137de4,_0x2f1ec9,_0x5528f6);}),_0x14e5c7['descriptionFactory']['registerElementLabel']('softBreak',_0x54b979=>o(_0x59adb5['locale'],'ELEMENT_LINE_BREAK',_0x54b979));}}function je(_0x5c9476,{showActiveMarker:_0x885284=!0x0}={}){return(_0x18b03f,_0xc88b88,_0x2672d0)=>{const _0x82f097=_0x5c9476['plugins']['get']('TrackChangesEditing');if(!_0x2672d0['consumable']['test'](_0xc88b88['markerRange'],_0x18b03f['name']))return;const _0x2f2407=_0x5c9476['model'];for(const _0x4c21ee of _0xc88b88['markerRange']['getItems']()){if(!_0x4c21ee['is']('element','softBreak'))continue;const _0x2bcfc3='deletion'==_0xc88b88['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x577d98}=_0x82f097['_splitMarkerName'](_0xc88b88['markerName']),_0x5c9116=_0x2672d0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2bcfc3,'data-author-id':_0x577d98}),_0x5b4a4b=_0x2672d0['mapper']['toViewPosition'](_0x2f2407['createPositionBefore'](_0x4c21ee));_0x885284&&_0x82f097['activeMarkers']['includes'](_0xc88b88['markerName'])&&_0x2672d0['writer']['addClass']('ck-suggestion-marker--active',_0x5c9116),_0x2672d0['writer']['insert'](_0x5b4a4b,_0x5c9116),_0x2672d0['mapper']['bindElementToMarker'](_0x5c9116,_0xc88b88['markerName']);}};}class At extends _0x5d6089{['afterInit'](){const _0x53609a=this['editor'],_0x4efd74=_0x53609a['model'],_0x4ddb2e=_0x53609a['locale'];if(!_0x53609a['plugins']['has']('StandardEditingModeEditing'))return;const _0xa24ad6=_0x53609a['plugins']['get']('TrackChangesEditing'),_0x1ce8ee='restrictedEditingException',_0x514340=_0x53609a['commands']['get'](_0x1ce8ee);_0xa24ad6['enableCommand'](_0x1ce8ee,(_0x415135,_0x4e5eec={})=>{const _0x8eefb9=_0x4efd74['document']['selection'];if(_0x8eefb9['isCollapsed'])return void _0x415135(_0x4e5eec);const _0x31ba60=void 0x0!==_0x4e5eec['forceValue']?_0x4e5eec['forceValue']:!_0x514340['value'];_0x4efd74['change'](()=>{const _0x41128c=Array['from'](_0x8eefb9['getRanges']());for(const _0x9d4ba7 of _0x41128c){const _0x4de42f=_0x31ba60?[_0x9d4ba7]:io(_0x1ce8ee,_0x9d4ba7,_0x4efd74);for(const _0x15ac4d of _0x4de42f)_0xa24ad6['markInlineFormat'](_0x15ac4d,{'commandName':_0x1ce8ee,'commandParams':[{'forceValue':_0x31ba60}]});}});}),_0xa24ad6['descriptionFactory']['registerDescriptionCallback'](_0x34e31e=>{if('formatBlock'!=_0x34e31e['type']&&'formatInline'!=_0x34e31e['type'])return;const {data:_0x22bc37}=_0x34e31e;return _0x22bc37&&_0x22bc37['commandName']==_0x1ce8ee?_0x22bc37['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ddb2e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4ddb2e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x5d6089{['afterInit'](){const _0x560f8f=this['editor'];if(!_0x560f8f['plugins']['has']('Style')||!_0x560f8f['plugins']['has']('DataSchema'))return;const _0x29d1f5=_0x560f8f['plugins']['get']('TrackChangesEditing'),_0x3cd77e=_0x560f8f['locale'],_0x2b0ba0=_0x560f8f['config']['get']('style')||{},_0x193841=_0x560f8f['plugins']['get']('GeneralHtmlSupport'),_0x5be735=_0x560f8f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x560f8f['plugins']['get']('DataSchema'),_0x2b0ba0['definitions']);_0x29d1f5['enableDefaultAttributesIntegration']('style');const _0x1bffd8=new Set();for(const _0x37b131 of _0x5be735['block']){const _0x38c1d2=_0x193841['getGhsAttributeNameForElement'](_0x37b131['element']);_0x1bffd8['add'](_0x38c1d2);}const _0x58817b=new Set();for(const _0x27a79e of _0x5be735['inline']){const _0x418f89=_0x193841['getGhsAttributeNameForElement'](_0x27a79e['element']);_0x58817b['add'](_0x418f89);for(const _0xc06538 of _0x27a79e['ghsAttributes'])_0x58817b['add'](_0xc06538);}for(const _0x533522 of _0x1bffd8)_0x29d1f5['registerBlockAttribute'](_0x533522),_0x29d1f5['descriptionFactory']['registerAttributeLabel'](_0x533522,o(_0x3cd77e,'FORMAT_STYLE'));for(const _0x13219d of _0x58817b)_0x29d1f5['registerInlineAttribute'](_0x13219d),_0x29d1f5['descriptionFactory']['registerAttributeLabel'](_0x13219d,o(_0x3cd77e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x651190=this['editor'],_0x1e548a=_0x651190['locale'];_0x651190['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x968846=>{if('formatBlock'!=_0x968846['type']&&'formatInline'!=_0x968846['type'])return;const {data:_0x30cd4e}=_0x968846;return _0x30cd4e&&'style'===_0x30cd4e['commandName']?_0x30cd4e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e548a,'*Set\x20format:*\x20%0',_0x30cd4e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1e548a,'*Remove\x20format:*\x20%0',_0x30cd4e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x5d6089{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4b9255){super(_0x4b9255),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4ebc3c=this['editor'],_0x2be535=_0x4ebc3c['model']['document']['selection'];if(!_0x4ebc3c['plugins']['has']('TableEditing'))return;const _0x22314c=_0x4ebc3c['locale'],_0x4a0ded=_0x4ebc3c['plugins']['get']('TrackChangesEditing'),_0x2093d8=_0x4ebc3c['plugins']['get']('TableUtils');_0x4a0ded['descriptionFactory']['registerElementLabel']('table',_0x427cde=>o(_0x22314c,'ELEMENT_TABLE',_0x427cde)),this['_setupColumnsRowsFixing'](),_0x4a0ded['enableCommand']('insertTable'),_0x4a0ded['enableCommand']('selectTableRow'),_0x4a0ded['enableCommand']('selectTableColumn');for(const _0x1f5ffa of['insertTableRowAbove','insertTableRowBelow']){const _0x137f3a=_0x4ebc3c['commands']['get'](_0x1f5ffa);_0x4a0ded['enableCommand'](_0x1f5ffa,_0x2984e7=>{_0x4ebc3c['model']['change'](_0x198a66=>{_0x2984e7();const _0x2f540a='above'===_0x137f3a['order'],_0x58fc2f=_0x2093d8['getSelectionAffectedTableCells'](_0x2be535),_0x135fd1=_0x2093d8['getRowIndexes'](_0x58fc2f),_0x339602=_0x2f540a?_0x135fd1['first']-0x1:_0x135fd1['last']+0x1,_0x25d331=_0x58fc2f[0x0]['findAncestor']('table'),_0x26dacf=_0x2093d8['createTableWalker'](_0x25d331,{'startRow':_0x339602,'endRow':_0x339602}),_0x1cbb6f=Array['from'](_0x26dacf)['map'](_0x1f048c=>_0x198a66['createRangeOn'](_0x1f048c['cell']));_0x4a0ded['markMultiRangeInsertion'](_0x1cbb6f,'tableRow');});});}for(const _0x238408 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1c3609=_0x4ebc3c['commands']['get'](_0x238408);_0x4a0ded['enableCommand'](_0x238408,_0x50eb23=>{_0x4ebc3c['model']['change'](_0x309d29=>{_0x50eb23();const _0x424e55='left'===_0x1c3609['order'],_0x2ea026=_0x2093d8['getSelectionAffectedTableCells'](_0x2be535),_0x531835=_0x2093d8['getColumnIndexes'](_0x2ea026),_0x19d1eb=_0x424e55?_0x531835['first']-0x1:_0x531835['last']+0x1,_0x5cafa2=_0x2ea026[0x0]['findAncestor']('table'),_0x1d22f3=_0x2093d8['createTableWalker'](_0x5cafa2,{'startRow':0x0,'column':_0x19d1eb,'includeAllSlots':!0x1}),_0x15823e=Array['from'](_0x1d22f3)['map'](_0x31bcdf=>_0x309d29['createRangeOn'](_0x31bcdf['cell']));_0x4a0ded['markMultiRangeInsertion'](_0x15823e,'tableColumn');});});}for(const _0x1471fc of['removeTableRow','removeTableColumn']){const _0x58106b=_0x1471fc['substr'](0xb),_0x46b07c=_0x58106b['toLowerCase'](),_0x4fc0f8=_0x46b07c['substr'](0x0,0x3)+'span',_0x1a3e02='table'+_0x58106b,_0x2e2999='min'+_0x58106b,_0x5e479b='max'+_0x58106b;_0x4a0ded['enableCommand'](_0x1471fc,()=>{_0x4ebc3c['model']['change'](_0x1e299f=>{const _0x37e0dc=_0x2093d8['getSelectionAffectedTableCells'](_0x2be535),_0x20c866=_0x37e0dc[0x0]['findAncestor']('table');let _0x552683;if('removeTableRow'==_0x1471fc){const _0x422769=_0x2093d8['getRowIndexes'](_0x37e0dc);_0x552683={'startRow':_0x422769['first'],'endRow':_0x422769['last'],'includeAllSlots':!0x0};}else{const _0x414e8b=_0x2093d8['getColumnIndexes'](_0x37e0dc);_0x552683={'startColumn':_0x414e8b['first'],'endColumn':_0x414e8b['last'],'includeAllSlots':!0x0};}const _0x63da7a=_0x2093d8['createTableWalker'](_0x20c866,_0x552683),_0x1cbff2=Array['from'](_0x63da7a)['map'](({cell:_0xff59f9})=>_0xff59f9),_0x4b5629=Ne(_0x1cbff2['filter'](_0x2b51af=>_0x2b51af['hasAttribute'](_0x4fc0f8))),_0x29acd0=Ne(_0x1cbff2['filter'](_0x3320d1=>!_0x3320d1['hasAttribute'](_0x4fc0f8)))['map'](_0x34ea5f=>_0x1e299f['createRangeOn'](_0x34ea5f)),_0x38a562=_0x4a0ded['markMultiRangeDeletion'](_0x29acd0,_0x1a3e02);if(_0x38a562&&('tableRow'==_0x38a562['subType']||'tableColumn'==_0x38a562['subType'])){const _0x35b1e1=this['_getSuggestionCoords'](_0x38a562);for(const _0x127ea1 of _0x4b5629){const _0x27b3ee=_0x1e299f['createRangeOn'](_0x127ea1),_0x317865=_0x2093d8['getCellLocation'](_0x127ea1),_0x440629=_0x127ea1['getAttribute'](_0x4fc0f8)-0x1,_0x17a81f=_0x35b1e1[_0x2e2999],_0x540a16=_0x35b1e1[_0x5e479b];_0x17a81f<=_0x317865[_0x46b07c]&&_0x317865[_0x46b07c]+_0x440629<=_0x540a16&&_0x38a562['addRange'](_0x27b3ee);}}});});}function _0x5636ad(_0x1105d8){const _0x592ac2=Array['from'](_0x2be535['getRanges']())['map'](_0x1210b8=>_0x190639['fromRange'](_0x1210b8));_0x4ebc3c['model']['change'](_0x37da5c=>{const _0x286d3f=_0x37da5c['batch'];_0x1105d8=_0x1105d8['filter'](_0x5a4f17=>'$graveyard'!=_0x5a4f17['root']['rootName']),_0x37da5c['setSelection'](_0x1105d8),_0x4ebc3c['commands']['get']('removeTableRow')['refresh'](),_0x4ebc3c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4ebc3c['model']['enqueueChange'](()=>{_0x4ebc3c['model']['enqueueChange'](_0x286d3f,_0x467bdb=>{const _0x335ddf=_0x592ac2['filter'](_0x267b02=>'$graveyard'!=_0x267b02['root']['rootName']);_0x335ddf['length']>0x0&&_0x467bdb['setSelection'](_0x335ddf);for(const _0x5c4b2c of _0x592ac2)_0x5c4b2c['detach']();});});});}function _0x3cfc69(_0x595064){_0x4ebc3c['model']['change'](_0x1a8cda=>{const _0x5d969b=Array['from'](_0x2be535['getRanges']())['map'](_0x111507=>_0x190639['fromRange'](_0x111507)),_0x3742b8=[];for(const _0x376da5 of _0x595064)for(const _0x53535d of _0x376da5['getItems']({'shallow':!0x0}))_0x3742b8['push'](_0x53535d);for(const _0x312f84 of _0x3742b8)'$graveyard'!=_0x312f84['root']['rootName']&&(_0x1a8cda['setSelection'](_0x1a8cda['createPositionAt'](_0x312f84,0x0)),_0x4ebc3c['commands']['get']('removeTableColumn')['refresh'](),_0x4ebc3c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5384fd=_0x5d969b['filter'](_0x496958=>'$graveyard'!=_0x496958['root']['rootName']);_0x5384fd['length']>0x0&&_0x1a8cda['setSelection'](_0x5384fd);for(const _0x3473bf of _0x5d969b)_0x3473bf['detach']();});}function _0x1d391f(_0x3b5823,_0x108fa6){return _0x108fa6['every'](_0x2f35d7=>_0x3b5823['some'](_0x56378f=>_0x56378f['end']['isEqual'](_0x2f35d7['start'])||_0x2f35d7['end']['isEqual'](_0x56378f['start'])));}function _0x2d1766(_0x552212,_0x4769ef){return!_0x552212['some'](_0x51a7aa=>_0x4769ef['some'](_0x1488a1=>_0x51a7aa['isIntersecting'](_0x1488a1)))&&_0x552212['some'](_0x8a6aa9=>_0x4769ef['some'](_0x2ee8e8=>_0x8a6aa9['end']['isTouching'](_0x2ee8e8['start'])));}_0x4ebc3c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4aef8f,_0x5897df,_0x50d211)=>{if(!_0x50d211['options']['showSuggestionHighlights'])return;const _0x5c47af=_0x5897df['item'];if(!_0x5c47af)return;const _0x4ea1ea=_0x50d211['mapper']['toViewElement'](_0x5c47af);function _0x361e38(_0x32f701){return Array['isArray'](_0x32f701)?_0x32f701:[_0x32f701];}_0x4ea1ea&&'tableCell'===_0x5c47af['name']&&_0x4bfc39(_0x4ea1ea,_0x50d211['writer'],(_0x1d4d42,_0xf3c638,_0x249f74)=>_0x249f74['addClass'](_0x361e38(_0xf3c638['classes']),_0x1d4d42),(_0x400cf2,_0x395636,_0x5bd5e2)=>_0x5bd5e2['removeClass'](_0x361e38(_0x395636['classes']),_0x400cf2));},{'priority':'highest'}),_0x4a0ded['descriptionFactory']['registerDescriptionCallback'](_0x11ab11=>{if('insertion'!=_0x11ab11['type']&&'deletion'!=_0x11ab11['type'])return;const _0x25cf3c=_0x11ab11['getContainedElement']();if(null!=_0x25cf3c&&_0x25cf3c['is']('element','table')){if('insertion'==_0x11ab11['type']){const _0x19f694=_0x11ab11['getItems']()['filter'](_0x44628e=>_0x44628e['is']('$textProxy'))['map'](_0x4c579b=>_0x4c579b['data']);if(_0x19f694['length'])return{'type':'insertion','content':o(_0x22314c,'*Insert:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19f694['join']('\x20')+'\x22'))};}if('deletion'==_0x11ab11['type']){const _0x39102d=_0x11ab11['getItems']()['filter'](_0x524bea=>_0x524bea['is']('$textProxy'))['map'](_0x124126=>_0x124126['data']);if(_0x39102d['length'])return{'type':'deletion','content':o(_0x22314c,'*Remove:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x39102d['join']('\x20')+'\x22'))};}}}),_0x4a0ded['descriptionFactory']['registerDescriptionCallback'](_0xd47df7=>{if('tableRow'==_0xd47df7['subType']){const _0x36c1be=_0xd47df7['getItems']()['filter'](_0x442aa0=>_0x442aa0['is']('$textProxy'))['map'](_0x4ed9ce=>_0x4ed9ce['data']),_0x1c752b=this['_getSuggestionCoords'](_0xd47df7),_0x3ab838=_0x1c752b['maxRow']-_0x1c752b['minRow']+0x1;if('insertion'==_0xd47df7['type'])return _0x36c1be['length']?{'type':'insertion','content':o(_0x22314c,'*Insert:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3ab838,'\x22'+_0x36c1be['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x22314c,'*Insert:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_ROW',_0x3ab838))};if('deletion'==_0xd47df7['type'])return _0x36c1be['length']?{'type':'deletion','content':o(_0x22314c,'*Remove:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3ab838,'\x22'+_0x36c1be['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x22314c,'*Remove:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_ROW',_0x3ab838))};}if('tableColumn'==_0xd47df7['subType']){const _0x2d320c=_0xd47df7['getItems']()['filter'](_0x167589=>_0x167589['is']('$textProxy'))['map'](_0x461294=>_0x461294['data']),_0x388f72=this['_getSuggestionCoords'](_0xd47df7),_0x2e7417=_0x388f72['maxColumn']-_0x388f72['minColumn']+0x1;if('insertion'==_0xd47df7['type'])return _0x2d320c['length']?{'type':'insertion','content':o(_0x22314c,'*Insert:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e7417,'\x22'+_0x2d320c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x22314c,'*Insert:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_COLUMN',_0x2e7417))};if('deletion'==_0xd47df7['type'])return _0x2d320c['length']?{'type':'deletion','content':o(_0x22314c,'*Remove:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e7417,'\x22'+_0x2d320c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x22314c,'*Remove:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_COLUMN',_0x2e7417))};}}),_0x4a0ded['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5636ad),_0x4a0ded['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5636ad),_0x4a0ded['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3cfc69),_0x4a0ded['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3cfc69),_0x4a0ded['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1d391f),_0x4a0ded['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1d391f),_0x4a0ded['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2d1766),_0x4a0ded['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2d1766);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5d7163=this['editor'],_0xc87bab=_0x5d7163['model']['document']['selection'];return(_0x230e49,_0x2da7d5)=>{_0x5d7163['model']['change'](_0x5974e0=>{const {commandName:_0x31fbe8,commandParams:_0x3a5fc6}=_0x2da7d5;let _0x3ce1db=_0x230e49[0x0]['end']['nodeBefore'];_0x3a5fc6&&_0x3a5fc6[0x0]&&!0x1===_0x3a5fc6[0x0]['forceValue']&&(_0x3ce1db=_0x230e49[0x0]['start']['nodeAfter']);const _0x58f269=_0x5974e0['createRangeIn'](_0x3ce1db);if('$graveyard'==_0x58f269['root']['rootName'])return;const _0x3e4b8a=Array['from'](_0xc87bab['getRanges']())['map'](_0x538d04=>_0x190639['fromRange'](_0x538d04));_0x5974e0['setSelection'](_0x58f269),_0x5d7163['commands']['get'](_0x31fbe8)['refresh'](),_0x3a5fc6['push']({'forceDefaultExecution':!0x0}),_0x5d7163['execute'](_0x31fbe8,..._0x3a5fc6);const _0x3be2fb=_0x3e4b8a['filter'](_0x3ea1c1=>'$graveyard'!=_0x3ea1c1['root']['rootName']);_0x3be2fb['length']>0x0&&_0x5974e0['setSelection'](_0x3be2fb);for(const _0x27d36e of _0x3e4b8a)_0x27d36e['detach']();});};}['_getCoordsForCells'](_0x36b519){const _0x416bcd=this['editor']['plugins']['get']('TableUtils');let _0x66ec63=Number['MAX_SAFE_INTEGER'],_0x61595f=Number['MIN_SAFE_INTEGER'],_0x2aaee9=Number['MAX_SAFE_INTEGER'],_0x1e0763=Number['MIN_SAFE_INTEGER'];for(const _0x565467 of _0x36b519){if('$graveyard'==_0x565467['root']['rootName'])continue;const {row:_0x234f6e,column:_0x152b74}=_0x416bcd['getCellLocation'](_0x565467),_0x657c5d=_0x565467['hasAttribute']('rowspan')?_0x565467['getAttribute']('rowspan')-0x1:0x0,_0x5a26fb=_0x565467['hasAttribute']('colspan')?_0x565467['getAttribute']('colspan')-0x1:0x0;_0x66ec63=_0x234f6e<_0x66ec63?_0x234f6e:_0x66ec63,_0x61595f=_0x234f6e+_0x657c5d>_0x61595f?_0x234f6e+_0x657c5d:_0x61595f,_0x2aaee9=_0x152b74<_0x2aaee9?_0x152b74:_0x2aaee9,_0x1e0763=_0x152b74+_0x5a26fb>_0x1e0763?_0x152b74+_0x5a26fb:_0x1e0763;}return{'minRow':_0x66ec63,'maxRow':_0x61595f,'minColumn':_0x2aaee9,'maxColumn':_0x1e0763};}['_setupColumnsRowsFixing'](){const _0x4ef239=this['editor'],_0x3c34c5=_0x4ef239['plugins']['get']('TrackChangesEditing'),_0x31c359=_0x4ef239['plugins']['get']('TableUtils');_0x4ef239['model']['document']['on']('change:data',()=>{const _0x275fba=Array['from'](_0x4ef239['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c6842,data:_0x5670f6}of _0x275fba){const {group:_0x1a20f3,id:_0x4a8bb4,subType:_0x1717f2}=_0x3c34c5['_splitMarkerName'](_0x4c6842);if('suggestion'!=_0x1a20f3)continue;if(null!=_0x5670f6['oldRange'])continue;const _0x72812c=_0x3c34c5['getSuggestion'](_0x4a8bb4);this['_tablePostFixingSubtypes']['includes'](_0x1717f2)&&this['_tableSuggestions']['add'](_0x72812c);}},{'priority':'low'});const _0xfeb10b=(_0x4b8bf0,_0x49a52a)=>{let _0x4a58b2=!0x1;const _0x21854d=_0x49a52a['createRangeOn'](_0x4b8bf0),_0xedc46b=_0x4b8bf0['findAncestor']('table'),_0x5117a6=_0x31c359['getCellLocation'](_0x4b8bf0);for(const _0xec0ea1 of this['_tableSuggestions']){const _0x271c1c=_0xec0ea1['subType'],_0x3671e1=_0x271c1c['startsWith']('tablePaste'),_0x420849=_0x271c1c['substr'](_0x3671e1?0xa:0x5),_0x4990d2=_0x420849['toLowerCase'](),_0x32df1b=_0x4990d2['substr'](0x0,0x3)+'span',_0x49445c='min'+_0x420849,_0x11033a='max'+_0x420849;if(!_0xec0ea1['isInContent'])continue;if(_0xedc46b!=_0xec0ea1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xec0ea1['isIntersectingWithRange'](_0x21854d))continue;const _0x1045ee=_0x4b8bf0['hasAttribute'](_0x32df1b)?_0x4b8bf0['getAttribute'](_0x32df1b)-0x1:0x0,_0x5c8e21=this['_getSuggestionCoords'](_0xec0ea1),_0x24383e=_0x5c8e21[_0x49445c],_0x449d7d=_0x5c8e21[_0x11033a];_0x24383e<=_0x5117a6[_0x4990d2]&&_0x5117a6[_0x4990d2]+_0x1045ee<=_0x449d7d&&(_0xec0ea1['addRange'](_0x21854d),_0x4a58b2=!0x0);}return _0x4a58b2;};_0x4ef239['model']['document']['registerPostFixer'](_0xf8a87f=>{let _0x179cfa=!0x1;for(const _0x29ef01 of _0x4ef239['model']['document']['differ']['getChanges']())if('insert'==_0x29ef01['type']){if('tableRow'==_0x29ef01['name']){for(const _0x56818a of _0x29ef01['position']['nodeAfter']['getChildren']())_0x179cfa=_0x179cfa||_0xfeb10b(_0x56818a,_0xf8a87f);}else'tableCell'==_0x29ef01['name']&&(_0x179cfa=_0x179cfa||_0xfeb10b(_0x29ef01['position']['nodeAfter'],_0xf8a87f));}return _0x179cfa;});}['_getSuggestionCoords'](_0x409156){return this['_getCoordsForCells'](_0x409156['getRanges']()['map'](_0x5ea25a=>_0x5ea25a['start']['nodeAfter']));}}function Ne(_0x43b6c4){return Array['from'](new Set(_0x43b6c4)['values']());}class _t extends _0x5d6089{static get['requires'](){return[vt];}['afterInit'](){const _0x150d39=this['editor'],_0x3b0568=_0x150d39['model']['document']['selection'],_0x10d31b=_0x150d39['locale'];if(!_0x150d39['plugins']['has']('TableEditing'))return;const _0x32673c=_0x150d39['plugins']['get']('TrackChangesEditing'),_0x10db2d=_0x150d39['plugins']['get']('TableUtils'),_0x1f43e8=_0x150d39['plugins']['get'](vt);_0x1f43e8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x32673c['enableCommand']('mergeTableCells',()=>{const _0x5b2090=_0x10db2d['getSelectionAffectedTableCells'](_0x150d39['model']['document']['selection']);_0x150d39['model']['change'](()=>{_0x32673c['markMultiRangeBlockFormat'](_0x5b2090,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x150d39['commands']['get']('mergeTableCells')['on']('execute',(_0x59c98a,_0x55700f)=>{_0x150d39['commands']['get']('trackChanges')['value']&&(_0x55700f['length']>0x0&&_0x55700f[_0x55700f['length']-0x1]&&_0x55700f[_0x55700f['length']-0x1]['forceDefaultExecution']||_0x32673c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x59c98a['stop']());},{'priority':'highest'});for(const _0x4bbb78 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xe8ccd8=_0x150d39['commands']['get'](_0x4bbb78);_0x32673c['enableCommand'](_0x4bbb78,()=>{const _0x14de11=_0x150d39['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1b226c=>_0x1b226c['is']('element','tableCell')),_0x3f3d0e=_0xe8ccd8['value'];_0x150d39['model']['change'](()=>{_0x32673c['markMultiRangeBlockFormat']([_0x14de11,_0x3f3d0e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3a2ae5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2b2b86=_0x150d39['commands']['get'](_0x3a2ae5);_0x32673c['enableCommand'](_0x3a2ae5,()=>{const _0x67ade8=_0x10db2d['getSelectionAffectedTableCells'](_0x150d39['model']['document']['selection'])[0x0],_0x3fba86=_0x67ade8['findAncestor']('table'),{column:_0x19f34f,row:_0x2adc8b}=_0x10db2d['getCellLocation'](_0x67ade8);let _0x341435=[];if('horizontally'==_0x2b2b86['direction']){const _0x45271b=_0x10db2d['createTableWalker'](_0x3fba86,{'startRow':_0x2adc8b,'endRow':_0x2adc8b,'includeAllSlots':!0x0});_0x341435=Array['from'](_0x45271b)['map'](_0x2e9c26=>_0x2e9c26['cell']);}else{const _0x5a4d06=_0x10db2d['createTableWalker'](_0x3fba86,{'column':_0x19f34f,'includeAllSlots':!0x0});_0x341435=Array['from'](_0x5a4d06)['map'](_0x444a7f=>_0x444a7f['cell']);}_0x150d39['model']['change'](_0x568bb0=>{_0x32673c['markBlockFormat'](_0x568bb0['createRangeOn'](_0x67ade8),{'commandName':_0x3a2ae5,'commandParams':[]},_0x341435,_0x3a2ae5);});});}_0x32673c['descriptionFactory']['registerDescriptionCallback'](_0x276422=>{if('formatBlock'!=_0x276422['type']&&'formatInline'!=_0x276422['type'])return;const {data:_0x41fb17}=_0x276422;return _0x41fb17&&'mergeTableCells'==_0x41fb17['commandName']?{'type':'format','content':o(_0x10d31b,'*Merge\x20cells*')}:void 0x0;}),_0x32673c['descriptionFactory']['registerDescriptionCallback'](_0x30b00e=>{if('formatBlock'!=_0x30b00e['type']&&'formatInline'!=_0x30b00e['type'])return;const {data:_0x179244}=_0x30b00e;return _0x179244?'splitTableCellVertically'==_0x179244['commandName']?{'type':'format','content':o(_0x10d31b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x179244['commandName']?{'type':'format','content':o(_0x10d31b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5e4846=_0x1f43e8['_acceptFormatSuggestionCallbackFactory']();for(const _0x2242ed of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x32673c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2242ed,'accept',_0x5e4846);for(const _0x3bc93f of['splitTableCellVertically','splitTableCellHorizontally'])_0x32673c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3bc93f,'accept',_0x5e4846);_0x32673c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3a00b3=>{_0x150d39['model']['change'](_0x53a7ee=>{const _0x57c454=Array['from'](_0x3b0568['getRanges']())['map'](_0x558b8e=>_0x190639['fromRange'](_0x558b8e));_0x53a7ee['setSelection'](_0x3a00b3),_0x150d39['commands']['get']('mergeTableCells')['refresh'](),_0x150d39['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1c8a4a=_0x57c454['filter'](_0x18bac0=>'$graveyard'!=_0x18bac0['root']['rootName']);_0x1c8a4a['length']>0x0&&_0x53a7ee['setSelection'](_0x1c8a4a);for(const _0x444777 of _0x57c454)_0x444777['detach']();});});for(const _0x22144a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1b9c76=_0x150d39['commands']['get'](_0x22144a);_0x1b9c76['on']('set:isEnabled',(_0x4488e7,_0x36fd69,_0x128312)=>{if(_0x128312){const _0x615e2a=_0x150d39['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3b6499=>_0x3b6499['is']('element','tableCell'));this['_areMergableCells'](_0x1b9c76['value'],_0x615e2a)||(_0x4488e7['return']=!0x1,_0x4488e7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xe5f370=this['editor']['commands']['get']('mergeTableCells'),_0x40ae7a=this['editor']['plugins']['get']('TableUtils');if(!_0xe5f370['isEnabled'])return!0x1;const _0x52bffe=_0x40ae7a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3c5502 of _0x52bffe)for(const _0x2e2563 of _0x52bffe)if(_0x3c5502!=_0x2e2563&&!this['_areMergableCells'](_0x3c5502,_0x2e2563))return!0x1;return!0x0;}['_areMergableCells'](_0x5b400a,_0x21c9f4){const _0x136f93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x104e1c=this['editor']['model']['createRangeOn'](_0x5b400a),_0x404b17=this['editor']['model']['createRangeOn'](_0x21c9f4),_0x46de63=new Set(),_0x1cb1f6=new Set();for(const _0x306c9d of _0x136f93['getSuggestions']())if(('insertion'==_0x306c9d['type']||'deletion'==_0x306c9d['type']||'mergeTableCells'==_0x306c9d['subType'])&&_0x306c9d['isInContent']){for(const _0x142c4 of _0x306c9d['getRanges']())_0x142c4['containsRange'](_0x104e1c,!0x0)&&_0x46de63['add'](_0x306c9d['type']+':'+_0x306c9d['author']['id']),_0x142c4['containsRange'](_0x404b17,!0x0)&&_0x1cb1f6['add'](_0x306c9d['type']+':'+_0x306c9d['author']['id']);}if(_0x46de63['size']!=_0x1cb1f6['size'])return!0x1;for(const _0x385afd of _0x46de63)if(!_0x1cb1f6['has'](_0x385afd))return!0x1;return!0x0;}}class Ct extends _0x5d6089{static get['requires'](){return[vt];}['afterInit'](){const _0x4362b2=this['editor'];if(!_0x4362b2['plugins']['has']('TableEditing'))return;const _0x5cfdfa=_0x4362b2['locale'],_0x196759=_0x4362b2['plugins']['get']('TrackChangesEditing');_0x196759['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x196759['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x196759['registerBlockAttribute']('headingRows'),_0x196759['registerBlockAttribute']('headingColumns'),_0x196759['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5cfdfa,'FORMAT_HEADER_ROW')),_0x196759['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5cfdfa,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x193736=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5197b7=this['editor']['plugins']['get']('TableUtils'),_0x440d28=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x4efb18({showActiveMarker:_0x7ab3b4=!0x0,setDataAttribute:_0x11c932=!0x0}={}){return(_0x1212c1,_0x16aed8,_0x4cbb3c)=>{const {type:_0x19e10e,id:_0xb49496}=_0x193736['_splitMarkerName'](_0x16aed8['markerName']),_0x1b1ef2=_0x193736['getSuggestion'](_0xb49496),_0x24e4b4=_0x1b1ef2['data'];if('formatBlock'!=_0x1b1ef2['type']||!_0x24e4b4||'setTableColumnHeader'!=_0x24e4b4['commandName'])return;if(_0x16aed8['item'])return void _0x1212c1['stop']();if(!_0x4cbb3c['consumable']['consume'](_0x16aed8['markerRange'],_0x1212c1['name']))return;const _0x4ff5b2=_0x16aed8['markerRange']['start']['nodeAfter'],_0x348d1b=_0x16aed8['markerRange']['end']['nodeBefore'],_0xa7132b=_0x4ff5b2['parent']['parent'],{column:_0xd13bba}=_0x5197b7['getCellLocation'](_0x4ff5b2),{column:_0x58734c}=_0x5197b7['getCellLocation'](_0x348d1b);for(let _0x19b513=_0xd13bba;_0x19b513<=_0x58734c;_0x19b513++){const _0x1a6571=_0x5197b7['createTableWalker'](_0xa7132b,{'column':_0x19b513,'includeAllSlots':!0x1});for(const _0x288b03 of _0x1a6571){const _0x53feb1=_0x288b03['cell'],_0x16016d=_0x4cbb3c['mapper']['toViewElement'](_0x53feb1);_0x4cbb3c['writer']['addClass']('ck-suggestion-marker-'+_0x19e10e,_0x16016d),_0x11c932&&_0x4cbb3c['writer']['setAttribute']('data-suggestion',_0xb49496,_0x16016d),_0x4cbb3c['mapper']['bindElementToMarker'](_0x16016d,_0x16aed8['markerName']),_0x7ab3b4&&(_0x193736['activeMarkers']['includes'](_0x16aed8['markerName'])?_0x4cbb3c['writer']['addClass']('ck-suggestion-marker--active',_0x16016d):_0x4cbb3c['writer']['removeClass']('ck-suggestion-marker--active',_0x16016d));}}};}_0x193736['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x440d28),_0x193736['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x440d28),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4efb18(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b0490,_0x3ec8bf,_0x4c7d4c)=>{_0x4c7d4c['options']['showSuggestionHighlights']&&_0x4efb18({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4b0490,_0x3ec8bf,_0x4c7d4c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x47ff31,_0x42e7b9,_0x343c4b)=>{const {type:_0x2c1470,id:_0x54ad27}=_0x193736['_splitMarkerName'](_0x42e7b9['markerName']),_0x77769b=_0x193736['getSuggestion'](_0x54ad27),_0x21a095=_0x77769b['data'];if('formatBlock'!=_0x77769b['type']||!_0x21a095||'setTableColumnHeader'!=_0x21a095['commandName'])return;const _0x220f38=_0x343c4b['mapper']['markerNameToElements'](_0x42e7b9['markerName']);if(_0x220f38){for(const _0x2b9f71 of _0x220f38)_0x343c4b['writer']['removeClass']('ck-suggestion-marker-'+_0x2c1470,_0x2b9f71),_0x343c4b['writer']['removeClass']('ck-suggestion-marker--active',_0x2b9f71),_0x343c4b['writer']['removeAttribute']('data-suggestion',_0x2b9f71),_0x343c4b['mapper']['unbindElementFromMarkerName'](_0x2b9f71,_0x42e7b9['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c9fbc=this['editor'],_0x581415=_0x3c9fbc['locale'];function _0x9528df(_0x599d52){return{'type':'format','content':o(_0x581415,'*Format:*\x20%0',_0x599d52)};}_0x3c9fbc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8056=>{if('formatBlock'!=_0x8056['type'])return;const {data:_0x1b8bae}=_0x8056;if(_0x1b8bae){if('setTableRowHeader'==_0x1b8bae['commandName']){const _0x3008c0=_0x1b8bae['commandParams'][0x0]['forceValue'];return _0x9528df(o(_0x581415,_0x3008c0?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1b8bae['commandName']){const _0xaa5fa1=_0x1b8bae['commandParams'][0x0]['forceValue'];return _0x9528df(o(_0x581415,_0xaa5fa1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x497bd7=>[_0x497bd7,null]));class Nt extends _0x5d6089{static get['requires'](){return[vt];}['afterInit'](){const _0xb0b084=this['editor'];if(!_0xb0b084['plugins']['has']('TableClipboard'))return;const _0x3782a2=_0xb0b084['plugins']['get']('TrackChangesEditing'),_0x1aebee=_0xb0b084['plugins']['get']('TableUtils'),_0x1b39a6=_0xb0b084['plugins']['get'](vt),_0x5036e3=_0xb0b084['plugins']['get']('TableClipboard');_0x1b39a6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xb0b084['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xb0b084['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1a781f=null;_0xb0b084['model']['on']('insertContent',(_0x10a6c7,_0x3d31d0)=>{const [_0x5bc2d1,_0x5e92c3]=_0x3d31d0,_0x40830b=_0x3d31d0[_0x3d31d0['length']-0x1];_0x40830b&&_0x40830b['forceDefaultExecution']||_0x3782a2['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2aa9d8,_0x2ff000,_0x3ec9ee,_0x539231,_0x36554c){if(_0x2ff000&&!_0x2ff000['is']('documentSelection'))return!0x1;const _0xe365f9=_0x36554c['getTableIfOnlyTableInContent'](_0x2aa9d8,_0x3ec9ee);if(!_0xe365f9||!Ue(_0xe365f9,void 0x0,_0x539231))return!0x1;const _0x2d5928=_0x539231['getSelectionAffectedTableCells'](_0x3ec9ee['document']['selection']);if(!_0x2d5928['length'])return!0x1;const _0x4d62b6=_0x2d5928[0x0]['findAncestor']('table'),_0x1699f0=_0x539231['getRowIndexes'](_0x2d5928),_0x290573=_0x539231['getColumnIndexes'](_0x2d5928),_0x578a8f={'startRow':_0x1699f0['first'],'endRow':_0x1699f0['last'],'startColumn':_0x290573['first'],'endColumn':_0x290573['last']};return 0x1==_0x2d5928['length']&&(_0x578a8f['endRow']+=_0x539231['getRows'](_0xe365f9)-0x1,_0x578a8f['endColumn']+=_0x539231['getColumns'](_0xe365f9)-0x1),Ue(_0x4d62b6,_0x578a8f,_0x539231);}(_0x5bc2d1,_0x5e92c3,_0xb0b084['model'],_0x1aebee,_0x5036e3)&&(_0x10a6c7['stop'](),_0x1a781f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xb0b084['model']['change'](()=>{_0xb0b084['model']['insertContent'](_0x3d31d0[0x0],_0x3d31d0[0x1],_0x3d31d0[0x2],{'forceDefaultExecution':!0x0});const _0x26507d=_0x3e98cb(),{rowInsertionRanges:_0x273322,columnInsertionRanges:_0x281297,insertionRanges:_0x32e718,deletionRanges:_0x39fcba,cells:_0xe2a6c4}=_0x1a781f;_0x273322['length']&&_0x3782a2['markMultiRangeInsertion'](_0x273322,'tablePasteRow',{'tablePasteChainId':_0x26507d}),_0x281297['length']&&_0x3782a2['markMultiRangeInsertion'](_0x281297,'tablePasteColumn',{'tablePasteChainId':_0x26507d}),_0x32e718['length']&&(_0x3782a2['markMultiRangeInsertion'](_0x32e718,'tablePaste',{'tablePasteChainId':_0x26507d,'skipNestingCheck':!0x0}),_0x32e718['forEach'](_0x5f4442=>_0x5f4442['detach']?.())),_0x39fcba['length']&&(_0x3782a2['markMultiRangeDeletion'](_0x39fcba,'tablePaste',{'tablePasteChainId':_0x26507d,'skipNestingCheck':!0x0}),_0x39fcba['forEach'](_0x5d538a=>_0x5d538a['detach']?.()));const _0x52abd9=_0x3782a2['markMultiRangeBlockFormat'](_0xe2a6c4['map'](({element:_0x1f110d})=>_0x1f110d),{'formatGroupId':_0x3e98cb()},[],'tablePasteCell',{'tablePasteChainId':_0x26507d});if(_0x52abd9){const _0x5f1d2d=_0x52abd9['getMarkers'](),_0x2b5b6f=[];for(const {element:_0x3c185c,attributes:_0x2b131b}of _0xe2a6c4){if(!_0x2b131b)continue;const _0x11b3ca=_0xb0b084['model']['createRangeOn'](_0x3c185c),_0xc873dd=_0x5f1d2d['find'](_0x52203d=>_0x52203d['getRange']()['isEqual'](_0x11b3ca));_0xc873dd&&_0x2b5b6f['push']([_0xc873dd['name'],_0x2b131b]);}_0x2b5b6f['length']&&_0x52abd9['setAttribute']('markerAttributes',Object['fromEntries'](_0x2b5b6f));}_0x1a781f=null;}));},{'priority':_0xa7b267['high']+0xa}),_0xb0b084['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x37583b,_0x46cd6c)=>{const [_0x2637c4,_0x3f54e5,,_0x1c1ba3]=_0x46cd6c;if(!_0x1a781f)return;_0x37583b['stop']();const _0x59ead3=_0x2637c4['cell'],_0x1b7eed=_0x3f54e5,_0x243424=Oe(_0x59ead3),_0xcd5663=Oe(_0x1b7eed);_0x37583b['return']=_0x59ead3;let _0x12ac8c=null,_0xd47974=null;if(_0xcd5663||_0x243424){if(_0x243424&&!_0xcd5663){_0x1c1ba3['remove'](_0x59ead3['getChild'](0x0));for(const _0x4b866b of Array['from'](_0x1b7eed['getChildren']()))_0x1c1ba3['insert'](_0x4b866b,_0x59ead3,'end');const _0x5a308b=_0x1a781f['rowInsertionIndexes']['includes'](_0x2637c4['row']),_0x28f5c5=_0x1a781f['columnInsertionIndexes']['includes'](_0x2637c4['column']);_0x5a308b||_0x28f5c5||(_0x12ac8c=_0x190639['fromRange'](_0x1c1ba3['createRangeIn'](_0x59ead3)));}else _0xcd5663&&!_0x243424&&(_0xd47974=_0x1c1ba3['createRangeIn'](_0x59ead3));}else{const _0x2dd16a=_0x1c1ba3['createElement']('tableCellSuggestion'),_0x88f6c5=_0x1c1ba3['createElement']('tableCellSuggestion');_0x1c1ba3['wrap'](_0x1c1ba3['createRangeIn'](_0x59ead3),_0x88f6c5),_0x1c1ba3['insert'](_0x2dd16a,_0x59ead3,0x0);for(const _0x190dd8 of Array['from'](_0x1b7eed['getChildren']()))_0x1c1ba3['insert'](_0x190dd8,_0x2dd16a,'end');_0x12ac8c=_0x190639['fromRange'](_0x1c1ba3['createRangeOn'](_0x2dd16a)),_0xd47974=_0x190639['fromRange'](_0x1c1ba3['createRangeOn'](_0x88f6c5));}const _0x391244=Array['from'](_0x1b7eed['getAttributes']())['filter'](([_0x5aaa3c])=>Be['includes'](_0x5aaa3c));_0x1a781f['cells']['push']({'element':_0x59ead3,'attributes':_0x391244['length']?Object['fromEntries'](_0x391244):null}),_0x12ac8c&&_0x1a781f['insertionRanges']['push'](_0x12ac8c),_0xd47974&&_0x1a781f['deletionRanges']['push'](_0xd47974);},{'priority':'high'}),_0x1aebee['on']('insertColumns',(_0x7e8a49,_0x2fda97)=>{const [_0x4d5c42,_0x5ca077={}]=_0x2fda97;if(!_0x1a781f)return;const _0x22dafc=_0x5ca077['at']||0x0,_0x478c28=_0x5ca077['columns']||0x1;_0x1a781f['columnInsertionIndexes']=new Array(_0x478c28)['fill'](_0x22dafc)['map']((_0x21fa01,_0xd1bef0)=>_0x21fa01+_0xd1bef0);for(const {cell:_0x285102}of _0x1aebee['createTableWalker'](_0x4d5c42,{'startColumn':_0x22dafc,'endColumn':_0x22dafc+_0x478c28-0x1}))_0x1a781f['columnInsertionRanges']['push'](_0xb0b084['model']['createRangeOn'](_0x285102));},{'priority':'low'}),_0x1aebee['on']('insertRows',(_0x5b30ec,_0x4806d2)=>{const [_0x1c24df,_0x122cee={}]=_0x4806d2;if(!_0x1a781f)return;const _0x8c0122=_0x122cee['at']||0x0,_0x2acf46=_0x122cee['rows']||0x1;_0x1a781f['rowInsertionIndexes']=new Array(_0x2acf46)['fill'](_0x8c0122)['map']((_0x5c154d,_0x430b3c)=>_0x5c154d+_0x430b3c);for(const {cell:_0x5d262a}of _0x1aebee['createTableWalker'](_0x1c24df,{'startRow':_0x8c0122,'endRow':_0x8c0122+_0x2acf46-0x1}))_0x1a781f['rowInsertionRanges']['push'](_0xb0b084['model']['createRangeOn'](_0x5d262a));},{'priority':'low'}),_0x3782a2['descriptionFactory']['registerDescriptionCallback'](_0x3157e4=>{if(_0x3157e4['subType']&&_0x3157e4['subType']['startsWith']('tablePaste'))return _0x3157e4['previous']?{}:{'type':'insertion','content':o(_0xb0b084['locale'],'*Replace\x20table\x20cells*')};});const _0x2c9529=()=>!0x1;for(const _0x50b1d8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3782a2['_suggestionFactory']['registerCustomCallback']('insertion',_0x50b1d8,'join',_0x2c9529),_0x3782a2['_suggestionFactory']['registerCustomCallback']('deletion',_0x50b1d8,'join',_0x2c9529),_0x3782a2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x50b1d8,'join',_0x2c9529);_0x3782a2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2c9529),_0x3782a2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1f9c2d,_0x2609ea,_0x5bf3ad)=>{const _0x516c8b=_0x1f9c2d['map'](_0x157fac=>_0x157fac['getContainedElement']())['filter'](_0x3a16ae=>_0x3a16ae),_0x5b554b=new Map(_0x516c8b['map'](_0x522df4=>[_0x522df4,null]));if(_0x1a781f){for(const {element:_0x366288,attributes:_0x43b017}of _0x1a781f['cells'])_0x43b017&&_0x5b554b['set'](_0x366288,_0x43b017);}else{if(_0x5bf3ad&&_0x5bf3ad['markerAttributes'])for(const [_0x5589b4,_0x43d563]of Object['entries'](_0x5bf3ad['markerAttributes'])){const _0x5acdb7=_0xb0b084['model']['markers']['get'](_0x5589b4),_0x39f1cd=_0x5acdb7?_0x5acdb7['getRange']()['getContainedElement']():null;_0x39f1cd&&_0x5b554b['set'](_0x39f1cd,_0x43d563);}}_0xb0b084['model']['change'](_0x261e9c=>{for(const [_0x107169,_0xa1e619]of _0x5b554b)_0x261e9c['setAttributes']({...xe,..._0xa1e619},_0x107169);});});const _0x1b9bb5=(_0x503167,_0x264a50)=>{_0x3782a2['_suggestionFactory']['registerCustomCallback'](_0x503167,'tablePaste',_0x264a50,(_0x5a7f87,_0x293730,_0x5076be)=>{_0xb0b084['model']['change'](_0x2185cf=>{const _0x407cee=[];for(const _0x1b5288 of _0x5a7f87){const _0xfc92e3=_0x1b5288['start']['nodeAfter'];_0xfc92e3['is']('element','tableCellSuggestion')&&_0x407cee['push'](_0xfc92e3);}_0x3782a2['_suggestionFactory']['getSuggestionCallback'](_0x503167,null,_0x264a50)(_0x5a7f87,_0x293730,_0x5076be);for(const _0x47617a of _0x407cee)'$graveyard'!=_0x47617a['root']['rootName']&&_0x2185cf['unwrap'](_0x47617a);});});};_0x1b9bb5('insertion','accept'),_0x1b9bb5('insertion','discard'),_0x1b9bb5('deletion','accept'),_0x1b9bb5('deletion','discard'),_0x3782a2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x241119=>{const _0x2c0131=_0x241119['map'](_0xde9cf7=>_0xde9cf7['getContainedElement']()),_0x5284f8=_0x2c0131[0x0]['findAncestor']('table'),{minRow:_0x6c80ad,maxRow:_0x2bb03f}=_0x1b39a6['_getCoordsForCells'](_0x2c0131);_0x1aebee['removeRows'](_0x5284f8,{'at':_0x6c80ad,'rows':_0x2bb03f-_0x6c80ad+0x1});}),_0x3782a2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1b18a4=>{const _0x3a57a0=_0x1b18a4['map'](_0x4fb4b9=>_0x4fb4b9['getContainedElement']()),_0x55ed6b=_0x3a57a0[0x0]['findAncestor']('table'),{minColumn:_0x59fc79,maxColumn:_0x1189af}=_0x1b39a6['_getCoordsForCells'](_0x3a57a0);_0x1aebee['removeColumns'](_0x55ed6b,{'at':_0x59fc79,'columns':_0x1189af-_0x59fc79+0x1});});const _0x108e27=(_0x112d3c,_0xa0c79d)=>{if(!_0xa0c79d['subType']||!_0xa0c79d['subType']['startsWith']('tablePaste'))return;const _0x5081fe=_0xa0c79d['attributes']['tablePasteChainId'],_0x496680=_0x3782a2['getSuggestions']()['filter'](_0x2edba7=>_0x2edba7['isInContent']&&_0x2edba7['attributes']&&_0x2edba7['attributes']['tablePasteChainId']==_0x5081fe);_0x496680['length']&&_0xa0c79d['getAllAdjacentSuggestions']()['length']!=_0x496680['length']&&_0x496680['reduce']((_0x557e2b,_0x576620)=>(_0x557e2b['next']=_0x576620,_0x576620['previous']=_0x557e2b,_0x576620));};function _0x4e25ec(_0x28bbd4,_0x41eea0=!0x0){const {id:_0x3746db,authorId:_0x11417c}=_0x3782a2['_splitMarkerName'](_0x28bbd4['markerName']),_0x61dfae=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1343f2=_0x3782a2['activeMarkers']['includes'](_0x28bbd4['markerName']);return _0x1343f2&&_0x61dfae['push']('ck-suggestion-marker--active'),{'classes':_0x61dfae,'attributes':{'data-suggestion':_0x3746db,'data-author-id':_0x11417c},'priority':_0x1343f2&&_0x41eea0?0xbc2:0xbb8};}_0x3782a2['on']('suggestionLoaded',_0x108e27,{'priority':'high'}),_0x3782a2['on']('suggestionUnloaded',_0x108e27,{'priority':'high'}),_0xb0b084['model']['document']['registerPostFixer'](()=>{let _0x5f1ed4=!0x1;const _0x35316c=Array['from'](_0xb0b084['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8de331,data:_0x5f416f}of _0x35316c){const {group:_0x44d1c0,type:_0x2f7200,id:_0x3b5460}=_0x3782a2['_splitMarkerName'](_0x8de331);if('suggestion'!=_0x44d1c0||'deletion'!=_0x2f7200||_0x5f416f['oldRange'])continue;if(!_0x3782a2['hasSuggestion'](_0x3b5460))continue;const _0x12bcb1=_0x3782a2['getSuggestion'](_0x3b5460)['getRanges'](),_0x36855b=_0xb0b084['plugins']['get']('Users')['me'];for(const _0x2350fa of _0x3782a2['getSuggestions']()){if(!_0x2350fa['isInContent']||_0x2350fa['author']!=_0x36855b)continue;if('formatBlock'!=_0x2350fa['type']||'tablePasteCell'!=_0x2350fa['subType'])continue;if(_0x2350fa['getRanges']()['every'](_0x3f92a7=>_0x12bcb1['some'](_0x4bb5d0=>_0x4bb5d0['containsRange'](_0x3f92a7,!0x0)))){for(const _0xfab4ce of _0x2350fa['getAllAdjacentSuggestions']())_0xfab4ce['isInContent']&&(_0xfab4ce['discard'](),_0x5f1ed4=!0x0);}}}return _0x5f1ed4;}),_0xb0b084['model']['document']['registerPostFixer'](_0xc91bf8=>{const _0x52a263=_0xb0b084['commands']['get']('redo');if(!_0x52a263||!_0x52a263['_createdBatches']['has'](_0xc91bf8['batch']))return!0x1;let _0x2c6199=!0x1;const _0x5aab0a=_0xb0b084['plugins']['get']('Users')['me'],_0x5ba2ae=_0xb0b084['model']['document']['differ']['getChanges'](),_0x5854cd=Array['from'](_0xb0b084['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x12edce,data:_0x1972d6})=>{const {group:_0x233930,subType:_0xe4e950,authorId:_0x9abb4c}=_0x3782a2['_splitMarkerName'](_0x12edce);return'suggestion'==_0x233930&&'tablePaste'==_0xe4e950&&_0x9abb4c==_0x5aab0a['id']&&!_0x1972d6['oldRange'];});for(const _0x53483d of _0x5ba2ae){if('insert'!=_0x53483d['type']||'tableCellSuggestion'!=_0x53483d['name']||0x1!=_0x53483d['length'])continue;const _0x204278=_0xc91bf8['createRange'](_0x53483d['position'],_0x53483d['position']['getShiftedBy'](0x1));if(!_0x5854cd['find'](({data:_0x2f8461})=>_0x2f8461['newRange']['isEqual'](_0x204278))){for(const {name:_0x51af8d,data:_0x305f07}of _0x5854cd)if(_0x204278['containsRange'](_0x305f07['newRange'])){_0xc91bf8['updateMarker'](_0x51af8d,{'range':_0x204278}),_0x2c6199=!0x0;break;}}}return _0x2c6199;}),_0xb0b084['model']['document']['registerPostFixer'](_0x2358f6=>{let _0x16bf09=!0x1;const _0xafd8c9=_0xb0b084['plugins']['get']('Users')['me'],_0x2420df=_0x3782a2['getSuggestions']()['filter'](_0x2d6303=>_0x2d6303['isInContent']&&_0x2d6303['author']==_0xafd8c9),_0x360703=new Set(),_0x426b52=new Set();for(const _0x3a9690 of _0x2420df)if('tablePaste'==_0x3a9690['subType'])for(const _0x9a1c3 of _0x3a9690['getMarkers']()){const _0x985554=_0x9a1c3['getRange']()['getContainedElement']();if(_0x985554){if(_0x985554['is']('element','tableCellSuggestion')&&Oe(_0x985554)){_0x3a9690['removeMarker'](_0x9a1c3['name']),_0x360703['add'](_0x985554),_0x16bf09=!0x0;const _0x5d7ff8=_0x985554['nextSibling'],_0x33e6ef=_0x985554['previousSibling'],_0x59b14e=_0x5d7ff8&&_0x5d7ff8['is']('element','tableCellSuggestion'),_0x321406=_0x33e6ef&&_0x33e6ef['is']('element','tableCellSuggestion');_0x59b14e&&!_0x360703['has'](_0x5d7ff8)&&_0x426b52['add'](_0x5d7ff8),_0x321406&&!_0x360703['has'](_0x33e6ef)&&_0x426b52['add'](_0x33e6ef);}else _0x985554['is']('element','paragraph')&&_0x985554['isEmpty']&&(_0x3a9690['removeMarker'](_0x9a1c3['name']),_0x16bf09=!0x0);}}else{if('tablePasteCell'==_0x3a9690['subType']){if(!_0x3a9690['attributes']||!_0x3a9690['attributes']['tablePasteChainId'])continue;const _0x32111d=_0x3a9690['attributes']['markerAttributes'];if(_0x32111d&&Object['keys'](_0x32111d)['length'])continue;const _0x9f18e7=_0x3a9690['attributes']['tablePasteChainId'];let _0x167309=!0x0,_0x3ca5f3=!0x0;for(const _0xcc7a96 of _0x2420df)if(_0xcc7a96['subType']&&_0xcc7a96['subType']['startsWith']('tablePaste')){if(!_0xcc7a96['attributes']['tablePasteChainId']){_0x3ca5f3=!0x1;break;}if(_0xcc7a96['id']!=_0x3a9690['id']&&_0xcc7a96['attributes']['tablePasteChainId']==_0x9f18e7){_0x167309=!0x1;break;}}_0x3ca5f3&&_0x167309&&(_0x3a9690['removeMarkers'](),_0x16bf09=!0x0);}}for(const _0x147021 of _0x360703)_0x2358f6['remove'](_0x147021);for(const _0x137277 of _0x426b52)_0x2358f6['unwrap'](_0x137277);return _0x16bf09;}),_0xb0b084['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x57bb83=>_0x4e25ec(_0x57bb83),'converterPriority':'high'}),_0xb0b084['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x44a1f4,_0x433c33)=>_0x433c33['options']['showSuggestionHighlights']?_0x4e25ec(_0x44a1f4,!0x1):null,'converterPriority':'high'});const _0x10461f=_0xb0b084['editing']['view'];this['listenTo'](_0x10461f['document'],'clipboardOutput',(_0x217ae0,_0xa84c01)=>{const _0x301854=[];for(const _0x2a880d of _0x10461f['createRangeIn'](_0xa84c01['content'])['getItems']())_0x2a880d['is']('element','suggestion-td')&&_0x301854['push'](_0x2a880d);_0x10461f['change'](_0x561a2e=>{for(const _0x1e235e of _0x301854)_0x561a2e['move'](_0x561a2e['createRangeIn'](_0x1e235e),_0x561a2e['createPositionBefore'](_0x1e235e)),_0x561a2e['remove'](_0x1e235e);});});}}function Oe(_0x35973b){if(_0x35973b['isEmpty'])return!0x0;const _0x21ee8a=_0x35973b['getChild'](0x0);return _0x21ee8a['is']('element','paragraph')&&_0x21ee8a['isEmpty'];}function Ue(_0x176937,_0x689b56={},_0x56db32){for(const {isAnchor:_0xc57e1a,cellHeight:_0x5d8373,cellWidth:_0x2a03f9}of _0x56db32['createTableWalker'](_0x176937,{'includeAllSlots':!0x0,..._0x689b56}))if(!_0xc57e1a||0x1!=_0x5d8373||0x1!=_0x2a03f9)return!0x1;return!0x0;}class Dt extends _0x5d6089{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5062e6=this['editor']['plugins']['get']('TrackChangesEditing');_0x5062e6['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5062e6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5062e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5062e6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5062e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5062e6['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2fe51c,_0x3846a8){const _0x4e4822=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5daf94=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3b5146=_0x3846a8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x329547=_0x5daf94['getColumnGroupElement'](_0x3b5146);let _0x335567=_0x329547?_0x5daf94['getTableColumnsWidths'](_0x329547):null,_0x389d81=_0x3b5146['getAttribute']('tableWidth')||null;const _0xf6c9c3=_0x3846a8['tableWidth']||_0x389d81,_0x2b288a=_0x3846a8['columnWidths']||_0x335567,_0x22e9df=this['editor']['plugins']['get']('Users')['me'];for(const _0x4bb18a of _0x4e4822['getSuggestions']()){const _0x40b588=_0x4bb18a['getContainedElement']();if('resizeTable'===_0x4bb18a['subType']&&_0x40b588===_0x3b5146){_0x4bb18a['author']!==_0x22e9df&&_0x4bb18a['discard']();const _0x44a043=_0x4bb18a['data']['commandParams'];_0x389d81=_0x44a043[0x0]['tableWidth'],_0x335567=_0x44a043[0x0]['columnWidths'];break;}}_0x2fe51c({'table':_0x3b5146,'tableWidth':_0xf6c9c3,'columnWidths':_0x2b288a}),_0x4e4822['markBlockFormat'](_0x3b5146,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x389d81,'columnWidths':_0x335567}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5c6426){if('formatBlock'!=_0x5c6426['type']&&'formatInline'!=_0x5c6426['type'])return;const {data:_0x444390}=_0x5c6426;if(_0x444390&&'resizeTable'===_0x444390['formatGroupId']){const _0x2a04b5='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2a04b5)};}}}class Mt extends _0x5d6089{['afterInit'](){const _0x23fccf=this['editor'];_0x23fccf['plugins']['has']('Template')&&_0x23fccf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x5d6089{['afterInit'](){const _0x358c1f=this['editor'];if(!_0x358c1f['commands']['get']('insertTableOfContents'))return;_0x358c1f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x11b579=_0x358c1f['plugins']['get']('TrackChangesEditing'),_0x2b33c3=_0x358c1f['locale'];_0x11b579['descriptionFactory']['registerElementLabel']('tableOfContents',_0x18f0bf=>o(_0x2b33c3,'ELEMENT_TABLE_OF_CONTENTS',_0x18f0bf));}}class Bt extends _0x5d6089{['afterInit'](){const _0x420394=this['editor'];if(!_0x420394['plugins']['has']('Title'))return;const _0x16eba4=_0x420394['plugins']['get']('TrackChangesEditing');_0x16eba4['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x420394['locale'],'ELEMENT_TITLE')),_0x420394['model']['document']['registerPostFixer'](_0x143633=>{let _0x54c1fd=!0x1;const _0x59c9a3=Array['from'](_0x420394['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30a60a,data:_0x311c4a}of _0x59c9a3){const {group:_0x76f97d}=_0x16eba4['_splitMarkerName'](_0x30a60a);if('suggestion'!==_0x76f97d||!_0x311c4a['newRange'])continue;const _0x41c1ef=_0x311c4a['newRange'],_0x2f460b=_0x41c1ef['end']['nodeBefore'];if(!_0x2f460b||!_0x2f460b['is']('element','title-content'))continue;if(!_0x41c1ef['start']['isTouching'](_0x41c1ef['end']))continue;const _0x2205c7=_0x420394['model']['schema']['getNearestSelectionRange'](_0x41c1ef['end'],'forward');if(_0x2205c7&&_0x2205c7['isCollapsed']){const _0x54d688=_0x143633['createRange'](_0x41c1ef['start'],_0x2205c7['start']);_0x54d688['isEqual'](_0x41c1ef)||(_0x143633['updateMarker'](_0x30a60a,{'range':_0x54d688}),_0x54c1fd=!0x0);}_0x54c1fd||(_0x143633['removeMarker'](_0x30a60a),_0x54c1fd=!0x0);}return _0x54c1fd;});}}class Ot extends _0x5d6089{['afterInit'](){const _0x494c09=this['editor'],_0x373895=_0x494c09['plugins']['get']('TrackChangesEditing');_0x494c09['plugins']['has']('Uploadcare')&&(_0x373895['enableCommand']('uploadcare'),_0x494c09['plugins']['has']('UploadcareImageEdit')&&(_0x373895['enableCommand']('uploadcareImageEdit'),_0x373895['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x373895['registerBlockAttribute']('uploadcareImageId'),_0x373895['descriptionFactory']['registerDescriptionCallback'](_0x2acc7b=>{if('attribute'!=_0x2acc7b['type'])return;const {data:_0x1a43c8}=_0x2acc7b;return _0x1a43c8&&'uploadcareImageId'==_0x1a43c8['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x5d6089{['afterInit'](){const _0x41daa8=this['editor'],_0x5f1dd2=_0x41daa8['plugins']['get']('TrackChangesEditing');_0x41daa8['plugins']['has']('UndoEditing')&&(_0x5f1dd2['enableCommand']('undo'),_0x5f1dd2['enableCommand']('redo'));}}class Tt extends _0x5d6089{static get['requires'](){return[vt];}['afterInit'](){const _0x545db2=this['editor'];if(!_0x545db2['plugins']['has']('TableCaptionEditing'))return;_0x545db2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x5d6089{['tableProperties'];['tableCellProperties'];constructor(_0x3f521d){super(_0x3f521d),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 _0x145ac4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2c9fc6 of this['tableProperties'])_0x145ac4['enableCommand'](_0x2c9fc6,(_0x404541,_0x5e96d6)=>{const _0x43974d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2c9fc6,[_0x43974d],this['tableProperties'],'tableProperties',_0x404541,_0x5e96d6);});_0x145ac4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x145ac4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x145ac4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x45bc50,_0x36c3b4)=>this['handleDiscardAction'](this['tableProperties'],_0x45bc50,_0x36c3b4)),_0x145ac4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x453017 of this['tableCellProperties'])_0x145ac4['enableCommand'](_0x453017,(_0x12ea5c,_0x4e40b4)=>{const _0x40cc3f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x453017,_0x40cc3f,this['tableCellProperties'],'tableCellProperties',_0x12ea5c,_0x4e40b4);});_0x145ac4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x145ac4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x145ac4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x596848,_0x7084f2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x596848,_0x7084f2)),_0x145ac4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x145ac4['descriptionFactory']['registerDescriptionCallback'](_0x425cb1=>this['handleSuggestionDescription'](_0x425cb1));}['_handlePropertyChange'](_0x25ef7b,_0x395369,_0x451cc7,_0x4cfca9,_0xf6e3a7,_0xbfb52a){const _0x363134=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xbfb52a['batch'],()=>{for(const _0x35ac03 of _0x395369){if(this['_getSuggestion'](_0x35ac03,_0x4cfca9))_0xf6e3a7(_0xbfb52a);else{const _0x621108={};for(const _0x5d5721 of _0x451cc7){const _0x5801d4=_0x35ac03['getAttribute'](_0x5d5721);void 0x0!==_0x5801d4&&(_0x621108[_0x5d5721]=_0x5801d4);}_0xf6e3a7(_0xbfb52a),_0x363134['markBlockFormat'](_0x35ac03,{'commandParams':[_0x621108]},[],_0x4cfca9);}}});}['handleDiscardAction'](_0x214625,_0x26e32e,_0x138f57){const _0x37c019=_0x26e32e[0x0]['start']['nodeAfter'],_0x3f3cd1=_0x138f57['commandParams'][0x0];this['editor']['model']['change'](_0x583646=>{for(const _0x330730 of _0x214625)void 0x0!==_0x3f3cd1[_0x330730]?_0x583646['setAttribute'](_0x330730,_0x3f3cd1[_0x330730],_0x37c019):_0x583646['removeAttribute'](_0x330730,_0x37c019);});}['handleSuggestionDescription'](_0x17b3cd){if(_0x17b3cd['data'])switch(_0x17b3cd['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'](_0x523012,_0x506fef){const _0x235c97=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x342bbd of _0x235c97['getSuggestions']({'skipNotAttached':!0x0})){const _0x1eb4a2=_0x342bbd['getContainedElement']();if(_0x342bbd['subType']===_0x506fef&&_0x1eb4a2===_0x523012)return _0x342bbd;}return null;}}const m='$elementName';class p extends _0x5d6089{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xb5d06b,_0x51645a,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3cc163){super(_0x3cc163),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x245d66,_0x274c6f,_0x6878d4,_0x1307ff)=>{this['_model']['change'](()=>{for(const _0x2e432e of[..._0x1307ff,..._0x6878d4])this['_model']['markers']['has'](_0x2e432e)&&_0x3cc163['editing']['reconvertMarker'](_0x2e432e);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3cc163['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(),_0x3cc163['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3cc163['config']['get']('trackChanges.trackFormatChanges'),_0x3cc163['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3cc163['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3cc163,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4ed674=this['editor'],_0x1e4345=(_0x182d68,_0x2094bc)=>{if('attribute'!=_0x182d68)return'ck-suggestion-marker-'+_0x182d68;const _0x577803=_0x2094bc['split']('|')[0x0];return this['_isBlockAttribute'](_0x577803)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4ed674['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x543c7d=>{const {id:_0x235e3b,authorId:_0x3d1749,type:_0x308aa6,subType:_0x20b832}=this['_splitMarkerName'](_0x543c7d['markerName']),_0x53abfe=['ck-suggestion-marker',_0x1e4345(_0x308aa6,_0x20b832)];let _0x4d100d=0xbb8;return this['activeMarkers']['includes'](_0x543c7d['markerName'])&&(_0x53abfe['push']('ck-suggestion-marker--active'),_0x4d100d=0xbc2),'deletion'==_0x308aa6&&(_0x4d100d+=0x5),{'classes':_0x53abfe,'attributes':{'data-suggestion':_0x235e3b,'data-author-id':_0x3d1749},'priority':_0x4d100d};}}),_0x4ed674['conversion']['for']('dataDowncast')['add'](_0x46aa8a=>{_0x46aa8a['on']('addMarker:suggestion',(_0x1f28c2,_0x17de6b,_0x5c4bdd)=>{if(!_0x5c4bdd['options']['showSuggestionHighlights'])return;const _0x4b8c61=_0x17de6b['item'];if(!_0x4b8c61)return;const _0x27f5c7=_0x5c4bdd['mapper']['toViewElement'](_0x4b8c61);_0x4ed674['model']['schema']['isObject'](_0x4b8c61)&&_0x27f5c7&&!_0x27f5c7['getCustomProperty']('widget')&&_0x27f5c7['is']('containerElement')&&_0x464eed(_0x27f5c7,_0x5c4bdd['writer']);},{'priority':'high'});}),_0x4ed674['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xcb5b32,_0x568c30)=>{if(!_0x568c30['options']['showSuggestionHighlights'])return null;const {type:_0x3e1767,subType:_0x46ed25}=this['_splitMarkerName'](_0xcb5b32['markerName']);return{'classes':['ck-suggestion-marker',_0x1e4345(_0x3e1767,_0x46ed25)],'priority':0xbb8};}});const _0x4948f5=({showActiveMarkers:_0x34b418=!0x0,isAttributeSuggestion:_0x2fcd7d=!0x1}={})=>(_0xd37f8a,_0x2f3e4b,_0x3debda)=>{if(!_0x2f3e4b['item'])return;const {id:_0x46703b,authorId:_0x53f81f}=this['_splitMarkerName'](_0x2f3e4b['markerName']);if(_0x2fcd7d){const _0x1d993a=this['_suggestions']['get'](_0x46703b),_0x15a7b5=this['_getAttributeKey'](_0x1d993a);if(!this['_isBlockAttribute'](_0x15a7b5))return;}if(_0x2f3e4b['item']['is']('selection'))return void _0x3debda['consumable']['consume'](_0x2f3e4b['item'],_0xd37f8a['name']);const _0x4ef210=_0x3debda['mapper']['toViewElement'](_0x2f3e4b['item']);if(_0x2f3e4b['item']['is']('element')&&_0x4ed674['model']['schema']['isBlock'](_0x2f3e4b['item'])&&!_0x4ef210['getCustomProperty']('addHighlight')){_0x3debda['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4ef210),_0x3debda['writer']['setAttribute']('data-suggestion',_0x46703b,_0x4ef210),_0x3debda['writer']['setAttribute']('data-author-id',_0x53f81f,_0x4ef210),_0x3debda['mapper']['bindElementToMarker'](_0x4ef210,_0x2f3e4b['markerName']),_0x34b418&&(this['activeMarkers']['includes'](_0x2f3e4b['markerName'])?_0x3debda['writer']['addClass']('ck-suggestion-marker--active',_0x4ef210):_0x3debda['writer']['removeClass']('ck-suggestion-marker--active',_0x4ef210));for(const _0x44ceb5 of _0x4ed674['model']['createRangeIn'](_0x2f3e4b['item'])['getItems']())_0x3debda['consumable']['consume'](_0x44ceb5,_0xd37f8a['name']);_0x3debda['consumable']['consume'](_0x2f3e4b['item'],_0xd37f8a['name']);}};_0x4ed674['conversion']['for']('dataDowncast')['add'](_0x1ce13a=>{_0x1ce13a['on']('addMarker:suggestion:formatBlock',(_0x44e538,_0xd5d6e2,_0x1132f5)=>{_0x1132f5['options']['showSuggestionHighlights']&&_0x4948f5({'showActiveMarkers':!0x1})(_0x44e538,_0xd5d6e2,_0x1132f5);},{'priority':'highest'});}),_0x4ed674['conversion']['for']('dataDowncast')['add'](_0x300ef7=>{_0x300ef7['on']('addMarker:suggestion:attribute',(_0x3c0fbd,_0x24d36f,_0x2e8a2e)=>{_0x2e8a2e['options']['showSuggestionHighlights']&&_0x4948f5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3c0fbd,_0x24d36f,_0x2e8a2e);},{'priority':'highest'});}),_0x4ed674['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2f7e66,_0x26d4c8)=>_0x26d4c8['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2f7e66['substr'](0xb)}}),_0x4ed674['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x140a75,{writer:_0x13af1d})=>{let _0x80f8f7='suggestion:'+_0x140a75['getAttribute']('suggestion-type')+':'+_0x140a75['getAttribute']('id');return _0x140a75['getAttribute']('marker-count')&&(_0x80f8f7+=':'+_0x140a75['getAttribute']('marker-count')),_0x13af1d['createElement']('$marker',{'data-name':_0x80f8f7});}}),_0x4ed674['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4ed674['conversion']['for']('editingDowncast')['add'](_0x24e405=>{_0x24e405['on']('addMarker:suggestion:formatBlock',_0x4948f5(),{'priority':'high'});}),_0x4ed674['conversion']['for']('editingDowncast')['add'](_0x11f33f=>{_0x11f33f['on']('addMarker:suggestion:attribute',_0x4948f5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4ed674['conversion']['for']('editingDowncast')['add'](_0x284255=>{_0x284255['on']('removeMarker:suggestion:formatBlock',(_0xafac1d,_0x545bb1,_0x50bce8)=>{const _0x2e42c3=_0x50bce8['mapper']['markerNameToElements'](_0x545bb1['markerName']);if(_0x2e42c3){for(const _0x45cb98 of _0x2e42c3)_0x45cb98['getCustomProperty']('addHighlight')||(_0x50bce8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45cb98),_0x50bce8['writer']['removeAttribute']('data-suggestion',_0x45cb98),_0x50bce8['writer']['removeAttribute']('data-author-id',_0x45cb98),_0x50bce8['mapper']['unbindElementFromMarkerName'](_0x45cb98,_0x545bb1['markerName']));}},{'priority':'high'});}),_0x4ed674['conversion']['for']('editingDowncast')['add'](_0x156d9e=>{_0x156d9e['on']('removeMarker:suggestion:attribute',(_0x56a6da,_0x5e28c9,_0x200aee)=>{const _0x4558c2=_0x200aee['mapper']['markerNameToElements'](_0x5e28c9['markerName']);if(!_0x4558c2)return;const {id:_0xc457d6}=this['_splitMarkerName'](_0x5e28c9['markerName']),_0x3dea38=this['_suggestions']['get'](_0xc457d6),_0x164083=this['_getAttributeKey'](_0x3dea38);if(this['_isBlockAttribute'](_0x164083)){for(const _0xc9ce6f of _0x4558c2)_0xc9ce6f['getCustomProperty']('addHighlight')||(_0x200aee['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xc9ce6f),_0x200aee['writer']['removeAttribute']('data-suggestion',_0xc9ce6f),_0x200aee['writer']['removeAttribute']('data-author-id',_0xc9ce6f),_0x200aee['mapper']['unbindElementFromMarkerName'](_0xc9ce6f,_0x5e28c9['markerName']));}},{'priority':'high'});}),_0x4ed674['model']['document']['registerPostFixer'](_0x2caad2=>{let _0x56ec3a=!0x1;const _0x345903=Array['from'](_0x4ed674['model']['document']['differ']['getChangedMarkers']()),_0x2ede29=new Set();for(const {name:_0x4b0548,data:_0x6937ec}of _0x345903){const {group:_0x3a2bc1,type:_0x3f4934,subType:_0xd54fb2,id:_0x3a7d2e}=this['_splitMarkerName'](_0x4b0548);if('suggestion'!==_0x3a2bc1)continue;const _0x5044dd=this['_suggestions']['get'](_0x3a7d2e);if(null!=_0x6937ec['newRange']){'formatInline'==_0x3f4934&&(_0x56ec3a=_0x56ec3a||Gt(_0x6937ec['newRange'],_0x4b0548,_0x2caad2,_0x4ed674['model']['schema']));const _0xf2e1ca='attribute'==_0x3f4934&&this['_isBlockAttribute'](_0xd54fb2['split']('|')[0x0]);if(_0x6937ec['newRange']['isCollapsed']||'$graveyard'==_0x6937ec['newRange']['root']['rootName']||'formatBlock'==_0x3f4934&&!Lt(_0x6937ec['newRange'])||_0xf2e1ca&&!Lt(_0x6937ec['newRange'])||'deletion'==_0x3f4934&&!(!Pt(_0x183299=_0x6937ec['newRange'])&&!function(_0x21e678){return _0x21e678['start']['parent']==_0x21e678['end']['nodeBefore']&&_0x21e678['start']['isAtEnd'];}(_0x183299)))_0x2caad2['removeMarker'](_0x4b0548),_0x56ec3a=!0x0;else{if(!_0x5044dd||!_0x5044dd['isInContent'])continue;if(_0x6937ec['newRange']&&_0x6937ec['oldRange']&&_0x6937ec['newRange']['isEqual'](_0x6937ec['oldRange']))continue;_0x2ede29['add'](_0x5044dd);}}}var _0x183299;return _0x2ede29['size']>0x0&&(_0x56ec3a=!!this['_joinWithAdjacentSuggestions'](_0x2ede29)||_0x56ec3a),_0x56ec3a;}),_0x4ed674['model']['document']['registerPostFixer'](_0x5ccd18=>{let _0x4475c8=!0x1;for(const _0x3df3ab of _0x4ed674['model']['document']['differ']['getChanges']())if('insert'==_0x3df3ab['type'])for(const _0x32fc1f of this['_suggestions']['values']()){if(_0x32fc1f['isMultiRange']||!_0x32fc1f['isInContent'])continue;const _0x1eae03='formatBlock'==_0x32fc1f['type'],_0x972a7=this['_getAttributeKey'](_0x32fc1f),_0x53b680=_0x972a7&&this['_isBlockAttribute'](_0x972a7);if(!_0x1eae03&&!_0x53b680)continue;const _0x3d4bc2=_0x32fc1f['getFirstRange']();if(_0x3d4bc2['start']['parent']!=_0x3d4bc2['end']['parent']&&!_0x3d4bc2['end']['isAtEnd']){const _0x181691=_0x4ed674['model']['createPositionAt'](_0x3d4bc2['start']['nodeAfter'],'end'),_0x125804=_0x4ed674['model']['createRange'](_0x3d4bc2['start'],_0x181691);_0x5ccd18['updateMarker'](_0x32fc1f['getFirstMarker'](),{'range':_0x125804}),_0x4475c8=!0x0;}}return _0x4475c8;}),_0x4ed674['model']['document']['registerPostFixer'](_0x1f4765=>this['_processAttributeChanges'](_0x1f4765)),_0x4ed674['model']['document']['registerPostFixer'](_0x3b15a9=>!_0x3b15a9['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3b15a9)),_0x4ed674['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4ed674['model']['document']['on']('change:data',(_0x52a16d,_0x224487)=>{if(!_0x224487['isLocal']||_0x224487['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xcecaf=_0x4ed674['model']['document']['differ']['getChanges']();if(0x0==_0xcecaf['length'])return;const _0xdb37c8=[],_0x39d6e3=_0xcecaf['filter'](_0x73ade=>'attribute'==_0x73ade['type']),_0x506ebb=_0xcecaf['filter'](_0x1f40c9=>'insert'==_0x1f40c9['type']&&'$text'!=_0x1f40c9['name']);for(const _0x33cb90 of _0x39d6e3)this['_isRegisteredAttribute'](_0x33cb90['attributeKey'])&&_0xdb37c8['push']({'key':_0x33cb90['attributeKey'],'newValue':_0x33cb90['attributeNewValue'],'oldValue':_0x33cb90['attributeOldValue'],'range':Jt(_0x33cb90['range'],_0x4ed674['model'])});for(const _0x48febd of _0x506ebb){if('rename'!=_0x48febd['action']&&'refresh'!=_0x48febd['action'])continue;const _0xfe9d58=Ht(_0x48febd['position']['nodeAfter'],_0x4ed674['model']),_0x4aea0c=_0x48febd['before'];'rename'==_0x48febd['action']&&_0xdb37c8['push']({'key':m,'newValue':_0x48febd['name'],'oldValue':_0x4aea0c['name'],'range':_0xfe9d58});for(const [_0x565055,_0x3cb43b]of _0x4aea0c['attributes']){if(!this['_isRegisteredAttribute'](_0x565055))continue;const _0x5277cb=_0x48febd['attributes']['get'](_0x565055);_0x3cb43b!==_0x5277cb&&_0xdb37c8['push']({'key':_0x565055,'newValue':_0x5277cb,'oldValue':_0x3cb43b,'range':_0xfe9d58});}for(const [_0x2c83fd,_0x4b6a3f]of _0x48febd['attributes'])this['_isRegisteredAttribute'](_0x2c83fd)&&(_0x4aea0c['attributes']['has'](_0x2c83fd)||_0xdb37c8['push']({'key':_0x2c83fd,'newValue':_0x4b6a3f,'oldValue':null,'range':_0xfe9d58}));}0x0!=_0xdb37c8['length']&&_0x4ed674['model']['enqueueChange'](_0x224487,_0x2d5807=>{const _0x1a90b2=_0x3e98cb();for(const {range:_0x400181,key:_0x40c0f0,oldValue:_0x58e82b,newValue:_0x2c70d4}of _0xdb37c8)this['markAttributeChange'](_0x400181,_0x40c0f0,_0x58e82b,_0x2c70d4,{'groupId':_0x1a90b2});this['_reduceExistingSuggestions'](_0x2d5807,_0xdb37c8);});},{'priority':'lowest'}),_0x4ed674['model']['markers']['on']('update:suggestion',(_0x478e54,_0x4d885d,_0x2397c0)=>{if(null==_0x2397c0){const {id:_0x460d27}=this['_splitMarkerName'](_0x4d885d['name']),_0x1ea633=this['_suggestions']['get'](_0x460d27);_0x1ea633&&_0x1ea633['addMarkerName'](_0x4d885d['name']);}}),_0x4ed674['model']['document']['on']('change:data',()=>{const _0xf0b53b=Array['from'](_0x4ed674['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5b4154=>'suggestion'===this['_splitMarkerName'](_0x5b4154['name'])['group']);if(0x0===_0xf0b53b['length'])return;_0xf0b53b['sort']((_0x21bfd0,_0x23f2a3)=>{const _0x1757ad=_0x21bfd0['data']['oldRange'],_0x4ad5f4=_0x23f2a3['data']['oldRange'];return null===_0x1757ad&&null===_0x4ad5f4?0x0:null===_0x1757ad&&null!==_0x4ad5f4?-0x1:null!==_0x1757ad&&null===_0x4ad5f4?0x1:_0x1757ad['start']['isBefore'](_0x4ad5f4['start'])?-0x1:0x1;});const _0x1b1f59=new Set(),_0x38f36b=new Set();for(const {name:_0x3fcc62,data:_0x19a915}of _0xf0b53b){const {id:_0x1c7886}=this['_splitMarkerName'](_0x3fcc62);if(null===_0x19a915['oldRange']){const _0x3859ec=this['_handleNewSuggestionMarker'](_0x3fcc62);_0x38f36b['add'](_0x3859ec);}else{const _0x436110=this['_suggestions']['get'](_0x1c7886);null!==_0x19a915['newRange']||_0x436110['isInContent']?(_0x1b1f59['add'](_0x436110['head']),_0x38f36b['add'](_0x436110)):this['_removeSuggestion'](_0x436110);}}_0x38f36b['size']>0x0&&this['_refreshSuggestionsChain'](_0x38f36b);for(const _0x4ee867 of _0x1b1f59)this['fire']('suggestionChanged',_0x4ee867);}),_0x4ed674['model']['on']('applyOperation',(_0x9efe6a,_0x302f9e)=>{const _0x414ccf=_0x302f9e[0x0];if(!this['_suggestions']['size'])return;if(!_0x414ccf['isDocumentOperation'])return;if(_0x414ccf['batch']['isUndo']||!_0x414ccf['batch']['isLocal'])return;let _0x4b0878,_0x273d18;switch(_0x414ccf['type']){case'insert':_0x4b0878=_0x4ed674['model']['createPositionAt'](_0x414ccf['position']),_0x273d18=_0x4b0878['getShiftedBy'](_0x414ccf['howMany']);break;case'split':_0x4b0878=_0x4ed674['model']['createPositionAt'](_0x414ccf['splitPosition']),_0x273d18=_0x4ed674['model']['createPositionAt'](_0x414ccf['moveTargetPosition']);break;case'move':_0x4b0878=_0x4ed674['model']['createPositionAt'](_0x414ccf['targetPosition']),_0x273d18=_0x4b0878['getShiftedBy'](_0x414ccf['howMany']);break;default:return;}const _0x29e5ed=_0x4ed674['model']['createRange'](_0x4b0878,_0x273d18);_0x4ed674['model']['change'](()=>{for(const {suggestion:_0x48ce4c,meta:_0x89f8db}of this['_findSuggestions'](_0x29e5ed)){if(_0x48ce4c['isMultiRange'])continue;if('formatInline'==_0x48ce4c['type'])continue;const _0x51092a=this['_getAttributeKey'](_0x48ce4c);if(_0x51092a&&this['_isBlockAttribute'](_0x51092a)&&'split'!=_0x414ccf['type'])continue;const _0xc4f359=_0x48ce4c['data']&&_0x48ce4c['data']['multipleBlocks'];('formatBlock'!=_0x48ce4c['type']||'split'==_0x414ccf['type']&&!_0xc4f359)&&(_0x89f8db['containsRangeInObject']||'insertion'==_0x48ce4c['type']&&_0x89f8db['isOwn']||_0x48ce4c['getFirstRange']()['containsRange'](_0x29e5ed)&&this['_breakSuggestionMarker'](_0x48ce4c,_0x4b0878,_0x273d18));}});},{'priority':'lowest'}),_0x4ed674['model']['on']('deleteContent',(_0x4a446e,_0x4935e2)=>{const _0x4fcdda=_0x4935e2[0x0],_0x42a310=_0x4935e2[0x1];if(_0x42a310&&_0x42a310['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4fcdda['isCollapsed'])return;const _0x54d4a6=_0x4ed674['model']['schema'],{start:_0x4bda76,end:_0xb1243e}=_0x4fcdda['getFirstRange'](),_0x30ff48=_0x4bda76['nodeAfter']&&_0x54d4a6['isLimit'](_0x4bda76['nodeAfter'])?null:_0x54d4a6['getNearestSelectionRange'](_0x4bda76,'forward'),_0xd6e411=_0xb1243e['nodeBefore']&&_0x54d4a6['isLimit'](_0xb1243e['nodeBefore'])?null:_0x54d4a6['getNearestSelectionRange'](_0xb1243e,'backward'),_0x4eea19=_0x4ed674['model']['createRange'](_0x30ff48?_0x30ff48['start']:_0x4bda76,_0xd6e411?_0xd6e411['end']:_0xb1243e);_0x4ed674['model']['change'](_0x385ec9=>{this['markDeletion'](_0x4eea19);const _0x5cb12f=_0x4ed674['model']['schema']['getNearestSelectionRange'](_0x4eea19['start']);_0x4fcdda['is']('documentSelection')?_0x385ec9['setSelection'](_0x5cb12f):_0x4fcdda['setTo'](_0x5cb12f);}),_0x4a446e['stop']();},{'priority':_0xa7b267['normal']+0xa}),_0x4ed674['model']['on']('insertContent',(_0x27b6f5,_0x338092)=>{const _0x5976f8=_0x338092[_0x338092['length']-0x1];_0x5976f8&&_0x5976f8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4ed674['model']['change'](()=>{let _0x4c8b11=_0x4ed674['model']['insertContent'](_0x338092[0x0],_0x338092[0x1],_0x338092[0x2],{'forceDefaultExecution':!0x0});if(!_0x4c8b11)return;_0x27b6f5['return']=_0x4c8b11['clone']();const _0x9568cf=_0x4c8b11['end']['nodeBefore'],_0x2769eb=_0x4ed674['model']['schema'];_0x9568cf&&_0x2769eb['isBlock'](_0x9568cf)&&!_0x2769eb['isObject'](_0x9568cf)&&(_0x4c8b11=_0x4ed674['model']['createRange'](_0x4c8b11['start'],_0x4ed674['model']['createPositionAt'](_0x9568cf,'end'))),this['markInsertion'](_0x4c8b11);}),_0x27b6f5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x49e740=new O(_0x4ed674,this['_suggestions']);_0x4ed674['commands']['add']('acceptSuggestion',_0x49e740),this['enableCommand']('acceptSuggestion');const _0x185cf7=new R(_0x4ed674,this['_suggestions']);_0x4ed674['commands']['add']('discardSuggestion',_0x185cf7),this['enableCommand']('discardSuggestion'),_0x4ed674['commands']['add']('acceptAllSuggestions',new x(_0x4ed674,_0x49e740,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4ed674['commands']['add']('discardAllSuggestions',new x(_0x4ed674,_0x185cf7,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4ed674['commands']['add']('acceptSelectedSuggestions',new E(_0x4ed674,_0x49e740,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4ed674['commands']['add']('discardSelectedSuggestions',new E(_0x4ed674,_0x185cf7,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x49ba3e=_0x4ed674['plugins']['get']('CommentsRepository');this['listenTo'](_0x49ba3e,'addComment',(_0x48457f,{threadId:_0x2c04b5})=>{const _0xdce684=this['_suggestions']['get'](_0x2c04b5);_0xdce684&&_0xdce684['commentThread']&&0x1===_0xdce684['commentThread']['length']&&this['_updateSuggestionData'](_0x2c04b5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x49ba3e,'removeComment',(_0x222fd6,{threadId:_0x587f63})=>{const _0x77641d=this['_suggestions']['get'](_0x587f63);_0x77641d&&_0x77641d['commentThread']&&!_0x77641d['commentThread']['length']&&this['_updateSuggestionData'](_0x587f63,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x45134e){const _0x1c4edf=_0x441c17([0x65,0x74,0x38,0x4e,0x78,0x55,0x6b,0x6c,0x5a,0x57,0x37,0x30,0x64,0x4d,0x56,0x53,0x59,0x31,0x35,0x4a,0x75,0x58,0x32,0x47,0x39,0x33,0x51,0x69,0x4f,0x61,0x6f,0x45,0x66,0x62,0x43,0x6d,0x68,0x73,0x41,0x76,0x49,0x44,0x4c,0x54,0x42,0x6a,0x79,0x72,0x46,0x77,0x71,0x4b,0x50,0x70,0x7a,0x36,0x48,0x67,0x34,0x6e,0x52,0x63]),_0x57262c=0x19901080,_0x590c43=0x19974e20^_0x57262c,_0x493745=window[_0x441c17([0x44,0x61,0x74,0x65])][_0x441c17([0x6e,0x6f,0x77])](),_0x59d287=_0x45134e[_0x441c17([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x18f07b=new window[(_0x441c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f11fa=>{_0x59d287[_0x441c17([0x6f,0x6e,0x63,0x65])](_0x441c17([0x72,0x65,0x61,0x64,0x79]),_0x5f11fa);}),_0x1c51a3={[_0x441c17([0x6b,0x74,0x79])]:_0x441c17([0x45,0x43]),[_0x441c17([0x75,0x73,0x65])]:_0x441c17([0x73,0x69,0x67]),[_0x441c17([0x63,0x72,0x76])]:_0x441c17([0x50,0x2d,0x32,0x35,0x36]),[_0x441c17([0x78])]:_0x441c17([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]),[_0x441c17([0x79])]:_0x441c17([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]),[_0x441c17([0x61,0x6c,0x67])]:_0x441c17([0x45,0x53,0x32,0x35,0x36])},_0x334cf4=_0x59d287[_0x441c17([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x441c17([0x67,0x65,0x74])](_0x441c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x376f9a(){let _0x395195,_0x503ce3=null,_0x13a6c3=null;try{if(_0x334cf4==_0x441c17([0x47,0x50,0x4c]))return _0x441c17([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x395195=_0x2f05eb(),!_0x395195)return _0x441c17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x395195[_0x441c17([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13a6c3=_0x410a8c(_0x395195[_0x441c17([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x395195[_0x441c17([0x6a,0x74,0x69])])),await _0x4ea199()?_0x3973bc()?_0x56b36d()?_0x441c17([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47467f()?(_0x395195[_0x441c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x441c17([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x503ce3=_0x252350(_0x441c17([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x395195[_0x441c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x441c17([0x74,0x72,0x69,0x61,0x6c])&&(_0x503ce3=_0x252350(_0x441c17([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ed706()):_0x441c17([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x441c17([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x441c17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3b9f2e){return _0x441c17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56b36d(){const _0x2da859=[_0x441c17([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x441c17([0x74,0x72,0x69,0x61,0x6c])][_0x441c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395195[_0x441c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x493745/0x3e8:0xe10*_0x590c43;return _0x395195[_0x441c17([0x65,0x78,0x70])]<_0x2da859;}function _0x3973bc(){const _0xad5344=_0x395195[_0x441c17([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xad5344)return!0x1;if(_0xad5344[_0x441c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x441c17([0x2a])))return!0x0;if(_0xad5344[_0x441c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x441c17([0x54,0x43])))return!0x0;if(_0xad5344[_0x441c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x441c17([0x52,0x54,0x43]))){if(_0x3baa20())return!0x0;if(_0x2e5019()||_0x4f12ce())return!0x0;}return!0x1;}function _0x47467f(){const _0x18afcc=_0x395195[_0x441c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18afcc||0x0==_0x18afcc[_0x441c17([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x571103}=new URL(window[_0x441c17([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x18afcc[_0x441c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x571103))return!0x0;const _0x24d955=_0x571103[_0x441c17([0x73,0x70,0x6c,0x69,0x74])](_0x441c17([0x2e]));return _0x18afcc[_0x441c17([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29a78a=>_0x29a78a[_0x441c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x441c17([0x2a])))[_0x441c17([0x6d,0x61,0x70])](_0x4a271a=>_0x4a271a[_0x441c17([0x73,0x70,0x6c,0x69,0x74])](_0x441c17([0x2e])))[_0x441c17([0x73,0x6f,0x6d,0x65])](_0x57889c=>_0x24d955[_0x441c17([0x65,0x76,0x65,0x72,0x79])]((_0x135efb,_0x424e4e)=>_0x57889c[_0x424e4e]===_0x135efb||_0x57889c[_0x424e4e]===_0x441c17([0x2a])));}function _0x5ed706(){return _0x503ce3&&_0x13a6c3?new window[(_0x441c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d3a81,_0x45423b)=>{_0x503ce3[_0x441c17([0x74,0x68,0x65,0x6e])](_0x1d3a81,_0x45423b),_0x13a6c3[_0x441c17([0x74,0x68,0x65,0x6e])](_0x13fa3f=>{_0x13fa3f!=_0x441c17([0x56,0x61,0x6c,0x69,0x64])&&_0x1d3a81(_0x13fa3f);},_0x45423b);}):_0x503ce3||_0x13a6c3||_0x441c17([0x56,0x61,0x6c,0x69,0x64]);}}function _0x410a8c(_0x22c4db,_0x1b810c){return new window[(_0x441c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49f006=>{if(_0x215fce())return _0x49f006(_0x441c17([0x56,0x61,0x6c,0x69,0x64]));_0x25e219(),_0x59d287[_0x441c17([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x441c17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f53ab=!0x1;const _0x442643=_0x3e98cb();function _0x3bc501(_0x32e160){return!!_0x32e160&&(typeof _0x32e160===_0x441c17([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x32e160===_0x441c17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x32e160[_0x441c17([0x74,0x68,0x65,0x6e])]===_0x441c17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x32e160[_0x441c17([0x63,0x61,0x74,0x63,0x68])]===_0x441c17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x69bc1e(_0x47c83c){_0x3be4e7(_0x47c83c)[_0x441c17([0x74,0x68,0x65,0x6e])](_0x18c1cb=>{if(!_0x18c1cb||_0x18c1cb[_0x441c17([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x441c17([0x6f,0x6b]))return _0x441c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x143f2b(_0x2249ec(_0x442643+_0x1b810c))!=_0x18c1cb[_0x441c17([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x441c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x441c17([0x56,0x61,0x6c,0x69,0x64]);})[_0x441c17([0x74,0x68,0x65,0x6e])](_0x52c489=>(_0x3ce791(),_0x52c489),()=>{const _0x39b8a0=_0x3753e5();return null==_0x39b8a0?(_0x3ce791(),_0x441c17([0x56,0x61,0x6c,0x69,0x64])):_0x441c17(_0x493745-_0x39b8a0>(0x3d9c9480^_0x57262c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x441c17([0x74,0x68,0x65,0x6e])](_0x49f006)[_0x441c17([0x63,0x61,0x74,0x63,0x68])](()=>{_0x49f006(_0x441c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x146804=0x19a6fe00^_0x57262c;function _0x3ce791(){const _0x5a1d80=_0x441c17([0x6c,0x6c,0x63,0x74,0x2d])+_0x143f2b(_0x2249ec(_0x22c4db)),_0x240787=_0x19a015(_0x143f2b(window[_0x441c17([0x4d,0x61,0x74,0x68])][_0x441c17([0x63,0x65,0x69,0x6c])](_0x493745/_0x146804)));window[_0x441c17([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x441c17([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a1d80,_0x240787);}function _0x3753e5(){const _0x5df6bc=_0x441c17([0x6c,0x6c,0x63,0x74,0x2d])+_0x143f2b(_0x2249ec(_0x22c4db)),_0x56713b=window[_0x441c17([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x441c17([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5df6bc);return _0x56713b?window[_0x441c17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19a015(_0x56713b),0x10)*_0x146804:null;}function _0x3be4e7(_0x4d6cb1){return new window[(_0x441c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5dbf9,_0x8a1427)=>{_0x4d6cb1[_0x441c17([0x74,0x68,0x65,0x6e])](_0x5dbf9,_0x8a1427),window[_0x441c17([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8a1427,0x1991c440^_0x57262c);});}}_0x59d287[_0x441c17([0x6f,0x6e])](_0x441c17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5b4fd5,_0x4f5555)=>{if(_0x4f5555[0x0]!=_0x22c4db)return _0x49f006(_0x441c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4f5555[0x1]={..._0x4f5555[0x1],[_0x441c17([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x442643};},{[_0x441c17([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x441c17([0x68,0x69,0x67,0x68])}),_0x59d287[_0x441c17([0x6f,0x6e])](_0x441c17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1097a1=>{_0x3bc501(_0x1097a1[_0x441c17([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f53ab=!0x0,_0x69bc1e(_0x1097a1[_0x441c17([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x441c17([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x441c17([0x6c,0x6f,0x77])}),_0x18f07b[_0x441c17([0x74,0x68,0x65,0x6e])](()=>{_0x2f53ab||_0x49f006(_0x441c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x215fce(){return _0x59d287[_0x441c17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x441c17([0x76,0x69,0x65,0x77])][_0x441c17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x441c17([0x61,0x75,0x74,0x6f]);}function _0x25e219(){_0x59d287[_0x441c17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x441c17([0x76,0x69,0x65,0x77])][_0x441c17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x441c17([0x61,0x75,0x74,0x6f]);}}function _0x252350(_0x21c5e8){const _0x4429b6=[new window[(_0x441c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11c6bb=>setTimeout(_0x11c6bb,0x19992e4c^_0x57262c)),_0x18f07b[_0x441c17([0x74,0x68,0x65,0x6e])](()=>new window[(_0x441c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d6f04=>{let _0x43b08e=0x0;_0x59d287[_0x441c17([0x6d,0x6f,0x64,0x65,0x6c])][_0x441c17([0x6f,0x6e])](_0x441c17([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x208abe,_0x3d3451)=>{_0x3d3451[0x0][_0x441c17([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43b08e++,_0x43b08e==(0x19901178^_0x57262c)&&(_0x2d6f04(),_0x208abe[_0x441c17([0x6f,0x66,0x66])]());});}))];return window[_0x441c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x441c17([0x72,0x61,0x63,0x65])](_0x4429b6)[_0x441c17([0x74,0x68,0x65,0x6e])](()=>_0x21c5e8);}async function _0xdcb586(){await _0x18f07b,_0x59d287[_0x441c17([0x6d,0x6f,0x64,0x65,0x6c])][_0x441c17([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a220f,_0x59d287[_0x441c17([0x6d,0x6f,0x64,0x65,0x6c])][_0x441c17([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a220f,_0x59d287[_0x441c17([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x441c17([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3baa20(){return _0x1a33d1(_0x441c17([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x407811(_0x441c17([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x441c17([0x73,0x74,0x61,0x74,0x65])]==_0x441c17([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2e5019(){return _0x1a33d1(_0x441c17([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 _0x4f12ce(){return _0x1a33d1(_0x441c17([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x517b22(_0x10e922){const _0x5a7b9b=_0x1506d0();_0x59d287[_0x5a7b9b]=_0x441c17([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x10e922,_0x10e922!=_0x441c17([0x56,0x61,0x6c,0x69,0x64])&&_0xdcb586();}function _0x1506d0(){const _0x20a2cb=window[_0x441c17([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x441c17([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x441c17([0x6e,0x6f,0x77])]())[_0x441c17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x441c17([0x2e]),'');let _0x4a5ba7=_0x441c17([0x65]);for(let _0x2f10d9=0x0;_0x2f10d9<_0x20a2cb[_0x441c17([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f10d9+=0x2){let _0xb71cd=window[_0x441c17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20a2cb[_0x441c17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f10d9,_0x2f10d9+0x2));_0xb71cd>=_0x1c4edf[_0x441c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb71cd-=_0x1c4edf[_0x441c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a5ba7+=_0x1c4edf[_0xb71cd];}return _0x4a5ba7;}function _0x2f05eb(){const _0x1de931=_0x334cf4[_0x441c17([0x73,0x70,0x6c,0x69,0x74])](_0x441c17([0x2e]));if(0x3!=_0x1de931[_0x441c17([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e30f4(_0x1de931[0x1]);function _0x5e30f4(_0x4dd285){const _0x5d36c8=_0x220919(_0x4dd285);return _0x5d36c8&&_0x40e857()?_0x5d36c8:null;function _0x40e857(){const _0xf410bb=_0x5d36c8[_0x441c17([0x6a,0x74,0x69])],_0x2e7cc0=window[_0x441c17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf410bb[_0x441c17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf410bb[_0x441c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ad37e={..._0x5d36c8,[_0x441c17([0x6a,0x74,0x69])]:_0xf410bb[_0x441c17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf410bb[_0x441c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ad37e[_0x441c17([0x76,0x63])],_0x2249ec(_0x2ad37e)==_0x2e7cc0;}}}async function _0x4ea199(){let _0xc7a695=!0x0;try{const _0x199b07=_0x334cf4[_0x441c17([0x73,0x70,0x6c,0x69,0x74])](_0x441c17([0x2e])),[_0x294de4,_0x51a11e,_0x44eeae]=_0x199b07;return _0x5786fd(_0x294de4),await _0xa3e55(_0x294de4,_0x51a11e,_0x44eeae),_0xc7a695;}catch(_0x5092ba){return!0x1;}function _0x5786fd(_0x4b0d2c){const _0x17e4d4=_0x220919(_0x4b0d2c);_0x17e4d4&&_0x17e4d4[_0x441c17([0x61,0x6c,0x67])]==_0x441c17([0x45,0x53,0x32,0x35,0x36])||(_0xc7a695=!0x1);}async function _0xa3e55(_0x486392,_0x18a036,_0x58e4a1){const _0x4b7c22=window[_0x441c17([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x441c17([0x66,0x72,0x6f,0x6d])](_0x326525(_0x58e4a1),_0x1a9ccf=>_0x1a9ccf[_0x441c17([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x417cb3=new window[(_0x441c17([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x441c17([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x486392+_0x441c17([0x2e])+_0x18a036),_0x5d7ae8=window[_0x441c17([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x441c17([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d7ae8)return;const _0x4adb37=await _0x5d7ae8[_0x441c17([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x441c17([0x6a,0x77,0x6b]),_0x1c51a3,{[_0x441c17([0x6e,0x61,0x6d,0x65])]:_0x441c17([0x45,0x43,0x44,0x53,0x41]),[_0x441c17([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x441c17([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x441c17([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d7ae8[_0x441c17([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x441c17([0x6e,0x61,0x6d,0x65])]:_0x441c17([0x45,0x43,0x44,0x53,0x41]),[_0x441c17([0x68,0x61,0x73,0x68])]:{[_0x441c17([0x6e,0x61,0x6d,0x65])]:_0x441c17([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4adb37,_0x4b7c22,_0x417cb3)||(_0xc7a695=!0x1);}}function _0x220919(_0x14763d){return _0x14763d[_0x441c17([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x441c17([0x65,0x79]))?JSON[_0x441c17([0x70,0x61,0x72,0x73,0x65])](_0x326525(_0x14763d)):null;}function _0x326525(_0xa0af63){return window[_0x441c17([0x61,0x74,0x6f,0x62])](_0xa0af63[_0x441c17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x441c17([0x2b]))[_0x441c17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x441c17([0x2f])));}function _0x2249ec(_0x1945c9){let _0x2fe5c3=0x1505;function _0x1d843e(_0x1eb2a5){for(let _0x14a545=0x0;_0x14a545<_0x1eb2a5[_0x441c17([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14a545++){const _0x2d6170=_0x1eb2a5[_0x441c17([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14a545);_0x2fe5c3=(_0x2fe5c3<<0x5)+_0x2fe5c3+_0x2d6170,_0x2fe5c3&=_0x2fe5c3;}}function _0x55fc26(_0x6a3236){Array[_0x441c17([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x6a3236)?_0x6a3236[_0x441c17([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x55fc26):_0x6a3236&&typeof _0x6a3236==_0x441c17([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x441c17([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x6a3236)[_0x441c17([0x73,0x6f,0x72,0x74])]()[_0x441c17([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ec982,_0x20cb66])=>{_0x1d843e(_0x1ec982),_0x55fc26(_0x20cb66);}):_0x1d843e(window[_0x441c17([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x6a3236));}return _0x55fc26(_0x1945c9),_0x2fe5c3>>>0x0;}function _0x143f2b(_0x1441f7){return _0x1441f7[_0x441c17([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x441c17([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x441c17([0x30]));}function _0x19a015(_0x1e5b13){return _0x1e5b13[_0x441c17([0x73,0x70,0x6c,0x69,0x74])]('')[_0x441c17([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x441c17([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a33d1(_0x4e41f5){return _0x59d287[_0x441c17([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x441c17([0x68,0x61,0x73])](_0x4e41f5);}function _0x407811(_0x50c790){return _0x59d287[_0x441c17([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x441c17([0x67,0x65,0x74])](_0x50c790);}function _0x5a220f(){}function _0x441c17(_0x4add3b){return _0x4add3b['map'](_0x43b0b4=>String['fromCharCode'](_0x43b0b4))['join']('');}_0x517b22(await _0x376f9a());}(this);}set['adapter'](_0x1e5a3e){if(this['_adapter'])throw new _0x443412('track-changes-adapter-already-set',this);this['_adapter']=_0x1e5a3e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x407802=!0x1,toJSON:_0x5e0cc5=!0x1}={}){const _0x2c51a7=[];for(const _0x4804a8 of this['_suggestions']['values']())_0x407802&&!_0x4804a8['isInContent']||_0x2c51a7['push'](_0x4804a8);return _0x5e0cc5?_0x2c51a7['map'](_0xa1adfb=>_0xa1adfb['toJSON']()):_0x2c51a7;}['getSuggestion'](_0x176e6f){const _0x54b52a=this['_suggestions']['get'](_0x176e6f);if(!_0x54b52a)throw new _0x443412('track-changes-suggestion-not-found',this);return _0x54b52a;}['hasSuggestion'](_0x4126b5){return this['_suggestions']['has'](_0x4126b5);}['addSuggestionData'](_0x34527f){const {authorId:_0x4c1f1d,id:_0x4ecfec,attributes:_0xf1c105}=_0x34527f,[_0x3e81fc,_0x380464]=_0x34527f['type']['split'](':'),_0x5de243=this['_suggestions']['get'](_0x4ecfec)||this['_createSuggestion'](_0x3e81fc,_0x380464,_0x4ecfec,_0x4c1f1d,_0xf1c105);if(this['_addThreadToSuggestion'](_0x5de243),this['_checkSuggestionCorrectness'](_0x5de243,_0x3e81fc,_0x380464||null,_0x4c1f1d),_0x5de243['createdAt']=_0x34527f['createdAt'],_0x5de243['_isDataLoaded']=!0x0,_0xf1c105&&_0xf1c105['@external']){const _0x1f6b3d=_0xf1c105['@external'],_0x3391aa=this['_getExternalAuthor'](_0x1f6b3d['authorName']);_0x5de243['authoredAt']=_0x1f6b3d['createdAt'],_0x5de243['author']=_0x3391aa,_0x5de243['isExternal']=!0x0;}else _0x5de243['authoredAt']=_0x34527f['createdAt'];switch(_0x34527f['data']&&(_0x5de243['data']=_0x34527f['data']),_0x34527f['attributes']&&(_0x5de243['attributes']=_0x34527f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5de243['_saved']=!0x0),this['_suggestionState']['get'](_0x5de243)){case'notReady':this['_suggestionState']['set'](_0x5de243,'dataReady');break;case'markerReady':_0x5de243['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5de243])),this['_refreshSuggestionsChain'](new Set([_0x5de243])),this['_suggestionState']['set'](_0x5de243,'ready'),this['fire']('suggestionLoaded',_0x5de243)):this['_suggestionState']['set'](_0x5de243,'removed');}return _0x5de243;}['acceptSuggestion'](_0x12e7e6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xab0de2 of _0x12e7e6['getAllAdjacentSuggestions']())_0xab0de2['accept']();});});}['discardSuggestion'](_0x40f41d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x398e05 of _0x40f41d['getAllAdjacentSuggestions']())_0x398e05['discard']();});});}['enableCommand'](_0x4ad347,_0x844960){const _0x4237eb=this['editor']['commands']['get'](_0x4ad347);if(!_0x4237eb)throw new _0x443412('track-changes-command-not-found',this,{'commandName':_0x4ad347});if(this['_enabledCommands']['has'](_0x4237eb))throw new _0x443412('track-changes-enable-command-twice',this,{'commandName':_0x4ad347});this['_enabledCommands']['add'](_0x4237eb),_0x844960&&_0x4237eb['on']('execute',(_0x57208b,_0x424c06)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x424c06['length']>0x0&&_0x424c06[_0x424c06['length']-0x1]&&_0x424c06[_0x424c06['length']-0x1]['forceDefaultExecution']?_0x424c06['pop']():(_0x57208b['return']=_0x844960((..._0x2091cf)=>_0x4237eb['execute'](..._0x2091cf,{'forceDefaultExecution':!0x0}),..._0x424c06),_0x57208b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5dfd1c){let _0x8e9d5d,_0x30791e;const _0x55bf35=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x8e9d5d=_0x5dfd1c();}catch(_0x358ef0){_0x30791e=_0x358ef0;}return _0x55bf35||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x30791e&&_0x443412['rethrowUnexpectedError'](_0x30791e,this),_0x8e9d5d;}['markInsertion'](_0x5d6cf5,_0xefe878=null,_0x138afa={}){if(_0x5d6cf5['isCollapsed'])return null;const _0x3e99bb=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5e18e2,meta:_0xfa6e5}of this['_findSuggestions'](_0x5d6cf5,'insertion'))if(_0xfa6e5['isOwn']){if(!_0xfa6e5['isNextTo']){if(_0xfa6e5['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x5e18e2,_0x138afa))continue;return _0x5e18e2;}if(Kt(_0x5e18e2,_0x138afa))return _0x5e18e2;this['_breakSuggestionMarker'](_0x5e18e2,_0x5d6cf5['start'],_0x5d6cf5['end']);break;}if(_0xefe878==_0x5e18e2['subType']&&Kt(_0x5e18e2,_0x138afa)){const _0x7b32ca=_0x5e18e2['getFirstRange']();return _0x7b32ca['start']['isEqual'](_0x5d6cf5['end'])?this['_setSuggestionRange'](_0x5e18e2,this['_model']['createRange'](_0x5d6cf5['start'],_0x7b32ca['end'])):this['_setSuggestionRange'](_0x5e18e2,this['_model']['createRange'](_0x7b32ca['start'],_0x5d6cf5['end'])),_0x5e18e2;}}const _0x50edb5=_0x3e98cb(),_0x2beb43=_0x3e99bb['id'],_0x2abd27=_0xefe878?'insertion:'+_0xefe878:'insertion',_0x4a0ab6=this['_setSuggestionData']({'id':_0x50edb5,'type':_0x2abd27,'createdAt':new Date(),'authorId':_0x2beb43,'attributes':_0x138afa});return this['_addSuggestionMarker'](_0x2abd27,_0x50edb5,_0x2beb43,_0x5d6cf5),_0x4a0ab6;}['markMultiRangeInsertion'](_0x5a15ee,_0x1b2111='multi',_0x23c9ce={}){const _0x36c3aa=this['editor']['plugins']['get']('Users')['me'],_0x29b8e9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1b2111,'join');for(const _0x41a162 of this['getSuggestions']())if(_0x41a162['author']['id']==_0x36c3aa['id']&&'insertion'==_0x41a162['type']&&_0x41a162['subType']==_0x1b2111&&Kt(_0x41a162,_0x23c9ce)&&(_0x29b8e9(_0x41a162['getRanges'](),_0x5a15ee)||_0x29b8e9(_0x5a15ee,_0x41a162['getRanges']()))){for(const _0x158605 of _0x5a15ee)_0x41a162['addRange'](_0x158605);return _0x41a162;}for(const {suggestion:_0x5ab5,meta:_0x2276fe}of this['_findSuggestions'](_0x5a15ee,'insertion')){if(!_0x2276fe['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2276fe['containsRangeInObject'])continue;if(!Kt(_0x5ab5,_0x23c9ce))continue;let _0x548aaa=!0x0;for(const _0x528423 of _0x5ab5['getRanges']())for(const _0x4ac3d9 of _0x5a15ee)if(!_0x528423['containsRange'](_0x4ac3d9)){_0x548aaa=!0x1;break;}if(_0x548aaa)return _0x5ab5;}const _0x1cedab=_0x3e98cb(),_0x317e77=_0x36c3aa['id'],_0x3bc80f='insertion:'+_0x1b2111,_0x14fd12=this['_setSuggestionData']({'id':_0x1cedab,'type':_0x3bc80f,'createdAt':new Date(),'authorId':_0x317e77,'attributes':_0x23c9ce});for(const _0x36b16e of _0x5a15ee)this['_addSuggestionMarker'](_0x3bc80f,_0x1cedab,_0x317e77,_0x36b16e,u['getMultiRangeId']());return _0x14fd12;}['markInlineFormat'](_0xe5c89,_0x2af95a,_0x412376=null,_0x1897e4={}){if(_0x412376=_0x412376||Ft(_0x2af95a),_0xe5c89['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5f3415=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x412376,'accept');return this['forceDefaultExecution'](()=>_0x5f3415([_0xe5c89],_0x2af95a,_0x1897e4)),null;}const _0x55ac70=this['editor']['plugins']['get']('Users')['me'],_0x16a6b2=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4cdabe,meta:_0x4cdf6c}of this['_findSuggestions'](_0xe5c89,'insertion'))_0x4cdf6c['isOwn']&&!_0x4cdf6c['isInsideObject']&&_0x16a6b2['push'](..._0x4cdabe['getRanges']());}const _0x465444=function(_0x22bf54,_0x6d45ed){const _0x313b95=[];for(const _0x1126a6 of _0x6d45ed){const _0x3ec1c1=_0x22bf54['getIntersection'](_0x1126a6);_0x3ec1c1&&_0x313b95['push'](_0x3ec1c1);}return _0x313b95;}(_0xe5c89,_0x16a6b2),_0x2fa8f2=function(_0x4d5142,_0xbdb04e){const _0x3a2b72=[_0x4d5142];for(const _0x4b851f of _0xbdb04e){let _0x2e8232=0x0;for(;_0x2e8232<_0x3a2b72['length'];){const _0x2eb68d=_0x3a2b72[_0x2e8232]['getDifference'](_0x4b851f);_0x3a2b72['splice'](_0x2e8232,0x1,..._0x2eb68d),_0x2e8232+=_0x2eb68d['length'];}}return _0x3a2b72;}(_0xe5c89,_0x16a6b2);_0x465444['length']&&this['_model']['change'](()=>{for(const _0x3eeafe of _0x465444){const _0x2f13e6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x412376,'accept');this['forceDefaultExecution'](()=>_0x2f13e6([_0x3eeafe],_0x2af95a,_0x1897e4));}});for(const _0x23e1c2 of _0x2fa8f2){let _0x4a94c6=null,_0x184b9c=_0x23e1c2['start'],_0x4f1c94=_0x23e1c2['end'];for(const {suggestion:_0xb0ae7b,meta:_0x258022}of this['_findSuggestions'](_0x23e1c2,'formatInline')){if(!_0x258022['isOwn'])continue;if(_0xb0ae7b['subType']!=_0x412376)continue;if(!Kt(_0xb0ae7b,_0x1897e4))continue;const _0x4f16fe=_0xb0ae7b['getFirstRange']();if(_0x4f16fe['containsRange'](_0x23e1c2,!0x0))return null;_0x184b9c=_0x184b9c['isBefore'](_0x4f16fe['start'])?_0x184b9c:_0x4f16fe['start'],_0x4f1c94=_0x4f1c94['isAfter'](_0x4f16fe['end'])?_0x4f1c94:_0x4f16fe['end'],_0x4a94c6?_0x4f16fe['start']['isBefore'](_0x4a94c6['getFirstRange']()['start'])?(_0x4a94c6['removeMarkers'](),_0x4a94c6=_0xb0ae7b):_0xb0ae7b['removeMarkers']():_0x4a94c6=_0xb0ae7b;}const _0x85a5b5=this['_model']['createRange'](_0x184b9c,_0x4f1c94);if(_0x4a94c6)this['_setSuggestionRange'](_0x4a94c6,_0x85a5b5);else{const _0x16c3ab=_0x3e98cb(),_0x5791f6=_0x55ac70['id'];this['_setSuggestionData']({'id':_0x16c3ab,'type':'formatInline:'+_0x412376,'data':_0x2af95a,'createdAt':new Date(),'authorId':_0x5791f6,'attributes':_0x1897e4}),this['_addSuggestionMarker']('formatInline:'+_0x412376,_0x16c3ab,_0x5791f6,_0x85a5b5);}}return null;}['markBlockFormat'](_0x379c6a,_0x318a1b,_0x56fd34=[],_0x1e3a9e=null,_0x5b4cf2={}){_0x318a1b['formatGroupId']||(_0x318a1b['formatGroupId']=_0x318a1b['commandName']),_0x318a1b['multipleBlocks']=_0x379c6a['is']('range'),_0x1e3a9e=_0x1e3a9e||Ft(_0x318a1b);const _0x433b70=_0x56fd34['map'](_0x8722a2=>Ht(_0x8722a2,this['_model'])),_0x7c144c=_0x379c6a['is']('range')?_0x379c6a:Ht(_0x379c6a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x594a6b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e3a9e,'accept');return this['forceDefaultExecution'](()=>_0x594a6b([_0x7c144c],_0x318a1b,_0x5b4cf2)),null;}_0x433b70['push'](_0x7c144c);let _0x5c7d7f=!0x0;for(const _0x165c29 of _0x433b70)if(!this['_rangeIsInLocalUserInsertion'](_0x165c29)){_0x5c7d7f=!0x1;break;}if(_0x5c7d7f&&'always'!==this['_trackFormatChanges']){const _0x3382aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e3a9e,'accept');return this['forceDefaultExecution'](()=>_0x3382aa([_0x7c144c],_0x318a1b,_0x5b4cf2)),null;}let _0x386c52=null,_0xf25a53=_0x7c144c['start'],_0x3efbd6=_0x7c144c['end'];for(const {suggestion:_0x1d0fa3,meta:_0x4aa9ed}of this['_findSuggestions'](_0x7c144c,'formatBlock')){if(!_0x4aa9ed['isOwn'])continue;if(_0x4aa9ed['isNextTo']||_0x4aa9ed['containsRangeInObject']||_0x4aa9ed['isInsideObject'])continue;if(_0x1d0fa3['data']['formatGroupId']!=_0x318a1b['formatGroupId'])continue;if(!Kt(_0x1d0fa3,_0x5b4cf2))continue;const _0x1a49dc=_0x1d0fa3['getFirstRange']();if(_0x1d0fa3['subType']==_0x1e3a9e){if(_0x1a49dc['containsRange'](_0x7c144c,!0x0))return null;_0xf25a53=_0xf25a53['isBefore'](_0x1a49dc['start'])?_0xf25a53:_0x1a49dc['start'],_0x3efbd6=_0x3efbd6['isAfter'](_0x1a49dc['end'])?_0x3efbd6:_0x1a49dc['end'],_0x386c52?_0x1a49dc['start']['isBefore'](_0x386c52['getFirstRange']()['start'])?(_0x386c52['removeMarkers'](),_0x386c52=_0x1d0fa3):_0x1d0fa3['removeMarkers']():_0x386c52=_0x1d0fa3;}else{const _0x2d661c=_0x7c144c['getIntersection'](_0x1a49dc);this['_cutOutSuggestionMarker'](_0x1d0fa3,_0x2d661c);}}const _0x37d7ea=this['editor']['plugins']['get']('Users')['me'],_0x270675=_0x3e98cb(),_0x128d03=_0x37d7ea['id'];if(_0x386c52)return this['_setSuggestionRange'](_0x386c52,this['_model']['createRange'](_0xf25a53,_0x3efbd6)),_0x386c52;{const _0x912062=this['_setSuggestionData']({'id':_0x270675,'type':'formatBlock:'+_0x1e3a9e,'data':_0x318a1b,'createdAt':new Date(),'authorId':_0x128d03,'attributes':_0x5b4cf2});return this['_addSuggestionMarker']('formatBlock:'+_0x1e3a9e,_0x270675,_0x128d03,this['_model']['createRange'](_0xf25a53,_0x3efbd6)),_0x912062;}}['markMultiRangeBlockFormat'](_0x21b05b,_0x5cf265,_0x3aa9e5=[],_0x57e304=null,_0xd36d30={}){_0x5cf265['formatGroupId']||(_0x5cf265['formatGroupId']=_0x5cf265['commandName']);const _0x28a435=_0x21b05b[0x0];_0x5cf265['multipleBlocks']=_0x28a435['is']('range'),_0x57e304=_0x57e304||Ft(_0x5cf265);const _0x1de267=_0x3aa9e5['map'](_0xc37a20=>Ht(_0xc37a20,this['_model'])),_0x1fd3aa=_0x28a435['is']('range')?_0x21b05b:_0x21b05b['map'](_0x5915c6=>Ht(_0x5915c6,this['_model']));if('never'===this['_trackFormatChanges']){const _0x982e8e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57e304,'accept');return this['forceDefaultExecution'](()=>_0x982e8e(_0x1fd3aa,_0x5cf265,_0xd36d30)),null;}_0x1de267['push'](..._0x1fd3aa);let _0x494781=!0x0;for(const _0x409c31 of _0x1de267)if(!this['_rangeIsInLocalUserInsertion'](_0x409c31)){_0x494781=!0x1;break;}if(_0x494781&&'always'!==this['_trackFormatChanges']){const _0x301b33=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57e304,'accept');return this['forceDefaultExecution'](()=>_0x301b33(_0x1fd3aa,_0x5cf265,_0xd36d30)),null;}const _0x58eb2a=this['editor']['plugins']['get']('Users')['me'];for(const _0x3555d4 of this['getSuggestions']()){if(_0x3555d4['author']['id']!=_0x58eb2a['id'])continue;if('formatBlock'!=_0x3555d4['type']||_0x3555d4['data']['formatGroupId']!=_0x5cf265['formatGroupId'])continue;if(!Kt(_0x3555d4,_0xd36d30))continue;const _0x1b4b6d=_0x3555d4['subType']==_0x57e304;for(let _0x99f3f6=0x0;_0x99f3f6<_0x1fd3aa['length'];_0x99f3f6++){const _0x1ad83f=_0x1fd3aa[_0x99f3f6];for(const _0x4aa4fb of _0x3555d4['getMarkers']()){const _0x3ab10c=_0x4aa4fb['getRange']();if(_0x1ad83f['isEqual'](_0x3ab10c)){_0x1b4b6d?(_0x1fd3aa['splice'](_0x99f3f6,0x1),_0x99f3f6--):_0x3555d4['removeMarker'](_0x4aa4fb['name']);break;}}}}if(0x0==_0x1fd3aa['length'])return null;const _0x652cac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57e304,'join');for(const _0x5cb465 of this['getSuggestions']())if(_0x5cb465['author']['id']==_0x58eb2a['id']&&'formatBlock'==_0x5cb465['type']&&_0x5cb465['data']['formatGroupId']==_0x5cf265['formatGroupId']&&_0x5cb465['subType']==_0x57e304&&Kt(_0x5cb465,_0xd36d30)&&(_0x652cac(_0x5cb465['getRanges'](),_0x1fd3aa)||_0x652cac(_0x1fd3aa,_0x5cb465['getRanges']()))){for(const _0x1a7be2 of _0x1fd3aa)_0x5cb465['addRange'](_0x1a7be2);return _0x5cb465;}const _0x59f23a=_0x3e98cb(),_0x272739=_0x58eb2a['id'],_0x5e461e='formatBlock:'+_0x57e304,_0xf1b373=this['_setSuggestionData']({'id':_0x59f23a,'type':_0x5e461e,'data':_0x5cf265,'createdAt':new Date(),'authorId':_0x272739,'attributes':_0xd36d30});for(const _0x73e533 of _0x1fd3aa)this['_addSuggestionMarker'](_0x5e461e,_0x59f23a,_0x272739,_0x73e533,u['getMultiRangeId']());return _0xf1b373;}['markDeletion'](_0x2d0493,_0xa84e2d=null,_0x4c47d2={}){if(_0x2d0493['isCollapsed'])return null;const _0x2a9b28=this['editor']['plugins']['get']('Users')['me'],_0x41282c=new _0x190639(_0x2d0493['start'],_0x2d0493['end']);for(const {suggestion:_0x400a29,meta:_0x3b73b8}of this['_findSuggestions'](_0x41282c,'insertion'))if(_0x3b73b8['isOwn']&&!_0x3b73b8['isNextTo']){if(_0x400a29['isMultiRange']){const _0x3d9b30=_0x400a29['getRanges']()['filter'](_0x27c1d9=>'$graveyard'!=_0x27c1d9['root']['rootName']);_0x3d9b30['every'](_0x2aac00=>_0x41282c['containsRange'](_0x2aac00,!0x0))&&_0x400a29['discard']();if(_0x3d9b30['some'](_0x1dab5a=>_0x1dab5a['containsRange'](_0x41282c,!0x0))){const _0x4b57cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa84e2d,'accept');return this['forceDefaultExecution'](()=>_0x4b57cf([_0x41282c],null,_0x4c47d2)),null;}}else{const _0x1fe0fb=_0x41282c['getIntersection'](_0x400a29['getFirstRange']());null!==_0x1fe0fb&&_0x400a29['_onDiscard']([_0x1fe0fb],null,_0x4c47d2);}}if(_0x41282c['detach'](),_0x41282c['isCollapsed']||'$graveyard'==_0x41282c['root']['rootName'])return null;let _0x3675f5=null,_0x181766=_0x41282c['start'],_0x135b9d=_0x41282c['end'];const _0x431926=this['_findSuggestions'](_0x41282c,'deletion');for(const {suggestion:_0x37624d,meta:_0x2098ce}of _0x431926){const _0x3b9946=this['_model']['createRange'](_0x181766,_0x135b9d);if(_0x2098ce['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2098ce['containsRangeInObject']&&!_0x2098ce['isInsideObject'])){if(_0x37624d['isMultiRange']){if(!Kt(_0x37624d,_0x4c47d2))continue;let _0x201f63=!0x0;for(const _0x2d4fdd of _0x37624d['getRanges']()){if(_0x2d4fdd['containsRange'](_0x3b9946,!0x0))return _0x37624d;_0x3b9946['containsRange'](_0x2d4fdd)||(_0x201f63=!0x1);}_0x201f63&&_0x37624d['discard']();}else{const _0x311dca=_0x37624d['getFirstRange']();if(_0x311dca['containsRange'](_0x3b9946,!0x0))return _0x37624d;if(!Kt(_0x37624d,_0x4c47d2)){_0x3b9946['containsRange'](_0x311dca)?_0x37624d['removeMarkers']():_0x311dca['containsPosition'](_0x181766)?_0x181766=_0x311dca['end']:_0x311dca['containsPosition'](_0x135b9d)&&(_0x135b9d=_0x311dca['start']);continue;}_0x181766=_0x181766['isBefore'](_0x311dca['start'])?_0x181766:_0x311dca['start'],_0x135b9d=_0x135b9d['isAfter'](_0x311dca['end'])?_0x135b9d:_0x311dca['end'],_0x4c47d2=Object['assign']({},_0x37624d['attributes']),_0x3675f5?_0x311dca['start']['isBefore'](_0x3675f5['getFirstRange']()['start'])?(_0x3675f5['removeMarkers'](),_0x3675f5=_0x37624d):_0x37624d['removeMarkers']():_0x3675f5=_0x37624d;}}}if(_0x3675f5)return this['_setSuggestionRange'](_0x3675f5,this['_model']['createRange'](_0x181766,_0x135b9d)),_0x3675f5;{const _0x4b1855=_0x3e98cb(),_0x23467c=this['_model']['createRange'](_0x181766,_0x135b9d),_0x4a60f8=_0x2a9b28['id'],_0x498840=_0xa84e2d?'deletion:'+_0xa84e2d:'deletion',_0xa1373=this['_setSuggestionData']({'id':_0x4b1855,'type':_0x498840,'createdAt':new Date(),'authorId':_0x4a60f8,'attributes':_0x4c47d2});return this['_addSuggestionMarker'](_0x498840,_0x4b1855,_0x4a60f8,_0x23467c),_0xa1373;}}['markMultiRangeDeletion'](_0x5960e8,_0x1a9d82='multi',_0x3b06ea={}){const _0x35df53=this['editor']['plugins']['get']('Users')['me'],_0x3bedc0=_0x5960e8['map'](_0x450aeb=>new _0x190639(_0x450aeb['start'],_0x450aeb['end'])),_0x2e30f9=new Set();for(const {suggestion:_0x5d2b8b,meta:_0x5b55fb}of this['_findSuggestions'](_0x3bedc0,'insertion'))_0x5b55fb['isOwn']&&!_0x5b55fb['isNextTo']&&_0x2e30f9['add'](_0x5d2b8b);for(const _0x375245 of _0x2e30f9)if(_0x375245['isMultiRange']){const _0x27bf7c=_0x375245['getRanges']();(!_0x375245['attributes']||!_0x375245['attributes']['skipNestingCheck'])&&(_0x27bf7c['every'](_0x1b42d9=>_0x3bedc0['some'](_0x35f04a=>_0x35f04a['containsRange'](_0x1b42d9,!0x0)))&&_0x375245['discard']());if(_0x3bedc0['every'](_0x1ded14=>_0x27bf7c['some'](_0x13a183=>_0x13a183['containsRange'](_0x1ded14,!0x0)))){const _0xeb9f08=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a9d82,'accept');return this['forceDefaultExecution'](()=>_0xeb9f08(_0x5960e8,null,_0x3b06ea)),null;}}else{const _0x441d45=_0x375245['getFirstRange']();_0x3bedc0['some'](_0x48235e=>_0x48235e['containsRange'](_0x441d45,!0x0))&&_0x375245['discard']();if(_0x3bedc0['every'](_0x32eadc=>_0x441d45['containsRange'](_0x32eadc,!0x0))){const _0x43edb7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a9d82,'accept');return this['forceDefaultExecution'](()=>_0x43edb7(_0x3bedc0,null,_0x3b06ea)),null;}}const _0x56d78b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a9d82,'join');let _0x225136=null;for(const _0x530a90 of this['getSuggestions']())if(_0x530a90['author']['id']==_0x35df53['id']&&_0x530a90['isInContent']&&'deletion'==_0x530a90['type']&&_0x530a90['subType']==_0x1a9d82&&Kt(_0x530a90,_0x3b06ea)&&(_0x56d78b(_0x530a90['getRanges'](),_0x3bedc0)||_0x56d78b(_0x3bedc0,_0x530a90['getRanges']()))){if(_0x225136){if(_0x530a90['commentThread']&&_0x530a90['commentThread']['length'])continue;for(const _0x19c2a9 of _0x530a90['getRanges']())_0x225136['isIntersectingWithRange'](_0x19c2a9)||_0x225136['addRange'](_0x19c2a9);_0x530a90['removeMarkers']();}else{_0x225136=_0x530a90;for(const _0x220043 of _0x3bedc0)_0x530a90['isIntersectingWithRange'](_0x220043)||_0x530a90['addRange'](_0x220043);}}if(_0x225136)return _0x225136;_0x2e30f9['clear']();for(const {suggestion:_0x2eeda7,meta:_0x20e8ae}of this['_findSuggestions'](_0x3bedc0,'deletion'))_0x20e8ae['isOwn']&&(this['_mergeNestedSuggestions']||!_0x20e8ae['containsRangeInObject']&&!_0x20e8ae['isInsideObject'])&&Kt(_0x2eeda7,_0x3b06ea)&&_0x2e30f9['add'](_0x2eeda7);for(const _0x194e69 of _0x2e30f9){const _0x2a97de=_0x194e69['getRanges']();if(!_0x3b06ea||!_0x3b06ea['skipNestingCheck']){if(_0x3bedc0['every'](_0x3280f9=>_0x2a97de['some'](_0x7dea0e=>_0x7dea0e['containsRange'](_0x3280f9,!0x0))))return _0x194e69;}(!_0x194e69['attributes']||!_0x194e69['attributes']['skipNestingCheck'])&&(_0x2a97de['every'](_0x501a74=>_0x3bedc0['some'](_0x252a35=>_0x252a35['containsRange'](_0x501a74,!0x0)))&&_0x194e69['discard']());}const _0x4b3baf=_0x3e98cb(),_0x246612=_0x35df53['id'],_0x2bf9a2='deletion:'+_0x1a9d82,_0x209861=this['_setSuggestionData']({'id':_0x4b3baf,'type':_0x2bf9a2,'createdAt':new Date(),'authorId':_0x246612,'attributes':_0x3b06ea});for(const _0x812e54 of _0x3bedc0)_0x812e54['detach'](),_0x812e54['isCollapsed']||'$graveyard'==_0x812e54['root']['rootName']||this['_addSuggestionMarker'](_0x2bf9a2,_0x4b3baf,_0x246612,_0x812e54,u['getMultiRangeId']());return _0x209861;}['markAttributeChange'](_0x2d6d88,_0x2e035d,_0x33d14a,_0x42863b,_0x318f3f){if(_0x2d6d88['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x11f1d7=this['editor']['plugins']['get']('Users')['me']['id'],_0x3e709d=Array['from'](this['_suggestions']['values']())['filter'](_0x5c6678=>'attribute'==_0x5c6678['type']&&_0x5c6678['data']['key']==_0x2e035d&&_0x5c6678['isIntersectingWithRange'](_0x2d6d88));if('default'===this['_trackFormatChanges']){const _0x429874=this['_findSuggestions'](_0x2d6d88,'insertion')['filter'](({meta:_0x2c62e2})=>_0x2c62e2['isOwn']&&!_0x2c62e2['isInsideObject']&&!_0x2c62e2['isNextTo'])['map'](({suggestion:_0x3d722a})=>_0x3d722a);_0x3e709d['unshift'](..._0x429874);}const _0x55305d=new Map([[_0x2d6d88,_0x33d14a]]);for(const _0x1c700c of _0x3e709d){const _0x1072be='attribute'==_0x1c700c['type']?_0x1c700c['data']['oldValue']:void 0x0,_0x45134d=_0x1c700c['getFirstRange'](),_0x3aedc1=Array['from'](_0x55305d['keys']())['find'](_0x2c5b19=>_0x2c5b19['isIntersecting'](_0x45134d));if(!_0x3aedc1)continue;const _0x4783cd=_0x3aedc1['getDifference'](_0x45134d);this['_isBlockAttribute'](_0x2e035d)&&'insertion'==_0x1c700c['type']&&0x0!=_0x4783cd['length']||(_0x55305d['delete'](_0x3aedc1),_0x4783cd['forEach'](_0x233288=>{_0x55305d['set'](_0x233288,_0x33d14a);}),'insertion'!=_0x1c700c['type']&&_0x1072be!=_0x42863b&&_0x55305d['set'](_0x3aedc1['getIntersection'](_0x45134d),_0x1072be));}const _0x346bcb=[];for(const [_0x528b23,_0x2e2ada]of _0x55305d){const _0x341fbb=_0x3e98cb(),_0x2820bf={'key':_0x2e035d,'oldValue':_0x2e2ada,'newValue':_0x42863b};_0x2e035d['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':_0x2e035d});const _0x522ce2=('attribute:'+(_0x2e035d+'|'+Ft({'newValue':_0x42863b})))['substring'](0x0,0x3c),_0x54c7d1=this['_setSuggestionData']({'id':_0x341fbb,'type':_0x522ce2,'data':_0x2820bf,'createdAt':new Date(),'authorId':_0x11f1d7,'attributes':_0x318f3f});_0x346bcb['push'](_0x54c7d1),this['_addSuggestionMarker'](_0x522ce2,_0x341fbb,_0x11f1d7,_0x528b23);}return _0x346bcb;}['enableDefaultAttributesIntegration'](_0x337d42){this['enableCommand'](_0x337d42,(_0x1b83d7,..._0x411afe)=>{this['_recordAttributeChanges'](()=>{_0x1b83d7(..._0x411afe);});});}['registerBlockAttribute'](_0x21327d){this['_blockAttributeKeys']['add'](_0x21327d);}['registerInlineAttribute'](_0x50c125){this['_inlineAttributeKeys']['add'](_0x50c125);}['_getAttributeKey'](_0x10eec1){return'attribute'==_0x10eec1['type']?_0x10eec1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4945f0,_0x18317b){const _0x51c216=_0x4945f0['getFirstMarker']();this['_model']['change'](_0x26b633=>{_0x26b633['updateMarker'](_0x51c216,{'range':_0x18317b});});}['_addThreadToSuggestion'](_0x277ae6){const _0x7b9d84=_0x277ae6['id'],_0x44246b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x7b9d84)||this['_commentsRepository']['addCommentThread']({'channelId':_0x44246b,'threadId':_0x7b9d84,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x23e6f3=this['_commentsRepository']['getCommentThread'](_0x7b9d84);_0x23e6f3['unbind']('isRemovable'),_0x23e6f3['isRemovable']=!0x1,_0x277ae6['commentThread']=_0x23e6f3;}['_checkSuggestionCorrectness'](_0x50465a,_0x7f39b3,_0x405a1c,_0x3622f4){if(_0x50465a['type']!=_0x7f39b3||_0x50465a['subType']!=_0x405a1c||_0x50465a['creator']['id']!=_0x3622f4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x443412('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xedbee3,_0x67d14a){const _0x164a21=_0xedbee3['getFirstRange']();if(_0x67d14a['isEqual'](_0x164a21))_0xedbee3['removeMarkers']();else{if(_0x164a21['containsRange'](_0x67d14a)){const _0x5c08e1=this['_model']['createPositionAt'](_0x67d14a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xedbee3,this['_model']['createRange'](_0x164a21['start'],_0x5c08e1));const _0x54e6ed=_0x3e98cb(),_0x5c3cfc=_0xedbee3['creator']['id'],_0xa44b59=_0xedbee3['type']+':'+_0xedbee3['subType'];this['_setSuggestionData']({'id':_0x54e6ed,'type':_0xa44b59,'createdAt':new Date(),'authorId':_0x5c3cfc,'data':_0xedbee3['data'],'attributes':_0xedbee3['attributes']});const _0x3b9535=this['_model']['createPositionAt'](_0x67d14a['end']['parent'],'after'),_0x3d7125=this['_model']['createRange'](_0x3b9535,_0x164a21['end']);this['_addSuggestionMarker'](_0xa44b59,_0x54e6ed,_0x5c3cfc,_0x3d7125);}else{if(_0x164a21['containsPosition'](_0x67d14a['start'])){const _0x5bd8df=this['_model']['createPositionAt'](_0x67d14a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xedbee3,this['_model']['createRange'](_0x164a21['start'],_0x5bd8df));}else{const _0x1ce59a=this['_model']['createPositionAt'](_0x67d14a['end']['parent'],'after');this['_setSuggestionRange'](_0xedbee3,this['_model']['createRange'](_0x1ce59a,_0x164a21['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x408e50){for(const {suggestion:_0x5aeb44,meta:_0x59909c}of this['_findSuggestions'](_0x408e50,'insertion')){if(!_0x59909c['isOwn'])continue;const _0x2f7021=_0x5aeb44['getRanges']();for(const _0x237b4b of _0x2f7021)if(!_0x408e50['getDifference'](_0x237b4b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4a0857){const _0x4c4515=this['editor']['plugins']['get']('Users')['getUser'](_0x4a0857);if(!_0x4c4515)throw new _0x443412('track-changes-user-not-found',this);return _0x4c4515;}['_getExternalAuthor'](_0x54b545){const _0x30e519=this['editor']['plugins']['get']('Users'),_0x40678a=_0x567c87('external:'+_0x54b545),_0x56350b=_0x30e519['getUser'](_0x40678a);return _0x56350b||_0x30e519['addUser']({'id':_0x40678a,'name':_0x54b545});}['_createSuggestion'](_0x3dfe22,_0x24ec15,_0x2583b7,_0x1e37dd,_0x4c801a){const _0x4485d4=this['_getAuthorFromId'](_0x1e37dd),_0x25fb6e=this['_suggestionFactory']['buildSuggestion'](_0x3dfe22,_0x24ec15,_0x2583b7,_0x4485d4,_0x4c801a,_0x583244=>{this['_updateSuggestionData'](_0x2583b7,{'attributes':_0x583244});const _0x44378a=this['getSuggestion'](_0x2583b7);this['_joinWithAdjacentSuggestions'](new Set([_0x44378a])),this['_refreshSuggestionsChain'](new Set([_0x44378a]));});return this['listenTo'](_0x25fb6e,'accept',()=>{this['_updateSuggestionData'](_0x2583b7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x25fb6e,'discard',()=>{this['_updateSuggestionData'](_0x2583b7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2583b7,_0x25fb6e),this['_suggestionState']['set'](_0x25fb6e,'notReady'),_0x25fb6e;}['_splitMarkerName'](_0x1e66de){const _0x1755f1=_0x1e66de['split'](':');return{'group':_0x1755f1[0x0],'type':_0x1755f1[0x1],'subType':_0x1755f1['length']>=0x5?_0x1755f1[0x2]:null,'id':_0x1755f1['length']<0x5?_0x1755f1[0x2]:_0x1755f1[0x3],'authorId':_0x1755f1['length']<0x5?_0x1755f1[0x3]:_0x1755f1[0x4],'markerCount':0x6==_0x1755f1['length']?_0x1755f1[0x5]:null};}['_breakSuggestionMarker'](_0x11146e,_0x2de644,_0x32e633){const _0x395ca1=_0x11146e['getFirstRange'](),_0x56b57b=_0x395ca1['start'],_0x4f8204=_0x395ca1['end'];this['_setSuggestionRange'](_0x11146e,this['_model']['createRange'](_0x56b57b,_0x2de644));const _0x1145cf=_0x3e98cb(),_0xec6e1a=_0x11146e['creator']['id'],_0x4b0664=_0x11146e['type']+(_0x11146e['subType']?':'+_0x11146e['subType']:'');this['_setSuggestionData']({'id':_0x1145cf,'type':_0x4b0664,'createdAt':new Date(),'authorId':_0xec6e1a,'originalSuggestionId':_0x11146e['id'],'attributes':_0x11146e['attributes'],'data':_0x11146e['data']});const _0x243d25=this['_getAttributeKey'](_0x11146e);('formatBlock'==_0x11146e['type']||_0x243d25&&this['_isBlockAttribute'](_0x243d25))&&(_0x32e633=this['_model']['createPositionBefore'](_0x32e633['parent'])),this['_addSuggestionMarker'](_0x4b0664,_0x1145cf,_0xec6e1a,this['_model']['createRange'](_0x32e633,_0x4f8204));}['_findSuggestions'](_0x58cdcf,_0x4e6a3e=null){const _0x1ba149=[],_0x2c3028=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x58cdcf)||(_0x58cdcf=[_0x58cdcf]);for(const _0x33d718 of this['getSuggestions']()){if(!_0x33d718['isInContent'])continue;if(_0x4e6a3e&&_0x33d718['type']!=_0x4e6a3e)continue;let _0x3e0651=!0x1;for(const _0x5090a9 of _0x33d718['getRanges']()){for(const _0x80ad53 of _0x58cdcf){const _0x33163a=_0x80ad53['start']['isEqual'](_0x5090a9['end'])||_0x80ad53['end']['isEqual'](_0x5090a9['start']);if(_0x33163a||_0x80ad53['getIntersection'](_0x5090a9)){const _0x4162d6=_0x80ad53['containsRange'](_0x5090a9)&&Vt(this['_model']['schema'],_0x5090a9['start'],_0x80ad53),_0x1d1a35=_0x5090a9['containsRange'](_0x80ad53)&&Vt(this['_model']['schema'],_0x80ad53['start'],_0x5090a9);_0x1ba149['push']({'suggestion':_0x33d718,'meta':{'isOwn':_0x2c3028==_0x33d718['author'],'isNextTo':_0x33163a,'isInsideObject':_0x4162d6,'containsRangeInObject':_0x1d1a35}}),_0x3e0651=!0x0;break;}}if(_0x3e0651)break;}}return _0x1ba149;}['_addSuggestionMarker'](_0x5d1e80,_0x516239,_0xf1932e,_0xc6bf7a,_0x46bc32){this['_model']['change'](_0x7a49a9=>{let _0xf81b1a='suggestion:'+_0x5d1e80+':'+_0x516239+':'+_0xf1932e;_0x46bc32&&(_0xf81b1a=_0xf81b1a+':'+_0x46bc32),_0x7a49a9['addMarker'](_0xf81b1a,{'range':_0xc6bf7a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x356e96){const _0x6bd87e=_0x356e96['previous'],_0x184b18=_0x356e96['next'];_0x356e96['previous']=null,_0x356e96['next']=null,null!=_0x6bd87e&&_0x6bd87e['next']==_0x356e96&&(_0x6bd87e['next']=_0x184b18),null!=_0x184b18&&_0x184b18['previous']==_0x356e96&&(_0x184b18['previous']=_0x6bd87e),'ready'==this['_suggestionState']['get'](_0x356e96)&&(this['_suggestionState']['set'](_0x356e96,'removed'),this['fire']('suggestionUnloaded',_0x356e96,_0x6bd87e,_0x184b18));}['_setSuggestionData'](_0x4fd40c){const _0x1e37ad=_0x4fd40c['id'],_0xfeb6c9=this['addSuggestionData'](_0x4fd40c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2a1a58=this['editor']['plugins']['get']('PendingActions'),_0x3ba54e=_0xfeb6c9['hasComments'],_0x5adc59=_0xfeb6c9['subType']?_0xfeb6c9['type']+':'+_0xfeb6c9['subType']:_0xfeb6c9['type'],_0x35e208=this['editor']['locale'],_0x552f2f=_0x2a1a58['add'](o(_0x35e208,'PENDING_ACTION_SUGGESTION')),_0x315031={'id':_0x1e37ad,'type':_0x5adc59,'hasComments':_0x3ba54e,'data':_0x4fd40c['data']||null,'originalSuggestionId':_0x4fd40c['originalSuggestionId']||null,'attributes':_0xfeb6c9['attributes']};this['_adapter']['addSuggestion'](_0x315031)['then'](_0x201869=>{_0xfeb6c9['_saved']=!0x0,_0x2a1a58['remove'](_0x552f2f),_0x201869&&_0x201869['createdAt']&&(this['_suggestions']['get'](_0x1e37ad)['createdAt']=_0x201869['createdAt']);})['catch'](_0x9575aa=>{throw _0x5d59b3('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xfeb6c9['discard']();}),_0xfeb6c9['stopListening'](),this['_suggestions']['delete'](_0xfeb6c9['id']),this['_suggestionState']['delete'](_0xfeb6c9),_0x9575aa;});}return _0xfeb6c9;}['_isBlockAttribute'](_0x2efda0){return this['_blockAttributeKeys']['has'](_0x2efda0);}['_updateSuggestionData'](_0x3872eb,_0x2f5127){const _0x5510fb=this['editor']['plugins']['get']('PendingActions'),_0x355b8d=this['getSuggestion'](_0x3872eb);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x355b8d['_saved']){const _0x1f99fd=_0x5510fb['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3872eb,_0x2f5127)['then'](()=>{_0x5510fb['remove'](_0x1f99fd);});}else _0x355b8d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3872eb,_0x2f5127);});}}['_getSuggestionData'](_0x20c674){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x443412('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x20c674);}['_handleNewSuggestionMarker'](_0x1353c4){const {id:_0x35ba5c,type:_0x3f77a2,subType:_0x4bf2bc,authorId:_0x4a223d}=this['_splitMarkerName'](_0x1353c4),_0x361749=this['_suggestions']['get'](_0x35ba5c)||this['_createSuggestion'](_0x3f77a2,_0x4bf2bc,_0x35ba5c,_0x4a223d,{});switch(this['_checkSuggestionCorrectness'](_0x361749,_0x3f77a2,_0x4bf2bc,_0x4a223d),this['_suggestionState']['get'](_0x361749)){case'notReady':this['_getSuggestionData'](_0x35ba5c)['then'](_0x3c7377=>{let _0x266045=Promise['resolve']();_0x3c7377['hasComments']&&(_0x266045=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x35ba5c})),_0x266045['then'](()=>{this['addSuggestionData'](_0x3c7377)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x361749,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x35ba5c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x361749,'ready'),this['fire']('suggestionLoaded',_0x361749);break;case'ready':this['fire']('suggestionChanged',_0x361749);}return _0x361749['addMarkerName'](_0x1353c4),_0x361749;}['_refreshSuggestionsChain'](_0x20daad){const _0x1d9d1=Array['from'](_0x20daad),_0x22f1c2=_0x1d9d1['filter'](_0x284902=>'attribute'==_0x284902['type']);this['_refreshAttributeSuggestionsChain'](_0x22f1c2);const _0xb72b8a=_0x1d9d1['filter'](_0x2df5bd=>!_0x2df5bd['isMultiRange']&&'attribute'!=_0x2df5bd['type']),_0x5e461b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x318f18=>!_0x318f18['isMultiRange']&&'attribute'!=_0x318f18['type']),_0x197c70=_0x5e461b['filter'](_0x5dbbbc=>!_0x20daad['has'](_0x5dbbbc)),_0x24ed82=new Map(_0x5e461b['map'](_0x2655fb=>[_0x2655fb,this['_suggestionFactory']['getSuggestionCallback'](_0x2655fb['type'],_0x2655fb['subType'],'chain')])),_0x5d04f9=new Map(_0x5e461b['map'](_0x42815a=>[_0x42815a,_0x42815a['getFirstRange']()])),_0x2fc619=new Set(),_0x1d103d=new Set();for(let _0xf2fe8c=0x0;_0xf2fe8c<_0xb72b8a['length'];_0xf2fe8c++)_0x51b401(_0xb72b8a[_0xf2fe8c],_0xb72b8a,_0xf2fe8c+0x1);for(let _0xf23e61=0x0;_0xf23e61<_0xb72b8a['length'];_0xf23e61++)_0x51b401(_0xb72b8a[_0xf23e61],_0x197c70,0x0);const _0x108ae5=new Set();for(let _0x36a4ff=0x0;_0x36a4ff<_0xb72b8a['length'];_0x36a4ff++){const _0x143747=_0xb72b8a[_0x36a4ff];!_0x1d103d['has'](_0x143747)&&_0x143747['previous']&&(_0x108ae5['add'](_0x143747['previous']),_0x143747['previous']['next']===_0x143747&&(_0x143747['previous']['next']=null),_0x143747['previous']=null),!_0x2fc619['has'](_0x143747)&&_0x143747['next']&&(_0x108ae5['add'](_0x143747['next']),_0x143747['next']['previous']===_0x143747&&(_0x143747['next']['previous']=null),_0x143747['next']=null);}function _0x51b401(_0x2dd901,_0x2096a4,_0xac65b5){for(let _0x20f874=_0xac65b5;_0x20f874<_0x2096a4['length'];_0x20f874++){const _0x64921d=_0x197d7b(_0x2dd901,_0x2096a4[_0x20f874]);_0x64921d&&(_0x64921d[0x0]['next']=_0x64921d[0x1],_0x64921d[0x1]['previous']=_0x64921d[0x0],_0x2fc619['add'](_0x64921d[0x0]),_0x1d103d['add'](_0x64921d[0x1]));}}function _0x197d7b(_0x73c0c0,_0x8f2b31){if(_0x73c0c0['author']['id']!==_0x8f2b31['author']['id'])return null;const _0xe6828b=_0x24ed82['get'](_0x73c0c0)(_0x73c0c0,_0x8f2b31,_0x5d04f9['get'](_0x73c0c0),_0x5d04f9['get'](_0x8f2b31));if(!_0xe6828b)return null;return _0x24ed82['get'](_0x8f2b31)(_0x73c0c0,_0x8f2b31,_0x5d04f9['get'](_0x73c0c0),_0x5d04f9['get'](_0x8f2b31))?_0xe6828b[0x1]['commentThread']&&_0xe6828b[0x1]['commentThread']['length']?null:_0xe6828b:null;}_0x108ae5['size']&&this['_refreshSuggestionsChain'](_0x108ae5);}['_refreshAttributeSuggestionsChain'](_0x1c97b0){if(0x0==_0x1c97b0['length'])return;const _0x1a9c73=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11c0cb=>'attribute'==_0x11c0cb['type']&&_0x11c0cb['_isDataLoaded']),_0x502315=[],_0xf3315c=new Map();for(const _0x51c5ff of _0x1a9c73){const _0x4bd5f9=_0x567c87(_0x51c5ff['attributes']);_0xf3315c['has'](_0x4bd5f9)||(_0xf3315c['set'](_0x4bd5f9,_0x502315['length']),_0x502315['push']([]));const _0x511a6a=_0xf3315c['get'](_0x4bd5f9);_0x502315[_0x511a6a]['push'](_0x51c5ff);}!(function(){_0x502315['sort']((_0x5b8172,_0x1c7838)=>{const _0x3f7893=_0x5b8172[0x0]['createdAt'],_0x420f4e=_0x1c7838[0x0]['createdAt'];return _0x3f7893==_0x420f4e?_0x5b8172[0x0]['attributes']['groupId']<_0x1c7838[0x0]['attributes']['groupId']?-0x1:0x1:_0x3f7893<_0x420f4e?-0x1:0x1;});for(const _0x4d8b19 of _0x502315)_0x4d8b19['sort']((_0x238882,_0xdc606d)=>_0x238882['id']<_0xdc606d['id']?-0x1:0x1);}());for(let _0x222e7a=0x0;_0x222e7a<_0x502315['length'];_0x222e7a++){if(0x0==_0x502315[_0x222e7a]['length'])continue;const _0x5674a6=[];for(let _0x41d5b5=_0x222e7a+0x1;_0x41d5b5<_0x502315['length'];_0x41d5b5++)0x0!=_0x502315[_0x41d5b5]['length']&&_0xadcff4(_0x502315[_0x222e7a],_0x502315[_0x41d5b5])&&_0x5674a6['push'](_0x41d5b5);for(const _0x45d1e6 of _0x5674a6)_0x502315[_0x222e7a]=_0x502315[_0x222e7a]['concat'](_0x502315[_0x45d1e6]),_0x502315[_0x45d1e6]=[];}for(const _0x5ae15e of _0x502315)for(let _0x3a38f5=0x0;_0x3a38f5<_0x5ae15e['length'];_0x3a38f5++){const _0x207164=_0x5ae15e[_0x3a38f5+0x1]||null;_0x5ae15e[_0x3a38f5]['next']!==_0x207164&&(_0x5ae15e[_0x3a38f5]['next']=_0x207164);}for(const _0x123fd0 of _0x502315)for(let _0xf14b31=0x0;_0xf14b31<_0x123fd0['length'];_0xf14b31++){const _0x507d6c=_0x123fd0[_0xf14b31-0x1]||null;_0x123fd0[_0xf14b31]['previous']!==_0x507d6c&&(_0x123fd0[_0xf14b31]['previous']=_0x507d6c);}function _0xadcff4(_0x5a28e4,_0x3b9706){if(_0x5a28e4[0x0]['attributes']['groupId']!==_0x3b9706[0x0]['attributes']['groupId']&&_0x5a28e4[0x0]['author']!==_0x3b9706[0x0]['author'])return!0x1;if(!function(_0x244688,_0xb064ee){if(!_0x244688['hasComments']&&!_0xb064ee['hasComments'])return!0x0;if(_0x244688['hasComments']&&_0xb064ee['hasComments'])return!0x1;if(_0x244688['hasComments']&&_0xb064ee['createdAt']<_0x244688['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xb064ee['hasComments']&&_0x244688['createdAt']<_0xb064ee['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5a28e4[0x0],_0x3b9706[0x0]))return!0x1;const _0xb03a45=Et(_0x5a28e4[0x0]['attributes'],'groupId'),_0x596f87=Et(_0x3b9706[0x0]['attributes'],'groupId');if(!_0x3a2d98(_0xb03a45,_0x596f87))return!0x1;return!!_0x5a28e4['every'](_0x5be232=>_0x3b9706['some'](_0x4b198f=>_0x5be232['getFirstRange']()['isEqual'](_0x4b198f['getFirstRange']())))&&_0x3b9706['every'](_0x57b7d4=>_0x5a28e4['some'](_0x21c785=>_0x57b7d4['getFirstRange']()['isEqual'](_0x21c785['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5c7b24){const _0x538f48=Array['from'](_0x5c7b24),_0x35e6b8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1744a2=_0x35e6b8['filter'](_0x332d2f=>!_0x5c7b24['has'](_0x332d2f)),_0x12f018=new Map(_0x538f48['map'](_0x17b8e9=>[_0x17b8e9,this['_suggestionFactory']['getSuggestionCallback'](_0x17b8e9['type'],_0x17b8e9['subType'],'join')])),_0x1a2da5=new Map(_0x35e6b8['map'](_0x36e9bd=>[_0x36e9bd,_0x36e9bd['getRanges']()]));for(let _0x491274=0x0;_0x491274<_0x538f48['length'];_0x491274++){if(_0x1100bd(this,_0x538f48[_0x491274],_0x538f48,_0x491274+0x1))return!0x0;}for(let _0x4a175e=0x0;_0x4a175e<_0x538f48['length'];_0x4a175e++){if(_0x1100bd(this,_0x538f48[_0x4a175e],_0x1744a2,0x0))return!0x0;}return!0x1;function _0x1100bd(_0x50afc1,_0x2d8edb,_0x4e9427,_0x23d642){for(let _0x12b604=_0x23d642;_0x12b604<_0x4e9427['length'];_0x12b604++){const _0x23142b=_0x4e9427[_0x12b604];if(_0x23142b['type']!==_0x2d8edb['type']||_0x23142b['author']['id']!==_0x2d8edb['author']['id']||_0x23142b['subType']!==_0x2d8edb['subType'])continue;if(!zt(_0x2d8edb,_0x23142b))continue;if('attribute'==_0x2d8edb['type']&&_0x2d8edb['data']['oldValue']!=_0x23142b['data']['oldValue'])continue;if('attribute'==_0x2d8edb['type']&&_0x50afc1['_isBlockAttribute'](_0x2d8edb['data']['key']))continue;if('formatBlock'==_0x2d8edb['type']){const _0x3f137d=_0x50afc1['editor']['model'],_0x21aa40=_0x2d8edb['getContainedElement']();if(_0x21aa40&&(_0x3f137d['schema']['isObject'](_0x21aa40)||_0x3f137d['schema']['isLimit'](_0x21aa40)))continue;}const _0x1f1d08=_0x12f018['get'](_0x2d8edb),_0x283b5a=_0x1a2da5['get'](_0x2d8edb),_0x187764=_0x1a2da5['get'](_0x23142b),_0x159998=_0x2d8edb['commentThread']&&_0x2d8edb['commentThread']['length'],_0x519687=_0x23142b['commentThread']&&_0x23142b['commentThread']['length'];if(!_0x159998&&_0x1f1d08(_0x187764,_0x283b5a))return _0x50afc1['_joinSuggestions'](_0x23142b,_0x2d8edb),_0x1a2da5['delete'](_0x2d8edb),!0x0;if(!_0x519687&&_0x1f1d08(_0x283b5a,_0x187764))return _0x50afc1['_joinSuggestions'](_0x2d8edb,_0x23142b),_0x1a2da5['delete'](_0x23142b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x155f11,_0x387a63){if(_0x155f11['isMultiRange']){for(const _0x27affc of _0x387a63['getRanges']())_0x155f11['addRange'](_0x27affc);}else{const _0x98b675=_0x387a63['getFirstRange']()['end'];this['_setSuggestionRange'](_0x155f11,this['_model']['createRange'](_0x155f11['getFirstRange']()['start'],_0x98b675));}_0x387a63['removeMarkers']();}['_getMarkerAnnouncementText'](_0x56042a,_0x484291,_0x3398fc){const _0x198022=_0x56042a['startsWith']('format')||_0x56042a['startsWith']('attribute')?'FORMATTING':_0x56042a['toUpperCase']();return o(this['editor']['locale'],_0x484291+'_'+_0x198022+'_SUGGESTION_ANNOUNCEMENT',_0x3398fc);}['_initAriaMarkerChangeAnnouncements'](){const _0x46d7c1=this['editor'];if(!_0x46d7c1['ui'])return;const {ariaLiveAnnouncer:_0x75411a}=_0x46d7c1['ui'];_0x499a36(this['_model'],({left:_0x517648,entered:_0x29ea30})=>{for(const _0x15cc39 of _0x517648){const {group:_0x94cfee,type:_0x56f363}=this['_splitMarkerName'](_0x15cc39['name']);if('suggestion'===_0x94cfee){_0x75411a['announce'](this['_getMarkerAnnouncementText'](_0x56f363,'LEAVE'));break;}}for(const _0x4f94bf of _0x29ea30){const {group:_0xb37452,type:_0xe61abb}=this['_splitMarkerName'](_0x4f94bf['name']);if('suggestion'===_0xb37452){_0x75411a['announce'](this['_getMarkerAnnouncementText'](_0xe61abb,'ENTER',_0x2b9d18(_0x3b30c0)));break;}}});}['_processAttributeChanges'](_0x373ea1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x182985=this['editor'],_0x66826a=_0x182985['model']['document']['differ']['getChanges']();if(0x0==_0x66826a['length'])return!0x1;const _0x1de832=[],_0xec83f3=_0x66826a['filter'](_0x13869d=>'attribute'==_0x13869d['type']),_0x3ae878=_0x66826a['filter'](_0x2b4999=>'insert'==_0x2b4999['type']&&'$text'!=_0x2b4999['name']),_0x2dc7be=_0x66826a['filter'](_0x3c8c8c=>'remove'==_0x3c8c8c['type']&&'$text'!=_0x3c8c8c['name']);for(const _0x40d4b2 of _0xec83f3)_0x1de832['push']({'key':_0x40d4b2['attributeKey'],'newValue':_0x40d4b2['attributeNewValue'],'oldValue':_0x40d4b2['attributeOldValue'],'range':Jt(_0x40d4b2['range'],_0x182985['model'])});for(const _0x4c5f76 of _0x3ae878){const _0x522e6f=_0x2dc7be['find'](_0x22de5f=>_0x22de5f['position']['isEqual'](_0x4c5f76['position']));_0x522e6f&&_0x1de832['push']({'key':m,'newValue':_0x4c5f76['name'],'oldValue':_0x522e6f['name'],'range':_0x182985['model']['createRangeOn'](_0x4c5f76['position']['nodeAfter'])});}return 0x0!=_0x1de832['length']&&this['_reduceExistingSuggestions'](_0x373ea1,_0x1de832);}['_processAttributeSuggestions'](_0x75a39f){let _0x39035e=!0x1;const _0x75de50=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4a1d8c=>_0x4a1d8c['data']['newRange']&&_0x4a1d8c['name']['startsWith']('suggestion:attribute:'));for(const _0x194d41 of _0x75de50){const {subType:_0x494991,id:_0x2f0c4d}=this['_splitMarkerName'](_0x194d41['name']),_0x3d0fe2=_0x494991['split']('|')[0x0];for(const _0x2f8711 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2f8711['id']!=_0x2f0c4d&&'attribute'==_0x2f8711['type']&&_0x2f8711['data']&&_0x2f8711['data']['key']==_0x3d0fe2&&_0x2f8711['getFirstRange']()['isIntersecting'](_0x194d41['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2f8711,_0x194d41['data']['newRange'],_0x75a39f),_0x39035e=!0x0);}return _0x39035e;}['_recordAttributeChanges'](_0x2c8563){this['_recordAttributeSuggestions']=!0x0,_0x2c8563();}['_isRegisteredAttribute'](_0x3ce0c8){const _0x408ede=this['_isBlockAttribute'](_0x3ce0c8),_0x463a6f=this['_inlineAttributeKeys']['has'](_0x3ce0c8);return _0x408ede||_0x463a6f;}['_reduceExistingSuggestions'](_0xfd4387,_0x59273e){if(0x0==_0x59273e['length'])return!0x1;let _0x63194e=!0x1;for(const _0x8ec45d of _0x59273e){const _0x4c9ddd=this['_findSuggestions'](_0x8ec45d['range'],'attribute')['filter'](_0x473595=>!_0x473595['meta']['isNextTo'])['map'](_0x528247=>_0x528247['suggestion']),_0x42c3cd=_0x567c87({'newValue':_0x8ec45d['newValue']});_0x4c9ddd['filter'](_0x1b0de8=>{const [_0x1208b6,_0x5430ae]=_0x1b0de8['subType']['split']('|');return _0x1208b6==_0x8ec45d['key']&&_0x5430ae!=_0x42c3cd;})['forEach'](_0x2ef675=>{this['_reduceSuggestionAttributeRange'](_0x2ef675,_0x8ec45d['range'],_0xfd4387),_0x63194e=!0x0;});}return _0x63194e;}['_reduceSuggestionAttributeRange'](_0xfaa21d,_0x4ba433,_0x5a47a9){const _0x1bdc43=_0xfaa21d['getFirstRange']()['getDifference'](_0x4ba433);0x0!==_0x1bdc43['length']?0x1!==_0x1bdc43['length']?this['_breakSuggestionMarker'](_0xfaa21d,_0x4ba433['start'],_0x4ba433['end']):this['_setSuggestionRange'](_0xfaa21d,_0x1bdc43[0x0]):_0x5a47a9['removeMarker'](_0xfaa21d['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x9cad14){this['_editor']=_0x9cad14,this['_model']=_0x9cad14['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3c9020,_0x3c0130,_0x152411,_0x32e8bb,_0x2bcd55,_0x2391d1){return new u(this['_model'],{'type':_0x3c9020,'subType':_0x3c0130,'id':_0x152411,'author':_0x32e8bb,'creator':_0x32e8bb,'attributes':_0x2bcd55,'onAttributesChange':_0x2391d1,'onAccept':(..._0x4c8f17)=>this['getSuggestionCallback'](_0x3c9020,_0x3c0130,'accept')(..._0x4c8f17),'onDiscard':(..._0x254f97)=>this['getSuggestionCallback'](_0x3c9020,_0x3c0130,'discard')(..._0x254f97)});}['registerCustomCallback'](_0x11ebdb,_0x4c9bde,_0x3d196f,_0x448e51){const _0x346b34=_0x11ebdb+':'+_0x4c9bde+':'+_0x3d196f;this['_customCallbacks']['set'](_0x346b34,_0x448e51);}['getSuggestionCallback'](_0x206ae2,_0x154d1a,_0x193f6b){const _0x2006f4=_0x206ae2+':'+_0x154d1a+':'+_0x193f6b;return this['_customCallbacks']['get'](_0x2006f4)||this['_defaultCallbacks']['get'](_0x206ae2+':'+_0x193f6b);}['_registerDefaultCallbacks'](){const _0x492805=()=>!0x1,_0x2a15b4=_0x574f8a=>{_0x574f8a['sort']((_0x33cb9e,_0x42c34f)=>_0x33cb9e['start']['isBefore'](_0x42c34f['start'])?0x1:-0x1),this['_model']['change'](_0xa44dc4=>{for(const _0x44c56b of _0x574f8a){let _0xc266bc;_0xc266bc=_0x44c56b['end']['isAtEnd']&&_0x44c56b['end']['parent']==_0x44c56b['start']['nodeAfter']?_0xa44dc4['createSelection'](_0x44c56b['start']['nodeAfter'],'on'):_0xa44dc4['createSelection'](_0x44c56b),this['_model']['deleteContent'](_0xc266bc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x144b23=(_0x23f83d,_0x2ccd02)=>{_0x2ccd02&&this['_model']['change'](_0x144521=>{const {commandName:_0x32d764,commandParams:_0x32607a=[]}=_0x2ccd02,_0x1f3db9=_0x23f83d['map'](_0x5e2a51=>(Pt(_0x5e2a51)&&(_0x5e2a51=this['_model']['createRange'](_0x5e2a51['end'])),_0x5e2a51))['filter'](_0x29b208=>'$graveyard'!==_0x29b208['root']['rootName']);if(_0x1f3db9['length']<0x1)return;const _0x1fecf3=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x19f0e1=>_0x190639['fromRange'](_0x19f0e1));_0x144521['setSelection'](_0x1f3db9);for(const _0x3ae62b of this['_editor']['commands']['commands']())_0x3ae62b['refresh']();_0x32607a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x32d764,..._0x32607a);const _0x2a7f30=_0x1fecf3['filter'](_0x2076a7=>'$graveyard'!=_0x2076a7['root']['rootName']);_0x2a7f30['length']>0x0&&_0x144521['setSelection'](_0x2a7f30);for(const _0x54f67f of _0x1fecf3)_0x54f67f['detach']();});},_0x2a58a5=(_0x500156,_0x5c0cb6)=>0x1==_0x500156['length']&&0x1==_0x5c0cb6['length']&&_0x500156[0x0]['end']['isEqual'](_0x5c0cb6[0x0]['start']),_0x2b85f9=(_0x87486b,_0x3a6903,_0x1942d3,_0x62f9f6)=>qt(_0x87486b,_0x3a6903,_0x1942d3,_0x62f9f6)?[_0x87486b,_0x3a6903]:qt(_0x3a6903,_0x87486b,_0x62f9f6,_0x1942d3)?[_0x3a6903,_0x87486b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x492805),this['_defaultCallbacks']['set']('insertion:discard',_0x2a15b4),this['_defaultCallbacks']['set']('insertion:join',_0x2a58a5),this['_defaultCallbacks']['set']('insertion:chain',_0x2b85f9),this['_defaultCallbacks']['set']('deletion:accept',_0x2a15b4),this['_defaultCallbacks']['set']('deletion:discard',_0x492805),this['_defaultCallbacks']['set']('deletion:join',_0x2a58a5),this['_defaultCallbacks']['set']('deletion:chain',_0x2b85f9),this['_defaultCallbacks']['set']('formatInline:accept',_0x144b23),this['_defaultCallbacks']['set']('formatInline:discard',_0x492805),this['_defaultCallbacks']['set']('formatInline:join',_0x2a58a5),this['_defaultCallbacks']['set']('formatInline:chain',_0x492805),this['_defaultCallbacks']['set']('formatBlock:accept',_0x144b23),this['_defaultCallbacks']['set']('formatBlock:discard',_0x492805),this['_defaultCallbacks']['set']('formatBlock:join',_0x2a58a5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x492805),this['_defaultCallbacks']['set']('attribute:accept',_0x492805),this['_defaultCallbacks']['set']('attribute:discard',(_0x59fa1b,_0x53e109)=>{if(!_0x53e109)return;const _0x35939c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1bd1f8=>{if(_0x53e109['key']==m)for(const _0x598c88 of _0x59fa1b){const _0x1f04ba=_0x598c88['start']['nodeAfter'],_0x38cf1b=_0x53e109['oldValue'];_0x1bd1f8['rename'](_0x1f04ba,_0x38cf1b);}else{if(_0x35939c['_isBlockAttribute'](_0x53e109['key'])){for(const _0x2aeab3 of _0x59fa1b)void 0x0!==_0x53e109['oldValue']?_0x1bd1f8['setAttribute'](_0x53e109['key'],_0x53e109['oldValue'],_0x2aeab3['start']['nodeAfter']):_0x1bd1f8['removeAttribute'](_0x53e109['key'],_0x2aeab3['start']['nodeAfter']);}else{for(const _0x197556 of _0x59fa1b)_0x53e109['oldValue']?_0x1bd1f8['setAttribute'](_0x53e109['key'],_0x53e109['oldValue'],_0x197556):_0x1bd1f8['removeAttribute'](_0x53e109['key'],_0x197556);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2a58a5);}}function Vt(_0x325b97,_0x362a1c,_0x4d74bb){for(const _0x51a007 of _0x362a1c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x51a007['root']==_0x51a007)return!0x1;if(!_0x4d74bb['containsItem'](_0x51a007))return!0x1;if(_0x325b97['isObject'](_0x51a007)||_0x325b97['isLimit'](_0x51a007))return!0x0;}return!0x1;}function Pt(_0x52bd0f){return _0x52bd0f['end']['parent']==_0x52bd0f['start']['nodeAfter']&&_0x52bd0f['end']['isAtStart'];}function Gt(_0x18df1e,_0x582d47,_0x4ae88e,_0x458a14){const _0xe813c4=_0x5cff43=>!_0x5cff43['item']['is']('$textProxy')&&!_0x458a14['isObject'](_0x5cff43['item']),_0x427f34=_0x18df1e['start']['getLastMatchingPosition'](_0xe813c4),_0x282aa8=_0x18df1e['end']['getLastMatchingPosition'](_0xe813c4,{'direction':'backward'});return(!_0x18df1e['start']['isEqual'](_0x427f34)||!_0x18df1e['end']['isEqual'](_0x282aa8))&&(_0x427f34['isBefore'](_0x282aa8)?_0x4ae88e['updateMarker'](_0x582d47,{'range':_0x4ae88e['createRange'](_0x427f34,_0x282aa8)}):_0x4ae88e['removeMarker'](_0x582d47),!0x0);}function Ft(_0x4e9607){return _0x567c87(_0x4e9607);}function Lt(_0x14e2ba){const _0x11f516=_0x14e2ba['start']['nodeAfter'];return _0x11f516&&_0x11f516['is']('element');}function Jt(_0x31f126,_0x39ff00){return null==_0x31f126['end']['nodeBefore']&&_0x31f126['end']['parent']==_0x31f126['start']['nodeAfter']?Ht(_0x31f126['start']['nodeAfter'],_0x39ff00):_0x31f126;}function Ht(_0x57f968,_0x548885){const _0x148b42=_0x548885['schema']['isObject'](_0x57f968)||_0x548885['schema']['isSelectable'](_0x57f968);return _0x548885['createRange'](_0x548885['createPositionAt'](_0x57f968,'before'),_0x148b42?_0x548885['createPositionAfter'](_0x57f968):_0x548885['createPositionAt'](_0x57f968,'end'));}function qt(_0x3013be,_0x14fba7,_0x400ff7,_0x460b59){return!!zt(_0x3013be,_0x14fba7)&&_0x400ff7['end']['isEqual'](_0x460b59['start']);}function zt(_0x3d057d,_0x2258eb){if(!_0x3d057d['_isDataLoaded']||!_0x2258eb['_isDataLoaded'])return!0x1;const _0x3a4615=new Set(Object['keys'](_0x3d057d['attributes'])),_0x26cbd9=new Set(Object['keys'](_0x2258eb['attributes']));if(_0x3a4615['delete']('groupId'),_0x26cbd9['delete']('groupId'),0x0==_0x3a4615['size']&&0x0==_0x26cbd9['size'])return!0x0;if(_0x3a4615['size']!=_0x26cbd9['size'])return!0x1;const _0x424169={..._0x3d057d['attributes']},_0x24384e={..._0x2258eb['attributes']};return delete _0x424169['groupId'],delete _0x24384e['groupId'],JSON['stringify'](_0x424169)==JSON['stringify'](_0x24384e);}function Kt(_0x1a2286,_0x38cfec){const _0x12e80b=Wt(_0x1a2286['attributes']),_0xf682e2=Wt(_0x38cfec);if(!_0x1a2286['_isDataLoaded'])return!0x1;for(const _0x4484f4 of Object['keys'](_0xf682e2))if(!_0x3a2d98(_0x12e80b[_0x4484f4],_0xf682e2[_0x4484f4]))return!0x1;return!0x0;}function Wt(_0x3b245e){const _0x343273=Object['assign']({},_0x3b245e);return delete _0x343273['skipNestingCheck'],delete _0x343273['tablePasteChainId'],_0x343273;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x1e4a9e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x330a70,_0x5a302d,_0x59e0fd,_0x18033c){super(),this['model']=_0x5a302d,this['view']=_0x59e0fd,this['commentThreadController']=_0x18033c,this['_editor']=_0x330a70,this['_acceptCommand']=_0x330a70['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x330a70['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x476e0e,_0x4941fc)=>_0x476e0e||_0x4941fc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x543aca=>_0x543aca&&this['_editor']['model']['canEditAt'](_0x5a302d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x283402=>_0x283402&&this['_editor']['model']['canEditAt'](_0x5a302d['getRanges']())),this['_pendingAction']=null,_0x59e0fd['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x59e0fd,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x59e0fd,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x59e0fd,'change:isDirty',()=>{_0x59e0fd['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 _0x23aa92=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x23aa92);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x5af415{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4301ea,_0x7264c5,_0x5f3a4e,_0x28e6bf){super(_0x4301ea),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x43b6cb(_0x4301ea,o(_0x4301ea,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x7264c5['authoredAt']),this['bind']('authoredAt')['to'](_0x7264c5),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',_0x7264c5,'authoredAt',this,'descriptionParts',(_0x2d41d6,_0x22ca09,_0x284171)=>{const _0x57fa4d=_0x284171['map'](_0x1037e7=>ns(_0x1037e7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2d41d6-0x1,_0x7264c5['author']['name'],_0x22ca09?_0x28e6bf['formatDateTime'](_0x22ca09):'',new DOMParser()['parseFromString'](_0x57fa4d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2ee850(),this['focusTracker']=new _0x48b573(),this['keystrokes']=new _0xace25c(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x48fd6e=>_0x48fd6e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x7264c5,this['_localUser']=_0x5f3a4e,this['_config']=_0x28e6bf,_0x28e6bf['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5a76a7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x386b28}=this['_config'];this['commentsListView']=new _0x386b28(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',_0x3f981e=>_0x3f981e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x360cd4,_0x1db04d)=>_0x360cd4||!!_0x1db04d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2dda60}=this['_config'],_0x42e7ed=new _0x2dda60(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x28d412=_0x42e7ed['commentInputView'];return _0x42e7ed['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x28d412,'value',(_0x5e07e9,_0x402d7e,_0x579ff1)=>!!_0x579ff1||_0x5e07e9&&!_0x402d7e),_0x28d412['on']('submit',(_0x407bf0,_0x5ed9c3)=>{this['fire']('addComment',_0x5ed9c3),_0x28d412['editor']['setData']('');}),_0x28d412['on']('cancel',()=>this['focus']()),_0x28d412['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x42e7ed;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x3437ef,_0x2c1a97,_0x25cd26,_0xab50f9){super(_0x3437ef,_0x2c1a97,_0x25cd26,_0xab50f9),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5584aa=>_0x5584aa&&_0x5584aa[0x0]?_0x5584aa[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x272bcc,_0x5ab921)=>{let _0x14c591='';for(const _0x2120ea of _0x272bcc)_0x14c591+='<p>'+ns(_0x2120ea['content'],_0x2120ea['color'])+'</p>';return _0x5ab921?_0x14c591:_0x1eae6c(_0x14c591,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xab50f9['SuggestionView'](_0x3437ef,_0x2c1a97,{'formatDateTime':_0xab50f9['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 _0x55c29c=this['bindTemplate'],_0xe508ed=[this['suggestionView']];return this['commentsListView']&&_0xe508ed['push'](this['commentsListView']),this['commentThreadInputView']&&_0xe508ed['push'](this['commentThreadInputView']),_0xe508ed['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x55c29c['if']('isActive','ck-suggestion-wrapper--active'),_0x55c29c['to']('type',_0x1ef00f=>'ck-suggestion-'+_0x1ef00f),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':_0x55c29c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xe508ed};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x5af415{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x291531,_0x914bf3,_0x2f0c07){super(_0x291531),this['_model']=_0x914bf3,this['_config']=_0x2f0c07,this['set']('description',''),this['bind']('authoredAt')['to'](_0x914bf3),this['acceptButton']=this['_createButton'](o(_0x291531,'Accept\x20suggestion'),_0x4175cb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x291531,'Discard\x20suggestion'),_0x4175cb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x52c9bb(_0x291531,_0x914bf3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2ee850([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x48b573(),this['keystrokes']=new _0xace25c(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2d860a=>_0x2d860a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3f1914=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3f1914['innerHTML']=this['description'],this['on']('change:description',(_0x27a4c8,_0x277903,_0x26ee2a)=>{_0x3f1914['innerHTML']=_0x26ee2a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1e65fd=this['bindTemplate'],_0x2b6252=[{'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':_0x1e65fd['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1e65fd['to']('authoredAt',_0x1ca027=>this['_config']['formatDateTime'](_0x1ca027))}]}]},{'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']&&_0x2b6252['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':_0x2b6252}]};}['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'](_0x1db3d0,_0x1a7071,_0x528b2f,_0x4d686b,_0x14e5e8){const _0x554140=new _0x5b52ba(this['locale']);return _0x554140['set']({'label':_0x1db3d0,'icon':_0x1a7071,'tooltip':!0x0,'tooltipPosition':_0x14e5e8}),_0x554140['extendTemplate']({'attributes':{'class':_0x528b2f}}),_0x554140['on']('execute',()=>{this['fire'](_0x4d686b,this['_model']['id']);}),_0x554140;}['_setupKeyboardNavigation'](){const _0x4be085=this['element'];this['keystrokes']['listenTo'](_0x4be085);for(const _0x4be762 of this['focusables'])this['focusTracker']['add'](_0x4be762['element']),this['keystrokes']['listenTo'](_0x4be762['element']);this['keystrokes']['set']('enter',(_0x330565,_0x3994e5)=>{_0x4be085===_0x330565['target']&&(this['focusCycler']['focusFirst'](),_0x3994e5());}),this['keystrokes']['set']('esc',(_0x2a55ee,_0x331cd1)=>{_0x4be085!==_0x2a55ee['target']&&(this['focus'](),_0x331cd1());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x5d6089{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xb5d06b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x593982){super(_0x593982),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x98dddb=this['editor']['config'];_0x98dddb['define']('trackChanges.SuggestionThreadView',pe),_0x98dddb['define']('trackChanges.SuggestionView',fe),_0x98dddb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x98dddb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3817dc,_0x1f1e59){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4cd674,_0x4d627d]of this['_handleControllerBuffer']){const _0x2cb69f=this['_suggestionToController']['has'](_0x4cd674);_0x2cb69f||_0x4d627d?_0x2cb69f&&_0x4d627d&&this['_destroyController'](_0x4cd674):this['_initializeController'](_0x4cd674);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3817dc,_0x1f1e59);}['init'](){const _0x2ef3ce=this['editor'],_0x782ba1=_0x2ef3ce['plugins']['get']('TrackChangesEditing'),_0xbc7f54=_0x2ef3ce['plugins']['get']('Annotations'),_0x11d114=_0x2ef3ce['plugins']['get']('EditorAnnotations'),_0x5d1d0c=_0x2ef3ce['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x11d114['addSourceCollector'](()=>{const _0x1ff1ea=[];for(const [_0xefc70e,_0x4b8a95]of Array['from'](this['_suggestionToController'])){const _0x5bad70=_0xefc70e['getAllAdjacentSuggestions'](),_0x49f004=[];for(const _0x349633 of _0x5bad70){if(!_0x349633['isInContent'])continue;if(_0x349633['isMultiRange']){_0x49f004['push'](..._0x349633['getRanges']());continue;}const _0x149e2e=_0x349633['getFirstRange']();if(_0x49f004['length']>0x0){const _0x5d326e=_0x49f004[0x0]['getJoined'](_0x149e2e);if(_0x5d326e){_0x49f004[0x0]=_0x5d326e;continue;}}_0x49f004['push'](_0x149e2e);}_0x1ff1ea['push']([_0x4b8a95['view'],_0x49f004]);}return _0x1ff1ea;}),this['listenTo'](_0x782ba1,'suggestionLoaded',(_0x2a598b,_0x17a880)=>{this['listenTo'](_0x17a880,'change:previous',(_0x5d4819,_0x18eafc,_0x29bcd8,_0x4d4741)=>{_0x17a880['isInContent']&&(null==_0x29bcd8?(this['_updateController'](_0x4d4741['head']),this['_handleSuggestionControllerDelayed'](_0x17a880,!0x1)):(this['_updateController'](_0x29bcd8['head']),null==_0x4d4741&&this['_handleSuggestionControllerDelayed'](_0x17a880,!0x0)));}),null!==_0x17a880['previous']?this['_updateController'](_0x17a880['head']):this['_handleSuggestionControllerDelayed'](_0x17a880,!0x1);}),this['listenTo'](_0x782ba1,'suggestionUnloaded',(_0x128deb,_0x3a6877,_0xfb0208)=>{this['stopListening'](_0x3a6877,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3a6877),this['_suggestionToController']['has'](_0x3a6877)&&this['_destroyController'](_0x3a6877),_0xfb0208&&this['_updateController'](_0xfb0208['head']);}),this['listenTo'](_0x782ba1,'suggestionChanged',(_0x14c690,_0x2339f1)=>{this['_updateController'](_0x2339f1);}),this['listenTo'](_0xbc7f54,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5d1d0c,'addComment',(_0x1c3ff1,{threadId:_0x2367fc,isFromAdapter:_0x1f8edf})=>{if(_0x1f8edf||!_0x782ba1['hasSuggestion'](_0x2367fc))return;const _0x34ceb7=_0x782ba1['getSuggestion'](_0x2367fc);this['_suggestionToController']['get'](_0x34ceb7)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e6b0a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x537292;for(const _0x286a19 in _0x5e6b0a){const _0x3aea60=_0x286a19,_0x18396d=_0x5e6b0a[_0x3aea60];if('trackChangesLicenseKeyValid'==_0x18396d||'trackChangesLicenseKeyInvalid'==_0x18396d||'trackChangesLicenseKeyExpired'==_0x18396d||'trackChangesLicenseKeyDomainLimit'==_0x18396d||'trackChangesLicenseKeyNotAllowed'==_0x18396d||'trackChangesLicenseKeyEvaluationLimit'==_0x18396d||'trackChangesLicenseKeyTrialLimit'==_0x18396d||'trackChangesLicenseKeyUsageLimit'==_0x18396d){delete _0x5e6b0a[_0x3aea60],_0x537292=_0x18396d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x537292&&_0x5e6b0a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x537292&&_0x5e6b0a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x537292&&_0x5e6b0a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x537292&&_0x5e6b0a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x537292&&_0x5e6b0a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x537292&&_0x5e6b0a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x537292&&_0x5e6b0a['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x50a787=this['editor']['plugins']['get']('Annotations'),_0x43af3a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15cb62=Array['from'](_0x50a787['activeAnnotations'],_0x45333c=>_0x45333c['innerView'])['filter'](_0x35aa12=>this['_viewToController']['has'](_0x35aa12)),_0x2b5a3a=[];for(const _0x2e52a5 of _0x15cb62){const _0x1e5268=this['_viewToController']['get'](_0x2e52a5)['model']['getAllAdjacentSuggestions']();_0x2b5a3a['push'](..._0x1e5268['reduce']((_0x11ed0b,_0xc0d6f1)=>[..._0x11ed0b,..._0xc0d6f1['getMarkerNames']()],[]));}_0x43af3a['activeMarkers']=_0x2b5a3a;}['_addUIComponentsToFactory'](){const _0x72fb43=this['editor'],_0x26ff8e=_0x72fb43['locale'],_0xbad96b=o(_0x26ff8e,'Track\x20changes'),_0x2f5bf9=new _0x587b41([{'type':'switchbutton','model':new _0x5d4f74({'withText':!0x0,'isToggleable':!0x0,'label':_0xbad96b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5d4f74({'withText':!0x0,'label':o(_0x26ff8e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5d4f74({'withText':!0x0,'label':o(_0x26ff8e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5d4f74({'withText':!0x0,'label':o(_0x26ff8e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5d4f74({'withText':!0x0,'label':o(_0x26ff8e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x72fb43['plugins']['has']('TrackChangesPreview')&&_0x2f5bf9['addMany']([{'type':'separator'},{'type':'button','model':new _0x5d4f74({'withText':!0x0,'label':o(_0x26ff8e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4e17cf of _0x2f5bf9)if(ke(_0x4e17cf)){const _0x115f83=_0x72fb43['commands']['get'](_0x4e17cf['model']['commandName']);_0x4e17cf['model']['bind']('isOn','isEnabled')['to'](_0x115f83,'value','isEnabled');}_0x72fb43['ui']['componentFactory']['add']('trackChanges',_0x2ecec3=>this['_createToolbarButton'](_0x2ecec3,_0x2f5bf9,_0xbad96b)),_0x72fb43['ui']['componentFactory']['add']('menuBar:trackChanges',_0x323437=>this['_createMenuBarMenu'](_0x323437,_0x2f5bf9,_0xbad96b));}['_createToolbarButton'](_0x36d2bb,_0x1fd183,_0x2a89d1){const _0x304652=_0x21aa3c(_0x36d2bb,_0xe7a2f2),_0x288e0d=this['editor']['commands']['get']('trackChanges');_0x304652['buttonView']['set']({'tooltip':_0x2a89d1,'label':_0x2a89d1,'icon':we}),_0x304652['buttonView']['bind']('isOn')['to'](_0x288e0d,'value'),_0x304652['buttonView']['on']('execute',()=>{_0x288e0d['execute'](),this['editor']['editing']['view']['focus']();}),_0x20b8e0(_0x304652,_0x1fd183,{'role':'menu'});const _0xf82806=[];for(const _0x2f1adf of _0x1fd183)ke(_0x2f1adf)&&_0xf82806['push'](this['editor']['commands']['get'](_0x2f1adf['model']['commandName']));const _0x5b3681=_0x304652['buttonView'];return _0x5b3681['actionView']['unbind']('isEnabled'),_0x5b3681['arrowView']['unbind']('isEnabled'),_0x5b3681['actionView']['bind']('isEnabled')['to'](_0x288e0d,'isEnabled'),_0x5b3681['arrowView']['bind']('isEnabled')['toMany'](_0xf82806,'isEnabled',(..._0x481577)=>_0x481577['some'](_0xa7fb42=>_0xa7fb42)),_0x304652['on']('execute',_0x302799=>{this['editor']['execute'](_0x302799['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x304652;}['_createMenuBarMenu'](_0x1e85eb,_0x8b9146,_0x1b1910){const _0x388616=new _0x54474e(_0x1e85eb),_0x331359=this['editor']['commands']['get']('trackChanges');_0x388616['buttonView']['set']({'label':_0x1b1910,'icon':we});const _0x148d15=new _0x2c7f70(_0x1e85eb);for(const _0x1d5301 of _0x8b9146){if('separator'==_0x1d5301['type']){_0x148d15['items']['add'](new _0x1eeea8(_0x1e85eb));continue;}const _0x477497=new _0x37c849(_0x1e85eb,_0x388616),_0xb59a91=new _0x2a6114(_0x1e85eb),_0x30e982=_0x1d5301['model'];_0xb59a91['bind'](...Object['keys'](_0x30e982))['to'](_0x30e982),_0xb59a91['delegate']('execute')['to'](_0x388616),_0xb59a91['on']('execute',()=>{this['editor']['execute'](_0x30e982['commandName']),this['editor']['editing']['view']['focus']();}),_0x477497['children']['add'](_0xb59a91),_0x148d15['items']['add'](_0x477497);}return _0x388616['bind']('isEnabled')['to'](_0x331359,'isEnabled'),_0x388616['panelView']['children']['add'](_0x148d15),_0x388616;}['_initializeController'](_0x14abc0){const _0x387aa3=this['editor'],_0x1c0c4b=_0x387aa3['config'],_0x69ebb8=_0x387aa3['plugins']['get']('Annotations'),_0x4e0995=_0x387aa3['plugins']['get']('CommentsRepository'),_0x2b2b98=_0x387aa3['plugins']['get']('EditorAnnotations'),_0x452314=_0x387aa3['plugins']['get'](_0xb5d06b)['me'],_0x3b2259=_0x1c0c4b['get']('trackChanges')['SuggestionThreadView'],_0x474ed8=_0x1c0c4b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2cefaa,CommentThreadInputView:_0x8b71b}=_0x387aa3['plugins']['get']('CommentsUI');let _0x264e5e,_0x3903bf,_0x4b8f05;this['_annotationViews']['has'](_0x14abc0['id'])?(_0x3903bf=this['_annotationViews']['get'](_0x14abc0['id']),_0x264e5e=_0x3903bf['mainView']):(_0x264e5e=new _0x3b2259(_0x387aa3['locale'],_0x14abc0,_0x452314,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1c0c4b['get']('comments.editorConfig'),'licenseKey':_0x1c0c4b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1c0c4b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1c0c4b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1c0c4b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x492577(_0x1c0c4b['get']('locale')),'CommentView':_0x1c0c4b['get']('comments')['CommentView'],'CommentsListView':_0x2cefaa,'CommentThreadInputView':_0x8b71b,'SuggestionView':_0x474ed8}),_0x264e5e['suggestionView']['acceptButton']['on']('execute',()=>{_0x387aa3['editing']['view']['focus']();}),_0x264e5e['suggestionView']['discardButton']['on']('execute',()=>{_0x387aa3['editing']['view']['focus']();}),_0x3903bf=_0x69ebb8['createAnnotationView'](this['editor']['locale'],_0x264e5e),_0x3903bf['bind']('isDirty')['to'](_0x264e5e,'isDirty'),_0x3903bf['bind']('length')['to'](_0x264e5e),_0x3903bf['bind']('type')['to'](_0x264e5e,'type',_0x315a1a=>'suggestion-'+_0x315a1a),_0x264e5e['on']('escape',()=>{_0x4b8f05['fire']('escape');}),this['_annotationViews']['set'](_0x14abc0['id'],_0x3903bf));const _0x2eb91f=_0x4e0995['createCommentThreadController'](_0x14abc0['commentThread'],_0x264e5e),_0x1ae3af=new Ce(_0x387aa3,_0x14abc0,_0x264e5e,_0x2eb91f),_0x2f6c98=_0x14abc0['getAllAdjacentSuggestions']()['filter'](_0x4e3fe1=>_0x4e3fe1['isInContent']);_0x264e5e['descriptionParts']=_0x387aa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2f6c98),this['_suggestionToController']['set'](_0x14abc0,_0x1ae3af),this['_viewToController']['set'](_0x264e5e,_0x1ae3af),_0x4b8f05=_0x69ebb8['createAnnotation']({'view':_0x3903bf,'target':()=>{const _0x1d6c55=[],_0x2267c6=_0x14abc0['getAllAdjacentSuggestions']()['filter'](_0x9e6221=>_0x9e6221['isInContent']);for(const _0x30b35f of _0x2267c6)_0x1d6c55['push'](..._0x30b35f['getMarkers']());return _0x2912c5(_0x387aa3['editing'],_0x1d6c55);},'type':()=>'suggestion-'+_0x1ae3af['view']['type']}),_0x4e0995['_bindAnnotationToEditors'](_0x264e5e,_0x4b8f05),_0x69ebb8['add'](_0x4b8f05),_0x2b2b98['registerAnnotation'](_0x4b8f05);}['_destroyController'](_0x592c50){const _0x381905=this['editor']['plugins']['get']('CommentsRepository'),_0x26bbb4=this['editor']['plugins']['get']('Annotations'),_0x2eaed7=this['_suggestionToController']['get'](_0x592c50),_0x208b3f=_0x2eaed7['view'],_0x1fe3ec=_0x26bbb4['getByInnerView'](_0x208b3f);_0x381905['_unbindEditors'](_0x208b3f),_0x1fe3ec&&_0x26bbb4['remove'](_0x1fe3ec),this['_suggestionToController']['delete'](_0x592c50),this['_viewToController']['delete'](_0x208b3f),_0x2eaed7['destroy']();}['_updateController'](_0x555ce0){if(!_0x555ce0['isInContent']||!this['_suggestionToController']['has'](_0x555ce0))return;const _0x5812c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x499ed1=this['_suggestionToController']['get'](_0x555ce0),_0x582ee1=_0x555ce0['getAllAdjacentSuggestions']();_0x499ed1['view']['descriptionParts']=_0x5812c8['descriptionFactory']['getDescriptions'](_0x582ee1);}['destroy'](){for(const _0x5c4789 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5c4789);for(const _0x2cca70 of this['_annotationViews']['values']())_0x2cca70['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2cf249){return'model'in _0x2cf249;}class k extends _0x5d6089{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x23771d){this['editor']['plugins']['get'](p)['adapter']=_0x23771d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x47f05d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x47f05d);}['getSuggestions']({skipNotAttached:_0x8427fb=!0x1,toJSON:_0x56c18b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x8427fb,'toJSON':_0x56c18b});}['getSuggestion'](_0x2b92f3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2b92f3);}}const w=['Pagination'];class T extends _0x5d6089{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x475e02=this['editor'];if(_0x475e02['config']['define']('trackChangesData.editorCreator',_0x210e59=>{const _0x21c269=_0x475e02['model']['document']['getRootNames']()['reduce']((_0x4b9f02,_0xb20239)=>(_0x4b9f02[_0xb20239]='',_0x4b9f02),{});return _0x475e02['constructor']['create'](_0x21c269,_0x210e59);}),'function'!=typeof _0x475e02['config']['get']('trackChangesData')['editorCreator'])throw new _0x443412('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5f5859){return N(this['editor'],!0x0,_0x5f5859);}['getDataWithDiscardedSuggestions'](_0x1f8fe5){return N(this['editor'],!0x1,_0x1f8fe5);}}class D extends _0x5d6089{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x47e6b2){function _0x9bdcbc(_0x3b2e4b){return _0x3b2e4b['map'](_0x5c159d=>String['fromCharCode'](_0x5c159d))['join']('');}super(_0x47e6b2),this['result']='end',_0x47e6b2[_0x9bdcbc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9bdcbc([0x76,0x69,0x65,0x77])][_0x9bdcbc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9bdcbc([0x61,0x75,0x74,0x6f]),_0x47e6b2[_0x9bdcbc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x9bdcbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9bdcbc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x9bdcbc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x9bdcbc([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x3cc603){return void 0x0!==_0x3cc603['getRootsAttributes'];}async function N(_0x42ed47,_0x49c54f,_0x1a985b){const _0x20e284=_0x25065b(_0x42ed47,w);_0x20e284['plugins']['push'](p,D),_0x20e284['rootsAttributes']=Fe(_0x42ed47)?_0x42ed47['getRootsAttributes']():void 0x0;const _0x4b03ba=document['createDocumentFragment'](),_0x562dd0=_0x42ed47['config']['get']('trackChangesData')['editorCreator'],_0x3dd27c=await _0x562dd0(_0x20e284,()=>function(_0x58abdd){const _0x549cbb=document['createElement']('div');return _0x58abdd['appendChild'](_0x549cbb),_0x549cbb;}(_0x4b03ba));!function(_0x5db38b,_0x119320){const _0x16d00f=_0x5db38b['model']['document']['getRootNames']()['reduce']((_0x250b89,_0x35ff1f)=>(_0x250b89[_0x35ff1f]=_0x5db38b['data']['get']({'rootName':_0x35ff1f}),_0x250b89),{}),_0x31f9d1=_0x5db38b['plugins']['get']('Users')['users']['map'](_0x1eab3d=>({'id':_0x1eab3d['id'],'name':_0x1eab3d['name']})),_0x572e9c=_0x5db38b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3cfebc=_0x5db38b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x216166=_0x119320['plugins']['get']('Users'),_0x13de40=_0x119320['plugins']['get']('TrackChangesEditing'),_0x45741b=_0x119320['plugins']['get']('CommentsRepository');for(const _0x567289 of _0x45741b['getCommentThreads']())_0x567289['remove']();for(const _0x47f44c of _0x31f9d1)_0x216166['getUser'](_0x47f44c['id'])||_0x216166['addUser'](_0x47f44c);_0x216166['me']||_0x216166['useAnonymousUser']();for(const _0x2f24ae of _0x3cfebc)_0x45741b['addCommentThread'](_0x2f24ae);for(const _0x35f131 of _0x572e9c)_0x13de40['addSuggestionData'](_0x35f131);_0x119320['data']['set'](_0x16d00f);}(_0x42ed47,_0x3dd27c),_0x3dd27c['execute'](_0x49c54f?'acceptAllSuggestions':'discardAllSuggestions');const _0x5e2f3e=Fe(_0x3dd27c)?_0x3dd27c['getFullData'](_0x1a985b):_0x3dd27c['data']['get'](_0x1a985b);return await _0x3dd27c['destroy'](),_0x5e2f3e;}class Me extends _0x5af415{['options'];constructor(_0x30909d,_0x4770e0){super(_0x30909d),this['options']=_0x4770e0,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'](_0x1221f8,_0x259ddd){if(!this['element'])return;const _0x16cc80=[];for(const [_0x3b475b,_0x2c30bd]of _0x1221f8){const _0x20d656=document['createElement']('div');_0x20d656['setAttribute']('data-ck-root-name',_0x3b475b),_0x20d656['className']=_0x2c30bd['classes']+'\x20ck-track-changes-preview__root-container',_0x20d656['innerHTML']=_0x2c30bd['content'],_0x16cc80['push'](_0x20d656);}_0x259ddd(this['element'],_0x16cc80),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x28f2e6){super(_0x28f2e6),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x189070=this['editor'],_0x2ab3da=_0x189070['locale'],_0x564401=_0x189070['plugins']['get']('Dialog');let _0x513707;const _0x2e377d=function(_0x38d91f){const _0x54cc92={};if('editables'in _0x38d91f['ui']['view']){for(const [_0x52eb05,_0x282fcb]of Object['entries'](_0x38d91f['ui']['view']['editables']))_0x54cc92[_0x52eb05]=_0x282fcb['element'];}else _0x54cc92[_0x38d91f['model']['document']['getRootNames']()[0x0]]=_0x38d91f['ui']['view']['editable']['element'];return _0x54cc92;}(_0x189070),_0x1a23d0=function(_0x533e54){let _0x566541=0x0;for(const _0x496e86 of Object['values'](_0x533e54))_0x566541=Math['max'](_0x566541,_0x496e86['getBoundingClientRect']()['width']);let _0x358af3=0x0;for(const _0x5ee2dc of Object['values'](_0x533e54))_0x358af3+=_0x5ee2dc['getBoundingClientRect']()['height'];const _0x5d5de6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x79f872=Math['min'](_0x358af3,_0x5d5de6);return{'width':_0x566541,'height':_0x79f872};}(_0x2e377d);_0x564401['show']({'id':'finalContentPreview','title':o(_0x2ab3da,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2ab3da,{'dialogRects':_0x1a23d0}),'onHide':()=>{_0x513707['detachFromDom']();},'onShow':()=>{_0x189070['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2a4fb0=>{const _0x4fb944=this['_standarizeRootsData'](_0x2a4fb0,_0x189070,_0x2e377d);_0x564401['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4fb944,_0x189070['config']['get']('trackChanges.preview.renderFunction'));}),_0x513707=new _0x91a64(_0x2ab3da,[_0x564401['view']]),_0x513707['attachToDom'](),_0x513707['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x189070['once']('destroy',()=>{_0x513707['detachFromDom']();});const _0x31f87a=_0x564401['view']['headerView']['class'];_0x564401['view']['headerView']['class']=_0x31f87a?_0x31f87a+'\x20ck-reset_all':'ck-reset_all',_0x564401['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x564401['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2cb4c0=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xda6ede=_0x2cb4c0['previewMode'],_0x5e236d={};if('$labels'===_0xda6ede){for(const _0x28f281 of _0x2cb4c0['getMergeFieldsIds']())_0x5e236d[_0x28f281]=_0x2cb4c0['getLabel'](_0x28f281)||_0x28f281;}else{const _0x355613='$defaultValues'===_0xda6ede?_0x2cb4c0['getDefaultValues']():_0x2cb4c0['getDataSetValues'](_0xda6ede,!0x0);for(const _0x11da2c of Object['entries'](_0x355613)){const [_0x17b5ea,_0x52307c]=_0x11da2c;_0x5e236d[_0x17b5ea]=null!==_0x52307c?_0x52307c:_0x2cb4c0['getLabel'](_0x17b5ea)||_0x17b5ea;}}return{'mergeFieldsData':_0x5e236d};}['_standarizeRootsData'](_0x3a0566,_0x3fa35e,_0x10cecd){let _0x6bfb8;if('string'==typeof _0x3a0566){const _0x599202=_0x3fa35e['model']['document']['getRootNames']()[0x0];_0x6bfb8={[_0x599202]:_0x3a0566};}else _0x6bfb8=_0x3a0566;const _0x38a258=this['_fixMediaEmbeds'](_0x6bfb8,_0x3fa35e),_0x4193e2=function(_0x212416,_0x2c4e06){for(const [_0x527bde,_0x31bd3a]of _0x212416)_0x31bd3a['classes']=_0x2c4e06[_0x527bde]['classList']['value']['replace']('ck-focused','');return _0x212416;}(this['_sortRoots'](_0x3fa35e)['reduce']((_0x3bab83,_0x298253)=>(_0x3bab83['push']([_0x298253,{'content':_0x38a258[_0x298253],'classes':''}]),_0x3bab83),[]),_0x10cecd);return _0x4193e2;}['_fixMediaEmbeds'](_0x49cd06,_0x1b809b){if(!_0x1b809b['plugins']['has']('MediaEmbedEditing'))return _0x49cd06;const _0x16996c=_0x1b809b['plugins']['get']('MediaEmbedEditing');for(const [_0x512446,_0x160189]of Object['entries'](_0x49cd06)){const _0x3787f8=document['createElement']('div');_0x3787f8['innerHTML']=_0x160189,(_0x3787f8['querySelectorAll']('figure.media')['forEach'](_0x42165a=>{const _0x57bb6c=_0x42165a['querySelector']('oembed');if(_0x57bb6c){const _0x5d3bfa=_0x57bb6c['getAttribute']('url');if(_0x5d3bfa){const _0x27ea97=_0x16996c['registry']['getMediaViewElement'](new _0x714d27(_0x1b809b['editing']['view']['document']),_0x5d3bfa,{'elementName':'','renderForEditingView':!0x0}),_0x24871b=document['createElement']('div');_0x24871b['classList']['add']('ck-media__wrapper'),_0x27ea97['render'](_0x24871b,_0x1b809b['editing']['view']['domConverter']),_0x57bb6c['replaceWith'](_0x24871b);}}}),_0x49cd06[_0x512446]=_0x3787f8['innerHTML']);}return _0x49cd06;}['_sortRoots'](_0x15889e){if(!function(_0x297a17){return void 0x0!==_0x297a17['getRootsAttributes'];}(_0x15889e))return _0x15889e['model']['document']['getRootNames']();const _0x4335a8=[],_0x49150c=new Map();for(const _0xaa75a0 of _0x15889e['model']['document']['getRootNames']()){const _0x359494=_0x15889e['editing']['view']['getDomRoot'](_0xaa75a0)['getClientRects']()['item'](0x0);_0x4335a8['push'](_0xaa75a0),_0x49150c['set'](_0xaa75a0,_0x359494);}return _0x4335a8['sort']((_0x5ce99c,_0x2f575e)=>{const _0xb9638b=_0x49150c['get'](_0x5ce99c),_0x382285=_0x49150c['get'](_0x2f575e);return _0xb9638b['y']-_0x382285['y']||_0xb9638b['x']-_0x382285['x'];}),_0x4335a8;}}class te extends _0x5d6089{static get['requires'](){return[T,_0x3b1aab];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59d285){super(_0x59d285),_0x59d285['commands']['add']('previewFinalContent',new re(this['editor'])),_0x59d285['config']['define']('trackChanges.preview.renderFunction',(_0x32aca8,_0x33fb18)=>{for(const _0x32ace3 of _0x33fb18)_0x32aca8['appendChild'](_0x32ace3);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};