@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250120.0 → 0.0.0-nightly-20250121.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) 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 +12 -12
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/previewfinalcontentcommand.js +1 -1
  153. package/src/commands/trackchangescommand.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/integrations/aiassistant.js +1 -1
  156. package/src/integrations/alignment.js +1 -1
  157. package/src/integrations/basicstyles.js +1 -1
  158. package/src/integrations/blockquote.js +1 -1
  159. package/src/integrations/bookmark.js +1 -1
  160. package/src/integrations/casechange.js +1 -1
  161. package/src/integrations/ckbox.js +1 -1
  162. package/src/integrations/codeblock.js +1 -1
  163. package/src/integrations/comments.js +1 -1
  164. package/src/integrations/deletecommand.js +1 -1
  165. package/src/integrations/entercommand.js +1 -1
  166. package/src/integrations/findandreplace.js +1 -1
  167. package/src/integrations/font.js +1 -1
  168. package/src/integrations/formatpainter.js +1 -1
  169. package/src/integrations/heading.js +1 -1
  170. package/src/integrations/highlight.js +1 -1
  171. package/src/integrations/horizontalline.js +1 -1
  172. package/src/integrations/htmlembed.js +1 -1
  173. package/src/integrations/image.js +1 -1
  174. package/src/integrations/imagereplace.js +1 -1
  175. package/src/integrations/imagestyle.js +1 -1
  176. package/src/integrations/importword.js +1 -1
  177. package/src/integrations/indent.js +1 -1
  178. package/src/integrations/inputcommand.js +1 -1
  179. package/src/integrations/legacylist.js +1 -1
  180. package/src/integrations/legacylistproperties.js +1 -1
  181. package/src/integrations/link.js +1 -1
  182. package/src/integrations/list.js +1 -1
  183. package/src/integrations/listproperties.js +1 -1
  184. package/src/integrations/mediaembed.js +1 -1
  185. package/src/integrations/mention.js +1 -1
  186. package/src/integrations/mergefields.js +1 -1
  187. package/src/integrations/multilevellist.js +1 -1
  188. package/src/integrations/pagebreak.js +1 -1
  189. package/src/integrations/paragraph.js +1 -1
  190. package/src/integrations/removeformat.js +1 -1
  191. package/src/integrations/restrictededitingmode.js +1 -1
  192. package/src/integrations/shiftentercommand.js +1 -1
  193. package/src/integrations/standardeditingmode.js +1 -1
  194. package/src/integrations/style.js +1 -1
  195. package/src/integrations/table.js +1 -1
  196. package/src/integrations/tablecaption.js +1 -1
  197. package/src/integrations/tableclipboard.js +1 -1
  198. package/src/integrations/tablecolumnresize.js +1 -1
  199. package/src/integrations/tableheadings.js +1 -1
  200. package/src/integrations/tablemergesplit.js +1 -1
  201. package/src/integrations/tableofcontents.js +1 -1
  202. package/src/integrations/tableproperties.js +1 -1
  203. package/src/integrations/template.js +1 -1
  204. package/src/integrations/title.js +1 -1
  205. package/src/integrations/undo.js +1 -1
  206. package/src/integrations/utils.js +1 -1
  207. package/src/suggestion.js +2 -2
  208. package/src/suggestiondescriptionfactory.js +1 -1
  209. package/src/trackchanges.js +1 -1
  210. package/src/trackchangesdata.js +1 -1
  211. package/src/trackchangesediting.js +1 -1
  212. package/src/trackchangespreview.js +1 -1
  213. package/src/trackchangesui.js +1 -1
  214. package/src/ui/suggestioncontroller.js +2 -2
  215. package/src/ui/view/basesuggestionthreadview.js +1 -1
  216. package/src/ui/view/suggestionthreadview.js +1 -1
  217. package/src/ui/view/suggestionview.js +1 -1
  218. package/src/ui/view/trackchangespreviewview.js +1 -1
  219. package/src/utils/common-translations.js +1 -1
  220. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Qt,Plugin as _0x597b86,PendingActions as _0x172e62,icons as _0x51b03f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2c5f9f,ObservableMixin as _0x5ac880,uid as _0x226d2f,insertToPriorityArray as _0x5ced8f,priorities as _0x179303,logWarning as _0xc981dc,getEnvKeystrokeText as _0x3039e9,FocusTracker as _0x102f58,KeystrokeHandler as _0x3c659e,Collection as _0x2c678a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x48cf72,View as _0x1105ca,ViewCollection as _0x124e73,FocusCycler as ts,ViewModel as _0x5e2528,createDropdown as _0x2725dc,SplitButtonView as _0x479f12,addListToDropdown as _0x1ae4ac,MenuBarMenuView as _0x2df19b,MenuBarMenuListView as _0x169f24,ListSeparatorView as _0x347188,MenuBarMenuListItemView as _0x45496e,MenuBarMenuListItemButtonView as _0x397a78,BodyCollection as _0x5a9e88,Dialog as _0x1bed70}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4c0069,hashObject as _0x3897cd,surroundingMarkersDetector as _0x47f8ce,FOCUS_ANNOTATION_KEYSTROKE as _0x25b192,AriaDescriptionView as _0x4aba0d,setupThreadKeyboardNavigation as _0x5a0632,trimHtml as ti,UserView as _0x52f47a,LateFocusButtonView as _0x343746,getDateTimeFormatter as _0x97f8ab,getAllMarkersDomElementsSorted as _0x1ba5b8,sanitizeEditorConfig as _0x4408d3}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3b62b2,LiveRange as _0x125deb,LivePosition as _0x146da2,DowncastWriter as _0x8a5cff}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2e34ec,toWidget as _0x3e1c29}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1aef88,set as _0x5d07cf,isEqual as _0x5bee22,unset as _0x378772,omit as xt}from'lodash-es';import{Delete as _0x42492b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x32ec3f,ShiftEnter as _0x3ee207}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x571921,_0x189ff6){super(_0x571921),this['_enabledCommands']=_0x189ff6,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 _0x59efe9 of this['editor']['commands']['commands']())_0x59efe9['affectsData']&&!this['_enabledCommands']['has'](_0x59efe9)&&_0x59efe9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x58e6f6 of this['editor']['commands']['commands']())_0x58e6f6['affectsData']&&!this['_enabledCommands']['has'](_0x58e6f6)&&_0x58e6f6['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x2ee749,_0x42d1fb){super(_0x2ee749),this['_suggestions']=_0x42d1fb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4736bd){const _0x16617c=this['_suggestions']['get'](_0x4736bd);if(!_0x16617c)throw new _0x2c5f9f('track-changes-accept-suggestion-not-found',this);const _0x2b68c0=_0x16617c['getRanges']();this['editor']['model']['canEditAt'](_0x2b68c0)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x16617c);}}class R extends Qt{['_suggestions'];constructor(_0x4ea581,_0x420070){super(_0x4ea581),this['_suggestions']=_0x420070,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x300d3a){const _0x37a33a=this['_suggestions']['get'](_0x300d3a);if(!_0x37a33a)throw new _0x2c5f9f('track-changes-discard-suggestion-not-found',this);const _0x32d922=_0x37a33a['getRanges']();this['editor']['model']['canEditAt'](_0x32d922)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x37a33a);}}function ns(_0x505da8,_0x4eb560){let _0x1885e0='';return _0x1885e0+=_0x505da8['split']('*')['map']((_0x52a691,_0x306dfc)=>_0x306dfc%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x52a691)+'</span>':nn(_0x52a691))['join'](''),_0x4eb560&&(_0x1885e0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4eb560['value']+'\x22\x20title=\x22'+_0x4eb560['title']+'\x22></span>'),_0x1885e0;}function nn(_0x3a77f5){const _0x39aaf7=document['createElement']('span');return _0x39aaf7['innerText']=_0x3a77f5,_0x39aaf7['innerHTML'];}function Wt(_0x3f0bae){return _0x3f0bae['sort']((_0x23da97,_0x587f18)=>'deletion'==_0x23da97['type']&&'deletion'!=_0x587f18['type']?-0x1:'deletion'!=_0x23da97['type']&&'deletion'==_0x587f18['type']?0x1:0x0);}function to(_0x4326b0,_0x310692){let _0x55f1f6,_0x443819=0x0;const _0x42c1ba=[],_0x559381=_0x310692['schema'];for(;_0x443819<_0x4326b0['length'];){const _0xbfc9a5=_0x4326b0[_0x443819],_0x509bad=_0x4326b0[_0x443819+0x1];_0x55f1f6||(_0x55f1f6=_0x310692['createPositionBefore'](_0xbfc9a5)),on(_0x310692,_0xbfc9a5,_0x509bad)||(_0x42c1ba['push'](_0x310692['createRange'](_0x55f1f6,_0x559381['isObject'](_0xbfc9a5)?_0x310692['createPositionAfter'](_0xbfc9a5):_0x310692['createPositionAt'](_0xbfc9a5,'end'))),_0x55f1f6=null),_0x443819++;}return _0x42c1ba;}function on(_0x1e9090,_0x7255da,_0x35f8e0){if(!_0x35f8e0)return!0x1;const _0x52725b=_0x1e9090['createPositionAfter'](_0x7255da),_0x1476d7=_0x1e9090['createPositionBefore'](_0x35f8e0);return _0x52725b['isTouching'](_0x1476d7);}function Xt(_0x4b7524,_0x3316f8,_0x33b391){for(;_0x33b391['length'];){const _0x4b56df=_0x33b391['splice'](0x0,0x64);_0x4b7524['change'](()=>{for(const _0x465ed1 of _0x4b56df)_0x465ed1['isInContent']&&_0x3316f8['execute'](_0x465ed1['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x1ac1f8,_0x18a98d,_0x41ed38){super(_0x1ac1f8),this['_command']=_0x18a98d,this['_suggestions']=_0x41ed38,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x123205=Array['from'](this['_suggestions']['values']())['some'](_0x2945b9=>_0x2945b9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x123205;}['execute'](){const _0x2a0492=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x39321b of _0x2a0492){const _0xed1765=_0x39321b['getRanges']();if(!this['editor']['model']['canEditAt'](_0xed1765))return;}Xt(this['editor']['model'],this['_command'],_0x2a0492);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2beeee,_0x3607f8,_0x1f3ab2){super(_0x2beeee),this['_command']=_0x3607f8,this['_suggestions']=_0x1f3ab2,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1a1153=this['editor']['model']['document']['selection'],_0x4c6b06=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1d876f,_0xdcdad0){const _0x20a891=Array['from'](_0x1d876f['getRanges']()),_0x20be7f=new Set();for(const _0x3ab130 of _0xdcdad0)if(_0x3ab130['isInContent']){for(const _0x1614e1 of _0x20a891)for(const _0x50e41b of _0x3ab130['getRanges']())(_0x1614e1['isIntersecting'](_0x50e41b)||_0x1d876f['isCollapsed']&&!_0x3ab130['isMultiRange']&&_0x3ab130['next']&&_0x50e41b['end']['isTouching'](_0x1614e1['start']))&&_0x20be7f['add'](_0x3ab130);}return _0x20be7f;}(_0x1a1153,_0x4c6b06),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4dad68=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x1546cc of _0x4dad68){const _0x492245=_0x1546cc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x492245))return;}Xt(this['editor']['model'],this['_command'],_0x4dad68);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x5ac880(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x49a285,_0x597625){super(),this['id']=_0x597625['id'],this['type']=_0x597625['type'],this['subType']=_0x597625['subType']||null,this['author']=_0x597625['author'],this['creator']=_0x597625['creator']||_0x597625['author'],this['isExternal']=Boolean(_0x597625['attributes']&&_0x597625['attributes']['@external']),this['data']=null,this['_model']=_0x49a285,this['_onAccept']=_0x597625['onAccept'],this['_onDiscard']=_0x597625['onDiscard'],this['_onAttributesChange']=_0x597625['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x597625['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 _0x19a4d9=this;for(;_0x19a4d9['previous'];)_0x19a4d9=_0x19a4d9['previous'];return _0x19a4d9;}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'](_0x20e315){this['_markerNames']['add'](_0x20e315);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x550df8=>this['_model']['markers']['get'](_0x550df8))['filter'](_0xd24a18=>_0xd24a18);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x649ad6=>{for(const _0x259e63 of this['getMarkers']())_0x649ad6['removeMarker'](_0x259e63);}),this['_markerNames']['clear']();}['removeMarker'](_0x122a5c){this['_model']['change'](_0xbd428c=>{_0xbd428c['removeMarker'](_0x122a5c);}),this['_markerNames']['delete'](_0x122a5c);}['addRange'](_0x4dd279){const _0x587a95='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x587a95),this['_model']['change'](_0x5c87ed=>{_0x5c87ed['addMarker'](_0x587a95,{'range':_0x4dd279,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xd2b00){for(const _0x4e93e7 of this['getRanges']())if(_0x4e93e7['isIntersecting'](_0xd2b00))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5d84e8=>_0x5d84e8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5105e3,_0x7d3ba0)=>[..._0x5105e3,..._0x7d3ba0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x920426=this['getRanges']();if(0x1!=_0x920426['length'])return null;const _0x12d735=_0x920426[0x0],_0x25edaf=_0x12d735['start']['nodeAfter'],_0x4f2962=_0x12d735['end']['nodeBefore'];return _0x25edaf instanceof _0x3b62b2?_0x25edaf!=_0x4f2962?null:_0x25edaf: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 _0x10508e=[];let _0x32d6b5=this['head'];for(;_0x32d6b5;)_0x10508e['push'](_0x32d6b5),_0x32d6b5=_0x32d6b5['next'];return _0x10508e;}['setAttribute'](_0x1f02dc,_0x18f80f){const _0x158897=_0x1aef88(this['attributes']);_0x5d07cf(_0x158897,_0x1f02dc,_0x18f80f),_0x5bee22(_0x158897,this['attributes'])||(this['attributes']=_0x158897,this['_onAttributesChange'](_0x158897));}['removeAttribute'](_0x1ba209){const _0x407918=_0x1aef88(this['attributes']);_0x378772(_0x407918,_0x1ba209),_0x5bee22(_0x407918,this['attributes'])||(this['attributes']=_0x407918,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 _0x226d2f()['substr'](0x1,0x5);}}function o(_0x591e93,_0x5abb77,_0x2b7e60){const _0x10f669=_0x591e93['t'],t=_0x591e93['t'];switch(_0x5abb77){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',_0x2b7e60);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2b7e60);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2b7e60);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2b7e60);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2b7e60);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',_0x2b7e60);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2b7e60);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2b7e60);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2b7e60);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2b7e60);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2b7e60);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2b7e60);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2b7e60);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2b7e60);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2b7e60);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2b7e60);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2b7e60);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2b7e60);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2b7e60);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2b7e60);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2b7e60);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2b7e60);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2b7e60);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2b7e60);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'},_0x2b7e60);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2b7e60);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2b7e60);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2b7e60);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2b7e60);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2b7e60);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'},_0x2b7e60);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2b7e60);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2b7e60);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2b7e60);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2b7e60);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'},_0x2b7e60);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2b7e60);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'},_0x2b7e60);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'},_0x2b7e60);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2b7e60);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'},_0x2b7e60);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2b7e60);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'},_0x2b7e60);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2b7e60);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2b7e60);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'},_0x2b7e60);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2b7e60);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 _0x10f669({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2b7e60);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x10f669({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2b7e60);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2b7e60);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'},_0x2b7e60);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'},_0x2b7e60);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'},_0x2b7e60);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5abb77;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x540bae,_0x378896){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x540bae,this['_locale']=_0x378896;}['getDescriptions'](_0x2d0e6d){const _0x4359b4=[],_0x423bb5=new Set(),_0x5f010c=new Set();for(let _0x195aee=0x0;_0x195aee<_0x2d0e6d['length'];_0x195aee++){const _0x5b753a=_0x2d0e6d[_0x195aee];if(!_0x5b753a['isInContent'])continue;const _0x122c11=this['_handleCustomCallbackDescription'](_0x5b753a);if(_0x122c11){if(null!=_0x5b753a['subType']){if(_0x423bb5['has'](_0x5b753a['subType']))continue;_0x423bb5['add'](_0x5b753a['subType']);}_0x4359b4['push'](_0x122c11);}else{if('attribute'!=_0x5b753a['type'])'insertion'!=_0x5b753a['type']&&'deletion'!=_0x5b753a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4359b4,_0x5b753a,_0x2d0e6d[_0x195aee+0x1]);else{const _0x53d69e=_0x5b753a['data']['key'];if(_0x5f010c['has'](_0x53d69e))continue;_0x5f010c['add'](_0x5b753a['data']['key']),_0x53d69e==m?this['_handleRenameSuggestionDescription'](_0x4359b4,_0x5b753a):this['_handleAttributeSuggestionDescription'](_0x4359b4,_0x5b753a);}}}return this['_resolveDescriptionItems'](_0x4359b4);}['registerDescriptionCallback'](_0x2a91e1){this['_customCallbacks']['push'](_0x2a91e1);}['registerElementLabel'](_0x2f1111,_0x2008f5,_0x55bf12=_0x179303['normal']){'function'==typeof _0x2f1111?_0x5ced8f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2f1111,'label':_0x2008f5,'priority':_0x55bf12}):this['_itemLabels']['set'](_0x2f1111,_0x2008f5);}['registerAttributeLabel'](_0x20a438,_0x5ed60d){this['_attributeLabels']['set'](_0x20a438,_0x5ed60d);}['getItemLabel'](_0x3175e6,_0x531b91=0x1){let _0x2aac0b;for(const _0x1cd6e9 of this['_itemLabelsCallbacks'])if(_0x1cd6e9['matchingCallback'](_0x3175e6)){_0x2aac0b=_0x1cd6e9['label'];break;}return _0x2aac0b||(_0x2aac0b=this['_itemLabels']['get'](_0x3175e6['name'])),_0x2aac0b?_0x2aac0b(_0x531b91):0x1!==_0x531b91?_0x531b91+'\x20'+_0x3175e6['name']+'s':''+_0x3175e6['name'];}['_addDescriptionItems'](_0x1da3e7,_0x1f6a14){const _0x20f6af=_0x1f6a14['getFirstRange']()['getWalker'](),_0x40a91a='insertion'==_0x1f6a14['type']?'add':'remove';for(const _0x428e05 of _0x20f6af){const _0x3eedd6=_0x428e05['item'],_0x2df93b=_0x1da3e7[_0x1da3e7['length']-0x1];if(_0x3eedd6['is']('$textProxy'))_0x2df93b&&_0x2df93b['type']['indexOf']('Container')>-0x1&&_0x1da3e7['pop'](),_0x2df93b&&'text'==_0x2df93b['type']?_0x2df93b[_0x40a91a]+=_0x3eedd6['data']:_0x1da3e7['push']({'type':'text','add':'add'==_0x40a91a?_0x3eedd6['data']:'','remove':'remove'==_0x40a91a?_0x3eedd6['data']:''});else{if(this['_schema']['isObject'](_0x3eedd6)){const _0x19eb2a=_0x3eedd6;if(_0x2df93b&&_0x2df93b['type']['indexOf']('Container')>-0x1&&_0x1da3e7['pop'](),'elementEnd'==_0x428e05['type'])continue;_0x2df93b&&_0x2df93b['type']==_0x40a91a+'Object'&&_0x2df93b['element']['name']==_0x19eb2a['name']?_0x2df93b['quantity']++:_0x1da3e7['push']({'type':_0x40a91a+'Object','element':_0x19eb2a,'quantity':0x1}),_0x20f6af['skip'](_0x52fd6b=>!('elementEnd'==_0x52fd6b['type']&&_0x52fd6b['item']==_0x3eedd6));}else{if(this['_schema']['checkChild'](_0x3eedd6,'$text')||_0x3eedd6['is']('element','softBreak')){const _0x134ab8=_0x3eedd6;if('add'==_0x40a91a&&'elementStart'==_0x428e05['type']||'remove'==_0x40a91a&&'elementEnd'==_0x428e05['type'])continue;if(_0x2df93b&&-0x1==_0x2df93b['type']['indexOf']('Container')){'text'==_0x2df93b['type']&&(_0x2df93b[_0x40a91a]+='\x0a');continue;}let _0x3f5c92;if(_0x3f5c92='add'==_0x40a91a?_0x134ab8['nextSibling']&&!this['_schema']['isObject'](_0x134ab8['nextSibling'])?_0x134ab8['nextSibling']:null:_0x134ab8['previousSibling']&&!this['_schema']['isObject'](_0x134ab8['previousSibling'])?_0x134ab8['previousSibling']:null,_0x134ab8['isEmpty']||_0x3f5c92&&_0x3f5c92['isEmpty']){const _0x124417=_0x3f5c92&&_0x3f5c92['isEmpty']?_0x3f5c92:_0x134ab8;_0x2df93b&&_0x2df93b['type']==_0x40a91a+'EmptyContainer'&&_0x2df93b['element']['name']==_0x124417['name']?_0x2df93b['quantity']++:_0x1da3e7['push']({'type':_0x40a91a+'EmptyContainer','element':_0x124417,'quantity':0x1});}else _0x1da3e7['push']({'type':_0x40a91a+'Container','element':_0x134ab8});}}}}}['_resolveDescriptionItems'](_0x38ac30){const _0xc76d40=this['_locale'],_0x36758b=[],_0x5c3ec1=[],_0x1cbe06=[];for(const _0x28b13d of _0x38ac30)switch(_0x28b13d['type']){case'text':if(_0x28b13d['add']=_0x28b13d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x28b13d['remove']=_0x28b13d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x28b13d['add']&&''!=_0x28b13d['remove']){_0x36758b['push']({'type':'replace','content':o(_0xc76d40,'REPLACE_TEXT',['\x22'+_0x28b13d['remove']+'\x22','\x22'+_0x28b13d['add']+'\x22'])});continue;}if(null!=_0x28b13d['add']['match'](/^ +$/)){_0x36758b['push']({'type':'insertion','content':o(_0xc76d40,'*Insert:*\x20%0',o(_0xc76d40,'ELEMENT_SPACE',_0x28b13d['add']['length']))});continue;}if(null!=_0x28b13d['remove']['match'](/^ +$/)){_0x36758b['push']({'type':'deletion','content':o(_0xc76d40,'*Remove:*\x20%0',o(_0xc76d40,'ELEMENT_SPACE',_0x28b13d['remove']['length']))});continue;}if(''!=_0x28b13d['add']){_0x36758b['push']({'type':'insertion','content':o(_0xc76d40,'*Insert:*\x20%0','\x22'+_0x28b13d['add']+'\x22')});continue;}_0x36758b['push']({'type':'deletion','content':o(_0xc76d40,'*Remove:*\x20%0','\x22'+_0x28b13d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x36758b['push']({'type':'insertion','content':o(_0xc76d40,'*Insert:*\x20%0',this['getItemLabel'](_0x28b13d['element'],_0x28b13d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x36758b['push']({'type':'deletion','content':o(_0xc76d40,'*Remove:*\x20%0',this['getItemLabel'](_0x28b13d['element'],_0x28b13d['quantity']))});continue;case'addContainer':_0x36758b['push']({'type':'insertion','content':o(_0xc76d40,'*Split:*\x20%0',this['getItemLabel'](_0x28b13d['element'],_0x28b13d['quantity']))});continue;case'removeContainer':_0x36758b['push']({'type':'deletion','content':o(_0xc76d40,'*Merge:*\x20%0',this['getItemLabel'](_0x28b13d['element'],_0x28b13d['quantity']))});continue;case'addFormat':_0x5c3ec1['push'](_0x28b13d['key']);continue;case'removeFormat':_0x1cbe06['push'](_0x28b13d['key']);continue;default:_0x36758b['push'](_0x28b13d);}if(_0x5c3ec1['length']){const _0x510006=_0x5c3ec1['map'](_0x13d3bd=>this['_attributeLabels']['has'](_0x13d3bd)?this['_attributeLabels']['get'](_0x13d3bd):_0x13d3bd)['join'](',\x20');_0x36758b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x510006)});}if(_0x1cbe06['length']){const _0x50d03c=_0x1cbe06['map'](_0x4d3928=>this['_attributeLabels']['has'](_0x4d3928)?this['_attributeLabels']['get'](_0x4d3928):_0x4d3928)['join'](',\x20');_0x36758b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x50d03c)});}return _0x36758b;}['_handleCustomCallbackDescription'](_0x3e4c79){for(const _0x56380f of this['_customCallbacks']){const _0x189d1e=_0x56380f(_0x3e4c79);if(_0x189d1e&&'type'in _0x189d1e)return _0x189d1e;}}['_handleAttributeSuggestionDescription'](_0x353433,_0xd07366){const _0x4eaa92=_0xd07366['data'],_0x2ff72b=void 0x0===_0x4eaa92['newValue']?'removeFormat':'addFormat';_0x353433['push']({'type':_0x2ff72b,'key':_0x4eaa92['key']});}['_handleRenameSuggestionDescription'](_0x2e258c,_0x5ad0fb){_0x2e258c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5ad0fb['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3eb985,_0xafd6a6,_0x49d61c){if(this['_addDescriptionItems'](_0x3eb985,_0xafd6a6),_0x49d61c&&_0x49d61c['getFirstRange']()&&!_0xafd6a6['getFirstRange']()['end']['isEqual'](_0x49d61c['getFirstRange']()['start'])){const _0xe51f16=_0x3eb985[_0x3eb985['length']-0x1],_0x3af185='insertion'==_0xafd6a6['type']?'add':'remove';_0xe51f16&&'text'==_0xe51f16['type']&&(_0xe51f16[_0x3af185]+='\x0a');}}}class U extends _0x597b86{['afterInit'](){const _0x4500be=this['editor'],_0x222067=_0x4500be['plugins']['get']('TrackChangesEditing');_0x4500be['commands']['get']('showAIAssistant')&&_0x222067['enableCommand']('showAIAssistant');}}class V extends _0x597b86{['afterInit'](){const _0x484c3c=this['editor'],_0x1bc7ac=_0x484c3c['locale'];if(!_0x484c3c['plugins']['has']('AlignmentEditing'))return;const _0x14941f=_0x484c3c['plugins']['get']('TrackChangesEditing');_0x14941f['enableDefaultAttributesIntegration']('alignment'),_0x14941f['registerBlockAttribute']('alignment'),_0x14941f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1bc7ac,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfa91e3=this['editor'],_0x34fbaf=_0xfa91e3['locale'];_0xfa91e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23c3b7=>{if('formatBlock'!=_0x23c3b7['type'])return;const {data:_0x3aa6e2}=_0x23c3b7;if(_0x3aa6e2&&'alignment'==_0x3aa6e2['commandName']){const _0x57dbbf=_0x3aa6e2['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x34fbaf,'*Format:*\x20%0',function(_0x24983a){switch(_0x24983a){case'left':return o(_0x34fbaf,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x34fbaf,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x34fbaf,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x34fbaf,'FORMAT_JUSTIFY_TEXT');}}(_0x57dbbf))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x597b86{['afterInit'](){const _0x62c33a=this['editor'],_0x133963=_0x62c33a['plugins']['get']('TrackChangesEditing'),_0x351d71=_0x62c33a['locale'];for(const _0x55e0e2 of Zt){if(!_0x62c33a['plugins']['has'](_0x55e0e2))continue;const _0x1cf8ca=_0x55e0e2['slice'](0x0,-0x7)['toLowerCase'](),_0x496482='FORMAT_'+_0x1cf8ca['toUpperCase']();_0x133963['enableDefaultAttributesIntegration'](_0x1cf8ca),_0x133963['registerInlineAttribute'](_0x1cf8ca),_0x133963['descriptionFactory']['registerAttributeLabel'](_0x1cf8ca,o(_0x351d71,_0x496482));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x575ab9=this['editor'],_0x1b405a=_0x575ab9['locale'],_0x146e67=_0x575ab9['plugins']['get']('TrackChangesEditing');function _0xb60c70(_0x2f1f89,_0x5f283e){_0x146e67['descriptionFactory']['registerDescriptionCallback'](_0xc1e48f=>{if('formatInline'!=_0xc1e48f['type'])return;const {data:_0x18fceb}=_0xc1e48f;return _0x18fceb&&_0x18fceb['commandName']===_0x2f1f89?_0x18fceb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b405a,'*Format:*\x20%0',_0x5f283e)}:{'type':'format','content':o(_0x1b405a,'*Remove\x20format:*\x20%0',_0x5f283e)}:void 0x0;});}_0xb60c70('bold',o(_0x1b405a,'FORMAT_BOLD')),_0xb60c70('italic',o(_0x1b405a,'FORMAT_ITALIC')),_0xb60c70('underline',o(_0x1b405a,'FORMAT_UNDERLINE')),_0xb60c70('code',o(_0x1b405a,'FORMAT_CODE')),_0xb60c70('strikethrough',o(_0x1b405a,'FORMAT_STRIKETHROUGH')),_0xb60c70('subscript',o(_0x1b405a,'FORMAT_SUBSCRIPT')),_0xb60c70('superscript',o(_0x1b405a,'FORMAT_SUPERSCRIPT'));}}class F extends _0x597b86{['afterInit'](){const _0x586812=this['editor'],_0x426dbc=_0x586812['locale'];if(!_0x586812['plugins']['has']('BlockQuoteEditing'))return;const _0x378d4c=_0x586812['plugins']['get']('TrackChangesEditing'),_0xc9ecb5=this['editor']['commands']['get']('blockQuote');_0x378d4c['enableCommand']('blockQuote',(_0x37f5f0,_0x5b6bc9={})=>{const _0x548230=this['editor']['model']['document']['selection'],_0x40fe56=_0x5b6bc9&&void 0x0!==_0x5b6bc9['forceValue']?_0x5b6bc9['forceValue']:!_0xc9ecb5['value'];let _0x5eea23=[];if(_0x40fe56){const _0x54a64f=Array['from'](_0x548230['getSelectedBlocks']())['filter'](_0x25c554=>oo(_0x25c554)||function(_0x588987,_0x2e76e9){const _0x104ab3=_0x2e76e9['checkChild'](_0x588987['parent'],'blockQuote'),_0x25d5b6=_0x2e76e9['checkChild'](['$root','blockQuote'],_0x588987);return _0x104ab3&&_0x25d5b6;}(_0x25c554,this['editor']['model']['schema']));_0x5eea23=to(_0x54a64f,_0x586812['model']);}else{const _0x13f06f=Array['from'](_0x548230['getSelectedBlocks']())['filter'](_0x37037e=>oo(_0x37037e));_0x5eea23=to(_0x13f06f,_0x586812['model']);}_0x586812['model']['change'](()=>{for(const _0x343667 of _0x5eea23)_0x378d4c['markBlockFormat'](_0x343667,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x40fe56}]});});}),_0x378d4c['descriptionFactory']['registerDescriptionCallback'](_0xd79554=>{const {data:_0x5123e8}=_0xd79554;if(_0x5123e8&&'blockQuote'==_0x5123e8['commandName']){const _0x340534=o(_0x426dbc,'ELEMENT_BLOCK_QUOTE');return _0x5123e8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x426dbc,'*Set\x20format:*\x20%0',_0x340534)}:{'type':'format','content':o(_0x426dbc,'*Remove\x20format:*\x20%0',_0x340534)};}});}}function oo(_0x1bd7fc){return'blockQuote'==_0x1bd7fc['parent']['name'];}class L extends _0x597b86{['afterInit'](){const _0x2ec1c2=this['editor'],_0x405653=_0x2ec1c2['locale'],_0x31f390=_0x2ec1c2['plugins']['get']('TrackChangesEditing');_0x2ec1c2['plugins']['has']('BookmarkEditing')&&(_0x31f390['enableCommand']('insertBookmark'),_0x31f390['enableDefaultAttributesIntegration']('updateBookmark'),_0x31f390['registerBlockAttribute']('bookmarkId'),_0x31f390['descriptionFactory']['registerDescriptionCallback'](_0x4bb44c=>{if('insertion'!=_0x4bb44c['type']&&'deletion'!=_0x4bb44c['type']&&'attribute'!=_0x4bb44c['type'])return;const _0x4cbfe4=_0x4bb44c['getContainedElement']();if(null==_0x4cbfe4)return;if(!_0x4cbfe4['is']('element','bookmark'))return;const _0x2756bc=_0x4cbfe4['getAttribute']('bookmarkId');if('insertion'==_0x4bb44c['type'])return{'type':'insertion','content':o(_0x405653,'*Insert:*\x20%0','\x22'+_0x2756bc+'\x22\x20'+o(_0x405653,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4bb44c['type'])return{'type':'deletion','content':o(_0x405653,'*Remove:*\x20%0','\x22'+_0x2756bc+'\x22\x20'+o(_0x405653,'ELEMENT_BOOKMARK'))};const {data:_0x1d4e24}=_0x4bb44c;if(!_0x1d4e24||'bookmarkId'!=_0x1d4e24['key'])return;return{'type':'format','content':o(_0x405653,'*Set\x20bookmark:*\x20%0','\x22'+_0x1d4e24['newValue']+'\x22')};}));}}class J extends _0x597b86{['afterInit'](){const _0x2d2fc2=this['editor'];_0x2d2fc2['plugins']['has']('CaseChange')&&(_0x2d2fc2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2d2fc2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2d2fc2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x597b86{['afterInit'](){const _0x3255fb=this['editor'];_0x3255fb['commands']['get']('ckbox')&&_0x3255fb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x597b86{['afterInit'](){const _0x3dea94=this['editor'];if(!_0x3dea94['plugins']['has']('CodeBlock'))return;const _0x4542b8=_0x3dea94['plugins']['get']('TrackChangesEditing'),_0x2b1160=_0x3dea94['locale'],_0x20d497=_0x3dea94['config']['get']('codeBlock')['languages'],_0x197eff=_0x3dea94['commands']['get']('codeBlock');_0x4542b8['enableCommand']('indentCodeBlock'),_0x4542b8['enableCommand']('outdentCodeBlock'),_0x4542b8['enableCommand']('codeBlock',(_0x412ef2,_0x58f293={})=>{const _0x4a7ff4=_0x3dea94['model'],_0x1a2ec1=_0x3dea94['model']['document']['selection'],_0x27864f=_0x58f293&&void 0x0!==_0x58f293['forceValue']?_0x58f293['forceValue']:!_0x197eff['value'];let _0x43d108;_0x58f293['language']||(_0x58f293['language']=_0x20d497[0x0]['language']),_0x43d108=_0x27864f?Array['from'](_0x1a2ec1['getSelectedBlocks']())['filter'](_0x39a756=>eo(_0x39a756)||function(_0x3fae0c,_0x1fc945){if(_0x3fae0c['is']('rootElement')||_0x1fc945['isLimit'](_0x3fae0c))return!0x1;return _0x1fc945['checkChild'](_0x3fae0c['parent'],'codeBlock');}(_0x39a756,_0x4a7ff4['schema'])):Array['from'](_0x1a2ec1['getSelectedBlocks']())['filter'](_0x373e0d=>eo(_0x373e0d));const _0x453338=to(_0x43d108,_0x4a7ff4);_0x4a7ff4['change'](()=>{for(const _0x410a45 of _0x453338)_0x4542b8['markBlockFormat'](_0x410a45,{'commandName':'codeBlock','commandParams':[{..._0x58f293,'forceValue':_0x27864f}],'formatGroupId':'blockName'});});}),(_0x4542b8['descriptionFactory']['registerElementLabel']('codeBlock',_0x37ade3=>o(_0x2b1160,'ELEMENT_CODE_BLOCK',_0x37ade3)),_0x4542b8['descriptionFactory']['registerDescriptionCallback'](_0x4240a6=>{if('formatBlock'!=_0x4240a6['type'])return;const _0x2ae4da=_0x2b1160['t'],{data:_0x16e96e}=_0x4240a6;if(!_0x16e96e||'codeBlock'!=_0x16e96e['commandName'])return;const _0x3e690f=_0x16e96e['commandParams'][0x0]['language'],_0x1b1ceb=_0x2ae4da(_0x20d497['find'](_0x403c46=>_0x403c46['language']===_0x3e690f)['label'])['toLowerCase']();return _0x16e96e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b1160,'*Set\x20format:*\x20%0',o(_0x2b1160,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1b1ceb+')')}:{'type':'format','content':o(_0x2b1160,'*Remove\x20format:*\x20%0',o(_0x2b1160,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4dd878){return'codeBlock'==_0x4dd878['name'];}class z extends _0x597b86{['afterInit'](){const _0x5137da=this['editor'];if(!_0x5137da['plugins']['has']('CommentsEditing'))return;_0x5137da['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x359cf1,_0x1d8e6c,_0x266498){const _0x42aa3b=[];for(const _0x225759 of _0x1d8e6c['getItems']())_0x225759['hasAttribute'](_0x359cf1)&&_0x42aa3b['push'](_0x266498['createRangeOn'](_0x225759));return _0x42aa3b;}function De(_0x3ff77b,_0x16c831,{showActiveMarker:_0x19a68d=!0x0}={}){const _0x375539=_0x3ff77b['plugins']['get']('TrackChangesEditing');return(_0x2373e6,_0x3726b4,_0x444bc2)=>{if(!_0x444bc2['consumable']['test'](_0x3726b4['markerRange'],_0x2373e6['name']))return;const _0x1d95be=_0x3726b4['markerRange']['getWalker'](),_0x3c2fe4=_0x3726b4['markerRange']['start'],_0x53187e=_0x3ff77b['model']['schema'];let _0x3d269e=null,_0x49d62b=null,_0x4b0dfe=!0x1,_0xaf1114=!0x1;for(const _0x3ba171 of _0x1d95be){const _0x22e0b4=_0x3ba171['item'];_0x4b0dfe=_0x4b0dfe||_0x53187e['isContent'](_0x22e0b4);const _0x587a70=_0x444bc2['mapper']['toViewElement'](_0x22e0b4);if(_0x587a70&&_0x587a70['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3ba171['type']&&(_0x53187e['isBlock'](_0x22e0b4)&&!_0x53187e['isLimit'](_0x22e0b4)&&(_0x22e0b4['nextSibling']||_0x3c2fe4['isAtEnd']?_0x3d269e&&_0x3d269e['parent']==_0x22e0b4||(_0x3d269e=_0x22e0b4,_0x330b23(_0x3ba171['previousPosition']),_0xaf1114=!0x0):_0x49d62b=_0x49d62b||_0x3ba171['previousPosition']));}function _0x330b23(_0x54a414){const {authorId:_0x388bdd}=_0x375539['_splitMarkerName'](_0x3726b4['markerName']),_0x593529=_0x444bc2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x16c831,'data-author-id':_0x388bdd}),_0x425c85=_0x444bc2['mapper']['toViewPosition'](_0x54a414);_0x19a68d&&_0x375539['activeMarkers']['includes'](_0x3726b4['markerName'])&&_0x444bc2['writer']['addClass']('ck-suggestion-marker--active',_0x593529),_0x444bc2['writer']['insert'](_0x425c85,_0x593529),_0x444bc2['mapper']['bindElementToMarker'](_0x593529,_0x3726b4['markerName']);}_0x4b0dfe||_0xaf1114||!_0x49d62b||_0x330b23(_0x49d62b);};}class K extends _0x597b86{static get['requires'](){return[_0x42492b];}['init'](){const _0x14fdeb=this['editor'],_0x293e25=_0x14fdeb['plugins']['get']('TrackChangesEditing');_0x293e25['enableCommand']('delete');const _0x155eba=_0x14fdeb['commands']['get']('deleteForward');_0x293e25['enableCommand']('deleteForward',(_0x170fb0,_0x2eb656={})=>{const _0x4f2850=_0x14fdeb['model']['createSelection'](_0x14fdeb['model']['document']['selection']);_0x4f2850['isCollapsed']&&_0x14fdeb['model']['modifySelection'](_0x4f2850,{'direction':'forward','unit':_0x2eb656['unit']});const _0x11c087=_0x4f2850['getFirstRange'](),_0x1d1a15=_0x125deb['fromRange'](_0x11c087);let _0x220b4b;_0x170fb0(_0x2eb656),_0x220b4b='$graveyard'==_0x1d1a15['root']['rootName']?_0x14fdeb['model']['createRange'](_0x11c087['start']):_0x14fdeb['model']['createRange'](_0x1d1a15['start'],_0x1d1a15['end']),_0x1d1a15['detach'](),_0x14fdeb['model']['enqueueChange'](_0x155eba['buffer']['batch'],_0x498b65=>{_0x155eba['buffer']['lock'](),_0x498b65['setSelection'](_0x498b65['createRange'](_0x220b4b['end'])),_0x155eba['buffer']['unlock']();});}),_0x14fdeb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x14fdeb,'merge'),{'priority':'high'}),_0x14fdeb['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1e6bc9,_0x12ba0c,_0x15b43b)=>{_0x15b43b['options']['showSuggestionHighlights']&&De(_0x14fdeb,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1e6bc9,_0x12ba0c,_0x15b43b);},{'priority':'high'}),_0x14fdeb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5e9171,_0x4123b1,_0x358497)=>{const _0x3ff3b5=_0x358497['mapper']['markerNameToElements'](_0x4123b1['markerName']);if(_0x3ff3b5){for(const _0x543d4e of _0x3ff3b5)_0x543d4e['is']('uiElement')&&(_0x358497['mapper']['unbindElementFromMarkerName'](_0x543d4e,_0x4123b1['markerName']),_0x358497['writer']['remove'](_0x543d4e));}},{'priority':'high'});}}class W extends _0x597b86{['afterInit'](){const _0x1a48bc=this['editor'];if(!_0x1a48bc['plugins']['has']('ListEditing'))return;const _0x4d7374=_0x1a48bc['locale'],_0x2e906c=_0x1a48bc['plugins']['get']('TrackChangesEditing'),_0xa361bd=_0x1a48bc['plugins']['has']('TodoListEditing'),_0x23d54b=!!_0x1a48bc['config']['get']('list.multiBlock');function _0x2696c6(_0x2ae65a){return{'type':'format','content':''+o(_0x4d7374,'*Set\x20format:*\x20%0',_0x2ae65a)};}function _0x2226f6(_0x552d07){return{'type':'format','content':''+o(_0x4d7374,'*Remove\x20format:*\x20%0',_0x552d07)};}_0x2e906c['enableDefaultAttributesIntegration']('numberedList'),_0x2e906c['enableDefaultAttributesIntegration']('bulletedList'),_0x2e906c['enableDefaultAttributesIntegration']('customNumberedList'),_0x2e906c['enableDefaultAttributesIntegration']('customBulletedList'),_0x2e906c['enableDefaultAttributesIntegration']('indentList'),_0x2e906c['enableDefaultAttributesIntegration']('outdentList'),_0x2e906c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2e906c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2e906c['registerBlockAttribute']('listItemId'),_0x2e906c['registerBlockAttribute']('listType'),_0x2e906c['registerBlockAttribute']('listIndent'),_0x23d54b&&(_0x2e906c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2e906c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xa361bd&&(_0x2e906c['enableDefaultAttributesIntegration']('todoList'),_0x2e906c['enableDefaultAttributesIntegration']('checkTodoList'),_0x2e906c['registerBlockAttribute']('todoListChecked'),_0x2e906c['descriptionFactory']['registerDescriptionCallback'](_0x48ad6d=>{const {data:_0x294d54}=_0x48ad6d;if(_0x294d54&&'todoListChecked'==_0x294d54['key'])return{'type':'format','content':_0x294d54['newValue']?o(_0x4d7374,'*Check\x20item*'):o(_0x4d7374,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x13a713=>{if(_0x13a713['batch']['isUndo'])return!0x1;let _0x364e04=!0x1;const _0x3b5509=_0x2e906c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c1ed4=>'todoListChecked'===_0x2e906c['_getAttributeKey'](_0x5c1ed4));for(const _0x22d8a2 of _0x3b5509){'todo'!=_0x22d8a2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2e906c['_findSuggestions'](_0x22d8a2['getFirstRange'](),'attribute')['find'](_0x5c3650=>'listType'===_0x2e906c['_getAttributeKey'](_0x5c3650['suggestion']))||(_0x13a713['removeMarker'](_0x22d8a2['getFirstMarker']()),_0x364e04=!0x0));}return _0x364e04;})),_0x2e906c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4d7374,'FORMAT_INDENT'));const _0x1c99ad={'type':'format','content':''};_0x2e906c['descriptionFactory']['registerDescriptionCallback'](_0x1f59bc=>{const {data:_0x529e29}=_0x1f59bc;if(!_0x529e29||'listType'!=_0x529e29['key'])return;let _0x274fba=_0x1f59bc['head'];for(;_0x274fba;){if(_0x274fba['data']&&(('listStyle'==_0x274fba['data']['key']||'listMarkerStyle'==_0x274fba['data']['key'])&&(_0x274fba['data']['newValue']&&'default'!=_0x274fba['data']['newValue']||'default'!=_0x274fba['data']['oldValue']&&!_0x529e29['newValue'])||!_0x23d54b&&_0x274fba['data']['key']==m))return _0x1c99ad;_0x274fba=_0x274fba['next'];}if(null==_0x529e29['newValue'])switch(_0x529e29['oldValue']){case'bulleted':return _0x2226f6(o(_0x4d7374,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2226f6(o(_0x4d7374,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2226f6(o(_0x4d7374,'ELEMENT_TODO_LIST'));}switch(_0x529e29['newValue']){case'bulleted':return _0x2696c6(o(_0x4d7374,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2696c6(o(_0x4d7374,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2696c6(o(_0x4d7374,'ELEMENT_TODO_LIST'));}}),_0x2e906c['descriptionFactory']['registerDescriptionCallback'](_0x39a0c0=>{const {data:_0x5acd47}=_0x39a0c0;if(_0x5acd47&&'listIndent'==_0x5acd47['key'])return null==_0x5acd47['newValue']||null==_0x5acd47['oldValue']&&0x0==_0x5acd47['newValue']?_0x1c99ad:void 0x0;}),_0x2e906c['descriptionFactory']['registerDescriptionCallback'](_0x408edd=>{if('attribute'!=_0x408edd['type'])return;const {data:_0x2119b6}=_0x408edd;if(!_0x2119b6||'listItemId'!=_0x2119b6['key'])return;const _0x1bb37e=Te(_0x408edd);return'newValue'==_0x1bb37e?{'type':'format','content':o(_0x4d7374,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1bb37e?{'type':'format','content':o(_0x4d7374,'*Split:*\x20list\x20item')}:_0x1c99ad;}),_0x1a48bc['model']['document']['registerPostFixer'](_0x34fab1=>this['listItemIdFixer'](_0x34fab1)),_0x1a48bc['model']['document']['registerPostFixer'](_0x540ead=>this['noTrackChangesFixer'](_0x540ead)),_0x1a48bc['model']['document']['on']('change:data',(_0x1bc5aa,_0x51838c)=>{if(_0x51838c['isUndo']||!_0x51838c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x232186){if(_0x232186['batch']['isUndo']||!_0x232186['batch']['isLocal'])return!0x1;let _0x43abad=!0x1;const _0x494788=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e951f=>_0x4e951f['data']&&'listItemId'==_0x4e951f['data']['key'])['filter'](_0x52e0cd=>_0x52e0cd['data']['newValue']&&_0x52e0cd['data']['oldValue']);for(const _0x71bc96 of _0x494788)Te(_0x71bc96)||(_0x232186['removeMarker'](_0x71bc96['getFirstMarker']()),_0x43abad=!0x0);return _0x43abad;}['noTrackChangesFixer'](_0x477b05){if(_0x477b05['batch']['isUndo']||!_0x477b05['batch']['isLocal'])return!0x1;const _0x2d0ca2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2d0ca2['trackChangesCommand']['value'])return!0x1;let _0x29e728=!0x1;const _0x56b054=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x20fdcd=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x14cdbe=>'attribute'==_0x14cdbe['type'])['filter'](_0x6220d3=>_0x56b054['includes'](_0x6220d3['attributeKey']));if(0x0==_0x20fdcd['length'])return _0x29e728;for(const _0x5df39f of _0x20fdcd){const _0x16cd85=_0x2d0ca2['_findSuggestions'](_0x5df39f['range'],'attribute')['filter'](_0x955bd=>!_0x955bd['meta']['isNextTo'])['map'](_0x1b1b0b=>_0x1b1b0b['suggestion'])['filter'](_0x56d8bd=>{const _0x4fd0af=_0x2d0ca2['_getAttributeKey'](_0x56d8bd);return _0x56b054['includes'](_0x4fd0af);});if(_0x16cd85['length']){for(const _0x2a8931 of _0x16cd85)_0x477b05['removeMarker'](_0x2a8931['getFirstMarker']());_0x29e728=!0x0;}}return _0x29e728;}['assureChains'](){const _0x2f8693=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcc07a4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x460978;const _0x448be1=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xe531bb=>{if(_0xe531bb['data']['oldRange']||!_0xe531bb['data']['newRange'])return null;if(!_0xe531bb['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x25efb2}=_0x2f8693['_splitMarkerName'](_0xe531bb['name']);if(!_0x2f8693['hasSuggestion'](_0x25efb2))return null;const _0x5634a2=_0x2f8693['getSuggestion'](_0x25efb2);return _0xcc07a4['includes'](_0x5634a2['data']['key']);})['map'](_0x173fbc=>{const {id:_0x376230}=_0x2f8693['_splitMarkerName'](_0x173fbc['name']),_0x40477c=_0x2f8693['getSuggestion'](_0x376230);return _0x460978=_0x40477c['attributes']['groupId'],_0x40477c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x448be1['size'])return;const _0x37fb70=_0x2f8693['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x492a73=>'attribute'==_0x492a73['type']&&_0x492a73['data']&&_0xcc07a4['includes'](_0x492a73['data']['key'])&&_0x492a73['attributes']['groupId']!=_0x460978)['map'](_0x320654=>({'listItem':_0x320654['getFirstRange']()['start']['nodeAfter'],'groupId':_0x320654['attributes']['groupId']})),_0x4e3fa5=new Set();for(const {groupId:_0x10c0e3,listItem:_0x8ddcf4}of _0x37fb70)_0x448be1['has'](_0x8ddcf4)&&_0x4e3fa5['add'](_0x10c0e3);for(const _0x28e941 of _0x2f8693['getSuggestions']())_0x4e3fa5['has'](_0x28e941['attributes']['groupId'])&&_0x28e941['setAttribute']('groupId',_0x460978);}['_supportLegacySuggestions'](){const _0x44fb9f=this['editor'],_0x548546=_0x44fb9f['locale'],_0x4df6e4=_0x44fb9f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4df6e4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3e7242,_0xa4bdbf){const _0x15f05f=[];for(let _0x3c94db of _0x3e7242)_0x3c94db['start']['nodeAfter']===_0x3c94db['end']['parent']&&(_0x3c94db=_0x44fb9f['model']['createRange'](_0x44fb9f['model']['createPositionAt'](_0x3c94db['start']['nodeAfter'],0x0))),_0x15f05f['push'](_0x3c94db);_0x44fb9f['model']['change'](_0x4c326c=>{const _0x6fbf38=_0x44fb9f['model']['document']['selection'],_0x5bbbde=Array['from'](_0x6fbf38['getRanges']())['map'](_0x141220=>_0x125deb['fromRange'](_0x141220));_0x4c326c['setSelection'](_0x15f05f),_0x44fb9f['commands']['get'](_0xa4bdbf['commandName'])['refresh'](),_0xa4bdbf['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x44fb9f['execute'](_0xa4bdbf['commandName'],..._0xa4bdbf['commandParams']),_0x4c326c['setSelection'](_0x5bbbde);for(const _0x2ce94f of _0x5bbbde)_0x2ce94f['detach']();});}),_0x4df6e4['descriptionFactory']['registerElementLabel'](function(_0x2c433c){const _0x3a58ad=!_0x44fb9f['model']['schema']['isObject'](_0x2c433c),_0x4a7772=_0x2c433c['previousSibling'],_0x50894e=_0x2c433c['nextSibling'],_0x5517b3=_0x2c433c['getAttribute']('listItemId'),_0x3e71b9=!_0x4a7772||_0x4a7772['getAttribute']('listItemId')!==_0x5517b3,_0x2856db=!_0x50894e||_0x50894e['getAttribute']('listItemId')!==_0x5517b3;return _0x3a58ad&&Boolean(_0x5517b3)&&_0x3e71b9&&_0x2856db;},_0x82efea=>o(_0x548546,'ELEMENT_LIST_ITEM',_0x82efea));}['_registerLegacyDescription'](){const _0x5ed3b0=this['editor'],_0x2b4c17=_0x5ed3b0['locale'];function _0x3a98ee(_0x16a7a3){const _0xbd7880=_0x5ed3b0['commands']['get']('bulletedList')['value'],_0x54b27f=_0x5ed3b0['commands']['get']('numberedList')['value'];return'numberedList'===_0x16a7a3?_0xbd7880:_0x54b27f;}_0x5ed3b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x270afa){if('formatBlock'!=_0x270afa['type'])return;const {data:_0x5441ee}=_0x270afa;if(!_0x5441ee)return;let _0x588291,_0x5859a4,_0x3e2fbc,_0x4da80e;switch(_0x5441ee['commandName']){case'bulletedList':_0x3e2fbc=_0x5441ee['commandParams'][0x0]['forceValue'],_0x4da80e=_0x3a98ee(_0x5441ee['commandName']),_0x588291=_0x3e2fbc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4da80e&&_0x5ed3b0['config']['get']('list.multiBlock')||(_0x588291='*Change\x20to:*\x20%0'),_0x5859a4={'type':'format','content':o(_0x2b4c17,_0x588291,o(_0x2b4c17,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3e2fbc=_0x5441ee['commandParams'][0x0]['forceValue'],_0x4da80e=_0x3a98ee(_0x5441ee['commandName']),_0x588291=_0x3e2fbc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4da80e&&_0x5ed3b0['config']['get']('list.multiBlock')||(_0x588291='*Change\x20to:*\x20%0'),_0x5859a4={'type':'format','content':o(_0x2b4c17,_0x588291,o(_0x2b4c17,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x588291='*Indent:*\x20%0',_0x5859a4={'type':'format','content':o(_0x2b4c17,_0x588291,o(_0x2b4c17,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x588291=function(_0x133841){const _0x1e541e=_0x133841['getFirstRange']();let _0x12f7e1=_0x1e541e['start']['nodeAfter'];for(;_0x12f7e1&&_0x1e541e['containsItem'](_0x12f7e1);){if(_0x12f7e1['getAttribute']('listIndent')>0x0)return!0x1;_0x12f7e1=_0x12f7e1['nextSibling'];}return!0x0;}(_0x270afa)?o(_0x2b4c17,'*Format:*\x20remove\x20from\x20%0',o(_0x2b4c17,function(_0x583bfd){return'ELEMENT_'+_0x583bfd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x270afa))):o(_0x2b4c17,'*Outdent:*\x20%0',o(_0x2b4c17,'ELEMENT_LIST_ITEM')),_0x5859a4={'type':'format','content':_0x588291};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5441ee['multipleBlocks']&&(_0x588291='*Merge:*\x20%0',_0x5859a4={'type':'deletion','content':o(_0x2b4c17,_0x588291,o(_0x2b4c17,'ELEMENT_LIST_ITEM'))});}return _0x5859a4;});}}function Te(_0x450c0a){let _0x1fcbea=_0x450c0a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1fcbea;){const _0xed7f9a=_0x1fcbea['getAttribute']('listItemId');if(!_0xed7f9a)return!0x1;if(_0xed7f9a==_0x450c0a['data']['newValue'])return'newValue';if(_0xed7f9a==_0x450c0a['data']['oldValue'])return'oldValue';_0x1fcbea=_0x1fcbea['previousSibling'];}return!0x1;}class Se extends _0x597b86{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x394f2b=this['editor']['config']['get']('list.properties'),_0x573ceb=this['editor']['plugins']['get']('TrackChangesEditing');_0x394f2b['styles']&&(_0x573ceb['enableDefaultAttributesIntegration']('listStyle'),_0x573ceb['registerBlockAttribute']('listStyle')),_0x394f2b['reversed']&&(_0x573ceb['enableDefaultAttributesIntegration']('listReversed'),_0x573ceb['registerBlockAttribute']('listReversed')),_0x394f2b['startIndex']&&(_0x573ceb['enableDefaultAttributesIntegration']('listStart'),_0x573ceb['registerBlockAttribute']('listStart'));const _0x3dd2c7={'type':'format','content':''};_0x573ceb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5a7aad=this['editor']['locale'];_0x573ceb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5a7aad,'FORMAT_LIST_REVERSED')),_0x573ceb['descriptionFactory']['registerDescriptionCallback'](_0x538251=>{const {data:_0x3ba0e6}=_0x538251;if(_0x3ba0e6&&'listReversed'==_0x3ba0e6['key'])return null==_0x3ba0e6['newValue']||0x0==_0x3ba0e6['newValue']&&null==_0x3ba0e6['oldValue']?_0x3dd2c7:void 0x0;}),_0x573ceb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5a7aad,'FORMAT_LIST_START')),_0x573ceb['descriptionFactory']['registerDescriptionCallback'](_0x270e2a=>{const {data:_0x5179fa}=_0x270e2a;if(_0x5179fa&&'listStart'==_0x5179fa['key'])return null==_0x5179fa['newValue']||0x1==_0x5179fa['newValue']&&null==_0x5179fa['oldValue']?_0x3dd2c7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x184e44=>{if(_0x184e44['batch']['isUndo'])return!0x1;let _0x7366d=!0x1;const _0x2b47d4=_0x573ceb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x317a96=>{const _0x37f231=_0x573ceb['_getAttributeKey'](_0x317a96);return'listStart'==_0x37f231||'listReversed'==_0x37f231;});for(const _0x19e9e3 of _0x2b47d4){const _0x135ad6=_0x19e9e3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x135ad6||'customNumbered'==_0x135ad6)continue;_0x573ceb['_findSuggestions'](_0x19e9e3['getFirstRange'](),'attribute')['find'](_0xf9cc2=>'listType'==_0x573ceb['_getAttributeKey'](_0xf9cc2['suggestion']))||(_0x184e44['removeMarker'](_0x19e9e3['getFirstMarker']()),_0x7366d=!0x0);}return _0x7366d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xb8e7c3){const _0x2f1e51=this['editor']['locale'],{data:_0x444e0a}=_0xb8e7c3,_0x32dafd={'type':'format','content':''};if(!_0x444e0a||'listStyle'!=_0x444e0a['key'])return;if(!_0x444e0a['oldValue'])return'default'==_0x444e0a['newValue']?_0x32dafd:{'type':'format','content':''+o(_0x2f1e51,'*Set\x20format:*\x20%0',o(_0x2f1e51,this['_getTranslationKeyForListStyle'](_0x444e0a['newValue'])))};if(!_0x444e0a['newValue']){if('default'==_0x444e0a['oldValue'])return _0x32dafd;let _0x788d35=_0xb8e7c3['head'];for(;_0x788d35;){if(_0x788d35['data']&&'listType'==_0x788d35['data']['key']&&_0x788d35['data']['newValue'])return _0x32dafd;_0x788d35=_0x788d35['next'];}return{'type':'format','content':''+o(_0x2f1e51,'*Remove\x20format:*\x20%0',o(_0x2f1e51,this['_getTranslationKeyForListStyle'](_0x444e0a['oldValue'])))};}if('default'!=_0x444e0a['newValue'])return{'type':'format','content':''+o(_0x2f1e51,'*Set\x20format:*\x20%0',o(_0x2f1e51,this['_getTranslationKeyForListStyle'](_0x444e0a['newValue'])))};let _0x4b74fa=_0xb8e7c3['head'];for(;_0x4b74fa;){if(_0x4b74fa['data']&&'listType'==_0x4b74fa['data']['key']&&_0x4b74fa['data']['newValue']&&_0x4b74fa['data']['oldValue'])return _0x32dafd;_0x4b74fa=_0x4b74fa['next'];}return{'type':'format','content':o(_0x2f1e51,'*Set\x20format:*\x20%0',o(_0x2f1e51,'ELEMENT_'+_0xb8e7c3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x64bf31=this['editor'],_0x21aca4=_0x64bf31['locale'];_0x64bf31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1271fd=>{if('formatBlock'!=_0x1271fd['type'])return;const {data:_0x4cc4a3}=_0x1271fd;if(!_0x4cc4a3)return;let _0x119cc9,_0x1b96ab;switch(_0x4cc4a3['commandName']){case'listStyle':_0x119cc9='*Change\x20to:*\x20%0',_0x1b96ab={'type':'format','content':o(_0x21aca4,_0x119cc9,o(_0x21aca4,this['_getTranslationKeyForListStyle'](_0x4cc4a3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x119cc9=_0x4cc4a3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1b96ab={'type':'format','content':o(_0x21aca4,_0x119cc9)};break;case'listStart':_0x119cc9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1b96ab={'type':'format','content':o(_0x21aca4,_0x119cc9,_0x4cc4a3['commandParams'][0x0]['startIndex'])};}return _0x1b96ab;});}['_getTranslationKeyForListStyle'](_0x2d98d2){return'ELEMENT_'+function(_0x51aad9){if(_e['includes'](_0x51aad9))return'bulleted';if(Re['includes'](_0x51aad9))return'numbered';return null;}(_0x2d98d2)['toUpperCase']()+'_LIST_'+_0x2d98d2['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x597b86{static get['requires'](){return[_0x32ec3f];}['init'](){const _0x241a33=this['editor'],_0x2f65a3=_0x241a33['plugins']['get']('TrackChangesEditing'),_0x522201=_0x241a33['commands']['get']('enter');_0x2f65a3['enableCommand']('enter',()=>{_0x241a33['model']['change'](_0x9a2a88=>{const _0x110793=_0x241a33['model']['document']['selection'],_0x30806c=_0x110793['getFirstPosition'](),_0x36c916=_0x125deb['fromRange'](_0x110793['getFirstRange']());if(_0x522201['enterBlock'](_0x9a2a88)){const _0x2e2a66=_0x241a33['model']['createPositionAt'](_0x30806c['parent']['nextSibling'],0x0),_0x45b84d=_0x9a2a88['createRange'](_0x30806c,_0x2e2a66);_0x2f65a3['markInsertion'](_0x45b84d);}else _0x9a2a88['setSelection'](_0x9a2a88['createRange'](_0x36c916['end']));_0x36c916['detach'](),_0x522201['fire']('afterExecute',{'writer':_0x9a2a88});});}),_0x241a33['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x241a33,'split'),{'priority':'high'}),_0x241a33['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4a9256,_0x4b06b6,_0x2c8982)=>{const _0x2fa5b7=_0x2c8982['mapper']['markerNameToElements'](_0x4b06b6['markerName']);if(_0x2fa5b7){for(const _0x202fc9 of _0x2fa5b7)_0x202fc9['hasClass']('ck-suggestion-marker-split')&&(_0x2c8982['mapper']['unbindElementFromMarkerName'](_0x202fc9,_0x4b06b6['markerName']),_0x2c8982['writer']['remove'](_0x202fc9));}},{'priority':'high'}),_0x241a33['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x181c26,_0x44a89e,_0x5d4ecd)=>{_0x5d4ecd['options']['showSuggestionHighlights']&&De(_0x241a33,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x181c26,_0x44a89e,_0x5d4ecd);},{'priority':'high'});}}class Y extends _0x597b86{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x438be3=this['editor']['plugins']['get']('TrackChangesEditing');_0x438be3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x438be3['enableCommand']('findNext'),_0x438be3['enableCommand']('findPrevious'),_0x438be3['enableCommand']('replace'),_0x438be3['enableCommand']('replaceAll');}['handleFindCommand'](_0x360300,_0x324c4b,_0xc5c1aa={}){const _0x44a207=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x360300(_0x497c29=>{let _0x1a8c99=('string'==typeof _0x324c4b?_0x44a207['findByTextCallback'](_0x324c4b,_0xc5c1aa):_0x324c4b)(_0x497c29);Array['isArray'](_0x1a8c99)&&(_0x1a8c99={'results':_0x1a8c99,'searchText':'string'==typeof _0x324c4b?_0x324c4b:''});const _0x22daff=_0x1a8c99['results']['filter'](_0x20d15e=>!0x1===this['_isInDeletionRange'](_0x20d15e,_0x497c29['item']));return{..._0x1a8c99,'results':_0x22daff};},_0xc5c1aa);}['_isInDeletionRange'](_0x387921,_0x2f6161){const _0x2e30cb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2f6161,_0x387921['start']),this['editor']['model']['createPositionAt'](_0x2f6161,_0x387921['end']));for(const _0xdf1ee0 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2e30cb['getIntersection'](_0xdf1ee0['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x597b86{['afterInit'](){const _0x4107f8=this['editor']['locale'],_0x5701c7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xd3f9c8,commandName:_0x12647c}of ro)this['editor']['plugins']['has'](_0xd3f9c8)&&(_0x5701c7['enableDefaultAttributesIntegration'](_0x12647c),_0x5701c7['registerInlineAttribute'](_0x12647c));_0x5701c7['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4107f8,'FORMAT_FONT_SIZE')),_0x5701c7['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4107f8,'FORMAT_FONT_FAMILY')),_0x5701c7['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4107f8,'FORMAT_FONT_COLOR')),_0x5701c7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4107f8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c16a1=this['editor'],_0x1ee23e=_0x2c16a1['locale'];_0x2c16a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd900ba=>{const _0x2fb6a4=_0x1ee23e['t'];if('formatInline'!=_0xd900ba['type'])return;const {data:_0x2f320f}=_0xd900ba;if(null!=_0x2f320f){if('fontSize'==_0x2f320f['commandName']){const _0xdbf383=_0x2f320f['commandParams'][0x0]['value'];if(_0xdbf383){const _0x37f580=_0x2fb6a4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x41678a=>_0x41678a['model']==_0xdbf383)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1ee23e,'*Set\x20font\x20size:*\x20%0',_0x37f580)};}return{'type':'format','content':o(_0x1ee23e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2f320f['commandName']){const _0x5585e9=_0x2f320f['commandParams'][0x0]['value'];return _0x5585e9?{'type':'format','content':o(_0x1ee23e,'*Set\x20font\x20family:*\x20%0',_0x5585e9)}:{'type':'format','content':o(_0x1ee23e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2f320f['commandName']){const _0x4d6205=_0x2f320f['commandParams'][0x0]['value'];if(_0x4d6205){const _0x345232=_0x48cf72(this['editor']['config']['get']('fontColor.colors'))['find'](_0xb349c7=>_0xb349c7['model']==_0x4d6205);let _0x148fa9=_0x4d6205,_0x46e564='';return _0x345232&&(_0x148fa9=_0x345232['label'],_0x46e564=_0x2fb6a4(_0x148fa9)['toLowerCase']()),{'type':'format','content':o(_0x1ee23e,'*Set\x20font\x20color:*\x20%0',_0x46e564)['trim'](),'color':{'value':_0x4d6205,'title':_0x46e564||_0x148fa9}};}return{'type':'format','content':o(_0x1ee23e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2f320f['commandName']){const _0x29d5a6=_0x2f320f['commandParams'][0x0]['value'];if(_0x29d5a6){const _0x4addcb=_0x48cf72(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x34b227=>_0x34b227['model']==_0x29d5a6);let _0x4ea147=_0x29d5a6,_0x529dc9='';return _0x4addcb&&(_0x4ea147=_0x4addcb['label'],_0x529dc9=_0x2fb6a4(_0x4ea147)['toLowerCase']()),{'type':'format','content':o(_0x1ee23e,'*Set\x20font\x20background\x20color:*\x20%0',_0x529dc9)['trim'](),'color':{'value':_0x29d5a6,'title':_0x529dc9||_0x4ea147}};}return{'type':'format','content':o(_0x1ee23e,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x597b86{['afterInit'](){const _0x470913=this['editor'],_0x16f1a8=_0x470913['plugins']['get']('TrackChangesEditing'),_0x261a24=_0x470913['commands']['get']('copyFormat'),_0x308012=_0x470913['commands']['get']('pasteFormat');_0x261a24&&_0x308012&&(_0x16f1a8['enableDefaultAttributesIntegration']('pasteFormat'),_0x16f1a8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x45b1f2=this['editor'],_0x2eccf4=_0x45b1f2['locale'];_0x45b1f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13a6d0=>{if('formatBlock'!=_0x13a6d0['type']&&'formatInline'!=_0x13a6d0['type'])return;const {data:_0x10a428}=_0x13a6d0;if(_0x10a428&&'pasteFormat'===_0x10a428['commandName']){const _0x5e0deb=[],_0x2fdaba=_0x10a428['commandParams'][0x0];for(const [_0xfb97e2,_0x95c523]of Object['entries'](_0x2fdaba))_0x5e0deb['push'](so(_0x45b1f2,_0xfb97e2,_0x95c523));return _0x5e0deb['length']?{'type':'format','content':o(_0x2eccf4,'*Set\x20format\x20to:*\x20%0',_0x5e0deb['join'](',\x20'))}:{'type':'format','content':o(_0x2eccf4,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1e5bee,_0x487455,_0x123e67){const _0x574049=_0x1e5bee['locale']['t'],_0xfa0ee0=_0x487455['split'](/(?=[A-Z])/)['join']('\x20'),_0x5604e3=_0x574049(_0xfa0ee0['charAt'](0x0)['toUpperCase']()+_0xfa0ee0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x123e67)return _0x5604e3;if('fontColor'===_0x487455||'fontBackgroundColor'===_0x487455){const _0x3e0ac2=_0x48cf72(_0x1e5bee['config']['get']('fontColor.colors'))['find'](_0xb14d1=>_0xb14d1['model']==_0x123e67);return _0x5604e3+'\x20('+(_0x3e0ac2?_0x574049(_0x3e0ac2['label'])['toLowerCase']():_0x123e67)+')';}if('fontSize'===_0x487455&&isNaN(parseFloat(_0x123e67))){const _0x4553dc=_0x1e5bee['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1e5bee['config']['get']('fontSize.options'))['find'](_0xfefcee=>_0xfefcee['model']==_0x123e67);return _0x5604e3+'\x20('+(_0x4553dc?_0x574049(_0x4553dc['title'])['toLowerCase']():_0x123e67)+')';}return _0x5604e3+'\x20('+_0x123e67+')';}class nt extends _0x597b86{['_headingOptions'];['afterInit'](){const _0x1adf99=this['editor'];if(!_0x1adf99['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1adf99['config']['get']('heading.options');const _0x4db41c=_0x1adf99['locale'],_0x570fdb=_0x1adf99['plugins']['get']('TrackChangesEditing');_0x570fdb['enableDefaultAttributesIntegration']('heading');for(const _0x49ec89 of this['_headingOptions'])'paragraph'!=_0x49ec89['model']&&_0x570fdb['descriptionFactory']['registerElementLabel'](_0x49ec89['model'],_0x204947=>{const _0x578ea3=this['_getHeadingLevel'](_0x49ec89['model']);return null!==_0x578ea3?_0x170647(_0x204947,_0x578ea3):_0x2bd0d4(_0x204947,_0x49ec89['title']);});function _0x170647(_0x197db4,_0x503f4b){return o(_0x4db41c,'ELEMENT_HEADING',[_0x197db4,_0x503f4b]);}function _0x2bd0d4(_0xafe550,_0x103180){return o(_0x4db41c,'ELEMENT_HEADING_CUSTOM',[_0xafe550,_0x103180]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa7297f=this['editor'],_0x1c00ad=_0xa7297f['locale'];function _0x2c8dfd(_0x2bb172,_0x342954){return o(_0x1c00ad,'ELEMENT_HEADING_CUSTOM',[_0x2bb172,_0x342954]);}_0xa7297f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x842dee=>{if('formatBlock'!=_0x842dee['type'])return;const {data:_0x3292ef}=_0x842dee;if(_0x3292ef&&'heading'==_0x3292ef['commandName']){const _0x537649=_0x3292ef['commandParams'][0x0]['value'],_0x43bc07=this['_getHeadingLevel'](_0x537649);if(null!==_0x43bc07)return{'type':'format','content':o(_0x1c00ad,'*Change\x20to:*\x20%0',(_0x15d7a3=0x1,_0x495f32=_0x43bc07,o(_0x1c00ad,'ELEMENT_HEADING',[_0x15d7a3,_0x495f32])))};const _0x4a3442=this['_headingOptions']['find'](_0x1579da=>_0x1579da['model']===_0x537649)['title'];return{'type':'format','content':o(_0x1c00ad,'*Change\x20to:*\x20%0',_0x2c8dfd(0x1,_0x4a3442))};}var _0x15d7a3,_0x495f32;});}['_getHeadingLevel'](_0x52d2d4){const _0x5f41a3=_0x52d2d4['match'](/^heading(\d+)/);if(_0x5f41a3)return _0x5f41a3[0x1];const _0x451c37=this['_headingOptions']?.['find'](_0x557251=>_0x557251['model']==_0x52d2d4);if(_0x451c37&&_0x451c37['view']){const _0x4a9df2=_0x451c37['view'],_0x171da1=(_0x4a9df2['name']??_0x4a9df2)['match'](/^h(\d+)/);if(_0x171da1)return _0x171da1[0x1];}return null;}}class it extends _0x597b86{['afterInit'](){const _0x6b19ae=this['editor'];if(!_0x6b19ae['plugins']['has']('HighlightEditing'))return;const _0x3d9706=_0x6b19ae['plugins']['get']('TrackChangesEditing'),_0x123380=_0x6b19ae['locale'];_0x3d9706['enableDefaultAttributesIntegration']('highlight'),_0x3d9706['registerInlineAttribute']('highlight'),_0x3d9706['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x123380,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc01704=this['editor'],_0x2bca3a=_0xc01704['locale'];_0xc01704['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ec891=>{if('formatInline'!=_0x5ec891['type'])return;const {data:_0x45775e}=_0x5ec891;if(_0x45775e&&'highlight'==_0x45775e['commandName']){const _0x1feb35=_0x2bca3a['t'],_0x5ab72c=_0x45775e['commandParams'][0x0]['value'];if(_0x5ab72c){const _0x24c540=_0xc01704['config']['get']('highlight.options')['find'](_0x47c589=>_0x47c589['model']==_0x5ab72c),_0x5e293f=_0x1feb35(_0x24c540['title'])['toLowerCase']();return{'type':'format','content':o(_0x2bca3a,'*Set\x20highlight:*\x20%0',_0x5e293f),'color':{'value':_0x24c540['color'],'title':_0x24c540['title']}};}return{'type':'format','content':o(_0x2bca3a,'*Remove\x20highlight*',o(_0x2bca3a,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x597b86{['afterInit'](){const _0x4a2f49=this['editor'];if(!_0x4a2f49['plugins']['has']('HorizontalLineEditing'))return;_0x4a2f49['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x449599=_0x4a2f49['plugins']['get']('TrackChangesEditing'),_0x3be75a=_0x4a2f49['locale'];_0x449599['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1066a6=>o(_0x3be75a,'ELEMENT_HORIZONTAL_LINE',_0x1066a6)),_0x4a2f49['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x194c52,{writer:_0x2739ee,options:_0x2430d6})=>{if(!_0x2430d6['showSuggestionHighlights'])return null;const _0x40628f=_0x2739ee['createContainerElement']('div'),_0x23585e=_0x2739ee['createEmptyElement']('hr');return _0x2739ee['addClass']('ck-horizontal-line',_0x40628f),_0x2739ee['insert'](_0x2739ee['createPositionAt'](_0x40628f,0x0),_0x23585e),_0x40628f;},'converterPriority':'high'});}}class st extends _0x597b86{['afterInit'](){const _0x1dec3b=this['editor'];if(!_0x1dec3b['plugins']['has']('HtmlEmbed'))return;const _0x5b285a=_0x1dec3b['plugins']['get']('TrackChangesEditing'),_0x4adcac=_0x1dec3b['locale'];_0x5b285a['descriptionFactory']['registerElementLabel']('rawHtml',_0x1aa6ed=>o(_0x4adcac,'ELEMENT_HTML_EMBED',_0x1aa6ed)),_0x5b285a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5b285a['registerBlockAttribute']('value'),_0x5b285a['descriptionFactory']['registerDescriptionCallback'](_0x21709e=>{if('attribute'!=_0x21709e['type'])return;const {data:_0x25af8b}=_0x21709e;if(_0x25af8b&&'value'==_0x25af8b['key']&&_0x21709e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2f62fe=o(_0x4adcac,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4adcac,'*Change\x20%0\x20content*',_0x2f62fe)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3761b3=this['editor'],_0x4a0640=_0x3761b3['locale'];_0x3761b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57e2d0=>{if('formatBlock'!=_0x57e2d0['type'])return;const {data:_0x16f7dd}=_0x57e2d0;if(_0x16f7dd&&'htmlEmbed'==_0x16f7dd['commandName']){const _0x503072=o(_0x4a0640,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4a0640,'*Change\x20%0\x20content*',_0x503072)};}});}}class ot extends _0x597b86{['afterInit'](){const _0xeb81e0=this['editor'];if(!_0xeb81e0['plugins']['has']('ImageEditing'))return;const _0x21d544=_0xeb81e0['plugins']['get']('TrackChangesEditing'),_0x5165ad=_0xeb81e0['plugins']['get']('ImageUtils'),_0x9f9ac6=_0xeb81e0['locale'];_0x21d544['enableCommand']('insertImage'),_0x21d544['descriptionFactory']['registerElementLabel']('imageBlock',_0x4cd54f=>o(_0x9f9ac6,'ELEMENT_IMAGE',_0x4cd54f)),_0x21d544['descriptionFactory']['registerElementLabel']('imageInline',_0x1e68b9=>o(_0x9f9ac6,'ELEMENT_INLINE_IMAGE',_0x1e68b9)),_0x21d544['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x9f9ac6,'ELEMENT_CAPTION')),_0xeb81e0['plugins']['has']('ImageUploadEditing')&&_0x21d544['enableCommand']('uploadImage'),_0xeb81e0['plugins']['has']('ImageBlockEditing')&&_0xeb81e0['plugins']['has']('ImageInlineEditing')&&(_0x21d544['enableCommand']('imageTypeInline',(_0xe630a1,_0x2381b8)=>{const _0x3b3b64=_0x5165ad['getClosestSelectedImageElement'](_0xeb81e0['model']['document']['selection']);_0xeb81e0['model']['change'](()=>{_0x21d544['markBlockFormat'](_0x3b3b64,{'commandName':'imageTypeInline','commandParams':[_0x2381b8]},[],'convertBlockImageToInline');});}),_0x21d544['enableCommand']('imageTypeBlock',(_0x102913,_0x54219b)=>{_0xeb81e0['model']['change'](_0x1fcbc9=>{let _0x180a07=_0x5165ad['getClosestSelectedImageElement'](_0xeb81e0['model']['document']['selection']),_0x33346d=_0x1fcbc9['createRangeOn'](_0x180a07);const _0x31d8e2=_0x146da2['fromPosition'](_0x33346d['start'],'toPrevious'),_0x2b3d63=_0x146da2['fromPosition'](_0x33346d['end'],'toNext');_0x21d544['forceDefaultExecution'](()=>_0x102913(_0x54219b)),_0x180a07=_0x5165ad['getClosestSelectedImageElement'](_0xeb81e0['model']['document']['selection']),_0x33346d=_0x1fcbc9['createRangeOn'](_0x180a07);const _0x2092a1=_0x1fcbc9['createRange'](_0x31d8e2,_0x2b3d63);_0x31d8e2['detach'](),_0x2b3d63['detach'](),_0x21d544['markBlockFormat'](_0x180a07,{'commandName':'imageTypeInline','commandParams':[_0x54219b]},[],'convertInlineImageToBlock'),_0x2092a1['start']['isBefore'](_0x33346d['start'])&&_0x21d544['markInsertion'](_0x1fcbc9['createRange'](_0x2092a1['start'],_0x33346d['start']),'convertInlineImageToBlock'),_0x33346d['end']['isBefore'](_0x2092a1['end'])&&_0x21d544['markInsertion'](_0x1fcbc9['createRange'](_0x33346d['end'],_0x2092a1['end']),'convertInlineImageToBlock');});}),_0x21d544['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x21d544['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x21d544['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x21d544['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x21d544['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x21d544['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4201dd])=>{const _0x139db4=_0x21d544['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2faa6c=_0x4201dd['start'],_0x5a64aa=_0x4201dd['end'];const _0x24e082=_0xeb81e0['model']['schema']['getNearestSelectionRange'](_0x2faa6c,'backward'),_0x360fde=_0xeb81e0['model']['schema']['getNearestSelectionRange'](_0x5a64aa,'forward');_0x24e082['isCollapsed']&&(_0x2faa6c=_0x24e082['start']),_0x360fde['isCollapsed']&&(_0x5a64aa=_0x360fde['end']),_0x139db4([_0xeb81e0['model']['createRange'](_0x2faa6c,_0x5a64aa)]);}),_0x21d544['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x228044),_0x21d544['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x228044)),_0xeb81e0['plugins']['has']('ImageCaptionEditing')&&(_0x21d544['enableCommand']('toggleImageCaption',(_0x108eb3,_0x13fffb)=>{const _0x9b218=_0xeb81e0['plugins']['get']('ImageCaptionUtils');let _0x588a63=_0x5165ad['getClosestSelectedImageElement'](_0xeb81e0['model']['document']['selection']),_0x37e3ab=_0x9b218['getCaptionFromImageModelElement'](_0x588a63);_0xeb81e0['model']['change'](()=>{if(_0x37e3ab)return void _0x21d544['markDeletion'](_0xeb81e0['model']['createRangeOn'](_0x37e3ab));const _0x2191f9=_0x5165ad['isBlockImage'](_0x588a63);_0x108eb3(_0x13fffb),_0x588a63=_0x5165ad['getClosestSelectedImageElement'](_0xeb81e0['model']['document']['selection']),_0x37e3ab=_0x9b218['getCaptionFromImageModelElement'](_0x588a63),_0x21d544['markInsertion'](_0xeb81e0['model']['createRangeOn'](_0x37e3ab),_0x2191f9?null:'imageCaption');});}),_0x21d544['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x228044));const _0x1974d7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x14417a(_0x99cd3f,_0x5f4d29){const _0x4b698d=_0x1974d7['findIndex'](({type:_0x2fb968,subType:_0x18249c})=>_0x99cd3f['type']==_0x2fb968&&_0x99cd3f['subType']==_0x18249c),_0x303e51=_0x1974d7['findIndex'](({type:_0x31bb03,subType:_0x57c3d8})=>_0x5f4d29['type']==_0x31bb03&&_0x5f4d29['subType']==_0x57c3d8);if(_0x4b698d<0x0||_0x303e51<0x0)return!0x1;const _0x507572=_0x99cd3f['getFirstRange'](),_0x4ea825=_0x5f4d29['getFirstRange']();if((0x0==_0x4b698d||0x1==_0x4b698d)&&0x2==_0x303e51&&_0x507572['isIntersecting'](_0x4ea825))return!0x0;if(0x2==_0x4b698d&&0x3==_0x303e51){const _0x20cbe2=_0x21d544['_findSuggestions'](_0x507572,'insertion')['filter'](({suggestion:_0x437f8a,meta:_0x20a9d6})=>_0x20a9d6['isOwn']&&'convertInlineImageToBlock'==_0x437f8a['subType']);if(_0x20cbe2['length']>0x1&&_0x4ea825['end']['isEqual'](_0x507572['start']))return!0x0;if(0x1==_0x20cbe2['length']&&(_0x507572['start']['isEqual'](_0x4ea825['end'])||_0x507572['end']['isEqual'](_0x4ea825['start'])))return!0x0;}if(0x3==_0x4b698d&&0x3==_0x303e51&&_0x507572['start']['isBefore'](_0x4ea825['start'])){const _0x2d45b5=_0x507572['end']['nodeAfter'],_0x5b91e3=_0x4ea825['start']['nodeBefore'];return _0x5165ad['isBlockImage'](_0x2d45b5)&&_0x2d45b5===_0x5b91e3;}return!0x1;}function _0x228044(_0xa6c42d,_0x14b078){return _0x14417a(_0xa6c42d,_0x14b078)?[_0xa6c42d,_0x14b078]:_0x14417a(_0x14b078,_0xa6c42d)?[_0x14b078,_0xa6c42d]:null;}_0xeb81e0['plugins']['has']('ImageResize')&&(_0x21d544['enableDefaultAttributesIntegration']('resizeImage'),_0x21d544['registerBlockAttribute']('resizedWidth'),_0x21d544['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x9f9ac6,'FORMAT_IMAGE_SIZE'))),_0xeb81e0['plugins']['has']('ImageTextAlternativeEditing')&&(_0x21d544['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x21d544['registerBlockAttribute']('alt')),_0x21d544['descriptionFactory']['registerDescriptionCallback'](_0x395897=>{if(!!_0x1974d7['find'](({type:_0x391728,subType:_0x3fd8b8})=>_0x395897['type']==_0x391728&&_0x395897['subType']==_0x3fd8b8))return _0x395897['previous']?{}:void 0x0;}),_0x21d544['descriptionFactory']['registerDescriptionCallback'](_0x310d17=>{if('insertion'==_0x310d17['type']||'deletion'==_0x310d17['type']){const _0x56dce2=_0x310d17['getContainedElement']();if(_0x56dce2&&_0x56dce2['is']('element','caption'))return{'type':'insertion'==_0x310d17['type']?'addObject':'removeObject','element':_0x56dce2,'quantity':0x1};}}),_0x21d544['descriptionFactory']['registerDescriptionCallback'](_0x117072=>'formatBlock'==_0x117072['type']&&'convertInlineImageToBlock'==_0x117072['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x117072['type']&&'convertBlockImageToInline'==_0x117072['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x21d544['descriptionFactory']['registerDescriptionCallback'](_0x4b484b=>{if('attribute'!=_0x4b484b['type'])return;const {data:_0x4e26d3}=_0x4b484b;if(!_0x4e26d3||'alt'!=_0x4e26d3['key'])return;const _0x5ac278=_0x4e26d3['newValue'];return _0x5ac278?{'type':'format','content':o(_0x9f9ac6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5ac278+'\x22')}:{'type':'format','content':o(_0x9f9ac6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fe09c=this['editor'],_0x22543f=_0x1fe09c['locale'];_0x1fe09c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52c2da=>{if('formatBlock'!=_0x52c2da['type']&&'formatInline'!=_0x52c2da['type'])return;const {data:_0x228884}=_0x52c2da;if(_0x228884){if('imageTextAlternative'==_0x228884['commandName']){const _0x1442a4=_0x228884['commandParams'][0x0]['newValue'];return _0x1442a4?{'type':'format','content':o(_0x22543f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1442a4+'\x22')}:{'type':'format','content':o(_0x22543f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x228884['commandName']){const _0x52c889=_0x228884['commandParams'][0x0]['width'];return _0x52c889?{'type':'format','content':o(_0x22543f,'*Set\x20image\x20width:*\x20%0',_0x52c889)}:{'type':'format','content':o(_0x22543f,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x597b86{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x19f961=this['editor']['locale'],_0x1cc7e7=this['editor']['plugins']['get']('TrackChangesEditing');_0x1cc7e7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1cc7e7['registerBlockAttribute']('src'),_0x1cc7e7['descriptionFactory']['registerDescriptionCallback'](_0x3f38e5=>{if('attribute'!=_0x3f38e5['type'])return;const {data:_0x1fa9ce}=_0x3f38e5;return _0x1fa9ce&&'src'==_0x1fa9ce['key']?_0x1fa9ce['newValue']&&_0x1fa9ce['oldValue']?{'type':'format','content':o(_0x19f961,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xa200c0=this['editor']['plugins']['get']('TrackChangesEditing');_0xa200c0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xa200c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xa200c0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xa200c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x401bdc=this['editor'],_0x2ebefc=_0x401bdc['locale'];_0x401bdc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41bd54=>{if('formatBlock'!=_0x41bd54['type']&&'formatInline'!=_0x41bd54['type'])return;const {data:_0x3484e7}=_0x41bd54;if(!_0x3484e7||'replaceImageSource'!=_0x3484e7['commandName'])return;return{'type':'format','content':o(_0x2ebefc,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x597b86{['afterInit'](){const _0x36df52=this['editor'];if(!_0x36df52['plugins']['has']('ImageStyleEditing'))return;const _0x5023ce=_0x36df52['plugins']['get']('TrackChangesEditing'),_0x20d649=_0x36df52['plugins']['get']('ImageUtils'),_0x36c720={};_0x5023ce['enableCommand']('imageStyle',(_0x240176,_0xd5cb84)=>{const _0x5a673f=_0x36df52['plugins']['get']('Users')['me'],_0x7bf52c=_0x36df52['commands']['get']('imageStyle');let _0x27c12d=_0x20d649['getClosestSelectedImageElement'](_0x36df52['model']['document']['selection']),_0x149c42=_0x36df52['model']['createRangeOn'](_0x27c12d),_0x4b81bd=_0x7bf52c['value'];if(_0x4b81bd==_0xd5cb84['value'])return;const _0x5bf276={'commandName':'imageStyle','commandParams':[_0xd5cb84],'formatGroupId':_0x226d2f()};_0x36df52['model']['change'](()=>{if(_0x5023ce['getSuggestions']()['filter'](_0x287079=>_0x287079['isInContent']&&_0x5a673f==_0x287079['author']&&('formatBlock'==_0x287079['type']||'formatInline'==_0x287079['type'])&&('imageStylePreApply'==_0x287079['subType']||'imageStylePostApply'==_0x287079['subType'])&&_0x287079['getFirstRange']()['isEqual'](_0x149c42))['forEach'](_0x1216d4=>_0x5023ce['discardSuggestion'](_0x1216d4['head'])),_0x27c12d=_0x20d649['getClosestSelectedImageElement'](_0x36df52['model']['document']['selection']),_0x149c42=_0x36df52['model']['createRangeOn'](_0x27c12d),_0x7bf52c['refresh'](),_0x36df52['commands']['get']('imageTypeInline')['refresh'](),_0x36df52['commands']['get']('imageTypeBlock')['refresh'](),_0x4b81bd=_0x7bf52c['value'],_0x4b81bd!=_0xd5cb84['value'])return _0x20d649['isInlineImage'](_0x27c12d)&&_0x7bf52c['shouldConvertImageType'](_0xd5cb84['value'],_0x27c12d)?(_0x240176({..._0xd5cb84,'setImageSizes':!0x1}),_0x27c12d=_0x20d649['getClosestSelectedImageElement'](_0x36df52['model']['document']['selection']),void _0x5023ce['markBlockFormat'](_0x27c12d,{..._0x5bf276,'commandReversedParams':[{'value':_0x4b81bd||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x20d649['isBlockImage'](_0x27c12d)?_0x5023ce['markBlockFormat'](_0x27c12d,_0x5bf276,[],'imageStylePostApply'):_0x5023ce['markInlineFormat'](_0x149c42,_0x5bf276,'imageStylePostApply'));});});for(const _0x341b7b of _0x36df52['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x36c720[_0x341b7b['name']]=_0x341b7b['title']['toLowerCase']();_0x5023ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5023ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5023ce['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5023ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3798e8])=>{_0x20d649['setImageNaturalSizeAttributes'](_0x3798e8['getContainedElement']());}),_0x5023ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x41ab28,_0x3aef3e)=>{_0x5023ce['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x41ab28,{'commandName':_0x3aef3e['commandName'],'commandParams':_0x3aef3e['commandReversedParams']});}),_0x5023ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4744d2,_0x406427){if(_0x26c735(_0x4744d2,_0x406427))return[_0x4744d2,_0x406427];if(_0x26c735(_0x406427,_0x4744d2))return[_0x406427,_0x4744d2];return null;});const _0x7541c1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x26c735(_0x14214c,_0x8f2eb0){const _0x211a11=_0x7541c1['findIndex'](({type:_0x5d2e71,subType:_0x9d466d})=>_0x14214c['type']==_0x5d2e71&&_0x14214c['subType']==_0x9d466d),_0x2ff456=_0x7541c1['findIndex'](({type:_0x42f89e,subType:_0x1c2b03})=>_0x8f2eb0['type']==_0x42f89e&&_0x8f2eb0['subType']==_0x1c2b03);if(_0x211a11<0x0||_0x2ff456<0x0)return!0x1;const _0x4e2c58=_0x14214c['getFirstRange'](),_0x5d8614=_0x8f2eb0['getFirstRange']();if((0x0==_0x211a11||0x1==_0x211a11)&&0x2==_0x2ff456&&_0x4e2c58['isIntersecting'](_0x5d8614))return!0x0;if(0x2==_0x211a11&&0x3==_0x2ff456){const _0x70f373=_0x5023ce['_findSuggestions'](_0x4e2c58,'insertion')['filter'](({suggestion:_0x1720d7,meta:_0x3a38f9})=>_0x3a38f9['isOwn']&&'convertInlineImageToBlock'==_0x1720d7['subType']);if(_0x70f373['length']>0x1&&_0x5d8614['end']['isEqual'](_0x4e2c58['start']))return!0x0;if(0x1==_0x70f373['length']&&(_0x4e2c58['start']['isEqual'](_0x5d8614['end'])||_0x4e2c58['end']['isEqual'](_0x5d8614['start'])))return!0x0;}if(0x3==_0x211a11&&0x3==_0x2ff456&&_0x4e2c58['start']['isBefore'](_0x5d8614['start'])){const _0x564151=_0x4e2c58['end']['nodeAfter'],_0x330dd1=_0x5d8614['start']['nodeBefore'];return _0x20d649['isBlockImage'](_0x564151)&&_0x564151===_0x330dd1;}return!0x1;}_0x36df52['model']['document']['registerPostFixer'](()=>{let _0x4ddfc7=!0x1;const _0xffb20d=Array['from'](_0x36df52['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x223ce4,data:_0x1bd818}of _0xffb20d){const {group:_0x33eadf,type:_0x2b31e3,subType:_0x3db6f9,id:_0x148b4c}=_0x5023ce['_splitMarkerName'](_0x223ce4);if('suggestion'==_0x33eadf&&_0x5023ce['hasSuggestion'](_0x148b4c)){if('formatBlock'==_0x2b31e3&&('imageStylePreApply'==_0x3db6f9||'imageStylePostApply'==_0x3db6f9)){const _0x4c708a=_0x5023ce['getSuggestion'](_0x148b4c);if(_0x1bd818['newRange']){const _0x1b9d11=_0x4c708a['getFirstRange']()['getContainedElement']();if(_0x20d649['isBlockImage'](_0x1b9d11))continue;_0x5023ce['discardSuggestion'](_0x4c708a),_0x4ddfc7=!0x0;}}if('insertion'==_0x2b31e3&&'imageCaption'==_0x3db6f9&&!_0x1bd818['newRange']){const _0x1ab0fd=_0x5023ce['getSuggestion'](_0x148b4c);_0x1ab0fd['next']&&_0x1ab0fd['next']['isInContent']&&(_0x5023ce['discardSuggestion'](_0x1ab0fd['next']),_0x4ddfc7=!0x0);}}}return _0x4ddfc7;}),this['_registerLegacyDescription'](_0x36c720);}['_registerLegacyDescription'](_0x3e2f52){const _0x1124d2=this['editor'],_0x323751=_0x1124d2['locale'];_0x1124d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf454ff=>{if('formatBlock'!=_0xf454ff['type']&&'formatInline'!=_0xf454ff['type'])return;const {data:_0x2e5168}=_0xf454ff;if(!_0x2e5168||'imageStyle'!=_0x2e5168['commandName'])return;const _0x4fee6c=_0x2e5168['commandParams'][0x0]['value'];return _0x519979('side'===_0x4fee6c?o(_0x323751,'FORMAT_SIDE_IMAGE'):_0x3e2f52[_0x4fee6c]||_0x4fee6c);function _0x519979(_0x3dbc97){return{'type':'format','content':o(_0x323751,'*Format:*\x20%0',_0x3dbc97)};}});}}class ct extends _0x597b86{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xb0d45){super(_0xb0d45),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4c3856=this['editor'],_0x51bd08=_0x4c3856['commands']['get']('importWord'),_0x16432f=_0x4c3856['commands']['get']('trackChanges');_0x51bd08&&(_0x51bd08['on']('execute',(_0x122484,[,_0x1cac74])=>{this['_trackChangesValueDuringImport']=_0x16432f['value'],_0x1cac74['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x51bd08,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x51bd08,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x16432f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4c3856['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4065af,_0x5177bf){const {suggestions:_0x3b380e}=_0x5177bf,_0x432378=this['editor']['commands']['get']('trackChanges'),_0x2c726c=_0x432378['value'];this['_trackChangesValueDuringImport']!==_0x2c726c&&(_0x432378['execute'](),this['_trackChangesExecuted']=!0x0),_0x3b380e&&_0x3b380e['forEach'](({id:_0x163f4d,type:_0x1aa198,author:_0x1448cb,created_at:_0x5a9e80})=>{const _0xb00370={'id':_0x163f4d,'type':_0x1aa198,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1448cb,'createdAt':_0x5a9e80?new Date(_0x5a9e80):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb00370);});}}class ut extends _0x597b86{['afterInit'](){const _0x89f9bb=this['editor'],_0x324b26=_0x89f9bb['plugins']['get']('TrackChangesEditing');if(_0x89f9bb['plugins']['has']('IndentEditing')&&(_0x324b26['enableCommand']('indent'),_0x324b26['enableCommand']('outdent')),_0x89f9bb['plugins']['has']('IndentBlock')){for(const _0x17b029 of['indentBlock','outdentBlock'])_0x324b26['enableDefaultAttributesIntegration'](_0x17b029);}const _0x341d6c=_0x89f9bb['locale'];_0x324b26['registerBlockAttribute']('blockIndent'),_0x324b26['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x341d6c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44e74f=this['editor'],_0x160ebc=_0x44e74f['locale'],_0x48e991=_0x44e74f['plugins']['get']('TrackChangesEditing');_0x48e991['descriptionFactory']['registerDescriptionCallback'](_0x5af09e=>{if('formatBlock'!=_0x5af09e['type'])return;const {data:_0x1a3527}=_0x5af09e;if(!_0x1a3527)return;if('indentBlock'!=_0x1a3527['commandName']&&'outdentBlock'!=_0x1a3527['commandName'])return;const _0x44d1a7=_0x5af09e['getItems']()[0x0],_0x3bcf25=_0x48e991['descriptionFactory']['getItemLabel'](_0x44d1a7);return'indentBlock'==_0x1a3527['commandName']?{'type':'format','content':o(_0x160ebc,'*Indent:*\x20%0',_0x3bcf25)}:'outdentBlock'==_0x1a3527['commandName']?{'type':'format','content':o(_0x160ebc,'*Outdent:*\x20%0',_0x3bcf25)}:void 0x0;});}}class ft extends _0x597b86{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x597b86{['afterInit'](){const _0x3b0ea9=this['editor'];if(!_0x3b0ea9['plugins']['has']('LinkEditing'))return;const _0x2e2537=_0x3b0ea9['plugins']['get']('TrackChangesEditing'),_0x5f08e3=_0x3b0ea9['commands']['get']('link');_0x2e2537['enableDefaultAttributesIntegration']('link'),_0x2e2537['enableDefaultAttributesIntegration']('unlink'),_0x2e2537['registerInlineAttribute']('linkHref');for(const _0x4c7dd6 of _0x5f08e3['manualDecorators'])_0x2e2537['registerInlineAttribute'](_0x4c7dd6['id']),_0x2e2537['descriptionFactory']['registerAttributeLabel'](_0x4c7dd6['id'],'link\x20('+_0x4c7dd6['label']['toLowerCase']()+')');_0x2e2537['descriptionFactory']['registerDescriptionCallback'](_0x4ceda2=>{if('attribute'!=_0x4ceda2['type'])return;const {data:_0x4f872a}=_0x4ceda2;if(!_0x4f872a||'linkHref'!=_0x4f872a['key'])return;const _0x416c55=_0x4f872a['newValue'],_0x454070=_0x3b0ea9['locale'];return{'type':'format','content':null==_0x416c55?o(_0x454070,'*Remove\x20link*'):o(_0x454070,'*Set\x20link:*\x20%0','\x22'+_0x416c55+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3725d3=this['editor'],_0x4b690d=_0x3725d3['locale'];_0x3725d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x572c57=>{if('formatInline'!=_0x572c57['type'])return;const {data:_0x5b74b7}=_0x572c57;if(_0x5b74b7){if('link'==_0x5b74b7['commandName']){const _0x79acbe=_0x5b74b7['commandParams'][0x0];return{'type':'format','content':o(_0x4b690d,'*Set\x20link:*\x20%0','\x22'+_0x79acbe+'\x22')};}return'unlink'==_0x5b74b7['commandName']?{'type':'format','content':o(_0x4b690d,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x597b86{['afterInit'](){const _0xf56035=this['editor'],_0x3d0008=_0xf56035['locale'];if(!_0xf56035['plugins']['has']('LegacyListEditing'))return;const _0x1c8dbf=_0xf56035['plugins']['get']('TrackChangesEditing'),_0x5e3401=_0xf56035['plugins']['has']('LegacyTodoListEditing');function _0x5e9e7e(_0x10b43a){return()=>{const _0xeeb9a6=_0xf56035['model']['document']['selection'],_0x5f5943=_0xf56035['commands']['get'](_0x10b43a);if(_0x5f5943['value'])return void _0xf56035['execute']('paragraph',{});const _0x5cc7f0=_0x10b43a['slice'](0x0,-0x4),_0x56f4ef=function(_0x25c133,_0x2ac7b8,_0x257340){let _0x4add72=Array['from'](_0x25c133)['filter'](_0xaf02f=>function(_0x44e355,_0x32d337){return _0x32d337['checkChild'](_0x44e355['parent'],'listItem')&&!_0x32d337['isObject'](_0x44e355);}(_0xaf02f,_0x257340));_0x4add72=_0x4add72['filter'](_0x57e33c=>!_0x57e33c['is']('element','listItem')||_0x57e33c['getAttribute']('listType')!=_0x2ac7b8);const _0x487f44=new Set();for(const _0x58f4de of _0x4add72)_0x58f4de['is']('element','listItem')?_0x487f44['add'](Le(_0x58f4de)):_0x487f44['add'](_0x58f4de);return Array['from'](_0x487f44);}(_0xeeb9a6['getSelectedBlocks'](),_0x5cc7f0,_0xf56035['model']['schema']);_0xf56035['model']['change'](()=>{for(const _0x2c7510 of _0x56f4ef)_0x1c8dbf['markBlockFormat'](_0x2c7510,{'commandName':_0x10b43a,'commandParams':[{'forceValue':!_0x5f5943['value']}],'formatGroupId':'blockName'},Ee(_0x2c7510));});};}function _0x1b9534(_0xe1bb04){return()=>{const _0x2d0bf8=function(_0x2cf3fd){let _0x47afb9=Array['from'](_0x2cf3fd);const _0x3a68c8=_0x47afb9['findIndex'](_0x5f9e47=>'listItem'!=_0x5f9e47['name']);return _0x3a68c8>-0x1&&(_0x47afb9=_0x47afb9['slice'](0x0,_0x3a68c8)),_0x47afb9;}(_0xf56035['model']['document']['selection']['getSelectedBlocks']()),_0x4bf38b=_0xf56035['model']['createRange'](_0xf56035['model']['createPositionAt'](_0x2d0bf8[0x0],'before'),_0xf56035['model']['createPositionAt'](_0x2d0bf8[_0x2d0bf8['length']-0x1],'end'));_0xf56035['model']['change'](()=>{_0x1c8dbf['markBlockFormat'](_0x4bf38b,{'commandName':_0xe1bb04,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2dfaed){const _0x1daecf=new Set();for(const _0x14d993 of _0x2dfaed){let _0x52b2dd=_0x14d993['nextSibling'];for(;_0x52b2dd&&_0x52b2dd['getAttribute']('listIndent')>_0x14d993['getAttribute']('listIndent');)_0x1daecf['add'](_0x52b2dd),_0x52b2dd=_0x52b2dd['nextSibling'];}return Array['from'](_0x1daecf);}(_0x2d0bf8));});};}_0x1c8dbf['enableCommand']('numberedList',_0x5e9e7e('numberedList')),_0x1c8dbf['enableCommand']('bulletedList',_0x5e9e7e('bulletedList')),_0x5e3401&&_0x1c8dbf['enableCommand']('todoList',_0x5e9e7e('todoList')),_0x1c8dbf['enableCommand']('indentList',_0x1b9534('indentList')),_0x1c8dbf['enableCommand']('outdentList',_0x1b9534('outdentList')),_0x5e3401&&_0x1c8dbf['enableCommand']('checkTodoList',()=>{const _0xd33c33=_0xf56035['commands']['get']('checkTodoList'),_0x3bea0b=Array['from'](_0xd33c33['_selectedElements']);_0x3bea0b['filter'](_0x17c06d=>_0x17c06d['getAttribute']('todoListChecked')!=_0xd33c33['value']),_0xf56035['model']['change'](()=>{for(const _0x3b9f96 of _0x3bea0b)_0x1c8dbf['markBlockFormat'](_0x3b9f96,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xd33c33['value']}]});});}),_0x1c8dbf['descriptionFactory']['registerElementLabel']('listItem',_0x42c8d0=>o(_0x3d0008,'ELEMENT_LIST_ITEM',_0x42c8d0)),_0x1c8dbf['descriptionFactory']['registerDescriptionCallback'](_0x1360d1=>{if('formatBlock'!=_0x1360d1['type']&&'formatInline'!=_0x1360d1['type'])return;const {data:_0x5433fe}=_0x1360d1;if(_0x5433fe){if('numberedList'==_0x5433fe['commandName']||'bulletedList'==_0x5433fe['commandName']||'todoList'==_0x5433fe['commandName'])switch(_0x5433fe['commandName']['replace']('List','')){case'bulleted':return _0x12dfd0(o(_0x3d0008,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x12dfd0(o(_0x3d0008,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x12dfd0(o(_0x3d0008,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5433fe['commandName'])return{'type':'format','content':o(_0x3d0008,'*Indent:*\x20%0',o(_0x3d0008,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5433fe['commandName'])return{'type':'format','content':o(_0x3d0008,'*Outdent:*\x20%0',o(_0x3d0008,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5433fe['commandName'])return _0x5433fe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3d0008,'*Check\x20item*')}:{'type':'format','content':o(_0x3d0008,'*Uncheck\x20item*')};}function _0x12dfd0(_0x4b6ba3){return{'type':'format','content':o(_0x3d0008,'*Change\x20to:*\x20%0',_0x4b6ba3)};}});}}function Le(_0x43f516){const _0x1628f7=_0x43f516['getAttribute']('listIndent');if(0x0==_0x1628f7)return _0x43f516;let _0x3343e3=_0x43f516;for(;_0x43f516['previousSibling']&&_0x43f516['previousSibling']['is']('element','listItem');){const _0x450a7a=_0x43f516['previousSibling']['getAttribute']('listIndent');if(_0x450a7a==_0x1628f7)_0x3343e3=_0x43f516['previousSibling'];else{if(_0x450a7a<_0x1628f7)break;}_0x43f516=_0x43f516['previousSibling'];}return _0x3343e3;}function Ee(_0x26274a){const _0x550b6d=[];if(_0x26274a['is']('element','listItem')&&_0x26274a['getAttribute']('listIndent')>0x0){let _0x20d2d9=_0x26274a['nextSibling'];for(;_0x20d2d9&&'listItem'==_0x20d2d9['name']&&_0x20d2d9['getAttribute']('listIndent')==_0x26274a['getAttribute']('listIndent');)_0x550b6d['push'](_0x20d2d9),_0x20d2d9=_0x20d2d9['nextSibling'];}return _0x550b6d;}class Q extends _0x597b86{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2f97fe=this['editor']['config']['get']('list.properties'),_0x5c2719=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f97fe['styles']&&_0x5c2719['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2f97fe['reversed']&&_0x5c2719['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2f97fe['startIndex']&&_0x5c2719['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5c2719['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3fd591,_0x39fca4={}){const _0x1c114e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4db848=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1c114e['markMultiRangeBlockFormat'](_0x4db848,{'commandName':'listStyle','commandParams':[{'type':_0x39fca4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x147baf,_0x1b5148={}){const _0x25f3b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x293f9b=this['_getSuggestionBlocks'](_0x362e27=>_0x362e27['is']('element','listItem')&&'numbered'===_0x362e27['getAttribute']('listType'));if(_0x293f9b['length']<0x1)return;const _0xe530ec=_0x293f9b['map'](_0x25fad3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25fad3,'before'),this['editor']['model']['createPositionAt'](_0x25fad3,0x0)));this['editor']['model']['change'](()=>{_0x25f3b8['markMultiRangeBlockFormat'](_0xe530ec,{'commandName':'listReversed','commandParams':[{'reversed':_0x1b5148['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2c3c1b,_0x409eda={}){const _0x149315=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc2b173=this['_getSuggestionBlocks'](_0x585feb=>_0x585feb['is']('element','listItem')&&'numbered'===_0x585feb['getAttribute']('listType'));if(_0xc2b173['length']<0x1)return;const _0x217faa=_0xc2b173['map'](_0x3d62e6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d62e6,'before'),this['editor']['model']['createPositionAt'](_0x3d62e6,0x0)));this['editor']['model']['change'](()=>{_0x149315['markMultiRangeBlockFormat'](_0x217faa,{'commandName':'listStart','commandParams':[{'startIndex':_0x409eda['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x37c83c){if('formatBlock'!=_0x37c83c['type']&&'formatInline'!=_0x37c83c['type'])return;const _0x280d3f=this['editor']['locale'],{data:_0xa658fd}=_0x37c83c;if(!_0xa658fd)return;let _0x3908c9,_0x2868c3;switch(_0xa658fd['commandName']){case'listStyle':_0x3908c9='*Change\x20to:*\x20%0',_0x2868c3={'type':'format','content':o(_0x280d3f,_0x3908c9,o(_0x280d3f,this['_getTranslationKeyForListStyle'](_0xa658fd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3908c9=_0xa658fd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2868c3={'type':'format','content':o(_0x280d3f,_0x3908c9)};break;case'listStart':_0x3908c9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2868c3={'type':'format','content':o(_0x280d3f,_0x3908c9,_0xa658fd['commandParams'][0x0]['startIndex'])};}return _0x2868c3;}['_getSuggestionBlocksForListStyle'](){const _0x593b8d=this['editor']['plugins']['get']('LegacyListUtils');let _0xae505f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xae505f[0x0]?.['is']('element','listItem')&&_0xae505f['unshift'](..._0x593b8d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xae505f[_0xae505f['length']-0x1]?.['is']('element','listItem')&&_0xae505f['push'](..._0x593b8d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xae505f=[...new Set(_0xae505f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xae505f=_0xae505f['filter'](_0x28147f=>_0x28147f['is']('element','listItem'))),_0xae505f;}['_getSuggestionBlocks'](_0x4db1bf){const _0x3a9e45=this['editor']['plugins']['get']('LegacyListUtils');let _0x3af3f2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4db1bf)['map'](_0x1dcdb8=>{const _0x1c28da=this['editor']['model']['createPositionAt'](_0x1dcdb8,0x0);return[..._0x3a9e45['getSiblingNodes'](_0x1c28da,'backward'),..._0x3a9e45['getSiblingNodes'](_0x1c28da,'forward')];})['flat']();return _0x3af3f2=[...new Set(_0x3af3f2)],_0x3af3f2;}['_getTranslationKeyForListStyle'](_0x37bf97){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x37bf97)||'default')['toUpperCase']()+'_LIST_'+_0x37bf97['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x597b86{['afterInit'](){const _0x4da792=this['editor'];if(!_0x4da792['plugins']['has']('MediaEmbedEditing'))return;const _0x35003a=_0x4da792['plugins']['get']('TrackChangesEditing'),_0x5a3368=_0x4da792['locale'];_0x35003a['enableCommand']('mediaEmbed'),_0x35003a['descriptionFactory']['registerElementLabel']('media',_0x4fcb50=>o(_0x5a3368,'ELEMENT_MEDIA',_0x4fcb50)),_0x4da792['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2cf731,{writer:_0x1ce2c7,options:_0x513d0e})=>{if(_0x513d0e['showSuggestionHighlights'])return _0x1ce2c7['createEmptyElement']('div');},'converterPriority':'high'}),_0x4da792['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5e945d,_0x12bbda,_0x3f81a3)=>{_0x3f81a3['options']['showSuggestionHighlights']&&_0x5e945d['stop']();},{'priority':'high'});}}class mt extends _0x597b86{['afterInit'](){const _0x36906a=this['editor'];_0x36906a['plugins']['has']('MentionEditing')&&_0x36906a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x597b86{['afterInit'](){const _0x49e99c=this['editor'];if(!_0x49e99c['plugins']['has']('MergeFieldsEditing'))return;const _0x5e5714=_0x49e99c['plugins']['get']('TrackChangesEditing'),_0x38ca8d=_0x49e99c['locale'];_0x5e5714['enableCommand']('insertMergeField'),_0x5e5714['enableCommand']('insertMergeFieldBlock'),_0x5e5714['enableCommand']('insertMergeFieldImage'),_0x5e5714['descriptionFactory']['registerElementLabel']('mergeField',_0x52e7bf=>o(_0x38ca8d,'ELEMENT_MERGE_FIELD',_0x52e7bf)),_0x5e5714['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x187d49=>o(_0x38ca8d,'ELEMENT_MERGE_FIELD',_0x187d49)),_0x5e5714['descriptionFactory']['registerDescriptionCallback'](_0x45cdd1=>{if('insertion'!=_0x45cdd1['type']&&'deletion'!=_0x45cdd1['type'])return;const _0x1f8e21=_0x45cdd1['getContainedElement']();if(null==_0x1f8e21)return;const _0x44f58b=_0x49e99c['plugins']['get']('MergeFieldsEditing');let _0x191dd3;switch(_0x44f58b['getMergeFieldType'](_0x1f8e21)){case null:return;case'image':{const _0x5a41d8=_0x44f58b['unwrapAffixes'](_0x1f8e21['getAttribute']('src'));_0x191dd3=_0x44f58b['getLabel'](_0x5a41d8)||_0x5a41d8;break;}default:{const _0xb4472=_0x1f8e21['getAttribute']('id');_0x191dd3=_0x44f58b['getLabel'](_0xb4472)||_0xb4472;break;}}return'insertion'==_0x45cdd1['type']?{'type':'insertion','content':o(_0x38ca8d,'*Insert:*\x20%0','\x22'+_0x191dd3+'\x22\x20'+o(_0x38ca8d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x38ca8d,'*Remove:*\x20%0','\x22'+_0x191dd3+'\x22\x20'+o(_0x38ca8d,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x597b86{['afterInit'](){const _0x956540=this['editor'],_0x5d2323=_0x956540['plugins']['get']('TrackChangesEditing');_0x956540['plugins']['has']('MultiLevelList')&&(_0x5d2323['enableDefaultAttributesIntegration']('multiLevelList'),_0x5d2323['registerBlockAttribute']('listMarkerStyle'),_0x5d2323['descriptionFactory']['registerDescriptionCallback'](_0x453adf=>this['handleDescriptions'](_0x453adf)));}['handleDescriptions'](_0x50cf8c){const _0x4849e1=this['editor']['locale'],{data:_0x2d5c2d}=_0x50cf8c,_0xb6a031={'type':'format','content':''};if(_0x2d5c2d&&'listMarkerStyle'==_0x2d5c2d['key']){if(!_0x2d5c2d['oldValue'])return{'type':'format','content':o(_0x4849e1,'*Set\x20format:*\x20%0',o(_0x4849e1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d5c2d['newValue']+')'};if(!_0x2d5c2d['newValue']){let _0x1b8c71=_0x50cf8c['head'];for(;_0x1b8c71;){if(_0x1b8c71['data']&&'listType'==_0x1b8c71['data']['key']&&_0x1b8c71['data']['newValue'])return _0xb6a031;_0x1b8c71=_0x1b8c71['next'];}return{'type':'format','content':o(_0x4849e1,'*Remove\x20format:*\x20%0',o(_0x4849e1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d5c2d['oldValue']+')'};}}}}class kt extends _0x597b86{['afterInit'](){const _0xb8b07f=this['editor'];if(!_0xb8b07f['plugins']['has']('PageBreakEditing'))return;_0xb8b07f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x20fd63=_0xb8b07f['plugins']['get']('TrackChangesEditing'),_0x826ed3=_0xb8b07f['locale'];_0x20fd63['descriptionFactory']['registerElementLabel']('pageBreak',_0x24a8e1=>o(_0x826ed3,'ELEMENT_PAGE_BREAK',_0x24a8e1));}}class bt extends _0x597b86{['afterInit'](){const _0x23ae6a=this['editor'];if(!_0x23ae6a['plugins']['has']('Paragraph'))return;const _0x4cfea5=_0x23ae6a['locale'],_0x5a67ee=_0x23ae6a['plugins']['get']('TrackChangesEditing');_0x5a67ee['descriptionFactory']['registerElementLabel']('paragraph',_0x36e259=>o(_0x4cfea5,'ELEMENT_PARAGRAPH',_0x36e259)),_0x5a67ee['enableDefaultAttributesIntegration']('paragraph'),_0x5a67ee['enableCommand']('insertParagraph'),_0x23ae6a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x23ae6a),{'priority':'highest'}),_0x23ae6a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x193b6d,_0x3724e6,_0x4e3dab)=>{_0x4e3dab['options']['showSuggestionHighlights']&&nr(_0x23ae6a,{'showActiveMarker':!0x1})(_0x193b6d,_0x3724e6,_0x4e3dab);},{'priority':'highest'});const _0x5083f1=_0x5a67ee['descriptionFactory'];_0x5083f1['registerDescriptionCallback'](_0x460352=>{if('insertion'!==_0x460352['type'])return;const {start:_0x4ed4f1,end:_0x368d48}=_0x460352['getFirstRange']();if(!_0x4ed4f1['isTouching'](_0x368d48)||!_0x4ed4f1['nodeAfter'])return;const _0x45eb8f=_0x23ae6a['model']['schema'],_0x41cb92=_0x4ed4f1['nodeAfter'];return _0x45eb8f['isBlock'](_0x41cb92)&&!_0x45eb8f['isLimit'](_0x41cb92)&&_0x45eb8f['checkChild'](_0x41cb92,'$text')?{'type':'insertion','content':o(_0x4cfea5,'*Insert:*\x20%0',_0x5083f1['getItemLabel'](_0x41cb92,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33178e=this['editor'],_0x554847=_0x33178e['locale'];_0x33178e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25c876=>{if('formatBlock'!=_0x25c876['type'])return;const {data:_0x2ea737}=_0x25c876;return _0x2ea737&&'paragraph'==_0x2ea737['commandName']?{'type':'format','content':o(_0x554847,'*Change\x20to:*\x20%0',o(_0x554847,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1af524,{showActiveMarker:_0x2f2a0d=!0x0}={}){return(_0x522844,_0x3f0cd8,_0x271cec)=>{const _0x5420de=_0x1af524['plugins']['get']('TrackChangesEditing'),_0x350a57=_0x3f0cd8['markerRange']['start'],_0x2b1c42=_0x3f0cd8['markerRange']['end'],_0x45c0b3=_0x1af524['model']['schema'];if(!_0x350a57['isTouching'](_0x2b1c42)||!_0x350a57['nodeAfter'])return;const _0x1adbb1=_0x350a57['nodeAfter'];if(_0x45c0b3['isBlock'](_0x1adbb1)&&!_0x45c0b3['isLimit'](_0x1adbb1)&&_0x45c0b3['checkChild'](_0x1adbb1,'$text')){if(!_0x271cec['consumable']['consume'](_0x3f0cd8['markerRange'],_0x522844['name']))return;const {authorId:_0x52ed62}=_0x5420de['_splitMarkerName'](_0x3f0cd8['markerName']),_0x548bbb=_0x271cec['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x52ed62}),_0x35bdcb=_0x271cec['mapper']['toViewPosition'](_0x2b1c42);_0x2f2a0d&&_0x5420de['activeMarkers']['includes'](_0x3f0cd8['markerName'])&&_0x271cec['writer']['addClass']('ck-suggestion-marker--active',_0x548bbb),_0x271cec['writer']['insert'](_0x35bdcb,_0x548bbb),_0x271cec['mapper']['bindElementToMarker'](_0x548bbb,_0x3f0cd8['markerName']);}};}class yt extends _0x597b86{['afterInit'](){const _0x36876a=this['editor'];if(!_0x36876a['plugins']['has']('RemoveFormatEditing'))return;_0x36876a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b8809=this['editor'];_0x2b8809['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25cd20=>{if('formatBlock'!=_0x25cd20['type']&&'formatInline'!=_0x25cd20['type'])return;const {data:_0x3cd496}=_0x25cd20;return _0x3cd496&&'removeFormat'==_0x3cd496['commandName']?{'type':'format','content':o(_0x2b8809['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x597b86{['afterInit'](){const _0x3769aa=this['editor'];if(!_0x3769aa['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2fe5fe=_0x3769aa['plugins']['get']('TrackChangesEditing');_0x2fe5fe['enableCommand']('goToPreviousRestrictedEditingException'),_0x2fe5fe['enableCommand']('goToNextRestrictedEditingException');const _0x3e2fbf=_0x3769aa['plugins']['get']('RestrictedEditingModeEditing');_0x3e2fbf['enableCommand']('trackChanges'),_0x3e2fbf['enableCommand']('acceptSuggestion'),_0x3e2fbf['enableCommand']('discardSuggestion'),_0x3e2fbf['enableCommand']('acceptAllSuggestions'),_0x3e2fbf['enableCommand']('discardAllSuggestions'),_0x3e2fbf['enableCommand']('acceptSelectedSuggestions'),_0x3e2fbf['enableCommand']('discardSelectedSuggestions');}}class St extends _0x597b86{static get['requires'](){return[_0x3ee207];}['init'](){const _0x1a1435=this['editor'],_0x351407=_0x1a1435['plugins']['get']('TrackChangesEditing');_0x351407['enableCommand']('shiftEnter'),_0x1a1435['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1a1435),{'priority':'high'}),_0x1a1435['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1a1435),{'priority':'high'}),_0x1a1435['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x23f32c,_0x7ad76c,_0x1b8997)=>{_0x1b8997['options']['showSuggestionHighlights']&&je(_0x1a1435,{'showActiveMarker':!0x1})(_0x23f32c,_0x7ad76c,_0x1b8997);}),_0x351407['descriptionFactory']['registerElementLabel']('softBreak',_0x1f7f4a=>o(_0x1a1435['locale'],'ELEMENT_LINE_BREAK',_0x1f7f4a));}}function je(_0x195a5a,{showActiveMarker:_0x2ea885=!0x0}={}){return(_0x190bc2,_0x418b70,_0xae9094)=>{const _0xd437ad=_0x195a5a['plugins']['get']('TrackChangesEditing');if(!_0xae9094['consumable']['test'](_0x418b70['markerRange'],_0x190bc2['name']))return;const _0x1c1725=_0x195a5a['model'];for(const _0x290153 of _0x418b70['markerRange']['getItems']()){if(!_0x290153['is']('element','softBreak'))continue;const _0x2390d4='deletion'==_0x418b70['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3f1c4c}=_0xd437ad['_splitMarkerName'](_0x418b70['markerName']),_0x2df760=_0xae9094['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2390d4,'data-author-id':_0x3f1c4c}),_0x459b37=_0xae9094['mapper']['toViewPosition'](_0x1c1725['createPositionBefore'](_0x290153));_0x2ea885&&_0xd437ad['activeMarkers']['includes'](_0x418b70['markerName'])&&_0xae9094['writer']['addClass']('ck-suggestion-marker--active',_0x2df760),_0xae9094['writer']['insert'](_0x459b37,_0x2df760),_0xae9094['mapper']['bindElementToMarker'](_0x2df760,_0x418b70['markerName']);}};}class At extends _0x597b86{['afterInit'](){const _0x51eafc=this['editor'],_0x21779a=_0x51eafc['model'],_0x2cec05=_0x51eafc['locale'];if(!_0x51eafc['plugins']['has']('StandardEditingModeEditing'))return;const _0x3dbd9a=_0x51eafc['plugins']['get']('TrackChangesEditing'),_0xee2ee3='restrictedEditingException',_0x459f1c=_0x51eafc['commands']['get'](_0xee2ee3);_0x3dbd9a['enableCommand'](_0xee2ee3,(_0x3ea9ea,_0x48f0db={})=>{const _0x1773f4=_0x21779a['document']['selection'];if(_0x1773f4['isCollapsed'])return void _0x3ea9ea(_0x48f0db);const _0x23cccf=void 0x0!==_0x48f0db['forceValue']?_0x48f0db['forceValue']:!_0x459f1c['value'];_0x21779a['change'](()=>{const _0x426a66=Array['from'](_0x1773f4['getRanges']());for(const _0x52ff5b of _0x426a66){const _0x38f0a9=_0x23cccf?[_0x52ff5b]:io(_0xee2ee3,_0x52ff5b,_0x21779a);for(const _0x40d038 of _0x38f0a9)_0x3dbd9a['markInlineFormat'](_0x40d038,{'commandName':_0xee2ee3,'commandParams':[{'forceValue':_0x23cccf}]});}});}),_0x3dbd9a['descriptionFactory']['registerDescriptionCallback'](_0x3380e4=>{if('formatBlock'!=_0x3380e4['type']&&'formatInline'!=_0x3380e4['type'])return;const {data:_0x1ed174}=_0x3380e4;return _0x1ed174&&_0x1ed174['commandName']==_0xee2ee3?_0x1ed174['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2cec05,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2cec05,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x597b86{['afterInit'](){const _0x53eb72=this['editor'];if(!_0x53eb72['plugins']['has']('Style')||!_0x53eb72['plugins']['has']('DataSchema'))return;const _0x56d0a6=_0x53eb72['plugins']['get']('TrackChangesEditing'),_0x91125c=_0x53eb72['locale'],_0x2c5714=_0x53eb72['config']['get']('style')||{},_0x3c75e2=_0x53eb72['plugins']['get']('GeneralHtmlSupport'),_0x702e2c=_0x53eb72['plugins']['get']('StyleUtils')['normalizeConfig'](_0x53eb72['plugins']['get']('DataSchema'),_0x2c5714['definitions']);_0x56d0a6['enableDefaultAttributesIntegration']('style');const _0x4118c6=new Set();for(const _0x56ae4e of _0x702e2c['block']){const _0x1cc3c0=_0x3c75e2['getGhsAttributeNameForElement'](_0x56ae4e['element']);_0x4118c6['add'](_0x1cc3c0);}const _0x4a40ce=new Set();for(const _0x728590 of _0x702e2c['inline']){const _0x3134cf=_0x3c75e2['getGhsAttributeNameForElement'](_0x728590['element']);_0x4a40ce['add'](_0x3134cf);for(const _0xd9aac5 of _0x728590['ghsAttributes'])_0x4a40ce['add'](_0xd9aac5);}for(const _0xfbb86f of _0x4118c6)_0x56d0a6['registerBlockAttribute'](_0xfbb86f),_0x56d0a6['descriptionFactory']['registerAttributeLabel'](_0xfbb86f,o(_0x91125c,'FORMAT_STYLE'));for(const _0x9be1b9 of _0x4a40ce)_0x56d0a6['registerInlineAttribute'](_0x9be1b9),_0x56d0a6['descriptionFactory']['registerAttributeLabel'](_0x9be1b9,o(_0x91125c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x341258=this['editor'],_0x4ce9cd=_0x341258['locale'];_0x341258['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56aa53=>{if('formatBlock'!=_0x56aa53['type']&&'formatInline'!=_0x56aa53['type'])return;const {data:_0x365f32}=_0x56aa53;return _0x365f32&&'style'===_0x365f32['commandName']?_0x365f32['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ce9cd,'*Set\x20format:*\x20%0',_0x365f32['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4ce9cd,'*Remove\x20format:*\x20%0',_0x365f32['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x597b86{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3d664a){super(_0x3d664a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1e35f5=this['editor'],_0x56241b=_0x1e35f5['model']['document']['selection'];if(!_0x1e35f5['plugins']['has']('TableEditing'))return;const _0x36d6fe=_0x1e35f5['locale'],_0x5ee9db=_0x1e35f5['plugins']['get']('TrackChangesEditing'),_0x57e4bd=_0x1e35f5['plugins']['get']('TableUtils');_0x5ee9db['descriptionFactory']['registerElementLabel']('table',_0xf517a9=>o(_0x36d6fe,'ELEMENT_TABLE',_0xf517a9)),this['_setupColumnsRowsFixing'](),_0x5ee9db['enableCommand']('insertTable'),_0x5ee9db['enableCommand']('selectTableRow'),_0x5ee9db['enableCommand']('selectTableColumn');for(const _0xd8db49 of['insertTableRowAbove','insertTableRowBelow']){const _0x575539=_0x1e35f5['commands']['get'](_0xd8db49);_0x5ee9db['enableCommand'](_0xd8db49,_0x580a4f=>{_0x1e35f5['model']['change'](_0x4dcce4=>{_0x580a4f();const _0x142767='above'===_0x575539['order'],_0x146046=_0x57e4bd['getSelectionAffectedTableCells'](_0x56241b),_0x18de0c=_0x57e4bd['getRowIndexes'](_0x146046),_0x1d3e2e=_0x142767?_0x18de0c['first']-0x1:_0x18de0c['last']+0x1,_0x3f8379=_0x146046[0x0]['findAncestor']('table'),_0x5e60df=_0x57e4bd['createTableWalker'](_0x3f8379,{'startRow':_0x1d3e2e,'endRow':_0x1d3e2e}),_0x51c8a2=Array['from'](_0x5e60df)['map'](_0x22b5a0=>_0x4dcce4['createRangeOn'](_0x22b5a0['cell']));_0x5ee9db['markMultiRangeInsertion'](_0x51c8a2,'tableRow');});});}for(const _0x532446 of['insertTableColumnLeft','insertTableColumnRight']){const _0x41fc93=_0x1e35f5['commands']['get'](_0x532446);_0x5ee9db['enableCommand'](_0x532446,_0xd7b673=>{_0x1e35f5['model']['change'](_0x425e67=>{_0xd7b673();const _0x420cc9='left'===_0x41fc93['order'],_0x182c60=_0x57e4bd['getSelectionAffectedTableCells'](_0x56241b),_0x597672=_0x57e4bd['getColumnIndexes'](_0x182c60),_0x5c4677=_0x420cc9?_0x597672['first']-0x1:_0x597672['last']+0x1,_0x13e107=_0x182c60[0x0]['findAncestor']('table'),_0x334359=_0x57e4bd['createTableWalker'](_0x13e107,{'startRow':0x0,'column':_0x5c4677,'includeAllSlots':!0x1}),_0x251777=Array['from'](_0x334359)['map'](_0x27f183=>_0x425e67['createRangeOn'](_0x27f183['cell']));_0x5ee9db['markMultiRangeInsertion'](_0x251777,'tableColumn');});});}for(const _0x5c7999 of['removeTableRow','removeTableColumn']){const _0x5b3527=_0x5c7999['substr'](0xb),_0x2c396e=_0x5b3527['toLowerCase'](),_0x4f0aab=_0x2c396e['substr'](0x0,0x3)+'span',_0x2168cb='table'+_0x5b3527,_0xca1960='min'+_0x5b3527,_0x266c29='max'+_0x5b3527;_0x5ee9db['enableCommand'](_0x5c7999,()=>{_0x1e35f5['model']['change'](_0x31fdd6=>{const _0x3e6dfc=_0x57e4bd['getSelectionAffectedTableCells'](_0x56241b),_0x165d60=_0x3e6dfc[0x0]['findAncestor']('table');let _0x14c71d;if('removeTableRow'==_0x5c7999){const _0x2c5a0a=_0x57e4bd['getRowIndexes'](_0x3e6dfc);_0x14c71d={'startRow':_0x2c5a0a['first'],'endRow':_0x2c5a0a['last'],'includeAllSlots':!0x0};}else{const _0xe052d2=_0x57e4bd['getColumnIndexes'](_0x3e6dfc);_0x14c71d={'startColumn':_0xe052d2['first'],'endColumn':_0xe052d2['last'],'includeAllSlots':!0x0};}const _0x3e0526=_0x57e4bd['createTableWalker'](_0x165d60,_0x14c71d),_0xcb069=Array['from'](_0x3e0526)['map'](({cell:_0x60a177})=>_0x60a177),_0x198766=Ne(_0xcb069['filter'](_0x296367=>_0x296367['hasAttribute'](_0x4f0aab))),_0x242df8=Ne(_0xcb069['filter'](_0x86054e=>!_0x86054e['hasAttribute'](_0x4f0aab)))['map'](_0xe122bf=>_0x31fdd6['createRangeOn'](_0xe122bf)),_0x1d2221=_0x5ee9db['markMultiRangeDeletion'](_0x242df8,_0x2168cb);if(_0x1d2221&&('tableRow'==_0x1d2221['subType']||'tableColumn'==_0x1d2221['subType'])){const _0xafe27a=this['_getSuggestionCoords'](_0x1d2221);for(const _0x21833c of _0x198766){const _0xa4be93=_0x31fdd6['createRangeOn'](_0x21833c),_0x31b797=_0x57e4bd['getCellLocation'](_0x21833c),_0x528a99=_0x21833c['getAttribute'](_0x4f0aab)-0x1,_0x500f65=_0xafe27a[_0xca1960],_0x548fb7=_0xafe27a[_0x266c29];_0x500f65<=_0x31b797[_0x2c396e]&&_0x31b797[_0x2c396e]+_0x528a99<=_0x548fb7&&_0x1d2221['addRange'](_0xa4be93);}}});});}function _0x16e5f4(_0x39e3aa){const _0x26ed82=Array['from'](_0x56241b['getRanges']())['map'](_0x51f985=>_0x125deb['fromRange'](_0x51f985));_0x1e35f5['model']['change'](_0x313c3f=>{const _0x7057d5=_0x313c3f['batch'];_0x39e3aa=_0x39e3aa['filter'](_0x58b839=>'$graveyard'!=_0x58b839['root']['rootName']),_0x313c3f['setSelection'](_0x39e3aa),_0x1e35f5['commands']['get']('removeTableRow')['refresh'](),_0x1e35f5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1e35f5['model']['enqueueChange'](()=>{_0x1e35f5['model']['enqueueChange'](_0x7057d5,_0x48a58b=>{const _0x97992b=_0x26ed82['filter'](_0x37b9d7=>'$graveyard'!=_0x37b9d7['root']['rootName']);_0x97992b['length']>0x0&&_0x48a58b['setSelection'](_0x97992b);for(const _0x29192e of _0x26ed82)_0x29192e['detach']();});});});}function _0x4aa1e4(_0xd0c5c5){_0x1e35f5['model']['change'](_0x19027f=>{const _0x238c07=Array['from'](_0x56241b['getRanges']())['map'](_0x1e78da=>_0x125deb['fromRange'](_0x1e78da)),_0x1c2f1c=[];for(const _0x53d36c of _0xd0c5c5)for(const _0x1d33e9 of _0x53d36c['getItems']({'shallow':!0x0}))_0x1c2f1c['push'](_0x1d33e9);for(const _0x50388a of _0x1c2f1c)'$graveyard'!=_0x50388a['root']['rootName']&&(_0x19027f['setSelection'](_0x19027f['createPositionAt'](_0x50388a,0x0)),_0x1e35f5['commands']['get']('removeTableColumn')['refresh'](),_0x1e35f5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x41adc8=_0x238c07['filter'](_0x36fca6=>'$graveyard'!=_0x36fca6['root']['rootName']);_0x41adc8['length']>0x0&&_0x19027f['setSelection'](_0x41adc8);for(const _0x487440 of _0x238c07)_0x487440['detach']();});}function _0x34a807(_0x211fff,_0x41f994){return _0x41f994['every'](_0x1a8004=>_0x211fff['some'](_0x43a59b=>_0x43a59b['end']['isEqual'](_0x1a8004['start'])||_0x1a8004['end']['isEqual'](_0x43a59b['start'])));}function _0xc26252(_0x268a63,_0x52789d){return!_0x268a63['some'](_0x124915=>_0x52789d['some'](_0x15398a=>_0x124915['isIntersecting'](_0x15398a)))&&_0x268a63['some'](_0xac79a0=>_0x52789d['some'](_0x2ac2de=>_0xac79a0['end']['isTouching'](_0x2ac2de['start'])));}_0x1e35f5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x103d63,_0x14054c,_0x52b7a7)=>{if(!_0x52b7a7['options']['showSuggestionHighlights'])return;const _0x401445=_0x14054c['item'];if(!_0x401445)return;const _0x5fb91=_0x52b7a7['mapper']['toViewElement'](_0x401445);function _0x144e3e(_0x3b8419){return Array['isArray'](_0x3b8419)?_0x3b8419:[_0x3b8419];}_0x5fb91&&'tableCell'===_0x401445['name']&&_0x2e34ec(_0x5fb91,_0x52b7a7['writer'],(_0x2177b2,_0x513f83,_0x299feb)=>_0x299feb['addClass'](_0x144e3e(_0x513f83['classes']),_0x2177b2),(_0x598b51,_0x125b1f,_0x23dbce)=>_0x23dbce['removeClass'](_0x144e3e(_0x125b1f['classes']),_0x598b51));},{'priority':'highest'}),_0x5ee9db['descriptionFactory']['registerDescriptionCallback'](_0x64d320=>{if('insertion'!=_0x64d320['type']&&'deletion'!=_0x64d320['type'])return;const _0xa76803=_0x64d320['getContainedElement']();if(null!=_0xa76803&&_0xa76803['is']('element','table')){if('insertion'==_0x64d320['type']){const _0x3e97cb=_0x64d320['getItems']()['filter'](_0x5bbb36=>_0x5bbb36['is']('$textProxy'))['map'](_0x2e415b=>_0x2e415b['data']);if(_0x3e97cb['length'])return{'type':'insertion','content':o(_0x36d6fe,'*Insert:*\x20%0',o(_0x36d6fe,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3e97cb['join']('\x20')+'\x22'))};}if('deletion'==_0x64d320['type']){const _0x19dad8=_0x64d320['getItems']()['filter'](_0x1e228f=>_0x1e228f['is']('$textProxy'))['map'](_0x4b576d=>_0x4b576d['data']);if(_0x19dad8['length'])return{'type':'deletion','content':o(_0x36d6fe,'*Remove:*\x20%0',o(_0x36d6fe,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19dad8['join']('\x20')+'\x22'))};}}}),_0x5ee9db['descriptionFactory']['registerDescriptionCallback'](_0x190b7d=>{if('tableRow'==_0x190b7d['subType']){const _0x10170a=_0x190b7d['getItems']()['filter'](_0x313e22=>_0x313e22['is']('$textProxy'))['map'](_0x58fd5d=>_0x58fd5d['data']),_0x3b5935=this['_getSuggestionCoords'](_0x190b7d),_0x45dd03=_0x3b5935['maxRow']-_0x3b5935['minRow']+0x1;if('insertion'==_0x190b7d['type'])return _0x10170a['length']?{'type':'insertion','content':o(_0x36d6fe,'*Insert:*\x20%0',o(_0x36d6fe,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x45dd03,'\x22'+_0x10170a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x36d6fe,'*Insert:*\x20%0',o(_0x36d6fe,'ELEMENT_TABLE_ROW',_0x45dd03))};if('deletion'==_0x190b7d['type'])return _0x10170a['length']?{'type':'deletion','content':o(_0x36d6fe,'*Remove:*\x20%0',o(_0x36d6fe,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x45dd03,'\x22'+_0x10170a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x36d6fe,'*Remove:*\x20%0',o(_0x36d6fe,'ELEMENT_TABLE_ROW',_0x45dd03))};}if('tableColumn'==_0x190b7d['subType']){const _0x1555b5=_0x190b7d['getItems']()['filter'](_0x7f0a70=>_0x7f0a70['is']('$textProxy'))['map'](_0x45f463=>_0x45f463['data']),_0x121bf6=this['_getSuggestionCoords'](_0x190b7d),_0x2695a3=_0x121bf6['maxColumn']-_0x121bf6['minColumn']+0x1;if('insertion'==_0x190b7d['type'])return _0x1555b5['length']?{'type':'insertion','content':o(_0x36d6fe,'*Insert:*\x20%0',o(_0x36d6fe,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2695a3,'\x22'+_0x1555b5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x36d6fe,'*Insert:*\x20%0',o(_0x36d6fe,'ELEMENT_TABLE_COLUMN',_0x2695a3))};if('deletion'==_0x190b7d['type'])return _0x1555b5['length']?{'type':'deletion','content':o(_0x36d6fe,'*Remove:*\x20%0',o(_0x36d6fe,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2695a3,'\x22'+_0x1555b5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x36d6fe,'*Remove:*\x20%0',o(_0x36d6fe,'ELEMENT_TABLE_COLUMN',_0x2695a3))};}}),_0x5ee9db['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x16e5f4),_0x5ee9db['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x16e5f4),_0x5ee9db['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4aa1e4),_0x5ee9db['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4aa1e4),_0x5ee9db['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x34a807),_0x5ee9db['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x34a807),_0x5ee9db['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xc26252),_0x5ee9db['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xc26252);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1b978f=this['editor'],_0x2e65f0=_0x1b978f['model']['document']['selection'];return(_0x70cdaa,_0x19f567)=>{_0x1b978f['model']['change'](_0x3d18cf=>{const {commandName:_0x2c6ca3,commandParams:_0xdc389c}=_0x19f567;let _0x27407b=_0x70cdaa[0x0]['end']['nodeBefore'];_0xdc389c&&_0xdc389c[0x0]&&!0x1===_0xdc389c[0x0]['forceValue']&&(_0x27407b=_0x70cdaa[0x0]['start']['nodeAfter']);const _0x919e6c=_0x3d18cf['createRangeIn'](_0x27407b);if('$graveyard'==_0x919e6c['root']['rootName'])return;const _0x2c7925=Array['from'](_0x2e65f0['getRanges']())['map'](_0x579252=>_0x125deb['fromRange'](_0x579252));_0x3d18cf['setSelection'](_0x919e6c),_0x1b978f['commands']['get'](_0x2c6ca3)['refresh'](),_0xdc389c['push']({'forceDefaultExecution':!0x0}),_0x1b978f['execute'](_0x2c6ca3,..._0xdc389c);const _0x1b6afd=_0x2c7925['filter'](_0x4f0fc9=>'$graveyard'!=_0x4f0fc9['root']['rootName']);_0x1b6afd['length']>0x0&&_0x3d18cf['setSelection'](_0x1b6afd);for(const _0x2beb87 of _0x2c7925)_0x2beb87['detach']();});};}['_getCoordsForCells'](_0x959b70){const _0x218495=this['editor']['plugins']['get']('TableUtils');let _0xf99d67=Number['MAX_SAFE_INTEGER'],_0x3133ce=Number['MIN_SAFE_INTEGER'],_0xd300a1=Number['MAX_SAFE_INTEGER'],_0x1c6021=Number['MIN_SAFE_INTEGER'];for(const _0x1fade0 of _0x959b70){if('$graveyard'==_0x1fade0['root']['rootName'])continue;const {row:_0x147997,column:_0x3c3f8c}=_0x218495['getCellLocation'](_0x1fade0),_0x5c06db=_0x1fade0['hasAttribute']('rowspan')?_0x1fade0['getAttribute']('rowspan')-0x1:0x0,_0x285839=_0x1fade0['hasAttribute']('colspan')?_0x1fade0['getAttribute']('colspan')-0x1:0x0;_0xf99d67=_0x147997<_0xf99d67?_0x147997:_0xf99d67,_0x3133ce=_0x147997+_0x5c06db>_0x3133ce?_0x147997+_0x5c06db:_0x3133ce,_0xd300a1=_0x3c3f8c<_0xd300a1?_0x3c3f8c:_0xd300a1,_0x1c6021=_0x3c3f8c+_0x285839>_0x1c6021?_0x3c3f8c+_0x285839:_0x1c6021;}return{'minRow':_0xf99d67,'maxRow':_0x3133ce,'minColumn':_0xd300a1,'maxColumn':_0x1c6021};}['_setupColumnsRowsFixing'](){const _0x5dbb43=this['editor'],_0x3c7f44=_0x5dbb43['plugins']['get']('TrackChangesEditing'),_0x1beae8=_0x5dbb43['plugins']['get']('TableUtils');_0x5dbb43['model']['document']['on']('change:data',()=>{const _0x466579=Array['from'](_0x5dbb43['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ea71e,data:_0x36618b}of _0x466579){const {group:_0x3414d1,id:_0x47aa9a,subType:_0x593418}=_0x3c7f44['_splitMarkerName'](_0x1ea71e);if('suggestion'!=_0x3414d1)continue;if(null!=_0x36618b['oldRange'])continue;const _0x4af082=_0x3c7f44['getSuggestion'](_0x47aa9a);this['_tablePostFixingSubtypes']['includes'](_0x593418)&&this['_tableSuggestions']['add'](_0x4af082);}},{'priority':'low'});const _0x2d0272=(_0x442c8e,_0x15d229)=>{let _0x200205=!0x1;const _0x3a086b=_0x15d229['createRangeOn'](_0x442c8e),_0x1ba8b2=_0x442c8e['findAncestor']('table'),_0x40263e=_0x1beae8['getCellLocation'](_0x442c8e);for(const _0x87315c of this['_tableSuggestions']){const _0x50219=_0x87315c['subType'],_0x30a2f9=_0x50219['startsWith']('tablePaste'),_0x336094=_0x50219['substr'](_0x30a2f9?0xa:0x5),_0x533904=_0x336094['toLowerCase'](),_0x4708d9=_0x533904['substr'](0x0,0x3)+'span',_0x8a961f='min'+_0x336094,_0x5cf67a='max'+_0x336094;if(!_0x87315c['isInContent'])continue;if(_0x1ba8b2!=_0x87315c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x87315c['isIntersectingWithRange'](_0x3a086b))continue;const _0x25f77f=_0x442c8e['hasAttribute'](_0x4708d9)?_0x442c8e['getAttribute'](_0x4708d9)-0x1:0x0,_0x535eb7=this['_getSuggestionCoords'](_0x87315c),_0x3d6cba=_0x535eb7[_0x8a961f],_0x365333=_0x535eb7[_0x5cf67a];_0x3d6cba<=_0x40263e[_0x533904]&&_0x40263e[_0x533904]+_0x25f77f<=_0x365333&&(_0x87315c['addRange'](_0x3a086b),_0x200205=!0x0);}return _0x200205;};_0x5dbb43['model']['document']['registerPostFixer'](_0x58a942=>{let _0x146378=!0x1;for(const _0x203d2e of _0x5dbb43['model']['document']['differ']['getChanges']())if('insert'==_0x203d2e['type']){if('tableRow'==_0x203d2e['name']){for(const _0x398b78 of _0x203d2e['position']['nodeAfter']['getChildren']())_0x146378=_0x146378||_0x2d0272(_0x398b78,_0x58a942);}else'tableCell'==_0x203d2e['name']&&(_0x146378=_0x146378||_0x2d0272(_0x203d2e['position']['nodeAfter'],_0x58a942));}return _0x146378;});}['_getSuggestionCoords'](_0x4fe9cf){return this['_getCoordsForCells'](_0x4fe9cf['getRanges']()['map'](_0x2171b5=>_0x2171b5['start']['nodeAfter']));}}function Ne(_0x44fcaa){return Array['from'](new Set(_0x44fcaa)['values']());}class _t extends _0x597b86{static get['requires'](){return[vt];}['afterInit'](){const _0x1236b7=this['editor'],_0x250b5e=_0x1236b7['model']['document']['selection'],_0x4b253a=_0x1236b7['locale'];if(!_0x1236b7['plugins']['has']('TableEditing'))return;const _0xada849=_0x1236b7['plugins']['get']('TrackChangesEditing'),_0x657537=_0x1236b7['plugins']['get']('TableUtils'),_0x5f5a2b=_0x1236b7['plugins']['get'](vt);_0x5f5a2b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xada849['enableCommand']('mergeTableCells',()=>{const _0x6507b7=_0x657537['getSelectionAffectedTableCells'](_0x1236b7['model']['document']['selection']);_0x1236b7['model']['change'](()=>{_0xada849['markMultiRangeBlockFormat'](_0x6507b7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1236b7['commands']['get']('mergeTableCells')['on']('execute',(_0x452f8c,_0x2fed43)=>{_0x1236b7['commands']['get']('trackChanges')['value']&&(_0x2fed43['length']>0x0&&_0x2fed43[_0x2fed43['length']-0x1]&&_0x2fed43[_0x2fed43['length']-0x1]['forceDefaultExecution']||_0xada849['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x452f8c['stop']());},{'priority':'highest'});for(const _0x2ee2b7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xe25314=_0x1236b7['commands']['get'](_0x2ee2b7);_0xada849['enableCommand'](_0x2ee2b7,()=>{const _0x5dd404=_0x1236b7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3a42f3=>_0x3a42f3['is']('element','tableCell')),_0x3f4e09=_0xe25314['value'];_0x1236b7['model']['change'](()=>{_0xada849['markMultiRangeBlockFormat']([_0x5dd404,_0x3f4e09],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x25f17d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x31f5bb=_0x1236b7['commands']['get'](_0x25f17d);_0xada849['enableCommand'](_0x25f17d,()=>{const _0x58a260=_0x657537['getSelectionAffectedTableCells'](_0x1236b7['model']['document']['selection'])[0x0],_0x200aad=_0x58a260['findAncestor']('table'),{column:_0xf1cdad,row:_0x2860e8}=_0x657537['getCellLocation'](_0x58a260);let _0x102250=[];if('horizontally'==_0x31f5bb['direction']){const _0x30bf8b=_0x657537['createTableWalker'](_0x200aad,{'startRow':_0x2860e8,'endRow':_0x2860e8,'includeAllSlots':!0x0});_0x102250=Array['from'](_0x30bf8b)['map'](_0x41e37d=>_0x41e37d['cell']);}else{const _0x49e7e8=_0x657537['createTableWalker'](_0x200aad,{'column':_0xf1cdad,'includeAllSlots':!0x0});_0x102250=Array['from'](_0x49e7e8)['map'](_0x524d2d=>_0x524d2d['cell']);}_0x1236b7['model']['change'](_0x21c9df=>{_0xada849['markBlockFormat'](_0x21c9df['createRangeOn'](_0x58a260),{'commandName':_0x25f17d,'commandParams':[]},_0x102250,_0x25f17d);});});}_0xada849['descriptionFactory']['registerDescriptionCallback'](_0x191812=>{if('formatBlock'!=_0x191812['type']&&'formatInline'!=_0x191812['type'])return;const {data:_0x4ef79e}=_0x191812;return _0x4ef79e&&'mergeTableCells'==_0x4ef79e['commandName']?{'type':'format','content':o(_0x4b253a,'*Merge\x20cells*')}:void 0x0;}),_0xada849['descriptionFactory']['registerDescriptionCallback'](_0x5c49c0=>{if('formatBlock'!=_0x5c49c0['type']&&'formatInline'!=_0x5c49c0['type'])return;const {data:_0x250d83}=_0x5c49c0;return _0x250d83?'splitTableCellVertically'==_0x250d83['commandName']?{'type':'format','content':o(_0x4b253a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x250d83['commandName']?{'type':'format','content':o(_0x4b253a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x41bd1d=_0x5f5a2b['_acceptFormatSuggestionCallbackFactory']();for(const _0x1c822c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xada849['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c822c,'accept',_0x41bd1d);for(const _0x5bbcbb of['splitTableCellVertically','splitTableCellHorizontally'])_0xada849['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5bbcbb,'accept',_0x41bd1d);_0xada849['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3b47ce=>{_0x1236b7['model']['change'](_0x574130=>{const _0x4f0026=Array['from'](_0x250b5e['getRanges']())['map'](_0x2d5ef3=>_0x125deb['fromRange'](_0x2d5ef3));_0x574130['setSelection'](_0x3b47ce),_0x1236b7['commands']['get']('mergeTableCells')['refresh'](),_0x1236b7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1bfd77=_0x4f0026['filter'](_0x1ea164=>'$graveyard'!=_0x1ea164['root']['rootName']);_0x1bfd77['length']>0x0&&_0x574130['setSelection'](_0x1bfd77);for(const _0x51c4a4 of _0x4f0026)_0x51c4a4['detach']();});});for(const _0x378a46 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x26ba13=_0x1236b7['commands']['get'](_0x378a46);_0x26ba13['on']('set:isEnabled',(_0x537eb8,_0x3d76ee,_0x2eb03c)=>{if(_0x2eb03c){const _0x3c3e13=_0x1236b7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3611dc=>_0x3611dc['is']('element','tableCell'));this['_areMergableCells'](_0x26ba13['value'],_0x3c3e13)||(_0x537eb8['return']=!0x1,_0x537eb8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2fbbbe=this['editor']['commands']['get']('mergeTableCells'),_0x14f950=this['editor']['plugins']['get']('TableUtils');if(!_0x2fbbbe['isEnabled'])return!0x1;const _0x121ecc=_0x14f950['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4668ed of _0x121ecc)for(const _0x2fcf6e of _0x121ecc)if(_0x4668ed!=_0x2fcf6e&&!this['_areMergableCells'](_0x4668ed,_0x2fcf6e))return!0x1;return!0x0;}['_areMergableCells'](_0x275a71,_0x5cb9ac){const _0x1cd1b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3785b3=this['editor']['model']['createRangeOn'](_0x275a71),_0x521c5f=this['editor']['model']['createRangeOn'](_0x5cb9ac),_0x3dc09e=new Set(),_0x115798=new Set();for(const _0x57c88e of _0x1cd1b8['getSuggestions']())if(('insertion'==_0x57c88e['type']||'deletion'==_0x57c88e['type']||'mergeTableCells'==_0x57c88e['subType'])&&_0x57c88e['isInContent']){for(const _0x480ff7 of _0x57c88e['getRanges']())_0x480ff7['containsRange'](_0x3785b3,!0x0)&&_0x3dc09e['add'](_0x57c88e['type']+':'+_0x57c88e['author']['id']),_0x480ff7['containsRange'](_0x521c5f,!0x0)&&_0x115798['add'](_0x57c88e['type']+':'+_0x57c88e['author']['id']);}if(_0x3dc09e['size']!=_0x115798['size'])return!0x1;for(const _0x10b601 of _0x3dc09e)if(!_0x115798['has'](_0x10b601))return!0x1;return!0x0;}}class Ct extends _0x597b86{static get['requires'](){return[vt];}['afterInit'](){const _0x2b68b0=this['editor'];if(!_0x2b68b0['plugins']['has']('TableEditing'))return;const _0x2fec03=_0x2b68b0['locale'],_0x12d40b=_0x2b68b0['plugins']['get']('TrackChangesEditing');_0x12d40b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x12d40b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x12d40b['registerBlockAttribute']('headingRows'),_0x12d40b['registerBlockAttribute']('headingColumns'),_0x12d40b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2fec03,'FORMAT_HEADER_ROW')),_0x12d40b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2fec03,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x181ca5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46377b=this['editor']['plugins']['get']('TableUtils'),_0x10546f=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x16a0be({showActiveMarker:_0xe38f05=!0x0,setDataAttribute:_0xea070c=!0x0}={}){return(_0x4c5897,_0x143d10,_0x1cd838)=>{const {type:_0x99710d,id:_0x1939fd}=_0x181ca5['_splitMarkerName'](_0x143d10['markerName']),_0x1bb356=_0x181ca5['getSuggestion'](_0x1939fd),_0xe63a51=_0x1bb356['data'];if('formatBlock'!=_0x1bb356['type']||!_0xe63a51||'setTableColumnHeader'!=_0xe63a51['commandName'])return;if(_0x143d10['item'])return void _0x4c5897['stop']();if(!_0x1cd838['consumable']['consume'](_0x143d10['markerRange'],_0x4c5897['name']))return;const _0x3263b4=_0x143d10['markerRange']['start']['nodeAfter'],_0x1b9cf7=_0x143d10['markerRange']['end']['nodeBefore'],_0x6bce6a=_0x3263b4['parent']['parent'],{column:_0x5ed781}=_0x46377b['getCellLocation'](_0x3263b4),{column:_0x27f385}=_0x46377b['getCellLocation'](_0x1b9cf7);for(let _0x3f2e20=_0x5ed781;_0x3f2e20<=_0x27f385;_0x3f2e20++){const _0x12d051=_0x46377b['createTableWalker'](_0x6bce6a,{'column':_0x3f2e20,'includeAllSlots':!0x1});for(const _0x7ad8eb of _0x12d051){const _0x1a532e=_0x7ad8eb['cell'],_0x2997c6=_0x1cd838['mapper']['toViewElement'](_0x1a532e);_0x1cd838['writer']['addClass']('ck-suggestion-marker-'+_0x99710d,_0x2997c6),_0xea070c&&_0x1cd838['writer']['setAttribute']('data-suggestion',_0x1939fd,_0x2997c6),_0x1cd838['mapper']['bindElementToMarker'](_0x2997c6,_0x143d10['markerName']),_0xe38f05&&(_0x181ca5['activeMarkers']['includes'](_0x143d10['markerName'])?_0x1cd838['writer']['addClass']('ck-suggestion-marker--active',_0x2997c6):_0x1cd838['writer']['removeClass']('ck-suggestion-marker--active',_0x2997c6));}}};}_0x181ca5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x10546f),_0x181ca5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x10546f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x16a0be(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb57080,_0x55011c,_0x2f56f0)=>{_0x2f56f0['options']['showSuggestionHighlights']&&_0x16a0be({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xb57080,_0x55011c,_0x2f56f0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x425937,_0x8be267,_0x479b31)=>{const {type:_0x14a597,id:_0x5c555a}=_0x181ca5['_splitMarkerName'](_0x8be267['markerName']),_0x4cab3a=_0x181ca5['getSuggestion'](_0x5c555a),_0x387a83=_0x4cab3a['data'];if('formatBlock'!=_0x4cab3a['type']||!_0x387a83||'setTableColumnHeader'!=_0x387a83['commandName'])return;const _0x4e99e2=_0x479b31['mapper']['markerNameToElements'](_0x8be267['markerName']);if(_0x4e99e2){for(const _0x4716cf of _0x4e99e2)_0x479b31['writer']['removeClass']('ck-suggestion-marker-'+_0x14a597,_0x4716cf),_0x479b31['writer']['removeClass']('ck-suggestion-marker--active',_0x4716cf),_0x479b31['writer']['removeAttribute']('data-suggestion',_0x4716cf),_0x479b31['mapper']['unbindElementFromMarkerName'](_0x4716cf,_0x8be267['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5adbef=this['editor'],_0x10558a=_0x5adbef['locale'];function _0x2ea6da(_0x36a2ea){return{'type':'format','content':o(_0x10558a,'*Format:*\x20%0',_0x36a2ea)};}_0x5adbef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46b2e8=>{if('formatBlock'!=_0x46b2e8['type'])return;const {data:_0x53a7f0}=_0x46b2e8;if(_0x53a7f0){if('setTableRowHeader'==_0x53a7f0['commandName']){const _0x210c63=_0x53a7f0['commandParams'][0x0]['forceValue'];return _0x2ea6da(o(_0x10558a,_0x210c63?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x53a7f0['commandName']){const _0xa4e07b=_0x53a7f0['commandParams'][0x0]['forceValue'];return _0x2ea6da(o(_0x10558a,_0xa4e07b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x2492d2=>[_0x2492d2,null]));class Nt extends _0x597b86{static get['requires'](){return[vt];}['afterInit'](){const _0x2fa0b1=this['editor'];if(!_0x2fa0b1['plugins']['has']('TableClipboard'))return;const _0x14f4af=_0x2fa0b1['plugins']['get']('TrackChangesEditing'),_0x235172=_0x2fa0b1['plugins']['get']('TableUtils'),_0x598752=_0x2fa0b1['plugins']['get'](vt),_0x41331f=_0x2fa0b1['plugins']['get']('TableClipboard');_0x598752['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2fa0b1['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2fa0b1['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5ddd54=null;_0x2fa0b1['model']['on']('insertContent',(_0x3b7930,_0x1e3a36)=>{const [_0x18f9b1,_0x391ca3]=_0x1e3a36,_0x2814eb=_0x1e3a36[_0x1e3a36['length']-0x1];_0x2814eb&&_0x2814eb['forceDefaultExecution']||_0x14f4af['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x41e503,_0x2bac54,_0x4c2c14,_0x175094,_0xce710a){if(_0x2bac54&&!_0x2bac54['is']('documentSelection'))return!0x1;const _0x3267a1=_0xce710a['getTableIfOnlyTableInContent'](_0x41e503,_0x4c2c14);if(!_0x3267a1||!Ue(_0x3267a1,void 0x0,_0x175094))return!0x1;const _0xffc6cd=_0x175094['getSelectionAffectedTableCells'](_0x4c2c14['document']['selection']);if(!_0xffc6cd['length'])return!0x1;const _0x48a231=_0xffc6cd[0x0]['findAncestor']('table'),_0x13d9c2=_0x175094['getRowIndexes'](_0xffc6cd),_0x177389=_0x175094['getColumnIndexes'](_0xffc6cd),_0x1eaa52={'startRow':_0x13d9c2['first'],'endRow':_0x13d9c2['last'],'startColumn':_0x177389['first'],'endColumn':_0x177389['last']};return 0x1==_0xffc6cd['length']&&(_0x1eaa52['endRow']+=_0x175094['getRows'](_0x3267a1)-0x1,_0x1eaa52['endColumn']+=_0x175094['getColumns'](_0x3267a1)-0x1),Ue(_0x48a231,_0x1eaa52,_0x175094);}(_0x18f9b1,_0x391ca3,_0x2fa0b1['model'],_0x235172,_0x41331f)&&(_0x3b7930['stop'](),_0x5ddd54={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2fa0b1['model']['change'](()=>{_0x2fa0b1['model']['insertContent'](_0x1e3a36[0x0],_0x1e3a36[0x1],_0x1e3a36[0x2],{'forceDefaultExecution':!0x0});const _0x40a78c=_0x226d2f(),{rowInsertionRanges:_0x4fdd0f,columnInsertionRanges:_0xae293c,insertionRanges:_0x46f766,deletionRanges:_0x291a6b,cells:_0x48231e}=_0x5ddd54;_0x4fdd0f['length']&&_0x14f4af['markMultiRangeInsertion'](_0x4fdd0f,'tablePasteRow',{'tablePasteChainId':_0x40a78c}),_0xae293c['length']&&_0x14f4af['markMultiRangeInsertion'](_0xae293c,'tablePasteColumn',{'tablePasteChainId':_0x40a78c}),_0x46f766['length']&&(_0x14f4af['markMultiRangeInsertion'](_0x46f766,'tablePaste',{'tablePasteChainId':_0x40a78c,'skipNestingCheck':!0x0}),_0x46f766['forEach'](_0x2a3bdb=>_0x2a3bdb['detach']?.())),_0x291a6b['length']&&(_0x14f4af['markMultiRangeDeletion'](_0x291a6b,'tablePaste',{'tablePasteChainId':_0x40a78c,'skipNestingCheck':!0x0}),_0x291a6b['forEach'](_0x500ef5=>_0x500ef5['detach']?.()));const _0xf89a78=_0x14f4af['markMultiRangeBlockFormat'](_0x48231e['map'](({element:_0x50f26f})=>_0x50f26f),{'formatGroupId':_0x226d2f()},[],'tablePasteCell',{'tablePasteChainId':_0x40a78c});if(_0xf89a78){const _0x5eb3a1=_0xf89a78['getMarkers'](),_0xf97b57=[];for(const {element:_0x1d8d1a,attributes:_0x2bb093}of _0x48231e){if(!_0x2bb093)continue;const _0x151ba3=_0x2fa0b1['model']['createRangeOn'](_0x1d8d1a),_0x50b07f=_0x5eb3a1['find'](_0x3785ab=>_0x3785ab['getRange']()['isEqual'](_0x151ba3));_0x50b07f&&_0xf97b57['push']([_0x50b07f['name'],_0x2bb093]);}_0xf97b57['length']&&_0xf89a78['setAttribute']('markerAttributes',Object['fromEntries'](_0xf97b57));}_0x5ddd54=null;}));},{'priority':_0x179303['high']+0xa}),_0x2fa0b1['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x479b81,_0xcf01e2)=>{const [_0x3b73b2,_0x5ecd7e,,_0x2c8bcc]=_0xcf01e2;if(!_0x5ddd54)return;_0x479b81['stop']();const _0x2402a6=_0x3b73b2['cell'],_0x196ab9=_0x5ecd7e,_0x2ac4fa=Oe(_0x2402a6),_0x1e3330=Oe(_0x196ab9);_0x479b81['return']=_0x2402a6;let _0x4a14b6=null,_0x38f5a2=null;if(_0x1e3330||_0x2ac4fa){if(_0x2ac4fa&&!_0x1e3330){_0x2c8bcc['remove'](_0x2402a6['getChild'](0x0));for(const _0xc35e77 of Array['from'](_0x196ab9['getChildren']()))_0x2c8bcc['insert'](_0xc35e77,_0x2402a6,'end');const _0x4a1d84=_0x5ddd54['rowInsertionIndexes']['includes'](_0x3b73b2['row']),_0x4f46e3=_0x5ddd54['columnInsertionIndexes']['includes'](_0x3b73b2['column']);_0x4a1d84||_0x4f46e3||(_0x4a14b6=_0x125deb['fromRange'](_0x2c8bcc['createRangeIn'](_0x2402a6)));}else _0x1e3330&&!_0x2ac4fa&&(_0x38f5a2=_0x2c8bcc['createRangeIn'](_0x2402a6));}else{const _0x59b299=_0x2c8bcc['createElement']('tableCellSuggestion'),_0x4f2b68=_0x2c8bcc['createElement']('tableCellSuggestion');_0x2c8bcc['wrap'](_0x2c8bcc['createRangeIn'](_0x2402a6),_0x4f2b68),_0x2c8bcc['insert'](_0x59b299,_0x2402a6,0x0);for(const _0x57a7c6 of Array['from'](_0x196ab9['getChildren']()))_0x2c8bcc['insert'](_0x57a7c6,_0x59b299,'end');_0x4a14b6=_0x125deb['fromRange'](_0x2c8bcc['createRangeOn'](_0x59b299)),_0x38f5a2=_0x125deb['fromRange'](_0x2c8bcc['createRangeOn'](_0x4f2b68));}const _0x5d9e24=Array['from'](_0x196ab9['getAttributes']())['filter'](([_0x2b6b8e])=>Be['includes'](_0x2b6b8e));_0x5ddd54['cells']['push']({'element':_0x2402a6,'attributes':_0x5d9e24['length']?Object['fromEntries'](_0x5d9e24):null}),_0x4a14b6&&_0x5ddd54['insertionRanges']['push'](_0x4a14b6),_0x38f5a2&&_0x5ddd54['deletionRanges']['push'](_0x38f5a2);},{'priority':'high'}),_0x235172['on']('insertColumns',(_0x372084,_0x252ddb)=>{const [_0x3dd724,_0x4b67d8={}]=_0x252ddb;if(!_0x5ddd54)return;const _0x194d87=_0x4b67d8['at']||0x0,_0x2566d0=_0x4b67d8['columns']||0x1;_0x5ddd54['columnInsertionIndexes']=new Array(_0x2566d0)['fill'](_0x194d87)['map']((_0x4f5b83,_0x19bf4f)=>_0x4f5b83+_0x19bf4f);for(const {cell:_0x19912d}of _0x235172['createTableWalker'](_0x3dd724,{'startColumn':_0x194d87,'endColumn':_0x194d87+_0x2566d0-0x1}))_0x5ddd54['columnInsertionRanges']['push'](_0x2fa0b1['model']['createRangeOn'](_0x19912d));},{'priority':'low'}),_0x235172['on']('insertRows',(_0x392709,_0x2ef4af)=>{const [_0x8dcab8,_0xd5d42b={}]=_0x2ef4af;if(!_0x5ddd54)return;const _0x5e5d05=_0xd5d42b['at']||0x0,_0x5d313e=_0xd5d42b['rows']||0x1;_0x5ddd54['rowInsertionIndexes']=new Array(_0x5d313e)['fill'](_0x5e5d05)['map']((_0x5da61e,_0x3d4448)=>_0x5da61e+_0x3d4448);for(const {cell:_0x3b2dc1}of _0x235172['createTableWalker'](_0x8dcab8,{'startRow':_0x5e5d05,'endRow':_0x5e5d05+_0x5d313e-0x1}))_0x5ddd54['rowInsertionRanges']['push'](_0x2fa0b1['model']['createRangeOn'](_0x3b2dc1));},{'priority':'low'}),_0x14f4af['descriptionFactory']['registerDescriptionCallback'](_0x392afc=>{if(_0x392afc['subType']&&_0x392afc['subType']['startsWith']('tablePaste'))return _0x392afc['previous']?{}:{'type':'insertion','content':o(_0x2fa0b1['locale'],'*Replace\x20table\x20cells*')};});const _0x4a6de7=()=>!0x1;for(const _0x428eaa of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x14f4af['_suggestionFactory']['registerCustomCallback']('insertion',_0x428eaa,'join',_0x4a6de7),_0x14f4af['_suggestionFactory']['registerCustomCallback']('deletion',_0x428eaa,'join',_0x4a6de7),_0x14f4af['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x428eaa,'join',_0x4a6de7);_0x14f4af['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4a6de7),_0x14f4af['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc64885,_0x29d4e4,_0x4e3f59)=>{const _0x15bfae=_0xc64885['map'](_0x1ddf26=>_0x1ddf26['getContainedElement']())['filter'](_0x3fa41c=>_0x3fa41c),_0x474c0f=new Map(_0x15bfae['map'](_0x24d211=>[_0x24d211,null]));if(_0x5ddd54){for(const {element:_0x2effb1,attributes:_0x4cf75e}of _0x5ddd54['cells'])_0x4cf75e&&_0x474c0f['set'](_0x2effb1,_0x4cf75e);}else{if(_0x4e3f59&&_0x4e3f59['markerAttributes'])for(const [_0x237555,_0x5f3e48]of Object['entries'](_0x4e3f59['markerAttributes'])){const _0x4b983a=_0x2fa0b1['model']['markers']['get'](_0x237555),_0x3aa4ea=_0x4b983a?_0x4b983a['getRange']()['getContainedElement']():null;_0x3aa4ea&&_0x474c0f['set'](_0x3aa4ea,_0x5f3e48);}}_0x2fa0b1['model']['change'](_0x56bfa5=>{for(const [_0x4b5cef,_0x513927]of _0x474c0f)_0x56bfa5['setAttributes']({...xe,..._0x513927},_0x4b5cef);});});const _0x18bb44=(_0x34d87a,_0x5b322e)=>{_0x14f4af['_suggestionFactory']['registerCustomCallback'](_0x34d87a,'tablePaste',_0x5b322e,(_0x539f63,_0x512905,_0x37e4ec)=>{_0x2fa0b1['model']['change'](_0x464092=>{const _0x1d7bb7=[];for(const _0x27e100 of _0x539f63){const _0x3e3d08=_0x27e100['start']['nodeAfter'];_0x3e3d08['is']('element','tableCellSuggestion')&&_0x1d7bb7['push'](_0x3e3d08);}_0x14f4af['_suggestionFactory']['getSuggestionCallback'](_0x34d87a,null,_0x5b322e)(_0x539f63,_0x512905,_0x37e4ec);for(const _0x4180e5 of _0x1d7bb7)'$graveyard'!=_0x4180e5['root']['rootName']&&_0x464092['unwrap'](_0x4180e5);});});};_0x18bb44('insertion','accept'),_0x18bb44('insertion','discard'),_0x18bb44('deletion','accept'),_0x18bb44('deletion','discard'),_0x14f4af['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x36909b=>{const _0x32cc19=_0x36909b['map'](_0x2de879=>_0x2de879['getContainedElement']()),_0x3c5081=_0x32cc19[0x0]['findAncestor']('table'),{minRow:_0x27b39d,maxRow:_0x531e5b}=_0x598752['_getCoordsForCells'](_0x32cc19);_0x235172['removeRows'](_0x3c5081,{'at':_0x27b39d,'rows':_0x531e5b-_0x27b39d+0x1});}),_0x14f4af['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2e54aa=>{const _0xc94e6c=_0x2e54aa['map'](_0x54f54b=>_0x54f54b['getContainedElement']()),_0x25791d=_0xc94e6c[0x0]['findAncestor']('table'),{minColumn:_0x550817,maxColumn:_0x27fad9}=_0x598752['_getCoordsForCells'](_0xc94e6c);_0x235172['removeColumns'](_0x25791d,{'at':_0x550817,'columns':_0x27fad9-_0x550817+0x1});});const _0x2cd64a=(_0x2448e3,_0x590965)=>{if(!_0x590965['subType']||!_0x590965['subType']['startsWith']('tablePaste'))return;const _0x2ccfb2=_0x590965['attributes']['tablePasteChainId'],_0x506212=_0x14f4af['getSuggestions']()['filter'](_0xc29f28=>_0xc29f28['isInContent']&&_0xc29f28['attributes']&&_0xc29f28['attributes']['tablePasteChainId']==_0x2ccfb2);_0x506212['length']&&_0x590965['getAllAdjacentSuggestions']()['length']!=_0x506212['length']&&_0x506212['reduce']((_0x34d1b9,_0x56cf63)=>(_0x34d1b9['next']=_0x56cf63,_0x56cf63['previous']=_0x34d1b9,_0x56cf63));};function _0x5aa4d5(_0x5eef9d,_0x3313ff=!0x0){const {id:_0x2b9529,authorId:_0x2acf7f}=_0x14f4af['_splitMarkerName'](_0x5eef9d['markerName']),_0x55cafa=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x54478f=_0x14f4af['activeMarkers']['includes'](_0x5eef9d['markerName']);return _0x54478f&&_0x55cafa['push']('ck-suggestion-marker--active'),{'classes':_0x55cafa,'attributes':{'data-suggestion':_0x2b9529,'data-author-id':_0x2acf7f},'priority':_0x54478f&&_0x3313ff?0xbc2:0xbb8};}_0x14f4af['on']('suggestionLoaded',_0x2cd64a,{'priority':'high'}),_0x14f4af['on']('suggestionUnloaded',_0x2cd64a,{'priority':'high'}),_0x2fa0b1['model']['document']['registerPostFixer'](()=>{let _0x2f1528=!0x1;const _0x531b07=Array['from'](_0x2fa0b1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e9e81,data:_0x3dada}of _0x531b07){const {group:_0x503dc1,type:_0xd20327,id:_0x5dfcea}=_0x14f4af['_splitMarkerName'](_0x4e9e81);if('suggestion'!=_0x503dc1||'deletion'!=_0xd20327||_0x3dada['oldRange'])continue;if(!_0x14f4af['hasSuggestion'](_0x5dfcea))continue;const _0x4913f3=_0x14f4af['getSuggestion'](_0x5dfcea)['getRanges'](),_0x4b0076=_0x2fa0b1['plugins']['get']('Users')['me'];for(const _0x143244 of _0x14f4af['getSuggestions']()){if(!_0x143244['isInContent']||_0x143244['author']!=_0x4b0076)continue;if('formatBlock'!=_0x143244['type']||'tablePasteCell'!=_0x143244['subType'])continue;if(_0x143244['getRanges']()['every'](_0x2f2c30=>_0x4913f3['some'](_0x5a704c=>_0x5a704c['containsRange'](_0x2f2c30,!0x0)))){for(const _0x3b12e4 of _0x143244['getAllAdjacentSuggestions']())_0x3b12e4['isInContent']&&(_0x3b12e4['discard'](),_0x2f1528=!0x0);}}}return _0x2f1528;}),_0x2fa0b1['model']['document']['registerPostFixer'](_0x3ae413=>{const _0x5dd6bb=_0x2fa0b1['commands']['get']('redo');if(!_0x5dd6bb||!_0x5dd6bb['_createdBatches']['has'](_0x3ae413['batch']))return!0x1;let _0x7fe576=!0x1;const _0x62a809=_0x2fa0b1['plugins']['get']('Users')['me'],_0x28f967=_0x2fa0b1['model']['document']['differ']['getChanges'](),_0x6ee468=Array['from'](_0x2fa0b1['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x12ea2c,data:_0x243847})=>{const {group:_0x101386,subType:_0x54ed0f,authorId:_0x9afd41}=_0x14f4af['_splitMarkerName'](_0x12ea2c);return'suggestion'==_0x101386&&'tablePaste'==_0x54ed0f&&_0x9afd41==_0x62a809['id']&&!_0x243847['oldRange'];});for(const _0x39415f of _0x28f967){if('insert'!=_0x39415f['type']||'tableCellSuggestion'!=_0x39415f['name']||0x1!=_0x39415f['length'])continue;const _0x8cdebc=_0x3ae413['createRange'](_0x39415f['position'],_0x39415f['position']['getShiftedBy'](0x1));if(!_0x6ee468['find'](({data:_0x24a027})=>_0x24a027['newRange']['isEqual'](_0x8cdebc))){for(const {name:_0x54edaa,data:_0x578829}of _0x6ee468)if(_0x8cdebc['containsRange'](_0x578829['newRange'])){_0x3ae413['updateMarker'](_0x54edaa,{'range':_0x8cdebc}),_0x7fe576=!0x0;break;}}}return _0x7fe576;}),_0x2fa0b1['model']['document']['registerPostFixer'](_0xc04250=>{let _0x4a064f=!0x1;const _0x20c187=_0x2fa0b1['plugins']['get']('Users')['me'],_0x33bc61=_0x14f4af['getSuggestions']()['filter'](_0x41a203=>_0x41a203['isInContent']&&_0x41a203['author']==_0x20c187),_0x8261c6=new Set(),_0x231c3f=new Set();for(const _0x4f500b of _0x33bc61)if('tablePaste'==_0x4f500b['subType'])for(const _0x477caf of _0x4f500b['getMarkers']()){const _0x12e933=_0x477caf['getRange']()['getContainedElement']();if(_0x12e933){if(_0x12e933['is']('element','tableCellSuggestion')&&Oe(_0x12e933)){_0x4f500b['removeMarker'](_0x477caf['name']),_0x8261c6['add'](_0x12e933),_0x4a064f=!0x0;const _0x5671d1=_0x12e933['nextSibling'],_0x4503be=_0x12e933['previousSibling'],_0x22349e=_0x5671d1&&_0x5671d1['is']('element','tableCellSuggestion'),_0x490a2b=_0x4503be&&_0x4503be['is']('element','tableCellSuggestion');_0x22349e&&!_0x8261c6['has'](_0x5671d1)&&_0x231c3f['add'](_0x5671d1),_0x490a2b&&!_0x8261c6['has'](_0x4503be)&&_0x231c3f['add'](_0x4503be);}else _0x12e933['is']('element','paragraph')&&_0x12e933['isEmpty']&&(_0x4f500b['removeMarker'](_0x477caf['name']),_0x4a064f=!0x0);}}else{if('tablePasteCell'==_0x4f500b['subType']){if(!_0x4f500b['attributes']||!_0x4f500b['attributes']['tablePasteChainId'])continue;const _0x274eb9=_0x4f500b['attributes']['markerAttributes'];if(_0x274eb9&&Object['keys'](_0x274eb9)['length'])continue;const _0x325e4e=_0x4f500b['attributes']['tablePasteChainId'];let _0x516604=!0x0,_0x3146d5=!0x0;for(const _0x4d8950 of _0x33bc61)if(_0x4d8950['subType']&&_0x4d8950['subType']['startsWith']('tablePaste')){if(!_0x4d8950['attributes']['tablePasteChainId']){_0x3146d5=!0x1;break;}if(_0x4d8950['id']!=_0x4f500b['id']&&_0x4d8950['attributes']['tablePasteChainId']==_0x325e4e){_0x516604=!0x1;break;}}_0x3146d5&&_0x516604&&(_0x4f500b['removeMarkers'](),_0x4a064f=!0x0);}}for(const _0x4a38b5 of _0x8261c6)_0xc04250['remove'](_0x4a38b5);for(const _0x5ecddd of _0x231c3f)_0xc04250['unwrap'](_0x5ecddd);return _0x4a064f;}),_0x2fa0b1['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xeba825=>_0x5aa4d5(_0xeba825),'converterPriority':'high'}),_0x2fa0b1['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x34cdd7,_0x4999d5)=>_0x4999d5['options']['showSuggestionHighlights']?_0x5aa4d5(_0x34cdd7,!0x1):null,'converterPriority':'high'});const _0x2b79f7=_0x2fa0b1['editing']['view'];this['listenTo'](_0x2b79f7['document'],'clipboardOutput',(_0x2581a0,_0x1165e2)=>{const _0x13ef56=[];for(const _0x3a63b6 of _0x2b79f7['createRangeIn'](_0x1165e2['content'])['getItems']())_0x3a63b6['is']('element','suggestion-td')&&_0x13ef56['push'](_0x3a63b6);_0x2b79f7['change'](_0x267e98=>{for(const _0x57b77a of _0x13ef56)_0x267e98['move'](_0x267e98['createRangeIn'](_0x57b77a),_0x267e98['createPositionBefore'](_0x57b77a)),_0x267e98['remove'](_0x57b77a);});});}}function Oe(_0x123bf1){if(_0x123bf1['isEmpty'])return!0x0;const _0x2416f8=_0x123bf1['getChild'](0x0);return _0x2416f8['is']('element','paragraph')&&_0x2416f8['isEmpty'];}function Ue(_0x5627a7,_0x1aa62f={},_0x5108d4){for(const {isAnchor:_0x5b11fc,cellHeight:_0x326d50,cellWidth:_0x54e922}of _0x5108d4['createTableWalker'](_0x5627a7,{'includeAllSlots':!0x0,..._0x1aa62f}))if(!_0x5b11fc||0x1!=_0x326d50||0x1!=_0x54e922)return!0x1;return!0x0;}class Dt extends _0x597b86{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x238b9f=this['editor']['plugins']['get']('TrackChangesEditing');_0x238b9f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x238b9f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x238b9f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x238b9f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x238b9f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x238b9f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2ab678,_0x58b83f){const _0x8bdf47=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5809ac=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x200bcd=_0x58b83f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x427bec=_0x5809ac['getColumnGroupElement'](_0x200bcd);let _0x3d4d9e=_0x427bec?_0x5809ac['getTableColumnsWidths'](_0x427bec):null,_0x51e3fe=_0x200bcd['getAttribute']('tableWidth')||null;const _0x33b64a=_0x58b83f['tableWidth']||_0x51e3fe,_0x3a806e=_0x58b83f['columnWidths']||_0x3d4d9e,_0x96c5b7=this['editor']['plugins']['get']('Users')['me'];for(const _0x170ed2 of _0x8bdf47['getSuggestions']()){const _0x513158=_0x170ed2['getContainedElement']();if('resizeTable'===_0x170ed2['subType']&&_0x513158===_0x200bcd){_0x170ed2['author']!==_0x96c5b7&&_0x170ed2['discard']();const _0x2eca73=_0x170ed2['data']['commandParams'];_0x51e3fe=_0x2eca73[0x0]['tableWidth'],_0x3d4d9e=_0x2eca73[0x0]['columnWidths'];break;}}_0x2ab678({'table':_0x200bcd,'tableWidth':_0x33b64a,'columnWidths':_0x3a806e}),_0x8bdf47['markBlockFormat'](_0x200bcd,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x51e3fe,'columnWidths':_0x3d4d9e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1b8113){if('formatBlock'!=_0x1b8113['type']&&'formatInline'!=_0x1b8113['type'])return;const {data:_0x1a94d8}=_0x1b8113;if(_0x1a94d8&&'resizeTable'===_0x1a94d8['formatGroupId']){const _0x1a4d2a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1a4d2a)};}}}class Mt extends _0x597b86{['afterInit'](){const _0x50c370=this['editor'];_0x50c370['plugins']['has']('Template')&&_0x50c370['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x597b86{['afterInit'](){const _0x600175=this['editor'];if(!_0x600175['commands']['get']('insertTableOfContents'))return;_0x600175['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2cd56a=_0x600175['plugins']['get']('TrackChangesEditing'),_0x50ae40=_0x600175['locale'];_0x2cd56a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x342ec0=>o(_0x50ae40,'ELEMENT_TABLE_OF_CONTENTS',_0x342ec0));}}class Bt extends _0x597b86{['afterInit'](){const _0xc454f3=this['editor'];if(!_0xc454f3['plugins']['has']('Title'))return;const _0x373590=_0xc454f3['plugins']['get']('TrackChangesEditing');_0x373590['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xc454f3['locale'],'ELEMENT_TITLE')),_0xc454f3['model']['document']['registerPostFixer'](_0x133c53=>{let _0x43ce01=!0x1;const _0x101d9f=Array['from'](_0xc454f3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb48c8d,data:_0x343b62}of _0x101d9f){const {group:_0x33a4ea}=_0x373590['_splitMarkerName'](_0xb48c8d);if('suggestion'!==_0x33a4ea||!_0x343b62['newRange'])continue;const _0x87e82f=_0x343b62['newRange'],_0x2578ed=_0x87e82f['end']['nodeBefore'];if(!_0x2578ed||!_0x2578ed['is']('element','title-content'))continue;if(!_0x87e82f['start']['isTouching'](_0x87e82f['end']))continue;const _0x355e2a=_0xc454f3['model']['schema']['getNearestSelectionRange'](_0x87e82f['end'],'forward');if(_0x355e2a&&_0x355e2a['isCollapsed']){const _0x35ad95=_0x133c53['createRange'](_0x87e82f['start'],_0x355e2a['start']);_0x35ad95['isEqual'](_0x87e82f)||(_0x133c53['updateMarker'](_0xb48c8d,{'range':_0x35ad95}),_0x43ce01=!0x0);}_0x43ce01||(_0x133c53['removeMarker'](_0xb48c8d),_0x43ce01=!0x0);}return _0x43ce01;});}}class Ot extends _0x597b86{['afterInit'](){const _0x1502c0=this['editor'],_0x372967=_0x1502c0['plugins']['get']('TrackChangesEditing');_0x1502c0['plugins']['has']('UndoEditing')&&(_0x372967['enableCommand']('undo'),_0x372967['enableCommand']('redo'));}}class Rt extends _0x597b86{static get['requires'](){return[vt];}['afterInit'](){const _0x1961cb=this['editor'];if(!_0x1961cb['plugins']['has']('TableCaptionEditing'))return;_0x1961cb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x597b86{['tableProperties'];['tableCellProperties'];constructor(_0x3cb234){super(_0x3cb234),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 _0x17e072=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x564480 of this['tableProperties'])_0x17e072['enableCommand'](_0x564480,(_0x237997,_0x3f40b1)=>{const _0x5a9440=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x564480,[_0x5a9440],this['tableProperties'],'tableProperties',_0x237997,_0x3f40b1);});_0x17e072['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x17e072['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x17e072['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x221415,_0x50c72c)=>this['handleDiscardAction'](this['tableProperties'],_0x221415,_0x50c72c)),_0x17e072['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x14ea42 of this['tableCellProperties'])_0x17e072['enableCommand'](_0x14ea42,(_0x4e264c,_0x519c43)=>{const _0x536244=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x14ea42,_0x536244,this['tableCellProperties'],'tableCellProperties',_0x4e264c,_0x519c43);});_0x17e072['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x17e072['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x17e072['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1fd271,_0x479188)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1fd271,_0x479188)),_0x17e072['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x17e072['descriptionFactory']['registerDescriptionCallback'](_0x396f0b=>this['handleSuggestionDescription'](_0x396f0b));}['_handlePropertyChange'](_0x22b986,_0x56e1d6,_0x353467,_0x4f145e,_0x9cf664,_0x1a45cb){const _0x42153a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1a45cb['batch'],()=>{for(const _0xf54d66 of _0x56e1d6){if(this['_getSuggestion'](_0xf54d66,_0x4f145e))_0x9cf664(_0x1a45cb);else{const _0x54a040={};for(const _0x19c7e1 of _0x353467){const _0x9c8e2e=_0xf54d66['getAttribute'](_0x19c7e1);void 0x0!==_0x9c8e2e&&(_0x54a040[_0x19c7e1]=_0x9c8e2e);}_0x9cf664(_0x1a45cb),_0x42153a['markBlockFormat'](_0xf54d66,{'commandParams':[_0x54a040]},[],_0x4f145e);}}});}['handleDiscardAction'](_0x469dd7,_0x466a4f,_0x19e9de){const _0x5b2a3b=_0x466a4f[0x0]['start']['nodeAfter'],_0x5b8cbe=_0x19e9de['commandParams'][0x0];this['editor']['model']['change'](_0x4e044c=>{for(const _0x510e44 of _0x469dd7)void 0x0!==_0x5b8cbe[_0x510e44]?_0x4e044c['setAttribute'](_0x510e44,_0x5b8cbe[_0x510e44],_0x5b2a3b):_0x4e044c['removeAttribute'](_0x510e44,_0x5b2a3b);});}['handleSuggestionDescription'](_0x550a0d){if(_0x550a0d['data'])switch(_0x550a0d['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'](_0xb612e4,_0x1f7ee9){const _0x3dd17a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x49ab77 of _0x3dd17a['getSuggestions']({'skipNotAttached':!0x0})){const _0x2caaf7=_0x49ab77['getContainedElement']();if(_0x49ab77['subType']===_0x1f7ee9&&_0x2caaf7===_0xb612e4)return _0x49ab77;}return null;}}const m='$elementName';class p extends _0x597b86{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4c0069,_0x172e62,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x117e7f){super(_0x117e7f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x47780f,_0x149006,_0xcf053c,_0x46481e)=>{this['_model']['change'](()=>{for(const _0x475c88 of[..._0x46481e,..._0xcf053c])this['_model']['markers']['has'](_0x475c88)&&_0x117e7f['editing']['reconvertMarker'](_0x475c88);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x117e7f['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(),_0x117e7f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x117e7f['config']['get']('trackChanges.trackFormatChanges'),_0x117e7f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x117e7f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x117e7f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xcd7cf6=this['editor'],_0x41cb77=(_0x1b5cf6,_0xfeab0d)=>{if('attribute'!=_0x1b5cf6)return'ck-suggestion-marker-'+_0x1b5cf6;const _0x197402=_0xfeab0d['split']('|')[0x0];return this['_isBlockAttribute'](_0x197402)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xcd7cf6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3c48a0=>{const {id:_0x3e37a8,authorId:_0x8de617,type:_0x4e27f3,subType:_0x2af474}=this['_splitMarkerName'](_0x3c48a0['markerName']),_0x346f88=['ck-suggestion-marker',_0x41cb77(_0x4e27f3,_0x2af474)];let _0x317dcf=0xbb8;return this['activeMarkers']['includes'](_0x3c48a0['markerName'])&&(_0x346f88['push']('ck-suggestion-marker--active'),_0x317dcf=0xbc2),'deletion'==_0x4e27f3&&(_0x317dcf+=0x5),{'classes':_0x346f88,'attributes':{'data-suggestion':_0x3e37a8,'data-author-id':_0x8de617},'priority':_0x317dcf};}}),_0xcd7cf6['conversion']['for']('dataDowncast')['add'](_0x460199=>{_0x460199['on']('addMarker:suggestion',(_0x391a74,_0x505bce,_0x5d44ef)=>{if(!_0x5d44ef['options']['showSuggestionHighlights'])return;const _0x54141d=_0x505bce['item'];if(!_0x54141d)return;const _0x1f1e27=_0x5d44ef['mapper']['toViewElement'](_0x54141d);_0xcd7cf6['model']['schema']['isObject'](_0x54141d)&&_0x1f1e27&&!_0x1f1e27['getCustomProperty']('widget')&&_0x1f1e27['is']('containerElement')&&_0x3e1c29(_0x1f1e27,_0x5d44ef['writer']);},{'priority':'high'});}),_0xcd7cf6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2e9571,_0x70877c)=>{if(!_0x70877c['options']['showSuggestionHighlights'])return null;const {type:_0xef1d7,subType:_0x20975c}=this['_splitMarkerName'](_0x2e9571['markerName']);return{'classes':['ck-suggestion-marker',_0x41cb77(_0xef1d7,_0x20975c)],'priority':0xbb8};}});const _0x3206b7=({showActiveMarkers:_0x2016ec=!0x0,isAttributeSuggestion:_0x2920de=!0x1}={})=>(_0x4b622e,_0x113723,_0x5244a2)=>{if(!_0x113723['item'])return;const {id:_0x2210fc,authorId:_0x13bcbd}=this['_splitMarkerName'](_0x113723['markerName']);if(_0x2920de){const _0x1fa68d=this['_suggestions']['get'](_0x2210fc),_0x5efc55=this['_getAttributeKey'](_0x1fa68d);if(!this['_isBlockAttribute'](_0x5efc55))return;}if(_0x113723['item']['is']('selection'))return void _0x5244a2['consumable']['consume'](_0x113723['item'],_0x4b622e['name']);const _0x5dd612=_0x5244a2['mapper']['toViewElement'](_0x113723['item']);if(_0x113723['item']['is']('element')&&_0xcd7cf6['model']['schema']['isBlock'](_0x113723['item'])&&!_0x5dd612['getCustomProperty']('addHighlight')){_0x5244a2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5dd612),_0x5244a2['writer']['setAttribute']('data-suggestion',_0x2210fc,_0x5dd612),_0x5244a2['writer']['setAttribute']('data-author-id',_0x13bcbd,_0x5dd612),_0x5244a2['mapper']['bindElementToMarker'](_0x5dd612,_0x113723['markerName']),_0x2016ec&&(this['activeMarkers']['includes'](_0x113723['markerName'])?_0x5244a2['writer']['addClass']('ck-suggestion-marker--active',_0x5dd612):_0x5244a2['writer']['removeClass']('ck-suggestion-marker--active',_0x5dd612));for(const _0x4683c8 of _0xcd7cf6['model']['createRangeIn'](_0x113723['item'])['getItems']())_0x5244a2['consumable']['consume'](_0x4683c8,_0x4b622e['name']);_0x5244a2['consumable']['consume'](_0x113723['item'],_0x4b622e['name']);}};_0xcd7cf6['conversion']['for']('dataDowncast')['add'](_0x3688ca=>{_0x3688ca['on']('addMarker:suggestion:formatBlock',(_0x41c716,_0x23b6e7,_0x798da2)=>{_0x798da2['options']['showSuggestionHighlights']&&_0x3206b7({'showActiveMarkers':!0x1})(_0x41c716,_0x23b6e7,_0x798da2);},{'priority':'highest'});}),_0xcd7cf6['conversion']['for']('dataDowncast')['add'](_0x14d699=>{_0x14d699['on']('addMarker:suggestion:attribute',(_0x3246c3,_0x22e8e3,_0x2f0f15)=>{_0x2f0f15['options']['showSuggestionHighlights']&&_0x3206b7({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3246c3,_0x22e8e3,_0x2f0f15);},{'priority':'highest'});}),_0xcd7cf6['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x8cb6c,_0x4c84f6)=>_0x4c84f6['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x8cb6c['substr'](0xb)}}),_0xcd7cf6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x272020,{writer:_0x3772c9})=>{let _0x5241eb='suggestion:'+_0x272020['getAttribute']('suggestion-type')+':'+_0x272020['getAttribute']('id');return _0x272020['getAttribute']('marker-count')&&(_0x5241eb+=':'+_0x272020['getAttribute']('marker-count')),_0x3772c9['createElement']('$marker',{'data-name':_0x5241eb});}}),_0xcd7cf6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xcd7cf6['conversion']['for']('editingDowncast')['add'](_0x23b6ca=>{_0x23b6ca['on']('addMarker:suggestion:formatBlock',_0x3206b7(),{'priority':'high'});}),_0xcd7cf6['conversion']['for']('editingDowncast')['add'](_0x288893=>{_0x288893['on']('addMarker:suggestion:attribute',_0x3206b7({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xcd7cf6['conversion']['for']('editingDowncast')['add'](_0x221e2b=>{_0x221e2b['on']('removeMarker:suggestion:formatBlock',(_0x45d5f3,_0x17826e,_0x1b6041)=>{const _0x2d0cb1=_0x1b6041['mapper']['markerNameToElements'](_0x17826e['markerName']);if(_0x2d0cb1){for(const _0x4e8df4 of _0x2d0cb1)_0x4e8df4['getCustomProperty']('addHighlight')||(_0x1b6041['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4e8df4),_0x1b6041['writer']['removeAttribute']('data-suggestion',_0x4e8df4),_0x1b6041['writer']['removeAttribute']('data-author-id',_0x4e8df4),_0x1b6041['mapper']['unbindElementFromMarkerName'](_0x4e8df4,_0x17826e['markerName']));}},{'priority':'high'});}),_0xcd7cf6['conversion']['for']('editingDowncast')['add'](_0x255505=>{_0x255505['on']('removeMarker:suggestion:attribute',(_0x1bcf65,_0x3747be,_0x10a2d)=>{const _0x3be720=_0x10a2d['mapper']['markerNameToElements'](_0x3747be['markerName']);if(!_0x3be720)return;const {id:_0xda35f1}=this['_splitMarkerName'](_0x3747be['markerName']),_0x1c7cd8=this['_suggestions']['get'](_0xda35f1),_0x258633=this['_getAttributeKey'](_0x1c7cd8);if(this['_isBlockAttribute'](_0x258633)){for(const _0x446e84 of _0x3be720)_0x446e84['getCustomProperty']('addHighlight')||(_0x10a2d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x446e84),_0x10a2d['writer']['removeAttribute']('data-suggestion',_0x446e84),_0x10a2d['writer']['removeAttribute']('data-author-id',_0x446e84),_0x10a2d['mapper']['unbindElementFromMarkerName'](_0x446e84,_0x3747be['markerName']));}},{'priority':'high'});}),_0xcd7cf6['model']['document']['registerPostFixer'](_0x280b0d=>{let _0x1da5a7=!0x1;const _0x3c1b39=Array['from'](_0xcd7cf6['model']['document']['differ']['getChangedMarkers']()),_0x2f943b=new Set();for(const {name:_0x4e8a26,data:_0x4fb6b1}of _0x3c1b39){const {group:_0x4b2f7a,type:_0x265c44,subType:_0x204141,id:_0x435a6d}=this['_splitMarkerName'](_0x4e8a26);if('suggestion'!==_0x4b2f7a)continue;const _0x5173a2=this['_suggestions']['get'](_0x435a6d);if(null!=_0x4fb6b1['newRange']){'formatInline'==_0x265c44&&(_0x1da5a7=_0x1da5a7||Pt(_0x4fb6b1['newRange'],_0x4e8a26,_0x280b0d,_0xcd7cf6['model']['schema']));const _0x568f11='attribute'==_0x265c44&&this['_isBlockAttribute'](_0x204141['split']('|')[0x0]);if(_0x4fb6b1['newRange']['isCollapsed']||'$graveyard'==_0x4fb6b1['newRange']['root']['rootName']||'formatBlock'==_0x265c44&&!Ft(_0x4fb6b1['newRange'])||_0x568f11&&!Ft(_0x4fb6b1['newRange'])||'deletion'==_0x265c44&&!(!Vt(_0x5e3dd9=_0x4fb6b1['newRange'])&&!function(_0x4e28be){return _0x4e28be['start']['parent']==_0x4e28be['end']['nodeBefore']&&_0x4e28be['start']['isAtEnd'];}(_0x5e3dd9)))_0x280b0d['removeMarker'](_0x4e8a26),_0x1da5a7=!0x0;else{if(!_0x5173a2||!_0x5173a2['isInContent'])continue;if(_0x4fb6b1['newRange']&&_0x4fb6b1['oldRange']&&_0x4fb6b1['newRange']['isEqual'](_0x4fb6b1['oldRange']))continue;_0x2f943b['add'](_0x5173a2);}}}var _0x5e3dd9;return _0x2f943b['size']>0x0&&(_0x1da5a7=!!this['_joinWithAdjacentSuggestions'](_0x2f943b)||_0x1da5a7),_0x1da5a7;}),_0xcd7cf6['model']['document']['registerPostFixer'](_0x4ce842=>{let _0x69144=!0x1;for(const _0x3c182d of _0xcd7cf6['model']['document']['differ']['getChanges']())if('insert'==_0x3c182d['type'])for(const _0x4ec3d2 of this['_suggestions']['values']()){if(_0x4ec3d2['isMultiRange']||!_0x4ec3d2['isInContent'])continue;const _0xd0def1='formatBlock'==_0x4ec3d2['type'],_0x420dae=this['_getAttributeKey'](_0x4ec3d2),_0x24c6c4=_0x420dae&&this['_isBlockAttribute'](_0x420dae);if(!_0xd0def1&&!_0x24c6c4)continue;const _0x359a27=_0x4ec3d2['getFirstRange']();if(_0x359a27['start']['parent']!=_0x359a27['end']['parent']&&!_0x359a27['end']['isAtEnd']){const _0x52eda6=_0xcd7cf6['model']['createPositionAt'](_0x359a27['start']['nodeAfter'],'end'),_0x1d9b7a=_0xcd7cf6['model']['createRange'](_0x359a27['start'],_0x52eda6);_0x4ce842['updateMarker'](_0x4ec3d2['getFirstMarker'](),{'range':_0x1d9b7a}),_0x69144=!0x0;}}return _0x69144;}),_0xcd7cf6['model']['document']['registerPostFixer'](_0x2047f7=>this['_processAttributeChanges'](_0x2047f7)),_0xcd7cf6['model']['document']['registerPostFixer'](_0x405bc1=>!_0x405bc1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x405bc1)),_0xcd7cf6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xcd7cf6['model']['document']['on']('change:data',(_0x80742f,_0xfa2e2b)=>{if(!_0xfa2e2b['isLocal']||_0xfa2e2b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1cff97=_0xcd7cf6['model']['document']['differ']['getChanges']();if(0x0==_0x1cff97['length'])return;const _0x42cf81=[],_0x40f130=_0x1cff97['filter'](_0x1e5e71=>'attribute'==_0x1e5e71['type']),_0x5d4288=_0x1cff97['filter'](_0x34ce1e=>'insert'==_0x34ce1e['type']&&'$text'!=_0x34ce1e['name']);for(const _0x5e81c8 of _0x40f130)this['_isRegisteredAttribute'](_0x5e81c8['attributeKey'])&&_0x42cf81['push']({'key':_0x5e81c8['attributeKey'],'newValue':_0x5e81c8['attributeNewValue'],'oldValue':_0x5e81c8['attributeOldValue'],'range':Lt(_0x5e81c8['range'],_0xcd7cf6['model'])});for(const _0x4b1ac0 of _0x5d4288){if('rename'!=_0x4b1ac0['action']&&'refresh'!=_0x4b1ac0['action'])continue;const _0x1e2f71=Jt(_0x4b1ac0['position']['nodeAfter'],_0xcd7cf6['model']),_0x928b5b=_0x4b1ac0['before'];'rename'==_0x4b1ac0['action']&&_0x42cf81['push']({'key':m,'newValue':_0x4b1ac0['name'],'oldValue':_0x928b5b['name'],'range':_0x1e2f71});for(const [_0x373f19,_0x1c7957]of _0x928b5b['attributes']){if(!this['_isRegisteredAttribute'](_0x373f19))continue;const _0x50061d=_0x4b1ac0['attributes']['get'](_0x373f19);_0x1c7957!==_0x50061d&&_0x42cf81['push']({'key':_0x373f19,'newValue':_0x50061d,'oldValue':_0x1c7957,'range':_0x1e2f71});}for(const [_0x2605fb,_0x243c77]of _0x4b1ac0['attributes'])this['_isRegisteredAttribute'](_0x2605fb)&&(_0x928b5b['attributes']['has'](_0x2605fb)||_0x42cf81['push']({'key':_0x2605fb,'newValue':_0x243c77,'oldValue':null,'range':_0x1e2f71}));}0x0!=_0x42cf81['length']&&_0xcd7cf6['model']['enqueueChange'](_0xfa2e2b,_0x3c9d14=>{const _0x3b953a=_0x226d2f();for(const {range:_0x298c5f,key:_0xbca757,oldValue:_0x210838,newValue:_0x4b71f3}of _0x42cf81)this['markAttributeChange'](_0x298c5f,_0xbca757,_0x210838,_0x4b71f3,{'groupId':_0x3b953a});this['_reduceExistingSuggestions'](_0x3c9d14,_0x42cf81);});},{'priority':'lowest'}),_0xcd7cf6['model']['markers']['on']('update:suggestion',(_0x250264,_0x609719,_0x410c1f)=>{if(null==_0x410c1f){const {id:_0x1f0baa}=this['_splitMarkerName'](_0x609719['name']),_0x55049d=this['_suggestions']['get'](_0x1f0baa);_0x55049d&&_0x55049d['addMarkerName'](_0x609719['name']);}}),_0xcd7cf6['model']['document']['on']('change:data',()=>{const _0x1b930a=Array['from'](_0xcd7cf6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5a18b4=>'suggestion'===this['_splitMarkerName'](_0x5a18b4['name'])['group']);if(0x0===_0x1b930a['length'])return;_0x1b930a['sort']((_0x1006c1,_0x1e4a56)=>{const _0x5cf914=_0x1006c1['data']['oldRange'],_0x9f576d=_0x1e4a56['data']['oldRange'];return null===_0x5cf914&&null===_0x9f576d?0x0:null===_0x5cf914&&null!==_0x9f576d?-0x1:null!==_0x5cf914&&null===_0x9f576d?0x1:_0x5cf914['start']['isBefore'](_0x9f576d['start'])?-0x1:0x1;});const _0x2a4915=new Set(),_0x28260b=new Set();for(const {name:_0x2e67b9,data:_0x193b26}of _0x1b930a){const {id:_0xf56e5b}=this['_splitMarkerName'](_0x2e67b9);if(null===_0x193b26['oldRange']){const _0xefac3c=this['_handleNewSuggestionMarker'](_0x2e67b9);_0x28260b['add'](_0xefac3c);}else{const _0x5217c7=this['_suggestions']['get'](_0xf56e5b);null!==_0x193b26['newRange']||_0x5217c7['isInContent']?(_0x2a4915['add'](_0x5217c7['head']),_0x28260b['add'](_0x5217c7)):this['_removeSuggestion'](_0x5217c7);}}_0x28260b['size']>0x0&&this['_refreshSuggestionsChain'](_0x28260b);for(const _0x4d5f3f of _0x2a4915)this['fire']('suggestionChanged',_0x4d5f3f);}),_0xcd7cf6['model']['on']('applyOperation',(_0x39fb23,_0x116d8d)=>{const _0x3041d5=_0x116d8d[0x0];if(!this['_suggestions']['size'])return;if(!_0x3041d5['isDocumentOperation'])return;if(_0x3041d5['batch']['isUndo']||!_0x3041d5['batch']['isLocal'])return;let _0xab659d,_0x1afed3;switch(_0x3041d5['type']){case'insert':_0xab659d=_0xcd7cf6['model']['createPositionAt'](_0x3041d5['position']),_0x1afed3=_0xab659d['getShiftedBy'](_0x3041d5['howMany']);break;case'split':_0xab659d=_0xcd7cf6['model']['createPositionAt'](_0x3041d5['splitPosition']),_0x1afed3=_0xcd7cf6['model']['createPositionAt'](_0x3041d5['moveTargetPosition']);break;case'move':_0xab659d=_0xcd7cf6['model']['createPositionAt'](_0x3041d5['targetPosition']),_0x1afed3=_0xab659d['getShiftedBy'](_0x3041d5['howMany']);break;default:return;}const _0x4c563a=_0xcd7cf6['model']['createRange'](_0xab659d,_0x1afed3);_0xcd7cf6['model']['change'](()=>{for(const {suggestion:_0x3ecfb5,meta:_0x1276c4}of this['_findSuggestions'](_0x4c563a)){if(_0x3ecfb5['isMultiRange'])continue;if('formatInline'==_0x3ecfb5['type'])continue;const _0x780b6d=this['_getAttributeKey'](_0x3ecfb5);if(_0x780b6d&&this['_isBlockAttribute'](_0x780b6d)&&'split'!=_0x3041d5['type'])continue;const _0x478077=_0x3ecfb5['data']&&_0x3ecfb5['data']['multipleBlocks'];('formatBlock'!=_0x3ecfb5['type']||'split'==_0x3041d5['type']&&!_0x478077)&&(_0x1276c4['containsRangeInObject']||'insertion'==_0x3ecfb5['type']&&_0x1276c4['isOwn']||_0x3ecfb5['getFirstRange']()['containsRange'](_0x4c563a)&&this['_breakSuggestionMarker'](_0x3ecfb5,_0xab659d,_0x1afed3));}});},{'priority':'lowest'}),_0xcd7cf6['model']['on']('deleteContent',(_0xc4ffb7,_0x227fe6)=>{const _0x4f7f6f=_0x227fe6[0x0],_0x3af909=_0x227fe6[0x1];if(_0x3af909&&_0x3af909['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4f7f6f['isCollapsed'])return;const _0x435c75=_0xcd7cf6['model']['schema'],{start:_0x1e0a0a,end:_0x138b4d}=_0x4f7f6f['getFirstRange'](),_0x200a21=_0x1e0a0a['nodeAfter']&&_0x435c75['isLimit'](_0x1e0a0a['nodeAfter'])?null:_0x435c75['getNearestSelectionRange'](_0x1e0a0a,'forward'),_0x448494=_0x138b4d['nodeBefore']&&_0x435c75['isLimit'](_0x138b4d['nodeBefore'])?null:_0x435c75['getNearestSelectionRange'](_0x138b4d,'backward'),_0x3b4e6d=_0xcd7cf6['model']['createRange'](_0x200a21?_0x200a21['start']:_0x1e0a0a,_0x448494?_0x448494['end']:_0x138b4d);_0xcd7cf6['model']['change'](_0x33d5d0=>{this['markDeletion'](_0x3b4e6d);const _0x270da6=_0xcd7cf6['model']['schema']['getNearestSelectionRange'](_0x3b4e6d['start']);_0x4f7f6f['is']('documentSelection')?_0x33d5d0['setSelection'](_0x270da6):_0x4f7f6f['setTo'](_0x270da6);}),_0xc4ffb7['stop']();},{'priority':_0x179303['normal']+0xa}),_0xcd7cf6['model']['on']('insertContent',(_0x28f9a4,_0xe4d909)=>{const _0x12969d=_0xe4d909[_0xe4d909['length']-0x1];_0x12969d&&_0x12969d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xcd7cf6['model']['change'](()=>{let _0x1f1296=_0xcd7cf6['model']['insertContent'](_0xe4d909[0x0],_0xe4d909[0x1],_0xe4d909[0x2],{'forceDefaultExecution':!0x0});if(!_0x1f1296)return;_0x28f9a4['return']=_0x1f1296['clone']();const _0x30e13a=_0x1f1296['end']['nodeBefore'],_0x5fafef=_0xcd7cf6['model']['schema'];_0x30e13a&&_0x5fafef['isBlock'](_0x30e13a)&&!_0x5fafef['isObject'](_0x30e13a)&&(_0x1f1296=_0xcd7cf6['model']['createRange'](_0x1f1296['start'],_0xcd7cf6['model']['createPositionAt'](_0x30e13a,'end'))),this['markInsertion'](_0x1f1296);}),_0x28f9a4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4dfb32=new O(_0xcd7cf6,this['_suggestions']);_0xcd7cf6['commands']['add']('acceptSuggestion',_0x4dfb32),this['enableCommand']('acceptSuggestion');const _0x9db4a1=new R(_0xcd7cf6,this['_suggestions']);_0xcd7cf6['commands']['add']('discardSuggestion',_0x9db4a1),this['enableCommand']('discardSuggestion'),_0xcd7cf6['commands']['add']('acceptAllSuggestions',new x(_0xcd7cf6,_0x4dfb32,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xcd7cf6['commands']['add']('discardAllSuggestions',new x(_0xcd7cf6,_0x9db4a1,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xcd7cf6['commands']['add']('acceptSelectedSuggestions',new E(_0xcd7cf6,_0x4dfb32,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xcd7cf6['commands']['add']('discardSelectedSuggestions',new E(_0xcd7cf6,_0x9db4a1,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x47eb94=_0xcd7cf6['plugins']['get']('CommentsRepository');this['listenTo'](_0x47eb94,'addComment',(_0x1b621c,{threadId:_0x4f4b2f})=>{const _0x28141c=this['_suggestions']['get'](_0x4f4b2f);_0x28141c&&_0x28141c['commentThread']&&0x1===_0x28141c['commentThread']['length']&&this['_updateSuggestionData'](_0x4f4b2f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x47eb94,'removeComment',(_0x288635,{threadId:_0x527091})=>{const _0x389575=this['_suggestions']['get'](_0x527091);_0x389575&&_0x389575['commentThread']&&!_0x389575['commentThread']['length']&&this['_updateSuggestionData'](_0x527091,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5aee45){const _0x901c30=_0x2f3029([0x55,0x4a,0x76,0x43,0x48,0x71,0x6e,0x53,0x4f,0x72,0x6a,0x33,0x31,0x49,0x5a,0x73,0x59,0x67,0x62,0x64,0x65,0x79,0x46,0x70,0x58,0x4d,0x61,0x36,0x6d,0x38,0x42,0x6f,0x78,0x69,0x4c,0x74,0x39,0x57,0x47,0x35,0x4b,0x6c,0x68,0x4e,0x32,0x51,0x50,0x77,0x54,0x66,0x30,0x52,0x41,0x63,0x34,0x6b,0x75,0x7a,0x45,0x56,0x37,0x44]),_0x2d84e2=0x63ccb8ab,_0x8469d4=0x63cbe58b^_0x2d84e2,_0x2c81c1=window[_0x2f3029([0x44,0x61,0x74,0x65])][_0x2f3029([0x6e,0x6f,0x77])](),_0xb1ec12=_0x5aee45[_0x2f3029([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x9dbabc=new window[(_0x2f3029([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49b043=>{_0xb1ec12[_0x2f3029([0x6f,0x6e,0x63,0x65])](_0x2f3029([0x72,0x65,0x61,0x64,0x79]),_0x49b043);}),_0x54d28a={[_0x2f3029([0x6b,0x74,0x79])]:_0x2f3029([0x45,0x43]),[_0x2f3029([0x75,0x73,0x65])]:_0x2f3029([0x73,0x69,0x67]),[_0x2f3029([0x63,0x72,0x76])]:_0x2f3029([0x50,0x2d,0x32,0x35,0x36]),[_0x2f3029([0x78])]:_0x2f3029([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]),[_0x2f3029([0x79])]:_0x2f3029([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]),[_0x2f3029([0x61,0x6c,0x67])]:_0x2f3029([0x45,0x53,0x32,0x35,0x36])},_0x5b231a=_0xb1ec12[_0x2f3029([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f3029([0x67,0x65,0x74])](_0x2f3029([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x33c664(){let _0x51bfb6,_0x1ef5b5=null,_0x2b68c8=null;try{if(_0x5b231a==_0x2f3029([0x47,0x50,0x4c]))return _0x2f3029([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51bfb6=_0x4bd225(),!_0x51bfb6)return _0x2f3029([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51bfb6[_0x2f3029([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b68c8=_0x49fcaa(_0x51bfb6[_0x2f3029([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51bfb6[_0x2f3029([0x6a,0x74,0x69])])),await _0x4e2c38()?_0x3df14e()?_0x41cf2()?_0x2f3029([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x31da85()?(_0x51bfb6[_0x2f3029([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f3029([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ef5b5=_0x25a370(_0x2f3029([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51bfb6[_0x2f3029([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f3029([0x74,0x72,0x69,0x61,0x6c])&&(_0x1ef5b5=_0x25a370(_0x2f3029([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x51bfb6[_0x2f3029([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f3029([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x1ef5b5=_0x25a370(_0x2f3029([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ad771()):_0x2f3029([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f3029([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f3029([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4ae3c5){return _0x2f3029([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41cf2(){const _0x482cc7=[_0x2f3029([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f3029([0x74,0x72,0x69,0x61,0x6c])][_0x2f3029([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51bfb6[_0x2f3029([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c81c1/0x3e8:0xe10*_0x8469d4;return _0x51bfb6[_0x2f3029([0x65,0x78,0x70])]<_0x482cc7;}function _0x3df14e(){const _0x117c2b=_0x51bfb6[_0x2f3029([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x117c2b)return!0x1;if(_0x117c2b[_0x2f3029([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f3029([0x2a])))return!0x0;if(_0x117c2b[_0x2f3029([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f3029([0x54,0x43])))return!0x0;if(_0x117c2b[_0x2f3029([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f3029([0x52,0x54,0x43]))){if(_0x5c46fd())return!0x0;if(_0x15bc26()||_0x70f18d())return!0x0;}return!0x1;}function _0x31da85(){const _0x2eb6b6=_0x51bfb6[_0x2f3029([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2eb6b6||0x0==_0x2eb6b6[_0x2f3029([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf52ad0}=new URL(window[_0x2f3029([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2eb6b6[_0x2f3029([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf52ad0))return!0x0;const _0x13e8bb=_0xf52ad0[_0x2f3029([0x73,0x70,0x6c,0x69,0x74])](_0x2f3029([0x2e]));return _0x2eb6b6[_0x2f3029([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4dceed=>_0x4dceed[_0x2f3029([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f3029([0x2a])))[_0x2f3029([0x6d,0x61,0x70])](_0x35b905=>_0x35b905[_0x2f3029([0x73,0x70,0x6c,0x69,0x74])](_0x2f3029([0x2e])))[_0x2f3029([0x73,0x6f,0x6d,0x65])](_0x5ec886=>_0x13e8bb[_0x2f3029([0x65,0x76,0x65,0x72,0x79])]((_0x1dd01c,_0x12fbe5)=>_0x5ec886[_0x12fbe5]===_0x1dd01c||_0x5ec886[_0x12fbe5]===_0x2f3029([0x2a])));}function _0x4ad771(){return _0x1ef5b5&&_0x2b68c8?new window[(_0x2f3029([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1988aa,_0x193bd1)=>{_0x1ef5b5[_0x2f3029([0x74,0x68,0x65,0x6e])](_0x1988aa,_0x193bd1),_0x2b68c8[_0x2f3029([0x74,0x68,0x65,0x6e])](_0x254765=>{_0x254765!=_0x2f3029([0x56,0x61,0x6c,0x69,0x64])&&_0x1988aa(_0x254765);},_0x193bd1);}):_0x1ef5b5||_0x2b68c8||_0x2f3029([0x56,0x61,0x6c,0x69,0x64]);}}function _0x49fcaa(_0x4d9d96,_0x450ebd){return new window[(_0x2f3029([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5af131=>{if(_0x20c3ea())return _0x5af131(_0x2f3029([0x56,0x61,0x6c,0x69,0x64]));_0x3ea8b4(),_0xb1ec12[_0x2f3029([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f3029([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a5060=!0x1;const _0x5d9c17=_0x226d2f();function _0x86becd(_0x435c21){return!!_0x435c21&&(typeof _0x435c21===_0x2f3029([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x435c21===_0x2f3029([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x435c21[_0x2f3029([0x74,0x68,0x65,0x6e])]===_0x2f3029([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x435c21[_0x2f3029([0x63,0x61,0x74,0x63,0x68])]===_0x2f3029([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x226141(_0x1ad46a){_0x1384be(_0x1ad46a)[_0x2f3029([0x74,0x68,0x65,0x6e])](_0x26b848=>{if(!_0x26b848||_0x26b848[_0x2f3029([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f3029([0x6f,0x6b]))return _0x2f3029([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40194b(_0x28ba92(_0x5d9c17+_0x450ebd))!=_0x26b848[_0x2f3029([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f3029([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f3029([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f3029([0x74,0x68,0x65,0x6e])](_0x40a025=>(_0x1e460b(),_0x40a025),()=>{const _0x387888=_0x10f374();return null==_0x387888?(_0x1e460b(),_0x2f3029([0x56,0x61,0x6c,0x69,0x64])):_0x2f3029(_0x2c81c1-_0x387888>(0x47c03cab^_0x2d84e2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f3029([0x74,0x68,0x65,0x6e])](_0x5af131)[_0x2f3029([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5af131(_0x2f3029([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e92d4=0x63fa562b^_0x2d84e2;function _0x1e460b(){const _0xc18611=_0x2f3029([0x6c,0x6c,0x63,0x74,0x2d])+_0x40194b(_0x28ba92(_0x4d9d96)),_0x27c3a0=_0x5cd72a(_0x40194b(window[_0x2f3029([0x4d,0x61,0x74,0x68])][_0x2f3029([0x63,0x65,0x69,0x6c])](_0x2c81c1/_0x3e92d4)));window[_0x2f3029([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f3029([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc18611,_0x27c3a0);}function _0x10f374(){const _0x126da9=_0x2f3029([0x6c,0x6c,0x63,0x74,0x2d])+_0x40194b(_0x28ba92(_0x4d9d96)),_0x3e04bd=window[_0x2f3029([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f3029([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x126da9);return _0x3e04bd?window[_0x2f3029([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cd72a(_0x3e04bd),0x10)*_0x3e92d4:null;}function _0x1384be(_0x2b736a){return new window[(_0x2f3029([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13e3d7,_0x1db970)=>{_0x2b736a[_0x2f3029([0x74,0x68,0x65,0x6e])](_0x13e3d7,_0x1db970),window[_0x2f3029([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1db970,0x63cd6c6b^_0x2d84e2);});}}_0xb1ec12[_0x2f3029([0x6f,0x6e])](_0x2f3029([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54d9ca,_0x1adb3e)=>{if(_0x1adb3e[0x0]!=_0x4d9d96)return _0x5af131(_0x2f3029([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1adb3e[0x1]={..._0x1adb3e[0x1],[_0x2f3029([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d9c17};},{[_0x2f3029([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f3029([0x68,0x69,0x67,0x68])}),_0xb1ec12[_0x2f3029([0x6f,0x6e])](_0x2f3029([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4d4296=>{_0x86becd(_0x4d4296[_0x2f3029([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a5060=!0x0,_0x226141(_0x4d4296[_0x2f3029([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f3029([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f3029([0x6c,0x6f,0x77])}),_0x9dbabc[_0x2f3029([0x74,0x68,0x65,0x6e])](()=>{_0x4a5060||_0x5af131(_0x2f3029([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x20c3ea(){return _0xb1ec12[_0x2f3029([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f3029([0x76,0x69,0x65,0x77])][_0x2f3029([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f3029([0x61,0x75,0x74,0x6f]);}function _0x3ea8b4(){_0xb1ec12[_0x2f3029([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f3029([0x76,0x69,0x65,0x77])][_0x2f3029([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f3029([0x61,0x75,0x74,0x6f]);}}function _0x25a370(_0x331329){const _0x46573e=[new window[(_0x2f3029([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x93bcdc=>setTimeout(_0x93bcdc,0x63c58667^_0x2d84e2)),_0x9dbabc[_0x2f3029([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f3029([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4864e9=>{let _0x3304bf=0x0;_0xb1ec12[_0x2f3029([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f3029([0x6f,0x6e])](_0x2f3029([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x151672,_0x5ff63a)=>{_0x5ff63a[0x0][_0x2f3029([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3304bf++,_0x3304bf==(0x63ccb953^_0x2d84e2)&&(_0x4864e9(),_0x151672[_0x2f3029([0x6f,0x66,0x66])]());});}))];return window[_0x2f3029([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f3029([0x72,0x61,0x63,0x65])](_0x46573e)[_0x2f3029([0x74,0x68,0x65,0x6e])](()=>_0x331329);}async function _0x328870(){await _0x9dbabc,_0xb1ec12[_0x2f3029([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f3029([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x969e90,_0xb1ec12[_0x2f3029([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f3029([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x969e90,_0xb1ec12[_0x2f3029([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f3029([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c46fd(){return _0x5c7695(_0x2f3029([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1acf72(_0x2f3029([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2f3029([0x73,0x74,0x61,0x74,0x65])]==_0x2f3029([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x15bc26(){return _0x5c7695(_0x2f3029([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 _0x70f18d(){return _0x5c7695(_0x2f3029([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x113632(_0x3e8378){const _0x39532b=_0x5de327();_0xb1ec12[_0x39532b]=_0x2f3029([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e8378,_0x3e8378!=_0x2f3029([0x56,0x61,0x6c,0x69,0x64])&&_0x328870();}function _0x5de327(){const _0x413fe2=window[_0x2f3029([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f3029([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f3029([0x6e,0x6f,0x77])]())[_0x2f3029([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f3029([0x2e]),'');let _0x2ff353=_0x2f3029([0x55]);for(let _0xe39995=0x0;_0xe39995<_0x413fe2[_0x2f3029([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe39995+=0x2){let _0x11b658=window[_0x2f3029([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x413fe2[_0x2f3029([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe39995,_0xe39995+0x2));_0x11b658>=_0x901c30[_0x2f3029([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11b658-=_0x901c30[_0x2f3029([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ff353+=_0x901c30[_0x11b658];}return _0x2ff353;}function _0x4bd225(){const _0x2f5e32=_0x5b231a[_0x2f3029([0x73,0x70,0x6c,0x69,0x74])](_0x2f3029([0x2e]));if(0x3!=_0x2f5e32[_0x2f3029([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x390527(_0x2f5e32[0x1]);function _0x390527(_0x1040ba){const _0x219d12=_0x230803(_0x1040ba);return _0x219d12&&_0x1b77cb()?_0x219d12:null;function _0x1b77cb(){const _0x3b987b=_0x219d12[_0x2f3029([0x6a,0x74,0x69])],_0xf0567e=window[_0x2f3029([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b987b[_0x2f3029([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b987b[_0x2f3029([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a3078={..._0x219d12,[_0x2f3029([0x6a,0x74,0x69])]:_0x3b987b[_0x2f3029([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b987b[_0x2f3029([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a3078[_0x2f3029([0x76,0x63])],_0x28ba92(_0x4a3078)==_0xf0567e;}}}async function _0x4e2c38(){let _0x542356=!0x0;try{const _0x1bb84f=_0x5b231a[_0x2f3029([0x73,0x70,0x6c,0x69,0x74])](_0x2f3029([0x2e])),[_0x5261e4,_0x3958c5,_0x4cfc26]=_0x1bb84f;return _0x11a8c7(_0x5261e4),await _0x28f9a1(_0x5261e4,_0x3958c5,_0x4cfc26),_0x542356;}catch(_0x5ede2b){return!0x1;}function _0x11a8c7(_0x30620e){const _0x2dbb0a=_0x230803(_0x30620e);_0x2dbb0a&&_0x2dbb0a[_0x2f3029([0x61,0x6c,0x67])]==_0x2f3029([0x45,0x53,0x32,0x35,0x36])||(_0x542356=!0x1);}async function _0x28f9a1(_0x2fa711,_0x3d3653,_0x427d47){const _0x45738f=window[_0x2f3029([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f3029([0x66,0x72,0x6f,0x6d])](_0x3894cd(_0x427d47),_0x5ff81b=>_0x5ff81b[_0x2f3029([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ceb41=new window[(_0x2f3029([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f3029([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2fa711+_0x2f3029([0x2e])+_0x3d3653),_0x107c95=window[_0x2f3029([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f3029([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x107c95)return;const _0x5bf8b9=await _0x107c95[_0x2f3029([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f3029([0x6a,0x77,0x6b]),_0x54d28a,{[_0x2f3029([0x6e,0x61,0x6d,0x65])]:_0x2f3029([0x45,0x43,0x44,0x53,0x41]),[_0x2f3029([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f3029([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f3029([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x107c95[_0x2f3029([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f3029([0x6e,0x61,0x6d,0x65])]:_0x2f3029([0x45,0x43,0x44,0x53,0x41]),[_0x2f3029([0x68,0x61,0x73,0x68])]:{[_0x2f3029([0x6e,0x61,0x6d,0x65])]:_0x2f3029([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5bf8b9,_0x45738f,_0x4ceb41)||(_0x542356=!0x1);}}function _0x230803(_0x654980){return _0x654980[_0x2f3029([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f3029([0x65,0x79]))?JSON[_0x2f3029([0x70,0x61,0x72,0x73,0x65])](_0x3894cd(_0x654980)):null;}function _0x3894cd(_0x521cdf){return window[_0x2f3029([0x61,0x74,0x6f,0x62])](_0x521cdf[_0x2f3029([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f3029([0x2b]))[_0x2f3029([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f3029([0x2f])));}function _0x28ba92(_0x991406){let _0x2fb410=0x1505;function _0x3b214d(_0x2eb2fd){for(let _0x2dfd62=0x0;_0x2dfd62<_0x2eb2fd[_0x2f3029([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2dfd62++){const _0xa8f40a=_0x2eb2fd[_0x2f3029([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2dfd62);_0x2fb410=(_0x2fb410<<0x5)+_0x2fb410+_0xa8f40a,_0x2fb410&=_0x2fb410;}}function _0x96d0bd(_0x51d47c){Array[_0x2f3029([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x51d47c)?_0x51d47c[_0x2f3029([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x96d0bd):_0x51d47c&&typeof _0x51d47c==_0x2f3029([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f3029([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x51d47c)[_0x2f3029([0x73,0x6f,0x72,0x74])]()[_0x2f3029([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x261bd1,_0x11d769])=>{_0x3b214d(_0x261bd1),_0x96d0bd(_0x11d769);}):_0x3b214d(window[_0x2f3029([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x51d47c));}return _0x96d0bd(_0x991406),_0x2fb410>>>0x0;}function _0x40194b(_0x2dc71d){return _0x2dc71d[_0x2f3029([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f3029([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f3029([0x30]));}function _0x5cd72a(_0x583961){return _0x583961[_0x2f3029([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f3029([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f3029([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c7695(_0x435d20){return _0xb1ec12[_0x2f3029([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2f3029([0x68,0x61,0x73])](_0x435d20);}function _0x1acf72(_0x2e48ba){return _0xb1ec12[_0x2f3029([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2f3029([0x67,0x65,0x74])](_0x2e48ba);}function _0x969e90(){}function _0x2f3029(_0x26c25e){return _0x26c25e['map'](_0x5c4661=>String['fromCharCode'](_0x5c4661))['join']('');}_0x113632(await _0x33c664());}(this);}set['adapter'](_0x3b0b18){if(this['_adapter'])throw new _0x2c5f9f('track-changes-adapter-already-set',this);this['_adapter']=_0x3b0b18;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3d9d5c=!0x1,toJSON:_0xd8bcdd=!0x1}={}){const _0x2555cd=[];for(const _0x543a3a of this['_suggestions']['values']())_0x3d9d5c&&!_0x543a3a['isInContent']||_0x2555cd['push'](_0x543a3a);return _0xd8bcdd?_0x2555cd['map'](_0x54d1ef=>_0x54d1ef['toJSON']()):_0x2555cd;}['getSuggestion'](_0x2f3b4d){const _0x51d271=this['_suggestions']['get'](_0x2f3b4d);if(!_0x51d271)throw new _0x2c5f9f('track-changes-suggestion-not-found',this);return _0x51d271;}['hasSuggestion'](_0x2151dd){return this['_suggestions']['has'](_0x2151dd);}['addSuggestionData'](_0x2e2807){const {authorId:_0x29801f,id:_0x2ec175,attributes:_0x1449d2}=_0x2e2807,[_0x2b89d9,_0x2c122b]=_0x2e2807['type']['split'](':'),_0x1d7644=this['_suggestions']['get'](_0x2ec175)||this['_createSuggestion'](_0x2b89d9,_0x2c122b,_0x2ec175,_0x29801f,_0x1449d2);if(this['_addThreadToSuggestion'](_0x1d7644),this['_checkSuggestionCorrectness'](_0x1d7644,_0x2b89d9,_0x2c122b||null,_0x29801f),_0x1d7644['createdAt']=_0x2e2807['createdAt'],_0x1d7644['_isDataLoaded']=!0x0,_0x1449d2&&_0x1449d2['@external']){const _0x10a3ed=_0x1449d2['@external'],_0x3fdd7b=this['_getExternalAuthor'](_0x10a3ed['authorName']);_0x1d7644['authoredAt']=_0x10a3ed['createdAt'],_0x1d7644['author']=_0x3fdd7b,_0x1d7644['isExternal']=!0x0;}else _0x1d7644['authoredAt']=_0x2e2807['createdAt'];switch(_0x2e2807['data']&&(_0x1d7644['data']=_0x2e2807['data']),_0x2e2807['attributes']&&(_0x1d7644['attributes']=_0x2e2807['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1d7644['_saved']=!0x0),this['_suggestionState']['get'](_0x1d7644)){case'notReady':this['_suggestionState']['set'](_0x1d7644,'dataReady');break;case'markerReady':_0x1d7644['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1d7644])),this['_refreshSuggestionsChain'](new Set([_0x1d7644])),this['_suggestionState']['set'](_0x1d7644,'ready'),this['fire']('suggestionLoaded',_0x1d7644)):this['_suggestionState']['set'](_0x1d7644,'removed');}return _0x1d7644;}['acceptSuggestion'](_0x11d79c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x507a9a of _0x11d79c['getAllAdjacentSuggestions']())_0x507a9a['accept']();});});}['discardSuggestion'](_0x28d88f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41ee5f of _0x28d88f['getAllAdjacentSuggestions']())_0x41ee5f['discard']();});});}['enableCommand'](_0x120ccd,_0x3f4cc6){const _0x40339d=this['editor']['commands']['get'](_0x120ccd);if(!_0x40339d)throw new _0x2c5f9f('track-changes-command-not-found',this,{'commandName':_0x120ccd});if(this['_enabledCommands']['has'](_0x40339d))throw new _0x2c5f9f('track-changes-enable-command-twice',this,{'commandName':_0x120ccd});this['_enabledCommands']['add'](_0x40339d),_0x3f4cc6&&_0x40339d['on']('execute',(_0xeb2887,_0x467bdd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x467bdd['length']>0x0&&_0x467bdd[_0x467bdd['length']-0x1]&&_0x467bdd[_0x467bdd['length']-0x1]['forceDefaultExecution']?_0x467bdd['pop']():(_0xeb2887['return']=_0x3f4cc6((..._0x48beae)=>_0x40339d['execute'](..._0x48beae,{'forceDefaultExecution':!0x0}),..._0x467bdd),_0xeb2887['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5ac6f6){let _0x313cd6,_0x17f3d2;const _0x42cdfb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x313cd6=_0x5ac6f6();}catch(_0x40a8ae){_0x17f3d2=_0x40a8ae;}return _0x42cdfb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x17f3d2&&_0x2c5f9f['rethrowUnexpectedError'](_0x17f3d2,this),_0x313cd6;}['markInsertion'](_0x293732,_0x25cf69=null,_0x59e03c={}){if(_0x293732['isCollapsed'])return null;const _0x57b643=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xbf3322,meta:_0x40ec17}of this['_findSuggestions'](_0x293732,'insertion'))if(_0x40ec17['isOwn']){if(!_0x40ec17['isNextTo']){if(_0x40ec17['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0xbf3322,_0x59e03c))continue;return _0xbf3322;}if(zt(_0xbf3322,_0x59e03c))return _0xbf3322;this['_breakSuggestionMarker'](_0xbf3322,_0x293732['start'],_0x293732['end']);break;}if(_0x25cf69==_0xbf3322['subType']&&zt(_0xbf3322,_0x59e03c)){const _0x2a1713=_0xbf3322['getFirstRange']();return _0x2a1713['start']['isEqual'](_0x293732['end'])?this['_setSuggestionRange'](_0xbf3322,this['_model']['createRange'](_0x293732['start'],_0x2a1713['end'])):this['_setSuggestionRange'](_0xbf3322,this['_model']['createRange'](_0x2a1713['start'],_0x293732['end'])),_0xbf3322;}}const _0x5b26c1=_0x226d2f(),_0x52b576=_0x57b643['id'],_0x1871a1=_0x25cf69?'insertion:'+_0x25cf69:'insertion',_0x1e239f=this['_setSuggestionData']({'id':_0x5b26c1,'type':_0x1871a1,'createdAt':new Date(),'authorId':_0x52b576,'attributes':_0x59e03c});return this['_addSuggestionMarker'](_0x1871a1,_0x5b26c1,_0x52b576,_0x293732),_0x1e239f;}['markMultiRangeInsertion'](_0x5d1dac,_0x339971='multi',_0x4395f5={}){const _0x4930a6=this['editor']['plugins']['get']('Users')['me'],_0x5839da=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x339971,'join');for(const _0x2aeb25 of this['getSuggestions']())if(_0x2aeb25['author']['id']==_0x4930a6['id']&&'insertion'==_0x2aeb25['type']&&_0x2aeb25['subType']==_0x339971&&zt(_0x2aeb25,_0x4395f5)&&(_0x5839da(_0x2aeb25['getRanges'](),_0x5d1dac)||_0x5839da(_0x5d1dac,_0x2aeb25['getRanges']()))){for(const _0x1b5ee3 of _0x5d1dac)_0x2aeb25['addRange'](_0x1b5ee3);return _0x2aeb25;}for(const {suggestion:_0x3db6b9,meta:_0x38874e}of this['_findSuggestions'](_0x5d1dac,'insertion')){if(!_0x38874e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x38874e['containsRangeInObject'])continue;if(!zt(_0x3db6b9,_0x4395f5))continue;let _0x3b5ff4=!0x0;for(const _0x3068e1 of _0x3db6b9['getRanges']())for(const _0x4723ea of _0x5d1dac)if(!_0x3068e1['containsRange'](_0x4723ea)){_0x3b5ff4=!0x1;break;}if(_0x3b5ff4)return _0x3db6b9;}const _0x1e42d2=_0x226d2f(),_0x4c20cc=_0x4930a6['id'],_0x5edc7b='insertion:'+_0x339971,_0x1e376d=this['_setSuggestionData']({'id':_0x1e42d2,'type':_0x5edc7b,'createdAt':new Date(),'authorId':_0x4c20cc,'attributes':_0x4395f5});for(const _0x170100 of _0x5d1dac)this['_addSuggestionMarker'](_0x5edc7b,_0x1e42d2,_0x4c20cc,_0x170100,u['getMultiRangeId']());return _0x1e376d;}['markInlineFormat'](_0x29e153,_0x213265,_0x269295=null,_0x21b684={}){if(_0x269295=_0x269295||Gt(_0x213265),_0x29e153['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xcea5ac=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x269295,'accept');return this['forceDefaultExecution'](()=>_0xcea5ac([_0x29e153],_0x213265,_0x21b684)),null;}const _0x293511=this['editor']['plugins']['get']('Users')['me'],_0x3af363=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4f0cd6,meta:_0x4b069f}of this['_findSuggestions'](_0x29e153,'insertion'))_0x4b069f['isOwn']&&!_0x4b069f['isInsideObject']&&_0x3af363['push'](..._0x4f0cd6['getRanges']());}const _0x2e7113=function(_0x4f31f5,_0x55d86e){const _0x29cba1=[];for(const _0x463aea of _0x55d86e){const _0x270522=_0x4f31f5['getIntersection'](_0x463aea);_0x270522&&_0x29cba1['push'](_0x270522);}return _0x29cba1;}(_0x29e153,_0x3af363),_0x252302=function(_0xa32064,_0x1e0131){const _0x421755=[_0xa32064];for(const _0x968687 of _0x1e0131){let _0x4804df=0x0;for(;_0x4804df<_0x421755['length'];){const _0x46bec8=_0x421755[_0x4804df]['getDifference'](_0x968687);_0x421755['splice'](_0x4804df,0x1,..._0x46bec8),_0x4804df+=_0x46bec8['length'];}}return _0x421755;}(_0x29e153,_0x3af363);_0x2e7113['length']&&this['_model']['change'](()=>{for(const _0x23782c of _0x2e7113){const _0x16967c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x269295,'accept');this['forceDefaultExecution'](()=>_0x16967c([_0x23782c],_0x213265,_0x21b684));}});for(const _0x5d52f4 of _0x252302){let _0xc6c543=null,_0x51955e=_0x5d52f4['start'],_0x2030ad=_0x5d52f4['end'];for(const {suggestion:_0x1410bb,meta:_0x557658}of this['_findSuggestions'](_0x5d52f4,'formatInline')){if(!_0x557658['isOwn'])continue;if(_0x1410bb['subType']!=_0x269295)continue;if(!zt(_0x1410bb,_0x21b684))continue;const _0x3c0ae9=_0x1410bb['getFirstRange']();if(_0x3c0ae9['containsRange'](_0x5d52f4,!0x0))return null;_0x51955e=_0x51955e['isBefore'](_0x3c0ae9['start'])?_0x51955e:_0x3c0ae9['start'],_0x2030ad=_0x2030ad['isAfter'](_0x3c0ae9['end'])?_0x2030ad:_0x3c0ae9['end'],_0xc6c543?_0x3c0ae9['start']['isBefore'](_0xc6c543['getFirstRange']()['start'])?(_0xc6c543['removeMarkers'](),_0xc6c543=_0x1410bb):_0x1410bb['removeMarkers']():_0xc6c543=_0x1410bb;}const _0x1d6965=this['_model']['createRange'](_0x51955e,_0x2030ad);if(_0xc6c543)this['_setSuggestionRange'](_0xc6c543,_0x1d6965);else{const _0x64cac4=_0x226d2f(),_0x47827f=_0x293511['id'];this['_setSuggestionData']({'id':_0x64cac4,'type':'formatInline:'+_0x269295,'data':_0x213265,'createdAt':new Date(),'authorId':_0x47827f,'attributes':_0x21b684}),this['_addSuggestionMarker']('formatInline:'+_0x269295,_0x64cac4,_0x47827f,_0x1d6965);}}return null;}['markBlockFormat'](_0x31d55a,_0x1e92a1,_0x2d1d35=[],_0x5ebd45=null,_0x527885={}){_0x1e92a1['formatGroupId']||(_0x1e92a1['formatGroupId']=_0x1e92a1['commandName']),_0x1e92a1['multipleBlocks']=_0x31d55a['is']('range'),_0x5ebd45=_0x5ebd45||Gt(_0x1e92a1);const _0x3e3b67=_0x2d1d35['map'](_0x298a4e=>Jt(_0x298a4e,this['_model'])),_0xa5b229=_0x31d55a['is']('range')?_0x31d55a:Jt(_0x31d55a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x34c27b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ebd45,'accept');return this['forceDefaultExecution'](()=>_0x34c27b([_0xa5b229],_0x1e92a1,_0x527885)),null;}_0x3e3b67['push'](_0xa5b229);let _0x4aca23=!0x0;for(const _0x37ac87 of _0x3e3b67)if(!this['_rangeIsInLocalUserInsertion'](_0x37ac87)){_0x4aca23=!0x1;break;}if(_0x4aca23&&'always'!==this['_trackFormatChanges']){const _0x4bfa94=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ebd45,'accept');return this['forceDefaultExecution'](()=>_0x4bfa94([_0xa5b229],_0x1e92a1,_0x527885)),null;}let _0x396f8e=null,_0xd4520c=_0xa5b229['start'],_0x360a1c=_0xa5b229['end'];for(const {suggestion:_0x51012a,meta:_0x374736}of this['_findSuggestions'](_0xa5b229,'formatBlock')){if(!_0x374736['isOwn'])continue;if(_0x374736['isNextTo']||_0x374736['containsRangeInObject']||_0x374736['isInsideObject'])continue;if(_0x51012a['data']['formatGroupId']!=_0x1e92a1['formatGroupId'])continue;if(!zt(_0x51012a,_0x527885))continue;const _0x51094f=_0x51012a['getFirstRange']();if(_0x51012a['subType']==_0x5ebd45){if(_0x51094f['containsRange'](_0xa5b229,!0x0))return null;_0xd4520c=_0xd4520c['isBefore'](_0x51094f['start'])?_0xd4520c:_0x51094f['start'],_0x360a1c=_0x360a1c['isAfter'](_0x51094f['end'])?_0x360a1c:_0x51094f['end'],_0x396f8e?_0x51094f['start']['isBefore'](_0x396f8e['getFirstRange']()['start'])?(_0x396f8e['removeMarkers'](),_0x396f8e=_0x51012a):_0x51012a['removeMarkers']():_0x396f8e=_0x51012a;}else{const _0x1a9385=_0xa5b229['getIntersection'](_0x51094f);this['_cutOutSuggestionMarker'](_0x51012a,_0x1a9385);}}const _0x468585=this['editor']['plugins']['get']('Users')['me'],_0x202ad4=_0x226d2f(),_0xe0fbff=_0x468585['id'];if(_0x396f8e)return this['_setSuggestionRange'](_0x396f8e,this['_model']['createRange'](_0xd4520c,_0x360a1c)),_0x396f8e;{const _0x43a84e=this['_setSuggestionData']({'id':_0x202ad4,'type':'formatBlock:'+_0x5ebd45,'data':_0x1e92a1,'createdAt':new Date(),'authorId':_0xe0fbff,'attributes':_0x527885});return this['_addSuggestionMarker']('formatBlock:'+_0x5ebd45,_0x202ad4,_0xe0fbff,this['_model']['createRange'](_0xd4520c,_0x360a1c)),_0x43a84e;}}['markMultiRangeBlockFormat'](_0x570633,_0x49f7d3,_0x221235=[],_0x51912b=null,_0xc77d7={}){_0x49f7d3['formatGroupId']||(_0x49f7d3['formatGroupId']=_0x49f7d3['commandName']);const _0x490493=_0x570633[0x0];_0x49f7d3['multipleBlocks']=_0x490493['is']('range'),_0x51912b=_0x51912b||Gt(_0x49f7d3);const _0x7e4bfa=_0x221235['map'](_0x340c95=>Jt(_0x340c95,this['_model'])),_0x140285=_0x490493['is']('range')?_0x570633:_0x570633['map'](_0x4c36c9=>Jt(_0x4c36c9,this['_model']));if('never'===this['_trackFormatChanges']){const _0x171e0d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51912b,'accept');return this['forceDefaultExecution'](()=>_0x171e0d(_0x140285,_0x49f7d3,_0xc77d7)),null;}_0x7e4bfa['push'](..._0x140285);let _0x406e48=!0x0;for(const _0x1612ed of _0x7e4bfa)if(!this['_rangeIsInLocalUserInsertion'](_0x1612ed)){_0x406e48=!0x1;break;}if(_0x406e48&&'always'!==this['_trackFormatChanges']){const _0xa121ed=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51912b,'accept');return this['forceDefaultExecution'](()=>_0xa121ed(_0x140285,_0x49f7d3,_0xc77d7)),null;}const _0x4aa3e0=this['editor']['plugins']['get']('Users')['me'];for(const _0x51b42e of this['getSuggestions']()){if(_0x51b42e['author']['id']!=_0x4aa3e0['id'])continue;if('formatBlock'!=_0x51b42e['type']||_0x51b42e['data']['formatGroupId']!=_0x49f7d3['formatGroupId'])continue;if(!zt(_0x51b42e,_0xc77d7))continue;const _0x4e2fd2=_0x51b42e['subType']==_0x51912b;for(let _0x183ee3=0x0;_0x183ee3<_0x140285['length'];_0x183ee3++){const _0x3810c8=_0x140285[_0x183ee3];for(const _0xc17004 of _0x51b42e['getMarkers']()){const _0x2c4e87=_0xc17004['getRange']();if(_0x3810c8['isEqual'](_0x2c4e87)){_0x4e2fd2?(_0x140285['splice'](_0x183ee3,0x1),_0x183ee3--):_0x51b42e['removeMarker'](_0xc17004['name']);break;}}}}if(0x0==_0x140285['length'])return null;const _0x3fca17=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51912b,'join');for(const _0x59b391 of this['getSuggestions']())if(_0x59b391['author']['id']==_0x4aa3e0['id']&&'formatBlock'==_0x59b391['type']&&_0x59b391['data']['formatGroupId']==_0x49f7d3['formatGroupId']&&_0x59b391['subType']==_0x51912b&&zt(_0x59b391,_0xc77d7)&&(_0x3fca17(_0x59b391['getRanges'](),_0x140285)||_0x3fca17(_0x140285,_0x59b391['getRanges']()))){for(const _0xde9cb9 of _0x140285)_0x59b391['addRange'](_0xde9cb9);return _0x59b391;}const _0xbc8dc9=_0x226d2f(),_0x320d11=_0x4aa3e0['id'],_0xf30285='formatBlock:'+_0x51912b,_0x17714d=this['_setSuggestionData']({'id':_0xbc8dc9,'type':_0xf30285,'data':_0x49f7d3,'createdAt':new Date(),'authorId':_0x320d11,'attributes':_0xc77d7});for(const _0x73ad57 of _0x140285)this['_addSuggestionMarker'](_0xf30285,_0xbc8dc9,_0x320d11,_0x73ad57,u['getMultiRangeId']());return _0x17714d;}['markDeletion'](_0x1c4aa6,_0x300993=null,_0x136230={}){if(_0x1c4aa6['isCollapsed'])return null;const _0x172c58=this['editor']['plugins']['get']('Users')['me'],_0x5b3cef=new _0x125deb(_0x1c4aa6['start'],_0x1c4aa6['end']);for(const {suggestion:_0x329ea2,meta:_0x17e8c9}of this['_findSuggestions'](_0x5b3cef,'insertion'))if(_0x17e8c9['isOwn']&&!_0x17e8c9['isNextTo']){if(_0x329ea2['isMultiRange']){const _0x11daed=_0x329ea2['getRanges']()['filter'](_0x21dff7=>'$graveyard'!=_0x21dff7['root']['rootName']);_0x11daed['every'](_0x3ce747=>_0x5b3cef['containsRange'](_0x3ce747,!0x0))&&_0x329ea2['discard']();if(_0x11daed['some'](_0x7b5210=>_0x7b5210['containsRange'](_0x5b3cef,!0x0))){const _0x42d151=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x300993,'accept');return this['forceDefaultExecution'](()=>_0x42d151([_0x5b3cef],null,_0x136230)),null;}}else{const _0x43f0f0=_0x5b3cef['getIntersection'](_0x329ea2['getFirstRange']());null!==_0x43f0f0&&_0x329ea2['_onDiscard']([_0x43f0f0],null,_0x136230);}}if(_0x5b3cef['detach'](),_0x5b3cef['isCollapsed']||'$graveyard'==_0x5b3cef['root']['rootName'])return null;let _0x3229de=null,_0x507157=_0x5b3cef['start'],_0x16938e=_0x5b3cef['end'];const _0x15234f=this['_findSuggestions'](_0x5b3cef,'deletion');for(const {suggestion:_0x4476d4,meta:_0x2a2640}of _0x15234f){const _0x256277=this['_model']['createRange'](_0x507157,_0x16938e);if(_0x2a2640['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2a2640['containsRangeInObject']&&!_0x2a2640['isInsideObject'])){if(_0x4476d4['isMultiRange']){if(!zt(_0x4476d4,_0x136230))continue;let _0x500569=!0x0;for(const _0x335aa8 of _0x4476d4['getRanges']()){if(_0x335aa8['containsRange'](_0x256277,!0x0))return _0x4476d4;_0x256277['containsRange'](_0x335aa8)||(_0x500569=!0x1);}_0x500569&&_0x4476d4['discard']();}else{const _0x15b00b=_0x4476d4['getFirstRange']();if(_0x15b00b['containsRange'](_0x256277,!0x0))return _0x4476d4;if(!zt(_0x4476d4,_0x136230)){_0x256277['containsRange'](_0x15b00b)?_0x4476d4['removeMarkers']():_0x15b00b['containsPosition'](_0x507157)?_0x507157=_0x15b00b['end']:_0x15b00b['containsPosition'](_0x16938e)&&(_0x16938e=_0x15b00b['start']);continue;}_0x507157=_0x507157['isBefore'](_0x15b00b['start'])?_0x507157:_0x15b00b['start'],_0x16938e=_0x16938e['isAfter'](_0x15b00b['end'])?_0x16938e:_0x15b00b['end'],_0x136230=Object['assign']({},_0x4476d4['attributes']),_0x3229de?_0x15b00b['start']['isBefore'](_0x3229de['getFirstRange']()['start'])?(_0x3229de['removeMarkers'](),_0x3229de=_0x4476d4):_0x4476d4['removeMarkers']():_0x3229de=_0x4476d4;}}}if(_0x3229de)return this['_setSuggestionRange'](_0x3229de,this['_model']['createRange'](_0x507157,_0x16938e)),_0x3229de;{const _0x3fa4d9=_0x226d2f(),_0x11bb6e=this['_model']['createRange'](_0x507157,_0x16938e),_0x304bd8=_0x172c58['id'],_0x4700e7=_0x300993?'deletion:'+_0x300993:'deletion',_0x5846d4=this['_setSuggestionData']({'id':_0x3fa4d9,'type':_0x4700e7,'createdAt':new Date(),'authorId':_0x304bd8,'attributes':_0x136230});return this['_addSuggestionMarker'](_0x4700e7,_0x3fa4d9,_0x304bd8,_0x11bb6e),_0x5846d4;}}['markMultiRangeDeletion'](_0x2af13e,_0x12729e='multi',_0x338ed3={}){const _0x34cc36=this['editor']['plugins']['get']('Users')['me'],_0x1304c3=_0x2af13e['map'](_0x3adad9=>new _0x125deb(_0x3adad9['start'],_0x3adad9['end'])),_0x25dbc4=new Set();for(const {suggestion:_0x23cff7,meta:_0x124882}of this['_findSuggestions'](_0x1304c3,'insertion'))_0x124882['isOwn']&&!_0x124882['isNextTo']&&_0x25dbc4['add'](_0x23cff7);for(const _0x5a5d3a of _0x25dbc4)if(_0x5a5d3a['isMultiRange']){const _0xb2c5b3=_0x5a5d3a['getRanges']();(!_0x5a5d3a['attributes']||!_0x5a5d3a['attributes']['skipNestingCheck'])&&(_0xb2c5b3['every'](_0x41b498=>_0x1304c3['some'](_0x3d5021=>_0x3d5021['containsRange'](_0x41b498,!0x0)))&&_0x5a5d3a['discard']());if(_0x1304c3['every'](_0xb460d4=>_0xb2c5b3['some'](_0x48f27f=>_0x48f27f['containsRange'](_0xb460d4,!0x0)))){const _0x30e5bc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12729e,'accept');return this['forceDefaultExecution'](()=>_0x30e5bc(_0x2af13e,null,_0x338ed3)),null;}}else{const _0x279329=_0x5a5d3a['getFirstRange']();_0x1304c3['some'](_0x3bda25=>_0x3bda25['containsRange'](_0x279329,!0x0))&&_0x5a5d3a['discard']();if(_0x1304c3['every'](_0x30e5aa=>_0x279329['containsRange'](_0x30e5aa,!0x0))){const _0x4d8f4b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12729e,'accept');return this['forceDefaultExecution'](()=>_0x4d8f4b(_0x1304c3,null,_0x338ed3)),null;}}const _0x6a20fb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12729e,'join');let _0x53ccce=null;for(const _0xd0723f of this['getSuggestions']())if(_0xd0723f['author']['id']==_0x34cc36['id']&&_0xd0723f['isInContent']&&'deletion'==_0xd0723f['type']&&_0xd0723f['subType']==_0x12729e&&zt(_0xd0723f,_0x338ed3)&&(_0x6a20fb(_0xd0723f['getRanges'](),_0x1304c3)||_0x6a20fb(_0x1304c3,_0xd0723f['getRanges']()))){if(_0x53ccce){if(_0xd0723f['commentThread']&&_0xd0723f['commentThread']['length'])continue;for(const _0x31948d of _0xd0723f['getRanges']())_0x53ccce['isIntersectingWithRange'](_0x31948d)||_0x53ccce['addRange'](_0x31948d);_0xd0723f['removeMarkers']();}else{_0x53ccce=_0xd0723f;for(const _0x24e14f of _0x1304c3)_0xd0723f['isIntersectingWithRange'](_0x24e14f)||_0xd0723f['addRange'](_0x24e14f);}}if(_0x53ccce)return _0x53ccce;_0x25dbc4['clear']();for(const {suggestion:_0x2634ed,meta:_0x37ba05}of this['_findSuggestions'](_0x1304c3,'deletion'))_0x37ba05['isOwn']&&(this['_mergeNestedSuggestions']||!_0x37ba05['containsRangeInObject']&&!_0x37ba05['isInsideObject'])&&zt(_0x2634ed,_0x338ed3)&&_0x25dbc4['add'](_0x2634ed);for(const _0x2639ef of _0x25dbc4){const _0x1e3bc0=_0x2639ef['getRanges']();if(!_0x338ed3||!_0x338ed3['skipNestingCheck']){if(_0x1304c3['every'](_0x45b94a=>_0x1e3bc0['some'](_0x1e50f4=>_0x1e50f4['containsRange'](_0x45b94a,!0x0))))return _0x2639ef;}(!_0x2639ef['attributes']||!_0x2639ef['attributes']['skipNestingCheck'])&&(_0x1e3bc0['every'](_0x21a265=>_0x1304c3['some'](_0x51f422=>_0x51f422['containsRange'](_0x21a265,!0x0)))&&_0x2639ef['discard']());}const _0x352b0d=_0x226d2f(),_0x1f955d=_0x34cc36['id'],_0x5e32b3='deletion:'+_0x12729e,_0x2014c2=this['_setSuggestionData']({'id':_0x352b0d,'type':_0x5e32b3,'createdAt':new Date(),'authorId':_0x1f955d,'attributes':_0x338ed3});for(const _0x19900d of _0x1304c3)_0x19900d['detach'](),_0x19900d['isCollapsed']||'$graveyard'==_0x19900d['root']['rootName']||this['_addSuggestionMarker'](_0x5e32b3,_0x352b0d,_0x1f955d,_0x19900d,u['getMultiRangeId']());return _0x2014c2;}['markAttributeChange'](_0x51b218,_0x378c6a,_0x3254e2,_0x356594,_0x20210b){if(_0x51b218['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4bf79b=this['editor']['plugins']['get']('Users')['me']['id'],_0x21386c=Array['from'](this['_suggestions']['values']())['filter'](_0x180267=>'attribute'==_0x180267['type']&&_0x180267['data']['key']==_0x378c6a&&_0x180267['isIntersectingWithRange'](_0x51b218));if('default'===this['_trackFormatChanges']){const _0x1fd45b=this['_findSuggestions'](_0x51b218,'insertion')['filter'](({meta:_0x26d867})=>_0x26d867['isOwn']&&!_0x26d867['isInsideObject']&&!_0x26d867['isNextTo'])['map'](({suggestion:_0x33357d})=>_0x33357d);_0x21386c['unshift'](..._0x1fd45b);}const _0x93491c=new Map([[_0x51b218,_0x3254e2]]);for(const _0x1b1d0e of _0x21386c){const _0x53c2ea='attribute'==_0x1b1d0e['type']?_0x1b1d0e['data']['oldValue']:void 0x0,_0x1dbab4=_0x1b1d0e['getFirstRange'](),_0x503141=Array['from'](_0x93491c['keys']())['find'](_0x427d6b=>_0x427d6b['isIntersecting'](_0x1dbab4));if(!_0x503141)continue;const _0x549950=_0x503141['getDifference'](_0x1dbab4);this['_isBlockAttribute'](_0x378c6a)&&'insertion'==_0x1b1d0e['type']&&0x0!=_0x549950['length']||(_0x93491c['delete'](_0x503141),_0x549950['forEach'](_0x5e4b9a=>{_0x93491c['set'](_0x5e4b9a,_0x3254e2);}),'insertion'!=_0x1b1d0e['type']&&_0x53c2ea!=_0x356594&&_0x93491c['set'](_0x503141['getIntersection'](_0x1dbab4),_0x53c2ea));}const _0x5045bf=[];for(const [_0x3ab8fc,_0x3d1e81]of _0x93491c){const _0x136204=_0x226d2f(),_0x2c9bcc={'key':_0x378c6a,'oldValue':_0x3d1e81,'newValue':_0x356594};_0x378c6a['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':_0x378c6a});const _0x5db13d=('attribute:'+(_0x378c6a+'|'+Gt({'newValue':_0x356594})))['substring'](0x0,0x3c),_0x4694db=this['_setSuggestionData']({'id':_0x136204,'type':_0x5db13d,'data':_0x2c9bcc,'createdAt':new Date(),'authorId':_0x4bf79b,'attributes':_0x20210b});_0x5045bf['push'](_0x4694db),this['_addSuggestionMarker'](_0x5db13d,_0x136204,_0x4bf79b,_0x3ab8fc);}return _0x5045bf;}['enableDefaultAttributesIntegration'](_0x1cfa33){this['enableCommand'](_0x1cfa33,(_0x563c94,..._0x48df42)=>{this['_recordAttributeChanges'](()=>{_0x563c94(..._0x48df42);});});}['registerBlockAttribute'](_0x2f0d29){this['_blockAttributeKeys']['add'](_0x2f0d29);}['registerInlineAttribute'](_0x3c111e){this['_inlineAttributeKeys']['add'](_0x3c111e);}['_getAttributeKey'](_0x40c8dc){return'attribute'==_0x40c8dc['type']?_0x40c8dc['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5c54be,_0x3a2a2a){const _0xeb6365=_0x5c54be['getFirstMarker']();this['_model']['change'](_0x2a9fb4=>{_0x2a9fb4['updateMarker'](_0xeb6365,{'range':_0x3a2a2a});});}['_addThreadToSuggestion'](_0x331e9b){const _0x4f730e=_0x331e9b['id'],_0x5bc46f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4f730e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5bc46f,'threadId':_0x4f730e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x27615e=this['_commentsRepository']['getCommentThread'](_0x4f730e);_0x27615e['unbind']('isRemovable'),_0x27615e['isRemovable']=!0x1,_0x331e9b['commentThread']=_0x27615e;}['_checkSuggestionCorrectness'](_0x2f4653,_0x4abc42,_0x12d4f7,_0x3b480e){if(_0x2f4653['type']!=_0x4abc42||_0x2f4653['subType']!=_0x12d4f7||_0x2f4653['creator']['id']!=_0x3b480e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2c5f9f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x246eee,_0x594a20){const _0x3c997b=_0x246eee['getFirstRange']();if(_0x594a20['isEqual'](_0x3c997b))_0x246eee['removeMarkers']();else{if(_0x3c997b['containsRange'](_0x594a20)){const _0x11f0e3=this['_model']['createPositionAt'](_0x594a20['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x246eee,this['_model']['createRange'](_0x3c997b['start'],_0x11f0e3));const _0x1134b5=_0x226d2f(),_0x4468aa=_0x246eee['creator']['id'],_0x19d95b=_0x246eee['type']+':'+_0x246eee['subType'];this['_setSuggestionData']({'id':_0x1134b5,'type':_0x19d95b,'createdAt':new Date(),'authorId':_0x4468aa,'data':_0x246eee['data'],'attributes':_0x246eee['attributes']});const _0xee7924=this['_model']['createPositionAt'](_0x594a20['end']['parent'],'after'),_0x2cba1d=this['_model']['createRange'](_0xee7924,_0x3c997b['end']);this['_addSuggestionMarker'](_0x19d95b,_0x1134b5,_0x4468aa,_0x2cba1d);}else{if(_0x3c997b['containsPosition'](_0x594a20['start'])){const _0x2c0367=this['_model']['createPositionAt'](_0x594a20['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x246eee,this['_model']['createRange'](_0x3c997b['start'],_0x2c0367));}else{const _0x131ba6=this['_model']['createPositionAt'](_0x594a20['end']['parent'],'after');this['_setSuggestionRange'](_0x246eee,this['_model']['createRange'](_0x131ba6,_0x3c997b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x221514){for(const {suggestion:_0x3b1b83,meta:_0x5d9d64}of this['_findSuggestions'](_0x221514,'insertion')){if(!_0x5d9d64['isOwn'])continue;const _0xd78c9c=_0x3b1b83['getRanges']();for(const _0x3fdd17 of _0xd78c9c)if(!_0x221514['getDifference'](_0x3fdd17)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x217d86){const _0x13e98c=this['editor']['plugins']['get']('Users')['getUser'](_0x217d86);if(!_0x13e98c)throw new _0x2c5f9f('track-changes-user-not-found',this);return _0x13e98c;}['_getExternalAuthor'](_0x37ca97){const _0xb4217b=this['editor']['plugins']['get']('Users'),_0x161537=_0x3897cd('external:'+_0x37ca97),_0x3e864d=_0xb4217b['getUser'](_0x161537);return _0x3e864d||_0xb4217b['addUser']({'id':_0x161537,'name':_0x37ca97});}['_createSuggestion'](_0x330eb4,_0x5c9a26,_0x48a21d,_0x189af8,_0x2c3d9c){const _0x566229=this['_getAuthorFromId'](_0x189af8),_0x5bc1de=this['_suggestionFactory']['buildSuggestion'](_0x330eb4,_0x5c9a26,_0x48a21d,_0x566229,_0x2c3d9c,_0x1cacd1=>{this['_updateSuggestionData'](_0x48a21d,{'attributes':_0x1cacd1});const _0x2ba534=this['getSuggestion'](_0x48a21d);this['_joinWithAdjacentSuggestions'](new Set([_0x2ba534])),this['_refreshSuggestionsChain'](new Set([_0x2ba534]));});return this['listenTo'](_0x5bc1de,'accept',()=>{this['_updateSuggestionData'](_0x48a21d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5bc1de,'discard',()=>{this['_updateSuggestionData'](_0x48a21d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x48a21d,_0x5bc1de),this['_suggestionState']['set'](_0x5bc1de,'notReady'),_0x5bc1de;}['_splitMarkerName'](_0x15c0bf){const _0x32881b=_0x15c0bf['split'](':');return{'group':_0x32881b[0x0],'type':_0x32881b[0x1],'subType':_0x32881b['length']>=0x5?_0x32881b[0x2]:null,'id':_0x32881b['length']<0x5?_0x32881b[0x2]:_0x32881b[0x3],'authorId':_0x32881b['length']<0x5?_0x32881b[0x3]:_0x32881b[0x4],'markerCount':0x6==_0x32881b['length']?_0x32881b[0x5]:null};}['_breakSuggestionMarker'](_0x111ca5,_0x49ccd2,_0x22f318){const _0x434c82=_0x111ca5['getFirstRange'](),_0x50cd76=_0x434c82['start'],_0x30feee=_0x434c82['end'];this['_setSuggestionRange'](_0x111ca5,this['_model']['createRange'](_0x50cd76,_0x49ccd2));const _0x5c4f73=_0x226d2f(),_0x55c072=_0x111ca5['creator']['id'],_0x4ae189=_0x111ca5['type']+(_0x111ca5['subType']?':'+_0x111ca5['subType']:'');this['_setSuggestionData']({'id':_0x5c4f73,'type':_0x4ae189,'createdAt':new Date(),'authorId':_0x55c072,'originalSuggestionId':_0x111ca5['id'],'attributes':_0x111ca5['attributes'],'data':_0x111ca5['data']});const _0x276abe=this['_getAttributeKey'](_0x111ca5);('formatBlock'==_0x111ca5['type']||_0x276abe&&this['_isBlockAttribute'](_0x276abe))&&(_0x22f318=this['_model']['createPositionBefore'](_0x22f318['parent'])),this['_addSuggestionMarker'](_0x4ae189,_0x5c4f73,_0x55c072,this['_model']['createRange'](_0x22f318,_0x30feee));}['_findSuggestions'](_0x171857,_0x5e0012=null){const _0x457148=[],_0x5b3ef0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x171857)||(_0x171857=[_0x171857]);for(const _0x38eb84 of this['getSuggestions']()){if(!_0x38eb84['isInContent'])continue;if(_0x5e0012&&_0x38eb84['type']!=_0x5e0012)continue;let _0x52f3b3=!0x1;for(const _0x34d86b of _0x38eb84['getRanges']()){for(const _0x4d2a17 of _0x171857){const _0x104395=_0x4d2a17['start']['isEqual'](_0x34d86b['end'])||_0x4d2a17['end']['isEqual'](_0x34d86b['start']);if(_0x104395||_0x4d2a17['getIntersection'](_0x34d86b)){const _0x11633c=_0x4d2a17['containsRange'](_0x34d86b)&&Ut(this['_model']['schema'],_0x34d86b['start'],_0x4d2a17),_0x33795d=_0x34d86b['containsRange'](_0x4d2a17)&&Ut(this['_model']['schema'],_0x4d2a17['start'],_0x34d86b);_0x457148['push']({'suggestion':_0x38eb84,'meta':{'isOwn':_0x5b3ef0==_0x38eb84['author'],'isNextTo':_0x104395,'isInsideObject':_0x11633c,'containsRangeInObject':_0x33795d}}),_0x52f3b3=!0x0;break;}}if(_0x52f3b3)break;}}return _0x457148;}['_addSuggestionMarker'](_0x5065ba,_0x2d079e,_0x2a4327,_0x350892,_0x12a505){this['_model']['change'](_0x523378=>{let _0x5b41c0='suggestion:'+_0x5065ba+':'+_0x2d079e+':'+_0x2a4327;_0x12a505&&(_0x5b41c0=_0x5b41c0+':'+_0x12a505),_0x523378['addMarker'](_0x5b41c0,{'range':_0x350892,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x589cb3){const _0x23707f=_0x589cb3['previous'],_0x3bd71a=_0x589cb3['next'];_0x589cb3['previous']=null,_0x589cb3['next']=null,null!=_0x23707f&&_0x23707f['next']==_0x589cb3&&(_0x23707f['next']=_0x3bd71a),null!=_0x3bd71a&&_0x3bd71a['previous']==_0x589cb3&&(_0x3bd71a['previous']=_0x23707f),'ready'==this['_suggestionState']['get'](_0x589cb3)&&(this['_suggestionState']['set'](_0x589cb3,'removed'),this['fire']('suggestionUnloaded',_0x589cb3,_0x23707f,_0x3bd71a));}['_setSuggestionData'](_0xf16a0e){const _0x2889da=_0xf16a0e['id'],_0x5baec4=this['addSuggestionData'](_0xf16a0e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x34c357=this['editor']['plugins']['get']('PendingActions'),_0x4098b3=_0x5baec4['hasComments'],_0x42f2af=_0x5baec4['subType']?_0x5baec4['type']+':'+_0x5baec4['subType']:_0x5baec4['type'],_0x303276=this['editor']['locale'],_0x1d3302=_0x34c357['add'](o(_0x303276,'PENDING_ACTION_SUGGESTION')),_0x286ea3={'id':_0x2889da,'type':_0x42f2af,'hasComments':_0x4098b3,'data':_0xf16a0e['data']||null,'originalSuggestionId':_0xf16a0e['originalSuggestionId']||null,'attributes':_0x5baec4['attributes']};this['_adapter']['addSuggestion'](_0x286ea3)['then'](_0x4ca6ec=>{_0x5baec4['_saved']=!0x0,_0x34c357['remove'](_0x1d3302),_0x4ca6ec&&_0x4ca6ec['createdAt']&&(this['_suggestions']['get'](_0x2889da)['createdAt']=_0x4ca6ec['createdAt']);})['catch'](_0xaf558d=>{throw _0xc981dc('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5baec4['discard']();}),_0x5baec4['stopListening'](),this['_suggestions']['delete'](_0x5baec4['id']),this['_suggestionState']['delete'](_0x5baec4),_0xaf558d;});}return _0x5baec4;}['_isBlockAttribute'](_0x3e873d){return this['_blockAttributeKeys']['has'](_0x3e873d);}['_updateSuggestionData'](_0x475ac3,_0x59b03b){const _0x22e554=this['editor']['plugins']['get']('PendingActions'),_0x45ceb8=this['getSuggestion'](_0x475ac3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x45ceb8['_saved']){const _0x577dbc=_0x22e554['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x475ac3,_0x59b03b)['then'](()=>{_0x22e554['remove'](_0x577dbc);});}else _0x45ceb8['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x475ac3,_0x59b03b);});}}['_getSuggestionData'](_0x4ef5b6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2c5f9f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4ef5b6);}['_handleNewSuggestionMarker'](_0x4dfece){const {id:_0x422acb,type:_0x222cbc,subType:_0x52eeb5,authorId:_0x44e33d}=this['_splitMarkerName'](_0x4dfece),_0x2cc866=this['_suggestions']['get'](_0x422acb)||this['_createSuggestion'](_0x222cbc,_0x52eeb5,_0x422acb,_0x44e33d,{});switch(this['_checkSuggestionCorrectness'](_0x2cc866,_0x222cbc,_0x52eeb5,_0x44e33d),this['_suggestionState']['get'](_0x2cc866)){case'notReady':this['_getSuggestionData'](_0x422acb)['then'](_0x5b0d93=>{let _0x58741e=Promise['resolve']();_0x5b0d93['hasComments']&&(_0x58741e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x422acb})),_0x58741e['then'](()=>{this['addSuggestionData'](_0x5b0d93)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2cc866,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x422acb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2cc866,'ready'),this['fire']('suggestionLoaded',_0x2cc866);break;case'ready':this['fire']('suggestionChanged',_0x2cc866);}return _0x2cc866['addMarkerName'](_0x4dfece),_0x2cc866;}['_refreshSuggestionsChain'](_0x1e25c4){const _0x2c810f=Array['from'](_0x1e25c4),_0x1cf4b9=_0x2c810f['filter'](_0x122e4b=>'attribute'==_0x122e4b['type']);this['_refreshAttributeSuggestionsChain'](_0x1cf4b9);const _0x44765a=_0x2c810f['filter'](_0x2ed770=>!_0x2ed770['isMultiRange']&&'attribute'!=_0x2ed770['type']),_0x50c7a4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54d714=>!_0x54d714['isMultiRange']&&'attribute'!=_0x54d714['type']),_0x5783a6=_0x50c7a4['filter'](_0x52222e=>!_0x1e25c4['has'](_0x52222e)),_0x4222a9=new Map(_0x50c7a4['map'](_0x95fbf7=>[_0x95fbf7,this['_suggestionFactory']['getSuggestionCallback'](_0x95fbf7['type'],_0x95fbf7['subType'],'chain')])),_0x3ef785=new Map(_0x50c7a4['map'](_0xfa67dd=>[_0xfa67dd,_0xfa67dd['getFirstRange']()])),_0x17d19e=new Set(),_0x53c0cf=new Set();for(let _0xdfd88c=0x0;_0xdfd88c<_0x44765a['length'];_0xdfd88c++)_0x232be6(_0x44765a[_0xdfd88c],_0x44765a,_0xdfd88c+0x1);for(let _0x2d2f9a=0x0;_0x2d2f9a<_0x44765a['length'];_0x2d2f9a++)_0x232be6(_0x44765a[_0x2d2f9a],_0x5783a6,0x0);const _0x200251=new Set();for(let _0x37deab=0x0;_0x37deab<_0x44765a['length'];_0x37deab++){const _0x5aab31=_0x44765a[_0x37deab];!_0x53c0cf['has'](_0x5aab31)&&_0x5aab31['previous']&&(_0x200251['add'](_0x5aab31['previous']),_0x5aab31['previous']['next']===_0x5aab31&&(_0x5aab31['previous']['next']=null),_0x5aab31['previous']=null),!_0x17d19e['has'](_0x5aab31)&&_0x5aab31['next']&&(_0x200251['add'](_0x5aab31['next']),_0x5aab31['next']['previous']===_0x5aab31&&(_0x5aab31['next']['previous']=null),_0x5aab31['next']=null);}function _0x232be6(_0x1202be,_0x2a3054,_0x549962){for(let _0x4772c4=_0x549962;_0x4772c4<_0x2a3054['length'];_0x4772c4++){const _0x1aa7de=_0x4cf806(_0x1202be,_0x2a3054[_0x4772c4]);_0x1aa7de&&(_0x1aa7de[0x0]['next']=_0x1aa7de[0x1],_0x1aa7de[0x1]['previous']=_0x1aa7de[0x0],_0x17d19e['add'](_0x1aa7de[0x0]),_0x53c0cf['add'](_0x1aa7de[0x1]));}}function _0x4cf806(_0x5be27c,_0x4a9fba){if(_0x5be27c['author']['id']!==_0x4a9fba['author']['id'])return null;const _0x1000d6=_0x4222a9['get'](_0x5be27c)(_0x5be27c,_0x4a9fba,_0x3ef785['get'](_0x5be27c),_0x3ef785['get'](_0x4a9fba));if(!_0x1000d6)return null;return _0x4222a9['get'](_0x4a9fba)(_0x5be27c,_0x4a9fba,_0x3ef785['get'](_0x5be27c),_0x3ef785['get'](_0x4a9fba))?_0x1000d6[0x1]['commentThread']&&_0x1000d6[0x1]['commentThread']['length']?null:_0x1000d6:null;}_0x200251['size']&&this['_refreshSuggestionsChain'](_0x200251);}['_refreshAttributeSuggestionsChain'](_0x4f8910){if(0x0==_0x4f8910['length'])return;const _0x2af389=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17465e=>'attribute'==_0x17465e['type']&&_0x17465e['_isDataLoaded']),_0x3f8937=[],_0x36e53a=new Map();for(const _0x50ff28 of _0x2af389){const _0x2cd09a=_0x3897cd(_0x50ff28['attributes']);_0x36e53a['has'](_0x2cd09a)||(_0x36e53a['set'](_0x2cd09a,_0x3f8937['length']),_0x3f8937['push']([]));const _0x248515=_0x36e53a['get'](_0x2cd09a);_0x3f8937[_0x248515]['push'](_0x50ff28);}!(function(){_0x3f8937['sort']((_0xba8cb2,_0x49d62e)=>{const _0x4752a8=_0xba8cb2[0x0]['createdAt'],_0xbe1cc6=_0x49d62e[0x0]['createdAt'];return _0x4752a8==_0xbe1cc6?_0xba8cb2[0x0]['attributes']['groupId']<_0x49d62e[0x0]['attributes']['groupId']?-0x1:0x1:_0x4752a8<_0xbe1cc6?-0x1:0x1;});for(const _0xe912c5 of _0x3f8937)_0xe912c5['sort']((_0x5550f8,_0xfaf462)=>_0x5550f8['id']<_0xfaf462['id']?-0x1:0x1);}());for(let _0x1a384f=0x0;_0x1a384f<_0x3f8937['length'];_0x1a384f++){if(0x0==_0x3f8937[_0x1a384f]['length'])continue;const _0x55de32=[];for(let _0x44dbca=_0x1a384f+0x1;_0x44dbca<_0x3f8937['length'];_0x44dbca++)0x0!=_0x3f8937[_0x44dbca]['length']&&_0x34a6d4(_0x3f8937[_0x1a384f],_0x3f8937[_0x44dbca])&&_0x55de32['push'](_0x44dbca);for(const _0x3ac41e of _0x55de32)_0x3f8937[_0x1a384f]=_0x3f8937[_0x1a384f]['concat'](_0x3f8937[_0x3ac41e]),_0x3f8937[_0x3ac41e]=[];}for(const _0x1c2860 of _0x3f8937)for(let _0x437d91=0x0;_0x437d91<_0x1c2860['length'];_0x437d91++){const _0x371ae5=_0x1c2860[_0x437d91+0x1]||null;_0x1c2860[_0x437d91]['next']!==_0x371ae5&&(_0x1c2860[_0x437d91]['next']=_0x371ae5);}for(const _0x25b348 of _0x3f8937)for(let _0x2d323c=0x0;_0x2d323c<_0x25b348['length'];_0x2d323c++){const _0x2e3974=_0x25b348[_0x2d323c-0x1]||null;_0x25b348[_0x2d323c]['previous']!==_0x2e3974&&(_0x25b348[_0x2d323c]['previous']=_0x2e3974);}function _0x34a6d4(_0x1bd463,_0x2ea396){if(_0x1bd463[0x0]['attributes']['groupId']!==_0x2ea396[0x0]['attributes']['groupId']&&_0x1bd463[0x0]['author']!==_0x2ea396[0x0]['author'])return!0x1;if(!function(_0x471121,_0x4cce10){if(!_0x471121['hasComments']&&!_0x4cce10['hasComments'])return!0x0;if(_0x471121['hasComments']&&_0x4cce10['hasComments'])return!0x1;if(_0x471121['hasComments']&&_0x4cce10['createdAt']<_0x471121['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4cce10['hasComments']&&_0x471121['createdAt']<_0x4cce10['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1bd463[0x0],_0x2ea396[0x0]))return!0x1;const _0x3046e0=xt(_0x1bd463[0x0]['attributes'],'groupId'),_0xaf7e0d=xt(_0x2ea396[0x0]['attributes'],'groupId');if(!_0x5bee22(_0x3046e0,_0xaf7e0d))return!0x1;return!!_0x1bd463['every'](_0x139819=>_0x2ea396['some'](_0x158c98=>_0x139819['getFirstRange']()['isEqual'](_0x158c98['getFirstRange']())))&&_0x2ea396['every'](_0x56d6ec=>_0x1bd463['some'](_0x3471ff=>_0x56d6ec['getFirstRange']()['isEqual'](_0x3471ff['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1035c0){const _0x4dda5b=Array['from'](_0x1035c0),_0x414a9b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x313a02=_0x414a9b['filter'](_0x26a549=>!_0x1035c0['has'](_0x26a549)),_0x153ebc=new Map(_0x4dda5b['map'](_0x2dcf6c=>[_0x2dcf6c,this['_suggestionFactory']['getSuggestionCallback'](_0x2dcf6c['type'],_0x2dcf6c['subType'],'join')])),_0x3e4022=new Map(_0x414a9b['map'](_0x596fdb=>[_0x596fdb,_0x596fdb['getRanges']()]));for(let _0x46870e=0x0;_0x46870e<_0x4dda5b['length'];_0x46870e++){if(_0x3c6f63(this,_0x4dda5b[_0x46870e],_0x4dda5b,_0x46870e+0x1))return!0x0;}for(let _0x52a93a=0x0;_0x52a93a<_0x4dda5b['length'];_0x52a93a++){if(_0x3c6f63(this,_0x4dda5b[_0x52a93a],_0x313a02,0x0))return!0x0;}return!0x1;function _0x3c6f63(_0x2d3075,_0x3cef59,_0x248879,_0x54b65b){for(let _0x5614af=_0x54b65b;_0x5614af<_0x248879['length'];_0x5614af++){const _0x35bcf3=_0x248879[_0x5614af];if(_0x35bcf3['type']!==_0x3cef59['type']||_0x35bcf3['author']['id']!==_0x3cef59['author']['id']||_0x35bcf3['subType']!==_0x3cef59['subType'])continue;if(!qt(_0x3cef59,_0x35bcf3))continue;if('attribute'==_0x3cef59['type']&&_0x3cef59['data']['oldValue']!=_0x35bcf3['data']['oldValue'])continue;if('attribute'==_0x3cef59['type']&&_0x2d3075['_isBlockAttribute'](_0x3cef59['data']['key']))continue;if('formatBlock'==_0x3cef59['type']){const _0x1bd9f3=_0x2d3075['editor']['model'],_0x1c847a=_0x3cef59['getContainedElement']();if(_0x1c847a&&(_0x1bd9f3['schema']['isObject'](_0x1c847a)||_0x1bd9f3['schema']['isLimit'](_0x1c847a)))continue;}const _0x5e980f=_0x153ebc['get'](_0x3cef59),_0x32ec93=_0x3e4022['get'](_0x3cef59),_0x1539fc=_0x3e4022['get'](_0x35bcf3),_0x4cf041=_0x3cef59['commentThread']&&_0x3cef59['commentThread']['length'],_0x1f46c9=_0x35bcf3['commentThread']&&_0x35bcf3['commentThread']['length'];if(!_0x4cf041&&_0x5e980f(_0x1539fc,_0x32ec93))return _0x2d3075['_joinSuggestions'](_0x35bcf3,_0x3cef59),_0x3e4022['delete'](_0x3cef59),!0x0;if(!_0x1f46c9&&_0x5e980f(_0x32ec93,_0x1539fc))return _0x2d3075['_joinSuggestions'](_0x3cef59,_0x35bcf3),_0x3e4022['delete'](_0x35bcf3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x484bd9,_0x2d945e){if(_0x484bd9['isMultiRange']){for(const _0x17677e of _0x2d945e['getRanges']())_0x484bd9['addRange'](_0x17677e);}else{const _0x3b7e5f=_0x2d945e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x484bd9,this['_model']['createRange'](_0x484bd9['getFirstRange']()['start'],_0x3b7e5f));}_0x2d945e['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3063b3,_0x5627bd,_0x3c6205){const _0x56d632=_0x3063b3['startsWith']('format')||_0x3063b3['startsWith']('attribute')?'FORMATTING':_0x3063b3['toUpperCase']();return o(this['editor']['locale'],_0x5627bd+'_'+_0x56d632+'_SUGGESTION_ANNOUNCEMENT',_0x3c6205);}['_initAriaMarkerChangeAnnouncements'](){const _0x36cb08=this['editor'];if(!_0x36cb08['ui'])return;const {ariaLiveAnnouncer:_0x85573b}=_0x36cb08['ui'];_0x47f8ce(this['_model'],({left:_0x468896,entered:_0x5927d1})=>{for(const _0x451fc2 of _0x468896){const {group:_0x123fc6,type:_0x5754ce}=this['_splitMarkerName'](_0x451fc2['name']);if('suggestion'===_0x123fc6){_0x85573b['announce'](this['_getMarkerAnnouncementText'](_0x5754ce,'LEAVE'));break;}}for(const _0x5938da of _0x5927d1){const {group:_0x3ee2c1,type:_0x160283}=this['_splitMarkerName'](_0x5938da['name']);if('suggestion'===_0x3ee2c1){_0x85573b['announce'](this['_getMarkerAnnouncementText'](_0x160283,'ENTER',_0x3039e9(_0x25b192)));break;}}});}['_processAttributeChanges'](_0x3f37f6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x10bf3f=this['editor'],_0x3840da=_0x10bf3f['model']['document']['differ']['getChanges']();if(0x0==_0x3840da['length'])return!0x1;const _0x25f4e8=[],_0x48c4ce=_0x3840da['filter'](_0x55bb7f=>'attribute'==_0x55bb7f['type']),_0xa96154=_0x3840da['filter'](_0x20d969=>'insert'==_0x20d969['type']&&'$text'!=_0x20d969['name']),_0x387eb2=_0x3840da['filter'](_0x1da5f3=>'remove'==_0x1da5f3['type']&&'$text'!=_0x1da5f3['name']);for(const _0x52b543 of _0x48c4ce)_0x25f4e8['push']({'key':_0x52b543['attributeKey'],'newValue':_0x52b543['attributeNewValue'],'oldValue':_0x52b543['attributeOldValue'],'range':Lt(_0x52b543['range'],_0x10bf3f['model'])});for(const _0x222997 of _0xa96154){const _0x4c26b5=_0x387eb2['find'](_0x4176ea=>_0x4176ea['position']['isEqual'](_0x222997['position']));_0x4c26b5&&_0x25f4e8['push']({'key':m,'newValue':_0x222997['name'],'oldValue':_0x4c26b5['name'],'range':_0x10bf3f['model']['createRangeOn'](_0x222997['position']['nodeAfter'])});}return 0x0!=_0x25f4e8['length']&&this['_reduceExistingSuggestions'](_0x3f37f6,_0x25f4e8);}['_processAttributeSuggestions'](_0x34a72c){let _0x45d9c5=!0x1;const _0x53dba0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x489733=>_0x489733['data']['newRange']&&_0x489733['name']['startsWith']('suggestion:attribute:'));for(const _0x410302 of _0x53dba0){const {subType:_0x20a550,id:_0x547531}=this['_splitMarkerName'](_0x410302['name']),_0x2d6117=_0x20a550['split']('|')[0x0];for(const _0x52c776 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x52c776['id']!=_0x547531&&'attribute'==_0x52c776['type']&&_0x52c776['data']&&_0x52c776['data']['key']==_0x2d6117&&_0x52c776['getFirstRange']()['isIntersecting'](_0x410302['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x52c776,_0x410302['data']['newRange'],_0x34a72c),_0x45d9c5=!0x0);}return _0x45d9c5;}['_recordAttributeChanges'](_0x4d2af5){this['_recordAttributeSuggestions']=!0x0,_0x4d2af5();}['_isRegisteredAttribute'](_0x414e03){const _0x38d27b=this['_isBlockAttribute'](_0x414e03),_0x567df2=this['_inlineAttributeKeys']['has'](_0x414e03);return _0x38d27b||_0x567df2;}['_reduceExistingSuggestions'](_0x19c219,_0x1b42d2){if(0x0==_0x1b42d2['length'])return!0x1;let _0x53cec2=!0x1;for(const _0x3901b1 of _0x1b42d2){const _0x96be1b=this['_findSuggestions'](_0x3901b1['range'],'attribute')['filter'](_0x5e6682=>!_0x5e6682['meta']['isNextTo'])['map'](_0x5e01cd=>_0x5e01cd['suggestion']),_0x34cc61=_0x3897cd({'newValue':_0x3901b1['newValue']});_0x96be1b['filter'](_0x2e2d93=>{const [_0x390aa9,_0x3c2409]=_0x2e2d93['subType']['split']('|');return _0x390aa9==_0x3901b1['key']&&_0x3c2409!=_0x34cc61;})['forEach'](_0x2901a2=>{this['_reduceSuggestionAttributeRange'](_0x2901a2,_0x3901b1['range'],_0x19c219),_0x53cec2=!0x0;});}return _0x53cec2;}['_reduceSuggestionAttributeRange'](_0x1bf7a7,_0x1e0e73,_0x12bb7e){const _0x35ad43=_0x1bf7a7['getFirstRange']()['getDifference'](_0x1e0e73);0x0!==_0x35ad43['length']?0x1!==_0x35ad43['length']?this['_breakSuggestionMarker'](_0x1bf7a7,_0x1e0e73['start'],_0x1e0e73['end']):this['_setSuggestionRange'](_0x1bf7a7,_0x35ad43[0x0]):_0x12bb7e['removeMarker'](_0x1bf7a7['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x31c5fe){this['_editor']=_0x31c5fe,this['_model']=_0x31c5fe['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4d9225,_0x2a9018,_0x546788,_0x5256c1,_0x1ad1c0,_0x3e29a8){return new u(this['_model'],{'type':_0x4d9225,'subType':_0x2a9018,'id':_0x546788,'author':_0x5256c1,'creator':_0x5256c1,'attributes':_0x1ad1c0,'onAttributesChange':_0x3e29a8,'onAccept':(..._0x322d48)=>this['getSuggestionCallback'](_0x4d9225,_0x2a9018,'accept')(..._0x322d48),'onDiscard':(..._0x1fb28f)=>this['getSuggestionCallback'](_0x4d9225,_0x2a9018,'discard')(..._0x1fb28f)});}['registerCustomCallback'](_0x50a01b,_0x33986b,_0x4e8dff,_0x80ff5f){const _0x3422fe=_0x50a01b+':'+_0x33986b+':'+_0x4e8dff;this['_customCallbacks']['set'](_0x3422fe,_0x80ff5f);}['getSuggestionCallback'](_0x3795a3,_0x54edfe,_0x4efd52){const _0x34eded=_0x3795a3+':'+_0x54edfe+':'+_0x4efd52;return this['_customCallbacks']['get'](_0x34eded)||this['_defaultCallbacks']['get'](_0x3795a3+':'+_0x4efd52);}['_registerDefaultCallbacks'](){const _0x3ba8dd=()=>!0x1,_0x574c74=_0x11b376=>{_0x11b376['sort']((_0x289f0f,_0x31d0fc)=>_0x289f0f['start']['isBefore'](_0x31d0fc['start'])?0x1:-0x1),this['_model']['change'](_0x3eef97=>{for(const _0x5d920f of _0x11b376){let _0x30da54;_0x30da54=_0x5d920f['end']['isAtEnd']&&_0x5d920f['end']['parent']==_0x5d920f['start']['nodeAfter']?_0x3eef97['createSelection'](_0x5d920f['start']['nodeAfter'],'on'):_0x3eef97['createSelection'](_0x5d920f),this['_model']['deleteContent'](_0x30da54,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4675d8=(_0x226f5c,_0xbf0be5)=>{_0xbf0be5&&this['_model']['change'](_0x42b375=>{const {commandName:_0x67ec59,commandParams:_0x1a5bc9=[]}=_0xbf0be5,_0xe71a7b=_0x226f5c['map'](_0x4b4775=>(Vt(_0x4b4775)&&(_0x4b4775=this['_model']['createRange'](_0x4b4775['end'])),_0x4b4775))['filter'](_0x2c77b7=>'$graveyard'!==_0x2c77b7['root']['rootName']);if(_0xe71a7b['length']<0x1)return;const _0x1e84d9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x31df44=>_0x125deb['fromRange'](_0x31df44));_0x42b375['setSelection'](_0xe71a7b);for(const _0x51cf62 of this['_editor']['commands']['commands']())_0x51cf62['refresh']();_0x1a5bc9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x67ec59,..._0x1a5bc9);const _0x1ea607=_0x1e84d9['filter'](_0x547395=>'$graveyard'!=_0x547395['root']['rootName']);_0x1ea607['length']>0x0&&_0x42b375['setSelection'](_0x1ea607);for(const _0x4de942 of _0x1e84d9)_0x4de942['detach']();});},_0x55298c=(_0x42c19c,_0xe10d5c)=>0x1==_0x42c19c['length']&&0x1==_0xe10d5c['length']&&_0x42c19c[0x0]['end']['isEqual'](_0xe10d5c[0x0]['start']),_0x5652e7=(_0x52ed15,_0x16e3ea,_0x5f3004,_0x2dbfa0)=>Ht(_0x52ed15,_0x16e3ea,_0x5f3004,_0x2dbfa0)?[_0x52ed15,_0x16e3ea]:Ht(_0x16e3ea,_0x52ed15,_0x2dbfa0,_0x5f3004)?[_0x16e3ea,_0x52ed15]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3ba8dd),this['_defaultCallbacks']['set']('insertion:discard',_0x574c74),this['_defaultCallbacks']['set']('insertion:join',_0x55298c),this['_defaultCallbacks']['set']('insertion:chain',_0x5652e7),this['_defaultCallbacks']['set']('deletion:accept',_0x574c74),this['_defaultCallbacks']['set']('deletion:discard',_0x3ba8dd),this['_defaultCallbacks']['set']('deletion:join',_0x55298c),this['_defaultCallbacks']['set']('deletion:chain',_0x5652e7),this['_defaultCallbacks']['set']('formatInline:accept',_0x4675d8),this['_defaultCallbacks']['set']('formatInline:discard',_0x3ba8dd),this['_defaultCallbacks']['set']('formatInline:join',_0x55298c),this['_defaultCallbacks']['set']('formatInline:chain',_0x3ba8dd),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4675d8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3ba8dd),this['_defaultCallbacks']['set']('formatBlock:join',_0x55298c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3ba8dd),this['_defaultCallbacks']['set']('attribute:accept',_0x3ba8dd),this['_defaultCallbacks']['set']('attribute:discard',(_0x2b8ff8,_0x1af20b)=>{if(!_0x1af20b)return;const _0x355b51=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4ef514=>{if(_0x1af20b['key']==m)for(const _0x11d25e of _0x2b8ff8){const _0x4cc7dc=_0x11d25e['start']['nodeAfter'],_0x3935f1=_0x1af20b['oldValue'];_0x4ef514['rename'](_0x4cc7dc,_0x3935f1);}else{if(_0x355b51['_isBlockAttribute'](_0x1af20b['key'])){for(const _0x947851 of _0x2b8ff8)void 0x0!==_0x1af20b['oldValue']?_0x4ef514['setAttribute'](_0x1af20b['key'],_0x1af20b['oldValue'],_0x947851['start']['nodeAfter']):_0x4ef514['removeAttribute'](_0x1af20b['key'],_0x947851['start']['nodeAfter']);}else{for(const _0x1f98e0 of _0x2b8ff8)_0x1af20b['oldValue']?_0x4ef514['setAttribute'](_0x1af20b['key'],_0x1af20b['oldValue'],_0x1f98e0):_0x4ef514['removeAttribute'](_0x1af20b['key'],_0x1f98e0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x55298c);}}function Ut(_0x4adeef,_0x54b5a1,_0x5ea8d6){for(const _0x3c916a of _0x54b5a1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3c916a['root']==_0x3c916a)return!0x1;if(!_0x5ea8d6['containsItem'](_0x3c916a))return!0x1;if(_0x4adeef['isObject'](_0x3c916a)||_0x4adeef['isLimit'](_0x3c916a))return!0x0;}return!0x1;}function Vt(_0xf2e826){return _0xf2e826['end']['parent']==_0xf2e826['start']['nodeAfter']&&_0xf2e826['end']['isAtStart'];}function Pt(_0x163ecf,_0x4d14a3,_0x68d12,_0x111db2){const _0x44a78e=_0x4276ca=>!_0x4276ca['item']['is']('$textProxy')&&!_0x111db2['isObject'](_0x4276ca['item']),_0x40a839=_0x163ecf['start']['getLastMatchingPosition'](_0x44a78e),_0x30b64d=_0x163ecf['end']['getLastMatchingPosition'](_0x44a78e,{'direction':'backward'});return(!_0x163ecf['start']['isEqual'](_0x40a839)||!_0x163ecf['end']['isEqual'](_0x30b64d))&&(_0x40a839['isBefore'](_0x30b64d)?_0x68d12['updateMarker'](_0x4d14a3,{'range':_0x68d12['createRange'](_0x40a839,_0x30b64d)}):_0x68d12['removeMarker'](_0x4d14a3),!0x0);}function Gt(_0x340a2b){return _0x3897cd(_0x340a2b);}function Ft(_0x44ffad){const _0x32939b=_0x44ffad['start']['nodeAfter'];return _0x32939b&&_0x32939b['is']('element');}function Lt(_0x4fedd9,_0x348e95){return null==_0x4fedd9['end']['nodeBefore']&&_0x4fedd9['end']['parent']==_0x4fedd9['start']['nodeAfter']?Jt(_0x4fedd9['start']['nodeAfter'],_0x348e95):_0x4fedd9;}function Jt(_0x4335a1,_0x5c8485){const _0x45d623=_0x5c8485['schema']['isObject'](_0x4335a1)||_0x5c8485['schema']['isSelectable'](_0x4335a1);return _0x5c8485['createRange'](_0x5c8485['createPositionAt'](_0x4335a1,'before'),_0x45d623?_0x5c8485['createPositionAfter'](_0x4335a1):_0x5c8485['createPositionAt'](_0x4335a1,'end'));}function Ht(_0x31f234,_0x32fca0,_0x599263,_0x546f85){return!!qt(_0x31f234,_0x32fca0)&&_0x599263['end']['isEqual'](_0x546f85['start']);}function qt(_0x525bf8,_0x4f8019){if(!_0x525bf8['_isDataLoaded']||!_0x4f8019['_isDataLoaded'])return!0x1;const _0x3c6751=new Set(Object['keys'](_0x525bf8['attributes'])),_0x5a4550=new Set(Object['keys'](_0x4f8019['attributes']));if(_0x3c6751['delete']('groupId'),_0x5a4550['delete']('groupId'),0x0==_0x3c6751['size']&&0x0==_0x5a4550['size'])return!0x0;if(_0x3c6751['size']!=_0x5a4550['size'])return!0x1;const _0x5d7217={..._0x525bf8['attributes']},_0x469b47={..._0x4f8019['attributes']};return delete _0x5d7217['groupId'],delete _0x469b47['groupId'],JSON['stringify'](_0x5d7217)==JSON['stringify'](_0x469b47);}function zt(_0x1cd6d1,_0x206a40){const _0x473d15=Kt(_0x1cd6d1['attributes']),_0x3e2ae0=Kt(_0x206a40);if(!_0x1cd6d1['_isDataLoaded'])return!0x1;for(const _0x4df6e9 of Object['keys'](_0x3e2ae0))if(!_0x5bee22(_0x473d15[_0x4df6e9],_0x3e2ae0[_0x4df6e9]))return!0x1;return!0x0;}function Kt(_0x370b7d){const _0x3a62a1=Object['assign']({},_0x370b7d);return delete _0x3a62a1['skipNestingCheck'],delete _0x3a62a1['tablePasteChainId'],_0x3a62a1;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x5ac880(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x47da2b,_0x1be04e,_0x32bd34,_0x17df42){super(),this['model']=_0x1be04e,this['view']=_0x32bd34,this['commentThreadController']=_0x17df42,this['_editor']=_0x47da2b,this['_acceptCommand']=_0x47da2b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x47da2b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x55e52a,_0x4272c3)=>_0x55e52a||_0x4272c3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3b797d=>_0x3b797d&&this['_editor']['model']['canEditAt'](_0x1be04e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x13d38b=>_0x13d38b&&this['_editor']['model']['canEditAt'](_0x1be04e['getRanges']())),this['_pendingAction']=null,_0x32bd34['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x32bd34,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x32bd34,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x32bd34,'change:isDirty',()=>{_0x32bd34['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 _0x384ea0=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x384ea0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x1105ca{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x23cf04,_0xa2bc04,_0x7e2273,_0x40d777){super(_0x23cf04),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4aba0d(_0x23cf04,o(_0x23cf04,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xa2bc04['authoredAt']),this['bind']('authoredAt')['to'](_0xa2bc04),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',_0xa2bc04,'authoredAt',this,'descriptionParts',(_0x3ef4cd,_0x1601fe,_0x5db307)=>{const _0x1788bc=_0x5db307['map'](_0x4332fc=>ns(_0x4332fc['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3ef4cd-0x1,_0xa2bc04['author']['name'],_0x1601fe?_0x40d777['formatDateTime'](_0x1601fe):'',new DOMParser()['parseFromString'](_0x1788bc,'text/html')['body']['textContent']]);}),this['focusables']=new _0x124e73(),this['focusTracker']=new _0x102f58(),this['keystrokes']=new _0x3c659e(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x30adff=>_0x30adff['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xa2bc04,this['_localUser']=_0x7e2273,this['_config']=_0x40d777,_0x40d777['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5a0632(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2c8cd9}=this['_config'];this['commentsListView']=new _0x2c8cd9(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',_0x4974ad=>_0x4974ad+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x17b3e5,_0x1eefc4)=>_0x17b3e5||!!_0x1eefc4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5572a5}=this['_config'],_0x5f0f47=new _0x5572a5(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x109dab=_0x5f0f47['commentInputView'];return _0x5f0f47['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x109dab,'value',(_0x29587d,_0x53f8fb,_0x4b94b1)=>!!_0x4b94b1||_0x29587d&&!_0x53f8fb),_0x109dab['on']('submit',(_0x5efe21,_0x1108d6)=>{this['fire']('addComment',_0x1108d6),_0x109dab['editor']['setData']('');}),_0x109dab['on']('cancel',()=>this['focus']()),_0x109dab['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5f0f47;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x1f2990,_0xe0d5da,_0x857f64,_0x466407){super(_0x1f2990,_0xe0d5da,_0x857f64,_0x466407),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1f28d3=>_0x1f28d3&&_0x1f28d3[0x0]?_0x1f28d3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1fc8f2,_0x17f48e)=>{let _0x1d8526='';for(const _0x59a709 of _0x1fc8f2)_0x1d8526+='<p>'+ns(_0x59a709['content'],_0x59a709['color'])+'</p>';return _0x17f48e?_0x1d8526:ti(_0x1d8526,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x466407['SuggestionView'](_0x1f2990,_0xe0d5da,{'formatDateTime':_0x466407['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 _0x5bbcfe=this['bindTemplate'],_0x1540bf=[this['suggestionView']];return this['commentsListView']&&_0x1540bf['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1540bf['push'](this['commentThreadInputView']),_0x1540bf['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5bbcfe['if']('isActive','ck-suggestion-wrapper--active'),_0x5bbcfe['to']('type',_0x58c3ab=>'ck-suggestion-'+_0x58c3ab),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':_0x5bbcfe['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1540bf};}['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 _0x1105ca{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x23c87a,_0xbc1a0,_0x399525){super(_0x23c87a),this['_model']=_0xbc1a0,this['_config']=_0x399525,this['set']('description',''),this['bind']('authoredAt')['to'](_0xbc1a0),this['acceptButton']=this['_createButton'](o(_0x23c87a,'Accept\x20suggestion'),_0x51b03f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x23c87a,'Discard\x20suggestion'),_0x51b03f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x52f47a(_0x23c87a,_0xbc1a0['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x124e73([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x102f58(),this['keystrokes']=new _0x3c659e(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x38954a=>_0x38954a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4f50e5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4f50e5['innerHTML']=this['description'],this['on']('change:description',(_0x5be67c,_0x79eea8,_0x155182)=>{_0x4f50e5['innerHTML']=_0x155182;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2a62ca=this['bindTemplate'],_0x3b580a=[{'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':_0x2a62ca['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2a62ca['to']('authoredAt',_0x2fc32f=>this['_config']['formatDateTime'](_0x2fc32f))}]}]},{'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']&&_0x3b580a['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':_0x3b580a}]};}['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'](_0x49d8c2,_0x2de85c,_0x4fc8e2,_0x36fa66,_0x54c8be){const _0x16a153=new _0x343746(this['locale']);return _0x16a153['set']({'label':_0x49d8c2,'icon':_0x2de85c,'tooltip':!0x0,'tooltipPosition':_0x54c8be}),_0x16a153['extendTemplate']({'attributes':{'class':_0x4fc8e2}}),_0x16a153['on']('execute',()=>{this['fire'](_0x36fa66,this['_model']['id']);}),_0x16a153;}['_setupKeyboardNavigation'](){const _0x432446=this['element'];this['keystrokes']['listenTo'](_0x432446);for(const _0x210d9d of this['focusables'])this['focusTracker']['add'](_0x210d9d['element']),this['keystrokes']['listenTo'](_0x210d9d['element']);this['keystrokes']['set']('enter',(_0x2c1f92,_0x377859)=>{_0x432446===_0x2c1f92['target']&&(this['focusCycler']['focusFirst'](),_0x377859());}),this['keystrokes']['set']('esc',(_0x244069,_0x268a29)=>{_0x432446!==_0x244069['target']&&(this['focus'](),_0x268a29());});}}var ke='<!--\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 _0x597b86{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4c0069,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49573f){super(_0x49573f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x24a55c=this['editor']['config'];_0x24a55c['define']('trackChanges.SuggestionThreadView',pe),_0x24a55c['define']('trackChanges.SuggestionView',fe),_0x24a55c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x24a55c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x8e1e6c,_0x4bf6a6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3dd391,_0x24568d]of this['_handleControllerBuffer']){const _0x6c9aa1=this['_suggestionToController']['has'](_0x3dd391);_0x6c9aa1||_0x24568d?_0x6c9aa1&&_0x24568d&&this['_destroyController'](_0x3dd391):this['_initializeController'](_0x3dd391);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x8e1e6c,_0x4bf6a6);}['init'](){const _0x3c12d1=this['editor'],_0x19ae60=_0x3c12d1['plugins']['get']('TrackChangesEditing'),_0x52ea5b=_0x3c12d1['plugins']['get']('Annotations'),_0x2f4dd9=_0x3c12d1['plugins']['get']('EditorAnnotations'),_0x241073=_0x3c12d1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2f4dd9['addSourceCollector'](()=>{const _0x42218c=[];for(const [_0x1109de,_0x210397]of Array['from'](this['_suggestionToController'])){const _0x9bc0eb=_0x1109de['getAllAdjacentSuggestions'](),_0x4c64ce=[];for(const _0x2c2a2f of _0x9bc0eb){if(!_0x2c2a2f['isInContent'])continue;if(_0x2c2a2f['isMultiRange']){_0x4c64ce['push'](..._0x2c2a2f['getRanges']());continue;}const _0x4bc358=_0x2c2a2f['getFirstRange']();if(_0x4c64ce['length']>0x0){const _0x3c324a=_0x4c64ce[0x0]['getJoined'](_0x4bc358);if(_0x3c324a){_0x4c64ce[0x0]=_0x3c324a;continue;}}_0x4c64ce['push'](_0x4bc358);}_0x42218c['push']([_0x210397['view'],_0x4c64ce]);}return _0x42218c;}),this['listenTo'](_0x19ae60,'suggestionLoaded',(_0x25bc82,_0x1f53ee)=>{this['listenTo'](_0x1f53ee,'change:previous',(_0x5d5c65,_0x4714e3,_0x369c07,_0x140861)=>{_0x1f53ee['isInContent']&&(null==_0x369c07?(this['_updateController'](_0x140861['head']),this['_handleSuggestionControllerDelayed'](_0x1f53ee,!0x1)):(this['_updateController'](_0x369c07['head']),null==_0x140861&&this['_handleSuggestionControllerDelayed'](_0x1f53ee,!0x0)));}),null!==_0x1f53ee['previous']?this['_updateController'](_0x1f53ee['head']):this['_handleSuggestionControllerDelayed'](_0x1f53ee,!0x1);}),this['listenTo'](_0x19ae60,'suggestionUnloaded',(_0x2096df,_0x530f1c,_0x41205b)=>{this['stopListening'](_0x530f1c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x530f1c),this['_suggestionToController']['has'](_0x530f1c)&&this['_destroyController'](_0x530f1c),_0x41205b&&this['_updateController'](_0x41205b['head']);}),this['listenTo'](_0x19ae60,'suggestionChanged',(_0x2936e8,_0x20f6d6)=>{this['_updateController'](_0x20f6d6);}),this['listenTo'](_0x52ea5b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x241073,'addComment',(_0x1b2184,{threadId:_0x3a8e29,isFromAdapter:_0x42b4c4})=>{if(_0x42b4c4||!_0x19ae60['hasSuggestion'](_0x3a8e29))return;const _0x3a01a6=_0x19ae60['getSuggestion'](_0x3a8e29);this['_suggestionToController']['get'](_0x3a01a6)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x19397a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x128857;for(const _0x11eda9 in _0x19397a){const _0x9e0c08=_0x11eda9,_0x4e40f7=_0x19397a[_0x9e0c08];if('trackChangesLicenseKeyValid'==_0x4e40f7||'trackChangesLicenseKeyInvalid'==_0x4e40f7||'trackChangesLicenseKeyExpired'==_0x4e40f7||'trackChangesLicenseKeyDomainLimit'==_0x4e40f7||'trackChangesLicenseKeyNotAllowed'==_0x4e40f7||'trackChangesLicenseKeyEvaluationLimit'==_0x4e40f7||'trackChangesLicenseKeyTrialLimit'==_0x4e40f7||'trackChangesLicenseKeyDevelopmentLimit'==_0x4e40f7||'trackChangesLicenseKeyUsageLimit'==_0x4e40f7){delete _0x19397a[_0x9e0c08],_0x128857=_0x4e40f7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x128857&&_0x19397a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x128857&&_0x19397a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x128857&&_0x19397a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x128857&&_0x19397a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x128857&&_0x19397a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x128857&&_0x19397a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x128857&&_0x19397a['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x128857&&_0x19397a['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x397f28=this['editor']['plugins']['get']('Annotations'),_0x139c64=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3eee90=Array['from'](_0x397f28['activeAnnotations'],_0x4e7a55=>_0x4e7a55['innerView'])['filter'](_0x5aacb5=>this['_viewToController']['has'](_0x5aacb5)),_0x23c3ed=[];for(const _0x2a7c41 of _0x3eee90){const _0x5a3542=this['_viewToController']['get'](_0x2a7c41)['model']['getAllAdjacentSuggestions']();_0x23c3ed['push'](..._0x5a3542['reduce']((_0x323ff0,_0x597bd8)=>[..._0x323ff0,..._0x597bd8['getMarkerNames']()],[]));}_0x139c64['activeMarkers']=_0x23c3ed;}['_addUIComponentsToFactory'](){const _0x4f6c8b=this['editor'],_0x4ca46f=_0x4f6c8b['locale'],_0x434212=o(_0x4ca46f,'Track\x20changes'),_0x38b4c6=new _0x2c678a([{'type':'switchbutton','model':new _0x5e2528({'withText':!0x0,'isToggleable':!0x0,'label':_0x434212,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5e2528({'withText':!0x0,'label':o(_0x4ca46f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5e2528({'withText':!0x0,'label':o(_0x4ca46f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5e2528({'withText':!0x0,'label':o(_0x4ca46f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5e2528({'withText':!0x0,'label':o(_0x4ca46f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4f6c8b['plugins']['has']('TrackChangesPreview')&&_0x38b4c6['addMany']([{'type':'separator'},{'type':'button','model':new _0x5e2528({'withText':!0x0,'label':o(_0x4ca46f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x10354d of _0x38b4c6)if(we(_0x10354d)){const _0x405a21=_0x4f6c8b['commands']['get'](_0x10354d['model']['commandName']);_0x10354d['model']['bind']('isOn','isEnabled')['to'](_0x405a21,'value','isEnabled');}_0x4f6c8b['ui']['componentFactory']['add']('trackChanges',_0x53a39e=>this['_createToolbarButton'](_0x53a39e,_0x38b4c6,_0x434212)),_0x4f6c8b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4dbf03=>this['_createMenuBarMenu'](_0x4dbf03,_0x38b4c6,_0x434212));}['_createToolbarButton'](_0x44e0c4,_0x4e2098,_0x3c9a73){const _0xa81961=_0x2725dc(_0x44e0c4,_0x479f12),_0x57acdf=this['editor']['commands']['get']('trackChanges');_0xa81961['buttonView']['set']({'tooltip':_0x3c9a73,'label':_0x3c9a73,'icon':ke}),_0xa81961['buttonView']['bind']('isOn')['to'](_0x57acdf,'value'),_0xa81961['buttonView']['on']('execute',()=>{_0x57acdf['execute'](),this['editor']['editing']['view']['focus']();}),_0x1ae4ac(_0xa81961,_0x4e2098,{'role':'menu'});const _0x1e9e4e=[];for(const _0x2556bc of _0x4e2098)we(_0x2556bc)&&_0x1e9e4e['push'](this['editor']['commands']['get'](_0x2556bc['model']['commandName']));const _0x43a836=_0xa81961['buttonView'];return _0x43a836['actionView']['unbind']('isEnabled'),_0x43a836['arrowView']['unbind']('isEnabled'),_0x43a836['actionView']['bind']('isEnabled')['to'](_0x57acdf,'isEnabled'),_0x43a836['arrowView']['bind']('isEnabled')['toMany'](_0x1e9e4e,'isEnabled',(..._0x5c1bde)=>_0x5c1bde['some'](_0x5aa7da=>_0x5aa7da)),_0xa81961['on']('execute',_0x4389cb=>{this['editor']['execute'](_0x4389cb['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xa81961;}['_createMenuBarMenu'](_0xd5f7ac,_0x4ca5c4,_0x1a5e19){const _0x32628c=new _0x2df19b(_0xd5f7ac),_0x10a062=this['editor']['commands']['get']('trackChanges');_0x32628c['buttonView']['set']({'label':_0x1a5e19,'icon':ke});const _0x14247e=new _0x169f24(_0xd5f7ac);for(const _0x335419 of _0x4ca5c4){if('separator'==_0x335419['type']){_0x14247e['items']['add'](new _0x347188(_0xd5f7ac));continue;}const _0x242e8e=new _0x45496e(_0xd5f7ac,_0x32628c),_0x53853a=new _0x397a78(_0xd5f7ac),_0x1e29ee=_0x335419['model'];_0x53853a['bind'](...Object['keys'](_0x1e29ee))['to'](_0x1e29ee),_0x53853a['delegate']('execute')['to'](_0x32628c),_0x53853a['on']('execute',()=>{this['editor']['execute'](_0x1e29ee['commandName']),this['editor']['editing']['view']['focus']();}),_0x242e8e['children']['add'](_0x53853a),_0x14247e['items']['add'](_0x242e8e);}return _0x32628c['bind']('isEnabled')['to'](_0x10a062,'isEnabled'),_0x32628c['panelView']['children']['add'](_0x14247e),_0x32628c;}['_initializeController'](_0x14d828){const _0x202285=this['editor'],_0x45ad5b=_0x202285['config'],_0x6ca2a2=_0x202285['plugins']['get']('Annotations'),_0x1b2f27=_0x202285['plugins']['get']('CommentsRepository'),_0x56c777=_0x202285['plugins']['get']('EditorAnnotations'),_0x23680d=_0x202285['plugins']['get'](_0x4c0069)['me'],_0x4ed0b0=_0x45ad5b['get']('trackChanges')['SuggestionThreadView'],_0xa31d7c=_0x45ad5b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x205bac,CommentThreadInputView:_0x1825fa}=_0x202285['plugins']['get']('CommentsUI');let _0x36efb6,_0xba2714,_0x5e841b;this['_annotationViews']['has'](_0x14d828['id'])?(_0xba2714=this['_annotationViews']['get'](_0x14d828['id']),_0x36efb6=_0xba2714['mainView']):(_0x36efb6=new _0x4ed0b0(_0x202285['locale'],_0x14d828,_0x23680d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x45ad5b['get']('comments.editorConfig'),'licenseKey':_0x45ad5b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x45ad5b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x45ad5b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x45ad5b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x97f8ab(_0x45ad5b['get']('locale')),'CommentView':_0x45ad5b['get']('comments')['CommentView'],'CommentsListView':_0x205bac,'CommentThreadInputView':_0x1825fa,'SuggestionView':_0xa31d7c}),_0x36efb6['suggestionView']['acceptButton']['on']('execute',()=>{_0x202285['editing']['view']['focus']();}),_0x36efb6['suggestionView']['discardButton']['on']('execute',()=>{_0x202285['editing']['view']['focus']();}),_0xba2714=_0x6ca2a2['createAnnotationView'](this['editor']['locale'],_0x36efb6),_0xba2714['bind']('isDirty')['to'](_0x36efb6,'isDirty'),_0xba2714['bind']('length')['to'](_0x36efb6),_0xba2714['bind']('type')['to'](_0x36efb6,'type',_0x4fa36b=>'suggestion-'+_0x4fa36b),_0x36efb6['on']('escape',()=>{_0x5e841b['fire']('escape');}),this['_annotationViews']['set'](_0x14d828['id'],_0xba2714));const _0x2fc11c=_0x1b2f27['createCommentThreadController'](_0x14d828['commentThread'],_0x36efb6),_0x25926c=new Ce(_0x202285,_0x14d828,_0x36efb6,_0x2fc11c),_0x857a0e=_0x14d828['getAllAdjacentSuggestions']()['filter'](_0x1f3ff9=>_0x1f3ff9['isInContent']);_0x36efb6['descriptionParts']=_0x202285['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x857a0e),this['_suggestionToController']['set'](_0x14d828,_0x25926c),this['_viewToController']['set'](_0x36efb6,_0x25926c),_0x5e841b=_0x6ca2a2['createAnnotation']({'view':_0xba2714,'target':()=>{const _0x3d4049=[],_0x294d21=_0x14d828['getAllAdjacentSuggestions']()['filter'](_0x3d6b9e=>_0x3d6b9e['isInContent']);for(const _0xfdfe3f of _0x294d21)_0x3d4049['push'](..._0xfdfe3f['getMarkers']());return _0x1ba5b8(_0x202285['editing'],_0x3d4049);},'type':()=>'suggestion-'+_0x25926c['view']['type']}),_0x1b2f27['_bindAnnotationToEditors'](_0x36efb6,_0x5e841b),_0x6ca2a2['add'](_0x5e841b),_0x56c777['registerAnnotation'](_0x5e841b);}['_destroyController'](_0x3c817b){const _0x412867=this['editor']['plugins']['get']('CommentsRepository'),_0xa97f6=this['editor']['plugins']['get']('Annotations'),_0x10582d=this['_suggestionToController']['get'](_0x3c817b),_0x41e13b=_0x10582d['view'],_0x32b1c8=_0xa97f6['getByInnerView'](_0x41e13b);_0x412867['_unbindEditors'](_0x41e13b),_0x32b1c8&&_0xa97f6['remove'](_0x32b1c8),this['_suggestionToController']['delete'](_0x3c817b),this['_viewToController']['delete'](_0x41e13b),_0x10582d['destroy']();}['_updateController'](_0x29467c){if(!_0x29467c['isInContent']||!this['_suggestionToController']['has'](_0x29467c))return;const _0xa58583=this['editor']['plugins']['get']('TrackChangesEditing'),_0x471708=this['_suggestionToController']['get'](_0x29467c),_0x5b64e2=_0x29467c['getAllAdjacentSuggestions']();_0x471708['view']['descriptionParts']=_0xa58583['descriptionFactory']['getDescriptions'](_0x5b64e2);}['destroy'](){for(const _0x50a2c1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x50a2c1);for(const _0xbf64ec of this['_annotationViews']['values']())_0xbf64ec['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function we(_0x2c70cb){return'model'in _0x2c70cb;}class k extends _0x597b86{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xaabc7d){this['editor']['plugins']['get'](p)['adapter']=_0xaabc7d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4c9d2a){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4c9d2a);}['getSuggestions']({skipNotAttached:_0x880a39=!0x1,toJSON:_0x5945b8=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x880a39,'toJSON':_0x5945b8});}['getSuggestion'](_0x500057){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x500057);}}const w=['Pagination'];class T extends _0x597b86{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x25496e=this['editor'];if(_0x25496e['config']['define']('trackChangesData.editorCreator',_0x5f2285=>{const _0x5b8cea=_0x25496e['model']['document']['getRootNames']()['reduce']((_0x264b41,_0x393eda)=>(_0x264b41[_0x393eda]='',_0x264b41),{});return _0x25496e['constructor']['create'](_0x5b8cea,_0x5f2285);}),'function'!=typeof _0x25496e['config']['get']('trackChangesData')['editorCreator'])throw new _0x2c5f9f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x125f6e){return N(this['editor'],!0x0,_0x125f6e);}['getDataWithDiscardedSuggestions'](_0x20c668){return N(this['editor'],!0x1,_0x20c668);}}class D extends _0x597b86{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d93d5){function _0x26f9cd(_0x236700){return _0x236700['map'](_0x1148d6=>String['fromCharCode'](_0x1148d6))['join']('');}super(_0x5d93d5),this['result']='end',_0x5d93d5[_0x26f9cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26f9cd([0x76,0x69,0x65,0x77])][_0x26f9cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26f9cd([0x61,0x75,0x74,0x6f]),_0x5d93d5[_0x26f9cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x26f9cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26f9cd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x26f9cd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x26f9cd([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(_0x42c4ac){return void 0x0!==_0x42c4ac['getRootsAttributes'];}async function N(_0x333c8f,_0x509a2e,_0x4d46af){const _0x27fdd7=_0x4408d3(_0x333c8f,w);_0x27fdd7['plugins']['push'](p,D),_0x27fdd7['rootsAttributes']=Fe(_0x333c8f)?_0x333c8f['getRootsAttributes']():void 0x0;const _0x5214bd=document['createDocumentFragment'](),_0x334188=_0x333c8f['config']['get']('trackChangesData')['editorCreator'],_0x472c21=await _0x334188(_0x27fdd7,()=>function(_0x455f27){const _0x2cc8bf=document['createElement']('div');return _0x455f27['appendChild'](_0x2cc8bf),_0x2cc8bf;}(_0x5214bd));!function(_0x2903f7,_0x2374bc){const _0x4f6fc1=_0x2903f7['model']['document']['getRootNames']()['reduce']((_0x5d0796,_0x4761ce)=>(_0x5d0796[_0x4761ce]=_0x2903f7['data']['get']({'rootName':_0x4761ce}),_0x5d0796),{}),_0x2830a4=_0x2903f7['plugins']['get']('Users')['users']['map'](_0x5da027=>({'id':_0x5da027['id'],'name':_0x5da027['name']})),_0x4882c4=_0x2903f7['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x55e4e1=_0x2903f7['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x31ca39=_0x2374bc['plugins']['get']('Users'),_0x20ae60=_0x2374bc['plugins']['get']('TrackChangesEditing'),_0x293fbb=_0x2374bc['plugins']['get']('CommentsRepository');for(const _0x1fda60 of _0x293fbb['getCommentThreads']())_0x1fda60['remove']();for(const _0x1cb162 of _0x2830a4)_0x31ca39['getUser'](_0x1cb162['id'])||_0x31ca39['addUser'](_0x1cb162);_0x31ca39['me']||_0x31ca39['useAnonymousUser']();for(const _0x149bce of _0x55e4e1)_0x293fbb['addCommentThread'](_0x149bce);for(const _0x446f00 of _0x4882c4)_0x20ae60['addSuggestionData'](_0x446f00);_0x2374bc['data']['set'](_0x4f6fc1);}(_0x333c8f,_0x472c21),_0x472c21['execute'](_0x509a2e?'acceptAllSuggestions':'discardAllSuggestions');const _0x230ae7=Fe(_0x472c21)?_0x472c21['getFullData'](_0x4d46af):_0x472c21['data']['get'](_0x4d46af);return await _0x472c21['destroy'](),_0x230ae7;}class Me extends _0x1105ca{['options'];constructor(_0x16753d,_0xd4f583){super(_0x16753d),this['options']=_0xd4f583,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'](_0x332396,_0x183b85){if(!this['element'])return;const _0x57c061=[];for(const [_0x360cf9,_0x4be57e]of _0x332396){const _0xe952f5=document['createElement']('div');_0xe952f5['setAttribute']('data-ck-root-name',_0x360cf9),_0xe952f5['className']=_0x4be57e['classes']+'\x20ck-track-changes-preview__root-container',_0xe952f5['innerHTML']=_0x4be57e['content'],_0x57c061['push'](_0xe952f5);}_0x183b85(this['element'],_0x57c061),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x952c5f){super(_0x952c5f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3e7f36=this['editor'],_0x461704=_0x3e7f36['locale'],_0x4f46d6=_0x3e7f36['plugins']['get']('Dialog');let _0x74e8b6;const _0x36a3ed=function(_0x2c23d8){const _0x562948={};if('editables'in _0x2c23d8['ui']['view']){for(const [_0x4c1f5f,_0xf63a7d]of Object['entries'](_0x2c23d8['ui']['view']['editables']))_0x562948[_0x4c1f5f]=_0xf63a7d['element'];}else _0x562948[_0x2c23d8['model']['document']['getRootNames']()[0x0]]=_0x2c23d8['ui']['view']['editable']['element'];return _0x562948;}(_0x3e7f36),_0x31bcff=function(_0x226d18){let _0x2316dd=0x0;for(const _0xb6f442 of Object['values'](_0x226d18))_0x2316dd=Math['max'](_0x2316dd,_0xb6f442['getBoundingClientRect']()['width']);let _0xb66b1d=0x0;for(const _0x31f726 of Object['values'](_0x226d18))_0xb66b1d+=_0x31f726['getBoundingClientRect']()['height'];const _0x2acb16=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2483d2=Math['min'](_0xb66b1d,_0x2acb16);return{'width':_0x2316dd,'height':_0x2483d2};}(_0x36a3ed);_0x4f46d6['show']({'id':'finalContentPreview','title':o(_0x461704,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x461704,{'dialogRects':_0x31bcff}),'onHide':()=>{_0x74e8b6['detachFromDom']();},'onShow':()=>{_0x3e7f36['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3de995=>{const _0x2f041f=this['_standarizeRootsData'](_0x3de995,_0x3e7f36,_0x36a3ed);_0x4f46d6['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2f041f,_0x3e7f36['config']['get']('trackChanges.preview.renderFunction'));}),_0x74e8b6=new _0x5a9e88(_0x461704,[_0x4f46d6['view']]),_0x74e8b6['attachToDom'](),_0x74e8b6['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3e7f36['once']('destroy',()=>{_0x74e8b6['detachFromDom']();});const _0x4f481d=_0x4f46d6['view']['headerView']['class'];_0x4f46d6['view']['headerView']['class']=_0x4f481d?_0x4f481d+'\x20ck-reset_all':'ck-reset_all',_0x4f46d6['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4f46d6['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x25e2b7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2aa686=_0x25e2b7['previewMode'],_0x18ee30={};if('$labels'===_0x2aa686){for(const _0x1870fc of _0x25e2b7['getMergeFieldsIds']())_0x18ee30[_0x1870fc]=_0x25e2b7['getLabel'](_0x1870fc)||_0x1870fc;}else{const _0x566b9f='$defaultValues'===_0x2aa686?_0x25e2b7['getDefaultValues']():_0x25e2b7['getDataSetValues'](_0x2aa686,!0x0);for(const _0x321f0e of Object['entries'](_0x566b9f)){const [_0x53ab91,_0x11dda3]=_0x321f0e;_0x18ee30[_0x53ab91]=null!==_0x11dda3?_0x11dda3:_0x25e2b7['getLabel'](_0x53ab91)||_0x53ab91;}}return{'mergeFieldsData':_0x18ee30};}['_standarizeRootsData'](_0x2294b0,_0x6e17ad,_0x25b05b){let _0x1da19b;if('string'==typeof _0x2294b0){const _0x2e08a0=_0x6e17ad['model']['document']['getRootNames']()[0x0];_0x1da19b={[_0x2e08a0]:_0x2294b0};}else _0x1da19b=_0x2294b0;const _0x4a9f61=this['_fixMediaEmbeds'](_0x1da19b,_0x6e17ad),_0x32fc2a=function(_0x18c8bb,_0x4e8150){for(const [_0x3152a5,_0x1fc9df]of _0x18c8bb)_0x1fc9df['classes']=_0x4e8150[_0x3152a5]['classList']['value']['replace']('ck-focused','');return _0x18c8bb;}(this['_sortRoots'](_0x6e17ad)['reduce']((_0x5b77be,_0x2da83a)=>(_0x5b77be['push']([_0x2da83a,{'content':_0x4a9f61[_0x2da83a],'classes':''}]),_0x5b77be),[]),_0x25b05b);return _0x32fc2a;}['_fixMediaEmbeds'](_0x4b9b28,_0x5db027){if(!_0x5db027['plugins']['has']('MediaEmbedEditing'))return _0x4b9b28;const _0x2a057a=_0x5db027['plugins']['get']('MediaEmbedEditing');for(const [_0x104f5c,_0x42f540]of Object['entries'](_0x4b9b28)){const _0x39ab08=document['createElement']('div');_0x39ab08['innerHTML']=_0x42f540,(_0x39ab08['querySelectorAll']('figure.media')['forEach'](_0x8c8595=>{const _0x2644c8=_0x8c8595['querySelector']('oembed');if(_0x2644c8){const _0x47735c=_0x2644c8['getAttribute']('url');if(_0x47735c){const _0x278cad=_0x2a057a['registry']['getMediaViewElement'](new _0x8a5cff(_0x5db027['editing']['view']['document']),_0x47735c,{'elementName':'','renderForEditingView':!0x0}),_0x163950=document['createElement']('div');_0x163950['classList']['add']('ck-media__wrapper'),_0x278cad['render'](_0x163950,_0x5db027['editing']['view']['domConverter']),_0x2644c8['replaceWith'](_0x163950);}}}),_0x4b9b28[_0x104f5c]=_0x39ab08['innerHTML']);}return _0x4b9b28;}['_sortRoots'](_0x342bac){if(!function(_0x320253){return void 0x0!==_0x320253['getRootsAttributes'];}(_0x342bac))return _0x342bac['model']['document']['getRootNames']();const _0x33a0cf=[],_0x35f598=new Map();for(const _0x5b478b of _0x342bac['model']['document']['getRootNames']()){const _0x5f49ab=_0x342bac['editing']['view']['getDomRoot'](_0x5b478b)['getClientRects']()['item'](0x0);_0x33a0cf['push'](_0x5b478b),_0x35f598['set'](_0x5b478b,_0x5f49ab);}return _0x33a0cf['sort']((_0x110521,_0x129958)=>{const _0xbab732=_0x35f598['get'](_0x110521),_0x5c04d4=_0x35f598['get'](_0x129958);return _0xbab732['y']-_0x5c04d4['y']||_0xbab732['x']-_0x5c04d4['x'];}),_0x33a0cf;}}class te extends _0x597b86{static get['requires'](){return[T,_0x1bed70];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10efc8){super(_0x10efc8),_0x10efc8['commands']['add']('previewFinalContent',new re(this['editor'])),_0x10efc8['config']['define']('trackChanges.preview.renderFunction',(_0xee774,_0x412e17)=>{for(const _0x34da36 of _0x412e17)_0xee774['appendChild'](_0x34da36);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as Qt,Plugin as _0x62e235,PendingActions as _0x23b37c,icons as _0xd44b0e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x668daf,ObservableMixin as _0xec2ce3,uid as _0x8d496c,insertToPriorityArray as _0x2446ac,priorities as _0x32947d,logWarning as _0x578a33,getEnvKeystrokeText as _0x112bfc,FocusTracker as _0x2a3bcd,KeystrokeHandler as _0x15e716,Collection as _0x28cd42}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x171d1d,View as _0x53e51f,ViewCollection as _0x403638,FocusCycler as ts,ViewModel as _0x342194,createDropdown as _0x255058,SplitButtonView as _0xda49ac,addListToDropdown as _0x27e077,MenuBarMenuView as _0x22847e,MenuBarMenuListView as _0x32aa3f,ListSeparatorView as _0x40505d,MenuBarMenuListItemView as _0x56439c,MenuBarMenuListItemButtonView as _0x45959a,BodyCollection as _0x4ed095,Dialog as _0x42822c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4dff92,hashObject as _0x4077fc,surroundingMarkersDetector as _0x4f1123,FOCUS_ANNOTATION_KEYSTROKE as _0x115fcd,AriaDescriptionView as _0x5341e2,setupThreadKeyboardNavigation as _0x39ee2e,trimHtml as ti,UserView as _0xb0cb75,LateFocusButtonView as _0x128a00,getDateTimeFormatter as _0x3ab49d,getAllMarkersDomElementsSorted as _0x2885b3,sanitizeEditorConfig as _0x337f5a}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3e8657,LiveRange as _0x3253cc,LivePosition as _0x2429db,DowncastWriter as _0xe4ae67}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x518ccf,toWidget as _0x42efc}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4cea03,set as _0x297059,isEqual as _0x3fb1fe,unset as _0x10b578,omit as xt}from'lodash-es';import{Delete as _0x7db45e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3c4e02,ShiftEnter as _0x44f24d}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x1ed7d9,_0x5dc51f){super(_0x1ed7d9),this['_enabledCommands']=_0x5dc51f,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 _0x44f280 of this['editor']['commands']['commands']())_0x44f280['affectsData']&&!this['_enabledCommands']['has'](_0x44f280)&&_0x44f280['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2e5176 of this['editor']['commands']['commands']())_0x2e5176['affectsData']&&!this['_enabledCommands']['has'](_0x2e5176)&&_0x2e5176['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x1240f5,_0x50ba64){super(_0x1240f5),this['_suggestions']=_0x50ba64,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x36923f){const _0x39abaa=this['_suggestions']['get'](_0x36923f);if(!_0x39abaa)throw new _0x668daf('track-changes-accept-suggestion-not-found',this);const _0x4848a0=_0x39abaa['getRanges']();this['editor']['model']['canEditAt'](_0x4848a0)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x39abaa);}}class R extends Qt{['_suggestions'];constructor(_0x39adf8,_0x54c4c7){super(_0x39adf8),this['_suggestions']=_0x54c4c7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x464472){const _0x2bb9a8=this['_suggestions']['get'](_0x464472);if(!_0x2bb9a8)throw new _0x668daf('track-changes-discard-suggestion-not-found',this);const _0x511edd=_0x2bb9a8['getRanges']();this['editor']['model']['canEditAt'](_0x511edd)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2bb9a8);}}function ns(_0x13b1c6,_0x3f794c){let _0x138476='';return _0x138476+=_0x13b1c6['split']('*')['map']((_0x187a55,_0xe6f68a)=>_0xe6f68a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x187a55)+'</span>':nn(_0x187a55))['join'](''),_0x3f794c&&(_0x138476+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3f794c['value']+'\x22\x20title=\x22'+_0x3f794c['title']+'\x22></span>'),_0x138476;}function nn(_0xd587d5){const _0x3dda89=document['createElement']('span');return _0x3dda89['innerText']=_0xd587d5,_0x3dda89['innerHTML'];}function Wt(_0x3d1a40){return _0x3d1a40['sort']((_0x40ed65,_0x8c548d)=>'deletion'==_0x40ed65['type']&&'deletion'!=_0x8c548d['type']?-0x1:'deletion'!=_0x40ed65['type']&&'deletion'==_0x8c548d['type']?0x1:0x0);}function to(_0x5d6280,_0x239d84){let _0x539f37,_0x23d530=0x0;const _0x338d3e=[],_0x233869=_0x239d84['schema'];for(;_0x23d530<_0x5d6280['length'];){const _0x439b56=_0x5d6280[_0x23d530],_0x231129=_0x5d6280[_0x23d530+0x1];_0x539f37||(_0x539f37=_0x239d84['createPositionBefore'](_0x439b56)),on(_0x239d84,_0x439b56,_0x231129)||(_0x338d3e['push'](_0x239d84['createRange'](_0x539f37,_0x233869['isObject'](_0x439b56)?_0x239d84['createPositionAfter'](_0x439b56):_0x239d84['createPositionAt'](_0x439b56,'end'))),_0x539f37=null),_0x23d530++;}return _0x338d3e;}function on(_0x4f8458,_0xe092fd,_0x1e56d9){if(!_0x1e56d9)return!0x1;const _0x1e20b6=_0x4f8458['createPositionAfter'](_0xe092fd),_0x1c59eb=_0x4f8458['createPositionBefore'](_0x1e56d9);return _0x1e20b6['isTouching'](_0x1c59eb);}function Xt(_0x4b9f69,_0x29b654,_0x12d7de){for(;_0x12d7de['length'];){const _0x37b9d3=_0x12d7de['splice'](0x0,0x64);_0x4b9f69['change'](()=>{for(const _0x43498a of _0x37b9d3)_0x43498a['isInContent']&&_0x29b654['execute'](_0x43498a['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x2ded06,_0x508e3f,_0x49f39e){super(_0x2ded06),this['_command']=_0x508e3f,this['_suggestions']=_0x49f39e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2ed40e=Array['from'](this['_suggestions']['values']())['some'](_0x30555c=>_0x30555c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2ed40e;}['execute'](){const _0x1566df=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x41d33a of _0x1566df){const _0x31215a=_0x41d33a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x31215a))return;}Xt(this['editor']['model'],this['_command'],_0x1566df);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3ead5e,_0x3bd088,_0x36433e){super(_0x3ead5e),this['_command']=_0x3bd088,this['_suggestions']=_0x36433e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xf48942=this['editor']['model']['document']['selection'],_0x37567f=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xb8960c,_0x3e7c08){const _0x328ebf=Array['from'](_0xb8960c['getRanges']()),_0x5a4dff=new Set();for(const _0x2e8399 of _0x3e7c08)if(_0x2e8399['isInContent']){for(const _0x4f32b5 of _0x328ebf)for(const _0x225b43 of _0x2e8399['getRanges']())(_0x4f32b5['isIntersecting'](_0x225b43)||_0xb8960c['isCollapsed']&&!_0x2e8399['isMultiRange']&&_0x2e8399['next']&&_0x225b43['end']['isTouching'](_0x4f32b5['start']))&&_0x5a4dff['add'](_0x2e8399);}return _0x5a4dff;}(_0xf48942,_0x37567f),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xdbc82a=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x168ff5 of _0xdbc82a){const _0x3f1299=_0x168ff5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3f1299))return;}Xt(this['editor']['model'],this['_command'],_0xdbc82a);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0xec2ce3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x412091,_0x2ee4ad){super(),this['id']=_0x2ee4ad['id'],this['type']=_0x2ee4ad['type'],this['subType']=_0x2ee4ad['subType']||null,this['author']=_0x2ee4ad['author'],this['creator']=_0x2ee4ad['creator']||_0x2ee4ad['author'],this['isExternal']=Boolean(_0x2ee4ad['attributes']&&_0x2ee4ad['attributes']['@external']),this['data']=null,this['_model']=_0x412091,this['_onAccept']=_0x2ee4ad['onAccept'],this['_onDiscard']=_0x2ee4ad['onDiscard'],this['_onAttributesChange']=_0x2ee4ad['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2ee4ad['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 _0x9f01a9=this;for(;_0x9f01a9['previous'];)_0x9f01a9=_0x9f01a9['previous'];return _0x9f01a9;}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'](_0x13be27){this['_markerNames']['add'](_0x13be27);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xd39f77=>this['_model']['markers']['get'](_0xd39f77))['filter'](_0x5af75c=>_0x5af75c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x459a3d=>{for(const _0x4d8de9 of this['getMarkers']())_0x459a3d['removeMarker'](_0x4d8de9);}),this['_markerNames']['clear']();}['removeMarker'](_0x5be075){this['_model']['change'](_0x537d4d=>{_0x537d4d['removeMarker'](_0x5be075);}),this['_markerNames']['delete'](_0x5be075);}['addRange'](_0x4fd4f9){const _0x25d582='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x25d582),this['_model']['change'](_0x4233fb=>{_0x4233fb['addMarker'](_0x25d582,{'range':_0x4fd4f9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x539f5e){for(const _0xec0234 of this['getRanges']())if(_0xec0234['isIntersecting'](_0x539f5e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x8c9ec8=>_0x8c9ec8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x14a09d,_0x2a9414)=>[..._0x14a09d,..._0x2a9414['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5074a2=this['getRanges']();if(0x1!=_0x5074a2['length'])return null;const _0x2981c0=_0x5074a2[0x0],_0x5b1e56=_0x2981c0['start']['nodeAfter'],_0x4776c5=_0x2981c0['end']['nodeBefore'];return _0x5b1e56 instanceof _0x3e8657?_0x5b1e56!=_0x4776c5?null:_0x5b1e56: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 _0x2257f3=[];let _0x5cae51=this['head'];for(;_0x5cae51;)_0x2257f3['push'](_0x5cae51),_0x5cae51=_0x5cae51['next'];return _0x2257f3;}['setAttribute'](_0x566448,_0x74ac5d){const _0x1f3ac8=_0x4cea03(this['attributes']);_0x297059(_0x1f3ac8,_0x566448,_0x74ac5d),_0x3fb1fe(_0x1f3ac8,this['attributes'])||(this['attributes']=_0x1f3ac8,this['_onAttributesChange'](_0x1f3ac8));}['removeAttribute'](_0x27be22){const _0x37706f=_0x4cea03(this['attributes']);_0x10b578(_0x37706f,_0x27be22),_0x3fb1fe(_0x37706f,this['attributes'])||(this['attributes']=_0x37706f,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 _0x8d496c()['substr'](0x1,0x5);}}function o(_0x20f0b5,_0x55987a,_0x9ad1c9){const _0x143b7e=_0x20f0b5['t'],t=_0x20f0b5['t'];switch(_0x55987a){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',_0x9ad1c9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x9ad1c9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x9ad1c9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x9ad1c9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x9ad1c9);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',_0x9ad1c9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x9ad1c9);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x9ad1c9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x9ad1c9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x9ad1c9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x9ad1c9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x9ad1c9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x9ad1c9);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x9ad1c9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x9ad1c9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x9ad1c9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x9ad1c9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x9ad1c9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x9ad1c9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x9ad1c9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x9ad1c9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x9ad1c9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x9ad1c9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x9ad1c9);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'},_0x9ad1c9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x9ad1c9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x9ad1c9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x9ad1c9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x9ad1c9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x9ad1c9);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'},_0x9ad1c9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x9ad1c9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x9ad1c9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x9ad1c9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x9ad1c9);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'},_0x9ad1c9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x9ad1c9);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'},_0x9ad1c9);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'},_0x9ad1c9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x9ad1c9);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'},_0x9ad1c9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x9ad1c9);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'},_0x9ad1c9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x9ad1c9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x9ad1c9);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'},_0x9ad1c9);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x9ad1c9);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 _0x143b7e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x9ad1c9);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x143b7e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x9ad1c9);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x9ad1c9);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'},_0x9ad1c9);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'},_0x9ad1c9);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'},_0x9ad1c9);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x55987a;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x301ca7,_0x58b19e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x301ca7,this['_locale']=_0x58b19e;}['getDescriptions'](_0x4fc2e3){const _0x4fcec7=[],_0x219bf7=new Set(),_0x49339a=new Set();for(let _0x2074ca=0x0;_0x2074ca<_0x4fc2e3['length'];_0x2074ca++){const _0x1a46a8=_0x4fc2e3[_0x2074ca];if(!_0x1a46a8['isInContent'])continue;const _0x3df551=this['_handleCustomCallbackDescription'](_0x1a46a8);if(_0x3df551){if(null!=_0x1a46a8['subType']){if(_0x219bf7['has'](_0x1a46a8['subType']))continue;_0x219bf7['add'](_0x1a46a8['subType']);}_0x4fcec7['push'](_0x3df551);}else{if('attribute'!=_0x1a46a8['type'])'insertion'!=_0x1a46a8['type']&&'deletion'!=_0x1a46a8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4fcec7,_0x1a46a8,_0x4fc2e3[_0x2074ca+0x1]);else{const _0x4faac4=_0x1a46a8['data']['key'];if(_0x49339a['has'](_0x4faac4))continue;_0x49339a['add'](_0x1a46a8['data']['key']),_0x4faac4==m?this['_handleRenameSuggestionDescription'](_0x4fcec7,_0x1a46a8):this['_handleAttributeSuggestionDescription'](_0x4fcec7,_0x1a46a8);}}}return this['_resolveDescriptionItems'](_0x4fcec7);}['registerDescriptionCallback'](_0x1e5e08){this['_customCallbacks']['push'](_0x1e5e08);}['registerElementLabel'](_0x500fa1,_0x421a82,_0x2f1997=_0x32947d['normal']){'function'==typeof _0x500fa1?_0x2446ac(this['_itemLabelsCallbacks'],{'matchingCallback':_0x500fa1,'label':_0x421a82,'priority':_0x2f1997}):this['_itemLabels']['set'](_0x500fa1,_0x421a82);}['registerAttributeLabel'](_0x5526a6,_0x43ecca){this['_attributeLabels']['set'](_0x5526a6,_0x43ecca);}['getItemLabel'](_0x439c3a,_0x421d7d=0x1){let _0x3003c8;for(const _0x37e04e of this['_itemLabelsCallbacks'])if(_0x37e04e['matchingCallback'](_0x439c3a)){_0x3003c8=_0x37e04e['label'];break;}return _0x3003c8||(_0x3003c8=this['_itemLabels']['get'](_0x439c3a['name'])),_0x3003c8?_0x3003c8(_0x421d7d):0x1!==_0x421d7d?_0x421d7d+'\x20'+_0x439c3a['name']+'s':''+_0x439c3a['name'];}['_addDescriptionItems'](_0x58e005,_0xc4bc63){const _0x35b4ab=_0xc4bc63['getFirstRange']()['getWalker'](),_0x189fed='insertion'==_0xc4bc63['type']?'add':'remove';for(const _0x3d8c61 of _0x35b4ab){const _0x2cfab9=_0x3d8c61['item'],_0x33eb25=_0x58e005[_0x58e005['length']-0x1];if(_0x2cfab9['is']('$textProxy'))_0x33eb25&&_0x33eb25['type']['indexOf']('Container')>-0x1&&_0x58e005['pop'](),_0x33eb25&&'text'==_0x33eb25['type']?_0x33eb25[_0x189fed]+=_0x2cfab9['data']:_0x58e005['push']({'type':'text','add':'add'==_0x189fed?_0x2cfab9['data']:'','remove':'remove'==_0x189fed?_0x2cfab9['data']:''});else{if(this['_schema']['isObject'](_0x2cfab9)){const _0x477520=_0x2cfab9;if(_0x33eb25&&_0x33eb25['type']['indexOf']('Container')>-0x1&&_0x58e005['pop'](),'elementEnd'==_0x3d8c61['type'])continue;_0x33eb25&&_0x33eb25['type']==_0x189fed+'Object'&&_0x33eb25['element']['name']==_0x477520['name']?_0x33eb25['quantity']++:_0x58e005['push']({'type':_0x189fed+'Object','element':_0x477520,'quantity':0x1}),_0x35b4ab['skip'](_0x15b4b2=>!('elementEnd'==_0x15b4b2['type']&&_0x15b4b2['item']==_0x2cfab9));}else{if(this['_schema']['checkChild'](_0x2cfab9,'$text')||_0x2cfab9['is']('element','softBreak')){const _0x55ef8f=_0x2cfab9;if('add'==_0x189fed&&'elementStart'==_0x3d8c61['type']||'remove'==_0x189fed&&'elementEnd'==_0x3d8c61['type'])continue;if(_0x33eb25&&-0x1==_0x33eb25['type']['indexOf']('Container')){'text'==_0x33eb25['type']&&(_0x33eb25[_0x189fed]+='\x0a');continue;}let _0x4fe1b9;if(_0x4fe1b9='add'==_0x189fed?_0x55ef8f['nextSibling']&&!this['_schema']['isObject'](_0x55ef8f['nextSibling'])?_0x55ef8f['nextSibling']:null:_0x55ef8f['previousSibling']&&!this['_schema']['isObject'](_0x55ef8f['previousSibling'])?_0x55ef8f['previousSibling']:null,_0x55ef8f['isEmpty']||_0x4fe1b9&&_0x4fe1b9['isEmpty']){const _0x2b7f86=_0x4fe1b9&&_0x4fe1b9['isEmpty']?_0x4fe1b9:_0x55ef8f;_0x33eb25&&_0x33eb25['type']==_0x189fed+'EmptyContainer'&&_0x33eb25['element']['name']==_0x2b7f86['name']?_0x33eb25['quantity']++:_0x58e005['push']({'type':_0x189fed+'EmptyContainer','element':_0x2b7f86,'quantity':0x1});}else _0x58e005['push']({'type':_0x189fed+'Container','element':_0x55ef8f});}}}}}['_resolveDescriptionItems'](_0x3f5dc0){const _0x2a3cce=this['_locale'],_0x22574a=[],_0x50a881=[],_0x45f63b=[];for(const _0x1a15e0 of _0x3f5dc0)switch(_0x1a15e0['type']){case'text':if(_0x1a15e0['add']=_0x1a15e0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1a15e0['remove']=_0x1a15e0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1a15e0['add']&&''!=_0x1a15e0['remove']){_0x22574a['push']({'type':'replace','content':o(_0x2a3cce,'REPLACE_TEXT',['\x22'+_0x1a15e0['remove']+'\x22','\x22'+_0x1a15e0['add']+'\x22'])});continue;}if(null!=_0x1a15e0['add']['match'](/^ +$/)){_0x22574a['push']({'type':'insertion','content':o(_0x2a3cce,'*Insert:*\x20%0',o(_0x2a3cce,'ELEMENT_SPACE',_0x1a15e0['add']['length']))});continue;}if(null!=_0x1a15e0['remove']['match'](/^ +$/)){_0x22574a['push']({'type':'deletion','content':o(_0x2a3cce,'*Remove:*\x20%0',o(_0x2a3cce,'ELEMENT_SPACE',_0x1a15e0['remove']['length']))});continue;}if(''!=_0x1a15e0['add']){_0x22574a['push']({'type':'insertion','content':o(_0x2a3cce,'*Insert:*\x20%0','\x22'+_0x1a15e0['add']+'\x22')});continue;}_0x22574a['push']({'type':'deletion','content':o(_0x2a3cce,'*Remove:*\x20%0','\x22'+_0x1a15e0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x22574a['push']({'type':'insertion','content':o(_0x2a3cce,'*Insert:*\x20%0',this['getItemLabel'](_0x1a15e0['element'],_0x1a15e0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x22574a['push']({'type':'deletion','content':o(_0x2a3cce,'*Remove:*\x20%0',this['getItemLabel'](_0x1a15e0['element'],_0x1a15e0['quantity']))});continue;case'addContainer':_0x22574a['push']({'type':'insertion','content':o(_0x2a3cce,'*Split:*\x20%0',this['getItemLabel'](_0x1a15e0['element'],_0x1a15e0['quantity']))});continue;case'removeContainer':_0x22574a['push']({'type':'deletion','content':o(_0x2a3cce,'*Merge:*\x20%0',this['getItemLabel'](_0x1a15e0['element'],_0x1a15e0['quantity']))});continue;case'addFormat':_0x50a881['push'](_0x1a15e0['key']);continue;case'removeFormat':_0x45f63b['push'](_0x1a15e0['key']);continue;default:_0x22574a['push'](_0x1a15e0);}if(_0x50a881['length']){const _0x189fd5=_0x50a881['map'](_0x52ed1e=>this['_attributeLabels']['has'](_0x52ed1e)?this['_attributeLabels']['get'](_0x52ed1e):_0x52ed1e)['join'](',\x20');_0x22574a['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x189fd5)});}if(_0x45f63b['length']){const _0x2a48db=_0x45f63b['map'](_0x477adb=>this['_attributeLabels']['has'](_0x477adb)?this['_attributeLabels']['get'](_0x477adb):_0x477adb)['join'](',\x20');_0x22574a['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2a48db)});}return _0x22574a;}['_handleCustomCallbackDescription'](_0x5e79bf){for(const _0x1f7a77 of this['_customCallbacks']){const _0x321780=_0x1f7a77(_0x5e79bf);if(_0x321780&&'type'in _0x321780)return _0x321780;}}['_handleAttributeSuggestionDescription'](_0x18a6f3,_0x54b1d4){const _0x46bc0a=_0x54b1d4['data'],_0x3b0c5a=void 0x0===_0x46bc0a['newValue']?'removeFormat':'addFormat';_0x18a6f3['push']({'type':_0x3b0c5a,'key':_0x46bc0a['key']});}['_handleRenameSuggestionDescription'](_0x42dd65,_0x4396cc){_0x42dd65['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4396cc['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xf4bffd,_0x43894a,_0x4b8ba4){if(this['_addDescriptionItems'](_0xf4bffd,_0x43894a),_0x4b8ba4&&_0x4b8ba4['getFirstRange']()&&!_0x43894a['getFirstRange']()['end']['isEqual'](_0x4b8ba4['getFirstRange']()['start'])){const _0x2e6f84=_0xf4bffd[_0xf4bffd['length']-0x1],_0x58095e='insertion'==_0x43894a['type']?'add':'remove';_0x2e6f84&&'text'==_0x2e6f84['type']&&(_0x2e6f84[_0x58095e]+='\x0a');}}}class U extends _0x62e235{['afterInit'](){const _0x42d277=this['editor'],_0x9db1c8=_0x42d277['plugins']['get']('TrackChangesEditing');_0x42d277['commands']['get']('showAIAssistant')&&_0x9db1c8['enableCommand']('showAIAssistant');}}class V extends _0x62e235{['afterInit'](){const _0x4a025b=this['editor'],_0x1ec4e4=_0x4a025b['locale'];if(!_0x4a025b['plugins']['has']('AlignmentEditing'))return;const _0x16eaac=_0x4a025b['plugins']['get']('TrackChangesEditing');_0x16eaac['enableDefaultAttributesIntegration']('alignment'),_0x16eaac['registerBlockAttribute']('alignment'),_0x16eaac['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1ec4e4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10b323=this['editor'],_0x676a65=_0x10b323['locale'];_0x10b323['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26b25c=>{if('formatBlock'!=_0x26b25c['type'])return;const {data:_0x41a44f}=_0x26b25c;if(_0x41a44f&&'alignment'==_0x41a44f['commandName']){const _0x1c9b8b=_0x41a44f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x676a65,'*Format:*\x20%0',function(_0x2d05c7){switch(_0x2d05c7){case'left':return o(_0x676a65,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x676a65,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x676a65,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x676a65,'FORMAT_JUSTIFY_TEXT');}}(_0x1c9b8b))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x62e235{['afterInit'](){const _0x244045=this['editor'],_0x5bce6a=_0x244045['plugins']['get']('TrackChangesEditing'),_0x3278bd=_0x244045['locale'];for(const _0x15a31a of Zt){if(!_0x244045['plugins']['has'](_0x15a31a))continue;const _0x2da85c=_0x15a31a['slice'](0x0,-0x7)['toLowerCase'](),_0xe629ba='FORMAT_'+_0x2da85c['toUpperCase']();_0x5bce6a['enableDefaultAttributesIntegration'](_0x2da85c),_0x5bce6a['registerInlineAttribute'](_0x2da85c),_0x5bce6a['descriptionFactory']['registerAttributeLabel'](_0x2da85c,o(_0x3278bd,_0xe629ba));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x481467=this['editor'],_0x26fe1e=_0x481467['locale'],_0xd92f3d=_0x481467['plugins']['get']('TrackChangesEditing');function _0x4f7b2e(_0x24397a,_0x203bb8){_0xd92f3d['descriptionFactory']['registerDescriptionCallback'](_0x3fb146=>{if('formatInline'!=_0x3fb146['type'])return;const {data:_0x5c2207}=_0x3fb146;return _0x5c2207&&_0x5c2207['commandName']===_0x24397a?_0x5c2207['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26fe1e,'*Format:*\x20%0',_0x203bb8)}:{'type':'format','content':o(_0x26fe1e,'*Remove\x20format:*\x20%0',_0x203bb8)}:void 0x0;});}_0x4f7b2e('bold',o(_0x26fe1e,'FORMAT_BOLD')),_0x4f7b2e('italic',o(_0x26fe1e,'FORMAT_ITALIC')),_0x4f7b2e('underline',o(_0x26fe1e,'FORMAT_UNDERLINE')),_0x4f7b2e('code',o(_0x26fe1e,'FORMAT_CODE')),_0x4f7b2e('strikethrough',o(_0x26fe1e,'FORMAT_STRIKETHROUGH')),_0x4f7b2e('subscript',o(_0x26fe1e,'FORMAT_SUBSCRIPT')),_0x4f7b2e('superscript',o(_0x26fe1e,'FORMAT_SUPERSCRIPT'));}}class F extends _0x62e235{['afterInit'](){const _0x371200=this['editor'],_0x5e27b6=_0x371200['locale'];if(!_0x371200['plugins']['has']('BlockQuoteEditing'))return;const _0x367c0d=_0x371200['plugins']['get']('TrackChangesEditing'),_0x3ac11d=this['editor']['commands']['get']('blockQuote');_0x367c0d['enableCommand']('blockQuote',(_0x483903,_0x56cb6f={})=>{const _0x500548=this['editor']['model']['document']['selection'],_0x4de007=_0x56cb6f&&void 0x0!==_0x56cb6f['forceValue']?_0x56cb6f['forceValue']:!_0x3ac11d['value'];let _0x4a94ce=[];if(_0x4de007){const _0x435c0b=Array['from'](_0x500548['getSelectedBlocks']())['filter'](_0x23e6c2=>oo(_0x23e6c2)||function(_0x571396,_0x36ea8f){const _0x49ed4c=_0x36ea8f['checkChild'](_0x571396['parent'],'blockQuote'),_0x27e402=_0x36ea8f['checkChild'](['$root','blockQuote'],_0x571396);return _0x49ed4c&&_0x27e402;}(_0x23e6c2,this['editor']['model']['schema']));_0x4a94ce=to(_0x435c0b,_0x371200['model']);}else{const _0x4048dd=Array['from'](_0x500548['getSelectedBlocks']())['filter'](_0x59f3d1=>oo(_0x59f3d1));_0x4a94ce=to(_0x4048dd,_0x371200['model']);}_0x371200['model']['change'](()=>{for(const _0x49c462 of _0x4a94ce)_0x367c0d['markBlockFormat'](_0x49c462,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4de007}]});});}),_0x367c0d['descriptionFactory']['registerDescriptionCallback'](_0x1a76d0=>{const {data:_0x1eb644}=_0x1a76d0;if(_0x1eb644&&'blockQuote'==_0x1eb644['commandName']){const _0x2f549e=o(_0x5e27b6,'ELEMENT_BLOCK_QUOTE');return _0x1eb644['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e27b6,'*Set\x20format:*\x20%0',_0x2f549e)}:{'type':'format','content':o(_0x5e27b6,'*Remove\x20format:*\x20%0',_0x2f549e)};}});}}function oo(_0x28c3e9){return'blockQuote'==_0x28c3e9['parent']['name'];}class L extends _0x62e235{['afterInit'](){const _0x556b6b=this['editor'],_0x447c62=_0x556b6b['locale'],_0x1a2b78=_0x556b6b['plugins']['get']('TrackChangesEditing');_0x556b6b['plugins']['has']('BookmarkEditing')&&(_0x1a2b78['enableCommand']('insertBookmark'),_0x1a2b78['enableDefaultAttributesIntegration']('updateBookmark'),_0x1a2b78['registerBlockAttribute']('bookmarkId'),_0x1a2b78['descriptionFactory']['registerDescriptionCallback'](_0x136773=>{if('insertion'!=_0x136773['type']&&'deletion'!=_0x136773['type']&&'attribute'!=_0x136773['type'])return;const _0x27849c=_0x136773['getContainedElement']();if(null==_0x27849c)return;if(!_0x27849c['is']('element','bookmark'))return;const _0x1e128f=_0x27849c['getAttribute']('bookmarkId');if('insertion'==_0x136773['type'])return{'type':'insertion','content':o(_0x447c62,'*Insert:*\x20%0','\x22'+_0x1e128f+'\x22\x20'+o(_0x447c62,'ELEMENT_BOOKMARK'))};if('deletion'==_0x136773['type'])return{'type':'deletion','content':o(_0x447c62,'*Remove:*\x20%0','\x22'+_0x1e128f+'\x22\x20'+o(_0x447c62,'ELEMENT_BOOKMARK'))};const {data:_0x1bae72}=_0x136773;if(!_0x1bae72||'bookmarkId'!=_0x1bae72['key'])return;return{'type':'format','content':o(_0x447c62,'*Set\x20bookmark:*\x20%0','\x22'+_0x1bae72['newValue']+'\x22')};}));}}class J extends _0x62e235{['afterInit'](){const _0x1c8d97=this['editor'];_0x1c8d97['plugins']['has']('CaseChange')&&(_0x1c8d97['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1c8d97['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1c8d97['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x62e235{['afterInit'](){const _0x46e165=this['editor'];_0x46e165['commands']['get']('ckbox')&&_0x46e165['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x62e235{['afterInit'](){const _0x194d3a=this['editor'];if(!_0x194d3a['plugins']['has']('CodeBlock'))return;const _0x49106a=_0x194d3a['plugins']['get']('TrackChangesEditing'),_0x30781c=_0x194d3a['locale'],_0x6dd3f1=_0x194d3a['config']['get']('codeBlock')['languages'],_0x4d0a12=_0x194d3a['commands']['get']('codeBlock');_0x49106a['enableCommand']('indentCodeBlock'),_0x49106a['enableCommand']('outdentCodeBlock'),_0x49106a['enableCommand']('codeBlock',(_0x1a67ce,_0x5c8344={})=>{const _0x526761=_0x194d3a['model'],_0x180e66=_0x194d3a['model']['document']['selection'],_0x47ba92=_0x5c8344&&void 0x0!==_0x5c8344['forceValue']?_0x5c8344['forceValue']:!_0x4d0a12['value'];let _0x450f19;_0x5c8344['language']||(_0x5c8344['language']=_0x6dd3f1[0x0]['language']),_0x450f19=_0x47ba92?Array['from'](_0x180e66['getSelectedBlocks']())['filter'](_0x480a0a=>eo(_0x480a0a)||function(_0x59a281,_0x4a3a16){if(_0x59a281['is']('rootElement')||_0x4a3a16['isLimit'](_0x59a281))return!0x1;return _0x4a3a16['checkChild'](_0x59a281['parent'],'codeBlock');}(_0x480a0a,_0x526761['schema'])):Array['from'](_0x180e66['getSelectedBlocks']())['filter'](_0x38f8f4=>eo(_0x38f8f4));const _0x3cb36c=to(_0x450f19,_0x526761);_0x526761['change'](()=>{for(const _0x1d6ef4 of _0x3cb36c)_0x49106a['markBlockFormat'](_0x1d6ef4,{'commandName':'codeBlock','commandParams':[{..._0x5c8344,'forceValue':_0x47ba92}],'formatGroupId':'blockName'});});}),(_0x49106a['descriptionFactory']['registerElementLabel']('codeBlock',_0x10eb53=>o(_0x30781c,'ELEMENT_CODE_BLOCK',_0x10eb53)),_0x49106a['descriptionFactory']['registerDescriptionCallback'](_0x1f3bb4=>{if('formatBlock'!=_0x1f3bb4['type'])return;const _0x53d752=_0x30781c['t'],{data:_0x4c6da8}=_0x1f3bb4;if(!_0x4c6da8||'codeBlock'!=_0x4c6da8['commandName'])return;const _0x2c1f24=_0x4c6da8['commandParams'][0x0]['language'],_0x57f198=_0x53d752(_0x6dd3f1['find'](_0x27107c=>_0x27107c['language']===_0x2c1f24)['label'])['toLowerCase']();return _0x4c6da8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30781c,'*Set\x20format:*\x20%0',o(_0x30781c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x57f198+')')}:{'type':'format','content':o(_0x30781c,'*Remove\x20format:*\x20%0',o(_0x30781c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xccb290){return'codeBlock'==_0xccb290['name'];}class z extends _0x62e235{['afterInit'](){const _0x5e708d=this['editor'];if(!_0x5e708d['plugins']['has']('CommentsEditing'))return;_0x5e708d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x27e382,_0x23dcea,_0x41ad27){const _0x4c9a9c=[];for(const _0x493b1f of _0x23dcea['getItems']())_0x493b1f['hasAttribute'](_0x27e382)&&_0x4c9a9c['push'](_0x41ad27['createRangeOn'](_0x493b1f));return _0x4c9a9c;}function De(_0x3ea8f9,_0x2aafa6,{showActiveMarker:_0x37b1a6=!0x0}={}){const _0x2c9600=_0x3ea8f9['plugins']['get']('TrackChangesEditing');return(_0x14d058,_0x934537,_0x643676)=>{if(!_0x643676['consumable']['test'](_0x934537['markerRange'],_0x14d058['name']))return;const _0x1356ab=_0x934537['markerRange']['getWalker'](),_0x216720=_0x934537['markerRange']['start'],_0x3bf913=_0x3ea8f9['model']['schema'];let _0x466d12=null,_0x162303=null,_0x407475=!0x1,_0x10365a=!0x1;for(const _0x4ac61d of _0x1356ab){const _0x2ab584=_0x4ac61d['item'];_0x407475=_0x407475||_0x3bf913['isContent'](_0x2ab584);const _0xe73b57=_0x643676['mapper']['toViewElement'](_0x2ab584);if(_0xe73b57&&_0xe73b57['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4ac61d['type']&&(_0x3bf913['isBlock'](_0x2ab584)&&!_0x3bf913['isLimit'](_0x2ab584)&&(_0x2ab584['nextSibling']||_0x216720['isAtEnd']?_0x466d12&&_0x466d12['parent']==_0x2ab584||(_0x466d12=_0x2ab584,_0x4abc1a(_0x4ac61d['previousPosition']),_0x10365a=!0x0):_0x162303=_0x162303||_0x4ac61d['previousPosition']));}function _0x4abc1a(_0x2ba779){const {authorId:_0x23e1bd}=_0x2c9600['_splitMarkerName'](_0x934537['markerName']),_0x4cbd03=_0x643676['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2aafa6,'data-author-id':_0x23e1bd}),_0x53d8d6=_0x643676['mapper']['toViewPosition'](_0x2ba779);_0x37b1a6&&_0x2c9600['activeMarkers']['includes'](_0x934537['markerName'])&&_0x643676['writer']['addClass']('ck-suggestion-marker--active',_0x4cbd03),_0x643676['writer']['insert'](_0x53d8d6,_0x4cbd03),_0x643676['mapper']['bindElementToMarker'](_0x4cbd03,_0x934537['markerName']);}_0x407475||_0x10365a||!_0x162303||_0x4abc1a(_0x162303);};}class K extends _0x62e235{static get['requires'](){return[_0x7db45e];}['init'](){const _0x56acf7=this['editor'],_0x1915df=_0x56acf7['plugins']['get']('TrackChangesEditing');_0x1915df['enableCommand']('delete');const _0xd07daa=_0x56acf7['commands']['get']('deleteForward');_0x1915df['enableCommand']('deleteForward',(_0x4bd0cd,_0x55c8a4={})=>{const _0x4b4a1e=_0x56acf7['model']['createSelection'](_0x56acf7['model']['document']['selection']);_0x4b4a1e['isCollapsed']&&_0x56acf7['model']['modifySelection'](_0x4b4a1e,{'direction':'forward','unit':_0x55c8a4['unit']});const _0x550546=_0x4b4a1e['getFirstRange'](),_0x2eee21=_0x3253cc['fromRange'](_0x550546);let _0x3caab7;_0x4bd0cd(_0x55c8a4),_0x3caab7='$graveyard'==_0x2eee21['root']['rootName']?_0x56acf7['model']['createRange'](_0x550546['start']):_0x56acf7['model']['createRange'](_0x2eee21['start'],_0x2eee21['end']),_0x2eee21['detach'](),_0x56acf7['model']['enqueueChange'](_0xd07daa['buffer']['batch'],_0x47a644=>{_0xd07daa['buffer']['lock'](),_0x47a644['setSelection'](_0x47a644['createRange'](_0x3caab7['end'])),_0xd07daa['buffer']['unlock']();});}),_0x56acf7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x56acf7,'merge'),{'priority':'high'}),_0x56acf7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4b11ca,_0x385214,_0x501d6d)=>{_0x501d6d['options']['showSuggestionHighlights']&&De(_0x56acf7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4b11ca,_0x385214,_0x501d6d);},{'priority':'high'}),_0x56acf7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x31a65f,_0x258f27,_0x25d7e7)=>{const _0xc50588=_0x25d7e7['mapper']['markerNameToElements'](_0x258f27['markerName']);if(_0xc50588){for(const _0x3a097a of _0xc50588)_0x3a097a['is']('uiElement')&&(_0x25d7e7['mapper']['unbindElementFromMarkerName'](_0x3a097a,_0x258f27['markerName']),_0x25d7e7['writer']['remove'](_0x3a097a));}},{'priority':'high'});}}class W extends _0x62e235{['afterInit'](){const _0x55cc95=this['editor'];if(!_0x55cc95['plugins']['has']('ListEditing'))return;const _0x2b540d=_0x55cc95['locale'],_0x1d58f3=_0x55cc95['plugins']['get']('TrackChangesEditing'),_0x3bb64b=_0x55cc95['plugins']['has']('TodoListEditing'),_0x49f49f=!!_0x55cc95['config']['get']('list.multiBlock');function _0x3efdda(_0x2af366){return{'type':'format','content':''+o(_0x2b540d,'*Set\x20format:*\x20%0',_0x2af366)};}function _0x2359e8(_0x11b84f){return{'type':'format','content':''+o(_0x2b540d,'*Remove\x20format:*\x20%0',_0x11b84f)};}_0x1d58f3['enableDefaultAttributesIntegration']('numberedList'),_0x1d58f3['enableDefaultAttributesIntegration']('bulletedList'),_0x1d58f3['enableDefaultAttributesIntegration']('customNumberedList'),_0x1d58f3['enableDefaultAttributesIntegration']('customBulletedList'),_0x1d58f3['enableDefaultAttributesIntegration']('indentList'),_0x1d58f3['enableDefaultAttributesIntegration']('outdentList'),_0x1d58f3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1d58f3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1d58f3['registerBlockAttribute']('listItemId'),_0x1d58f3['registerBlockAttribute']('listType'),_0x1d58f3['registerBlockAttribute']('listIndent'),_0x49f49f&&(_0x1d58f3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1d58f3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3bb64b&&(_0x1d58f3['enableDefaultAttributesIntegration']('todoList'),_0x1d58f3['enableDefaultAttributesIntegration']('checkTodoList'),_0x1d58f3['registerBlockAttribute']('todoListChecked'),_0x1d58f3['descriptionFactory']['registerDescriptionCallback'](_0x404233=>{const {data:_0x4f6bcd}=_0x404233;if(_0x4f6bcd&&'todoListChecked'==_0x4f6bcd['key'])return{'type':'format','content':_0x4f6bcd['newValue']?o(_0x2b540d,'*Check\x20item*'):o(_0x2b540d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5e4835=>{if(_0x5e4835['batch']['isUndo'])return!0x1;let _0x5e8715=!0x1;const _0x479061=_0x1d58f3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x740219=>'todoListChecked'===_0x1d58f3['_getAttributeKey'](_0x740219));for(const _0x37ae69 of _0x479061){'todo'!=_0x37ae69['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1d58f3['_findSuggestions'](_0x37ae69['getFirstRange'](),'attribute')['find'](_0x508b85=>'listType'===_0x1d58f3['_getAttributeKey'](_0x508b85['suggestion']))||(_0x5e4835['removeMarker'](_0x37ae69['getFirstMarker']()),_0x5e8715=!0x0));}return _0x5e8715;})),_0x1d58f3['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2b540d,'FORMAT_INDENT'));const _0x19dece={'type':'format','content':''};_0x1d58f3['descriptionFactory']['registerDescriptionCallback'](_0x56efda=>{const {data:_0x32f1f8}=_0x56efda;if(!_0x32f1f8||'listType'!=_0x32f1f8['key'])return;let _0x50921e=_0x56efda['head'];for(;_0x50921e;){if(_0x50921e['data']&&(('listStyle'==_0x50921e['data']['key']||'listMarkerStyle'==_0x50921e['data']['key'])&&(_0x50921e['data']['newValue']&&'default'!=_0x50921e['data']['newValue']||'default'!=_0x50921e['data']['oldValue']&&!_0x32f1f8['newValue'])||!_0x49f49f&&_0x50921e['data']['key']==m))return _0x19dece;_0x50921e=_0x50921e['next'];}if(null==_0x32f1f8['newValue'])switch(_0x32f1f8['oldValue']){case'bulleted':return _0x2359e8(o(_0x2b540d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2359e8(o(_0x2b540d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2359e8(o(_0x2b540d,'ELEMENT_TODO_LIST'));}switch(_0x32f1f8['newValue']){case'bulleted':return _0x3efdda(o(_0x2b540d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3efdda(o(_0x2b540d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3efdda(o(_0x2b540d,'ELEMENT_TODO_LIST'));}}),_0x1d58f3['descriptionFactory']['registerDescriptionCallback'](_0x25dbdb=>{const {data:_0x431d7b}=_0x25dbdb;if(_0x431d7b&&'listIndent'==_0x431d7b['key'])return null==_0x431d7b['newValue']||null==_0x431d7b['oldValue']&&0x0==_0x431d7b['newValue']?_0x19dece:void 0x0;}),_0x1d58f3['descriptionFactory']['registerDescriptionCallback'](_0x137f8e=>{if('attribute'!=_0x137f8e['type'])return;const {data:_0x53cff8}=_0x137f8e;if(!_0x53cff8||'listItemId'!=_0x53cff8['key'])return;const _0x5dc2f9=Te(_0x137f8e);return'newValue'==_0x5dc2f9?{'type':'format','content':o(_0x2b540d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5dc2f9?{'type':'format','content':o(_0x2b540d,'*Split:*\x20list\x20item')}:_0x19dece;}),_0x55cc95['model']['document']['registerPostFixer'](_0x113943=>this['listItemIdFixer'](_0x113943)),_0x55cc95['model']['document']['registerPostFixer'](_0x570a5b=>this['noTrackChangesFixer'](_0x570a5b)),_0x55cc95['model']['document']['on']('change:data',(_0x2ec06a,_0x10e665)=>{if(_0x10e665['isUndo']||!_0x10e665['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1098f2){if(_0x1098f2['batch']['isUndo']||!_0x1098f2['batch']['isLocal'])return!0x1;let _0x104e9b=!0x1;const _0x453331=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4cdc79=>_0x4cdc79['data']&&'listItemId'==_0x4cdc79['data']['key'])['filter'](_0x28cbc0=>_0x28cbc0['data']['newValue']&&_0x28cbc0['data']['oldValue']);for(const _0x15122f of _0x453331)Te(_0x15122f)||(_0x1098f2['removeMarker'](_0x15122f['getFirstMarker']()),_0x104e9b=!0x0);return _0x104e9b;}['noTrackChangesFixer'](_0x4f979c){if(_0x4f979c['batch']['isUndo']||!_0x4f979c['batch']['isLocal'])return!0x1;const _0x7ad851=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x7ad851['trackChangesCommand']['value'])return!0x1;let _0x4eb0bb=!0x1;const _0x547019=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xbcc20e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3cd2f1=>'attribute'==_0x3cd2f1['type'])['filter'](_0xe9cda8=>_0x547019['includes'](_0xe9cda8['attributeKey']));if(0x0==_0xbcc20e['length'])return _0x4eb0bb;for(const _0x8a096c of _0xbcc20e){const _0x27fe5a=_0x7ad851['_findSuggestions'](_0x8a096c['range'],'attribute')['filter'](_0x47b473=>!_0x47b473['meta']['isNextTo'])['map'](_0x1aef14=>_0x1aef14['suggestion'])['filter'](_0x70a8af=>{const _0x323e06=_0x7ad851['_getAttributeKey'](_0x70a8af);return _0x547019['includes'](_0x323e06);});if(_0x27fe5a['length']){for(const _0x3641db of _0x27fe5a)_0x4f979c['removeMarker'](_0x3641db['getFirstMarker']());_0x4eb0bb=!0x0;}}return _0x4eb0bb;}['assureChains'](){const _0x2ee01f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c582d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xd0f860;const _0x420fb9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x10352e=>{if(_0x10352e['data']['oldRange']||!_0x10352e['data']['newRange'])return null;if(!_0x10352e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1f7445}=_0x2ee01f['_splitMarkerName'](_0x10352e['name']);if(!_0x2ee01f['hasSuggestion'](_0x1f7445))return null;const _0x38dcd7=_0x2ee01f['getSuggestion'](_0x1f7445);return _0x3c582d['includes'](_0x38dcd7['data']['key']);})['map'](_0x3bb83f=>{const {id:_0x1c2b20}=_0x2ee01f['_splitMarkerName'](_0x3bb83f['name']),_0x5693ff=_0x2ee01f['getSuggestion'](_0x1c2b20);return _0xd0f860=_0x5693ff['attributes']['groupId'],_0x5693ff['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x420fb9['size'])return;const _0x619af2=_0x2ee01f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3768d2=>'attribute'==_0x3768d2['type']&&_0x3768d2['data']&&_0x3c582d['includes'](_0x3768d2['data']['key'])&&_0x3768d2['attributes']['groupId']!=_0xd0f860)['map'](_0x2c0b4e=>({'listItem':_0x2c0b4e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2c0b4e['attributes']['groupId']})),_0x2f3ca5=new Set();for(const {groupId:_0x11a4ff,listItem:_0x2b4e54}of _0x619af2)_0x420fb9['has'](_0x2b4e54)&&_0x2f3ca5['add'](_0x11a4ff);for(const _0x1baae2 of _0x2ee01f['getSuggestions']())_0x2f3ca5['has'](_0x1baae2['attributes']['groupId'])&&_0x1baae2['setAttribute']('groupId',_0xd0f860);}['_supportLegacySuggestions'](){const _0x12a5eb=this['editor'],_0xbf5996=_0x12a5eb['locale'],_0x48b08f=_0x12a5eb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x48b08f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x527e02,_0x2db092){const _0x3c1eff=[];for(let _0x517ad9 of _0x527e02)_0x517ad9['start']['nodeAfter']===_0x517ad9['end']['parent']&&(_0x517ad9=_0x12a5eb['model']['createRange'](_0x12a5eb['model']['createPositionAt'](_0x517ad9['start']['nodeAfter'],0x0))),_0x3c1eff['push'](_0x517ad9);_0x12a5eb['model']['change'](_0x6b9379=>{const _0x4e6d3f=_0x12a5eb['model']['document']['selection'],_0x524d3f=Array['from'](_0x4e6d3f['getRanges']())['map'](_0x5dfe7e=>_0x3253cc['fromRange'](_0x5dfe7e));_0x6b9379['setSelection'](_0x3c1eff),_0x12a5eb['commands']['get'](_0x2db092['commandName'])['refresh'](),_0x2db092['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x12a5eb['execute'](_0x2db092['commandName'],..._0x2db092['commandParams']),_0x6b9379['setSelection'](_0x524d3f);for(const _0x358648 of _0x524d3f)_0x358648['detach']();});}),_0x48b08f['descriptionFactory']['registerElementLabel'](function(_0x292067){const _0x3ed736=!_0x12a5eb['model']['schema']['isObject'](_0x292067),_0x55025a=_0x292067['previousSibling'],_0xc9c23=_0x292067['nextSibling'],_0x162e84=_0x292067['getAttribute']('listItemId'),_0x236c02=!_0x55025a||_0x55025a['getAttribute']('listItemId')!==_0x162e84,_0x1a12ad=!_0xc9c23||_0xc9c23['getAttribute']('listItemId')!==_0x162e84;return _0x3ed736&&Boolean(_0x162e84)&&_0x236c02&&_0x1a12ad;},_0x524654=>o(_0xbf5996,'ELEMENT_LIST_ITEM',_0x524654));}['_registerLegacyDescription'](){const _0x4f6bb0=this['editor'],_0x495541=_0x4f6bb0['locale'];function _0x31fed2(_0x330aad){const _0xe39d43=_0x4f6bb0['commands']['get']('bulletedList')['value'],_0x3385c3=_0x4f6bb0['commands']['get']('numberedList')['value'];return'numberedList'===_0x330aad?_0xe39d43:_0x3385c3;}_0x4f6bb0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xd61f8c){if('formatBlock'!=_0xd61f8c['type'])return;const {data:_0x589fb5}=_0xd61f8c;if(!_0x589fb5)return;let _0x1a8cd4,_0x1a4d5d,_0x43e5a1,_0x2ae1d7;switch(_0x589fb5['commandName']){case'bulletedList':_0x43e5a1=_0x589fb5['commandParams'][0x0]['forceValue'],_0x2ae1d7=_0x31fed2(_0x589fb5['commandName']),_0x1a8cd4=_0x43e5a1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ae1d7&&_0x4f6bb0['config']['get']('list.multiBlock')||(_0x1a8cd4='*Change\x20to:*\x20%0'),_0x1a4d5d={'type':'format','content':o(_0x495541,_0x1a8cd4,o(_0x495541,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x43e5a1=_0x589fb5['commandParams'][0x0]['forceValue'],_0x2ae1d7=_0x31fed2(_0x589fb5['commandName']),_0x1a8cd4=_0x43e5a1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ae1d7&&_0x4f6bb0['config']['get']('list.multiBlock')||(_0x1a8cd4='*Change\x20to:*\x20%0'),_0x1a4d5d={'type':'format','content':o(_0x495541,_0x1a8cd4,o(_0x495541,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1a8cd4='*Indent:*\x20%0',_0x1a4d5d={'type':'format','content':o(_0x495541,_0x1a8cd4,o(_0x495541,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1a8cd4=function(_0x6e211b){const _0x2a25f0=_0x6e211b['getFirstRange']();let _0x4a6f8b=_0x2a25f0['start']['nodeAfter'];for(;_0x4a6f8b&&_0x2a25f0['containsItem'](_0x4a6f8b);){if(_0x4a6f8b['getAttribute']('listIndent')>0x0)return!0x1;_0x4a6f8b=_0x4a6f8b['nextSibling'];}return!0x0;}(_0xd61f8c)?o(_0x495541,'*Format:*\x20remove\x20from\x20%0',o(_0x495541,function(_0x2aa9f6){return'ELEMENT_'+_0x2aa9f6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xd61f8c))):o(_0x495541,'*Outdent:*\x20%0',o(_0x495541,'ELEMENT_LIST_ITEM')),_0x1a4d5d={'type':'format','content':_0x1a8cd4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x589fb5['multipleBlocks']&&(_0x1a8cd4='*Merge:*\x20%0',_0x1a4d5d={'type':'deletion','content':o(_0x495541,_0x1a8cd4,o(_0x495541,'ELEMENT_LIST_ITEM'))});}return _0x1a4d5d;});}}function Te(_0x481def){let _0x3b01d3=_0x481def['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3b01d3;){const _0x2d93c0=_0x3b01d3['getAttribute']('listItemId');if(!_0x2d93c0)return!0x1;if(_0x2d93c0==_0x481def['data']['newValue'])return'newValue';if(_0x2d93c0==_0x481def['data']['oldValue'])return'oldValue';_0x3b01d3=_0x3b01d3['previousSibling'];}return!0x1;}class Se extends _0x62e235{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3b8894=this['editor']['config']['get']('list.properties'),_0x392202=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b8894['styles']&&(_0x392202['enableDefaultAttributesIntegration']('listStyle'),_0x392202['registerBlockAttribute']('listStyle')),_0x3b8894['reversed']&&(_0x392202['enableDefaultAttributesIntegration']('listReversed'),_0x392202['registerBlockAttribute']('listReversed')),_0x3b8894['startIndex']&&(_0x392202['enableDefaultAttributesIntegration']('listStart'),_0x392202['registerBlockAttribute']('listStart'));const _0x53d2e7={'type':'format','content':''};_0x392202['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x206f1a=this['editor']['locale'];_0x392202['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x206f1a,'FORMAT_LIST_REVERSED')),_0x392202['descriptionFactory']['registerDescriptionCallback'](_0x3d7899=>{const {data:_0x5039e3}=_0x3d7899;if(_0x5039e3&&'listReversed'==_0x5039e3['key'])return null==_0x5039e3['newValue']||0x0==_0x5039e3['newValue']&&null==_0x5039e3['oldValue']?_0x53d2e7:void 0x0;}),_0x392202['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x206f1a,'FORMAT_LIST_START')),_0x392202['descriptionFactory']['registerDescriptionCallback'](_0x43c873=>{const {data:_0x1ed99b}=_0x43c873;if(_0x1ed99b&&'listStart'==_0x1ed99b['key'])return null==_0x1ed99b['newValue']||0x1==_0x1ed99b['newValue']&&null==_0x1ed99b['oldValue']?_0x53d2e7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2719e2=>{if(_0x2719e2['batch']['isUndo'])return!0x1;let _0x4c8f90=!0x1;const _0x5f2a44=_0x392202['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22933f=>{const _0x40f90d=_0x392202['_getAttributeKey'](_0x22933f);return'listStart'==_0x40f90d||'listReversed'==_0x40f90d;});for(const _0x2f46b2 of _0x5f2a44){const _0x161a3c=_0x2f46b2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x161a3c||'customNumbered'==_0x161a3c)continue;_0x392202['_findSuggestions'](_0x2f46b2['getFirstRange'](),'attribute')['find'](_0x207a9f=>'listType'==_0x392202['_getAttributeKey'](_0x207a9f['suggestion']))||(_0x2719e2['removeMarker'](_0x2f46b2['getFirstMarker']()),_0x4c8f90=!0x0);}return _0x4c8f90;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3325a5){const _0x1f98ff=this['editor']['locale'],{data:_0x538ae0}=_0x3325a5,_0x33f461={'type':'format','content':''};if(!_0x538ae0||'listStyle'!=_0x538ae0['key'])return;if(!_0x538ae0['oldValue'])return'default'==_0x538ae0['newValue']?_0x33f461:{'type':'format','content':''+o(_0x1f98ff,'*Set\x20format:*\x20%0',o(_0x1f98ff,this['_getTranslationKeyForListStyle'](_0x538ae0['newValue'])))};if(!_0x538ae0['newValue']){if('default'==_0x538ae0['oldValue'])return _0x33f461;let _0x202c53=_0x3325a5['head'];for(;_0x202c53;){if(_0x202c53['data']&&'listType'==_0x202c53['data']['key']&&_0x202c53['data']['newValue'])return _0x33f461;_0x202c53=_0x202c53['next'];}return{'type':'format','content':''+o(_0x1f98ff,'*Remove\x20format:*\x20%0',o(_0x1f98ff,this['_getTranslationKeyForListStyle'](_0x538ae0['oldValue'])))};}if('default'!=_0x538ae0['newValue'])return{'type':'format','content':''+o(_0x1f98ff,'*Set\x20format:*\x20%0',o(_0x1f98ff,this['_getTranslationKeyForListStyle'](_0x538ae0['newValue'])))};let _0x9af68b=_0x3325a5['head'];for(;_0x9af68b;){if(_0x9af68b['data']&&'listType'==_0x9af68b['data']['key']&&_0x9af68b['data']['newValue']&&_0x9af68b['data']['oldValue'])return _0x33f461;_0x9af68b=_0x9af68b['next'];}return{'type':'format','content':o(_0x1f98ff,'*Set\x20format:*\x20%0',o(_0x1f98ff,'ELEMENT_'+_0x3325a5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x32eb5a=this['editor'],_0x51bbce=_0x32eb5a['locale'];_0x32eb5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x451121=>{if('formatBlock'!=_0x451121['type'])return;const {data:_0x2f8f68}=_0x451121;if(!_0x2f8f68)return;let _0x17da14,_0x2f8aed;switch(_0x2f8f68['commandName']){case'listStyle':_0x17da14='*Change\x20to:*\x20%0',_0x2f8aed={'type':'format','content':o(_0x51bbce,_0x17da14,o(_0x51bbce,this['_getTranslationKeyForListStyle'](_0x2f8f68['commandParams'][0x0]['type'])))};break;case'listReversed':_0x17da14=_0x2f8f68['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2f8aed={'type':'format','content':o(_0x51bbce,_0x17da14)};break;case'listStart':_0x17da14='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2f8aed={'type':'format','content':o(_0x51bbce,_0x17da14,_0x2f8f68['commandParams'][0x0]['startIndex'])};}return _0x2f8aed;});}['_getTranslationKeyForListStyle'](_0x2130a9){return'ELEMENT_'+function(_0x4d515e){if(_e['includes'](_0x4d515e))return'bulleted';if(Re['includes'](_0x4d515e))return'numbered';return null;}(_0x2130a9)['toUpperCase']()+'_LIST_'+_0x2130a9['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x62e235{static get['requires'](){return[_0x3c4e02];}['init'](){const _0x53611b=this['editor'],_0x425f54=_0x53611b['plugins']['get']('TrackChangesEditing'),_0x569411=_0x53611b['commands']['get']('enter');_0x425f54['enableCommand']('enter',()=>{_0x53611b['model']['change'](_0x26a039=>{const _0x544f11=_0x53611b['model']['document']['selection'],_0x59eec4=_0x544f11['getFirstPosition'](),_0x340b6a=_0x3253cc['fromRange'](_0x544f11['getFirstRange']());if(_0x569411['enterBlock'](_0x26a039)){const _0x187831=_0x53611b['model']['createPositionAt'](_0x59eec4['parent']['nextSibling'],0x0),_0x18916a=_0x26a039['createRange'](_0x59eec4,_0x187831);_0x425f54['markInsertion'](_0x18916a);}else _0x26a039['setSelection'](_0x26a039['createRange'](_0x340b6a['end']));_0x340b6a['detach'](),_0x569411['fire']('afterExecute',{'writer':_0x26a039});});}),_0x53611b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x53611b,'split'),{'priority':'high'}),_0x53611b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x599025,_0x2298c2,_0x15c722)=>{const _0x5aa87a=_0x15c722['mapper']['markerNameToElements'](_0x2298c2['markerName']);if(_0x5aa87a){for(const _0x32bddf of _0x5aa87a)_0x32bddf['hasClass']('ck-suggestion-marker-split')&&(_0x15c722['mapper']['unbindElementFromMarkerName'](_0x32bddf,_0x2298c2['markerName']),_0x15c722['writer']['remove'](_0x32bddf));}},{'priority':'high'}),_0x53611b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x389c41,_0x37273b,_0x28e8a3)=>{_0x28e8a3['options']['showSuggestionHighlights']&&De(_0x53611b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x389c41,_0x37273b,_0x28e8a3);},{'priority':'high'});}}class Y extends _0x62e235{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x29d85a=this['editor']['plugins']['get']('TrackChangesEditing');_0x29d85a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x29d85a['enableCommand']('findNext'),_0x29d85a['enableCommand']('findPrevious'),_0x29d85a['enableCommand']('replace'),_0x29d85a['enableCommand']('replaceAll');}['handleFindCommand'](_0x4ff0fa,_0x5f4b4e,_0x6a3535={}){const _0x466525=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4ff0fa(_0xceb05c=>{let _0xba048e=('string'==typeof _0x5f4b4e?_0x466525['findByTextCallback'](_0x5f4b4e,_0x6a3535):_0x5f4b4e)(_0xceb05c);Array['isArray'](_0xba048e)&&(_0xba048e={'results':_0xba048e,'searchText':'string'==typeof _0x5f4b4e?_0x5f4b4e:''});const _0x5545f3=_0xba048e['results']['filter'](_0x32c887=>!0x1===this['_isInDeletionRange'](_0x32c887,_0xceb05c['item']));return{..._0xba048e,'results':_0x5545f3};},_0x6a3535);}['_isInDeletionRange'](_0x41c2f5,_0x2f4505){const _0x19f108=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2f4505,_0x41c2f5['start']),this['editor']['model']['createPositionAt'](_0x2f4505,_0x41c2f5['end']));for(const _0x25be8d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x19f108['getIntersection'](_0x25be8d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x62e235{['afterInit'](){const _0x184c03=this['editor']['locale'],_0x24775c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x255d5c,commandName:_0x431247}of ro)this['editor']['plugins']['has'](_0x255d5c)&&(_0x24775c['enableDefaultAttributesIntegration'](_0x431247),_0x24775c['registerInlineAttribute'](_0x431247));_0x24775c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x184c03,'FORMAT_FONT_SIZE')),_0x24775c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x184c03,'FORMAT_FONT_FAMILY')),_0x24775c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x184c03,'FORMAT_FONT_COLOR')),_0x24775c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x184c03,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x402cd6=this['editor'],_0x19771f=_0x402cd6['locale'];_0x402cd6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22e847=>{const _0x2040f3=_0x19771f['t'];if('formatInline'!=_0x22e847['type'])return;const {data:_0x8a8a36}=_0x22e847;if(null!=_0x8a8a36){if('fontSize'==_0x8a8a36['commandName']){const _0x11bc41=_0x8a8a36['commandParams'][0x0]['value'];if(_0x11bc41){const _0x3cc6a4=_0x2040f3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x445e59=>_0x445e59['model']==_0x11bc41)['title'])['toLowerCase']();return{'type':'format','content':o(_0x19771f,'*Set\x20font\x20size:*\x20%0',_0x3cc6a4)};}return{'type':'format','content':o(_0x19771f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x8a8a36['commandName']){const _0x5da467=_0x8a8a36['commandParams'][0x0]['value'];return _0x5da467?{'type':'format','content':o(_0x19771f,'*Set\x20font\x20family:*\x20%0',_0x5da467)}:{'type':'format','content':o(_0x19771f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x8a8a36['commandName']){const _0x879bc7=_0x8a8a36['commandParams'][0x0]['value'];if(_0x879bc7){const _0x4e015f=_0x171d1d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5b41b1=>_0x5b41b1['model']==_0x879bc7);let _0x5b7bd0=_0x879bc7,_0x4f1b31='';return _0x4e015f&&(_0x5b7bd0=_0x4e015f['label'],_0x4f1b31=_0x2040f3(_0x5b7bd0)['toLowerCase']()),{'type':'format','content':o(_0x19771f,'*Set\x20font\x20color:*\x20%0',_0x4f1b31)['trim'](),'color':{'value':_0x879bc7,'title':_0x4f1b31||_0x5b7bd0}};}return{'type':'format','content':o(_0x19771f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x8a8a36['commandName']){const _0x571a90=_0x8a8a36['commandParams'][0x0]['value'];if(_0x571a90){const _0x50247e=_0x171d1d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4088f1=>_0x4088f1['model']==_0x571a90);let _0x27654f=_0x571a90,_0x6fac38='';return _0x50247e&&(_0x27654f=_0x50247e['label'],_0x6fac38=_0x2040f3(_0x27654f)['toLowerCase']()),{'type':'format','content':o(_0x19771f,'*Set\x20font\x20background\x20color:*\x20%0',_0x6fac38)['trim'](),'color':{'value':_0x571a90,'title':_0x6fac38||_0x27654f}};}return{'type':'format','content':o(_0x19771f,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x62e235{['afterInit'](){const _0x2cc238=this['editor'],_0x5d17a4=_0x2cc238['plugins']['get']('TrackChangesEditing'),_0x33f615=_0x2cc238['commands']['get']('copyFormat'),_0x34e140=_0x2cc238['commands']['get']('pasteFormat');_0x33f615&&_0x34e140&&(_0x5d17a4['enableDefaultAttributesIntegration']('pasteFormat'),_0x5d17a4['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4d4ebf=this['editor'],_0x12ec6f=_0x4d4ebf['locale'];_0x4d4ebf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x595714=>{if('formatBlock'!=_0x595714['type']&&'formatInline'!=_0x595714['type'])return;const {data:_0x2a84f0}=_0x595714;if(_0x2a84f0&&'pasteFormat'===_0x2a84f0['commandName']){const _0x9dcdd8=[],_0x31d4a4=_0x2a84f0['commandParams'][0x0];for(const [_0x1b817c,_0x1a8e0c]of Object['entries'](_0x31d4a4))_0x9dcdd8['push'](so(_0x4d4ebf,_0x1b817c,_0x1a8e0c));return _0x9dcdd8['length']?{'type':'format','content':o(_0x12ec6f,'*Set\x20format\x20to:*\x20%0',_0x9dcdd8['join'](',\x20'))}:{'type':'format','content':o(_0x12ec6f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x53fe02,_0x455e92,_0x58e884){const _0x444b9a=_0x53fe02['locale']['t'],_0xec84ee=_0x455e92['split'](/(?=[A-Z])/)['join']('\x20'),_0x14ffcf=_0x444b9a(_0xec84ee['charAt'](0x0)['toUpperCase']()+_0xec84ee['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x58e884)return _0x14ffcf;if('fontColor'===_0x455e92||'fontBackgroundColor'===_0x455e92){const _0x4b36e2=_0x171d1d(_0x53fe02['config']['get']('fontColor.colors'))['find'](_0x210f5b=>_0x210f5b['model']==_0x58e884);return _0x14ffcf+'\x20('+(_0x4b36e2?_0x444b9a(_0x4b36e2['label'])['toLowerCase']():_0x58e884)+')';}if('fontSize'===_0x455e92&&isNaN(parseFloat(_0x58e884))){const _0x3f36e2=_0x53fe02['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x53fe02['config']['get']('fontSize.options'))['find'](_0x465a8d=>_0x465a8d['model']==_0x58e884);return _0x14ffcf+'\x20('+(_0x3f36e2?_0x444b9a(_0x3f36e2['title'])['toLowerCase']():_0x58e884)+')';}return _0x14ffcf+'\x20('+_0x58e884+')';}class nt extends _0x62e235{['_headingOptions'];['afterInit'](){const _0x3a67ad=this['editor'];if(!_0x3a67ad['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3a67ad['config']['get']('heading.options');const _0x3a8a59=_0x3a67ad['locale'],_0x2ab049=_0x3a67ad['plugins']['get']('TrackChangesEditing');_0x2ab049['enableDefaultAttributesIntegration']('heading');for(const _0x54422e of this['_headingOptions'])'paragraph'!=_0x54422e['model']&&_0x2ab049['descriptionFactory']['registerElementLabel'](_0x54422e['model'],_0x597979=>{const _0x143e1c=this['_getHeadingLevel'](_0x54422e['model']);return null!==_0x143e1c?_0x5cc2b3(_0x597979,_0x143e1c):_0xae0c95(_0x597979,_0x54422e['title']);});function _0x5cc2b3(_0x5cb6a0,_0x47a621){return o(_0x3a8a59,'ELEMENT_HEADING',[_0x5cb6a0,_0x47a621]);}function _0xae0c95(_0x55c9fe,_0x1bf80a){return o(_0x3a8a59,'ELEMENT_HEADING_CUSTOM',[_0x55c9fe,_0x1bf80a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8f7259=this['editor'],_0x1de9e2=_0x8f7259['locale'];function _0x360d89(_0x354ab4,_0x220f27){return o(_0x1de9e2,'ELEMENT_HEADING_CUSTOM',[_0x354ab4,_0x220f27]);}_0x8f7259['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9bff75=>{if('formatBlock'!=_0x9bff75['type'])return;const {data:_0x572429}=_0x9bff75;if(_0x572429&&'heading'==_0x572429['commandName']){const _0x4864bf=_0x572429['commandParams'][0x0]['value'],_0x268da2=this['_getHeadingLevel'](_0x4864bf);if(null!==_0x268da2)return{'type':'format','content':o(_0x1de9e2,'*Change\x20to:*\x20%0',(_0x5975b5=0x1,_0x16542d=_0x268da2,o(_0x1de9e2,'ELEMENT_HEADING',[_0x5975b5,_0x16542d])))};const _0x4e7927=this['_headingOptions']['find'](_0x17a932=>_0x17a932['model']===_0x4864bf)['title'];return{'type':'format','content':o(_0x1de9e2,'*Change\x20to:*\x20%0',_0x360d89(0x1,_0x4e7927))};}var _0x5975b5,_0x16542d;});}['_getHeadingLevel'](_0x807840){const _0x3dbc85=_0x807840['match'](/^heading(\d+)/);if(_0x3dbc85)return _0x3dbc85[0x1];const _0x5896e8=this['_headingOptions']?.['find'](_0x5d6af0=>_0x5d6af0['model']==_0x807840);if(_0x5896e8&&_0x5896e8['view']){const _0x194632=_0x5896e8['view'],_0x480108=(_0x194632['name']??_0x194632)['match'](/^h(\d+)/);if(_0x480108)return _0x480108[0x1];}return null;}}class it extends _0x62e235{['afterInit'](){const _0x3afe88=this['editor'];if(!_0x3afe88['plugins']['has']('HighlightEditing'))return;const _0x41df80=_0x3afe88['plugins']['get']('TrackChangesEditing'),_0x5d7ce2=_0x3afe88['locale'];_0x41df80['enableDefaultAttributesIntegration']('highlight'),_0x41df80['registerInlineAttribute']('highlight'),_0x41df80['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5d7ce2,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa51582=this['editor'],_0x12277b=_0xa51582['locale'];_0xa51582['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bb5a0=>{if('formatInline'!=_0x4bb5a0['type'])return;const {data:_0x1abdb0}=_0x4bb5a0;if(_0x1abdb0&&'highlight'==_0x1abdb0['commandName']){const _0x2b41c7=_0x12277b['t'],_0x5083ae=_0x1abdb0['commandParams'][0x0]['value'];if(_0x5083ae){const _0x2ccb82=_0xa51582['config']['get']('highlight.options')['find'](_0x2a19a4=>_0x2a19a4['model']==_0x5083ae),_0x235b51=_0x2b41c7(_0x2ccb82['title'])['toLowerCase']();return{'type':'format','content':o(_0x12277b,'*Set\x20highlight:*\x20%0',_0x235b51),'color':{'value':_0x2ccb82['color'],'title':_0x2ccb82['title']}};}return{'type':'format','content':o(_0x12277b,'*Remove\x20highlight*',o(_0x12277b,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x62e235{['afterInit'](){const _0x476e22=this['editor'];if(!_0x476e22['plugins']['has']('HorizontalLineEditing'))return;_0x476e22['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xabaea=_0x476e22['plugins']['get']('TrackChangesEditing'),_0x50a232=_0x476e22['locale'];_0xabaea['descriptionFactory']['registerElementLabel']('horizontalLine',_0x31e7b1=>o(_0x50a232,'ELEMENT_HORIZONTAL_LINE',_0x31e7b1)),_0x476e22['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x91c6d9,{writer:_0x2f8455,options:_0x2ce911})=>{if(!_0x2ce911['showSuggestionHighlights'])return null;const _0x331ccf=_0x2f8455['createContainerElement']('div'),_0x873690=_0x2f8455['createEmptyElement']('hr');return _0x2f8455['addClass']('ck-horizontal-line',_0x331ccf),_0x2f8455['insert'](_0x2f8455['createPositionAt'](_0x331ccf,0x0),_0x873690),_0x331ccf;},'converterPriority':'high'});}}class st extends _0x62e235{['afterInit'](){const _0x21e1f4=this['editor'];if(!_0x21e1f4['plugins']['has']('HtmlEmbed'))return;const _0x3fb512=_0x21e1f4['plugins']['get']('TrackChangesEditing'),_0x4e12c8=_0x21e1f4['locale'];_0x3fb512['descriptionFactory']['registerElementLabel']('rawHtml',_0x9ba1cd=>o(_0x4e12c8,'ELEMENT_HTML_EMBED',_0x9ba1cd)),_0x3fb512['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3fb512['registerBlockAttribute']('value'),_0x3fb512['descriptionFactory']['registerDescriptionCallback'](_0x498b0a=>{if('attribute'!=_0x498b0a['type'])return;const {data:_0x1942e4}=_0x498b0a;if(_0x1942e4&&'value'==_0x1942e4['key']&&_0x498b0a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3505c4=o(_0x4e12c8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4e12c8,'*Change\x20%0\x20content*',_0x3505c4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x450c95=this['editor'],_0x1cca96=_0x450c95['locale'];_0x450c95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6153d5=>{if('formatBlock'!=_0x6153d5['type'])return;const {data:_0x364e03}=_0x6153d5;if(_0x364e03&&'htmlEmbed'==_0x364e03['commandName']){const _0x6fd0d7=o(_0x1cca96,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1cca96,'*Change\x20%0\x20content*',_0x6fd0d7)};}});}}class ot extends _0x62e235{['afterInit'](){const _0x3afa3f=this['editor'];if(!_0x3afa3f['plugins']['has']('ImageEditing'))return;const _0x80568e=_0x3afa3f['plugins']['get']('TrackChangesEditing'),_0x453850=_0x3afa3f['plugins']['get']('ImageUtils'),_0x47f0dd=_0x3afa3f['locale'];_0x80568e['enableCommand']('insertImage'),_0x80568e['descriptionFactory']['registerElementLabel']('imageBlock',_0x1a7d4f=>o(_0x47f0dd,'ELEMENT_IMAGE',_0x1a7d4f)),_0x80568e['descriptionFactory']['registerElementLabel']('imageInline',_0xc82c81=>o(_0x47f0dd,'ELEMENT_INLINE_IMAGE',_0xc82c81)),_0x80568e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x47f0dd,'ELEMENT_CAPTION')),_0x3afa3f['plugins']['has']('ImageUploadEditing')&&_0x80568e['enableCommand']('uploadImage'),_0x3afa3f['plugins']['has']('ImageBlockEditing')&&_0x3afa3f['plugins']['has']('ImageInlineEditing')&&(_0x80568e['enableCommand']('imageTypeInline',(_0x542fdd,_0x53cab4)=>{const _0x13d9f9=_0x453850['getClosestSelectedImageElement'](_0x3afa3f['model']['document']['selection']);_0x3afa3f['model']['change'](()=>{_0x80568e['markBlockFormat'](_0x13d9f9,{'commandName':'imageTypeInline','commandParams':[_0x53cab4]},[],'convertBlockImageToInline');});}),_0x80568e['enableCommand']('imageTypeBlock',(_0x18a474,_0x48ca67)=>{_0x3afa3f['model']['change'](_0x51bc2e=>{let _0x54b596=_0x453850['getClosestSelectedImageElement'](_0x3afa3f['model']['document']['selection']),_0x2ce99a=_0x51bc2e['createRangeOn'](_0x54b596);const _0x495a1b=_0x2429db['fromPosition'](_0x2ce99a['start'],'toPrevious'),_0xcb56a0=_0x2429db['fromPosition'](_0x2ce99a['end'],'toNext');_0x80568e['forceDefaultExecution'](()=>_0x18a474(_0x48ca67)),_0x54b596=_0x453850['getClosestSelectedImageElement'](_0x3afa3f['model']['document']['selection']),_0x2ce99a=_0x51bc2e['createRangeOn'](_0x54b596);const _0x4d79e9=_0x51bc2e['createRange'](_0x495a1b,_0xcb56a0);_0x495a1b['detach'](),_0xcb56a0['detach'](),_0x80568e['markBlockFormat'](_0x54b596,{'commandName':'imageTypeInline','commandParams':[_0x48ca67]},[],'convertInlineImageToBlock'),_0x4d79e9['start']['isBefore'](_0x2ce99a['start'])&&_0x80568e['markInsertion'](_0x51bc2e['createRange'](_0x4d79e9['start'],_0x2ce99a['start']),'convertInlineImageToBlock'),_0x2ce99a['end']['isBefore'](_0x4d79e9['end'])&&_0x80568e['markInsertion'](_0x51bc2e['createRange'](_0x2ce99a['end'],_0x4d79e9['end']),'convertInlineImageToBlock');});}),_0x80568e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x80568e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x80568e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x80568e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x80568e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x80568e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xc5f61d])=>{const _0x3f8261=_0x80568e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5c2474=_0xc5f61d['start'],_0xe53879=_0xc5f61d['end'];const _0x349868=_0x3afa3f['model']['schema']['getNearestSelectionRange'](_0x5c2474,'backward'),_0x350e11=_0x3afa3f['model']['schema']['getNearestSelectionRange'](_0xe53879,'forward');_0x349868['isCollapsed']&&(_0x5c2474=_0x349868['start']),_0x350e11['isCollapsed']&&(_0xe53879=_0x350e11['end']),_0x3f8261([_0x3afa3f['model']['createRange'](_0x5c2474,_0xe53879)]);}),_0x80568e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x28dd9b),_0x80568e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x28dd9b)),_0x3afa3f['plugins']['has']('ImageCaptionEditing')&&(_0x80568e['enableCommand']('toggleImageCaption',(_0x2ebe7d,_0x6d17be)=>{const _0x554dd7=_0x3afa3f['plugins']['get']('ImageCaptionUtils');let _0x2ebc9e=_0x453850['getClosestSelectedImageElement'](_0x3afa3f['model']['document']['selection']),_0x23994e=_0x554dd7['getCaptionFromImageModelElement'](_0x2ebc9e);_0x3afa3f['model']['change'](()=>{if(_0x23994e)return void _0x80568e['markDeletion'](_0x3afa3f['model']['createRangeOn'](_0x23994e));const _0x5837f3=_0x453850['isBlockImage'](_0x2ebc9e);_0x2ebe7d(_0x6d17be),_0x2ebc9e=_0x453850['getClosestSelectedImageElement'](_0x3afa3f['model']['document']['selection']),_0x23994e=_0x554dd7['getCaptionFromImageModelElement'](_0x2ebc9e),_0x80568e['markInsertion'](_0x3afa3f['model']['createRangeOn'](_0x23994e),_0x5837f3?null:'imageCaption');});}),_0x80568e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x28dd9b));const _0x55c480=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4aebb2(_0x3a72b5,_0x1a9174){const _0x294d19=_0x55c480['findIndex'](({type:_0x4ecd05,subType:_0x1120d6})=>_0x3a72b5['type']==_0x4ecd05&&_0x3a72b5['subType']==_0x1120d6),_0x4a9a52=_0x55c480['findIndex'](({type:_0x42b41b,subType:_0x4c9a21})=>_0x1a9174['type']==_0x42b41b&&_0x1a9174['subType']==_0x4c9a21);if(_0x294d19<0x0||_0x4a9a52<0x0)return!0x1;const _0x11534c=_0x3a72b5['getFirstRange'](),_0x13bfbf=_0x1a9174['getFirstRange']();if((0x0==_0x294d19||0x1==_0x294d19)&&0x2==_0x4a9a52&&_0x11534c['isIntersecting'](_0x13bfbf))return!0x0;if(0x2==_0x294d19&&0x3==_0x4a9a52){const _0x1b61ce=_0x80568e['_findSuggestions'](_0x11534c,'insertion')['filter'](({suggestion:_0x8b41a9,meta:_0x4f9d65})=>_0x4f9d65['isOwn']&&'convertInlineImageToBlock'==_0x8b41a9['subType']);if(_0x1b61ce['length']>0x1&&_0x13bfbf['end']['isEqual'](_0x11534c['start']))return!0x0;if(0x1==_0x1b61ce['length']&&(_0x11534c['start']['isEqual'](_0x13bfbf['end'])||_0x11534c['end']['isEqual'](_0x13bfbf['start'])))return!0x0;}if(0x3==_0x294d19&&0x3==_0x4a9a52&&_0x11534c['start']['isBefore'](_0x13bfbf['start'])){const _0xe994de=_0x11534c['end']['nodeAfter'],_0xe8eb54=_0x13bfbf['start']['nodeBefore'];return _0x453850['isBlockImage'](_0xe994de)&&_0xe994de===_0xe8eb54;}return!0x1;}function _0x28dd9b(_0x2f33c8,_0x247299){return _0x4aebb2(_0x2f33c8,_0x247299)?[_0x2f33c8,_0x247299]:_0x4aebb2(_0x247299,_0x2f33c8)?[_0x247299,_0x2f33c8]:null;}_0x3afa3f['plugins']['has']('ImageResize')&&(_0x80568e['enableDefaultAttributesIntegration']('resizeImage'),_0x80568e['registerBlockAttribute']('resizedWidth'),_0x80568e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x47f0dd,'FORMAT_IMAGE_SIZE'))),_0x3afa3f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x80568e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x80568e['registerBlockAttribute']('alt')),_0x80568e['descriptionFactory']['registerDescriptionCallback'](_0x3c1e78=>{if(!!_0x55c480['find'](({type:_0xa15803,subType:_0x50106b})=>_0x3c1e78['type']==_0xa15803&&_0x3c1e78['subType']==_0x50106b))return _0x3c1e78['previous']?{}:void 0x0;}),_0x80568e['descriptionFactory']['registerDescriptionCallback'](_0x3d71fb=>{if('insertion'==_0x3d71fb['type']||'deletion'==_0x3d71fb['type']){const _0x36942b=_0x3d71fb['getContainedElement']();if(_0x36942b&&_0x36942b['is']('element','caption'))return{'type':'insertion'==_0x3d71fb['type']?'addObject':'removeObject','element':_0x36942b,'quantity':0x1};}}),_0x80568e['descriptionFactory']['registerDescriptionCallback'](_0x58fa3e=>'formatBlock'==_0x58fa3e['type']&&'convertInlineImageToBlock'==_0x58fa3e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x58fa3e['type']&&'convertBlockImageToInline'==_0x58fa3e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x80568e['descriptionFactory']['registerDescriptionCallback'](_0x4d4aff=>{if('attribute'!=_0x4d4aff['type'])return;const {data:_0x3c9ef0}=_0x4d4aff;if(!_0x3c9ef0||'alt'!=_0x3c9ef0['key'])return;const _0x4fe411=_0x3c9ef0['newValue'];return _0x4fe411?{'type':'format','content':o(_0x47f0dd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4fe411+'\x22')}:{'type':'format','content':o(_0x47f0dd,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b4694=this['editor'],_0x522a56=_0x1b4694['locale'];_0x1b4694['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x588675=>{if('formatBlock'!=_0x588675['type']&&'formatInline'!=_0x588675['type'])return;const {data:_0x4b68cd}=_0x588675;if(_0x4b68cd){if('imageTextAlternative'==_0x4b68cd['commandName']){const _0x581c44=_0x4b68cd['commandParams'][0x0]['newValue'];return _0x581c44?{'type':'format','content':o(_0x522a56,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x581c44+'\x22')}:{'type':'format','content':o(_0x522a56,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4b68cd['commandName']){const _0x4e16c3=_0x4b68cd['commandParams'][0x0]['width'];return _0x4e16c3?{'type':'format','content':o(_0x522a56,'*Set\x20image\x20width:*\x20%0',_0x4e16c3)}:{'type':'format','content':o(_0x522a56,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x62e235{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x53ae8f=this['editor']['locale'],_0x403474=this['editor']['plugins']['get']('TrackChangesEditing');_0x403474['enableDefaultAttributesIntegration']('replaceImageSource'),_0x403474['registerBlockAttribute']('src'),_0x403474['descriptionFactory']['registerDescriptionCallback'](_0x29b21e=>{if('attribute'!=_0x29b21e['type'])return;const {data:_0x1564c9}=_0x29b21e;return _0x1564c9&&'src'==_0x1564c9['key']?_0x1564c9['newValue']&&_0x1564c9['oldValue']?{'type':'format','content':o(_0x53ae8f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x50ddbb=this['editor']['plugins']['get']('TrackChangesEditing');_0x50ddbb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x50ddbb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50ddbb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x50ddbb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28a221=this['editor'],_0x3a549b=_0x28a221['locale'];_0x28a221['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x295a33=>{if('formatBlock'!=_0x295a33['type']&&'formatInline'!=_0x295a33['type'])return;const {data:_0x41bef1}=_0x295a33;if(!_0x41bef1||'replaceImageSource'!=_0x41bef1['commandName'])return;return{'type':'format','content':o(_0x3a549b,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x62e235{['afterInit'](){const _0x41379d=this['editor'];if(!_0x41379d['plugins']['has']('ImageStyleEditing'))return;const _0x19a34b=_0x41379d['plugins']['get']('TrackChangesEditing'),_0x33ab78=_0x41379d['plugins']['get']('ImageUtils'),_0x3016f0={};_0x19a34b['enableCommand']('imageStyle',(_0x39dd8a,_0x533d18)=>{const _0x4a9fb3=_0x41379d['plugins']['get']('Users')['me'],_0x25063e=_0x41379d['commands']['get']('imageStyle');let _0x18d085=_0x33ab78['getClosestSelectedImageElement'](_0x41379d['model']['document']['selection']),_0x2a7c66=_0x41379d['model']['createRangeOn'](_0x18d085),_0x55cb0d=_0x25063e['value'];if(_0x55cb0d==_0x533d18['value'])return;const _0x336707={'commandName':'imageStyle','commandParams':[_0x533d18],'formatGroupId':_0x8d496c()};_0x41379d['model']['change'](()=>{if(_0x19a34b['getSuggestions']()['filter'](_0x4a7512=>_0x4a7512['isInContent']&&_0x4a9fb3==_0x4a7512['author']&&('formatBlock'==_0x4a7512['type']||'formatInline'==_0x4a7512['type'])&&('imageStylePreApply'==_0x4a7512['subType']||'imageStylePostApply'==_0x4a7512['subType'])&&_0x4a7512['getFirstRange']()['isEqual'](_0x2a7c66))['forEach'](_0x578436=>_0x19a34b['discardSuggestion'](_0x578436['head'])),_0x18d085=_0x33ab78['getClosestSelectedImageElement'](_0x41379d['model']['document']['selection']),_0x2a7c66=_0x41379d['model']['createRangeOn'](_0x18d085),_0x25063e['refresh'](),_0x41379d['commands']['get']('imageTypeInline')['refresh'](),_0x41379d['commands']['get']('imageTypeBlock')['refresh'](),_0x55cb0d=_0x25063e['value'],_0x55cb0d!=_0x533d18['value'])return _0x33ab78['isInlineImage'](_0x18d085)&&_0x25063e['shouldConvertImageType'](_0x533d18['value'],_0x18d085)?(_0x39dd8a({..._0x533d18,'setImageSizes':!0x1}),_0x18d085=_0x33ab78['getClosestSelectedImageElement'](_0x41379d['model']['document']['selection']),void _0x19a34b['markBlockFormat'](_0x18d085,{..._0x336707,'commandReversedParams':[{'value':_0x55cb0d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x33ab78['isBlockImage'](_0x18d085)?_0x19a34b['markBlockFormat'](_0x18d085,_0x336707,[],'imageStylePostApply'):_0x19a34b['markInlineFormat'](_0x2a7c66,_0x336707,'imageStylePostApply'));});});for(const _0x141c6e of _0x41379d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3016f0[_0x141c6e['name']]=_0x141c6e['title']['toLowerCase']();_0x19a34b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x19a34b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x19a34b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x19a34b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xdcba07])=>{_0x33ab78['setImageNaturalSizeAttributes'](_0xdcba07['getContainedElement']());}),_0x19a34b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1354e1,_0x40bfed)=>{_0x19a34b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1354e1,{'commandName':_0x40bfed['commandName'],'commandParams':_0x40bfed['commandReversedParams']});}),_0x19a34b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x241d3b,_0x4d10c1){if(_0x534f66(_0x241d3b,_0x4d10c1))return[_0x241d3b,_0x4d10c1];if(_0x534f66(_0x4d10c1,_0x241d3b))return[_0x4d10c1,_0x241d3b];return null;});const _0x3bda85=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x534f66(_0x1e1666,_0x575ee5){const _0x55d27a=_0x3bda85['findIndex'](({type:_0x1e3912,subType:_0x291b24})=>_0x1e1666['type']==_0x1e3912&&_0x1e1666['subType']==_0x291b24),_0x338df0=_0x3bda85['findIndex'](({type:_0x381891,subType:_0xc58598})=>_0x575ee5['type']==_0x381891&&_0x575ee5['subType']==_0xc58598);if(_0x55d27a<0x0||_0x338df0<0x0)return!0x1;const _0x103426=_0x1e1666['getFirstRange'](),_0x1e4286=_0x575ee5['getFirstRange']();if((0x0==_0x55d27a||0x1==_0x55d27a)&&0x2==_0x338df0&&_0x103426['isIntersecting'](_0x1e4286))return!0x0;if(0x2==_0x55d27a&&0x3==_0x338df0){const _0x4ae11d=_0x19a34b['_findSuggestions'](_0x103426,'insertion')['filter'](({suggestion:_0x3b2649,meta:_0x2033af})=>_0x2033af['isOwn']&&'convertInlineImageToBlock'==_0x3b2649['subType']);if(_0x4ae11d['length']>0x1&&_0x1e4286['end']['isEqual'](_0x103426['start']))return!0x0;if(0x1==_0x4ae11d['length']&&(_0x103426['start']['isEqual'](_0x1e4286['end'])||_0x103426['end']['isEqual'](_0x1e4286['start'])))return!0x0;}if(0x3==_0x55d27a&&0x3==_0x338df0&&_0x103426['start']['isBefore'](_0x1e4286['start'])){const _0x51cf6f=_0x103426['end']['nodeAfter'],_0x4ac4e6=_0x1e4286['start']['nodeBefore'];return _0x33ab78['isBlockImage'](_0x51cf6f)&&_0x51cf6f===_0x4ac4e6;}return!0x1;}_0x41379d['model']['document']['registerPostFixer'](()=>{let _0x5839dd=!0x1;const _0x4543e7=Array['from'](_0x41379d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x52c432,data:_0x383f1c}of _0x4543e7){const {group:_0x3316d5,type:_0x48322c,subType:_0x2b2635,id:_0x39d8a0}=_0x19a34b['_splitMarkerName'](_0x52c432);if('suggestion'==_0x3316d5&&_0x19a34b['hasSuggestion'](_0x39d8a0)){if('formatBlock'==_0x48322c&&('imageStylePreApply'==_0x2b2635||'imageStylePostApply'==_0x2b2635)){const _0x46496f=_0x19a34b['getSuggestion'](_0x39d8a0);if(_0x383f1c['newRange']){const _0x3838fe=_0x46496f['getFirstRange']()['getContainedElement']();if(_0x33ab78['isBlockImage'](_0x3838fe))continue;_0x19a34b['discardSuggestion'](_0x46496f),_0x5839dd=!0x0;}}if('insertion'==_0x48322c&&'imageCaption'==_0x2b2635&&!_0x383f1c['newRange']){const _0x3ae9dd=_0x19a34b['getSuggestion'](_0x39d8a0);_0x3ae9dd['next']&&_0x3ae9dd['next']['isInContent']&&(_0x19a34b['discardSuggestion'](_0x3ae9dd['next']),_0x5839dd=!0x0);}}}return _0x5839dd;}),this['_registerLegacyDescription'](_0x3016f0);}['_registerLegacyDescription'](_0x35c7d1){const _0x27cb58=this['editor'],_0x283175=_0x27cb58['locale'];_0x27cb58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28695e=>{if('formatBlock'!=_0x28695e['type']&&'formatInline'!=_0x28695e['type'])return;const {data:_0x3652e3}=_0x28695e;if(!_0x3652e3||'imageStyle'!=_0x3652e3['commandName'])return;const _0x567c1a=_0x3652e3['commandParams'][0x0]['value'];return _0x4ff8e1('side'===_0x567c1a?o(_0x283175,'FORMAT_SIDE_IMAGE'):_0x35c7d1[_0x567c1a]||_0x567c1a);function _0x4ff8e1(_0x2356c4){return{'type':'format','content':o(_0x283175,'*Format:*\x20%0',_0x2356c4)};}});}}class ct extends _0x62e235{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x8f9987){super(_0x8f9987),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x57a5a6=this['editor'],_0x3e6474=_0x57a5a6['commands']['get']('importWord'),_0x25d138=_0x57a5a6['commands']['get']('trackChanges');_0x3e6474&&(_0x3e6474['on']('execute',(_0x1c08cd,[,_0x1dd6b5])=>{this['_trackChangesValueDuringImport']=_0x25d138['value'],_0x1dd6b5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3e6474,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3e6474,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x25d138['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x57a5a6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2a2fc3,_0x45046d){const {suggestions:_0x187d0f}=_0x45046d,_0x64762e=this['editor']['commands']['get']('trackChanges'),_0x54a9d3=_0x64762e['value'];this['_trackChangesValueDuringImport']!==_0x54a9d3&&(_0x64762e['execute'](),this['_trackChangesExecuted']=!0x0),_0x187d0f&&_0x187d0f['forEach'](({id:_0x54189b,type:_0x4e4e46,author:_0xb68a6c,created_at:_0x546a2e})=>{const _0x5f4352={'id':_0x54189b,'type':_0x4e4e46,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xb68a6c,'createdAt':_0x546a2e?new Date(_0x546a2e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5f4352);});}}class ut extends _0x62e235{['afterInit'](){const _0x127491=this['editor'],_0x1d9632=_0x127491['plugins']['get']('TrackChangesEditing');if(_0x127491['plugins']['has']('IndentEditing')&&(_0x1d9632['enableCommand']('indent'),_0x1d9632['enableCommand']('outdent')),_0x127491['plugins']['has']('IndentBlock')){for(const _0x178355 of['indentBlock','outdentBlock'])_0x1d9632['enableDefaultAttributesIntegration'](_0x178355);}const _0x303c63=_0x127491['locale'];_0x1d9632['registerBlockAttribute']('blockIndent'),_0x1d9632['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x303c63,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2af306=this['editor'],_0x51be79=_0x2af306['locale'],_0x32d132=_0x2af306['plugins']['get']('TrackChangesEditing');_0x32d132['descriptionFactory']['registerDescriptionCallback'](_0xf54044=>{if('formatBlock'!=_0xf54044['type'])return;const {data:_0x120210}=_0xf54044;if(!_0x120210)return;if('indentBlock'!=_0x120210['commandName']&&'outdentBlock'!=_0x120210['commandName'])return;const _0x31fc57=_0xf54044['getItems']()[0x0],_0x27c00d=_0x32d132['descriptionFactory']['getItemLabel'](_0x31fc57);return'indentBlock'==_0x120210['commandName']?{'type':'format','content':o(_0x51be79,'*Indent:*\x20%0',_0x27c00d)}:'outdentBlock'==_0x120210['commandName']?{'type':'format','content':o(_0x51be79,'*Outdent:*\x20%0',_0x27c00d)}:void 0x0;});}}class ft extends _0x62e235{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x62e235{['afterInit'](){const _0x412391=this['editor'];if(!_0x412391['plugins']['has']('LinkEditing'))return;const _0x284ec3=_0x412391['plugins']['get']('TrackChangesEditing'),_0x5ea2ea=_0x412391['commands']['get']('link');_0x284ec3['enableDefaultAttributesIntegration']('link'),_0x284ec3['enableDefaultAttributesIntegration']('unlink'),_0x284ec3['registerInlineAttribute']('linkHref');for(const _0x19f91f of _0x5ea2ea['manualDecorators'])_0x284ec3['registerInlineAttribute'](_0x19f91f['id']),_0x284ec3['descriptionFactory']['registerAttributeLabel'](_0x19f91f['id'],'link\x20('+_0x19f91f['label']['toLowerCase']()+')');_0x284ec3['descriptionFactory']['registerDescriptionCallback'](_0x59613a=>{if('attribute'!=_0x59613a['type'])return;const {data:_0x8ddf0d}=_0x59613a;if(!_0x8ddf0d||'linkHref'!=_0x8ddf0d['key'])return;const _0x4e07cf=_0x8ddf0d['newValue'],_0x3e62db=_0x412391['locale'];return{'type':'format','content':null==_0x4e07cf?o(_0x3e62db,'*Remove\x20link*'):o(_0x3e62db,'*Set\x20link:*\x20%0','\x22'+_0x4e07cf+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b2a34=this['editor'],_0x1a8e6c=_0x2b2a34['locale'];_0x2b2a34['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4aaea4=>{if('formatInline'!=_0x4aaea4['type'])return;const {data:_0x17cab8}=_0x4aaea4;if(_0x17cab8){if('link'==_0x17cab8['commandName']){const _0x243413=_0x17cab8['commandParams'][0x0];return{'type':'format','content':o(_0x1a8e6c,'*Set\x20link:*\x20%0','\x22'+_0x243413+'\x22')};}return'unlink'==_0x17cab8['commandName']?{'type':'format','content':o(_0x1a8e6c,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x62e235{['afterInit'](){const _0x1d9da5=this['editor'],_0x32b4ba=_0x1d9da5['locale'];if(!_0x1d9da5['plugins']['has']('LegacyListEditing'))return;const _0x35aed6=_0x1d9da5['plugins']['get']('TrackChangesEditing'),_0x41686c=_0x1d9da5['plugins']['has']('LegacyTodoListEditing');function _0x485b89(_0x4c4a02){return()=>{const _0x341dbe=_0x1d9da5['model']['document']['selection'],_0x333c04=_0x1d9da5['commands']['get'](_0x4c4a02);if(_0x333c04['value'])return void _0x1d9da5['execute']('paragraph',{});const _0x2471a3=_0x4c4a02['slice'](0x0,-0x4),_0x1dd06e=function(_0x247b98,_0x26a213,_0x15ccac){let _0x59c3a2=Array['from'](_0x247b98)['filter'](_0x5117c2=>function(_0x510b0c,_0x18f1f0){return _0x18f1f0['checkChild'](_0x510b0c['parent'],'listItem')&&!_0x18f1f0['isObject'](_0x510b0c);}(_0x5117c2,_0x15ccac));_0x59c3a2=_0x59c3a2['filter'](_0xe3f07d=>!_0xe3f07d['is']('element','listItem')||_0xe3f07d['getAttribute']('listType')!=_0x26a213);const _0x2da81f=new Set();for(const _0x573be5 of _0x59c3a2)_0x573be5['is']('element','listItem')?_0x2da81f['add'](Le(_0x573be5)):_0x2da81f['add'](_0x573be5);return Array['from'](_0x2da81f);}(_0x341dbe['getSelectedBlocks'](),_0x2471a3,_0x1d9da5['model']['schema']);_0x1d9da5['model']['change'](()=>{for(const _0x395837 of _0x1dd06e)_0x35aed6['markBlockFormat'](_0x395837,{'commandName':_0x4c4a02,'commandParams':[{'forceValue':!_0x333c04['value']}],'formatGroupId':'blockName'},Ee(_0x395837));});};}function _0x38da91(_0xc89d82){return()=>{const _0xd79590=function(_0x59ba02){let _0x310e67=Array['from'](_0x59ba02);const _0x33e913=_0x310e67['findIndex'](_0x11194f=>'listItem'!=_0x11194f['name']);return _0x33e913>-0x1&&(_0x310e67=_0x310e67['slice'](0x0,_0x33e913)),_0x310e67;}(_0x1d9da5['model']['document']['selection']['getSelectedBlocks']()),_0x36f632=_0x1d9da5['model']['createRange'](_0x1d9da5['model']['createPositionAt'](_0xd79590[0x0],'before'),_0x1d9da5['model']['createPositionAt'](_0xd79590[_0xd79590['length']-0x1],'end'));_0x1d9da5['model']['change'](()=>{_0x35aed6['markBlockFormat'](_0x36f632,{'commandName':_0xc89d82,'commandParams':[],'formatGroupId':'listIndent'},function(_0x577539){const _0x899cc6=new Set();for(const _0x312c40 of _0x577539){let _0x54135e=_0x312c40['nextSibling'];for(;_0x54135e&&_0x54135e['getAttribute']('listIndent')>_0x312c40['getAttribute']('listIndent');)_0x899cc6['add'](_0x54135e),_0x54135e=_0x54135e['nextSibling'];}return Array['from'](_0x899cc6);}(_0xd79590));});};}_0x35aed6['enableCommand']('numberedList',_0x485b89('numberedList')),_0x35aed6['enableCommand']('bulletedList',_0x485b89('bulletedList')),_0x41686c&&_0x35aed6['enableCommand']('todoList',_0x485b89('todoList')),_0x35aed6['enableCommand']('indentList',_0x38da91('indentList')),_0x35aed6['enableCommand']('outdentList',_0x38da91('outdentList')),_0x41686c&&_0x35aed6['enableCommand']('checkTodoList',()=>{const _0x320ba8=_0x1d9da5['commands']['get']('checkTodoList'),_0x163757=Array['from'](_0x320ba8['_selectedElements']);_0x163757['filter'](_0x5363e1=>_0x5363e1['getAttribute']('todoListChecked')!=_0x320ba8['value']),_0x1d9da5['model']['change'](()=>{for(const _0x272aca of _0x163757)_0x35aed6['markBlockFormat'](_0x272aca,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x320ba8['value']}]});});}),_0x35aed6['descriptionFactory']['registerElementLabel']('listItem',_0x2c69cb=>o(_0x32b4ba,'ELEMENT_LIST_ITEM',_0x2c69cb)),_0x35aed6['descriptionFactory']['registerDescriptionCallback'](_0x168860=>{if('formatBlock'!=_0x168860['type']&&'formatInline'!=_0x168860['type'])return;const {data:_0x49058b}=_0x168860;if(_0x49058b){if('numberedList'==_0x49058b['commandName']||'bulletedList'==_0x49058b['commandName']||'todoList'==_0x49058b['commandName'])switch(_0x49058b['commandName']['replace']('List','')){case'bulleted':return _0x1f9db4(o(_0x32b4ba,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f9db4(o(_0x32b4ba,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f9db4(o(_0x32b4ba,'ELEMENT_TODO_LIST'));}if('indentList'==_0x49058b['commandName'])return{'type':'format','content':o(_0x32b4ba,'*Indent:*\x20%0',o(_0x32b4ba,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x49058b['commandName'])return{'type':'format','content':o(_0x32b4ba,'*Outdent:*\x20%0',o(_0x32b4ba,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x49058b['commandName'])return _0x49058b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32b4ba,'*Check\x20item*')}:{'type':'format','content':o(_0x32b4ba,'*Uncheck\x20item*')};}function _0x1f9db4(_0x57faaa){return{'type':'format','content':o(_0x32b4ba,'*Change\x20to:*\x20%0',_0x57faaa)};}});}}function Le(_0x4cdbc7){const _0x867f55=_0x4cdbc7['getAttribute']('listIndent');if(0x0==_0x867f55)return _0x4cdbc7;let _0x42bfa5=_0x4cdbc7;for(;_0x4cdbc7['previousSibling']&&_0x4cdbc7['previousSibling']['is']('element','listItem');){const _0x4eee52=_0x4cdbc7['previousSibling']['getAttribute']('listIndent');if(_0x4eee52==_0x867f55)_0x42bfa5=_0x4cdbc7['previousSibling'];else{if(_0x4eee52<_0x867f55)break;}_0x4cdbc7=_0x4cdbc7['previousSibling'];}return _0x42bfa5;}function Ee(_0x315930){const _0x26a32b=[];if(_0x315930['is']('element','listItem')&&_0x315930['getAttribute']('listIndent')>0x0){let _0x50b395=_0x315930['nextSibling'];for(;_0x50b395&&'listItem'==_0x50b395['name']&&_0x50b395['getAttribute']('listIndent')==_0x315930['getAttribute']('listIndent');)_0x26a32b['push'](_0x50b395),_0x50b395=_0x50b395['nextSibling'];}return _0x26a32b;}class Q extends _0x62e235{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x581b10=this['editor']['config']['get']('list.properties'),_0x183ae2=this['editor']['plugins']['get']('TrackChangesEditing');_0x581b10['styles']&&_0x183ae2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x581b10['reversed']&&_0x183ae2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x581b10['startIndex']&&_0x183ae2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x183ae2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4f3aec,_0x2bbfa9={}){const _0x12153d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21fffc=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x12153d['markMultiRangeBlockFormat'](_0x21fffc,{'commandName':'listStyle','commandParams':[{'type':_0x2bbfa9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x46aa73,_0x2437cd={}){const _0x4dce5d=this['editor']['plugins']['get']('TrackChangesEditing'),_0xee29ec=this['_getSuggestionBlocks'](_0x46efd9=>_0x46efd9['is']('element','listItem')&&'numbered'===_0x46efd9['getAttribute']('listType'));if(_0xee29ec['length']<0x1)return;const _0x4bc586=_0xee29ec['map'](_0x27e670=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27e670,'before'),this['editor']['model']['createPositionAt'](_0x27e670,0x0)));this['editor']['model']['change'](()=>{_0x4dce5d['markMultiRangeBlockFormat'](_0x4bc586,{'commandName':'listReversed','commandParams':[{'reversed':_0x2437cd['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x50b7a1,_0x39eb64={}){const _0x5244be=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3820f5=this['_getSuggestionBlocks'](_0x1b35b3=>_0x1b35b3['is']('element','listItem')&&'numbered'===_0x1b35b3['getAttribute']('listType'));if(_0x3820f5['length']<0x1)return;const _0x2c14f7=_0x3820f5['map'](_0x27656e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27656e,'before'),this['editor']['model']['createPositionAt'](_0x27656e,0x0)));this['editor']['model']['change'](()=>{_0x5244be['markMultiRangeBlockFormat'](_0x2c14f7,{'commandName':'listStart','commandParams':[{'startIndex':_0x39eb64['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x552423){if('formatBlock'!=_0x552423['type']&&'formatInline'!=_0x552423['type'])return;const _0x30f119=this['editor']['locale'],{data:_0x17deb4}=_0x552423;if(!_0x17deb4)return;let _0x5523e8,_0x54bbdb;switch(_0x17deb4['commandName']){case'listStyle':_0x5523e8='*Change\x20to:*\x20%0',_0x54bbdb={'type':'format','content':o(_0x30f119,_0x5523e8,o(_0x30f119,this['_getTranslationKeyForListStyle'](_0x17deb4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5523e8=_0x17deb4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x54bbdb={'type':'format','content':o(_0x30f119,_0x5523e8)};break;case'listStart':_0x5523e8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x54bbdb={'type':'format','content':o(_0x30f119,_0x5523e8,_0x17deb4['commandParams'][0x0]['startIndex'])};}return _0x54bbdb;}['_getSuggestionBlocksForListStyle'](){const _0x1190b3=this['editor']['plugins']['get']('LegacyListUtils');let _0x15a957=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x15a957[0x0]?.['is']('element','listItem')&&_0x15a957['unshift'](..._0x1190b3['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x15a957[_0x15a957['length']-0x1]?.['is']('element','listItem')&&_0x15a957['push'](..._0x1190b3['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x15a957=[...new Set(_0x15a957)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x15a957=_0x15a957['filter'](_0x25a0e2=>_0x25a0e2['is']('element','listItem'))),_0x15a957;}['_getSuggestionBlocks'](_0x3f3d39){const _0x4be9cb=this['editor']['plugins']['get']('LegacyListUtils');let _0x454b56=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3f3d39)['map'](_0x3c656b=>{const _0xf986d0=this['editor']['model']['createPositionAt'](_0x3c656b,0x0);return[..._0x4be9cb['getSiblingNodes'](_0xf986d0,'backward'),..._0x4be9cb['getSiblingNodes'](_0xf986d0,'forward')];})['flat']();return _0x454b56=[...new Set(_0x454b56)],_0x454b56;}['_getTranslationKeyForListStyle'](_0x2e9723){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2e9723)||'default')['toUpperCase']()+'_LIST_'+_0x2e9723['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x62e235{['afterInit'](){const _0x3f39b6=this['editor'];if(!_0x3f39b6['plugins']['has']('MediaEmbedEditing'))return;const _0x297512=_0x3f39b6['plugins']['get']('TrackChangesEditing'),_0x532e44=_0x3f39b6['locale'];_0x297512['enableCommand']('mediaEmbed'),_0x297512['descriptionFactory']['registerElementLabel']('media',_0xfafd3b=>o(_0x532e44,'ELEMENT_MEDIA',_0xfafd3b)),_0x3f39b6['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x15c1f5,{writer:_0x16f401,options:_0xcf32c5})=>{if(_0xcf32c5['showSuggestionHighlights'])return _0x16f401['createEmptyElement']('div');},'converterPriority':'high'}),_0x3f39b6['data']['downcastDispatcher']['on']('attribute:url:media',(_0x23d07d,_0x283ac3,_0x85dbe0)=>{_0x85dbe0['options']['showSuggestionHighlights']&&_0x23d07d['stop']();},{'priority':'high'});}}class mt extends _0x62e235{['afterInit'](){const _0x425c74=this['editor'];_0x425c74['plugins']['has']('MentionEditing')&&_0x425c74['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x62e235{['afterInit'](){const _0x56702c=this['editor'];if(!_0x56702c['plugins']['has']('MergeFieldsEditing'))return;const _0xd08a3c=_0x56702c['plugins']['get']('TrackChangesEditing'),_0x593fc9=_0x56702c['locale'];_0xd08a3c['enableCommand']('insertMergeField'),_0xd08a3c['enableCommand']('insertMergeFieldBlock'),_0xd08a3c['enableCommand']('insertMergeFieldImage'),_0xd08a3c['descriptionFactory']['registerElementLabel']('mergeField',_0x275b64=>o(_0x593fc9,'ELEMENT_MERGE_FIELD',_0x275b64)),_0xd08a3c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x36c415=>o(_0x593fc9,'ELEMENT_MERGE_FIELD',_0x36c415)),_0xd08a3c['descriptionFactory']['registerDescriptionCallback'](_0x2b0101=>{if('insertion'!=_0x2b0101['type']&&'deletion'!=_0x2b0101['type'])return;const _0x4d403d=_0x2b0101['getContainedElement']();if(null==_0x4d403d)return;const _0x2a4097=_0x56702c['plugins']['get']('MergeFieldsEditing');let _0x12f45e;switch(_0x2a4097['getMergeFieldType'](_0x4d403d)){case null:return;case'image':{const _0x4f32cd=_0x2a4097['unwrapAffixes'](_0x4d403d['getAttribute']('src'));_0x12f45e=_0x2a4097['getLabel'](_0x4f32cd)||_0x4f32cd;break;}default:{const _0x599062=_0x4d403d['getAttribute']('id');_0x12f45e=_0x2a4097['getLabel'](_0x599062)||_0x599062;break;}}return'insertion'==_0x2b0101['type']?{'type':'insertion','content':o(_0x593fc9,'*Insert:*\x20%0','\x22'+_0x12f45e+'\x22\x20'+o(_0x593fc9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x593fc9,'*Remove:*\x20%0','\x22'+_0x12f45e+'\x22\x20'+o(_0x593fc9,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x62e235{['afterInit'](){const _0x1b4675=this['editor'],_0x56e399=_0x1b4675['plugins']['get']('TrackChangesEditing');_0x1b4675['plugins']['has']('MultiLevelList')&&(_0x56e399['enableDefaultAttributesIntegration']('multiLevelList'),_0x56e399['registerBlockAttribute']('listMarkerStyle'),_0x56e399['descriptionFactory']['registerDescriptionCallback'](_0x59f6aa=>this['handleDescriptions'](_0x59f6aa)));}['handleDescriptions'](_0x5543a3){const _0x1a7e31=this['editor']['locale'],{data:_0x5422ca}=_0x5543a3,_0x27b9c4={'type':'format','content':''};if(_0x5422ca&&'listMarkerStyle'==_0x5422ca['key']){if(!_0x5422ca['oldValue'])return{'type':'format','content':o(_0x1a7e31,'*Set\x20format:*\x20%0',o(_0x1a7e31,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5422ca['newValue']+')'};if(!_0x5422ca['newValue']){let _0x301750=_0x5543a3['head'];for(;_0x301750;){if(_0x301750['data']&&'listType'==_0x301750['data']['key']&&_0x301750['data']['newValue'])return _0x27b9c4;_0x301750=_0x301750['next'];}return{'type':'format','content':o(_0x1a7e31,'*Remove\x20format:*\x20%0',o(_0x1a7e31,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5422ca['oldValue']+')'};}}}}class kt extends _0x62e235{['afterInit'](){const _0x2ef266=this['editor'];if(!_0x2ef266['plugins']['has']('PageBreakEditing'))return;_0x2ef266['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x440287=_0x2ef266['plugins']['get']('TrackChangesEditing'),_0x256896=_0x2ef266['locale'];_0x440287['descriptionFactory']['registerElementLabel']('pageBreak',_0x5e9c0d=>o(_0x256896,'ELEMENT_PAGE_BREAK',_0x5e9c0d));}}class bt extends _0x62e235{['afterInit'](){const _0x4f7e6b=this['editor'];if(!_0x4f7e6b['plugins']['has']('Paragraph'))return;const _0x5a2ebb=_0x4f7e6b['locale'],_0x371898=_0x4f7e6b['plugins']['get']('TrackChangesEditing');_0x371898['descriptionFactory']['registerElementLabel']('paragraph',_0x18660f=>o(_0x5a2ebb,'ELEMENT_PARAGRAPH',_0x18660f)),_0x371898['enableDefaultAttributesIntegration']('paragraph'),_0x371898['enableCommand']('insertParagraph'),_0x4f7e6b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4f7e6b),{'priority':'highest'}),_0x4f7e6b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x228fdd,_0x5e2139,_0x2334a5)=>{_0x2334a5['options']['showSuggestionHighlights']&&nr(_0x4f7e6b,{'showActiveMarker':!0x1})(_0x228fdd,_0x5e2139,_0x2334a5);},{'priority':'highest'});const _0x39a957=_0x371898['descriptionFactory'];_0x39a957['registerDescriptionCallback'](_0x5ee691=>{if('insertion'!==_0x5ee691['type'])return;const {start:_0x5aca41,end:_0x19b139}=_0x5ee691['getFirstRange']();if(!_0x5aca41['isTouching'](_0x19b139)||!_0x5aca41['nodeAfter'])return;const _0x5976c1=_0x4f7e6b['model']['schema'],_0x8ffe4c=_0x5aca41['nodeAfter'];return _0x5976c1['isBlock'](_0x8ffe4c)&&!_0x5976c1['isLimit'](_0x8ffe4c)&&_0x5976c1['checkChild'](_0x8ffe4c,'$text')?{'type':'insertion','content':o(_0x5a2ebb,'*Insert:*\x20%0',_0x39a957['getItemLabel'](_0x8ffe4c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x226871=this['editor'],_0x357aca=_0x226871['locale'];_0x226871['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36de40=>{if('formatBlock'!=_0x36de40['type'])return;const {data:_0x37f220}=_0x36de40;return _0x37f220&&'paragraph'==_0x37f220['commandName']?{'type':'format','content':o(_0x357aca,'*Change\x20to:*\x20%0',o(_0x357aca,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3c1838,{showActiveMarker:_0x158b93=!0x0}={}){return(_0x15d25d,_0xc012c7,_0x41a824)=>{const _0x2a3371=_0x3c1838['plugins']['get']('TrackChangesEditing'),_0x20d842=_0xc012c7['markerRange']['start'],_0x3365b1=_0xc012c7['markerRange']['end'],_0x328535=_0x3c1838['model']['schema'];if(!_0x20d842['isTouching'](_0x3365b1)||!_0x20d842['nodeAfter'])return;const _0x563aba=_0x20d842['nodeAfter'];if(_0x328535['isBlock'](_0x563aba)&&!_0x328535['isLimit'](_0x563aba)&&_0x328535['checkChild'](_0x563aba,'$text')){if(!_0x41a824['consumable']['consume'](_0xc012c7['markerRange'],_0x15d25d['name']))return;const {authorId:_0x5a4e6a}=_0x2a3371['_splitMarkerName'](_0xc012c7['markerName']),_0x514e79=_0x41a824['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5a4e6a}),_0x7cca87=_0x41a824['mapper']['toViewPosition'](_0x3365b1);_0x158b93&&_0x2a3371['activeMarkers']['includes'](_0xc012c7['markerName'])&&_0x41a824['writer']['addClass']('ck-suggestion-marker--active',_0x514e79),_0x41a824['writer']['insert'](_0x7cca87,_0x514e79),_0x41a824['mapper']['bindElementToMarker'](_0x514e79,_0xc012c7['markerName']);}};}class yt extends _0x62e235{['afterInit'](){const _0x518d53=this['editor'];if(!_0x518d53['plugins']['has']('RemoveFormatEditing'))return;_0x518d53['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x567ce7=this['editor'];_0x567ce7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c7e1b=>{if('formatBlock'!=_0x2c7e1b['type']&&'formatInline'!=_0x2c7e1b['type'])return;const {data:_0x2d4594}=_0x2c7e1b;return _0x2d4594&&'removeFormat'==_0x2d4594['commandName']?{'type':'format','content':o(_0x567ce7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x62e235{['afterInit'](){const _0x66fad6=this['editor'];if(!_0x66fad6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3a2249=_0x66fad6['plugins']['get']('TrackChangesEditing');_0x3a2249['enableCommand']('goToPreviousRestrictedEditingException'),_0x3a2249['enableCommand']('goToNextRestrictedEditingException');const _0x512a53=_0x66fad6['plugins']['get']('RestrictedEditingModeEditing');_0x512a53['enableCommand']('trackChanges'),_0x512a53['enableCommand']('acceptSuggestion'),_0x512a53['enableCommand']('discardSuggestion'),_0x512a53['enableCommand']('acceptAllSuggestions'),_0x512a53['enableCommand']('discardAllSuggestions'),_0x512a53['enableCommand']('acceptSelectedSuggestions'),_0x512a53['enableCommand']('discardSelectedSuggestions');}}class St extends _0x62e235{static get['requires'](){return[_0x44f24d];}['init'](){const _0x287fa5=this['editor'],_0x46e0d4=_0x287fa5['plugins']['get']('TrackChangesEditing');_0x46e0d4['enableCommand']('shiftEnter'),_0x287fa5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x287fa5),{'priority':'high'}),_0x287fa5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x287fa5),{'priority':'high'}),_0x287fa5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b277f,_0x1928cf,_0x375a24)=>{_0x375a24['options']['showSuggestionHighlights']&&je(_0x287fa5,{'showActiveMarker':!0x1})(_0x2b277f,_0x1928cf,_0x375a24);}),_0x46e0d4['descriptionFactory']['registerElementLabel']('softBreak',_0x5ed019=>o(_0x287fa5['locale'],'ELEMENT_LINE_BREAK',_0x5ed019));}}function je(_0x225b86,{showActiveMarker:_0x5df8e6=!0x0}={}){return(_0x42375a,_0x3e6195,_0x139012)=>{const _0x5c2a35=_0x225b86['plugins']['get']('TrackChangesEditing');if(!_0x139012['consumable']['test'](_0x3e6195['markerRange'],_0x42375a['name']))return;const _0x56ea20=_0x225b86['model'];for(const _0x13178d of _0x3e6195['markerRange']['getItems']()){if(!_0x13178d['is']('element','softBreak'))continue;const _0x449a94='deletion'==_0x3e6195['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x27601c}=_0x5c2a35['_splitMarkerName'](_0x3e6195['markerName']),_0x2761b4=_0x139012['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x449a94,'data-author-id':_0x27601c}),_0x526a94=_0x139012['mapper']['toViewPosition'](_0x56ea20['createPositionBefore'](_0x13178d));_0x5df8e6&&_0x5c2a35['activeMarkers']['includes'](_0x3e6195['markerName'])&&_0x139012['writer']['addClass']('ck-suggestion-marker--active',_0x2761b4),_0x139012['writer']['insert'](_0x526a94,_0x2761b4),_0x139012['mapper']['bindElementToMarker'](_0x2761b4,_0x3e6195['markerName']);}};}class At extends _0x62e235{['afterInit'](){const _0x35e62a=this['editor'],_0x5461e4=_0x35e62a['model'],_0x2b4633=_0x35e62a['locale'];if(!_0x35e62a['plugins']['has']('StandardEditingModeEditing'))return;const _0x1dae19=_0x35e62a['plugins']['get']('TrackChangesEditing'),_0x303886='restrictedEditingException',_0x28996a=_0x35e62a['commands']['get'](_0x303886);_0x1dae19['enableCommand'](_0x303886,(_0x3ba8e9,_0x112443={})=>{const _0x44bdca=_0x5461e4['document']['selection'];if(_0x44bdca['isCollapsed'])return void _0x3ba8e9(_0x112443);const _0x3977a9=void 0x0!==_0x112443['forceValue']?_0x112443['forceValue']:!_0x28996a['value'];_0x5461e4['change'](()=>{const _0x38724f=Array['from'](_0x44bdca['getRanges']());for(const _0x5d3e7d of _0x38724f){const _0x4e0087=_0x3977a9?[_0x5d3e7d]:io(_0x303886,_0x5d3e7d,_0x5461e4);for(const _0x310614 of _0x4e0087)_0x1dae19['markInlineFormat'](_0x310614,{'commandName':_0x303886,'commandParams':[{'forceValue':_0x3977a9}]});}});}),_0x1dae19['descriptionFactory']['registerDescriptionCallback'](_0x492f88=>{if('formatBlock'!=_0x492f88['type']&&'formatInline'!=_0x492f88['type'])return;const {data:_0x2c6242}=_0x492f88;return _0x2c6242&&_0x2c6242['commandName']==_0x303886?_0x2c6242['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b4633,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2b4633,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x62e235{['afterInit'](){const _0x3b266b=this['editor'];if(!_0x3b266b['plugins']['has']('Style')||!_0x3b266b['plugins']['has']('DataSchema'))return;const _0x15521c=_0x3b266b['plugins']['get']('TrackChangesEditing'),_0x442748=_0x3b266b['locale'],_0x166854=_0x3b266b['config']['get']('style')||{},_0x50a5bf=_0x3b266b['plugins']['get']('GeneralHtmlSupport'),_0x1d656d=_0x3b266b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3b266b['plugins']['get']('DataSchema'),_0x166854['definitions']);_0x15521c['enableDefaultAttributesIntegration']('style');const _0x5b4e82=new Set();for(const _0x12306d of _0x1d656d['block']){const _0x58b7d3=_0x50a5bf['getGhsAttributeNameForElement'](_0x12306d['element']);_0x5b4e82['add'](_0x58b7d3);}const _0x399ebd=new Set();for(const _0x56ff2c of _0x1d656d['inline']){const _0x26a91e=_0x50a5bf['getGhsAttributeNameForElement'](_0x56ff2c['element']);_0x399ebd['add'](_0x26a91e);for(const _0x31615b of _0x56ff2c['ghsAttributes'])_0x399ebd['add'](_0x31615b);}for(const _0x637757 of _0x5b4e82)_0x15521c['registerBlockAttribute'](_0x637757),_0x15521c['descriptionFactory']['registerAttributeLabel'](_0x637757,o(_0x442748,'FORMAT_STYLE'));for(const _0x4c56d2 of _0x399ebd)_0x15521c['registerInlineAttribute'](_0x4c56d2),_0x15521c['descriptionFactory']['registerAttributeLabel'](_0x4c56d2,o(_0x442748,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48d4a9=this['editor'],_0x29e8ab=_0x48d4a9['locale'];_0x48d4a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25e26a=>{if('formatBlock'!=_0x25e26a['type']&&'formatInline'!=_0x25e26a['type'])return;const {data:_0x2ccd63}=_0x25e26a;return _0x2ccd63&&'style'===_0x2ccd63['commandName']?_0x2ccd63['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x29e8ab,'*Set\x20format:*\x20%0',_0x2ccd63['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x29e8ab,'*Remove\x20format:*\x20%0',_0x2ccd63['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x62e235{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x308281){super(_0x308281),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x346dab=this['editor'],_0x40384c=_0x346dab['model']['document']['selection'];if(!_0x346dab['plugins']['has']('TableEditing'))return;const _0x2f579b=_0x346dab['locale'],_0x51fa81=_0x346dab['plugins']['get']('TrackChangesEditing'),_0x163527=_0x346dab['plugins']['get']('TableUtils');_0x51fa81['descriptionFactory']['registerElementLabel']('table',_0x1b5ed2=>o(_0x2f579b,'ELEMENT_TABLE',_0x1b5ed2)),this['_setupColumnsRowsFixing'](),_0x51fa81['enableCommand']('insertTable'),_0x51fa81['enableCommand']('selectTableRow'),_0x51fa81['enableCommand']('selectTableColumn');for(const _0x3aa5f2 of['insertTableRowAbove','insertTableRowBelow']){const _0x41bc1b=_0x346dab['commands']['get'](_0x3aa5f2);_0x51fa81['enableCommand'](_0x3aa5f2,_0x3f9673=>{_0x346dab['model']['change'](_0x165e0c=>{_0x3f9673();const _0x579692='above'===_0x41bc1b['order'],_0x940585=_0x163527['getSelectionAffectedTableCells'](_0x40384c),_0x1a1726=_0x163527['getRowIndexes'](_0x940585),_0x4eccc7=_0x579692?_0x1a1726['first']-0x1:_0x1a1726['last']+0x1,_0x1e0870=_0x940585[0x0]['findAncestor']('table'),_0x26408a=_0x163527['createTableWalker'](_0x1e0870,{'startRow':_0x4eccc7,'endRow':_0x4eccc7}),_0x5875ed=Array['from'](_0x26408a)['map'](_0xfc3c13=>_0x165e0c['createRangeOn'](_0xfc3c13['cell']));_0x51fa81['markMultiRangeInsertion'](_0x5875ed,'tableRow');});});}for(const _0x5636c3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2b097e=_0x346dab['commands']['get'](_0x5636c3);_0x51fa81['enableCommand'](_0x5636c3,_0x48539f=>{_0x346dab['model']['change'](_0x950809=>{_0x48539f();const _0x2ac597='left'===_0x2b097e['order'],_0x505023=_0x163527['getSelectionAffectedTableCells'](_0x40384c),_0x53ee59=_0x163527['getColumnIndexes'](_0x505023),_0xd43c54=_0x2ac597?_0x53ee59['first']-0x1:_0x53ee59['last']+0x1,_0x1021c6=_0x505023[0x0]['findAncestor']('table'),_0x3121eb=_0x163527['createTableWalker'](_0x1021c6,{'startRow':0x0,'column':_0xd43c54,'includeAllSlots':!0x1}),_0x45eaa6=Array['from'](_0x3121eb)['map'](_0xf13f7b=>_0x950809['createRangeOn'](_0xf13f7b['cell']));_0x51fa81['markMultiRangeInsertion'](_0x45eaa6,'tableColumn');});});}for(const _0x3f2d65 of['removeTableRow','removeTableColumn']){const _0x61ee1f=_0x3f2d65['substr'](0xb),_0x3ebaae=_0x61ee1f['toLowerCase'](),_0x19b687=_0x3ebaae['substr'](0x0,0x3)+'span',_0x212feb='table'+_0x61ee1f,_0x2d6ac1='min'+_0x61ee1f,_0xc2e225='max'+_0x61ee1f;_0x51fa81['enableCommand'](_0x3f2d65,()=>{_0x346dab['model']['change'](_0x4fd58a=>{const _0x4e14ca=_0x163527['getSelectionAffectedTableCells'](_0x40384c),_0x3b7df4=_0x4e14ca[0x0]['findAncestor']('table');let _0x453b1f;if('removeTableRow'==_0x3f2d65){const _0x2ce403=_0x163527['getRowIndexes'](_0x4e14ca);_0x453b1f={'startRow':_0x2ce403['first'],'endRow':_0x2ce403['last'],'includeAllSlots':!0x0};}else{const _0xf47298=_0x163527['getColumnIndexes'](_0x4e14ca);_0x453b1f={'startColumn':_0xf47298['first'],'endColumn':_0xf47298['last'],'includeAllSlots':!0x0};}const _0x445910=_0x163527['createTableWalker'](_0x3b7df4,_0x453b1f),_0x57c709=Array['from'](_0x445910)['map'](({cell:_0x558143})=>_0x558143),_0x25d300=Ne(_0x57c709['filter'](_0x3e259f=>_0x3e259f['hasAttribute'](_0x19b687))),_0x39aef9=Ne(_0x57c709['filter'](_0x182465=>!_0x182465['hasAttribute'](_0x19b687)))['map'](_0x56b2d3=>_0x4fd58a['createRangeOn'](_0x56b2d3)),_0x42cb2f=_0x51fa81['markMultiRangeDeletion'](_0x39aef9,_0x212feb);if(_0x42cb2f&&('tableRow'==_0x42cb2f['subType']||'tableColumn'==_0x42cb2f['subType'])){const _0x5d9560=this['_getSuggestionCoords'](_0x42cb2f);for(const _0x5f4904 of _0x25d300){const _0x586d5d=_0x4fd58a['createRangeOn'](_0x5f4904),_0x4a0e2b=_0x163527['getCellLocation'](_0x5f4904),_0xf04fd0=_0x5f4904['getAttribute'](_0x19b687)-0x1,_0x25068b=_0x5d9560[_0x2d6ac1],_0x3c88e8=_0x5d9560[_0xc2e225];_0x25068b<=_0x4a0e2b[_0x3ebaae]&&_0x4a0e2b[_0x3ebaae]+_0xf04fd0<=_0x3c88e8&&_0x42cb2f['addRange'](_0x586d5d);}}});});}function _0x34d51a(_0x4b7868){const _0x2d1036=Array['from'](_0x40384c['getRanges']())['map'](_0x235512=>_0x3253cc['fromRange'](_0x235512));_0x346dab['model']['change'](_0x4d3890=>{const _0x300e50=_0x4d3890['batch'];_0x4b7868=_0x4b7868['filter'](_0x32f3dd=>'$graveyard'!=_0x32f3dd['root']['rootName']),_0x4d3890['setSelection'](_0x4b7868),_0x346dab['commands']['get']('removeTableRow')['refresh'](),_0x346dab['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x346dab['model']['enqueueChange'](()=>{_0x346dab['model']['enqueueChange'](_0x300e50,_0x5dccc6=>{const _0x3e66c6=_0x2d1036['filter'](_0x15071e=>'$graveyard'!=_0x15071e['root']['rootName']);_0x3e66c6['length']>0x0&&_0x5dccc6['setSelection'](_0x3e66c6);for(const _0x169b75 of _0x2d1036)_0x169b75['detach']();});});});}function _0x251408(_0x45ce06){_0x346dab['model']['change'](_0x422419=>{const _0x24d409=Array['from'](_0x40384c['getRanges']())['map'](_0x3641e1=>_0x3253cc['fromRange'](_0x3641e1)),_0x514ebe=[];for(const _0x106d2e of _0x45ce06)for(const _0x288f0d of _0x106d2e['getItems']({'shallow':!0x0}))_0x514ebe['push'](_0x288f0d);for(const _0x242e27 of _0x514ebe)'$graveyard'!=_0x242e27['root']['rootName']&&(_0x422419['setSelection'](_0x422419['createPositionAt'](_0x242e27,0x0)),_0x346dab['commands']['get']('removeTableColumn')['refresh'](),_0x346dab['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2c8935=_0x24d409['filter'](_0x40c0e2=>'$graveyard'!=_0x40c0e2['root']['rootName']);_0x2c8935['length']>0x0&&_0x422419['setSelection'](_0x2c8935);for(const _0x95da32 of _0x24d409)_0x95da32['detach']();});}function _0x36f1f7(_0x278cab,_0x3e698f){return _0x3e698f['every'](_0x5e92d1=>_0x278cab['some'](_0xc3543f=>_0xc3543f['end']['isEqual'](_0x5e92d1['start'])||_0x5e92d1['end']['isEqual'](_0xc3543f['start'])));}function _0xd6bb2f(_0x245039,_0xfa9a0c){return!_0x245039['some'](_0x289e51=>_0xfa9a0c['some'](_0x2dcfba=>_0x289e51['isIntersecting'](_0x2dcfba)))&&_0x245039['some'](_0x46e382=>_0xfa9a0c['some'](_0xf9b9df=>_0x46e382['end']['isTouching'](_0xf9b9df['start'])));}_0x346dab['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c73b4,_0x19a311,_0x8de1fa)=>{if(!_0x8de1fa['options']['showSuggestionHighlights'])return;const _0x323b9d=_0x19a311['item'];if(!_0x323b9d)return;const _0x17ff2f=_0x8de1fa['mapper']['toViewElement'](_0x323b9d);function _0x3ad8a5(_0x3acfe7){return Array['isArray'](_0x3acfe7)?_0x3acfe7:[_0x3acfe7];}_0x17ff2f&&'tableCell'===_0x323b9d['name']&&_0x518ccf(_0x17ff2f,_0x8de1fa['writer'],(_0x3e8b65,_0x3296b7,_0x246360)=>_0x246360['addClass'](_0x3ad8a5(_0x3296b7['classes']),_0x3e8b65),(_0x4852ed,_0x289ab4,_0xc0bd38)=>_0xc0bd38['removeClass'](_0x3ad8a5(_0x289ab4['classes']),_0x4852ed));},{'priority':'highest'}),_0x51fa81['descriptionFactory']['registerDescriptionCallback'](_0x2c48ac=>{if('insertion'!=_0x2c48ac['type']&&'deletion'!=_0x2c48ac['type'])return;const _0x4877e3=_0x2c48ac['getContainedElement']();if(null!=_0x4877e3&&_0x4877e3['is']('element','table')){if('insertion'==_0x2c48ac['type']){const _0xc795ec=_0x2c48ac['getItems']()['filter'](_0x529c8d=>_0x529c8d['is']('$textProxy'))['map'](_0xc95989=>_0xc95989['data']);if(_0xc795ec['length'])return{'type':'insertion','content':o(_0x2f579b,'*Insert:*\x20%0',o(_0x2f579b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xc795ec['join']('\x20')+'\x22'))};}if('deletion'==_0x2c48ac['type']){const _0x1f58c4=_0x2c48ac['getItems']()['filter'](_0x485cfa=>_0x485cfa['is']('$textProxy'))['map'](_0x287881=>_0x287881['data']);if(_0x1f58c4['length'])return{'type':'deletion','content':o(_0x2f579b,'*Remove:*\x20%0',o(_0x2f579b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1f58c4['join']('\x20')+'\x22'))};}}}),_0x51fa81['descriptionFactory']['registerDescriptionCallback'](_0x3eea21=>{if('tableRow'==_0x3eea21['subType']){const _0x1084c4=_0x3eea21['getItems']()['filter'](_0x174f32=>_0x174f32['is']('$textProxy'))['map'](_0x4332c9=>_0x4332c9['data']),_0x406208=this['_getSuggestionCoords'](_0x3eea21),_0x3bba4b=_0x406208['maxRow']-_0x406208['minRow']+0x1;if('insertion'==_0x3eea21['type'])return _0x1084c4['length']?{'type':'insertion','content':o(_0x2f579b,'*Insert:*\x20%0',o(_0x2f579b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3bba4b,'\x22'+_0x1084c4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2f579b,'*Insert:*\x20%0',o(_0x2f579b,'ELEMENT_TABLE_ROW',_0x3bba4b))};if('deletion'==_0x3eea21['type'])return _0x1084c4['length']?{'type':'deletion','content':o(_0x2f579b,'*Remove:*\x20%0',o(_0x2f579b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3bba4b,'\x22'+_0x1084c4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2f579b,'*Remove:*\x20%0',o(_0x2f579b,'ELEMENT_TABLE_ROW',_0x3bba4b))};}if('tableColumn'==_0x3eea21['subType']){const _0x1639a3=_0x3eea21['getItems']()['filter'](_0xbba7d6=>_0xbba7d6['is']('$textProxy'))['map'](_0x54d83c=>_0x54d83c['data']),_0x3616ac=this['_getSuggestionCoords'](_0x3eea21),_0x4fc331=_0x3616ac['maxColumn']-_0x3616ac['minColumn']+0x1;if('insertion'==_0x3eea21['type'])return _0x1639a3['length']?{'type':'insertion','content':o(_0x2f579b,'*Insert:*\x20%0',o(_0x2f579b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4fc331,'\x22'+_0x1639a3['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2f579b,'*Insert:*\x20%0',o(_0x2f579b,'ELEMENT_TABLE_COLUMN',_0x4fc331))};if('deletion'==_0x3eea21['type'])return _0x1639a3['length']?{'type':'deletion','content':o(_0x2f579b,'*Remove:*\x20%0',o(_0x2f579b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4fc331,'\x22'+_0x1639a3['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2f579b,'*Remove:*\x20%0',o(_0x2f579b,'ELEMENT_TABLE_COLUMN',_0x4fc331))};}}),_0x51fa81['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x34d51a),_0x51fa81['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x34d51a),_0x51fa81['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x251408),_0x51fa81['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x251408),_0x51fa81['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x36f1f7),_0x51fa81['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x36f1f7),_0x51fa81['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xd6bb2f),_0x51fa81['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xd6bb2f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1348bc=this['editor'],_0x159bb3=_0x1348bc['model']['document']['selection'];return(_0x20172,_0x549180)=>{_0x1348bc['model']['change'](_0x27214b=>{const {commandName:_0x5cc0af,commandParams:_0x521e78}=_0x549180;let _0x56d3ab=_0x20172[0x0]['end']['nodeBefore'];_0x521e78&&_0x521e78[0x0]&&!0x1===_0x521e78[0x0]['forceValue']&&(_0x56d3ab=_0x20172[0x0]['start']['nodeAfter']);const _0x43a266=_0x27214b['createRangeIn'](_0x56d3ab);if('$graveyard'==_0x43a266['root']['rootName'])return;const _0x18482f=Array['from'](_0x159bb3['getRanges']())['map'](_0x25d720=>_0x3253cc['fromRange'](_0x25d720));_0x27214b['setSelection'](_0x43a266),_0x1348bc['commands']['get'](_0x5cc0af)['refresh'](),_0x521e78['push']({'forceDefaultExecution':!0x0}),_0x1348bc['execute'](_0x5cc0af,..._0x521e78);const _0x1b9125=_0x18482f['filter'](_0x10bb00=>'$graveyard'!=_0x10bb00['root']['rootName']);_0x1b9125['length']>0x0&&_0x27214b['setSelection'](_0x1b9125);for(const _0x11ef23 of _0x18482f)_0x11ef23['detach']();});};}['_getCoordsForCells'](_0x566bd6){const _0x357c62=this['editor']['plugins']['get']('TableUtils');let _0x2aaae8=Number['MAX_SAFE_INTEGER'],_0x2eb640=Number['MIN_SAFE_INTEGER'],_0x486da1=Number['MAX_SAFE_INTEGER'],_0x59a663=Number['MIN_SAFE_INTEGER'];for(const _0x3f13c2 of _0x566bd6){if('$graveyard'==_0x3f13c2['root']['rootName'])continue;const {row:_0x1fe60f,column:_0x2633d2}=_0x357c62['getCellLocation'](_0x3f13c2),_0x1719ab=_0x3f13c2['hasAttribute']('rowspan')?_0x3f13c2['getAttribute']('rowspan')-0x1:0x0,_0x1ca0d1=_0x3f13c2['hasAttribute']('colspan')?_0x3f13c2['getAttribute']('colspan')-0x1:0x0;_0x2aaae8=_0x1fe60f<_0x2aaae8?_0x1fe60f:_0x2aaae8,_0x2eb640=_0x1fe60f+_0x1719ab>_0x2eb640?_0x1fe60f+_0x1719ab:_0x2eb640,_0x486da1=_0x2633d2<_0x486da1?_0x2633d2:_0x486da1,_0x59a663=_0x2633d2+_0x1ca0d1>_0x59a663?_0x2633d2+_0x1ca0d1:_0x59a663;}return{'minRow':_0x2aaae8,'maxRow':_0x2eb640,'minColumn':_0x486da1,'maxColumn':_0x59a663};}['_setupColumnsRowsFixing'](){const _0x31e334=this['editor'],_0x4de173=_0x31e334['plugins']['get']('TrackChangesEditing'),_0xe5ce9a=_0x31e334['plugins']['get']('TableUtils');_0x31e334['model']['document']['on']('change:data',()=>{const _0x15372b=Array['from'](_0x31e334['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb6c8e0,data:_0xb8bce3}of _0x15372b){const {group:_0x5256a0,id:_0x488803,subType:_0x51178c}=_0x4de173['_splitMarkerName'](_0xb6c8e0);if('suggestion'!=_0x5256a0)continue;if(null!=_0xb8bce3['oldRange'])continue;const _0x2ac343=_0x4de173['getSuggestion'](_0x488803);this['_tablePostFixingSubtypes']['includes'](_0x51178c)&&this['_tableSuggestions']['add'](_0x2ac343);}},{'priority':'low'});const _0x28b728=(_0x13a513,_0x273b7f)=>{let _0x5ed4ca=!0x1;const _0x212006=_0x273b7f['createRangeOn'](_0x13a513),_0x51d120=_0x13a513['findAncestor']('table'),_0xdebf6=_0xe5ce9a['getCellLocation'](_0x13a513);for(const _0x4edd53 of this['_tableSuggestions']){const _0x1b7e0d=_0x4edd53['subType'],_0x2d9d13=_0x1b7e0d['startsWith']('tablePaste'),_0x12da18=_0x1b7e0d['substr'](_0x2d9d13?0xa:0x5),_0x67b1e2=_0x12da18['toLowerCase'](),_0x1052af=_0x67b1e2['substr'](0x0,0x3)+'span',_0xc8eba4='min'+_0x12da18,_0x1ccc9a='max'+_0x12da18;if(!_0x4edd53['isInContent'])continue;if(_0x51d120!=_0x4edd53['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4edd53['isIntersectingWithRange'](_0x212006))continue;const _0x371d8d=_0x13a513['hasAttribute'](_0x1052af)?_0x13a513['getAttribute'](_0x1052af)-0x1:0x0,_0x8cd277=this['_getSuggestionCoords'](_0x4edd53),_0x391641=_0x8cd277[_0xc8eba4],_0x302bd6=_0x8cd277[_0x1ccc9a];_0x391641<=_0xdebf6[_0x67b1e2]&&_0xdebf6[_0x67b1e2]+_0x371d8d<=_0x302bd6&&(_0x4edd53['addRange'](_0x212006),_0x5ed4ca=!0x0);}return _0x5ed4ca;};_0x31e334['model']['document']['registerPostFixer'](_0x1d9e04=>{let _0x3de0a6=!0x1;for(const _0x52fb50 of _0x31e334['model']['document']['differ']['getChanges']())if('insert'==_0x52fb50['type']){if('tableRow'==_0x52fb50['name']){for(const _0x207a68 of _0x52fb50['position']['nodeAfter']['getChildren']())_0x3de0a6=_0x3de0a6||_0x28b728(_0x207a68,_0x1d9e04);}else'tableCell'==_0x52fb50['name']&&(_0x3de0a6=_0x3de0a6||_0x28b728(_0x52fb50['position']['nodeAfter'],_0x1d9e04));}return _0x3de0a6;});}['_getSuggestionCoords'](_0x1c2e97){return this['_getCoordsForCells'](_0x1c2e97['getRanges']()['map'](_0x569de4=>_0x569de4['start']['nodeAfter']));}}function Ne(_0x21eaef){return Array['from'](new Set(_0x21eaef)['values']());}class _t extends _0x62e235{static get['requires'](){return[vt];}['afterInit'](){const _0x50ebdf=this['editor'],_0x2e7f56=_0x50ebdf['model']['document']['selection'],_0x375545=_0x50ebdf['locale'];if(!_0x50ebdf['plugins']['has']('TableEditing'))return;const _0x1e5acf=_0x50ebdf['plugins']['get']('TrackChangesEditing'),_0x335025=_0x50ebdf['plugins']['get']('TableUtils'),_0x229653=_0x50ebdf['plugins']['get'](vt);_0x229653['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1e5acf['enableCommand']('mergeTableCells',()=>{const _0x3becea=_0x335025['getSelectionAffectedTableCells'](_0x50ebdf['model']['document']['selection']);_0x50ebdf['model']['change'](()=>{_0x1e5acf['markMultiRangeBlockFormat'](_0x3becea,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x50ebdf['commands']['get']('mergeTableCells')['on']('execute',(_0x5bc8f7,_0x170c09)=>{_0x50ebdf['commands']['get']('trackChanges')['value']&&(_0x170c09['length']>0x0&&_0x170c09[_0x170c09['length']-0x1]&&_0x170c09[_0x170c09['length']-0x1]['forceDefaultExecution']||_0x1e5acf['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5bc8f7['stop']());},{'priority':'highest'});for(const _0x5ca43b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x12c2fe=_0x50ebdf['commands']['get'](_0x5ca43b);_0x1e5acf['enableCommand'](_0x5ca43b,()=>{const _0x499651=_0x50ebdf['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x25488c=>_0x25488c['is']('element','tableCell')),_0x513a7a=_0x12c2fe['value'];_0x50ebdf['model']['change'](()=>{_0x1e5acf['markMultiRangeBlockFormat']([_0x499651,_0x513a7a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xd86916 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1c960e=_0x50ebdf['commands']['get'](_0xd86916);_0x1e5acf['enableCommand'](_0xd86916,()=>{const _0x16ed2b=_0x335025['getSelectionAffectedTableCells'](_0x50ebdf['model']['document']['selection'])[0x0],_0x2b8954=_0x16ed2b['findAncestor']('table'),{column:_0x2ea396,row:_0x377e96}=_0x335025['getCellLocation'](_0x16ed2b);let _0xd172e5=[];if('horizontally'==_0x1c960e['direction']){const _0x54fdfa=_0x335025['createTableWalker'](_0x2b8954,{'startRow':_0x377e96,'endRow':_0x377e96,'includeAllSlots':!0x0});_0xd172e5=Array['from'](_0x54fdfa)['map'](_0x5e6189=>_0x5e6189['cell']);}else{const _0x56ba19=_0x335025['createTableWalker'](_0x2b8954,{'column':_0x2ea396,'includeAllSlots':!0x0});_0xd172e5=Array['from'](_0x56ba19)['map'](_0x3c3f8d=>_0x3c3f8d['cell']);}_0x50ebdf['model']['change'](_0x5db93d=>{_0x1e5acf['markBlockFormat'](_0x5db93d['createRangeOn'](_0x16ed2b),{'commandName':_0xd86916,'commandParams':[]},_0xd172e5,_0xd86916);});});}_0x1e5acf['descriptionFactory']['registerDescriptionCallback'](_0x1ef06b=>{if('formatBlock'!=_0x1ef06b['type']&&'formatInline'!=_0x1ef06b['type'])return;const {data:_0x57d514}=_0x1ef06b;return _0x57d514&&'mergeTableCells'==_0x57d514['commandName']?{'type':'format','content':o(_0x375545,'*Merge\x20cells*')}:void 0x0;}),_0x1e5acf['descriptionFactory']['registerDescriptionCallback'](_0x28c5a8=>{if('formatBlock'!=_0x28c5a8['type']&&'formatInline'!=_0x28c5a8['type'])return;const {data:_0x48cc87}=_0x28c5a8;return _0x48cc87?'splitTableCellVertically'==_0x48cc87['commandName']?{'type':'format','content':o(_0x375545,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x48cc87['commandName']?{'type':'format','content':o(_0x375545,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x28d2fa=_0x229653['_acceptFormatSuggestionCallbackFactory']();for(const _0x571241 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1e5acf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x571241,'accept',_0x28d2fa);for(const _0x32404d of['splitTableCellVertically','splitTableCellHorizontally'])_0x1e5acf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x32404d,'accept',_0x28d2fa);_0x1e5acf['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3a3065=>{_0x50ebdf['model']['change'](_0x483da4=>{const _0x215c97=Array['from'](_0x2e7f56['getRanges']())['map'](_0x2c7486=>_0x3253cc['fromRange'](_0x2c7486));_0x483da4['setSelection'](_0x3a3065),_0x50ebdf['commands']['get']('mergeTableCells')['refresh'](),_0x50ebdf['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1db0e7=_0x215c97['filter'](_0x3f2d72=>'$graveyard'!=_0x3f2d72['root']['rootName']);_0x1db0e7['length']>0x0&&_0x483da4['setSelection'](_0x1db0e7);for(const _0x273a4d of _0x215c97)_0x273a4d['detach']();});});for(const _0x266009 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xdf7b74=_0x50ebdf['commands']['get'](_0x266009);_0xdf7b74['on']('set:isEnabled',(_0x2be6e5,_0x1fb8f6,_0x13a797)=>{if(_0x13a797){const _0x5429af=_0x50ebdf['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x24e513=>_0x24e513['is']('element','tableCell'));this['_areMergableCells'](_0xdf7b74['value'],_0x5429af)||(_0x2be6e5['return']=!0x1,_0x2be6e5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5bb1f1=this['editor']['commands']['get']('mergeTableCells'),_0x324b4e=this['editor']['plugins']['get']('TableUtils');if(!_0x5bb1f1['isEnabled'])return!0x1;const _0x22766a=_0x324b4e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3f5387 of _0x22766a)for(const _0x54663d of _0x22766a)if(_0x3f5387!=_0x54663d&&!this['_areMergableCells'](_0x3f5387,_0x54663d))return!0x1;return!0x0;}['_areMergableCells'](_0x3c1fab,_0x3ca485){const _0x4b0bfb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x291d55=this['editor']['model']['createRangeOn'](_0x3c1fab),_0x518ede=this['editor']['model']['createRangeOn'](_0x3ca485),_0x73ebe4=new Set(),_0x2f5c5c=new Set();for(const _0x3eb3e9 of _0x4b0bfb['getSuggestions']())if(('insertion'==_0x3eb3e9['type']||'deletion'==_0x3eb3e9['type']||'mergeTableCells'==_0x3eb3e9['subType'])&&_0x3eb3e9['isInContent']){for(const _0x1d3478 of _0x3eb3e9['getRanges']())_0x1d3478['containsRange'](_0x291d55,!0x0)&&_0x73ebe4['add'](_0x3eb3e9['type']+':'+_0x3eb3e9['author']['id']),_0x1d3478['containsRange'](_0x518ede,!0x0)&&_0x2f5c5c['add'](_0x3eb3e9['type']+':'+_0x3eb3e9['author']['id']);}if(_0x73ebe4['size']!=_0x2f5c5c['size'])return!0x1;for(const _0x446116 of _0x73ebe4)if(!_0x2f5c5c['has'](_0x446116))return!0x1;return!0x0;}}class Ct extends _0x62e235{static get['requires'](){return[vt];}['afterInit'](){const _0x3cdeee=this['editor'];if(!_0x3cdeee['plugins']['has']('TableEditing'))return;const _0x31480a=_0x3cdeee['locale'],_0x300fc9=_0x3cdeee['plugins']['get']('TrackChangesEditing');_0x300fc9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x300fc9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x300fc9['registerBlockAttribute']('headingRows'),_0x300fc9['registerBlockAttribute']('headingColumns'),_0x300fc9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x31480a,'FORMAT_HEADER_ROW')),_0x300fc9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x31480a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2645ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16d7b6=this['editor']['plugins']['get']('TableUtils'),_0x38d21b=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x1108b6({showActiveMarker:_0x3cec4f=!0x0,setDataAttribute:_0x2369e5=!0x0}={}){return(_0x151f47,_0x171fbc,_0x3b825f)=>{const {type:_0x20ff51,id:_0x5c59ab}=_0x2645ad['_splitMarkerName'](_0x171fbc['markerName']),_0x342cad=_0x2645ad['getSuggestion'](_0x5c59ab),_0x10db26=_0x342cad['data'];if('formatBlock'!=_0x342cad['type']||!_0x10db26||'setTableColumnHeader'!=_0x10db26['commandName'])return;if(_0x171fbc['item'])return void _0x151f47['stop']();if(!_0x3b825f['consumable']['consume'](_0x171fbc['markerRange'],_0x151f47['name']))return;const _0x5abc5c=_0x171fbc['markerRange']['start']['nodeAfter'],_0x3accc4=_0x171fbc['markerRange']['end']['nodeBefore'],_0x4f5626=_0x5abc5c['parent']['parent'],{column:_0x1803d5}=_0x16d7b6['getCellLocation'](_0x5abc5c),{column:_0x2816f6}=_0x16d7b6['getCellLocation'](_0x3accc4);for(let _0x5f3bb9=_0x1803d5;_0x5f3bb9<=_0x2816f6;_0x5f3bb9++){const _0x55ee92=_0x16d7b6['createTableWalker'](_0x4f5626,{'column':_0x5f3bb9,'includeAllSlots':!0x1});for(const _0x138499 of _0x55ee92){const _0x4bc691=_0x138499['cell'],_0x26864f=_0x3b825f['mapper']['toViewElement'](_0x4bc691);_0x3b825f['writer']['addClass']('ck-suggestion-marker-'+_0x20ff51,_0x26864f),_0x2369e5&&_0x3b825f['writer']['setAttribute']('data-suggestion',_0x5c59ab,_0x26864f),_0x3b825f['mapper']['bindElementToMarker'](_0x26864f,_0x171fbc['markerName']),_0x3cec4f&&(_0x2645ad['activeMarkers']['includes'](_0x171fbc['markerName'])?_0x3b825f['writer']['addClass']('ck-suggestion-marker--active',_0x26864f):_0x3b825f['writer']['removeClass']('ck-suggestion-marker--active',_0x26864f));}}};}_0x2645ad['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x38d21b),_0x2645ad['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x38d21b),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1108b6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x534a77,_0x593fc1,_0x47a4e8)=>{_0x47a4e8['options']['showSuggestionHighlights']&&_0x1108b6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x534a77,_0x593fc1,_0x47a4e8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x54e45f,_0x4b8784,_0x2d0c9d)=>{const {type:_0x114a46,id:_0x16eae4}=_0x2645ad['_splitMarkerName'](_0x4b8784['markerName']),_0x7ebaa2=_0x2645ad['getSuggestion'](_0x16eae4),_0x2a8504=_0x7ebaa2['data'];if('formatBlock'!=_0x7ebaa2['type']||!_0x2a8504||'setTableColumnHeader'!=_0x2a8504['commandName'])return;const _0x163206=_0x2d0c9d['mapper']['markerNameToElements'](_0x4b8784['markerName']);if(_0x163206){for(const _0x3388aa of _0x163206)_0x2d0c9d['writer']['removeClass']('ck-suggestion-marker-'+_0x114a46,_0x3388aa),_0x2d0c9d['writer']['removeClass']('ck-suggestion-marker--active',_0x3388aa),_0x2d0c9d['writer']['removeAttribute']('data-suggestion',_0x3388aa),_0x2d0c9d['mapper']['unbindElementFromMarkerName'](_0x3388aa,_0x4b8784['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48946e=this['editor'],_0x447d0c=_0x48946e['locale'];function _0x5f954a(_0x4d92d0){return{'type':'format','content':o(_0x447d0c,'*Format:*\x20%0',_0x4d92d0)};}_0x48946e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1828a9=>{if('formatBlock'!=_0x1828a9['type'])return;const {data:_0x4cc80e}=_0x1828a9;if(_0x4cc80e){if('setTableRowHeader'==_0x4cc80e['commandName']){const _0xa147ea=_0x4cc80e['commandParams'][0x0]['forceValue'];return _0x5f954a(o(_0x447d0c,_0xa147ea?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4cc80e['commandName']){const _0x2b13d0=_0x4cc80e['commandParams'][0x0]['forceValue'];return _0x5f954a(o(_0x447d0c,_0x2b13d0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x187207=>[_0x187207,null]));class Nt extends _0x62e235{static get['requires'](){return[vt];}['afterInit'](){const _0x28412a=this['editor'];if(!_0x28412a['plugins']['has']('TableClipboard'))return;const _0x3f9e8f=_0x28412a['plugins']['get']('TrackChangesEditing'),_0x3ac2a0=_0x28412a['plugins']['get']('TableUtils'),_0x4d0e32=_0x28412a['plugins']['get'](vt),_0x376446=_0x28412a['plugins']['get']('TableClipboard');_0x4d0e32['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x28412a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x28412a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1d8873=null;_0x28412a['model']['on']('insertContent',(_0x55c258,_0x2aac65)=>{const [_0x297864,_0x42e51a]=_0x2aac65,_0x55d43b=_0x2aac65[_0x2aac65['length']-0x1];_0x55d43b&&_0x55d43b['forceDefaultExecution']||_0x3f9e8f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x10c2bc,_0x2677cd,_0x4e4399,_0x8f03b5,_0x7481fc){if(_0x2677cd&&!_0x2677cd['is']('documentSelection'))return!0x1;const _0x445996=_0x7481fc['getTableIfOnlyTableInContent'](_0x10c2bc,_0x4e4399);if(!_0x445996||!Ue(_0x445996,void 0x0,_0x8f03b5))return!0x1;const _0x4005f7=_0x8f03b5['getSelectionAffectedTableCells'](_0x4e4399['document']['selection']);if(!_0x4005f7['length'])return!0x1;const _0x2fca39=_0x4005f7[0x0]['findAncestor']('table'),_0x208e07=_0x8f03b5['getRowIndexes'](_0x4005f7),_0x2cb6d0=_0x8f03b5['getColumnIndexes'](_0x4005f7),_0x4b5ecf={'startRow':_0x208e07['first'],'endRow':_0x208e07['last'],'startColumn':_0x2cb6d0['first'],'endColumn':_0x2cb6d0['last']};return 0x1==_0x4005f7['length']&&(_0x4b5ecf['endRow']+=_0x8f03b5['getRows'](_0x445996)-0x1,_0x4b5ecf['endColumn']+=_0x8f03b5['getColumns'](_0x445996)-0x1),Ue(_0x2fca39,_0x4b5ecf,_0x8f03b5);}(_0x297864,_0x42e51a,_0x28412a['model'],_0x3ac2a0,_0x376446)&&(_0x55c258['stop'](),_0x1d8873={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x28412a['model']['change'](()=>{_0x28412a['model']['insertContent'](_0x2aac65[0x0],_0x2aac65[0x1],_0x2aac65[0x2],{'forceDefaultExecution':!0x0});const _0x33aa1b=_0x8d496c(),{rowInsertionRanges:_0x4f76e1,columnInsertionRanges:_0x3bc091,insertionRanges:_0x1b7d8c,deletionRanges:_0x17c840,cells:_0x95a938}=_0x1d8873;_0x4f76e1['length']&&_0x3f9e8f['markMultiRangeInsertion'](_0x4f76e1,'tablePasteRow',{'tablePasteChainId':_0x33aa1b}),_0x3bc091['length']&&_0x3f9e8f['markMultiRangeInsertion'](_0x3bc091,'tablePasteColumn',{'tablePasteChainId':_0x33aa1b}),_0x1b7d8c['length']&&(_0x3f9e8f['markMultiRangeInsertion'](_0x1b7d8c,'tablePaste',{'tablePasteChainId':_0x33aa1b,'skipNestingCheck':!0x0}),_0x1b7d8c['forEach'](_0x17bfda=>_0x17bfda['detach']?.())),_0x17c840['length']&&(_0x3f9e8f['markMultiRangeDeletion'](_0x17c840,'tablePaste',{'tablePasteChainId':_0x33aa1b,'skipNestingCheck':!0x0}),_0x17c840['forEach'](_0xe2234e=>_0xe2234e['detach']?.()));const _0x119196=_0x3f9e8f['markMultiRangeBlockFormat'](_0x95a938['map'](({element:_0x3c029b})=>_0x3c029b),{'formatGroupId':_0x8d496c()},[],'tablePasteCell',{'tablePasteChainId':_0x33aa1b});if(_0x119196){const _0x52143b=_0x119196['getMarkers'](),_0x14349c=[];for(const {element:_0x122bb4,attributes:_0x4fc4b0}of _0x95a938){if(!_0x4fc4b0)continue;const _0x56318b=_0x28412a['model']['createRangeOn'](_0x122bb4),_0x556a21=_0x52143b['find'](_0xca6f5f=>_0xca6f5f['getRange']()['isEqual'](_0x56318b));_0x556a21&&_0x14349c['push']([_0x556a21['name'],_0x4fc4b0]);}_0x14349c['length']&&_0x119196['setAttribute']('markerAttributes',Object['fromEntries'](_0x14349c));}_0x1d8873=null;}));},{'priority':_0x32947d['high']+0xa}),_0x28412a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1430d8,_0x32d7ce)=>{const [_0x4b43d4,_0x23c7d2,,_0x246f11]=_0x32d7ce;if(!_0x1d8873)return;_0x1430d8['stop']();const _0x583e53=_0x4b43d4['cell'],_0x369a8c=_0x23c7d2,_0x376f17=Oe(_0x583e53),_0x543810=Oe(_0x369a8c);_0x1430d8['return']=_0x583e53;let _0x1191c5=null,_0x700b2=null;if(_0x543810||_0x376f17){if(_0x376f17&&!_0x543810){_0x246f11['remove'](_0x583e53['getChild'](0x0));for(const _0x461b56 of Array['from'](_0x369a8c['getChildren']()))_0x246f11['insert'](_0x461b56,_0x583e53,'end');const _0xc7b707=_0x1d8873['rowInsertionIndexes']['includes'](_0x4b43d4['row']),_0x707a05=_0x1d8873['columnInsertionIndexes']['includes'](_0x4b43d4['column']);_0xc7b707||_0x707a05||(_0x1191c5=_0x3253cc['fromRange'](_0x246f11['createRangeIn'](_0x583e53)));}else _0x543810&&!_0x376f17&&(_0x700b2=_0x246f11['createRangeIn'](_0x583e53));}else{const _0x1f976d=_0x246f11['createElement']('tableCellSuggestion'),_0x3f4edb=_0x246f11['createElement']('tableCellSuggestion');_0x246f11['wrap'](_0x246f11['createRangeIn'](_0x583e53),_0x3f4edb),_0x246f11['insert'](_0x1f976d,_0x583e53,0x0);for(const _0x2ee2bd of Array['from'](_0x369a8c['getChildren']()))_0x246f11['insert'](_0x2ee2bd,_0x1f976d,'end');_0x1191c5=_0x3253cc['fromRange'](_0x246f11['createRangeOn'](_0x1f976d)),_0x700b2=_0x3253cc['fromRange'](_0x246f11['createRangeOn'](_0x3f4edb));}const _0x80f720=Array['from'](_0x369a8c['getAttributes']())['filter'](([_0x41fe50])=>Be['includes'](_0x41fe50));_0x1d8873['cells']['push']({'element':_0x583e53,'attributes':_0x80f720['length']?Object['fromEntries'](_0x80f720):null}),_0x1191c5&&_0x1d8873['insertionRanges']['push'](_0x1191c5),_0x700b2&&_0x1d8873['deletionRanges']['push'](_0x700b2);},{'priority':'high'}),_0x3ac2a0['on']('insertColumns',(_0xbe29a9,_0x35bbdc)=>{const [_0x52c1c1,_0x11e49a={}]=_0x35bbdc;if(!_0x1d8873)return;const _0xf0e53b=_0x11e49a['at']||0x0,_0x5ee30a=_0x11e49a['columns']||0x1;_0x1d8873['columnInsertionIndexes']=new Array(_0x5ee30a)['fill'](_0xf0e53b)['map']((_0x313a65,_0x18ca4e)=>_0x313a65+_0x18ca4e);for(const {cell:_0x3b3c94}of _0x3ac2a0['createTableWalker'](_0x52c1c1,{'startColumn':_0xf0e53b,'endColumn':_0xf0e53b+_0x5ee30a-0x1}))_0x1d8873['columnInsertionRanges']['push'](_0x28412a['model']['createRangeOn'](_0x3b3c94));},{'priority':'low'}),_0x3ac2a0['on']('insertRows',(_0x12d095,_0x62b07d)=>{const [_0x5928c7,_0x1fe576={}]=_0x62b07d;if(!_0x1d8873)return;const _0x20192e=_0x1fe576['at']||0x0,_0x396b89=_0x1fe576['rows']||0x1;_0x1d8873['rowInsertionIndexes']=new Array(_0x396b89)['fill'](_0x20192e)['map']((_0xad5fa9,_0xa62602)=>_0xad5fa9+_0xa62602);for(const {cell:_0x1f9a22}of _0x3ac2a0['createTableWalker'](_0x5928c7,{'startRow':_0x20192e,'endRow':_0x20192e+_0x396b89-0x1}))_0x1d8873['rowInsertionRanges']['push'](_0x28412a['model']['createRangeOn'](_0x1f9a22));},{'priority':'low'}),_0x3f9e8f['descriptionFactory']['registerDescriptionCallback'](_0x32ed50=>{if(_0x32ed50['subType']&&_0x32ed50['subType']['startsWith']('tablePaste'))return _0x32ed50['previous']?{}:{'type':'insertion','content':o(_0x28412a['locale'],'*Replace\x20table\x20cells*')};});const _0x4ccec7=()=>!0x1;for(const _0x20acdb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3f9e8f['_suggestionFactory']['registerCustomCallback']('insertion',_0x20acdb,'join',_0x4ccec7),_0x3f9e8f['_suggestionFactory']['registerCustomCallback']('deletion',_0x20acdb,'join',_0x4ccec7),_0x3f9e8f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x20acdb,'join',_0x4ccec7);_0x3f9e8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4ccec7),_0x3f9e8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x56f594,_0xdb480,_0x1232f6)=>{const _0x53f9bf=_0x56f594['map'](_0x4c1230=>_0x4c1230['getContainedElement']())['filter'](_0x2b2cf8=>_0x2b2cf8),_0x3f51fa=new Map(_0x53f9bf['map'](_0x5764c0=>[_0x5764c0,null]));if(_0x1d8873){for(const {element:_0x41c007,attributes:_0x35289b}of _0x1d8873['cells'])_0x35289b&&_0x3f51fa['set'](_0x41c007,_0x35289b);}else{if(_0x1232f6&&_0x1232f6['markerAttributes'])for(const [_0x38823f,_0x4b38b1]of Object['entries'](_0x1232f6['markerAttributes'])){const _0x163431=_0x28412a['model']['markers']['get'](_0x38823f),_0x220f83=_0x163431?_0x163431['getRange']()['getContainedElement']():null;_0x220f83&&_0x3f51fa['set'](_0x220f83,_0x4b38b1);}}_0x28412a['model']['change'](_0x1320c8=>{for(const [_0x1c13f5,_0x390de2]of _0x3f51fa)_0x1320c8['setAttributes']({...xe,..._0x390de2},_0x1c13f5);});});const _0x16fde6=(_0x5da447,_0x247376)=>{_0x3f9e8f['_suggestionFactory']['registerCustomCallback'](_0x5da447,'tablePaste',_0x247376,(_0x2d7b81,_0x22fbf9,_0x2aa2c7)=>{_0x28412a['model']['change'](_0x4a78a5=>{const _0xb8b916=[];for(const _0x5abb7b of _0x2d7b81){const _0x1aeec4=_0x5abb7b['start']['nodeAfter'];_0x1aeec4['is']('element','tableCellSuggestion')&&_0xb8b916['push'](_0x1aeec4);}_0x3f9e8f['_suggestionFactory']['getSuggestionCallback'](_0x5da447,null,_0x247376)(_0x2d7b81,_0x22fbf9,_0x2aa2c7);for(const _0x1bd65d of _0xb8b916)'$graveyard'!=_0x1bd65d['root']['rootName']&&_0x4a78a5['unwrap'](_0x1bd65d);});});};_0x16fde6('insertion','accept'),_0x16fde6('insertion','discard'),_0x16fde6('deletion','accept'),_0x16fde6('deletion','discard'),_0x3f9e8f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4d643a=>{const _0x4a2a14=_0x4d643a['map'](_0x330622=>_0x330622['getContainedElement']()),_0x673316=_0x4a2a14[0x0]['findAncestor']('table'),{minRow:_0x3109cf,maxRow:_0x505462}=_0x4d0e32['_getCoordsForCells'](_0x4a2a14);_0x3ac2a0['removeRows'](_0x673316,{'at':_0x3109cf,'rows':_0x505462-_0x3109cf+0x1});}),_0x3f9e8f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x310b50=>{const _0x2e5fa1=_0x310b50['map'](_0x45ca19=>_0x45ca19['getContainedElement']()),_0x4d3b3e=_0x2e5fa1[0x0]['findAncestor']('table'),{minColumn:_0x3532de,maxColumn:_0x1e3aea}=_0x4d0e32['_getCoordsForCells'](_0x2e5fa1);_0x3ac2a0['removeColumns'](_0x4d3b3e,{'at':_0x3532de,'columns':_0x1e3aea-_0x3532de+0x1});});const _0x54f00f=(_0x148c60,_0x41f8df)=>{if(!_0x41f8df['subType']||!_0x41f8df['subType']['startsWith']('tablePaste'))return;const _0x239f7d=_0x41f8df['attributes']['tablePasteChainId'],_0x3bb1a7=_0x3f9e8f['getSuggestions']()['filter'](_0x271c48=>_0x271c48['isInContent']&&_0x271c48['attributes']&&_0x271c48['attributes']['tablePasteChainId']==_0x239f7d);_0x3bb1a7['length']&&_0x41f8df['getAllAdjacentSuggestions']()['length']!=_0x3bb1a7['length']&&_0x3bb1a7['reduce']((_0x545dd0,_0x20cf0c)=>(_0x545dd0['next']=_0x20cf0c,_0x20cf0c['previous']=_0x545dd0,_0x20cf0c));};function _0x4ce570(_0x36c1f2,_0xc21d2b=!0x0){const {id:_0x5bb486,authorId:_0x4ebd0b}=_0x3f9e8f['_splitMarkerName'](_0x36c1f2['markerName']),_0x415bc1=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5e90e0=_0x3f9e8f['activeMarkers']['includes'](_0x36c1f2['markerName']);return _0x5e90e0&&_0x415bc1['push']('ck-suggestion-marker--active'),{'classes':_0x415bc1,'attributes':{'data-suggestion':_0x5bb486,'data-author-id':_0x4ebd0b},'priority':_0x5e90e0&&_0xc21d2b?0xbc2:0xbb8};}_0x3f9e8f['on']('suggestionLoaded',_0x54f00f,{'priority':'high'}),_0x3f9e8f['on']('suggestionUnloaded',_0x54f00f,{'priority':'high'}),_0x28412a['model']['document']['registerPostFixer'](()=>{let _0xd6266a=!0x1;const _0x4fd574=Array['from'](_0x28412a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe9cdf,data:_0x187028}of _0x4fd574){const {group:_0x4c79d6,type:_0x1aa975,id:_0x35337f}=_0x3f9e8f['_splitMarkerName'](_0xe9cdf);if('suggestion'!=_0x4c79d6||'deletion'!=_0x1aa975||_0x187028['oldRange'])continue;if(!_0x3f9e8f['hasSuggestion'](_0x35337f))continue;const _0x4b736d=_0x3f9e8f['getSuggestion'](_0x35337f)['getRanges'](),_0x15623a=_0x28412a['plugins']['get']('Users')['me'];for(const _0x379b2b of _0x3f9e8f['getSuggestions']()){if(!_0x379b2b['isInContent']||_0x379b2b['author']!=_0x15623a)continue;if('formatBlock'!=_0x379b2b['type']||'tablePasteCell'!=_0x379b2b['subType'])continue;if(_0x379b2b['getRanges']()['every'](_0x30ef9c=>_0x4b736d['some'](_0x17b9c3=>_0x17b9c3['containsRange'](_0x30ef9c,!0x0)))){for(const _0x45b4e7 of _0x379b2b['getAllAdjacentSuggestions']())_0x45b4e7['isInContent']&&(_0x45b4e7['discard'](),_0xd6266a=!0x0);}}}return _0xd6266a;}),_0x28412a['model']['document']['registerPostFixer'](_0x45f76a=>{const _0x482259=_0x28412a['commands']['get']('redo');if(!_0x482259||!_0x482259['_createdBatches']['has'](_0x45f76a['batch']))return!0x1;let _0x444782=!0x1;const _0x51d14d=_0x28412a['plugins']['get']('Users')['me'],_0x184d40=_0x28412a['model']['document']['differ']['getChanges'](),_0xb7b1db=Array['from'](_0x28412a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xfe64ca,data:_0x4e5bb9})=>{const {group:_0x1476a8,subType:_0x1aeb07,authorId:_0x1cb024}=_0x3f9e8f['_splitMarkerName'](_0xfe64ca);return'suggestion'==_0x1476a8&&'tablePaste'==_0x1aeb07&&_0x1cb024==_0x51d14d['id']&&!_0x4e5bb9['oldRange'];});for(const _0x40bd05 of _0x184d40){if('insert'!=_0x40bd05['type']||'tableCellSuggestion'!=_0x40bd05['name']||0x1!=_0x40bd05['length'])continue;const _0x3c83b3=_0x45f76a['createRange'](_0x40bd05['position'],_0x40bd05['position']['getShiftedBy'](0x1));if(!_0xb7b1db['find'](({data:_0x5d5890})=>_0x5d5890['newRange']['isEqual'](_0x3c83b3))){for(const {name:_0x1e4dda,data:_0x5c5327}of _0xb7b1db)if(_0x3c83b3['containsRange'](_0x5c5327['newRange'])){_0x45f76a['updateMarker'](_0x1e4dda,{'range':_0x3c83b3}),_0x444782=!0x0;break;}}}return _0x444782;}),_0x28412a['model']['document']['registerPostFixer'](_0x3c55e0=>{let _0x566480=!0x1;const _0x763d56=_0x28412a['plugins']['get']('Users')['me'],_0x2f919c=_0x3f9e8f['getSuggestions']()['filter'](_0x27919d=>_0x27919d['isInContent']&&_0x27919d['author']==_0x763d56),_0x5d6f21=new Set(),_0x3e1388=new Set();for(const _0x164123 of _0x2f919c)if('tablePaste'==_0x164123['subType'])for(const _0x4fbc24 of _0x164123['getMarkers']()){const _0x1b8c82=_0x4fbc24['getRange']()['getContainedElement']();if(_0x1b8c82){if(_0x1b8c82['is']('element','tableCellSuggestion')&&Oe(_0x1b8c82)){_0x164123['removeMarker'](_0x4fbc24['name']),_0x5d6f21['add'](_0x1b8c82),_0x566480=!0x0;const _0x2a1d50=_0x1b8c82['nextSibling'],_0x33bf5e=_0x1b8c82['previousSibling'],_0x41452a=_0x2a1d50&&_0x2a1d50['is']('element','tableCellSuggestion'),_0xfeb165=_0x33bf5e&&_0x33bf5e['is']('element','tableCellSuggestion');_0x41452a&&!_0x5d6f21['has'](_0x2a1d50)&&_0x3e1388['add'](_0x2a1d50),_0xfeb165&&!_0x5d6f21['has'](_0x33bf5e)&&_0x3e1388['add'](_0x33bf5e);}else _0x1b8c82['is']('element','paragraph')&&_0x1b8c82['isEmpty']&&(_0x164123['removeMarker'](_0x4fbc24['name']),_0x566480=!0x0);}}else{if('tablePasteCell'==_0x164123['subType']){if(!_0x164123['attributes']||!_0x164123['attributes']['tablePasteChainId'])continue;const _0x196cf7=_0x164123['attributes']['markerAttributes'];if(_0x196cf7&&Object['keys'](_0x196cf7)['length'])continue;const _0x10ee9d=_0x164123['attributes']['tablePasteChainId'];let _0x57dbfb=!0x0,_0x572a5a=!0x0;for(const _0x1a4043 of _0x2f919c)if(_0x1a4043['subType']&&_0x1a4043['subType']['startsWith']('tablePaste')){if(!_0x1a4043['attributes']['tablePasteChainId']){_0x572a5a=!0x1;break;}if(_0x1a4043['id']!=_0x164123['id']&&_0x1a4043['attributes']['tablePasteChainId']==_0x10ee9d){_0x57dbfb=!0x1;break;}}_0x572a5a&&_0x57dbfb&&(_0x164123['removeMarkers'](),_0x566480=!0x0);}}for(const _0x4edcb0 of _0x5d6f21)_0x3c55e0['remove'](_0x4edcb0);for(const _0x1267f1 of _0x3e1388)_0x3c55e0['unwrap'](_0x1267f1);return _0x566480;}),_0x28412a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5d963a=>_0x4ce570(_0x5d963a),'converterPriority':'high'}),_0x28412a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x56ad52,_0x432c04)=>_0x432c04['options']['showSuggestionHighlights']?_0x4ce570(_0x56ad52,!0x1):null,'converterPriority':'high'});const _0x579c9f=_0x28412a['editing']['view'];this['listenTo'](_0x579c9f['document'],'clipboardOutput',(_0x54e3ce,_0x323b31)=>{const _0x33980f=[];for(const _0x105980 of _0x579c9f['createRangeIn'](_0x323b31['content'])['getItems']())_0x105980['is']('element','suggestion-td')&&_0x33980f['push'](_0x105980);_0x579c9f['change'](_0x5c8b23=>{for(const _0x10ad7d of _0x33980f)_0x5c8b23['move'](_0x5c8b23['createRangeIn'](_0x10ad7d),_0x5c8b23['createPositionBefore'](_0x10ad7d)),_0x5c8b23['remove'](_0x10ad7d);});});}}function Oe(_0x50eeb4){if(_0x50eeb4['isEmpty'])return!0x0;const _0x682f53=_0x50eeb4['getChild'](0x0);return _0x682f53['is']('element','paragraph')&&_0x682f53['isEmpty'];}function Ue(_0x1d5607,_0x2572af={},_0x97d579){for(const {isAnchor:_0x899379,cellHeight:_0x350fb6,cellWidth:_0x5d6e25}of _0x97d579['createTableWalker'](_0x1d5607,{'includeAllSlots':!0x0,..._0x2572af}))if(!_0x899379||0x1!=_0x350fb6||0x1!=_0x5d6e25)return!0x1;return!0x0;}class Dt extends _0x62e235{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5af36f=this['editor']['plugins']['get']('TrackChangesEditing');_0x5af36f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5af36f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5af36f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5af36f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5af36f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5af36f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xb7b62a,_0x15f938){const _0x1f9d1b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5587eb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x26db43=_0x15f938['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1e1aaa=_0x5587eb['getColumnGroupElement'](_0x26db43);let _0x3d26ba=_0x1e1aaa?_0x5587eb['getTableColumnsWidths'](_0x1e1aaa):null,_0x8400e1=_0x26db43['getAttribute']('tableWidth')||null;const _0x42bd2c=_0x15f938['tableWidth']||_0x8400e1,_0x6f231f=_0x15f938['columnWidths']||_0x3d26ba,_0x37e8d8=this['editor']['plugins']['get']('Users')['me'];for(const _0xea70ba of _0x1f9d1b['getSuggestions']()){const _0x272283=_0xea70ba['getContainedElement']();if('resizeTable'===_0xea70ba['subType']&&_0x272283===_0x26db43){_0xea70ba['author']!==_0x37e8d8&&_0xea70ba['discard']();const _0x411eff=_0xea70ba['data']['commandParams'];_0x8400e1=_0x411eff[0x0]['tableWidth'],_0x3d26ba=_0x411eff[0x0]['columnWidths'];break;}}_0xb7b62a({'table':_0x26db43,'tableWidth':_0x42bd2c,'columnWidths':_0x6f231f}),_0x1f9d1b['markBlockFormat'](_0x26db43,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x8400e1,'columnWidths':_0x3d26ba}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x43b58e){if('formatBlock'!=_0x43b58e['type']&&'formatInline'!=_0x43b58e['type'])return;const {data:_0x2a9f2b}=_0x43b58e;if(_0x2a9f2b&&'resizeTable'===_0x2a9f2b['formatGroupId']){const _0x550aa1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x550aa1)};}}}class Mt extends _0x62e235{['afterInit'](){const _0x1dfd78=this['editor'];_0x1dfd78['plugins']['has']('Template')&&_0x1dfd78['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x62e235{['afterInit'](){const _0x5e5b11=this['editor'];if(!_0x5e5b11['commands']['get']('insertTableOfContents'))return;_0x5e5b11['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x41451b=_0x5e5b11['plugins']['get']('TrackChangesEditing'),_0x1ef776=_0x5e5b11['locale'];_0x41451b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4cfe7a=>o(_0x1ef776,'ELEMENT_TABLE_OF_CONTENTS',_0x4cfe7a));}}class Bt extends _0x62e235{['afterInit'](){const _0x367ad0=this['editor'];if(!_0x367ad0['plugins']['has']('Title'))return;const _0x141ddd=_0x367ad0['plugins']['get']('TrackChangesEditing');_0x141ddd['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x367ad0['locale'],'ELEMENT_TITLE')),_0x367ad0['model']['document']['registerPostFixer'](_0x17a637=>{let _0x1c2f3c=!0x1;const _0x2a1980=Array['from'](_0x367ad0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x168e8a,data:_0xdb72dd}of _0x2a1980){const {group:_0x325c09}=_0x141ddd['_splitMarkerName'](_0x168e8a);if('suggestion'!==_0x325c09||!_0xdb72dd['newRange'])continue;const _0x2852db=_0xdb72dd['newRange'],_0x345a72=_0x2852db['end']['nodeBefore'];if(!_0x345a72||!_0x345a72['is']('element','title-content'))continue;if(!_0x2852db['start']['isTouching'](_0x2852db['end']))continue;const _0x5ac57e=_0x367ad0['model']['schema']['getNearestSelectionRange'](_0x2852db['end'],'forward');if(_0x5ac57e&&_0x5ac57e['isCollapsed']){const _0x4e47fc=_0x17a637['createRange'](_0x2852db['start'],_0x5ac57e['start']);_0x4e47fc['isEqual'](_0x2852db)||(_0x17a637['updateMarker'](_0x168e8a,{'range':_0x4e47fc}),_0x1c2f3c=!0x0);}_0x1c2f3c||(_0x17a637['removeMarker'](_0x168e8a),_0x1c2f3c=!0x0);}return _0x1c2f3c;});}}class Ot extends _0x62e235{['afterInit'](){const _0x5c9ef3=this['editor'],_0x1b4438=_0x5c9ef3['plugins']['get']('TrackChangesEditing');_0x5c9ef3['plugins']['has']('UndoEditing')&&(_0x1b4438['enableCommand']('undo'),_0x1b4438['enableCommand']('redo'));}}class Rt extends _0x62e235{static get['requires'](){return[vt];}['afterInit'](){const _0x2ad5e7=this['editor'];if(!_0x2ad5e7['plugins']['has']('TableCaptionEditing'))return;_0x2ad5e7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x62e235{['tableProperties'];['tableCellProperties'];constructor(_0x2a9726){super(_0x2a9726),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 _0x23b7cb=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3c27fd of this['tableProperties'])_0x23b7cb['enableCommand'](_0x3c27fd,(_0x290359,_0x2cb3dc)=>{const _0x24ec57=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3c27fd,[_0x24ec57],this['tableProperties'],'tableProperties',_0x290359,_0x2cb3dc);});_0x23b7cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x23b7cb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x23b7cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1891a4,_0x44ca25)=>this['handleDiscardAction'](this['tableProperties'],_0x1891a4,_0x44ca25)),_0x23b7cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2d037f of this['tableCellProperties'])_0x23b7cb['enableCommand'](_0x2d037f,(_0x1b7f95,_0x460769)=>{const _0x5cd962=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2d037f,_0x5cd962,this['tableCellProperties'],'tableCellProperties',_0x1b7f95,_0x460769);});_0x23b7cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x23b7cb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x23b7cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x265e88,_0x24dd6c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x265e88,_0x24dd6c)),_0x23b7cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x23b7cb['descriptionFactory']['registerDescriptionCallback'](_0x33edfe=>this['handleSuggestionDescription'](_0x33edfe));}['_handlePropertyChange'](_0x546e97,_0x3a9df2,_0x1c1339,_0x361b7a,_0x675c67,_0x5f2c2d){const _0x5da88f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5f2c2d['batch'],()=>{for(const _0x23b9ab of _0x3a9df2){if(this['_getSuggestion'](_0x23b9ab,_0x361b7a))_0x675c67(_0x5f2c2d);else{const _0x423062={};for(const _0x245b6a of _0x1c1339){const _0x350ffb=_0x23b9ab['getAttribute'](_0x245b6a);void 0x0!==_0x350ffb&&(_0x423062[_0x245b6a]=_0x350ffb);}_0x675c67(_0x5f2c2d),_0x5da88f['markBlockFormat'](_0x23b9ab,{'commandParams':[_0x423062]},[],_0x361b7a);}}});}['handleDiscardAction'](_0xca2bae,_0x5d2bf7,_0x44028a){const _0x290a66=_0x5d2bf7[0x0]['start']['nodeAfter'],_0x59706f=_0x44028a['commandParams'][0x0];this['editor']['model']['change'](_0x8feb39=>{for(const _0x965682 of _0xca2bae)void 0x0!==_0x59706f[_0x965682]?_0x8feb39['setAttribute'](_0x965682,_0x59706f[_0x965682],_0x290a66):_0x8feb39['removeAttribute'](_0x965682,_0x290a66);});}['handleSuggestionDescription'](_0x20f06a){if(_0x20f06a['data'])switch(_0x20f06a['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'](_0x4cb381,_0x559363){const _0x2243b7=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x382a36 of _0x2243b7['getSuggestions']({'skipNotAttached':!0x0})){const _0x8c45e3=_0x382a36['getContainedElement']();if(_0x382a36['subType']===_0x559363&&_0x8c45e3===_0x4cb381)return _0x382a36;}return null;}}const m='$elementName';class p extends _0x62e235{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4dff92,_0x23b37c,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf740ac){super(_0xf740ac),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x21d052,_0x45963c,_0x4a203b,_0x5f43f6)=>{this['_model']['change'](()=>{for(const _0x4d9608 of[..._0x5f43f6,..._0x4a203b])this['_model']['markers']['has'](_0x4d9608)&&_0xf740ac['editing']['reconvertMarker'](_0x4d9608);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xf740ac['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(),_0xf740ac['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xf740ac['config']['get']('trackChanges.trackFormatChanges'),_0xf740ac['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xf740ac['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xf740ac,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4a3e3f=this['editor'],_0x5f5abf=(_0x502070,_0x37038e)=>{if('attribute'!=_0x502070)return'ck-suggestion-marker-'+_0x502070;const _0x232625=_0x37038e['split']('|')[0x0];return this['_isBlockAttribute'](_0x232625)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4a3e3f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x463502=>{const {id:_0x3789af,authorId:_0x5b2aa9,type:_0x3cbfc3,subType:_0x203410}=this['_splitMarkerName'](_0x463502['markerName']),_0x2ae212=['ck-suggestion-marker',_0x5f5abf(_0x3cbfc3,_0x203410)];let _0x53581a=0xbb8;return this['activeMarkers']['includes'](_0x463502['markerName'])&&(_0x2ae212['push']('ck-suggestion-marker--active'),_0x53581a=0xbc2),'deletion'==_0x3cbfc3&&(_0x53581a+=0x5),{'classes':_0x2ae212,'attributes':{'data-suggestion':_0x3789af,'data-author-id':_0x5b2aa9},'priority':_0x53581a};}}),_0x4a3e3f['conversion']['for']('dataDowncast')['add'](_0x10a8fc=>{_0x10a8fc['on']('addMarker:suggestion',(_0x4034f6,_0x4ae465,_0x11210c)=>{if(!_0x11210c['options']['showSuggestionHighlights'])return;const _0x4a5b03=_0x4ae465['item'];if(!_0x4a5b03)return;const _0x18164a=_0x11210c['mapper']['toViewElement'](_0x4a5b03);_0x4a3e3f['model']['schema']['isObject'](_0x4a5b03)&&_0x18164a&&!_0x18164a['getCustomProperty']('widget')&&_0x18164a['is']('containerElement')&&_0x42efc(_0x18164a,_0x11210c['writer']);},{'priority':'high'});}),_0x4a3e3f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x223507,_0x496b73)=>{if(!_0x496b73['options']['showSuggestionHighlights'])return null;const {type:_0x51e743,subType:_0x2c6061}=this['_splitMarkerName'](_0x223507['markerName']);return{'classes':['ck-suggestion-marker',_0x5f5abf(_0x51e743,_0x2c6061)],'priority':0xbb8};}});const _0x519680=({showActiveMarkers:_0x295d7c=!0x0,isAttributeSuggestion:_0x522657=!0x1}={})=>(_0x4dd9d0,_0x12c159,_0x1bb58e)=>{if(!_0x12c159['item'])return;const {id:_0x1a821f,authorId:_0x2570c3}=this['_splitMarkerName'](_0x12c159['markerName']);if(_0x522657){const _0xcb43eb=this['_suggestions']['get'](_0x1a821f),_0x4bcb8c=this['_getAttributeKey'](_0xcb43eb);if(!this['_isBlockAttribute'](_0x4bcb8c))return;}if(_0x12c159['item']['is']('selection'))return void _0x1bb58e['consumable']['consume'](_0x12c159['item'],_0x4dd9d0['name']);const _0xbdd8d=_0x1bb58e['mapper']['toViewElement'](_0x12c159['item']);if(_0x12c159['item']['is']('element')&&_0x4a3e3f['model']['schema']['isBlock'](_0x12c159['item'])&&!_0xbdd8d['getCustomProperty']('addHighlight')){_0x1bb58e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xbdd8d),_0x1bb58e['writer']['setAttribute']('data-suggestion',_0x1a821f,_0xbdd8d),_0x1bb58e['writer']['setAttribute']('data-author-id',_0x2570c3,_0xbdd8d),_0x1bb58e['mapper']['bindElementToMarker'](_0xbdd8d,_0x12c159['markerName']),_0x295d7c&&(this['activeMarkers']['includes'](_0x12c159['markerName'])?_0x1bb58e['writer']['addClass']('ck-suggestion-marker--active',_0xbdd8d):_0x1bb58e['writer']['removeClass']('ck-suggestion-marker--active',_0xbdd8d));for(const _0x40f278 of _0x4a3e3f['model']['createRangeIn'](_0x12c159['item'])['getItems']())_0x1bb58e['consumable']['consume'](_0x40f278,_0x4dd9d0['name']);_0x1bb58e['consumable']['consume'](_0x12c159['item'],_0x4dd9d0['name']);}};_0x4a3e3f['conversion']['for']('dataDowncast')['add'](_0x25adf7=>{_0x25adf7['on']('addMarker:suggestion:formatBlock',(_0x917eaf,_0x45bac3,_0x8605bd)=>{_0x8605bd['options']['showSuggestionHighlights']&&_0x519680({'showActiveMarkers':!0x1})(_0x917eaf,_0x45bac3,_0x8605bd);},{'priority':'highest'});}),_0x4a3e3f['conversion']['for']('dataDowncast')['add'](_0x448083=>{_0x448083['on']('addMarker:suggestion:attribute',(_0x48f80c,_0x1d84d6,_0x49a255)=>{_0x49a255['options']['showSuggestionHighlights']&&_0x519680({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x48f80c,_0x1d84d6,_0x49a255);},{'priority':'highest'});}),_0x4a3e3f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5980e6,_0x33851a)=>_0x33851a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5980e6['substr'](0xb)}}),_0x4a3e3f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x33e49f,{writer:_0xdc27cb})=>{let _0x501ebc='suggestion:'+_0x33e49f['getAttribute']('suggestion-type')+':'+_0x33e49f['getAttribute']('id');return _0x33e49f['getAttribute']('marker-count')&&(_0x501ebc+=':'+_0x33e49f['getAttribute']('marker-count')),_0xdc27cb['createElement']('$marker',{'data-name':_0x501ebc});}}),_0x4a3e3f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4a3e3f['conversion']['for']('editingDowncast')['add'](_0x7bcd6f=>{_0x7bcd6f['on']('addMarker:suggestion:formatBlock',_0x519680(),{'priority':'high'});}),_0x4a3e3f['conversion']['for']('editingDowncast')['add'](_0x2b9a51=>{_0x2b9a51['on']('addMarker:suggestion:attribute',_0x519680({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4a3e3f['conversion']['for']('editingDowncast')['add'](_0x472127=>{_0x472127['on']('removeMarker:suggestion:formatBlock',(_0x559bbd,_0x288bcc,_0x1f4b86)=>{const _0x701c29=_0x1f4b86['mapper']['markerNameToElements'](_0x288bcc['markerName']);if(_0x701c29){for(const _0x340b8e of _0x701c29)_0x340b8e['getCustomProperty']('addHighlight')||(_0x1f4b86['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x340b8e),_0x1f4b86['writer']['removeAttribute']('data-suggestion',_0x340b8e),_0x1f4b86['writer']['removeAttribute']('data-author-id',_0x340b8e),_0x1f4b86['mapper']['unbindElementFromMarkerName'](_0x340b8e,_0x288bcc['markerName']));}},{'priority':'high'});}),_0x4a3e3f['conversion']['for']('editingDowncast')['add'](_0x3dc62f=>{_0x3dc62f['on']('removeMarker:suggestion:attribute',(_0x4f30e6,_0xd1cdab,_0xdae6fa)=>{const _0x48f982=_0xdae6fa['mapper']['markerNameToElements'](_0xd1cdab['markerName']);if(!_0x48f982)return;const {id:_0xf5de48}=this['_splitMarkerName'](_0xd1cdab['markerName']),_0x4a81b6=this['_suggestions']['get'](_0xf5de48),_0x7d09b8=this['_getAttributeKey'](_0x4a81b6);if(this['_isBlockAttribute'](_0x7d09b8)){for(const _0x45739e of _0x48f982)_0x45739e['getCustomProperty']('addHighlight')||(_0xdae6fa['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45739e),_0xdae6fa['writer']['removeAttribute']('data-suggestion',_0x45739e),_0xdae6fa['writer']['removeAttribute']('data-author-id',_0x45739e),_0xdae6fa['mapper']['unbindElementFromMarkerName'](_0x45739e,_0xd1cdab['markerName']));}},{'priority':'high'});}),_0x4a3e3f['model']['document']['registerPostFixer'](_0x5c2fdc=>{let _0x4f0542=!0x1;const _0x5e9fe3=Array['from'](_0x4a3e3f['model']['document']['differ']['getChangedMarkers']()),_0x2369ad=new Set();for(const {name:_0x2046b5,data:_0x277454}of _0x5e9fe3){const {group:_0x574bda,type:_0x340672,subType:_0x2338f0,id:_0x13a07f}=this['_splitMarkerName'](_0x2046b5);if('suggestion'!==_0x574bda)continue;const _0x2c29ad=this['_suggestions']['get'](_0x13a07f);if(null!=_0x277454['newRange']){'formatInline'==_0x340672&&(_0x4f0542=_0x4f0542||Pt(_0x277454['newRange'],_0x2046b5,_0x5c2fdc,_0x4a3e3f['model']['schema']));const _0x4deea2='attribute'==_0x340672&&this['_isBlockAttribute'](_0x2338f0['split']('|')[0x0]);if(_0x277454['newRange']['isCollapsed']||'$graveyard'==_0x277454['newRange']['root']['rootName']||'formatBlock'==_0x340672&&!Ft(_0x277454['newRange'])||_0x4deea2&&!Ft(_0x277454['newRange'])||'deletion'==_0x340672&&!(!Vt(_0x536bef=_0x277454['newRange'])&&!function(_0x467ec0){return _0x467ec0['start']['parent']==_0x467ec0['end']['nodeBefore']&&_0x467ec0['start']['isAtEnd'];}(_0x536bef)))_0x5c2fdc['removeMarker'](_0x2046b5),_0x4f0542=!0x0;else{if(!_0x2c29ad||!_0x2c29ad['isInContent'])continue;if(_0x277454['newRange']&&_0x277454['oldRange']&&_0x277454['newRange']['isEqual'](_0x277454['oldRange']))continue;_0x2369ad['add'](_0x2c29ad);}}}var _0x536bef;return _0x2369ad['size']>0x0&&(_0x4f0542=!!this['_joinWithAdjacentSuggestions'](_0x2369ad)||_0x4f0542),_0x4f0542;}),_0x4a3e3f['model']['document']['registerPostFixer'](_0x5d2dc1=>{let _0x1ce01f=!0x1;for(const _0x4fc5bb of _0x4a3e3f['model']['document']['differ']['getChanges']())if('insert'==_0x4fc5bb['type'])for(const _0x31c708 of this['_suggestions']['values']()){if(_0x31c708['isMultiRange']||!_0x31c708['isInContent'])continue;const _0x1d6d33='formatBlock'==_0x31c708['type'],_0x27cdde=this['_getAttributeKey'](_0x31c708),_0x310c21=_0x27cdde&&this['_isBlockAttribute'](_0x27cdde);if(!_0x1d6d33&&!_0x310c21)continue;const _0x3dc6f6=_0x31c708['getFirstRange']();if(_0x3dc6f6['start']['parent']!=_0x3dc6f6['end']['parent']&&!_0x3dc6f6['end']['isAtEnd']){const _0x380f17=_0x4a3e3f['model']['createPositionAt'](_0x3dc6f6['start']['nodeAfter'],'end'),_0x240aee=_0x4a3e3f['model']['createRange'](_0x3dc6f6['start'],_0x380f17);_0x5d2dc1['updateMarker'](_0x31c708['getFirstMarker'](),{'range':_0x240aee}),_0x1ce01f=!0x0;}}return _0x1ce01f;}),_0x4a3e3f['model']['document']['registerPostFixer'](_0x34e3c4=>this['_processAttributeChanges'](_0x34e3c4)),_0x4a3e3f['model']['document']['registerPostFixer'](_0x2138d8=>!_0x2138d8['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2138d8)),_0x4a3e3f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4a3e3f['model']['document']['on']('change:data',(_0x25e883,_0x4be83f)=>{if(!_0x4be83f['isLocal']||_0x4be83f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x292134=_0x4a3e3f['model']['document']['differ']['getChanges']();if(0x0==_0x292134['length'])return;const _0x357e8f=[],_0x2d2cd3=_0x292134['filter'](_0x250f1e=>'attribute'==_0x250f1e['type']),_0x5eb8e0=_0x292134['filter'](_0x5ee06e=>'insert'==_0x5ee06e['type']&&'$text'!=_0x5ee06e['name']);for(const _0x5a0c35 of _0x2d2cd3)this['_isRegisteredAttribute'](_0x5a0c35['attributeKey'])&&_0x357e8f['push']({'key':_0x5a0c35['attributeKey'],'newValue':_0x5a0c35['attributeNewValue'],'oldValue':_0x5a0c35['attributeOldValue'],'range':Lt(_0x5a0c35['range'],_0x4a3e3f['model'])});for(const _0x470941 of _0x5eb8e0){if('rename'!=_0x470941['action']&&'refresh'!=_0x470941['action'])continue;const _0x7ee9ac=Jt(_0x470941['position']['nodeAfter'],_0x4a3e3f['model']),_0x25a6eb=_0x470941['before'];'rename'==_0x470941['action']&&_0x357e8f['push']({'key':m,'newValue':_0x470941['name'],'oldValue':_0x25a6eb['name'],'range':_0x7ee9ac});for(const [_0x1944ab,_0x24c06]of _0x25a6eb['attributes']){if(!this['_isRegisteredAttribute'](_0x1944ab))continue;const _0xa5e866=_0x470941['attributes']['get'](_0x1944ab);_0x24c06!==_0xa5e866&&_0x357e8f['push']({'key':_0x1944ab,'newValue':_0xa5e866,'oldValue':_0x24c06,'range':_0x7ee9ac});}for(const [_0x533bf7,_0x87cce7]of _0x470941['attributes'])this['_isRegisteredAttribute'](_0x533bf7)&&(_0x25a6eb['attributes']['has'](_0x533bf7)||_0x357e8f['push']({'key':_0x533bf7,'newValue':_0x87cce7,'oldValue':null,'range':_0x7ee9ac}));}0x0!=_0x357e8f['length']&&_0x4a3e3f['model']['enqueueChange'](_0x4be83f,_0x7074b4=>{const _0x5d56e0=_0x8d496c();for(const {range:_0x2b18fb,key:_0xd291a1,oldValue:_0x1e5f3d,newValue:_0x66a605}of _0x357e8f)this['markAttributeChange'](_0x2b18fb,_0xd291a1,_0x1e5f3d,_0x66a605,{'groupId':_0x5d56e0});this['_reduceExistingSuggestions'](_0x7074b4,_0x357e8f);});},{'priority':'lowest'}),_0x4a3e3f['model']['markers']['on']('update:suggestion',(_0x36a150,_0x95e0b3,_0xbe69ca)=>{if(null==_0xbe69ca){const {id:_0x31a017}=this['_splitMarkerName'](_0x95e0b3['name']),_0x38190f=this['_suggestions']['get'](_0x31a017);_0x38190f&&_0x38190f['addMarkerName'](_0x95e0b3['name']);}}),_0x4a3e3f['model']['document']['on']('change:data',()=>{const _0x2a5d51=Array['from'](_0x4a3e3f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2c884d=>'suggestion'===this['_splitMarkerName'](_0x2c884d['name'])['group']);if(0x0===_0x2a5d51['length'])return;_0x2a5d51['sort']((_0x394a20,_0x39d92e)=>{const _0x51a134=_0x394a20['data']['oldRange'],_0x55b015=_0x39d92e['data']['oldRange'];return null===_0x51a134&&null===_0x55b015?0x0:null===_0x51a134&&null!==_0x55b015?-0x1:null!==_0x51a134&&null===_0x55b015?0x1:_0x51a134['start']['isBefore'](_0x55b015['start'])?-0x1:0x1;});const _0x48be57=new Set(),_0x2a73b5=new Set();for(const {name:_0x489f97,data:_0x5cb84c}of _0x2a5d51){const {id:_0x2bc768}=this['_splitMarkerName'](_0x489f97);if(null===_0x5cb84c['oldRange']){const _0x5add16=this['_handleNewSuggestionMarker'](_0x489f97);_0x2a73b5['add'](_0x5add16);}else{const _0x2e1f42=this['_suggestions']['get'](_0x2bc768);null!==_0x5cb84c['newRange']||_0x2e1f42['isInContent']?(_0x48be57['add'](_0x2e1f42['head']),_0x2a73b5['add'](_0x2e1f42)):this['_removeSuggestion'](_0x2e1f42);}}_0x2a73b5['size']>0x0&&this['_refreshSuggestionsChain'](_0x2a73b5);for(const _0xdaeac4 of _0x48be57)this['fire']('suggestionChanged',_0xdaeac4);}),_0x4a3e3f['model']['on']('applyOperation',(_0x406f2f,_0x3ecb93)=>{const _0x3fac99=_0x3ecb93[0x0];if(!this['_suggestions']['size'])return;if(!_0x3fac99['isDocumentOperation'])return;if(_0x3fac99['batch']['isUndo']||!_0x3fac99['batch']['isLocal'])return;let _0x2736e2,_0x550b2c;switch(_0x3fac99['type']){case'insert':_0x2736e2=_0x4a3e3f['model']['createPositionAt'](_0x3fac99['position']),_0x550b2c=_0x2736e2['getShiftedBy'](_0x3fac99['howMany']);break;case'split':_0x2736e2=_0x4a3e3f['model']['createPositionAt'](_0x3fac99['splitPosition']),_0x550b2c=_0x4a3e3f['model']['createPositionAt'](_0x3fac99['moveTargetPosition']);break;case'move':_0x2736e2=_0x4a3e3f['model']['createPositionAt'](_0x3fac99['targetPosition']),_0x550b2c=_0x2736e2['getShiftedBy'](_0x3fac99['howMany']);break;default:return;}const _0x4ee245=_0x4a3e3f['model']['createRange'](_0x2736e2,_0x550b2c);_0x4a3e3f['model']['change'](()=>{for(const {suggestion:_0x55656d,meta:_0x4ded26}of this['_findSuggestions'](_0x4ee245)){if(_0x55656d['isMultiRange'])continue;if('formatInline'==_0x55656d['type'])continue;const _0xb73471=this['_getAttributeKey'](_0x55656d);if(_0xb73471&&this['_isBlockAttribute'](_0xb73471)&&'split'!=_0x3fac99['type'])continue;const _0x50cc16=_0x55656d['data']&&_0x55656d['data']['multipleBlocks'];('formatBlock'!=_0x55656d['type']||'split'==_0x3fac99['type']&&!_0x50cc16)&&(_0x4ded26['containsRangeInObject']||'insertion'==_0x55656d['type']&&_0x4ded26['isOwn']||_0x55656d['getFirstRange']()['containsRange'](_0x4ee245)&&this['_breakSuggestionMarker'](_0x55656d,_0x2736e2,_0x550b2c));}});},{'priority':'lowest'}),_0x4a3e3f['model']['on']('deleteContent',(_0x1263de,_0x4efda3)=>{const _0xcd2969=_0x4efda3[0x0],_0x23c459=_0x4efda3[0x1];if(_0x23c459&&_0x23c459['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xcd2969['isCollapsed'])return;const _0x54b9d3=_0x4a3e3f['model']['schema'],{start:_0x502c65,end:_0x4083da}=_0xcd2969['getFirstRange'](),_0x147d4c=_0x502c65['nodeAfter']&&_0x54b9d3['isLimit'](_0x502c65['nodeAfter'])?null:_0x54b9d3['getNearestSelectionRange'](_0x502c65,'forward'),_0x957e43=_0x4083da['nodeBefore']&&_0x54b9d3['isLimit'](_0x4083da['nodeBefore'])?null:_0x54b9d3['getNearestSelectionRange'](_0x4083da,'backward'),_0x31e378=_0x4a3e3f['model']['createRange'](_0x147d4c?_0x147d4c['start']:_0x502c65,_0x957e43?_0x957e43['end']:_0x4083da);_0x4a3e3f['model']['change'](_0xaf2894=>{this['markDeletion'](_0x31e378);const _0x42ad03=_0x4a3e3f['model']['schema']['getNearestSelectionRange'](_0x31e378['start']);_0xcd2969['is']('documentSelection')?_0xaf2894['setSelection'](_0x42ad03):_0xcd2969['setTo'](_0x42ad03);}),_0x1263de['stop']();},{'priority':_0x32947d['normal']+0xa}),_0x4a3e3f['model']['on']('insertContent',(_0x518307,_0xcf96f)=>{const _0x3ea8b5=_0xcf96f[_0xcf96f['length']-0x1];_0x3ea8b5&&_0x3ea8b5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4a3e3f['model']['change'](()=>{let _0x23b624=_0x4a3e3f['model']['insertContent'](_0xcf96f[0x0],_0xcf96f[0x1],_0xcf96f[0x2],{'forceDefaultExecution':!0x0});if(!_0x23b624)return;_0x518307['return']=_0x23b624['clone']();const _0x2d74c6=_0x23b624['end']['nodeBefore'],_0x1becbc=_0x4a3e3f['model']['schema'];_0x2d74c6&&_0x1becbc['isBlock'](_0x2d74c6)&&!_0x1becbc['isObject'](_0x2d74c6)&&(_0x23b624=_0x4a3e3f['model']['createRange'](_0x23b624['start'],_0x4a3e3f['model']['createPositionAt'](_0x2d74c6,'end'))),this['markInsertion'](_0x23b624);}),_0x518307['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x19bb3c=new O(_0x4a3e3f,this['_suggestions']);_0x4a3e3f['commands']['add']('acceptSuggestion',_0x19bb3c),this['enableCommand']('acceptSuggestion');const _0x39fb03=new R(_0x4a3e3f,this['_suggestions']);_0x4a3e3f['commands']['add']('discardSuggestion',_0x39fb03),this['enableCommand']('discardSuggestion'),_0x4a3e3f['commands']['add']('acceptAllSuggestions',new x(_0x4a3e3f,_0x19bb3c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4a3e3f['commands']['add']('discardAllSuggestions',new x(_0x4a3e3f,_0x39fb03,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4a3e3f['commands']['add']('acceptSelectedSuggestions',new E(_0x4a3e3f,_0x19bb3c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4a3e3f['commands']['add']('discardSelectedSuggestions',new E(_0x4a3e3f,_0x39fb03,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3ecb82=_0x4a3e3f['plugins']['get']('CommentsRepository');this['listenTo'](_0x3ecb82,'addComment',(_0x1b1121,{threadId:_0x5bda6b})=>{const _0x39b624=this['_suggestions']['get'](_0x5bda6b);_0x39b624&&_0x39b624['commentThread']&&0x1===_0x39b624['commentThread']['length']&&this['_updateSuggestionData'](_0x5bda6b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3ecb82,'removeComment',(_0x41e63f,{threadId:_0x11026e})=>{const _0x1a3e94=this['_suggestions']['get'](_0x11026e);_0x1a3e94&&_0x1a3e94['commentThread']&&!_0x1a3e94['commentThread']['length']&&this['_updateSuggestionData'](_0x11026e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x466d48){const _0x146ad7=_0x36ff20([0x6a,0x4d,0x46,0x77,0x4c,0x6c,0x41,0x4e,0x43,0x78,0x36,0x76,0x50,0x73,0x54,0x75,0x62,0x45,0x59,0x67,0x4f,0x74,0x79,0x47,0x63,0x68,0x56,0x61,0x65,0x5a,0x57,0x6e,0x64,0x70,0x34,0x58,0x31,0x66,0x71,0x55,0x72,0x39,0x30,0x48,0x35,0x51,0x42,0x33,0x69,0x7a,0x6f,0x49,0x32,0x38,0x37,0x6d,0x4a,0x6b,0x44,0x52,0x53,0x4b]),_0x3a8a6c=0x60b4aa9a,_0x1a7dce=0x60b3f7a2^_0x3a8a6c,_0x124117=window[_0x36ff20([0x44,0x61,0x74,0x65])][_0x36ff20([0x6e,0x6f,0x77])](),_0x2eb66a=_0x466d48[_0x36ff20([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5f2a0d=new window[(_0x36ff20([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d3a46=>{_0x2eb66a[_0x36ff20([0x6f,0x6e,0x63,0x65])](_0x36ff20([0x72,0x65,0x61,0x64,0x79]),_0x1d3a46);}),_0x25596c={[_0x36ff20([0x6b,0x74,0x79])]:_0x36ff20([0x45,0x43]),[_0x36ff20([0x75,0x73,0x65])]:_0x36ff20([0x73,0x69,0x67]),[_0x36ff20([0x63,0x72,0x76])]:_0x36ff20([0x50,0x2d,0x32,0x35,0x36]),[_0x36ff20([0x78])]:_0x36ff20([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]),[_0x36ff20([0x79])]:_0x36ff20([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]),[_0x36ff20([0x61,0x6c,0x67])]:_0x36ff20([0x45,0x53,0x32,0x35,0x36])},_0x1cddf1=_0x2eb66a[_0x36ff20([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x36ff20([0x67,0x65,0x74])](_0x36ff20([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x516305(){let _0x30de60,_0x475d46=null,_0x4e4e79=null;try{if(_0x1cddf1==_0x36ff20([0x47,0x50,0x4c]))return _0x36ff20([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30de60=_0x2fff46(),!_0x30de60)return _0x36ff20([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x30de60[_0x36ff20([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e4e79=_0xa2dde6(_0x30de60[_0x36ff20([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30de60[_0x36ff20([0x6a,0x74,0x69])])),await _0x24c04c()?_0x5c69dc()?_0x1fc8f4()?_0x36ff20([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x168a24()?(_0x30de60[_0x36ff20([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36ff20([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x475d46=_0x1dc27e(_0x36ff20([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x30de60[_0x36ff20([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36ff20([0x74,0x72,0x69,0x61,0x6c])&&(_0x475d46=_0x1dc27e(_0x36ff20([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x30de60[_0x36ff20([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36ff20([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x475d46=_0x1dc27e(_0x36ff20([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x38a4b6()):_0x36ff20([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x36ff20([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x36ff20([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x17ffde){return _0x36ff20([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1fc8f4(){const _0x610ac4=[_0x36ff20([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x36ff20([0x74,0x72,0x69,0x61,0x6c])][_0x36ff20([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30de60[_0x36ff20([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x124117/0x3e8:0xe10*_0x1a7dce;return _0x30de60[_0x36ff20([0x65,0x78,0x70])]<_0x610ac4;}function _0x5c69dc(){const _0x1c92c9=_0x30de60[_0x36ff20([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1c92c9)return!0x1;if(_0x1c92c9[_0x36ff20([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36ff20([0x2a])))return!0x0;if(_0x1c92c9[_0x36ff20([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36ff20([0x54,0x43])))return!0x0;if(_0x1c92c9[_0x36ff20([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36ff20([0x52,0x54,0x43]))){if(_0x2d32ea())return!0x0;if(_0x3369d7()||_0x69e801())return!0x0;}return!0x1;}function _0x168a24(){const _0x1d24bd=_0x30de60[_0x36ff20([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d24bd||0x0==_0x1d24bd[_0x36ff20([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d73a3}=new URL(window[_0x36ff20([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1d24bd[_0x36ff20([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d73a3))return!0x0;const _0x2b9796=_0x1d73a3[_0x36ff20([0x73,0x70,0x6c,0x69,0x74])](_0x36ff20([0x2e]));return _0x1d24bd[_0x36ff20([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44b3d5=>_0x44b3d5[_0x36ff20([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36ff20([0x2a])))[_0x36ff20([0x6d,0x61,0x70])](_0x4d7f4e=>_0x4d7f4e[_0x36ff20([0x73,0x70,0x6c,0x69,0x74])](_0x36ff20([0x2e])))[_0x36ff20([0x73,0x6f,0x6d,0x65])](_0xf1550a=>_0x2b9796[_0x36ff20([0x65,0x76,0x65,0x72,0x79])]((_0x3858c5,_0x3c3341)=>_0xf1550a[_0x3c3341]===_0x3858c5||_0xf1550a[_0x3c3341]===_0x36ff20([0x2a])));}function _0x38a4b6(){return _0x475d46&&_0x4e4e79?new window[(_0x36ff20([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35d201,_0x4bafc1)=>{_0x475d46[_0x36ff20([0x74,0x68,0x65,0x6e])](_0x35d201,_0x4bafc1),_0x4e4e79[_0x36ff20([0x74,0x68,0x65,0x6e])](_0x9bb7e9=>{_0x9bb7e9!=_0x36ff20([0x56,0x61,0x6c,0x69,0x64])&&_0x35d201(_0x9bb7e9);},_0x4bafc1);}):_0x475d46||_0x4e4e79||_0x36ff20([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa2dde6(_0x465874,_0x598aff){return new window[(_0x36ff20([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25258f=>{if(_0x207807())return _0x25258f(_0x36ff20([0x56,0x61,0x6c,0x69,0x64]));_0x16bd8d(),_0x2eb66a[_0x36ff20([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x36ff20([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x10c8f6=!0x1;const _0x31a872=_0x8d496c();function _0x40adef(_0x419535){return!!_0x419535&&(typeof _0x419535===_0x36ff20([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x419535===_0x36ff20([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x419535[_0x36ff20([0x74,0x68,0x65,0x6e])]===_0x36ff20([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x419535[_0x36ff20([0x63,0x61,0x74,0x63,0x68])]===_0x36ff20([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10a9d4(_0x4b8207){_0x44ddf0(_0x4b8207)[_0x36ff20([0x74,0x68,0x65,0x6e])](_0x3537a4=>{if(!_0x3537a4||_0x3537a4[_0x36ff20([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x36ff20([0x6f,0x6b]))return _0x36ff20([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xa9b4f1(_0x43c044(_0x31a872+_0x598aff))!=_0x3537a4[_0x36ff20([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x36ff20([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x36ff20([0x56,0x61,0x6c,0x69,0x64]);})[_0x36ff20([0x74,0x68,0x65,0x6e])](_0xcf1e66=>(_0x2bb1e3(),_0xcf1e66),()=>{const _0x15b30c=_0xeb3f9a();return null==_0x15b30c?(_0x2bb1e3(),_0x36ff20([0x56,0x61,0x6c,0x69,0x64])):_0x36ff20(_0x124117-_0x15b30c>(0x44b82e9a^_0x3a8a6c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x36ff20([0x74,0x68,0x65,0x6e])](_0x25258f)[_0x36ff20([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25258f(_0x36ff20([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x993152=0x6082441a^_0x3a8a6c;function _0x2bb1e3(){const _0x2bd763=_0x36ff20([0x6c,0x6c,0x63,0x74,0x2d])+_0xa9b4f1(_0x43c044(_0x465874)),_0x3341c9=_0x514fa0(_0xa9b4f1(window[_0x36ff20([0x4d,0x61,0x74,0x68])][_0x36ff20([0x63,0x65,0x69,0x6c])](_0x124117/_0x993152)));window[_0x36ff20([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36ff20([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2bd763,_0x3341c9);}function _0xeb3f9a(){const _0x3759ef=_0x36ff20([0x6c,0x6c,0x63,0x74,0x2d])+_0xa9b4f1(_0x43c044(_0x465874)),_0x3517cd=window[_0x36ff20([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36ff20([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3759ef);return _0x3517cd?window[_0x36ff20([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x514fa0(_0x3517cd),0x10)*_0x993152:null;}function _0x44ddf0(_0x1d8c51){return new window[(_0x36ff20([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f9ea8,_0x11bbed)=>{_0x1d8c51[_0x36ff20([0x74,0x68,0x65,0x6e])](_0x4f9ea8,_0x11bbed),window[_0x36ff20([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11bbed,0x60b57e5a^_0x3a8a6c);});}}_0x2eb66a[_0x36ff20([0x6f,0x6e])](_0x36ff20([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x558116,_0x108723)=>{if(_0x108723[0x0]!=_0x465874)return _0x25258f(_0x36ff20([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x108723[0x1]={..._0x108723[0x1],[_0x36ff20([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31a872};},{[_0x36ff20([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36ff20([0x68,0x69,0x67,0x68])}),_0x2eb66a[_0x36ff20([0x6f,0x6e])](_0x36ff20([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc65300=>{_0x40adef(_0xc65300[_0x36ff20([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x10c8f6=!0x0,_0x10a9d4(_0xc65300[_0x36ff20([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x36ff20([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36ff20([0x6c,0x6f,0x77])}),_0x5f2a0d[_0x36ff20([0x74,0x68,0x65,0x6e])](()=>{_0x10c8f6||_0x25258f(_0x36ff20([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x207807(){return _0x2eb66a[_0x36ff20([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36ff20([0x76,0x69,0x65,0x77])][_0x36ff20([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x36ff20([0x61,0x75,0x74,0x6f]);}function _0x16bd8d(){_0x2eb66a[_0x36ff20([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36ff20([0x76,0x69,0x65,0x77])][_0x36ff20([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36ff20([0x61,0x75,0x74,0x6f]);}}function _0x1dc27e(_0x35dedb){const _0x140fb3=[new window[(_0x36ff20([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d0c67=>setTimeout(_0x3d0c67,0x60bd9456^_0x3a8a6c)),_0x5f2a0d[_0x36ff20([0x74,0x68,0x65,0x6e])](()=>new window[(_0x36ff20([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cc6b1=>{let _0x39d5fe=0x0;_0x2eb66a[_0x36ff20([0x6d,0x6f,0x64,0x65,0x6c])][_0x36ff20([0x6f,0x6e])](_0x36ff20([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x261e9e,_0x1833cf)=>{_0x1833cf[0x0][_0x36ff20([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39d5fe++,_0x39d5fe==(0x60b4ab62^_0x3a8a6c)&&(_0x4cc6b1(),_0x261e9e[_0x36ff20([0x6f,0x66,0x66])]());});}))];return window[_0x36ff20([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36ff20([0x72,0x61,0x63,0x65])](_0x140fb3)[_0x36ff20([0x74,0x68,0x65,0x6e])](()=>_0x35dedb);}async function _0x460e0c(){await _0x5f2a0d,_0x2eb66a[_0x36ff20([0x6d,0x6f,0x64,0x65,0x6c])][_0x36ff20([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a100b,_0x2eb66a[_0x36ff20([0x6d,0x6f,0x64,0x65,0x6c])][_0x36ff20([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a100b,_0x2eb66a[_0x36ff20([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x36ff20([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d32ea(){return _0x28cc08(_0x36ff20([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x32a1fb(_0x36ff20([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x36ff20([0x73,0x74,0x61,0x74,0x65])]==_0x36ff20([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3369d7(){return _0x28cc08(_0x36ff20([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 _0x69e801(){return _0x28cc08(_0x36ff20([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1d0fb5(_0x5eb601){const _0x1f0064=_0x4beb6b();_0x2eb66a[_0x1f0064]=_0x36ff20([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5eb601,_0x5eb601!=_0x36ff20([0x56,0x61,0x6c,0x69,0x64])&&_0x460e0c();}function _0x4beb6b(){const _0x436d97=window[_0x36ff20([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x36ff20([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x36ff20([0x6e,0x6f,0x77])]())[_0x36ff20([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x36ff20([0x2e]),'');let _0x4d81fa=_0x36ff20([0x6a]);for(let _0x309adf=0x0;_0x309adf<_0x436d97[_0x36ff20([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x309adf+=0x2){let _0x4009a3=window[_0x36ff20([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x436d97[_0x36ff20([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x309adf,_0x309adf+0x2));_0x4009a3>=_0x146ad7[_0x36ff20([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4009a3-=_0x146ad7[_0x36ff20([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d81fa+=_0x146ad7[_0x4009a3];}return _0x4d81fa;}function _0x2fff46(){const _0x100965=_0x1cddf1[_0x36ff20([0x73,0x70,0x6c,0x69,0x74])](_0x36ff20([0x2e]));if(0x3!=_0x100965[_0x36ff20([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d61ed(_0x100965[0x1]);function _0x2d61ed(_0x2b9d51){const _0xa154f6=_0x8014e1(_0x2b9d51);return _0xa154f6&&_0x4fa9dc()?_0xa154f6:null;function _0x4fa9dc(){const _0x304d5e=_0xa154f6[_0x36ff20([0x6a,0x74,0x69])],_0x2b62e4=window[_0x36ff20([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x304d5e[_0x36ff20([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x304d5e[_0x36ff20([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59ac93={..._0xa154f6,[_0x36ff20([0x6a,0x74,0x69])]:_0x304d5e[_0x36ff20([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x304d5e[_0x36ff20([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59ac93[_0x36ff20([0x76,0x63])],_0x43c044(_0x59ac93)==_0x2b62e4;}}}async function _0x24c04c(){let _0x2e6357=!0x0;try{const _0x4f4ff4=_0x1cddf1[_0x36ff20([0x73,0x70,0x6c,0x69,0x74])](_0x36ff20([0x2e])),[_0x1668ed,_0xfebfe2,_0x2e0106]=_0x4f4ff4;return _0xc01b54(_0x1668ed),await _0x1a3ec5(_0x1668ed,_0xfebfe2,_0x2e0106),_0x2e6357;}catch(_0x52a7e2){return!0x1;}function _0xc01b54(_0x2fa1a4){const _0x30941e=_0x8014e1(_0x2fa1a4);_0x30941e&&_0x30941e[_0x36ff20([0x61,0x6c,0x67])]==_0x36ff20([0x45,0x53,0x32,0x35,0x36])||(_0x2e6357=!0x1);}async function _0x1a3ec5(_0x46eaba,_0x5d8241,_0x5881dc){const _0x59c209=window[_0x36ff20([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x36ff20([0x66,0x72,0x6f,0x6d])](_0x11f475(_0x5881dc),_0x578add=>_0x578add[_0x36ff20([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5023e0=new window[(_0x36ff20([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x36ff20([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x46eaba+_0x36ff20([0x2e])+_0x5d8241),_0x16a35b=window[_0x36ff20([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x36ff20([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16a35b)return;const _0x1207a9=await _0x16a35b[_0x36ff20([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x36ff20([0x6a,0x77,0x6b]),_0x25596c,{[_0x36ff20([0x6e,0x61,0x6d,0x65])]:_0x36ff20([0x45,0x43,0x44,0x53,0x41]),[_0x36ff20([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x36ff20([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x36ff20([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16a35b[_0x36ff20([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x36ff20([0x6e,0x61,0x6d,0x65])]:_0x36ff20([0x45,0x43,0x44,0x53,0x41]),[_0x36ff20([0x68,0x61,0x73,0x68])]:{[_0x36ff20([0x6e,0x61,0x6d,0x65])]:_0x36ff20([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1207a9,_0x59c209,_0x5023e0)||(_0x2e6357=!0x1);}}function _0x8014e1(_0x26825f){return _0x26825f[_0x36ff20([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x36ff20([0x65,0x79]))?JSON[_0x36ff20([0x70,0x61,0x72,0x73,0x65])](_0x11f475(_0x26825f)):null;}function _0x11f475(_0x2d5f38){return window[_0x36ff20([0x61,0x74,0x6f,0x62])](_0x2d5f38[_0x36ff20([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x36ff20([0x2b]))[_0x36ff20([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x36ff20([0x2f])));}function _0x43c044(_0x2869bb){let _0xaeadf9=0x1505;function _0x3f5222(_0x5b8f43){for(let _0x26dde9=0x0;_0x26dde9<_0x5b8f43[_0x36ff20([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26dde9++){const _0x393b3d=_0x5b8f43[_0x36ff20([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26dde9);_0xaeadf9=(_0xaeadf9<<0x5)+_0xaeadf9+_0x393b3d,_0xaeadf9&=_0xaeadf9;}}function _0x5df6ca(_0x16e946){Array[_0x36ff20([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16e946)?_0x16e946[_0x36ff20([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5df6ca):_0x16e946&&typeof _0x16e946==_0x36ff20([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x36ff20([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16e946)[_0x36ff20([0x73,0x6f,0x72,0x74])]()[_0x36ff20([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29799d,_0x4faf46])=>{_0x3f5222(_0x29799d),_0x5df6ca(_0x4faf46);}):_0x3f5222(window[_0x36ff20([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16e946));}return _0x5df6ca(_0x2869bb),_0xaeadf9>>>0x0;}function _0xa9b4f1(_0x35865f){return _0x35865f[_0x36ff20([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x36ff20([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x36ff20([0x30]));}function _0x514fa0(_0x16de6d){return _0x16de6d[_0x36ff20([0x73,0x70,0x6c,0x69,0x74])]('')[_0x36ff20([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x36ff20([0x6a,0x6f,0x69,0x6e])]('');}function _0x28cc08(_0x27378e){return _0x2eb66a[_0x36ff20([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x36ff20([0x68,0x61,0x73])](_0x27378e);}function _0x32a1fb(_0x1bec47){return _0x2eb66a[_0x36ff20([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x36ff20([0x67,0x65,0x74])](_0x1bec47);}function _0x2a100b(){}function _0x36ff20(_0x1a14a9){return _0x1a14a9['map'](_0x3e1264=>String['fromCharCode'](_0x3e1264))['join']('');}_0x1d0fb5(await _0x516305());}(this);}set['adapter'](_0x564359){if(this['_adapter'])throw new _0x668daf('track-changes-adapter-already-set',this);this['_adapter']=_0x564359;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xcc3c6c=!0x1,toJSON:_0x48289c=!0x1}={}){const _0x349c12=[];for(const _0x3ae175 of this['_suggestions']['values']())_0xcc3c6c&&!_0x3ae175['isInContent']||_0x349c12['push'](_0x3ae175);return _0x48289c?_0x349c12['map'](_0x779478=>_0x779478['toJSON']()):_0x349c12;}['getSuggestion'](_0x560e40){const _0x3c0a00=this['_suggestions']['get'](_0x560e40);if(!_0x3c0a00)throw new _0x668daf('track-changes-suggestion-not-found',this);return _0x3c0a00;}['hasSuggestion'](_0x5154f0){return this['_suggestions']['has'](_0x5154f0);}['addSuggestionData'](_0x3152ba){const {authorId:_0x2e4c4f,id:_0x14037c,attributes:_0x3d6382}=_0x3152ba,[_0x1548dd,_0x3ce954]=_0x3152ba['type']['split'](':'),_0x3b98ee=this['_suggestions']['get'](_0x14037c)||this['_createSuggestion'](_0x1548dd,_0x3ce954,_0x14037c,_0x2e4c4f,_0x3d6382);if(this['_addThreadToSuggestion'](_0x3b98ee),this['_checkSuggestionCorrectness'](_0x3b98ee,_0x1548dd,_0x3ce954||null,_0x2e4c4f),_0x3b98ee['createdAt']=_0x3152ba['createdAt'],_0x3b98ee['_isDataLoaded']=!0x0,_0x3d6382&&_0x3d6382['@external']){const _0x1fc33d=_0x3d6382['@external'],_0x3be34c=this['_getExternalAuthor'](_0x1fc33d['authorName']);_0x3b98ee['authoredAt']=_0x1fc33d['createdAt'],_0x3b98ee['author']=_0x3be34c,_0x3b98ee['isExternal']=!0x0;}else _0x3b98ee['authoredAt']=_0x3152ba['createdAt'];switch(_0x3152ba['data']&&(_0x3b98ee['data']=_0x3152ba['data']),_0x3152ba['attributes']&&(_0x3b98ee['attributes']=_0x3152ba['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3b98ee['_saved']=!0x0),this['_suggestionState']['get'](_0x3b98ee)){case'notReady':this['_suggestionState']['set'](_0x3b98ee,'dataReady');break;case'markerReady':_0x3b98ee['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3b98ee])),this['_refreshSuggestionsChain'](new Set([_0x3b98ee])),this['_suggestionState']['set'](_0x3b98ee,'ready'),this['fire']('suggestionLoaded',_0x3b98ee)):this['_suggestionState']['set'](_0x3b98ee,'removed');}return _0x3b98ee;}['acceptSuggestion'](_0xe1aef0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x33112f of _0xe1aef0['getAllAdjacentSuggestions']())_0x33112f['accept']();});});}['discardSuggestion'](_0x35a2f3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x330618 of _0x35a2f3['getAllAdjacentSuggestions']())_0x330618['discard']();});});}['enableCommand'](_0x415b5c,_0x3d1adb){const _0x2c2011=this['editor']['commands']['get'](_0x415b5c);if(!_0x2c2011)throw new _0x668daf('track-changes-command-not-found',this,{'commandName':_0x415b5c});if(this['_enabledCommands']['has'](_0x2c2011))throw new _0x668daf('track-changes-enable-command-twice',this,{'commandName':_0x415b5c});this['_enabledCommands']['add'](_0x2c2011),_0x3d1adb&&_0x2c2011['on']('execute',(_0x42f865,_0x13e38a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x13e38a['length']>0x0&&_0x13e38a[_0x13e38a['length']-0x1]&&_0x13e38a[_0x13e38a['length']-0x1]['forceDefaultExecution']?_0x13e38a['pop']():(_0x42f865['return']=_0x3d1adb((..._0x37b112)=>_0x2c2011['execute'](..._0x37b112,{'forceDefaultExecution':!0x0}),..._0x13e38a),_0x42f865['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x12ee42){let _0x3bdf8d,_0x1c63b3;const _0x49af72=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3bdf8d=_0x12ee42();}catch(_0x4cdc24){_0x1c63b3=_0x4cdc24;}return _0x49af72||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1c63b3&&_0x668daf['rethrowUnexpectedError'](_0x1c63b3,this),_0x3bdf8d;}['markInsertion'](_0x586daa,_0x2925eb=null,_0x546ab6={}){if(_0x586daa['isCollapsed'])return null;const _0x20d0b8=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2d8a1a,meta:_0x21524f}of this['_findSuggestions'](_0x586daa,'insertion'))if(_0x21524f['isOwn']){if(!_0x21524f['isNextTo']){if(_0x21524f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x2d8a1a,_0x546ab6))continue;return _0x2d8a1a;}if(zt(_0x2d8a1a,_0x546ab6))return _0x2d8a1a;this['_breakSuggestionMarker'](_0x2d8a1a,_0x586daa['start'],_0x586daa['end']);break;}if(_0x2925eb==_0x2d8a1a['subType']&&zt(_0x2d8a1a,_0x546ab6)){const _0x94c898=_0x2d8a1a['getFirstRange']();return _0x94c898['start']['isEqual'](_0x586daa['end'])?this['_setSuggestionRange'](_0x2d8a1a,this['_model']['createRange'](_0x586daa['start'],_0x94c898['end'])):this['_setSuggestionRange'](_0x2d8a1a,this['_model']['createRange'](_0x94c898['start'],_0x586daa['end'])),_0x2d8a1a;}}const _0x3ce9c9=_0x8d496c(),_0x35506b=_0x20d0b8['id'],_0x33e834=_0x2925eb?'insertion:'+_0x2925eb:'insertion',_0x70169c=this['_setSuggestionData']({'id':_0x3ce9c9,'type':_0x33e834,'createdAt':new Date(),'authorId':_0x35506b,'attributes':_0x546ab6});return this['_addSuggestionMarker'](_0x33e834,_0x3ce9c9,_0x35506b,_0x586daa),_0x70169c;}['markMultiRangeInsertion'](_0x49dc5c,_0x17ee3f='multi',_0x3c4271={}){const _0x4c7f9c=this['editor']['plugins']['get']('Users')['me'],_0x52aaff=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x17ee3f,'join');for(const _0x280528 of this['getSuggestions']())if(_0x280528['author']['id']==_0x4c7f9c['id']&&'insertion'==_0x280528['type']&&_0x280528['subType']==_0x17ee3f&&zt(_0x280528,_0x3c4271)&&(_0x52aaff(_0x280528['getRanges'](),_0x49dc5c)||_0x52aaff(_0x49dc5c,_0x280528['getRanges']()))){for(const _0x21d39a of _0x49dc5c)_0x280528['addRange'](_0x21d39a);return _0x280528;}for(const {suggestion:_0x30d540,meta:_0x2f6fb0}of this['_findSuggestions'](_0x49dc5c,'insertion')){if(!_0x2f6fb0['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2f6fb0['containsRangeInObject'])continue;if(!zt(_0x30d540,_0x3c4271))continue;let _0x5f7369=!0x0;for(const _0x51445b of _0x30d540['getRanges']())for(const _0x159ea8 of _0x49dc5c)if(!_0x51445b['containsRange'](_0x159ea8)){_0x5f7369=!0x1;break;}if(_0x5f7369)return _0x30d540;}const _0xe638dc=_0x8d496c(),_0x4edb97=_0x4c7f9c['id'],_0x279629='insertion:'+_0x17ee3f,_0x440e5a=this['_setSuggestionData']({'id':_0xe638dc,'type':_0x279629,'createdAt':new Date(),'authorId':_0x4edb97,'attributes':_0x3c4271});for(const _0x253527 of _0x49dc5c)this['_addSuggestionMarker'](_0x279629,_0xe638dc,_0x4edb97,_0x253527,u['getMultiRangeId']());return _0x440e5a;}['markInlineFormat'](_0x40a0a9,_0x4c4de8,_0x5932f0=null,_0x5721bd={}){if(_0x5932f0=_0x5932f0||Gt(_0x4c4de8),_0x40a0a9['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4d045d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5932f0,'accept');return this['forceDefaultExecution'](()=>_0x4d045d([_0x40a0a9],_0x4c4de8,_0x5721bd)),null;}const _0xb7d467=this['editor']['plugins']['get']('Users')['me'],_0x5df7d4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x27513e,meta:_0x1c2d71}of this['_findSuggestions'](_0x40a0a9,'insertion'))_0x1c2d71['isOwn']&&!_0x1c2d71['isInsideObject']&&_0x5df7d4['push'](..._0x27513e['getRanges']());}const _0x5c8584=function(_0x318abd,_0x4c8f26){const _0x5bcc1e=[];for(const _0x60df20 of _0x4c8f26){const _0x1e5ff6=_0x318abd['getIntersection'](_0x60df20);_0x1e5ff6&&_0x5bcc1e['push'](_0x1e5ff6);}return _0x5bcc1e;}(_0x40a0a9,_0x5df7d4),_0x1cc9d7=function(_0x579283,_0x4bbe59){const _0x1ddde1=[_0x579283];for(const _0x1eda42 of _0x4bbe59){let _0x579d61=0x0;for(;_0x579d61<_0x1ddde1['length'];){const _0x2115ca=_0x1ddde1[_0x579d61]['getDifference'](_0x1eda42);_0x1ddde1['splice'](_0x579d61,0x1,..._0x2115ca),_0x579d61+=_0x2115ca['length'];}}return _0x1ddde1;}(_0x40a0a9,_0x5df7d4);_0x5c8584['length']&&this['_model']['change'](()=>{for(const _0xeb0622 of _0x5c8584){const _0x44896c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5932f0,'accept');this['forceDefaultExecution'](()=>_0x44896c([_0xeb0622],_0x4c4de8,_0x5721bd));}});for(const _0x4c2020 of _0x1cc9d7){let _0x307e19=null,_0x3fe636=_0x4c2020['start'],_0x4ae661=_0x4c2020['end'];for(const {suggestion:_0x40fac0,meta:_0x541671}of this['_findSuggestions'](_0x4c2020,'formatInline')){if(!_0x541671['isOwn'])continue;if(_0x40fac0['subType']!=_0x5932f0)continue;if(!zt(_0x40fac0,_0x5721bd))continue;const _0xc876d=_0x40fac0['getFirstRange']();if(_0xc876d['containsRange'](_0x4c2020,!0x0))return null;_0x3fe636=_0x3fe636['isBefore'](_0xc876d['start'])?_0x3fe636:_0xc876d['start'],_0x4ae661=_0x4ae661['isAfter'](_0xc876d['end'])?_0x4ae661:_0xc876d['end'],_0x307e19?_0xc876d['start']['isBefore'](_0x307e19['getFirstRange']()['start'])?(_0x307e19['removeMarkers'](),_0x307e19=_0x40fac0):_0x40fac0['removeMarkers']():_0x307e19=_0x40fac0;}const _0x542543=this['_model']['createRange'](_0x3fe636,_0x4ae661);if(_0x307e19)this['_setSuggestionRange'](_0x307e19,_0x542543);else{const _0x3207a3=_0x8d496c(),_0x9e1437=_0xb7d467['id'];this['_setSuggestionData']({'id':_0x3207a3,'type':'formatInline:'+_0x5932f0,'data':_0x4c4de8,'createdAt':new Date(),'authorId':_0x9e1437,'attributes':_0x5721bd}),this['_addSuggestionMarker']('formatInline:'+_0x5932f0,_0x3207a3,_0x9e1437,_0x542543);}}return null;}['markBlockFormat'](_0x3912b1,_0x294409,_0xaabd4b=[],_0x465b01=null,_0x4db100={}){_0x294409['formatGroupId']||(_0x294409['formatGroupId']=_0x294409['commandName']),_0x294409['multipleBlocks']=_0x3912b1['is']('range'),_0x465b01=_0x465b01||Gt(_0x294409);const _0x6e765=_0xaabd4b['map'](_0x2eb840=>Jt(_0x2eb840,this['_model'])),_0x5d681f=_0x3912b1['is']('range')?_0x3912b1:Jt(_0x3912b1,this['_model']);if('never'===this['_trackFormatChanges']){const _0x566619=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x465b01,'accept');return this['forceDefaultExecution'](()=>_0x566619([_0x5d681f],_0x294409,_0x4db100)),null;}_0x6e765['push'](_0x5d681f);let _0x5f0ed7=!0x0;for(const _0x3b4e32 of _0x6e765)if(!this['_rangeIsInLocalUserInsertion'](_0x3b4e32)){_0x5f0ed7=!0x1;break;}if(_0x5f0ed7&&'always'!==this['_trackFormatChanges']){const _0x644749=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x465b01,'accept');return this['forceDefaultExecution'](()=>_0x644749([_0x5d681f],_0x294409,_0x4db100)),null;}let _0x48c85c=null,_0x6996e4=_0x5d681f['start'],_0x53ff29=_0x5d681f['end'];for(const {suggestion:_0x47d2ee,meta:_0x43eb96}of this['_findSuggestions'](_0x5d681f,'formatBlock')){if(!_0x43eb96['isOwn'])continue;if(_0x43eb96['isNextTo']||_0x43eb96['containsRangeInObject']||_0x43eb96['isInsideObject'])continue;if(_0x47d2ee['data']['formatGroupId']!=_0x294409['formatGroupId'])continue;if(!zt(_0x47d2ee,_0x4db100))continue;const _0x59979e=_0x47d2ee['getFirstRange']();if(_0x47d2ee['subType']==_0x465b01){if(_0x59979e['containsRange'](_0x5d681f,!0x0))return null;_0x6996e4=_0x6996e4['isBefore'](_0x59979e['start'])?_0x6996e4:_0x59979e['start'],_0x53ff29=_0x53ff29['isAfter'](_0x59979e['end'])?_0x53ff29:_0x59979e['end'],_0x48c85c?_0x59979e['start']['isBefore'](_0x48c85c['getFirstRange']()['start'])?(_0x48c85c['removeMarkers'](),_0x48c85c=_0x47d2ee):_0x47d2ee['removeMarkers']():_0x48c85c=_0x47d2ee;}else{const _0x13d426=_0x5d681f['getIntersection'](_0x59979e);this['_cutOutSuggestionMarker'](_0x47d2ee,_0x13d426);}}const _0x249c1a=this['editor']['plugins']['get']('Users')['me'],_0x545bc6=_0x8d496c(),_0x4da5f8=_0x249c1a['id'];if(_0x48c85c)return this['_setSuggestionRange'](_0x48c85c,this['_model']['createRange'](_0x6996e4,_0x53ff29)),_0x48c85c;{const _0x31b9df=this['_setSuggestionData']({'id':_0x545bc6,'type':'formatBlock:'+_0x465b01,'data':_0x294409,'createdAt':new Date(),'authorId':_0x4da5f8,'attributes':_0x4db100});return this['_addSuggestionMarker']('formatBlock:'+_0x465b01,_0x545bc6,_0x4da5f8,this['_model']['createRange'](_0x6996e4,_0x53ff29)),_0x31b9df;}}['markMultiRangeBlockFormat'](_0x4281c5,_0x22414a,_0x3cd3a3=[],_0x177913=null,_0x544bc4={}){_0x22414a['formatGroupId']||(_0x22414a['formatGroupId']=_0x22414a['commandName']);const _0x30127d=_0x4281c5[0x0];_0x22414a['multipleBlocks']=_0x30127d['is']('range'),_0x177913=_0x177913||Gt(_0x22414a);const _0x2b0009=_0x3cd3a3['map'](_0x57e180=>Jt(_0x57e180,this['_model'])),_0x2d54ea=_0x30127d['is']('range')?_0x4281c5:_0x4281c5['map'](_0x3bbba3=>Jt(_0x3bbba3,this['_model']));if('never'===this['_trackFormatChanges']){const _0x545eb6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x177913,'accept');return this['forceDefaultExecution'](()=>_0x545eb6(_0x2d54ea,_0x22414a,_0x544bc4)),null;}_0x2b0009['push'](..._0x2d54ea);let _0x83880a=!0x0;for(const _0x447e59 of _0x2b0009)if(!this['_rangeIsInLocalUserInsertion'](_0x447e59)){_0x83880a=!0x1;break;}if(_0x83880a&&'always'!==this['_trackFormatChanges']){const _0x3c26a8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x177913,'accept');return this['forceDefaultExecution'](()=>_0x3c26a8(_0x2d54ea,_0x22414a,_0x544bc4)),null;}const _0x117e3a=this['editor']['plugins']['get']('Users')['me'];for(const _0x31c169 of this['getSuggestions']()){if(_0x31c169['author']['id']!=_0x117e3a['id'])continue;if('formatBlock'!=_0x31c169['type']||_0x31c169['data']['formatGroupId']!=_0x22414a['formatGroupId'])continue;if(!zt(_0x31c169,_0x544bc4))continue;const _0x18772f=_0x31c169['subType']==_0x177913;for(let _0x4a134d=0x0;_0x4a134d<_0x2d54ea['length'];_0x4a134d++){const _0x4d5326=_0x2d54ea[_0x4a134d];for(const _0x1b8e00 of _0x31c169['getMarkers']()){const _0x38ae05=_0x1b8e00['getRange']();if(_0x4d5326['isEqual'](_0x38ae05)){_0x18772f?(_0x2d54ea['splice'](_0x4a134d,0x1),_0x4a134d--):_0x31c169['removeMarker'](_0x1b8e00['name']);break;}}}}if(0x0==_0x2d54ea['length'])return null;const _0x40f328=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x177913,'join');for(const _0x5e2843 of this['getSuggestions']())if(_0x5e2843['author']['id']==_0x117e3a['id']&&'formatBlock'==_0x5e2843['type']&&_0x5e2843['data']['formatGroupId']==_0x22414a['formatGroupId']&&_0x5e2843['subType']==_0x177913&&zt(_0x5e2843,_0x544bc4)&&(_0x40f328(_0x5e2843['getRanges'](),_0x2d54ea)||_0x40f328(_0x2d54ea,_0x5e2843['getRanges']()))){for(const _0xa58f4b of _0x2d54ea)_0x5e2843['addRange'](_0xa58f4b);return _0x5e2843;}const _0x4e212a=_0x8d496c(),_0x3312f2=_0x117e3a['id'],_0x3e7db0='formatBlock:'+_0x177913,_0x40c81a=this['_setSuggestionData']({'id':_0x4e212a,'type':_0x3e7db0,'data':_0x22414a,'createdAt':new Date(),'authorId':_0x3312f2,'attributes':_0x544bc4});for(const _0x4d56c8 of _0x2d54ea)this['_addSuggestionMarker'](_0x3e7db0,_0x4e212a,_0x3312f2,_0x4d56c8,u['getMultiRangeId']());return _0x40c81a;}['markDeletion'](_0x352199,_0x3e00d1=null,_0x277e39={}){if(_0x352199['isCollapsed'])return null;const _0x5e05a0=this['editor']['plugins']['get']('Users')['me'],_0x2e8db6=new _0x3253cc(_0x352199['start'],_0x352199['end']);for(const {suggestion:_0x8746c0,meta:_0x206e4c}of this['_findSuggestions'](_0x2e8db6,'insertion'))if(_0x206e4c['isOwn']&&!_0x206e4c['isNextTo']){if(_0x8746c0['isMultiRange']){const _0x4070bd=_0x8746c0['getRanges']()['filter'](_0x289628=>'$graveyard'!=_0x289628['root']['rootName']);_0x4070bd['every'](_0x299980=>_0x2e8db6['containsRange'](_0x299980,!0x0))&&_0x8746c0['discard']();if(_0x4070bd['some'](_0x24617d=>_0x24617d['containsRange'](_0x2e8db6,!0x0))){const _0x9e8cbc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e00d1,'accept');return this['forceDefaultExecution'](()=>_0x9e8cbc([_0x2e8db6],null,_0x277e39)),null;}}else{const _0x97f026=_0x2e8db6['getIntersection'](_0x8746c0['getFirstRange']());null!==_0x97f026&&_0x8746c0['_onDiscard']([_0x97f026],null,_0x277e39);}}if(_0x2e8db6['detach'](),_0x2e8db6['isCollapsed']||'$graveyard'==_0x2e8db6['root']['rootName'])return null;let _0x1ba62f=null,_0x481d2a=_0x2e8db6['start'],_0x2ef214=_0x2e8db6['end'];const _0x2e91d5=this['_findSuggestions'](_0x2e8db6,'deletion');for(const {suggestion:_0x572ceb,meta:_0x533838}of _0x2e91d5){const _0x3dd698=this['_model']['createRange'](_0x481d2a,_0x2ef214);if(_0x533838['isOwn']&&(this['_mergeNestedSuggestions']||!_0x533838['containsRangeInObject']&&!_0x533838['isInsideObject'])){if(_0x572ceb['isMultiRange']){if(!zt(_0x572ceb,_0x277e39))continue;let _0x7d8fbf=!0x0;for(const _0x46b9b6 of _0x572ceb['getRanges']()){if(_0x46b9b6['containsRange'](_0x3dd698,!0x0))return _0x572ceb;_0x3dd698['containsRange'](_0x46b9b6)||(_0x7d8fbf=!0x1);}_0x7d8fbf&&_0x572ceb['discard']();}else{const _0x439084=_0x572ceb['getFirstRange']();if(_0x439084['containsRange'](_0x3dd698,!0x0))return _0x572ceb;if(!zt(_0x572ceb,_0x277e39)){_0x3dd698['containsRange'](_0x439084)?_0x572ceb['removeMarkers']():_0x439084['containsPosition'](_0x481d2a)?_0x481d2a=_0x439084['end']:_0x439084['containsPosition'](_0x2ef214)&&(_0x2ef214=_0x439084['start']);continue;}_0x481d2a=_0x481d2a['isBefore'](_0x439084['start'])?_0x481d2a:_0x439084['start'],_0x2ef214=_0x2ef214['isAfter'](_0x439084['end'])?_0x2ef214:_0x439084['end'],_0x277e39=Object['assign']({},_0x572ceb['attributes']),_0x1ba62f?_0x439084['start']['isBefore'](_0x1ba62f['getFirstRange']()['start'])?(_0x1ba62f['removeMarkers'](),_0x1ba62f=_0x572ceb):_0x572ceb['removeMarkers']():_0x1ba62f=_0x572ceb;}}}if(_0x1ba62f)return this['_setSuggestionRange'](_0x1ba62f,this['_model']['createRange'](_0x481d2a,_0x2ef214)),_0x1ba62f;{const _0x2654db=_0x8d496c(),_0x5ce235=this['_model']['createRange'](_0x481d2a,_0x2ef214),_0x41f5fb=_0x5e05a0['id'],_0x372701=_0x3e00d1?'deletion:'+_0x3e00d1:'deletion',_0x4063d7=this['_setSuggestionData']({'id':_0x2654db,'type':_0x372701,'createdAt':new Date(),'authorId':_0x41f5fb,'attributes':_0x277e39});return this['_addSuggestionMarker'](_0x372701,_0x2654db,_0x41f5fb,_0x5ce235),_0x4063d7;}}['markMultiRangeDeletion'](_0x128c7a,_0x469ac1='multi',_0x2580d8={}){const _0xfa01ee=this['editor']['plugins']['get']('Users')['me'],_0x1048b5=_0x128c7a['map'](_0x3f1113=>new _0x3253cc(_0x3f1113['start'],_0x3f1113['end'])),_0x49e18f=new Set();for(const {suggestion:_0x540408,meta:_0x231cac}of this['_findSuggestions'](_0x1048b5,'insertion'))_0x231cac['isOwn']&&!_0x231cac['isNextTo']&&_0x49e18f['add'](_0x540408);for(const _0x2c821f of _0x49e18f)if(_0x2c821f['isMultiRange']){const _0x4565a2=_0x2c821f['getRanges']();(!_0x2c821f['attributes']||!_0x2c821f['attributes']['skipNestingCheck'])&&(_0x4565a2['every'](_0x32342d=>_0x1048b5['some'](_0x1557a6=>_0x1557a6['containsRange'](_0x32342d,!0x0)))&&_0x2c821f['discard']());if(_0x1048b5['every'](_0xfe96f6=>_0x4565a2['some'](_0x313839=>_0x313839['containsRange'](_0xfe96f6,!0x0)))){const _0x56759a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x469ac1,'accept');return this['forceDefaultExecution'](()=>_0x56759a(_0x128c7a,null,_0x2580d8)),null;}}else{const _0x83a365=_0x2c821f['getFirstRange']();_0x1048b5['some'](_0x2e4d75=>_0x2e4d75['containsRange'](_0x83a365,!0x0))&&_0x2c821f['discard']();if(_0x1048b5['every'](_0x3d3505=>_0x83a365['containsRange'](_0x3d3505,!0x0))){const _0x39e999=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x469ac1,'accept');return this['forceDefaultExecution'](()=>_0x39e999(_0x1048b5,null,_0x2580d8)),null;}}const _0x331341=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x469ac1,'join');let _0x1a1ee9=null;for(const _0x376007 of this['getSuggestions']())if(_0x376007['author']['id']==_0xfa01ee['id']&&_0x376007['isInContent']&&'deletion'==_0x376007['type']&&_0x376007['subType']==_0x469ac1&&zt(_0x376007,_0x2580d8)&&(_0x331341(_0x376007['getRanges'](),_0x1048b5)||_0x331341(_0x1048b5,_0x376007['getRanges']()))){if(_0x1a1ee9){if(_0x376007['commentThread']&&_0x376007['commentThread']['length'])continue;for(const _0x254757 of _0x376007['getRanges']())_0x1a1ee9['isIntersectingWithRange'](_0x254757)||_0x1a1ee9['addRange'](_0x254757);_0x376007['removeMarkers']();}else{_0x1a1ee9=_0x376007;for(const _0x9a2ecb of _0x1048b5)_0x376007['isIntersectingWithRange'](_0x9a2ecb)||_0x376007['addRange'](_0x9a2ecb);}}if(_0x1a1ee9)return _0x1a1ee9;_0x49e18f['clear']();for(const {suggestion:_0x591713,meta:_0x21bf73}of this['_findSuggestions'](_0x1048b5,'deletion'))_0x21bf73['isOwn']&&(this['_mergeNestedSuggestions']||!_0x21bf73['containsRangeInObject']&&!_0x21bf73['isInsideObject'])&&zt(_0x591713,_0x2580d8)&&_0x49e18f['add'](_0x591713);for(const _0x2b73d6 of _0x49e18f){const _0x583215=_0x2b73d6['getRanges']();if(!_0x2580d8||!_0x2580d8['skipNestingCheck']){if(_0x1048b5['every'](_0x54a856=>_0x583215['some'](_0x126891=>_0x126891['containsRange'](_0x54a856,!0x0))))return _0x2b73d6;}(!_0x2b73d6['attributes']||!_0x2b73d6['attributes']['skipNestingCheck'])&&(_0x583215['every'](_0x263f2f=>_0x1048b5['some'](_0x5a2757=>_0x5a2757['containsRange'](_0x263f2f,!0x0)))&&_0x2b73d6['discard']());}const _0x1c6988=_0x8d496c(),_0x1b8046=_0xfa01ee['id'],_0x351609='deletion:'+_0x469ac1,_0x29e51b=this['_setSuggestionData']({'id':_0x1c6988,'type':_0x351609,'createdAt':new Date(),'authorId':_0x1b8046,'attributes':_0x2580d8});for(const _0x3f9365 of _0x1048b5)_0x3f9365['detach'](),_0x3f9365['isCollapsed']||'$graveyard'==_0x3f9365['root']['rootName']||this['_addSuggestionMarker'](_0x351609,_0x1c6988,_0x1b8046,_0x3f9365,u['getMultiRangeId']());return _0x29e51b;}['markAttributeChange'](_0x2c3662,_0x2e70b9,_0x1426eb,_0x622e19,_0x365fc8){if(_0x2c3662['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x24d6dc=this['editor']['plugins']['get']('Users')['me']['id'],_0x2b3f5d=Array['from'](this['_suggestions']['values']())['filter'](_0x1a8972=>'attribute'==_0x1a8972['type']&&_0x1a8972['data']['key']==_0x2e70b9&&_0x1a8972['isIntersectingWithRange'](_0x2c3662));if('default'===this['_trackFormatChanges']){const _0xb0b1cd=this['_findSuggestions'](_0x2c3662,'insertion')['filter'](({meta:_0xd50d6d})=>_0xd50d6d['isOwn']&&!_0xd50d6d['isInsideObject']&&!_0xd50d6d['isNextTo'])['map'](({suggestion:_0x12dd78})=>_0x12dd78);_0x2b3f5d['unshift'](..._0xb0b1cd);}const _0xac3533=new Map([[_0x2c3662,_0x1426eb]]);for(const _0x2a5288 of _0x2b3f5d){const _0x1f287f='attribute'==_0x2a5288['type']?_0x2a5288['data']['oldValue']:void 0x0,_0x52318a=_0x2a5288['getFirstRange'](),_0xce25b7=Array['from'](_0xac3533['keys']())['find'](_0x60bc87=>_0x60bc87['isIntersecting'](_0x52318a));if(!_0xce25b7)continue;const _0x1fc7b5=_0xce25b7['getDifference'](_0x52318a);this['_isBlockAttribute'](_0x2e70b9)&&'insertion'==_0x2a5288['type']&&0x0!=_0x1fc7b5['length']||(_0xac3533['delete'](_0xce25b7),_0x1fc7b5['forEach'](_0x2a8399=>{_0xac3533['set'](_0x2a8399,_0x1426eb);}),'insertion'!=_0x2a5288['type']&&_0x1f287f!=_0x622e19&&_0xac3533['set'](_0xce25b7['getIntersection'](_0x52318a),_0x1f287f));}const _0x3a8779=[];for(const [_0x36a50b,_0x52aaed]of _0xac3533){const _0x1348bb=_0x8d496c(),_0x5378af={'key':_0x2e70b9,'oldValue':_0x52aaed,'newValue':_0x622e19};_0x2e70b9['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':_0x2e70b9});const _0x5a000b=('attribute:'+(_0x2e70b9+'|'+Gt({'newValue':_0x622e19})))['substring'](0x0,0x3c),_0x2ee31b=this['_setSuggestionData']({'id':_0x1348bb,'type':_0x5a000b,'data':_0x5378af,'createdAt':new Date(),'authorId':_0x24d6dc,'attributes':_0x365fc8});_0x3a8779['push'](_0x2ee31b),this['_addSuggestionMarker'](_0x5a000b,_0x1348bb,_0x24d6dc,_0x36a50b);}return _0x3a8779;}['enableDefaultAttributesIntegration'](_0x4268eb){this['enableCommand'](_0x4268eb,(_0x4bec48,..._0x57273e)=>{this['_recordAttributeChanges'](()=>{_0x4bec48(..._0x57273e);});});}['registerBlockAttribute'](_0x3558e0){this['_blockAttributeKeys']['add'](_0x3558e0);}['registerInlineAttribute'](_0x20f97f){this['_inlineAttributeKeys']['add'](_0x20f97f);}['_getAttributeKey'](_0x4d3858){return'attribute'==_0x4d3858['type']?_0x4d3858['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5924df,_0x2fefe3){const _0x5653e4=_0x5924df['getFirstMarker']();this['_model']['change'](_0x47333f=>{_0x47333f['updateMarker'](_0x5653e4,{'range':_0x2fefe3});});}['_addThreadToSuggestion'](_0x3d5769){const _0x3e989a=_0x3d5769['id'],_0x35e32b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3e989a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x35e32b,'threadId':_0x3e989a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x46acd8=this['_commentsRepository']['getCommentThread'](_0x3e989a);_0x46acd8['unbind']('isRemovable'),_0x46acd8['isRemovable']=!0x1,_0x3d5769['commentThread']=_0x46acd8;}['_checkSuggestionCorrectness'](_0x249713,_0x47d8d7,_0x5baf93,_0x5a290a){if(_0x249713['type']!=_0x47d8d7||_0x249713['subType']!=_0x5baf93||_0x249713['creator']['id']!=_0x5a290a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x668daf('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x52ff22,_0x524a61){const _0x11d685=_0x52ff22['getFirstRange']();if(_0x524a61['isEqual'](_0x11d685))_0x52ff22['removeMarkers']();else{if(_0x11d685['containsRange'](_0x524a61)){const _0x362c9b=this['_model']['createPositionAt'](_0x524a61['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x52ff22,this['_model']['createRange'](_0x11d685['start'],_0x362c9b));const _0xc1721=_0x8d496c(),_0x20a01c=_0x52ff22['creator']['id'],_0x270ab8=_0x52ff22['type']+':'+_0x52ff22['subType'];this['_setSuggestionData']({'id':_0xc1721,'type':_0x270ab8,'createdAt':new Date(),'authorId':_0x20a01c,'data':_0x52ff22['data'],'attributes':_0x52ff22['attributes']});const _0x50ac2e=this['_model']['createPositionAt'](_0x524a61['end']['parent'],'after'),_0x258d33=this['_model']['createRange'](_0x50ac2e,_0x11d685['end']);this['_addSuggestionMarker'](_0x270ab8,_0xc1721,_0x20a01c,_0x258d33);}else{if(_0x11d685['containsPosition'](_0x524a61['start'])){const _0x18101d=this['_model']['createPositionAt'](_0x524a61['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x52ff22,this['_model']['createRange'](_0x11d685['start'],_0x18101d));}else{const _0x1a3cfc=this['_model']['createPositionAt'](_0x524a61['end']['parent'],'after');this['_setSuggestionRange'](_0x52ff22,this['_model']['createRange'](_0x1a3cfc,_0x11d685['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x513dff){for(const {suggestion:_0x126dae,meta:_0x1ca107}of this['_findSuggestions'](_0x513dff,'insertion')){if(!_0x1ca107['isOwn'])continue;const _0xa48c1d=_0x126dae['getRanges']();for(const _0x555633 of _0xa48c1d)if(!_0x513dff['getDifference'](_0x555633)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x9a0cc9){const _0x49d42a=this['editor']['plugins']['get']('Users')['getUser'](_0x9a0cc9);if(!_0x49d42a)throw new _0x668daf('track-changes-user-not-found',this);return _0x49d42a;}['_getExternalAuthor'](_0x53c88c){const _0x5e1b22=this['editor']['plugins']['get']('Users'),_0x3b487b=_0x4077fc('external:'+_0x53c88c),_0x74a33b=_0x5e1b22['getUser'](_0x3b487b);return _0x74a33b||_0x5e1b22['addUser']({'id':_0x3b487b,'name':_0x53c88c});}['_createSuggestion'](_0x24b0c3,_0x36e1de,_0x3007ff,_0x3ee2ce,_0x102c5e){const _0x1bc8a6=this['_getAuthorFromId'](_0x3ee2ce),_0x256da4=this['_suggestionFactory']['buildSuggestion'](_0x24b0c3,_0x36e1de,_0x3007ff,_0x1bc8a6,_0x102c5e,_0x673f3e=>{this['_updateSuggestionData'](_0x3007ff,{'attributes':_0x673f3e});const _0x5a65d6=this['getSuggestion'](_0x3007ff);this['_joinWithAdjacentSuggestions'](new Set([_0x5a65d6])),this['_refreshSuggestionsChain'](new Set([_0x5a65d6]));});return this['listenTo'](_0x256da4,'accept',()=>{this['_updateSuggestionData'](_0x3007ff,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x256da4,'discard',()=>{this['_updateSuggestionData'](_0x3007ff,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3007ff,_0x256da4),this['_suggestionState']['set'](_0x256da4,'notReady'),_0x256da4;}['_splitMarkerName'](_0xc9e33c){const _0x4a9526=_0xc9e33c['split'](':');return{'group':_0x4a9526[0x0],'type':_0x4a9526[0x1],'subType':_0x4a9526['length']>=0x5?_0x4a9526[0x2]:null,'id':_0x4a9526['length']<0x5?_0x4a9526[0x2]:_0x4a9526[0x3],'authorId':_0x4a9526['length']<0x5?_0x4a9526[0x3]:_0x4a9526[0x4],'markerCount':0x6==_0x4a9526['length']?_0x4a9526[0x5]:null};}['_breakSuggestionMarker'](_0x2dc9a7,_0x17e758,_0x442e96){const _0x4562dd=_0x2dc9a7['getFirstRange'](),_0x15104f=_0x4562dd['start'],_0x8c112d=_0x4562dd['end'];this['_setSuggestionRange'](_0x2dc9a7,this['_model']['createRange'](_0x15104f,_0x17e758));const _0x2d5fa4=_0x8d496c(),_0x3268e5=_0x2dc9a7['creator']['id'],_0x1fa08b=_0x2dc9a7['type']+(_0x2dc9a7['subType']?':'+_0x2dc9a7['subType']:'');this['_setSuggestionData']({'id':_0x2d5fa4,'type':_0x1fa08b,'createdAt':new Date(),'authorId':_0x3268e5,'originalSuggestionId':_0x2dc9a7['id'],'attributes':_0x2dc9a7['attributes'],'data':_0x2dc9a7['data']});const _0x570021=this['_getAttributeKey'](_0x2dc9a7);('formatBlock'==_0x2dc9a7['type']||_0x570021&&this['_isBlockAttribute'](_0x570021))&&(_0x442e96=this['_model']['createPositionBefore'](_0x442e96['parent'])),this['_addSuggestionMarker'](_0x1fa08b,_0x2d5fa4,_0x3268e5,this['_model']['createRange'](_0x442e96,_0x8c112d));}['_findSuggestions'](_0xf96c50,_0x4d556a=null){const _0x439464=[],_0x598fb2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xf96c50)||(_0xf96c50=[_0xf96c50]);for(const _0x1e5699 of this['getSuggestions']()){if(!_0x1e5699['isInContent'])continue;if(_0x4d556a&&_0x1e5699['type']!=_0x4d556a)continue;let _0x1e62d0=!0x1;for(const _0x1ec327 of _0x1e5699['getRanges']()){for(const _0x165291 of _0xf96c50){const _0x5259f4=_0x165291['start']['isEqual'](_0x1ec327['end'])||_0x165291['end']['isEqual'](_0x1ec327['start']);if(_0x5259f4||_0x165291['getIntersection'](_0x1ec327)){const _0x542a1d=_0x165291['containsRange'](_0x1ec327)&&Ut(this['_model']['schema'],_0x1ec327['start'],_0x165291),_0xee8c06=_0x1ec327['containsRange'](_0x165291)&&Ut(this['_model']['schema'],_0x165291['start'],_0x1ec327);_0x439464['push']({'suggestion':_0x1e5699,'meta':{'isOwn':_0x598fb2==_0x1e5699['author'],'isNextTo':_0x5259f4,'isInsideObject':_0x542a1d,'containsRangeInObject':_0xee8c06}}),_0x1e62d0=!0x0;break;}}if(_0x1e62d0)break;}}return _0x439464;}['_addSuggestionMarker'](_0x467536,_0x113d0f,_0x27c357,_0x38f425,_0x46cdf6){this['_model']['change'](_0x46aad8=>{let _0x4810ac='suggestion:'+_0x467536+':'+_0x113d0f+':'+_0x27c357;_0x46cdf6&&(_0x4810ac=_0x4810ac+':'+_0x46cdf6),_0x46aad8['addMarker'](_0x4810ac,{'range':_0x38f425,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x585163){const _0x27611e=_0x585163['previous'],_0x33b77f=_0x585163['next'];_0x585163['previous']=null,_0x585163['next']=null,null!=_0x27611e&&_0x27611e['next']==_0x585163&&(_0x27611e['next']=_0x33b77f),null!=_0x33b77f&&_0x33b77f['previous']==_0x585163&&(_0x33b77f['previous']=_0x27611e),'ready'==this['_suggestionState']['get'](_0x585163)&&(this['_suggestionState']['set'](_0x585163,'removed'),this['fire']('suggestionUnloaded',_0x585163,_0x27611e,_0x33b77f));}['_setSuggestionData'](_0x5451aa){const _0x5386c1=_0x5451aa['id'],_0x492434=this['addSuggestionData'](_0x5451aa);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3251ad=this['editor']['plugins']['get']('PendingActions'),_0xafd910=_0x492434['hasComments'],_0x498fc0=_0x492434['subType']?_0x492434['type']+':'+_0x492434['subType']:_0x492434['type'],_0x3efc1b=this['editor']['locale'],_0xb90c71=_0x3251ad['add'](o(_0x3efc1b,'PENDING_ACTION_SUGGESTION')),_0x2fff19={'id':_0x5386c1,'type':_0x498fc0,'hasComments':_0xafd910,'data':_0x5451aa['data']||null,'originalSuggestionId':_0x5451aa['originalSuggestionId']||null,'attributes':_0x492434['attributes']};this['_adapter']['addSuggestion'](_0x2fff19)['then'](_0xdcbac6=>{_0x492434['_saved']=!0x0,_0x3251ad['remove'](_0xb90c71),_0xdcbac6&&_0xdcbac6['createdAt']&&(this['_suggestions']['get'](_0x5386c1)['createdAt']=_0xdcbac6['createdAt']);})['catch'](_0x14c66c=>{throw _0x578a33('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x492434['discard']();}),_0x492434['stopListening'](),this['_suggestions']['delete'](_0x492434['id']),this['_suggestionState']['delete'](_0x492434),_0x14c66c;});}return _0x492434;}['_isBlockAttribute'](_0x25f718){return this['_blockAttributeKeys']['has'](_0x25f718);}['_updateSuggestionData'](_0x216924,_0x49a536){const _0x49dcda=this['editor']['plugins']['get']('PendingActions'),_0x4a7094=this['getSuggestion'](_0x216924);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4a7094['_saved']){const _0x525e15=_0x49dcda['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x216924,_0x49a536)['then'](()=>{_0x49dcda['remove'](_0x525e15);});}else _0x4a7094['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x216924,_0x49a536);});}}['_getSuggestionData'](_0x4ee257){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x668daf('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4ee257);}['_handleNewSuggestionMarker'](_0x5e6feb){const {id:_0x96bb78,type:_0x132e86,subType:_0x4f96d5,authorId:_0x57d5f8}=this['_splitMarkerName'](_0x5e6feb),_0x22980b=this['_suggestions']['get'](_0x96bb78)||this['_createSuggestion'](_0x132e86,_0x4f96d5,_0x96bb78,_0x57d5f8,{});switch(this['_checkSuggestionCorrectness'](_0x22980b,_0x132e86,_0x4f96d5,_0x57d5f8),this['_suggestionState']['get'](_0x22980b)){case'notReady':this['_getSuggestionData'](_0x96bb78)['then'](_0x4e6c89=>{let _0x36d578=Promise['resolve']();_0x4e6c89['hasComments']&&(_0x36d578=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x96bb78})),_0x36d578['then'](()=>{this['addSuggestionData'](_0x4e6c89)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x22980b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x96bb78,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x22980b,'ready'),this['fire']('suggestionLoaded',_0x22980b);break;case'ready':this['fire']('suggestionChanged',_0x22980b);}return _0x22980b['addMarkerName'](_0x5e6feb),_0x22980b;}['_refreshSuggestionsChain'](_0x525463){const _0x2011b6=Array['from'](_0x525463),_0x55390d=_0x2011b6['filter'](_0x4f7270=>'attribute'==_0x4f7270['type']);this['_refreshAttributeSuggestionsChain'](_0x55390d);const _0x4f77b9=_0x2011b6['filter'](_0x19aa7f=>!_0x19aa7f['isMultiRange']&&'attribute'!=_0x19aa7f['type']),_0x145971=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d2b56=>!_0x1d2b56['isMultiRange']&&'attribute'!=_0x1d2b56['type']),_0x4c5288=_0x145971['filter'](_0x8d25df=>!_0x525463['has'](_0x8d25df)),_0xa54f41=new Map(_0x145971['map'](_0x301f39=>[_0x301f39,this['_suggestionFactory']['getSuggestionCallback'](_0x301f39['type'],_0x301f39['subType'],'chain')])),_0x5ba19a=new Map(_0x145971['map'](_0x1cf897=>[_0x1cf897,_0x1cf897['getFirstRange']()])),_0x4204a=new Set(),_0x3879bf=new Set();for(let _0xa0d8fc=0x0;_0xa0d8fc<_0x4f77b9['length'];_0xa0d8fc++)_0x1ce221(_0x4f77b9[_0xa0d8fc],_0x4f77b9,_0xa0d8fc+0x1);for(let _0x33470a=0x0;_0x33470a<_0x4f77b9['length'];_0x33470a++)_0x1ce221(_0x4f77b9[_0x33470a],_0x4c5288,0x0);const _0x2d2b29=new Set();for(let _0x296786=0x0;_0x296786<_0x4f77b9['length'];_0x296786++){const _0x302927=_0x4f77b9[_0x296786];!_0x3879bf['has'](_0x302927)&&_0x302927['previous']&&(_0x2d2b29['add'](_0x302927['previous']),_0x302927['previous']['next']===_0x302927&&(_0x302927['previous']['next']=null),_0x302927['previous']=null),!_0x4204a['has'](_0x302927)&&_0x302927['next']&&(_0x2d2b29['add'](_0x302927['next']),_0x302927['next']['previous']===_0x302927&&(_0x302927['next']['previous']=null),_0x302927['next']=null);}function _0x1ce221(_0x1b27cd,_0x59b85d,_0x41acc3){for(let _0x20d06c=_0x41acc3;_0x20d06c<_0x59b85d['length'];_0x20d06c++){const _0x4e756=_0x1c5f57(_0x1b27cd,_0x59b85d[_0x20d06c]);_0x4e756&&(_0x4e756[0x0]['next']=_0x4e756[0x1],_0x4e756[0x1]['previous']=_0x4e756[0x0],_0x4204a['add'](_0x4e756[0x0]),_0x3879bf['add'](_0x4e756[0x1]));}}function _0x1c5f57(_0xaad9a,_0x27cd28){if(_0xaad9a['author']['id']!==_0x27cd28['author']['id'])return null;const _0x1b15d8=_0xa54f41['get'](_0xaad9a)(_0xaad9a,_0x27cd28,_0x5ba19a['get'](_0xaad9a),_0x5ba19a['get'](_0x27cd28));if(!_0x1b15d8)return null;return _0xa54f41['get'](_0x27cd28)(_0xaad9a,_0x27cd28,_0x5ba19a['get'](_0xaad9a),_0x5ba19a['get'](_0x27cd28))?_0x1b15d8[0x1]['commentThread']&&_0x1b15d8[0x1]['commentThread']['length']?null:_0x1b15d8:null;}_0x2d2b29['size']&&this['_refreshSuggestionsChain'](_0x2d2b29);}['_refreshAttributeSuggestionsChain'](_0x7e12ac){if(0x0==_0x7e12ac['length'])return;const _0x55512c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x112031=>'attribute'==_0x112031['type']&&_0x112031['_isDataLoaded']),_0x431fa2=[],_0x25b5da=new Map();for(const _0x2e2366 of _0x55512c){const _0x2fea4e=_0x4077fc(_0x2e2366['attributes']);_0x25b5da['has'](_0x2fea4e)||(_0x25b5da['set'](_0x2fea4e,_0x431fa2['length']),_0x431fa2['push']([]));const _0x8545a4=_0x25b5da['get'](_0x2fea4e);_0x431fa2[_0x8545a4]['push'](_0x2e2366);}!(function(){_0x431fa2['sort']((_0x2b6acd,_0x102e42)=>{const _0x170c16=_0x2b6acd[0x0]['createdAt'],_0xb5d588=_0x102e42[0x0]['createdAt'];return _0x170c16==_0xb5d588?_0x2b6acd[0x0]['attributes']['groupId']<_0x102e42[0x0]['attributes']['groupId']?-0x1:0x1:_0x170c16<_0xb5d588?-0x1:0x1;});for(const _0x199d4a of _0x431fa2)_0x199d4a['sort']((_0x506d6a,_0x527864)=>_0x506d6a['id']<_0x527864['id']?-0x1:0x1);}());for(let _0x475bf7=0x0;_0x475bf7<_0x431fa2['length'];_0x475bf7++){if(0x0==_0x431fa2[_0x475bf7]['length'])continue;const _0x23eddf=[];for(let _0xf3eb33=_0x475bf7+0x1;_0xf3eb33<_0x431fa2['length'];_0xf3eb33++)0x0!=_0x431fa2[_0xf3eb33]['length']&&_0x3d4b6b(_0x431fa2[_0x475bf7],_0x431fa2[_0xf3eb33])&&_0x23eddf['push'](_0xf3eb33);for(const _0x4593b9 of _0x23eddf)_0x431fa2[_0x475bf7]=_0x431fa2[_0x475bf7]['concat'](_0x431fa2[_0x4593b9]),_0x431fa2[_0x4593b9]=[];}for(const _0x3f9699 of _0x431fa2)for(let _0x40fea8=0x0;_0x40fea8<_0x3f9699['length'];_0x40fea8++){const _0x400d1b=_0x3f9699[_0x40fea8+0x1]||null;_0x3f9699[_0x40fea8]['next']!==_0x400d1b&&(_0x3f9699[_0x40fea8]['next']=_0x400d1b);}for(const _0x2f2a0e of _0x431fa2)for(let _0x1afe0f=0x0;_0x1afe0f<_0x2f2a0e['length'];_0x1afe0f++){const _0x367004=_0x2f2a0e[_0x1afe0f-0x1]||null;_0x2f2a0e[_0x1afe0f]['previous']!==_0x367004&&(_0x2f2a0e[_0x1afe0f]['previous']=_0x367004);}function _0x3d4b6b(_0x4fb4ae,_0xa6fdbf){if(_0x4fb4ae[0x0]['attributes']['groupId']!==_0xa6fdbf[0x0]['attributes']['groupId']&&_0x4fb4ae[0x0]['author']!==_0xa6fdbf[0x0]['author'])return!0x1;if(!function(_0x21b257,_0x3cc7ba){if(!_0x21b257['hasComments']&&!_0x3cc7ba['hasComments'])return!0x0;if(_0x21b257['hasComments']&&_0x3cc7ba['hasComments'])return!0x1;if(_0x21b257['hasComments']&&_0x3cc7ba['createdAt']<_0x21b257['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3cc7ba['hasComments']&&_0x21b257['createdAt']<_0x3cc7ba['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4fb4ae[0x0],_0xa6fdbf[0x0]))return!0x1;const _0x2678e9=xt(_0x4fb4ae[0x0]['attributes'],'groupId'),_0x3c88a2=xt(_0xa6fdbf[0x0]['attributes'],'groupId');if(!_0x3fb1fe(_0x2678e9,_0x3c88a2))return!0x1;return!!_0x4fb4ae['every'](_0x25b1c2=>_0xa6fdbf['some'](_0x464d76=>_0x25b1c2['getFirstRange']()['isEqual'](_0x464d76['getFirstRange']())))&&_0xa6fdbf['every'](_0x3e5c60=>_0x4fb4ae['some'](_0x10286d=>_0x3e5c60['getFirstRange']()['isEqual'](_0x10286d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x25045c){const _0x1571fb=Array['from'](_0x25045c),_0x1349be=this['getSuggestions']({'skipNotAttached':!0x0}),_0x319d7e=_0x1349be['filter'](_0x38a2b5=>!_0x25045c['has'](_0x38a2b5)),_0x516e0d=new Map(_0x1571fb['map'](_0x2f896d=>[_0x2f896d,this['_suggestionFactory']['getSuggestionCallback'](_0x2f896d['type'],_0x2f896d['subType'],'join')])),_0x2eff9a=new Map(_0x1349be['map'](_0x4b6b54=>[_0x4b6b54,_0x4b6b54['getRanges']()]));for(let _0x2cf28d=0x0;_0x2cf28d<_0x1571fb['length'];_0x2cf28d++){if(_0x466561(this,_0x1571fb[_0x2cf28d],_0x1571fb,_0x2cf28d+0x1))return!0x0;}for(let _0x11545e=0x0;_0x11545e<_0x1571fb['length'];_0x11545e++){if(_0x466561(this,_0x1571fb[_0x11545e],_0x319d7e,0x0))return!0x0;}return!0x1;function _0x466561(_0x20324f,_0x3f9be3,_0x40dcd1,_0x423cb7){for(let _0x352851=_0x423cb7;_0x352851<_0x40dcd1['length'];_0x352851++){const _0x3c72f3=_0x40dcd1[_0x352851];if(_0x3c72f3['type']!==_0x3f9be3['type']||_0x3c72f3['author']['id']!==_0x3f9be3['author']['id']||_0x3c72f3['subType']!==_0x3f9be3['subType'])continue;if(!qt(_0x3f9be3,_0x3c72f3))continue;if('attribute'==_0x3f9be3['type']&&_0x3f9be3['data']['oldValue']!=_0x3c72f3['data']['oldValue'])continue;if('attribute'==_0x3f9be3['type']&&_0x20324f['_isBlockAttribute'](_0x3f9be3['data']['key']))continue;if('formatBlock'==_0x3f9be3['type']){const _0x4b49c8=_0x20324f['editor']['model'],_0xce0880=_0x3f9be3['getContainedElement']();if(_0xce0880&&(_0x4b49c8['schema']['isObject'](_0xce0880)||_0x4b49c8['schema']['isLimit'](_0xce0880)))continue;}const _0x4f8333=_0x516e0d['get'](_0x3f9be3),_0x93f046=_0x2eff9a['get'](_0x3f9be3),_0x167728=_0x2eff9a['get'](_0x3c72f3),_0x5c3022=_0x3f9be3['commentThread']&&_0x3f9be3['commentThread']['length'],_0x553303=_0x3c72f3['commentThread']&&_0x3c72f3['commentThread']['length'];if(!_0x5c3022&&_0x4f8333(_0x167728,_0x93f046))return _0x20324f['_joinSuggestions'](_0x3c72f3,_0x3f9be3),_0x2eff9a['delete'](_0x3f9be3),!0x0;if(!_0x553303&&_0x4f8333(_0x93f046,_0x167728))return _0x20324f['_joinSuggestions'](_0x3f9be3,_0x3c72f3),_0x2eff9a['delete'](_0x3c72f3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2f642d,_0x1f9d37){if(_0x2f642d['isMultiRange']){for(const _0x1fc9eb of _0x1f9d37['getRanges']())_0x2f642d['addRange'](_0x1fc9eb);}else{const _0x9ff882=_0x1f9d37['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2f642d,this['_model']['createRange'](_0x2f642d['getFirstRange']()['start'],_0x9ff882));}_0x1f9d37['removeMarkers']();}['_getMarkerAnnouncementText'](_0x53a507,_0x5d6b44,_0x3e3ffb){const _0x68e5cc=_0x53a507['startsWith']('format')||_0x53a507['startsWith']('attribute')?'FORMATTING':_0x53a507['toUpperCase']();return o(this['editor']['locale'],_0x5d6b44+'_'+_0x68e5cc+'_SUGGESTION_ANNOUNCEMENT',_0x3e3ffb);}['_initAriaMarkerChangeAnnouncements'](){const _0x4fa756=this['editor'];if(!_0x4fa756['ui'])return;const {ariaLiveAnnouncer:_0x4c962c}=_0x4fa756['ui'];_0x4f1123(this['_model'],({left:_0x188bff,entered:_0x4ed90d})=>{for(const _0x1c1124 of _0x188bff){const {group:_0x5e26d8,type:_0x5a6869}=this['_splitMarkerName'](_0x1c1124['name']);if('suggestion'===_0x5e26d8){_0x4c962c['announce'](this['_getMarkerAnnouncementText'](_0x5a6869,'LEAVE'));break;}}for(const _0x96fda of _0x4ed90d){const {group:_0x5b7ffa,type:_0x23fdaf}=this['_splitMarkerName'](_0x96fda['name']);if('suggestion'===_0x5b7ffa){_0x4c962c['announce'](this['_getMarkerAnnouncementText'](_0x23fdaf,'ENTER',_0x112bfc(_0x115fcd)));break;}}});}['_processAttributeChanges'](_0x2aad6f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2ae2a8=this['editor'],_0x32b426=_0x2ae2a8['model']['document']['differ']['getChanges']();if(0x0==_0x32b426['length'])return!0x1;const _0xc5ee0c=[],_0x174331=_0x32b426['filter'](_0x123439=>'attribute'==_0x123439['type']),_0x51d9d4=_0x32b426['filter'](_0x292824=>'insert'==_0x292824['type']&&'$text'!=_0x292824['name']),_0x35ea8d=_0x32b426['filter'](_0x32b999=>'remove'==_0x32b999['type']&&'$text'!=_0x32b999['name']);for(const _0xfdc358 of _0x174331)_0xc5ee0c['push']({'key':_0xfdc358['attributeKey'],'newValue':_0xfdc358['attributeNewValue'],'oldValue':_0xfdc358['attributeOldValue'],'range':Lt(_0xfdc358['range'],_0x2ae2a8['model'])});for(const _0x5eb028 of _0x51d9d4){const _0x42035b=_0x35ea8d['find'](_0xbf559=>_0xbf559['position']['isEqual'](_0x5eb028['position']));_0x42035b&&_0xc5ee0c['push']({'key':m,'newValue':_0x5eb028['name'],'oldValue':_0x42035b['name'],'range':_0x2ae2a8['model']['createRangeOn'](_0x5eb028['position']['nodeAfter'])});}return 0x0!=_0xc5ee0c['length']&&this['_reduceExistingSuggestions'](_0x2aad6f,_0xc5ee0c);}['_processAttributeSuggestions'](_0x3d216a){let _0x3fc417=!0x1;const _0x23c2e5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2fd22c=>_0x2fd22c['data']['newRange']&&_0x2fd22c['name']['startsWith']('suggestion:attribute:'));for(const _0x8c1409 of _0x23c2e5){const {subType:_0x3d33b0,id:_0x1c6bdf}=this['_splitMarkerName'](_0x8c1409['name']),_0x19ecd9=_0x3d33b0['split']('|')[0x0];for(const _0x402cf0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x402cf0['id']!=_0x1c6bdf&&'attribute'==_0x402cf0['type']&&_0x402cf0['data']&&_0x402cf0['data']['key']==_0x19ecd9&&_0x402cf0['getFirstRange']()['isIntersecting'](_0x8c1409['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x402cf0,_0x8c1409['data']['newRange'],_0x3d216a),_0x3fc417=!0x0);}return _0x3fc417;}['_recordAttributeChanges'](_0x3872cb){this['_recordAttributeSuggestions']=!0x0,_0x3872cb();}['_isRegisteredAttribute'](_0xa3409d){const _0x14cae2=this['_isBlockAttribute'](_0xa3409d),_0xe877aa=this['_inlineAttributeKeys']['has'](_0xa3409d);return _0x14cae2||_0xe877aa;}['_reduceExistingSuggestions'](_0x279474,_0x5acab7){if(0x0==_0x5acab7['length'])return!0x1;let _0x12ab84=!0x1;for(const _0x5eb11f of _0x5acab7){const _0x1629c6=this['_findSuggestions'](_0x5eb11f['range'],'attribute')['filter'](_0x179600=>!_0x179600['meta']['isNextTo'])['map'](_0x27e76b=>_0x27e76b['suggestion']),_0x48fc83=_0x4077fc({'newValue':_0x5eb11f['newValue']});_0x1629c6['filter'](_0x118d6a=>{const [_0x4c2115,_0x504eed]=_0x118d6a['subType']['split']('|');return _0x4c2115==_0x5eb11f['key']&&_0x504eed!=_0x48fc83;})['forEach'](_0x7185e7=>{this['_reduceSuggestionAttributeRange'](_0x7185e7,_0x5eb11f['range'],_0x279474),_0x12ab84=!0x0;});}return _0x12ab84;}['_reduceSuggestionAttributeRange'](_0x29b2c9,_0x4f8397,_0x3425f4){const _0x2facc8=_0x29b2c9['getFirstRange']()['getDifference'](_0x4f8397);0x0!==_0x2facc8['length']?0x1!==_0x2facc8['length']?this['_breakSuggestionMarker'](_0x29b2c9,_0x4f8397['start'],_0x4f8397['end']):this['_setSuggestionRange'](_0x29b2c9,_0x2facc8[0x0]):_0x3425f4['removeMarker'](_0x29b2c9['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2d6260){this['_editor']=_0x2d6260,this['_model']=_0x2d6260['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4a4b5d,_0x47af6a,_0x73143b,_0x30c46b,_0x303351,_0x21edb3){return new u(this['_model'],{'type':_0x4a4b5d,'subType':_0x47af6a,'id':_0x73143b,'author':_0x30c46b,'creator':_0x30c46b,'attributes':_0x303351,'onAttributesChange':_0x21edb3,'onAccept':(..._0x4ca8a3)=>this['getSuggestionCallback'](_0x4a4b5d,_0x47af6a,'accept')(..._0x4ca8a3),'onDiscard':(..._0x54ddef)=>this['getSuggestionCallback'](_0x4a4b5d,_0x47af6a,'discard')(..._0x54ddef)});}['registerCustomCallback'](_0x5f2a7d,_0x12ca1b,_0x95e369,_0x29abd6){const _0x1fdc62=_0x5f2a7d+':'+_0x12ca1b+':'+_0x95e369;this['_customCallbacks']['set'](_0x1fdc62,_0x29abd6);}['getSuggestionCallback'](_0x280d3a,_0x6126e,_0x29deb7){const _0x4cc9cd=_0x280d3a+':'+_0x6126e+':'+_0x29deb7;return this['_customCallbacks']['get'](_0x4cc9cd)||this['_defaultCallbacks']['get'](_0x280d3a+':'+_0x29deb7);}['_registerDefaultCallbacks'](){const _0x437437=()=>!0x1,_0x31fd0d=_0x4c0700=>{_0x4c0700['sort']((_0x1f5d5c,_0x2cdf33)=>_0x1f5d5c['start']['isBefore'](_0x2cdf33['start'])?0x1:-0x1),this['_model']['change'](_0x51baa2=>{for(const _0x5409ab of _0x4c0700){let _0x51a07d;_0x51a07d=_0x5409ab['end']['isAtEnd']&&_0x5409ab['end']['parent']==_0x5409ab['start']['nodeAfter']?_0x51baa2['createSelection'](_0x5409ab['start']['nodeAfter'],'on'):_0x51baa2['createSelection'](_0x5409ab),this['_model']['deleteContent'](_0x51a07d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x49e77a=(_0x1ce2ef,_0x2be8bf)=>{_0x2be8bf&&this['_model']['change'](_0x332387=>{const {commandName:_0xa188b0,commandParams:_0xff8113=[]}=_0x2be8bf,_0x1212a0=_0x1ce2ef['map'](_0x541ed4=>(Vt(_0x541ed4)&&(_0x541ed4=this['_model']['createRange'](_0x541ed4['end'])),_0x541ed4))['filter'](_0x50cfc0=>'$graveyard'!==_0x50cfc0['root']['rootName']);if(_0x1212a0['length']<0x1)return;const _0x5723fb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x155f6a=>_0x3253cc['fromRange'](_0x155f6a));_0x332387['setSelection'](_0x1212a0);for(const _0x46b56f of this['_editor']['commands']['commands']())_0x46b56f['refresh']();_0xff8113['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xa188b0,..._0xff8113);const _0x11c3ea=_0x5723fb['filter'](_0x52ae8c=>'$graveyard'!=_0x52ae8c['root']['rootName']);_0x11c3ea['length']>0x0&&_0x332387['setSelection'](_0x11c3ea);for(const _0x19be80 of _0x5723fb)_0x19be80['detach']();});},_0x2d8c47=(_0x54a58e,_0x3f8a02)=>0x1==_0x54a58e['length']&&0x1==_0x3f8a02['length']&&_0x54a58e[0x0]['end']['isEqual'](_0x3f8a02[0x0]['start']),_0x474874=(_0x44ea10,_0x8c14c8,_0x123794,_0x50aaed)=>Ht(_0x44ea10,_0x8c14c8,_0x123794,_0x50aaed)?[_0x44ea10,_0x8c14c8]:Ht(_0x8c14c8,_0x44ea10,_0x50aaed,_0x123794)?[_0x8c14c8,_0x44ea10]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x437437),this['_defaultCallbacks']['set']('insertion:discard',_0x31fd0d),this['_defaultCallbacks']['set']('insertion:join',_0x2d8c47),this['_defaultCallbacks']['set']('insertion:chain',_0x474874),this['_defaultCallbacks']['set']('deletion:accept',_0x31fd0d),this['_defaultCallbacks']['set']('deletion:discard',_0x437437),this['_defaultCallbacks']['set']('deletion:join',_0x2d8c47),this['_defaultCallbacks']['set']('deletion:chain',_0x474874),this['_defaultCallbacks']['set']('formatInline:accept',_0x49e77a),this['_defaultCallbacks']['set']('formatInline:discard',_0x437437),this['_defaultCallbacks']['set']('formatInline:join',_0x2d8c47),this['_defaultCallbacks']['set']('formatInline:chain',_0x437437),this['_defaultCallbacks']['set']('formatBlock:accept',_0x49e77a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x437437),this['_defaultCallbacks']['set']('formatBlock:join',_0x2d8c47),this['_defaultCallbacks']['set']('formatBlock:chain',_0x437437),this['_defaultCallbacks']['set']('attribute:accept',_0x437437),this['_defaultCallbacks']['set']('attribute:discard',(_0x340e94,_0x2b60b9)=>{if(!_0x2b60b9)return;const _0x1bd91b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x375936=>{if(_0x2b60b9['key']==m)for(const _0x5106f2 of _0x340e94){const _0x319613=_0x5106f2['start']['nodeAfter'],_0x172fc1=_0x2b60b9['oldValue'];_0x375936['rename'](_0x319613,_0x172fc1);}else{if(_0x1bd91b['_isBlockAttribute'](_0x2b60b9['key'])){for(const _0x27d0bc of _0x340e94)void 0x0!==_0x2b60b9['oldValue']?_0x375936['setAttribute'](_0x2b60b9['key'],_0x2b60b9['oldValue'],_0x27d0bc['start']['nodeAfter']):_0x375936['removeAttribute'](_0x2b60b9['key'],_0x27d0bc['start']['nodeAfter']);}else{for(const _0x439681 of _0x340e94)_0x2b60b9['oldValue']?_0x375936['setAttribute'](_0x2b60b9['key'],_0x2b60b9['oldValue'],_0x439681):_0x375936['removeAttribute'](_0x2b60b9['key'],_0x439681);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2d8c47);}}function Ut(_0x4f5c54,_0x4d1631,_0x27dc7d){for(const _0x1657e2 of _0x4d1631['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1657e2['root']==_0x1657e2)return!0x1;if(!_0x27dc7d['containsItem'](_0x1657e2))return!0x1;if(_0x4f5c54['isObject'](_0x1657e2)||_0x4f5c54['isLimit'](_0x1657e2))return!0x0;}return!0x1;}function Vt(_0x1e2298){return _0x1e2298['end']['parent']==_0x1e2298['start']['nodeAfter']&&_0x1e2298['end']['isAtStart'];}function Pt(_0x446658,_0x1b5a2c,_0x5b3189,_0x4b66c1){const _0x3dc053=_0x47e01a=>!_0x47e01a['item']['is']('$textProxy')&&!_0x4b66c1['isObject'](_0x47e01a['item']),_0x174af2=_0x446658['start']['getLastMatchingPosition'](_0x3dc053),_0x10c45e=_0x446658['end']['getLastMatchingPosition'](_0x3dc053,{'direction':'backward'});return(!_0x446658['start']['isEqual'](_0x174af2)||!_0x446658['end']['isEqual'](_0x10c45e))&&(_0x174af2['isBefore'](_0x10c45e)?_0x5b3189['updateMarker'](_0x1b5a2c,{'range':_0x5b3189['createRange'](_0x174af2,_0x10c45e)}):_0x5b3189['removeMarker'](_0x1b5a2c),!0x0);}function Gt(_0x1a4a37){return _0x4077fc(_0x1a4a37);}function Ft(_0x44a89e){const _0x5c84f1=_0x44a89e['start']['nodeAfter'];return _0x5c84f1&&_0x5c84f1['is']('element');}function Lt(_0x401fda,_0x322e79){return null==_0x401fda['end']['nodeBefore']&&_0x401fda['end']['parent']==_0x401fda['start']['nodeAfter']?Jt(_0x401fda['start']['nodeAfter'],_0x322e79):_0x401fda;}function Jt(_0x13ecca,_0x3b2299){const _0x24fc8=_0x3b2299['schema']['isObject'](_0x13ecca)||_0x3b2299['schema']['isSelectable'](_0x13ecca);return _0x3b2299['createRange'](_0x3b2299['createPositionAt'](_0x13ecca,'before'),_0x24fc8?_0x3b2299['createPositionAfter'](_0x13ecca):_0x3b2299['createPositionAt'](_0x13ecca,'end'));}function Ht(_0x143236,_0x3aa7e3,_0x12c38a,_0x443165){return!!qt(_0x143236,_0x3aa7e3)&&_0x12c38a['end']['isEqual'](_0x443165['start']);}function qt(_0x53c3a5,_0x3f657a){if(!_0x53c3a5['_isDataLoaded']||!_0x3f657a['_isDataLoaded'])return!0x1;const _0x31311f=new Set(Object['keys'](_0x53c3a5['attributes'])),_0x14d616=new Set(Object['keys'](_0x3f657a['attributes']));if(_0x31311f['delete']('groupId'),_0x14d616['delete']('groupId'),0x0==_0x31311f['size']&&0x0==_0x14d616['size'])return!0x0;if(_0x31311f['size']!=_0x14d616['size'])return!0x1;const _0x374880={..._0x53c3a5['attributes']},_0x4304d9={..._0x3f657a['attributes']};return delete _0x374880['groupId'],delete _0x4304d9['groupId'],JSON['stringify'](_0x374880)==JSON['stringify'](_0x4304d9);}function zt(_0x25e924,_0xbcc587){const _0x3ceba4=Kt(_0x25e924['attributes']),_0x12a8ed=Kt(_0xbcc587);if(!_0x25e924['_isDataLoaded'])return!0x1;for(const _0x37c644 of Object['keys'](_0x12a8ed))if(!_0x3fb1fe(_0x3ceba4[_0x37c644],_0x12a8ed[_0x37c644]))return!0x1;return!0x0;}function Kt(_0x3d7189){const _0x427305=Object['assign']({},_0x3d7189);return delete _0x427305['skipNestingCheck'],delete _0x427305['tablePasteChainId'],_0x427305;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0xec2ce3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xba2929,_0x5d1cc9,_0x3d3532,_0x3816f8){super(),this['model']=_0x5d1cc9,this['view']=_0x3d3532,this['commentThreadController']=_0x3816f8,this['_editor']=_0xba2929,this['_acceptCommand']=_0xba2929['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xba2929['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4dce03,_0x555fbc)=>_0x4dce03||_0x555fbc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5cc37d=>_0x5cc37d&&this['_editor']['model']['canEditAt'](_0x5d1cc9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3a6c4e=>_0x3a6c4e&&this['_editor']['model']['canEditAt'](_0x5d1cc9['getRanges']())),this['_pendingAction']=null,_0x3d3532['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3d3532,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3d3532,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3d3532,'change:isDirty',()=>{_0x3d3532['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 _0xe4a1e5=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xe4a1e5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x53e51f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x47eda1,_0x51eafb,_0x2d9d80,_0x41a975){super(_0x47eda1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5341e2(_0x47eda1,o(_0x47eda1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x51eafb['authoredAt']),this['bind']('authoredAt')['to'](_0x51eafb),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',_0x51eafb,'authoredAt',this,'descriptionParts',(_0x151d1e,_0x51584b,_0xacbb7)=>{const _0x4a643a=_0xacbb7['map'](_0x5e0ea0=>ns(_0x5e0ea0['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x151d1e-0x1,_0x51eafb['author']['name'],_0x51584b?_0x41a975['formatDateTime'](_0x51584b):'',new DOMParser()['parseFromString'](_0x4a643a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x403638(),this['focusTracker']=new _0x2a3bcd(),this['keystrokes']=new _0x15e716(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1fe31b=>_0x1fe31b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x51eafb,this['_localUser']=_0x2d9d80,this['_config']=_0x41a975,_0x41a975['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x39ee2e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3e35d5}=this['_config'];this['commentsListView']=new _0x3e35d5(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',_0x53ae1e=>_0x53ae1e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4f071a,_0x128d88)=>_0x4f071a||!!_0x128d88);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2027de}=this['_config'],_0x14d982=new _0x2027de(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5dddbd=_0x14d982['commentInputView'];return _0x14d982['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5dddbd,'value',(_0x4f57e7,_0x309c85,_0x5dc908)=>!!_0x5dc908||_0x4f57e7&&!_0x309c85),_0x5dddbd['on']('submit',(_0x341d22,_0x3668a6)=>{this['fire']('addComment',_0x3668a6),_0x5dddbd['editor']['setData']('');}),_0x5dddbd['on']('cancel',()=>this['focus']()),_0x5dddbd['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x14d982;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x48aa46,_0x3672ae,_0x530047,_0x2fe42b){super(_0x48aa46,_0x3672ae,_0x530047,_0x2fe42b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x7df263=>_0x7df263&&_0x7df263[0x0]?_0x7df263[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x10c25b,_0x574e82)=>{let _0x2935f0='';for(const _0x5ea950 of _0x10c25b)_0x2935f0+='<p>'+ns(_0x5ea950['content'],_0x5ea950['color'])+'</p>';return _0x574e82?_0x2935f0:ti(_0x2935f0,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2fe42b['SuggestionView'](_0x48aa46,_0x3672ae,{'formatDateTime':_0x2fe42b['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 _0x209d2e=this['bindTemplate'],_0x1bbb76=[this['suggestionView']];return this['commentsListView']&&_0x1bbb76['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1bbb76['push'](this['commentThreadInputView']),_0x1bbb76['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x209d2e['if']('isActive','ck-suggestion-wrapper--active'),_0x209d2e['to']('type',_0x5a672e=>'ck-suggestion-'+_0x5a672e),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':_0x209d2e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1bbb76};}['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 _0x53e51f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x440e82,_0xace43a,_0x2a871f){super(_0x440e82),this['_model']=_0xace43a,this['_config']=_0x2a871f,this['set']('description',''),this['bind']('authoredAt')['to'](_0xace43a),this['acceptButton']=this['_createButton'](o(_0x440e82,'Accept\x20suggestion'),_0xd44b0e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x440e82,'Discard\x20suggestion'),_0xd44b0e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xb0cb75(_0x440e82,_0xace43a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x403638([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2a3bcd(),this['keystrokes']=new _0x15e716(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x45f64a=>_0x45f64a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x546eae=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x546eae['innerHTML']=this['description'],this['on']('change:description',(_0x4b93ff,_0x1eeddd,_0x86722a)=>{_0x546eae['innerHTML']=_0x86722a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4ea135=this['bindTemplate'],_0x140080=[{'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':_0x4ea135['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4ea135['to']('authoredAt',_0x3fa171=>this['_config']['formatDateTime'](_0x3fa171))}]}]},{'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']&&_0x140080['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':_0x140080}]};}['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'](_0x2fab6e,_0x2185b8,_0x4259c3,_0x4aae2d,_0x2e719e){const _0x5a408e=new _0x128a00(this['locale']);return _0x5a408e['set']({'label':_0x2fab6e,'icon':_0x2185b8,'tooltip':!0x0,'tooltipPosition':_0x2e719e}),_0x5a408e['extendTemplate']({'attributes':{'class':_0x4259c3}}),_0x5a408e['on']('execute',()=>{this['fire'](_0x4aae2d,this['_model']['id']);}),_0x5a408e;}['_setupKeyboardNavigation'](){const _0x42ac99=this['element'];this['keystrokes']['listenTo'](_0x42ac99);for(const _0x1ba403 of this['focusables'])this['focusTracker']['add'](_0x1ba403['element']),this['keystrokes']['listenTo'](_0x1ba403['element']);this['keystrokes']['set']('enter',(_0x2c2f14,_0x4eb7d4)=>{_0x42ac99===_0x2c2f14['target']&&(this['focusCycler']['focusFirst'](),_0x4eb7d4());}),this['keystrokes']['set']('esc',(_0x322da5,_0x544ce6)=>{_0x42ac99!==_0x322da5['target']&&(this['focus'](),_0x544ce6());});}}var ke='<!--\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 _0x62e235{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4dff92,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c90bc){super(_0x3c90bc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xb03d0c=this['editor']['config'];_0xb03d0c['define']('trackChanges.SuggestionThreadView',pe),_0xb03d0c['define']('trackChanges.SuggestionView',fe),_0xb03d0c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xb03d0c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x21f631,_0x58fb67){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5dea42,_0x3197fa]of this['_handleControllerBuffer']){const _0x2fabd9=this['_suggestionToController']['has'](_0x5dea42);_0x2fabd9||_0x3197fa?_0x2fabd9&&_0x3197fa&&this['_destroyController'](_0x5dea42):this['_initializeController'](_0x5dea42);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x21f631,_0x58fb67);}['init'](){const _0x4b85a8=this['editor'],_0x316a5c=_0x4b85a8['plugins']['get']('TrackChangesEditing'),_0x141bc3=_0x4b85a8['plugins']['get']('Annotations'),_0xc61629=_0x4b85a8['plugins']['get']('EditorAnnotations'),_0x13274a=_0x4b85a8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xc61629['addSourceCollector'](()=>{const _0x558fe3=[];for(const [_0x3ce812,_0x4e4247]of Array['from'](this['_suggestionToController'])){const _0x2f363f=_0x3ce812['getAllAdjacentSuggestions'](),_0xf56b5f=[];for(const _0x4a34ce of _0x2f363f){if(!_0x4a34ce['isInContent'])continue;if(_0x4a34ce['isMultiRange']){_0xf56b5f['push'](..._0x4a34ce['getRanges']());continue;}const _0x247f76=_0x4a34ce['getFirstRange']();if(_0xf56b5f['length']>0x0){const _0x16a5e0=_0xf56b5f[0x0]['getJoined'](_0x247f76);if(_0x16a5e0){_0xf56b5f[0x0]=_0x16a5e0;continue;}}_0xf56b5f['push'](_0x247f76);}_0x558fe3['push']([_0x4e4247['view'],_0xf56b5f]);}return _0x558fe3;}),this['listenTo'](_0x316a5c,'suggestionLoaded',(_0x5d00c9,_0x5e99f1)=>{this['listenTo'](_0x5e99f1,'change:previous',(_0x2c55e7,_0x2253c0,_0x2f7010,_0x2cd27e)=>{_0x5e99f1['isInContent']&&(null==_0x2f7010?(this['_updateController'](_0x2cd27e['head']),this['_handleSuggestionControllerDelayed'](_0x5e99f1,!0x1)):(this['_updateController'](_0x2f7010['head']),null==_0x2cd27e&&this['_handleSuggestionControllerDelayed'](_0x5e99f1,!0x0)));}),null!==_0x5e99f1['previous']?this['_updateController'](_0x5e99f1['head']):this['_handleSuggestionControllerDelayed'](_0x5e99f1,!0x1);}),this['listenTo'](_0x316a5c,'suggestionUnloaded',(_0x2bbc73,_0x18590b,_0x129686)=>{this['stopListening'](_0x18590b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x18590b),this['_suggestionToController']['has'](_0x18590b)&&this['_destroyController'](_0x18590b),_0x129686&&this['_updateController'](_0x129686['head']);}),this['listenTo'](_0x316a5c,'suggestionChanged',(_0x252a28,_0x55a2d7)=>{this['_updateController'](_0x55a2d7);}),this['listenTo'](_0x141bc3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x13274a,'addComment',(_0x21a988,{threadId:_0x3cb509,isFromAdapter:_0x41ad4d})=>{if(_0x41ad4d||!_0x316a5c['hasSuggestion'](_0x3cb509))return;const _0x3e04ed=_0x316a5c['getSuggestion'](_0x3cb509);this['_suggestionToController']['get'](_0x3e04ed)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x178e5d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x56d306;for(const _0x1f5b45 in _0x178e5d){const _0x23bc24=_0x1f5b45,_0x3cf41c=_0x178e5d[_0x23bc24];if('trackChangesLicenseKeyValid'==_0x3cf41c||'trackChangesLicenseKeyInvalid'==_0x3cf41c||'trackChangesLicenseKeyExpired'==_0x3cf41c||'trackChangesLicenseKeyDomainLimit'==_0x3cf41c||'trackChangesLicenseKeyNotAllowed'==_0x3cf41c||'trackChangesLicenseKeyEvaluationLimit'==_0x3cf41c||'trackChangesLicenseKeyTrialLimit'==_0x3cf41c||'trackChangesLicenseKeyDevelopmentLimit'==_0x3cf41c||'trackChangesLicenseKeyUsageLimit'==_0x3cf41c){delete _0x178e5d[_0x23bc24],_0x56d306=_0x3cf41c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x56d306&&_0x178e5d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x56d306&&_0x178e5d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x56d306&&_0x178e5d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x56d306&&_0x178e5d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x56d306&&_0x178e5d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x56d306&&_0x178e5d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x56d306&&_0x178e5d['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x56d306&&_0x178e5d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x467b6b=this['editor']['plugins']['get']('Annotations'),_0x4f788e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x517ca3=Array['from'](_0x467b6b['activeAnnotations'],_0x4e1ac5=>_0x4e1ac5['innerView'])['filter'](_0x2ad878=>this['_viewToController']['has'](_0x2ad878)),_0x51528d=[];for(const _0x4604e3 of _0x517ca3){const _0x3c2439=this['_viewToController']['get'](_0x4604e3)['model']['getAllAdjacentSuggestions']();_0x51528d['push'](..._0x3c2439['reduce']((_0x4dedc2,_0x2a60df)=>[..._0x4dedc2,..._0x2a60df['getMarkerNames']()],[]));}_0x4f788e['activeMarkers']=_0x51528d;}['_addUIComponentsToFactory'](){const _0x546448=this['editor'],_0x4e0f67=_0x546448['locale'],_0x6d76a5=o(_0x4e0f67,'Track\x20changes'),_0x6e97ac=new _0x28cd42([{'type':'switchbutton','model':new _0x342194({'withText':!0x0,'isToggleable':!0x0,'label':_0x6d76a5,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x342194({'withText':!0x0,'label':o(_0x4e0f67,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x342194({'withText':!0x0,'label':o(_0x4e0f67,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x342194({'withText':!0x0,'label':o(_0x4e0f67,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x342194({'withText':!0x0,'label':o(_0x4e0f67,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x546448['plugins']['has']('TrackChangesPreview')&&_0x6e97ac['addMany']([{'type':'separator'},{'type':'button','model':new _0x342194({'withText':!0x0,'label':o(_0x4e0f67,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x33899c of _0x6e97ac)if(we(_0x33899c)){const _0x558267=_0x546448['commands']['get'](_0x33899c['model']['commandName']);_0x33899c['model']['bind']('isOn','isEnabled')['to'](_0x558267,'value','isEnabled');}_0x546448['ui']['componentFactory']['add']('trackChanges',_0x1995e9=>this['_createToolbarButton'](_0x1995e9,_0x6e97ac,_0x6d76a5)),_0x546448['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2f03f1=>this['_createMenuBarMenu'](_0x2f03f1,_0x6e97ac,_0x6d76a5));}['_createToolbarButton'](_0x5cea73,_0x5c03e5,_0x1529e8){const _0x22a487=_0x255058(_0x5cea73,_0xda49ac),_0x3019a2=this['editor']['commands']['get']('trackChanges');_0x22a487['buttonView']['set']({'tooltip':_0x1529e8,'label':_0x1529e8,'icon':ke}),_0x22a487['buttonView']['bind']('isOn')['to'](_0x3019a2,'value'),_0x22a487['buttonView']['on']('execute',()=>{_0x3019a2['execute'](),this['editor']['editing']['view']['focus']();}),_0x27e077(_0x22a487,_0x5c03e5,{'role':'menu'});const _0x32a21a=[];for(const _0xd7b0e1 of _0x5c03e5)we(_0xd7b0e1)&&_0x32a21a['push'](this['editor']['commands']['get'](_0xd7b0e1['model']['commandName']));const _0x4fe395=_0x22a487['buttonView'];return _0x4fe395['actionView']['unbind']('isEnabled'),_0x4fe395['arrowView']['unbind']('isEnabled'),_0x4fe395['actionView']['bind']('isEnabled')['to'](_0x3019a2,'isEnabled'),_0x4fe395['arrowView']['bind']('isEnabled')['toMany'](_0x32a21a,'isEnabled',(..._0x4bb7f8)=>_0x4bb7f8['some'](_0xfdc71e=>_0xfdc71e)),_0x22a487['on']('execute',_0x15aa07=>{this['editor']['execute'](_0x15aa07['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x22a487;}['_createMenuBarMenu'](_0xe24bfb,_0x2fc079,_0x2439c0){const _0x47bde4=new _0x22847e(_0xe24bfb),_0x3ad846=this['editor']['commands']['get']('trackChanges');_0x47bde4['buttonView']['set']({'label':_0x2439c0,'icon':ke});const _0x1161bd=new _0x32aa3f(_0xe24bfb);for(const _0x2e086f of _0x2fc079){if('separator'==_0x2e086f['type']){_0x1161bd['items']['add'](new _0x40505d(_0xe24bfb));continue;}const _0x2bfadf=new _0x56439c(_0xe24bfb,_0x47bde4),_0x51f123=new _0x45959a(_0xe24bfb),_0x41c27c=_0x2e086f['model'];_0x51f123['bind'](...Object['keys'](_0x41c27c))['to'](_0x41c27c),_0x51f123['delegate']('execute')['to'](_0x47bde4),_0x51f123['on']('execute',()=>{this['editor']['execute'](_0x41c27c['commandName']),this['editor']['editing']['view']['focus']();}),_0x2bfadf['children']['add'](_0x51f123),_0x1161bd['items']['add'](_0x2bfadf);}return _0x47bde4['bind']('isEnabled')['to'](_0x3ad846,'isEnabled'),_0x47bde4['panelView']['children']['add'](_0x1161bd),_0x47bde4;}['_initializeController'](_0x494ba4){const _0x5e3c1e=this['editor'],_0x391e5f=_0x5e3c1e['config'],_0x33adc9=_0x5e3c1e['plugins']['get']('Annotations'),_0x180f25=_0x5e3c1e['plugins']['get']('CommentsRepository'),_0x4da9ad=_0x5e3c1e['plugins']['get']('EditorAnnotations'),_0x5a2785=_0x5e3c1e['plugins']['get'](_0x4dff92)['me'],_0x48c747=_0x391e5f['get']('trackChanges')['SuggestionThreadView'],_0x32c58c=_0x391e5f['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x156515,CommentThreadInputView:_0x207e0a}=_0x5e3c1e['plugins']['get']('CommentsUI');let _0x5ee35c,_0x3b664d,_0x34ed84;this['_annotationViews']['has'](_0x494ba4['id'])?(_0x3b664d=this['_annotationViews']['get'](_0x494ba4['id']),_0x5ee35c=_0x3b664d['mainView']):(_0x5ee35c=new _0x48c747(_0x5e3c1e['locale'],_0x494ba4,_0x5a2785,{'disableComments':this['_disableComments'],'editorConfig':{..._0x391e5f['get']('comments.editorConfig'),'licenseKey':_0x391e5f['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x391e5f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x391e5f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x391e5f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3ab49d(_0x391e5f['get']('locale')),'CommentView':_0x391e5f['get']('comments')['CommentView'],'CommentsListView':_0x156515,'CommentThreadInputView':_0x207e0a,'SuggestionView':_0x32c58c}),_0x5ee35c['suggestionView']['acceptButton']['on']('execute',()=>{_0x5e3c1e['editing']['view']['focus']();}),_0x5ee35c['suggestionView']['discardButton']['on']('execute',()=>{_0x5e3c1e['editing']['view']['focus']();}),_0x3b664d=_0x33adc9['createAnnotationView'](this['editor']['locale'],_0x5ee35c),_0x3b664d['bind']('isDirty')['to'](_0x5ee35c,'isDirty'),_0x3b664d['bind']('length')['to'](_0x5ee35c),_0x3b664d['bind']('type')['to'](_0x5ee35c,'type',_0x37e925=>'suggestion-'+_0x37e925),_0x5ee35c['on']('escape',()=>{_0x34ed84['fire']('escape');}),this['_annotationViews']['set'](_0x494ba4['id'],_0x3b664d));const _0x4d95a7=_0x180f25['createCommentThreadController'](_0x494ba4['commentThread'],_0x5ee35c),_0x30afc8=new Ce(_0x5e3c1e,_0x494ba4,_0x5ee35c,_0x4d95a7),_0x2832d3=_0x494ba4['getAllAdjacentSuggestions']()['filter'](_0x2d4bb8=>_0x2d4bb8['isInContent']);_0x5ee35c['descriptionParts']=_0x5e3c1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2832d3),this['_suggestionToController']['set'](_0x494ba4,_0x30afc8),this['_viewToController']['set'](_0x5ee35c,_0x30afc8),_0x34ed84=_0x33adc9['createAnnotation']({'view':_0x3b664d,'target':()=>{const _0x33dde5=[],_0x168c70=_0x494ba4['getAllAdjacentSuggestions']()['filter'](_0x1591cf=>_0x1591cf['isInContent']);for(const _0x534fad of _0x168c70)_0x33dde5['push'](..._0x534fad['getMarkers']());return _0x2885b3(_0x5e3c1e['editing'],_0x33dde5);},'type':()=>'suggestion-'+_0x30afc8['view']['type']}),_0x180f25['_bindAnnotationToEditors'](_0x5ee35c,_0x34ed84),_0x33adc9['add'](_0x34ed84),_0x4da9ad['registerAnnotation'](_0x34ed84);}['_destroyController'](_0x2fc45e){const _0x2009e5=this['editor']['plugins']['get']('CommentsRepository'),_0x2ba234=this['editor']['plugins']['get']('Annotations'),_0x1679c0=this['_suggestionToController']['get'](_0x2fc45e),_0x508b7b=_0x1679c0['view'],_0x14a8d8=_0x2ba234['getByInnerView'](_0x508b7b);_0x2009e5['_unbindEditors'](_0x508b7b),_0x14a8d8&&_0x2ba234['remove'](_0x14a8d8),this['_suggestionToController']['delete'](_0x2fc45e),this['_viewToController']['delete'](_0x508b7b),_0x1679c0['destroy']();}['_updateController'](_0xd4c044){if(!_0xd4c044['isInContent']||!this['_suggestionToController']['has'](_0xd4c044))return;const _0x6e42b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x131d20=this['_suggestionToController']['get'](_0xd4c044),_0x4f0585=_0xd4c044['getAllAdjacentSuggestions']();_0x131d20['view']['descriptionParts']=_0x6e42b0['descriptionFactory']['getDescriptions'](_0x4f0585);}['destroy'](){for(const _0x2728ee of this['_suggestionToController']['keys']())this['_destroyController'](_0x2728ee);for(const _0x36d941 of this['_annotationViews']['values']())_0x36d941['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function we(_0x1afe3c){return'model'in _0x1afe3c;}class k extends _0x62e235{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x193798){this['editor']['plugins']['get'](p)['adapter']=_0x193798;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x213a54){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x213a54);}['getSuggestions']({skipNotAttached:_0xe85644=!0x1,toJSON:_0xa7479c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xe85644,'toJSON':_0xa7479c});}['getSuggestion'](_0x1d42d8){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1d42d8);}}const w=['Pagination'];class T extends _0x62e235{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x356502=this['editor'];if(_0x356502['config']['define']('trackChangesData.editorCreator',_0x3ae35e=>{const _0x18a805=_0x356502['model']['document']['getRootNames']()['reduce']((_0x3d4c74,_0x340869)=>(_0x3d4c74[_0x340869]='',_0x3d4c74),{});return _0x356502['constructor']['create'](_0x18a805,_0x3ae35e);}),'function'!=typeof _0x356502['config']['get']('trackChangesData')['editorCreator'])throw new _0x668daf('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x58f838){return N(this['editor'],!0x0,_0x58f838);}['getDataWithDiscardedSuggestions'](_0x2b8dfe){return N(this['editor'],!0x1,_0x2b8dfe);}}class D extends _0x62e235{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe85e09){function _0x3db293(_0x259c4c){return _0x259c4c['map'](_0x47ee12=>String['fromCharCode'](_0x47ee12))['join']('');}super(_0xe85e09),this['result']='end',_0xe85e09[_0x3db293([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3db293([0x76,0x69,0x65,0x77])][_0x3db293([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3db293([0x61,0x75,0x74,0x6f]),_0xe85e09[_0x3db293([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3db293([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3db293([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3db293([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3db293([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(_0x2d8f27){return void 0x0!==_0x2d8f27['getRootsAttributes'];}async function N(_0x28cdb8,_0x4dd2a1,_0x419331){const _0x587dbf=_0x337f5a(_0x28cdb8,w);_0x587dbf['plugins']['push'](p,D),_0x587dbf['rootsAttributes']=Fe(_0x28cdb8)?_0x28cdb8['getRootsAttributes']():void 0x0;const _0x4776c3=document['createDocumentFragment'](),_0xa86fdc=_0x28cdb8['config']['get']('trackChangesData')['editorCreator'],_0x1ff83d=await _0xa86fdc(_0x587dbf,()=>function(_0x1cd3b2){const _0x3c6287=document['createElement']('div');return _0x1cd3b2['appendChild'](_0x3c6287),_0x3c6287;}(_0x4776c3));!function(_0x397559,_0x1a897f){const _0xfaad0a=_0x397559['model']['document']['getRootNames']()['reduce']((_0x48d2a7,_0x12de13)=>(_0x48d2a7[_0x12de13]=_0x397559['data']['get']({'rootName':_0x12de13}),_0x48d2a7),{}),_0x2650d7=_0x397559['plugins']['get']('Users')['users']['map'](_0x249d4=>({'id':_0x249d4['id'],'name':_0x249d4['name']})),_0x2b871b=_0x397559['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1a318d=_0x397559['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x379d7d=_0x1a897f['plugins']['get']('Users'),_0x4ef034=_0x1a897f['plugins']['get']('TrackChangesEditing'),_0xa0d451=_0x1a897f['plugins']['get']('CommentsRepository');for(const _0x72516d of _0xa0d451['getCommentThreads']())_0x72516d['remove']();for(const _0x2ff806 of _0x2650d7)_0x379d7d['getUser'](_0x2ff806['id'])||_0x379d7d['addUser'](_0x2ff806);_0x379d7d['me']||_0x379d7d['useAnonymousUser']();for(const _0x3749d9 of _0x1a318d)_0xa0d451['addCommentThread'](_0x3749d9);for(const _0x50b177 of _0x2b871b)_0x4ef034['addSuggestionData'](_0x50b177);_0x1a897f['data']['set'](_0xfaad0a);}(_0x28cdb8,_0x1ff83d),_0x1ff83d['execute'](_0x4dd2a1?'acceptAllSuggestions':'discardAllSuggestions');const _0xfd5d6d=Fe(_0x1ff83d)?_0x1ff83d['getFullData'](_0x419331):_0x1ff83d['data']['get'](_0x419331);return await _0x1ff83d['destroy'](),_0xfd5d6d;}class Me extends _0x53e51f{['options'];constructor(_0x3a0b11,_0x5bfbd4){super(_0x3a0b11),this['options']=_0x5bfbd4,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'](_0x48f5e0,_0x4ef887){if(!this['element'])return;const _0x1e1373=[];for(const [_0x3672af,_0x55636b]of _0x48f5e0){const _0x172699=document['createElement']('div');_0x172699['setAttribute']('data-ck-root-name',_0x3672af),_0x172699['className']=_0x55636b['classes']+'\x20ck-track-changes-preview__root-container',_0x172699['innerHTML']=_0x55636b['content'],_0x1e1373['push'](_0x172699);}_0x4ef887(this['element'],_0x1e1373),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x358ccc){super(_0x358ccc),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x11a24c=this['editor'],_0x2e7bf9=_0x11a24c['locale'],_0x1cb04a=_0x11a24c['plugins']['get']('Dialog');let _0x578e0b;const _0x4c928f=function(_0x56716f){const _0x1865ab={};if('editables'in _0x56716f['ui']['view']){for(const [_0x2475ad,_0x51f11c]of Object['entries'](_0x56716f['ui']['view']['editables']))_0x1865ab[_0x2475ad]=_0x51f11c['element'];}else _0x1865ab[_0x56716f['model']['document']['getRootNames']()[0x0]]=_0x56716f['ui']['view']['editable']['element'];return _0x1865ab;}(_0x11a24c),_0x389170=function(_0x5eac67){let _0x4ea7ce=0x0;for(const _0x96ac2e of Object['values'](_0x5eac67))_0x4ea7ce=Math['max'](_0x4ea7ce,_0x96ac2e['getBoundingClientRect']()['width']);let _0x1e39d8=0x0;for(const _0x26ae83 of Object['values'](_0x5eac67))_0x1e39d8+=_0x26ae83['getBoundingClientRect']()['height'];const _0x39b193=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x50206f=Math['min'](_0x1e39d8,_0x39b193);return{'width':_0x4ea7ce,'height':_0x50206f};}(_0x4c928f);_0x1cb04a['show']({'id':'finalContentPreview','title':o(_0x2e7bf9,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2e7bf9,{'dialogRects':_0x389170}),'onHide':()=>{_0x578e0b['detachFromDom']();},'onShow':()=>{_0x11a24c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x16d423=>{const _0x466729=this['_standarizeRootsData'](_0x16d423,_0x11a24c,_0x4c928f);_0x1cb04a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x466729,_0x11a24c['config']['get']('trackChanges.preview.renderFunction'));}),_0x578e0b=new _0x4ed095(_0x2e7bf9,[_0x1cb04a['view']]),_0x578e0b['attachToDom'](),_0x578e0b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x11a24c['once']('destroy',()=>{_0x578e0b['detachFromDom']();});const _0x571d1e=_0x1cb04a['view']['headerView']['class'];_0x1cb04a['view']['headerView']['class']=_0x571d1e?_0x571d1e+'\x20ck-reset_all':'ck-reset_all',_0x1cb04a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1cb04a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1495db=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xb19a37=_0x1495db['previewMode'],_0x579cfc={};if('$labels'===_0xb19a37){for(const _0x5a51ba of _0x1495db['getMergeFieldsIds']())_0x579cfc[_0x5a51ba]=_0x1495db['getLabel'](_0x5a51ba)||_0x5a51ba;}else{const _0x27a62a='$defaultValues'===_0xb19a37?_0x1495db['getDefaultValues']():_0x1495db['getDataSetValues'](_0xb19a37,!0x0);for(const _0x3a8274 of Object['entries'](_0x27a62a)){const [_0xf429f0,_0x7e729]=_0x3a8274;_0x579cfc[_0xf429f0]=null!==_0x7e729?_0x7e729:_0x1495db['getLabel'](_0xf429f0)||_0xf429f0;}}return{'mergeFieldsData':_0x579cfc};}['_standarizeRootsData'](_0x64cb6a,_0x10e610,_0x42ef00){let _0x36d92c;if('string'==typeof _0x64cb6a){const _0x3a4680=_0x10e610['model']['document']['getRootNames']()[0x0];_0x36d92c={[_0x3a4680]:_0x64cb6a};}else _0x36d92c=_0x64cb6a;const _0x3a8bfa=this['_fixMediaEmbeds'](_0x36d92c,_0x10e610),_0x32ccc8=function(_0x2b2fc3,_0x25fec3){for(const [_0x40ada6,_0x1c325f]of _0x2b2fc3)_0x1c325f['classes']=_0x25fec3[_0x40ada6]['classList']['value']['replace']('ck-focused','');return _0x2b2fc3;}(this['_sortRoots'](_0x10e610)['reduce']((_0x41fa9b,_0xa8cb56)=>(_0x41fa9b['push']([_0xa8cb56,{'content':_0x3a8bfa[_0xa8cb56],'classes':''}]),_0x41fa9b),[]),_0x42ef00);return _0x32ccc8;}['_fixMediaEmbeds'](_0x20449b,_0x427220){if(!_0x427220['plugins']['has']('MediaEmbedEditing'))return _0x20449b;const _0x4e97b5=_0x427220['plugins']['get']('MediaEmbedEditing');for(const [_0x3e1523,_0x2f6418]of Object['entries'](_0x20449b)){const _0x12a6c9=document['createElement']('div');_0x12a6c9['innerHTML']=_0x2f6418,(_0x12a6c9['querySelectorAll']('figure.media')['forEach'](_0x4f41d9=>{const _0x282796=_0x4f41d9['querySelector']('oembed');if(_0x282796){const _0x15efdb=_0x282796['getAttribute']('url');if(_0x15efdb){const _0x3fa6bf=_0x4e97b5['registry']['getMediaViewElement'](new _0xe4ae67(_0x427220['editing']['view']['document']),_0x15efdb,{'elementName':'','renderForEditingView':!0x0}),_0x17e842=document['createElement']('div');_0x17e842['classList']['add']('ck-media__wrapper'),_0x3fa6bf['render'](_0x17e842,_0x427220['editing']['view']['domConverter']),_0x282796['replaceWith'](_0x17e842);}}}),_0x20449b[_0x3e1523]=_0x12a6c9['innerHTML']);}return _0x20449b;}['_sortRoots'](_0x34f175){if(!function(_0x485c6e){return void 0x0!==_0x485c6e['getRootsAttributes'];}(_0x34f175))return _0x34f175['model']['document']['getRootNames']();const _0x444eb6=[],_0x291385=new Map();for(const _0x118773 of _0x34f175['model']['document']['getRootNames']()){const _0xa71427=_0x34f175['editing']['view']['getDomRoot'](_0x118773)['getClientRects']()['item'](0x0);_0x444eb6['push'](_0x118773),_0x291385['set'](_0x118773,_0xa71427);}return _0x444eb6['sort']((_0x16e960,_0x2fd2c7)=>{const _0xbdd6de=_0x291385['get'](_0x16e960),_0x2d76f3=_0x291385['get'](_0x2fd2c7);return _0xbdd6de['y']-_0x2d76f3['y']||_0xbdd6de['x']-_0x2d76f3['x'];}),_0x444eb6;}}class te extends _0x62e235{static get['requires'](){return[T,_0x42822c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x254ae1){super(_0x254ae1),_0x254ae1['commands']['add']('previewFinalContent',new re(this['editor'])),_0x254ae1['config']['define']('trackChanges.preview.renderFunction',(_0x35e4c9,_0x4c2483)=>{for(const _0x1373b0 of _0x4c2483)_0x35e4c9['appendChild'](_0x1373b0);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};