@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250103.0 → 0.0.0-nightly-20250105.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 (217) 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 +10 -10
  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/trackchangescommand.js +1 -1
  153. package/src/index.js +1 -1
  154. package/src/integrations/aiassistant.js +1 -1
  155. package/src/integrations/alignment.js +1 -1
  156. package/src/integrations/basicstyles.js +1 -1
  157. package/src/integrations/blockquote.js +1 -1
  158. package/src/integrations/bookmark.js +1 -1
  159. package/src/integrations/casechange.js +1 -1
  160. package/src/integrations/ckbox.js +1 -1
  161. package/src/integrations/codeblock.js +1 -1
  162. package/src/integrations/comments.js +1 -1
  163. package/src/integrations/deletecommand.js +1 -1
  164. package/src/integrations/entercommand.js +1 -1
  165. package/src/integrations/findandreplace.js +1 -1
  166. package/src/integrations/font.js +1 -1
  167. package/src/integrations/formatpainter.js +1 -1
  168. package/src/integrations/heading.js +1 -1
  169. package/src/integrations/highlight.js +1 -1
  170. package/src/integrations/horizontalline.js +1 -1
  171. package/src/integrations/htmlembed.js +1 -1
  172. package/src/integrations/image.js +1 -1
  173. package/src/integrations/imagereplace.js +1 -1
  174. package/src/integrations/imagestyle.js +1 -1
  175. package/src/integrations/importword.js +1 -1
  176. package/src/integrations/indent.js +1 -1
  177. package/src/integrations/inputcommand.js +1 -1
  178. package/src/integrations/legacylist.js +1 -1
  179. package/src/integrations/legacylistproperties.js +1 -1
  180. package/src/integrations/link.js +1 -1
  181. package/src/integrations/list.js +1 -1
  182. package/src/integrations/listproperties.js +1 -1
  183. package/src/integrations/mediaembed.js +1 -1
  184. package/src/integrations/mention.js +1 -1
  185. package/src/integrations/mergefields.js +1 -1
  186. package/src/integrations/multilevellist.js +1 -1
  187. package/src/integrations/pagebreak.js +1 -1
  188. package/src/integrations/paragraph.js +1 -1
  189. package/src/integrations/removeformat.js +1 -1
  190. package/src/integrations/restrictededitingmode.js +1 -1
  191. package/src/integrations/shiftentercommand.js +1 -1
  192. package/src/integrations/standardeditingmode.js +1 -1
  193. package/src/integrations/style.js +1 -1
  194. package/src/integrations/table.js +1 -1
  195. package/src/integrations/tablecaption.js +1 -1
  196. package/src/integrations/tableclipboard.js +1 -1
  197. package/src/integrations/tablecolumnresize.js +1 -1
  198. package/src/integrations/tableheadings.js +1 -1
  199. package/src/integrations/tablemergesplit.js +1 -1
  200. package/src/integrations/tableofcontents.js +1 -1
  201. package/src/integrations/tableproperties.js +1 -1
  202. package/src/integrations/template.js +1 -1
  203. package/src/integrations/title.js +1 -1
  204. package/src/integrations/undo.js +1 -1
  205. package/src/integrations/utils.js +1 -1
  206. package/src/suggestion.js +2 -2
  207. package/src/suggestiondescriptionfactory.js +1 -1
  208. package/src/trackchanges.js +1 -1
  209. package/src/trackchangesdata.js +1 -1
  210. package/src/trackchangesediting.js +1 -1
  211. package/src/trackchangesui.js +1 -1
  212. package/src/ui/suggestioncontroller.js +2 -2
  213. package/src/ui/view/basesuggestionthreadview.js +1 -1
  214. package/src/ui/view/suggestionthreadview.js +1 -1
  215. package/src/ui/view/suggestionview.js +1 -1
  216. package/src/utils/common-translations.js +1 -1
  217. 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 _0x107d6b,PendingActions as _0x40d555,icons as _0x467da9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xcd3701,ObservableMixin as _0x26912d,uid as _0x476dad,insertToPriorityArray as _0x48b07b,priorities as _0x4b7bfc,logWarning as _0x1abbe,getEnvKeystrokeText as _0x19c25e,FocusTracker as _0x5ba06d,KeystrokeHandler as _0x168a4e,Collection as _0x9f5121}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x48547c,View as _0x55335c,ViewCollection as _0x1a20ee,FocusCycler as ts,ViewModel as _0x27daba,createDropdown as _0x1ba01c,SplitButtonView as _0x1519e9,addListToDropdown as te,MenuBarMenuView as _0x145ade,MenuBarMenuListView as _0x80518e,ListSeparatorView as _0x2dea15,MenuBarMenuListItemView as _0x2d9ce1,MenuBarMenuListItemButtonView as _0x5dd389}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x46c909,hashObject as _0x567315,surroundingMarkersDetector as _0x2444d4,FOCUS_ANNOTATION_KEYSTROKE as _0x26e0c0,AriaDescriptionView as _0x208084,setupThreadKeyboardNavigation as _0x52e46d,trimHtml as ti,UserView as _0x51c4f2,LateFocusButtonView as _0x5ea4,getDateTimeFormatter as _0x8c60f5,getAllMarkersDomElementsSorted as _0x4c54ce,sanitizeEditorConfig as _0x93c360}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x58b785,LiveRange as _0x22f529,LivePosition as _0x7486fb}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x278281,toWidget as _0x1c57ac}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3f2a2c,set as _0x427ffc,isEqual as _0x242804,unset as _0x5e065b,omit as xt}from'lodash-es';import{Delete as _0x4fb8de,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xa7c161,ShiftEnter as _0x3e9e90}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x14db0e,_0x4aaba0){super(_0x14db0e),this['_enabledCommands']=_0x4aaba0,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 _0x6fc0a6 of this['editor']['commands']['commands']())_0x6fc0a6['affectsData']&&!this['_enabledCommands']['has'](_0x6fc0a6)&&_0x6fc0a6['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xd2e2f6 of this['editor']['commands']['commands']())_0xd2e2f6['affectsData']&&!this['_enabledCommands']['has'](_0xd2e2f6)&&_0xd2e2f6['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x508c0e,_0xe584e7){super(_0x508c0e),this['_suggestions']=_0xe584e7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3b1a1f){const _0x23a02a=this['_suggestions']['get'](_0x3b1a1f);if(!_0x23a02a)throw new _0xcd3701('track-changes-accept-suggestion-not-found',this);const _0x50f03a=_0x23a02a['getRanges']();this['editor']['model']['canEditAt'](_0x50f03a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x23a02a);}}class R extends Qt{['_suggestions'];constructor(_0x2cb7ca,_0x570d1d){super(_0x2cb7ca),this['_suggestions']=_0x570d1d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2e6e72){const _0x52c833=this['_suggestions']['get'](_0x2e6e72);if(!_0x52c833)throw new _0xcd3701('track-changes-discard-suggestion-not-found',this);const _0x2f6b51=_0x52c833['getRanges']();this['editor']['model']['canEditAt'](_0x2f6b51)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x52c833);}}function ns(_0x2afb86,_0x55747a){let _0x184efd='';return _0x184efd+=_0x2afb86['split']('*')['map']((_0x46489c,_0x5901dc)=>_0x5901dc%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x46489c)+'</span>':nn(_0x46489c))['join'](''),_0x55747a&&(_0x184efd+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x55747a['value']+'\x22\x20title=\x22'+_0x55747a['title']+'\x22></span>'),_0x184efd;}function nn(_0x4f0c2b){const _0x23ce54=document['createElement']('span');return _0x23ce54['innerText']=_0x4f0c2b,_0x23ce54['innerHTML'];}function Wt(_0x859684){return _0x859684['sort']((_0x174cf2,_0x4b7d4e)=>'deletion'==_0x174cf2['type']&&'deletion'!=_0x4b7d4e['type']?-0x1:'deletion'!=_0x174cf2['type']&&'deletion'==_0x4b7d4e['type']?0x1:0x0);}function to(_0x5d7add,_0x4677c0){let _0x595df2,_0x2e19e9=0x0;const _0x146b09=[],_0x2fa476=_0x4677c0['schema'];for(;_0x2e19e9<_0x5d7add['length'];){const _0x1a1d93=_0x5d7add[_0x2e19e9],_0x5cedd1=_0x5d7add[_0x2e19e9+0x1];_0x595df2||(_0x595df2=_0x4677c0['createPositionBefore'](_0x1a1d93)),on(_0x4677c0,_0x1a1d93,_0x5cedd1)||(_0x146b09['push'](_0x4677c0['createRange'](_0x595df2,_0x2fa476['isObject'](_0x1a1d93)?_0x4677c0['createPositionAfter'](_0x1a1d93):_0x4677c0['createPositionAt'](_0x1a1d93,'end'))),_0x595df2=null),_0x2e19e9++;}return _0x146b09;}function on(_0x2ae8a9,_0x5d5cbe,_0x42dc8f){if(!_0x42dc8f)return!0x1;const _0x2bb6a7=_0x2ae8a9['createPositionAfter'](_0x5d5cbe),_0x470bd5=_0x2ae8a9['createPositionBefore'](_0x42dc8f);return _0x2bb6a7['isTouching'](_0x470bd5);}function Xt(_0x4e3a9b,_0x4b476b,_0x4e8437){for(;_0x4e8437['length'];){const _0x57181f=_0x4e8437['splice'](0x0,0x64);_0x4e3a9b['change'](()=>{for(const _0x4399bc of _0x57181f)_0x4399bc['isInContent']&&_0x4b476b['execute'](_0x4399bc['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x69dd0,_0x3c9da3,_0x36bf93){super(_0x69dd0),this['_command']=_0x3c9da3,this['_suggestions']=_0x36bf93,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5da700=Array['from'](this['_suggestions']['values']())['some'](_0x44a1bd=>_0x44a1bd['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5da700;}['execute'](){const _0x29ea48=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x1a014c of _0x29ea48){const _0x4862ba=_0x1a014c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4862ba))return;}Xt(this['editor']['model'],this['_command'],_0x29ea48);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5d842c,_0x3f98dc,_0x246deb){super(_0x5d842c),this['_command']=_0x3f98dc,this['_suggestions']=_0x246deb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x208500=this['editor']['model']['document']['selection'],_0x19b6d3=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3d6e7a,_0x184bca){const _0xf7de35=Array['from'](_0x3d6e7a['getRanges']()),_0xf16206=new Set();for(const _0x3b5f9c of _0x184bca)if(_0x3b5f9c['isInContent']){for(const _0x1b056e of _0xf7de35)for(const _0x4f04ce of _0x3b5f9c['getRanges']())(_0x1b056e['isIntersecting'](_0x4f04ce)||_0x3d6e7a['isCollapsed']&&!_0x3b5f9c['isMultiRange']&&_0x3b5f9c['next']&&_0x4f04ce['end']['isTouching'](_0x1b056e['start']))&&_0xf16206['add'](_0x3b5f9c);}return _0xf16206;}(_0x208500,_0x19b6d3),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2384fe=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x591bc7 of _0x2384fe){const _0x1eae9c=_0x591bc7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1eae9c))return;}Xt(this['editor']['model'],this['_command'],_0x2384fe);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x26912d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5b12ad,_0x520e95){super(),this['id']=_0x520e95['id'],this['type']=_0x520e95['type'],this['subType']=_0x520e95['subType']||null,this['author']=_0x520e95['author'],this['creator']=_0x520e95['creator']||_0x520e95['author'],this['isExternal']=Boolean(_0x520e95['attributes']&&_0x520e95['attributes']['@external']),this['data']=null,this['_model']=_0x5b12ad,this['_onAccept']=_0x520e95['onAccept'],this['_onDiscard']=_0x520e95['onDiscard'],this['_onAttributesChange']=_0x520e95['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x520e95['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 _0x39d9b3=this;for(;_0x39d9b3['previous'];)_0x39d9b3=_0x39d9b3['previous'];return _0x39d9b3;}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'](_0x5d1b11){this['_markerNames']['add'](_0x5d1b11);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4bbc7c=>this['_model']['markers']['get'](_0x4bbc7c))['filter'](_0xbb2a3b=>_0xbb2a3b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x57b52c=>{for(const _0x5674ea of this['getMarkers']())_0x57b52c['removeMarker'](_0x5674ea);}),this['_markerNames']['clear']();}['removeMarker'](_0x2cc94d){this['_model']['change'](_0x2dc20c=>{_0x2dc20c['removeMarker'](_0x2cc94d);}),this['_markerNames']['delete'](_0x2cc94d);}['addRange'](_0x1d71ea){const _0x35c4d9='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x35c4d9),this['_model']['change'](_0x2fd77e=>{_0x2fd77e['addMarker'](_0x35c4d9,{'range':_0x1d71ea,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x37e467){for(const _0x40a722 of this['getRanges']())if(_0x40a722['isIntersecting'](_0x37e467))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x547e71=>_0x547e71['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2ddcc3,_0xdd0f9d)=>[..._0x2ddcc3,..._0xdd0f9d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5cc704=this['getRanges']();if(0x1!=_0x5cc704['length'])return null;const _0x48c88d=_0x5cc704[0x0],_0x45429f=_0x48c88d['start']['nodeAfter'],_0x47d307=_0x48c88d['end']['nodeBefore'];return _0x45429f instanceof _0x58b785?_0x45429f!=_0x47d307?null:_0x45429f: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 _0x28547f=[];let _0x5c43bf=this['head'];for(;_0x5c43bf;)_0x28547f['push'](_0x5c43bf),_0x5c43bf=_0x5c43bf['next'];return _0x28547f;}['setAttribute'](_0x49cb13,_0x1b6a3f){const _0x464333=_0x3f2a2c(this['attributes']);_0x427ffc(_0x464333,_0x49cb13,_0x1b6a3f),_0x242804(_0x464333,this['attributes'])||(this['attributes']=_0x464333,this['_onAttributesChange'](_0x464333));}['removeAttribute'](_0x2531eb){const _0xcca1d=_0x3f2a2c(this['attributes']);_0x5e065b(_0xcca1d,_0x2531eb),_0x242804(_0xcca1d,this['attributes'])||(this['attributes']=_0xcca1d,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 _0x476dad()['substr'](0x1,0x5);}}function o(_0x5aff01,_0x16ca3f,_0x947fac){const _0x542f79=_0x5aff01['t'],t=_0x5aff01['t'];switch(_0x16ca3f){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'*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',_0x947fac);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x947fac);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x947fac);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x947fac);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x947fac);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',_0x947fac);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x947fac);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x947fac);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x947fac);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x947fac);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x947fac);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x947fac);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x947fac);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x947fac);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x947fac);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x947fac);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x947fac);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x947fac);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x947fac);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x947fac);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x947fac);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x947fac);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x947fac);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x947fac);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'},_0x947fac);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x947fac);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x947fac);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x947fac);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x947fac);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x947fac);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'},_0x947fac);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x947fac);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x947fac);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x947fac);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x947fac);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'},_0x947fac);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x947fac);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'},_0x947fac);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'},_0x947fac);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x947fac);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'},_0x947fac);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x947fac);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'},_0x947fac);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x947fac);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x947fac);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'},_0x947fac);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x947fac);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 _0x542f79({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x947fac);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x542f79({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x947fac);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x947fac);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'},_0x947fac);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'},_0x947fac);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'},_0x947fac);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x16ca3f;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x558e00,_0x56fcd7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x558e00,this['_locale']=_0x56fcd7;}['getDescriptions'](_0x9bf414){const _0x5dc007=[],_0x4aa780=new Set(),_0x59709c=new Set();for(let _0x4a64e4=0x0;_0x4a64e4<_0x9bf414['length'];_0x4a64e4++){const _0x2009ab=_0x9bf414[_0x4a64e4];if(!_0x2009ab['isInContent'])continue;const _0x49f420=this['_handleCustomCallbackDescription'](_0x2009ab);if(_0x49f420){if(null!=_0x2009ab['subType']){if(_0x4aa780['has'](_0x2009ab['subType']))continue;_0x4aa780['add'](_0x2009ab['subType']);}_0x5dc007['push'](_0x49f420);}else{if('attribute'!=_0x2009ab['type'])'insertion'!=_0x2009ab['type']&&'deletion'!=_0x2009ab['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5dc007,_0x2009ab,_0x9bf414[_0x4a64e4+0x1]);else{const _0x459671=_0x2009ab['data']['key'];if(_0x59709c['has'](_0x459671))continue;_0x59709c['add'](_0x2009ab['data']['key']),_0x459671==m?this['_handleRenameSuggestionDescription'](_0x5dc007,_0x2009ab):this['_handleAttributeSuggestionDescription'](_0x5dc007,_0x2009ab);}}}return this['_resolveDescriptionItems'](_0x5dc007);}['registerDescriptionCallback'](_0x3a42a7){this['_customCallbacks']['push'](_0x3a42a7);}['registerElementLabel'](_0x566c20,_0x26b917,_0x54442d=_0x4b7bfc['normal']){'function'==typeof _0x566c20?_0x48b07b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x566c20,'label':_0x26b917,'priority':_0x54442d}):this['_itemLabels']['set'](_0x566c20,_0x26b917);}['registerAttributeLabel'](_0x5842fe,_0x3b02c9){this['_attributeLabels']['set'](_0x5842fe,_0x3b02c9);}['getItemLabel'](_0x71e21f,_0x344fcc=0x1){let _0x1d364f;for(const _0x3ee02e of this['_itemLabelsCallbacks'])if(_0x3ee02e['matchingCallback'](_0x71e21f)){_0x1d364f=_0x3ee02e['label'];break;}return _0x1d364f||(_0x1d364f=this['_itemLabels']['get'](_0x71e21f['name'])),_0x1d364f?_0x1d364f(_0x344fcc):0x1!==_0x344fcc?_0x344fcc+'\x20'+_0x71e21f['name']+'s':''+_0x71e21f['name'];}['_addDescriptionItems'](_0x565725,_0x5da442){const _0x916886=_0x5da442['getFirstRange']()['getWalker'](),_0x3efc17='insertion'==_0x5da442['type']?'add':'remove';for(const _0x5a1bb6 of _0x916886){const _0x3df9ab=_0x5a1bb6['item'],_0x4b8c0e=_0x565725[_0x565725['length']-0x1];if(_0x3df9ab['is']('$textProxy'))_0x4b8c0e&&_0x4b8c0e['type']['indexOf']('Container')>-0x1&&_0x565725['pop'](),_0x4b8c0e&&'text'==_0x4b8c0e['type']?_0x4b8c0e[_0x3efc17]+=_0x3df9ab['data']:_0x565725['push']({'type':'text','add':'add'==_0x3efc17?_0x3df9ab['data']:'','remove':'remove'==_0x3efc17?_0x3df9ab['data']:''});else{if(this['_schema']['isObject'](_0x3df9ab)){const _0x3057a2=_0x3df9ab;if(_0x4b8c0e&&_0x4b8c0e['type']['indexOf']('Container')>-0x1&&_0x565725['pop'](),'elementEnd'==_0x5a1bb6['type'])continue;_0x4b8c0e&&_0x4b8c0e['type']==_0x3efc17+'Object'&&_0x4b8c0e['element']['name']==_0x3057a2['name']?_0x4b8c0e['quantity']++:_0x565725['push']({'type':_0x3efc17+'Object','element':_0x3057a2,'quantity':0x1}),_0x916886['skip'](_0xe2aa9b=>!('elementEnd'==_0xe2aa9b['type']&&_0xe2aa9b['item']==_0x3df9ab));}else{if(this['_schema']['checkChild'](_0x3df9ab,'$text')||_0x3df9ab['is']('element','softBreak')){const _0x236114=_0x3df9ab;if('add'==_0x3efc17&&'elementStart'==_0x5a1bb6['type']||'remove'==_0x3efc17&&'elementEnd'==_0x5a1bb6['type'])continue;if(_0x4b8c0e&&-0x1==_0x4b8c0e['type']['indexOf']('Container')){'text'==_0x4b8c0e['type']&&(_0x4b8c0e[_0x3efc17]+='\x0a');continue;}let _0x4098c0;if(_0x4098c0='add'==_0x3efc17?_0x236114['nextSibling']&&!this['_schema']['isObject'](_0x236114['nextSibling'])?_0x236114['nextSibling']:null:_0x236114['previousSibling']&&!this['_schema']['isObject'](_0x236114['previousSibling'])?_0x236114['previousSibling']:null,_0x236114['isEmpty']||_0x4098c0&&_0x4098c0['isEmpty']){const _0x57dc4c=_0x4098c0&&_0x4098c0['isEmpty']?_0x4098c0:_0x236114;_0x4b8c0e&&_0x4b8c0e['type']==_0x3efc17+'EmptyContainer'&&_0x4b8c0e['element']['name']==_0x57dc4c['name']?_0x4b8c0e['quantity']++:_0x565725['push']({'type':_0x3efc17+'EmptyContainer','element':_0x57dc4c,'quantity':0x1});}else _0x565725['push']({'type':_0x3efc17+'Container','element':_0x236114});}}}}}['_resolveDescriptionItems'](_0x3aedf8){const _0x1017fa=this['_locale'],_0x13da65=[],_0x5f2f52=[],_0x544196=[];for(const _0x5e5187 of _0x3aedf8)switch(_0x5e5187['type']){case'text':if(_0x5e5187['add']=_0x5e5187['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5e5187['remove']=_0x5e5187['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5e5187['add']&&''!=_0x5e5187['remove']){_0x13da65['push']({'type':'replace','content':o(_0x1017fa,'REPLACE_TEXT',['\x22'+_0x5e5187['remove']+'\x22','\x22'+_0x5e5187['add']+'\x22'])});continue;}if(null!=_0x5e5187['add']['match'](/^ +$/)){_0x13da65['push']({'type':'insertion','content':o(_0x1017fa,'*Insert:*\x20%0',o(_0x1017fa,'ELEMENT_SPACE',_0x5e5187['add']['length']))});continue;}if(null!=_0x5e5187['remove']['match'](/^ +$/)){_0x13da65['push']({'type':'deletion','content':o(_0x1017fa,'*Remove:*\x20%0',o(_0x1017fa,'ELEMENT_SPACE',_0x5e5187['remove']['length']))});continue;}if(''!=_0x5e5187['add']){_0x13da65['push']({'type':'insertion','content':o(_0x1017fa,'*Insert:*\x20%0','\x22'+_0x5e5187['add']+'\x22')});continue;}_0x13da65['push']({'type':'deletion','content':o(_0x1017fa,'*Remove:*\x20%0','\x22'+_0x5e5187['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x13da65['push']({'type':'insertion','content':o(_0x1017fa,'*Insert:*\x20%0',this['getItemLabel'](_0x5e5187['element'],_0x5e5187['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x13da65['push']({'type':'deletion','content':o(_0x1017fa,'*Remove:*\x20%0',this['getItemLabel'](_0x5e5187['element'],_0x5e5187['quantity']))});continue;case'addContainer':_0x13da65['push']({'type':'insertion','content':o(_0x1017fa,'*Split:*\x20%0',this['getItemLabel'](_0x5e5187['element'],_0x5e5187['quantity']))});continue;case'removeContainer':_0x13da65['push']({'type':'deletion','content':o(_0x1017fa,'*Merge:*\x20%0',this['getItemLabel'](_0x5e5187['element'],_0x5e5187['quantity']))});continue;case'addFormat':_0x5f2f52['push'](_0x5e5187['key']);continue;case'removeFormat':_0x544196['push'](_0x5e5187['key']);continue;default:_0x13da65['push'](_0x5e5187);}if(_0x5f2f52['length']){const _0x32d365=_0x5f2f52['map'](_0x7ff6b5=>this['_attributeLabels']['has'](_0x7ff6b5)?this['_attributeLabels']['get'](_0x7ff6b5):_0x7ff6b5)['join'](',\x20');_0x13da65['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x32d365)});}if(_0x544196['length']){const _0x521488=_0x544196['map'](_0x3240d5=>this['_attributeLabels']['has'](_0x3240d5)?this['_attributeLabels']['get'](_0x3240d5):_0x3240d5)['join'](',\x20');_0x13da65['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x521488)});}return _0x13da65;}['_handleCustomCallbackDescription'](_0xac31d7){for(const _0x151905 of this['_customCallbacks']){const _0x1f0582=_0x151905(_0xac31d7);if(_0x1f0582&&'type'in _0x1f0582)return _0x1f0582;}}['_handleAttributeSuggestionDescription'](_0x1bb8c4,_0xfca075){const _0x252bf6=_0xfca075['data'],_0x204aee=void 0x0===_0x252bf6['newValue']?'removeFormat':'addFormat';_0x1bb8c4['push']({'type':_0x204aee,'key':_0x252bf6['key']});}['_handleRenameSuggestionDescription'](_0x305b13,_0xc86138){_0x305b13['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xc86138['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5428b9,_0x4517ad,_0xc187c0){if(this['_addDescriptionItems'](_0x5428b9,_0x4517ad),_0xc187c0&&_0xc187c0['getFirstRange']()&&!_0x4517ad['getFirstRange']()['end']['isEqual'](_0xc187c0['getFirstRange']()['start'])){const _0x12c5cf=_0x5428b9[_0x5428b9['length']-0x1],_0x503408='insertion'==_0x4517ad['type']?'add':'remove';_0x12c5cf&&'text'==_0x12c5cf['type']&&(_0x12c5cf[_0x503408]+='\x0a');}}}class U extends _0x107d6b{['afterInit'](){const _0x3b76a6=this['editor'],_0x3d08e5=_0x3b76a6['plugins']['get']('TrackChangesEditing');_0x3b76a6['commands']['get']('showAIAssistant')&&_0x3d08e5['enableCommand']('showAIAssistant');}}class V extends _0x107d6b{['afterInit'](){const _0x3bde86=this['editor'],_0x219ba5=_0x3bde86['locale'];if(!_0x3bde86['plugins']['has']('AlignmentEditing'))return;const _0x440cd4=_0x3bde86['plugins']['get']('TrackChangesEditing');_0x440cd4['enableDefaultAttributesIntegration']('alignment'),_0x440cd4['registerBlockAttribute']('alignment'),_0x440cd4['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x219ba5,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbf84d4=this['editor'],_0x8feb66=_0xbf84d4['locale'];_0xbf84d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x541595=>{if('formatBlock'!=_0x541595['type'])return;const {data:_0x5a1e94}=_0x541595;if(_0x5a1e94&&'alignment'==_0x5a1e94['commandName']){const _0x109c37=_0x5a1e94['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x8feb66,'*Format:*\x20%0',function(_0x417979){switch(_0x417979){case'left':return o(_0x8feb66,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x8feb66,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x8feb66,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x8feb66,'FORMAT_JUSTIFY_TEXT');}}(_0x109c37))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x107d6b{['afterInit'](){const _0x1158f8=this['editor'],_0x331cbc=_0x1158f8['plugins']['get']('TrackChangesEditing'),_0x4a7308=_0x1158f8['locale'];for(const _0x95e8aa of Zt){if(!_0x1158f8['plugins']['has'](_0x95e8aa))continue;const _0x2200e2=_0x95e8aa['slice'](0x0,-0x7)['toLowerCase'](),_0x54c8bf='FORMAT_'+_0x2200e2['toUpperCase']();_0x331cbc['enableDefaultAttributesIntegration'](_0x2200e2),_0x331cbc['registerInlineAttribute'](_0x2200e2),_0x331cbc['descriptionFactory']['registerAttributeLabel'](_0x2200e2,o(_0x4a7308,_0x54c8bf));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29dabe=this['editor'],_0x56aea5=_0x29dabe['locale'],_0x239fc7=_0x29dabe['plugins']['get']('TrackChangesEditing');function _0x26e675(_0x34f69d,_0xe97ebc){_0x239fc7['descriptionFactory']['registerDescriptionCallback'](_0x5cd3b5=>{if('formatInline'!=_0x5cd3b5['type'])return;const {data:_0x43b958}=_0x5cd3b5;return _0x43b958&&_0x43b958['commandName']===_0x34f69d?_0x43b958['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x56aea5,'*Format:*\x20%0',_0xe97ebc)}:{'type':'format','content':o(_0x56aea5,'*Remove\x20format:*\x20%0',_0xe97ebc)}:void 0x0;});}_0x26e675('bold',o(_0x56aea5,'FORMAT_BOLD')),_0x26e675('italic',o(_0x56aea5,'FORMAT_ITALIC')),_0x26e675('underline',o(_0x56aea5,'FORMAT_UNDERLINE')),_0x26e675('code',o(_0x56aea5,'FORMAT_CODE')),_0x26e675('strikethrough',o(_0x56aea5,'FORMAT_STRIKETHROUGH')),_0x26e675('subscript',o(_0x56aea5,'FORMAT_SUBSCRIPT')),_0x26e675('superscript',o(_0x56aea5,'FORMAT_SUPERSCRIPT'));}}class F extends _0x107d6b{['afterInit'](){const _0x3aacb7=this['editor'],_0x1869a8=_0x3aacb7['locale'];if(!_0x3aacb7['plugins']['has']('BlockQuoteEditing'))return;const _0x137046=_0x3aacb7['plugins']['get']('TrackChangesEditing'),_0x50d94a=this['editor']['commands']['get']('blockQuote');_0x137046['enableCommand']('blockQuote',(_0x5e450f,_0x3c9978={})=>{const _0x5d353f=this['editor']['model']['document']['selection'],_0x15fc4e=_0x3c9978&&void 0x0!==_0x3c9978['forceValue']?_0x3c9978['forceValue']:!_0x50d94a['value'];let _0xf8e757=[];if(_0x15fc4e){const _0xb96303=Array['from'](_0x5d353f['getSelectedBlocks']())['filter'](_0x86cf1f=>oo(_0x86cf1f)||function(_0x1eae10,_0x245554){const _0x4af45c=_0x245554['checkChild'](_0x1eae10['parent'],'blockQuote'),_0x5a6f82=_0x245554['checkChild'](['$root','blockQuote'],_0x1eae10);return _0x4af45c&&_0x5a6f82;}(_0x86cf1f,this['editor']['model']['schema']));_0xf8e757=to(_0xb96303,_0x3aacb7['model']);}else{const _0xceda9e=Array['from'](_0x5d353f['getSelectedBlocks']())['filter'](_0x45c1ba=>oo(_0x45c1ba));_0xf8e757=to(_0xceda9e,_0x3aacb7['model']);}_0x3aacb7['model']['change'](()=>{for(const _0x48b74e of _0xf8e757)_0x137046['markBlockFormat'](_0x48b74e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x15fc4e}]});});}),_0x137046['descriptionFactory']['registerDescriptionCallback'](_0x3c01e2=>{const {data:_0x5937fb}=_0x3c01e2;if(_0x5937fb&&'blockQuote'==_0x5937fb['commandName']){const _0x586f80=o(_0x1869a8,'ELEMENT_BLOCK_QUOTE');return _0x5937fb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1869a8,'*Set\x20format:*\x20%0',_0x586f80)}:{'type':'format','content':o(_0x1869a8,'*Remove\x20format:*\x20%0',_0x586f80)};}});}}function oo(_0x5475bb){return'blockQuote'==_0x5475bb['parent']['name'];}class L extends _0x107d6b{['afterInit'](){const _0x115dd5=this['editor'],_0x5caac9=_0x115dd5['locale'],_0x3a7d31=_0x115dd5['plugins']['get']('TrackChangesEditing');_0x115dd5['plugins']['has']('BookmarkEditing')&&(_0x3a7d31['enableCommand']('insertBookmark'),_0x3a7d31['enableDefaultAttributesIntegration']('updateBookmark'),_0x3a7d31['registerBlockAttribute']('bookmarkId'),_0x3a7d31['descriptionFactory']['registerDescriptionCallback'](_0x427282=>{if('insertion'!=_0x427282['type']&&'deletion'!=_0x427282['type']&&'attribute'!=_0x427282['type'])return;const _0x22fa7b=_0x427282['getContainedElement']();if(null==_0x22fa7b)return;if(!_0x22fa7b['is']('element','bookmark'))return;const _0x3b0a79=_0x22fa7b['getAttribute']('bookmarkId');if('insertion'==_0x427282['type'])return{'type':'insertion','content':o(_0x5caac9,'*Insert:*\x20%0','\x22'+_0x3b0a79+'\x22\x20'+o(_0x5caac9,'ELEMENT_BOOKMARK'))};if('deletion'==_0x427282['type'])return{'type':'deletion','content':o(_0x5caac9,'*Remove:*\x20%0','\x22'+_0x3b0a79+'\x22\x20'+o(_0x5caac9,'ELEMENT_BOOKMARK'))};const {data:_0x1c2c8a}=_0x427282;if(!_0x1c2c8a||'bookmarkId'!=_0x1c2c8a['key'])return;return{'type':'format','content':o(_0x5caac9,'*Set\x20bookmark:*\x20%0','\x22'+_0x1c2c8a['newValue']+'\x22')};}));}}class J extends _0x107d6b{['afterInit'](){const _0x37f0f5=this['editor'];_0x37f0f5['plugins']['has']('CaseChange')&&(_0x37f0f5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x37f0f5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x37f0f5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x107d6b{['afterInit'](){const _0xcc6b04=this['editor'];_0xcc6b04['commands']['get']('ckbox')&&_0xcc6b04['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x107d6b{['afterInit'](){const _0x5ceaca=this['editor'];if(!_0x5ceaca['plugins']['has']('CodeBlock'))return;const _0x2bae5c=_0x5ceaca['plugins']['get']('TrackChangesEditing'),_0x218c3e=_0x5ceaca['locale'],_0x358b3a=_0x5ceaca['config']['get']('codeBlock')['languages'],_0x3e1ef2=_0x5ceaca['commands']['get']('codeBlock');_0x2bae5c['enableCommand']('indentCodeBlock'),_0x2bae5c['enableCommand']('outdentCodeBlock'),_0x2bae5c['enableCommand']('codeBlock',(_0x4f3a42,_0x1524e1={})=>{const _0x1bcede=_0x5ceaca['model'],_0x3e8c20=_0x5ceaca['model']['document']['selection'],_0x4352fd=_0x1524e1&&void 0x0!==_0x1524e1['forceValue']?_0x1524e1['forceValue']:!_0x3e1ef2['value'];let _0xa38bbf;_0x1524e1['language']||(_0x1524e1['language']=_0x358b3a[0x0]['language']),_0xa38bbf=_0x4352fd?Array['from'](_0x3e8c20['getSelectedBlocks']())['filter'](_0x335cb3=>eo(_0x335cb3)||function(_0x466987,_0x1301bb){if(_0x466987['is']('rootElement')||_0x1301bb['isLimit'](_0x466987))return!0x1;return _0x1301bb['checkChild'](_0x466987['parent'],'codeBlock');}(_0x335cb3,_0x1bcede['schema'])):Array['from'](_0x3e8c20['getSelectedBlocks']())['filter'](_0x428251=>eo(_0x428251));const _0x140800=to(_0xa38bbf,_0x1bcede);_0x1bcede['change'](()=>{for(const _0x4a55ca of _0x140800)_0x2bae5c['markBlockFormat'](_0x4a55ca,{'commandName':'codeBlock','commandParams':[{..._0x1524e1,'forceValue':_0x4352fd}],'formatGroupId':'blockName'});});}),(_0x2bae5c['descriptionFactory']['registerElementLabel']('codeBlock',_0x13a6ce=>o(_0x218c3e,'ELEMENT_CODE_BLOCK',_0x13a6ce)),_0x2bae5c['descriptionFactory']['registerDescriptionCallback'](_0x5e0c4d=>{if('formatBlock'!=_0x5e0c4d['type'])return;const _0x153408=_0x218c3e['t'],{data:_0x4b294e}=_0x5e0c4d;if(!_0x4b294e||'codeBlock'!=_0x4b294e['commandName'])return;const _0x3cc382=_0x4b294e['commandParams'][0x0]['language'],_0x2900bd=_0x153408(_0x358b3a['find'](_0x195eb2=>_0x195eb2['language']===_0x3cc382)['label'])['toLowerCase']();return _0x4b294e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x218c3e,'*Set\x20format:*\x20%0',o(_0x218c3e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2900bd+')')}:{'type':'format','content':o(_0x218c3e,'*Remove\x20format:*\x20%0',o(_0x218c3e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x126234){return'codeBlock'==_0x126234['name'];}class z extends _0x107d6b{['afterInit'](){const _0x1e506f=this['editor'];if(!_0x1e506f['plugins']['has']('CommentsEditing'))return;_0x1e506f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2b4bcc,_0x1ada05,_0x2bfaeb){const _0x1ba163=[];for(const _0x346ce0 of _0x1ada05['getItems']())_0x346ce0['hasAttribute'](_0x2b4bcc)&&_0x1ba163['push'](_0x2bfaeb['createRangeOn'](_0x346ce0));return _0x1ba163;}function Ne(_0x55fff4,_0xc8a1da,{showActiveMarker:_0x213073=!0x0}={}){const _0x1b7339=_0x55fff4['plugins']['get']('TrackChangesEditing');return(_0x2cfd34,_0x241986,_0x4ed581)=>{if(!_0x4ed581['consumable']['test'](_0x241986['markerRange'],_0x2cfd34['name']))return;const _0x5b707a=_0x241986['markerRange']['getWalker'](),_0x1ad193=_0x241986['markerRange']['start'],_0x48816c=_0x55fff4['model']['schema'];let _0x4b1c21=null,_0x5cbe4e=null,_0x404b15=!0x1,_0x2d74f6=!0x1;for(const _0x1c3fc8 of _0x5b707a){const _0x1f849e=_0x1c3fc8['item'];_0x404b15=_0x404b15||_0x48816c['isContent'](_0x1f849e);const _0x45ca36=_0x4ed581['mapper']['toViewElement'](_0x1f849e);if(_0x45ca36&&_0x45ca36['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1c3fc8['type']&&(_0x48816c['isBlock'](_0x1f849e)&&!_0x48816c['isLimit'](_0x1f849e)&&(_0x1f849e['nextSibling']||_0x1ad193['isAtEnd']?_0x4b1c21&&_0x4b1c21['parent']==_0x1f849e||(_0x4b1c21=_0x1f849e,_0x1cf279(_0x1c3fc8['previousPosition']),_0x2d74f6=!0x0):_0x5cbe4e=_0x5cbe4e||_0x1c3fc8['previousPosition']));}function _0x1cf279(_0x3a7d11){const {authorId:_0x52098a}=_0x1b7339['_splitMarkerName'](_0x241986['markerName']),_0x2467a4=_0x4ed581['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc8a1da,'data-author-id':_0x52098a}),_0x473c5b=_0x4ed581['mapper']['toViewPosition'](_0x3a7d11);_0x213073&&_0x1b7339['activeMarkers']['includes'](_0x241986['markerName'])&&_0x4ed581['writer']['addClass']('ck-suggestion-marker--active',_0x2467a4),_0x4ed581['writer']['insert'](_0x473c5b,_0x2467a4),_0x4ed581['mapper']['bindElementToMarker'](_0x2467a4,_0x241986['markerName']);}_0x404b15||_0x2d74f6||!_0x5cbe4e||_0x1cf279(_0x5cbe4e);};}class K extends _0x107d6b{static get['requires'](){return[_0x4fb8de];}['init'](){const _0x4583e4=this['editor'],_0x41a445=_0x4583e4['plugins']['get']('TrackChangesEditing');_0x41a445['enableCommand']('delete');const _0x555680=_0x4583e4['commands']['get']('deleteForward');_0x41a445['enableCommand']('deleteForward',(_0x50717d,_0x53413e={})=>{const _0x10e7da=_0x4583e4['model']['createSelection'](_0x4583e4['model']['document']['selection']);_0x10e7da['isCollapsed']&&_0x4583e4['model']['modifySelection'](_0x10e7da,{'direction':'forward','unit':_0x53413e['unit']});const _0x391be4=_0x10e7da['getFirstRange'](),_0x123a84=_0x22f529['fromRange'](_0x391be4);let _0x3ac725;_0x50717d(_0x53413e),_0x3ac725='$graveyard'==_0x123a84['root']['rootName']?_0x4583e4['model']['createRange'](_0x391be4['start']):_0x4583e4['model']['createRange'](_0x123a84['start'],_0x123a84['end']),_0x123a84['detach'](),_0x4583e4['model']['enqueueChange'](_0x555680['buffer']['batch'],_0x2252a2=>{_0x555680['buffer']['lock'](),_0x2252a2['setSelection'](_0x2252a2['createRange'](_0x3ac725['end'])),_0x555680['buffer']['unlock']();});}),_0x4583e4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x4583e4,'merge'),{'priority':'high'}),_0x4583e4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x47acfc,_0x57b9a7,_0x12f377)=>{_0x12f377['options']['showSuggestionHighlights']&&Ne(_0x4583e4,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x47acfc,_0x57b9a7,_0x12f377);},{'priority':'high'}),_0x4583e4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x422723,_0x4571cd,_0x46d8df)=>{const _0x439bef=_0x46d8df['mapper']['markerNameToElements'](_0x4571cd['markerName']);if(_0x439bef){for(const _0xeca075 of _0x439bef)_0xeca075['is']('uiElement')&&(_0x46d8df['mapper']['unbindElementFromMarkerName'](_0xeca075,_0x4571cd['markerName']),_0x46d8df['writer']['remove'](_0xeca075));}},{'priority':'high'});}}class W extends _0x107d6b{['afterInit'](){const _0x317673=this['editor'];if(!_0x317673['plugins']['has']('ListEditing'))return;const _0x338204=_0x317673['locale'],_0x62a1ef=_0x317673['plugins']['get']('TrackChangesEditing'),_0x58e0de=_0x317673['plugins']['has']('TodoListEditing'),_0x24af6b=!!_0x317673['config']['get']('list.multiBlock');function _0x50f98b(_0x60b73b){return{'type':'format','content':''+o(_0x338204,'*Set\x20format:*\x20%0',_0x60b73b)};}function _0x35b021(_0x19d33d){return{'type':'format','content':''+o(_0x338204,'*Remove\x20format:*\x20%0',_0x19d33d)};}_0x62a1ef['enableDefaultAttributesIntegration']('numberedList'),_0x62a1ef['enableDefaultAttributesIntegration']('bulletedList'),_0x62a1ef['enableDefaultAttributesIntegration']('customNumberedList'),_0x62a1ef['enableDefaultAttributesIntegration']('customBulletedList'),_0x62a1ef['enableDefaultAttributesIntegration']('indentList'),_0x62a1ef['enableDefaultAttributesIntegration']('outdentList'),_0x62a1ef['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x62a1ef['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x62a1ef['registerBlockAttribute']('listItemId'),_0x62a1ef['registerBlockAttribute']('listType'),_0x62a1ef['registerBlockAttribute']('listIndent'),_0x24af6b&&(_0x62a1ef['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x62a1ef['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x58e0de&&(_0x62a1ef['enableDefaultAttributesIntegration']('todoList'),_0x62a1ef['enableDefaultAttributesIntegration']('checkTodoList'),_0x62a1ef['registerBlockAttribute']('todoListChecked'),_0x62a1ef['descriptionFactory']['registerDescriptionCallback'](_0x5b6886=>{const {data:_0x49c26b}=_0x5b6886;if(_0x49c26b&&'todoListChecked'==_0x49c26b['key'])return{'type':'format','content':_0x49c26b['newValue']?o(_0x338204,'*Check\x20item*'):o(_0x338204,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4fc6c0=>{if(_0x4fc6c0['batch']['isUndo'])return!0x1;let _0x32156=!0x1;const _0xa8739c=_0x62a1ef['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18bef3=>'todoListChecked'===_0x62a1ef['_getAttributeKey'](_0x18bef3));for(const _0x1760a6 of _0xa8739c){'todo'!=_0x1760a6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x62a1ef['_findSuggestions'](_0x1760a6['getFirstRange'](),'attribute')['find'](_0x153fb3=>'listType'===_0x62a1ef['_getAttributeKey'](_0x153fb3['suggestion']))||(_0x4fc6c0['removeMarker'](_0x1760a6['getFirstMarker']()),_0x32156=!0x0));}return _0x32156;})),_0x62a1ef['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x338204,'FORMAT_INDENT'));const _0x1d788e={'type':'format','content':''};_0x62a1ef['descriptionFactory']['registerDescriptionCallback'](_0xaa6d1a=>{const {data:_0x15a1b0}=_0xaa6d1a;if(!_0x15a1b0||'listType'!=_0x15a1b0['key'])return;let _0x3023d0=_0xaa6d1a['head'];for(;_0x3023d0;){if(_0x3023d0['data']&&(('listStyle'==_0x3023d0['data']['key']||'listMarkerStyle'==_0x3023d0['data']['key'])&&(_0x3023d0['data']['newValue']&&'default'!=_0x3023d0['data']['newValue']||'default'!=_0x3023d0['data']['oldValue']&&!_0x15a1b0['newValue'])||!_0x24af6b&&_0x3023d0['data']['key']==m))return _0x1d788e;_0x3023d0=_0x3023d0['next'];}if(null==_0x15a1b0['newValue'])switch(_0x15a1b0['oldValue']){case'bulleted':return _0x35b021(o(_0x338204,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35b021(o(_0x338204,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35b021(o(_0x338204,'ELEMENT_TODO_LIST'));}switch(_0x15a1b0['newValue']){case'bulleted':return _0x50f98b(o(_0x338204,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x50f98b(o(_0x338204,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x50f98b(o(_0x338204,'ELEMENT_TODO_LIST'));}}),_0x62a1ef['descriptionFactory']['registerDescriptionCallback'](_0x1c8741=>{const {data:_0x51aea7}=_0x1c8741;if(_0x51aea7&&'listIndent'==_0x51aea7['key'])return null==_0x51aea7['newValue']||null==_0x51aea7['oldValue']&&0x0==_0x51aea7['newValue']?_0x1d788e:void 0x0;}),_0x62a1ef['descriptionFactory']['registerDescriptionCallback'](_0xbb090e=>{if('attribute'!=_0xbb090e['type'])return;const {data:_0x1e814e}=_0xbb090e;if(!_0x1e814e||'listItemId'!=_0x1e814e['key'])return;const _0x5bb27d=Te(_0xbb090e);return'newValue'==_0x5bb27d?{'type':'format','content':o(_0x338204,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5bb27d?{'type':'format','content':o(_0x338204,'*Split:*\x20list\x20item')}:_0x1d788e;}),_0x317673['model']['document']['registerPostFixer'](_0x294963=>this['listItemIdFixer'](_0x294963)),_0x317673['model']['document']['registerPostFixer'](_0x5bdbce=>this['noTrackChangesFixer'](_0x5bdbce)),_0x317673['model']['document']['on']('change:data',(_0x3204bb,_0x2573df)=>{if(_0x2573df['isUndo']||!_0x2573df['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x23a959){if(_0x23a959['batch']['isUndo']||!_0x23a959['batch']['isLocal'])return!0x1;let _0x10235c=!0x1;const _0x4c89c8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3aeede=>_0x3aeede['data']&&'listItemId'==_0x3aeede['data']['key'])['filter'](_0x4a3a4d=>_0x4a3a4d['data']['newValue']&&_0x4a3a4d['data']['oldValue']);for(const _0x5987e1 of _0x4c89c8)Te(_0x5987e1)||(_0x23a959['removeMarker'](_0x5987e1['getFirstMarker']()),_0x10235c=!0x0);return _0x10235c;}['noTrackChangesFixer'](_0x4276e9){if(_0x4276e9['batch']['isUndo']||!_0x4276e9['batch']['isLocal'])return!0x1;const _0x6c8b9d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x6c8b9d['trackChangesCommand']['value'])return!0x1;let _0x483af1=!0x1;const _0x987cc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x320b37=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4eec2f=>'attribute'==_0x4eec2f['type'])['filter'](_0x1b0055=>_0x987cc['includes'](_0x1b0055['attributeKey']));if(0x0==_0x320b37['length'])return _0x483af1;for(const _0x3e740f of _0x320b37){const _0x3e6cd4=_0x6c8b9d['_findSuggestions'](_0x3e740f['range'],'attribute')['filter'](_0x23d09e=>!_0x23d09e['meta']['isNextTo'])['map'](_0x3ee6f0=>_0x3ee6f0['suggestion'])['filter'](_0x35a03e=>{const _0x139d09=_0x6c8b9d['_getAttributeKey'](_0x35a03e);return _0x987cc['includes'](_0x139d09);});if(_0x3e6cd4['length']){for(const _0x17091d of _0x3e6cd4)_0x4276e9['removeMarker'](_0x17091d['getFirstMarker']());_0x483af1=!0x0;}}return _0x483af1;}['assureChains'](){const _0x3de8fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x326eb7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x581ca9;const _0x4e1cd1=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1c5b2f=>{if(_0x1c5b2f['data']['oldRange']||!_0x1c5b2f['data']['newRange'])return null;if(!_0x1c5b2f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xf6e217}=_0x3de8fc['_splitMarkerName'](_0x1c5b2f['name']);if(!_0x3de8fc['hasSuggestion'](_0xf6e217))return null;const _0x4d5ae6=_0x3de8fc['getSuggestion'](_0xf6e217);return _0x326eb7['includes'](_0x4d5ae6['data']['key']);})['map'](_0x31d42f=>{const {id:_0x89b15c}=_0x3de8fc['_splitMarkerName'](_0x31d42f['name']),_0xc1cfd3=_0x3de8fc['getSuggestion'](_0x89b15c);return _0x581ca9=_0xc1cfd3['attributes']['groupId'],_0xc1cfd3['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4e1cd1['size'])return;const _0x2a47c0=_0x3de8fc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4591b9=>'attribute'==_0x4591b9['type']&&_0x4591b9['data']&&_0x326eb7['includes'](_0x4591b9['data']['key'])&&_0x4591b9['attributes']['groupId']!=_0x581ca9)['map'](_0x2ae85a=>({'listItem':_0x2ae85a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2ae85a['attributes']['groupId']})),_0x36f4b8=new Set();for(const {groupId:_0x59ffc7,listItem:_0xa9f739}of _0x2a47c0)_0x4e1cd1['has'](_0xa9f739)&&_0x36f4b8['add'](_0x59ffc7);for(const _0x28affd of _0x3de8fc['getSuggestions']())_0x36f4b8['has'](_0x28affd['attributes']['groupId'])&&_0x28affd['setAttribute']('groupId',_0x581ca9);}['_supportLegacySuggestions'](){const _0x2ae475=this['editor'],_0x1dfdf3=_0x2ae475['locale'],_0x1dd544=_0x2ae475['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1dd544['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5a4c7c,_0xe22255){const _0x3756ad=[];for(let _0x6cdfc5 of _0x5a4c7c)_0x6cdfc5['start']['nodeAfter']===_0x6cdfc5['end']['parent']&&(_0x6cdfc5=_0x2ae475['model']['createRange'](_0x2ae475['model']['createPositionAt'](_0x6cdfc5['start']['nodeAfter'],0x0))),_0x3756ad['push'](_0x6cdfc5);_0x2ae475['model']['change'](_0x1b5b0f=>{const _0x168c2f=_0x2ae475['model']['document']['selection'],_0xf6f9ca=Array['from'](_0x168c2f['getRanges']())['map'](_0x1f7a90=>_0x22f529['fromRange'](_0x1f7a90));_0x1b5b0f['setSelection'](_0x3756ad),_0x2ae475['commands']['get'](_0xe22255['commandName'])['refresh'](),_0xe22255['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2ae475['execute'](_0xe22255['commandName'],..._0xe22255['commandParams']),_0x1b5b0f['setSelection'](_0xf6f9ca);for(const _0x222eb4 of _0xf6f9ca)_0x222eb4['detach']();});}),_0x1dd544['descriptionFactory']['registerElementLabel'](function(_0x43eb31){const _0x144f0c=!_0x2ae475['model']['schema']['isObject'](_0x43eb31),_0x38c18e=_0x43eb31['previousSibling'],_0x1206e0=_0x43eb31['nextSibling'],_0x1c46ec=_0x43eb31['getAttribute']('listItemId'),_0x32cffe=!_0x38c18e||_0x38c18e['getAttribute']('listItemId')!==_0x1c46ec,_0x59998b=!_0x1206e0||_0x1206e0['getAttribute']('listItemId')!==_0x1c46ec;return _0x144f0c&&Boolean(_0x1c46ec)&&_0x32cffe&&_0x59998b;},_0x56318a=>o(_0x1dfdf3,'ELEMENT_LIST_ITEM',_0x56318a));}['_registerLegacyDescription'](){const _0x35b050=this['editor'],_0x26051e=_0x35b050['locale'];function _0x394f23(_0x112f0e){const _0x1ccdce=_0x35b050['commands']['get']('bulletedList')['value'],_0x272b66=_0x35b050['commands']['get']('numberedList')['value'];return'numberedList'===_0x112f0e?_0x1ccdce:_0x272b66;}_0x35b050['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x82ee8a){if('formatBlock'!=_0x82ee8a['type'])return;const {data:_0x8f7ab}=_0x82ee8a;if(!_0x8f7ab)return;let _0x4fce94,_0xcb9c68,_0x14b722,_0xbd383e;switch(_0x8f7ab['commandName']){case'bulletedList':_0x14b722=_0x8f7ab['commandParams'][0x0]['forceValue'],_0xbd383e=_0x394f23(_0x8f7ab['commandName']),_0x4fce94=_0x14b722?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xbd383e&&_0x35b050['config']['get']('list.multiBlock')||(_0x4fce94='*Change\x20to:*\x20%0'),_0xcb9c68={'type':'format','content':o(_0x26051e,_0x4fce94,o(_0x26051e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x14b722=_0x8f7ab['commandParams'][0x0]['forceValue'],_0xbd383e=_0x394f23(_0x8f7ab['commandName']),_0x4fce94=_0x14b722?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xbd383e&&_0x35b050['config']['get']('list.multiBlock')||(_0x4fce94='*Change\x20to:*\x20%0'),_0xcb9c68={'type':'format','content':o(_0x26051e,_0x4fce94,o(_0x26051e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4fce94='*Indent:*\x20%0',_0xcb9c68={'type':'format','content':o(_0x26051e,_0x4fce94,o(_0x26051e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4fce94=function(_0x59e4db){const _0x841b0f=_0x59e4db['getFirstRange']();let _0x2367c3=_0x841b0f['start']['nodeAfter'];for(;_0x2367c3&&_0x841b0f['containsItem'](_0x2367c3);){if(_0x2367c3['getAttribute']('listIndent')>0x0)return!0x1;_0x2367c3=_0x2367c3['nextSibling'];}return!0x0;}(_0x82ee8a)?o(_0x26051e,'*Format:*\x20remove\x20from\x20%0',o(_0x26051e,function(_0x4eae4a){return'ELEMENT_'+_0x4eae4a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x82ee8a))):o(_0x26051e,'*Outdent:*\x20%0',o(_0x26051e,'ELEMENT_LIST_ITEM')),_0xcb9c68={'type':'format','content':_0x4fce94};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x8f7ab['multipleBlocks']&&(_0x4fce94='*Merge:*\x20%0',_0xcb9c68={'type':'deletion','content':o(_0x26051e,_0x4fce94,o(_0x26051e,'ELEMENT_LIST_ITEM'))});}return _0xcb9c68;});}}function Te(_0x2c72a5){let _0x18c19b=_0x2c72a5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x18c19b;){const _0x3e98c2=_0x18c19b['getAttribute']('listItemId');if(!_0x3e98c2)return!0x1;if(_0x3e98c2==_0x2c72a5['data']['newValue'])return'newValue';if(_0x3e98c2==_0x2c72a5['data']['oldValue'])return'oldValue';_0x18c19b=_0x18c19b['previousSibling'];}return!0x1;}class ye extends _0x107d6b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2cc92c=this['editor']['config']['get']('list.properties'),_0x563273=this['editor']['plugins']['get']('TrackChangesEditing');_0x2cc92c['styles']&&(_0x563273['enableDefaultAttributesIntegration']('listStyle'),_0x563273['registerBlockAttribute']('listStyle')),_0x2cc92c['reversed']&&(_0x563273['enableDefaultAttributesIntegration']('listReversed'),_0x563273['registerBlockAttribute']('listReversed')),_0x2cc92c['startIndex']&&(_0x563273['enableDefaultAttributesIntegration']('listStart'),_0x563273['registerBlockAttribute']('listStart'));const _0x1bf83d={'type':'format','content':''};_0x563273['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1ffd67=this['editor']['locale'];_0x563273['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1ffd67,'FORMAT_LIST_REVERSED')),_0x563273['descriptionFactory']['registerDescriptionCallback'](_0x3c3531=>{const {data:_0x4ce6ce}=_0x3c3531;if(_0x4ce6ce&&'listReversed'==_0x4ce6ce['key'])return null==_0x4ce6ce['newValue']||0x0==_0x4ce6ce['newValue']&&null==_0x4ce6ce['oldValue']?_0x1bf83d:void 0x0;}),_0x563273['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1ffd67,'FORMAT_LIST_START')),_0x563273['descriptionFactory']['registerDescriptionCallback'](_0x2b4119=>{const {data:_0x3c1c44}=_0x2b4119;if(_0x3c1c44&&'listStart'==_0x3c1c44['key'])return null==_0x3c1c44['newValue']||0x1==_0x3c1c44['newValue']&&null==_0x3c1c44['oldValue']?_0x1bf83d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2035b1=>{if(_0x2035b1['batch']['isUndo'])return!0x1;let _0x2b5291=!0x1;const _0x5a3db0=_0x563273['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21e454=>{const _0x4b6a16=_0x563273['_getAttributeKey'](_0x21e454);return'listStart'==_0x4b6a16||'listReversed'==_0x4b6a16;});for(const _0x3c40bd of _0x5a3db0){const _0x2126fc=_0x3c40bd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2126fc||'customNumbered'==_0x2126fc)continue;_0x563273['_findSuggestions'](_0x3c40bd['getFirstRange'](),'attribute')['find'](_0x140f2d=>'listType'==_0x563273['_getAttributeKey'](_0x140f2d['suggestion']))||(_0x2035b1['removeMarker'](_0x3c40bd['getFirstMarker']()),_0x2b5291=!0x0);}return _0x2b5291;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1abb7b){const _0x4c686b=this['editor']['locale'],{data:_0x30795e}=_0x1abb7b,_0x47c583={'type':'format','content':''};if(!_0x30795e||'listStyle'!=_0x30795e['key'])return;if(!_0x30795e['oldValue'])return'default'==_0x30795e['newValue']?_0x47c583:{'type':'format','content':''+o(_0x4c686b,'*Set\x20format:*\x20%0',o(_0x4c686b,this['_getTranslationKeyForListStyle'](_0x30795e['newValue'])))};if(!_0x30795e['newValue']){if('default'==_0x30795e['oldValue'])return _0x47c583;let _0x3cf258=_0x1abb7b['head'];for(;_0x3cf258;){if(_0x3cf258['data']&&'listType'==_0x3cf258['data']['key']&&_0x3cf258['data']['newValue'])return _0x47c583;_0x3cf258=_0x3cf258['next'];}return{'type':'format','content':''+o(_0x4c686b,'*Remove\x20format:*\x20%0',o(_0x4c686b,this['_getTranslationKeyForListStyle'](_0x30795e['oldValue'])))};}if('default'!=_0x30795e['newValue'])return{'type':'format','content':''+o(_0x4c686b,'*Set\x20format:*\x20%0',o(_0x4c686b,this['_getTranslationKeyForListStyle'](_0x30795e['newValue'])))};let _0x2c9dc3=_0x1abb7b['head'];for(;_0x2c9dc3;){if(_0x2c9dc3['data']&&'listType'==_0x2c9dc3['data']['key']&&_0x2c9dc3['data']['newValue']&&_0x2c9dc3['data']['oldValue'])return _0x47c583;_0x2c9dc3=_0x2c9dc3['next'];}return{'type':'format','content':o(_0x4c686b,'*Set\x20format:*\x20%0',o(_0x4c686b,'ELEMENT_'+_0x1abb7b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x6293b9=this['editor'],_0x22184c=_0x6293b9['locale'];_0x6293b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x108e92=>{if('formatBlock'!=_0x108e92['type'])return;const {data:_0xf16dc1}=_0x108e92;if(!_0xf16dc1)return;let _0x2359fd,_0x40487b;switch(_0xf16dc1['commandName']){case'listStyle':_0x2359fd='*Change\x20to:*\x20%0',_0x40487b={'type':'format','content':o(_0x22184c,_0x2359fd,o(_0x22184c,this['_getTranslationKeyForListStyle'](_0xf16dc1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2359fd=_0xf16dc1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x40487b={'type':'format','content':o(_0x22184c,_0x2359fd)};break;case'listStart':_0x2359fd='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40487b={'type':'format','content':o(_0x22184c,_0x2359fd,_0xf16dc1['commandParams'][0x0]['startIndex'])};}return _0x40487b;});}['_getTranslationKeyForListStyle'](_0x1259e6){return'ELEMENT_'+function(_0x14a063){if(Se['includes'](_0x14a063))return'bulleted';if(_e['includes'](_0x14a063))return'numbered';return null;}(_0x1259e6)['toUpperCase']()+'_LIST_'+_0x1259e6['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x107d6b{static get['requires'](){return[_0xa7c161];}['init'](){const _0x5cb0f6=this['editor'],_0x198768=_0x5cb0f6['plugins']['get']('TrackChangesEditing'),_0x10dd37=_0x5cb0f6['commands']['get']('enter');_0x198768['enableCommand']('enter',()=>{_0x5cb0f6['model']['change'](_0xadaf9c=>{const _0x305c14=_0x5cb0f6['model']['document']['selection'],_0x5966cd=_0x305c14['getFirstPosition'](),_0x2e274a=_0x22f529['fromRange'](_0x305c14['getFirstRange']());if(_0x10dd37['enterBlock'](_0xadaf9c)){const _0x127467=_0x5cb0f6['model']['createPositionAt'](_0x5966cd['parent']['nextSibling'],0x0),_0x1f5b30=_0xadaf9c['createRange'](_0x5966cd,_0x127467);_0x198768['markInsertion'](_0x1f5b30);}else _0xadaf9c['setSelection'](_0xadaf9c['createRange'](_0x2e274a['end']));_0x2e274a['detach'](),_0x10dd37['fire']('afterExecute',{'writer':_0xadaf9c});});}),_0x5cb0f6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x5cb0f6,'split'),{'priority':'high'}),_0x5cb0f6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x572de7,_0x1b3218,_0x2e75ef)=>{const _0x4b70f4=_0x2e75ef['mapper']['markerNameToElements'](_0x1b3218['markerName']);if(_0x4b70f4){for(const _0x375a62 of _0x4b70f4)_0x375a62['hasClass']('ck-suggestion-marker-split')&&(_0x2e75ef['mapper']['unbindElementFromMarkerName'](_0x375a62,_0x1b3218['markerName']),_0x2e75ef['writer']['remove'](_0x375a62));}},{'priority':'high'}),_0x5cb0f6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c7578,_0x28edd1,_0x17ff5c)=>{_0x17ff5c['options']['showSuggestionHighlights']&&Ne(_0x5cb0f6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3c7578,_0x28edd1,_0x17ff5c);},{'priority':'high'});}}class Y extends _0x107d6b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x52015a=this['editor']['plugins']['get']('TrackChangesEditing');_0x52015a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x52015a['enableCommand']('findNext'),_0x52015a['enableCommand']('findPrevious'),_0x52015a['enableCommand']('replace'),_0x52015a['enableCommand']('replaceAll');}['handleFindCommand'](_0x5b0a0e,_0xfbb1ba,_0x56de39={}){const _0x561859=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5b0a0e(_0xa2cc6d=>{let _0x1f3c62=('string'==typeof _0xfbb1ba?_0x561859['findByTextCallback'](_0xfbb1ba,_0x56de39):_0xfbb1ba)(_0xa2cc6d);Array['isArray'](_0x1f3c62)&&(_0x1f3c62={'results':_0x1f3c62,'searchText':'string'==typeof _0xfbb1ba?_0xfbb1ba:''});const _0x4ae31c=_0x1f3c62['results']['filter'](_0xf55ce2=>!0x1===this['_isInDeletionRange'](_0xf55ce2,_0xa2cc6d['item']));return{..._0x1f3c62,'results':_0x4ae31c};},_0x56de39);}['_isInDeletionRange'](_0x26ed68,_0x3c14dc){const _0x361ae8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3c14dc,_0x26ed68['start']),this['editor']['model']['createPositionAt'](_0x3c14dc,_0x26ed68['end']));for(const _0x5e69fc of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x361ae8['getIntersection'](_0x5e69fc['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 _0x107d6b{['afterInit'](){const _0x4b7bb7=this['editor']['locale'],_0x47c0ce=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x945780,commandName:_0x505a66}of ro)this['editor']['plugins']['has'](_0x945780)&&(_0x47c0ce['enableDefaultAttributesIntegration'](_0x505a66),_0x47c0ce['registerInlineAttribute'](_0x505a66));_0x47c0ce['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4b7bb7,'FORMAT_FONT_SIZE')),_0x47c0ce['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4b7bb7,'FORMAT_FONT_FAMILY')),_0x47c0ce['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4b7bb7,'FORMAT_FONT_COLOR')),_0x47c0ce['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4b7bb7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19007f=this['editor'],_0x547940=_0x19007f['locale'];_0x19007f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d5c54=>{const _0x2bb9ee=_0x547940['t'];if('formatInline'!=_0x4d5c54['type'])return;const {data:_0x131869}=_0x4d5c54;if(null!=_0x131869){if('fontSize'==_0x131869['commandName']){const _0x5c096c=_0x131869['commandParams'][0x0]['value'];if(_0x5c096c){const _0x1b6180=_0x2bb9ee(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x54828c=>_0x54828c['model']==_0x5c096c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x547940,'*Set\x20font\x20size:*\x20%0',_0x1b6180)};}return{'type':'format','content':o(_0x547940,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x131869['commandName']){const _0x476a44=_0x131869['commandParams'][0x0]['value'];return _0x476a44?{'type':'format','content':o(_0x547940,'*Set\x20font\x20family:*\x20%0',_0x476a44)}:{'type':'format','content':o(_0x547940,'*Reset\x20font\x20family*')};}if('fontColor'==_0x131869['commandName']){const _0x3defaa=_0x131869['commandParams'][0x0]['value'];if(_0x3defaa){const _0x43da43=_0x48547c(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3e8658=>_0x3e8658['model']==_0x3defaa);let _0x228416=_0x3defaa,_0x127783='';return _0x43da43&&(_0x228416=_0x43da43['label'],_0x127783=_0x2bb9ee(_0x228416)['toLowerCase']()),{'type':'format','content':o(_0x547940,'*Set\x20font\x20color:*\x20%0',_0x127783)['trim'](),'color':{'value':_0x3defaa,'title':_0x127783||_0x228416}};}return{'type':'format','content':o(_0x547940,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x131869['commandName']){const _0x7c353e=_0x131869['commandParams'][0x0]['value'];if(_0x7c353e){const _0x4c62c5=_0x48547c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5aada1=>_0x5aada1['model']==_0x7c353e);let _0x25e5ca=_0x7c353e,_0x713834='';return _0x4c62c5&&(_0x25e5ca=_0x4c62c5['label'],_0x713834=_0x2bb9ee(_0x25e5ca)['toLowerCase']()),{'type':'format','content':o(_0x547940,'*Set\x20font\x20background\x20color:*\x20%0',_0x713834)['trim'](),'color':{'value':_0x7c353e,'title':_0x713834||_0x25e5ca}};}return{'type':'format','content':o(_0x547940,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x107d6b{['afterInit'](){const _0x550073=this['editor'],_0x60004e=_0x550073['plugins']['get']('TrackChangesEditing'),_0x237599=_0x550073['commands']['get']('copyFormat'),_0x4ea196=_0x550073['commands']['get']('pasteFormat');_0x237599&&_0x4ea196&&(_0x60004e['enableDefaultAttributesIntegration']('pasteFormat'),_0x60004e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xf79dd3=this['editor'],_0x1f2922=_0xf79dd3['locale'];_0xf79dd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18e440=>{if('formatBlock'!=_0x18e440['type']&&'formatInline'!=_0x18e440['type'])return;const {data:_0x4d6663}=_0x18e440;if(_0x4d6663&&'pasteFormat'===_0x4d6663['commandName']){const _0xe78ca4=[],_0x1df11e=_0x4d6663['commandParams'][0x0];for(const [_0x3f4e7e,_0x395c45]of Object['entries'](_0x1df11e))_0xe78ca4['push'](so(_0xf79dd3,_0x3f4e7e,_0x395c45));return _0xe78ca4['length']?{'type':'format','content':o(_0x1f2922,'*Set\x20format\x20to:*\x20%0',_0xe78ca4['join'](',\x20'))}:{'type':'format','content':o(_0x1f2922,'*Remove\x20all\x20formatting*')};}});}}function so(_0x333331,_0xa5ee51,_0x55a9da){const _0x242bfc=_0x333331['locale']['t'],_0x3dd54c=_0xa5ee51['split'](/(?=[A-Z])/)['join']('\x20'),_0x43ca55=_0x242bfc(_0x3dd54c['charAt'](0x0)['toUpperCase']()+_0x3dd54c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x55a9da)return _0x43ca55;if('fontColor'===_0xa5ee51||'fontBackgroundColor'===_0xa5ee51){const _0x353c8c=_0x48547c(_0x333331['config']['get']('fontColor.colors'))['find'](_0x5dcceb=>_0x5dcceb['model']==_0x55a9da);return _0x43ca55+'\x20('+(_0x353c8c?_0x242bfc(_0x353c8c['label'])['toLowerCase']():_0x55a9da)+')';}if('fontSize'===_0xa5ee51&&isNaN(parseFloat(_0x55a9da))){const _0x2be09d=_0x333331['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x333331['config']['get']('fontSize.options'))['find'](_0x55b410=>_0x55b410['model']==_0x55a9da);return _0x43ca55+'\x20('+(_0x2be09d?_0x242bfc(_0x2be09d['title'])['toLowerCase']():_0x55a9da)+')';}return _0x43ca55+'\x20('+_0x55a9da+')';}class nt extends _0x107d6b{['_headingOptions'];['afterInit'](){const _0xbb83df=this['editor'];if(!_0xbb83df['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xbb83df['config']['get']('heading.options');const _0x3df82e=_0xbb83df['locale'],_0x377b7b=_0xbb83df['plugins']['get']('TrackChangesEditing');_0x377b7b['enableDefaultAttributesIntegration']('heading');for(const _0x5b8637 of this['_headingOptions'])'paragraph'!=_0x5b8637['model']&&_0x377b7b['descriptionFactory']['registerElementLabel'](_0x5b8637['model'],_0x242af6=>{const _0x40e19c=this['_getHeadingLevel'](_0x5b8637['model']);return null!==_0x40e19c?_0x1451b8(_0x242af6,_0x40e19c):_0x1e7b50(_0x242af6,_0x5b8637['title']);});function _0x1451b8(_0x51afe0,_0x3c47a2){return o(_0x3df82e,'ELEMENT_HEADING',[_0x51afe0,_0x3c47a2]);}function _0x1e7b50(_0x5917df,_0x514a15){return o(_0x3df82e,'ELEMENT_HEADING_CUSTOM',[_0x5917df,_0x514a15]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x551147=this['editor'],_0x2d7c31=_0x551147['locale'];function _0x348e7b(_0x54c6d8,_0x6cf40e){return o(_0x2d7c31,'ELEMENT_HEADING_CUSTOM',[_0x54c6d8,_0x6cf40e]);}_0x551147['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x279bc2=>{if('formatBlock'!=_0x279bc2['type'])return;const {data:_0x1911f4}=_0x279bc2;if(_0x1911f4&&'heading'==_0x1911f4['commandName']){const _0x1a1ce7=_0x1911f4['commandParams'][0x0]['value'],_0x5c1fa9=this['_getHeadingLevel'](_0x1a1ce7);if(null!==_0x5c1fa9)return{'type':'format','content':o(_0x2d7c31,'*Change\x20to:*\x20%0',(_0x142eda=0x1,_0x130d78=_0x5c1fa9,o(_0x2d7c31,'ELEMENT_HEADING',[_0x142eda,_0x130d78])))};const _0x307735=this['_headingOptions']['find'](_0x10a292=>_0x10a292['model']===_0x1a1ce7)['title'];return{'type':'format','content':o(_0x2d7c31,'*Change\x20to:*\x20%0',_0x348e7b(0x1,_0x307735))};}var _0x142eda,_0x130d78;});}['_getHeadingLevel'](_0x418701){const _0xdecdec=_0x418701['match'](/^heading(\d+)/);if(_0xdecdec)return _0xdecdec[0x1];const _0x9a43ea=this['_headingOptions']?.['find'](_0x1b3aac=>_0x1b3aac['model']==_0x418701);if(_0x9a43ea&&_0x9a43ea['view']){const _0x27dfe9=_0x9a43ea['view'],_0xb4f138=(_0x27dfe9['name']??_0x27dfe9)['match'](/^h(\d+)/);if(_0xb4f138)return _0xb4f138[0x1];}return null;}}class it extends _0x107d6b{['afterInit'](){const _0xb84653=this['editor'];if(!_0xb84653['plugins']['has']('HighlightEditing'))return;const _0x4afb4d=_0xb84653['plugins']['get']('TrackChangesEditing'),_0x238af0=_0xb84653['locale'];_0x4afb4d['enableDefaultAttributesIntegration']('highlight'),_0x4afb4d['registerInlineAttribute']('highlight'),_0x4afb4d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x238af0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d0c7f=this['editor'],_0x167d16=_0x5d0c7f['locale'];_0x5d0c7f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x572708=>{if('formatInline'!=_0x572708['type'])return;const {data:_0x494077}=_0x572708;if(_0x494077&&'highlight'==_0x494077['commandName']){const _0x4b67f1=_0x167d16['t'],_0x2541dd=_0x494077['commandParams'][0x0]['value'];if(_0x2541dd){const _0x3612f8=_0x5d0c7f['config']['get']('highlight.options')['find'](_0x47fc21=>_0x47fc21['model']==_0x2541dd),_0x4e92b4=_0x4b67f1(_0x3612f8['title'])['toLowerCase']();return{'type':'format','content':o(_0x167d16,'*Set\x20highlight:*\x20%0',_0x4e92b4),'color':{'value':_0x3612f8['color'],'title':_0x3612f8['title']}};}return{'type':'format','content':o(_0x167d16,'*Remove\x20highlight*',o(_0x167d16,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x107d6b{['afterInit'](){const _0x310bd2=this['editor'];if(!_0x310bd2['plugins']['has']('HorizontalLineEditing'))return;_0x310bd2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x282638=_0x310bd2['plugins']['get']('TrackChangesEditing'),_0x34ca9f=_0x310bd2['locale'];_0x282638['descriptionFactory']['registerElementLabel']('horizontalLine',_0x502b8d=>o(_0x34ca9f,'ELEMENT_HORIZONTAL_LINE',_0x502b8d)),_0x310bd2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2b01a2,{writer:_0x2dc7a8,options:_0x36d73c})=>{if(!_0x36d73c['showSuggestionHighlights'])return null;const _0xe5124b=_0x2dc7a8['createContainerElement']('div'),_0x1be055=_0x2dc7a8['createEmptyElement']('hr');return _0x2dc7a8['addClass']('ck-horizontal-line',_0xe5124b),_0x2dc7a8['insert'](_0x2dc7a8['createPositionAt'](_0xe5124b,0x0),_0x1be055),_0xe5124b;},'converterPriority':'high'});}}class st extends _0x107d6b{['afterInit'](){const _0x3cf0d4=this['editor'];if(!_0x3cf0d4['plugins']['has']('HtmlEmbed'))return;const _0x5bf664=_0x3cf0d4['plugins']['get']('TrackChangesEditing'),_0x288ff9=_0x3cf0d4['locale'];_0x5bf664['descriptionFactory']['registerElementLabel']('rawHtml',_0x4ecc69=>o(_0x288ff9,'ELEMENT_HTML_EMBED',_0x4ecc69)),_0x5bf664['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5bf664['registerBlockAttribute']('value'),_0x5bf664['descriptionFactory']['registerDescriptionCallback'](_0x12416a=>{if('attribute'!=_0x12416a['type'])return;const {data:_0x2964c9}=_0x12416a;if(_0x2964c9&&'value'==_0x2964c9['key']&&_0x12416a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x22c5e0=o(_0x288ff9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x288ff9,'*Change\x20%0\x20content*',_0x22c5e0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10e33c=this['editor'],_0xcc54d6=_0x10e33c['locale'];_0x10e33c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ccdc1=>{if('formatBlock'!=_0x1ccdc1['type'])return;const {data:_0x345329}=_0x1ccdc1;if(_0x345329&&'htmlEmbed'==_0x345329['commandName']){const _0x6fede1=o(_0xcc54d6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xcc54d6,'*Change\x20%0\x20content*',_0x6fede1)};}});}}class ot extends _0x107d6b{['afterInit'](){const _0x2ebceb=this['editor'];if(!_0x2ebceb['plugins']['has']('ImageEditing'))return;const _0x5e861f=_0x2ebceb['plugins']['get']('TrackChangesEditing'),_0x3f46f9=_0x2ebceb['plugins']['get']('ImageUtils'),_0x4a38be=_0x2ebceb['locale'];_0x5e861f['enableCommand']('insertImage'),_0x5e861f['descriptionFactory']['registerElementLabel']('imageBlock',_0x25c769=>o(_0x4a38be,'ELEMENT_IMAGE',_0x25c769)),_0x5e861f['descriptionFactory']['registerElementLabel']('imageInline',_0x10b491=>o(_0x4a38be,'ELEMENT_INLINE_IMAGE',_0x10b491)),_0x5e861f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4a38be,'ELEMENT_CAPTION')),_0x2ebceb['plugins']['has']('ImageUploadEditing')&&_0x5e861f['enableCommand']('uploadImage'),_0x2ebceb['plugins']['has']('ImageBlockEditing')&&_0x2ebceb['plugins']['has']('ImageInlineEditing')&&(_0x5e861f['enableCommand']('imageTypeInline',(_0x25686e,_0x4a2c40)=>{const _0x124580=_0x3f46f9['getClosestSelectedImageElement'](_0x2ebceb['model']['document']['selection']);_0x2ebceb['model']['change'](()=>{_0x5e861f['markBlockFormat'](_0x124580,{'commandName':'imageTypeInline','commandParams':[_0x4a2c40]},[],'convertBlockImageToInline');});}),_0x5e861f['enableCommand']('imageTypeBlock',(_0x18b3e5,_0x4592c8)=>{_0x2ebceb['model']['change'](_0x704ba2=>{let _0x46a700=_0x3f46f9['getClosestSelectedImageElement'](_0x2ebceb['model']['document']['selection']),_0x566bf4=_0x704ba2['createRangeOn'](_0x46a700);const _0x4cf946=_0x7486fb['fromPosition'](_0x566bf4['start'],'toPrevious'),_0x447176=_0x7486fb['fromPosition'](_0x566bf4['end'],'toNext');_0x5e861f['forceDefaultExecution'](()=>_0x18b3e5(_0x4592c8)),_0x46a700=_0x3f46f9['getClosestSelectedImageElement'](_0x2ebceb['model']['document']['selection']),_0x566bf4=_0x704ba2['createRangeOn'](_0x46a700);const _0x3d75fa=_0x704ba2['createRange'](_0x4cf946,_0x447176);_0x4cf946['detach'](),_0x447176['detach'](),_0x5e861f['markBlockFormat'](_0x46a700,{'commandName':'imageTypeInline','commandParams':[_0x4592c8]},[],'convertInlineImageToBlock'),_0x3d75fa['start']['isBefore'](_0x566bf4['start'])&&_0x5e861f['markInsertion'](_0x704ba2['createRange'](_0x3d75fa['start'],_0x566bf4['start']),'convertInlineImageToBlock'),_0x566bf4['end']['isBefore'](_0x3d75fa['end'])&&_0x5e861f['markInsertion'](_0x704ba2['createRange'](_0x566bf4['end'],_0x3d75fa['end']),'convertInlineImageToBlock');});}),_0x5e861f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e861f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e861f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e861f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e861f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e861f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1aa876])=>{const _0x51d658=_0x5e861f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x59ceba=_0x1aa876['start'],_0xb6bcc1=_0x1aa876['end'];const _0x1990f7=_0x2ebceb['model']['schema']['getNearestSelectionRange'](_0x59ceba,'backward'),_0x48866d=_0x2ebceb['model']['schema']['getNearestSelectionRange'](_0xb6bcc1,'forward');_0x1990f7['isCollapsed']&&(_0x59ceba=_0x1990f7['start']),_0x48866d['isCollapsed']&&(_0xb6bcc1=_0x48866d['end']),_0x51d658([_0x2ebceb['model']['createRange'](_0x59ceba,_0xb6bcc1)]);}),_0x5e861f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1f06f8),_0x5e861f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1f06f8)),_0x2ebceb['plugins']['has']('ImageCaptionEditing')&&(_0x5e861f['enableCommand']('toggleImageCaption',(_0x2aecf6,_0x579bb8)=>{const _0x25f26e=_0x2ebceb['plugins']['get']('ImageCaptionUtils');let _0x54fdef=_0x3f46f9['getClosestSelectedImageElement'](_0x2ebceb['model']['document']['selection']),_0x2e7986=_0x25f26e['getCaptionFromImageModelElement'](_0x54fdef);_0x2ebceb['model']['change'](()=>{if(_0x2e7986)return void _0x5e861f['markDeletion'](_0x2ebceb['model']['createRangeOn'](_0x2e7986));const _0x4567a9=_0x3f46f9['isBlockImage'](_0x54fdef);_0x2aecf6(_0x579bb8),_0x54fdef=_0x3f46f9['getClosestSelectedImageElement'](_0x2ebceb['model']['document']['selection']),_0x2e7986=_0x25f26e['getCaptionFromImageModelElement'](_0x54fdef),_0x5e861f['markInsertion'](_0x2ebceb['model']['createRangeOn'](_0x2e7986),_0x4567a9?null:'imageCaption');});}),_0x5e861f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1f06f8));const _0x402750=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x45632e(_0x1ba7b9,_0x126d65){const _0x298e96=_0x402750['findIndex'](({type:_0x275565,subType:_0x4b23a5})=>_0x1ba7b9['type']==_0x275565&&_0x1ba7b9['subType']==_0x4b23a5),_0x3984d3=_0x402750['findIndex'](({type:_0x5681a1,subType:_0x2ed012})=>_0x126d65['type']==_0x5681a1&&_0x126d65['subType']==_0x2ed012);if(_0x298e96<0x0||_0x3984d3<0x0)return!0x1;const _0x236f2a=_0x1ba7b9['getFirstRange'](),_0x419daf=_0x126d65['getFirstRange']();if((0x0==_0x298e96||0x1==_0x298e96)&&0x2==_0x3984d3&&_0x236f2a['isIntersecting'](_0x419daf))return!0x0;if(0x2==_0x298e96&&0x3==_0x3984d3){const _0x4fe72c=_0x5e861f['_findSuggestions'](_0x236f2a,'insertion')['filter'](({suggestion:_0x477025,meta:_0x500ecb})=>_0x500ecb['isOwn']&&'convertInlineImageToBlock'==_0x477025['subType']);if(_0x4fe72c['length']>0x1&&_0x419daf['end']['isEqual'](_0x236f2a['start']))return!0x0;if(0x1==_0x4fe72c['length']&&(_0x236f2a['start']['isEqual'](_0x419daf['end'])||_0x236f2a['end']['isEqual'](_0x419daf['start'])))return!0x0;}if(0x3==_0x298e96&&0x3==_0x3984d3&&_0x236f2a['start']['isBefore'](_0x419daf['start'])){const _0x2a1587=_0x236f2a['end']['nodeAfter'],_0x17d410=_0x419daf['start']['nodeBefore'];return _0x3f46f9['isBlockImage'](_0x2a1587)&&_0x2a1587===_0x17d410;}return!0x1;}function _0x1f06f8(_0x46cc6d,_0x1940a3){return _0x45632e(_0x46cc6d,_0x1940a3)?[_0x46cc6d,_0x1940a3]:_0x45632e(_0x1940a3,_0x46cc6d)?[_0x1940a3,_0x46cc6d]:null;}_0x2ebceb['plugins']['has']('ImageResize')&&(_0x5e861f['enableDefaultAttributesIntegration']('resizeImage'),_0x5e861f['registerBlockAttribute']('resizedWidth'),_0x5e861f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4a38be,'FORMAT_IMAGE_SIZE'))),_0x2ebceb['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e861f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e861f['registerBlockAttribute']('alt')),_0x5e861f['descriptionFactory']['registerDescriptionCallback'](_0x69ecb0=>{if(!!_0x402750['find'](({type:_0xa716e,subType:_0x2b2995})=>_0x69ecb0['type']==_0xa716e&&_0x69ecb0['subType']==_0x2b2995))return _0x69ecb0['previous']?{}:void 0x0;}),_0x5e861f['descriptionFactory']['registerDescriptionCallback'](_0x418554=>{if('insertion'==_0x418554['type']||'deletion'==_0x418554['type']){const _0x5e2b67=_0x418554['getContainedElement']();if(_0x5e2b67&&_0x5e2b67['is']('element','caption'))return{'type':'insertion'==_0x418554['type']?'addObject':'removeObject','element':_0x5e2b67,'quantity':0x1};}}),_0x5e861f['descriptionFactory']['registerDescriptionCallback'](_0x37e8cb=>'formatBlock'==_0x37e8cb['type']&&'convertInlineImageToBlock'==_0x37e8cb['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x37e8cb['type']&&'convertBlockImageToInline'==_0x37e8cb['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e861f['descriptionFactory']['registerDescriptionCallback'](_0x43908b=>{if('attribute'!=_0x43908b['type'])return;const {data:_0x54ef1a}=_0x43908b;if(!_0x54ef1a||'alt'!=_0x54ef1a['key'])return;const _0x5b7cb4=_0x54ef1a['newValue'];return _0x5b7cb4?{'type':'format','content':o(_0x4a38be,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5b7cb4+'\x22')}:{'type':'format','content':o(_0x4a38be,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x422601=this['editor'],_0x5fce9b=_0x422601['locale'];_0x422601['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x397969=>{if('formatBlock'!=_0x397969['type']&&'formatInline'!=_0x397969['type'])return;const {data:_0x5b2fcc}=_0x397969;if(_0x5b2fcc){if('imageTextAlternative'==_0x5b2fcc['commandName']){const _0x223e6e=_0x5b2fcc['commandParams'][0x0]['newValue'];return _0x223e6e?{'type':'format','content':o(_0x5fce9b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x223e6e+'\x22')}:{'type':'format','content':o(_0x5fce9b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5b2fcc['commandName']){const _0x43afd6=_0x5b2fcc['commandParams'][0x0]['width'];return _0x43afd6?{'type':'format','content':o(_0x5fce9b,'*Set\x20image\x20width:*\x20%0',_0x43afd6)}:{'type':'format','content':o(_0x5fce9b,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x107d6b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x382fef=this['editor']['locale'],_0x1e88dc=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e88dc['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1e88dc['registerBlockAttribute']('src'),_0x1e88dc['descriptionFactory']['registerDescriptionCallback'](_0x1d3278=>{if('attribute'!=_0x1d3278['type'])return;const {data:_0x3cc2b9}=_0x1d3278;return _0x3cc2b9&&'src'==_0x3cc2b9['key']?_0x3cc2b9['newValue']&&_0x3cc2b9['oldValue']?{'type':'format','content':o(_0x382fef,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x125715=this['editor']['plugins']['get']('TrackChangesEditing');_0x125715['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x125715['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x125715['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x125715['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e7959=this['editor'],_0x2b21a5=_0x3e7959['locale'];_0x3e7959['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39cfc7=>{if('formatBlock'!=_0x39cfc7['type']&&'formatInline'!=_0x39cfc7['type'])return;const {data:_0x73cc05}=_0x39cfc7;if(!_0x73cc05||'replaceImageSource'!=_0x73cc05['commandName'])return;return{'type':'format','content':o(_0x2b21a5,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x107d6b{['afterInit'](){const _0x4be74a=this['editor'];if(!_0x4be74a['plugins']['has']('ImageStyleEditing'))return;const _0x32aa35=_0x4be74a['plugins']['get']('TrackChangesEditing'),_0x3c31cd=_0x4be74a['plugins']['get']('ImageUtils'),_0x1fb65a={};_0x32aa35['enableCommand']('imageStyle',(_0x58f20a,_0xb75104)=>{const _0x594b9a=_0x4be74a['plugins']['get']('Users')['me'],_0x1e0cf8=_0x4be74a['commands']['get']('imageStyle');let _0x5c5f0f=_0x3c31cd['getClosestSelectedImageElement'](_0x4be74a['model']['document']['selection']),_0x4cddab=_0x4be74a['model']['createRangeOn'](_0x5c5f0f),_0x203315=_0x1e0cf8['value'];if(_0x203315==_0xb75104['value'])return;const _0x512ab7={'commandName':'imageStyle','commandParams':[_0xb75104],'formatGroupId':_0x476dad()};_0x4be74a['model']['change'](()=>{if(_0x32aa35['getSuggestions']()['filter'](_0x16bf59=>_0x16bf59['isInContent']&&_0x594b9a==_0x16bf59['author']&&('formatBlock'==_0x16bf59['type']||'formatInline'==_0x16bf59['type'])&&('imageStylePreApply'==_0x16bf59['subType']||'imageStylePostApply'==_0x16bf59['subType'])&&_0x16bf59['getFirstRange']()['isEqual'](_0x4cddab))['forEach'](_0x57d2eb=>_0x32aa35['discardSuggestion'](_0x57d2eb['head'])),_0x5c5f0f=_0x3c31cd['getClosestSelectedImageElement'](_0x4be74a['model']['document']['selection']),_0x4cddab=_0x4be74a['model']['createRangeOn'](_0x5c5f0f),_0x1e0cf8['refresh'](),_0x4be74a['commands']['get']('imageTypeInline')['refresh'](),_0x4be74a['commands']['get']('imageTypeBlock')['refresh'](),_0x203315=_0x1e0cf8['value'],_0x203315!=_0xb75104['value'])return _0x3c31cd['isInlineImage'](_0x5c5f0f)&&_0x1e0cf8['shouldConvertImageType'](_0xb75104['value'],_0x5c5f0f)?(_0x58f20a({..._0xb75104,'setImageSizes':!0x1}),_0x5c5f0f=_0x3c31cd['getClosestSelectedImageElement'](_0x4be74a['model']['document']['selection']),void _0x32aa35['markBlockFormat'](_0x5c5f0f,{..._0x512ab7,'commandReversedParams':[{'value':_0x203315||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3c31cd['isBlockImage'](_0x5c5f0f)?_0x32aa35['markBlockFormat'](_0x5c5f0f,_0x512ab7,[],'imageStylePostApply'):_0x32aa35['markInlineFormat'](_0x4cddab,_0x512ab7,'imageStylePostApply'));});});for(const _0x4ced1c of _0x4be74a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1fb65a[_0x4ced1c['name']]=_0x4ced1c['title']['toLowerCase']();_0x32aa35['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x32aa35['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x32aa35['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x32aa35['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xc254c8])=>{_0x3c31cd['setImageNaturalSizeAttributes'](_0xc254c8['getContainedElement']());}),_0x32aa35['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3ca463,_0x1e6b12)=>{_0x32aa35['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3ca463,{'commandName':_0x1e6b12['commandName'],'commandParams':_0x1e6b12['commandReversedParams']});}),_0x32aa35['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2c682f,_0x10eb85){if(_0x25531a(_0x2c682f,_0x10eb85))return[_0x2c682f,_0x10eb85];if(_0x25531a(_0x10eb85,_0x2c682f))return[_0x10eb85,_0x2c682f];return null;});const _0xcd5c5e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x25531a(_0x50d856,_0x5f067c){const _0x3c8dbb=_0xcd5c5e['findIndex'](({type:_0x54e9ad,subType:_0xd4ecd4})=>_0x50d856['type']==_0x54e9ad&&_0x50d856['subType']==_0xd4ecd4),_0xe7edc2=_0xcd5c5e['findIndex'](({type:_0x1c1429,subType:_0x4ce91d})=>_0x5f067c['type']==_0x1c1429&&_0x5f067c['subType']==_0x4ce91d);if(_0x3c8dbb<0x0||_0xe7edc2<0x0)return!0x1;const _0x544a11=_0x50d856['getFirstRange'](),_0x31126b=_0x5f067c['getFirstRange']();if((0x0==_0x3c8dbb||0x1==_0x3c8dbb)&&0x2==_0xe7edc2&&_0x544a11['isIntersecting'](_0x31126b))return!0x0;if(0x2==_0x3c8dbb&&0x3==_0xe7edc2){const _0x599f72=_0x32aa35['_findSuggestions'](_0x544a11,'insertion')['filter'](({suggestion:_0x3f2922,meta:_0x385926})=>_0x385926['isOwn']&&'convertInlineImageToBlock'==_0x3f2922['subType']);if(_0x599f72['length']>0x1&&_0x31126b['end']['isEqual'](_0x544a11['start']))return!0x0;if(0x1==_0x599f72['length']&&(_0x544a11['start']['isEqual'](_0x31126b['end'])||_0x544a11['end']['isEqual'](_0x31126b['start'])))return!0x0;}if(0x3==_0x3c8dbb&&0x3==_0xe7edc2&&_0x544a11['start']['isBefore'](_0x31126b['start'])){const _0x2968ad=_0x544a11['end']['nodeAfter'],_0x516285=_0x31126b['start']['nodeBefore'];return _0x3c31cd['isBlockImage'](_0x2968ad)&&_0x2968ad===_0x516285;}return!0x1;}_0x4be74a['model']['document']['registerPostFixer'](()=>{let _0x4723e6=!0x1;const _0x58bcb4=Array['from'](_0x4be74a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20e9f3,data:_0x5b231e}of _0x58bcb4){const {group:_0x4ac1e1,type:_0x2475ac,subType:_0x42b7ac,id:_0xbabfc0}=_0x32aa35['_splitMarkerName'](_0x20e9f3);if('suggestion'==_0x4ac1e1&&_0x32aa35['hasSuggestion'](_0xbabfc0)){if('formatBlock'==_0x2475ac&&('imageStylePreApply'==_0x42b7ac||'imageStylePostApply'==_0x42b7ac)){const _0x574058=_0x32aa35['getSuggestion'](_0xbabfc0);if(_0x5b231e['newRange']){const _0x55f1b8=_0x574058['getFirstRange']()['getContainedElement']();if(_0x3c31cd['isBlockImage'](_0x55f1b8))continue;_0x32aa35['discardSuggestion'](_0x574058),_0x4723e6=!0x0;}}if('insertion'==_0x2475ac&&'imageCaption'==_0x42b7ac&&!_0x5b231e['newRange']){const _0x2839c9=_0x32aa35['getSuggestion'](_0xbabfc0);_0x2839c9['next']&&_0x2839c9['next']['isInContent']&&(_0x32aa35['discardSuggestion'](_0x2839c9['next']),_0x4723e6=!0x0);}}}return _0x4723e6;}),this['_registerLegacyDescription'](_0x1fb65a);}['_registerLegacyDescription'](_0x35a06e){const _0x699906=this['editor'],_0xd911a0=_0x699906['locale'];_0x699906['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fda9a=>{if('formatBlock'!=_0x2fda9a['type']&&'formatInline'!=_0x2fda9a['type'])return;const {data:_0x59773e}=_0x2fda9a;if(!_0x59773e||'imageStyle'!=_0x59773e['commandName'])return;const _0x33f633=_0x59773e['commandParams'][0x0]['value'];return _0x30370e('side'===_0x33f633?o(_0xd911a0,'FORMAT_SIDE_IMAGE'):_0x35a06e[_0x33f633]||_0x33f633);function _0x30370e(_0x4631c5){return{'type':'format','content':o(_0xd911a0,'*Format:*\x20%0',_0x4631c5)};}});}}class ct extends _0x107d6b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2742cc){super(_0x2742cc),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x9d15c6=this['editor'],_0x2932a3=_0x9d15c6['commands']['get']('importWord'),_0x53d1d5=_0x9d15c6['commands']['get']('trackChanges');_0x2932a3&&(_0x2932a3['on']('execute',(_0x4bae1f,[,_0x5531e2])=>{this['_trackChangesValueDuringImport']=_0x53d1d5['value'],_0x5531e2['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2932a3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2932a3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x53d1d5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x9d15c6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x46dcde,_0x481e8e){const {suggestions:_0x30f4de}=_0x481e8e,_0x37ca32=this['editor']['commands']['get']('trackChanges'),_0x2f6934=_0x37ca32['value'];this['_trackChangesValueDuringImport']!==_0x2f6934&&(_0x37ca32['execute'](),this['_trackChangesExecuted']=!0x0),_0x30f4de&&_0x30f4de['forEach'](({id:_0x2c318d,type:_0x22895c,author:_0x37f298,created_at:_0x27717a})=>{const _0x2c48e0={'id':_0x2c318d,'type':_0x22895c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x37f298,'createdAt':_0x27717a?new Date(_0x27717a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2c48e0);});}}class ut extends _0x107d6b{['afterInit'](){const _0x554aa5=this['editor'],_0x1f3a9b=_0x554aa5['plugins']['get']('TrackChangesEditing');if(_0x554aa5['plugins']['has']('IndentEditing')&&(_0x1f3a9b['enableCommand']('indent'),_0x1f3a9b['enableCommand']('outdent')),_0x554aa5['plugins']['has']('IndentBlock')){for(const _0x2252bf of['indentBlock','outdentBlock'])_0x1f3a9b['enableDefaultAttributesIntegration'](_0x2252bf);}const _0x939b66=_0x554aa5['locale'];_0x1f3a9b['registerBlockAttribute']('blockIndent'),_0x1f3a9b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x939b66,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x103eed=this['editor'],_0x46f130=_0x103eed['locale'],_0x294a5f=_0x103eed['plugins']['get']('TrackChangesEditing');_0x294a5f['descriptionFactory']['registerDescriptionCallback'](_0x760259=>{if('formatBlock'!=_0x760259['type'])return;const {data:_0x527804}=_0x760259;if(!_0x527804)return;if('indentBlock'!=_0x527804['commandName']&&'outdentBlock'!=_0x527804['commandName'])return;const _0x4c01e5=_0x760259['getItems']()[0x0],_0x1c64f5=_0x294a5f['descriptionFactory']['getItemLabel'](_0x4c01e5);return'indentBlock'==_0x527804['commandName']?{'type':'format','content':o(_0x46f130,'*Indent:*\x20%0',_0x1c64f5)}:'outdentBlock'==_0x527804['commandName']?{'type':'format','content':o(_0x46f130,'*Outdent:*\x20%0',_0x1c64f5)}:void 0x0;});}}class ft extends _0x107d6b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x107d6b{['afterInit'](){const _0xbc899d=this['editor'];if(!_0xbc899d['plugins']['has']('LinkEditing'))return;const _0x2282b0=_0xbc899d['plugins']['get']('TrackChangesEditing'),_0x19aad4=_0xbc899d['commands']['get']('link');_0x2282b0['enableDefaultAttributesIntegration']('link'),_0x2282b0['enableDefaultAttributesIntegration']('unlink'),_0x2282b0['registerInlineAttribute']('linkHref');for(const _0x247d58 of _0x19aad4['manualDecorators'])_0x2282b0['registerInlineAttribute'](_0x247d58['id']),_0x2282b0['descriptionFactory']['registerAttributeLabel'](_0x247d58['id'],'link\x20('+_0x247d58['label']['toLowerCase']()+')');_0x2282b0['descriptionFactory']['registerDescriptionCallback'](_0x4c4a95=>{if('attribute'!=_0x4c4a95['type'])return;const {data:_0x1ffb6a}=_0x4c4a95;if(!_0x1ffb6a||'linkHref'!=_0x1ffb6a['key'])return;const _0x29230e=_0x1ffb6a['newValue'],_0x1a9597=_0xbc899d['locale'];return{'type':'format','content':null==_0x29230e?o(_0x1a9597,'*Remove\x20link*'):o(_0x1a9597,'*Set\x20link:*\x20%0','\x22'+_0x29230e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x272b01=this['editor'],_0x3259ed=_0x272b01['locale'];_0x272b01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc1aab=>{if('formatInline'!=_0xc1aab['type'])return;const {data:_0x540397}=_0xc1aab;if(_0x540397){if('link'==_0x540397['commandName']){const _0x5b9145=_0x540397['commandParams'][0x0];return{'type':'format','content':o(_0x3259ed,'*Set\x20link:*\x20%0','\x22'+_0x5b9145+'\x22')};}return'unlink'==_0x540397['commandName']?{'type':'format','content':o(_0x3259ed,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x107d6b{['afterInit'](){const _0x3082bf=this['editor'],_0x12a852=_0x3082bf['locale'];if(!_0x3082bf['plugins']['has']('LegacyListEditing'))return;const _0x296461=_0x3082bf['plugins']['get']('TrackChangesEditing'),_0x52606a=_0x3082bf['plugins']['has']('LegacyTodoListEditing');function _0xb7ae42(_0x410459){return()=>{const _0x216220=_0x3082bf['model']['document']['selection'],_0x29ed3e=_0x3082bf['commands']['get'](_0x410459);if(_0x29ed3e['value'])return void _0x3082bf['execute']('paragraph',{});const _0x47c82a=_0x410459['slice'](0x0,-0x4),_0x2e762b=function(_0x396237,_0x34b678,_0x2adee3){let _0x33dd12=Array['from'](_0x396237)['filter'](_0x8fa31=>function(_0x3ab853,_0x308e33){return _0x308e33['checkChild'](_0x3ab853['parent'],'listItem')&&!_0x308e33['isObject'](_0x3ab853);}(_0x8fa31,_0x2adee3));_0x33dd12=_0x33dd12['filter'](_0x3033c9=>!_0x3033c9['is']('element','listItem')||_0x3033c9['getAttribute']('listType')!=_0x34b678);const _0x7bf9e1=new Set();for(const _0x1b22e5 of _0x33dd12)_0x1b22e5['is']('element','listItem')?_0x7bf9e1['add'](Le(_0x1b22e5)):_0x7bf9e1['add'](_0x1b22e5);return Array['from'](_0x7bf9e1);}(_0x216220['getSelectedBlocks'](),_0x47c82a,_0x3082bf['model']['schema']);_0x3082bf['model']['change'](()=>{for(const _0xcb51e2 of _0x2e762b)_0x296461['markBlockFormat'](_0xcb51e2,{'commandName':_0x410459,'commandParams':[{'forceValue':!_0x29ed3e['value']}],'formatGroupId':'blockName'},Ee(_0xcb51e2));});};}function _0x3e642e(_0x110e3f){return()=>{const _0x8613a3=function(_0x43bae0){let _0x2576a9=Array['from'](_0x43bae0);const _0x55c786=_0x2576a9['findIndex'](_0x38755b=>'listItem'!=_0x38755b['name']);return _0x55c786>-0x1&&(_0x2576a9=_0x2576a9['slice'](0x0,_0x55c786)),_0x2576a9;}(_0x3082bf['model']['document']['selection']['getSelectedBlocks']()),_0x37ea14=_0x3082bf['model']['createRange'](_0x3082bf['model']['createPositionAt'](_0x8613a3[0x0],'before'),_0x3082bf['model']['createPositionAt'](_0x8613a3[_0x8613a3['length']-0x1],'end'));_0x3082bf['model']['change'](()=>{_0x296461['markBlockFormat'](_0x37ea14,{'commandName':_0x110e3f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3da596){const _0x591e68=new Set();for(const _0x21e0d2 of _0x3da596){let _0x30f68a=_0x21e0d2['nextSibling'];for(;_0x30f68a&&_0x30f68a['getAttribute']('listIndent')>_0x21e0d2['getAttribute']('listIndent');)_0x591e68['add'](_0x30f68a),_0x30f68a=_0x30f68a['nextSibling'];}return Array['from'](_0x591e68);}(_0x8613a3));});};}_0x296461['enableCommand']('numberedList',_0xb7ae42('numberedList')),_0x296461['enableCommand']('bulletedList',_0xb7ae42('bulletedList')),_0x52606a&&_0x296461['enableCommand']('todoList',_0xb7ae42('todoList')),_0x296461['enableCommand']('indentList',_0x3e642e('indentList')),_0x296461['enableCommand']('outdentList',_0x3e642e('outdentList')),_0x52606a&&_0x296461['enableCommand']('checkTodoList',()=>{const _0x5bc3f5=_0x3082bf['commands']['get']('checkTodoList'),_0x4ecaa6=Array['from'](_0x5bc3f5['_selectedElements']);_0x4ecaa6['filter'](_0x20b3d4=>_0x20b3d4['getAttribute']('todoListChecked')!=_0x5bc3f5['value']),_0x3082bf['model']['change'](()=>{for(const _0x378e0d of _0x4ecaa6)_0x296461['markBlockFormat'](_0x378e0d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5bc3f5['value']}]});});}),_0x296461['descriptionFactory']['registerElementLabel']('listItem',_0x37b234=>o(_0x12a852,'ELEMENT_LIST_ITEM',_0x37b234)),_0x296461['descriptionFactory']['registerDescriptionCallback'](_0x14980d=>{if('formatBlock'!=_0x14980d['type']&&'formatInline'!=_0x14980d['type'])return;const {data:_0x10525f}=_0x14980d;if(_0x10525f){if('numberedList'==_0x10525f['commandName']||'bulletedList'==_0x10525f['commandName']||'todoList'==_0x10525f['commandName'])switch(_0x10525f['commandName']['replace']('List','')){case'bulleted':return _0x543766(o(_0x12a852,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x543766(o(_0x12a852,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x543766(o(_0x12a852,'ELEMENT_TODO_LIST'));}if('indentList'==_0x10525f['commandName'])return{'type':'format','content':o(_0x12a852,'*Indent:*\x20%0',o(_0x12a852,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x10525f['commandName'])return{'type':'format','content':o(_0x12a852,'*Outdent:*\x20%0',o(_0x12a852,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x10525f['commandName'])return _0x10525f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12a852,'*Check\x20item*')}:{'type':'format','content':o(_0x12a852,'*Uncheck\x20item*')};}function _0x543766(_0x20fd24){return{'type':'format','content':o(_0x12a852,'*Change\x20to:*\x20%0',_0x20fd24)};}});}}function Le(_0x247f23){const _0x218032=_0x247f23['getAttribute']('listIndent');if(0x0==_0x218032)return _0x247f23;let _0x137034=_0x247f23;for(;_0x247f23['previousSibling']&&_0x247f23['previousSibling']['is']('element','listItem');){const _0x41b609=_0x247f23['previousSibling']['getAttribute']('listIndent');if(_0x41b609==_0x218032)_0x137034=_0x247f23['previousSibling'];else{if(_0x41b609<_0x218032)break;}_0x247f23=_0x247f23['previousSibling'];}return _0x137034;}function Ee(_0x6cbb62){const _0x3d7cab=[];if(_0x6cbb62['is']('element','listItem')&&_0x6cbb62['getAttribute']('listIndent')>0x0){let _0x32a04d=_0x6cbb62['nextSibling'];for(;_0x32a04d&&'listItem'==_0x32a04d['name']&&_0x32a04d['getAttribute']('listIndent')==_0x6cbb62['getAttribute']('listIndent');)_0x3d7cab['push'](_0x32a04d),_0x32a04d=_0x32a04d['nextSibling'];}return _0x3d7cab;}class Q extends _0x107d6b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x26a961=this['editor']['config']['get']('list.properties'),_0x5d3bc0=this['editor']['plugins']['get']('TrackChangesEditing');_0x26a961['styles']&&_0x5d3bc0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x26a961['reversed']&&_0x5d3bc0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x26a961['startIndex']&&_0x5d3bc0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5d3bc0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5e9da8,_0xd6e1c={}){const _0x287588=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44870c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x287588['markMultiRangeBlockFormat'](_0x44870c,{'commandName':'listStyle','commandParams':[{'type':_0xd6e1c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x22ea91,_0x53b931={}){const _0x2fb5ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f70c2=this['_getSuggestionBlocks'](_0x1a1323=>_0x1a1323['is']('element','listItem')&&'numbered'===_0x1a1323['getAttribute']('listType'));if(_0x4f70c2['length']<0x1)return;const _0x112b30=_0x4f70c2['map'](_0x4e2b5a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e2b5a,'before'),this['editor']['model']['createPositionAt'](_0x4e2b5a,0x0)));this['editor']['model']['change'](()=>{_0x2fb5ca['markMultiRangeBlockFormat'](_0x112b30,{'commandName':'listReversed','commandParams':[{'reversed':_0x53b931['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x212de9,_0x26aa6f={}){const _0xb00f99=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54c567=this['_getSuggestionBlocks'](_0x282bfa=>_0x282bfa['is']('element','listItem')&&'numbered'===_0x282bfa['getAttribute']('listType'));if(_0x54c567['length']<0x1)return;const _0x399e80=_0x54c567['map'](_0xfe05a0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xfe05a0,'before'),this['editor']['model']['createPositionAt'](_0xfe05a0,0x0)));this['editor']['model']['change'](()=>{_0xb00f99['markMultiRangeBlockFormat'](_0x399e80,{'commandName':'listStart','commandParams':[{'startIndex':_0x26aa6f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x168375){if('formatBlock'!=_0x168375['type']&&'formatInline'!=_0x168375['type'])return;const _0x10e4b1=this['editor']['locale'],{data:_0x1a7b2c}=_0x168375;if(!_0x1a7b2c)return;let _0x4794a0,_0x28ef53;switch(_0x1a7b2c['commandName']){case'listStyle':_0x4794a0='*Change\x20to:*\x20%0',_0x28ef53={'type':'format','content':o(_0x10e4b1,_0x4794a0,o(_0x10e4b1,this['_getTranslationKeyForListStyle'](_0x1a7b2c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4794a0=_0x1a7b2c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x28ef53={'type':'format','content':o(_0x10e4b1,_0x4794a0)};break;case'listStart':_0x4794a0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x28ef53={'type':'format','content':o(_0x10e4b1,_0x4794a0,_0x1a7b2c['commandParams'][0x0]['startIndex'])};}return _0x28ef53;}['_getSuggestionBlocksForListStyle'](){const _0x56fabc=this['editor']['plugins']['get']('LegacyListUtils');let _0x241a4c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x241a4c[0x0]?.['is']('element','listItem')&&_0x241a4c['unshift'](..._0x56fabc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x241a4c[_0x241a4c['length']-0x1]?.['is']('element','listItem')&&_0x241a4c['push'](..._0x56fabc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x241a4c=[...new Set(_0x241a4c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x241a4c=_0x241a4c['filter'](_0x12d236=>_0x12d236['is']('element','listItem'))),_0x241a4c;}['_getSuggestionBlocks'](_0x4af8cd){const _0x4e87ba=this['editor']['plugins']['get']('LegacyListUtils');let _0x4f46d0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4af8cd)['map'](_0x4baaba=>{const _0x5b695b=this['editor']['model']['createPositionAt'](_0x4baaba,0x0);return[..._0x4e87ba['getSiblingNodes'](_0x5b695b,'backward'),..._0x4e87ba['getSiblingNodes'](_0x5b695b,'forward')];})['flat']();return _0x4f46d0=[...new Set(_0x4f46d0)],_0x4f46d0;}['_getTranslationKeyForListStyle'](_0xe0ae88){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xe0ae88)||'default')['toUpperCase']()+'_LIST_'+_0xe0ae88['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x107d6b{['afterInit'](){const _0x14925f=this['editor'];if(!_0x14925f['plugins']['has']('MediaEmbedEditing'))return;const _0x162291=_0x14925f['plugins']['get']('TrackChangesEditing'),_0x5b8121=_0x14925f['locale'];_0x162291['enableCommand']('mediaEmbed'),_0x162291['descriptionFactory']['registerElementLabel']('media',_0x3414b2=>o(_0x5b8121,'ELEMENT_MEDIA',_0x3414b2)),_0x14925f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1807fd,{writer:_0x51f7fc,options:_0x167a7b})=>{if(_0x167a7b['showSuggestionHighlights'])return _0x51f7fc['createEmptyElement']('div');},'converterPriority':'high'}),_0x14925f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x129de4,_0x4dc437,_0x2fb163)=>{_0x2fb163['options']['showSuggestionHighlights']&&_0x129de4['stop']();},{'priority':'high'});}}class mt extends _0x107d6b{['afterInit'](){const _0x41c26b=this['editor'];_0x41c26b['plugins']['has']('MentionEditing')&&_0x41c26b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x107d6b{['afterInit'](){const _0x4acf37=this['editor'];if(!_0x4acf37['plugins']['has']('MergeFieldsEditing'))return;_0x4acf37['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x4acf37['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x38af43=_0x4acf37['plugins']['get']('TrackChangesEditing'),_0x350b=_0x4acf37['locale'];_0x38af43['descriptionFactory']['registerElementLabel']('mergeField',_0xeafa08=>o(_0x350b,'ELEMENT_MERGE_FIELD',_0xeafa08)),_0x38af43['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x233ea6=>o(_0x350b,'ELEMENT_MERGE_FIELD',_0x233ea6)),_0x38af43['descriptionFactory']['registerDescriptionCallback'](_0x608018=>{if('insertion'!=_0x608018['type']&&'deletion'!=_0x608018['type'])return;const _0x34d2c7=_0x608018['getContainedElement']();if(null==_0x34d2c7)return;if(!_0x34d2c7['is']('element','mergeField')&&!_0x34d2c7['is']('element','mergeFieldBlock'))return;const _0x6d98d5=_0x4acf37['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x34d2c7['getAttribute']('id'));return'insertion'==_0x608018['type']?{'type':'insertion','content':o(_0x350b,'*Insert:*\x20%0','\x22'+_0x6d98d5+'\x22\x20'+o(_0x350b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x350b,'*Remove:*\x20%0','\x22'+_0x6d98d5+'\x22\x20'+o(_0x350b,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x107d6b{['afterInit'](){const _0x3f16c8=this['editor'],_0x102a66=_0x3f16c8['plugins']['get']('TrackChangesEditing');_0x3f16c8['plugins']['has']('MultiLevelList')&&(_0x102a66['enableDefaultAttributesIntegration']('multiLevelList'),_0x102a66['registerBlockAttribute']('listMarkerStyle'),_0x102a66['descriptionFactory']['registerDescriptionCallback'](_0x12b427=>this['handleDescriptions'](_0x12b427)));}['handleDescriptions'](_0x374381){const _0x245ff3=this['editor']['locale'],{data:_0x3daeb9}=_0x374381,_0x2b08e3={'type':'format','content':''};if(_0x3daeb9&&'listMarkerStyle'==_0x3daeb9['key']){if(!_0x3daeb9['oldValue'])return{'type':'format','content':o(_0x245ff3,'*Set\x20format:*\x20%0',o(_0x245ff3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3daeb9['newValue']+')'};if(!_0x3daeb9['newValue']){let _0x5a5cd0=_0x374381['head'];for(;_0x5a5cd0;){if(_0x5a5cd0['data']&&'listType'==_0x5a5cd0['data']['key']&&_0x5a5cd0['data']['newValue'])return _0x2b08e3;_0x5a5cd0=_0x5a5cd0['next'];}return{'type':'format','content':o(_0x245ff3,'*Remove\x20format:*\x20%0',o(_0x245ff3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3daeb9['oldValue']+')'};}}}}class kt extends _0x107d6b{['afterInit'](){const _0x4202e8=this['editor'];if(!_0x4202e8['plugins']['has']('PageBreakEditing'))return;_0x4202e8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4e7128=_0x4202e8['plugins']['get']('TrackChangesEditing'),_0x4ebdad=_0x4202e8['locale'];_0x4e7128['descriptionFactory']['registerElementLabel']('pageBreak',_0x30bddf=>o(_0x4ebdad,'ELEMENT_PAGE_BREAK',_0x30bddf));}}class bt extends _0x107d6b{['afterInit'](){const _0xd3768c=this['editor'];if(!_0xd3768c['plugins']['has']('Paragraph'))return;const _0x5202e1=_0xd3768c['locale'],_0x2bf300=_0xd3768c['plugins']['get']('TrackChangesEditing');_0x2bf300['descriptionFactory']['registerElementLabel']('paragraph',_0x5c9cbf=>o(_0x5202e1,'ELEMENT_PARAGRAPH',_0x5c9cbf)),_0x2bf300['enableDefaultAttributesIntegration']('paragraph'),_0x2bf300['enableCommand']('insertParagraph'),_0xd3768c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xd3768c),{'priority':'highest'}),_0xd3768c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x23c67c,_0x1e2874,_0x81525a)=>{_0x81525a['options']['showSuggestionHighlights']&&nr(_0xd3768c,{'showActiveMarker':!0x1})(_0x23c67c,_0x1e2874,_0x81525a);},{'priority':'highest'});const _0x3279b7=_0x2bf300['descriptionFactory'];_0x3279b7['registerDescriptionCallback'](_0x883133=>{if('insertion'!==_0x883133['type'])return;const {start:_0x26233d,end:_0x1d7302}=_0x883133['getFirstRange']();if(!_0x26233d['isTouching'](_0x1d7302)||!_0x26233d['nodeAfter'])return;const _0x1cbd0d=_0xd3768c['model']['schema'],_0xe9c66e=_0x26233d['nodeAfter'];return _0x1cbd0d['isBlock'](_0xe9c66e)&&!_0x1cbd0d['isLimit'](_0xe9c66e)&&_0x1cbd0d['checkChild'](_0xe9c66e,'$text')?{'type':'insertion','content':o(_0x5202e1,'*Insert:*\x20%0',_0x3279b7['getItemLabel'](_0xe9c66e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf0a3ec=this['editor'],_0x20a7bf=_0xf0a3ec['locale'];_0xf0a3ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a19f3=>{if('formatBlock'!=_0x2a19f3['type'])return;const {data:_0x2d7948}=_0x2a19f3;return _0x2d7948&&'paragraph'==_0x2d7948['commandName']?{'type':'format','content':o(_0x20a7bf,'*Change\x20to:*\x20%0',o(_0x20a7bf,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1afbcf,{showActiveMarker:_0x389aa6=!0x0}={}){return(_0x2be1e3,_0x4e3395,_0x268bb9)=>{const _0x363677=_0x1afbcf['plugins']['get']('TrackChangesEditing'),_0x405233=_0x4e3395['markerRange']['start'],_0x2c775e=_0x4e3395['markerRange']['end'],_0x5e83e7=_0x1afbcf['model']['schema'];if(!_0x405233['isTouching'](_0x2c775e)||!_0x405233['nodeAfter'])return;const _0x3e1248=_0x405233['nodeAfter'];if(_0x5e83e7['isBlock'](_0x3e1248)&&!_0x5e83e7['isLimit'](_0x3e1248)&&_0x5e83e7['checkChild'](_0x3e1248,'$text')){if(!_0x268bb9['consumable']['consume'](_0x4e3395['markerRange'],_0x2be1e3['name']))return;const {authorId:_0x2b5723}=_0x363677['_splitMarkerName'](_0x4e3395['markerName']),_0x2393d7=_0x268bb9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2b5723}),_0x596c3b=_0x268bb9['mapper']['toViewPosition'](_0x2c775e);_0x389aa6&&_0x363677['activeMarkers']['includes'](_0x4e3395['markerName'])&&_0x268bb9['writer']['addClass']('ck-suggestion-marker--active',_0x2393d7),_0x268bb9['writer']['insert'](_0x596c3b,_0x2393d7),_0x268bb9['mapper']['bindElementToMarker'](_0x2393d7,_0x4e3395['markerName']);}};}class yt extends _0x107d6b{['afterInit'](){const _0xc4fd70=this['editor'];if(!_0xc4fd70['plugins']['has']('RemoveFormatEditing'))return;_0xc4fd70['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c9fca=this['editor'];_0x3c9fca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x877ccc=>{if('formatBlock'!=_0x877ccc['type']&&'formatInline'!=_0x877ccc['type'])return;const {data:_0xf6a5cb}=_0x877ccc;return _0xf6a5cb&&'removeFormat'==_0xf6a5cb['commandName']?{'type':'format','content':o(_0x3c9fca['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x107d6b{['afterInit'](){const _0xecbed9=this['editor'];if(!_0xecbed9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1d3fcb=_0xecbed9['plugins']['get']('TrackChangesEditing');_0x1d3fcb['enableCommand']('goToPreviousRestrictedEditingException'),_0x1d3fcb['enableCommand']('goToNextRestrictedEditingException');const _0x15bc91=_0xecbed9['plugins']['get']('RestrictedEditingModeEditing');_0x15bc91['enableCommand']('trackChanges'),_0x15bc91['enableCommand']('acceptSuggestion'),_0x15bc91['enableCommand']('discardSuggestion'),_0x15bc91['enableCommand']('acceptAllSuggestions'),_0x15bc91['enableCommand']('discardAllSuggestions'),_0x15bc91['enableCommand']('acceptSelectedSuggestions'),_0x15bc91['enableCommand']('discardSelectedSuggestions');}}class St extends _0x107d6b{static get['requires'](){return[_0x3e9e90];}['init'](){const _0x55b9eb=this['editor'],_0x45fb6f=_0x55b9eb['plugins']['get']('TrackChangesEditing');_0x45fb6f['enableCommand']('shiftEnter'),_0x55b9eb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x55b9eb),{'priority':'high'}),_0x55b9eb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x55b9eb),{'priority':'high'}),_0x55b9eb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x70d1b2,_0xee893e,_0x2c5b7a)=>{_0x2c5b7a['options']['showSuggestionHighlights']&&ke(_0x55b9eb,{'showActiveMarker':!0x1})(_0x70d1b2,_0xee893e,_0x2c5b7a);}),_0x45fb6f['descriptionFactory']['registerElementLabel']('softBreak',_0x2beeb3=>o(_0x55b9eb['locale'],'ELEMENT_LINE_BREAK',_0x2beeb3));}}function ke(_0x3421df,{showActiveMarker:_0x4d3cd0=!0x0}={}){return(_0x55ae92,_0x958c63,_0x4822e7)=>{const _0x502fab=_0x3421df['plugins']['get']('TrackChangesEditing');if(!_0x4822e7['consumable']['test'](_0x958c63['markerRange'],_0x55ae92['name']))return;const _0xfef129=_0x3421df['model'];for(const _0x2acf27 of _0x958c63['markerRange']['getItems']()){if(!_0x2acf27['is']('element','softBreak'))continue;const _0x36cf05='deletion'==_0x958c63['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0xfd2ff8}=_0x502fab['_splitMarkerName'](_0x958c63['markerName']),_0x2ee81f=_0x4822e7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x36cf05,'data-author-id':_0xfd2ff8}),_0x5b9d10=_0x4822e7['mapper']['toViewPosition'](_0xfef129['createPositionBefore'](_0x2acf27));_0x4d3cd0&&_0x502fab['activeMarkers']['includes'](_0x958c63['markerName'])&&_0x4822e7['writer']['addClass']('ck-suggestion-marker--active',_0x2ee81f),_0x4822e7['writer']['insert'](_0x5b9d10,_0x2ee81f),_0x4822e7['mapper']['bindElementToMarker'](_0x2ee81f,_0x958c63['markerName']);}};}class At extends _0x107d6b{['afterInit'](){const _0x2fbf4b=this['editor'],_0x4b5c50=_0x2fbf4b['model'],_0x18591b=_0x2fbf4b['locale'];if(!_0x2fbf4b['plugins']['has']('StandardEditingModeEditing'))return;const _0x19546a=_0x2fbf4b['plugins']['get']('TrackChangesEditing'),_0x536416='restrictedEditingException',_0x3f63af=_0x2fbf4b['commands']['get'](_0x536416);_0x19546a['enableCommand'](_0x536416,(_0x29e757,_0xaf53d7={})=>{const _0x2897cc=_0x4b5c50['document']['selection'];if(_0x2897cc['isCollapsed'])return void _0x29e757(_0xaf53d7);const _0x27915d=void 0x0!==_0xaf53d7['forceValue']?_0xaf53d7['forceValue']:!_0x3f63af['value'];_0x4b5c50['change'](()=>{const _0x578196=Array['from'](_0x2897cc['getRanges']());for(const _0x393e0e of _0x578196){const _0x2aee8c=_0x27915d?[_0x393e0e]:io(_0x536416,_0x393e0e,_0x4b5c50);for(const _0x5a2ebe of _0x2aee8c)_0x19546a['markInlineFormat'](_0x5a2ebe,{'commandName':_0x536416,'commandParams':[{'forceValue':_0x27915d}]});}});}),_0x19546a['descriptionFactory']['registerDescriptionCallback'](_0x42f127=>{if('formatBlock'!=_0x42f127['type']&&'formatInline'!=_0x42f127['type'])return;const {data:_0x22390c}=_0x42f127;return _0x22390c&&_0x22390c['commandName']==_0x536416?_0x22390c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18591b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x18591b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x107d6b{['afterInit'](){const _0x4897eb=this['editor'];if(!_0x4897eb['plugins']['has']('Style')||!_0x4897eb['plugins']['has']('DataSchema'))return;const _0x248117=_0x4897eb['plugins']['get']('TrackChangesEditing'),_0x3d7cc6=_0x4897eb['locale'],_0x411f42=_0x4897eb['config']['get']('style')||{},_0x3809fb=_0x4897eb['plugins']['get']('GeneralHtmlSupport'),_0x4bfc76=_0x4897eb['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4897eb['plugins']['get']('DataSchema'),_0x411f42['definitions']);_0x248117['enableDefaultAttributesIntegration']('style');const _0x48cb6a=new Set();for(const _0x554cb7 of _0x4bfc76['block']){const _0xf8675c=_0x3809fb['getGhsAttributeNameForElement'](_0x554cb7['element']);_0x48cb6a['add'](_0xf8675c);}const _0x5b5e17=new Set();for(const _0x240ee9 of _0x4bfc76['inline']){const _0x194436=_0x3809fb['getGhsAttributeNameForElement'](_0x240ee9['element']);_0x5b5e17['add'](_0x194436);for(const _0x24ab94 of _0x240ee9['ghsAttributes'])_0x5b5e17['add'](_0x24ab94);}for(const _0x553d93 of _0x48cb6a)_0x248117['registerBlockAttribute'](_0x553d93),_0x248117['descriptionFactory']['registerAttributeLabel'](_0x553d93,o(_0x3d7cc6,'FORMAT_STYLE'));for(const _0x32fc07 of _0x5b5e17)_0x248117['registerInlineAttribute'](_0x32fc07),_0x248117['descriptionFactory']['registerAttributeLabel'](_0x32fc07,o(_0x3d7cc6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32d30d=this['editor'],_0x28145e=_0x32d30d['locale'];_0x32d30d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fb0b0=>{if('formatBlock'!=_0x1fb0b0['type']&&'formatInline'!=_0x1fb0b0['type'])return;const {data:_0x545749}=_0x1fb0b0;return _0x545749&&'style'===_0x545749['commandName']?_0x545749['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28145e,'*Set\x20format:*\x20%0',_0x545749['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x28145e,'*Remove\x20format:*\x20%0',_0x545749['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x107d6b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2e853a){super(_0x2e853a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x33b3c6=this['editor'],_0x30b98a=_0x33b3c6['model']['document']['selection'];if(!_0x33b3c6['plugins']['has']('TableEditing'))return;const _0x187e7f=_0x33b3c6['locale'],_0x2f753c=_0x33b3c6['plugins']['get']('TrackChangesEditing'),_0x471561=_0x33b3c6['plugins']['get']('TableUtils');_0x2f753c['descriptionFactory']['registerElementLabel']('table',_0x3f34c4=>o(_0x187e7f,'ELEMENT_TABLE',_0x3f34c4)),this['_setupColumnsRowsFixing'](),_0x2f753c['enableCommand']('insertTable'),_0x2f753c['enableCommand']('selectTableRow'),_0x2f753c['enableCommand']('selectTableColumn');for(const _0x1fc6a3 of['insertTableRowAbove','insertTableRowBelow']){const _0x436755=_0x33b3c6['commands']['get'](_0x1fc6a3);_0x2f753c['enableCommand'](_0x1fc6a3,_0x13fcdd=>{_0x33b3c6['model']['change'](_0x2ad460=>{_0x13fcdd();const _0x12359f='above'===_0x436755['order'],_0x2096cf=_0x471561['getSelectionAffectedTableCells'](_0x30b98a),_0x4e28ce=_0x471561['getRowIndexes'](_0x2096cf),_0x141625=_0x12359f?_0x4e28ce['first']-0x1:_0x4e28ce['last']+0x1,_0x35ee03=_0x2096cf[0x0]['findAncestor']('table'),_0x4f534f=_0x471561['createTableWalker'](_0x35ee03,{'startRow':_0x141625,'endRow':_0x141625}),_0x14074a=Array['from'](_0x4f534f)['map'](_0x502b2a=>_0x2ad460['createRangeOn'](_0x502b2a['cell']));_0x2f753c['markMultiRangeInsertion'](_0x14074a,'tableRow');});});}for(const _0x24c356 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5bacfd=_0x33b3c6['commands']['get'](_0x24c356);_0x2f753c['enableCommand'](_0x24c356,_0x323ab3=>{_0x33b3c6['model']['change'](_0x5b1ac7=>{_0x323ab3();const _0x573714='left'===_0x5bacfd['order'],_0x5cbb68=_0x471561['getSelectionAffectedTableCells'](_0x30b98a),_0x594b7d=_0x471561['getColumnIndexes'](_0x5cbb68),_0x2cfa80=_0x573714?_0x594b7d['first']-0x1:_0x594b7d['last']+0x1,_0x12e6b8=_0x5cbb68[0x0]['findAncestor']('table'),_0x40dfdb=_0x471561['createTableWalker'](_0x12e6b8,{'startRow':0x0,'column':_0x2cfa80,'includeAllSlots':!0x1}),_0x2b2632=Array['from'](_0x40dfdb)['map'](_0x4cae16=>_0x5b1ac7['createRangeOn'](_0x4cae16['cell']));_0x2f753c['markMultiRangeInsertion'](_0x2b2632,'tableColumn');});});}for(const _0xd7acdb of['removeTableRow','removeTableColumn']){const _0x1ccabf=_0xd7acdb['substr'](0xb),_0x686b53=_0x1ccabf['toLowerCase'](),_0x2197b3=_0x686b53['substr'](0x0,0x3)+'span',_0x22647f='table'+_0x1ccabf,_0x3eccaf='min'+_0x1ccabf,_0x1593dc='max'+_0x1ccabf;_0x2f753c['enableCommand'](_0xd7acdb,()=>{_0x33b3c6['model']['change'](_0x4b5d3e=>{const _0x4609fa=_0x471561['getSelectionAffectedTableCells'](_0x30b98a),_0x304543=_0x4609fa[0x0]['findAncestor']('table');let _0x3860a6;if('removeTableRow'==_0xd7acdb){const _0x3fb230=_0x471561['getRowIndexes'](_0x4609fa);_0x3860a6={'startRow':_0x3fb230['first'],'endRow':_0x3fb230['last'],'includeAllSlots':!0x0};}else{const _0x3a91df=_0x471561['getColumnIndexes'](_0x4609fa);_0x3860a6={'startColumn':_0x3a91df['first'],'endColumn':_0x3a91df['last'],'includeAllSlots':!0x0};}const _0x21ea2e=_0x471561['createTableWalker'](_0x304543,_0x3860a6),_0x2bace9=Array['from'](_0x21ea2e)['map'](({cell:_0x43b397})=>_0x43b397),_0x163e97=Re(_0x2bace9['filter'](_0xc75900=>_0xc75900['hasAttribute'](_0x2197b3))),_0x19de17=Re(_0x2bace9['filter'](_0x3416f0=>!_0x3416f0['hasAttribute'](_0x2197b3)))['map'](_0x1f2849=>_0x4b5d3e['createRangeOn'](_0x1f2849)),_0x24440f=_0x2f753c['markMultiRangeDeletion'](_0x19de17,_0x22647f);if(_0x24440f&&('tableRow'==_0x24440f['subType']||'tableColumn'==_0x24440f['subType'])){const _0x13596a=this['_getSuggestionCoords'](_0x24440f);for(const _0x118acd of _0x163e97){const _0x4ee98a=_0x4b5d3e['createRangeOn'](_0x118acd),_0x1be630=_0x471561['getCellLocation'](_0x118acd),_0x25a000=_0x118acd['getAttribute'](_0x2197b3)-0x1,_0x3f2b69=_0x13596a[_0x3eccaf],_0xcee04c=_0x13596a[_0x1593dc];_0x3f2b69<=_0x1be630[_0x686b53]&&_0x1be630[_0x686b53]+_0x25a000<=_0xcee04c&&_0x24440f['addRange'](_0x4ee98a);}}});});}function _0x141fbd(_0x3744ef){const _0xf73387=Array['from'](_0x30b98a['getRanges']())['map'](_0x123736=>_0x22f529['fromRange'](_0x123736));_0x33b3c6['model']['change'](_0xc579a5=>{const _0x4d03d6=_0xc579a5['batch'];_0x3744ef=_0x3744ef['filter'](_0x4667ba=>'$graveyard'!=_0x4667ba['root']['rootName']),_0xc579a5['setSelection'](_0x3744ef),_0x33b3c6['commands']['get']('removeTableRow')['refresh'](),_0x33b3c6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x33b3c6['model']['enqueueChange'](()=>{_0x33b3c6['model']['enqueueChange'](_0x4d03d6,_0x106452=>{const _0x52b69e=_0xf73387['filter'](_0x25347c=>'$graveyard'!=_0x25347c['root']['rootName']);_0x52b69e['length']>0x0&&_0x106452['setSelection'](_0x52b69e);for(const _0x560fb9 of _0xf73387)_0x560fb9['detach']();});});});}function _0x2b127f(_0x254e73){_0x33b3c6['model']['change'](_0xb56e8=>{const _0x4e3ea0=Array['from'](_0x30b98a['getRanges']())['map'](_0x90106d=>_0x22f529['fromRange'](_0x90106d)),_0x4c71b5=[];for(const _0x37242e of _0x254e73)for(const _0x198833 of _0x37242e['getItems']({'shallow':!0x0}))_0x4c71b5['push'](_0x198833);for(const _0x2f4c95 of _0x4c71b5)'$graveyard'!=_0x2f4c95['root']['rootName']&&(_0xb56e8['setSelection'](_0xb56e8['createPositionAt'](_0x2f4c95,0x0)),_0x33b3c6['commands']['get']('removeTableColumn')['refresh'](),_0x33b3c6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x260f37=_0x4e3ea0['filter'](_0x1e68a5=>'$graveyard'!=_0x1e68a5['root']['rootName']);_0x260f37['length']>0x0&&_0xb56e8['setSelection'](_0x260f37);for(const _0x2316c1 of _0x4e3ea0)_0x2316c1['detach']();});}function _0x1060b5(_0x41413e,_0x45a75c){return _0x45a75c['every'](_0x17a11d=>_0x41413e['some'](_0x5d8505=>_0x5d8505['end']['isEqual'](_0x17a11d['start'])||_0x17a11d['end']['isEqual'](_0x5d8505['start'])));}function _0x1a4e16(_0xde2e10,_0x5c9d10){return!_0xde2e10['some'](_0xb78e3c=>_0x5c9d10['some'](_0x167edc=>_0xb78e3c['isIntersecting'](_0x167edc)))&&_0xde2e10['some'](_0x386220=>_0x5c9d10['some'](_0x250a10=>_0x386220['end']['isTouching'](_0x250a10['start'])));}_0x33b3c6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2048b6,_0x35fb07,_0x796822)=>{if(!_0x796822['options']['showSuggestionHighlights'])return;const _0x2b2c46=_0x35fb07['item'];if(!_0x2b2c46)return;const _0xdb32e9=_0x796822['mapper']['toViewElement'](_0x2b2c46);function _0x293d03(_0x1b7d46){return Array['isArray'](_0x1b7d46)?_0x1b7d46:[_0x1b7d46];}_0xdb32e9&&'tableCell'===_0x2b2c46['name']&&_0x278281(_0xdb32e9,_0x796822['writer'],(_0x152592,_0xa461ce,_0x1cefd4)=>_0x1cefd4['addClass'](_0x293d03(_0xa461ce['classes']),_0x152592),(_0x59b712,_0x4226f0,_0x5c249a)=>_0x5c249a['removeClass'](_0x293d03(_0x4226f0['classes']),_0x59b712));},{'priority':'highest'}),_0x2f753c['descriptionFactory']['registerDescriptionCallback'](_0x2f9a6e=>{if('insertion'!=_0x2f9a6e['type']&&'deletion'!=_0x2f9a6e['type'])return;const _0x2bc10a=_0x2f9a6e['getContainedElement']();if(null!=_0x2bc10a&&_0x2bc10a['is']('element','table')){if('insertion'==_0x2f9a6e['type']){const _0x5a9da5=_0x2f9a6e['getItems']()['filter'](_0x3916cd=>_0x3916cd['is']('$textProxy'))['map'](_0x2d76ed=>_0x2d76ed['data']);if(_0x5a9da5['length'])return{'type':'insertion','content':o(_0x187e7f,'*Insert:*\x20%0',o(_0x187e7f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a9da5['join']('\x20')+'\x22'))};}if('deletion'==_0x2f9a6e['type']){const _0x4ff5fb=_0x2f9a6e['getItems']()['filter'](_0x30c4ec=>_0x30c4ec['is']('$textProxy'))['map'](_0x45d5b3=>_0x45d5b3['data']);if(_0x4ff5fb['length'])return{'type':'deletion','content':o(_0x187e7f,'*Remove:*\x20%0',o(_0x187e7f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ff5fb['join']('\x20')+'\x22'))};}}}),_0x2f753c['descriptionFactory']['registerDescriptionCallback'](_0xe5a1a0=>{if('tableRow'==_0xe5a1a0['subType']){const _0x3a9981=_0xe5a1a0['getItems']()['filter'](_0x159dd8=>_0x159dd8['is']('$textProxy'))['map'](_0x145081=>_0x145081['data']),_0x598690=this['_getSuggestionCoords'](_0xe5a1a0),_0x219c14=_0x598690['maxRow']-_0x598690['minRow']+0x1;if('insertion'==_0xe5a1a0['type'])return _0x3a9981['length']?{'type':'insertion','content':o(_0x187e7f,'*Insert:*\x20%0',o(_0x187e7f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x219c14,'\x22'+_0x3a9981['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x187e7f,'*Insert:*\x20%0',o(_0x187e7f,'ELEMENT_TABLE_ROW',_0x219c14))};if('deletion'==_0xe5a1a0['type'])return _0x3a9981['length']?{'type':'deletion','content':o(_0x187e7f,'*Remove:*\x20%0',o(_0x187e7f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x219c14,'\x22'+_0x3a9981['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x187e7f,'*Remove:*\x20%0',o(_0x187e7f,'ELEMENT_TABLE_ROW',_0x219c14))};}if('tableColumn'==_0xe5a1a0['subType']){const _0x5898e2=_0xe5a1a0['getItems']()['filter'](_0x2f9999=>_0x2f9999['is']('$textProxy'))['map'](_0x4253ba=>_0x4253ba['data']),_0xca85b3=this['_getSuggestionCoords'](_0xe5a1a0),_0x294b58=_0xca85b3['maxColumn']-_0xca85b3['minColumn']+0x1;if('insertion'==_0xe5a1a0['type'])return _0x5898e2['length']?{'type':'insertion','content':o(_0x187e7f,'*Insert:*\x20%0',o(_0x187e7f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x294b58,'\x22'+_0x5898e2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x187e7f,'*Insert:*\x20%0',o(_0x187e7f,'ELEMENT_TABLE_COLUMN',_0x294b58))};if('deletion'==_0xe5a1a0['type'])return _0x5898e2['length']?{'type':'deletion','content':o(_0x187e7f,'*Remove:*\x20%0',o(_0x187e7f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x294b58,'\x22'+_0x5898e2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x187e7f,'*Remove:*\x20%0',o(_0x187e7f,'ELEMENT_TABLE_COLUMN',_0x294b58))};}}),_0x2f753c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x141fbd),_0x2f753c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x141fbd),_0x2f753c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2b127f),_0x2f753c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2b127f),_0x2f753c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1060b5),_0x2f753c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1060b5),_0x2f753c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1a4e16),_0x2f753c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1a4e16);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3bea8e=this['editor'],_0x4d3cd9=_0x3bea8e['model']['document']['selection'];return(_0x369432,_0x3daedb)=>{_0x3bea8e['model']['change'](_0x384fc3=>{const {commandName:_0x49c48b,commandParams:_0x23d50d}=_0x3daedb;let _0x4cc112=_0x369432[0x0]['end']['nodeBefore'];_0x23d50d&&_0x23d50d[0x0]&&!0x1===_0x23d50d[0x0]['forceValue']&&(_0x4cc112=_0x369432[0x0]['start']['nodeAfter']);const _0x1c671c=_0x384fc3['createRangeIn'](_0x4cc112);if('$graveyard'==_0x1c671c['root']['rootName'])return;const _0x3f3f77=Array['from'](_0x4d3cd9['getRanges']())['map'](_0x323d04=>_0x22f529['fromRange'](_0x323d04));_0x384fc3['setSelection'](_0x1c671c),_0x3bea8e['commands']['get'](_0x49c48b)['refresh'](),_0x23d50d['push']({'forceDefaultExecution':!0x0}),_0x3bea8e['execute'](_0x49c48b,..._0x23d50d);const _0x6b9a99=_0x3f3f77['filter'](_0x8b40ff=>'$graveyard'!=_0x8b40ff['root']['rootName']);_0x6b9a99['length']>0x0&&_0x384fc3['setSelection'](_0x6b9a99);for(const _0x4fb4ad of _0x3f3f77)_0x4fb4ad['detach']();});};}['_getCoordsForCells'](_0xffc34f){const _0x4232f2=this['editor']['plugins']['get']('TableUtils');let _0x1d6578=Number['MAX_SAFE_INTEGER'],_0x4384e6=Number['MIN_SAFE_INTEGER'],_0x2407c3=Number['MAX_SAFE_INTEGER'],_0x49d268=Number['MIN_SAFE_INTEGER'];for(const _0x42609c of _0xffc34f){if('$graveyard'==_0x42609c['root']['rootName'])continue;const {row:_0x1fc58e,column:_0xad8382}=_0x4232f2['getCellLocation'](_0x42609c),_0x561b81=_0x42609c['hasAttribute']('rowspan')?_0x42609c['getAttribute']('rowspan')-0x1:0x0,_0x3054ce=_0x42609c['hasAttribute']('colspan')?_0x42609c['getAttribute']('colspan')-0x1:0x0;_0x1d6578=_0x1fc58e<_0x1d6578?_0x1fc58e:_0x1d6578,_0x4384e6=_0x1fc58e+_0x561b81>_0x4384e6?_0x1fc58e+_0x561b81:_0x4384e6,_0x2407c3=_0xad8382<_0x2407c3?_0xad8382:_0x2407c3,_0x49d268=_0xad8382+_0x3054ce>_0x49d268?_0xad8382+_0x3054ce:_0x49d268;}return{'minRow':_0x1d6578,'maxRow':_0x4384e6,'minColumn':_0x2407c3,'maxColumn':_0x49d268};}['_setupColumnsRowsFixing'](){const _0x44f77d=this['editor'],_0x337ca7=_0x44f77d['plugins']['get']('TrackChangesEditing'),_0x5e3931=_0x44f77d['plugins']['get']('TableUtils');_0x44f77d['model']['document']['on']('change:data',()=>{const _0x3ecd1d=Array['from'](_0x44f77d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2575ae,data:_0x4bf5ae}of _0x3ecd1d){const {group:_0x2166f8,id:_0x5c17be,subType:_0xeeba0c}=_0x337ca7['_splitMarkerName'](_0x2575ae);if('suggestion'!=_0x2166f8)continue;if(null!=_0x4bf5ae['oldRange'])continue;const _0x293775=_0x337ca7['getSuggestion'](_0x5c17be);this['_tablePostFixingSubtypes']['includes'](_0xeeba0c)&&this['_tableSuggestions']['add'](_0x293775);}},{'priority':'low'});const _0x3d8e2b=(_0x27e125,_0x37aa11)=>{let _0x3f9784=!0x1;const _0x5c8968=_0x37aa11['createRangeOn'](_0x27e125),_0x1c7655=_0x27e125['findAncestor']('table'),_0x4f5654=_0x5e3931['getCellLocation'](_0x27e125);for(const _0x2003c0 of this['_tableSuggestions']){const _0x135fa8=_0x2003c0['subType'],_0x285358=_0x135fa8['startsWith']('tablePaste'),_0x463550=_0x135fa8['substr'](_0x285358?0xa:0x5),_0x3575fe=_0x463550['toLowerCase'](),_0x270f6d=_0x3575fe['substr'](0x0,0x3)+'span',_0xceece9='min'+_0x463550,_0x46c641='max'+_0x463550;if(!_0x2003c0['isInContent'])continue;if(_0x1c7655!=_0x2003c0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2003c0['isIntersectingWithRange'](_0x5c8968))continue;const _0xddd9cd=_0x27e125['hasAttribute'](_0x270f6d)?_0x27e125['getAttribute'](_0x270f6d)-0x1:0x0,_0x530447=this['_getSuggestionCoords'](_0x2003c0),_0x5ce5aa=_0x530447[_0xceece9],_0x3b13d3=_0x530447[_0x46c641];_0x5ce5aa<=_0x4f5654[_0x3575fe]&&_0x4f5654[_0x3575fe]+_0xddd9cd<=_0x3b13d3&&(_0x2003c0['addRange'](_0x5c8968),_0x3f9784=!0x0);}return _0x3f9784;};_0x44f77d['model']['document']['registerPostFixer'](_0x421794=>{let _0x4dec52=!0x1;for(const _0x189e2f of _0x44f77d['model']['document']['differ']['getChanges']())if('insert'==_0x189e2f['type']){if('tableRow'==_0x189e2f['name']){for(const _0x19fcca of _0x189e2f['position']['nodeAfter']['getChildren']())_0x4dec52=_0x4dec52||_0x3d8e2b(_0x19fcca,_0x421794);}else'tableCell'==_0x189e2f['name']&&(_0x4dec52=_0x4dec52||_0x3d8e2b(_0x189e2f['position']['nodeAfter'],_0x421794));}return _0x4dec52;});}['_getSuggestionCoords'](_0x48a408){return this['_getCoordsForCells'](_0x48a408['getRanges']()['map'](_0x148a0b=>_0x148a0b['start']['nodeAfter']));}}function Re(_0x2566b5){return Array['from'](new Set(_0x2566b5)['values']());}class _t extends _0x107d6b{static get['requires'](){return[vt];}['afterInit'](){const _0x59eef6=this['editor'],_0x503e1d=_0x59eef6['model']['document']['selection'],_0x3527ed=_0x59eef6['locale'];if(!_0x59eef6['plugins']['has']('TableEditing'))return;const _0x3a622a=_0x59eef6['plugins']['get']('TrackChangesEditing'),_0x56ba1d=_0x59eef6['plugins']['get']('TableUtils'),_0x2479af=_0x59eef6['plugins']['get'](vt);_0x2479af['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3a622a['enableCommand']('mergeTableCells',()=>{const _0x278a0e=_0x56ba1d['getSelectionAffectedTableCells'](_0x59eef6['model']['document']['selection']);_0x59eef6['model']['change'](()=>{_0x3a622a['markMultiRangeBlockFormat'](_0x278a0e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x59eef6['commands']['get']('mergeTableCells')['on']('execute',(_0x4b0b1b,_0x1e3cf2)=>{_0x59eef6['commands']['get']('trackChanges')['value']&&(_0x1e3cf2['length']>0x0&&_0x1e3cf2[_0x1e3cf2['length']-0x1]&&_0x1e3cf2[_0x1e3cf2['length']-0x1]['forceDefaultExecution']||_0x3a622a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4b0b1b['stop']());},{'priority':'highest'});for(const _0x23b9bd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x57f59c=_0x59eef6['commands']['get'](_0x23b9bd);_0x3a622a['enableCommand'](_0x23b9bd,()=>{const _0x35effc=_0x59eef6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x372c63=>_0x372c63['is']('element','tableCell')),_0x2ea03b=_0x57f59c['value'];_0x59eef6['model']['change'](()=>{_0x3a622a['markMultiRangeBlockFormat']([_0x35effc,_0x2ea03b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x59e6c8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x18377f=_0x59eef6['commands']['get'](_0x59e6c8);_0x3a622a['enableCommand'](_0x59e6c8,()=>{const _0x293232=_0x56ba1d['getSelectionAffectedTableCells'](_0x59eef6['model']['document']['selection'])[0x0],_0xb97206=_0x293232['findAncestor']('table'),{column:_0x466c30,row:_0x5e25eb}=_0x56ba1d['getCellLocation'](_0x293232);let _0x20e6a1=[];if('horizontally'==_0x18377f['direction']){const _0x28bd97=_0x56ba1d['createTableWalker'](_0xb97206,{'startRow':_0x5e25eb,'endRow':_0x5e25eb,'includeAllSlots':!0x0});_0x20e6a1=Array['from'](_0x28bd97)['map'](_0x1814d4=>_0x1814d4['cell']);}else{const _0x2abef9=_0x56ba1d['createTableWalker'](_0xb97206,{'column':_0x466c30,'includeAllSlots':!0x0});_0x20e6a1=Array['from'](_0x2abef9)['map'](_0x39b0d6=>_0x39b0d6['cell']);}_0x59eef6['model']['change'](_0x1c271c=>{_0x3a622a['markBlockFormat'](_0x1c271c['createRangeOn'](_0x293232),{'commandName':_0x59e6c8,'commandParams':[]},_0x20e6a1,_0x59e6c8);});});}_0x3a622a['descriptionFactory']['registerDescriptionCallback'](_0x26e4f3=>{if('formatBlock'!=_0x26e4f3['type']&&'formatInline'!=_0x26e4f3['type'])return;const {data:_0x4c67cf}=_0x26e4f3;return _0x4c67cf&&'mergeTableCells'==_0x4c67cf['commandName']?{'type':'format','content':o(_0x3527ed,'*Merge\x20cells*')}:void 0x0;}),_0x3a622a['descriptionFactory']['registerDescriptionCallback'](_0x2fa744=>{if('formatBlock'!=_0x2fa744['type']&&'formatInline'!=_0x2fa744['type'])return;const {data:_0x587899}=_0x2fa744;return _0x587899?'splitTableCellVertically'==_0x587899['commandName']?{'type':'format','content':o(_0x3527ed,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x587899['commandName']?{'type':'format','content':o(_0x3527ed,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x527849=_0x2479af['_acceptFormatSuggestionCallbackFactory']();for(const _0x49f996 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3a622a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x49f996,'accept',_0x527849);for(const _0x5a74a1 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3a622a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a74a1,'accept',_0x527849);_0x3a622a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5d6b1f=>{_0x59eef6['model']['change'](_0x297ce4=>{const _0x2da541=Array['from'](_0x503e1d['getRanges']())['map'](_0x20f711=>_0x22f529['fromRange'](_0x20f711));_0x297ce4['setSelection'](_0x5d6b1f),_0x59eef6['commands']['get']('mergeTableCells')['refresh'](),_0x59eef6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x228772=_0x2da541['filter'](_0x472b99=>'$graveyard'!=_0x472b99['root']['rootName']);_0x228772['length']>0x0&&_0x297ce4['setSelection'](_0x228772);for(const _0x4a4216 of _0x2da541)_0x4a4216['detach']();});});for(const _0xf7b5ab of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x35b6f5=_0x59eef6['commands']['get'](_0xf7b5ab);_0x35b6f5['on']('set:isEnabled',(_0x54d54e,_0x27d386,_0x2b186c)=>{if(_0x2b186c){const _0x5e1b02=_0x59eef6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f1f35=>_0x1f1f35['is']('element','tableCell'));this['_areMergableCells'](_0x35b6f5['value'],_0x5e1b02)||(_0x54d54e['return']=!0x1,_0x54d54e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x31fad3=this['editor']['commands']['get']('mergeTableCells'),_0x2d97fb=this['editor']['plugins']['get']('TableUtils');if(!_0x31fad3['isEnabled'])return!0x1;const _0x593430=_0x2d97fb['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x47aa39 of _0x593430)for(const _0x65549a of _0x593430)if(_0x47aa39!=_0x65549a&&!this['_areMergableCells'](_0x47aa39,_0x65549a))return!0x1;return!0x0;}['_areMergableCells'](_0x53d4c1,_0x17ad19){const _0x283d75=this['editor']['plugins']['get']('TrackChangesEditing'),_0x441b27=this['editor']['model']['createRangeOn'](_0x53d4c1),_0x2ad799=this['editor']['model']['createRangeOn'](_0x17ad19),_0x1fb060=new Set(),_0x21e9f9=new Set();for(const _0x11ca37 of _0x283d75['getSuggestions']())if(('insertion'==_0x11ca37['type']||'deletion'==_0x11ca37['type']||'mergeTableCells'==_0x11ca37['subType'])&&_0x11ca37['isInContent']){for(const _0x4894df of _0x11ca37['getRanges']())_0x4894df['containsRange'](_0x441b27,!0x0)&&_0x1fb060['add'](_0x11ca37['type']+':'+_0x11ca37['author']['id']),_0x4894df['containsRange'](_0x2ad799,!0x0)&&_0x21e9f9['add'](_0x11ca37['type']+':'+_0x11ca37['author']['id']);}if(_0x1fb060['size']!=_0x21e9f9['size'])return!0x1;for(const _0x4eee24 of _0x1fb060)if(!_0x21e9f9['has'](_0x4eee24))return!0x1;return!0x0;}}class Ct extends _0x107d6b{static get['requires'](){return[vt];}['afterInit'](){const _0x241980=this['editor'];if(!_0x241980['plugins']['has']('TableEditing'))return;const _0x2bc64c=_0x241980['locale'],_0x631b4f=_0x241980['plugins']['get']('TrackChangesEditing');_0x631b4f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x631b4f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x631b4f['registerBlockAttribute']('headingRows'),_0x631b4f['registerBlockAttribute']('headingColumns'),_0x631b4f['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2bc64c,'FORMAT_HEADER_ROW')),_0x631b4f['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2bc64c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5fefc2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42e8d2=this['editor']['plugins']['get']('TableUtils'),_0x42c468=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x28842f({showActiveMarker:_0x17cc87=!0x0,setDataAttribute:_0xc31038=!0x0}={}){return(_0x4f8ae6,_0x45dc66,_0x41a72d)=>{const {type:_0x4f509f,id:_0x571438}=_0x5fefc2['_splitMarkerName'](_0x45dc66['markerName']),_0x3d3613=_0x5fefc2['getSuggestion'](_0x571438),_0x48d444=_0x3d3613['data'];if('formatBlock'!=_0x3d3613['type']||!_0x48d444||'setTableColumnHeader'!=_0x48d444['commandName'])return;if(_0x45dc66['item'])return void _0x4f8ae6['stop']();if(!_0x41a72d['consumable']['consume'](_0x45dc66['markerRange'],_0x4f8ae6['name']))return;const _0x132f7e=_0x45dc66['markerRange']['start']['nodeAfter'],_0x237d50=_0x45dc66['markerRange']['end']['nodeBefore'],_0x18af8e=_0x132f7e['parent']['parent'],{column:_0x18c8c1}=_0x42e8d2['getCellLocation'](_0x132f7e),{column:_0xbf835a}=_0x42e8d2['getCellLocation'](_0x237d50);for(let _0x9dc201=_0x18c8c1;_0x9dc201<=_0xbf835a;_0x9dc201++){const _0x3f3b51=_0x42e8d2['createTableWalker'](_0x18af8e,{'column':_0x9dc201,'includeAllSlots':!0x1});for(const _0x5b5d80 of _0x3f3b51){const _0x492848=_0x5b5d80['cell'],_0x5f4979=_0x41a72d['mapper']['toViewElement'](_0x492848);_0x41a72d['writer']['addClass']('ck-suggestion-marker-'+_0x4f509f,_0x5f4979),_0xc31038&&_0x41a72d['writer']['setAttribute']('data-suggestion',_0x571438,_0x5f4979),_0x41a72d['mapper']['bindElementToMarker'](_0x5f4979,_0x45dc66['markerName']),_0x17cc87&&(_0x5fefc2['activeMarkers']['includes'](_0x45dc66['markerName'])?_0x41a72d['writer']['addClass']('ck-suggestion-marker--active',_0x5f4979):_0x41a72d['writer']['removeClass']('ck-suggestion-marker--active',_0x5f4979));}}};}_0x5fefc2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x42c468),_0x5fefc2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x42c468),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x28842f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24920b,_0x51bf9f,_0x5b7777)=>{_0x5b7777['options']['showSuggestionHighlights']&&_0x28842f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x24920b,_0x51bf9f,_0x5b7777);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x20f4de,_0x4ded20,_0x1c4943)=>{const {type:_0x5d9400,id:_0x306e7a}=_0x5fefc2['_splitMarkerName'](_0x4ded20['markerName']),_0x2e048e=_0x5fefc2['getSuggestion'](_0x306e7a),_0x36744c=_0x2e048e['data'];if('formatBlock'!=_0x2e048e['type']||!_0x36744c||'setTableColumnHeader'!=_0x36744c['commandName'])return;const _0x14a53e=_0x1c4943['mapper']['markerNameToElements'](_0x4ded20['markerName']);if(_0x14a53e){for(const _0x52dcfe of _0x14a53e)_0x1c4943['writer']['removeClass']('ck-suggestion-marker-'+_0x5d9400,_0x52dcfe),_0x1c4943['writer']['removeClass']('ck-suggestion-marker--active',_0x52dcfe),_0x1c4943['writer']['removeAttribute']('data-suggestion',_0x52dcfe),_0x1c4943['mapper']['unbindElementFromMarkerName'](_0x52dcfe,_0x4ded20['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28b56e=this['editor'],_0x2394e8=_0x28b56e['locale'];function _0x2b6e7f(_0x156ff5){return{'type':'format','content':o(_0x2394e8,'*Format:*\x20%0',_0x156ff5)};}_0x28b56e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26de77=>{if('formatBlock'!=_0x26de77['type'])return;const {data:_0xf6b77e}=_0x26de77;if(_0xf6b77e){if('setTableRowHeader'==_0xf6b77e['commandName']){const _0x94bf96=_0xf6b77e['commandParams'][0x0]['forceValue'];return _0x2b6e7f(o(_0x2394e8,_0x94bf96?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xf6b77e['commandName']){const _0x254d1a=_0xf6b77e['commandParams'][0x0]['forceValue'];return _0x2b6e7f(o(_0x2394e8,_0x254d1a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x231077=>[_0x231077,null]));class Nt extends _0x107d6b{static get['requires'](){return[vt];}['afterInit'](){const _0xeb9e6c=this['editor'];if(!_0xeb9e6c['plugins']['has']('TableClipboard'))return;const _0x3f82eb=_0xeb9e6c['plugins']['get']('TrackChangesEditing'),_0x15c7ae=_0xeb9e6c['plugins']['get']('TableUtils'),_0x1ad0b6=_0xeb9e6c['plugins']['get'](vt),_0x407e22=_0xeb9e6c['plugins']['get']('TableClipboard');_0x1ad0b6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xeb9e6c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xeb9e6c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2dbd7e=null;_0xeb9e6c['model']['on']('insertContent',(_0x10c208,_0x4e83a5)=>{const [_0x4312b0,_0x915661]=_0x4e83a5,_0x14ca5c=_0x4e83a5[_0x4e83a5['length']-0x1];_0x14ca5c&&_0x14ca5c['forceDefaultExecution']||_0x3f82eb['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4ea57f,_0x10dde5,_0x2f6fdb,_0x2dc4af,_0x111d0e){if(_0x10dde5&&!_0x10dde5['is']('documentSelection'))return!0x1;const _0x185150=_0x111d0e['getTableIfOnlyTableInContent'](_0x4ea57f,_0x2f6fdb);if(!_0x185150||!Ae(_0x185150,void 0x0,_0x2dc4af))return!0x1;const _0x227a83=_0x2dc4af['getSelectionAffectedTableCells'](_0x2f6fdb['document']['selection']);if(!_0x227a83['length'])return!0x1;const _0x32f4cc=_0x227a83[0x0]['findAncestor']('table'),_0x3ee388=_0x2dc4af['getRowIndexes'](_0x227a83),_0x3056a7=_0x2dc4af['getColumnIndexes'](_0x227a83),_0x3801e0={'startRow':_0x3ee388['first'],'endRow':_0x3ee388['last'],'startColumn':_0x3056a7['first'],'endColumn':_0x3056a7['last']};return 0x1==_0x227a83['length']&&(_0x3801e0['endRow']+=_0x2dc4af['getRows'](_0x185150)-0x1,_0x3801e0['endColumn']+=_0x2dc4af['getColumns'](_0x185150)-0x1),Ae(_0x32f4cc,_0x3801e0,_0x2dc4af);}(_0x4312b0,_0x915661,_0xeb9e6c['model'],_0x15c7ae,_0x407e22)&&(_0x10c208['stop'](),_0x2dbd7e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xeb9e6c['model']['change'](()=>{_0xeb9e6c['model']['insertContent'](_0x4e83a5[0x0],_0x4e83a5[0x1],_0x4e83a5[0x2],{'forceDefaultExecution':!0x0});const _0x416d3a=_0x476dad(),{rowInsertionRanges:_0x544c49,columnInsertionRanges:_0x1f1c00,insertionRanges:_0x30c179,deletionRanges:_0x351b20,cells:_0x508db1}=_0x2dbd7e;_0x544c49['length']&&_0x3f82eb['markMultiRangeInsertion'](_0x544c49,'tablePasteRow',{'tablePasteChainId':_0x416d3a}),_0x1f1c00['length']&&_0x3f82eb['markMultiRangeInsertion'](_0x1f1c00,'tablePasteColumn',{'tablePasteChainId':_0x416d3a}),_0x30c179['length']&&(_0x3f82eb['markMultiRangeInsertion'](_0x30c179,'tablePaste',{'tablePasteChainId':_0x416d3a,'skipNestingCheck':!0x0}),_0x30c179['forEach'](_0x3f9f06=>_0x3f9f06['detach']?.())),_0x351b20['length']&&(_0x3f82eb['markMultiRangeDeletion'](_0x351b20,'tablePaste',{'tablePasteChainId':_0x416d3a,'skipNestingCheck':!0x0}),_0x351b20['forEach'](_0x4f1c5b=>_0x4f1c5b['detach']?.()));const _0x578204=_0x3f82eb['markMultiRangeBlockFormat'](_0x508db1['map'](({element:_0x1ab75b})=>_0x1ab75b),{'formatGroupId':_0x476dad()},[],'tablePasteCell',{'tablePasteChainId':_0x416d3a});if(_0x578204){const _0xd6c0a6=_0x578204['getMarkers'](),_0x514f07=[];for(const {element:_0x5206e0,attributes:_0x1cc776}of _0x508db1){if(!_0x1cc776)continue;const _0x91a86a=_0xeb9e6c['model']['createRangeOn'](_0x5206e0),_0x29195f=_0xd6c0a6['find'](_0x36e507=>_0x36e507['getRange']()['isEqual'](_0x91a86a));_0x29195f&&_0x514f07['push']([_0x29195f['name'],_0x1cc776]);}_0x514f07['length']&&_0x578204['setAttribute']('markerAttributes',Object['fromEntries'](_0x514f07));}_0x2dbd7e=null;}));},{'priority':_0x4b7bfc['high']+0xa}),_0xeb9e6c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x311647,_0x3a2f68)=>{const [_0x3640e0,_0x8f528c,,_0x5e7509]=_0x3a2f68;if(!_0x2dbd7e)return;_0x311647['stop']();const _0x131503=_0x3640e0['cell'],_0x2b1a17=_0x8f528c,_0x207220=je(_0x131503),_0x47e3c8=je(_0x2b1a17);_0x311647['return']=_0x131503;let _0x31c947=null,_0x23adfb=null;if(_0x47e3c8||_0x207220){if(_0x207220&&!_0x47e3c8){_0x5e7509['remove'](_0x131503['getChild'](0x0));for(const _0x2ff738 of Array['from'](_0x2b1a17['getChildren']()))_0x5e7509['insert'](_0x2ff738,_0x131503,'end');const _0x1e1cdf=_0x2dbd7e['rowInsertionIndexes']['includes'](_0x3640e0['row']),_0x4b7abf=_0x2dbd7e['columnInsertionIndexes']['includes'](_0x3640e0['column']);_0x1e1cdf||_0x4b7abf||(_0x31c947=_0x22f529['fromRange'](_0x5e7509['createRangeIn'](_0x131503)));}else _0x47e3c8&&!_0x207220&&(_0x23adfb=_0x5e7509['createRangeIn'](_0x131503));}else{const _0x7271e=_0x5e7509['createElement']('tableCellSuggestion'),_0x293d6a=_0x5e7509['createElement']('tableCellSuggestion');_0x5e7509['wrap'](_0x5e7509['createRangeIn'](_0x131503),_0x293d6a),_0x5e7509['insert'](_0x7271e,_0x131503,0x0);for(const _0x4d9de9 of Array['from'](_0x2b1a17['getChildren']()))_0x5e7509['insert'](_0x4d9de9,_0x7271e,'end');_0x31c947=_0x22f529['fromRange'](_0x5e7509['createRangeOn'](_0x7271e)),_0x23adfb=_0x22f529['fromRange'](_0x5e7509['createRangeOn'](_0x293d6a));}const _0x17c2da=Array['from'](_0x2b1a17['getAttributes']())['filter'](([_0x3b71ac])=>we['includes'](_0x3b71ac));_0x2dbd7e['cells']['push']({'element':_0x131503,'attributes':_0x17c2da['length']?Object['fromEntries'](_0x17c2da):null}),_0x31c947&&_0x2dbd7e['insertionRanges']['push'](_0x31c947),_0x23adfb&&_0x2dbd7e['deletionRanges']['push'](_0x23adfb);},{'priority':'high'}),_0x15c7ae['on']('insertColumns',(_0x26437d,_0xbbb751)=>{const [_0xf95e50,_0x5634d7={}]=_0xbbb751;if(!_0x2dbd7e)return;const _0x5405b6=_0x5634d7['at']||0x0,_0x4135b1=_0x5634d7['columns']||0x1;_0x2dbd7e['columnInsertionIndexes']=new Array(_0x4135b1)['fill'](_0x5405b6)['map']((_0x39785e,_0x288dca)=>_0x39785e+_0x288dca);for(const {cell:_0x143216}of _0x15c7ae['createTableWalker'](_0xf95e50,{'startColumn':_0x5405b6,'endColumn':_0x5405b6+_0x4135b1-0x1}))_0x2dbd7e['columnInsertionRanges']['push'](_0xeb9e6c['model']['createRangeOn'](_0x143216));},{'priority':'low'}),_0x15c7ae['on']('insertRows',(_0x458bb0,_0x4e1c30)=>{const [_0x486e52,_0x14afe4={}]=_0x4e1c30;if(!_0x2dbd7e)return;const _0x48de16=_0x14afe4['at']||0x0,_0x2b16e6=_0x14afe4['rows']||0x1;_0x2dbd7e['rowInsertionIndexes']=new Array(_0x2b16e6)['fill'](_0x48de16)['map']((_0x5b79be,_0xfbf5d2)=>_0x5b79be+_0xfbf5d2);for(const {cell:_0x4500bb}of _0x15c7ae['createTableWalker'](_0x486e52,{'startRow':_0x48de16,'endRow':_0x48de16+_0x2b16e6-0x1}))_0x2dbd7e['rowInsertionRanges']['push'](_0xeb9e6c['model']['createRangeOn'](_0x4500bb));},{'priority':'low'}),_0x3f82eb['descriptionFactory']['registerDescriptionCallback'](_0x5060b2=>{if(_0x5060b2['subType']&&_0x5060b2['subType']['startsWith']('tablePaste'))return _0x5060b2['previous']?{}:{'type':'insertion','content':o(_0xeb9e6c['locale'],'*Replace\x20table\x20cells*')};});const _0x2ba475=()=>!0x1;for(const _0x21e676 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3f82eb['_suggestionFactory']['registerCustomCallback']('insertion',_0x21e676,'join',_0x2ba475),_0x3f82eb['_suggestionFactory']['registerCustomCallback']('deletion',_0x21e676,'join',_0x2ba475),_0x3f82eb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21e676,'join',_0x2ba475);_0x3f82eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2ba475),_0x3f82eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3175ad,_0x368362,_0x58ad02)=>{const _0x58c169=_0x3175ad['map'](_0x1c5cb3=>_0x1c5cb3['getContainedElement']())['filter'](_0x2ebc4b=>_0x2ebc4b),_0x16ab4f=new Map(_0x58c169['map'](_0x3f9ee4=>[_0x3f9ee4,null]));if(_0x2dbd7e){for(const {element:_0x373264,attributes:_0x13dfa1}of _0x2dbd7e['cells'])_0x13dfa1&&_0x16ab4f['set'](_0x373264,_0x13dfa1);}else{if(_0x58ad02&&_0x58ad02['markerAttributes'])for(const [_0x37d4dc,_0x36f706]of Object['entries'](_0x58ad02['markerAttributes'])){const _0x115fad=_0xeb9e6c['model']['markers']['get'](_0x37d4dc),_0x14bc63=_0x115fad?_0x115fad['getRange']()['getContainedElement']():null;_0x14bc63&&_0x16ab4f['set'](_0x14bc63,_0x36f706);}}_0xeb9e6c['model']['change'](_0x161f89=>{for(const [_0x3bae9a,_0x5b9d08]of _0x16ab4f)_0x161f89['setAttributes']({...ve,..._0x5b9d08},_0x3bae9a);});});const _0x1b7fd9=(_0x5be878,_0x42b3fb)=>{_0x3f82eb['_suggestionFactory']['registerCustomCallback'](_0x5be878,'tablePaste',_0x42b3fb,(_0x4fe67d,_0x5884e4,_0x8b736d)=>{_0xeb9e6c['model']['change'](_0x105071=>{const _0x453cd9=[];for(const _0x50cf1f of _0x4fe67d){const _0x169171=_0x50cf1f['start']['nodeAfter'];_0x169171['is']('element','tableCellSuggestion')&&_0x453cd9['push'](_0x169171);}_0x3f82eb['_suggestionFactory']['getSuggestionCallback'](_0x5be878,null,_0x42b3fb)(_0x4fe67d,_0x5884e4,_0x8b736d);for(const _0x82d685 of _0x453cd9)'$graveyard'!=_0x82d685['root']['rootName']&&_0x105071['unwrap'](_0x82d685);});});};_0x1b7fd9('insertion','accept'),_0x1b7fd9('insertion','discard'),_0x1b7fd9('deletion','accept'),_0x1b7fd9('deletion','discard'),_0x3f82eb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2f23dd=>{const _0xf32896=_0x2f23dd['map'](_0xc3a248=>_0xc3a248['getContainedElement']()),_0x3028e4=_0xf32896[0x0]['findAncestor']('table'),{minRow:_0x1a26c2,maxRow:_0x3d91e6}=_0x1ad0b6['_getCoordsForCells'](_0xf32896);_0x15c7ae['removeRows'](_0x3028e4,{'at':_0x1a26c2,'rows':_0x3d91e6-_0x1a26c2+0x1});}),_0x3f82eb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x378150=>{const _0x493dde=_0x378150['map'](_0x2a8ccb=>_0x2a8ccb['getContainedElement']()),_0x35649a=_0x493dde[0x0]['findAncestor']('table'),{minColumn:_0x326ae3,maxColumn:_0x33cd69}=_0x1ad0b6['_getCoordsForCells'](_0x493dde);_0x15c7ae['removeColumns'](_0x35649a,{'at':_0x326ae3,'columns':_0x33cd69-_0x326ae3+0x1});});const _0x107570=(_0xeb317a,_0x1702ab)=>{if(!_0x1702ab['subType']||!_0x1702ab['subType']['startsWith']('tablePaste'))return;const _0x37d1ba=_0x1702ab['attributes']['tablePasteChainId'],_0x295490=_0x3f82eb['getSuggestions']()['filter'](_0x571a9d=>_0x571a9d['isInContent']&&_0x571a9d['attributes']&&_0x571a9d['attributes']['tablePasteChainId']==_0x37d1ba);_0x295490['length']&&_0x1702ab['getAllAdjacentSuggestions']()['length']!=_0x295490['length']&&_0x295490['reduce']((_0x20e8a0,_0x15b879)=>(_0x20e8a0['next']=_0x15b879,_0x15b879['previous']=_0x20e8a0,_0x15b879));};function _0x132434(_0x580b53,_0x577992=!0x0){const {id:_0x4e07f8,authorId:_0x528a5d}=_0x3f82eb['_splitMarkerName'](_0x580b53['markerName']),_0x2b6410=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3864fd=_0x3f82eb['activeMarkers']['includes'](_0x580b53['markerName']);return _0x3864fd&&_0x2b6410['push']('ck-suggestion-marker--active'),{'classes':_0x2b6410,'attributes':{'data-suggestion':_0x4e07f8,'data-author-id':_0x528a5d},'priority':_0x3864fd&&_0x577992?0xbc2:0xbb8};}_0x3f82eb['on']('suggestionLoaded',_0x107570,{'priority':'high'}),_0x3f82eb['on']('suggestionUnloaded',_0x107570,{'priority':'high'}),_0xeb9e6c['model']['document']['registerPostFixer'](()=>{let _0x18aa0e=!0x1;const _0x1f336d=Array['from'](_0xeb9e6c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a82cc,data:_0x2b2c50}of _0x1f336d){const {group:_0x2a10c7,type:_0x3237ce,id:_0x7fbc3a}=_0x3f82eb['_splitMarkerName'](_0x2a82cc);if('suggestion'!=_0x2a10c7||'deletion'!=_0x3237ce||_0x2b2c50['oldRange'])continue;if(!_0x3f82eb['hasSuggestion'](_0x7fbc3a))continue;const _0x280e81=_0x3f82eb['getSuggestion'](_0x7fbc3a)['getRanges'](),_0x4e718b=_0xeb9e6c['plugins']['get']('Users')['me'];for(const _0x17682c of _0x3f82eb['getSuggestions']()){if(!_0x17682c['isInContent']||_0x17682c['author']!=_0x4e718b)continue;if('formatBlock'!=_0x17682c['type']||'tablePasteCell'!=_0x17682c['subType'])continue;if(_0x17682c['getRanges']()['every'](_0x202f12=>_0x280e81['some'](_0x81f665=>_0x81f665['containsRange'](_0x202f12,!0x0)))){for(const _0x2565ef of _0x17682c['getAllAdjacentSuggestions']())_0x2565ef['isInContent']&&(_0x2565ef['discard'](),_0x18aa0e=!0x0);}}}return _0x18aa0e;}),_0xeb9e6c['model']['document']['registerPostFixer'](_0x55acd3=>{const _0x125808=_0xeb9e6c['commands']['get']('redo');if(!_0x125808||!_0x125808['_createdBatches']['has'](_0x55acd3['batch']))return!0x1;let _0x4bfd39=!0x1;const _0x3a01c4=_0xeb9e6c['plugins']['get']('Users')['me'],_0x3c82b5=_0xeb9e6c['model']['document']['differ']['getChanges'](),_0x566c67=Array['from'](_0xeb9e6c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x38a47c,data:_0xe91ad9})=>{const {group:_0x3a4a7b,subType:_0x2da3a4,authorId:_0x16855a}=_0x3f82eb['_splitMarkerName'](_0x38a47c);return'suggestion'==_0x3a4a7b&&'tablePaste'==_0x2da3a4&&_0x16855a==_0x3a01c4['id']&&!_0xe91ad9['oldRange'];});for(const _0x4fae11 of _0x3c82b5){if('insert'!=_0x4fae11['type']||'tableCellSuggestion'!=_0x4fae11['name']||0x1!=_0x4fae11['length'])continue;const _0x3e4d7d=_0x55acd3['createRange'](_0x4fae11['position'],_0x4fae11['position']['getShiftedBy'](0x1));if(!_0x566c67['find'](({data:_0xd9fcac})=>_0xd9fcac['newRange']['isEqual'](_0x3e4d7d))){for(const {name:_0x2c5441,data:_0x4626d4}of _0x566c67)if(_0x3e4d7d['containsRange'](_0x4626d4['newRange'])){_0x55acd3['updateMarker'](_0x2c5441,{'range':_0x3e4d7d}),_0x4bfd39=!0x0;break;}}}return _0x4bfd39;}),_0xeb9e6c['model']['document']['registerPostFixer'](_0x29e5d0=>{let _0x1ae18b=!0x1;const _0x547734=_0xeb9e6c['plugins']['get']('Users')['me'],_0x5c1766=_0x3f82eb['getSuggestions']()['filter'](_0x5eec53=>_0x5eec53['isInContent']&&_0x5eec53['author']==_0x547734),_0x33fcf2=new Set(),_0x25ef89=new Set();for(const _0x2d068d of _0x5c1766)if('tablePaste'==_0x2d068d['subType'])for(const _0x2c1d1f of _0x2d068d['getMarkers']()){const _0x3857f8=_0x2c1d1f['getRange']()['getContainedElement']();if(_0x3857f8){if(_0x3857f8['is']('element','tableCellSuggestion')&&je(_0x3857f8)){_0x2d068d['removeMarker'](_0x2c1d1f['name']),_0x33fcf2['add'](_0x3857f8),_0x1ae18b=!0x0;const _0x3a1b33=_0x3857f8['nextSibling'],_0x80face=_0x3857f8['previousSibling'],_0x546a4a=_0x3a1b33&&_0x3a1b33['is']('element','tableCellSuggestion'),_0x312ee6=_0x80face&&_0x80face['is']('element','tableCellSuggestion');_0x546a4a&&!_0x33fcf2['has'](_0x3a1b33)&&_0x25ef89['add'](_0x3a1b33),_0x312ee6&&!_0x33fcf2['has'](_0x80face)&&_0x25ef89['add'](_0x80face);}else _0x3857f8['is']('element','paragraph')&&_0x3857f8['isEmpty']&&(_0x2d068d['removeMarker'](_0x2c1d1f['name']),_0x1ae18b=!0x0);}}else{if('tablePasteCell'==_0x2d068d['subType']){if(!_0x2d068d['attributes']||!_0x2d068d['attributes']['tablePasteChainId'])continue;const _0x1f64b2=_0x2d068d['attributes']['markerAttributes'];if(_0x1f64b2&&Object['keys'](_0x1f64b2)['length'])continue;const _0x16201e=_0x2d068d['attributes']['tablePasteChainId'];let _0x5cc01a=!0x0,_0x25077c=!0x0;for(const _0x14b46f of _0x5c1766)if(_0x14b46f['subType']&&_0x14b46f['subType']['startsWith']('tablePaste')){if(!_0x14b46f['attributes']['tablePasteChainId']){_0x25077c=!0x1;break;}if(_0x14b46f['id']!=_0x2d068d['id']&&_0x14b46f['attributes']['tablePasteChainId']==_0x16201e){_0x5cc01a=!0x1;break;}}_0x25077c&&_0x5cc01a&&(_0x2d068d['removeMarkers'](),_0x1ae18b=!0x0);}}for(const _0x29db46 of _0x33fcf2)_0x29e5d0['remove'](_0x29db46);for(const _0xf88449 of _0x25ef89)_0x29e5d0['unwrap'](_0xf88449);return _0x1ae18b;}),_0xeb9e6c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xa57e2b=>_0x132434(_0xa57e2b),'converterPriority':'high'}),_0xeb9e6c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3770a0,_0x595a02)=>_0x595a02['options']['showSuggestionHighlights']?_0x132434(_0x3770a0,!0x1):null,'converterPriority':'high'});const _0x212638=_0xeb9e6c['editing']['view'];this['listenTo'](_0x212638['document'],'clipboardOutput',(_0x4593c3,_0x738763)=>{const _0x215715=[];for(const _0x554da4 of _0x212638['createRangeIn'](_0x738763['content'])['getItems']())_0x554da4['is']('element','suggestion-td')&&_0x215715['push'](_0x554da4);_0x212638['change'](_0xa0deb4=>{for(const _0x1e7148 of _0x215715)_0xa0deb4['move'](_0xa0deb4['createRangeIn'](_0x1e7148),_0xa0deb4['createPositionBefore'](_0x1e7148)),_0xa0deb4['remove'](_0x1e7148);});});}}function je(_0x3e4fba){if(_0x3e4fba['isEmpty'])return!0x0;const _0x25a072=_0x3e4fba['getChild'](0x0);return _0x25a072['is']('element','paragraph')&&_0x25a072['isEmpty'];}function Ae(_0x5cc95a,_0x3b3f28={},_0x259740){for(const {isAnchor:_0x1c1b4f,cellHeight:_0x430e44,cellWidth:_0x54c471}of _0x259740['createTableWalker'](_0x5cc95a,{'includeAllSlots':!0x0,..._0x3b3f28}))if(!_0x1c1b4f||0x1!=_0x430e44||0x1!=_0x54c471)return!0x1;return!0x0;}class Dt extends _0x107d6b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3465d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x3465d7['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3465d7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3465d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3465d7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3465d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3465d7['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x160935,_0x13c8a8){const _0x47910f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x150f7d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5d3555=_0x13c8a8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3af6c1=_0x150f7d['getColumnGroupElement'](_0x5d3555);let _0x4e26c4=_0x3af6c1?_0x150f7d['getTableColumnsWidths'](_0x3af6c1):null,_0x14952f=_0x5d3555['getAttribute']('tableWidth')||null;const _0x4fce18=_0x13c8a8['tableWidth']||_0x14952f,_0x8dd819=_0x13c8a8['columnWidths']||_0x4e26c4,_0x27b356=this['editor']['plugins']['get']('Users')['me'];for(const _0x49d596 of _0x47910f['getSuggestions']()){const _0x2b1fe4=_0x49d596['getContainedElement']();if('resizeTable'===_0x49d596['subType']&&_0x2b1fe4===_0x5d3555){_0x49d596['author']!==_0x27b356&&_0x49d596['discard']();const _0x4aa763=_0x49d596['data']['commandParams'];_0x14952f=_0x4aa763[0x0]['tableWidth'],_0x4e26c4=_0x4aa763[0x0]['columnWidths'];break;}}_0x160935({'table':_0x5d3555,'tableWidth':_0x4fce18,'columnWidths':_0x8dd819}),_0x47910f['markBlockFormat'](_0x5d3555,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x14952f,'columnWidths':_0x4e26c4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2baf17){if('formatBlock'!=_0x2baf17['type']&&'formatInline'!=_0x2baf17['type'])return;const {data:_0x1eb308}=_0x2baf17;if(_0x1eb308&&'resizeTable'===_0x1eb308['formatGroupId']){const _0x46185f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x46185f)};}}}class Mt extends _0x107d6b{['afterInit'](){const _0x24b1b2=this['editor'];_0x24b1b2['plugins']['has']('Template')&&_0x24b1b2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x107d6b{['afterInit'](){const _0x280109=this['editor'];if(!_0x280109['commands']['get']('insertTableOfContents'))return;_0x280109['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4bc787=_0x280109['plugins']['get']('TrackChangesEditing'),_0x2ae620=_0x280109['locale'];_0x4bc787['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1dbcff=>o(_0x2ae620,'ELEMENT_TABLE_OF_CONTENTS',_0x1dbcff));}}class Bt extends _0x107d6b{['afterInit'](){const _0x2a4678=this['editor'];if(!_0x2a4678['plugins']['has']('Title'))return;const _0x54b51e=_0x2a4678['plugins']['get']('TrackChangesEditing');_0x54b51e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2a4678['locale'],'ELEMENT_TITLE')),_0x2a4678['model']['document']['registerPostFixer'](_0x183e77=>{let _0x1f826d=!0x1;const _0xe4f09d=Array['from'](_0x2a4678['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb30bc2,data:_0x21a00c}of _0xe4f09d){const {group:_0x325b6d}=_0x54b51e['_splitMarkerName'](_0xb30bc2);if('suggestion'!==_0x325b6d||!_0x21a00c['newRange'])continue;const _0x204b23=_0x21a00c['newRange'],_0x478f5f=_0x204b23['end']['nodeBefore'];if(!_0x478f5f||!_0x478f5f['is']('element','title-content'))continue;if(!_0x204b23['start']['isTouching'](_0x204b23['end']))continue;const _0xca23e9=_0x2a4678['model']['schema']['getNearestSelectionRange'](_0x204b23['end'],'forward');if(_0xca23e9&&_0xca23e9['isCollapsed']){const _0x274171=_0x183e77['createRange'](_0x204b23['start'],_0xca23e9['start']);_0x274171['isEqual'](_0x204b23)||(_0x183e77['updateMarker'](_0xb30bc2,{'range':_0x274171}),_0x1f826d=!0x0);}_0x1f826d||(_0x183e77['removeMarker'](_0xb30bc2),_0x1f826d=!0x0);}return _0x1f826d;});}}class Ot extends _0x107d6b{['afterInit'](){const _0x4423e6=this['editor'],_0x33535b=_0x4423e6['plugins']['get']('TrackChangesEditing');_0x4423e6['plugins']['has']('UndoEditing')&&(_0x33535b['enableCommand']('undo'),_0x33535b['enableCommand']('redo'));}}class Rt extends _0x107d6b{static get['requires'](){return[vt];}['afterInit'](){const _0x2fe93c=this['editor'];if(!_0x2fe93c['plugins']['has']('TableCaptionEditing'))return;_0x2fe93c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x107d6b{['tableProperties'];['tableCellProperties'];constructor(_0x3111d6){super(_0x3111d6),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 _0x311871=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x50239a of this['tableProperties'])_0x311871['enableCommand'](_0x50239a,(_0x40e2df,_0x2f377f)=>{const _0x5783a5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x50239a,[_0x5783a5],this['tableProperties'],'tableProperties',_0x40e2df,_0x2f377f);});_0x311871['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x311871['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x311871['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5ddf71,_0x2b4d6e)=>this['handleDiscardAction'](this['tableProperties'],_0x5ddf71,_0x2b4d6e)),_0x311871['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2023b1 of this['tableCellProperties'])_0x311871['enableCommand'](_0x2023b1,(_0x3e2839,_0x74f3d8)=>{const _0x359008=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2023b1,_0x359008,this['tableCellProperties'],'tableCellProperties',_0x3e2839,_0x74f3d8);});_0x311871['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x311871['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x311871['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x47bf7c,_0xab34b5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x47bf7c,_0xab34b5)),_0x311871['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x311871['descriptionFactory']['registerDescriptionCallback'](_0x55ebf7=>this['handleSuggestionDescription'](_0x55ebf7));}['_handlePropertyChange'](_0x2b4424,_0x368847,_0x5320dd,_0x4668e6,_0xa487ec,_0x30d3ee){const _0x1d4b29=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x30d3ee['batch'],()=>{for(const _0x5af523 of _0x368847){if(this['_getSuggestion'](_0x5af523,_0x4668e6))_0xa487ec(_0x30d3ee);else{const _0x83bc9a={};for(const _0x1b9360 of _0x5320dd){const _0x3c399b=_0x5af523['getAttribute'](_0x1b9360);void 0x0!==_0x3c399b&&(_0x83bc9a[_0x1b9360]=_0x3c399b);}_0xa487ec(_0x30d3ee),_0x1d4b29['markBlockFormat'](_0x5af523,{'commandParams':[_0x83bc9a]},[],_0x4668e6);}}});}['handleDiscardAction'](_0x2a127a,_0x1c9dbc,_0x56c2ed){const _0xe9be86=_0x1c9dbc[0x0]['start']['nodeAfter'],_0x5d2d9a=_0x56c2ed['commandParams'][0x0];this['editor']['model']['change'](_0x3898cb=>{for(const _0x58361b of _0x2a127a)void 0x0!==_0x5d2d9a[_0x58361b]?_0x3898cb['setAttribute'](_0x58361b,_0x5d2d9a[_0x58361b],_0xe9be86):_0x3898cb['removeAttribute'](_0x58361b,_0xe9be86);});}['handleSuggestionDescription'](_0x15badf){if(_0x15badf['data'])switch(_0x15badf['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'](_0x3bf16a,_0x3a8ef5){const _0x2641a4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x411af0 of _0x2641a4['getSuggestions']({'skipNotAttached':!0x0})){const _0x37660d=_0x411af0['getContainedElement']();if(_0x411af0['subType']===_0x3a8ef5&&_0x37660d===_0x3bf16a)return _0x411af0;}return null;}}const m='$elementName';class p extends _0x107d6b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x46c909,_0x40d555,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,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21d903){super(_0x21d903),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1fe54a,_0x6129c,_0x47b721,_0x5a3a98)=>{this['_model']['change'](()=>{for(const _0x324e62 of[..._0x5a3a98,..._0x47b721])this['_model']['markers']['has'](_0x324e62)&&_0x21d903['editing']['reconvertMarker'](_0x324e62);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x21d903['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(),_0x21d903['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x21d903['config']['get']('trackChanges.trackFormatChanges'),_0x21d903['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x21d903['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x21d903,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x55424e=this['editor'],_0x423e95=(_0x54a33e,_0x5124b4)=>{if('attribute'!=_0x54a33e)return'ck-suggestion-marker-'+_0x54a33e;const _0x3277e8=_0x5124b4['split']('|')[0x0];return this['_isBlockAttribute'](_0x3277e8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x55424e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4f39c1=>{const {id:_0x43efd8,authorId:_0x273f0f,type:_0x958c89,subType:_0x1230cd}=this['_splitMarkerName'](_0x4f39c1['markerName']),_0x2156db=['ck-suggestion-marker',_0x423e95(_0x958c89,_0x1230cd)];let _0x1e853e=0xbb8;return this['activeMarkers']['includes'](_0x4f39c1['markerName'])&&(_0x2156db['push']('ck-suggestion-marker--active'),_0x1e853e=0xbc2),'deletion'==_0x958c89&&(_0x1e853e+=0x5),{'classes':_0x2156db,'attributes':{'data-suggestion':_0x43efd8,'data-author-id':_0x273f0f},'priority':_0x1e853e};}}),_0x55424e['conversion']['for']('dataDowncast')['add'](_0x2f55bd=>{_0x2f55bd['on']('addMarker:suggestion',(_0xcaa5ac,_0x5e929b,_0x36831a)=>{if(!_0x36831a['options']['showSuggestionHighlights'])return;const _0x20bddb=_0x5e929b['item'];if(!_0x20bddb)return;const _0x4e1173=_0x36831a['mapper']['toViewElement'](_0x20bddb);_0x55424e['model']['schema']['isObject'](_0x20bddb)&&_0x4e1173&&!_0x4e1173['getCustomProperty']('widget')&&_0x4e1173['is']('containerElement')&&_0x1c57ac(_0x4e1173,_0x36831a['writer']);},{'priority':'high'});}),_0x55424e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x571d71,_0x257c5d)=>{if(!_0x257c5d['options']['showSuggestionHighlights'])return null;const {type:_0x3c20f5,subType:_0x2b778b}=this['_splitMarkerName'](_0x571d71['markerName']);return{'classes':['ck-suggestion-marker',_0x423e95(_0x3c20f5,_0x2b778b)],'priority':0xbb8};}});const _0xf655bd=({showActiveMarkers:_0x458197=!0x0,isAttributeSuggestion:_0x57e2c0=!0x1}={})=>(_0x4bfa46,_0x5875a1,_0x23212d)=>{if(!_0x5875a1['item'])return;const {id:_0x241e34,authorId:_0x3312c0}=this['_splitMarkerName'](_0x5875a1['markerName']);if(_0x57e2c0){const _0x5b5bd0=this['_suggestions']['get'](_0x241e34),_0x45b3e0=this['_getAttributeKey'](_0x5b5bd0);if(!this['_isBlockAttribute'](_0x45b3e0))return;}if(_0x5875a1['item']['is']('selection'))return void _0x23212d['consumable']['consume'](_0x5875a1['item'],_0x4bfa46['name']);const _0x248502=_0x23212d['mapper']['toViewElement'](_0x5875a1['item']);if(_0x5875a1['item']['is']('element')&&_0x55424e['model']['schema']['isBlock'](_0x5875a1['item'])&&!_0x248502['getCustomProperty']('addHighlight')){_0x23212d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x248502),_0x23212d['writer']['setAttribute']('data-suggestion',_0x241e34,_0x248502),_0x23212d['writer']['setAttribute']('data-author-id',_0x3312c0,_0x248502),_0x23212d['mapper']['bindElementToMarker'](_0x248502,_0x5875a1['markerName']),_0x458197&&(this['activeMarkers']['includes'](_0x5875a1['markerName'])?_0x23212d['writer']['addClass']('ck-suggestion-marker--active',_0x248502):_0x23212d['writer']['removeClass']('ck-suggestion-marker--active',_0x248502));for(const _0x482473 of _0x55424e['model']['createRangeIn'](_0x5875a1['item'])['getItems']())_0x23212d['consumable']['consume'](_0x482473,_0x4bfa46['name']);_0x23212d['consumable']['consume'](_0x5875a1['item'],_0x4bfa46['name']);}};_0x55424e['conversion']['for']('dataDowncast')['add'](_0x34bfbd=>{_0x34bfbd['on']('addMarker:suggestion:formatBlock',(_0x30525f,_0x26fe28,_0x582ad5)=>{_0x582ad5['options']['showSuggestionHighlights']&&_0xf655bd({'showActiveMarkers':!0x1})(_0x30525f,_0x26fe28,_0x582ad5);},{'priority':'highest'});}),_0x55424e['conversion']['for']('dataDowncast')['add'](_0x35f7cd=>{_0x35f7cd['on']('addMarker:suggestion:attribute',(_0x54426a,_0xc0443f,_0x18f212)=>{_0x18f212['options']['showSuggestionHighlights']&&_0xf655bd({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x54426a,_0xc0443f,_0x18f212);},{'priority':'highest'});}),_0x55424e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4afd98,_0xc528d)=>_0xc528d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4afd98['substr'](0xb)}}),_0x55424e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2d4d21,{writer:_0x528ff0})=>{let _0x2ca3cb='suggestion:'+_0x2d4d21['getAttribute']('suggestion-type')+':'+_0x2d4d21['getAttribute']('id');return _0x2d4d21['getAttribute']('marker-count')&&(_0x2ca3cb+=':'+_0x2d4d21['getAttribute']('marker-count')),_0x528ff0['createElement']('$marker',{'data-name':_0x2ca3cb});}}),_0x55424e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x55424e['conversion']['for']('editingDowncast')['add'](_0xb0d978=>{_0xb0d978['on']('addMarker:suggestion:formatBlock',_0xf655bd(),{'priority':'high'});}),_0x55424e['conversion']['for']('editingDowncast')['add'](_0x4ae590=>{_0x4ae590['on']('addMarker:suggestion:attribute',_0xf655bd({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x55424e['conversion']['for']('editingDowncast')['add'](_0x510bf6=>{_0x510bf6['on']('removeMarker:suggestion:formatBlock',(_0x4c8b8d,_0x3c9901,_0x3f2b70)=>{const _0xb4ac10=_0x3f2b70['mapper']['markerNameToElements'](_0x3c9901['markerName']);if(_0xb4ac10){for(const _0xdad7e6 of _0xb4ac10)_0xdad7e6['getCustomProperty']('addHighlight')||(_0x3f2b70['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xdad7e6),_0x3f2b70['writer']['removeAttribute']('data-suggestion',_0xdad7e6),_0x3f2b70['writer']['removeAttribute']('data-author-id',_0xdad7e6),_0x3f2b70['mapper']['unbindElementFromMarkerName'](_0xdad7e6,_0x3c9901['markerName']));}},{'priority':'high'});}),_0x55424e['conversion']['for']('editingDowncast')['add'](_0x5c4b29=>{_0x5c4b29['on']('removeMarker:suggestion:attribute',(_0x849517,_0x4259b7,_0x38887d)=>{const _0x5a4dd8=_0x38887d['mapper']['markerNameToElements'](_0x4259b7['markerName']);if(!_0x5a4dd8)return;const {id:_0x70c208}=this['_splitMarkerName'](_0x4259b7['markerName']),_0x1002d3=this['_suggestions']['get'](_0x70c208),_0x7defa6=this['_getAttributeKey'](_0x1002d3);if(this['_isBlockAttribute'](_0x7defa6)){for(const _0xd9193c of _0x5a4dd8)_0xd9193c['getCustomProperty']('addHighlight')||(_0x38887d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xd9193c),_0x38887d['writer']['removeAttribute']('data-suggestion',_0xd9193c),_0x38887d['writer']['removeAttribute']('data-author-id',_0xd9193c),_0x38887d['mapper']['unbindElementFromMarkerName'](_0xd9193c,_0x4259b7['markerName']));}},{'priority':'high'});}),_0x55424e['model']['document']['registerPostFixer'](_0x23f694=>{let _0x421c45=!0x1;const _0x1fb7ed=Array['from'](_0x55424e['model']['document']['differ']['getChangedMarkers']()),_0xb2d9ea=new Set();for(const {name:_0x47e8c9,data:_0x26fa66}of _0x1fb7ed){const {group:_0x38be3c,type:_0x365ec4,subType:_0x34f59e,id:_0x5f6ac}=this['_splitMarkerName'](_0x47e8c9);if('suggestion'!==_0x38be3c)continue;const _0x39a761=this['_suggestions']['get'](_0x5f6ac);if(null!=_0x26fa66['newRange']){'formatInline'==_0x365ec4&&(_0x421c45=_0x421c45||Pt(_0x26fa66['newRange'],_0x47e8c9,_0x23f694,_0x55424e['model']['schema']));const _0x3b6e1d='attribute'==_0x365ec4&&this['_isBlockAttribute'](_0x34f59e['split']('|')[0x0]);if(_0x26fa66['newRange']['isCollapsed']||'$graveyard'==_0x26fa66['newRange']['root']['rootName']||'formatBlock'==_0x365ec4&&!Ft(_0x26fa66['newRange'])||_0x3b6e1d&&!Ft(_0x26fa66['newRange'])||'deletion'==_0x365ec4&&!(!Vt(_0x26054a=_0x26fa66['newRange'])&&!function(_0x1f01d4){return _0x1f01d4['start']['parent']==_0x1f01d4['end']['nodeBefore']&&_0x1f01d4['start']['isAtEnd'];}(_0x26054a)))_0x23f694['removeMarker'](_0x47e8c9),_0x421c45=!0x0;else{if(!_0x39a761||!_0x39a761['isInContent'])continue;if(_0x26fa66['newRange']&&_0x26fa66['oldRange']&&_0x26fa66['newRange']['isEqual'](_0x26fa66['oldRange']))continue;_0xb2d9ea['add'](_0x39a761);}}}var _0x26054a;return _0xb2d9ea['size']>0x0&&(_0x421c45=!!this['_joinWithAdjacentSuggestions'](_0xb2d9ea)||_0x421c45),_0x421c45;}),_0x55424e['model']['document']['registerPostFixer'](_0x3e62ae=>{let _0x3cdb98=!0x1;for(const _0x53a7df of _0x55424e['model']['document']['differ']['getChanges']())if('insert'==_0x53a7df['type'])for(const _0x187f94 of this['_suggestions']['values']()){if(_0x187f94['isMultiRange']||!_0x187f94['isInContent'])continue;const _0x305bb3='formatBlock'==_0x187f94['type'],_0x22b12b=this['_getAttributeKey'](_0x187f94),_0x161c00=_0x22b12b&&this['_isBlockAttribute'](_0x22b12b);if(!_0x305bb3&&!_0x161c00)continue;const _0x97a0c3=_0x187f94['getFirstRange']();if(_0x97a0c3['start']['parent']!=_0x97a0c3['end']['parent']&&!_0x97a0c3['end']['isAtEnd']){const _0x1a9f23=_0x55424e['model']['createPositionAt'](_0x97a0c3['start']['nodeAfter'],'end'),_0x54b92e=_0x55424e['model']['createRange'](_0x97a0c3['start'],_0x1a9f23);_0x3e62ae['updateMarker'](_0x187f94['getFirstMarker'](),{'range':_0x54b92e}),_0x3cdb98=!0x0;}}return _0x3cdb98;}),_0x55424e['model']['document']['registerPostFixer'](_0x15c0d9=>this['_processAttributeChanges'](_0x15c0d9)),_0x55424e['model']['document']['registerPostFixer'](_0x2546d6=>!_0x2546d6['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2546d6)),_0x55424e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x55424e['model']['document']['on']('change:data',(_0x3cc122,_0x9a3eff)=>{if(!_0x9a3eff['isLocal']||_0x9a3eff['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xbc771d=_0x55424e['model']['document']['differ']['getChanges']();if(0x0==_0xbc771d['length'])return;const _0x5cbcb6=[],_0x598f2a=_0xbc771d['filter'](_0x5b03d9=>'attribute'==_0x5b03d9['type']),_0x259b83=_0xbc771d['filter'](_0x373874=>'insert'==_0x373874['type']&&'$text'!=_0x373874['name']);for(const _0x63e10b of _0x598f2a)this['_isRegisteredAttribute'](_0x63e10b['attributeKey'])&&_0x5cbcb6['push']({'key':_0x63e10b['attributeKey'],'newValue':_0x63e10b['attributeNewValue'],'oldValue':_0x63e10b['attributeOldValue'],'range':Lt(_0x63e10b['range'],_0x55424e['model'])});for(const _0x3588fa of _0x259b83){if('rename'!=_0x3588fa['action']&&'refresh'!=_0x3588fa['action'])continue;const _0x127171=Jt(_0x3588fa['position']['nodeAfter'],_0x55424e['model']),_0x4068b8=_0x3588fa['before'];'rename'==_0x3588fa['action']&&_0x5cbcb6['push']({'key':m,'newValue':_0x3588fa['name'],'oldValue':_0x4068b8['name'],'range':_0x127171});for(const [_0x471b8a,_0x232f0a]of _0x4068b8['attributes']){if(!this['_isRegisteredAttribute'](_0x471b8a))continue;const _0x455256=_0x3588fa['attributes']['get'](_0x471b8a);_0x232f0a!==_0x455256&&_0x5cbcb6['push']({'key':_0x471b8a,'newValue':_0x455256,'oldValue':_0x232f0a,'range':_0x127171});}for(const [_0x38383d,_0x149902]of _0x3588fa['attributes'])this['_isRegisteredAttribute'](_0x38383d)&&(_0x4068b8['attributes']['has'](_0x38383d)||_0x5cbcb6['push']({'key':_0x38383d,'newValue':_0x149902,'oldValue':null,'range':_0x127171}));}0x0!=_0x5cbcb6['length']&&_0x55424e['model']['enqueueChange'](_0x9a3eff,_0x481113=>{const _0x93e029=_0x476dad();for(const {range:_0x19b2fa,key:_0x243411,oldValue:_0x345dd7,newValue:_0x5d8b15}of _0x5cbcb6)this['markAttributeChange'](_0x19b2fa,_0x243411,_0x345dd7,_0x5d8b15,{'groupId':_0x93e029});this['_reduceExistingSuggestions'](_0x481113,_0x5cbcb6);});},{'priority':'lowest'}),_0x55424e['model']['markers']['on']('update:suggestion',(_0x59eaf0,_0x27291c,_0x482ae3)=>{if(null==_0x482ae3){const {id:_0x4d4298}=this['_splitMarkerName'](_0x27291c['name']),_0x319841=this['_suggestions']['get'](_0x4d4298);_0x319841&&_0x319841['addMarkerName'](_0x27291c['name']);}}),_0x55424e['model']['document']['on']('change:data',()=>{const _0x1747a1=Array['from'](_0x55424e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x8b6b97=>'suggestion'===this['_splitMarkerName'](_0x8b6b97['name'])['group']);if(0x0===_0x1747a1['length'])return;_0x1747a1['sort']((_0x560015,_0xbae451)=>{const _0x5d0360=_0x560015['data']['oldRange'],_0x4b977e=_0xbae451['data']['oldRange'];return null===_0x5d0360&&null===_0x4b977e?0x0:null===_0x5d0360&&null!==_0x4b977e?-0x1:null!==_0x5d0360&&null===_0x4b977e?0x1:_0x5d0360['start']['isBefore'](_0x4b977e['start'])?-0x1:0x1;});const _0x4b7f51=new Set(),_0x4ef722=new Set();for(const {name:_0x29b126,data:_0x246a12}of _0x1747a1){const {id:_0x107fd3}=this['_splitMarkerName'](_0x29b126);if(null===_0x246a12['oldRange']){const _0x46b806=this['_handleNewSuggestionMarker'](_0x29b126);_0x4ef722['add'](_0x46b806);}else{const _0x5e95e8=this['_suggestions']['get'](_0x107fd3);null!==_0x246a12['newRange']||_0x5e95e8['isInContent']?(_0x4b7f51['add'](_0x5e95e8['head']),_0x4ef722['add'](_0x5e95e8)):this['_removeSuggestion'](_0x5e95e8);}}_0x4ef722['size']>0x0&&this['_refreshSuggestionsChain'](_0x4ef722);for(const _0x1467fb of _0x4b7f51)this['fire']('suggestionChanged',_0x1467fb);}),_0x55424e['model']['on']('applyOperation',(_0x27b243,_0x50eb51)=>{const _0x4f4eb9=_0x50eb51[0x0];if(!this['_suggestions']['size'])return;if(!_0x4f4eb9['isDocumentOperation'])return;if(_0x4f4eb9['batch']['isUndo']||!_0x4f4eb9['batch']['isLocal'])return;let _0x5ed4bd,_0x205bf0;switch(_0x4f4eb9['type']){case'insert':_0x5ed4bd=_0x55424e['model']['createPositionAt'](_0x4f4eb9['position']),_0x205bf0=_0x5ed4bd['getShiftedBy'](_0x4f4eb9['howMany']);break;case'split':_0x5ed4bd=_0x55424e['model']['createPositionAt'](_0x4f4eb9['splitPosition']),_0x205bf0=_0x55424e['model']['createPositionAt'](_0x4f4eb9['moveTargetPosition']);break;case'move':_0x5ed4bd=_0x55424e['model']['createPositionAt'](_0x4f4eb9['targetPosition']),_0x205bf0=_0x5ed4bd['getShiftedBy'](_0x4f4eb9['howMany']);break;default:return;}const _0x5798d0=_0x55424e['model']['createRange'](_0x5ed4bd,_0x205bf0);_0x55424e['model']['change'](()=>{for(const {suggestion:_0x165996,meta:_0x1d763d}of this['_findSuggestions'](_0x5798d0)){if(_0x165996['isMultiRange'])continue;if('formatInline'==_0x165996['type'])continue;const _0x3bedaf=this['_getAttributeKey'](_0x165996);if(_0x3bedaf&&this['_isBlockAttribute'](_0x3bedaf)&&'split'!=_0x4f4eb9['type'])continue;const _0xc5e7d7=_0x165996['data']&&_0x165996['data']['multipleBlocks'];('formatBlock'!=_0x165996['type']||'split'==_0x4f4eb9['type']&&!_0xc5e7d7)&&(_0x1d763d['containsRangeInObject']||'insertion'==_0x165996['type']&&_0x1d763d['isOwn']||_0x165996['getFirstRange']()['containsRange'](_0x5798d0)&&this['_breakSuggestionMarker'](_0x165996,_0x5ed4bd,_0x205bf0));}});},{'priority':'lowest'}),_0x55424e['model']['on']('deleteContent',(_0x5a11d4,_0x5e788c)=>{const _0x38fa9f=_0x5e788c[0x0],_0x468b97=_0x5e788c[0x1];if(_0x468b97&&_0x468b97['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x38fa9f['isCollapsed'])return;const _0x5987b8=_0x55424e['model']['schema'],{start:_0x515341,end:_0x380cf3}=_0x38fa9f['getFirstRange'](),_0xd66947=_0x515341['nodeAfter']&&_0x5987b8['isLimit'](_0x515341['nodeAfter'])?null:_0x5987b8['getNearestSelectionRange'](_0x515341,'forward'),_0x4c7084=_0x380cf3['nodeBefore']&&_0x5987b8['isLimit'](_0x380cf3['nodeBefore'])?null:_0x5987b8['getNearestSelectionRange'](_0x380cf3,'backward'),_0xc2f8dc=_0x55424e['model']['createRange'](_0xd66947?_0xd66947['start']:_0x515341,_0x4c7084?_0x4c7084['end']:_0x380cf3);_0x55424e['model']['change'](_0x444ded=>{this['markDeletion'](_0xc2f8dc);const _0x193c55=_0x55424e['model']['schema']['getNearestSelectionRange'](_0xc2f8dc['start']);_0x38fa9f['is']('documentSelection')?_0x444ded['setSelection'](_0x193c55):_0x38fa9f['setTo'](_0x193c55);}),_0x5a11d4['stop']();},{'priority':_0x4b7bfc['normal']+0xa}),_0x55424e['model']['on']('insertContent',(_0xf04d99,_0x4acf01)=>{const _0x56f99d=_0x4acf01[_0x4acf01['length']-0x1];_0x56f99d&&_0x56f99d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x55424e['model']['change'](()=>{let _0x129156=_0x55424e['model']['insertContent'](_0x4acf01[0x0],_0x4acf01[0x1],_0x4acf01[0x2],{'forceDefaultExecution':!0x0});if(!_0x129156)return;_0xf04d99['return']=_0x129156['clone']();const _0x15ce61=_0x129156['end']['nodeBefore'],_0x27a712=_0x55424e['model']['schema'];_0x15ce61&&_0x27a712['isBlock'](_0x15ce61)&&!_0x27a712['isObject'](_0x15ce61)&&(_0x129156=_0x55424e['model']['createRange'](_0x129156['start'],_0x55424e['model']['createPositionAt'](_0x15ce61,'end'))),this['markInsertion'](_0x129156);}),_0xf04d99['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5ede60=new O(_0x55424e,this['_suggestions']);_0x55424e['commands']['add']('acceptSuggestion',_0x5ede60),this['enableCommand']('acceptSuggestion');const _0xb8a36=new R(_0x55424e,this['_suggestions']);_0x55424e['commands']['add']('discardSuggestion',_0xb8a36),this['enableCommand']('discardSuggestion'),_0x55424e['commands']['add']('acceptAllSuggestions',new x(_0x55424e,_0x5ede60,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x55424e['commands']['add']('discardAllSuggestions',new x(_0x55424e,_0xb8a36,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x55424e['commands']['add']('acceptSelectedSuggestions',new E(_0x55424e,_0x5ede60,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x55424e['commands']['add']('discardSelectedSuggestions',new E(_0x55424e,_0xb8a36,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xeb8f82=_0x55424e['plugins']['get']('CommentsRepository');this['listenTo'](_0xeb8f82,'addComment',(_0x1b0102,{threadId:_0x393a82})=>{const _0x6ddd33=this['_suggestions']['get'](_0x393a82);_0x6ddd33&&_0x6ddd33['commentThread']&&0x1===_0x6ddd33['commentThread']['length']&&this['_updateSuggestionData'](_0x393a82,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xeb8f82,'removeComment',(_0xd518aa,{threadId:_0x505894})=>{const _0x50250a=this['_suggestions']['get'](_0x505894);_0x50250a&&_0x50250a['commentThread']&&!_0x50250a['commentThread']['length']&&this['_updateSuggestionData'](_0x505894,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x261028){const _0x55b716=_0xa6b303([0x6a,0x7a,0x39,0x36,0x4a,0x6f,0x51,0x73,0x4e,0x6d,0x59,0x72,0x33,0x56,0x77,0x52,0x61,0x57,0x64,0x76,0x47,0x30,0x38,0x37,0x46,0x65,0x55,0x48,0x63,0x58,0x79,0x70,0x50,0x4d,0x6b,0x44,0x45,0x71,0x54,0x62,0x35,0x6e,0x69,0x68,0x31,0x42,0x32,0x75,0x49,0x4b,0x34,0x43,0x4c,0x41,0x4f,0x6c,0x67,0x5a,0x53,0x66,0x78,0x74]),_0x27a4d1=0x49377d70,_0x48fd5a=0x493026f8^_0x27a4d1,_0x526291=window[_0xa6b303([0x44,0x61,0x74,0x65])][_0xa6b303([0x6e,0x6f,0x77])](),_0x217465=_0x261028[_0xa6b303([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30639e=new window[(_0xa6b303([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c8c36=>{_0x217465[_0xa6b303([0x6f,0x6e,0x63,0x65])](_0xa6b303([0x72,0x65,0x61,0x64,0x79]),_0x3c8c36);}),_0x1ba2d5={[_0xa6b303([0x6b,0x74,0x79])]:_0xa6b303([0x45,0x43]),[_0xa6b303([0x75,0x73,0x65])]:_0xa6b303([0x73,0x69,0x67]),[_0xa6b303([0x63,0x72,0x76])]:_0xa6b303([0x50,0x2d,0x32,0x35,0x36]),[_0xa6b303([0x78])]:_0xa6b303([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]),[_0xa6b303([0x79])]:_0xa6b303([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]),[_0xa6b303([0x61,0x6c,0x67])]:_0xa6b303([0x45,0x53,0x32,0x35,0x36])},_0xe1710a=_0x217465[_0xa6b303([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa6b303([0x67,0x65,0x74])](_0xa6b303([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1e0489(){let _0x40c334,_0x3437f0=null,_0x2e798f=null;try{if(_0xe1710a==_0xa6b303([0x47,0x50,0x4c]))return _0xa6b303([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40c334=_0x1737dd(),!_0x40c334)return _0xa6b303([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40c334[_0xa6b303([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e798f=_0x266b7b(_0x40c334[_0xa6b303([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40c334[_0xa6b303([0x6a,0x74,0x69])])),await _0x22b9ca()?_0x3bfafe()?_0x4b46f5()?_0xa6b303([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x46588f()?(_0x40c334[_0xa6b303([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa6b303([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3437f0=_0x42ecd6(_0xa6b303([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x40c334[_0xa6b303([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa6b303([0x74,0x72,0x69,0x61,0x6c])&&(_0x3437f0=_0x42ecd6(_0xa6b303([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x40c334[_0xa6b303([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa6b303([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x3437f0=_0x42ecd6(_0xa6b303([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x349da7()):_0xa6b303([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa6b303([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa6b303([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xaeeb63){return _0xa6b303([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b46f5(){const _0x7dbe3e=[_0xa6b303([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa6b303([0x74,0x72,0x69,0x61,0x6c])][_0xa6b303([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40c334[_0xa6b303([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x526291/0x3e8:0xe10*_0x48fd5a;return _0x40c334[_0xa6b303([0x65,0x78,0x70])]<_0x7dbe3e;}function _0x3bfafe(){const _0x1dbcbb=_0x40c334[_0xa6b303([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1dbcbb)return!0x1;if(_0x1dbcbb[_0xa6b303([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6b303([0x2a])))return!0x0;if(_0x1dbcbb[_0xa6b303([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6b303([0x54,0x43])))return!0x0;if(_0x1dbcbb[_0xa6b303([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6b303([0x52,0x54,0x43]))){if(_0xed6ada())return!0x0;if(_0x39974a()||_0x3a5732())return!0x0;}return!0x1;}function _0x46588f(){const _0x4b4212=_0x40c334[_0xa6b303([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4b4212||0x0==_0x4b4212[_0xa6b303([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x248db6}=new URL(window[_0xa6b303([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4b4212[_0xa6b303([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248db6))return!0x0;const _0x479278=_0x248db6[_0xa6b303([0x73,0x70,0x6c,0x69,0x74])](_0xa6b303([0x2e]));return _0x4b4212[_0xa6b303([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c5388=>_0x1c5388[_0xa6b303([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6b303([0x2a])))[_0xa6b303([0x6d,0x61,0x70])](_0x3e353e=>_0x3e353e[_0xa6b303([0x73,0x70,0x6c,0x69,0x74])](_0xa6b303([0x2e])))[_0xa6b303([0x73,0x6f,0x6d,0x65])](_0x73683e=>_0x479278[_0xa6b303([0x65,0x76,0x65,0x72,0x79])]((_0x3ebadc,_0x33e643)=>_0x73683e[_0x33e643]===_0x3ebadc||_0x73683e[_0x33e643]===_0xa6b303([0x2a])));}function _0x349da7(){return _0x3437f0&&_0x2e798f?new window[(_0xa6b303([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x304966,_0x257dcc)=>{_0x3437f0[_0xa6b303([0x74,0x68,0x65,0x6e])](_0x304966,_0x257dcc),_0x2e798f[_0xa6b303([0x74,0x68,0x65,0x6e])](_0x18a021=>{_0x18a021!=_0xa6b303([0x56,0x61,0x6c,0x69,0x64])&&_0x304966(_0x18a021);},_0x257dcc);}):_0x3437f0||_0x2e798f||_0xa6b303([0x56,0x61,0x6c,0x69,0x64]);}}function _0x266b7b(_0x61482f,_0x5e9a18){return new window[(_0xa6b303([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ecc65=>{if(_0x5e1163())return _0x5ecc65(_0xa6b303([0x56,0x61,0x6c,0x69,0x64]));_0x5b975c(),_0x217465[_0xa6b303([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa6b303([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2dc36b=!0x1;const _0x5c7003=_0x476dad();function _0x43a4f8(_0x45fd42){return!!_0x45fd42&&(typeof _0x45fd42===_0xa6b303([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45fd42===_0xa6b303([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45fd42[_0xa6b303([0x74,0x68,0x65,0x6e])]===_0xa6b303([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45fd42[_0xa6b303([0x63,0x61,0x74,0x63,0x68])]===_0xa6b303([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28c2c3(_0x288e27){_0x2d53de(_0x288e27)[_0xa6b303([0x74,0x68,0x65,0x6e])](_0x2cab49=>{if(!_0x2cab49||_0x2cab49[_0xa6b303([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa6b303([0x6f,0x6b]))return _0xa6b303([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43f00a(_0x1d53cd(_0x5c7003+_0x5e9a18))!=_0x2cab49[_0xa6b303([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa6b303([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa6b303([0x56,0x61,0x6c,0x69,0x64]);})[_0xa6b303([0x74,0x68,0x65,0x6e])](_0x5c5e01=>(_0x6c2338(),_0x5c5e01),()=>{const _0x52ed92=_0x5e07e6();return null==_0x52ed92?(_0x6c2338(),_0xa6b303([0x56,0x61,0x6c,0x69,0x64])):_0xa6b303(_0x526291-_0x52ed92>(0x6d3bf970^_0x27a4d1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa6b303([0x74,0x68,0x65,0x6e])](_0x5ecc65)[_0xa6b303([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ecc65(_0xa6b303([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x9eda86=0x490193f0^_0x27a4d1;function _0x6c2338(){const _0x1080a4=_0xa6b303([0x6c,0x6c,0x63,0x74,0x2d])+_0x43f00a(_0x1d53cd(_0x61482f)),_0x1a73b7=_0x255ad5(_0x43f00a(window[_0xa6b303([0x4d,0x61,0x74,0x68])][_0xa6b303([0x63,0x65,0x69,0x6c])](_0x526291/_0x9eda86)));window[_0xa6b303([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa6b303([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1080a4,_0x1a73b7);}function _0x5e07e6(){const _0xd6f442=_0xa6b303([0x6c,0x6c,0x63,0x74,0x2d])+_0x43f00a(_0x1d53cd(_0x61482f)),_0x432464=window[_0xa6b303([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa6b303([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd6f442);return _0x432464?window[_0xa6b303([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x255ad5(_0x432464),0x10)*_0x9eda86:null;}function _0x2d53de(_0x2fb790){return new window[(_0xa6b303([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d8284,_0x1706ea)=>{_0x2fb790[_0xa6b303([0x74,0x68,0x65,0x6e])](_0x1d8284,_0x1706ea),window[_0xa6b303([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1706ea,0x4936a9b0^_0x27a4d1);});}}_0x217465[_0xa6b303([0x6f,0x6e])](_0xa6b303([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x91b48f,_0x545df6)=>{if(_0x545df6[0x0]!=_0x61482f)return _0x5ecc65(_0xa6b303([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x545df6[0x1]={..._0x545df6[0x1],[_0xa6b303([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c7003};},{[_0xa6b303([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa6b303([0x68,0x69,0x67,0x68])}),_0x217465[_0xa6b303([0x6f,0x6e])](_0xa6b303([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53d727=>{_0x43a4f8(_0x53d727[_0xa6b303([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2dc36b=!0x0,_0x28c2c3(_0x53d727[_0xa6b303([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa6b303([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa6b303([0x6c,0x6f,0x77])}),_0x30639e[_0xa6b303([0x74,0x68,0x65,0x6e])](()=>{_0x2dc36b||_0x5ecc65(_0xa6b303([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e1163(){return _0x217465[_0xa6b303([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa6b303([0x76,0x69,0x65,0x77])][_0xa6b303([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa6b303([0x61,0x75,0x74,0x6f]);}function _0x5b975c(){_0x217465[_0xa6b303([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa6b303([0x76,0x69,0x65,0x77])][_0xa6b303([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa6b303([0x61,0x75,0x74,0x6f]);}}function _0x42ecd6(_0x5f3e1e){const _0x7d424c=[new window[(_0xa6b303([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aac84=>setTimeout(_0x4aac84,0x493e43bc^_0x27a4d1)),_0x30639e[_0xa6b303([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa6b303([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41f6d6=>{let _0x5eff17=0x0;_0x217465[_0xa6b303([0x6d,0x6f,0x64,0x65,0x6c])][_0xa6b303([0x6f,0x6e])](_0xa6b303([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x399926,_0x35aeb0)=>{_0x35aeb0[0x0][_0xa6b303([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5eff17++,_0x5eff17==(0x49377c88^_0x27a4d1)&&(_0x41f6d6(),_0x399926[_0xa6b303([0x6f,0x66,0x66])]());});}))];return window[_0xa6b303([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa6b303([0x72,0x61,0x63,0x65])](_0x7d424c)[_0xa6b303([0x74,0x68,0x65,0x6e])](()=>_0x5f3e1e);}async function _0xcdb838(){await _0x30639e,_0x217465[_0xa6b303([0x6d,0x6f,0x64,0x65,0x6c])][_0xa6b303([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f1b7a,_0x217465[_0xa6b303([0x6d,0x6f,0x64,0x65,0x6c])][_0xa6b303([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f1b7a,_0x217465[_0xa6b303([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa6b303([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xed6ada(){return _0x5358e1(_0xa6b303([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x33d2a3(_0xa6b303([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xa6b303([0x73,0x74,0x61,0x74,0x65])]==_0xa6b303([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x39974a(){return _0x5358e1(_0xa6b303([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 _0x3a5732(){return _0x5358e1(_0xa6b303([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1fa727(_0x145f41){const _0x3714d8=_0x3de097();_0x217465[_0x3714d8]=_0xa6b303([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x145f41,_0x145f41!=_0xa6b303([0x56,0x61,0x6c,0x69,0x64])&&_0xcdb838();}function _0x3de097(){const _0x4b2faf=window[_0xa6b303([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa6b303([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa6b303([0x6e,0x6f,0x77])]())[_0xa6b303([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa6b303([0x2e]),'');let _0x2ea9b9=_0xa6b303([0x6a]);for(let _0x24aef0=0x0;_0x24aef0<_0x4b2faf[_0xa6b303([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24aef0+=0x2){let _0x2ef8e0=window[_0xa6b303([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b2faf[_0xa6b303([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24aef0,_0x24aef0+0x2));_0x2ef8e0>=_0x55b716[_0xa6b303([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ef8e0-=_0x55b716[_0xa6b303([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ea9b9+=_0x55b716[_0x2ef8e0];}return _0x2ea9b9;}function _0x1737dd(){const _0x30c7bc=_0xe1710a[_0xa6b303([0x73,0x70,0x6c,0x69,0x74])](_0xa6b303([0x2e]));if(0x3!=_0x30c7bc[_0xa6b303([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x21ddb8(_0x30c7bc[0x1]);function _0x21ddb8(_0x43822e){const _0x17811a=_0x4877c4(_0x43822e);return _0x17811a&&_0xbe04c4()?_0x17811a:null;function _0xbe04c4(){const _0x14a9db=_0x17811a[_0xa6b303([0x6a,0x74,0x69])],_0x53e919=window[_0xa6b303([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14a9db[_0xa6b303([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14a9db[_0xa6b303([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xe689f1={..._0x17811a,[_0xa6b303([0x6a,0x74,0x69])]:_0x14a9db[_0xa6b303([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x14a9db[_0xa6b303([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xe689f1[_0xa6b303([0x76,0x63])],_0x1d53cd(_0xe689f1)==_0x53e919;}}}async function _0x22b9ca(){let _0x396c82=!0x0;try{const _0x3311cb=_0xe1710a[_0xa6b303([0x73,0x70,0x6c,0x69,0x74])](_0xa6b303([0x2e])),[_0x3aca4f,_0x4b9d8c,_0xef61ce]=_0x3311cb;return _0x1214f9(_0x3aca4f),await _0x5d439c(_0x3aca4f,_0x4b9d8c,_0xef61ce),_0x396c82;}catch(_0x4f25cf){return!0x1;}function _0x1214f9(_0x185cd9){const _0x51e5b2=_0x4877c4(_0x185cd9);_0x51e5b2&&_0x51e5b2[_0xa6b303([0x61,0x6c,0x67])]==_0xa6b303([0x45,0x53,0x32,0x35,0x36])||(_0x396c82=!0x1);}async function _0x5d439c(_0x14e5ea,_0x359439,_0x5a60c3){const _0x56e32f=window[_0xa6b303([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa6b303([0x66,0x72,0x6f,0x6d])](_0xbc7b8(_0x5a60c3),_0x3d6431=>_0x3d6431[_0xa6b303([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x26e2d9=new window[(_0xa6b303([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa6b303([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14e5ea+_0xa6b303([0x2e])+_0x359439),_0x3f36f9=window[_0xa6b303([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa6b303([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f36f9)return;const _0x378c40=await _0x3f36f9[_0xa6b303([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa6b303([0x6a,0x77,0x6b]),_0x1ba2d5,{[_0xa6b303([0x6e,0x61,0x6d,0x65])]:_0xa6b303([0x45,0x43,0x44,0x53,0x41]),[_0xa6b303([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa6b303([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa6b303([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f36f9[_0xa6b303([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa6b303([0x6e,0x61,0x6d,0x65])]:_0xa6b303([0x45,0x43,0x44,0x53,0x41]),[_0xa6b303([0x68,0x61,0x73,0x68])]:{[_0xa6b303([0x6e,0x61,0x6d,0x65])]:_0xa6b303([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x378c40,_0x56e32f,_0x26e2d9)||(_0x396c82=!0x1);}}function _0x4877c4(_0xa8d5ff){return _0xa8d5ff[_0xa6b303([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa6b303([0x65,0x79]))?JSON[_0xa6b303([0x70,0x61,0x72,0x73,0x65])](_0xbc7b8(_0xa8d5ff)):null;}function _0xbc7b8(_0x183584){return window[_0xa6b303([0x61,0x74,0x6f,0x62])](_0x183584[_0xa6b303([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa6b303([0x2b]))[_0xa6b303([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa6b303([0x2f])));}function _0x1d53cd(_0xb85ed6){let _0x1620ae=0x1505;function _0x4e45ed(_0x552467){for(let _0x40a794=0x0;_0x40a794<_0x552467[_0xa6b303([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40a794++){const _0x451262=_0x552467[_0xa6b303([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40a794);_0x1620ae=(_0x1620ae<<0x5)+_0x1620ae+_0x451262,_0x1620ae&=_0x1620ae;}}function _0xaf66ce(_0x302ffd){Array[_0xa6b303([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x302ffd)?_0x302ffd[_0xa6b303([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xaf66ce):_0x302ffd&&typeof _0x302ffd==_0xa6b303([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa6b303([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x302ffd)[_0xa6b303([0x73,0x6f,0x72,0x74])]()[_0xa6b303([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7dba35,_0x2ef1d2])=>{_0x4e45ed(_0x7dba35),_0xaf66ce(_0x2ef1d2);}):_0x4e45ed(window[_0xa6b303([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x302ffd));}return _0xaf66ce(_0xb85ed6),_0x1620ae>>>0x0;}function _0x43f00a(_0x48b376){return _0x48b376[_0xa6b303([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa6b303([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa6b303([0x30]));}function _0x255ad5(_0x310b0a){return _0x310b0a[_0xa6b303([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa6b303([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa6b303([0x6a,0x6f,0x69,0x6e])]('');}function _0x5358e1(_0x434d75){return _0x217465[_0xa6b303([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa6b303([0x68,0x61,0x73])](_0x434d75);}function _0x33d2a3(_0x5ab9cc){return _0x217465[_0xa6b303([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa6b303([0x67,0x65,0x74])](_0x5ab9cc);}function _0x3f1b7a(){}function _0xa6b303(_0x5cb729){return _0x5cb729['map'](_0x1c94c5=>String['fromCharCode'](_0x1c94c5))['join']('');}_0x1fa727(await _0x1e0489());}(this);}set['adapter'](_0x16233e){if(this['_adapter'])throw new _0xcd3701('track-changes-adapter-already-set',this);this['_adapter']=_0x16233e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x42a3f7=!0x1,toJSON:_0x87b8fa=!0x1}={}){const _0x2c2836=[];for(const _0x8be4cc of this['_suggestions']['values']())_0x42a3f7&&!_0x8be4cc['isInContent']||_0x2c2836['push'](_0x8be4cc);return _0x87b8fa?_0x2c2836['map'](_0x1ae4c8=>_0x1ae4c8['toJSON']()):_0x2c2836;}['getSuggestion'](_0x3f6655){const _0x5acb9e=this['_suggestions']['get'](_0x3f6655);if(!_0x5acb9e)throw new _0xcd3701('track-changes-suggestion-not-found',this);return _0x5acb9e;}['hasSuggestion'](_0x47d783){return this['_suggestions']['has'](_0x47d783);}['addSuggestionData'](_0x265734){const {authorId:_0xc15c35,id:_0x390e6f,attributes:_0x9eee8c}=_0x265734,[_0x2a3937,_0x37ebc1]=_0x265734['type']['split'](':'),_0x5545e4=this['_suggestions']['get'](_0x390e6f)||this['_createSuggestion'](_0x2a3937,_0x37ebc1,_0x390e6f,_0xc15c35,_0x9eee8c);if(this['_addThreadToSuggestion'](_0x5545e4),this['_checkSuggestionCorrectness'](_0x5545e4,_0x2a3937,_0x37ebc1||null,_0xc15c35),_0x5545e4['createdAt']=_0x265734['createdAt'],_0x5545e4['_isDataLoaded']=!0x0,_0x9eee8c&&_0x9eee8c['@external']){const _0x4a670d=_0x9eee8c['@external'],_0x3fba9f=this['_getExternalAuthor'](_0x4a670d['authorName']);_0x5545e4['authoredAt']=_0x4a670d['createdAt'],_0x5545e4['author']=_0x3fba9f,_0x5545e4['isExternal']=!0x0;}else _0x5545e4['authoredAt']=_0x265734['createdAt'];switch(_0x265734['data']&&(_0x5545e4['data']=_0x265734['data']),_0x265734['attributes']&&(_0x5545e4['attributes']=_0x265734['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5545e4['_saved']=!0x0),this['_suggestionState']['get'](_0x5545e4)){case'notReady':this['_suggestionState']['set'](_0x5545e4,'dataReady');break;case'markerReady':_0x5545e4['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5545e4])),this['_refreshSuggestionsChain'](new Set([_0x5545e4])),this['_suggestionState']['set'](_0x5545e4,'ready'),this['fire']('suggestionLoaded',_0x5545e4)):this['_suggestionState']['set'](_0x5545e4,'removed');}return _0x5545e4;}['acceptSuggestion'](_0x131e3b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x34b50c of _0x131e3b['getAllAdjacentSuggestions']())_0x34b50c['accept']();});});}['discardSuggestion'](_0x7bc82e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1739f1 of _0x7bc82e['getAllAdjacentSuggestions']())_0x1739f1['discard']();});});}['enableCommand'](_0x361c2c,_0x5e7cc6){const _0x361db6=this['editor']['commands']['get'](_0x361c2c);if(!_0x361db6)throw new _0xcd3701('track-changes-command-not-found',this,{'commandName':_0x361c2c});if(this['_enabledCommands']['has'](_0x361db6))throw new _0xcd3701('track-changes-enable-command-twice',this,{'commandName':_0x361c2c});this['_enabledCommands']['add'](_0x361db6),_0x5e7cc6&&_0x361db6['on']('execute',(_0x3a02ed,_0x2e9959)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2e9959['length']>0x0&&_0x2e9959[_0x2e9959['length']-0x1]&&_0x2e9959[_0x2e9959['length']-0x1]['forceDefaultExecution']?_0x2e9959['pop']():(_0x3a02ed['return']=_0x5e7cc6((..._0x3a347f)=>_0x361db6['execute'](..._0x3a347f,{'forceDefaultExecution':!0x0}),..._0x2e9959),_0x3a02ed['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3059af){let _0x3dcfd2,_0x7c8a53;const _0x3b75ce=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3dcfd2=_0x3059af();}catch(_0x28e2bb){_0x7c8a53=_0x28e2bb;}return _0x3b75ce||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x7c8a53&&_0xcd3701['rethrowUnexpectedError'](_0x7c8a53,this),_0x3dcfd2;}['markInsertion'](_0x1c428a,_0x2e2935=null,_0x5aa19d={}){if(_0x1c428a['isCollapsed'])return null;const _0x3a08b7=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3c1de4,meta:_0x48f3f7}of this['_findSuggestions'](_0x1c428a,'insertion'))if(_0x48f3f7['isOwn']){if(!_0x48f3f7['isNextTo']){if(_0x48f3f7['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x3c1de4,_0x5aa19d))continue;return _0x3c1de4;}if(zt(_0x3c1de4,_0x5aa19d))return _0x3c1de4;this['_breakSuggestionMarker'](_0x3c1de4,_0x1c428a['start'],_0x1c428a['end']);break;}if(_0x2e2935==_0x3c1de4['subType']&&zt(_0x3c1de4,_0x5aa19d)){const _0x3828c7=_0x3c1de4['getFirstRange']();return _0x3828c7['start']['isEqual'](_0x1c428a['end'])?this['_setSuggestionRange'](_0x3c1de4,this['_model']['createRange'](_0x1c428a['start'],_0x3828c7['end'])):this['_setSuggestionRange'](_0x3c1de4,this['_model']['createRange'](_0x3828c7['start'],_0x1c428a['end'])),_0x3c1de4;}}const _0x3c0851=_0x476dad(),_0x3c7c73=_0x3a08b7['id'],_0xd76d4e=_0x2e2935?'insertion:'+_0x2e2935:'insertion',_0x458a10=this['_setSuggestionData']({'id':_0x3c0851,'type':_0xd76d4e,'createdAt':new Date(),'authorId':_0x3c7c73,'attributes':_0x5aa19d});return this['_addSuggestionMarker'](_0xd76d4e,_0x3c0851,_0x3c7c73,_0x1c428a),_0x458a10;}['markMultiRangeInsertion'](_0x243af4,_0x30cf4d='multi',_0xbe0830={}){const _0x28bccb=this['editor']['plugins']['get']('Users')['me'],_0x6fc255=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x30cf4d,'join');for(const _0x15c00d of this['getSuggestions']())if(_0x15c00d['author']['id']==_0x28bccb['id']&&'insertion'==_0x15c00d['type']&&_0x15c00d['subType']==_0x30cf4d&&zt(_0x15c00d,_0xbe0830)&&(_0x6fc255(_0x15c00d['getRanges'](),_0x243af4)||_0x6fc255(_0x243af4,_0x15c00d['getRanges']()))){for(const _0x58c664 of _0x243af4)_0x15c00d['addRange'](_0x58c664);return _0x15c00d;}for(const {suggestion:_0x5a56e1,meta:_0x3e19d3}of this['_findSuggestions'](_0x243af4,'insertion')){if(!_0x3e19d3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3e19d3['containsRangeInObject'])continue;if(!zt(_0x5a56e1,_0xbe0830))continue;let _0x5b5b84=!0x0;for(const _0x395e48 of _0x5a56e1['getRanges']())for(const _0x110f71 of _0x243af4)if(!_0x395e48['containsRange'](_0x110f71)){_0x5b5b84=!0x1;break;}if(_0x5b5b84)return _0x5a56e1;}const _0x283179=_0x476dad(),_0x4306be=_0x28bccb['id'],_0x3c4305='insertion:'+_0x30cf4d,_0x2e7aa6=this['_setSuggestionData']({'id':_0x283179,'type':_0x3c4305,'createdAt':new Date(),'authorId':_0x4306be,'attributes':_0xbe0830});for(const _0x5250a5 of _0x243af4)this['_addSuggestionMarker'](_0x3c4305,_0x283179,_0x4306be,_0x5250a5,u['getMultiRangeId']());return _0x2e7aa6;}['markInlineFormat'](_0xe20ee3,_0x237fb6,_0x2ac31e=null,_0xc16681={}){if(_0x2ac31e=_0x2ac31e||Gt(_0x237fb6),_0xe20ee3['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x417602=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2ac31e,'accept');return this['forceDefaultExecution'](()=>_0x417602([_0xe20ee3],_0x237fb6,_0xc16681)),null;}const _0x570d83=this['editor']['plugins']['get']('Users')['me'],_0x4ff34e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x46d774,meta:_0x4d56f3}of this['_findSuggestions'](_0xe20ee3,'insertion'))_0x4d56f3['isOwn']&&!_0x4d56f3['isInsideObject']&&_0x4ff34e['push'](..._0x46d774['getRanges']());}const _0xa1536a=function(_0x5efb34,_0x4b1e5e){const _0x58981b=[];for(const _0x3a4e75 of _0x4b1e5e){const _0x25708e=_0x5efb34['getIntersection'](_0x3a4e75);_0x25708e&&_0x58981b['push'](_0x25708e);}return _0x58981b;}(_0xe20ee3,_0x4ff34e),_0x3799f5=function(_0x185b45,_0x1734d7){const _0xbb8f23=[_0x185b45];for(const _0x7bd9d9 of _0x1734d7){let _0x1697d1=0x0;for(;_0x1697d1<_0xbb8f23['length'];){const _0x545f9a=_0xbb8f23[_0x1697d1]['getDifference'](_0x7bd9d9);_0xbb8f23['splice'](_0x1697d1,0x1,..._0x545f9a),_0x1697d1+=_0x545f9a['length'];}}return _0xbb8f23;}(_0xe20ee3,_0x4ff34e);_0xa1536a['length']&&this['_model']['change'](()=>{for(const _0x3b23be of _0xa1536a){const _0x4c50b6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2ac31e,'accept');this['forceDefaultExecution'](()=>_0x4c50b6([_0x3b23be],_0x237fb6,_0xc16681));}});for(const _0x33cef0 of _0x3799f5){let _0x353f20=null,_0x5e73e2=_0x33cef0['start'],_0x4e0e42=_0x33cef0['end'];for(const {suggestion:_0x2e8296,meta:_0x2bda38}of this['_findSuggestions'](_0x33cef0,'formatInline')){if(!_0x2bda38['isOwn'])continue;if(_0x2e8296['subType']!=_0x2ac31e)continue;if(!zt(_0x2e8296,_0xc16681))continue;const _0xbc50f4=_0x2e8296['getFirstRange']();if(_0xbc50f4['containsRange'](_0x33cef0,!0x0))return null;_0x5e73e2=_0x5e73e2['isBefore'](_0xbc50f4['start'])?_0x5e73e2:_0xbc50f4['start'],_0x4e0e42=_0x4e0e42['isAfter'](_0xbc50f4['end'])?_0x4e0e42:_0xbc50f4['end'],_0x353f20?_0xbc50f4['start']['isBefore'](_0x353f20['getFirstRange']()['start'])?(_0x353f20['removeMarkers'](),_0x353f20=_0x2e8296):_0x2e8296['removeMarkers']():_0x353f20=_0x2e8296;}const _0xce363c=this['_model']['createRange'](_0x5e73e2,_0x4e0e42);if(_0x353f20)this['_setSuggestionRange'](_0x353f20,_0xce363c);else{const _0x35eed5=_0x476dad(),_0x5a8001=_0x570d83['id'];this['_setSuggestionData']({'id':_0x35eed5,'type':'formatInline:'+_0x2ac31e,'data':_0x237fb6,'createdAt':new Date(),'authorId':_0x5a8001,'attributes':_0xc16681}),this['_addSuggestionMarker']('formatInline:'+_0x2ac31e,_0x35eed5,_0x5a8001,_0xce363c);}}return null;}['markBlockFormat'](_0x17b3a6,_0x56cead,_0x2999a7=[],_0x3e4ba9=null,_0xe845fb={}){_0x56cead['formatGroupId']||(_0x56cead['formatGroupId']=_0x56cead['commandName']),_0x56cead['multipleBlocks']=_0x17b3a6['is']('range'),_0x3e4ba9=_0x3e4ba9||Gt(_0x56cead);const _0x1da9b5=_0x2999a7['map'](_0x25ed63=>Jt(_0x25ed63,this['_model'])),_0x104eaf=_0x17b3a6['is']('range')?_0x17b3a6:Jt(_0x17b3a6,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4f8df8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e4ba9,'accept');return this['forceDefaultExecution'](()=>_0x4f8df8([_0x104eaf],_0x56cead,_0xe845fb)),null;}_0x1da9b5['push'](_0x104eaf);let _0x7b49fc=!0x0;for(const _0xee2c75 of _0x1da9b5)if(!this['_rangeIsInLocalUserInsertion'](_0xee2c75)){_0x7b49fc=!0x1;break;}if(_0x7b49fc&&'always'!==this['_trackFormatChanges']){const _0x54dd94=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e4ba9,'accept');return this['forceDefaultExecution'](()=>_0x54dd94([_0x104eaf],_0x56cead,_0xe845fb)),null;}let _0x31daf5=null,_0x5a3456=_0x104eaf['start'],_0x439c40=_0x104eaf['end'];for(const {suggestion:_0x5b9fe4,meta:_0x31a1c1}of this['_findSuggestions'](_0x104eaf,'formatBlock')){if(!_0x31a1c1['isOwn'])continue;if(_0x31a1c1['isNextTo']||_0x31a1c1['containsRangeInObject']||_0x31a1c1['isInsideObject'])continue;if(_0x5b9fe4['data']['formatGroupId']!=_0x56cead['formatGroupId'])continue;if(!zt(_0x5b9fe4,_0xe845fb))continue;const _0x321e39=_0x5b9fe4['getFirstRange']();if(_0x5b9fe4['subType']==_0x3e4ba9){if(_0x321e39['containsRange'](_0x104eaf,!0x0))return null;_0x5a3456=_0x5a3456['isBefore'](_0x321e39['start'])?_0x5a3456:_0x321e39['start'],_0x439c40=_0x439c40['isAfter'](_0x321e39['end'])?_0x439c40:_0x321e39['end'],_0x31daf5?_0x321e39['start']['isBefore'](_0x31daf5['getFirstRange']()['start'])?(_0x31daf5['removeMarkers'](),_0x31daf5=_0x5b9fe4):_0x5b9fe4['removeMarkers']():_0x31daf5=_0x5b9fe4;}else{const _0x3d3900=_0x104eaf['getIntersection'](_0x321e39);this['_cutOutSuggestionMarker'](_0x5b9fe4,_0x3d3900);}}const _0x4b55eb=this['editor']['plugins']['get']('Users')['me'],_0x164656=_0x476dad(),_0x5adb9c=_0x4b55eb['id'];if(_0x31daf5)return this['_setSuggestionRange'](_0x31daf5,this['_model']['createRange'](_0x5a3456,_0x439c40)),_0x31daf5;{const _0x548f94=this['_setSuggestionData']({'id':_0x164656,'type':'formatBlock:'+_0x3e4ba9,'data':_0x56cead,'createdAt':new Date(),'authorId':_0x5adb9c,'attributes':_0xe845fb});return this['_addSuggestionMarker']('formatBlock:'+_0x3e4ba9,_0x164656,_0x5adb9c,this['_model']['createRange'](_0x5a3456,_0x439c40)),_0x548f94;}}['markMultiRangeBlockFormat'](_0xb1cdb6,_0x46ac65,_0x4f2c01=[],_0x90908b=null,_0x416bbc={}){_0x46ac65['formatGroupId']||(_0x46ac65['formatGroupId']=_0x46ac65['commandName']);const _0x59d4ab=_0xb1cdb6[0x0];_0x46ac65['multipleBlocks']=_0x59d4ab['is']('range'),_0x90908b=_0x90908b||Gt(_0x46ac65);const _0x53dc58=_0x4f2c01['map'](_0x4f4020=>Jt(_0x4f4020,this['_model'])),_0xf7b2bc=_0x59d4ab['is']('range')?_0xb1cdb6:_0xb1cdb6['map'](_0x475775=>Jt(_0x475775,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5e366b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x90908b,'accept');return this['forceDefaultExecution'](()=>_0x5e366b(_0xf7b2bc,_0x46ac65,_0x416bbc)),null;}_0x53dc58['push'](..._0xf7b2bc);let _0x4bd326=!0x0;for(const _0x1bb162 of _0x53dc58)if(!this['_rangeIsInLocalUserInsertion'](_0x1bb162)){_0x4bd326=!0x1;break;}if(_0x4bd326&&'always'!==this['_trackFormatChanges']){const _0x3ff8f8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x90908b,'accept');return this['forceDefaultExecution'](()=>_0x3ff8f8(_0xf7b2bc,_0x46ac65,_0x416bbc)),null;}const _0x39e351=this['editor']['plugins']['get']('Users')['me'];for(const _0x390703 of this['getSuggestions']()){if(_0x390703['author']['id']!=_0x39e351['id'])continue;if('formatBlock'!=_0x390703['type']||_0x390703['data']['formatGroupId']!=_0x46ac65['formatGroupId'])continue;if(!zt(_0x390703,_0x416bbc))continue;const _0x2bdd64=_0x390703['subType']==_0x90908b;for(let _0x2734e8=0x0;_0x2734e8<_0xf7b2bc['length'];_0x2734e8++){const _0x518d67=_0xf7b2bc[_0x2734e8];for(const _0x1f540a of _0x390703['getMarkers']()){const _0x3419ee=_0x1f540a['getRange']();if(_0x518d67['isEqual'](_0x3419ee)){_0x2bdd64?(_0xf7b2bc['splice'](_0x2734e8,0x1),_0x2734e8--):_0x390703['removeMarker'](_0x1f540a['name']);break;}}}}if(0x0==_0xf7b2bc['length'])return null;const _0x491887=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x90908b,'join');for(const _0x2de541 of this['getSuggestions']())if(_0x2de541['author']['id']==_0x39e351['id']&&'formatBlock'==_0x2de541['type']&&_0x2de541['data']['formatGroupId']==_0x46ac65['formatGroupId']&&_0x2de541['subType']==_0x90908b&&zt(_0x2de541,_0x416bbc)&&(_0x491887(_0x2de541['getRanges'](),_0xf7b2bc)||_0x491887(_0xf7b2bc,_0x2de541['getRanges']()))){for(const _0x1e61f0 of _0xf7b2bc)_0x2de541['addRange'](_0x1e61f0);return _0x2de541;}const _0x49e3ca=_0x476dad(),_0x2ba302=_0x39e351['id'],_0x20d066='formatBlock:'+_0x90908b,_0x58ffac=this['_setSuggestionData']({'id':_0x49e3ca,'type':_0x20d066,'data':_0x46ac65,'createdAt':new Date(),'authorId':_0x2ba302,'attributes':_0x416bbc});for(const _0x252027 of _0xf7b2bc)this['_addSuggestionMarker'](_0x20d066,_0x49e3ca,_0x2ba302,_0x252027,u['getMultiRangeId']());return _0x58ffac;}['markDeletion'](_0x437654,_0x1f8160=null,_0x1d09d7={}){if(_0x437654['isCollapsed'])return null;const _0x16c3fb=this['editor']['plugins']['get']('Users')['me'],_0x1066c2=new _0x22f529(_0x437654['start'],_0x437654['end']);for(const {suggestion:_0x28e987,meta:_0x5822d3}of this['_findSuggestions'](_0x1066c2,'insertion'))if(_0x5822d3['isOwn']&&!_0x5822d3['isNextTo']){if(_0x28e987['isMultiRange']){const _0x447ab9=_0x28e987['getRanges']()['filter'](_0x521ac9=>'$graveyard'!=_0x521ac9['root']['rootName']);_0x447ab9['every'](_0x554762=>_0x1066c2['containsRange'](_0x554762,!0x0))&&_0x28e987['discard']();if(_0x447ab9['some'](_0x292093=>_0x292093['containsRange'](_0x1066c2,!0x0))){const _0x37b66f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1f8160,'accept');return this['forceDefaultExecution'](()=>_0x37b66f([_0x1066c2],null,_0x1d09d7)),null;}}else{const _0x3f8640=_0x1066c2['getIntersection'](_0x28e987['getFirstRange']());null!==_0x3f8640&&_0x28e987['_onDiscard']([_0x3f8640],null,_0x1d09d7);}}if(_0x1066c2['detach'](),_0x1066c2['isCollapsed']||'$graveyard'==_0x1066c2['root']['rootName'])return null;let _0x156da9=null,_0x6326d3=_0x1066c2['start'],_0x1040e4=_0x1066c2['end'];const _0x3cf442=this['_findSuggestions'](_0x1066c2,'deletion');for(const {suggestion:_0x30883d,meta:_0x115eb9}of _0x3cf442){const _0x493b89=this['_model']['createRange'](_0x6326d3,_0x1040e4);if(_0x115eb9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x115eb9['containsRangeInObject']&&!_0x115eb9['isInsideObject'])){if(_0x30883d['isMultiRange']){if(!zt(_0x30883d,_0x1d09d7))continue;let _0x2bef5e=!0x0;for(const _0x44c3bb of _0x30883d['getRanges']()){if(_0x44c3bb['containsRange'](_0x493b89,!0x0))return _0x30883d;_0x493b89['containsRange'](_0x44c3bb)||(_0x2bef5e=!0x1);}_0x2bef5e&&_0x30883d['discard']();}else{const _0x3b60ec=_0x30883d['getFirstRange']();if(_0x3b60ec['containsRange'](_0x493b89,!0x0))return _0x30883d;if(!zt(_0x30883d,_0x1d09d7)){_0x493b89['containsRange'](_0x3b60ec)?_0x30883d['removeMarkers']():_0x3b60ec['containsPosition'](_0x6326d3)?_0x6326d3=_0x3b60ec['end']:_0x3b60ec['containsPosition'](_0x1040e4)&&(_0x1040e4=_0x3b60ec['start']);continue;}_0x6326d3=_0x6326d3['isBefore'](_0x3b60ec['start'])?_0x6326d3:_0x3b60ec['start'],_0x1040e4=_0x1040e4['isAfter'](_0x3b60ec['end'])?_0x1040e4:_0x3b60ec['end'],_0x1d09d7=Object['assign']({},_0x30883d['attributes']),_0x156da9?_0x3b60ec['start']['isBefore'](_0x156da9['getFirstRange']()['start'])?(_0x156da9['removeMarkers'](),_0x156da9=_0x30883d):_0x30883d['removeMarkers']():_0x156da9=_0x30883d;}}}if(_0x156da9)return this['_setSuggestionRange'](_0x156da9,this['_model']['createRange'](_0x6326d3,_0x1040e4)),_0x156da9;{const _0x32ae1d=_0x476dad(),_0x411874=this['_model']['createRange'](_0x6326d3,_0x1040e4),_0x4f27c9=_0x16c3fb['id'],_0x415e96=_0x1f8160?'deletion:'+_0x1f8160:'deletion',_0x39370d=this['_setSuggestionData']({'id':_0x32ae1d,'type':_0x415e96,'createdAt':new Date(),'authorId':_0x4f27c9,'attributes':_0x1d09d7});return this['_addSuggestionMarker'](_0x415e96,_0x32ae1d,_0x4f27c9,_0x411874),_0x39370d;}}['markMultiRangeDeletion'](_0x58f9cd,_0x5adbf1='multi',_0x48095e={}){const _0x48628f=this['editor']['plugins']['get']('Users')['me'],_0x229edb=_0x58f9cd['map'](_0x28e4c8=>new _0x22f529(_0x28e4c8['start'],_0x28e4c8['end'])),_0x9a20f9=new Set();for(const {suggestion:_0x21e7c4,meta:_0x4688aa}of this['_findSuggestions'](_0x229edb,'insertion'))_0x4688aa['isOwn']&&!_0x4688aa['isNextTo']&&_0x9a20f9['add'](_0x21e7c4);for(const _0x1c1787 of _0x9a20f9)if(_0x1c1787['isMultiRange']){const _0x54e433=_0x1c1787['getRanges']();(!_0x1c1787['attributes']||!_0x1c1787['attributes']['skipNestingCheck'])&&(_0x54e433['every'](_0x1b669b=>_0x229edb['some'](_0x531fe7=>_0x531fe7['containsRange'](_0x1b669b,!0x0)))&&_0x1c1787['discard']());if(_0x229edb['every'](_0xe363a1=>_0x54e433['some'](_0x10a757=>_0x10a757['containsRange'](_0xe363a1,!0x0)))){const _0x522076=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5adbf1,'accept');return this['forceDefaultExecution'](()=>_0x522076(_0x58f9cd,null,_0x48095e)),null;}}else{const _0x260b53=_0x1c1787['getFirstRange']();_0x229edb['some'](_0x298223=>_0x298223['containsRange'](_0x260b53,!0x0))&&_0x1c1787['discard']();if(_0x229edb['every'](_0x97e661=>_0x260b53['containsRange'](_0x97e661,!0x0))){const _0x1c2d0f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5adbf1,'accept');return this['forceDefaultExecution'](()=>_0x1c2d0f(_0x229edb,null,_0x48095e)),null;}}const _0x260969=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5adbf1,'join');let _0x50691f=null;for(const _0x50b66f of this['getSuggestions']())if(_0x50b66f['author']['id']==_0x48628f['id']&&_0x50b66f['isInContent']&&'deletion'==_0x50b66f['type']&&_0x50b66f['subType']==_0x5adbf1&&zt(_0x50b66f,_0x48095e)&&(_0x260969(_0x50b66f['getRanges'](),_0x229edb)||_0x260969(_0x229edb,_0x50b66f['getRanges']()))){if(_0x50691f){if(_0x50b66f['commentThread']&&_0x50b66f['commentThread']['length'])continue;for(const _0x3bb79c of _0x50b66f['getRanges']())_0x50691f['isIntersectingWithRange'](_0x3bb79c)||_0x50691f['addRange'](_0x3bb79c);_0x50b66f['removeMarkers']();}else{_0x50691f=_0x50b66f;for(const _0x481b77 of _0x229edb)_0x50b66f['isIntersectingWithRange'](_0x481b77)||_0x50b66f['addRange'](_0x481b77);}}if(_0x50691f)return _0x50691f;_0x9a20f9['clear']();for(const {suggestion:_0x538b71,meta:_0x393694}of this['_findSuggestions'](_0x229edb,'deletion'))_0x393694['isOwn']&&(this['_mergeNestedSuggestions']||!_0x393694['containsRangeInObject']&&!_0x393694['isInsideObject'])&&zt(_0x538b71,_0x48095e)&&_0x9a20f9['add'](_0x538b71);for(const _0x29b79d of _0x9a20f9){const _0x28ff73=_0x29b79d['getRanges']();if(!_0x48095e||!_0x48095e['skipNestingCheck']){if(_0x229edb['every'](_0x36dcf7=>_0x28ff73['some'](_0x3971aa=>_0x3971aa['containsRange'](_0x36dcf7,!0x0))))return _0x29b79d;}(!_0x29b79d['attributes']||!_0x29b79d['attributes']['skipNestingCheck'])&&(_0x28ff73['every'](_0x113f34=>_0x229edb['some'](_0x9b5f97=>_0x9b5f97['containsRange'](_0x113f34,!0x0)))&&_0x29b79d['discard']());}const _0x2e58ca=_0x476dad(),_0x2295f1=_0x48628f['id'],_0x5ee3ea='deletion:'+_0x5adbf1,_0x1a3dcb=this['_setSuggestionData']({'id':_0x2e58ca,'type':_0x5ee3ea,'createdAt':new Date(),'authorId':_0x2295f1,'attributes':_0x48095e});for(const _0x4800f7 of _0x229edb)_0x4800f7['detach'](),_0x4800f7['isCollapsed']||'$graveyard'==_0x4800f7['root']['rootName']||this['_addSuggestionMarker'](_0x5ee3ea,_0x2e58ca,_0x2295f1,_0x4800f7,u['getMultiRangeId']());return _0x1a3dcb;}['markAttributeChange'](_0x3d2a59,_0x17afa6,_0x439598,_0x1f2d5d,_0x1e8098){if(_0x3d2a59['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3b577d=this['editor']['plugins']['get']('Users')['me']['id'],_0x4f14af=Array['from'](this['_suggestions']['values']())['filter'](_0xc58e33=>'attribute'==_0xc58e33['type']&&_0xc58e33['data']['key']==_0x17afa6&&_0xc58e33['isIntersectingWithRange'](_0x3d2a59));if('default'===this['_trackFormatChanges']){const _0x5981dc=this['_findSuggestions'](_0x3d2a59,'insertion')['filter'](({meta:_0xbd2b31})=>_0xbd2b31['isOwn']&&!_0xbd2b31['isInsideObject']&&!_0xbd2b31['isNextTo'])['map'](({suggestion:_0x1798d1})=>_0x1798d1);_0x4f14af['unshift'](..._0x5981dc);}const _0x1ebbd1=new Map([[_0x3d2a59,_0x439598]]);for(const _0xb70bbd of _0x4f14af){const _0xca835a='attribute'==_0xb70bbd['type']?_0xb70bbd['data']['oldValue']:void 0x0,_0x285cf4=_0xb70bbd['getFirstRange'](),_0x3485b9=Array['from'](_0x1ebbd1['keys']())['find'](_0x1d7ae7=>_0x1d7ae7['isIntersecting'](_0x285cf4));if(!_0x3485b9)continue;const _0x38ab32=_0x3485b9['getDifference'](_0x285cf4);this['_isBlockAttribute'](_0x17afa6)&&'insertion'==_0xb70bbd['type']&&0x0!=_0x38ab32['length']||(_0x1ebbd1['delete'](_0x3485b9),_0x38ab32['forEach'](_0x2dd264=>{_0x1ebbd1['set'](_0x2dd264,_0x439598);}),'insertion'!=_0xb70bbd['type']&&_0xca835a!=_0x1f2d5d&&_0x1ebbd1['set'](_0x3485b9['getIntersection'](_0x285cf4),_0xca835a));}const _0x3aa9a6=[];for(const [_0x27436f,_0x46a140]of _0x1ebbd1){const _0x51e5d3=_0x476dad(),_0x35b92d={'key':_0x17afa6,'oldValue':_0x46a140,'newValue':_0x1f2d5d};_0x17afa6['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':_0x17afa6});const _0xa3d97f=('attribute:'+(_0x17afa6+'|'+Gt({'newValue':_0x1f2d5d})))['substring'](0x0,0x3c),_0x604522=this['_setSuggestionData']({'id':_0x51e5d3,'type':_0xa3d97f,'data':_0x35b92d,'createdAt':new Date(),'authorId':_0x3b577d,'attributes':_0x1e8098});_0x3aa9a6['push'](_0x604522),this['_addSuggestionMarker'](_0xa3d97f,_0x51e5d3,_0x3b577d,_0x27436f);}return _0x3aa9a6;}['enableDefaultAttributesIntegration'](_0x41a8ca){this['enableCommand'](_0x41a8ca,(_0x44900b,..._0x2ddb90)=>{this['_recordAttributeChanges'](()=>{_0x44900b(..._0x2ddb90);});});}['registerBlockAttribute'](_0xcfd4b7){this['_blockAttributeKeys']['add'](_0xcfd4b7);}['registerInlineAttribute'](_0x395b27){this['_inlineAttributeKeys']['add'](_0x395b27);}['_getAttributeKey'](_0x3802ad){return'attribute'==_0x3802ad['type']?_0x3802ad['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x79979,_0x1be14c){const _0x545591=_0x79979['getFirstMarker']();this['_model']['change'](_0x19dbf4=>{_0x19dbf4['updateMarker'](_0x545591,{'range':_0x1be14c});});}['_addThreadToSuggestion'](_0x5d01d8){const _0x2b8ade=_0x5d01d8['id'],_0x5493bc=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2b8ade)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5493bc,'threadId':_0x2b8ade,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x29ed79=this['_commentsRepository']['getCommentThread'](_0x2b8ade);_0x29ed79['unbind']('isRemovable'),_0x29ed79['isRemovable']=!0x1,_0x5d01d8['commentThread']=_0x29ed79;}['_checkSuggestionCorrectness'](_0x1b65d9,_0x3d0353,_0x5eec4e,_0x2a5a2e){if(_0x1b65d9['type']!=_0x3d0353||_0x1b65d9['subType']!=_0x5eec4e||_0x1b65d9['creator']['id']!=_0x2a5a2e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xcd3701('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x39546f,_0xf28567){const _0x22754a=_0x39546f['getFirstRange']();if(_0xf28567['isEqual'](_0x22754a))_0x39546f['removeMarkers']();else{if(_0x22754a['containsRange'](_0xf28567)){const _0x33a60e=this['_model']['createPositionAt'](_0xf28567['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x39546f,this['_model']['createRange'](_0x22754a['start'],_0x33a60e));const _0x225103=_0x476dad(),_0x4ac334=_0x39546f['creator']['id'],_0x182dec=_0x39546f['type']+':'+_0x39546f['subType'];this['_setSuggestionData']({'id':_0x225103,'type':_0x182dec,'createdAt':new Date(),'authorId':_0x4ac334,'data':_0x39546f['data'],'attributes':_0x39546f['attributes']});const _0xecf4f5=this['_model']['createPositionAt'](_0xf28567['end']['parent'],'after'),_0x47dad6=this['_model']['createRange'](_0xecf4f5,_0x22754a['end']);this['_addSuggestionMarker'](_0x182dec,_0x225103,_0x4ac334,_0x47dad6);}else{if(_0x22754a['containsPosition'](_0xf28567['start'])){const _0x54360f=this['_model']['createPositionAt'](_0xf28567['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x39546f,this['_model']['createRange'](_0x22754a['start'],_0x54360f));}else{const _0x1a705a=this['_model']['createPositionAt'](_0xf28567['end']['parent'],'after');this['_setSuggestionRange'](_0x39546f,this['_model']['createRange'](_0x1a705a,_0x22754a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x242103){for(const {suggestion:_0x5d117f,meta:_0x2a4259}of this['_findSuggestions'](_0x242103,'insertion')){if(!_0x2a4259['isOwn'])continue;const _0x306254=_0x5d117f['getRanges']();for(const _0x688716 of _0x306254)if(!_0x242103['getDifference'](_0x688716)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x591ffd){const _0x4a1b5b=this['editor']['plugins']['get']('Users')['getUser'](_0x591ffd);if(!_0x4a1b5b)throw new _0xcd3701('track-changes-user-not-found',this);return _0x4a1b5b;}['_getExternalAuthor'](_0x150c6a){const _0x135d4c=this['editor']['plugins']['get']('Users'),_0x546772=_0x567315('external:'+_0x150c6a),_0x16c1a6=_0x135d4c['getUser'](_0x546772);return _0x16c1a6||_0x135d4c['addUser']({'id':_0x546772,'name':_0x150c6a});}['_createSuggestion'](_0x5cad7a,_0x5ba040,_0x5016b3,_0x510124,_0x26fae9){const _0x2c351c=this['_getAuthorFromId'](_0x510124),_0x15059f=this['_suggestionFactory']['buildSuggestion'](_0x5cad7a,_0x5ba040,_0x5016b3,_0x2c351c,_0x26fae9,_0x5ec1e5=>{this['_updateSuggestionData'](_0x5016b3,{'attributes':_0x5ec1e5});const _0x28adfb=this['getSuggestion'](_0x5016b3);this['_joinWithAdjacentSuggestions'](new Set([_0x28adfb])),this['_refreshSuggestionsChain'](new Set([_0x28adfb]));});return this['listenTo'](_0x15059f,'accept',()=>{this['_updateSuggestionData'](_0x5016b3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x15059f,'discard',()=>{this['_updateSuggestionData'](_0x5016b3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5016b3,_0x15059f),this['_suggestionState']['set'](_0x15059f,'notReady'),_0x15059f;}['_splitMarkerName'](_0x2c2b71){const _0x584056=_0x2c2b71['split'](':');return{'group':_0x584056[0x0],'type':_0x584056[0x1],'subType':_0x584056['length']>=0x5?_0x584056[0x2]:null,'id':_0x584056['length']<0x5?_0x584056[0x2]:_0x584056[0x3],'authorId':_0x584056['length']<0x5?_0x584056[0x3]:_0x584056[0x4],'markerCount':0x6==_0x584056['length']?_0x584056[0x5]:null};}['_breakSuggestionMarker'](_0x1763ee,_0x2d9f36,_0x5b0c16){const _0x15bac1=_0x1763ee['getFirstRange'](),_0x2cf5fe=_0x15bac1['start'],_0x16ec2e=_0x15bac1['end'];this['_setSuggestionRange'](_0x1763ee,this['_model']['createRange'](_0x2cf5fe,_0x2d9f36));const _0x521b0c=_0x476dad(),_0x3bfcc8=_0x1763ee['creator']['id'],_0x5304a6=_0x1763ee['type']+(_0x1763ee['subType']?':'+_0x1763ee['subType']:'');this['_setSuggestionData']({'id':_0x521b0c,'type':_0x5304a6,'createdAt':new Date(),'authorId':_0x3bfcc8,'originalSuggestionId':_0x1763ee['id'],'attributes':_0x1763ee['attributes'],'data':_0x1763ee['data']});const _0x412f74=this['_getAttributeKey'](_0x1763ee);('formatBlock'==_0x1763ee['type']||_0x412f74&&this['_isBlockAttribute'](_0x412f74))&&(_0x5b0c16=this['_model']['createPositionBefore'](_0x5b0c16['parent'])),this['_addSuggestionMarker'](_0x5304a6,_0x521b0c,_0x3bfcc8,this['_model']['createRange'](_0x5b0c16,_0x16ec2e));}['_findSuggestions'](_0x3b5aac,_0x416587=null){const _0x438725=[],_0x25f95d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3b5aac)||(_0x3b5aac=[_0x3b5aac]);for(const _0x4d4e0d of this['getSuggestions']()){if(!_0x4d4e0d['isInContent'])continue;if(_0x416587&&_0x4d4e0d['type']!=_0x416587)continue;let _0x44dc31=!0x1;for(const _0x284bb of _0x4d4e0d['getRanges']()){for(const _0x2a404d of _0x3b5aac){const _0xbdd0f1=_0x2a404d['start']['isEqual'](_0x284bb['end'])||_0x2a404d['end']['isEqual'](_0x284bb['start']);if(_0xbdd0f1||_0x2a404d['getIntersection'](_0x284bb)){const _0xce12ef=_0x2a404d['containsRange'](_0x284bb)&&Ut(this['_model']['schema'],_0x284bb['start'],_0x2a404d),_0x194ea9=_0x284bb['containsRange'](_0x2a404d)&&Ut(this['_model']['schema'],_0x2a404d['start'],_0x284bb);_0x438725['push']({'suggestion':_0x4d4e0d,'meta':{'isOwn':_0x25f95d==_0x4d4e0d['author'],'isNextTo':_0xbdd0f1,'isInsideObject':_0xce12ef,'containsRangeInObject':_0x194ea9}}),_0x44dc31=!0x0;break;}}if(_0x44dc31)break;}}return _0x438725;}['_addSuggestionMarker'](_0x5c102e,_0x2ac50d,_0x56792a,_0x3aaf5e,_0x16cb7b){this['_model']['change'](_0x29d5b4=>{let _0x55c87d='suggestion:'+_0x5c102e+':'+_0x2ac50d+':'+_0x56792a;_0x16cb7b&&(_0x55c87d=_0x55c87d+':'+_0x16cb7b),_0x29d5b4['addMarker'](_0x55c87d,{'range':_0x3aaf5e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1c3932){const _0x237b75=_0x1c3932['previous'],_0x9e283c=_0x1c3932['next'];_0x1c3932['previous']=null,_0x1c3932['next']=null,null!=_0x237b75&&_0x237b75['next']==_0x1c3932&&(_0x237b75['next']=_0x9e283c),null!=_0x9e283c&&_0x9e283c['previous']==_0x1c3932&&(_0x9e283c['previous']=_0x237b75),'ready'==this['_suggestionState']['get'](_0x1c3932)&&(this['_suggestionState']['set'](_0x1c3932,'removed'),this['fire']('suggestionUnloaded',_0x1c3932,_0x237b75,_0x9e283c));}['_setSuggestionData'](_0x1bb986){const _0x1cdd08=_0x1bb986['id'],_0x473b38=this['addSuggestionData'](_0x1bb986);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x7a7537=this['editor']['plugins']['get']('PendingActions'),_0x28aded=_0x473b38['hasComments'],_0x4181ba=_0x473b38['subType']?_0x473b38['type']+':'+_0x473b38['subType']:_0x473b38['type'],_0x5c0594=this['editor']['locale'],_0x52a911=_0x7a7537['add'](o(_0x5c0594,'PENDING_ACTION_SUGGESTION')),_0x398f59={'id':_0x1cdd08,'type':_0x4181ba,'hasComments':_0x28aded,'data':_0x1bb986['data']||null,'originalSuggestionId':_0x1bb986['originalSuggestionId']||null,'attributes':_0x473b38['attributes']};this['_adapter']['addSuggestion'](_0x398f59)['then'](_0x5029b9=>{_0x473b38['_saved']=!0x0,_0x7a7537['remove'](_0x52a911),_0x5029b9&&_0x5029b9['createdAt']&&(this['_suggestions']['get'](_0x1cdd08)['createdAt']=_0x5029b9['createdAt']);})['catch'](_0x1b3db3=>{throw _0x1abbe('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x473b38['discard']();}),_0x473b38['stopListening'](),this['_suggestions']['delete'](_0x473b38['id']),this['_suggestionState']['delete'](_0x473b38),_0x1b3db3;});}return _0x473b38;}['_isBlockAttribute'](_0x4b8cca){return this['_blockAttributeKeys']['has'](_0x4b8cca);}['_updateSuggestionData'](_0x449894,_0xf2a6be){const _0x228682=this['editor']['plugins']['get']('PendingActions'),_0x30b8cf=this['getSuggestion'](_0x449894);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x30b8cf['_saved']){const _0x485892=_0x228682['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x449894,_0xf2a6be)['then'](()=>{_0x228682['remove'](_0x485892);});}else _0x30b8cf['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x449894,_0xf2a6be);});}}['_getSuggestionData'](_0x4a10dd){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xcd3701('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4a10dd);}['_handleNewSuggestionMarker'](_0x32632d){const {id:_0x400e84,type:_0x369957,subType:_0x3efb4f,authorId:_0xed7d50}=this['_splitMarkerName'](_0x32632d),_0x19e672=this['_suggestions']['get'](_0x400e84)||this['_createSuggestion'](_0x369957,_0x3efb4f,_0x400e84,_0xed7d50,{});switch(this['_checkSuggestionCorrectness'](_0x19e672,_0x369957,_0x3efb4f,_0xed7d50),this['_suggestionState']['get'](_0x19e672)){case'notReady':this['_getSuggestionData'](_0x400e84)['then'](_0x5cdf66=>{let _0xcd204e=Promise['resolve']();_0x5cdf66['hasComments']&&(_0xcd204e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x400e84})),_0xcd204e['then'](()=>{this['addSuggestionData'](_0x5cdf66)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x19e672,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x400e84,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x19e672,'ready'),this['fire']('suggestionLoaded',_0x19e672);break;case'ready':this['fire']('suggestionChanged',_0x19e672);}return _0x19e672['addMarkerName'](_0x32632d),_0x19e672;}['_refreshSuggestionsChain'](_0x148acf){const _0x596ecf=Array['from'](_0x148acf),_0x4a0110=_0x596ecf['filter'](_0x591460=>'attribute'==_0x591460['type']);this['_refreshAttributeSuggestionsChain'](_0x4a0110);const _0x4321d0=_0x596ecf['filter'](_0x33d55f=>!_0x33d55f['isMultiRange']&&'attribute'!=_0x33d55f['type']),_0x1a3aaf=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57bc64=>!_0x57bc64['isMultiRange']&&'attribute'!=_0x57bc64['type']),_0x871b6f=_0x1a3aaf['filter'](_0x1c07fd=>!_0x148acf['has'](_0x1c07fd)),_0x1ebd6a=new Map(_0x1a3aaf['map'](_0x3d7a5e=>[_0x3d7a5e,this['_suggestionFactory']['getSuggestionCallback'](_0x3d7a5e['type'],_0x3d7a5e['subType'],'chain')])),_0x43acdc=new Map(_0x1a3aaf['map'](_0x130558=>[_0x130558,_0x130558['getFirstRange']()])),_0x53c856=new Set(),_0x1ad37d=new Set();for(let _0x33ec4a=0x0;_0x33ec4a<_0x4321d0['length'];_0x33ec4a++)_0x2b8422(_0x4321d0[_0x33ec4a],_0x4321d0,_0x33ec4a+0x1);for(let _0x1fa1af=0x0;_0x1fa1af<_0x4321d0['length'];_0x1fa1af++)_0x2b8422(_0x4321d0[_0x1fa1af],_0x871b6f,0x0);const _0x45e75e=new Set();for(let _0x5f3365=0x0;_0x5f3365<_0x4321d0['length'];_0x5f3365++){const _0x52f40f=_0x4321d0[_0x5f3365];!_0x1ad37d['has'](_0x52f40f)&&_0x52f40f['previous']&&(_0x45e75e['add'](_0x52f40f['previous']),_0x52f40f['previous']['next']===_0x52f40f&&(_0x52f40f['previous']['next']=null),_0x52f40f['previous']=null),!_0x53c856['has'](_0x52f40f)&&_0x52f40f['next']&&(_0x45e75e['add'](_0x52f40f['next']),_0x52f40f['next']['previous']===_0x52f40f&&(_0x52f40f['next']['previous']=null),_0x52f40f['next']=null);}function _0x2b8422(_0x5b15aa,_0x3fcaa7,_0x19a16b){for(let _0x53e2c7=_0x19a16b;_0x53e2c7<_0x3fcaa7['length'];_0x53e2c7++){const _0x21b214=_0x56263f(_0x5b15aa,_0x3fcaa7[_0x53e2c7]);_0x21b214&&(_0x21b214[0x0]['next']=_0x21b214[0x1],_0x21b214[0x1]['previous']=_0x21b214[0x0],_0x53c856['add'](_0x21b214[0x0]),_0x1ad37d['add'](_0x21b214[0x1]));}}function _0x56263f(_0x3c11f5,_0x227737){if(_0x3c11f5['author']['id']!==_0x227737['author']['id'])return null;const _0x1af49f=_0x1ebd6a['get'](_0x3c11f5)(_0x3c11f5,_0x227737,_0x43acdc['get'](_0x3c11f5),_0x43acdc['get'](_0x227737));if(!_0x1af49f)return null;return _0x1ebd6a['get'](_0x227737)(_0x3c11f5,_0x227737,_0x43acdc['get'](_0x3c11f5),_0x43acdc['get'](_0x227737))?_0x1af49f[0x1]['commentThread']&&_0x1af49f[0x1]['commentThread']['length']?null:_0x1af49f:null;}_0x45e75e['size']&&this['_refreshSuggestionsChain'](_0x45e75e);}['_refreshAttributeSuggestionsChain'](_0x160fba){if(0x0==_0x160fba['length'])return;const _0x334159=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4caf42=>'attribute'==_0x4caf42['type']&&_0x4caf42['_isDataLoaded']),_0x307e22=[],_0x37a22b=new Map();for(const _0x2520b1 of _0x334159){const _0x443bc9=_0x567315(_0x2520b1['attributes']);_0x37a22b['has'](_0x443bc9)||(_0x37a22b['set'](_0x443bc9,_0x307e22['length']),_0x307e22['push']([]));const _0x339bf8=_0x37a22b['get'](_0x443bc9);_0x307e22[_0x339bf8]['push'](_0x2520b1);}!(function(){_0x307e22['sort']((_0x24fb84,_0x28140b)=>{const _0x55052e=_0x24fb84[0x0]['createdAt'],_0x1679f1=_0x28140b[0x0]['createdAt'];return _0x55052e==_0x1679f1?_0x24fb84[0x0]['attributes']['groupId']<_0x28140b[0x0]['attributes']['groupId']?-0x1:0x1:_0x55052e<_0x1679f1?-0x1:0x1;});for(const _0x272a3a of _0x307e22)_0x272a3a['sort']((_0x353cc5,_0xc91f30)=>_0x353cc5['id']<_0xc91f30['id']?-0x1:0x1);}());for(let _0x23f756=0x0;_0x23f756<_0x307e22['length'];_0x23f756++){if(0x0==_0x307e22[_0x23f756]['length'])continue;const _0x1cbf13=[];for(let _0x4ee443=_0x23f756+0x1;_0x4ee443<_0x307e22['length'];_0x4ee443++)0x0!=_0x307e22[_0x4ee443]['length']&&_0x23b6ed(_0x307e22[_0x23f756],_0x307e22[_0x4ee443])&&_0x1cbf13['push'](_0x4ee443);for(const _0x13bc83 of _0x1cbf13)_0x307e22[_0x23f756]=_0x307e22[_0x23f756]['concat'](_0x307e22[_0x13bc83]),_0x307e22[_0x13bc83]=[];}for(const _0x5e7bda of _0x307e22)for(let _0x517347=0x0;_0x517347<_0x5e7bda['length'];_0x517347++){const _0xf68ddf=_0x5e7bda[_0x517347+0x1]||null;_0x5e7bda[_0x517347]['next']!==_0xf68ddf&&(_0x5e7bda[_0x517347]['next']=_0xf68ddf);}for(const _0x407665 of _0x307e22)for(let _0x4404c1=0x0;_0x4404c1<_0x407665['length'];_0x4404c1++){const _0x4b07b9=_0x407665[_0x4404c1-0x1]||null;_0x407665[_0x4404c1]['previous']!==_0x4b07b9&&(_0x407665[_0x4404c1]['previous']=_0x4b07b9);}function _0x23b6ed(_0x42a559,_0xb6b9b3){if(_0x42a559[0x0]['attributes']['groupId']!==_0xb6b9b3[0x0]['attributes']['groupId']&&_0x42a559[0x0]['author']!==_0xb6b9b3[0x0]['author'])return!0x1;if(!function(_0x14c2bf,_0x4f64a1){if(!_0x14c2bf['hasComments']&&!_0x4f64a1['hasComments'])return!0x0;if(_0x14c2bf['hasComments']&&_0x4f64a1['hasComments'])return!0x1;if(_0x14c2bf['hasComments']&&_0x4f64a1['createdAt']<_0x14c2bf['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4f64a1['hasComments']&&_0x14c2bf['createdAt']<_0x4f64a1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x42a559[0x0],_0xb6b9b3[0x0]))return!0x1;const _0xf01c84=xt(_0x42a559[0x0]['attributes'],'groupId'),_0x147020=xt(_0xb6b9b3[0x0]['attributes'],'groupId');if(!_0x242804(_0xf01c84,_0x147020))return!0x1;return!!_0x42a559['every'](_0x500b77=>_0xb6b9b3['some'](_0x446551=>_0x500b77['getFirstRange']()['isEqual'](_0x446551['getFirstRange']())))&&_0xb6b9b3['every'](_0x2626f0=>_0x42a559['some'](_0x187c3a=>_0x2626f0['getFirstRange']()['isEqual'](_0x187c3a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x16c302){const _0x420300=Array['from'](_0x16c302),_0x2dabba=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5b1e0d=_0x2dabba['filter'](_0x2c621f=>!_0x16c302['has'](_0x2c621f)),_0x9d257=new Map(_0x420300['map'](_0x2a92ae=>[_0x2a92ae,this['_suggestionFactory']['getSuggestionCallback'](_0x2a92ae['type'],_0x2a92ae['subType'],'join')])),_0x1b5f78=new Map(_0x2dabba['map'](_0x4c419e=>[_0x4c419e,_0x4c419e['getRanges']()]));for(let _0x821f62=0x0;_0x821f62<_0x420300['length'];_0x821f62++){if(_0x381d79(this,_0x420300[_0x821f62],_0x420300,_0x821f62+0x1))return!0x0;}for(let _0x2b5fcb=0x0;_0x2b5fcb<_0x420300['length'];_0x2b5fcb++){if(_0x381d79(this,_0x420300[_0x2b5fcb],_0x5b1e0d,0x0))return!0x0;}return!0x1;function _0x381d79(_0x46a739,_0x92bfb1,_0x1a5bfa,_0x2fe8c5){for(let _0x159697=_0x2fe8c5;_0x159697<_0x1a5bfa['length'];_0x159697++){const _0x4cc055=_0x1a5bfa[_0x159697];if(_0x4cc055['type']!==_0x92bfb1['type']||_0x4cc055['author']['id']!==_0x92bfb1['author']['id']||_0x4cc055['subType']!==_0x92bfb1['subType'])continue;if(!qt(_0x92bfb1,_0x4cc055))continue;if('attribute'==_0x92bfb1['type']&&_0x92bfb1['data']['oldValue']!=_0x4cc055['data']['oldValue'])continue;if('attribute'==_0x92bfb1['type']&&_0x46a739['_isBlockAttribute'](_0x92bfb1['data']['key']))continue;if('formatBlock'==_0x92bfb1['type']){const _0x2a3585=_0x46a739['editor']['model'],_0x25f422=_0x92bfb1['getContainedElement']();if(_0x25f422&&(_0x2a3585['schema']['isObject'](_0x25f422)||_0x2a3585['schema']['isLimit'](_0x25f422)))continue;}const _0x1aac55=_0x9d257['get'](_0x92bfb1),_0x24079f=_0x1b5f78['get'](_0x92bfb1),_0x6c1df=_0x1b5f78['get'](_0x4cc055),_0x2f4482=_0x92bfb1['commentThread']&&_0x92bfb1['commentThread']['length'],_0x4a151b=_0x4cc055['commentThread']&&_0x4cc055['commentThread']['length'];if(!_0x2f4482&&_0x1aac55(_0x6c1df,_0x24079f))return _0x46a739['_joinSuggestions'](_0x4cc055,_0x92bfb1),_0x1b5f78['delete'](_0x92bfb1),!0x0;if(!_0x4a151b&&_0x1aac55(_0x24079f,_0x6c1df))return _0x46a739['_joinSuggestions'](_0x92bfb1,_0x4cc055),_0x1b5f78['delete'](_0x4cc055),!0x0;}return!0x1;}}['_joinSuggestions'](_0x48b976,_0x82e9cb){if(_0x48b976['isMultiRange']){for(const _0x337372 of _0x82e9cb['getRanges']())_0x48b976['addRange'](_0x337372);}else{const _0x24275c=_0x82e9cb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x48b976,this['_model']['createRange'](_0x48b976['getFirstRange']()['start'],_0x24275c));}_0x82e9cb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x29b3ac,_0x8add38,_0xdf1c58){const _0x508b6b=_0x29b3ac['startsWith']('format')||_0x29b3ac['startsWith']('attribute')?'FORMATTING':_0x29b3ac['toUpperCase']();return o(this['editor']['locale'],_0x8add38+'_'+_0x508b6b+'_SUGGESTION_ANNOUNCEMENT',_0xdf1c58);}['_initAriaMarkerChangeAnnouncements'](){const _0x210edb=this['editor'];if(!_0x210edb['ui'])return;const {ariaLiveAnnouncer:_0x62284b}=_0x210edb['ui'];_0x2444d4(this['_model'],({left:_0x17d29e,entered:_0x42f81c})=>{for(const _0x545bcd of _0x17d29e){const {group:_0x46308,type:_0x389222}=this['_splitMarkerName'](_0x545bcd['name']);if('suggestion'===_0x46308){_0x62284b['announce'](this['_getMarkerAnnouncementText'](_0x389222,'LEAVE'));break;}}for(const _0x42f1fd of _0x42f81c){const {group:_0x73f02e,type:_0x1511e4}=this['_splitMarkerName'](_0x42f1fd['name']);if('suggestion'===_0x73f02e){_0x62284b['announce'](this['_getMarkerAnnouncementText'](_0x1511e4,'ENTER',_0x19c25e(_0x26e0c0)));break;}}});}['_processAttributeChanges'](_0x407638){if(this['_recordAttributeSuggestions'])return!0x1;const _0x24e569=this['editor'],_0x3ffa68=_0x24e569['model']['document']['differ']['getChanges']();if(0x0==_0x3ffa68['length'])return!0x1;const _0x22e5af=[],_0x9585e4=_0x3ffa68['filter'](_0x47be77=>'attribute'==_0x47be77['type']),_0x4c63cc=_0x3ffa68['filter'](_0x41febd=>'insert'==_0x41febd['type']&&'$text'!=_0x41febd['name']),_0x31bdc9=_0x3ffa68['filter'](_0x5e23a2=>'remove'==_0x5e23a2['type']&&'$text'!=_0x5e23a2['name']);for(const _0x47b20d of _0x9585e4)_0x22e5af['push']({'key':_0x47b20d['attributeKey'],'newValue':_0x47b20d['attributeNewValue'],'oldValue':_0x47b20d['attributeOldValue'],'range':Lt(_0x47b20d['range'],_0x24e569['model'])});for(const _0x54d0b0 of _0x4c63cc){const _0x4ed408=_0x31bdc9['find'](_0x23f01c=>_0x23f01c['position']['isEqual'](_0x54d0b0['position']));_0x4ed408&&_0x22e5af['push']({'key':m,'newValue':_0x54d0b0['name'],'oldValue':_0x4ed408['name'],'range':_0x24e569['model']['createRangeOn'](_0x54d0b0['position']['nodeAfter'])});}return 0x0!=_0x22e5af['length']&&this['_reduceExistingSuggestions'](_0x407638,_0x22e5af);}['_processAttributeSuggestions'](_0x12f14f){let _0x5aa34d=!0x1;const _0x528323=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4635be=>_0x4635be['data']['newRange']&&_0x4635be['name']['startsWith']('suggestion:attribute:'));for(const _0x1762a0 of _0x528323){const {subType:_0x382823,id:_0x35b371}=this['_splitMarkerName'](_0x1762a0['name']),_0xe8e486=_0x382823['split']('|')[0x0];for(const _0x4bebf2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4bebf2['id']!=_0x35b371&&'attribute'==_0x4bebf2['type']&&_0x4bebf2['data']&&_0x4bebf2['data']['key']==_0xe8e486&&_0x4bebf2['getFirstRange']()['isIntersecting'](_0x1762a0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4bebf2,_0x1762a0['data']['newRange'],_0x12f14f),_0x5aa34d=!0x0);}return _0x5aa34d;}['_recordAttributeChanges'](_0x34c869){this['_recordAttributeSuggestions']=!0x0,_0x34c869();}['_isRegisteredAttribute'](_0x11b0bc){const _0x433e80=this['_isBlockAttribute'](_0x11b0bc),_0x5512ca=this['_inlineAttributeKeys']['has'](_0x11b0bc);return _0x433e80||_0x5512ca;}['_reduceExistingSuggestions'](_0x32ce6e,_0x1bfa60){if(0x0==_0x1bfa60['length'])return!0x1;let _0x44bb9b=!0x1;for(const _0x468bd6 of _0x1bfa60){const _0x4bf483=this['_findSuggestions'](_0x468bd6['range'],'attribute')['filter'](_0x5b0a00=>!_0x5b0a00['meta']['isNextTo'])['map'](_0x1d6d78=>_0x1d6d78['suggestion']),_0x1843e4=_0x567315({'newValue':_0x468bd6['newValue']});_0x4bf483['filter'](_0x49693f=>{const [_0x3fba78,_0x1c32d8]=_0x49693f['subType']['split']('|');return _0x3fba78==_0x468bd6['key']&&_0x1c32d8!=_0x1843e4;})['forEach'](_0x191268=>{this['_reduceSuggestionAttributeRange'](_0x191268,_0x468bd6['range'],_0x32ce6e),_0x44bb9b=!0x0;});}return _0x44bb9b;}['_reduceSuggestionAttributeRange'](_0x5053cf,_0x54c8a9,_0x9539bc){const _0x1b493e=_0x5053cf['getFirstRange']()['getDifference'](_0x54c8a9);0x0!==_0x1b493e['length']?0x1!==_0x1b493e['length']?this['_breakSuggestionMarker'](_0x5053cf,_0x54c8a9['start'],_0x54c8a9['end']):this['_setSuggestionRange'](_0x5053cf,_0x1b493e[0x0]):_0x9539bc['removeMarker'](_0x5053cf['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xf6d7ef){this['_editor']=_0xf6d7ef,this['_model']=_0xf6d7ef['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x31dc96,_0x2a00cc,_0x3f2d43,_0x20948d,_0x516376,_0x2b44a3){return new u(this['_model'],{'type':_0x31dc96,'subType':_0x2a00cc,'id':_0x3f2d43,'author':_0x20948d,'creator':_0x20948d,'attributes':_0x516376,'onAttributesChange':_0x2b44a3,'onAccept':(..._0xc1e67a)=>this['getSuggestionCallback'](_0x31dc96,_0x2a00cc,'accept')(..._0xc1e67a),'onDiscard':(..._0x4ba50c)=>this['getSuggestionCallback'](_0x31dc96,_0x2a00cc,'discard')(..._0x4ba50c)});}['registerCustomCallback'](_0xbb2d41,_0x322638,_0x2e187a,_0x44a255){const _0x10eff1=_0xbb2d41+':'+_0x322638+':'+_0x2e187a;this['_customCallbacks']['set'](_0x10eff1,_0x44a255);}['getSuggestionCallback'](_0x5e1e94,_0x5c4b5a,_0xf62f14){const _0x195bac=_0x5e1e94+':'+_0x5c4b5a+':'+_0xf62f14;return this['_customCallbacks']['get'](_0x195bac)||this['_defaultCallbacks']['get'](_0x5e1e94+':'+_0xf62f14);}['_registerDefaultCallbacks'](){const _0x3b7e34=()=>!0x1,_0x5cff99=_0x4d984c=>{_0x4d984c['sort']((_0x3b0ab3,_0x21a0ef)=>_0x3b0ab3['start']['isBefore'](_0x21a0ef['start'])?0x1:-0x1),this['_model']['change'](_0x1d0e52=>{for(const _0xaf96a of _0x4d984c){let _0x1020b7;_0x1020b7=_0xaf96a['end']['isAtEnd']&&_0xaf96a['end']['parent']==_0xaf96a['start']['nodeAfter']?_0x1d0e52['createSelection'](_0xaf96a['start']['nodeAfter'],'on'):_0x1d0e52['createSelection'](_0xaf96a),this['_model']['deleteContent'](_0x1020b7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x48832d=(_0x4d7d5f,_0x4359dd)=>{_0x4359dd&&this['_model']['change'](_0x16adce=>{const {commandName:_0x53310c,commandParams:_0x3bca6f=[]}=_0x4359dd,_0x5ec561=_0x4d7d5f['map'](_0x34770a=>(Vt(_0x34770a)&&(_0x34770a=this['_model']['createRange'](_0x34770a['end'])),_0x34770a))['filter'](_0x2642b7=>'$graveyard'!==_0x2642b7['root']['rootName']);if(_0x5ec561['length']<0x1)return;const _0x16f20b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2aecbd=>_0x22f529['fromRange'](_0x2aecbd));_0x16adce['setSelection'](_0x5ec561);for(const _0x98b052 of this['_editor']['commands']['commands']())_0x98b052['refresh']();_0x3bca6f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x53310c,..._0x3bca6f);const _0x3ac24b=_0x16f20b['filter'](_0x1de8ba=>'$graveyard'!=_0x1de8ba['root']['rootName']);_0x3ac24b['length']>0x0&&_0x16adce['setSelection'](_0x3ac24b);for(const _0x5054e9 of _0x16f20b)_0x5054e9['detach']();});},_0x24e2e4=(_0x5d4b36,_0x3d1133)=>0x1==_0x5d4b36['length']&&0x1==_0x3d1133['length']&&_0x5d4b36[0x0]['end']['isEqual'](_0x3d1133[0x0]['start']),_0x12fb6a=(_0x43297b,_0x333b18,_0x59fce5,_0x173ad2)=>Ht(_0x43297b,_0x333b18,_0x59fce5,_0x173ad2)?[_0x43297b,_0x333b18]:Ht(_0x333b18,_0x43297b,_0x173ad2,_0x59fce5)?[_0x333b18,_0x43297b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3b7e34),this['_defaultCallbacks']['set']('insertion:discard',_0x5cff99),this['_defaultCallbacks']['set']('insertion:join',_0x24e2e4),this['_defaultCallbacks']['set']('insertion:chain',_0x12fb6a),this['_defaultCallbacks']['set']('deletion:accept',_0x5cff99),this['_defaultCallbacks']['set']('deletion:discard',_0x3b7e34),this['_defaultCallbacks']['set']('deletion:join',_0x24e2e4),this['_defaultCallbacks']['set']('deletion:chain',_0x12fb6a),this['_defaultCallbacks']['set']('formatInline:accept',_0x48832d),this['_defaultCallbacks']['set']('formatInline:discard',_0x3b7e34),this['_defaultCallbacks']['set']('formatInline:join',_0x24e2e4),this['_defaultCallbacks']['set']('formatInline:chain',_0x3b7e34),this['_defaultCallbacks']['set']('formatBlock:accept',_0x48832d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3b7e34),this['_defaultCallbacks']['set']('formatBlock:join',_0x24e2e4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3b7e34),this['_defaultCallbacks']['set']('attribute:accept',_0x3b7e34),this['_defaultCallbacks']['set']('attribute:discard',(_0x28304c,_0x1d2d54)=>{if(!_0x1d2d54)return;const _0x3a1115=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x45b2b3=>{if(_0x1d2d54['key']==m)for(const _0x3be2a of _0x28304c){const _0xa1d494=_0x3be2a['start']['nodeAfter'],_0x3031d0=_0x1d2d54['oldValue'];_0x45b2b3['rename'](_0xa1d494,_0x3031d0);}else{if(_0x3a1115['_isBlockAttribute'](_0x1d2d54['key'])){for(const _0x369729 of _0x28304c)void 0x0!==_0x1d2d54['oldValue']?_0x45b2b3['setAttribute'](_0x1d2d54['key'],_0x1d2d54['oldValue'],_0x369729['start']['nodeAfter']):_0x45b2b3['removeAttribute'](_0x1d2d54['key'],_0x369729['start']['nodeAfter']);}else{for(const _0x8268ed of _0x28304c)_0x1d2d54['oldValue']?_0x45b2b3['setAttribute'](_0x1d2d54['key'],_0x1d2d54['oldValue'],_0x8268ed):_0x45b2b3['removeAttribute'](_0x1d2d54['key'],_0x8268ed);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x24e2e4);}}function Ut(_0x33907e,_0x16c853,_0x4bf825){for(const _0xb6bfd4 of _0x16c853['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xb6bfd4['root']==_0xb6bfd4)return!0x1;if(!_0x4bf825['containsItem'](_0xb6bfd4))return!0x1;if(_0x33907e['isObject'](_0xb6bfd4)||_0x33907e['isLimit'](_0xb6bfd4))return!0x0;}return!0x1;}function Vt(_0x3405f4){return _0x3405f4['end']['parent']==_0x3405f4['start']['nodeAfter']&&_0x3405f4['end']['isAtStart'];}function Pt(_0x31fb2d,_0x58aa53,_0x1a2447,_0x56eaa1){const _0x23c6b5=_0xea0988=>!_0xea0988['item']['is']('$textProxy')&&!_0x56eaa1['isObject'](_0xea0988['item']),_0x593cb2=_0x31fb2d['start']['getLastMatchingPosition'](_0x23c6b5),_0x41730b=_0x31fb2d['end']['getLastMatchingPosition'](_0x23c6b5,{'direction':'backward'});return(!_0x31fb2d['start']['isEqual'](_0x593cb2)||!_0x31fb2d['end']['isEqual'](_0x41730b))&&(_0x593cb2['isBefore'](_0x41730b)?_0x1a2447['updateMarker'](_0x58aa53,{'range':_0x1a2447['createRange'](_0x593cb2,_0x41730b)}):_0x1a2447['removeMarker'](_0x58aa53),!0x0);}function Gt(_0x5d1c5f){return _0x567315(_0x5d1c5f);}function Ft(_0x378a4b){const _0x1b2fec=_0x378a4b['start']['nodeAfter'];return _0x1b2fec&&_0x1b2fec['is']('element');}function Lt(_0x133816,_0x1d2319){return null==_0x133816['end']['nodeBefore']&&_0x133816['end']['parent']==_0x133816['start']['nodeAfter']?Jt(_0x133816['start']['nodeAfter'],_0x1d2319):_0x133816;}function Jt(_0x3c693e,_0x4188fe){const _0x363204=_0x4188fe['schema']['isObject'](_0x3c693e)||_0x4188fe['schema']['isSelectable'](_0x3c693e);return _0x4188fe['createRange'](_0x4188fe['createPositionAt'](_0x3c693e,'before'),_0x363204?_0x4188fe['createPositionAfter'](_0x3c693e):_0x4188fe['createPositionAt'](_0x3c693e,'end'));}function Ht(_0x42ab12,_0x5515a2,_0x4e04a9,_0x370534){return!!qt(_0x42ab12,_0x5515a2)&&_0x4e04a9['end']['isEqual'](_0x370534['start']);}function qt(_0x2cd2f3,_0xe18c74){if(!_0x2cd2f3['_isDataLoaded']||!_0xe18c74['_isDataLoaded'])return!0x1;const _0x251e05=new Set(Object['keys'](_0x2cd2f3['attributes'])),_0xa67974=new Set(Object['keys'](_0xe18c74['attributes']));if(_0x251e05['delete']('groupId'),_0xa67974['delete']('groupId'),0x0==_0x251e05['size']&&0x0==_0xa67974['size'])return!0x0;if(_0x251e05['size']!=_0xa67974['size'])return!0x1;const _0x1e8eca={..._0x2cd2f3['attributes']},_0x5159b5={..._0xe18c74['attributes']};return delete _0x1e8eca['groupId'],delete _0x5159b5['groupId'],JSON['stringify'](_0x1e8eca)==JSON['stringify'](_0x5159b5);}function zt(_0x33cf29,_0x107fe4){const _0x564891=Kt(_0x33cf29['attributes']),_0x5388a9=Kt(_0x107fe4);if(!_0x33cf29['_isDataLoaded'])return!0x1;for(const _0x36b7ae of Object['keys'](_0x5388a9))if(!_0x242804(_0x564891[_0x36b7ae],_0x5388a9[_0x36b7ae]))return!0x1;return!0x0;}function Kt(_0x40ad08){const _0x161b4e=Object['assign']({},_0x40ad08);return delete _0x161b4e['skipNestingCheck'],delete _0x161b4e['tablePasteChainId'],_0x161b4e;}class ge extends/* #__PURE__ -- @preserve */
25
- _0x26912d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x30acd6,_0x5629cb,_0x4411c1,_0x4be9ce){super(),this['model']=_0x5629cb,this['view']=_0x4411c1,this['commentThreadController']=_0x4be9ce,this['_editor']=_0x30acd6,this['_acceptCommand']=_0x30acd6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x30acd6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1dab9e,_0x28d45f)=>_0x1dab9e||_0x28d45f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5912bd=>_0x5912bd&&this['_editor']['model']['canEditAt'](_0x5629cb['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2dfedd=>_0x2dfedd&&this['_editor']['model']['canEditAt'](_0x5629cb['getRanges']())),this['_pendingAction']=null,_0x4411c1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4411c1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4411c1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4411c1,'change:isDirty',()=>{_0x4411c1['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 _0x2e0c3a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2e0c3a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x55335c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5b9e94,_0x48d61c,_0x3cf1ab,_0x26ab52){super(_0x5b9e94),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x208084(_0x5b9e94,o(_0x5b9e94,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x48d61c['authoredAt']),this['bind']('authoredAt')['to'](_0x48d61c),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',_0x48d61c,'authoredAt',this,'descriptionParts',(_0x484953,_0x354230,_0x39ecd9)=>{const _0x184034=_0x39ecd9['map'](_0x1c4ed4=>ns(_0x1c4ed4['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x484953-0x1,_0x48d61c['author']['name'],_0x354230?_0x26ab52['formatDateTime'](_0x354230):'',new DOMParser()['parseFromString'](_0x184034,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1a20ee(),this['focusTracker']=new _0x5ba06d(),this['keystrokes']=new _0x168a4e(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4265ee=>_0x4265ee['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x48d61c,this['_localUser']=_0x3cf1ab,this['_config']=_0x26ab52,_0x26ab52['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x52e46d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2e5f2e}=this['_config'];this['commentsListView']=new _0x2e5f2e(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',_0x30ed72=>_0x30ed72+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x24cf03,_0x47c2d9)=>_0x24cf03||!!_0x47c2d9);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x329aea}=this['_config'],_0x156a80=new _0x329aea(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x28b197=_0x156a80['commentInputView'];return _0x156a80['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x28b197,'value',(_0x3defa6,_0x38e38e,_0x49bd1d)=>!!_0x49bd1d||_0x3defa6&&!_0x38e38e),_0x28b197['on']('submit',(_0x4fec53,_0x18401c)=>{this['fire']('addComment',_0x18401c),_0x28b197['editor']['setData']('');}),_0x28b197['on']('cancel',()=>this['focus']()),_0x28b197['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x156a80;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x409f49,_0x2b1659,_0x333be7,_0x87548a){super(_0x409f49,_0x2b1659,_0x333be7,_0x87548a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5a7cec=>_0x5a7cec&&_0x5a7cec[0x0]?_0x5a7cec[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x48c3fc,_0x2e66d3)=>{let _0x196336='';for(const _0x50c1cb of _0x48c3fc)_0x196336+='<p>'+ns(_0x50c1cb['content'],_0x50c1cb['color'])+'</p>';return _0x2e66d3?_0x196336:ti(_0x196336,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x87548a['SuggestionView'](_0x409f49,_0x2b1659,{'formatDateTime':_0x87548a['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 _0x1004f3=this['bindTemplate'],_0x360a4e=[this['suggestionView']];return this['commentsListView']&&_0x360a4e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x360a4e['push'](this['commentThreadInputView']),_0x360a4e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1004f3['if']('isActive','ck-suggestion-wrapper--active'),_0x1004f3['to']('type',_0x3e1657=>'ck-suggestion-'+_0x3e1657),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':_0x1004f3['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x360a4e};}['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 ue extends _0x55335c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x96934c,_0x30b012,_0x16597a){super(_0x96934c),this['_model']=_0x30b012,this['_config']=_0x16597a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x30b012),this['acceptButton']=this['_createButton'](o(_0x96934c,'Accept\x20suggestion'),_0x467da9['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x96934c,'Discard\x20suggestion'),_0x467da9['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x51c4f2(_0x96934c,_0x30b012['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1a20ee([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5ba06d(),this['keystrokes']=new _0x168a4e(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xd28c32=>_0xd28c32['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2c76ff=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2c76ff['innerHTML']=this['description'],this['on']('change:description',(_0x415b4d,_0x43a612,_0x4ac836)=>{_0x2c76ff['innerHTML']=_0x4ac836;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x167c5e=this['bindTemplate'],_0xe07141=[{'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':_0x167c5e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x167c5e['to']('authoredAt',_0x1f01ca=>this['_config']['formatDateTime'](_0x1f01ca))}]}]},{'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']&&_0xe07141['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':_0xe07141}]};}['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'](_0x5ec917,_0x33bbea,_0x12170d,_0x3b32a6,_0x1d9f98){const _0x488af0=new _0x5ea4(this['locale']);return _0x488af0['set']({'label':_0x5ec917,'icon':_0x33bbea,'tooltip':!0x0,'tooltipPosition':_0x1d9f98}),_0x488af0['extendTemplate']({'attributes':{'class':_0x12170d}}),_0x488af0['on']('execute',()=>{this['fire'](_0x3b32a6,this['_model']['id']);}),_0x488af0;}['_setupKeyboardNavigation'](){const _0x374dc8=this['element'];this['keystrokes']['listenTo'](_0x374dc8);for(const _0x29f1c5 of this['focusables'])this['focusTracker']['add'](_0x29f1c5['element']),this['keystrokes']['listenTo'](_0x29f1c5['element']);this['keystrokes']['set']('enter',(_0xb36708,_0x3e95b7)=>{_0x374dc8===_0xb36708['target']&&(this['focusCycler']['focusFirst'](),_0x3e95b7());}),this['keystrokes']['set']('esc',(_0x4454d7,_0xc6efa7)=>{_0x374dc8!==_0x4454d7['target']&&(this['focus'](),_0xc6efa7());});}}var Ce='<!--\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-2024,\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 _0x107d6b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x46c909,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35bed2){super(_0x35bed2),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x25f621=this['editor']['config'];_0x25f621['define']('trackChanges.SuggestionThreadView',de),_0x25f621['define']('trackChanges.SuggestionView',ue),_0x25f621['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x25f621['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1453b3,_0x404ed4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x41f0a2,_0x54b766]of this['_handleControllerBuffer']){const _0x250f98=this['_suggestionToController']['has'](_0x41f0a2);_0x250f98||_0x54b766?_0x250f98&&_0x54b766&&this['_destroyController'](_0x41f0a2):this['_initializeController'](_0x41f0a2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1453b3,_0x404ed4);}['init'](){const _0x4a3252=this['editor'],_0x48760d=_0x4a3252['plugins']['get']('TrackChangesEditing'),_0x12a922=_0x4a3252['plugins']['get']('Annotations'),_0x2f51e4=_0x4a3252['plugins']['get']('EditorAnnotations'),_0x205f73=_0x4a3252['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2f51e4['addSourceCollector'](()=>{const _0x266d8f=[];for(const [_0x17bd7f,_0x15a64e]of Array['from'](this['_suggestionToController'])){const _0x1abe66=_0x17bd7f['getAllAdjacentSuggestions'](),_0x2ede92=[];for(const _0x257bd0 of _0x1abe66){if(!_0x257bd0['isInContent'])continue;if(_0x257bd0['isMultiRange']){_0x2ede92['push'](..._0x257bd0['getRanges']());continue;}const _0x4aa474=_0x257bd0['getFirstRange']();if(_0x2ede92['length']>0x0){const _0x3862bf=_0x2ede92[0x0]['getJoined'](_0x4aa474);if(_0x3862bf){_0x2ede92[0x0]=_0x3862bf;continue;}}_0x2ede92['push'](_0x4aa474);}_0x266d8f['push']([_0x15a64e['view'],_0x2ede92]);}return _0x266d8f;}),this['listenTo'](_0x48760d,'suggestionLoaded',(_0x4a9d3b,_0x23a7d0)=>{this['listenTo'](_0x23a7d0,'change:previous',(_0x4855af,_0x283e68,_0x3a48cd,_0x54bb9e)=>{_0x23a7d0['isInContent']&&(null==_0x3a48cd?(this['_updateController'](_0x54bb9e['head']),this['_handleSuggestionControllerDelayed'](_0x23a7d0,!0x1)):(this['_updateController'](_0x3a48cd['head']),null==_0x54bb9e&&this['_handleSuggestionControllerDelayed'](_0x23a7d0,!0x0)));}),null!==_0x23a7d0['previous']?this['_updateController'](_0x23a7d0['head']):this['_handleSuggestionControllerDelayed'](_0x23a7d0,!0x1);}),this['listenTo'](_0x48760d,'suggestionUnloaded',(_0x36c4c1,_0x2f8bd2,_0x57354e)=>{this['stopListening'](_0x2f8bd2,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2f8bd2),this['_suggestionToController']['has'](_0x2f8bd2)&&this['_destroyController'](_0x2f8bd2),_0x57354e&&this['_updateController'](_0x57354e['head']);}),this['listenTo'](_0x48760d,'suggestionChanged',(_0x4b4b57,_0x5116c9)=>{this['_updateController'](_0x5116c9);}),this['listenTo'](_0x12a922,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x205f73,'addComment',(_0x145fd5,{threadId:_0x24af3c,isFromAdapter:_0x38e6eb})=>{if(_0x38e6eb||!_0x48760d['hasSuggestion'](_0x24af3c))return;const _0x11d729=_0x48760d['getSuggestion'](_0x24af3c);this['_suggestionToController']['get'](_0x11d729)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a8eee=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3861b5;for(const _0x2435fe in _0x4a8eee){const _0x2e9a9c=_0x2435fe,_0x4fba19=_0x4a8eee[_0x2e9a9c];if('trackChangesLicenseKeyValid'==_0x4fba19||'trackChangesLicenseKeyInvalid'==_0x4fba19||'trackChangesLicenseKeyExpired'==_0x4fba19||'trackChangesLicenseKeyDomainLimit'==_0x4fba19||'trackChangesLicenseKeyNotAllowed'==_0x4fba19||'trackChangesLicenseKeyEvaluationLimit'==_0x4fba19||'trackChangesLicenseKeyTrialLimit'==_0x4fba19||'trackChangesLicenseKeyDevelopmentLimit'==_0x4fba19||'trackChangesLicenseKeyUsageLimit'==_0x4fba19){delete _0x4a8eee[_0x2e9a9c],_0x3861b5=_0x4fba19,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3861b5&&_0x4a8eee['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3861b5&&_0x4a8eee['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3861b5&&_0x4a8eee['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3861b5&&_0x4a8eee['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3861b5&&_0x4a8eee['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3861b5&&_0x4a8eee['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x3861b5&&_0x4a8eee['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3861b5&&_0x4a8eee['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5240a5=this['editor']['plugins']['get']('Annotations'),_0x1b5417=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf10c61=Array['from'](_0x5240a5['activeAnnotations'],_0x274ef5=>_0x274ef5['innerView'])['filter'](_0x2457cc=>this['_viewToController']['has'](_0x2457cc)),_0x4b1607=[];for(const _0x411c8a of _0xf10c61){const _0x34310e=this['_viewToController']['get'](_0x411c8a)['model']['getAllAdjacentSuggestions']();_0x4b1607['push'](..._0x34310e['reduce']((_0x251852,_0x844d0)=>[..._0x251852,..._0x844d0['getMarkerNames']()],[]));}_0x1b5417['activeMarkers']=_0x4b1607;}['_addUIComponentsToFactory'](){const _0x4e7c74=this['editor'],_0x39dbd0=_0x4e7c74['locale'],_0x1e2435=o(_0x39dbd0,'Track\x20changes'),_0x3c5ad8=new _0x9f5121([{'type':'switchbutton','model':new _0x27daba({'withText':!0x0,'isToggleable':!0x0,'label':_0x1e2435,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x27daba({'withText':!0x0,'label':o(_0x39dbd0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x27daba({'withText':!0x0,'label':o(_0x39dbd0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x27daba({'withText':!0x0,'label':o(_0x39dbd0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x27daba({'withText':!0x0,'label':o(_0x39dbd0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3427d6 of _0x3c5ad8)if(pe(_0x3427d6)){const _0x2cb9a1=_0x4e7c74['commands']['get'](_0x3427d6['model']['commandName']);_0x3427d6['model']['bind']('isOn','isEnabled')['to'](_0x2cb9a1,'value','isEnabled');}_0x4e7c74['ui']['componentFactory']['add']('trackChanges',_0x258030=>this['_createToolbarButton'](_0x258030,_0x3c5ad8,_0x1e2435)),_0x4e7c74['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2d1f63=>this['_createMenuBarMenu'](_0x2d1f63,_0x3c5ad8,_0x1e2435));}['_createToolbarButton'](_0x1f0a4c,_0x2e8ef8,_0xec055e){const _0x460cc1=_0x1ba01c(_0x1f0a4c,_0x1519e9),_0x409e74=this['editor']['commands']['get']('trackChanges');_0x460cc1['buttonView']['set']({'tooltip':_0xec055e,'label':_0xec055e,'icon':Ce}),_0x460cc1['buttonView']['bind']('isOn')['to'](_0x409e74,'value'),_0x460cc1['buttonView']['on']('execute',()=>{_0x409e74['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x460cc1,_0x2e8ef8,{'role':'menu'});const _0x323127=[];for(const _0x4c681a of _0x2e8ef8)pe(_0x4c681a)&&_0x323127['push'](this['editor']['commands']['get'](_0x4c681a['model']['commandName']));const _0xb57a9f=_0x460cc1['buttonView'];return _0xb57a9f['actionView']['unbind']('isEnabled'),_0xb57a9f['arrowView']['unbind']('isEnabled'),_0xb57a9f['actionView']['bind']('isEnabled')['to'](_0x409e74,'isEnabled'),_0xb57a9f['arrowView']['bind']('isEnabled')['toMany'](_0x323127,'isEnabled',(..._0x2acdad)=>_0x2acdad['some'](_0x131631=>_0x131631)),_0x460cc1['on']('execute',_0xa551c8=>{this['editor']['execute'](_0xa551c8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x460cc1;}['_createMenuBarMenu'](_0x28a592,_0x3aabb8,_0x3c3abd){const _0x754739=new _0x145ade(_0x28a592),_0x348844=this['editor']['commands']['get']('trackChanges');_0x754739['buttonView']['set']({'label':_0x3c3abd,'icon':Ce});const _0x45bdca=new _0x80518e(_0x28a592);for(const _0x1fa463 of _0x3aabb8){if('separator'==_0x1fa463['type']){_0x45bdca['items']['add'](new _0x2dea15(_0x28a592));continue;}const _0x45800d=new _0x2d9ce1(_0x28a592,_0x754739),_0x5dad9c=new _0x5dd389(_0x28a592),_0x13c45e=_0x1fa463['model'];_0x5dad9c['bind'](...Object['keys'](_0x13c45e))['to'](_0x13c45e),_0x5dad9c['delegate']('execute')['to'](_0x754739),_0x5dad9c['on']('execute',()=>{this['editor']['execute'](_0x13c45e['commandName']),this['editor']['editing']['view']['focus']();}),_0x45800d['children']['add'](_0x5dad9c),_0x45bdca['items']['add'](_0x45800d);}return _0x754739['bind']('isEnabled')['to'](_0x348844,'isEnabled'),_0x754739['panelView']['children']['add'](_0x45bdca),_0x754739;}['_initializeController'](_0x566aee){const _0x238735=this['editor'],_0x43b1f1=_0x238735['config'],_0x57a444=_0x238735['plugins']['get']('Annotations'),_0x5e7ad5=_0x238735['plugins']['get']('CommentsRepository'),_0x35e7f5=_0x238735['plugins']['get']('EditorAnnotations'),_0x150150=_0x238735['plugins']['get'](_0x46c909)['me'],_0x5923b6=_0x43b1f1['get']('trackChanges')['SuggestionThreadView'],_0x31dbc4=_0x43b1f1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x41ab4a,CommentThreadInputView:_0x1ebb03}=_0x238735['plugins']['get']('CommentsUI');let _0x2bc149,_0x191a53,_0x2dc49b;this['_annotationViews']['has'](_0x566aee['id'])?(_0x191a53=this['_annotationViews']['get'](_0x566aee['id']),_0x2bc149=_0x191a53['mainView']):(_0x2bc149=new _0x5923b6(_0x238735['locale'],_0x566aee,_0x150150,{'disableComments':this['_disableComments'],'editorConfig':{..._0x43b1f1['get']('comments.editorConfig'),'licenseKey':_0x43b1f1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x43b1f1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x43b1f1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x43b1f1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x8c60f5(_0x43b1f1['get']('locale')),'CommentView':_0x43b1f1['get']('comments')['CommentView'],'CommentsListView':_0x41ab4a,'CommentThreadInputView':_0x1ebb03,'SuggestionView':_0x31dbc4}),_0x2bc149['suggestionView']['acceptButton']['on']('execute',()=>{_0x238735['editing']['view']['focus']();}),_0x2bc149['suggestionView']['discardButton']['on']('execute',()=>{_0x238735['editing']['view']['focus']();}),_0x191a53=_0x57a444['createAnnotationView'](this['editor']['locale'],_0x2bc149),_0x191a53['bind']('isDirty')['to'](_0x2bc149,'isDirty'),_0x191a53['bind']('length')['to'](_0x2bc149),_0x191a53['bind']('type')['to'](_0x2bc149,'type',_0x57b4f7=>'suggestion-'+_0x57b4f7),_0x2bc149['on']('escape',()=>{_0x2dc49b['fire']('escape');}),this['_annotationViews']['set'](_0x566aee['id'],_0x191a53));const _0x304934=_0x5e7ad5['createCommentThreadController'](_0x566aee['commentThread'],_0x2bc149),_0x396548=new ge(_0x238735,_0x566aee,_0x2bc149,_0x304934),_0x44ca25=_0x566aee['getAllAdjacentSuggestions']()['filter'](_0x501b9d=>_0x501b9d['isInContent']);_0x2bc149['descriptionParts']=_0x238735['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x44ca25),this['_suggestionToController']['set'](_0x566aee,_0x396548),this['_viewToController']['set'](_0x2bc149,_0x396548),_0x2dc49b=_0x57a444['createAnnotation']({'view':_0x191a53,'target':()=>{const _0x50b766=[],_0x445adc=_0x566aee['getAllAdjacentSuggestions']()['filter'](_0x3148d5=>_0x3148d5['isInContent']);for(const _0x863eff of _0x445adc)_0x50b766['push'](..._0x863eff['getMarkers']());return _0x4c54ce(_0x238735['editing'],_0x50b766);},'type':()=>'suggestion-'+_0x396548['view']['type']}),_0x5e7ad5['_bindAnnotationToEditors'](_0x2bc149,_0x2dc49b),_0x57a444['add'](_0x2dc49b),_0x35e7f5['registerAnnotation'](_0x2dc49b);}['_destroyController'](_0x50416e){const _0x540a64=this['editor']['plugins']['get']('CommentsRepository'),_0x5f53f7=this['editor']['plugins']['get']('Annotations'),_0x294419=this['_suggestionToController']['get'](_0x50416e),_0x463b88=_0x294419['view'],_0x36f78e=_0x5f53f7['getByInnerView'](_0x463b88);_0x540a64['_unbindEditors'](_0x463b88),_0x36f78e&&_0x5f53f7['remove'](_0x36f78e),this['_suggestionToController']['delete'](_0x50416e),this['_viewToController']['delete'](_0x463b88),_0x294419['destroy']();}['_updateController'](_0x3f854f){if(!_0x3f854f['isInContent']||!this['_suggestionToController']['has'](_0x3f854f))return;const _0x4bde93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ac1a8=this['_suggestionToController']['get'](_0x3f854f),_0x51687b=_0x3f854f['getAllAdjacentSuggestions']();_0x1ac1a8['view']['descriptionParts']=_0x4bde93['descriptionFactory']['getDescriptions'](_0x51687b);}['destroy'](){for(const _0x822dc8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x822dc8);for(const _0x24e4c8 of this['_annotationViews']['values']())_0x24e4c8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x3e5083){return'model'in _0x3e5083;}class k extends _0x107d6b{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2eb609){this['editor']['plugins']['get'](p)['adapter']=_0x2eb609;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x9a3d22){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x9a3d22);}['getSuggestions']({skipNotAttached:_0x4fbbcb=!0x1,toJSON:_0x4f94df=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4fbbcb,'toJSON':_0x4f94df});}['getSuggestion'](_0x1371b1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1371b1);}}const w=['Pagination'];class T extends _0x107d6b{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1f4844=this['editor'];if(_0x1f4844['config']['define']('trackChangesData.editorCreator',_0x529416=>{const _0xc317f7=_0x1f4844['model']['document']['getRootNames']()['reduce']((_0xdf1213,_0x2a1882)=>(_0xdf1213[_0x2a1882]='',_0xdf1213),{});return _0x1f4844['constructor']['create'](_0xc317f7,_0x529416);}),'function'!=typeof _0x1f4844['config']['get']('trackChangesData')['editorCreator'])throw new _0xcd3701('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x251595){return N(this['editor'],!0x0,_0x251595);}['getDataWithDiscardedSuggestions'](_0x20794b){return N(this['editor'],!0x1,_0x20794b);}}class D extends _0x107d6b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54f4ef){function _0x28c1ea(_0x177013){return _0x177013['map'](_0x4dae9c=>String['fromCharCode'](_0x4dae9c))['join']('');}super(_0x54f4ef),this['result']='end',_0x54f4ef[_0x28c1ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28c1ea([0x76,0x69,0x65,0x77])][_0x28c1ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28c1ea([0x61,0x75,0x74,0x6f]),_0x54f4ef[_0x28c1ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x28c1ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28c1ea([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x28c1ea([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x28c1ea([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 v(_0x62f995){return void 0x0!==_0x62f995['getRootsAttributes'];}async function N(_0x461a04,_0xdc72f1,_0x517906){const _0x14cc67=_0x93c360(_0x461a04,w);_0x14cc67['plugins']['push'](p,D),_0x14cc67['rootsAttributes']=v(_0x461a04)?_0x461a04['getRootsAttributes']():void 0x0;const _0x3b60e2=document['createDocumentFragment'](),_0x1b1518=_0x461a04['config']['get']('trackChangesData')['editorCreator'],_0x2eba23=await _0x1b1518(_0x14cc67,()=>function(_0x283feb){const _0x256a43=document['createElement']('div');return _0x283feb['appendChild'](_0x256a43),_0x256a43;}(_0x3b60e2));!function(_0x3c1e13,_0x46a3d6){const _0x45a2da=_0x3c1e13['model']['document']['getRootNames']()['reduce']((_0x575892,_0x5ac1a3)=>(_0x575892[_0x5ac1a3]=_0x3c1e13['data']['get']({'rootName':_0x5ac1a3}),_0x575892),{}),_0x5870de=_0x3c1e13['plugins']['get']('Users')['users']['map'](_0x21f1bf=>({'id':_0x21f1bf['id'],'name':_0x21f1bf['name']})),_0x381322=_0x3c1e13['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2c4751=_0x3c1e13['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x103f67=_0x46a3d6['plugins']['get']('Users'),_0x1febfd=_0x46a3d6['plugins']['get']('TrackChangesEditing'),_0x5e20b0=_0x46a3d6['plugins']['get']('CommentsRepository');for(const _0x28f2ef of _0x5e20b0['getCommentThreads']())_0x28f2ef['remove']();for(const _0x503a33 of _0x5870de)_0x103f67['getUser'](_0x503a33['id'])||_0x103f67['addUser'](_0x503a33);_0x103f67['me']||_0x103f67['useAnonymousUser']();for(const _0x55fed0 of _0x2c4751)_0x5e20b0['addCommentThread'](_0x55fed0);for(const _0x3675fa of _0x381322)_0x1febfd['addSuggestionData'](_0x3675fa);_0x46a3d6['data']['set'](_0x45a2da);}(_0x461a04,_0x2eba23),_0x2eba23['execute'](_0xdc72f1?'acceptAllSuggestions':'discardAllSuggestions');const _0x29769a=v(_0x2eba23)?_0x2eba23['getFullData'](_0x517906):_0x2eba23['data']['get'](_0x517906);return await _0x2eba23['destroy'](),_0x29769a;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as Qt,Plugin as _0x50e036,PendingActions as _0x41cc81,icons as _0x9b907a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x317959,ObservableMixin as _0xe598a6,uid as _0x2f9277,insertToPriorityArray as _0x5c0ac4,priorities as _0x54525e,logWarning as _0x39feda,getEnvKeystrokeText as _0x3ebc74,FocusTracker as _0x25ded3,KeystrokeHandler as _0xae2b9e,Collection as _0x538efc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5fd3d8,View as _0x51a650,ViewCollection as _0x369734,FocusCycler as ts,ViewModel as _0x186cb8,createDropdown as _0x44e92d,SplitButtonView as _0x22e6bb,addListToDropdown as te,MenuBarMenuView as _0x17d62b,MenuBarMenuListView as _0x4ad668,ListSeparatorView as _0x1ede73,MenuBarMenuListItemView as _0x26e7ae,MenuBarMenuListItemButtonView as _0x4d3318}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x80959d,hashObject as _0x4f9a88,surroundingMarkersDetector as _0x423cad,FOCUS_ANNOTATION_KEYSTROKE as _0x30a128,AriaDescriptionView as _0x3ec1ff,setupThreadKeyboardNavigation as _0x2277c7,trimHtml as ti,UserView as _0x491b6c,LateFocusButtonView as _0x3ce31e,getDateTimeFormatter as _0x224b9b,getAllMarkersDomElementsSorted as _0x4c6ccc,sanitizeEditorConfig as _0x45aedd}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x492fa5,LiveRange as _0x13a61a,LivePosition as _0x139145}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4dd171,toWidget as _0x316667}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x381b84,set as _0x557ece,isEqual as _0x37e249,unset as _0x4a0cd0,omit as xt}from'lodash-es';import{Delete as _0xb35e03,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x72d1a5,ShiftEnter as _0x4acbfa}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x3cc361,_0x1ebb46){super(_0x3cc361),this['_enabledCommands']=_0x1ebb46,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 _0x1f1a11 of this['editor']['commands']['commands']())_0x1f1a11['affectsData']&&!this['_enabledCommands']['has'](_0x1f1a11)&&_0x1f1a11['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5c9eca of this['editor']['commands']['commands']())_0x5c9eca['affectsData']&&!this['_enabledCommands']['has'](_0x5c9eca)&&_0x5c9eca['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x3e6a10,_0x4f98f2){super(_0x3e6a10),this['_suggestions']=_0x4f98f2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x547b11){const _0x4aafa4=this['_suggestions']['get'](_0x547b11);if(!_0x4aafa4)throw new _0x317959('track-changes-accept-suggestion-not-found',this);const _0x167c21=_0x4aafa4['getRanges']();this['editor']['model']['canEditAt'](_0x167c21)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4aafa4);}}class R extends Qt{['_suggestions'];constructor(_0x1a63fa,_0x12bee5){super(_0x1a63fa),this['_suggestions']=_0x12bee5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2f49ce){const _0x79d886=this['_suggestions']['get'](_0x2f49ce);if(!_0x79d886)throw new _0x317959('track-changes-discard-suggestion-not-found',this);const _0x27afce=_0x79d886['getRanges']();this['editor']['model']['canEditAt'](_0x27afce)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x79d886);}}function ns(_0x5a4ea8,_0x4f0a4e){let _0x5c6cd3='';return _0x5c6cd3+=_0x5a4ea8['split']('*')['map']((_0x461d49,_0x5472db)=>_0x5472db%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x461d49)+'</span>':nn(_0x461d49))['join'](''),_0x4f0a4e&&(_0x5c6cd3+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4f0a4e['value']+'\x22\x20title=\x22'+_0x4f0a4e['title']+'\x22></span>'),_0x5c6cd3;}function nn(_0x2de6ec){const _0x109e9d=document['createElement']('span');return _0x109e9d['innerText']=_0x2de6ec,_0x109e9d['innerHTML'];}function Wt(_0x2e8311){return _0x2e8311['sort']((_0x49ad8a,_0x28903f)=>'deletion'==_0x49ad8a['type']&&'deletion'!=_0x28903f['type']?-0x1:'deletion'!=_0x49ad8a['type']&&'deletion'==_0x28903f['type']?0x1:0x0);}function to(_0x3b1e4b,_0x3f2a70){let _0xe55d90,_0x490ab1=0x0;const _0x4db0fc=[],_0x76ac3e=_0x3f2a70['schema'];for(;_0x490ab1<_0x3b1e4b['length'];){const _0x5ae47f=_0x3b1e4b[_0x490ab1],_0x512a13=_0x3b1e4b[_0x490ab1+0x1];_0xe55d90||(_0xe55d90=_0x3f2a70['createPositionBefore'](_0x5ae47f)),on(_0x3f2a70,_0x5ae47f,_0x512a13)||(_0x4db0fc['push'](_0x3f2a70['createRange'](_0xe55d90,_0x76ac3e['isObject'](_0x5ae47f)?_0x3f2a70['createPositionAfter'](_0x5ae47f):_0x3f2a70['createPositionAt'](_0x5ae47f,'end'))),_0xe55d90=null),_0x490ab1++;}return _0x4db0fc;}function on(_0x17fb66,_0x3791a9,_0x4e990f){if(!_0x4e990f)return!0x1;const _0x188927=_0x17fb66['createPositionAfter'](_0x3791a9),_0x537344=_0x17fb66['createPositionBefore'](_0x4e990f);return _0x188927['isTouching'](_0x537344);}function Xt(_0x2e71f,_0x2537f7,_0x9a7b31){for(;_0x9a7b31['length'];){const _0x4aa947=_0x9a7b31['splice'](0x0,0x64);_0x2e71f['change'](()=>{for(const _0x572c3b of _0x4aa947)_0x572c3b['isInContent']&&_0x2537f7['execute'](_0x572c3b['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x2d59f4,_0x583910,_0x50c57a){super(_0x2d59f4),this['_command']=_0x583910,this['_suggestions']=_0x50c57a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x574094=Array['from'](this['_suggestions']['values']())['some'](_0x38f899=>_0x38f899['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x574094;}['execute'](){const _0x4cc1bb=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x54704f of _0x4cc1bb){const _0x346d08=_0x54704f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x346d08))return;}Xt(this['editor']['model'],this['_command'],_0x4cc1bb);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x275bb5,_0x5861cb,_0x207fe1){super(_0x275bb5),this['_command']=_0x5861cb,this['_suggestions']=_0x207fe1,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5c1c72=this['editor']['model']['document']['selection'],_0x25b20b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1e140b,_0x27c01d){const _0x5a3898=Array['from'](_0x1e140b['getRanges']()),_0xb0c1a7=new Set();for(const _0xdfb7a7 of _0x27c01d)if(_0xdfb7a7['isInContent']){for(const _0x5b585d of _0x5a3898)for(const _0x516989 of _0xdfb7a7['getRanges']())(_0x5b585d['isIntersecting'](_0x516989)||_0x1e140b['isCollapsed']&&!_0xdfb7a7['isMultiRange']&&_0xdfb7a7['next']&&_0x516989['end']['isTouching'](_0x5b585d['start']))&&_0xb0c1a7['add'](_0xdfb7a7);}return _0xb0c1a7;}(_0x5c1c72,_0x25b20b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x492ebb=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x3194d2 of _0x492ebb){const _0x255d17=_0x3194d2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x255d17))return;}Xt(this['editor']['model'],this['_command'],_0x492ebb);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0xe598a6(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x565512,_0x23ee1a){super(),this['id']=_0x23ee1a['id'],this['type']=_0x23ee1a['type'],this['subType']=_0x23ee1a['subType']||null,this['author']=_0x23ee1a['author'],this['creator']=_0x23ee1a['creator']||_0x23ee1a['author'],this['isExternal']=Boolean(_0x23ee1a['attributes']&&_0x23ee1a['attributes']['@external']),this['data']=null,this['_model']=_0x565512,this['_onAccept']=_0x23ee1a['onAccept'],this['_onDiscard']=_0x23ee1a['onDiscard'],this['_onAttributesChange']=_0x23ee1a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x23ee1a['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 _0x355825=this;for(;_0x355825['previous'];)_0x355825=_0x355825['previous'];return _0x355825;}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'](_0x3fb397){this['_markerNames']['add'](_0x3fb397);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4f0a63=>this['_model']['markers']['get'](_0x4f0a63))['filter'](_0x3f134f=>_0x3f134f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x469201=>{for(const _0x2da721 of this['getMarkers']())_0x469201['removeMarker'](_0x2da721);}),this['_markerNames']['clear']();}['removeMarker'](_0x563b3b){this['_model']['change'](_0x3964ec=>{_0x3964ec['removeMarker'](_0x563b3b);}),this['_markerNames']['delete'](_0x563b3b);}['addRange'](_0x46e1d0){const _0x43b80a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x43b80a),this['_model']['change'](_0x450cf2=>{_0x450cf2['addMarker'](_0x43b80a,{'range':_0x46e1d0,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4dcc74){for(const _0x15bb5b of this['getRanges']())if(_0x15bb5b['isIntersecting'](_0x4dcc74))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x298853=>_0x298853['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2c0507,_0xb50f6b)=>[..._0x2c0507,..._0xb50f6b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xa7cb2f=this['getRanges']();if(0x1!=_0xa7cb2f['length'])return null;const _0x593539=_0xa7cb2f[0x0],_0xef2fc3=_0x593539['start']['nodeAfter'],_0x3b02d8=_0x593539['end']['nodeBefore'];return _0xef2fc3 instanceof _0x492fa5?_0xef2fc3!=_0x3b02d8?null:_0xef2fc3: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 _0x406bac=[];let _0x311f4f=this['head'];for(;_0x311f4f;)_0x406bac['push'](_0x311f4f),_0x311f4f=_0x311f4f['next'];return _0x406bac;}['setAttribute'](_0x37a95b,_0x43d306){const _0x2d4c92=_0x381b84(this['attributes']);_0x557ece(_0x2d4c92,_0x37a95b,_0x43d306),_0x37e249(_0x2d4c92,this['attributes'])||(this['attributes']=_0x2d4c92,this['_onAttributesChange'](_0x2d4c92));}['removeAttribute'](_0x2dd350){const _0x3962df=_0x381b84(this['attributes']);_0x4a0cd0(_0x3962df,_0x2dd350),_0x37e249(_0x3962df,this['attributes'])||(this['attributes']=_0x3962df,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 _0x2f9277()['substr'](0x1,0x5);}}function o(_0x538b6d,_0x343a4e,_0x12cb8a){const _0x20ba2c=_0x538b6d['t'],t=_0x538b6d['t'];switch(_0x343a4e){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'*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',_0x12cb8a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x12cb8a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x12cb8a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x12cb8a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x12cb8a);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',_0x12cb8a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x12cb8a);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x12cb8a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x12cb8a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x12cb8a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x12cb8a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x12cb8a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x12cb8a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x12cb8a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x12cb8a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x12cb8a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x12cb8a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x12cb8a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x12cb8a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x12cb8a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x12cb8a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x12cb8a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x12cb8a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x12cb8a);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'},_0x12cb8a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x12cb8a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x12cb8a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x12cb8a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x12cb8a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x12cb8a);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'},_0x12cb8a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x12cb8a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x12cb8a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x12cb8a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x12cb8a);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'},_0x12cb8a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x12cb8a);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'},_0x12cb8a);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'},_0x12cb8a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x12cb8a);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'},_0x12cb8a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x12cb8a);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'},_0x12cb8a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x12cb8a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x12cb8a);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'},_0x12cb8a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x12cb8a);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 _0x20ba2c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x12cb8a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x20ba2c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x12cb8a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x12cb8a);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'},_0x12cb8a);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'},_0x12cb8a);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'},_0x12cb8a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x343a4e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x36a9b2,_0x2d4f8d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x36a9b2,this['_locale']=_0x2d4f8d;}['getDescriptions'](_0x18dd5a){const _0x55faff=[],_0x1c6867=new Set(),_0x301e0c=new Set();for(let _0x53247c=0x0;_0x53247c<_0x18dd5a['length'];_0x53247c++){const _0x3c0c78=_0x18dd5a[_0x53247c];if(!_0x3c0c78['isInContent'])continue;const _0x5f0546=this['_handleCustomCallbackDescription'](_0x3c0c78);if(_0x5f0546){if(null!=_0x3c0c78['subType']){if(_0x1c6867['has'](_0x3c0c78['subType']))continue;_0x1c6867['add'](_0x3c0c78['subType']);}_0x55faff['push'](_0x5f0546);}else{if('attribute'!=_0x3c0c78['type'])'insertion'!=_0x3c0c78['type']&&'deletion'!=_0x3c0c78['type']||this['_handleInsertRemoveSuggestionDescription'](_0x55faff,_0x3c0c78,_0x18dd5a[_0x53247c+0x1]);else{const _0x3b39cf=_0x3c0c78['data']['key'];if(_0x301e0c['has'](_0x3b39cf))continue;_0x301e0c['add'](_0x3c0c78['data']['key']),_0x3b39cf==m?this['_handleRenameSuggestionDescription'](_0x55faff,_0x3c0c78):this['_handleAttributeSuggestionDescription'](_0x55faff,_0x3c0c78);}}}return this['_resolveDescriptionItems'](_0x55faff);}['registerDescriptionCallback'](_0x3d4061){this['_customCallbacks']['push'](_0x3d4061);}['registerElementLabel'](_0x5cc244,_0x5c9d50,_0x58b23e=_0x54525e['normal']){'function'==typeof _0x5cc244?_0x5c0ac4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5cc244,'label':_0x5c9d50,'priority':_0x58b23e}):this['_itemLabels']['set'](_0x5cc244,_0x5c9d50);}['registerAttributeLabel'](_0x4fc3b4,_0x530094){this['_attributeLabels']['set'](_0x4fc3b4,_0x530094);}['getItemLabel'](_0x287a34,_0x331172=0x1){let _0x3da293;for(const _0x275893 of this['_itemLabelsCallbacks'])if(_0x275893['matchingCallback'](_0x287a34)){_0x3da293=_0x275893['label'];break;}return _0x3da293||(_0x3da293=this['_itemLabels']['get'](_0x287a34['name'])),_0x3da293?_0x3da293(_0x331172):0x1!==_0x331172?_0x331172+'\x20'+_0x287a34['name']+'s':''+_0x287a34['name'];}['_addDescriptionItems'](_0x3646f9,_0x574098){const _0x4d8fa1=_0x574098['getFirstRange']()['getWalker'](),_0x4b2eac='insertion'==_0x574098['type']?'add':'remove';for(const _0x4f629a of _0x4d8fa1){const _0x3307d8=_0x4f629a['item'],_0x2cd587=_0x3646f9[_0x3646f9['length']-0x1];if(_0x3307d8['is']('$textProxy'))_0x2cd587&&_0x2cd587['type']['indexOf']('Container')>-0x1&&_0x3646f9['pop'](),_0x2cd587&&'text'==_0x2cd587['type']?_0x2cd587[_0x4b2eac]+=_0x3307d8['data']:_0x3646f9['push']({'type':'text','add':'add'==_0x4b2eac?_0x3307d8['data']:'','remove':'remove'==_0x4b2eac?_0x3307d8['data']:''});else{if(this['_schema']['isObject'](_0x3307d8)){const _0x148f23=_0x3307d8;if(_0x2cd587&&_0x2cd587['type']['indexOf']('Container')>-0x1&&_0x3646f9['pop'](),'elementEnd'==_0x4f629a['type'])continue;_0x2cd587&&_0x2cd587['type']==_0x4b2eac+'Object'&&_0x2cd587['element']['name']==_0x148f23['name']?_0x2cd587['quantity']++:_0x3646f9['push']({'type':_0x4b2eac+'Object','element':_0x148f23,'quantity':0x1}),_0x4d8fa1['skip'](_0x1558de=>!('elementEnd'==_0x1558de['type']&&_0x1558de['item']==_0x3307d8));}else{if(this['_schema']['checkChild'](_0x3307d8,'$text')||_0x3307d8['is']('element','softBreak')){const _0x10ddfc=_0x3307d8;if('add'==_0x4b2eac&&'elementStart'==_0x4f629a['type']||'remove'==_0x4b2eac&&'elementEnd'==_0x4f629a['type'])continue;if(_0x2cd587&&-0x1==_0x2cd587['type']['indexOf']('Container')){'text'==_0x2cd587['type']&&(_0x2cd587[_0x4b2eac]+='\x0a');continue;}let _0x57ae44;if(_0x57ae44='add'==_0x4b2eac?_0x10ddfc['nextSibling']&&!this['_schema']['isObject'](_0x10ddfc['nextSibling'])?_0x10ddfc['nextSibling']:null:_0x10ddfc['previousSibling']&&!this['_schema']['isObject'](_0x10ddfc['previousSibling'])?_0x10ddfc['previousSibling']:null,_0x10ddfc['isEmpty']||_0x57ae44&&_0x57ae44['isEmpty']){const _0x55d1d6=_0x57ae44&&_0x57ae44['isEmpty']?_0x57ae44:_0x10ddfc;_0x2cd587&&_0x2cd587['type']==_0x4b2eac+'EmptyContainer'&&_0x2cd587['element']['name']==_0x55d1d6['name']?_0x2cd587['quantity']++:_0x3646f9['push']({'type':_0x4b2eac+'EmptyContainer','element':_0x55d1d6,'quantity':0x1});}else _0x3646f9['push']({'type':_0x4b2eac+'Container','element':_0x10ddfc});}}}}}['_resolveDescriptionItems'](_0x5cac27){const _0xe09d61=this['_locale'],_0x8a50c5=[],_0x348509=[],_0x204db3=[];for(const _0x5a03e8 of _0x5cac27)switch(_0x5a03e8['type']){case'text':if(_0x5a03e8['add']=_0x5a03e8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5a03e8['remove']=_0x5a03e8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5a03e8['add']&&''!=_0x5a03e8['remove']){_0x8a50c5['push']({'type':'replace','content':o(_0xe09d61,'REPLACE_TEXT',['\x22'+_0x5a03e8['remove']+'\x22','\x22'+_0x5a03e8['add']+'\x22'])});continue;}if(null!=_0x5a03e8['add']['match'](/^ +$/)){_0x8a50c5['push']({'type':'insertion','content':o(_0xe09d61,'*Insert:*\x20%0',o(_0xe09d61,'ELEMENT_SPACE',_0x5a03e8['add']['length']))});continue;}if(null!=_0x5a03e8['remove']['match'](/^ +$/)){_0x8a50c5['push']({'type':'deletion','content':o(_0xe09d61,'*Remove:*\x20%0',o(_0xe09d61,'ELEMENT_SPACE',_0x5a03e8['remove']['length']))});continue;}if(''!=_0x5a03e8['add']){_0x8a50c5['push']({'type':'insertion','content':o(_0xe09d61,'*Insert:*\x20%0','\x22'+_0x5a03e8['add']+'\x22')});continue;}_0x8a50c5['push']({'type':'deletion','content':o(_0xe09d61,'*Remove:*\x20%0','\x22'+_0x5a03e8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x8a50c5['push']({'type':'insertion','content':o(_0xe09d61,'*Insert:*\x20%0',this['getItemLabel'](_0x5a03e8['element'],_0x5a03e8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x8a50c5['push']({'type':'deletion','content':o(_0xe09d61,'*Remove:*\x20%0',this['getItemLabel'](_0x5a03e8['element'],_0x5a03e8['quantity']))});continue;case'addContainer':_0x8a50c5['push']({'type':'insertion','content':o(_0xe09d61,'*Split:*\x20%0',this['getItemLabel'](_0x5a03e8['element'],_0x5a03e8['quantity']))});continue;case'removeContainer':_0x8a50c5['push']({'type':'deletion','content':o(_0xe09d61,'*Merge:*\x20%0',this['getItemLabel'](_0x5a03e8['element'],_0x5a03e8['quantity']))});continue;case'addFormat':_0x348509['push'](_0x5a03e8['key']);continue;case'removeFormat':_0x204db3['push'](_0x5a03e8['key']);continue;default:_0x8a50c5['push'](_0x5a03e8);}if(_0x348509['length']){const _0x31751b=_0x348509['map'](_0x1899a6=>this['_attributeLabels']['has'](_0x1899a6)?this['_attributeLabels']['get'](_0x1899a6):_0x1899a6)['join'](',\x20');_0x8a50c5['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x31751b)});}if(_0x204db3['length']){const _0x319e50=_0x204db3['map'](_0x2b871f=>this['_attributeLabels']['has'](_0x2b871f)?this['_attributeLabels']['get'](_0x2b871f):_0x2b871f)['join'](',\x20');_0x8a50c5['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x319e50)});}return _0x8a50c5;}['_handleCustomCallbackDescription'](_0x55fa4b){for(const _0x51a432 of this['_customCallbacks']){const _0x3b7297=_0x51a432(_0x55fa4b);if(_0x3b7297&&'type'in _0x3b7297)return _0x3b7297;}}['_handleAttributeSuggestionDescription'](_0x3b3a40,_0x49378b){const _0x4ea21d=_0x49378b['data'],_0x3d295f=void 0x0===_0x4ea21d['newValue']?'removeFormat':'addFormat';_0x3b3a40['push']({'type':_0x3d295f,'key':_0x4ea21d['key']});}['_handleRenameSuggestionDescription'](_0x2adb85,_0x2f653c){_0x2adb85['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2f653c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x55e02d,_0x5add98,_0x4d125f){if(this['_addDescriptionItems'](_0x55e02d,_0x5add98),_0x4d125f&&_0x4d125f['getFirstRange']()&&!_0x5add98['getFirstRange']()['end']['isEqual'](_0x4d125f['getFirstRange']()['start'])){const _0x28c2b4=_0x55e02d[_0x55e02d['length']-0x1],_0x2c6135='insertion'==_0x5add98['type']?'add':'remove';_0x28c2b4&&'text'==_0x28c2b4['type']&&(_0x28c2b4[_0x2c6135]+='\x0a');}}}class U extends _0x50e036{['afterInit'](){const _0x1355b3=this['editor'],_0x5e3676=_0x1355b3['plugins']['get']('TrackChangesEditing');_0x1355b3['commands']['get']('showAIAssistant')&&_0x5e3676['enableCommand']('showAIAssistant');}}class V extends _0x50e036{['afterInit'](){const _0x28fdb4=this['editor'],_0x3019c9=_0x28fdb4['locale'];if(!_0x28fdb4['plugins']['has']('AlignmentEditing'))return;const _0x13a931=_0x28fdb4['plugins']['get']('TrackChangesEditing');_0x13a931['enableDefaultAttributesIntegration']('alignment'),_0x13a931['registerBlockAttribute']('alignment'),_0x13a931['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3019c9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2155c8=this['editor'],_0xf7d1e=_0x2155c8['locale'];_0x2155c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ceebc=>{if('formatBlock'!=_0x4ceebc['type'])return;const {data:_0x36a77f}=_0x4ceebc;if(_0x36a77f&&'alignment'==_0x36a77f['commandName']){const _0x46f302=_0x36a77f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xf7d1e,'*Format:*\x20%0',function(_0x20a203){switch(_0x20a203){case'left':return o(_0xf7d1e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xf7d1e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xf7d1e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xf7d1e,'FORMAT_JUSTIFY_TEXT');}}(_0x46f302))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x50e036{['afterInit'](){const _0x5c9545=this['editor'],_0x43783c=_0x5c9545['plugins']['get']('TrackChangesEditing'),_0x5b4910=_0x5c9545['locale'];for(const _0x2da824 of Zt){if(!_0x5c9545['plugins']['has'](_0x2da824))continue;const _0x146a9f=_0x2da824['slice'](0x0,-0x7)['toLowerCase'](),_0x16e20c='FORMAT_'+_0x146a9f['toUpperCase']();_0x43783c['enableDefaultAttributesIntegration'](_0x146a9f),_0x43783c['registerInlineAttribute'](_0x146a9f),_0x43783c['descriptionFactory']['registerAttributeLabel'](_0x146a9f,o(_0x5b4910,_0x16e20c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1316b5=this['editor'],_0x3e4bed=_0x1316b5['locale'],_0x41693d=_0x1316b5['plugins']['get']('TrackChangesEditing');function _0x16abc0(_0x1e5842,_0x22f035){_0x41693d['descriptionFactory']['registerDescriptionCallback'](_0x96ceb6=>{if('formatInline'!=_0x96ceb6['type'])return;const {data:_0x3fe4f9}=_0x96ceb6;return _0x3fe4f9&&_0x3fe4f9['commandName']===_0x1e5842?_0x3fe4f9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e4bed,'*Format:*\x20%0',_0x22f035)}:{'type':'format','content':o(_0x3e4bed,'*Remove\x20format:*\x20%0',_0x22f035)}:void 0x0;});}_0x16abc0('bold',o(_0x3e4bed,'FORMAT_BOLD')),_0x16abc0('italic',o(_0x3e4bed,'FORMAT_ITALIC')),_0x16abc0('underline',o(_0x3e4bed,'FORMAT_UNDERLINE')),_0x16abc0('code',o(_0x3e4bed,'FORMAT_CODE')),_0x16abc0('strikethrough',o(_0x3e4bed,'FORMAT_STRIKETHROUGH')),_0x16abc0('subscript',o(_0x3e4bed,'FORMAT_SUBSCRIPT')),_0x16abc0('superscript',o(_0x3e4bed,'FORMAT_SUPERSCRIPT'));}}class F extends _0x50e036{['afterInit'](){const _0xa0ebff=this['editor'],_0x6b9f26=_0xa0ebff['locale'];if(!_0xa0ebff['plugins']['has']('BlockQuoteEditing'))return;const _0x27d125=_0xa0ebff['plugins']['get']('TrackChangesEditing'),_0x4de1f7=this['editor']['commands']['get']('blockQuote');_0x27d125['enableCommand']('blockQuote',(_0x1e94cd,_0x4a1e54={})=>{const _0x18e41b=this['editor']['model']['document']['selection'],_0x476015=_0x4a1e54&&void 0x0!==_0x4a1e54['forceValue']?_0x4a1e54['forceValue']:!_0x4de1f7['value'];let _0x12ad0f=[];if(_0x476015){const _0x542eb2=Array['from'](_0x18e41b['getSelectedBlocks']())['filter'](_0x856c8c=>oo(_0x856c8c)||function(_0x6072f2,_0xf0e9c9){const _0x4153d9=_0xf0e9c9['checkChild'](_0x6072f2['parent'],'blockQuote'),_0x115003=_0xf0e9c9['checkChild'](['$root','blockQuote'],_0x6072f2);return _0x4153d9&&_0x115003;}(_0x856c8c,this['editor']['model']['schema']));_0x12ad0f=to(_0x542eb2,_0xa0ebff['model']);}else{const _0x4c42f5=Array['from'](_0x18e41b['getSelectedBlocks']())['filter'](_0x3380bf=>oo(_0x3380bf));_0x12ad0f=to(_0x4c42f5,_0xa0ebff['model']);}_0xa0ebff['model']['change'](()=>{for(const _0x44d9bb of _0x12ad0f)_0x27d125['markBlockFormat'](_0x44d9bb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x476015}]});});}),_0x27d125['descriptionFactory']['registerDescriptionCallback'](_0x41a25b=>{const {data:_0x15c8b4}=_0x41a25b;if(_0x15c8b4&&'blockQuote'==_0x15c8b4['commandName']){const _0x26282f=o(_0x6b9f26,'ELEMENT_BLOCK_QUOTE');return _0x15c8b4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6b9f26,'*Set\x20format:*\x20%0',_0x26282f)}:{'type':'format','content':o(_0x6b9f26,'*Remove\x20format:*\x20%0',_0x26282f)};}});}}function oo(_0x132543){return'blockQuote'==_0x132543['parent']['name'];}class L extends _0x50e036{['afterInit'](){const _0x1d3df6=this['editor'],_0x5dda32=_0x1d3df6['locale'],_0x555fcd=_0x1d3df6['plugins']['get']('TrackChangesEditing');_0x1d3df6['plugins']['has']('BookmarkEditing')&&(_0x555fcd['enableCommand']('insertBookmark'),_0x555fcd['enableDefaultAttributesIntegration']('updateBookmark'),_0x555fcd['registerBlockAttribute']('bookmarkId'),_0x555fcd['descriptionFactory']['registerDescriptionCallback'](_0x126d9d=>{if('insertion'!=_0x126d9d['type']&&'deletion'!=_0x126d9d['type']&&'attribute'!=_0x126d9d['type'])return;const _0x2e61a8=_0x126d9d['getContainedElement']();if(null==_0x2e61a8)return;if(!_0x2e61a8['is']('element','bookmark'))return;const _0x4ec16b=_0x2e61a8['getAttribute']('bookmarkId');if('insertion'==_0x126d9d['type'])return{'type':'insertion','content':o(_0x5dda32,'*Insert:*\x20%0','\x22'+_0x4ec16b+'\x22\x20'+o(_0x5dda32,'ELEMENT_BOOKMARK'))};if('deletion'==_0x126d9d['type'])return{'type':'deletion','content':o(_0x5dda32,'*Remove:*\x20%0','\x22'+_0x4ec16b+'\x22\x20'+o(_0x5dda32,'ELEMENT_BOOKMARK'))};const {data:_0x58ab15}=_0x126d9d;if(!_0x58ab15||'bookmarkId'!=_0x58ab15['key'])return;return{'type':'format','content':o(_0x5dda32,'*Set\x20bookmark:*\x20%0','\x22'+_0x58ab15['newValue']+'\x22')};}));}}class J extends _0x50e036{['afterInit'](){const _0x5bb795=this['editor'];_0x5bb795['plugins']['has']('CaseChange')&&(_0x5bb795['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5bb795['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5bb795['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x50e036{['afterInit'](){const _0x15d3e6=this['editor'];_0x15d3e6['commands']['get']('ckbox')&&_0x15d3e6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x50e036{['afterInit'](){const _0x5cc21d=this['editor'];if(!_0x5cc21d['plugins']['has']('CodeBlock'))return;const _0x2efda2=_0x5cc21d['plugins']['get']('TrackChangesEditing'),_0x337853=_0x5cc21d['locale'],_0x1cc917=_0x5cc21d['config']['get']('codeBlock')['languages'],_0x4424d1=_0x5cc21d['commands']['get']('codeBlock');_0x2efda2['enableCommand']('indentCodeBlock'),_0x2efda2['enableCommand']('outdentCodeBlock'),_0x2efda2['enableCommand']('codeBlock',(_0x45d635,_0x279898={})=>{const _0xdabc41=_0x5cc21d['model'],_0x441811=_0x5cc21d['model']['document']['selection'],_0x1eff2e=_0x279898&&void 0x0!==_0x279898['forceValue']?_0x279898['forceValue']:!_0x4424d1['value'];let _0x2766fd;_0x279898['language']||(_0x279898['language']=_0x1cc917[0x0]['language']),_0x2766fd=_0x1eff2e?Array['from'](_0x441811['getSelectedBlocks']())['filter'](_0x143f91=>eo(_0x143f91)||function(_0x5698f3,_0x27d6e1){if(_0x5698f3['is']('rootElement')||_0x27d6e1['isLimit'](_0x5698f3))return!0x1;return _0x27d6e1['checkChild'](_0x5698f3['parent'],'codeBlock');}(_0x143f91,_0xdabc41['schema'])):Array['from'](_0x441811['getSelectedBlocks']())['filter'](_0x78fed=>eo(_0x78fed));const _0x297129=to(_0x2766fd,_0xdabc41);_0xdabc41['change'](()=>{for(const _0x116432 of _0x297129)_0x2efda2['markBlockFormat'](_0x116432,{'commandName':'codeBlock','commandParams':[{..._0x279898,'forceValue':_0x1eff2e}],'formatGroupId':'blockName'});});}),(_0x2efda2['descriptionFactory']['registerElementLabel']('codeBlock',_0x2da8d4=>o(_0x337853,'ELEMENT_CODE_BLOCK',_0x2da8d4)),_0x2efda2['descriptionFactory']['registerDescriptionCallback'](_0xf5e4ee=>{if('formatBlock'!=_0xf5e4ee['type'])return;const _0x433ffb=_0x337853['t'],{data:_0x18d05b}=_0xf5e4ee;if(!_0x18d05b||'codeBlock'!=_0x18d05b['commandName'])return;const _0x44b1e3=_0x18d05b['commandParams'][0x0]['language'],_0x37133f=_0x433ffb(_0x1cc917['find'](_0x161d22=>_0x161d22['language']===_0x44b1e3)['label'])['toLowerCase']();return _0x18d05b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x337853,'*Set\x20format:*\x20%0',o(_0x337853,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x37133f+')')}:{'type':'format','content':o(_0x337853,'*Remove\x20format:*\x20%0',o(_0x337853,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4a3351){return'codeBlock'==_0x4a3351['name'];}class z extends _0x50e036{['afterInit'](){const _0xffb3eb=this['editor'];if(!_0xffb3eb['plugins']['has']('CommentsEditing'))return;_0xffb3eb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x575c34,_0x16af08,_0x340058){const _0x2d1bf3=[];for(const _0x2118e6 of _0x16af08['getItems']())_0x2118e6['hasAttribute'](_0x575c34)&&_0x2d1bf3['push'](_0x340058['createRangeOn'](_0x2118e6));return _0x2d1bf3;}function Ne(_0x21e92a,_0x1e1830,{showActiveMarker:_0x420433=!0x0}={}){const _0x4bf51a=_0x21e92a['plugins']['get']('TrackChangesEditing');return(_0x1921f6,_0x313037,_0x4274b8)=>{if(!_0x4274b8['consumable']['test'](_0x313037['markerRange'],_0x1921f6['name']))return;const _0x2ab08a=_0x313037['markerRange']['getWalker'](),_0x508493=_0x313037['markerRange']['start'],_0x3e248e=_0x21e92a['model']['schema'];let _0x3e774a=null,_0x182e61=null,_0x285ae3=!0x1,_0x59e3d0=!0x1;for(const _0x481765 of _0x2ab08a){const _0x45072d=_0x481765['item'];_0x285ae3=_0x285ae3||_0x3e248e['isContent'](_0x45072d);const _0x4dab1c=_0x4274b8['mapper']['toViewElement'](_0x45072d);if(_0x4dab1c&&_0x4dab1c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x481765['type']&&(_0x3e248e['isBlock'](_0x45072d)&&!_0x3e248e['isLimit'](_0x45072d)&&(_0x45072d['nextSibling']||_0x508493['isAtEnd']?_0x3e774a&&_0x3e774a['parent']==_0x45072d||(_0x3e774a=_0x45072d,_0x1f8df5(_0x481765['previousPosition']),_0x59e3d0=!0x0):_0x182e61=_0x182e61||_0x481765['previousPosition']));}function _0x1f8df5(_0x1d50a1){const {authorId:_0x94c0ea}=_0x4bf51a['_splitMarkerName'](_0x313037['markerName']),_0x31e055=_0x4274b8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1e1830,'data-author-id':_0x94c0ea}),_0x211162=_0x4274b8['mapper']['toViewPosition'](_0x1d50a1);_0x420433&&_0x4bf51a['activeMarkers']['includes'](_0x313037['markerName'])&&_0x4274b8['writer']['addClass']('ck-suggestion-marker--active',_0x31e055),_0x4274b8['writer']['insert'](_0x211162,_0x31e055),_0x4274b8['mapper']['bindElementToMarker'](_0x31e055,_0x313037['markerName']);}_0x285ae3||_0x59e3d0||!_0x182e61||_0x1f8df5(_0x182e61);};}class K extends _0x50e036{static get['requires'](){return[_0xb35e03];}['init'](){const _0x32efa7=this['editor'],_0x4cd4a1=_0x32efa7['plugins']['get']('TrackChangesEditing');_0x4cd4a1['enableCommand']('delete');const _0x91d177=_0x32efa7['commands']['get']('deleteForward');_0x4cd4a1['enableCommand']('deleteForward',(_0x1c9b7e,_0x59c06b={})=>{const _0x11aaf8=_0x32efa7['model']['createSelection'](_0x32efa7['model']['document']['selection']);_0x11aaf8['isCollapsed']&&_0x32efa7['model']['modifySelection'](_0x11aaf8,{'direction':'forward','unit':_0x59c06b['unit']});const _0x4c668d=_0x11aaf8['getFirstRange'](),_0x2d243e=_0x13a61a['fromRange'](_0x4c668d);let _0x5220cd;_0x1c9b7e(_0x59c06b),_0x5220cd='$graveyard'==_0x2d243e['root']['rootName']?_0x32efa7['model']['createRange'](_0x4c668d['start']):_0x32efa7['model']['createRange'](_0x2d243e['start'],_0x2d243e['end']),_0x2d243e['detach'](),_0x32efa7['model']['enqueueChange'](_0x91d177['buffer']['batch'],_0x25a2e9=>{_0x91d177['buffer']['lock'](),_0x25a2e9['setSelection'](_0x25a2e9['createRange'](_0x5220cd['end'])),_0x91d177['buffer']['unlock']();});}),_0x32efa7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x32efa7,'merge'),{'priority':'high'}),_0x32efa7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x10369d,_0x443f8c,_0x2e042a)=>{_0x2e042a['options']['showSuggestionHighlights']&&Ne(_0x32efa7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x10369d,_0x443f8c,_0x2e042a);},{'priority':'high'}),_0x32efa7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x38699d,_0x445755,_0x3493fc)=>{const _0x2303c0=_0x3493fc['mapper']['markerNameToElements'](_0x445755['markerName']);if(_0x2303c0){for(const _0x499e0c of _0x2303c0)_0x499e0c['is']('uiElement')&&(_0x3493fc['mapper']['unbindElementFromMarkerName'](_0x499e0c,_0x445755['markerName']),_0x3493fc['writer']['remove'](_0x499e0c));}},{'priority':'high'});}}class W extends _0x50e036{['afterInit'](){const _0x435848=this['editor'];if(!_0x435848['plugins']['has']('ListEditing'))return;const _0x31f2d8=_0x435848['locale'],_0xb28f14=_0x435848['plugins']['get']('TrackChangesEditing'),_0x40e571=_0x435848['plugins']['has']('TodoListEditing'),_0x4bc6ab=!!_0x435848['config']['get']('list.multiBlock');function _0x3abc63(_0x29318d){return{'type':'format','content':''+o(_0x31f2d8,'*Set\x20format:*\x20%0',_0x29318d)};}function _0x435804(_0x536723){return{'type':'format','content':''+o(_0x31f2d8,'*Remove\x20format:*\x20%0',_0x536723)};}_0xb28f14['enableDefaultAttributesIntegration']('numberedList'),_0xb28f14['enableDefaultAttributesIntegration']('bulletedList'),_0xb28f14['enableDefaultAttributesIntegration']('customNumberedList'),_0xb28f14['enableDefaultAttributesIntegration']('customBulletedList'),_0xb28f14['enableDefaultAttributesIntegration']('indentList'),_0xb28f14['enableDefaultAttributesIntegration']('outdentList'),_0xb28f14['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xb28f14['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xb28f14['registerBlockAttribute']('listItemId'),_0xb28f14['registerBlockAttribute']('listType'),_0xb28f14['registerBlockAttribute']('listIndent'),_0x4bc6ab&&(_0xb28f14['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xb28f14['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x40e571&&(_0xb28f14['enableDefaultAttributesIntegration']('todoList'),_0xb28f14['enableDefaultAttributesIntegration']('checkTodoList'),_0xb28f14['registerBlockAttribute']('todoListChecked'),_0xb28f14['descriptionFactory']['registerDescriptionCallback'](_0x19585c=>{const {data:_0x5aa1c0}=_0x19585c;if(_0x5aa1c0&&'todoListChecked'==_0x5aa1c0['key'])return{'type':'format','content':_0x5aa1c0['newValue']?o(_0x31f2d8,'*Check\x20item*'):o(_0x31f2d8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x661e2c=>{if(_0x661e2c['batch']['isUndo'])return!0x1;let _0x1768ee=!0x1;const _0x2cc4e3=_0xb28f14['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1044b1=>'todoListChecked'===_0xb28f14['_getAttributeKey'](_0x1044b1));for(const _0x190c42 of _0x2cc4e3){'todo'!=_0x190c42['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xb28f14['_findSuggestions'](_0x190c42['getFirstRange'](),'attribute')['find'](_0x2cc7bb=>'listType'===_0xb28f14['_getAttributeKey'](_0x2cc7bb['suggestion']))||(_0x661e2c['removeMarker'](_0x190c42['getFirstMarker']()),_0x1768ee=!0x0));}return _0x1768ee;})),_0xb28f14['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x31f2d8,'FORMAT_INDENT'));const _0x1fa682={'type':'format','content':''};_0xb28f14['descriptionFactory']['registerDescriptionCallback'](_0x263e9f=>{const {data:_0x5ba00f}=_0x263e9f;if(!_0x5ba00f||'listType'!=_0x5ba00f['key'])return;let _0x3197f6=_0x263e9f['head'];for(;_0x3197f6;){if(_0x3197f6['data']&&(('listStyle'==_0x3197f6['data']['key']||'listMarkerStyle'==_0x3197f6['data']['key'])&&(_0x3197f6['data']['newValue']&&'default'!=_0x3197f6['data']['newValue']||'default'!=_0x3197f6['data']['oldValue']&&!_0x5ba00f['newValue'])||!_0x4bc6ab&&_0x3197f6['data']['key']==m))return _0x1fa682;_0x3197f6=_0x3197f6['next'];}if(null==_0x5ba00f['newValue'])switch(_0x5ba00f['oldValue']){case'bulleted':return _0x435804(o(_0x31f2d8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x435804(o(_0x31f2d8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x435804(o(_0x31f2d8,'ELEMENT_TODO_LIST'));}switch(_0x5ba00f['newValue']){case'bulleted':return _0x3abc63(o(_0x31f2d8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3abc63(o(_0x31f2d8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3abc63(o(_0x31f2d8,'ELEMENT_TODO_LIST'));}}),_0xb28f14['descriptionFactory']['registerDescriptionCallback'](_0x20f052=>{const {data:_0x3a470c}=_0x20f052;if(_0x3a470c&&'listIndent'==_0x3a470c['key'])return null==_0x3a470c['newValue']||null==_0x3a470c['oldValue']&&0x0==_0x3a470c['newValue']?_0x1fa682:void 0x0;}),_0xb28f14['descriptionFactory']['registerDescriptionCallback'](_0x5adfa6=>{if('attribute'!=_0x5adfa6['type'])return;const {data:_0x1eea8d}=_0x5adfa6;if(!_0x1eea8d||'listItemId'!=_0x1eea8d['key'])return;const _0x356229=Te(_0x5adfa6);return'newValue'==_0x356229?{'type':'format','content':o(_0x31f2d8,'*Merge:*\x20list\x20item')}:'oldValue'==_0x356229?{'type':'format','content':o(_0x31f2d8,'*Split:*\x20list\x20item')}:_0x1fa682;}),_0x435848['model']['document']['registerPostFixer'](_0x586759=>this['listItemIdFixer'](_0x586759)),_0x435848['model']['document']['registerPostFixer'](_0x511eaa=>this['noTrackChangesFixer'](_0x511eaa)),_0x435848['model']['document']['on']('change:data',(_0x5ee1b2,_0x309fb)=>{if(_0x309fb['isUndo']||!_0x309fb['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x304286){if(_0x304286['batch']['isUndo']||!_0x304286['batch']['isLocal'])return!0x1;let _0x29b807=!0x1;const _0x3232e8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x595236=>_0x595236['data']&&'listItemId'==_0x595236['data']['key'])['filter'](_0x35010a=>_0x35010a['data']['newValue']&&_0x35010a['data']['oldValue']);for(const _0x34b560 of _0x3232e8)Te(_0x34b560)||(_0x304286['removeMarker'](_0x34b560['getFirstMarker']()),_0x29b807=!0x0);return _0x29b807;}['noTrackChangesFixer'](_0x13ab32){if(_0x13ab32['batch']['isUndo']||!_0x13ab32['batch']['isLocal'])return!0x1;const _0x4c5873=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4c5873['trackChangesCommand']['value'])return!0x1;let _0x193f02=!0x1;const _0x2c1d77=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1c67f9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3f3ad6=>'attribute'==_0x3f3ad6['type'])['filter'](_0x3f3a18=>_0x2c1d77['includes'](_0x3f3a18['attributeKey']));if(0x0==_0x1c67f9['length'])return _0x193f02;for(const _0x2d237c of _0x1c67f9){const _0x2f851e=_0x4c5873['_findSuggestions'](_0x2d237c['range'],'attribute')['filter'](_0x266c82=>!_0x266c82['meta']['isNextTo'])['map'](_0x3733f6=>_0x3733f6['suggestion'])['filter'](_0x3b938e=>{const _0x424229=_0x4c5873['_getAttributeKey'](_0x3b938e);return _0x2c1d77['includes'](_0x424229);});if(_0x2f851e['length']){for(const _0x1904c5 of _0x2f851e)_0x13ab32['removeMarker'](_0x1904c5['getFirstMarker']());_0x193f02=!0x0;}}return _0x193f02;}['assureChains'](){const _0x22c7a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fb42f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1f7a6e;const _0x567277=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1737ac=>{if(_0x1737ac['data']['oldRange']||!_0x1737ac['data']['newRange'])return null;if(!_0x1737ac['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5d9c42}=_0x22c7a6['_splitMarkerName'](_0x1737ac['name']);if(!_0x22c7a6['hasSuggestion'](_0x5d9c42))return null;const _0x116196=_0x22c7a6['getSuggestion'](_0x5d9c42);return _0x1fb42f['includes'](_0x116196['data']['key']);})['map'](_0x55d081=>{const {id:_0x525fac}=_0x22c7a6['_splitMarkerName'](_0x55d081['name']),_0x49b019=_0x22c7a6['getSuggestion'](_0x525fac);return _0x1f7a6e=_0x49b019['attributes']['groupId'],_0x49b019['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x567277['size'])return;const _0x2d96a9=_0x22c7a6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ea5fd=>'attribute'==_0x4ea5fd['type']&&_0x4ea5fd['data']&&_0x1fb42f['includes'](_0x4ea5fd['data']['key'])&&_0x4ea5fd['attributes']['groupId']!=_0x1f7a6e)['map'](_0x3401f4=>({'listItem':_0x3401f4['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3401f4['attributes']['groupId']})),_0x1d655d=new Set();for(const {groupId:_0x161d31,listItem:_0x4bb844}of _0x2d96a9)_0x567277['has'](_0x4bb844)&&_0x1d655d['add'](_0x161d31);for(const _0x210609 of _0x22c7a6['getSuggestions']())_0x1d655d['has'](_0x210609['attributes']['groupId'])&&_0x210609['setAttribute']('groupId',_0x1f7a6e);}['_supportLegacySuggestions'](){const _0x1b9cbf=this['editor'],_0x223dcb=_0x1b9cbf['locale'],_0x3ee655=_0x1b9cbf['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3ee655['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5855e3,_0x3953a3){const _0x54536e=[];for(let _0x39fd07 of _0x5855e3)_0x39fd07['start']['nodeAfter']===_0x39fd07['end']['parent']&&(_0x39fd07=_0x1b9cbf['model']['createRange'](_0x1b9cbf['model']['createPositionAt'](_0x39fd07['start']['nodeAfter'],0x0))),_0x54536e['push'](_0x39fd07);_0x1b9cbf['model']['change'](_0x1db94b=>{const _0x1632f4=_0x1b9cbf['model']['document']['selection'],_0x1fd066=Array['from'](_0x1632f4['getRanges']())['map'](_0x4e7a00=>_0x13a61a['fromRange'](_0x4e7a00));_0x1db94b['setSelection'](_0x54536e),_0x1b9cbf['commands']['get'](_0x3953a3['commandName'])['refresh'](),_0x3953a3['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1b9cbf['execute'](_0x3953a3['commandName'],..._0x3953a3['commandParams']),_0x1db94b['setSelection'](_0x1fd066);for(const _0x7c019d of _0x1fd066)_0x7c019d['detach']();});}),_0x3ee655['descriptionFactory']['registerElementLabel'](function(_0x31f73e){const _0x44b4a8=!_0x1b9cbf['model']['schema']['isObject'](_0x31f73e),_0x25a236=_0x31f73e['previousSibling'],_0x1eb087=_0x31f73e['nextSibling'],_0x5bec66=_0x31f73e['getAttribute']('listItemId'),_0x10e481=!_0x25a236||_0x25a236['getAttribute']('listItemId')!==_0x5bec66,_0x5e6abb=!_0x1eb087||_0x1eb087['getAttribute']('listItemId')!==_0x5bec66;return _0x44b4a8&&Boolean(_0x5bec66)&&_0x10e481&&_0x5e6abb;},_0x521b82=>o(_0x223dcb,'ELEMENT_LIST_ITEM',_0x521b82));}['_registerLegacyDescription'](){const _0x112624=this['editor'],_0xf5b6af=_0x112624['locale'];function _0x2dae67(_0x4d0a88){const _0x59a30e=_0x112624['commands']['get']('bulletedList')['value'],_0x23e015=_0x112624['commands']['get']('numberedList')['value'];return'numberedList'===_0x4d0a88?_0x59a30e:_0x23e015;}_0x112624['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x20dcc1){if('formatBlock'!=_0x20dcc1['type'])return;const {data:_0x16b445}=_0x20dcc1;if(!_0x16b445)return;let _0x5e9401,_0x5cfd52,_0x164981,_0xd483c1;switch(_0x16b445['commandName']){case'bulletedList':_0x164981=_0x16b445['commandParams'][0x0]['forceValue'],_0xd483c1=_0x2dae67(_0x16b445['commandName']),_0x5e9401=_0x164981?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd483c1&&_0x112624['config']['get']('list.multiBlock')||(_0x5e9401='*Change\x20to:*\x20%0'),_0x5cfd52={'type':'format','content':o(_0xf5b6af,_0x5e9401,o(_0xf5b6af,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x164981=_0x16b445['commandParams'][0x0]['forceValue'],_0xd483c1=_0x2dae67(_0x16b445['commandName']),_0x5e9401=_0x164981?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd483c1&&_0x112624['config']['get']('list.multiBlock')||(_0x5e9401='*Change\x20to:*\x20%0'),_0x5cfd52={'type':'format','content':o(_0xf5b6af,_0x5e9401,o(_0xf5b6af,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5e9401='*Indent:*\x20%0',_0x5cfd52={'type':'format','content':o(_0xf5b6af,_0x5e9401,o(_0xf5b6af,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5e9401=function(_0x1e636e){const _0x19a869=_0x1e636e['getFirstRange']();let _0x520913=_0x19a869['start']['nodeAfter'];for(;_0x520913&&_0x19a869['containsItem'](_0x520913);){if(_0x520913['getAttribute']('listIndent')>0x0)return!0x1;_0x520913=_0x520913['nextSibling'];}return!0x0;}(_0x20dcc1)?o(_0xf5b6af,'*Format:*\x20remove\x20from\x20%0',o(_0xf5b6af,function(_0x267867){return'ELEMENT_'+_0x267867['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x20dcc1))):o(_0xf5b6af,'*Outdent:*\x20%0',o(_0xf5b6af,'ELEMENT_LIST_ITEM')),_0x5cfd52={'type':'format','content':_0x5e9401};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x16b445['multipleBlocks']&&(_0x5e9401='*Merge:*\x20%0',_0x5cfd52={'type':'deletion','content':o(_0xf5b6af,_0x5e9401,o(_0xf5b6af,'ELEMENT_LIST_ITEM'))});}return _0x5cfd52;});}}function Te(_0x504956){let _0x78fc03=_0x504956['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x78fc03;){const _0x5b92d5=_0x78fc03['getAttribute']('listItemId');if(!_0x5b92d5)return!0x1;if(_0x5b92d5==_0x504956['data']['newValue'])return'newValue';if(_0x5b92d5==_0x504956['data']['oldValue'])return'oldValue';_0x78fc03=_0x78fc03['previousSibling'];}return!0x1;}class ye extends _0x50e036{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2cbca9=this['editor']['config']['get']('list.properties'),_0x1c20dc=this['editor']['plugins']['get']('TrackChangesEditing');_0x2cbca9['styles']&&(_0x1c20dc['enableDefaultAttributesIntegration']('listStyle'),_0x1c20dc['registerBlockAttribute']('listStyle')),_0x2cbca9['reversed']&&(_0x1c20dc['enableDefaultAttributesIntegration']('listReversed'),_0x1c20dc['registerBlockAttribute']('listReversed')),_0x2cbca9['startIndex']&&(_0x1c20dc['enableDefaultAttributesIntegration']('listStart'),_0x1c20dc['registerBlockAttribute']('listStart'));const _0x247e64={'type':'format','content':''};_0x1c20dc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x361448=this['editor']['locale'];_0x1c20dc['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x361448,'FORMAT_LIST_REVERSED')),_0x1c20dc['descriptionFactory']['registerDescriptionCallback'](_0x40fb66=>{const {data:_0x1c46f6}=_0x40fb66;if(_0x1c46f6&&'listReversed'==_0x1c46f6['key'])return null==_0x1c46f6['newValue']||0x0==_0x1c46f6['newValue']&&null==_0x1c46f6['oldValue']?_0x247e64:void 0x0;}),_0x1c20dc['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x361448,'FORMAT_LIST_START')),_0x1c20dc['descriptionFactory']['registerDescriptionCallback'](_0x22b55e=>{const {data:_0x4940ae}=_0x22b55e;if(_0x4940ae&&'listStart'==_0x4940ae['key'])return null==_0x4940ae['newValue']||0x1==_0x4940ae['newValue']&&null==_0x4940ae['oldValue']?_0x247e64:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x59f5ac=>{if(_0x59f5ac['batch']['isUndo'])return!0x1;let _0x1c3f31=!0x1;const _0x443297=_0x1c20dc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1755f6=>{const _0x1d9e72=_0x1c20dc['_getAttributeKey'](_0x1755f6);return'listStart'==_0x1d9e72||'listReversed'==_0x1d9e72;});for(const _0x3fd1fc of _0x443297){const _0xce7663=_0x3fd1fc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xce7663||'customNumbered'==_0xce7663)continue;_0x1c20dc['_findSuggestions'](_0x3fd1fc['getFirstRange'](),'attribute')['find'](_0x58523f=>'listType'==_0x1c20dc['_getAttributeKey'](_0x58523f['suggestion']))||(_0x59f5ac['removeMarker'](_0x3fd1fc['getFirstMarker']()),_0x1c3f31=!0x0);}return _0x1c3f31;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4a44d8){const _0xbc2dc8=this['editor']['locale'],{data:_0x1c5d06}=_0x4a44d8,_0x3c288e={'type':'format','content':''};if(!_0x1c5d06||'listStyle'!=_0x1c5d06['key'])return;if(!_0x1c5d06['oldValue'])return'default'==_0x1c5d06['newValue']?_0x3c288e:{'type':'format','content':''+o(_0xbc2dc8,'*Set\x20format:*\x20%0',o(_0xbc2dc8,this['_getTranslationKeyForListStyle'](_0x1c5d06['newValue'])))};if(!_0x1c5d06['newValue']){if('default'==_0x1c5d06['oldValue'])return _0x3c288e;let _0x404aae=_0x4a44d8['head'];for(;_0x404aae;){if(_0x404aae['data']&&'listType'==_0x404aae['data']['key']&&_0x404aae['data']['newValue'])return _0x3c288e;_0x404aae=_0x404aae['next'];}return{'type':'format','content':''+o(_0xbc2dc8,'*Remove\x20format:*\x20%0',o(_0xbc2dc8,this['_getTranslationKeyForListStyle'](_0x1c5d06['oldValue'])))};}if('default'!=_0x1c5d06['newValue'])return{'type':'format','content':''+o(_0xbc2dc8,'*Set\x20format:*\x20%0',o(_0xbc2dc8,this['_getTranslationKeyForListStyle'](_0x1c5d06['newValue'])))};let _0x3c54f8=_0x4a44d8['head'];for(;_0x3c54f8;){if(_0x3c54f8['data']&&'listType'==_0x3c54f8['data']['key']&&_0x3c54f8['data']['newValue']&&_0x3c54f8['data']['oldValue'])return _0x3c288e;_0x3c54f8=_0x3c54f8['next'];}return{'type':'format','content':o(_0xbc2dc8,'*Set\x20format:*\x20%0',o(_0xbc2dc8,'ELEMENT_'+_0x4a44d8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x26cff6=this['editor'],_0x23bfa5=_0x26cff6['locale'];_0x26cff6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3487a1=>{if('formatBlock'!=_0x3487a1['type'])return;const {data:_0x396537}=_0x3487a1;if(!_0x396537)return;let _0x1adf46,_0x150059;switch(_0x396537['commandName']){case'listStyle':_0x1adf46='*Change\x20to:*\x20%0',_0x150059={'type':'format','content':o(_0x23bfa5,_0x1adf46,o(_0x23bfa5,this['_getTranslationKeyForListStyle'](_0x396537['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1adf46=_0x396537['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x150059={'type':'format','content':o(_0x23bfa5,_0x1adf46)};break;case'listStart':_0x1adf46='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x150059={'type':'format','content':o(_0x23bfa5,_0x1adf46,_0x396537['commandParams'][0x0]['startIndex'])};}return _0x150059;});}['_getTranslationKeyForListStyle'](_0x33632f){return'ELEMENT_'+function(_0x2a493a){if(Se['includes'](_0x2a493a))return'bulleted';if(_e['includes'](_0x2a493a))return'numbered';return null;}(_0x33632f)['toUpperCase']()+'_LIST_'+_0x33632f['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x50e036{static get['requires'](){return[_0x72d1a5];}['init'](){const _0x15bfc5=this['editor'],_0x7c89b2=_0x15bfc5['plugins']['get']('TrackChangesEditing'),_0xb1178=_0x15bfc5['commands']['get']('enter');_0x7c89b2['enableCommand']('enter',()=>{_0x15bfc5['model']['change'](_0x1a8eca=>{const _0x33be8a=_0x15bfc5['model']['document']['selection'],_0x20a0a1=_0x33be8a['getFirstPosition'](),_0x2b7b2d=_0x13a61a['fromRange'](_0x33be8a['getFirstRange']());if(_0xb1178['enterBlock'](_0x1a8eca)){const _0xde435d=_0x15bfc5['model']['createPositionAt'](_0x20a0a1['parent']['nextSibling'],0x0),_0x550db3=_0x1a8eca['createRange'](_0x20a0a1,_0xde435d);_0x7c89b2['markInsertion'](_0x550db3);}else _0x1a8eca['setSelection'](_0x1a8eca['createRange'](_0x2b7b2d['end']));_0x2b7b2d['detach'](),_0xb1178['fire']('afterExecute',{'writer':_0x1a8eca});});}),_0x15bfc5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x15bfc5,'split'),{'priority':'high'}),_0x15bfc5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x72d49,_0x44dee9,_0x42c8cb)=>{const _0x24978f=_0x42c8cb['mapper']['markerNameToElements'](_0x44dee9['markerName']);if(_0x24978f){for(const _0x40ecbb of _0x24978f)_0x40ecbb['hasClass']('ck-suggestion-marker-split')&&(_0x42c8cb['mapper']['unbindElementFromMarkerName'](_0x40ecbb,_0x44dee9['markerName']),_0x42c8cb['writer']['remove'](_0x40ecbb));}},{'priority':'high'}),_0x15bfc5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x512a36,_0x3be8fb,_0x264814)=>{_0x264814['options']['showSuggestionHighlights']&&Ne(_0x15bfc5,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x512a36,_0x3be8fb,_0x264814);},{'priority':'high'});}}class Y extends _0x50e036{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x14f3b1=this['editor']['plugins']['get']('TrackChangesEditing');_0x14f3b1['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x14f3b1['enableCommand']('findNext'),_0x14f3b1['enableCommand']('findPrevious'),_0x14f3b1['enableCommand']('replace'),_0x14f3b1['enableCommand']('replaceAll');}['handleFindCommand'](_0x31b127,_0x4b52b1,_0x5afb28={}){const _0x54a0d3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x31b127(_0x31ed9c=>{let _0x22c4e4=('string'==typeof _0x4b52b1?_0x54a0d3['findByTextCallback'](_0x4b52b1,_0x5afb28):_0x4b52b1)(_0x31ed9c);Array['isArray'](_0x22c4e4)&&(_0x22c4e4={'results':_0x22c4e4,'searchText':'string'==typeof _0x4b52b1?_0x4b52b1:''});const _0x4e0807=_0x22c4e4['results']['filter'](_0x53992e=>!0x1===this['_isInDeletionRange'](_0x53992e,_0x31ed9c['item']));return{..._0x22c4e4,'results':_0x4e0807};},_0x5afb28);}['_isInDeletionRange'](_0x57e2f7,_0x48d539){const _0x871471=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x48d539,_0x57e2f7['start']),this['editor']['model']['createPositionAt'](_0x48d539,_0x57e2f7['end']));for(const _0x2b4be4 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x871471['getIntersection'](_0x2b4be4['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 _0x50e036{['afterInit'](){const _0x546316=this['editor']['locale'],_0x1ccecf=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1a4ea3,commandName:_0x36e4b4}of ro)this['editor']['plugins']['has'](_0x1a4ea3)&&(_0x1ccecf['enableDefaultAttributesIntegration'](_0x36e4b4),_0x1ccecf['registerInlineAttribute'](_0x36e4b4));_0x1ccecf['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x546316,'FORMAT_FONT_SIZE')),_0x1ccecf['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x546316,'FORMAT_FONT_FAMILY')),_0x1ccecf['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x546316,'FORMAT_FONT_COLOR')),_0x1ccecf['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x546316,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56c731=this['editor'],_0x333699=_0x56c731['locale'];_0x56c731['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf228db=>{const _0x19baaa=_0x333699['t'];if('formatInline'!=_0xf228db['type'])return;const {data:_0x257787}=_0xf228db;if(null!=_0x257787){if('fontSize'==_0x257787['commandName']){const _0x173372=_0x257787['commandParams'][0x0]['value'];if(_0x173372){const _0x257d77=_0x19baaa(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x519810=>_0x519810['model']==_0x173372)['title'])['toLowerCase']();return{'type':'format','content':o(_0x333699,'*Set\x20font\x20size:*\x20%0',_0x257d77)};}return{'type':'format','content':o(_0x333699,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x257787['commandName']){const _0x444f6d=_0x257787['commandParams'][0x0]['value'];return _0x444f6d?{'type':'format','content':o(_0x333699,'*Set\x20font\x20family:*\x20%0',_0x444f6d)}:{'type':'format','content':o(_0x333699,'*Reset\x20font\x20family*')};}if('fontColor'==_0x257787['commandName']){const _0x4bd1cd=_0x257787['commandParams'][0x0]['value'];if(_0x4bd1cd){const _0x60ce9f=_0x5fd3d8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4a39aa=>_0x4a39aa['model']==_0x4bd1cd);let _0x3c863d=_0x4bd1cd,_0x164434='';return _0x60ce9f&&(_0x3c863d=_0x60ce9f['label'],_0x164434=_0x19baaa(_0x3c863d)['toLowerCase']()),{'type':'format','content':o(_0x333699,'*Set\x20font\x20color:*\x20%0',_0x164434)['trim'](),'color':{'value':_0x4bd1cd,'title':_0x164434||_0x3c863d}};}return{'type':'format','content':o(_0x333699,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x257787['commandName']){const _0x520c00=_0x257787['commandParams'][0x0]['value'];if(_0x520c00){const _0x28b298=_0x5fd3d8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x451cf1=>_0x451cf1['model']==_0x520c00);let _0x509b8d=_0x520c00,_0x29c58d='';return _0x28b298&&(_0x509b8d=_0x28b298['label'],_0x29c58d=_0x19baaa(_0x509b8d)['toLowerCase']()),{'type':'format','content':o(_0x333699,'*Set\x20font\x20background\x20color:*\x20%0',_0x29c58d)['trim'](),'color':{'value':_0x520c00,'title':_0x29c58d||_0x509b8d}};}return{'type':'format','content':o(_0x333699,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x50e036{['afterInit'](){const _0x2dbe54=this['editor'],_0x1e47a3=_0x2dbe54['plugins']['get']('TrackChangesEditing'),_0x4981ff=_0x2dbe54['commands']['get']('copyFormat'),_0x56f068=_0x2dbe54['commands']['get']('pasteFormat');_0x4981ff&&_0x56f068&&(_0x1e47a3['enableDefaultAttributesIntegration']('pasteFormat'),_0x1e47a3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x50c356=this['editor'],_0x455329=_0x50c356['locale'];_0x50c356['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55770a=>{if('formatBlock'!=_0x55770a['type']&&'formatInline'!=_0x55770a['type'])return;const {data:_0x36f2c0}=_0x55770a;if(_0x36f2c0&&'pasteFormat'===_0x36f2c0['commandName']){const _0x5d281e=[],_0x2590b1=_0x36f2c0['commandParams'][0x0];for(const [_0x4d837b,_0x563baf]of Object['entries'](_0x2590b1))_0x5d281e['push'](so(_0x50c356,_0x4d837b,_0x563baf));return _0x5d281e['length']?{'type':'format','content':o(_0x455329,'*Set\x20format\x20to:*\x20%0',_0x5d281e['join'](',\x20'))}:{'type':'format','content':o(_0x455329,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5f3118,_0x278648,_0x3456a1){const _0x1e7941=_0x5f3118['locale']['t'],_0x569185=_0x278648['split'](/(?=[A-Z])/)['join']('\x20'),_0x399bde=_0x1e7941(_0x569185['charAt'](0x0)['toUpperCase']()+_0x569185['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3456a1)return _0x399bde;if('fontColor'===_0x278648||'fontBackgroundColor'===_0x278648){const _0x126341=_0x5fd3d8(_0x5f3118['config']['get']('fontColor.colors'))['find'](_0x32ff7c=>_0x32ff7c['model']==_0x3456a1);return _0x399bde+'\x20('+(_0x126341?_0x1e7941(_0x126341['label'])['toLowerCase']():_0x3456a1)+')';}if('fontSize'===_0x278648&&isNaN(parseFloat(_0x3456a1))){const _0x273d08=_0x5f3118['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5f3118['config']['get']('fontSize.options'))['find'](_0x544288=>_0x544288['model']==_0x3456a1);return _0x399bde+'\x20('+(_0x273d08?_0x1e7941(_0x273d08['title'])['toLowerCase']():_0x3456a1)+')';}return _0x399bde+'\x20('+_0x3456a1+')';}class nt extends _0x50e036{['_headingOptions'];['afterInit'](){const _0x100a5e=this['editor'];if(!_0x100a5e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x100a5e['config']['get']('heading.options');const _0x24beb2=_0x100a5e['locale'],_0x5220ba=_0x100a5e['plugins']['get']('TrackChangesEditing');_0x5220ba['enableDefaultAttributesIntegration']('heading');for(const _0x3bfdea of this['_headingOptions'])'paragraph'!=_0x3bfdea['model']&&_0x5220ba['descriptionFactory']['registerElementLabel'](_0x3bfdea['model'],_0x12194a=>{const _0x290ece=this['_getHeadingLevel'](_0x3bfdea['model']);return null!==_0x290ece?_0x122b41(_0x12194a,_0x290ece):_0x37e914(_0x12194a,_0x3bfdea['title']);});function _0x122b41(_0xd67959,_0x1bc252){return o(_0x24beb2,'ELEMENT_HEADING',[_0xd67959,_0x1bc252]);}function _0x37e914(_0x4cb6cc,_0x5f0227){return o(_0x24beb2,'ELEMENT_HEADING_CUSTOM',[_0x4cb6cc,_0x5f0227]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45c229=this['editor'],_0x175007=_0x45c229['locale'];function _0x1cd382(_0x210a9f,_0x53664b){return o(_0x175007,'ELEMENT_HEADING_CUSTOM',[_0x210a9f,_0x53664b]);}_0x45c229['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4327c7=>{if('formatBlock'!=_0x4327c7['type'])return;const {data:_0x26ee99}=_0x4327c7;if(_0x26ee99&&'heading'==_0x26ee99['commandName']){const _0x1b30de=_0x26ee99['commandParams'][0x0]['value'],_0x162e0b=this['_getHeadingLevel'](_0x1b30de);if(null!==_0x162e0b)return{'type':'format','content':o(_0x175007,'*Change\x20to:*\x20%0',(_0x347092=0x1,_0x587818=_0x162e0b,o(_0x175007,'ELEMENT_HEADING',[_0x347092,_0x587818])))};const _0x439f73=this['_headingOptions']['find'](_0x3493c3=>_0x3493c3['model']===_0x1b30de)['title'];return{'type':'format','content':o(_0x175007,'*Change\x20to:*\x20%0',_0x1cd382(0x1,_0x439f73))};}var _0x347092,_0x587818;});}['_getHeadingLevel'](_0x6713d4){const _0x50ecbd=_0x6713d4['match'](/^heading(\d+)/);if(_0x50ecbd)return _0x50ecbd[0x1];const _0xeff6e=this['_headingOptions']?.['find'](_0x14836c=>_0x14836c['model']==_0x6713d4);if(_0xeff6e&&_0xeff6e['view']){const _0x35e40a=_0xeff6e['view'],_0x5052a0=(_0x35e40a['name']??_0x35e40a)['match'](/^h(\d+)/);if(_0x5052a0)return _0x5052a0[0x1];}return null;}}class it extends _0x50e036{['afterInit'](){const _0x39bb61=this['editor'];if(!_0x39bb61['plugins']['has']('HighlightEditing'))return;const _0x29a7d7=_0x39bb61['plugins']['get']('TrackChangesEditing'),_0xd39980=_0x39bb61['locale'];_0x29a7d7['enableDefaultAttributesIntegration']('highlight'),_0x29a7d7['registerInlineAttribute']('highlight'),_0x29a7d7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xd39980,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39d5fb=this['editor'],_0x50c526=_0x39d5fb['locale'];_0x39d5fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x311b48=>{if('formatInline'!=_0x311b48['type'])return;const {data:_0x1125e4}=_0x311b48;if(_0x1125e4&&'highlight'==_0x1125e4['commandName']){const _0x42a9c7=_0x50c526['t'],_0x3ac4e3=_0x1125e4['commandParams'][0x0]['value'];if(_0x3ac4e3){const _0x5c6953=_0x39d5fb['config']['get']('highlight.options')['find'](_0x5eda0d=>_0x5eda0d['model']==_0x3ac4e3),_0x24cdfa=_0x42a9c7(_0x5c6953['title'])['toLowerCase']();return{'type':'format','content':o(_0x50c526,'*Set\x20highlight:*\x20%0',_0x24cdfa),'color':{'value':_0x5c6953['color'],'title':_0x5c6953['title']}};}return{'type':'format','content':o(_0x50c526,'*Remove\x20highlight*',o(_0x50c526,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x50e036{['afterInit'](){const _0x4e7532=this['editor'];if(!_0x4e7532['plugins']['has']('HorizontalLineEditing'))return;_0x4e7532['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xf8228e=_0x4e7532['plugins']['get']('TrackChangesEditing'),_0x4344ff=_0x4e7532['locale'];_0xf8228e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x497f5f=>o(_0x4344ff,'ELEMENT_HORIZONTAL_LINE',_0x497f5f)),_0x4e7532['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4005a8,{writer:_0x60cfd1,options:_0xabc2f6})=>{if(!_0xabc2f6['showSuggestionHighlights'])return null;const _0x405b34=_0x60cfd1['createContainerElement']('div'),_0x3d433f=_0x60cfd1['createEmptyElement']('hr');return _0x60cfd1['addClass']('ck-horizontal-line',_0x405b34),_0x60cfd1['insert'](_0x60cfd1['createPositionAt'](_0x405b34,0x0),_0x3d433f),_0x405b34;},'converterPriority':'high'});}}class st extends _0x50e036{['afterInit'](){const _0x52acf2=this['editor'];if(!_0x52acf2['plugins']['has']('HtmlEmbed'))return;const _0x1b563c=_0x52acf2['plugins']['get']('TrackChangesEditing'),_0x1cd61d=_0x52acf2['locale'];_0x1b563c['descriptionFactory']['registerElementLabel']('rawHtml',_0x21963b=>o(_0x1cd61d,'ELEMENT_HTML_EMBED',_0x21963b)),_0x1b563c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1b563c['registerBlockAttribute']('value'),_0x1b563c['descriptionFactory']['registerDescriptionCallback'](_0x54ed81=>{if('attribute'!=_0x54ed81['type'])return;const {data:_0x1bfcf}=_0x54ed81;if(_0x1bfcf&&'value'==_0x1bfcf['key']&&_0x54ed81['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x243892=o(_0x1cd61d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1cd61d,'*Change\x20%0\x20content*',_0x243892)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2edf4d=this['editor'],_0x5d5db8=_0x2edf4d['locale'];_0x2edf4d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1674e5=>{if('formatBlock'!=_0x1674e5['type'])return;const {data:_0x19cd47}=_0x1674e5;if(_0x19cd47&&'htmlEmbed'==_0x19cd47['commandName']){const _0x1a946a=o(_0x5d5db8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5d5db8,'*Change\x20%0\x20content*',_0x1a946a)};}});}}class ot extends _0x50e036{['afterInit'](){const _0x2ed378=this['editor'];if(!_0x2ed378['plugins']['has']('ImageEditing'))return;const _0x3336ed=_0x2ed378['plugins']['get']('TrackChangesEditing'),_0x2542e3=_0x2ed378['plugins']['get']('ImageUtils'),_0x246e60=_0x2ed378['locale'];_0x3336ed['enableCommand']('insertImage'),_0x3336ed['descriptionFactory']['registerElementLabel']('imageBlock',_0x49b58d=>o(_0x246e60,'ELEMENT_IMAGE',_0x49b58d)),_0x3336ed['descriptionFactory']['registerElementLabel']('imageInline',_0x55ab91=>o(_0x246e60,'ELEMENT_INLINE_IMAGE',_0x55ab91)),_0x3336ed['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x246e60,'ELEMENT_CAPTION')),_0x2ed378['plugins']['has']('ImageUploadEditing')&&_0x3336ed['enableCommand']('uploadImage'),_0x2ed378['plugins']['has']('ImageBlockEditing')&&_0x2ed378['plugins']['has']('ImageInlineEditing')&&(_0x3336ed['enableCommand']('imageTypeInline',(_0x273ded,_0x18aae4)=>{const _0x3a8305=_0x2542e3['getClosestSelectedImageElement'](_0x2ed378['model']['document']['selection']);_0x2ed378['model']['change'](()=>{_0x3336ed['markBlockFormat'](_0x3a8305,{'commandName':'imageTypeInline','commandParams':[_0x18aae4]},[],'convertBlockImageToInline');});}),_0x3336ed['enableCommand']('imageTypeBlock',(_0x4eaa61,_0x5d8dc4)=>{_0x2ed378['model']['change'](_0x1f5e8d=>{let _0x3e2ac2=_0x2542e3['getClosestSelectedImageElement'](_0x2ed378['model']['document']['selection']),_0x307f81=_0x1f5e8d['createRangeOn'](_0x3e2ac2);const _0x435614=_0x139145['fromPosition'](_0x307f81['start'],'toPrevious'),_0x150543=_0x139145['fromPosition'](_0x307f81['end'],'toNext');_0x3336ed['forceDefaultExecution'](()=>_0x4eaa61(_0x5d8dc4)),_0x3e2ac2=_0x2542e3['getClosestSelectedImageElement'](_0x2ed378['model']['document']['selection']),_0x307f81=_0x1f5e8d['createRangeOn'](_0x3e2ac2);const _0xdce16e=_0x1f5e8d['createRange'](_0x435614,_0x150543);_0x435614['detach'](),_0x150543['detach'](),_0x3336ed['markBlockFormat'](_0x3e2ac2,{'commandName':'imageTypeInline','commandParams':[_0x5d8dc4]},[],'convertInlineImageToBlock'),_0xdce16e['start']['isBefore'](_0x307f81['start'])&&_0x3336ed['markInsertion'](_0x1f5e8d['createRange'](_0xdce16e['start'],_0x307f81['start']),'convertInlineImageToBlock'),_0x307f81['end']['isBefore'](_0xdce16e['end'])&&_0x3336ed['markInsertion'](_0x1f5e8d['createRange'](_0x307f81['end'],_0xdce16e['end']),'convertInlineImageToBlock');});}),_0x3336ed['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3336ed['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3336ed['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3336ed['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3336ed['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3336ed['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x8d86ea])=>{const _0xf6a818=_0x3336ed['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xd0eaf2=_0x8d86ea['start'],_0x1f43df=_0x8d86ea['end'];const _0xc5af6e=_0x2ed378['model']['schema']['getNearestSelectionRange'](_0xd0eaf2,'backward'),_0xf28fa7=_0x2ed378['model']['schema']['getNearestSelectionRange'](_0x1f43df,'forward');_0xc5af6e['isCollapsed']&&(_0xd0eaf2=_0xc5af6e['start']),_0xf28fa7['isCollapsed']&&(_0x1f43df=_0xf28fa7['end']),_0xf6a818([_0x2ed378['model']['createRange'](_0xd0eaf2,_0x1f43df)]);}),_0x3336ed['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4acc41),_0x3336ed['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4acc41)),_0x2ed378['plugins']['has']('ImageCaptionEditing')&&(_0x3336ed['enableCommand']('toggleImageCaption',(_0x539a34,_0x2e5d8b)=>{const _0x1a4515=_0x2ed378['plugins']['get']('ImageCaptionUtils');let _0x512801=_0x2542e3['getClosestSelectedImageElement'](_0x2ed378['model']['document']['selection']),_0x253ea0=_0x1a4515['getCaptionFromImageModelElement'](_0x512801);_0x2ed378['model']['change'](()=>{if(_0x253ea0)return void _0x3336ed['markDeletion'](_0x2ed378['model']['createRangeOn'](_0x253ea0));const _0xdc7921=_0x2542e3['isBlockImage'](_0x512801);_0x539a34(_0x2e5d8b),_0x512801=_0x2542e3['getClosestSelectedImageElement'](_0x2ed378['model']['document']['selection']),_0x253ea0=_0x1a4515['getCaptionFromImageModelElement'](_0x512801),_0x3336ed['markInsertion'](_0x2ed378['model']['createRangeOn'](_0x253ea0),_0xdc7921?null:'imageCaption');});}),_0x3336ed['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4acc41));const _0x1c225c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2487eb(_0x47fcaa,_0x35eb73){const _0x44add0=_0x1c225c['findIndex'](({type:_0x516683,subType:_0x3a350a})=>_0x47fcaa['type']==_0x516683&&_0x47fcaa['subType']==_0x3a350a),_0x255714=_0x1c225c['findIndex'](({type:_0x810c1f,subType:_0x472baf})=>_0x35eb73['type']==_0x810c1f&&_0x35eb73['subType']==_0x472baf);if(_0x44add0<0x0||_0x255714<0x0)return!0x1;const _0x274b2b=_0x47fcaa['getFirstRange'](),_0x28a238=_0x35eb73['getFirstRange']();if((0x0==_0x44add0||0x1==_0x44add0)&&0x2==_0x255714&&_0x274b2b['isIntersecting'](_0x28a238))return!0x0;if(0x2==_0x44add0&&0x3==_0x255714){const _0x2ed751=_0x3336ed['_findSuggestions'](_0x274b2b,'insertion')['filter'](({suggestion:_0x38f78d,meta:_0x490387})=>_0x490387['isOwn']&&'convertInlineImageToBlock'==_0x38f78d['subType']);if(_0x2ed751['length']>0x1&&_0x28a238['end']['isEqual'](_0x274b2b['start']))return!0x0;if(0x1==_0x2ed751['length']&&(_0x274b2b['start']['isEqual'](_0x28a238['end'])||_0x274b2b['end']['isEqual'](_0x28a238['start'])))return!0x0;}if(0x3==_0x44add0&&0x3==_0x255714&&_0x274b2b['start']['isBefore'](_0x28a238['start'])){const _0x57806b=_0x274b2b['end']['nodeAfter'],_0x58bfb7=_0x28a238['start']['nodeBefore'];return _0x2542e3['isBlockImage'](_0x57806b)&&_0x57806b===_0x58bfb7;}return!0x1;}function _0x4acc41(_0x46891a,_0x1e9af6){return _0x2487eb(_0x46891a,_0x1e9af6)?[_0x46891a,_0x1e9af6]:_0x2487eb(_0x1e9af6,_0x46891a)?[_0x1e9af6,_0x46891a]:null;}_0x2ed378['plugins']['has']('ImageResize')&&(_0x3336ed['enableDefaultAttributesIntegration']('resizeImage'),_0x3336ed['registerBlockAttribute']('resizedWidth'),_0x3336ed['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x246e60,'FORMAT_IMAGE_SIZE'))),_0x2ed378['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3336ed['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3336ed['registerBlockAttribute']('alt')),_0x3336ed['descriptionFactory']['registerDescriptionCallback'](_0x540da0=>{if(!!_0x1c225c['find'](({type:_0x2ad2ab,subType:_0x1b6c38})=>_0x540da0['type']==_0x2ad2ab&&_0x540da0['subType']==_0x1b6c38))return _0x540da0['previous']?{}:void 0x0;}),_0x3336ed['descriptionFactory']['registerDescriptionCallback'](_0x2d6b38=>{if('insertion'==_0x2d6b38['type']||'deletion'==_0x2d6b38['type']){const _0x49e3d9=_0x2d6b38['getContainedElement']();if(_0x49e3d9&&_0x49e3d9['is']('element','caption'))return{'type':'insertion'==_0x2d6b38['type']?'addObject':'removeObject','element':_0x49e3d9,'quantity':0x1};}}),_0x3336ed['descriptionFactory']['registerDescriptionCallback'](_0x38f202=>'formatBlock'==_0x38f202['type']&&'convertInlineImageToBlock'==_0x38f202['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x38f202['type']&&'convertBlockImageToInline'==_0x38f202['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3336ed['descriptionFactory']['registerDescriptionCallback'](_0x4c81cf=>{if('attribute'!=_0x4c81cf['type'])return;const {data:_0x4b5745}=_0x4c81cf;if(!_0x4b5745||'alt'!=_0x4b5745['key'])return;const _0x58a7ca=_0x4b5745['newValue'];return _0x58a7ca?{'type':'format','content':o(_0x246e60,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x58a7ca+'\x22')}:{'type':'format','content':o(_0x246e60,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f4d6f=this['editor'],_0x5139de=_0x5f4d6f['locale'];_0x5f4d6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36491b=>{if('formatBlock'!=_0x36491b['type']&&'formatInline'!=_0x36491b['type'])return;const {data:_0x1dde56}=_0x36491b;if(_0x1dde56){if('imageTextAlternative'==_0x1dde56['commandName']){const _0x55ef04=_0x1dde56['commandParams'][0x0]['newValue'];return _0x55ef04?{'type':'format','content':o(_0x5139de,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x55ef04+'\x22')}:{'type':'format','content':o(_0x5139de,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1dde56['commandName']){const _0x16b005=_0x1dde56['commandParams'][0x0]['width'];return _0x16b005?{'type':'format','content':o(_0x5139de,'*Set\x20image\x20width:*\x20%0',_0x16b005)}:{'type':'format','content':o(_0x5139de,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x50e036{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x399181=this['editor']['locale'],_0x2f0707=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f0707['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2f0707['registerBlockAttribute']('src'),_0x2f0707['descriptionFactory']['registerDescriptionCallback'](_0x4cdf82=>{if('attribute'!=_0x4cdf82['type'])return;const {data:_0xf6f30a}=_0x4cdf82;return _0xf6f30a&&'src'==_0xf6f30a['key']?_0xf6f30a['newValue']&&_0xf6f30a['oldValue']?{'type':'format','content':o(_0x399181,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f9b77=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f9b77['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3f9b77['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f9b77['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3f9b77['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dab5a=this['editor'],_0x3ec7a4=_0x2dab5a['locale'];_0x2dab5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46087a=>{if('formatBlock'!=_0x46087a['type']&&'formatInline'!=_0x46087a['type'])return;const {data:_0x8ba0cb}=_0x46087a;if(!_0x8ba0cb||'replaceImageSource'!=_0x8ba0cb['commandName'])return;return{'type':'format','content':o(_0x3ec7a4,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x50e036{['afterInit'](){const _0x435504=this['editor'];if(!_0x435504['plugins']['has']('ImageStyleEditing'))return;const _0x445c5d=_0x435504['plugins']['get']('TrackChangesEditing'),_0x5315f9=_0x435504['plugins']['get']('ImageUtils'),_0x1a6e6d={};_0x445c5d['enableCommand']('imageStyle',(_0x31376e,_0x27593b)=>{const _0x465b80=_0x435504['plugins']['get']('Users')['me'],_0x4e7ba8=_0x435504['commands']['get']('imageStyle');let _0x4cc346=_0x5315f9['getClosestSelectedImageElement'](_0x435504['model']['document']['selection']),_0xc91782=_0x435504['model']['createRangeOn'](_0x4cc346),_0xcfbb70=_0x4e7ba8['value'];if(_0xcfbb70==_0x27593b['value'])return;const _0x48de2a={'commandName':'imageStyle','commandParams':[_0x27593b],'formatGroupId':_0x2f9277()};_0x435504['model']['change'](()=>{if(_0x445c5d['getSuggestions']()['filter'](_0x5114db=>_0x5114db['isInContent']&&_0x465b80==_0x5114db['author']&&('formatBlock'==_0x5114db['type']||'formatInline'==_0x5114db['type'])&&('imageStylePreApply'==_0x5114db['subType']||'imageStylePostApply'==_0x5114db['subType'])&&_0x5114db['getFirstRange']()['isEqual'](_0xc91782))['forEach'](_0x265b21=>_0x445c5d['discardSuggestion'](_0x265b21['head'])),_0x4cc346=_0x5315f9['getClosestSelectedImageElement'](_0x435504['model']['document']['selection']),_0xc91782=_0x435504['model']['createRangeOn'](_0x4cc346),_0x4e7ba8['refresh'](),_0x435504['commands']['get']('imageTypeInline')['refresh'](),_0x435504['commands']['get']('imageTypeBlock')['refresh'](),_0xcfbb70=_0x4e7ba8['value'],_0xcfbb70!=_0x27593b['value'])return _0x5315f9['isInlineImage'](_0x4cc346)&&_0x4e7ba8['shouldConvertImageType'](_0x27593b['value'],_0x4cc346)?(_0x31376e({..._0x27593b,'setImageSizes':!0x1}),_0x4cc346=_0x5315f9['getClosestSelectedImageElement'](_0x435504['model']['document']['selection']),void _0x445c5d['markBlockFormat'](_0x4cc346,{..._0x48de2a,'commandReversedParams':[{'value':_0xcfbb70||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5315f9['isBlockImage'](_0x4cc346)?_0x445c5d['markBlockFormat'](_0x4cc346,_0x48de2a,[],'imageStylePostApply'):_0x445c5d['markInlineFormat'](_0xc91782,_0x48de2a,'imageStylePostApply'));});});for(const _0x15c57e of _0x435504['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1a6e6d[_0x15c57e['name']]=_0x15c57e['title']['toLowerCase']();_0x445c5d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x445c5d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x445c5d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x445c5d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x531588])=>{_0x5315f9['setImageNaturalSizeAttributes'](_0x531588['getContainedElement']());}),_0x445c5d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5bc88f,_0x86f639)=>{_0x445c5d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5bc88f,{'commandName':_0x86f639['commandName'],'commandParams':_0x86f639['commandReversedParams']});}),_0x445c5d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x208111,_0x5b8d16){if(_0x4795fa(_0x208111,_0x5b8d16))return[_0x208111,_0x5b8d16];if(_0x4795fa(_0x5b8d16,_0x208111))return[_0x5b8d16,_0x208111];return null;});const _0x1e85cc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4795fa(_0x585ea3,_0x45148e){const _0xd0951c=_0x1e85cc['findIndex'](({type:_0x1844ad,subType:_0x40784c})=>_0x585ea3['type']==_0x1844ad&&_0x585ea3['subType']==_0x40784c),_0x8d9f4d=_0x1e85cc['findIndex'](({type:_0xd08a1,subType:_0x154896})=>_0x45148e['type']==_0xd08a1&&_0x45148e['subType']==_0x154896);if(_0xd0951c<0x0||_0x8d9f4d<0x0)return!0x1;const _0x492f68=_0x585ea3['getFirstRange'](),_0xf6694=_0x45148e['getFirstRange']();if((0x0==_0xd0951c||0x1==_0xd0951c)&&0x2==_0x8d9f4d&&_0x492f68['isIntersecting'](_0xf6694))return!0x0;if(0x2==_0xd0951c&&0x3==_0x8d9f4d){const _0x30862d=_0x445c5d['_findSuggestions'](_0x492f68,'insertion')['filter'](({suggestion:_0x14a4f2,meta:_0x33825f})=>_0x33825f['isOwn']&&'convertInlineImageToBlock'==_0x14a4f2['subType']);if(_0x30862d['length']>0x1&&_0xf6694['end']['isEqual'](_0x492f68['start']))return!0x0;if(0x1==_0x30862d['length']&&(_0x492f68['start']['isEqual'](_0xf6694['end'])||_0x492f68['end']['isEqual'](_0xf6694['start'])))return!0x0;}if(0x3==_0xd0951c&&0x3==_0x8d9f4d&&_0x492f68['start']['isBefore'](_0xf6694['start'])){const _0x2b58c1=_0x492f68['end']['nodeAfter'],_0x3a3919=_0xf6694['start']['nodeBefore'];return _0x5315f9['isBlockImage'](_0x2b58c1)&&_0x2b58c1===_0x3a3919;}return!0x1;}_0x435504['model']['document']['registerPostFixer'](()=>{let _0x364b15=!0x1;const _0x308fab=Array['from'](_0x435504['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5056ca,data:_0xefd909}of _0x308fab){const {group:_0x4bc608,type:_0x353b87,subType:_0x3a493e,id:_0xd81eed}=_0x445c5d['_splitMarkerName'](_0x5056ca);if('suggestion'==_0x4bc608&&_0x445c5d['hasSuggestion'](_0xd81eed)){if('formatBlock'==_0x353b87&&('imageStylePreApply'==_0x3a493e||'imageStylePostApply'==_0x3a493e)){const _0x21c0f4=_0x445c5d['getSuggestion'](_0xd81eed);if(_0xefd909['newRange']){const _0x2309fa=_0x21c0f4['getFirstRange']()['getContainedElement']();if(_0x5315f9['isBlockImage'](_0x2309fa))continue;_0x445c5d['discardSuggestion'](_0x21c0f4),_0x364b15=!0x0;}}if('insertion'==_0x353b87&&'imageCaption'==_0x3a493e&&!_0xefd909['newRange']){const _0x1df6d5=_0x445c5d['getSuggestion'](_0xd81eed);_0x1df6d5['next']&&_0x1df6d5['next']['isInContent']&&(_0x445c5d['discardSuggestion'](_0x1df6d5['next']),_0x364b15=!0x0);}}}return _0x364b15;}),this['_registerLegacyDescription'](_0x1a6e6d);}['_registerLegacyDescription'](_0x56ddf7){const _0x502f90=this['editor'],_0x3a4036=_0x502f90['locale'];_0x502f90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19879b=>{if('formatBlock'!=_0x19879b['type']&&'formatInline'!=_0x19879b['type'])return;const {data:_0x3212de}=_0x19879b;if(!_0x3212de||'imageStyle'!=_0x3212de['commandName'])return;const _0x3df958=_0x3212de['commandParams'][0x0]['value'];return _0x2f2e17('side'===_0x3df958?o(_0x3a4036,'FORMAT_SIDE_IMAGE'):_0x56ddf7[_0x3df958]||_0x3df958);function _0x2f2e17(_0x11b5cd){return{'type':'format','content':o(_0x3a4036,'*Format:*\x20%0',_0x11b5cd)};}});}}class ct extends _0x50e036{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x673c0f){super(_0x673c0f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x13f302=this['editor'],_0x16b31b=_0x13f302['commands']['get']('importWord'),_0x29dbcf=_0x13f302['commands']['get']('trackChanges');_0x16b31b&&(_0x16b31b['on']('execute',(_0xeb73b7,[,_0x503ed5])=>{this['_trackChangesValueDuringImport']=_0x29dbcf['value'],_0x503ed5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x16b31b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x16b31b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x29dbcf['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x13f302['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x60f651,_0x397b90){const {suggestions:_0x3cd6e9}=_0x397b90,_0x488a62=this['editor']['commands']['get']('trackChanges'),_0x333e85=_0x488a62['value'];this['_trackChangesValueDuringImport']!==_0x333e85&&(_0x488a62['execute'](),this['_trackChangesExecuted']=!0x0),_0x3cd6e9&&_0x3cd6e9['forEach'](({id:_0x425f4c,type:_0xeca32f,author:_0x31951d,created_at:_0x190634})=>{const _0x3dc193={'id':_0x425f4c,'type':_0xeca32f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x31951d,'createdAt':_0x190634?new Date(_0x190634):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3dc193);});}}class ut extends _0x50e036{['afterInit'](){const _0x24f0e3=this['editor'],_0x335bc9=_0x24f0e3['plugins']['get']('TrackChangesEditing');if(_0x24f0e3['plugins']['has']('IndentEditing')&&(_0x335bc9['enableCommand']('indent'),_0x335bc9['enableCommand']('outdent')),_0x24f0e3['plugins']['has']('IndentBlock')){for(const _0x90b2d2 of['indentBlock','outdentBlock'])_0x335bc9['enableDefaultAttributesIntegration'](_0x90b2d2);}const _0x476458=_0x24f0e3['locale'];_0x335bc9['registerBlockAttribute']('blockIndent'),_0x335bc9['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x476458,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5938fa=this['editor'],_0x96e5b4=_0x5938fa['locale'],_0x35cc35=_0x5938fa['plugins']['get']('TrackChangesEditing');_0x35cc35['descriptionFactory']['registerDescriptionCallback'](_0x19f7f7=>{if('formatBlock'!=_0x19f7f7['type'])return;const {data:_0x5d9d41}=_0x19f7f7;if(!_0x5d9d41)return;if('indentBlock'!=_0x5d9d41['commandName']&&'outdentBlock'!=_0x5d9d41['commandName'])return;const _0x4fe929=_0x19f7f7['getItems']()[0x0],_0x305a1f=_0x35cc35['descriptionFactory']['getItemLabel'](_0x4fe929);return'indentBlock'==_0x5d9d41['commandName']?{'type':'format','content':o(_0x96e5b4,'*Indent:*\x20%0',_0x305a1f)}:'outdentBlock'==_0x5d9d41['commandName']?{'type':'format','content':o(_0x96e5b4,'*Outdent:*\x20%0',_0x305a1f)}:void 0x0;});}}class ft extends _0x50e036{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x50e036{['afterInit'](){const _0x46055f=this['editor'];if(!_0x46055f['plugins']['has']('LinkEditing'))return;const _0xf53b60=_0x46055f['plugins']['get']('TrackChangesEditing'),_0x43d62a=_0x46055f['commands']['get']('link');_0xf53b60['enableDefaultAttributesIntegration']('link'),_0xf53b60['enableDefaultAttributesIntegration']('unlink'),_0xf53b60['registerInlineAttribute']('linkHref');for(const _0xa258c7 of _0x43d62a['manualDecorators'])_0xf53b60['registerInlineAttribute'](_0xa258c7['id']),_0xf53b60['descriptionFactory']['registerAttributeLabel'](_0xa258c7['id'],'link\x20('+_0xa258c7['label']['toLowerCase']()+')');_0xf53b60['descriptionFactory']['registerDescriptionCallback'](_0x187688=>{if('attribute'!=_0x187688['type'])return;const {data:_0x175e9e}=_0x187688;if(!_0x175e9e||'linkHref'!=_0x175e9e['key'])return;const _0x276a9b=_0x175e9e['newValue'],_0xdd8311=_0x46055f['locale'];return{'type':'format','content':null==_0x276a9b?o(_0xdd8311,'*Remove\x20link*'):o(_0xdd8311,'*Set\x20link:*\x20%0','\x22'+_0x276a9b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e5211=this['editor'],_0x23b639=_0x1e5211['locale'];_0x1e5211['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x508af4=>{if('formatInline'!=_0x508af4['type'])return;const {data:_0x3a8e26}=_0x508af4;if(_0x3a8e26){if('link'==_0x3a8e26['commandName']){const _0x2d41b3=_0x3a8e26['commandParams'][0x0];return{'type':'format','content':o(_0x23b639,'*Set\x20link:*\x20%0','\x22'+_0x2d41b3+'\x22')};}return'unlink'==_0x3a8e26['commandName']?{'type':'format','content':o(_0x23b639,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x50e036{['afterInit'](){const _0x43ec4b=this['editor'],_0x184c5a=_0x43ec4b['locale'];if(!_0x43ec4b['plugins']['has']('LegacyListEditing'))return;const _0x500088=_0x43ec4b['plugins']['get']('TrackChangesEditing'),_0x2ecebc=_0x43ec4b['plugins']['has']('LegacyTodoListEditing');function _0x1d01d6(_0x5b1a93){return()=>{const _0x17f186=_0x43ec4b['model']['document']['selection'],_0x26e69c=_0x43ec4b['commands']['get'](_0x5b1a93);if(_0x26e69c['value'])return void _0x43ec4b['execute']('paragraph',{});const _0x2006be=_0x5b1a93['slice'](0x0,-0x4),_0x3a3eca=function(_0xc9c86c,_0x43f887,_0x11e2ff){let _0xa080ef=Array['from'](_0xc9c86c)['filter'](_0x577ae7=>function(_0x2cde6c,_0x6f1f65){return _0x6f1f65['checkChild'](_0x2cde6c['parent'],'listItem')&&!_0x6f1f65['isObject'](_0x2cde6c);}(_0x577ae7,_0x11e2ff));_0xa080ef=_0xa080ef['filter'](_0x5f59ab=>!_0x5f59ab['is']('element','listItem')||_0x5f59ab['getAttribute']('listType')!=_0x43f887);const _0x4520c2=new Set();for(const _0x17a7cb of _0xa080ef)_0x17a7cb['is']('element','listItem')?_0x4520c2['add'](Le(_0x17a7cb)):_0x4520c2['add'](_0x17a7cb);return Array['from'](_0x4520c2);}(_0x17f186['getSelectedBlocks'](),_0x2006be,_0x43ec4b['model']['schema']);_0x43ec4b['model']['change'](()=>{for(const _0x24918f of _0x3a3eca)_0x500088['markBlockFormat'](_0x24918f,{'commandName':_0x5b1a93,'commandParams':[{'forceValue':!_0x26e69c['value']}],'formatGroupId':'blockName'},Ee(_0x24918f));});};}function _0x48b1c2(_0x2b2a85){return()=>{const _0x46cd0c=function(_0x3303ad){let _0x2a321b=Array['from'](_0x3303ad);const _0x3d873d=_0x2a321b['findIndex'](_0x52cba9=>'listItem'!=_0x52cba9['name']);return _0x3d873d>-0x1&&(_0x2a321b=_0x2a321b['slice'](0x0,_0x3d873d)),_0x2a321b;}(_0x43ec4b['model']['document']['selection']['getSelectedBlocks']()),_0x41d291=_0x43ec4b['model']['createRange'](_0x43ec4b['model']['createPositionAt'](_0x46cd0c[0x0],'before'),_0x43ec4b['model']['createPositionAt'](_0x46cd0c[_0x46cd0c['length']-0x1],'end'));_0x43ec4b['model']['change'](()=>{_0x500088['markBlockFormat'](_0x41d291,{'commandName':_0x2b2a85,'commandParams':[],'formatGroupId':'listIndent'},function(_0x425754){const _0x407c00=new Set();for(const _0x434fb8 of _0x425754){let _0x29f823=_0x434fb8['nextSibling'];for(;_0x29f823&&_0x29f823['getAttribute']('listIndent')>_0x434fb8['getAttribute']('listIndent');)_0x407c00['add'](_0x29f823),_0x29f823=_0x29f823['nextSibling'];}return Array['from'](_0x407c00);}(_0x46cd0c));});};}_0x500088['enableCommand']('numberedList',_0x1d01d6('numberedList')),_0x500088['enableCommand']('bulletedList',_0x1d01d6('bulletedList')),_0x2ecebc&&_0x500088['enableCommand']('todoList',_0x1d01d6('todoList')),_0x500088['enableCommand']('indentList',_0x48b1c2('indentList')),_0x500088['enableCommand']('outdentList',_0x48b1c2('outdentList')),_0x2ecebc&&_0x500088['enableCommand']('checkTodoList',()=>{const _0xac3550=_0x43ec4b['commands']['get']('checkTodoList'),_0xa6ad76=Array['from'](_0xac3550['_selectedElements']);_0xa6ad76['filter'](_0x5ecead=>_0x5ecead['getAttribute']('todoListChecked')!=_0xac3550['value']),_0x43ec4b['model']['change'](()=>{for(const _0x894ea6 of _0xa6ad76)_0x500088['markBlockFormat'](_0x894ea6,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xac3550['value']}]});});}),_0x500088['descriptionFactory']['registerElementLabel']('listItem',_0x2fa146=>o(_0x184c5a,'ELEMENT_LIST_ITEM',_0x2fa146)),_0x500088['descriptionFactory']['registerDescriptionCallback'](_0x1c3fd2=>{if('formatBlock'!=_0x1c3fd2['type']&&'formatInline'!=_0x1c3fd2['type'])return;const {data:_0x4b06b2}=_0x1c3fd2;if(_0x4b06b2){if('numberedList'==_0x4b06b2['commandName']||'bulletedList'==_0x4b06b2['commandName']||'todoList'==_0x4b06b2['commandName'])switch(_0x4b06b2['commandName']['replace']('List','')){case'bulleted':return _0x2bdedd(o(_0x184c5a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2bdedd(o(_0x184c5a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2bdedd(o(_0x184c5a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4b06b2['commandName'])return{'type':'format','content':o(_0x184c5a,'*Indent:*\x20%0',o(_0x184c5a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4b06b2['commandName'])return{'type':'format','content':o(_0x184c5a,'*Outdent:*\x20%0',o(_0x184c5a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4b06b2['commandName'])return _0x4b06b2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x184c5a,'*Check\x20item*')}:{'type':'format','content':o(_0x184c5a,'*Uncheck\x20item*')};}function _0x2bdedd(_0x58d5d0){return{'type':'format','content':o(_0x184c5a,'*Change\x20to:*\x20%0',_0x58d5d0)};}});}}function Le(_0x1bed8e){const _0x2022b8=_0x1bed8e['getAttribute']('listIndent');if(0x0==_0x2022b8)return _0x1bed8e;let _0x1c1fa1=_0x1bed8e;for(;_0x1bed8e['previousSibling']&&_0x1bed8e['previousSibling']['is']('element','listItem');){const _0x2abc8f=_0x1bed8e['previousSibling']['getAttribute']('listIndent');if(_0x2abc8f==_0x2022b8)_0x1c1fa1=_0x1bed8e['previousSibling'];else{if(_0x2abc8f<_0x2022b8)break;}_0x1bed8e=_0x1bed8e['previousSibling'];}return _0x1c1fa1;}function Ee(_0x1b4739){const _0x2bd221=[];if(_0x1b4739['is']('element','listItem')&&_0x1b4739['getAttribute']('listIndent')>0x0){let _0x252180=_0x1b4739['nextSibling'];for(;_0x252180&&'listItem'==_0x252180['name']&&_0x252180['getAttribute']('listIndent')==_0x1b4739['getAttribute']('listIndent');)_0x2bd221['push'](_0x252180),_0x252180=_0x252180['nextSibling'];}return _0x2bd221;}class Q extends _0x50e036{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x49d8c5=this['editor']['config']['get']('list.properties'),_0x5b555a=this['editor']['plugins']['get']('TrackChangesEditing');_0x49d8c5['styles']&&_0x5b555a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x49d8c5['reversed']&&_0x5b555a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x49d8c5['startIndex']&&_0x5b555a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5b555a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5647ed,_0x566e69={}){const _0x163f8f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29b804=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x163f8f['markMultiRangeBlockFormat'](_0x29b804,{'commandName':'listStyle','commandParams':[{'type':_0x566e69['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xd6a382,_0x1edfb8={}){const _0x25216b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22c689=this['_getSuggestionBlocks'](_0x4889c2=>_0x4889c2['is']('element','listItem')&&'numbered'===_0x4889c2['getAttribute']('listType'));if(_0x22c689['length']<0x1)return;const _0x23f5b8=_0x22c689['map'](_0xc08c28=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xc08c28,'before'),this['editor']['model']['createPositionAt'](_0xc08c28,0x0)));this['editor']['model']['change'](()=>{_0x25216b['markMultiRangeBlockFormat'](_0x23f5b8,{'commandName':'listReversed','commandParams':[{'reversed':_0x1edfb8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3f9a2c,_0x25b026={}){const _0x1765a7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b4d9e=this['_getSuggestionBlocks'](_0x27b0b7=>_0x27b0b7['is']('element','listItem')&&'numbered'===_0x27b0b7['getAttribute']('listType'));if(_0x4b4d9e['length']<0x1)return;const _0xce2014=_0x4b4d9e['map'](_0x39dccb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x39dccb,'before'),this['editor']['model']['createPositionAt'](_0x39dccb,0x0)));this['editor']['model']['change'](()=>{_0x1765a7['markMultiRangeBlockFormat'](_0xce2014,{'commandName':'listStart','commandParams':[{'startIndex':_0x25b026['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x6e7db1){if('formatBlock'!=_0x6e7db1['type']&&'formatInline'!=_0x6e7db1['type'])return;const _0x49f967=this['editor']['locale'],{data:_0x3c1471}=_0x6e7db1;if(!_0x3c1471)return;let _0xd33ba3,_0x83ad60;switch(_0x3c1471['commandName']){case'listStyle':_0xd33ba3='*Change\x20to:*\x20%0',_0x83ad60={'type':'format','content':o(_0x49f967,_0xd33ba3,o(_0x49f967,this['_getTranslationKeyForListStyle'](_0x3c1471['commandParams'][0x0]['type'])))};break;case'listReversed':_0xd33ba3=_0x3c1471['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x83ad60={'type':'format','content':o(_0x49f967,_0xd33ba3)};break;case'listStart':_0xd33ba3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x83ad60={'type':'format','content':o(_0x49f967,_0xd33ba3,_0x3c1471['commandParams'][0x0]['startIndex'])};}return _0x83ad60;}['_getSuggestionBlocksForListStyle'](){const _0x113454=this['editor']['plugins']['get']('LegacyListUtils');let _0x234d84=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x234d84[0x0]?.['is']('element','listItem')&&_0x234d84['unshift'](..._0x113454['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x234d84[_0x234d84['length']-0x1]?.['is']('element','listItem')&&_0x234d84['push'](..._0x113454['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x234d84=[...new Set(_0x234d84)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x234d84=_0x234d84['filter'](_0x3d6dab=>_0x3d6dab['is']('element','listItem'))),_0x234d84;}['_getSuggestionBlocks'](_0x27b5a0){const _0xf1b0a9=this['editor']['plugins']['get']('LegacyListUtils');let _0x5cd562=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x27b5a0)['map'](_0x2fc041=>{const _0x4d77d5=this['editor']['model']['createPositionAt'](_0x2fc041,0x0);return[..._0xf1b0a9['getSiblingNodes'](_0x4d77d5,'backward'),..._0xf1b0a9['getSiblingNodes'](_0x4d77d5,'forward')];})['flat']();return _0x5cd562=[...new Set(_0x5cd562)],_0x5cd562;}['_getTranslationKeyForListStyle'](_0x32eaf6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x32eaf6)||'default')['toUpperCase']()+'_LIST_'+_0x32eaf6['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x50e036{['afterInit'](){const _0x1bf020=this['editor'];if(!_0x1bf020['plugins']['has']('MediaEmbedEditing'))return;const _0x2fefa4=_0x1bf020['plugins']['get']('TrackChangesEditing'),_0x1194f6=_0x1bf020['locale'];_0x2fefa4['enableCommand']('mediaEmbed'),_0x2fefa4['descriptionFactory']['registerElementLabel']('media',_0x36608c=>o(_0x1194f6,'ELEMENT_MEDIA',_0x36608c)),_0x1bf020['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x42625f,{writer:_0x271d00,options:_0x22f5b5})=>{if(_0x22f5b5['showSuggestionHighlights'])return _0x271d00['createEmptyElement']('div');},'converterPriority':'high'}),_0x1bf020['data']['downcastDispatcher']['on']('attribute:url:media',(_0x20833f,_0x4ce1b5,_0x452133)=>{_0x452133['options']['showSuggestionHighlights']&&_0x20833f['stop']();},{'priority':'high'});}}class mt extends _0x50e036{['afterInit'](){const _0x582a76=this['editor'];_0x582a76['plugins']['has']('MentionEditing')&&_0x582a76['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x50e036{['afterInit'](){const _0x4d0aee=this['editor'];if(!_0x4d0aee['plugins']['has']('MergeFieldsEditing'))return;_0x4d0aee['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x4d0aee['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2179c6=_0x4d0aee['plugins']['get']('TrackChangesEditing'),_0x130b28=_0x4d0aee['locale'];_0x2179c6['descriptionFactory']['registerElementLabel']('mergeField',_0x139654=>o(_0x130b28,'ELEMENT_MERGE_FIELD',_0x139654)),_0x2179c6['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x541a60=>o(_0x130b28,'ELEMENT_MERGE_FIELD',_0x541a60)),_0x2179c6['descriptionFactory']['registerDescriptionCallback'](_0x4ce484=>{if('insertion'!=_0x4ce484['type']&&'deletion'!=_0x4ce484['type'])return;const _0x1ba6c3=_0x4ce484['getContainedElement']();if(null==_0x1ba6c3)return;if(!_0x1ba6c3['is']('element','mergeField')&&!_0x1ba6c3['is']('element','mergeFieldBlock'))return;const _0x30fbfe=_0x4d0aee['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x1ba6c3['getAttribute']('id'));return'insertion'==_0x4ce484['type']?{'type':'insertion','content':o(_0x130b28,'*Insert:*\x20%0','\x22'+_0x30fbfe+'\x22\x20'+o(_0x130b28,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x130b28,'*Remove:*\x20%0','\x22'+_0x30fbfe+'\x22\x20'+o(_0x130b28,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x50e036{['afterInit'](){const _0x1eb7b9=this['editor'],_0x435b15=_0x1eb7b9['plugins']['get']('TrackChangesEditing');_0x1eb7b9['plugins']['has']('MultiLevelList')&&(_0x435b15['enableDefaultAttributesIntegration']('multiLevelList'),_0x435b15['registerBlockAttribute']('listMarkerStyle'),_0x435b15['descriptionFactory']['registerDescriptionCallback'](_0x151366=>this['handleDescriptions'](_0x151366)));}['handleDescriptions'](_0x51602f){const _0x39699e=this['editor']['locale'],{data:_0x3e36cf}=_0x51602f,_0x37c205={'type':'format','content':''};if(_0x3e36cf&&'listMarkerStyle'==_0x3e36cf['key']){if(!_0x3e36cf['oldValue'])return{'type':'format','content':o(_0x39699e,'*Set\x20format:*\x20%0',o(_0x39699e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3e36cf['newValue']+')'};if(!_0x3e36cf['newValue']){let _0x202b94=_0x51602f['head'];for(;_0x202b94;){if(_0x202b94['data']&&'listType'==_0x202b94['data']['key']&&_0x202b94['data']['newValue'])return _0x37c205;_0x202b94=_0x202b94['next'];}return{'type':'format','content':o(_0x39699e,'*Remove\x20format:*\x20%0',o(_0x39699e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3e36cf['oldValue']+')'};}}}}class kt extends _0x50e036{['afterInit'](){const _0x217993=this['editor'];if(!_0x217993['plugins']['has']('PageBreakEditing'))return;_0x217993['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x336764=_0x217993['plugins']['get']('TrackChangesEditing'),_0x3ed6ae=_0x217993['locale'];_0x336764['descriptionFactory']['registerElementLabel']('pageBreak',_0x440264=>o(_0x3ed6ae,'ELEMENT_PAGE_BREAK',_0x440264));}}class bt extends _0x50e036{['afterInit'](){const _0x3befc3=this['editor'];if(!_0x3befc3['plugins']['has']('Paragraph'))return;const _0x208e33=_0x3befc3['locale'],_0x24e22b=_0x3befc3['plugins']['get']('TrackChangesEditing');_0x24e22b['descriptionFactory']['registerElementLabel']('paragraph',_0x17d88f=>o(_0x208e33,'ELEMENT_PARAGRAPH',_0x17d88f)),_0x24e22b['enableDefaultAttributesIntegration']('paragraph'),_0x24e22b['enableCommand']('insertParagraph'),_0x3befc3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3befc3),{'priority':'highest'}),_0x3befc3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x44abb3,_0x353eed,_0x26aac4)=>{_0x26aac4['options']['showSuggestionHighlights']&&nr(_0x3befc3,{'showActiveMarker':!0x1})(_0x44abb3,_0x353eed,_0x26aac4);},{'priority':'highest'});const _0x5de8ae=_0x24e22b['descriptionFactory'];_0x5de8ae['registerDescriptionCallback'](_0x449e59=>{if('insertion'!==_0x449e59['type'])return;const {start:_0xd5dffe,end:_0x1465a8}=_0x449e59['getFirstRange']();if(!_0xd5dffe['isTouching'](_0x1465a8)||!_0xd5dffe['nodeAfter'])return;const _0x28c119=_0x3befc3['model']['schema'],_0xdc7383=_0xd5dffe['nodeAfter'];return _0x28c119['isBlock'](_0xdc7383)&&!_0x28c119['isLimit'](_0xdc7383)&&_0x28c119['checkChild'](_0xdc7383,'$text')?{'type':'insertion','content':o(_0x208e33,'*Insert:*\x20%0',_0x5de8ae['getItemLabel'](_0xdc7383,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d1fad=this['editor'],_0x370f7e=_0x4d1fad['locale'];_0x4d1fad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bb69f=>{if('formatBlock'!=_0x3bb69f['type'])return;const {data:_0x4ac363}=_0x3bb69f;return _0x4ac363&&'paragraph'==_0x4ac363['commandName']?{'type':'format','content':o(_0x370f7e,'*Change\x20to:*\x20%0',o(_0x370f7e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5cb8d3,{showActiveMarker:_0x3eafdc=!0x0}={}){return(_0x3f0cb,_0xc88c73,_0x8ec315)=>{const _0x310a3e=_0x5cb8d3['plugins']['get']('TrackChangesEditing'),_0x41a32b=_0xc88c73['markerRange']['start'],_0x121854=_0xc88c73['markerRange']['end'],_0x21970b=_0x5cb8d3['model']['schema'];if(!_0x41a32b['isTouching'](_0x121854)||!_0x41a32b['nodeAfter'])return;const _0x4e2da4=_0x41a32b['nodeAfter'];if(_0x21970b['isBlock'](_0x4e2da4)&&!_0x21970b['isLimit'](_0x4e2da4)&&_0x21970b['checkChild'](_0x4e2da4,'$text')){if(!_0x8ec315['consumable']['consume'](_0xc88c73['markerRange'],_0x3f0cb['name']))return;const {authorId:_0x189491}=_0x310a3e['_splitMarkerName'](_0xc88c73['markerName']),_0x694d13=_0x8ec315['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x189491}),_0x856292=_0x8ec315['mapper']['toViewPosition'](_0x121854);_0x3eafdc&&_0x310a3e['activeMarkers']['includes'](_0xc88c73['markerName'])&&_0x8ec315['writer']['addClass']('ck-suggestion-marker--active',_0x694d13),_0x8ec315['writer']['insert'](_0x856292,_0x694d13),_0x8ec315['mapper']['bindElementToMarker'](_0x694d13,_0xc88c73['markerName']);}};}class yt extends _0x50e036{['afterInit'](){const _0x891981=this['editor'];if(!_0x891981['plugins']['has']('RemoveFormatEditing'))return;_0x891981['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x481b85=this['editor'];_0x481b85['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8bf85b=>{if('formatBlock'!=_0x8bf85b['type']&&'formatInline'!=_0x8bf85b['type'])return;const {data:_0x2b0250}=_0x8bf85b;return _0x2b0250&&'removeFormat'==_0x2b0250['commandName']?{'type':'format','content':o(_0x481b85['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x50e036{['afterInit'](){const _0xbf300c=this['editor'];if(!_0xbf300c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5c17c2=_0xbf300c['plugins']['get']('TrackChangesEditing');_0x5c17c2['enableCommand']('goToPreviousRestrictedEditingException'),_0x5c17c2['enableCommand']('goToNextRestrictedEditingException');const _0x3fa411=_0xbf300c['plugins']['get']('RestrictedEditingModeEditing');_0x3fa411['enableCommand']('trackChanges'),_0x3fa411['enableCommand']('acceptSuggestion'),_0x3fa411['enableCommand']('discardSuggestion'),_0x3fa411['enableCommand']('acceptAllSuggestions'),_0x3fa411['enableCommand']('discardAllSuggestions'),_0x3fa411['enableCommand']('acceptSelectedSuggestions'),_0x3fa411['enableCommand']('discardSelectedSuggestions');}}class St extends _0x50e036{static get['requires'](){return[_0x4acbfa];}['init'](){const _0x1999c1=this['editor'],_0x5166c7=_0x1999c1['plugins']['get']('TrackChangesEditing');_0x5166c7['enableCommand']('shiftEnter'),_0x1999c1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x1999c1),{'priority':'high'}),_0x1999c1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x1999c1),{'priority':'high'}),_0x1999c1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x21880d,_0x18f648,_0x5181a6)=>{_0x5181a6['options']['showSuggestionHighlights']&&ke(_0x1999c1,{'showActiveMarker':!0x1})(_0x21880d,_0x18f648,_0x5181a6);}),_0x5166c7['descriptionFactory']['registerElementLabel']('softBreak',_0x3a23a3=>o(_0x1999c1['locale'],'ELEMENT_LINE_BREAK',_0x3a23a3));}}function ke(_0x3858e0,{showActiveMarker:_0x1453c7=!0x0}={}){return(_0x354bc2,_0x4c2633,_0x3e4aa4)=>{const _0x57a87b=_0x3858e0['plugins']['get']('TrackChangesEditing');if(!_0x3e4aa4['consumable']['test'](_0x4c2633['markerRange'],_0x354bc2['name']))return;const _0x3bec1b=_0x3858e0['model'];for(const _0x19baaf of _0x4c2633['markerRange']['getItems']()){if(!_0x19baaf['is']('element','softBreak'))continue;const _0x20ef6b='deletion'==_0x4c2633['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x56b0c7}=_0x57a87b['_splitMarkerName'](_0x4c2633['markerName']),_0x57235f=_0x3e4aa4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x20ef6b,'data-author-id':_0x56b0c7}),_0x595f78=_0x3e4aa4['mapper']['toViewPosition'](_0x3bec1b['createPositionBefore'](_0x19baaf));_0x1453c7&&_0x57a87b['activeMarkers']['includes'](_0x4c2633['markerName'])&&_0x3e4aa4['writer']['addClass']('ck-suggestion-marker--active',_0x57235f),_0x3e4aa4['writer']['insert'](_0x595f78,_0x57235f),_0x3e4aa4['mapper']['bindElementToMarker'](_0x57235f,_0x4c2633['markerName']);}};}class At extends _0x50e036{['afterInit'](){const _0x31a901=this['editor'],_0x2ef6b1=_0x31a901['model'],_0x45759b=_0x31a901['locale'];if(!_0x31a901['plugins']['has']('StandardEditingModeEditing'))return;const _0x583db2=_0x31a901['plugins']['get']('TrackChangesEditing'),_0x22f200='restrictedEditingException',_0x5e95d3=_0x31a901['commands']['get'](_0x22f200);_0x583db2['enableCommand'](_0x22f200,(_0x36abe6,_0x23b804={})=>{const _0x32fc3f=_0x2ef6b1['document']['selection'];if(_0x32fc3f['isCollapsed'])return void _0x36abe6(_0x23b804);const _0x302acd=void 0x0!==_0x23b804['forceValue']?_0x23b804['forceValue']:!_0x5e95d3['value'];_0x2ef6b1['change'](()=>{const _0x4aa32b=Array['from'](_0x32fc3f['getRanges']());for(const _0x43435c of _0x4aa32b){const _0x5b52d2=_0x302acd?[_0x43435c]:io(_0x22f200,_0x43435c,_0x2ef6b1);for(const _0x45d3d6 of _0x5b52d2)_0x583db2['markInlineFormat'](_0x45d3d6,{'commandName':_0x22f200,'commandParams':[{'forceValue':_0x302acd}]});}});}),_0x583db2['descriptionFactory']['registerDescriptionCallback'](_0x478e8d=>{if('formatBlock'!=_0x478e8d['type']&&'formatInline'!=_0x478e8d['type'])return;const {data:_0x4f8db1}=_0x478e8d;return _0x4f8db1&&_0x4f8db1['commandName']==_0x22f200?_0x4f8db1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x45759b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x45759b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x50e036{['afterInit'](){const _0x2efbf8=this['editor'];if(!_0x2efbf8['plugins']['has']('Style')||!_0x2efbf8['plugins']['has']('DataSchema'))return;const _0xea72f4=_0x2efbf8['plugins']['get']('TrackChangesEditing'),_0x21a585=_0x2efbf8['locale'],_0x49d078=_0x2efbf8['config']['get']('style')||{},_0x1f5788=_0x2efbf8['plugins']['get']('GeneralHtmlSupport'),_0x36654f=_0x2efbf8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2efbf8['plugins']['get']('DataSchema'),_0x49d078['definitions']);_0xea72f4['enableDefaultAttributesIntegration']('style');const _0x2c5a18=new Set();for(const _0x3bd15f of _0x36654f['block']){const _0x1e61a6=_0x1f5788['getGhsAttributeNameForElement'](_0x3bd15f['element']);_0x2c5a18['add'](_0x1e61a6);}const _0x514358=new Set();for(const _0x4f0b5c of _0x36654f['inline']){const _0x4df4ae=_0x1f5788['getGhsAttributeNameForElement'](_0x4f0b5c['element']);_0x514358['add'](_0x4df4ae);for(const _0x5ac460 of _0x4f0b5c['ghsAttributes'])_0x514358['add'](_0x5ac460);}for(const _0x510ee1 of _0x2c5a18)_0xea72f4['registerBlockAttribute'](_0x510ee1),_0xea72f4['descriptionFactory']['registerAttributeLabel'](_0x510ee1,o(_0x21a585,'FORMAT_STYLE'));for(const _0x150de4 of _0x514358)_0xea72f4['registerInlineAttribute'](_0x150de4),_0xea72f4['descriptionFactory']['registerAttributeLabel'](_0x150de4,o(_0x21a585,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fe7b8=this['editor'],_0x48e946=_0x3fe7b8['locale'];_0x3fe7b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x519509=>{if('formatBlock'!=_0x519509['type']&&'formatInline'!=_0x519509['type'])return;const {data:_0x13819e}=_0x519509;return _0x13819e&&'style'===_0x13819e['commandName']?_0x13819e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48e946,'*Set\x20format:*\x20%0',_0x13819e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x48e946,'*Remove\x20format:*\x20%0',_0x13819e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x50e036{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x11a324){super(_0x11a324),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x9b618f=this['editor'],_0x3b89b0=_0x9b618f['model']['document']['selection'];if(!_0x9b618f['plugins']['has']('TableEditing'))return;const _0xc9cf85=_0x9b618f['locale'],_0x2fb41e=_0x9b618f['plugins']['get']('TrackChangesEditing'),_0x48a9d5=_0x9b618f['plugins']['get']('TableUtils');_0x2fb41e['descriptionFactory']['registerElementLabel']('table',_0x50e27b=>o(_0xc9cf85,'ELEMENT_TABLE',_0x50e27b)),this['_setupColumnsRowsFixing'](),_0x2fb41e['enableCommand']('insertTable'),_0x2fb41e['enableCommand']('selectTableRow'),_0x2fb41e['enableCommand']('selectTableColumn');for(const _0x359d65 of['insertTableRowAbove','insertTableRowBelow']){const _0x4fd165=_0x9b618f['commands']['get'](_0x359d65);_0x2fb41e['enableCommand'](_0x359d65,_0x32e151=>{_0x9b618f['model']['change'](_0x19dfde=>{_0x32e151();const _0x2deb02='above'===_0x4fd165['order'],_0x166cfa=_0x48a9d5['getSelectionAffectedTableCells'](_0x3b89b0),_0x3675a5=_0x48a9d5['getRowIndexes'](_0x166cfa),_0x53ad67=_0x2deb02?_0x3675a5['first']-0x1:_0x3675a5['last']+0x1,_0x58c21f=_0x166cfa[0x0]['findAncestor']('table'),_0x217117=_0x48a9d5['createTableWalker'](_0x58c21f,{'startRow':_0x53ad67,'endRow':_0x53ad67}),_0xf5648a=Array['from'](_0x217117)['map'](_0x49a12f=>_0x19dfde['createRangeOn'](_0x49a12f['cell']));_0x2fb41e['markMultiRangeInsertion'](_0xf5648a,'tableRow');});});}for(const _0x2747c5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5c1f78=_0x9b618f['commands']['get'](_0x2747c5);_0x2fb41e['enableCommand'](_0x2747c5,_0x19c8f5=>{_0x9b618f['model']['change'](_0x15d6f2=>{_0x19c8f5();const _0x251a00='left'===_0x5c1f78['order'],_0x1f31f7=_0x48a9d5['getSelectionAffectedTableCells'](_0x3b89b0),_0x458e6c=_0x48a9d5['getColumnIndexes'](_0x1f31f7),_0x546ee1=_0x251a00?_0x458e6c['first']-0x1:_0x458e6c['last']+0x1,_0x1abc37=_0x1f31f7[0x0]['findAncestor']('table'),_0x6de349=_0x48a9d5['createTableWalker'](_0x1abc37,{'startRow':0x0,'column':_0x546ee1,'includeAllSlots':!0x1}),_0x41836e=Array['from'](_0x6de349)['map'](_0x54d1a5=>_0x15d6f2['createRangeOn'](_0x54d1a5['cell']));_0x2fb41e['markMultiRangeInsertion'](_0x41836e,'tableColumn');});});}for(const _0x575130 of['removeTableRow','removeTableColumn']){const _0x1ec605=_0x575130['substr'](0xb),_0x5c60df=_0x1ec605['toLowerCase'](),_0xcceb44=_0x5c60df['substr'](0x0,0x3)+'span',_0x5add17='table'+_0x1ec605,_0x4ccdc4='min'+_0x1ec605,_0x1c177e='max'+_0x1ec605;_0x2fb41e['enableCommand'](_0x575130,()=>{_0x9b618f['model']['change'](_0x2dabdb=>{const _0x4147ec=_0x48a9d5['getSelectionAffectedTableCells'](_0x3b89b0),_0x571964=_0x4147ec[0x0]['findAncestor']('table');let _0x3b1b56;if('removeTableRow'==_0x575130){const _0x2a4fad=_0x48a9d5['getRowIndexes'](_0x4147ec);_0x3b1b56={'startRow':_0x2a4fad['first'],'endRow':_0x2a4fad['last'],'includeAllSlots':!0x0};}else{const _0x30dc90=_0x48a9d5['getColumnIndexes'](_0x4147ec);_0x3b1b56={'startColumn':_0x30dc90['first'],'endColumn':_0x30dc90['last'],'includeAllSlots':!0x0};}const _0x4d32c0=_0x48a9d5['createTableWalker'](_0x571964,_0x3b1b56),_0x848d6b=Array['from'](_0x4d32c0)['map'](({cell:_0xc8dead})=>_0xc8dead),_0x4342f8=Re(_0x848d6b['filter'](_0x3cceaa=>_0x3cceaa['hasAttribute'](_0xcceb44))),_0x4c2fde=Re(_0x848d6b['filter'](_0x595751=>!_0x595751['hasAttribute'](_0xcceb44)))['map'](_0x3026fd=>_0x2dabdb['createRangeOn'](_0x3026fd)),_0x26dcf5=_0x2fb41e['markMultiRangeDeletion'](_0x4c2fde,_0x5add17);if(_0x26dcf5&&('tableRow'==_0x26dcf5['subType']||'tableColumn'==_0x26dcf5['subType'])){const _0x240aa2=this['_getSuggestionCoords'](_0x26dcf5);for(const _0x3ac93c of _0x4342f8){const _0x51bc02=_0x2dabdb['createRangeOn'](_0x3ac93c),_0x3f2c38=_0x48a9d5['getCellLocation'](_0x3ac93c),_0x40d867=_0x3ac93c['getAttribute'](_0xcceb44)-0x1,_0x28a54e=_0x240aa2[_0x4ccdc4],_0x466619=_0x240aa2[_0x1c177e];_0x28a54e<=_0x3f2c38[_0x5c60df]&&_0x3f2c38[_0x5c60df]+_0x40d867<=_0x466619&&_0x26dcf5['addRange'](_0x51bc02);}}});});}function _0x10b028(_0x1bd37b){const _0x3fad81=Array['from'](_0x3b89b0['getRanges']())['map'](_0x1c921d=>_0x13a61a['fromRange'](_0x1c921d));_0x9b618f['model']['change'](_0x5ce9c2=>{const _0x1653b9=_0x5ce9c2['batch'];_0x1bd37b=_0x1bd37b['filter'](_0x22d901=>'$graveyard'!=_0x22d901['root']['rootName']),_0x5ce9c2['setSelection'](_0x1bd37b),_0x9b618f['commands']['get']('removeTableRow')['refresh'](),_0x9b618f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x9b618f['model']['enqueueChange'](()=>{_0x9b618f['model']['enqueueChange'](_0x1653b9,_0xa558cb=>{const _0x1b94bf=_0x3fad81['filter'](_0x50380a=>'$graveyard'!=_0x50380a['root']['rootName']);_0x1b94bf['length']>0x0&&_0xa558cb['setSelection'](_0x1b94bf);for(const _0x15a9db of _0x3fad81)_0x15a9db['detach']();});});});}function _0x4b2797(_0x1a13a2){_0x9b618f['model']['change'](_0x2cbead=>{const _0x2d998b=Array['from'](_0x3b89b0['getRanges']())['map'](_0x498c85=>_0x13a61a['fromRange'](_0x498c85)),_0x196de7=[];for(const _0x35b4d9 of _0x1a13a2)for(const _0x2d48be of _0x35b4d9['getItems']({'shallow':!0x0}))_0x196de7['push'](_0x2d48be);for(const _0x430059 of _0x196de7)'$graveyard'!=_0x430059['root']['rootName']&&(_0x2cbead['setSelection'](_0x2cbead['createPositionAt'](_0x430059,0x0)),_0x9b618f['commands']['get']('removeTableColumn')['refresh'](),_0x9b618f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xe7a713=_0x2d998b['filter'](_0x5c0d6d=>'$graveyard'!=_0x5c0d6d['root']['rootName']);_0xe7a713['length']>0x0&&_0x2cbead['setSelection'](_0xe7a713);for(const _0x507ebd of _0x2d998b)_0x507ebd['detach']();});}function _0x4d857d(_0x3a061a,_0x37b9e9){return _0x37b9e9['every'](_0x18611b=>_0x3a061a['some'](_0x2f001a=>_0x2f001a['end']['isEqual'](_0x18611b['start'])||_0x18611b['end']['isEqual'](_0x2f001a['start'])));}function _0x1580d7(_0x5d610d,_0x40b7b4){return!_0x5d610d['some'](_0x44c564=>_0x40b7b4['some'](_0x4f3cc1=>_0x44c564['isIntersecting'](_0x4f3cc1)))&&_0x5d610d['some'](_0x25edab=>_0x40b7b4['some'](_0x3b1da4=>_0x25edab['end']['isTouching'](_0x3b1da4['start'])));}_0x9b618f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5ab66d,_0x25abea,_0x1b1ce1)=>{if(!_0x1b1ce1['options']['showSuggestionHighlights'])return;const _0x230d77=_0x25abea['item'];if(!_0x230d77)return;const _0x4441b5=_0x1b1ce1['mapper']['toViewElement'](_0x230d77);function _0x278039(_0x19e363){return Array['isArray'](_0x19e363)?_0x19e363:[_0x19e363];}_0x4441b5&&'tableCell'===_0x230d77['name']&&_0x4dd171(_0x4441b5,_0x1b1ce1['writer'],(_0x412744,_0x58d8c6,_0x34db6b)=>_0x34db6b['addClass'](_0x278039(_0x58d8c6['classes']),_0x412744),(_0x36774f,_0x1eaa14,_0x55814f)=>_0x55814f['removeClass'](_0x278039(_0x1eaa14['classes']),_0x36774f));},{'priority':'highest'}),_0x2fb41e['descriptionFactory']['registerDescriptionCallback'](_0x4371f7=>{if('insertion'!=_0x4371f7['type']&&'deletion'!=_0x4371f7['type'])return;const _0x1a4a58=_0x4371f7['getContainedElement']();if(null!=_0x1a4a58&&_0x1a4a58['is']('element','table')){if('insertion'==_0x4371f7['type']){const _0x2ba10c=_0x4371f7['getItems']()['filter'](_0x43f0b0=>_0x43f0b0['is']('$textProxy'))['map'](_0x2d0f0b=>_0x2d0f0b['data']);if(_0x2ba10c['length'])return{'type':'insertion','content':o(_0xc9cf85,'*Insert:*\x20%0',o(_0xc9cf85,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2ba10c['join']('\x20')+'\x22'))};}if('deletion'==_0x4371f7['type']){const _0x4961e0=_0x4371f7['getItems']()['filter'](_0x2df979=>_0x2df979['is']('$textProxy'))['map'](_0x394458=>_0x394458['data']);if(_0x4961e0['length'])return{'type':'deletion','content':o(_0xc9cf85,'*Remove:*\x20%0',o(_0xc9cf85,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4961e0['join']('\x20')+'\x22'))};}}}),_0x2fb41e['descriptionFactory']['registerDescriptionCallback'](_0x5c5fd1=>{if('tableRow'==_0x5c5fd1['subType']){const _0x5507d4=_0x5c5fd1['getItems']()['filter'](_0x749478=>_0x749478['is']('$textProxy'))['map'](_0xa96fff=>_0xa96fff['data']),_0x190b48=this['_getSuggestionCoords'](_0x5c5fd1),_0x549791=_0x190b48['maxRow']-_0x190b48['minRow']+0x1;if('insertion'==_0x5c5fd1['type'])return _0x5507d4['length']?{'type':'insertion','content':o(_0xc9cf85,'*Insert:*\x20%0',o(_0xc9cf85,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x549791,'\x22'+_0x5507d4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xc9cf85,'*Insert:*\x20%0',o(_0xc9cf85,'ELEMENT_TABLE_ROW',_0x549791))};if('deletion'==_0x5c5fd1['type'])return _0x5507d4['length']?{'type':'deletion','content':o(_0xc9cf85,'*Remove:*\x20%0',o(_0xc9cf85,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x549791,'\x22'+_0x5507d4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xc9cf85,'*Remove:*\x20%0',o(_0xc9cf85,'ELEMENT_TABLE_ROW',_0x549791))};}if('tableColumn'==_0x5c5fd1['subType']){const _0x35c83b=_0x5c5fd1['getItems']()['filter'](_0x12b5bb=>_0x12b5bb['is']('$textProxy'))['map'](_0x19a5ca=>_0x19a5ca['data']),_0xea467b=this['_getSuggestionCoords'](_0x5c5fd1),_0x59926f=_0xea467b['maxColumn']-_0xea467b['minColumn']+0x1;if('insertion'==_0x5c5fd1['type'])return _0x35c83b['length']?{'type':'insertion','content':o(_0xc9cf85,'*Insert:*\x20%0',o(_0xc9cf85,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x59926f,'\x22'+_0x35c83b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xc9cf85,'*Insert:*\x20%0',o(_0xc9cf85,'ELEMENT_TABLE_COLUMN',_0x59926f))};if('deletion'==_0x5c5fd1['type'])return _0x35c83b['length']?{'type':'deletion','content':o(_0xc9cf85,'*Remove:*\x20%0',o(_0xc9cf85,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x59926f,'\x22'+_0x35c83b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xc9cf85,'*Remove:*\x20%0',o(_0xc9cf85,'ELEMENT_TABLE_COLUMN',_0x59926f))};}}),_0x2fb41e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x10b028),_0x2fb41e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x10b028),_0x2fb41e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4b2797),_0x2fb41e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4b2797),_0x2fb41e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4d857d),_0x2fb41e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4d857d),_0x2fb41e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1580d7),_0x2fb41e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1580d7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x340e68=this['editor'],_0x1bddbb=_0x340e68['model']['document']['selection'];return(_0x352417,_0x3cb9c7)=>{_0x340e68['model']['change'](_0x3b9337=>{const {commandName:_0x66f60a,commandParams:_0x4ea807}=_0x3cb9c7;let _0x482ebf=_0x352417[0x0]['end']['nodeBefore'];_0x4ea807&&_0x4ea807[0x0]&&!0x1===_0x4ea807[0x0]['forceValue']&&(_0x482ebf=_0x352417[0x0]['start']['nodeAfter']);const _0x30574f=_0x3b9337['createRangeIn'](_0x482ebf);if('$graveyard'==_0x30574f['root']['rootName'])return;const _0x2ce70b=Array['from'](_0x1bddbb['getRanges']())['map'](_0x350ab2=>_0x13a61a['fromRange'](_0x350ab2));_0x3b9337['setSelection'](_0x30574f),_0x340e68['commands']['get'](_0x66f60a)['refresh'](),_0x4ea807['push']({'forceDefaultExecution':!0x0}),_0x340e68['execute'](_0x66f60a,..._0x4ea807);const _0xfc8b22=_0x2ce70b['filter'](_0xc070f=>'$graveyard'!=_0xc070f['root']['rootName']);_0xfc8b22['length']>0x0&&_0x3b9337['setSelection'](_0xfc8b22);for(const _0xc60a13 of _0x2ce70b)_0xc60a13['detach']();});};}['_getCoordsForCells'](_0x288035){const _0x473985=this['editor']['plugins']['get']('TableUtils');let _0x266d78=Number['MAX_SAFE_INTEGER'],_0x538c34=Number['MIN_SAFE_INTEGER'],_0x4a8aba=Number['MAX_SAFE_INTEGER'],_0x7bfe92=Number['MIN_SAFE_INTEGER'];for(const _0x1a8c7d of _0x288035){if('$graveyard'==_0x1a8c7d['root']['rootName'])continue;const {row:_0x45d4ad,column:_0x312e84}=_0x473985['getCellLocation'](_0x1a8c7d),_0x2bb661=_0x1a8c7d['hasAttribute']('rowspan')?_0x1a8c7d['getAttribute']('rowspan')-0x1:0x0,_0x12571d=_0x1a8c7d['hasAttribute']('colspan')?_0x1a8c7d['getAttribute']('colspan')-0x1:0x0;_0x266d78=_0x45d4ad<_0x266d78?_0x45d4ad:_0x266d78,_0x538c34=_0x45d4ad+_0x2bb661>_0x538c34?_0x45d4ad+_0x2bb661:_0x538c34,_0x4a8aba=_0x312e84<_0x4a8aba?_0x312e84:_0x4a8aba,_0x7bfe92=_0x312e84+_0x12571d>_0x7bfe92?_0x312e84+_0x12571d:_0x7bfe92;}return{'minRow':_0x266d78,'maxRow':_0x538c34,'minColumn':_0x4a8aba,'maxColumn':_0x7bfe92};}['_setupColumnsRowsFixing'](){const _0x17f68b=this['editor'],_0x557c97=_0x17f68b['plugins']['get']('TrackChangesEditing'),_0x1f6198=_0x17f68b['plugins']['get']('TableUtils');_0x17f68b['model']['document']['on']('change:data',()=>{const _0x350a3c=Array['from'](_0x17f68b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x548f4a,data:_0x2a8905}of _0x350a3c){const {group:_0x2c9755,id:_0x2ca784,subType:_0x33a70e}=_0x557c97['_splitMarkerName'](_0x548f4a);if('suggestion'!=_0x2c9755)continue;if(null!=_0x2a8905['oldRange'])continue;const _0x241904=_0x557c97['getSuggestion'](_0x2ca784);this['_tablePostFixingSubtypes']['includes'](_0x33a70e)&&this['_tableSuggestions']['add'](_0x241904);}},{'priority':'low'});const _0xf8d10b=(_0x337e27,_0x3c8c3c)=>{let _0x2a42d1=!0x1;const _0x915146=_0x3c8c3c['createRangeOn'](_0x337e27),_0x2b3300=_0x337e27['findAncestor']('table'),_0x3631c9=_0x1f6198['getCellLocation'](_0x337e27);for(const _0x15215e of this['_tableSuggestions']){const _0xa288f8=_0x15215e['subType'],_0x41281a=_0xa288f8['startsWith']('tablePaste'),_0xa5da8b=_0xa288f8['substr'](_0x41281a?0xa:0x5),_0x210549=_0xa5da8b['toLowerCase'](),_0x27cffb=_0x210549['substr'](0x0,0x3)+'span',_0x945a6e='min'+_0xa5da8b,_0x2687ef='max'+_0xa5da8b;if(!_0x15215e['isInContent'])continue;if(_0x2b3300!=_0x15215e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x15215e['isIntersectingWithRange'](_0x915146))continue;const _0x26e42d=_0x337e27['hasAttribute'](_0x27cffb)?_0x337e27['getAttribute'](_0x27cffb)-0x1:0x0,_0xdeae4f=this['_getSuggestionCoords'](_0x15215e),_0x2f534f=_0xdeae4f[_0x945a6e],_0x47b497=_0xdeae4f[_0x2687ef];_0x2f534f<=_0x3631c9[_0x210549]&&_0x3631c9[_0x210549]+_0x26e42d<=_0x47b497&&(_0x15215e['addRange'](_0x915146),_0x2a42d1=!0x0);}return _0x2a42d1;};_0x17f68b['model']['document']['registerPostFixer'](_0x108565=>{let _0x1a7998=!0x1;for(const _0x11cc2f of _0x17f68b['model']['document']['differ']['getChanges']())if('insert'==_0x11cc2f['type']){if('tableRow'==_0x11cc2f['name']){for(const _0x156ca8 of _0x11cc2f['position']['nodeAfter']['getChildren']())_0x1a7998=_0x1a7998||_0xf8d10b(_0x156ca8,_0x108565);}else'tableCell'==_0x11cc2f['name']&&(_0x1a7998=_0x1a7998||_0xf8d10b(_0x11cc2f['position']['nodeAfter'],_0x108565));}return _0x1a7998;});}['_getSuggestionCoords'](_0x3636b4){return this['_getCoordsForCells'](_0x3636b4['getRanges']()['map'](_0x3b30a1=>_0x3b30a1['start']['nodeAfter']));}}function Re(_0x5661ae){return Array['from'](new Set(_0x5661ae)['values']());}class _t extends _0x50e036{static get['requires'](){return[vt];}['afterInit'](){const _0x2f9e2e=this['editor'],_0x59ded2=_0x2f9e2e['model']['document']['selection'],_0x280dc2=_0x2f9e2e['locale'];if(!_0x2f9e2e['plugins']['has']('TableEditing'))return;const _0x4b4241=_0x2f9e2e['plugins']['get']('TrackChangesEditing'),_0x45319f=_0x2f9e2e['plugins']['get']('TableUtils'),_0xcd19cf=_0x2f9e2e['plugins']['get'](vt);_0xcd19cf['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4b4241['enableCommand']('mergeTableCells',()=>{const _0xd86035=_0x45319f['getSelectionAffectedTableCells'](_0x2f9e2e['model']['document']['selection']);_0x2f9e2e['model']['change'](()=>{_0x4b4241['markMultiRangeBlockFormat'](_0xd86035,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2f9e2e['commands']['get']('mergeTableCells')['on']('execute',(_0x35a61b,_0x1e195d)=>{_0x2f9e2e['commands']['get']('trackChanges')['value']&&(_0x1e195d['length']>0x0&&_0x1e195d[_0x1e195d['length']-0x1]&&_0x1e195d[_0x1e195d['length']-0x1]['forceDefaultExecution']||_0x4b4241['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x35a61b['stop']());},{'priority':'highest'});for(const _0x2a2a55 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x30372b=_0x2f9e2e['commands']['get'](_0x2a2a55);_0x4b4241['enableCommand'](_0x2a2a55,()=>{const _0x40999f=_0x2f9e2e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xbc38dc=>_0xbc38dc['is']('element','tableCell')),_0x40fb49=_0x30372b['value'];_0x2f9e2e['model']['change'](()=>{_0x4b4241['markMultiRangeBlockFormat']([_0x40999f,_0x40fb49],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x29b18f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4cdce5=_0x2f9e2e['commands']['get'](_0x29b18f);_0x4b4241['enableCommand'](_0x29b18f,()=>{const _0xec04c9=_0x45319f['getSelectionAffectedTableCells'](_0x2f9e2e['model']['document']['selection'])[0x0],_0x22a3fb=_0xec04c9['findAncestor']('table'),{column:_0x44658d,row:_0x17baf1}=_0x45319f['getCellLocation'](_0xec04c9);let _0x443a1f=[];if('horizontally'==_0x4cdce5['direction']){const _0x570494=_0x45319f['createTableWalker'](_0x22a3fb,{'startRow':_0x17baf1,'endRow':_0x17baf1,'includeAllSlots':!0x0});_0x443a1f=Array['from'](_0x570494)['map'](_0x50491b=>_0x50491b['cell']);}else{const _0x4a54ac=_0x45319f['createTableWalker'](_0x22a3fb,{'column':_0x44658d,'includeAllSlots':!0x0});_0x443a1f=Array['from'](_0x4a54ac)['map'](_0x1dc37b=>_0x1dc37b['cell']);}_0x2f9e2e['model']['change'](_0x44328a=>{_0x4b4241['markBlockFormat'](_0x44328a['createRangeOn'](_0xec04c9),{'commandName':_0x29b18f,'commandParams':[]},_0x443a1f,_0x29b18f);});});}_0x4b4241['descriptionFactory']['registerDescriptionCallback'](_0xd76afb=>{if('formatBlock'!=_0xd76afb['type']&&'formatInline'!=_0xd76afb['type'])return;const {data:_0x148e33}=_0xd76afb;return _0x148e33&&'mergeTableCells'==_0x148e33['commandName']?{'type':'format','content':o(_0x280dc2,'*Merge\x20cells*')}:void 0x0;}),_0x4b4241['descriptionFactory']['registerDescriptionCallback'](_0x50420b=>{if('formatBlock'!=_0x50420b['type']&&'formatInline'!=_0x50420b['type'])return;const {data:_0x55099b}=_0x50420b;return _0x55099b?'splitTableCellVertically'==_0x55099b['commandName']?{'type':'format','content':o(_0x280dc2,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x55099b['commandName']?{'type':'format','content':o(_0x280dc2,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3c59ee=_0xcd19cf['_acceptFormatSuggestionCallbackFactory']();for(const _0x136bd4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4b4241['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x136bd4,'accept',_0x3c59ee);for(const _0x1cf729 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4b4241['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1cf729,'accept',_0x3c59ee);_0x4b4241['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5c5b5b=>{_0x2f9e2e['model']['change'](_0xb524ab=>{const _0xe70601=Array['from'](_0x59ded2['getRanges']())['map'](_0x5d6016=>_0x13a61a['fromRange'](_0x5d6016));_0xb524ab['setSelection'](_0x5c5b5b),_0x2f9e2e['commands']['get']('mergeTableCells')['refresh'](),_0x2f9e2e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x11a1c2=_0xe70601['filter'](_0x15fc00=>'$graveyard'!=_0x15fc00['root']['rootName']);_0x11a1c2['length']>0x0&&_0xb524ab['setSelection'](_0x11a1c2);for(const _0x17dc90 of _0xe70601)_0x17dc90['detach']();});});for(const _0xa72672 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x19f64a=_0x2f9e2e['commands']['get'](_0xa72672);_0x19f64a['on']('set:isEnabled',(_0x3fb205,_0x4ee4d3,_0x2babe0)=>{if(_0x2babe0){const _0x113ebd=_0x2f9e2e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x89115d=>_0x89115d['is']('element','tableCell'));this['_areMergableCells'](_0x19f64a['value'],_0x113ebd)||(_0x3fb205['return']=!0x1,_0x3fb205['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1e0e3a=this['editor']['commands']['get']('mergeTableCells'),_0x573cb9=this['editor']['plugins']['get']('TableUtils');if(!_0x1e0e3a['isEnabled'])return!0x1;const _0x2ffa7e=_0x573cb9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x74b5a2 of _0x2ffa7e)for(const _0x5cdaae of _0x2ffa7e)if(_0x74b5a2!=_0x5cdaae&&!this['_areMergableCells'](_0x74b5a2,_0x5cdaae))return!0x1;return!0x0;}['_areMergableCells'](_0x346ba5,_0x358d05){const _0x45962a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x175db8=this['editor']['model']['createRangeOn'](_0x346ba5),_0x524a1f=this['editor']['model']['createRangeOn'](_0x358d05),_0x1ad494=new Set(),_0x3630c2=new Set();for(const _0x209adb of _0x45962a['getSuggestions']())if(('insertion'==_0x209adb['type']||'deletion'==_0x209adb['type']||'mergeTableCells'==_0x209adb['subType'])&&_0x209adb['isInContent']){for(const _0x5c10d5 of _0x209adb['getRanges']())_0x5c10d5['containsRange'](_0x175db8,!0x0)&&_0x1ad494['add'](_0x209adb['type']+':'+_0x209adb['author']['id']),_0x5c10d5['containsRange'](_0x524a1f,!0x0)&&_0x3630c2['add'](_0x209adb['type']+':'+_0x209adb['author']['id']);}if(_0x1ad494['size']!=_0x3630c2['size'])return!0x1;for(const _0x5412f8 of _0x1ad494)if(!_0x3630c2['has'](_0x5412f8))return!0x1;return!0x0;}}class Ct extends _0x50e036{static get['requires'](){return[vt];}['afterInit'](){const _0x4a3fd5=this['editor'];if(!_0x4a3fd5['plugins']['has']('TableEditing'))return;const _0x6dc1c1=_0x4a3fd5['locale'],_0x41cc98=_0x4a3fd5['plugins']['get']('TrackChangesEditing');_0x41cc98['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x41cc98['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x41cc98['registerBlockAttribute']('headingRows'),_0x41cc98['registerBlockAttribute']('headingColumns'),_0x41cc98['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x6dc1c1,'FORMAT_HEADER_ROW')),_0x41cc98['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x6dc1c1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x115117=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d97fb=this['editor']['plugins']['get']('TableUtils'),_0xa070da=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x2eb57c({showActiveMarker:_0x39958a=!0x0,setDataAttribute:_0x16ad8f=!0x0}={}){return(_0x4ddf77,_0x404db2,_0x33d5b5)=>{const {type:_0x129985,id:_0x491634}=_0x115117['_splitMarkerName'](_0x404db2['markerName']),_0x12f2fe=_0x115117['getSuggestion'](_0x491634),_0x5119a8=_0x12f2fe['data'];if('formatBlock'!=_0x12f2fe['type']||!_0x5119a8||'setTableColumnHeader'!=_0x5119a8['commandName'])return;if(_0x404db2['item'])return void _0x4ddf77['stop']();if(!_0x33d5b5['consumable']['consume'](_0x404db2['markerRange'],_0x4ddf77['name']))return;const _0x7d182=_0x404db2['markerRange']['start']['nodeAfter'],_0x151ef9=_0x404db2['markerRange']['end']['nodeBefore'],_0x1f880b=_0x7d182['parent']['parent'],{column:_0x4fde12}=_0x5d97fb['getCellLocation'](_0x7d182),{column:_0x1fb06c}=_0x5d97fb['getCellLocation'](_0x151ef9);for(let _0x1e9f1c=_0x4fde12;_0x1e9f1c<=_0x1fb06c;_0x1e9f1c++){const _0x3c2a12=_0x5d97fb['createTableWalker'](_0x1f880b,{'column':_0x1e9f1c,'includeAllSlots':!0x1});for(const _0x1ccb3b of _0x3c2a12){const _0xbdbc1f=_0x1ccb3b['cell'],_0x39104e=_0x33d5b5['mapper']['toViewElement'](_0xbdbc1f);_0x33d5b5['writer']['addClass']('ck-suggestion-marker-'+_0x129985,_0x39104e),_0x16ad8f&&_0x33d5b5['writer']['setAttribute']('data-suggestion',_0x491634,_0x39104e),_0x33d5b5['mapper']['bindElementToMarker'](_0x39104e,_0x404db2['markerName']),_0x39958a&&(_0x115117['activeMarkers']['includes'](_0x404db2['markerName'])?_0x33d5b5['writer']['addClass']('ck-suggestion-marker--active',_0x39104e):_0x33d5b5['writer']['removeClass']('ck-suggestion-marker--active',_0x39104e));}}};}_0x115117['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xa070da),_0x115117['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xa070da),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2eb57c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x6aaac3,_0x78145f,_0x1f8b79)=>{_0x1f8b79['options']['showSuggestionHighlights']&&_0x2eb57c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x6aaac3,_0x78145f,_0x1f8b79);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5bb655,_0x5c6792,_0x3c142f)=>{const {type:_0x4c57a4,id:_0x3844e9}=_0x115117['_splitMarkerName'](_0x5c6792['markerName']),_0x5e8400=_0x115117['getSuggestion'](_0x3844e9),_0x5839dc=_0x5e8400['data'];if('formatBlock'!=_0x5e8400['type']||!_0x5839dc||'setTableColumnHeader'!=_0x5839dc['commandName'])return;const _0x148f67=_0x3c142f['mapper']['markerNameToElements'](_0x5c6792['markerName']);if(_0x148f67){for(const _0x11b80b of _0x148f67)_0x3c142f['writer']['removeClass']('ck-suggestion-marker-'+_0x4c57a4,_0x11b80b),_0x3c142f['writer']['removeClass']('ck-suggestion-marker--active',_0x11b80b),_0x3c142f['writer']['removeAttribute']('data-suggestion',_0x11b80b),_0x3c142f['mapper']['unbindElementFromMarkerName'](_0x11b80b,_0x5c6792['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c9a17=this['editor'],_0x4d6311=_0x3c9a17['locale'];function _0x4d3135(_0x3efe3a){return{'type':'format','content':o(_0x4d6311,'*Format:*\x20%0',_0x3efe3a)};}_0x3c9a17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23fd53=>{if('formatBlock'!=_0x23fd53['type'])return;const {data:_0xb04e12}=_0x23fd53;if(_0xb04e12){if('setTableRowHeader'==_0xb04e12['commandName']){const _0x3b2045=_0xb04e12['commandParams'][0x0]['forceValue'];return _0x4d3135(o(_0x4d6311,_0x3b2045?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xb04e12['commandName']){const _0x14fbae=_0xb04e12['commandParams'][0x0]['forceValue'];return _0x4d3135(o(_0x4d6311,_0x14fbae?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x4a50de=>[_0x4a50de,null]));class Nt extends _0x50e036{static get['requires'](){return[vt];}['afterInit'](){const _0x1d1d86=this['editor'];if(!_0x1d1d86['plugins']['has']('TableClipboard'))return;const _0xa7d8=_0x1d1d86['plugins']['get']('TrackChangesEditing'),_0x5ea1ad=_0x1d1d86['plugins']['get']('TableUtils'),_0x5876d1=_0x1d1d86['plugins']['get'](vt),_0x3f4573=_0x1d1d86['plugins']['get']('TableClipboard');_0x5876d1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1d1d86['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1d1d86['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x524b8b=null;_0x1d1d86['model']['on']('insertContent',(_0x36eb5e,_0x21fb09)=>{const [_0x4f86a0,_0x4b74b0]=_0x21fb09,_0x23c410=_0x21fb09[_0x21fb09['length']-0x1];_0x23c410&&_0x23c410['forceDefaultExecution']||_0xa7d8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3d2abb,_0x5f0f5f,_0x451180,_0x5d37b9,_0x2357f2){if(_0x5f0f5f&&!_0x5f0f5f['is']('documentSelection'))return!0x1;const _0xfeebb8=_0x2357f2['getTableIfOnlyTableInContent'](_0x3d2abb,_0x451180);if(!_0xfeebb8||!Ae(_0xfeebb8,void 0x0,_0x5d37b9))return!0x1;const _0x1643da=_0x5d37b9['getSelectionAffectedTableCells'](_0x451180['document']['selection']);if(!_0x1643da['length'])return!0x1;const _0x23c880=_0x1643da[0x0]['findAncestor']('table'),_0x5a99fb=_0x5d37b9['getRowIndexes'](_0x1643da),_0x42bc1f=_0x5d37b9['getColumnIndexes'](_0x1643da),_0x1208c2={'startRow':_0x5a99fb['first'],'endRow':_0x5a99fb['last'],'startColumn':_0x42bc1f['first'],'endColumn':_0x42bc1f['last']};return 0x1==_0x1643da['length']&&(_0x1208c2['endRow']+=_0x5d37b9['getRows'](_0xfeebb8)-0x1,_0x1208c2['endColumn']+=_0x5d37b9['getColumns'](_0xfeebb8)-0x1),Ae(_0x23c880,_0x1208c2,_0x5d37b9);}(_0x4f86a0,_0x4b74b0,_0x1d1d86['model'],_0x5ea1ad,_0x3f4573)&&(_0x36eb5e['stop'](),_0x524b8b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1d1d86['model']['change'](()=>{_0x1d1d86['model']['insertContent'](_0x21fb09[0x0],_0x21fb09[0x1],_0x21fb09[0x2],{'forceDefaultExecution':!0x0});const _0x4649ba=_0x2f9277(),{rowInsertionRanges:_0x40c962,columnInsertionRanges:_0x312316,insertionRanges:_0xdde047,deletionRanges:_0xea3da2,cells:_0x1b4a29}=_0x524b8b;_0x40c962['length']&&_0xa7d8['markMultiRangeInsertion'](_0x40c962,'tablePasteRow',{'tablePasteChainId':_0x4649ba}),_0x312316['length']&&_0xa7d8['markMultiRangeInsertion'](_0x312316,'tablePasteColumn',{'tablePasteChainId':_0x4649ba}),_0xdde047['length']&&(_0xa7d8['markMultiRangeInsertion'](_0xdde047,'tablePaste',{'tablePasteChainId':_0x4649ba,'skipNestingCheck':!0x0}),_0xdde047['forEach'](_0x13a4e2=>_0x13a4e2['detach']?.())),_0xea3da2['length']&&(_0xa7d8['markMultiRangeDeletion'](_0xea3da2,'tablePaste',{'tablePasteChainId':_0x4649ba,'skipNestingCheck':!0x0}),_0xea3da2['forEach'](_0x472cdf=>_0x472cdf['detach']?.()));const _0x2f7a6a=_0xa7d8['markMultiRangeBlockFormat'](_0x1b4a29['map'](({element:_0x3584cd})=>_0x3584cd),{'formatGroupId':_0x2f9277()},[],'tablePasteCell',{'tablePasteChainId':_0x4649ba});if(_0x2f7a6a){const _0x98227a=_0x2f7a6a['getMarkers'](),_0x43713a=[];for(const {element:_0x183f55,attributes:_0x1e2b11}of _0x1b4a29){if(!_0x1e2b11)continue;const _0x291c18=_0x1d1d86['model']['createRangeOn'](_0x183f55),_0x5674f1=_0x98227a['find'](_0x28321a=>_0x28321a['getRange']()['isEqual'](_0x291c18));_0x5674f1&&_0x43713a['push']([_0x5674f1['name'],_0x1e2b11]);}_0x43713a['length']&&_0x2f7a6a['setAttribute']('markerAttributes',Object['fromEntries'](_0x43713a));}_0x524b8b=null;}));},{'priority':_0x54525e['high']+0xa}),_0x1d1d86['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4bb4c2,_0x43b57d)=>{const [_0x24ce1a,_0x479999,,_0x1c8059]=_0x43b57d;if(!_0x524b8b)return;_0x4bb4c2['stop']();const _0x50459b=_0x24ce1a['cell'],_0x38dd52=_0x479999,_0x4334cb=je(_0x50459b),_0x53149a=je(_0x38dd52);_0x4bb4c2['return']=_0x50459b;let _0x222a8f=null,_0x53173d=null;if(_0x53149a||_0x4334cb){if(_0x4334cb&&!_0x53149a){_0x1c8059['remove'](_0x50459b['getChild'](0x0));for(const _0x1aae5d of Array['from'](_0x38dd52['getChildren']()))_0x1c8059['insert'](_0x1aae5d,_0x50459b,'end');const _0x3487ee=_0x524b8b['rowInsertionIndexes']['includes'](_0x24ce1a['row']),_0x567012=_0x524b8b['columnInsertionIndexes']['includes'](_0x24ce1a['column']);_0x3487ee||_0x567012||(_0x222a8f=_0x13a61a['fromRange'](_0x1c8059['createRangeIn'](_0x50459b)));}else _0x53149a&&!_0x4334cb&&(_0x53173d=_0x1c8059['createRangeIn'](_0x50459b));}else{const _0x50599e=_0x1c8059['createElement']('tableCellSuggestion'),_0x39c033=_0x1c8059['createElement']('tableCellSuggestion');_0x1c8059['wrap'](_0x1c8059['createRangeIn'](_0x50459b),_0x39c033),_0x1c8059['insert'](_0x50599e,_0x50459b,0x0);for(const _0x1f3dc2 of Array['from'](_0x38dd52['getChildren']()))_0x1c8059['insert'](_0x1f3dc2,_0x50599e,'end');_0x222a8f=_0x13a61a['fromRange'](_0x1c8059['createRangeOn'](_0x50599e)),_0x53173d=_0x13a61a['fromRange'](_0x1c8059['createRangeOn'](_0x39c033));}const _0x55c5df=Array['from'](_0x38dd52['getAttributes']())['filter'](([_0xa336ce])=>we['includes'](_0xa336ce));_0x524b8b['cells']['push']({'element':_0x50459b,'attributes':_0x55c5df['length']?Object['fromEntries'](_0x55c5df):null}),_0x222a8f&&_0x524b8b['insertionRanges']['push'](_0x222a8f),_0x53173d&&_0x524b8b['deletionRanges']['push'](_0x53173d);},{'priority':'high'}),_0x5ea1ad['on']('insertColumns',(_0x5ef762,_0x2f03f9)=>{const [_0x263256,_0x1d66e1={}]=_0x2f03f9;if(!_0x524b8b)return;const _0x39ca96=_0x1d66e1['at']||0x0,_0x268366=_0x1d66e1['columns']||0x1;_0x524b8b['columnInsertionIndexes']=new Array(_0x268366)['fill'](_0x39ca96)['map']((_0x36311e,_0x19905d)=>_0x36311e+_0x19905d);for(const {cell:_0x215922}of _0x5ea1ad['createTableWalker'](_0x263256,{'startColumn':_0x39ca96,'endColumn':_0x39ca96+_0x268366-0x1}))_0x524b8b['columnInsertionRanges']['push'](_0x1d1d86['model']['createRangeOn'](_0x215922));},{'priority':'low'}),_0x5ea1ad['on']('insertRows',(_0xfb0ef0,_0xa31c27)=>{const [_0x15566b,_0x4417ad={}]=_0xa31c27;if(!_0x524b8b)return;const _0x366977=_0x4417ad['at']||0x0,_0x476059=_0x4417ad['rows']||0x1;_0x524b8b['rowInsertionIndexes']=new Array(_0x476059)['fill'](_0x366977)['map']((_0x5dcc6,_0x4f003d)=>_0x5dcc6+_0x4f003d);for(const {cell:_0x2dc20c}of _0x5ea1ad['createTableWalker'](_0x15566b,{'startRow':_0x366977,'endRow':_0x366977+_0x476059-0x1}))_0x524b8b['rowInsertionRanges']['push'](_0x1d1d86['model']['createRangeOn'](_0x2dc20c));},{'priority':'low'}),_0xa7d8['descriptionFactory']['registerDescriptionCallback'](_0xda7153=>{if(_0xda7153['subType']&&_0xda7153['subType']['startsWith']('tablePaste'))return _0xda7153['previous']?{}:{'type':'insertion','content':o(_0x1d1d86['locale'],'*Replace\x20table\x20cells*')};});const _0x32411c=()=>!0x1;for(const _0x1692d5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xa7d8['_suggestionFactory']['registerCustomCallback']('insertion',_0x1692d5,'join',_0x32411c),_0xa7d8['_suggestionFactory']['registerCustomCallback']('deletion',_0x1692d5,'join',_0x32411c),_0xa7d8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1692d5,'join',_0x32411c);_0xa7d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x32411c),_0xa7d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x588a5a,_0x182f98,_0x3074e5)=>{const _0x53aabb=_0x588a5a['map'](_0x5afc69=>_0x5afc69['getContainedElement']())['filter'](_0x2405c5=>_0x2405c5),_0x1f862d=new Map(_0x53aabb['map'](_0x29fd1f=>[_0x29fd1f,null]));if(_0x524b8b){for(const {element:_0x59adb1,attributes:_0x355b30}of _0x524b8b['cells'])_0x355b30&&_0x1f862d['set'](_0x59adb1,_0x355b30);}else{if(_0x3074e5&&_0x3074e5['markerAttributes'])for(const [_0x2bf7a9,_0x2dad2]of Object['entries'](_0x3074e5['markerAttributes'])){const _0x3c412d=_0x1d1d86['model']['markers']['get'](_0x2bf7a9),_0x24dc2b=_0x3c412d?_0x3c412d['getRange']()['getContainedElement']():null;_0x24dc2b&&_0x1f862d['set'](_0x24dc2b,_0x2dad2);}}_0x1d1d86['model']['change'](_0x220b5c=>{for(const [_0x5e0412,_0x4690a3]of _0x1f862d)_0x220b5c['setAttributes']({...ve,..._0x4690a3},_0x5e0412);});});const _0x5988ff=(_0x45ba4c,_0x583e85)=>{_0xa7d8['_suggestionFactory']['registerCustomCallback'](_0x45ba4c,'tablePaste',_0x583e85,(_0x5b5a43,_0x1fbcbe,_0x2e3a68)=>{_0x1d1d86['model']['change'](_0x452158=>{const _0xf68bd8=[];for(const _0x5bfc81 of _0x5b5a43){const _0x559d5a=_0x5bfc81['start']['nodeAfter'];_0x559d5a['is']('element','tableCellSuggestion')&&_0xf68bd8['push'](_0x559d5a);}_0xa7d8['_suggestionFactory']['getSuggestionCallback'](_0x45ba4c,null,_0x583e85)(_0x5b5a43,_0x1fbcbe,_0x2e3a68);for(const _0x16748d of _0xf68bd8)'$graveyard'!=_0x16748d['root']['rootName']&&_0x452158['unwrap'](_0x16748d);});});};_0x5988ff('insertion','accept'),_0x5988ff('insertion','discard'),_0x5988ff('deletion','accept'),_0x5988ff('deletion','discard'),_0xa7d8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1d8cfe=>{const _0x6a5068=_0x1d8cfe['map'](_0x2d092a=>_0x2d092a['getContainedElement']()),_0x307070=_0x6a5068[0x0]['findAncestor']('table'),{minRow:_0x2c0a44,maxRow:_0x46cf9f}=_0x5876d1['_getCoordsForCells'](_0x6a5068);_0x5ea1ad['removeRows'](_0x307070,{'at':_0x2c0a44,'rows':_0x46cf9f-_0x2c0a44+0x1});}),_0xa7d8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x28779b=>{const _0x49f626=_0x28779b['map'](_0x2490e9=>_0x2490e9['getContainedElement']()),_0x42ac71=_0x49f626[0x0]['findAncestor']('table'),{minColumn:_0x35869d,maxColumn:_0x16e0c4}=_0x5876d1['_getCoordsForCells'](_0x49f626);_0x5ea1ad['removeColumns'](_0x42ac71,{'at':_0x35869d,'columns':_0x16e0c4-_0x35869d+0x1});});const _0x253d5b=(_0x25bb97,_0x1b8a6f)=>{if(!_0x1b8a6f['subType']||!_0x1b8a6f['subType']['startsWith']('tablePaste'))return;const _0x313ce3=_0x1b8a6f['attributes']['tablePasteChainId'],_0x16815e=_0xa7d8['getSuggestions']()['filter'](_0x33e81e=>_0x33e81e['isInContent']&&_0x33e81e['attributes']&&_0x33e81e['attributes']['tablePasteChainId']==_0x313ce3);_0x16815e['length']&&_0x1b8a6f['getAllAdjacentSuggestions']()['length']!=_0x16815e['length']&&_0x16815e['reduce']((_0x37d0c6,_0x321d58)=>(_0x37d0c6['next']=_0x321d58,_0x321d58['previous']=_0x37d0c6,_0x321d58));};function _0xb7ccfd(_0xf7c996,_0x206a63=!0x0){const {id:_0x96e0a4,authorId:_0x3a32ab}=_0xa7d8['_splitMarkerName'](_0xf7c996['markerName']),_0x7e0f26=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1c17af=_0xa7d8['activeMarkers']['includes'](_0xf7c996['markerName']);return _0x1c17af&&_0x7e0f26['push']('ck-suggestion-marker--active'),{'classes':_0x7e0f26,'attributes':{'data-suggestion':_0x96e0a4,'data-author-id':_0x3a32ab},'priority':_0x1c17af&&_0x206a63?0xbc2:0xbb8};}_0xa7d8['on']('suggestionLoaded',_0x253d5b,{'priority':'high'}),_0xa7d8['on']('suggestionUnloaded',_0x253d5b,{'priority':'high'}),_0x1d1d86['model']['document']['registerPostFixer'](()=>{let _0xdbcfeb=!0x1;const _0x133a66=Array['from'](_0x1d1d86['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f4a56,data:_0x3913e6}of _0x133a66){const {group:_0x238f19,type:_0x92f636,id:_0x589d54}=_0xa7d8['_splitMarkerName'](_0x3f4a56);if('suggestion'!=_0x238f19||'deletion'!=_0x92f636||_0x3913e6['oldRange'])continue;if(!_0xa7d8['hasSuggestion'](_0x589d54))continue;const _0x542c3a=_0xa7d8['getSuggestion'](_0x589d54)['getRanges'](),_0x101066=_0x1d1d86['plugins']['get']('Users')['me'];for(const _0x5d92a2 of _0xa7d8['getSuggestions']()){if(!_0x5d92a2['isInContent']||_0x5d92a2['author']!=_0x101066)continue;if('formatBlock'!=_0x5d92a2['type']||'tablePasteCell'!=_0x5d92a2['subType'])continue;if(_0x5d92a2['getRanges']()['every'](_0xd881b0=>_0x542c3a['some'](_0x13e5e7=>_0x13e5e7['containsRange'](_0xd881b0,!0x0)))){for(const _0x201d30 of _0x5d92a2['getAllAdjacentSuggestions']())_0x201d30['isInContent']&&(_0x201d30['discard'](),_0xdbcfeb=!0x0);}}}return _0xdbcfeb;}),_0x1d1d86['model']['document']['registerPostFixer'](_0x560a25=>{const _0x5b284c=_0x1d1d86['commands']['get']('redo');if(!_0x5b284c||!_0x5b284c['_createdBatches']['has'](_0x560a25['batch']))return!0x1;let _0x2dd704=!0x1;const _0x5a519d=_0x1d1d86['plugins']['get']('Users')['me'],_0x23ddfd=_0x1d1d86['model']['document']['differ']['getChanges'](),_0x3a300d=Array['from'](_0x1d1d86['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x39e4ca,data:_0x18b965})=>{const {group:_0x18f23d,subType:_0x57281d,authorId:_0x23dedf}=_0xa7d8['_splitMarkerName'](_0x39e4ca);return'suggestion'==_0x18f23d&&'tablePaste'==_0x57281d&&_0x23dedf==_0x5a519d['id']&&!_0x18b965['oldRange'];});for(const _0x5ac36a of _0x23ddfd){if('insert'!=_0x5ac36a['type']||'tableCellSuggestion'!=_0x5ac36a['name']||0x1!=_0x5ac36a['length'])continue;const _0x3a00fc=_0x560a25['createRange'](_0x5ac36a['position'],_0x5ac36a['position']['getShiftedBy'](0x1));if(!_0x3a300d['find'](({data:_0x34f19d})=>_0x34f19d['newRange']['isEqual'](_0x3a00fc))){for(const {name:_0xb46d9e,data:_0x4f9fc6}of _0x3a300d)if(_0x3a00fc['containsRange'](_0x4f9fc6['newRange'])){_0x560a25['updateMarker'](_0xb46d9e,{'range':_0x3a00fc}),_0x2dd704=!0x0;break;}}}return _0x2dd704;}),_0x1d1d86['model']['document']['registerPostFixer'](_0x3f6b1a=>{let _0x4383aa=!0x1;const _0xe3dedb=_0x1d1d86['plugins']['get']('Users')['me'],_0x198480=_0xa7d8['getSuggestions']()['filter'](_0x4382bf=>_0x4382bf['isInContent']&&_0x4382bf['author']==_0xe3dedb),_0x29d78a=new Set(),_0x26e657=new Set();for(const _0x452931 of _0x198480)if('tablePaste'==_0x452931['subType'])for(const _0x38eda5 of _0x452931['getMarkers']()){const _0x443903=_0x38eda5['getRange']()['getContainedElement']();if(_0x443903){if(_0x443903['is']('element','tableCellSuggestion')&&je(_0x443903)){_0x452931['removeMarker'](_0x38eda5['name']),_0x29d78a['add'](_0x443903),_0x4383aa=!0x0;const _0x37b224=_0x443903['nextSibling'],_0x5dec49=_0x443903['previousSibling'],_0x47326e=_0x37b224&&_0x37b224['is']('element','tableCellSuggestion'),_0x4a6531=_0x5dec49&&_0x5dec49['is']('element','tableCellSuggestion');_0x47326e&&!_0x29d78a['has'](_0x37b224)&&_0x26e657['add'](_0x37b224),_0x4a6531&&!_0x29d78a['has'](_0x5dec49)&&_0x26e657['add'](_0x5dec49);}else _0x443903['is']('element','paragraph')&&_0x443903['isEmpty']&&(_0x452931['removeMarker'](_0x38eda5['name']),_0x4383aa=!0x0);}}else{if('tablePasteCell'==_0x452931['subType']){if(!_0x452931['attributes']||!_0x452931['attributes']['tablePasteChainId'])continue;const _0xd1cb3b=_0x452931['attributes']['markerAttributes'];if(_0xd1cb3b&&Object['keys'](_0xd1cb3b)['length'])continue;const _0x3334b7=_0x452931['attributes']['tablePasteChainId'];let _0x2fa8e9=!0x0,_0x30f671=!0x0;for(const _0x598a1c of _0x198480)if(_0x598a1c['subType']&&_0x598a1c['subType']['startsWith']('tablePaste')){if(!_0x598a1c['attributes']['tablePasteChainId']){_0x30f671=!0x1;break;}if(_0x598a1c['id']!=_0x452931['id']&&_0x598a1c['attributes']['tablePasteChainId']==_0x3334b7){_0x2fa8e9=!0x1;break;}}_0x30f671&&_0x2fa8e9&&(_0x452931['removeMarkers'](),_0x4383aa=!0x0);}}for(const _0x283607 of _0x29d78a)_0x3f6b1a['remove'](_0x283607);for(const _0x2dafc9 of _0x26e657)_0x3f6b1a['unwrap'](_0x2dafc9);return _0x4383aa;}),_0x1d1d86['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x23dd62=>_0xb7ccfd(_0x23dd62),'converterPriority':'high'}),_0x1d1d86['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x50f3b9,_0x3bcb08)=>_0x3bcb08['options']['showSuggestionHighlights']?_0xb7ccfd(_0x50f3b9,!0x1):null,'converterPriority':'high'});const _0xf73d3b=_0x1d1d86['editing']['view'];this['listenTo'](_0xf73d3b['document'],'clipboardOutput',(_0x49f438,_0x3e6ce3)=>{const _0x22d965=[];for(const _0x28abac of _0xf73d3b['createRangeIn'](_0x3e6ce3['content'])['getItems']())_0x28abac['is']('element','suggestion-td')&&_0x22d965['push'](_0x28abac);_0xf73d3b['change'](_0x5157ca=>{for(const _0x1ecebe of _0x22d965)_0x5157ca['move'](_0x5157ca['createRangeIn'](_0x1ecebe),_0x5157ca['createPositionBefore'](_0x1ecebe)),_0x5157ca['remove'](_0x1ecebe);});});}}function je(_0x35413e){if(_0x35413e['isEmpty'])return!0x0;const _0x6aaba6=_0x35413e['getChild'](0x0);return _0x6aaba6['is']('element','paragraph')&&_0x6aaba6['isEmpty'];}function Ae(_0x31e637,_0x44b16d={},_0x1cf505){for(const {isAnchor:_0x308a94,cellHeight:_0x512792,cellWidth:_0x370f69}of _0x1cf505['createTableWalker'](_0x31e637,{'includeAllSlots':!0x0,..._0x44b16d}))if(!_0x308a94||0x1!=_0x512792||0x1!=_0x370f69)return!0x1;return!0x0;}class Dt extends _0x50e036{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xcb5dc8=this['editor']['plugins']['get']('TrackChangesEditing');_0xcb5dc8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xcb5dc8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xcb5dc8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xcb5dc8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xcb5dc8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xcb5dc8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xb98ab7,_0x314bd9){const _0x27aa42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4469a4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x19a0ea=_0x314bd9['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x12d64f=_0x4469a4['getColumnGroupElement'](_0x19a0ea);let _0x2b5131=_0x12d64f?_0x4469a4['getTableColumnsWidths'](_0x12d64f):null,_0x23573d=_0x19a0ea['getAttribute']('tableWidth')||null;const _0x4ef24b=_0x314bd9['tableWidth']||_0x23573d,_0x56e4d9=_0x314bd9['columnWidths']||_0x2b5131,_0x2eb29d=this['editor']['plugins']['get']('Users')['me'];for(const _0x592cdd of _0x27aa42['getSuggestions']()){const _0x5f1143=_0x592cdd['getContainedElement']();if('resizeTable'===_0x592cdd['subType']&&_0x5f1143===_0x19a0ea){_0x592cdd['author']!==_0x2eb29d&&_0x592cdd['discard']();const _0x2c00e3=_0x592cdd['data']['commandParams'];_0x23573d=_0x2c00e3[0x0]['tableWidth'],_0x2b5131=_0x2c00e3[0x0]['columnWidths'];break;}}_0xb98ab7({'table':_0x19a0ea,'tableWidth':_0x4ef24b,'columnWidths':_0x56e4d9}),_0x27aa42['markBlockFormat'](_0x19a0ea,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x23573d,'columnWidths':_0x2b5131}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x164a06){if('formatBlock'!=_0x164a06['type']&&'formatInline'!=_0x164a06['type'])return;const {data:_0x47afcf}=_0x164a06;if(_0x47afcf&&'resizeTable'===_0x47afcf['formatGroupId']){const _0x207eb9='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x207eb9)};}}}class Mt extends _0x50e036{['afterInit'](){const _0x579b8d=this['editor'];_0x579b8d['plugins']['has']('Template')&&_0x579b8d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x50e036{['afterInit'](){const _0x5c4283=this['editor'];if(!_0x5c4283['commands']['get']('insertTableOfContents'))return;_0x5c4283['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5677ce=_0x5c4283['plugins']['get']('TrackChangesEditing'),_0x21ac3c=_0x5c4283['locale'];_0x5677ce['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2e5d65=>o(_0x21ac3c,'ELEMENT_TABLE_OF_CONTENTS',_0x2e5d65));}}class Bt extends _0x50e036{['afterInit'](){const _0x49eae8=this['editor'];if(!_0x49eae8['plugins']['has']('Title'))return;const _0x5d27c8=_0x49eae8['plugins']['get']('TrackChangesEditing');_0x5d27c8['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x49eae8['locale'],'ELEMENT_TITLE')),_0x49eae8['model']['document']['registerPostFixer'](_0x321562=>{let _0x46701c=!0x1;const _0x50d438=Array['from'](_0x49eae8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xbdea70,data:_0x25be80}of _0x50d438){const {group:_0x1dcc34}=_0x5d27c8['_splitMarkerName'](_0xbdea70);if('suggestion'!==_0x1dcc34||!_0x25be80['newRange'])continue;const _0x20457e=_0x25be80['newRange'],_0x362976=_0x20457e['end']['nodeBefore'];if(!_0x362976||!_0x362976['is']('element','title-content'))continue;if(!_0x20457e['start']['isTouching'](_0x20457e['end']))continue;const _0x415da9=_0x49eae8['model']['schema']['getNearestSelectionRange'](_0x20457e['end'],'forward');if(_0x415da9&&_0x415da9['isCollapsed']){const _0x44373=_0x321562['createRange'](_0x20457e['start'],_0x415da9['start']);_0x44373['isEqual'](_0x20457e)||(_0x321562['updateMarker'](_0xbdea70,{'range':_0x44373}),_0x46701c=!0x0);}_0x46701c||(_0x321562['removeMarker'](_0xbdea70),_0x46701c=!0x0);}return _0x46701c;});}}class Ot extends _0x50e036{['afterInit'](){const _0x467a80=this['editor'],_0x1850b7=_0x467a80['plugins']['get']('TrackChangesEditing');_0x467a80['plugins']['has']('UndoEditing')&&(_0x1850b7['enableCommand']('undo'),_0x1850b7['enableCommand']('redo'));}}class Rt extends _0x50e036{static get['requires'](){return[vt];}['afterInit'](){const _0x2b71e0=this['editor'];if(!_0x2b71e0['plugins']['has']('TableCaptionEditing'))return;_0x2b71e0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x50e036{['tableProperties'];['tableCellProperties'];constructor(_0x4f8f15){super(_0x4f8f15),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 _0x5ae216=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x557c68 of this['tableProperties'])_0x5ae216['enableCommand'](_0x557c68,(_0x5a3632,_0x1c480c)=>{const _0x181c57=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x557c68,[_0x181c57],this['tableProperties'],'tableProperties',_0x5a3632,_0x1c480c);});_0x5ae216['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5ae216['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ae216['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x58e267,_0x121cf3)=>this['handleDiscardAction'](this['tableProperties'],_0x58e267,_0x121cf3)),_0x5ae216['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xf6e7f5 of this['tableCellProperties'])_0x5ae216['enableCommand'](_0xf6e7f5,(_0xde3389,_0x130611)=>{const _0x5b56dd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xf6e7f5,_0x5b56dd,this['tableCellProperties'],'tableCellProperties',_0xde3389,_0x130611);});_0x5ae216['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5ae216['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ae216['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3aace2,_0x5ac712)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3aace2,_0x5ac712)),_0x5ae216['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5ae216['descriptionFactory']['registerDescriptionCallback'](_0x272eb8=>this['handleSuggestionDescription'](_0x272eb8));}['_handlePropertyChange'](_0x25fb14,_0x3af1ed,_0x2eb278,_0x1f6d2d,_0x3d90fa,_0x2caca5){const _0x3a36aa=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2caca5['batch'],()=>{for(const _0x5b1490 of _0x3af1ed){if(this['_getSuggestion'](_0x5b1490,_0x1f6d2d))_0x3d90fa(_0x2caca5);else{const _0x1202f5={};for(const _0x148fe9 of _0x2eb278){const _0x3eb983=_0x5b1490['getAttribute'](_0x148fe9);void 0x0!==_0x3eb983&&(_0x1202f5[_0x148fe9]=_0x3eb983);}_0x3d90fa(_0x2caca5),_0x3a36aa['markBlockFormat'](_0x5b1490,{'commandParams':[_0x1202f5]},[],_0x1f6d2d);}}});}['handleDiscardAction'](_0x25a564,_0x1a0322,_0x50557f){const _0x372654=_0x1a0322[0x0]['start']['nodeAfter'],_0x112b4d=_0x50557f['commandParams'][0x0];this['editor']['model']['change'](_0x26e14c=>{for(const _0x465804 of _0x25a564)void 0x0!==_0x112b4d[_0x465804]?_0x26e14c['setAttribute'](_0x465804,_0x112b4d[_0x465804],_0x372654):_0x26e14c['removeAttribute'](_0x465804,_0x372654);});}['handleSuggestionDescription'](_0x2fee90){if(_0x2fee90['data'])switch(_0x2fee90['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'](_0x43010a,_0x2de524){const _0x289d9a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2bff49 of _0x289d9a['getSuggestions']({'skipNotAttached':!0x0})){const _0x54aefc=_0x2bff49['getContainedElement']();if(_0x2bff49['subType']===_0x2de524&&_0x54aefc===_0x43010a)return _0x2bff49;}return null;}}const m='$elementName';class p extends _0x50e036{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x80959d,_0x41cc81,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,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x395e2d){super(_0x395e2d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4dea2b,_0x5315a2,_0x2c5364,_0x490cac)=>{this['_model']['change'](()=>{for(const _0x595812 of[..._0x490cac,..._0x2c5364])this['_model']['markers']['has'](_0x595812)&&_0x395e2d['editing']['reconvertMarker'](_0x595812);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x395e2d['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(),_0x395e2d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x395e2d['config']['get']('trackChanges.trackFormatChanges'),_0x395e2d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x395e2d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x395e2d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x196a61=this['editor'],_0x2977eb=(_0x31a524,_0x4d72a1)=>{if('attribute'!=_0x31a524)return'ck-suggestion-marker-'+_0x31a524;const _0xf5cfb6=_0x4d72a1['split']('|')[0x0];return this['_isBlockAttribute'](_0xf5cfb6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x196a61['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x53600d=>{const {id:_0x1ba826,authorId:_0x30cabb,type:_0x20de1f,subType:_0x13f43a}=this['_splitMarkerName'](_0x53600d['markerName']),_0x751961=['ck-suggestion-marker',_0x2977eb(_0x20de1f,_0x13f43a)];let _0x3d7a4c=0xbb8;return this['activeMarkers']['includes'](_0x53600d['markerName'])&&(_0x751961['push']('ck-suggestion-marker--active'),_0x3d7a4c=0xbc2),'deletion'==_0x20de1f&&(_0x3d7a4c+=0x5),{'classes':_0x751961,'attributes':{'data-suggestion':_0x1ba826,'data-author-id':_0x30cabb},'priority':_0x3d7a4c};}}),_0x196a61['conversion']['for']('dataDowncast')['add'](_0x539dcf=>{_0x539dcf['on']('addMarker:suggestion',(_0x2149d2,_0x478164,_0x348e10)=>{if(!_0x348e10['options']['showSuggestionHighlights'])return;const _0x402b5e=_0x478164['item'];if(!_0x402b5e)return;const _0x308c8c=_0x348e10['mapper']['toViewElement'](_0x402b5e);_0x196a61['model']['schema']['isObject'](_0x402b5e)&&_0x308c8c&&!_0x308c8c['getCustomProperty']('widget')&&_0x308c8c['is']('containerElement')&&_0x316667(_0x308c8c,_0x348e10['writer']);},{'priority':'high'});}),_0x196a61['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5a1ca3,_0x29daa7)=>{if(!_0x29daa7['options']['showSuggestionHighlights'])return null;const {type:_0x4623e8,subType:_0x7e7dc6}=this['_splitMarkerName'](_0x5a1ca3['markerName']);return{'classes':['ck-suggestion-marker',_0x2977eb(_0x4623e8,_0x7e7dc6)],'priority':0xbb8};}});const _0x28e600=({showActiveMarkers:_0x1a43ea=!0x0,isAttributeSuggestion:_0x4487d2=!0x1}={})=>(_0x32a4b2,_0x5b19eb,_0x2c3c92)=>{if(!_0x5b19eb['item'])return;const {id:_0x5e8927,authorId:_0x5ba320}=this['_splitMarkerName'](_0x5b19eb['markerName']);if(_0x4487d2){const _0x3c6dd1=this['_suggestions']['get'](_0x5e8927),_0x12ad05=this['_getAttributeKey'](_0x3c6dd1);if(!this['_isBlockAttribute'](_0x12ad05))return;}if(_0x5b19eb['item']['is']('selection'))return void _0x2c3c92['consumable']['consume'](_0x5b19eb['item'],_0x32a4b2['name']);const _0x3a05cb=_0x2c3c92['mapper']['toViewElement'](_0x5b19eb['item']);if(_0x5b19eb['item']['is']('element')&&_0x196a61['model']['schema']['isBlock'](_0x5b19eb['item'])&&!_0x3a05cb['getCustomProperty']('addHighlight')){_0x2c3c92['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3a05cb),_0x2c3c92['writer']['setAttribute']('data-suggestion',_0x5e8927,_0x3a05cb),_0x2c3c92['writer']['setAttribute']('data-author-id',_0x5ba320,_0x3a05cb),_0x2c3c92['mapper']['bindElementToMarker'](_0x3a05cb,_0x5b19eb['markerName']),_0x1a43ea&&(this['activeMarkers']['includes'](_0x5b19eb['markerName'])?_0x2c3c92['writer']['addClass']('ck-suggestion-marker--active',_0x3a05cb):_0x2c3c92['writer']['removeClass']('ck-suggestion-marker--active',_0x3a05cb));for(const _0x5162db of _0x196a61['model']['createRangeIn'](_0x5b19eb['item'])['getItems']())_0x2c3c92['consumable']['consume'](_0x5162db,_0x32a4b2['name']);_0x2c3c92['consumable']['consume'](_0x5b19eb['item'],_0x32a4b2['name']);}};_0x196a61['conversion']['for']('dataDowncast')['add'](_0x55c965=>{_0x55c965['on']('addMarker:suggestion:formatBlock',(_0x35e44d,_0x1239e5,_0x1b1a8a)=>{_0x1b1a8a['options']['showSuggestionHighlights']&&_0x28e600({'showActiveMarkers':!0x1})(_0x35e44d,_0x1239e5,_0x1b1a8a);},{'priority':'highest'});}),_0x196a61['conversion']['for']('dataDowncast')['add'](_0x2868d3=>{_0x2868d3['on']('addMarker:suggestion:attribute',(_0x28f8d7,_0x14c34f,_0x589a28)=>{_0x589a28['options']['showSuggestionHighlights']&&_0x28e600({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x28f8d7,_0x14c34f,_0x589a28);},{'priority':'highest'});}),_0x196a61['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x34e5e4,_0xbd21ef)=>_0xbd21ef['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x34e5e4['substr'](0xb)}}),_0x196a61['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x130ca1,{writer:_0x3c5dde})=>{let _0x33b119='suggestion:'+_0x130ca1['getAttribute']('suggestion-type')+':'+_0x130ca1['getAttribute']('id');return _0x130ca1['getAttribute']('marker-count')&&(_0x33b119+=':'+_0x130ca1['getAttribute']('marker-count')),_0x3c5dde['createElement']('$marker',{'data-name':_0x33b119});}}),_0x196a61['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x196a61['conversion']['for']('editingDowncast')['add'](_0xac6d=>{_0xac6d['on']('addMarker:suggestion:formatBlock',_0x28e600(),{'priority':'high'});}),_0x196a61['conversion']['for']('editingDowncast')['add'](_0x33d070=>{_0x33d070['on']('addMarker:suggestion:attribute',_0x28e600({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x196a61['conversion']['for']('editingDowncast')['add'](_0xb361b3=>{_0xb361b3['on']('removeMarker:suggestion:formatBlock',(_0x2d134f,_0xc1fcda,_0x4ffa7e)=>{const _0xc8e154=_0x4ffa7e['mapper']['markerNameToElements'](_0xc1fcda['markerName']);if(_0xc8e154){for(const _0x229565 of _0xc8e154)_0x229565['getCustomProperty']('addHighlight')||(_0x4ffa7e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x229565),_0x4ffa7e['writer']['removeAttribute']('data-suggestion',_0x229565),_0x4ffa7e['writer']['removeAttribute']('data-author-id',_0x229565),_0x4ffa7e['mapper']['unbindElementFromMarkerName'](_0x229565,_0xc1fcda['markerName']));}},{'priority':'high'});}),_0x196a61['conversion']['for']('editingDowncast')['add'](_0x3028f4=>{_0x3028f4['on']('removeMarker:suggestion:attribute',(_0x354c75,_0x418c56,_0x5bd55b)=>{const _0x36708f=_0x5bd55b['mapper']['markerNameToElements'](_0x418c56['markerName']);if(!_0x36708f)return;const {id:_0x2d31de}=this['_splitMarkerName'](_0x418c56['markerName']),_0x44b336=this['_suggestions']['get'](_0x2d31de),_0x5e4a3d=this['_getAttributeKey'](_0x44b336);if(this['_isBlockAttribute'](_0x5e4a3d)){for(const _0x53948e of _0x36708f)_0x53948e['getCustomProperty']('addHighlight')||(_0x5bd55b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x53948e),_0x5bd55b['writer']['removeAttribute']('data-suggestion',_0x53948e),_0x5bd55b['writer']['removeAttribute']('data-author-id',_0x53948e),_0x5bd55b['mapper']['unbindElementFromMarkerName'](_0x53948e,_0x418c56['markerName']));}},{'priority':'high'});}),_0x196a61['model']['document']['registerPostFixer'](_0x1f07a8=>{let _0x2c7ee3=!0x1;const _0x41fa20=Array['from'](_0x196a61['model']['document']['differ']['getChangedMarkers']()),_0x26d8f0=new Set();for(const {name:_0x552ed8,data:_0x19b8a8}of _0x41fa20){const {group:_0x273f50,type:_0xf0b132,subType:_0x3ddb4f,id:_0x51bcf7}=this['_splitMarkerName'](_0x552ed8);if('suggestion'!==_0x273f50)continue;const _0x51fd85=this['_suggestions']['get'](_0x51bcf7);if(null!=_0x19b8a8['newRange']){'formatInline'==_0xf0b132&&(_0x2c7ee3=_0x2c7ee3||Pt(_0x19b8a8['newRange'],_0x552ed8,_0x1f07a8,_0x196a61['model']['schema']));const _0x5e7fa6='attribute'==_0xf0b132&&this['_isBlockAttribute'](_0x3ddb4f['split']('|')[0x0]);if(_0x19b8a8['newRange']['isCollapsed']||'$graveyard'==_0x19b8a8['newRange']['root']['rootName']||'formatBlock'==_0xf0b132&&!Ft(_0x19b8a8['newRange'])||_0x5e7fa6&&!Ft(_0x19b8a8['newRange'])||'deletion'==_0xf0b132&&!(!Vt(_0x5f072d=_0x19b8a8['newRange'])&&!function(_0x2517fb){return _0x2517fb['start']['parent']==_0x2517fb['end']['nodeBefore']&&_0x2517fb['start']['isAtEnd'];}(_0x5f072d)))_0x1f07a8['removeMarker'](_0x552ed8),_0x2c7ee3=!0x0;else{if(!_0x51fd85||!_0x51fd85['isInContent'])continue;if(_0x19b8a8['newRange']&&_0x19b8a8['oldRange']&&_0x19b8a8['newRange']['isEqual'](_0x19b8a8['oldRange']))continue;_0x26d8f0['add'](_0x51fd85);}}}var _0x5f072d;return _0x26d8f0['size']>0x0&&(_0x2c7ee3=!!this['_joinWithAdjacentSuggestions'](_0x26d8f0)||_0x2c7ee3),_0x2c7ee3;}),_0x196a61['model']['document']['registerPostFixer'](_0x6c3b8f=>{let _0x16b657=!0x1;for(const _0x45b4a6 of _0x196a61['model']['document']['differ']['getChanges']())if('insert'==_0x45b4a6['type'])for(const _0x37cb7f of this['_suggestions']['values']()){if(_0x37cb7f['isMultiRange']||!_0x37cb7f['isInContent'])continue;const _0x373d0a='formatBlock'==_0x37cb7f['type'],_0x2cdefd=this['_getAttributeKey'](_0x37cb7f),_0x1242b7=_0x2cdefd&&this['_isBlockAttribute'](_0x2cdefd);if(!_0x373d0a&&!_0x1242b7)continue;const _0x116f69=_0x37cb7f['getFirstRange']();if(_0x116f69['start']['parent']!=_0x116f69['end']['parent']&&!_0x116f69['end']['isAtEnd']){const _0x15b0f1=_0x196a61['model']['createPositionAt'](_0x116f69['start']['nodeAfter'],'end'),_0x239d90=_0x196a61['model']['createRange'](_0x116f69['start'],_0x15b0f1);_0x6c3b8f['updateMarker'](_0x37cb7f['getFirstMarker'](),{'range':_0x239d90}),_0x16b657=!0x0;}}return _0x16b657;}),_0x196a61['model']['document']['registerPostFixer'](_0x3af4c2=>this['_processAttributeChanges'](_0x3af4c2)),_0x196a61['model']['document']['registerPostFixer'](_0x532652=>!_0x532652['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x532652)),_0x196a61['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x196a61['model']['document']['on']('change:data',(_0x10ac8d,_0x32d5d5)=>{if(!_0x32d5d5['isLocal']||_0x32d5d5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1007b1=_0x196a61['model']['document']['differ']['getChanges']();if(0x0==_0x1007b1['length'])return;const _0x504dc2=[],_0x2896d4=_0x1007b1['filter'](_0x50de6d=>'attribute'==_0x50de6d['type']),_0x28d512=_0x1007b1['filter'](_0x28de5d=>'insert'==_0x28de5d['type']&&'$text'!=_0x28de5d['name']);for(const _0x1dbba2 of _0x2896d4)this['_isRegisteredAttribute'](_0x1dbba2['attributeKey'])&&_0x504dc2['push']({'key':_0x1dbba2['attributeKey'],'newValue':_0x1dbba2['attributeNewValue'],'oldValue':_0x1dbba2['attributeOldValue'],'range':Lt(_0x1dbba2['range'],_0x196a61['model'])});for(const _0x15b0d3 of _0x28d512){if('rename'!=_0x15b0d3['action']&&'refresh'!=_0x15b0d3['action'])continue;const _0x20734e=Jt(_0x15b0d3['position']['nodeAfter'],_0x196a61['model']),_0x2aac4c=_0x15b0d3['before'];'rename'==_0x15b0d3['action']&&_0x504dc2['push']({'key':m,'newValue':_0x15b0d3['name'],'oldValue':_0x2aac4c['name'],'range':_0x20734e});for(const [_0x3114d2,_0x18dd10]of _0x2aac4c['attributes']){if(!this['_isRegisteredAttribute'](_0x3114d2))continue;const _0x12775f=_0x15b0d3['attributes']['get'](_0x3114d2);_0x18dd10!==_0x12775f&&_0x504dc2['push']({'key':_0x3114d2,'newValue':_0x12775f,'oldValue':_0x18dd10,'range':_0x20734e});}for(const [_0x28d42e,_0x4ec389]of _0x15b0d3['attributes'])this['_isRegisteredAttribute'](_0x28d42e)&&(_0x2aac4c['attributes']['has'](_0x28d42e)||_0x504dc2['push']({'key':_0x28d42e,'newValue':_0x4ec389,'oldValue':null,'range':_0x20734e}));}0x0!=_0x504dc2['length']&&_0x196a61['model']['enqueueChange'](_0x32d5d5,_0x44ecf1=>{const _0x43fdde=_0x2f9277();for(const {range:_0x592716,key:_0x242d26,oldValue:_0x1f4e76,newValue:_0x5c50a9}of _0x504dc2)this['markAttributeChange'](_0x592716,_0x242d26,_0x1f4e76,_0x5c50a9,{'groupId':_0x43fdde});this['_reduceExistingSuggestions'](_0x44ecf1,_0x504dc2);});},{'priority':'lowest'}),_0x196a61['model']['markers']['on']('update:suggestion',(_0x514f76,_0x20e416,_0x67e4df)=>{if(null==_0x67e4df){const {id:_0x4b9d15}=this['_splitMarkerName'](_0x20e416['name']),_0x483bb5=this['_suggestions']['get'](_0x4b9d15);_0x483bb5&&_0x483bb5['addMarkerName'](_0x20e416['name']);}}),_0x196a61['model']['document']['on']('change:data',()=>{const _0x1c906c=Array['from'](_0x196a61['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5e5569=>'suggestion'===this['_splitMarkerName'](_0x5e5569['name'])['group']);if(0x0===_0x1c906c['length'])return;_0x1c906c['sort']((_0x1da6ca,_0x15f5b3)=>{const _0x180839=_0x1da6ca['data']['oldRange'],_0x5adea6=_0x15f5b3['data']['oldRange'];return null===_0x180839&&null===_0x5adea6?0x0:null===_0x180839&&null!==_0x5adea6?-0x1:null!==_0x180839&&null===_0x5adea6?0x1:_0x180839['start']['isBefore'](_0x5adea6['start'])?-0x1:0x1;});const _0x28eb0b=new Set(),_0x529a35=new Set();for(const {name:_0xa0000d,data:_0x454d9f}of _0x1c906c){const {id:_0x294ebb}=this['_splitMarkerName'](_0xa0000d);if(null===_0x454d9f['oldRange']){const _0x23d075=this['_handleNewSuggestionMarker'](_0xa0000d);_0x529a35['add'](_0x23d075);}else{const _0x33f660=this['_suggestions']['get'](_0x294ebb);null!==_0x454d9f['newRange']||_0x33f660['isInContent']?(_0x28eb0b['add'](_0x33f660['head']),_0x529a35['add'](_0x33f660)):this['_removeSuggestion'](_0x33f660);}}_0x529a35['size']>0x0&&this['_refreshSuggestionsChain'](_0x529a35);for(const _0x11ff20 of _0x28eb0b)this['fire']('suggestionChanged',_0x11ff20);}),_0x196a61['model']['on']('applyOperation',(_0x3016c1,_0x370e37)=>{const _0x377675=_0x370e37[0x0];if(!this['_suggestions']['size'])return;if(!_0x377675['isDocumentOperation'])return;if(_0x377675['batch']['isUndo']||!_0x377675['batch']['isLocal'])return;let _0x4087cb,_0x1ac4b4;switch(_0x377675['type']){case'insert':_0x4087cb=_0x196a61['model']['createPositionAt'](_0x377675['position']),_0x1ac4b4=_0x4087cb['getShiftedBy'](_0x377675['howMany']);break;case'split':_0x4087cb=_0x196a61['model']['createPositionAt'](_0x377675['splitPosition']),_0x1ac4b4=_0x196a61['model']['createPositionAt'](_0x377675['moveTargetPosition']);break;case'move':_0x4087cb=_0x196a61['model']['createPositionAt'](_0x377675['targetPosition']),_0x1ac4b4=_0x4087cb['getShiftedBy'](_0x377675['howMany']);break;default:return;}const _0xcbaa0e=_0x196a61['model']['createRange'](_0x4087cb,_0x1ac4b4);_0x196a61['model']['change'](()=>{for(const {suggestion:_0x1cc0aa,meta:_0xa6cc7c}of this['_findSuggestions'](_0xcbaa0e)){if(_0x1cc0aa['isMultiRange'])continue;if('formatInline'==_0x1cc0aa['type'])continue;const _0x455dba=this['_getAttributeKey'](_0x1cc0aa);if(_0x455dba&&this['_isBlockAttribute'](_0x455dba)&&'split'!=_0x377675['type'])continue;const _0x589a4c=_0x1cc0aa['data']&&_0x1cc0aa['data']['multipleBlocks'];('formatBlock'!=_0x1cc0aa['type']||'split'==_0x377675['type']&&!_0x589a4c)&&(_0xa6cc7c['containsRangeInObject']||'insertion'==_0x1cc0aa['type']&&_0xa6cc7c['isOwn']||_0x1cc0aa['getFirstRange']()['containsRange'](_0xcbaa0e)&&this['_breakSuggestionMarker'](_0x1cc0aa,_0x4087cb,_0x1ac4b4));}});},{'priority':'lowest'}),_0x196a61['model']['on']('deleteContent',(_0x2608c3,_0x101feb)=>{const _0x86cf8a=_0x101feb[0x0],_0x42aab9=_0x101feb[0x1];if(_0x42aab9&&_0x42aab9['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x86cf8a['isCollapsed'])return;const _0x169634=_0x196a61['model']['schema'],{start:_0x1bfc43,end:_0x2a4562}=_0x86cf8a['getFirstRange'](),_0x1f503a=_0x1bfc43['nodeAfter']&&_0x169634['isLimit'](_0x1bfc43['nodeAfter'])?null:_0x169634['getNearestSelectionRange'](_0x1bfc43,'forward'),_0xa92518=_0x2a4562['nodeBefore']&&_0x169634['isLimit'](_0x2a4562['nodeBefore'])?null:_0x169634['getNearestSelectionRange'](_0x2a4562,'backward'),_0x4f3198=_0x196a61['model']['createRange'](_0x1f503a?_0x1f503a['start']:_0x1bfc43,_0xa92518?_0xa92518['end']:_0x2a4562);_0x196a61['model']['change'](_0x3a3387=>{this['markDeletion'](_0x4f3198);const _0x12dfad=_0x196a61['model']['schema']['getNearestSelectionRange'](_0x4f3198['start']);_0x86cf8a['is']('documentSelection')?_0x3a3387['setSelection'](_0x12dfad):_0x86cf8a['setTo'](_0x12dfad);}),_0x2608c3['stop']();},{'priority':_0x54525e['normal']+0xa}),_0x196a61['model']['on']('insertContent',(_0x29fb1a,_0x4ce657)=>{const _0x42e07e=_0x4ce657[_0x4ce657['length']-0x1];_0x42e07e&&_0x42e07e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x196a61['model']['change'](()=>{let _0x18c6c7=_0x196a61['model']['insertContent'](_0x4ce657[0x0],_0x4ce657[0x1],_0x4ce657[0x2],{'forceDefaultExecution':!0x0});if(!_0x18c6c7)return;_0x29fb1a['return']=_0x18c6c7['clone']();const _0x3f68c3=_0x18c6c7['end']['nodeBefore'],_0x54e153=_0x196a61['model']['schema'];_0x3f68c3&&_0x54e153['isBlock'](_0x3f68c3)&&!_0x54e153['isObject'](_0x3f68c3)&&(_0x18c6c7=_0x196a61['model']['createRange'](_0x18c6c7['start'],_0x196a61['model']['createPositionAt'](_0x3f68c3,'end'))),this['markInsertion'](_0x18c6c7);}),_0x29fb1a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3772ed=new O(_0x196a61,this['_suggestions']);_0x196a61['commands']['add']('acceptSuggestion',_0x3772ed),this['enableCommand']('acceptSuggestion');const _0x40dd59=new R(_0x196a61,this['_suggestions']);_0x196a61['commands']['add']('discardSuggestion',_0x40dd59),this['enableCommand']('discardSuggestion'),_0x196a61['commands']['add']('acceptAllSuggestions',new x(_0x196a61,_0x3772ed,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x196a61['commands']['add']('discardAllSuggestions',new x(_0x196a61,_0x40dd59,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x196a61['commands']['add']('acceptSelectedSuggestions',new E(_0x196a61,_0x3772ed,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x196a61['commands']['add']('discardSelectedSuggestions',new E(_0x196a61,_0x40dd59,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xda5aa5=_0x196a61['plugins']['get']('CommentsRepository');this['listenTo'](_0xda5aa5,'addComment',(_0x20b056,{threadId:_0x2987a9})=>{const _0x19b342=this['_suggestions']['get'](_0x2987a9);_0x19b342&&_0x19b342['commentThread']&&0x1===_0x19b342['commentThread']['length']&&this['_updateSuggestionData'](_0x2987a9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xda5aa5,'removeComment',(_0x177450,{threadId:_0x524c34})=>{const _0x3699bf=this['_suggestions']['get'](_0x524c34);_0x3699bf&&_0x3699bf['commentThread']&&!_0x3699bf['commentThread']['length']&&this['_updateSuggestionData'](_0x524c34,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3cc68b){const _0x34123b=_0x44c7d6([0x32,0x68,0x35,0x77,0x55,0x6e,0x34,0x33,0x4d,0x63,0x61,0x6a,0x67,0x54,0x53,0x75,0x62,0x69,0x50,0x48,0x41,0x4a,0x57,0x71,0x76,0x58,0x47,0x43,0x6f,0x30,0x66,0x4b,0x4c,0x45,0x6d,0x64,0x38,0x51,0x59,0x42,0x78,0x73,0x6b,0x44,0x4e,0x31,0x56,0x4f,0x7a,0x49,0x65,0x6c,0x46,0x74,0x52,0x79,0x39,0x72,0x37,0x5a,0x70,0x36]),_0x157cb2=0x13fd5ff,_0x3e625d=0x1388e47^_0x157cb2,_0x21eb28=window[_0x44c7d6([0x44,0x61,0x74,0x65])][_0x44c7d6([0x6e,0x6f,0x77])](),_0x2a0917=_0x3cc68b[_0x44c7d6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x327b8d=new window[(_0x44c7d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c4ba1=>{_0x2a0917[_0x44c7d6([0x6f,0x6e,0x63,0x65])](_0x44c7d6([0x72,0x65,0x61,0x64,0x79]),_0x3c4ba1);}),_0x20379b={[_0x44c7d6([0x6b,0x74,0x79])]:_0x44c7d6([0x45,0x43]),[_0x44c7d6([0x75,0x73,0x65])]:_0x44c7d6([0x73,0x69,0x67]),[_0x44c7d6([0x63,0x72,0x76])]:_0x44c7d6([0x50,0x2d,0x32,0x35,0x36]),[_0x44c7d6([0x78])]:_0x44c7d6([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]),[_0x44c7d6([0x79])]:_0x44c7d6([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]),[_0x44c7d6([0x61,0x6c,0x67])]:_0x44c7d6([0x45,0x53,0x32,0x35,0x36])},_0x29be8f=_0x2a0917[_0x44c7d6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x44c7d6([0x67,0x65,0x74])](_0x44c7d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31c67b(){let _0x4db386,_0x2c3751=null,_0x544607=null;try{if(_0x29be8f==_0x44c7d6([0x47,0x50,0x4c]))return _0x44c7d6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4db386=_0x4afd11(),!_0x4db386)return _0x44c7d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4db386[_0x44c7d6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x544607=_0x414859(_0x4db386[_0x44c7d6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4db386[_0x44c7d6([0x6a,0x74,0x69])])),await _0x2046cb()?_0x41f707()?_0x315133()?_0x44c7d6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1eb4f7()?(_0x4db386[_0x44c7d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44c7d6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c3751=_0x3bb92f(_0x44c7d6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4db386[_0x44c7d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44c7d6([0x74,0x72,0x69,0x61,0x6c])&&(_0x2c3751=_0x3bb92f(_0x44c7d6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4db386[_0x44c7d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44c7d6([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x2c3751=_0x3bb92f(_0x44c7d6([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d701a()):_0x44c7d6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x44c7d6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x44c7d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5d9274){return _0x44c7d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x315133(){const _0x552c8a=[_0x44c7d6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x44c7d6([0x74,0x72,0x69,0x61,0x6c])][_0x44c7d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db386[_0x44c7d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x21eb28/0x3e8:0xe10*_0x3e625d;return _0x4db386[_0x44c7d6([0x65,0x78,0x70])]<_0x552c8a;}function _0x41f707(){const _0x49becd=_0x4db386[_0x44c7d6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x49becd)return!0x1;if(_0x49becd[_0x44c7d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44c7d6([0x2a])))return!0x0;if(_0x49becd[_0x44c7d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44c7d6([0x54,0x43])))return!0x0;if(_0x49becd[_0x44c7d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44c7d6([0x52,0x54,0x43]))){if(_0x277d22())return!0x0;if(_0x1347ab()||_0x409d8a())return!0x0;}return!0x1;}function _0x1eb4f7(){const _0x57de27=_0x4db386[_0x44c7d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x57de27||0x0==_0x57de27[_0x44c7d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x76261f}=new URL(window[_0x44c7d6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x57de27[_0x44c7d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76261f))return!0x0;const _0x1f54f6=_0x76261f[_0x44c7d6([0x73,0x70,0x6c,0x69,0x74])](_0x44c7d6([0x2e]));return _0x57de27[_0x44c7d6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1813fa=>_0x1813fa[_0x44c7d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44c7d6([0x2a])))[_0x44c7d6([0x6d,0x61,0x70])](_0x33465a=>_0x33465a[_0x44c7d6([0x73,0x70,0x6c,0x69,0x74])](_0x44c7d6([0x2e])))[_0x44c7d6([0x73,0x6f,0x6d,0x65])](_0x5c346e=>_0x1f54f6[_0x44c7d6([0x65,0x76,0x65,0x72,0x79])]((_0x30047d,_0x129028)=>_0x5c346e[_0x129028]===_0x30047d||_0x5c346e[_0x129028]===_0x44c7d6([0x2a])));}function _0x2d701a(){return _0x2c3751&&_0x544607?new window[(_0x44c7d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ed619,_0x7c31f8)=>{_0x2c3751[_0x44c7d6([0x74,0x68,0x65,0x6e])](_0x3ed619,_0x7c31f8),_0x544607[_0x44c7d6([0x74,0x68,0x65,0x6e])](_0x1e8db5=>{_0x1e8db5!=_0x44c7d6([0x56,0x61,0x6c,0x69,0x64])&&_0x3ed619(_0x1e8db5);},_0x7c31f8);}):_0x2c3751||_0x544607||_0x44c7d6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x414859(_0x434b8c,_0x32d968){return new window[(_0x44c7d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41ed0b=>{if(_0x19f4e8())return _0x41ed0b(_0x44c7d6([0x56,0x61,0x6c,0x69,0x64]));_0x1b3a73(),_0x2a0917[_0x44c7d6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x44c7d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x370152=!0x1;const _0x4f738c=_0x2f9277();function _0x10d760(_0x2e873d){return!!_0x2e873d&&(typeof _0x2e873d===_0x44c7d6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e873d===_0x44c7d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e873d[_0x44c7d6([0x74,0x68,0x65,0x6e])]===_0x44c7d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e873d[_0x44c7d6([0x63,0x61,0x74,0x63,0x68])]===_0x44c7d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a8dda(_0x16579f){_0x40df94(_0x16579f)[_0x44c7d6([0x74,0x68,0x65,0x6e])](_0x349d86=>{if(!_0x349d86||_0x349d86[_0x44c7d6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x44c7d6([0x6f,0x6b]))return _0x44c7d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a61df(_0x5abf4e(_0x4f738c+_0x32d968))!=_0x349d86[_0x44c7d6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x44c7d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x44c7d6([0x56,0x61,0x6c,0x69,0x64]);})[_0x44c7d6([0x74,0x68,0x65,0x6e])](_0x3be518=>(_0x52977d(),_0x3be518),()=>{const _0x4b838b=_0x48b4e7();return null==_0x4b838b?(_0x52977d(),_0x44c7d6([0x56,0x61,0x6c,0x69,0x64])):_0x44c7d6(_0x21eb28-_0x4b838b>(0x253351ff^_0x157cb2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x44c7d6([0x74,0x68,0x65,0x6e])](_0x41ed0b)[_0x44c7d6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41ed0b(_0x44c7d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2fec80=0x1093b7f^_0x157cb2;function _0x52977d(){const _0x34a64d=_0x44c7d6([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a61df(_0x5abf4e(_0x434b8c)),_0x1fe08e=_0xb53be8(_0x2a61df(window[_0x44c7d6([0x4d,0x61,0x74,0x68])][_0x44c7d6([0x63,0x65,0x69,0x6c])](_0x21eb28/_0x2fec80)));window[_0x44c7d6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44c7d6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34a64d,_0x1fe08e);}function _0x48b4e7(){const _0x377047=_0x44c7d6([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a61df(_0x5abf4e(_0x434b8c)),_0x591307=window[_0x44c7d6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44c7d6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x377047);return _0x591307?window[_0x44c7d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb53be8(_0x591307),0x10)*_0x2fec80:null;}function _0x40df94(_0x570588){return new window[(_0x44c7d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21bafb,_0x626882)=>{_0x570588[_0x44c7d6([0x74,0x68,0x65,0x6e])](_0x21bafb,_0x626882),window[_0x44c7d6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x626882,0x13e013f^_0x157cb2);});}}_0x2a0917[_0x44c7d6([0x6f,0x6e])](_0x44c7d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf1d6f6,_0x3fbecc)=>{if(_0x3fbecc[0x0]!=_0x434b8c)return _0x41ed0b(_0x44c7d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3fbecc[0x1]={..._0x3fbecc[0x1],[_0x44c7d6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f738c};},{[_0x44c7d6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44c7d6([0x68,0x69,0x67,0x68])}),_0x2a0917[_0x44c7d6([0x6f,0x6e])](_0x44c7d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5904f7=>{_0x10d760(_0x5904f7[_0x44c7d6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x370152=!0x0,_0x5a8dda(_0x5904f7[_0x44c7d6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x44c7d6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44c7d6([0x6c,0x6f,0x77])}),_0x327b8d[_0x44c7d6([0x74,0x68,0x65,0x6e])](()=>{_0x370152||_0x41ed0b(_0x44c7d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x19f4e8(){return _0x2a0917[_0x44c7d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44c7d6([0x76,0x69,0x65,0x77])][_0x44c7d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x44c7d6([0x61,0x75,0x74,0x6f]);}function _0x1b3a73(){_0x2a0917[_0x44c7d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44c7d6([0x76,0x69,0x65,0x77])][_0x44c7d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44c7d6([0x61,0x75,0x74,0x6f]);}}function _0x3bb92f(_0x31446c){const _0x1f901c=[new window[(_0x44c7d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eb767=>setTimeout(_0x5eb767,0x136eb33^_0x157cb2)),_0x327b8d[_0x44c7d6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x44c7d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x255e43=>{let _0x496bfd=0x0;_0x2a0917[_0x44c7d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x44c7d6([0x6f,0x6e])](_0x44c7d6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x6a3fee,_0x173048)=>{_0x173048[0x0][_0x44c7d6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x496bfd++,_0x496bfd==(0x13fd407^_0x157cb2)&&(_0x255e43(),_0x6a3fee[_0x44c7d6([0x6f,0x66,0x66])]());});}))];return window[_0x44c7d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44c7d6([0x72,0x61,0x63,0x65])](_0x1f901c)[_0x44c7d6([0x74,0x68,0x65,0x6e])](()=>_0x31446c);}async function _0x241e90(){await _0x327b8d,_0x2a0917[_0x44c7d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x44c7d6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d84de,_0x2a0917[_0x44c7d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x44c7d6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d84de,_0x2a0917[_0x44c7d6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x44c7d6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x277d22(){return _0x41b223(_0x44c7d6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5af50e(_0x44c7d6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x44c7d6([0x73,0x74,0x61,0x74,0x65])]==_0x44c7d6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1347ab(){return _0x41b223(_0x44c7d6([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 _0x409d8a(){return _0x41b223(_0x44c7d6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4daf48(_0x2a5a64){const _0xc7aba6=_0x12cc62();_0x2a0917[_0xc7aba6]=_0x44c7d6([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a5a64,_0x2a5a64!=_0x44c7d6([0x56,0x61,0x6c,0x69,0x64])&&_0x241e90();}function _0x12cc62(){const _0x5b334a=window[_0x44c7d6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x44c7d6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x44c7d6([0x6e,0x6f,0x77])]())[_0x44c7d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x44c7d6([0x2e]),'');let _0x222199=_0x44c7d6([0x68]);for(let _0x458caf=0x0;_0x458caf<_0x5b334a[_0x44c7d6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x458caf+=0x2){let _0x139431=window[_0x44c7d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b334a[_0x44c7d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x458caf,_0x458caf+0x2));_0x139431>=_0x34123b[_0x44c7d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x139431-=_0x34123b[_0x44c7d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x222199+=_0x34123b[_0x139431];}return _0x222199;}function _0x4afd11(){const _0x70f3e4=_0x29be8f[_0x44c7d6([0x73,0x70,0x6c,0x69,0x74])](_0x44c7d6([0x2e]));if(0x3!=_0x70f3e4[_0x44c7d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x55cc31(_0x70f3e4[0x1]);function _0x55cc31(_0x68719d){const _0x298ad8=_0x5b3ccf(_0x68719d);return _0x298ad8&&_0x4ac1a6()?_0x298ad8:null;function _0x4ac1a6(){const _0x4d6ff8=_0x298ad8[_0x44c7d6([0x6a,0x74,0x69])],_0x30de85=window[_0x44c7d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d6ff8[_0x44c7d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d6ff8[_0x44c7d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22d260={..._0x298ad8,[_0x44c7d6([0x6a,0x74,0x69])]:_0x4d6ff8[_0x44c7d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d6ff8[_0x44c7d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22d260[_0x44c7d6([0x76,0x63])],_0x5abf4e(_0x22d260)==_0x30de85;}}}async function _0x2046cb(){let _0x5ed660=!0x0;try{const _0x535248=_0x29be8f[_0x44c7d6([0x73,0x70,0x6c,0x69,0x74])](_0x44c7d6([0x2e])),[_0x4ac8ae,_0x1a4e2a,_0x461f9d]=_0x535248;return _0x25e52d(_0x4ac8ae),await _0x1568de(_0x4ac8ae,_0x1a4e2a,_0x461f9d),_0x5ed660;}catch(_0x10f012){return!0x1;}function _0x25e52d(_0x189dbb){const _0x3428b9=_0x5b3ccf(_0x189dbb);_0x3428b9&&_0x3428b9[_0x44c7d6([0x61,0x6c,0x67])]==_0x44c7d6([0x45,0x53,0x32,0x35,0x36])||(_0x5ed660=!0x1);}async function _0x1568de(_0x27e8c3,_0x1c1b61,_0x4cf4c6){const _0x25ab80=window[_0x44c7d6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x44c7d6([0x66,0x72,0x6f,0x6d])](_0x1255d5(_0x4cf4c6),_0x2ec324=>_0x2ec324[_0x44c7d6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x44274c=new window[(_0x44c7d6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x44c7d6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27e8c3+_0x44c7d6([0x2e])+_0x1c1b61),_0x58b5c8=window[_0x44c7d6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x44c7d6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58b5c8)return;const _0x373a3f=await _0x58b5c8[_0x44c7d6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x44c7d6([0x6a,0x77,0x6b]),_0x20379b,{[_0x44c7d6([0x6e,0x61,0x6d,0x65])]:_0x44c7d6([0x45,0x43,0x44,0x53,0x41]),[_0x44c7d6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x44c7d6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x44c7d6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58b5c8[_0x44c7d6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x44c7d6([0x6e,0x61,0x6d,0x65])]:_0x44c7d6([0x45,0x43,0x44,0x53,0x41]),[_0x44c7d6([0x68,0x61,0x73,0x68])]:{[_0x44c7d6([0x6e,0x61,0x6d,0x65])]:_0x44c7d6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x373a3f,_0x25ab80,_0x44274c)||(_0x5ed660=!0x1);}}function _0x5b3ccf(_0x4079c2){return _0x4079c2[_0x44c7d6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x44c7d6([0x65,0x79]))?JSON[_0x44c7d6([0x70,0x61,0x72,0x73,0x65])](_0x1255d5(_0x4079c2)):null;}function _0x1255d5(_0x3508b3){return window[_0x44c7d6([0x61,0x74,0x6f,0x62])](_0x3508b3[_0x44c7d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x44c7d6([0x2b]))[_0x44c7d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x44c7d6([0x2f])));}function _0x5abf4e(_0x4596b3){let _0x1469d5=0x1505;function _0x365371(_0x121e95){for(let _0x31e39f=0x0;_0x31e39f<_0x121e95[_0x44c7d6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31e39f++){const _0x3ff9c4=_0x121e95[_0x44c7d6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31e39f);_0x1469d5=(_0x1469d5<<0x5)+_0x1469d5+_0x3ff9c4,_0x1469d5&=_0x1469d5;}}function _0x57e1b8(_0x3a161){Array[_0x44c7d6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a161)?_0x3a161[_0x44c7d6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57e1b8):_0x3a161&&typeof _0x3a161==_0x44c7d6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x44c7d6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a161)[_0x44c7d6([0x73,0x6f,0x72,0x74])]()[_0x44c7d6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x544daf,_0xf915d])=>{_0x365371(_0x544daf),_0x57e1b8(_0xf915d);}):_0x365371(window[_0x44c7d6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a161));}return _0x57e1b8(_0x4596b3),_0x1469d5>>>0x0;}function _0x2a61df(_0x1f5953){return _0x1f5953[_0x44c7d6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x44c7d6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x44c7d6([0x30]));}function _0xb53be8(_0x45d7e7){return _0x45d7e7[_0x44c7d6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x44c7d6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x44c7d6([0x6a,0x6f,0x69,0x6e])]('');}function _0x41b223(_0x567753){return _0x2a0917[_0x44c7d6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x44c7d6([0x68,0x61,0x73])](_0x567753);}function _0x5af50e(_0x567806){return _0x2a0917[_0x44c7d6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x44c7d6([0x67,0x65,0x74])](_0x567806);}function _0x4d84de(){}function _0x44c7d6(_0x56f2c5){return _0x56f2c5['map'](_0x2f40c6=>String['fromCharCode'](_0x2f40c6))['join']('');}_0x4daf48(await _0x31c67b());}(this);}set['adapter'](_0x4ace45){if(this['_adapter'])throw new _0x317959('track-changes-adapter-already-set',this);this['_adapter']=_0x4ace45;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x207742=!0x1,toJSON:_0x5983fa=!0x1}={}){const _0x137ead=[];for(const _0x53e3b7 of this['_suggestions']['values']())_0x207742&&!_0x53e3b7['isInContent']||_0x137ead['push'](_0x53e3b7);return _0x5983fa?_0x137ead['map'](_0x39c104=>_0x39c104['toJSON']()):_0x137ead;}['getSuggestion'](_0x2616a9){const _0x1433a7=this['_suggestions']['get'](_0x2616a9);if(!_0x1433a7)throw new _0x317959('track-changes-suggestion-not-found',this);return _0x1433a7;}['hasSuggestion'](_0x28b24b){return this['_suggestions']['has'](_0x28b24b);}['addSuggestionData'](_0x5b1996){const {authorId:_0x385440,id:_0xba65db,attributes:_0x17f3a7}=_0x5b1996,[_0x483bf5,_0x42dcc4]=_0x5b1996['type']['split'](':'),_0x4eebff=this['_suggestions']['get'](_0xba65db)||this['_createSuggestion'](_0x483bf5,_0x42dcc4,_0xba65db,_0x385440,_0x17f3a7);if(this['_addThreadToSuggestion'](_0x4eebff),this['_checkSuggestionCorrectness'](_0x4eebff,_0x483bf5,_0x42dcc4||null,_0x385440),_0x4eebff['createdAt']=_0x5b1996['createdAt'],_0x4eebff['_isDataLoaded']=!0x0,_0x17f3a7&&_0x17f3a7['@external']){const _0x51c2b7=_0x17f3a7['@external'],_0x5cf168=this['_getExternalAuthor'](_0x51c2b7['authorName']);_0x4eebff['authoredAt']=_0x51c2b7['createdAt'],_0x4eebff['author']=_0x5cf168,_0x4eebff['isExternal']=!0x0;}else _0x4eebff['authoredAt']=_0x5b1996['createdAt'];switch(_0x5b1996['data']&&(_0x4eebff['data']=_0x5b1996['data']),_0x5b1996['attributes']&&(_0x4eebff['attributes']=_0x5b1996['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4eebff['_saved']=!0x0),this['_suggestionState']['get'](_0x4eebff)){case'notReady':this['_suggestionState']['set'](_0x4eebff,'dataReady');break;case'markerReady':_0x4eebff['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4eebff])),this['_refreshSuggestionsChain'](new Set([_0x4eebff])),this['_suggestionState']['set'](_0x4eebff,'ready'),this['fire']('suggestionLoaded',_0x4eebff)):this['_suggestionState']['set'](_0x4eebff,'removed');}return _0x4eebff;}['acceptSuggestion'](_0x25a87c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x63ab14 of _0x25a87c['getAllAdjacentSuggestions']())_0x63ab14['accept']();});});}['discardSuggestion'](_0x4b3804){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xb94554 of _0x4b3804['getAllAdjacentSuggestions']())_0xb94554['discard']();});});}['enableCommand'](_0x29b9cb,_0x1ad162){const _0x584681=this['editor']['commands']['get'](_0x29b9cb);if(!_0x584681)throw new _0x317959('track-changes-command-not-found',this,{'commandName':_0x29b9cb});if(this['_enabledCommands']['has'](_0x584681))throw new _0x317959('track-changes-enable-command-twice',this,{'commandName':_0x29b9cb});this['_enabledCommands']['add'](_0x584681),_0x1ad162&&_0x584681['on']('execute',(_0xaab62c,_0x3e4858)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3e4858['length']>0x0&&_0x3e4858[_0x3e4858['length']-0x1]&&_0x3e4858[_0x3e4858['length']-0x1]['forceDefaultExecution']?_0x3e4858['pop']():(_0xaab62c['return']=_0x1ad162((..._0x5ad219)=>_0x584681['execute'](..._0x5ad219,{'forceDefaultExecution':!0x0}),..._0x3e4858),_0xaab62c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x6f21c6){let _0x343930,_0x396e80;const _0x34b463=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x343930=_0x6f21c6();}catch(_0x1f9a57){_0x396e80=_0x1f9a57;}return _0x34b463||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x396e80&&_0x317959['rethrowUnexpectedError'](_0x396e80,this),_0x343930;}['markInsertion'](_0x522b05,_0x4813c9=null,_0xa315b7={}){if(_0x522b05['isCollapsed'])return null;const _0x252ee1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x21086e,meta:_0x3a869f}of this['_findSuggestions'](_0x522b05,'insertion'))if(_0x3a869f['isOwn']){if(!_0x3a869f['isNextTo']){if(_0x3a869f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x21086e,_0xa315b7))continue;return _0x21086e;}if(zt(_0x21086e,_0xa315b7))return _0x21086e;this['_breakSuggestionMarker'](_0x21086e,_0x522b05['start'],_0x522b05['end']);break;}if(_0x4813c9==_0x21086e['subType']&&zt(_0x21086e,_0xa315b7)){const _0x243867=_0x21086e['getFirstRange']();return _0x243867['start']['isEqual'](_0x522b05['end'])?this['_setSuggestionRange'](_0x21086e,this['_model']['createRange'](_0x522b05['start'],_0x243867['end'])):this['_setSuggestionRange'](_0x21086e,this['_model']['createRange'](_0x243867['start'],_0x522b05['end'])),_0x21086e;}}const _0x59e21e=_0x2f9277(),_0x134d9a=_0x252ee1['id'],_0x1f0a3f=_0x4813c9?'insertion:'+_0x4813c9:'insertion',_0x1bbfa2=this['_setSuggestionData']({'id':_0x59e21e,'type':_0x1f0a3f,'createdAt':new Date(),'authorId':_0x134d9a,'attributes':_0xa315b7});return this['_addSuggestionMarker'](_0x1f0a3f,_0x59e21e,_0x134d9a,_0x522b05),_0x1bbfa2;}['markMultiRangeInsertion'](_0x122384,_0x43e6fc='multi',_0x10bf14={}){const _0x263c24=this['editor']['plugins']['get']('Users')['me'],_0x1a52a0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x43e6fc,'join');for(const _0x5280a3 of this['getSuggestions']())if(_0x5280a3['author']['id']==_0x263c24['id']&&'insertion'==_0x5280a3['type']&&_0x5280a3['subType']==_0x43e6fc&&zt(_0x5280a3,_0x10bf14)&&(_0x1a52a0(_0x5280a3['getRanges'](),_0x122384)||_0x1a52a0(_0x122384,_0x5280a3['getRanges']()))){for(const _0x372a8d of _0x122384)_0x5280a3['addRange'](_0x372a8d);return _0x5280a3;}for(const {suggestion:_0x3be887,meta:_0x39330f}of this['_findSuggestions'](_0x122384,'insertion')){if(!_0x39330f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x39330f['containsRangeInObject'])continue;if(!zt(_0x3be887,_0x10bf14))continue;let _0x5d0034=!0x0;for(const _0x10e697 of _0x3be887['getRanges']())for(const _0x4a497a of _0x122384)if(!_0x10e697['containsRange'](_0x4a497a)){_0x5d0034=!0x1;break;}if(_0x5d0034)return _0x3be887;}const _0x5a80fe=_0x2f9277(),_0x4e2a1f=_0x263c24['id'],_0x52ba8a='insertion:'+_0x43e6fc,_0xfc5e0a=this['_setSuggestionData']({'id':_0x5a80fe,'type':_0x52ba8a,'createdAt':new Date(),'authorId':_0x4e2a1f,'attributes':_0x10bf14});for(const _0x56db9f of _0x122384)this['_addSuggestionMarker'](_0x52ba8a,_0x5a80fe,_0x4e2a1f,_0x56db9f,u['getMultiRangeId']());return _0xfc5e0a;}['markInlineFormat'](_0x2ac90c,_0x573300,_0x44da8f=null,_0x909773={}){if(_0x44da8f=_0x44da8f||Gt(_0x573300),_0x2ac90c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x588f94=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44da8f,'accept');return this['forceDefaultExecution'](()=>_0x588f94([_0x2ac90c],_0x573300,_0x909773)),null;}const _0x457684=this['editor']['plugins']['get']('Users')['me'],_0x7d955d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x206d8,meta:_0x5ec404}of this['_findSuggestions'](_0x2ac90c,'insertion'))_0x5ec404['isOwn']&&!_0x5ec404['isInsideObject']&&_0x7d955d['push'](..._0x206d8['getRanges']());}const _0x2194f9=function(_0xf6abc,_0xb81e00){const _0x1193c0=[];for(const _0x542dbf of _0xb81e00){const _0x3b1134=_0xf6abc['getIntersection'](_0x542dbf);_0x3b1134&&_0x1193c0['push'](_0x3b1134);}return _0x1193c0;}(_0x2ac90c,_0x7d955d),_0x9cbf7c=function(_0x460cef,_0x76388){const _0x2dc205=[_0x460cef];for(const _0xb59cdd of _0x76388){let _0x4cd402=0x0;for(;_0x4cd402<_0x2dc205['length'];){const _0xa664a7=_0x2dc205[_0x4cd402]['getDifference'](_0xb59cdd);_0x2dc205['splice'](_0x4cd402,0x1,..._0xa664a7),_0x4cd402+=_0xa664a7['length'];}}return _0x2dc205;}(_0x2ac90c,_0x7d955d);_0x2194f9['length']&&this['_model']['change'](()=>{for(const _0x109dc8 of _0x2194f9){const _0x4841b3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44da8f,'accept');this['forceDefaultExecution'](()=>_0x4841b3([_0x109dc8],_0x573300,_0x909773));}});for(const _0x534e73 of _0x9cbf7c){let _0x528e1a=null,_0x43e5d9=_0x534e73['start'],_0x20cf74=_0x534e73['end'];for(const {suggestion:_0x10a914,meta:_0x596293}of this['_findSuggestions'](_0x534e73,'formatInline')){if(!_0x596293['isOwn'])continue;if(_0x10a914['subType']!=_0x44da8f)continue;if(!zt(_0x10a914,_0x909773))continue;const _0x5e958d=_0x10a914['getFirstRange']();if(_0x5e958d['containsRange'](_0x534e73,!0x0))return null;_0x43e5d9=_0x43e5d9['isBefore'](_0x5e958d['start'])?_0x43e5d9:_0x5e958d['start'],_0x20cf74=_0x20cf74['isAfter'](_0x5e958d['end'])?_0x20cf74:_0x5e958d['end'],_0x528e1a?_0x5e958d['start']['isBefore'](_0x528e1a['getFirstRange']()['start'])?(_0x528e1a['removeMarkers'](),_0x528e1a=_0x10a914):_0x10a914['removeMarkers']():_0x528e1a=_0x10a914;}const _0x36b1d1=this['_model']['createRange'](_0x43e5d9,_0x20cf74);if(_0x528e1a)this['_setSuggestionRange'](_0x528e1a,_0x36b1d1);else{const _0x5640d6=_0x2f9277(),_0x46a9cb=_0x457684['id'];this['_setSuggestionData']({'id':_0x5640d6,'type':'formatInline:'+_0x44da8f,'data':_0x573300,'createdAt':new Date(),'authorId':_0x46a9cb,'attributes':_0x909773}),this['_addSuggestionMarker']('formatInline:'+_0x44da8f,_0x5640d6,_0x46a9cb,_0x36b1d1);}}return null;}['markBlockFormat'](_0x152fb7,_0x54ab35,_0x575e14=[],_0x20f836=null,_0x6cb49c={}){_0x54ab35['formatGroupId']||(_0x54ab35['formatGroupId']=_0x54ab35['commandName']),_0x54ab35['multipleBlocks']=_0x152fb7['is']('range'),_0x20f836=_0x20f836||Gt(_0x54ab35);const _0x5dcaf2=_0x575e14['map'](_0x234f49=>Jt(_0x234f49,this['_model'])),_0x345c6c=_0x152fb7['is']('range')?_0x152fb7:Jt(_0x152fb7,this['_model']);if('never'===this['_trackFormatChanges']){const _0x95d6aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20f836,'accept');return this['forceDefaultExecution'](()=>_0x95d6aa([_0x345c6c],_0x54ab35,_0x6cb49c)),null;}_0x5dcaf2['push'](_0x345c6c);let _0x9c40fc=!0x0;for(const _0x3135d3 of _0x5dcaf2)if(!this['_rangeIsInLocalUserInsertion'](_0x3135d3)){_0x9c40fc=!0x1;break;}if(_0x9c40fc&&'always'!==this['_trackFormatChanges']){const _0x513cb6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20f836,'accept');return this['forceDefaultExecution'](()=>_0x513cb6([_0x345c6c],_0x54ab35,_0x6cb49c)),null;}let _0x13cedc=null,_0x3edd21=_0x345c6c['start'],_0x4e5d4f=_0x345c6c['end'];for(const {suggestion:_0x5e2d80,meta:_0x439d04}of this['_findSuggestions'](_0x345c6c,'formatBlock')){if(!_0x439d04['isOwn'])continue;if(_0x439d04['isNextTo']||_0x439d04['containsRangeInObject']||_0x439d04['isInsideObject'])continue;if(_0x5e2d80['data']['formatGroupId']!=_0x54ab35['formatGroupId'])continue;if(!zt(_0x5e2d80,_0x6cb49c))continue;const _0x2c955a=_0x5e2d80['getFirstRange']();if(_0x5e2d80['subType']==_0x20f836){if(_0x2c955a['containsRange'](_0x345c6c,!0x0))return null;_0x3edd21=_0x3edd21['isBefore'](_0x2c955a['start'])?_0x3edd21:_0x2c955a['start'],_0x4e5d4f=_0x4e5d4f['isAfter'](_0x2c955a['end'])?_0x4e5d4f:_0x2c955a['end'],_0x13cedc?_0x2c955a['start']['isBefore'](_0x13cedc['getFirstRange']()['start'])?(_0x13cedc['removeMarkers'](),_0x13cedc=_0x5e2d80):_0x5e2d80['removeMarkers']():_0x13cedc=_0x5e2d80;}else{const _0x2b3476=_0x345c6c['getIntersection'](_0x2c955a);this['_cutOutSuggestionMarker'](_0x5e2d80,_0x2b3476);}}const _0x421fb4=this['editor']['plugins']['get']('Users')['me'],_0x5c9662=_0x2f9277(),_0x31ea7c=_0x421fb4['id'];if(_0x13cedc)return this['_setSuggestionRange'](_0x13cedc,this['_model']['createRange'](_0x3edd21,_0x4e5d4f)),_0x13cedc;{const _0x3832e7=this['_setSuggestionData']({'id':_0x5c9662,'type':'formatBlock:'+_0x20f836,'data':_0x54ab35,'createdAt':new Date(),'authorId':_0x31ea7c,'attributes':_0x6cb49c});return this['_addSuggestionMarker']('formatBlock:'+_0x20f836,_0x5c9662,_0x31ea7c,this['_model']['createRange'](_0x3edd21,_0x4e5d4f)),_0x3832e7;}}['markMultiRangeBlockFormat'](_0x49ca08,_0x11b2cf,_0x59d6bc=[],_0x57dcb1=null,_0x44fd70={}){_0x11b2cf['formatGroupId']||(_0x11b2cf['formatGroupId']=_0x11b2cf['commandName']);const _0x24003b=_0x49ca08[0x0];_0x11b2cf['multipleBlocks']=_0x24003b['is']('range'),_0x57dcb1=_0x57dcb1||Gt(_0x11b2cf);const _0x5e0b63=_0x59d6bc['map'](_0x16a48d=>Jt(_0x16a48d,this['_model'])),_0x42af6c=_0x24003b['is']('range')?_0x49ca08:_0x49ca08['map'](_0x2a34a0=>Jt(_0x2a34a0,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3811b9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57dcb1,'accept');return this['forceDefaultExecution'](()=>_0x3811b9(_0x42af6c,_0x11b2cf,_0x44fd70)),null;}_0x5e0b63['push'](..._0x42af6c);let _0xa91834=!0x0;for(const _0xd49d55 of _0x5e0b63)if(!this['_rangeIsInLocalUserInsertion'](_0xd49d55)){_0xa91834=!0x1;break;}if(_0xa91834&&'always'!==this['_trackFormatChanges']){const _0x1acaa4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57dcb1,'accept');return this['forceDefaultExecution'](()=>_0x1acaa4(_0x42af6c,_0x11b2cf,_0x44fd70)),null;}const _0x286a76=this['editor']['plugins']['get']('Users')['me'];for(const _0x17b607 of this['getSuggestions']()){if(_0x17b607['author']['id']!=_0x286a76['id'])continue;if('formatBlock'!=_0x17b607['type']||_0x17b607['data']['formatGroupId']!=_0x11b2cf['formatGroupId'])continue;if(!zt(_0x17b607,_0x44fd70))continue;const _0x3cf81f=_0x17b607['subType']==_0x57dcb1;for(let _0x275bc1=0x0;_0x275bc1<_0x42af6c['length'];_0x275bc1++){const _0x14ef07=_0x42af6c[_0x275bc1];for(const _0x48da84 of _0x17b607['getMarkers']()){const _0x16496f=_0x48da84['getRange']();if(_0x14ef07['isEqual'](_0x16496f)){_0x3cf81f?(_0x42af6c['splice'](_0x275bc1,0x1),_0x275bc1--):_0x17b607['removeMarker'](_0x48da84['name']);break;}}}}if(0x0==_0x42af6c['length'])return null;const _0x4c09cf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57dcb1,'join');for(const _0x4ce646 of this['getSuggestions']())if(_0x4ce646['author']['id']==_0x286a76['id']&&'formatBlock'==_0x4ce646['type']&&_0x4ce646['data']['formatGroupId']==_0x11b2cf['formatGroupId']&&_0x4ce646['subType']==_0x57dcb1&&zt(_0x4ce646,_0x44fd70)&&(_0x4c09cf(_0x4ce646['getRanges'](),_0x42af6c)||_0x4c09cf(_0x42af6c,_0x4ce646['getRanges']()))){for(const _0x3e1b63 of _0x42af6c)_0x4ce646['addRange'](_0x3e1b63);return _0x4ce646;}const _0x52810c=_0x2f9277(),_0x5f4905=_0x286a76['id'],_0x59ab43='formatBlock:'+_0x57dcb1,_0xf24097=this['_setSuggestionData']({'id':_0x52810c,'type':_0x59ab43,'data':_0x11b2cf,'createdAt':new Date(),'authorId':_0x5f4905,'attributes':_0x44fd70});for(const _0x1cf976 of _0x42af6c)this['_addSuggestionMarker'](_0x59ab43,_0x52810c,_0x5f4905,_0x1cf976,u['getMultiRangeId']());return _0xf24097;}['markDeletion'](_0x5c79bd,_0x7ebcd6=null,_0x164d87={}){if(_0x5c79bd['isCollapsed'])return null;const _0x2c09f9=this['editor']['plugins']['get']('Users')['me'],_0x50d968=new _0x13a61a(_0x5c79bd['start'],_0x5c79bd['end']);for(const {suggestion:_0xa21bf8,meta:_0x384fac}of this['_findSuggestions'](_0x50d968,'insertion'))if(_0x384fac['isOwn']&&!_0x384fac['isNextTo']){if(_0xa21bf8['isMultiRange']){const _0x61048d=_0xa21bf8['getRanges']()['filter'](_0x199c05=>'$graveyard'!=_0x199c05['root']['rootName']);_0x61048d['every'](_0x4d5bce=>_0x50d968['containsRange'](_0x4d5bce,!0x0))&&_0xa21bf8['discard']();if(_0x61048d['some'](_0x3421a4=>_0x3421a4['containsRange'](_0x50d968,!0x0))){const _0x195794=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x7ebcd6,'accept');return this['forceDefaultExecution'](()=>_0x195794([_0x50d968],null,_0x164d87)),null;}}else{const _0x21da04=_0x50d968['getIntersection'](_0xa21bf8['getFirstRange']());null!==_0x21da04&&_0xa21bf8['_onDiscard']([_0x21da04],null,_0x164d87);}}if(_0x50d968['detach'](),_0x50d968['isCollapsed']||'$graveyard'==_0x50d968['root']['rootName'])return null;let _0x393eb5=null,_0x3cc6a3=_0x50d968['start'],_0xcdd678=_0x50d968['end'];const _0x45080b=this['_findSuggestions'](_0x50d968,'deletion');for(const {suggestion:_0x529f1c,meta:_0x1b7d9d}of _0x45080b){const _0x5dbce3=this['_model']['createRange'](_0x3cc6a3,_0xcdd678);if(_0x1b7d9d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1b7d9d['containsRangeInObject']&&!_0x1b7d9d['isInsideObject'])){if(_0x529f1c['isMultiRange']){if(!zt(_0x529f1c,_0x164d87))continue;let _0x40bf29=!0x0;for(const _0x415888 of _0x529f1c['getRanges']()){if(_0x415888['containsRange'](_0x5dbce3,!0x0))return _0x529f1c;_0x5dbce3['containsRange'](_0x415888)||(_0x40bf29=!0x1);}_0x40bf29&&_0x529f1c['discard']();}else{const _0x1a3968=_0x529f1c['getFirstRange']();if(_0x1a3968['containsRange'](_0x5dbce3,!0x0))return _0x529f1c;if(!zt(_0x529f1c,_0x164d87)){_0x5dbce3['containsRange'](_0x1a3968)?_0x529f1c['removeMarkers']():_0x1a3968['containsPosition'](_0x3cc6a3)?_0x3cc6a3=_0x1a3968['end']:_0x1a3968['containsPosition'](_0xcdd678)&&(_0xcdd678=_0x1a3968['start']);continue;}_0x3cc6a3=_0x3cc6a3['isBefore'](_0x1a3968['start'])?_0x3cc6a3:_0x1a3968['start'],_0xcdd678=_0xcdd678['isAfter'](_0x1a3968['end'])?_0xcdd678:_0x1a3968['end'],_0x164d87=Object['assign']({},_0x529f1c['attributes']),_0x393eb5?_0x1a3968['start']['isBefore'](_0x393eb5['getFirstRange']()['start'])?(_0x393eb5['removeMarkers'](),_0x393eb5=_0x529f1c):_0x529f1c['removeMarkers']():_0x393eb5=_0x529f1c;}}}if(_0x393eb5)return this['_setSuggestionRange'](_0x393eb5,this['_model']['createRange'](_0x3cc6a3,_0xcdd678)),_0x393eb5;{const _0x147e78=_0x2f9277(),_0x3d137d=this['_model']['createRange'](_0x3cc6a3,_0xcdd678),_0x515874=_0x2c09f9['id'],_0x46ce62=_0x7ebcd6?'deletion:'+_0x7ebcd6:'deletion',_0x58b67c=this['_setSuggestionData']({'id':_0x147e78,'type':_0x46ce62,'createdAt':new Date(),'authorId':_0x515874,'attributes':_0x164d87});return this['_addSuggestionMarker'](_0x46ce62,_0x147e78,_0x515874,_0x3d137d),_0x58b67c;}}['markMultiRangeDeletion'](_0x5b78a9,_0x1f687e='multi',_0x2c162d={}){const _0x46e613=this['editor']['plugins']['get']('Users')['me'],_0x38a976=_0x5b78a9['map'](_0x35bd76=>new _0x13a61a(_0x35bd76['start'],_0x35bd76['end'])),_0x20a273=new Set();for(const {suggestion:_0x38728d,meta:_0x188dfc}of this['_findSuggestions'](_0x38a976,'insertion'))_0x188dfc['isOwn']&&!_0x188dfc['isNextTo']&&_0x20a273['add'](_0x38728d);for(const _0xe90e93 of _0x20a273)if(_0xe90e93['isMultiRange']){const _0x35f373=_0xe90e93['getRanges']();(!_0xe90e93['attributes']||!_0xe90e93['attributes']['skipNestingCheck'])&&(_0x35f373['every'](_0x28cbec=>_0x38a976['some'](_0x1ac86a=>_0x1ac86a['containsRange'](_0x28cbec,!0x0)))&&_0xe90e93['discard']());if(_0x38a976['every'](_0x2c8622=>_0x35f373['some'](_0x1a36d3=>_0x1a36d3['containsRange'](_0x2c8622,!0x0)))){const _0x47a2d7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1f687e,'accept');return this['forceDefaultExecution'](()=>_0x47a2d7(_0x5b78a9,null,_0x2c162d)),null;}}else{const _0xa8f8a9=_0xe90e93['getFirstRange']();_0x38a976['some'](_0x2e16ca=>_0x2e16ca['containsRange'](_0xa8f8a9,!0x0))&&_0xe90e93['discard']();if(_0x38a976['every'](_0x42ea23=>_0xa8f8a9['containsRange'](_0x42ea23,!0x0))){const _0x138038=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1f687e,'accept');return this['forceDefaultExecution'](()=>_0x138038(_0x38a976,null,_0x2c162d)),null;}}const _0x6b083e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1f687e,'join');let _0x149eea=null;for(const _0x6b76b0 of this['getSuggestions']())if(_0x6b76b0['author']['id']==_0x46e613['id']&&_0x6b76b0['isInContent']&&'deletion'==_0x6b76b0['type']&&_0x6b76b0['subType']==_0x1f687e&&zt(_0x6b76b0,_0x2c162d)&&(_0x6b083e(_0x6b76b0['getRanges'](),_0x38a976)||_0x6b083e(_0x38a976,_0x6b76b0['getRanges']()))){if(_0x149eea){if(_0x6b76b0['commentThread']&&_0x6b76b0['commentThread']['length'])continue;for(const _0x2eaee4 of _0x6b76b0['getRanges']())_0x149eea['isIntersectingWithRange'](_0x2eaee4)||_0x149eea['addRange'](_0x2eaee4);_0x6b76b0['removeMarkers']();}else{_0x149eea=_0x6b76b0;for(const _0xf8440f of _0x38a976)_0x6b76b0['isIntersectingWithRange'](_0xf8440f)||_0x6b76b0['addRange'](_0xf8440f);}}if(_0x149eea)return _0x149eea;_0x20a273['clear']();for(const {suggestion:_0x16abad,meta:_0x3b0e92}of this['_findSuggestions'](_0x38a976,'deletion'))_0x3b0e92['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3b0e92['containsRangeInObject']&&!_0x3b0e92['isInsideObject'])&&zt(_0x16abad,_0x2c162d)&&_0x20a273['add'](_0x16abad);for(const _0x3f3396 of _0x20a273){const _0x28dbca=_0x3f3396['getRanges']();if(!_0x2c162d||!_0x2c162d['skipNestingCheck']){if(_0x38a976['every'](_0x2f3564=>_0x28dbca['some'](_0x53e903=>_0x53e903['containsRange'](_0x2f3564,!0x0))))return _0x3f3396;}(!_0x3f3396['attributes']||!_0x3f3396['attributes']['skipNestingCheck'])&&(_0x28dbca['every'](_0x59cf06=>_0x38a976['some'](_0x4c3de8=>_0x4c3de8['containsRange'](_0x59cf06,!0x0)))&&_0x3f3396['discard']());}const _0x511f6c=_0x2f9277(),_0x937d81=_0x46e613['id'],_0xcd7c1d='deletion:'+_0x1f687e,_0x29c539=this['_setSuggestionData']({'id':_0x511f6c,'type':_0xcd7c1d,'createdAt':new Date(),'authorId':_0x937d81,'attributes':_0x2c162d});for(const _0x2f9132 of _0x38a976)_0x2f9132['detach'](),_0x2f9132['isCollapsed']||'$graveyard'==_0x2f9132['root']['rootName']||this['_addSuggestionMarker'](_0xcd7c1d,_0x511f6c,_0x937d81,_0x2f9132,u['getMultiRangeId']());return _0x29c539;}['markAttributeChange'](_0x2f49de,_0x33d830,_0x57180e,_0x3f582f,_0x5e5d97){if(_0x2f49de['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1c084f=this['editor']['plugins']['get']('Users')['me']['id'],_0x1a4964=Array['from'](this['_suggestions']['values']())['filter'](_0x1e6969=>'attribute'==_0x1e6969['type']&&_0x1e6969['data']['key']==_0x33d830&&_0x1e6969['isIntersectingWithRange'](_0x2f49de));if('default'===this['_trackFormatChanges']){const _0x133ed9=this['_findSuggestions'](_0x2f49de,'insertion')['filter'](({meta:_0xa83564})=>_0xa83564['isOwn']&&!_0xa83564['isInsideObject']&&!_0xa83564['isNextTo'])['map'](({suggestion:_0x158b96})=>_0x158b96);_0x1a4964['unshift'](..._0x133ed9);}const _0x4603fa=new Map([[_0x2f49de,_0x57180e]]);for(const _0xfa1b1a of _0x1a4964){const _0x2999d1='attribute'==_0xfa1b1a['type']?_0xfa1b1a['data']['oldValue']:void 0x0,_0x1fcda6=_0xfa1b1a['getFirstRange'](),_0x1f6032=Array['from'](_0x4603fa['keys']())['find'](_0x3c1f24=>_0x3c1f24['isIntersecting'](_0x1fcda6));if(!_0x1f6032)continue;const _0x5db776=_0x1f6032['getDifference'](_0x1fcda6);this['_isBlockAttribute'](_0x33d830)&&'insertion'==_0xfa1b1a['type']&&0x0!=_0x5db776['length']||(_0x4603fa['delete'](_0x1f6032),_0x5db776['forEach'](_0x8260d9=>{_0x4603fa['set'](_0x8260d9,_0x57180e);}),'insertion'!=_0xfa1b1a['type']&&_0x2999d1!=_0x3f582f&&_0x4603fa['set'](_0x1f6032['getIntersection'](_0x1fcda6),_0x2999d1));}const _0x129e90=[];for(const [_0x5a99bd,_0x14065e]of _0x4603fa){const _0x18f6b6=_0x2f9277(),_0x2d9b40={'key':_0x33d830,'oldValue':_0x14065e,'newValue':_0x3f582f};_0x33d830['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':_0x33d830});const _0x5227b6=('attribute:'+(_0x33d830+'|'+Gt({'newValue':_0x3f582f})))['substring'](0x0,0x3c),_0x186e47=this['_setSuggestionData']({'id':_0x18f6b6,'type':_0x5227b6,'data':_0x2d9b40,'createdAt':new Date(),'authorId':_0x1c084f,'attributes':_0x5e5d97});_0x129e90['push'](_0x186e47),this['_addSuggestionMarker'](_0x5227b6,_0x18f6b6,_0x1c084f,_0x5a99bd);}return _0x129e90;}['enableDefaultAttributesIntegration'](_0x2127b5){this['enableCommand'](_0x2127b5,(_0x23032f,..._0xf589a2)=>{this['_recordAttributeChanges'](()=>{_0x23032f(..._0xf589a2);});});}['registerBlockAttribute'](_0x99ea05){this['_blockAttributeKeys']['add'](_0x99ea05);}['registerInlineAttribute'](_0x1a286a){this['_inlineAttributeKeys']['add'](_0x1a286a);}['_getAttributeKey'](_0x23864c){return'attribute'==_0x23864c['type']?_0x23864c['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xf6aa64,_0x5903b5){const _0x3849e8=_0xf6aa64['getFirstMarker']();this['_model']['change'](_0x190633=>{_0x190633['updateMarker'](_0x3849e8,{'range':_0x5903b5});});}['_addThreadToSuggestion'](_0x59cfaf){const _0x3174ee=_0x59cfaf['id'],_0x1ff3ed=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3174ee)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1ff3ed,'threadId':_0x3174ee,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x31ea83=this['_commentsRepository']['getCommentThread'](_0x3174ee);_0x31ea83['unbind']('isRemovable'),_0x31ea83['isRemovable']=!0x1,_0x59cfaf['commentThread']=_0x31ea83;}['_checkSuggestionCorrectness'](_0x124a90,_0x4ede69,_0xf18f0d,_0x56a323){if(_0x124a90['type']!=_0x4ede69||_0x124a90['subType']!=_0xf18f0d||_0x124a90['creator']['id']!=_0x56a323)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x317959('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3f7957,_0x2e85ba){const _0x1cdc08=_0x3f7957['getFirstRange']();if(_0x2e85ba['isEqual'](_0x1cdc08))_0x3f7957['removeMarkers']();else{if(_0x1cdc08['containsRange'](_0x2e85ba)){const _0x4cfdf8=this['_model']['createPositionAt'](_0x2e85ba['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f7957,this['_model']['createRange'](_0x1cdc08['start'],_0x4cfdf8));const _0x478cb8=_0x2f9277(),_0x39be7d=_0x3f7957['creator']['id'],_0x4ae043=_0x3f7957['type']+':'+_0x3f7957['subType'];this['_setSuggestionData']({'id':_0x478cb8,'type':_0x4ae043,'createdAt':new Date(),'authorId':_0x39be7d,'data':_0x3f7957['data'],'attributes':_0x3f7957['attributes']});const _0x5722ed=this['_model']['createPositionAt'](_0x2e85ba['end']['parent'],'after'),_0x35f7d9=this['_model']['createRange'](_0x5722ed,_0x1cdc08['end']);this['_addSuggestionMarker'](_0x4ae043,_0x478cb8,_0x39be7d,_0x35f7d9);}else{if(_0x1cdc08['containsPosition'](_0x2e85ba['start'])){const _0x36d9a4=this['_model']['createPositionAt'](_0x2e85ba['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f7957,this['_model']['createRange'](_0x1cdc08['start'],_0x36d9a4));}else{const _0x51f27f=this['_model']['createPositionAt'](_0x2e85ba['end']['parent'],'after');this['_setSuggestionRange'](_0x3f7957,this['_model']['createRange'](_0x51f27f,_0x1cdc08['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1119fb){for(const {suggestion:_0x4ac0e9,meta:_0x56c339}of this['_findSuggestions'](_0x1119fb,'insertion')){if(!_0x56c339['isOwn'])continue;const _0xb075=_0x4ac0e9['getRanges']();for(const _0x238db7 of _0xb075)if(!_0x1119fb['getDifference'](_0x238db7)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xdc8491){const _0x3a9731=this['editor']['plugins']['get']('Users')['getUser'](_0xdc8491);if(!_0x3a9731)throw new _0x317959('track-changes-user-not-found',this);return _0x3a9731;}['_getExternalAuthor'](_0x3d652a){const _0x237f6d=this['editor']['plugins']['get']('Users'),_0x34ec72=_0x4f9a88('external:'+_0x3d652a),_0x58b582=_0x237f6d['getUser'](_0x34ec72);return _0x58b582||_0x237f6d['addUser']({'id':_0x34ec72,'name':_0x3d652a});}['_createSuggestion'](_0x4163c2,_0x964e2d,_0x54a106,_0x1ab39a,_0x367ed3){const _0x3b7794=this['_getAuthorFromId'](_0x1ab39a),_0x1acd02=this['_suggestionFactory']['buildSuggestion'](_0x4163c2,_0x964e2d,_0x54a106,_0x3b7794,_0x367ed3,_0x1649c5=>{this['_updateSuggestionData'](_0x54a106,{'attributes':_0x1649c5});const _0x3d75c9=this['getSuggestion'](_0x54a106);this['_joinWithAdjacentSuggestions'](new Set([_0x3d75c9])),this['_refreshSuggestionsChain'](new Set([_0x3d75c9]));});return this['listenTo'](_0x1acd02,'accept',()=>{this['_updateSuggestionData'](_0x54a106,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1acd02,'discard',()=>{this['_updateSuggestionData'](_0x54a106,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x54a106,_0x1acd02),this['_suggestionState']['set'](_0x1acd02,'notReady'),_0x1acd02;}['_splitMarkerName'](_0x5842c4){const _0x54757e=_0x5842c4['split'](':');return{'group':_0x54757e[0x0],'type':_0x54757e[0x1],'subType':_0x54757e['length']>=0x5?_0x54757e[0x2]:null,'id':_0x54757e['length']<0x5?_0x54757e[0x2]:_0x54757e[0x3],'authorId':_0x54757e['length']<0x5?_0x54757e[0x3]:_0x54757e[0x4],'markerCount':0x6==_0x54757e['length']?_0x54757e[0x5]:null};}['_breakSuggestionMarker'](_0x5a9449,_0x50cb5c,_0x459c16){const _0x24739e=_0x5a9449['getFirstRange'](),_0x2bff80=_0x24739e['start'],_0x13bcbf=_0x24739e['end'];this['_setSuggestionRange'](_0x5a9449,this['_model']['createRange'](_0x2bff80,_0x50cb5c));const _0x2586e9=_0x2f9277(),_0x34da01=_0x5a9449['creator']['id'],_0x46a3d4=_0x5a9449['type']+(_0x5a9449['subType']?':'+_0x5a9449['subType']:'');this['_setSuggestionData']({'id':_0x2586e9,'type':_0x46a3d4,'createdAt':new Date(),'authorId':_0x34da01,'originalSuggestionId':_0x5a9449['id'],'attributes':_0x5a9449['attributes'],'data':_0x5a9449['data']});const _0x356e58=this['_getAttributeKey'](_0x5a9449);('formatBlock'==_0x5a9449['type']||_0x356e58&&this['_isBlockAttribute'](_0x356e58))&&(_0x459c16=this['_model']['createPositionBefore'](_0x459c16['parent'])),this['_addSuggestionMarker'](_0x46a3d4,_0x2586e9,_0x34da01,this['_model']['createRange'](_0x459c16,_0x13bcbf));}['_findSuggestions'](_0x1efe4b,_0x159569=null){const _0x1a9b44=[],_0xb621b9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1efe4b)||(_0x1efe4b=[_0x1efe4b]);for(const _0x33f1f4 of this['getSuggestions']()){if(!_0x33f1f4['isInContent'])continue;if(_0x159569&&_0x33f1f4['type']!=_0x159569)continue;let _0x4fe195=!0x1;for(const _0x4c0b6c of _0x33f1f4['getRanges']()){for(const _0x2c4a5b of _0x1efe4b){const _0x5b94ed=_0x2c4a5b['start']['isEqual'](_0x4c0b6c['end'])||_0x2c4a5b['end']['isEqual'](_0x4c0b6c['start']);if(_0x5b94ed||_0x2c4a5b['getIntersection'](_0x4c0b6c)){const _0x5699b4=_0x2c4a5b['containsRange'](_0x4c0b6c)&&Ut(this['_model']['schema'],_0x4c0b6c['start'],_0x2c4a5b),_0x4a1225=_0x4c0b6c['containsRange'](_0x2c4a5b)&&Ut(this['_model']['schema'],_0x2c4a5b['start'],_0x4c0b6c);_0x1a9b44['push']({'suggestion':_0x33f1f4,'meta':{'isOwn':_0xb621b9==_0x33f1f4['author'],'isNextTo':_0x5b94ed,'isInsideObject':_0x5699b4,'containsRangeInObject':_0x4a1225}}),_0x4fe195=!0x0;break;}}if(_0x4fe195)break;}}return _0x1a9b44;}['_addSuggestionMarker'](_0x1de564,_0x78c712,_0x4c46e1,_0x3f1992,_0x5458fb){this['_model']['change'](_0x1615df=>{let _0x487251='suggestion:'+_0x1de564+':'+_0x78c712+':'+_0x4c46e1;_0x5458fb&&(_0x487251=_0x487251+':'+_0x5458fb),_0x1615df['addMarker'](_0x487251,{'range':_0x3f1992,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x89a74a){const _0x5d474f=_0x89a74a['previous'],_0x14f4a9=_0x89a74a['next'];_0x89a74a['previous']=null,_0x89a74a['next']=null,null!=_0x5d474f&&_0x5d474f['next']==_0x89a74a&&(_0x5d474f['next']=_0x14f4a9),null!=_0x14f4a9&&_0x14f4a9['previous']==_0x89a74a&&(_0x14f4a9['previous']=_0x5d474f),'ready'==this['_suggestionState']['get'](_0x89a74a)&&(this['_suggestionState']['set'](_0x89a74a,'removed'),this['fire']('suggestionUnloaded',_0x89a74a,_0x5d474f,_0x14f4a9));}['_setSuggestionData'](_0x398c1a){const _0x43fe49=_0x398c1a['id'],_0xb99aca=this['addSuggestionData'](_0x398c1a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2117eb=this['editor']['plugins']['get']('PendingActions'),_0x848e6e=_0xb99aca['hasComments'],_0xea6daf=_0xb99aca['subType']?_0xb99aca['type']+':'+_0xb99aca['subType']:_0xb99aca['type'],_0xca4ae9=this['editor']['locale'],_0x2be7e2=_0x2117eb['add'](o(_0xca4ae9,'PENDING_ACTION_SUGGESTION')),_0x4930a3={'id':_0x43fe49,'type':_0xea6daf,'hasComments':_0x848e6e,'data':_0x398c1a['data']||null,'originalSuggestionId':_0x398c1a['originalSuggestionId']||null,'attributes':_0xb99aca['attributes']};this['_adapter']['addSuggestion'](_0x4930a3)['then'](_0x5371bc=>{_0xb99aca['_saved']=!0x0,_0x2117eb['remove'](_0x2be7e2),_0x5371bc&&_0x5371bc['createdAt']&&(this['_suggestions']['get'](_0x43fe49)['createdAt']=_0x5371bc['createdAt']);})['catch'](_0x22190b=>{throw _0x39feda('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xb99aca['discard']();}),_0xb99aca['stopListening'](),this['_suggestions']['delete'](_0xb99aca['id']),this['_suggestionState']['delete'](_0xb99aca),_0x22190b;});}return _0xb99aca;}['_isBlockAttribute'](_0x5a4e3b){return this['_blockAttributeKeys']['has'](_0x5a4e3b);}['_updateSuggestionData'](_0x5d96d6,_0x3eab6b){const _0x5d8cb4=this['editor']['plugins']['get']('PendingActions'),_0x546373=this['getSuggestion'](_0x5d96d6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x546373['_saved']){const _0x3bcc71=_0x5d8cb4['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5d96d6,_0x3eab6b)['then'](()=>{_0x5d8cb4['remove'](_0x3bcc71);});}else _0x546373['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5d96d6,_0x3eab6b);});}}['_getSuggestionData'](_0xaea3fb){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x317959('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xaea3fb);}['_handleNewSuggestionMarker'](_0x380901){const {id:_0x1f71c4,type:_0x576cd0,subType:_0x241e86,authorId:_0x197ebe}=this['_splitMarkerName'](_0x380901),_0x5f0305=this['_suggestions']['get'](_0x1f71c4)||this['_createSuggestion'](_0x576cd0,_0x241e86,_0x1f71c4,_0x197ebe,{});switch(this['_checkSuggestionCorrectness'](_0x5f0305,_0x576cd0,_0x241e86,_0x197ebe),this['_suggestionState']['get'](_0x5f0305)){case'notReady':this['_getSuggestionData'](_0x1f71c4)['then'](_0x403ac4=>{let _0x553ee9=Promise['resolve']();_0x403ac4['hasComments']&&(_0x553ee9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1f71c4})),_0x553ee9['then'](()=>{this['addSuggestionData'](_0x403ac4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5f0305,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1f71c4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5f0305,'ready'),this['fire']('suggestionLoaded',_0x5f0305);break;case'ready':this['fire']('suggestionChanged',_0x5f0305);}return _0x5f0305['addMarkerName'](_0x380901),_0x5f0305;}['_refreshSuggestionsChain'](_0x5925c3){const _0x54dd43=Array['from'](_0x5925c3),_0xb9c2aa=_0x54dd43['filter'](_0x119375=>'attribute'==_0x119375['type']);this['_refreshAttributeSuggestionsChain'](_0xb9c2aa);const _0x16fbd0=_0x54dd43['filter'](_0x1d31c1=>!_0x1d31c1['isMultiRange']&&'attribute'!=_0x1d31c1['type']),_0x467b18=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x344b57=>!_0x344b57['isMultiRange']&&'attribute'!=_0x344b57['type']),_0x4d564f=_0x467b18['filter'](_0x312308=>!_0x5925c3['has'](_0x312308)),_0x3b0ead=new Map(_0x467b18['map'](_0x4ea998=>[_0x4ea998,this['_suggestionFactory']['getSuggestionCallback'](_0x4ea998['type'],_0x4ea998['subType'],'chain')])),_0x1c654e=new Map(_0x467b18['map'](_0x3eebc8=>[_0x3eebc8,_0x3eebc8['getFirstRange']()])),_0xb6a03e=new Set(),_0x52f3cf=new Set();for(let _0x582bc6=0x0;_0x582bc6<_0x16fbd0['length'];_0x582bc6++)_0x26b1ce(_0x16fbd0[_0x582bc6],_0x16fbd0,_0x582bc6+0x1);for(let _0x55a784=0x0;_0x55a784<_0x16fbd0['length'];_0x55a784++)_0x26b1ce(_0x16fbd0[_0x55a784],_0x4d564f,0x0);const _0xce401d=new Set();for(let _0x391572=0x0;_0x391572<_0x16fbd0['length'];_0x391572++){const _0x3fbb0c=_0x16fbd0[_0x391572];!_0x52f3cf['has'](_0x3fbb0c)&&_0x3fbb0c['previous']&&(_0xce401d['add'](_0x3fbb0c['previous']),_0x3fbb0c['previous']['next']===_0x3fbb0c&&(_0x3fbb0c['previous']['next']=null),_0x3fbb0c['previous']=null),!_0xb6a03e['has'](_0x3fbb0c)&&_0x3fbb0c['next']&&(_0xce401d['add'](_0x3fbb0c['next']),_0x3fbb0c['next']['previous']===_0x3fbb0c&&(_0x3fbb0c['next']['previous']=null),_0x3fbb0c['next']=null);}function _0x26b1ce(_0x4130f9,_0x231d7e,_0x5d17d6){for(let _0xb10064=_0x5d17d6;_0xb10064<_0x231d7e['length'];_0xb10064++){const _0x53160b=_0x1dabe9(_0x4130f9,_0x231d7e[_0xb10064]);_0x53160b&&(_0x53160b[0x0]['next']=_0x53160b[0x1],_0x53160b[0x1]['previous']=_0x53160b[0x0],_0xb6a03e['add'](_0x53160b[0x0]),_0x52f3cf['add'](_0x53160b[0x1]));}}function _0x1dabe9(_0x2dd9f7,_0x186237){if(_0x2dd9f7['author']['id']!==_0x186237['author']['id'])return null;const _0x638134=_0x3b0ead['get'](_0x2dd9f7)(_0x2dd9f7,_0x186237,_0x1c654e['get'](_0x2dd9f7),_0x1c654e['get'](_0x186237));if(!_0x638134)return null;return _0x3b0ead['get'](_0x186237)(_0x2dd9f7,_0x186237,_0x1c654e['get'](_0x2dd9f7),_0x1c654e['get'](_0x186237))?_0x638134[0x1]['commentThread']&&_0x638134[0x1]['commentThread']['length']?null:_0x638134:null;}_0xce401d['size']&&this['_refreshSuggestionsChain'](_0xce401d);}['_refreshAttributeSuggestionsChain'](_0x390634){if(0x0==_0x390634['length'])return;const _0x1ad64b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fbbfd=>'attribute'==_0x1fbbfd['type']&&_0x1fbbfd['_isDataLoaded']),_0x1c371a=[],_0x56a7f9=new Map();for(const _0x59c021 of _0x1ad64b){const _0x2ebc08=_0x4f9a88(_0x59c021['attributes']);_0x56a7f9['has'](_0x2ebc08)||(_0x56a7f9['set'](_0x2ebc08,_0x1c371a['length']),_0x1c371a['push']([]));const _0x34183d=_0x56a7f9['get'](_0x2ebc08);_0x1c371a[_0x34183d]['push'](_0x59c021);}!(function(){_0x1c371a['sort']((_0x118479,_0x5e0776)=>{const _0x4db245=_0x118479[0x0]['createdAt'],_0x1fe97d=_0x5e0776[0x0]['createdAt'];return _0x4db245==_0x1fe97d?_0x118479[0x0]['attributes']['groupId']<_0x5e0776[0x0]['attributes']['groupId']?-0x1:0x1:_0x4db245<_0x1fe97d?-0x1:0x1;});for(const _0xdb546b of _0x1c371a)_0xdb546b['sort']((_0x35d5c5,_0x593469)=>_0x35d5c5['id']<_0x593469['id']?-0x1:0x1);}());for(let _0x3cf65e=0x0;_0x3cf65e<_0x1c371a['length'];_0x3cf65e++){if(0x0==_0x1c371a[_0x3cf65e]['length'])continue;const _0x13e305=[];for(let _0x363d5a=_0x3cf65e+0x1;_0x363d5a<_0x1c371a['length'];_0x363d5a++)0x0!=_0x1c371a[_0x363d5a]['length']&&_0x415b1e(_0x1c371a[_0x3cf65e],_0x1c371a[_0x363d5a])&&_0x13e305['push'](_0x363d5a);for(const _0x4ee318 of _0x13e305)_0x1c371a[_0x3cf65e]=_0x1c371a[_0x3cf65e]['concat'](_0x1c371a[_0x4ee318]),_0x1c371a[_0x4ee318]=[];}for(const _0x3db1f0 of _0x1c371a)for(let _0x139d4c=0x0;_0x139d4c<_0x3db1f0['length'];_0x139d4c++){const _0x55200e=_0x3db1f0[_0x139d4c+0x1]||null;_0x3db1f0[_0x139d4c]['next']!==_0x55200e&&(_0x3db1f0[_0x139d4c]['next']=_0x55200e);}for(const _0xb273bc of _0x1c371a)for(let _0x2562c0=0x0;_0x2562c0<_0xb273bc['length'];_0x2562c0++){const _0x348627=_0xb273bc[_0x2562c0-0x1]||null;_0xb273bc[_0x2562c0]['previous']!==_0x348627&&(_0xb273bc[_0x2562c0]['previous']=_0x348627);}function _0x415b1e(_0x4f9449,_0x3d76f3){if(_0x4f9449[0x0]['attributes']['groupId']!==_0x3d76f3[0x0]['attributes']['groupId']&&_0x4f9449[0x0]['author']!==_0x3d76f3[0x0]['author'])return!0x1;if(!function(_0x1edfbb,_0x2fbacf){if(!_0x1edfbb['hasComments']&&!_0x2fbacf['hasComments'])return!0x0;if(_0x1edfbb['hasComments']&&_0x2fbacf['hasComments'])return!0x1;if(_0x1edfbb['hasComments']&&_0x2fbacf['createdAt']<_0x1edfbb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2fbacf['hasComments']&&_0x1edfbb['createdAt']<_0x2fbacf['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4f9449[0x0],_0x3d76f3[0x0]))return!0x1;const _0x53a1c0=xt(_0x4f9449[0x0]['attributes'],'groupId'),_0x34e73c=xt(_0x3d76f3[0x0]['attributes'],'groupId');if(!_0x37e249(_0x53a1c0,_0x34e73c))return!0x1;return!!_0x4f9449['every'](_0xdcecb6=>_0x3d76f3['some'](_0x489291=>_0xdcecb6['getFirstRange']()['isEqual'](_0x489291['getFirstRange']())))&&_0x3d76f3['every'](_0x1323d7=>_0x4f9449['some'](_0x2caaa7=>_0x1323d7['getFirstRange']()['isEqual'](_0x2caaa7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x22a631){const _0x21ff4c=Array['from'](_0x22a631),_0x1a2749=this['getSuggestions']({'skipNotAttached':!0x0}),_0x338976=_0x1a2749['filter'](_0x339b00=>!_0x22a631['has'](_0x339b00)),_0x52a91a=new Map(_0x21ff4c['map'](_0x105a7c=>[_0x105a7c,this['_suggestionFactory']['getSuggestionCallback'](_0x105a7c['type'],_0x105a7c['subType'],'join')])),_0x2e4446=new Map(_0x1a2749['map'](_0x2098c7=>[_0x2098c7,_0x2098c7['getRanges']()]));for(let _0x9e91d4=0x0;_0x9e91d4<_0x21ff4c['length'];_0x9e91d4++){if(_0x42495e(this,_0x21ff4c[_0x9e91d4],_0x21ff4c,_0x9e91d4+0x1))return!0x0;}for(let _0x49b177=0x0;_0x49b177<_0x21ff4c['length'];_0x49b177++){if(_0x42495e(this,_0x21ff4c[_0x49b177],_0x338976,0x0))return!0x0;}return!0x1;function _0x42495e(_0x368c5c,_0x301efb,_0x23dca2,_0x4f172c){for(let _0x3993e6=_0x4f172c;_0x3993e6<_0x23dca2['length'];_0x3993e6++){const _0x3f7876=_0x23dca2[_0x3993e6];if(_0x3f7876['type']!==_0x301efb['type']||_0x3f7876['author']['id']!==_0x301efb['author']['id']||_0x3f7876['subType']!==_0x301efb['subType'])continue;if(!qt(_0x301efb,_0x3f7876))continue;if('attribute'==_0x301efb['type']&&_0x301efb['data']['oldValue']!=_0x3f7876['data']['oldValue'])continue;if('attribute'==_0x301efb['type']&&_0x368c5c['_isBlockAttribute'](_0x301efb['data']['key']))continue;if('formatBlock'==_0x301efb['type']){const _0x3e9b59=_0x368c5c['editor']['model'],_0x301431=_0x301efb['getContainedElement']();if(_0x301431&&(_0x3e9b59['schema']['isObject'](_0x301431)||_0x3e9b59['schema']['isLimit'](_0x301431)))continue;}const _0xc9c249=_0x52a91a['get'](_0x301efb),_0x834e8f=_0x2e4446['get'](_0x301efb),_0x556c3a=_0x2e4446['get'](_0x3f7876),_0x3ddc7d=_0x301efb['commentThread']&&_0x301efb['commentThread']['length'],_0x260779=_0x3f7876['commentThread']&&_0x3f7876['commentThread']['length'];if(!_0x3ddc7d&&_0xc9c249(_0x556c3a,_0x834e8f))return _0x368c5c['_joinSuggestions'](_0x3f7876,_0x301efb),_0x2e4446['delete'](_0x301efb),!0x0;if(!_0x260779&&_0xc9c249(_0x834e8f,_0x556c3a))return _0x368c5c['_joinSuggestions'](_0x301efb,_0x3f7876),_0x2e4446['delete'](_0x3f7876),!0x0;}return!0x1;}}['_joinSuggestions'](_0x187478,_0x29f64d){if(_0x187478['isMultiRange']){for(const _0x3ba103 of _0x29f64d['getRanges']())_0x187478['addRange'](_0x3ba103);}else{const _0x598e11=_0x29f64d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x187478,this['_model']['createRange'](_0x187478['getFirstRange']()['start'],_0x598e11));}_0x29f64d['removeMarkers']();}['_getMarkerAnnouncementText'](_0x476ddf,_0x1b76e5,_0x4998ce){const _0x76324f=_0x476ddf['startsWith']('format')||_0x476ddf['startsWith']('attribute')?'FORMATTING':_0x476ddf['toUpperCase']();return o(this['editor']['locale'],_0x1b76e5+'_'+_0x76324f+'_SUGGESTION_ANNOUNCEMENT',_0x4998ce);}['_initAriaMarkerChangeAnnouncements'](){const _0xf2980f=this['editor'];if(!_0xf2980f['ui'])return;const {ariaLiveAnnouncer:_0x157ee2}=_0xf2980f['ui'];_0x423cad(this['_model'],({left:_0x35d528,entered:_0x3066cf})=>{for(const _0x1247cf of _0x35d528){const {group:_0x445f30,type:_0x36372d}=this['_splitMarkerName'](_0x1247cf['name']);if('suggestion'===_0x445f30){_0x157ee2['announce'](this['_getMarkerAnnouncementText'](_0x36372d,'LEAVE'));break;}}for(const _0x19fcde of _0x3066cf){const {group:_0x1c8aa7,type:_0x34fde4}=this['_splitMarkerName'](_0x19fcde['name']);if('suggestion'===_0x1c8aa7){_0x157ee2['announce'](this['_getMarkerAnnouncementText'](_0x34fde4,'ENTER',_0x3ebc74(_0x30a128)));break;}}});}['_processAttributeChanges'](_0x58272d){if(this['_recordAttributeSuggestions'])return!0x1;const _0xba50a4=this['editor'],_0x900485=_0xba50a4['model']['document']['differ']['getChanges']();if(0x0==_0x900485['length'])return!0x1;const _0x443aad=[],_0xe61a70=_0x900485['filter'](_0x5f21cd=>'attribute'==_0x5f21cd['type']),_0x5c6b6d=_0x900485['filter'](_0x120dd6=>'insert'==_0x120dd6['type']&&'$text'!=_0x120dd6['name']),_0x3aa19b=_0x900485['filter'](_0x1727ab=>'remove'==_0x1727ab['type']&&'$text'!=_0x1727ab['name']);for(const _0xc64485 of _0xe61a70)_0x443aad['push']({'key':_0xc64485['attributeKey'],'newValue':_0xc64485['attributeNewValue'],'oldValue':_0xc64485['attributeOldValue'],'range':Lt(_0xc64485['range'],_0xba50a4['model'])});for(const _0xfd1ec2 of _0x5c6b6d){const _0x11dd16=_0x3aa19b['find'](_0x542cd5=>_0x542cd5['position']['isEqual'](_0xfd1ec2['position']));_0x11dd16&&_0x443aad['push']({'key':m,'newValue':_0xfd1ec2['name'],'oldValue':_0x11dd16['name'],'range':_0xba50a4['model']['createRangeOn'](_0xfd1ec2['position']['nodeAfter'])});}return 0x0!=_0x443aad['length']&&this['_reduceExistingSuggestions'](_0x58272d,_0x443aad);}['_processAttributeSuggestions'](_0x2e40fa){let _0x3e901f=!0x1;const _0x362940=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x589ba8=>_0x589ba8['data']['newRange']&&_0x589ba8['name']['startsWith']('suggestion:attribute:'));for(const _0x2bbf24 of _0x362940){const {subType:_0x3cae21,id:_0x3c941f}=this['_splitMarkerName'](_0x2bbf24['name']),_0x503f6f=_0x3cae21['split']('|')[0x0];for(const _0x56a7b2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x56a7b2['id']!=_0x3c941f&&'attribute'==_0x56a7b2['type']&&_0x56a7b2['data']&&_0x56a7b2['data']['key']==_0x503f6f&&_0x56a7b2['getFirstRange']()['isIntersecting'](_0x2bbf24['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x56a7b2,_0x2bbf24['data']['newRange'],_0x2e40fa),_0x3e901f=!0x0);}return _0x3e901f;}['_recordAttributeChanges'](_0x4940af){this['_recordAttributeSuggestions']=!0x0,_0x4940af();}['_isRegisteredAttribute'](_0x533364){const _0x3a946c=this['_isBlockAttribute'](_0x533364),_0x219ca1=this['_inlineAttributeKeys']['has'](_0x533364);return _0x3a946c||_0x219ca1;}['_reduceExistingSuggestions'](_0x4f09a9,_0x42da35){if(0x0==_0x42da35['length'])return!0x1;let _0x55bb07=!0x1;for(const _0x96b82a of _0x42da35){const _0x14c397=this['_findSuggestions'](_0x96b82a['range'],'attribute')['filter'](_0x374932=>!_0x374932['meta']['isNextTo'])['map'](_0x420200=>_0x420200['suggestion']),_0x201bd2=_0x4f9a88({'newValue':_0x96b82a['newValue']});_0x14c397['filter'](_0x27c3aa=>{const [_0x4e9c4c,_0x41811b]=_0x27c3aa['subType']['split']('|');return _0x4e9c4c==_0x96b82a['key']&&_0x41811b!=_0x201bd2;})['forEach'](_0x449b40=>{this['_reduceSuggestionAttributeRange'](_0x449b40,_0x96b82a['range'],_0x4f09a9),_0x55bb07=!0x0;});}return _0x55bb07;}['_reduceSuggestionAttributeRange'](_0x294550,_0x440e8d,_0x15ba61){const _0x411b76=_0x294550['getFirstRange']()['getDifference'](_0x440e8d);0x0!==_0x411b76['length']?0x1!==_0x411b76['length']?this['_breakSuggestionMarker'](_0x294550,_0x440e8d['start'],_0x440e8d['end']):this['_setSuggestionRange'](_0x294550,_0x411b76[0x0]):_0x15ba61['removeMarker'](_0x294550['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x414801){this['_editor']=_0x414801,this['_model']=_0x414801['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5873f8,_0x206449,_0x21b243,_0x3e8116,_0x5e9d47,_0x3fe97a){return new u(this['_model'],{'type':_0x5873f8,'subType':_0x206449,'id':_0x21b243,'author':_0x3e8116,'creator':_0x3e8116,'attributes':_0x5e9d47,'onAttributesChange':_0x3fe97a,'onAccept':(..._0x253779)=>this['getSuggestionCallback'](_0x5873f8,_0x206449,'accept')(..._0x253779),'onDiscard':(..._0xbd8e17)=>this['getSuggestionCallback'](_0x5873f8,_0x206449,'discard')(..._0xbd8e17)});}['registerCustomCallback'](_0x18bf12,_0x54ea3b,_0x59f679,_0x4065fb){const _0x525bc2=_0x18bf12+':'+_0x54ea3b+':'+_0x59f679;this['_customCallbacks']['set'](_0x525bc2,_0x4065fb);}['getSuggestionCallback'](_0x44fd49,_0x2dcc28,_0x3150cb){const _0x1eba61=_0x44fd49+':'+_0x2dcc28+':'+_0x3150cb;return this['_customCallbacks']['get'](_0x1eba61)||this['_defaultCallbacks']['get'](_0x44fd49+':'+_0x3150cb);}['_registerDefaultCallbacks'](){const _0x11c3f9=()=>!0x1,_0x4357c4=_0x2df243=>{_0x2df243['sort']((_0x2ab2e6,_0x847fa4)=>_0x2ab2e6['start']['isBefore'](_0x847fa4['start'])?0x1:-0x1),this['_model']['change'](_0x9d19de=>{for(const _0x3f3d34 of _0x2df243){let _0x2e87a7;_0x2e87a7=_0x3f3d34['end']['isAtEnd']&&_0x3f3d34['end']['parent']==_0x3f3d34['start']['nodeAfter']?_0x9d19de['createSelection'](_0x3f3d34['start']['nodeAfter'],'on'):_0x9d19de['createSelection'](_0x3f3d34),this['_model']['deleteContent'](_0x2e87a7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x9132cd=(_0x316974,_0x29809e)=>{_0x29809e&&this['_model']['change'](_0x5d24b0=>{const {commandName:_0x30d21f,commandParams:_0x142efa=[]}=_0x29809e,_0x133896=_0x316974['map'](_0x42ce41=>(Vt(_0x42ce41)&&(_0x42ce41=this['_model']['createRange'](_0x42ce41['end'])),_0x42ce41))['filter'](_0x2934e3=>'$graveyard'!==_0x2934e3['root']['rootName']);if(_0x133896['length']<0x1)return;const _0x51aa3e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2773fa=>_0x13a61a['fromRange'](_0x2773fa));_0x5d24b0['setSelection'](_0x133896);for(const _0x5e2457 of this['_editor']['commands']['commands']())_0x5e2457['refresh']();_0x142efa['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x30d21f,..._0x142efa);const _0x3d8b7f=_0x51aa3e['filter'](_0x2877e2=>'$graveyard'!=_0x2877e2['root']['rootName']);_0x3d8b7f['length']>0x0&&_0x5d24b0['setSelection'](_0x3d8b7f);for(const _0x1e8bef of _0x51aa3e)_0x1e8bef['detach']();});},_0x46bf79=(_0x1f8a1b,_0x5d088f)=>0x1==_0x1f8a1b['length']&&0x1==_0x5d088f['length']&&_0x1f8a1b[0x0]['end']['isEqual'](_0x5d088f[0x0]['start']),_0x1e5af3=(_0x13cdbb,_0x4a75c7,_0x122146,_0x52f67e)=>Ht(_0x13cdbb,_0x4a75c7,_0x122146,_0x52f67e)?[_0x13cdbb,_0x4a75c7]:Ht(_0x4a75c7,_0x13cdbb,_0x52f67e,_0x122146)?[_0x4a75c7,_0x13cdbb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x11c3f9),this['_defaultCallbacks']['set']('insertion:discard',_0x4357c4),this['_defaultCallbacks']['set']('insertion:join',_0x46bf79),this['_defaultCallbacks']['set']('insertion:chain',_0x1e5af3),this['_defaultCallbacks']['set']('deletion:accept',_0x4357c4),this['_defaultCallbacks']['set']('deletion:discard',_0x11c3f9),this['_defaultCallbacks']['set']('deletion:join',_0x46bf79),this['_defaultCallbacks']['set']('deletion:chain',_0x1e5af3),this['_defaultCallbacks']['set']('formatInline:accept',_0x9132cd),this['_defaultCallbacks']['set']('formatInline:discard',_0x11c3f9),this['_defaultCallbacks']['set']('formatInline:join',_0x46bf79),this['_defaultCallbacks']['set']('formatInline:chain',_0x11c3f9),this['_defaultCallbacks']['set']('formatBlock:accept',_0x9132cd),this['_defaultCallbacks']['set']('formatBlock:discard',_0x11c3f9),this['_defaultCallbacks']['set']('formatBlock:join',_0x46bf79),this['_defaultCallbacks']['set']('formatBlock:chain',_0x11c3f9),this['_defaultCallbacks']['set']('attribute:accept',_0x11c3f9),this['_defaultCallbacks']['set']('attribute:discard',(_0x3e0ab0,_0x249e97)=>{if(!_0x249e97)return;const _0x3b911a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2f7e07=>{if(_0x249e97['key']==m)for(const _0x29bcf8 of _0x3e0ab0){const _0x242aa2=_0x29bcf8['start']['nodeAfter'],_0x170aad=_0x249e97['oldValue'];_0x2f7e07['rename'](_0x242aa2,_0x170aad);}else{if(_0x3b911a['_isBlockAttribute'](_0x249e97['key'])){for(const _0x3f884b of _0x3e0ab0)void 0x0!==_0x249e97['oldValue']?_0x2f7e07['setAttribute'](_0x249e97['key'],_0x249e97['oldValue'],_0x3f884b['start']['nodeAfter']):_0x2f7e07['removeAttribute'](_0x249e97['key'],_0x3f884b['start']['nodeAfter']);}else{for(const _0x3e08d4 of _0x3e0ab0)_0x249e97['oldValue']?_0x2f7e07['setAttribute'](_0x249e97['key'],_0x249e97['oldValue'],_0x3e08d4):_0x2f7e07['removeAttribute'](_0x249e97['key'],_0x3e08d4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x46bf79);}}function Ut(_0x23606d,_0x5bcca3,_0x526ef9){for(const _0x25abfb of _0x5bcca3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x25abfb['root']==_0x25abfb)return!0x1;if(!_0x526ef9['containsItem'](_0x25abfb))return!0x1;if(_0x23606d['isObject'](_0x25abfb)||_0x23606d['isLimit'](_0x25abfb))return!0x0;}return!0x1;}function Vt(_0x5c9fcd){return _0x5c9fcd['end']['parent']==_0x5c9fcd['start']['nodeAfter']&&_0x5c9fcd['end']['isAtStart'];}function Pt(_0x1c6073,_0x2e7ed6,_0x2976d7,_0x270feb){const _0x266307=_0xe1c1f2=>!_0xe1c1f2['item']['is']('$textProxy')&&!_0x270feb['isObject'](_0xe1c1f2['item']),_0xe642e1=_0x1c6073['start']['getLastMatchingPosition'](_0x266307),_0x3b5909=_0x1c6073['end']['getLastMatchingPosition'](_0x266307,{'direction':'backward'});return(!_0x1c6073['start']['isEqual'](_0xe642e1)||!_0x1c6073['end']['isEqual'](_0x3b5909))&&(_0xe642e1['isBefore'](_0x3b5909)?_0x2976d7['updateMarker'](_0x2e7ed6,{'range':_0x2976d7['createRange'](_0xe642e1,_0x3b5909)}):_0x2976d7['removeMarker'](_0x2e7ed6),!0x0);}function Gt(_0x4ca70a){return _0x4f9a88(_0x4ca70a);}function Ft(_0x5c6231){const _0x3ed56b=_0x5c6231['start']['nodeAfter'];return _0x3ed56b&&_0x3ed56b['is']('element');}function Lt(_0x25f18c,_0x4f4d56){return null==_0x25f18c['end']['nodeBefore']&&_0x25f18c['end']['parent']==_0x25f18c['start']['nodeAfter']?Jt(_0x25f18c['start']['nodeAfter'],_0x4f4d56):_0x25f18c;}function Jt(_0x352dab,_0x4435a5){const _0x4e8af0=_0x4435a5['schema']['isObject'](_0x352dab)||_0x4435a5['schema']['isSelectable'](_0x352dab);return _0x4435a5['createRange'](_0x4435a5['createPositionAt'](_0x352dab,'before'),_0x4e8af0?_0x4435a5['createPositionAfter'](_0x352dab):_0x4435a5['createPositionAt'](_0x352dab,'end'));}function Ht(_0x3ed51b,_0x50d5dd,_0x2e4278,_0x368450){return!!qt(_0x3ed51b,_0x50d5dd)&&_0x2e4278['end']['isEqual'](_0x368450['start']);}function qt(_0x39647f,_0x1273c4){if(!_0x39647f['_isDataLoaded']||!_0x1273c4['_isDataLoaded'])return!0x1;const _0x1e30c9=new Set(Object['keys'](_0x39647f['attributes'])),_0x331855=new Set(Object['keys'](_0x1273c4['attributes']));if(_0x1e30c9['delete']('groupId'),_0x331855['delete']('groupId'),0x0==_0x1e30c9['size']&&0x0==_0x331855['size'])return!0x0;if(_0x1e30c9['size']!=_0x331855['size'])return!0x1;const _0x460086={..._0x39647f['attributes']},_0x41c161={..._0x1273c4['attributes']};return delete _0x460086['groupId'],delete _0x41c161['groupId'],JSON['stringify'](_0x460086)==JSON['stringify'](_0x41c161);}function zt(_0x145f04,_0x6fd32f){const _0x4469f8=Kt(_0x145f04['attributes']),_0x392c75=Kt(_0x6fd32f);if(!_0x145f04['_isDataLoaded'])return!0x1;for(const _0x5dd9ed of Object['keys'](_0x392c75))if(!_0x37e249(_0x4469f8[_0x5dd9ed],_0x392c75[_0x5dd9ed]))return!0x1;return!0x0;}function Kt(_0x149b55){const _0x214c65=Object['assign']({},_0x149b55);return delete _0x214c65['skipNestingCheck'],delete _0x214c65['tablePasteChainId'],_0x214c65;}class ge extends/* #__PURE__ -- @preserve */
25
+ _0xe598a6(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x16f07b,_0x36a5ea,_0x1bd23e,_0x16779e){super(),this['model']=_0x36a5ea,this['view']=_0x1bd23e,this['commentThreadController']=_0x16779e,this['_editor']=_0x16f07b,this['_acceptCommand']=_0x16f07b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x16f07b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xdb1db8,_0x539718)=>_0xdb1db8||_0x539718),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5d5b03=>_0x5d5b03&&this['_editor']['model']['canEditAt'](_0x36a5ea['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x272cc9=>_0x272cc9&&this['_editor']['model']['canEditAt'](_0x36a5ea['getRanges']())),this['_pendingAction']=null,_0x1bd23e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1bd23e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1bd23e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1bd23e,'change:isDirty',()=>{_0x1bd23e['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 _0x1da127=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1da127);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x51a650{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x31593f,_0x2776ab,_0xdf5879,_0x40a3e0){super(_0x31593f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3ec1ff(_0x31593f,o(_0x31593f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2776ab['authoredAt']),this['bind']('authoredAt')['to'](_0x2776ab),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',_0x2776ab,'authoredAt',this,'descriptionParts',(_0x630e3c,_0x1fcc35,_0x83e4c7)=>{const _0x35063f=_0x83e4c7['map'](_0x5c688e=>ns(_0x5c688e['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x630e3c-0x1,_0x2776ab['author']['name'],_0x1fcc35?_0x40a3e0['formatDateTime'](_0x1fcc35):'',new DOMParser()['parseFromString'](_0x35063f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x369734(),this['focusTracker']=new _0x25ded3(),this['keystrokes']=new _0xae2b9e(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x211e8c=>_0x211e8c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2776ab,this['_localUser']=_0xdf5879,this['_config']=_0x40a3e0,_0x40a3e0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2277c7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x43cf67}=this['_config'];this['commentsListView']=new _0x43cf67(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',_0x85f989=>_0x85f989+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1a75ef,_0x24dcb9)=>_0x1a75ef||!!_0x24dcb9);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x592246}=this['_config'],_0x7573a4=new _0x592246(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4404ee=_0x7573a4['commentInputView'];return _0x7573a4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4404ee,'value',(_0x119d8b,_0xbf95f3,_0x157211)=>!!_0x157211||_0x119d8b&&!_0xbf95f3),_0x4404ee['on']('submit',(_0x38aed9,_0xef8a5e)=>{this['fire']('addComment',_0xef8a5e),_0x4404ee['editor']['setData']('');}),_0x4404ee['on']('cancel',()=>this['focus']()),_0x4404ee['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x7573a4;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x56afb6,_0x14aee2,_0x321440,_0x2d04c2){super(_0x56afb6,_0x14aee2,_0x321440,_0x2d04c2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x35bb6f=>_0x35bb6f&&_0x35bb6f[0x0]?_0x35bb6f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x50d284,_0x2d8d35)=>{let _0x6c79fe='';for(const _0x105eac of _0x50d284)_0x6c79fe+='<p>'+ns(_0x105eac['content'],_0x105eac['color'])+'</p>';return _0x2d8d35?_0x6c79fe:ti(_0x6c79fe,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2d04c2['SuggestionView'](_0x56afb6,_0x14aee2,{'formatDateTime':_0x2d04c2['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 _0x5e5c74=this['bindTemplate'],_0x19d469=[this['suggestionView']];return this['commentsListView']&&_0x19d469['push'](this['commentsListView']),this['commentThreadInputView']&&_0x19d469['push'](this['commentThreadInputView']),_0x19d469['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5e5c74['if']('isActive','ck-suggestion-wrapper--active'),_0x5e5c74['to']('type',_0x18602c=>'ck-suggestion-'+_0x18602c),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':_0x5e5c74['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x19d469};}['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 ue extends _0x51a650{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x42df65,_0xb144a,_0x3f48b3){super(_0x42df65),this['_model']=_0xb144a,this['_config']=_0x3f48b3,this['set']('description',''),this['bind']('authoredAt')['to'](_0xb144a),this['acceptButton']=this['_createButton'](o(_0x42df65,'Accept\x20suggestion'),_0x9b907a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x42df65,'Discard\x20suggestion'),_0x9b907a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x491b6c(_0x42df65,_0xb144a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x369734([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x25ded3(),this['keystrokes']=new _0xae2b9e(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4b71f8=>_0x4b71f8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x148d02=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x148d02['innerHTML']=this['description'],this['on']('change:description',(_0x19cbf9,_0x18682b,_0x3227d7)=>{_0x148d02['innerHTML']=_0x3227d7;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x40f5b3=this['bindTemplate'],_0xf40c54=[{'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':_0x40f5b3['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x40f5b3['to']('authoredAt',_0x33d8ab=>this['_config']['formatDateTime'](_0x33d8ab))}]}]},{'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']&&_0xf40c54['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':_0xf40c54}]};}['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'](_0x32a5f4,_0x51599d,_0x208a1d,_0x5b4aeb,_0x23e89d){const _0x2199a1=new _0x3ce31e(this['locale']);return _0x2199a1['set']({'label':_0x32a5f4,'icon':_0x51599d,'tooltip':!0x0,'tooltipPosition':_0x23e89d}),_0x2199a1['extendTemplate']({'attributes':{'class':_0x208a1d}}),_0x2199a1['on']('execute',()=>{this['fire'](_0x5b4aeb,this['_model']['id']);}),_0x2199a1;}['_setupKeyboardNavigation'](){const _0x323fcc=this['element'];this['keystrokes']['listenTo'](_0x323fcc);for(const _0x5a489b of this['focusables'])this['focusTracker']['add'](_0x5a489b['element']),this['keystrokes']['listenTo'](_0x5a489b['element']);this['keystrokes']['set']('enter',(_0x5a05ac,_0x14a5fb)=>{_0x323fcc===_0x5a05ac['target']&&(this['focusCycler']['focusFirst'](),_0x14a5fb());}),this['keystrokes']['set']('esc',(_0x32e945,_0x532956)=>{_0x323fcc!==_0x32e945['target']&&(this['focus'](),_0x532956());});}}var Ce='<!--\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-2024,\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 _0x50e036{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x80959d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15f0a7){super(_0x15f0a7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1d013d=this['editor']['config'];_0x1d013d['define']('trackChanges.SuggestionThreadView',de),_0x1d013d['define']('trackChanges.SuggestionView',ue),_0x1d013d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1d013d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x9b4005,_0x11832a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1888cd,_0x5e1369]of this['_handleControllerBuffer']){const _0x4e9a59=this['_suggestionToController']['has'](_0x1888cd);_0x4e9a59||_0x5e1369?_0x4e9a59&&_0x5e1369&&this['_destroyController'](_0x1888cd):this['_initializeController'](_0x1888cd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x9b4005,_0x11832a);}['init'](){const _0xe48927=this['editor'],_0x5873dc=_0xe48927['plugins']['get']('TrackChangesEditing'),_0x500aed=_0xe48927['plugins']['get']('Annotations'),_0x12b039=_0xe48927['plugins']['get']('EditorAnnotations'),_0x2b276b=_0xe48927['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x12b039['addSourceCollector'](()=>{const _0xc559d1=[];for(const [_0x3cc32f,_0x2c2ee1]of Array['from'](this['_suggestionToController'])){const _0x5bebe3=_0x3cc32f['getAllAdjacentSuggestions'](),_0x38df04=[];for(const _0x5b2188 of _0x5bebe3){if(!_0x5b2188['isInContent'])continue;if(_0x5b2188['isMultiRange']){_0x38df04['push'](..._0x5b2188['getRanges']());continue;}const _0x1c7d73=_0x5b2188['getFirstRange']();if(_0x38df04['length']>0x0){const _0x212690=_0x38df04[0x0]['getJoined'](_0x1c7d73);if(_0x212690){_0x38df04[0x0]=_0x212690;continue;}}_0x38df04['push'](_0x1c7d73);}_0xc559d1['push']([_0x2c2ee1['view'],_0x38df04]);}return _0xc559d1;}),this['listenTo'](_0x5873dc,'suggestionLoaded',(_0x344128,_0x124b06)=>{this['listenTo'](_0x124b06,'change:previous',(_0x1f7dca,_0x59b35d,_0x3d0c21,_0x42cd00)=>{_0x124b06['isInContent']&&(null==_0x3d0c21?(this['_updateController'](_0x42cd00['head']),this['_handleSuggestionControllerDelayed'](_0x124b06,!0x1)):(this['_updateController'](_0x3d0c21['head']),null==_0x42cd00&&this['_handleSuggestionControllerDelayed'](_0x124b06,!0x0)));}),null!==_0x124b06['previous']?this['_updateController'](_0x124b06['head']):this['_handleSuggestionControllerDelayed'](_0x124b06,!0x1);}),this['listenTo'](_0x5873dc,'suggestionUnloaded',(_0x382123,_0x37b841,_0x1af68e)=>{this['stopListening'](_0x37b841,'change:previous'),this['_handleControllerBuffer']['delete'](_0x37b841),this['_suggestionToController']['has'](_0x37b841)&&this['_destroyController'](_0x37b841),_0x1af68e&&this['_updateController'](_0x1af68e['head']);}),this['listenTo'](_0x5873dc,'suggestionChanged',(_0x12bf17,_0x1b79eb)=>{this['_updateController'](_0x1b79eb);}),this['listenTo'](_0x500aed,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2b276b,'addComment',(_0x2fc220,{threadId:_0x4d7674,isFromAdapter:_0x2ee968})=>{if(_0x2ee968||!_0x5873dc['hasSuggestion'](_0x4d7674))return;const _0x2d29fb=_0x5873dc['getSuggestion'](_0x4d7674);this['_suggestionToController']['get'](_0x2d29fb)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e5458=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e9775;for(const _0x2a3fac in _0x5e5458){const _0x3f5923=_0x2a3fac,_0x4a2633=_0x5e5458[_0x3f5923];if('trackChangesLicenseKeyValid'==_0x4a2633||'trackChangesLicenseKeyInvalid'==_0x4a2633||'trackChangesLicenseKeyExpired'==_0x4a2633||'trackChangesLicenseKeyDomainLimit'==_0x4a2633||'trackChangesLicenseKeyNotAllowed'==_0x4a2633||'trackChangesLicenseKeyEvaluationLimit'==_0x4a2633||'trackChangesLicenseKeyTrialLimit'==_0x4a2633||'trackChangesLicenseKeyDevelopmentLimit'==_0x4a2633||'trackChangesLicenseKeyUsageLimit'==_0x4a2633){delete _0x5e5458[_0x3f5923],_0x1e9775=_0x4a2633,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1e9775&&_0x5e5458['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1e9775&&_0x5e5458['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1e9775&&_0x5e5458['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1e9775&&_0x5e5458['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1e9775&&_0x5e5458['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1e9775&&_0x5e5458['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x1e9775&&_0x5e5458['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1e9775&&_0x5e5458['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x54e777=this['editor']['plugins']['get']('Annotations'),_0x54beec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2542ce=Array['from'](_0x54e777['activeAnnotations'],_0x11218a=>_0x11218a['innerView'])['filter'](_0x451cd7=>this['_viewToController']['has'](_0x451cd7)),_0x47bc2c=[];for(const _0x4c0298 of _0x2542ce){const _0x548362=this['_viewToController']['get'](_0x4c0298)['model']['getAllAdjacentSuggestions']();_0x47bc2c['push'](..._0x548362['reduce']((_0x53181f,_0x573a7b)=>[..._0x53181f,..._0x573a7b['getMarkerNames']()],[]));}_0x54beec['activeMarkers']=_0x47bc2c;}['_addUIComponentsToFactory'](){const _0x48db46=this['editor'],_0x2a2b26=_0x48db46['locale'],_0x488b70=o(_0x2a2b26,'Track\x20changes'),_0x52a368=new _0x538efc([{'type':'switchbutton','model':new _0x186cb8({'withText':!0x0,'isToggleable':!0x0,'label':_0x488b70,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x186cb8({'withText':!0x0,'label':o(_0x2a2b26,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x186cb8({'withText':!0x0,'label':o(_0x2a2b26,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x186cb8({'withText':!0x0,'label':o(_0x2a2b26,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x186cb8({'withText':!0x0,'label':o(_0x2a2b26,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1c65bb of _0x52a368)if(pe(_0x1c65bb)){const _0x2a2c29=_0x48db46['commands']['get'](_0x1c65bb['model']['commandName']);_0x1c65bb['model']['bind']('isOn','isEnabled')['to'](_0x2a2c29,'value','isEnabled');}_0x48db46['ui']['componentFactory']['add']('trackChanges',_0x3c6a6a=>this['_createToolbarButton'](_0x3c6a6a,_0x52a368,_0x488b70)),_0x48db46['ui']['componentFactory']['add']('menuBar:trackChanges',_0x490241=>this['_createMenuBarMenu'](_0x490241,_0x52a368,_0x488b70));}['_createToolbarButton'](_0x4a8e28,_0x558146,_0x2eb65d){const _0x4292fc=_0x44e92d(_0x4a8e28,_0x22e6bb),_0x16d5d1=this['editor']['commands']['get']('trackChanges');_0x4292fc['buttonView']['set']({'tooltip':_0x2eb65d,'label':_0x2eb65d,'icon':Ce}),_0x4292fc['buttonView']['bind']('isOn')['to'](_0x16d5d1,'value'),_0x4292fc['buttonView']['on']('execute',()=>{_0x16d5d1['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x4292fc,_0x558146,{'role':'menu'});const _0x1d745d=[];for(const _0x3d8493 of _0x558146)pe(_0x3d8493)&&_0x1d745d['push'](this['editor']['commands']['get'](_0x3d8493['model']['commandName']));const _0x3ad44b=_0x4292fc['buttonView'];return _0x3ad44b['actionView']['unbind']('isEnabled'),_0x3ad44b['arrowView']['unbind']('isEnabled'),_0x3ad44b['actionView']['bind']('isEnabled')['to'](_0x16d5d1,'isEnabled'),_0x3ad44b['arrowView']['bind']('isEnabled')['toMany'](_0x1d745d,'isEnabled',(..._0x3b1c72)=>_0x3b1c72['some'](_0x384af8=>_0x384af8)),_0x4292fc['on']('execute',_0x1e1bf4=>{this['editor']['execute'](_0x1e1bf4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4292fc;}['_createMenuBarMenu'](_0xe340ec,_0xa2a09e,_0x546cbc){const _0x4aec87=new _0x17d62b(_0xe340ec),_0x9b3e78=this['editor']['commands']['get']('trackChanges');_0x4aec87['buttonView']['set']({'label':_0x546cbc,'icon':Ce});const _0x488909=new _0x4ad668(_0xe340ec);for(const _0xe0e921 of _0xa2a09e){if('separator'==_0xe0e921['type']){_0x488909['items']['add'](new _0x1ede73(_0xe340ec));continue;}const _0x8c9dcb=new _0x26e7ae(_0xe340ec,_0x4aec87),_0x14bd13=new _0x4d3318(_0xe340ec),_0x2aefad=_0xe0e921['model'];_0x14bd13['bind'](...Object['keys'](_0x2aefad))['to'](_0x2aefad),_0x14bd13['delegate']('execute')['to'](_0x4aec87),_0x14bd13['on']('execute',()=>{this['editor']['execute'](_0x2aefad['commandName']),this['editor']['editing']['view']['focus']();}),_0x8c9dcb['children']['add'](_0x14bd13),_0x488909['items']['add'](_0x8c9dcb);}return _0x4aec87['bind']('isEnabled')['to'](_0x9b3e78,'isEnabled'),_0x4aec87['panelView']['children']['add'](_0x488909),_0x4aec87;}['_initializeController'](_0x2b45a5){const _0x3750fb=this['editor'],_0x52e11c=_0x3750fb['config'],_0x290d07=_0x3750fb['plugins']['get']('Annotations'),_0x2c4f61=_0x3750fb['plugins']['get']('CommentsRepository'),_0x6cbac1=_0x3750fb['plugins']['get']('EditorAnnotations'),_0x22fa5a=_0x3750fb['plugins']['get'](_0x80959d)['me'],_0x31e54a=_0x52e11c['get']('trackChanges')['SuggestionThreadView'],_0xb255e7=_0x52e11c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x10ab2e,CommentThreadInputView:_0xc63cc7}=_0x3750fb['plugins']['get']('CommentsUI');let _0x170cb8,_0x259925,_0x272366;this['_annotationViews']['has'](_0x2b45a5['id'])?(_0x259925=this['_annotationViews']['get'](_0x2b45a5['id']),_0x170cb8=_0x259925['mainView']):(_0x170cb8=new _0x31e54a(_0x3750fb['locale'],_0x2b45a5,_0x22fa5a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x52e11c['get']('comments.editorConfig'),'licenseKey':_0x52e11c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x52e11c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x52e11c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x52e11c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x224b9b(_0x52e11c['get']('locale')),'CommentView':_0x52e11c['get']('comments')['CommentView'],'CommentsListView':_0x10ab2e,'CommentThreadInputView':_0xc63cc7,'SuggestionView':_0xb255e7}),_0x170cb8['suggestionView']['acceptButton']['on']('execute',()=>{_0x3750fb['editing']['view']['focus']();}),_0x170cb8['suggestionView']['discardButton']['on']('execute',()=>{_0x3750fb['editing']['view']['focus']();}),_0x259925=_0x290d07['createAnnotationView'](this['editor']['locale'],_0x170cb8),_0x259925['bind']('isDirty')['to'](_0x170cb8,'isDirty'),_0x259925['bind']('length')['to'](_0x170cb8),_0x259925['bind']('type')['to'](_0x170cb8,'type',_0x4abe43=>'suggestion-'+_0x4abe43),_0x170cb8['on']('escape',()=>{_0x272366['fire']('escape');}),this['_annotationViews']['set'](_0x2b45a5['id'],_0x259925));const _0x7ecf3f=_0x2c4f61['createCommentThreadController'](_0x2b45a5['commentThread'],_0x170cb8),_0x90ce9d=new ge(_0x3750fb,_0x2b45a5,_0x170cb8,_0x7ecf3f),_0x207a69=_0x2b45a5['getAllAdjacentSuggestions']()['filter'](_0x39a926=>_0x39a926['isInContent']);_0x170cb8['descriptionParts']=_0x3750fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x207a69),this['_suggestionToController']['set'](_0x2b45a5,_0x90ce9d),this['_viewToController']['set'](_0x170cb8,_0x90ce9d),_0x272366=_0x290d07['createAnnotation']({'view':_0x259925,'target':()=>{const _0xedd0dd=[],_0x2504e0=_0x2b45a5['getAllAdjacentSuggestions']()['filter'](_0x1400c8=>_0x1400c8['isInContent']);for(const _0x3e62dd of _0x2504e0)_0xedd0dd['push'](..._0x3e62dd['getMarkers']());return _0x4c6ccc(_0x3750fb['editing'],_0xedd0dd);},'type':()=>'suggestion-'+_0x90ce9d['view']['type']}),_0x2c4f61['_bindAnnotationToEditors'](_0x170cb8,_0x272366),_0x290d07['add'](_0x272366),_0x6cbac1['registerAnnotation'](_0x272366);}['_destroyController'](_0xd7874c){const _0x21c934=this['editor']['plugins']['get']('CommentsRepository'),_0x484fe3=this['editor']['plugins']['get']('Annotations'),_0x5aa431=this['_suggestionToController']['get'](_0xd7874c),_0x12b673=_0x5aa431['view'],_0x3da5e8=_0x484fe3['getByInnerView'](_0x12b673);_0x21c934['_unbindEditors'](_0x12b673),_0x3da5e8&&_0x484fe3['remove'](_0x3da5e8),this['_suggestionToController']['delete'](_0xd7874c),this['_viewToController']['delete'](_0x12b673),_0x5aa431['destroy']();}['_updateController'](_0x125f1c){if(!_0x125f1c['isInContent']||!this['_suggestionToController']['has'](_0x125f1c))return;const _0x25f610=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36f9c6=this['_suggestionToController']['get'](_0x125f1c),_0xbb2486=_0x125f1c['getAllAdjacentSuggestions']();_0x36f9c6['view']['descriptionParts']=_0x25f610['descriptionFactory']['getDescriptions'](_0xbb2486);}['destroy'](){for(const _0x263185 of this['_suggestionToController']['keys']())this['_destroyController'](_0x263185);for(const _0xeda840 of this['_annotationViews']['values']())_0xeda840['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x3780e6){return'model'in _0x3780e6;}class k extends _0x50e036{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x24dfbc){this['editor']['plugins']['get'](p)['adapter']=_0x24dfbc;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4efcea){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4efcea);}['getSuggestions']({skipNotAttached:_0x2c08ef=!0x1,toJSON:_0x35835c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2c08ef,'toJSON':_0x35835c});}['getSuggestion'](_0xbc6778){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xbc6778);}}const w=['Pagination'];class T extends _0x50e036{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4ba4a3=this['editor'];if(_0x4ba4a3['config']['define']('trackChangesData.editorCreator',_0x135bca=>{const _0x16ed0d=_0x4ba4a3['model']['document']['getRootNames']()['reduce']((_0x2d19da,_0x3ae6ed)=>(_0x2d19da[_0x3ae6ed]='',_0x2d19da),{});return _0x4ba4a3['constructor']['create'](_0x16ed0d,_0x135bca);}),'function'!=typeof _0x4ba4a3['config']['get']('trackChangesData')['editorCreator'])throw new _0x317959('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4c2bb9){return N(this['editor'],!0x0,_0x4c2bb9);}['getDataWithDiscardedSuggestions'](_0x3c742c){return N(this['editor'],!0x1,_0x3c742c);}}class D extends _0x50e036{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36b837){function _0x2dd8bc(_0x327c35){return _0x327c35['map'](_0x53eae5=>String['fromCharCode'](_0x53eae5))['join']('');}super(_0x36b837),this['result']='end',_0x36b837[_0x2dd8bc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dd8bc([0x76,0x69,0x65,0x77])][_0x2dd8bc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2dd8bc([0x61,0x75,0x74,0x6f]),_0x36b837[_0x2dd8bc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2dd8bc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2dd8bc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2dd8bc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2dd8bc([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 v(_0x418378){return void 0x0!==_0x418378['getRootsAttributes'];}async function N(_0x2fc839,_0x13084f,_0x257cd1){const _0x29a896=_0x45aedd(_0x2fc839,w);_0x29a896['plugins']['push'](p,D),_0x29a896['rootsAttributes']=v(_0x2fc839)?_0x2fc839['getRootsAttributes']():void 0x0;const _0x5e1bd7=document['createDocumentFragment'](),_0x2242f7=_0x2fc839['config']['get']('trackChangesData')['editorCreator'],_0x3b817f=await _0x2242f7(_0x29a896,()=>function(_0x5f4254){const _0x668377=document['createElement']('div');return _0x5f4254['appendChild'](_0x668377),_0x668377;}(_0x5e1bd7));!function(_0x246138,_0x517523){const _0x32bcce=_0x246138['model']['document']['getRootNames']()['reduce']((_0x4e6636,_0xbdc40c)=>(_0x4e6636[_0xbdc40c]=_0x246138['data']['get']({'rootName':_0xbdc40c}),_0x4e6636),{}),_0x101b69=_0x246138['plugins']['get']('Users')['users']['map'](_0x4b9de4=>({'id':_0x4b9de4['id'],'name':_0x4b9de4['name']})),_0x122e04=_0x246138['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2deb27=_0x246138['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2850ea=_0x517523['plugins']['get']('Users'),_0x6015f3=_0x517523['plugins']['get']('TrackChangesEditing'),_0x13499a=_0x517523['plugins']['get']('CommentsRepository');for(const _0x44afb0 of _0x13499a['getCommentThreads']())_0x44afb0['remove']();for(const _0x1ed7a2 of _0x101b69)_0x2850ea['getUser'](_0x1ed7a2['id'])||_0x2850ea['addUser'](_0x1ed7a2);_0x2850ea['me']||_0x2850ea['useAnonymousUser']();for(const _0x16517c of _0x2deb27)_0x13499a['addCommentThread'](_0x16517c);for(const _0x4f8dfc of _0x122e04)_0x6015f3['addSuggestionData'](_0x4f8dfc);_0x517523['data']['set'](_0x32bcce);}(_0x2fc839,_0x3b817f),_0x3b817f['execute'](_0x13084f?'acceptAllSuggestions':'discardAllSuggestions');const _0x11e07b=v(_0x3b817f)?_0x3b817f['getFullData'](_0x257cd1):_0x3b817f['data']['get'](_0x257cd1);return await _0x3b817f['destroy'](),_0x11e07b;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};