@ckeditor/ckeditor5-track-changes 44.2.0 → 44.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +25 -25
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/previewfinalcontentcommand.js +1 -1
  153. package/src/commands/trackchangescommand.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/integrations/aiassistant.js +1 -1
  156. package/src/integrations/alignment.js +1 -1
  157. package/src/integrations/basicstyles.js +1 -1
  158. package/src/integrations/blockquote.js +1 -1
  159. package/src/integrations/bookmark.js +1 -1
  160. package/src/integrations/casechange.js +1 -1
  161. package/src/integrations/ckbox.js +1 -1
  162. package/src/integrations/codeblock.js +1 -1
  163. package/src/integrations/comments.js +1 -1
  164. package/src/integrations/deletecommand.js +1 -1
  165. package/src/integrations/emoji.js +1 -1
  166. package/src/integrations/entercommand.js +1 -1
  167. package/src/integrations/findandreplace.js +1 -1
  168. package/src/integrations/font.js +1 -1
  169. package/src/integrations/formatpainter.js +1 -1
  170. package/src/integrations/heading.js +1 -1
  171. package/src/integrations/highlight.js +1 -1
  172. package/src/integrations/horizontalline.js +1 -1
  173. package/src/integrations/htmlembed.js +1 -1
  174. package/src/integrations/image.js +1 -1
  175. package/src/integrations/imagereplace.js +1 -1
  176. package/src/integrations/imagestyle.js +1 -1
  177. package/src/integrations/importword.js +1 -1
  178. package/src/integrations/indent.js +1 -1
  179. package/src/integrations/inputcommand.js +1 -1
  180. package/src/integrations/legacylist.js +1 -1
  181. package/src/integrations/legacylistproperties.js +1 -1
  182. package/src/integrations/link.js +1 -1
  183. package/src/integrations/list.js +1 -1
  184. package/src/integrations/listproperties.js +1 -1
  185. package/src/integrations/mediaembed.js +1 -1
  186. package/src/integrations/mention.js +1 -1
  187. package/src/integrations/mergefields.js +1 -1
  188. package/src/integrations/multilevellist.js +1 -1
  189. package/src/integrations/pagebreak.js +1 -1
  190. package/src/integrations/paragraph.js +1 -1
  191. package/src/integrations/removeformat.js +1 -1
  192. package/src/integrations/replacesourcecommand.js +1 -1
  193. package/src/integrations/restrictededitingmode.js +1 -1
  194. package/src/integrations/shiftentercommand.js +1 -1
  195. package/src/integrations/standardeditingmode.js +1 -1
  196. package/src/integrations/style.js +1 -1
  197. package/src/integrations/table.js +1 -1
  198. package/src/integrations/tablecaption.js +1 -1
  199. package/src/integrations/tableclipboard.js +1 -1
  200. package/src/integrations/tablecolumnresize.js +1 -1
  201. package/src/integrations/tableheadings.js +1 -1
  202. package/src/integrations/tablemergesplit.js +1 -1
  203. package/src/integrations/tableofcontents.js +1 -1
  204. package/src/integrations/tableproperties.js +1 -1
  205. package/src/integrations/template.js +1 -1
  206. package/src/integrations/title.js +1 -1
  207. package/src/integrations/undo.js +1 -1
  208. package/src/integrations/uploadcare.js +1 -1
  209. package/src/integrations/utils.js +1 -1
  210. package/src/suggestion.js +2 -2
  211. package/src/suggestiondescriptionfactory.js +1 -1
  212. package/src/trackchanges.js +1 -1
  213. package/src/trackchangesdata.js +1 -1
  214. package/src/trackchangesediting.js +1 -1
  215. package/src/trackchangespreview.js +1 -1
  216. package/src/trackchangesui.js +1 -1
  217. package/src/ui/suggestioncontroller.js +2 -2
  218. package/src/ui/view/basesuggestionthreadview.js +1 -1
  219. package/src/ui/view/suggestionthreadview.js +1 -1
  220. package/src/ui/view/suggestionview.js +1 -1
  221. package/src/ui/view/trackchangespreviewview.js +1 -1
  222. package/src/utils/common-translations.js +1 -1
  223. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Yt,Plugin as _0x6a3ec8,PendingActions as _0x5e80f0,icons as _0x4b24fb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x523434,ObservableMixin as _0xba2e47,uid as _0xf0931c,priorities as _0x17a378,insertToPriorityArray as _0x3b03d5,logWarning as _0x15da72,getEnvKeystrokeText as _0x2a3ca7,FocusTracker as _0x4d988c,KeystrokeHandler as _0x1a7c71,Collection as _0x22187e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x365eb3,View as _0x2cfe10,ViewCollection as _0x464e6a,FocusCycler as _0x4f7572,ViewModel as _0x51bf2b,createDropdown as _0x386ba0,SplitButtonView as _0x52d343,addListToDropdown as _0x598724,MenuBarMenuView as _0x2a1817,MenuBarMenuListView as _0x7c5054,ListSeparatorView as _0x244709,MenuBarMenuListItemView as _0x9e551e,MenuBarMenuListItemButtonView as _0xce26ad,BodyCollection as _0x362513,Dialog as _0x7fa237}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4ea5c3,hashObject as _0xe0c89d,surroundingMarkersDetector as _0x141f07,FOCUS_ANNOTATION_KEYSTROKE as _0x53f401,AriaDescriptionView as _0x3ee2f0,setupThreadKeyboardNavigation as _0x1eca02,trimHtml as _0x50119c,UserView as _0x4d22d6,LateFocusButtonView as _0x2ece0f,getDateTimeFormatter as _0x1fd6c7,getAllMarkersDomElementsSorted as _0x43b79b,sanitizeEditorConfig as _0x37f847}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x150557,LiveRange as _0x36d42c,LivePosition as _0x556335,DowncastWriter as _0x15c496}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3c0e0b,toWidget as _0x244f86}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x579b60,set as _0x3321d9,isEqual as _0x549bfd,unset as _0x1c90b0,omit as Vt}from'lodash-es';import{Delete as _0x385f1d,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xbcef9,ShiftEnter as _0x4e86be}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x140258,_0x18a03e){super(_0x140258),this['_enabledCommands']=_0x18a03e,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 _0x56dc7f of this['editor']['commands']['commands']())_0x56dc7f['affectsData']&&!this['_enabledCommands']['has'](_0x56dc7f)&&_0x56dc7f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3b2b1d of this['editor']['commands']['commands']())_0x3b2b1d['affectsData']&&!this['_enabledCommands']['has'](_0x3b2b1d)&&_0x3b2b1d['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0xbf8644,_0x3058af){super(_0xbf8644),this['_suggestions']=_0x3058af,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3bd280){const _0x6b8fe6=this['_suggestions']['get'](_0x3bd280);if(!_0x6b8fe6)throw new _0x523434('track-changes-accept-suggestion-not-found',this);const _0x4ca491=_0x6b8fe6['getRanges']();this['editor']['model']['canEditAt'](_0x4ca491)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x6b8fe6);}}class R extends Yt{['_suggestions'];constructor(_0x4b9b61,_0x3618fa){super(_0x4b9b61),this['_suggestions']=_0x3618fa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2843cf){const _0x50e758=this['_suggestions']['get'](_0x2843cf);if(!_0x50e758)throw new _0x523434('track-changes-discard-suggestion-not-found',this);const _0x306a2b=_0x50e758['getRanges']();this['editor']['model']['canEditAt'](_0x306a2b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x50e758);}}function cs(_0x152f5e,_0x1548d2){let _0x44cfc3='';return _0x44cfc3+=_0x152f5e['split']('*')['map']((_0x4444f3,_0x131006)=>_0x131006%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4444f3)+'</span>':nn(_0x4444f3))['join'](''),_0x1548d2&&(_0x44cfc3+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1548d2['value']+'\x22\x20title=\x22'+_0x1548d2['title']+'\x22></span>'),_0x44cfc3;}function nn(_0x23d058){const _0x1ab35b=document['createElement']('span');return _0x1ab35b['innerText']=_0x23d058,_0x1ab35b['innerHTML'];}function Zt(_0x3b2663){return _0x3b2663['sort']((_0x1802e5,_0xc71b72)=>'deletion'==_0x1802e5['type']&&'deletion'!=_0xc71b72['type']?-0x1:'deletion'!=_0x1802e5['type']&&'deletion'==_0xc71b72['type']?0x1:0x0);}function to(_0x1f6911,_0x67858e){let _0x26ed74,_0xa7fab0=0x0;const _0x1ea575=[],_0x5995be=_0x67858e['schema'];for(;_0xa7fab0<_0x1f6911['length'];){const _0x393cd7=_0x1f6911[_0xa7fab0],_0x49227d=_0x1f6911[_0xa7fab0+0x1];_0x26ed74||(_0x26ed74=_0x67858e['createPositionBefore'](_0x393cd7)),on(_0x67858e,_0x393cd7,_0x49227d)||(_0x1ea575['push'](_0x67858e['createRange'](_0x26ed74,_0x5995be['isObject'](_0x393cd7)?_0x67858e['createPositionAfter'](_0x393cd7):_0x67858e['createPositionAt'](_0x393cd7,'end'))),_0x26ed74=null),_0xa7fab0++;}return _0x1ea575;}function on(_0x23d39e,_0x3091c4,_0x352c3a){if(!_0x352c3a)return!0x1;const _0x27c44d=_0x23d39e['createPositionAfter'](_0x3091c4),_0x226acb=_0x23d39e['createPositionBefore'](_0x352c3a);return _0x27c44d['isTouching'](_0x226acb);}function ts(_0x255602,_0x1749cc,_0x53f254){for(;_0x53f254['length'];){const _0x36e102=_0x53f254['splice'](0x0,0x64);_0x255602['change'](()=>{for(const _0x278ad7 of _0x36e102)_0x278ad7['isInContent']&&_0x1749cc['execute'](_0x278ad7['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x5028ba,_0x30bb69,_0x35807b){super(_0x5028ba),this['_command']=_0x30bb69,this['_suggestions']=_0x35807b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2218bc=Array['from'](this['_suggestions']['values']())['some'](_0x274a79=>_0x274a79['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2218bc;}['execute'](){const _0x28c20f=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x2ac299 of _0x28c20f){const _0x4cbdc8=_0x2ac299['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4cbdc8))return;}ts(this['editor']['model'],this['_command'],_0x28c20f);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x9ed3ab,_0x53ab9a,_0x442e35){super(_0x9ed3ab),this['_command']=_0x53ab9a,this['_suggestions']=_0x442e35,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x57c79f=this['editor']['model']['document']['selection'],_0x1a388e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x33f7a9,_0xbc03f7){const _0x143374=Array['from'](_0x33f7a9['getRanges']()),_0x44c112=new Set();for(const _0x3dcfd8 of _0xbc03f7)if(_0x3dcfd8['isInContent']){for(const _0xe61590 of _0x143374)for(const _0x1a0fb4 of _0x3dcfd8['getRanges']())(_0xe61590['isIntersecting'](_0x1a0fb4)||_0x33f7a9['isCollapsed']&&!_0x3dcfd8['isMultiRange']&&_0x3dcfd8['next']&&_0x1a0fb4['end']['isTouching'](_0xe61590['start']))&&_0x44c112['add'](_0x3dcfd8);}return _0x44c112;}(_0x57c79f,_0x1a388e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1e56a2=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x1f1356 of _0x1e56a2){const _0x19bcd2=_0x1f1356['getRanges']();if(!this['editor']['model']['canEditAt'](_0x19bcd2))return;}ts(this['editor']['model'],this['_command'],_0x1e56a2);}}class u extends/* #__PURE__ -- @preserve */
24
- _0xba2e47(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x195c08,_0x2a1366){super(),this['id']=_0x2a1366['id'],this['type']=_0x2a1366['type'],this['subType']=_0x2a1366['subType']||null,this['author']=_0x2a1366['author'],this['creator']=_0x2a1366['creator']||_0x2a1366['author'],this['isExternal']=Boolean(_0x2a1366['attributes']&&_0x2a1366['attributes']['@external']),this['data']=null,this['_model']=_0x195c08,this['_onAccept']=_0x2a1366['onAccept'],this['_onDiscard']=_0x2a1366['onDiscard'],this['_onAttributesChange']=_0x2a1366['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2a1366['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 _0x25bef6=this;for(;_0x25bef6['previous'];)_0x25bef6=_0x25bef6['previous'];return _0x25bef6;}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'](_0x2e31c0){this['_markerNames']['add'](_0x2e31c0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5cd25d=>this['_model']['markers']['get'](_0x5cd25d))['filter'](_0x49280a=>_0x49280a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3d5937=>{for(const _0x36b9f6 of this['getMarkers']())_0x3d5937['removeMarker'](_0x36b9f6);}),this['_markerNames']['clear']();}['removeMarker'](_0x9861f2){this['_model']['change'](_0x13e7cb=>{_0x13e7cb['removeMarker'](_0x9861f2);}),this['_markerNames']['delete'](_0x9861f2);}['addRange'](_0x3ca23c){const _0x12fc79='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x12fc79),this['_model']['change'](_0x2a5cf1=>{_0x2a5cf1['addMarker'](_0x12fc79,{'range':_0x3ca23c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1d07ab){for(const _0xd3fbab of this['getRanges']())if(_0xd3fbab['isIntersecting'](_0x1d07ab))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3eeb74=>_0x3eeb74['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x19958e,_0x81c287)=>[..._0x19958e,..._0x81c287['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5338d7=this['getRanges']();if(0x1!=_0x5338d7['length'])return null;const _0x3d2473=_0x5338d7[0x0],_0x464663=_0x3d2473['start']['nodeAfter'],_0x516a1e=_0x3d2473['end']['nodeBefore'];return _0x464663 instanceof _0x150557?_0x464663!=_0x516a1e?null:_0x464663: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 _0x4911bb=[];let _0x3ac604=this['head'];for(;_0x3ac604;)_0x4911bb['push'](_0x3ac604),_0x3ac604=_0x3ac604['next'];return _0x4911bb;}['setAttribute'](_0x36880e,_0x1514d6){const _0x3ed23d=_0x579b60(this['attributes']);_0x3321d9(_0x3ed23d,_0x36880e,_0x1514d6),_0x549bfd(_0x3ed23d,this['attributes'])||(this['attributes']=_0x3ed23d,this['_onAttributesChange'](_0x3ed23d));}['removeAttribute'](_0x6615fa){const _0x726344=_0x579b60(this['attributes']);_0x1c90b0(_0x726344,_0x6615fa),_0x549bfd(_0x726344,this['attributes'])||(this['attributes']=_0x726344,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 _0xf0931c()['substr'](0x1,0x5);}}function o(_0x2c8d3c,_0x295215,_0x23da19){const _0x4e8a86=_0x2c8d3c['t'],t=_0x2c8d3c['t'];switch(_0x295215){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x23da19);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x23da19);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x23da19);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x23da19);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x23da19);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',_0x23da19);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x23da19);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x23da19);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x23da19);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x23da19);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x23da19);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x23da19);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x23da19);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x23da19);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x23da19);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x23da19);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x23da19);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x23da19);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x23da19);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x23da19);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x23da19);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x23da19);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x23da19);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x23da19);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'},_0x23da19);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x23da19);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x23da19);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x23da19);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x23da19);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x23da19);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'},_0x23da19);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x23da19);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x23da19);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x23da19);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x23da19);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'},_0x23da19);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x23da19);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'},_0x23da19);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'},_0x23da19);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x23da19);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'},_0x23da19);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x23da19);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'},_0x23da19);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x23da19);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x23da19);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'},_0x23da19);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x23da19);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 _0x4e8a86({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x23da19);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4e8a86({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x23da19);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x23da19);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'},_0x23da19);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'},_0x23da19);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'},_0x23da19);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x295215;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x248ccd,_0x1be53c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x248ccd,this['_locale']=_0x1be53c;}['getDescriptions'](_0x43dc39){const _0x3eaac8=[],_0x4ad165=new Set(),_0x2b807b=new Set();for(let _0x2edd1a=0x0;_0x2edd1a<_0x43dc39['length'];_0x2edd1a++){const _0x3cec69=_0x43dc39[_0x2edd1a];if(!_0x3cec69['isInContent'])continue;const _0x2f5d99=this['_handleCustomCallbackDescription'](_0x3cec69);if(_0x2f5d99){if(null!=_0x3cec69['subType']){if(_0x4ad165['has'](_0x3cec69['subType']))continue;_0x4ad165['add'](_0x3cec69['subType']);}_0x3eaac8['push'](_0x2f5d99);}else{if('attribute'!=_0x3cec69['type'])'insertion'!=_0x3cec69['type']&&'deletion'!=_0x3cec69['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3eaac8,_0x3cec69,_0x43dc39[_0x2edd1a+0x1]);else{const _0x2487f0=_0x3cec69['data']['key'];if(_0x2b807b['has'](_0x2487f0))continue;_0x2b807b['add'](_0x3cec69['data']['key']),_0x2487f0==m?this['_handleRenameSuggestionDescription'](_0x3eaac8,_0x3cec69):this['_handleAttributeSuggestionDescription'](_0x3eaac8,_0x3cec69);}}}return this['_resolveDescriptionItems'](_0x3eaac8);}['registerDescriptionCallback'](_0x5eab0b){this['_customCallbacks']['push'](_0x5eab0b);}['registerElementLabel'](_0x5a4eba,_0x533382,_0x1fc118=_0x17a378['normal']){'function'==typeof _0x5a4eba?_0x3b03d5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5a4eba,'label':_0x533382,'priority':_0x1fc118}):this['_itemLabels']['set'](_0x5a4eba,_0x533382);}['registerAttributeLabel'](_0x18840c,_0x28b018){this['_attributeLabels']['set'](_0x18840c,_0x28b018);}['getItemLabel'](_0x5cad44,_0x37d91c=0x1){let _0x563543;for(const _0x3f3c52 of this['_itemLabelsCallbacks'])if(_0x3f3c52['matchingCallback'](_0x5cad44)){_0x563543=_0x3f3c52['label'];break;}return _0x563543||(_0x563543=this['_itemLabels']['get'](_0x5cad44['name'])),_0x563543?_0x563543(_0x37d91c):0x1!==_0x37d91c?_0x37d91c+'\x20'+_0x5cad44['name']+'s':''+_0x5cad44['name'];}['_addDescriptionItems'](_0x54f313,_0x4a223b){const _0x139a95=_0x4a223b['getFirstRange']()['getWalker'](),_0x348dce='insertion'==_0x4a223b['type']?'add':'remove';for(const _0x240bd3 of _0x139a95){const _0xae77ae=_0x240bd3['item'],_0x12b0a1=_0x54f313[_0x54f313['length']-0x1];if(_0xae77ae['is']('$textProxy'))_0x12b0a1&&_0x12b0a1['type']['indexOf']('Container')>-0x1&&_0x54f313['pop'](),_0x12b0a1&&'text'==_0x12b0a1['type']?_0x12b0a1[_0x348dce]+=_0xae77ae['data']:_0x54f313['push']({'type':'text','add':'add'==_0x348dce?_0xae77ae['data']:'','remove':'remove'==_0x348dce?_0xae77ae['data']:''});else{if(this['_schema']['isObject'](_0xae77ae)){const _0x79e0f=_0xae77ae;if(_0x12b0a1&&_0x12b0a1['type']['indexOf']('Container')>-0x1&&_0x54f313['pop'](),'elementEnd'==_0x240bd3['type'])continue;_0x12b0a1&&_0x12b0a1['type']==_0x348dce+'Object'&&_0x12b0a1['element']['name']==_0x79e0f['name']?_0x12b0a1['quantity']++:_0x54f313['push']({'type':_0x348dce+'Object','element':_0x79e0f,'quantity':0x1}),_0x139a95['skip'](_0x2dac5c=>!('elementEnd'==_0x2dac5c['type']&&_0x2dac5c['item']==_0xae77ae));}else{if(this['_schema']['checkChild'](_0xae77ae,'$text')||_0xae77ae['is']('element','softBreak')){const _0x49a5cb=_0xae77ae;if('add'==_0x348dce&&'elementStart'==_0x240bd3['type']||'remove'==_0x348dce&&'elementEnd'==_0x240bd3['type'])continue;if(_0x12b0a1&&-0x1==_0x12b0a1['type']['indexOf']('Container')){'text'==_0x12b0a1['type']&&(_0x12b0a1[_0x348dce]+='\x0a');continue;}let _0x1bc701;if(_0x1bc701='add'==_0x348dce?_0x49a5cb['nextSibling']&&!this['_schema']['isObject'](_0x49a5cb['nextSibling'])?_0x49a5cb['nextSibling']:null:_0x49a5cb['previousSibling']&&!this['_schema']['isObject'](_0x49a5cb['previousSibling'])?_0x49a5cb['previousSibling']:null,_0x49a5cb['isEmpty']||_0x1bc701&&_0x1bc701['isEmpty']){const _0x507f6a=_0x1bc701&&_0x1bc701['isEmpty']?_0x1bc701:_0x49a5cb;_0x12b0a1&&_0x12b0a1['type']==_0x348dce+'EmptyContainer'&&_0x12b0a1['element']['name']==_0x507f6a['name']?_0x12b0a1['quantity']++:_0x54f313['push']({'type':_0x348dce+'EmptyContainer','element':_0x507f6a,'quantity':0x1});}else _0x54f313['push']({'type':_0x348dce+'Container','element':_0x49a5cb});}}}}}['_resolveDescriptionItems'](_0x2146ed){const _0x54410a=this['_locale'],_0xe73520=[],_0x3ff909=[],_0xf2b449=[];for(const _0x36abca of _0x2146ed)switch(_0x36abca['type']){case'text':if(_0x36abca['add']=_0x36abca['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x36abca['remove']=_0x36abca['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x36abca['add']&&''!=_0x36abca['remove']){_0xe73520['push']({'type':'replace','content':o(_0x54410a,'REPLACE_TEXT',['\x22'+_0x36abca['remove']+'\x22','\x22'+_0x36abca['add']+'\x22'])});continue;}if(null!=_0x36abca['add']['match'](/^ +$/)){_0xe73520['push']({'type':'insertion','content':o(_0x54410a,'*Insert:*\x20%0',o(_0x54410a,'ELEMENT_SPACE',_0x36abca['add']['length']))});continue;}if(null!=_0x36abca['remove']['match'](/^ +$/)){_0xe73520['push']({'type':'deletion','content':o(_0x54410a,'*Remove:*\x20%0',o(_0x54410a,'ELEMENT_SPACE',_0x36abca['remove']['length']))});continue;}if(''!=_0x36abca['add']){_0xe73520['push']({'type':'insertion','content':o(_0x54410a,'*Insert:*\x20%0','\x22'+_0x36abca['add']+'\x22')});continue;}_0xe73520['push']({'type':'deletion','content':o(_0x54410a,'*Remove:*\x20%0','\x22'+_0x36abca['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xe73520['push']({'type':'insertion','content':o(_0x54410a,'*Insert:*\x20%0',this['getItemLabel'](_0x36abca['element'],_0x36abca['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xe73520['push']({'type':'deletion','content':o(_0x54410a,'*Remove:*\x20%0',this['getItemLabel'](_0x36abca['element'],_0x36abca['quantity']))});continue;case'addContainer':_0xe73520['push']({'type':'insertion','content':o(_0x54410a,'*Split:*\x20%0',this['getItemLabel'](_0x36abca['element'],_0x36abca['quantity']))});continue;case'removeContainer':_0xe73520['push']({'type':'deletion','content':o(_0x54410a,'*Merge:*\x20%0',this['getItemLabel'](_0x36abca['element'],_0x36abca['quantity']))});continue;case'addFormat':_0x3ff909['push'](_0x36abca['key']);continue;case'removeFormat':_0xf2b449['push'](_0x36abca['key']);continue;default:_0xe73520['push'](_0x36abca);}if(_0x3ff909['length']){const _0x31d341=_0x3ff909['map'](_0xe22e0a=>this['_attributeLabels']['has'](_0xe22e0a)?this['_attributeLabels']['get'](_0xe22e0a):_0xe22e0a)['join'](',\x20');_0xe73520['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x31d341)});}if(_0xf2b449['length']){const _0x955f70=_0xf2b449['map'](_0x2397ea=>this['_attributeLabels']['has'](_0x2397ea)?this['_attributeLabels']['get'](_0x2397ea):_0x2397ea)['join'](',\x20');_0xe73520['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x955f70)});}return _0xe73520;}['_handleCustomCallbackDescription'](_0x21d064){for(const _0x9e6cda of this['_customCallbacks']){const _0x463eb7=_0x9e6cda(_0x21d064);if(_0x463eb7&&'type'in _0x463eb7)return _0x463eb7;}}['_handleAttributeSuggestionDescription'](_0x349355,_0x37f7d1){const _0x516730=_0x37f7d1['data'],_0x5a8d40=void 0x0===_0x516730['newValue']?'removeFormat':'addFormat';_0x349355['push']({'type':_0x5a8d40,'key':_0x516730['key']});}['_handleRenameSuggestionDescription'](_0x5477cb,_0x3f71e7){_0x5477cb['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3f71e7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1d7026,_0x4e0f63,_0x7662a3){if(this['_addDescriptionItems'](_0x1d7026,_0x4e0f63),_0x7662a3&&_0x7662a3['getFirstRange']()&&!_0x4e0f63['getFirstRange']()['end']['isEqual'](_0x7662a3['getFirstRange']()['start'])){const _0x3dbba8=_0x1d7026[_0x1d7026['length']-0x1],_0x5c967e='insertion'==_0x4e0f63['type']?'add':'remove';_0x3dbba8&&'text'==_0x3dbba8['type']&&(_0x3dbba8[_0x5c967e]+='\x0a');}}}class U extends _0x6a3ec8{['afterInit'](){const _0x8593a9=this['editor'],_0x4828cb=_0x8593a9['plugins']['get']('TrackChangesEditing');_0x8593a9['commands']['get']('showAIAssistant')&&_0x4828cb['enableCommand']('showAIAssistant');}}class V extends _0x6a3ec8{['afterInit'](){const _0x65927b=this['editor'],_0x25d7d9=_0x65927b['locale'];if(!_0x65927b['plugins']['has']('AlignmentEditing'))return;const _0x158eb5=_0x65927b['plugins']['get']('TrackChangesEditing');_0x158eb5['enableDefaultAttributesIntegration']('alignment'),_0x158eb5['registerBlockAttribute']('alignment'),_0x158eb5['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x25d7d9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16d2bb=this['editor'],_0x5f4642=_0x16d2bb['locale'];_0x16d2bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe013b6=>{if('formatBlock'!=_0xe013b6['type'])return;const {data:_0x3ef47a}=_0xe013b6;if(_0x3ef47a&&'alignment'==_0x3ef47a['commandName']){const _0x2118dd=_0x3ef47a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5f4642,'*Format:*\x20%0',function(_0x5504f2){switch(_0x5504f2){case'left':return o(_0x5f4642,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5f4642,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5f4642,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5f4642,'FORMAT_JUSTIFY_TEXT');}}(_0x2118dd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x6a3ec8{['afterInit'](){const _0x338b0d=this['editor'],_0x37bc11=_0x338b0d['plugins']['get']('TrackChangesEditing'),_0x21bdac=_0x338b0d['locale'];for(const _0x14c1ab of ti){if(!_0x338b0d['plugins']['has'](_0x14c1ab))continue;const _0x549586=_0x14c1ab['slice'](0x0,-0x7)['toLowerCase'](),_0x4926b4='FORMAT_'+_0x549586['toUpperCase']();_0x37bc11['enableDefaultAttributesIntegration'](_0x549586),_0x37bc11['registerInlineAttribute'](_0x549586),_0x37bc11['descriptionFactory']['registerAttributeLabel'](_0x549586,o(_0x21bdac,_0x4926b4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x347e37=this['editor'],_0x473a38=_0x347e37['locale'],_0x10fe5a=_0x347e37['plugins']['get']('TrackChangesEditing');function _0x36001c(_0x63703d,_0x246397){_0x10fe5a['descriptionFactory']['registerDescriptionCallback'](_0x34bb14=>{if('formatInline'!=_0x34bb14['type'])return;const {data:_0x5d686e}=_0x34bb14;return _0x5d686e&&_0x5d686e['commandName']===_0x63703d?_0x5d686e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x473a38,'*Format:*\x20%0',_0x246397)}:{'type':'format','content':o(_0x473a38,'*Remove\x20format:*\x20%0',_0x246397)}:void 0x0;});}_0x36001c('bold',o(_0x473a38,'FORMAT_BOLD')),_0x36001c('italic',o(_0x473a38,'FORMAT_ITALIC')),_0x36001c('underline',o(_0x473a38,'FORMAT_UNDERLINE')),_0x36001c('code',o(_0x473a38,'FORMAT_CODE')),_0x36001c('strikethrough',o(_0x473a38,'FORMAT_STRIKETHROUGH')),_0x36001c('subscript',o(_0x473a38,'FORMAT_SUBSCRIPT')),_0x36001c('superscript',o(_0x473a38,'FORMAT_SUPERSCRIPT'));}}class F extends _0x6a3ec8{['afterInit'](){const _0x555e09=this['editor'],_0x21d0b7=_0x555e09['locale'];if(!_0x555e09['plugins']['has']('BlockQuoteEditing'))return;const _0x2e144d=_0x555e09['plugins']['get']('TrackChangesEditing'),_0x200b23=this['editor']['commands']['get']('blockQuote');_0x2e144d['enableCommand']('blockQuote',(_0x54c7ad,_0xb54a7c={})=>{const _0x29928f=this['editor']['model']['document']['selection'],_0x291cf6=_0xb54a7c&&void 0x0!==_0xb54a7c['forceValue']?_0xb54a7c['forceValue']:!_0x200b23['value'];let _0x19fa91=[];if(_0x291cf6){const _0x57c0c5=Array['from'](_0x29928f['getSelectedBlocks']())['filter'](_0x56cc87=>oo(_0x56cc87)||function(_0x3fbd13,_0x3d496f){const _0x53aac2=_0x3d496f['checkChild'](_0x3fbd13['parent'],'blockQuote'),_0x55e6d4=_0x3d496f['checkChild'](['$root','blockQuote'],_0x3fbd13);return _0x53aac2&&_0x55e6d4;}(_0x56cc87,this['editor']['model']['schema']));_0x19fa91=to(_0x57c0c5,_0x555e09['model']);}else{const _0x5c38f1=Array['from'](_0x29928f['getSelectedBlocks']())['filter'](_0x4f6e70=>oo(_0x4f6e70));_0x19fa91=to(_0x5c38f1,_0x555e09['model']);}_0x555e09['model']['change'](()=>{for(const _0x5d075b of _0x19fa91)_0x2e144d['markBlockFormat'](_0x5d075b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x291cf6}]});});}),_0x2e144d['descriptionFactory']['registerDescriptionCallback'](_0x37fde6=>{const {data:_0x159b35}=_0x37fde6;if(_0x159b35&&'blockQuote'==_0x159b35['commandName']){const _0x3929ad=o(_0x21d0b7,'ELEMENT_BLOCK_QUOTE');return _0x159b35['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x21d0b7,'*Set\x20format:*\x20%0',_0x3929ad)}:{'type':'format','content':o(_0x21d0b7,'*Remove\x20format:*\x20%0',_0x3929ad)};}});}}function oo(_0x53f43a){return'blockQuote'==_0x53f43a['parent']['name'];}class L extends _0x6a3ec8{['afterInit'](){const _0x25b8fc=this['editor'],_0x4f8ac0=_0x25b8fc['locale'],_0x1a91f6=_0x25b8fc['plugins']['get']('TrackChangesEditing');_0x25b8fc['plugins']['has']('BookmarkEditing')&&(_0x1a91f6['enableCommand']('insertBookmark'),_0x1a91f6['enableDefaultAttributesIntegration']('updateBookmark'),_0x1a91f6['registerBlockAttribute']('bookmarkId'),_0x1a91f6['descriptionFactory']['registerDescriptionCallback'](_0x2182ab=>{if('insertion'!=_0x2182ab['type']&&'deletion'!=_0x2182ab['type']&&'attribute'!=_0x2182ab['type'])return;const _0x461194=_0x2182ab['getContainedElement']();if(null==_0x461194)return;if(!_0x461194['is']('element','bookmark'))return;const _0x58759f=_0x461194['getAttribute']('bookmarkId');if('insertion'==_0x2182ab['type'])return{'type':'insertion','content':o(_0x4f8ac0,'*Insert:*\x20%0','\x22'+_0x58759f+'\x22\x20'+o(_0x4f8ac0,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2182ab['type'])return{'type':'deletion','content':o(_0x4f8ac0,'*Remove:*\x20%0','\x22'+_0x58759f+'\x22\x20'+o(_0x4f8ac0,'ELEMENT_BOOKMARK'))};const {data:_0x1ca41b}=_0x2182ab;if(!_0x1ca41b||'bookmarkId'!=_0x1ca41b['key'])return;return{'type':'format','content':o(_0x4f8ac0,'*Set\x20bookmark:*\x20%0','\x22'+_0x1ca41b['newValue']+'\x22')};}));}}class J extends _0x6a3ec8{['afterInit'](){const _0x22928e=this['editor'];_0x22928e['plugins']['has']('CaseChange')&&(_0x22928e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x22928e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x22928e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x6a3ec8{['afterInit'](){const _0x63b0e8=this['editor'];_0x63b0e8['commands']['get']('ckbox')&&_0x63b0e8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x6a3ec8{['afterInit'](){const _0x432a33=this['editor'];if(!_0x432a33['plugins']['has']('CodeBlock'))return;const _0x4df4a7=_0x432a33['plugins']['get']('TrackChangesEditing'),_0x191820=_0x432a33['locale'],_0x55eb36=_0x432a33['config']['get']('codeBlock')['languages'],_0x4ec03a=_0x432a33['commands']['get']('codeBlock');_0x4df4a7['enableCommand']('indentCodeBlock'),_0x4df4a7['enableCommand']('outdentCodeBlock'),_0x4df4a7['enableCommand']('codeBlock',(_0x51af00,_0x4ef37d={})=>{const _0x4b3b71=_0x432a33['model'],_0x59d373=_0x432a33['model']['document']['selection'],_0x315b80=_0x4ef37d&&void 0x0!==_0x4ef37d['forceValue']?_0x4ef37d['forceValue']:!_0x4ec03a['value'];let _0x3d65d3;_0x4ef37d['language']||(_0x4ef37d['language']=_0x55eb36[0x0]['language']),_0x3d65d3=_0x315b80?Array['from'](_0x59d373['getSelectedBlocks']())['filter'](_0x3030ee=>eo(_0x3030ee)||function(_0x57e097,_0x311fe6){if(_0x57e097['is']('rootElement')||_0x311fe6['isLimit'](_0x57e097))return!0x1;return _0x311fe6['checkChild'](_0x57e097['parent'],'codeBlock');}(_0x3030ee,_0x4b3b71['schema'])):Array['from'](_0x59d373['getSelectedBlocks']())['filter'](_0x528823=>eo(_0x528823));const _0x17fd5c=to(_0x3d65d3,_0x4b3b71);_0x4b3b71['change'](()=>{for(const _0x27db95 of _0x17fd5c)_0x4df4a7['markBlockFormat'](_0x27db95,{'commandName':'codeBlock','commandParams':[{..._0x4ef37d,'forceValue':_0x315b80}],'formatGroupId':'blockName'});});}),(_0x4df4a7['descriptionFactory']['registerElementLabel']('codeBlock',_0x2657dd=>o(_0x191820,'ELEMENT_CODE_BLOCK',_0x2657dd)),_0x4df4a7['descriptionFactory']['registerDescriptionCallback'](_0x493609=>{if('formatBlock'!=_0x493609['type'])return;const _0x4a3102=_0x191820['t'],{data:_0x55327e}=_0x493609;if(!_0x55327e||'codeBlock'!=_0x55327e['commandName'])return;const _0x5100ab=_0x55327e['commandParams'][0x0]['language'],_0xe4bc57=_0x4a3102(_0x55eb36['find'](_0xe793cc=>_0xe793cc['language']===_0x5100ab)['label'])['toLowerCase']();return _0x55327e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x191820,'*Set\x20format:*\x20%0',o(_0x191820,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xe4bc57+')')}:{'type':'format','content':o(_0x191820,'*Remove\x20format:*\x20%0',o(_0x191820,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5dec79){return'codeBlock'==_0x5dec79['name'];}class z extends _0x6a3ec8{['afterInit'](){const _0x55e76c=this['editor'];if(!_0x55e76c['plugins']['has']('CommentsEditing'))return;_0x55e76c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5b99ad,_0x460b5e,_0x266ad4){const _0x557ff8=[];for(const _0x4589bb of _0x460b5e['getItems']())_0x4589bb['hasAttribute'](_0x5b99ad)&&_0x557ff8['push'](_0x266ad4['createRangeOn'](_0x4589bb));return _0x557ff8;}function De(_0x1483c5,_0x364ac2,{showActiveMarker:_0x3b894a=!0x0}={}){const _0x5b58ee=_0x1483c5['plugins']['get']('TrackChangesEditing');return(_0x4f5884,_0x77309e,_0x220941)=>{if(!_0x220941['consumable']['test'](_0x77309e['markerRange'],_0x4f5884['name']))return;const _0x448931=_0x77309e['markerRange']['getWalker'](),_0x1ab7b3=_0x77309e['markerRange']['start'],_0x1013de=_0x1483c5['model']['schema'];let _0x5a352e=null,_0x560121=null,_0xf66e6a=!0x1,_0x3ea3da=!0x1;for(const _0x3233b5 of _0x448931){const _0x52e444=_0x3233b5['item'];_0xf66e6a=_0xf66e6a||_0x1013de['isContent'](_0x52e444);const _0x39e7b2=_0x220941['mapper']['toViewElement'](_0x52e444);if(_0x39e7b2&&_0x39e7b2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3233b5['type']&&(_0x1013de['isBlock'](_0x52e444)&&!_0x1013de['isLimit'](_0x52e444)&&(_0x52e444['nextSibling']||_0x1ab7b3['isAtEnd']?_0x5a352e&&_0x5a352e['parent']==_0x52e444||(_0x5a352e=_0x52e444,_0xeede08(_0x3233b5['previousPosition']),_0x3ea3da=!0x0):_0x560121=_0x560121||_0x3233b5['previousPosition']));}function _0xeede08(_0x1d28c2){const {authorId:_0x407d57}=_0x5b58ee['_splitMarkerName'](_0x77309e['markerName']),_0x47a254=_0x220941['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x364ac2,'data-author-id':_0x407d57}),_0x5dc759=_0x220941['mapper']['toViewPosition'](_0x1d28c2);_0x3b894a&&_0x5b58ee['activeMarkers']['includes'](_0x77309e['markerName'])&&_0x220941['writer']['addClass']('ck-suggestion-marker--active',_0x47a254),_0x220941['writer']['insert'](_0x5dc759,_0x47a254),_0x220941['mapper']['bindElementToMarker'](_0x47a254,_0x77309e['markerName']);}_0xf66e6a||_0x3ea3da||!_0x560121||_0xeede08(_0x560121);};}class K extends _0x6a3ec8{static get['requires'](){return[_0x385f1d];}['init'](){const _0x35b3c1=this['editor'],_0x185d76=_0x35b3c1['plugins']['get']('TrackChangesEditing');_0x185d76['enableCommand']('delete');const _0xd73530=_0x35b3c1['commands']['get']('deleteForward');_0x185d76['enableCommand']('deleteForward',(_0x5e32f1,_0x2116e7={})=>{const _0x12318e=_0x35b3c1['model']['createSelection'](_0x35b3c1['model']['document']['selection']);_0x12318e['isCollapsed']&&_0x35b3c1['model']['modifySelection'](_0x12318e,{'direction':'forward','unit':_0x2116e7['unit']});const _0x3c570d=_0x12318e['getFirstRange'](),_0x1875ae=_0x36d42c['fromRange'](_0x3c570d);let _0x22e385;_0x5e32f1(_0x2116e7),_0x22e385='$graveyard'==_0x1875ae['root']['rootName']?_0x35b3c1['model']['createRange'](_0x3c570d['start']):_0x35b3c1['model']['createRange'](_0x1875ae['start'],_0x1875ae['end']),_0x1875ae['detach'](),_0x35b3c1['model']['enqueueChange'](_0xd73530['buffer']['batch'],_0x460ab9=>{_0xd73530['buffer']['lock'](),_0x460ab9['setSelection'](_0x460ab9['createRange'](_0x22e385['end'])),_0xd73530['buffer']['unlock']();});}),_0x35b3c1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x35b3c1,'merge'),{'priority':'high'}),_0x35b3c1['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5186fc,_0x357b5d,_0x4eb571)=>{_0x4eb571['options']['showSuggestionHighlights']&&De(_0x35b3c1,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5186fc,_0x357b5d,_0x4eb571);},{'priority':'high'}),_0x35b3c1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2d5759,_0x481832,_0x16c093)=>{const _0x35d6de=_0x16c093['mapper']['markerNameToElements'](_0x481832['markerName']);if(_0x35d6de){for(const _0x5d6ee0 of _0x35d6de)_0x5d6ee0['is']('uiElement')&&(_0x16c093['mapper']['unbindElementFromMarkerName'](_0x5d6ee0,_0x481832['markerName']),_0x16c093['writer']['remove'](_0x5d6ee0));}},{'priority':'high'});}}class W extends _0x6a3ec8{['afterInit'](){const _0xcfb7d7=this['editor'];if(!_0xcfb7d7['plugins']['has']('ListEditing'))return;const _0x25a208=_0xcfb7d7['locale'],_0x4bf489=_0xcfb7d7['plugins']['get']('TrackChangesEditing'),_0x306f64=_0xcfb7d7['plugins']['has']('TodoListEditing'),_0x2c92c6=!!_0xcfb7d7['config']['get']('list.multiBlock');function _0x2dfb12(_0x5e30ca){return{'type':'format','content':''+o(_0x25a208,'*Set\x20format:*\x20%0',_0x5e30ca)};}function _0x228097(_0x277da5){return{'type':'format','content':''+o(_0x25a208,'*Remove\x20format:*\x20%0',_0x277da5)};}_0x4bf489['enableDefaultAttributesIntegration']('numberedList'),_0x4bf489['enableDefaultAttributesIntegration']('bulletedList'),_0x4bf489['enableDefaultAttributesIntegration']('customNumberedList'),_0x4bf489['enableDefaultAttributesIntegration']('customBulletedList'),_0x4bf489['enableDefaultAttributesIntegration']('indentList'),_0x4bf489['enableDefaultAttributesIntegration']('outdentList'),_0x4bf489['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4bf489['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4bf489['registerBlockAttribute']('listItemId'),_0x4bf489['registerBlockAttribute']('listType'),_0x4bf489['registerBlockAttribute']('listIndent'),_0x2c92c6&&(_0x4bf489['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4bf489['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x306f64&&(_0x4bf489['enableDefaultAttributesIntegration']('todoList'),_0x4bf489['enableDefaultAttributesIntegration']('checkTodoList'),_0x4bf489['registerBlockAttribute']('todoListChecked'),_0x4bf489['descriptionFactory']['registerDescriptionCallback'](_0x63061d=>{const {data:_0x48d725}=_0x63061d;if(_0x48d725&&'todoListChecked'==_0x48d725['key'])return{'type':'format','content':_0x48d725['newValue']?o(_0x25a208,'*Check\x20item*'):o(_0x25a208,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3d25d6=>{if(_0x3d25d6['batch']['isUndo'])return!0x1;let _0x234bb4=!0x1;const _0x58f2e4=_0x4bf489['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x342572=>'todoListChecked'===_0x4bf489['_getAttributeKey'](_0x342572));for(const _0x501741 of _0x58f2e4){'todo'!=_0x501741['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4bf489['_findSuggestions'](_0x501741['getFirstRange'](),'attribute')['find'](_0x4b4a0b=>'listType'===_0x4bf489['_getAttributeKey'](_0x4b4a0b['suggestion']))||(_0x3d25d6['removeMarker'](_0x501741['getFirstMarker']()),_0x234bb4=!0x0));}return _0x234bb4;})),_0x4bf489['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x25a208,'FORMAT_INDENT'));const _0x594322={'type':'format','content':''};_0x4bf489['descriptionFactory']['registerDescriptionCallback'](_0x20e297=>{const {data:_0x480afd}=_0x20e297;if(!_0x480afd||'listType'!=_0x480afd['key'])return;let _0xb908f4=_0x20e297['head'];for(;_0xb908f4;){if(_0xb908f4['data']&&(('listStyle'==_0xb908f4['data']['key']||'listMarkerStyle'==_0xb908f4['data']['key'])&&(_0xb908f4['data']['newValue']&&'default'!=_0xb908f4['data']['newValue']||'default'!=_0xb908f4['data']['oldValue']&&!_0x480afd['newValue'])||!_0x2c92c6&&_0xb908f4['data']['key']==m))return _0x594322;_0xb908f4=_0xb908f4['next'];}if(null==_0x480afd['newValue'])switch(_0x480afd['oldValue']){case'bulleted':return _0x228097(o(_0x25a208,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x228097(o(_0x25a208,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x228097(o(_0x25a208,'ELEMENT_TODO_LIST'));}switch(_0x480afd['newValue']){case'bulleted':return _0x2dfb12(o(_0x25a208,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2dfb12(o(_0x25a208,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2dfb12(o(_0x25a208,'ELEMENT_TODO_LIST'));}}),_0x4bf489['descriptionFactory']['registerDescriptionCallback'](_0x1565e0=>{const {data:_0x3cce24}=_0x1565e0;if(_0x3cce24&&'listIndent'==_0x3cce24['key'])return null==_0x3cce24['newValue']||null==_0x3cce24['oldValue']&&0x0==_0x3cce24['newValue']?_0x594322:void 0x0;}),_0x4bf489['descriptionFactory']['registerDescriptionCallback'](_0x4fa463=>{if('attribute'!=_0x4fa463['type'])return;const {data:_0x2034f9}=_0x4fa463;if(!_0x2034f9||'listItemId'!=_0x2034f9['key'])return;const _0x752b4b=Te(_0x4fa463);return'newValue'==_0x752b4b?{'type':'format','content':o(_0x25a208,'*Merge:*\x20list\x20item')}:'oldValue'==_0x752b4b?{'type':'format','content':o(_0x25a208,'*Split:*\x20list\x20item')}:_0x594322;}),_0xcfb7d7['model']['document']['registerPostFixer'](_0x5c0292=>this['listItemIdFixer'](_0x5c0292)),_0xcfb7d7['model']['document']['registerPostFixer'](_0x139809=>this['noTrackChangesFixer'](_0x139809)),_0xcfb7d7['model']['document']['on']('change:data',(_0x7c1812,_0x3f0ad0)=>{if(_0x3f0ad0['isUndo']||!_0x3f0ad0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x135c11){if(_0x135c11['batch']['isUndo']||!_0x135c11['batch']['isLocal'])return!0x1;let _0x35c555=!0x1;const _0x16c1a7=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23429f=>_0x23429f['data']&&'listItemId'==_0x23429f['data']['key'])['filter'](_0x36153a=>_0x36153a['data']['newValue']&&_0x36153a['data']['oldValue']);for(const _0x4cac65 of _0x16c1a7)Te(_0x4cac65)||(_0x135c11['removeMarker'](_0x4cac65['getFirstMarker']()),_0x35c555=!0x0);return _0x35c555;}['noTrackChangesFixer'](_0x376f30){if(_0x376f30['batch']['isUndo']||!_0x376f30['batch']['isLocal'])return!0x1;const _0x2733a4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2733a4['trackChangesCommand']['value'])return!0x1;let _0x2248cb=!0x1;const _0x6799d1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5d066d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xd8e8d0=>'attribute'==_0xd8e8d0['type'])['filter'](_0x58046f=>_0x6799d1['includes'](_0x58046f['attributeKey']));if(0x0==_0x5d066d['length'])return _0x2248cb;for(const _0x2f39e0 of _0x5d066d){const _0x4c2071=_0x2733a4['_findSuggestions'](_0x2f39e0['range'],'attribute')['filter'](_0x18aca2=>!_0x18aca2['meta']['isNextTo'])['map'](_0x4f583e=>_0x4f583e['suggestion'])['filter'](_0x2b50ef=>{const _0x308687=_0x2733a4['_getAttributeKey'](_0x2b50ef);return _0x6799d1['includes'](_0x308687);});if(_0x4c2071['length']){for(const _0x575671 of _0x4c2071)_0x376f30['removeMarker'](_0x575671['getFirstMarker']());_0x2248cb=!0x0;}}return _0x2248cb;}['assureChains'](){const _0x56ff01=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35a1a0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3b7377;const _0x5161df=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x935db5=>{if(_0x935db5['data']['oldRange']||!_0x935db5['data']['newRange'])return null;if(!_0x935db5['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xb67db3}=_0x56ff01['_splitMarkerName'](_0x935db5['name']);if(!_0x56ff01['hasSuggestion'](_0xb67db3))return null;const _0x1c99d4=_0x56ff01['getSuggestion'](_0xb67db3);return _0x35a1a0['includes'](_0x1c99d4['data']['key']);})['map'](_0x42d7c7=>{const {id:_0xc08d05}=_0x56ff01['_splitMarkerName'](_0x42d7c7['name']),_0x4326a3=_0x56ff01['getSuggestion'](_0xc08d05);return _0x3b7377=_0x4326a3['attributes']['groupId'],_0x4326a3['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5161df['size'])return;const _0x5a7194=_0x56ff01['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x374e18=>'attribute'==_0x374e18['type']&&_0x374e18['data']&&_0x35a1a0['includes'](_0x374e18['data']['key'])&&_0x374e18['attributes']['groupId']!=_0x3b7377)['map'](_0x2f697c=>({'listItem':_0x2f697c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2f697c['attributes']['groupId']})),_0x8b63ea=new Set();for(const {groupId:_0x42d071,listItem:_0xf9f7b8}of _0x5a7194)_0x5161df['has'](_0xf9f7b8)&&_0x8b63ea['add'](_0x42d071);for(const _0x17eb78 of _0x56ff01['getSuggestions']())_0x8b63ea['has'](_0x17eb78['attributes']['groupId'])&&_0x17eb78['setAttribute']('groupId',_0x3b7377);}['_supportLegacySuggestions'](){const _0x9f92c1=this['editor'],_0x1b78d8=_0x9f92c1['locale'],_0x501e6c=_0x9f92c1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x501e6c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xff01b4,_0x33a81e){const _0x12f1f3=[];for(let _0x36206c of _0xff01b4)_0x36206c['start']['nodeAfter']===_0x36206c['end']['parent']&&(_0x36206c=_0x9f92c1['model']['createRange'](_0x9f92c1['model']['createPositionAt'](_0x36206c['start']['nodeAfter'],0x0))),_0x12f1f3['push'](_0x36206c);_0x9f92c1['model']['change'](_0x3cefc4=>{const _0x45a51f=_0x9f92c1['model']['document']['selection'],_0x22c5ff=Array['from'](_0x45a51f['getRanges']())['map'](_0x3e360f=>_0x36d42c['fromRange'](_0x3e360f));_0x3cefc4['setSelection'](_0x12f1f3),_0x9f92c1['commands']['get'](_0x33a81e['commandName'])['refresh'](),_0x33a81e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x9f92c1['execute'](_0x33a81e['commandName'],..._0x33a81e['commandParams']),_0x3cefc4['setSelection'](_0x22c5ff);for(const _0x5c90e5 of _0x22c5ff)_0x5c90e5['detach']();});}),_0x501e6c['descriptionFactory']['registerElementLabel'](function(_0x31513a){const _0x57ebc6=!_0x9f92c1['model']['schema']['isObject'](_0x31513a),_0x33d251=_0x31513a['previousSibling'],_0x152508=_0x31513a['nextSibling'],_0x265495=_0x31513a['getAttribute']('listItemId'),_0x49f893=!_0x33d251||_0x33d251['getAttribute']('listItemId')!==_0x265495,_0x30ef17=!_0x152508||_0x152508['getAttribute']('listItemId')!==_0x265495;return _0x57ebc6&&Boolean(_0x265495)&&_0x49f893&&_0x30ef17;},_0x55a998=>o(_0x1b78d8,'ELEMENT_LIST_ITEM',_0x55a998));}['_registerLegacyDescription'](){const _0x482893=this['editor'],_0x4a5040=_0x482893['locale'];function _0x5c2acd(_0x2f657d){const _0x3cb1c0=_0x482893['commands']['get']('bulletedList')['value'],_0xa77b7f=_0x482893['commands']['get']('numberedList')['value'];return'numberedList'===_0x2f657d?_0x3cb1c0:_0xa77b7f;}_0x482893['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x194fa9){if('formatBlock'!=_0x194fa9['type'])return;const {data:_0x4eae4c}=_0x194fa9;if(!_0x4eae4c)return;let _0x372fe0,_0x5928b3,_0x764118,_0x21320f;switch(_0x4eae4c['commandName']){case'bulletedList':_0x764118=_0x4eae4c['commandParams'][0x0]['forceValue'],_0x21320f=_0x5c2acd(_0x4eae4c['commandName']),_0x372fe0=_0x764118?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x21320f&&_0x482893['config']['get']('list.multiBlock')||(_0x372fe0='*Change\x20to:*\x20%0'),_0x5928b3={'type':'format','content':o(_0x4a5040,_0x372fe0,o(_0x4a5040,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x764118=_0x4eae4c['commandParams'][0x0]['forceValue'],_0x21320f=_0x5c2acd(_0x4eae4c['commandName']),_0x372fe0=_0x764118?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x21320f&&_0x482893['config']['get']('list.multiBlock')||(_0x372fe0='*Change\x20to:*\x20%0'),_0x5928b3={'type':'format','content':o(_0x4a5040,_0x372fe0,o(_0x4a5040,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x372fe0='*Indent:*\x20%0',_0x5928b3={'type':'format','content':o(_0x4a5040,_0x372fe0,o(_0x4a5040,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x372fe0=function(_0x3e606f){const _0x4d2d2c=_0x3e606f['getFirstRange']();let _0x4591cf=_0x4d2d2c['start']['nodeAfter'];for(;_0x4591cf&&_0x4d2d2c['containsItem'](_0x4591cf);){if(_0x4591cf['getAttribute']('listIndent')>0x0)return!0x1;_0x4591cf=_0x4591cf['nextSibling'];}return!0x0;}(_0x194fa9)?o(_0x4a5040,'*Format:*\x20remove\x20from\x20%0',o(_0x4a5040,function(_0x16eedd){return'ELEMENT_'+_0x16eedd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x194fa9))):o(_0x4a5040,'*Outdent:*\x20%0',o(_0x4a5040,'ELEMENT_LIST_ITEM')),_0x5928b3={'type':'format','content':_0x372fe0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4eae4c['multipleBlocks']&&(_0x372fe0='*Merge:*\x20%0',_0x5928b3={'type':'deletion','content':o(_0x4a5040,_0x372fe0,o(_0x4a5040,'ELEMENT_LIST_ITEM'))});}return _0x5928b3;});}}function Te(_0x5b6dfd){let _0x53acc6=_0x5b6dfd['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x53acc6;){const _0xf6f21f=_0x53acc6['getAttribute']('listItemId');if(!_0xf6f21f)return!0x1;if(_0xf6f21f==_0x5b6dfd['data']['newValue'])return'newValue';if(_0xf6f21f==_0x5b6dfd['data']['oldValue'])return'oldValue';_0x53acc6=_0x53acc6['previousSibling'];}return!0x1;}class Se extends _0x6a3ec8{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x39e322=this['editor']['config']['get']('list.properties'),_0x2e7cba=this['editor']['plugins']['get']('TrackChangesEditing');_0x39e322['styles']&&(_0x2e7cba['enableDefaultAttributesIntegration']('listStyle'),_0x2e7cba['registerBlockAttribute']('listStyle')),_0x39e322['reversed']&&(_0x2e7cba['enableDefaultAttributesIntegration']('listReversed'),_0x2e7cba['registerBlockAttribute']('listReversed')),_0x39e322['startIndex']&&(_0x2e7cba['enableDefaultAttributesIntegration']('listStart'),_0x2e7cba['registerBlockAttribute']('listStart'));const _0x35d6ba={'type':'format','content':''};_0x2e7cba['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2b1b58=this['editor']['locale'];_0x2e7cba['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2b1b58,'FORMAT_LIST_REVERSED')),_0x2e7cba['descriptionFactory']['registerDescriptionCallback'](_0x5386e9=>{const {data:_0x3b0687}=_0x5386e9;if(_0x3b0687&&'listReversed'==_0x3b0687['key'])return null==_0x3b0687['newValue']||0x0==_0x3b0687['newValue']&&null==_0x3b0687['oldValue']?_0x35d6ba:void 0x0;}),_0x2e7cba['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2b1b58,'FORMAT_LIST_START')),_0x2e7cba['descriptionFactory']['registerDescriptionCallback'](_0x43fdfc=>{const {data:_0x38f78e}=_0x43fdfc;if(_0x38f78e&&'listStart'==_0x38f78e['key'])return null==_0x38f78e['newValue']||0x1==_0x38f78e['newValue']&&null==_0x38f78e['oldValue']?_0x35d6ba:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4edc8b=>{if(_0x4edc8b['batch']['isUndo'])return!0x1;let _0x4acbed=!0x1;const _0x9b5cdc=_0x2e7cba['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x564d35=>{const _0x58ccf8=_0x2e7cba['_getAttributeKey'](_0x564d35);return'listStart'==_0x58ccf8||'listReversed'==_0x58ccf8;});for(const _0x5f2e9f of _0x9b5cdc){const _0x2947d4=_0x5f2e9f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2947d4||'customNumbered'==_0x2947d4)continue;_0x2e7cba['_findSuggestions'](_0x5f2e9f['getFirstRange'](),'attribute')['find'](_0x472f87=>'listType'==_0x2e7cba['_getAttributeKey'](_0x472f87['suggestion']))||(_0x4edc8b['removeMarker'](_0x5f2e9f['getFirstMarker']()),_0x4acbed=!0x0);}return _0x4acbed;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5d9681){const _0x2ab7fa=this['editor']['locale'],{data:_0x202fdd}=_0x5d9681,_0x34c543={'type':'format','content':''};if(!_0x202fdd||'listStyle'!=_0x202fdd['key'])return;if(!_0x202fdd['oldValue'])return'default'==_0x202fdd['newValue']?_0x34c543:{'type':'format','content':''+o(_0x2ab7fa,'*Set\x20format:*\x20%0',o(_0x2ab7fa,this['_getTranslationKeyForListStyle'](_0x202fdd['newValue'])))};if(!_0x202fdd['newValue']){if('default'==_0x202fdd['oldValue'])return _0x34c543;let _0x493d81=_0x5d9681['head'];for(;_0x493d81;){if(_0x493d81['data']&&'listType'==_0x493d81['data']['key']&&_0x493d81['data']['newValue'])return _0x34c543;_0x493d81=_0x493d81['next'];}return{'type':'format','content':''+o(_0x2ab7fa,'*Remove\x20format:*\x20%0',o(_0x2ab7fa,this['_getTranslationKeyForListStyle'](_0x202fdd['oldValue'])))};}if('default'!=_0x202fdd['newValue'])return{'type':'format','content':''+o(_0x2ab7fa,'*Set\x20format:*\x20%0',o(_0x2ab7fa,this['_getTranslationKeyForListStyle'](_0x202fdd['newValue'])))};let _0x1bfd0b=_0x5d9681['head'];for(;_0x1bfd0b;){if(_0x1bfd0b['data']&&'listType'==_0x1bfd0b['data']['key']&&_0x1bfd0b['data']['newValue']&&_0x1bfd0b['data']['oldValue'])return _0x34c543;_0x1bfd0b=_0x1bfd0b['next'];}return{'type':'format','content':o(_0x2ab7fa,'*Set\x20format:*\x20%0',o(_0x2ab7fa,'ELEMENT_'+_0x5d9681['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x7094f8=this['editor'],_0x16f17a=_0x7094f8['locale'];_0x7094f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x258d10=>{if('formatBlock'!=_0x258d10['type'])return;const {data:_0x484e47}=_0x258d10;if(!_0x484e47)return;let _0x270991,_0x444d6d;switch(_0x484e47['commandName']){case'listStyle':_0x270991='*Change\x20to:*\x20%0',_0x444d6d={'type':'format','content':o(_0x16f17a,_0x270991,o(_0x16f17a,this['_getTranslationKeyForListStyle'](_0x484e47['commandParams'][0x0]['type'])))};break;case'listReversed':_0x270991=_0x484e47['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x444d6d={'type':'format','content':o(_0x16f17a,_0x270991)};break;case'listStart':_0x270991='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x444d6d={'type':'format','content':o(_0x16f17a,_0x270991,_0x484e47['commandParams'][0x0]['startIndex'])};}return _0x444d6d;});}['_getTranslationKeyForListStyle'](_0x5b79c2){return'ELEMENT_'+function(_0x4f8dfe){if(_e['includes'](_0x4f8dfe))return'bulleted';if(Re['includes'](_0x4f8dfe))return'numbered';return null;}(_0x5b79c2)['toUpperCase']()+'_LIST_'+_0x5b79c2['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x6a3ec8{['afterInit'](){const _0x46fc6f=this['editor'];_0x46fc6f['commands']['get']('emoji')&&_0x46fc6f['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x6a3ec8{static get['requires'](){return[_0xbcef9];}['init'](){const _0x10b494=this['editor'],_0x30d303=_0x10b494['plugins']['get']('TrackChangesEditing'),_0x282497=_0x10b494['commands']['get']('enter');_0x30d303['enableCommand']('enter',()=>{_0x10b494['model']['change'](_0x58da24=>{const _0x4d6ce3=_0x10b494['model']['document']['selection'],_0x301330=_0x4d6ce3['getFirstPosition'](),_0x263ee5=_0x36d42c['fromRange'](_0x4d6ce3['getFirstRange']());if(_0x282497['enterBlock'](_0x58da24)){const _0x36f820=_0x10b494['model']['createPositionAt'](_0x301330['parent']['nextSibling'],0x0),_0x1e71a0=_0x58da24['createRange'](_0x301330,_0x36f820);_0x30d303['markInsertion'](_0x1e71a0);}else _0x58da24['setSelection'](_0x58da24['createRange'](_0x263ee5['end']));_0x263ee5['detach'](),_0x282497['fire']('afterExecute',{'writer':_0x58da24});});}),_0x10b494['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x10b494,'split'),{'priority':'high'}),_0x10b494['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x353ad5,_0x50bec6,_0x4af458)=>{const _0x541a67=_0x4af458['mapper']['markerNameToElements'](_0x50bec6['markerName']);if(_0x541a67){for(const _0x557fab of _0x541a67)_0x557fab['hasClass']('ck-suggestion-marker-split')&&(_0x4af458['mapper']['unbindElementFromMarkerName'](_0x557fab,_0x50bec6['markerName']),_0x4af458['writer']['remove'](_0x557fab));}},{'priority':'high'}),_0x10b494['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3718ac,_0x2173f0,_0x4ee916)=>{_0x4ee916['options']['showSuggestionHighlights']&&De(_0x10b494,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3718ac,_0x2173f0,_0x4ee916);},{'priority':'high'});}}class Z extends _0x6a3ec8{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x247e4b=this['editor']['plugins']['get']('TrackChangesEditing');_0x247e4b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x247e4b['enableCommand']('findNext'),_0x247e4b['enableCommand']('findPrevious'),_0x247e4b['enableCommand']('replace'),_0x247e4b['enableCommand']('replaceAll');}['handleFindCommand'](_0x348a09,_0x2c0158,_0x219f9c={}){const _0x298536=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x348a09(_0x19a64b=>{let _0x4c549a=('string'==typeof _0x2c0158?_0x298536['findByTextCallback'](_0x2c0158,_0x219f9c):_0x2c0158)(_0x19a64b);Array['isArray'](_0x4c549a)&&(_0x4c549a={'results':_0x4c549a,'searchText':'string'==typeof _0x2c0158?_0x2c0158:''});const _0x5467c2=_0x4c549a['results']['filter'](_0x5c4de2=>!0x1===this['_isInDeletionRange'](_0x5c4de2,_0x19a64b['item']));return{..._0x4c549a,'results':_0x5467c2};},_0x219f9c);}['_isInDeletionRange'](_0x5567db,_0x3b2e0a){const _0x3963e6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b2e0a,_0x5567db['start']),this['editor']['model']['createPositionAt'](_0x3b2e0a,_0x5567db['end']));for(const _0x32a833 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3963e6['getIntersection'](_0x32a833['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x6a3ec8{['afterInit'](){const _0x21ff33=this['editor']['locale'],_0x160d07=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x435307,commandName:_0x151b05}of ro)this['editor']['plugins']['has'](_0x435307)&&(_0x160d07['enableDefaultAttributesIntegration'](_0x151b05),_0x160d07['registerInlineAttribute'](_0x151b05));_0x160d07['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x21ff33,'FORMAT_FONT_SIZE')),_0x160d07['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x21ff33,'FORMAT_FONT_FAMILY')),_0x160d07['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x21ff33,'FORMAT_FONT_COLOR')),_0x160d07['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x21ff33,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55c834=this['editor'],_0x382297=_0x55c834['locale'];_0x55c834['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c6175=>{const _0x5c58cd=_0x382297['t'];if('formatInline'!=_0x4c6175['type'])return;const {data:_0x387c92}=_0x4c6175;if(null!=_0x387c92){if('fontSize'==_0x387c92['commandName']){const _0x4b076b=_0x387c92['commandParams'][0x0]['value'];if(_0x4b076b){const _0x1e2d06=_0x5c58cd(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4f1eda=>_0x4f1eda['model']==_0x4b076b)['title'])['toLowerCase']();return{'type':'format','content':o(_0x382297,'*Set\x20font\x20size:*\x20%0',_0x1e2d06)};}return{'type':'format','content':o(_0x382297,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x387c92['commandName']){const _0x103c65=_0x387c92['commandParams'][0x0]['value'];return _0x103c65?{'type':'format','content':o(_0x382297,'*Set\x20font\x20family:*\x20%0',_0x103c65)}:{'type':'format','content':o(_0x382297,'*Reset\x20font\x20family*')};}if('fontColor'==_0x387c92['commandName']){const _0x1928ee=_0x387c92['commandParams'][0x0]['value'];if(_0x1928ee){const _0x11b56b=_0x365eb3(this['editor']['config']['get']('fontColor.colors'))['find'](_0xab6b25=>_0xab6b25['model']==_0x1928ee);let _0x3eb4c6=_0x1928ee,_0xf3d7d1='';return _0x11b56b&&(_0x3eb4c6=_0x11b56b['label'],_0xf3d7d1=_0x5c58cd(_0x3eb4c6)['toLowerCase']()),{'type':'format','content':o(_0x382297,'*Set\x20font\x20color:*\x20%0',_0xf3d7d1)['trim'](),'color':{'value':_0x1928ee,'title':_0xf3d7d1||_0x3eb4c6}};}return{'type':'format','content':o(_0x382297,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x387c92['commandName']){const _0xe71f66=_0x387c92['commandParams'][0x0]['value'];if(_0xe71f66){const _0x6265a1=_0x365eb3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x449362=>_0x449362['model']==_0xe71f66);let _0x14335d=_0xe71f66,_0x633a65='';return _0x6265a1&&(_0x14335d=_0x6265a1['label'],_0x633a65=_0x5c58cd(_0x14335d)['toLowerCase']()),{'type':'format','content':o(_0x382297,'*Set\x20font\x20background\x20color:*\x20%0',_0x633a65)['trim'](),'color':{'value':_0xe71f66,'title':_0x633a65||_0x14335d}};}return{'type':'format','content':o(_0x382297,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x6a3ec8{['afterInit'](){const _0x328d8e=this['editor'],_0x1e383a=_0x328d8e['plugins']['get']('TrackChangesEditing'),_0x3e9fa4=_0x328d8e['commands']['get']('copyFormat'),_0x34d0b3=_0x328d8e['commands']['get']('pasteFormat');_0x3e9fa4&&_0x34d0b3&&(_0x1e383a['enableDefaultAttributesIntegration']('pasteFormat'),_0x1e383a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x25ac36=this['editor'],_0x1aed42=_0x25ac36['locale'];_0x25ac36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa3b8f4=>{if('formatBlock'!=_0xa3b8f4['type']&&'formatInline'!=_0xa3b8f4['type'])return;const {data:_0x56aa46}=_0xa3b8f4;if(_0x56aa46&&'pasteFormat'===_0x56aa46['commandName']){const _0x137f15=[],_0x1186dd=_0x56aa46['commandParams'][0x0];for(const [_0x4dcd00,_0x5f0a57]of Object['entries'](_0x1186dd))_0x137f15['push'](so(_0x25ac36,_0x4dcd00,_0x5f0a57));return _0x137f15['length']?{'type':'format','content':o(_0x1aed42,'*Set\x20format\x20to:*\x20%0',_0x137f15['join'](',\x20'))}:{'type':'format','content':o(_0x1aed42,'*Remove\x20all\x20formatting*')};}});}}function so(_0x53734a,_0x2841f5,_0x1da499){const _0x3d6f41=_0x53734a['locale']['t'],_0x495078=_0x2841f5['split'](/(?=[A-Z])/)['join']('\x20'),_0x1debd8=_0x3d6f41(_0x495078['charAt'](0x0)['toUpperCase']()+_0x495078['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1da499)return _0x1debd8;if('fontColor'===_0x2841f5||'fontBackgroundColor'===_0x2841f5){const _0xf34f3f=_0x365eb3(_0x53734a['config']['get']('fontColor.colors'))['find'](_0x40422d=>_0x40422d['model']==_0x1da499);return _0x1debd8+'\x20('+(_0xf34f3f?_0x3d6f41(_0xf34f3f['label'])['toLowerCase']():_0x1da499)+')';}if('fontSize'===_0x2841f5&&isNaN(parseFloat(_0x1da499))){const _0x338108=_0x53734a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x53734a['config']['get']('fontSize.options'))['find'](_0x3cd0d0=>_0x3cd0d0['model']==_0x1da499);return _0x1debd8+'\x20('+(_0x338108?_0x3d6f41(_0x338108['title'])['toLowerCase']():_0x1da499)+')';}return _0x1debd8+'\x20('+_0x1da499+')';}class it extends _0x6a3ec8{['_headingOptions'];['afterInit'](){const _0x306bb0=this['editor'];if(!_0x306bb0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x306bb0['config']['get']('heading.options');const _0x55b655=_0x306bb0['locale'],_0x459b99=_0x306bb0['plugins']['get']('TrackChangesEditing');_0x459b99['enableDefaultAttributesIntegration']('heading');for(const _0x29eba3 of this['_headingOptions'])'paragraph'!=_0x29eba3['model']&&_0x459b99['descriptionFactory']['registerElementLabel'](_0x29eba3['model'],_0xfdd622=>{const _0x5e438e=this['_getHeadingLevel'](_0x29eba3['model']);return null!==_0x5e438e?_0x33eb67(_0xfdd622,_0x5e438e):_0x1f32cc(_0xfdd622,_0x29eba3['title']);});function _0x33eb67(_0xbe6943,_0x42320f){return o(_0x55b655,'ELEMENT_HEADING',[_0xbe6943,_0x42320f]);}function _0x1f32cc(_0x547fa0,_0x3e3ac5){return o(_0x55b655,'ELEMENT_HEADING_CUSTOM',[_0x547fa0,_0x3e3ac5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50977b=this['editor'],_0x53fc03=_0x50977b['locale'];function _0x1f63cd(_0x2b9dbb,_0x5bb316){return o(_0x53fc03,'ELEMENT_HEADING_CUSTOM',[_0x2b9dbb,_0x5bb316]);}_0x50977b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4982b5=>{if('formatBlock'!=_0x4982b5['type'])return;const {data:_0x471e6b}=_0x4982b5;if(_0x471e6b&&'heading'==_0x471e6b['commandName']){const _0x864217=_0x471e6b['commandParams'][0x0]['value'],_0x289ac3=this['_getHeadingLevel'](_0x864217);if(null!==_0x289ac3)return{'type':'format','content':o(_0x53fc03,'*Change\x20to:*\x20%0',(_0x45c376=0x1,_0x383b7e=_0x289ac3,o(_0x53fc03,'ELEMENT_HEADING',[_0x45c376,_0x383b7e])))};const _0x1fddff=this['_headingOptions']['find'](_0x4caba7=>_0x4caba7['model']===_0x864217)['title'];return{'type':'format','content':o(_0x53fc03,'*Change\x20to:*\x20%0',_0x1f63cd(0x1,_0x1fddff))};}var _0x45c376,_0x383b7e;});}['_getHeadingLevel'](_0x2ec966){const _0x41c253=_0x2ec966['match'](/^heading(\d+)/);if(_0x41c253)return _0x41c253[0x1];const _0x431e3f=this['_headingOptions']?.['find'](_0x3257fa=>_0x3257fa['model']==_0x2ec966);if(_0x431e3f&&_0x431e3f['view']){const _0x1942b2=_0x431e3f['view'],_0x58ce89=(_0x1942b2['name']??_0x1942b2)['match'](/^h(\d+)/);if(_0x58ce89)return _0x58ce89[0x1];}return null;}}class et extends _0x6a3ec8{['afterInit'](){const _0x2642c7=this['editor'];if(!_0x2642c7['plugins']['has']('HighlightEditing'))return;const _0x24ec05=_0x2642c7['plugins']['get']('TrackChangesEditing'),_0x2dc6c4=_0x2642c7['locale'];_0x24ec05['enableDefaultAttributesIntegration']('highlight'),_0x24ec05['registerInlineAttribute']('highlight'),_0x24ec05['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2dc6c4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x328dfd=this['editor'],_0x36c5d3=_0x328dfd['locale'];_0x328dfd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3eb7e7=>{if('formatInline'!=_0x3eb7e7['type'])return;const {data:_0x5d9a71}=_0x3eb7e7;if(_0x5d9a71&&'highlight'==_0x5d9a71['commandName']){const _0x2af6f9=_0x36c5d3['t'],_0x39cf53=_0x5d9a71['commandParams'][0x0]['value'];if(_0x39cf53){const _0x3e7612=_0x328dfd['config']['get']('highlight.options')['find'](_0x4b3fe6=>_0x4b3fe6['model']==_0x39cf53),_0x270600=_0x2af6f9(_0x3e7612['title'])['toLowerCase']();return{'type':'format','content':o(_0x36c5d3,'*Set\x20highlight:*\x20%0',_0x270600),'color':{'value':_0x3e7612['color'],'title':_0x3e7612['title']}};}return{'type':'format','content':o(_0x36c5d3,'*Remove\x20highlight*',o(_0x36c5d3,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x6a3ec8{['afterInit'](){const _0x40ebd7=this['editor'];if(!_0x40ebd7['plugins']['has']('HorizontalLineEditing'))return;_0x40ebd7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x378783=_0x40ebd7['plugins']['get']('TrackChangesEditing'),_0x123d7a=_0x40ebd7['locale'];_0x378783['descriptionFactory']['registerElementLabel']('horizontalLine',_0x681d55=>o(_0x123d7a,'ELEMENT_HORIZONTAL_LINE',_0x681d55)),_0x40ebd7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x34b478,{writer:_0x492a19,options:_0x151696})=>{if(!_0x151696['showSuggestionHighlights'])return null;const _0x394778=_0x492a19['createContainerElement']('div'),_0x6adbfa=_0x492a19['createEmptyElement']('hr');return _0x492a19['addClass']('ck-horizontal-line',_0x394778),_0x492a19['insert'](_0x492a19['createPositionAt'](_0x394778,0x0),_0x6adbfa),_0x394778;},'converterPriority':'high'});}}class ot extends _0x6a3ec8{['afterInit'](){const _0x3b9994=this['editor'];if(!_0x3b9994['plugins']['has']('HtmlEmbed'))return;const _0x1934ed=_0x3b9994['plugins']['get']('TrackChangesEditing'),_0x11362c=_0x3b9994['locale'];_0x1934ed['descriptionFactory']['registerElementLabel']('rawHtml',_0x366686=>o(_0x11362c,'ELEMENT_HTML_EMBED',_0x366686)),_0x1934ed['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1934ed['registerBlockAttribute']('value'),_0x1934ed['descriptionFactory']['registerDescriptionCallback'](_0x1a6d35=>{if('attribute'!=_0x1a6d35['type'])return;const {data:_0x3cddc1}=_0x1a6d35;if(_0x3cddc1&&'value'==_0x3cddc1['key']&&_0x1a6d35['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x26c7a7=o(_0x11362c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x11362c,'*Change\x20%0\x20content*',_0x26c7a7)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x431559=this['editor'],_0x3267b6=_0x431559['locale'];_0x431559['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x144383=>{if('formatBlock'!=_0x144383['type'])return;const {data:_0x21db93}=_0x144383;if(_0x21db93&&'htmlEmbed'==_0x21db93['commandName']){const _0x528209=o(_0x3267b6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3267b6,'*Change\x20%0\x20content*',_0x528209)};}});}}class rt extends _0x6a3ec8{['afterInit'](){const _0x303c22=this['editor'];if(!_0x303c22['plugins']['has']('ImageEditing'))return;const _0x412ae1=_0x303c22['plugins']['get']('TrackChangesEditing'),_0x2770e4=_0x303c22['plugins']['get']('ImageUtils'),_0x36afca=_0x303c22['locale'];_0x412ae1['enableCommand']('insertImage'),_0x412ae1['descriptionFactory']['registerElementLabel']('imageBlock',_0xf53eb9=>o(_0x36afca,'ELEMENT_IMAGE',_0xf53eb9)),_0x412ae1['descriptionFactory']['registerElementLabel']('imageInline',_0x40311f=>o(_0x36afca,'ELEMENT_INLINE_IMAGE',_0x40311f)),_0x412ae1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x36afca,'ELEMENT_CAPTION')),_0x303c22['plugins']['has']('ImageUploadEditing')&&_0x412ae1['enableCommand']('uploadImage'),_0x303c22['plugins']['has']('ImageBlockEditing')&&_0x303c22['plugins']['has']('ImageInlineEditing')&&(_0x412ae1['enableCommand']('imageTypeInline',(_0x92056d,_0xe1669f)=>{const _0x29306b=_0x2770e4['getClosestSelectedImageElement'](_0x303c22['model']['document']['selection']);_0x303c22['model']['change'](()=>{_0x412ae1['markBlockFormat'](_0x29306b,{'commandName':'imageTypeInline','commandParams':[_0xe1669f]},[],'convertBlockImageToInline');});}),_0x412ae1['enableCommand']('imageTypeBlock',(_0x3d441a,_0x177969)=>{_0x303c22['model']['change'](_0x8e8116=>{let _0x218989=_0x2770e4['getClosestSelectedImageElement'](_0x303c22['model']['document']['selection']),_0x412ee4=_0x8e8116['createRangeOn'](_0x218989);const _0x2d2204=_0x556335['fromPosition'](_0x412ee4['start'],'toPrevious'),_0x47b223=_0x556335['fromPosition'](_0x412ee4['end'],'toNext');_0x412ae1['forceDefaultExecution'](()=>_0x3d441a(_0x177969)),_0x218989=_0x2770e4['getClosestSelectedImageElement'](_0x303c22['model']['document']['selection']),_0x412ee4=_0x8e8116['createRangeOn'](_0x218989);const _0x93ff0f=_0x8e8116['createRange'](_0x2d2204,_0x47b223);_0x2d2204['detach'](),_0x47b223['detach'](),_0x412ae1['markBlockFormat'](_0x218989,{'commandName':'imageTypeInline','commandParams':[_0x177969]},[],'convertInlineImageToBlock'),_0x93ff0f['start']['isBefore'](_0x412ee4['start'])&&_0x412ae1['markInsertion'](_0x8e8116['createRange'](_0x93ff0f['start'],_0x412ee4['start']),'convertInlineImageToBlock'),_0x412ee4['end']['isBefore'](_0x93ff0f['end'])&&_0x412ae1['markInsertion'](_0x8e8116['createRange'](_0x412ee4['end'],_0x93ff0f['end']),'convertInlineImageToBlock');});}),_0x412ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x412ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x412ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x412ae1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x412ae1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x412ae1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x16ad0a])=>{const _0x208811=_0x412ae1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1a2b6f=_0x16ad0a['start'],_0x505055=_0x16ad0a['end'];const _0x30e3b9=_0x303c22['model']['schema']['getNearestSelectionRange'](_0x1a2b6f,'backward'),_0xc097e2=_0x303c22['model']['schema']['getNearestSelectionRange'](_0x505055,'forward');_0x30e3b9['isCollapsed']&&(_0x1a2b6f=_0x30e3b9['start']),_0xc097e2['isCollapsed']&&(_0x505055=_0xc097e2['end']),_0x208811([_0x303c22['model']['createRange'](_0x1a2b6f,_0x505055)]);}),_0x412ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4ed5fd),_0x412ae1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4ed5fd)),_0x303c22['plugins']['has']('ImageCaptionEditing')&&(_0x412ae1['enableCommand']('toggleImageCaption',(_0x1a319,_0x472b77)=>{const _0x19607a=_0x303c22['plugins']['get']('ImageCaptionUtils');let _0x3213b4=_0x2770e4['getClosestSelectedImageElement'](_0x303c22['model']['document']['selection']),_0x18f23a=_0x19607a['getCaptionFromImageModelElement'](_0x3213b4);_0x303c22['model']['change'](()=>{if(_0x18f23a)return void _0x412ae1['markDeletion'](_0x303c22['model']['createRangeOn'](_0x18f23a));const _0x3f64ae=_0x2770e4['isBlockImage'](_0x3213b4);_0x1a319(_0x472b77),_0x3213b4=_0x2770e4['getClosestSelectedImageElement'](_0x303c22['model']['document']['selection']),_0x18f23a=_0x19607a['getCaptionFromImageModelElement'](_0x3213b4),_0x412ae1['markInsertion'](_0x303c22['model']['createRangeOn'](_0x18f23a),_0x3f64ae?null:'imageCaption');});}),_0x412ae1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4ed5fd));const _0xba5b55=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3ffd2a(_0x42e771,_0x522421){const _0x3eb9c3=_0xba5b55['findIndex'](({type:_0x2646b0,subType:_0x14a406})=>_0x42e771['type']==_0x2646b0&&_0x42e771['subType']==_0x14a406),_0x3ce92e=_0xba5b55['findIndex'](({type:_0x5c788f,subType:_0x43ef21})=>_0x522421['type']==_0x5c788f&&_0x522421['subType']==_0x43ef21);if(_0x3eb9c3<0x0||_0x3ce92e<0x0)return!0x1;const _0x4919ba=_0x42e771['getFirstRange'](),_0x8213c3=_0x522421['getFirstRange']();if((0x0==_0x3eb9c3||0x1==_0x3eb9c3)&&0x2==_0x3ce92e&&_0x4919ba['isIntersecting'](_0x8213c3))return!0x0;if(0x2==_0x3eb9c3&&0x3==_0x3ce92e){const _0x19f268=_0x412ae1['_findSuggestions'](_0x4919ba,'insertion')['filter'](({suggestion:_0x2ca23a,meta:_0x3891a4})=>_0x3891a4['isOwn']&&'convertInlineImageToBlock'==_0x2ca23a['subType']);if(_0x19f268['length']>0x1&&_0x8213c3['end']['isEqual'](_0x4919ba['start']))return!0x0;if(0x1==_0x19f268['length']&&(_0x4919ba['start']['isEqual'](_0x8213c3['end'])||_0x4919ba['end']['isEqual'](_0x8213c3['start'])))return!0x0;}if(0x3==_0x3eb9c3&&0x3==_0x3ce92e&&_0x4919ba['start']['isBefore'](_0x8213c3['start'])){const _0x5ef8a6=_0x4919ba['end']['nodeAfter'],_0x310007=_0x8213c3['start']['nodeBefore'];return _0x2770e4['isBlockImage'](_0x5ef8a6)&&_0x5ef8a6===_0x310007;}return!0x1;}function _0x4ed5fd(_0x231d2c,_0x101468){return _0x3ffd2a(_0x231d2c,_0x101468)?[_0x231d2c,_0x101468]:_0x3ffd2a(_0x101468,_0x231d2c)?[_0x101468,_0x231d2c]:null;}_0x303c22['plugins']['has']('ImageResize')&&(_0x412ae1['enableDefaultAttributesIntegration']('resizeImage'),_0x412ae1['registerBlockAttribute']('resizedWidth'),_0x412ae1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x36afca,'FORMAT_IMAGE_SIZE'))),_0x303c22['plugins']['has']('ImageTextAlternativeEditing')&&(_0x412ae1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x412ae1['registerBlockAttribute']('alt')),_0x303c22['plugins']['has']('PictureEditing')&&(_0x412ae1['registerBlockAttribute']('sources'),_0x412ae1['descriptionFactory']['registerDescriptionCallback'](_0x3e5d52=>{if('attribute'!=_0x3e5d52['type'])return;const {data:_0x13574c}=_0x3e5d52;return _0x13574c&&'sources'==_0x13574c['key']?{'type':'format','content':''}:void 0x0;})),_0x303c22['plugins']['has']('ImageSizeAttributes')&&(_0x412ae1['registerBlockAttribute']('width'),_0x412ae1['registerBlockAttribute']('height'),_0x412ae1['descriptionFactory']['registerDescriptionCallback'](_0x85f72=>{if('attribute'!=_0x85f72['type'])return;const {data:_0x1d4443}=_0x85f72;return!_0x1d4443||'width'!=_0x1d4443['key']&&'height'!=_0x1d4443['key']?void 0x0:{'type':'format','content':''};})),_0x412ae1['descriptionFactory']['registerDescriptionCallback'](_0x491d5a=>{if(!!_0xba5b55['find'](({type:_0x3bd4ed,subType:_0x4fecd2})=>_0x491d5a['type']==_0x3bd4ed&&_0x491d5a['subType']==_0x4fecd2))return _0x491d5a['previous']?{}:void 0x0;}),_0x412ae1['descriptionFactory']['registerDescriptionCallback'](_0x585515=>{if('insertion'==_0x585515['type']||'deletion'==_0x585515['type']){const _0x1461f0=_0x585515['getContainedElement']();if(_0x1461f0&&_0x1461f0['is']('element','caption'))return{'type':'insertion'==_0x585515['type']?'addObject':'removeObject','element':_0x1461f0,'quantity':0x1};}}),_0x412ae1['descriptionFactory']['registerDescriptionCallback'](_0x49eea6=>'formatBlock'==_0x49eea6['type']&&'convertInlineImageToBlock'==_0x49eea6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x49eea6['type']&&'convertBlockImageToInline'==_0x49eea6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x412ae1['descriptionFactory']['registerDescriptionCallback'](_0x4b43bf=>{if('attribute'!=_0x4b43bf['type'])return;const {data:_0x5277c4}=_0x4b43bf;if(!_0x5277c4||'alt'!=_0x5277c4['key'])return;const _0x6abc98=_0x5277c4['newValue'];return _0x6abc98?{'type':'format','content':o(_0x36afca,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x6abc98+'\x22')}:{'type':'format','content':o(_0x36afca,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24ac80=this['editor'],_0x21997f=_0x24ac80['locale'];_0x24ac80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56a406=>{if('formatBlock'!=_0x56a406['type']&&'formatInline'!=_0x56a406['type'])return;const {data:_0x3cdb1b}=_0x56a406;if(_0x3cdb1b){if('imageTextAlternative'==_0x3cdb1b['commandName']){const _0x29a7ef=_0x3cdb1b['commandParams'][0x0]['newValue'];return _0x29a7ef?{'type':'format','content':o(_0x21997f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x29a7ef+'\x22')}:{'type':'format','content':o(_0x21997f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3cdb1b['commandName']){const _0x146553=_0x3cdb1b['commandParams'][0x0]['width'];return _0x146553?{'type':'format','content':o(_0x21997f,'*Set\x20image\x20width:*\x20%0',_0x146553)}:{'type':'format','content':o(_0x21997f,'*Reset\x20image\x20width*')};}}});}}class at extends _0x6a3ec8{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x186ac6=this['editor']['locale'],_0x3e6160=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e6160['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3e6160['registerBlockAttribute']('src'),_0x3e6160['descriptionFactory']['registerDescriptionCallback'](_0x5c58a7=>{if('attribute'!=_0x5c58a7['type'])return;const {data:_0x2b5f12}=_0x5c58a7;return _0x2b5f12&&'src'==_0x2b5f12['key']?_0x2b5f12['newValue']&&_0x2b5f12['oldValue']?{'type':'format','content':o(_0x186ac6,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2bcb2f=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bcb2f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2bcb2f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2bcb2f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2bcb2f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ad3b1=this['editor'],_0x4899a7=_0x3ad3b1['locale'];_0x3ad3b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54aadb=>{if('formatBlock'!=_0x54aadb['type']&&'formatInline'!=_0x54aadb['type'])return;const {data:_0x6226e}=_0x54aadb;if(!_0x6226e||'replaceImageSource'!=_0x6226e['commandName'])return;return{'type':'format','content':o(_0x4899a7,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x6a3ec8{['afterInit'](){const _0x1df7bf=this['editor'];if(!_0x1df7bf['plugins']['has']('ImageStyleEditing'))return;const _0x43bfd8=_0x1df7bf['plugins']['get']('TrackChangesEditing'),_0x15e8aa=_0x1df7bf['plugins']['get']('ImageUtils'),_0x51a08b={};_0x43bfd8['enableCommand']('imageStyle',(_0x3429ad,_0x45a0f0)=>{const _0x342f50=_0x1df7bf['plugins']['get']('Users')['me'],_0x46ffd7=_0x1df7bf['commands']['get']('imageStyle');let _0x3e1910=_0x15e8aa['getClosestSelectedImageElement'](_0x1df7bf['model']['document']['selection']),_0x486d92=_0x1df7bf['model']['createRangeOn'](_0x3e1910),_0x369726=_0x46ffd7['value'];if(_0x369726==_0x45a0f0['value'])return;const _0x34c044={'commandName':'imageStyle','commandParams':[_0x45a0f0],'formatGroupId':_0xf0931c()};_0x1df7bf['model']['change'](()=>{if(_0x43bfd8['getSuggestions']()['filter'](_0x3b6494=>_0x3b6494['isInContent']&&_0x342f50==_0x3b6494['author']&&('formatBlock'==_0x3b6494['type']||'formatInline'==_0x3b6494['type'])&&('imageStylePreApply'==_0x3b6494['subType']||'imageStylePostApply'==_0x3b6494['subType'])&&_0x3b6494['getFirstRange']()['isEqual'](_0x486d92))['forEach'](_0x3c0e3e=>_0x43bfd8['discardSuggestion'](_0x3c0e3e['head'])),_0x3e1910=_0x15e8aa['getClosestSelectedImageElement'](_0x1df7bf['model']['document']['selection']),_0x486d92=_0x1df7bf['model']['createRangeOn'](_0x3e1910),_0x46ffd7['refresh'](),_0x1df7bf['commands']['get']('imageTypeInline')['refresh'](),_0x1df7bf['commands']['get']('imageTypeBlock')['refresh'](),_0x369726=_0x46ffd7['value'],_0x369726!=_0x45a0f0['value'])return _0x15e8aa['isInlineImage'](_0x3e1910)&&_0x46ffd7['shouldConvertImageType'](_0x45a0f0['value'],_0x3e1910)?(_0x3429ad({..._0x45a0f0,'setImageSizes':!0x1}),_0x3e1910=_0x15e8aa['getClosestSelectedImageElement'](_0x1df7bf['model']['document']['selection']),void _0x43bfd8['markBlockFormat'](_0x3e1910,{..._0x34c044,'commandReversedParams':[{'value':_0x369726||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x15e8aa['isBlockImage'](_0x3e1910)?_0x43bfd8['markBlockFormat'](_0x3e1910,_0x34c044,[],'imageStylePostApply'):_0x43bfd8['markInlineFormat'](_0x486d92,_0x34c044,'imageStylePostApply'));});});for(const _0x5d9069 of _0x1df7bf['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x51a08b[_0x5d9069['name']]=_0x5d9069['title']['toLowerCase']();_0x43bfd8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x43bfd8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x43bfd8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x43bfd8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5798d7])=>{_0x15e8aa['setImageNaturalSizeAttributes'](_0x5798d7['getContainedElement']());}),_0x43bfd8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4e4177,_0x49ac9e)=>{_0x43bfd8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4e4177,{'commandName':_0x49ac9e['commandName'],'commandParams':_0x49ac9e['commandReversedParams']});}),_0x43bfd8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x24ce31,_0x182828){if(_0x51409b(_0x24ce31,_0x182828))return[_0x24ce31,_0x182828];if(_0x51409b(_0x182828,_0x24ce31))return[_0x182828,_0x24ce31];return null;});const _0x30773a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x51409b(_0x5d7e73,_0x3183ec){const _0x4c7e33=_0x30773a['findIndex'](({type:_0xa12509,subType:_0x19a33e})=>_0x5d7e73['type']==_0xa12509&&_0x5d7e73['subType']==_0x19a33e),_0x4dc7de=_0x30773a['findIndex'](({type:_0x122282,subType:_0x265924})=>_0x3183ec['type']==_0x122282&&_0x3183ec['subType']==_0x265924);if(_0x4c7e33<0x0||_0x4dc7de<0x0)return!0x1;const _0x1ee832=_0x5d7e73['getFirstRange'](),_0x5be5da=_0x3183ec['getFirstRange']();if((0x0==_0x4c7e33||0x1==_0x4c7e33)&&0x2==_0x4dc7de&&_0x1ee832['isIntersecting'](_0x5be5da))return!0x0;if(0x2==_0x4c7e33&&0x3==_0x4dc7de){const _0x3535ae=_0x43bfd8['_findSuggestions'](_0x1ee832,'insertion')['filter'](({suggestion:_0x4abf71,meta:_0xa5b1e1})=>_0xa5b1e1['isOwn']&&'convertInlineImageToBlock'==_0x4abf71['subType']);if(_0x3535ae['length']>0x1&&_0x5be5da['end']['isEqual'](_0x1ee832['start']))return!0x0;if(0x1==_0x3535ae['length']&&(_0x1ee832['start']['isEqual'](_0x5be5da['end'])||_0x1ee832['end']['isEqual'](_0x5be5da['start'])))return!0x0;}if(0x3==_0x4c7e33&&0x3==_0x4dc7de&&_0x1ee832['start']['isBefore'](_0x5be5da['start'])){const _0x37993f=_0x1ee832['end']['nodeAfter'],_0x5048a5=_0x5be5da['start']['nodeBefore'];return _0x15e8aa['isBlockImage'](_0x37993f)&&_0x37993f===_0x5048a5;}return!0x1;}_0x1df7bf['model']['document']['registerPostFixer'](()=>{let _0xffa33a=!0x1;const _0x2663c9=Array['from'](_0x1df7bf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5aa40e,data:_0x1f64d6}of _0x2663c9){const {group:_0x408e02,type:_0x448c34,subType:_0x4a7a5a,id:_0x3d5d10}=_0x43bfd8['_splitMarkerName'](_0x5aa40e);if('suggestion'==_0x408e02&&_0x43bfd8['hasSuggestion'](_0x3d5d10)){if('formatBlock'==_0x448c34&&('imageStylePreApply'==_0x4a7a5a||'imageStylePostApply'==_0x4a7a5a)){const _0x800418=_0x43bfd8['getSuggestion'](_0x3d5d10);if(_0x1f64d6['newRange']){const _0x5344e7=_0x800418['getFirstRange']()['getContainedElement']();if(_0x15e8aa['isBlockImage'](_0x5344e7))continue;_0x43bfd8['discardSuggestion'](_0x800418),_0xffa33a=!0x0;}}if('insertion'==_0x448c34&&'imageCaption'==_0x4a7a5a&&!_0x1f64d6['newRange']){const _0x23cc19=_0x43bfd8['getSuggestion'](_0x3d5d10);_0x23cc19['next']&&_0x23cc19['next']['isInContent']&&(_0x43bfd8['discardSuggestion'](_0x23cc19['next']),_0xffa33a=!0x0);}}}return _0xffa33a;}),this['_registerLegacyDescription'](_0x51a08b);}['_registerLegacyDescription'](_0x4cec97){const _0x1e16de=this['editor'],_0x912b0b=_0x1e16de['locale'];_0x1e16de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16b11e=>{if('formatBlock'!=_0x16b11e['type']&&'formatInline'!=_0x16b11e['type'])return;const {data:_0x214670}=_0x16b11e;if(!_0x214670||'imageStyle'!=_0x214670['commandName'])return;const _0x10e795=_0x214670['commandParams'][0x0]['value'];return _0x69d83('side'===_0x10e795?o(_0x912b0b,'FORMAT_SIDE_IMAGE'):_0x4cec97[_0x10e795]||_0x10e795);function _0x69d83(_0x48614e){return{'type':'format','content':o(_0x912b0b,'*Format:*\x20%0',_0x48614e)};}});}}class ut extends _0x6a3ec8{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x21bf2a){super(_0x21bf2a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2a0b60=this['editor'],_0x5d2c06=_0x2a0b60['commands']['get']('importWord'),_0x11866a=_0x2a0b60['commands']['get']('trackChanges');_0x5d2c06&&(_0x5d2c06['on']('execute',(_0xa93c51,[,_0x1693ea])=>{this['_trackChangesValueDuringImport']=_0x11866a['value'],_0x1693ea['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5d2c06,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5d2c06,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x11866a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2a0b60['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x12ae55,_0x3c3f2f){const {suggestions:_0x56c9a9}=_0x3c3f2f,_0x59d931=this['editor']['commands']['get']('trackChanges'),_0x30eea9=_0x59d931['value'];this['_trackChangesValueDuringImport']!==_0x30eea9&&(_0x59d931['execute'](),this['_trackChangesExecuted']=!0x0),_0x56c9a9&&_0x56c9a9['forEach'](({id:_0x13bed0,type:_0x4ece83,author:_0x599a20,created_at:_0x46662c})=>{const _0x2fcf47={'id':_0x13bed0,'type':_0x4ece83,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x599a20,'createdAt':_0x46662c?new Date(_0x46662c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2fcf47);});}}class ft extends _0x6a3ec8{['afterInit'](){const _0xb436e9=this['editor'],_0x1b6738=_0xb436e9['plugins']['get']('TrackChangesEditing');if(_0xb436e9['plugins']['has']('IndentEditing')&&(_0x1b6738['enableCommand']('indent'),_0x1b6738['enableCommand']('outdent')),_0xb436e9['plugins']['has']('IndentBlock')){for(const _0x2a9268 of['indentBlock','outdentBlock'])_0x1b6738['enableDefaultAttributesIntegration'](_0x2a9268);}const _0x8c19f8=_0xb436e9['locale'];_0x1b6738['registerBlockAttribute']('blockIndent'),_0x1b6738['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x8c19f8,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13f6dc=this['editor'],_0x1fa45f=_0x13f6dc['locale'],_0x4fd4d5=_0x13f6dc['plugins']['get']('TrackChangesEditing');_0x4fd4d5['descriptionFactory']['registerDescriptionCallback'](_0x4f796c=>{if('formatBlock'!=_0x4f796c['type'])return;const {data:_0x509e2c}=_0x4f796c;if(!_0x509e2c)return;if('indentBlock'!=_0x509e2c['commandName']&&'outdentBlock'!=_0x509e2c['commandName'])return;const _0x4aa1c5=_0x4f796c['getItems']()[0x0],_0x1aca2b=_0x4fd4d5['descriptionFactory']['getItemLabel'](_0x4aa1c5);return'indentBlock'==_0x509e2c['commandName']?{'type':'format','content':o(_0x1fa45f,'*Indent:*\x20%0',_0x1aca2b)}:'outdentBlock'==_0x509e2c['commandName']?{'type':'format','content':o(_0x1fa45f,'*Outdent:*\x20%0',_0x1aca2b)}:void 0x0;});}}class ht extends _0x6a3ec8{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x6a3ec8{['afterInit'](){const _0x44f030=this['editor'];if(!_0x44f030['plugins']['has']('LinkEditing'))return;const _0x492637=_0x44f030['plugins']['get']('TrackChangesEditing'),_0x3503ae=_0x44f030['commands']['get']('link');_0x492637['enableDefaultAttributesIntegration']('link'),_0x492637['enableDefaultAttributesIntegration']('unlink'),_0x492637['registerInlineAttribute']('linkHref');for(const _0x26b26b of _0x3503ae['manualDecorators'])_0x492637['registerInlineAttribute'](_0x26b26b['id']),_0x492637['descriptionFactory']['registerAttributeLabel'](_0x26b26b['id'],'link\x20('+_0x26b26b['label']['toLowerCase']()+')');_0x492637['descriptionFactory']['registerDescriptionCallback'](_0x44ebd1=>{if('attribute'!=_0x44ebd1['type'])return;const {data:_0x5a5747}=_0x44ebd1;if(!_0x5a5747||'linkHref'!=_0x5a5747['key'])return;const _0x16d4ce=_0x5a5747['newValue'],_0x1d8a7d=_0x44f030['locale'];return{'type':'format','content':null==_0x16d4ce?o(_0x1d8a7d,'*Remove\x20link*'):o(_0x1d8a7d,'*Set\x20link:*\x20%0','\x22'+_0x16d4ce+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39851d=this['editor'],_0x47a8f8=_0x39851d['locale'];_0x39851d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xba9951=>{if('formatInline'!=_0xba9951['type'])return;const {data:_0x2e6b0b}=_0xba9951;if(_0x2e6b0b){if('link'==_0x2e6b0b['commandName']){const _0x3880aa=_0x2e6b0b['commandParams'][0x0];return{'type':'format','content':o(_0x47a8f8,'*Set\x20link:*\x20%0','\x22'+_0x3880aa+'\x22')};}return'unlink'==_0x2e6b0b['commandName']?{'type':'format','content':o(_0x47a8f8,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x6a3ec8{['afterInit'](){const _0x5131b7=this['editor'],_0x17eb75=_0x5131b7['locale'];if(!_0x5131b7['plugins']['has']('LegacyListEditing'))return;const _0x328a06=_0x5131b7['plugins']['get']('TrackChangesEditing'),_0x5bce8e=_0x5131b7['plugins']['has']('LegacyTodoListEditing');function _0x197b46(_0x27f219){return()=>{const _0x242926=_0x5131b7['model']['document']['selection'],_0x34dc2=_0x5131b7['commands']['get'](_0x27f219);if(_0x34dc2['value'])return void _0x5131b7['execute']('paragraph',{});const _0x3cb7a7=_0x27f219['slice'](0x0,-0x4),_0x1a0049=function(_0x3ed188,_0x149f4b,_0x452997){let _0xdb8c74=Array['from'](_0x3ed188)['filter'](_0x268f40=>function(_0x1ac07b,_0x12aab0){return _0x12aab0['checkChild'](_0x1ac07b['parent'],'listItem')&&!_0x12aab0['isObject'](_0x1ac07b);}(_0x268f40,_0x452997));_0xdb8c74=_0xdb8c74['filter'](_0x89c9b0=>!_0x89c9b0['is']('element','listItem')||_0x89c9b0['getAttribute']('listType')!=_0x149f4b);const _0x25149c=new Set();for(const _0x4f8ed3 of _0xdb8c74)_0x4f8ed3['is']('element','listItem')?_0x25149c['add'](Le(_0x4f8ed3)):_0x25149c['add'](_0x4f8ed3);return Array['from'](_0x25149c);}(_0x242926['getSelectedBlocks'](),_0x3cb7a7,_0x5131b7['model']['schema']);_0x5131b7['model']['change'](()=>{for(const _0x2f4658 of _0x1a0049)_0x328a06['markBlockFormat'](_0x2f4658,{'commandName':_0x27f219,'commandParams':[{'forceValue':!_0x34dc2['value']}],'formatGroupId':'blockName'},Ee(_0x2f4658));});};}function _0x539561(_0x165423){return()=>{const _0x52bae0=function(_0x3f43e4){let _0x2a4197=Array['from'](_0x3f43e4);const _0x254232=_0x2a4197['findIndex'](_0x29eefd=>'listItem'!=_0x29eefd['name']);return _0x254232>-0x1&&(_0x2a4197=_0x2a4197['slice'](0x0,_0x254232)),_0x2a4197;}(_0x5131b7['model']['document']['selection']['getSelectedBlocks']()),_0x1e41a1=_0x5131b7['model']['createRange'](_0x5131b7['model']['createPositionAt'](_0x52bae0[0x0],'before'),_0x5131b7['model']['createPositionAt'](_0x52bae0[_0x52bae0['length']-0x1],'end'));_0x5131b7['model']['change'](()=>{_0x328a06['markBlockFormat'](_0x1e41a1,{'commandName':_0x165423,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3cd90d){const _0x434424=new Set();for(const _0x4c981f of _0x3cd90d){let _0x53fc4f=_0x4c981f['nextSibling'];for(;_0x53fc4f&&_0x53fc4f['getAttribute']('listIndent')>_0x4c981f['getAttribute']('listIndent');)_0x434424['add'](_0x53fc4f),_0x53fc4f=_0x53fc4f['nextSibling'];}return Array['from'](_0x434424);}(_0x52bae0));});};}_0x328a06['enableCommand']('numberedList',_0x197b46('numberedList')),_0x328a06['enableCommand']('bulletedList',_0x197b46('bulletedList')),_0x5bce8e&&_0x328a06['enableCommand']('todoList',_0x197b46('todoList')),_0x328a06['enableCommand']('indentList',_0x539561('indentList')),_0x328a06['enableCommand']('outdentList',_0x539561('outdentList')),_0x5bce8e&&_0x328a06['enableCommand']('checkTodoList',()=>{const _0x5b45a8=_0x5131b7['commands']['get']('checkTodoList'),_0x57746a=Array['from'](_0x5b45a8['_selectedElements']);_0x57746a['filter'](_0x225966=>_0x225966['getAttribute']('todoListChecked')!=_0x5b45a8['value']),_0x5131b7['model']['change'](()=>{for(const _0x36e10d of _0x57746a)_0x328a06['markBlockFormat'](_0x36e10d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5b45a8['value']}]});});}),_0x328a06['descriptionFactory']['registerElementLabel']('listItem',_0x2683d4=>o(_0x17eb75,'ELEMENT_LIST_ITEM',_0x2683d4)),_0x328a06['descriptionFactory']['registerDescriptionCallback'](_0x174300=>{if('formatBlock'!=_0x174300['type']&&'formatInline'!=_0x174300['type'])return;const {data:_0x51cadb}=_0x174300;if(_0x51cadb){if('numberedList'==_0x51cadb['commandName']||'bulletedList'==_0x51cadb['commandName']||'todoList'==_0x51cadb['commandName'])switch(_0x51cadb['commandName']['replace']('List','')){case'bulleted':return _0xb6398e(o(_0x17eb75,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb6398e(o(_0x17eb75,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb6398e(o(_0x17eb75,'ELEMENT_TODO_LIST'));}if('indentList'==_0x51cadb['commandName'])return{'type':'format','content':o(_0x17eb75,'*Indent:*\x20%0',o(_0x17eb75,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x51cadb['commandName'])return{'type':'format','content':o(_0x17eb75,'*Outdent:*\x20%0',o(_0x17eb75,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x51cadb['commandName'])return _0x51cadb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17eb75,'*Check\x20item*')}:{'type':'format','content':o(_0x17eb75,'*Uncheck\x20item*')};}function _0xb6398e(_0x251408){return{'type':'format','content':o(_0x17eb75,'*Change\x20to:*\x20%0',_0x251408)};}});}}function Le(_0xc46ba5){const _0x37d2f6=_0xc46ba5['getAttribute']('listIndent');if(0x0==_0x37d2f6)return _0xc46ba5;let _0x1ab8ee=_0xc46ba5;for(;_0xc46ba5['previousSibling']&&_0xc46ba5['previousSibling']['is']('element','listItem');){const _0x440374=_0xc46ba5['previousSibling']['getAttribute']('listIndent');if(_0x440374==_0x37d2f6)_0x1ab8ee=_0xc46ba5['previousSibling'];else{if(_0x440374<_0x37d2f6)break;}_0xc46ba5=_0xc46ba5['previousSibling'];}return _0x1ab8ee;}function Ee(_0x4f843d){const _0x52e26b=[];if(_0x4f843d['is']('element','listItem')&&_0x4f843d['getAttribute']('listIndent')>0x0){let _0x20feb5=_0x4f843d['nextSibling'];for(;_0x20feb5&&'listItem'==_0x20feb5['name']&&_0x20feb5['getAttribute']('listIndent')==_0x4f843d['getAttribute']('listIndent');)_0x52e26b['push'](_0x20feb5),_0x20feb5=_0x20feb5['nextSibling'];}return _0x52e26b;}class Q extends _0x6a3ec8{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3ccd14=this['editor']['config']['get']('list.properties'),_0x48caef=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ccd14['styles']&&_0x48caef['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3ccd14['reversed']&&_0x48caef['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3ccd14['startIndex']&&_0x48caef['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x48caef['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x209b2c,_0x15c09f={}){const _0x57d899=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5efa01=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x57d899['markMultiRangeBlockFormat'](_0x5efa01,{'commandName':'listStyle','commandParams':[{'type':_0x15c09f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1cb74d,_0x4901ce={}){const _0x448808=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2772fb=this['_getSuggestionBlocks'](_0x23e144=>_0x23e144['is']('element','listItem')&&'numbered'===_0x23e144['getAttribute']('listType'));if(_0x2772fb['length']<0x1)return;const _0x5f5100=_0x2772fb['map'](_0x444bab=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x444bab,'before'),this['editor']['model']['createPositionAt'](_0x444bab,0x0)));this['editor']['model']['change'](()=>{_0x448808['markMultiRangeBlockFormat'](_0x5f5100,{'commandName':'listReversed','commandParams':[{'reversed':_0x4901ce['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x49e6ac,_0x2c8980={}){const _0x4aa64e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b7fb2=this['_getSuggestionBlocks'](_0x340223=>_0x340223['is']('element','listItem')&&'numbered'===_0x340223['getAttribute']('listType'));if(_0x5b7fb2['length']<0x1)return;const _0xe8d647=_0x5b7fb2['map'](_0x5cd0c6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5cd0c6,'before'),this['editor']['model']['createPositionAt'](_0x5cd0c6,0x0)));this['editor']['model']['change'](()=>{_0x4aa64e['markMultiRangeBlockFormat'](_0xe8d647,{'commandName':'listStart','commandParams':[{'startIndex':_0x2c8980['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x26f12d){if('formatBlock'!=_0x26f12d['type']&&'formatInline'!=_0x26f12d['type'])return;const _0xaf9119=this['editor']['locale'],{data:_0x1ead9a}=_0x26f12d;if(!_0x1ead9a)return;let _0x5a8d08,_0x541efd;switch(_0x1ead9a['commandName']){case'listStyle':_0x5a8d08='*Change\x20to:*\x20%0',_0x541efd={'type':'format','content':o(_0xaf9119,_0x5a8d08,o(_0xaf9119,this['_getTranslationKeyForListStyle'](_0x1ead9a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5a8d08=_0x1ead9a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x541efd={'type':'format','content':o(_0xaf9119,_0x5a8d08)};break;case'listStart':_0x5a8d08='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x541efd={'type':'format','content':o(_0xaf9119,_0x5a8d08,_0x1ead9a['commandParams'][0x0]['startIndex'])};}return _0x541efd;}['_getSuggestionBlocksForListStyle'](){const _0x5cbfc6=this['editor']['plugins']['get']('LegacyListUtils');let _0x3c8c11=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3c8c11[0x0]?.['is']('element','listItem')&&_0x3c8c11['unshift'](..._0x5cbfc6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3c8c11[_0x3c8c11['length']-0x1]?.['is']('element','listItem')&&_0x3c8c11['push'](..._0x5cbfc6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3c8c11=[...new Set(_0x3c8c11)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3c8c11=_0x3c8c11['filter'](_0x1c75e6=>_0x1c75e6['is']('element','listItem'))),_0x3c8c11;}['_getSuggestionBlocks'](_0x110f50){const _0x2717a4=this['editor']['plugins']['get']('LegacyListUtils');let _0x3baaf9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x110f50)['map'](_0x1b36a4=>{const _0xc5df0=this['editor']['model']['createPositionAt'](_0x1b36a4,0x0);return[..._0x2717a4['getSiblingNodes'](_0xc5df0,'backward'),..._0x2717a4['getSiblingNodes'](_0xc5df0,'forward')];})['flat']();return _0x3baaf9=[...new Set(_0x3baaf9)],_0x3baaf9;}['_getTranslationKeyForListStyle'](_0x3fba00){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3fba00)||'default')['toUpperCase']()+'_LIST_'+_0x3fba00['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x6a3ec8{['afterInit'](){const _0x311fff=this['editor'];if(!_0x311fff['plugins']['has']('MediaEmbedEditing'))return;const _0x58b177=_0x311fff['plugins']['get']('TrackChangesEditing'),_0xf9fd57=_0x311fff['locale'];_0x58b177['enableCommand']('mediaEmbed'),_0x58b177['descriptionFactory']['registerElementLabel']('media',_0x2a1fdf=>o(_0xf9fd57,'ELEMENT_MEDIA',_0x2a1fdf)),_0x311fff['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x56b201,{writer:_0x553755,options:_0x4b82be})=>{if(_0x4b82be['showSuggestionHighlights'])return _0x553755['createEmptyElement']('div');},'converterPriority':'high'}),_0x311fff['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1553d5,_0x5c895f,_0x16d91e)=>{_0x16d91e['options']['showSuggestionHighlights']&&_0x1553d5['stop']();},{'priority':'high'});}}class pt extends _0x6a3ec8{['afterInit'](){const _0x4faeba=this['editor'];_0x4faeba['plugins']['has']('MentionEditing')&&_0x4faeba['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x6a3ec8{['afterInit'](){const _0x15fbc5=this['editor'];if(!_0x15fbc5['plugins']['has']('MergeFieldsEditing'))return;const _0x1b64e1=_0x15fbc5['plugins']['get']('TrackChangesEditing'),_0x3cb7d9=_0x15fbc5['locale'];_0x1b64e1['enableCommand']('insertMergeField'),_0x1b64e1['enableCommand']('insertMergeFieldBlock'),_0x1b64e1['enableCommand']('insertMergeFieldImage'),_0x1b64e1['descriptionFactory']['registerElementLabel']('mergeField',_0x5bf2c8=>o(_0x3cb7d9,'ELEMENT_MERGE_FIELD',_0x5bf2c8)),_0x1b64e1['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x41eac1=>o(_0x3cb7d9,'ELEMENT_MERGE_FIELD',_0x41eac1)),_0x1b64e1['descriptionFactory']['registerDescriptionCallback'](_0x4c090a=>{if('insertion'!=_0x4c090a['type']&&'deletion'!=_0x4c090a['type'])return;const _0x7c2e8f=_0x4c090a['getContainedElement']();if(null==_0x7c2e8f)return;const _0x474cbf=_0x15fbc5['plugins']['get']('MergeFieldsEditing');let _0xf9aae3;switch(_0x474cbf['getMergeFieldType'](_0x7c2e8f)){case null:return;case'image':{const _0x3396ce=_0x474cbf['unwrapAffixes'](_0x7c2e8f['getAttribute']('src'));_0xf9aae3=_0x474cbf['getLabel'](_0x3396ce)||_0x3396ce;break;}default:{const _0x382144=_0x7c2e8f['getAttribute']('id');_0xf9aae3=_0x474cbf['getLabel'](_0x382144)||_0x382144;break;}}return'insertion'==_0x4c090a['type']?{'type':'insertion','content':o(_0x3cb7d9,'*Insert:*\x20%0','\x22'+_0xf9aae3+'\x22\x20'+o(_0x3cb7d9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3cb7d9,'*Remove:*\x20%0','\x22'+_0xf9aae3+'\x22\x20'+o(_0x3cb7d9,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x6a3ec8{['afterInit'](){const _0x5d28fb=this['editor'],_0x58aade=_0x5d28fb['plugins']['get']('TrackChangesEditing');_0x5d28fb['plugins']['has']('MultiLevelList')&&(_0x58aade['enableDefaultAttributesIntegration']('multiLevelList'),_0x58aade['registerBlockAttribute']('listMarkerStyle'),_0x58aade['descriptionFactory']['registerDescriptionCallback'](_0xc049c7=>this['handleDescriptions'](_0xc049c7)));}['handleDescriptions'](_0x20ba74){const _0x126476=this['editor']['locale'],{data:_0x5ab89e}=_0x20ba74,_0x89ec9b={'type':'format','content':''};if(_0x5ab89e&&'listMarkerStyle'==_0x5ab89e['key']){if(!_0x5ab89e['oldValue'])return{'type':'format','content':o(_0x126476,'*Set\x20format:*\x20%0',o(_0x126476,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5ab89e['newValue']+')'};if(!_0x5ab89e['newValue']){let _0x1a6f96=_0x20ba74['head'];for(;_0x1a6f96;){if(_0x1a6f96['data']&&'listType'==_0x1a6f96['data']['key']&&_0x1a6f96['data']['newValue'])return _0x89ec9b;_0x1a6f96=_0x1a6f96['next'];}return{'type':'format','content':o(_0x126476,'*Remove\x20format:*\x20%0',o(_0x126476,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5ab89e['oldValue']+')'};}}}}class bt extends _0x6a3ec8{['afterInit'](){const _0x3dc83b=this['editor'];if(!_0x3dc83b['plugins']['has']('PageBreakEditing'))return;_0x3dc83b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1b6925=_0x3dc83b['plugins']['get']('TrackChangesEditing'),_0x38dfd8=_0x3dc83b['locale'];_0x1b6925['descriptionFactory']['registerElementLabel']('pageBreak',_0x2b27a9=>o(_0x38dfd8,'ELEMENT_PAGE_BREAK',_0x2b27a9));}}class yt extends _0x6a3ec8{['afterInit'](){const _0x33cfc2=this['editor'];if(!_0x33cfc2['plugins']['has']('Paragraph'))return;const _0x580a07=_0x33cfc2['locale'],_0x4d60b5=_0x33cfc2['plugins']['get']('TrackChangesEditing');_0x4d60b5['descriptionFactory']['registerElementLabel']('paragraph',_0x1477e6=>o(_0x580a07,'ELEMENT_PARAGRAPH',_0x1477e6)),_0x4d60b5['enableDefaultAttributesIntegration']('paragraph'),_0x4d60b5['enableCommand']('insertParagraph'),_0x33cfc2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x33cfc2),{'priority':'highest'}),_0x33cfc2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x110909,_0x304d86,_0x53bf9c)=>{_0x53bf9c['options']['showSuggestionHighlights']&&nr(_0x33cfc2,{'showActiveMarker':!0x1})(_0x110909,_0x304d86,_0x53bf9c);},{'priority':'highest'});const _0x550036=_0x4d60b5['descriptionFactory'];_0x550036['registerDescriptionCallback'](_0x799358=>{if('insertion'!==_0x799358['type'])return;const {start:_0x3a1b8a,end:_0x48bc39}=_0x799358['getFirstRange']();if(!_0x3a1b8a['isTouching'](_0x48bc39)||!_0x3a1b8a['nodeAfter'])return;const _0x4e4677=_0x33cfc2['model']['schema'],_0x216b6b=_0x3a1b8a['nodeAfter'];return _0x4e4677['isBlock'](_0x216b6b)&&!_0x4e4677['isLimit'](_0x216b6b)&&_0x4e4677['checkChild'](_0x216b6b,'$text')?{'type':'insertion','content':o(_0x580a07,'*Insert:*\x20%0',_0x550036['getItemLabel'](_0x216b6b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b7517=this['editor'],_0x415bb2=_0x3b7517['locale'];_0x3b7517['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2296b9=>{if('formatBlock'!=_0x2296b9['type'])return;const {data:_0x312ced}=_0x2296b9;return _0x312ced&&'paragraph'==_0x312ced['commandName']?{'type':'format','content':o(_0x415bb2,'*Change\x20to:*\x20%0',o(_0x415bb2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3612e2,{showActiveMarker:_0xcd0df0=!0x0}={}){return(_0x26d78f,_0x494855,_0x281870)=>{const _0x5cc8a8=_0x3612e2['plugins']['get']('TrackChangesEditing'),_0x2a6bcd=_0x494855['markerRange']['start'],_0x475c51=_0x494855['markerRange']['end'],_0x3ef83d=_0x3612e2['model']['schema'];if(!_0x2a6bcd['isTouching'](_0x475c51)||!_0x2a6bcd['nodeAfter'])return;const _0x2c9406=_0x2a6bcd['nodeAfter'];if(_0x3ef83d['isBlock'](_0x2c9406)&&!_0x3ef83d['isLimit'](_0x2c9406)&&_0x3ef83d['checkChild'](_0x2c9406,'$text')){if(!_0x281870['consumable']['consume'](_0x494855['markerRange'],_0x26d78f['name']))return;const {authorId:_0x36d9c6}=_0x5cc8a8['_splitMarkerName'](_0x494855['markerName']),_0x14f810=_0x281870['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x36d9c6}),_0x515472=_0x281870['mapper']['toViewPosition'](_0x475c51);_0xcd0df0&&_0x5cc8a8['activeMarkers']['includes'](_0x494855['markerName'])&&_0x281870['writer']['addClass']('ck-suggestion-marker--active',_0x14f810),_0x281870['writer']['insert'](_0x515472,_0x14f810),_0x281870['mapper']['bindElementToMarker'](_0x14f810,_0x494855['markerName']);}};}class jt extends _0x6a3ec8{['afterInit'](){const _0x546721=this['editor'];_0x546721['commands']['get']('replaceSource')&&_0x546721['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x6a3ec8{['afterInit'](){const _0x120c47=this['editor'];if(!_0x120c47['plugins']['has']('RemoveFormatEditing'))return;_0x120c47['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ef00b=this['editor'];_0x4ef00b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1abcfe=>{if('formatBlock'!=_0x1abcfe['type']&&'formatInline'!=_0x1abcfe['type'])return;const {data:_0x84c5ef}=_0x1abcfe;return _0x84c5ef&&'removeFormat'==_0x84c5ef['commandName']?{'type':'format','content':o(_0x4ef00b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x6a3ec8{['afterInit'](){const _0x4f2b25=this['editor'];if(!_0x4f2b25['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x58c451=_0x4f2b25['plugins']['get']('TrackChangesEditing');_0x58c451['enableCommand']('goToPreviousRestrictedEditingException'),_0x58c451['enableCommand']('goToNextRestrictedEditingException');const _0x3e2cb4=_0x4f2b25['plugins']['get']('RestrictedEditingModeEditing');_0x3e2cb4['enableCommand']('trackChanges'),_0x3e2cb4['enableCommand']('acceptSuggestion'),_0x3e2cb4['enableCommand']('discardSuggestion'),_0x3e2cb4['enableCommand']('acceptAllSuggestions'),_0x3e2cb4['enableCommand']('discardAllSuggestions'),_0x3e2cb4['enableCommand']('acceptSelectedSuggestions'),_0x3e2cb4['enableCommand']('discardSelectedSuggestions');}}class It extends _0x6a3ec8{static get['requires'](){return[_0x4e86be];}['init'](){const _0x2409ce=this['editor'],_0x4eea57=_0x2409ce['plugins']['get']('TrackChangesEditing');_0x4eea57['enableCommand']('shiftEnter'),_0x2409ce['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2409ce),{'priority':'high'}),_0x2409ce['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2409ce),{'priority':'high'}),_0x2409ce['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x55c786,_0x1921eb,_0x11a193)=>{_0x11a193['options']['showSuggestionHighlights']&&je(_0x2409ce,{'showActiveMarker':!0x1})(_0x55c786,_0x1921eb,_0x11a193);}),_0x4eea57['descriptionFactory']['registerElementLabel']('softBreak',_0x58e2d8=>o(_0x2409ce['locale'],'ELEMENT_LINE_BREAK',_0x58e2d8));}}function je(_0x2e0b1b,{showActiveMarker:_0x2e504a=!0x0}={}){return(_0x5b137c,_0xa9b8a2,_0x26f259)=>{const _0x647568=_0x2e0b1b['plugins']['get']('TrackChangesEditing');if(!_0x26f259['consumable']['test'](_0xa9b8a2['markerRange'],_0x5b137c['name']))return;const _0x285ccc=_0x2e0b1b['model'];for(const _0x48f70d of _0xa9b8a2['markerRange']['getItems']()){if(!_0x48f70d['is']('element','softBreak'))continue;const _0x12007a='deletion'==_0xa9b8a2['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x157abb}=_0x647568['_splitMarkerName'](_0xa9b8a2['markerName']),_0x45f572=_0x26f259['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x12007a,'data-author-id':_0x157abb}),_0x222358=_0x26f259['mapper']['toViewPosition'](_0x285ccc['createPositionBefore'](_0x48f70d));_0x2e504a&&_0x647568['activeMarkers']['includes'](_0xa9b8a2['markerName'])&&_0x26f259['writer']['addClass']('ck-suggestion-marker--active',_0x45f572),_0x26f259['writer']['insert'](_0x222358,_0x45f572),_0x26f259['mapper']['bindElementToMarker'](_0x45f572,_0xa9b8a2['markerName']);}};}class vt extends _0x6a3ec8{['afterInit'](){const _0x2d972e=this['editor'],_0x1f9f97=_0x2d972e['model'],_0x3ba071=_0x2d972e['locale'];if(!_0x2d972e['plugins']['has']('StandardEditingModeEditing'))return;const _0x2a8a26=_0x2d972e['plugins']['get']('TrackChangesEditing'),_0x24bfc1='restrictedEditingException',_0x4cd30e=_0x2d972e['commands']['get'](_0x24bfc1);_0x2a8a26['enableCommand'](_0x24bfc1,(_0x5a4aa5,_0x1713b3={})=>{const _0xfcf839=_0x1f9f97['document']['selection'];if(_0xfcf839['isCollapsed'])return void _0x5a4aa5(_0x1713b3);const _0x20a780=void 0x0!==_0x1713b3['forceValue']?_0x1713b3['forceValue']:!_0x4cd30e['value'];_0x1f9f97['change'](()=>{const _0x21ca33=Array['from'](_0xfcf839['getRanges']());for(const _0x4a5017 of _0x21ca33){const _0x199b76=_0x20a780?[_0x4a5017]:io(_0x24bfc1,_0x4a5017,_0x1f9f97);for(const _0x391333 of _0x199b76)_0x2a8a26['markInlineFormat'](_0x391333,{'commandName':_0x24bfc1,'commandParams':[{'forceValue':_0x20a780}]});}});}),_0x2a8a26['descriptionFactory']['registerDescriptionCallback'](_0x47085c=>{if('formatBlock'!=_0x47085c['type']&&'formatInline'!=_0x47085c['type'])return;const {data:_0xb05f02}=_0x47085c;return _0xb05f02&&_0xb05f02['commandName']==_0x24bfc1?_0xb05f02['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ba071,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3ba071,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x6a3ec8{['afterInit'](){const _0x3f5841=this['editor'];if(!_0x3f5841['plugins']['has']('Style')||!_0x3f5841['plugins']['has']('DataSchema'))return;const _0x886af7=_0x3f5841['plugins']['get']('TrackChangesEditing'),_0xcfc697=_0x3f5841['locale'],_0x3d8e4b=_0x3f5841['config']['get']('style')||{},_0x319974=_0x3f5841['plugins']['get']('GeneralHtmlSupport'),_0x3e9447=_0x3f5841['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3f5841['plugins']['get']('DataSchema'),_0x3d8e4b['definitions']);_0x886af7['enableDefaultAttributesIntegration']('style');const _0x4653d9=new Set();for(const _0x576795 of _0x3e9447['block']){const _0x5b3b03=_0x319974['getGhsAttributeNameForElement'](_0x576795['element']);_0x4653d9['add'](_0x5b3b03);}const _0x1a5cd3=new Set();for(const _0x8cacda of _0x3e9447['inline']){const _0x3b8a31=_0x319974['getGhsAttributeNameForElement'](_0x8cacda['element']);_0x1a5cd3['add'](_0x3b8a31);for(const _0x2e8492 of _0x8cacda['ghsAttributes'])_0x1a5cd3['add'](_0x2e8492);}for(const _0x2c5421 of _0x4653d9)_0x886af7['registerBlockAttribute'](_0x2c5421),_0x886af7['descriptionFactory']['registerAttributeLabel'](_0x2c5421,o(_0xcfc697,'FORMAT_STYLE'));for(const _0x1ffe5b of _0x1a5cd3)_0x886af7['registerInlineAttribute'](_0x1ffe5b),_0x886af7['descriptionFactory']['registerAttributeLabel'](_0x1ffe5b,o(_0xcfc697,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32d372=this['editor'],_0xfee25c=_0x32d372['locale'];_0x32d372['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x310474=>{if('formatBlock'!=_0x310474['type']&&'formatInline'!=_0x310474['type'])return;const {data:_0x336c2e}=_0x310474;return _0x336c2e&&'style'===_0x336c2e['commandName']?_0x336c2e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xfee25c,'*Set\x20format:*\x20%0',_0x336c2e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xfee25c,'*Remove\x20format:*\x20%0',_0x336c2e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x6a3ec8{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x180ab2){super(_0x180ab2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x87b11c=this['editor'],_0x198ff8=_0x87b11c['model']['document']['selection'];if(!_0x87b11c['plugins']['has']('TableEditing'))return;const _0x2b0c09=_0x87b11c['locale'],_0xfdbfb5=_0x87b11c['plugins']['get']('TrackChangesEditing'),_0x1a0c52=_0x87b11c['plugins']['get']('TableUtils');_0xfdbfb5['descriptionFactory']['registerElementLabel']('table',_0x4b9f97=>o(_0x2b0c09,'ELEMENT_TABLE',_0x4b9f97)),this['_setupColumnsRowsFixing'](),_0xfdbfb5['enableCommand']('insertTable'),_0xfdbfb5['enableCommand']('selectTableRow'),_0xfdbfb5['enableCommand']('selectTableColumn');for(const _0x46019f of['insertTableRowAbove','insertTableRowBelow']){const _0x331696=_0x87b11c['commands']['get'](_0x46019f);_0xfdbfb5['enableCommand'](_0x46019f,_0x1c1237=>{_0x87b11c['model']['change'](_0x28336c=>{_0x1c1237();const _0x474c66='above'===_0x331696['order'],_0x38b212=_0x1a0c52['getSelectionAffectedTableCells'](_0x198ff8),_0x497c00=_0x1a0c52['getRowIndexes'](_0x38b212),_0x576175=_0x474c66?_0x497c00['first']-0x1:_0x497c00['last']+0x1,_0x4d206d=_0x38b212[0x0]['findAncestor']('table'),_0x190353=_0x1a0c52['createTableWalker'](_0x4d206d,{'startRow':_0x576175,'endRow':_0x576175}),_0x34fb79=Array['from'](_0x190353)['map'](_0x3078ee=>_0x28336c['createRangeOn'](_0x3078ee['cell']));_0xfdbfb5['markMultiRangeInsertion'](_0x34fb79,'tableRow');});});}for(const _0x26171c of['insertTableColumnLeft','insertTableColumnRight']){const _0x2febde=_0x87b11c['commands']['get'](_0x26171c);_0xfdbfb5['enableCommand'](_0x26171c,_0x2757ee=>{_0x87b11c['model']['change'](_0x387931=>{_0x2757ee();const _0x172500='left'===_0x2febde['order'],_0x46ad5b=_0x1a0c52['getSelectionAffectedTableCells'](_0x198ff8),_0x5f1070=_0x1a0c52['getColumnIndexes'](_0x46ad5b),_0x166eb4=_0x172500?_0x5f1070['first']-0x1:_0x5f1070['last']+0x1,_0x1cff27=_0x46ad5b[0x0]['findAncestor']('table'),_0x15d6b9=_0x1a0c52['createTableWalker'](_0x1cff27,{'startRow':0x0,'column':_0x166eb4,'includeAllSlots':!0x1}),_0x106b0b=Array['from'](_0x15d6b9)['map'](_0x38ced1=>_0x387931['createRangeOn'](_0x38ced1['cell']));_0xfdbfb5['markMultiRangeInsertion'](_0x106b0b,'tableColumn');});});}for(const _0x239260 of['removeTableRow','removeTableColumn']){const _0x4973bc=_0x239260['substr'](0xb),_0x2c04f7=_0x4973bc['toLowerCase'](),_0x5bfc57=_0x2c04f7['substr'](0x0,0x3)+'span',_0x1394cc='table'+_0x4973bc,_0x2db08f='min'+_0x4973bc,_0x24df6f='max'+_0x4973bc;_0xfdbfb5['enableCommand'](_0x239260,()=>{_0x87b11c['model']['change'](_0x35c90a=>{const _0x37ff2a=_0x1a0c52['getSelectionAffectedTableCells'](_0x198ff8),_0x1857ff=_0x37ff2a[0x0]['findAncestor']('table');let _0x6320f7;if('removeTableRow'==_0x239260){const _0x2bb8f2=_0x1a0c52['getRowIndexes'](_0x37ff2a);_0x6320f7={'startRow':_0x2bb8f2['first'],'endRow':_0x2bb8f2['last'],'includeAllSlots':!0x0};}else{const _0x337409=_0x1a0c52['getColumnIndexes'](_0x37ff2a);_0x6320f7={'startColumn':_0x337409['first'],'endColumn':_0x337409['last'],'includeAllSlots':!0x0};}const _0x4b7c24=_0x1a0c52['createTableWalker'](_0x1857ff,_0x6320f7),_0x4fc848=Array['from'](_0x4b7c24)['map'](({cell:_0xc23c71})=>_0xc23c71),_0x642e6e=Ne(_0x4fc848['filter'](_0x1ac0b0=>_0x1ac0b0['hasAttribute'](_0x5bfc57))),_0x57cc6d=Ne(_0x4fc848['filter'](_0x308982=>!_0x308982['hasAttribute'](_0x5bfc57)))['map'](_0x4b4882=>_0x35c90a['createRangeOn'](_0x4b4882)),_0x30516e=_0xfdbfb5['markMultiRangeDeletion'](_0x57cc6d,_0x1394cc);if(_0x30516e&&('tableRow'==_0x30516e['subType']||'tableColumn'==_0x30516e['subType'])){const _0x378658=this['_getSuggestionCoords'](_0x30516e);for(const _0x5b5329 of _0x642e6e){const _0x4dd838=_0x35c90a['createRangeOn'](_0x5b5329),_0x135665=_0x1a0c52['getCellLocation'](_0x5b5329),_0x5debf4=_0x5b5329['getAttribute'](_0x5bfc57)-0x1,_0x181921=_0x378658[_0x2db08f],_0x3fc559=_0x378658[_0x24df6f];_0x181921<=_0x135665[_0x2c04f7]&&_0x135665[_0x2c04f7]+_0x5debf4<=_0x3fc559&&_0x30516e['addRange'](_0x4dd838);}}});});}function _0x5c1044(_0x5a7f58){const _0x3e94a7=Array['from'](_0x198ff8['getRanges']())['map'](_0x178636=>_0x36d42c['fromRange'](_0x178636));_0x87b11c['model']['change'](_0x2084df=>{const _0x3ca5ad=_0x2084df['batch'];_0x5a7f58=_0x5a7f58['filter'](_0x2aa6d3=>'$graveyard'!=_0x2aa6d3['root']['rootName']),_0x2084df['setSelection'](_0x5a7f58),_0x87b11c['commands']['get']('removeTableRow')['refresh'](),_0x87b11c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x87b11c['model']['enqueueChange'](()=>{_0x87b11c['model']['enqueueChange'](_0x3ca5ad,_0x59896d=>{const _0x506705=_0x3e94a7['filter'](_0x522361=>'$graveyard'!=_0x522361['root']['rootName']);_0x506705['length']>0x0&&_0x59896d['setSelection'](_0x506705);for(const _0x2beaa1 of _0x3e94a7)_0x2beaa1['detach']();});});});}function _0x216146(_0x7bde66){_0x87b11c['model']['change'](_0x4dd250=>{const _0x467e2e=Array['from'](_0x198ff8['getRanges']())['map'](_0x55a789=>_0x36d42c['fromRange'](_0x55a789)),_0x25432b=[];for(const _0x1bdf9f of _0x7bde66)for(const _0xc50b79 of _0x1bdf9f['getItems']({'shallow':!0x0}))_0x25432b['push'](_0xc50b79);for(const _0x5f088a of _0x25432b)'$graveyard'!=_0x5f088a['root']['rootName']&&(_0x4dd250['setSelection'](_0x4dd250['createPositionAt'](_0x5f088a,0x0)),_0x87b11c['commands']['get']('removeTableColumn')['refresh'](),_0x87b11c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3d487b=_0x467e2e['filter'](_0x8499d0=>'$graveyard'!=_0x8499d0['root']['rootName']);_0x3d487b['length']>0x0&&_0x4dd250['setSelection'](_0x3d487b);for(const _0x1d7159 of _0x467e2e)_0x1d7159['detach']();});}function _0x27ffaa(_0x317cfd,_0x3bbd5c){return _0x3bbd5c['every'](_0xc2db80=>_0x317cfd['some'](_0x5d776e=>_0x5d776e['end']['isEqual'](_0xc2db80['start'])||_0xc2db80['end']['isEqual'](_0x5d776e['start'])));}function _0x39e95f(_0xfa8c77,_0x24ffc8){return!_0xfa8c77['some'](_0x551ae4=>_0x24ffc8['some'](_0x43f806=>_0x551ae4['isIntersecting'](_0x43f806)))&&_0xfa8c77['some'](_0x425805=>_0x24ffc8['some'](_0x26241d=>_0x425805['end']['isTouching'](_0x26241d['start'])));}_0x87b11c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2ee29b,_0x158ebb,_0x6ff170)=>{if(!_0x6ff170['options']['showSuggestionHighlights'])return;const _0xba2bf5=_0x158ebb['item'];if(!_0xba2bf5)return;const _0x169cc1=_0x6ff170['mapper']['toViewElement'](_0xba2bf5);function _0x5d2cef(_0x35bb66){return Array['isArray'](_0x35bb66)?_0x35bb66:[_0x35bb66];}_0x169cc1&&'tableCell'===_0xba2bf5['name']&&_0x3c0e0b(_0x169cc1,_0x6ff170['writer'],(_0x1d156b,_0x1d7efa,_0x1505af)=>_0x1505af['addClass'](_0x5d2cef(_0x1d7efa['classes']),_0x1d156b),(_0xea3f35,_0x14e7a0,_0x814c9a)=>_0x814c9a['removeClass'](_0x5d2cef(_0x14e7a0['classes']),_0xea3f35));},{'priority':'highest'}),_0xfdbfb5['descriptionFactory']['registerDescriptionCallback'](_0x39f1b8=>{if('insertion'!=_0x39f1b8['type']&&'deletion'!=_0x39f1b8['type'])return;const _0x1d7428=_0x39f1b8['getContainedElement']();if(null!=_0x1d7428&&_0x1d7428['is']('element','table')){if('insertion'==_0x39f1b8['type']){const _0x5bb10d=_0x39f1b8['getItems']()['filter'](_0xa566a0=>_0xa566a0['is']('$textProxy'))['map'](_0x177c97=>_0x177c97['data']);if(_0x5bb10d['length'])return{'type':'insertion','content':o(_0x2b0c09,'*Insert:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5bb10d['join']('\x20')+'\x22'))};}if('deletion'==_0x39f1b8['type']){const _0x1288c8=_0x39f1b8['getItems']()['filter'](_0x21880d=>_0x21880d['is']('$textProxy'))['map'](_0x273aad=>_0x273aad['data']);if(_0x1288c8['length'])return{'type':'deletion','content':o(_0x2b0c09,'*Remove:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1288c8['join']('\x20')+'\x22'))};}}}),_0xfdbfb5['descriptionFactory']['registerDescriptionCallback'](_0x3c9ca9=>{if('tableRow'==_0x3c9ca9['subType']){const _0x1a8b05=_0x3c9ca9['getItems']()['filter'](_0x322f0d=>_0x322f0d['is']('$textProxy'))['map'](_0x3b6d3f=>_0x3b6d3f['data']),_0x54b11e=this['_getSuggestionCoords'](_0x3c9ca9),_0xeb2e0c=_0x54b11e['maxRow']-_0x54b11e['minRow']+0x1;if('insertion'==_0x3c9ca9['type'])return _0x1a8b05['length']?{'type':'insertion','content':o(_0x2b0c09,'*Insert:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xeb2e0c,'\x22'+_0x1a8b05['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2b0c09,'*Insert:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_ROW',_0xeb2e0c))};if('deletion'==_0x3c9ca9['type'])return _0x1a8b05['length']?{'type':'deletion','content':o(_0x2b0c09,'*Remove:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xeb2e0c,'\x22'+_0x1a8b05['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2b0c09,'*Remove:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_ROW',_0xeb2e0c))};}if('tableColumn'==_0x3c9ca9['subType']){const _0xdb3b77=_0x3c9ca9['getItems']()['filter'](_0x3fe431=>_0x3fe431['is']('$textProxy'))['map'](_0x927f22=>_0x927f22['data']),_0x2d06c3=this['_getSuggestionCoords'](_0x3c9ca9),_0x46e12f=_0x2d06c3['maxColumn']-_0x2d06c3['minColumn']+0x1;if('insertion'==_0x3c9ca9['type'])return _0xdb3b77['length']?{'type':'insertion','content':o(_0x2b0c09,'*Insert:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x46e12f,'\x22'+_0xdb3b77['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2b0c09,'*Insert:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_COLUMN',_0x46e12f))};if('deletion'==_0x3c9ca9['type'])return _0xdb3b77['length']?{'type':'deletion','content':o(_0x2b0c09,'*Remove:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x46e12f,'\x22'+_0xdb3b77['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2b0c09,'*Remove:*\x20%0',o(_0x2b0c09,'ELEMENT_TABLE_COLUMN',_0x46e12f))};}}),_0xfdbfb5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5c1044),_0xfdbfb5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5c1044),_0xfdbfb5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x216146),_0xfdbfb5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x216146),_0xfdbfb5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x27ffaa),_0xfdbfb5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x27ffaa),_0xfdbfb5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x39e95f),_0xfdbfb5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x39e95f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5c2abf=this['editor'],_0x3d1cdb=_0x5c2abf['model']['document']['selection'];return(_0x2eb432,_0x4bfecd)=>{_0x5c2abf['model']['change'](_0x390e60=>{const {commandName:_0x5ed305,commandParams:_0x16230c}=_0x4bfecd;let _0x4ff89f=_0x2eb432[0x0]['end']['nodeBefore'];_0x16230c&&_0x16230c[0x0]&&!0x1===_0x16230c[0x0]['forceValue']&&(_0x4ff89f=_0x2eb432[0x0]['start']['nodeAfter']);const _0x518621=_0x390e60['createRangeIn'](_0x4ff89f);if('$graveyard'==_0x518621['root']['rootName'])return;const _0x2cbe55=Array['from'](_0x3d1cdb['getRanges']())['map'](_0x2599ad=>_0x36d42c['fromRange'](_0x2599ad));_0x390e60['setSelection'](_0x518621),_0x5c2abf['commands']['get'](_0x5ed305)['refresh'](),_0x16230c['push']({'forceDefaultExecution':!0x0}),_0x5c2abf['execute'](_0x5ed305,..._0x16230c);const _0xbef972=_0x2cbe55['filter'](_0xbe867b=>'$graveyard'!=_0xbe867b['root']['rootName']);_0xbef972['length']>0x0&&_0x390e60['setSelection'](_0xbef972);for(const _0x41eea6 of _0x2cbe55)_0x41eea6['detach']();});};}['_getCoordsForCells'](_0x38a01b){const _0xe06bac=this['editor']['plugins']['get']('TableUtils');let _0x35ba57=Number['MAX_SAFE_INTEGER'],_0x45e685=Number['MIN_SAFE_INTEGER'],_0x38ba2f=Number['MAX_SAFE_INTEGER'],_0x5d96fe=Number['MIN_SAFE_INTEGER'];for(const _0x2fb20e of _0x38a01b){if('$graveyard'==_0x2fb20e['root']['rootName'])continue;const {row:_0x1f1c0f,column:_0x264c99}=_0xe06bac['getCellLocation'](_0x2fb20e),_0x4031b9=_0x2fb20e['hasAttribute']('rowspan')?_0x2fb20e['getAttribute']('rowspan')-0x1:0x0,_0x34524e=_0x2fb20e['hasAttribute']('colspan')?_0x2fb20e['getAttribute']('colspan')-0x1:0x0;_0x35ba57=_0x1f1c0f<_0x35ba57?_0x1f1c0f:_0x35ba57,_0x45e685=_0x1f1c0f+_0x4031b9>_0x45e685?_0x1f1c0f+_0x4031b9:_0x45e685,_0x38ba2f=_0x264c99<_0x38ba2f?_0x264c99:_0x38ba2f,_0x5d96fe=_0x264c99+_0x34524e>_0x5d96fe?_0x264c99+_0x34524e:_0x5d96fe;}return{'minRow':_0x35ba57,'maxRow':_0x45e685,'minColumn':_0x38ba2f,'maxColumn':_0x5d96fe};}['_setupColumnsRowsFixing'](){const _0x5feeec=this['editor'],_0x33d16c=_0x5feeec['plugins']['get']('TrackChangesEditing'),_0x54be35=_0x5feeec['plugins']['get']('TableUtils');_0x5feeec['model']['document']['on']('change:data',()=>{const _0x25e321=Array['from'](_0x5feeec['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45fd6d,data:_0x459f8f}of _0x25e321){const {group:_0x4efd1b,id:_0x5d8c5c,subType:_0x1986ad}=_0x33d16c['_splitMarkerName'](_0x45fd6d);if('suggestion'!=_0x4efd1b)continue;if(null!=_0x459f8f['oldRange'])continue;const _0x11dd02=_0x33d16c['getSuggestion'](_0x5d8c5c);this['_tablePostFixingSubtypes']['includes'](_0x1986ad)&&this['_tableSuggestions']['add'](_0x11dd02);}},{'priority':'low'});const _0x282b46=(_0x15c46a,_0x4d55c6)=>{let _0x4078ae=!0x1;const _0x550d4a=_0x4d55c6['createRangeOn'](_0x15c46a),_0x2ef41f=_0x15c46a['findAncestor']('table'),_0x214d3c=_0x54be35['getCellLocation'](_0x15c46a);for(const _0x8408c1 of this['_tableSuggestions']){const _0x983f27=_0x8408c1['subType'],_0x5e8f79=_0x983f27['startsWith']('tablePaste'),_0x5c30cf=_0x983f27['substr'](_0x5e8f79?0xa:0x5),_0x17c54b=_0x5c30cf['toLowerCase'](),_0x12eda9=_0x17c54b['substr'](0x0,0x3)+'span',_0x4a8728='min'+_0x5c30cf,_0x47025b='max'+_0x5c30cf;if(!_0x8408c1['isInContent'])continue;if(_0x2ef41f!=_0x8408c1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x8408c1['isIntersectingWithRange'](_0x550d4a))continue;const _0x2a7dc9=_0x15c46a['hasAttribute'](_0x12eda9)?_0x15c46a['getAttribute'](_0x12eda9)-0x1:0x0,_0x3ae973=this['_getSuggestionCoords'](_0x8408c1),_0xce5872=_0x3ae973[_0x4a8728],_0x29658c=_0x3ae973[_0x47025b];_0xce5872<=_0x214d3c[_0x17c54b]&&_0x214d3c[_0x17c54b]+_0x2a7dc9<=_0x29658c&&(_0x8408c1['addRange'](_0x550d4a),_0x4078ae=!0x0);}return _0x4078ae;};_0x5feeec['model']['document']['registerPostFixer'](_0x33363e=>{let _0x33abcb=!0x1;for(const _0x5e080a of _0x5feeec['model']['document']['differ']['getChanges']())if('insert'==_0x5e080a['type']){if('tableRow'==_0x5e080a['name']){for(const _0x29f818 of _0x5e080a['position']['nodeAfter']['getChildren']())_0x33abcb=_0x33abcb||_0x282b46(_0x29f818,_0x33363e);}else'tableCell'==_0x5e080a['name']&&(_0x33abcb=_0x33abcb||_0x282b46(_0x5e080a['position']['nodeAfter'],_0x33363e));}return _0x33abcb;});}['_getSuggestionCoords'](_0x26f300){return this['_getCoordsForCells'](_0x26f300['getRanges']()['map'](_0x39fe47=>_0x39fe47['start']['nodeAfter']));}}function Ne(_0x2cfedf){return Array['from'](new Set(_0x2cfedf)['values']());}class Nt extends _0x6a3ec8{static get['requires'](){return[Ct];}['afterInit'](){const _0x424681=this['editor'],_0x42e3b3=_0x424681['model']['document']['selection'],_0x178f37=_0x424681['locale'];if(!_0x424681['plugins']['has']('TableEditing'))return;const _0x127019=_0x424681['plugins']['get']('TrackChangesEditing'),_0x339434=_0x424681['plugins']['get']('TableUtils'),_0x4f8fd0=_0x424681['plugins']['get'](Ct);_0x4f8fd0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x127019['enableCommand']('mergeTableCells',()=>{const _0x370b68=_0x339434['getSelectionAffectedTableCells'](_0x424681['model']['document']['selection']);_0x424681['model']['change'](()=>{_0x127019['markMultiRangeBlockFormat'](_0x370b68,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x424681['commands']['get']('mergeTableCells')['on']('execute',(_0x2ea33f,_0x4c5290)=>{_0x424681['commands']['get']('trackChanges')['value']&&(_0x4c5290['length']>0x0&&_0x4c5290[_0x4c5290['length']-0x1]&&_0x4c5290[_0x4c5290['length']-0x1]['forceDefaultExecution']||_0x127019['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2ea33f['stop']());},{'priority':'highest'});for(const _0x356681 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1eb4be=_0x424681['commands']['get'](_0x356681);_0x127019['enableCommand'](_0x356681,()=>{const _0x30d402=_0x424681['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3c91da=>_0x3c91da['is']('element','tableCell')),_0x25258b=_0x1eb4be['value'];_0x424681['model']['change'](()=>{_0x127019['markMultiRangeBlockFormat']([_0x30d402,_0x25258b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x109cdf of['splitTableCellVertically','splitTableCellHorizontally']){const _0x309e8f=_0x424681['commands']['get'](_0x109cdf);_0x127019['enableCommand'](_0x109cdf,()=>{const _0x2c8d52=_0x339434['getSelectionAffectedTableCells'](_0x424681['model']['document']['selection'])[0x0],_0xc5509e=_0x2c8d52['findAncestor']('table'),{column:_0x503d22,row:_0x18f143}=_0x339434['getCellLocation'](_0x2c8d52);let _0x3ac532=[];if('horizontally'==_0x309e8f['direction']){const _0x3bf739=_0x339434['createTableWalker'](_0xc5509e,{'startRow':_0x18f143,'endRow':_0x18f143,'includeAllSlots':!0x0});_0x3ac532=Array['from'](_0x3bf739)['map'](_0x2334d3=>_0x2334d3['cell']);}else{const _0x53b009=_0x339434['createTableWalker'](_0xc5509e,{'column':_0x503d22,'includeAllSlots':!0x0});_0x3ac532=Array['from'](_0x53b009)['map'](_0x4bd03e=>_0x4bd03e['cell']);}_0x424681['model']['change'](_0x106985=>{_0x127019['markBlockFormat'](_0x106985['createRangeOn'](_0x2c8d52),{'commandName':_0x109cdf,'commandParams':[]},_0x3ac532,_0x109cdf);});});}_0x127019['descriptionFactory']['registerDescriptionCallback'](_0x5af870=>{if('formatBlock'!=_0x5af870['type']&&'formatInline'!=_0x5af870['type'])return;const {data:_0x3e2774}=_0x5af870;return _0x3e2774&&'mergeTableCells'==_0x3e2774['commandName']?{'type':'format','content':o(_0x178f37,'*Merge\x20cells*')}:void 0x0;}),_0x127019['descriptionFactory']['registerDescriptionCallback'](_0x23ecda=>{if('formatBlock'!=_0x23ecda['type']&&'formatInline'!=_0x23ecda['type'])return;const {data:_0x34414f}=_0x23ecda;return _0x34414f?'splitTableCellVertically'==_0x34414f['commandName']?{'type':'format','content':o(_0x178f37,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x34414f['commandName']?{'type':'format','content':o(_0x178f37,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5def80=_0x4f8fd0['_acceptFormatSuggestionCallbackFactory']();for(const _0x4eb8a9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x127019['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4eb8a9,'accept',_0x5def80);for(const _0x5ea421 of['splitTableCellVertically','splitTableCellHorizontally'])_0x127019['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ea421,'accept',_0x5def80);_0x127019['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4a827b=>{_0x424681['model']['change'](_0xa5b786=>{const _0x4b1e33=Array['from'](_0x42e3b3['getRanges']())['map'](_0x4981bf=>_0x36d42c['fromRange'](_0x4981bf));_0xa5b786['setSelection'](_0x4a827b),_0x424681['commands']['get']('mergeTableCells')['refresh'](),_0x424681['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x768183=_0x4b1e33['filter'](_0x167899=>'$graveyard'!=_0x167899['root']['rootName']);_0x768183['length']>0x0&&_0xa5b786['setSelection'](_0x768183);for(const _0x4e7aaa of _0x4b1e33)_0x4e7aaa['detach']();});});for(const _0x2cc95e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2a47a2=_0x424681['commands']['get'](_0x2cc95e);_0x2a47a2['on']('set:isEnabled',(_0x4e9c68,_0x1fdb55,_0x4ed913)=>{if(_0x4ed913){const _0x44b4e9=_0x424681['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5b6802=>_0x5b6802['is']('element','tableCell'));this['_areMergableCells'](_0x2a47a2['value'],_0x44b4e9)||(_0x4e9c68['return']=!0x1,_0x4e9c68['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x25eb12=this['editor']['commands']['get']('mergeTableCells'),_0x2f633e=this['editor']['plugins']['get']('TableUtils');if(!_0x25eb12['isEnabled'])return!0x1;const _0x3815ef=_0x2f633e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3d030a of _0x3815ef)for(const _0xad8dbb of _0x3815ef)if(_0x3d030a!=_0xad8dbb&&!this['_areMergableCells'](_0x3d030a,_0xad8dbb))return!0x1;return!0x0;}['_areMergableCells'](_0x4e5327,_0x23ce5f){const _0x10b2f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e402f=this['editor']['model']['createRangeOn'](_0x4e5327),_0x21ca07=this['editor']['model']['createRangeOn'](_0x23ce5f),_0x3349a1=new Set(),_0x25e447=new Set();for(const _0x3b4fef of _0x10b2f8['getSuggestions']())if(('insertion'==_0x3b4fef['type']||'deletion'==_0x3b4fef['type']||'mergeTableCells'==_0x3b4fef['subType'])&&_0x3b4fef['isInContent']){for(const _0x239cc3 of _0x3b4fef['getRanges']())_0x239cc3['containsRange'](_0x5e402f,!0x0)&&_0x3349a1['add'](_0x3b4fef['type']+':'+_0x3b4fef['author']['id']),_0x239cc3['containsRange'](_0x21ca07,!0x0)&&_0x25e447['add'](_0x3b4fef['type']+':'+_0x3b4fef['author']['id']);}if(_0x3349a1['size']!=_0x25e447['size'])return!0x1;for(const _0x494086 of _0x3349a1)if(!_0x25e447['has'](_0x494086))return!0x1;return!0x0;}}class Dt extends _0x6a3ec8{static get['requires'](){return[Ct];}['afterInit'](){const _0x14fe35=this['editor'];if(!_0x14fe35['plugins']['has']('TableEditing'))return;const _0x4c28c0=_0x14fe35['locale'],_0x17250d=_0x14fe35['plugins']['get']('TrackChangesEditing');_0x17250d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x17250d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x17250d['registerBlockAttribute']('headingRows'),_0x17250d['registerBlockAttribute']('headingColumns'),_0x17250d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4c28c0,'FORMAT_HEADER_ROW')),_0x17250d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4c28c0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3ad9bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x783a30=this['editor']['plugins']['get']('TableUtils'),_0x435e1c=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3f07cd({showActiveMarker:_0x308bf7=!0x0,setDataAttribute:_0xdafb71=!0x0}={}){return(_0x59a14f,_0x2b0633,_0x514730)=>{const {type:_0x2164a4,id:_0x20cddd}=_0x3ad9bc['_splitMarkerName'](_0x2b0633['markerName']),_0x38ac3b=_0x3ad9bc['getSuggestion'](_0x20cddd),_0x346a8c=_0x38ac3b['data'];if('formatBlock'!=_0x38ac3b['type']||!_0x346a8c||'setTableColumnHeader'!=_0x346a8c['commandName'])return;if(_0x2b0633['item'])return void _0x59a14f['stop']();if(!_0x514730['consumable']['consume'](_0x2b0633['markerRange'],_0x59a14f['name']))return;const _0x43f6b5=_0x2b0633['markerRange']['start']['nodeAfter'],_0x1c0013=_0x2b0633['markerRange']['end']['nodeBefore'],_0x44346b=_0x43f6b5['parent']['parent'],{column:_0x316706}=_0x783a30['getCellLocation'](_0x43f6b5),{column:_0x5eb1c7}=_0x783a30['getCellLocation'](_0x1c0013);for(let _0x218809=_0x316706;_0x218809<=_0x5eb1c7;_0x218809++){const _0x2bedad=_0x783a30['createTableWalker'](_0x44346b,{'column':_0x218809,'includeAllSlots':!0x1});for(const _0x5c7f2b of _0x2bedad){const _0x5f93a4=_0x5c7f2b['cell'],_0x5f095a=_0x514730['mapper']['toViewElement'](_0x5f93a4);_0x514730['writer']['addClass']('ck-suggestion-marker-'+_0x2164a4,_0x5f095a),_0xdafb71&&_0x514730['writer']['setAttribute']('data-suggestion',_0x20cddd,_0x5f095a),_0x514730['mapper']['bindElementToMarker'](_0x5f095a,_0x2b0633['markerName']),_0x308bf7&&(_0x3ad9bc['activeMarkers']['includes'](_0x2b0633['markerName'])?_0x514730['writer']['addClass']('ck-suggestion-marker--active',_0x5f095a):_0x514730['writer']['removeClass']('ck-suggestion-marker--active',_0x5f095a));}}};}_0x3ad9bc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x435e1c),_0x3ad9bc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x435e1c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3f07cd(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x21081d,_0xf2eeed,_0x57b97d)=>{_0x57b97d['options']['showSuggestionHighlights']&&_0x3f07cd({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x21081d,_0xf2eeed,_0x57b97d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3403c0,_0x2ffd98,_0x258039)=>{const {type:_0x2b6196,id:_0x25058f}=_0x3ad9bc['_splitMarkerName'](_0x2ffd98['markerName']),_0x392d21=_0x3ad9bc['getSuggestion'](_0x25058f),_0x1723f9=_0x392d21['data'];if('formatBlock'!=_0x392d21['type']||!_0x1723f9||'setTableColumnHeader'!=_0x1723f9['commandName'])return;const _0x4a53ab=_0x258039['mapper']['markerNameToElements'](_0x2ffd98['markerName']);if(_0x4a53ab){for(const _0x49c56c of _0x4a53ab)_0x258039['writer']['removeClass']('ck-suggestion-marker-'+_0x2b6196,_0x49c56c),_0x258039['writer']['removeClass']('ck-suggestion-marker--active',_0x49c56c),_0x258039['writer']['removeAttribute']('data-suggestion',_0x49c56c),_0x258039['mapper']['unbindElementFromMarkerName'](_0x49c56c,_0x2ffd98['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4007b4=this['editor'],_0x53f04b=_0x4007b4['locale'];function _0x43fa0e(_0x549d8d){return{'type':'format','content':o(_0x53f04b,'*Format:*\x20%0',_0x549d8d)};}_0x4007b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24dd8e=>{if('formatBlock'!=_0x24dd8e['type'])return;const {data:_0x4099b4}=_0x24dd8e;if(_0x4099b4){if('setTableRowHeader'==_0x4099b4['commandName']){const _0x1de864=_0x4099b4['commandParams'][0x0]['forceValue'];return _0x43fa0e(o(_0x53f04b,_0x1de864?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4099b4['commandName']){const _0x4ab8f8=_0x4099b4['commandParams'][0x0]['forceValue'];return _0x43fa0e(o(_0x53f04b,_0x4ab8f8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x3b7224=>[_0x3b7224,null]));class Mt extends _0x6a3ec8{static get['requires'](){return[Ct];}['afterInit'](){const _0x5f24e7=this['editor'];if(!_0x5f24e7['plugins']['has']('TableClipboard'))return;const _0x47ee45=_0x5f24e7['plugins']['get']('TrackChangesEditing'),_0x16d110=_0x5f24e7['plugins']['get']('TableUtils'),_0x5a6b30=_0x5f24e7['plugins']['get'](Ct),_0xb9aca5=_0x5f24e7['plugins']['get']('TableClipboard');_0x5a6b30['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5f24e7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5f24e7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4eee2e=null;_0x5f24e7['model']['on']('insertContent',(_0x190850,_0xe07110)=>{const [_0x5d7e2c,_0x3658af]=_0xe07110,_0xb4c335=_0xe07110[_0xe07110['length']-0x1];_0xb4c335&&_0xb4c335['forceDefaultExecution']||_0x47ee45['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1ecd3c,_0x45932d,_0x59ceac,_0x5263be,_0x260923){if(_0x45932d&&!_0x45932d['is']('documentSelection'))return!0x1;const _0x2f3b6c=_0x260923['getTableIfOnlyTableInContent'](_0x1ecd3c,_0x59ceac);if(!_0x2f3b6c||!Ue(_0x2f3b6c,void 0x0,_0x5263be))return!0x1;const _0x41a70d=_0x5263be['getSelectionAffectedTableCells'](_0x59ceac['document']['selection']);if(!_0x41a70d['length'])return!0x1;const _0x332dd3=_0x41a70d[0x0]['findAncestor']('table'),_0x497508=_0x5263be['getRowIndexes'](_0x41a70d),_0x1bc8f5=_0x5263be['getColumnIndexes'](_0x41a70d),_0x59cc36={'startRow':_0x497508['first'],'endRow':_0x497508['last'],'startColumn':_0x1bc8f5['first'],'endColumn':_0x1bc8f5['last']};return 0x1==_0x41a70d['length']&&(_0x59cc36['endRow']+=_0x5263be['getRows'](_0x2f3b6c)-0x1,_0x59cc36['endColumn']+=_0x5263be['getColumns'](_0x2f3b6c)-0x1),Ue(_0x332dd3,_0x59cc36,_0x5263be);}(_0x5d7e2c,_0x3658af,_0x5f24e7['model'],_0x16d110,_0xb9aca5)&&(_0x190850['stop'](),_0x4eee2e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5f24e7['model']['change'](()=>{_0x5f24e7['model']['insertContent'](_0xe07110[0x0],_0xe07110[0x1],_0xe07110[0x2],{'forceDefaultExecution':!0x0});const _0x579ea5=_0xf0931c(),{rowInsertionRanges:_0x5de64f,columnInsertionRanges:_0x2f6524,insertionRanges:_0x2f3a03,deletionRanges:_0x132c6d,cells:_0x99cf4c}=_0x4eee2e;_0x5de64f['length']&&_0x47ee45['markMultiRangeInsertion'](_0x5de64f,'tablePasteRow',{'tablePasteChainId':_0x579ea5}),_0x2f6524['length']&&_0x47ee45['markMultiRangeInsertion'](_0x2f6524,'tablePasteColumn',{'tablePasteChainId':_0x579ea5}),_0x2f3a03['length']&&(_0x47ee45['markMultiRangeInsertion'](_0x2f3a03,'tablePaste',{'tablePasteChainId':_0x579ea5,'skipNestingCheck':!0x0}),_0x2f3a03['forEach'](_0x22f6c2=>_0x22f6c2['detach']?.())),_0x132c6d['length']&&(_0x47ee45['markMultiRangeDeletion'](_0x132c6d,'tablePaste',{'tablePasteChainId':_0x579ea5,'skipNestingCheck':!0x0}),_0x132c6d['forEach'](_0x420ee3=>_0x420ee3['detach']?.()));const _0x3645c6=_0x47ee45['markMultiRangeBlockFormat'](_0x99cf4c['map'](({element:_0xf08745})=>_0xf08745),{'formatGroupId':_0xf0931c()},[],'tablePasteCell',{'tablePasteChainId':_0x579ea5});if(_0x3645c6){const _0x145c63=_0x3645c6['getMarkers'](),_0x2a94e3=[];for(const {element:_0x166fec,attributes:_0x15f8e2}of _0x99cf4c){if(!_0x15f8e2)continue;const _0x15f84f=_0x5f24e7['model']['createRangeOn'](_0x166fec),_0x138702=_0x145c63['find'](_0x3496b2=>_0x3496b2['getRange']()['isEqual'](_0x15f84f));_0x138702&&_0x2a94e3['push']([_0x138702['name'],_0x15f8e2]);}_0x2a94e3['length']&&_0x3645c6['setAttribute']('markerAttributes',Object['fromEntries'](_0x2a94e3));}_0x4eee2e=null;}));},{'priority':_0x17a378['high']+0xa}),_0x5f24e7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2ef650,_0x1cb3ad)=>{const [_0xf6a8a,_0x5a4f4e,,_0x2bd10f]=_0x1cb3ad;if(!_0x4eee2e)return;_0x2ef650['stop']();const _0x52de55=_0xf6a8a['cell'],_0x2462cc=_0x5a4f4e,_0x23bfd1=Oe(_0x52de55),_0x32aa27=Oe(_0x2462cc);_0x2ef650['return']=_0x52de55;let _0x33a51c=null,_0x48d45f=null;if(_0x32aa27||_0x23bfd1){if(_0x23bfd1&&!_0x32aa27){_0x2bd10f['remove'](_0x52de55['getChild'](0x0));for(const _0x5c3d57 of Array['from'](_0x2462cc['getChildren']()))_0x2bd10f['insert'](_0x5c3d57,_0x52de55,'end');const _0xe592d3=_0x4eee2e['rowInsertionIndexes']['includes'](_0xf6a8a['row']),_0x517108=_0x4eee2e['columnInsertionIndexes']['includes'](_0xf6a8a['column']);_0xe592d3||_0x517108||(_0x33a51c=_0x36d42c['fromRange'](_0x2bd10f['createRangeIn'](_0x52de55)));}else _0x32aa27&&!_0x23bfd1&&(_0x48d45f=_0x2bd10f['createRangeIn'](_0x52de55));}else{const _0x2261a8=_0x2bd10f['createElement']('tableCellSuggestion'),_0x51eda8=_0x2bd10f['createElement']('tableCellSuggestion');_0x2bd10f['wrap'](_0x2bd10f['createRangeIn'](_0x52de55),_0x51eda8),_0x2bd10f['insert'](_0x2261a8,_0x52de55,0x0);for(const _0x1f9fa7 of Array['from'](_0x2462cc['getChildren']()))_0x2bd10f['insert'](_0x1f9fa7,_0x2261a8,'end');_0x33a51c=_0x36d42c['fromRange'](_0x2bd10f['createRangeOn'](_0x2261a8)),_0x48d45f=_0x36d42c['fromRange'](_0x2bd10f['createRangeOn'](_0x51eda8));}const _0x4fc243=Array['from'](_0x2462cc['getAttributes']())['filter'](([_0xe39461])=>Be['includes'](_0xe39461));_0x4eee2e['cells']['push']({'element':_0x52de55,'attributes':_0x4fc243['length']?Object['fromEntries'](_0x4fc243):null}),_0x33a51c&&_0x4eee2e['insertionRanges']['push'](_0x33a51c),_0x48d45f&&_0x4eee2e['deletionRanges']['push'](_0x48d45f);},{'priority':'high'}),_0x16d110['on']('insertColumns',(_0x21006b,_0x55b07c)=>{const [_0x1367ab,_0x170995={}]=_0x55b07c;if(!_0x4eee2e)return;const _0x4181a9=_0x170995['at']||0x0,_0x398618=_0x170995['columns']||0x1;_0x4eee2e['columnInsertionIndexes']=new Array(_0x398618)['fill'](_0x4181a9)['map']((_0x3818a0,_0x6cb3b5)=>_0x3818a0+_0x6cb3b5);for(const {cell:_0x20a3a3}of _0x16d110['createTableWalker'](_0x1367ab,{'startColumn':_0x4181a9,'endColumn':_0x4181a9+_0x398618-0x1}))_0x4eee2e['columnInsertionRanges']['push'](_0x5f24e7['model']['createRangeOn'](_0x20a3a3));},{'priority':'low'}),_0x16d110['on']('insertRows',(_0x412f46,_0x2a4732)=>{const [_0x33d9fb,_0x34b29e={}]=_0x2a4732;if(!_0x4eee2e)return;const _0x52a01e=_0x34b29e['at']||0x0,_0x15823e=_0x34b29e['rows']||0x1;_0x4eee2e['rowInsertionIndexes']=new Array(_0x15823e)['fill'](_0x52a01e)['map']((_0x59b856,_0xdcaac3)=>_0x59b856+_0xdcaac3);for(const {cell:_0x34e475}of _0x16d110['createTableWalker'](_0x33d9fb,{'startRow':_0x52a01e,'endRow':_0x52a01e+_0x15823e-0x1}))_0x4eee2e['rowInsertionRanges']['push'](_0x5f24e7['model']['createRangeOn'](_0x34e475));},{'priority':'low'}),_0x47ee45['descriptionFactory']['registerDescriptionCallback'](_0x10acba=>{if(_0x10acba['subType']&&_0x10acba['subType']['startsWith']('tablePaste'))return _0x10acba['previous']?{}:{'type':'insertion','content':o(_0x5f24e7['locale'],'*Replace\x20table\x20cells*')};});const _0x22bc4c=()=>!0x1;for(const _0x6ec46b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x47ee45['_suggestionFactory']['registerCustomCallback']('insertion',_0x6ec46b,'join',_0x22bc4c),_0x47ee45['_suggestionFactory']['registerCustomCallback']('deletion',_0x6ec46b,'join',_0x22bc4c),_0x47ee45['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6ec46b,'join',_0x22bc4c);_0x47ee45['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x22bc4c),_0x47ee45['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x21f306,_0x5163a7,_0x5b9b83)=>{const _0x2f4bdf=_0x21f306['map'](_0x44e4d7=>_0x44e4d7['getContainedElement']())['filter'](_0x5889a6=>_0x5889a6),_0x13a76e=new Map(_0x2f4bdf['map'](_0x56268b=>[_0x56268b,null]));if(_0x4eee2e){for(const {element:_0x1967c9,attributes:_0x1ca127}of _0x4eee2e['cells'])_0x1ca127&&_0x13a76e['set'](_0x1967c9,_0x1ca127);}else{if(_0x5b9b83&&_0x5b9b83['markerAttributes'])for(const [_0x135343,_0x575db6]of Object['entries'](_0x5b9b83['markerAttributes'])){const _0x31b9d3=_0x5f24e7['model']['markers']['get'](_0x135343),_0x3821bc=_0x31b9d3?_0x31b9d3['getRange']()['getContainedElement']():null;_0x3821bc&&_0x13a76e['set'](_0x3821bc,_0x575db6);}}_0x5f24e7['model']['change'](_0x59920c=>{for(const [_0x5a6587,_0x22af44]of _0x13a76e)_0x59920c['setAttributes']({...xe,..._0x22af44},_0x5a6587);});});const _0x66af91=(_0x457952,_0x26177c)=>{_0x47ee45['_suggestionFactory']['registerCustomCallback'](_0x457952,'tablePaste',_0x26177c,(_0x506dc0,_0x1878a5,_0x5b33a1)=>{_0x5f24e7['model']['change'](_0x2be44a=>{const _0x265afa=[];for(const _0x40d8c1 of _0x506dc0){const _0x89f69f=_0x40d8c1['start']['nodeAfter'];_0x89f69f['is']('element','tableCellSuggestion')&&_0x265afa['push'](_0x89f69f);}_0x47ee45['_suggestionFactory']['getSuggestionCallback'](_0x457952,null,_0x26177c)(_0x506dc0,_0x1878a5,_0x5b33a1);for(const _0x48876f of _0x265afa)'$graveyard'!=_0x48876f['root']['rootName']&&_0x2be44a['unwrap'](_0x48876f);});});};_0x66af91('insertion','accept'),_0x66af91('insertion','discard'),_0x66af91('deletion','accept'),_0x66af91('deletion','discard'),_0x47ee45['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3829f9=>{const _0x433fe8=_0x3829f9['map'](_0x43292c=>_0x43292c['getContainedElement']()),_0x112b5d=_0x433fe8[0x0]['findAncestor']('table'),{minRow:_0x3b511d,maxRow:_0x54cdb3}=_0x5a6b30['_getCoordsForCells'](_0x433fe8);_0x16d110['removeRows'](_0x112b5d,{'at':_0x3b511d,'rows':_0x54cdb3-_0x3b511d+0x1});}),_0x47ee45['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1d4f49=>{const _0x2efe78=_0x1d4f49['map'](_0x3a7aef=>_0x3a7aef['getContainedElement']()),_0x36d954=_0x2efe78[0x0]['findAncestor']('table'),{minColumn:_0x450d65,maxColumn:_0x44baa7}=_0x5a6b30['_getCoordsForCells'](_0x2efe78);_0x16d110['removeColumns'](_0x36d954,{'at':_0x450d65,'columns':_0x44baa7-_0x450d65+0x1});});const _0x44d2d5=(_0x34d78a,_0x2337d4)=>{if(!_0x2337d4['subType']||!_0x2337d4['subType']['startsWith']('tablePaste'))return;const _0x49a64b=_0x2337d4['attributes']['tablePasteChainId'],_0x5b9454=_0x47ee45['getSuggestions']()['filter'](_0x2c862f=>_0x2c862f['isInContent']&&_0x2c862f['attributes']&&_0x2c862f['attributes']['tablePasteChainId']==_0x49a64b);_0x5b9454['length']&&_0x2337d4['getAllAdjacentSuggestions']()['length']!=_0x5b9454['length']&&_0x5b9454['reduce']((_0x4b59b4,_0x1e3fb3)=>(_0x4b59b4['next']=_0x1e3fb3,_0x1e3fb3['previous']=_0x4b59b4,_0x1e3fb3));};function _0x263122(_0x3b38d9,_0x1cee09=!0x0){const {id:_0x55914b,authorId:_0x355e30}=_0x47ee45['_splitMarkerName'](_0x3b38d9['markerName']),_0x11f078=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x496d29=_0x47ee45['activeMarkers']['includes'](_0x3b38d9['markerName']);return _0x496d29&&_0x11f078['push']('ck-suggestion-marker--active'),{'classes':_0x11f078,'attributes':{'data-suggestion':_0x55914b,'data-author-id':_0x355e30},'priority':_0x496d29&&_0x1cee09?0xbc2:0xbb8};}_0x47ee45['on']('suggestionLoaded',_0x44d2d5,{'priority':'high'}),_0x47ee45['on']('suggestionUnloaded',_0x44d2d5,{'priority':'high'}),_0x5f24e7['model']['document']['registerPostFixer'](()=>{let _0x3879a3=!0x1;const _0x10543c=Array['from'](_0x5f24e7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21b09d,data:_0x588a12}of _0x10543c){const {group:_0x3f040b,type:_0x256588,id:_0x3b6ece}=_0x47ee45['_splitMarkerName'](_0x21b09d);if('suggestion'!=_0x3f040b||'deletion'!=_0x256588||_0x588a12['oldRange'])continue;if(!_0x47ee45['hasSuggestion'](_0x3b6ece))continue;const _0x4ab3f1=_0x47ee45['getSuggestion'](_0x3b6ece)['getRanges'](),_0x16d298=_0x5f24e7['plugins']['get']('Users')['me'];for(const _0x376bb6 of _0x47ee45['getSuggestions']()){if(!_0x376bb6['isInContent']||_0x376bb6['author']!=_0x16d298)continue;if('formatBlock'!=_0x376bb6['type']||'tablePasteCell'!=_0x376bb6['subType'])continue;if(_0x376bb6['getRanges']()['every'](_0x657d8e=>_0x4ab3f1['some'](_0x39ac9c=>_0x39ac9c['containsRange'](_0x657d8e,!0x0)))){for(const _0x416162 of _0x376bb6['getAllAdjacentSuggestions']())_0x416162['isInContent']&&(_0x416162['discard'](),_0x3879a3=!0x0);}}}return _0x3879a3;}),_0x5f24e7['model']['document']['registerPostFixer'](_0x4f08f4=>{const _0x4f6987=_0x5f24e7['commands']['get']('redo');if(!_0x4f6987||!_0x4f6987['_createdBatches']['has'](_0x4f08f4['batch']))return!0x1;let _0x381243=!0x1;const _0x4870e4=_0x5f24e7['plugins']['get']('Users')['me'],_0x14898a=_0x5f24e7['model']['document']['differ']['getChanges'](),_0xab6eed=Array['from'](_0x5f24e7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5576f7,data:_0x5a9db3})=>{const {group:_0x15de98,subType:_0x3446f0,authorId:_0x1a004f}=_0x47ee45['_splitMarkerName'](_0x5576f7);return'suggestion'==_0x15de98&&'tablePaste'==_0x3446f0&&_0x1a004f==_0x4870e4['id']&&!_0x5a9db3['oldRange'];});for(const _0x50171c of _0x14898a){if('insert'!=_0x50171c['type']||'tableCellSuggestion'!=_0x50171c['name']||0x1!=_0x50171c['length'])continue;const _0x342765=_0x4f08f4['createRange'](_0x50171c['position'],_0x50171c['position']['getShiftedBy'](0x1));if(!_0xab6eed['find'](({data:_0x1592d2})=>_0x1592d2['newRange']['isEqual'](_0x342765))){for(const {name:_0x2a5907,data:_0x195116}of _0xab6eed)if(_0x342765['containsRange'](_0x195116['newRange'])){_0x4f08f4['updateMarker'](_0x2a5907,{'range':_0x342765}),_0x381243=!0x0;break;}}}return _0x381243;}),_0x5f24e7['model']['document']['registerPostFixer'](_0x4e5ffd=>{let _0x1fc980=!0x1;const _0x5192c3=_0x5f24e7['plugins']['get']('Users')['me'],_0x31364f=_0x47ee45['getSuggestions']()['filter'](_0xa3a174=>_0xa3a174['isInContent']&&_0xa3a174['author']==_0x5192c3),_0xbc6ac1=new Set(),_0x42014a=new Set();for(const _0x341a30 of _0x31364f)if('tablePaste'==_0x341a30['subType'])for(const _0x25e113 of _0x341a30['getMarkers']()){const _0x8c2485=_0x25e113['getRange']()['getContainedElement']();if(_0x8c2485){if(_0x8c2485['is']('element','tableCellSuggestion')&&Oe(_0x8c2485)){_0x341a30['removeMarker'](_0x25e113['name']),_0xbc6ac1['add'](_0x8c2485),_0x1fc980=!0x0;const _0x21efa6=_0x8c2485['nextSibling'],_0x2d35c7=_0x8c2485['previousSibling'],_0x11cdce=_0x21efa6&&_0x21efa6['is']('element','tableCellSuggestion'),_0x465314=_0x2d35c7&&_0x2d35c7['is']('element','tableCellSuggestion');_0x11cdce&&!_0xbc6ac1['has'](_0x21efa6)&&_0x42014a['add'](_0x21efa6),_0x465314&&!_0xbc6ac1['has'](_0x2d35c7)&&_0x42014a['add'](_0x2d35c7);}else _0x8c2485['is']('element','paragraph')&&_0x8c2485['isEmpty']&&(_0x341a30['removeMarker'](_0x25e113['name']),_0x1fc980=!0x0);}}else{if('tablePasteCell'==_0x341a30['subType']){if(!_0x341a30['attributes']||!_0x341a30['attributes']['tablePasteChainId'])continue;const _0x585336=_0x341a30['attributes']['markerAttributes'];if(_0x585336&&Object['keys'](_0x585336)['length'])continue;const _0x5d5bd8=_0x341a30['attributes']['tablePasteChainId'];let _0x4cb913=!0x0,_0x1d5608=!0x0;for(const _0x57702d of _0x31364f)if(_0x57702d['subType']&&_0x57702d['subType']['startsWith']('tablePaste')){if(!_0x57702d['attributes']['tablePasteChainId']){_0x1d5608=!0x1;break;}if(_0x57702d['id']!=_0x341a30['id']&&_0x57702d['attributes']['tablePasteChainId']==_0x5d5bd8){_0x4cb913=!0x1;break;}}_0x1d5608&&_0x4cb913&&(_0x341a30['removeMarkers'](),_0x1fc980=!0x0);}}for(const _0x2925db of _0xbc6ac1)_0x4e5ffd['remove'](_0x2925db);for(const _0x2e3efb of _0x42014a)_0x4e5ffd['unwrap'](_0x2e3efb);return _0x1fc980;}),_0x5f24e7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x35a6ae=>_0x263122(_0x35a6ae),'converterPriority':'high'}),_0x5f24e7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x207cbf,_0x241433)=>_0x241433['options']['showSuggestionHighlights']?_0x263122(_0x207cbf,!0x1):null,'converterPriority':'high'});const _0x1b0774=_0x5f24e7['editing']['view'];this['listenTo'](_0x1b0774['document'],'clipboardOutput',(_0x82cae8,_0x490c45)=>{const _0x4a78fa=[];for(const _0x45a898 of _0x1b0774['createRangeIn'](_0x490c45['content'])['getItems']())_0x45a898['is']('element','suggestion-td')&&_0x4a78fa['push'](_0x45a898);_0x1b0774['change'](_0x2c5295=>{for(const _0x4bcb52 of _0x4a78fa)_0x2c5295['move'](_0x2c5295['createRangeIn'](_0x4bcb52),_0x2c5295['createPositionBefore'](_0x4bcb52)),_0x2c5295['remove'](_0x4bcb52);});});}}function Oe(_0x112a34){if(_0x112a34['isEmpty'])return!0x0;const _0x2d64af=_0x112a34['getChild'](0x0);return _0x2d64af['is']('element','paragraph')&&_0x2d64af['isEmpty'];}function Ue(_0x479e6d,_0xda95da={},_0x51523e){for(const {isAnchor:_0x3a4b58,cellHeight:_0xeb4758,cellWidth:_0x1b3b91}of _0x51523e['createTableWalker'](_0x479e6d,{'includeAllSlots':!0x0,..._0xda95da}))if(!_0x3a4b58||0x1!=_0xeb4758||0x1!=_0x1b3b91)return!0x1;return!0x0;}class $t extends _0x6a3ec8{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1685db=this['editor']['plugins']['get']('TrackChangesEditing');_0x1685db['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1685db['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1685db['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1685db['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1685db['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1685db['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1e96b4,_0x1e1442){const _0x59c703=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4265db=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4e246b=_0x1e1442['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2d7905=_0x4265db['getColumnGroupElement'](_0x4e246b);let _0x529c5c=_0x2d7905?_0x4265db['getTableColumnsWidths'](_0x2d7905):null,_0x3b7a2f=_0x4e246b['getAttribute']('tableWidth')||null;const _0x1e5851=_0x1e1442['tableWidth']||_0x3b7a2f,_0xa4d661=_0x1e1442['columnWidths']||_0x529c5c,_0x3df300=this['editor']['plugins']['get']('Users')['me'];for(const _0x2e0b9c of _0x59c703['getSuggestions']()){const _0x2f7384=_0x2e0b9c['getContainedElement']();if('resizeTable'===_0x2e0b9c['subType']&&_0x2f7384===_0x4e246b){_0x2e0b9c['author']!==_0x3df300&&_0x2e0b9c['discard']();const _0x478294=_0x2e0b9c['data']['commandParams'];_0x3b7a2f=_0x478294[0x0]['tableWidth'],_0x529c5c=_0x478294[0x0]['columnWidths'];break;}}_0x1e96b4({'table':_0x4e246b,'tableWidth':_0x1e5851,'columnWidths':_0xa4d661}),_0x59c703['markBlockFormat'](_0x4e246b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3b7a2f,'columnWidths':_0x529c5c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x13692e){if('formatBlock'!=_0x13692e['type']&&'formatInline'!=_0x13692e['type'])return;const {data:_0x1aebcd}=_0x13692e;if(_0x1aebcd&&'resizeTable'===_0x1aebcd['formatGroupId']){const _0x301fe1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x301fe1)};}}}class Bt extends _0x6a3ec8{['afterInit'](){const _0x1cd59b=this['editor'];_0x1cd59b['plugins']['has']('Template')&&_0x1cd59b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x6a3ec8{['afterInit'](){const _0x6865a6=this['editor'];if(!_0x6865a6['commands']['get']('insertTableOfContents'))return;_0x6865a6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x46ce01=_0x6865a6['plugins']['get']('TrackChangesEditing'),_0x3278d6=_0x6865a6['locale'];_0x46ce01['descriptionFactory']['registerElementLabel']('tableOfContents',_0x24208d=>o(_0x3278d6,'ELEMENT_TABLE_OF_CONTENTS',_0x24208d));}}class Rt extends _0x6a3ec8{['afterInit'](){const _0x3fbce1=this['editor'];if(!_0x3fbce1['plugins']['has']('Title'))return;const _0xd5aaba=_0x3fbce1['plugins']['get']('TrackChangesEditing');_0xd5aaba['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3fbce1['locale'],'ELEMENT_TITLE')),_0x3fbce1['model']['document']['registerPostFixer'](_0x37d052=>{let _0x5eba0f=!0x1;const _0x2e35b5=Array['from'](_0x3fbce1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c3d38,data:_0x57b163}of _0x2e35b5){const {group:_0x4392ce}=_0xd5aaba['_splitMarkerName'](_0x2c3d38);if('suggestion'!==_0x4392ce||!_0x57b163['newRange'])continue;const _0x4f2cee=_0x57b163['newRange'],_0x4acb8c=_0x4f2cee['end']['nodeBefore'];if(!_0x4acb8c||!_0x4acb8c['is']('element','title-content'))continue;if(!_0x4f2cee['start']['isTouching'](_0x4f2cee['end']))continue;const _0x196c02=_0x3fbce1['model']['schema']['getNearestSelectionRange'](_0x4f2cee['end'],'forward');if(_0x196c02&&_0x196c02['isCollapsed']){const _0x569131=_0x37d052['createRange'](_0x4f2cee['start'],_0x196c02['start']);_0x569131['isEqual'](_0x4f2cee)||(_0x37d052['updateMarker'](_0x2c3d38,{'range':_0x569131}),_0x5eba0f=!0x0);}_0x5eba0f||(_0x37d052['removeMarker'](_0x2c3d38),_0x5eba0f=!0x0);}return _0x5eba0f;});}}class Tt extends _0x6a3ec8{['afterInit'](){const _0x47da51=this['editor'],_0xb54191=_0x47da51['plugins']['get']('TrackChangesEditing');_0x47da51['plugins']['has']('Uploadcare')&&(_0xb54191['enableCommand']('uploadcare'),_0x47da51['plugins']['has']('UploadcareImageEdit')&&(_0xb54191['enableCommand']('uploadcareImageEdit'),_0xb54191['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xb54191['registerBlockAttribute']('uploadcareImageId'),_0xb54191['descriptionFactory']['registerDescriptionCallback'](_0x14b071=>{if('attribute'!=_0x14b071['type'])return;const {data:_0x10d35e}=_0x14b071;return _0x10d35e&&'uploadcareImageId'==_0x10d35e['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x6a3ec8{['afterInit'](){const _0x3dd09b=this['editor'],_0x4fe5bf=_0x3dd09b['plugins']['get']('TrackChangesEditing');_0x3dd09b['plugins']['has']('UndoEditing')&&(_0x4fe5bf['enableCommand']('undo'),_0x4fe5bf['enableCommand']('redo'));}}class Et extends _0x6a3ec8{static get['requires'](){return[Ct];}['afterInit'](){const _0x88659=this['editor'];if(!_0x88659['plugins']['has']('TableCaptionEditing'))return;_0x88659['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x6a3ec8{['tableProperties'];['tableCellProperties'];constructor(_0x531f44){super(_0x531f44),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 _0x4b6ca4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4aff9b of this['tableProperties'])_0x4b6ca4['enableCommand'](_0x4aff9b,(_0x4bf68d,_0x4756dc)=>{const _0x5c79e4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4aff9b,[_0x5c79e4],this['tableProperties'],'tableProperties',_0x4bf68d,_0x4756dc);});_0x4b6ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4b6ca4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b6ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2f2091,_0x2fb130)=>this['handleDiscardAction'](this['tableProperties'],_0x2f2091,_0x2fb130)),_0x4b6ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1ce384 of this['tableCellProperties'])_0x4b6ca4['enableCommand'](_0x1ce384,(_0x2771cb,_0x568b49)=>{const _0x1aa472=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1ce384,_0x1aa472,this['tableCellProperties'],'tableCellProperties',_0x2771cb,_0x568b49);});_0x4b6ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4b6ca4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b6ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3d4537,_0x14d3d2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3d4537,_0x14d3d2)),_0x4b6ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4b6ca4['descriptionFactory']['registerDescriptionCallback'](_0x3bae55=>this['handleSuggestionDescription'](_0x3bae55));}['_handlePropertyChange'](_0x45e4b5,_0x247dcd,_0x3eb547,_0x375ccc,_0x52e3d4,_0xe939df){const _0xc5b312=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xe939df['batch'],()=>{for(const _0x1a62e6 of _0x247dcd){if(this['_getSuggestion'](_0x1a62e6,_0x375ccc))_0x52e3d4(_0xe939df);else{const _0x26ec1a={};for(const _0x293628 of _0x3eb547){const _0x1ba69c=_0x1a62e6['getAttribute'](_0x293628);void 0x0!==_0x1ba69c&&(_0x26ec1a[_0x293628]=_0x1ba69c);}_0x52e3d4(_0xe939df),_0xc5b312['markBlockFormat'](_0x1a62e6,{'commandParams':[_0x26ec1a]},[],_0x375ccc);}}});}['handleDiscardAction'](_0x1f6444,_0x3750bd,_0x31ab02){const _0x4cf6e6=_0x3750bd[0x0]['start']['nodeAfter'],_0x21c482=_0x31ab02['commandParams'][0x0];this['editor']['model']['change'](_0x502224=>{for(const _0x34c5a1 of _0x1f6444)void 0x0!==_0x21c482[_0x34c5a1]?_0x502224['setAttribute'](_0x34c5a1,_0x21c482[_0x34c5a1],_0x4cf6e6):_0x502224['removeAttribute'](_0x34c5a1,_0x4cf6e6);});}['handleSuggestionDescription'](_0xaa507f){if(_0xaa507f['data'])switch(_0xaa507f['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'](_0x27eb17,_0x36cda0){const _0x229d24=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2d0add of _0x229d24['getSuggestions']({'skipNotAttached':!0x0})){const _0x34d9ed=_0x2d0add['getContainedElement']();if(_0x2d0add['subType']===_0x36cda0&&_0x34d9ed===_0x27eb17)return _0x2d0add;}return null;}}const m='$elementName';class p extends _0x6a3ec8{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4ea5c3,_0x5e80f0,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x372fe4){super(_0x372fe4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xb89133,_0xc734d6,_0x4e6264,_0x3f1c27)=>{this['_model']['change'](()=>{for(const _0x19dbe0 of[..._0x3f1c27,..._0x4e6264])this['_model']['markers']['has'](_0x19dbe0)&&_0x372fe4['editing']['reconvertMarker'](_0x19dbe0);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x372fe4['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(),_0x372fe4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x372fe4['config']['get']('trackChanges.trackFormatChanges'),_0x372fe4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x372fe4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x372fe4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x41a5cf=this['editor'],_0xb3389=(_0x5283d1,_0x5d4a81)=>{if('attribute'!=_0x5283d1)return'ck-suggestion-marker-'+_0x5283d1;const _0x268583=_0x5d4a81['split']('|')[0x0];return this['_isBlockAttribute'](_0x268583)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x41a5cf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2617fb=>{const {id:_0x339a48,authorId:_0xf163e9,type:_0xc48d81,subType:_0x15e5ee}=this['_splitMarkerName'](_0x2617fb['markerName']),_0x4e7a04=['ck-suggestion-marker',_0xb3389(_0xc48d81,_0x15e5ee)];let _0x4162e5=0xbb8;return this['activeMarkers']['includes'](_0x2617fb['markerName'])&&(_0x4e7a04['push']('ck-suggestion-marker--active'),_0x4162e5=0xbc2),'deletion'==_0xc48d81&&(_0x4162e5+=0x5),{'classes':_0x4e7a04,'attributes':{'data-suggestion':_0x339a48,'data-author-id':_0xf163e9},'priority':_0x4162e5};}}),_0x41a5cf['conversion']['for']('dataDowncast')['add'](_0x3f2a59=>{_0x3f2a59['on']('addMarker:suggestion',(_0x421afe,_0x5db17b,_0x437ec8)=>{if(!_0x437ec8['options']['showSuggestionHighlights'])return;const _0x20a31c=_0x5db17b['item'];if(!_0x20a31c)return;const _0x50d32b=_0x437ec8['mapper']['toViewElement'](_0x20a31c);_0x41a5cf['model']['schema']['isObject'](_0x20a31c)&&_0x50d32b&&!_0x50d32b['getCustomProperty']('widget')&&_0x50d32b['is']('containerElement')&&_0x244f86(_0x50d32b,_0x437ec8['writer']);},{'priority':'high'});}),_0x41a5cf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x19d6b2,_0x419cad)=>{if(!_0x419cad['options']['showSuggestionHighlights'])return null;const {type:_0x487f9c,subType:_0x56f0fc}=this['_splitMarkerName'](_0x19d6b2['markerName']);return{'classes':['ck-suggestion-marker',_0xb3389(_0x487f9c,_0x56f0fc)],'priority':0xbb8};}});const _0x5db7f5=({showActiveMarkers:_0xbb5bc4=!0x0,isAttributeSuggestion:_0x581a6f=!0x1}={})=>(_0x5bf93d,_0x2b03e0,_0x57ec7a)=>{if(!_0x2b03e0['item'])return;const {id:_0x4f30ba,authorId:_0x3f8828}=this['_splitMarkerName'](_0x2b03e0['markerName']);if(_0x581a6f){const _0x21849b=this['_suggestions']['get'](_0x4f30ba),_0x5e92cc=this['_getAttributeKey'](_0x21849b);if(!this['_isBlockAttribute'](_0x5e92cc))return;}if(_0x2b03e0['item']['is']('selection'))return void _0x57ec7a['consumable']['consume'](_0x2b03e0['item'],_0x5bf93d['name']);const _0x368b26=_0x57ec7a['mapper']['toViewElement'](_0x2b03e0['item']);if(_0x2b03e0['item']['is']('element')&&_0x41a5cf['model']['schema']['isBlock'](_0x2b03e0['item'])&&!_0x368b26['getCustomProperty']('addHighlight')){_0x57ec7a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x368b26),_0x57ec7a['writer']['setAttribute']('data-suggestion',_0x4f30ba,_0x368b26),_0x57ec7a['writer']['setAttribute']('data-author-id',_0x3f8828,_0x368b26),_0x57ec7a['mapper']['bindElementToMarker'](_0x368b26,_0x2b03e0['markerName']),_0xbb5bc4&&(this['activeMarkers']['includes'](_0x2b03e0['markerName'])?_0x57ec7a['writer']['addClass']('ck-suggestion-marker--active',_0x368b26):_0x57ec7a['writer']['removeClass']('ck-suggestion-marker--active',_0x368b26));for(const _0x391dff of _0x41a5cf['model']['createRangeIn'](_0x2b03e0['item'])['getItems']())_0x57ec7a['consumable']['consume'](_0x391dff,_0x5bf93d['name']);_0x57ec7a['consumable']['consume'](_0x2b03e0['item'],_0x5bf93d['name']);}};_0x41a5cf['conversion']['for']('dataDowncast')['add'](_0x110b18=>{_0x110b18['on']('addMarker:suggestion:formatBlock',(_0x6c291,_0x4415ba,_0x1af2ac)=>{_0x1af2ac['options']['showSuggestionHighlights']&&_0x5db7f5({'showActiveMarkers':!0x1})(_0x6c291,_0x4415ba,_0x1af2ac);},{'priority':'highest'});}),_0x41a5cf['conversion']['for']('dataDowncast')['add'](_0x1b9f56=>{_0x1b9f56['on']('addMarker:suggestion:attribute',(_0x3097a7,_0x32801c,_0x1c6e47)=>{_0x1c6e47['options']['showSuggestionHighlights']&&_0x5db7f5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3097a7,_0x32801c,_0x1c6e47);},{'priority':'highest'});}),_0x41a5cf['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x13833e,_0x375e05)=>_0x375e05['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x13833e['substr'](0xb)}}),_0x41a5cf['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4465df,{writer:_0x2bb462})=>{let _0x5eb547='suggestion:'+_0x4465df['getAttribute']('suggestion-type')+':'+_0x4465df['getAttribute']('id');return _0x4465df['getAttribute']('marker-count')&&(_0x5eb547+=':'+_0x4465df['getAttribute']('marker-count')),_0x2bb462['createElement']('$marker',{'data-name':_0x5eb547});}}),_0x41a5cf['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x41a5cf['conversion']['for']('editingDowncast')['add'](_0x2aee5f=>{_0x2aee5f['on']('addMarker:suggestion:formatBlock',_0x5db7f5(),{'priority':'high'});}),_0x41a5cf['conversion']['for']('editingDowncast')['add'](_0x4e3ade=>{_0x4e3ade['on']('addMarker:suggestion:attribute',_0x5db7f5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x41a5cf['conversion']['for']('editingDowncast')['add'](_0x174f18=>{_0x174f18['on']('removeMarker:suggestion:formatBlock',(_0x16ddb5,_0x34e51f,_0x36784b)=>{const _0x41777a=_0x36784b['mapper']['markerNameToElements'](_0x34e51f['markerName']);if(_0x41777a){for(const _0x16d7ff of _0x41777a)_0x16d7ff['getCustomProperty']('addHighlight')||(_0x36784b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x16d7ff),_0x36784b['writer']['removeAttribute']('data-suggestion',_0x16d7ff),_0x36784b['writer']['removeAttribute']('data-author-id',_0x16d7ff),_0x36784b['mapper']['unbindElementFromMarkerName'](_0x16d7ff,_0x34e51f['markerName']));}},{'priority':'high'});}),_0x41a5cf['conversion']['for']('editingDowncast')['add'](_0x3b51d7=>{_0x3b51d7['on']('removeMarker:suggestion:attribute',(_0x3f3f09,_0x5907b3,_0x4afb22)=>{const _0x335f9d=_0x4afb22['mapper']['markerNameToElements'](_0x5907b3['markerName']);if(!_0x335f9d)return;const {id:_0x45856d}=this['_splitMarkerName'](_0x5907b3['markerName']),_0x9c7555=this['_suggestions']['get'](_0x45856d),_0x56030b=this['_getAttributeKey'](_0x9c7555);if(this['_isBlockAttribute'](_0x56030b)){for(const _0x2041c1 of _0x335f9d)_0x2041c1['getCustomProperty']('addHighlight')||(_0x4afb22['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2041c1),_0x4afb22['writer']['removeAttribute']('data-suggestion',_0x2041c1),_0x4afb22['writer']['removeAttribute']('data-author-id',_0x2041c1),_0x4afb22['mapper']['unbindElementFromMarkerName'](_0x2041c1,_0x5907b3['markerName']));}},{'priority':'high'});}),_0x41a5cf['model']['document']['registerPostFixer'](_0x2939c8=>{let _0x177b1b=!0x1;const _0x292dd3=Array['from'](_0x41a5cf['model']['document']['differ']['getChangedMarkers']()),_0x1e67e7=new Set();for(const {name:_0xdb215f,data:_0x2ef176}of _0x292dd3){const {group:_0x100a14,type:_0x1a366a,subType:_0x100f08,id:_0x362a5c}=this['_splitMarkerName'](_0xdb215f);if('suggestion'!==_0x100a14)continue;const _0x5f4133=this['_suggestions']['get'](_0x362a5c);if(null!=_0x2ef176['newRange']){'formatInline'==_0x1a366a&&(_0x177b1b=_0x177b1b||Lt(_0x2ef176['newRange'],_0xdb215f,_0x2939c8,_0x41a5cf['model']['schema']));const _0x38e675='attribute'==_0x1a366a&&this['_isBlockAttribute'](_0x100f08['split']('|')[0x0]);if(_0x2ef176['newRange']['isCollapsed']||'$graveyard'==_0x2ef176['newRange']['root']['rootName']||'formatBlock'==_0x1a366a&&!Ht(_0x2ef176['newRange'])||_0x38e675&&!Ht(_0x2ef176['newRange'])||'deletion'==_0x1a366a&&!(!Ft(_0x1a3124=_0x2ef176['newRange'])&&!function(_0x1c26c9){return _0x1c26c9['start']['parent']==_0x1c26c9['end']['nodeBefore']&&_0x1c26c9['start']['isAtEnd'];}(_0x1a3124)))_0x2939c8['removeMarker'](_0xdb215f),_0x177b1b=!0x0;else{if(!_0x5f4133||!_0x5f4133['isInContent'])continue;if(_0x2ef176['newRange']&&_0x2ef176['oldRange']&&_0x2ef176['newRange']['isEqual'](_0x2ef176['oldRange']))continue;_0x1e67e7['add'](_0x5f4133);}}}var _0x1a3124;return _0x1e67e7['size']>0x0&&(_0x177b1b=!!this['_joinWithAdjacentSuggestions'](_0x1e67e7)||_0x177b1b),_0x177b1b;}),_0x41a5cf['model']['document']['registerPostFixer'](_0x1e4b83=>{let _0xf03ef7=!0x1;for(const _0x1f2a40 of _0x41a5cf['model']['document']['differ']['getChanges']())if('insert'==_0x1f2a40['type'])for(const _0x902744 of this['_suggestions']['values']()){if(_0x902744['isMultiRange']||!_0x902744['isInContent'])continue;const _0x5f2658='formatBlock'==_0x902744['type'],_0x5f0529=this['_getAttributeKey'](_0x902744),_0xba3e67=_0x5f0529&&this['_isBlockAttribute'](_0x5f0529);if(!_0x5f2658&&!_0xba3e67)continue;const _0x1b11c3=_0x902744['getFirstRange']();if(_0x1b11c3['start']['parent']!=_0x1b11c3['end']['parent']&&!_0x1b11c3['end']['isAtEnd']){const _0x2509a2=_0x41a5cf['model']['createPositionAt'](_0x1b11c3['start']['nodeAfter'],'end'),_0xd3b8c5=_0x41a5cf['model']['createRange'](_0x1b11c3['start'],_0x2509a2);_0x1e4b83['updateMarker'](_0x902744['getFirstMarker'](),{'range':_0xd3b8c5}),_0xf03ef7=!0x0;}}return _0xf03ef7;}),_0x41a5cf['model']['document']['registerPostFixer'](_0x2c8cc1=>this['_processAttributeChanges'](_0x2c8cc1)),_0x41a5cf['model']['document']['registerPostFixer'](_0x20a97a=>!_0x20a97a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x20a97a)),_0x41a5cf['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x41a5cf['model']['document']['on']('change:data',(_0x522170,_0x5821a6)=>{if(!_0x5821a6['isLocal']||_0x5821a6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1298d5=_0x41a5cf['model']['document']['differ']['getChanges']();if(0x0==_0x1298d5['length'])return;const _0x5ac6bd=[],_0x37a3c2=_0x1298d5['filter'](_0x9ef99=>'attribute'==_0x9ef99['type']),_0x3f6784=_0x1298d5['filter'](_0x2b309b=>'insert'==_0x2b309b['type']&&'$text'!=_0x2b309b['name']);for(const _0x774fb0 of _0x37a3c2)this['_isRegisteredAttribute'](_0x774fb0['attributeKey'])&&_0x5ac6bd['push']({'key':_0x774fb0['attributeKey'],'newValue':_0x774fb0['attributeNewValue'],'oldValue':_0x774fb0['attributeOldValue'],'range':qt(_0x774fb0['range'],_0x41a5cf['model'])});for(const _0xa5510a of _0x3f6784){if('rename'!=_0xa5510a['action']&&'refresh'!=_0xa5510a['action'])continue;const _0x56a362=zt(_0xa5510a['position']['nodeAfter'],_0x41a5cf['model']),_0x985b35=_0xa5510a['before'];'rename'==_0xa5510a['action']&&_0x5ac6bd['push']({'key':m,'newValue':_0xa5510a['name'],'oldValue':_0x985b35['name'],'range':_0x56a362});for(const [_0x567d00,_0x71133b]of _0x985b35['attributes']){if(!this['_isRegisteredAttribute'](_0x567d00))continue;const _0x544594=_0xa5510a['attributes']['get'](_0x567d00);_0x71133b!==_0x544594&&_0x5ac6bd['push']({'key':_0x567d00,'newValue':_0x544594,'oldValue':_0x71133b,'range':_0x56a362});}for(const [_0x122eec,_0x2f0ad8]of _0xa5510a['attributes'])this['_isRegisteredAttribute'](_0x122eec)&&(_0x985b35['attributes']['has'](_0x122eec)||_0x5ac6bd['push']({'key':_0x122eec,'newValue':_0x2f0ad8,'oldValue':null,'range':_0x56a362}));}0x0!=_0x5ac6bd['length']&&_0x41a5cf['model']['enqueueChange'](_0x5821a6,_0x55b0b5=>{const _0x3c10a7=_0xf0931c();for(const {range:_0x39f89e,key:_0x1751b0,oldValue:_0x389409,newValue:_0x14b277}of _0x5ac6bd)this['markAttributeChange'](_0x39f89e,_0x1751b0,_0x389409,_0x14b277,{'groupId':_0x3c10a7});this['_reduceExistingSuggestions'](_0x55b0b5,_0x5ac6bd);});},{'priority':'lowest'}),_0x41a5cf['model']['markers']['on']('update:suggestion',(_0x1c6852,_0x2be0b9,_0x812388)=>{if(null==_0x812388){const {id:_0x1f3e4f}=this['_splitMarkerName'](_0x2be0b9['name']),_0x380d48=this['_suggestions']['get'](_0x1f3e4f);_0x380d48&&_0x380d48['addMarkerName'](_0x2be0b9['name']);}}),_0x41a5cf['model']['document']['on']('change:data',()=>{const _0x39415c=Array['from'](_0x41a5cf['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3abfab=>'suggestion'===this['_splitMarkerName'](_0x3abfab['name'])['group']);if(0x0===_0x39415c['length'])return;_0x39415c['sort']((_0x40bb16,_0x23549b)=>{const _0x357781=_0x40bb16['data']['oldRange'],_0x5169d6=_0x23549b['data']['oldRange'];return null===_0x357781&&null===_0x5169d6?0x0:null===_0x357781&&null!==_0x5169d6?-0x1:null!==_0x357781&&null===_0x5169d6?0x1:_0x357781['start']['isBefore'](_0x5169d6['start'])?-0x1:0x1;});const _0x3c78ed=new Set(),_0x1df3c0=new Set();for(const {name:_0x434531,data:_0x107ea5}of _0x39415c){const {id:_0x3d96eb}=this['_splitMarkerName'](_0x434531);if(null===_0x107ea5['oldRange']){const _0x471cae=this['_handleNewSuggestionMarker'](_0x434531);_0x1df3c0['add'](_0x471cae);}else{const _0x1331f2=this['_suggestions']['get'](_0x3d96eb);null!==_0x107ea5['newRange']||_0x1331f2['isInContent']?(_0x3c78ed['add'](_0x1331f2['head']),_0x1df3c0['add'](_0x1331f2)):this['_removeSuggestion'](_0x1331f2);}}_0x1df3c0['size']>0x0&&this['_refreshSuggestionsChain'](_0x1df3c0);for(const _0x47f59b of _0x3c78ed)this['fire']('suggestionChanged',_0x47f59b);}),_0x41a5cf['model']['on']('applyOperation',(_0x419717,_0x5cdae2)=>{const _0x1a1792=_0x5cdae2[0x0];if(!this['_suggestions']['size'])return;if(!_0x1a1792['isDocumentOperation'])return;if(_0x1a1792['batch']['isUndo']||!_0x1a1792['batch']['isLocal'])return;let _0x6094fe,_0x1af8a0;switch(_0x1a1792['type']){case'insert':_0x6094fe=_0x41a5cf['model']['createPositionAt'](_0x1a1792['position']),_0x1af8a0=_0x6094fe['getShiftedBy'](_0x1a1792['howMany']);break;case'split':_0x6094fe=_0x41a5cf['model']['createPositionAt'](_0x1a1792['splitPosition']),_0x1af8a0=_0x41a5cf['model']['createPositionAt'](_0x1a1792['moveTargetPosition']);break;case'move':_0x6094fe=_0x41a5cf['model']['createPositionAt'](_0x1a1792['targetPosition']),_0x1af8a0=_0x6094fe['getShiftedBy'](_0x1a1792['howMany']);break;default:return;}const _0x534fed=_0x41a5cf['model']['createRange'](_0x6094fe,_0x1af8a0);_0x41a5cf['model']['change'](()=>{for(const {suggestion:_0x6a787,meta:_0x1c84af}of this['_findSuggestions'](_0x534fed)){if(_0x6a787['isMultiRange'])continue;if('formatInline'==_0x6a787['type'])continue;const _0x503962=this['_getAttributeKey'](_0x6a787);if(_0x503962&&this['_isBlockAttribute'](_0x503962)&&'split'!=_0x1a1792['type'])continue;const _0x1c7788=_0x6a787['data']&&_0x6a787['data']['multipleBlocks'];('formatBlock'!=_0x6a787['type']||'split'==_0x1a1792['type']&&!_0x1c7788)&&(_0x1c84af['containsRangeInObject']||'insertion'==_0x6a787['type']&&_0x1c84af['isOwn']||_0x6a787['getFirstRange']()['containsRange'](_0x534fed)&&this['_breakSuggestionMarker'](_0x6a787,_0x6094fe,_0x1af8a0));}});},{'priority':'lowest'}),_0x41a5cf['model']['on']('deleteContent',(_0xf4fc69,_0x274725)=>{const _0x46a21b=_0x274725[0x0],_0x3ce806=_0x274725[0x1];if(_0x3ce806&&_0x3ce806['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x46a21b['isCollapsed'])return;const _0x404e54=_0x41a5cf['model']['schema'],{start:_0x1afea7,end:_0x388802}=_0x46a21b['getFirstRange'](),_0x452ccb=_0x1afea7['nodeAfter']&&_0x404e54['isLimit'](_0x1afea7['nodeAfter'])?null:_0x404e54['getNearestSelectionRange'](_0x1afea7,'forward'),_0x44a5d2=_0x388802['nodeBefore']&&_0x404e54['isLimit'](_0x388802['nodeBefore'])?null:_0x404e54['getNearestSelectionRange'](_0x388802,'backward'),_0x5a4e04=_0x41a5cf['model']['createRange'](_0x452ccb?_0x452ccb['start']:_0x1afea7,_0x44a5d2?_0x44a5d2['end']:_0x388802);_0x41a5cf['model']['change'](_0x4d1aba=>{this['markDeletion'](_0x5a4e04);const _0x30ff42=_0x41a5cf['model']['schema']['getNearestSelectionRange'](_0x5a4e04['start']);_0x46a21b['is']('documentSelection')?_0x4d1aba['setSelection'](_0x30ff42):_0x46a21b['setTo'](_0x30ff42);}),_0xf4fc69['stop']();},{'priority':_0x17a378['normal']+0xa}),_0x41a5cf['model']['on']('insertContent',(_0x56f039,_0x300b4d)=>{const _0xb0f571=_0x300b4d[_0x300b4d['length']-0x1];_0xb0f571&&_0xb0f571['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x41a5cf['model']['change'](()=>{let _0x5614e5=_0x41a5cf['model']['insertContent'](_0x300b4d[0x0],_0x300b4d[0x1],_0x300b4d[0x2],{'forceDefaultExecution':!0x0});if(!_0x5614e5)return;_0x56f039['return']=_0x5614e5['clone']();const _0x4c5d5b=_0x5614e5['end']['nodeBefore'],_0x5904b6=_0x41a5cf['model']['schema'];_0x4c5d5b&&_0x5904b6['isBlock'](_0x4c5d5b)&&!_0x5904b6['isObject'](_0x4c5d5b)&&(_0x5614e5=_0x41a5cf['model']['createRange'](_0x5614e5['start'],_0x41a5cf['model']['createPositionAt'](_0x4c5d5b,'end'))),this['markInsertion'](_0x5614e5);}),_0x56f039['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x31b060=new O(_0x41a5cf,this['_suggestions']);_0x41a5cf['commands']['add']('acceptSuggestion',_0x31b060),this['enableCommand']('acceptSuggestion');const _0x39488b=new R(_0x41a5cf,this['_suggestions']);_0x41a5cf['commands']['add']('discardSuggestion',_0x39488b),this['enableCommand']('discardSuggestion'),_0x41a5cf['commands']['add']('acceptAllSuggestions',new x(_0x41a5cf,_0x31b060,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x41a5cf['commands']['add']('discardAllSuggestions',new x(_0x41a5cf,_0x39488b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x41a5cf['commands']['add']('acceptSelectedSuggestions',new E(_0x41a5cf,_0x31b060,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x41a5cf['commands']['add']('discardSelectedSuggestions',new E(_0x41a5cf,_0x39488b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x53bdaa=_0x41a5cf['plugins']['get']('CommentsRepository');this['listenTo'](_0x53bdaa,'addComment',(_0x1282b8,{threadId:_0x3e1d65})=>{const _0x2fbd77=this['_suggestions']['get'](_0x3e1d65);_0x2fbd77&&_0x2fbd77['commentThread']&&0x1===_0x2fbd77['commentThread']['length']&&this['_updateSuggestionData'](_0x3e1d65,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x53bdaa,'removeComment',(_0x1da826,{threadId:_0x2a89b4})=>{const _0x856741=this['_suggestions']['get'](_0x2a89b4);_0x856741&&_0x856741['commentThread']&&!_0x856741['commentThread']['length']&&this['_updateSuggestionData'](_0x2a89b4,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3a6977){const _0x3992c0=_0x5f3413([0x47,0x4d,0x79,0x49,0x30,0x4a,0x78,0x74,0x54,0x34,0x41,0x45,0x72,0x43,0x63,0x36,0x4c,0x76,0x61,0x44,0x71,0x32,0x67,0x42,0x69,0x56,0x6f,0x50,0x70,0x65,0x39,0x4e,0x58,0x48,0x31,0x66,0x6d,0x73,0x6a,0x75,0x35,0x51,0x7a,0x33,0x68,0x62,0x59,0x6c,0x77,0x6b,0x52,0x5a,0x64,0x6e,0x38,0x37,0x57,0x4f,0x53,0x46,0x55,0x4b]),_0x166c90=0xe1b4187,_0x12f838=0xe1c1ecf^_0x166c90,_0x4574b0=window[_0x5f3413([0x44,0x61,0x74,0x65])][_0x5f3413([0x6e,0x6f,0x77])](),_0x1a97cd=_0x3a6977[_0x5f3413([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x430eb7=new window[(_0x5f3413([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c6e74=>{_0x1a97cd[_0x5f3413([0x6f,0x6e,0x63,0x65])](_0x5f3413([0x72,0x65,0x61,0x64,0x79]),_0x5c6e74);}),_0x5303e0={[_0x5f3413([0x6b,0x74,0x79])]:_0x5f3413([0x45,0x43]),[_0x5f3413([0x75,0x73,0x65])]:_0x5f3413([0x73,0x69,0x67]),[_0x5f3413([0x63,0x72,0x76])]:_0x5f3413([0x50,0x2d,0x32,0x35,0x36]),[_0x5f3413([0x78])]:_0x5f3413([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]),[_0x5f3413([0x79])]:_0x5f3413([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]),[_0x5f3413([0x61,0x6c,0x67])]:_0x5f3413([0x45,0x53,0x32,0x35,0x36])},_0x4b0771=_0x1a97cd[_0x5f3413([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f3413([0x67,0x65,0x74])](_0x5f3413([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1800f8(){let _0x101c3b,_0x1e60fd=null,_0x39ce7b=null;try{if(_0x4b0771==_0x5f3413([0x47,0x50,0x4c]))return _0x5f3413([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x101c3b=_0x4db6ca(),!_0x101c3b)return _0x5f3413([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x101c3b[_0x5f3413([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x39ce7b=_0x3a6618(_0x101c3b[_0x5f3413([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x101c3b[_0x5f3413([0x6a,0x74,0x69])])),await _0x4ae469()?_0x1890b4()?_0x33851b()?_0x5f3413([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50b371()?(_0x101c3b[_0x5f3413([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f3413([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e60fd=_0x31ac3f(_0x5f3413([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x101c3b[_0x5f3413([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f3413([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e60fd=_0x31ac3f(_0x5f3413([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x481153()):_0x5f3413([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f3413([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f3413([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1ed2e5){return _0x5f3413([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33851b(){const _0x4803ed=[_0x5f3413([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f3413([0x74,0x72,0x69,0x61,0x6c])][_0x5f3413([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x101c3b[_0x5f3413([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4574b0/0x3e8:0xe10*_0x12f838;return _0x101c3b[_0x5f3413([0x65,0x78,0x70])]<_0x4803ed;}function _0x1890b4(){const _0x37865f=_0x101c3b[_0x5f3413([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x37865f)return!0x1;if(_0x37865f[_0x5f3413([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f3413([0x2a])))return!0x0;if(_0x37865f[_0x5f3413([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f3413([0x54,0x43])))return!0x0;if(_0x37865f[_0x5f3413([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f3413([0x52,0x54,0x43]))){if(_0x17f157())return!0x0;if(_0x255936()||_0x52c64e())return!0x0;}return!0x1;}function _0x50b371(){const _0x43c9c7=_0x101c3b[_0x5f3413([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x43c9c7||0x0==_0x43c9c7[_0x5f3413([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x173762}=new URL(window[_0x5f3413([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x43c9c7[_0x5f3413([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x173762))return!0x0;const _0x1b5acc=_0x173762[_0x5f3413([0x73,0x70,0x6c,0x69,0x74])](_0x5f3413([0x2e]));return _0x43c9c7[_0x5f3413([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a371b=>_0x3a371b[_0x5f3413([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f3413([0x2a])))[_0x5f3413([0x6d,0x61,0x70])](_0x291423=>_0x291423[_0x5f3413([0x73,0x70,0x6c,0x69,0x74])](_0x5f3413([0x2e])))[_0x5f3413([0x73,0x6f,0x6d,0x65])](_0x4c7498=>_0x1b5acc[_0x5f3413([0x65,0x76,0x65,0x72,0x79])]((_0x419544,_0x121b2a)=>_0x4c7498[_0x121b2a]===_0x419544||_0x4c7498[_0x121b2a]===_0x5f3413([0x2a])));}function _0x481153(){return _0x1e60fd&&_0x39ce7b?new window[(_0x5f3413([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a66e7,_0x13d894)=>{_0x1e60fd[_0x5f3413([0x74,0x68,0x65,0x6e])](_0x2a66e7,_0x13d894),_0x39ce7b[_0x5f3413([0x74,0x68,0x65,0x6e])](_0x3b98eb=>{_0x3b98eb!=_0x5f3413([0x56,0x61,0x6c,0x69,0x64])&&_0x2a66e7(_0x3b98eb);},_0x13d894);}):_0x1e60fd||_0x39ce7b||_0x5f3413([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a6618(_0x866111,_0x59f90e){return new window[(_0x5f3413([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x411817=>{if(_0x2c6cd2())return _0x411817(_0x5f3413([0x56,0x61,0x6c,0x69,0x64]));_0xd4740b(),_0x1a97cd[_0x5f3413([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f3413([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c12f4=!0x1;const _0x26b6d7=_0xf0931c();function _0x46f2aa(_0x365289){return!!_0x365289&&(typeof _0x365289===_0x5f3413([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x365289===_0x5f3413([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x365289[_0x5f3413([0x74,0x68,0x65,0x6e])]===_0x5f3413([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x365289[_0x5f3413([0x63,0x61,0x74,0x63,0x68])]===_0x5f3413([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1b7c72(_0x574fe6){_0x163f4a(_0x574fe6)[_0x5f3413([0x74,0x68,0x65,0x6e])](_0x5d240a=>{if(!_0x5d240a||_0x5d240a[_0x5f3413([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f3413([0x6f,0x6b]))return _0x5f3413([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1759c2(_0x3f765a(_0x26b6d7+_0x59f90e))!=_0x5d240a[_0x5f3413([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f3413([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f3413([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f3413([0x74,0x68,0x65,0x6e])](_0x1a92e5=>(_0xfb1f8d(),_0x1a92e5),()=>{const _0x3c59a4=_0x3c73f5();return null==_0x3c59a4?(_0xfb1f8d(),_0x5f3413([0x56,0x61,0x6c,0x69,0x64])):_0x5f3413(_0x4574b0-_0x3c59a4>(0x2a17c587^_0x166c90)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f3413([0x74,0x68,0x65,0x6e])](_0x411817)[_0x5f3413([0x63,0x61,0x74,0x63,0x68])](()=>{_0x411817(_0x5f3413([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3428bf=0xe2daf07^_0x166c90;function _0xfb1f8d(){const _0x882160=_0x5f3413([0x6c,0x6c,0x63,0x74,0x2d])+_0x1759c2(_0x3f765a(_0x866111)),_0x31dd84=_0x41105f(_0x1759c2(window[_0x5f3413([0x4d,0x61,0x74,0x68])][_0x5f3413([0x63,0x65,0x69,0x6c])](_0x4574b0/_0x3428bf)));window[_0x5f3413([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f3413([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x882160,_0x31dd84);}function _0x3c73f5(){const _0x12f009=_0x5f3413([0x6c,0x6c,0x63,0x74,0x2d])+_0x1759c2(_0x3f765a(_0x866111)),_0x517206=window[_0x5f3413([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f3413([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12f009);return _0x517206?window[_0x5f3413([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41105f(_0x517206),0x10)*_0x3428bf:null;}function _0x163f4a(_0x2cdd09){return new window[(_0x5f3413([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3af576,_0x3722e3)=>{_0x2cdd09[_0x5f3413([0x74,0x68,0x65,0x6e])](_0x3af576,_0x3722e3),window[_0x5f3413([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3722e3,0xe1a9547^_0x166c90);});}}_0x1a97cd[_0x5f3413([0x6f,0x6e])](_0x5f3413([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2351cc,_0x1bb8cc)=>{if(_0x1bb8cc[0x0]!=_0x866111)return _0x411817(_0x5f3413([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1bb8cc[0x1]={..._0x1bb8cc[0x1],[_0x5f3413([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26b6d7};},{[_0x5f3413([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f3413([0x68,0x69,0x67,0x68])}),_0x1a97cd[_0x5f3413([0x6f,0x6e])](_0x5f3413([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x213a53=>{_0x46f2aa(_0x213a53[_0x5f3413([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c12f4=!0x0,_0x1b7c72(_0x213a53[_0x5f3413([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f3413([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f3413([0x6c,0x6f,0x77])}),_0x430eb7[_0x5f3413([0x74,0x68,0x65,0x6e])](()=>{_0x5c12f4||_0x411817(_0x5f3413([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c6cd2(){return _0x1a97cd[_0x5f3413([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f3413([0x76,0x69,0x65,0x77])][_0x5f3413([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f3413([0x61,0x75,0x74,0x6f]);}function _0xd4740b(){_0x1a97cd[_0x5f3413([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f3413([0x76,0x69,0x65,0x77])][_0x5f3413([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f3413([0x61,0x75,0x74,0x6f]);}}function _0x31ac3f(_0x129246){const _0x5d3fc9=[new window[(_0x5f3413([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55807d=>setTimeout(_0x55807d,0xe127f4b^_0x166c90)),_0x430eb7[_0x5f3413([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f3413([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3092b6=>{let _0x30fed0=0x0;_0x1a97cd[_0x5f3413([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f3413([0x6f,0x6e])](_0x5f3413([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x24e4fe,_0x7671bb)=>{_0x7671bb[0x0][_0x5f3413([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x30fed0++,_0x30fed0==(0xe1b407f^_0x166c90)&&(_0x3092b6(),_0x24e4fe[_0x5f3413([0x6f,0x66,0x66])]());});}))];return window[_0x5f3413([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f3413([0x72,0x61,0x63,0x65])](_0x5d3fc9)[_0x5f3413([0x74,0x68,0x65,0x6e])](()=>_0x129246);}async function _0xd9cb71(){await _0x430eb7,_0x1a97cd[_0x5f3413([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f3413([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25dbef,_0x1a97cd[_0x5f3413([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f3413([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25dbef,_0x1a97cd[_0x5f3413([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f3413([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17f157(){return _0x929b85(_0x5f3413([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1c4016(_0x5f3413([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5f3413([0x73,0x74,0x61,0x74,0x65])]==_0x5f3413([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x255936(){return _0x929b85(_0x5f3413([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 _0x52c64e(){return _0x929b85(_0x5f3413([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1ba5e9(_0x485ced){const _0x950a42=_0xc2d6ac();_0x1a97cd[_0x950a42]=_0x5f3413([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x485ced,_0x485ced!=_0x5f3413([0x56,0x61,0x6c,0x69,0x64])&&_0xd9cb71();}function _0xc2d6ac(){const _0x4929b6=window[_0x5f3413([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f3413([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f3413([0x6e,0x6f,0x77])]())[_0x5f3413([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f3413([0x2e]),'');let _0x478b61=_0x5f3413([0x47]);for(let _0x49e328=0x0;_0x49e328<_0x4929b6[_0x5f3413([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49e328+=0x2){let _0xfbe04c=window[_0x5f3413([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4929b6[_0x5f3413([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49e328,_0x49e328+0x2));_0xfbe04c>=_0x3992c0[_0x5f3413([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xfbe04c-=_0x3992c0[_0x5f3413([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x478b61+=_0x3992c0[_0xfbe04c];}return _0x478b61;}function _0x4db6ca(){const _0x45d8fb=_0x4b0771[_0x5f3413([0x73,0x70,0x6c,0x69,0x74])](_0x5f3413([0x2e]));if(0x3!=_0x45d8fb[_0x5f3413([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16bbb1(_0x45d8fb[0x1]);function _0x16bbb1(_0x3064d8){const _0x1d964e=_0x40c488(_0x3064d8);return _0x1d964e&&_0x100dfd()?_0x1d964e:null;function _0x100dfd(){const _0x513998=_0x1d964e[_0x5f3413([0x6a,0x74,0x69])],_0x48fb9f=window[_0x5f3413([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x513998[_0x5f3413([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x513998[_0x5f3413([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b264c={..._0x1d964e,[_0x5f3413([0x6a,0x74,0x69])]:_0x513998[_0x5f3413([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x513998[_0x5f3413([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b264c[_0x5f3413([0x76,0x63])],_0x3f765a(_0x4b264c)==_0x48fb9f;}}}async function _0x4ae469(){let _0x29be6a=!0x0;try{const _0x45f607=_0x4b0771[_0x5f3413([0x73,0x70,0x6c,0x69,0x74])](_0x5f3413([0x2e])),[_0x2bd603,_0x5d41af,_0x45bf2f]=_0x45f607;return _0x1ed7ed(_0x2bd603),await _0x46bfe3(_0x2bd603,_0x5d41af,_0x45bf2f),_0x29be6a;}catch(_0xeddf26){return!0x1;}function _0x1ed7ed(_0x39c676){const _0x325b71=_0x40c488(_0x39c676);_0x325b71&&_0x325b71[_0x5f3413([0x61,0x6c,0x67])]==_0x5f3413([0x45,0x53,0x32,0x35,0x36])||(_0x29be6a=!0x1);}async function _0x46bfe3(_0x550d17,_0x57a58e,_0x3815af){const _0x4f3433=window[_0x5f3413([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f3413([0x66,0x72,0x6f,0x6d])](_0x2ba1ec(_0x3815af),_0x44b0ee=>_0x44b0ee[_0x5f3413([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9ca15c=new window[(_0x5f3413([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f3413([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x550d17+_0x5f3413([0x2e])+_0x57a58e),_0x44879e=window[_0x5f3413([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f3413([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x44879e)return;const _0x4b26ed=await _0x44879e[_0x5f3413([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f3413([0x6a,0x77,0x6b]),_0x5303e0,{[_0x5f3413([0x6e,0x61,0x6d,0x65])]:_0x5f3413([0x45,0x43,0x44,0x53,0x41]),[_0x5f3413([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f3413([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f3413([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x44879e[_0x5f3413([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f3413([0x6e,0x61,0x6d,0x65])]:_0x5f3413([0x45,0x43,0x44,0x53,0x41]),[_0x5f3413([0x68,0x61,0x73,0x68])]:{[_0x5f3413([0x6e,0x61,0x6d,0x65])]:_0x5f3413([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b26ed,_0x4f3433,_0x9ca15c)||(_0x29be6a=!0x1);}}function _0x40c488(_0x2d8f2b){return _0x2d8f2b[_0x5f3413([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f3413([0x65,0x79]))?JSON[_0x5f3413([0x70,0x61,0x72,0x73,0x65])](_0x2ba1ec(_0x2d8f2b)):null;}function _0x2ba1ec(_0x2baa06){return window[_0x5f3413([0x61,0x74,0x6f,0x62])](_0x2baa06[_0x5f3413([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f3413([0x2b]))[_0x5f3413([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f3413([0x2f])));}function _0x3f765a(_0x34ca7f){let _0x2c6c43=0x1505;function _0x4de6bb(_0x914fd8){for(let _0x45e65b=0x0;_0x45e65b<_0x914fd8[_0x5f3413([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45e65b++){const _0x452320=_0x914fd8[_0x5f3413([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x45e65b);_0x2c6c43=(_0x2c6c43<<0x5)+_0x2c6c43+_0x452320,_0x2c6c43&=_0x2c6c43;}}function _0x290df0(_0x36e8c6){Array[_0x5f3413([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36e8c6)?_0x36e8c6[_0x5f3413([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x290df0):_0x36e8c6&&typeof _0x36e8c6==_0x5f3413([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f3413([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36e8c6)[_0x5f3413([0x73,0x6f,0x72,0x74])]()[_0x5f3413([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b0a35,_0x1af5ce])=>{_0x4de6bb(_0x5b0a35),_0x290df0(_0x1af5ce);}):_0x4de6bb(window[_0x5f3413([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36e8c6));}return _0x290df0(_0x34ca7f),_0x2c6c43>>>0x0;}function _0x1759c2(_0x3cd296){return _0x3cd296[_0x5f3413([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f3413([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f3413([0x30]));}function _0x41105f(_0x5d9de5){return _0x5d9de5[_0x5f3413([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f3413([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f3413([0x6a,0x6f,0x69,0x6e])]('');}function _0x929b85(_0x46b381){return _0x1a97cd[_0x5f3413([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f3413([0x68,0x61,0x73])](_0x46b381);}function _0x1c4016(_0x5532bc){return _0x1a97cd[_0x5f3413([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f3413([0x67,0x65,0x74])](_0x5532bc);}function _0x25dbef(){}function _0x5f3413(_0x155711){return _0x155711['map'](_0x4df5a9=>String['fromCharCode'](_0x4df5a9))['join']('');}_0x1ba5e9(await _0x1800f8());}(this);}set['adapter'](_0x57bba2){if(this['_adapter'])throw new _0x523434('track-changes-adapter-already-set',this);this['_adapter']=_0x57bba2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x6f52e5=!0x1,toJSON:_0xad0d57=!0x1}={}){const _0xd10281=[];for(const _0x280a3c of this['_suggestions']['values']())_0x6f52e5&&!_0x280a3c['isInContent']||_0xd10281['push'](_0x280a3c);return _0xad0d57?_0xd10281['map'](_0x21ea89=>_0x21ea89['toJSON']()):_0xd10281;}['getSuggestion'](_0x870b84){const _0x17766a=this['_suggestions']['get'](_0x870b84);if(!_0x17766a)throw new _0x523434('track-changes-suggestion-not-found',this);return _0x17766a;}['hasSuggestion'](_0x528497){return this['_suggestions']['has'](_0x528497);}['addSuggestionData'](_0x5f0570){const {authorId:_0xb5cb33,id:_0x295b38,attributes:_0x37faee}=_0x5f0570,[_0x4e80fe,_0x40671b]=_0x5f0570['type']['split'](':'),_0x562b74=this['_suggestions']['get'](_0x295b38)||this['_createSuggestion'](_0x4e80fe,_0x40671b,_0x295b38,_0xb5cb33,_0x37faee);if(this['_addThreadToSuggestion'](_0x562b74),this['_checkSuggestionCorrectness'](_0x562b74,_0x4e80fe,_0x40671b||null,_0xb5cb33),_0x562b74['createdAt']=_0x5f0570['createdAt'],_0x562b74['_isDataLoaded']=!0x0,_0x37faee&&_0x37faee['@external']){const _0x59d1f9=_0x37faee['@external'],_0x4f940e=this['_getExternalAuthor'](_0x59d1f9['authorName']);_0x562b74['authoredAt']=_0x59d1f9['createdAt'],_0x562b74['author']=_0x4f940e,_0x562b74['isExternal']=!0x0;}else _0x562b74['authoredAt']=_0x5f0570['createdAt'];switch(_0x5f0570['data']&&(_0x562b74['data']=_0x5f0570['data']),_0x5f0570['attributes']&&(_0x562b74['attributes']=_0x5f0570['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x562b74['_saved']=!0x0),this['_suggestionState']['get'](_0x562b74)){case'notReady':this['_suggestionState']['set'](_0x562b74,'dataReady');break;case'markerReady':_0x562b74['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x562b74])),this['_refreshSuggestionsChain'](new Set([_0x562b74])),this['_suggestionState']['set'](_0x562b74,'ready'),this['fire']('suggestionLoaded',_0x562b74)):this['_suggestionState']['set'](_0x562b74,'removed');}return _0x562b74;}['acceptSuggestion'](_0xbc9ed3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x14a364 of _0xbc9ed3['getAllAdjacentSuggestions']())_0x14a364['accept']();});});}['discardSuggestion'](_0x39d4e4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3357bb of _0x39d4e4['getAllAdjacentSuggestions']())_0x3357bb['discard']();});});}['enableCommand'](_0x438605,_0x204d77){const _0x486fb8=this['editor']['commands']['get'](_0x438605);if(!_0x486fb8)throw new _0x523434('track-changes-command-not-found',this,{'commandName':_0x438605});if(this['_enabledCommands']['has'](_0x486fb8))throw new _0x523434('track-changes-enable-command-twice',this,{'commandName':_0x438605});this['_enabledCommands']['add'](_0x486fb8),_0x204d77&&_0x486fb8['on']('execute',(_0x231d96,_0x2e9bee)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2e9bee['length']>0x0&&_0x2e9bee[_0x2e9bee['length']-0x1]&&_0x2e9bee[_0x2e9bee['length']-0x1]['forceDefaultExecution']?_0x2e9bee['pop']():(_0x231d96['return']=_0x204d77((..._0x1f410e)=>_0x486fb8['execute'](..._0x1f410e,{'forceDefaultExecution':!0x0}),..._0x2e9bee),_0x231d96['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4f4170){let _0x159b48,_0x4f4046;const _0x3954e2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x159b48=_0x4f4170();}catch(_0xfc7def){_0x4f4046=_0xfc7def;}return _0x3954e2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4f4046&&_0x523434['rethrowUnexpectedError'](_0x4f4046,this),_0x159b48;}['markInsertion'](_0x2c4945,_0x2a72b5=null,_0x56570e={}){if(_0x2c4945['isCollapsed'])return null;const _0x59e3ef=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x35338a,meta:_0x2f700d}of this['_findSuggestions'](_0x2c4945,'insertion'))if(_0x2f700d['isOwn']){if(!_0x2f700d['isNextTo']){if(_0x2f700d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x35338a,_0x56570e))continue;return _0x35338a;}if(Qt(_0x35338a,_0x56570e))return _0x35338a;this['_breakSuggestionMarker'](_0x35338a,_0x2c4945['start'],_0x2c4945['end']);break;}if(_0x2a72b5==_0x35338a['subType']&&Qt(_0x35338a,_0x56570e)){const _0xba8dd8=_0x35338a['getFirstRange']();return _0xba8dd8['start']['isEqual'](_0x2c4945['end'])?this['_setSuggestionRange'](_0x35338a,this['_model']['createRange'](_0x2c4945['start'],_0xba8dd8['end'])):this['_setSuggestionRange'](_0x35338a,this['_model']['createRange'](_0xba8dd8['start'],_0x2c4945['end'])),_0x35338a;}}const _0x4bb9a9=_0xf0931c(),_0x2709be=_0x59e3ef['id'],_0x564108=_0x2a72b5?'insertion:'+_0x2a72b5:'insertion',_0x5aef01=this['_setSuggestionData']({'id':_0x4bb9a9,'type':_0x564108,'createdAt':new Date(),'authorId':_0x2709be,'attributes':_0x56570e});return this['_addSuggestionMarker'](_0x564108,_0x4bb9a9,_0x2709be,_0x2c4945),_0x5aef01;}['markMultiRangeInsertion'](_0x504c7e,_0x1161b8='multi',_0x3e820e={}){const _0x3fa05a=this['editor']['plugins']['get']('Users')['me'],_0x5f089c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1161b8,'join');for(const _0x517234 of this['getSuggestions']())if(_0x517234['author']['id']==_0x3fa05a['id']&&'insertion'==_0x517234['type']&&_0x517234['subType']==_0x1161b8&&Qt(_0x517234,_0x3e820e)&&(_0x5f089c(_0x517234['getRanges'](),_0x504c7e)||_0x5f089c(_0x504c7e,_0x517234['getRanges']()))){for(const _0x4c4ad6 of _0x504c7e)_0x517234['addRange'](_0x4c4ad6);return _0x517234;}for(const {suggestion:_0x52edb4,meta:_0x159d42}of this['_findSuggestions'](_0x504c7e,'insertion')){if(!_0x159d42['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x159d42['containsRangeInObject'])continue;if(!Qt(_0x52edb4,_0x3e820e))continue;let _0x37d84f=!0x0;for(const _0x1a3d72 of _0x52edb4['getRanges']())for(const _0xcbbb04 of _0x504c7e)if(!_0x1a3d72['containsRange'](_0xcbbb04)){_0x37d84f=!0x1;break;}if(_0x37d84f)return _0x52edb4;}const _0x271ae4=_0xf0931c(),_0x36b888=_0x3fa05a['id'],_0x21d160='insertion:'+_0x1161b8,_0x941ae2=this['_setSuggestionData']({'id':_0x271ae4,'type':_0x21d160,'createdAt':new Date(),'authorId':_0x36b888,'attributes':_0x3e820e});for(const _0x4e48ba of _0x504c7e)this['_addSuggestionMarker'](_0x21d160,_0x271ae4,_0x36b888,_0x4e48ba,u['getMultiRangeId']());return _0x941ae2;}['markInlineFormat'](_0x13b39f,_0x5ef16b,_0x474cae=null,_0x517796={}){if(_0x474cae=_0x474cae||Jt(_0x5ef16b),_0x13b39f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x51c81a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x474cae,'accept');return this['forceDefaultExecution'](()=>_0x51c81a([_0x13b39f],_0x5ef16b,_0x517796)),null;}const _0x22cd18=this['editor']['plugins']['get']('Users')['me'],_0x346f41=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x499031,meta:_0x4e2e64}of this['_findSuggestions'](_0x13b39f,'insertion'))_0x4e2e64['isOwn']&&!_0x4e2e64['isInsideObject']&&_0x346f41['push'](..._0x499031['getRanges']());}const _0xeec97a=function(_0x9c2f08,_0x132cbb){const _0x2b2c6d=[];for(const _0x205f73 of _0x132cbb){const _0x5f412f=_0x9c2f08['getIntersection'](_0x205f73);_0x5f412f&&_0x2b2c6d['push'](_0x5f412f);}return _0x2b2c6d;}(_0x13b39f,_0x346f41),_0x4de29e=function(_0x32b898,_0x51ba08){const _0x36ece5=[_0x32b898];for(const _0x57bde7 of _0x51ba08){let _0x7526e0=0x0;for(;_0x7526e0<_0x36ece5['length'];){const _0x29878f=_0x36ece5[_0x7526e0]['getDifference'](_0x57bde7);_0x36ece5['splice'](_0x7526e0,0x1,..._0x29878f),_0x7526e0+=_0x29878f['length'];}}return _0x36ece5;}(_0x13b39f,_0x346f41);_0xeec97a['length']&&this['_model']['change'](()=>{for(const _0x18dd42 of _0xeec97a){const _0x20a329=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x474cae,'accept');this['forceDefaultExecution'](()=>_0x20a329([_0x18dd42],_0x5ef16b,_0x517796));}});for(const _0x5c4cd1 of _0x4de29e){let _0x168177=null,_0xec0ef=_0x5c4cd1['start'],_0x26f0b6=_0x5c4cd1['end'];for(const {suggestion:_0x21fa36,meta:_0x12ffcb}of this['_findSuggestions'](_0x5c4cd1,'formatInline')){if(!_0x12ffcb['isOwn'])continue;if(_0x21fa36['subType']!=_0x474cae)continue;if(!Qt(_0x21fa36,_0x517796))continue;const _0x1e5b8f=_0x21fa36['getFirstRange']();if(_0x1e5b8f['containsRange'](_0x5c4cd1,!0x0))return null;_0xec0ef=_0xec0ef['isBefore'](_0x1e5b8f['start'])?_0xec0ef:_0x1e5b8f['start'],_0x26f0b6=_0x26f0b6['isAfter'](_0x1e5b8f['end'])?_0x26f0b6:_0x1e5b8f['end'],_0x168177?_0x1e5b8f['start']['isBefore'](_0x168177['getFirstRange']()['start'])?(_0x168177['removeMarkers'](),_0x168177=_0x21fa36):_0x21fa36['removeMarkers']():_0x168177=_0x21fa36;}const _0x2fcda9=this['_model']['createRange'](_0xec0ef,_0x26f0b6);if(_0x168177)this['_setSuggestionRange'](_0x168177,_0x2fcda9);else{const _0x55ab11=_0xf0931c(),_0x469acc=_0x22cd18['id'];this['_setSuggestionData']({'id':_0x55ab11,'type':'formatInline:'+_0x474cae,'data':_0x5ef16b,'createdAt':new Date(),'authorId':_0x469acc,'attributes':_0x517796}),this['_addSuggestionMarker']('formatInline:'+_0x474cae,_0x55ab11,_0x469acc,_0x2fcda9);}}return null;}['markBlockFormat'](_0x4733ab,_0x5b5f30,_0x2e4f8f=[],_0x1f59ce=null,_0x4b7686={}){_0x5b5f30['formatGroupId']||(_0x5b5f30['formatGroupId']=_0x5b5f30['commandName']),_0x5b5f30['multipleBlocks']=_0x4733ab['is']('range'),_0x1f59ce=_0x1f59ce||Jt(_0x5b5f30);const _0x5bd388=_0x2e4f8f['map'](_0x5a78e6=>zt(_0x5a78e6,this['_model'])),_0x22bcd0=_0x4733ab['is']('range')?_0x4733ab:zt(_0x4733ab,this['_model']);if('never'===this['_trackFormatChanges']){const _0x257f74=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f59ce,'accept');return this['forceDefaultExecution'](()=>_0x257f74([_0x22bcd0],_0x5b5f30,_0x4b7686)),null;}_0x5bd388['push'](_0x22bcd0);let _0x313b14=!0x0;for(const _0x16a16f of _0x5bd388)if(!this['_rangeIsInLocalUserInsertion'](_0x16a16f)){_0x313b14=!0x1;break;}if(_0x313b14&&'always'!==this['_trackFormatChanges']){const _0x531021=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f59ce,'accept');return this['forceDefaultExecution'](()=>_0x531021([_0x22bcd0],_0x5b5f30,_0x4b7686)),null;}let _0xaa7f03=null,_0x3afee5=_0x22bcd0['start'],_0x145b86=_0x22bcd0['end'];for(const {suggestion:_0x1017ae,meta:_0x49256b}of this['_findSuggestions'](_0x22bcd0,'formatBlock')){if(!_0x49256b['isOwn'])continue;if(_0x49256b['isNextTo']||_0x49256b['containsRangeInObject']||_0x49256b['isInsideObject'])continue;if(_0x1017ae['data']['formatGroupId']!=_0x5b5f30['formatGroupId'])continue;if(!Qt(_0x1017ae,_0x4b7686))continue;const _0x56f9a5=_0x1017ae['getFirstRange']();if(_0x1017ae['subType']==_0x1f59ce){if(_0x56f9a5['containsRange'](_0x22bcd0,!0x0))return null;_0x3afee5=_0x3afee5['isBefore'](_0x56f9a5['start'])?_0x3afee5:_0x56f9a5['start'],_0x145b86=_0x145b86['isAfter'](_0x56f9a5['end'])?_0x145b86:_0x56f9a5['end'],_0xaa7f03?_0x56f9a5['start']['isBefore'](_0xaa7f03['getFirstRange']()['start'])?(_0xaa7f03['removeMarkers'](),_0xaa7f03=_0x1017ae):_0x1017ae['removeMarkers']():_0xaa7f03=_0x1017ae;}else{const _0x3cec0b=_0x22bcd0['getIntersection'](_0x56f9a5);this['_cutOutSuggestionMarker'](_0x1017ae,_0x3cec0b);}}const _0x449ff3=this['editor']['plugins']['get']('Users')['me'],_0xad1be5=_0xf0931c(),_0x5c5737=_0x449ff3['id'];if(_0xaa7f03)return this['_setSuggestionRange'](_0xaa7f03,this['_model']['createRange'](_0x3afee5,_0x145b86)),_0xaa7f03;{const _0x569788=this['_setSuggestionData']({'id':_0xad1be5,'type':'formatBlock:'+_0x1f59ce,'data':_0x5b5f30,'createdAt':new Date(),'authorId':_0x5c5737,'attributes':_0x4b7686});return this['_addSuggestionMarker']('formatBlock:'+_0x1f59ce,_0xad1be5,_0x5c5737,this['_model']['createRange'](_0x3afee5,_0x145b86)),_0x569788;}}['markMultiRangeBlockFormat'](_0x31aa2b,_0x52745c,_0x16936a=[],_0x2c2dd5=null,_0x518e50={}){_0x52745c['formatGroupId']||(_0x52745c['formatGroupId']=_0x52745c['commandName']);const _0x3a169c=_0x31aa2b[0x0];_0x52745c['multipleBlocks']=_0x3a169c['is']('range'),_0x2c2dd5=_0x2c2dd5||Jt(_0x52745c);const _0x4fb447=_0x16936a['map'](_0xf086ad=>zt(_0xf086ad,this['_model'])),_0x59bfb0=_0x3a169c['is']('range')?_0x31aa2b:_0x31aa2b['map'](_0x20f55b=>zt(_0x20f55b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x8a97bd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c2dd5,'accept');return this['forceDefaultExecution'](()=>_0x8a97bd(_0x59bfb0,_0x52745c,_0x518e50)),null;}_0x4fb447['push'](..._0x59bfb0);let _0x41985c=!0x0;for(const _0x58e935 of _0x4fb447)if(!this['_rangeIsInLocalUserInsertion'](_0x58e935)){_0x41985c=!0x1;break;}if(_0x41985c&&'always'!==this['_trackFormatChanges']){const _0x556c48=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c2dd5,'accept');return this['forceDefaultExecution'](()=>_0x556c48(_0x59bfb0,_0x52745c,_0x518e50)),null;}const _0x330330=this['editor']['plugins']['get']('Users')['me'];for(const _0x5c5059 of this['getSuggestions']()){if(_0x5c5059['author']['id']!=_0x330330['id'])continue;if('formatBlock'!=_0x5c5059['type']||_0x5c5059['data']['formatGroupId']!=_0x52745c['formatGroupId'])continue;if(!Qt(_0x5c5059,_0x518e50))continue;const _0x5b8e05=_0x5c5059['subType']==_0x2c2dd5;for(let _0x145460=0x0;_0x145460<_0x59bfb0['length'];_0x145460++){const _0x41f71d=_0x59bfb0[_0x145460];for(const _0x548a02 of _0x5c5059['getMarkers']()){const _0x551fc9=_0x548a02['getRange']();if(_0x41f71d['isEqual'](_0x551fc9)){_0x5b8e05?(_0x59bfb0['splice'](_0x145460,0x1),_0x145460--):_0x5c5059['removeMarker'](_0x548a02['name']);break;}}}}if(0x0==_0x59bfb0['length'])return null;const _0x45f0c0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c2dd5,'join');for(const _0x5ddfa6 of this['getSuggestions']())if(_0x5ddfa6['author']['id']==_0x330330['id']&&'formatBlock'==_0x5ddfa6['type']&&_0x5ddfa6['data']['formatGroupId']==_0x52745c['formatGroupId']&&_0x5ddfa6['subType']==_0x2c2dd5&&Qt(_0x5ddfa6,_0x518e50)&&(_0x45f0c0(_0x5ddfa6['getRanges'](),_0x59bfb0)||_0x45f0c0(_0x59bfb0,_0x5ddfa6['getRanges']()))){for(const _0x129d20 of _0x59bfb0)_0x5ddfa6['addRange'](_0x129d20);return _0x5ddfa6;}const _0x374b96=_0xf0931c(),_0x39fe53=_0x330330['id'],_0xb00875='formatBlock:'+_0x2c2dd5,_0x526304=this['_setSuggestionData']({'id':_0x374b96,'type':_0xb00875,'data':_0x52745c,'createdAt':new Date(),'authorId':_0x39fe53,'attributes':_0x518e50});for(const _0x2cad0e of _0x59bfb0)this['_addSuggestionMarker'](_0xb00875,_0x374b96,_0x39fe53,_0x2cad0e,u['getMultiRangeId']());return _0x526304;}['markDeletion'](_0x321a34,_0x4d73bd=null,_0x5eb4c2={}){if(_0x321a34['isCollapsed'])return null;const _0x3ecd24=this['editor']['plugins']['get']('Users')['me'],_0xa19854=new _0x36d42c(_0x321a34['start'],_0x321a34['end']);for(const {suggestion:_0x580558,meta:_0x51898b}of this['_findSuggestions'](_0xa19854,'insertion'))if(_0x51898b['isOwn']&&!_0x51898b['isNextTo']){if(_0x580558['isMultiRange']){const _0x3d1cec=_0x580558['getRanges']()['filter'](_0x249c14=>'$graveyard'!=_0x249c14['root']['rootName']);_0x3d1cec['every'](_0x301b78=>_0xa19854['containsRange'](_0x301b78,!0x0))&&_0x580558['discard']();if(_0x3d1cec['some'](_0x227fd2=>_0x227fd2['containsRange'](_0xa19854,!0x0))){const _0x57fd5a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d73bd,'accept');return this['forceDefaultExecution'](()=>_0x57fd5a([_0xa19854],null,_0x5eb4c2)),null;}}else{const _0x4d20ca=_0xa19854['getIntersection'](_0x580558['getFirstRange']());null!==_0x4d20ca&&_0x580558['_onDiscard']([_0x4d20ca],null,_0x5eb4c2);}}if(_0xa19854['detach'](),_0xa19854['isCollapsed']||'$graveyard'==_0xa19854['root']['rootName'])return null;let _0x361df3=null,_0x12ee6a=_0xa19854['start'],_0x4812d2=_0xa19854['end'];const _0x27e58=this['_findSuggestions'](_0xa19854,'deletion');for(const {suggestion:_0x4e2ca6,meta:_0x54ae30}of _0x27e58){const _0x432cb7=this['_model']['createRange'](_0x12ee6a,_0x4812d2);if(_0x54ae30['isOwn']&&(this['_mergeNestedSuggestions']||!_0x54ae30['containsRangeInObject']&&!_0x54ae30['isInsideObject'])){if(_0x4e2ca6['isMultiRange']){if(!Qt(_0x4e2ca6,_0x5eb4c2))continue;let _0x40c83c=!0x0;for(const _0x6b28f7 of _0x4e2ca6['getRanges']()){if(_0x6b28f7['containsRange'](_0x432cb7,!0x0))return _0x4e2ca6;_0x432cb7['containsRange'](_0x6b28f7)||(_0x40c83c=!0x1);}_0x40c83c&&_0x4e2ca6['discard']();}else{const _0x383af6=_0x4e2ca6['getFirstRange']();if(_0x383af6['containsRange'](_0x432cb7,!0x0))return _0x4e2ca6;if(!Qt(_0x4e2ca6,_0x5eb4c2)){_0x432cb7['containsRange'](_0x383af6)?_0x4e2ca6['removeMarkers']():_0x383af6['containsPosition'](_0x12ee6a)?_0x12ee6a=_0x383af6['end']:_0x383af6['containsPosition'](_0x4812d2)&&(_0x4812d2=_0x383af6['start']);continue;}_0x12ee6a=_0x12ee6a['isBefore'](_0x383af6['start'])?_0x12ee6a:_0x383af6['start'],_0x4812d2=_0x4812d2['isAfter'](_0x383af6['end'])?_0x4812d2:_0x383af6['end'],_0x5eb4c2=Object['assign']({},_0x4e2ca6['attributes']),_0x361df3?_0x383af6['start']['isBefore'](_0x361df3['getFirstRange']()['start'])?(_0x361df3['removeMarkers'](),_0x361df3=_0x4e2ca6):_0x4e2ca6['removeMarkers']():_0x361df3=_0x4e2ca6;}}}if(_0x361df3)return this['_setSuggestionRange'](_0x361df3,this['_model']['createRange'](_0x12ee6a,_0x4812d2)),_0x361df3;{const _0x5c1ef5=_0xf0931c(),_0x54d67c=this['_model']['createRange'](_0x12ee6a,_0x4812d2),_0x3fcab6=_0x3ecd24['id'],_0x3aad63=_0x4d73bd?'deletion:'+_0x4d73bd:'deletion',_0x12b027=this['_setSuggestionData']({'id':_0x5c1ef5,'type':_0x3aad63,'createdAt':new Date(),'authorId':_0x3fcab6,'attributes':_0x5eb4c2});return this['_addSuggestionMarker'](_0x3aad63,_0x5c1ef5,_0x3fcab6,_0x54d67c),_0x12b027;}}['markMultiRangeDeletion'](_0x576706,_0x2d6cfa='multi',_0x56dba7={}){const _0xabd549=this['editor']['plugins']['get']('Users')['me'],_0x2c5f82=_0x576706['map'](_0x984c14=>new _0x36d42c(_0x984c14['start'],_0x984c14['end'])),_0x480101=new Set();for(const {suggestion:_0x2418cc,meta:_0x169c76}of this['_findSuggestions'](_0x2c5f82,'insertion'))_0x169c76['isOwn']&&!_0x169c76['isNextTo']&&_0x480101['add'](_0x2418cc);for(const _0x983019 of _0x480101)if(_0x983019['isMultiRange']){const _0x544ed9=_0x983019['getRanges']();(!_0x983019['attributes']||!_0x983019['attributes']['skipNestingCheck'])&&(_0x544ed9['every'](_0x53f4c3=>_0x2c5f82['some'](_0x28425b=>_0x28425b['containsRange'](_0x53f4c3,!0x0)))&&_0x983019['discard']());if(_0x2c5f82['every'](_0x5bc308=>_0x544ed9['some'](_0x2e7b94=>_0x2e7b94['containsRange'](_0x5bc308,!0x0)))){const _0xd34af3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d6cfa,'accept');return this['forceDefaultExecution'](()=>_0xd34af3(_0x576706,null,_0x56dba7)),null;}}else{const _0x1d853d=_0x983019['getFirstRange']();_0x2c5f82['some'](_0x367d24=>_0x367d24['containsRange'](_0x1d853d,!0x0))&&_0x983019['discard']();if(_0x2c5f82['every'](_0x4d97d4=>_0x1d853d['containsRange'](_0x4d97d4,!0x0))){const _0x6b74a9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d6cfa,'accept');return this['forceDefaultExecution'](()=>_0x6b74a9(_0x2c5f82,null,_0x56dba7)),null;}}const _0x5881a3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d6cfa,'join');let _0x32fa10=null;for(const _0x52ca37 of this['getSuggestions']())if(_0x52ca37['author']['id']==_0xabd549['id']&&_0x52ca37['isInContent']&&'deletion'==_0x52ca37['type']&&_0x52ca37['subType']==_0x2d6cfa&&Qt(_0x52ca37,_0x56dba7)&&(_0x5881a3(_0x52ca37['getRanges'](),_0x2c5f82)||_0x5881a3(_0x2c5f82,_0x52ca37['getRanges']()))){if(_0x32fa10){if(_0x52ca37['commentThread']&&_0x52ca37['commentThread']['length'])continue;for(const _0x24b40f of _0x52ca37['getRanges']())_0x32fa10['isIntersectingWithRange'](_0x24b40f)||_0x32fa10['addRange'](_0x24b40f);_0x52ca37['removeMarkers']();}else{_0x32fa10=_0x52ca37;for(const _0x1df7c9 of _0x2c5f82)_0x52ca37['isIntersectingWithRange'](_0x1df7c9)||_0x52ca37['addRange'](_0x1df7c9);}}if(_0x32fa10)return _0x32fa10;_0x480101['clear']();for(const {suggestion:_0x14bde8,meta:_0xf02891}of this['_findSuggestions'](_0x2c5f82,'deletion'))_0xf02891['isOwn']&&(this['_mergeNestedSuggestions']||!_0xf02891['containsRangeInObject']&&!_0xf02891['isInsideObject'])&&Qt(_0x14bde8,_0x56dba7)&&_0x480101['add'](_0x14bde8);for(const _0x160f73 of _0x480101){const _0x36da02=_0x160f73['getRanges']();if(!_0x56dba7||!_0x56dba7['skipNestingCheck']){if(_0x2c5f82['every'](_0x3b2f43=>_0x36da02['some'](_0x34cec3=>_0x34cec3['containsRange'](_0x3b2f43,!0x0))))return _0x160f73;}(!_0x160f73['attributes']||!_0x160f73['attributes']['skipNestingCheck'])&&(_0x36da02['every'](_0x4a0cc6=>_0x2c5f82['some'](_0x1ed2dc=>_0x1ed2dc['containsRange'](_0x4a0cc6,!0x0)))&&_0x160f73['discard']());}const _0x153a65=_0xf0931c(),_0x58bb2a=_0xabd549['id'],_0x4f7198='deletion:'+_0x2d6cfa,_0x38cbc6=this['_setSuggestionData']({'id':_0x153a65,'type':_0x4f7198,'createdAt':new Date(),'authorId':_0x58bb2a,'attributes':_0x56dba7});for(const _0x295dc1 of _0x2c5f82)_0x295dc1['detach'](),_0x295dc1['isCollapsed']||'$graveyard'==_0x295dc1['root']['rootName']||this['_addSuggestionMarker'](_0x4f7198,_0x153a65,_0x58bb2a,_0x295dc1,u['getMultiRangeId']());return _0x38cbc6;}['markAttributeChange'](_0x9aff0,_0x539683,_0x365deb,_0x37e492,_0x2a1402){if(_0x9aff0['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x149dfa=this['editor']['plugins']['get']('Users')['me']['id'],_0x32bd07=Array['from'](this['_suggestions']['values']())['filter'](_0x43fc96=>'attribute'==_0x43fc96['type']&&_0x43fc96['data']['key']==_0x539683&&_0x43fc96['isIntersectingWithRange'](_0x9aff0));if('default'===this['_trackFormatChanges']){const _0x449883=this['_findSuggestions'](_0x9aff0,'insertion')['filter'](({meta:_0x4c6a5b})=>_0x4c6a5b['isOwn']&&!_0x4c6a5b['isInsideObject']&&!_0x4c6a5b['isNextTo'])['map'](({suggestion:_0x314299})=>_0x314299);_0x32bd07['unshift'](..._0x449883);}const _0x11edb8=new Map([[_0x9aff0,_0x365deb]]);for(const _0x537c23 of _0x32bd07){const _0x454a7f='attribute'==_0x537c23['type']?_0x537c23['data']['oldValue']:void 0x0,_0x32598b=_0x537c23['getFirstRange'](),_0x4b5089=Array['from'](_0x11edb8['keys']())['find'](_0x29332c=>_0x29332c['isIntersecting'](_0x32598b));if(!_0x4b5089)continue;const _0xd852ab=_0x4b5089['getDifference'](_0x32598b);this['_isBlockAttribute'](_0x539683)&&'insertion'==_0x537c23['type']&&0x0!=_0xd852ab['length']||(_0x11edb8['delete'](_0x4b5089),_0xd852ab['forEach'](_0x394a19=>{_0x11edb8['set'](_0x394a19,_0x365deb);}),'insertion'!=_0x537c23['type']&&_0x454a7f!=_0x37e492&&_0x11edb8['set'](_0x4b5089['getIntersection'](_0x32598b),_0x454a7f));}const _0x55fb65=[];for(const [_0x63ed,_0xf969ce]of _0x11edb8){const _0x3efab4=_0xf0931c(),_0x5bf888={'key':_0x539683,'oldValue':_0xf969ce,'newValue':_0x37e492};_0x539683['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':_0x539683});const _0x2d08e8=('attribute:'+(_0x539683+'|'+Jt({'newValue':_0x37e492})))['substring'](0x0,0x3c),_0x507db0=this['_setSuggestionData']({'id':_0x3efab4,'type':_0x2d08e8,'data':_0x5bf888,'createdAt':new Date(),'authorId':_0x149dfa,'attributes':_0x2a1402});_0x55fb65['push'](_0x507db0),this['_addSuggestionMarker'](_0x2d08e8,_0x3efab4,_0x149dfa,_0x63ed);}return _0x55fb65;}['enableDefaultAttributesIntegration'](_0x4aad6a){this['enableCommand'](_0x4aad6a,(_0x587059,..._0x5c3c66)=>{this['_recordAttributeChanges'](()=>{_0x587059(..._0x5c3c66);});});}['registerBlockAttribute'](_0x23c439){this['_blockAttributeKeys']['add'](_0x23c439);}['registerInlineAttribute'](_0x83b027){this['_inlineAttributeKeys']['add'](_0x83b027);}['_getAttributeKey'](_0x532143){return'attribute'==_0x532143['type']?_0x532143['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3b11b6,_0xb76b3e){const _0x5301c1=_0x3b11b6['getFirstMarker']();this['_model']['change'](_0x56c5b0=>{_0x56c5b0['updateMarker'](_0x5301c1,{'range':_0xb76b3e});});}['_addThreadToSuggestion'](_0x2769f2){const _0x472cf5=_0x2769f2['id'],_0x377c82=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x472cf5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x377c82,'threadId':_0x472cf5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x28b1d2=this['_commentsRepository']['getCommentThread'](_0x472cf5);_0x28b1d2['unbind']('isRemovable'),_0x28b1d2['isRemovable']=!0x1,_0x2769f2['commentThread']=_0x28b1d2;}['_checkSuggestionCorrectness'](_0x29b864,_0x479f4b,_0x37a5b0,_0x144502){if(_0x29b864['type']!=_0x479f4b||_0x29b864['subType']!=_0x37a5b0||_0x29b864['creator']['id']!=_0x144502)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x523434('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x53cf38,_0x3953c9){const _0xa1131=_0x53cf38['getFirstRange']();if(_0x3953c9['isEqual'](_0xa1131))_0x53cf38['removeMarkers']();else{if(_0xa1131['containsRange'](_0x3953c9)){const _0x4d3521=this['_model']['createPositionAt'](_0x3953c9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x53cf38,this['_model']['createRange'](_0xa1131['start'],_0x4d3521));const _0x5cfd2b=_0xf0931c(),_0x337159=_0x53cf38['creator']['id'],_0x1f799c=_0x53cf38['type']+':'+_0x53cf38['subType'];this['_setSuggestionData']({'id':_0x5cfd2b,'type':_0x1f799c,'createdAt':new Date(),'authorId':_0x337159,'data':_0x53cf38['data'],'attributes':_0x53cf38['attributes']});const _0x234042=this['_model']['createPositionAt'](_0x3953c9['end']['parent'],'after'),_0x2ed473=this['_model']['createRange'](_0x234042,_0xa1131['end']);this['_addSuggestionMarker'](_0x1f799c,_0x5cfd2b,_0x337159,_0x2ed473);}else{if(_0xa1131['containsPosition'](_0x3953c9['start'])){const _0x2a1f97=this['_model']['createPositionAt'](_0x3953c9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x53cf38,this['_model']['createRange'](_0xa1131['start'],_0x2a1f97));}else{const _0x26fda6=this['_model']['createPositionAt'](_0x3953c9['end']['parent'],'after');this['_setSuggestionRange'](_0x53cf38,this['_model']['createRange'](_0x26fda6,_0xa1131['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x554926){for(const {suggestion:_0x1fec77,meta:_0x5d68e7}of this['_findSuggestions'](_0x554926,'insertion')){if(!_0x5d68e7['isOwn'])continue;const _0x17e080=_0x1fec77['getRanges']();for(const _0x57c70d of _0x17e080)if(!_0x554926['getDifference'](_0x57c70d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x596b83){const _0x3c2987=this['editor']['plugins']['get']('Users')['getUser'](_0x596b83);if(!_0x3c2987)throw new _0x523434('track-changes-user-not-found',this);return _0x3c2987;}['_getExternalAuthor'](_0x5b790b){const _0x5d2753=this['editor']['plugins']['get']('Users'),_0x3a74c3=_0xe0c89d('external:'+_0x5b790b),_0x2c722c=_0x5d2753['getUser'](_0x3a74c3);return _0x2c722c||_0x5d2753['addUser']({'id':_0x3a74c3,'name':_0x5b790b});}['_createSuggestion'](_0x305edd,_0x3a88e7,_0x1c2f65,_0x3647d1,_0x3ac6d8){const _0x5cc931=this['_getAuthorFromId'](_0x3647d1),_0x37eec8=this['_suggestionFactory']['buildSuggestion'](_0x305edd,_0x3a88e7,_0x1c2f65,_0x5cc931,_0x3ac6d8,_0x30eaa0=>{this['_updateSuggestionData'](_0x1c2f65,{'attributes':_0x30eaa0});const _0xf60efe=this['getSuggestion'](_0x1c2f65);this['_joinWithAdjacentSuggestions'](new Set([_0xf60efe])),this['_refreshSuggestionsChain'](new Set([_0xf60efe]));});return this['listenTo'](_0x37eec8,'accept',()=>{this['_updateSuggestionData'](_0x1c2f65,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x37eec8,'discard',()=>{this['_updateSuggestionData'](_0x1c2f65,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1c2f65,_0x37eec8),this['_suggestionState']['set'](_0x37eec8,'notReady'),_0x37eec8;}['_splitMarkerName'](_0x2ed6d5){const _0x2f12d2=_0x2ed6d5['split'](':');return{'group':_0x2f12d2[0x0],'type':_0x2f12d2[0x1],'subType':_0x2f12d2['length']>=0x5?_0x2f12d2[0x2]:null,'id':_0x2f12d2['length']<0x5?_0x2f12d2[0x2]:_0x2f12d2[0x3],'authorId':_0x2f12d2['length']<0x5?_0x2f12d2[0x3]:_0x2f12d2[0x4],'markerCount':0x6==_0x2f12d2['length']?_0x2f12d2[0x5]:null};}['_breakSuggestionMarker'](_0x159a3d,_0x471ea6,_0x23d1f1){const _0x336fba=_0x159a3d['getFirstRange'](),_0x3af89e=_0x336fba['start'],_0x38087e=_0x336fba['end'];this['_setSuggestionRange'](_0x159a3d,this['_model']['createRange'](_0x3af89e,_0x471ea6));const _0x10ff3f=_0xf0931c(),_0x188061=_0x159a3d['creator']['id'],_0x3dcc78=_0x159a3d['type']+(_0x159a3d['subType']?':'+_0x159a3d['subType']:'');this['_setSuggestionData']({'id':_0x10ff3f,'type':_0x3dcc78,'createdAt':new Date(),'authorId':_0x188061,'originalSuggestionId':_0x159a3d['id'],'attributes':_0x159a3d['attributes'],'data':_0x159a3d['data']});const _0x4b3029=this['_getAttributeKey'](_0x159a3d);('formatBlock'==_0x159a3d['type']||_0x4b3029&&this['_isBlockAttribute'](_0x4b3029))&&(_0x23d1f1=this['_model']['createPositionBefore'](_0x23d1f1['parent'])),this['_addSuggestionMarker'](_0x3dcc78,_0x10ff3f,_0x188061,this['_model']['createRange'](_0x23d1f1,_0x38087e));}['_findSuggestions'](_0x335a10,_0x5c5b92=null){const _0x27bd77=[],_0x1e3df9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x335a10)||(_0x335a10=[_0x335a10]);for(const _0x3886c2 of this['getSuggestions']()){if(!_0x3886c2['isInContent'])continue;if(_0x5c5b92&&_0x3886c2['type']!=_0x5c5b92)continue;let _0xb4491d=!0x1;for(const _0x5c8c59 of _0x3886c2['getRanges']()){for(const _0x47c550 of _0x335a10){const _0x84dc1e=_0x47c550['start']['isEqual'](_0x5c8c59['end'])||_0x47c550['end']['isEqual'](_0x5c8c59['start']);if(_0x84dc1e||_0x47c550['getIntersection'](_0x5c8c59)){const _0x125dbe=_0x47c550['containsRange'](_0x5c8c59)&&Gt(this['_model']['schema'],_0x5c8c59['start'],_0x47c550),_0x3c98c5=_0x5c8c59['containsRange'](_0x47c550)&&Gt(this['_model']['schema'],_0x47c550['start'],_0x5c8c59);_0x27bd77['push']({'suggestion':_0x3886c2,'meta':{'isOwn':_0x1e3df9==_0x3886c2['author'],'isNextTo':_0x84dc1e,'isInsideObject':_0x125dbe,'containsRangeInObject':_0x3c98c5}}),_0xb4491d=!0x0;break;}}if(_0xb4491d)break;}}return _0x27bd77;}['_addSuggestionMarker'](_0x2026b4,_0x3dc9c2,_0x3c34bb,_0x58e76d,_0x20c248){this['_model']['change'](_0x4960fc=>{let _0x562982='suggestion:'+_0x2026b4+':'+_0x3dc9c2+':'+_0x3c34bb;_0x20c248&&(_0x562982=_0x562982+':'+_0x20c248),_0x4960fc['addMarker'](_0x562982,{'range':_0x58e76d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4f1f73){const _0x356ddf=_0x4f1f73['previous'],_0x77a6d0=_0x4f1f73['next'];_0x4f1f73['previous']=null,_0x4f1f73['next']=null,null!=_0x356ddf&&_0x356ddf['next']==_0x4f1f73&&(_0x356ddf['next']=_0x77a6d0),null!=_0x77a6d0&&_0x77a6d0['previous']==_0x4f1f73&&(_0x77a6d0['previous']=_0x356ddf),'ready'==this['_suggestionState']['get'](_0x4f1f73)&&(this['_suggestionState']['set'](_0x4f1f73,'removed'),this['fire']('suggestionUnloaded',_0x4f1f73,_0x356ddf,_0x77a6d0));}['_setSuggestionData'](_0x160fc7){const _0xc966d5=_0x160fc7['id'],_0x4208ad=this['addSuggestionData'](_0x160fc7);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2c57e6=this['editor']['plugins']['get']('PendingActions'),_0x1118b6=_0x4208ad['hasComments'],_0x23a0ff=_0x4208ad['subType']?_0x4208ad['type']+':'+_0x4208ad['subType']:_0x4208ad['type'],_0x5cc80d=this['editor']['locale'],_0x161d9c=_0x2c57e6['add'](o(_0x5cc80d,'PENDING_ACTION_SUGGESTION')),_0x49ef76={'id':_0xc966d5,'type':_0x23a0ff,'hasComments':_0x1118b6,'data':_0x160fc7['data']||null,'originalSuggestionId':_0x160fc7['originalSuggestionId']||null,'attributes':_0x4208ad['attributes']};this['_adapter']['addSuggestion'](_0x49ef76)['then'](_0x5e4ad2=>{_0x4208ad['_saved']=!0x0,_0x2c57e6['remove'](_0x161d9c),_0x5e4ad2&&_0x5e4ad2['createdAt']&&(this['_suggestions']['get'](_0xc966d5)['createdAt']=_0x5e4ad2['createdAt']);})['catch'](_0xd034ea=>{throw _0x15da72('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4208ad['discard']();}),_0x4208ad['stopListening'](),this['_suggestions']['delete'](_0x4208ad['id']),this['_suggestionState']['delete'](_0x4208ad),_0xd034ea;});}return _0x4208ad;}['_isBlockAttribute'](_0x327850){return this['_blockAttributeKeys']['has'](_0x327850);}['_updateSuggestionData'](_0x5c1ff0,_0x864ea7){const _0x4dd26c=this['editor']['plugins']['get']('PendingActions'),_0x4f15e6=this['getSuggestion'](_0x5c1ff0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4f15e6['_saved']){const _0x1260e9=_0x4dd26c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5c1ff0,_0x864ea7)['then'](()=>{_0x4dd26c['remove'](_0x1260e9);});}else _0x4f15e6['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5c1ff0,_0x864ea7);});}}['_getSuggestionData'](_0x268a50){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x523434('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x268a50);}['_handleNewSuggestionMarker'](_0x185670){const {id:_0x4c07af,type:_0x37352b,subType:_0x4753bf,authorId:_0x33f48f}=this['_splitMarkerName'](_0x185670),_0x2a40f5=this['_suggestions']['get'](_0x4c07af)||this['_createSuggestion'](_0x37352b,_0x4753bf,_0x4c07af,_0x33f48f,{});switch(this['_checkSuggestionCorrectness'](_0x2a40f5,_0x37352b,_0x4753bf,_0x33f48f),this['_suggestionState']['get'](_0x2a40f5)){case'notReady':this['_getSuggestionData'](_0x4c07af)['then'](_0x438876=>{let _0x3f5f6a=Promise['resolve']();_0x438876['hasComments']&&(_0x3f5f6a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4c07af})),_0x3f5f6a['then'](()=>{this['addSuggestionData'](_0x438876)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2a40f5,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4c07af,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2a40f5,'ready'),this['fire']('suggestionLoaded',_0x2a40f5);break;case'ready':this['fire']('suggestionChanged',_0x2a40f5);}return _0x2a40f5['addMarkerName'](_0x185670),_0x2a40f5;}['_refreshSuggestionsChain'](_0x13f602){const _0x4d9d6d=Array['from'](_0x13f602),_0x5708f3=_0x4d9d6d['filter'](_0x299b28=>'attribute'==_0x299b28['type']);this['_refreshAttributeSuggestionsChain'](_0x5708f3);const _0x3ca864=_0x4d9d6d['filter'](_0x355a8a=>!_0x355a8a['isMultiRange']&&'attribute'!=_0x355a8a['type']),_0x3e9c1f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f7ae9=>!_0x1f7ae9['isMultiRange']&&'attribute'!=_0x1f7ae9['type']),_0x21f44d=_0x3e9c1f['filter'](_0x1728e8=>!_0x13f602['has'](_0x1728e8)),_0x31fff7=new Map(_0x3e9c1f['map'](_0x2acf84=>[_0x2acf84,this['_suggestionFactory']['getSuggestionCallback'](_0x2acf84['type'],_0x2acf84['subType'],'chain')])),_0xc6dc9c=new Map(_0x3e9c1f['map'](_0x125960=>[_0x125960,_0x125960['getFirstRange']()])),_0x601360=new Set(),_0x582d26=new Set();for(let _0x4f6369=0x0;_0x4f6369<_0x3ca864['length'];_0x4f6369++)_0x340e35(_0x3ca864[_0x4f6369],_0x3ca864,_0x4f6369+0x1);for(let _0x2178ec=0x0;_0x2178ec<_0x3ca864['length'];_0x2178ec++)_0x340e35(_0x3ca864[_0x2178ec],_0x21f44d,0x0);const _0x49eae3=new Set();for(let _0xdf2604=0x0;_0xdf2604<_0x3ca864['length'];_0xdf2604++){const _0x1a1d26=_0x3ca864[_0xdf2604];!_0x582d26['has'](_0x1a1d26)&&_0x1a1d26['previous']&&(_0x49eae3['add'](_0x1a1d26['previous']),_0x1a1d26['previous']['next']===_0x1a1d26&&(_0x1a1d26['previous']['next']=null),_0x1a1d26['previous']=null),!_0x601360['has'](_0x1a1d26)&&_0x1a1d26['next']&&(_0x49eae3['add'](_0x1a1d26['next']),_0x1a1d26['next']['previous']===_0x1a1d26&&(_0x1a1d26['next']['previous']=null),_0x1a1d26['next']=null);}function _0x340e35(_0x504ecd,_0x2d99d4,_0x4b96ec){for(let _0x3f931c=_0x4b96ec;_0x3f931c<_0x2d99d4['length'];_0x3f931c++){const _0x3666eb=_0x37199a(_0x504ecd,_0x2d99d4[_0x3f931c]);_0x3666eb&&(_0x3666eb[0x0]['next']=_0x3666eb[0x1],_0x3666eb[0x1]['previous']=_0x3666eb[0x0],_0x601360['add'](_0x3666eb[0x0]),_0x582d26['add'](_0x3666eb[0x1]));}}function _0x37199a(_0x5e6bc6,_0x3131e1){if(_0x5e6bc6['author']['id']!==_0x3131e1['author']['id'])return null;const _0xbb7cec=_0x31fff7['get'](_0x5e6bc6)(_0x5e6bc6,_0x3131e1,_0xc6dc9c['get'](_0x5e6bc6),_0xc6dc9c['get'](_0x3131e1));if(!_0xbb7cec)return null;return _0x31fff7['get'](_0x3131e1)(_0x5e6bc6,_0x3131e1,_0xc6dc9c['get'](_0x5e6bc6),_0xc6dc9c['get'](_0x3131e1))?_0xbb7cec[0x1]['commentThread']&&_0xbb7cec[0x1]['commentThread']['length']?null:_0xbb7cec:null;}_0x49eae3['size']&&this['_refreshSuggestionsChain'](_0x49eae3);}['_refreshAttributeSuggestionsChain'](_0x41438f){if(0x0==_0x41438f['length'])return;const _0x3fb245=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b7531=>'attribute'==_0x4b7531['type']&&_0x4b7531['_isDataLoaded']),_0x3df515=[],_0x3fd388=new Map();for(const _0x37cc17 of _0x3fb245){const _0x4f4f44=_0xe0c89d(_0x37cc17['attributes']);_0x3fd388['has'](_0x4f4f44)||(_0x3fd388['set'](_0x4f4f44,_0x3df515['length']),_0x3df515['push']([]));const _0x2b7bb8=_0x3fd388['get'](_0x4f4f44);_0x3df515[_0x2b7bb8]['push'](_0x37cc17);}!(function(){_0x3df515['sort']((_0x14749a,_0x284fce)=>{const _0x31ac63=_0x14749a[0x0]['createdAt'],_0x5f081d=_0x284fce[0x0]['createdAt'];return _0x31ac63==_0x5f081d?_0x14749a[0x0]['attributes']['groupId']<_0x284fce[0x0]['attributes']['groupId']?-0x1:0x1:_0x31ac63<_0x5f081d?-0x1:0x1;});for(const _0x530953 of _0x3df515)_0x530953['sort']((_0x5a668d,_0x27e3cc)=>_0x5a668d['id']<_0x27e3cc['id']?-0x1:0x1);}());for(let _0x4ed8db=0x0;_0x4ed8db<_0x3df515['length'];_0x4ed8db++){if(0x0==_0x3df515[_0x4ed8db]['length'])continue;const _0x5b91b0=[];for(let _0x35c35e=_0x4ed8db+0x1;_0x35c35e<_0x3df515['length'];_0x35c35e++)0x0!=_0x3df515[_0x35c35e]['length']&&_0x1bde7d(_0x3df515[_0x4ed8db],_0x3df515[_0x35c35e])&&_0x5b91b0['push'](_0x35c35e);for(const _0x5909be of _0x5b91b0)_0x3df515[_0x4ed8db]=_0x3df515[_0x4ed8db]['concat'](_0x3df515[_0x5909be]),_0x3df515[_0x5909be]=[];}for(const _0x3c8147 of _0x3df515)for(let _0x361d96=0x0;_0x361d96<_0x3c8147['length'];_0x361d96++){const _0x1621ee=_0x3c8147[_0x361d96+0x1]||null;_0x3c8147[_0x361d96]['next']!==_0x1621ee&&(_0x3c8147[_0x361d96]['next']=_0x1621ee);}for(const _0x49725f of _0x3df515)for(let _0x2ce49e=0x0;_0x2ce49e<_0x49725f['length'];_0x2ce49e++){const _0x47f941=_0x49725f[_0x2ce49e-0x1]||null;_0x49725f[_0x2ce49e]['previous']!==_0x47f941&&(_0x49725f[_0x2ce49e]['previous']=_0x47f941);}function _0x1bde7d(_0x23ddf4,_0x3a6e76){if(_0x23ddf4[0x0]['attributes']['groupId']!==_0x3a6e76[0x0]['attributes']['groupId']&&_0x23ddf4[0x0]['author']!==_0x3a6e76[0x0]['author'])return!0x1;if(!function(_0x507642,_0x3db867){if(!_0x507642['hasComments']&&!_0x3db867['hasComments'])return!0x0;if(_0x507642['hasComments']&&_0x3db867['hasComments'])return!0x1;if(_0x507642['hasComments']&&_0x3db867['createdAt']<_0x507642['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3db867['hasComments']&&_0x507642['createdAt']<_0x3db867['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x23ddf4[0x0],_0x3a6e76[0x0]))return!0x1;const _0xe93a76=Vt(_0x23ddf4[0x0]['attributes'],'groupId'),_0x2fa1c7=Vt(_0x3a6e76[0x0]['attributes'],'groupId');if(!_0x549bfd(_0xe93a76,_0x2fa1c7))return!0x1;return!!_0x23ddf4['every'](_0x2a42cd=>_0x3a6e76['some'](_0x5bb044=>_0x2a42cd['getFirstRange']()['isEqual'](_0x5bb044['getFirstRange']())))&&_0x3a6e76['every'](_0x46e8d8=>_0x23ddf4['some'](_0x1a8cdf=>_0x46e8d8['getFirstRange']()['isEqual'](_0x1a8cdf['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x49af06){const _0x5dd002=Array['from'](_0x49af06),_0x259fbb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3c6944=_0x259fbb['filter'](_0x4548a7=>!_0x49af06['has'](_0x4548a7)),_0x1099fe=new Map(_0x5dd002['map'](_0x474b67=>[_0x474b67,this['_suggestionFactory']['getSuggestionCallback'](_0x474b67['type'],_0x474b67['subType'],'join')])),_0x40f764=new Map(_0x259fbb['map'](_0x45048f=>[_0x45048f,_0x45048f['getRanges']()]));for(let _0x13080d=0x0;_0x13080d<_0x5dd002['length'];_0x13080d++){if(_0x432728(this,_0x5dd002[_0x13080d],_0x5dd002,_0x13080d+0x1))return!0x0;}for(let _0x2a0b93=0x0;_0x2a0b93<_0x5dd002['length'];_0x2a0b93++){if(_0x432728(this,_0x5dd002[_0x2a0b93],_0x3c6944,0x0))return!0x0;}return!0x1;function _0x432728(_0x2385d5,_0x170148,_0x1f54dd,_0x25f33f){for(let _0x2ae8bc=_0x25f33f;_0x2ae8bc<_0x1f54dd['length'];_0x2ae8bc++){const _0x15a6a9=_0x1f54dd[_0x2ae8bc];if(_0x15a6a9['type']!==_0x170148['type']||_0x15a6a9['author']['id']!==_0x170148['author']['id']||_0x15a6a9['subType']!==_0x170148['subType'])continue;if(!Wt(_0x170148,_0x15a6a9))continue;if('attribute'==_0x170148['type']&&_0x170148['data']['oldValue']!=_0x15a6a9['data']['oldValue'])continue;if('attribute'==_0x170148['type']&&_0x2385d5['_isBlockAttribute'](_0x170148['data']['key']))continue;if('formatBlock'==_0x170148['type']){const _0x37702c=_0x2385d5['editor']['model'],_0x1d6cc9=_0x170148['getContainedElement']();if(_0x1d6cc9&&(_0x37702c['schema']['isObject'](_0x1d6cc9)||_0x37702c['schema']['isLimit'](_0x1d6cc9)))continue;}const _0x5b8d4e=_0x1099fe['get'](_0x170148),_0x483810=_0x40f764['get'](_0x170148),_0x3bbcb6=_0x40f764['get'](_0x15a6a9),_0x43a665=_0x170148['commentThread']&&_0x170148['commentThread']['length'],_0x322a17=_0x15a6a9['commentThread']&&_0x15a6a9['commentThread']['length'];if(!_0x43a665&&_0x5b8d4e(_0x3bbcb6,_0x483810))return _0x2385d5['_joinSuggestions'](_0x15a6a9,_0x170148),_0x40f764['delete'](_0x170148),!0x0;if(!_0x322a17&&_0x5b8d4e(_0x483810,_0x3bbcb6))return _0x2385d5['_joinSuggestions'](_0x170148,_0x15a6a9),_0x40f764['delete'](_0x15a6a9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2ba3d3,_0x2894ad){if(_0x2ba3d3['isMultiRange']){for(const _0x4a4d6f of _0x2894ad['getRanges']())_0x2ba3d3['addRange'](_0x4a4d6f);}else{const _0x51cabf=_0x2894ad['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2ba3d3,this['_model']['createRange'](_0x2ba3d3['getFirstRange']()['start'],_0x51cabf));}_0x2894ad['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1af1c1,_0x34dba4,_0x513064){const _0x18c622=_0x1af1c1['startsWith']('format')||_0x1af1c1['startsWith']('attribute')?'FORMATTING':_0x1af1c1['toUpperCase']();return o(this['editor']['locale'],_0x34dba4+'_'+_0x18c622+'_SUGGESTION_ANNOUNCEMENT',_0x513064);}['_initAriaMarkerChangeAnnouncements'](){const _0x1cd988=this['editor'];if(!_0x1cd988['ui'])return;const {ariaLiveAnnouncer:_0x2b79b0}=_0x1cd988['ui'];_0x141f07(this['_model'],({left:_0x3e08f3,entered:_0x4826d8})=>{for(const _0x521682 of _0x3e08f3){const {group:_0x353353,type:_0x2ac420}=this['_splitMarkerName'](_0x521682['name']);if('suggestion'===_0x353353){_0x2b79b0['announce'](this['_getMarkerAnnouncementText'](_0x2ac420,'LEAVE'));break;}}for(const _0x3566ab of _0x4826d8){const {group:_0x4cfccb,type:_0x20bcff}=this['_splitMarkerName'](_0x3566ab['name']);if('suggestion'===_0x4cfccb){_0x2b79b0['announce'](this['_getMarkerAnnouncementText'](_0x20bcff,'ENTER',_0x2a3ca7(_0x53f401)));break;}}});}['_processAttributeChanges'](_0x29963f){if(this['_recordAttributeSuggestions'])return!0x1;const _0xa55ef6=this['editor'],_0x54f290=_0xa55ef6['model']['document']['differ']['getChanges']();if(0x0==_0x54f290['length'])return!0x1;const _0x56e5a0=[],_0x2e4bfe=_0x54f290['filter'](_0x50592c=>'attribute'==_0x50592c['type']),_0x1038a5=_0x54f290['filter'](_0x3f835d=>'insert'==_0x3f835d['type']&&'$text'!=_0x3f835d['name']),_0x14ac2f=_0x54f290['filter'](_0x3486b9=>'remove'==_0x3486b9['type']&&'$text'!=_0x3486b9['name']);for(const _0x1e2d4c of _0x2e4bfe)_0x56e5a0['push']({'key':_0x1e2d4c['attributeKey'],'newValue':_0x1e2d4c['attributeNewValue'],'oldValue':_0x1e2d4c['attributeOldValue'],'range':qt(_0x1e2d4c['range'],_0xa55ef6['model'])});for(const _0x496499 of _0x1038a5){const _0x5ddfe3=_0x14ac2f['find'](_0x42748f=>_0x42748f['position']['isEqual'](_0x496499['position']));_0x5ddfe3&&_0x56e5a0['push']({'key':m,'newValue':_0x496499['name'],'oldValue':_0x5ddfe3['name'],'range':_0xa55ef6['model']['createRangeOn'](_0x496499['position']['nodeAfter'])});}return 0x0!=_0x56e5a0['length']&&this['_reduceExistingSuggestions'](_0x29963f,_0x56e5a0);}['_processAttributeSuggestions'](_0x13f7fb){let _0x1fdbc4=!0x1;const _0x5011e1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x618f4a=>_0x618f4a['data']['newRange']&&_0x618f4a['name']['startsWith']('suggestion:attribute:'));for(const _0x595560 of _0x5011e1){const {subType:_0x5ab1e1,id:_0x4a2dc1}=this['_splitMarkerName'](_0x595560['name']),_0x1bec80=_0x5ab1e1['split']('|')[0x0];for(const _0x3f7a95 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3f7a95['id']!=_0x4a2dc1&&'attribute'==_0x3f7a95['type']&&_0x3f7a95['data']&&_0x3f7a95['data']['key']==_0x1bec80&&_0x3f7a95['getFirstRange']()['isIntersecting'](_0x595560['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3f7a95,_0x595560['data']['newRange'],_0x13f7fb),_0x1fdbc4=!0x0);}return _0x1fdbc4;}['_recordAttributeChanges'](_0x6e189a){this['_recordAttributeSuggestions']=!0x0,_0x6e189a();}['_isRegisteredAttribute'](_0x512a4f){const _0x52ea88=this['_isBlockAttribute'](_0x512a4f),_0x37b873=this['_inlineAttributeKeys']['has'](_0x512a4f);return _0x52ea88||_0x37b873;}['_reduceExistingSuggestions'](_0x462993,_0x154b33){if(0x0==_0x154b33['length'])return!0x1;let _0x237bd6=!0x1;for(const _0x2b2ce4 of _0x154b33){const _0x27452b=this['_findSuggestions'](_0x2b2ce4['range'],'attribute')['filter'](_0x21f3c7=>!_0x21f3c7['meta']['isNextTo'])['map'](_0x1b3bb1=>_0x1b3bb1['suggestion']),_0x3f3a5a=_0xe0c89d({'newValue':_0x2b2ce4['newValue']});_0x27452b['filter'](_0x2719b6=>{const [_0x1d7d7c,_0x57ef21]=_0x2719b6['subType']['split']('|');return _0x1d7d7c==_0x2b2ce4['key']&&_0x57ef21!=_0x3f3a5a;})['forEach'](_0x5acfe9=>{this['_reduceSuggestionAttributeRange'](_0x5acfe9,_0x2b2ce4['range'],_0x462993),_0x237bd6=!0x0;});}return _0x237bd6;}['_reduceSuggestionAttributeRange'](_0x167ebe,_0x4f69bb,_0x102a1a){const _0x4104e8=_0x167ebe['getFirstRange']()['getDifference'](_0x4f69bb);0x0!==_0x4104e8['length']?0x1!==_0x4104e8['length']?this['_breakSuggestionMarker'](_0x167ebe,_0x4f69bb['start'],_0x4f69bb['end']):this['_setSuggestionRange'](_0x167ebe,_0x4104e8[0x0]):_0x102a1a['removeMarker'](_0x167ebe['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x273fbd){this['_editor']=_0x273fbd,this['_model']=_0x273fbd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3cf5b0,_0x2816ea,_0x3eb72d,_0x3656d4,_0x377e07,_0x51653a){return new u(this['_model'],{'type':_0x3cf5b0,'subType':_0x2816ea,'id':_0x3eb72d,'author':_0x3656d4,'creator':_0x3656d4,'attributes':_0x377e07,'onAttributesChange':_0x51653a,'onAccept':(..._0x32f4dd)=>this['getSuggestionCallback'](_0x3cf5b0,_0x2816ea,'accept')(..._0x32f4dd),'onDiscard':(..._0x1479be)=>this['getSuggestionCallback'](_0x3cf5b0,_0x2816ea,'discard')(..._0x1479be)});}['registerCustomCallback'](_0x2f1b32,_0x21b23e,_0x364cc5,_0x59abb1){const _0x4fe6f0=_0x2f1b32+':'+_0x21b23e+':'+_0x364cc5;this['_customCallbacks']['set'](_0x4fe6f0,_0x59abb1);}['getSuggestionCallback'](_0x2cfcbe,_0x343e1b,_0x40a5cd){const _0x1f364c=_0x2cfcbe+':'+_0x343e1b+':'+_0x40a5cd;return this['_customCallbacks']['get'](_0x1f364c)||this['_defaultCallbacks']['get'](_0x2cfcbe+':'+_0x40a5cd);}['_registerDefaultCallbacks'](){const _0x1be122=()=>!0x1,_0x35f3c9=_0xce46c5=>{_0xce46c5['sort']((_0x162eb0,_0x13a7d0)=>_0x162eb0['start']['isBefore'](_0x13a7d0['start'])?0x1:-0x1),this['_model']['change'](_0x31781f=>{for(const _0x29f841 of _0xce46c5){let _0x44b0b1;_0x44b0b1=_0x29f841['end']['isAtEnd']&&_0x29f841['end']['parent']==_0x29f841['start']['nodeAfter']?_0x31781f['createSelection'](_0x29f841['start']['nodeAfter'],'on'):_0x31781f['createSelection'](_0x29f841),this['_model']['deleteContent'](_0x44b0b1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf02895=(_0x2a42d1,_0x27cc78)=>{_0x27cc78&&this['_model']['change'](_0x294de0=>{const {commandName:_0x1aa812,commandParams:_0x4d341f=[]}=_0x27cc78,_0x37c2f7=_0x2a42d1['map'](_0x5d0bd2=>(Ft(_0x5d0bd2)&&(_0x5d0bd2=this['_model']['createRange'](_0x5d0bd2['end'])),_0x5d0bd2))['filter'](_0x3d95b4=>'$graveyard'!==_0x3d95b4['root']['rootName']);if(_0x37c2f7['length']<0x1)return;const _0x3de2ad=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5229b1=>_0x36d42c['fromRange'](_0x5229b1));_0x294de0['setSelection'](_0x37c2f7);for(const _0x51949d of this['_editor']['commands']['commands']())_0x51949d['refresh']();_0x4d341f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1aa812,..._0x4d341f);const _0x113790=_0x3de2ad['filter'](_0x9cbb65=>'$graveyard'!=_0x9cbb65['root']['rootName']);_0x113790['length']>0x0&&_0x294de0['setSelection'](_0x113790);for(const _0x55e4a9 of _0x3de2ad)_0x55e4a9['detach']();});},_0x285fa1=(_0x136835,_0x5ef3e3)=>0x1==_0x136835['length']&&0x1==_0x5ef3e3['length']&&_0x136835[0x0]['end']['isEqual'](_0x5ef3e3[0x0]['start']),_0x498a1a=(_0x1cb937,_0x33896b,_0x287941,_0x58abb7)=>Kt(_0x1cb937,_0x33896b,_0x287941,_0x58abb7)?[_0x1cb937,_0x33896b]:Kt(_0x33896b,_0x1cb937,_0x58abb7,_0x287941)?[_0x33896b,_0x1cb937]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1be122),this['_defaultCallbacks']['set']('insertion:discard',_0x35f3c9),this['_defaultCallbacks']['set']('insertion:join',_0x285fa1),this['_defaultCallbacks']['set']('insertion:chain',_0x498a1a),this['_defaultCallbacks']['set']('deletion:accept',_0x35f3c9),this['_defaultCallbacks']['set']('deletion:discard',_0x1be122),this['_defaultCallbacks']['set']('deletion:join',_0x285fa1),this['_defaultCallbacks']['set']('deletion:chain',_0x498a1a),this['_defaultCallbacks']['set']('formatInline:accept',_0xf02895),this['_defaultCallbacks']['set']('formatInline:discard',_0x1be122),this['_defaultCallbacks']['set']('formatInline:join',_0x285fa1),this['_defaultCallbacks']['set']('formatInline:chain',_0x1be122),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf02895),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1be122),this['_defaultCallbacks']['set']('formatBlock:join',_0x285fa1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1be122),this['_defaultCallbacks']['set']('attribute:accept',_0x1be122),this['_defaultCallbacks']['set']('attribute:discard',(_0x369e9a,_0x5a13e7)=>{if(!_0x5a13e7)return;const _0x3de74c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x48015e=>{if(_0x5a13e7['key']==m)for(const _0x41b569 of _0x369e9a){const _0x500012=_0x41b569['start']['nodeAfter'],_0x3c0c2a=_0x5a13e7['oldValue'];_0x48015e['rename'](_0x500012,_0x3c0c2a);}else{if(_0x3de74c['_isBlockAttribute'](_0x5a13e7['key'])){for(const _0x4f1d5c of _0x369e9a)void 0x0!==_0x5a13e7['oldValue']?_0x48015e['setAttribute'](_0x5a13e7['key'],_0x5a13e7['oldValue'],_0x4f1d5c['start']['nodeAfter']):_0x48015e['removeAttribute'](_0x5a13e7['key'],_0x4f1d5c['start']['nodeAfter']);}else{for(const _0x1a7e13 of _0x369e9a)_0x5a13e7['oldValue']?_0x48015e['setAttribute'](_0x5a13e7['key'],_0x5a13e7['oldValue'],_0x1a7e13):_0x48015e['removeAttribute'](_0x5a13e7['key'],_0x1a7e13);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x285fa1);}}function Gt(_0x4206db,_0x4f8aec,_0x4170b0){for(const _0x21cb24 of _0x4f8aec['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x21cb24['root']==_0x21cb24)return!0x1;if(!_0x4170b0['containsItem'](_0x21cb24))return!0x1;if(_0x4206db['isObject'](_0x21cb24)||_0x4206db['isLimit'](_0x21cb24))return!0x0;}return!0x1;}function Ft(_0x1ffb24){return _0x1ffb24['end']['parent']==_0x1ffb24['start']['nodeAfter']&&_0x1ffb24['end']['isAtStart'];}function Lt(_0x5e5b3e,_0x2ae94a,_0x16fec5,_0x169421){const _0x51555d=_0x294566=>!_0x294566['item']['is']('$textProxy')&&!_0x169421['isObject'](_0x294566['item']),_0x774518=_0x5e5b3e['start']['getLastMatchingPosition'](_0x51555d),_0x501f0a=_0x5e5b3e['end']['getLastMatchingPosition'](_0x51555d,{'direction':'backward'});return(!_0x5e5b3e['start']['isEqual'](_0x774518)||!_0x5e5b3e['end']['isEqual'](_0x501f0a))&&(_0x774518['isBefore'](_0x501f0a)?_0x16fec5['updateMarker'](_0x2ae94a,{'range':_0x16fec5['createRange'](_0x774518,_0x501f0a)}):_0x16fec5['removeMarker'](_0x2ae94a),!0x0);}function Jt(_0x1eacf1){return _0xe0c89d(_0x1eacf1);}function Ht(_0x7fe5cf){const _0x4013b5=_0x7fe5cf['start']['nodeAfter'];return _0x4013b5&&_0x4013b5['is']('element');}function qt(_0x53af40,_0x1e25dc){return null==_0x53af40['end']['nodeBefore']&&_0x53af40['end']['parent']==_0x53af40['start']['nodeAfter']?zt(_0x53af40['start']['nodeAfter'],_0x1e25dc):_0x53af40;}function zt(_0x12b4d7,_0x5745a4){const _0x335f8a=_0x5745a4['schema']['isObject'](_0x12b4d7)||_0x5745a4['schema']['isSelectable'](_0x12b4d7);return _0x5745a4['createRange'](_0x5745a4['createPositionAt'](_0x12b4d7,'before'),_0x335f8a?_0x5745a4['createPositionAfter'](_0x12b4d7):_0x5745a4['createPositionAt'](_0x12b4d7,'end'));}function Kt(_0x222258,_0x4c0433,_0x49346c,_0x2a4135){return!!Wt(_0x222258,_0x4c0433)&&_0x49346c['end']['isEqual'](_0x2a4135['start']);}function Wt(_0x584b29,_0x425c2d){if(!_0x584b29['_isDataLoaded']||!_0x425c2d['_isDataLoaded'])return!0x1;const _0xe2ddc=new Set(Object['keys'](_0x584b29['attributes'])),_0x1fd791=new Set(Object['keys'](_0x425c2d['attributes']));if(_0xe2ddc['delete']('groupId'),_0x1fd791['delete']('groupId'),0x0==_0xe2ddc['size']&&0x0==_0x1fd791['size'])return!0x0;if(_0xe2ddc['size']!=_0x1fd791['size'])return!0x1;const _0x191cf8={..._0x584b29['attributes']},_0x35d3d6={..._0x425c2d['attributes']};return delete _0x191cf8['groupId'],delete _0x35d3d6['groupId'],JSON['stringify'](_0x191cf8)==JSON['stringify'](_0x35d3d6);}function Qt(_0x2cf009,_0x3f4688){const _0xca7905=Xt(_0x2cf009['attributes']),_0xaa61bd=Xt(_0x3f4688);if(!_0x2cf009['_isDataLoaded'])return!0x1;for(const _0x52e13d of Object['keys'](_0xaa61bd))if(!_0x549bfd(_0xca7905[_0x52e13d],_0xaa61bd[_0x52e13d]))return!0x1;return!0x0;}function Xt(_0x20255f){const _0x47fe22=Object['assign']({},_0x20255f);return delete _0x47fe22['skipNestingCheck'],delete _0x47fe22['tablePasteChainId'],_0x47fe22;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0xba2e47(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xc49476,_0x2fdf9e,_0x49e545,_0x16a5eb){super(),this['model']=_0x2fdf9e,this['view']=_0x49e545,this['commentThreadController']=_0x16a5eb,this['_editor']=_0xc49476,this['_acceptCommand']=_0xc49476['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xc49476['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2bc0ac,_0x4f7f16)=>_0x2bc0ac||_0x4f7f16),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x49a7aa=>_0x49a7aa&&this['_editor']['model']['canEditAt'](_0x2fdf9e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1cc720=>_0x1cc720&&this['_editor']['model']['canEditAt'](_0x2fdf9e['getRanges']())),this['_pendingAction']=null,_0x49e545['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x49e545,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x49e545,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x49e545,'change:isDirty',()=>{_0x49e545['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 _0x35e5aa=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x35e5aa);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x2cfe10{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5b28f9,_0x327ea6,_0x58a2d0,_0xe1e08){super(_0x5b28f9),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3ee2f0(_0x5b28f9,o(_0x5b28f9,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x327ea6['authoredAt']),this['bind']('authoredAt')['to'](_0x327ea6),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',_0x327ea6,'authoredAt',this,'descriptionParts',(_0x4b491f,_0x536d54,_0x22fd6e)=>{const _0x10b4ae=_0x22fd6e['map'](_0x52b974=>cs(_0x52b974['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4b491f-0x1,_0x327ea6['author']['name'],_0x536d54?_0xe1e08['formatDateTime'](_0x536d54):'',new DOMParser()['parseFromString'](_0x10b4ae,'text/html')['body']['textContent']]);}),this['focusables']=new _0x464e6a(),this['focusTracker']=new _0x4d988c(),this['keystrokes']=new _0x1a7c71(),this['focusCycler']=new _0x4f7572({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x322de3=>_0x322de3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x327ea6,this['_localUser']=_0x58a2d0,this['_config']=_0xe1e08,_0xe1e08['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1eca02(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3193b6}=this['_config'];this['commentsListView']=new _0x3193b6(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',_0x384293=>_0x384293+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3a8248,_0x249a44)=>_0x3a8248||!!_0x249a44);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x555325}=this['_config'],_0x22373a=new _0x555325(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x29fbc2=_0x22373a['commentInputView'];return _0x22373a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x29fbc2,'value',(_0x114a83,_0x5f5368,_0x3e08ea)=>!!_0x3e08ea||_0x114a83&&!_0x5f5368),_0x29fbc2['on']('submit',(_0x532664,_0x2bcc52)=>{this['fire']('addComment',_0x2bcc52),_0x29fbc2['editor']['setData']('');}),_0x29fbc2['on']('cancel',()=>this['focus']()),_0x29fbc2['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x22373a;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x55abcf,_0x5915ff,_0x1b266d,_0x14545c){super(_0x55abcf,_0x5915ff,_0x1b266d,_0x14545c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x50d886=>_0x50d886&&_0x50d886[0x0]?_0x50d886[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x11c5eb,_0x59446c)=>{let _0x5a5a07='';for(const _0x4b0fb2 of _0x11c5eb)_0x5a5a07+='<p>'+cs(_0x4b0fb2['content'],_0x4b0fb2['color'])+'</p>';return _0x59446c?_0x5a5a07:_0x50119c(_0x5a5a07,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x14545c['SuggestionView'](_0x55abcf,_0x5915ff,{'formatDateTime':_0x14545c['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 _0x2f816f=this['bindTemplate'],_0x4233da=[this['suggestionView']];return this['commentsListView']&&_0x4233da['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4233da['push'](this['commentThreadInputView']),_0x4233da['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2f816f['if']('isActive','ck-suggestion-wrapper--active'),_0x2f816f['to']('type',_0x5c1d03=>'ck-suggestion-'+_0x5c1d03),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':_0x2f816f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4233da};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x2cfe10{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4c4f05,_0x5a5216,_0x42870d){super(_0x4c4f05),this['_model']=_0x5a5216,this['_config']=_0x42870d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5a5216),this['acceptButton']=this['_createButton'](o(_0x4c4f05,'Accept\x20suggestion'),_0x4b24fb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4c4f05,'Discard\x20suggestion'),_0x4b24fb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4d22d6(_0x4c4f05,_0x5a5216['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x464e6a([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4d988c(),this['keystrokes']=new _0x1a7c71(),this['focusCycler']=new _0x4f7572({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3c2ade=>_0x3c2ade['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2b0071=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2b0071['innerHTML']=this['description'],this['on']('change:description',(_0x4ba742,_0x149486,_0x19f306)=>{_0x2b0071['innerHTML']=_0x19f306;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4826d5=this['bindTemplate'],_0x56c9d1=[{'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':_0x4826d5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4826d5['to']('authoredAt',_0x597e9c=>this['_config']['formatDateTime'](_0x597e9c))}]}]},{'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']&&_0x56c9d1['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':_0x56c9d1}]};}['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'](_0xbebd10,_0x4bc193,_0x3376e0,_0x465985,_0x7a1d16){const _0x54c96f=new _0x2ece0f(this['locale']);return _0x54c96f['set']({'label':_0xbebd10,'icon':_0x4bc193,'tooltip':!0x0,'tooltipPosition':_0x7a1d16}),_0x54c96f['extendTemplate']({'attributes':{'class':_0x3376e0}}),_0x54c96f['on']('execute',()=>{this['fire'](_0x465985,this['_model']['id']);}),_0x54c96f;}['_setupKeyboardNavigation'](){const _0x137b37=this['element'];this['keystrokes']['listenTo'](_0x137b37);for(const _0xc2e8cd of this['focusables'])this['focusTracker']['add'](_0xc2e8cd['element']),this['keystrokes']['listenTo'](_0xc2e8cd['element']);this['keystrokes']['set']('enter',(_0x54275f,_0x3c0eba)=>{_0x137b37===_0x54275f['target']&&(this['focusCycler']['focusFirst'](),_0x3c0eba());}),this['keystrokes']['set']('esc',(_0xb1a8d8,_0x55ea97)=>{_0x137b37!==_0xb1a8d8['target']&&(this['focus'](),_0x55ea97());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x6a3ec8{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4ea5c3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12201e){super(_0x12201e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x57d9bb=this['editor']['config'];_0x57d9bb['define']('trackChanges.SuggestionThreadView',pe),_0x57d9bb['define']('trackChanges.SuggestionView',fe),_0x57d9bb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x57d9bb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3b04d1,_0x5eb2e4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x44a94e,_0xc55256]of this['_handleControllerBuffer']){const _0x183ba0=this['_suggestionToController']['has'](_0x44a94e);_0x183ba0||_0xc55256?_0x183ba0&&_0xc55256&&this['_destroyController'](_0x44a94e):this['_initializeController'](_0x44a94e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3b04d1,_0x5eb2e4);}['init'](){const _0x3f4c99=this['editor'],_0x53b630=_0x3f4c99['plugins']['get']('TrackChangesEditing'),_0x2d8420=_0x3f4c99['plugins']['get']('Annotations'),_0x2d290a=_0x3f4c99['plugins']['get']('EditorAnnotations'),_0x2a5da8=_0x3f4c99['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2d290a['addSourceCollector'](()=>{const _0x49a0ad=[];for(const [_0x26da8a,_0x66adaf]of Array['from'](this['_suggestionToController'])){const _0x53961f=_0x26da8a['getAllAdjacentSuggestions'](),_0x431ec2=[];for(const _0x36718f of _0x53961f){if(!_0x36718f['isInContent'])continue;if(_0x36718f['isMultiRange']){_0x431ec2['push'](..._0x36718f['getRanges']());continue;}const _0x10a2c8=_0x36718f['getFirstRange']();if(_0x431ec2['length']>0x0){const _0x4afa97=_0x431ec2[0x0]['getJoined'](_0x10a2c8);if(_0x4afa97){_0x431ec2[0x0]=_0x4afa97;continue;}}_0x431ec2['push'](_0x10a2c8);}_0x49a0ad['push']([_0x66adaf['view'],_0x431ec2]);}return _0x49a0ad;}),this['listenTo'](_0x53b630,'suggestionLoaded',(_0x2ea7c2,_0x4ddd43)=>{this['listenTo'](_0x4ddd43,'change:previous',(_0x137e97,_0x275e67,_0x4bd375,_0x107544)=>{_0x4ddd43['isInContent']&&(null==_0x4bd375?(this['_updateController'](_0x107544['head']),this['_handleSuggestionControllerDelayed'](_0x4ddd43,!0x1)):(this['_updateController'](_0x4bd375['head']),null==_0x107544&&this['_handleSuggestionControllerDelayed'](_0x4ddd43,!0x0)));}),null!==_0x4ddd43['previous']?this['_updateController'](_0x4ddd43['head']):this['_handleSuggestionControllerDelayed'](_0x4ddd43,!0x1);}),this['listenTo'](_0x53b630,'suggestionUnloaded',(_0x3ff850,_0x1d581a,_0x57e5a8)=>{this['stopListening'](_0x1d581a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1d581a),this['_suggestionToController']['has'](_0x1d581a)&&this['_destroyController'](_0x1d581a),_0x57e5a8&&this['_updateController'](_0x57e5a8['head']);}),this['listenTo'](_0x53b630,'suggestionChanged',(_0x5f1f02,_0x8cb75f)=>{this['_updateController'](_0x8cb75f);}),this['listenTo'](_0x2d8420,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2a5da8,'addComment',(_0x167294,{threadId:_0x56da0a,isFromAdapter:_0x89385d})=>{if(_0x89385d||!_0x53b630['hasSuggestion'](_0x56da0a))return;const _0x5731a0=_0x53b630['getSuggestion'](_0x56da0a);this['_suggestionToController']['get'](_0x5731a0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b5462=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13c6df;for(const _0xec5423 in _0x1b5462){const _0x101ca0=_0xec5423,_0xae2ebd=_0x1b5462[_0x101ca0];if('trackChangesLicenseKeyValid'==_0xae2ebd||'trackChangesLicenseKeyInvalid'==_0xae2ebd||'trackChangesLicenseKeyExpired'==_0xae2ebd||'trackChangesLicenseKeyDomainLimit'==_0xae2ebd||'trackChangesLicenseKeyNotAllowed'==_0xae2ebd||'trackChangesLicenseKeyEvaluationLimit'==_0xae2ebd||'trackChangesLicenseKeyTrialLimit'==_0xae2ebd||'trackChangesLicenseKeyUsageLimit'==_0xae2ebd){delete _0x1b5462[_0x101ca0],_0x13c6df=_0xae2ebd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x13c6df&&_0x1b5462['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x13c6df&&_0x1b5462['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x13c6df&&_0x1b5462['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x13c6df&&_0x1b5462['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x13c6df&&_0x1b5462['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x13c6df&&_0x1b5462['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x13c6df&&_0x1b5462['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x30fe04=this['editor']['plugins']['get']('Annotations'),_0x3e06ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ec25f=Array['from'](_0x30fe04['activeAnnotations'],_0x1e4b71=>_0x1e4b71['innerView'])['filter'](_0x51ede4=>this['_viewToController']['has'](_0x51ede4)),_0x44cf4e=[];for(const _0x7c74b2 of _0x2ec25f){const _0x5b9fd4=this['_viewToController']['get'](_0x7c74b2)['model']['getAllAdjacentSuggestions']();_0x44cf4e['push'](..._0x5b9fd4['reduce']((_0x4a91e5,_0x59a304)=>[..._0x4a91e5,..._0x59a304['getMarkerNames']()],[]));}_0x3e06ee['activeMarkers']=_0x44cf4e;}['_addUIComponentsToFactory'](){const _0x4ccb51=this['editor'],_0x438ae3=_0x4ccb51['locale'],_0x96dc20=o(_0x438ae3,'Track\x20changes'),_0xa4a6c3=new _0x22187e([{'type':'switchbutton','model':new _0x51bf2b({'withText':!0x0,'isToggleable':!0x0,'label':_0x96dc20,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x51bf2b({'withText':!0x0,'label':o(_0x438ae3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51bf2b({'withText':!0x0,'label':o(_0x438ae3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51bf2b({'withText':!0x0,'label':o(_0x438ae3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51bf2b({'withText':!0x0,'label':o(_0x438ae3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4ccb51['plugins']['has']('TrackChangesPreview')&&_0xa4a6c3['addMany']([{'type':'separator'},{'type':'button','model':new _0x51bf2b({'withText':!0x0,'label':o(_0x438ae3,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2bdaba of _0xa4a6c3)if(ke(_0x2bdaba)){const _0x182087=_0x4ccb51['commands']['get'](_0x2bdaba['model']['commandName']);_0x2bdaba['model']['bind']('isOn','isEnabled')['to'](_0x182087,'value','isEnabled');}_0x4ccb51['ui']['componentFactory']['add']('trackChanges',_0x4d46e1=>this['_createToolbarButton'](_0x4d46e1,_0xa4a6c3,_0x96dc20)),_0x4ccb51['ui']['componentFactory']['add']('menuBar:trackChanges',_0xdfbd0=>this['_createMenuBarMenu'](_0xdfbd0,_0xa4a6c3,_0x96dc20));}['_createToolbarButton'](_0x19f5ae,_0x42a084,_0xf72d7b){const _0x38ce90=_0x386ba0(_0x19f5ae,_0x52d343),_0x10550e=this['editor']['commands']['get']('trackChanges');_0x38ce90['buttonView']['set']({'tooltip':_0xf72d7b,'label':_0xf72d7b,'icon':we}),_0x38ce90['buttonView']['bind']('isOn')['to'](_0x10550e,'value'),_0x38ce90['buttonView']['on']('execute',()=>{_0x10550e['execute'](),this['editor']['editing']['view']['focus']();}),_0x598724(_0x38ce90,_0x42a084,{'role':'menu'});const _0x11d47b=[];for(const _0x4c98f8 of _0x42a084)ke(_0x4c98f8)&&_0x11d47b['push'](this['editor']['commands']['get'](_0x4c98f8['model']['commandName']));const _0x5bc0e0=_0x38ce90['buttonView'];return _0x5bc0e0['actionView']['unbind']('isEnabled'),_0x5bc0e0['arrowView']['unbind']('isEnabled'),_0x5bc0e0['actionView']['bind']('isEnabled')['to'](_0x10550e,'isEnabled'),_0x5bc0e0['arrowView']['bind']('isEnabled')['toMany'](_0x11d47b,'isEnabled',(..._0x58c725)=>_0x58c725['some'](_0x3aee22=>_0x3aee22)),_0x38ce90['on']('execute',_0xe2d0f2=>{this['editor']['execute'](_0xe2d0f2['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x38ce90;}['_createMenuBarMenu'](_0x24ef0a,_0x2ae8ce,_0x100152){const _0xeb5833=new _0x2a1817(_0x24ef0a),_0x27b38a=this['editor']['commands']['get']('trackChanges');_0xeb5833['buttonView']['set']({'label':_0x100152,'icon':we});const _0x2fab96=new _0x7c5054(_0x24ef0a);for(const _0x55cc5b of _0x2ae8ce){if('separator'==_0x55cc5b['type']){_0x2fab96['items']['add'](new _0x244709(_0x24ef0a));continue;}const _0x420582=new _0x9e551e(_0x24ef0a,_0xeb5833),_0x187a9c=new _0xce26ad(_0x24ef0a),_0xebaea3=_0x55cc5b['model'];_0x187a9c['bind'](...Object['keys'](_0xebaea3))['to'](_0xebaea3),_0x187a9c['delegate']('execute')['to'](_0xeb5833),_0x187a9c['on']('execute',()=>{this['editor']['execute'](_0xebaea3['commandName']),this['editor']['editing']['view']['focus']();}),_0x420582['children']['add'](_0x187a9c),_0x2fab96['items']['add'](_0x420582);}return _0xeb5833['bind']('isEnabled')['to'](_0x27b38a,'isEnabled'),_0xeb5833['panelView']['children']['add'](_0x2fab96),_0xeb5833;}['_initializeController'](_0x20a6e1){const _0x19ca25=this['editor'],_0x428249=_0x19ca25['config'],_0x29914a=_0x19ca25['plugins']['get']('Annotations'),_0xa48f92=_0x19ca25['plugins']['get']('CommentsRepository'),_0x4e7e63=_0x19ca25['plugins']['get']('EditorAnnotations'),_0x4927cb=_0x19ca25['plugins']['get'](_0x4ea5c3)['me'],_0x4b2b6d=_0x428249['get']('trackChanges')['SuggestionThreadView'],_0x23af91=_0x428249['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x32e7b6,CommentThreadInputView:_0x332b1d}=_0x19ca25['plugins']['get']('CommentsUI');let _0x45eb44,_0x529375,_0x29aa75;this['_annotationViews']['has'](_0x20a6e1['id'])?(_0x529375=this['_annotationViews']['get'](_0x20a6e1['id']),_0x45eb44=_0x529375['mainView']):(_0x45eb44=new _0x4b2b6d(_0x19ca25['locale'],_0x20a6e1,_0x4927cb,{'disableComments':this['_disableComments'],'editorConfig':{..._0x428249['get']('comments.editorConfig'),'licenseKey':_0x428249['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x428249['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x428249['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x428249['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1fd6c7(_0x428249['get']('locale')),'CommentView':_0x428249['get']('comments')['CommentView'],'CommentsListView':_0x32e7b6,'CommentThreadInputView':_0x332b1d,'SuggestionView':_0x23af91}),_0x45eb44['suggestionView']['acceptButton']['on']('execute',()=>{_0x19ca25['editing']['view']['focus']();}),_0x45eb44['suggestionView']['discardButton']['on']('execute',()=>{_0x19ca25['editing']['view']['focus']();}),_0x529375=_0x29914a['createAnnotationView'](this['editor']['locale'],_0x45eb44),_0x529375['bind']('isDirty')['to'](_0x45eb44,'isDirty'),_0x529375['bind']('length')['to'](_0x45eb44),_0x529375['bind']('type')['to'](_0x45eb44,'type',_0x10c3c6=>'suggestion-'+_0x10c3c6),_0x45eb44['on']('escape',()=>{_0x29aa75['fire']('escape');}),this['_annotationViews']['set'](_0x20a6e1['id'],_0x529375));const _0x5606bc=_0xa48f92['createCommentThreadController'](_0x20a6e1['commentThread'],_0x45eb44),_0x198373=new Ce(_0x19ca25,_0x20a6e1,_0x45eb44,_0x5606bc),_0x5353ae=_0x20a6e1['getAllAdjacentSuggestions']()['filter'](_0x27237b=>_0x27237b['isInContent']);_0x45eb44['descriptionParts']=_0x19ca25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5353ae),this['_suggestionToController']['set'](_0x20a6e1,_0x198373),this['_viewToController']['set'](_0x45eb44,_0x198373),_0x29aa75=_0x29914a['createAnnotation']({'view':_0x529375,'target':()=>{const _0x170418=[],_0x3eddd9=_0x20a6e1['getAllAdjacentSuggestions']()['filter'](_0x219bfe=>_0x219bfe['isInContent']);for(const _0x4f91a4 of _0x3eddd9)_0x170418['push'](..._0x4f91a4['getMarkers']());return _0x43b79b(_0x19ca25['editing'],_0x170418);},'type':()=>'suggestion-'+_0x198373['view']['type']}),_0xa48f92['_bindAnnotationToEditors'](_0x45eb44,_0x29aa75),_0x29914a['add'](_0x29aa75),_0x4e7e63['registerAnnotation'](_0x29aa75);}['_destroyController'](_0x3cfe1a){const _0x10e875=this['editor']['plugins']['get']('CommentsRepository'),_0xbfab9d=this['editor']['plugins']['get']('Annotations'),_0x139583=this['_suggestionToController']['get'](_0x3cfe1a),_0x2098a6=_0x139583['view'],_0x277f8a=_0xbfab9d['getByInnerView'](_0x2098a6);_0x10e875['_unbindEditors'](_0x2098a6),_0x277f8a&&_0xbfab9d['remove'](_0x277f8a),this['_suggestionToController']['delete'](_0x3cfe1a),this['_viewToController']['delete'](_0x2098a6),_0x139583['destroy']();}['_updateController'](_0x3e7c24){if(!_0x3e7c24['isInContent']||!this['_suggestionToController']['has'](_0x3e7c24))return;const _0x253e24=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fbea1=this['_suggestionToController']['get'](_0x3e7c24),_0x369059=_0x3e7c24['getAllAdjacentSuggestions']();_0x2fbea1['view']['descriptionParts']=_0x253e24['descriptionFactory']['getDescriptions'](_0x369059);}['destroy'](){for(const _0x32814d of this['_suggestionToController']['keys']())this['_destroyController'](_0x32814d);for(const _0x162685 of this['_annotationViews']['values']())_0x162685['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x14bf9f){return'model'in _0x14bf9f;}class k extends _0x6a3ec8{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1c75a0){this['editor']['plugins']['get'](p)['adapter']=_0x1c75a0;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x25fddb){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x25fddb);}['getSuggestions']({skipNotAttached:_0x23f282=!0x1,toJSON:_0x1c950e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x23f282,'toJSON':_0x1c950e});}['getSuggestion'](_0x7815a3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x7815a3);}}const w=['Pagination'];class T extends _0x6a3ec8{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4ca398=this['editor'];if(_0x4ca398['config']['define']('trackChangesData.editorCreator',_0x475814=>{const _0x1a52c0=_0x4ca398['model']['document']['getRootNames']()['reduce']((_0x5473b1,_0x10ff36)=>(_0x5473b1[_0x10ff36]='',_0x5473b1),{});return _0x4ca398['constructor']['create'](_0x1a52c0,_0x475814);}),'function'!=typeof _0x4ca398['config']['get']('trackChangesData')['editorCreator'])throw new _0x523434('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1c145a){return N(this['editor'],!0x0,_0x1c145a);}['getDataWithDiscardedSuggestions'](_0x2421f3){return N(this['editor'],!0x1,_0x2421f3);}}class D extends _0x6a3ec8{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d1197){function _0x2ab02d(_0xafc970){return _0xafc970['map'](_0x48e0a7=>String['fromCharCode'](_0x48e0a7))['join']('');}super(_0x4d1197),this['result']='end',_0x4d1197[_0x2ab02d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ab02d([0x76,0x69,0x65,0x77])][_0x2ab02d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ab02d([0x61,0x75,0x74,0x6f]),_0x4d1197[_0x2ab02d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2ab02d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ab02d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2ab02d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2ab02d([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x4525ee){return void 0x0!==_0x4525ee['getRootsAttributes'];}async function N(_0x383687,_0x919490,_0x82213c){const _0x291bb5=_0x37f847(_0x383687,w);_0x291bb5['plugins']['push'](p,D),_0x291bb5['rootsAttributes']=Fe(_0x383687)?_0x383687['getRootsAttributes']():void 0x0;const _0x2dc4e0=document['createDocumentFragment'](),_0x17fb6f=_0x383687['config']['get']('trackChangesData')['editorCreator'],_0x3fc7b7=await _0x17fb6f(_0x291bb5,()=>function(_0x527af1){const _0x317511=document['createElement']('div');return _0x527af1['appendChild'](_0x317511),_0x317511;}(_0x2dc4e0));!function(_0x432b86,_0x57b2a7){const _0x45221d=_0x432b86['model']['document']['getRootNames']()['reduce']((_0x438c2e,_0x534d65)=>(_0x438c2e[_0x534d65]=_0x432b86['data']['get']({'rootName':_0x534d65}),_0x438c2e),{}),_0x5c8f1b=_0x432b86['plugins']['get']('Users')['users']['map'](_0x10548f=>({'id':_0x10548f['id'],'name':_0x10548f['name']})),_0x43b669=_0x432b86['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1ea53a=_0x432b86['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3dfe52=_0x57b2a7['plugins']['get']('Users'),_0x1753c2=_0x57b2a7['plugins']['get']('TrackChangesEditing'),_0x150d45=_0x57b2a7['plugins']['get']('CommentsRepository');for(const _0x4d5bae of _0x150d45['getCommentThreads']())_0x4d5bae['remove']();for(const _0x382870 of _0x5c8f1b)_0x3dfe52['getUser'](_0x382870['id'])||_0x3dfe52['addUser'](_0x382870);_0x3dfe52['me']||_0x3dfe52['useAnonymousUser']();for(const _0x1a4794 of _0x1ea53a)_0x150d45['addCommentThread'](_0x1a4794);for(const _0x1c8461 of _0x43b669)_0x1753c2['addSuggestionData'](_0x1c8461);_0x57b2a7['data']['set'](_0x45221d);}(_0x383687,_0x3fc7b7),_0x3fc7b7['execute'](_0x919490?'acceptAllSuggestions':'discardAllSuggestions');const _0x52c9bc=Fe(_0x3fc7b7)?_0x3fc7b7['getFullData'](_0x82213c):_0x3fc7b7['data']['get'](_0x82213c);return await _0x3fc7b7['destroy'](),_0x52c9bc;}class Me extends _0x2cfe10{['options'];constructor(_0x208afb,_0x4fe72f){super(_0x208afb),this['options']=_0x4fe72f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x5e5325,_0x59ab24){if(!this['element'])return;const _0x43f3b3=[];for(const [_0x565ea9,_0xba6a21]of _0x5e5325){const _0x10d7cc=document['createElement']('div');_0x10d7cc['setAttribute']('data-ck-root-name',_0x565ea9),_0x10d7cc['className']=_0xba6a21['classes']+'\x20ck-track-changes-preview__root-container',_0x10d7cc['innerHTML']=_0xba6a21['content'],_0x43f3b3['push'](_0x10d7cc);}_0x59ab24(this['element'],_0x43f3b3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x4aa979){super(_0x4aa979),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1d1418=this['editor'],_0x12fc17=_0x1d1418['locale'],_0x1bff61=_0x1d1418['plugins']['get']('Dialog');let _0x36e2df;const _0x4d80e9=function(_0x30a699){const _0x20183f={};if('editables'in _0x30a699['ui']['view']){for(const [_0x12e4f5,_0x3d4038]of Object['entries'](_0x30a699['ui']['view']['editables']))_0x20183f[_0x12e4f5]=_0x3d4038['element'];}else _0x20183f[_0x30a699['model']['document']['getRootNames']()[0x0]]=_0x30a699['ui']['view']['editable']['element'];return _0x20183f;}(_0x1d1418),_0x83ddd2=function(_0x20753f){let _0x1c4620=0x0;for(const _0x48f2e0 of Object['values'](_0x20753f))_0x1c4620=Math['max'](_0x1c4620,_0x48f2e0['getBoundingClientRect']()['width']);let _0x2985c8=0x0;for(const _0x1661bc of Object['values'](_0x20753f))_0x2985c8+=_0x1661bc['getBoundingClientRect']()['height'];const _0x7e5ffd=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x351ff6=Math['min'](_0x2985c8,_0x7e5ffd);return{'width':_0x1c4620,'height':_0x351ff6};}(_0x4d80e9);_0x1bff61['show']({'id':'finalContentPreview','title':o(_0x12fc17,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x12fc17,{'dialogRects':_0x83ddd2}),'onHide':()=>{_0x36e2df['detachFromDom']();},'onShow':()=>{_0x1d1418['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x36549a=>{const _0x44eb4c=this['_standarizeRootsData'](_0x36549a,_0x1d1418,_0x4d80e9);_0x1bff61['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x44eb4c,_0x1d1418['config']['get']('trackChanges.preview.renderFunction'));}),_0x36e2df=new _0x362513(_0x12fc17,[_0x1bff61['view']]),_0x36e2df['attachToDom'](),_0x36e2df['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1d1418['once']('destroy',()=>{_0x36e2df['detachFromDom']();});const _0x5bdbad=_0x1bff61['view']['headerView']['class'];_0x1bff61['view']['headerView']['class']=_0x5bdbad?_0x5bdbad+'\x20ck-reset_all':'ck-reset_all',_0x1bff61['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1bff61['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2a2411=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x87016d=_0x2a2411['previewMode'],_0x559247={};if('$labels'===_0x87016d){for(const _0x2ec4ee of _0x2a2411['getMergeFieldsIds']())_0x559247[_0x2ec4ee]=_0x2a2411['getLabel'](_0x2ec4ee)||_0x2ec4ee;}else{const _0x1828fe='$defaultValues'===_0x87016d?_0x2a2411['getDefaultValues']():_0x2a2411['getDataSetValues'](_0x87016d,!0x0);for(const _0x6c55e5 of Object['entries'](_0x1828fe)){const [_0x49a34b,_0x1c1236]=_0x6c55e5;_0x559247[_0x49a34b]=null!==_0x1c1236?_0x1c1236:_0x2a2411['getLabel'](_0x49a34b)||_0x49a34b;}}return{'mergeFieldsData':_0x559247};}['_standarizeRootsData'](_0x5267c3,_0xc85b4c,_0x35f351){let _0x8427db;if('string'==typeof _0x5267c3){const _0x4adca3=_0xc85b4c['model']['document']['getRootNames']()[0x0];_0x8427db={[_0x4adca3]:_0x5267c3};}else _0x8427db=_0x5267c3;const _0x3572a3=this['_fixMediaEmbeds'](_0x8427db,_0xc85b4c),_0x10cf9f=function(_0x239b73,_0x2b0482){for(const [_0x435484,_0x542c31]of _0x239b73)_0x542c31['classes']=_0x2b0482[_0x435484]['classList']['value']['replace']('ck-focused','');return _0x239b73;}(this['_sortRoots'](_0xc85b4c)['reduce']((_0x46c9fa,_0x4b91a1)=>(_0x46c9fa['push']([_0x4b91a1,{'content':_0x3572a3[_0x4b91a1],'classes':''}]),_0x46c9fa),[]),_0x35f351);return _0x10cf9f;}['_fixMediaEmbeds'](_0x1b74b4,_0x46ae55){if(!_0x46ae55['plugins']['has']('MediaEmbedEditing'))return _0x1b74b4;const _0x144b05=_0x46ae55['plugins']['get']('MediaEmbedEditing');for(const [_0x4a7cce,_0x2d1a7e]of Object['entries'](_0x1b74b4)){const _0x470bc3=document['createElement']('div');_0x470bc3['innerHTML']=_0x2d1a7e,(_0x470bc3['querySelectorAll']('figure.media')['forEach'](_0x8e68b8=>{const _0x131c0b=_0x8e68b8['querySelector']('oembed');if(_0x131c0b){const _0x281917=_0x131c0b['getAttribute']('url');if(_0x281917){const _0x250ca0=_0x144b05['registry']['getMediaViewElement'](new _0x15c496(_0x46ae55['editing']['view']['document']),_0x281917,{'elementName':'','renderForEditingView':!0x0}),_0x32e6e3=document['createElement']('div');_0x32e6e3['classList']['add']('ck-media__wrapper'),_0x250ca0['render'](_0x32e6e3,_0x46ae55['editing']['view']['domConverter']),_0x131c0b['replaceWith'](_0x32e6e3);}}}),_0x1b74b4[_0x4a7cce]=_0x470bc3['innerHTML']);}return _0x1b74b4;}['_sortRoots'](_0xb52f71){if(!function(_0x38244f){return void 0x0!==_0x38244f['getRootsAttributes'];}(_0xb52f71))return _0xb52f71['model']['document']['getRootNames']();const _0x54a9dd=[],_0x59d869=new Map();for(const _0x38f1bd of _0xb52f71['model']['document']['getRootNames']()){const _0x5c1c5c=_0xb52f71['editing']['view']['getDomRoot'](_0x38f1bd)['getClientRects']()['item'](0x0);_0x54a9dd['push'](_0x38f1bd),_0x59d869['set'](_0x38f1bd,_0x5c1c5c);}return _0x54a9dd['sort']((_0x520ae3,_0x5a5999)=>{const _0x513073=_0x59d869['get'](_0x520ae3),_0x308d77=_0x59d869['get'](_0x5a5999);return _0x513073['y']-_0x308d77['y']||_0x513073['x']-_0x308d77['x'];}),_0x54a9dd;}}class te extends _0x6a3ec8{static get['requires'](){return[T,_0x7fa237];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x164794){super(_0x164794),_0x164794['commands']['add']('previewFinalContent',new re(this['editor'])),_0x164794['config']['define']('trackChanges.preview.renderFunction',(_0x55f4a3,_0x393591)=>{for(const _0x2fffd1 of _0x393591)_0x55f4a3['appendChild'](_0x2fffd1);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as Yt,Plugin as _0xa4b53f,PendingActions as _0x2f23c0,icons as _0x146320}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x11aaec,ObservableMixin as _0x28b3e7,uid as _0xf688c7,priorities as _0x2435d0,insertToPriorityArray as _0x337c6b,logWarning as _0x578fad,getEnvKeystrokeText as _0x3cca6d,FocusTracker as _0x2c535c,KeystrokeHandler as _0x411b8d,Collection as _0xbd48a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3e4cac,View as _0x33b69b,ViewCollection as _0x5ba900,FocusCycler as _0x3a69b4,ViewModel as _0x56f17e,createDropdown as _0x12c985,SplitButtonView as _0x120e2f,addListToDropdown as _0x2136e8,MenuBarMenuView as _0x922c1d,MenuBarMenuListView as _0xceb2eb,ListSeparatorView as _0x297364,MenuBarMenuListItemView as _0x29da40,MenuBarMenuListItemButtonView as _0x23292a,BodyCollection as _0x187050,Dialog as _0x32ba8b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x110e12,hashObject as _0x1c2190,surroundingMarkersDetector as _0x5c679e,FOCUS_ANNOTATION_KEYSTROKE as _0x17554f,AriaDescriptionView as _0xde46fc,setupThreadKeyboardNavigation as _0x3df98c,trimHtml as _0xce5d8e,UserView as _0x28de63,LateFocusButtonView as _0x5e2872,getDateTimeFormatter as _0x11931c,getAllMarkersDomElementsSorted as _0x300bcd,sanitizeEditorConfig as _0x3f9cf9}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x7e3eca,LiveRange as _0x4f46eb,LivePosition as _0x38a415,DowncastWriter as _0x1145a5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5cfe2f,toWidget as _0x517cc2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x272af8,set as _0x3e29d3,isEqual as _0x483e20,unset as _0x5cdb86,omit as Vt}from'lodash-es';import{Delete as _0x3bbbf9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x30a68b,ShiftEnter as _0x9d657b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x3ebb28,_0x6d5964){super(_0x3ebb28),this['_enabledCommands']=_0x6d5964,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x1dcc76 of this['editor']['commands']['commands']())_0x1dcc76['affectsData']&&!this['_enabledCommands']['has'](_0x1dcc76)&&_0x1dcc76['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4fc695 of this['editor']['commands']['commands']())_0x4fc695['affectsData']&&!this['_enabledCommands']['has'](_0x4fc695)&&_0x4fc695['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x2c11fc,_0x544d1d){super(_0x2c11fc),this['_suggestions']=_0x544d1d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x14ebf3){const _0x338795=this['_suggestions']['get'](_0x14ebf3);if(!_0x338795)throw new _0x11aaec('track-changes-accept-suggestion-not-found',this);const _0x3c6265=_0x338795['getRanges']();this['editor']['model']['canEditAt'](_0x3c6265)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x338795);}}class R extends Yt{['_suggestions'];constructor(_0x47a3eb,_0x45170f){super(_0x47a3eb),this['_suggestions']=_0x45170f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x39321b){const _0x28e8e8=this['_suggestions']['get'](_0x39321b);if(!_0x28e8e8)throw new _0x11aaec('track-changes-discard-suggestion-not-found',this);const _0xca10d=_0x28e8e8['getRanges']();this['editor']['model']['canEditAt'](_0xca10d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x28e8e8);}}function cs(_0x4bbfdf,_0x1bd6fc){let _0x5edb7e='';return _0x5edb7e+=_0x4bbfdf['split']('*')['map']((_0x34abd1,_0x2b5f57)=>_0x2b5f57%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x34abd1)+'</span>':nn(_0x34abd1))['join'](''),_0x1bd6fc&&(_0x5edb7e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1bd6fc['value']+'\x22\x20title=\x22'+_0x1bd6fc['title']+'\x22></span>'),_0x5edb7e;}function nn(_0x56d02f){const _0xeeb40c=document['createElement']('span');return _0xeeb40c['innerText']=_0x56d02f,_0xeeb40c['innerHTML'];}function Zt(_0x336779){return _0x336779['sort']((_0x47ad79,_0x310c6f)=>'deletion'==_0x47ad79['type']&&'deletion'!=_0x310c6f['type']?-0x1:'deletion'!=_0x47ad79['type']&&'deletion'==_0x310c6f['type']?0x1:0x0);}function to(_0x237010,_0x1a21ca){let _0x5c87bd,_0x2e774f=0x0;const _0x3badf7=[],_0x4ab627=_0x1a21ca['schema'];for(;_0x2e774f<_0x237010['length'];){const _0x2203a2=_0x237010[_0x2e774f],_0x31580d=_0x237010[_0x2e774f+0x1];_0x5c87bd||(_0x5c87bd=_0x1a21ca['createPositionBefore'](_0x2203a2)),on(_0x1a21ca,_0x2203a2,_0x31580d)||(_0x3badf7['push'](_0x1a21ca['createRange'](_0x5c87bd,_0x4ab627['isObject'](_0x2203a2)?_0x1a21ca['createPositionAfter'](_0x2203a2):_0x1a21ca['createPositionAt'](_0x2203a2,'end'))),_0x5c87bd=null),_0x2e774f++;}return _0x3badf7;}function on(_0x515aa9,_0x3c83fd,_0x17e5ea){if(!_0x17e5ea)return!0x1;const _0x515686=_0x515aa9['createPositionAfter'](_0x3c83fd),_0x135148=_0x515aa9['createPositionBefore'](_0x17e5ea);return _0x515686['isTouching'](_0x135148);}function ts(_0x1bb509,_0x1f4ac6,_0x30061b){for(;_0x30061b['length'];){const _0x5da59f=_0x30061b['splice'](0x0,0x64);_0x1bb509['change'](()=>{for(const _0x2733a8 of _0x5da59f)_0x2733a8['isInContent']&&_0x1f4ac6['execute'](_0x2733a8['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x5cf58f,_0x24c2ce,_0xdceeff){super(_0x5cf58f),this['_command']=_0x24c2ce,this['_suggestions']=_0xdceeff,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x193a29=Array['from'](this['_suggestions']['values']())['some'](_0x2e47cc=>_0x2e47cc['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x193a29;}['execute'](){const _0x2aa7ca=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x108499 of _0x2aa7ca){const _0x19e9d6=_0x108499['getRanges']();if(!this['editor']['model']['canEditAt'](_0x19e9d6))return;}ts(this['editor']['model'],this['_command'],_0x2aa7ca);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3ddba2,_0x125cc5,_0x4b1b13){super(_0x3ddba2),this['_command']=_0x125cc5,this['_suggestions']=_0x4b1b13,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x54818d=this['editor']['model']['document']['selection'],_0xda12c4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x594cd4,_0x4f0fa8){const _0x17fb36=Array['from'](_0x594cd4['getRanges']()),_0x14b40e=new Set();for(const _0x260d6c of _0x4f0fa8)if(_0x260d6c['isInContent']){for(const _0x411f8e of _0x17fb36)for(const _0x1c0acc of _0x260d6c['getRanges']())(_0x411f8e['isIntersecting'](_0x1c0acc)||_0x594cd4['isCollapsed']&&!_0x260d6c['isMultiRange']&&_0x260d6c['next']&&_0x1c0acc['end']['isTouching'](_0x411f8e['start']))&&_0x14b40e['add'](_0x260d6c);}return _0x14b40e;}(_0x54818d,_0xda12c4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5f1417=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x95c2fd of _0x5f1417){const _0x4b6dc5=_0x95c2fd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b6dc5))return;}ts(this['editor']['model'],this['_command'],_0x5f1417);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x28b3e7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x6309,_0x981165){super(),this['id']=_0x981165['id'],this['type']=_0x981165['type'],this['subType']=_0x981165['subType']||null,this['author']=_0x981165['author'],this['creator']=_0x981165['creator']||_0x981165['author'],this['isExternal']=Boolean(_0x981165['attributes']&&_0x981165['attributes']['@external']),this['data']=null,this['_model']=_0x6309,this['_onAccept']=_0x981165['onAccept'],this['_onDiscard']=_0x981165['onDiscard'],this['_onAttributesChange']=_0x981165['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x981165['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x5928f8=this;for(;_0x5928f8['previous'];)_0x5928f8=_0x5928f8['previous'];return _0x5928f8;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x2fc270){this['_markerNames']['add'](_0x2fc270);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x23b1f0=>this['_model']['markers']['get'](_0x23b1f0))['filter'](_0x4466ea=>_0x4466ea);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3be6bb=>{for(const _0x508c06 of this['getMarkers']())_0x3be6bb['removeMarker'](_0x508c06);}),this['_markerNames']['clear']();}['removeMarker'](_0x10ad3a){this['_model']['change'](_0x4d92cd=>{_0x4d92cd['removeMarker'](_0x10ad3a);}),this['_markerNames']['delete'](_0x10ad3a);}['addRange'](_0xff1833){const _0x48caa1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x48caa1),this['_model']['change'](_0xf4f216=>{_0xf4f216['addMarker'](_0x48caa1,{'range':_0xff1833,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x30b97a){for(const _0x46f94b of this['getRanges']())if(_0x46f94b['isIntersecting'](_0x30b97a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x32c0c0=>_0x32c0c0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x27b8b6,_0x273ec3)=>[..._0x27b8b6,..._0x273ec3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xfabec8=this['getRanges']();if(0x1!=_0xfabec8['length'])return null;const _0x4f10d4=_0xfabec8[0x0],_0x2ecd5e=_0x4f10d4['start']['nodeAfter'],_0x58df82=_0x4f10d4['end']['nodeBefore'];return _0x2ecd5e instanceof _0x7e3eca?_0x2ecd5e!=_0x58df82?null:_0x2ecd5e:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x2031b6=[];let _0x1d80a1=this['head'];for(;_0x1d80a1;)_0x2031b6['push'](_0x1d80a1),_0x1d80a1=_0x1d80a1['next'];return _0x2031b6;}['setAttribute'](_0x3ca6ae,_0x3f0159){const _0xeca2ed=_0x272af8(this['attributes']);_0x3e29d3(_0xeca2ed,_0x3ca6ae,_0x3f0159),_0x483e20(_0xeca2ed,this['attributes'])||(this['attributes']=_0xeca2ed,this['_onAttributesChange'](_0xeca2ed));}['removeAttribute'](_0x49be3c){const _0x3fe613=_0x272af8(this['attributes']);_0x5cdb86(_0x3fe613,_0x49be3c),_0x483e20(_0x3fe613,this['attributes'])||(this['attributes']=_0x3fe613,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0xf688c7()['substr'](0x1,0x5);}}function o(_0x1e5de7,_0x1755a4,_0x2350e6){const _0x47a48b=_0x1e5de7['t'],t=_0x1e5de7['t'];switch(_0x1755a4){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x2350e6);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2350e6);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2350e6);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2350e6);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2350e6);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x2350e6);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2350e6);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2350e6);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2350e6);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2350e6);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2350e6);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2350e6);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2350e6);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2350e6);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2350e6);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2350e6);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2350e6);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2350e6);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2350e6);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2350e6);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2350e6);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2350e6);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2350e6);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2350e6);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x2350e6);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2350e6);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2350e6);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2350e6);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2350e6);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2350e6);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x2350e6);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2350e6);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2350e6);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2350e6);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2350e6);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x2350e6);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2350e6);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x2350e6);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2350e6);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2350e6);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x2350e6);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2350e6);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x2350e6);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2350e6);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2350e6);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x2350e6);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2350e6);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x47a48b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2350e6);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x47a48b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2350e6);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2350e6);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x2350e6);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x2350e6);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x2350e6);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1755a4;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xf22364,_0x240c8a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xf22364,this['_locale']=_0x240c8a;}['getDescriptions'](_0x2f5eec){const _0x50e833=[],_0x23f07d=new Set(),_0x1b5fdc=new Set();for(let _0x287d45=0x0;_0x287d45<_0x2f5eec['length'];_0x287d45++){const _0x4313ff=_0x2f5eec[_0x287d45];if(!_0x4313ff['isInContent'])continue;const _0x4e1816=this['_handleCustomCallbackDescription'](_0x4313ff);if(_0x4e1816){if(null!=_0x4313ff['subType']){if(_0x23f07d['has'](_0x4313ff['subType']))continue;_0x23f07d['add'](_0x4313ff['subType']);}_0x50e833['push'](_0x4e1816);}else{if('attribute'!=_0x4313ff['type'])'insertion'!=_0x4313ff['type']&&'deletion'!=_0x4313ff['type']||this['_handleInsertRemoveSuggestionDescription'](_0x50e833,_0x4313ff,_0x2f5eec[_0x287d45+0x1]);else{const _0x1a8ee0=_0x4313ff['data']['key'];if(_0x1b5fdc['has'](_0x1a8ee0))continue;_0x1b5fdc['add'](_0x4313ff['data']['key']),_0x1a8ee0==m?this['_handleRenameSuggestionDescription'](_0x50e833,_0x4313ff):this['_handleAttributeSuggestionDescription'](_0x50e833,_0x4313ff);}}}return this['_resolveDescriptionItems'](_0x50e833);}['registerDescriptionCallback'](_0x2a0e64){this['_customCallbacks']['push'](_0x2a0e64);}['registerElementLabel'](_0x23f043,_0x3b7f73,_0x35fca7=_0x2435d0['normal']){'function'==typeof _0x23f043?_0x337c6b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x23f043,'label':_0x3b7f73,'priority':_0x35fca7}):this['_itemLabels']['set'](_0x23f043,_0x3b7f73);}['registerAttributeLabel'](_0x5176b9,_0x4a3707){this['_attributeLabels']['set'](_0x5176b9,_0x4a3707);}['getItemLabel'](_0x35494e,_0x550f6b=0x1){let _0x44bece;for(const _0xeb22ff of this['_itemLabelsCallbacks'])if(_0xeb22ff['matchingCallback'](_0x35494e)){_0x44bece=_0xeb22ff['label'];break;}return _0x44bece||(_0x44bece=this['_itemLabels']['get'](_0x35494e['name'])),_0x44bece?_0x44bece(_0x550f6b):0x1!==_0x550f6b?_0x550f6b+'\x20'+_0x35494e['name']+'s':''+_0x35494e['name'];}['_addDescriptionItems'](_0x174e4d,_0x4b2b82){const _0x123e5a=_0x4b2b82['getFirstRange']()['getWalker'](),_0x5d3ea2='insertion'==_0x4b2b82['type']?'add':'remove';for(const _0x1bfe32 of _0x123e5a){const _0x4f17dc=_0x1bfe32['item'],_0x391cfb=_0x174e4d[_0x174e4d['length']-0x1];if(_0x4f17dc['is']('$textProxy'))_0x391cfb&&_0x391cfb['type']['indexOf']('Container')>-0x1&&_0x174e4d['pop'](),_0x391cfb&&'text'==_0x391cfb['type']?_0x391cfb[_0x5d3ea2]+=_0x4f17dc['data']:_0x174e4d['push']({'type':'text','add':'add'==_0x5d3ea2?_0x4f17dc['data']:'','remove':'remove'==_0x5d3ea2?_0x4f17dc['data']:''});else{if(this['_schema']['isObject'](_0x4f17dc)){const _0x19709f=_0x4f17dc;if(_0x391cfb&&_0x391cfb['type']['indexOf']('Container')>-0x1&&_0x174e4d['pop'](),'elementEnd'==_0x1bfe32['type'])continue;_0x391cfb&&_0x391cfb['type']==_0x5d3ea2+'Object'&&_0x391cfb['element']['name']==_0x19709f['name']?_0x391cfb['quantity']++:_0x174e4d['push']({'type':_0x5d3ea2+'Object','element':_0x19709f,'quantity':0x1}),_0x123e5a['skip'](_0x44afa6=>!('elementEnd'==_0x44afa6['type']&&_0x44afa6['item']==_0x4f17dc));}else{if(this['_schema']['checkChild'](_0x4f17dc,'$text')||_0x4f17dc['is']('element','softBreak')){const _0x965033=_0x4f17dc;if('add'==_0x5d3ea2&&'elementStart'==_0x1bfe32['type']||'remove'==_0x5d3ea2&&'elementEnd'==_0x1bfe32['type'])continue;if(_0x391cfb&&-0x1==_0x391cfb['type']['indexOf']('Container')){'text'==_0x391cfb['type']&&(_0x391cfb[_0x5d3ea2]+='\x0a');continue;}let _0x4e7586;if(_0x4e7586='add'==_0x5d3ea2?_0x965033['nextSibling']&&!this['_schema']['isObject'](_0x965033['nextSibling'])?_0x965033['nextSibling']:null:_0x965033['previousSibling']&&!this['_schema']['isObject'](_0x965033['previousSibling'])?_0x965033['previousSibling']:null,_0x965033['isEmpty']||_0x4e7586&&_0x4e7586['isEmpty']){const _0x4db218=_0x4e7586&&_0x4e7586['isEmpty']?_0x4e7586:_0x965033;_0x391cfb&&_0x391cfb['type']==_0x5d3ea2+'EmptyContainer'&&_0x391cfb['element']['name']==_0x4db218['name']?_0x391cfb['quantity']++:_0x174e4d['push']({'type':_0x5d3ea2+'EmptyContainer','element':_0x4db218,'quantity':0x1});}else _0x174e4d['push']({'type':_0x5d3ea2+'Container','element':_0x965033});}}}}}['_resolveDescriptionItems'](_0x1ac6d7){const _0x18aace=this['_locale'],_0x3bf59d=[],_0x5da50=[],_0x54c29c=[];for(const _0xb411ca of _0x1ac6d7)switch(_0xb411ca['type']){case'text':if(_0xb411ca['add']=_0xb411ca['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xb411ca['remove']=_0xb411ca['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xb411ca['add']&&''!=_0xb411ca['remove']){_0x3bf59d['push']({'type':'replace','content':o(_0x18aace,'REPLACE_TEXT',['\x22'+_0xb411ca['remove']+'\x22','\x22'+_0xb411ca['add']+'\x22'])});continue;}if(null!=_0xb411ca['add']['match'](/^ +$/)){_0x3bf59d['push']({'type':'insertion','content':o(_0x18aace,'*Insert:*\x20%0',o(_0x18aace,'ELEMENT_SPACE',_0xb411ca['add']['length']))});continue;}if(null!=_0xb411ca['remove']['match'](/^ +$/)){_0x3bf59d['push']({'type':'deletion','content':o(_0x18aace,'*Remove:*\x20%0',o(_0x18aace,'ELEMENT_SPACE',_0xb411ca['remove']['length']))});continue;}if(''!=_0xb411ca['add']){_0x3bf59d['push']({'type':'insertion','content':o(_0x18aace,'*Insert:*\x20%0','\x22'+_0xb411ca['add']+'\x22')});continue;}_0x3bf59d['push']({'type':'deletion','content':o(_0x18aace,'*Remove:*\x20%0','\x22'+_0xb411ca['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3bf59d['push']({'type':'insertion','content':o(_0x18aace,'*Insert:*\x20%0',this['getItemLabel'](_0xb411ca['element'],_0xb411ca['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3bf59d['push']({'type':'deletion','content':o(_0x18aace,'*Remove:*\x20%0',this['getItemLabel'](_0xb411ca['element'],_0xb411ca['quantity']))});continue;case'addContainer':_0x3bf59d['push']({'type':'insertion','content':o(_0x18aace,'*Split:*\x20%0',this['getItemLabel'](_0xb411ca['element'],_0xb411ca['quantity']))});continue;case'removeContainer':_0x3bf59d['push']({'type':'deletion','content':o(_0x18aace,'*Merge:*\x20%0',this['getItemLabel'](_0xb411ca['element'],_0xb411ca['quantity']))});continue;case'addFormat':_0x5da50['push'](_0xb411ca['key']);continue;case'removeFormat':_0x54c29c['push'](_0xb411ca['key']);continue;default:_0x3bf59d['push'](_0xb411ca);}if(_0x5da50['length']){const _0x5c4a99=_0x5da50['map'](_0x43dc30=>this['_attributeLabels']['has'](_0x43dc30)?this['_attributeLabels']['get'](_0x43dc30):_0x43dc30)['join'](',\x20');_0x3bf59d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5c4a99)});}if(_0x54c29c['length']){const _0xa596a=_0x54c29c['map'](_0x117217=>this['_attributeLabels']['has'](_0x117217)?this['_attributeLabels']['get'](_0x117217):_0x117217)['join'](',\x20');_0x3bf59d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xa596a)});}return _0x3bf59d;}['_handleCustomCallbackDescription'](_0x59e72f){for(const _0x3884c8 of this['_customCallbacks']){const _0x284386=_0x3884c8(_0x59e72f);if(_0x284386&&'type'in _0x284386)return _0x284386;}}['_handleAttributeSuggestionDescription'](_0x3524e8,_0x593eeb){const _0x50cb15=_0x593eeb['data'],_0x10953a=void 0x0===_0x50cb15['newValue']?'removeFormat':'addFormat';_0x3524e8['push']({'type':_0x10953a,'key':_0x50cb15['key']});}['_handleRenameSuggestionDescription'](_0xc50f68,_0x158840){_0xc50f68['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x158840['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x37d7cc,_0x464186,_0x565111){if(this['_addDescriptionItems'](_0x37d7cc,_0x464186),_0x565111&&_0x565111['getFirstRange']()&&!_0x464186['getFirstRange']()['end']['isEqual'](_0x565111['getFirstRange']()['start'])){const _0x1ed467=_0x37d7cc[_0x37d7cc['length']-0x1],_0x88790a='insertion'==_0x464186['type']?'add':'remove';_0x1ed467&&'text'==_0x1ed467['type']&&(_0x1ed467[_0x88790a]+='\x0a');}}}class U extends _0xa4b53f{['afterInit'](){const _0x233b93=this['editor'],_0x2bb709=_0x233b93['plugins']['get']('TrackChangesEditing');_0x233b93['commands']['get']('showAIAssistant')&&_0x2bb709['enableCommand']('showAIAssistant');}}class V extends _0xa4b53f{['afterInit'](){const _0xb2639c=this['editor'],_0xd91a1d=_0xb2639c['locale'];if(!_0xb2639c['plugins']['has']('AlignmentEditing'))return;const _0x2fc70c=_0xb2639c['plugins']['get']('TrackChangesEditing');_0x2fc70c['enableDefaultAttributesIntegration']('alignment'),_0x2fc70c['registerBlockAttribute']('alignment'),_0x2fc70c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xd91a1d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x498934=this['editor'],_0x234676=_0x498934['locale'];_0x498934['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3be098=>{if('formatBlock'!=_0x3be098['type'])return;const {data:_0x35e6b2}=_0x3be098;if(_0x35e6b2&&'alignment'==_0x35e6b2['commandName']){const _0x50e05f=_0x35e6b2['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x234676,'*Format:*\x20%0',function(_0x3ac4a2){switch(_0x3ac4a2){case'left':return o(_0x234676,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x234676,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x234676,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x234676,'FORMAT_JUSTIFY_TEXT');}}(_0x50e05f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xa4b53f{['afterInit'](){const _0x5ae9ab=this['editor'],_0x1b2b6b=_0x5ae9ab['plugins']['get']('TrackChangesEditing'),_0x404bb8=_0x5ae9ab['locale'];for(const _0x3c546d of ti){if(!_0x5ae9ab['plugins']['has'](_0x3c546d))continue;const _0x541d7d=_0x3c546d['slice'](0x0,-0x7)['toLowerCase'](),_0x4616fa='FORMAT_'+_0x541d7d['toUpperCase']();_0x1b2b6b['enableDefaultAttributesIntegration'](_0x541d7d),_0x1b2b6b['registerInlineAttribute'](_0x541d7d),_0x1b2b6b['descriptionFactory']['registerAttributeLabel'](_0x541d7d,o(_0x404bb8,_0x4616fa));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59bcda=this['editor'],_0x12c8ba=_0x59bcda['locale'],_0x56a1a8=_0x59bcda['plugins']['get']('TrackChangesEditing');function _0x46bff7(_0x303914,_0x277120){_0x56a1a8['descriptionFactory']['registerDescriptionCallback'](_0x4dd5a9=>{if('formatInline'!=_0x4dd5a9['type'])return;const {data:_0x26f2ab}=_0x4dd5a9;return _0x26f2ab&&_0x26f2ab['commandName']===_0x303914?_0x26f2ab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12c8ba,'*Format:*\x20%0',_0x277120)}:{'type':'format','content':o(_0x12c8ba,'*Remove\x20format:*\x20%0',_0x277120)}:void 0x0;});}_0x46bff7('bold',o(_0x12c8ba,'FORMAT_BOLD')),_0x46bff7('italic',o(_0x12c8ba,'FORMAT_ITALIC')),_0x46bff7('underline',o(_0x12c8ba,'FORMAT_UNDERLINE')),_0x46bff7('code',o(_0x12c8ba,'FORMAT_CODE')),_0x46bff7('strikethrough',o(_0x12c8ba,'FORMAT_STRIKETHROUGH')),_0x46bff7('subscript',o(_0x12c8ba,'FORMAT_SUBSCRIPT')),_0x46bff7('superscript',o(_0x12c8ba,'FORMAT_SUPERSCRIPT'));}}class F extends _0xa4b53f{['afterInit'](){const _0x5c6b59=this['editor'],_0x11c1cb=_0x5c6b59['locale'];if(!_0x5c6b59['plugins']['has']('BlockQuoteEditing'))return;const _0x44bfb1=_0x5c6b59['plugins']['get']('TrackChangesEditing'),_0x42dde8=this['editor']['commands']['get']('blockQuote');_0x44bfb1['enableCommand']('blockQuote',(_0x51feee,_0x180564={})=>{const _0x34abb6=this['editor']['model']['document']['selection'],_0x2c87b3=_0x180564&&void 0x0!==_0x180564['forceValue']?_0x180564['forceValue']:!_0x42dde8['value'];let _0x480e8c=[];if(_0x2c87b3){const _0x5717e3=Array['from'](_0x34abb6['getSelectedBlocks']())['filter'](_0x453691=>oo(_0x453691)||function(_0x4e6bb3,_0x30d1f4){const _0x230880=_0x30d1f4['checkChild'](_0x4e6bb3['parent'],'blockQuote'),_0x41c4d3=_0x30d1f4['checkChild'](['$root','blockQuote'],_0x4e6bb3);return _0x230880&&_0x41c4d3;}(_0x453691,this['editor']['model']['schema']));_0x480e8c=to(_0x5717e3,_0x5c6b59['model']);}else{const _0x25e0a5=Array['from'](_0x34abb6['getSelectedBlocks']())['filter'](_0x592589=>oo(_0x592589));_0x480e8c=to(_0x25e0a5,_0x5c6b59['model']);}_0x5c6b59['model']['change'](()=>{for(const _0xd3415c of _0x480e8c)_0x44bfb1['markBlockFormat'](_0xd3415c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2c87b3}]});});}),_0x44bfb1['descriptionFactory']['registerDescriptionCallback'](_0x330bff=>{const {data:_0x1eabfe}=_0x330bff;if(_0x1eabfe&&'blockQuote'==_0x1eabfe['commandName']){const _0x38ebcd=o(_0x11c1cb,'ELEMENT_BLOCK_QUOTE');return _0x1eabfe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11c1cb,'*Set\x20format:*\x20%0',_0x38ebcd)}:{'type':'format','content':o(_0x11c1cb,'*Remove\x20format:*\x20%0',_0x38ebcd)};}});}}function oo(_0x3b0426){return'blockQuote'==_0x3b0426['parent']['name'];}class L extends _0xa4b53f{['afterInit'](){const _0x1012a4=this['editor'],_0x48ee15=_0x1012a4['locale'],_0x4d365d=_0x1012a4['plugins']['get']('TrackChangesEditing');_0x1012a4['plugins']['has']('BookmarkEditing')&&(_0x4d365d['enableCommand']('insertBookmark'),_0x4d365d['enableDefaultAttributesIntegration']('updateBookmark'),_0x4d365d['registerBlockAttribute']('bookmarkId'),_0x4d365d['descriptionFactory']['registerDescriptionCallback'](_0x430fa2=>{if('insertion'!=_0x430fa2['type']&&'deletion'!=_0x430fa2['type']&&'attribute'!=_0x430fa2['type'])return;const _0x4723fb=_0x430fa2['getContainedElement']();if(null==_0x4723fb)return;if(!_0x4723fb['is']('element','bookmark'))return;const _0x5554a9=_0x4723fb['getAttribute']('bookmarkId');if('insertion'==_0x430fa2['type'])return{'type':'insertion','content':o(_0x48ee15,'*Insert:*\x20%0','\x22'+_0x5554a9+'\x22\x20'+o(_0x48ee15,'ELEMENT_BOOKMARK'))};if('deletion'==_0x430fa2['type'])return{'type':'deletion','content':o(_0x48ee15,'*Remove:*\x20%0','\x22'+_0x5554a9+'\x22\x20'+o(_0x48ee15,'ELEMENT_BOOKMARK'))};const {data:_0x3da3eb}=_0x430fa2;if(!_0x3da3eb||'bookmarkId'!=_0x3da3eb['key'])return;return{'type':'format','content':o(_0x48ee15,'*Set\x20bookmark:*\x20%0','\x22'+_0x3da3eb['newValue']+'\x22')};}));}}class J extends _0xa4b53f{['afterInit'](){const _0x2cded3=this['editor'];_0x2cded3['plugins']['has']('CaseChange')&&(_0x2cded3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2cded3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2cded3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0xa4b53f{['afterInit'](){const _0x34ede4=this['editor'];_0x34ede4['commands']['get']('ckbox')&&_0x34ede4['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0xa4b53f{['afterInit'](){const _0x761b54=this['editor'];if(!_0x761b54['plugins']['has']('CodeBlock'))return;const _0x504346=_0x761b54['plugins']['get']('TrackChangesEditing'),_0x44b617=_0x761b54['locale'],_0x301b1d=_0x761b54['config']['get']('codeBlock')['languages'],_0x1ea9c9=_0x761b54['commands']['get']('codeBlock');_0x504346['enableCommand']('indentCodeBlock'),_0x504346['enableCommand']('outdentCodeBlock'),_0x504346['enableCommand']('codeBlock',(_0x4daeca,_0x3b448a={})=>{const _0x5b034e=_0x761b54['model'],_0x204893=_0x761b54['model']['document']['selection'],_0x523e99=_0x3b448a&&void 0x0!==_0x3b448a['forceValue']?_0x3b448a['forceValue']:!_0x1ea9c9['value'];let _0x14f5ec;_0x3b448a['language']||(_0x3b448a['language']=_0x301b1d[0x0]['language']),_0x14f5ec=_0x523e99?Array['from'](_0x204893['getSelectedBlocks']())['filter'](_0x112f90=>eo(_0x112f90)||function(_0x447a4c,_0xb3b1e3){if(_0x447a4c['is']('rootElement')||_0xb3b1e3['isLimit'](_0x447a4c))return!0x1;return _0xb3b1e3['checkChild'](_0x447a4c['parent'],'codeBlock');}(_0x112f90,_0x5b034e['schema'])):Array['from'](_0x204893['getSelectedBlocks']())['filter'](_0x1d3e25=>eo(_0x1d3e25));const _0x96fc42=to(_0x14f5ec,_0x5b034e);_0x5b034e['change'](()=>{for(const _0xdce852 of _0x96fc42)_0x504346['markBlockFormat'](_0xdce852,{'commandName':'codeBlock','commandParams':[{..._0x3b448a,'forceValue':_0x523e99}],'formatGroupId':'blockName'});});}),(_0x504346['descriptionFactory']['registerElementLabel']('codeBlock',_0x26ae34=>o(_0x44b617,'ELEMENT_CODE_BLOCK',_0x26ae34)),_0x504346['descriptionFactory']['registerDescriptionCallback'](_0x512bda=>{if('formatBlock'!=_0x512bda['type'])return;const _0x980978=_0x44b617['t'],{data:_0x55fca0}=_0x512bda;if(!_0x55fca0||'codeBlock'!=_0x55fca0['commandName'])return;const _0x30b0e1=_0x55fca0['commandParams'][0x0]['language'],_0x480beb=_0x980978(_0x301b1d['find'](_0x327125=>_0x327125['language']===_0x30b0e1)['label'])['toLowerCase']();return _0x55fca0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44b617,'*Set\x20format:*\x20%0',o(_0x44b617,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x480beb+')')}:{'type':'format','content':o(_0x44b617,'*Remove\x20format:*\x20%0',o(_0x44b617,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5b5bb8){return'codeBlock'==_0x5b5bb8['name'];}class z extends _0xa4b53f{['afterInit'](){const _0x4c828d=this['editor'];if(!_0x4c828d['plugins']['has']('CommentsEditing'))return;_0x4c828d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5b096e,_0x3533ae,_0x19fa20){const _0x3a5d98=[];for(const _0x2e193f of _0x3533ae['getItems']())_0x2e193f['hasAttribute'](_0x5b096e)&&_0x3a5d98['push'](_0x19fa20['createRangeOn'](_0x2e193f));return _0x3a5d98;}function De(_0x4b6e92,_0x2b9e98,{showActiveMarker:_0x424b86=!0x0}={}){const _0x3ac555=_0x4b6e92['plugins']['get']('TrackChangesEditing');return(_0x22e128,_0x53dcd4,_0x4fcc56)=>{if(!_0x4fcc56['consumable']['test'](_0x53dcd4['markerRange'],_0x22e128['name']))return;const _0x4363be=_0x53dcd4['markerRange']['getWalker'](),_0x367039=_0x53dcd4['markerRange']['start'],_0x3850b8=_0x4b6e92['model']['schema'];let _0x3452f8=null,_0x1d374a=null,_0xd17b3f=!0x1,_0x22c904=!0x1;for(const _0x10d7a2 of _0x4363be){const _0x5b08bc=_0x10d7a2['item'];_0xd17b3f=_0xd17b3f||_0x3850b8['isContent'](_0x5b08bc);const _0x442168=_0x4fcc56['mapper']['toViewElement'](_0x5b08bc);if(_0x442168&&_0x442168['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x10d7a2['type']&&(_0x3850b8['isBlock'](_0x5b08bc)&&!_0x3850b8['isLimit'](_0x5b08bc)&&(_0x5b08bc['nextSibling']||_0x367039['isAtEnd']?_0x3452f8&&_0x3452f8['parent']==_0x5b08bc||(_0x3452f8=_0x5b08bc,_0x5d87c6(_0x10d7a2['previousPosition']),_0x22c904=!0x0):_0x1d374a=_0x1d374a||_0x10d7a2['previousPosition']));}function _0x5d87c6(_0x5c2b2f){const {authorId:_0xa68223}=_0x3ac555['_splitMarkerName'](_0x53dcd4['markerName']),_0x20ae09=_0x4fcc56['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b9e98,'data-author-id':_0xa68223}),_0x1c76d4=_0x4fcc56['mapper']['toViewPosition'](_0x5c2b2f);_0x424b86&&_0x3ac555['activeMarkers']['includes'](_0x53dcd4['markerName'])&&_0x4fcc56['writer']['addClass']('ck-suggestion-marker--active',_0x20ae09),_0x4fcc56['writer']['insert'](_0x1c76d4,_0x20ae09),_0x4fcc56['mapper']['bindElementToMarker'](_0x20ae09,_0x53dcd4['markerName']);}_0xd17b3f||_0x22c904||!_0x1d374a||_0x5d87c6(_0x1d374a);};}class K extends _0xa4b53f{static get['requires'](){return[_0x3bbbf9];}['init'](){const _0x4b6e22=this['editor'],_0x50f19f=_0x4b6e22['plugins']['get']('TrackChangesEditing');_0x50f19f['enableCommand']('delete');const _0x3f6d6c=_0x4b6e22['commands']['get']('deleteForward');_0x50f19f['enableCommand']('deleteForward',(_0xea0d52,_0x367fa5={})=>{const _0x3f671b=_0x4b6e22['model']['createSelection'](_0x4b6e22['model']['document']['selection']);_0x3f671b['isCollapsed']&&_0x4b6e22['model']['modifySelection'](_0x3f671b,{'direction':'forward','unit':_0x367fa5['unit']});const _0x7725bf=_0x3f671b['getFirstRange'](),_0x129a6b=_0x4f46eb['fromRange'](_0x7725bf);let _0x1aad0c;_0xea0d52(_0x367fa5),_0x1aad0c='$graveyard'==_0x129a6b['root']['rootName']?_0x4b6e22['model']['createRange'](_0x7725bf['start']):_0x4b6e22['model']['createRange'](_0x129a6b['start'],_0x129a6b['end']),_0x129a6b['detach'](),_0x4b6e22['model']['enqueueChange'](_0x3f6d6c['buffer']['batch'],_0x2fe4d8=>{_0x3f6d6c['buffer']['lock'](),_0x2fe4d8['setSelection'](_0x2fe4d8['createRange'](_0x1aad0c['end'])),_0x3f6d6c['buffer']['unlock']();});}),_0x4b6e22['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x4b6e22,'merge'),{'priority':'high'}),_0x4b6e22['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4c859d,_0xcd01a2,_0x10872b)=>{_0x10872b['options']['showSuggestionHighlights']&&De(_0x4b6e22,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4c859d,_0xcd01a2,_0x10872b);},{'priority':'high'}),_0x4b6e22['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x292dc5,_0x2a27b5,_0x5120c6)=>{const _0x8318f2=_0x5120c6['mapper']['markerNameToElements'](_0x2a27b5['markerName']);if(_0x8318f2){for(const _0x4e54e4 of _0x8318f2)_0x4e54e4['is']('uiElement')&&(_0x5120c6['mapper']['unbindElementFromMarkerName'](_0x4e54e4,_0x2a27b5['markerName']),_0x5120c6['writer']['remove'](_0x4e54e4));}},{'priority':'high'});}}class W extends _0xa4b53f{['afterInit'](){const _0x4118a1=this['editor'];if(!_0x4118a1['plugins']['has']('ListEditing'))return;const _0x49e1c=_0x4118a1['locale'],_0x382fbe=_0x4118a1['plugins']['get']('TrackChangesEditing'),_0x4ad249=_0x4118a1['plugins']['has']('TodoListEditing'),_0x190871=!!_0x4118a1['config']['get']('list.multiBlock');function _0x4f5d3d(_0x5b2208){return{'type':'format','content':''+o(_0x49e1c,'*Set\x20format:*\x20%0',_0x5b2208)};}function _0x529fc9(_0x80ad4c){return{'type':'format','content':''+o(_0x49e1c,'*Remove\x20format:*\x20%0',_0x80ad4c)};}_0x382fbe['enableDefaultAttributesIntegration']('numberedList'),_0x382fbe['enableDefaultAttributesIntegration']('bulletedList'),_0x382fbe['enableDefaultAttributesIntegration']('customNumberedList'),_0x382fbe['enableDefaultAttributesIntegration']('customBulletedList'),_0x382fbe['enableDefaultAttributesIntegration']('indentList'),_0x382fbe['enableDefaultAttributesIntegration']('outdentList'),_0x382fbe['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x382fbe['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x382fbe['registerBlockAttribute']('listItemId'),_0x382fbe['registerBlockAttribute']('listType'),_0x382fbe['registerBlockAttribute']('listIndent'),_0x190871&&(_0x382fbe['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x382fbe['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4ad249&&(_0x382fbe['enableDefaultAttributesIntegration']('todoList'),_0x382fbe['enableDefaultAttributesIntegration']('checkTodoList'),_0x382fbe['registerBlockAttribute']('todoListChecked'),_0x382fbe['descriptionFactory']['registerDescriptionCallback'](_0x46f6d4=>{const {data:_0xfb201d}=_0x46f6d4;if(_0xfb201d&&'todoListChecked'==_0xfb201d['key'])return{'type':'format','content':_0xfb201d['newValue']?o(_0x49e1c,'*Check\x20item*'):o(_0x49e1c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2ab683=>{if(_0x2ab683['batch']['isUndo'])return!0x1;let _0x39733c=!0x1;const _0x2e9dc3=_0x382fbe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d37b8=>'todoListChecked'===_0x382fbe['_getAttributeKey'](_0x3d37b8));for(const _0x30ff0f of _0x2e9dc3){'todo'!=_0x30ff0f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x382fbe['_findSuggestions'](_0x30ff0f['getFirstRange'](),'attribute')['find'](_0x5cedbb=>'listType'===_0x382fbe['_getAttributeKey'](_0x5cedbb['suggestion']))||(_0x2ab683['removeMarker'](_0x30ff0f['getFirstMarker']()),_0x39733c=!0x0));}return _0x39733c;})),_0x382fbe['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x49e1c,'FORMAT_INDENT'));const _0x6da670={'type':'format','content':''};_0x382fbe['descriptionFactory']['registerDescriptionCallback'](_0xcacf4c=>{const {data:_0x21cf7b}=_0xcacf4c;if(!_0x21cf7b||'listType'!=_0x21cf7b['key'])return;let _0x38fb7c=_0xcacf4c['head'];for(;_0x38fb7c;){if(_0x38fb7c['data']&&(('listStyle'==_0x38fb7c['data']['key']||'listMarkerStyle'==_0x38fb7c['data']['key'])&&(_0x38fb7c['data']['newValue']&&'default'!=_0x38fb7c['data']['newValue']||'default'!=_0x38fb7c['data']['oldValue']&&!_0x21cf7b['newValue'])||!_0x190871&&_0x38fb7c['data']['key']==m))return _0x6da670;_0x38fb7c=_0x38fb7c['next'];}if(null==_0x21cf7b['newValue'])switch(_0x21cf7b['oldValue']){case'bulleted':return _0x529fc9(o(_0x49e1c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x529fc9(o(_0x49e1c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x529fc9(o(_0x49e1c,'ELEMENT_TODO_LIST'));}switch(_0x21cf7b['newValue']){case'bulleted':return _0x4f5d3d(o(_0x49e1c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f5d3d(o(_0x49e1c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f5d3d(o(_0x49e1c,'ELEMENT_TODO_LIST'));}}),_0x382fbe['descriptionFactory']['registerDescriptionCallback'](_0x59ffdd=>{const {data:_0x5c9702}=_0x59ffdd;if(_0x5c9702&&'listIndent'==_0x5c9702['key'])return null==_0x5c9702['newValue']||null==_0x5c9702['oldValue']&&0x0==_0x5c9702['newValue']?_0x6da670:void 0x0;}),_0x382fbe['descriptionFactory']['registerDescriptionCallback'](_0x333150=>{if('attribute'!=_0x333150['type'])return;const {data:_0x13750b}=_0x333150;if(!_0x13750b||'listItemId'!=_0x13750b['key'])return;const _0x7099cf=Te(_0x333150);return'newValue'==_0x7099cf?{'type':'format','content':o(_0x49e1c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x7099cf?{'type':'format','content':o(_0x49e1c,'*Split:*\x20list\x20item')}:_0x6da670;}),_0x4118a1['model']['document']['registerPostFixer'](_0x902294=>this['listItemIdFixer'](_0x902294)),_0x4118a1['model']['document']['registerPostFixer'](_0x1f0dcb=>this['noTrackChangesFixer'](_0x1f0dcb)),_0x4118a1['model']['document']['on']('change:data',(_0x1d0e7c,_0x2f1adc)=>{if(_0x2f1adc['isUndo']||!_0x2f1adc['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x6c075){if(_0x6c075['batch']['isUndo']||!_0x6c075['batch']['isLocal'])return!0x1;let _0x57dcfb=!0x1;const _0x28c061=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21952c=>_0x21952c['data']&&'listItemId'==_0x21952c['data']['key'])['filter'](_0x1d2404=>_0x1d2404['data']['newValue']&&_0x1d2404['data']['oldValue']);for(const _0x7474d0 of _0x28c061)Te(_0x7474d0)||(_0x6c075['removeMarker'](_0x7474d0['getFirstMarker']()),_0x57dcfb=!0x0);return _0x57dcfb;}['noTrackChangesFixer'](_0x3663b7){if(_0x3663b7['batch']['isUndo']||!_0x3663b7['batch']['isLocal'])return!0x1;const _0x237a78=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x237a78['trackChangesCommand']['value'])return!0x1;let _0x189428=!0x1;const _0x233441=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xea46d1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x17c94a=>'attribute'==_0x17c94a['type'])['filter'](_0x34fa57=>_0x233441['includes'](_0x34fa57['attributeKey']));if(0x0==_0xea46d1['length'])return _0x189428;for(const _0x19eaae of _0xea46d1){const _0x4515a8=_0x237a78['_findSuggestions'](_0x19eaae['range'],'attribute')['filter'](_0x48e762=>!_0x48e762['meta']['isNextTo'])['map'](_0x2a7f68=>_0x2a7f68['suggestion'])['filter'](_0x23ac85=>{const _0x1fd4f0=_0x237a78['_getAttributeKey'](_0x23ac85);return _0x233441['includes'](_0x1fd4f0);});if(_0x4515a8['length']){for(const _0x31c5d8 of _0x4515a8)_0x3663b7['removeMarker'](_0x31c5d8['getFirstMarker']());_0x189428=!0x0;}}return _0x189428;}['assureChains'](){const _0x588102=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29e613=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x17942e;const _0x4c8f41=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x371cf4=>{if(_0x371cf4['data']['oldRange']||!_0x371cf4['data']['newRange'])return null;if(!_0x371cf4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x39ef17}=_0x588102['_splitMarkerName'](_0x371cf4['name']);if(!_0x588102['hasSuggestion'](_0x39ef17))return null;const _0x15b911=_0x588102['getSuggestion'](_0x39ef17);return _0x29e613['includes'](_0x15b911['data']['key']);})['map'](_0x32cc1a=>{const {id:_0x17f612}=_0x588102['_splitMarkerName'](_0x32cc1a['name']),_0x4f3250=_0x588102['getSuggestion'](_0x17f612);return _0x17942e=_0x4f3250['attributes']['groupId'],_0x4f3250['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4c8f41['size'])return;const _0x4aefbd=_0x588102['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52e2c2=>'attribute'==_0x52e2c2['type']&&_0x52e2c2['data']&&_0x29e613['includes'](_0x52e2c2['data']['key'])&&_0x52e2c2['attributes']['groupId']!=_0x17942e)['map'](_0x3259ce=>({'listItem':_0x3259ce['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3259ce['attributes']['groupId']})),_0x3edc96=new Set();for(const {groupId:_0x1c1660,listItem:_0x12a620}of _0x4aefbd)_0x4c8f41['has'](_0x12a620)&&_0x3edc96['add'](_0x1c1660);for(const _0x4d2bd7 of _0x588102['getSuggestions']())_0x3edc96['has'](_0x4d2bd7['attributes']['groupId'])&&_0x4d2bd7['setAttribute']('groupId',_0x17942e);}['_supportLegacySuggestions'](){const _0x3faa4f=this['editor'],_0x21c8b5=_0x3faa4f['locale'],_0x2760ba=_0x3faa4f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2760ba['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3c4f96,_0xcff5ba){const _0xf0794c=[];for(let _0x4f72ab of _0x3c4f96)_0x4f72ab['start']['nodeAfter']===_0x4f72ab['end']['parent']&&(_0x4f72ab=_0x3faa4f['model']['createRange'](_0x3faa4f['model']['createPositionAt'](_0x4f72ab['start']['nodeAfter'],0x0))),_0xf0794c['push'](_0x4f72ab);_0x3faa4f['model']['change'](_0x2fa9e2=>{const _0x37600d=_0x3faa4f['model']['document']['selection'],_0x2e41b7=Array['from'](_0x37600d['getRanges']())['map'](_0x4f97bd=>_0x4f46eb['fromRange'](_0x4f97bd));_0x2fa9e2['setSelection'](_0xf0794c),_0x3faa4f['commands']['get'](_0xcff5ba['commandName'])['refresh'](),_0xcff5ba['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3faa4f['execute'](_0xcff5ba['commandName'],..._0xcff5ba['commandParams']),_0x2fa9e2['setSelection'](_0x2e41b7);for(const _0x5bd996 of _0x2e41b7)_0x5bd996['detach']();});}),_0x2760ba['descriptionFactory']['registerElementLabel'](function(_0x459931){const _0x276bf8=!_0x3faa4f['model']['schema']['isObject'](_0x459931),_0x3ea004=_0x459931['previousSibling'],_0x32710b=_0x459931['nextSibling'],_0x1daece=_0x459931['getAttribute']('listItemId'),_0x169796=!_0x3ea004||_0x3ea004['getAttribute']('listItemId')!==_0x1daece,_0x371891=!_0x32710b||_0x32710b['getAttribute']('listItemId')!==_0x1daece;return _0x276bf8&&Boolean(_0x1daece)&&_0x169796&&_0x371891;},_0x24ca4e=>o(_0x21c8b5,'ELEMENT_LIST_ITEM',_0x24ca4e));}['_registerLegacyDescription'](){const _0x1effe9=this['editor'],_0x97d072=_0x1effe9['locale'];function _0x37dec4(_0x16612a){const _0x1f1042=_0x1effe9['commands']['get']('bulletedList')['value'],_0xec52f4=_0x1effe9['commands']['get']('numberedList')['value'];return'numberedList'===_0x16612a?_0x1f1042:_0xec52f4;}_0x1effe9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x21182e){if('formatBlock'!=_0x21182e['type'])return;const {data:_0xd64e1e}=_0x21182e;if(!_0xd64e1e)return;let _0x36f39b,_0x5c4caf,_0x5a8ea4,_0x58f031;switch(_0xd64e1e['commandName']){case'bulletedList':_0x5a8ea4=_0xd64e1e['commandParams'][0x0]['forceValue'],_0x58f031=_0x37dec4(_0xd64e1e['commandName']),_0x36f39b=_0x5a8ea4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x58f031&&_0x1effe9['config']['get']('list.multiBlock')||(_0x36f39b='*Change\x20to:*\x20%0'),_0x5c4caf={'type':'format','content':o(_0x97d072,_0x36f39b,o(_0x97d072,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5a8ea4=_0xd64e1e['commandParams'][0x0]['forceValue'],_0x58f031=_0x37dec4(_0xd64e1e['commandName']),_0x36f39b=_0x5a8ea4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x58f031&&_0x1effe9['config']['get']('list.multiBlock')||(_0x36f39b='*Change\x20to:*\x20%0'),_0x5c4caf={'type':'format','content':o(_0x97d072,_0x36f39b,o(_0x97d072,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x36f39b='*Indent:*\x20%0',_0x5c4caf={'type':'format','content':o(_0x97d072,_0x36f39b,o(_0x97d072,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x36f39b=function(_0x286e2d){const _0x4b1281=_0x286e2d['getFirstRange']();let _0x584c0a=_0x4b1281['start']['nodeAfter'];for(;_0x584c0a&&_0x4b1281['containsItem'](_0x584c0a);){if(_0x584c0a['getAttribute']('listIndent')>0x0)return!0x1;_0x584c0a=_0x584c0a['nextSibling'];}return!0x0;}(_0x21182e)?o(_0x97d072,'*Format:*\x20remove\x20from\x20%0',o(_0x97d072,function(_0x3e80c7){return'ELEMENT_'+_0x3e80c7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x21182e))):o(_0x97d072,'*Outdent:*\x20%0',o(_0x97d072,'ELEMENT_LIST_ITEM')),_0x5c4caf={'type':'format','content':_0x36f39b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xd64e1e['multipleBlocks']&&(_0x36f39b='*Merge:*\x20%0',_0x5c4caf={'type':'deletion','content':o(_0x97d072,_0x36f39b,o(_0x97d072,'ELEMENT_LIST_ITEM'))});}return _0x5c4caf;});}}function Te(_0x477a91){let _0x38b393=_0x477a91['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x38b393;){const _0x53aff1=_0x38b393['getAttribute']('listItemId');if(!_0x53aff1)return!0x1;if(_0x53aff1==_0x477a91['data']['newValue'])return'newValue';if(_0x53aff1==_0x477a91['data']['oldValue'])return'oldValue';_0x38b393=_0x38b393['previousSibling'];}return!0x1;}class Se extends _0xa4b53f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x27e85c=this['editor']['config']['get']('list.properties'),_0x2fa434=this['editor']['plugins']['get']('TrackChangesEditing');_0x27e85c['styles']&&(_0x2fa434['enableDefaultAttributesIntegration']('listStyle'),_0x2fa434['registerBlockAttribute']('listStyle')),_0x27e85c['reversed']&&(_0x2fa434['enableDefaultAttributesIntegration']('listReversed'),_0x2fa434['registerBlockAttribute']('listReversed')),_0x27e85c['startIndex']&&(_0x2fa434['enableDefaultAttributesIntegration']('listStart'),_0x2fa434['registerBlockAttribute']('listStart'));const _0x58efd5={'type':'format','content':''};_0x2fa434['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x57bad3=this['editor']['locale'];_0x2fa434['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x57bad3,'FORMAT_LIST_REVERSED')),_0x2fa434['descriptionFactory']['registerDescriptionCallback'](_0x5cfd1d=>{const {data:_0x7dc9d}=_0x5cfd1d;if(_0x7dc9d&&'listReversed'==_0x7dc9d['key'])return null==_0x7dc9d['newValue']||0x0==_0x7dc9d['newValue']&&null==_0x7dc9d['oldValue']?_0x58efd5:void 0x0;}),_0x2fa434['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x57bad3,'FORMAT_LIST_START')),_0x2fa434['descriptionFactory']['registerDescriptionCallback'](_0x442c41=>{const {data:_0x35bc21}=_0x442c41;if(_0x35bc21&&'listStart'==_0x35bc21['key'])return null==_0x35bc21['newValue']||0x1==_0x35bc21['newValue']&&null==_0x35bc21['oldValue']?_0x58efd5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x124356=>{if(_0x124356['batch']['isUndo'])return!0x1;let _0x2c7bf8=!0x1;const _0x4a063b=_0x2fa434['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x189189=>{const _0x84e083=_0x2fa434['_getAttributeKey'](_0x189189);return'listStart'==_0x84e083||'listReversed'==_0x84e083;});for(const _0xdda5bd of _0x4a063b){const _0x444cc2=_0xdda5bd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x444cc2||'customNumbered'==_0x444cc2)continue;_0x2fa434['_findSuggestions'](_0xdda5bd['getFirstRange'](),'attribute')['find'](_0x3ff693=>'listType'==_0x2fa434['_getAttributeKey'](_0x3ff693['suggestion']))||(_0x124356['removeMarker'](_0xdda5bd['getFirstMarker']()),_0x2c7bf8=!0x0);}return _0x2c7bf8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4556c5){const _0xb81ca7=this['editor']['locale'],{data:_0x47705e}=_0x4556c5,_0x205acb={'type':'format','content':''};if(!_0x47705e||'listStyle'!=_0x47705e['key'])return;if(!_0x47705e['oldValue'])return'default'==_0x47705e['newValue']?_0x205acb:{'type':'format','content':''+o(_0xb81ca7,'*Set\x20format:*\x20%0',o(_0xb81ca7,this['_getTranslationKeyForListStyle'](_0x47705e['newValue'])))};if(!_0x47705e['newValue']){if('default'==_0x47705e['oldValue'])return _0x205acb;let _0x48ed6e=_0x4556c5['head'];for(;_0x48ed6e;){if(_0x48ed6e['data']&&'listType'==_0x48ed6e['data']['key']&&_0x48ed6e['data']['newValue'])return _0x205acb;_0x48ed6e=_0x48ed6e['next'];}return{'type':'format','content':''+o(_0xb81ca7,'*Remove\x20format:*\x20%0',o(_0xb81ca7,this['_getTranslationKeyForListStyle'](_0x47705e['oldValue'])))};}if('default'!=_0x47705e['newValue'])return{'type':'format','content':''+o(_0xb81ca7,'*Set\x20format:*\x20%0',o(_0xb81ca7,this['_getTranslationKeyForListStyle'](_0x47705e['newValue'])))};let _0x64fbe9=_0x4556c5['head'];for(;_0x64fbe9;){if(_0x64fbe9['data']&&'listType'==_0x64fbe9['data']['key']&&_0x64fbe9['data']['newValue']&&_0x64fbe9['data']['oldValue'])return _0x205acb;_0x64fbe9=_0x64fbe9['next'];}return{'type':'format','content':o(_0xb81ca7,'*Set\x20format:*\x20%0',o(_0xb81ca7,'ELEMENT_'+_0x4556c5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x497c57=this['editor'],_0x58f3b4=_0x497c57['locale'];_0x497c57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50fd9c=>{if('formatBlock'!=_0x50fd9c['type'])return;const {data:_0x1b3bb0}=_0x50fd9c;if(!_0x1b3bb0)return;let _0x8aafc7,_0x2d71ee;switch(_0x1b3bb0['commandName']){case'listStyle':_0x8aafc7='*Change\x20to:*\x20%0',_0x2d71ee={'type':'format','content':o(_0x58f3b4,_0x8aafc7,o(_0x58f3b4,this['_getTranslationKeyForListStyle'](_0x1b3bb0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x8aafc7=_0x1b3bb0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2d71ee={'type':'format','content':o(_0x58f3b4,_0x8aafc7)};break;case'listStart':_0x8aafc7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2d71ee={'type':'format','content':o(_0x58f3b4,_0x8aafc7,_0x1b3bb0['commandParams'][0x0]['startIndex'])};}return _0x2d71ee;});}['_getTranslationKeyForListStyle'](_0xcba927){return'ELEMENT_'+function(_0x31f3c4){if(_e['includes'](_0x31f3c4))return'bulleted';if(Re['includes'](_0x31f3c4))return'numbered';return null;}(_0xcba927)['toUpperCase']()+'_LIST_'+_0xcba927['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xa4b53f{['afterInit'](){const _0x1b333c=this['editor'];_0x1b333c['commands']['get']('emoji')&&_0x1b333c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0xa4b53f{static get['requires'](){return[_0x30a68b];}['init'](){const _0xecd9c2=this['editor'],_0xc375f7=_0xecd9c2['plugins']['get']('TrackChangesEditing'),_0x5ab5f6=_0xecd9c2['commands']['get']('enter');_0xc375f7['enableCommand']('enter',()=>{_0xecd9c2['model']['change'](_0x3bf6f2=>{const _0x469cfe=_0xecd9c2['model']['document']['selection'],_0x62f7ae=_0x469cfe['getFirstPosition'](),_0x3f32fd=_0x4f46eb['fromRange'](_0x469cfe['getFirstRange']());if(_0x5ab5f6['enterBlock'](_0x3bf6f2)){const _0x465bc6=_0xecd9c2['model']['createPositionAt'](_0x62f7ae['parent']['nextSibling'],0x0),_0xcd7f96=_0x3bf6f2['createRange'](_0x62f7ae,_0x465bc6);_0xc375f7['markInsertion'](_0xcd7f96);}else _0x3bf6f2['setSelection'](_0x3bf6f2['createRange'](_0x3f32fd['end']));_0x3f32fd['detach'](),_0x5ab5f6['fire']('afterExecute',{'writer':_0x3bf6f2});});}),_0xecd9c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xecd9c2,'split'),{'priority':'high'}),_0xecd9c2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x20becd,_0x56c982,_0x22275b)=>{const _0x54a20b=_0x22275b['mapper']['markerNameToElements'](_0x56c982['markerName']);if(_0x54a20b){for(const _0x3204fe of _0x54a20b)_0x3204fe['hasClass']('ck-suggestion-marker-split')&&(_0x22275b['mapper']['unbindElementFromMarkerName'](_0x3204fe,_0x56c982['markerName']),_0x22275b['writer']['remove'](_0x3204fe));}},{'priority':'high'}),_0xecd9c2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b3fd2,_0x18ddd6,_0x59a3af)=>{_0x59a3af['options']['showSuggestionHighlights']&&De(_0xecd9c2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2b3fd2,_0x18ddd6,_0x59a3af);},{'priority':'high'});}}class Z extends _0xa4b53f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x47b9a2=this['editor']['plugins']['get']('TrackChangesEditing');_0x47b9a2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x47b9a2['enableCommand']('findNext'),_0x47b9a2['enableCommand']('findPrevious'),_0x47b9a2['enableCommand']('replace'),_0x47b9a2['enableCommand']('replaceAll');}['handleFindCommand'](_0x2f8e93,_0xc49a4a,_0x25a30b={}){const _0x337c2b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2f8e93(_0x559ca7=>{let _0x24651a=('string'==typeof _0xc49a4a?_0x337c2b['findByTextCallback'](_0xc49a4a,_0x25a30b):_0xc49a4a)(_0x559ca7);Array['isArray'](_0x24651a)&&(_0x24651a={'results':_0x24651a,'searchText':'string'==typeof _0xc49a4a?_0xc49a4a:''});const _0x547701=_0x24651a['results']['filter'](_0x170db4=>!0x1===this['_isInDeletionRange'](_0x170db4,_0x559ca7['item']));return{..._0x24651a,'results':_0x547701};},_0x25a30b);}['_isInDeletionRange'](_0x59798a,_0x2fe349){const _0x3845b3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2fe349,_0x59798a['start']),this['editor']['model']['createPositionAt'](_0x2fe349,_0x59798a['end']));for(const _0x39ea91 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3845b3['getIntersection'](_0x39ea91['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0xa4b53f{['afterInit'](){const _0xb5cca4=this['editor']['locale'],_0x2357f6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x33f82b,commandName:_0x204921}of ro)this['editor']['plugins']['has'](_0x33f82b)&&(_0x2357f6['enableDefaultAttributesIntegration'](_0x204921),_0x2357f6['registerInlineAttribute'](_0x204921));_0x2357f6['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xb5cca4,'FORMAT_FONT_SIZE')),_0x2357f6['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xb5cca4,'FORMAT_FONT_FAMILY')),_0x2357f6['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xb5cca4,'FORMAT_FONT_COLOR')),_0x2357f6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xb5cca4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5153e7=this['editor'],_0x374170=_0x5153e7['locale'];_0x5153e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd4631d=>{const _0x47fe03=_0x374170['t'];if('formatInline'!=_0xd4631d['type'])return;const {data:_0x4794f2}=_0xd4631d;if(null!=_0x4794f2){if('fontSize'==_0x4794f2['commandName']){const _0x37d9ed=_0x4794f2['commandParams'][0x0]['value'];if(_0x37d9ed){const _0x325b7c=_0x47fe03(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3d140e=>_0x3d140e['model']==_0x37d9ed)['title'])['toLowerCase']();return{'type':'format','content':o(_0x374170,'*Set\x20font\x20size:*\x20%0',_0x325b7c)};}return{'type':'format','content':o(_0x374170,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4794f2['commandName']){const _0x49c72e=_0x4794f2['commandParams'][0x0]['value'];return _0x49c72e?{'type':'format','content':o(_0x374170,'*Set\x20font\x20family:*\x20%0',_0x49c72e)}:{'type':'format','content':o(_0x374170,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4794f2['commandName']){const _0xaeb521=_0x4794f2['commandParams'][0x0]['value'];if(_0xaeb521){const _0x1682d9=_0x3e4cac(this['editor']['config']['get']('fontColor.colors'))['find'](_0x18daf6=>_0x18daf6['model']==_0xaeb521);let _0x5934d0=_0xaeb521,_0x2c6607='';return _0x1682d9&&(_0x5934d0=_0x1682d9['label'],_0x2c6607=_0x47fe03(_0x5934d0)['toLowerCase']()),{'type':'format','content':o(_0x374170,'*Set\x20font\x20color:*\x20%0',_0x2c6607)['trim'](),'color':{'value':_0xaeb521,'title':_0x2c6607||_0x5934d0}};}return{'type':'format','content':o(_0x374170,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4794f2['commandName']){const _0x140b3f=_0x4794f2['commandParams'][0x0]['value'];if(_0x140b3f){const _0x38eddc=_0x3e4cac(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3a54e9=>_0x3a54e9['model']==_0x140b3f);let _0x1f9366=_0x140b3f,_0x2cfe35='';return _0x38eddc&&(_0x1f9366=_0x38eddc['label'],_0x2cfe35=_0x47fe03(_0x1f9366)['toLowerCase']()),{'type':'format','content':o(_0x374170,'*Set\x20font\x20background\x20color:*\x20%0',_0x2cfe35)['trim'](),'color':{'value':_0x140b3f,'title':_0x2cfe35||_0x1f9366}};}return{'type':'format','content':o(_0x374170,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0xa4b53f{['afterInit'](){const _0x5e55e2=this['editor'],_0x4cf8c2=_0x5e55e2['plugins']['get']('TrackChangesEditing'),_0x3c6908=_0x5e55e2['commands']['get']('copyFormat'),_0x4905d5=_0x5e55e2['commands']['get']('pasteFormat');_0x3c6908&&_0x4905d5&&(_0x4cf8c2['enableDefaultAttributesIntegration']('pasteFormat'),_0x4cf8c2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5608df=this['editor'],_0x3057c8=_0x5608df['locale'];_0x5608df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18d565=>{if('formatBlock'!=_0x18d565['type']&&'formatInline'!=_0x18d565['type'])return;const {data:_0x5001df}=_0x18d565;if(_0x5001df&&'pasteFormat'===_0x5001df['commandName']){const _0x52af15=[],_0x5493f6=_0x5001df['commandParams'][0x0];for(const [_0x2d60a1,_0x168a2d]of Object['entries'](_0x5493f6))_0x52af15['push'](so(_0x5608df,_0x2d60a1,_0x168a2d));return _0x52af15['length']?{'type':'format','content':o(_0x3057c8,'*Set\x20format\x20to:*\x20%0',_0x52af15['join'](',\x20'))}:{'type':'format','content':o(_0x3057c8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4b6f55,_0x76d578,_0x38a76d){const _0x5a1fdd=_0x4b6f55['locale']['t'],_0x22b5b0=_0x76d578['split'](/(?=[A-Z])/)['join']('\x20'),_0x4ff8cf=_0x5a1fdd(_0x22b5b0['charAt'](0x0)['toUpperCase']()+_0x22b5b0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x38a76d)return _0x4ff8cf;if('fontColor'===_0x76d578||'fontBackgroundColor'===_0x76d578){const _0x53ecd3=_0x3e4cac(_0x4b6f55['config']['get']('fontColor.colors'))['find'](_0x187079=>_0x187079['model']==_0x38a76d);return _0x4ff8cf+'\x20('+(_0x53ecd3?_0x5a1fdd(_0x53ecd3['label'])['toLowerCase']():_0x38a76d)+')';}if('fontSize'===_0x76d578&&isNaN(parseFloat(_0x38a76d))){const _0x1bf051=_0x4b6f55['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4b6f55['config']['get']('fontSize.options'))['find'](_0x30f17c=>_0x30f17c['model']==_0x38a76d);return _0x4ff8cf+'\x20('+(_0x1bf051?_0x5a1fdd(_0x1bf051['title'])['toLowerCase']():_0x38a76d)+')';}return _0x4ff8cf+'\x20('+_0x38a76d+')';}class it extends _0xa4b53f{['_headingOptions'];['afterInit'](){const _0x418cdc=this['editor'];if(!_0x418cdc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x418cdc['config']['get']('heading.options');const _0x7d38d5=_0x418cdc['locale'],_0x4c6ee2=_0x418cdc['plugins']['get']('TrackChangesEditing');_0x4c6ee2['enableDefaultAttributesIntegration']('heading');for(const _0x6a1a2a of this['_headingOptions'])'paragraph'!=_0x6a1a2a['model']&&_0x4c6ee2['descriptionFactory']['registerElementLabel'](_0x6a1a2a['model'],_0x2fb5a4=>{const _0x333e59=this['_getHeadingLevel'](_0x6a1a2a['model']);return null!==_0x333e59?_0x176b37(_0x2fb5a4,_0x333e59):_0x200822(_0x2fb5a4,_0x6a1a2a['title']);});function _0x176b37(_0x534b58,_0x4b9e51){return o(_0x7d38d5,'ELEMENT_HEADING',[_0x534b58,_0x4b9e51]);}function _0x200822(_0x4bab0f,_0x3becef){return o(_0x7d38d5,'ELEMENT_HEADING_CUSTOM',[_0x4bab0f,_0x3becef]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7293a6=this['editor'],_0x55f383=_0x7293a6['locale'];function _0x329961(_0x23f293,_0x33b24f){return o(_0x55f383,'ELEMENT_HEADING_CUSTOM',[_0x23f293,_0x33b24f]);}_0x7293a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33bbf1=>{if('formatBlock'!=_0x33bbf1['type'])return;const {data:_0x3e112e}=_0x33bbf1;if(_0x3e112e&&'heading'==_0x3e112e['commandName']){const _0x561530=_0x3e112e['commandParams'][0x0]['value'],_0x3fe186=this['_getHeadingLevel'](_0x561530);if(null!==_0x3fe186)return{'type':'format','content':o(_0x55f383,'*Change\x20to:*\x20%0',(_0x3a21b7=0x1,_0x4c3483=_0x3fe186,o(_0x55f383,'ELEMENT_HEADING',[_0x3a21b7,_0x4c3483])))};const _0x4259fc=this['_headingOptions']['find'](_0x129013=>_0x129013['model']===_0x561530)['title'];return{'type':'format','content':o(_0x55f383,'*Change\x20to:*\x20%0',_0x329961(0x1,_0x4259fc))};}var _0x3a21b7,_0x4c3483;});}['_getHeadingLevel'](_0x29877a){const _0x1c97c9=_0x29877a['match'](/^heading(\d+)/);if(_0x1c97c9)return _0x1c97c9[0x1];const _0x2104a4=this['_headingOptions']?.['find'](_0x109810=>_0x109810['model']==_0x29877a);if(_0x2104a4&&_0x2104a4['view']){const _0x2c4aa0=_0x2104a4['view'],_0x5b4898=(_0x2c4aa0['name']??_0x2c4aa0)['match'](/^h(\d+)/);if(_0x5b4898)return _0x5b4898[0x1];}return null;}}class et extends _0xa4b53f{['afterInit'](){const _0x2ad346=this['editor'];if(!_0x2ad346['plugins']['has']('HighlightEditing'))return;const _0x1e7561=_0x2ad346['plugins']['get']('TrackChangesEditing'),_0x2a6c1a=_0x2ad346['locale'];_0x1e7561['enableDefaultAttributesIntegration']('highlight'),_0x1e7561['registerInlineAttribute']('highlight'),_0x1e7561['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2a6c1a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32a5fa=this['editor'],_0x4989d5=_0x32a5fa['locale'];_0x32a5fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x439552=>{if('formatInline'!=_0x439552['type'])return;const {data:_0x775c5e}=_0x439552;if(_0x775c5e&&'highlight'==_0x775c5e['commandName']){const _0x1d3008=_0x4989d5['t'],_0x5d01d0=_0x775c5e['commandParams'][0x0]['value'];if(_0x5d01d0){const _0x360bee=_0x32a5fa['config']['get']('highlight.options')['find'](_0xcbd3ed=>_0xcbd3ed['model']==_0x5d01d0),_0x4c6148=_0x1d3008(_0x360bee['title'])['toLowerCase']();return{'type':'format','content':o(_0x4989d5,'*Set\x20highlight:*\x20%0',_0x4c6148),'color':{'value':_0x360bee['color'],'title':_0x360bee['title']}};}return{'type':'format','content':o(_0x4989d5,'*Remove\x20highlight*',o(_0x4989d5,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0xa4b53f{['afterInit'](){const _0x156fee=this['editor'];if(!_0x156fee['plugins']['has']('HorizontalLineEditing'))return;_0x156fee['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x104408=_0x156fee['plugins']['get']('TrackChangesEditing'),_0x3dfef9=_0x156fee['locale'];_0x104408['descriptionFactory']['registerElementLabel']('horizontalLine',_0x377cb9=>o(_0x3dfef9,'ELEMENT_HORIZONTAL_LINE',_0x377cb9)),_0x156fee['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3a2d24,{writer:_0x4cd8c8,options:_0x5baea8})=>{if(!_0x5baea8['showSuggestionHighlights'])return null;const _0x3d1c46=_0x4cd8c8['createContainerElement']('div'),_0x3f44a5=_0x4cd8c8['createEmptyElement']('hr');return _0x4cd8c8['addClass']('ck-horizontal-line',_0x3d1c46),_0x4cd8c8['insert'](_0x4cd8c8['createPositionAt'](_0x3d1c46,0x0),_0x3f44a5),_0x3d1c46;},'converterPriority':'high'});}}class ot extends _0xa4b53f{['afterInit'](){const _0x2935e5=this['editor'];if(!_0x2935e5['plugins']['has']('HtmlEmbed'))return;const _0x57ae0a=_0x2935e5['plugins']['get']('TrackChangesEditing'),_0x35e0d6=_0x2935e5['locale'];_0x57ae0a['descriptionFactory']['registerElementLabel']('rawHtml',_0x11743d=>o(_0x35e0d6,'ELEMENT_HTML_EMBED',_0x11743d)),_0x57ae0a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x57ae0a['registerBlockAttribute']('value'),_0x57ae0a['descriptionFactory']['registerDescriptionCallback'](_0x3e656c=>{if('attribute'!=_0x3e656c['type'])return;const {data:_0x83abd2}=_0x3e656c;if(_0x83abd2&&'value'==_0x83abd2['key']&&_0x3e656c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x323b87=o(_0x35e0d6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x35e0d6,'*Change\x20%0\x20content*',_0x323b87)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x462826=this['editor'],_0x255f6b=_0x462826['locale'];_0x462826['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33e23d=>{if('formatBlock'!=_0x33e23d['type'])return;const {data:_0x5cc5c1}=_0x33e23d;if(_0x5cc5c1&&'htmlEmbed'==_0x5cc5c1['commandName']){const _0x5568c0=o(_0x255f6b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x255f6b,'*Change\x20%0\x20content*',_0x5568c0)};}});}}class rt extends _0xa4b53f{['afterInit'](){const _0x80d26c=this['editor'];if(!_0x80d26c['plugins']['has']('ImageEditing'))return;const _0x5e8397=_0x80d26c['plugins']['get']('TrackChangesEditing'),_0x26d8c5=_0x80d26c['plugins']['get']('ImageUtils'),_0x25bb81=_0x80d26c['locale'];_0x5e8397['enableCommand']('insertImage'),_0x5e8397['descriptionFactory']['registerElementLabel']('imageBlock',_0x503f1c=>o(_0x25bb81,'ELEMENT_IMAGE',_0x503f1c)),_0x5e8397['descriptionFactory']['registerElementLabel']('imageInline',_0x50675d=>o(_0x25bb81,'ELEMENT_INLINE_IMAGE',_0x50675d)),_0x5e8397['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x25bb81,'ELEMENT_CAPTION')),_0x80d26c['plugins']['has']('ImageUploadEditing')&&_0x5e8397['enableCommand']('uploadImage'),_0x80d26c['plugins']['has']('ImageBlockEditing')&&_0x80d26c['plugins']['has']('ImageInlineEditing')&&(_0x5e8397['enableCommand']('imageTypeInline',(_0x49031a,_0x11e25b)=>{const _0x50a17e=_0x26d8c5['getClosestSelectedImageElement'](_0x80d26c['model']['document']['selection']);_0x80d26c['model']['change'](()=>{_0x5e8397['markBlockFormat'](_0x50a17e,{'commandName':'imageTypeInline','commandParams':[_0x11e25b]},[],'convertBlockImageToInline');});}),_0x5e8397['enableCommand']('imageTypeBlock',(_0x3f6145,_0x473d7b)=>{_0x80d26c['model']['change'](_0x4b1328=>{let _0x350543=_0x26d8c5['getClosestSelectedImageElement'](_0x80d26c['model']['document']['selection']),_0x2aa530=_0x4b1328['createRangeOn'](_0x350543);const _0x2ab21f=_0x38a415['fromPosition'](_0x2aa530['start'],'toPrevious'),_0x7d9188=_0x38a415['fromPosition'](_0x2aa530['end'],'toNext');_0x5e8397['forceDefaultExecution'](()=>_0x3f6145(_0x473d7b)),_0x350543=_0x26d8c5['getClosestSelectedImageElement'](_0x80d26c['model']['document']['selection']),_0x2aa530=_0x4b1328['createRangeOn'](_0x350543);const _0x4590c7=_0x4b1328['createRange'](_0x2ab21f,_0x7d9188);_0x2ab21f['detach'](),_0x7d9188['detach'](),_0x5e8397['markBlockFormat'](_0x350543,{'commandName':'imageTypeInline','commandParams':[_0x473d7b]},[],'convertInlineImageToBlock'),_0x4590c7['start']['isBefore'](_0x2aa530['start'])&&_0x5e8397['markInsertion'](_0x4b1328['createRange'](_0x4590c7['start'],_0x2aa530['start']),'convertInlineImageToBlock'),_0x2aa530['end']['isBefore'](_0x4590c7['end'])&&_0x5e8397['markInsertion'](_0x4b1328['createRange'](_0x2aa530['end'],_0x4590c7['end']),'convertInlineImageToBlock');});}),_0x5e8397['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e8397['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e8397['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e8397['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e8397['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e8397['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x334782])=>{const _0x15b54e=_0x5e8397['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x492632=_0x334782['start'],_0x5c6975=_0x334782['end'];const _0x55b7b8=_0x80d26c['model']['schema']['getNearestSelectionRange'](_0x492632,'backward'),_0xb360f1=_0x80d26c['model']['schema']['getNearestSelectionRange'](_0x5c6975,'forward');_0x55b7b8['isCollapsed']&&(_0x492632=_0x55b7b8['start']),_0xb360f1['isCollapsed']&&(_0x5c6975=_0xb360f1['end']),_0x15b54e([_0x80d26c['model']['createRange'](_0x492632,_0x5c6975)]);}),_0x5e8397['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x146021),_0x5e8397['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x146021)),_0x80d26c['plugins']['has']('ImageCaptionEditing')&&(_0x5e8397['enableCommand']('toggleImageCaption',(_0x45af99,_0x4be894)=>{const _0xb7e24b=_0x80d26c['plugins']['get']('ImageCaptionUtils');let _0x2297e4=_0x26d8c5['getClosestSelectedImageElement'](_0x80d26c['model']['document']['selection']),_0x47ebd7=_0xb7e24b['getCaptionFromImageModelElement'](_0x2297e4);_0x80d26c['model']['change'](()=>{if(_0x47ebd7)return void _0x5e8397['markDeletion'](_0x80d26c['model']['createRangeOn'](_0x47ebd7));const _0xd2abfe=_0x26d8c5['isBlockImage'](_0x2297e4);_0x45af99(_0x4be894),_0x2297e4=_0x26d8c5['getClosestSelectedImageElement'](_0x80d26c['model']['document']['selection']),_0x47ebd7=_0xb7e24b['getCaptionFromImageModelElement'](_0x2297e4),_0x5e8397['markInsertion'](_0x80d26c['model']['createRangeOn'](_0x47ebd7),_0xd2abfe?null:'imageCaption');});}),_0x5e8397['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x146021));const _0x195066=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x204d89(_0x19ee07,_0x216663){const _0x550c36=_0x195066['findIndex'](({type:_0x46079c,subType:_0x101162})=>_0x19ee07['type']==_0x46079c&&_0x19ee07['subType']==_0x101162),_0xd3f278=_0x195066['findIndex'](({type:_0x1e01d4,subType:_0x47f57d})=>_0x216663['type']==_0x1e01d4&&_0x216663['subType']==_0x47f57d);if(_0x550c36<0x0||_0xd3f278<0x0)return!0x1;const _0x2a36b1=_0x19ee07['getFirstRange'](),_0x44a86a=_0x216663['getFirstRange']();if((0x0==_0x550c36||0x1==_0x550c36)&&0x2==_0xd3f278&&_0x2a36b1['isIntersecting'](_0x44a86a))return!0x0;if(0x2==_0x550c36&&0x3==_0xd3f278){const _0x3d0add=_0x5e8397['_findSuggestions'](_0x2a36b1,'insertion')['filter'](({suggestion:_0x1e584a,meta:_0x3c1a06})=>_0x3c1a06['isOwn']&&'convertInlineImageToBlock'==_0x1e584a['subType']);if(_0x3d0add['length']>0x1&&_0x44a86a['end']['isEqual'](_0x2a36b1['start']))return!0x0;if(0x1==_0x3d0add['length']&&(_0x2a36b1['start']['isEqual'](_0x44a86a['end'])||_0x2a36b1['end']['isEqual'](_0x44a86a['start'])))return!0x0;}if(0x3==_0x550c36&&0x3==_0xd3f278&&_0x2a36b1['start']['isBefore'](_0x44a86a['start'])){const _0x295ef6=_0x2a36b1['end']['nodeAfter'],_0x5b8465=_0x44a86a['start']['nodeBefore'];return _0x26d8c5['isBlockImage'](_0x295ef6)&&_0x295ef6===_0x5b8465;}return!0x1;}function _0x146021(_0xa5cc45,_0x419b36){return _0x204d89(_0xa5cc45,_0x419b36)?[_0xa5cc45,_0x419b36]:_0x204d89(_0x419b36,_0xa5cc45)?[_0x419b36,_0xa5cc45]:null;}_0x80d26c['plugins']['has']('ImageResize')&&(_0x5e8397['enableDefaultAttributesIntegration']('resizeImage'),_0x5e8397['registerBlockAttribute']('resizedWidth'),_0x5e8397['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x25bb81,'FORMAT_IMAGE_SIZE'))),_0x80d26c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e8397['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e8397['registerBlockAttribute']('alt')),_0x80d26c['plugins']['has']('PictureEditing')&&(_0x5e8397['registerBlockAttribute']('sources'),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0x36a9ac=>{if('attribute'!=_0x36a9ac['type'])return;const {data:_0x27f2b7}=_0x36a9ac;return _0x27f2b7&&'sources'==_0x27f2b7['key']?{'type':'format','content':''}:void 0x0;})),_0x80d26c['plugins']['has']('ImageSizeAttributes')&&(_0x5e8397['registerBlockAttribute']('width'),_0x5e8397['registerBlockAttribute']('height'),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0x24bb27=>{if('attribute'!=_0x24bb27['type'])return;const {data:_0x5d73fa}=_0x24bb27;return!_0x5d73fa||'width'!=_0x5d73fa['key']&&'height'!=_0x5d73fa['key']?void 0x0:{'type':'format','content':''};})),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0x5ee743=>{if(!!_0x195066['find'](({type:_0x2e97ca,subType:_0x4b5659})=>_0x5ee743['type']==_0x2e97ca&&_0x5ee743['subType']==_0x4b5659))return _0x5ee743['previous']?{}:void 0x0;}),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0xbb9e7c=>{if('insertion'==_0xbb9e7c['type']||'deletion'==_0xbb9e7c['type']){const _0x59f1ed=_0xbb9e7c['getContainedElement']();if(_0x59f1ed&&_0x59f1ed['is']('element','caption'))return{'type':'insertion'==_0xbb9e7c['type']?'addObject':'removeObject','element':_0x59f1ed,'quantity':0x1};}}),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0x10a020=>'formatBlock'==_0x10a020['type']&&'convertInlineImageToBlock'==_0x10a020['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x10a020['type']&&'convertBlockImageToInline'==_0x10a020['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e8397['descriptionFactory']['registerDescriptionCallback'](_0x40b703=>{if('attribute'!=_0x40b703['type'])return;const {data:_0x37cea9}=_0x40b703;if(!_0x37cea9||'alt'!=_0x37cea9['key'])return;const _0x20007c=_0x37cea9['newValue'];return _0x20007c?{'type':'format','content':o(_0x25bb81,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x20007c+'\x22')}:{'type':'format','content':o(_0x25bb81,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1861a5=this['editor'],_0x471ab5=_0x1861a5['locale'];_0x1861a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4584c2=>{if('formatBlock'!=_0x4584c2['type']&&'formatInline'!=_0x4584c2['type'])return;const {data:_0x4e7232}=_0x4584c2;if(_0x4e7232){if('imageTextAlternative'==_0x4e7232['commandName']){const _0x1ff87e=_0x4e7232['commandParams'][0x0]['newValue'];return _0x1ff87e?{'type':'format','content':o(_0x471ab5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1ff87e+'\x22')}:{'type':'format','content':o(_0x471ab5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4e7232['commandName']){const _0x16caea=_0x4e7232['commandParams'][0x0]['width'];return _0x16caea?{'type':'format','content':o(_0x471ab5,'*Set\x20image\x20width:*\x20%0',_0x16caea)}:{'type':'format','content':o(_0x471ab5,'*Reset\x20image\x20width*')};}}});}}class at extends _0xa4b53f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x175a3b=this['editor']['locale'],_0x299bd7=this['editor']['plugins']['get']('TrackChangesEditing');_0x299bd7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x299bd7['registerBlockAttribute']('src'),_0x299bd7['descriptionFactory']['registerDescriptionCallback'](_0x2e900c=>{if('attribute'!=_0x2e900c['type'])return;const {data:_0x58a0c9}=_0x2e900c;return _0x58a0c9&&'src'==_0x58a0c9['key']?_0x58a0c9['newValue']&&_0x58a0c9['oldValue']?{'type':'format','content':o(_0x175a3b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1c2c7d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c2c7d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1c2c7d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c2c7d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1c2c7d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x261c22=this['editor'],_0x264055=_0x261c22['locale'];_0x261c22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28bfb4=>{if('formatBlock'!=_0x28bfb4['type']&&'formatInline'!=_0x28bfb4['type'])return;const {data:_0x478318}=_0x28bfb4;if(!_0x478318||'replaceImageSource'!=_0x478318['commandName'])return;return{'type':'format','content':o(_0x264055,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0xa4b53f{['afterInit'](){const _0x590bd2=this['editor'];if(!_0x590bd2['plugins']['has']('ImageStyleEditing'))return;const _0x1f19e2=_0x590bd2['plugins']['get']('TrackChangesEditing'),_0x54fe54=_0x590bd2['plugins']['get']('ImageUtils'),_0x472cb6={};_0x1f19e2['enableCommand']('imageStyle',(_0x326c41,_0x186293)=>{const _0x1e8abd=_0x590bd2['plugins']['get']('Users')['me'],_0x368a92=_0x590bd2['commands']['get']('imageStyle');let _0x373190=_0x54fe54['getClosestSelectedImageElement'](_0x590bd2['model']['document']['selection']),_0x2872f6=_0x590bd2['model']['createRangeOn'](_0x373190),_0x187953=_0x368a92['value'];if(_0x187953==_0x186293['value'])return;const _0x3eb525={'commandName':'imageStyle','commandParams':[_0x186293],'formatGroupId':_0xf688c7()};_0x590bd2['model']['change'](()=>{if(_0x1f19e2['getSuggestions']()['filter'](_0x2fb1b1=>_0x2fb1b1['isInContent']&&_0x1e8abd==_0x2fb1b1['author']&&('formatBlock'==_0x2fb1b1['type']||'formatInline'==_0x2fb1b1['type'])&&('imageStylePreApply'==_0x2fb1b1['subType']||'imageStylePostApply'==_0x2fb1b1['subType'])&&_0x2fb1b1['getFirstRange']()['isEqual'](_0x2872f6))['forEach'](_0x1eda7a=>_0x1f19e2['discardSuggestion'](_0x1eda7a['head'])),_0x373190=_0x54fe54['getClosestSelectedImageElement'](_0x590bd2['model']['document']['selection']),_0x2872f6=_0x590bd2['model']['createRangeOn'](_0x373190),_0x368a92['refresh'](),_0x590bd2['commands']['get']('imageTypeInline')['refresh'](),_0x590bd2['commands']['get']('imageTypeBlock')['refresh'](),_0x187953=_0x368a92['value'],_0x187953!=_0x186293['value'])return _0x54fe54['isInlineImage'](_0x373190)&&_0x368a92['shouldConvertImageType'](_0x186293['value'],_0x373190)?(_0x326c41({..._0x186293,'setImageSizes':!0x1}),_0x373190=_0x54fe54['getClosestSelectedImageElement'](_0x590bd2['model']['document']['selection']),void _0x1f19e2['markBlockFormat'](_0x373190,{..._0x3eb525,'commandReversedParams':[{'value':_0x187953||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x54fe54['isBlockImage'](_0x373190)?_0x1f19e2['markBlockFormat'](_0x373190,_0x3eb525,[],'imageStylePostApply'):_0x1f19e2['markInlineFormat'](_0x2872f6,_0x3eb525,'imageStylePostApply'));});});for(const _0x58a884 of _0x590bd2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x472cb6[_0x58a884['name']]=_0x58a884['title']['toLowerCase']();_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x38996b])=>{_0x54fe54['setImageNaturalSizeAttributes'](_0x38996b['getContainedElement']());}),_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x17b7fa,_0x218290)=>{_0x1f19e2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x17b7fa,{'commandName':_0x218290['commandName'],'commandParams':_0x218290['commandReversedParams']});}),_0x1f19e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x22e17d,_0x4cb271){if(_0x4d9041(_0x22e17d,_0x4cb271))return[_0x22e17d,_0x4cb271];if(_0x4d9041(_0x4cb271,_0x22e17d))return[_0x4cb271,_0x22e17d];return null;});const _0x56763f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4d9041(_0x2f7543,_0x80a30f){const _0x1054b4=_0x56763f['findIndex'](({type:_0x54b2a7,subType:_0x11f7bf})=>_0x2f7543['type']==_0x54b2a7&&_0x2f7543['subType']==_0x11f7bf),_0x580763=_0x56763f['findIndex'](({type:_0x32496f,subType:_0x6e284e})=>_0x80a30f['type']==_0x32496f&&_0x80a30f['subType']==_0x6e284e);if(_0x1054b4<0x0||_0x580763<0x0)return!0x1;const _0x2939f3=_0x2f7543['getFirstRange'](),_0x2d13f=_0x80a30f['getFirstRange']();if((0x0==_0x1054b4||0x1==_0x1054b4)&&0x2==_0x580763&&_0x2939f3['isIntersecting'](_0x2d13f))return!0x0;if(0x2==_0x1054b4&&0x3==_0x580763){const _0x399902=_0x1f19e2['_findSuggestions'](_0x2939f3,'insertion')['filter'](({suggestion:_0x40aee0,meta:_0x3efb98})=>_0x3efb98['isOwn']&&'convertInlineImageToBlock'==_0x40aee0['subType']);if(_0x399902['length']>0x1&&_0x2d13f['end']['isEqual'](_0x2939f3['start']))return!0x0;if(0x1==_0x399902['length']&&(_0x2939f3['start']['isEqual'](_0x2d13f['end'])||_0x2939f3['end']['isEqual'](_0x2d13f['start'])))return!0x0;}if(0x3==_0x1054b4&&0x3==_0x580763&&_0x2939f3['start']['isBefore'](_0x2d13f['start'])){const _0x21af37=_0x2939f3['end']['nodeAfter'],_0x35125b=_0x2d13f['start']['nodeBefore'];return _0x54fe54['isBlockImage'](_0x21af37)&&_0x21af37===_0x35125b;}return!0x1;}_0x590bd2['model']['document']['registerPostFixer'](()=>{let _0x4081dc=!0x1;const _0x153e85=Array['from'](_0x590bd2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32fd97,data:_0x125082}of _0x153e85){const {group:_0x4b5af7,type:_0x278b31,subType:_0x3fa4d0,id:_0x3248e0}=_0x1f19e2['_splitMarkerName'](_0x32fd97);if('suggestion'==_0x4b5af7&&_0x1f19e2['hasSuggestion'](_0x3248e0)){if('formatBlock'==_0x278b31&&('imageStylePreApply'==_0x3fa4d0||'imageStylePostApply'==_0x3fa4d0)){const _0x8830c0=_0x1f19e2['getSuggestion'](_0x3248e0);if(_0x125082['newRange']){const _0xaa4e40=_0x8830c0['getFirstRange']()['getContainedElement']();if(_0x54fe54['isBlockImage'](_0xaa4e40))continue;_0x1f19e2['discardSuggestion'](_0x8830c0),_0x4081dc=!0x0;}}if('insertion'==_0x278b31&&'imageCaption'==_0x3fa4d0&&!_0x125082['newRange']){const _0x3b16d0=_0x1f19e2['getSuggestion'](_0x3248e0);_0x3b16d0['next']&&_0x3b16d0['next']['isInContent']&&(_0x1f19e2['discardSuggestion'](_0x3b16d0['next']),_0x4081dc=!0x0);}}}return _0x4081dc;}),this['_registerLegacyDescription'](_0x472cb6);}['_registerLegacyDescription'](_0x52f8eb){const _0xbd73c2=this['editor'],_0x221425=_0xbd73c2['locale'];_0xbd73c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ed61c=>{if('formatBlock'!=_0x3ed61c['type']&&'formatInline'!=_0x3ed61c['type'])return;const {data:_0x5aee55}=_0x3ed61c;if(!_0x5aee55||'imageStyle'!=_0x5aee55['commandName'])return;const _0x3fd4bb=_0x5aee55['commandParams'][0x0]['value'];return _0x3b9c76('side'===_0x3fd4bb?o(_0x221425,'FORMAT_SIDE_IMAGE'):_0x52f8eb[_0x3fd4bb]||_0x3fd4bb);function _0x3b9c76(_0x19bbaf){return{'type':'format','content':o(_0x221425,'*Format:*\x20%0',_0x19bbaf)};}});}}class ut extends _0xa4b53f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5be19a){super(_0x5be19a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4ce58d=this['editor'],_0x4c7c5c=_0x4ce58d['commands']['get']('importWord'),_0x2587e5=_0x4ce58d['commands']['get']('trackChanges');_0x4c7c5c&&(_0x4c7c5c['on']('execute',(_0x9a53a9,[,_0x3b118c])=>{this['_trackChangesValueDuringImport']=_0x2587e5['value'],_0x3b118c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4c7c5c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4c7c5c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2587e5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4ce58d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x14f891,_0x1d7d54){const {suggestions:_0xca37da}=_0x1d7d54,_0x41ad9f=this['editor']['commands']['get']('trackChanges'),_0x314597=_0x41ad9f['value'];this['_trackChangesValueDuringImport']!==_0x314597&&(_0x41ad9f['execute'](),this['_trackChangesExecuted']=!0x0),_0xca37da&&_0xca37da['forEach'](({id:_0x3e7cdf,type:_0x3d460e,author:_0x26bc59,created_at:_0x4f8d48})=>{const _0x309c5d={'id':_0x3e7cdf,'type':_0x3d460e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x26bc59,'createdAt':_0x4f8d48?new Date(_0x4f8d48):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x309c5d);});}}class ft extends _0xa4b53f{['afterInit'](){const _0x241663=this['editor'],_0xa9919d=_0x241663['plugins']['get']('TrackChangesEditing');if(_0x241663['plugins']['has']('IndentEditing')&&(_0xa9919d['enableCommand']('indent'),_0xa9919d['enableCommand']('outdent')),_0x241663['plugins']['has']('IndentBlock')){for(const _0x35a5f9 of['indentBlock','outdentBlock'])_0xa9919d['enableDefaultAttributesIntegration'](_0x35a5f9);}const _0x94c6bb=_0x241663['locale'];_0xa9919d['registerBlockAttribute']('blockIndent'),_0xa9919d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x94c6bb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9abc85=this['editor'],_0x4cdaef=_0x9abc85['locale'],_0x466032=_0x9abc85['plugins']['get']('TrackChangesEditing');_0x466032['descriptionFactory']['registerDescriptionCallback'](_0x20039d=>{if('formatBlock'!=_0x20039d['type'])return;const {data:_0x474e92}=_0x20039d;if(!_0x474e92)return;if('indentBlock'!=_0x474e92['commandName']&&'outdentBlock'!=_0x474e92['commandName'])return;const _0x31934d=_0x20039d['getItems']()[0x0],_0xbb2301=_0x466032['descriptionFactory']['getItemLabel'](_0x31934d);return'indentBlock'==_0x474e92['commandName']?{'type':'format','content':o(_0x4cdaef,'*Indent:*\x20%0',_0xbb2301)}:'outdentBlock'==_0x474e92['commandName']?{'type':'format','content':o(_0x4cdaef,'*Outdent:*\x20%0',_0xbb2301)}:void 0x0;});}}class ht extends _0xa4b53f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0xa4b53f{['afterInit'](){const _0x4ae21a=this['editor'];if(!_0x4ae21a['plugins']['has']('LinkEditing'))return;const _0x16514a=_0x4ae21a['plugins']['get']('TrackChangesEditing'),_0x33baa5=_0x4ae21a['commands']['get']('link');_0x16514a['enableDefaultAttributesIntegration']('link'),_0x16514a['enableDefaultAttributesIntegration']('unlink'),_0x16514a['registerInlineAttribute']('linkHref');for(const _0xcc385a of _0x33baa5['manualDecorators'])_0x16514a['registerInlineAttribute'](_0xcc385a['id']),_0x16514a['descriptionFactory']['registerAttributeLabel'](_0xcc385a['id'],'link\x20('+_0xcc385a['label']['toLowerCase']()+')');_0x16514a['descriptionFactory']['registerDescriptionCallback'](_0x52d337=>{if('attribute'!=_0x52d337['type'])return;const {data:_0x5e61fe}=_0x52d337;if(!_0x5e61fe||'linkHref'!=_0x5e61fe['key'])return;const _0x115935=_0x5e61fe['newValue'],_0x3d09b3=_0x4ae21a['locale'];return{'type':'format','content':null==_0x115935?o(_0x3d09b3,'*Remove\x20link*'):o(_0x3d09b3,'*Set\x20link:*\x20%0','\x22'+_0x115935+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4829f0=this['editor'],_0x1e57ed=_0x4829f0['locale'];_0x4829f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe2ed31=>{if('formatInline'!=_0xe2ed31['type'])return;const {data:_0x70f096}=_0xe2ed31;if(_0x70f096){if('link'==_0x70f096['commandName']){const _0xeaab32=_0x70f096['commandParams'][0x0];return{'type':'format','content':o(_0x1e57ed,'*Set\x20link:*\x20%0','\x22'+_0xeaab32+'\x22')};}return'unlink'==_0x70f096['commandName']?{'type':'format','content':o(_0x1e57ed,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0xa4b53f{['afterInit'](){const _0x481b52=this['editor'],_0x145324=_0x481b52['locale'];if(!_0x481b52['plugins']['has']('LegacyListEditing'))return;const _0x36f11e=_0x481b52['plugins']['get']('TrackChangesEditing'),_0x5d626f=_0x481b52['plugins']['has']('LegacyTodoListEditing');function _0x121c67(_0x390f21){return()=>{const _0xb15c3b=_0x481b52['model']['document']['selection'],_0x2fc83c=_0x481b52['commands']['get'](_0x390f21);if(_0x2fc83c['value'])return void _0x481b52['execute']('paragraph',{});const _0x550b3d=_0x390f21['slice'](0x0,-0x4),_0x43f8c4=function(_0x57fcd2,_0x15dc30,_0x26da32){let _0x581a69=Array['from'](_0x57fcd2)['filter'](_0x289887=>function(_0x20122e,_0x1912e4){return _0x1912e4['checkChild'](_0x20122e['parent'],'listItem')&&!_0x1912e4['isObject'](_0x20122e);}(_0x289887,_0x26da32));_0x581a69=_0x581a69['filter'](_0x3d4101=>!_0x3d4101['is']('element','listItem')||_0x3d4101['getAttribute']('listType')!=_0x15dc30);const _0x39def6=new Set();for(const _0x1abbfa of _0x581a69)_0x1abbfa['is']('element','listItem')?_0x39def6['add'](Le(_0x1abbfa)):_0x39def6['add'](_0x1abbfa);return Array['from'](_0x39def6);}(_0xb15c3b['getSelectedBlocks'](),_0x550b3d,_0x481b52['model']['schema']);_0x481b52['model']['change'](()=>{for(const _0x255787 of _0x43f8c4)_0x36f11e['markBlockFormat'](_0x255787,{'commandName':_0x390f21,'commandParams':[{'forceValue':!_0x2fc83c['value']}],'formatGroupId':'blockName'},Ee(_0x255787));});};}function _0x546dd8(_0x1120ff){return()=>{const _0x1c66bc=function(_0xe13fc9){let _0x2218ec=Array['from'](_0xe13fc9);const _0xf4ade7=_0x2218ec['findIndex'](_0x9c224d=>'listItem'!=_0x9c224d['name']);return _0xf4ade7>-0x1&&(_0x2218ec=_0x2218ec['slice'](0x0,_0xf4ade7)),_0x2218ec;}(_0x481b52['model']['document']['selection']['getSelectedBlocks']()),_0x2c8388=_0x481b52['model']['createRange'](_0x481b52['model']['createPositionAt'](_0x1c66bc[0x0],'before'),_0x481b52['model']['createPositionAt'](_0x1c66bc[_0x1c66bc['length']-0x1],'end'));_0x481b52['model']['change'](()=>{_0x36f11e['markBlockFormat'](_0x2c8388,{'commandName':_0x1120ff,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4895d8){const _0x240d2e=new Set();for(const _0x152252 of _0x4895d8){let _0x48760d=_0x152252['nextSibling'];for(;_0x48760d&&_0x48760d['getAttribute']('listIndent')>_0x152252['getAttribute']('listIndent');)_0x240d2e['add'](_0x48760d),_0x48760d=_0x48760d['nextSibling'];}return Array['from'](_0x240d2e);}(_0x1c66bc));});};}_0x36f11e['enableCommand']('numberedList',_0x121c67('numberedList')),_0x36f11e['enableCommand']('bulletedList',_0x121c67('bulletedList')),_0x5d626f&&_0x36f11e['enableCommand']('todoList',_0x121c67('todoList')),_0x36f11e['enableCommand']('indentList',_0x546dd8('indentList')),_0x36f11e['enableCommand']('outdentList',_0x546dd8('outdentList')),_0x5d626f&&_0x36f11e['enableCommand']('checkTodoList',()=>{const _0x2f96eb=_0x481b52['commands']['get']('checkTodoList'),_0x10c0ee=Array['from'](_0x2f96eb['_selectedElements']);_0x10c0ee['filter'](_0x5442c7=>_0x5442c7['getAttribute']('todoListChecked')!=_0x2f96eb['value']),_0x481b52['model']['change'](()=>{for(const _0x1fe943 of _0x10c0ee)_0x36f11e['markBlockFormat'](_0x1fe943,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2f96eb['value']}]});});}),_0x36f11e['descriptionFactory']['registerElementLabel']('listItem',_0x21543e=>o(_0x145324,'ELEMENT_LIST_ITEM',_0x21543e)),_0x36f11e['descriptionFactory']['registerDescriptionCallback'](_0x3dfa6e=>{if('formatBlock'!=_0x3dfa6e['type']&&'formatInline'!=_0x3dfa6e['type'])return;const {data:_0x1cc9c8}=_0x3dfa6e;if(_0x1cc9c8){if('numberedList'==_0x1cc9c8['commandName']||'bulletedList'==_0x1cc9c8['commandName']||'todoList'==_0x1cc9c8['commandName'])switch(_0x1cc9c8['commandName']['replace']('List','')){case'bulleted':return _0x1efdb5(o(_0x145324,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1efdb5(o(_0x145324,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1efdb5(o(_0x145324,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1cc9c8['commandName'])return{'type':'format','content':o(_0x145324,'*Indent:*\x20%0',o(_0x145324,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1cc9c8['commandName'])return{'type':'format','content':o(_0x145324,'*Outdent:*\x20%0',o(_0x145324,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1cc9c8['commandName'])return _0x1cc9c8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x145324,'*Check\x20item*')}:{'type':'format','content':o(_0x145324,'*Uncheck\x20item*')};}function _0x1efdb5(_0x3a2bc7){return{'type':'format','content':o(_0x145324,'*Change\x20to:*\x20%0',_0x3a2bc7)};}});}}function Le(_0x3340a){const _0x43101f=_0x3340a['getAttribute']('listIndent');if(0x0==_0x43101f)return _0x3340a;let _0x2cc4c4=_0x3340a;for(;_0x3340a['previousSibling']&&_0x3340a['previousSibling']['is']('element','listItem');){const _0x138522=_0x3340a['previousSibling']['getAttribute']('listIndent');if(_0x138522==_0x43101f)_0x2cc4c4=_0x3340a['previousSibling'];else{if(_0x138522<_0x43101f)break;}_0x3340a=_0x3340a['previousSibling'];}return _0x2cc4c4;}function Ee(_0x2d7963){const _0x480c8a=[];if(_0x2d7963['is']('element','listItem')&&_0x2d7963['getAttribute']('listIndent')>0x0){let _0x547adf=_0x2d7963['nextSibling'];for(;_0x547adf&&'listItem'==_0x547adf['name']&&_0x547adf['getAttribute']('listIndent')==_0x2d7963['getAttribute']('listIndent');)_0x480c8a['push'](_0x547adf),_0x547adf=_0x547adf['nextSibling'];}return _0x480c8a;}class Q extends _0xa4b53f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1bdc2f=this['editor']['config']['get']('list.properties'),_0x1dc768=this['editor']['plugins']['get']('TrackChangesEditing');_0x1bdc2f['styles']&&_0x1dc768['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1bdc2f['reversed']&&_0x1dc768['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1bdc2f['startIndex']&&_0x1dc768['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1dc768['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x199be2,_0x29c814={}){const _0x1aca22=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53e587=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1aca22['markMultiRangeBlockFormat'](_0x53e587,{'commandName':'listStyle','commandParams':[{'type':_0x29c814['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x939c3f,_0x216d21={}){const _0x413fc3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ccfb0=this['_getSuggestionBlocks'](_0x5b098b=>_0x5b098b['is']('element','listItem')&&'numbered'===_0x5b098b['getAttribute']('listType'));if(_0x3ccfb0['length']<0x1)return;const _0x38090b=_0x3ccfb0['map'](_0x565d03=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x565d03,'before'),this['editor']['model']['createPositionAt'](_0x565d03,0x0)));this['editor']['model']['change'](()=>{_0x413fc3['markMultiRangeBlockFormat'](_0x38090b,{'commandName':'listReversed','commandParams':[{'reversed':_0x216d21['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x227b8d,_0x16fe68={}){const _0x4403aa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d597b=this['_getSuggestionBlocks'](_0x1ee903=>_0x1ee903['is']('element','listItem')&&'numbered'===_0x1ee903['getAttribute']('listType'));if(_0x3d597b['length']<0x1)return;const _0x864a17=_0x3d597b['map'](_0x358bf9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x358bf9,'before'),this['editor']['model']['createPositionAt'](_0x358bf9,0x0)));this['editor']['model']['change'](()=>{_0x4403aa['markMultiRangeBlockFormat'](_0x864a17,{'commandName':'listStart','commandParams':[{'startIndex':_0x16fe68['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5e4608){if('formatBlock'!=_0x5e4608['type']&&'formatInline'!=_0x5e4608['type'])return;const _0x1cf28c=this['editor']['locale'],{data:_0x8f4501}=_0x5e4608;if(!_0x8f4501)return;let _0x2ff0b2,_0xf5b690;switch(_0x8f4501['commandName']){case'listStyle':_0x2ff0b2='*Change\x20to:*\x20%0',_0xf5b690={'type':'format','content':o(_0x1cf28c,_0x2ff0b2,o(_0x1cf28c,this['_getTranslationKeyForListStyle'](_0x8f4501['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2ff0b2=_0x8f4501['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xf5b690={'type':'format','content':o(_0x1cf28c,_0x2ff0b2)};break;case'listStart':_0x2ff0b2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xf5b690={'type':'format','content':o(_0x1cf28c,_0x2ff0b2,_0x8f4501['commandParams'][0x0]['startIndex'])};}return _0xf5b690;}['_getSuggestionBlocksForListStyle'](){const _0x1e3fac=this['editor']['plugins']['get']('LegacyListUtils');let _0x3a6dd0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3a6dd0[0x0]?.['is']('element','listItem')&&_0x3a6dd0['unshift'](..._0x1e3fac['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3a6dd0[_0x3a6dd0['length']-0x1]?.['is']('element','listItem')&&_0x3a6dd0['push'](..._0x1e3fac['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3a6dd0=[...new Set(_0x3a6dd0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3a6dd0=_0x3a6dd0['filter'](_0x5e3718=>_0x5e3718['is']('element','listItem'))),_0x3a6dd0;}['_getSuggestionBlocks'](_0xb888e2){const _0x1d24b5=this['editor']['plugins']['get']('LegacyListUtils');let _0x2ba166=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xb888e2)['map'](_0x19674a=>{const _0x19d05c=this['editor']['model']['createPositionAt'](_0x19674a,0x0);return[..._0x1d24b5['getSiblingNodes'](_0x19d05c,'backward'),..._0x1d24b5['getSiblingNodes'](_0x19d05c,'forward')];})['flat']();return _0x2ba166=[...new Set(_0x2ba166)],_0x2ba166;}['_getTranslationKeyForListStyle'](_0x37b175){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x37b175)||'default')['toUpperCase']()+'_LIST_'+_0x37b175['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0xa4b53f{['afterInit'](){const _0x32bb11=this['editor'];if(!_0x32bb11['plugins']['has']('MediaEmbedEditing'))return;const _0x34edfa=_0x32bb11['plugins']['get']('TrackChangesEditing'),_0x1636a1=_0x32bb11['locale'];_0x34edfa['enableCommand']('mediaEmbed'),_0x34edfa['descriptionFactory']['registerElementLabel']('media',_0xf4091f=>o(_0x1636a1,'ELEMENT_MEDIA',_0xf4091f)),_0x32bb11['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4f6645,{writer:_0x45f28a,options:_0x389c4a})=>{if(_0x389c4a['showSuggestionHighlights'])return _0x45f28a['createEmptyElement']('div');},'converterPriority':'high'}),_0x32bb11['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3ab7c6,_0x514b06,_0x5a45bc)=>{_0x5a45bc['options']['showSuggestionHighlights']&&_0x3ab7c6['stop']();},{'priority':'high'});}}class pt extends _0xa4b53f{['afterInit'](){const _0x86f331=this['editor'];_0x86f331['plugins']['has']('MentionEditing')&&_0x86f331['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0xa4b53f{['afterInit'](){const _0xca87f9=this['editor'];if(!_0xca87f9['plugins']['has']('MergeFieldsEditing'))return;const _0x24ec8b=_0xca87f9['plugins']['get']('TrackChangesEditing'),_0x2c24eb=_0xca87f9['locale'];_0x24ec8b['enableCommand']('insertMergeField'),_0x24ec8b['enableCommand']('insertMergeFieldBlock'),_0x24ec8b['enableCommand']('insertMergeFieldImage'),_0x24ec8b['descriptionFactory']['registerElementLabel']('mergeField',_0x16e2a6=>o(_0x2c24eb,'ELEMENT_MERGE_FIELD',_0x16e2a6)),_0x24ec8b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4509d8=>o(_0x2c24eb,'ELEMENT_MERGE_FIELD',_0x4509d8)),_0x24ec8b['descriptionFactory']['registerDescriptionCallback'](_0x1b85c7=>{if('insertion'!=_0x1b85c7['type']&&'deletion'!=_0x1b85c7['type'])return;const _0x3b6adb=_0x1b85c7['getContainedElement']();if(null==_0x3b6adb)return;const _0x52e5ea=_0xca87f9['plugins']['get']('MergeFieldsEditing');let _0x50ba91;switch(_0x52e5ea['getMergeFieldType'](_0x3b6adb)){case null:return;case'image':{const _0x4777f2=_0x52e5ea['unwrapAffixes'](_0x3b6adb['getAttribute']('src'));_0x50ba91=_0x52e5ea['getLabel'](_0x4777f2)||_0x4777f2;break;}default:{const _0x390911=_0x3b6adb['getAttribute']('id');_0x50ba91=_0x52e5ea['getLabel'](_0x390911)||_0x390911;break;}}return'insertion'==_0x1b85c7['type']?{'type':'insertion','content':o(_0x2c24eb,'*Insert:*\x20%0','\x22'+_0x50ba91+'\x22\x20'+o(_0x2c24eb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2c24eb,'*Remove:*\x20%0','\x22'+_0x50ba91+'\x22\x20'+o(_0x2c24eb,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0xa4b53f{['afterInit'](){const _0x272436=this['editor'],_0xb1a142=_0x272436['plugins']['get']('TrackChangesEditing');_0x272436['plugins']['has']('MultiLevelList')&&(_0xb1a142['enableDefaultAttributesIntegration']('multiLevelList'),_0xb1a142['registerBlockAttribute']('listMarkerStyle'),_0xb1a142['descriptionFactory']['registerDescriptionCallback'](_0x416546=>this['handleDescriptions'](_0x416546)));}['handleDescriptions'](_0x3a5bdf){const _0x2e5426=this['editor']['locale'],{data:_0x2e1914}=_0x3a5bdf,_0x2a37dd={'type':'format','content':''};if(_0x2e1914&&'listMarkerStyle'==_0x2e1914['key']){if(!_0x2e1914['oldValue'])return{'type':'format','content':o(_0x2e5426,'*Set\x20format:*\x20%0',o(_0x2e5426,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e1914['newValue']+')'};if(!_0x2e1914['newValue']){let _0x3d0c9c=_0x3a5bdf['head'];for(;_0x3d0c9c;){if(_0x3d0c9c['data']&&'listType'==_0x3d0c9c['data']['key']&&_0x3d0c9c['data']['newValue'])return _0x2a37dd;_0x3d0c9c=_0x3d0c9c['next'];}return{'type':'format','content':o(_0x2e5426,'*Remove\x20format:*\x20%0',o(_0x2e5426,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e1914['oldValue']+')'};}}}}class bt extends _0xa4b53f{['afterInit'](){const _0x18969d=this['editor'];if(!_0x18969d['plugins']['has']('PageBreakEditing'))return;_0x18969d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4ae5cb=_0x18969d['plugins']['get']('TrackChangesEditing'),_0x71aa73=_0x18969d['locale'];_0x4ae5cb['descriptionFactory']['registerElementLabel']('pageBreak',_0x5dd5cc=>o(_0x71aa73,'ELEMENT_PAGE_BREAK',_0x5dd5cc));}}class yt extends _0xa4b53f{['afterInit'](){const _0x5a0529=this['editor'];if(!_0x5a0529['plugins']['has']('Paragraph'))return;const _0xc787c7=_0x5a0529['locale'],_0x52017b=_0x5a0529['plugins']['get']('TrackChangesEditing');_0x52017b['descriptionFactory']['registerElementLabel']('paragraph',_0x570209=>o(_0xc787c7,'ELEMENT_PARAGRAPH',_0x570209)),_0x52017b['enableDefaultAttributesIntegration']('paragraph'),_0x52017b['enableCommand']('insertParagraph'),_0x5a0529['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5a0529),{'priority':'highest'}),_0x5a0529['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x28dfeb,_0x9473ab,_0x2f97bc)=>{_0x2f97bc['options']['showSuggestionHighlights']&&nr(_0x5a0529,{'showActiveMarker':!0x1})(_0x28dfeb,_0x9473ab,_0x2f97bc);},{'priority':'highest'});const _0x14541d=_0x52017b['descriptionFactory'];_0x14541d['registerDescriptionCallback'](_0x4f4463=>{if('insertion'!==_0x4f4463['type'])return;const {start:_0x448aaf,end:_0x2fe50a}=_0x4f4463['getFirstRange']();if(!_0x448aaf['isTouching'](_0x2fe50a)||!_0x448aaf['nodeAfter'])return;const _0x1d8a48=_0x5a0529['model']['schema'],_0x3b79f7=_0x448aaf['nodeAfter'];return _0x1d8a48['isBlock'](_0x3b79f7)&&!_0x1d8a48['isLimit'](_0x3b79f7)&&_0x1d8a48['checkChild'](_0x3b79f7,'$text')?{'type':'insertion','content':o(_0xc787c7,'*Insert:*\x20%0',_0x14541d['getItemLabel'](_0x3b79f7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f59c7=this['editor'],_0x2c610f=_0x5f59c7['locale'];_0x5f59c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ff505=>{if('formatBlock'!=_0x1ff505['type'])return;const {data:_0x3776fb}=_0x1ff505;return _0x3776fb&&'paragraph'==_0x3776fb['commandName']?{'type':'format','content':o(_0x2c610f,'*Change\x20to:*\x20%0',o(_0x2c610f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x137314,{showActiveMarker:_0x5f2993=!0x0}={}){return(_0x4576d9,_0x35d608,_0x338a98)=>{const _0x135e10=_0x137314['plugins']['get']('TrackChangesEditing'),_0x54cca0=_0x35d608['markerRange']['start'],_0x431c9c=_0x35d608['markerRange']['end'],_0x1d2c2a=_0x137314['model']['schema'];if(!_0x54cca0['isTouching'](_0x431c9c)||!_0x54cca0['nodeAfter'])return;const _0x509187=_0x54cca0['nodeAfter'];if(_0x1d2c2a['isBlock'](_0x509187)&&!_0x1d2c2a['isLimit'](_0x509187)&&_0x1d2c2a['checkChild'](_0x509187,'$text')){if(!_0x338a98['consumable']['consume'](_0x35d608['markerRange'],_0x4576d9['name']))return;const {authorId:_0x4ac227}=_0x135e10['_splitMarkerName'](_0x35d608['markerName']),_0x3c4774=_0x338a98['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4ac227}),_0x46b891=_0x338a98['mapper']['toViewPosition'](_0x431c9c);_0x5f2993&&_0x135e10['activeMarkers']['includes'](_0x35d608['markerName'])&&_0x338a98['writer']['addClass']('ck-suggestion-marker--active',_0x3c4774),_0x338a98['writer']['insert'](_0x46b891,_0x3c4774),_0x338a98['mapper']['bindElementToMarker'](_0x3c4774,_0x35d608['markerName']);}};}class jt extends _0xa4b53f{['afterInit'](){const _0x2673d4=this['editor'];_0x2673d4['commands']['get']('replaceSource')&&_0x2673d4['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0xa4b53f{['afterInit'](){const _0x3dcbff=this['editor'];if(!_0x3dcbff['plugins']['has']('RemoveFormatEditing'))return;_0x3dcbff['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe9506d=this['editor'];_0xe9506d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x392a9d=>{if('formatBlock'!=_0x392a9d['type']&&'formatInline'!=_0x392a9d['type'])return;const {data:_0x34a892}=_0x392a9d;return _0x34a892&&'removeFormat'==_0x34a892['commandName']?{'type':'format','content':o(_0xe9506d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0xa4b53f{['afterInit'](){const _0x49173c=this['editor'];if(!_0x49173c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x421716=_0x49173c['plugins']['get']('TrackChangesEditing');_0x421716['enableCommand']('goToPreviousRestrictedEditingException'),_0x421716['enableCommand']('goToNextRestrictedEditingException');const _0x650577=_0x49173c['plugins']['get']('RestrictedEditingModeEditing');_0x650577['enableCommand']('trackChanges'),_0x650577['enableCommand']('acceptSuggestion'),_0x650577['enableCommand']('discardSuggestion'),_0x650577['enableCommand']('acceptAllSuggestions'),_0x650577['enableCommand']('discardAllSuggestions'),_0x650577['enableCommand']('acceptSelectedSuggestions'),_0x650577['enableCommand']('discardSelectedSuggestions');}}class It extends _0xa4b53f{static get['requires'](){return[_0x9d657b];}['init'](){const _0x43fc=this['editor'],_0x106597=_0x43fc['plugins']['get']('TrackChangesEditing');_0x106597['enableCommand']('shiftEnter'),_0x43fc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x43fc),{'priority':'high'}),_0x43fc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x43fc),{'priority':'high'}),_0x43fc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50ae5a,_0xb59b49,_0x55546e)=>{_0x55546e['options']['showSuggestionHighlights']&&je(_0x43fc,{'showActiveMarker':!0x1})(_0x50ae5a,_0xb59b49,_0x55546e);}),_0x106597['descriptionFactory']['registerElementLabel']('softBreak',_0x45a14a=>o(_0x43fc['locale'],'ELEMENT_LINE_BREAK',_0x45a14a));}}function je(_0xd0b2e5,{showActiveMarker:_0x3debf6=!0x0}={}){return(_0x55128c,_0x309c1f,_0x5e645c)=>{const _0x1937bf=_0xd0b2e5['plugins']['get']('TrackChangesEditing');if(!_0x5e645c['consumable']['test'](_0x309c1f['markerRange'],_0x55128c['name']))return;const _0x50c844=_0xd0b2e5['model'];for(const _0x2fc62a of _0x309c1f['markerRange']['getItems']()){if(!_0x2fc62a['is']('element','softBreak'))continue;const _0x1a29ba='deletion'==_0x309c1f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x51d1cf}=_0x1937bf['_splitMarkerName'](_0x309c1f['markerName']),_0x3af6b7=_0x5e645c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1a29ba,'data-author-id':_0x51d1cf}),_0x49ca95=_0x5e645c['mapper']['toViewPosition'](_0x50c844['createPositionBefore'](_0x2fc62a));_0x3debf6&&_0x1937bf['activeMarkers']['includes'](_0x309c1f['markerName'])&&_0x5e645c['writer']['addClass']('ck-suggestion-marker--active',_0x3af6b7),_0x5e645c['writer']['insert'](_0x49ca95,_0x3af6b7),_0x5e645c['mapper']['bindElementToMarker'](_0x3af6b7,_0x309c1f['markerName']);}};}class vt extends _0xa4b53f{['afterInit'](){const _0x27fa8d=this['editor'],_0x510fef=_0x27fa8d['model'],_0x5e34f5=_0x27fa8d['locale'];if(!_0x27fa8d['plugins']['has']('StandardEditingModeEditing'))return;const _0x4673bc=_0x27fa8d['plugins']['get']('TrackChangesEditing'),_0x253ec9='restrictedEditingException',_0x239947=_0x27fa8d['commands']['get'](_0x253ec9);_0x4673bc['enableCommand'](_0x253ec9,(_0x565c68,_0x285d8c={})=>{const _0x38d200=_0x510fef['document']['selection'];if(_0x38d200['isCollapsed'])return void _0x565c68(_0x285d8c);const _0x135769=void 0x0!==_0x285d8c['forceValue']?_0x285d8c['forceValue']:!_0x239947['value'];_0x510fef['change'](()=>{const _0x2015cc=Array['from'](_0x38d200['getRanges']());for(const _0x3c61fb of _0x2015cc){const _0x5c3548=_0x135769?[_0x3c61fb]:io(_0x253ec9,_0x3c61fb,_0x510fef);for(const _0x1a2f72 of _0x5c3548)_0x4673bc['markInlineFormat'](_0x1a2f72,{'commandName':_0x253ec9,'commandParams':[{'forceValue':_0x135769}]});}});}),_0x4673bc['descriptionFactory']['registerDescriptionCallback'](_0x3dc14c=>{if('formatBlock'!=_0x3dc14c['type']&&'formatInline'!=_0x3dc14c['type'])return;const {data:_0x465fb1}=_0x3dc14c;return _0x465fb1&&_0x465fb1['commandName']==_0x253ec9?_0x465fb1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e34f5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5e34f5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0xa4b53f{['afterInit'](){const _0x271b53=this['editor'];if(!_0x271b53['plugins']['has']('Style')||!_0x271b53['plugins']['has']('DataSchema'))return;const _0x4dc101=_0x271b53['plugins']['get']('TrackChangesEditing'),_0x151cf7=_0x271b53['locale'],_0x501561=_0x271b53['config']['get']('style')||{},_0x5ceb80=_0x271b53['plugins']['get']('GeneralHtmlSupport'),_0x4f9607=_0x271b53['plugins']['get']('StyleUtils')['normalizeConfig'](_0x271b53['plugins']['get']('DataSchema'),_0x501561['definitions']);_0x4dc101['enableDefaultAttributesIntegration']('style');const _0x271240=new Set();for(const _0xafd7fa of _0x4f9607['block']){const _0x50269a=_0x5ceb80['getGhsAttributeNameForElement'](_0xafd7fa['element']);_0x271240['add'](_0x50269a);}const _0x1f9298=new Set();for(const _0x2c8263 of _0x4f9607['inline']){const _0x2e2d66=_0x5ceb80['getGhsAttributeNameForElement'](_0x2c8263['element']);_0x1f9298['add'](_0x2e2d66);for(const _0x5f0a88 of _0x2c8263['ghsAttributes'])_0x1f9298['add'](_0x5f0a88);}for(const _0x35a6df of _0x271240)_0x4dc101['registerBlockAttribute'](_0x35a6df),_0x4dc101['descriptionFactory']['registerAttributeLabel'](_0x35a6df,o(_0x151cf7,'FORMAT_STYLE'));for(const _0x249815 of _0x1f9298)_0x4dc101['registerInlineAttribute'](_0x249815),_0x4dc101['descriptionFactory']['registerAttributeLabel'](_0x249815,o(_0x151cf7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x196be6=this['editor'],_0x446f96=_0x196be6['locale'];_0x196be6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x487dd1=>{if('formatBlock'!=_0x487dd1['type']&&'formatInline'!=_0x487dd1['type'])return;const {data:_0x414b37}=_0x487dd1;return _0x414b37&&'style'===_0x414b37['commandName']?_0x414b37['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x446f96,'*Set\x20format:*\x20%0',_0x414b37['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x446f96,'*Remove\x20format:*\x20%0',_0x414b37['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0xa4b53f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2639dc){super(_0x2639dc),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5e2bd5=this['editor'],_0x2507e4=_0x5e2bd5['model']['document']['selection'];if(!_0x5e2bd5['plugins']['has']('TableEditing'))return;const _0x469947=_0x5e2bd5['locale'],_0x31ebcc=_0x5e2bd5['plugins']['get']('TrackChangesEditing'),_0x41c1fb=_0x5e2bd5['plugins']['get']('TableUtils');_0x31ebcc['descriptionFactory']['registerElementLabel']('table',_0x4dc3d5=>o(_0x469947,'ELEMENT_TABLE',_0x4dc3d5)),this['_setupColumnsRowsFixing'](),_0x31ebcc['enableCommand']('insertTable'),_0x31ebcc['enableCommand']('selectTableRow'),_0x31ebcc['enableCommand']('selectTableColumn');for(const _0x5b2449 of['insertTableRowAbove','insertTableRowBelow']){const _0x2f0dc1=_0x5e2bd5['commands']['get'](_0x5b2449);_0x31ebcc['enableCommand'](_0x5b2449,_0x5941df=>{_0x5e2bd5['model']['change'](_0x563281=>{_0x5941df();const _0x568b2d='above'===_0x2f0dc1['order'],_0xd7d920=_0x41c1fb['getSelectionAffectedTableCells'](_0x2507e4),_0x8cf2c0=_0x41c1fb['getRowIndexes'](_0xd7d920),_0x46174a=_0x568b2d?_0x8cf2c0['first']-0x1:_0x8cf2c0['last']+0x1,_0x3a6251=_0xd7d920[0x0]['findAncestor']('table'),_0x1aa4bf=_0x41c1fb['createTableWalker'](_0x3a6251,{'startRow':_0x46174a,'endRow':_0x46174a}),_0x51c38a=Array['from'](_0x1aa4bf)['map'](_0x489fb9=>_0x563281['createRangeOn'](_0x489fb9['cell']));_0x31ebcc['markMultiRangeInsertion'](_0x51c38a,'tableRow');});});}for(const _0x1448a7 of['insertTableColumnLeft','insertTableColumnRight']){const _0x34252a=_0x5e2bd5['commands']['get'](_0x1448a7);_0x31ebcc['enableCommand'](_0x1448a7,_0x52511c=>{_0x5e2bd5['model']['change'](_0x54bb0e=>{_0x52511c();const _0x47779b='left'===_0x34252a['order'],_0x2a68e1=_0x41c1fb['getSelectionAffectedTableCells'](_0x2507e4),_0x75f631=_0x41c1fb['getColumnIndexes'](_0x2a68e1),_0x5a4bcb=_0x47779b?_0x75f631['first']-0x1:_0x75f631['last']+0x1,_0x4d6678=_0x2a68e1[0x0]['findAncestor']('table'),_0x50f5ad=_0x41c1fb['createTableWalker'](_0x4d6678,{'startRow':0x0,'column':_0x5a4bcb,'includeAllSlots':!0x1}),_0x4606ca=Array['from'](_0x50f5ad)['map'](_0x2bc132=>_0x54bb0e['createRangeOn'](_0x2bc132['cell']));_0x31ebcc['markMultiRangeInsertion'](_0x4606ca,'tableColumn');});});}for(const _0x588711 of['removeTableRow','removeTableColumn']){const _0x90bbb7=_0x588711['substr'](0xb),_0x52c22d=_0x90bbb7['toLowerCase'](),_0x498eff=_0x52c22d['substr'](0x0,0x3)+'span',_0x272789='table'+_0x90bbb7,_0x58aed8='min'+_0x90bbb7,_0x184a6c='max'+_0x90bbb7;_0x31ebcc['enableCommand'](_0x588711,()=>{_0x5e2bd5['model']['change'](_0x5c5ffc=>{const _0x53a7c3=_0x41c1fb['getSelectionAffectedTableCells'](_0x2507e4),_0x4d8b49=_0x53a7c3[0x0]['findAncestor']('table');let _0x592097;if('removeTableRow'==_0x588711){const _0x3a1850=_0x41c1fb['getRowIndexes'](_0x53a7c3);_0x592097={'startRow':_0x3a1850['first'],'endRow':_0x3a1850['last'],'includeAllSlots':!0x0};}else{const _0x1678d9=_0x41c1fb['getColumnIndexes'](_0x53a7c3);_0x592097={'startColumn':_0x1678d9['first'],'endColumn':_0x1678d9['last'],'includeAllSlots':!0x0};}const _0xdb4ec=_0x41c1fb['createTableWalker'](_0x4d8b49,_0x592097),_0x5615dd=Array['from'](_0xdb4ec)['map'](({cell:_0x383c7d})=>_0x383c7d),_0x22efc8=Ne(_0x5615dd['filter'](_0x3b1242=>_0x3b1242['hasAttribute'](_0x498eff))),_0x5e20c1=Ne(_0x5615dd['filter'](_0x593a78=>!_0x593a78['hasAttribute'](_0x498eff)))['map'](_0x3247d3=>_0x5c5ffc['createRangeOn'](_0x3247d3)),_0x3b7b61=_0x31ebcc['markMultiRangeDeletion'](_0x5e20c1,_0x272789);if(_0x3b7b61&&('tableRow'==_0x3b7b61['subType']||'tableColumn'==_0x3b7b61['subType'])){const _0x94fe90=this['_getSuggestionCoords'](_0x3b7b61);for(const _0x25eb3a of _0x22efc8){const _0x16d7dc=_0x5c5ffc['createRangeOn'](_0x25eb3a),_0x5de48a=_0x41c1fb['getCellLocation'](_0x25eb3a),_0x3e1d67=_0x25eb3a['getAttribute'](_0x498eff)-0x1,_0x56489e=_0x94fe90[_0x58aed8],_0x4073d5=_0x94fe90[_0x184a6c];_0x56489e<=_0x5de48a[_0x52c22d]&&_0x5de48a[_0x52c22d]+_0x3e1d67<=_0x4073d5&&_0x3b7b61['addRange'](_0x16d7dc);}}});});}function _0x398180(_0x514bde){const _0x4c8377=Array['from'](_0x2507e4['getRanges']())['map'](_0x8764ca=>_0x4f46eb['fromRange'](_0x8764ca));_0x5e2bd5['model']['change'](_0x2e87b9=>{const _0x259704=_0x2e87b9['batch'];_0x514bde=_0x514bde['filter'](_0x1a398b=>'$graveyard'!=_0x1a398b['root']['rootName']),_0x2e87b9['setSelection'](_0x514bde),_0x5e2bd5['commands']['get']('removeTableRow')['refresh'](),_0x5e2bd5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5e2bd5['model']['enqueueChange'](()=>{_0x5e2bd5['model']['enqueueChange'](_0x259704,_0x26a0ee=>{const _0x3040e7=_0x4c8377['filter'](_0x3334ec=>'$graveyard'!=_0x3334ec['root']['rootName']);_0x3040e7['length']>0x0&&_0x26a0ee['setSelection'](_0x3040e7);for(const _0x41f612 of _0x4c8377)_0x41f612['detach']();});});});}function _0x46c609(_0x349cc4){_0x5e2bd5['model']['change'](_0x5602b6=>{const _0xce6b85=Array['from'](_0x2507e4['getRanges']())['map'](_0x3a8381=>_0x4f46eb['fromRange'](_0x3a8381)),_0x34949e=[];for(const _0x95d2a9 of _0x349cc4)for(const _0x237cbc of _0x95d2a9['getItems']({'shallow':!0x0}))_0x34949e['push'](_0x237cbc);for(const _0x3a2a30 of _0x34949e)'$graveyard'!=_0x3a2a30['root']['rootName']&&(_0x5602b6['setSelection'](_0x5602b6['createPositionAt'](_0x3a2a30,0x0)),_0x5e2bd5['commands']['get']('removeTableColumn')['refresh'](),_0x5e2bd5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1682de=_0xce6b85['filter'](_0x4a1248=>'$graveyard'!=_0x4a1248['root']['rootName']);_0x1682de['length']>0x0&&_0x5602b6['setSelection'](_0x1682de);for(const _0x44b2a0 of _0xce6b85)_0x44b2a0['detach']();});}function _0x5bcf59(_0x1bde64,_0x332923){return _0x332923['every'](_0x37f491=>_0x1bde64['some'](_0x42229e=>_0x42229e['end']['isEqual'](_0x37f491['start'])||_0x37f491['end']['isEqual'](_0x42229e['start'])));}function _0x45c108(_0x3d7668,_0x291a1d){return!_0x3d7668['some'](_0x511a0a=>_0x291a1d['some'](_0x453653=>_0x511a0a['isIntersecting'](_0x453653)))&&_0x3d7668['some'](_0x3e23b9=>_0x291a1d['some'](_0x330e5c=>_0x3e23b9['end']['isTouching'](_0x330e5c['start'])));}_0x5e2bd5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x569a40,_0x6ce307,_0x27252c)=>{if(!_0x27252c['options']['showSuggestionHighlights'])return;const _0x4342f6=_0x6ce307['item'];if(!_0x4342f6)return;const _0x27785c=_0x27252c['mapper']['toViewElement'](_0x4342f6);function _0x54926a(_0xd1e5ad){return Array['isArray'](_0xd1e5ad)?_0xd1e5ad:[_0xd1e5ad];}_0x27785c&&'tableCell'===_0x4342f6['name']&&_0x5cfe2f(_0x27785c,_0x27252c['writer'],(_0x7695d1,_0xf37c3,_0x5d8d83)=>_0x5d8d83['addClass'](_0x54926a(_0xf37c3['classes']),_0x7695d1),(_0x5767db,_0x4ea00e,_0x23b46c)=>_0x23b46c['removeClass'](_0x54926a(_0x4ea00e['classes']),_0x5767db));},{'priority':'highest'}),_0x31ebcc['descriptionFactory']['registerDescriptionCallback'](_0x172c86=>{if('insertion'!=_0x172c86['type']&&'deletion'!=_0x172c86['type'])return;const _0x2d92b4=_0x172c86['getContainedElement']();if(null!=_0x2d92b4&&_0x2d92b4['is']('element','table')){if('insertion'==_0x172c86['type']){const _0x271c2f=_0x172c86['getItems']()['filter'](_0x70cd20=>_0x70cd20['is']('$textProxy'))['map'](_0x4ba479=>_0x4ba479['data']);if(_0x271c2f['length'])return{'type':'insertion','content':o(_0x469947,'*Insert:*\x20%0',o(_0x469947,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x271c2f['join']('\x20')+'\x22'))};}if('deletion'==_0x172c86['type']){const _0x215214=_0x172c86['getItems']()['filter'](_0xf07816=>_0xf07816['is']('$textProxy'))['map'](_0x17f3f1=>_0x17f3f1['data']);if(_0x215214['length'])return{'type':'deletion','content':o(_0x469947,'*Remove:*\x20%0',o(_0x469947,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x215214['join']('\x20')+'\x22'))};}}}),_0x31ebcc['descriptionFactory']['registerDescriptionCallback'](_0x23f2b2=>{if('tableRow'==_0x23f2b2['subType']){const _0x38d05c=_0x23f2b2['getItems']()['filter'](_0x4f6a5e=>_0x4f6a5e['is']('$textProxy'))['map'](_0x14ce80=>_0x14ce80['data']),_0xf1fc10=this['_getSuggestionCoords'](_0x23f2b2),_0x551f51=_0xf1fc10['maxRow']-_0xf1fc10['minRow']+0x1;if('insertion'==_0x23f2b2['type'])return _0x38d05c['length']?{'type':'insertion','content':o(_0x469947,'*Insert:*\x20%0',o(_0x469947,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x551f51,'\x22'+_0x38d05c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x469947,'*Insert:*\x20%0',o(_0x469947,'ELEMENT_TABLE_ROW',_0x551f51))};if('deletion'==_0x23f2b2['type'])return _0x38d05c['length']?{'type':'deletion','content':o(_0x469947,'*Remove:*\x20%0',o(_0x469947,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x551f51,'\x22'+_0x38d05c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x469947,'*Remove:*\x20%0',o(_0x469947,'ELEMENT_TABLE_ROW',_0x551f51))};}if('tableColumn'==_0x23f2b2['subType']){const _0xfd880b=_0x23f2b2['getItems']()['filter'](_0x20974f=>_0x20974f['is']('$textProxy'))['map'](_0x311b28=>_0x311b28['data']),_0x5c74c1=this['_getSuggestionCoords'](_0x23f2b2),_0xdd064b=_0x5c74c1['maxColumn']-_0x5c74c1['minColumn']+0x1;if('insertion'==_0x23f2b2['type'])return _0xfd880b['length']?{'type':'insertion','content':o(_0x469947,'*Insert:*\x20%0',o(_0x469947,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdd064b,'\x22'+_0xfd880b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x469947,'*Insert:*\x20%0',o(_0x469947,'ELEMENT_TABLE_COLUMN',_0xdd064b))};if('deletion'==_0x23f2b2['type'])return _0xfd880b['length']?{'type':'deletion','content':o(_0x469947,'*Remove:*\x20%0',o(_0x469947,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdd064b,'\x22'+_0xfd880b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x469947,'*Remove:*\x20%0',o(_0x469947,'ELEMENT_TABLE_COLUMN',_0xdd064b))};}}),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x398180),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x398180),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x46c609),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x46c609),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5bcf59),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5bcf59),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x45c108),_0x31ebcc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x45c108);}['_acceptFormatSuggestionCallbackFactory'](){const _0x44283e=this['editor'],_0xd6aeac=_0x44283e['model']['document']['selection'];return(_0x4bea63,_0x36ca96)=>{_0x44283e['model']['change'](_0x49c4da=>{const {commandName:_0x34023d,commandParams:_0x4ed502}=_0x36ca96;let _0x3447d5=_0x4bea63[0x0]['end']['nodeBefore'];_0x4ed502&&_0x4ed502[0x0]&&!0x1===_0x4ed502[0x0]['forceValue']&&(_0x3447d5=_0x4bea63[0x0]['start']['nodeAfter']);const _0x2e273f=_0x49c4da['createRangeIn'](_0x3447d5);if('$graveyard'==_0x2e273f['root']['rootName'])return;const _0x53bc63=Array['from'](_0xd6aeac['getRanges']())['map'](_0x2998df=>_0x4f46eb['fromRange'](_0x2998df));_0x49c4da['setSelection'](_0x2e273f),_0x44283e['commands']['get'](_0x34023d)['refresh'](),_0x4ed502['push']({'forceDefaultExecution':!0x0}),_0x44283e['execute'](_0x34023d,..._0x4ed502);const _0x308de7=_0x53bc63['filter'](_0x4c8462=>'$graveyard'!=_0x4c8462['root']['rootName']);_0x308de7['length']>0x0&&_0x49c4da['setSelection'](_0x308de7);for(const _0x4d581f of _0x53bc63)_0x4d581f['detach']();});};}['_getCoordsForCells'](_0xbef91f){const _0x3eee32=this['editor']['plugins']['get']('TableUtils');let _0x5756dc=Number['MAX_SAFE_INTEGER'],_0x3d20a3=Number['MIN_SAFE_INTEGER'],_0x32d331=Number['MAX_SAFE_INTEGER'],_0xd62414=Number['MIN_SAFE_INTEGER'];for(const _0x5a2278 of _0xbef91f){if('$graveyard'==_0x5a2278['root']['rootName'])continue;const {row:_0x322d00,column:_0x535d4f}=_0x3eee32['getCellLocation'](_0x5a2278),_0x18e676=_0x5a2278['hasAttribute']('rowspan')?_0x5a2278['getAttribute']('rowspan')-0x1:0x0,_0x11f012=_0x5a2278['hasAttribute']('colspan')?_0x5a2278['getAttribute']('colspan')-0x1:0x0;_0x5756dc=_0x322d00<_0x5756dc?_0x322d00:_0x5756dc,_0x3d20a3=_0x322d00+_0x18e676>_0x3d20a3?_0x322d00+_0x18e676:_0x3d20a3,_0x32d331=_0x535d4f<_0x32d331?_0x535d4f:_0x32d331,_0xd62414=_0x535d4f+_0x11f012>_0xd62414?_0x535d4f+_0x11f012:_0xd62414;}return{'minRow':_0x5756dc,'maxRow':_0x3d20a3,'minColumn':_0x32d331,'maxColumn':_0xd62414};}['_setupColumnsRowsFixing'](){const _0x401959=this['editor'],_0x21e49d=_0x401959['plugins']['get']('TrackChangesEditing'),_0x57ba45=_0x401959['plugins']['get']('TableUtils');_0x401959['model']['document']['on']('change:data',()=>{const _0x213c88=Array['from'](_0x401959['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d2c46,data:_0xe50f2d}of _0x213c88){const {group:_0x52a4fd,id:_0x353e3b,subType:_0x3a237a}=_0x21e49d['_splitMarkerName'](_0x3d2c46);if('suggestion'!=_0x52a4fd)continue;if(null!=_0xe50f2d['oldRange'])continue;const _0x4a242b=_0x21e49d['getSuggestion'](_0x353e3b);this['_tablePostFixingSubtypes']['includes'](_0x3a237a)&&this['_tableSuggestions']['add'](_0x4a242b);}},{'priority':'low'});const _0x52dc92=(_0x35269e,_0x58d017)=>{let _0x108422=!0x1;const _0x3f4ae1=_0x58d017['createRangeOn'](_0x35269e),_0x419bb3=_0x35269e['findAncestor']('table'),_0x58ac89=_0x57ba45['getCellLocation'](_0x35269e);for(const _0x1e4796 of this['_tableSuggestions']){const _0x5dc2b7=_0x1e4796['subType'],_0x4d8913=_0x5dc2b7['startsWith']('tablePaste'),_0x3da059=_0x5dc2b7['substr'](_0x4d8913?0xa:0x5),_0x542601=_0x3da059['toLowerCase'](),_0x104a39=_0x542601['substr'](0x0,0x3)+'span',_0x148d97='min'+_0x3da059,_0x28b91f='max'+_0x3da059;if(!_0x1e4796['isInContent'])continue;if(_0x419bb3!=_0x1e4796['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1e4796['isIntersectingWithRange'](_0x3f4ae1))continue;const _0x63f2ad=_0x35269e['hasAttribute'](_0x104a39)?_0x35269e['getAttribute'](_0x104a39)-0x1:0x0,_0x129074=this['_getSuggestionCoords'](_0x1e4796),_0x2e510f=_0x129074[_0x148d97],_0x12c708=_0x129074[_0x28b91f];_0x2e510f<=_0x58ac89[_0x542601]&&_0x58ac89[_0x542601]+_0x63f2ad<=_0x12c708&&(_0x1e4796['addRange'](_0x3f4ae1),_0x108422=!0x0);}return _0x108422;};_0x401959['model']['document']['registerPostFixer'](_0x472315=>{let _0x5d516f=!0x1;for(const _0x389e88 of _0x401959['model']['document']['differ']['getChanges']())if('insert'==_0x389e88['type']){if('tableRow'==_0x389e88['name']){for(const _0x120b29 of _0x389e88['position']['nodeAfter']['getChildren']())_0x5d516f=_0x5d516f||_0x52dc92(_0x120b29,_0x472315);}else'tableCell'==_0x389e88['name']&&(_0x5d516f=_0x5d516f||_0x52dc92(_0x389e88['position']['nodeAfter'],_0x472315));}return _0x5d516f;});}['_getSuggestionCoords'](_0x594718){return this['_getCoordsForCells'](_0x594718['getRanges']()['map'](_0x163b70=>_0x163b70['start']['nodeAfter']));}}function Ne(_0x18517b){return Array['from'](new Set(_0x18517b)['values']());}class Nt extends _0xa4b53f{static get['requires'](){return[Ct];}['afterInit'](){const _0x3de926=this['editor'],_0x38a619=_0x3de926['model']['document']['selection'],_0x2b9604=_0x3de926['locale'];if(!_0x3de926['plugins']['has']('TableEditing'))return;const _0x1e64e2=_0x3de926['plugins']['get']('TrackChangesEditing'),_0xdab861=_0x3de926['plugins']['get']('TableUtils'),_0x58b10d=_0x3de926['plugins']['get'](Ct);_0x58b10d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1e64e2['enableCommand']('mergeTableCells',()=>{const _0x566255=_0xdab861['getSelectionAffectedTableCells'](_0x3de926['model']['document']['selection']);_0x3de926['model']['change'](()=>{_0x1e64e2['markMultiRangeBlockFormat'](_0x566255,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3de926['commands']['get']('mergeTableCells')['on']('execute',(_0x2dd887,_0x24ee90)=>{_0x3de926['commands']['get']('trackChanges')['value']&&(_0x24ee90['length']>0x0&&_0x24ee90[_0x24ee90['length']-0x1]&&_0x24ee90[_0x24ee90['length']-0x1]['forceDefaultExecution']||_0x1e64e2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2dd887['stop']());},{'priority':'highest'});for(const _0x3491bd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x245980=_0x3de926['commands']['get'](_0x3491bd);_0x1e64e2['enableCommand'](_0x3491bd,()=>{const _0x5cbcfa=_0x3de926['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x58528e=>_0x58528e['is']('element','tableCell')),_0x248a4a=_0x245980['value'];_0x3de926['model']['change'](()=>{_0x1e64e2['markMultiRangeBlockFormat']([_0x5cbcfa,_0x248a4a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3f0c75 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x34c7df=_0x3de926['commands']['get'](_0x3f0c75);_0x1e64e2['enableCommand'](_0x3f0c75,()=>{const _0x2183b0=_0xdab861['getSelectionAffectedTableCells'](_0x3de926['model']['document']['selection'])[0x0],_0x3b6d1d=_0x2183b0['findAncestor']('table'),{column:_0x50ce4f,row:_0x3b5583}=_0xdab861['getCellLocation'](_0x2183b0);let _0x8b1124=[];if('horizontally'==_0x34c7df['direction']){const _0x597abb=_0xdab861['createTableWalker'](_0x3b6d1d,{'startRow':_0x3b5583,'endRow':_0x3b5583,'includeAllSlots':!0x0});_0x8b1124=Array['from'](_0x597abb)['map'](_0x3e1442=>_0x3e1442['cell']);}else{const _0x480072=_0xdab861['createTableWalker'](_0x3b6d1d,{'column':_0x50ce4f,'includeAllSlots':!0x0});_0x8b1124=Array['from'](_0x480072)['map'](_0x4e324f=>_0x4e324f['cell']);}_0x3de926['model']['change'](_0xa57975=>{_0x1e64e2['markBlockFormat'](_0xa57975['createRangeOn'](_0x2183b0),{'commandName':_0x3f0c75,'commandParams':[]},_0x8b1124,_0x3f0c75);});});}_0x1e64e2['descriptionFactory']['registerDescriptionCallback'](_0x4218ef=>{if('formatBlock'!=_0x4218ef['type']&&'formatInline'!=_0x4218ef['type'])return;const {data:_0x2bd1ff}=_0x4218ef;return _0x2bd1ff&&'mergeTableCells'==_0x2bd1ff['commandName']?{'type':'format','content':o(_0x2b9604,'*Merge\x20cells*')}:void 0x0;}),_0x1e64e2['descriptionFactory']['registerDescriptionCallback'](_0x273db4=>{if('formatBlock'!=_0x273db4['type']&&'formatInline'!=_0x273db4['type'])return;const {data:_0x2a6a44}=_0x273db4;return _0x2a6a44?'splitTableCellVertically'==_0x2a6a44['commandName']?{'type':'format','content':o(_0x2b9604,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2a6a44['commandName']?{'type':'format','content':o(_0x2b9604,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3141e5=_0x58b10d['_acceptFormatSuggestionCallbackFactory']();for(const _0x2ca468 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1e64e2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2ca468,'accept',_0x3141e5);for(const _0x1fc46f of['splitTableCellVertically','splitTableCellHorizontally'])_0x1e64e2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1fc46f,'accept',_0x3141e5);_0x1e64e2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x362520=>{_0x3de926['model']['change'](_0x33f552=>{const _0x21026b=Array['from'](_0x38a619['getRanges']())['map'](_0x53e1cb=>_0x4f46eb['fromRange'](_0x53e1cb));_0x33f552['setSelection'](_0x362520),_0x3de926['commands']['get']('mergeTableCells')['refresh'](),_0x3de926['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x46b602=_0x21026b['filter'](_0x9daec9=>'$graveyard'!=_0x9daec9['root']['rootName']);_0x46b602['length']>0x0&&_0x33f552['setSelection'](_0x46b602);for(const _0xe10f3d of _0x21026b)_0xe10f3d['detach']();});});for(const _0x5e0e3b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3c49cc=_0x3de926['commands']['get'](_0x5e0e3b);_0x3c49cc['on']('set:isEnabled',(_0x203b54,_0x2bb0bb,_0x108bfc)=>{if(_0x108bfc){const _0x548ea4=_0x3de926['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x228437=>_0x228437['is']('element','tableCell'));this['_areMergableCells'](_0x3c49cc['value'],_0x548ea4)||(_0x203b54['return']=!0x1,_0x203b54['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xec7ad8=this['editor']['commands']['get']('mergeTableCells'),_0x44e7ba=this['editor']['plugins']['get']('TableUtils');if(!_0xec7ad8['isEnabled'])return!0x1;const _0x397a6e=_0x44e7ba['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x11dd52 of _0x397a6e)for(const _0x53d581 of _0x397a6e)if(_0x11dd52!=_0x53d581&&!this['_areMergableCells'](_0x11dd52,_0x53d581))return!0x1;return!0x0;}['_areMergableCells'](_0x2b82da,_0x3c0d16){const _0x3730af=this['editor']['plugins']['get']('TrackChangesEditing'),_0xed02e8=this['editor']['model']['createRangeOn'](_0x2b82da),_0x251a91=this['editor']['model']['createRangeOn'](_0x3c0d16),_0x1eefce=new Set(),_0x4f3fc9=new Set();for(const _0x1ad849 of _0x3730af['getSuggestions']())if(('insertion'==_0x1ad849['type']||'deletion'==_0x1ad849['type']||'mergeTableCells'==_0x1ad849['subType'])&&_0x1ad849['isInContent']){for(const _0x5519fa of _0x1ad849['getRanges']())_0x5519fa['containsRange'](_0xed02e8,!0x0)&&_0x1eefce['add'](_0x1ad849['type']+':'+_0x1ad849['author']['id']),_0x5519fa['containsRange'](_0x251a91,!0x0)&&_0x4f3fc9['add'](_0x1ad849['type']+':'+_0x1ad849['author']['id']);}if(_0x1eefce['size']!=_0x4f3fc9['size'])return!0x1;for(const _0x5b1983 of _0x1eefce)if(!_0x4f3fc9['has'](_0x5b1983))return!0x1;return!0x0;}}class Dt extends _0xa4b53f{static get['requires'](){return[Ct];}['afterInit'](){const _0x88ed25=this['editor'];if(!_0x88ed25['plugins']['has']('TableEditing'))return;const _0x4ebdce=_0x88ed25['locale'],_0x219c39=_0x88ed25['plugins']['get']('TrackChangesEditing');_0x219c39['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x219c39['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x219c39['registerBlockAttribute']('headingRows'),_0x219c39['registerBlockAttribute']('headingColumns'),_0x219c39['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4ebdce,'FORMAT_HEADER_ROW')),_0x219c39['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4ebdce,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x595915=this['editor']['plugins']['get']('TrackChangesEditing'),_0x368145=this['editor']['plugins']['get']('TableUtils'),_0x1d621a=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3d1216({showActiveMarker:_0x466e45=!0x0,setDataAttribute:_0x46fe7e=!0x0}={}){return(_0x4f5d19,_0x2744b9,_0x54440e)=>{const {type:_0x338cce,id:_0x36693c}=_0x595915['_splitMarkerName'](_0x2744b9['markerName']),_0x2d53e0=_0x595915['getSuggestion'](_0x36693c),_0x5e05df=_0x2d53e0['data'];if('formatBlock'!=_0x2d53e0['type']||!_0x5e05df||'setTableColumnHeader'!=_0x5e05df['commandName'])return;if(_0x2744b9['item'])return void _0x4f5d19['stop']();if(!_0x54440e['consumable']['consume'](_0x2744b9['markerRange'],_0x4f5d19['name']))return;const _0x4e2dc=_0x2744b9['markerRange']['start']['nodeAfter'],_0x28b89d=_0x2744b9['markerRange']['end']['nodeBefore'],_0x118784=_0x4e2dc['parent']['parent'],{column:_0x2656c5}=_0x368145['getCellLocation'](_0x4e2dc),{column:_0x57f5d7}=_0x368145['getCellLocation'](_0x28b89d);for(let _0x59b221=_0x2656c5;_0x59b221<=_0x57f5d7;_0x59b221++){const _0x3f5d8e=_0x368145['createTableWalker'](_0x118784,{'column':_0x59b221,'includeAllSlots':!0x1});for(const _0x2ba526 of _0x3f5d8e){const _0x3c1804=_0x2ba526['cell'],_0xd74c8=_0x54440e['mapper']['toViewElement'](_0x3c1804);_0x54440e['writer']['addClass']('ck-suggestion-marker-'+_0x338cce,_0xd74c8),_0x46fe7e&&_0x54440e['writer']['setAttribute']('data-suggestion',_0x36693c,_0xd74c8),_0x54440e['mapper']['bindElementToMarker'](_0xd74c8,_0x2744b9['markerName']),_0x466e45&&(_0x595915['activeMarkers']['includes'](_0x2744b9['markerName'])?_0x54440e['writer']['addClass']('ck-suggestion-marker--active',_0xd74c8):_0x54440e['writer']['removeClass']('ck-suggestion-marker--active',_0xd74c8));}}};}_0x595915['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1d621a),_0x595915['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1d621a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3d1216(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd847a0,_0x5ef510,_0xfe7421)=>{_0xfe7421['options']['showSuggestionHighlights']&&_0x3d1216({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xd847a0,_0x5ef510,_0xfe7421);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x406bf2,_0x5cc166,_0xeb10d3)=>{const {type:_0xa48eb6,id:_0x98f589}=_0x595915['_splitMarkerName'](_0x5cc166['markerName']),_0x314cda=_0x595915['getSuggestion'](_0x98f589),_0xfd6004=_0x314cda['data'];if('formatBlock'!=_0x314cda['type']||!_0xfd6004||'setTableColumnHeader'!=_0xfd6004['commandName'])return;const _0x14d102=_0xeb10d3['mapper']['markerNameToElements'](_0x5cc166['markerName']);if(_0x14d102){for(const _0xcf7bcc of _0x14d102)_0xeb10d3['writer']['removeClass']('ck-suggestion-marker-'+_0xa48eb6,_0xcf7bcc),_0xeb10d3['writer']['removeClass']('ck-suggestion-marker--active',_0xcf7bcc),_0xeb10d3['writer']['removeAttribute']('data-suggestion',_0xcf7bcc),_0xeb10d3['mapper']['unbindElementFromMarkerName'](_0xcf7bcc,_0x5cc166['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19f9df=this['editor'],_0x2ece7f=_0x19f9df['locale'];function _0x4dc673(_0x54548e){return{'type':'format','content':o(_0x2ece7f,'*Format:*\x20%0',_0x54548e)};}_0x19f9df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dc5b0=>{if('formatBlock'!=_0x4dc5b0['type'])return;const {data:_0x2ffbd6}=_0x4dc5b0;if(_0x2ffbd6){if('setTableRowHeader'==_0x2ffbd6['commandName']){const _0x26e436=_0x2ffbd6['commandParams'][0x0]['forceValue'];return _0x4dc673(o(_0x2ece7f,_0x26e436?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2ffbd6['commandName']){const _0x3b3ec8=_0x2ffbd6['commandParams'][0x0]['forceValue'];return _0x4dc673(o(_0x2ece7f,_0x3b3ec8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x5c3c15=>[_0x5c3c15,null]));class Mt extends _0xa4b53f{static get['requires'](){return[Ct];}['afterInit'](){const _0x53e3e3=this['editor'];if(!_0x53e3e3['plugins']['has']('TableClipboard'))return;const _0x4e0b35=_0x53e3e3['plugins']['get']('TrackChangesEditing'),_0x1dd714=_0x53e3e3['plugins']['get']('TableUtils'),_0x3f341d=_0x53e3e3['plugins']['get'](Ct),_0x18a0c8=_0x53e3e3['plugins']['get']('TableClipboard');_0x3f341d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x53e3e3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x53e3e3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x556481=null;_0x53e3e3['model']['on']('insertContent',(_0x58ec16,_0x11bc48)=>{const [_0xa39841,_0x28b2cc]=_0x11bc48,_0x121ca8=_0x11bc48[_0x11bc48['length']-0x1];_0x121ca8&&_0x121ca8['forceDefaultExecution']||_0x4e0b35['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4313ad,_0x523dc9,_0x769ebd,_0x3d6ea1,_0x5bdb87){if(_0x523dc9&&!_0x523dc9['is']('documentSelection'))return!0x1;const _0xcfe1d8=_0x5bdb87['getTableIfOnlyTableInContent'](_0x4313ad,_0x769ebd);if(!_0xcfe1d8||!Ue(_0xcfe1d8,void 0x0,_0x3d6ea1))return!0x1;const _0x21d959=_0x3d6ea1['getSelectionAffectedTableCells'](_0x769ebd['document']['selection']);if(!_0x21d959['length'])return!0x1;const _0x129a88=_0x21d959[0x0]['findAncestor']('table'),_0x3785a7=_0x3d6ea1['getRowIndexes'](_0x21d959),_0x524a68=_0x3d6ea1['getColumnIndexes'](_0x21d959),_0x19a4a2={'startRow':_0x3785a7['first'],'endRow':_0x3785a7['last'],'startColumn':_0x524a68['first'],'endColumn':_0x524a68['last']};return 0x1==_0x21d959['length']&&(_0x19a4a2['endRow']+=_0x3d6ea1['getRows'](_0xcfe1d8)-0x1,_0x19a4a2['endColumn']+=_0x3d6ea1['getColumns'](_0xcfe1d8)-0x1),Ue(_0x129a88,_0x19a4a2,_0x3d6ea1);}(_0xa39841,_0x28b2cc,_0x53e3e3['model'],_0x1dd714,_0x18a0c8)&&(_0x58ec16['stop'](),_0x556481={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x53e3e3['model']['change'](()=>{_0x53e3e3['model']['insertContent'](_0x11bc48[0x0],_0x11bc48[0x1],_0x11bc48[0x2],{'forceDefaultExecution':!0x0});const _0x148f75=_0xf688c7(),{rowInsertionRanges:_0x539a62,columnInsertionRanges:_0x58acd2,insertionRanges:_0x172b78,deletionRanges:_0xe09634,cells:_0x1623b0}=_0x556481;_0x539a62['length']&&_0x4e0b35['markMultiRangeInsertion'](_0x539a62,'tablePasteRow',{'tablePasteChainId':_0x148f75}),_0x58acd2['length']&&_0x4e0b35['markMultiRangeInsertion'](_0x58acd2,'tablePasteColumn',{'tablePasteChainId':_0x148f75}),_0x172b78['length']&&(_0x4e0b35['markMultiRangeInsertion'](_0x172b78,'tablePaste',{'tablePasteChainId':_0x148f75,'skipNestingCheck':!0x0}),_0x172b78['forEach'](_0x592b25=>_0x592b25['detach']?.())),_0xe09634['length']&&(_0x4e0b35['markMultiRangeDeletion'](_0xe09634,'tablePaste',{'tablePasteChainId':_0x148f75,'skipNestingCheck':!0x0}),_0xe09634['forEach'](_0x1cce2f=>_0x1cce2f['detach']?.()));const _0x37dbe1=_0x4e0b35['markMultiRangeBlockFormat'](_0x1623b0['map'](({element:_0x3e4f3e})=>_0x3e4f3e),{'formatGroupId':_0xf688c7()},[],'tablePasteCell',{'tablePasteChainId':_0x148f75});if(_0x37dbe1){const _0xfc6e7f=_0x37dbe1['getMarkers'](),_0x46dad7=[];for(const {element:_0x26078d,attributes:_0x479657}of _0x1623b0){if(!_0x479657)continue;const _0x485165=_0x53e3e3['model']['createRangeOn'](_0x26078d),_0x3bc960=_0xfc6e7f['find'](_0x3e9adb=>_0x3e9adb['getRange']()['isEqual'](_0x485165));_0x3bc960&&_0x46dad7['push']([_0x3bc960['name'],_0x479657]);}_0x46dad7['length']&&_0x37dbe1['setAttribute']('markerAttributes',Object['fromEntries'](_0x46dad7));}_0x556481=null;}));},{'priority':_0x2435d0['high']+0xa}),_0x53e3e3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xe7192b,_0x16a53a)=>{const [_0xf547d4,_0x823463,,_0x39f604]=_0x16a53a;if(!_0x556481)return;_0xe7192b['stop']();const _0x20787d=_0xf547d4['cell'],_0x225625=_0x823463,_0x3f95f0=Oe(_0x20787d),_0x4874ae=Oe(_0x225625);_0xe7192b['return']=_0x20787d;let _0x572294=null,_0x5671f5=null;if(_0x4874ae||_0x3f95f0){if(_0x3f95f0&&!_0x4874ae){_0x39f604['remove'](_0x20787d['getChild'](0x0));for(const _0x309221 of Array['from'](_0x225625['getChildren']()))_0x39f604['insert'](_0x309221,_0x20787d,'end');const _0x3b4930=_0x556481['rowInsertionIndexes']['includes'](_0xf547d4['row']),_0x101aeb=_0x556481['columnInsertionIndexes']['includes'](_0xf547d4['column']);_0x3b4930||_0x101aeb||(_0x572294=_0x4f46eb['fromRange'](_0x39f604['createRangeIn'](_0x20787d)));}else _0x4874ae&&!_0x3f95f0&&(_0x5671f5=_0x39f604['createRangeIn'](_0x20787d));}else{const _0xbf24dc=_0x39f604['createElement']('tableCellSuggestion'),_0x54a627=_0x39f604['createElement']('tableCellSuggestion');_0x39f604['wrap'](_0x39f604['createRangeIn'](_0x20787d),_0x54a627),_0x39f604['insert'](_0xbf24dc,_0x20787d,0x0);for(const _0x58f802 of Array['from'](_0x225625['getChildren']()))_0x39f604['insert'](_0x58f802,_0xbf24dc,'end');_0x572294=_0x4f46eb['fromRange'](_0x39f604['createRangeOn'](_0xbf24dc)),_0x5671f5=_0x4f46eb['fromRange'](_0x39f604['createRangeOn'](_0x54a627));}const _0x5b8429=Array['from'](_0x225625['getAttributes']())['filter'](([_0x5c2abe])=>Be['includes'](_0x5c2abe));_0x556481['cells']['push']({'element':_0x20787d,'attributes':_0x5b8429['length']?Object['fromEntries'](_0x5b8429):null}),_0x572294&&_0x556481['insertionRanges']['push'](_0x572294),_0x5671f5&&_0x556481['deletionRanges']['push'](_0x5671f5);},{'priority':'high'}),_0x1dd714['on']('insertColumns',(_0x408e2a,_0x417eca)=>{const [_0x41cd07,_0x2b28c2={}]=_0x417eca;if(!_0x556481)return;const _0x4c5623=_0x2b28c2['at']||0x0,_0x4e163a=_0x2b28c2['columns']||0x1;_0x556481['columnInsertionIndexes']=new Array(_0x4e163a)['fill'](_0x4c5623)['map']((_0x319835,_0x1fdcee)=>_0x319835+_0x1fdcee);for(const {cell:_0x3b101b}of _0x1dd714['createTableWalker'](_0x41cd07,{'startColumn':_0x4c5623,'endColumn':_0x4c5623+_0x4e163a-0x1}))_0x556481['columnInsertionRanges']['push'](_0x53e3e3['model']['createRangeOn'](_0x3b101b));},{'priority':'low'}),_0x1dd714['on']('insertRows',(_0x46beda,_0x19160b)=>{const [_0x865474,_0x51bf5a={}]=_0x19160b;if(!_0x556481)return;const _0x18911c=_0x51bf5a['at']||0x0,_0x2cb772=_0x51bf5a['rows']||0x1;_0x556481['rowInsertionIndexes']=new Array(_0x2cb772)['fill'](_0x18911c)['map']((_0x4f38ef,_0x3b5f24)=>_0x4f38ef+_0x3b5f24);for(const {cell:_0x4e6623}of _0x1dd714['createTableWalker'](_0x865474,{'startRow':_0x18911c,'endRow':_0x18911c+_0x2cb772-0x1}))_0x556481['rowInsertionRanges']['push'](_0x53e3e3['model']['createRangeOn'](_0x4e6623));},{'priority':'low'}),_0x4e0b35['descriptionFactory']['registerDescriptionCallback'](_0xa59add=>{if(_0xa59add['subType']&&_0xa59add['subType']['startsWith']('tablePaste'))return _0xa59add['previous']?{}:{'type':'insertion','content':o(_0x53e3e3['locale'],'*Replace\x20table\x20cells*')};});const _0x11559c=()=>!0x1;for(const _0xe6dd7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4e0b35['_suggestionFactory']['registerCustomCallback']('insertion',_0xe6dd7,'join',_0x11559c),_0x4e0b35['_suggestionFactory']['registerCustomCallback']('deletion',_0xe6dd7,'join',_0x11559c),_0x4e0b35['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe6dd7,'join',_0x11559c);_0x4e0b35['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x11559c),_0x4e0b35['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3ac6de,_0x9b6c73,_0x5003e8)=>{const _0x1f46d4=_0x3ac6de['map'](_0x3afe31=>_0x3afe31['getContainedElement']())['filter'](_0x2d2085=>_0x2d2085),_0x599101=new Map(_0x1f46d4['map'](_0x1fe2a9=>[_0x1fe2a9,null]));if(_0x556481){for(const {element:_0x5c8ac8,attributes:_0x577e70}of _0x556481['cells'])_0x577e70&&_0x599101['set'](_0x5c8ac8,_0x577e70);}else{if(_0x5003e8&&_0x5003e8['markerAttributes'])for(const [_0x1c09c5,_0x3d67f8]of Object['entries'](_0x5003e8['markerAttributes'])){const _0x47c512=_0x53e3e3['model']['markers']['get'](_0x1c09c5),_0x2f4028=_0x47c512?_0x47c512['getRange']()['getContainedElement']():null;_0x2f4028&&_0x599101['set'](_0x2f4028,_0x3d67f8);}}_0x53e3e3['model']['change'](_0x5527d2=>{for(const [_0x151167,_0x1a3c65]of _0x599101)_0x5527d2['setAttributes']({...xe,..._0x1a3c65},_0x151167);});});const _0x3bf32f=(_0xe261,_0x47bc4e)=>{_0x4e0b35['_suggestionFactory']['registerCustomCallback'](_0xe261,'tablePaste',_0x47bc4e,(_0x4379a7,_0x1860d5,_0x2d19d7)=>{_0x53e3e3['model']['change'](_0x5e85c3=>{const _0x4925c8=[];for(const _0x2ef791 of _0x4379a7){const _0x564c5e=_0x2ef791['start']['nodeAfter'];_0x564c5e['is']('element','tableCellSuggestion')&&_0x4925c8['push'](_0x564c5e);}_0x4e0b35['_suggestionFactory']['getSuggestionCallback'](_0xe261,null,_0x47bc4e)(_0x4379a7,_0x1860d5,_0x2d19d7);for(const _0x1e4882 of _0x4925c8)'$graveyard'!=_0x1e4882['root']['rootName']&&_0x5e85c3['unwrap'](_0x1e4882);});});};_0x3bf32f('insertion','accept'),_0x3bf32f('insertion','discard'),_0x3bf32f('deletion','accept'),_0x3bf32f('deletion','discard'),_0x4e0b35['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x492038=>{const _0xd93861=_0x492038['map'](_0x1c775e=>_0x1c775e['getContainedElement']()),_0x1d6918=_0xd93861[0x0]['findAncestor']('table'),{minRow:_0x53b06d,maxRow:_0x3f4207}=_0x3f341d['_getCoordsForCells'](_0xd93861);_0x1dd714['removeRows'](_0x1d6918,{'at':_0x53b06d,'rows':_0x3f4207-_0x53b06d+0x1});}),_0x4e0b35['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x72a86c=>{const _0x374415=_0x72a86c['map'](_0xcc1e74=>_0xcc1e74['getContainedElement']()),_0xbb6fd=_0x374415[0x0]['findAncestor']('table'),{minColumn:_0x22f8d6,maxColumn:_0x3ef4f8}=_0x3f341d['_getCoordsForCells'](_0x374415);_0x1dd714['removeColumns'](_0xbb6fd,{'at':_0x22f8d6,'columns':_0x3ef4f8-_0x22f8d6+0x1});});const _0x4660a0=(_0x1c6e8e,_0xa76e3d)=>{if(!_0xa76e3d['subType']||!_0xa76e3d['subType']['startsWith']('tablePaste'))return;const _0xa420c4=_0xa76e3d['attributes']['tablePasteChainId'],_0x36d17e=_0x4e0b35['getSuggestions']()['filter'](_0x5bb224=>_0x5bb224['isInContent']&&_0x5bb224['attributes']&&_0x5bb224['attributes']['tablePasteChainId']==_0xa420c4);_0x36d17e['length']&&_0xa76e3d['getAllAdjacentSuggestions']()['length']!=_0x36d17e['length']&&_0x36d17e['reduce']((_0x452f80,_0x373cd6)=>(_0x452f80['next']=_0x373cd6,_0x373cd6['previous']=_0x452f80,_0x373cd6));};function _0x4dde74(_0x3a57ad,_0x397139=!0x0){const {id:_0x5eac1c,authorId:_0x474678}=_0x4e0b35['_splitMarkerName'](_0x3a57ad['markerName']),_0x251187=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x44830a=_0x4e0b35['activeMarkers']['includes'](_0x3a57ad['markerName']);return _0x44830a&&_0x251187['push']('ck-suggestion-marker--active'),{'classes':_0x251187,'attributes':{'data-suggestion':_0x5eac1c,'data-author-id':_0x474678},'priority':_0x44830a&&_0x397139?0xbc2:0xbb8};}_0x4e0b35['on']('suggestionLoaded',_0x4660a0,{'priority':'high'}),_0x4e0b35['on']('suggestionUnloaded',_0x4660a0,{'priority':'high'}),_0x53e3e3['model']['document']['registerPostFixer'](()=>{let _0x3baae7=!0x1;const _0x3c2181=Array['from'](_0x53e3e3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x76de0b,data:_0x2caf3b}of _0x3c2181){const {group:_0x319542,type:_0x5e27af,id:_0x56478f}=_0x4e0b35['_splitMarkerName'](_0x76de0b);if('suggestion'!=_0x319542||'deletion'!=_0x5e27af||_0x2caf3b['oldRange'])continue;if(!_0x4e0b35['hasSuggestion'](_0x56478f))continue;const _0x1c165a=_0x4e0b35['getSuggestion'](_0x56478f)['getRanges'](),_0x2d3125=_0x53e3e3['plugins']['get']('Users')['me'];for(const _0x62cfea of _0x4e0b35['getSuggestions']()){if(!_0x62cfea['isInContent']||_0x62cfea['author']!=_0x2d3125)continue;if('formatBlock'!=_0x62cfea['type']||'tablePasteCell'!=_0x62cfea['subType'])continue;if(_0x62cfea['getRanges']()['every'](_0xd0d3ec=>_0x1c165a['some'](_0x5af216=>_0x5af216['containsRange'](_0xd0d3ec,!0x0)))){for(const _0x904cb6 of _0x62cfea['getAllAdjacentSuggestions']())_0x904cb6['isInContent']&&(_0x904cb6['discard'](),_0x3baae7=!0x0);}}}return _0x3baae7;}),_0x53e3e3['model']['document']['registerPostFixer'](_0x35e281=>{const _0x42e39f=_0x53e3e3['commands']['get']('redo');if(!_0x42e39f||!_0x42e39f['_createdBatches']['has'](_0x35e281['batch']))return!0x1;let _0x265ed0=!0x1;const _0x31d0ee=_0x53e3e3['plugins']['get']('Users')['me'],_0x143340=_0x53e3e3['model']['document']['differ']['getChanges'](),_0x271b73=Array['from'](_0x53e3e3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3b5906,data:_0xe2aabc})=>{const {group:_0x4f55bb,subType:_0x564cb0,authorId:_0x21be77}=_0x4e0b35['_splitMarkerName'](_0x3b5906);return'suggestion'==_0x4f55bb&&'tablePaste'==_0x564cb0&&_0x21be77==_0x31d0ee['id']&&!_0xe2aabc['oldRange'];});for(const _0x3832a2 of _0x143340){if('insert'!=_0x3832a2['type']||'tableCellSuggestion'!=_0x3832a2['name']||0x1!=_0x3832a2['length'])continue;const _0x85375c=_0x35e281['createRange'](_0x3832a2['position'],_0x3832a2['position']['getShiftedBy'](0x1));if(!_0x271b73['find'](({data:_0xa05e4})=>_0xa05e4['newRange']['isEqual'](_0x85375c))){for(const {name:_0x2d7751,data:_0x383afb}of _0x271b73)if(_0x85375c['containsRange'](_0x383afb['newRange'])){_0x35e281['updateMarker'](_0x2d7751,{'range':_0x85375c}),_0x265ed0=!0x0;break;}}}return _0x265ed0;}),_0x53e3e3['model']['document']['registerPostFixer'](_0x1f4197=>{let _0x45dd8d=!0x1;const _0x575c12=_0x53e3e3['plugins']['get']('Users')['me'],_0x2f2728=_0x4e0b35['getSuggestions']()['filter'](_0x34e337=>_0x34e337['isInContent']&&_0x34e337['author']==_0x575c12),_0x5091e1=new Set(),_0x485984=new Set();for(const _0x3d9100 of _0x2f2728)if('tablePaste'==_0x3d9100['subType'])for(const _0x5df8a1 of _0x3d9100['getMarkers']()){const _0x3bbf45=_0x5df8a1['getRange']()['getContainedElement']();if(_0x3bbf45){if(_0x3bbf45['is']('element','tableCellSuggestion')&&Oe(_0x3bbf45)){_0x3d9100['removeMarker'](_0x5df8a1['name']),_0x5091e1['add'](_0x3bbf45),_0x45dd8d=!0x0;const _0x443548=_0x3bbf45['nextSibling'],_0x3c95ad=_0x3bbf45['previousSibling'],_0x2f5df4=_0x443548&&_0x443548['is']('element','tableCellSuggestion'),_0x1f5147=_0x3c95ad&&_0x3c95ad['is']('element','tableCellSuggestion');_0x2f5df4&&!_0x5091e1['has'](_0x443548)&&_0x485984['add'](_0x443548),_0x1f5147&&!_0x5091e1['has'](_0x3c95ad)&&_0x485984['add'](_0x3c95ad);}else _0x3bbf45['is']('element','paragraph')&&_0x3bbf45['isEmpty']&&(_0x3d9100['removeMarker'](_0x5df8a1['name']),_0x45dd8d=!0x0);}}else{if('tablePasteCell'==_0x3d9100['subType']){if(!_0x3d9100['attributes']||!_0x3d9100['attributes']['tablePasteChainId'])continue;const _0x171dc6=_0x3d9100['attributes']['markerAttributes'];if(_0x171dc6&&Object['keys'](_0x171dc6)['length'])continue;const _0x115c2e=_0x3d9100['attributes']['tablePasteChainId'];let _0x4e679b=!0x0,_0x94c559=!0x0;for(const _0xa4ec2d of _0x2f2728)if(_0xa4ec2d['subType']&&_0xa4ec2d['subType']['startsWith']('tablePaste')){if(!_0xa4ec2d['attributes']['tablePasteChainId']){_0x94c559=!0x1;break;}if(_0xa4ec2d['id']!=_0x3d9100['id']&&_0xa4ec2d['attributes']['tablePasteChainId']==_0x115c2e){_0x4e679b=!0x1;break;}}_0x94c559&&_0x4e679b&&(_0x3d9100['removeMarkers'](),_0x45dd8d=!0x0);}}for(const _0x49592e of _0x5091e1)_0x1f4197['remove'](_0x49592e);for(const _0x56abe0 of _0x485984)_0x1f4197['unwrap'](_0x56abe0);return _0x45dd8d;}),_0x53e3e3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x175d59=>_0x4dde74(_0x175d59),'converterPriority':'high'}),_0x53e3e3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5f2de8,_0x4d4d8c)=>_0x4d4d8c['options']['showSuggestionHighlights']?_0x4dde74(_0x5f2de8,!0x1):null,'converterPriority':'high'});const _0x424ac2=_0x53e3e3['editing']['view'];this['listenTo'](_0x424ac2['document'],'clipboardOutput',(_0x40fd1f,_0x538565)=>{const _0x5a807f=[];for(const _0x57b26c of _0x424ac2['createRangeIn'](_0x538565['content'])['getItems']())_0x57b26c['is']('element','suggestion-td')&&_0x5a807f['push'](_0x57b26c);_0x424ac2['change'](_0x2ab620=>{for(const _0x24190f of _0x5a807f)_0x2ab620['move'](_0x2ab620['createRangeIn'](_0x24190f),_0x2ab620['createPositionBefore'](_0x24190f)),_0x2ab620['remove'](_0x24190f);});});}}function Oe(_0xa7ddcc){if(_0xa7ddcc['isEmpty'])return!0x0;const _0x17f0cd=_0xa7ddcc['getChild'](0x0);return _0x17f0cd['is']('element','paragraph')&&_0x17f0cd['isEmpty'];}function Ue(_0x49a4b6,_0x562080={},_0x388014){for(const {isAnchor:_0x501c75,cellHeight:_0x205c47,cellWidth:_0x1abf9c}of _0x388014['createTableWalker'](_0x49a4b6,{'includeAllSlots':!0x0,..._0x562080}))if(!_0x501c75||0x1!=_0x205c47||0x1!=_0x1abf9c)return!0x1;return!0x0;}class $t extends _0xa4b53f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1ac101=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ac101['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1ac101['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1ac101['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ac101['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1ac101['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1ac101['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x51db1f,_0x498a2e){const _0x51651e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e713f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x314474=_0x498a2e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x28ebae=_0x4e713f['getColumnGroupElement'](_0x314474);let _0xa3836f=_0x28ebae?_0x4e713f['getTableColumnsWidths'](_0x28ebae):null,_0x527c55=_0x314474['getAttribute']('tableWidth')||null;const _0x5e1362=_0x498a2e['tableWidth']||_0x527c55,_0x5d15c3=_0x498a2e['columnWidths']||_0xa3836f,_0x108bf5=this['editor']['plugins']['get']('Users')['me'];for(const _0x1caea7 of _0x51651e['getSuggestions']()){const _0x26ff09=_0x1caea7['getContainedElement']();if('resizeTable'===_0x1caea7['subType']&&_0x26ff09===_0x314474){_0x1caea7['author']!==_0x108bf5&&_0x1caea7['discard']();const _0x5ed257=_0x1caea7['data']['commandParams'];_0x527c55=_0x5ed257[0x0]['tableWidth'],_0xa3836f=_0x5ed257[0x0]['columnWidths'];break;}}_0x51db1f({'table':_0x314474,'tableWidth':_0x5e1362,'columnWidths':_0x5d15c3}),_0x51651e['markBlockFormat'](_0x314474,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x527c55,'columnWidths':_0xa3836f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x545c67){if('formatBlock'!=_0x545c67['type']&&'formatInline'!=_0x545c67['type'])return;const {data:_0x51417f}=_0x545c67;if(_0x51417f&&'resizeTable'===_0x51417f['formatGroupId']){const _0x337a83='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x337a83)};}}}class Bt extends _0xa4b53f{['afterInit'](){const _0x39efc5=this['editor'];_0x39efc5['plugins']['has']('Template')&&_0x39efc5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0xa4b53f{['afterInit'](){const _0x4f4ec9=this['editor'];if(!_0x4f4ec9['commands']['get']('insertTableOfContents'))return;_0x4f4ec9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x254ddf=_0x4f4ec9['plugins']['get']('TrackChangesEditing'),_0x4f3938=_0x4f4ec9['locale'];_0x254ddf['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4eeb96=>o(_0x4f3938,'ELEMENT_TABLE_OF_CONTENTS',_0x4eeb96));}}class Rt extends _0xa4b53f{['afterInit'](){const _0x4f7e6b=this['editor'];if(!_0x4f7e6b['plugins']['has']('Title'))return;const _0x3214db=_0x4f7e6b['plugins']['get']('TrackChangesEditing');_0x3214db['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4f7e6b['locale'],'ELEMENT_TITLE')),_0x4f7e6b['model']['document']['registerPostFixer'](_0x21905f=>{let _0x5917cf=!0x1;const _0x568493=Array['from'](_0x4f7e6b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xafe0ba,data:_0x520f24}of _0x568493){const {group:_0x22a5f9}=_0x3214db['_splitMarkerName'](_0xafe0ba);if('suggestion'!==_0x22a5f9||!_0x520f24['newRange'])continue;const _0x4efeb9=_0x520f24['newRange'],_0x3463a1=_0x4efeb9['end']['nodeBefore'];if(!_0x3463a1||!_0x3463a1['is']('element','title-content'))continue;if(!_0x4efeb9['start']['isTouching'](_0x4efeb9['end']))continue;const _0x3c1d83=_0x4f7e6b['model']['schema']['getNearestSelectionRange'](_0x4efeb9['end'],'forward');if(_0x3c1d83&&_0x3c1d83['isCollapsed']){const _0x2ad753=_0x21905f['createRange'](_0x4efeb9['start'],_0x3c1d83['start']);_0x2ad753['isEqual'](_0x4efeb9)||(_0x21905f['updateMarker'](_0xafe0ba,{'range':_0x2ad753}),_0x5917cf=!0x0);}_0x5917cf||(_0x21905f['removeMarker'](_0xafe0ba),_0x5917cf=!0x0);}return _0x5917cf;});}}class Tt extends _0xa4b53f{['afterInit'](){const _0x4b15ec=this['editor'],_0x9bf790=_0x4b15ec['plugins']['get']('TrackChangesEditing');_0x4b15ec['plugins']['has']('Uploadcare')&&(_0x9bf790['enableCommand']('uploadcare'),_0x4b15ec['plugins']['has']('UploadcareImageEdit')&&(_0x9bf790['enableCommand']('uploadcareImageEdit'),_0x9bf790['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x9bf790['registerBlockAttribute']('uploadcareImageId'),_0x9bf790['descriptionFactory']['registerDescriptionCallback'](_0x340ffb=>{if('attribute'!=_0x340ffb['type'])return;const {data:_0x5bf302}=_0x340ffb;return _0x5bf302&&'uploadcareImageId'==_0x5bf302['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xa4b53f{['afterInit'](){const _0x2e62d8=this['editor'],_0x5dd8ef=_0x2e62d8['plugins']['get']('TrackChangesEditing');_0x2e62d8['plugins']['has']('UndoEditing')&&(_0x5dd8ef['enableCommand']('undo'),_0x5dd8ef['enableCommand']('redo'));}}class Et extends _0xa4b53f{static get['requires'](){return[Ct];}['afterInit'](){const _0x233f5a=this['editor'];if(!_0x233f5a['plugins']['has']('TableCaptionEditing'))return;_0x233f5a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0xa4b53f{['tableProperties'];['tableCellProperties'];constructor(_0x46fad7){super(_0x46fad7),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x369c59=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x10529f of this['tableProperties'])_0x369c59['enableCommand'](_0x10529f,(_0x396f3a,_0x4f7eca)=>{const _0x42587a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x10529f,[_0x42587a],this['tableProperties'],'tableProperties',_0x396f3a,_0x4f7eca);});_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x369c59['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4d3bd0,_0x5a149a)=>this['handleDiscardAction'](this['tableProperties'],_0x4d3bd0,_0x5a149a)),_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x40e91f of this['tableCellProperties'])_0x369c59['enableCommand'](_0x40e91f,(_0x85837a,_0x25e844)=>{const _0x3cb1e2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x40e91f,_0x3cb1e2,this['tableCellProperties'],'tableCellProperties',_0x85837a,_0x25e844);});_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x369c59['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x16b399,_0x5a8394)=>this['handleDiscardAction'](this['tableCellProperties'],_0x16b399,_0x5a8394)),_0x369c59['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x369c59['descriptionFactory']['registerDescriptionCallback'](_0x283d44=>this['handleSuggestionDescription'](_0x283d44));}['_handlePropertyChange'](_0x20470c,_0x14c0aa,_0x1dc711,_0x514800,_0x4e6ec2,_0x38a617){const _0x513cc7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x38a617['batch'],()=>{for(const _0x5c173a of _0x14c0aa){if(this['_getSuggestion'](_0x5c173a,_0x514800))_0x4e6ec2(_0x38a617);else{const _0x496e86={};for(const _0x3dead2 of _0x1dc711){const _0x5f259f=_0x5c173a['getAttribute'](_0x3dead2);void 0x0!==_0x5f259f&&(_0x496e86[_0x3dead2]=_0x5f259f);}_0x4e6ec2(_0x38a617),_0x513cc7['markBlockFormat'](_0x5c173a,{'commandParams':[_0x496e86]},[],_0x514800);}}});}['handleDiscardAction'](_0x5c42c0,_0x5a71a8,_0x5b8386){const _0x4cf34c=_0x5a71a8[0x0]['start']['nodeAfter'],_0x97deb9=_0x5b8386['commandParams'][0x0];this['editor']['model']['change'](_0x1912fb=>{for(const _0x4d9706 of _0x5c42c0)void 0x0!==_0x97deb9[_0x4d9706]?_0x1912fb['setAttribute'](_0x4d9706,_0x97deb9[_0x4d9706],_0x4cf34c):_0x1912fb['removeAttribute'](_0x4d9706,_0x4cf34c);});}['handleSuggestionDescription'](_0xe195fd){if(_0xe195fd['data'])switch(_0xe195fd['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x55e756,_0x210101){const _0x397cac=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x22cc49 of _0x397cac['getSuggestions']({'skipNotAttached':!0x0})){const _0x124adb=_0x22cc49['getContainedElement']();if(_0x22cc49['subType']===_0x210101&&_0x124adb===_0x55e756)return _0x22cc49;}return null;}}const m='$elementName';class p extends _0xa4b53f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x110e12,_0x2f23c0,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5331ec){super(_0x5331ec),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x156d88,_0x175454,_0x436521,_0x1658e3)=>{this['_model']['change'](()=>{for(const _0x388fdc of[..._0x1658e3,..._0x436521])this['_model']['markers']['has'](_0x388fdc)&&_0x5331ec['editing']['reconvertMarker'](_0x388fdc);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5331ec['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x5331ec['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5331ec['config']['get']('trackChanges.trackFormatChanges'),_0x5331ec['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5331ec['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5331ec,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x10ccf5=this['editor'],_0x143609=(_0x134932,_0x2d80ec)=>{if('attribute'!=_0x134932)return'ck-suggestion-marker-'+_0x134932;const _0x222c77=_0x2d80ec['split']('|')[0x0];return this['_isBlockAttribute'](_0x222c77)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x10ccf5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x536656=>{const {id:_0x9268d8,authorId:_0x432fcf,type:_0x1e4ebc,subType:_0x2e61a9}=this['_splitMarkerName'](_0x536656['markerName']),_0x3a1420=['ck-suggestion-marker',_0x143609(_0x1e4ebc,_0x2e61a9)];let _0x285849=0xbb8;return this['activeMarkers']['includes'](_0x536656['markerName'])&&(_0x3a1420['push']('ck-suggestion-marker--active'),_0x285849=0xbc2),'deletion'==_0x1e4ebc&&(_0x285849+=0x5),{'classes':_0x3a1420,'attributes':{'data-suggestion':_0x9268d8,'data-author-id':_0x432fcf},'priority':_0x285849};}}),_0x10ccf5['conversion']['for']('dataDowncast')['add'](_0x387f48=>{_0x387f48['on']('addMarker:suggestion',(_0x543f0e,_0x437c33,_0x4df75b)=>{if(!_0x4df75b['options']['showSuggestionHighlights'])return;const _0x5d36d5=_0x437c33['item'];if(!_0x5d36d5)return;const _0x1191c5=_0x4df75b['mapper']['toViewElement'](_0x5d36d5);_0x10ccf5['model']['schema']['isObject'](_0x5d36d5)&&_0x1191c5&&!_0x1191c5['getCustomProperty']('widget')&&_0x1191c5['is']('containerElement')&&_0x517cc2(_0x1191c5,_0x4df75b['writer']);},{'priority':'high'});}),_0x10ccf5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5237e7,_0x4730c6)=>{if(!_0x4730c6['options']['showSuggestionHighlights'])return null;const {type:_0x2a3c03,subType:_0x1a6bc0}=this['_splitMarkerName'](_0x5237e7['markerName']);return{'classes':['ck-suggestion-marker',_0x143609(_0x2a3c03,_0x1a6bc0)],'priority':0xbb8};}});const _0x1f2087=({showActiveMarkers:_0x44ff0e=!0x0,isAttributeSuggestion:_0x7ddc4d=!0x1}={})=>(_0x1096d1,_0x449006,_0x3a3126)=>{if(!_0x449006['item'])return;const {id:_0x34f7e7,authorId:_0x4005d5}=this['_splitMarkerName'](_0x449006['markerName']);if(_0x7ddc4d){const _0xacc2cd=this['_suggestions']['get'](_0x34f7e7),_0x5e574d=this['_getAttributeKey'](_0xacc2cd);if(!this['_isBlockAttribute'](_0x5e574d))return;}if(_0x449006['item']['is']('selection'))return void _0x3a3126['consumable']['consume'](_0x449006['item'],_0x1096d1['name']);const _0x27a86f=_0x3a3126['mapper']['toViewElement'](_0x449006['item']);if(_0x449006['item']['is']('element')&&_0x10ccf5['model']['schema']['isBlock'](_0x449006['item'])&&!_0x27a86f['getCustomProperty']('addHighlight')){_0x3a3126['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x27a86f),_0x3a3126['writer']['setAttribute']('data-suggestion',_0x34f7e7,_0x27a86f),_0x3a3126['writer']['setAttribute']('data-author-id',_0x4005d5,_0x27a86f),_0x3a3126['mapper']['bindElementToMarker'](_0x27a86f,_0x449006['markerName']),_0x44ff0e&&(this['activeMarkers']['includes'](_0x449006['markerName'])?_0x3a3126['writer']['addClass']('ck-suggestion-marker--active',_0x27a86f):_0x3a3126['writer']['removeClass']('ck-suggestion-marker--active',_0x27a86f));for(const _0xadc527 of _0x10ccf5['model']['createRangeIn'](_0x449006['item'])['getItems']())_0x3a3126['consumable']['consume'](_0xadc527,_0x1096d1['name']);_0x3a3126['consumable']['consume'](_0x449006['item'],_0x1096d1['name']);}};_0x10ccf5['conversion']['for']('dataDowncast')['add'](_0x46b780=>{_0x46b780['on']('addMarker:suggestion:formatBlock',(_0xa50941,_0x2af5dc,_0x28bcbb)=>{_0x28bcbb['options']['showSuggestionHighlights']&&_0x1f2087({'showActiveMarkers':!0x1})(_0xa50941,_0x2af5dc,_0x28bcbb);},{'priority':'highest'});}),_0x10ccf5['conversion']['for']('dataDowncast')['add'](_0x464344=>{_0x464344['on']('addMarker:suggestion:attribute',(_0x544db0,_0x1b888d,_0x15203f)=>{_0x15203f['options']['showSuggestionHighlights']&&_0x1f2087({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x544db0,_0x1b888d,_0x15203f);},{'priority':'highest'});}),_0x10ccf5['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5013e5,_0x4e0366)=>_0x4e0366['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5013e5['substr'](0xb)}}),_0x10ccf5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x394ea,{writer:_0x27e8b2})=>{let _0x3e6e82='suggestion:'+_0x394ea['getAttribute']('suggestion-type')+':'+_0x394ea['getAttribute']('id');return _0x394ea['getAttribute']('marker-count')&&(_0x3e6e82+=':'+_0x394ea['getAttribute']('marker-count')),_0x27e8b2['createElement']('$marker',{'data-name':_0x3e6e82});}}),_0x10ccf5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x10ccf5['conversion']['for']('editingDowncast')['add'](_0x134093=>{_0x134093['on']('addMarker:suggestion:formatBlock',_0x1f2087(),{'priority':'high'});}),_0x10ccf5['conversion']['for']('editingDowncast')['add'](_0x36a670=>{_0x36a670['on']('addMarker:suggestion:attribute',_0x1f2087({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x10ccf5['conversion']['for']('editingDowncast')['add'](_0x1d51fe=>{_0x1d51fe['on']('removeMarker:suggestion:formatBlock',(_0x312739,_0x541b7a,_0x3e8713)=>{const _0x50ecb5=_0x3e8713['mapper']['markerNameToElements'](_0x541b7a['markerName']);if(_0x50ecb5){for(const _0x5bdcf9 of _0x50ecb5)_0x5bdcf9['getCustomProperty']('addHighlight')||(_0x3e8713['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5bdcf9),_0x3e8713['writer']['removeAttribute']('data-suggestion',_0x5bdcf9),_0x3e8713['writer']['removeAttribute']('data-author-id',_0x5bdcf9),_0x3e8713['mapper']['unbindElementFromMarkerName'](_0x5bdcf9,_0x541b7a['markerName']));}},{'priority':'high'});}),_0x10ccf5['conversion']['for']('editingDowncast')['add'](_0x19da82=>{_0x19da82['on']('removeMarker:suggestion:attribute',(_0x5c237b,_0xc5daba,_0xe3df77)=>{const _0x4c0f3e=_0xe3df77['mapper']['markerNameToElements'](_0xc5daba['markerName']);if(!_0x4c0f3e)return;const {id:_0x308a32}=this['_splitMarkerName'](_0xc5daba['markerName']),_0x193bb6=this['_suggestions']['get'](_0x308a32),_0x1f6cf3=this['_getAttributeKey'](_0x193bb6);if(this['_isBlockAttribute'](_0x1f6cf3)){for(const _0x2a9b04 of _0x4c0f3e)_0x2a9b04['getCustomProperty']('addHighlight')||(_0xe3df77['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2a9b04),_0xe3df77['writer']['removeAttribute']('data-suggestion',_0x2a9b04),_0xe3df77['writer']['removeAttribute']('data-author-id',_0x2a9b04),_0xe3df77['mapper']['unbindElementFromMarkerName'](_0x2a9b04,_0xc5daba['markerName']));}},{'priority':'high'});}),_0x10ccf5['model']['document']['registerPostFixer'](_0x6abef6=>{let _0x3ac9bc=!0x1;const _0x1f83f9=Array['from'](_0x10ccf5['model']['document']['differ']['getChangedMarkers']()),_0x3c894b=new Set();for(const {name:_0x168928,data:_0x391db1}of _0x1f83f9){const {group:_0x5131b0,type:_0x4e848f,subType:_0x2a90b2,id:_0x152ba0}=this['_splitMarkerName'](_0x168928);if('suggestion'!==_0x5131b0)continue;const _0x385824=this['_suggestions']['get'](_0x152ba0);if(null!=_0x391db1['newRange']){'formatInline'==_0x4e848f&&(_0x3ac9bc=_0x3ac9bc||Lt(_0x391db1['newRange'],_0x168928,_0x6abef6,_0x10ccf5['model']['schema']));const _0x19a899='attribute'==_0x4e848f&&this['_isBlockAttribute'](_0x2a90b2['split']('|')[0x0]);if(_0x391db1['newRange']['isCollapsed']||'$graveyard'==_0x391db1['newRange']['root']['rootName']||'formatBlock'==_0x4e848f&&!Ht(_0x391db1['newRange'])||_0x19a899&&!Ht(_0x391db1['newRange'])||'deletion'==_0x4e848f&&!(!Ft(_0x29a202=_0x391db1['newRange'])&&!function(_0x4252a7){return _0x4252a7['start']['parent']==_0x4252a7['end']['nodeBefore']&&_0x4252a7['start']['isAtEnd'];}(_0x29a202)))_0x6abef6['removeMarker'](_0x168928),_0x3ac9bc=!0x0;else{if(!_0x385824||!_0x385824['isInContent'])continue;if(_0x391db1['newRange']&&_0x391db1['oldRange']&&_0x391db1['newRange']['isEqual'](_0x391db1['oldRange']))continue;_0x3c894b['add'](_0x385824);}}}var _0x29a202;return _0x3c894b['size']>0x0&&(_0x3ac9bc=!!this['_joinWithAdjacentSuggestions'](_0x3c894b)||_0x3ac9bc),_0x3ac9bc;}),_0x10ccf5['model']['document']['registerPostFixer'](_0x1111f4=>{let _0x145a61=!0x1;for(const _0x3e26f6 of _0x10ccf5['model']['document']['differ']['getChanges']())if('insert'==_0x3e26f6['type'])for(const _0x3b16e7 of this['_suggestions']['values']()){if(_0x3b16e7['isMultiRange']||!_0x3b16e7['isInContent'])continue;const _0x5200db='formatBlock'==_0x3b16e7['type'],_0x9bfbde=this['_getAttributeKey'](_0x3b16e7),_0x55c924=_0x9bfbde&&this['_isBlockAttribute'](_0x9bfbde);if(!_0x5200db&&!_0x55c924)continue;const _0x4d4cbb=_0x3b16e7['getFirstRange']();if(_0x4d4cbb['start']['parent']!=_0x4d4cbb['end']['parent']&&!_0x4d4cbb['end']['isAtEnd']){const _0x13c88c=_0x10ccf5['model']['createPositionAt'](_0x4d4cbb['start']['nodeAfter'],'end'),_0xee098f=_0x10ccf5['model']['createRange'](_0x4d4cbb['start'],_0x13c88c);_0x1111f4['updateMarker'](_0x3b16e7['getFirstMarker'](),{'range':_0xee098f}),_0x145a61=!0x0;}}return _0x145a61;}),_0x10ccf5['model']['document']['registerPostFixer'](_0x58c0a9=>this['_processAttributeChanges'](_0x58c0a9)),_0x10ccf5['model']['document']['registerPostFixer'](_0x603150=>!_0x603150['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x603150)),_0x10ccf5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x10ccf5['model']['document']['on']('change:data',(_0x1229de,_0x5b128e)=>{if(!_0x5b128e['isLocal']||_0x5b128e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x299fe5=_0x10ccf5['model']['document']['differ']['getChanges']();if(0x0==_0x299fe5['length'])return;const _0x23e01d=[],_0x2a5586=_0x299fe5['filter'](_0x369cd6=>'attribute'==_0x369cd6['type']),_0x2bc7ed=_0x299fe5['filter'](_0x34fa43=>'insert'==_0x34fa43['type']&&'$text'!=_0x34fa43['name']);for(const _0x11f2c8 of _0x2a5586)this['_isRegisteredAttribute'](_0x11f2c8['attributeKey'])&&_0x23e01d['push']({'key':_0x11f2c8['attributeKey'],'newValue':_0x11f2c8['attributeNewValue'],'oldValue':_0x11f2c8['attributeOldValue'],'range':qt(_0x11f2c8['range'],_0x10ccf5['model'])});for(const _0x4fc7ae of _0x2bc7ed){if('rename'!=_0x4fc7ae['action']&&'refresh'!=_0x4fc7ae['action'])continue;const _0x92c3bf=zt(_0x4fc7ae['position']['nodeAfter'],_0x10ccf5['model']),_0x4e4622=_0x4fc7ae['before'];'rename'==_0x4fc7ae['action']&&_0x23e01d['push']({'key':m,'newValue':_0x4fc7ae['name'],'oldValue':_0x4e4622['name'],'range':_0x92c3bf});for(const [_0x12f7a2,_0x2d3543]of _0x4e4622['attributes']){if(!this['_isRegisteredAttribute'](_0x12f7a2))continue;const _0x514d25=_0x4fc7ae['attributes']['get'](_0x12f7a2);_0x2d3543!==_0x514d25&&_0x23e01d['push']({'key':_0x12f7a2,'newValue':_0x514d25,'oldValue':_0x2d3543,'range':_0x92c3bf});}for(const [_0x2cb4f9,_0x357c64]of _0x4fc7ae['attributes'])this['_isRegisteredAttribute'](_0x2cb4f9)&&(_0x4e4622['attributes']['has'](_0x2cb4f9)||_0x23e01d['push']({'key':_0x2cb4f9,'newValue':_0x357c64,'oldValue':null,'range':_0x92c3bf}));}0x0!=_0x23e01d['length']&&_0x10ccf5['model']['enqueueChange'](_0x5b128e,_0x465305=>{const _0x64c625=_0xf688c7();for(const {range:_0x95a33a,key:_0x15045a,oldValue:_0x484331,newValue:_0x32e2a2}of _0x23e01d)this['markAttributeChange'](_0x95a33a,_0x15045a,_0x484331,_0x32e2a2,{'groupId':_0x64c625});this['_reduceExistingSuggestions'](_0x465305,_0x23e01d);});},{'priority':'lowest'}),_0x10ccf5['model']['markers']['on']('update:suggestion',(_0x247331,_0x1e407e,_0x1fbca4)=>{if(null==_0x1fbca4){const {id:_0x5ed0c8}=this['_splitMarkerName'](_0x1e407e['name']),_0x46d171=this['_suggestions']['get'](_0x5ed0c8);_0x46d171&&_0x46d171['addMarkerName'](_0x1e407e['name']);}}),_0x10ccf5['model']['document']['on']('change:data',()=>{const _0x21b468=Array['from'](_0x10ccf5['model']['document']['differ']['getChangedMarkers']())['filter'](_0x23b97e=>'suggestion'===this['_splitMarkerName'](_0x23b97e['name'])['group']);if(0x0===_0x21b468['length'])return;_0x21b468['sort']((_0x76e0e3,_0x191c99)=>{const _0x1a6798=_0x76e0e3['data']['oldRange'],_0x170303=_0x191c99['data']['oldRange'];return null===_0x1a6798&&null===_0x170303?0x0:null===_0x1a6798&&null!==_0x170303?-0x1:null!==_0x1a6798&&null===_0x170303?0x1:_0x1a6798['start']['isBefore'](_0x170303['start'])?-0x1:0x1;});const _0x4713c3=new Set(),_0x37f746=new Set();for(const {name:_0x18676e,data:_0x7cf58}of _0x21b468){const {id:_0x2a7d90}=this['_splitMarkerName'](_0x18676e);if(null===_0x7cf58['oldRange']){const _0x2db97e=this['_handleNewSuggestionMarker'](_0x18676e);_0x37f746['add'](_0x2db97e);}else{const _0x3e5026=this['_suggestions']['get'](_0x2a7d90);null!==_0x7cf58['newRange']||_0x3e5026['isInContent']?(_0x4713c3['add'](_0x3e5026['head']),_0x37f746['add'](_0x3e5026)):this['_removeSuggestion'](_0x3e5026);}}_0x37f746['size']>0x0&&this['_refreshSuggestionsChain'](_0x37f746);for(const _0x409f83 of _0x4713c3)this['fire']('suggestionChanged',_0x409f83);}),_0x10ccf5['model']['on']('applyOperation',(_0x466bb1,_0x1c978a)=>{const _0x53ccf6=_0x1c978a[0x0];if(!this['_suggestions']['size'])return;if(!_0x53ccf6['isDocumentOperation'])return;if(_0x53ccf6['batch']['isUndo']||!_0x53ccf6['batch']['isLocal'])return;let _0x404db9,_0x285135;switch(_0x53ccf6['type']){case'insert':_0x404db9=_0x10ccf5['model']['createPositionAt'](_0x53ccf6['position']),_0x285135=_0x404db9['getShiftedBy'](_0x53ccf6['howMany']);break;case'split':_0x404db9=_0x10ccf5['model']['createPositionAt'](_0x53ccf6['splitPosition']),_0x285135=_0x10ccf5['model']['createPositionAt'](_0x53ccf6['moveTargetPosition']);break;case'move':_0x404db9=_0x10ccf5['model']['createPositionAt'](_0x53ccf6['targetPosition']),_0x285135=_0x404db9['getShiftedBy'](_0x53ccf6['howMany']);break;default:return;}const _0x17e298=_0x10ccf5['model']['createRange'](_0x404db9,_0x285135);_0x10ccf5['model']['change'](()=>{for(const {suggestion:_0x1e8b0d,meta:_0x5807cf}of this['_findSuggestions'](_0x17e298)){if(_0x1e8b0d['isMultiRange'])continue;if('formatInline'==_0x1e8b0d['type'])continue;const _0x3efc53=this['_getAttributeKey'](_0x1e8b0d);if(_0x3efc53&&this['_isBlockAttribute'](_0x3efc53)&&'split'!=_0x53ccf6['type'])continue;const _0x365fce=_0x1e8b0d['data']&&_0x1e8b0d['data']['multipleBlocks'];('formatBlock'!=_0x1e8b0d['type']||'split'==_0x53ccf6['type']&&!_0x365fce)&&(_0x5807cf['containsRangeInObject']||'insertion'==_0x1e8b0d['type']&&_0x5807cf['isOwn']||_0x1e8b0d['getFirstRange']()['containsRange'](_0x17e298)&&this['_breakSuggestionMarker'](_0x1e8b0d,_0x404db9,_0x285135));}});},{'priority':'lowest'}),_0x10ccf5['model']['on']('deleteContent',(_0x10a2e0,_0x28eee0)=>{const _0x4181ff=_0x28eee0[0x0],_0x2f98b3=_0x28eee0[0x1];if(_0x2f98b3&&_0x2f98b3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4181ff['isCollapsed'])return;const _0x215846=_0x10ccf5['model']['schema'],{start:_0x42fd6f,end:_0x60e220}=_0x4181ff['getFirstRange'](),_0x385f20=_0x42fd6f['nodeAfter']&&_0x215846['isLimit'](_0x42fd6f['nodeAfter'])?null:_0x215846['getNearestSelectionRange'](_0x42fd6f,'forward'),_0x247c40=_0x60e220['nodeBefore']&&_0x215846['isLimit'](_0x60e220['nodeBefore'])?null:_0x215846['getNearestSelectionRange'](_0x60e220,'backward'),_0x25f6b5=_0x10ccf5['model']['createRange'](_0x385f20?_0x385f20['start']:_0x42fd6f,_0x247c40?_0x247c40['end']:_0x60e220);_0x10ccf5['model']['change'](_0x4dac91=>{this['markDeletion'](_0x25f6b5);const _0x2552b8=_0x10ccf5['model']['schema']['getNearestSelectionRange'](_0x25f6b5['start']);_0x4181ff['is']('documentSelection')?_0x4dac91['setSelection'](_0x2552b8):_0x4181ff['setTo'](_0x2552b8);}),_0x10a2e0['stop']();},{'priority':_0x2435d0['normal']+0xa}),_0x10ccf5['model']['on']('insertContent',(_0x16f061,_0x5ed21d)=>{const _0x112303=_0x5ed21d[_0x5ed21d['length']-0x1];_0x112303&&_0x112303['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x10ccf5['model']['change'](()=>{let _0x5653fd=_0x10ccf5['model']['insertContent'](_0x5ed21d[0x0],_0x5ed21d[0x1],_0x5ed21d[0x2],{'forceDefaultExecution':!0x0});if(!_0x5653fd)return;_0x16f061['return']=_0x5653fd['clone']();const _0x2fd6f6=_0x5653fd['end']['nodeBefore'],_0x3f4656=_0x10ccf5['model']['schema'];_0x2fd6f6&&_0x3f4656['isBlock'](_0x2fd6f6)&&!_0x3f4656['isObject'](_0x2fd6f6)&&(_0x5653fd=_0x10ccf5['model']['createRange'](_0x5653fd['start'],_0x10ccf5['model']['createPositionAt'](_0x2fd6f6,'end'))),this['markInsertion'](_0x5653fd);}),_0x16f061['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x332f0=new O(_0x10ccf5,this['_suggestions']);_0x10ccf5['commands']['add']('acceptSuggestion',_0x332f0),this['enableCommand']('acceptSuggestion');const _0x357240=new R(_0x10ccf5,this['_suggestions']);_0x10ccf5['commands']['add']('discardSuggestion',_0x357240),this['enableCommand']('discardSuggestion'),_0x10ccf5['commands']['add']('acceptAllSuggestions',new x(_0x10ccf5,_0x332f0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x10ccf5['commands']['add']('discardAllSuggestions',new x(_0x10ccf5,_0x357240,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x10ccf5['commands']['add']('acceptSelectedSuggestions',new E(_0x10ccf5,_0x332f0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x10ccf5['commands']['add']('discardSelectedSuggestions',new E(_0x10ccf5,_0x357240,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4cf2c9=_0x10ccf5['plugins']['get']('CommentsRepository');this['listenTo'](_0x4cf2c9,'addComment',(_0x37006e,{threadId:_0x3876cd})=>{const _0x57ee0c=this['_suggestions']['get'](_0x3876cd);_0x57ee0c&&_0x57ee0c['commentThread']&&0x1===_0x57ee0c['commentThread']['length']&&this['_updateSuggestionData'](_0x3876cd,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4cf2c9,'removeComment',(_0x56e92d,{threadId:_0x5d8223})=>{const _0x2c8202=this['_suggestions']['get'](_0x5d8223);_0x2c8202&&_0x2c8202['commentThread']&&!_0x2c8202['commentThread']['length']&&this['_updateSuggestionData'](_0x5d8223,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x31d0dd){const _0x78d28=_0x52e74f([0x64,0x66,0x38,0x65,0x70,0x57,0x4b,0x45,0x5a,0x4c,0x46,0x49,0x31,0x32,0x67,0x41,0x58,0x6a,0x55,0x73,0x76,0x6f,0x35,0x47,0x36,0x77,0x4e,0x4d,0x79,0x62,0x61,0x44,0x48,0x68,0x56,0x71,0x42,0x75,0x34,0x37,0x72,0x33,0x6d,0x51,0x59,0x63,0x43,0x53,0x39,0x6e,0x6c,0x52,0x4a,0x4f,0x78,0x50,0x74,0x54,0x6b,0x30,0x7a,0x69]),_0x6ca1d4=0x24e4c314,_0x555fb6=0x24e3a31c^_0x6ca1d4,_0x48c58e=window[_0x52e74f([0x44,0x61,0x74,0x65])][_0x52e74f([0x6e,0x6f,0x77])](),_0x162710=_0x31d0dd[_0x52e74f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3878b1=new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e904a=>{_0x162710[_0x52e74f([0x6f,0x6e,0x63,0x65])](_0x52e74f([0x72,0x65,0x61,0x64,0x79]),_0x4e904a);}),_0x5c619a={[_0x52e74f([0x6b,0x74,0x79])]:_0x52e74f([0x45,0x43]),[_0x52e74f([0x75,0x73,0x65])]:_0x52e74f([0x73,0x69,0x67]),[_0x52e74f([0x63,0x72,0x76])]:_0x52e74f([0x50,0x2d,0x32,0x35,0x36]),[_0x52e74f([0x78])]:_0x52e74f([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x52e74f([0x79])]:_0x52e74f([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x52e74f([0x61,0x6c,0x67])]:_0x52e74f([0x45,0x53,0x32,0x35,0x36])},_0x3e1913=_0x162710[_0x52e74f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52e74f([0x67,0x65,0x74])](_0x52e74f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x44fa4d(){let _0x154947,_0x41f77b=null,_0x4dbc9f=null;try{if(_0x3e1913==_0x52e74f([0x47,0x50,0x4c]))return _0x52e74f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x154947=_0xc7cf86(),!_0x154947)return _0x52e74f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x154947[_0x52e74f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4dbc9f=_0x496880(_0x154947[_0x52e74f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x154947[_0x52e74f([0x6a,0x74,0x69])])),await _0x51704c()?_0x4b670e()?_0xf805ab()?_0x52e74f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12a6f7()?(_0x154947[_0x52e74f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52e74f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41f77b=_0x3a0b76(_0x52e74f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x154947[_0x52e74f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52e74f([0x74,0x72,0x69,0x61,0x6c])&&(_0x41f77b=_0x3a0b76(_0x52e74f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f66f1()):_0x52e74f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52e74f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52e74f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2ca499){return _0x52e74f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xf805ab(){const _0x41288d=[_0x52e74f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52e74f([0x74,0x72,0x69,0x61,0x6c])][_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x154947[_0x52e74f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x48c58e/0x3e8:0xe10*_0x555fb6;return _0x154947[_0x52e74f([0x65,0x78,0x70])]<_0x41288d;}function _0x4b670e(){const _0x32687d=_0x154947[_0x52e74f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x32687d)return!0x1;if(_0x32687d[_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52e74f([0x2a])))return!0x0;if(_0x32687d[_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52e74f([0x54,0x43])))return!0x0;if(_0x32687d[_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52e74f([0x52,0x54,0x43]))){if(_0x32c884())return!0x0;if(_0x21b090()||_0x3f4b04())return!0x0;}return!0x1;}function _0x12a6f7(){const _0x59345d=_0x154947[_0x52e74f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59345d||0x0==_0x59345d[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4db4fc}=new URL(window[_0x52e74f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59345d[_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db4fc))return!0x0;const _0xe5164b=_0x4db4fc[_0x52e74f([0x73,0x70,0x6c,0x69,0x74])](_0x52e74f([0x2e]));return _0x59345d[_0x52e74f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39fcc3=>_0x39fcc3[_0x52e74f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52e74f([0x2a])))[_0x52e74f([0x6d,0x61,0x70])](_0x2ddf86=>_0x2ddf86[_0x52e74f([0x73,0x70,0x6c,0x69,0x74])](_0x52e74f([0x2e])))[_0x52e74f([0x73,0x6f,0x6d,0x65])](_0x1b7a57=>_0xe5164b[_0x52e74f([0x65,0x76,0x65,0x72,0x79])]((_0x3b834e,_0x39f2d3)=>_0x1b7a57[_0x39f2d3]===_0x3b834e||_0x1b7a57[_0x39f2d3]===_0x52e74f([0x2a])));}function _0x2f66f1(){return _0x41f77b&&_0x4dbc9f?new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fdc1d,_0x2f44e4)=>{_0x41f77b[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x3fdc1d,_0x2f44e4),_0x4dbc9f[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x35f02d=>{_0x35f02d!=_0x52e74f([0x56,0x61,0x6c,0x69,0x64])&&_0x3fdc1d(_0x35f02d);},_0x2f44e4);}):_0x41f77b||_0x4dbc9f||_0x52e74f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x496880(_0x332a22,_0x3f7d0a){return new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f39f8=>{if(_0x2cd78f())return _0x3f39f8(_0x52e74f([0x56,0x61,0x6c,0x69,0x64]));_0x594a3a(),_0x162710[_0x52e74f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52e74f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe4a051=!0x1;const _0x22869f=_0xf688c7();function _0x31a751(_0x58fe09){return!!_0x58fe09&&(typeof _0x58fe09===_0x52e74f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58fe09===_0x52e74f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58fe09[_0x52e74f([0x74,0x68,0x65,0x6e])]===_0x52e74f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58fe09[_0x52e74f([0x63,0x61,0x74,0x63,0x68])]===_0x52e74f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2424c3(_0x383812){_0x924b31(_0x383812)[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x250c66=>{if(!_0x250c66||_0x250c66[_0x52e74f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52e74f([0x6f,0x6b]))return _0x52e74f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f03c4(_0x2984fe(_0x22869f+_0x3f7d0a))!=_0x250c66[_0x52e74f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52e74f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52e74f([0x56,0x61,0x6c,0x69,0x64]);})[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x1e46d1=>(_0x9fca54(),_0x1e46d1),()=>{const _0xa7a33b=_0x29797e();return null==_0xa7a33b?(_0x9fca54(),_0x52e74f([0x56,0x61,0x6c,0x69,0x64])):_0x52e74f(_0x48c58e-_0xa7a33b>(0xe84714^_0x6ca1d4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x3f39f8)[_0x52e74f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3f39f8(_0x52e74f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x426eae=0x24d22d94^_0x6ca1d4;function _0x9fca54(){const _0xc9a13e=_0x52e74f([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f03c4(_0x2984fe(_0x332a22)),_0x329ae0=_0xdf0145(_0x2f03c4(window[_0x52e74f([0x4d,0x61,0x74,0x68])][_0x52e74f([0x63,0x65,0x69,0x6c])](_0x48c58e/_0x426eae)));window[_0x52e74f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52e74f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc9a13e,_0x329ae0);}function _0x29797e(){const _0x8fa865=_0x52e74f([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f03c4(_0x2984fe(_0x332a22)),_0x3b8caa=window[_0x52e74f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52e74f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8fa865);return _0x3b8caa?window[_0x52e74f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdf0145(_0x3b8caa),0x10)*_0x426eae:null;}function _0x924b31(_0x5a80a7){return new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x565bd7,_0x8e3833)=>{_0x5a80a7[_0x52e74f([0x74,0x68,0x65,0x6e])](_0x565bd7,_0x8e3833),window[_0x52e74f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8e3833,0x24e517d4^_0x6ca1d4);});}}_0x162710[_0x52e74f([0x6f,0x6e])](_0x52e74f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x22c60c,_0x23c41a)=>{if(_0x23c41a[0x0]!=_0x332a22)return _0x3f39f8(_0x52e74f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23c41a[0x1]={..._0x23c41a[0x1],[_0x52e74f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x22869f};},{[_0x52e74f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52e74f([0x68,0x69,0x67,0x68])}),_0x162710[_0x52e74f([0x6f,0x6e])](_0x52e74f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19926f=>{_0x31a751(_0x19926f[_0x52e74f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe4a051=!0x0,_0x2424c3(_0x19926f[_0x52e74f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52e74f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52e74f([0x6c,0x6f,0x77])}),_0x3878b1[_0x52e74f([0x74,0x68,0x65,0x6e])](()=>{_0xe4a051||_0x3f39f8(_0x52e74f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2cd78f(){return _0x162710[_0x52e74f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52e74f([0x76,0x69,0x65,0x77])][_0x52e74f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52e74f([0x61,0x75,0x74,0x6f]);}function _0x594a3a(){_0x162710[_0x52e74f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52e74f([0x76,0x69,0x65,0x77])][_0x52e74f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52e74f([0x61,0x75,0x74,0x6f]);}}function _0x3a0b76(_0x165968){const _0x5b6705=[new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b2b76=>setTimeout(_0x3b2b76,0x24edfdd8^_0x6ca1d4)),_0x3878b1[_0x52e74f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33d0f4=>{let _0x1f4de7=0x0;_0x162710[_0x52e74f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52e74f([0x6f,0x6e])](_0x52e74f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c63a6,_0x276ab4)=>{_0x276ab4[0x0][_0x52e74f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f4de7++,_0x1f4de7==(0x24e4c2ec^_0x6ca1d4)&&(_0x33d0f4(),_0x1c63a6[_0x52e74f([0x6f,0x66,0x66])]());});}))];return window[_0x52e74f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52e74f([0x72,0x61,0x63,0x65])](_0x5b6705)[_0x52e74f([0x74,0x68,0x65,0x6e])](()=>_0x165968);}async function _0x4d08ef(){await _0x3878b1,_0x162710[_0x52e74f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52e74f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b0446,_0x162710[_0x52e74f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52e74f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b0446,_0x162710[_0x52e74f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52e74f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x32c884(){return _0x1900fb(_0x52e74f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xf97f92(_0x52e74f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x52e74f([0x73,0x74,0x61,0x74,0x65])]==_0x52e74f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x21b090(){return _0x1900fb(_0x52e74f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x3f4b04(){return _0x1900fb(_0x52e74f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2c72a8(_0x21529c){const _0x3413f6=_0x12172c();_0x162710[_0x3413f6]=_0x52e74f([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x21529c,_0x21529c!=_0x52e74f([0x56,0x61,0x6c,0x69,0x64])&&_0x4d08ef();}function _0x12172c(){const _0x58ced5=window[_0x52e74f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52e74f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52e74f([0x6e,0x6f,0x77])]())[_0x52e74f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52e74f([0x2e]),'');let _0x11ef18=_0x52e74f([0x64]);for(let _0x1a2114=0x0;_0x1a2114<_0x58ced5[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a2114+=0x2){let _0x438f5b=window[_0x52e74f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58ced5[_0x52e74f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a2114,_0x1a2114+0x2));_0x438f5b>=_0x78d28[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x438f5b-=_0x78d28[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11ef18+=_0x78d28[_0x438f5b];}return _0x11ef18;}function _0xc7cf86(){const _0x10551c=_0x3e1913[_0x52e74f([0x73,0x70,0x6c,0x69,0x74])](_0x52e74f([0x2e]));if(0x3!=_0x10551c[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5bf26f(_0x10551c[0x1]);function _0x5bf26f(_0x1ebd3d){const _0x3660a1=_0x2d1adc(_0x1ebd3d);return _0x3660a1&&_0x4b6125()?_0x3660a1:null;function _0x4b6125(){const _0x52cca8=_0x3660a1[_0x52e74f([0x6a,0x74,0x69])],_0x4f8c28=window[_0x52e74f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52cca8[_0x52e74f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52cca8[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf26cb2={..._0x3660a1,[_0x52e74f([0x6a,0x74,0x69])]:_0x52cca8[_0x52e74f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x52cca8[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf26cb2[_0x52e74f([0x76,0x63])],_0x2984fe(_0xf26cb2)==_0x4f8c28;}}}async function _0x51704c(){let _0xd68ca8=!0x0;try{const _0x201a63=_0x3e1913[_0x52e74f([0x73,0x70,0x6c,0x69,0x74])](_0x52e74f([0x2e])),[_0x176b93,_0x3957d7,_0x38f696]=_0x201a63;return _0x41ee84(_0x176b93),await _0x4dbc0e(_0x176b93,_0x3957d7,_0x38f696),_0xd68ca8;}catch(_0x48c235){return!0x1;}function _0x41ee84(_0x8ddea4){const _0x5109d4=_0x2d1adc(_0x8ddea4);_0x5109d4&&_0x5109d4[_0x52e74f([0x61,0x6c,0x67])]==_0x52e74f([0x45,0x53,0x32,0x35,0x36])||(_0xd68ca8=!0x1);}async function _0x4dbc0e(_0x5db341,_0x4d8170,_0x46a176){const _0x3f253c=window[_0x52e74f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52e74f([0x66,0x72,0x6f,0x6d])](_0x3fa5c7(_0x46a176),_0x39015d=>_0x39015d[_0x52e74f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28d8a1=new window[(_0x52e74f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52e74f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5db341+_0x52e74f([0x2e])+_0x4d8170),_0x373cab=window[_0x52e74f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52e74f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x373cab)return;const _0x24afcd=await _0x373cab[_0x52e74f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52e74f([0x6a,0x77,0x6b]),_0x5c619a,{[_0x52e74f([0x6e,0x61,0x6d,0x65])]:_0x52e74f([0x45,0x43,0x44,0x53,0x41]),[_0x52e74f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52e74f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52e74f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x373cab[_0x52e74f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52e74f([0x6e,0x61,0x6d,0x65])]:_0x52e74f([0x45,0x43,0x44,0x53,0x41]),[_0x52e74f([0x68,0x61,0x73,0x68])]:{[_0x52e74f([0x6e,0x61,0x6d,0x65])]:_0x52e74f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24afcd,_0x3f253c,_0x28d8a1)||(_0xd68ca8=!0x1);}}function _0x2d1adc(_0x117dbb){return _0x117dbb[_0x52e74f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52e74f([0x65,0x79]))?JSON[_0x52e74f([0x70,0x61,0x72,0x73,0x65])](_0x3fa5c7(_0x117dbb)):null;}function _0x3fa5c7(_0x3a8943){return window[_0x52e74f([0x61,0x74,0x6f,0x62])](_0x3a8943[_0x52e74f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52e74f([0x2b]))[_0x52e74f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52e74f([0x2f])));}function _0x2984fe(_0x25f894){let _0x3f8e49=0x1505;function _0x49fb3d(_0x2c1090){for(let _0x4c9433=0x0;_0x4c9433<_0x2c1090[_0x52e74f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c9433++){const _0x2630e6=_0x2c1090[_0x52e74f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c9433);_0x3f8e49=(_0x3f8e49<<0x5)+_0x3f8e49+_0x2630e6,_0x3f8e49&=_0x3f8e49;}}function _0x2fe6fa(_0xb2c0a9){Array[_0x52e74f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb2c0a9)?_0xb2c0a9[_0x52e74f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2fe6fa):_0xb2c0a9&&typeof _0xb2c0a9==_0x52e74f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52e74f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb2c0a9)[_0x52e74f([0x73,0x6f,0x72,0x74])]()[_0x52e74f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x436252,_0x410053])=>{_0x49fb3d(_0x436252),_0x2fe6fa(_0x410053);}):_0x49fb3d(window[_0x52e74f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb2c0a9));}return _0x2fe6fa(_0x25f894),_0x3f8e49>>>0x0;}function _0x2f03c4(_0x27dc9f){return _0x27dc9f[_0x52e74f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52e74f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52e74f([0x30]));}function _0xdf0145(_0x36a1dc){return _0x36a1dc[_0x52e74f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52e74f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52e74f([0x6a,0x6f,0x69,0x6e])]('');}function _0x1900fb(_0x346aa4){return _0x162710[_0x52e74f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x52e74f([0x68,0x61,0x73])](_0x346aa4);}function _0xf97f92(_0x42de76){return _0x162710[_0x52e74f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x52e74f([0x67,0x65,0x74])](_0x42de76);}function _0x4b0446(){}function _0x52e74f(_0x4a0a79){return _0x4a0a79['map'](_0x42440c=>String['fromCharCode'](_0x42440c))['join']('');}_0x2c72a8(await _0x44fa4d());}(this);}set['adapter'](_0x194704){if(this['_adapter'])throw new _0x11aaec('track-changes-adapter-already-set',this);this['_adapter']=_0x194704;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x20a535=!0x1,toJSON:_0x5202cf=!0x1}={}){const _0x540163=[];for(const _0x1ab1c6 of this['_suggestions']['values']())_0x20a535&&!_0x1ab1c6['isInContent']||_0x540163['push'](_0x1ab1c6);return _0x5202cf?_0x540163['map'](_0x37068a=>_0x37068a['toJSON']()):_0x540163;}['getSuggestion'](_0x3e43c8){const _0x4a3620=this['_suggestions']['get'](_0x3e43c8);if(!_0x4a3620)throw new _0x11aaec('track-changes-suggestion-not-found',this);return _0x4a3620;}['hasSuggestion'](_0x274304){return this['_suggestions']['has'](_0x274304);}['addSuggestionData'](_0x117d05){const {authorId:_0x361d67,id:_0x28a196,attributes:_0x180066}=_0x117d05,[_0x1a6364,_0x219797]=_0x117d05['type']['split'](':'),_0x43f5bb=this['_suggestions']['get'](_0x28a196)||this['_createSuggestion'](_0x1a6364,_0x219797,_0x28a196,_0x361d67,_0x180066);if(this['_addThreadToSuggestion'](_0x43f5bb),this['_checkSuggestionCorrectness'](_0x43f5bb,_0x1a6364,_0x219797||null,_0x361d67),_0x43f5bb['createdAt']=_0x117d05['createdAt'],_0x43f5bb['_isDataLoaded']=!0x0,_0x180066&&_0x180066['@external']){const _0xa278aa=_0x180066['@external'],_0x19a29c=this['_getExternalAuthor'](_0xa278aa['authorName']);_0x43f5bb['authoredAt']=_0xa278aa['createdAt'],_0x43f5bb['author']=_0x19a29c,_0x43f5bb['isExternal']=!0x0;}else _0x43f5bb['authoredAt']=_0x117d05['createdAt'];switch(_0x117d05['data']&&(_0x43f5bb['data']=_0x117d05['data']),_0x117d05['attributes']&&(_0x43f5bb['attributes']=_0x117d05['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x43f5bb['_saved']=!0x0),this['_suggestionState']['get'](_0x43f5bb)){case'notReady':this['_suggestionState']['set'](_0x43f5bb,'dataReady');break;case'markerReady':_0x43f5bb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x43f5bb])),this['_refreshSuggestionsChain'](new Set([_0x43f5bb])),this['_suggestionState']['set'](_0x43f5bb,'ready'),this['fire']('suggestionLoaded',_0x43f5bb)):this['_suggestionState']['set'](_0x43f5bb,'removed');}return _0x43f5bb;}['acceptSuggestion'](_0x3d8d30){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d6338 of _0x3d8d30['getAllAdjacentSuggestions']())_0x3d6338['accept']();});});}['discardSuggestion'](_0xf9a4ec){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x320c7b of _0xf9a4ec['getAllAdjacentSuggestions']())_0x320c7b['discard']();});});}['enableCommand'](_0x31309e,_0x24b7e8){const _0x482606=this['editor']['commands']['get'](_0x31309e);if(!_0x482606)throw new _0x11aaec('track-changes-command-not-found',this,{'commandName':_0x31309e});if(this['_enabledCommands']['has'](_0x482606))throw new _0x11aaec('track-changes-enable-command-twice',this,{'commandName':_0x31309e});this['_enabledCommands']['add'](_0x482606),_0x24b7e8&&_0x482606['on']('execute',(_0x1f4293,_0x5e5f39)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5e5f39['length']>0x0&&_0x5e5f39[_0x5e5f39['length']-0x1]&&_0x5e5f39[_0x5e5f39['length']-0x1]['forceDefaultExecution']?_0x5e5f39['pop']():(_0x1f4293['return']=_0x24b7e8((..._0x26de40)=>_0x482606['execute'](..._0x26de40,{'forceDefaultExecution':!0x0}),..._0x5e5f39),_0x1f4293['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x558f6f){let _0xab8319,_0xe9e03;const _0x68feb6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xab8319=_0x558f6f();}catch(_0x3fa4d4){_0xe9e03=_0x3fa4d4;}return _0x68feb6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xe9e03&&_0x11aaec['rethrowUnexpectedError'](_0xe9e03,this),_0xab8319;}['markInsertion'](_0x32340e,_0x162f7c=null,_0x354b63={}){if(_0x32340e['isCollapsed'])return null;const _0x108337=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1d3fd4,meta:_0x1da9f9}of this['_findSuggestions'](_0x32340e,'insertion'))if(_0x1da9f9['isOwn']){if(!_0x1da9f9['isNextTo']){if(_0x1da9f9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x1d3fd4,_0x354b63))continue;return _0x1d3fd4;}if(Qt(_0x1d3fd4,_0x354b63))return _0x1d3fd4;this['_breakSuggestionMarker'](_0x1d3fd4,_0x32340e['start'],_0x32340e['end']);break;}if(_0x162f7c==_0x1d3fd4['subType']&&Qt(_0x1d3fd4,_0x354b63)){const _0x8b6405=_0x1d3fd4['getFirstRange']();return _0x8b6405['start']['isEqual'](_0x32340e['end'])?this['_setSuggestionRange'](_0x1d3fd4,this['_model']['createRange'](_0x32340e['start'],_0x8b6405['end'])):this['_setSuggestionRange'](_0x1d3fd4,this['_model']['createRange'](_0x8b6405['start'],_0x32340e['end'])),_0x1d3fd4;}}const _0x21dfae=_0xf688c7(),_0x4ecc42=_0x108337['id'],_0x9b0d19=_0x162f7c?'insertion:'+_0x162f7c:'insertion',_0x13bcb8=this['_setSuggestionData']({'id':_0x21dfae,'type':_0x9b0d19,'createdAt':new Date(),'authorId':_0x4ecc42,'attributes':_0x354b63});return this['_addSuggestionMarker'](_0x9b0d19,_0x21dfae,_0x4ecc42,_0x32340e),_0x13bcb8;}['markMultiRangeInsertion'](_0x3536e3,_0x39d93b='multi',_0x3a48f9={}){const _0x3ca3d2=this['editor']['plugins']['get']('Users')['me'],_0x3946d3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x39d93b,'join');for(const _0x484f92 of this['getSuggestions']())if(_0x484f92['author']['id']==_0x3ca3d2['id']&&'insertion'==_0x484f92['type']&&_0x484f92['subType']==_0x39d93b&&Qt(_0x484f92,_0x3a48f9)&&(_0x3946d3(_0x484f92['getRanges'](),_0x3536e3)||_0x3946d3(_0x3536e3,_0x484f92['getRanges']()))){for(const _0x395f33 of _0x3536e3)_0x484f92['addRange'](_0x395f33);return _0x484f92;}for(const {suggestion:_0x171926,meta:_0x5b7c55}of this['_findSuggestions'](_0x3536e3,'insertion')){if(!_0x5b7c55['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5b7c55['containsRangeInObject'])continue;if(!Qt(_0x171926,_0x3a48f9))continue;let _0x2d826c=!0x0;for(const _0x464545 of _0x171926['getRanges']())for(const _0x296ec5 of _0x3536e3)if(!_0x464545['containsRange'](_0x296ec5)){_0x2d826c=!0x1;break;}if(_0x2d826c)return _0x171926;}const _0x52d730=_0xf688c7(),_0x4a3b24=_0x3ca3d2['id'],_0x273b60='insertion:'+_0x39d93b,_0x51ac2f=this['_setSuggestionData']({'id':_0x52d730,'type':_0x273b60,'createdAt':new Date(),'authorId':_0x4a3b24,'attributes':_0x3a48f9});for(const _0x1d2862 of _0x3536e3)this['_addSuggestionMarker'](_0x273b60,_0x52d730,_0x4a3b24,_0x1d2862,u['getMultiRangeId']());return _0x51ac2f;}['markInlineFormat'](_0x5279e1,_0x3d4542,_0x1422bb=null,_0x4331dc={}){if(_0x1422bb=_0x1422bb||Jt(_0x3d4542),_0x5279e1['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x462a89=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1422bb,'accept');return this['forceDefaultExecution'](()=>_0x462a89([_0x5279e1],_0x3d4542,_0x4331dc)),null;}const _0x5d09e0=this['editor']['plugins']['get']('Users')['me'],_0x472cba=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x15fe5d,meta:_0x1a4f5a}of this['_findSuggestions'](_0x5279e1,'insertion'))_0x1a4f5a['isOwn']&&!_0x1a4f5a['isInsideObject']&&_0x472cba['push'](..._0x15fe5d['getRanges']());}const _0x3433fb=function(_0x5560d2,_0x1ee124){const _0x580e2c=[];for(const _0x2d9e2a of _0x1ee124){const _0x8e7c3e=_0x5560d2['getIntersection'](_0x2d9e2a);_0x8e7c3e&&_0x580e2c['push'](_0x8e7c3e);}return _0x580e2c;}(_0x5279e1,_0x472cba),_0x45223e=function(_0x214ea8,_0xff129){const _0x5d6cae=[_0x214ea8];for(const _0x8c3a3e of _0xff129){let _0x385b14=0x0;for(;_0x385b14<_0x5d6cae['length'];){const _0x108eea=_0x5d6cae[_0x385b14]['getDifference'](_0x8c3a3e);_0x5d6cae['splice'](_0x385b14,0x1,..._0x108eea),_0x385b14+=_0x108eea['length'];}}return _0x5d6cae;}(_0x5279e1,_0x472cba);_0x3433fb['length']&&this['_model']['change'](()=>{for(const _0x286994 of _0x3433fb){const _0x2b2caf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1422bb,'accept');this['forceDefaultExecution'](()=>_0x2b2caf([_0x286994],_0x3d4542,_0x4331dc));}});for(const _0x12c454 of _0x45223e){let _0x312605=null,_0x2e0e88=_0x12c454['start'],_0x13b5d2=_0x12c454['end'];for(const {suggestion:_0x44475b,meta:_0x286734}of this['_findSuggestions'](_0x12c454,'formatInline')){if(!_0x286734['isOwn'])continue;if(_0x44475b['subType']!=_0x1422bb)continue;if(!Qt(_0x44475b,_0x4331dc))continue;const _0x362c76=_0x44475b['getFirstRange']();if(_0x362c76['containsRange'](_0x12c454,!0x0))return null;_0x2e0e88=_0x2e0e88['isBefore'](_0x362c76['start'])?_0x2e0e88:_0x362c76['start'],_0x13b5d2=_0x13b5d2['isAfter'](_0x362c76['end'])?_0x13b5d2:_0x362c76['end'],_0x312605?_0x362c76['start']['isBefore'](_0x312605['getFirstRange']()['start'])?(_0x312605['removeMarkers'](),_0x312605=_0x44475b):_0x44475b['removeMarkers']():_0x312605=_0x44475b;}const _0x1ca54c=this['_model']['createRange'](_0x2e0e88,_0x13b5d2);if(_0x312605)this['_setSuggestionRange'](_0x312605,_0x1ca54c);else{const _0x27de59=_0xf688c7(),_0x3e99eb=_0x5d09e0['id'];this['_setSuggestionData']({'id':_0x27de59,'type':'formatInline:'+_0x1422bb,'data':_0x3d4542,'createdAt':new Date(),'authorId':_0x3e99eb,'attributes':_0x4331dc}),this['_addSuggestionMarker']('formatInline:'+_0x1422bb,_0x27de59,_0x3e99eb,_0x1ca54c);}}return null;}['markBlockFormat'](_0x505bb5,_0x3498d9,_0x2ef67d=[],_0x2035b7=null,_0x231049={}){_0x3498d9['formatGroupId']||(_0x3498d9['formatGroupId']=_0x3498d9['commandName']),_0x3498d9['multipleBlocks']=_0x505bb5['is']('range'),_0x2035b7=_0x2035b7||Jt(_0x3498d9);const _0xdc5a3d=_0x2ef67d['map'](_0x5688c5=>zt(_0x5688c5,this['_model'])),_0x21354d=_0x505bb5['is']('range')?_0x505bb5:zt(_0x505bb5,this['_model']);if('never'===this['_trackFormatChanges']){const _0x14b610=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2035b7,'accept');return this['forceDefaultExecution'](()=>_0x14b610([_0x21354d],_0x3498d9,_0x231049)),null;}_0xdc5a3d['push'](_0x21354d);let _0x10010f=!0x0;for(const _0x264cae of _0xdc5a3d)if(!this['_rangeIsInLocalUserInsertion'](_0x264cae)){_0x10010f=!0x1;break;}if(_0x10010f&&'always'!==this['_trackFormatChanges']){const _0x5bedcb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2035b7,'accept');return this['forceDefaultExecution'](()=>_0x5bedcb([_0x21354d],_0x3498d9,_0x231049)),null;}let _0x30bd72=null,_0x1498e5=_0x21354d['start'],_0x3af147=_0x21354d['end'];for(const {suggestion:_0x12312c,meta:_0x28b926}of this['_findSuggestions'](_0x21354d,'formatBlock')){if(!_0x28b926['isOwn'])continue;if(_0x28b926['isNextTo']||_0x28b926['containsRangeInObject']||_0x28b926['isInsideObject'])continue;if(_0x12312c['data']['formatGroupId']!=_0x3498d9['formatGroupId'])continue;if(!Qt(_0x12312c,_0x231049))continue;const _0x43996d=_0x12312c['getFirstRange']();if(_0x12312c['subType']==_0x2035b7){if(_0x43996d['containsRange'](_0x21354d,!0x0))return null;_0x1498e5=_0x1498e5['isBefore'](_0x43996d['start'])?_0x1498e5:_0x43996d['start'],_0x3af147=_0x3af147['isAfter'](_0x43996d['end'])?_0x3af147:_0x43996d['end'],_0x30bd72?_0x43996d['start']['isBefore'](_0x30bd72['getFirstRange']()['start'])?(_0x30bd72['removeMarkers'](),_0x30bd72=_0x12312c):_0x12312c['removeMarkers']():_0x30bd72=_0x12312c;}else{const _0x38c289=_0x21354d['getIntersection'](_0x43996d);this['_cutOutSuggestionMarker'](_0x12312c,_0x38c289);}}const _0x2c219d=this['editor']['plugins']['get']('Users')['me'],_0x321612=_0xf688c7(),_0x57f553=_0x2c219d['id'];if(_0x30bd72)return this['_setSuggestionRange'](_0x30bd72,this['_model']['createRange'](_0x1498e5,_0x3af147)),_0x30bd72;{const _0x4d4e2f=this['_setSuggestionData']({'id':_0x321612,'type':'formatBlock:'+_0x2035b7,'data':_0x3498d9,'createdAt':new Date(),'authorId':_0x57f553,'attributes':_0x231049});return this['_addSuggestionMarker']('formatBlock:'+_0x2035b7,_0x321612,_0x57f553,this['_model']['createRange'](_0x1498e5,_0x3af147)),_0x4d4e2f;}}['markMultiRangeBlockFormat'](_0x3486fd,_0x5a3b2f,_0x3ff1a4=[],_0x266b02=null,_0x8b49f2={}){_0x5a3b2f['formatGroupId']||(_0x5a3b2f['formatGroupId']=_0x5a3b2f['commandName']);const _0x5d2e06=_0x3486fd[0x0];_0x5a3b2f['multipleBlocks']=_0x5d2e06['is']('range'),_0x266b02=_0x266b02||Jt(_0x5a3b2f);const _0x387798=_0x3ff1a4['map'](_0x41138d=>zt(_0x41138d,this['_model'])),_0x2beb4d=_0x5d2e06['is']('range')?_0x3486fd:_0x3486fd['map'](_0x50d648=>zt(_0x50d648,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3eea81=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x266b02,'accept');return this['forceDefaultExecution'](()=>_0x3eea81(_0x2beb4d,_0x5a3b2f,_0x8b49f2)),null;}_0x387798['push'](..._0x2beb4d);let _0x411bca=!0x0;for(const _0x1ee58a of _0x387798)if(!this['_rangeIsInLocalUserInsertion'](_0x1ee58a)){_0x411bca=!0x1;break;}if(_0x411bca&&'always'!==this['_trackFormatChanges']){const _0x2dcdad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x266b02,'accept');return this['forceDefaultExecution'](()=>_0x2dcdad(_0x2beb4d,_0x5a3b2f,_0x8b49f2)),null;}const _0x221d83=this['editor']['plugins']['get']('Users')['me'];for(const _0x883ae4 of this['getSuggestions']()){if(_0x883ae4['author']['id']!=_0x221d83['id'])continue;if('formatBlock'!=_0x883ae4['type']||_0x883ae4['data']['formatGroupId']!=_0x5a3b2f['formatGroupId'])continue;if(!Qt(_0x883ae4,_0x8b49f2))continue;const _0x1b290c=_0x883ae4['subType']==_0x266b02;for(let _0x374b0c=0x0;_0x374b0c<_0x2beb4d['length'];_0x374b0c++){const _0x50faab=_0x2beb4d[_0x374b0c];for(const _0x4621da of _0x883ae4['getMarkers']()){const _0xd0cc7a=_0x4621da['getRange']();if(_0x50faab['isEqual'](_0xd0cc7a)){_0x1b290c?(_0x2beb4d['splice'](_0x374b0c,0x1),_0x374b0c--):_0x883ae4['removeMarker'](_0x4621da['name']);break;}}}}if(0x0==_0x2beb4d['length'])return null;const _0x1442de=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x266b02,'join');for(const _0x112422 of this['getSuggestions']())if(_0x112422['author']['id']==_0x221d83['id']&&'formatBlock'==_0x112422['type']&&_0x112422['data']['formatGroupId']==_0x5a3b2f['formatGroupId']&&_0x112422['subType']==_0x266b02&&Qt(_0x112422,_0x8b49f2)&&(_0x1442de(_0x112422['getRanges'](),_0x2beb4d)||_0x1442de(_0x2beb4d,_0x112422['getRanges']()))){for(const _0x5a2b04 of _0x2beb4d)_0x112422['addRange'](_0x5a2b04);return _0x112422;}const _0x5ab01d=_0xf688c7(),_0x5cb3c3=_0x221d83['id'],_0x45c599='formatBlock:'+_0x266b02,_0xb521b0=this['_setSuggestionData']({'id':_0x5ab01d,'type':_0x45c599,'data':_0x5a3b2f,'createdAt':new Date(),'authorId':_0x5cb3c3,'attributes':_0x8b49f2});for(const _0x3562f5 of _0x2beb4d)this['_addSuggestionMarker'](_0x45c599,_0x5ab01d,_0x5cb3c3,_0x3562f5,u['getMultiRangeId']());return _0xb521b0;}['markDeletion'](_0x3a93bf,_0x3e80b1=null,_0x241334={}){if(_0x3a93bf['isCollapsed'])return null;const _0x51f52d=this['editor']['plugins']['get']('Users')['me'],_0x4953ad=new _0x4f46eb(_0x3a93bf['start'],_0x3a93bf['end']);for(const {suggestion:_0x59bd46,meta:_0x4afabd}of this['_findSuggestions'](_0x4953ad,'insertion'))if(_0x4afabd['isOwn']&&!_0x4afabd['isNextTo']){if(_0x59bd46['isMultiRange']){const _0x3cc173=_0x59bd46['getRanges']()['filter'](_0x3de3ea=>'$graveyard'!=_0x3de3ea['root']['rootName']);_0x3cc173['every'](_0x38f0d4=>_0x4953ad['containsRange'](_0x38f0d4,!0x0))&&_0x59bd46['discard']();if(_0x3cc173['some'](_0x58f72d=>_0x58f72d['containsRange'](_0x4953ad,!0x0))){const _0x50a25b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e80b1,'accept');return this['forceDefaultExecution'](()=>_0x50a25b([_0x4953ad],null,_0x241334)),null;}}else{const _0x52fa4f=_0x4953ad['getIntersection'](_0x59bd46['getFirstRange']());null!==_0x52fa4f&&_0x59bd46['_onDiscard']([_0x52fa4f],null,_0x241334);}}if(_0x4953ad['detach'](),_0x4953ad['isCollapsed']||'$graveyard'==_0x4953ad['root']['rootName'])return null;let _0xcef4e9=null,_0x3c4f94=_0x4953ad['start'],_0x250eeb=_0x4953ad['end'];const _0x474c68=this['_findSuggestions'](_0x4953ad,'deletion');for(const {suggestion:_0x6327ce,meta:_0x4ee71b}of _0x474c68){const _0x3af96a=this['_model']['createRange'](_0x3c4f94,_0x250eeb);if(_0x4ee71b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4ee71b['containsRangeInObject']&&!_0x4ee71b['isInsideObject'])){if(_0x6327ce['isMultiRange']){if(!Qt(_0x6327ce,_0x241334))continue;let _0x4fd256=!0x0;for(const _0x45c580 of _0x6327ce['getRanges']()){if(_0x45c580['containsRange'](_0x3af96a,!0x0))return _0x6327ce;_0x3af96a['containsRange'](_0x45c580)||(_0x4fd256=!0x1);}_0x4fd256&&_0x6327ce['discard']();}else{const _0xa89617=_0x6327ce['getFirstRange']();if(_0xa89617['containsRange'](_0x3af96a,!0x0))return _0x6327ce;if(!Qt(_0x6327ce,_0x241334)){_0x3af96a['containsRange'](_0xa89617)?_0x6327ce['removeMarkers']():_0xa89617['containsPosition'](_0x3c4f94)?_0x3c4f94=_0xa89617['end']:_0xa89617['containsPosition'](_0x250eeb)&&(_0x250eeb=_0xa89617['start']);continue;}_0x3c4f94=_0x3c4f94['isBefore'](_0xa89617['start'])?_0x3c4f94:_0xa89617['start'],_0x250eeb=_0x250eeb['isAfter'](_0xa89617['end'])?_0x250eeb:_0xa89617['end'],_0x241334=Object['assign']({},_0x6327ce['attributes']),_0xcef4e9?_0xa89617['start']['isBefore'](_0xcef4e9['getFirstRange']()['start'])?(_0xcef4e9['removeMarkers'](),_0xcef4e9=_0x6327ce):_0x6327ce['removeMarkers']():_0xcef4e9=_0x6327ce;}}}if(_0xcef4e9)return this['_setSuggestionRange'](_0xcef4e9,this['_model']['createRange'](_0x3c4f94,_0x250eeb)),_0xcef4e9;{const _0xa45078=_0xf688c7(),_0x3b7006=this['_model']['createRange'](_0x3c4f94,_0x250eeb),_0x1eb544=_0x51f52d['id'],_0x5949bb=_0x3e80b1?'deletion:'+_0x3e80b1:'deletion',_0x181124=this['_setSuggestionData']({'id':_0xa45078,'type':_0x5949bb,'createdAt':new Date(),'authorId':_0x1eb544,'attributes':_0x241334});return this['_addSuggestionMarker'](_0x5949bb,_0xa45078,_0x1eb544,_0x3b7006),_0x181124;}}['markMultiRangeDeletion'](_0x5cd874,_0x715861='multi',_0x9816dd={}){const _0x590788=this['editor']['plugins']['get']('Users')['me'],_0x9f88e4=_0x5cd874['map'](_0x55dbd5=>new _0x4f46eb(_0x55dbd5['start'],_0x55dbd5['end'])),_0x57f5fc=new Set();for(const {suggestion:_0x5ee2a0,meta:_0xd243ea}of this['_findSuggestions'](_0x9f88e4,'insertion'))_0xd243ea['isOwn']&&!_0xd243ea['isNextTo']&&_0x57f5fc['add'](_0x5ee2a0);for(const _0x389322 of _0x57f5fc)if(_0x389322['isMultiRange']){const _0x1885ce=_0x389322['getRanges']();(!_0x389322['attributes']||!_0x389322['attributes']['skipNestingCheck'])&&(_0x1885ce['every'](_0x131e99=>_0x9f88e4['some'](_0xb1905e=>_0xb1905e['containsRange'](_0x131e99,!0x0)))&&_0x389322['discard']());if(_0x9f88e4['every'](_0x55292f=>_0x1885ce['some'](_0x3ba5b2=>_0x3ba5b2['containsRange'](_0x55292f,!0x0)))){const _0x298048=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x715861,'accept');return this['forceDefaultExecution'](()=>_0x298048(_0x5cd874,null,_0x9816dd)),null;}}else{const _0x2a4e49=_0x389322['getFirstRange']();_0x9f88e4['some'](_0x1d5a4b=>_0x1d5a4b['containsRange'](_0x2a4e49,!0x0))&&_0x389322['discard']();if(_0x9f88e4['every'](_0x2283cf=>_0x2a4e49['containsRange'](_0x2283cf,!0x0))){const _0x154d58=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x715861,'accept');return this['forceDefaultExecution'](()=>_0x154d58(_0x9f88e4,null,_0x9816dd)),null;}}const _0x626726=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x715861,'join');let _0x1103f6=null;for(const _0x3f91ca of this['getSuggestions']())if(_0x3f91ca['author']['id']==_0x590788['id']&&_0x3f91ca['isInContent']&&'deletion'==_0x3f91ca['type']&&_0x3f91ca['subType']==_0x715861&&Qt(_0x3f91ca,_0x9816dd)&&(_0x626726(_0x3f91ca['getRanges'](),_0x9f88e4)||_0x626726(_0x9f88e4,_0x3f91ca['getRanges']()))){if(_0x1103f6){if(_0x3f91ca['commentThread']&&_0x3f91ca['commentThread']['length'])continue;for(const _0x37f10b of _0x3f91ca['getRanges']())_0x1103f6['isIntersectingWithRange'](_0x37f10b)||_0x1103f6['addRange'](_0x37f10b);_0x3f91ca['removeMarkers']();}else{_0x1103f6=_0x3f91ca;for(const _0x17c8ba of _0x9f88e4)_0x3f91ca['isIntersectingWithRange'](_0x17c8ba)||_0x3f91ca['addRange'](_0x17c8ba);}}if(_0x1103f6)return _0x1103f6;_0x57f5fc['clear']();for(const {suggestion:_0x254fb1,meta:_0x351932}of this['_findSuggestions'](_0x9f88e4,'deletion'))_0x351932['isOwn']&&(this['_mergeNestedSuggestions']||!_0x351932['containsRangeInObject']&&!_0x351932['isInsideObject'])&&Qt(_0x254fb1,_0x9816dd)&&_0x57f5fc['add'](_0x254fb1);for(const _0x3847c7 of _0x57f5fc){const _0x3ff00c=_0x3847c7['getRanges']();if(!_0x9816dd||!_0x9816dd['skipNestingCheck']){if(_0x9f88e4['every'](_0x5a0572=>_0x3ff00c['some'](_0x5636b5=>_0x5636b5['containsRange'](_0x5a0572,!0x0))))return _0x3847c7;}(!_0x3847c7['attributes']||!_0x3847c7['attributes']['skipNestingCheck'])&&(_0x3ff00c['every'](_0x1f0525=>_0x9f88e4['some'](_0x2ec135=>_0x2ec135['containsRange'](_0x1f0525,!0x0)))&&_0x3847c7['discard']());}const _0x5551cf=_0xf688c7(),_0x124f58=_0x590788['id'],_0x51ef99='deletion:'+_0x715861,_0x169682=this['_setSuggestionData']({'id':_0x5551cf,'type':_0x51ef99,'createdAt':new Date(),'authorId':_0x124f58,'attributes':_0x9816dd});for(const _0x223407 of _0x9f88e4)_0x223407['detach'](),_0x223407['isCollapsed']||'$graveyard'==_0x223407['root']['rootName']||this['_addSuggestionMarker'](_0x51ef99,_0x5551cf,_0x124f58,_0x223407,u['getMultiRangeId']());return _0x169682;}['markAttributeChange'](_0x308f9a,_0x52494b,_0x1c7859,_0x5c32aa,_0x57d426){if(_0x308f9a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x47a665=this['editor']['plugins']['get']('Users')['me']['id'],_0xcf3e77=Array['from'](this['_suggestions']['values']())['filter'](_0xd364d2=>'attribute'==_0xd364d2['type']&&_0xd364d2['data']['key']==_0x52494b&&_0xd364d2['isIntersectingWithRange'](_0x308f9a));if('default'===this['_trackFormatChanges']){const _0x50f16c=this['_findSuggestions'](_0x308f9a,'insertion')['filter'](({meta:_0x5e81fd})=>_0x5e81fd['isOwn']&&!_0x5e81fd['isInsideObject']&&!_0x5e81fd['isNextTo'])['map'](({suggestion:_0x2b1b15})=>_0x2b1b15);_0xcf3e77['unshift'](..._0x50f16c);}const _0x25fe45=new Map([[_0x308f9a,_0x1c7859]]);for(const _0x46d2ad of _0xcf3e77){const _0x246760='attribute'==_0x46d2ad['type']?_0x46d2ad['data']['oldValue']:void 0x0,_0x2ab131=_0x46d2ad['getFirstRange'](),_0x3ca71d=Array['from'](_0x25fe45['keys']())['find'](_0x1549f4=>_0x1549f4['isIntersecting'](_0x2ab131));if(!_0x3ca71d)continue;const _0x1cd506=_0x3ca71d['getDifference'](_0x2ab131);this['_isBlockAttribute'](_0x52494b)&&'insertion'==_0x46d2ad['type']&&0x0!=_0x1cd506['length']||(_0x25fe45['delete'](_0x3ca71d),_0x1cd506['forEach'](_0x44e7ac=>{_0x25fe45['set'](_0x44e7ac,_0x1c7859);}),'insertion'!=_0x46d2ad['type']&&_0x246760!=_0x5c32aa&&_0x25fe45['set'](_0x3ca71d['getIntersection'](_0x2ab131),_0x246760));}const _0x1f8c9e=[];for(const [_0x1c4aa0,_0x41dd8f]of _0x25fe45){const _0x1e92e2=_0xf688c7(),_0x1122ad={'key':_0x52494b,'oldValue':_0x41dd8f,'newValue':_0x5c32aa};_0x52494b['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x52494b});const _0x544a0f=('attribute:'+(_0x52494b+'|'+Jt({'newValue':_0x5c32aa})))['substring'](0x0,0x3c),_0x4a0145=this['_setSuggestionData']({'id':_0x1e92e2,'type':_0x544a0f,'data':_0x1122ad,'createdAt':new Date(),'authorId':_0x47a665,'attributes':_0x57d426});_0x1f8c9e['push'](_0x4a0145),this['_addSuggestionMarker'](_0x544a0f,_0x1e92e2,_0x47a665,_0x1c4aa0);}return _0x1f8c9e;}['enableDefaultAttributesIntegration'](_0x55dd90){this['enableCommand'](_0x55dd90,(_0x5747a8,..._0x26df8f)=>{this['_recordAttributeChanges'](()=>{_0x5747a8(..._0x26df8f);});});}['registerBlockAttribute'](_0x4e8357){this['_blockAttributeKeys']['add'](_0x4e8357);}['registerInlineAttribute'](_0x4d0def){this['_inlineAttributeKeys']['add'](_0x4d0def);}['_getAttributeKey'](_0x14f992){return'attribute'==_0x14f992['type']?_0x14f992['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4a2218,_0x1d6e1a){const _0x497fd0=_0x4a2218['getFirstMarker']();this['_model']['change'](_0x41284a=>{_0x41284a['updateMarker'](_0x497fd0,{'range':_0x1d6e1a});});}['_addThreadToSuggestion'](_0x3fbf74){const _0x17f780=_0x3fbf74['id'],_0x2befcb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x17f780)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2befcb,'threadId':_0x17f780,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4eb90a=this['_commentsRepository']['getCommentThread'](_0x17f780);_0x4eb90a['unbind']('isRemovable'),_0x4eb90a['isRemovable']=!0x1,_0x3fbf74['commentThread']=_0x4eb90a;}['_checkSuggestionCorrectness'](_0x20c576,_0x2bdd94,_0x2d113e,_0x2a222c){if(_0x20c576['type']!=_0x2bdd94||_0x20c576['subType']!=_0x2d113e||_0x20c576['creator']['id']!=_0x2a222c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x11aaec('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x590f95,_0x2b6f75){const _0x324c0a=_0x590f95['getFirstRange']();if(_0x2b6f75['isEqual'](_0x324c0a))_0x590f95['removeMarkers']();else{if(_0x324c0a['containsRange'](_0x2b6f75)){const _0x3f387d=this['_model']['createPositionAt'](_0x2b6f75['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x590f95,this['_model']['createRange'](_0x324c0a['start'],_0x3f387d));const _0x310d16=_0xf688c7(),_0x303d7c=_0x590f95['creator']['id'],_0x45843e=_0x590f95['type']+':'+_0x590f95['subType'];this['_setSuggestionData']({'id':_0x310d16,'type':_0x45843e,'createdAt':new Date(),'authorId':_0x303d7c,'data':_0x590f95['data'],'attributes':_0x590f95['attributes']});const _0x54f2f8=this['_model']['createPositionAt'](_0x2b6f75['end']['parent'],'after'),_0x28fa68=this['_model']['createRange'](_0x54f2f8,_0x324c0a['end']);this['_addSuggestionMarker'](_0x45843e,_0x310d16,_0x303d7c,_0x28fa68);}else{if(_0x324c0a['containsPosition'](_0x2b6f75['start'])){const _0x80fcb2=this['_model']['createPositionAt'](_0x2b6f75['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x590f95,this['_model']['createRange'](_0x324c0a['start'],_0x80fcb2));}else{const _0x11342b=this['_model']['createPositionAt'](_0x2b6f75['end']['parent'],'after');this['_setSuggestionRange'](_0x590f95,this['_model']['createRange'](_0x11342b,_0x324c0a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x31e3c3){for(const {suggestion:_0x3af794,meta:_0x18332f}of this['_findSuggestions'](_0x31e3c3,'insertion')){if(!_0x18332f['isOwn'])continue;const _0x410ac5=_0x3af794['getRanges']();for(const _0x35f7cd of _0x410ac5)if(!_0x31e3c3['getDifference'](_0x35f7cd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5bc0c8){const _0x2ae83e=this['editor']['plugins']['get']('Users')['getUser'](_0x5bc0c8);if(!_0x2ae83e)throw new _0x11aaec('track-changes-user-not-found',this);return _0x2ae83e;}['_getExternalAuthor'](_0x27324f){const _0xf9e658=this['editor']['plugins']['get']('Users'),_0x197d93=_0x1c2190('external:'+_0x27324f),_0x8fe239=_0xf9e658['getUser'](_0x197d93);return _0x8fe239||_0xf9e658['addUser']({'id':_0x197d93,'name':_0x27324f});}['_createSuggestion'](_0xb8001a,_0x453d7f,_0x37be11,_0x483d7d,_0x2884e4){const _0x187e25=this['_getAuthorFromId'](_0x483d7d),_0x2cd353=this['_suggestionFactory']['buildSuggestion'](_0xb8001a,_0x453d7f,_0x37be11,_0x187e25,_0x2884e4,_0x1358fd=>{this['_updateSuggestionData'](_0x37be11,{'attributes':_0x1358fd});const _0x176714=this['getSuggestion'](_0x37be11);this['_joinWithAdjacentSuggestions'](new Set([_0x176714])),this['_refreshSuggestionsChain'](new Set([_0x176714]));});return this['listenTo'](_0x2cd353,'accept',()=>{this['_updateSuggestionData'](_0x37be11,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2cd353,'discard',()=>{this['_updateSuggestionData'](_0x37be11,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x37be11,_0x2cd353),this['_suggestionState']['set'](_0x2cd353,'notReady'),_0x2cd353;}['_splitMarkerName'](_0x4a43b0){const _0x25792a=_0x4a43b0['split'](':');return{'group':_0x25792a[0x0],'type':_0x25792a[0x1],'subType':_0x25792a['length']>=0x5?_0x25792a[0x2]:null,'id':_0x25792a['length']<0x5?_0x25792a[0x2]:_0x25792a[0x3],'authorId':_0x25792a['length']<0x5?_0x25792a[0x3]:_0x25792a[0x4],'markerCount':0x6==_0x25792a['length']?_0x25792a[0x5]:null};}['_breakSuggestionMarker'](_0x5db172,_0x10c92b,_0x2583ff){const _0x4839a1=_0x5db172['getFirstRange'](),_0x59d684=_0x4839a1['start'],_0x393406=_0x4839a1['end'];this['_setSuggestionRange'](_0x5db172,this['_model']['createRange'](_0x59d684,_0x10c92b));const _0x284c57=_0xf688c7(),_0x4cf2fd=_0x5db172['creator']['id'],_0x181046=_0x5db172['type']+(_0x5db172['subType']?':'+_0x5db172['subType']:'');this['_setSuggestionData']({'id':_0x284c57,'type':_0x181046,'createdAt':new Date(),'authorId':_0x4cf2fd,'originalSuggestionId':_0x5db172['id'],'attributes':_0x5db172['attributes'],'data':_0x5db172['data']});const _0x3084fd=this['_getAttributeKey'](_0x5db172);('formatBlock'==_0x5db172['type']||_0x3084fd&&this['_isBlockAttribute'](_0x3084fd))&&(_0x2583ff=this['_model']['createPositionBefore'](_0x2583ff['parent'])),this['_addSuggestionMarker'](_0x181046,_0x284c57,_0x4cf2fd,this['_model']['createRange'](_0x2583ff,_0x393406));}['_findSuggestions'](_0x3bc08a,_0x341045=null){const _0x290538=[],_0x221a56=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3bc08a)||(_0x3bc08a=[_0x3bc08a]);for(const _0x166660 of this['getSuggestions']()){if(!_0x166660['isInContent'])continue;if(_0x341045&&_0x166660['type']!=_0x341045)continue;let _0x164047=!0x1;for(const _0x590846 of _0x166660['getRanges']()){for(const _0x17daf7 of _0x3bc08a){const _0x3f4da3=_0x17daf7['start']['isEqual'](_0x590846['end'])||_0x17daf7['end']['isEqual'](_0x590846['start']);if(_0x3f4da3||_0x17daf7['getIntersection'](_0x590846)){const _0x264180=_0x17daf7['containsRange'](_0x590846)&&Gt(this['_model']['schema'],_0x590846['start'],_0x17daf7),_0x35f66f=_0x590846['containsRange'](_0x17daf7)&&Gt(this['_model']['schema'],_0x17daf7['start'],_0x590846);_0x290538['push']({'suggestion':_0x166660,'meta':{'isOwn':_0x221a56==_0x166660['author'],'isNextTo':_0x3f4da3,'isInsideObject':_0x264180,'containsRangeInObject':_0x35f66f}}),_0x164047=!0x0;break;}}if(_0x164047)break;}}return _0x290538;}['_addSuggestionMarker'](_0x3f2132,_0xe5639e,_0x57ae3a,_0x233ce6,_0x39d9e9){this['_model']['change'](_0x5117a6=>{let _0x19fbcf='suggestion:'+_0x3f2132+':'+_0xe5639e+':'+_0x57ae3a;_0x39d9e9&&(_0x19fbcf=_0x19fbcf+':'+_0x39d9e9),_0x5117a6['addMarker'](_0x19fbcf,{'range':_0x233ce6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1f9d0e){const _0x50e8bd=_0x1f9d0e['previous'],_0x2e5678=_0x1f9d0e['next'];_0x1f9d0e['previous']=null,_0x1f9d0e['next']=null,null!=_0x50e8bd&&_0x50e8bd['next']==_0x1f9d0e&&(_0x50e8bd['next']=_0x2e5678),null!=_0x2e5678&&_0x2e5678['previous']==_0x1f9d0e&&(_0x2e5678['previous']=_0x50e8bd),'ready'==this['_suggestionState']['get'](_0x1f9d0e)&&(this['_suggestionState']['set'](_0x1f9d0e,'removed'),this['fire']('suggestionUnloaded',_0x1f9d0e,_0x50e8bd,_0x2e5678));}['_setSuggestionData'](_0x3be436){const _0x5eca48=_0x3be436['id'],_0x2aa471=this['addSuggestionData'](_0x3be436);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x56c808=this['editor']['plugins']['get']('PendingActions'),_0x18c50a=_0x2aa471['hasComments'],_0x13bfc0=_0x2aa471['subType']?_0x2aa471['type']+':'+_0x2aa471['subType']:_0x2aa471['type'],_0x199cca=this['editor']['locale'],_0x20deaa=_0x56c808['add'](o(_0x199cca,'PENDING_ACTION_SUGGESTION')),_0x2b0ca7={'id':_0x5eca48,'type':_0x13bfc0,'hasComments':_0x18c50a,'data':_0x3be436['data']||null,'originalSuggestionId':_0x3be436['originalSuggestionId']||null,'attributes':_0x2aa471['attributes']};this['_adapter']['addSuggestion'](_0x2b0ca7)['then'](_0x2529f1=>{_0x2aa471['_saved']=!0x0,_0x56c808['remove'](_0x20deaa),_0x2529f1&&_0x2529f1['createdAt']&&(this['_suggestions']['get'](_0x5eca48)['createdAt']=_0x2529f1['createdAt']);})['catch'](_0x2a9d33=>{throw _0x578fad('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2aa471['discard']();}),_0x2aa471['stopListening'](),this['_suggestions']['delete'](_0x2aa471['id']),this['_suggestionState']['delete'](_0x2aa471),_0x2a9d33;});}return _0x2aa471;}['_isBlockAttribute'](_0x546ba2){return this['_blockAttributeKeys']['has'](_0x546ba2);}['_updateSuggestionData'](_0x2a78ee,_0x30191b){const _0x4839a6=this['editor']['plugins']['get']('PendingActions'),_0x18c3c2=this['getSuggestion'](_0x2a78ee);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x18c3c2['_saved']){const _0x5fd03c=_0x4839a6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2a78ee,_0x30191b)['then'](()=>{_0x4839a6['remove'](_0x5fd03c);});}else _0x18c3c2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2a78ee,_0x30191b);});}}['_getSuggestionData'](_0x554d3a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x11aaec('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x554d3a);}['_handleNewSuggestionMarker'](_0x2b1f6f){const {id:_0x119564,type:_0x26886d,subType:_0x43df9a,authorId:_0x140530}=this['_splitMarkerName'](_0x2b1f6f),_0x5a7aa4=this['_suggestions']['get'](_0x119564)||this['_createSuggestion'](_0x26886d,_0x43df9a,_0x119564,_0x140530,{});switch(this['_checkSuggestionCorrectness'](_0x5a7aa4,_0x26886d,_0x43df9a,_0x140530),this['_suggestionState']['get'](_0x5a7aa4)){case'notReady':this['_getSuggestionData'](_0x119564)['then'](_0xcde29a=>{let _0x5355f3=Promise['resolve']();_0xcde29a['hasComments']&&(_0x5355f3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x119564})),_0x5355f3['then'](()=>{this['addSuggestionData'](_0xcde29a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5a7aa4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x119564,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5a7aa4,'ready'),this['fire']('suggestionLoaded',_0x5a7aa4);break;case'ready':this['fire']('suggestionChanged',_0x5a7aa4);}return _0x5a7aa4['addMarkerName'](_0x2b1f6f),_0x5a7aa4;}['_refreshSuggestionsChain'](_0x2ab326){const _0x259ca9=Array['from'](_0x2ab326),_0x3c1c64=_0x259ca9['filter'](_0x3ece02=>'attribute'==_0x3ece02['type']);this['_refreshAttributeSuggestionsChain'](_0x3c1c64);const _0x3faaf8=_0x259ca9['filter'](_0x25fe84=>!_0x25fe84['isMultiRange']&&'attribute'!=_0x25fe84['type']),_0x2a7a96=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19c19c=>!_0x19c19c['isMultiRange']&&'attribute'!=_0x19c19c['type']),_0x1df3f7=_0x2a7a96['filter'](_0x1f9cde=>!_0x2ab326['has'](_0x1f9cde)),_0x382f41=new Map(_0x2a7a96['map'](_0x289eee=>[_0x289eee,this['_suggestionFactory']['getSuggestionCallback'](_0x289eee['type'],_0x289eee['subType'],'chain')])),_0x474ce=new Map(_0x2a7a96['map'](_0x7642c8=>[_0x7642c8,_0x7642c8['getFirstRange']()])),_0x45497f=new Set(),_0x378831=new Set();for(let _0x1c0612=0x0;_0x1c0612<_0x3faaf8['length'];_0x1c0612++)_0x31454d(_0x3faaf8[_0x1c0612],_0x3faaf8,_0x1c0612+0x1);for(let _0x39c0b5=0x0;_0x39c0b5<_0x3faaf8['length'];_0x39c0b5++)_0x31454d(_0x3faaf8[_0x39c0b5],_0x1df3f7,0x0);const _0x299c1e=new Set();for(let _0x4d2ac2=0x0;_0x4d2ac2<_0x3faaf8['length'];_0x4d2ac2++){const _0x54ec65=_0x3faaf8[_0x4d2ac2];!_0x378831['has'](_0x54ec65)&&_0x54ec65['previous']&&(_0x299c1e['add'](_0x54ec65['previous']),_0x54ec65['previous']['next']===_0x54ec65&&(_0x54ec65['previous']['next']=null),_0x54ec65['previous']=null),!_0x45497f['has'](_0x54ec65)&&_0x54ec65['next']&&(_0x299c1e['add'](_0x54ec65['next']),_0x54ec65['next']['previous']===_0x54ec65&&(_0x54ec65['next']['previous']=null),_0x54ec65['next']=null);}function _0x31454d(_0x3f7453,_0x519a16,_0x27207f){for(let _0x5e28da=_0x27207f;_0x5e28da<_0x519a16['length'];_0x5e28da++){const _0x4140a3=_0x289d33(_0x3f7453,_0x519a16[_0x5e28da]);_0x4140a3&&(_0x4140a3[0x0]['next']=_0x4140a3[0x1],_0x4140a3[0x1]['previous']=_0x4140a3[0x0],_0x45497f['add'](_0x4140a3[0x0]),_0x378831['add'](_0x4140a3[0x1]));}}function _0x289d33(_0x578ff3,_0x120861){if(_0x578ff3['author']['id']!==_0x120861['author']['id'])return null;const _0xc1421a=_0x382f41['get'](_0x578ff3)(_0x578ff3,_0x120861,_0x474ce['get'](_0x578ff3),_0x474ce['get'](_0x120861));if(!_0xc1421a)return null;return _0x382f41['get'](_0x120861)(_0x578ff3,_0x120861,_0x474ce['get'](_0x578ff3),_0x474ce['get'](_0x120861))?_0xc1421a[0x1]['commentThread']&&_0xc1421a[0x1]['commentThread']['length']?null:_0xc1421a:null;}_0x299c1e['size']&&this['_refreshSuggestionsChain'](_0x299c1e);}['_refreshAttributeSuggestionsChain'](_0x228d5c){if(0x0==_0x228d5c['length'])return;const _0x55f207=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x552fec=>'attribute'==_0x552fec['type']&&_0x552fec['_isDataLoaded']),_0x407929=[],_0x46a081=new Map();for(const _0x313301 of _0x55f207){const _0x15916a=_0x1c2190(_0x313301['attributes']);_0x46a081['has'](_0x15916a)||(_0x46a081['set'](_0x15916a,_0x407929['length']),_0x407929['push']([]));const _0x5abfed=_0x46a081['get'](_0x15916a);_0x407929[_0x5abfed]['push'](_0x313301);}!(function(){_0x407929['sort']((_0x4c074e,_0x528094)=>{const _0x1b415b=_0x4c074e[0x0]['createdAt'],_0x37ca2f=_0x528094[0x0]['createdAt'];return _0x1b415b==_0x37ca2f?_0x4c074e[0x0]['attributes']['groupId']<_0x528094[0x0]['attributes']['groupId']?-0x1:0x1:_0x1b415b<_0x37ca2f?-0x1:0x1;});for(const _0x3e430b of _0x407929)_0x3e430b['sort']((_0x6a6545,_0x2fbb2f)=>_0x6a6545['id']<_0x2fbb2f['id']?-0x1:0x1);}());for(let _0x171072=0x0;_0x171072<_0x407929['length'];_0x171072++){if(0x0==_0x407929[_0x171072]['length'])continue;const _0x19c843=[];for(let _0xe0b6b2=_0x171072+0x1;_0xe0b6b2<_0x407929['length'];_0xe0b6b2++)0x0!=_0x407929[_0xe0b6b2]['length']&&_0x1eb123(_0x407929[_0x171072],_0x407929[_0xe0b6b2])&&_0x19c843['push'](_0xe0b6b2);for(const _0x4d1582 of _0x19c843)_0x407929[_0x171072]=_0x407929[_0x171072]['concat'](_0x407929[_0x4d1582]),_0x407929[_0x4d1582]=[];}for(const _0x1ca4f3 of _0x407929)for(let _0x5c75a6=0x0;_0x5c75a6<_0x1ca4f3['length'];_0x5c75a6++){const _0x36f153=_0x1ca4f3[_0x5c75a6+0x1]||null;_0x1ca4f3[_0x5c75a6]['next']!==_0x36f153&&(_0x1ca4f3[_0x5c75a6]['next']=_0x36f153);}for(const _0x361e7a of _0x407929)for(let _0x253ccd=0x0;_0x253ccd<_0x361e7a['length'];_0x253ccd++){const _0x5469fb=_0x361e7a[_0x253ccd-0x1]||null;_0x361e7a[_0x253ccd]['previous']!==_0x5469fb&&(_0x361e7a[_0x253ccd]['previous']=_0x5469fb);}function _0x1eb123(_0x5a685d,_0x9d8f44){if(_0x5a685d[0x0]['attributes']['groupId']!==_0x9d8f44[0x0]['attributes']['groupId']&&_0x5a685d[0x0]['author']!==_0x9d8f44[0x0]['author'])return!0x1;if(!function(_0x4ffe82,_0x390440){if(!_0x4ffe82['hasComments']&&!_0x390440['hasComments'])return!0x0;if(_0x4ffe82['hasComments']&&_0x390440['hasComments'])return!0x1;if(_0x4ffe82['hasComments']&&_0x390440['createdAt']<_0x4ffe82['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x390440['hasComments']&&_0x4ffe82['createdAt']<_0x390440['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5a685d[0x0],_0x9d8f44[0x0]))return!0x1;const _0x11dd6c=Vt(_0x5a685d[0x0]['attributes'],'groupId'),_0x2e02ed=Vt(_0x9d8f44[0x0]['attributes'],'groupId');if(!_0x483e20(_0x11dd6c,_0x2e02ed))return!0x1;return!!_0x5a685d['every'](_0x22608c=>_0x9d8f44['some'](_0xe30e65=>_0x22608c['getFirstRange']()['isEqual'](_0xe30e65['getFirstRange']())))&&_0x9d8f44['every'](_0x18a218=>_0x5a685d['some'](_0x3b82fd=>_0x18a218['getFirstRange']()['isEqual'](_0x3b82fd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x49fcd5){const _0x4cf31a=Array['from'](_0x49fcd5),_0x3e592e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4c7c54=_0x3e592e['filter'](_0x2966c7=>!_0x49fcd5['has'](_0x2966c7)),_0x1d4141=new Map(_0x4cf31a['map'](_0x347151=>[_0x347151,this['_suggestionFactory']['getSuggestionCallback'](_0x347151['type'],_0x347151['subType'],'join')])),_0x4b89cc=new Map(_0x3e592e['map'](_0x4700d8=>[_0x4700d8,_0x4700d8['getRanges']()]));for(let _0x281a9d=0x0;_0x281a9d<_0x4cf31a['length'];_0x281a9d++){if(_0x55b461(this,_0x4cf31a[_0x281a9d],_0x4cf31a,_0x281a9d+0x1))return!0x0;}for(let _0x2969ee=0x0;_0x2969ee<_0x4cf31a['length'];_0x2969ee++){if(_0x55b461(this,_0x4cf31a[_0x2969ee],_0x4c7c54,0x0))return!0x0;}return!0x1;function _0x55b461(_0x8a4634,_0x33ce29,_0x450b33,_0x8d4237){for(let _0x77f6ec=_0x8d4237;_0x77f6ec<_0x450b33['length'];_0x77f6ec++){const _0xff4039=_0x450b33[_0x77f6ec];if(_0xff4039['type']!==_0x33ce29['type']||_0xff4039['author']['id']!==_0x33ce29['author']['id']||_0xff4039['subType']!==_0x33ce29['subType'])continue;if(!Wt(_0x33ce29,_0xff4039))continue;if('attribute'==_0x33ce29['type']&&_0x33ce29['data']['oldValue']!=_0xff4039['data']['oldValue'])continue;if('attribute'==_0x33ce29['type']&&_0x8a4634['_isBlockAttribute'](_0x33ce29['data']['key']))continue;if('formatBlock'==_0x33ce29['type']){const _0x4b345b=_0x8a4634['editor']['model'],_0x2f57ba=_0x33ce29['getContainedElement']();if(_0x2f57ba&&(_0x4b345b['schema']['isObject'](_0x2f57ba)||_0x4b345b['schema']['isLimit'](_0x2f57ba)))continue;}const _0x277ffd=_0x1d4141['get'](_0x33ce29),_0x4ab329=_0x4b89cc['get'](_0x33ce29),_0x34bd2b=_0x4b89cc['get'](_0xff4039),_0x30fdec=_0x33ce29['commentThread']&&_0x33ce29['commentThread']['length'],_0x4c5fec=_0xff4039['commentThread']&&_0xff4039['commentThread']['length'];if(!_0x30fdec&&_0x277ffd(_0x34bd2b,_0x4ab329))return _0x8a4634['_joinSuggestions'](_0xff4039,_0x33ce29),_0x4b89cc['delete'](_0x33ce29),!0x0;if(!_0x4c5fec&&_0x277ffd(_0x4ab329,_0x34bd2b))return _0x8a4634['_joinSuggestions'](_0x33ce29,_0xff4039),_0x4b89cc['delete'](_0xff4039),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5cc6b9,_0x377114){if(_0x5cc6b9['isMultiRange']){for(const _0x5edfbe of _0x377114['getRanges']())_0x5cc6b9['addRange'](_0x5edfbe);}else{const _0x8362cd=_0x377114['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5cc6b9,this['_model']['createRange'](_0x5cc6b9['getFirstRange']()['start'],_0x8362cd));}_0x377114['removeMarkers']();}['_getMarkerAnnouncementText'](_0x58f471,_0xe54196,_0xaea7fd){const _0x5ae86c=_0x58f471['startsWith']('format')||_0x58f471['startsWith']('attribute')?'FORMATTING':_0x58f471['toUpperCase']();return o(this['editor']['locale'],_0xe54196+'_'+_0x5ae86c+'_SUGGESTION_ANNOUNCEMENT',_0xaea7fd);}['_initAriaMarkerChangeAnnouncements'](){const _0x1141fc=this['editor'];if(!_0x1141fc['ui'])return;const {ariaLiveAnnouncer:_0x369f7d}=_0x1141fc['ui'];_0x5c679e(this['_model'],({left:_0x1ea28e,entered:_0x238b30})=>{for(const _0x5c8b84 of _0x1ea28e){const {group:_0x3a6000,type:_0x2c41a5}=this['_splitMarkerName'](_0x5c8b84['name']);if('suggestion'===_0x3a6000){_0x369f7d['announce'](this['_getMarkerAnnouncementText'](_0x2c41a5,'LEAVE'));break;}}for(const _0x4958db of _0x238b30){const {group:_0x2f72ce,type:_0x5682e8}=this['_splitMarkerName'](_0x4958db['name']);if('suggestion'===_0x2f72ce){_0x369f7d['announce'](this['_getMarkerAnnouncementText'](_0x5682e8,'ENTER',_0x3cca6d(_0x17554f)));break;}}});}['_processAttributeChanges'](_0x535afa){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1c970f=this['editor'],_0x4d6f54=_0x1c970f['model']['document']['differ']['getChanges']();if(0x0==_0x4d6f54['length'])return!0x1;const _0xc6d0e7=[],_0x4f3a7f=_0x4d6f54['filter'](_0x3c4fba=>'attribute'==_0x3c4fba['type']),_0x3bb2a0=_0x4d6f54['filter'](_0x13ba52=>'insert'==_0x13ba52['type']&&'$text'!=_0x13ba52['name']),_0x5acdc0=_0x4d6f54['filter'](_0x4dbe7e=>'remove'==_0x4dbe7e['type']&&'$text'!=_0x4dbe7e['name']);for(const _0x1ebac9 of _0x4f3a7f)_0xc6d0e7['push']({'key':_0x1ebac9['attributeKey'],'newValue':_0x1ebac9['attributeNewValue'],'oldValue':_0x1ebac9['attributeOldValue'],'range':qt(_0x1ebac9['range'],_0x1c970f['model'])});for(const _0x2e9440 of _0x3bb2a0){const _0xda8af2=_0x5acdc0['find'](_0x314b87=>_0x314b87['position']['isEqual'](_0x2e9440['position']));_0xda8af2&&_0xc6d0e7['push']({'key':m,'newValue':_0x2e9440['name'],'oldValue':_0xda8af2['name'],'range':_0x1c970f['model']['createRangeOn'](_0x2e9440['position']['nodeAfter'])});}return 0x0!=_0xc6d0e7['length']&&this['_reduceExistingSuggestions'](_0x535afa,_0xc6d0e7);}['_processAttributeSuggestions'](_0x47289f){let _0x24cae8=!0x1;const _0x4ed10c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x57f643=>_0x57f643['data']['newRange']&&_0x57f643['name']['startsWith']('suggestion:attribute:'));for(const _0x5d8d56 of _0x4ed10c){const {subType:_0x5edd54,id:_0x5e7f5b}=this['_splitMarkerName'](_0x5d8d56['name']),_0x4f483b=_0x5edd54['split']('|')[0x0];for(const _0x3bb550 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3bb550['id']!=_0x5e7f5b&&'attribute'==_0x3bb550['type']&&_0x3bb550['data']&&_0x3bb550['data']['key']==_0x4f483b&&_0x3bb550['getFirstRange']()['isIntersecting'](_0x5d8d56['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3bb550,_0x5d8d56['data']['newRange'],_0x47289f),_0x24cae8=!0x0);}return _0x24cae8;}['_recordAttributeChanges'](_0xf5e8a4){this['_recordAttributeSuggestions']=!0x0,_0xf5e8a4();}['_isRegisteredAttribute'](_0x206996){const _0x228e97=this['_isBlockAttribute'](_0x206996),_0x5449b2=this['_inlineAttributeKeys']['has'](_0x206996);return _0x228e97||_0x5449b2;}['_reduceExistingSuggestions'](_0x12cc19,_0x5f214b){if(0x0==_0x5f214b['length'])return!0x1;let _0x7c66f=!0x1;for(const _0x2fdd97 of _0x5f214b){const _0x4ca7ce=this['_findSuggestions'](_0x2fdd97['range'],'attribute')['filter'](_0x1530fc=>!_0x1530fc['meta']['isNextTo'])['map'](_0x1d26a9=>_0x1d26a9['suggestion']),_0x1cdec4=_0x1c2190({'newValue':_0x2fdd97['newValue']});_0x4ca7ce['filter'](_0x6170a3=>{const [_0x551a9e,_0x412cbd]=_0x6170a3['subType']['split']('|');return _0x551a9e==_0x2fdd97['key']&&_0x412cbd!=_0x1cdec4;})['forEach'](_0x2fffb2=>{this['_reduceSuggestionAttributeRange'](_0x2fffb2,_0x2fdd97['range'],_0x12cc19),_0x7c66f=!0x0;});}return _0x7c66f;}['_reduceSuggestionAttributeRange'](_0x5d1fa6,_0x589598,_0x77895f){const _0x110b77=_0x5d1fa6['getFirstRange']()['getDifference'](_0x589598);0x0!==_0x110b77['length']?0x1!==_0x110b77['length']?this['_breakSuggestionMarker'](_0x5d1fa6,_0x589598['start'],_0x589598['end']):this['_setSuggestionRange'](_0x5d1fa6,_0x110b77[0x0]):_0x77895f['removeMarker'](_0x5d1fa6['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1d8d5e){this['_editor']=_0x1d8d5e,this['_model']=_0x1d8d5e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3b180e,_0x42d673,_0xdbfa60,_0x25904a,_0x16ede5,_0x2c58fc){return new u(this['_model'],{'type':_0x3b180e,'subType':_0x42d673,'id':_0xdbfa60,'author':_0x25904a,'creator':_0x25904a,'attributes':_0x16ede5,'onAttributesChange':_0x2c58fc,'onAccept':(..._0x183b20)=>this['getSuggestionCallback'](_0x3b180e,_0x42d673,'accept')(..._0x183b20),'onDiscard':(..._0x77bef6)=>this['getSuggestionCallback'](_0x3b180e,_0x42d673,'discard')(..._0x77bef6)});}['registerCustomCallback'](_0xaa709c,_0x4e3a67,_0x5caf6f,_0x376a96){const _0x1c69d0=_0xaa709c+':'+_0x4e3a67+':'+_0x5caf6f;this['_customCallbacks']['set'](_0x1c69d0,_0x376a96);}['getSuggestionCallback'](_0x276fac,_0x22da0b,_0x3dc695){const _0x3fccd1=_0x276fac+':'+_0x22da0b+':'+_0x3dc695;return this['_customCallbacks']['get'](_0x3fccd1)||this['_defaultCallbacks']['get'](_0x276fac+':'+_0x3dc695);}['_registerDefaultCallbacks'](){const _0x2b7e47=()=>!0x1,_0x20496e=_0x5dcbfd=>{_0x5dcbfd['sort']((_0x7ccd94,_0x1f7462)=>_0x7ccd94['start']['isBefore'](_0x1f7462['start'])?0x1:-0x1),this['_model']['change'](_0x5b33e3=>{for(const _0x57c018 of _0x5dcbfd){let _0x5cea46;_0x5cea46=_0x57c018['end']['isAtEnd']&&_0x57c018['end']['parent']==_0x57c018['start']['nodeAfter']?_0x5b33e3['createSelection'](_0x57c018['start']['nodeAfter'],'on'):_0x5b33e3['createSelection'](_0x57c018),this['_model']['deleteContent'](_0x5cea46,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x59a6e3=(_0x582a54,_0x2e9d51)=>{_0x2e9d51&&this['_model']['change'](_0x3cd6a2=>{const {commandName:_0x31f88b,commandParams:_0x11917f=[]}=_0x2e9d51,_0x25fe6d=_0x582a54['map'](_0x48a560=>(Ft(_0x48a560)&&(_0x48a560=this['_model']['createRange'](_0x48a560['end'])),_0x48a560))['filter'](_0x38b741=>'$graveyard'!==_0x38b741['root']['rootName']);if(_0x25fe6d['length']<0x1)return;const _0x5551fe=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1d385f=>_0x4f46eb['fromRange'](_0x1d385f));_0x3cd6a2['setSelection'](_0x25fe6d);for(const _0x47669c of this['_editor']['commands']['commands']())_0x47669c['refresh']();_0x11917f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31f88b,..._0x11917f);const _0x107622=_0x5551fe['filter'](_0x3b97d3=>'$graveyard'!=_0x3b97d3['root']['rootName']);_0x107622['length']>0x0&&_0x3cd6a2['setSelection'](_0x107622);for(const _0x12c98f of _0x5551fe)_0x12c98f['detach']();});},_0x367793=(_0x28432a,_0xc82f54)=>0x1==_0x28432a['length']&&0x1==_0xc82f54['length']&&_0x28432a[0x0]['end']['isEqual'](_0xc82f54[0x0]['start']),_0x5c704f=(_0x101dfc,_0x5b902f,_0x4d5819,_0x3e7045)=>Kt(_0x101dfc,_0x5b902f,_0x4d5819,_0x3e7045)?[_0x101dfc,_0x5b902f]:Kt(_0x5b902f,_0x101dfc,_0x3e7045,_0x4d5819)?[_0x5b902f,_0x101dfc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2b7e47),this['_defaultCallbacks']['set']('insertion:discard',_0x20496e),this['_defaultCallbacks']['set']('insertion:join',_0x367793),this['_defaultCallbacks']['set']('insertion:chain',_0x5c704f),this['_defaultCallbacks']['set']('deletion:accept',_0x20496e),this['_defaultCallbacks']['set']('deletion:discard',_0x2b7e47),this['_defaultCallbacks']['set']('deletion:join',_0x367793),this['_defaultCallbacks']['set']('deletion:chain',_0x5c704f),this['_defaultCallbacks']['set']('formatInline:accept',_0x59a6e3),this['_defaultCallbacks']['set']('formatInline:discard',_0x2b7e47),this['_defaultCallbacks']['set']('formatInline:join',_0x367793),this['_defaultCallbacks']['set']('formatInline:chain',_0x2b7e47),this['_defaultCallbacks']['set']('formatBlock:accept',_0x59a6e3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2b7e47),this['_defaultCallbacks']['set']('formatBlock:join',_0x367793),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2b7e47),this['_defaultCallbacks']['set']('attribute:accept',_0x2b7e47),this['_defaultCallbacks']['set']('attribute:discard',(_0x4f82b1,_0xb514f3)=>{if(!_0xb514f3)return;const _0x64174e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x301e35=>{if(_0xb514f3['key']==m)for(const _0x203be6 of _0x4f82b1){const _0x4bd6b4=_0x203be6['start']['nodeAfter'],_0x188af5=_0xb514f3['oldValue'];_0x301e35['rename'](_0x4bd6b4,_0x188af5);}else{if(_0x64174e['_isBlockAttribute'](_0xb514f3['key'])){for(const _0x48222d of _0x4f82b1)void 0x0!==_0xb514f3['oldValue']?_0x301e35['setAttribute'](_0xb514f3['key'],_0xb514f3['oldValue'],_0x48222d['start']['nodeAfter']):_0x301e35['removeAttribute'](_0xb514f3['key'],_0x48222d['start']['nodeAfter']);}else{for(const _0x12cdc7 of _0x4f82b1)_0xb514f3['oldValue']?_0x301e35['setAttribute'](_0xb514f3['key'],_0xb514f3['oldValue'],_0x12cdc7):_0x301e35['removeAttribute'](_0xb514f3['key'],_0x12cdc7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x367793);}}function Gt(_0x459c6e,_0x321ae2,_0x254f7a){for(const _0x571182 of _0x321ae2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x571182['root']==_0x571182)return!0x1;if(!_0x254f7a['containsItem'](_0x571182))return!0x1;if(_0x459c6e['isObject'](_0x571182)||_0x459c6e['isLimit'](_0x571182))return!0x0;}return!0x1;}function Ft(_0x3654be){return _0x3654be['end']['parent']==_0x3654be['start']['nodeAfter']&&_0x3654be['end']['isAtStart'];}function Lt(_0x56b545,_0x2aa75b,_0x1374c3,_0x33be10){const _0x57b098=_0x344b1d=>!_0x344b1d['item']['is']('$textProxy')&&!_0x33be10['isObject'](_0x344b1d['item']),_0x55a051=_0x56b545['start']['getLastMatchingPosition'](_0x57b098),_0x3f964d=_0x56b545['end']['getLastMatchingPosition'](_0x57b098,{'direction':'backward'});return(!_0x56b545['start']['isEqual'](_0x55a051)||!_0x56b545['end']['isEqual'](_0x3f964d))&&(_0x55a051['isBefore'](_0x3f964d)?_0x1374c3['updateMarker'](_0x2aa75b,{'range':_0x1374c3['createRange'](_0x55a051,_0x3f964d)}):_0x1374c3['removeMarker'](_0x2aa75b),!0x0);}function Jt(_0x25e380){return _0x1c2190(_0x25e380);}function Ht(_0x159b14){const _0x3dd59e=_0x159b14['start']['nodeAfter'];return _0x3dd59e&&_0x3dd59e['is']('element');}function qt(_0x1c263b,_0x5107fe){return null==_0x1c263b['end']['nodeBefore']&&_0x1c263b['end']['parent']==_0x1c263b['start']['nodeAfter']?zt(_0x1c263b['start']['nodeAfter'],_0x5107fe):_0x1c263b;}function zt(_0x48365a,_0x190ee4){const _0x3f65d2=_0x190ee4['schema']['isObject'](_0x48365a)||_0x190ee4['schema']['isSelectable'](_0x48365a);return _0x190ee4['createRange'](_0x190ee4['createPositionAt'](_0x48365a,'before'),_0x3f65d2?_0x190ee4['createPositionAfter'](_0x48365a):_0x190ee4['createPositionAt'](_0x48365a,'end'));}function Kt(_0x51873f,_0x2960dc,_0x54ac66,_0x2ab359){return!!Wt(_0x51873f,_0x2960dc)&&_0x54ac66['end']['isEqual'](_0x2ab359['start']);}function Wt(_0x5c1a98,_0x1b975f){if(!_0x5c1a98['_isDataLoaded']||!_0x1b975f['_isDataLoaded'])return!0x1;const _0x3766e1=new Set(Object['keys'](_0x5c1a98['attributes'])),_0xa917ba=new Set(Object['keys'](_0x1b975f['attributes']));if(_0x3766e1['delete']('groupId'),_0xa917ba['delete']('groupId'),0x0==_0x3766e1['size']&&0x0==_0xa917ba['size'])return!0x0;if(_0x3766e1['size']!=_0xa917ba['size'])return!0x1;const _0x1bb6c5={..._0x5c1a98['attributes']},_0x19ca0f={..._0x1b975f['attributes']};return delete _0x1bb6c5['groupId'],delete _0x19ca0f['groupId'],JSON['stringify'](_0x1bb6c5)==JSON['stringify'](_0x19ca0f);}function Qt(_0x37df6a,_0x58c53a){const _0xd5ef4e=Xt(_0x37df6a['attributes']),_0x15ee7f=Xt(_0x58c53a);if(!_0x37df6a['_isDataLoaded'])return!0x1;for(const _0x50666b of Object['keys'](_0x15ee7f))if(!_0x483e20(_0xd5ef4e[_0x50666b],_0x15ee7f[_0x50666b]))return!0x1;return!0x0;}function Xt(_0x48511c){const _0x1dd3f7=Object['assign']({},_0x48511c);return delete _0x1dd3f7['skipNestingCheck'],delete _0x1dd3f7['tablePasteChainId'],_0x1dd3f7;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x28b3e7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x512a28,_0x437861,_0xdc74dc,_0x735075){super(),this['model']=_0x437861,this['view']=_0xdc74dc,this['commentThreadController']=_0x735075,this['_editor']=_0x512a28,this['_acceptCommand']=_0x512a28['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x512a28['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3ab750,_0x503096)=>_0x3ab750||_0x503096),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3b2962=>_0x3b2962&&this['_editor']['model']['canEditAt'](_0x437861['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3ae24c=>_0x3ae24c&&this['_editor']['model']['canEditAt'](_0x437861['getRanges']())),this['_pendingAction']=null,_0xdc74dc['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xdc74dc,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xdc74dc,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xdc74dc,'change:isDirty',()=>{_0xdc74dc['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x1fd882=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1fd882);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x33b69b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x592229,_0x266c80,_0x9c81ce,_0x352854){super(_0x592229),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xde46fc(_0x592229,o(_0x592229,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x266c80['authoredAt']),this['bind']('authoredAt')['to'](_0x266c80),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x266c80,'authoredAt',this,'descriptionParts',(_0x211dce,_0x5da4ca,_0x386a3d)=>{const _0x77fdfb=_0x386a3d['map'](_0x456bb0=>cs(_0x456bb0['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x211dce-0x1,_0x266c80['author']['name'],_0x5da4ca?_0x352854['formatDateTime'](_0x5da4ca):'',new DOMParser()['parseFromString'](_0x77fdfb,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5ba900(),this['focusTracker']=new _0x2c535c(),this['keystrokes']=new _0x411b8d(),this['focusCycler']=new _0x3a69b4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x45c2c2=>_0x45c2c2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x266c80,this['_localUser']=_0x9c81ce,this['_config']=_0x352854,_0x352854['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3df98c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3f12f6}=this['_config'];this['commentsListView']=new _0x3f12f6(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x204094=>_0x204094+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x565cb5,_0x21070b)=>_0x565cb5||!!_0x21070b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x434ece}=this['_config'],_0x4b2333=new _0x434ece(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3f316e=_0x4b2333['commentInputView'];return _0x4b2333['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3f316e,'value',(_0x249d56,_0x56d4f2,_0x52eaea)=>!!_0x52eaea||_0x249d56&&!_0x56d4f2),_0x3f316e['on']('submit',(_0x3a4747,_0x2934c5)=>{this['fire']('addComment',_0x2934c5),_0x3f316e['editor']['setData']('');}),_0x3f316e['on']('cancel',()=>this['focus']()),_0x3f316e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4b2333;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x5d4d2d,_0x27d359,_0x1309fe,_0x1f00f8){super(_0x5d4d2d,_0x27d359,_0x1309fe,_0x1f00f8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x156755=>_0x156755&&_0x156755[0x0]?_0x156755[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x461730,_0x38c7e7)=>{let _0x11d562='';for(const _0x583a9b of _0x461730)_0x11d562+='<p>'+cs(_0x583a9b['content'],_0x583a9b['color'])+'</p>';return _0x38c7e7?_0x11d562:_0xce5d8e(_0x11d562,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1f00f8['SuggestionView'](_0x5d4d2d,_0x27d359,{'formatDateTime':_0x1f00f8['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5ae8f6=this['bindTemplate'],_0x29c850=[this['suggestionView']];return this['commentsListView']&&_0x29c850['push'](this['commentsListView']),this['commentThreadInputView']&&_0x29c850['push'](this['commentThreadInputView']),_0x29c850['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5ae8f6['if']('isActive','ck-suggestion-wrapper--active'),_0x5ae8f6['to']('type',_0x51f348=>'ck-suggestion-'+_0x51f348),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x5ae8f6['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x29c850};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x33b69b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4bc85d,_0x3881eb,_0x1ed12b){super(_0x4bc85d),this['_model']=_0x3881eb,this['_config']=_0x1ed12b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3881eb),this['acceptButton']=this['_createButton'](o(_0x4bc85d,'Accept\x20suggestion'),_0x146320['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4bc85d,'Discard\x20suggestion'),_0x146320['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x28de63(_0x4bc85d,_0x3881eb['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5ba900([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2c535c(),this['keystrokes']=new _0x411b8d(),this['focusCycler']=new _0x3a69b4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x394709=>_0x394709['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x123b64=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x123b64['innerHTML']=this['description'],this['on']('change:description',(_0x1ab792,_0x1f49fc,_0x877a4f)=>{_0x123b64['innerHTML']=_0x877a4f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xfe6633=this['bindTemplate'],_0x1e7a5f=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0xfe6633['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xfe6633['to']('authoredAt',_0x207f8d=>this['_config']['formatDateTime'](_0x207f8d))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x1e7a5f['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x1e7a5f}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3411b9,_0x110743,_0x12852d,_0x3bc84c,_0x2a7c07){const _0x3edbf3=new _0x5e2872(this['locale']);return _0x3edbf3['set']({'label':_0x3411b9,'icon':_0x110743,'tooltip':!0x0,'tooltipPosition':_0x2a7c07}),_0x3edbf3['extendTemplate']({'attributes':{'class':_0x12852d}}),_0x3edbf3['on']('execute',()=>{this['fire'](_0x3bc84c,this['_model']['id']);}),_0x3edbf3;}['_setupKeyboardNavigation'](){const _0x244c72=this['element'];this['keystrokes']['listenTo'](_0x244c72);for(const _0x1af992 of this['focusables'])this['focusTracker']['add'](_0x1af992['element']),this['keystrokes']['listenTo'](_0x1af992['element']);this['keystrokes']['set']('enter',(_0x2a96df,_0xd6e84a)=>{_0x244c72===_0x2a96df['target']&&(this['focusCycler']['focusFirst'](),_0xd6e84a());}),this['keystrokes']['set']('esc',(_0x448379,_0x204ea8)=>{_0x244c72!==_0x448379['target']&&(this['focus'](),_0x204ea8());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0xa4b53f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x110e12,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11272e){super(_0x11272e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x571535=this['editor']['config'];_0x571535['define']('trackChanges.SuggestionThreadView',pe),_0x571535['define']('trackChanges.SuggestionView',fe),_0x571535['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x571535['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5940ef,_0xea4324){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2703e5,_0x4751f5]of this['_handleControllerBuffer']){const _0x2ecfed=this['_suggestionToController']['has'](_0x2703e5);_0x2ecfed||_0x4751f5?_0x2ecfed&&_0x4751f5&&this['_destroyController'](_0x2703e5):this['_initializeController'](_0x2703e5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5940ef,_0xea4324);}['init'](){const _0x4fcc9b=this['editor'],_0x39de1f=_0x4fcc9b['plugins']['get']('TrackChangesEditing'),_0x32a26f=_0x4fcc9b['plugins']['get']('Annotations'),_0x5a1e58=_0x4fcc9b['plugins']['get']('EditorAnnotations'),_0x139bb0=_0x4fcc9b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5a1e58['addSourceCollector'](()=>{const _0x3391bf=[];for(const [_0x311591,_0x1d53df]of Array['from'](this['_suggestionToController'])){const _0x2db6fb=_0x311591['getAllAdjacentSuggestions'](),_0x28ee48=[];for(const _0x58eddf of _0x2db6fb){if(!_0x58eddf['isInContent'])continue;if(_0x58eddf['isMultiRange']){_0x28ee48['push'](..._0x58eddf['getRanges']());continue;}const _0x4b28a3=_0x58eddf['getFirstRange']();if(_0x28ee48['length']>0x0){const _0x2900d7=_0x28ee48[0x0]['getJoined'](_0x4b28a3);if(_0x2900d7){_0x28ee48[0x0]=_0x2900d7;continue;}}_0x28ee48['push'](_0x4b28a3);}_0x3391bf['push']([_0x1d53df['view'],_0x28ee48]);}return _0x3391bf;}),this['listenTo'](_0x39de1f,'suggestionLoaded',(_0x498bfd,_0x75db63)=>{this['listenTo'](_0x75db63,'change:previous',(_0x4835d7,_0x50b0cc,_0x106a59,_0x448a76)=>{_0x75db63['isInContent']&&(null==_0x106a59?(this['_updateController'](_0x448a76['head']),this['_handleSuggestionControllerDelayed'](_0x75db63,!0x1)):(this['_updateController'](_0x106a59['head']),null==_0x448a76&&this['_handleSuggestionControllerDelayed'](_0x75db63,!0x0)));}),null!==_0x75db63['previous']?this['_updateController'](_0x75db63['head']):this['_handleSuggestionControllerDelayed'](_0x75db63,!0x1);}),this['listenTo'](_0x39de1f,'suggestionUnloaded',(_0x42dd98,_0x899528,_0x4d7e41)=>{this['stopListening'](_0x899528,'change:previous'),this['_handleControllerBuffer']['delete'](_0x899528),this['_suggestionToController']['has'](_0x899528)&&this['_destroyController'](_0x899528),_0x4d7e41&&this['_updateController'](_0x4d7e41['head']);}),this['listenTo'](_0x39de1f,'suggestionChanged',(_0x264fb2,_0x411c86)=>{this['_updateController'](_0x411c86);}),this['listenTo'](_0x32a26f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x139bb0,'addComment',(_0x4a8fca,{threadId:_0xfb5c6c,isFromAdapter:_0x564544})=>{if(_0x564544||!_0x39de1f['hasSuggestion'](_0xfb5c6c))return;const _0x387e6d=_0x39de1f['getSuggestion'](_0xfb5c6c);this['_suggestionToController']['get'](_0x387e6d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ec3fd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3bf92e;for(const _0x51ad26 in _0x3ec3fd){const _0x1c0910=_0x51ad26,_0x515df2=_0x3ec3fd[_0x1c0910];if('trackChangesLicenseKeyValid'==_0x515df2||'trackChangesLicenseKeyInvalid'==_0x515df2||'trackChangesLicenseKeyExpired'==_0x515df2||'trackChangesLicenseKeyDomainLimit'==_0x515df2||'trackChangesLicenseKeyNotAllowed'==_0x515df2||'trackChangesLicenseKeyEvaluationLimit'==_0x515df2||'trackChangesLicenseKeyTrialLimit'==_0x515df2||'trackChangesLicenseKeyUsageLimit'==_0x515df2){delete _0x3ec3fd[_0x1c0910],_0x3bf92e=_0x515df2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3bf92e&&_0x3ec3fd['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xe3fe02=this['editor']['plugins']['get']('Annotations'),_0x2ad68d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39a116=Array['from'](_0xe3fe02['activeAnnotations'],_0x836d00=>_0x836d00['innerView'])['filter'](_0x299c22=>this['_viewToController']['has'](_0x299c22)),_0x356b76=[];for(const _0x363c00 of _0x39a116){const _0x3b7c1d=this['_viewToController']['get'](_0x363c00)['model']['getAllAdjacentSuggestions']();_0x356b76['push'](..._0x3b7c1d['reduce']((_0x55887c,_0x3a1ae0)=>[..._0x55887c,..._0x3a1ae0['getMarkerNames']()],[]));}_0x2ad68d['activeMarkers']=_0x356b76;}['_addUIComponentsToFactory'](){const _0xe32798=this['editor'],_0x4cccf1=_0xe32798['locale'],_0x1d8b29=o(_0x4cccf1,'Track\x20changes'),_0x424781=new _0xbd48a([{'type':'switchbutton','model':new _0x56f17e({'withText':!0x0,'isToggleable':!0x0,'label':_0x1d8b29,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x56f17e({'withText':!0x0,'label':o(_0x4cccf1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56f17e({'withText':!0x0,'label':o(_0x4cccf1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56f17e({'withText':!0x0,'label':o(_0x4cccf1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56f17e({'withText':!0x0,'label':o(_0x4cccf1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xe32798['plugins']['has']('TrackChangesPreview')&&_0x424781['addMany']([{'type':'separator'},{'type':'button','model':new _0x56f17e({'withText':!0x0,'label':o(_0x4cccf1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x412949 of _0x424781)if(ke(_0x412949)){const _0x265d4b=_0xe32798['commands']['get'](_0x412949['model']['commandName']);_0x412949['model']['bind']('isOn','isEnabled')['to'](_0x265d4b,'value','isEnabled');}_0xe32798['ui']['componentFactory']['add']('trackChanges',_0x2a7dee=>this['_createToolbarButton'](_0x2a7dee,_0x424781,_0x1d8b29)),_0xe32798['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2d7911=>this['_createMenuBarMenu'](_0x2d7911,_0x424781,_0x1d8b29));}['_createToolbarButton'](_0x3bdfee,_0xe0aabe,_0x19031b){const _0x2aa86b=_0x12c985(_0x3bdfee,_0x120e2f),_0x41683a=this['editor']['commands']['get']('trackChanges');_0x2aa86b['buttonView']['set']({'tooltip':_0x19031b,'label':_0x19031b,'icon':we}),_0x2aa86b['buttonView']['bind']('isOn')['to'](_0x41683a,'value'),_0x2aa86b['buttonView']['on']('execute',()=>{_0x41683a['execute'](),this['editor']['editing']['view']['focus']();}),_0x2136e8(_0x2aa86b,_0xe0aabe,{'role':'menu'});const _0x1dbb11=[];for(const _0x46b928 of _0xe0aabe)ke(_0x46b928)&&_0x1dbb11['push'](this['editor']['commands']['get'](_0x46b928['model']['commandName']));const _0xee0d3c=_0x2aa86b['buttonView'];return _0xee0d3c['actionView']['unbind']('isEnabled'),_0xee0d3c['arrowView']['unbind']('isEnabled'),_0xee0d3c['actionView']['bind']('isEnabled')['to'](_0x41683a,'isEnabled'),_0xee0d3c['arrowView']['bind']('isEnabled')['toMany'](_0x1dbb11,'isEnabled',(..._0x1e2990)=>_0x1e2990['some'](_0x21eadb=>_0x21eadb)),_0x2aa86b['on']('execute',_0x23569a=>{this['editor']['execute'](_0x23569a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2aa86b;}['_createMenuBarMenu'](_0x235fdb,_0x52ef30,_0x28df89){const _0x1c827e=new _0x922c1d(_0x235fdb),_0x5e2ece=this['editor']['commands']['get']('trackChanges');_0x1c827e['buttonView']['set']({'label':_0x28df89,'icon':we});const _0x11c428=new _0xceb2eb(_0x235fdb);for(const _0x3ae9ea of _0x52ef30){if('separator'==_0x3ae9ea['type']){_0x11c428['items']['add'](new _0x297364(_0x235fdb));continue;}const _0x11b58f=new _0x29da40(_0x235fdb,_0x1c827e),_0x50a4b4=new _0x23292a(_0x235fdb),_0x28d61a=_0x3ae9ea['model'];_0x50a4b4['bind'](...Object['keys'](_0x28d61a))['to'](_0x28d61a),_0x50a4b4['delegate']('execute')['to'](_0x1c827e),_0x50a4b4['on']('execute',()=>{this['editor']['execute'](_0x28d61a['commandName']),this['editor']['editing']['view']['focus']();}),_0x11b58f['children']['add'](_0x50a4b4),_0x11c428['items']['add'](_0x11b58f);}return _0x1c827e['bind']('isEnabled')['to'](_0x5e2ece,'isEnabled'),_0x1c827e['panelView']['children']['add'](_0x11c428),_0x1c827e;}['_initializeController'](_0xad29fc){const _0x5b751a=this['editor'],_0x9bb8da=_0x5b751a['config'],_0x2e4121=_0x5b751a['plugins']['get']('Annotations'),_0x4b302d=_0x5b751a['plugins']['get']('CommentsRepository'),_0x230498=_0x5b751a['plugins']['get']('EditorAnnotations'),_0x32a9e9=_0x5b751a['plugins']['get'](_0x110e12)['me'],_0x37e69a=_0x9bb8da['get']('trackChanges')['SuggestionThreadView'],_0xcdbaf=_0x9bb8da['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x246926,CommentThreadInputView:_0x32a4a8}=_0x5b751a['plugins']['get']('CommentsUI');let _0x21d4fd,_0x238961,_0x377ac4;this['_annotationViews']['has'](_0xad29fc['id'])?(_0x238961=this['_annotationViews']['get'](_0xad29fc['id']),_0x21d4fd=_0x238961['mainView']):(_0x21d4fd=new _0x37e69a(_0x5b751a['locale'],_0xad29fc,_0x32a9e9,{'disableComments':this['_disableComments'],'editorConfig':{..._0x9bb8da['get']('comments.editorConfig'),'licenseKey':_0x9bb8da['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x9bb8da['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x9bb8da['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x9bb8da['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x11931c(_0x9bb8da['get']('locale')),'CommentView':_0x9bb8da['get']('comments')['CommentView'],'CommentsListView':_0x246926,'CommentThreadInputView':_0x32a4a8,'SuggestionView':_0xcdbaf}),_0x21d4fd['suggestionView']['acceptButton']['on']('execute',()=>{_0x5b751a['editing']['view']['focus']();}),_0x21d4fd['suggestionView']['discardButton']['on']('execute',()=>{_0x5b751a['editing']['view']['focus']();}),_0x238961=_0x2e4121['createAnnotationView'](this['editor']['locale'],_0x21d4fd),_0x238961['bind']('isDirty')['to'](_0x21d4fd,'isDirty'),_0x238961['bind']('length')['to'](_0x21d4fd),_0x238961['bind']('type')['to'](_0x21d4fd,'type',_0x1cb340=>'suggestion-'+_0x1cb340),_0x21d4fd['on']('escape',()=>{_0x377ac4['fire']('escape');}),this['_annotationViews']['set'](_0xad29fc['id'],_0x238961));const _0x48512c=_0x4b302d['createCommentThreadController'](_0xad29fc['commentThread'],_0x21d4fd),_0x1600e1=new Ce(_0x5b751a,_0xad29fc,_0x21d4fd,_0x48512c),_0x4f3b63=_0xad29fc['getAllAdjacentSuggestions']()['filter'](_0x5cb705=>_0x5cb705['isInContent']);_0x21d4fd['descriptionParts']=_0x5b751a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4f3b63),this['_suggestionToController']['set'](_0xad29fc,_0x1600e1),this['_viewToController']['set'](_0x21d4fd,_0x1600e1),_0x377ac4=_0x2e4121['createAnnotation']({'view':_0x238961,'target':()=>{const _0x3a1aea=[],_0x395787=_0xad29fc['getAllAdjacentSuggestions']()['filter'](_0x4008bc=>_0x4008bc['isInContent']);for(const _0x3df667 of _0x395787)_0x3a1aea['push'](..._0x3df667['getMarkers']());return _0x300bcd(_0x5b751a['editing'],_0x3a1aea);},'type':()=>'suggestion-'+_0x1600e1['view']['type']}),_0x4b302d['_bindAnnotationToEditors'](_0x21d4fd,_0x377ac4),_0x2e4121['add'](_0x377ac4),_0x230498['registerAnnotation'](_0x377ac4);}['_destroyController'](_0x3def0f){const _0x236d4b=this['editor']['plugins']['get']('CommentsRepository'),_0x1c447b=this['editor']['plugins']['get']('Annotations'),_0x475f4d=this['_suggestionToController']['get'](_0x3def0f),_0x211184=_0x475f4d['view'],_0x530889=_0x1c447b['getByInnerView'](_0x211184);_0x236d4b['_unbindEditors'](_0x211184),_0x530889&&_0x1c447b['remove'](_0x530889),this['_suggestionToController']['delete'](_0x3def0f),this['_viewToController']['delete'](_0x211184),_0x475f4d['destroy']();}['_updateController'](_0x38b9e3){if(!_0x38b9e3['isInContent']||!this['_suggestionToController']['has'](_0x38b9e3))return;const _0x1b3df8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f92df=this['_suggestionToController']['get'](_0x38b9e3),_0x244807=_0x38b9e3['getAllAdjacentSuggestions']();_0x2f92df['view']['descriptionParts']=_0x1b3df8['descriptionFactory']['getDescriptions'](_0x244807);}['destroy'](){for(const _0x25d387 of this['_suggestionToController']['keys']())this['_destroyController'](_0x25d387);for(const _0x11828c of this['_annotationViews']['values']())_0x11828c['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x592373){return'model'in _0x592373;}class k extends _0xa4b53f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x7de181){this['editor']['plugins']['get'](p)['adapter']=_0x7de181;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x32103b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x32103b);}['getSuggestions']({skipNotAttached:_0x133c41=!0x1,toJSON:_0x28069c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x133c41,'toJSON':_0x28069c});}['getSuggestion'](_0x42ed46){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x42ed46);}}const w=['Pagination'];class T extends _0xa4b53f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x487f9c=this['editor'];if(_0x487f9c['config']['define']('trackChangesData.editorCreator',_0x246e4a=>{const _0xb40b2b=_0x487f9c['model']['document']['getRootNames']()['reduce']((_0x238fcc,_0x52a278)=>(_0x238fcc[_0x52a278]='',_0x238fcc),{});return _0x487f9c['constructor']['create'](_0xb40b2b,_0x246e4a);}),'function'!=typeof _0x487f9c['config']['get']('trackChangesData')['editorCreator'])throw new _0x11aaec('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x38c097){return N(this['editor'],!0x0,_0x38c097);}['getDataWithDiscardedSuggestions'](_0x552695){return N(this['editor'],!0x1,_0x552695);}}class D extends _0xa4b53f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f1d3d){function _0x1800ac(_0x134671){return _0x134671['map'](_0x31d588=>String['fromCharCode'](_0x31d588))['join']('');}super(_0x5f1d3d),this['result']='end',_0x5f1d3d[_0x1800ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1800ac([0x76,0x69,0x65,0x77])][_0x1800ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1800ac([0x61,0x75,0x74,0x6f]),_0x5f1d3d[_0x1800ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1800ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1800ac([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1800ac([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1800ac([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x209f9e){return void 0x0!==_0x209f9e['getRootsAttributes'];}async function N(_0x2d8f40,_0x110f62,_0x12eb0b){const _0x2a3964=_0x3f9cf9(_0x2d8f40,w);_0x2a3964['plugins']['push'](p,D),_0x2a3964['rootsAttributes']=Fe(_0x2d8f40)?_0x2d8f40['getRootsAttributes']():void 0x0;const _0x58b772=document['createDocumentFragment'](),_0x3b743e=_0x2d8f40['config']['get']('trackChangesData')['editorCreator'],_0x3e8623=await _0x3b743e(_0x2a3964,()=>function(_0xf0c8be){const _0x3719da=document['createElement']('div');return _0xf0c8be['appendChild'](_0x3719da),_0x3719da;}(_0x58b772));!function(_0x21446f,_0x4d3048){const _0x49c284=_0x21446f['model']['document']['getRootNames']()['reduce']((_0x3388e5,_0x5eeaeb)=>(_0x3388e5[_0x5eeaeb]=_0x21446f['data']['get']({'rootName':_0x5eeaeb}),_0x3388e5),{}),_0x3a2342=_0x21446f['plugins']['get']('Users')['users']['map'](_0x2d74d9=>({'id':_0x2d74d9['id'],'name':_0x2d74d9['name']})),_0x39b0d8=_0x21446f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4854c9=_0x21446f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x29d0e0=_0x4d3048['plugins']['get']('Users'),_0x11f622=_0x4d3048['plugins']['get']('TrackChangesEditing'),_0x151dc7=_0x4d3048['plugins']['get']('CommentsRepository');for(const _0x3717a0 of _0x151dc7['getCommentThreads']())_0x3717a0['remove']();for(const _0x19cf4c of _0x3a2342)_0x29d0e0['getUser'](_0x19cf4c['id'])||_0x29d0e0['addUser'](_0x19cf4c);_0x29d0e0['me']||_0x29d0e0['useAnonymousUser']();for(const _0x25edb6 of _0x4854c9)_0x151dc7['addCommentThread'](_0x25edb6);for(const _0xa53afe of _0x39b0d8)_0x11f622['addSuggestionData'](_0xa53afe);_0x4d3048['data']['set'](_0x49c284);}(_0x2d8f40,_0x3e8623),_0x3e8623['execute'](_0x110f62?'acceptAllSuggestions':'discardAllSuggestions');const _0x1cc6d7=Fe(_0x3e8623)?_0x3e8623['getFullData'](_0x12eb0b):_0x3e8623['data']['get'](_0x12eb0b);return await _0x3e8623['destroy'](),_0x1cc6d7;}class Me extends _0x33b69b{['options'];constructor(_0x1c4827,_0x54d4e2){super(_0x1c4827),this['options']=_0x54d4e2,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x4b9d66,_0x2aa450){if(!this['element'])return;const _0x56e35a=[];for(const [_0xd29635,_0x585310]of _0x4b9d66){const _0x48d687=document['createElement']('div');_0x48d687['setAttribute']('data-ck-root-name',_0xd29635),_0x48d687['className']=_0x585310['classes']+'\x20ck-track-changes-preview__root-container',_0x48d687['innerHTML']=_0x585310['content'],_0x56e35a['push'](_0x48d687);}_0x2aa450(this['element'],_0x56e35a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x14acb2){super(_0x14acb2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4e2c97=this['editor'],_0x350f3f=_0x4e2c97['locale'],_0x53ef6f=_0x4e2c97['plugins']['get']('Dialog');let _0x548e11;const _0x2cba8b=function(_0x597807){const _0x3c2569={};if('editables'in _0x597807['ui']['view']){for(const [_0x47e4e7,_0x13df6b]of Object['entries'](_0x597807['ui']['view']['editables']))_0x3c2569[_0x47e4e7]=_0x13df6b['element'];}else _0x3c2569[_0x597807['model']['document']['getRootNames']()[0x0]]=_0x597807['ui']['view']['editable']['element'];return _0x3c2569;}(_0x4e2c97),_0x304499=function(_0x239e27){let _0x59490f=0x0;for(const _0x18313e of Object['values'](_0x239e27))_0x59490f=Math['max'](_0x59490f,_0x18313e['getBoundingClientRect']()['width']);let _0x3ca127=0x0;for(const _0x2d2227 of Object['values'](_0x239e27))_0x3ca127+=_0x2d2227['getBoundingClientRect']()['height'];const _0x1c561e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x33674f=Math['min'](_0x3ca127,_0x1c561e);return{'width':_0x59490f,'height':_0x33674f};}(_0x2cba8b);_0x53ef6f['show']({'id':'finalContentPreview','title':o(_0x350f3f,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x350f3f,{'dialogRects':_0x304499}),'onHide':()=>{_0x548e11['detachFromDom']();},'onShow':()=>{_0x4e2c97['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1f7b93=>{const _0x59ec96=this['_standarizeRootsData'](_0x1f7b93,_0x4e2c97,_0x2cba8b);_0x53ef6f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x59ec96,_0x4e2c97['config']['get']('trackChanges.preview.renderFunction'));}),_0x548e11=new _0x187050(_0x350f3f,[_0x53ef6f['view']]),_0x548e11['attachToDom'](),_0x548e11['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4e2c97['once']('destroy',()=>{_0x548e11['detachFromDom']();});const _0x235ada=_0x53ef6f['view']['headerView']['class'];_0x53ef6f['view']['headerView']['class']=_0x235ada?_0x235ada+'\x20ck-reset_all':'ck-reset_all',_0x53ef6f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x53ef6f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x52981a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x15036a=_0x52981a['previewMode'],_0x2b3ca1={};if('$labels'===_0x15036a){for(const _0x4e1198 of _0x52981a['getMergeFieldsIds']())_0x2b3ca1[_0x4e1198]=_0x52981a['getLabel'](_0x4e1198)||_0x4e1198;}else{const _0x763e20='$defaultValues'===_0x15036a?_0x52981a['getDefaultValues']():_0x52981a['getDataSetValues'](_0x15036a,!0x0);for(const _0x5f6081 of Object['entries'](_0x763e20)){const [_0x31a409,_0x1195ed]=_0x5f6081;_0x2b3ca1[_0x31a409]=null!==_0x1195ed?_0x1195ed:_0x52981a['getLabel'](_0x31a409)||_0x31a409;}}return{'mergeFieldsData':_0x2b3ca1};}['_standarizeRootsData'](_0x168df0,_0x565d0d,_0x3f74dd){let _0x3a93ae;if('string'==typeof _0x168df0){const _0x4a0d6d=_0x565d0d['model']['document']['getRootNames']()[0x0];_0x3a93ae={[_0x4a0d6d]:_0x168df0};}else _0x3a93ae=_0x168df0;const _0x3e4ccd=this['_fixMediaEmbeds'](_0x3a93ae,_0x565d0d),_0x24ce1b=function(_0x246f4d,_0x336b8b){for(const [_0x3744b7,_0x431108]of _0x246f4d)_0x431108['classes']=_0x336b8b[_0x3744b7]['classList']['value']['replace']('ck-focused','');return _0x246f4d;}(this['_sortRoots'](_0x565d0d)['reduce']((_0x1e86a0,_0x3da285)=>(_0x1e86a0['push']([_0x3da285,{'content':_0x3e4ccd[_0x3da285],'classes':''}]),_0x1e86a0),[]),_0x3f74dd);return _0x24ce1b;}['_fixMediaEmbeds'](_0x17730c,_0x4d18f7){if(!_0x4d18f7['plugins']['has']('MediaEmbedEditing'))return _0x17730c;const _0x4e9805=_0x4d18f7['plugins']['get']('MediaEmbedEditing');for(const [_0x1f1c9d,_0x31795b]of Object['entries'](_0x17730c)){const _0x39108a=document['createElement']('div');_0x39108a['innerHTML']=_0x31795b,(_0x39108a['querySelectorAll']('figure.media')['forEach'](_0x15fb83=>{const _0x10bbf6=_0x15fb83['querySelector']('oembed');if(_0x10bbf6){const _0x5bb75f=_0x10bbf6['getAttribute']('url');if(_0x5bb75f){const _0x30f118=_0x4e9805['registry']['getMediaViewElement'](new _0x1145a5(_0x4d18f7['editing']['view']['document']),_0x5bb75f,{'elementName':'','renderForEditingView':!0x0}),_0x49dbd6=document['createElement']('div');_0x49dbd6['classList']['add']('ck-media__wrapper'),_0x30f118['render'](_0x49dbd6,_0x4d18f7['editing']['view']['domConverter']),_0x10bbf6['replaceWith'](_0x49dbd6);}}}),_0x17730c[_0x1f1c9d]=_0x39108a['innerHTML']);}return _0x17730c;}['_sortRoots'](_0x3ef127){if(!function(_0x1e97cb){return void 0x0!==_0x1e97cb['getRootsAttributes'];}(_0x3ef127))return _0x3ef127['model']['document']['getRootNames']();const _0x4cc888=[],_0x5d5310=new Map();for(const _0x2673d9 of _0x3ef127['model']['document']['getRootNames']()){const _0x21b311=_0x3ef127['editing']['view']['getDomRoot'](_0x2673d9)['getClientRects']()['item'](0x0);_0x4cc888['push'](_0x2673d9),_0x5d5310['set'](_0x2673d9,_0x21b311);}return _0x4cc888['sort']((_0x36a278,_0x40196d)=>{const _0x507a5b=_0x5d5310['get'](_0x36a278),_0x50a54e=_0x5d5310['get'](_0x40196d);return _0x507a5b['y']-_0x50a54e['y']||_0x507a5b['x']-_0x50a54e['x'];}),_0x4cc888;}}class te extends _0xa4b53f{static get['requires'](){return[T,_0x32ba8b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24d3ac){super(_0x24d3ac),_0x24d3ac['commands']['add']('previewFinalContent',new re(this['editor'])),_0x24d3ac['config']['define']('trackChanges.preview.renderFunction',(_0x3d7d8c,_0x3c47fd)=>{for(const _0x2c0a87 of _0x3c47fd)_0x3d7d8c['appendChild'](_0x2c0a87);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};