@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250202.0 → 0.0.0-nightly-20250204.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +25 -25
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/previewfinalcontentcommand.js +1 -1
  153. package/src/commands/trackchangescommand.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/integrations/aiassistant.js +1 -1
  156. package/src/integrations/alignment.js +1 -1
  157. package/src/integrations/basicstyles.js +1 -1
  158. package/src/integrations/blockquote.js +1 -1
  159. package/src/integrations/bookmark.js +1 -1
  160. package/src/integrations/casechange.js +1 -1
  161. package/src/integrations/ckbox.js +1 -1
  162. package/src/integrations/codeblock.js +1 -1
  163. package/src/integrations/comments.js +1 -1
  164. package/src/integrations/deletecommand.js +1 -1
  165. package/src/integrations/entercommand.js +1 -1
  166. package/src/integrations/findandreplace.js +1 -1
  167. package/src/integrations/font.js +1 -1
  168. package/src/integrations/formatpainter.js +1 -1
  169. package/src/integrations/heading.js +1 -1
  170. package/src/integrations/highlight.js +1 -1
  171. package/src/integrations/horizontalline.js +1 -1
  172. package/src/integrations/htmlembed.js +1 -1
  173. package/src/integrations/image.js +1 -1
  174. package/src/integrations/imagereplace.js +1 -1
  175. package/src/integrations/imagestyle.js +1 -1
  176. package/src/integrations/importword.js +1 -1
  177. package/src/integrations/indent.js +1 -1
  178. package/src/integrations/inputcommand.js +1 -1
  179. package/src/integrations/legacylist.js +1 -1
  180. package/src/integrations/legacylistproperties.js +1 -1
  181. package/src/integrations/link.js +1 -1
  182. package/src/integrations/list.js +1 -1
  183. package/src/integrations/listproperties.js +1 -1
  184. package/src/integrations/mediaembed.js +1 -1
  185. package/src/integrations/mention.js +1 -1
  186. package/src/integrations/mergefields.js +1 -1
  187. package/src/integrations/multilevellist.js +1 -1
  188. package/src/integrations/pagebreak.js +1 -1
  189. package/src/integrations/paragraph.js +1 -1
  190. package/src/integrations/removeformat.js +1 -1
  191. package/src/integrations/restrictededitingmode.js +1 -1
  192. package/src/integrations/shiftentercommand.js +1 -1
  193. package/src/integrations/standardeditingmode.js +1 -1
  194. package/src/integrations/style.js +1 -1
  195. package/src/integrations/table.js +1 -1
  196. package/src/integrations/tablecaption.js +1 -1
  197. package/src/integrations/tableclipboard.js +1 -1
  198. package/src/integrations/tablecolumnresize.js +1 -1
  199. package/src/integrations/tableheadings.js +1 -1
  200. package/src/integrations/tablemergesplit.js +1 -1
  201. package/src/integrations/tableofcontents.js +1 -1
  202. package/src/integrations/tableproperties.js +1 -1
  203. package/src/integrations/template.js +1 -1
  204. package/src/integrations/title.js +1 -1
  205. package/src/integrations/undo.js +1 -1
  206. package/src/integrations/uploadcare.js +1 -1
  207. package/src/integrations/utils.js +1 -1
  208. package/src/suggestion.js +2 -2
  209. package/src/suggestiondescriptionfactory.js +1 -1
  210. package/src/trackchanges.js +1 -1
  211. package/src/trackchangesdata.js +1 -1
  212. package/src/trackchangesediting.js +1 -1
  213. package/src/trackchangespreview.js +1 -1
  214. package/src/trackchangesui.js +1 -1
  215. package/src/ui/suggestioncontroller.js +2 -2
  216. package/src/ui/view/basesuggestionthreadview.js +1 -1
  217. package/src/ui/view/suggestionthreadview.js +1 -1
  218. package/src/ui/view/suggestionview.js +1 -1
  219. package/src/ui/view/trackchangespreviewview.js +1 -1
  220. package/src/utils/common-translations.js +1 -1
  221. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Qt,Plugin as _0x27318c,PendingActions as _0x53f58f,icons as _0x3898a0}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x59c745,ObservableMixin as _0x3074e5,uid as _0x3330a4,priorities as _0x11b5a6,insertToPriorityArray as _0x570bf6,logWarning as _0x369c47,getEnvKeystrokeText as _0x7be1ac,FocusTracker as _0x17f543,KeystrokeHandler as _0x150e52,Collection as _0x5516f8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3f4046,View as _0x1a56fc,ViewCollection as _0x4bf9f0,FocusCycler as ts,ViewModel as _0x4b7472,createDropdown as _0x534303,SplitButtonView as _0x2f10a0,addListToDropdown as _0x502fd2,MenuBarMenuView as _0x4b3efa,MenuBarMenuListView as _0x52d3e0,ListSeparatorView as _0x29511a,MenuBarMenuListItemView as _0x1cccb2,MenuBarMenuListItemButtonView as _0xce56e7,BodyCollection as _0x4fc2a7,Dialog as _0x24d115}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x53f0ce,hashObject as _0x135b17,surroundingMarkersDetector as _0x30266a,FOCUS_ANNOTATION_KEYSTROKE as _0x58b088,AriaDescriptionView as _0x48ec99,setupThreadKeyboardNavigation as _0x58cefc,trimHtml as _0x346348,UserView as _0x552f6b,LateFocusButtonView as _0x3c14b4,getDateTimeFormatter as _0x482ee1,getAllMarkersDomElementsSorted as _0x5bcf31,sanitizeEditorConfig as _0x419258}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3fa654,LiveRange as _0x48c676,LivePosition as _0xa06e13,DowncastWriter as _0x32eaa7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x976cb5,toWidget as _0x529a06}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x507100,set as _0x1e12fd,isEqual as _0x423d77,unset as _0xeb9f04,omit as Et}from'lodash-es';import{Delete as _0x14f534,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x396d86,ShiftEnter as _0x511614}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0xe3df6a,_0x3f4a5e){super(_0xe3df6a),this['_enabledCommands']=_0x3f4a5e,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 _0xbb806a of this['editor']['commands']['commands']())_0xbb806a['affectsData']&&!this['_enabledCommands']['has'](_0xbb806a)&&_0xbb806a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x25c700 of this['editor']['commands']['commands']())_0x25c700['affectsData']&&!this['_enabledCommands']['has'](_0x25c700)&&_0x25c700['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x6fe214,_0x26bb64){super(_0x6fe214),this['_suggestions']=_0x26bb64,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1d1eeb){const _0x241da8=this['_suggestions']['get'](_0x1d1eeb);if(!_0x241da8)throw new _0x59c745('track-changes-accept-suggestion-not-found',this);const _0x19e862=_0x241da8['getRanges']();this['editor']['model']['canEditAt'](_0x19e862)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x241da8);}}class R extends Qt{['_suggestions'];constructor(_0x13a3f4,_0x57defc){super(_0x13a3f4),this['_suggestions']=_0x57defc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3624d8){const _0x151fbd=this['_suggestions']['get'](_0x3624d8);if(!_0x151fbd)throw new _0x59c745('track-changes-discard-suggestion-not-found',this);const _0x4803c9=_0x151fbd['getRanges']();this['editor']['model']['canEditAt'](_0x4803c9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x151fbd);}}function ns(_0x115a1e,_0x17d9e8){let _0x5b821b='';return _0x5b821b+=_0x115a1e['split']('*')['map']((_0x2db3dd,_0x292a9b)=>_0x292a9b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2db3dd)+'</span>':nn(_0x2db3dd))['join'](''),_0x17d9e8&&(_0x5b821b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x17d9e8['value']+'\x22\x20title=\x22'+_0x17d9e8['title']+'\x22></span>'),_0x5b821b;}function nn(_0x20850d){const _0xa6f979=document['createElement']('span');return _0xa6f979['innerText']=_0x20850d,_0xa6f979['innerHTML'];}function Xt(_0x3d2e2f){return _0x3d2e2f['sort']((_0x4b081a,_0x541107)=>'deletion'==_0x4b081a['type']&&'deletion'!=_0x541107['type']?-0x1:'deletion'!=_0x4b081a['type']&&'deletion'==_0x541107['type']?0x1:0x0);}function to(_0x152efe,_0x38872d){let _0x107b38,_0x13893a=0x0;const _0x2af29b=[],_0x495745=_0x38872d['schema'];for(;_0x13893a<_0x152efe['length'];){const _0x38581a=_0x152efe[_0x13893a],_0x586fcd=_0x152efe[_0x13893a+0x1];_0x107b38||(_0x107b38=_0x38872d['createPositionBefore'](_0x38581a)),on(_0x38872d,_0x38581a,_0x586fcd)||(_0x2af29b['push'](_0x38872d['createRange'](_0x107b38,_0x495745['isObject'](_0x38581a)?_0x38872d['createPositionAfter'](_0x38581a):_0x38872d['createPositionAt'](_0x38581a,'end'))),_0x107b38=null),_0x13893a++;}return _0x2af29b;}function on(_0x447d51,_0x50392a,_0x12016e){if(!_0x12016e)return!0x1;const _0x53eb15=_0x447d51['createPositionAfter'](_0x50392a),_0x46d065=_0x447d51['createPositionBefore'](_0x12016e);return _0x53eb15['isTouching'](_0x46d065);}function Yt(_0x4a1054,_0x53e83c,_0x2d1d83){for(;_0x2d1d83['length'];){const _0x6b21b8=_0x2d1d83['splice'](0x0,0x64);_0x4a1054['change'](()=>{for(const _0x25e4bb of _0x6b21b8)_0x25e4bb['isInContent']&&_0x53e83c['execute'](_0x25e4bb['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x2a84d1,_0xa1c34f,_0x44610f){super(_0x2a84d1),this['_command']=_0xa1c34f,this['_suggestions']=_0x44610f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x98a6c4=Array['from'](this['_suggestions']['values']())['some'](_0x4b78e2=>_0x4b78e2['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x98a6c4;}['execute'](){const _0xdb44a2=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x4d4cd5 of _0xdb44a2){const _0x51b3e2=_0x4d4cd5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x51b3e2))return;}Yt(this['editor']['model'],this['_command'],_0xdb44a2);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3cd7d7,_0x439437,_0x29a809){super(_0x3cd7d7),this['_command']=_0x439437,this['_suggestions']=_0x29a809,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x491430=this['editor']['model']['document']['selection'],_0x5282a1=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3e5d4d,_0x401c89){const _0x1bb6f5=Array['from'](_0x3e5d4d['getRanges']()),_0x2988a2=new Set();for(const _0x33372b of _0x401c89)if(_0x33372b['isInContent']){for(const _0x3b7cac of _0x1bb6f5)for(const _0x588dc9 of _0x33372b['getRanges']())(_0x3b7cac['isIntersecting'](_0x588dc9)||_0x3e5d4d['isCollapsed']&&!_0x33372b['isMultiRange']&&_0x33372b['next']&&_0x588dc9['end']['isTouching'](_0x3b7cac['start']))&&_0x2988a2['add'](_0x33372b);}return _0x2988a2;}(_0x491430,_0x5282a1),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x14705b=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x1caa36 of _0x14705b){const _0x8bc3e4=_0x1caa36['getRanges']();if(!this['editor']['model']['canEditAt'](_0x8bc3e4))return;}Yt(this['editor']['model'],this['_command'],_0x14705b);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x3074e5(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x20d6df,_0x21b9f){super(),this['id']=_0x21b9f['id'],this['type']=_0x21b9f['type'],this['subType']=_0x21b9f['subType']||null,this['author']=_0x21b9f['author'],this['creator']=_0x21b9f['creator']||_0x21b9f['author'],this['isExternal']=Boolean(_0x21b9f['attributes']&&_0x21b9f['attributes']['@external']),this['data']=null,this['_model']=_0x20d6df,this['_onAccept']=_0x21b9f['onAccept'],this['_onDiscard']=_0x21b9f['onDiscard'],this['_onAttributesChange']=_0x21b9f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x21b9f['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 _0x54f691=this;for(;_0x54f691['previous'];)_0x54f691=_0x54f691['previous'];return _0x54f691;}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'](_0x2fdbe6){this['_markerNames']['add'](_0x2fdbe6);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1376f6=>this['_model']['markers']['get'](_0x1376f6))['filter'](_0x5ce14f=>_0x5ce14f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2b0786=>{for(const _0x3b81e8 of this['getMarkers']())_0x2b0786['removeMarker'](_0x3b81e8);}),this['_markerNames']['clear']();}['removeMarker'](_0x2b5ff3){this['_model']['change'](_0x1c6779=>{_0x1c6779['removeMarker'](_0x2b5ff3);}),this['_markerNames']['delete'](_0x2b5ff3);}['addRange'](_0x359620){const _0x401df0='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x401df0),this['_model']['change'](_0x2caaec=>{_0x2caaec['addMarker'](_0x401df0,{'range':_0x359620,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1f4a1f){for(const _0x2282c5 of this['getRanges']())if(_0x2282c5['isIntersecting'](_0x1f4a1f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2c1447=>_0x2c1447['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3d69c6,_0x33ceaf)=>[..._0x3d69c6,..._0x33ceaf['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1d33a1=this['getRanges']();if(0x1!=_0x1d33a1['length'])return null;const _0x105f4f=_0x1d33a1[0x0],_0x1a3590=_0x105f4f['start']['nodeAfter'],_0x5ecae0=_0x105f4f['end']['nodeBefore'];return _0x1a3590 instanceof _0x3fa654?_0x1a3590!=_0x5ecae0?null:_0x1a3590: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 _0x543ae3=[];let _0x550a7d=this['head'];for(;_0x550a7d;)_0x543ae3['push'](_0x550a7d),_0x550a7d=_0x550a7d['next'];return _0x543ae3;}['setAttribute'](_0x119ca1,_0x28f627){const _0x1a4f0a=_0x507100(this['attributes']);_0x1e12fd(_0x1a4f0a,_0x119ca1,_0x28f627),_0x423d77(_0x1a4f0a,this['attributes'])||(this['attributes']=_0x1a4f0a,this['_onAttributesChange'](_0x1a4f0a));}['removeAttribute'](_0x420d47){const _0x59ce07=_0x507100(this['attributes']);_0xeb9f04(_0x59ce07,_0x420d47),_0x423d77(_0x59ce07,this['attributes'])||(this['attributes']=_0x59ce07,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 _0x3330a4()['substr'](0x1,0x5);}}function o(_0x1bfc69,_0x1ee564,_0x31a6e2){const _0x1d4331=_0x1bfc69['t'],t=_0x1bfc69['t'];switch(_0x1ee564){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',_0x31a6e2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x31a6e2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x31a6e2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x31a6e2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x31a6e2);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',_0x31a6e2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x31a6e2);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x31a6e2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x31a6e2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x31a6e2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x31a6e2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x31a6e2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x31a6e2);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x31a6e2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x31a6e2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x31a6e2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x31a6e2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x31a6e2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x31a6e2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x31a6e2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x31a6e2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x31a6e2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x31a6e2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x31a6e2);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'},_0x31a6e2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x31a6e2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x31a6e2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x31a6e2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x31a6e2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x31a6e2);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'},_0x31a6e2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x31a6e2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x31a6e2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x31a6e2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x31a6e2);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'},_0x31a6e2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x31a6e2);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'},_0x31a6e2);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'},_0x31a6e2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x31a6e2);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'},_0x31a6e2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x31a6e2);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'},_0x31a6e2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x31a6e2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x31a6e2);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'},_0x31a6e2);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x31a6e2);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 _0x1d4331({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x31a6e2);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1d4331({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x31a6e2);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x31a6e2);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'},_0x31a6e2);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'},_0x31a6e2);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'},_0x31a6e2);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1ee564;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x22b9fa,_0x5a7424){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x22b9fa,this['_locale']=_0x5a7424;}['getDescriptions'](_0x5786d3){const _0x457ff5=[],_0x48a3a3=new Set(),_0x5af9e9=new Set();for(let _0x2a80d2=0x0;_0x2a80d2<_0x5786d3['length'];_0x2a80d2++){const _0x27abf8=_0x5786d3[_0x2a80d2];if(!_0x27abf8['isInContent'])continue;const _0x490811=this['_handleCustomCallbackDescription'](_0x27abf8);if(_0x490811){if(null!=_0x27abf8['subType']){if(_0x48a3a3['has'](_0x27abf8['subType']))continue;_0x48a3a3['add'](_0x27abf8['subType']);}_0x457ff5['push'](_0x490811);}else{if('attribute'!=_0x27abf8['type'])'insertion'!=_0x27abf8['type']&&'deletion'!=_0x27abf8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x457ff5,_0x27abf8,_0x5786d3[_0x2a80d2+0x1]);else{const _0x5d008f=_0x27abf8['data']['key'];if(_0x5af9e9['has'](_0x5d008f))continue;_0x5af9e9['add'](_0x27abf8['data']['key']),_0x5d008f==m?this['_handleRenameSuggestionDescription'](_0x457ff5,_0x27abf8):this['_handleAttributeSuggestionDescription'](_0x457ff5,_0x27abf8);}}}return this['_resolveDescriptionItems'](_0x457ff5);}['registerDescriptionCallback'](_0x3f1b8f){this['_customCallbacks']['push'](_0x3f1b8f);}['registerElementLabel'](_0x563bb9,_0x5148f3,_0x3ebff=_0x11b5a6['normal']){'function'==typeof _0x563bb9?_0x570bf6(this['_itemLabelsCallbacks'],{'matchingCallback':_0x563bb9,'label':_0x5148f3,'priority':_0x3ebff}):this['_itemLabels']['set'](_0x563bb9,_0x5148f3);}['registerAttributeLabel'](_0x34ed71,_0x7e4965){this['_attributeLabels']['set'](_0x34ed71,_0x7e4965);}['getItemLabel'](_0x456957,_0x3c8945=0x1){let _0x25cd3b;for(const _0xb352e9 of this['_itemLabelsCallbacks'])if(_0xb352e9['matchingCallback'](_0x456957)){_0x25cd3b=_0xb352e9['label'];break;}return _0x25cd3b||(_0x25cd3b=this['_itemLabels']['get'](_0x456957['name'])),_0x25cd3b?_0x25cd3b(_0x3c8945):0x1!==_0x3c8945?_0x3c8945+'\x20'+_0x456957['name']+'s':''+_0x456957['name'];}['_addDescriptionItems'](_0x591e1d,_0x3255b4){const _0x51bdea=_0x3255b4['getFirstRange']()['getWalker'](),_0x1bdd1b='insertion'==_0x3255b4['type']?'add':'remove';for(const _0x174ca3 of _0x51bdea){const _0x1ab961=_0x174ca3['item'],_0x44b117=_0x591e1d[_0x591e1d['length']-0x1];if(_0x1ab961['is']('$textProxy'))_0x44b117&&_0x44b117['type']['indexOf']('Container')>-0x1&&_0x591e1d['pop'](),_0x44b117&&'text'==_0x44b117['type']?_0x44b117[_0x1bdd1b]+=_0x1ab961['data']:_0x591e1d['push']({'type':'text','add':'add'==_0x1bdd1b?_0x1ab961['data']:'','remove':'remove'==_0x1bdd1b?_0x1ab961['data']:''});else{if(this['_schema']['isObject'](_0x1ab961)){const _0x522322=_0x1ab961;if(_0x44b117&&_0x44b117['type']['indexOf']('Container')>-0x1&&_0x591e1d['pop'](),'elementEnd'==_0x174ca3['type'])continue;_0x44b117&&_0x44b117['type']==_0x1bdd1b+'Object'&&_0x44b117['element']['name']==_0x522322['name']?_0x44b117['quantity']++:_0x591e1d['push']({'type':_0x1bdd1b+'Object','element':_0x522322,'quantity':0x1}),_0x51bdea['skip'](_0x487e43=>!('elementEnd'==_0x487e43['type']&&_0x487e43['item']==_0x1ab961));}else{if(this['_schema']['checkChild'](_0x1ab961,'$text')||_0x1ab961['is']('element','softBreak')){const _0x1a48af=_0x1ab961;if('add'==_0x1bdd1b&&'elementStart'==_0x174ca3['type']||'remove'==_0x1bdd1b&&'elementEnd'==_0x174ca3['type'])continue;if(_0x44b117&&-0x1==_0x44b117['type']['indexOf']('Container')){'text'==_0x44b117['type']&&(_0x44b117[_0x1bdd1b]+='\x0a');continue;}let _0x2988aa;if(_0x2988aa='add'==_0x1bdd1b?_0x1a48af['nextSibling']&&!this['_schema']['isObject'](_0x1a48af['nextSibling'])?_0x1a48af['nextSibling']:null:_0x1a48af['previousSibling']&&!this['_schema']['isObject'](_0x1a48af['previousSibling'])?_0x1a48af['previousSibling']:null,_0x1a48af['isEmpty']||_0x2988aa&&_0x2988aa['isEmpty']){const _0x556135=_0x2988aa&&_0x2988aa['isEmpty']?_0x2988aa:_0x1a48af;_0x44b117&&_0x44b117['type']==_0x1bdd1b+'EmptyContainer'&&_0x44b117['element']['name']==_0x556135['name']?_0x44b117['quantity']++:_0x591e1d['push']({'type':_0x1bdd1b+'EmptyContainer','element':_0x556135,'quantity':0x1});}else _0x591e1d['push']({'type':_0x1bdd1b+'Container','element':_0x1a48af});}}}}}['_resolveDescriptionItems'](_0x4a37ba){const _0x3afa30=this['_locale'],_0x3422f4=[],_0x307b5e=[],_0x314c65=[];for(const _0x4a0057 of _0x4a37ba)switch(_0x4a0057['type']){case'text':if(_0x4a0057['add']=_0x4a0057['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4a0057['remove']=_0x4a0057['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4a0057['add']&&''!=_0x4a0057['remove']){_0x3422f4['push']({'type':'replace','content':o(_0x3afa30,'REPLACE_TEXT',['\x22'+_0x4a0057['remove']+'\x22','\x22'+_0x4a0057['add']+'\x22'])});continue;}if(null!=_0x4a0057['add']['match'](/^ +$/)){_0x3422f4['push']({'type':'insertion','content':o(_0x3afa30,'*Insert:*\x20%0',o(_0x3afa30,'ELEMENT_SPACE',_0x4a0057['add']['length']))});continue;}if(null!=_0x4a0057['remove']['match'](/^ +$/)){_0x3422f4['push']({'type':'deletion','content':o(_0x3afa30,'*Remove:*\x20%0',o(_0x3afa30,'ELEMENT_SPACE',_0x4a0057['remove']['length']))});continue;}if(''!=_0x4a0057['add']){_0x3422f4['push']({'type':'insertion','content':o(_0x3afa30,'*Insert:*\x20%0','\x22'+_0x4a0057['add']+'\x22')});continue;}_0x3422f4['push']({'type':'deletion','content':o(_0x3afa30,'*Remove:*\x20%0','\x22'+_0x4a0057['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3422f4['push']({'type':'insertion','content':o(_0x3afa30,'*Insert:*\x20%0',this['getItemLabel'](_0x4a0057['element'],_0x4a0057['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3422f4['push']({'type':'deletion','content':o(_0x3afa30,'*Remove:*\x20%0',this['getItemLabel'](_0x4a0057['element'],_0x4a0057['quantity']))});continue;case'addContainer':_0x3422f4['push']({'type':'insertion','content':o(_0x3afa30,'*Split:*\x20%0',this['getItemLabel'](_0x4a0057['element'],_0x4a0057['quantity']))});continue;case'removeContainer':_0x3422f4['push']({'type':'deletion','content':o(_0x3afa30,'*Merge:*\x20%0',this['getItemLabel'](_0x4a0057['element'],_0x4a0057['quantity']))});continue;case'addFormat':_0x307b5e['push'](_0x4a0057['key']);continue;case'removeFormat':_0x314c65['push'](_0x4a0057['key']);continue;default:_0x3422f4['push'](_0x4a0057);}if(_0x307b5e['length']){const _0x3e5e48=_0x307b5e['map'](_0x46b107=>this['_attributeLabels']['has'](_0x46b107)?this['_attributeLabels']['get'](_0x46b107):_0x46b107)['join'](',\x20');_0x3422f4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3e5e48)});}if(_0x314c65['length']){const _0x4a4474=_0x314c65['map'](_0x5a985d=>this['_attributeLabels']['has'](_0x5a985d)?this['_attributeLabels']['get'](_0x5a985d):_0x5a985d)['join'](',\x20');_0x3422f4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4a4474)});}return _0x3422f4;}['_handleCustomCallbackDescription'](_0x3edf57){for(const _0x9d228e of this['_customCallbacks']){const _0x292359=_0x9d228e(_0x3edf57);if(_0x292359&&'type'in _0x292359)return _0x292359;}}['_handleAttributeSuggestionDescription'](_0xa00cb6,_0x3c62b5){const _0x365b4e=_0x3c62b5['data'],_0x251d39=void 0x0===_0x365b4e['newValue']?'removeFormat':'addFormat';_0xa00cb6['push']({'type':_0x251d39,'key':_0x365b4e['key']});}['_handleRenameSuggestionDescription'](_0x474f04,_0x18068c){_0x474f04['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x18068c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5d6ab0,_0x28b5c5,_0xf3360b){if(this['_addDescriptionItems'](_0x5d6ab0,_0x28b5c5),_0xf3360b&&_0xf3360b['getFirstRange']()&&!_0x28b5c5['getFirstRange']()['end']['isEqual'](_0xf3360b['getFirstRange']()['start'])){const _0x42efbe=_0x5d6ab0[_0x5d6ab0['length']-0x1],_0x21f4ad='insertion'==_0x28b5c5['type']?'add':'remove';_0x42efbe&&'text'==_0x42efbe['type']&&(_0x42efbe[_0x21f4ad]+='\x0a');}}}class U extends _0x27318c{['afterInit'](){const _0x5cc569=this['editor'],_0x30f2a6=_0x5cc569['plugins']['get']('TrackChangesEditing');_0x5cc569['commands']['get']('showAIAssistant')&&_0x30f2a6['enableCommand']('showAIAssistant');}}class V extends _0x27318c{['afterInit'](){const _0x401ee8=this['editor'],_0x5a0930=_0x401ee8['locale'];if(!_0x401ee8['plugins']['has']('AlignmentEditing'))return;const _0x1295ba=_0x401ee8['plugins']['get']('TrackChangesEditing');_0x1295ba['enableDefaultAttributesIntegration']('alignment'),_0x1295ba['registerBlockAttribute']('alignment'),_0x1295ba['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5a0930,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b6495=this['editor'],_0x4036e6=_0x4b6495['locale'];_0x4b6495['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x218d75=>{if('formatBlock'!=_0x218d75['type'])return;const {data:_0x11745f}=_0x218d75;if(_0x11745f&&'alignment'==_0x11745f['commandName']){const _0x5735a0=_0x11745f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4036e6,'*Format:*\x20%0',function(_0x330900){switch(_0x330900){case'left':return o(_0x4036e6,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4036e6,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4036e6,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4036e6,'FORMAT_JUSTIFY_TEXT');}}(_0x5735a0))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x27318c{['afterInit'](){const _0x3ab29f=this['editor'],_0x227342=_0x3ab29f['plugins']['get']('TrackChangesEditing'),_0x1054c0=_0x3ab29f['locale'];for(const _0x412fe5 of ti){if(!_0x3ab29f['plugins']['has'](_0x412fe5))continue;const _0x38dd70=_0x412fe5['slice'](0x0,-0x7)['toLowerCase'](),_0xaf2382='FORMAT_'+_0x38dd70['toUpperCase']();_0x227342['enableDefaultAttributesIntegration'](_0x38dd70),_0x227342['registerInlineAttribute'](_0x38dd70),_0x227342['descriptionFactory']['registerAttributeLabel'](_0x38dd70,o(_0x1054c0,_0xaf2382));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x592140=this['editor'],_0x43a6b6=_0x592140['locale'],_0x1a5ef9=_0x592140['plugins']['get']('TrackChangesEditing');function _0x195658(_0x51d4c5,_0x4b8d8f){_0x1a5ef9['descriptionFactory']['registerDescriptionCallback'](_0x1a6717=>{if('formatInline'!=_0x1a6717['type'])return;const {data:_0x1f27d9}=_0x1a6717;return _0x1f27d9&&_0x1f27d9['commandName']===_0x51d4c5?_0x1f27d9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x43a6b6,'*Format:*\x20%0',_0x4b8d8f)}:{'type':'format','content':o(_0x43a6b6,'*Remove\x20format:*\x20%0',_0x4b8d8f)}:void 0x0;});}_0x195658('bold',o(_0x43a6b6,'FORMAT_BOLD')),_0x195658('italic',o(_0x43a6b6,'FORMAT_ITALIC')),_0x195658('underline',o(_0x43a6b6,'FORMAT_UNDERLINE')),_0x195658('code',o(_0x43a6b6,'FORMAT_CODE')),_0x195658('strikethrough',o(_0x43a6b6,'FORMAT_STRIKETHROUGH')),_0x195658('subscript',o(_0x43a6b6,'FORMAT_SUBSCRIPT')),_0x195658('superscript',o(_0x43a6b6,'FORMAT_SUPERSCRIPT'));}}class F extends _0x27318c{['afterInit'](){const _0x528de7=this['editor'],_0x16a1a2=_0x528de7['locale'];if(!_0x528de7['plugins']['has']('BlockQuoteEditing'))return;const _0x4507a5=_0x528de7['plugins']['get']('TrackChangesEditing'),_0x591a49=this['editor']['commands']['get']('blockQuote');_0x4507a5['enableCommand']('blockQuote',(_0x5547d9,_0x2a329b={})=>{const _0x1e9663=this['editor']['model']['document']['selection'],_0x215b73=_0x2a329b&&void 0x0!==_0x2a329b['forceValue']?_0x2a329b['forceValue']:!_0x591a49['value'];let _0x2d3e9f=[];if(_0x215b73){const _0x3ea3ef=Array['from'](_0x1e9663['getSelectedBlocks']())['filter'](_0x154518=>oo(_0x154518)||function(_0xea2b41,_0xd53433){const _0x3054c2=_0xd53433['checkChild'](_0xea2b41['parent'],'blockQuote'),_0x190155=_0xd53433['checkChild'](['$root','blockQuote'],_0xea2b41);return _0x3054c2&&_0x190155;}(_0x154518,this['editor']['model']['schema']));_0x2d3e9f=to(_0x3ea3ef,_0x528de7['model']);}else{const _0x207b45=Array['from'](_0x1e9663['getSelectedBlocks']())['filter'](_0x3b2d80=>oo(_0x3b2d80));_0x2d3e9f=to(_0x207b45,_0x528de7['model']);}_0x528de7['model']['change'](()=>{for(const _0x32de05 of _0x2d3e9f)_0x4507a5['markBlockFormat'](_0x32de05,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x215b73}]});});}),_0x4507a5['descriptionFactory']['registerDescriptionCallback'](_0x19a1c6=>{const {data:_0x4cf6c8}=_0x19a1c6;if(_0x4cf6c8&&'blockQuote'==_0x4cf6c8['commandName']){const _0x5f3e1c=o(_0x16a1a2,'ELEMENT_BLOCK_QUOTE');return _0x4cf6c8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16a1a2,'*Set\x20format:*\x20%0',_0x5f3e1c)}:{'type':'format','content':o(_0x16a1a2,'*Remove\x20format:*\x20%0',_0x5f3e1c)};}});}}function oo(_0x42e10c){return'blockQuote'==_0x42e10c['parent']['name'];}class L extends _0x27318c{['afterInit'](){const _0x4a95cf=this['editor'],_0x131c41=_0x4a95cf['locale'],_0x1b562a=_0x4a95cf['plugins']['get']('TrackChangesEditing');_0x4a95cf['plugins']['has']('BookmarkEditing')&&(_0x1b562a['enableCommand']('insertBookmark'),_0x1b562a['enableDefaultAttributesIntegration']('updateBookmark'),_0x1b562a['registerBlockAttribute']('bookmarkId'),_0x1b562a['descriptionFactory']['registerDescriptionCallback'](_0x23a1e7=>{if('insertion'!=_0x23a1e7['type']&&'deletion'!=_0x23a1e7['type']&&'attribute'!=_0x23a1e7['type'])return;const _0x3ead9b=_0x23a1e7['getContainedElement']();if(null==_0x3ead9b)return;if(!_0x3ead9b['is']('element','bookmark'))return;const _0xaa7abd=_0x3ead9b['getAttribute']('bookmarkId');if('insertion'==_0x23a1e7['type'])return{'type':'insertion','content':o(_0x131c41,'*Insert:*\x20%0','\x22'+_0xaa7abd+'\x22\x20'+o(_0x131c41,'ELEMENT_BOOKMARK'))};if('deletion'==_0x23a1e7['type'])return{'type':'deletion','content':o(_0x131c41,'*Remove:*\x20%0','\x22'+_0xaa7abd+'\x22\x20'+o(_0x131c41,'ELEMENT_BOOKMARK'))};const {data:_0x54b8cc}=_0x23a1e7;if(!_0x54b8cc||'bookmarkId'!=_0x54b8cc['key'])return;return{'type':'format','content':o(_0x131c41,'*Set\x20bookmark:*\x20%0','\x22'+_0x54b8cc['newValue']+'\x22')};}));}}class J extends _0x27318c{['afterInit'](){const _0x58a592=this['editor'];_0x58a592['plugins']['has']('CaseChange')&&(_0x58a592['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x58a592['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x58a592['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x27318c{['afterInit'](){const _0x24dbba=this['editor'];_0x24dbba['commands']['get']('ckbox')&&_0x24dbba['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x27318c{['afterInit'](){const _0x122e35=this['editor'];if(!_0x122e35['plugins']['has']('CodeBlock'))return;const _0x27ec58=_0x122e35['plugins']['get']('TrackChangesEditing'),_0x2eb355=_0x122e35['locale'],_0x542891=_0x122e35['config']['get']('codeBlock')['languages'],_0x1da8b9=_0x122e35['commands']['get']('codeBlock');_0x27ec58['enableCommand']('indentCodeBlock'),_0x27ec58['enableCommand']('outdentCodeBlock'),_0x27ec58['enableCommand']('codeBlock',(_0x4a3fc4,_0x2c8023={})=>{const _0x19d8ee=_0x122e35['model'],_0x590766=_0x122e35['model']['document']['selection'],_0x51aa5b=_0x2c8023&&void 0x0!==_0x2c8023['forceValue']?_0x2c8023['forceValue']:!_0x1da8b9['value'];let _0x4a55be;_0x2c8023['language']||(_0x2c8023['language']=_0x542891[0x0]['language']),_0x4a55be=_0x51aa5b?Array['from'](_0x590766['getSelectedBlocks']())['filter'](_0x16da51=>eo(_0x16da51)||function(_0x46c489,_0x488ea4){if(_0x46c489['is']('rootElement')||_0x488ea4['isLimit'](_0x46c489))return!0x1;return _0x488ea4['checkChild'](_0x46c489['parent'],'codeBlock');}(_0x16da51,_0x19d8ee['schema'])):Array['from'](_0x590766['getSelectedBlocks']())['filter'](_0x1efd9f=>eo(_0x1efd9f));const _0x14c4b4=to(_0x4a55be,_0x19d8ee);_0x19d8ee['change'](()=>{for(const _0x4dc2dd of _0x14c4b4)_0x27ec58['markBlockFormat'](_0x4dc2dd,{'commandName':'codeBlock','commandParams':[{..._0x2c8023,'forceValue':_0x51aa5b}],'formatGroupId':'blockName'});});}),(_0x27ec58['descriptionFactory']['registerElementLabel']('codeBlock',_0x5abec5=>o(_0x2eb355,'ELEMENT_CODE_BLOCK',_0x5abec5)),_0x27ec58['descriptionFactory']['registerDescriptionCallback'](_0x1cf9cb=>{if('formatBlock'!=_0x1cf9cb['type'])return;const _0x3f8a10=_0x2eb355['t'],{data:_0x50c012}=_0x1cf9cb;if(!_0x50c012||'codeBlock'!=_0x50c012['commandName'])return;const _0x31085b=_0x50c012['commandParams'][0x0]['language'],_0x14d667=_0x3f8a10(_0x542891['find'](_0x3f4e76=>_0x3f4e76['language']===_0x31085b)['label'])['toLowerCase']();return _0x50c012['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2eb355,'*Set\x20format:*\x20%0',o(_0x2eb355,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x14d667+')')}:{'type':'format','content':o(_0x2eb355,'*Remove\x20format:*\x20%0',o(_0x2eb355,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x28a1fa){return'codeBlock'==_0x28a1fa['name'];}class z extends _0x27318c{['afterInit'](){const _0x57ee7f=this['editor'];if(!_0x57ee7f['plugins']['has']('CommentsEditing'))return;_0x57ee7f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4f82f2,_0x4ea9b3,_0x47a4cc){const _0x3c91c2=[];for(const _0x1b114a of _0x4ea9b3['getItems']())_0x1b114a['hasAttribute'](_0x4f82f2)&&_0x3c91c2['push'](_0x47a4cc['createRangeOn'](_0x1b114a));return _0x3c91c2;}function De(_0x12cefa,_0x592f7b,{showActiveMarker:_0xae9356=!0x0}={}){const _0x28c27d=_0x12cefa['plugins']['get']('TrackChangesEditing');return(_0x45c318,_0xbeda86,_0x511b61)=>{if(!_0x511b61['consumable']['test'](_0xbeda86['markerRange'],_0x45c318['name']))return;const _0x30a042=_0xbeda86['markerRange']['getWalker'](),_0x2fab1e=_0xbeda86['markerRange']['start'],_0x4eab5d=_0x12cefa['model']['schema'];let _0x54963a=null,_0x2dc7b0=null,_0x272f04=!0x1,_0x9cefdf=!0x1;for(const _0x1c7491 of _0x30a042){const _0xf91a52=_0x1c7491['item'];_0x272f04=_0x272f04||_0x4eab5d['isContent'](_0xf91a52);const _0x4b4f6e=_0x511b61['mapper']['toViewElement'](_0xf91a52);if(_0x4b4f6e&&_0x4b4f6e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1c7491['type']&&(_0x4eab5d['isBlock'](_0xf91a52)&&!_0x4eab5d['isLimit'](_0xf91a52)&&(_0xf91a52['nextSibling']||_0x2fab1e['isAtEnd']?_0x54963a&&_0x54963a['parent']==_0xf91a52||(_0x54963a=_0xf91a52,_0x540103(_0x1c7491['previousPosition']),_0x9cefdf=!0x0):_0x2dc7b0=_0x2dc7b0||_0x1c7491['previousPosition']));}function _0x540103(_0x8d2642){const {authorId:_0x5676cb}=_0x28c27d['_splitMarkerName'](_0xbeda86['markerName']),_0x486778=_0x511b61['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x592f7b,'data-author-id':_0x5676cb}),_0xbe554c=_0x511b61['mapper']['toViewPosition'](_0x8d2642);_0xae9356&&_0x28c27d['activeMarkers']['includes'](_0xbeda86['markerName'])&&_0x511b61['writer']['addClass']('ck-suggestion-marker--active',_0x486778),_0x511b61['writer']['insert'](_0xbe554c,_0x486778),_0x511b61['mapper']['bindElementToMarker'](_0x486778,_0xbeda86['markerName']);}_0x272f04||_0x9cefdf||!_0x2dc7b0||_0x540103(_0x2dc7b0);};}class K extends _0x27318c{static get['requires'](){return[_0x14f534];}['init'](){const _0x409877=this['editor'],_0x178a8e=_0x409877['plugins']['get']('TrackChangesEditing');_0x178a8e['enableCommand']('delete');const _0x5b9bc8=_0x409877['commands']['get']('deleteForward');_0x178a8e['enableCommand']('deleteForward',(_0x55f070,_0x2e2cd9={})=>{const _0x455081=_0x409877['model']['createSelection'](_0x409877['model']['document']['selection']);_0x455081['isCollapsed']&&_0x409877['model']['modifySelection'](_0x455081,{'direction':'forward','unit':_0x2e2cd9['unit']});const _0x36a329=_0x455081['getFirstRange'](),_0x4fde69=_0x48c676['fromRange'](_0x36a329);let _0x215831;_0x55f070(_0x2e2cd9),_0x215831='$graveyard'==_0x4fde69['root']['rootName']?_0x409877['model']['createRange'](_0x36a329['start']):_0x409877['model']['createRange'](_0x4fde69['start'],_0x4fde69['end']),_0x4fde69['detach'](),_0x409877['model']['enqueueChange'](_0x5b9bc8['buffer']['batch'],_0x13e864=>{_0x5b9bc8['buffer']['lock'](),_0x13e864['setSelection'](_0x13e864['createRange'](_0x215831['end'])),_0x5b9bc8['buffer']['unlock']();});}),_0x409877['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x409877,'merge'),{'priority':'high'}),_0x409877['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x25dbe7,_0x2ab8de,_0x3cf477)=>{_0x3cf477['options']['showSuggestionHighlights']&&De(_0x409877,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x25dbe7,_0x2ab8de,_0x3cf477);},{'priority':'high'}),_0x409877['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x38a41d,_0x1f5df7,_0x586a81)=>{const _0x383f19=_0x586a81['mapper']['markerNameToElements'](_0x1f5df7['markerName']);if(_0x383f19){for(const _0xfadb of _0x383f19)_0xfadb['is']('uiElement')&&(_0x586a81['mapper']['unbindElementFromMarkerName'](_0xfadb,_0x1f5df7['markerName']),_0x586a81['writer']['remove'](_0xfadb));}},{'priority':'high'});}}class W extends _0x27318c{['afterInit'](){const _0x45584f=this['editor'];if(!_0x45584f['plugins']['has']('ListEditing'))return;const _0x3f6910=_0x45584f['locale'],_0x388407=_0x45584f['plugins']['get']('TrackChangesEditing'),_0x28ef45=_0x45584f['plugins']['has']('TodoListEditing'),_0x393d46=!!_0x45584f['config']['get']('list.multiBlock');function _0xe22599(_0x2a0a31){return{'type':'format','content':''+o(_0x3f6910,'*Set\x20format:*\x20%0',_0x2a0a31)};}function _0x46d658(_0xc554a7){return{'type':'format','content':''+o(_0x3f6910,'*Remove\x20format:*\x20%0',_0xc554a7)};}_0x388407['enableDefaultAttributesIntegration']('numberedList'),_0x388407['enableDefaultAttributesIntegration']('bulletedList'),_0x388407['enableDefaultAttributesIntegration']('customNumberedList'),_0x388407['enableDefaultAttributesIntegration']('customBulletedList'),_0x388407['enableDefaultAttributesIntegration']('indentList'),_0x388407['enableDefaultAttributesIntegration']('outdentList'),_0x388407['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x388407['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x388407['registerBlockAttribute']('listItemId'),_0x388407['registerBlockAttribute']('listType'),_0x388407['registerBlockAttribute']('listIndent'),_0x393d46&&(_0x388407['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x388407['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x28ef45&&(_0x388407['enableDefaultAttributesIntegration']('todoList'),_0x388407['enableDefaultAttributesIntegration']('checkTodoList'),_0x388407['registerBlockAttribute']('todoListChecked'),_0x388407['descriptionFactory']['registerDescriptionCallback'](_0x37b761=>{const {data:_0x86384b}=_0x37b761;if(_0x86384b&&'todoListChecked'==_0x86384b['key'])return{'type':'format','content':_0x86384b['newValue']?o(_0x3f6910,'*Check\x20item*'):o(_0x3f6910,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xf196aa=>{if(_0xf196aa['batch']['isUndo'])return!0x1;let _0x3b3eaa=!0x1;const _0x50c609=_0x388407['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2591e2=>'todoListChecked'===_0x388407['_getAttributeKey'](_0x2591e2));for(const _0x417539 of _0x50c609){'todo'!=_0x417539['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x388407['_findSuggestions'](_0x417539['getFirstRange'](),'attribute')['find'](_0x592fd1=>'listType'===_0x388407['_getAttributeKey'](_0x592fd1['suggestion']))||(_0xf196aa['removeMarker'](_0x417539['getFirstMarker']()),_0x3b3eaa=!0x0));}return _0x3b3eaa;})),_0x388407['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3f6910,'FORMAT_INDENT'));const _0x3639c3={'type':'format','content':''};_0x388407['descriptionFactory']['registerDescriptionCallback'](_0x4199ff=>{const {data:_0x2817bc}=_0x4199ff;if(!_0x2817bc||'listType'!=_0x2817bc['key'])return;let _0x36edbf=_0x4199ff['head'];for(;_0x36edbf;){if(_0x36edbf['data']&&(('listStyle'==_0x36edbf['data']['key']||'listMarkerStyle'==_0x36edbf['data']['key'])&&(_0x36edbf['data']['newValue']&&'default'!=_0x36edbf['data']['newValue']||'default'!=_0x36edbf['data']['oldValue']&&!_0x2817bc['newValue'])||!_0x393d46&&_0x36edbf['data']['key']==m))return _0x3639c3;_0x36edbf=_0x36edbf['next'];}if(null==_0x2817bc['newValue'])switch(_0x2817bc['oldValue']){case'bulleted':return _0x46d658(o(_0x3f6910,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46d658(o(_0x3f6910,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46d658(o(_0x3f6910,'ELEMENT_TODO_LIST'));}switch(_0x2817bc['newValue']){case'bulleted':return _0xe22599(o(_0x3f6910,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe22599(o(_0x3f6910,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe22599(o(_0x3f6910,'ELEMENT_TODO_LIST'));}}),_0x388407['descriptionFactory']['registerDescriptionCallback'](_0x1c0926=>{const {data:_0x4477a5}=_0x1c0926;if(_0x4477a5&&'listIndent'==_0x4477a5['key'])return null==_0x4477a5['newValue']||null==_0x4477a5['oldValue']&&0x0==_0x4477a5['newValue']?_0x3639c3:void 0x0;}),_0x388407['descriptionFactory']['registerDescriptionCallback'](_0x39ca58=>{if('attribute'!=_0x39ca58['type'])return;const {data:_0xbdeb47}=_0x39ca58;if(!_0xbdeb47||'listItemId'!=_0xbdeb47['key'])return;const _0x2d8124=Te(_0x39ca58);return'newValue'==_0x2d8124?{'type':'format','content':o(_0x3f6910,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2d8124?{'type':'format','content':o(_0x3f6910,'*Split:*\x20list\x20item')}:_0x3639c3;}),_0x45584f['model']['document']['registerPostFixer'](_0x3c161c=>this['listItemIdFixer'](_0x3c161c)),_0x45584f['model']['document']['registerPostFixer'](_0x49db9a=>this['noTrackChangesFixer'](_0x49db9a)),_0x45584f['model']['document']['on']('change:data',(_0x1f1a35,_0x4dccad)=>{if(_0x4dccad['isUndo']||!_0x4dccad['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x90c7cc){if(_0x90c7cc['batch']['isUndo']||!_0x90c7cc['batch']['isLocal'])return!0x1;let _0x8c3cb0=!0x1;const _0xa878f6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28ee84=>_0x28ee84['data']&&'listItemId'==_0x28ee84['data']['key'])['filter'](_0x56fb89=>_0x56fb89['data']['newValue']&&_0x56fb89['data']['oldValue']);for(const _0xe0909f of _0xa878f6)Te(_0xe0909f)||(_0x90c7cc['removeMarker'](_0xe0909f['getFirstMarker']()),_0x8c3cb0=!0x0);return _0x8c3cb0;}['noTrackChangesFixer'](_0x914b3d){if(_0x914b3d['batch']['isUndo']||!_0x914b3d['batch']['isLocal'])return!0x1;const _0x56d085=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x56d085['trackChangesCommand']['value'])return!0x1;let _0x2ddb3e=!0x1;const _0x236040=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3b175b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1b9014=>'attribute'==_0x1b9014['type'])['filter'](_0x377372=>_0x236040['includes'](_0x377372['attributeKey']));if(0x0==_0x3b175b['length'])return _0x2ddb3e;for(const _0x52392b of _0x3b175b){const _0x4239b4=_0x56d085['_findSuggestions'](_0x52392b['range'],'attribute')['filter'](_0x40a255=>!_0x40a255['meta']['isNextTo'])['map'](_0x146ad8=>_0x146ad8['suggestion'])['filter'](_0x4e5ed5=>{const _0x113ec9=_0x56d085['_getAttributeKey'](_0x4e5ed5);return _0x236040['includes'](_0x113ec9);});if(_0x4239b4['length']){for(const _0x3470de of _0x4239b4)_0x914b3d['removeMarker'](_0x3470de['getFirstMarker']());_0x2ddb3e=!0x0;}}return _0x2ddb3e;}['assureChains'](){const _0x165861=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24a9ae=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x33891a;const _0x3a9db6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3cb276=>{if(_0x3cb276['data']['oldRange']||!_0x3cb276['data']['newRange'])return null;if(!_0x3cb276['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x20bc05}=_0x165861['_splitMarkerName'](_0x3cb276['name']);if(!_0x165861['hasSuggestion'](_0x20bc05))return null;const _0x12f462=_0x165861['getSuggestion'](_0x20bc05);return _0x24a9ae['includes'](_0x12f462['data']['key']);})['map'](_0x36a7a3=>{const {id:_0xc039ae}=_0x165861['_splitMarkerName'](_0x36a7a3['name']),_0x1502bd=_0x165861['getSuggestion'](_0xc039ae);return _0x33891a=_0x1502bd['attributes']['groupId'],_0x1502bd['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3a9db6['size'])return;const _0x314670=_0x165861['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ff481=>'attribute'==_0x2ff481['type']&&_0x2ff481['data']&&_0x24a9ae['includes'](_0x2ff481['data']['key'])&&_0x2ff481['attributes']['groupId']!=_0x33891a)['map'](_0x42a5da=>({'listItem':_0x42a5da['getFirstRange']()['start']['nodeAfter'],'groupId':_0x42a5da['attributes']['groupId']})),_0x25f49b=new Set();for(const {groupId:_0x5e6110,listItem:_0x561fdc}of _0x314670)_0x3a9db6['has'](_0x561fdc)&&_0x25f49b['add'](_0x5e6110);for(const _0x333c1b of _0x165861['getSuggestions']())_0x25f49b['has'](_0x333c1b['attributes']['groupId'])&&_0x333c1b['setAttribute']('groupId',_0x33891a);}['_supportLegacySuggestions'](){const _0xb936e2=this['editor'],_0x30471f=_0xb936e2['locale'],_0x52aeff=_0xb936e2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x52aeff['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x36a191,_0x374042){const _0x383454=[];for(let _0x145565 of _0x36a191)_0x145565['start']['nodeAfter']===_0x145565['end']['parent']&&(_0x145565=_0xb936e2['model']['createRange'](_0xb936e2['model']['createPositionAt'](_0x145565['start']['nodeAfter'],0x0))),_0x383454['push'](_0x145565);_0xb936e2['model']['change'](_0x4db6fd=>{const _0x29422c=_0xb936e2['model']['document']['selection'],_0x249ebb=Array['from'](_0x29422c['getRanges']())['map'](_0xa54c89=>_0x48c676['fromRange'](_0xa54c89));_0x4db6fd['setSelection'](_0x383454),_0xb936e2['commands']['get'](_0x374042['commandName'])['refresh'](),_0x374042['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xb936e2['execute'](_0x374042['commandName'],..._0x374042['commandParams']),_0x4db6fd['setSelection'](_0x249ebb);for(const _0x3948d0 of _0x249ebb)_0x3948d0['detach']();});}),_0x52aeff['descriptionFactory']['registerElementLabel'](function(_0x56fbd0){const _0x8647be=!_0xb936e2['model']['schema']['isObject'](_0x56fbd0),_0x5bec59=_0x56fbd0['previousSibling'],_0x36afa3=_0x56fbd0['nextSibling'],_0x4a7ee2=_0x56fbd0['getAttribute']('listItemId'),_0x568858=!_0x5bec59||_0x5bec59['getAttribute']('listItemId')!==_0x4a7ee2,_0x53147c=!_0x36afa3||_0x36afa3['getAttribute']('listItemId')!==_0x4a7ee2;return _0x8647be&&Boolean(_0x4a7ee2)&&_0x568858&&_0x53147c;},_0x1b3ee0=>o(_0x30471f,'ELEMENT_LIST_ITEM',_0x1b3ee0));}['_registerLegacyDescription'](){const _0xaa0c75=this['editor'],_0xed3701=_0xaa0c75['locale'];function _0x1aa621(_0x249e2){const _0x406dd5=_0xaa0c75['commands']['get']('bulletedList')['value'],_0x43dc97=_0xaa0c75['commands']['get']('numberedList')['value'];return'numberedList'===_0x249e2?_0x406dd5:_0x43dc97;}_0xaa0c75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x158dd1){if('formatBlock'!=_0x158dd1['type'])return;const {data:_0x4e0644}=_0x158dd1;if(!_0x4e0644)return;let _0x2df9d1,_0x3a58e7,_0x3b65f7,_0x14c021;switch(_0x4e0644['commandName']){case'bulletedList':_0x3b65f7=_0x4e0644['commandParams'][0x0]['forceValue'],_0x14c021=_0x1aa621(_0x4e0644['commandName']),_0x2df9d1=_0x3b65f7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x14c021&&_0xaa0c75['config']['get']('list.multiBlock')||(_0x2df9d1='*Change\x20to:*\x20%0'),_0x3a58e7={'type':'format','content':o(_0xed3701,_0x2df9d1,o(_0xed3701,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3b65f7=_0x4e0644['commandParams'][0x0]['forceValue'],_0x14c021=_0x1aa621(_0x4e0644['commandName']),_0x2df9d1=_0x3b65f7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x14c021&&_0xaa0c75['config']['get']('list.multiBlock')||(_0x2df9d1='*Change\x20to:*\x20%0'),_0x3a58e7={'type':'format','content':o(_0xed3701,_0x2df9d1,o(_0xed3701,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2df9d1='*Indent:*\x20%0',_0x3a58e7={'type':'format','content':o(_0xed3701,_0x2df9d1,o(_0xed3701,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2df9d1=function(_0xc525f1){const _0x2c6024=_0xc525f1['getFirstRange']();let _0x3baa08=_0x2c6024['start']['nodeAfter'];for(;_0x3baa08&&_0x2c6024['containsItem'](_0x3baa08);){if(_0x3baa08['getAttribute']('listIndent')>0x0)return!0x1;_0x3baa08=_0x3baa08['nextSibling'];}return!0x0;}(_0x158dd1)?o(_0xed3701,'*Format:*\x20remove\x20from\x20%0',o(_0xed3701,function(_0x597c5c){return'ELEMENT_'+_0x597c5c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x158dd1))):o(_0xed3701,'*Outdent:*\x20%0',o(_0xed3701,'ELEMENT_LIST_ITEM')),_0x3a58e7={'type':'format','content':_0x2df9d1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4e0644['multipleBlocks']&&(_0x2df9d1='*Merge:*\x20%0',_0x3a58e7={'type':'deletion','content':o(_0xed3701,_0x2df9d1,o(_0xed3701,'ELEMENT_LIST_ITEM'))});}return _0x3a58e7;});}}function Te(_0x1d9ae7){let _0x44af3d=_0x1d9ae7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x44af3d;){const _0x1d025e=_0x44af3d['getAttribute']('listItemId');if(!_0x1d025e)return!0x1;if(_0x1d025e==_0x1d9ae7['data']['newValue'])return'newValue';if(_0x1d025e==_0x1d9ae7['data']['oldValue'])return'oldValue';_0x44af3d=_0x44af3d['previousSibling'];}return!0x1;}class Se extends _0x27318c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xd13d33=this['editor']['config']['get']('list.properties'),_0x19d00e=this['editor']['plugins']['get']('TrackChangesEditing');_0xd13d33['styles']&&(_0x19d00e['enableDefaultAttributesIntegration']('listStyle'),_0x19d00e['registerBlockAttribute']('listStyle')),_0xd13d33['reversed']&&(_0x19d00e['enableDefaultAttributesIntegration']('listReversed'),_0x19d00e['registerBlockAttribute']('listReversed')),_0xd13d33['startIndex']&&(_0x19d00e['enableDefaultAttributesIntegration']('listStart'),_0x19d00e['registerBlockAttribute']('listStart'));const _0x5d81f2={'type':'format','content':''};_0x19d00e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xb3aabf=this['editor']['locale'];_0x19d00e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xb3aabf,'FORMAT_LIST_REVERSED')),_0x19d00e['descriptionFactory']['registerDescriptionCallback'](_0x387eb7=>{const {data:_0x2ecc89}=_0x387eb7;if(_0x2ecc89&&'listReversed'==_0x2ecc89['key'])return null==_0x2ecc89['newValue']||0x0==_0x2ecc89['newValue']&&null==_0x2ecc89['oldValue']?_0x5d81f2:void 0x0;}),_0x19d00e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xb3aabf,'FORMAT_LIST_START')),_0x19d00e['descriptionFactory']['registerDescriptionCallback'](_0x59a3e8=>{const {data:_0x43562a}=_0x59a3e8;if(_0x43562a&&'listStart'==_0x43562a['key'])return null==_0x43562a['newValue']||0x1==_0x43562a['newValue']&&null==_0x43562a['oldValue']?_0x5d81f2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2f7178=>{if(_0x2f7178['batch']['isUndo'])return!0x1;let _0x211183=!0x1;const _0x42b4b=_0x19d00e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x309ee7=>{const _0x4e90c0=_0x19d00e['_getAttributeKey'](_0x309ee7);return'listStart'==_0x4e90c0||'listReversed'==_0x4e90c0;});for(const _0x359192 of _0x42b4b){const _0x4eecd8=_0x359192['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4eecd8||'customNumbered'==_0x4eecd8)continue;_0x19d00e['_findSuggestions'](_0x359192['getFirstRange'](),'attribute')['find'](_0xcdc12b=>'listType'==_0x19d00e['_getAttributeKey'](_0xcdc12b['suggestion']))||(_0x2f7178['removeMarker'](_0x359192['getFirstMarker']()),_0x211183=!0x0);}return _0x211183;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x6049b1){const _0x3063da=this['editor']['locale'],{data:_0x3676f5}=_0x6049b1,_0x573513={'type':'format','content':''};if(!_0x3676f5||'listStyle'!=_0x3676f5['key'])return;if(!_0x3676f5['oldValue'])return'default'==_0x3676f5['newValue']?_0x573513:{'type':'format','content':''+o(_0x3063da,'*Set\x20format:*\x20%0',o(_0x3063da,this['_getTranslationKeyForListStyle'](_0x3676f5['newValue'])))};if(!_0x3676f5['newValue']){if('default'==_0x3676f5['oldValue'])return _0x573513;let _0x9b7afb=_0x6049b1['head'];for(;_0x9b7afb;){if(_0x9b7afb['data']&&'listType'==_0x9b7afb['data']['key']&&_0x9b7afb['data']['newValue'])return _0x573513;_0x9b7afb=_0x9b7afb['next'];}return{'type':'format','content':''+o(_0x3063da,'*Remove\x20format:*\x20%0',o(_0x3063da,this['_getTranslationKeyForListStyle'](_0x3676f5['oldValue'])))};}if('default'!=_0x3676f5['newValue'])return{'type':'format','content':''+o(_0x3063da,'*Set\x20format:*\x20%0',o(_0x3063da,this['_getTranslationKeyForListStyle'](_0x3676f5['newValue'])))};let _0x31d0ea=_0x6049b1['head'];for(;_0x31d0ea;){if(_0x31d0ea['data']&&'listType'==_0x31d0ea['data']['key']&&_0x31d0ea['data']['newValue']&&_0x31d0ea['data']['oldValue'])return _0x573513;_0x31d0ea=_0x31d0ea['next'];}return{'type':'format','content':o(_0x3063da,'*Set\x20format:*\x20%0',o(_0x3063da,'ELEMENT_'+_0x6049b1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x24bdac=this['editor'],_0x24c823=_0x24bdac['locale'];_0x24bdac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16ec56=>{if('formatBlock'!=_0x16ec56['type'])return;const {data:_0x99a661}=_0x16ec56;if(!_0x99a661)return;let _0x327454,_0x303091;switch(_0x99a661['commandName']){case'listStyle':_0x327454='*Change\x20to:*\x20%0',_0x303091={'type':'format','content':o(_0x24c823,_0x327454,o(_0x24c823,this['_getTranslationKeyForListStyle'](_0x99a661['commandParams'][0x0]['type'])))};break;case'listReversed':_0x327454=_0x99a661['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x303091={'type':'format','content':o(_0x24c823,_0x327454)};break;case'listStart':_0x327454='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x303091={'type':'format','content':o(_0x24c823,_0x327454,_0x99a661['commandParams'][0x0]['startIndex'])};}return _0x303091;});}['_getTranslationKeyForListStyle'](_0x4b767f){return'ELEMENT_'+function(_0x5c2b7d){if(_e['includes'](_0x5c2b7d))return'bulleted';if(Re['includes'](_0x5c2b7d))return'numbered';return null;}(_0x4b767f)['toUpperCase']()+'_LIST_'+_0x4b767f['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x27318c{static get['requires'](){return[_0x396d86];}['init'](){const _0x525c37=this['editor'],_0xf9ef12=_0x525c37['plugins']['get']('TrackChangesEditing'),_0x29f911=_0x525c37['commands']['get']('enter');_0xf9ef12['enableCommand']('enter',()=>{_0x525c37['model']['change'](_0x3a8ad0=>{const _0x16cb5f=_0x525c37['model']['document']['selection'],_0x20904a=_0x16cb5f['getFirstPosition'](),_0x39707f=_0x48c676['fromRange'](_0x16cb5f['getFirstRange']());if(_0x29f911['enterBlock'](_0x3a8ad0)){const _0xe03d0f=_0x525c37['model']['createPositionAt'](_0x20904a['parent']['nextSibling'],0x0),_0x28bd09=_0x3a8ad0['createRange'](_0x20904a,_0xe03d0f);_0xf9ef12['markInsertion'](_0x28bd09);}else _0x3a8ad0['setSelection'](_0x3a8ad0['createRange'](_0x39707f['end']));_0x39707f['detach'](),_0x29f911['fire']('afterExecute',{'writer':_0x3a8ad0});});}),_0x525c37['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x525c37,'split'),{'priority':'high'}),_0x525c37['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1853f8,_0x957312,_0x2bd371)=>{const _0x2155ec=_0x2bd371['mapper']['markerNameToElements'](_0x957312['markerName']);if(_0x2155ec){for(const _0x4fca53 of _0x2155ec)_0x4fca53['hasClass']('ck-suggestion-marker-split')&&(_0x2bd371['mapper']['unbindElementFromMarkerName'](_0x4fca53,_0x957312['markerName']),_0x2bd371['writer']['remove'](_0x4fca53));}},{'priority':'high'}),_0x525c37['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4f8c6b,_0x353466,_0x3cf9f2)=>{_0x3cf9f2['options']['showSuggestionHighlights']&&De(_0x525c37,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4f8c6b,_0x353466,_0x3cf9f2);},{'priority':'high'});}}class Y extends _0x27318c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xcbcaa=this['editor']['plugins']['get']('TrackChangesEditing');_0xcbcaa['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xcbcaa['enableCommand']('findNext'),_0xcbcaa['enableCommand']('findPrevious'),_0xcbcaa['enableCommand']('replace'),_0xcbcaa['enableCommand']('replaceAll');}['handleFindCommand'](_0x6937cd,_0x873e03,_0x2c23d3={}){const _0x3c3872=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x6937cd(_0x22b7ca=>{let _0x8b7bac=('string'==typeof _0x873e03?_0x3c3872['findByTextCallback'](_0x873e03,_0x2c23d3):_0x873e03)(_0x22b7ca);Array['isArray'](_0x8b7bac)&&(_0x8b7bac={'results':_0x8b7bac,'searchText':'string'==typeof _0x873e03?_0x873e03:''});const _0x4cfa87=_0x8b7bac['results']['filter'](_0xf3988e=>!0x1===this['_isInDeletionRange'](_0xf3988e,_0x22b7ca['item']));return{..._0x8b7bac,'results':_0x4cfa87};},_0x2c23d3);}['_isInDeletionRange'](_0x120ed5,_0x5b524c){const _0xad7e8c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b524c,_0x120ed5['start']),this['editor']['model']['createPositionAt'](_0x5b524c,_0x120ed5['end']));for(const _0x4d8912 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xad7e8c['getIntersection'](_0x4d8912['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 _0x27318c{['afterInit'](){const _0x23a8d8=this['editor']['locale'],_0x24bcaf=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2f5670,commandName:_0x528e8b}of ro)this['editor']['plugins']['has'](_0x2f5670)&&(_0x24bcaf['enableDefaultAttributesIntegration'](_0x528e8b),_0x24bcaf['registerInlineAttribute'](_0x528e8b));_0x24bcaf['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x23a8d8,'FORMAT_FONT_SIZE')),_0x24bcaf['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x23a8d8,'FORMAT_FONT_FAMILY')),_0x24bcaf['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x23a8d8,'FORMAT_FONT_COLOR')),_0x24bcaf['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x23a8d8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22be44=this['editor'],_0x156e53=_0x22be44['locale'];_0x22be44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ed964=>{const _0x2bc2d3=_0x156e53['t'];if('formatInline'!=_0x3ed964['type'])return;const {data:_0x4c7d10}=_0x3ed964;if(null!=_0x4c7d10){if('fontSize'==_0x4c7d10['commandName']){const _0x4109c7=_0x4c7d10['commandParams'][0x0]['value'];if(_0x4109c7){const _0x1d0aff=_0x2bc2d3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x58f8d0=>_0x58f8d0['model']==_0x4109c7)['title'])['toLowerCase']();return{'type':'format','content':o(_0x156e53,'*Set\x20font\x20size:*\x20%0',_0x1d0aff)};}return{'type':'format','content':o(_0x156e53,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4c7d10['commandName']){const _0x390c7c=_0x4c7d10['commandParams'][0x0]['value'];return _0x390c7c?{'type':'format','content':o(_0x156e53,'*Set\x20font\x20family:*\x20%0',_0x390c7c)}:{'type':'format','content':o(_0x156e53,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4c7d10['commandName']){const _0x95dbd8=_0x4c7d10['commandParams'][0x0]['value'];if(_0x95dbd8){const _0x5244bb=_0x3f4046(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5000e8=>_0x5000e8['model']==_0x95dbd8);let _0x490a95=_0x95dbd8,_0x579d6a='';return _0x5244bb&&(_0x490a95=_0x5244bb['label'],_0x579d6a=_0x2bc2d3(_0x490a95)['toLowerCase']()),{'type':'format','content':o(_0x156e53,'*Set\x20font\x20color:*\x20%0',_0x579d6a)['trim'](),'color':{'value':_0x95dbd8,'title':_0x579d6a||_0x490a95}};}return{'type':'format','content':o(_0x156e53,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4c7d10['commandName']){const _0x565bcb=_0x4c7d10['commandParams'][0x0]['value'];if(_0x565bcb){const _0x50f983=_0x3f4046(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x46d4a0=>_0x46d4a0['model']==_0x565bcb);let _0x1ecf02=_0x565bcb,_0x3db25f='';return _0x50f983&&(_0x1ecf02=_0x50f983['label'],_0x3db25f=_0x2bc2d3(_0x1ecf02)['toLowerCase']()),{'type':'format','content':o(_0x156e53,'*Set\x20font\x20background\x20color:*\x20%0',_0x3db25f)['trim'](),'color':{'value':_0x565bcb,'title':_0x3db25f||_0x1ecf02}};}return{'type':'format','content':o(_0x156e53,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x27318c{['afterInit'](){const _0x17091d=this['editor'],_0x2c7a6a=_0x17091d['plugins']['get']('TrackChangesEditing'),_0x1e7412=_0x17091d['commands']['get']('copyFormat'),_0x2edd24=_0x17091d['commands']['get']('pasteFormat');_0x1e7412&&_0x2edd24&&(_0x2c7a6a['enableDefaultAttributesIntegration']('pasteFormat'),_0x2c7a6a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4862b8=this['editor'],_0x125314=_0x4862b8['locale'];_0x4862b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bc82a=>{if('formatBlock'!=_0x4bc82a['type']&&'formatInline'!=_0x4bc82a['type'])return;const {data:_0x24ae65}=_0x4bc82a;if(_0x24ae65&&'pasteFormat'===_0x24ae65['commandName']){const _0x4dc26a=[],_0x3606aa=_0x24ae65['commandParams'][0x0];for(const [_0x38cb28,_0x99d4bb]of Object['entries'](_0x3606aa))_0x4dc26a['push'](so(_0x4862b8,_0x38cb28,_0x99d4bb));return _0x4dc26a['length']?{'type':'format','content':o(_0x125314,'*Set\x20format\x20to:*\x20%0',_0x4dc26a['join'](',\x20'))}:{'type':'format','content':o(_0x125314,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4c4f5d,_0x106b47,_0x249ce8){const _0x45fc75=_0x4c4f5d['locale']['t'],_0x23c863=_0x106b47['split'](/(?=[A-Z])/)['join']('\x20'),_0x4b7fdf=_0x45fc75(_0x23c863['charAt'](0x0)['toUpperCase']()+_0x23c863['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x249ce8)return _0x4b7fdf;if('fontColor'===_0x106b47||'fontBackgroundColor'===_0x106b47){const _0x148dc2=_0x3f4046(_0x4c4f5d['config']['get']('fontColor.colors'))['find'](_0x8bd220=>_0x8bd220['model']==_0x249ce8);return _0x4b7fdf+'\x20('+(_0x148dc2?_0x45fc75(_0x148dc2['label'])['toLowerCase']():_0x249ce8)+')';}if('fontSize'===_0x106b47&&isNaN(parseFloat(_0x249ce8))){const _0x55970a=_0x4c4f5d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4c4f5d['config']['get']('fontSize.options'))['find'](_0x48b39f=>_0x48b39f['model']==_0x249ce8);return _0x4b7fdf+'\x20('+(_0x55970a?_0x45fc75(_0x55970a['title'])['toLowerCase']():_0x249ce8)+')';}return _0x4b7fdf+'\x20('+_0x249ce8+')';}class nt extends _0x27318c{['_headingOptions'];['afterInit'](){const _0x264743=this['editor'];if(!_0x264743['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x264743['config']['get']('heading.options');const _0x1ccb4c=_0x264743['locale'],_0x52cfb9=_0x264743['plugins']['get']('TrackChangesEditing');_0x52cfb9['enableDefaultAttributesIntegration']('heading');for(const _0x14f1b0 of this['_headingOptions'])'paragraph'!=_0x14f1b0['model']&&_0x52cfb9['descriptionFactory']['registerElementLabel'](_0x14f1b0['model'],_0xf009f2=>{const _0x924b8a=this['_getHeadingLevel'](_0x14f1b0['model']);return null!==_0x924b8a?_0x5074c4(_0xf009f2,_0x924b8a):_0x171e3d(_0xf009f2,_0x14f1b0['title']);});function _0x5074c4(_0xe301e6,_0x48a423){return o(_0x1ccb4c,'ELEMENT_HEADING',[_0xe301e6,_0x48a423]);}function _0x171e3d(_0x423b38,_0x4fa571){return o(_0x1ccb4c,'ELEMENT_HEADING_CUSTOM',[_0x423b38,_0x4fa571]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17fa38=this['editor'],_0x38a066=_0x17fa38['locale'];function _0x2621c4(_0x471a95,_0x5bc0f7){return o(_0x38a066,'ELEMENT_HEADING_CUSTOM',[_0x471a95,_0x5bc0f7]);}_0x17fa38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dde8f=>{if('formatBlock'!=_0x4dde8f['type'])return;const {data:_0x2e776e}=_0x4dde8f;if(_0x2e776e&&'heading'==_0x2e776e['commandName']){const _0x2d0135=_0x2e776e['commandParams'][0x0]['value'],_0x4edde1=this['_getHeadingLevel'](_0x2d0135);if(null!==_0x4edde1)return{'type':'format','content':o(_0x38a066,'*Change\x20to:*\x20%0',(_0x15f1b7=0x1,_0x29afb6=_0x4edde1,o(_0x38a066,'ELEMENT_HEADING',[_0x15f1b7,_0x29afb6])))};const _0x4c39b6=this['_headingOptions']['find'](_0x5662bf=>_0x5662bf['model']===_0x2d0135)['title'];return{'type':'format','content':o(_0x38a066,'*Change\x20to:*\x20%0',_0x2621c4(0x1,_0x4c39b6))};}var _0x15f1b7,_0x29afb6;});}['_getHeadingLevel'](_0x3f55b4){const _0x1739bd=_0x3f55b4['match'](/^heading(\d+)/);if(_0x1739bd)return _0x1739bd[0x1];const _0x5e3cda=this['_headingOptions']?.['find'](_0x19e9f6=>_0x19e9f6['model']==_0x3f55b4);if(_0x5e3cda&&_0x5e3cda['view']){const _0xc96894=_0x5e3cda['view'],_0x4bfdb7=(_0xc96894['name']??_0xc96894)['match'](/^h(\d+)/);if(_0x4bfdb7)return _0x4bfdb7[0x1];}return null;}}class it extends _0x27318c{['afterInit'](){const _0xf223ed=this['editor'];if(!_0xf223ed['plugins']['has']('HighlightEditing'))return;const _0x8e7d67=_0xf223ed['plugins']['get']('TrackChangesEditing'),_0x4583f5=_0xf223ed['locale'];_0x8e7d67['enableDefaultAttributesIntegration']('highlight'),_0x8e7d67['registerInlineAttribute']('highlight'),_0x8e7d67['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4583f5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bcfc0=this['editor'],_0x11334d=_0x5bcfc0['locale'];_0x5bcfc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x314e0c=>{if('formatInline'!=_0x314e0c['type'])return;const {data:_0xaade86}=_0x314e0c;if(_0xaade86&&'highlight'==_0xaade86['commandName']){const _0x5120d8=_0x11334d['t'],_0x2a4890=_0xaade86['commandParams'][0x0]['value'];if(_0x2a4890){const _0x2c0227=_0x5bcfc0['config']['get']('highlight.options')['find'](_0x8373cf=>_0x8373cf['model']==_0x2a4890),_0x486e28=_0x5120d8(_0x2c0227['title'])['toLowerCase']();return{'type':'format','content':o(_0x11334d,'*Set\x20highlight:*\x20%0',_0x486e28),'color':{'value':_0x2c0227['color'],'title':_0x2c0227['title']}};}return{'type':'format','content':o(_0x11334d,'*Remove\x20highlight*',o(_0x11334d,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x27318c{['afterInit'](){const _0x1f61d0=this['editor'];if(!_0x1f61d0['plugins']['has']('HorizontalLineEditing'))return;_0x1f61d0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3f03e4=_0x1f61d0['plugins']['get']('TrackChangesEditing'),_0x25f436=_0x1f61d0['locale'];_0x3f03e4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4aee21=>o(_0x25f436,'ELEMENT_HORIZONTAL_LINE',_0x4aee21)),_0x1f61d0['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1e45a3,{writer:_0x32ed1f,options:_0x1e7318})=>{if(!_0x1e7318['showSuggestionHighlights'])return null;const _0x31475d=_0x32ed1f['createContainerElement']('div'),_0x21fd28=_0x32ed1f['createEmptyElement']('hr');return _0x32ed1f['addClass']('ck-horizontal-line',_0x31475d),_0x32ed1f['insert'](_0x32ed1f['createPositionAt'](_0x31475d,0x0),_0x21fd28),_0x31475d;},'converterPriority':'high'});}}class st extends _0x27318c{['afterInit'](){const _0x4d73c0=this['editor'];if(!_0x4d73c0['plugins']['has']('HtmlEmbed'))return;const _0x2a4403=_0x4d73c0['plugins']['get']('TrackChangesEditing'),_0x1c4fbf=_0x4d73c0['locale'];_0x2a4403['descriptionFactory']['registerElementLabel']('rawHtml',_0x56b96d=>o(_0x1c4fbf,'ELEMENT_HTML_EMBED',_0x56b96d)),_0x2a4403['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2a4403['registerBlockAttribute']('value'),_0x2a4403['descriptionFactory']['registerDescriptionCallback'](_0x261d3f=>{if('attribute'!=_0x261d3f['type'])return;const {data:_0x2a76ec}=_0x261d3f;if(_0x2a76ec&&'value'==_0x2a76ec['key']&&_0x261d3f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5144f0=o(_0x1c4fbf,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1c4fbf,'*Change\x20%0\x20content*',_0x5144f0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x230799=this['editor'],_0x4be971=_0x230799['locale'];_0x230799['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30c282=>{if('formatBlock'!=_0x30c282['type'])return;const {data:_0x3b9484}=_0x30c282;if(_0x3b9484&&'htmlEmbed'==_0x3b9484['commandName']){const _0x6e9f98=o(_0x4be971,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4be971,'*Change\x20%0\x20content*',_0x6e9f98)};}});}}class ot extends _0x27318c{['afterInit'](){const _0x29f3fc=this['editor'];if(!_0x29f3fc['plugins']['has']('ImageEditing'))return;const _0x331f55=_0x29f3fc['plugins']['get']('TrackChangesEditing'),_0x524211=_0x29f3fc['plugins']['get']('ImageUtils'),_0x53c3ab=_0x29f3fc['locale'];_0x331f55['enableCommand']('insertImage'),_0x331f55['descriptionFactory']['registerElementLabel']('imageBlock',_0x576eb8=>o(_0x53c3ab,'ELEMENT_IMAGE',_0x576eb8)),_0x331f55['descriptionFactory']['registerElementLabel']('imageInline',_0x3a9125=>o(_0x53c3ab,'ELEMENT_INLINE_IMAGE',_0x3a9125)),_0x331f55['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x53c3ab,'ELEMENT_CAPTION')),_0x29f3fc['plugins']['has']('ImageUploadEditing')&&_0x331f55['enableCommand']('uploadImage'),_0x29f3fc['plugins']['has']('ImageBlockEditing')&&_0x29f3fc['plugins']['has']('ImageInlineEditing')&&(_0x331f55['enableCommand']('imageTypeInline',(_0x46e405,_0x440d79)=>{const _0x35fb28=_0x524211['getClosestSelectedImageElement'](_0x29f3fc['model']['document']['selection']);_0x29f3fc['model']['change'](()=>{_0x331f55['markBlockFormat'](_0x35fb28,{'commandName':'imageTypeInline','commandParams':[_0x440d79]},[],'convertBlockImageToInline');});}),_0x331f55['enableCommand']('imageTypeBlock',(_0x2fbcdf,_0x208d20)=>{_0x29f3fc['model']['change'](_0x5bf30b=>{let _0x465922=_0x524211['getClosestSelectedImageElement'](_0x29f3fc['model']['document']['selection']),_0x5b3b60=_0x5bf30b['createRangeOn'](_0x465922);const _0x118c13=_0xa06e13['fromPosition'](_0x5b3b60['start'],'toPrevious'),_0x35b01b=_0xa06e13['fromPosition'](_0x5b3b60['end'],'toNext');_0x331f55['forceDefaultExecution'](()=>_0x2fbcdf(_0x208d20)),_0x465922=_0x524211['getClosestSelectedImageElement'](_0x29f3fc['model']['document']['selection']),_0x5b3b60=_0x5bf30b['createRangeOn'](_0x465922);const _0x55686a=_0x5bf30b['createRange'](_0x118c13,_0x35b01b);_0x118c13['detach'](),_0x35b01b['detach'](),_0x331f55['markBlockFormat'](_0x465922,{'commandName':'imageTypeInline','commandParams':[_0x208d20]},[],'convertInlineImageToBlock'),_0x55686a['start']['isBefore'](_0x5b3b60['start'])&&_0x331f55['markInsertion'](_0x5bf30b['createRange'](_0x55686a['start'],_0x5b3b60['start']),'convertInlineImageToBlock'),_0x5b3b60['end']['isBefore'](_0x55686a['end'])&&_0x331f55['markInsertion'](_0x5bf30b['createRange'](_0x5b3b60['end'],_0x55686a['end']),'convertInlineImageToBlock');});}),_0x331f55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x331f55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x331f55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x331f55['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x331f55['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x331f55['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xca370c])=>{const _0x1fd3ea=_0x331f55['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x56c46c=_0xca370c['start'],_0x3fa6f3=_0xca370c['end'];const _0x3b2867=_0x29f3fc['model']['schema']['getNearestSelectionRange'](_0x56c46c,'backward'),_0x43871e=_0x29f3fc['model']['schema']['getNearestSelectionRange'](_0x3fa6f3,'forward');_0x3b2867['isCollapsed']&&(_0x56c46c=_0x3b2867['start']),_0x43871e['isCollapsed']&&(_0x3fa6f3=_0x43871e['end']),_0x1fd3ea([_0x29f3fc['model']['createRange'](_0x56c46c,_0x3fa6f3)]);}),_0x331f55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3df728),_0x331f55['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3df728)),_0x29f3fc['plugins']['has']('ImageCaptionEditing')&&(_0x331f55['enableCommand']('toggleImageCaption',(_0x2bdfd1,_0x3aa356)=>{const _0x4cbb3d=_0x29f3fc['plugins']['get']('ImageCaptionUtils');let _0x5b356e=_0x524211['getClosestSelectedImageElement'](_0x29f3fc['model']['document']['selection']),_0x21dcaa=_0x4cbb3d['getCaptionFromImageModelElement'](_0x5b356e);_0x29f3fc['model']['change'](()=>{if(_0x21dcaa)return void _0x331f55['markDeletion'](_0x29f3fc['model']['createRangeOn'](_0x21dcaa));const _0x1b158e=_0x524211['isBlockImage'](_0x5b356e);_0x2bdfd1(_0x3aa356),_0x5b356e=_0x524211['getClosestSelectedImageElement'](_0x29f3fc['model']['document']['selection']),_0x21dcaa=_0x4cbb3d['getCaptionFromImageModelElement'](_0x5b356e),_0x331f55['markInsertion'](_0x29f3fc['model']['createRangeOn'](_0x21dcaa),_0x1b158e?null:'imageCaption');});}),_0x331f55['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3df728));const _0x3103ef=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x577103(_0xaceecf,_0x2dcdb0){const _0x40684f=_0x3103ef['findIndex'](({type:_0x49f752,subType:_0x287a6b})=>_0xaceecf['type']==_0x49f752&&_0xaceecf['subType']==_0x287a6b),_0x1a9fad=_0x3103ef['findIndex'](({type:_0x2472e9,subType:_0x59b7c9})=>_0x2dcdb0['type']==_0x2472e9&&_0x2dcdb0['subType']==_0x59b7c9);if(_0x40684f<0x0||_0x1a9fad<0x0)return!0x1;const _0x4a7d56=_0xaceecf['getFirstRange'](),_0x3b51b3=_0x2dcdb0['getFirstRange']();if((0x0==_0x40684f||0x1==_0x40684f)&&0x2==_0x1a9fad&&_0x4a7d56['isIntersecting'](_0x3b51b3))return!0x0;if(0x2==_0x40684f&&0x3==_0x1a9fad){const _0x32cefa=_0x331f55['_findSuggestions'](_0x4a7d56,'insertion')['filter'](({suggestion:_0x4d09aa,meta:_0x20c01b})=>_0x20c01b['isOwn']&&'convertInlineImageToBlock'==_0x4d09aa['subType']);if(_0x32cefa['length']>0x1&&_0x3b51b3['end']['isEqual'](_0x4a7d56['start']))return!0x0;if(0x1==_0x32cefa['length']&&(_0x4a7d56['start']['isEqual'](_0x3b51b3['end'])||_0x4a7d56['end']['isEqual'](_0x3b51b3['start'])))return!0x0;}if(0x3==_0x40684f&&0x3==_0x1a9fad&&_0x4a7d56['start']['isBefore'](_0x3b51b3['start'])){const _0x35c52f=_0x4a7d56['end']['nodeAfter'],_0x28eaec=_0x3b51b3['start']['nodeBefore'];return _0x524211['isBlockImage'](_0x35c52f)&&_0x35c52f===_0x28eaec;}return!0x1;}function _0x3df728(_0x25438b,_0x124110){return _0x577103(_0x25438b,_0x124110)?[_0x25438b,_0x124110]:_0x577103(_0x124110,_0x25438b)?[_0x124110,_0x25438b]:null;}_0x29f3fc['plugins']['has']('ImageResize')&&(_0x331f55['enableDefaultAttributesIntegration']('resizeImage'),_0x331f55['registerBlockAttribute']('resizedWidth'),_0x331f55['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x53c3ab,'FORMAT_IMAGE_SIZE'))),_0x29f3fc['plugins']['has']('ImageTextAlternativeEditing')&&(_0x331f55['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x331f55['registerBlockAttribute']('alt')),_0x29f3fc['plugins']['has']('PictureEditing')&&(_0x331f55['registerBlockAttribute']('sources'),_0x331f55['descriptionFactory']['registerDescriptionCallback'](_0x465473=>{if('attribute'!=_0x465473['type'])return;const {data:_0x25785d}=_0x465473;return _0x25785d&&'sources'==_0x25785d['key']?{'type':'format','content':''}:void 0x0;})),_0x29f3fc['plugins']['has']('ImageSizeAttributes')&&(_0x331f55['registerBlockAttribute']('width'),_0x331f55['registerBlockAttribute']('height'),_0x331f55['descriptionFactory']['registerDescriptionCallback'](_0x39da4d=>{if('attribute'!=_0x39da4d['type'])return;const {data:_0x453a0}=_0x39da4d;return!_0x453a0||'width'!=_0x453a0['key']&&'height'!=_0x453a0['key']?void 0x0:{'type':'format','content':''};})),_0x331f55['descriptionFactory']['registerDescriptionCallback'](_0x4fa320=>{if(!!_0x3103ef['find'](({type:_0x197a53,subType:_0x1b3438})=>_0x4fa320['type']==_0x197a53&&_0x4fa320['subType']==_0x1b3438))return _0x4fa320['previous']?{}:void 0x0;}),_0x331f55['descriptionFactory']['registerDescriptionCallback'](_0x214e2a=>{if('insertion'==_0x214e2a['type']||'deletion'==_0x214e2a['type']){const _0x5f1949=_0x214e2a['getContainedElement']();if(_0x5f1949&&_0x5f1949['is']('element','caption'))return{'type':'insertion'==_0x214e2a['type']?'addObject':'removeObject','element':_0x5f1949,'quantity':0x1};}}),_0x331f55['descriptionFactory']['registerDescriptionCallback'](_0x2e63ea=>'formatBlock'==_0x2e63ea['type']&&'convertInlineImageToBlock'==_0x2e63ea['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2e63ea['type']&&'convertBlockImageToInline'==_0x2e63ea['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x331f55['descriptionFactory']['registerDescriptionCallback'](_0x2a0e73=>{if('attribute'!=_0x2a0e73['type'])return;const {data:_0x5110dd}=_0x2a0e73;if(!_0x5110dd||'alt'!=_0x5110dd['key'])return;const _0x2d95c4=_0x5110dd['newValue'];return _0x2d95c4?{'type':'format','content':o(_0x53c3ab,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d95c4+'\x22')}:{'type':'format','content':o(_0x53c3ab,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd7cc3b=this['editor'],_0xca0e46=_0xd7cc3b['locale'];_0xd7cc3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x184e2a=>{if('formatBlock'!=_0x184e2a['type']&&'formatInline'!=_0x184e2a['type'])return;const {data:_0x2151f8}=_0x184e2a;if(_0x2151f8){if('imageTextAlternative'==_0x2151f8['commandName']){const _0x3aa4ed=_0x2151f8['commandParams'][0x0]['newValue'];return _0x3aa4ed?{'type':'format','content':o(_0xca0e46,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3aa4ed+'\x22')}:{'type':'format','content':o(_0xca0e46,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2151f8['commandName']){const _0x1ff637=_0x2151f8['commandParams'][0x0]['width'];return _0x1ff637?{'type':'format','content':o(_0xca0e46,'*Set\x20image\x20width:*\x20%0',_0x1ff637)}:{'type':'format','content':o(_0xca0e46,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x27318c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x101f99=this['editor']['locale'],_0x44041a=this['editor']['plugins']['get']('TrackChangesEditing');_0x44041a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x44041a['registerBlockAttribute']('src'),_0x44041a['descriptionFactory']['registerDescriptionCallback'](_0x57eca1=>{if('attribute'!=_0x57eca1['type'])return;const {data:_0x3c0c81}=_0x57eca1;return _0x3c0c81&&'src'==_0x3c0c81['key']?_0x3c0c81['newValue']&&_0x3c0c81['oldValue']?{'type':'format','content':o(_0x101f99,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x819479=this['editor']['plugins']['get']('TrackChangesEditing');_0x819479['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x819479['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x819479['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x819479['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f141f=this['editor'],_0x32bc31=_0x3f141f['locale'];_0x3f141f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c92d5=>{if('formatBlock'!=_0x5c92d5['type']&&'formatInline'!=_0x5c92d5['type'])return;const {data:_0x1c3db7}=_0x5c92d5;if(!_0x1c3db7||'replaceImageSource'!=_0x1c3db7['commandName'])return;return{'type':'format','content':o(_0x32bc31,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x27318c{['afterInit'](){const _0x2df2ef=this['editor'];if(!_0x2df2ef['plugins']['has']('ImageStyleEditing'))return;const _0x3752df=_0x2df2ef['plugins']['get']('TrackChangesEditing'),_0x15f705=_0x2df2ef['plugins']['get']('ImageUtils'),_0x5320fa={};_0x3752df['enableCommand']('imageStyle',(_0x7a247,_0xea1382)=>{const _0x3e9ba6=_0x2df2ef['plugins']['get']('Users')['me'],_0x3be22f=_0x2df2ef['commands']['get']('imageStyle');let _0x1c5d72=_0x15f705['getClosestSelectedImageElement'](_0x2df2ef['model']['document']['selection']),_0x13d79e=_0x2df2ef['model']['createRangeOn'](_0x1c5d72),_0x284794=_0x3be22f['value'];if(_0x284794==_0xea1382['value'])return;const _0x469ad4={'commandName':'imageStyle','commandParams':[_0xea1382],'formatGroupId':_0x3330a4()};_0x2df2ef['model']['change'](()=>{if(_0x3752df['getSuggestions']()['filter'](_0x2ba68b=>_0x2ba68b['isInContent']&&_0x3e9ba6==_0x2ba68b['author']&&('formatBlock'==_0x2ba68b['type']||'formatInline'==_0x2ba68b['type'])&&('imageStylePreApply'==_0x2ba68b['subType']||'imageStylePostApply'==_0x2ba68b['subType'])&&_0x2ba68b['getFirstRange']()['isEqual'](_0x13d79e))['forEach'](_0x18b38a=>_0x3752df['discardSuggestion'](_0x18b38a['head'])),_0x1c5d72=_0x15f705['getClosestSelectedImageElement'](_0x2df2ef['model']['document']['selection']),_0x13d79e=_0x2df2ef['model']['createRangeOn'](_0x1c5d72),_0x3be22f['refresh'](),_0x2df2ef['commands']['get']('imageTypeInline')['refresh'](),_0x2df2ef['commands']['get']('imageTypeBlock')['refresh'](),_0x284794=_0x3be22f['value'],_0x284794!=_0xea1382['value'])return _0x15f705['isInlineImage'](_0x1c5d72)&&_0x3be22f['shouldConvertImageType'](_0xea1382['value'],_0x1c5d72)?(_0x7a247({..._0xea1382,'setImageSizes':!0x1}),_0x1c5d72=_0x15f705['getClosestSelectedImageElement'](_0x2df2ef['model']['document']['selection']),void _0x3752df['markBlockFormat'](_0x1c5d72,{..._0x469ad4,'commandReversedParams':[{'value':_0x284794||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x15f705['isBlockImage'](_0x1c5d72)?_0x3752df['markBlockFormat'](_0x1c5d72,_0x469ad4,[],'imageStylePostApply'):_0x3752df['markInlineFormat'](_0x13d79e,_0x469ad4,'imageStylePostApply'));});});for(const _0x4eb0f8 of _0x2df2ef['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5320fa[_0x4eb0f8['name']]=_0x4eb0f8['title']['toLowerCase']();_0x3752df['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3752df['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3752df['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3752df['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x209990])=>{_0x15f705['setImageNaturalSizeAttributes'](_0x209990['getContainedElement']());}),_0x3752df['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x529561,_0x9261cb)=>{_0x3752df['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x529561,{'commandName':_0x9261cb['commandName'],'commandParams':_0x9261cb['commandReversedParams']});}),_0x3752df['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x927a5f,_0x39dee9){if(_0x1d414f(_0x927a5f,_0x39dee9))return[_0x927a5f,_0x39dee9];if(_0x1d414f(_0x39dee9,_0x927a5f))return[_0x39dee9,_0x927a5f];return null;});const _0x3cbb0b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1d414f(_0x2f3ee0,_0x17883b){const _0x46702f=_0x3cbb0b['findIndex'](({type:_0x12faf2,subType:_0x5f8d5d})=>_0x2f3ee0['type']==_0x12faf2&&_0x2f3ee0['subType']==_0x5f8d5d),_0x124fb2=_0x3cbb0b['findIndex'](({type:_0x485a9d,subType:_0x5c5be1})=>_0x17883b['type']==_0x485a9d&&_0x17883b['subType']==_0x5c5be1);if(_0x46702f<0x0||_0x124fb2<0x0)return!0x1;const _0x2241a0=_0x2f3ee0['getFirstRange'](),_0x1d2d19=_0x17883b['getFirstRange']();if((0x0==_0x46702f||0x1==_0x46702f)&&0x2==_0x124fb2&&_0x2241a0['isIntersecting'](_0x1d2d19))return!0x0;if(0x2==_0x46702f&&0x3==_0x124fb2){const _0x29f2a7=_0x3752df['_findSuggestions'](_0x2241a0,'insertion')['filter'](({suggestion:_0x28aaf5,meta:_0x115bf6})=>_0x115bf6['isOwn']&&'convertInlineImageToBlock'==_0x28aaf5['subType']);if(_0x29f2a7['length']>0x1&&_0x1d2d19['end']['isEqual'](_0x2241a0['start']))return!0x0;if(0x1==_0x29f2a7['length']&&(_0x2241a0['start']['isEqual'](_0x1d2d19['end'])||_0x2241a0['end']['isEqual'](_0x1d2d19['start'])))return!0x0;}if(0x3==_0x46702f&&0x3==_0x124fb2&&_0x2241a0['start']['isBefore'](_0x1d2d19['start'])){const _0xfb706a=_0x2241a0['end']['nodeAfter'],_0x4fd2f3=_0x1d2d19['start']['nodeBefore'];return _0x15f705['isBlockImage'](_0xfb706a)&&_0xfb706a===_0x4fd2f3;}return!0x1;}_0x2df2ef['model']['document']['registerPostFixer'](()=>{let _0x19584b=!0x1;const _0x16cac2=Array['from'](_0x2df2ef['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20a65d,data:_0x21c8a2}of _0x16cac2){const {group:_0x368ad9,type:_0x3be9f2,subType:_0xf6cc20,id:_0x1f1dfd}=_0x3752df['_splitMarkerName'](_0x20a65d);if('suggestion'==_0x368ad9&&_0x3752df['hasSuggestion'](_0x1f1dfd)){if('formatBlock'==_0x3be9f2&&('imageStylePreApply'==_0xf6cc20||'imageStylePostApply'==_0xf6cc20)){const _0x334c39=_0x3752df['getSuggestion'](_0x1f1dfd);if(_0x21c8a2['newRange']){const _0x1897ec=_0x334c39['getFirstRange']()['getContainedElement']();if(_0x15f705['isBlockImage'](_0x1897ec))continue;_0x3752df['discardSuggestion'](_0x334c39),_0x19584b=!0x0;}}if('insertion'==_0x3be9f2&&'imageCaption'==_0xf6cc20&&!_0x21c8a2['newRange']){const _0x56f4fe=_0x3752df['getSuggestion'](_0x1f1dfd);_0x56f4fe['next']&&_0x56f4fe['next']['isInContent']&&(_0x3752df['discardSuggestion'](_0x56f4fe['next']),_0x19584b=!0x0);}}}return _0x19584b;}),this['_registerLegacyDescription'](_0x5320fa);}['_registerLegacyDescription'](_0x39b49e){const _0xe86173=this['editor'],_0x1e872d=_0xe86173['locale'];_0xe86173['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f6d3e=>{if('formatBlock'!=_0x2f6d3e['type']&&'formatInline'!=_0x2f6d3e['type'])return;const {data:_0x4e96ce}=_0x2f6d3e;if(!_0x4e96ce||'imageStyle'!=_0x4e96ce['commandName'])return;const _0x481916=_0x4e96ce['commandParams'][0x0]['value'];return _0x5963ab('side'===_0x481916?o(_0x1e872d,'FORMAT_SIDE_IMAGE'):_0x39b49e[_0x481916]||_0x481916);function _0x5963ab(_0x1745c8){return{'type':'format','content':o(_0x1e872d,'*Format:*\x20%0',_0x1745c8)};}});}}class ct extends _0x27318c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x35fae0){super(_0x35fae0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4d0ca6=this['editor'],_0x3311df=_0x4d0ca6['commands']['get']('importWord'),_0x2ef598=_0x4d0ca6['commands']['get']('trackChanges');_0x3311df&&(_0x3311df['on']('execute',(_0x206b19,[,_0x14629f])=>{this['_trackChangesValueDuringImport']=_0x2ef598['value'],_0x14629f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3311df,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3311df,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2ef598['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4d0ca6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xecb67a,_0x28302d){const {suggestions:_0x33c343}=_0x28302d,_0x4e6013=this['editor']['commands']['get']('trackChanges'),_0x55363f=_0x4e6013['value'];this['_trackChangesValueDuringImport']!==_0x55363f&&(_0x4e6013['execute'](),this['_trackChangesExecuted']=!0x0),_0x33c343&&_0x33c343['forEach'](({id:_0x225180,type:_0x20a5b8,author:_0x8462be,created_at:_0xa0964e})=>{const _0x77de66={'id':_0x225180,'type':_0x20a5b8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x8462be,'createdAt':_0xa0964e?new Date(_0xa0964e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x77de66);});}}class ut extends _0x27318c{['afterInit'](){const _0x18e27c=this['editor'],_0x41680d=_0x18e27c['plugins']['get']('TrackChangesEditing');if(_0x18e27c['plugins']['has']('IndentEditing')&&(_0x41680d['enableCommand']('indent'),_0x41680d['enableCommand']('outdent')),_0x18e27c['plugins']['has']('IndentBlock')){for(const _0x34ac33 of['indentBlock','outdentBlock'])_0x41680d['enableDefaultAttributesIntegration'](_0x34ac33);}const _0x5d6449=_0x18e27c['locale'];_0x41680d['registerBlockAttribute']('blockIndent'),_0x41680d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5d6449,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b7870=this['editor'],_0x20b380=_0x5b7870['locale'],_0x566533=_0x5b7870['plugins']['get']('TrackChangesEditing');_0x566533['descriptionFactory']['registerDescriptionCallback'](_0x3a25f7=>{if('formatBlock'!=_0x3a25f7['type'])return;const {data:_0xd4be24}=_0x3a25f7;if(!_0xd4be24)return;if('indentBlock'!=_0xd4be24['commandName']&&'outdentBlock'!=_0xd4be24['commandName'])return;const _0x3dcdd8=_0x3a25f7['getItems']()[0x0],_0x356e50=_0x566533['descriptionFactory']['getItemLabel'](_0x3dcdd8);return'indentBlock'==_0xd4be24['commandName']?{'type':'format','content':o(_0x20b380,'*Indent:*\x20%0',_0x356e50)}:'outdentBlock'==_0xd4be24['commandName']?{'type':'format','content':o(_0x20b380,'*Outdent:*\x20%0',_0x356e50)}:void 0x0;});}}class ft extends _0x27318c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x27318c{['afterInit'](){const _0xc0c8f7=this['editor'];if(!_0xc0c8f7['plugins']['has']('LinkEditing'))return;const _0x12bf64=_0xc0c8f7['plugins']['get']('TrackChangesEditing'),_0x219b9d=_0xc0c8f7['commands']['get']('link');_0x12bf64['enableDefaultAttributesIntegration']('link'),_0x12bf64['enableDefaultAttributesIntegration']('unlink'),_0x12bf64['registerInlineAttribute']('linkHref');for(const _0x197552 of _0x219b9d['manualDecorators'])_0x12bf64['registerInlineAttribute'](_0x197552['id']),_0x12bf64['descriptionFactory']['registerAttributeLabel'](_0x197552['id'],'link\x20('+_0x197552['label']['toLowerCase']()+')');_0x12bf64['descriptionFactory']['registerDescriptionCallback'](_0x38826e=>{if('attribute'!=_0x38826e['type'])return;const {data:_0x31598f}=_0x38826e;if(!_0x31598f||'linkHref'!=_0x31598f['key'])return;const _0x1885b2=_0x31598f['newValue'],_0x3635d0=_0xc0c8f7['locale'];return{'type':'format','content':null==_0x1885b2?o(_0x3635d0,'*Remove\x20link*'):o(_0x3635d0,'*Set\x20link:*\x20%0','\x22'+_0x1885b2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4847e4=this['editor'],_0x6e41b1=_0x4847e4['locale'];_0x4847e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52421d=>{if('formatInline'!=_0x52421d['type'])return;const {data:_0x340880}=_0x52421d;if(_0x340880){if('link'==_0x340880['commandName']){const _0x431a76=_0x340880['commandParams'][0x0];return{'type':'format','content':o(_0x6e41b1,'*Set\x20link:*\x20%0','\x22'+_0x431a76+'\x22')};}return'unlink'==_0x340880['commandName']?{'type':'format','content':o(_0x6e41b1,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x27318c{['afterInit'](){const _0x40a368=this['editor'],_0x53d755=_0x40a368['locale'];if(!_0x40a368['plugins']['has']('LegacyListEditing'))return;const _0x518561=_0x40a368['plugins']['get']('TrackChangesEditing'),_0x192699=_0x40a368['plugins']['has']('LegacyTodoListEditing');function _0x5cb948(_0x271497){return()=>{const _0x1fdffa=_0x40a368['model']['document']['selection'],_0x3dec04=_0x40a368['commands']['get'](_0x271497);if(_0x3dec04['value'])return void _0x40a368['execute']('paragraph',{});const _0x330151=_0x271497['slice'](0x0,-0x4),_0x1f8542=function(_0x5f11c8,_0x41f4a4,_0x3086fa){let _0x1f1724=Array['from'](_0x5f11c8)['filter'](_0x2b706e=>function(_0x292e2c,_0x1ce6ec){return _0x1ce6ec['checkChild'](_0x292e2c['parent'],'listItem')&&!_0x1ce6ec['isObject'](_0x292e2c);}(_0x2b706e,_0x3086fa));_0x1f1724=_0x1f1724['filter'](_0xc61235=>!_0xc61235['is']('element','listItem')||_0xc61235['getAttribute']('listType')!=_0x41f4a4);const _0x1c2080=new Set();for(const _0x10c930 of _0x1f1724)_0x10c930['is']('element','listItem')?_0x1c2080['add'](Le(_0x10c930)):_0x1c2080['add'](_0x10c930);return Array['from'](_0x1c2080);}(_0x1fdffa['getSelectedBlocks'](),_0x330151,_0x40a368['model']['schema']);_0x40a368['model']['change'](()=>{for(const _0x14d147 of _0x1f8542)_0x518561['markBlockFormat'](_0x14d147,{'commandName':_0x271497,'commandParams':[{'forceValue':!_0x3dec04['value']}],'formatGroupId':'blockName'},Ee(_0x14d147));});};}function _0x1f99fe(_0x21400f){return()=>{const _0x3d67da=function(_0x12be46){let _0x317b5e=Array['from'](_0x12be46);const _0x12b3fd=_0x317b5e['findIndex'](_0x4cc360=>'listItem'!=_0x4cc360['name']);return _0x12b3fd>-0x1&&(_0x317b5e=_0x317b5e['slice'](0x0,_0x12b3fd)),_0x317b5e;}(_0x40a368['model']['document']['selection']['getSelectedBlocks']()),_0x5851fc=_0x40a368['model']['createRange'](_0x40a368['model']['createPositionAt'](_0x3d67da[0x0],'before'),_0x40a368['model']['createPositionAt'](_0x3d67da[_0x3d67da['length']-0x1],'end'));_0x40a368['model']['change'](()=>{_0x518561['markBlockFormat'](_0x5851fc,{'commandName':_0x21400f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4987c0){const _0x188983=new Set();for(const _0x591503 of _0x4987c0){let _0x469ce1=_0x591503['nextSibling'];for(;_0x469ce1&&_0x469ce1['getAttribute']('listIndent')>_0x591503['getAttribute']('listIndent');)_0x188983['add'](_0x469ce1),_0x469ce1=_0x469ce1['nextSibling'];}return Array['from'](_0x188983);}(_0x3d67da));});};}_0x518561['enableCommand']('numberedList',_0x5cb948('numberedList')),_0x518561['enableCommand']('bulletedList',_0x5cb948('bulletedList')),_0x192699&&_0x518561['enableCommand']('todoList',_0x5cb948('todoList')),_0x518561['enableCommand']('indentList',_0x1f99fe('indentList')),_0x518561['enableCommand']('outdentList',_0x1f99fe('outdentList')),_0x192699&&_0x518561['enableCommand']('checkTodoList',()=>{const _0x57ab0f=_0x40a368['commands']['get']('checkTodoList'),_0x213960=Array['from'](_0x57ab0f['_selectedElements']);_0x213960['filter'](_0x24fba3=>_0x24fba3['getAttribute']('todoListChecked')!=_0x57ab0f['value']),_0x40a368['model']['change'](()=>{for(const _0x52d43d of _0x213960)_0x518561['markBlockFormat'](_0x52d43d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x57ab0f['value']}]});});}),_0x518561['descriptionFactory']['registerElementLabel']('listItem',_0x361b8e=>o(_0x53d755,'ELEMENT_LIST_ITEM',_0x361b8e)),_0x518561['descriptionFactory']['registerDescriptionCallback'](_0x788b1=>{if('formatBlock'!=_0x788b1['type']&&'formatInline'!=_0x788b1['type'])return;const {data:_0x2c21fa}=_0x788b1;if(_0x2c21fa){if('numberedList'==_0x2c21fa['commandName']||'bulletedList'==_0x2c21fa['commandName']||'todoList'==_0x2c21fa['commandName'])switch(_0x2c21fa['commandName']['replace']('List','')){case'bulleted':return _0x15e3d7(o(_0x53d755,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15e3d7(o(_0x53d755,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15e3d7(o(_0x53d755,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2c21fa['commandName'])return{'type':'format','content':o(_0x53d755,'*Indent:*\x20%0',o(_0x53d755,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2c21fa['commandName'])return{'type':'format','content':o(_0x53d755,'*Outdent:*\x20%0',o(_0x53d755,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2c21fa['commandName'])return _0x2c21fa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53d755,'*Check\x20item*')}:{'type':'format','content':o(_0x53d755,'*Uncheck\x20item*')};}function _0x15e3d7(_0x3a99d9){return{'type':'format','content':o(_0x53d755,'*Change\x20to:*\x20%0',_0x3a99d9)};}});}}function Le(_0x5382c6){const _0x76e0d3=_0x5382c6['getAttribute']('listIndent');if(0x0==_0x76e0d3)return _0x5382c6;let _0x14a195=_0x5382c6;for(;_0x5382c6['previousSibling']&&_0x5382c6['previousSibling']['is']('element','listItem');){const _0x1887f3=_0x5382c6['previousSibling']['getAttribute']('listIndent');if(_0x1887f3==_0x76e0d3)_0x14a195=_0x5382c6['previousSibling'];else{if(_0x1887f3<_0x76e0d3)break;}_0x5382c6=_0x5382c6['previousSibling'];}return _0x14a195;}function Ee(_0x20142b){const _0x43a07a=[];if(_0x20142b['is']('element','listItem')&&_0x20142b['getAttribute']('listIndent')>0x0){let _0x2e1bed=_0x20142b['nextSibling'];for(;_0x2e1bed&&'listItem'==_0x2e1bed['name']&&_0x2e1bed['getAttribute']('listIndent')==_0x20142b['getAttribute']('listIndent');)_0x43a07a['push'](_0x2e1bed),_0x2e1bed=_0x2e1bed['nextSibling'];}return _0x43a07a;}class Q extends _0x27318c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1f0a4c=this['editor']['config']['get']('list.properties'),_0x4063bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f0a4c['styles']&&_0x4063bd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1f0a4c['reversed']&&_0x4063bd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1f0a4c['startIndex']&&_0x4063bd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4063bd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x47927d,_0x2842d8={}){const _0x429e61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x67edf=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x429e61['markMultiRangeBlockFormat'](_0x67edf,{'commandName':'listStyle','commandParams':[{'type':_0x2842d8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3e6a87,_0x38f25e={}){const _0x224531=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a8472=this['_getSuggestionBlocks'](_0x7bda02=>_0x7bda02['is']('element','listItem')&&'numbered'===_0x7bda02['getAttribute']('listType'));if(_0x5a8472['length']<0x1)return;const _0x15de4b=_0x5a8472['map'](_0x35dd1b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x35dd1b,'before'),this['editor']['model']['createPositionAt'](_0x35dd1b,0x0)));this['editor']['model']['change'](()=>{_0x224531['markMultiRangeBlockFormat'](_0x15de4b,{'commandName':'listReversed','commandParams':[{'reversed':_0x38f25e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1d5e56,_0x3b8fdd={}){const _0x2afc32=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a9463=this['_getSuggestionBlocks'](_0x132e23=>_0x132e23['is']('element','listItem')&&'numbered'===_0x132e23['getAttribute']('listType'));if(_0x4a9463['length']<0x1)return;const _0x345ce4=_0x4a9463['map'](_0x300572=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x300572,'before'),this['editor']['model']['createPositionAt'](_0x300572,0x0)));this['editor']['model']['change'](()=>{_0x2afc32['markMultiRangeBlockFormat'](_0x345ce4,{'commandName':'listStart','commandParams':[{'startIndex':_0x3b8fdd['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x42cc9c){if('formatBlock'!=_0x42cc9c['type']&&'formatInline'!=_0x42cc9c['type'])return;const _0x468d70=this['editor']['locale'],{data:_0x24393b}=_0x42cc9c;if(!_0x24393b)return;let _0x382863,_0x5b6cc7;switch(_0x24393b['commandName']){case'listStyle':_0x382863='*Change\x20to:*\x20%0',_0x5b6cc7={'type':'format','content':o(_0x468d70,_0x382863,o(_0x468d70,this['_getTranslationKeyForListStyle'](_0x24393b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x382863=_0x24393b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5b6cc7={'type':'format','content':o(_0x468d70,_0x382863)};break;case'listStart':_0x382863='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5b6cc7={'type':'format','content':o(_0x468d70,_0x382863,_0x24393b['commandParams'][0x0]['startIndex'])};}return _0x5b6cc7;}['_getSuggestionBlocksForListStyle'](){const _0x30d59d=this['editor']['plugins']['get']('LegacyListUtils');let _0x123886=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x123886[0x0]?.['is']('element','listItem')&&_0x123886['unshift'](..._0x30d59d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x123886[_0x123886['length']-0x1]?.['is']('element','listItem')&&_0x123886['push'](..._0x30d59d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x123886=[...new Set(_0x123886)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x123886=_0x123886['filter'](_0x534c62=>_0x534c62['is']('element','listItem'))),_0x123886;}['_getSuggestionBlocks'](_0xc474e2){const _0xba5d62=this['editor']['plugins']['get']('LegacyListUtils');let _0x43f5ab=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xc474e2)['map'](_0x58f62d=>{const _0x22adca=this['editor']['model']['createPositionAt'](_0x58f62d,0x0);return[..._0xba5d62['getSiblingNodes'](_0x22adca,'backward'),..._0xba5d62['getSiblingNodes'](_0x22adca,'forward')];})['flat']();return _0x43f5ab=[...new Set(_0x43f5ab)],_0x43f5ab;}['_getTranslationKeyForListStyle'](_0x47dab8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x47dab8)||'default')['toUpperCase']()+'_LIST_'+_0x47dab8['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x27318c{['afterInit'](){const _0x58417f=this['editor'];if(!_0x58417f['plugins']['has']('MediaEmbedEditing'))return;const _0x1042d8=_0x58417f['plugins']['get']('TrackChangesEditing'),_0x500793=_0x58417f['locale'];_0x1042d8['enableCommand']('mediaEmbed'),_0x1042d8['descriptionFactory']['registerElementLabel']('media',_0x5f1b74=>o(_0x500793,'ELEMENT_MEDIA',_0x5f1b74)),_0x58417f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x479328,{writer:_0x44d309,options:_0x2923e5})=>{if(_0x2923e5['showSuggestionHighlights'])return _0x44d309['createEmptyElement']('div');},'converterPriority':'high'}),_0x58417f['data']['downcastDispatcher']['on']('attribute:url:media',(_0xe3b7e3,_0x4257e4,_0x10dfb8)=>{_0x10dfb8['options']['showSuggestionHighlights']&&_0xe3b7e3['stop']();},{'priority':'high'});}}class mt extends _0x27318c{['afterInit'](){const _0x2f37ea=this['editor'];_0x2f37ea['plugins']['has']('MentionEditing')&&_0x2f37ea['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x27318c{['afterInit'](){const _0x165208=this['editor'];if(!_0x165208['plugins']['has']('MergeFieldsEditing'))return;const _0x6e7353=_0x165208['plugins']['get']('TrackChangesEditing'),_0x446d48=_0x165208['locale'];_0x6e7353['enableCommand']('insertMergeField'),_0x6e7353['enableCommand']('insertMergeFieldBlock'),_0x6e7353['enableCommand']('insertMergeFieldImage'),_0x6e7353['descriptionFactory']['registerElementLabel']('mergeField',_0x193071=>o(_0x446d48,'ELEMENT_MERGE_FIELD',_0x193071)),_0x6e7353['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x455ab5=>o(_0x446d48,'ELEMENT_MERGE_FIELD',_0x455ab5)),_0x6e7353['descriptionFactory']['registerDescriptionCallback'](_0x19fd2c=>{if('insertion'!=_0x19fd2c['type']&&'deletion'!=_0x19fd2c['type'])return;const _0x360e11=_0x19fd2c['getContainedElement']();if(null==_0x360e11)return;const _0x420618=_0x165208['plugins']['get']('MergeFieldsEditing');let _0xd94561;switch(_0x420618['getMergeFieldType'](_0x360e11)){case null:return;case'image':{const _0x34b9d0=_0x420618['unwrapAffixes'](_0x360e11['getAttribute']('src'));_0xd94561=_0x420618['getLabel'](_0x34b9d0)||_0x34b9d0;break;}default:{const _0x10bea1=_0x360e11['getAttribute']('id');_0xd94561=_0x420618['getLabel'](_0x10bea1)||_0x10bea1;break;}}return'insertion'==_0x19fd2c['type']?{'type':'insertion','content':o(_0x446d48,'*Insert:*\x20%0','\x22'+_0xd94561+'\x22\x20'+o(_0x446d48,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x446d48,'*Remove:*\x20%0','\x22'+_0xd94561+'\x22\x20'+o(_0x446d48,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x27318c{['afterInit'](){const _0x516c76=this['editor'],_0x30ee40=_0x516c76['plugins']['get']('TrackChangesEditing');_0x516c76['plugins']['has']('MultiLevelList')&&(_0x30ee40['enableDefaultAttributesIntegration']('multiLevelList'),_0x30ee40['registerBlockAttribute']('listMarkerStyle'),_0x30ee40['descriptionFactory']['registerDescriptionCallback'](_0x3b037=>this['handleDescriptions'](_0x3b037)));}['handleDescriptions'](_0x2f0aad){const _0x27fe00=this['editor']['locale'],{data:_0x316eef}=_0x2f0aad,_0x593790={'type':'format','content':''};if(_0x316eef&&'listMarkerStyle'==_0x316eef['key']){if(!_0x316eef['oldValue'])return{'type':'format','content':o(_0x27fe00,'*Set\x20format:*\x20%0',o(_0x27fe00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x316eef['newValue']+')'};if(!_0x316eef['newValue']){let _0x57477d=_0x2f0aad['head'];for(;_0x57477d;){if(_0x57477d['data']&&'listType'==_0x57477d['data']['key']&&_0x57477d['data']['newValue'])return _0x593790;_0x57477d=_0x57477d['next'];}return{'type':'format','content':o(_0x27fe00,'*Remove\x20format:*\x20%0',o(_0x27fe00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x316eef['oldValue']+')'};}}}}class kt extends _0x27318c{['afterInit'](){const _0x4ab053=this['editor'];if(!_0x4ab053['plugins']['has']('PageBreakEditing'))return;_0x4ab053['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x113b20=_0x4ab053['plugins']['get']('TrackChangesEditing'),_0x2a446e=_0x4ab053['locale'];_0x113b20['descriptionFactory']['registerElementLabel']('pageBreak',_0x21e920=>o(_0x2a446e,'ELEMENT_PAGE_BREAK',_0x21e920));}}class bt extends _0x27318c{['afterInit'](){const _0x4b1002=this['editor'];if(!_0x4b1002['plugins']['has']('Paragraph'))return;const _0x301eda=_0x4b1002['locale'],_0x23f602=_0x4b1002['plugins']['get']('TrackChangesEditing');_0x23f602['descriptionFactory']['registerElementLabel']('paragraph',_0x4fe8ac=>o(_0x301eda,'ELEMENT_PARAGRAPH',_0x4fe8ac)),_0x23f602['enableDefaultAttributesIntegration']('paragraph'),_0x23f602['enableCommand']('insertParagraph'),_0x4b1002['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4b1002),{'priority':'highest'}),_0x4b1002['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x57c370,_0x28da84,_0x113279)=>{_0x113279['options']['showSuggestionHighlights']&&nr(_0x4b1002,{'showActiveMarker':!0x1})(_0x57c370,_0x28da84,_0x113279);},{'priority':'highest'});const _0x397848=_0x23f602['descriptionFactory'];_0x397848['registerDescriptionCallback'](_0x3475a0=>{if('insertion'!==_0x3475a0['type'])return;const {start:_0x137c15,end:_0x50b3ec}=_0x3475a0['getFirstRange']();if(!_0x137c15['isTouching'](_0x50b3ec)||!_0x137c15['nodeAfter'])return;const _0xb3bd2d=_0x4b1002['model']['schema'],_0x15ebc9=_0x137c15['nodeAfter'];return _0xb3bd2d['isBlock'](_0x15ebc9)&&!_0xb3bd2d['isLimit'](_0x15ebc9)&&_0xb3bd2d['checkChild'](_0x15ebc9,'$text')?{'type':'insertion','content':o(_0x301eda,'*Insert:*\x20%0',_0x397848['getItemLabel'](_0x15ebc9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22cbe3=this['editor'],_0x11ea4f=_0x22cbe3['locale'];_0x22cbe3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x162592=>{if('formatBlock'!=_0x162592['type'])return;const {data:_0x16db38}=_0x162592;return _0x16db38&&'paragraph'==_0x16db38['commandName']?{'type':'format','content':o(_0x11ea4f,'*Change\x20to:*\x20%0',o(_0x11ea4f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x24744d,{showActiveMarker:_0x1fe645=!0x0}={}){return(_0xb8ab7c,_0x2b308c,_0x45999b)=>{const _0x6cea9b=_0x24744d['plugins']['get']('TrackChangesEditing'),_0x2533fa=_0x2b308c['markerRange']['start'],_0x1fc8d0=_0x2b308c['markerRange']['end'],_0x4c6f9d=_0x24744d['model']['schema'];if(!_0x2533fa['isTouching'](_0x1fc8d0)||!_0x2533fa['nodeAfter'])return;const _0x1d2074=_0x2533fa['nodeAfter'];if(_0x4c6f9d['isBlock'](_0x1d2074)&&!_0x4c6f9d['isLimit'](_0x1d2074)&&_0x4c6f9d['checkChild'](_0x1d2074,'$text')){if(!_0x45999b['consumable']['consume'](_0x2b308c['markerRange'],_0xb8ab7c['name']))return;const {authorId:_0x143cbd}=_0x6cea9b['_splitMarkerName'](_0x2b308c['markerName']),_0x37bc3=_0x45999b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x143cbd}),_0x376cd6=_0x45999b['mapper']['toViewPosition'](_0x1fc8d0);_0x1fe645&&_0x6cea9b['activeMarkers']['includes'](_0x2b308c['markerName'])&&_0x45999b['writer']['addClass']('ck-suggestion-marker--active',_0x37bc3),_0x45999b['writer']['insert'](_0x376cd6,_0x37bc3),_0x45999b['mapper']['bindElementToMarker'](_0x37bc3,_0x2b308c['markerName']);}};}class yt extends _0x27318c{['afterInit'](){const _0xce1cc0=this['editor'];if(!_0xce1cc0['plugins']['has']('RemoveFormatEditing'))return;_0xce1cc0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ba2fd=this['editor'];_0x4ba2fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x315d58=>{if('formatBlock'!=_0x315d58['type']&&'formatInline'!=_0x315d58['type'])return;const {data:_0x2e0915}=_0x315d58;return _0x2e0915&&'removeFormat'==_0x2e0915['commandName']?{'type':'format','content':o(_0x4ba2fd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x27318c{['afterInit'](){const _0x3a9f13=this['editor'];if(!_0x3a9f13['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1ed086=_0x3a9f13['plugins']['get']('TrackChangesEditing');_0x1ed086['enableCommand']('goToPreviousRestrictedEditingException'),_0x1ed086['enableCommand']('goToNextRestrictedEditingException');const _0x9a3b11=_0x3a9f13['plugins']['get']('RestrictedEditingModeEditing');_0x9a3b11['enableCommand']('trackChanges'),_0x9a3b11['enableCommand']('acceptSuggestion'),_0x9a3b11['enableCommand']('discardSuggestion'),_0x9a3b11['enableCommand']('acceptAllSuggestions'),_0x9a3b11['enableCommand']('discardAllSuggestions'),_0x9a3b11['enableCommand']('acceptSelectedSuggestions'),_0x9a3b11['enableCommand']('discardSelectedSuggestions');}}class St extends _0x27318c{static get['requires'](){return[_0x511614];}['init'](){const _0x1ef82a=this['editor'],_0x314a30=_0x1ef82a['plugins']['get']('TrackChangesEditing');_0x314a30['enableCommand']('shiftEnter'),_0x1ef82a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1ef82a),{'priority':'high'}),_0x1ef82a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1ef82a),{'priority':'high'}),_0x1ef82a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3327e4,_0x1b4452,_0x5d985a)=>{_0x5d985a['options']['showSuggestionHighlights']&&je(_0x1ef82a,{'showActiveMarker':!0x1})(_0x3327e4,_0x1b4452,_0x5d985a);}),_0x314a30['descriptionFactory']['registerElementLabel']('softBreak',_0x2ee144=>o(_0x1ef82a['locale'],'ELEMENT_LINE_BREAK',_0x2ee144));}}function je(_0x48bc96,{showActiveMarker:_0x302ccd=!0x0}={}){return(_0x5ae8c5,_0x986638,_0x189c18)=>{const _0x248be0=_0x48bc96['plugins']['get']('TrackChangesEditing');if(!_0x189c18['consumable']['test'](_0x986638['markerRange'],_0x5ae8c5['name']))return;const _0x1a3a72=_0x48bc96['model'];for(const _0xbd7700 of _0x986638['markerRange']['getItems']()){if(!_0xbd7700['is']('element','softBreak'))continue;const _0x4c5d0a='deletion'==_0x986638['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0xb0e0d5}=_0x248be0['_splitMarkerName'](_0x986638['markerName']),_0x541a7f=_0x189c18['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c5d0a,'data-author-id':_0xb0e0d5}),_0x43dd0f=_0x189c18['mapper']['toViewPosition'](_0x1a3a72['createPositionBefore'](_0xbd7700));_0x302ccd&&_0x248be0['activeMarkers']['includes'](_0x986638['markerName'])&&_0x189c18['writer']['addClass']('ck-suggestion-marker--active',_0x541a7f),_0x189c18['writer']['insert'](_0x43dd0f,_0x541a7f),_0x189c18['mapper']['bindElementToMarker'](_0x541a7f,_0x986638['markerName']);}};}class At extends _0x27318c{['afterInit'](){const _0x52866a=this['editor'],_0x4f4503=_0x52866a['model'],_0x2cdf72=_0x52866a['locale'];if(!_0x52866a['plugins']['has']('StandardEditingModeEditing'))return;const _0x4aa7f5=_0x52866a['plugins']['get']('TrackChangesEditing'),_0x5dfd4c='restrictedEditingException',_0x6bb73e=_0x52866a['commands']['get'](_0x5dfd4c);_0x4aa7f5['enableCommand'](_0x5dfd4c,(_0x5d1efa,_0xd7d039={})=>{const _0x220dd0=_0x4f4503['document']['selection'];if(_0x220dd0['isCollapsed'])return void _0x5d1efa(_0xd7d039);const _0x5c46c7=void 0x0!==_0xd7d039['forceValue']?_0xd7d039['forceValue']:!_0x6bb73e['value'];_0x4f4503['change'](()=>{const _0x49e162=Array['from'](_0x220dd0['getRanges']());for(const _0x2878b9 of _0x49e162){const _0x335474=_0x5c46c7?[_0x2878b9]:io(_0x5dfd4c,_0x2878b9,_0x4f4503);for(const _0x38a22d of _0x335474)_0x4aa7f5['markInlineFormat'](_0x38a22d,{'commandName':_0x5dfd4c,'commandParams':[{'forceValue':_0x5c46c7}]});}});}),_0x4aa7f5['descriptionFactory']['registerDescriptionCallback'](_0x46fd96=>{if('formatBlock'!=_0x46fd96['type']&&'formatInline'!=_0x46fd96['type'])return;const {data:_0x5b5aab}=_0x46fd96;return _0x5b5aab&&_0x5b5aab['commandName']==_0x5dfd4c?_0x5b5aab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2cdf72,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2cdf72,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x27318c{['afterInit'](){const _0x29200b=this['editor'];if(!_0x29200b['plugins']['has']('Style')||!_0x29200b['plugins']['has']('DataSchema'))return;const _0x281834=_0x29200b['plugins']['get']('TrackChangesEditing'),_0x2e497d=_0x29200b['locale'],_0x12c5d7=_0x29200b['config']['get']('style')||{},_0x5df414=_0x29200b['plugins']['get']('GeneralHtmlSupport'),_0x9847cc=_0x29200b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x29200b['plugins']['get']('DataSchema'),_0x12c5d7['definitions']);_0x281834['enableDefaultAttributesIntegration']('style');const _0x341324=new Set();for(const _0x1c338a of _0x9847cc['block']){const _0x2caab7=_0x5df414['getGhsAttributeNameForElement'](_0x1c338a['element']);_0x341324['add'](_0x2caab7);}const _0x1a8eab=new Set();for(const _0x6e122f of _0x9847cc['inline']){const _0xe48165=_0x5df414['getGhsAttributeNameForElement'](_0x6e122f['element']);_0x1a8eab['add'](_0xe48165);for(const _0xd2542c of _0x6e122f['ghsAttributes'])_0x1a8eab['add'](_0xd2542c);}for(const _0x231d42 of _0x341324)_0x281834['registerBlockAttribute'](_0x231d42),_0x281834['descriptionFactory']['registerAttributeLabel'](_0x231d42,o(_0x2e497d,'FORMAT_STYLE'));for(const _0x470b3f of _0x1a8eab)_0x281834['registerInlineAttribute'](_0x470b3f),_0x281834['descriptionFactory']['registerAttributeLabel'](_0x470b3f,o(_0x2e497d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23df1a=this['editor'],_0x16d426=_0x23df1a['locale'];_0x23df1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x549912=>{if('formatBlock'!=_0x549912['type']&&'formatInline'!=_0x549912['type'])return;const {data:_0x28a44f}=_0x549912;return _0x28a44f&&'style'===_0x28a44f['commandName']?_0x28a44f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16d426,'*Set\x20format:*\x20%0',_0x28a44f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x16d426,'*Remove\x20format:*\x20%0',_0x28a44f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x27318c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xe64a28){super(_0xe64a28),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x101a27=this['editor'],_0x212177=_0x101a27['model']['document']['selection'];if(!_0x101a27['plugins']['has']('TableEditing'))return;const _0x5010c1=_0x101a27['locale'],_0x1585d2=_0x101a27['plugins']['get']('TrackChangesEditing'),_0x28a5a5=_0x101a27['plugins']['get']('TableUtils');_0x1585d2['descriptionFactory']['registerElementLabel']('table',_0x3f2e9d=>o(_0x5010c1,'ELEMENT_TABLE',_0x3f2e9d)),this['_setupColumnsRowsFixing'](),_0x1585d2['enableCommand']('insertTable'),_0x1585d2['enableCommand']('selectTableRow'),_0x1585d2['enableCommand']('selectTableColumn');for(const _0x436abc of['insertTableRowAbove','insertTableRowBelow']){const _0x1ef89b=_0x101a27['commands']['get'](_0x436abc);_0x1585d2['enableCommand'](_0x436abc,_0x355f3e=>{_0x101a27['model']['change'](_0x1847f=>{_0x355f3e();const _0x19cf16='above'===_0x1ef89b['order'],_0x2c8d32=_0x28a5a5['getSelectionAffectedTableCells'](_0x212177),_0x43e731=_0x28a5a5['getRowIndexes'](_0x2c8d32),_0x346db3=_0x19cf16?_0x43e731['first']-0x1:_0x43e731['last']+0x1,_0x5dd176=_0x2c8d32[0x0]['findAncestor']('table'),_0x483c9d=_0x28a5a5['createTableWalker'](_0x5dd176,{'startRow':_0x346db3,'endRow':_0x346db3}),_0x30057d=Array['from'](_0x483c9d)['map'](_0x28a3c9=>_0x1847f['createRangeOn'](_0x28a3c9['cell']));_0x1585d2['markMultiRangeInsertion'](_0x30057d,'tableRow');});});}for(const _0x447fcf of['insertTableColumnLeft','insertTableColumnRight']){const _0x388683=_0x101a27['commands']['get'](_0x447fcf);_0x1585d2['enableCommand'](_0x447fcf,_0x145edd=>{_0x101a27['model']['change'](_0x4c441d=>{_0x145edd();const _0x588148='left'===_0x388683['order'],_0x496059=_0x28a5a5['getSelectionAffectedTableCells'](_0x212177),_0x4619d3=_0x28a5a5['getColumnIndexes'](_0x496059),_0xab7bbf=_0x588148?_0x4619d3['first']-0x1:_0x4619d3['last']+0x1,_0x542639=_0x496059[0x0]['findAncestor']('table'),_0xc65410=_0x28a5a5['createTableWalker'](_0x542639,{'startRow':0x0,'column':_0xab7bbf,'includeAllSlots':!0x1}),_0x2cc36f=Array['from'](_0xc65410)['map'](_0x2defba=>_0x4c441d['createRangeOn'](_0x2defba['cell']));_0x1585d2['markMultiRangeInsertion'](_0x2cc36f,'tableColumn');});});}for(const _0x4a063e of['removeTableRow','removeTableColumn']){const _0xda00cd=_0x4a063e['substr'](0xb),_0x11fc73=_0xda00cd['toLowerCase'](),_0x89c78=_0x11fc73['substr'](0x0,0x3)+'span',_0x1f9b79='table'+_0xda00cd,_0x3d08d0='min'+_0xda00cd,_0x534391='max'+_0xda00cd;_0x1585d2['enableCommand'](_0x4a063e,()=>{_0x101a27['model']['change'](_0x1e744c=>{const _0x4f2329=_0x28a5a5['getSelectionAffectedTableCells'](_0x212177),_0x13bf48=_0x4f2329[0x0]['findAncestor']('table');let _0x44ac6d;if('removeTableRow'==_0x4a063e){const _0x1326da=_0x28a5a5['getRowIndexes'](_0x4f2329);_0x44ac6d={'startRow':_0x1326da['first'],'endRow':_0x1326da['last'],'includeAllSlots':!0x0};}else{const _0x3ffe22=_0x28a5a5['getColumnIndexes'](_0x4f2329);_0x44ac6d={'startColumn':_0x3ffe22['first'],'endColumn':_0x3ffe22['last'],'includeAllSlots':!0x0};}const _0x380134=_0x28a5a5['createTableWalker'](_0x13bf48,_0x44ac6d),_0x262bdf=Array['from'](_0x380134)['map'](({cell:_0x4c8b24})=>_0x4c8b24),_0x2e3a52=Ne(_0x262bdf['filter'](_0x4aa81d=>_0x4aa81d['hasAttribute'](_0x89c78))),_0x177e93=Ne(_0x262bdf['filter'](_0x2fc093=>!_0x2fc093['hasAttribute'](_0x89c78)))['map'](_0x5b6cf2=>_0x1e744c['createRangeOn'](_0x5b6cf2)),_0xc1425b=_0x1585d2['markMultiRangeDeletion'](_0x177e93,_0x1f9b79);if(_0xc1425b&&('tableRow'==_0xc1425b['subType']||'tableColumn'==_0xc1425b['subType'])){const _0x5906fe=this['_getSuggestionCoords'](_0xc1425b);for(const _0x2b067d of _0x2e3a52){const _0x187099=_0x1e744c['createRangeOn'](_0x2b067d),_0x4e2182=_0x28a5a5['getCellLocation'](_0x2b067d),_0x24b7cd=_0x2b067d['getAttribute'](_0x89c78)-0x1,_0x488d1a=_0x5906fe[_0x3d08d0],_0x5b57ef=_0x5906fe[_0x534391];_0x488d1a<=_0x4e2182[_0x11fc73]&&_0x4e2182[_0x11fc73]+_0x24b7cd<=_0x5b57ef&&_0xc1425b['addRange'](_0x187099);}}});});}function _0x4e339f(_0xec9b16){const _0x308846=Array['from'](_0x212177['getRanges']())['map'](_0xe9b539=>_0x48c676['fromRange'](_0xe9b539));_0x101a27['model']['change'](_0x56f57f=>{const _0x2f10c2=_0x56f57f['batch'];_0xec9b16=_0xec9b16['filter'](_0x414cc5=>'$graveyard'!=_0x414cc5['root']['rootName']),_0x56f57f['setSelection'](_0xec9b16),_0x101a27['commands']['get']('removeTableRow')['refresh'](),_0x101a27['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x101a27['model']['enqueueChange'](()=>{_0x101a27['model']['enqueueChange'](_0x2f10c2,_0x1ddf92=>{const _0x108078=_0x308846['filter'](_0x36476f=>'$graveyard'!=_0x36476f['root']['rootName']);_0x108078['length']>0x0&&_0x1ddf92['setSelection'](_0x108078);for(const _0x35965e of _0x308846)_0x35965e['detach']();});});});}function _0x419c77(_0x149462){_0x101a27['model']['change'](_0x4b57aa=>{const _0x18b3b9=Array['from'](_0x212177['getRanges']())['map'](_0xdaca78=>_0x48c676['fromRange'](_0xdaca78)),_0x3f14da=[];for(const _0xbf830a of _0x149462)for(const _0x29ab74 of _0xbf830a['getItems']({'shallow':!0x0}))_0x3f14da['push'](_0x29ab74);for(const _0x345bca of _0x3f14da)'$graveyard'!=_0x345bca['root']['rootName']&&(_0x4b57aa['setSelection'](_0x4b57aa['createPositionAt'](_0x345bca,0x0)),_0x101a27['commands']['get']('removeTableColumn')['refresh'](),_0x101a27['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3c88d5=_0x18b3b9['filter'](_0x47d16d=>'$graveyard'!=_0x47d16d['root']['rootName']);_0x3c88d5['length']>0x0&&_0x4b57aa['setSelection'](_0x3c88d5);for(const _0x23c812 of _0x18b3b9)_0x23c812['detach']();});}function _0x18f770(_0x158cbe,_0x5e52c1){return _0x5e52c1['every'](_0x4893f8=>_0x158cbe['some'](_0x2ac0e4=>_0x2ac0e4['end']['isEqual'](_0x4893f8['start'])||_0x4893f8['end']['isEqual'](_0x2ac0e4['start'])));}function _0x5f62d(_0x46f7c6,_0x586ff4){return!_0x46f7c6['some'](_0x13c158=>_0x586ff4['some'](_0x5b3cb7=>_0x13c158['isIntersecting'](_0x5b3cb7)))&&_0x46f7c6['some'](_0x5d37ac=>_0x586ff4['some'](_0x144a89=>_0x5d37ac['end']['isTouching'](_0x144a89['start'])));}_0x101a27['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4320d2,_0x2707b3,_0x131afa)=>{if(!_0x131afa['options']['showSuggestionHighlights'])return;const _0x33d18d=_0x2707b3['item'];if(!_0x33d18d)return;const _0x2a3e43=_0x131afa['mapper']['toViewElement'](_0x33d18d);function _0x412763(_0x2cb639){return Array['isArray'](_0x2cb639)?_0x2cb639:[_0x2cb639];}_0x2a3e43&&'tableCell'===_0x33d18d['name']&&_0x976cb5(_0x2a3e43,_0x131afa['writer'],(_0x46d450,_0x20ee59,_0x1db72b)=>_0x1db72b['addClass'](_0x412763(_0x20ee59['classes']),_0x46d450),(_0x318bd9,_0x278ab3,_0x2be90e)=>_0x2be90e['removeClass'](_0x412763(_0x278ab3['classes']),_0x318bd9));},{'priority':'highest'}),_0x1585d2['descriptionFactory']['registerDescriptionCallback'](_0x2c7e3c=>{if('insertion'!=_0x2c7e3c['type']&&'deletion'!=_0x2c7e3c['type'])return;const _0xbc66fd=_0x2c7e3c['getContainedElement']();if(null!=_0xbc66fd&&_0xbc66fd['is']('element','table')){if('insertion'==_0x2c7e3c['type']){const _0x121b15=_0x2c7e3c['getItems']()['filter'](_0x1233dd=>_0x1233dd['is']('$textProxy'))['map'](_0x2bdfa2=>_0x2bdfa2['data']);if(_0x121b15['length'])return{'type':'insertion','content':o(_0x5010c1,'*Insert:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x121b15['join']('\x20')+'\x22'))};}if('deletion'==_0x2c7e3c['type']){const _0x21f40c=_0x2c7e3c['getItems']()['filter'](_0x190015=>_0x190015['is']('$textProxy'))['map'](_0x5e5962=>_0x5e5962['data']);if(_0x21f40c['length'])return{'type':'deletion','content':o(_0x5010c1,'*Remove:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21f40c['join']('\x20')+'\x22'))};}}}),_0x1585d2['descriptionFactory']['registerDescriptionCallback'](_0x4b2bdc=>{if('tableRow'==_0x4b2bdc['subType']){const _0x2c957e=_0x4b2bdc['getItems']()['filter'](_0x49c578=>_0x49c578['is']('$textProxy'))['map'](_0x2a1a06=>_0x2a1a06['data']),_0x4c732b=this['_getSuggestionCoords'](_0x4b2bdc),_0x4fbc78=_0x4c732b['maxRow']-_0x4c732b['minRow']+0x1;if('insertion'==_0x4b2bdc['type'])return _0x2c957e['length']?{'type':'insertion','content':o(_0x5010c1,'*Insert:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4fbc78,'\x22'+_0x2c957e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5010c1,'*Insert:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_ROW',_0x4fbc78))};if('deletion'==_0x4b2bdc['type'])return _0x2c957e['length']?{'type':'deletion','content':o(_0x5010c1,'*Remove:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4fbc78,'\x22'+_0x2c957e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5010c1,'*Remove:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_ROW',_0x4fbc78))};}if('tableColumn'==_0x4b2bdc['subType']){const _0x12564f=_0x4b2bdc['getItems']()['filter'](_0x4eaf45=>_0x4eaf45['is']('$textProxy'))['map'](_0x12f5e2=>_0x12f5e2['data']),_0x3a78ce=this['_getSuggestionCoords'](_0x4b2bdc),_0x8f74b4=_0x3a78ce['maxColumn']-_0x3a78ce['minColumn']+0x1;if('insertion'==_0x4b2bdc['type'])return _0x12564f['length']?{'type':'insertion','content':o(_0x5010c1,'*Insert:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x8f74b4,'\x22'+_0x12564f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5010c1,'*Insert:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_COLUMN',_0x8f74b4))};if('deletion'==_0x4b2bdc['type'])return _0x12564f['length']?{'type':'deletion','content':o(_0x5010c1,'*Remove:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x8f74b4,'\x22'+_0x12564f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5010c1,'*Remove:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_COLUMN',_0x8f74b4))};}}),_0x1585d2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4e339f),_0x1585d2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4e339f),_0x1585d2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x419c77),_0x1585d2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x419c77),_0x1585d2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x18f770),_0x1585d2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x18f770),_0x1585d2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5f62d),_0x1585d2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5f62d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1c23f4=this['editor'],_0x5d46a1=_0x1c23f4['model']['document']['selection'];return(_0x4d85b4,_0x54ca32)=>{_0x1c23f4['model']['change'](_0x5c4825=>{const {commandName:_0x3c3afb,commandParams:_0x17e027}=_0x54ca32;let _0x4add41=_0x4d85b4[0x0]['end']['nodeBefore'];_0x17e027&&_0x17e027[0x0]&&!0x1===_0x17e027[0x0]['forceValue']&&(_0x4add41=_0x4d85b4[0x0]['start']['nodeAfter']);const _0x5947a6=_0x5c4825['createRangeIn'](_0x4add41);if('$graveyard'==_0x5947a6['root']['rootName'])return;const _0x48e403=Array['from'](_0x5d46a1['getRanges']())['map'](_0x4b21d2=>_0x48c676['fromRange'](_0x4b21d2));_0x5c4825['setSelection'](_0x5947a6),_0x1c23f4['commands']['get'](_0x3c3afb)['refresh'](),_0x17e027['push']({'forceDefaultExecution':!0x0}),_0x1c23f4['execute'](_0x3c3afb,..._0x17e027);const _0x151321=_0x48e403['filter'](_0x21af63=>'$graveyard'!=_0x21af63['root']['rootName']);_0x151321['length']>0x0&&_0x5c4825['setSelection'](_0x151321);for(const _0x55ade3 of _0x48e403)_0x55ade3['detach']();});};}['_getCoordsForCells'](_0x144b59){const _0x4938be=this['editor']['plugins']['get']('TableUtils');let _0x43feb8=Number['MAX_SAFE_INTEGER'],_0x4857ce=Number['MIN_SAFE_INTEGER'],_0x436cf5=Number['MAX_SAFE_INTEGER'],_0x582f6a=Number['MIN_SAFE_INTEGER'];for(const _0x599cc7 of _0x144b59){if('$graveyard'==_0x599cc7['root']['rootName'])continue;const {row:_0x3eae15,column:_0x509fb5}=_0x4938be['getCellLocation'](_0x599cc7),_0x103bf2=_0x599cc7['hasAttribute']('rowspan')?_0x599cc7['getAttribute']('rowspan')-0x1:0x0,_0x49b598=_0x599cc7['hasAttribute']('colspan')?_0x599cc7['getAttribute']('colspan')-0x1:0x0;_0x43feb8=_0x3eae15<_0x43feb8?_0x3eae15:_0x43feb8,_0x4857ce=_0x3eae15+_0x103bf2>_0x4857ce?_0x3eae15+_0x103bf2:_0x4857ce,_0x436cf5=_0x509fb5<_0x436cf5?_0x509fb5:_0x436cf5,_0x582f6a=_0x509fb5+_0x49b598>_0x582f6a?_0x509fb5+_0x49b598:_0x582f6a;}return{'minRow':_0x43feb8,'maxRow':_0x4857ce,'minColumn':_0x436cf5,'maxColumn':_0x582f6a};}['_setupColumnsRowsFixing'](){const _0x18eb4e=this['editor'],_0x41af9f=_0x18eb4e['plugins']['get']('TrackChangesEditing'),_0x484469=_0x18eb4e['plugins']['get']('TableUtils');_0x18eb4e['model']['document']['on']('change:data',()=>{const _0x397d13=Array['from'](_0x18eb4e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14fb46,data:_0x1a089f}of _0x397d13){const {group:_0xf8a152,id:_0x489cdc,subType:_0x47db53}=_0x41af9f['_splitMarkerName'](_0x14fb46);if('suggestion'!=_0xf8a152)continue;if(null!=_0x1a089f['oldRange'])continue;const _0x323be8=_0x41af9f['getSuggestion'](_0x489cdc);this['_tablePostFixingSubtypes']['includes'](_0x47db53)&&this['_tableSuggestions']['add'](_0x323be8);}},{'priority':'low'});const _0x2c300d=(_0x233ab0,_0x637455)=>{let _0x50cf87=!0x1;const _0x15dad9=_0x637455['createRangeOn'](_0x233ab0),_0x42c3d8=_0x233ab0['findAncestor']('table'),_0x454bff=_0x484469['getCellLocation'](_0x233ab0);for(const _0x45b530 of this['_tableSuggestions']){const _0x10cb53=_0x45b530['subType'],_0x474ca4=_0x10cb53['startsWith']('tablePaste'),_0x42253a=_0x10cb53['substr'](_0x474ca4?0xa:0x5),_0x313079=_0x42253a['toLowerCase'](),_0x50c213=_0x313079['substr'](0x0,0x3)+'span',_0x99d80b='min'+_0x42253a,_0x174373='max'+_0x42253a;if(!_0x45b530['isInContent'])continue;if(_0x42c3d8!=_0x45b530['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x45b530['isIntersectingWithRange'](_0x15dad9))continue;const _0x2c4a06=_0x233ab0['hasAttribute'](_0x50c213)?_0x233ab0['getAttribute'](_0x50c213)-0x1:0x0,_0xefa8e8=this['_getSuggestionCoords'](_0x45b530),_0x27485c=_0xefa8e8[_0x99d80b],_0x56084a=_0xefa8e8[_0x174373];_0x27485c<=_0x454bff[_0x313079]&&_0x454bff[_0x313079]+_0x2c4a06<=_0x56084a&&(_0x45b530['addRange'](_0x15dad9),_0x50cf87=!0x0);}return _0x50cf87;};_0x18eb4e['model']['document']['registerPostFixer'](_0x35e15b=>{let _0x252073=!0x1;for(const _0x5678e8 of _0x18eb4e['model']['document']['differ']['getChanges']())if('insert'==_0x5678e8['type']){if('tableRow'==_0x5678e8['name']){for(const _0x5de4b5 of _0x5678e8['position']['nodeAfter']['getChildren']())_0x252073=_0x252073||_0x2c300d(_0x5de4b5,_0x35e15b);}else'tableCell'==_0x5678e8['name']&&(_0x252073=_0x252073||_0x2c300d(_0x5678e8['position']['nodeAfter'],_0x35e15b));}return _0x252073;});}['_getSuggestionCoords'](_0x3142ee){return this['_getCoordsForCells'](_0x3142ee['getRanges']()['map'](_0xae3c01=>_0xae3c01['start']['nodeAfter']));}}function Ne(_0x2e1fcc){return Array['from'](new Set(_0x2e1fcc)['values']());}class _t extends _0x27318c{static get['requires'](){return[vt];}['afterInit'](){const _0x265f6d=this['editor'],_0x1f5e7d=_0x265f6d['model']['document']['selection'],_0x572afa=_0x265f6d['locale'];if(!_0x265f6d['plugins']['has']('TableEditing'))return;const _0x5d61c8=_0x265f6d['plugins']['get']('TrackChangesEditing'),_0x273163=_0x265f6d['plugins']['get']('TableUtils'),_0x5ee18a=_0x265f6d['plugins']['get'](vt);_0x5ee18a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5d61c8['enableCommand']('mergeTableCells',()=>{const _0x3f9d5a=_0x273163['getSelectionAffectedTableCells'](_0x265f6d['model']['document']['selection']);_0x265f6d['model']['change'](()=>{_0x5d61c8['markMultiRangeBlockFormat'](_0x3f9d5a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x265f6d['commands']['get']('mergeTableCells')['on']('execute',(_0x19ccdb,_0x24010f)=>{_0x265f6d['commands']['get']('trackChanges')['value']&&(_0x24010f['length']>0x0&&_0x24010f[_0x24010f['length']-0x1]&&_0x24010f[_0x24010f['length']-0x1]['forceDefaultExecution']||_0x5d61c8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x19ccdb['stop']());},{'priority':'highest'});for(const _0x505f02 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x58e0bb=_0x265f6d['commands']['get'](_0x505f02);_0x5d61c8['enableCommand'](_0x505f02,()=>{const _0x2ddf0e=_0x265f6d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5bb16b=>_0x5bb16b['is']('element','tableCell')),_0x2ceb1e=_0x58e0bb['value'];_0x265f6d['model']['change'](()=>{_0x5d61c8['markMultiRangeBlockFormat']([_0x2ddf0e,_0x2ceb1e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x28107c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x51875a=_0x265f6d['commands']['get'](_0x28107c);_0x5d61c8['enableCommand'](_0x28107c,()=>{const _0x114c46=_0x273163['getSelectionAffectedTableCells'](_0x265f6d['model']['document']['selection'])[0x0],_0x2134f0=_0x114c46['findAncestor']('table'),{column:_0x91e6be,row:_0xdd0d93}=_0x273163['getCellLocation'](_0x114c46);let _0x4b3553=[];if('horizontally'==_0x51875a['direction']){const _0x1dc1ad=_0x273163['createTableWalker'](_0x2134f0,{'startRow':_0xdd0d93,'endRow':_0xdd0d93,'includeAllSlots':!0x0});_0x4b3553=Array['from'](_0x1dc1ad)['map'](_0x278f78=>_0x278f78['cell']);}else{const _0xf209c2=_0x273163['createTableWalker'](_0x2134f0,{'column':_0x91e6be,'includeAllSlots':!0x0});_0x4b3553=Array['from'](_0xf209c2)['map'](_0x408527=>_0x408527['cell']);}_0x265f6d['model']['change'](_0x2dfd08=>{_0x5d61c8['markBlockFormat'](_0x2dfd08['createRangeOn'](_0x114c46),{'commandName':_0x28107c,'commandParams':[]},_0x4b3553,_0x28107c);});});}_0x5d61c8['descriptionFactory']['registerDescriptionCallback'](_0x1ae4e0=>{if('formatBlock'!=_0x1ae4e0['type']&&'formatInline'!=_0x1ae4e0['type'])return;const {data:_0x254697}=_0x1ae4e0;return _0x254697&&'mergeTableCells'==_0x254697['commandName']?{'type':'format','content':o(_0x572afa,'*Merge\x20cells*')}:void 0x0;}),_0x5d61c8['descriptionFactory']['registerDescriptionCallback'](_0x28981d=>{if('formatBlock'!=_0x28981d['type']&&'formatInline'!=_0x28981d['type'])return;const {data:_0x1aee51}=_0x28981d;return _0x1aee51?'splitTableCellVertically'==_0x1aee51['commandName']?{'type':'format','content':o(_0x572afa,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1aee51['commandName']?{'type':'format','content':o(_0x572afa,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x32f2d6=_0x5ee18a['_acceptFormatSuggestionCallbackFactory']();for(const _0x4b5fd4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5d61c8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b5fd4,'accept',_0x32f2d6);for(const _0x2d213f of['splitTableCellVertically','splitTableCellHorizontally'])_0x5d61c8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d213f,'accept',_0x32f2d6);_0x5d61c8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x58f86a=>{_0x265f6d['model']['change'](_0x338f99=>{const _0x47942f=Array['from'](_0x1f5e7d['getRanges']())['map'](_0x814d8=>_0x48c676['fromRange'](_0x814d8));_0x338f99['setSelection'](_0x58f86a),_0x265f6d['commands']['get']('mergeTableCells')['refresh'](),_0x265f6d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4eeff2=_0x47942f['filter'](_0x5bd7cb=>'$graveyard'!=_0x5bd7cb['root']['rootName']);_0x4eeff2['length']>0x0&&_0x338f99['setSelection'](_0x4eeff2);for(const _0x5318d7 of _0x47942f)_0x5318d7['detach']();});});for(const _0x4e7a3c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x53f700=_0x265f6d['commands']['get'](_0x4e7a3c);_0x53f700['on']('set:isEnabled',(_0x249fc4,_0x498d52,_0x9a1bfd)=>{if(_0x9a1bfd){const _0x3ec009=_0x265f6d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xfba5d7=>_0xfba5d7['is']('element','tableCell'));this['_areMergableCells'](_0x53f700['value'],_0x3ec009)||(_0x249fc4['return']=!0x1,_0x249fc4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xe8ab1f=this['editor']['commands']['get']('mergeTableCells'),_0x146d28=this['editor']['plugins']['get']('TableUtils');if(!_0xe8ab1f['isEnabled'])return!0x1;const _0x4fa416=_0x146d28['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x12ff67 of _0x4fa416)for(const _0x5d2f69 of _0x4fa416)if(_0x12ff67!=_0x5d2f69&&!this['_areMergableCells'](_0x12ff67,_0x5d2f69))return!0x1;return!0x0;}['_areMergableCells'](_0x2a0190,_0x49b4c0){const _0x3a0c89=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51352e=this['editor']['model']['createRangeOn'](_0x2a0190),_0x4df06d=this['editor']['model']['createRangeOn'](_0x49b4c0),_0x59f88f=new Set(),_0x5a5955=new Set();for(const _0x724335 of _0x3a0c89['getSuggestions']())if(('insertion'==_0x724335['type']||'deletion'==_0x724335['type']||'mergeTableCells'==_0x724335['subType'])&&_0x724335['isInContent']){for(const _0x13e198 of _0x724335['getRanges']())_0x13e198['containsRange'](_0x51352e,!0x0)&&_0x59f88f['add'](_0x724335['type']+':'+_0x724335['author']['id']),_0x13e198['containsRange'](_0x4df06d,!0x0)&&_0x5a5955['add'](_0x724335['type']+':'+_0x724335['author']['id']);}if(_0x59f88f['size']!=_0x5a5955['size'])return!0x1;for(const _0x515025 of _0x59f88f)if(!_0x5a5955['has'](_0x515025))return!0x1;return!0x0;}}class Ct extends _0x27318c{static get['requires'](){return[vt];}['afterInit'](){const _0x48773c=this['editor'];if(!_0x48773c['plugins']['has']('TableEditing'))return;const _0x10b3f0=_0x48773c['locale'],_0x40aa06=_0x48773c['plugins']['get']('TrackChangesEditing');_0x40aa06['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x40aa06['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x40aa06['registerBlockAttribute']('headingRows'),_0x40aa06['registerBlockAttribute']('headingColumns'),_0x40aa06['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x10b3f0,'FORMAT_HEADER_ROW')),_0x40aa06['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x10b3f0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1d34b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41f77=this['editor']['plugins']['get']('TableUtils'),_0x2a9021=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x385f3a({showActiveMarker:_0x55a189=!0x0,setDataAttribute:_0x505bb8=!0x0}={}){return(_0x93cb1,_0x4c1daa,_0x4392b9)=>{const {type:_0x2b2fd5,id:_0x3e1333}=_0x1d34b9['_splitMarkerName'](_0x4c1daa['markerName']),_0x4ea9a3=_0x1d34b9['getSuggestion'](_0x3e1333),_0x5bc6b7=_0x4ea9a3['data'];if('formatBlock'!=_0x4ea9a3['type']||!_0x5bc6b7||'setTableColumnHeader'!=_0x5bc6b7['commandName'])return;if(_0x4c1daa['item'])return void _0x93cb1['stop']();if(!_0x4392b9['consumable']['consume'](_0x4c1daa['markerRange'],_0x93cb1['name']))return;const _0x47f705=_0x4c1daa['markerRange']['start']['nodeAfter'],_0x2a5c6c=_0x4c1daa['markerRange']['end']['nodeBefore'],_0x5a6066=_0x47f705['parent']['parent'],{column:_0x3720b1}=_0x41f77['getCellLocation'](_0x47f705),{column:_0x410cfc}=_0x41f77['getCellLocation'](_0x2a5c6c);for(let _0x26a723=_0x3720b1;_0x26a723<=_0x410cfc;_0x26a723++){const _0xf0bc2a=_0x41f77['createTableWalker'](_0x5a6066,{'column':_0x26a723,'includeAllSlots':!0x1});for(const _0x3eeca7 of _0xf0bc2a){const _0x2c6e01=_0x3eeca7['cell'],_0x3b2849=_0x4392b9['mapper']['toViewElement'](_0x2c6e01);_0x4392b9['writer']['addClass']('ck-suggestion-marker-'+_0x2b2fd5,_0x3b2849),_0x505bb8&&_0x4392b9['writer']['setAttribute']('data-suggestion',_0x3e1333,_0x3b2849),_0x4392b9['mapper']['bindElementToMarker'](_0x3b2849,_0x4c1daa['markerName']),_0x55a189&&(_0x1d34b9['activeMarkers']['includes'](_0x4c1daa['markerName'])?_0x4392b9['writer']['addClass']('ck-suggestion-marker--active',_0x3b2849):_0x4392b9['writer']['removeClass']('ck-suggestion-marker--active',_0x3b2849));}}};}_0x1d34b9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2a9021),_0x1d34b9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2a9021),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x385f3a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1212b1,_0x54b1e7,_0x33ccc0)=>{_0x33ccc0['options']['showSuggestionHighlights']&&_0x385f3a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1212b1,_0x54b1e7,_0x33ccc0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xf3ea12,_0xc3e496,_0x3f1a41)=>{const {type:_0x525a7a,id:_0x3d79ae}=_0x1d34b9['_splitMarkerName'](_0xc3e496['markerName']),_0x23b7cd=_0x1d34b9['getSuggestion'](_0x3d79ae),_0x46eb38=_0x23b7cd['data'];if('formatBlock'!=_0x23b7cd['type']||!_0x46eb38||'setTableColumnHeader'!=_0x46eb38['commandName'])return;const _0x4183f1=_0x3f1a41['mapper']['markerNameToElements'](_0xc3e496['markerName']);if(_0x4183f1){for(const _0x3820a8 of _0x4183f1)_0x3f1a41['writer']['removeClass']('ck-suggestion-marker-'+_0x525a7a,_0x3820a8),_0x3f1a41['writer']['removeClass']('ck-suggestion-marker--active',_0x3820a8),_0x3f1a41['writer']['removeAttribute']('data-suggestion',_0x3820a8),_0x3f1a41['mapper']['unbindElementFromMarkerName'](_0x3820a8,_0xc3e496['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2163ea=this['editor'],_0x4a7742=_0x2163ea['locale'];function _0x298e2c(_0x264666){return{'type':'format','content':o(_0x4a7742,'*Format:*\x20%0',_0x264666)};}_0x2163ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f0778=>{if('formatBlock'!=_0x2f0778['type'])return;const {data:_0x39c8cf}=_0x2f0778;if(_0x39c8cf){if('setTableRowHeader'==_0x39c8cf['commandName']){const _0x3eb573=_0x39c8cf['commandParams'][0x0]['forceValue'];return _0x298e2c(o(_0x4a7742,_0x3eb573?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x39c8cf['commandName']){const _0x5b01a1=_0x39c8cf['commandParams'][0x0]['forceValue'];return _0x298e2c(o(_0x4a7742,_0x5b01a1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x2b41c8=>[_0x2b41c8,null]));class Nt extends _0x27318c{static get['requires'](){return[vt];}['afterInit'](){const _0x126f71=this['editor'];if(!_0x126f71['plugins']['has']('TableClipboard'))return;const _0x202ecd=_0x126f71['plugins']['get']('TrackChangesEditing'),_0x1aa1de=_0x126f71['plugins']['get']('TableUtils'),_0x367069=_0x126f71['plugins']['get'](vt),_0x9db3b6=_0x126f71['plugins']['get']('TableClipboard');_0x367069['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x126f71['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x126f71['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x265450=null;_0x126f71['model']['on']('insertContent',(_0x5a5f43,_0x5fa6d8)=>{const [_0x8072a7,_0x27f8db]=_0x5fa6d8,_0x47242d=_0x5fa6d8[_0x5fa6d8['length']-0x1];_0x47242d&&_0x47242d['forceDefaultExecution']||_0x202ecd['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x26796d,_0x2ec68a,_0x196e4f,_0x586db6,_0x274a88){if(_0x2ec68a&&!_0x2ec68a['is']('documentSelection'))return!0x1;const _0x56fd47=_0x274a88['getTableIfOnlyTableInContent'](_0x26796d,_0x196e4f);if(!_0x56fd47||!Ue(_0x56fd47,void 0x0,_0x586db6))return!0x1;const _0x25499b=_0x586db6['getSelectionAffectedTableCells'](_0x196e4f['document']['selection']);if(!_0x25499b['length'])return!0x1;const _0x1382d5=_0x25499b[0x0]['findAncestor']('table'),_0x2a5f8c=_0x586db6['getRowIndexes'](_0x25499b),_0x5836e6=_0x586db6['getColumnIndexes'](_0x25499b),_0x27a134={'startRow':_0x2a5f8c['first'],'endRow':_0x2a5f8c['last'],'startColumn':_0x5836e6['first'],'endColumn':_0x5836e6['last']};return 0x1==_0x25499b['length']&&(_0x27a134['endRow']+=_0x586db6['getRows'](_0x56fd47)-0x1,_0x27a134['endColumn']+=_0x586db6['getColumns'](_0x56fd47)-0x1),Ue(_0x1382d5,_0x27a134,_0x586db6);}(_0x8072a7,_0x27f8db,_0x126f71['model'],_0x1aa1de,_0x9db3b6)&&(_0x5a5f43['stop'](),_0x265450={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x126f71['model']['change'](()=>{_0x126f71['model']['insertContent'](_0x5fa6d8[0x0],_0x5fa6d8[0x1],_0x5fa6d8[0x2],{'forceDefaultExecution':!0x0});const _0x1dd281=_0x3330a4(),{rowInsertionRanges:_0x56d69b,columnInsertionRanges:_0x30d616,insertionRanges:_0x3581cb,deletionRanges:_0xcd7c0b,cells:_0x453c6c}=_0x265450;_0x56d69b['length']&&_0x202ecd['markMultiRangeInsertion'](_0x56d69b,'tablePasteRow',{'tablePasteChainId':_0x1dd281}),_0x30d616['length']&&_0x202ecd['markMultiRangeInsertion'](_0x30d616,'tablePasteColumn',{'tablePasteChainId':_0x1dd281}),_0x3581cb['length']&&(_0x202ecd['markMultiRangeInsertion'](_0x3581cb,'tablePaste',{'tablePasteChainId':_0x1dd281,'skipNestingCheck':!0x0}),_0x3581cb['forEach'](_0x56ad67=>_0x56ad67['detach']?.())),_0xcd7c0b['length']&&(_0x202ecd['markMultiRangeDeletion'](_0xcd7c0b,'tablePaste',{'tablePasteChainId':_0x1dd281,'skipNestingCheck':!0x0}),_0xcd7c0b['forEach'](_0x4beb35=>_0x4beb35['detach']?.()));const _0x57d38b=_0x202ecd['markMultiRangeBlockFormat'](_0x453c6c['map'](({element:_0x53b3ca})=>_0x53b3ca),{'formatGroupId':_0x3330a4()},[],'tablePasteCell',{'tablePasteChainId':_0x1dd281});if(_0x57d38b){const _0x27be02=_0x57d38b['getMarkers'](),_0x205652=[];for(const {element:_0x16e73a,attributes:_0x486547}of _0x453c6c){if(!_0x486547)continue;const _0x2ba902=_0x126f71['model']['createRangeOn'](_0x16e73a),_0x16a94c=_0x27be02['find'](_0x2e31b5=>_0x2e31b5['getRange']()['isEqual'](_0x2ba902));_0x16a94c&&_0x205652['push']([_0x16a94c['name'],_0x486547]);}_0x205652['length']&&_0x57d38b['setAttribute']('markerAttributes',Object['fromEntries'](_0x205652));}_0x265450=null;}));},{'priority':_0x11b5a6['high']+0xa}),_0x126f71['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x419a19,_0x93b34d)=>{const [_0x31f06e,_0x10e4a0,,_0x15eee2]=_0x93b34d;if(!_0x265450)return;_0x419a19['stop']();const _0x482f8a=_0x31f06e['cell'],_0x1c3002=_0x10e4a0,_0x5b1992=Oe(_0x482f8a),_0x5a52a3=Oe(_0x1c3002);_0x419a19['return']=_0x482f8a;let _0x4f01a5=null,_0x1caff5=null;if(_0x5a52a3||_0x5b1992){if(_0x5b1992&&!_0x5a52a3){_0x15eee2['remove'](_0x482f8a['getChild'](0x0));for(const _0x433025 of Array['from'](_0x1c3002['getChildren']()))_0x15eee2['insert'](_0x433025,_0x482f8a,'end');const _0x197a0f=_0x265450['rowInsertionIndexes']['includes'](_0x31f06e['row']),_0x4fcae1=_0x265450['columnInsertionIndexes']['includes'](_0x31f06e['column']);_0x197a0f||_0x4fcae1||(_0x4f01a5=_0x48c676['fromRange'](_0x15eee2['createRangeIn'](_0x482f8a)));}else _0x5a52a3&&!_0x5b1992&&(_0x1caff5=_0x15eee2['createRangeIn'](_0x482f8a));}else{const _0x2c061f=_0x15eee2['createElement']('tableCellSuggestion'),_0x2c61d2=_0x15eee2['createElement']('tableCellSuggestion');_0x15eee2['wrap'](_0x15eee2['createRangeIn'](_0x482f8a),_0x2c61d2),_0x15eee2['insert'](_0x2c061f,_0x482f8a,0x0);for(const _0x417760 of Array['from'](_0x1c3002['getChildren']()))_0x15eee2['insert'](_0x417760,_0x2c061f,'end');_0x4f01a5=_0x48c676['fromRange'](_0x15eee2['createRangeOn'](_0x2c061f)),_0x1caff5=_0x48c676['fromRange'](_0x15eee2['createRangeOn'](_0x2c61d2));}const _0x42b7d7=Array['from'](_0x1c3002['getAttributes']())['filter'](([_0x54304c])=>Be['includes'](_0x54304c));_0x265450['cells']['push']({'element':_0x482f8a,'attributes':_0x42b7d7['length']?Object['fromEntries'](_0x42b7d7):null}),_0x4f01a5&&_0x265450['insertionRanges']['push'](_0x4f01a5),_0x1caff5&&_0x265450['deletionRanges']['push'](_0x1caff5);},{'priority':'high'}),_0x1aa1de['on']('insertColumns',(_0x551e4f,_0x4458bf)=>{const [_0x4d7cb5,_0x139a09={}]=_0x4458bf;if(!_0x265450)return;const _0x11c6cd=_0x139a09['at']||0x0,_0x5e7de6=_0x139a09['columns']||0x1;_0x265450['columnInsertionIndexes']=new Array(_0x5e7de6)['fill'](_0x11c6cd)['map']((_0x2e8a9e,_0x4dd8fb)=>_0x2e8a9e+_0x4dd8fb);for(const {cell:_0x459205}of _0x1aa1de['createTableWalker'](_0x4d7cb5,{'startColumn':_0x11c6cd,'endColumn':_0x11c6cd+_0x5e7de6-0x1}))_0x265450['columnInsertionRanges']['push'](_0x126f71['model']['createRangeOn'](_0x459205));},{'priority':'low'}),_0x1aa1de['on']('insertRows',(_0x47a1e1,_0x41d4c1)=>{const [_0x29f8ce,_0x117476={}]=_0x41d4c1;if(!_0x265450)return;const _0x1444fa=_0x117476['at']||0x0,_0x4a2e8a=_0x117476['rows']||0x1;_0x265450['rowInsertionIndexes']=new Array(_0x4a2e8a)['fill'](_0x1444fa)['map']((_0x3abd99,_0x12de9d)=>_0x3abd99+_0x12de9d);for(const {cell:_0x5e4863}of _0x1aa1de['createTableWalker'](_0x29f8ce,{'startRow':_0x1444fa,'endRow':_0x1444fa+_0x4a2e8a-0x1}))_0x265450['rowInsertionRanges']['push'](_0x126f71['model']['createRangeOn'](_0x5e4863));},{'priority':'low'}),_0x202ecd['descriptionFactory']['registerDescriptionCallback'](_0xe566d8=>{if(_0xe566d8['subType']&&_0xe566d8['subType']['startsWith']('tablePaste'))return _0xe566d8['previous']?{}:{'type':'insertion','content':o(_0x126f71['locale'],'*Replace\x20table\x20cells*')};});const _0x23c935=()=>!0x1;for(const _0x4b0e92 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x202ecd['_suggestionFactory']['registerCustomCallback']('insertion',_0x4b0e92,'join',_0x23c935),_0x202ecd['_suggestionFactory']['registerCustomCallback']('deletion',_0x4b0e92,'join',_0x23c935),_0x202ecd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b0e92,'join',_0x23c935);_0x202ecd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x23c935),_0x202ecd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2863a5,_0x349d01,_0x13ef3b)=>{const _0x51a582=_0x2863a5['map'](_0x1d84bd=>_0x1d84bd['getContainedElement']())['filter'](_0x39369e=>_0x39369e),_0x54b607=new Map(_0x51a582['map'](_0x322023=>[_0x322023,null]));if(_0x265450){for(const {element:_0x2334c5,attributes:_0x3d9aae}of _0x265450['cells'])_0x3d9aae&&_0x54b607['set'](_0x2334c5,_0x3d9aae);}else{if(_0x13ef3b&&_0x13ef3b['markerAttributes'])for(const [_0x52da81,_0x1da074]of Object['entries'](_0x13ef3b['markerAttributes'])){const _0x4d97ea=_0x126f71['model']['markers']['get'](_0x52da81),_0x1666ac=_0x4d97ea?_0x4d97ea['getRange']()['getContainedElement']():null;_0x1666ac&&_0x54b607['set'](_0x1666ac,_0x1da074);}}_0x126f71['model']['change'](_0x11c277=>{for(const [_0x53862f,_0x458f04]of _0x54b607)_0x11c277['setAttributes']({...xe,..._0x458f04},_0x53862f);});});const _0x1ca1c8=(_0x443d03,_0x5498ce)=>{_0x202ecd['_suggestionFactory']['registerCustomCallback'](_0x443d03,'tablePaste',_0x5498ce,(_0x5876a2,_0x28fdab,_0x494ae0)=>{_0x126f71['model']['change'](_0x4e9787=>{const _0x414585=[];for(const _0x4a7d97 of _0x5876a2){const _0x476243=_0x4a7d97['start']['nodeAfter'];_0x476243['is']('element','tableCellSuggestion')&&_0x414585['push'](_0x476243);}_0x202ecd['_suggestionFactory']['getSuggestionCallback'](_0x443d03,null,_0x5498ce)(_0x5876a2,_0x28fdab,_0x494ae0);for(const _0x5f38b4 of _0x414585)'$graveyard'!=_0x5f38b4['root']['rootName']&&_0x4e9787['unwrap'](_0x5f38b4);});});};_0x1ca1c8('insertion','accept'),_0x1ca1c8('insertion','discard'),_0x1ca1c8('deletion','accept'),_0x1ca1c8('deletion','discard'),_0x202ecd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1cc0dc=>{const _0x18b360=_0x1cc0dc['map'](_0xa59bdf=>_0xa59bdf['getContainedElement']()),_0x83f513=_0x18b360[0x0]['findAncestor']('table'),{minRow:_0x4d40df,maxRow:_0x3f5aed}=_0x367069['_getCoordsForCells'](_0x18b360);_0x1aa1de['removeRows'](_0x83f513,{'at':_0x4d40df,'rows':_0x3f5aed-_0x4d40df+0x1});}),_0x202ecd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x325454=>{const _0x3a88f1=_0x325454['map'](_0x31f409=>_0x31f409['getContainedElement']()),_0x468fe9=_0x3a88f1[0x0]['findAncestor']('table'),{minColumn:_0x38aec7,maxColumn:_0x5ea46c}=_0x367069['_getCoordsForCells'](_0x3a88f1);_0x1aa1de['removeColumns'](_0x468fe9,{'at':_0x38aec7,'columns':_0x5ea46c-_0x38aec7+0x1});});const _0xebb4ba=(_0x8433a3,_0x1da76a)=>{if(!_0x1da76a['subType']||!_0x1da76a['subType']['startsWith']('tablePaste'))return;const _0x3ba810=_0x1da76a['attributes']['tablePasteChainId'],_0x134f2f=_0x202ecd['getSuggestions']()['filter'](_0x31b91e=>_0x31b91e['isInContent']&&_0x31b91e['attributes']&&_0x31b91e['attributes']['tablePasteChainId']==_0x3ba810);_0x134f2f['length']&&_0x1da76a['getAllAdjacentSuggestions']()['length']!=_0x134f2f['length']&&_0x134f2f['reduce']((_0x11c3ae,_0x3d8efd)=>(_0x11c3ae['next']=_0x3d8efd,_0x3d8efd['previous']=_0x11c3ae,_0x3d8efd));};function _0x5b02e6(_0x740da1,_0x2e5b0c=!0x0){const {id:_0x57c14f,authorId:_0x3471ad}=_0x202ecd['_splitMarkerName'](_0x740da1['markerName']),_0x1b89f5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5bab97=_0x202ecd['activeMarkers']['includes'](_0x740da1['markerName']);return _0x5bab97&&_0x1b89f5['push']('ck-suggestion-marker--active'),{'classes':_0x1b89f5,'attributes':{'data-suggestion':_0x57c14f,'data-author-id':_0x3471ad},'priority':_0x5bab97&&_0x2e5b0c?0xbc2:0xbb8};}_0x202ecd['on']('suggestionLoaded',_0xebb4ba,{'priority':'high'}),_0x202ecd['on']('suggestionUnloaded',_0xebb4ba,{'priority':'high'}),_0x126f71['model']['document']['registerPostFixer'](()=>{let _0x5442ae=!0x1;const _0x15943e=Array['from'](_0x126f71['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14d410,data:_0x151b99}of _0x15943e){const {group:_0x183e89,type:_0x4c034b,id:_0x47dc3a}=_0x202ecd['_splitMarkerName'](_0x14d410);if('suggestion'!=_0x183e89||'deletion'!=_0x4c034b||_0x151b99['oldRange'])continue;if(!_0x202ecd['hasSuggestion'](_0x47dc3a))continue;const _0x4c3cbb=_0x202ecd['getSuggestion'](_0x47dc3a)['getRanges'](),_0xbb668e=_0x126f71['plugins']['get']('Users')['me'];for(const _0x1d1647 of _0x202ecd['getSuggestions']()){if(!_0x1d1647['isInContent']||_0x1d1647['author']!=_0xbb668e)continue;if('formatBlock'!=_0x1d1647['type']||'tablePasteCell'!=_0x1d1647['subType'])continue;if(_0x1d1647['getRanges']()['every'](_0x1f59e2=>_0x4c3cbb['some'](_0x321b52=>_0x321b52['containsRange'](_0x1f59e2,!0x0)))){for(const _0x33c555 of _0x1d1647['getAllAdjacentSuggestions']())_0x33c555['isInContent']&&(_0x33c555['discard'](),_0x5442ae=!0x0);}}}return _0x5442ae;}),_0x126f71['model']['document']['registerPostFixer'](_0x2317e9=>{const _0x3ac072=_0x126f71['commands']['get']('redo');if(!_0x3ac072||!_0x3ac072['_createdBatches']['has'](_0x2317e9['batch']))return!0x1;let _0xb0d89f=!0x1;const _0x238f7a=_0x126f71['plugins']['get']('Users')['me'],_0x193a40=_0x126f71['model']['document']['differ']['getChanges'](),_0x165464=Array['from'](_0x126f71['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3a5eda,data:_0x337ebb})=>{const {group:_0x4cd47c,subType:_0x5c3799,authorId:_0x1ef88a}=_0x202ecd['_splitMarkerName'](_0x3a5eda);return'suggestion'==_0x4cd47c&&'tablePaste'==_0x5c3799&&_0x1ef88a==_0x238f7a['id']&&!_0x337ebb['oldRange'];});for(const _0x2ea68d of _0x193a40){if('insert'!=_0x2ea68d['type']||'tableCellSuggestion'!=_0x2ea68d['name']||0x1!=_0x2ea68d['length'])continue;const _0x21d204=_0x2317e9['createRange'](_0x2ea68d['position'],_0x2ea68d['position']['getShiftedBy'](0x1));if(!_0x165464['find'](({data:_0x30694e})=>_0x30694e['newRange']['isEqual'](_0x21d204))){for(const {name:_0x2d14ce,data:_0x590c9a}of _0x165464)if(_0x21d204['containsRange'](_0x590c9a['newRange'])){_0x2317e9['updateMarker'](_0x2d14ce,{'range':_0x21d204}),_0xb0d89f=!0x0;break;}}}return _0xb0d89f;}),_0x126f71['model']['document']['registerPostFixer'](_0x3afaf8=>{let _0xb63a2e=!0x1;const _0xd39cff=_0x126f71['plugins']['get']('Users')['me'],_0x1eb7ac=_0x202ecd['getSuggestions']()['filter'](_0x94fce8=>_0x94fce8['isInContent']&&_0x94fce8['author']==_0xd39cff),_0x307687=new Set(),_0x1fdba7=new Set();for(const _0x110b8c of _0x1eb7ac)if('tablePaste'==_0x110b8c['subType'])for(const _0x407986 of _0x110b8c['getMarkers']()){const _0x1aa556=_0x407986['getRange']()['getContainedElement']();if(_0x1aa556){if(_0x1aa556['is']('element','tableCellSuggestion')&&Oe(_0x1aa556)){_0x110b8c['removeMarker'](_0x407986['name']),_0x307687['add'](_0x1aa556),_0xb63a2e=!0x0;const _0x2f8a14=_0x1aa556['nextSibling'],_0x29fe9d=_0x1aa556['previousSibling'],_0x597c76=_0x2f8a14&&_0x2f8a14['is']('element','tableCellSuggestion'),_0x1f2db9=_0x29fe9d&&_0x29fe9d['is']('element','tableCellSuggestion');_0x597c76&&!_0x307687['has'](_0x2f8a14)&&_0x1fdba7['add'](_0x2f8a14),_0x1f2db9&&!_0x307687['has'](_0x29fe9d)&&_0x1fdba7['add'](_0x29fe9d);}else _0x1aa556['is']('element','paragraph')&&_0x1aa556['isEmpty']&&(_0x110b8c['removeMarker'](_0x407986['name']),_0xb63a2e=!0x0);}}else{if('tablePasteCell'==_0x110b8c['subType']){if(!_0x110b8c['attributes']||!_0x110b8c['attributes']['tablePasteChainId'])continue;const _0x36c67c=_0x110b8c['attributes']['markerAttributes'];if(_0x36c67c&&Object['keys'](_0x36c67c)['length'])continue;const _0x29b820=_0x110b8c['attributes']['tablePasteChainId'];let _0x32a103=!0x0,_0x490202=!0x0;for(const _0x456156 of _0x1eb7ac)if(_0x456156['subType']&&_0x456156['subType']['startsWith']('tablePaste')){if(!_0x456156['attributes']['tablePasteChainId']){_0x490202=!0x1;break;}if(_0x456156['id']!=_0x110b8c['id']&&_0x456156['attributes']['tablePasteChainId']==_0x29b820){_0x32a103=!0x1;break;}}_0x490202&&_0x32a103&&(_0x110b8c['removeMarkers'](),_0xb63a2e=!0x0);}}for(const _0x17d6b5 of _0x307687)_0x3afaf8['remove'](_0x17d6b5);for(const _0x3e6e63 of _0x1fdba7)_0x3afaf8['unwrap'](_0x3e6e63);return _0xb63a2e;}),_0x126f71['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x45a50a=>_0x5b02e6(_0x45a50a),'converterPriority':'high'}),_0x126f71['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x592deb,_0x114459)=>_0x114459['options']['showSuggestionHighlights']?_0x5b02e6(_0x592deb,!0x1):null,'converterPriority':'high'});const _0x41e3d1=_0x126f71['editing']['view'];this['listenTo'](_0x41e3d1['document'],'clipboardOutput',(_0x59630d,_0x42f886)=>{const _0x1ef3b6=[];for(const _0x32786c of _0x41e3d1['createRangeIn'](_0x42f886['content'])['getItems']())_0x32786c['is']('element','suggestion-td')&&_0x1ef3b6['push'](_0x32786c);_0x41e3d1['change'](_0xb6ca8b=>{for(const _0x2de1b5 of _0x1ef3b6)_0xb6ca8b['move'](_0xb6ca8b['createRangeIn'](_0x2de1b5),_0xb6ca8b['createPositionBefore'](_0x2de1b5)),_0xb6ca8b['remove'](_0x2de1b5);});});}}function Oe(_0x47ece2){if(_0x47ece2['isEmpty'])return!0x0;const _0x36d5bc=_0x47ece2['getChild'](0x0);return _0x36d5bc['is']('element','paragraph')&&_0x36d5bc['isEmpty'];}function Ue(_0x1eceac,_0xf2ebc2={},_0x557111){for(const {isAnchor:_0xc02bd5,cellHeight:_0x220130,cellWidth:_0x4e56aa}of _0x557111['createTableWalker'](_0x1eceac,{'includeAllSlots':!0x0,..._0xf2ebc2}))if(!_0xc02bd5||0x1!=_0x220130||0x1!=_0x4e56aa)return!0x1;return!0x0;}class Dt extends _0x27318c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x54eef5=this['editor']['plugins']['get']('TrackChangesEditing');_0x54eef5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x54eef5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x54eef5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54eef5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x54eef5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x54eef5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1cb80b,_0x295978){const _0x4d7b2d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10613d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x589c5e=_0x295978['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x37030f=_0x10613d['getColumnGroupElement'](_0x589c5e);let _0x3b6cd5=_0x37030f?_0x10613d['getTableColumnsWidths'](_0x37030f):null,_0x2403a8=_0x589c5e['getAttribute']('tableWidth')||null;const _0x63c3e9=_0x295978['tableWidth']||_0x2403a8,_0x53cc6c=_0x295978['columnWidths']||_0x3b6cd5,_0x1f915d=this['editor']['plugins']['get']('Users')['me'];for(const _0x185ff2 of _0x4d7b2d['getSuggestions']()){const _0x1891e0=_0x185ff2['getContainedElement']();if('resizeTable'===_0x185ff2['subType']&&_0x1891e0===_0x589c5e){_0x185ff2['author']!==_0x1f915d&&_0x185ff2['discard']();const _0xbab455=_0x185ff2['data']['commandParams'];_0x2403a8=_0xbab455[0x0]['tableWidth'],_0x3b6cd5=_0xbab455[0x0]['columnWidths'];break;}}_0x1cb80b({'table':_0x589c5e,'tableWidth':_0x63c3e9,'columnWidths':_0x53cc6c}),_0x4d7b2d['markBlockFormat'](_0x589c5e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2403a8,'columnWidths':_0x3b6cd5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2129f5){if('formatBlock'!=_0x2129f5['type']&&'formatInline'!=_0x2129f5['type'])return;const {data:_0x27a562}=_0x2129f5;if(_0x27a562&&'resizeTable'===_0x27a562['formatGroupId']){const _0x5012ad='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5012ad)};}}}class Mt extends _0x27318c{['afterInit'](){const _0x205f44=this['editor'];_0x205f44['plugins']['has']('Template')&&_0x205f44['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x27318c{['afterInit'](){const _0x53f1ce=this['editor'];if(!_0x53f1ce['commands']['get']('insertTableOfContents'))return;_0x53f1ce['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2abefd=_0x53f1ce['plugins']['get']('TrackChangesEditing'),_0x1480c4=_0x53f1ce['locale'];_0x2abefd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x14d2dc=>o(_0x1480c4,'ELEMENT_TABLE_OF_CONTENTS',_0x14d2dc));}}class Bt extends _0x27318c{['afterInit'](){const _0x18734c=this['editor'];if(!_0x18734c['plugins']['has']('Title'))return;const _0xe2fd27=_0x18734c['plugins']['get']('TrackChangesEditing');_0xe2fd27['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x18734c['locale'],'ELEMENT_TITLE')),_0x18734c['model']['document']['registerPostFixer'](_0x51f228=>{let _0x99f991=!0x1;const _0x2f6714=Array['from'](_0x18734c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x657fc0,data:_0x209d50}of _0x2f6714){const {group:_0x8a21b2}=_0xe2fd27['_splitMarkerName'](_0x657fc0);if('suggestion'!==_0x8a21b2||!_0x209d50['newRange'])continue;const _0x57172c=_0x209d50['newRange'],_0x3e7e6f=_0x57172c['end']['nodeBefore'];if(!_0x3e7e6f||!_0x3e7e6f['is']('element','title-content'))continue;if(!_0x57172c['start']['isTouching'](_0x57172c['end']))continue;const _0x2c4d8c=_0x18734c['model']['schema']['getNearestSelectionRange'](_0x57172c['end'],'forward');if(_0x2c4d8c&&_0x2c4d8c['isCollapsed']){const _0x3f57b2=_0x51f228['createRange'](_0x57172c['start'],_0x2c4d8c['start']);_0x3f57b2['isEqual'](_0x57172c)||(_0x51f228['updateMarker'](_0x657fc0,{'range':_0x3f57b2}),_0x99f991=!0x0);}_0x99f991||(_0x51f228['removeMarker'](_0x657fc0),_0x99f991=!0x0);}return _0x99f991;});}}class Ot extends _0x27318c{['afterInit'](){const _0x15f576=this['editor'],_0x406336=_0x15f576['plugins']['get']('TrackChangesEditing');_0x15f576['plugins']['has']('Uploadcare')&&(_0x406336['enableCommand']('uploadcare'),_0x15f576['plugins']['has']('UploadcareImageEdit')&&(_0x406336['enableCommand']('uploadcareImageEdit'),_0x406336['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x406336['registerBlockAttribute']('uploadcareImageId'),_0x406336['descriptionFactory']['registerDescriptionCallback'](_0x51ebec=>{if('attribute'!=_0x51ebec['type'])return;const {data:_0x32016e}=_0x51ebec;return _0x32016e&&'uploadcareImageId'==_0x32016e['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x27318c{['afterInit'](){const _0x3095b1=this['editor'],_0x208d79=_0x3095b1['plugins']['get']('TrackChangesEditing');_0x3095b1['plugins']['has']('UndoEditing')&&(_0x208d79['enableCommand']('undo'),_0x208d79['enableCommand']('redo'));}}class Tt extends _0x27318c{static get['requires'](){return[vt];}['afterInit'](){const _0x2ae507=this['editor'];if(!_0x2ae507['plugins']['has']('TableCaptionEditing'))return;_0x2ae507['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x27318c{['tableProperties'];['tableCellProperties'];constructor(_0x786b1){super(_0x786b1),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 _0x48f5b0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x245d85 of this['tableProperties'])_0x48f5b0['enableCommand'](_0x245d85,(_0x52bbd4,_0x3838c8)=>{const _0x237bf2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x245d85,[_0x237bf2],this['tableProperties'],'tableProperties',_0x52bbd4,_0x3838c8);});_0x48f5b0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x48f5b0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48f5b0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x39f312,_0x59d20a)=>this['handleDiscardAction'](this['tableProperties'],_0x39f312,_0x59d20a)),_0x48f5b0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1da987 of this['tableCellProperties'])_0x48f5b0['enableCommand'](_0x1da987,(_0x2d76f0,_0xfad58d)=>{const _0x34d46a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1da987,_0x34d46a,this['tableCellProperties'],'tableCellProperties',_0x2d76f0,_0xfad58d);});_0x48f5b0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x48f5b0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48f5b0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x33e766,_0xa7b6a4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x33e766,_0xa7b6a4)),_0x48f5b0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x48f5b0['descriptionFactory']['registerDescriptionCallback'](_0x447c4c=>this['handleSuggestionDescription'](_0x447c4c));}['_handlePropertyChange'](_0x3118a5,_0x357b91,_0x129890,_0x15ed2e,_0x7f60b3,_0x5aa33f){const _0x1a742c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5aa33f['batch'],()=>{for(const _0x2219a0 of _0x357b91){if(this['_getSuggestion'](_0x2219a0,_0x15ed2e))_0x7f60b3(_0x5aa33f);else{const _0x1ccebd={};for(const _0x33f437 of _0x129890){const _0x55d739=_0x2219a0['getAttribute'](_0x33f437);void 0x0!==_0x55d739&&(_0x1ccebd[_0x33f437]=_0x55d739);}_0x7f60b3(_0x5aa33f),_0x1a742c['markBlockFormat'](_0x2219a0,{'commandParams':[_0x1ccebd]},[],_0x15ed2e);}}});}['handleDiscardAction'](_0x4959f5,_0x145a19,_0x349fd8){const _0xaf919a=_0x145a19[0x0]['start']['nodeAfter'],_0x43c5f4=_0x349fd8['commandParams'][0x0];this['editor']['model']['change'](_0x2cd5d7=>{for(const _0x4f2409 of _0x4959f5)void 0x0!==_0x43c5f4[_0x4f2409]?_0x2cd5d7['setAttribute'](_0x4f2409,_0x43c5f4[_0x4f2409],_0xaf919a):_0x2cd5d7['removeAttribute'](_0x4f2409,_0xaf919a);});}['handleSuggestionDescription'](_0x4d8f2a){if(_0x4d8f2a['data'])switch(_0x4d8f2a['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'](_0x2ae440,_0x3cdeb1){const _0x6448d5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x38a968 of _0x6448d5['getSuggestions']({'skipNotAttached':!0x0})){const _0x47141f=_0x38a968['getContainedElement']();if(_0x38a968['subType']===_0x3cdeb1&&_0x47141f===_0x2ae440)return _0x38a968;}return null;}}const m='$elementName';class p extends _0x27318c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x53f0ce,_0x53f58f,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1239f2){super(_0x1239f2),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5e204e,_0x14f482,_0x40c372,_0x1e7781)=>{this['_model']['change'](()=>{for(const _0x1852e9 of[..._0x1e7781,..._0x40c372])this['_model']['markers']['has'](_0x1852e9)&&_0x1239f2['editing']['reconvertMarker'](_0x1852e9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1239f2['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(),_0x1239f2['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1239f2['config']['get']('trackChanges.trackFormatChanges'),_0x1239f2['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1239f2['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1239f2,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x522eb2=this['editor'],_0x142baa=(_0x5c3eba,_0x447b08)=>{if('attribute'!=_0x5c3eba)return'ck-suggestion-marker-'+_0x5c3eba;const _0x1b5e0d=_0x447b08['split']('|')[0x0];return this['_isBlockAttribute'](_0x1b5e0d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x522eb2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4865a2=>{const {id:_0x4d8922,authorId:_0x2c150f,type:_0x4b9446,subType:_0x3aa94c}=this['_splitMarkerName'](_0x4865a2['markerName']),_0x2f6b38=['ck-suggestion-marker',_0x142baa(_0x4b9446,_0x3aa94c)];let _0x5e0e01=0xbb8;return this['activeMarkers']['includes'](_0x4865a2['markerName'])&&(_0x2f6b38['push']('ck-suggestion-marker--active'),_0x5e0e01=0xbc2),'deletion'==_0x4b9446&&(_0x5e0e01+=0x5),{'classes':_0x2f6b38,'attributes':{'data-suggestion':_0x4d8922,'data-author-id':_0x2c150f},'priority':_0x5e0e01};}}),_0x522eb2['conversion']['for']('dataDowncast')['add'](_0x233f3b=>{_0x233f3b['on']('addMarker:suggestion',(_0x58d8b1,_0x491b07,_0x196958)=>{if(!_0x196958['options']['showSuggestionHighlights'])return;const _0xf23878=_0x491b07['item'];if(!_0xf23878)return;const _0x50bc0a=_0x196958['mapper']['toViewElement'](_0xf23878);_0x522eb2['model']['schema']['isObject'](_0xf23878)&&_0x50bc0a&&!_0x50bc0a['getCustomProperty']('widget')&&_0x50bc0a['is']('containerElement')&&_0x529a06(_0x50bc0a,_0x196958['writer']);},{'priority':'high'});}),_0x522eb2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x27a143,_0x4bf2ed)=>{if(!_0x4bf2ed['options']['showSuggestionHighlights'])return null;const {type:_0x448d6d,subType:_0xcd7856}=this['_splitMarkerName'](_0x27a143['markerName']);return{'classes':['ck-suggestion-marker',_0x142baa(_0x448d6d,_0xcd7856)],'priority':0xbb8};}});const _0x1c64ee=({showActiveMarkers:_0x5d86cc=!0x0,isAttributeSuggestion:_0x425f1d=!0x1}={})=>(_0x2c675a,_0x29eb3f,_0x19da06)=>{if(!_0x29eb3f['item'])return;const {id:_0x293388,authorId:_0x25a4b5}=this['_splitMarkerName'](_0x29eb3f['markerName']);if(_0x425f1d){const _0x14d231=this['_suggestions']['get'](_0x293388),_0x37f75f=this['_getAttributeKey'](_0x14d231);if(!this['_isBlockAttribute'](_0x37f75f))return;}if(_0x29eb3f['item']['is']('selection'))return void _0x19da06['consumable']['consume'](_0x29eb3f['item'],_0x2c675a['name']);const _0x1e44de=_0x19da06['mapper']['toViewElement'](_0x29eb3f['item']);if(_0x29eb3f['item']['is']('element')&&_0x522eb2['model']['schema']['isBlock'](_0x29eb3f['item'])&&!_0x1e44de['getCustomProperty']('addHighlight')){_0x19da06['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1e44de),_0x19da06['writer']['setAttribute']('data-suggestion',_0x293388,_0x1e44de),_0x19da06['writer']['setAttribute']('data-author-id',_0x25a4b5,_0x1e44de),_0x19da06['mapper']['bindElementToMarker'](_0x1e44de,_0x29eb3f['markerName']),_0x5d86cc&&(this['activeMarkers']['includes'](_0x29eb3f['markerName'])?_0x19da06['writer']['addClass']('ck-suggestion-marker--active',_0x1e44de):_0x19da06['writer']['removeClass']('ck-suggestion-marker--active',_0x1e44de));for(const _0x55dbc8 of _0x522eb2['model']['createRangeIn'](_0x29eb3f['item'])['getItems']())_0x19da06['consumable']['consume'](_0x55dbc8,_0x2c675a['name']);_0x19da06['consumable']['consume'](_0x29eb3f['item'],_0x2c675a['name']);}};_0x522eb2['conversion']['for']('dataDowncast')['add'](_0x3728ea=>{_0x3728ea['on']('addMarker:suggestion:formatBlock',(_0x274965,_0x3ee9fd,_0x41fb9a)=>{_0x41fb9a['options']['showSuggestionHighlights']&&_0x1c64ee({'showActiveMarkers':!0x1})(_0x274965,_0x3ee9fd,_0x41fb9a);},{'priority':'highest'});}),_0x522eb2['conversion']['for']('dataDowncast')['add'](_0x21636a=>{_0x21636a['on']('addMarker:suggestion:attribute',(_0x915868,_0x3f3b79,_0x517341)=>{_0x517341['options']['showSuggestionHighlights']&&_0x1c64ee({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x915868,_0x3f3b79,_0x517341);},{'priority':'highest'});}),_0x522eb2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5e28dd,_0xe9c3b8)=>_0xe9c3b8['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5e28dd['substr'](0xb)}}),_0x522eb2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3548ff,{writer:_0x424419})=>{let _0x1bfb08='suggestion:'+_0x3548ff['getAttribute']('suggestion-type')+':'+_0x3548ff['getAttribute']('id');return _0x3548ff['getAttribute']('marker-count')&&(_0x1bfb08+=':'+_0x3548ff['getAttribute']('marker-count')),_0x424419['createElement']('$marker',{'data-name':_0x1bfb08});}}),_0x522eb2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x522eb2['conversion']['for']('editingDowncast')['add'](_0x2fdfcd=>{_0x2fdfcd['on']('addMarker:suggestion:formatBlock',_0x1c64ee(),{'priority':'high'});}),_0x522eb2['conversion']['for']('editingDowncast')['add'](_0x123101=>{_0x123101['on']('addMarker:suggestion:attribute',_0x1c64ee({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x522eb2['conversion']['for']('editingDowncast')['add'](_0x2aa362=>{_0x2aa362['on']('removeMarker:suggestion:formatBlock',(_0x3240e1,_0x313efb,_0x3c38af)=>{const _0x435684=_0x3c38af['mapper']['markerNameToElements'](_0x313efb['markerName']);if(_0x435684){for(const _0xa1fdd5 of _0x435684)_0xa1fdd5['getCustomProperty']('addHighlight')||(_0x3c38af['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xa1fdd5),_0x3c38af['writer']['removeAttribute']('data-suggestion',_0xa1fdd5),_0x3c38af['writer']['removeAttribute']('data-author-id',_0xa1fdd5),_0x3c38af['mapper']['unbindElementFromMarkerName'](_0xa1fdd5,_0x313efb['markerName']));}},{'priority':'high'});}),_0x522eb2['conversion']['for']('editingDowncast')['add'](_0x52961e=>{_0x52961e['on']('removeMarker:suggestion:attribute',(_0x41347b,_0x46b142,_0x877344)=>{const _0x3159fd=_0x877344['mapper']['markerNameToElements'](_0x46b142['markerName']);if(!_0x3159fd)return;const {id:_0x21a93f}=this['_splitMarkerName'](_0x46b142['markerName']),_0x159215=this['_suggestions']['get'](_0x21a93f),_0x47eca0=this['_getAttributeKey'](_0x159215);if(this['_isBlockAttribute'](_0x47eca0)){for(const _0x31faf7 of _0x3159fd)_0x31faf7['getCustomProperty']('addHighlight')||(_0x877344['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x31faf7),_0x877344['writer']['removeAttribute']('data-suggestion',_0x31faf7),_0x877344['writer']['removeAttribute']('data-author-id',_0x31faf7),_0x877344['mapper']['unbindElementFromMarkerName'](_0x31faf7,_0x46b142['markerName']));}},{'priority':'high'});}),_0x522eb2['model']['document']['registerPostFixer'](_0x477765=>{let _0x4a5121=!0x1;const _0x146fce=Array['from'](_0x522eb2['model']['document']['differ']['getChangedMarkers']()),_0x21e94c=new Set();for(const {name:_0x1445ee,data:_0xd79443}of _0x146fce){const {group:_0x39f97f,type:_0x52c81d,subType:_0x149f17,id:_0x2ab406}=this['_splitMarkerName'](_0x1445ee);if('suggestion'!==_0x39f97f)continue;const _0x27bc74=this['_suggestions']['get'](_0x2ab406);if(null!=_0xd79443['newRange']){'formatInline'==_0x52c81d&&(_0x4a5121=_0x4a5121||Gt(_0xd79443['newRange'],_0x1445ee,_0x477765,_0x522eb2['model']['schema']));const _0x2fe699='attribute'==_0x52c81d&&this['_isBlockAttribute'](_0x149f17['split']('|')[0x0]);if(_0xd79443['newRange']['isCollapsed']||'$graveyard'==_0xd79443['newRange']['root']['rootName']||'formatBlock'==_0x52c81d&&!Lt(_0xd79443['newRange'])||_0x2fe699&&!Lt(_0xd79443['newRange'])||'deletion'==_0x52c81d&&!(!Pt(_0x30a644=_0xd79443['newRange'])&&!function(_0x31a4c8){return _0x31a4c8['start']['parent']==_0x31a4c8['end']['nodeBefore']&&_0x31a4c8['start']['isAtEnd'];}(_0x30a644)))_0x477765['removeMarker'](_0x1445ee),_0x4a5121=!0x0;else{if(!_0x27bc74||!_0x27bc74['isInContent'])continue;if(_0xd79443['newRange']&&_0xd79443['oldRange']&&_0xd79443['newRange']['isEqual'](_0xd79443['oldRange']))continue;_0x21e94c['add'](_0x27bc74);}}}var _0x30a644;return _0x21e94c['size']>0x0&&(_0x4a5121=!!this['_joinWithAdjacentSuggestions'](_0x21e94c)||_0x4a5121),_0x4a5121;}),_0x522eb2['model']['document']['registerPostFixer'](_0x210c95=>{let _0x262f91=!0x1;for(const _0x3428e8 of _0x522eb2['model']['document']['differ']['getChanges']())if('insert'==_0x3428e8['type'])for(const _0x2c5332 of this['_suggestions']['values']()){if(_0x2c5332['isMultiRange']||!_0x2c5332['isInContent'])continue;const _0x5c04ac='formatBlock'==_0x2c5332['type'],_0x298890=this['_getAttributeKey'](_0x2c5332),_0x6dfe29=_0x298890&&this['_isBlockAttribute'](_0x298890);if(!_0x5c04ac&&!_0x6dfe29)continue;const _0x1066cd=_0x2c5332['getFirstRange']();if(_0x1066cd['start']['parent']!=_0x1066cd['end']['parent']&&!_0x1066cd['end']['isAtEnd']){const _0x551a56=_0x522eb2['model']['createPositionAt'](_0x1066cd['start']['nodeAfter'],'end'),_0x1e7c1c=_0x522eb2['model']['createRange'](_0x1066cd['start'],_0x551a56);_0x210c95['updateMarker'](_0x2c5332['getFirstMarker'](),{'range':_0x1e7c1c}),_0x262f91=!0x0;}}return _0x262f91;}),_0x522eb2['model']['document']['registerPostFixer'](_0x2ef933=>this['_processAttributeChanges'](_0x2ef933)),_0x522eb2['model']['document']['registerPostFixer'](_0x2fb254=>!_0x2fb254['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2fb254)),_0x522eb2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x522eb2['model']['document']['on']('change:data',(_0x452313,_0x27648b)=>{if(!_0x27648b['isLocal']||_0x27648b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x499e37=_0x522eb2['model']['document']['differ']['getChanges']();if(0x0==_0x499e37['length'])return;const _0x2d694e=[],_0x16a60c=_0x499e37['filter'](_0x3380a3=>'attribute'==_0x3380a3['type']),_0x3cdc8e=_0x499e37['filter'](_0x4bed6b=>'insert'==_0x4bed6b['type']&&'$text'!=_0x4bed6b['name']);for(const _0x539c70 of _0x16a60c)this['_isRegisteredAttribute'](_0x539c70['attributeKey'])&&_0x2d694e['push']({'key':_0x539c70['attributeKey'],'newValue':_0x539c70['attributeNewValue'],'oldValue':_0x539c70['attributeOldValue'],'range':Jt(_0x539c70['range'],_0x522eb2['model'])});for(const _0x2f8850 of _0x3cdc8e){if('rename'!=_0x2f8850['action']&&'refresh'!=_0x2f8850['action'])continue;const _0x23ad6e=Ht(_0x2f8850['position']['nodeAfter'],_0x522eb2['model']),_0x141d26=_0x2f8850['before'];'rename'==_0x2f8850['action']&&_0x2d694e['push']({'key':m,'newValue':_0x2f8850['name'],'oldValue':_0x141d26['name'],'range':_0x23ad6e});for(const [_0x5b2498,_0x23cab2]of _0x141d26['attributes']){if(!this['_isRegisteredAttribute'](_0x5b2498))continue;const _0x218f99=_0x2f8850['attributes']['get'](_0x5b2498);_0x23cab2!==_0x218f99&&_0x2d694e['push']({'key':_0x5b2498,'newValue':_0x218f99,'oldValue':_0x23cab2,'range':_0x23ad6e});}for(const [_0x394ceb,_0x59ff82]of _0x2f8850['attributes'])this['_isRegisteredAttribute'](_0x394ceb)&&(_0x141d26['attributes']['has'](_0x394ceb)||_0x2d694e['push']({'key':_0x394ceb,'newValue':_0x59ff82,'oldValue':null,'range':_0x23ad6e}));}0x0!=_0x2d694e['length']&&_0x522eb2['model']['enqueueChange'](_0x27648b,_0x4aa4f4=>{const _0x593e59=_0x3330a4();for(const {range:_0x1f1011,key:_0x329c55,oldValue:_0x26e9a7,newValue:_0x2eabf9}of _0x2d694e)this['markAttributeChange'](_0x1f1011,_0x329c55,_0x26e9a7,_0x2eabf9,{'groupId':_0x593e59});this['_reduceExistingSuggestions'](_0x4aa4f4,_0x2d694e);});},{'priority':'lowest'}),_0x522eb2['model']['markers']['on']('update:suggestion',(_0x164e4e,_0x5c1fe9,_0x311593)=>{if(null==_0x311593){const {id:_0x482151}=this['_splitMarkerName'](_0x5c1fe9['name']),_0xf0793b=this['_suggestions']['get'](_0x482151);_0xf0793b&&_0xf0793b['addMarkerName'](_0x5c1fe9['name']);}}),_0x522eb2['model']['document']['on']('change:data',()=>{const _0x5c9816=Array['from'](_0x522eb2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3e15b2=>'suggestion'===this['_splitMarkerName'](_0x3e15b2['name'])['group']);if(0x0===_0x5c9816['length'])return;_0x5c9816['sort']((_0x5053f9,_0x3bb86d)=>{const _0x9c5c41=_0x5053f9['data']['oldRange'],_0x1f8d1f=_0x3bb86d['data']['oldRange'];return null===_0x9c5c41&&null===_0x1f8d1f?0x0:null===_0x9c5c41&&null!==_0x1f8d1f?-0x1:null!==_0x9c5c41&&null===_0x1f8d1f?0x1:_0x9c5c41['start']['isBefore'](_0x1f8d1f['start'])?-0x1:0x1;});const _0x3bdd36=new Set(),_0x275319=new Set();for(const {name:_0x1a2526,data:_0x336200}of _0x5c9816){const {id:_0x5da7ea}=this['_splitMarkerName'](_0x1a2526);if(null===_0x336200['oldRange']){const _0x2c1087=this['_handleNewSuggestionMarker'](_0x1a2526);_0x275319['add'](_0x2c1087);}else{const _0x2187b8=this['_suggestions']['get'](_0x5da7ea);null!==_0x336200['newRange']||_0x2187b8['isInContent']?(_0x3bdd36['add'](_0x2187b8['head']),_0x275319['add'](_0x2187b8)):this['_removeSuggestion'](_0x2187b8);}}_0x275319['size']>0x0&&this['_refreshSuggestionsChain'](_0x275319);for(const _0x4bbf1b of _0x3bdd36)this['fire']('suggestionChanged',_0x4bbf1b);}),_0x522eb2['model']['on']('applyOperation',(_0x47af17,_0x2cb08a)=>{const _0x2c0e1a=_0x2cb08a[0x0];if(!this['_suggestions']['size'])return;if(!_0x2c0e1a['isDocumentOperation'])return;if(_0x2c0e1a['batch']['isUndo']||!_0x2c0e1a['batch']['isLocal'])return;let _0x14d561,_0x300070;switch(_0x2c0e1a['type']){case'insert':_0x14d561=_0x522eb2['model']['createPositionAt'](_0x2c0e1a['position']),_0x300070=_0x14d561['getShiftedBy'](_0x2c0e1a['howMany']);break;case'split':_0x14d561=_0x522eb2['model']['createPositionAt'](_0x2c0e1a['splitPosition']),_0x300070=_0x522eb2['model']['createPositionAt'](_0x2c0e1a['moveTargetPosition']);break;case'move':_0x14d561=_0x522eb2['model']['createPositionAt'](_0x2c0e1a['targetPosition']),_0x300070=_0x14d561['getShiftedBy'](_0x2c0e1a['howMany']);break;default:return;}const _0x52feb5=_0x522eb2['model']['createRange'](_0x14d561,_0x300070);_0x522eb2['model']['change'](()=>{for(const {suggestion:_0x1f617c,meta:_0x1279c4}of this['_findSuggestions'](_0x52feb5)){if(_0x1f617c['isMultiRange'])continue;if('formatInline'==_0x1f617c['type'])continue;const _0x3ada99=this['_getAttributeKey'](_0x1f617c);if(_0x3ada99&&this['_isBlockAttribute'](_0x3ada99)&&'split'!=_0x2c0e1a['type'])continue;const _0x17a0b0=_0x1f617c['data']&&_0x1f617c['data']['multipleBlocks'];('formatBlock'!=_0x1f617c['type']||'split'==_0x2c0e1a['type']&&!_0x17a0b0)&&(_0x1279c4['containsRangeInObject']||'insertion'==_0x1f617c['type']&&_0x1279c4['isOwn']||_0x1f617c['getFirstRange']()['containsRange'](_0x52feb5)&&this['_breakSuggestionMarker'](_0x1f617c,_0x14d561,_0x300070));}});},{'priority':'lowest'}),_0x522eb2['model']['on']('deleteContent',(_0x20dc38,_0x1b42bd)=>{const _0x1b80c7=_0x1b42bd[0x0],_0x258cf0=_0x1b42bd[0x1];if(_0x258cf0&&_0x258cf0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1b80c7['isCollapsed'])return;const _0x568f81=_0x522eb2['model']['schema'],{start:_0x4ec51c,end:_0xe7ec0b}=_0x1b80c7['getFirstRange'](),_0x386107=_0x4ec51c['nodeAfter']&&_0x568f81['isLimit'](_0x4ec51c['nodeAfter'])?null:_0x568f81['getNearestSelectionRange'](_0x4ec51c,'forward'),_0x199309=_0xe7ec0b['nodeBefore']&&_0x568f81['isLimit'](_0xe7ec0b['nodeBefore'])?null:_0x568f81['getNearestSelectionRange'](_0xe7ec0b,'backward'),_0x21ef3b=_0x522eb2['model']['createRange'](_0x386107?_0x386107['start']:_0x4ec51c,_0x199309?_0x199309['end']:_0xe7ec0b);_0x522eb2['model']['change'](_0x22f459=>{this['markDeletion'](_0x21ef3b);const _0xa8f0aa=_0x522eb2['model']['schema']['getNearestSelectionRange'](_0x21ef3b['start']);_0x1b80c7['is']('documentSelection')?_0x22f459['setSelection'](_0xa8f0aa):_0x1b80c7['setTo'](_0xa8f0aa);}),_0x20dc38['stop']();},{'priority':_0x11b5a6['normal']+0xa}),_0x522eb2['model']['on']('insertContent',(_0x77fee9,_0x5caca4)=>{const _0xb910fe=_0x5caca4[_0x5caca4['length']-0x1];_0xb910fe&&_0xb910fe['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x522eb2['model']['change'](()=>{let _0x1fe0de=_0x522eb2['model']['insertContent'](_0x5caca4[0x0],_0x5caca4[0x1],_0x5caca4[0x2],{'forceDefaultExecution':!0x0});if(!_0x1fe0de)return;_0x77fee9['return']=_0x1fe0de['clone']();const _0xcc4414=_0x1fe0de['end']['nodeBefore'],_0x3ab257=_0x522eb2['model']['schema'];_0xcc4414&&_0x3ab257['isBlock'](_0xcc4414)&&!_0x3ab257['isObject'](_0xcc4414)&&(_0x1fe0de=_0x522eb2['model']['createRange'](_0x1fe0de['start'],_0x522eb2['model']['createPositionAt'](_0xcc4414,'end'))),this['markInsertion'](_0x1fe0de);}),_0x77fee9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2b9ffe=new O(_0x522eb2,this['_suggestions']);_0x522eb2['commands']['add']('acceptSuggestion',_0x2b9ffe),this['enableCommand']('acceptSuggestion');const _0xb11dcf=new R(_0x522eb2,this['_suggestions']);_0x522eb2['commands']['add']('discardSuggestion',_0xb11dcf),this['enableCommand']('discardSuggestion'),_0x522eb2['commands']['add']('acceptAllSuggestions',new x(_0x522eb2,_0x2b9ffe,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x522eb2['commands']['add']('discardAllSuggestions',new x(_0x522eb2,_0xb11dcf,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x522eb2['commands']['add']('acceptSelectedSuggestions',new E(_0x522eb2,_0x2b9ffe,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x522eb2['commands']['add']('discardSelectedSuggestions',new E(_0x522eb2,_0xb11dcf,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x213d09=_0x522eb2['plugins']['get']('CommentsRepository');this['listenTo'](_0x213d09,'addComment',(_0x37197e,{threadId:_0x24f532})=>{const _0x396dab=this['_suggestions']['get'](_0x24f532);_0x396dab&&_0x396dab['commentThread']&&0x1===_0x396dab['commentThread']['length']&&this['_updateSuggestionData'](_0x24f532,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x213d09,'removeComment',(_0x1d17c4,{threadId:_0x4cc5de})=>{const _0x4f72fb=this['_suggestions']['get'](_0x4cc5de);_0x4f72fb&&_0x4f72fb['commentThread']&&!_0x4f72fb['commentThread']['length']&&this['_updateSuggestionData'](_0x4cc5de,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x363d1f){const _0x586b13=_0x13f80e([0x70,0x44,0x69,0x72,0x71,0x6a,0x41,0x76,0x47,0x43,0x73,0x38,0x45,0x50,0x39,0x53,0x57,0x52,0x51,0x7a,0x35,0x49,0x66,0x56,0x62,0x6d,0x4d,0x61,0x4e,0x48,0x6b,0x78,0x42,0x79,0x6e,0x4a,0x4f,0x31,0x65,0x58,0x6c,0x5a,0x36,0x30,0x63,0x34,0x4c,0x55,0x37,0x75,0x77,0x46,0x67,0x4b,0x32,0x64,0x6f,0x54,0x33,0x68,0x59,0x74]),_0x44cea3=0x27a857e7,_0x3ad201=0x27af09bf^_0x44cea3,_0xf58298=window[_0x13f80e([0x44,0x61,0x74,0x65])][_0x13f80e([0x6e,0x6f,0x77])](),_0x433eae=_0x363d1f[_0x13f80e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x133c00=new window[(_0x13f80e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14a013=>{_0x433eae[_0x13f80e([0x6f,0x6e,0x63,0x65])](_0x13f80e([0x72,0x65,0x61,0x64,0x79]),_0x14a013);}),_0x15d848={[_0x13f80e([0x6b,0x74,0x79])]:_0x13f80e([0x45,0x43]),[_0x13f80e([0x75,0x73,0x65])]:_0x13f80e([0x73,0x69,0x67]),[_0x13f80e([0x63,0x72,0x76])]:_0x13f80e([0x50,0x2d,0x32,0x35,0x36]),[_0x13f80e([0x78])]:_0x13f80e([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]),[_0x13f80e([0x79])]:_0x13f80e([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]),[_0x13f80e([0x61,0x6c,0x67])]:_0x13f80e([0x45,0x53,0x32,0x35,0x36])},_0x57e160=_0x433eae[_0x13f80e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13f80e([0x67,0x65,0x74])](_0x13f80e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x524086(){let _0x16dfc3,_0x4c60e4=null,_0x4ae540=null;try{if(_0x57e160==_0x13f80e([0x47,0x50,0x4c]))return _0x13f80e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16dfc3=_0x1bc8e3(),!_0x16dfc3)return _0x13f80e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16dfc3[_0x13f80e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ae540=_0x3b7a10(_0x16dfc3[_0x13f80e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16dfc3[_0x13f80e([0x6a,0x74,0x69])])),await _0x5e645e()?_0x28449a()?_0x3c6de7()?_0x13f80e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x46bbcf()?(_0x16dfc3[_0x13f80e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13f80e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4c60e4=_0xaac2e1(_0x13f80e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16dfc3[_0x13f80e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13f80e([0x74,0x72,0x69,0x61,0x6c])&&(_0x4c60e4=_0xaac2e1(_0x13f80e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a18c2()):_0x13f80e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13f80e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13f80e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4b77e2){return _0x13f80e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c6de7(){const _0x530fca=[_0x13f80e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13f80e([0x74,0x72,0x69,0x61,0x6c])][_0x13f80e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16dfc3[_0x13f80e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf58298/0x3e8:0xe10*_0x3ad201;return _0x16dfc3[_0x13f80e([0x65,0x78,0x70])]<_0x530fca;}function _0x28449a(){const _0x37c654=_0x16dfc3[_0x13f80e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x37c654)return!0x1;if(_0x37c654[_0x13f80e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13f80e([0x2a])))return!0x0;if(_0x37c654[_0x13f80e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13f80e([0x54,0x43])))return!0x0;if(_0x37c654[_0x13f80e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13f80e([0x52,0x54,0x43]))){if(_0x21ca5c())return!0x0;if(_0x134490()||_0x7fd1bb())return!0x0;}return!0x1;}function _0x46bbcf(){const _0x3997d4=_0x16dfc3[_0x13f80e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3997d4||0x0==_0x3997d4[_0x13f80e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2634a0}=new URL(window[_0x13f80e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3997d4[_0x13f80e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2634a0))return!0x0;const _0x310dd2=_0x2634a0[_0x13f80e([0x73,0x70,0x6c,0x69,0x74])](_0x13f80e([0x2e]));return _0x3997d4[_0x13f80e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x141a2d=>_0x141a2d[_0x13f80e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13f80e([0x2a])))[_0x13f80e([0x6d,0x61,0x70])](_0x426c68=>_0x426c68[_0x13f80e([0x73,0x70,0x6c,0x69,0x74])](_0x13f80e([0x2e])))[_0x13f80e([0x73,0x6f,0x6d,0x65])](_0x3b0480=>_0x310dd2[_0x13f80e([0x65,0x76,0x65,0x72,0x79])]((_0x5ad9bf,_0x58aba8)=>_0x3b0480[_0x58aba8]===_0x5ad9bf||_0x3b0480[_0x58aba8]===_0x13f80e([0x2a])));}function _0x2a18c2(){return _0x4c60e4&&_0x4ae540?new window[(_0x13f80e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2abf8f,_0x41bf27)=>{_0x4c60e4[_0x13f80e([0x74,0x68,0x65,0x6e])](_0x2abf8f,_0x41bf27),_0x4ae540[_0x13f80e([0x74,0x68,0x65,0x6e])](_0x44515a=>{_0x44515a!=_0x13f80e([0x56,0x61,0x6c,0x69,0x64])&&_0x2abf8f(_0x44515a);},_0x41bf27);}):_0x4c60e4||_0x4ae540||_0x13f80e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b7a10(_0x173ab6,_0x37405a){return new window[(_0x13f80e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1eb098=>{if(_0x3b552d())return _0x1eb098(_0x13f80e([0x56,0x61,0x6c,0x69,0x64]));_0x5d0f34(),_0x433eae[_0x13f80e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13f80e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e65cd=!0x1;const _0x1931d=_0x3330a4();function _0x13d4f6(_0x5a9907){return!!_0x5a9907&&(typeof _0x5a9907===_0x13f80e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a9907===_0x13f80e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a9907[_0x13f80e([0x74,0x68,0x65,0x6e])]===_0x13f80e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a9907[_0x13f80e([0x63,0x61,0x74,0x63,0x68])]===_0x13f80e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf65668(_0x54a7b9){_0x2adab8(_0x54a7b9)[_0x13f80e([0x74,0x68,0x65,0x6e])](_0x20a83a=>{if(!_0x20a83a||_0x20a83a[_0x13f80e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13f80e([0x6f,0x6b]))return _0x13f80e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3b61b9(_0x2b0bf4(_0x1931d+_0x37405a))!=_0x20a83a[_0x13f80e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13f80e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13f80e([0x56,0x61,0x6c,0x69,0x64]);})[_0x13f80e([0x74,0x68,0x65,0x6e])](_0x424cb5=>(_0x2b4a45(),_0x424cb5),()=>{const _0x2bb8a4=_0x2e2a11();return null==_0x2bb8a4?(_0x2b4a45(),_0x13f80e([0x56,0x61,0x6c,0x69,0x64])):_0x13f80e(_0xf58298-_0x2bb8a4>(0x3a4d3e7^_0x44cea3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13f80e([0x74,0x68,0x65,0x6e])](_0x1eb098)[_0x13f80e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1eb098(_0x13f80e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27c5a4=0x279eb967^_0x44cea3;function _0x2b4a45(){const _0x428826=_0x13f80e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b61b9(_0x2b0bf4(_0x173ab6)),_0x39533d=_0x1b1da1(_0x3b61b9(window[_0x13f80e([0x4d,0x61,0x74,0x68])][_0x13f80e([0x63,0x65,0x69,0x6c])](_0xf58298/_0x27c5a4)));window[_0x13f80e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13f80e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x428826,_0x39533d);}function _0x2e2a11(){const _0x3d6dd4=_0x13f80e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b61b9(_0x2b0bf4(_0x173ab6)),_0x5e41fa=window[_0x13f80e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13f80e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d6dd4);return _0x5e41fa?window[_0x13f80e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b1da1(_0x5e41fa),0x10)*_0x27c5a4:null;}function _0x2adab8(_0x551778){return new window[(_0x13f80e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c7c29,_0x3a0471)=>{_0x551778[_0x13f80e([0x74,0x68,0x65,0x6e])](_0x1c7c29,_0x3a0471),window[_0x13f80e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a0471,0x27a98327^_0x44cea3);});}}_0x433eae[_0x13f80e([0x6f,0x6e])](_0x13f80e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc90522,_0x4dd8ed)=>{if(_0x4dd8ed[0x0]!=_0x173ab6)return _0x1eb098(_0x13f80e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4dd8ed[0x1]={..._0x4dd8ed[0x1],[_0x13f80e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1931d};},{[_0x13f80e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13f80e([0x68,0x69,0x67,0x68])}),_0x433eae[_0x13f80e([0x6f,0x6e])](_0x13f80e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5bde39=>{_0x13d4f6(_0x5bde39[_0x13f80e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e65cd=!0x0,_0xf65668(_0x5bde39[_0x13f80e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13f80e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13f80e([0x6c,0x6f,0x77])}),_0x133c00[_0x13f80e([0x74,0x68,0x65,0x6e])](()=>{_0x1e65cd||_0x1eb098(_0x13f80e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b552d(){return _0x433eae[_0x13f80e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13f80e([0x76,0x69,0x65,0x77])][_0x13f80e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13f80e([0x61,0x75,0x74,0x6f]);}function _0x5d0f34(){_0x433eae[_0x13f80e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13f80e([0x76,0x69,0x65,0x77])][_0x13f80e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13f80e([0x61,0x75,0x74,0x6f]);}}function _0xaac2e1(_0x3ef77a){const _0x374138=[new window[(_0x13f80e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56b3cc=>setTimeout(_0x56b3cc,0x27a1692b^_0x44cea3)),_0x133c00[_0x13f80e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13f80e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5983ce=>{let _0x52c88c=0x0;_0x433eae[_0x13f80e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13f80e([0x6f,0x6e])](_0x13f80e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf8cc45,_0x5df847)=>{_0x5df847[0x0][_0x13f80e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x52c88c++,_0x52c88c==(0x27a8561f^_0x44cea3)&&(_0x5983ce(),_0xf8cc45[_0x13f80e([0x6f,0x66,0x66])]());});}))];return window[_0x13f80e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13f80e([0x72,0x61,0x63,0x65])](_0x374138)[_0x13f80e([0x74,0x68,0x65,0x6e])](()=>_0x3ef77a);}async function _0x3fbaae(){await _0x133c00,_0x433eae[_0x13f80e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13f80e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c019b,_0x433eae[_0x13f80e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13f80e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c019b,_0x433eae[_0x13f80e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13f80e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21ca5c(){return _0x576e48(_0x13f80e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4811ca(_0x13f80e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x13f80e([0x73,0x74,0x61,0x74,0x65])]==_0x13f80e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x134490(){return _0x576e48(_0x13f80e([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 _0x7fd1bb(){return _0x576e48(_0x13f80e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x357195(_0x487f93){const _0x42638f=_0xe7a62b();_0x433eae[_0x42638f]=_0x13f80e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x487f93,_0x487f93!=_0x13f80e([0x56,0x61,0x6c,0x69,0x64])&&_0x3fbaae();}function _0xe7a62b(){const _0x43fce9=window[_0x13f80e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13f80e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13f80e([0x6e,0x6f,0x77])]())[_0x13f80e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13f80e([0x2e]),'');let _0x9bf50d=_0x13f80e([0x70]);for(let _0x12e91d=0x0;_0x12e91d<_0x43fce9[_0x13f80e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12e91d+=0x2){let _0x275410=window[_0x13f80e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43fce9[_0x13f80e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12e91d,_0x12e91d+0x2));_0x275410>=_0x586b13[_0x13f80e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x275410-=_0x586b13[_0x13f80e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x9bf50d+=_0x586b13[_0x275410];}return _0x9bf50d;}function _0x1bc8e3(){const _0xae8ca1=_0x57e160[_0x13f80e([0x73,0x70,0x6c,0x69,0x74])](_0x13f80e([0x2e]));if(0x3!=_0xae8ca1[_0x13f80e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xaf6e9e(_0xae8ca1[0x1]);function _0xaf6e9e(_0x3cd9f6){const _0x1f5167=_0x54406d(_0x3cd9f6);return _0x1f5167&&_0xd77769()?_0x1f5167:null;function _0xd77769(){const _0x459fa4=_0x1f5167[_0x13f80e([0x6a,0x74,0x69])],_0x4026b4=window[_0x13f80e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x459fa4[_0x13f80e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x459fa4[_0x13f80e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b896b={..._0x1f5167,[_0x13f80e([0x6a,0x74,0x69])]:_0x459fa4[_0x13f80e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x459fa4[_0x13f80e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b896b[_0x13f80e([0x76,0x63])],_0x2b0bf4(_0x2b896b)==_0x4026b4;}}}async function _0x5e645e(){let _0x2f8b24=!0x0;try{const _0x3f307a=_0x57e160[_0x13f80e([0x73,0x70,0x6c,0x69,0x74])](_0x13f80e([0x2e])),[_0x1f660a,_0x538e92,_0x5951cb]=_0x3f307a;return _0x241579(_0x1f660a),await _0x297614(_0x1f660a,_0x538e92,_0x5951cb),_0x2f8b24;}catch(_0x23d3de){return!0x1;}function _0x241579(_0x1e6989){const _0x1b472d=_0x54406d(_0x1e6989);_0x1b472d&&_0x1b472d[_0x13f80e([0x61,0x6c,0x67])]==_0x13f80e([0x45,0x53,0x32,0x35,0x36])||(_0x2f8b24=!0x1);}async function _0x297614(_0xcb42a,_0x3c39f7,_0x123f9a){const _0x996e44=window[_0x13f80e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13f80e([0x66,0x72,0x6f,0x6d])](_0x508824(_0x123f9a),_0x18f157=>_0x18f157[_0x13f80e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b133a=new window[(_0x13f80e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13f80e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xcb42a+_0x13f80e([0x2e])+_0x3c39f7),_0xca7ed0=window[_0x13f80e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13f80e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xca7ed0)return;const _0x32cdd6=await _0xca7ed0[_0x13f80e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13f80e([0x6a,0x77,0x6b]),_0x15d848,{[_0x13f80e([0x6e,0x61,0x6d,0x65])]:_0x13f80e([0x45,0x43,0x44,0x53,0x41]),[_0x13f80e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13f80e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13f80e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xca7ed0[_0x13f80e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13f80e([0x6e,0x61,0x6d,0x65])]:_0x13f80e([0x45,0x43,0x44,0x53,0x41]),[_0x13f80e([0x68,0x61,0x73,0x68])]:{[_0x13f80e([0x6e,0x61,0x6d,0x65])]:_0x13f80e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32cdd6,_0x996e44,_0x3b133a)||(_0x2f8b24=!0x1);}}function _0x54406d(_0x1c8256){return _0x1c8256[_0x13f80e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13f80e([0x65,0x79]))?JSON[_0x13f80e([0x70,0x61,0x72,0x73,0x65])](_0x508824(_0x1c8256)):null;}function _0x508824(_0x49cfc1){return window[_0x13f80e([0x61,0x74,0x6f,0x62])](_0x49cfc1[_0x13f80e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13f80e([0x2b]))[_0x13f80e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13f80e([0x2f])));}function _0x2b0bf4(_0x144e45){let _0x1b3a55=0x1505;function _0x1194c1(_0x5bffc9){for(let _0x4495d8=0x0;_0x4495d8<_0x5bffc9[_0x13f80e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4495d8++){const _0x4b5ea2=_0x5bffc9[_0x13f80e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4495d8);_0x1b3a55=(_0x1b3a55<<0x5)+_0x1b3a55+_0x4b5ea2,_0x1b3a55&=_0x1b3a55;}}function _0x33602d(_0x37bd26){Array[_0x13f80e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37bd26)?_0x37bd26[_0x13f80e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33602d):_0x37bd26&&typeof _0x37bd26==_0x13f80e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13f80e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37bd26)[_0x13f80e([0x73,0x6f,0x72,0x74])]()[_0x13f80e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b7764,_0x288a5c])=>{_0x1194c1(_0x2b7764),_0x33602d(_0x288a5c);}):_0x1194c1(window[_0x13f80e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37bd26));}return _0x33602d(_0x144e45),_0x1b3a55>>>0x0;}function _0x3b61b9(_0x282420){return _0x282420[_0x13f80e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13f80e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13f80e([0x30]));}function _0x1b1da1(_0x5c51eb){return _0x5c51eb[_0x13f80e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13f80e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13f80e([0x6a,0x6f,0x69,0x6e])]('');}function _0x576e48(_0x14f8ad){return _0x433eae[_0x13f80e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x13f80e([0x68,0x61,0x73])](_0x14f8ad);}function _0x4811ca(_0x27d502){return _0x433eae[_0x13f80e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x13f80e([0x67,0x65,0x74])](_0x27d502);}function _0x4c019b(){}function _0x13f80e(_0x53263c){return _0x53263c['map'](_0x4d0582=>String['fromCharCode'](_0x4d0582))['join']('');}_0x357195(await _0x524086());}(this);}set['adapter'](_0x5f1efd){if(this['_adapter'])throw new _0x59c745('track-changes-adapter-already-set',this);this['_adapter']=_0x5f1efd;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x557c62=!0x1,toJSON:_0x37089f=!0x1}={}){const _0x1788a6=[];for(const _0x1b8edf of this['_suggestions']['values']())_0x557c62&&!_0x1b8edf['isInContent']||_0x1788a6['push'](_0x1b8edf);return _0x37089f?_0x1788a6['map'](_0x4eac14=>_0x4eac14['toJSON']()):_0x1788a6;}['getSuggestion'](_0x2b13ab){const _0x46b92b=this['_suggestions']['get'](_0x2b13ab);if(!_0x46b92b)throw new _0x59c745('track-changes-suggestion-not-found',this);return _0x46b92b;}['hasSuggestion'](_0x17b2f7){return this['_suggestions']['has'](_0x17b2f7);}['addSuggestionData'](_0x2441fa){const {authorId:_0x2f17d5,id:_0x5d73d8,attributes:_0x51bd0d}=_0x2441fa,[_0x51c940,_0x4c4313]=_0x2441fa['type']['split'](':'),_0x5de3ee=this['_suggestions']['get'](_0x5d73d8)||this['_createSuggestion'](_0x51c940,_0x4c4313,_0x5d73d8,_0x2f17d5,_0x51bd0d);if(this['_addThreadToSuggestion'](_0x5de3ee),this['_checkSuggestionCorrectness'](_0x5de3ee,_0x51c940,_0x4c4313||null,_0x2f17d5),_0x5de3ee['createdAt']=_0x2441fa['createdAt'],_0x5de3ee['_isDataLoaded']=!0x0,_0x51bd0d&&_0x51bd0d['@external']){const _0x1f4b95=_0x51bd0d['@external'],_0x331e55=this['_getExternalAuthor'](_0x1f4b95['authorName']);_0x5de3ee['authoredAt']=_0x1f4b95['createdAt'],_0x5de3ee['author']=_0x331e55,_0x5de3ee['isExternal']=!0x0;}else _0x5de3ee['authoredAt']=_0x2441fa['createdAt'];switch(_0x2441fa['data']&&(_0x5de3ee['data']=_0x2441fa['data']),_0x2441fa['attributes']&&(_0x5de3ee['attributes']=_0x2441fa['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5de3ee['_saved']=!0x0),this['_suggestionState']['get'](_0x5de3ee)){case'notReady':this['_suggestionState']['set'](_0x5de3ee,'dataReady');break;case'markerReady':_0x5de3ee['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5de3ee])),this['_refreshSuggestionsChain'](new Set([_0x5de3ee])),this['_suggestionState']['set'](_0x5de3ee,'ready'),this['fire']('suggestionLoaded',_0x5de3ee)):this['_suggestionState']['set'](_0x5de3ee,'removed');}return _0x5de3ee;}['acceptSuggestion'](_0xfc7f32){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x23ab87 of _0xfc7f32['getAllAdjacentSuggestions']())_0x23ab87['accept']();});});}['discardSuggestion'](_0x196094){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x53e241 of _0x196094['getAllAdjacentSuggestions']())_0x53e241['discard']();});});}['enableCommand'](_0x3ae5cb,_0x2dbf50){const _0x52e6f5=this['editor']['commands']['get'](_0x3ae5cb);if(!_0x52e6f5)throw new _0x59c745('track-changes-command-not-found',this,{'commandName':_0x3ae5cb});if(this['_enabledCommands']['has'](_0x52e6f5))throw new _0x59c745('track-changes-enable-command-twice',this,{'commandName':_0x3ae5cb});this['_enabledCommands']['add'](_0x52e6f5),_0x2dbf50&&_0x52e6f5['on']('execute',(_0x251603,_0x38b140)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x38b140['length']>0x0&&_0x38b140[_0x38b140['length']-0x1]&&_0x38b140[_0x38b140['length']-0x1]['forceDefaultExecution']?_0x38b140['pop']():(_0x251603['return']=_0x2dbf50((..._0x3f9492)=>_0x52e6f5['execute'](..._0x3f9492,{'forceDefaultExecution':!0x0}),..._0x38b140),_0x251603['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1d226d){let _0x20c36e,_0x3c746b;const _0x22b277=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x20c36e=_0x1d226d();}catch(_0x57ef97){_0x3c746b=_0x57ef97;}return _0x22b277||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3c746b&&_0x59c745['rethrowUnexpectedError'](_0x3c746b,this),_0x20c36e;}['markInsertion'](_0x21ec53,_0x5416f6=null,_0x1ff084={}){if(_0x21ec53['isCollapsed'])return null;const _0x6c4eff=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x23e6f2,meta:_0x366f7e}of this['_findSuggestions'](_0x21ec53,'insertion'))if(_0x366f7e['isOwn']){if(!_0x366f7e['isNextTo']){if(_0x366f7e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x23e6f2,_0x1ff084))continue;return _0x23e6f2;}if(Kt(_0x23e6f2,_0x1ff084))return _0x23e6f2;this['_breakSuggestionMarker'](_0x23e6f2,_0x21ec53['start'],_0x21ec53['end']);break;}if(_0x5416f6==_0x23e6f2['subType']&&Kt(_0x23e6f2,_0x1ff084)){const _0x361b2b=_0x23e6f2['getFirstRange']();return _0x361b2b['start']['isEqual'](_0x21ec53['end'])?this['_setSuggestionRange'](_0x23e6f2,this['_model']['createRange'](_0x21ec53['start'],_0x361b2b['end'])):this['_setSuggestionRange'](_0x23e6f2,this['_model']['createRange'](_0x361b2b['start'],_0x21ec53['end'])),_0x23e6f2;}}const _0x33ee04=_0x3330a4(),_0x22474d=_0x6c4eff['id'],_0x45dbb0=_0x5416f6?'insertion:'+_0x5416f6:'insertion',_0x1f74d6=this['_setSuggestionData']({'id':_0x33ee04,'type':_0x45dbb0,'createdAt':new Date(),'authorId':_0x22474d,'attributes':_0x1ff084});return this['_addSuggestionMarker'](_0x45dbb0,_0x33ee04,_0x22474d,_0x21ec53),_0x1f74d6;}['markMultiRangeInsertion'](_0x17d5c0,_0x31c7a7='multi',_0x46c2d9={}){const _0x3f82dd=this['editor']['plugins']['get']('Users')['me'],_0x3bd352=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x31c7a7,'join');for(const _0x4da853 of this['getSuggestions']())if(_0x4da853['author']['id']==_0x3f82dd['id']&&'insertion'==_0x4da853['type']&&_0x4da853['subType']==_0x31c7a7&&Kt(_0x4da853,_0x46c2d9)&&(_0x3bd352(_0x4da853['getRanges'](),_0x17d5c0)||_0x3bd352(_0x17d5c0,_0x4da853['getRanges']()))){for(const _0x3d1988 of _0x17d5c0)_0x4da853['addRange'](_0x3d1988);return _0x4da853;}for(const {suggestion:_0x208d96,meta:_0x433cfb}of this['_findSuggestions'](_0x17d5c0,'insertion')){if(!_0x433cfb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x433cfb['containsRangeInObject'])continue;if(!Kt(_0x208d96,_0x46c2d9))continue;let _0x23d3be=!0x0;for(const _0x4a9c0e of _0x208d96['getRanges']())for(const _0x340cc0 of _0x17d5c0)if(!_0x4a9c0e['containsRange'](_0x340cc0)){_0x23d3be=!0x1;break;}if(_0x23d3be)return _0x208d96;}const _0x3ed87a=_0x3330a4(),_0x38da47=_0x3f82dd['id'],_0x13a595='insertion:'+_0x31c7a7,_0x792222=this['_setSuggestionData']({'id':_0x3ed87a,'type':_0x13a595,'createdAt':new Date(),'authorId':_0x38da47,'attributes':_0x46c2d9});for(const _0x3ba996 of _0x17d5c0)this['_addSuggestionMarker'](_0x13a595,_0x3ed87a,_0x38da47,_0x3ba996,u['getMultiRangeId']());return _0x792222;}['markInlineFormat'](_0x263742,_0x4bed75,_0x5a84c2=null,_0x3fb893={}){if(_0x5a84c2=_0x5a84c2||Ft(_0x4bed75),_0x263742['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xea7da4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5a84c2,'accept');return this['forceDefaultExecution'](()=>_0xea7da4([_0x263742],_0x4bed75,_0x3fb893)),null;}const _0x2b36a6=this['editor']['plugins']['get']('Users')['me'],_0x54b3d7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2a12e4,meta:_0x2d0c00}of this['_findSuggestions'](_0x263742,'insertion'))_0x2d0c00['isOwn']&&!_0x2d0c00['isInsideObject']&&_0x54b3d7['push'](..._0x2a12e4['getRanges']());}const _0x44e630=function(_0x567015,_0x108ce5){const _0x4ffd80=[];for(const _0x3d8c2f of _0x108ce5){const _0x2b8c9a=_0x567015['getIntersection'](_0x3d8c2f);_0x2b8c9a&&_0x4ffd80['push'](_0x2b8c9a);}return _0x4ffd80;}(_0x263742,_0x54b3d7),_0x2e85fb=function(_0x523984,_0x195626){const _0x352ec8=[_0x523984];for(const _0x3291dd of _0x195626){let _0x1a7283=0x0;for(;_0x1a7283<_0x352ec8['length'];){const _0x181d43=_0x352ec8[_0x1a7283]['getDifference'](_0x3291dd);_0x352ec8['splice'](_0x1a7283,0x1,..._0x181d43),_0x1a7283+=_0x181d43['length'];}}return _0x352ec8;}(_0x263742,_0x54b3d7);_0x44e630['length']&&this['_model']['change'](()=>{for(const _0x323f99 of _0x44e630){const _0x3ac73a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5a84c2,'accept');this['forceDefaultExecution'](()=>_0x3ac73a([_0x323f99],_0x4bed75,_0x3fb893));}});for(const _0x559b3a of _0x2e85fb){let _0x2e7af9=null,_0x233a2f=_0x559b3a['start'],_0x1ad1db=_0x559b3a['end'];for(const {suggestion:_0x6c9cb7,meta:_0x415541}of this['_findSuggestions'](_0x559b3a,'formatInline')){if(!_0x415541['isOwn'])continue;if(_0x6c9cb7['subType']!=_0x5a84c2)continue;if(!Kt(_0x6c9cb7,_0x3fb893))continue;const _0x1fe865=_0x6c9cb7['getFirstRange']();if(_0x1fe865['containsRange'](_0x559b3a,!0x0))return null;_0x233a2f=_0x233a2f['isBefore'](_0x1fe865['start'])?_0x233a2f:_0x1fe865['start'],_0x1ad1db=_0x1ad1db['isAfter'](_0x1fe865['end'])?_0x1ad1db:_0x1fe865['end'],_0x2e7af9?_0x1fe865['start']['isBefore'](_0x2e7af9['getFirstRange']()['start'])?(_0x2e7af9['removeMarkers'](),_0x2e7af9=_0x6c9cb7):_0x6c9cb7['removeMarkers']():_0x2e7af9=_0x6c9cb7;}const _0x4e2998=this['_model']['createRange'](_0x233a2f,_0x1ad1db);if(_0x2e7af9)this['_setSuggestionRange'](_0x2e7af9,_0x4e2998);else{const _0xb59166=_0x3330a4(),_0x296e78=_0x2b36a6['id'];this['_setSuggestionData']({'id':_0xb59166,'type':'formatInline:'+_0x5a84c2,'data':_0x4bed75,'createdAt':new Date(),'authorId':_0x296e78,'attributes':_0x3fb893}),this['_addSuggestionMarker']('formatInline:'+_0x5a84c2,_0xb59166,_0x296e78,_0x4e2998);}}return null;}['markBlockFormat'](_0xbf7c10,_0x3f3430,_0x479a39=[],_0x49f5e1=null,_0x1514ed={}){_0x3f3430['formatGroupId']||(_0x3f3430['formatGroupId']=_0x3f3430['commandName']),_0x3f3430['multipleBlocks']=_0xbf7c10['is']('range'),_0x49f5e1=_0x49f5e1||Ft(_0x3f3430);const _0x397a0d=_0x479a39['map'](_0x5a5075=>Ht(_0x5a5075,this['_model'])),_0x4870ab=_0xbf7c10['is']('range')?_0xbf7c10:Ht(_0xbf7c10,this['_model']);if('never'===this['_trackFormatChanges']){const _0x24d9a1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49f5e1,'accept');return this['forceDefaultExecution'](()=>_0x24d9a1([_0x4870ab],_0x3f3430,_0x1514ed)),null;}_0x397a0d['push'](_0x4870ab);let _0x12659b=!0x0;for(const _0x40e60f of _0x397a0d)if(!this['_rangeIsInLocalUserInsertion'](_0x40e60f)){_0x12659b=!0x1;break;}if(_0x12659b&&'always'!==this['_trackFormatChanges']){const _0xf9998b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49f5e1,'accept');return this['forceDefaultExecution'](()=>_0xf9998b([_0x4870ab],_0x3f3430,_0x1514ed)),null;}let _0x5a3a33=null,_0x48d1a1=_0x4870ab['start'],_0x48f58f=_0x4870ab['end'];for(const {suggestion:_0x5d5a3b,meta:_0x51fdd2}of this['_findSuggestions'](_0x4870ab,'formatBlock')){if(!_0x51fdd2['isOwn'])continue;if(_0x51fdd2['isNextTo']||_0x51fdd2['containsRangeInObject']||_0x51fdd2['isInsideObject'])continue;if(_0x5d5a3b['data']['formatGroupId']!=_0x3f3430['formatGroupId'])continue;if(!Kt(_0x5d5a3b,_0x1514ed))continue;const _0x54a038=_0x5d5a3b['getFirstRange']();if(_0x5d5a3b['subType']==_0x49f5e1){if(_0x54a038['containsRange'](_0x4870ab,!0x0))return null;_0x48d1a1=_0x48d1a1['isBefore'](_0x54a038['start'])?_0x48d1a1:_0x54a038['start'],_0x48f58f=_0x48f58f['isAfter'](_0x54a038['end'])?_0x48f58f:_0x54a038['end'],_0x5a3a33?_0x54a038['start']['isBefore'](_0x5a3a33['getFirstRange']()['start'])?(_0x5a3a33['removeMarkers'](),_0x5a3a33=_0x5d5a3b):_0x5d5a3b['removeMarkers']():_0x5a3a33=_0x5d5a3b;}else{const _0x3f0acd=_0x4870ab['getIntersection'](_0x54a038);this['_cutOutSuggestionMarker'](_0x5d5a3b,_0x3f0acd);}}const _0x151578=this['editor']['plugins']['get']('Users')['me'],_0x537a64=_0x3330a4(),_0x1f95f5=_0x151578['id'];if(_0x5a3a33)return this['_setSuggestionRange'](_0x5a3a33,this['_model']['createRange'](_0x48d1a1,_0x48f58f)),_0x5a3a33;{const _0x5ce1bb=this['_setSuggestionData']({'id':_0x537a64,'type':'formatBlock:'+_0x49f5e1,'data':_0x3f3430,'createdAt':new Date(),'authorId':_0x1f95f5,'attributes':_0x1514ed});return this['_addSuggestionMarker']('formatBlock:'+_0x49f5e1,_0x537a64,_0x1f95f5,this['_model']['createRange'](_0x48d1a1,_0x48f58f)),_0x5ce1bb;}}['markMultiRangeBlockFormat'](_0x4d60b3,_0x211d89,_0x1f9ae9=[],_0x524f3b=null,_0x223a03={}){_0x211d89['formatGroupId']||(_0x211d89['formatGroupId']=_0x211d89['commandName']);const _0x2782db=_0x4d60b3[0x0];_0x211d89['multipleBlocks']=_0x2782db['is']('range'),_0x524f3b=_0x524f3b||Ft(_0x211d89);const _0xbf1031=_0x1f9ae9['map'](_0x2e8e1b=>Ht(_0x2e8e1b,this['_model'])),_0x5ea97d=_0x2782db['is']('range')?_0x4d60b3:_0x4d60b3['map'](_0x2ce3dd=>Ht(_0x2ce3dd,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2e32eb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x524f3b,'accept');return this['forceDefaultExecution'](()=>_0x2e32eb(_0x5ea97d,_0x211d89,_0x223a03)),null;}_0xbf1031['push'](..._0x5ea97d);let _0x95e32f=!0x0;for(const _0x3fee07 of _0xbf1031)if(!this['_rangeIsInLocalUserInsertion'](_0x3fee07)){_0x95e32f=!0x1;break;}if(_0x95e32f&&'always'!==this['_trackFormatChanges']){const _0x550f4b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x524f3b,'accept');return this['forceDefaultExecution'](()=>_0x550f4b(_0x5ea97d,_0x211d89,_0x223a03)),null;}const _0xf54880=this['editor']['plugins']['get']('Users')['me'];for(const _0x4a7f1e of this['getSuggestions']()){if(_0x4a7f1e['author']['id']!=_0xf54880['id'])continue;if('formatBlock'!=_0x4a7f1e['type']||_0x4a7f1e['data']['formatGroupId']!=_0x211d89['formatGroupId'])continue;if(!Kt(_0x4a7f1e,_0x223a03))continue;const _0x36d3b9=_0x4a7f1e['subType']==_0x524f3b;for(let _0xb2b62b=0x0;_0xb2b62b<_0x5ea97d['length'];_0xb2b62b++){const _0x2186c9=_0x5ea97d[_0xb2b62b];for(const _0xc24e1e of _0x4a7f1e['getMarkers']()){const _0x4146e5=_0xc24e1e['getRange']();if(_0x2186c9['isEqual'](_0x4146e5)){_0x36d3b9?(_0x5ea97d['splice'](_0xb2b62b,0x1),_0xb2b62b--):_0x4a7f1e['removeMarker'](_0xc24e1e['name']);break;}}}}if(0x0==_0x5ea97d['length'])return null;const _0x2c0590=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x524f3b,'join');for(const _0x1aab17 of this['getSuggestions']())if(_0x1aab17['author']['id']==_0xf54880['id']&&'formatBlock'==_0x1aab17['type']&&_0x1aab17['data']['formatGroupId']==_0x211d89['formatGroupId']&&_0x1aab17['subType']==_0x524f3b&&Kt(_0x1aab17,_0x223a03)&&(_0x2c0590(_0x1aab17['getRanges'](),_0x5ea97d)||_0x2c0590(_0x5ea97d,_0x1aab17['getRanges']()))){for(const _0x419e0d of _0x5ea97d)_0x1aab17['addRange'](_0x419e0d);return _0x1aab17;}const _0x2488b6=_0x3330a4(),_0x4507ce=_0xf54880['id'],_0x8b43c4='formatBlock:'+_0x524f3b,_0xafef0b=this['_setSuggestionData']({'id':_0x2488b6,'type':_0x8b43c4,'data':_0x211d89,'createdAt':new Date(),'authorId':_0x4507ce,'attributes':_0x223a03});for(const _0x4bdb57 of _0x5ea97d)this['_addSuggestionMarker'](_0x8b43c4,_0x2488b6,_0x4507ce,_0x4bdb57,u['getMultiRangeId']());return _0xafef0b;}['markDeletion'](_0x181d3b,_0x414c1f=null,_0x7bf2a5={}){if(_0x181d3b['isCollapsed'])return null;const _0x15595b=this['editor']['plugins']['get']('Users')['me'],_0x22bc97=new _0x48c676(_0x181d3b['start'],_0x181d3b['end']);for(const {suggestion:_0x287735,meta:_0x1d7764}of this['_findSuggestions'](_0x22bc97,'insertion'))if(_0x1d7764['isOwn']&&!_0x1d7764['isNextTo']){if(_0x287735['isMultiRange']){const _0x4646a8=_0x287735['getRanges']()['filter'](_0x2920d1=>'$graveyard'!=_0x2920d1['root']['rootName']);_0x4646a8['every'](_0x36ca24=>_0x22bc97['containsRange'](_0x36ca24,!0x0))&&_0x287735['discard']();if(_0x4646a8['some'](_0x54b0b8=>_0x54b0b8['containsRange'](_0x22bc97,!0x0))){const _0x429a30=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x414c1f,'accept');return this['forceDefaultExecution'](()=>_0x429a30([_0x22bc97],null,_0x7bf2a5)),null;}}else{const _0x5aed40=_0x22bc97['getIntersection'](_0x287735['getFirstRange']());null!==_0x5aed40&&_0x287735['_onDiscard']([_0x5aed40],null,_0x7bf2a5);}}if(_0x22bc97['detach'](),_0x22bc97['isCollapsed']||'$graveyard'==_0x22bc97['root']['rootName'])return null;let _0x14e93c=null,_0xe759b0=_0x22bc97['start'],_0x4511dd=_0x22bc97['end'];const _0xc1115=this['_findSuggestions'](_0x22bc97,'deletion');for(const {suggestion:_0x433bb7,meta:_0xd0614e}of _0xc1115){const _0x5c37bd=this['_model']['createRange'](_0xe759b0,_0x4511dd);if(_0xd0614e['isOwn']&&(this['_mergeNestedSuggestions']||!_0xd0614e['containsRangeInObject']&&!_0xd0614e['isInsideObject'])){if(_0x433bb7['isMultiRange']){if(!Kt(_0x433bb7,_0x7bf2a5))continue;let _0x3a9e00=!0x0;for(const _0xc653ea of _0x433bb7['getRanges']()){if(_0xc653ea['containsRange'](_0x5c37bd,!0x0))return _0x433bb7;_0x5c37bd['containsRange'](_0xc653ea)||(_0x3a9e00=!0x1);}_0x3a9e00&&_0x433bb7['discard']();}else{const _0x418927=_0x433bb7['getFirstRange']();if(_0x418927['containsRange'](_0x5c37bd,!0x0))return _0x433bb7;if(!Kt(_0x433bb7,_0x7bf2a5)){_0x5c37bd['containsRange'](_0x418927)?_0x433bb7['removeMarkers']():_0x418927['containsPosition'](_0xe759b0)?_0xe759b0=_0x418927['end']:_0x418927['containsPosition'](_0x4511dd)&&(_0x4511dd=_0x418927['start']);continue;}_0xe759b0=_0xe759b0['isBefore'](_0x418927['start'])?_0xe759b0:_0x418927['start'],_0x4511dd=_0x4511dd['isAfter'](_0x418927['end'])?_0x4511dd:_0x418927['end'],_0x7bf2a5=Object['assign']({},_0x433bb7['attributes']),_0x14e93c?_0x418927['start']['isBefore'](_0x14e93c['getFirstRange']()['start'])?(_0x14e93c['removeMarkers'](),_0x14e93c=_0x433bb7):_0x433bb7['removeMarkers']():_0x14e93c=_0x433bb7;}}}if(_0x14e93c)return this['_setSuggestionRange'](_0x14e93c,this['_model']['createRange'](_0xe759b0,_0x4511dd)),_0x14e93c;{const _0x11005e=_0x3330a4(),_0x16cc93=this['_model']['createRange'](_0xe759b0,_0x4511dd),_0x17aaef=_0x15595b['id'],_0x2162d0=_0x414c1f?'deletion:'+_0x414c1f:'deletion',_0xf1d806=this['_setSuggestionData']({'id':_0x11005e,'type':_0x2162d0,'createdAt':new Date(),'authorId':_0x17aaef,'attributes':_0x7bf2a5});return this['_addSuggestionMarker'](_0x2162d0,_0x11005e,_0x17aaef,_0x16cc93),_0xf1d806;}}['markMultiRangeDeletion'](_0x5db89e,_0x3a3cbd='multi',_0x3071bb={}){const _0x28edb6=this['editor']['plugins']['get']('Users')['me'],_0x2de513=_0x5db89e['map'](_0x26f3c0=>new _0x48c676(_0x26f3c0['start'],_0x26f3c0['end'])),_0x464688=new Set();for(const {suggestion:_0x15f5ee,meta:_0x597035}of this['_findSuggestions'](_0x2de513,'insertion'))_0x597035['isOwn']&&!_0x597035['isNextTo']&&_0x464688['add'](_0x15f5ee);for(const _0x5b6643 of _0x464688)if(_0x5b6643['isMultiRange']){const _0x59455d=_0x5b6643['getRanges']();(!_0x5b6643['attributes']||!_0x5b6643['attributes']['skipNestingCheck'])&&(_0x59455d['every'](_0x24dfcb=>_0x2de513['some'](_0x1a682c=>_0x1a682c['containsRange'](_0x24dfcb,!0x0)))&&_0x5b6643['discard']());if(_0x2de513['every'](_0x345d72=>_0x59455d['some'](_0x5363ef=>_0x5363ef['containsRange'](_0x345d72,!0x0)))){const _0x28c715=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a3cbd,'accept');return this['forceDefaultExecution'](()=>_0x28c715(_0x5db89e,null,_0x3071bb)),null;}}else{const _0x3948e6=_0x5b6643['getFirstRange']();_0x2de513['some'](_0x45069f=>_0x45069f['containsRange'](_0x3948e6,!0x0))&&_0x5b6643['discard']();if(_0x2de513['every'](_0x547848=>_0x3948e6['containsRange'](_0x547848,!0x0))){const _0x426212=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a3cbd,'accept');return this['forceDefaultExecution'](()=>_0x426212(_0x2de513,null,_0x3071bb)),null;}}const _0xf84652=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a3cbd,'join');let _0x369b64=null;for(const _0x43c62a of this['getSuggestions']())if(_0x43c62a['author']['id']==_0x28edb6['id']&&_0x43c62a['isInContent']&&'deletion'==_0x43c62a['type']&&_0x43c62a['subType']==_0x3a3cbd&&Kt(_0x43c62a,_0x3071bb)&&(_0xf84652(_0x43c62a['getRanges'](),_0x2de513)||_0xf84652(_0x2de513,_0x43c62a['getRanges']()))){if(_0x369b64){if(_0x43c62a['commentThread']&&_0x43c62a['commentThread']['length'])continue;for(const _0x117f4f of _0x43c62a['getRanges']())_0x369b64['isIntersectingWithRange'](_0x117f4f)||_0x369b64['addRange'](_0x117f4f);_0x43c62a['removeMarkers']();}else{_0x369b64=_0x43c62a;for(const _0xb025b7 of _0x2de513)_0x43c62a['isIntersectingWithRange'](_0xb025b7)||_0x43c62a['addRange'](_0xb025b7);}}if(_0x369b64)return _0x369b64;_0x464688['clear']();for(const {suggestion:_0x3594f8,meta:_0x2d4b36}of this['_findSuggestions'](_0x2de513,'deletion'))_0x2d4b36['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2d4b36['containsRangeInObject']&&!_0x2d4b36['isInsideObject'])&&Kt(_0x3594f8,_0x3071bb)&&_0x464688['add'](_0x3594f8);for(const _0x3e1565 of _0x464688){const _0x39e83e=_0x3e1565['getRanges']();if(!_0x3071bb||!_0x3071bb['skipNestingCheck']){if(_0x2de513['every'](_0x274704=>_0x39e83e['some'](_0x424214=>_0x424214['containsRange'](_0x274704,!0x0))))return _0x3e1565;}(!_0x3e1565['attributes']||!_0x3e1565['attributes']['skipNestingCheck'])&&(_0x39e83e['every'](_0x39e84f=>_0x2de513['some'](_0x2e2035=>_0x2e2035['containsRange'](_0x39e84f,!0x0)))&&_0x3e1565['discard']());}const _0x188ce9=_0x3330a4(),_0x4a87f2=_0x28edb6['id'],_0x1c0378='deletion:'+_0x3a3cbd,_0xc4f35=this['_setSuggestionData']({'id':_0x188ce9,'type':_0x1c0378,'createdAt':new Date(),'authorId':_0x4a87f2,'attributes':_0x3071bb});for(const _0x52fec7 of _0x2de513)_0x52fec7['detach'](),_0x52fec7['isCollapsed']||'$graveyard'==_0x52fec7['root']['rootName']||this['_addSuggestionMarker'](_0x1c0378,_0x188ce9,_0x4a87f2,_0x52fec7,u['getMultiRangeId']());return _0xc4f35;}['markAttributeChange'](_0x2412cb,_0x2ff221,_0x1fd669,_0x51351c,_0x5dc1d9){if(_0x2412cb['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1e3925=this['editor']['plugins']['get']('Users')['me']['id'],_0x24a853=Array['from'](this['_suggestions']['values']())['filter'](_0x13cd31=>'attribute'==_0x13cd31['type']&&_0x13cd31['data']['key']==_0x2ff221&&_0x13cd31['isIntersectingWithRange'](_0x2412cb));if('default'===this['_trackFormatChanges']){const _0xc9733=this['_findSuggestions'](_0x2412cb,'insertion')['filter'](({meta:_0x561fea})=>_0x561fea['isOwn']&&!_0x561fea['isInsideObject']&&!_0x561fea['isNextTo'])['map'](({suggestion:_0x415dd4})=>_0x415dd4);_0x24a853['unshift'](..._0xc9733);}const _0x50d793=new Map([[_0x2412cb,_0x1fd669]]);for(const _0x375c4f of _0x24a853){const _0x383957='attribute'==_0x375c4f['type']?_0x375c4f['data']['oldValue']:void 0x0,_0xd58095=_0x375c4f['getFirstRange'](),_0x4a66ae=Array['from'](_0x50d793['keys']())['find'](_0x2f1f3d=>_0x2f1f3d['isIntersecting'](_0xd58095));if(!_0x4a66ae)continue;const _0x3041be=_0x4a66ae['getDifference'](_0xd58095);this['_isBlockAttribute'](_0x2ff221)&&'insertion'==_0x375c4f['type']&&0x0!=_0x3041be['length']||(_0x50d793['delete'](_0x4a66ae),_0x3041be['forEach'](_0x4f688d=>{_0x50d793['set'](_0x4f688d,_0x1fd669);}),'insertion'!=_0x375c4f['type']&&_0x383957!=_0x51351c&&_0x50d793['set'](_0x4a66ae['getIntersection'](_0xd58095),_0x383957));}const _0x3bf83d=[];for(const [_0x37c848,_0x3c316c]of _0x50d793){const _0x1971ba=_0x3330a4(),_0xd8282={'key':_0x2ff221,'oldValue':_0x3c316c,'newValue':_0x51351c};_0x2ff221['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':_0x2ff221});const _0x1e903f=('attribute:'+(_0x2ff221+'|'+Ft({'newValue':_0x51351c})))['substring'](0x0,0x3c),_0xd297f0=this['_setSuggestionData']({'id':_0x1971ba,'type':_0x1e903f,'data':_0xd8282,'createdAt':new Date(),'authorId':_0x1e3925,'attributes':_0x5dc1d9});_0x3bf83d['push'](_0xd297f0),this['_addSuggestionMarker'](_0x1e903f,_0x1971ba,_0x1e3925,_0x37c848);}return _0x3bf83d;}['enableDefaultAttributesIntegration'](_0x1d19d5){this['enableCommand'](_0x1d19d5,(_0xacff31,..._0x20b118)=>{this['_recordAttributeChanges'](()=>{_0xacff31(..._0x20b118);});});}['registerBlockAttribute'](_0x243782){this['_blockAttributeKeys']['add'](_0x243782);}['registerInlineAttribute'](_0x50be24){this['_inlineAttributeKeys']['add'](_0x50be24);}['_getAttributeKey'](_0x2500a8){return'attribute'==_0x2500a8['type']?_0x2500a8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4d4f6c,_0x15ef9f){const _0x259c3a=_0x4d4f6c['getFirstMarker']();this['_model']['change'](_0x303911=>{_0x303911['updateMarker'](_0x259c3a,{'range':_0x15ef9f});});}['_addThreadToSuggestion'](_0x3448fb){const _0x555d79=_0x3448fb['id'],_0x1b9998=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x555d79)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1b9998,'threadId':_0x555d79,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x412f72=this['_commentsRepository']['getCommentThread'](_0x555d79);_0x412f72['unbind']('isRemovable'),_0x412f72['isRemovable']=!0x1,_0x3448fb['commentThread']=_0x412f72;}['_checkSuggestionCorrectness'](_0x3de343,_0x2351b4,_0x4a6296,_0x1f573f){if(_0x3de343['type']!=_0x2351b4||_0x3de343['subType']!=_0x4a6296||_0x3de343['creator']['id']!=_0x1f573f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x59c745('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1a8490,_0x3a1467){const _0x124da5=_0x1a8490['getFirstRange']();if(_0x3a1467['isEqual'](_0x124da5))_0x1a8490['removeMarkers']();else{if(_0x124da5['containsRange'](_0x3a1467)){const _0x30e6a6=this['_model']['createPositionAt'](_0x3a1467['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a8490,this['_model']['createRange'](_0x124da5['start'],_0x30e6a6));const _0x5a6bb3=_0x3330a4(),_0x487643=_0x1a8490['creator']['id'],_0x21c8a0=_0x1a8490['type']+':'+_0x1a8490['subType'];this['_setSuggestionData']({'id':_0x5a6bb3,'type':_0x21c8a0,'createdAt':new Date(),'authorId':_0x487643,'data':_0x1a8490['data'],'attributes':_0x1a8490['attributes']});const _0x203ffd=this['_model']['createPositionAt'](_0x3a1467['end']['parent'],'after'),_0x1f4f70=this['_model']['createRange'](_0x203ffd,_0x124da5['end']);this['_addSuggestionMarker'](_0x21c8a0,_0x5a6bb3,_0x487643,_0x1f4f70);}else{if(_0x124da5['containsPosition'](_0x3a1467['start'])){const _0x4cc70b=this['_model']['createPositionAt'](_0x3a1467['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a8490,this['_model']['createRange'](_0x124da5['start'],_0x4cc70b));}else{const _0x3c3934=this['_model']['createPositionAt'](_0x3a1467['end']['parent'],'after');this['_setSuggestionRange'](_0x1a8490,this['_model']['createRange'](_0x3c3934,_0x124da5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5b4d68){for(const {suggestion:_0x474b28,meta:_0x48b6b6}of this['_findSuggestions'](_0x5b4d68,'insertion')){if(!_0x48b6b6['isOwn'])continue;const _0x360dc9=_0x474b28['getRanges']();for(const _0x337484 of _0x360dc9)if(!_0x5b4d68['getDifference'](_0x337484)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x573ecb){const _0x31bfb7=this['editor']['plugins']['get']('Users')['getUser'](_0x573ecb);if(!_0x31bfb7)throw new _0x59c745('track-changes-user-not-found',this);return _0x31bfb7;}['_getExternalAuthor'](_0x48265b){const _0x46c2ea=this['editor']['plugins']['get']('Users'),_0x3c7167=_0x135b17('external:'+_0x48265b),_0x1be657=_0x46c2ea['getUser'](_0x3c7167);return _0x1be657||_0x46c2ea['addUser']({'id':_0x3c7167,'name':_0x48265b});}['_createSuggestion'](_0x2c7ac5,_0x2f5816,_0x229129,_0xd14012,_0x455efd){const _0x4c3a36=this['_getAuthorFromId'](_0xd14012),_0x3c1f63=this['_suggestionFactory']['buildSuggestion'](_0x2c7ac5,_0x2f5816,_0x229129,_0x4c3a36,_0x455efd,_0x3779bc=>{this['_updateSuggestionData'](_0x229129,{'attributes':_0x3779bc});const _0x53340f=this['getSuggestion'](_0x229129);this['_joinWithAdjacentSuggestions'](new Set([_0x53340f])),this['_refreshSuggestionsChain'](new Set([_0x53340f]));});return this['listenTo'](_0x3c1f63,'accept',()=>{this['_updateSuggestionData'](_0x229129,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3c1f63,'discard',()=>{this['_updateSuggestionData'](_0x229129,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x229129,_0x3c1f63),this['_suggestionState']['set'](_0x3c1f63,'notReady'),_0x3c1f63;}['_splitMarkerName'](_0x1a2dfe){const _0xb2377a=_0x1a2dfe['split'](':');return{'group':_0xb2377a[0x0],'type':_0xb2377a[0x1],'subType':_0xb2377a['length']>=0x5?_0xb2377a[0x2]:null,'id':_0xb2377a['length']<0x5?_0xb2377a[0x2]:_0xb2377a[0x3],'authorId':_0xb2377a['length']<0x5?_0xb2377a[0x3]:_0xb2377a[0x4],'markerCount':0x6==_0xb2377a['length']?_0xb2377a[0x5]:null};}['_breakSuggestionMarker'](_0x327ac4,_0x36bfd6,_0x495f12){const _0x30e588=_0x327ac4['getFirstRange'](),_0x3d6def=_0x30e588['start'],_0x1d3d5f=_0x30e588['end'];this['_setSuggestionRange'](_0x327ac4,this['_model']['createRange'](_0x3d6def,_0x36bfd6));const _0x447e0f=_0x3330a4(),_0x302837=_0x327ac4['creator']['id'],_0x20c625=_0x327ac4['type']+(_0x327ac4['subType']?':'+_0x327ac4['subType']:'');this['_setSuggestionData']({'id':_0x447e0f,'type':_0x20c625,'createdAt':new Date(),'authorId':_0x302837,'originalSuggestionId':_0x327ac4['id'],'attributes':_0x327ac4['attributes'],'data':_0x327ac4['data']});const _0x4df213=this['_getAttributeKey'](_0x327ac4);('formatBlock'==_0x327ac4['type']||_0x4df213&&this['_isBlockAttribute'](_0x4df213))&&(_0x495f12=this['_model']['createPositionBefore'](_0x495f12['parent'])),this['_addSuggestionMarker'](_0x20c625,_0x447e0f,_0x302837,this['_model']['createRange'](_0x495f12,_0x1d3d5f));}['_findSuggestions'](_0x41931c,_0x2ecf02=null){const _0x18bcef=[],_0x499973=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x41931c)||(_0x41931c=[_0x41931c]);for(const _0x76ee63 of this['getSuggestions']()){if(!_0x76ee63['isInContent'])continue;if(_0x2ecf02&&_0x76ee63['type']!=_0x2ecf02)continue;let _0x40339e=!0x1;for(const _0x52d414 of _0x76ee63['getRanges']()){for(const _0x54f021 of _0x41931c){const _0x20cede=_0x54f021['start']['isEqual'](_0x52d414['end'])||_0x54f021['end']['isEqual'](_0x52d414['start']);if(_0x20cede||_0x54f021['getIntersection'](_0x52d414)){const _0x24401a=_0x54f021['containsRange'](_0x52d414)&&Vt(this['_model']['schema'],_0x52d414['start'],_0x54f021),_0x568dfd=_0x52d414['containsRange'](_0x54f021)&&Vt(this['_model']['schema'],_0x54f021['start'],_0x52d414);_0x18bcef['push']({'suggestion':_0x76ee63,'meta':{'isOwn':_0x499973==_0x76ee63['author'],'isNextTo':_0x20cede,'isInsideObject':_0x24401a,'containsRangeInObject':_0x568dfd}}),_0x40339e=!0x0;break;}}if(_0x40339e)break;}}return _0x18bcef;}['_addSuggestionMarker'](_0xe8fda2,_0x3820ea,_0xa9b492,_0x2d252e,_0x38c416){this['_model']['change'](_0x43298d=>{let _0x37c1c7='suggestion:'+_0xe8fda2+':'+_0x3820ea+':'+_0xa9b492;_0x38c416&&(_0x37c1c7=_0x37c1c7+':'+_0x38c416),_0x43298d['addMarker'](_0x37c1c7,{'range':_0x2d252e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x10aabd){const _0x1bff0c=_0x10aabd['previous'],_0x147413=_0x10aabd['next'];_0x10aabd['previous']=null,_0x10aabd['next']=null,null!=_0x1bff0c&&_0x1bff0c['next']==_0x10aabd&&(_0x1bff0c['next']=_0x147413),null!=_0x147413&&_0x147413['previous']==_0x10aabd&&(_0x147413['previous']=_0x1bff0c),'ready'==this['_suggestionState']['get'](_0x10aabd)&&(this['_suggestionState']['set'](_0x10aabd,'removed'),this['fire']('suggestionUnloaded',_0x10aabd,_0x1bff0c,_0x147413));}['_setSuggestionData'](_0x2c0505){const _0x3392e6=_0x2c0505['id'],_0x591c09=this['addSuggestionData'](_0x2c0505);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x8a2593=this['editor']['plugins']['get']('PendingActions'),_0x56d70c=_0x591c09['hasComments'],_0x1329dc=_0x591c09['subType']?_0x591c09['type']+':'+_0x591c09['subType']:_0x591c09['type'],_0x4fe9f1=this['editor']['locale'],_0x15de51=_0x8a2593['add'](o(_0x4fe9f1,'PENDING_ACTION_SUGGESTION')),_0x2cbc9c={'id':_0x3392e6,'type':_0x1329dc,'hasComments':_0x56d70c,'data':_0x2c0505['data']||null,'originalSuggestionId':_0x2c0505['originalSuggestionId']||null,'attributes':_0x591c09['attributes']};this['_adapter']['addSuggestion'](_0x2cbc9c)['then'](_0x3dc514=>{_0x591c09['_saved']=!0x0,_0x8a2593['remove'](_0x15de51),_0x3dc514&&_0x3dc514['createdAt']&&(this['_suggestions']['get'](_0x3392e6)['createdAt']=_0x3dc514['createdAt']);})['catch'](_0x1b36a1=>{throw _0x369c47('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x591c09['discard']();}),_0x591c09['stopListening'](),this['_suggestions']['delete'](_0x591c09['id']),this['_suggestionState']['delete'](_0x591c09),_0x1b36a1;});}return _0x591c09;}['_isBlockAttribute'](_0x1d451d){return this['_blockAttributeKeys']['has'](_0x1d451d);}['_updateSuggestionData'](_0xe52e6b,_0x2ead7c){const _0x361db2=this['editor']['plugins']['get']('PendingActions'),_0x1b37bf=this['getSuggestion'](_0xe52e6b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1b37bf['_saved']){const _0xe8af3a=_0x361db2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xe52e6b,_0x2ead7c)['then'](()=>{_0x361db2['remove'](_0xe8af3a);});}else _0x1b37bf['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xe52e6b,_0x2ead7c);});}}['_getSuggestionData'](_0x6a3178){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x59c745('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x6a3178);}['_handleNewSuggestionMarker'](_0x250fac){const {id:_0x250532,type:_0x25fdd9,subType:_0x2d91ce,authorId:_0x54fc65}=this['_splitMarkerName'](_0x250fac),_0x4f6e24=this['_suggestions']['get'](_0x250532)||this['_createSuggestion'](_0x25fdd9,_0x2d91ce,_0x250532,_0x54fc65,{});switch(this['_checkSuggestionCorrectness'](_0x4f6e24,_0x25fdd9,_0x2d91ce,_0x54fc65),this['_suggestionState']['get'](_0x4f6e24)){case'notReady':this['_getSuggestionData'](_0x250532)['then'](_0x5ce38a=>{let _0x5d21f0=Promise['resolve']();_0x5ce38a['hasComments']&&(_0x5d21f0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x250532})),_0x5d21f0['then'](()=>{this['addSuggestionData'](_0x5ce38a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4f6e24,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x250532,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4f6e24,'ready'),this['fire']('suggestionLoaded',_0x4f6e24);break;case'ready':this['fire']('suggestionChanged',_0x4f6e24);}return _0x4f6e24['addMarkerName'](_0x250fac),_0x4f6e24;}['_refreshSuggestionsChain'](_0x5a94fc){const _0x4bce26=Array['from'](_0x5a94fc),_0x5b7ecb=_0x4bce26['filter'](_0x480a21=>'attribute'==_0x480a21['type']);this['_refreshAttributeSuggestionsChain'](_0x5b7ecb);const _0x599995=_0x4bce26['filter'](_0x5abf19=>!_0x5abf19['isMultiRange']&&'attribute'!=_0x5abf19['type']),_0x5b47ff=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x254dd8=>!_0x254dd8['isMultiRange']&&'attribute'!=_0x254dd8['type']),_0x69146c=_0x5b47ff['filter'](_0x523d14=>!_0x5a94fc['has'](_0x523d14)),_0x4d9c3d=new Map(_0x5b47ff['map'](_0x51e0d2=>[_0x51e0d2,this['_suggestionFactory']['getSuggestionCallback'](_0x51e0d2['type'],_0x51e0d2['subType'],'chain')])),_0x2a8612=new Map(_0x5b47ff['map'](_0x3d7b9e=>[_0x3d7b9e,_0x3d7b9e['getFirstRange']()])),_0x249b58=new Set(),_0x11271e=new Set();for(let _0x1b32f8=0x0;_0x1b32f8<_0x599995['length'];_0x1b32f8++)_0x5b26d4(_0x599995[_0x1b32f8],_0x599995,_0x1b32f8+0x1);for(let _0x1e0819=0x0;_0x1e0819<_0x599995['length'];_0x1e0819++)_0x5b26d4(_0x599995[_0x1e0819],_0x69146c,0x0);const _0x17eed9=new Set();for(let _0x49d058=0x0;_0x49d058<_0x599995['length'];_0x49d058++){const _0x4e1b72=_0x599995[_0x49d058];!_0x11271e['has'](_0x4e1b72)&&_0x4e1b72['previous']&&(_0x17eed9['add'](_0x4e1b72['previous']),_0x4e1b72['previous']['next']===_0x4e1b72&&(_0x4e1b72['previous']['next']=null),_0x4e1b72['previous']=null),!_0x249b58['has'](_0x4e1b72)&&_0x4e1b72['next']&&(_0x17eed9['add'](_0x4e1b72['next']),_0x4e1b72['next']['previous']===_0x4e1b72&&(_0x4e1b72['next']['previous']=null),_0x4e1b72['next']=null);}function _0x5b26d4(_0x2ff040,_0x21195f,_0x490509){for(let _0x12e657=_0x490509;_0x12e657<_0x21195f['length'];_0x12e657++){const _0x283b09=_0x3232c3(_0x2ff040,_0x21195f[_0x12e657]);_0x283b09&&(_0x283b09[0x0]['next']=_0x283b09[0x1],_0x283b09[0x1]['previous']=_0x283b09[0x0],_0x249b58['add'](_0x283b09[0x0]),_0x11271e['add'](_0x283b09[0x1]));}}function _0x3232c3(_0x2b5afd,_0x40fa5f){if(_0x2b5afd['author']['id']!==_0x40fa5f['author']['id'])return null;const _0x381ffb=_0x4d9c3d['get'](_0x2b5afd)(_0x2b5afd,_0x40fa5f,_0x2a8612['get'](_0x2b5afd),_0x2a8612['get'](_0x40fa5f));if(!_0x381ffb)return null;return _0x4d9c3d['get'](_0x40fa5f)(_0x2b5afd,_0x40fa5f,_0x2a8612['get'](_0x2b5afd),_0x2a8612['get'](_0x40fa5f))?_0x381ffb[0x1]['commentThread']&&_0x381ffb[0x1]['commentThread']['length']?null:_0x381ffb:null;}_0x17eed9['size']&&this['_refreshSuggestionsChain'](_0x17eed9);}['_refreshAttributeSuggestionsChain'](_0x21af1e){if(0x0==_0x21af1e['length'])return;const _0x108ded=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38e2fb=>'attribute'==_0x38e2fb['type']&&_0x38e2fb['_isDataLoaded']),_0x1a9766=[],_0x840d5=new Map();for(const _0x4a505c of _0x108ded){const _0x5e0d82=_0x135b17(_0x4a505c['attributes']);_0x840d5['has'](_0x5e0d82)||(_0x840d5['set'](_0x5e0d82,_0x1a9766['length']),_0x1a9766['push']([]));const _0xa9b2a4=_0x840d5['get'](_0x5e0d82);_0x1a9766[_0xa9b2a4]['push'](_0x4a505c);}!(function(){_0x1a9766['sort']((_0x11d2ab,_0x411c36)=>{const _0x557e76=_0x11d2ab[0x0]['createdAt'],_0xb4b0e8=_0x411c36[0x0]['createdAt'];return _0x557e76==_0xb4b0e8?_0x11d2ab[0x0]['attributes']['groupId']<_0x411c36[0x0]['attributes']['groupId']?-0x1:0x1:_0x557e76<_0xb4b0e8?-0x1:0x1;});for(const _0x47caa6 of _0x1a9766)_0x47caa6['sort']((_0x338441,_0x4c5996)=>_0x338441['id']<_0x4c5996['id']?-0x1:0x1);}());for(let _0x3390d6=0x0;_0x3390d6<_0x1a9766['length'];_0x3390d6++){if(0x0==_0x1a9766[_0x3390d6]['length'])continue;const _0x175faf=[];for(let _0x46e575=_0x3390d6+0x1;_0x46e575<_0x1a9766['length'];_0x46e575++)0x0!=_0x1a9766[_0x46e575]['length']&&_0x476aad(_0x1a9766[_0x3390d6],_0x1a9766[_0x46e575])&&_0x175faf['push'](_0x46e575);for(const _0x128a35 of _0x175faf)_0x1a9766[_0x3390d6]=_0x1a9766[_0x3390d6]['concat'](_0x1a9766[_0x128a35]),_0x1a9766[_0x128a35]=[];}for(const _0x507d4c of _0x1a9766)for(let _0xc3fc4b=0x0;_0xc3fc4b<_0x507d4c['length'];_0xc3fc4b++){const _0x43689a=_0x507d4c[_0xc3fc4b+0x1]||null;_0x507d4c[_0xc3fc4b]['next']!==_0x43689a&&(_0x507d4c[_0xc3fc4b]['next']=_0x43689a);}for(const _0xa32aaa of _0x1a9766)for(let _0x768045=0x0;_0x768045<_0xa32aaa['length'];_0x768045++){const _0x18f6b4=_0xa32aaa[_0x768045-0x1]||null;_0xa32aaa[_0x768045]['previous']!==_0x18f6b4&&(_0xa32aaa[_0x768045]['previous']=_0x18f6b4);}function _0x476aad(_0x539547,_0x156a8b){if(_0x539547[0x0]['attributes']['groupId']!==_0x156a8b[0x0]['attributes']['groupId']&&_0x539547[0x0]['author']!==_0x156a8b[0x0]['author'])return!0x1;if(!function(_0x39cecc,_0x509d17){if(!_0x39cecc['hasComments']&&!_0x509d17['hasComments'])return!0x0;if(_0x39cecc['hasComments']&&_0x509d17['hasComments'])return!0x1;if(_0x39cecc['hasComments']&&_0x509d17['createdAt']<_0x39cecc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x509d17['hasComments']&&_0x39cecc['createdAt']<_0x509d17['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x539547[0x0],_0x156a8b[0x0]))return!0x1;const _0x10492d=Et(_0x539547[0x0]['attributes'],'groupId'),_0xc21e8a=Et(_0x156a8b[0x0]['attributes'],'groupId');if(!_0x423d77(_0x10492d,_0xc21e8a))return!0x1;return!!_0x539547['every'](_0x32d317=>_0x156a8b['some'](_0x5eb282=>_0x32d317['getFirstRange']()['isEqual'](_0x5eb282['getFirstRange']())))&&_0x156a8b['every'](_0x387e08=>_0x539547['some'](_0x4d13f3=>_0x387e08['getFirstRange']()['isEqual'](_0x4d13f3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4d00ea){const _0x5a74d1=Array['from'](_0x4d00ea),_0x3658c5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x249a09=_0x3658c5['filter'](_0x333c32=>!_0x4d00ea['has'](_0x333c32)),_0x360d81=new Map(_0x5a74d1['map'](_0x2231de=>[_0x2231de,this['_suggestionFactory']['getSuggestionCallback'](_0x2231de['type'],_0x2231de['subType'],'join')])),_0x11a0df=new Map(_0x3658c5['map'](_0x368857=>[_0x368857,_0x368857['getRanges']()]));for(let _0x87f445=0x0;_0x87f445<_0x5a74d1['length'];_0x87f445++){if(_0x22621e(this,_0x5a74d1[_0x87f445],_0x5a74d1,_0x87f445+0x1))return!0x0;}for(let _0x5b45e8=0x0;_0x5b45e8<_0x5a74d1['length'];_0x5b45e8++){if(_0x22621e(this,_0x5a74d1[_0x5b45e8],_0x249a09,0x0))return!0x0;}return!0x1;function _0x22621e(_0x472f80,_0x5e0c9c,_0xf779e,_0x41a585){for(let _0x5d0dc4=_0x41a585;_0x5d0dc4<_0xf779e['length'];_0x5d0dc4++){const _0x3fcaa5=_0xf779e[_0x5d0dc4];if(_0x3fcaa5['type']!==_0x5e0c9c['type']||_0x3fcaa5['author']['id']!==_0x5e0c9c['author']['id']||_0x3fcaa5['subType']!==_0x5e0c9c['subType'])continue;if(!zt(_0x5e0c9c,_0x3fcaa5))continue;if('attribute'==_0x5e0c9c['type']&&_0x5e0c9c['data']['oldValue']!=_0x3fcaa5['data']['oldValue'])continue;if('attribute'==_0x5e0c9c['type']&&_0x472f80['_isBlockAttribute'](_0x5e0c9c['data']['key']))continue;if('formatBlock'==_0x5e0c9c['type']){const _0x18450b=_0x472f80['editor']['model'],_0x3bd625=_0x5e0c9c['getContainedElement']();if(_0x3bd625&&(_0x18450b['schema']['isObject'](_0x3bd625)||_0x18450b['schema']['isLimit'](_0x3bd625)))continue;}const _0x5c329c=_0x360d81['get'](_0x5e0c9c),_0x3bdabc=_0x11a0df['get'](_0x5e0c9c),_0x5555c1=_0x11a0df['get'](_0x3fcaa5),_0x2eafcd=_0x5e0c9c['commentThread']&&_0x5e0c9c['commentThread']['length'],_0x2b1522=_0x3fcaa5['commentThread']&&_0x3fcaa5['commentThread']['length'];if(!_0x2eafcd&&_0x5c329c(_0x5555c1,_0x3bdabc))return _0x472f80['_joinSuggestions'](_0x3fcaa5,_0x5e0c9c),_0x11a0df['delete'](_0x5e0c9c),!0x0;if(!_0x2b1522&&_0x5c329c(_0x3bdabc,_0x5555c1))return _0x472f80['_joinSuggestions'](_0x5e0c9c,_0x3fcaa5),_0x11a0df['delete'](_0x3fcaa5),!0x0;}return!0x1;}}['_joinSuggestions'](_0x200a6b,_0xb15ff8){if(_0x200a6b['isMultiRange']){for(const _0x10a17a of _0xb15ff8['getRanges']())_0x200a6b['addRange'](_0x10a17a);}else{const _0x4ed1cd=_0xb15ff8['getFirstRange']()['end'];this['_setSuggestionRange'](_0x200a6b,this['_model']['createRange'](_0x200a6b['getFirstRange']()['start'],_0x4ed1cd));}_0xb15ff8['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5ef427,_0x236611,_0x49d07f){const _0xe888ac=_0x5ef427['startsWith']('format')||_0x5ef427['startsWith']('attribute')?'FORMATTING':_0x5ef427['toUpperCase']();return o(this['editor']['locale'],_0x236611+'_'+_0xe888ac+'_SUGGESTION_ANNOUNCEMENT',_0x49d07f);}['_initAriaMarkerChangeAnnouncements'](){const _0x5b55d6=this['editor'];if(!_0x5b55d6['ui'])return;const {ariaLiveAnnouncer:_0x14cf46}=_0x5b55d6['ui'];_0x30266a(this['_model'],({left:_0x2b68df,entered:_0xa9a627})=>{for(const _0x1b46a5 of _0x2b68df){const {group:_0x1ec7b4,type:_0x33b8a6}=this['_splitMarkerName'](_0x1b46a5['name']);if('suggestion'===_0x1ec7b4){_0x14cf46['announce'](this['_getMarkerAnnouncementText'](_0x33b8a6,'LEAVE'));break;}}for(const _0x126c0d of _0xa9a627){const {group:_0x3f6730,type:_0x455e31}=this['_splitMarkerName'](_0x126c0d['name']);if('suggestion'===_0x3f6730){_0x14cf46['announce'](this['_getMarkerAnnouncementText'](_0x455e31,'ENTER',_0x7be1ac(_0x58b088)));break;}}});}['_processAttributeChanges'](_0x41ab42){if(this['_recordAttributeSuggestions'])return!0x1;const _0x599c23=this['editor'],_0x1f07d5=_0x599c23['model']['document']['differ']['getChanges']();if(0x0==_0x1f07d5['length'])return!0x1;const _0x340649=[],_0x149ff4=_0x1f07d5['filter'](_0x532edf=>'attribute'==_0x532edf['type']),_0x337a69=_0x1f07d5['filter'](_0x3ccc99=>'insert'==_0x3ccc99['type']&&'$text'!=_0x3ccc99['name']),_0x3092d2=_0x1f07d5['filter'](_0x32a516=>'remove'==_0x32a516['type']&&'$text'!=_0x32a516['name']);for(const _0x41ff0c of _0x149ff4)_0x340649['push']({'key':_0x41ff0c['attributeKey'],'newValue':_0x41ff0c['attributeNewValue'],'oldValue':_0x41ff0c['attributeOldValue'],'range':Jt(_0x41ff0c['range'],_0x599c23['model'])});for(const _0x47dc1a of _0x337a69){const _0x411409=_0x3092d2['find'](_0x3dc323=>_0x3dc323['position']['isEqual'](_0x47dc1a['position']));_0x411409&&_0x340649['push']({'key':m,'newValue':_0x47dc1a['name'],'oldValue':_0x411409['name'],'range':_0x599c23['model']['createRangeOn'](_0x47dc1a['position']['nodeAfter'])});}return 0x0!=_0x340649['length']&&this['_reduceExistingSuggestions'](_0x41ab42,_0x340649);}['_processAttributeSuggestions'](_0x749276){let _0x2c8d55=!0x1;const _0x26c5a4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xaaec57=>_0xaaec57['data']['newRange']&&_0xaaec57['name']['startsWith']('suggestion:attribute:'));for(const _0x318539 of _0x26c5a4){const {subType:_0x51b0ff,id:_0x5f3cf8}=this['_splitMarkerName'](_0x318539['name']),_0x26a6d8=_0x51b0ff['split']('|')[0x0];for(const _0x524f30 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x524f30['id']!=_0x5f3cf8&&'attribute'==_0x524f30['type']&&_0x524f30['data']&&_0x524f30['data']['key']==_0x26a6d8&&_0x524f30['getFirstRange']()['isIntersecting'](_0x318539['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x524f30,_0x318539['data']['newRange'],_0x749276),_0x2c8d55=!0x0);}return _0x2c8d55;}['_recordAttributeChanges'](_0x2468cd){this['_recordAttributeSuggestions']=!0x0,_0x2468cd();}['_isRegisteredAttribute'](_0x175601){const _0x33bfd1=this['_isBlockAttribute'](_0x175601),_0x3c4dfc=this['_inlineAttributeKeys']['has'](_0x175601);return _0x33bfd1||_0x3c4dfc;}['_reduceExistingSuggestions'](_0x46b924,_0x187eeb){if(0x0==_0x187eeb['length'])return!0x1;let _0x3f2125=!0x1;for(const _0x472e3a of _0x187eeb){const _0x435586=this['_findSuggestions'](_0x472e3a['range'],'attribute')['filter'](_0x1cb482=>!_0x1cb482['meta']['isNextTo'])['map'](_0x3a5c87=>_0x3a5c87['suggestion']),_0x2feb38=_0x135b17({'newValue':_0x472e3a['newValue']});_0x435586['filter'](_0x33e0a3=>{const [_0x1b9dc4,_0x2fd4ab]=_0x33e0a3['subType']['split']('|');return _0x1b9dc4==_0x472e3a['key']&&_0x2fd4ab!=_0x2feb38;})['forEach'](_0x44df9f=>{this['_reduceSuggestionAttributeRange'](_0x44df9f,_0x472e3a['range'],_0x46b924),_0x3f2125=!0x0;});}return _0x3f2125;}['_reduceSuggestionAttributeRange'](_0x314422,_0x58b63e,_0x1f0185){const _0x421d38=_0x314422['getFirstRange']()['getDifference'](_0x58b63e);0x0!==_0x421d38['length']?0x1!==_0x421d38['length']?this['_breakSuggestionMarker'](_0x314422,_0x58b63e['start'],_0x58b63e['end']):this['_setSuggestionRange'](_0x314422,_0x421d38[0x0]):_0x1f0185['removeMarker'](_0x314422['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x265b7c){this['_editor']=_0x265b7c,this['_model']=_0x265b7c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1535d5,_0x1f168a,_0x2278d8,_0x56ca09,_0x6eab15,_0x1a613b){return new u(this['_model'],{'type':_0x1535d5,'subType':_0x1f168a,'id':_0x2278d8,'author':_0x56ca09,'creator':_0x56ca09,'attributes':_0x6eab15,'onAttributesChange':_0x1a613b,'onAccept':(..._0x5d8586)=>this['getSuggestionCallback'](_0x1535d5,_0x1f168a,'accept')(..._0x5d8586),'onDiscard':(..._0x36f22b)=>this['getSuggestionCallback'](_0x1535d5,_0x1f168a,'discard')(..._0x36f22b)});}['registerCustomCallback'](_0x3d831f,_0x484a77,_0x40c2d4,_0x1dbf43){const _0x5f3779=_0x3d831f+':'+_0x484a77+':'+_0x40c2d4;this['_customCallbacks']['set'](_0x5f3779,_0x1dbf43);}['getSuggestionCallback'](_0x6d553b,_0x2dd76d,_0x54502c){const _0x13bc90=_0x6d553b+':'+_0x2dd76d+':'+_0x54502c;return this['_customCallbacks']['get'](_0x13bc90)||this['_defaultCallbacks']['get'](_0x6d553b+':'+_0x54502c);}['_registerDefaultCallbacks'](){const _0x253234=()=>!0x1,_0x5cbb0a=_0x8d1c78=>{_0x8d1c78['sort']((_0x1234b1,_0x4b5704)=>_0x1234b1['start']['isBefore'](_0x4b5704['start'])?0x1:-0x1),this['_model']['change'](_0x3a0cd5=>{for(const _0x73c2b9 of _0x8d1c78){let _0x10bd55;_0x10bd55=_0x73c2b9['end']['isAtEnd']&&_0x73c2b9['end']['parent']==_0x73c2b9['start']['nodeAfter']?_0x3a0cd5['createSelection'](_0x73c2b9['start']['nodeAfter'],'on'):_0x3a0cd5['createSelection'](_0x73c2b9),this['_model']['deleteContent'](_0x10bd55,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x37677c=(_0x1b96f1,_0x5c511a)=>{_0x5c511a&&this['_model']['change'](_0x4de45b=>{const {commandName:_0x46c7ad,commandParams:_0x291c2c=[]}=_0x5c511a,_0x34127d=_0x1b96f1['map'](_0x3a3179=>(Pt(_0x3a3179)&&(_0x3a3179=this['_model']['createRange'](_0x3a3179['end'])),_0x3a3179))['filter'](_0x14131b=>'$graveyard'!==_0x14131b['root']['rootName']);if(_0x34127d['length']<0x1)return;const _0x279a3e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5a49fb=>_0x48c676['fromRange'](_0x5a49fb));_0x4de45b['setSelection'](_0x34127d);for(const _0x5997bb of this['_editor']['commands']['commands']())_0x5997bb['refresh']();_0x291c2c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x46c7ad,..._0x291c2c);const _0x37bb95=_0x279a3e['filter'](_0x3372f1=>'$graveyard'!=_0x3372f1['root']['rootName']);_0x37bb95['length']>0x0&&_0x4de45b['setSelection'](_0x37bb95);for(const _0x3f1ad2 of _0x279a3e)_0x3f1ad2['detach']();});},_0x10af85=(_0x3d0b52,_0x10eae3)=>0x1==_0x3d0b52['length']&&0x1==_0x10eae3['length']&&_0x3d0b52[0x0]['end']['isEqual'](_0x10eae3[0x0]['start']),_0x318cc4=(_0x554198,_0x1097db,_0x6aaeea,_0x540b98)=>qt(_0x554198,_0x1097db,_0x6aaeea,_0x540b98)?[_0x554198,_0x1097db]:qt(_0x1097db,_0x554198,_0x540b98,_0x6aaeea)?[_0x1097db,_0x554198]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x253234),this['_defaultCallbacks']['set']('insertion:discard',_0x5cbb0a),this['_defaultCallbacks']['set']('insertion:join',_0x10af85),this['_defaultCallbacks']['set']('insertion:chain',_0x318cc4),this['_defaultCallbacks']['set']('deletion:accept',_0x5cbb0a),this['_defaultCallbacks']['set']('deletion:discard',_0x253234),this['_defaultCallbacks']['set']('deletion:join',_0x10af85),this['_defaultCallbacks']['set']('deletion:chain',_0x318cc4),this['_defaultCallbacks']['set']('formatInline:accept',_0x37677c),this['_defaultCallbacks']['set']('formatInline:discard',_0x253234),this['_defaultCallbacks']['set']('formatInline:join',_0x10af85),this['_defaultCallbacks']['set']('formatInline:chain',_0x253234),this['_defaultCallbacks']['set']('formatBlock:accept',_0x37677c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x253234),this['_defaultCallbacks']['set']('formatBlock:join',_0x10af85),this['_defaultCallbacks']['set']('formatBlock:chain',_0x253234),this['_defaultCallbacks']['set']('attribute:accept',_0x253234),this['_defaultCallbacks']['set']('attribute:discard',(_0x18b2b3,_0x565e94)=>{if(!_0x565e94)return;const _0x5856bc=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4b22ff=>{if(_0x565e94['key']==m)for(const _0x41594a of _0x18b2b3){const _0x4a2805=_0x41594a['start']['nodeAfter'],_0x31f1d8=_0x565e94['oldValue'];_0x4b22ff['rename'](_0x4a2805,_0x31f1d8);}else{if(_0x5856bc['_isBlockAttribute'](_0x565e94['key'])){for(const _0x31759c of _0x18b2b3)void 0x0!==_0x565e94['oldValue']?_0x4b22ff['setAttribute'](_0x565e94['key'],_0x565e94['oldValue'],_0x31759c['start']['nodeAfter']):_0x4b22ff['removeAttribute'](_0x565e94['key'],_0x31759c['start']['nodeAfter']);}else{for(const _0x2e2975 of _0x18b2b3)_0x565e94['oldValue']?_0x4b22ff['setAttribute'](_0x565e94['key'],_0x565e94['oldValue'],_0x2e2975):_0x4b22ff['removeAttribute'](_0x565e94['key'],_0x2e2975);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x10af85);}}function Vt(_0x26fc97,_0x346fab,_0x578e6d){for(const _0x34faaa of _0x346fab['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x34faaa['root']==_0x34faaa)return!0x1;if(!_0x578e6d['containsItem'](_0x34faaa))return!0x1;if(_0x26fc97['isObject'](_0x34faaa)||_0x26fc97['isLimit'](_0x34faaa))return!0x0;}return!0x1;}function Pt(_0x80c288){return _0x80c288['end']['parent']==_0x80c288['start']['nodeAfter']&&_0x80c288['end']['isAtStart'];}function Gt(_0x3fef0d,_0x418cf0,_0x36abeb,_0x439bae){const _0x1eb0f5=_0x55405c=>!_0x55405c['item']['is']('$textProxy')&&!_0x439bae['isObject'](_0x55405c['item']),_0x4f5585=_0x3fef0d['start']['getLastMatchingPosition'](_0x1eb0f5),_0x2ab5ff=_0x3fef0d['end']['getLastMatchingPosition'](_0x1eb0f5,{'direction':'backward'});return(!_0x3fef0d['start']['isEqual'](_0x4f5585)||!_0x3fef0d['end']['isEqual'](_0x2ab5ff))&&(_0x4f5585['isBefore'](_0x2ab5ff)?_0x36abeb['updateMarker'](_0x418cf0,{'range':_0x36abeb['createRange'](_0x4f5585,_0x2ab5ff)}):_0x36abeb['removeMarker'](_0x418cf0),!0x0);}function Ft(_0x4459f4){return _0x135b17(_0x4459f4);}function Lt(_0x4945e2){const _0x311e57=_0x4945e2['start']['nodeAfter'];return _0x311e57&&_0x311e57['is']('element');}function Jt(_0x3414df,_0x165c04){return null==_0x3414df['end']['nodeBefore']&&_0x3414df['end']['parent']==_0x3414df['start']['nodeAfter']?Ht(_0x3414df['start']['nodeAfter'],_0x165c04):_0x3414df;}function Ht(_0x17ac7b,_0x5522d5){const _0xfe950d=_0x5522d5['schema']['isObject'](_0x17ac7b)||_0x5522d5['schema']['isSelectable'](_0x17ac7b);return _0x5522d5['createRange'](_0x5522d5['createPositionAt'](_0x17ac7b,'before'),_0xfe950d?_0x5522d5['createPositionAfter'](_0x17ac7b):_0x5522d5['createPositionAt'](_0x17ac7b,'end'));}function qt(_0x4ecfa8,_0x15d7ac,_0x1a097d,_0x38897d){return!!zt(_0x4ecfa8,_0x15d7ac)&&_0x1a097d['end']['isEqual'](_0x38897d['start']);}function zt(_0x1a4777,_0x531bcb){if(!_0x1a4777['_isDataLoaded']||!_0x531bcb['_isDataLoaded'])return!0x1;const _0x12d614=new Set(Object['keys'](_0x1a4777['attributes'])),_0x270728=new Set(Object['keys'](_0x531bcb['attributes']));if(_0x12d614['delete']('groupId'),_0x270728['delete']('groupId'),0x0==_0x12d614['size']&&0x0==_0x270728['size'])return!0x0;if(_0x12d614['size']!=_0x270728['size'])return!0x1;const _0x4240ee={..._0x1a4777['attributes']},_0x5b09d1={..._0x531bcb['attributes']};return delete _0x4240ee['groupId'],delete _0x5b09d1['groupId'],JSON['stringify'](_0x4240ee)==JSON['stringify'](_0x5b09d1);}function Kt(_0x441f43,_0x4480c4){const _0x462f03=Wt(_0x441f43['attributes']),_0x4df18d=Wt(_0x4480c4);if(!_0x441f43['_isDataLoaded'])return!0x1;for(const _0x1bd2b9 of Object['keys'](_0x4df18d))if(!_0x423d77(_0x462f03[_0x1bd2b9],_0x4df18d[_0x1bd2b9]))return!0x1;return!0x0;}function Wt(_0x42634e){const _0x5a6a3c=Object['assign']({},_0x42634e);return delete _0x5a6a3c['skipNestingCheck'],delete _0x5a6a3c['tablePasteChainId'],_0x5a6a3c;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x3074e5(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3a1cb7,_0x1c47d6,_0x406e93,_0x551e36){super(),this['model']=_0x1c47d6,this['view']=_0x406e93,this['commentThreadController']=_0x551e36,this['_editor']=_0x3a1cb7,this['_acceptCommand']=_0x3a1cb7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3a1cb7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x317589,_0x5d22ed)=>_0x317589||_0x5d22ed),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x31b73d=>_0x31b73d&&this['_editor']['model']['canEditAt'](_0x1c47d6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x661d3d=>_0x661d3d&&this['_editor']['model']['canEditAt'](_0x1c47d6['getRanges']())),this['_pendingAction']=null,_0x406e93['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x406e93,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x406e93,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x406e93,'change:isDirty',()=>{_0x406e93['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 _0x45f87b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x45f87b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x1a56fc{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1f020f,_0x333a8f,_0x154d69,_0x5c5391){super(_0x1f020f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x48ec99(_0x1f020f,o(_0x1f020f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x333a8f['authoredAt']),this['bind']('authoredAt')['to'](_0x333a8f),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',_0x333a8f,'authoredAt',this,'descriptionParts',(_0x3ae2b,_0x586b6b,_0x3c51eb)=>{const _0x3c721c=_0x3c51eb['map'](_0x11104c=>ns(_0x11104c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3ae2b-0x1,_0x333a8f['author']['name'],_0x586b6b?_0x5c5391['formatDateTime'](_0x586b6b):'',new DOMParser()['parseFromString'](_0x3c721c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4bf9f0(),this['focusTracker']=new _0x17f543(),this['keystrokes']=new _0x150e52(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x410f3f=>_0x410f3f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x333a8f,this['_localUser']=_0x154d69,this['_config']=_0x5c5391,_0x5c5391['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x58cefc(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x30eee1}=this['_config'];this['commentsListView']=new _0x30eee1(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',_0xf140dc=>_0xf140dc+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x16d6ce,_0x560206)=>_0x16d6ce||!!_0x560206);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1bd175}=this['_config'],_0x5d6517=new _0x1bd175(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x45ea93=_0x5d6517['commentInputView'];return _0x5d6517['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x45ea93,'value',(_0x35acde,_0x46d34d,_0x338b14)=>!!_0x338b14||_0x35acde&&!_0x46d34d),_0x45ea93['on']('submit',(_0x5179ee,_0xeea45a)=>{this['fire']('addComment',_0xeea45a),_0x45ea93['editor']['setData']('');}),_0x45ea93['on']('cancel',()=>this['focus']()),_0x45ea93['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5d6517;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x102a54,_0x342267,_0x355cfd,_0xbd90b2){super(_0x102a54,_0x342267,_0x355cfd,_0xbd90b2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x299a4c=>_0x299a4c&&_0x299a4c[0x0]?_0x299a4c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xe91af3,_0x3460b5)=>{let _0x469304='';for(const _0x40522c of _0xe91af3)_0x469304+='<p>'+ns(_0x40522c['content'],_0x40522c['color'])+'</p>';return _0x3460b5?_0x469304:_0x346348(_0x469304,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xbd90b2['SuggestionView'](_0x102a54,_0x342267,{'formatDateTime':_0xbd90b2['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 _0x269dd7=this['bindTemplate'],_0x3778f2=[this['suggestionView']];return this['commentsListView']&&_0x3778f2['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3778f2['push'](this['commentThreadInputView']),_0x3778f2['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x269dd7['if']('isActive','ck-suggestion-wrapper--active'),_0x269dd7['to']('type',_0x21c544=>'ck-suggestion-'+_0x21c544),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':_0x269dd7['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3778f2};}['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 _0x1a56fc{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x271446,_0x571002,_0x475d6a){super(_0x271446),this['_model']=_0x571002,this['_config']=_0x475d6a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x571002),this['acceptButton']=this['_createButton'](o(_0x271446,'Accept\x20suggestion'),_0x3898a0['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x271446,'Discard\x20suggestion'),_0x3898a0['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x552f6b(_0x271446,_0x571002['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4bf9f0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x17f543(),this['keystrokes']=new _0x150e52(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xb61d8d=>_0xb61d8d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4bd3ec=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4bd3ec['innerHTML']=this['description'],this['on']('change:description',(_0x204d86,_0x1d02d3,_0x895eb2)=>{_0x4bd3ec['innerHTML']=_0x895eb2;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x48429a=this['bindTemplate'],_0x423975=[{'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':_0x48429a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x48429a['to']('authoredAt',_0x3fcf0e=>this['_config']['formatDateTime'](_0x3fcf0e))}]}]},{'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']&&_0x423975['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':_0x423975}]};}['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'](_0x3ac8f8,_0x50a552,_0x18f215,_0x3c85d1,_0x1eccb6){const _0x22a228=new _0x3c14b4(this['locale']);return _0x22a228['set']({'label':_0x3ac8f8,'icon':_0x50a552,'tooltip':!0x0,'tooltipPosition':_0x1eccb6}),_0x22a228['extendTemplate']({'attributes':{'class':_0x18f215}}),_0x22a228['on']('execute',()=>{this['fire'](_0x3c85d1,this['_model']['id']);}),_0x22a228;}['_setupKeyboardNavigation'](){const _0x48aeb9=this['element'];this['keystrokes']['listenTo'](_0x48aeb9);for(const _0x20e2c0 of this['focusables'])this['focusTracker']['add'](_0x20e2c0['element']),this['keystrokes']['listenTo'](_0x20e2c0['element']);this['keystrokes']['set']('enter',(_0x4b3324,_0x1d691a)=>{_0x48aeb9===_0x4b3324['target']&&(this['focusCycler']['focusFirst'](),_0x1d691a());}),this['keystrokes']['set']('esc',(_0x244aff,_0x219123)=>{_0x48aeb9!==_0x244aff['target']&&(this['focus'](),_0x219123());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x27318c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x53f0ce,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5852f0){super(_0x5852f0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1e2017=this['editor']['config'];_0x1e2017['define']('trackChanges.SuggestionThreadView',pe),_0x1e2017['define']('trackChanges.SuggestionView',fe),_0x1e2017['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1e2017['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5cae76,_0x97dfb8){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5c4390,_0x2cd78e]of this['_handleControllerBuffer']){const _0xd9c527=this['_suggestionToController']['has'](_0x5c4390);_0xd9c527||_0x2cd78e?_0xd9c527&&_0x2cd78e&&this['_destroyController'](_0x5c4390):this['_initializeController'](_0x5c4390);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5cae76,_0x97dfb8);}['init'](){const _0xaaabd8=this['editor'],_0x4b06a5=_0xaaabd8['plugins']['get']('TrackChangesEditing'),_0x2fb9a4=_0xaaabd8['plugins']['get']('Annotations'),_0x141c0d=_0xaaabd8['plugins']['get']('EditorAnnotations'),_0x1a0a6c=_0xaaabd8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x141c0d['addSourceCollector'](()=>{const _0x635550=[];for(const [_0x3e6a97,_0x5a3c96]of Array['from'](this['_suggestionToController'])){const _0x3449f4=_0x3e6a97['getAllAdjacentSuggestions'](),_0x8c7ca7=[];for(const _0x11a64f of _0x3449f4){if(!_0x11a64f['isInContent'])continue;if(_0x11a64f['isMultiRange']){_0x8c7ca7['push'](..._0x11a64f['getRanges']());continue;}const _0x595ac9=_0x11a64f['getFirstRange']();if(_0x8c7ca7['length']>0x0){const _0x3636dd=_0x8c7ca7[0x0]['getJoined'](_0x595ac9);if(_0x3636dd){_0x8c7ca7[0x0]=_0x3636dd;continue;}}_0x8c7ca7['push'](_0x595ac9);}_0x635550['push']([_0x5a3c96['view'],_0x8c7ca7]);}return _0x635550;}),this['listenTo'](_0x4b06a5,'suggestionLoaded',(_0x302e0e,_0x1fcaf6)=>{this['listenTo'](_0x1fcaf6,'change:previous',(_0x18f365,_0x2f2625,_0x54293c,_0x3db246)=>{_0x1fcaf6['isInContent']&&(null==_0x54293c?(this['_updateController'](_0x3db246['head']),this['_handleSuggestionControllerDelayed'](_0x1fcaf6,!0x1)):(this['_updateController'](_0x54293c['head']),null==_0x3db246&&this['_handleSuggestionControllerDelayed'](_0x1fcaf6,!0x0)));}),null!==_0x1fcaf6['previous']?this['_updateController'](_0x1fcaf6['head']):this['_handleSuggestionControllerDelayed'](_0x1fcaf6,!0x1);}),this['listenTo'](_0x4b06a5,'suggestionUnloaded',(_0x1ba045,_0x2a8ca0,_0x53bc27)=>{this['stopListening'](_0x2a8ca0,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2a8ca0),this['_suggestionToController']['has'](_0x2a8ca0)&&this['_destroyController'](_0x2a8ca0),_0x53bc27&&this['_updateController'](_0x53bc27['head']);}),this['listenTo'](_0x4b06a5,'suggestionChanged',(_0xf7ae7a,_0xf67f08)=>{this['_updateController'](_0xf67f08);}),this['listenTo'](_0x2fb9a4,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1a0a6c,'addComment',(_0x16e70a,{threadId:_0x40dc3f,isFromAdapter:_0x29e2b9})=>{if(_0x29e2b9||!_0x4b06a5['hasSuggestion'](_0x40dc3f))return;const _0x431d43=_0x4b06a5['getSuggestion'](_0x40dc3f);this['_suggestionToController']['get'](_0x431d43)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a1deb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b5f43;for(const _0x457b09 in _0x3a1deb){const _0x48ebb2=_0x457b09,_0x38b769=_0x3a1deb[_0x48ebb2];if('trackChangesLicenseKeyValid'==_0x38b769||'trackChangesLicenseKeyInvalid'==_0x38b769||'trackChangesLicenseKeyExpired'==_0x38b769||'trackChangesLicenseKeyDomainLimit'==_0x38b769||'trackChangesLicenseKeyNotAllowed'==_0x38b769||'trackChangesLicenseKeyEvaluationLimit'==_0x38b769||'trackChangesLicenseKeyTrialLimit'==_0x38b769||'trackChangesLicenseKeyUsageLimit'==_0x38b769){delete _0x3a1deb[_0x48ebb2],_0x4b5f43=_0x38b769,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4b5f43&&_0x3a1deb['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4b5f43&&_0x3a1deb['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4b5f43&&_0x3a1deb['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4b5f43&&_0x3a1deb['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4b5f43&&_0x3a1deb['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4b5f43&&_0x3a1deb['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4b5f43&&_0x3a1deb['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3c61e8=this['editor']['plugins']['get']('Annotations'),_0x347ee6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x334609=Array['from'](_0x3c61e8['activeAnnotations'],_0x12eb58=>_0x12eb58['innerView'])['filter'](_0x14d1d1=>this['_viewToController']['has'](_0x14d1d1)),_0x5bfddb=[];for(const _0x8a5802 of _0x334609){const _0x381513=this['_viewToController']['get'](_0x8a5802)['model']['getAllAdjacentSuggestions']();_0x5bfddb['push'](..._0x381513['reduce']((_0x588b61,_0x46c722)=>[..._0x588b61,..._0x46c722['getMarkerNames']()],[]));}_0x347ee6['activeMarkers']=_0x5bfddb;}['_addUIComponentsToFactory'](){const _0x5f14f9=this['editor'],_0x4acddd=_0x5f14f9['locale'],_0x1ddc49=o(_0x4acddd,'Track\x20changes'),_0x31ac8c=new _0x5516f8([{'type':'switchbutton','model':new _0x4b7472({'withText':!0x0,'isToggleable':!0x0,'label':_0x1ddc49,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4b7472({'withText':!0x0,'label':o(_0x4acddd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4b7472({'withText':!0x0,'label':o(_0x4acddd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4b7472({'withText':!0x0,'label':o(_0x4acddd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4b7472({'withText':!0x0,'label':o(_0x4acddd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5f14f9['plugins']['has']('TrackChangesPreview')&&_0x31ac8c['addMany']([{'type':'separator'},{'type':'button','model':new _0x4b7472({'withText':!0x0,'label':o(_0x4acddd,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3879df of _0x31ac8c)if(ke(_0x3879df)){const _0x548e6c=_0x5f14f9['commands']['get'](_0x3879df['model']['commandName']);_0x3879df['model']['bind']('isOn','isEnabled')['to'](_0x548e6c,'value','isEnabled');}_0x5f14f9['ui']['componentFactory']['add']('trackChanges',_0x903ebf=>this['_createToolbarButton'](_0x903ebf,_0x31ac8c,_0x1ddc49)),_0x5f14f9['ui']['componentFactory']['add']('menuBar:trackChanges',_0xd96941=>this['_createMenuBarMenu'](_0xd96941,_0x31ac8c,_0x1ddc49));}['_createToolbarButton'](_0x5ce74d,_0x1837be,_0x178954){const _0xd7b1d3=_0x534303(_0x5ce74d,_0x2f10a0),_0x478c1d=this['editor']['commands']['get']('trackChanges');_0xd7b1d3['buttonView']['set']({'tooltip':_0x178954,'label':_0x178954,'icon':we}),_0xd7b1d3['buttonView']['bind']('isOn')['to'](_0x478c1d,'value'),_0xd7b1d3['buttonView']['on']('execute',()=>{_0x478c1d['execute'](),this['editor']['editing']['view']['focus']();}),_0x502fd2(_0xd7b1d3,_0x1837be,{'role':'menu'});const _0x59c613=[];for(const _0x510ab0 of _0x1837be)ke(_0x510ab0)&&_0x59c613['push'](this['editor']['commands']['get'](_0x510ab0['model']['commandName']));const _0x3bf8bf=_0xd7b1d3['buttonView'];return _0x3bf8bf['actionView']['unbind']('isEnabled'),_0x3bf8bf['arrowView']['unbind']('isEnabled'),_0x3bf8bf['actionView']['bind']('isEnabled')['to'](_0x478c1d,'isEnabled'),_0x3bf8bf['arrowView']['bind']('isEnabled')['toMany'](_0x59c613,'isEnabled',(..._0x44464c)=>_0x44464c['some'](_0x5982cc=>_0x5982cc)),_0xd7b1d3['on']('execute',_0x1451ec=>{this['editor']['execute'](_0x1451ec['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xd7b1d3;}['_createMenuBarMenu'](_0x39aaf7,_0x54dea9,_0x5ae934){const _0x598d33=new _0x4b3efa(_0x39aaf7),_0xfc3bff=this['editor']['commands']['get']('trackChanges');_0x598d33['buttonView']['set']({'label':_0x5ae934,'icon':we});const _0x575e68=new _0x52d3e0(_0x39aaf7);for(const _0x524780 of _0x54dea9){if('separator'==_0x524780['type']){_0x575e68['items']['add'](new _0x29511a(_0x39aaf7));continue;}const _0x3f402e=new _0x1cccb2(_0x39aaf7,_0x598d33),_0x5cf140=new _0xce56e7(_0x39aaf7),_0x505d21=_0x524780['model'];_0x5cf140['bind'](...Object['keys'](_0x505d21))['to'](_0x505d21),_0x5cf140['delegate']('execute')['to'](_0x598d33),_0x5cf140['on']('execute',()=>{this['editor']['execute'](_0x505d21['commandName']),this['editor']['editing']['view']['focus']();}),_0x3f402e['children']['add'](_0x5cf140),_0x575e68['items']['add'](_0x3f402e);}return _0x598d33['bind']('isEnabled')['to'](_0xfc3bff,'isEnabled'),_0x598d33['panelView']['children']['add'](_0x575e68),_0x598d33;}['_initializeController'](_0x33bd1f){const _0x22f06b=this['editor'],_0x5b80bc=_0x22f06b['config'],_0xf85a21=_0x22f06b['plugins']['get']('Annotations'),_0x3ba211=_0x22f06b['plugins']['get']('CommentsRepository'),_0x4c9467=_0x22f06b['plugins']['get']('EditorAnnotations'),_0x100898=_0x22f06b['plugins']['get'](_0x53f0ce)['me'],_0x372285=_0x5b80bc['get']('trackChanges')['SuggestionThreadView'],_0x4b8649=_0x5b80bc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x39e4e3,CommentThreadInputView:_0x28f90b}=_0x22f06b['plugins']['get']('CommentsUI');let _0x459b5e,_0x2afb51,_0x325ceb;this['_annotationViews']['has'](_0x33bd1f['id'])?(_0x2afb51=this['_annotationViews']['get'](_0x33bd1f['id']),_0x459b5e=_0x2afb51['mainView']):(_0x459b5e=new _0x372285(_0x22f06b['locale'],_0x33bd1f,_0x100898,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5b80bc['get']('comments.editorConfig'),'licenseKey':_0x5b80bc['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5b80bc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5b80bc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5b80bc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x482ee1(_0x5b80bc['get']('locale')),'CommentView':_0x5b80bc['get']('comments')['CommentView'],'CommentsListView':_0x39e4e3,'CommentThreadInputView':_0x28f90b,'SuggestionView':_0x4b8649}),_0x459b5e['suggestionView']['acceptButton']['on']('execute',()=>{_0x22f06b['editing']['view']['focus']();}),_0x459b5e['suggestionView']['discardButton']['on']('execute',()=>{_0x22f06b['editing']['view']['focus']();}),_0x2afb51=_0xf85a21['createAnnotationView'](this['editor']['locale'],_0x459b5e),_0x2afb51['bind']('isDirty')['to'](_0x459b5e,'isDirty'),_0x2afb51['bind']('length')['to'](_0x459b5e),_0x2afb51['bind']('type')['to'](_0x459b5e,'type',_0x4801bb=>'suggestion-'+_0x4801bb),_0x459b5e['on']('escape',()=>{_0x325ceb['fire']('escape');}),this['_annotationViews']['set'](_0x33bd1f['id'],_0x2afb51));const _0x2e9960=_0x3ba211['createCommentThreadController'](_0x33bd1f['commentThread'],_0x459b5e),_0x58b0ea=new Ce(_0x22f06b,_0x33bd1f,_0x459b5e,_0x2e9960),_0x4368c6=_0x33bd1f['getAllAdjacentSuggestions']()['filter'](_0xddeb04=>_0xddeb04['isInContent']);_0x459b5e['descriptionParts']=_0x22f06b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4368c6),this['_suggestionToController']['set'](_0x33bd1f,_0x58b0ea),this['_viewToController']['set'](_0x459b5e,_0x58b0ea),_0x325ceb=_0xf85a21['createAnnotation']({'view':_0x2afb51,'target':()=>{const _0x2c5c11=[],_0x2197bd=_0x33bd1f['getAllAdjacentSuggestions']()['filter'](_0x163fff=>_0x163fff['isInContent']);for(const _0x343329 of _0x2197bd)_0x2c5c11['push'](..._0x343329['getMarkers']());return _0x5bcf31(_0x22f06b['editing'],_0x2c5c11);},'type':()=>'suggestion-'+_0x58b0ea['view']['type']}),_0x3ba211['_bindAnnotationToEditors'](_0x459b5e,_0x325ceb),_0xf85a21['add'](_0x325ceb),_0x4c9467['registerAnnotation'](_0x325ceb);}['_destroyController'](_0x1f9373){const _0x5a64de=this['editor']['plugins']['get']('CommentsRepository'),_0x539b7f=this['editor']['plugins']['get']('Annotations'),_0x526e1f=this['_suggestionToController']['get'](_0x1f9373),_0x19e724=_0x526e1f['view'],_0x38d152=_0x539b7f['getByInnerView'](_0x19e724);_0x5a64de['_unbindEditors'](_0x19e724),_0x38d152&&_0x539b7f['remove'](_0x38d152),this['_suggestionToController']['delete'](_0x1f9373),this['_viewToController']['delete'](_0x19e724),_0x526e1f['destroy']();}['_updateController'](_0x423179){if(!_0x423179['isInContent']||!this['_suggestionToController']['has'](_0x423179))return;const _0x369e8f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a76de=this['_suggestionToController']['get'](_0x423179),_0x46427c=_0x423179['getAllAdjacentSuggestions']();_0x2a76de['view']['descriptionParts']=_0x369e8f['descriptionFactory']['getDescriptions'](_0x46427c);}['destroy'](){for(const _0x3ebfa2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3ebfa2);for(const _0x40c273 of this['_annotationViews']['values']())_0x40c273['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3ba422){return'model'in _0x3ba422;}class k extends _0x27318c{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xdfd537){this['editor']['plugins']['get'](p)['adapter']=_0xdfd537;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x31127d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x31127d);}['getSuggestions']({skipNotAttached:_0x57e30b=!0x1,toJSON:_0x5e3d1c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x57e30b,'toJSON':_0x5e3d1c});}['getSuggestion'](_0x3f6c19){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3f6c19);}}const w=['Pagination'];class T extends _0x27318c{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4d7422=this['editor'];if(_0x4d7422['config']['define']('trackChangesData.editorCreator',_0x5a59b9=>{const _0x7ba9cc=_0x4d7422['model']['document']['getRootNames']()['reduce']((_0x7f093d,_0x2d4856)=>(_0x7f093d[_0x2d4856]='',_0x7f093d),{});return _0x4d7422['constructor']['create'](_0x7ba9cc,_0x5a59b9);}),'function'!=typeof _0x4d7422['config']['get']('trackChangesData')['editorCreator'])throw new _0x59c745('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3a0450){return N(this['editor'],!0x0,_0x3a0450);}['getDataWithDiscardedSuggestions'](_0x186ed3){return N(this['editor'],!0x1,_0x186ed3);}}class D extends _0x27318c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa4c202){function _0x2764cf(_0x7f9f15){return _0x7f9f15['map'](_0x9934c7=>String['fromCharCode'](_0x9934c7))['join']('');}super(_0xa4c202),this['result']='end',_0xa4c202[_0x2764cf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2764cf([0x76,0x69,0x65,0x77])][_0x2764cf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2764cf([0x61,0x75,0x74,0x6f]),_0xa4c202[_0x2764cf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2764cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2764cf([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2764cf([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2764cf([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(_0x595fab){return void 0x0!==_0x595fab['getRootsAttributes'];}async function N(_0x5b06c6,_0x4325c0,_0x49971c){const _0x38d516=_0x419258(_0x5b06c6,w);_0x38d516['plugins']['push'](p,D),_0x38d516['rootsAttributes']=Fe(_0x5b06c6)?_0x5b06c6['getRootsAttributes']():void 0x0;const _0x1445c6=document['createDocumentFragment'](),_0x2232a5=_0x5b06c6['config']['get']('trackChangesData')['editorCreator'],_0x53429b=await _0x2232a5(_0x38d516,()=>function(_0x159560){const _0x5cd7f9=document['createElement']('div');return _0x159560['appendChild'](_0x5cd7f9),_0x5cd7f9;}(_0x1445c6));!function(_0x46920f,_0x302eb1){const _0x2cb714=_0x46920f['model']['document']['getRootNames']()['reduce']((_0xcc8b69,_0x224da8)=>(_0xcc8b69[_0x224da8]=_0x46920f['data']['get']({'rootName':_0x224da8}),_0xcc8b69),{}),_0x248806=_0x46920f['plugins']['get']('Users')['users']['map'](_0x9d82c2=>({'id':_0x9d82c2['id'],'name':_0x9d82c2['name']})),_0x48e1b8=_0x46920f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x41a6e9=_0x46920f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19cab1=_0x302eb1['plugins']['get']('Users'),_0x4ebfde=_0x302eb1['plugins']['get']('TrackChangesEditing'),_0x2493b1=_0x302eb1['plugins']['get']('CommentsRepository');for(const _0x1a4f73 of _0x2493b1['getCommentThreads']())_0x1a4f73['remove']();for(const _0x184583 of _0x248806)_0x19cab1['getUser'](_0x184583['id'])||_0x19cab1['addUser'](_0x184583);_0x19cab1['me']||_0x19cab1['useAnonymousUser']();for(const _0x2bbf4d of _0x41a6e9)_0x2493b1['addCommentThread'](_0x2bbf4d);for(const _0x5ef04b of _0x48e1b8)_0x4ebfde['addSuggestionData'](_0x5ef04b);_0x302eb1['data']['set'](_0x2cb714);}(_0x5b06c6,_0x53429b),_0x53429b['execute'](_0x4325c0?'acceptAllSuggestions':'discardAllSuggestions');const _0x3762a6=Fe(_0x53429b)?_0x53429b['getFullData'](_0x49971c):_0x53429b['data']['get'](_0x49971c);return await _0x53429b['destroy'](),_0x3762a6;}class Me extends _0x1a56fc{['options'];constructor(_0x309e9e,_0x28166c){super(_0x309e9e),this['options']=_0x28166c,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'](_0x492415,_0x12ad5d){if(!this['element'])return;const _0x1ce89c=[];for(const [_0x32e00f,_0x3f4fd4]of _0x492415){const _0x39d06e=document['createElement']('div');_0x39d06e['setAttribute']('data-ck-root-name',_0x32e00f),_0x39d06e['className']=_0x3f4fd4['classes']+'\x20ck-track-changes-preview__root-container',_0x39d06e['innerHTML']=_0x3f4fd4['content'],_0x1ce89c['push'](_0x39d06e);}_0x12ad5d(this['element'],_0x1ce89c),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x373a51){super(_0x373a51),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1c769b=this['editor'],_0x5d1996=_0x1c769b['locale'],_0x1ee608=_0x1c769b['plugins']['get']('Dialog');let _0x121de3;const _0x174794=function(_0x289dc1){const _0x3abcf0={};if('editables'in _0x289dc1['ui']['view']){for(const [_0x4ee433,_0x5e11ca]of Object['entries'](_0x289dc1['ui']['view']['editables']))_0x3abcf0[_0x4ee433]=_0x5e11ca['element'];}else _0x3abcf0[_0x289dc1['model']['document']['getRootNames']()[0x0]]=_0x289dc1['ui']['view']['editable']['element'];return _0x3abcf0;}(_0x1c769b),_0x204971=function(_0x42c844){let _0x584171=0x0;for(const _0x26f860 of Object['values'](_0x42c844))_0x584171=Math['max'](_0x584171,_0x26f860['getBoundingClientRect']()['width']);let _0x1b9517=0x0;for(const _0x1ae3ca of Object['values'](_0x42c844))_0x1b9517+=_0x1ae3ca['getBoundingClientRect']()['height'];const _0x2371c7=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4c4c84=Math['min'](_0x1b9517,_0x2371c7);return{'width':_0x584171,'height':_0x4c4c84};}(_0x174794);_0x1ee608['show']({'id':'finalContentPreview','title':o(_0x5d1996,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5d1996,{'dialogRects':_0x204971}),'onHide':()=>{_0x121de3['detachFromDom']();},'onShow':()=>{_0x1c769b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x21b85e=>{const _0xcdbbe2=this['_standarizeRootsData'](_0x21b85e,_0x1c769b,_0x174794);_0x1ee608['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xcdbbe2,_0x1c769b['config']['get']('trackChanges.preview.renderFunction'));}),_0x121de3=new _0x4fc2a7(_0x5d1996,[_0x1ee608['view']]),_0x121de3['attachToDom'](),_0x121de3['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1c769b['once']('destroy',()=>{_0x121de3['detachFromDom']();});const _0x2accba=_0x1ee608['view']['headerView']['class'];_0x1ee608['view']['headerView']['class']=_0x2accba?_0x2accba+'\x20ck-reset_all':'ck-reset_all',_0x1ee608['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1ee608['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2161c0=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4b79e7=_0x2161c0['previewMode'],_0x26b39d={};if('$labels'===_0x4b79e7){for(const _0x100c4a of _0x2161c0['getMergeFieldsIds']())_0x26b39d[_0x100c4a]=_0x2161c0['getLabel'](_0x100c4a)||_0x100c4a;}else{const _0xb8aed2='$defaultValues'===_0x4b79e7?_0x2161c0['getDefaultValues']():_0x2161c0['getDataSetValues'](_0x4b79e7,!0x0);for(const _0x508ea8 of Object['entries'](_0xb8aed2)){const [_0x5095b4,_0x89d1a7]=_0x508ea8;_0x26b39d[_0x5095b4]=null!==_0x89d1a7?_0x89d1a7:_0x2161c0['getLabel'](_0x5095b4)||_0x5095b4;}}return{'mergeFieldsData':_0x26b39d};}['_standarizeRootsData'](_0x39663c,_0x405d42,_0x2ac187){let _0x4869ea;if('string'==typeof _0x39663c){const _0x3829af=_0x405d42['model']['document']['getRootNames']()[0x0];_0x4869ea={[_0x3829af]:_0x39663c};}else _0x4869ea=_0x39663c;const _0x5a670f=this['_fixMediaEmbeds'](_0x4869ea,_0x405d42),_0x32c690=function(_0x150b88,_0x38e6b6){for(const [_0x325dbd,_0x3c7f48]of _0x150b88)_0x3c7f48['classes']=_0x38e6b6[_0x325dbd]['classList']['value']['replace']('ck-focused','');return _0x150b88;}(this['_sortRoots'](_0x405d42)['reduce']((_0x2a6001,_0x5b1a33)=>(_0x2a6001['push']([_0x5b1a33,{'content':_0x5a670f[_0x5b1a33],'classes':''}]),_0x2a6001),[]),_0x2ac187);return _0x32c690;}['_fixMediaEmbeds'](_0x11d0a7,_0x449b7c){if(!_0x449b7c['plugins']['has']('MediaEmbedEditing'))return _0x11d0a7;const _0x291e3e=_0x449b7c['plugins']['get']('MediaEmbedEditing');for(const [_0x454a11,_0x20d0ee]of Object['entries'](_0x11d0a7)){const _0x1c87e8=document['createElement']('div');_0x1c87e8['innerHTML']=_0x20d0ee,(_0x1c87e8['querySelectorAll']('figure.media')['forEach'](_0x18c3f7=>{const _0x45e7b3=_0x18c3f7['querySelector']('oembed');if(_0x45e7b3){const _0x57fea0=_0x45e7b3['getAttribute']('url');if(_0x57fea0){const _0x57d11a=_0x291e3e['registry']['getMediaViewElement'](new _0x32eaa7(_0x449b7c['editing']['view']['document']),_0x57fea0,{'elementName':'','renderForEditingView':!0x0}),_0x59af45=document['createElement']('div');_0x59af45['classList']['add']('ck-media__wrapper'),_0x57d11a['render'](_0x59af45,_0x449b7c['editing']['view']['domConverter']),_0x45e7b3['replaceWith'](_0x59af45);}}}),_0x11d0a7[_0x454a11]=_0x1c87e8['innerHTML']);}return _0x11d0a7;}['_sortRoots'](_0x4fe7d9){if(!function(_0x48914f){return void 0x0!==_0x48914f['getRootsAttributes'];}(_0x4fe7d9))return _0x4fe7d9['model']['document']['getRootNames']();const _0x3f7c2f=[],_0x49273e=new Map();for(const _0x93a6d1 of _0x4fe7d9['model']['document']['getRootNames']()){const _0xe1daae=_0x4fe7d9['editing']['view']['getDomRoot'](_0x93a6d1)['getClientRects']()['item'](0x0);_0x3f7c2f['push'](_0x93a6d1),_0x49273e['set'](_0x93a6d1,_0xe1daae);}return _0x3f7c2f['sort']((_0x5e1a4a,_0x44098f)=>{const _0x1074cd=_0x49273e['get'](_0x5e1a4a),_0x527ff6=_0x49273e['get'](_0x44098f);return _0x1074cd['y']-_0x527ff6['y']||_0x1074cd['x']-_0x527ff6['x'];}),_0x3f7c2f;}}class te extends _0x27318c{static get['requires'](){return[T,_0x24d115];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4fecea){super(_0x4fecea),_0x4fecea['commands']['add']('previewFinalContent',new re(this['editor'])),_0x4fecea['config']['define']('trackChanges.preview.renderFunction',(_0x229045,_0x31a762)=>{for(const _0x478dad of _0x31a762)_0x229045['appendChild'](_0x478dad);});}}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 _0x4d8634,PendingActions as _0x50147a,icons as _0x5107ee}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xaaad3e,ObservableMixin as _0x2c62d3,uid as _0x19a734,priorities as _0x1aa228,insertToPriorityArray as _0xfad745,logWarning as _0x544cea,getEnvKeystrokeText as _0x4b3215,FocusTracker as _0x1efc10,KeystrokeHandler as _0x3bb5a3,Collection as _0x258409}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4ff1b0,View as _0x342ad9,ViewCollection as _0x26ce4d,FocusCycler as ts,ViewModel as _0x54f8d5,createDropdown as _0x253456,SplitButtonView as _0x28eda1,addListToDropdown as _0x22cdb4,MenuBarMenuView as _0x3a8381,MenuBarMenuListView as _0x37e4ba,ListSeparatorView as _0x555ab4,MenuBarMenuListItemView as _0x5e2fab,MenuBarMenuListItemButtonView as _0x2bfafa,BodyCollection as _0x1ad2a9,Dialog as _0x1f9b70}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x44fc3a,hashObject as _0x2b4ef5,surroundingMarkersDetector as _0x47ea58,FOCUS_ANNOTATION_KEYSTROKE as _0x21edab,AriaDescriptionView as _0xc64c79,setupThreadKeyboardNavigation as _0x31b9b4,trimHtml as _0x8f8cfc,UserView as _0x4ddbf8,LateFocusButtonView as _0x474f03,getDateTimeFormatter as _0x59f962,getAllMarkersDomElementsSorted as _0x577024,sanitizeEditorConfig as _0x279eb0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5783db,LiveRange as _0x1d302a,LivePosition as _0x4e9b49,DowncastWriter as _0x760d71}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x362bb4,toWidget as _0x46ce16}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xaf7de8,set as _0x3b7130,isEqual as _0x41cd13,unset as _0x16b012,omit as Et}from'lodash-es';import{Delete as _0x12abd1,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5ecebc,ShiftEnter as _0x50dd18}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x386c56,_0x3e5fb2){super(_0x386c56),this['_enabledCommands']=_0x3e5fb2,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 _0x251309 of this['editor']['commands']['commands']())_0x251309['affectsData']&&!this['_enabledCommands']['has'](_0x251309)&&_0x251309['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x345db9 of this['editor']['commands']['commands']())_0x345db9['affectsData']&&!this['_enabledCommands']['has'](_0x345db9)&&_0x345db9['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x4acab,_0x50dc2f){super(_0x4acab),this['_suggestions']=_0x50dc2f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x810201){const _0x2dcf09=this['_suggestions']['get'](_0x810201);if(!_0x2dcf09)throw new _0xaaad3e('track-changes-accept-suggestion-not-found',this);const _0xce6212=_0x2dcf09['getRanges']();this['editor']['model']['canEditAt'](_0xce6212)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2dcf09);}}class R extends Qt{['_suggestions'];constructor(_0x2506c6,_0x1ec7a5){super(_0x2506c6),this['_suggestions']=_0x1ec7a5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x48bcc5){const _0x47302b=this['_suggestions']['get'](_0x48bcc5);if(!_0x47302b)throw new _0xaaad3e('track-changes-discard-suggestion-not-found',this);const _0x63a30b=_0x47302b['getRanges']();this['editor']['model']['canEditAt'](_0x63a30b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x47302b);}}function ns(_0x4637d9,_0x508421){let _0xfe3ff4='';return _0xfe3ff4+=_0x4637d9['split']('*')['map']((_0xdc56b3,_0x5b3fb5)=>_0x5b3fb5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xdc56b3)+'</span>':nn(_0xdc56b3))['join'](''),_0x508421&&(_0xfe3ff4+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x508421['value']+'\x22\x20title=\x22'+_0x508421['title']+'\x22></span>'),_0xfe3ff4;}function nn(_0x25122b){const _0x411b06=document['createElement']('span');return _0x411b06['innerText']=_0x25122b,_0x411b06['innerHTML'];}function Xt(_0xe8632a){return _0xe8632a['sort']((_0x347b41,_0x40636b)=>'deletion'==_0x347b41['type']&&'deletion'!=_0x40636b['type']?-0x1:'deletion'!=_0x347b41['type']&&'deletion'==_0x40636b['type']?0x1:0x0);}function to(_0xd9f50e,_0x41fe72){let _0x54fd44,_0x56a7e0=0x0;const _0x1194e4=[],_0x2f2818=_0x41fe72['schema'];for(;_0x56a7e0<_0xd9f50e['length'];){const _0x56c468=_0xd9f50e[_0x56a7e0],_0x4105d5=_0xd9f50e[_0x56a7e0+0x1];_0x54fd44||(_0x54fd44=_0x41fe72['createPositionBefore'](_0x56c468)),on(_0x41fe72,_0x56c468,_0x4105d5)||(_0x1194e4['push'](_0x41fe72['createRange'](_0x54fd44,_0x2f2818['isObject'](_0x56c468)?_0x41fe72['createPositionAfter'](_0x56c468):_0x41fe72['createPositionAt'](_0x56c468,'end'))),_0x54fd44=null),_0x56a7e0++;}return _0x1194e4;}function on(_0x29536b,_0x13fc2c,_0x3bdc0e){if(!_0x3bdc0e)return!0x1;const _0x26d78a=_0x29536b['createPositionAfter'](_0x13fc2c),_0x5a66e8=_0x29536b['createPositionBefore'](_0x3bdc0e);return _0x26d78a['isTouching'](_0x5a66e8);}function Yt(_0x32cd8e,_0x21212a,_0x325410){for(;_0x325410['length'];){const _0x476ccd=_0x325410['splice'](0x0,0x64);_0x32cd8e['change'](()=>{for(const _0x5c1db6 of _0x476ccd)_0x5c1db6['isInContent']&&_0x21212a['execute'](_0x5c1db6['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x46b2b5,_0x593247,_0x1a131e){super(_0x46b2b5),this['_command']=_0x593247,this['_suggestions']=_0x1a131e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xa07417=Array['from'](this['_suggestions']['values']())['some'](_0x2366a1=>_0x2366a1['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xa07417;}['execute'](){const _0xd0c3d5=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x206087 of _0xd0c3d5){const _0xfca9be=_0x206087['getRanges']();if(!this['editor']['model']['canEditAt'](_0xfca9be))return;}Yt(this['editor']['model'],this['_command'],_0xd0c3d5);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x8d8454,_0x3dcac7,_0x43b87d){super(_0x8d8454),this['_command']=_0x3dcac7,this['_suggestions']=_0x43b87d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x553510=this['editor']['model']['document']['selection'],_0x11bb3d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x107504,_0x535515){const _0xed4459=Array['from'](_0x107504['getRanges']()),_0x13c765=new Set();for(const _0x37afad of _0x535515)if(_0x37afad['isInContent']){for(const _0x52dfef of _0xed4459)for(const _0x445151 of _0x37afad['getRanges']())(_0x52dfef['isIntersecting'](_0x445151)||_0x107504['isCollapsed']&&!_0x37afad['isMultiRange']&&_0x37afad['next']&&_0x445151['end']['isTouching'](_0x52dfef['start']))&&_0x13c765['add'](_0x37afad);}return _0x13c765;}(_0x553510,_0x11bb3d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x16c647=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x40ce06 of _0x16c647){const _0x2f2b63=_0x40ce06['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2f2b63))return;}Yt(this['editor']['model'],this['_command'],_0x16c647);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x2c62d3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x554ae3,_0x645493){super(),this['id']=_0x645493['id'],this['type']=_0x645493['type'],this['subType']=_0x645493['subType']||null,this['author']=_0x645493['author'],this['creator']=_0x645493['creator']||_0x645493['author'],this['isExternal']=Boolean(_0x645493['attributes']&&_0x645493['attributes']['@external']),this['data']=null,this['_model']=_0x554ae3,this['_onAccept']=_0x645493['onAccept'],this['_onDiscard']=_0x645493['onDiscard'],this['_onAttributesChange']=_0x645493['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x645493['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 _0x3c50d8=this;for(;_0x3c50d8['previous'];)_0x3c50d8=_0x3c50d8['previous'];return _0x3c50d8;}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'](_0x3348eb){this['_markerNames']['add'](_0x3348eb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4ca41e=>this['_model']['markers']['get'](_0x4ca41e))['filter'](_0x5a8734=>_0x5a8734);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2f4139=>{for(const _0x334112 of this['getMarkers']())_0x2f4139['removeMarker'](_0x334112);}),this['_markerNames']['clear']();}['removeMarker'](_0xc00bea){this['_model']['change'](_0x4ee7d7=>{_0x4ee7d7['removeMarker'](_0xc00bea);}),this['_markerNames']['delete'](_0xc00bea);}['addRange'](_0x36ae59){const _0x25e652='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x25e652),this['_model']['change'](_0x52176c=>{_0x52176c['addMarker'](_0x25e652,{'range':_0x36ae59,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x84bc96){for(const _0x10ac9e of this['getRanges']())if(_0x10ac9e['isIntersecting'](_0x84bc96))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x8a87cc=>_0x8a87cc['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5b5539,_0x3d118e)=>[..._0x5b5539,..._0x3d118e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3a81b7=this['getRanges']();if(0x1!=_0x3a81b7['length'])return null;const _0x1619d4=_0x3a81b7[0x0],_0x57329=_0x1619d4['start']['nodeAfter'],_0x557feb=_0x1619d4['end']['nodeBefore'];return _0x57329 instanceof _0x5783db?_0x57329!=_0x557feb?null:_0x57329: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 _0x26dded=[];let _0x7acce0=this['head'];for(;_0x7acce0;)_0x26dded['push'](_0x7acce0),_0x7acce0=_0x7acce0['next'];return _0x26dded;}['setAttribute'](_0x3407e2,_0xaf8c7c){const _0x4a76f5=_0xaf7de8(this['attributes']);_0x3b7130(_0x4a76f5,_0x3407e2,_0xaf8c7c),_0x41cd13(_0x4a76f5,this['attributes'])||(this['attributes']=_0x4a76f5,this['_onAttributesChange'](_0x4a76f5));}['removeAttribute'](_0x3d00f9){const _0x474443=_0xaf7de8(this['attributes']);_0x16b012(_0x474443,_0x3d00f9),_0x41cd13(_0x474443,this['attributes'])||(this['attributes']=_0x474443,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 _0x19a734()['substr'](0x1,0x5);}}function o(_0x29a631,_0x66725b,_0x518167){const _0x49cc2d=_0x29a631['t'],t=_0x29a631['t'];switch(_0x66725b){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',_0x518167);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x518167);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x518167);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x518167);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x518167);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',_0x518167);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x518167);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x518167);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x518167);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x518167);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x518167);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x518167);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x518167);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x518167);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x518167);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x518167);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x518167);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x518167);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x518167);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x518167);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x518167);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x518167);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x518167);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x518167);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'},_0x518167);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x518167);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x518167);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x518167);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x518167);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x518167);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'},_0x518167);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x518167);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x518167);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x518167);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x518167);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'},_0x518167);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x518167);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'},_0x518167);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'},_0x518167);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x518167);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'},_0x518167);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x518167);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'},_0x518167);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x518167);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x518167);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'},_0x518167);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x518167);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 _0x49cc2d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x518167);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x49cc2d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x518167);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x518167);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'},_0x518167);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'},_0x518167);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'},_0x518167);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x66725b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x291a45,_0x3f80d3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x291a45,this['_locale']=_0x3f80d3;}['getDescriptions'](_0x2a3f58){const _0x3dffdc=[],_0x473650=new Set(),_0x283146=new Set();for(let _0x4ab7f1=0x0;_0x4ab7f1<_0x2a3f58['length'];_0x4ab7f1++){const _0x2ce39b=_0x2a3f58[_0x4ab7f1];if(!_0x2ce39b['isInContent'])continue;const _0xed9c44=this['_handleCustomCallbackDescription'](_0x2ce39b);if(_0xed9c44){if(null!=_0x2ce39b['subType']){if(_0x473650['has'](_0x2ce39b['subType']))continue;_0x473650['add'](_0x2ce39b['subType']);}_0x3dffdc['push'](_0xed9c44);}else{if('attribute'!=_0x2ce39b['type'])'insertion'!=_0x2ce39b['type']&&'deletion'!=_0x2ce39b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3dffdc,_0x2ce39b,_0x2a3f58[_0x4ab7f1+0x1]);else{const _0x1a0a77=_0x2ce39b['data']['key'];if(_0x283146['has'](_0x1a0a77))continue;_0x283146['add'](_0x2ce39b['data']['key']),_0x1a0a77==m?this['_handleRenameSuggestionDescription'](_0x3dffdc,_0x2ce39b):this['_handleAttributeSuggestionDescription'](_0x3dffdc,_0x2ce39b);}}}return this['_resolveDescriptionItems'](_0x3dffdc);}['registerDescriptionCallback'](_0x44714a){this['_customCallbacks']['push'](_0x44714a);}['registerElementLabel'](_0x55d1b5,_0x285e3c,_0x892234=_0x1aa228['normal']){'function'==typeof _0x55d1b5?_0xfad745(this['_itemLabelsCallbacks'],{'matchingCallback':_0x55d1b5,'label':_0x285e3c,'priority':_0x892234}):this['_itemLabels']['set'](_0x55d1b5,_0x285e3c);}['registerAttributeLabel'](_0x48ab79,_0x5b1b1c){this['_attributeLabels']['set'](_0x48ab79,_0x5b1b1c);}['getItemLabel'](_0x2ae525,_0x26fe5d=0x1){let _0x41b40e;for(const _0x17d243 of this['_itemLabelsCallbacks'])if(_0x17d243['matchingCallback'](_0x2ae525)){_0x41b40e=_0x17d243['label'];break;}return _0x41b40e||(_0x41b40e=this['_itemLabels']['get'](_0x2ae525['name'])),_0x41b40e?_0x41b40e(_0x26fe5d):0x1!==_0x26fe5d?_0x26fe5d+'\x20'+_0x2ae525['name']+'s':''+_0x2ae525['name'];}['_addDescriptionItems'](_0x15b54d,_0x497bff){const _0x2b272f=_0x497bff['getFirstRange']()['getWalker'](),_0x243f7f='insertion'==_0x497bff['type']?'add':'remove';for(const _0x4faa2d of _0x2b272f){const _0x199807=_0x4faa2d['item'],_0x48adfe=_0x15b54d[_0x15b54d['length']-0x1];if(_0x199807['is']('$textProxy'))_0x48adfe&&_0x48adfe['type']['indexOf']('Container')>-0x1&&_0x15b54d['pop'](),_0x48adfe&&'text'==_0x48adfe['type']?_0x48adfe[_0x243f7f]+=_0x199807['data']:_0x15b54d['push']({'type':'text','add':'add'==_0x243f7f?_0x199807['data']:'','remove':'remove'==_0x243f7f?_0x199807['data']:''});else{if(this['_schema']['isObject'](_0x199807)){const _0x3ed221=_0x199807;if(_0x48adfe&&_0x48adfe['type']['indexOf']('Container')>-0x1&&_0x15b54d['pop'](),'elementEnd'==_0x4faa2d['type'])continue;_0x48adfe&&_0x48adfe['type']==_0x243f7f+'Object'&&_0x48adfe['element']['name']==_0x3ed221['name']?_0x48adfe['quantity']++:_0x15b54d['push']({'type':_0x243f7f+'Object','element':_0x3ed221,'quantity':0x1}),_0x2b272f['skip'](_0x59729d=>!('elementEnd'==_0x59729d['type']&&_0x59729d['item']==_0x199807));}else{if(this['_schema']['checkChild'](_0x199807,'$text')||_0x199807['is']('element','softBreak')){const _0x567382=_0x199807;if('add'==_0x243f7f&&'elementStart'==_0x4faa2d['type']||'remove'==_0x243f7f&&'elementEnd'==_0x4faa2d['type'])continue;if(_0x48adfe&&-0x1==_0x48adfe['type']['indexOf']('Container')){'text'==_0x48adfe['type']&&(_0x48adfe[_0x243f7f]+='\x0a');continue;}let _0x3492a7;if(_0x3492a7='add'==_0x243f7f?_0x567382['nextSibling']&&!this['_schema']['isObject'](_0x567382['nextSibling'])?_0x567382['nextSibling']:null:_0x567382['previousSibling']&&!this['_schema']['isObject'](_0x567382['previousSibling'])?_0x567382['previousSibling']:null,_0x567382['isEmpty']||_0x3492a7&&_0x3492a7['isEmpty']){const _0x12acb8=_0x3492a7&&_0x3492a7['isEmpty']?_0x3492a7:_0x567382;_0x48adfe&&_0x48adfe['type']==_0x243f7f+'EmptyContainer'&&_0x48adfe['element']['name']==_0x12acb8['name']?_0x48adfe['quantity']++:_0x15b54d['push']({'type':_0x243f7f+'EmptyContainer','element':_0x12acb8,'quantity':0x1});}else _0x15b54d['push']({'type':_0x243f7f+'Container','element':_0x567382});}}}}}['_resolveDescriptionItems'](_0x1011d2){const _0x19dfda=this['_locale'],_0x4c2a28=[],_0x3a4243=[],_0x142bf1=[];for(const _0x90a013 of _0x1011d2)switch(_0x90a013['type']){case'text':if(_0x90a013['add']=_0x90a013['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x90a013['remove']=_0x90a013['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x90a013['add']&&''!=_0x90a013['remove']){_0x4c2a28['push']({'type':'replace','content':o(_0x19dfda,'REPLACE_TEXT',['\x22'+_0x90a013['remove']+'\x22','\x22'+_0x90a013['add']+'\x22'])});continue;}if(null!=_0x90a013['add']['match'](/^ +$/)){_0x4c2a28['push']({'type':'insertion','content':o(_0x19dfda,'*Insert:*\x20%0',o(_0x19dfda,'ELEMENT_SPACE',_0x90a013['add']['length']))});continue;}if(null!=_0x90a013['remove']['match'](/^ +$/)){_0x4c2a28['push']({'type':'deletion','content':o(_0x19dfda,'*Remove:*\x20%0',o(_0x19dfda,'ELEMENT_SPACE',_0x90a013['remove']['length']))});continue;}if(''!=_0x90a013['add']){_0x4c2a28['push']({'type':'insertion','content':o(_0x19dfda,'*Insert:*\x20%0','\x22'+_0x90a013['add']+'\x22')});continue;}_0x4c2a28['push']({'type':'deletion','content':o(_0x19dfda,'*Remove:*\x20%0','\x22'+_0x90a013['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4c2a28['push']({'type':'insertion','content':o(_0x19dfda,'*Insert:*\x20%0',this['getItemLabel'](_0x90a013['element'],_0x90a013['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4c2a28['push']({'type':'deletion','content':o(_0x19dfda,'*Remove:*\x20%0',this['getItemLabel'](_0x90a013['element'],_0x90a013['quantity']))});continue;case'addContainer':_0x4c2a28['push']({'type':'insertion','content':o(_0x19dfda,'*Split:*\x20%0',this['getItemLabel'](_0x90a013['element'],_0x90a013['quantity']))});continue;case'removeContainer':_0x4c2a28['push']({'type':'deletion','content':o(_0x19dfda,'*Merge:*\x20%0',this['getItemLabel'](_0x90a013['element'],_0x90a013['quantity']))});continue;case'addFormat':_0x3a4243['push'](_0x90a013['key']);continue;case'removeFormat':_0x142bf1['push'](_0x90a013['key']);continue;default:_0x4c2a28['push'](_0x90a013);}if(_0x3a4243['length']){const _0x4312fa=_0x3a4243['map'](_0x3f235d=>this['_attributeLabels']['has'](_0x3f235d)?this['_attributeLabels']['get'](_0x3f235d):_0x3f235d)['join'](',\x20');_0x4c2a28['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4312fa)});}if(_0x142bf1['length']){const _0x548d8a=_0x142bf1['map'](_0x5aa3bf=>this['_attributeLabels']['has'](_0x5aa3bf)?this['_attributeLabels']['get'](_0x5aa3bf):_0x5aa3bf)['join'](',\x20');_0x4c2a28['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x548d8a)});}return _0x4c2a28;}['_handleCustomCallbackDescription'](_0x1e61c9){for(const _0x53087d of this['_customCallbacks']){const _0x3eb91c=_0x53087d(_0x1e61c9);if(_0x3eb91c&&'type'in _0x3eb91c)return _0x3eb91c;}}['_handleAttributeSuggestionDescription'](_0x501176,_0x4afca9){const _0x576e96=_0x4afca9['data'],_0x2316b9=void 0x0===_0x576e96['newValue']?'removeFormat':'addFormat';_0x501176['push']({'type':_0x2316b9,'key':_0x576e96['key']});}['_handleRenameSuggestionDescription'](_0x568fd8,_0x11510d){_0x568fd8['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x11510d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x40c31d,_0x471128,_0x36ca1d){if(this['_addDescriptionItems'](_0x40c31d,_0x471128),_0x36ca1d&&_0x36ca1d['getFirstRange']()&&!_0x471128['getFirstRange']()['end']['isEqual'](_0x36ca1d['getFirstRange']()['start'])){const _0x211786=_0x40c31d[_0x40c31d['length']-0x1],_0x4fe078='insertion'==_0x471128['type']?'add':'remove';_0x211786&&'text'==_0x211786['type']&&(_0x211786[_0x4fe078]+='\x0a');}}}class U extends _0x4d8634{['afterInit'](){const _0x51ff6d=this['editor'],_0x5a1344=_0x51ff6d['plugins']['get']('TrackChangesEditing');_0x51ff6d['commands']['get']('showAIAssistant')&&_0x5a1344['enableCommand']('showAIAssistant');}}class V extends _0x4d8634{['afterInit'](){const _0x32896b=this['editor'],_0x446fc3=_0x32896b['locale'];if(!_0x32896b['plugins']['has']('AlignmentEditing'))return;const _0x1df919=_0x32896b['plugins']['get']('TrackChangesEditing');_0x1df919['enableDefaultAttributesIntegration']('alignment'),_0x1df919['registerBlockAttribute']('alignment'),_0x1df919['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x446fc3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e5dda=this['editor'],_0x4a45b0=_0x1e5dda['locale'];_0x1e5dda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbeb8e=>{if('formatBlock'!=_0xbeb8e['type'])return;const {data:_0x58be54}=_0xbeb8e;if(_0x58be54&&'alignment'==_0x58be54['commandName']){const _0x3b03a3=_0x58be54['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4a45b0,'*Format:*\x20%0',function(_0x7fab18){switch(_0x7fab18){case'left':return o(_0x4a45b0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4a45b0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4a45b0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4a45b0,'FORMAT_JUSTIFY_TEXT');}}(_0x3b03a3))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4d8634{['afterInit'](){const _0x349d77=this['editor'],_0x540ef1=_0x349d77['plugins']['get']('TrackChangesEditing'),_0x748a48=_0x349d77['locale'];for(const _0x4a8baa of ti){if(!_0x349d77['plugins']['has'](_0x4a8baa))continue;const _0x30fa9f=_0x4a8baa['slice'](0x0,-0x7)['toLowerCase'](),_0x586b5f='FORMAT_'+_0x30fa9f['toUpperCase']();_0x540ef1['enableDefaultAttributesIntegration'](_0x30fa9f),_0x540ef1['registerInlineAttribute'](_0x30fa9f),_0x540ef1['descriptionFactory']['registerAttributeLabel'](_0x30fa9f,o(_0x748a48,_0x586b5f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c69ca=this['editor'],_0x336ac1=_0x2c69ca['locale'],_0x2f77db=_0x2c69ca['plugins']['get']('TrackChangesEditing');function _0x102ba1(_0x310834,_0x5a7065){_0x2f77db['descriptionFactory']['registerDescriptionCallback'](_0x5d10e4=>{if('formatInline'!=_0x5d10e4['type'])return;const {data:_0x4bb5ba}=_0x5d10e4;return _0x4bb5ba&&_0x4bb5ba['commandName']===_0x310834?_0x4bb5ba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x336ac1,'*Format:*\x20%0',_0x5a7065)}:{'type':'format','content':o(_0x336ac1,'*Remove\x20format:*\x20%0',_0x5a7065)}:void 0x0;});}_0x102ba1('bold',o(_0x336ac1,'FORMAT_BOLD')),_0x102ba1('italic',o(_0x336ac1,'FORMAT_ITALIC')),_0x102ba1('underline',o(_0x336ac1,'FORMAT_UNDERLINE')),_0x102ba1('code',o(_0x336ac1,'FORMAT_CODE')),_0x102ba1('strikethrough',o(_0x336ac1,'FORMAT_STRIKETHROUGH')),_0x102ba1('subscript',o(_0x336ac1,'FORMAT_SUBSCRIPT')),_0x102ba1('superscript',o(_0x336ac1,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4d8634{['afterInit'](){const _0x3f033f=this['editor'],_0x3596bf=_0x3f033f['locale'];if(!_0x3f033f['plugins']['has']('BlockQuoteEditing'))return;const _0x3965b1=_0x3f033f['plugins']['get']('TrackChangesEditing'),_0x403e04=this['editor']['commands']['get']('blockQuote');_0x3965b1['enableCommand']('blockQuote',(_0x2740da,_0x38dc69={})=>{const _0x382440=this['editor']['model']['document']['selection'],_0x207c14=_0x38dc69&&void 0x0!==_0x38dc69['forceValue']?_0x38dc69['forceValue']:!_0x403e04['value'];let _0x51398b=[];if(_0x207c14){const _0x17fe09=Array['from'](_0x382440['getSelectedBlocks']())['filter'](_0xdfb437=>oo(_0xdfb437)||function(_0x465f97,_0x45251f){const _0x4c2307=_0x45251f['checkChild'](_0x465f97['parent'],'blockQuote'),_0x2d988b=_0x45251f['checkChild'](['$root','blockQuote'],_0x465f97);return _0x4c2307&&_0x2d988b;}(_0xdfb437,this['editor']['model']['schema']));_0x51398b=to(_0x17fe09,_0x3f033f['model']);}else{const _0x691138=Array['from'](_0x382440['getSelectedBlocks']())['filter'](_0x539754=>oo(_0x539754));_0x51398b=to(_0x691138,_0x3f033f['model']);}_0x3f033f['model']['change'](()=>{for(const _0x1fcd5a of _0x51398b)_0x3965b1['markBlockFormat'](_0x1fcd5a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x207c14}]});});}),_0x3965b1['descriptionFactory']['registerDescriptionCallback'](_0x533cbd=>{const {data:_0x398f11}=_0x533cbd;if(_0x398f11&&'blockQuote'==_0x398f11['commandName']){const _0x237d7e=o(_0x3596bf,'ELEMENT_BLOCK_QUOTE');return _0x398f11['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3596bf,'*Set\x20format:*\x20%0',_0x237d7e)}:{'type':'format','content':o(_0x3596bf,'*Remove\x20format:*\x20%0',_0x237d7e)};}});}}function oo(_0x4c0479){return'blockQuote'==_0x4c0479['parent']['name'];}class L extends _0x4d8634{['afterInit'](){const _0x565e86=this['editor'],_0x2e8439=_0x565e86['locale'],_0x44f6a0=_0x565e86['plugins']['get']('TrackChangesEditing');_0x565e86['plugins']['has']('BookmarkEditing')&&(_0x44f6a0['enableCommand']('insertBookmark'),_0x44f6a0['enableDefaultAttributesIntegration']('updateBookmark'),_0x44f6a0['registerBlockAttribute']('bookmarkId'),_0x44f6a0['descriptionFactory']['registerDescriptionCallback'](_0xf1a8d8=>{if('insertion'!=_0xf1a8d8['type']&&'deletion'!=_0xf1a8d8['type']&&'attribute'!=_0xf1a8d8['type'])return;const _0x5d86d2=_0xf1a8d8['getContainedElement']();if(null==_0x5d86d2)return;if(!_0x5d86d2['is']('element','bookmark'))return;const _0x3ddd96=_0x5d86d2['getAttribute']('bookmarkId');if('insertion'==_0xf1a8d8['type'])return{'type':'insertion','content':o(_0x2e8439,'*Insert:*\x20%0','\x22'+_0x3ddd96+'\x22\x20'+o(_0x2e8439,'ELEMENT_BOOKMARK'))};if('deletion'==_0xf1a8d8['type'])return{'type':'deletion','content':o(_0x2e8439,'*Remove:*\x20%0','\x22'+_0x3ddd96+'\x22\x20'+o(_0x2e8439,'ELEMENT_BOOKMARK'))};const {data:_0xe2aa63}=_0xf1a8d8;if(!_0xe2aa63||'bookmarkId'!=_0xe2aa63['key'])return;return{'type':'format','content':o(_0x2e8439,'*Set\x20bookmark:*\x20%0','\x22'+_0xe2aa63['newValue']+'\x22')};}));}}class J extends _0x4d8634{['afterInit'](){const _0x4a3fc6=this['editor'];_0x4a3fc6['plugins']['has']('CaseChange')&&(_0x4a3fc6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4a3fc6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4a3fc6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4d8634{['afterInit'](){const _0x5a45dd=this['editor'];_0x5a45dd['commands']['get']('ckbox')&&_0x5a45dd['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x4d8634{['afterInit'](){const _0x347d2d=this['editor'];if(!_0x347d2d['plugins']['has']('CodeBlock'))return;const _0x2429f2=_0x347d2d['plugins']['get']('TrackChangesEditing'),_0xe124cb=_0x347d2d['locale'],_0x4c5599=_0x347d2d['config']['get']('codeBlock')['languages'],_0x24258d=_0x347d2d['commands']['get']('codeBlock');_0x2429f2['enableCommand']('indentCodeBlock'),_0x2429f2['enableCommand']('outdentCodeBlock'),_0x2429f2['enableCommand']('codeBlock',(_0x325641,_0x1b1b9a={})=>{const _0x39552c=_0x347d2d['model'],_0x299dd3=_0x347d2d['model']['document']['selection'],_0x17ad36=_0x1b1b9a&&void 0x0!==_0x1b1b9a['forceValue']?_0x1b1b9a['forceValue']:!_0x24258d['value'];let _0x3d6f69;_0x1b1b9a['language']||(_0x1b1b9a['language']=_0x4c5599[0x0]['language']),_0x3d6f69=_0x17ad36?Array['from'](_0x299dd3['getSelectedBlocks']())['filter'](_0x31c87a=>eo(_0x31c87a)||function(_0x39ce42,_0x16f10e){if(_0x39ce42['is']('rootElement')||_0x16f10e['isLimit'](_0x39ce42))return!0x1;return _0x16f10e['checkChild'](_0x39ce42['parent'],'codeBlock');}(_0x31c87a,_0x39552c['schema'])):Array['from'](_0x299dd3['getSelectedBlocks']())['filter'](_0x12c6b9=>eo(_0x12c6b9));const _0x21f699=to(_0x3d6f69,_0x39552c);_0x39552c['change'](()=>{for(const _0x1bf028 of _0x21f699)_0x2429f2['markBlockFormat'](_0x1bf028,{'commandName':'codeBlock','commandParams':[{..._0x1b1b9a,'forceValue':_0x17ad36}],'formatGroupId':'blockName'});});}),(_0x2429f2['descriptionFactory']['registerElementLabel']('codeBlock',_0xfbace1=>o(_0xe124cb,'ELEMENT_CODE_BLOCK',_0xfbace1)),_0x2429f2['descriptionFactory']['registerDescriptionCallback'](_0x2a7b52=>{if('formatBlock'!=_0x2a7b52['type'])return;const _0x504e87=_0xe124cb['t'],{data:_0x49a2a9}=_0x2a7b52;if(!_0x49a2a9||'codeBlock'!=_0x49a2a9['commandName'])return;const _0x5dae3b=_0x49a2a9['commandParams'][0x0]['language'],_0x367e90=_0x504e87(_0x4c5599['find'](_0x5336e0=>_0x5336e0['language']===_0x5dae3b)['label'])['toLowerCase']();return _0x49a2a9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe124cb,'*Set\x20format:*\x20%0',o(_0xe124cb,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x367e90+')')}:{'type':'format','content':o(_0xe124cb,'*Remove\x20format:*\x20%0',o(_0xe124cb,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4712cb){return'codeBlock'==_0x4712cb['name'];}class z extends _0x4d8634{['afterInit'](){const _0x2fe6d2=this['editor'];if(!_0x2fe6d2['plugins']['has']('CommentsEditing'))return;_0x2fe6d2['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x398c0d,_0xc22690,_0x33551f){const _0x4948a0=[];for(const _0xd2532c of _0xc22690['getItems']())_0xd2532c['hasAttribute'](_0x398c0d)&&_0x4948a0['push'](_0x33551f['createRangeOn'](_0xd2532c));return _0x4948a0;}function De(_0x585534,_0x37a6dd,{showActiveMarker:_0x3de362=!0x0}={}){const _0x4c0cbe=_0x585534['plugins']['get']('TrackChangesEditing');return(_0x705952,_0x12ec69,_0x35fb7b)=>{if(!_0x35fb7b['consumable']['test'](_0x12ec69['markerRange'],_0x705952['name']))return;const _0x4c2d2f=_0x12ec69['markerRange']['getWalker'](),_0x581cd6=_0x12ec69['markerRange']['start'],_0x44302a=_0x585534['model']['schema'];let _0x5c3389=null,_0x4eea42=null,_0x16512c=!0x1,_0x1efefe=!0x1;for(const _0x27aebd of _0x4c2d2f){const _0x33e103=_0x27aebd['item'];_0x16512c=_0x16512c||_0x44302a['isContent'](_0x33e103);const _0x3c0c6f=_0x35fb7b['mapper']['toViewElement'](_0x33e103);if(_0x3c0c6f&&_0x3c0c6f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x27aebd['type']&&(_0x44302a['isBlock'](_0x33e103)&&!_0x44302a['isLimit'](_0x33e103)&&(_0x33e103['nextSibling']||_0x581cd6['isAtEnd']?_0x5c3389&&_0x5c3389['parent']==_0x33e103||(_0x5c3389=_0x33e103,_0x3f13f9(_0x27aebd['previousPosition']),_0x1efefe=!0x0):_0x4eea42=_0x4eea42||_0x27aebd['previousPosition']));}function _0x3f13f9(_0x483e56){const {authorId:_0x48e304}=_0x4c0cbe['_splitMarkerName'](_0x12ec69['markerName']),_0xce713=_0x35fb7b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x37a6dd,'data-author-id':_0x48e304}),_0x5544b3=_0x35fb7b['mapper']['toViewPosition'](_0x483e56);_0x3de362&&_0x4c0cbe['activeMarkers']['includes'](_0x12ec69['markerName'])&&_0x35fb7b['writer']['addClass']('ck-suggestion-marker--active',_0xce713),_0x35fb7b['writer']['insert'](_0x5544b3,_0xce713),_0x35fb7b['mapper']['bindElementToMarker'](_0xce713,_0x12ec69['markerName']);}_0x16512c||_0x1efefe||!_0x4eea42||_0x3f13f9(_0x4eea42);};}class K extends _0x4d8634{static get['requires'](){return[_0x12abd1];}['init'](){const _0x5b0fa8=this['editor'],_0x5199b7=_0x5b0fa8['plugins']['get']('TrackChangesEditing');_0x5199b7['enableCommand']('delete');const _0x4ef8ad=_0x5b0fa8['commands']['get']('deleteForward');_0x5199b7['enableCommand']('deleteForward',(_0x311b64,_0xa969ba={})=>{const _0xa91f9b=_0x5b0fa8['model']['createSelection'](_0x5b0fa8['model']['document']['selection']);_0xa91f9b['isCollapsed']&&_0x5b0fa8['model']['modifySelection'](_0xa91f9b,{'direction':'forward','unit':_0xa969ba['unit']});const _0x474b16=_0xa91f9b['getFirstRange'](),_0x556fc4=_0x1d302a['fromRange'](_0x474b16);let _0x16b180;_0x311b64(_0xa969ba),_0x16b180='$graveyard'==_0x556fc4['root']['rootName']?_0x5b0fa8['model']['createRange'](_0x474b16['start']):_0x5b0fa8['model']['createRange'](_0x556fc4['start'],_0x556fc4['end']),_0x556fc4['detach'](),_0x5b0fa8['model']['enqueueChange'](_0x4ef8ad['buffer']['batch'],_0x25e677=>{_0x4ef8ad['buffer']['lock'](),_0x25e677['setSelection'](_0x25e677['createRange'](_0x16b180['end'])),_0x4ef8ad['buffer']['unlock']();});}),_0x5b0fa8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x5b0fa8,'merge'),{'priority':'high'}),_0x5b0fa8['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x119567,_0x5b72f8,_0x3e6aea)=>{_0x3e6aea['options']['showSuggestionHighlights']&&De(_0x5b0fa8,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x119567,_0x5b72f8,_0x3e6aea);},{'priority':'high'}),_0x5b0fa8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x295b8f,_0x334425,_0x6917c2)=>{const _0x18caf9=_0x6917c2['mapper']['markerNameToElements'](_0x334425['markerName']);if(_0x18caf9){for(const _0x96fb18 of _0x18caf9)_0x96fb18['is']('uiElement')&&(_0x6917c2['mapper']['unbindElementFromMarkerName'](_0x96fb18,_0x334425['markerName']),_0x6917c2['writer']['remove'](_0x96fb18));}},{'priority':'high'});}}class W extends _0x4d8634{['afterInit'](){const _0x19621=this['editor'];if(!_0x19621['plugins']['has']('ListEditing'))return;const _0x1ca8ec=_0x19621['locale'],_0x351ba4=_0x19621['plugins']['get']('TrackChangesEditing'),_0x5cee6c=_0x19621['plugins']['has']('TodoListEditing'),_0x6cdb5f=!!_0x19621['config']['get']('list.multiBlock');function _0x5a6c5e(_0x12e92a){return{'type':'format','content':''+o(_0x1ca8ec,'*Set\x20format:*\x20%0',_0x12e92a)};}function _0x170839(_0x2397e2){return{'type':'format','content':''+o(_0x1ca8ec,'*Remove\x20format:*\x20%0',_0x2397e2)};}_0x351ba4['enableDefaultAttributesIntegration']('numberedList'),_0x351ba4['enableDefaultAttributesIntegration']('bulletedList'),_0x351ba4['enableDefaultAttributesIntegration']('customNumberedList'),_0x351ba4['enableDefaultAttributesIntegration']('customBulletedList'),_0x351ba4['enableDefaultAttributesIntegration']('indentList'),_0x351ba4['enableDefaultAttributesIntegration']('outdentList'),_0x351ba4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x351ba4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x351ba4['registerBlockAttribute']('listItemId'),_0x351ba4['registerBlockAttribute']('listType'),_0x351ba4['registerBlockAttribute']('listIndent'),_0x6cdb5f&&(_0x351ba4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x351ba4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5cee6c&&(_0x351ba4['enableDefaultAttributesIntegration']('todoList'),_0x351ba4['enableDefaultAttributesIntegration']('checkTodoList'),_0x351ba4['registerBlockAttribute']('todoListChecked'),_0x351ba4['descriptionFactory']['registerDescriptionCallback'](_0x265e18=>{const {data:_0x3cb2b8}=_0x265e18;if(_0x3cb2b8&&'todoListChecked'==_0x3cb2b8['key'])return{'type':'format','content':_0x3cb2b8['newValue']?o(_0x1ca8ec,'*Check\x20item*'):o(_0x1ca8ec,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3e04ba=>{if(_0x3e04ba['batch']['isUndo'])return!0x1;let _0x3f5fd8=!0x1;const _0x463572=_0x351ba4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13e09f=>'todoListChecked'===_0x351ba4['_getAttributeKey'](_0x13e09f));for(const _0x40d982 of _0x463572){'todo'!=_0x40d982['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x351ba4['_findSuggestions'](_0x40d982['getFirstRange'](),'attribute')['find'](_0x363a65=>'listType'===_0x351ba4['_getAttributeKey'](_0x363a65['suggestion']))||(_0x3e04ba['removeMarker'](_0x40d982['getFirstMarker']()),_0x3f5fd8=!0x0));}return _0x3f5fd8;})),_0x351ba4['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1ca8ec,'FORMAT_INDENT'));const _0x45988d={'type':'format','content':''};_0x351ba4['descriptionFactory']['registerDescriptionCallback'](_0x2b65fd=>{const {data:_0xe054f}=_0x2b65fd;if(!_0xe054f||'listType'!=_0xe054f['key'])return;let _0x292e4b=_0x2b65fd['head'];for(;_0x292e4b;){if(_0x292e4b['data']&&(('listStyle'==_0x292e4b['data']['key']||'listMarkerStyle'==_0x292e4b['data']['key'])&&(_0x292e4b['data']['newValue']&&'default'!=_0x292e4b['data']['newValue']||'default'!=_0x292e4b['data']['oldValue']&&!_0xe054f['newValue'])||!_0x6cdb5f&&_0x292e4b['data']['key']==m))return _0x45988d;_0x292e4b=_0x292e4b['next'];}if(null==_0xe054f['newValue'])switch(_0xe054f['oldValue']){case'bulleted':return _0x170839(o(_0x1ca8ec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x170839(o(_0x1ca8ec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x170839(o(_0x1ca8ec,'ELEMENT_TODO_LIST'));}switch(_0xe054f['newValue']){case'bulleted':return _0x5a6c5e(o(_0x1ca8ec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5a6c5e(o(_0x1ca8ec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5a6c5e(o(_0x1ca8ec,'ELEMENT_TODO_LIST'));}}),_0x351ba4['descriptionFactory']['registerDescriptionCallback'](_0x583484=>{const {data:_0xb04bd6}=_0x583484;if(_0xb04bd6&&'listIndent'==_0xb04bd6['key'])return null==_0xb04bd6['newValue']||null==_0xb04bd6['oldValue']&&0x0==_0xb04bd6['newValue']?_0x45988d:void 0x0;}),_0x351ba4['descriptionFactory']['registerDescriptionCallback'](_0x5178d4=>{if('attribute'!=_0x5178d4['type'])return;const {data:_0x17ec42}=_0x5178d4;if(!_0x17ec42||'listItemId'!=_0x17ec42['key'])return;const _0x382c96=Te(_0x5178d4);return'newValue'==_0x382c96?{'type':'format','content':o(_0x1ca8ec,'*Merge:*\x20list\x20item')}:'oldValue'==_0x382c96?{'type':'format','content':o(_0x1ca8ec,'*Split:*\x20list\x20item')}:_0x45988d;}),_0x19621['model']['document']['registerPostFixer'](_0x3947ce=>this['listItemIdFixer'](_0x3947ce)),_0x19621['model']['document']['registerPostFixer'](_0x36995e=>this['noTrackChangesFixer'](_0x36995e)),_0x19621['model']['document']['on']('change:data',(_0x482293,_0x272bac)=>{if(_0x272bac['isUndo']||!_0x272bac['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x148fb7){if(_0x148fb7['batch']['isUndo']||!_0x148fb7['batch']['isLocal'])return!0x1;let _0xe85876=!0x1;const _0xa8b289=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf0f6db=>_0xf0f6db['data']&&'listItemId'==_0xf0f6db['data']['key'])['filter'](_0x2acf68=>_0x2acf68['data']['newValue']&&_0x2acf68['data']['oldValue']);for(const _0x4c026d of _0xa8b289)Te(_0x4c026d)||(_0x148fb7['removeMarker'](_0x4c026d['getFirstMarker']()),_0xe85876=!0x0);return _0xe85876;}['noTrackChangesFixer'](_0x35c62a){if(_0x35c62a['batch']['isUndo']||!_0x35c62a['batch']['isLocal'])return!0x1;const _0x8715a3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x8715a3['trackChangesCommand']['value'])return!0x1;let _0x192b1f=!0x1;const _0x745496=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x203ec9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1a2a4c=>'attribute'==_0x1a2a4c['type'])['filter'](_0x497e7b=>_0x745496['includes'](_0x497e7b['attributeKey']));if(0x0==_0x203ec9['length'])return _0x192b1f;for(const _0x332586 of _0x203ec9){const _0x4c6df6=_0x8715a3['_findSuggestions'](_0x332586['range'],'attribute')['filter'](_0x4f7df0=>!_0x4f7df0['meta']['isNextTo'])['map'](_0x20dac9=>_0x20dac9['suggestion'])['filter'](_0x20f651=>{const _0x45f554=_0x8715a3['_getAttributeKey'](_0x20f651);return _0x745496['includes'](_0x45f554);});if(_0x4c6df6['length']){for(const _0x54f3a9 of _0x4c6df6)_0x35c62a['removeMarker'](_0x54f3a9['getFirstMarker']());_0x192b1f=!0x0;}}return _0x192b1f;}['assureChains'](){const _0x365362=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e06e2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x46b6b7;const _0x58f7b9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1ce22e=>{if(_0x1ce22e['data']['oldRange']||!_0x1ce22e['data']['newRange'])return null;if(!_0x1ce22e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xdfe076}=_0x365362['_splitMarkerName'](_0x1ce22e['name']);if(!_0x365362['hasSuggestion'](_0xdfe076))return null;const _0x195bb3=_0x365362['getSuggestion'](_0xdfe076);return _0x2e06e2['includes'](_0x195bb3['data']['key']);})['map'](_0x2c0f9b=>{const {id:_0x238255}=_0x365362['_splitMarkerName'](_0x2c0f9b['name']),_0x48f11d=_0x365362['getSuggestion'](_0x238255);return _0x46b6b7=_0x48f11d['attributes']['groupId'],_0x48f11d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x58f7b9['size'])return;const _0xe30554=_0x365362['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xfdb4fe=>'attribute'==_0xfdb4fe['type']&&_0xfdb4fe['data']&&_0x2e06e2['includes'](_0xfdb4fe['data']['key'])&&_0xfdb4fe['attributes']['groupId']!=_0x46b6b7)['map'](_0x6c93d5=>({'listItem':_0x6c93d5['getFirstRange']()['start']['nodeAfter'],'groupId':_0x6c93d5['attributes']['groupId']})),_0x54b778=new Set();for(const {groupId:_0x115c6a,listItem:_0x30c309}of _0xe30554)_0x58f7b9['has'](_0x30c309)&&_0x54b778['add'](_0x115c6a);for(const _0x335382 of _0x365362['getSuggestions']())_0x54b778['has'](_0x335382['attributes']['groupId'])&&_0x335382['setAttribute']('groupId',_0x46b6b7);}['_supportLegacySuggestions'](){const _0x568d11=this['editor'],_0x2008d7=_0x568d11['locale'],_0x46ba7e=_0x568d11['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x46ba7e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x35946a,_0x11dde0){const _0x528acb=[];for(let _0x50fd40 of _0x35946a)_0x50fd40['start']['nodeAfter']===_0x50fd40['end']['parent']&&(_0x50fd40=_0x568d11['model']['createRange'](_0x568d11['model']['createPositionAt'](_0x50fd40['start']['nodeAfter'],0x0))),_0x528acb['push'](_0x50fd40);_0x568d11['model']['change'](_0x29facc=>{const _0x478bf2=_0x568d11['model']['document']['selection'],_0x166be5=Array['from'](_0x478bf2['getRanges']())['map'](_0x3ff6b4=>_0x1d302a['fromRange'](_0x3ff6b4));_0x29facc['setSelection'](_0x528acb),_0x568d11['commands']['get'](_0x11dde0['commandName'])['refresh'](),_0x11dde0['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x568d11['execute'](_0x11dde0['commandName'],..._0x11dde0['commandParams']),_0x29facc['setSelection'](_0x166be5);for(const _0x484c51 of _0x166be5)_0x484c51['detach']();});}),_0x46ba7e['descriptionFactory']['registerElementLabel'](function(_0x3dabb5){const _0x4e6254=!_0x568d11['model']['schema']['isObject'](_0x3dabb5),_0x23ca06=_0x3dabb5['previousSibling'],_0x1b4fd1=_0x3dabb5['nextSibling'],_0x313684=_0x3dabb5['getAttribute']('listItemId'),_0x3a7461=!_0x23ca06||_0x23ca06['getAttribute']('listItemId')!==_0x313684,_0x44761d=!_0x1b4fd1||_0x1b4fd1['getAttribute']('listItemId')!==_0x313684;return _0x4e6254&&Boolean(_0x313684)&&_0x3a7461&&_0x44761d;},_0xf23944=>o(_0x2008d7,'ELEMENT_LIST_ITEM',_0xf23944));}['_registerLegacyDescription'](){const _0x113dbb=this['editor'],_0x519b8e=_0x113dbb['locale'];function _0x2634d7(_0x124ee3){const _0x1d2a3e=_0x113dbb['commands']['get']('bulletedList')['value'],_0x1fc296=_0x113dbb['commands']['get']('numberedList')['value'];return'numberedList'===_0x124ee3?_0x1d2a3e:_0x1fc296;}_0x113dbb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1b3dea){if('formatBlock'!=_0x1b3dea['type'])return;const {data:_0x2f7b0e}=_0x1b3dea;if(!_0x2f7b0e)return;let _0x36186d,_0x2dea58,_0x419070,_0x5821b8;switch(_0x2f7b0e['commandName']){case'bulletedList':_0x419070=_0x2f7b0e['commandParams'][0x0]['forceValue'],_0x5821b8=_0x2634d7(_0x2f7b0e['commandName']),_0x36186d=_0x419070?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5821b8&&_0x113dbb['config']['get']('list.multiBlock')||(_0x36186d='*Change\x20to:*\x20%0'),_0x2dea58={'type':'format','content':o(_0x519b8e,_0x36186d,o(_0x519b8e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x419070=_0x2f7b0e['commandParams'][0x0]['forceValue'],_0x5821b8=_0x2634d7(_0x2f7b0e['commandName']),_0x36186d=_0x419070?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5821b8&&_0x113dbb['config']['get']('list.multiBlock')||(_0x36186d='*Change\x20to:*\x20%0'),_0x2dea58={'type':'format','content':o(_0x519b8e,_0x36186d,o(_0x519b8e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x36186d='*Indent:*\x20%0',_0x2dea58={'type':'format','content':o(_0x519b8e,_0x36186d,o(_0x519b8e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x36186d=function(_0x8f6114){const _0x94e77c=_0x8f6114['getFirstRange']();let _0x523f2a=_0x94e77c['start']['nodeAfter'];for(;_0x523f2a&&_0x94e77c['containsItem'](_0x523f2a);){if(_0x523f2a['getAttribute']('listIndent')>0x0)return!0x1;_0x523f2a=_0x523f2a['nextSibling'];}return!0x0;}(_0x1b3dea)?o(_0x519b8e,'*Format:*\x20remove\x20from\x20%0',o(_0x519b8e,function(_0x34f9c1){return'ELEMENT_'+_0x34f9c1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1b3dea))):o(_0x519b8e,'*Outdent:*\x20%0',o(_0x519b8e,'ELEMENT_LIST_ITEM')),_0x2dea58={'type':'format','content':_0x36186d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2f7b0e['multipleBlocks']&&(_0x36186d='*Merge:*\x20%0',_0x2dea58={'type':'deletion','content':o(_0x519b8e,_0x36186d,o(_0x519b8e,'ELEMENT_LIST_ITEM'))});}return _0x2dea58;});}}function Te(_0xb27b0d){let _0x9d3571=_0xb27b0d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x9d3571;){const _0x1b03b5=_0x9d3571['getAttribute']('listItemId');if(!_0x1b03b5)return!0x1;if(_0x1b03b5==_0xb27b0d['data']['newValue'])return'newValue';if(_0x1b03b5==_0xb27b0d['data']['oldValue'])return'oldValue';_0x9d3571=_0x9d3571['previousSibling'];}return!0x1;}class Se extends _0x4d8634{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5bd2cb=this['editor']['config']['get']('list.properties'),_0x474139=this['editor']['plugins']['get']('TrackChangesEditing');_0x5bd2cb['styles']&&(_0x474139['enableDefaultAttributesIntegration']('listStyle'),_0x474139['registerBlockAttribute']('listStyle')),_0x5bd2cb['reversed']&&(_0x474139['enableDefaultAttributesIntegration']('listReversed'),_0x474139['registerBlockAttribute']('listReversed')),_0x5bd2cb['startIndex']&&(_0x474139['enableDefaultAttributesIntegration']('listStart'),_0x474139['registerBlockAttribute']('listStart'));const _0x4a0309={'type':'format','content':''};_0x474139['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2d2173=this['editor']['locale'];_0x474139['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2d2173,'FORMAT_LIST_REVERSED')),_0x474139['descriptionFactory']['registerDescriptionCallback'](_0x10de61=>{const {data:_0x11cff8}=_0x10de61;if(_0x11cff8&&'listReversed'==_0x11cff8['key'])return null==_0x11cff8['newValue']||0x0==_0x11cff8['newValue']&&null==_0x11cff8['oldValue']?_0x4a0309:void 0x0;}),_0x474139['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2d2173,'FORMAT_LIST_START')),_0x474139['descriptionFactory']['registerDescriptionCallback'](_0x2393d7=>{const {data:_0x334454}=_0x2393d7;if(_0x334454&&'listStart'==_0x334454['key'])return null==_0x334454['newValue']||0x1==_0x334454['newValue']&&null==_0x334454['oldValue']?_0x4a0309:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3d099c=>{if(_0x3d099c['batch']['isUndo'])return!0x1;let _0x1b6e6a=!0x1;const _0x3f0cd3=_0x474139['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b9c63=>{const _0x3ef7aa=_0x474139['_getAttributeKey'](_0x3b9c63);return'listStart'==_0x3ef7aa||'listReversed'==_0x3ef7aa;});for(const _0x2dcb15 of _0x3f0cd3){const _0x2830ca=_0x2dcb15['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2830ca||'customNumbered'==_0x2830ca)continue;_0x474139['_findSuggestions'](_0x2dcb15['getFirstRange'](),'attribute')['find'](_0x85736f=>'listType'==_0x474139['_getAttributeKey'](_0x85736f['suggestion']))||(_0x3d099c['removeMarker'](_0x2dcb15['getFirstMarker']()),_0x1b6e6a=!0x0);}return _0x1b6e6a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x22ba7d){const _0x1353bc=this['editor']['locale'],{data:_0x429d01}=_0x22ba7d,_0x25a236={'type':'format','content':''};if(!_0x429d01||'listStyle'!=_0x429d01['key'])return;if(!_0x429d01['oldValue'])return'default'==_0x429d01['newValue']?_0x25a236:{'type':'format','content':''+o(_0x1353bc,'*Set\x20format:*\x20%0',o(_0x1353bc,this['_getTranslationKeyForListStyle'](_0x429d01['newValue'])))};if(!_0x429d01['newValue']){if('default'==_0x429d01['oldValue'])return _0x25a236;let _0x322351=_0x22ba7d['head'];for(;_0x322351;){if(_0x322351['data']&&'listType'==_0x322351['data']['key']&&_0x322351['data']['newValue'])return _0x25a236;_0x322351=_0x322351['next'];}return{'type':'format','content':''+o(_0x1353bc,'*Remove\x20format:*\x20%0',o(_0x1353bc,this['_getTranslationKeyForListStyle'](_0x429d01['oldValue'])))};}if('default'!=_0x429d01['newValue'])return{'type':'format','content':''+o(_0x1353bc,'*Set\x20format:*\x20%0',o(_0x1353bc,this['_getTranslationKeyForListStyle'](_0x429d01['newValue'])))};let _0x3df946=_0x22ba7d['head'];for(;_0x3df946;){if(_0x3df946['data']&&'listType'==_0x3df946['data']['key']&&_0x3df946['data']['newValue']&&_0x3df946['data']['oldValue'])return _0x25a236;_0x3df946=_0x3df946['next'];}return{'type':'format','content':o(_0x1353bc,'*Set\x20format:*\x20%0',o(_0x1353bc,'ELEMENT_'+_0x22ba7d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x378bb2=this['editor'],_0x19229a=_0x378bb2['locale'];_0x378bb2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39b3f0=>{if('formatBlock'!=_0x39b3f0['type'])return;const {data:_0x2a3fb0}=_0x39b3f0;if(!_0x2a3fb0)return;let _0xaede33,_0x20e086;switch(_0x2a3fb0['commandName']){case'listStyle':_0xaede33='*Change\x20to:*\x20%0',_0x20e086={'type':'format','content':o(_0x19229a,_0xaede33,o(_0x19229a,this['_getTranslationKeyForListStyle'](_0x2a3fb0['commandParams'][0x0]['type'])))};break;case'listReversed':_0xaede33=_0x2a3fb0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x20e086={'type':'format','content':o(_0x19229a,_0xaede33)};break;case'listStart':_0xaede33='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x20e086={'type':'format','content':o(_0x19229a,_0xaede33,_0x2a3fb0['commandParams'][0x0]['startIndex'])};}return _0x20e086;});}['_getTranslationKeyForListStyle'](_0x51a254){return'ELEMENT_'+function(_0x25a831){if(_e['includes'](_0x25a831))return'bulleted';if(Re['includes'](_0x25a831))return'numbered';return null;}(_0x51a254)['toUpperCase']()+'_LIST_'+_0x51a254['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x4d8634{static get['requires'](){return[_0x5ecebc];}['init'](){const _0x5f4cd7=this['editor'],_0x57bc9c=_0x5f4cd7['plugins']['get']('TrackChangesEditing'),_0x2423bf=_0x5f4cd7['commands']['get']('enter');_0x57bc9c['enableCommand']('enter',()=>{_0x5f4cd7['model']['change'](_0x545882=>{const _0xceafb9=_0x5f4cd7['model']['document']['selection'],_0x221337=_0xceafb9['getFirstPosition'](),_0x52eb44=_0x1d302a['fromRange'](_0xceafb9['getFirstRange']());if(_0x2423bf['enterBlock'](_0x545882)){const _0x4353ce=_0x5f4cd7['model']['createPositionAt'](_0x221337['parent']['nextSibling'],0x0),_0x62e0ab=_0x545882['createRange'](_0x221337,_0x4353ce);_0x57bc9c['markInsertion'](_0x62e0ab);}else _0x545882['setSelection'](_0x545882['createRange'](_0x52eb44['end']));_0x52eb44['detach'](),_0x2423bf['fire']('afterExecute',{'writer':_0x545882});});}),_0x5f4cd7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x5f4cd7,'split'),{'priority':'high'}),_0x5f4cd7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3f07dc,_0xfbe43b,_0x398f2a)=>{const _0x5e73d4=_0x398f2a['mapper']['markerNameToElements'](_0xfbe43b['markerName']);if(_0x5e73d4){for(const _0x5370d5 of _0x5e73d4)_0x5370d5['hasClass']('ck-suggestion-marker-split')&&(_0x398f2a['mapper']['unbindElementFromMarkerName'](_0x5370d5,_0xfbe43b['markerName']),_0x398f2a['writer']['remove'](_0x5370d5));}},{'priority':'high'}),_0x5f4cd7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x29f04c,_0x354350,_0xc1436d)=>{_0xc1436d['options']['showSuggestionHighlights']&&De(_0x5f4cd7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x29f04c,_0x354350,_0xc1436d);},{'priority':'high'});}}class Y extends _0x4d8634{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x50ab71=this['editor']['plugins']['get']('TrackChangesEditing');_0x50ab71['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x50ab71['enableCommand']('findNext'),_0x50ab71['enableCommand']('findPrevious'),_0x50ab71['enableCommand']('replace'),_0x50ab71['enableCommand']('replaceAll');}['handleFindCommand'](_0x372215,_0x498165,_0x407c16={}){const _0x2652e4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x372215(_0x3eedf0=>{let _0x332c50=('string'==typeof _0x498165?_0x2652e4['findByTextCallback'](_0x498165,_0x407c16):_0x498165)(_0x3eedf0);Array['isArray'](_0x332c50)&&(_0x332c50={'results':_0x332c50,'searchText':'string'==typeof _0x498165?_0x498165:''});const _0x42ea75=_0x332c50['results']['filter'](_0x164487=>!0x1===this['_isInDeletionRange'](_0x164487,_0x3eedf0['item']));return{..._0x332c50,'results':_0x42ea75};},_0x407c16);}['_isInDeletionRange'](_0x54faae,_0x15fda8){const _0x252a8d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15fda8,_0x54faae['start']),this['editor']['model']['createPositionAt'](_0x15fda8,_0x54faae['end']));for(const _0x2fdb92 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x252a8d['getIntersection'](_0x2fdb92['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 _0x4d8634{['afterInit'](){const _0x5a0aac=this['editor']['locale'],_0x1c216e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1a4cc4,commandName:_0x2576f6}of ro)this['editor']['plugins']['has'](_0x1a4cc4)&&(_0x1c216e['enableDefaultAttributesIntegration'](_0x2576f6),_0x1c216e['registerInlineAttribute'](_0x2576f6));_0x1c216e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5a0aac,'FORMAT_FONT_SIZE')),_0x1c216e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5a0aac,'FORMAT_FONT_FAMILY')),_0x1c216e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5a0aac,'FORMAT_FONT_COLOR')),_0x1c216e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5a0aac,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48792f=this['editor'],_0x4ebc7e=_0x48792f['locale'];_0x48792f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x729271=>{const _0x2cd34d=_0x4ebc7e['t'];if('formatInline'!=_0x729271['type'])return;const {data:_0x2ac86f}=_0x729271;if(null!=_0x2ac86f){if('fontSize'==_0x2ac86f['commandName']){const _0x5501e1=_0x2ac86f['commandParams'][0x0]['value'];if(_0x5501e1){const _0xc40d07=_0x2cd34d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4a14cc=>_0x4a14cc['model']==_0x5501e1)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4ebc7e,'*Set\x20font\x20size:*\x20%0',_0xc40d07)};}return{'type':'format','content':o(_0x4ebc7e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2ac86f['commandName']){const _0x410e04=_0x2ac86f['commandParams'][0x0]['value'];return _0x410e04?{'type':'format','content':o(_0x4ebc7e,'*Set\x20font\x20family:*\x20%0',_0x410e04)}:{'type':'format','content':o(_0x4ebc7e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2ac86f['commandName']){const _0x18a3b5=_0x2ac86f['commandParams'][0x0]['value'];if(_0x18a3b5){const _0x5d743e=_0x4ff1b0(this['editor']['config']['get']('fontColor.colors'))['find'](_0xf8ff25=>_0xf8ff25['model']==_0x18a3b5);let _0x45fc16=_0x18a3b5,_0x5a3158='';return _0x5d743e&&(_0x45fc16=_0x5d743e['label'],_0x5a3158=_0x2cd34d(_0x45fc16)['toLowerCase']()),{'type':'format','content':o(_0x4ebc7e,'*Set\x20font\x20color:*\x20%0',_0x5a3158)['trim'](),'color':{'value':_0x18a3b5,'title':_0x5a3158||_0x45fc16}};}return{'type':'format','content':o(_0x4ebc7e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2ac86f['commandName']){const _0x99cfb1=_0x2ac86f['commandParams'][0x0]['value'];if(_0x99cfb1){const _0x582c06=_0x4ff1b0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x49be5a=>_0x49be5a['model']==_0x99cfb1);let _0x540efa=_0x99cfb1,_0x5724be='';return _0x582c06&&(_0x540efa=_0x582c06['label'],_0x5724be=_0x2cd34d(_0x540efa)['toLowerCase']()),{'type':'format','content':o(_0x4ebc7e,'*Set\x20font\x20background\x20color:*\x20%0',_0x5724be)['trim'](),'color':{'value':_0x99cfb1,'title':_0x5724be||_0x540efa}};}return{'type':'format','content':o(_0x4ebc7e,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x4d8634{['afterInit'](){const _0x55c6ba=this['editor'],_0x3bc9d7=_0x55c6ba['plugins']['get']('TrackChangesEditing'),_0x2e2c61=_0x55c6ba['commands']['get']('copyFormat'),_0x224ab2=_0x55c6ba['commands']['get']('pasteFormat');_0x2e2c61&&_0x224ab2&&(_0x3bc9d7['enableDefaultAttributesIntegration']('pasteFormat'),_0x3bc9d7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x54277f=this['editor'],_0x2e4517=_0x54277f['locale'];_0x54277f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5decca=>{if('formatBlock'!=_0x5decca['type']&&'formatInline'!=_0x5decca['type'])return;const {data:_0x3e41fc}=_0x5decca;if(_0x3e41fc&&'pasteFormat'===_0x3e41fc['commandName']){const _0x2bfe62=[],_0x4a889a=_0x3e41fc['commandParams'][0x0];for(const [_0x9c1436,_0x1cacec]of Object['entries'](_0x4a889a))_0x2bfe62['push'](so(_0x54277f,_0x9c1436,_0x1cacec));return _0x2bfe62['length']?{'type':'format','content':o(_0x2e4517,'*Set\x20format\x20to:*\x20%0',_0x2bfe62['join'](',\x20'))}:{'type':'format','content':o(_0x2e4517,'*Remove\x20all\x20formatting*')};}});}}function so(_0x341cc4,_0x1f847f,_0x27014d){const _0x202595=_0x341cc4['locale']['t'],_0x453e54=_0x1f847f['split'](/(?=[A-Z])/)['join']('\x20'),_0x54ac71=_0x202595(_0x453e54['charAt'](0x0)['toUpperCase']()+_0x453e54['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x27014d)return _0x54ac71;if('fontColor'===_0x1f847f||'fontBackgroundColor'===_0x1f847f){const _0x52df7f=_0x4ff1b0(_0x341cc4['config']['get']('fontColor.colors'))['find'](_0x589164=>_0x589164['model']==_0x27014d);return _0x54ac71+'\x20('+(_0x52df7f?_0x202595(_0x52df7f['label'])['toLowerCase']():_0x27014d)+')';}if('fontSize'===_0x1f847f&&isNaN(parseFloat(_0x27014d))){const _0x17f55b=_0x341cc4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x341cc4['config']['get']('fontSize.options'))['find'](_0x3bff45=>_0x3bff45['model']==_0x27014d);return _0x54ac71+'\x20('+(_0x17f55b?_0x202595(_0x17f55b['title'])['toLowerCase']():_0x27014d)+')';}return _0x54ac71+'\x20('+_0x27014d+')';}class nt extends _0x4d8634{['_headingOptions'];['afterInit'](){const _0x5dca9f=this['editor'];if(!_0x5dca9f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5dca9f['config']['get']('heading.options');const _0x5d65d3=_0x5dca9f['locale'],_0x54ef91=_0x5dca9f['plugins']['get']('TrackChangesEditing');_0x54ef91['enableDefaultAttributesIntegration']('heading');for(const _0x38208e of this['_headingOptions'])'paragraph'!=_0x38208e['model']&&_0x54ef91['descriptionFactory']['registerElementLabel'](_0x38208e['model'],_0x136fa6=>{const _0x1e63c0=this['_getHeadingLevel'](_0x38208e['model']);return null!==_0x1e63c0?_0x2c85dc(_0x136fa6,_0x1e63c0):_0x1b4741(_0x136fa6,_0x38208e['title']);});function _0x2c85dc(_0x43732d,_0x3bfde2){return o(_0x5d65d3,'ELEMENT_HEADING',[_0x43732d,_0x3bfde2]);}function _0x1b4741(_0x18e26b,_0x242a10){return o(_0x5d65d3,'ELEMENT_HEADING_CUSTOM',[_0x18e26b,_0x242a10]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe2af97=this['editor'],_0x20c93b=_0xe2af97['locale'];function _0x4c2126(_0x753149,_0x291377){return o(_0x20c93b,'ELEMENT_HEADING_CUSTOM',[_0x753149,_0x291377]);}_0xe2af97['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35b77b=>{if('formatBlock'!=_0x35b77b['type'])return;const {data:_0x153234}=_0x35b77b;if(_0x153234&&'heading'==_0x153234['commandName']){const _0x536e32=_0x153234['commandParams'][0x0]['value'],_0xe3b21d=this['_getHeadingLevel'](_0x536e32);if(null!==_0xe3b21d)return{'type':'format','content':o(_0x20c93b,'*Change\x20to:*\x20%0',(_0x3d23e1=0x1,_0x3389b2=_0xe3b21d,o(_0x20c93b,'ELEMENT_HEADING',[_0x3d23e1,_0x3389b2])))};const _0x26abe2=this['_headingOptions']['find'](_0x44b501=>_0x44b501['model']===_0x536e32)['title'];return{'type':'format','content':o(_0x20c93b,'*Change\x20to:*\x20%0',_0x4c2126(0x1,_0x26abe2))};}var _0x3d23e1,_0x3389b2;});}['_getHeadingLevel'](_0x279b00){const _0xe8a96b=_0x279b00['match'](/^heading(\d+)/);if(_0xe8a96b)return _0xe8a96b[0x1];const _0xf80fbf=this['_headingOptions']?.['find'](_0x4768cb=>_0x4768cb['model']==_0x279b00);if(_0xf80fbf&&_0xf80fbf['view']){const _0x9cf004=_0xf80fbf['view'],_0x43bd5f=(_0x9cf004['name']??_0x9cf004)['match'](/^h(\d+)/);if(_0x43bd5f)return _0x43bd5f[0x1];}return null;}}class it extends _0x4d8634{['afterInit'](){const _0x402993=this['editor'];if(!_0x402993['plugins']['has']('HighlightEditing'))return;const _0x33e472=_0x402993['plugins']['get']('TrackChangesEditing'),_0x47c073=_0x402993['locale'];_0x33e472['enableDefaultAttributesIntegration']('highlight'),_0x33e472['registerInlineAttribute']('highlight'),_0x33e472['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x47c073,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e2700=this['editor'],_0x82bab3=_0x2e2700['locale'];_0x2e2700['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x381625=>{if('formatInline'!=_0x381625['type'])return;const {data:_0x444b1d}=_0x381625;if(_0x444b1d&&'highlight'==_0x444b1d['commandName']){const _0x26e5fd=_0x82bab3['t'],_0x58a92c=_0x444b1d['commandParams'][0x0]['value'];if(_0x58a92c){const _0x33dcf2=_0x2e2700['config']['get']('highlight.options')['find'](_0x57dde5=>_0x57dde5['model']==_0x58a92c),_0x20a8e3=_0x26e5fd(_0x33dcf2['title'])['toLowerCase']();return{'type':'format','content':o(_0x82bab3,'*Set\x20highlight:*\x20%0',_0x20a8e3),'color':{'value':_0x33dcf2['color'],'title':_0x33dcf2['title']}};}return{'type':'format','content':o(_0x82bab3,'*Remove\x20highlight*',o(_0x82bab3,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x4d8634{['afterInit'](){const _0x459d57=this['editor'];if(!_0x459d57['plugins']['has']('HorizontalLineEditing'))return;_0x459d57['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4048c9=_0x459d57['plugins']['get']('TrackChangesEditing'),_0x121489=_0x459d57['locale'];_0x4048c9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x389808=>o(_0x121489,'ELEMENT_HORIZONTAL_LINE',_0x389808)),_0x459d57['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4cd93b,{writer:_0x23a83a,options:_0x4de123})=>{if(!_0x4de123['showSuggestionHighlights'])return null;const _0x19649a=_0x23a83a['createContainerElement']('div'),_0x4295a0=_0x23a83a['createEmptyElement']('hr');return _0x23a83a['addClass']('ck-horizontal-line',_0x19649a),_0x23a83a['insert'](_0x23a83a['createPositionAt'](_0x19649a,0x0),_0x4295a0),_0x19649a;},'converterPriority':'high'});}}class st extends _0x4d8634{['afterInit'](){const _0x35fb92=this['editor'];if(!_0x35fb92['plugins']['has']('HtmlEmbed'))return;const _0x21abcf=_0x35fb92['plugins']['get']('TrackChangesEditing'),_0x389fb6=_0x35fb92['locale'];_0x21abcf['descriptionFactory']['registerElementLabel']('rawHtml',_0x244aca=>o(_0x389fb6,'ELEMENT_HTML_EMBED',_0x244aca)),_0x21abcf['enableDefaultAttributesIntegration']('htmlEmbed'),_0x21abcf['registerBlockAttribute']('value'),_0x21abcf['descriptionFactory']['registerDescriptionCallback'](_0x13d238=>{if('attribute'!=_0x13d238['type'])return;const {data:_0x570bb1}=_0x13d238;if(_0x570bb1&&'value'==_0x570bb1['key']&&_0x13d238['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1bbbfc=o(_0x389fb6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x389fb6,'*Change\x20%0\x20content*',_0x1bbbfc)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5fd796=this['editor'],_0x3305d2=_0x5fd796['locale'];_0x5fd796['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5116aa=>{if('formatBlock'!=_0x5116aa['type'])return;const {data:_0x23a76f}=_0x5116aa;if(_0x23a76f&&'htmlEmbed'==_0x23a76f['commandName']){const _0xacc5fd=o(_0x3305d2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3305d2,'*Change\x20%0\x20content*',_0xacc5fd)};}});}}class ot extends _0x4d8634{['afterInit'](){const _0x5e0b7b=this['editor'];if(!_0x5e0b7b['plugins']['has']('ImageEditing'))return;const _0x13bad2=_0x5e0b7b['plugins']['get']('TrackChangesEditing'),_0x5a9804=_0x5e0b7b['plugins']['get']('ImageUtils'),_0x14a91e=_0x5e0b7b['locale'];_0x13bad2['enableCommand']('insertImage'),_0x13bad2['descriptionFactory']['registerElementLabel']('imageBlock',_0x30733a=>o(_0x14a91e,'ELEMENT_IMAGE',_0x30733a)),_0x13bad2['descriptionFactory']['registerElementLabel']('imageInline',_0x255fe4=>o(_0x14a91e,'ELEMENT_INLINE_IMAGE',_0x255fe4)),_0x13bad2['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x14a91e,'ELEMENT_CAPTION')),_0x5e0b7b['plugins']['has']('ImageUploadEditing')&&_0x13bad2['enableCommand']('uploadImage'),_0x5e0b7b['plugins']['has']('ImageBlockEditing')&&_0x5e0b7b['plugins']['has']('ImageInlineEditing')&&(_0x13bad2['enableCommand']('imageTypeInline',(_0x59ebe0,_0xd9b058)=>{const _0x1a8e98=_0x5a9804['getClosestSelectedImageElement'](_0x5e0b7b['model']['document']['selection']);_0x5e0b7b['model']['change'](()=>{_0x13bad2['markBlockFormat'](_0x1a8e98,{'commandName':'imageTypeInline','commandParams':[_0xd9b058]},[],'convertBlockImageToInline');});}),_0x13bad2['enableCommand']('imageTypeBlock',(_0x5217e3,_0x594161)=>{_0x5e0b7b['model']['change'](_0x31de90=>{let _0x393993=_0x5a9804['getClosestSelectedImageElement'](_0x5e0b7b['model']['document']['selection']),_0x358bc2=_0x31de90['createRangeOn'](_0x393993);const _0xafe678=_0x4e9b49['fromPosition'](_0x358bc2['start'],'toPrevious'),_0x566729=_0x4e9b49['fromPosition'](_0x358bc2['end'],'toNext');_0x13bad2['forceDefaultExecution'](()=>_0x5217e3(_0x594161)),_0x393993=_0x5a9804['getClosestSelectedImageElement'](_0x5e0b7b['model']['document']['selection']),_0x358bc2=_0x31de90['createRangeOn'](_0x393993);const _0x38d8d6=_0x31de90['createRange'](_0xafe678,_0x566729);_0xafe678['detach'](),_0x566729['detach'](),_0x13bad2['markBlockFormat'](_0x393993,{'commandName':'imageTypeInline','commandParams':[_0x594161]},[],'convertInlineImageToBlock'),_0x38d8d6['start']['isBefore'](_0x358bc2['start'])&&_0x13bad2['markInsertion'](_0x31de90['createRange'](_0x38d8d6['start'],_0x358bc2['start']),'convertInlineImageToBlock'),_0x358bc2['end']['isBefore'](_0x38d8d6['end'])&&_0x13bad2['markInsertion'](_0x31de90['createRange'](_0x358bc2['end'],_0x38d8d6['end']),'convertInlineImageToBlock');});}),_0x13bad2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x13bad2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x13bad2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x13bad2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x13bad2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x13bad2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x66b34])=>{const _0x2b6568=_0x13bad2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x7c5480=_0x66b34['start'],_0x5f2ab0=_0x66b34['end'];const _0x8ba183=_0x5e0b7b['model']['schema']['getNearestSelectionRange'](_0x7c5480,'backward'),_0x4c9006=_0x5e0b7b['model']['schema']['getNearestSelectionRange'](_0x5f2ab0,'forward');_0x8ba183['isCollapsed']&&(_0x7c5480=_0x8ba183['start']),_0x4c9006['isCollapsed']&&(_0x5f2ab0=_0x4c9006['end']),_0x2b6568([_0x5e0b7b['model']['createRange'](_0x7c5480,_0x5f2ab0)]);}),_0x13bad2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5a9589),_0x13bad2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5a9589)),_0x5e0b7b['plugins']['has']('ImageCaptionEditing')&&(_0x13bad2['enableCommand']('toggleImageCaption',(_0xab4ae7,_0xd66819)=>{const _0x2fcb67=_0x5e0b7b['plugins']['get']('ImageCaptionUtils');let _0x498c42=_0x5a9804['getClosestSelectedImageElement'](_0x5e0b7b['model']['document']['selection']),_0x2f145d=_0x2fcb67['getCaptionFromImageModelElement'](_0x498c42);_0x5e0b7b['model']['change'](()=>{if(_0x2f145d)return void _0x13bad2['markDeletion'](_0x5e0b7b['model']['createRangeOn'](_0x2f145d));const _0x2f3db1=_0x5a9804['isBlockImage'](_0x498c42);_0xab4ae7(_0xd66819),_0x498c42=_0x5a9804['getClosestSelectedImageElement'](_0x5e0b7b['model']['document']['selection']),_0x2f145d=_0x2fcb67['getCaptionFromImageModelElement'](_0x498c42),_0x13bad2['markInsertion'](_0x5e0b7b['model']['createRangeOn'](_0x2f145d),_0x2f3db1?null:'imageCaption');});}),_0x13bad2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5a9589));const _0x4aec8b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4c0bb5(_0x16ca63,_0x5b0b08){const _0x2dfbc4=_0x4aec8b['findIndex'](({type:_0x3089d0,subType:_0x192b5c})=>_0x16ca63['type']==_0x3089d0&&_0x16ca63['subType']==_0x192b5c),_0x29af8d=_0x4aec8b['findIndex'](({type:_0x1e49fc,subType:_0x4b2898})=>_0x5b0b08['type']==_0x1e49fc&&_0x5b0b08['subType']==_0x4b2898);if(_0x2dfbc4<0x0||_0x29af8d<0x0)return!0x1;const _0x39cd40=_0x16ca63['getFirstRange'](),_0x537bc0=_0x5b0b08['getFirstRange']();if((0x0==_0x2dfbc4||0x1==_0x2dfbc4)&&0x2==_0x29af8d&&_0x39cd40['isIntersecting'](_0x537bc0))return!0x0;if(0x2==_0x2dfbc4&&0x3==_0x29af8d){const _0x43c00a=_0x13bad2['_findSuggestions'](_0x39cd40,'insertion')['filter'](({suggestion:_0x8d9121,meta:_0x362589})=>_0x362589['isOwn']&&'convertInlineImageToBlock'==_0x8d9121['subType']);if(_0x43c00a['length']>0x1&&_0x537bc0['end']['isEqual'](_0x39cd40['start']))return!0x0;if(0x1==_0x43c00a['length']&&(_0x39cd40['start']['isEqual'](_0x537bc0['end'])||_0x39cd40['end']['isEqual'](_0x537bc0['start'])))return!0x0;}if(0x3==_0x2dfbc4&&0x3==_0x29af8d&&_0x39cd40['start']['isBefore'](_0x537bc0['start'])){const _0x40b8ee=_0x39cd40['end']['nodeAfter'],_0x298e38=_0x537bc0['start']['nodeBefore'];return _0x5a9804['isBlockImage'](_0x40b8ee)&&_0x40b8ee===_0x298e38;}return!0x1;}function _0x5a9589(_0x622f4e,_0x28f8b9){return _0x4c0bb5(_0x622f4e,_0x28f8b9)?[_0x622f4e,_0x28f8b9]:_0x4c0bb5(_0x28f8b9,_0x622f4e)?[_0x28f8b9,_0x622f4e]:null;}_0x5e0b7b['plugins']['has']('ImageResize')&&(_0x13bad2['enableDefaultAttributesIntegration']('resizeImage'),_0x13bad2['registerBlockAttribute']('resizedWidth'),_0x13bad2['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x14a91e,'FORMAT_IMAGE_SIZE'))),_0x5e0b7b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x13bad2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x13bad2['registerBlockAttribute']('alt')),_0x5e0b7b['plugins']['has']('PictureEditing')&&(_0x13bad2['registerBlockAttribute']('sources'),_0x13bad2['descriptionFactory']['registerDescriptionCallback'](_0x237570=>{if('attribute'!=_0x237570['type'])return;const {data:_0x4d62fe}=_0x237570;return _0x4d62fe&&'sources'==_0x4d62fe['key']?{'type':'format','content':''}:void 0x0;})),_0x5e0b7b['plugins']['has']('ImageSizeAttributes')&&(_0x13bad2['registerBlockAttribute']('width'),_0x13bad2['registerBlockAttribute']('height'),_0x13bad2['descriptionFactory']['registerDescriptionCallback'](_0x4dad3d=>{if('attribute'!=_0x4dad3d['type'])return;const {data:_0x29e57f}=_0x4dad3d;return!_0x29e57f||'width'!=_0x29e57f['key']&&'height'!=_0x29e57f['key']?void 0x0:{'type':'format','content':''};})),_0x13bad2['descriptionFactory']['registerDescriptionCallback'](_0x3e6dbf=>{if(!!_0x4aec8b['find'](({type:_0x3445e3,subType:_0x55298e})=>_0x3e6dbf['type']==_0x3445e3&&_0x3e6dbf['subType']==_0x55298e))return _0x3e6dbf['previous']?{}:void 0x0;}),_0x13bad2['descriptionFactory']['registerDescriptionCallback'](_0x30e9b8=>{if('insertion'==_0x30e9b8['type']||'deletion'==_0x30e9b8['type']){const _0x15806d=_0x30e9b8['getContainedElement']();if(_0x15806d&&_0x15806d['is']('element','caption'))return{'type':'insertion'==_0x30e9b8['type']?'addObject':'removeObject','element':_0x15806d,'quantity':0x1};}}),_0x13bad2['descriptionFactory']['registerDescriptionCallback'](_0x1f852f=>'formatBlock'==_0x1f852f['type']&&'convertInlineImageToBlock'==_0x1f852f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1f852f['type']&&'convertBlockImageToInline'==_0x1f852f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x13bad2['descriptionFactory']['registerDescriptionCallback'](_0x10fff7=>{if('attribute'!=_0x10fff7['type'])return;const {data:_0x4b67f9}=_0x10fff7;if(!_0x4b67f9||'alt'!=_0x4b67f9['key'])return;const _0xa08061=_0x4b67f9['newValue'];return _0xa08061?{'type':'format','content':o(_0x14a91e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xa08061+'\x22')}:{'type':'format','content':o(_0x14a91e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fcac3=this['editor'],_0x5c5b6f=_0x1fcac3['locale'];_0x1fcac3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18db60=>{if('formatBlock'!=_0x18db60['type']&&'formatInline'!=_0x18db60['type'])return;const {data:_0x3b42ec}=_0x18db60;if(_0x3b42ec){if('imageTextAlternative'==_0x3b42ec['commandName']){const _0x20988f=_0x3b42ec['commandParams'][0x0]['newValue'];return _0x20988f?{'type':'format','content':o(_0x5c5b6f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x20988f+'\x22')}:{'type':'format','content':o(_0x5c5b6f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3b42ec['commandName']){const _0x51d469=_0x3b42ec['commandParams'][0x0]['width'];return _0x51d469?{'type':'format','content':o(_0x5c5b6f,'*Set\x20image\x20width:*\x20%0',_0x51d469)}:{'type':'format','content':o(_0x5c5b6f,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x4d8634{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x564e45=this['editor']['locale'],_0x519eb5=this['editor']['plugins']['get']('TrackChangesEditing');_0x519eb5['enableDefaultAttributesIntegration']('replaceImageSource'),_0x519eb5['registerBlockAttribute']('src'),_0x519eb5['descriptionFactory']['registerDescriptionCallback'](_0x5c0365=>{if('attribute'!=_0x5c0365['type'])return;const {data:_0xa7f4f3}=_0x5c0365;return _0xa7f4f3&&'src'==_0xa7f4f3['key']?_0xa7f4f3['newValue']&&_0xa7f4f3['oldValue']?{'type':'format','content':o(_0x564e45,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x9f79cf=this['editor']['plugins']['get']('TrackChangesEditing');_0x9f79cf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x9f79cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x9f79cf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x9f79cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa0d81f=this['editor'],_0x1fedbf=_0xa0d81f['locale'];_0xa0d81f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ccde7=>{if('formatBlock'!=_0x3ccde7['type']&&'formatInline'!=_0x3ccde7['type'])return;const {data:_0x58949e}=_0x3ccde7;if(!_0x58949e||'replaceImageSource'!=_0x58949e['commandName'])return;return{'type':'format','content':o(_0x1fedbf,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x4d8634{['afterInit'](){const _0x72d94c=this['editor'];if(!_0x72d94c['plugins']['has']('ImageStyleEditing'))return;const _0xa38f62=_0x72d94c['plugins']['get']('TrackChangesEditing'),_0x18bcda=_0x72d94c['plugins']['get']('ImageUtils'),_0x5a6b7e={};_0xa38f62['enableCommand']('imageStyle',(_0x292221,_0xf272d0)=>{const _0x334faa=_0x72d94c['plugins']['get']('Users')['me'],_0x5ccb13=_0x72d94c['commands']['get']('imageStyle');let _0x193e8e=_0x18bcda['getClosestSelectedImageElement'](_0x72d94c['model']['document']['selection']),_0x383cd4=_0x72d94c['model']['createRangeOn'](_0x193e8e),_0x3b4b33=_0x5ccb13['value'];if(_0x3b4b33==_0xf272d0['value'])return;const _0x5b42fc={'commandName':'imageStyle','commandParams':[_0xf272d0],'formatGroupId':_0x19a734()};_0x72d94c['model']['change'](()=>{if(_0xa38f62['getSuggestions']()['filter'](_0x12322c=>_0x12322c['isInContent']&&_0x334faa==_0x12322c['author']&&('formatBlock'==_0x12322c['type']||'formatInline'==_0x12322c['type'])&&('imageStylePreApply'==_0x12322c['subType']||'imageStylePostApply'==_0x12322c['subType'])&&_0x12322c['getFirstRange']()['isEqual'](_0x383cd4))['forEach'](_0x6f9779=>_0xa38f62['discardSuggestion'](_0x6f9779['head'])),_0x193e8e=_0x18bcda['getClosestSelectedImageElement'](_0x72d94c['model']['document']['selection']),_0x383cd4=_0x72d94c['model']['createRangeOn'](_0x193e8e),_0x5ccb13['refresh'](),_0x72d94c['commands']['get']('imageTypeInline')['refresh'](),_0x72d94c['commands']['get']('imageTypeBlock')['refresh'](),_0x3b4b33=_0x5ccb13['value'],_0x3b4b33!=_0xf272d0['value'])return _0x18bcda['isInlineImage'](_0x193e8e)&&_0x5ccb13['shouldConvertImageType'](_0xf272d0['value'],_0x193e8e)?(_0x292221({..._0xf272d0,'setImageSizes':!0x1}),_0x193e8e=_0x18bcda['getClosestSelectedImageElement'](_0x72d94c['model']['document']['selection']),void _0xa38f62['markBlockFormat'](_0x193e8e,{..._0x5b42fc,'commandReversedParams':[{'value':_0x3b4b33||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x18bcda['isBlockImage'](_0x193e8e)?_0xa38f62['markBlockFormat'](_0x193e8e,_0x5b42fc,[],'imageStylePostApply'):_0xa38f62['markInlineFormat'](_0x383cd4,_0x5b42fc,'imageStylePostApply'));});});for(const _0xa30598 of _0x72d94c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5a6b7e[_0xa30598['name']]=_0xa30598['title']['toLowerCase']();_0xa38f62['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xa38f62['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xa38f62['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xa38f62['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x32b780])=>{_0x18bcda['setImageNaturalSizeAttributes'](_0x32b780['getContainedElement']());}),_0xa38f62['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2b8800,_0x4b2d21)=>{_0xa38f62['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2b8800,{'commandName':_0x4b2d21['commandName'],'commandParams':_0x4b2d21['commandReversedParams']});}),_0xa38f62['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x210ee3,_0x51aafc){if(_0x4b2d86(_0x210ee3,_0x51aafc))return[_0x210ee3,_0x51aafc];if(_0x4b2d86(_0x51aafc,_0x210ee3))return[_0x51aafc,_0x210ee3];return null;});const _0x4d108d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4b2d86(_0x1dafda,_0x55c871){const _0x3983fd=_0x4d108d['findIndex'](({type:_0x57de67,subType:_0x4c067a})=>_0x1dafda['type']==_0x57de67&&_0x1dafda['subType']==_0x4c067a),_0x21dc40=_0x4d108d['findIndex'](({type:_0x31352f,subType:_0x1f67cf})=>_0x55c871['type']==_0x31352f&&_0x55c871['subType']==_0x1f67cf);if(_0x3983fd<0x0||_0x21dc40<0x0)return!0x1;const _0x177771=_0x1dafda['getFirstRange'](),_0xb1cf61=_0x55c871['getFirstRange']();if((0x0==_0x3983fd||0x1==_0x3983fd)&&0x2==_0x21dc40&&_0x177771['isIntersecting'](_0xb1cf61))return!0x0;if(0x2==_0x3983fd&&0x3==_0x21dc40){const _0x35029d=_0xa38f62['_findSuggestions'](_0x177771,'insertion')['filter'](({suggestion:_0x53ff76,meta:_0xb6e3a})=>_0xb6e3a['isOwn']&&'convertInlineImageToBlock'==_0x53ff76['subType']);if(_0x35029d['length']>0x1&&_0xb1cf61['end']['isEqual'](_0x177771['start']))return!0x0;if(0x1==_0x35029d['length']&&(_0x177771['start']['isEqual'](_0xb1cf61['end'])||_0x177771['end']['isEqual'](_0xb1cf61['start'])))return!0x0;}if(0x3==_0x3983fd&&0x3==_0x21dc40&&_0x177771['start']['isBefore'](_0xb1cf61['start'])){const _0x59302d=_0x177771['end']['nodeAfter'],_0xb03171=_0xb1cf61['start']['nodeBefore'];return _0x18bcda['isBlockImage'](_0x59302d)&&_0x59302d===_0xb03171;}return!0x1;}_0x72d94c['model']['document']['registerPostFixer'](()=>{let _0x46ab4d=!0x1;const _0x281048=Array['from'](_0x72d94c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x590711,data:_0x2706d9}of _0x281048){const {group:_0x4103eb,type:_0x333d66,subType:_0x4ad141,id:_0x29a5c8}=_0xa38f62['_splitMarkerName'](_0x590711);if('suggestion'==_0x4103eb&&_0xa38f62['hasSuggestion'](_0x29a5c8)){if('formatBlock'==_0x333d66&&('imageStylePreApply'==_0x4ad141||'imageStylePostApply'==_0x4ad141)){const _0x32586e=_0xa38f62['getSuggestion'](_0x29a5c8);if(_0x2706d9['newRange']){const _0x3da638=_0x32586e['getFirstRange']()['getContainedElement']();if(_0x18bcda['isBlockImage'](_0x3da638))continue;_0xa38f62['discardSuggestion'](_0x32586e),_0x46ab4d=!0x0;}}if('insertion'==_0x333d66&&'imageCaption'==_0x4ad141&&!_0x2706d9['newRange']){const _0x32f154=_0xa38f62['getSuggestion'](_0x29a5c8);_0x32f154['next']&&_0x32f154['next']['isInContent']&&(_0xa38f62['discardSuggestion'](_0x32f154['next']),_0x46ab4d=!0x0);}}}return _0x46ab4d;}),this['_registerLegacyDescription'](_0x5a6b7e);}['_registerLegacyDescription'](_0x1eba3a){const _0x48883a=this['editor'],_0x3589a6=_0x48883a['locale'];_0x48883a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34f0fc=>{if('formatBlock'!=_0x34f0fc['type']&&'formatInline'!=_0x34f0fc['type'])return;const {data:_0x44de38}=_0x34f0fc;if(!_0x44de38||'imageStyle'!=_0x44de38['commandName'])return;const _0x32d3da=_0x44de38['commandParams'][0x0]['value'];return _0x4c3075('side'===_0x32d3da?o(_0x3589a6,'FORMAT_SIDE_IMAGE'):_0x1eba3a[_0x32d3da]||_0x32d3da);function _0x4c3075(_0x1a38d1){return{'type':'format','content':o(_0x3589a6,'*Format:*\x20%0',_0x1a38d1)};}});}}class ct extends _0x4d8634{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5aefd1){super(_0x5aefd1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4f1758=this['editor'],_0x4ec67d=_0x4f1758['commands']['get']('importWord'),_0x4c4177=_0x4f1758['commands']['get']('trackChanges');_0x4ec67d&&(_0x4ec67d['on']('execute',(_0x257b72,[,_0x54b888])=>{this['_trackChangesValueDuringImport']=_0x4c4177['value'],_0x54b888['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4ec67d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4ec67d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4c4177['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4f1758['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1f4d76,_0x5f1908){const {suggestions:_0x2c55e4}=_0x5f1908,_0x22bc7a=this['editor']['commands']['get']('trackChanges'),_0x19b9c7=_0x22bc7a['value'];this['_trackChangesValueDuringImport']!==_0x19b9c7&&(_0x22bc7a['execute'](),this['_trackChangesExecuted']=!0x0),_0x2c55e4&&_0x2c55e4['forEach'](({id:_0x13284a,type:_0x2feb19,author:_0x7b97ca,created_at:_0x47ee2c})=>{const _0x15a1ad={'id':_0x13284a,'type':_0x2feb19,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x7b97ca,'createdAt':_0x47ee2c?new Date(_0x47ee2c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x15a1ad);});}}class ut extends _0x4d8634{['afterInit'](){const _0xf1d3b1=this['editor'],_0x3b1265=_0xf1d3b1['plugins']['get']('TrackChangesEditing');if(_0xf1d3b1['plugins']['has']('IndentEditing')&&(_0x3b1265['enableCommand']('indent'),_0x3b1265['enableCommand']('outdent')),_0xf1d3b1['plugins']['has']('IndentBlock')){for(const _0x37651f of['indentBlock','outdentBlock'])_0x3b1265['enableDefaultAttributesIntegration'](_0x37651f);}const _0x3caf08=_0xf1d3b1['locale'];_0x3b1265['registerBlockAttribute']('blockIndent'),_0x3b1265['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3caf08,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d16e4=this['editor'],_0x46cd13=_0x4d16e4['locale'],_0x1475a4=_0x4d16e4['plugins']['get']('TrackChangesEditing');_0x1475a4['descriptionFactory']['registerDescriptionCallback'](_0x3c21e3=>{if('formatBlock'!=_0x3c21e3['type'])return;const {data:_0xd53c17}=_0x3c21e3;if(!_0xd53c17)return;if('indentBlock'!=_0xd53c17['commandName']&&'outdentBlock'!=_0xd53c17['commandName'])return;const _0x5754c7=_0x3c21e3['getItems']()[0x0],_0x3e0fd1=_0x1475a4['descriptionFactory']['getItemLabel'](_0x5754c7);return'indentBlock'==_0xd53c17['commandName']?{'type':'format','content':o(_0x46cd13,'*Indent:*\x20%0',_0x3e0fd1)}:'outdentBlock'==_0xd53c17['commandName']?{'type':'format','content':o(_0x46cd13,'*Outdent:*\x20%0',_0x3e0fd1)}:void 0x0;});}}class ft extends _0x4d8634{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x4d8634{['afterInit'](){const _0x2fe6a7=this['editor'];if(!_0x2fe6a7['plugins']['has']('LinkEditing'))return;const _0x2a2cd2=_0x2fe6a7['plugins']['get']('TrackChangesEditing'),_0x2acdfc=_0x2fe6a7['commands']['get']('link');_0x2a2cd2['enableDefaultAttributesIntegration']('link'),_0x2a2cd2['enableDefaultAttributesIntegration']('unlink'),_0x2a2cd2['registerInlineAttribute']('linkHref');for(const _0xdad56f of _0x2acdfc['manualDecorators'])_0x2a2cd2['registerInlineAttribute'](_0xdad56f['id']),_0x2a2cd2['descriptionFactory']['registerAttributeLabel'](_0xdad56f['id'],'link\x20('+_0xdad56f['label']['toLowerCase']()+')');_0x2a2cd2['descriptionFactory']['registerDescriptionCallback'](_0x1fddd6=>{if('attribute'!=_0x1fddd6['type'])return;const {data:_0x1a86ae}=_0x1fddd6;if(!_0x1a86ae||'linkHref'!=_0x1a86ae['key'])return;const _0x32984d=_0x1a86ae['newValue'],_0x47ff38=_0x2fe6a7['locale'];return{'type':'format','content':null==_0x32984d?o(_0x47ff38,'*Remove\x20link*'):o(_0x47ff38,'*Set\x20link:*\x20%0','\x22'+_0x32984d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33e939=this['editor'],_0x41e5ee=_0x33e939['locale'];_0x33e939['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc834d7=>{if('formatInline'!=_0xc834d7['type'])return;const {data:_0x1c638c}=_0xc834d7;if(_0x1c638c){if('link'==_0x1c638c['commandName']){const _0x4838eb=_0x1c638c['commandParams'][0x0];return{'type':'format','content':o(_0x41e5ee,'*Set\x20link:*\x20%0','\x22'+_0x4838eb+'\x22')};}return'unlink'==_0x1c638c['commandName']?{'type':'format','content':o(_0x41e5ee,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x4d8634{['afterInit'](){const _0x9416b1=this['editor'],_0x270d33=_0x9416b1['locale'];if(!_0x9416b1['plugins']['has']('LegacyListEditing'))return;const _0x3aed01=_0x9416b1['plugins']['get']('TrackChangesEditing'),_0x1daa57=_0x9416b1['plugins']['has']('LegacyTodoListEditing');function _0x1b63ed(_0x4daf7b){return()=>{const _0x1bea49=_0x9416b1['model']['document']['selection'],_0x1fe2e3=_0x9416b1['commands']['get'](_0x4daf7b);if(_0x1fe2e3['value'])return void _0x9416b1['execute']('paragraph',{});const _0x5cae29=_0x4daf7b['slice'](0x0,-0x4),_0x25ba0a=function(_0x244ba4,_0x4fef0c,_0x1cc3da){let _0x1f29b5=Array['from'](_0x244ba4)['filter'](_0x36282c=>function(_0x3564d8,_0x50cb40){return _0x50cb40['checkChild'](_0x3564d8['parent'],'listItem')&&!_0x50cb40['isObject'](_0x3564d8);}(_0x36282c,_0x1cc3da));_0x1f29b5=_0x1f29b5['filter'](_0x32bbcb=>!_0x32bbcb['is']('element','listItem')||_0x32bbcb['getAttribute']('listType')!=_0x4fef0c);const _0x5958ba=new Set();for(const _0x1f2f86 of _0x1f29b5)_0x1f2f86['is']('element','listItem')?_0x5958ba['add'](Le(_0x1f2f86)):_0x5958ba['add'](_0x1f2f86);return Array['from'](_0x5958ba);}(_0x1bea49['getSelectedBlocks'](),_0x5cae29,_0x9416b1['model']['schema']);_0x9416b1['model']['change'](()=>{for(const _0x8dd2c3 of _0x25ba0a)_0x3aed01['markBlockFormat'](_0x8dd2c3,{'commandName':_0x4daf7b,'commandParams':[{'forceValue':!_0x1fe2e3['value']}],'formatGroupId':'blockName'},Ee(_0x8dd2c3));});};}function _0x1955bc(_0x51faca){return()=>{const _0x4f60c9=function(_0x3a9691){let _0x13e5a1=Array['from'](_0x3a9691);const _0x1622b3=_0x13e5a1['findIndex'](_0x10796c=>'listItem'!=_0x10796c['name']);return _0x1622b3>-0x1&&(_0x13e5a1=_0x13e5a1['slice'](0x0,_0x1622b3)),_0x13e5a1;}(_0x9416b1['model']['document']['selection']['getSelectedBlocks']()),_0x415310=_0x9416b1['model']['createRange'](_0x9416b1['model']['createPositionAt'](_0x4f60c9[0x0],'before'),_0x9416b1['model']['createPositionAt'](_0x4f60c9[_0x4f60c9['length']-0x1],'end'));_0x9416b1['model']['change'](()=>{_0x3aed01['markBlockFormat'](_0x415310,{'commandName':_0x51faca,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5a8c94){const _0x56facd=new Set();for(const _0x4a011a of _0x5a8c94){let _0x4da3ea=_0x4a011a['nextSibling'];for(;_0x4da3ea&&_0x4da3ea['getAttribute']('listIndent')>_0x4a011a['getAttribute']('listIndent');)_0x56facd['add'](_0x4da3ea),_0x4da3ea=_0x4da3ea['nextSibling'];}return Array['from'](_0x56facd);}(_0x4f60c9));});};}_0x3aed01['enableCommand']('numberedList',_0x1b63ed('numberedList')),_0x3aed01['enableCommand']('bulletedList',_0x1b63ed('bulletedList')),_0x1daa57&&_0x3aed01['enableCommand']('todoList',_0x1b63ed('todoList')),_0x3aed01['enableCommand']('indentList',_0x1955bc('indentList')),_0x3aed01['enableCommand']('outdentList',_0x1955bc('outdentList')),_0x1daa57&&_0x3aed01['enableCommand']('checkTodoList',()=>{const _0x3dd0ac=_0x9416b1['commands']['get']('checkTodoList'),_0xafe8b4=Array['from'](_0x3dd0ac['_selectedElements']);_0xafe8b4['filter'](_0x4c11a8=>_0x4c11a8['getAttribute']('todoListChecked')!=_0x3dd0ac['value']),_0x9416b1['model']['change'](()=>{for(const _0x48dd87 of _0xafe8b4)_0x3aed01['markBlockFormat'](_0x48dd87,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3dd0ac['value']}]});});}),_0x3aed01['descriptionFactory']['registerElementLabel']('listItem',_0x206e14=>o(_0x270d33,'ELEMENT_LIST_ITEM',_0x206e14)),_0x3aed01['descriptionFactory']['registerDescriptionCallback'](_0x354648=>{if('formatBlock'!=_0x354648['type']&&'formatInline'!=_0x354648['type'])return;const {data:_0x5a15f8}=_0x354648;if(_0x5a15f8){if('numberedList'==_0x5a15f8['commandName']||'bulletedList'==_0x5a15f8['commandName']||'todoList'==_0x5a15f8['commandName'])switch(_0x5a15f8['commandName']['replace']('List','')){case'bulleted':return _0x11846a(o(_0x270d33,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x11846a(o(_0x270d33,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x11846a(o(_0x270d33,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5a15f8['commandName'])return{'type':'format','content':o(_0x270d33,'*Indent:*\x20%0',o(_0x270d33,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5a15f8['commandName'])return{'type':'format','content':o(_0x270d33,'*Outdent:*\x20%0',o(_0x270d33,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5a15f8['commandName'])return _0x5a15f8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x270d33,'*Check\x20item*')}:{'type':'format','content':o(_0x270d33,'*Uncheck\x20item*')};}function _0x11846a(_0x404823){return{'type':'format','content':o(_0x270d33,'*Change\x20to:*\x20%0',_0x404823)};}});}}function Le(_0x12b609){const _0x4cfdc7=_0x12b609['getAttribute']('listIndent');if(0x0==_0x4cfdc7)return _0x12b609;let _0x329644=_0x12b609;for(;_0x12b609['previousSibling']&&_0x12b609['previousSibling']['is']('element','listItem');){const _0x523cb0=_0x12b609['previousSibling']['getAttribute']('listIndent');if(_0x523cb0==_0x4cfdc7)_0x329644=_0x12b609['previousSibling'];else{if(_0x523cb0<_0x4cfdc7)break;}_0x12b609=_0x12b609['previousSibling'];}return _0x329644;}function Ee(_0x27811b){const _0x5df519=[];if(_0x27811b['is']('element','listItem')&&_0x27811b['getAttribute']('listIndent')>0x0){let _0x2e8ab3=_0x27811b['nextSibling'];for(;_0x2e8ab3&&'listItem'==_0x2e8ab3['name']&&_0x2e8ab3['getAttribute']('listIndent')==_0x27811b['getAttribute']('listIndent');)_0x5df519['push'](_0x2e8ab3),_0x2e8ab3=_0x2e8ab3['nextSibling'];}return _0x5df519;}class Q extends _0x4d8634{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xf48187=this['editor']['config']['get']('list.properties'),_0x4b24bc=this['editor']['plugins']['get']('TrackChangesEditing');_0xf48187['styles']&&_0x4b24bc['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xf48187['reversed']&&_0x4b24bc['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xf48187['startIndex']&&_0x4b24bc['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4b24bc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x464105,_0x2ad14f={}){const _0x403260=this['editor']['plugins']['get']('TrackChangesEditing'),_0x246666=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x403260['markMultiRangeBlockFormat'](_0x246666,{'commandName':'listStyle','commandParams':[{'type':_0x2ad14f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xe52775,_0x4ebb0b={}){const _0x49d455=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bc252=this['_getSuggestionBlocks'](_0x4de914=>_0x4de914['is']('element','listItem')&&'numbered'===_0x4de914['getAttribute']('listType'));if(_0x5bc252['length']<0x1)return;const _0x3c172b=_0x5bc252['map'](_0x226221=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x226221,'before'),this['editor']['model']['createPositionAt'](_0x226221,0x0)));this['editor']['model']['change'](()=>{_0x49d455['markMultiRangeBlockFormat'](_0x3c172b,{'commandName':'listReversed','commandParams':[{'reversed':_0x4ebb0b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x22d44b,_0x31e2fa={}){const _0x63ed94=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4217e1=this['_getSuggestionBlocks'](_0x40db61=>_0x40db61['is']('element','listItem')&&'numbered'===_0x40db61['getAttribute']('listType'));if(_0x4217e1['length']<0x1)return;const _0x426fba=_0x4217e1['map'](_0xbee648=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xbee648,'before'),this['editor']['model']['createPositionAt'](_0xbee648,0x0)));this['editor']['model']['change'](()=>{_0x63ed94['markMultiRangeBlockFormat'](_0x426fba,{'commandName':'listStart','commandParams':[{'startIndex':_0x31e2fa['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x565b8e){if('formatBlock'!=_0x565b8e['type']&&'formatInline'!=_0x565b8e['type'])return;const _0x4f498b=this['editor']['locale'],{data:_0xecbf27}=_0x565b8e;if(!_0xecbf27)return;let _0x2ab440,_0x2889cc;switch(_0xecbf27['commandName']){case'listStyle':_0x2ab440='*Change\x20to:*\x20%0',_0x2889cc={'type':'format','content':o(_0x4f498b,_0x2ab440,o(_0x4f498b,this['_getTranslationKeyForListStyle'](_0xecbf27['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2ab440=_0xecbf27['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2889cc={'type':'format','content':o(_0x4f498b,_0x2ab440)};break;case'listStart':_0x2ab440='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2889cc={'type':'format','content':o(_0x4f498b,_0x2ab440,_0xecbf27['commandParams'][0x0]['startIndex'])};}return _0x2889cc;}['_getSuggestionBlocksForListStyle'](){const _0x1646cc=this['editor']['plugins']['get']('LegacyListUtils');let _0x13e2b1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x13e2b1[0x0]?.['is']('element','listItem')&&_0x13e2b1['unshift'](..._0x1646cc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x13e2b1[_0x13e2b1['length']-0x1]?.['is']('element','listItem')&&_0x13e2b1['push'](..._0x1646cc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x13e2b1=[...new Set(_0x13e2b1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x13e2b1=_0x13e2b1['filter'](_0x41df35=>_0x41df35['is']('element','listItem'))),_0x13e2b1;}['_getSuggestionBlocks'](_0xa11605){const _0x957588=this['editor']['plugins']['get']('LegacyListUtils');let _0x21fc3b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xa11605)['map'](_0x225f64=>{const _0x20479f=this['editor']['model']['createPositionAt'](_0x225f64,0x0);return[..._0x957588['getSiblingNodes'](_0x20479f,'backward'),..._0x957588['getSiblingNodes'](_0x20479f,'forward')];})['flat']();return _0x21fc3b=[...new Set(_0x21fc3b)],_0x21fc3b;}['_getTranslationKeyForListStyle'](_0x1bd8d1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1bd8d1)||'default')['toUpperCase']()+'_LIST_'+_0x1bd8d1['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x4d8634{['afterInit'](){const _0x5bfefd=this['editor'];if(!_0x5bfefd['plugins']['has']('MediaEmbedEditing'))return;const _0x36f3d4=_0x5bfefd['plugins']['get']('TrackChangesEditing'),_0xe6d902=_0x5bfefd['locale'];_0x36f3d4['enableCommand']('mediaEmbed'),_0x36f3d4['descriptionFactory']['registerElementLabel']('media',_0x4b3d7d=>o(_0xe6d902,'ELEMENT_MEDIA',_0x4b3d7d)),_0x5bfefd['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4a4906,{writer:_0x1424c0,options:_0x470f3e})=>{if(_0x470f3e['showSuggestionHighlights'])return _0x1424c0['createEmptyElement']('div');},'converterPriority':'high'}),_0x5bfefd['data']['downcastDispatcher']['on']('attribute:url:media',(_0xb50cfd,_0x249229,_0x5db26d)=>{_0x5db26d['options']['showSuggestionHighlights']&&_0xb50cfd['stop']();},{'priority':'high'});}}class mt extends _0x4d8634{['afterInit'](){const _0x58fa4a=this['editor'];_0x58fa4a['plugins']['has']('MentionEditing')&&_0x58fa4a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x4d8634{['afterInit'](){const _0x2eb677=this['editor'];if(!_0x2eb677['plugins']['has']('MergeFieldsEditing'))return;const _0x1d2786=_0x2eb677['plugins']['get']('TrackChangesEditing'),_0x43eadc=_0x2eb677['locale'];_0x1d2786['enableCommand']('insertMergeField'),_0x1d2786['enableCommand']('insertMergeFieldBlock'),_0x1d2786['enableCommand']('insertMergeFieldImage'),_0x1d2786['descriptionFactory']['registerElementLabel']('mergeField',_0x3f75f1=>o(_0x43eadc,'ELEMENT_MERGE_FIELD',_0x3f75f1)),_0x1d2786['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x26aead=>o(_0x43eadc,'ELEMENT_MERGE_FIELD',_0x26aead)),_0x1d2786['descriptionFactory']['registerDescriptionCallback'](_0x58d55c=>{if('insertion'!=_0x58d55c['type']&&'deletion'!=_0x58d55c['type'])return;const _0xbda53f=_0x58d55c['getContainedElement']();if(null==_0xbda53f)return;const _0x2b6406=_0x2eb677['plugins']['get']('MergeFieldsEditing');let _0xdcbf99;switch(_0x2b6406['getMergeFieldType'](_0xbda53f)){case null:return;case'image':{const _0x5469d4=_0x2b6406['unwrapAffixes'](_0xbda53f['getAttribute']('src'));_0xdcbf99=_0x2b6406['getLabel'](_0x5469d4)||_0x5469d4;break;}default:{const _0x20be8d=_0xbda53f['getAttribute']('id');_0xdcbf99=_0x2b6406['getLabel'](_0x20be8d)||_0x20be8d;break;}}return'insertion'==_0x58d55c['type']?{'type':'insertion','content':o(_0x43eadc,'*Insert:*\x20%0','\x22'+_0xdcbf99+'\x22\x20'+o(_0x43eadc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x43eadc,'*Remove:*\x20%0','\x22'+_0xdcbf99+'\x22\x20'+o(_0x43eadc,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x4d8634{['afterInit'](){const _0x391153=this['editor'],_0x83a1bb=_0x391153['plugins']['get']('TrackChangesEditing');_0x391153['plugins']['has']('MultiLevelList')&&(_0x83a1bb['enableDefaultAttributesIntegration']('multiLevelList'),_0x83a1bb['registerBlockAttribute']('listMarkerStyle'),_0x83a1bb['descriptionFactory']['registerDescriptionCallback'](_0x21c99b=>this['handleDescriptions'](_0x21c99b)));}['handleDescriptions'](_0x37f3c4){const _0x1b44c9=this['editor']['locale'],{data:_0x1dafca}=_0x37f3c4,_0x36d4ab={'type':'format','content':''};if(_0x1dafca&&'listMarkerStyle'==_0x1dafca['key']){if(!_0x1dafca['oldValue'])return{'type':'format','content':o(_0x1b44c9,'*Set\x20format:*\x20%0',o(_0x1b44c9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1dafca['newValue']+')'};if(!_0x1dafca['newValue']){let _0x55816a=_0x37f3c4['head'];for(;_0x55816a;){if(_0x55816a['data']&&'listType'==_0x55816a['data']['key']&&_0x55816a['data']['newValue'])return _0x36d4ab;_0x55816a=_0x55816a['next'];}return{'type':'format','content':o(_0x1b44c9,'*Remove\x20format:*\x20%0',o(_0x1b44c9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1dafca['oldValue']+')'};}}}}class kt extends _0x4d8634{['afterInit'](){const _0x523e89=this['editor'];if(!_0x523e89['plugins']['has']('PageBreakEditing'))return;_0x523e89['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xf881c1=_0x523e89['plugins']['get']('TrackChangesEditing'),_0x11d1e9=_0x523e89['locale'];_0xf881c1['descriptionFactory']['registerElementLabel']('pageBreak',_0x43ff08=>o(_0x11d1e9,'ELEMENT_PAGE_BREAK',_0x43ff08));}}class bt extends _0x4d8634{['afterInit'](){const _0x5d9481=this['editor'];if(!_0x5d9481['plugins']['has']('Paragraph'))return;const _0x3d66c9=_0x5d9481['locale'],_0x2cd276=_0x5d9481['plugins']['get']('TrackChangesEditing');_0x2cd276['descriptionFactory']['registerElementLabel']('paragraph',_0xd8f59=>o(_0x3d66c9,'ELEMENT_PARAGRAPH',_0xd8f59)),_0x2cd276['enableDefaultAttributesIntegration']('paragraph'),_0x2cd276['enableCommand']('insertParagraph'),_0x5d9481['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5d9481),{'priority':'highest'}),_0x5d9481['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xdaea40,_0x9cbb5f,_0x2768d0)=>{_0x2768d0['options']['showSuggestionHighlights']&&nr(_0x5d9481,{'showActiveMarker':!0x1})(_0xdaea40,_0x9cbb5f,_0x2768d0);},{'priority':'highest'});const _0x251353=_0x2cd276['descriptionFactory'];_0x251353['registerDescriptionCallback'](_0x571f6b=>{if('insertion'!==_0x571f6b['type'])return;const {start:_0x53f546,end:_0x2b5c79}=_0x571f6b['getFirstRange']();if(!_0x53f546['isTouching'](_0x2b5c79)||!_0x53f546['nodeAfter'])return;const _0x182d59=_0x5d9481['model']['schema'],_0x3784de=_0x53f546['nodeAfter'];return _0x182d59['isBlock'](_0x3784de)&&!_0x182d59['isLimit'](_0x3784de)&&_0x182d59['checkChild'](_0x3784de,'$text')?{'type':'insertion','content':o(_0x3d66c9,'*Insert:*\x20%0',_0x251353['getItemLabel'](_0x3784de,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25d03c=this['editor'],_0x40a54e=_0x25d03c['locale'];_0x25d03c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x504f8a=>{if('formatBlock'!=_0x504f8a['type'])return;const {data:_0x83e8d6}=_0x504f8a;return _0x83e8d6&&'paragraph'==_0x83e8d6['commandName']?{'type':'format','content':o(_0x40a54e,'*Change\x20to:*\x20%0',o(_0x40a54e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x52b5ff,{showActiveMarker:_0x399672=!0x0}={}){return(_0x1ed879,_0x5455cd,_0x576d9d)=>{const _0x5a53c8=_0x52b5ff['plugins']['get']('TrackChangesEditing'),_0x347831=_0x5455cd['markerRange']['start'],_0x2caf32=_0x5455cd['markerRange']['end'],_0x473645=_0x52b5ff['model']['schema'];if(!_0x347831['isTouching'](_0x2caf32)||!_0x347831['nodeAfter'])return;const _0x2a87e9=_0x347831['nodeAfter'];if(_0x473645['isBlock'](_0x2a87e9)&&!_0x473645['isLimit'](_0x2a87e9)&&_0x473645['checkChild'](_0x2a87e9,'$text')){if(!_0x576d9d['consumable']['consume'](_0x5455cd['markerRange'],_0x1ed879['name']))return;const {authorId:_0x5f3495}=_0x5a53c8['_splitMarkerName'](_0x5455cd['markerName']),_0xafa9e1=_0x576d9d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5f3495}),_0x297b0b=_0x576d9d['mapper']['toViewPosition'](_0x2caf32);_0x399672&&_0x5a53c8['activeMarkers']['includes'](_0x5455cd['markerName'])&&_0x576d9d['writer']['addClass']('ck-suggestion-marker--active',_0xafa9e1),_0x576d9d['writer']['insert'](_0x297b0b,_0xafa9e1),_0x576d9d['mapper']['bindElementToMarker'](_0xafa9e1,_0x5455cd['markerName']);}};}class yt extends _0x4d8634{['afterInit'](){const _0x2b62d1=this['editor'];if(!_0x2b62d1['plugins']['has']('RemoveFormatEditing'))return;_0x2b62d1['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x343c85=this['editor'];_0x343c85['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b5fcf=>{if('formatBlock'!=_0x5b5fcf['type']&&'formatInline'!=_0x5b5fcf['type'])return;const {data:_0x2598e2}=_0x5b5fcf;return _0x2598e2&&'removeFormat'==_0x2598e2['commandName']?{'type':'format','content':o(_0x343c85['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x4d8634{['afterInit'](){const _0x5d2164=this['editor'];if(!_0x5d2164['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x470249=_0x5d2164['plugins']['get']('TrackChangesEditing');_0x470249['enableCommand']('goToPreviousRestrictedEditingException'),_0x470249['enableCommand']('goToNextRestrictedEditingException');const _0x17e373=_0x5d2164['plugins']['get']('RestrictedEditingModeEditing');_0x17e373['enableCommand']('trackChanges'),_0x17e373['enableCommand']('acceptSuggestion'),_0x17e373['enableCommand']('discardSuggestion'),_0x17e373['enableCommand']('acceptAllSuggestions'),_0x17e373['enableCommand']('discardAllSuggestions'),_0x17e373['enableCommand']('acceptSelectedSuggestions'),_0x17e373['enableCommand']('discardSelectedSuggestions');}}class St extends _0x4d8634{static get['requires'](){return[_0x50dd18];}['init'](){const _0x3d3086=this['editor'],_0x5a4b18=_0x3d3086['plugins']['get']('TrackChangesEditing');_0x5a4b18['enableCommand']('shiftEnter'),_0x3d3086['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3d3086),{'priority':'high'}),_0x3d3086['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3d3086),{'priority':'high'}),_0x3d3086['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c9f95,_0x1e8a79,_0xa175b6)=>{_0xa175b6['options']['showSuggestionHighlights']&&je(_0x3d3086,{'showActiveMarker':!0x1})(_0x2c9f95,_0x1e8a79,_0xa175b6);}),_0x5a4b18['descriptionFactory']['registerElementLabel']('softBreak',_0x575f3f=>o(_0x3d3086['locale'],'ELEMENT_LINE_BREAK',_0x575f3f));}}function je(_0xc7bf4,{showActiveMarker:_0x3b0c88=!0x0}={}){return(_0x31ddeb,_0x16357f,_0x4b69fb)=>{const _0x1fe7a9=_0xc7bf4['plugins']['get']('TrackChangesEditing');if(!_0x4b69fb['consumable']['test'](_0x16357f['markerRange'],_0x31ddeb['name']))return;const _0x13dab3=_0xc7bf4['model'];for(const _0x1601eb of _0x16357f['markerRange']['getItems']()){if(!_0x1601eb['is']('element','softBreak'))continue;const _0x340726='deletion'==_0x16357f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x163694}=_0x1fe7a9['_splitMarkerName'](_0x16357f['markerName']),_0x11b40e=_0x4b69fb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x340726,'data-author-id':_0x163694}),_0x223354=_0x4b69fb['mapper']['toViewPosition'](_0x13dab3['createPositionBefore'](_0x1601eb));_0x3b0c88&&_0x1fe7a9['activeMarkers']['includes'](_0x16357f['markerName'])&&_0x4b69fb['writer']['addClass']('ck-suggestion-marker--active',_0x11b40e),_0x4b69fb['writer']['insert'](_0x223354,_0x11b40e),_0x4b69fb['mapper']['bindElementToMarker'](_0x11b40e,_0x16357f['markerName']);}};}class At extends _0x4d8634{['afterInit'](){const _0x48a0a3=this['editor'],_0x14bb91=_0x48a0a3['model'],_0x6f1a81=_0x48a0a3['locale'];if(!_0x48a0a3['plugins']['has']('StandardEditingModeEditing'))return;const _0x4adf80=_0x48a0a3['plugins']['get']('TrackChangesEditing'),_0x33b9aa='restrictedEditingException',_0x583e5b=_0x48a0a3['commands']['get'](_0x33b9aa);_0x4adf80['enableCommand'](_0x33b9aa,(_0xb22a00,_0x28702e={})=>{const _0x244387=_0x14bb91['document']['selection'];if(_0x244387['isCollapsed'])return void _0xb22a00(_0x28702e);const _0x29d104=void 0x0!==_0x28702e['forceValue']?_0x28702e['forceValue']:!_0x583e5b['value'];_0x14bb91['change'](()=>{const _0x5d9a67=Array['from'](_0x244387['getRanges']());for(const _0x54af87 of _0x5d9a67){const _0x584729=_0x29d104?[_0x54af87]:io(_0x33b9aa,_0x54af87,_0x14bb91);for(const _0x2f70cf of _0x584729)_0x4adf80['markInlineFormat'](_0x2f70cf,{'commandName':_0x33b9aa,'commandParams':[{'forceValue':_0x29d104}]});}});}),_0x4adf80['descriptionFactory']['registerDescriptionCallback'](_0x1d9c92=>{if('formatBlock'!=_0x1d9c92['type']&&'formatInline'!=_0x1d9c92['type'])return;const {data:_0x111035}=_0x1d9c92;return _0x111035&&_0x111035['commandName']==_0x33b9aa?_0x111035['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6f1a81,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x6f1a81,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x4d8634{['afterInit'](){const _0x487ea5=this['editor'];if(!_0x487ea5['plugins']['has']('Style')||!_0x487ea5['plugins']['has']('DataSchema'))return;const _0x196fe2=_0x487ea5['plugins']['get']('TrackChangesEditing'),_0x41e1a9=_0x487ea5['locale'],_0x1fa733=_0x487ea5['config']['get']('style')||{},_0x35089c=_0x487ea5['plugins']['get']('GeneralHtmlSupport'),_0x3b0c21=_0x487ea5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x487ea5['plugins']['get']('DataSchema'),_0x1fa733['definitions']);_0x196fe2['enableDefaultAttributesIntegration']('style');const _0xefdf13=new Set();for(const _0x565023 of _0x3b0c21['block']){const _0x56c5c6=_0x35089c['getGhsAttributeNameForElement'](_0x565023['element']);_0xefdf13['add'](_0x56c5c6);}const _0x35bb55=new Set();for(const _0x34501a of _0x3b0c21['inline']){const _0x19bfc8=_0x35089c['getGhsAttributeNameForElement'](_0x34501a['element']);_0x35bb55['add'](_0x19bfc8);for(const _0x2fd029 of _0x34501a['ghsAttributes'])_0x35bb55['add'](_0x2fd029);}for(const _0x4e2fb4 of _0xefdf13)_0x196fe2['registerBlockAttribute'](_0x4e2fb4),_0x196fe2['descriptionFactory']['registerAttributeLabel'](_0x4e2fb4,o(_0x41e1a9,'FORMAT_STYLE'));for(const _0x243f31 of _0x35bb55)_0x196fe2['registerInlineAttribute'](_0x243f31),_0x196fe2['descriptionFactory']['registerAttributeLabel'](_0x243f31,o(_0x41e1a9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x402f7=this['editor'],_0xa9dd10=_0x402f7['locale'];_0x402f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1797e7=>{if('formatBlock'!=_0x1797e7['type']&&'formatInline'!=_0x1797e7['type'])return;const {data:_0x251cf7}=_0x1797e7;return _0x251cf7&&'style'===_0x251cf7['commandName']?_0x251cf7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa9dd10,'*Set\x20format:*\x20%0',_0x251cf7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xa9dd10,'*Remove\x20format:*\x20%0',_0x251cf7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x4d8634{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x9db0a6){super(_0x9db0a6),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1b3405=this['editor'],_0x6dfef7=_0x1b3405['model']['document']['selection'];if(!_0x1b3405['plugins']['has']('TableEditing'))return;const _0x4dc78c=_0x1b3405['locale'],_0x52164c=_0x1b3405['plugins']['get']('TrackChangesEditing'),_0x4154f0=_0x1b3405['plugins']['get']('TableUtils');_0x52164c['descriptionFactory']['registerElementLabel']('table',_0x197558=>o(_0x4dc78c,'ELEMENT_TABLE',_0x197558)),this['_setupColumnsRowsFixing'](),_0x52164c['enableCommand']('insertTable'),_0x52164c['enableCommand']('selectTableRow'),_0x52164c['enableCommand']('selectTableColumn');for(const _0x43f2dc of['insertTableRowAbove','insertTableRowBelow']){const _0xaeb81c=_0x1b3405['commands']['get'](_0x43f2dc);_0x52164c['enableCommand'](_0x43f2dc,_0x503609=>{_0x1b3405['model']['change'](_0x580555=>{_0x503609();const _0x415e10='above'===_0xaeb81c['order'],_0x1b4aaf=_0x4154f0['getSelectionAffectedTableCells'](_0x6dfef7),_0x310452=_0x4154f0['getRowIndexes'](_0x1b4aaf),_0x441801=_0x415e10?_0x310452['first']-0x1:_0x310452['last']+0x1,_0x2a9094=_0x1b4aaf[0x0]['findAncestor']('table'),_0x45a7a2=_0x4154f0['createTableWalker'](_0x2a9094,{'startRow':_0x441801,'endRow':_0x441801}),_0x4f5179=Array['from'](_0x45a7a2)['map'](_0xb0c73c=>_0x580555['createRangeOn'](_0xb0c73c['cell']));_0x52164c['markMultiRangeInsertion'](_0x4f5179,'tableRow');});});}for(const _0x4e4137 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3c17b9=_0x1b3405['commands']['get'](_0x4e4137);_0x52164c['enableCommand'](_0x4e4137,_0x40ceb4=>{_0x1b3405['model']['change'](_0x3536ee=>{_0x40ceb4();const _0x233013='left'===_0x3c17b9['order'],_0x239683=_0x4154f0['getSelectionAffectedTableCells'](_0x6dfef7),_0x40c5dd=_0x4154f0['getColumnIndexes'](_0x239683),_0x597a16=_0x233013?_0x40c5dd['first']-0x1:_0x40c5dd['last']+0x1,_0x2e1b5f=_0x239683[0x0]['findAncestor']('table'),_0x40b9f2=_0x4154f0['createTableWalker'](_0x2e1b5f,{'startRow':0x0,'column':_0x597a16,'includeAllSlots':!0x1}),_0x5a74c7=Array['from'](_0x40b9f2)['map'](_0x3951dc=>_0x3536ee['createRangeOn'](_0x3951dc['cell']));_0x52164c['markMultiRangeInsertion'](_0x5a74c7,'tableColumn');});});}for(const _0xea4d98 of['removeTableRow','removeTableColumn']){const _0x17571d=_0xea4d98['substr'](0xb),_0x4bb9e5=_0x17571d['toLowerCase'](),_0x326c43=_0x4bb9e5['substr'](0x0,0x3)+'span',_0x4d6482='table'+_0x17571d,_0x4254fc='min'+_0x17571d,_0x9ed6dd='max'+_0x17571d;_0x52164c['enableCommand'](_0xea4d98,()=>{_0x1b3405['model']['change'](_0xf81ca3=>{const _0x4fc49e=_0x4154f0['getSelectionAffectedTableCells'](_0x6dfef7),_0x2d86e8=_0x4fc49e[0x0]['findAncestor']('table');let _0x5e70cc;if('removeTableRow'==_0xea4d98){const _0x3fd5e8=_0x4154f0['getRowIndexes'](_0x4fc49e);_0x5e70cc={'startRow':_0x3fd5e8['first'],'endRow':_0x3fd5e8['last'],'includeAllSlots':!0x0};}else{const _0x28b242=_0x4154f0['getColumnIndexes'](_0x4fc49e);_0x5e70cc={'startColumn':_0x28b242['first'],'endColumn':_0x28b242['last'],'includeAllSlots':!0x0};}const _0x1d809e=_0x4154f0['createTableWalker'](_0x2d86e8,_0x5e70cc),_0x184dfc=Array['from'](_0x1d809e)['map'](({cell:_0x33fc1e})=>_0x33fc1e),_0x2a522c=Ne(_0x184dfc['filter'](_0x3f3f09=>_0x3f3f09['hasAttribute'](_0x326c43))),_0xb90d50=Ne(_0x184dfc['filter'](_0x29ce73=>!_0x29ce73['hasAttribute'](_0x326c43)))['map'](_0x58c53e=>_0xf81ca3['createRangeOn'](_0x58c53e)),_0x4cf6cd=_0x52164c['markMultiRangeDeletion'](_0xb90d50,_0x4d6482);if(_0x4cf6cd&&('tableRow'==_0x4cf6cd['subType']||'tableColumn'==_0x4cf6cd['subType'])){const _0x28f27c=this['_getSuggestionCoords'](_0x4cf6cd);for(const _0x18e93f of _0x2a522c){const _0x4dd43c=_0xf81ca3['createRangeOn'](_0x18e93f),_0x4fd701=_0x4154f0['getCellLocation'](_0x18e93f),_0x360b88=_0x18e93f['getAttribute'](_0x326c43)-0x1,_0x4035bb=_0x28f27c[_0x4254fc],_0x527696=_0x28f27c[_0x9ed6dd];_0x4035bb<=_0x4fd701[_0x4bb9e5]&&_0x4fd701[_0x4bb9e5]+_0x360b88<=_0x527696&&_0x4cf6cd['addRange'](_0x4dd43c);}}});});}function _0x45568a(_0x19017d){const _0x138e92=Array['from'](_0x6dfef7['getRanges']())['map'](_0x383adb=>_0x1d302a['fromRange'](_0x383adb));_0x1b3405['model']['change'](_0x51886b=>{const _0x4dc591=_0x51886b['batch'];_0x19017d=_0x19017d['filter'](_0x3386c2=>'$graveyard'!=_0x3386c2['root']['rootName']),_0x51886b['setSelection'](_0x19017d),_0x1b3405['commands']['get']('removeTableRow')['refresh'](),_0x1b3405['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1b3405['model']['enqueueChange'](()=>{_0x1b3405['model']['enqueueChange'](_0x4dc591,_0x1eab67=>{const _0x548142=_0x138e92['filter'](_0x1fee1=>'$graveyard'!=_0x1fee1['root']['rootName']);_0x548142['length']>0x0&&_0x1eab67['setSelection'](_0x548142);for(const _0x31ea55 of _0x138e92)_0x31ea55['detach']();});});});}function _0x2e5fdf(_0x17b2d7){_0x1b3405['model']['change'](_0x1a3426=>{const _0x2d9e9b=Array['from'](_0x6dfef7['getRanges']())['map'](_0x409190=>_0x1d302a['fromRange'](_0x409190)),_0x295666=[];for(const _0x4e058e of _0x17b2d7)for(const _0x15d784 of _0x4e058e['getItems']({'shallow':!0x0}))_0x295666['push'](_0x15d784);for(const _0x52fb0f of _0x295666)'$graveyard'!=_0x52fb0f['root']['rootName']&&(_0x1a3426['setSelection'](_0x1a3426['createPositionAt'](_0x52fb0f,0x0)),_0x1b3405['commands']['get']('removeTableColumn')['refresh'](),_0x1b3405['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x52e876=_0x2d9e9b['filter'](_0x17a421=>'$graveyard'!=_0x17a421['root']['rootName']);_0x52e876['length']>0x0&&_0x1a3426['setSelection'](_0x52e876);for(const _0xf0abc0 of _0x2d9e9b)_0xf0abc0['detach']();});}function _0x3c0645(_0x598a27,_0x16f662){return _0x16f662['every'](_0x2a1293=>_0x598a27['some'](_0x46e7d5=>_0x46e7d5['end']['isEqual'](_0x2a1293['start'])||_0x2a1293['end']['isEqual'](_0x46e7d5['start'])));}function _0xbf6213(_0x116b04,_0x28925){return!_0x116b04['some'](_0x3a4546=>_0x28925['some'](_0x12e19d=>_0x3a4546['isIntersecting'](_0x12e19d)))&&_0x116b04['some'](_0x575edb=>_0x28925['some'](_0x56c9aa=>_0x575edb['end']['isTouching'](_0x56c9aa['start'])));}_0x1b3405['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xed9506,_0x2f903c,_0x145d32)=>{if(!_0x145d32['options']['showSuggestionHighlights'])return;const _0x5ce220=_0x2f903c['item'];if(!_0x5ce220)return;const _0x423018=_0x145d32['mapper']['toViewElement'](_0x5ce220);function _0xb3131e(_0xa23f0b){return Array['isArray'](_0xa23f0b)?_0xa23f0b:[_0xa23f0b];}_0x423018&&'tableCell'===_0x5ce220['name']&&_0x362bb4(_0x423018,_0x145d32['writer'],(_0x45d256,_0x30b3b6,_0x3ca0db)=>_0x3ca0db['addClass'](_0xb3131e(_0x30b3b6['classes']),_0x45d256),(_0x39b0a7,_0x13af25,_0x392d5b)=>_0x392d5b['removeClass'](_0xb3131e(_0x13af25['classes']),_0x39b0a7));},{'priority':'highest'}),_0x52164c['descriptionFactory']['registerDescriptionCallback'](_0x1573d5=>{if('insertion'!=_0x1573d5['type']&&'deletion'!=_0x1573d5['type'])return;const _0x15e36a=_0x1573d5['getContainedElement']();if(null!=_0x15e36a&&_0x15e36a['is']('element','table')){if('insertion'==_0x1573d5['type']){const _0xec5332=_0x1573d5['getItems']()['filter'](_0x25a549=>_0x25a549['is']('$textProxy'))['map'](_0x4c940c=>_0x4c940c['data']);if(_0xec5332['length'])return{'type':'insertion','content':o(_0x4dc78c,'*Insert:*\x20%0',o(_0x4dc78c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xec5332['join']('\x20')+'\x22'))};}if('deletion'==_0x1573d5['type']){const _0x212380=_0x1573d5['getItems']()['filter'](_0x4ced4b=>_0x4ced4b['is']('$textProxy'))['map'](_0x9826c4=>_0x9826c4['data']);if(_0x212380['length'])return{'type':'deletion','content':o(_0x4dc78c,'*Remove:*\x20%0',o(_0x4dc78c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x212380['join']('\x20')+'\x22'))};}}}),_0x52164c['descriptionFactory']['registerDescriptionCallback'](_0xabc18b=>{if('tableRow'==_0xabc18b['subType']){const _0x2a411f=_0xabc18b['getItems']()['filter'](_0x5d0bd8=>_0x5d0bd8['is']('$textProxy'))['map'](_0x1414be=>_0x1414be['data']),_0x4ed7d7=this['_getSuggestionCoords'](_0xabc18b),_0x54d000=_0x4ed7d7['maxRow']-_0x4ed7d7['minRow']+0x1;if('insertion'==_0xabc18b['type'])return _0x2a411f['length']?{'type':'insertion','content':o(_0x4dc78c,'*Insert:*\x20%0',o(_0x4dc78c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x54d000,'\x22'+_0x2a411f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4dc78c,'*Insert:*\x20%0',o(_0x4dc78c,'ELEMENT_TABLE_ROW',_0x54d000))};if('deletion'==_0xabc18b['type'])return _0x2a411f['length']?{'type':'deletion','content':o(_0x4dc78c,'*Remove:*\x20%0',o(_0x4dc78c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x54d000,'\x22'+_0x2a411f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4dc78c,'*Remove:*\x20%0',o(_0x4dc78c,'ELEMENT_TABLE_ROW',_0x54d000))};}if('tableColumn'==_0xabc18b['subType']){const _0x36300d=_0xabc18b['getItems']()['filter'](_0x3dd92d=>_0x3dd92d['is']('$textProxy'))['map'](_0x179f43=>_0x179f43['data']),_0x23d76b=this['_getSuggestionCoords'](_0xabc18b),_0x517864=_0x23d76b['maxColumn']-_0x23d76b['minColumn']+0x1;if('insertion'==_0xabc18b['type'])return _0x36300d['length']?{'type':'insertion','content':o(_0x4dc78c,'*Insert:*\x20%0',o(_0x4dc78c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x517864,'\x22'+_0x36300d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4dc78c,'*Insert:*\x20%0',o(_0x4dc78c,'ELEMENT_TABLE_COLUMN',_0x517864))};if('deletion'==_0xabc18b['type'])return _0x36300d['length']?{'type':'deletion','content':o(_0x4dc78c,'*Remove:*\x20%0',o(_0x4dc78c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x517864,'\x22'+_0x36300d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4dc78c,'*Remove:*\x20%0',o(_0x4dc78c,'ELEMENT_TABLE_COLUMN',_0x517864))};}}),_0x52164c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x45568a),_0x52164c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x45568a),_0x52164c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2e5fdf),_0x52164c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2e5fdf),_0x52164c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3c0645),_0x52164c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3c0645),_0x52164c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xbf6213),_0x52164c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xbf6213);}['_acceptFormatSuggestionCallbackFactory'](){const _0x263040=this['editor'],_0x4149f6=_0x263040['model']['document']['selection'];return(_0x4bf365,_0x5db4d4)=>{_0x263040['model']['change'](_0x171c06=>{const {commandName:_0x57733b,commandParams:_0x1b5b8e}=_0x5db4d4;let _0xd38448=_0x4bf365[0x0]['end']['nodeBefore'];_0x1b5b8e&&_0x1b5b8e[0x0]&&!0x1===_0x1b5b8e[0x0]['forceValue']&&(_0xd38448=_0x4bf365[0x0]['start']['nodeAfter']);const _0x4d645a=_0x171c06['createRangeIn'](_0xd38448);if('$graveyard'==_0x4d645a['root']['rootName'])return;const _0x4c9a61=Array['from'](_0x4149f6['getRanges']())['map'](_0x5da40d=>_0x1d302a['fromRange'](_0x5da40d));_0x171c06['setSelection'](_0x4d645a),_0x263040['commands']['get'](_0x57733b)['refresh'](),_0x1b5b8e['push']({'forceDefaultExecution':!0x0}),_0x263040['execute'](_0x57733b,..._0x1b5b8e);const _0x392d14=_0x4c9a61['filter'](_0x489033=>'$graveyard'!=_0x489033['root']['rootName']);_0x392d14['length']>0x0&&_0x171c06['setSelection'](_0x392d14);for(const _0x16150d of _0x4c9a61)_0x16150d['detach']();});};}['_getCoordsForCells'](_0x1923fd){const _0x10c71d=this['editor']['plugins']['get']('TableUtils');let _0x29ada1=Number['MAX_SAFE_INTEGER'],_0x1e1de0=Number['MIN_SAFE_INTEGER'],_0x1d846f=Number['MAX_SAFE_INTEGER'],_0x29e1fa=Number['MIN_SAFE_INTEGER'];for(const _0x2ee47a of _0x1923fd){if('$graveyard'==_0x2ee47a['root']['rootName'])continue;const {row:_0x362014,column:_0x30e453}=_0x10c71d['getCellLocation'](_0x2ee47a),_0x302794=_0x2ee47a['hasAttribute']('rowspan')?_0x2ee47a['getAttribute']('rowspan')-0x1:0x0,_0xf81d4f=_0x2ee47a['hasAttribute']('colspan')?_0x2ee47a['getAttribute']('colspan')-0x1:0x0;_0x29ada1=_0x362014<_0x29ada1?_0x362014:_0x29ada1,_0x1e1de0=_0x362014+_0x302794>_0x1e1de0?_0x362014+_0x302794:_0x1e1de0,_0x1d846f=_0x30e453<_0x1d846f?_0x30e453:_0x1d846f,_0x29e1fa=_0x30e453+_0xf81d4f>_0x29e1fa?_0x30e453+_0xf81d4f:_0x29e1fa;}return{'minRow':_0x29ada1,'maxRow':_0x1e1de0,'minColumn':_0x1d846f,'maxColumn':_0x29e1fa};}['_setupColumnsRowsFixing'](){const _0x21b3ec=this['editor'],_0x387df2=_0x21b3ec['plugins']['get']('TrackChangesEditing'),_0x330ddc=_0x21b3ec['plugins']['get']('TableUtils');_0x21b3ec['model']['document']['on']('change:data',()=>{const _0x22c431=Array['from'](_0x21b3ec['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7a347d,data:_0x300b53}of _0x22c431){const {group:_0x254545,id:_0x253451,subType:_0x3ab16d}=_0x387df2['_splitMarkerName'](_0x7a347d);if('suggestion'!=_0x254545)continue;if(null!=_0x300b53['oldRange'])continue;const _0x7bad49=_0x387df2['getSuggestion'](_0x253451);this['_tablePostFixingSubtypes']['includes'](_0x3ab16d)&&this['_tableSuggestions']['add'](_0x7bad49);}},{'priority':'low'});const _0x6dcee1=(_0x463bf3,_0x237831)=>{let _0x1e5fc4=!0x1;const _0x6bac7b=_0x237831['createRangeOn'](_0x463bf3),_0x210ca5=_0x463bf3['findAncestor']('table'),_0x2bd937=_0x330ddc['getCellLocation'](_0x463bf3);for(const _0x30fb29 of this['_tableSuggestions']){const _0x5280bc=_0x30fb29['subType'],_0x1e75d4=_0x5280bc['startsWith']('tablePaste'),_0xe55c69=_0x5280bc['substr'](_0x1e75d4?0xa:0x5),_0x100bac=_0xe55c69['toLowerCase'](),_0x48f506=_0x100bac['substr'](0x0,0x3)+'span',_0x2d6624='min'+_0xe55c69,_0xdba6f8='max'+_0xe55c69;if(!_0x30fb29['isInContent'])continue;if(_0x210ca5!=_0x30fb29['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x30fb29['isIntersectingWithRange'](_0x6bac7b))continue;const _0x85e7=_0x463bf3['hasAttribute'](_0x48f506)?_0x463bf3['getAttribute'](_0x48f506)-0x1:0x0,_0x58108e=this['_getSuggestionCoords'](_0x30fb29),_0x3436d7=_0x58108e[_0x2d6624],_0x92330=_0x58108e[_0xdba6f8];_0x3436d7<=_0x2bd937[_0x100bac]&&_0x2bd937[_0x100bac]+_0x85e7<=_0x92330&&(_0x30fb29['addRange'](_0x6bac7b),_0x1e5fc4=!0x0);}return _0x1e5fc4;};_0x21b3ec['model']['document']['registerPostFixer'](_0x5abfea=>{let _0x31e4f1=!0x1;for(const _0x288581 of _0x21b3ec['model']['document']['differ']['getChanges']())if('insert'==_0x288581['type']){if('tableRow'==_0x288581['name']){for(const _0x3637db of _0x288581['position']['nodeAfter']['getChildren']())_0x31e4f1=_0x31e4f1||_0x6dcee1(_0x3637db,_0x5abfea);}else'tableCell'==_0x288581['name']&&(_0x31e4f1=_0x31e4f1||_0x6dcee1(_0x288581['position']['nodeAfter'],_0x5abfea));}return _0x31e4f1;});}['_getSuggestionCoords'](_0xe647e5){return this['_getCoordsForCells'](_0xe647e5['getRanges']()['map'](_0x210980=>_0x210980['start']['nodeAfter']));}}function Ne(_0x5866b6){return Array['from'](new Set(_0x5866b6)['values']());}class _t extends _0x4d8634{static get['requires'](){return[vt];}['afterInit'](){const _0x271a7a=this['editor'],_0x3196cd=_0x271a7a['model']['document']['selection'],_0x17705d=_0x271a7a['locale'];if(!_0x271a7a['plugins']['has']('TableEditing'))return;const _0x37a0bc=_0x271a7a['plugins']['get']('TrackChangesEditing'),_0x436be5=_0x271a7a['plugins']['get']('TableUtils'),_0x530c1a=_0x271a7a['plugins']['get'](vt);_0x530c1a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x37a0bc['enableCommand']('mergeTableCells',()=>{const _0x438d29=_0x436be5['getSelectionAffectedTableCells'](_0x271a7a['model']['document']['selection']);_0x271a7a['model']['change'](()=>{_0x37a0bc['markMultiRangeBlockFormat'](_0x438d29,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x271a7a['commands']['get']('mergeTableCells')['on']('execute',(_0x285425,_0x36076e)=>{_0x271a7a['commands']['get']('trackChanges')['value']&&(_0x36076e['length']>0x0&&_0x36076e[_0x36076e['length']-0x1]&&_0x36076e[_0x36076e['length']-0x1]['forceDefaultExecution']||_0x37a0bc['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x285425['stop']());},{'priority':'highest'});for(const _0x8905c9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1e9e2a=_0x271a7a['commands']['get'](_0x8905c9);_0x37a0bc['enableCommand'](_0x8905c9,()=>{const _0x196ac4=_0x271a7a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x53955d=>_0x53955d['is']('element','tableCell')),_0x4c47e4=_0x1e9e2a['value'];_0x271a7a['model']['change'](()=>{_0x37a0bc['markMultiRangeBlockFormat']([_0x196ac4,_0x4c47e4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x258062 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2d5be1=_0x271a7a['commands']['get'](_0x258062);_0x37a0bc['enableCommand'](_0x258062,()=>{const _0x3585e0=_0x436be5['getSelectionAffectedTableCells'](_0x271a7a['model']['document']['selection'])[0x0],_0x25c0d2=_0x3585e0['findAncestor']('table'),{column:_0x422ecb,row:_0x160304}=_0x436be5['getCellLocation'](_0x3585e0);let _0x5d02a4=[];if('horizontally'==_0x2d5be1['direction']){const _0x3ccbb8=_0x436be5['createTableWalker'](_0x25c0d2,{'startRow':_0x160304,'endRow':_0x160304,'includeAllSlots':!0x0});_0x5d02a4=Array['from'](_0x3ccbb8)['map'](_0x1439e4=>_0x1439e4['cell']);}else{const _0x1eba2f=_0x436be5['createTableWalker'](_0x25c0d2,{'column':_0x422ecb,'includeAllSlots':!0x0});_0x5d02a4=Array['from'](_0x1eba2f)['map'](_0x55e980=>_0x55e980['cell']);}_0x271a7a['model']['change'](_0x2a095b=>{_0x37a0bc['markBlockFormat'](_0x2a095b['createRangeOn'](_0x3585e0),{'commandName':_0x258062,'commandParams':[]},_0x5d02a4,_0x258062);});});}_0x37a0bc['descriptionFactory']['registerDescriptionCallback'](_0x350762=>{if('formatBlock'!=_0x350762['type']&&'formatInline'!=_0x350762['type'])return;const {data:_0x54b3f4}=_0x350762;return _0x54b3f4&&'mergeTableCells'==_0x54b3f4['commandName']?{'type':'format','content':o(_0x17705d,'*Merge\x20cells*')}:void 0x0;}),_0x37a0bc['descriptionFactory']['registerDescriptionCallback'](_0xee2a98=>{if('formatBlock'!=_0xee2a98['type']&&'formatInline'!=_0xee2a98['type'])return;const {data:_0xa45bc}=_0xee2a98;return _0xa45bc?'splitTableCellVertically'==_0xa45bc['commandName']?{'type':'format','content':o(_0x17705d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xa45bc['commandName']?{'type':'format','content':o(_0x17705d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xd23472=_0x530c1a['_acceptFormatSuggestionCallbackFactory']();for(const _0x2e531d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x37a0bc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2e531d,'accept',_0xd23472);for(const _0x4ea228 of['splitTableCellVertically','splitTableCellHorizontally'])_0x37a0bc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ea228,'accept',_0xd23472);_0x37a0bc['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4d6a66=>{_0x271a7a['model']['change'](_0x53859c=>{const _0x1d51fb=Array['from'](_0x3196cd['getRanges']())['map'](_0x2133ec=>_0x1d302a['fromRange'](_0x2133ec));_0x53859c['setSelection'](_0x4d6a66),_0x271a7a['commands']['get']('mergeTableCells')['refresh'](),_0x271a7a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3a8741=_0x1d51fb['filter'](_0x78b375=>'$graveyard'!=_0x78b375['root']['rootName']);_0x3a8741['length']>0x0&&_0x53859c['setSelection'](_0x3a8741);for(const _0x5ec04a of _0x1d51fb)_0x5ec04a['detach']();});});for(const _0x25209f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x220eb1=_0x271a7a['commands']['get'](_0x25209f);_0x220eb1['on']('set:isEnabled',(_0x4a6ebb,_0x2fdbdd,_0x26818c)=>{if(_0x26818c){const _0x4f8805=_0x271a7a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x8c4b03=>_0x8c4b03['is']('element','tableCell'));this['_areMergableCells'](_0x220eb1['value'],_0x4f8805)||(_0x4a6ebb['return']=!0x1,_0x4a6ebb['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4555cb=this['editor']['commands']['get']('mergeTableCells'),_0x1d4c72=this['editor']['plugins']['get']('TableUtils');if(!_0x4555cb['isEnabled'])return!0x1;const _0x2f479d=_0x1d4c72['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1ecfda of _0x2f479d)for(const _0xe95c99 of _0x2f479d)if(_0x1ecfda!=_0xe95c99&&!this['_areMergableCells'](_0x1ecfda,_0xe95c99))return!0x1;return!0x0;}['_areMergableCells'](_0x3d82de,_0x1f411f){const _0xa757e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x493171=this['editor']['model']['createRangeOn'](_0x3d82de),_0x570c96=this['editor']['model']['createRangeOn'](_0x1f411f),_0x3b80e8=new Set(),_0x25f4f9=new Set();for(const _0xb7f9cb of _0xa757e2['getSuggestions']())if(('insertion'==_0xb7f9cb['type']||'deletion'==_0xb7f9cb['type']||'mergeTableCells'==_0xb7f9cb['subType'])&&_0xb7f9cb['isInContent']){for(const _0x4bdba6 of _0xb7f9cb['getRanges']())_0x4bdba6['containsRange'](_0x493171,!0x0)&&_0x3b80e8['add'](_0xb7f9cb['type']+':'+_0xb7f9cb['author']['id']),_0x4bdba6['containsRange'](_0x570c96,!0x0)&&_0x25f4f9['add'](_0xb7f9cb['type']+':'+_0xb7f9cb['author']['id']);}if(_0x3b80e8['size']!=_0x25f4f9['size'])return!0x1;for(const _0x1f3fa2 of _0x3b80e8)if(!_0x25f4f9['has'](_0x1f3fa2))return!0x1;return!0x0;}}class Ct extends _0x4d8634{static get['requires'](){return[vt];}['afterInit'](){const _0x51f952=this['editor'];if(!_0x51f952['plugins']['has']('TableEditing'))return;const _0x18ea87=_0x51f952['locale'],_0x3b0883=_0x51f952['plugins']['get']('TrackChangesEditing');_0x3b0883['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3b0883['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3b0883['registerBlockAttribute']('headingRows'),_0x3b0883['registerBlockAttribute']('headingColumns'),_0x3b0883['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x18ea87,'FORMAT_HEADER_ROW')),_0x3b0883['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x18ea87,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x317770=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3284df=this['editor']['plugins']['get']('TableUtils'),_0x306f4c=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x325c5f({showActiveMarker:_0x800cf5=!0x0,setDataAttribute:_0x15b3bc=!0x0}={}){return(_0x26bb85,_0x131b6b,_0x395ec3)=>{const {type:_0x543a4a,id:_0x5ab193}=_0x317770['_splitMarkerName'](_0x131b6b['markerName']),_0x1577ba=_0x317770['getSuggestion'](_0x5ab193),_0x41fdcf=_0x1577ba['data'];if('formatBlock'!=_0x1577ba['type']||!_0x41fdcf||'setTableColumnHeader'!=_0x41fdcf['commandName'])return;if(_0x131b6b['item'])return void _0x26bb85['stop']();if(!_0x395ec3['consumable']['consume'](_0x131b6b['markerRange'],_0x26bb85['name']))return;const _0x5577bd=_0x131b6b['markerRange']['start']['nodeAfter'],_0x101821=_0x131b6b['markerRange']['end']['nodeBefore'],_0x455ff6=_0x5577bd['parent']['parent'],{column:_0x1a3055}=_0x3284df['getCellLocation'](_0x5577bd),{column:_0x45da07}=_0x3284df['getCellLocation'](_0x101821);for(let _0x212579=_0x1a3055;_0x212579<=_0x45da07;_0x212579++){const _0x4fa057=_0x3284df['createTableWalker'](_0x455ff6,{'column':_0x212579,'includeAllSlots':!0x1});for(const _0x173802 of _0x4fa057){const _0x4a339b=_0x173802['cell'],_0x53ac52=_0x395ec3['mapper']['toViewElement'](_0x4a339b);_0x395ec3['writer']['addClass']('ck-suggestion-marker-'+_0x543a4a,_0x53ac52),_0x15b3bc&&_0x395ec3['writer']['setAttribute']('data-suggestion',_0x5ab193,_0x53ac52),_0x395ec3['mapper']['bindElementToMarker'](_0x53ac52,_0x131b6b['markerName']),_0x800cf5&&(_0x317770['activeMarkers']['includes'](_0x131b6b['markerName'])?_0x395ec3['writer']['addClass']('ck-suggestion-marker--active',_0x53ac52):_0x395ec3['writer']['removeClass']('ck-suggestion-marker--active',_0x53ac52));}}};}_0x317770['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x306f4c),_0x317770['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x306f4c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x325c5f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x67b62f,_0x1f431b,_0x417923)=>{_0x417923['options']['showSuggestionHighlights']&&_0x325c5f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x67b62f,_0x1f431b,_0x417923);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x148c5f,_0xd2fae6,_0x46cd63)=>{const {type:_0x1c9e86,id:_0x3840ad}=_0x317770['_splitMarkerName'](_0xd2fae6['markerName']),_0x426d5f=_0x317770['getSuggestion'](_0x3840ad),_0x2cf52e=_0x426d5f['data'];if('formatBlock'!=_0x426d5f['type']||!_0x2cf52e||'setTableColumnHeader'!=_0x2cf52e['commandName'])return;const _0x17539c=_0x46cd63['mapper']['markerNameToElements'](_0xd2fae6['markerName']);if(_0x17539c){for(const _0x2837fe of _0x17539c)_0x46cd63['writer']['removeClass']('ck-suggestion-marker-'+_0x1c9e86,_0x2837fe),_0x46cd63['writer']['removeClass']('ck-suggestion-marker--active',_0x2837fe),_0x46cd63['writer']['removeAttribute']('data-suggestion',_0x2837fe),_0x46cd63['mapper']['unbindElementFromMarkerName'](_0x2837fe,_0xd2fae6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1abaa0=this['editor'],_0x47779b=_0x1abaa0['locale'];function _0x2487c7(_0x8dcc5f){return{'type':'format','content':o(_0x47779b,'*Format:*\x20%0',_0x8dcc5f)};}_0x1abaa0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b097c=>{if('formatBlock'!=_0x3b097c['type'])return;const {data:_0x4580b6}=_0x3b097c;if(_0x4580b6){if('setTableRowHeader'==_0x4580b6['commandName']){const _0x457e5e=_0x4580b6['commandParams'][0x0]['forceValue'];return _0x2487c7(o(_0x47779b,_0x457e5e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4580b6['commandName']){const _0x400405=_0x4580b6['commandParams'][0x0]['forceValue'];return _0x2487c7(o(_0x47779b,_0x400405?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x254078=>[_0x254078,null]));class Nt extends _0x4d8634{static get['requires'](){return[vt];}['afterInit'](){const _0x1c0b09=this['editor'];if(!_0x1c0b09['plugins']['has']('TableClipboard'))return;const _0x34751f=_0x1c0b09['plugins']['get']('TrackChangesEditing'),_0x19a0e7=_0x1c0b09['plugins']['get']('TableUtils'),_0x1eab1b=_0x1c0b09['plugins']['get'](vt),_0x56c4f9=_0x1c0b09['plugins']['get']('TableClipboard');_0x1eab1b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1c0b09['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1c0b09['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x42a008=null;_0x1c0b09['model']['on']('insertContent',(_0x279e23,_0x21e6e7)=>{const [_0x4d0f6f,_0x181504]=_0x21e6e7,_0x4270a9=_0x21e6e7[_0x21e6e7['length']-0x1];_0x4270a9&&_0x4270a9['forceDefaultExecution']||_0x34751f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x354011,_0x453051,_0x2c32eb,_0x34257a,_0x2ec7d2){if(_0x453051&&!_0x453051['is']('documentSelection'))return!0x1;const _0x31554a=_0x2ec7d2['getTableIfOnlyTableInContent'](_0x354011,_0x2c32eb);if(!_0x31554a||!Ue(_0x31554a,void 0x0,_0x34257a))return!0x1;const _0x34f9bb=_0x34257a['getSelectionAffectedTableCells'](_0x2c32eb['document']['selection']);if(!_0x34f9bb['length'])return!0x1;const _0x901cf2=_0x34f9bb[0x0]['findAncestor']('table'),_0x553442=_0x34257a['getRowIndexes'](_0x34f9bb),_0x23e210=_0x34257a['getColumnIndexes'](_0x34f9bb),_0x58ce54={'startRow':_0x553442['first'],'endRow':_0x553442['last'],'startColumn':_0x23e210['first'],'endColumn':_0x23e210['last']};return 0x1==_0x34f9bb['length']&&(_0x58ce54['endRow']+=_0x34257a['getRows'](_0x31554a)-0x1,_0x58ce54['endColumn']+=_0x34257a['getColumns'](_0x31554a)-0x1),Ue(_0x901cf2,_0x58ce54,_0x34257a);}(_0x4d0f6f,_0x181504,_0x1c0b09['model'],_0x19a0e7,_0x56c4f9)&&(_0x279e23['stop'](),_0x42a008={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1c0b09['model']['change'](()=>{_0x1c0b09['model']['insertContent'](_0x21e6e7[0x0],_0x21e6e7[0x1],_0x21e6e7[0x2],{'forceDefaultExecution':!0x0});const _0x260e35=_0x19a734(),{rowInsertionRanges:_0x569f41,columnInsertionRanges:_0x57d6f6,insertionRanges:_0x5a354e,deletionRanges:_0x3caa84,cells:_0x17ee3e}=_0x42a008;_0x569f41['length']&&_0x34751f['markMultiRangeInsertion'](_0x569f41,'tablePasteRow',{'tablePasteChainId':_0x260e35}),_0x57d6f6['length']&&_0x34751f['markMultiRangeInsertion'](_0x57d6f6,'tablePasteColumn',{'tablePasteChainId':_0x260e35}),_0x5a354e['length']&&(_0x34751f['markMultiRangeInsertion'](_0x5a354e,'tablePaste',{'tablePasteChainId':_0x260e35,'skipNestingCheck':!0x0}),_0x5a354e['forEach'](_0x3d6064=>_0x3d6064['detach']?.())),_0x3caa84['length']&&(_0x34751f['markMultiRangeDeletion'](_0x3caa84,'tablePaste',{'tablePasteChainId':_0x260e35,'skipNestingCheck':!0x0}),_0x3caa84['forEach'](_0x66cb2f=>_0x66cb2f['detach']?.()));const _0x37307f=_0x34751f['markMultiRangeBlockFormat'](_0x17ee3e['map'](({element:_0x4e3606})=>_0x4e3606),{'formatGroupId':_0x19a734()},[],'tablePasteCell',{'tablePasteChainId':_0x260e35});if(_0x37307f){const _0x5d6cbe=_0x37307f['getMarkers'](),_0x24f4f5=[];for(const {element:_0x505edf,attributes:_0x50a847}of _0x17ee3e){if(!_0x50a847)continue;const _0x149361=_0x1c0b09['model']['createRangeOn'](_0x505edf),_0x32cec7=_0x5d6cbe['find'](_0x59d0c3=>_0x59d0c3['getRange']()['isEqual'](_0x149361));_0x32cec7&&_0x24f4f5['push']([_0x32cec7['name'],_0x50a847]);}_0x24f4f5['length']&&_0x37307f['setAttribute']('markerAttributes',Object['fromEntries'](_0x24f4f5));}_0x42a008=null;}));},{'priority':_0x1aa228['high']+0xa}),_0x1c0b09['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x401d0d,_0x58f3d9)=>{const [_0x47bf0b,_0x3b647c,,_0x423ce9]=_0x58f3d9;if(!_0x42a008)return;_0x401d0d['stop']();const _0x108f73=_0x47bf0b['cell'],_0x1c8ecf=_0x3b647c,_0x415c02=Oe(_0x108f73),_0x2f728f=Oe(_0x1c8ecf);_0x401d0d['return']=_0x108f73;let _0x5761fd=null,_0x74b917=null;if(_0x2f728f||_0x415c02){if(_0x415c02&&!_0x2f728f){_0x423ce9['remove'](_0x108f73['getChild'](0x0));for(const _0x483b56 of Array['from'](_0x1c8ecf['getChildren']()))_0x423ce9['insert'](_0x483b56,_0x108f73,'end');const _0x651d1b=_0x42a008['rowInsertionIndexes']['includes'](_0x47bf0b['row']),_0x194ab2=_0x42a008['columnInsertionIndexes']['includes'](_0x47bf0b['column']);_0x651d1b||_0x194ab2||(_0x5761fd=_0x1d302a['fromRange'](_0x423ce9['createRangeIn'](_0x108f73)));}else _0x2f728f&&!_0x415c02&&(_0x74b917=_0x423ce9['createRangeIn'](_0x108f73));}else{const _0x53c1c9=_0x423ce9['createElement']('tableCellSuggestion'),_0x1c98f8=_0x423ce9['createElement']('tableCellSuggestion');_0x423ce9['wrap'](_0x423ce9['createRangeIn'](_0x108f73),_0x1c98f8),_0x423ce9['insert'](_0x53c1c9,_0x108f73,0x0);for(const _0x3f457d of Array['from'](_0x1c8ecf['getChildren']()))_0x423ce9['insert'](_0x3f457d,_0x53c1c9,'end');_0x5761fd=_0x1d302a['fromRange'](_0x423ce9['createRangeOn'](_0x53c1c9)),_0x74b917=_0x1d302a['fromRange'](_0x423ce9['createRangeOn'](_0x1c98f8));}const _0x4b8fa2=Array['from'](_0x1c8ecf['getAttributes']())['filter'](([_0x633912])=>Be['includes'](_0x633912));_0x42a008['cells']['push']({'element':_0x108f73,'attributes':_0x4b8fa2['length']?Object['fromEntries'](_0x4b8fa2):null}),_0x5761fd&&_0x42a008['insertionRanges']['push'](_0x5761fd),_0x74b917&&_0x42a008['deletionRanges']['push'](_0x74b917);},{'priority':'high'}),_0x19a0e7['on']('insertColumns',(_0x3d66f8,_0x401d3f)=>{const [_0x1d74b4,_0x4c3b55={}]=_0x401d3f;if(!_0x42a008)return;const _0x39fbac=_0x4c3b55['at']||0x0,_0x2c4c43=_0x4c3b55['columns']||0x1;_0x42a008['columnInsertionIndexes']=new Array(_0x2c4c43)['fill'](_0x39fbac)['map']((_0x963af0,_0x47aa0c)=>_0x963af0+_0x47aa0c);for(const {cell:_0x5824b4}of _0x19a0e7['createTableWalker'](_0x1d74b4,{'startColumn':_0x39fbac,'endColumn':_0x39fbac+_0x2c4c43-0x1}))_0x42a008['columnInsertionRanges']['push'](_0x1c0b09['model']['createRangeOn'](_0x5824b4));},{'priority':'low'}),_0x19a0e7['on']('insertRows',(_0x444f2a,_0x137fa9)=>{const [_0x71af91,_0x48c757={}]=_0x137fa9;if(!_0x42a008)return;const _0x43505c=_0x48c757['at']||0x0,_0x4f7869=_0x48c757['rows']||0x1;_0x42a008['rowInsertionIndexes']=new Array(_0x4f7869)['fill'](_0x43505c)['map']((_0x1cf165,_0x53bb0f)=>_0x1cf165+_0x53bb0f);for(const {cell:_0x2703e1}of _0x19a0e7['createTableWalker'](_0x71af91,{'startRow':_0x43505c,'endRow':_0x43505c+_0x4f7869-0x1}))_0x42a008['rowInsertionRanges']['push'](_0x1c0b09['model']['createRangeOn'](_0x2703e1));},{'priority':'low'}),_0x34751f['descriptionFactory']['registerDescriptionCallback'](_0x59961b=>{if(_0x59961b['subType']&&_0x59961b['subType']['startsWith']('tablePaste'))return _0x59961b['previous']?{}:{'type':'insertion','content':o(_0x1c0b09['locale'],'*Replace\x20table\x20cells*')};});const _0x529387=()=>!0x1;for(const _0x1278ad of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x34751f['_suggestionFactory']['registerCustomCallback']('insertion',_0x1278ad,'join',_0x529387),_0x34751f['_suggestionFactory']['registerCustomCallback']('deletion',_0x1278ad,'join',_0x529387),_0x34751f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1278ad,'join',_0x529387);_0x34751f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x529387),_0x34751f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5ac5ee,_0x11b007,_0x3d93ac)=>{const _0x54bde4=_0x5ac5ee['map'](_0x1eacdd=>_0x1eacdd['getContainedElement']())['filter'](_0x3f43a5=>_0x3f43a5),_0x4879a7=new Map(_0x54bde4['map'](_0x216cbc=>[_0x216cbc,null]));if(_0x42a008){for(const {element:_0x54e86c,attributes:_0x2e5316}of _0x42a008['cells'])_0x2e5316&&_0x4879a7['set'](_0x54e86c,_0x2e5316);}else{if(_0x3d93ac&&_0x3d93ac['markerAttributes'])for(const [_0x4f9705,_0x4ebe98]of Object['entries'](_0x3d93ac['markerAttributes'])){const _0x2ac082=_0x1c0b09['model']['markers']['get'](_0x4f9705),_0x51421d=_0x2ac082?_0x2ac082['getRange']()['getContainedElement']():null;_0x51421d&&_0x4879a7['set'](_0x51421d,_0x4ebe98);}}_0x1c0b09['model']['change'](_0x2d1cb5=>{for(const [_0x265759,_0x5ac04d]of _0x4879a7)_0x2d1cb5['setAttributes']({...xe,..._0x5ac04d},_0x265759);});});const _0x29ef18=(_0x441fa5,_0x1b2ee2)=>{_0x34751f['_suggestionFactory']['registerCustomCallback'](_0x441fa5,'tablePaste',_0x1b2ee2,(_0x2326ba,_0x364a49,_0x120349)=>{_0x1c0b09['model']['change'](_0x3c4b8a=>{const _0x27bf29=[];for(const _0x13a53d of _0x2326ba){const _0x5905d3=_0x13a53d['start']['nodeAfter'];_0x5905d3['is']('element','tableCellSuggestion')&&_0x27bf29['push'](_0x5905d3);}_0x34751f['_suggestionFactory']['getSuggestionCallback'](_0x441fa5,null,_0x1b2ee2)(_0x2326ba,_0x364a49,_0x120349);for(const _0x7a3c27 of _0x27bf29)'$graveyard'!=_0x7a3c27['root']['rootName']&&_0x3c4b8a['unwrap'](_0x7a3c27);});});};_0x29ef18('insertion','accept'),_0x29ef18('insertion','discard'),_0x29ef18('deletion','accept'),_0x29ef18('deletion','discard'),_0x34751f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x816bbd=>{const _0x1008d5=_0x816bbd['map'](_0x1cc0a1=>_0x1cc0a1['getContainedElement']()),_0x52cb7b=_0x1008d5[0x0]['findAncestor']('table'),{minRow:_0x2713e5,maxRow:_0x32cb3a}=_0x1eab1b['_getCoordsForCells'](_0x1008d5);_0x19a0e7['removeRows'](_0x52cb7b,{'at':_0x2713e5,'rows':_0x32cb3a-_0x2713e5+0x1});}),_0x34751f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3d9d7a=>{const _0x4f25b2=_0x3d9d7a['map'](_0x19ade2=>_0x19ade2['getContainedElement']()),_0x5ca96c=_0x4f25b2[0x0]['findAncestor']('table'),{minColumn:_0x549754,maxColumn:_0x4a20db}=_0x1eab1b['_getCoordsForCells'](_0x4f25b2);_0x19a0e7['removeColumns'](_0x5ca96c,{'at':_0x549754,'columns':_0x4a20db-_0x549754+0x1});});const _0x5d0c1d=(_0x3dde47,_0x5719a9)=>{if(!_0x5719a9['subType']||!_0x5719a9['subType']['startsWith']('tablePaste'))return;const _0x42e9bc=_0x5719a9['attributes']['tablePasteChainId'],_0x1f5958=_0x34751f['getSuggestions']()['filter'](_0x2c8d96=>_0x2c8d96['isInContent']&&_0x2c8d96['attributes']&&_0x2c8d96['attributes']['tablePasteChainId']==_0x42e9bc);_0x1f5958['length']&&_0x5719a9['getAllAdjacentSuggestions']()['length']!=_0x1f5958['length']&&_0x1f5958['reduce']((_0x3505e1,_0x584ecd)=>(_0x3505e1['next']=_0x584ecd,_0x584ecd['previous']=_0x3505e1,_0x584ecd));};function _0x3dfe28(_0x23d1b0,_0x8647f1=!0x0){const {id:_0x42cced,authorId:_0x2fe61b}=_0x34751f['_splitMarkerName'](_0x23d1b0['markerName']),_0x5ef9dc=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5d90af=_0x34751f['activeMarkers']['includes'](_0x23d1b0['markerName']);return _0x5d90af&&_0x5ef9dc['push']('ck-suggestion-marker--active'),{'classes':_0x5ef9dc,'attributes':{'data-suggestion':_0x42cced,'data-author-id':_0x2fe61b},'priority':_0x5d90af&&_0x8647f1?0xbc2:0xbb8};}_0x34751f['on']('suggestionLoaded',_0x5d0c1d,{'priority':'high'}),_0x34751f['on']('suggestionUnloaded',_0x5d0c1d,{'priority':'high'}),_0x1c0b09['model']['document']['registerPostFixer'](()=>{let _0x270194=!0x1;const _0x698c31=Array['from'](_0x1c0b09['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1dee59,data:_0x473068}of _0x698c31){const {group:_0x551fb0,type:_0x400794,id:_0x457425}=_0x34751f['_splitMarkerName'](_0x1dee59);if('suggestion'!=_0x551fb0||'deletion'!=_0x400794||_0x473068['oldRange'])continue;if(!_0x34751f['hasSuggestion'](_0x457425))continue;const _0x3aa699=_0x34751f['getSuggestion'](_0x457425)['getRanges'](),_0xe93bcf=_0x1c0b09['plugins']['get']('Users')['me'];for(const _0x406ed7 of _0x34751f['getSuggestions']()){if(!_0x406ed7['isInContent']||_0x406ed7['author']!=_0xe93bcf)continue;if('formatBlock'!=_0x406ed7['type']||'tablePasteCell'!=_0x406ed7['subType'])continue;if(_0x406ed7['getRanges']()['every'](_0x10188a=>_0x3aa699['some'](_0x439db8=>_0x439db8['containsRange'](_0x10188a,!0x0)))){for(const _0x260d5b of _0x406ed7['getAllAdjacentSuggestions']())_0x260d5b['isInContent']&&(_0x260d5b['discard'](),_0x270194=!0x0);}}}return _0x270194;}),_0x1c0b09['model']['document']['registerPostFixer'](_0x4e5a55=>{const _0x5ba733=_0x1c0b09['commands']['get']('redo');if(!_0x5ba733||!_0x5ba733['_createdBatches']['has'](_0x4e5a55['batch']))return!0x1;let _0x50730a=!0x1;const _0x549660=_0x1c0b09['plugins']['get']('Users')['me'],_0x495a13=_0x1c0b09['model']['document']['differ']['getChanges'](),_0x4013b9=Array['from'](_0x1c0b09['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x331d16,data:_0x1aac56})=>{const {group:_0x5722b9,subType:_0x202076,authorId:_0x409b9f}=_0x34751f['_splitMarkerName'](_0x331d16);return'suggestion'==_0x5722b9&&'tablePaste'==_0x202076&&_0x409b9f==_0x549660['id']&&!_0x1aac56['oldRange'];});for(const _0x355906 of _0x495a13){if('insert'!=_0x355906['type']||'tableCellSuggestion'!=_0x355906['name']||0x1!=_0x355906['length'])continue;const _0x5698e0=_0x4e5a55['createRange'](_0x355906['position'],_0x355906['position']['getShiftedBy'](0x1));if(!_0x4013b9['find'](({data:_0xadc4ab})=>_0xadc4ab['newRange']['isEqual'](_0x5698e0))){for(const {name:_0x2bdde0,data:_0x47ef0e}of _0x4013b9)if(_0x5698e0['containsRange'](_0x47ef0e['newRange'])){_0x4e5a55['updateMarker'](_0x2bdde0,{'range':_0x5698e0}),_0x50730a=!0x0;break;}}}return _0x50730a;}),_0x1c0b09['model']['document']['registerPostFixer'](_0x1d4ab5=>{let _0x229e06=!0x1;const _0x8ca657=_0x1c0b09['plugins']['get']('Users')['me'],_0x14c597=_0x34751f['getSuggestions']()['filter'](_0x9fe57c=>_0x9fe57c['isInContent']&&_0x9fe57c['author']==_0x8ca657),_0x3dc85a=new Set(),_0x2234ca=new Set();for(const _0x3cf520 of _0x14c597)if('tablePaste'==_0x3cf520['subType'])for(const _0x179ad3 of _0x3cf520['getMarkers']()){const _0x19feb2=_0x179ad3['getRange']()['getContainedElement']();if(_0x19feb2){if(_0x19feb2['is']('element','tableCellSuggestion')&&Oe(_0x19feb2)){_0x3cf520['removeMarker'](_0x179ad3['name']),_0x3dc85a['add'](_0x19feb2),_0x229e06=!0x0;const _0x68deea=_0x19feb2['nextSibling'],_0x2bfb69=_0x19feb2['previousSibling'],_0x2893ff=_0x68deea&&_0x68deea['is']('element','tableCellSuggestion'),_0x5b9231=_0x2bfb69&&_0x2bfb69['is']('element','tableCellSuggestion');_0x2893ff&&!_0x3dc85a['has'](_0x68deea)&&_0x2234ca['add'](_0x68deea),_0x5b9231&&!_0x3dc85a['has'](_0x2bfb69)&&_0x2234ca['add'](_0x2bfb69);}else _0x19feb2['is']('element','paragraph')&&_0x19feb2['isEmpty']&&(_0x3cf520['removeMarker'](_0x179ad3['name']),_0x229e06=!0x0);}}else{if('tablePasteCell'==_0x3cf520['subType']){if(!_0x3cf520['attributes']||!_0x3cf520['attributes']['tablePasteChainId'])continue;const _0x29968e=_0x3cf520['attributes']['markerAttributes'];if(_0x29968e&&Object['keys'](_0x29968e)['length'])continue;const _0x44831d=_0x3cf520['attributes']['tablePasteChainId'];let _0x9a5b13=!0x0,_0x3b5246=!0x0;for(const _0x5bbfde of _0x14c597)if(_0x5bbfde['subType']&&_0x5bbfde['subType']['startsWith']('tablePaste')){if(!_0x5bbfde['attributes']['tablePasteChainId']){_0x3b5246=!0x1;break;}if(_0x5bbfde['id']!=_0x3cf520['id']&&_0x5bbfde['attributes']['tablePasteChainId']==_0x44831d){_0x9a5b13=!0x1;break;}}_0x3b5246&&_0x9a5b13&&(_0x3cf520['removeMarkers'](),_0x229e06=!0x0);}}for(const _0x82d2b1 of _0x3dc85a)_0x1d4ab5['remove'](_0x82d2b1);for(const _0x4930a4 of _0x2234ca)_0x1d4ab5['unwrap'](_0x4930a4);return _0x229e06;}),_0x1c0b09['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2d6d34=>_0x3dfe28(_0x2d6d34),'converterPriority':'high'}),_0x1c0b09['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2375b0,_0xc7f38)=>_0xc7f38['options']['showSuggestionHighlights']?_0x3dfe28(_0x2375b0,!0x1):null,'converterPriority':'high'});const _0x372b38=_0x1c0b09['editing']['view'];this['listenTo'](_0x372b38['document'],'clipboardOutput',(_0x2ee992,_0x24f0d5)=>{const _0x4faedb=[];for(const _0x120bcc of _0x372b38['createRangeIn'](_0x24f0d5['content'])['getItems']())_0x120bcc['is']('element','suggestion-td')&&_0x4faedb['push'](_0x120bcc);_0x372b38['change'](_0x483606=>{for(const _0x101f95 of _0x4faedb)_0x483606['move'](_0x483606['createRangeIn'](_0x101f95),_0x483606['createPositionBefore'](_0x101f95)),_0x483606['remove'](_0x101f95);});});}}function Oe(_0x2e7e67){if(_0x2e7e67['isEmpty'])return!0x0;const _0x5c642f=_0x2e7e67['getChild'](0x0);return _0x5c642f['is']('element','paragraph')&&_0x5c642f['isEmpty'];}function Ue(_0xe65457,_0x54c341={},_0x58565a){for(const {isAnchor:_0x343d73,cellHeight:_0x474125,cellWidth:_0x4df770}of _0x58565a['createTableWalker'](_0xe65457,{'includeAllSlots':!0x0,..._0x54c341}))if(!_0x343d73||0x1!=_0x474125||0x1!=_0x4df770)return!0x1;return!0x0;}class Dt extends _0x4d8634{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3dc43e=this['editor']['plugins']['get']('TrackChangesEditing');_0x3dc43e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3dc43e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3dc43e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3dc43e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3dc43e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3dc43e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x51347b,_0x29353b){const _0x548b79=this['editor']['plugins']['get']('TrackChangesEditing'),_0x564f8f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x20ab86=_0x29353b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1dfb3f=_0x564f8f['getColumnGroupElement'](_0x20ab86);let _0x3faee9=_0x1dfb3f?_0x564f8f['getTableColumnsWidths'](_0x1dfb3f):null,_0x4aaaf5=_0x20ab86['getAttribute']('tableWidth')||null;const _0x2e051d=_0x29353b['tableWidth']||_0x4aaaf5,_0x3553a6=_0x29353b['columnWidths']||_0x3faee9,_0x1d669a=this['editor']['plugins']['get']('Users')['me'];for(const _0x5537e2 of _0x548b79['getSuggestions']()){const _0x23e2ac=_0x5537e2['getContainedElement']();if('resizeTable'===_0x5537e2['subType']&&_0x23e2ac===_0x20ab86){_0x5537e2['author']!==_0x1d669a&&_0x5537e2['discard']();const _0x2dcac5=_0x5537e2['data']['commandParams'];_0x4aaaf5=_0x2dcac5[0x0]['tableWidth'],_0x3faee9=_0x2dcac5[0x0]['columnWidths'];break;}}_0x51347b({'table':_0x20ab86,'tableWidth':_0x2e051d,'columnWidths':_0x3553a6}),_0x548b79['markBlockFormat'](_0x20ab86,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4aaaf5,'columnWidths':_0x3faee9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x35a1b4){if('formatBlock'!=_0x35a1b4['type']&&'formatInline'!=_0x35a1b4['type'])return;const {data:_0x726530}=_0x35a1b4;if(_0x726530&&'resizeTable'===_0x726530['formatGroupId']){const _0xb4839b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xb4839b)};}}}class Mt extends _0x4d8634{['afterInit'](){const _0x550356=this['editor'];_0x550356['plugins']['has']('Template')&&_0x550356['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x4d8634{['afterInit'](){const _0x2d9cd6=this['editor'];if(!_0x2d9cd6['commands']['get']('insertTableOfContents'))return;_0x2d9cd6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1846a0=_0x2d9cd6['plugins']['get']('TrackChangesEditing'),_0x552cbb=_0x2d9cd6['locale'];_0x1846a0['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5a300f=>o(_0x552cbb,'ELEMENT_TABLE_OF_CONTENTS',_0x5a300f));}}class Bt extends _0x4d8634{['afterInit'](){const _0x2d7942=this['editor'];if(!_0x2d7942['plugins']['has']('Title'))return;const _0x1e2274=_0x2d7942['plugins']['get']('TrackChangesEditing');_0x1e2274['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2d7942['locale'],'ELEMENT_TITLE')),_0x2d7942['model']['document']['registerPostFixer'](_0x7c5a81=>{let _0x4504a3=!0x1;const _0x234aa1=Array['from'](_0x2d7942['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x222982,data:_0x4715ca}of _0x234aa1){const {group:_0x172f1d}=_0x1e2274['_splitMarkerName'](_0x222982);if('suggestion'!==_0x172f1d||!_0x4715ca['newRange'])continue;const _0x435fb1=_0x4715ca['newRange'],_0x274e1d=_0x435fb1['end']['nodeBefore'];if(!_0x274e1d||!_0x274e1d['is']('element','title-content'))continue;if(!_0x435fb1['start']['isTouching'](_0x435fb1['end']))continue;const _0x1c189b=_0x2d7942['model']['schema']['getNearestSelectionRange'](_0x435fb1['end'],'forward');if(_0x1c189b&&_0x1c189b['isCollapsed']){const _0x12222b=_0x7c5a81['createRange'](_0x435fb1['start'],_0x1c189b['start']);_0x12222b['isEqual'](_0x435fb1)||(_0x7c5a81['updateMarker'](_0x222982,{'range':_0x12222b}),_0x4504a3=!0x0);}_0x4504a3||(_0x7c5a81['removeMarker'](_0x222982),_0x4504a3=!0x0);}return _0x4504a3;});}}class Ot extends _0x4d8634{['afterInit'](){const _0xbceb79=this['editor'],_0x477489=_0xbceb79['plugins']['get']('TrackChangesEditing');_0xbceb79['plugins']['has']('Uploadcare')&&(_0x477489['enableCommand']('uploadcare'),_0xbceb79['plugins']['has']('UploadcareImageEdit')&&(_0x477489['enableCommand']('uploadcareImageEdit'),_0x477489['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x477489['registerBlockAttribute']('uploadcareImageId'),_0x477489['descriptionFactory']['registerDescriptionCallback'](_0x118951=>{if('attribute'!=_0x118951['type'])return;const {data:_0x599ece}=_0x118951;return _0x599ece&&'uploadcareImageId'==_0x599ece['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x4d8634{['afterInit'](){const _0xabb763=this['editor'],_0x34c752=_0xabb763['plugins']['get']('TrackChangesEditing');_0xabb763['plugins']['has']('UndoEditing')&&(_0x34c752['enableCommand']('undo'),_0x34c752['enableCommand']('redo'));}}class Tt extends _0x4d8634{static get['requires'](){return[vt];}['afterInit'](){const _0x46dc25=this['editor'];if(!_0x46dc25['plugins']['has']('TableCaptionEditing'))return;_0x46dc25['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x4d8634{['tableProperties'];['tableCellProperties'];constructor(_0x41e316){super(_0x41e316),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 _0x1f1e4b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x37bce0 of this['tableProperties'])_0x1f1e4b['enableCommand'](_0x37bce0,(_0x447387,_0x4542be)=>{const _0x5d2b0c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x37bce0,[_0x5d2b0c],this['tableProperties'],'tableProperties',_0x447387,_0x4542be);});_0x1f1e4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1f1e4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f1e4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2695ab,_0x2028bc)=>this['handleDiscardAction'](this['tableProperties'],_0x2695ab,_0x2028bc)),_0x1f1e4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3c1930 of this['tableCellProperties'])_0x1f1e4b['enableCommand'](_0x3c1930,(_0x305129,_0x280757)=>{const _0x4d2641=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3c1930,_0x4d2641,this['tableCellProperties'],'tableCellProperties',_0x305129,_0x280757);});_0x1f1e4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1f1e4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f1e4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x31831a,_0x5c9cce)=>this['handleDiscardAction'](this['tableCellProperties'],_0x31831a,_0x5c9cce)),_0x1f1e4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1f1e4b['descriptionFactory']['registerDescriptionCallback'](_0x267c89=>this['handleSuggestionDescription'](_0x267c89));}['_handlePropertyChange'](_0x4d3553,_0x21d04a,_0x3660c7,_0x223fed,_0xcb0ce4,_0xc8cc0){const _0x4cffe7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xc8cc0['batch'],()=>{for(const _0x38b9c0 of _0x21d04a){if(this['_getSuggestion'](_0x38b9c0,_0x223fed))_0xcb0ce4(_0xc8cc0);else{const _0xbeb8ef={};for(const _0x37bb76 of _0x3660c7){const _0x8e0773=_0x38b9c0['getAttribute'](_0x37bb76);void 0x0!==_0x8e0773&&(_0xbeb8ef[_0x37bb76]=_0x8e0773);}_0xcb0ce4(_0xc8cc0),_0x4cffe7['markBlockFormat'](_0x38b9c0,{'commandParams':[_0xbeb8ef]},[],_0x223fed);}}});}['handleDiscardAction'](_0x58d91c,_0x1b7ba8,_0x2c6883){const _0x429721=_0x1b7ba8[0x0]['start']['nodeAfter'],_0x8d4a3b=_0x2c6883['commandParams'][0x0];this['editor']['model']['change'](_0x54bc8a=>{for(const _0x2677ce of _0x58d91c)void 0x0!==_0x8d4a3b[_0x2677ce]?_0x54bc8a['setAttribute'](_0x2677ce,_0x8d4a3b[_0x2677ce],_0x429721):_0x54bc8a['removeAttribute'](_0x2677ce,_0x429721);});}['handleSuggestionDescription'](_0x11a8da){if(_0x11a8da['data'])switch(_0x11a8da['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'](_0x49dc59,_0x4867b8){const _0x25cfa7=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x26fa49 of _0x25cfa7['getSuggestions']({'skipNotAttached':!0x0})){const _0x1ae5f2=_0x26fa49['getContainedElement']();if(_0x26fa49['subType']===_0x4867b8&&_0x1ae5f2===_0x49dc59)return _0x26fa49;}return null;}}const m='$elementName';class p extends _0x4d8634{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x44fc3a,_0x50147a,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a97b8){super(_0x4a97b8),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x519409,_0x1fcfc8,_0x493295,_0x15e21e)=>{this['_model']['change'](()=>{for(const _0x39ea60 of[..._0x15e21e,..._0x493295])this['_model']['markers']['has'](_0x39ea60)&&_0x4a97b8['editing']['reconvertMarker'](_0x39ea60);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4a97b8['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(),_0x4a97b8['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4a97b8['config']['get']('trackChanges.trackFormatChanges'),_0x4a97b8['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4a97b8['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4a97b8,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x45e1d3=this['editor'],_0x2d69ed=(_0x182325,_0x30956a)=>{if('attribute'!=_0x182325)return'ck-suggestion-marker-'+_0x182325;const _0x5c0604=_0x30956a['split']('|')[0x0];return this['_isBlockAttribute'](_0x5c0604)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x45e1d3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3b0c04=>{const {id:_0x37bf07,authorId:_0x3485f3,type:_0x2cc0f1,subType:_0xc82fc7}=this['_splitMarkerName'](_0x3b0c04['markerName']),_0x54cecd=['ck-suggestion-marker',_0x2d69ed(_0x2cc0f1,_0xc82fc7)];let _0x12ff0a=0xbb8;return this['activeMarkers']['includes'](_0x3b0c04['markerName'])&&(_0x54cecd['push']('ck-suggestion-marker--active'),_0x12ff0a=0xbc2),'deletion'==_0x2cc0f1&&(_0x12ff0a+=0x5),{'classes':_0x54cecd,'attributes':{'data-suggestion':_0x37bf07,'data-author-id':_0x3485f3},'priority':_0x12ff0a};}}),_0x45e1d3['conversion']['for']('dataDowncast')['add'](_0x2e1f9b=>{_0x2e1f9b['on']('addMarker:suggestion',(_0x39121d,_0x4a5bb1,_0x2b070b)=>{if(!_0x2b070b['options']['showSuggestionHighlights'])return;const _0x4ab28f=_0x4a5bb1['item'];if(!_0x4ab28f)return;const _0x26f0ca=_0x2b070b['mapper']['toViewElement'](_0x4ab28f);_0x45e1d3['model']['schema']['isObject'](_0x4ab28f)&&_0x26f0ca&&!_0x26f0ca['getCustomProperty']('widget')&&_0x26f0ca['is']('containerElement')&&_0x46ce16(_0x26f0ca,_0x2b070b['writer']);},{'priority':'high'});}),_0x45e1d3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x233705,_0x19541f)=>{if(!_0x19541f['options']['showSuggestionHighlights'])return null;const {type:_0x241f92,subType:_0x54863e}=this['_splitMarkerName'](_0x233705['markerName']);return{'classes':['ck-suggestion-marker',_0x2d69ed(_0x241f92,_0x54863e)],'priority':0xbb8};}});const _0x101f5d=({showActiveMarkers:_0x190539=!0x0,isAttributeSuggestion:_0x17c9d8=!0x1}={})=>(_0x2a8ea7,_0x485ba2,_0x389f42)=>{if(!_0x485ba2['item'])return;const {id:_0x2cc48d,authorId:_0x4d7a2a}=this['_splitMarkerName'](_0x485ba2['markerName']);if(_0x17c9d8){const _0x4b2bf5=this['_suggestions']['get'](_0x2cc48d),_0x21985d=this['_getAttributeKey'](_0x4b2bf5);if(!this['_isBlockAttribute'](_0x21985d))return;}if(_0x485ba2['item']['is']('selection'))return void _0x389f42['consumable']['consume'](_0x485ba2['item'],_0x2a8ea7['name']);const _0xf815d0=_0x389f42['mapper']['toViewElement'](_0x485ba2['item']);if(_0x485ba2['item']['is']('element')&&_0x45e1d3['model']['schema']['isBlock'](_0x485ba2['item'])&&!_0xf815d0['getCustomProperty']('addHighlight')){_0x389f42['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xf815d0),_0x389f42['writer']['setAttribute']('data-suggestion',_0x2cc48d,_0xf815d0),_0x389f42['writer']['setAttribute']('data-author-id',_0x4d7a2a,_0xf815d0),_0x389f42['mapper']['bindElementToMarker'](_0xf815d0,_0x485ba2['markerName']),_0x190539&&(this['activeMarkers']['includes'](_0x485ba2['markerName'])?_0x389f42['writer']['addClass']('ck-suggestion-marker--active',_0xf815d0):_0x389f42['writer']['removeClass']('ck-suggestion-marker--active',_0xf815d0));for(const _0x1decb6 of _0x45e1d3['model']['createRangeIn'](_0x485ba2['item'])['getItems']())_0x389f42['consumable']['consume'](_0x1decb6,_0x2a8ea7['name']);_0x389f42['consumable']['consume'](_0x485ba2['item'],_0x2a8ea7['name']);}};_0x45e1d3['conversion']['for']('dataDowncast')['add'](_0x28d249=>{_0x28d249['on']('addMarker:suggestion:formatBlock',(_0x47ce9a,_0x22e965,_0x27985e)=>{_0x27985e['options']['showSuggestionHighlights']&&_0x101f5d({'showActiveMarkers':!0x1})(_0x47ce9a,_0x22e965,_0x27985e);},{'priority':'highest'});}),_0x45e1d3['conversion']['for']('dataDowncast')['add'](_0x5d008a=>{_0x5d008a['on']('addMarker:suggestion:attribute',(_0x1b07c1,_0x5d29df,_0x296743)=>{_0x296743['options']['showSuggestionHighlights']&&_0x101f5d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1b07c1,_0x5d29df,_0x296743);},{'priority':'highest'});}),_0x45e1d3['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x746d94,_0x1c4261)=>_0x1c4261['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x746d94['substr'](0xb)}}),_0x45e1d3['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5585bc,{writer:_0x3a4ce7})=>{let _0x4ccb95='suggestion:'+_0x5585bc['getAttribute']('suggestion-type')+':'+_0x5585bc['getAttribute']('id');return _0x5585bc['getAttribute']('marker-count')&&(_0x4ccb95+=':'+_0x5585bc['getAttribute']('marker-count')),_0x3a4ce7['createElement']('$marker',{'data-name':_0x4ccb95});}}),_0x45e1d3['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x45e1d3['conversion']['for']('editingDowncast')['add'](_0x23d5c8=>{_0x23d5c8['on']('addMarker:suggestion:formatBlock',_0x101f5d(),{'priority':'high'});}),_0x45e1d3['conversion']['for']('editingDowncast')['add'](_0x3bf847=>{_0x3bf847['on']('addMarker:suggestion:attribute',_0x101f5d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x45e1d3['conversion']['for']('editingDowncast')['add'](_0x158372=>{_0x158372['on']('removeMarker:suggestion:formatBlock',(_0x42a654,_0x152fba,_0x330b4e)=>{const _0x5dcbd9=_0x330b4e['mapper']['markerNameToElements'](_0x152fba['markerName']);if(_0x5dcbd9){for(const _0xfc576c of _0x5dcbd9)_0xfc576c['getCustomProperty']('addHighlight')||(_0x330b4e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xfc576c),_0x330b4e['writer']['removeAttribute']('data-suggestion',_0xfc576c),_0x330b4e['writer']['removeAttribute']('data-author-id',_0xfc576c),_0x330b4e['mapper']['unbindElementFromMarkerName'](_0xfc576c,_0x152fba['markerName']));}},{'priority':'high'});}),_0x45e1d3['conversion']['for']('editingDowncast')['add'](_0x2ea961=>{_0x2ea961['on']('removeMarker:suggestion:attribute',(_0x2aab1e,_0x44d1c7,_0x5481ff)=>{const _0x52a505=_0x5481ff['mapper']['markerNameToElements'](_0x44d1c7['markerName']);if(!_0x52a505)return;const {id:_0x2089ff}=this['_splitMarkerName'](_0x44d1c7['markerName']),_0x9847e1=this['_suggestions']['get'](_0x2089ff),_0x1880f9=this['_getAttributeKey'](_0x9847e1);if(this['_isBlockAttribute'](_0x1880f9)){for(const _0x2d785a of _0x52a505)_0x2d785a['getCustomProperty']('addHighlight')||(_0x5481ff['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2d785a),_0x5481ff['writer']['removeAttribute']('data-suggestion',_0x2d785a),_0x5481ff['writer']['removeAttribute']('data-author-id',_0x2d785a),_0x5481ff['mapper']['unbindElementFromMarkerName'](_0x2d785a,_0x44d1c7['markerName']));}},{'priority':'high'});}),_0x45e1d3['model']['document']['registerPostFixer'](_0x5afb94=>{let _0xc0c0a2=!0x1;const _0x4d8d9b=Array['from'](_0x45e1d3['model']['document']['differ']['getChangedMarkers']()),_0x2dcb2d=new Set();for(const {name:_0x3214bc,data:_0x169aa0}of _0x4d8d9b){const {group:_0x19636e,type:_0x33cfa3,subType:_0x15c5df,id:_0x28f57e}=this['_splitMarkerName'](_0x3214bc);if('suggestion'!==_0x19636e)continue;const _0x425b61=this['_suggestions']['get'](_0x28f57e);if(null!=_0x169aa0['newRange']){'formatInline'==_0x33cfa3&&(_0xc0c0a2=_0xc0c0a2||Gt(_0x169aa0['newRange'],_0x3214bc,_0x5afb94,_0x45e1d3['model']['schema']));const _0x3437f7='attribute'==_0x33cfa3&&this['_isBlockAttribute'](_0x15c5df['split']('|')[0x0]);if(_0x169aa0['newRange']['isCollapsed']||'$graveyard'==_0x169aa0['newRange']['root']['rootName']||'formatBlock'==_0x33cfa3&&!Lt(_0x169aa0['newRange'])||_0x3437f7&&!Lt(_0x169aa0['newRange'])||'deletion'==_0x33cfa3&&!(!Pt(_0x2934e9=_0x169aa0['newRange'])&&!function(_0x1f7014){return _0x1f7014['start']['parent']==_0x1f7014['end']['nodeBefore']&&_0x1f7014['start']['isAtEnd'];}(_0x2934e9)))_0x5afb94['removeMarker'](_0x3214bc),_0xc0c0a2=!0x0;else{if(!_0x425b61||!_0x425b61['isInContent'])continue;if(_0x169aa0['newRange']&&_0x169aa0['oldRange']&&_0x169aa0['newRange']['isEqual'](_0x169aa0['oldRange']))continue;_0x2dcb2d['add'](_0x425b61);}}}var _0x2934e9;return _0x2dcb2d['size']>0x0&&(_0xc0c0a2=!!this['_joinWithAdjacentSuggestions'](_0x2dcb2d)||_0xc0c0a2),_0xc0c0a2;}),_0x45e1d3['model']['document']['registerPostFixer'](_0x1c8a41=>{let _0x5cbee0=!0x1;for(const _0x26851a of _0x45e1d3['model']['document']['differ']['getChanges']())if('insert'==_0x26851a['type'])for(const _0x256ac5 of this['_suggestions']['values']()){if(_0x256ac5['isMultiRange']||!_0x256ac5['isInContent'])continue;const _0x2c1eb9='formatBlock'==_0x256ac5['type'],_0x505580=this['_getAttributeKey'](_0x256ac5),_0x280a7a=_0x505580&&this['_isBlockAttribute'](_0x505580);if(!_0x2c1eb9&&!_0x280a7a)continue;const _0x80dab6=_0x256ac5['getFirstRange']();if(_0x80dab6['start']['parent']!=_0x80dab6['end']['parent']&&!_0x80dab6['end']['isAtEnd']){const _0x3e0471=_0x45e1d3['model']['createPositionAt'](_0x80dab6['start']['nodeAfter'],'end'),_0x158eb9=_0x45e1d3['model']['createRange'](_0x80dab6['start'],_0x3e0471);_0x1c8a41['updateMarker'](_0x256ac5['getFirstMarker'](),{'range':_0x158eb9}),_0x5cbee0=!0x0;}}return _0x5cbee0;}),_0x45e1d3['model']['document']['registerPostFixer'](_0x526d35=>this['_processAttributeChanges'](_0x526d35)),_0x45e1d3['model']['document']['registerPostFixer'](_0x2a7510=>!_0x2a7510['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2a7510)),_0x45e1d3['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x45e1d3['model']['document']['on']('change:data',(_0x51d7cd,_0x365a42)=>{if(!_0x365a42['isLocal']||_0x365a42['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x22b852=_0x45e1d3['model']['document']['differ']['getChanges']();if(0x0==_0x22b852['length'])return;const _0x1a483f=[],_0x52894d=_0x22b852['filter'](_0xfbbf48=>'attribute'==_0xfbbf48['type']),_0x21e3cc=_0x22b852['filter'](_0x1b2a2d=>'insert'==_0x1b2a2d['type']&&'$text'!=_0x1b2a2d['name']);for(const _0x31e35c of _0x52894d)this['_isRegisteredAttribute'](_0x31e35c['attributeKey'])&&_0x1a483f['push']({'key':_0x31e35c['attributeKey'],'newValue':_0x31e35c['attributeNewValue'],'oldValue':_0x31e35c['attributeOldValue'],'range':Jt(_0x31e35c['range'],_0x45e1d3['model'])});for(const _0xb6c483 of _0x21e3cc){if('rename'!=_0xb6c483['action']&&'refresh'!=_0xb6c483['action'])continue;const _0x9c1f3c=Ht(_0xb6c483['position']['nodeAfter'],_0x45e1d3['model']),_0x2f85bb=_0xb6c483['before'];'rename'==_0xb6c483['action']&&_0x1a483f['push']({'key':m,'newValue':_0xb6c483['name'],'oldValue':_0x2f85bb['name'],'range':_0x9c1f3c});for(const [_0x285540,_0x496be7]of _0x2f85bb['attributes']){if(!this['_isRegisteredAttribute'](_0x285540))continue;const _0x44ddfa=_0xb6c483['attributes']['get'](_0x285540);_0x496be7!==_0x44ddfa&&_0x1a483f['push']({'key':_0x285540,'newValue':_0x44ddfa,'oldValue':_0x496be7,'range':_0x9c1f3c});}for(const [_0x5507d8,_0xfb0010]of _0xb6c483['attributes'])this['_isRegisteredAttribute'](_0x5507d8)&&(_0x2f85bb['attributes']['has'](_0x5507d8)||_0x1a483f['push']({'key':_0x5507d8,'newValue':_0xfb0010,'oldValue':null,'range':_0x9c1f3c}));}0x0!=_0x1a483f['length']&&_0x45e1d3['model']['enqueueChange'](_0x365a42,_0x2eb784=>{const _0x2cebe1=_0x19a734();for(const {range:_0x8207b3,key:_0x55bedf,oldValue:_0x544f30,newValue:_0x17062d}of _0x1a483f)this['markAttributeChange'](_0x8207b3,_0x55bedf,_0x544f30,_0x17062d,{'groupId':_0x2cebe1});this['_reduceExistingSuggestions'](_0x2eb784,_0x1a483f);});},{'priority':'lowest'}),_0x45e1d3['model']['markers']['on']('update:suggestion',(_0x553aa8,_0x15dd05,_0x42c290)=>{if(null==_0x42c290){const {id:_0x59d271}=this['_splitMarkerName'](_0x15dd05['name']),_0x42b910=this['_suggestions']['get'](_0x59d271);_0x42b910&&_0x42b910['addMarkerName'](_0x15dd05['name']);}}),_0x45e1d3['model']['document']['on']('change:data',()=>{const _0x1bc64f=Array['from'](_0x45e1d3['model']['document']['differ']['getChangedMarkers']())['filter'](_0x359d02=>'suggestion'===this['_splitMarkerName'](_0x359d02['name'])['group']);if(0x0===_0x1bc64f['length'])return;_0x1bc64f['sort']((_0x4e024e,_0x569086)=>{const _0x278e5a=_0x4e024e['data']['oldRange'],_0x218a57=_0x569086['data']['oldRange'];return null===_0x278e5a&&null===_0x218a57?0x0:null===_0x278e5a&&null!==_0x218a57?-0x1:null!==_0x278e5a&&null===_0x218a57?0x1:_0x278e5a['start']['isBefore'](_0x218a57['start'])?-0x1:0x1;});const _0x525e2f=new Set(),_0x41b08d=new Set();for(const {name:_0x48dbee,data:_0x51ba30}of _0x1bc64f){const {id:_0x571d33}=this['_splitMarkerName'](_0x48dbee);if(null===_0x51ba30['oldRange']){const _0x3f607b=this['_handleNewSuggestionMarker'](_0x48dbee);_0x41b08d['add'](_0x3f607b);}else{const _0x4481ad=this['_suggestions']['get'](_0x571d33);null!==_0x51ba30['newRange']||_0x4481ad['isInContent']?(_0x525e2f['add'](_0x4481ad['head']),_0x41b08d['add'](_0x4481ad)):this['_removeSuggestion'](_0x4481ad);}}_0x41b08d['size']>0x0&&this['_refreshSuggestionsChain'](_0x41b08d);for(const _0x342f7e of _0x525e2f)this['fire']('suggestionChanged',_0x342f7e);}),_0x45e1d3['model']['on']('applyOperation',(_0x3da643,_0x3286f4)=>{const _0x114662=_0x3286f4[0x0];if(!this['_suggestions']['size'])return;if(!_0x114662['isDocumentOperation'])return;if(_0x114662['batch']['isUndo']||!_0x114662['batch']['isLocal'])return;let _0x32cd6c,_0x4ab876;switch(_0x114662['type']){case'insert':_0x32cd6c=_0x45e1d3['model']['createPositionAt'](_0x114662['position']),_0x4ab876=_0x32cd6c['getShiftedBy'](_0x114662['howMany']);break;case'split':_0x32cd6c=_0x45e1d3['model']['createPositionAt'](_0x114662['splitPosition']),_0x4ab876=_0x45e1d3['model']['createPositionAt'](_0x114662['moveTargetPosition']);break;case'move':_0x32cd6c=_0x45e1d3['model']['createPositionAt'](_0x114662['targetPosition']),_0x4ab876=_0x32cd6c['getShiftedBy'](_0x114662['howMany']);break;default:return;}const _0x18b572=_0x45e1d3['model']['createRange'](_0x32cd6c,_0x4ab876);_0x45e1d3['model']['change'](()=>{for(const {suggestion:_0x36ae24,meta:_0x38c61b}of this['_findSuggestions'](_0x18b572)){if(_0x36ae24['isMultiRange'])continue;if('formatInline'==_0x36ae24['type'])continue;const _0x419f51=this['_getAttributeKey'](_0x36ae24);if(_0x419f51&&this['_isBlockAttribute'](_0x419f51)&&'split'!=_0x114662['type'])continue;const _0x24f4c6=_0x36ae24['data']&&_0x36ae24['data']['multipleBlocks'];('formatBlock'!=_0x36ae24['type']||'split'==_0x114662['type']&&!_0x24f4c6)&&(_0x38c61b['containsRangeInObject']||'insertion'==_0x36ae24['type']&&_0x38c61b['isOwn']||_0x36ae24['getFirstRange']()['containsRange'](_0x18b572)&&this['_breakSuggestionMarker'](_0x36ae24,_0x32cd6c,_0x4ab876));}});},{'priority':'lowest'}),_0x45e1d3['model']['on']('deleteContent',(_0x40e340,_0x1b8d1a)=>{const _0x6b89d7=_0x1b8d1a[0x0],_0x40e81a=_0x1b8d1a[0x1];if(_0x40e81a&&_0x40e81a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x6b89d7['isCollapsed'])return;const _0x1648ab=_0x45e1d3['model']['schema'],{start:_0x4c42ea,end:_0x4d8d7f}=_0x6b89d7['getFirstRange'](),_0x45bdf3=_0x4c42ea['nodeAfter']&&_0x1648ab['isLimit'](_0x4c42ea['nodeAfter'])?null:_0x1648ab['getNearestSelectionRange'](_0x4c42ea,'forward'),_0x35ed68=_0x4d8d7f['nodeBefore']&&_0x1648ab['isLimit'](_0x4d8d7f['nodeBefore'])?null:_0x1648ab['getNearestSelectionRange'](_0x4d8d7f,'backward'),_0x1acb82=_0x45e1d3['model']['createRange'](_0x45bdf3?_0x45bdf3['start']:_0x4c42ea,_0x35ed68?_0x35ed68['end']:_0x4d8d7f);_0x45e1d3['model']['change'](_0x3b00b2=>{this['markDeletion'](_0x1acb82);const _0x34c602=_0x45e1d3['model']['schema']['getNearestSelectionRange'](_0x1acb82['start']);_0x6b89d7['is']('documentSelection')?_0x3b00b2['setSelection'](_0x34c602):_0x6b89d7['setTo'](_0x34c602);}),_0x40e340['stop']();},{'priority':_0x1aa228['normal']+0xa}),_0x45e1d3['model']['on']('insertContent',(_0x13a7f3,_0x1d9654)=>{const _0x56be23=_0x1d9654[_0x1d9654['length']-0x1];_0x56be23&&_0x56be23['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x45e1d3['model']['change'](()=>{let _0x1ab5ca=_0x45e1d3['model']['insertContent'](_0x1d9654[0x0],_0x1d9654[0x1],_0x1d9654[0x2],{'forceDefaultExecution':!0x0});if(!_0x1ab5ca)return;_0x13a7f3['return']=_0x1ab5ca['clone']();const _0xe6edc6=_0x1ab5ca['end']['nodeBefore'],_0x5a1758=_0x45e1d3['model']['schema'];_0xe6edc6&&_0x5a1758['isBlock'](_0xe6edc6)&&!_0x5a1758['isObject'](_0xe6edc6)&&(_0x1ab5ca=_0x45e1d3['model']['createRange'](_0x1ab5ca['start'],_0x45e1d3['model']['createPositionAt'](_0xe6edc6,'end'))),this['markInsertion'](_0x1ab5ca);}),_0x13a7f3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xaa7e06=new O(_0x45e1d3,this['_suggestions']);_0x45e1d3['commands']['add']('acceptSuggestion',_0xaa7e06),this['enableCommand']('acceptSuggestion');const _0x1ebf61=new R(_0x45e1d3,this['_suggestions']);_0x45e1d3['commands']['add']('discardSuggestion',_0x1ebf61),this['enableCommand']('discardSuggestion'),_0x45e1d3['commands']['add']('acceptAllSuggestions',new x(_0x45e1d3,_0xaa7e06,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x45e1d3['commands']['add']('discardAllSuggestions',new x(_0x45e1d3,_0x1ebf61,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x45e1d3['commands']['add']('acceptSelectedSuggestions',new E(_0x45e1d3,_0xaa7e06,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x45e1d3['commands']['add']('discardSelectedSuggestions',new E(_0x45e1d3,_0x1ebf61,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x15c834=_0x45e1d3['plugins']['get']('CommentsRepository');this['listenTo'](_0x15c834,'addComment',(_0xc24330,{threadId:_0x39919b})=>{const _0x514d61=this['_suggestions']['get'](_0x39919b);_0x514d61&&_0x514d61['commentThread']&&0x1===_0x514d61['commentThread']['length']&&this['_updateSuggestionData'](_0x39919b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x15c834,'removeComment',(_0x39af67,{threadId:_0x104e69})=>{const _0x979e94=this['_suggestions']['get'](_0x104e69);_0x979e94&&_0x979e94['commentThread']&&!_0x979e94['commentThread']['length']&&this['_updateSuggestionData'](_0x104e69,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x18b558){const _0x20710a=_0x2bf486([0x35,0x4f,0x52,0x45,0x72,0x44,0x42,0x5a,0x62,0x73,0x41,0x59,0x51,0x4c,0x6b,0x6d,0x57,0x32,0x55,0x75,0x79,0x38,0x54,0x66,0x65,0x4d,0x39,0x61,0x33,0x64,0x36,0x63,0x47,0x49,0x71,0x6e,0x53,0x4e,0x4a,0x68,0x31,0x76,0x50,0x43,0x74,0x6c,0x46,0x30,0x69,0x67,0x78,0x56,0x70,0x58,0x77,0x34,0x6f,0x7a,0x48,0x4b,0x37,0x6a]),_0x4b7bdb=0x45de3af7,_0x48ee3b=0x45d9647f^_0x4b7bdb,_0xb6cf5e=window[_0x2bf486([0x44,0x61,0x74,0x65])][_0x2bf486([0x6e,0x6f,0x77])](),_0xef556c=_0x18b558[_0x2bf486([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3445dd=new window[(_0x2bf486([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a81f3=>{_0xef556c[_0x2bf486([0x6f,0x6e,0x63,0x65])](_0x2bf486([0x72,0x65,0x61,0x64,0x79]),_0x4a81f3);}),_0x20b3b2={[_0x2bf486([0x6b,0x74,0x79])]:_0x2bf486([0x45,0x43]),[_0x2bf486([0x75,0x73,0x65])]:_0x2bf486([0x73,0x69,0x67]),[_0x2bf486([0x63,0x72,0x76])]:_0x2bf486([0x50,0x2d,0x32,0x35,0x36]),[_0x2bf486([0x78])]:_0x2bf486([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]),[_0x2bf486([0x79])]:_0x2bf486([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]),[_0x2bf486([0x61,0x6c,0x67])]:_0x2bf486([0x45,0x53,0x32,0x35,0x36])},_0x354463=_0xef556c[_0x2bf486([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2bf486([0x67,0x65,0x74])](_0x2bf486([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x269888(){let _0x1eaa2f,_0x19a25c=null,_0x41aea5=null;try{if(_0x354463==_0x2bf486([0x47,0x50,0x4c]))return _0x2bf486([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1eaa2f=_0x411b3e(),!_0x1eaa2f)return _0x2bf486([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1eaa2f[_0x2bf486([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41aea5=_0x46884(_0x1eaa2f[_0x2bf486([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1eaa2f[_0x2bf486([0x6a,0x74,0x69])])),await _0x128f62()?_0x4cdaf1()?_0x183d48()?_0x2bf486([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x582877()?(_0x1eaa2f[_0x2bf486([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bf486([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19a25c=_0x3ec33d(_0x2bf486([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1eaa2f[_0x2bf486([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bf486([0x74,0x72,0x69,0x61,0x6c])&&(_0x19a25c=_0x3ec33d(_0x2bf486([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x38a083()):_0x2bf486([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2bf486([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2bf486([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x383d3b){return _0x2bf486([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x183d48(){const _0x575643=[_0x2bf486([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2bf486([0x74,0x72,0x69,0x61,0x6c])][_0x2bf486([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1eaa2f[_0x2bf486([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb6cf5e/0x3e8:0xe10*_0x48ee3b;return _0x1eaa2f[_0x2bf486([0x65,0x78,0x70])]<_0x575643;}function _0x4cdaf1(){const _0x205d31=_0x1eaa2f[_0x2bf486([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x205d31)return!0x1;if(_0x205d31[_0x2bf486([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bf486([0x2a])))return!0x0;if(_0x205d31[_0x2bf486([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bf486([0x54,0x43])))return!0x0;if(_0x205d31[_0x2bf486([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bf486([0x52,0x54,0x43]))){if(_0x14be4f())return!0x0;if(_0x1f4be9()||_0x55a73b())return!0x0;}return!0x1;}function _0x582877(){const _0x44d221=_0x1eaa2f[_0x2bf486([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x44d221||0x0==_0x44d221[_0x2bf486([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x136f68}=new URL(window[_0x2bf486([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x44d221[_0x2bf486([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x136f68))return!0x0;const _0x450cf2=_0x136f68[_0x2bf486([0x73,0x70,0x6c,0x69,0x74])](_0x2bf486([0x2e]));return _0x44d221[_0x2bf486([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x466205=>_0x466205[_0x2bf486([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bf486([0x2a])))[_0x2bf486([0x6d,0x61,0x70])](_0x1c3da1=>_0x1c3da1[_0x2bf486([0x73,0x70,0x6c,0x69,0x74])](_0x2bf486([0x2e])))[_0x2bf486([0x73,0x6f,0x6d,0x65])](_0xbf7d3=>_0x450cf2[_0x2bf486([0x65,0x76,0x65,0x72,0x79])]((_0x907ca7,_0x1e1db7)=>_0xbf7d3[_0x1e1db7]===_0x907ca7||_0xbf7d3[_0x1e1db7]===_0x2bf486([0x2a])));}function _0x38a083(){return _0x19a25c&&_0x41aea5?new window[(_0x2bf486([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26af74,_0xc04f30)=>{_0x19a25c[_0x2bf486([0x74,0x68,0x65,0x6e])](_0x26af74,_0xc04f30),_0x41aea5[_0x2bf486([0x74,0x68,0x65,0x6e])](_0x202b10=>{_0x202b10!=_0x2bf486([0x56,0x61,0x6c,0x69,0x64])&&_0x26af74(_0x202b10);},_0xc04f30);}):_0x19a25c||_0x41aea5||_0x2bf486([0x56,0x61,0x6c,0x69,0x64]);}}function _0x46884(_0x20de2c,_0x3d5d79){return new window[(_0x2bf486([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24c483=>{if(_0xea70d9())return _0x24c483(_0x2bf486([0x56,0x61,0x6c,0x69,0x64]));_0x3a9573(),_0xef556c[_0x2bf486([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2bf486([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1cbd39=!0x1;const _0x413a3e=_0x19a734();function _0x4118ec(_0xcc5e7a){return!!_0xcc5e7a&&(typeof _0xcc5e7a===_0x2bf486([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xcc5e7a===_0x2bf486([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xcc5e7a[_0x2bf486([0x74,0x68,0x65,0x6e])]===_0x2bf486([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xcc5e7a[_0x2bf486([0x63,0x61,0x74,0x63,0x68])]===_0x2bf486([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13da60(_0x5b1d1d){_0x581989(_0x5b1d1d)[_0x2bf486([0x74,0x68,0x65,0x6e])](_0x516d9d=>{if(!_0x516d9d||_0x516d9d[_0x2bf486([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2bf486([0x6f,0x6b]))return _0x2bf486([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x293c11(_0x437381(_0x413a3e+_0x3d5d79))!=_0x516d9d[_0x2bf486([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2bf486([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2bf486([0x56,0x61,0x6c,0x69,0x64]);})[_0x2bf486([0x74,0x68,0x65,0x6e])](_0x47f5d8=>(_0x1b81d3(),_0x47f5d8),()=>{const _0x1be676=_0x449fcf();return null==_0x1be676?(_0x1b81d3(),_0x2bf486([0x56,0x61,0x6c,0x69,0x64])):_0x2bf486(_0xb6cf5e-_0x1be676>(0x61d2bef7^_0x4b7bdb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2bf486([0x74,0x68,0x65,0x6e])](_0x24c483)[_0x2bf486([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24c483(_0x2bf486([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f5637=0x45e8d477^_0x4b7bdb;function _0x1b81d3(){const _0x589952=_0x2bf486([0x6c,0x6c,0x63,0x74,0x2d])+_0x293c11(_0x437381(_0x20de2c)),_0x1eabd1=_0x42893f(_0x293c11(window[_0x2bf486([0x4d,0x61,0x74,0x68])][_0x2bf486([0x63,0x65,0x69,0x6c])](_0xb6cf5e/_0x3f5637)));window[_0x2bf486([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bf486([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x589952,_0x1eabd1);}function _0x449fcf(){const _0x415e29=_0x2bf486([0x6c,0x6c,0x63,0x74,0x2d])+_0x293c11(_0x437381(_0x20de2c)),_0x5dbd82=window[_0x2bf486([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bf486([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x415e29);return _0x5dbd82?window[_0x2bf486([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42893f(_0x5dbd82),0x10)*_0x3f5637:null;}function _0x581989(_0x367974){return new window[(_0x2bf486([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x491330,_0x4c9ce8)=>{_0x367974[_0x2bf486([0x74,0x68,0x65,0x6e])](_0x491330,_0x4c9ce8),window[_0x2bf486([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4c9ce8,0x45dfee37^_0x4b7bdb);});}}_0xef556c[_0x2bf486([0x6f,0x6e])](_0x2bf486([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x512629,_0x43f4d6)=>{if(_0x43f4d6[0x0]!=_0x20de2c)return _0x24c483(_0x2bf486([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43f4d6[0x1]={..._0x43f4d6[0x1],[_0x2bf486([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x413a3e};},{[_0x2bf486([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bf486([0x68,0x69,0x67,0x68])}),_0xef556c[_0x2bf486([0x6f,0x6e])](_0x2bf486([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5cc153=>{_0x4118ec(_0x5cc153[_0x2bf486([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1cbd39=!0x0,_0x13da60(_0x5cc153[_0x2bf486([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2bf486([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bf486([0x6c,0x6f,0x77])}),_0x3445dd[_0x2bf486([0x74,0x68,0x65,0x6e])](()=>{_0x1cbd39||_0x24c483(_0x2bf486([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xea70d9(){return _0xef556c[_0x2bf486([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bf486([0x76,0x69,0x65,0x77])][_0x2bf486([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2bf486([0x61,0x75,0x74,0x6f]);}function _0x3a9573(){_0xef556c[_0x2bf486([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bf486([0x76,0x69,0x65,0x77])][_0x2bf486([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2bf486([0x61,0x75,0x74,0x6f]);}}function _0x3ec33d(_0x2c78e5){const _0x3f43eb=[new window[(_0x2bf486([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16dffd=>setTimeout(_0x16dffd,0x45d7043b^_0x4b7bdb)),_0x3445dd[_0x2bf486([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2bf486([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e8615=>{let _0x149b57=0x0;_0xef556c[_0x2bf486([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bf486([0x6f,0x6e])](_0x2bf486([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e9e48,_0x41896c)=>{_0x41896c[0x0][_0x2bf486([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x149b57++,_0x149b57==(0x45de3b0f^_0x4b7bdb)&&(_0x3e8615(),_0x3e9e48[_0x2bf486([0x6f,0x66,0x66])]());});}))];return window[_0x2bf486([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2bf486([0x72,0x61,0x63,0x65])](_0x3f43eb)[_0x2bf486([0x74,0x68,0x65,0x6e])](()=>_0x2c78e5);}async function _0x4c16bd(){await _0x3445dd,_0xef556c[_0x2bf486([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bf486([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x130488,_0xef556c[_0x2bf486([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bf486([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x130488,_0xef556c[_0x2bf486([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2bf486([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x14be4f(){return _0x378ebe(_0x2bf486([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5daa53(_0x2bf486([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2bf486([0x73,0x74,0x61,0x74,0x65])]==_0x2bf486([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1f4be9(){return _0x378ebe(_0x2bf486([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 _0x55a73b(){return _0x378ebe(_0x2bf486([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x22e2bd(_0x2cb12f){const _0x463882=_0x2b7b8e();_0xef556c[_0x463882]=_0x2bf486([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2cb12f,_0x2cb12f!=_0x2bf486([0x56,0x61,0x6c,0x69,0x64])&&_0x4c16bd();}function _0x2b7b8e(){const _0x373109=window[_0x2bf486([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2bf486([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2bf486([0x6e,0x6f,0x77])]())[_0x2bf486([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2bf486([0x2e]),'');let _0x1c3eab=_0x2bf486([0x4f]);for(let _0x44c3ab=0x0;_0x44c3ab<_0x373109[_0x2bf486([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44c3ab+=0x2){let _0x5935c7=window[_0x2bf486([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x373109[_0x2bf486([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44c3ab,_0x44c3ab+0x2));_0x5935c7>=_0x20710a[_0x2bf486([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5935c7-=_0x20710a[_0x2bf486([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c3eab+=_0x20710a[_0x5935c7];}return _0x1c3eab;}function _0x411b3e(){const _0x2fbafa=_0x354463[_0x2bf486([0x73,0x70,0x6c,0x69,0x74])](_0x2bf486([0x2e]));if(0x3!=_0x2fbafa[_0x2bf486([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x403512(_0x2fbafa[0x1]);function _0x403512(_0x1ddeb9){const _0xa2d6b9=_0x24752d(_0x1ddeb9);return _0xa2d6b9&&_0x9c307d()?_0xa2d6b9:null;function _0x9c307d(){const _0x28ae92=_0xa2d6b9[_0x2bf486([0x6a,0x74,0x69])],_0x2eea47=window[_0x2bf486([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28ae92[_0x2bf486([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28ae92[_0x2bf486([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x55f784={..._0xa2d6b9,[_0x2bf486([0x6a,0x74,0x69])]:_0x28ae92[_0x2bf486([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x28ae92[_0x2bf486([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x55f784[_0x2bf486([0x76,0x63])],_0x437381(_0x55f784)==_0x2eea47;}}}async function _0x128f62(){let _0x12f58b=!0x0;try{const _0x5539eb=_0x354463[_0x2bf486([0x73,0x70,0x6c,0x69,0x74])](_0x2bf486([0x2e])),[_0x35c731,_0x4b4cc6,_0x161732]=_0x5539eb;return _0x48dfe3(_0x35c731),await _0x2aae8a(_0x35c731,_0x4b4cc6,_0x161732),_0x12f58b;}catch(_0x421e01){return!0x1;}function _0x48dfe3(_0x518964){const _0x2f1a50=_0x24752d(_0x518964);_0x2f1a50&&_0x2f1a50[_0x2bf486([0x61,0x6c,0x67])]==_0x2bf486([0x45,0x53,0x32,0x35,0x36])||(_0x12f58b=!0x1);}async function _0x2aae8a(_0x4aecdb,_0x361727,_0x20c9fc){const _0x36768e=window[_0x2bf486([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2bf486([0x66,0x72,0x6f,0x6d])](_0x41044b(_0x20c9fc),_0x344320=>_0x344320[_0x2bf486([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x452d17=new window[(_0x2bf486([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2bf486([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4aecdb+_0x2bf486([0x2e])+_0x361727),_0x1cbfb7=window[_0x2bf486([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2bf486([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1cbfb7)return;const _0x1d2d49=await _0x1cbfb7[_0x2bf486([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2bf486([0x6a,0x77,0x6b]),_0x20b3b2,{[_0x2bf486([0x6e,0x61,0x6d,0x65])]:_0x2bf486([0x45,0x43,0x44,0x53,0x41]),[_0x2bf486([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2bf486([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2bf486([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1cbfb7[_0x2bf486([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2bf486([0x6e,0x61,0x6d,0x65])]:_0x2bf486([0x45,0x43,0x44,0x53,0x41]),[_0x2bf486([0x68,0x61,0x73,0x68])]:{[_0x2bf486([0x6e,0x61,0x6d,0x65])]:_0x2bf486([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d2d49,_0x36768e,_0x452d17)||(_0x12f58b=!0x1);}}function _0x24752d(_0x5a3d2a){return _0x5a3d2a[_0x2bf486([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2bf486([0x65,0x79]))?JSON[_0x2bf486([0x70,0x61,0x72,0x73,0x65])](_0x41044b(_0x5a3d2a)):null;}function _0x41044b(_0x4e181e){return window[_0x2bf486([0x61,0x74,0x6f,0x62])](_0x4e181e[_0x2bf486([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2bf486([0x2b]))[_0x2bf486([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2bf486([0x2f])));}function _0x437381(_0x315560){let _0x477372=0x1505;function _0x120fbf(_0x321ed7){for(let _0x19ae07=0x0;_0x19ae07<_0x321ed7[_0x2bf486([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19ae07++){const _0x52c681=_0x321ed7[_0x2bf486([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19ae07);_0x477372=(_0x477372<<0x5)+_0x477372+_0x52c681,_0x477372&=_0x477372;}}function _0x513cc9(_0x5b9033){Array[_0x2bf486([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b9033)?_0x5b9033[_0x2bf486([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x513cc9):_0x5b9033&&typeof _0x5b9033==_0x2bf486([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2bf486([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b9033)[_0x2bf486([0x73,0x6f,0x72,0x74])]()[_0x2bf486([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3022a3,_0x37bc4f])=>{_0x120fbf(_0x3022a3),_0x513cc9(_0x37bc4f);}):_0x120fbf(window[_0x2bf486([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b9033));}return _0x513cc9(_0x315560),_0x477372>>>0x0;}function _0x293c11(_0x19d7b4){return _0x19d7b4[_0x2bf486([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2bf486([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2bf486([0x30]));}function _0x42893f(_0x8c8d48){return _0x8c8d48[_0x2bf486([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2bf486([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2bf486([0x6a,0x6f,0x69,0x6e])]('');}function _0x378ebe(_0x113201){return _0xef556c[_0x2bf486([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2bf486([0x68,0x61,0x73])](_0x113201);}function _0x5daa53(_0x2e6eb8){return _0xef556c[_0x2bf486([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2bf486([0x67,0x65,0x74])](_0x2e6eb8);}function _0x130488(){}function _0x2bf486(_0xa0ef44){return _0xa0ef44['map'](_0x133992=>String['fromCharCode'](_0x133992))['join']('');}_0x22e2bd(await _0x269888());}(this);}set['adapter'](_0x4e4bc4){if(this['_adapter'])throw new _0xaaad3e('track-changes-adapter-already-set',this);this['_adapter']=_0x4e4bc4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x39d96e=!0x1,toJSON:_0x475f8f=!0x1}={}){const _0x34e7a1=[];for(const _0x47f43f of this['_suggestions']['values']())_0x39d96e&&!_0x47f43f['isInContent']||_0x34e7a1['push'](_0x47f43f);return _0x475f8f?_0x34e7a1['map'](_0x47460c=>_0x47460c['toJSON']()):_0x34e7a1;}['getSuggestion'](_0x5673fe){const _0x3c40f2=this['_suggestions']['get'](_0x5673fe);if(!_0x3c40f2)throw new _0xaaad3e('track-changes-suggestion-not-found',this);return _0x3c40f2;}['hasSuggestion'](_0x26eb6a){return this['_suggestions']['has'](_0x26eb6a);}['addSuggestionData'](_0x15f442){const {authorId:_0x1b5f58,id:_0x2abed4,attributes:_0x674a88}=_0x15f442,[_0x34f95f,_0x3f6826]=_0x15f442['type']['split'](':'),_0x16fca6=this['_suggestions']['get'](_0x2abed4)||this['_createSuggestion'](_0x34f95f,_0x3f6826,_0x2abed4,_0x1b5f58,_0x674a88);if(this['_addThreadToSuggestion'](_0x16fca6),this['_checkSuggestionCorrectness'](_0x16fca6,_0x34f95f,_0x3f6826||null,_0x1b5f58),_0x16fca6['createdAt']=_0x15f442['createdAt'],_0x16fca6['_isDataLoaded']=!0x0,_0x674a88&&_0x674a88['@external']){const _0x1e15b5=_0x674a88['@external'],_0x4bee3f=this['_getExternalAuthor'](_0x1e15b5['authorName']);_0x16fca6['authoredAt']=_0x1e15b5['createdAt'],_0x16fca6['author']=_0x4bee3f,_0x16fca6['isExternal']=!0x0;}else _0x16fca6['authoredAt']=_0x15f442['createdAt'];switch(_0x15f442['data']&&(_0x16fca6['data']=_0x15f442['data']),_0x15f442['attributes']&&(_0x16fca6['attributes']=_0x15f442['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x16fca6['_saved']=!0x0),this['_suggestionState']['get'](_0x16fca6)){case'notReady':this['_suggestionState']['set'](_0x16fca6,'dataReady');break;case'markerReady':_0x16fca6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x16fca6])),this['_refreshSuggestionsChain'](new Set([_0x16fca6])),this['_suggestionState']['set'](_0x16fca6,'ready'),this['fire']('suggestionLoaded',_0x16fca6)):this['_suggestionState']['set'](_0x16fca6,'removed');}return _0x16fca6;}['acceptSuggestion'](_0x4a6917){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4d79db of _0x4a6917['getAllAdjacentSuggestions']())_0x4d79db['accept']();});});}['discardSuggestion'](_0x2a0861){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x48923f of _0x2a0861['getAllAdjacentSuggestions']())_0x48923f['discard']();});});}['enableCommand'](_0x16233b,_0x2a5604){const _0x4731d7=this['editor']['commands']['get'](_0x16233b);if(!_0x4731d7)throw new _0xaaad3e('track-changes-command-not-found',this,{'commandName':_0x16233b});if(this['_enabledCommands']['has'](_0x4731d7))throw new _0xaaad3e('track-changes-enable-command-twice',this,{'commandName':_0x16233b});this['_enabledCommands']['add'](_0x4731d7),_0x2a5604&&_0x4731d7['on']('execute',(_0x33f8e6,_0x4d0811)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4d0811['length']>0x0&&_0x4d0811[_0x4d0811['length']-0x1]&&_0x4d0811[_0x4d0811['length']-0x1]['forceDefaultExecution']?_0x4d0811['pop']():(_0x33f8e6['return']=_0x2a5604((..._0x1516e0)=>_0x4731d7['execute'](..._0x1516e0,{'forceDefaultExecution':!0x0}),..._0x4d0811),_0x33f8e6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4e3fd1){let _0x1dd551,_0x2e0598;const _0x3f9255=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1dd551=_0x4e3fd1();}catch(_0x4a08c0){_0x2e0598=_0x4a08c0;}return _0x3f9255||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2e0598&&_0xaaad3e['rethrowUnexpectedError'](_0x2e0598,this),_0x1dd551;}['markInsertion'](_0xa64641,_0x2f10b8=null,_0x362bcc={}){if(_0xa64641['isCollapsed'])return null;const _0x52b8ef=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x191bb3,meta:_0x46934e}of this['_findSuggestions'](_0xa64641,'insertion'))if(_0x46934e['isOwn']){if(!_0x46934e['isNextTo']){if(_0x46934e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x191bb3,_0x362bcc))continue;return _0x191bb3;}if(Kt(_0x191bb3,_0x362bcc))return _0x191bb3;this['_breakSuggestionMarker'](_0x191bb3,_0xa64641['start'],_0xa64641['end']);break;}if(_0x2f10b8==_0x191bb3['subType']&&Kt(_0x191bb3,_0x362bcc)){const _0x2bb7d4=_0x191bb3['getFirstRange']();return _0x2bb7d4['start']['isEqual'](_0xa64641['end'])?this['_setSuggestionRange'](_0x191bb3,this['_model']['createRange'](_0xa64641['start'],_0x2bb7d4['end'])):this['_setSuggestionRange'](_0x191bb3,this['_model']['createRange'](_0x2bb7d4['start'],_0xa64641['end'])),_0x191bb3;}}const _0xc223a5=_0x19a734(),_0x9f04ee=_0x52b8ef['id'],_0x365d0d=_0x2f10b8?'insertion:'+_0x2f10b8:'insertion',_0x495c93=this['_setSuggestionData']({'id':_0xc223a5,'type':_0x365d0d,'createdAt':new Date(),'authorId':_0x9f04ee,'attributes':_0x362bcc});return this['_addSuggestionMarker'](_0x365d0d,_0xc223a5,_0x9f04ee,_0xa64641),_0x495c93;}['markMultiRangeInsertion'](_0x253e81,_0x52a7d8='multi',_0x19d772={}){const _0x49e572=this['editor']['plugins']['get']('Users')['me'],_0x399657=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x52a7d8,'join');for(const _0x382578 of this['getSuggestions']())if(_0x382578['author']['id']==_0x49e572['id']&&'insertion'==_0x382578['type']&&_0x382578['subType']==_0x52a7d8&&Kt(_0x382578,_0x19d772)&&(_0x399657(_0x382578['getRanges'](),_0x253e81)||_0x399657(_0x253e81,_0x382578['getRanges']()))){for(const _0x551b85 of _0x253e81)_0x382578['addRange'](_0x551b85);return _0x382578;}for(const {suggestion:_0x4223d2,meta:_0x9ab0d9}of this['_findSuggestions'](_0x253e81,'insertion')){if(!_0x9ab0d9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x9ab0d9['containsRangeInObject'])continue;if(!Kt(_0x4223d2,_0x19d772))continue;let _0x2b3bd9=!0x0;for(const _0x3ca6b0 of _0x4223d2['getRanges']())for(const _0x226306 of _0x253e81)if(!_0x3ca6b0['containsRange'](_0x226306)){_0x2b3bd9=!0x1;break;}if(_0x2b3bd9)return _0x4223d2;}const _0x1dbde0=_0x19a734(),_0x1be56f=_0x49e572['id'],_0x1103f0='insertion:'+_0x52a7d8,_0x3b1bd7=this['_setSuggestionData']({'id':_0x1dbde0,'type':_0x1103f0,'createdAt':new Date(),'authorId':_0x1be56f,'attributes':_0x19d772});for(const _0x4e0848 of _0x253e81)this['_addSuggestionMarker'](_0x1103f0,_0x1dbde0,_0x1be56f,_0x4e0848,u['getMultiRangeId']());return _0x3b1bd7;}['markInlineFormat'](_0x42140a,_0x21a71b,_0x266520=null,_0x42efa3={}){if(_0x266520=_0x266520||Ft(_0x21a71b),_0x42140a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x6500f1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x266520,'accept');return this['forceDefaultExecution'](()=>_0x6500f1([_0x42140a],_0x21a71b,_0x42efa3)),null;}const _0x1be35f=this['editor']['plugins']['get']('Users')['me'],_0x3b2706=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x36a365,meta:_0x2cc65a}of this['_findSuggestions'](_0x42140a,'insertion'))_0x2cc65a['isOwn']&&!_0x2cc65a['isInsideObject']&&_0x3b2706['push'](..._0x36a365['getRanges']());}const _0x413a8e=function(_0xef517f,_0x2584b4){const _0x2ca9f6=[];for(const _0x363567 of _0x2584b4){const _0x5994ec=_0xef517f['getIntersection'](_0x363567);_0x5994ec&&_0x2ca9f6['push'](_0x5994ec);}return _0x2ca9f6;}(_0x42140a,_0x3b2706),_0x55d929=function(_0x15d611,_0x21aefe){const _0xfb9377=[_0x15d611];for(const _0x28f7f4 of _0x21aefe){let _0x33ecf4=0x0;for(;_0x33ecf4<_0xfb9377['length'];){const _0x233476=_0xfb9377[_0x33ecf4]['getDifference'](_0x28f7f4);_0xfb9377['splice'](_0x33ecf4,0x1,..._0x233476),_0x33ecf4+=_0x233476['length'];}}return _0xfb9377;}(_0x42140a,_0x3b2706);_0x413a8e['length']&&this['_model']['change'](()=>{for(const _0x132afc of _0x413a8e){const _0x115841=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x266520,'accept');this['forceDefaultExecution'](()=>_0x115841([_0x132afc],_0x21a71b,_0x42efa3));}});for(const _0x13ace4 of _0x55d929){let _0x3e28ee=null,_0x11bfda=_0x13ace4['start'],_0x277570=_0x13ace4['end'];for(const {suggestion:_0xf37ff8,meta:_0x34e32b}of this['_findSuggestions'](_0x13ace4,'formatInline')){if(!_0x34e32b['isOwn'])continue;if(_0xf37ff8['subType']!=_0x266520)continue;if(!Kt(_0xf37ff8,_0x42efa3))continue;const _0xa360ea=_0xf37ff8['getFirstRange']();if(_0xa360ea['containsRange'](_0x13ace4,!0x0))return null;_0x11bfda=_0x11bfda['isBefore'](_0xa360ea['start'])?_0x11bfda:_0xa360ea['start'],_0x277570=_0x277570['isAfter'](_0xa360ea['end'])?_0x277570:_0xa360ea['end'],_0x3e28ee?_0xa360ea['start']['isBefore'](_0x3e28ee['getFirstRange']()['start'])?(_0x3e28ee['removeMarkers'](),_0x3e28ee=_0xf37ff8):_0xf37ff8['removeMarkers']():_0x3e28ee=_0xf37ff8;}const _0x4e4639=this['_model']['createRange'](_0x11bfda,_0x277570);if(_0x3e28ee)this['_setSuggestionRange'](_0x3e28ee,_0x4e4639);else{const _0x16e62b=_0x19a734(),_0xff8fdd=_0x1be35f['id'];this['_setSuggestionData']({'id':_0x16e62b,'type':'formatInline:'+_0x266520,'data':_0x21a71b,'createdAt':new Date(),'authorId':_0xff8fdd,'attributes':_0x42efa3}),this['_addSuggestionMarker']('formatInline:'+_0x266520,_0x16e62b,_0xff8fdd,_0x4e4639);}}return null;}['markBlockFormat'](_0xfb609a,_0x278b32,_0x466943=[],_0x359623=null,_0x13c9d9={}){_0x278b32['formatGroupId']||(_0x278b32['formatGroupId']=_0x278b32['commandName']),_0x278b32['multipleBlocks']=_0xfb609a['is']('range'),_0x359623=_0x359623||Ft(_0x278b32);const _0x423847=_0x466943['map'](_0x5a1edb=>Ht(_0x5a1edb,this['_model'])),_0x2366c6=_0xfb609a['is']('range')?_0xfb609a:Ht(_0xfb609a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x421a27=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x359623,'accept');return this['forceDefaultExecution'](()=>_0x421a27([_0x2366c6],_0x278b32,_0x13c9d9)),null;}_0x423847['push'](_0x2366c6);let _0x4d2c7d=!0x0;for(const _0x4d0cdc of _0x423847)if(!this['_rangeIsInLocalUserInsertion'](_0x4d0cdc)){_0x4d2c7d=!0x1;break;}if(_0x4d2c7d&&'always'!==this['_trackFormatChanges']){const _0xcdd6fd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x359623,'accept');return this['forceDefaultExecution'](()=>_0xcdd6fd([_0x2366c6],_0x278b32,_0x13c9d9)),null;}let _0xfddbcd=null,_0xac28ea=_0x2366c6['start'],_0x19c609=_0x2366c6['end'];for(const {suggestion:_0x2c8268,meta:_0x306c0b}of this['_findSuggestions'](_0x2366c6,'formatBlock')){if(!_0x306c0b['isOwn'])continue;if(_0x306c0b['isNextTo']||_0x306c0b['containsRangeInObject']||_0x306c0b['isInsideObject'])continue;if(_0x2c8268['data']['formatGroupId']!=_0x278b32['formatGroupId'])continue;if(!Kt(_0x2c8268,_0x13c9d9))continue;const _0x51b14d=_0x2c8268['getFirstRange']();if(_0x2c8268['subType']==_0x359623){if(_0x51b14d['containsRange'](_0x2366c6,!0x0))return null;_0xac28ea=_0xac28ea['isBefore'](_0x51b14d['start'])?_0xac28ea:_0x51b14d['start'],_0x19c609=_0x19c609['isAfter'](_0x51b14d['end'])?_0x19c609:_0x51b14d['end'],_0xfddbcd?_0x51b14d['start']['isBefore'](_0xfddbcd['getFirstRange']()['start'])?(_0xfddbcd['removeMarkers'](),_0xfddbcd=_0x2c8268):_0x2c8268['removeMarkers']():_0xfddbcd=_0x2c8268;}else{const _0x58dc85=_0x2366c6['getIntersection'](_0x51b14d);this['_cutOutSuggestionMarker'](_0x2c8268,_0x58dc85);}}const _0x1c5d12=this['editor']['plugins']['get']('Users')['me'],_0x1647b5=_0x19a734(),_0x33507e=_0x1c5d12['id'];if(_0xfddbcd)return this['_setSuggestionRange'](_0xfddbcd,this['_model']['createRange'](_0xac28ea,_0x19c609)),_0xfddbcd;{const _0x2020db=this['_setSuggestionData']({'id':_0x1647b5,'type':'formatBlock:'+_0x359623,'data':_0x278b32,'createdAt':new Date(),'authorId':_0x33507e,'attributes':_0x13c9d9});return this['_addSuggestionMarker']('formatBlock:'+_0x359623,_0x1647b5,_0x33507e,this['_model']['createRange'](_0xac28ea,_0x19c609)),_0x2020db;}}['markMultiRangeBlockFormat'](_0x496510,_0xcefd58,_0x14aaf4=[],_0x2f6138=null,_0x4fb6f7={}){_0xcefd58['formatGroupId']||(_0xcefd58['formatGroupId']=_0xcefd58['commandName']);const _0x599bf6=_0x496510[0x0];_0xcefd58['multipleBlocks']=_0x599bf6['is']('range'),_0x2f6138=_0x2f6138||Ft(_0xcefd58);const _0x468b1c=_0x14aaf4['map'](_0x8dd487=>Ht(_0x8dd487,this['_model'])),_0x3364d9=_0x599bf6['is']('range')?_0x496510:_0x496510['map'](_0x263c69=>Ht(_0x263c69,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1b38e2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f6138,'accept');return this['forceDefaultExecution'](()=>_0x1b38e2(_0x3364d9,_0xcefd58,_0x4fb6f7)),null;}_0x468b1c['push'](..._0x3364d9);let _0x30891a=!0x0;for(const _0x16e8dd of _0x468b1c)if(!this['_rangeIsInLocalUserInsertion'](_0x16e8dd)){_0x30891a=!0x1;break;}if(_0x30891a&&'always'!==this['_trackFormatChanges']){const _0x4d6b6d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f6138,'accept');return this['forceDefaultExecution'](()=>_0x4d6b6d(_0x3364d9,_0xcefd58,_0x4fb6f7)),null;}const _0x51445b=this['editor']['plugins']['get']('Users')['me'];for(const _0x49fe4e of this['getSuggestions']()){if(_0x49fe4e['author']['id']!=_0x51445b['id'])continue;if('formatBlock'!=_0x49fe4e['type']||_0x49fe4e['data']['formatGroupId']!=_0xcefd58['formatGroupId'])continue;if(!Kt(_0x49fe4e,_0x4fb6f7))continue;const _0x161771=_0x49fe4e['subType']==_0x2f6138;for(let _0x2aa402=0x0;_0x2aa402<_0x3364d9['length'];_0x2aa402++){const _0x16db13=_0x3364d9[_0x2aa402];for(const _0x4595ab of _0x49fe4e['getMarkers']()){const _0x485644=_0x4595ab['getRange']();if(_0x16db13['isEqual'](_0x485644)){_0x161771?(_0x3364d9['splice'](_0x2aa402,0x1),_0x2aa402--):_0x49fe4e['removeMarker'](_0x4595ab['name']);break;}}}}if(0x0==_0x3364d9['length'])return null;const _0x4764f8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f6138,'join');for(const _0x394002 of this['getSuggestions']())if(_0x394002['author']['id']==_0x51445b['id']&&'formatBlock'==_0x394002['type']&&_0x394002['data']['formatGroupId']==_0xcefd58['formatGroupId']&&_0x394002['subType']==_0x2f6138&&Kt(_0x394002,_0x4fb6f7)&&(_0x4764f8(_0x394002['getRanges'](),_0x3364d9)||_0x4764f8(_0x3364d9,_0x394002['getRanges']()))){for(const _0x476fe6 of _0x3364d9)_0x394002['addRange'](_0x476fe6);return _0x394002;}const _0x593004=_0x19a734(),_0x17fd19=_0x51445b['id'],_0x5a63ed='formatBlock:'+_0x2f6138,_0x1e2605=this['_setSuggestionData']({'id':_0x593004,'type':_0x5a63ed,'data':_0xcefd58,'createdAt':new Date(),'authorId':_0x17fd19,'attributes':_0x4fb6f7});for(const _0x3ce65e of _0x3364d9)this['_addSuggestionMarker'](_0x5a63ed,_0x593004,_0x17fd19,_0x3ce65e,u['getMultiRangeId']());return _0x1e2605;}['markDeletion'](_0x3221d0,_0x358c57=null,_0x581480={}){if(_0x3221d0['isCollapsed'])return null;const _0x1ce466=this['editor']['plugins']['get']('Users')['me'],_0x17ac39=new _0x1d302a(_0x3221d0['start'],_0x3221d0['end']);for(const {suggestion:_0x2ac5af,meta:_0x3bbc25}of this['_findSuggestions'](_0x17ac39,'insertion'))if(_0x3bbc25['isOwn']&&!_0x3bbc25['isNextTo']){if(_0x2ac5af['isMultiRange']){const _0x44dce6=_0x2ac5af['getRanges']()['filter'](_0x474005=>'$graveyard'!=_0x474005['root']['rootName']);_0x44dce6['every'](_0x4e510a=>_0x17ac39['containsRange'](_0x4e510a,!0x0))&&_0x2ac5af['discard']();if(_0x44dce6['some'](_0x9ed231=>_0x9ed231['containsRange'](_0x17ac39,!0x0))){const _0x56b639=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x358c57,'accept');return this['forceDefaultExecution'](()=>_0x56b639([_0x17ac39],null,_0x581480)),null;}}else{const _0x2ca3dd=_0x17ac39['getIntersection'](_0x2ac5af['getFirstRange']());null!==_0x2ca3dd&&_0x2ac5af['_onDiscard']([_0x2ca3dd],null,_0x581480);}}if(_0x17ac39['detach'](),_0x17ac39['isCollapsed']||'$graveyard'==_0x17ac39['root']['rootName'])return null;let _0x125442=null,_0x371be2=_0x17ac39['start'],_0x3d2698=_0x17ac39['end'];const _0x598d2c=this['_findSuggestions'](_0x17ac39,'deletion');for(const {suggestion:_0x4febb8,meta:_0xec054f}of _0x598d2c){const _0x55f993=this['_model']['createRange'](_0x371be2,_0x3d2698);if(_0xec054f['isOwn']&&(this['_mergeNestedSuggestions']||!_0xec054f['containsRangeInObject']&&!_0xec054f['isInsideObject'])){if(_0x4febb8['isMultiRange']){if(!Kt(_0x4febb8,_0x581480))continue;let _0x251c8f=!0x0;for(const _0x421c7c of _0x4febb8['getRanges']()){if(_0x421c7c['containsRange'](_0x55f993,!0x0))return _0x4febb8;_0x55f993['containsRange'](_0x421c7c)||(_0x251c8f=!0x1);}_0x251c8f&&_0x4febb8['discard']();}else{const _0x2948e8=_0x4febb8['getFirstRange']();if(_0x2948e8['containsRange'](_0x55f993,!0x0))return _0x4febb8;if(!Kt(_0x4febb8,_0x581480)){_0x55f993['containsRange'](_0x2948e8)?_0x4febb8['removeMarkers']():_0x2948e8['containsPosition'](_0x371be2)?_0x371be2=_0x2948e8['end']:_0x2948e8['containsPosition'](_0x3d2698)&&(_0x3d2698=_0x2948e8['start']);continue;}_0x371be2=_0x371be2['isBefore'](_0x2948e8['start'])?_0x371be2:_0x2948e8['start'],_0x3d2698=_0x3d2698['isAfter'](_0x2948e8['end'])?_0x3d2698:_0x2948e8['end'],_0x581480=Object['assign']({},_0x4febb8['attributes']),_0x125442?_0x2948e8['start']['isBefore'](_0x125442['getFirstRange']()['start'])?(_0x125442['removeMarkers'](),_0x125442=_0x4febb8):_0x4febb8['removeMarkers']():_0x125442=_0x4febb8;}}}if(_0x125442)return this['_setSuggestionRange'](_0x125442,this['_model']['createRange'](_0x371be2,_0x3d2698)),_0x125442;{const _0x2aaf3b=_0x19a734(),_0x2681b6=this['_model']['createRange'](_0x371be2,_0x3d2698),_0x4ffa0f=_0x1ce466['id'],_0x3f0439=_0x358c57?'deletion:'+_0x358c57:'deletion',_0x4fb8f9=this['_setSuggestionData']({'id':_0x2aaf3b,'type':_0x3f0439,'createdAt':new Date(),'authorId':_0x4ffa0f,'attributes':_0x581480});return this['_addSuggestionMarker'](_0x3f0439,_0x2aaf3b,_0x4ffa0f,_0x2681b6),_0x4fb8f9;}}['markMultiRangeDeletion'](_0x23a5fc,_0x1fdafd='multi',_0x850f27={}){const _0x2bd59e=this['editor']['plugins']['get']('Users')['me'],_0x20e41e=_0x23a5fc['map'](_0x37323e=>new _0x1d302a(_0x37323e['start'],_0x37323e['end'])),_0x18a3b7=new Set();for(const {suggestion:_0x2d6dd2,meta:_0x27ac3f}of this['_findSuggestions'](_0x20e41e,'insertion'))_0x27ac3f['isOwn']&&!_0x27ac3f['isNextTo']&&_0x18a3b7['add'](_0x2d6dd2);for(const _0x5741ed of _0x18a3b7)if(_0x5741ed['isMultiRange']){const _0x360d28=_0x5741ed['getRanges']();(!_0x5741ed['attributes']||!_0x5741ed['attributes']['skipNestingCheck'])&&(_0x360d28['every'](_0x16663c=>_0x20e41e['some'](_0x345548=>_0x345548['containsRange'](_0x16663c,!0x0)))&&_0x5741ed['discard']());if(_0x20e41e['every'](_0x3c5f32=>_0x360d28['some'](_0x571de3=>_0x571de3['containsRange'](_0x3c5f32,!0x0)))){const _0x585c35=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fdafd,'accept');return this['forceDefaultExecution'](()=>_0x585c35(_0x23a5fc,null,_0x850f27)),null;}}else{const _0x431925=_0x5741ed['getFirstRange']();_0x20e41e['some'](_0x2f8247=>_0x2f8247['containsRange'](_0x431925,!0x0))&&_0x5741ed['discard']();if(_0x20e41e['every'](_0x5035c7=>_0x431925['containsRange'](_0x5035c7,!0x0))){const _0x255f3f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fdafd,'accept');return this['forceDefaultExecution'](()=>_0x255f3f(_0x20e41e,null,_0x850f27)),null;}}const _0x276db2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fdafd,'join');let _0x404f58=null;for(const _0xd6895c of this['getSuggestions']())if(_0xd6895c['author']['id']==_0x2bd59e['id']&&_0xd6895c['isInContent']&&'deletion'==_0xd6895c['type']&&_0xd6895c['subType']==_0x1fdafd&&Kt(_0xd6895c,_0x850f27)&&(_0x276db2(_0xd6895c['getRanges'](),_0x20e41e)||_0x276db2(_0x20e41e,_0xd6895c['getRanges']()))){if(_0x404f58){if(_0xd6895c['commentThread']&&_0xd6895c['commentThread']['length'])continue;for(const _0x260bf4 of _0xd6895c['getRanges']())_0x404f58['isIntersectingWithRange'](_0x260bf4)||_0x404f58['addRange'](_0x260bf4);_0xd6895c['removeMarkers']();}else{_0x404f58=_0xd6895c;for(const _0x4dbf02 of _0x20e41e)_0xd6895c['isIntersectingWithRange'](_0x4dbf02)||_0xd6895c['addRange'](_0x4dbf02);}}if(_0x404f58)return _0x404f58;_0x18a3b7['clear']();for(const {suggestion:_0x5d0fac,meta:_0x29dd7f}of this['_findSuggestions'](_0x20e41e,'deletion'))_0x29dd7f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x29dd7f['containsRangeInObject']&&!_0x29dd7f['isInsideObject'])&&Kt(_0x5d0fac,_0x850f27)&&_0x18a3b7['add'](_0x5d0fac);for(const _0xa9d0b0 of _0x18a3b7){const _0x151939=_0xa9d0b0['getRanges']();if(!_0x850f27||!_0x850f27['skipNestingCheck']){if(_0x20e41e['every'](_0x3f73a8=>_0x151939['some'](_0x24e2b9=>_0x24e2b9['containsRange'](_0x3f73a8,!0x0))))return _0xa9d0b0;}(!_0xa9d0b0['attributes']||!_0xa9d0b0['attributes']['skipNestingCheck'])&&(_0x151939['every'](_0x3e6153=>_0x20e41e['some'](_0x3c8d0a=>_0x3c8d0a['containsRange'](_0x3e6153,!0x0)))&&_0xa9d0b0['discard']());}const _0x46627f=_0x19a734(),_0x5c7fa3=_0x2bd59e['id'],_0x51a886='deletion:'+_0x1fdafd,_0x1d9e93=this['_setSuggestionData']({'id':_0x46627f,'type':_0x51a886,'createdAt':new Date(),'authorId':_0x5c7fa3,'attributes':_0x850f27});for(const _0x793db2 of _0x20e41e)_0x793db2['detach'](),_0x793db2['isCollapsed']||'$graveyard'==_0x793db2['root']['rootName']||this['_addSuggestionMarker'](_0x51a886,_0x46627f,_0x5c7fa3,_0x793db2,u['getMultiRangeId']());return _0x1d9e93;}['markAttributeChange'](_0xfaa455,_0x396d8c,_0x24d78f,_0x5e74a2,_0x299ef7){if(_0xfaa455['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x43c374=this['editor']['plugins']['get']('Users')['me']['id'],_0x3575c7=Array['from'](this['_suggestions']['values']())['filter'](_0x1168a0=>'attribute'==_0x1168a0['type']&&_0x1168a0['data']['key']==_0x396d8c&&_0x1168a0['isIntersectingWithRange'](_0xfaa455));if('default'===this['_trackFormatChanges']){const _0x399de2=this['_findSuggestions'](_0xfaa455,'insertion')['filter'](({meta:_0x25e63f})=>_0x25e63f['isOwn']&&!_0x25e63f['isInsideObject']&&!_0x25e63f['isNextTo'])['map'](({suggestion:_0x26e94e})=>_0x26e94e);_0x3575c7['unshift'](..._0x399de2);}const _0x5eadd6=new Map([[_0xfaa455,_0x24d78f]]);for(const _0xcfe64f of _0x3575c7){const _0x442729='attribute'==_0xcfe64f['type']?_0xcfe64f['data']['oldValue']:void 0x0,_0xa16006=_0xcfe64f['getFirstRange'](),_0x16eb58=Array['from'](_0x5eadd6['keys']())['find'](_0x3ee273=>_0x3ee273['isIntersecting'](_0xa16006));if(!_0x16eb58)continue;const _0x48deb8=_0x16eb58['getDifference'](_0xa16006);this['_isBlockAttribute'](_0x396d8c)&&'insertion'==_0xcfe64f['type']&&0x0!=_0x48deb8['length']||(_0x5eadd6['delete'](_0x16eb58),_0x48deb8['forEach'](_0x5af753=>{_0x5eadd6['set'](_0x5af753,_0x24d78f);}),'insertion'!=_0xcfe64f['type']&&_0x442729!=_0x5e74a2&&_0x5eadd6['set'](_0x16eb58['getIntersection'](_0xa16006),_0x442729));}const _0x187d90=[];for(const [_0x26efa2,_0x4db057]of _0x5eadd6){const _0x5af5db=_0x19a734(),_0x3e564c={'key':_0x396d8c,'oldValue':_0x4db057,'newValue':_0x5e74a2};_0x396d8c['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':_0x396d8c});const _0x466f31=('attribute:'+(_0x396d8c+'|'+Ft({'newValue':_0x5e74a2})))['substring'](0x0,0x3c),_0x5443a7=this['_setSuggestionData']({'id':_0x5af5db,'type':_0x466f31,'data':_0x3e564c,'createdAt':new Date(),'authorId':_0x43c374,'attributes':_0x299ef7});_0x187d90['push'](_0x5443a7),this['_addSuggestionMarker'](_0x466f31,_0x5af5db,_0x43c374,_0x26efa2);}return _0x187d90;}['enableDefaultAttributesIntegration'](_0x268abc){this['enableCommand'](_0x268abc,(_0x2a2907,..._0x206270)=>{this['_recordAttributeChanges'](()=>{_0x2a2907(..._0x206270);});});}['registerBlockAttribute'](_0xd9752e){this['_blockAttributeKeys']['add'](_0xd9752e);}['registerInlineAttribute'](_0x182e19){this['_inlineAttributeKeys']['add'](_0x182e19);}['_getAttributeKey'](_0x4064d0){return'attribute'==_0x4064d0['type']?_0x4064d0['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4f0f00,_0xea4230){const _0x195665=_0x4f0f00['getFirstMarker']();this['_model']['change'](_0x549638=>{_0x549638['updateMarker'](_0x195665,{'range':_0xea4230});});}['_addThreadToSuggestion'](_0x3b63bb){const _0x1ad13c=_0x3b63bb['id'],_0x8391f3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1ad13c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x8391f3,'threadId':_0x1ad13c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4b2eae=this['_commentsRepository']['getCommentThread'](_0x1ad13c);_0x4b2eae['unbind']('isRemovable'),_0x4b2eae['isRemovable']=!0x1,_0x3b63bb['commentThread']=_0x4b2eae;}['_checkSuggestionCorrectness'](_0xc30000,_0x2a1509,_0x53529f,_0xd64363){if(_0xc30000['type']!=_0x2a1509||_0xc30000['subType']!=_0x53529f||_0xc30000['creator']['id']!=_0xd64363)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xaaad3e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3a71e5,_0x33e89e){const _0x5a5669=_0x3a71e5['getFirstRange']();if(_0x33e89e['isEqual'](_0x5a5669))_0x3a71e5['removeMarkers']();else{if(_0x5a5669['containsRange'](_0x33e89e)){const _0x3fa8fc=this['_model']['createPositionAt'](_0x33e89e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3a71e5,this['_model']['createRange'](_0x5a5669['start'],_0x3fa8fc));const _0x2268f5=_0x19a734(),_0x262efe=_0x3a71e5['creator']['id'],_0xc3d3e6=_0x3a71e5['type']+':'+_0x3a71e5['subType'];this['_setSuggestionData']({'id':_0x2268f5,'type':_0xc3d3e6,'createdAt':new Date(),'authorId':_0x262efe,'data':_0x3a71e5['data'],'attributes':_0x3a71e5['attributes']});const _0x4cf615=this['_model']['createPositionAt'](_0x33e89e['end']['parent'],'after'),_0x9ce6fb=this['_model']['createRange'](_0x4cf615,_0x5a5669['end']);this['_addSuggestionMarker'](_0xc3d3e6,_0x2268f5,_0x262efe,_0x9ce6fb);}else{if(_0x5a5669['containsPosition'](_0x33e89e['start'])){const _0x22ade6=this['_model']['createPositionAt'](_0x33e89e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3a71e5,this['_model']['createRange'](_0x5a5669['start'],_0x22ade6));}else{const _0x1a61dd=this['_model']['createPositionAt'](_0x33e89e['end']['parent'],'after');this['_setSuggestionRange'](_0x3a71e5,this['_model']['createRange'](_0x1a61dd,_0x5a5669['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xbbc09f){for(const {suggestion:_0x86e97d,meta:_0x542b29}of this['_findSuggestions'](_0xbbc09f,'insertion')){if(!_0x542b29['isOwn'])continue;const _0x58acfb=_0x86e97d['getRanges']();for(const _0x50ca59 of _0x58acfb)if(!_0xbbc09f['getDifference'](_0x50ca59)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2a281f){const _0x455b26=this['editor']['plugins']['get']('Users')['getUser'](_0x2a281f);if(!_0x455b26)throw new _0xaaad3e('track-changes-user-not-found',this);return _0x455b26;}['_getExternalAuthor'](_0x4c2592){const _0x5b9592=this['editor']['plugins']['get']('Users'),_0x3848b1=_0x2b4ef5('external:'+_0x4c2592),_0x2deae9=_0x5b9592['getUser'](_0x3848b1);return _0x2deae9||_0x5b9592['addUser']({'id':_0x3848b1,'name':_0x4c2592});}['_createSuggestion'](_0x4fca36,_0x5c7891,_0x307144,_0x10d0d9,_0x275a90){const _0x36b482=this['_getAuthorFromId'](_0x10d0d9),_0x882f8b=this['_suggestionFactory']['buildSuggestion'](_0x4fca36,_0x5c7891,_0x307144,_0x36b482,_0x275a90,_0x1d15c6=>{this['_updateSuggestionData'](_0x307144,{'attributes':_0x1d15c6});const _0x36bff9=this['getSuggestion'](_0x307144);this['_joinWithAdjacentSuggestions'](new Set([_0x36bff9])),this['_refreshSuggestionsChain'](new Set([_0x36bff9]));});return this['listenTo'](_0x882f8b,'accept',()=>{this['_updateSuggestionData'](_0x307144,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x882f8b,'discard',()=>{this['_updateSuggestionData'](_0x307144,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x307144,_0x882f8b),this['_suggestionState']['set'](_0x882f8b,'notReady'),_0x882f8b;}['_splitMarkerName'](_0x3aff63){const _0x3cb4b3=_0x3aff63['split'](':');return{'group':_0x3cb4b3[0x0],'type':_0x3cb4b3[0x1],'subType':_0x3cb4b3['length']>=0x5?_0x3cb4b3[0x2]:null,'id':_0x3cb4b3['length']<0x5?_0x3cb4b3[0x2]:_0x3cb4b3[0x3],'authorId':_0x3cb4b3['length']<0x5?_0x3cb4b3[0x3]:_0x3cb4b3[0x4],'markerCount':0x6==_0x3cb4b3['length']?_0x3cb4b3[0x5]:null};}['_breakSuggestionMarker'](_0x429060,_0x362d38,_0x1f3ba7){const _0x3a7542=_0x429060['getFirstRange'](),_0x379cca=_0x3a7542['start'],_0x4df37e=_0x3a7542['end'];this['_setSuggestionRange'](_0x429060,this['_model']['createRange'](_0x379cca,_0x362d38));const _0x3adc80=_0x19a734(),_0x56aee4=_0x429060['creator']['id'],_0x2bcca2=_0x429060['type']+(_0x429060['subType']?':'+_0x429060['subType']:'');this['_setSuggestionData']({'id':_0x3adc80,'type':_0x2bcca2,'createdAt':new Date(),'authorId':_0x56aee4,'originalSuggestionId':_0x429060['id'],'attributes':_0x429060['attributes'],'data':_0x429060['data']});const _0x53b6c6=this['_getAttributeKey'](_0x429060);('formatBlock'==_0x429060['type']||_0x53b6c6&&this['_isBlockAttribute'](_0x53b6c6))&&(_0x1f3ba7=this['_model']['createPositionBefore'](_0x1f3ba7['parent'])),this['_addSuggestionMarker'](_0x2bcca2,_0x3adc80,_0x56aee4,this['_model']['createRange'](_0x1f3ba7,_0x4df37e));}['_findSuggestions'](_0x49e4ab,_0x1db397=null){const _0x4d7ee4=[],_0x460f8f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x49e4ab)||(_0x49e4ab=[_0x49e4ab]);for(const _0x4fb536 of this['getSuggestions']()){if(!_0x4fb536['isInContent'])continue;if(_0x1db397&&_0x4fb536['type']!=_0x1db397)continue;let _0x31c825=!0x1;for(const _0x4537a5 of _0x4fb536['getRanges']()){for(const _0x311dd1 of _0x49e4ab){const _0x9449f1=_0x311dd1['start']['isEqual'](_0x4537a5['end'])||_0x311dd1['end']['isEqual'](_0x4537a5['start']);if(_0x9449f1||_0x311dd1['getIntersection'](_0x4537a5)){const _0x586a07=_0x311dd1['containsRange'](_0x4537a5)&&Vt(this['_model']['schema'],_0x4537a5['start'],_0x311dd1),_0x5749b4=_0x4537a5['containsRange'](_0x311dd1)&&Vt(this['_model']['schema'],_0x311dd1['start'],_0x4537a5);_0x4d7ee4['push']({'suggestion':_0x4fb536,'meta':{'isOwn':_0x460f8f==_0x4fb536['author'],'isNextTo':_0x9449f1,'isInsideObject':_0x586a07,'containsRangeInObject':_0x5749b4}}),_0x31c825=!0x0;break;}}if(_0x31c825)break;}}return _0x4d7ee4;}['_addSuggestionMarker'](_0x395802,_0x39cec3,_0x7c5e7a,_0xddd25c,_0xa99b4e){this['_model']['change'](_0x86a333=>{let _0x5b025e='suggestion:'+_0x395802+':'+_0x39cec3+':'+_0x7c5e7a;_0xa99b4e&&(_0x5b025e=_0x5b025e+':'+_0xa99b4e),_0x86a333['addMarker'](_0x5b025e,{'range':_0xddd25c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x225c62){const _0x28e5f7=_0x225c62['previous'],_0x590592=_0x225c62['next'];_0x225c62['previous']=null,_0x225c62['next']=null,null!=_0x28e5f7&&_0x28e5f7['next']==_0x225c62&&(_0x28e5f7['next']=_0x590592),null!=_0x590592&&_0x590592['previous']==_0x225c62&&(_0x590592['previous']=_0x28e5f7),'ready'==this['_suggestionState']['get'](_0x225c62)&&(this['_suggestionState']['set'](_0x225c62,'removed'),this['fire']('suggestionUnloaded',_0x225c62,_0x28e5f7,_0x590592));}['_setSuggestionData'](_0x27a46a){const _0x46627b=_0x27a46a['id'],_0x590eaf=this['addSuggestionData'](_0x27a46a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x421f37=this['editor']['plugins']['get']('PendingActions'),_0xeedd47=_0x590eaf['hasComments'],_0x338152=_0x590eaf['subType']?_0x590eaf['type']+':'+_0x590eaf['subType']:_0x590eaf['type'],_0x2fd5a6=this['editor']['locale'],_0x3807b3=_0x421f37['add'](o(_0x2fd5a6,'PENDING_ACTION_SUGGESTION')),_0x193e50={'id':_0x46627b,'type':_0x338152,'hasComments':_0xeedd47,'data':_0x27a46a['data']||null,'originalSuggestionId':_0x27a46a['originalSuggestionId']||null,'attributes':_0x590eaf['attributes']};this['_adapter']['addSuggestion'](_0x193e50)['then'](_0x32fd9a=>{_0x590eaf['_saved']=!0x0,_0x421f37['remove'](_0x3807b3),_0x32fd9a&&_0x32fd9a['createdAt']&&(this['_suggestions']['get'](_0x46627b)['createdAt']=_0x32fd9a['createdAt']);})['catch'](_0x53e974=>{throw _0x544cea('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x590eaf['discard']();}),_0x590eaf['stopListening'](),this['_suggestions']['delete'](_0x590eaf['id']),this['_suggestionState']['delete'](_0x590eaf),_0x53e974;});}return _0x590eaf;}['_isBlockAttribute'](_0x15179b){return this['_blockAttributeKeys']['has'](_0x15179b);}['_updateSuggestionData'](_0x149e9b,_0x5c09c4){const _0x1b01a6=this['editor']['plugins']['get']('PendingActions'),_0x31876c=this['getSuggestion'](_0x149e9b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x31876c['_saved']){const _0xe1715e=_0x1b01a6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x149e9b,_0x5c09c4)['then'](()=>{_0x1b01a6['remove'](_0xe1715e);});}else _0x31876c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x149e9b,_0x5c09c4);});}}['_getSuggestionData'](_0x25c7b7){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xaaad3e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x25c7b7);}['_handleNewSuggestionMarker'](_0x23bb47){const {id:_0x1958ba,type:_0x4f0406,subType:_0x1cb742,authorId:_0x1ba4eb}=this['_splitMarkerName'](_0x23bb47),_0x50df13=this['_suggestions']['get'](_0x1958ba)||this['_createSuggestion'](_0x4f0406,_0x1cb742,_0x1958ba,_0x1ba4eb,{});switch(this['_checkSuggestionCorrectness'](_0x50df13,_0x4f0406,_0x1cb742,_0x1ba4eb),this['_suggestionState']['get'](_0x50df13)){case'notReady':this['_getSuggestionData'](_0x1958ba)['then'](_0x8a7cf7=>{let _0x1a3612=Promise['resolve']();_0x8a7cf7['hasComments']&&(_0x1a3612=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1958ba})),_0x1a3612['then'](()=>{this['addSuggestionData'](_0x8a7cf7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x50df13,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1958ba,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x50df13,'ready'),this['fire']('suggestionLoaded',_0x50df13);break;case'ready':this['fire']('suggestionChanged',_0x50df13);}return _0x50df13['addMarkerName'](_0x23bb47),_0x50df13;}['_refreshSuggestionsChain'](_0x3f1267){const _0x111f95=Array['from'](_0x3f1267),_0x5f44c5=_0x111f95['filter'](_0x2b6544=>'attribute'==_0x2b6544['type']);this['_refreshAttributeSuggestionsChain'](_0x5f44c5);const _0x1b2ba2=_0x111f95['filter'](_0x1ec96a=>!_0x1ec96a['isMultiRange']&&'attribute'!=_0x1ec96a['type']),_0x4789e4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f894d=>!_0x1f894d['isMultiRange']&&'attribute'!=_0x1f894d['type']),_0xd1e6f4=_0x4789e4['filter'](_0x1cffcc=>!_0x3f1267['has'](_0x1cffcc)),_0x7567de=new Map(_0x4789e4['map'](_0x581bd0=>[_0x581bd0,this['_suggestionFactory']['getSuggestionCallback'](_0x581bd0['type'],_0x581bd0['subType'],'chain')])),_0x49d33a=new Map(_0x4789e4['map'](_0x11d043=>[_0x11d043,_0x11d043['getFirstRange']()])),_0x54d45d=new Set(),_0x21c151=new Set();for(let _0x5404ab=0x0;_0x5404ab<_0x1b2ba2['length'];_0x5404ab++)_0x4bbfd6(_0x1b2ba2[_0x5404ab],_0x1b2ba2,_0x5404ab+0x1);for(let _0x15cf30=0x0;_0x15cf30<_0x1b2ba2['length'];_0x15cf30++)_0x4bbfd6(_0x1b2ba2[_0x15cf30],_0xd1e6f4,0x0);const _0x5cf48d=new Set();for(let _0x52f10f=0x0;_0x52f10f<_0x1b2ba2['length'];_0x52f10f++){const _0x2e0515=_0x1b2ba2[_0x52f10f];!_0x21c151['has'](_0x2e0515)&&_0x2e0515['previous']&&(_0x5cf48d['add'](_0x2e0515['previous']),_0x2e0515['previous']['next']===_0x2e0515&&(_0x2e0515['previous']['next']=null),_0x2e0515['previous']=null),!_0x54d45d['has'](_0x2e0515)&&_0x2e0515['next']&&(_0x5cf48d['add'](_0x2e0515['next']),_0x2e0515['next']['previous']===_0x2e0515&&(_0x2e0515['next']['previous']=null),_0x2e0515['next']=null);}function _0x4bbfd6(_0x550971,_0x3ab72d,_0x39f741){for(let _0x3942b6=_0x39f741;_0x3942b6<_0x3ab72d['length'];_0x3942b6++){const _0xd3e9f9=_0x513201(_0x550971,_0x3ab72d[_0x3942b6]);_0xd3e9f9&&(_0xd3e9f9[0x0]['next']=_0xd3e9f9[0x1],_0xd3e9f9[0x1]['previous']=_0xd3e9f9[0x0],_0x54d45d['add'](_0xd3e9f9[0x0]),_0x21c151['add'](_0xd3e9f9[0x1]));}}function _0x513201(_0x4da7a2,_0x48c932){if(_0x4da7a2['author']['id']!==_0x48c932['author']['id'])return null;const _0x45221b=_0x7567de['get'](_0x4da7a2)(_0x4da7a2,_0x48c932,_0x49d33a['get'](_0x4da7a2),_0x49d33a['get'](_0x48c932));if(!_0x45221b)return null;return _0x7567de['get'](_0x48c932)(_0x4da7a2,_0x48c932,_0x49d33a['get'](_0x4da7a2),_0x49d33a['get'](_0x48c932))?_0x45221b[0x1]['commentThread']&&_0x45221b[0x1]['commentThread']['length']?null:_0x45221b:null;}_0x5cf48d['size']&&this['_refreshSuggestionsChain'](_0x5cf48d);}['_refreshAttributeSuggestionsChain'](_0x57c135){if(0x0==_0x57c135['length'])return;const _0x5b2e64=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5851a2=>'attribute'==_0x5851a2['type']&&_0x5851a2['_isDataLoaded']),_0x3ef18f=[],_0x2e520b=new Map();for(const _0x13cc11 of _0x5b2e64){const _0x234782=_0x2b4ef5(_0x13cc11['attributes']);_0x2e520b['has'](_0x234782)||(_0x2e520b['set'](_0x234782,_0x3ef18f['length']),_0x3ef18f['push']([]));const _0x241ca1=_0x2e520b['get'](_0x234782);_0x3ef18f[_0x241ca1]['push'](_0x13cc11);}!(function(){_0x3ef18f['sort']((_0x246a57,_0x26d735)=>{const _0x109058=_0x246a57[0x0]['createdAt'],_0x40e6f4=_0x26d735[0x0]['createdAt'];return _0x109058==_0x40e6f4?_0x246a57[0x0]['attributes']['groupId']<_0x26d735[0x0]['attributes']['groupId']?-0x1:0x1:_0x109058<_0x40e6f4?-0x1:0x1;});for(const _0x931e54 of _0x3ef18f)_0x931e54['sort']((_0x2c5d89,_0x3741a6)=>_0x2c5d89['id']<_0x3741a6['id']?-0x1:0x1);}());for(let _0x3cbd73=0x0;_0x3cbd73<_0x3ef18f['length'];_0x3cbd73++){if(0x0==_0x3ef18f[_0x3cbd73]['length'])continue;const _0x372203=[];for(let _0x2411a8=_0x3cbd73+0x1;_0x2411a8<_0x3ef18f['length'];_0x2411a8++)0x0!=_0x3ef18f[_0x2411a8]['length']&&_0x489022(_0x3ef18f[_0x3cbd73],_0x3ef18f[_0x2411a8])&&_0x372203['push'](_0x2411a8);for(const _0x135b94 of _0x372203)_0x3ef18f[_0x3cbd73]=_0x3ef18f[_0x3cbd73]['concat'](_0x3ef18f[_0x135b94]),_0x3ef18f[_0x135b94]=[];}for(const _0x134b7b of _0x3ef18f)for(let _0x241a0d=0x0;_0x241a0d<_0x134b7b['length'];_0x241a0d++){const _0x30f32c=_0x134b7b[_0x241a0d+0x1]||null;_0x134b7b[_0x241a0d]['next']!==_0x30f32c&&(_0x134b7b[_0x241a0d]['next']=_0x30f32c);}for(const _0x17f1b0 of _0x3ef18f)for(let _0x1acb71=0x0;_0x1acb71<_0x17f1b0['length'];_0x1acb71++){const _0x5b47ac=_0x17f1b0[_0x1acb71-0x1]||null;_0x17f1b0[_0x1acb71]['previous']!==_0x5b47ac&&(_0x17f1b0[_0x1acb71]['previous']=_0x5b47ac);}function _0x489022(_0x1313b7,_0xdd9484){if(_0x1313b7[0x0]['attributes']['groupId']!==_0xdd9484[0x0]['attributes']['groupId']&&_0x1313b7[0x0]['author']!==_0xdd9484[0x0]['author'])return!0x1;if(!function(_0x397e0d,_0x36be96){if(!_0x397e0d['hasComments']&&!_0x36be96['hasComments'])return!0x0;if(_0x397e0d['hasComments']&&_0x36be96['hasComments'])return!0x1;if(_0x397e0d['hasComments']&&_0x36be96['createdAt']<_0x397e0d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x36be96['hasComments']&&_0x397e0d['createdAt']<_0x36be96['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1313b7[0x0],_0xdd9484[0x0]))return!0x1;const _0x5409db=Et(_0x1313b7[0x0]['attributes'],'groupId'),_0x41ac63=Et(_0xdd9484[0x0]['attributes'],'groupId');if(!_0x41cd13(_0x5409db,_0x41ac63))return!0x1;return!!_0x1313b7['every'](_0x4bca39=>_0xdd9484['some'](_0x49a631=>_0x4bca39['getFirstRange']()['isEqual'](_0x49a631['getFirstRange']())))&&_0xdd9484['every'](_0x248cb6=>_0x1313b7['some'](_0x2a74b3=>_0x248cb6['getFirstRange']()['isEqual'](_0x2a74b3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x35b16d){const _0x4e9b3c=Array['from'](_0x35b16d),_0x38782e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x519cd6=_0x38782e['filter'](_0x33ad04=>!_0x35b16d['has'](_0x33ad04)),_0x30c8af=new Map(_0x4e9b3c['map'](_0x40e2d2=>[_0x40e2d2,this['_suggestionFactory']['getSuggestionCallback'](_0x40e2d2['type'],_0x40e2d2['subType'],'join')])),_0x44bfaf=new Map(_0x38782e['map'](_0x14cdf7=>[_0x14cdf7,_0x14cdf7['getRanges']()]));for(let _0x1811a4=0x0;_0x1811a4<_0x4e9b3c['length'];_0x1811a4++){if(_0x218e8b(this,_0x4e9b3c[_0x1811a4],_0x4e9b3c,_0x1811a4+0x1))return!0x0;}for(let _0x333cb1=0x0;_0x333cb1<_0x4e9b3c['length'];_0x333cb1++){if(_0x218e8b(this,_0x4e9b3c[_0x333cb1],_0x519cd6,0x0))return!0x0;}return!0x1;function _0x218e8b(_0x2fdaaa,_0x39f1dd,_0x3483cf,_0x4d46ec){for(let _0x1e73b4=_0x4d46ec;_0x1e73b4<_0x3483cf['length'];_0x1e73b4++){const _0x1721af=_0x3483cf[_0x1e73b4];if(_0x1721af['type']!==_0x39f1dd['type']||_0x1721af['author']['id']!==_0x39f1dd['author']['id']||_0x1721af['subType']!==_0x39f1dd['subType'])continue;if(!zt(_0x39f1dd,_0x1721af))continue;if('attribute'==_0x39f1dd['type']&&_0x39f1dd['data']['oldValue']!=_0x1721af['data']['oldValue'])continue;if('attribute'==_0x39f1dd['type']&&_0x2fdaaa['_isBlockAttribute'](_0x39f1dd['data']['key']))continue;if('formatBlock'==_0x39f1dd['type']){const _0x4446d8=_0x2fdaaa['editor']['model'],_0x5cf74e=_0x39f1dd['getContainedElement']();if(_0x5cf74e&&(_0x4446d8['schema']['isObject'](_0x5cf74e)||_0x4446d8['schema']['isLimit'](_0x5cf74e)))continue;}const _0x392dce=_0x30c8af['get'](_0x39f1dd),_0x197765=_0x44bfaf['get'](_0x39f1dd),_0x6df8c7=_0x44bfaf['get'](_0x1721af),_0xfb577a=_0x39f1dd['commentThread']&&_0x39f1dd['commentThread']['length'],_0x2f0844=_0x1721af['commentThread']&&_0x1721af['commentThread']['length'];if(!_0xfb577a&&_0x392dce(_0x6df8c7,_0x197765))return _0x2fdaaa['_joinSuggestions'](_0x1721af,_0x39f1dd),_0x44bfaf['delete'](_0x39f1dd),!0x0;if(!_0x2f0844&&_0x392dce(_0x197765,_0x6df8c7))return _0x2fdaaa['_joinSuggestions'](_0x39f1dd,_0x1721af),_0x44bfaf['delete'](_0x1721af),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2a5660,_0x53a734){if(_0x2a5660['isMultiRange']){for(const _0xeb71a4 of _0x53a734['getRanges']())_0x2a5660['addRange'](_0xeb71a4);}else{const _0x302d3f=_0x53a734['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2a5660,this['_model']['createRange'](_0x2a5660['getFirstRange']()['start'],_0x302d3f));}_0x53a734['removeMarkers']();}['_getMarkerAnnouncementText'](_0x551efe,_0x221d1b,_0xb391e0){const _0x51e1d7=_0x551efe['startsWith']('format')||_0x551efe['startsWith']('attribute')?'FORMATTING':_0x551efe['toUpperCase']();return o(this['editor']['locale'],_0x221d1b+'_'+_0x51e1d7+'_SUGGESTION_ANNOUNCEMENT',_0xb391e0);}['_initAriaMarkerChangeAnnouncements'](){const _0xd026dc=this['editor'];if(!_0xd026dc['ui'])return;const {ariaLiveAnnouncer:_0x5d116a}=_0xd026dc['ui'];_0x47ea58(this['_model'],({left:_0x26e950,entered:_0xa91015})=>{for(const _0x451cb2 of _0x26e950){const {group:_0x21c549,type:_0x352d80}=this['_splitMarkerName'](_0x451cb2['name']);if('suggestion'===_0x21c549){_0x5d116a['announce'](this['_getMarkerAnnouncementText'](_0x352d80,'LEAVE'));break;}}for(const _0x618913 of _0xa91015){const {group:_0x23cd32,type:_0x1329d0}=this['_splitMarkerName'](_0x618913['name']);if('suggestion'===_0x23cd32){_0x5d116a['announce'](this['_getMarkerAnnouncementText'](_0x1329d0,'ENTER',_0x4b3215(_0x21edab)));break;}}});}['_processAttributeChanges'](_0x460f54){if(this['_recordAttributeSuggestions'])return!0x1;const _0x37a6df=this['editor'],_0x10c6e4=_0x37a6df['model']['document']['differ']['getChanges']();if(0x0==_0x10c6e4['length'])return!0x1;const _0x3fa614=[],_0x14a53a=_0x10c6e4['filter'](_0x312185=>'attribute'==_0x312185['type']),_0x84e91d=_0x10c6e4['filter'](_0x59674c=>'insert'==_0x59674c['type']&&'$text'!=_0x59674c['name']),_0x5af5ed=_0x10c6e4['filter'](_0x5ac13a=>'remove'==_0x5ac13a['type']&&'$text'!=_0x5ac13a['name']);for(const _0x15df58 of _0x14a53a)_0x3fa614['push']({'key':_0x15df58['attributeKey'],'newValue':_0x15df58['attributeNewValue'],'oldValue':_0x15df58['attributeOldValue'],'range':Jt(_0x15df58['range'],_0x37a6df['model'])});for(const _0x82e4ec of _0x84e91d){const _0x31b028=_0x5af5ed['find'](_0x1111f1=>_0x1111f1['position']['isEqual'](_0x82e4ec['position']));_0x31b028&&_0x3fa614['push']({'key':m,'newValue':_0x82e4ec['name'],'oldValue':_0x31b028['name'],'range':_0x37a6df['model']['createRangeOn'](_0x82e4ec['position']['nodeAfter'])});}return 0x0!=_0x3fa614['length']&&this['_reduceExistingSuggestions'](_0x460f54,_0x3fa614);}['_processAttributeSuggestions'](_0x407bf2){let _0x40f573=!0x1;const _0x450b8c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3f7f7e=>_0x3f7f7e['data']['newRange']&&_0x3f7f7e['name']['startsWith']('suggestion:attribute:'));for(const _0x563af7 of _0x450b8c){const {subType:_0x28b347,id:_0x145f50}=this['_splitMarkerName'](_0x563af7['name']),_0x3ac88c=_0x28b347['split']('|')[0x0];for(const _0x24e9fe of this['getSuggestions']({'skipNotAttached':!0x0}))_0x24e9fe['id']!=_0x145f50&&'attribute'==_0x24e9fe['type']&&_0x24e9fe['data']&&_0x24e9fe['data']['key']==_0x3ac88c&&_0x24e9fe['getFirstRange']()['isIntersecting'](_0x563af7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x24e9fe,_0x563af7['data']['newRange'],_0x407bf2),_0x40f573=!0x0);}return _0x40f573;}['_recordAttributeChanges'](_0x25449e){this['_recordAttributeSuggestions']=!0x0,_0x25449e();}['_isRegisteredAttribute'](_0x344292){const _0x1c1854=this['_isBlockAttribute'](_0x344292),_0x565dec=this['_inlineAttributeKeys']['has'](_0x344292);return _0x1c1854||_0x565dec;}['_reduceExistingSuggestions'](_0x2c5f68,_0x388da0){if(0x0==_0x388da0['length'])return!0x1;let _0x7c18e9=!0x1;for(const _0x205408 of _0x388da0){const _0x3b370c=this['_findSuggestions'](_0x205408['range'],'attribute')['filter'](_0x3abec5=>!_0x3abec5['meta']['isNextTo'])['map'](_0x485259=>_0x485259['suggestion']),_0x33333d=_0x2b4ef5({'newValue':_0x205408['newValue']});_0x3b370c['filter'](_0x1d96f7=>{const [_0x290bbf,_0x1b028a]=_0x1d96f7['subType']['split']('|');return _0x290bbf==_0x205408['key']&&_0x1b028a!=_0x33333d;})['forEach'](_0x383f54=>{this['_reduceSuggestionAttributeRange'](_0x383f54,_0x205408['range'],_0x2c5f68),_0x7c18e9=!0x0;});}return _0x7c18e9;}['_reduceSuggestionAttributeRange'](_0x27ffdb,_0x155fc6,_0x7cd2ac){const _0x13cdb1=_0x27ffdb['getFirstRange']()['getDifference'](_0x155fc6);0x0!==_0x13cdb1['length']?0x1!==_0x13cdb1['length']?this['_breakSuggestionMarker'](_0x27ffdb,_0x155fc6['start'],_0x155fc6['end']):this['_setSuggestionRange'](_0x27ffdb,_0x13cdb1[0x0]):_0x7cd2ac['removeMarker'](_0x27ffdb['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xd5aec9){this['_editor']=_0xd5aec9,this['_model']=_0xd5aec9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x23f4b9,_0x59293c,_0x8f9268,_0x1c641a,_0x20c451,_0x3430d3){return new u(this['_model'],{'type':_0x23f4b9,'subType':_0x59293c,'id':_0x8f9268,'author':_0x1c641a,'creator':_0x1c641a,'attributes':_0x20c451,'onAttributesChange':_0x3430d3,'onAccept':(..._0x38875e)=>this['getSuggestionCallback'](_0x23f4b9,_0x59293c,'accept')(..._0x38875e),'onDiscard':(..._0x4e3675)=>this['getSuggestionCallback'](_0x23f4b9,_0x59293c,'discard')(..._0x4e3675)});}['registerCustomCallback'](_0x5ae69e,_0x3e49a1,_0x4ec347,_0x54c3af){const _0x55868a=_0x5ae69e+':'+_0x3e49a1+':'+_0x4ec347;this['_customCallbacks']['set'](_0x55868a,_0x54c3af);}['getSuggestionCallback'](_0x38c342,_0x3bbe4c,_0x25bebf){const _0x4db965=_0x38c342+':'+_0x3bbe4c+':'+_0x25bebf;return this['_customCallbacks']['get'](_0x4db965)||this['_defaultCallbacks']['get'](_0x38c342+':'+_0x25bebf);}['_registerDefaultCallbacks'](){const _0x42b6e7=()=>!0x1,_0x29a973=_0x5231f8=>{_0x5231f8['sort']((_0x31bfee,_0x1c7860)=>_0x31bfee['start']['isBefore'](_0x1c7860['start'])?0x1:-0x1),this['_model']['change'](_0x416f5d=>{for(const _0x56e1a2 of _0x5231f8){let _0x34d087;_0x34d087=_0x56e1a2['end']['isAtEnd']&&_0x56e1a2['end']['parent']==_0x56e1a2['start']['nodeAfter']?_0x416f5d['createSelection'](_0x56e1a2['start']['nodeAfter'],'on'):_0x416f5d['createSelection'](_0x56e1a2),this['_model']['deleteContent'](_0x34d087,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2d78d7=(_0x3b16a7,_0x4802f4)=>{_0x4802f4&&this['_model']['change'](_0x12f329=>{const {commandName:_0x6e55c9,commandParams:_0x2b8067=[]}=_0x4802f4,_0x1bf007=_0x3b16a7['map'](_0x16057b=>(Pt(_0x16057b)&&(_0x16057b=this['_model']['createRange'](_0x16057b['end'])),_0x16057b))['filter'](_0x2291c7=>'$graveyard'!==_0x2291c7['root']['rootName']);if(_0x1bf007['length']<0x1)return;const _0x142620=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x17158f=>_0x1d302a['fromRange'](_0x17158f));_0x12f329['setSelection'](_0x1bf007);for(const _0x370d8d of this['_editor']['commands']['commands']())_0x370d8d['refresh']();_0x2b8067['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x6e55c9,..._0x2b8067);const _0x175a5d=_0x142620['filter'](_0x29adc8=>'$graveyard'!=_0x29adc8['root']['rootName']);_0x175a5d['length']>0x0&&_0x12f329['setSelection'](_0x175a5d);for(const _0x2c4a52 of _0x142620)_0x2c4a52['detach']();});},_0x13c85e=(_0x2266da,_0x4a5276)=>0x1==_0x2266da['length']&&0x1==_0x4a5276['length']&&_0x2266da[0x0]['end']['isEqual'](_0x4a5276[0x0]['start']),_0x3ff52e=(_0x4dce05,_0x4d16ea,_0xfafbb2,_0x3eb210)=>qt(_0x4dce05,_0x4d16ea,_0xfafbb2,_0x3eb210)?[_0x4dce05,_0x4d16ea]:qt(_0x4d16ea,_0x4dce05,_0x3eb210,_0xfafbb2)?[_0x4d16ea,_0x4dce05]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x42b6e7),this['_defaultCallbacks']['set']('insertion:discard',_0x29a973),this['_defaultCallbacks']['set']('insertion:join',_0x13c85e),this['_defaultCallbacks']['set']('insertion:chain',_0x3ff52e),this['_defaultCallbacks']['set']('deletion:accept',_0x29a973),this['_defaultCallbacks']['set']('deletion:discard',_0x42b6e7),this['_defaultCallbacks']['set']('deletion:join',_0x13c85e),this['_defaultCallbacks']['set']('deletion:chain',_0x3ff52e),this['_defaultCallbacks']['set']('formatInline:accept',_0x2d78d7),this['_defaultCallbacks']['set']('formatInline:discard',_0x42b6e7),this['_defaultCallbacks']['set']('formatInline:join',_0x13c85e),this['_defaultCallbacks']['set']('formatInline:chain',_0x42b6e7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2d78d7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x42b6e7),this['_defaultCallbacks']['set']('formatBlock:join',_0x13c85e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x42b6e7),this['_defaultCallbacks']['set']('attribute:accept',_0x42b6e7),this['_defaultCallbacks']['set']('attribute:discard',(_0x50b34a,_0x42bed2)=>{if(!_0x42bed2)return;const _0x25de5d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1ef0f5=>{if(_0x42bed2['key']==m)for(const _0x442b54 of _0x50b34a){const _0x32e7ae=_0x442b54['start']['nodeAfter'],_0x3002f7=_0x42bed2['oldValue'];_0x1ef0f5['rename'](_0x32e7ae,_0x3002f7);}else{if(_0x25de5d['_isBlockAttribute'](_0x42bed2['key'])){for(const _0x46b630 of _0x50b34a)void 0x0!==_0x42bed2['oldValue']?_0x1ef0f5['setAttribute'](_0x42bed2['key'],_0x42bed2['oldValue'],_0x46b630['start']['nodeAfter']):_0x1ef0f5['removeAttribute'](_0x42bed2['key'],_0x46b630['start']['nodeAfter']);}else{for(const _0x1d688b of _0x50b34a)_0x42bed2['oldValue']?_0x1ef0f5['setAttribute'](_0x42bed2['key'],_0x42bed2['oldValue'],_0x1d688b):_0x1ef0f5['removeAttribute'](_0x42bed2['key'],_0x1d688b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x13c85e);}}function Vt(_0x4b8b38,_0xbd318e,_0x715e1){for(const _0xb5ce31 of _0xbd318e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xb5ce31['root']==_0xb5ce31)return!0x1;if(!_0x715e1['containsItem'](_0xb5ce31))return!0x1;if(_0x4b8b38['isObject'](_0xb5ce31)||_0x4b8b38['isLimit'](_0xb5ce31))return!0x0;}return!0x1;}function Pt(_0x3b297f){return _0x3b297f['end']['parent']==_0x3b297f['start']['nodeAfter']&&_0x3b297f['end']['isAtStart'];}function Gt(_0x43ed3a,_0x3b95ae,_0x5c472c,_0xf291f0){const _0x4f7bfb=_0x5284ab=>!_0x5284ab['item']['is']('$textProxy')&&!_0xf291f0['isObject'](_0x5284ab['item']),_0x26859c=_0x43ed3a['start']['getLastMatchingPosition'](_0x4f7bfb),_0x3dcd65=_0x43ed3a['end']['getLastMatchingPosition'](_0x4f7bfb,{'direction':'backward'});return(!_0x43ed3a['start']['isEqual'](_0x26859c)||!_0x43ed3a['end']['isEqual'](_0x3dcd65))&&(_0x26859c['isBefore'](_0x3dcd65)?_0x5c472c['updateMarker'](_0x3b95ae,{'range':_0x5c472c['createRange'](_0x26859c,_0x3dcd65)}):_0x5c472c['removeMarker'](_0x3b95ae),!0x0);}function Ft(_0x39b0b2){return _0x2b4ef5(_0x39b0b2);}function Lt(_0x4a9e7b){const _0x22ab81=_0x4a9e7b['start']['nodeAfter'];return _0x22ab81&&_0x22ab81['is']('element');}function Jt(_0x15f37d,_0x567b0c){return null==_0x15f37d['end']['nodeBefore']&&_0x15f37d['end']['parent']==_0x15f37d['start']['nodeAfter']?Ht(_0x15f37d['start']['nodeAfter'],_0x567b0c):_0x15f37d;}function Ht(_0x574580,_0x6c581f){const _0x4314c0=_0x6c581f['schema']['isObject'](_0x574580)||_0x6c581f['schema']['isSelectable'](_0x574580);return _0x6c581f['createRange'](_0x6c581f['createPositionAt'](_0x574580,'before'),_0x4314c0?_0x6c581f['createPositionAfter'](_0x574580):_0x6c581f['createPositionAt'](_0x574580,'end'));}function qt(_0x3f8ebd,_0x38730c,_0x568e4a,_0x4ff941){return!!zt(_0x3f8ebd,_0x38730c)&&_0x568e4a['end']['isEqual'](_0x4ff941['start']);}function zt(_0x1c1434,_0x52f275){if(!_0x1c1434['_isDataLoaded']||!_0x52f275['_isDataLoaded'])return!0x1;const _0x41d029=new Set(Object['keys'](_0x1c1434['attributes'])),_0x358772=new Set(Object['keys'](_0x52f275['attributes']));if(_0x41d029['delete']('groupId'),_0x358772['delete']('groupId'),0x0==_0x41d029['size']&&0x0==_0x358772['size'])return!0x0;if(_0x41d029['size']!=_0x358772['size'])return!0x1;const _0x94b6d9={..._0x1c1434['attributes']},_0x1be02f={..._0x52f275['attributes']};return delete _0x94b6d9['groupId'],delete _0x1be02f['groupId'],JSON['stringify'](_0x94b6d9)==JSON['stringify'](_0x1be02f);}function Kt(_0x16c05b,_0x2edb30){const _0x25cb08=Wt(_0x16c05b['attributes']),_0x556ccc=Wt(_0x2edb30);if(!_0x16c05b['_isDataLoaded'])return!0x1;for(const _0x4be9b0 of Object['keys'](_0x556ccc))if(!_0x41cd13(_0x25cb08[_0x4be9b0],_0x556ccc[_0x4be9b0]))return!0x1;return!0x0;}function Wt(_0x492d25){const _0x329c76=Object['assign']({},_0x492d25);return delete _0x329c76['skipNestingCheck'],delete _0x329c76['tablePasteChainId'],_0x329c76;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x2c62d3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4e0a84,_0x3ff970,_0x3055d9,_0xb677fa){super(),this['model']=_0x3ff970,this['view']=_0x3055d9,this['commentThreadController']=_0xb677fa,this['_editor']=_0x4e0a84,this['_acceptCommand']=_0x4e0a84['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4e0a84['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2fb837,_0x370a2e)=>_0x2fb837||_0x370a2e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x672e6e=>_0x672e6e&&this['_editor']['model']['canEditAt'](_0x3ff970['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5ce850=>_0x5ce850&&this['_editor']['model']['canEditAt'](_0x3ff970['getRanges']())),this['_pendingAction']=null,_0x3055d9['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3055d9,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3055d9,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3055d9,'change:isDirty',()=>{_0x3055d9['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 _0x58c6e1=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x58c6e1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x342ad9{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x326ba7,_0x316b9b,_0x4b26f7,_0x3b08a4){super(_0x326ba7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xc64c79(_0x326ba7,o(_0x326ba7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x316b9b['authoredAt']),this['bind']('authoredAt')['to'](_0x316b9b),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',_0x316b9b,'authoredAt',this,'descriptionParts',(_0x2fb306,_0x21d9e4,_0x8d68ee)=>{const _0x585249=_0x8d68ee['map'](_0x10ab39=>ns(_0x10ab39['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2fb306-0x1,_0x316b9b['author']['name'],_0x21d9e4?_0x3b08a4['formatDateTime'](_0x21d9e4):'',new DOMParser()['parseFromString'](_0x585249,'text/html')['body']['textContent']]);}),this['focusables']=new _0x26ce4d(),this['focusTracker']=new _0x1efc10(),this['keystrokes']=new _0x3bb5a3(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1e8e02=>_0x1e8e02['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x316b9b,this['_localUser']=_0x4b26f7,this['_config']=_0x3b08a4,_0x3b08a4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x31b9b4(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2cd13a}=this['_config'];this['commentsListView']=new _0x2cd13a(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',_0xcaa332=>_0xcaa332+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x57ba20,_0x307374)=>_0x57ba20||!!_0x307374);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x40fe64}=this['_config'],_0x39841f=new _0x40fe64(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x219319=_0x39841f['commentInputView'];return _0x39841f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x219319,'value',(_0x5bcc28,_0x458f31,_0x3d8b9e)=>!!_0x3d8b9e||_0x5bcc28&&!_0x458f31),_0x219319['on']('submit',(_0x404a30,_0x140bda)=>{this['fire']('addComment',_0x140bda),_0x219319['editor']['setData']('');}),_0x219319['on']('cancel',()=>this['focus']()),_0x219319['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x39841f;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x4ec52f,_0x246528,_0x554317,_0x1c7c40){super(_0x4ec52f,_0x246528,_0x554317,_0x1c7c40),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3a49d9=>_0x3a49d9&&_0x3a49d9[0x0]?_0x3a49d9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x20ab17,_0x4783d0)=>{let _0x3a6397='';for(const _0x5d9efa of _0x20ab17)_0x3a6397+='<p>'+ns(_0x5d9efa['content'],_0x5d9efa['color'])+'</p>';return _0x4783d0?_0x3a6397:_0x8f8cfc(_0x3a6397,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1c7c40['SuggestionView'](_0x4ec52f,_0x246528,{'formatDateTime':_0x1c7c40['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 _0x787bd8=this['bindTemplate'],_0x1fd8e4=[this['suggestionView']];return this['commentsListView']&&_0x1fd8e4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1fd8e4['push'](this['commentThreadInputView']),_0x1fd8e4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x787bd8['if']('isActive','ck-suggestion-wrapper--active'),_0x787bd8['to']('type',_0x54ea98=>'ck-suggestion-'+_0x54ea98),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':_0x787bd8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1fd8e4};}['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 _0x342ad9{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x48c9d9,_0x2173a6,_0x529c9c){super(_0x48c9d9),this['_model']=_0x2173a6,this['_config']=_0x529c9c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2173a6),this['acceptButton']=this['_createButton'](o(_0x48c9d9,'Accept\x20suggestion'),_0x5107ee['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x48c9d9,'Discard\x20suggestion'),_0x5107ee['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4ddbf8(_0x48c9d9,_0x2173a6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x26ce4d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1efc10(),this['keystrokes']=new _0x3bb5a3(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3c4930=>_0x3c4930['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5f5893=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5f5893['innerHTML']=this['description'],this['on']('change:description',(_0x497b6c,_0x2453d0,_0x10b8c0)=>{_0x5f5893['innerHTML']=_0x10b8c0;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x113e8c=this['bindTemplate'],_0x1a42bb=[{'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':_0x113e8c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x113e8c['to']('authoredAt',_0x5d5f89=>this['_config']['formatDateTime'](_0x5d5f89))}]}]},{'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']&&_0x1a42bb['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':_0x1a42bb}]};}['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'](_0x41d3a1,_0x58ed74,_0x4a5b3f,_0x55815a,_0x1adcde){const _0x2bc467=new _0x474f03(this['locale']);return _0x2bc467['set']({'label':_0x41d3a1,'icon':_0x58ed74,'tooltip':!0x0,'tooltipPosition':_0x1adcde}),_0x2bc467['extendTemplate']({'attributes':{'class':_0x4a5b3f}}),_0x2bc467['on']('execute',()=>{this['fire'](_0x55815a,this['_model']['id']);}),_0x2bc467;}['_setupKeyboardNavigation'](){const _0x5d4bd8=this['element'];this['keystrokes']['listenTo'](_0x5d4bd8);for(const _0x5165e3 of this['focusables'])this['focusTracker']['add'](_0x5165e3['element']),this['keystrokes']['listenTo'](_0x5165e3['element']);this['keystrokes']['set']('enter',(_0x572eef,_0x444cd9)=>{_0x5d4bd8===_0x572eef['target']&&(this['focusCycler']['focusFirst'](),_0x444cd9());}),this['keystrokes']['set']('esc',(_0x10df3e,_0x235f0d)=>{_0x5d4bd8!==_0x10df3e['target']&&(this['focus'](),_0x235f0d());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x4d8634{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x44fc3a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x247c43){super(_0x247c43),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x42436f=this['editor']['config'];_0x42436f['define']('trackChanges.SuggestionThreadView',pe),_0x42436f['define']('trackChanges.SuggestionView',fe),_0x42436f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x42436f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4e1fb4,_0xfdff1d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x45fe06,_0x3ace2a]of this['_handleControllerBuffer']){const _0x562314=this['_suggestionToController']['has'](_0x45fe06);_0x562314||_0x3ace2a?_0x562314&&_0x3ace2a&&this['_destroyController'](_0x45fe06):this['_initializeController'](_0x45fe06);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4e1fb4,_0xfdff1d);}['init'](){const _0x5f130c=this['editor'],_0x1a8a8f=_0x5f130c['plugins']['get']('TrackChangesEditing'),_0x4f2d04=_0x5f130c['plugins']['get']('Annotations'),_0x377507=_0x5f130c['plugins']['get']('EditorAnnotations'),_0x1c043d=_0x5f130c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x377507['addSourceCollector'](()=>{const _0x39a7ea=[];for(const [_0x3ce8f4,_0xf82119]of Array['from'](this['_suggestionToController'])){const _0x40dbaf=_0x3ce8f4['getAllAdjacentSuggestions'](),_0x4365e2=[];for(const _0x32c91e of _0x40dbaf){if(!_0x32c91e['isInContent'])continue;if(_0x32c91e['isMultiRange']){_0x4365e2['push'](..._0x32c91e['getRanges']());continue;}const _0x24e5c8=_0x32c91e['getFirstRange']();if(_0x4365e2['length']>0x0){const _0x34a5bb=_0x4365e2[0x0]['getJoined'](_0x24e5c8);if(_0x34a5bb){_0x4365e2[0x0]=_0x34a5bb;continue;}}_0x4365e2['push'](_0x24e5c8);}_0x39a7ea['push']([_0xf82119['view'],_0x4365e2]);}return _0x39a7ea;}),this['listenTo'](_0x1a8a8f,'suggestionLoaded',(_0x239f8e,_0x4b83a9)=>{this['listenTo'](_0x4b83a9,'change:previous',(_0x38b15f,_0x4a7fae,_0x159471,_0x515451)=>{_0x4b83a9['isInContent']&&(null==_0x159471?(this['_updateController'](_0x515451['head']),this['_handleSuggestionControllerDelayed'](_0x4b83a9,!0x1)):(this['_updateController'](_0x159471['head']),null==_0x515451&&this['_handleSuggestionControllerDelayed'](_0x4b83a9,!0x0)));}),null!==_0x4b83a9['previous']?this['_updateController'](_0x4b83a9['head']):this['_handleSuggestionControllerDelayed'](_0x4b83a9,!0x1);}),this['listenTo'](_0x1a8a8f,'suggestionUnloaded',(_0x42177b,_0x446a9f,_0xbc479e)=>{this['stopListening'](_0x446a9f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x446a9f),this['_suggestionToController']['has'](_0x446a9f)&&this['_destroyController'](_0x446a9f),_0xbc479e&&this['_updateController'](_0xbc479e['head']);}),this['listenTo'](_0x1a8a8f,'suggestionChanged',(_0x1592a0,_0x22467f)=>{this['_updateController'](_0x22467f);}),this['listenTo'](_0x4f2d04,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1c043d,'addComment',(_0x4e2ca,{threadId:_0x426596,isFromAdapter:_0x2084df})=>{if(_0x2084df||!_0x1a8a8f['hasSuggestion'](_0x426596))return;const _0x5d563b=_0x1a8a8f['getSuggestion'](_0x426596);this['_suggestionToController']['get'](_0x5d563b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x9db2a0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x311aa8;for(const _0x5799d9 in _0x9db2a0){const _0x5b6645=_0x5799d9,_0x35a015=_0x9db2a0[_0x5b6645];if('trackChangesLicenseKeyValid'==_0x35a015||'trackChangesLicenseKeyInvalid'==_0x35a015||'trackChangesLicenseKeyExpired'==_0x35a015||'trackChangesLicenseKeyDomainLimit'==_0x35a015||'trackChangesLicenseKeyNotAllowed'==_0x35a015||'trackChangesLicenseKeyEvaluationLimit'==_0x35a015||'trackChangesLicenseKeyTrialLimit'==_0x35a015||'trackChangesLicenseKeyUsageLimit'==_0x35a015){delete _0x9db2a0[_0x5b6645],_0x311aa8=_0x35a015,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x311aa8&&_0x9db2a0['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x311aa8&&_0x9db2a0['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x311aa8&&_0x9db2a0['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x311aa8&&_0x9db2a0['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x311aa8&&_0x9db2a0['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x311aa8&&_0x9db2a0['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x311aa8&&_0x9db2a0['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2dc1db=this['editor']['plugins']['get']('Annotations'),_0x3b9fe8=this['editor']['plugins']['get']('TrackChangesEditing'),_0xda9f01=Array['from'](_0x2dc1db['activeAnnotations'],_0x40a410=>_0x40a410['innerView'])['filter'](_0x3e4d12=>this['_viewToController']['has'](_0x3e4d12)),_0x51370e=[];for(const _0xdbc488 of _0xda9f01){const _0x1f5802=this['_viewToController']['get'](_0xdbc488)['model']['getAllAdjacentSuggestions']();_0x51370e['push'](..._0x1f5802['reduce']((_0x15dea8,_0x1ac086)=>[..._0x15dea8,..._0x1ac086['getMarkerNames']()],[]));}_0x3b9fe8['activeMarkers']=_0x51370e;}['_addUIComponentsToFactory'](){const _0x29d716=this['editor'],_0x4d2738=_0x29d716['locale'],_0x3552e5=o(_0x4d2738,'Track\x20changes'),_0x5074f2=new _0x258409([{'type':'switchbutton','model':new _0x54f8d5({'withText':!0x0,'isToggleable':!0x0,'label':_0x3552e5,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x54f8d5({'withText':!0x0,'label':o(_0x4d2738,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x54f8d5({'withText':!0x0,'label':o(_0x4d2738,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x54f8d5({'withText':!0x0,'label':o(_0x4d2738,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x54f8d5({'withText':!0x0,'label':o(_0x4d2738,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x29d716['plugins']['has']('TrackChangesPreview')&&_0x5074f2['addMany']([{'type':'separator'},{'type':'button','model':new _0x54f8d5({'withText':!0x0,'label':o(_0x4d2738,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x496736 of _0x5074f2)if(ke(_0x496736)){const _0x5e390d=_0x29d716['commands']['get'](_0x496736['model']['commandName']);_0x496736['model']['bind']('isOn','isEnabled')['to'](_0x5e390d,'value','isEnabled');}_0x29d716['ui']['componentFactory']['add']('trackChanges',_0x5dc3cf=>this['_createToolbarButton'](_0x5dc3cf,_0x5074f2,_0x3552e5)),_0x29d716['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2a9a7e=>this['_createMenuBarMenu'](_0x2a9a7e,_0x5074f2,_0x3552e5));}['_createToolbarButton'](_0x5c9014,_0x2470bc,_0x4c08a0){const _0x21ee64=_0x253456(_0x5c9014,_0x28eda1),_0x4dcf4e=this['editor']['commands']['get']('trackChanges');_0x21ee64['buttonView']['set']({'tooltip':_0x4c08a0,'label':_0x4c08a0,'icon':we}),_0x21ee64['buttonView']['bind']('isOn')['to'](_0x4dcf4e,'value'),_0x21ee64['buttonView']['on']('execute',()=>{_0x4dcf4e['execute'](),this['editor']['editing']['view']['focus']();}),_0x22cdb4(_0x21ee64,_0x2470bc,{'role':'menu'});const _0x5ead27=[];for(const _0x272631 of _0x2470bc)ke(_0x272631)&&_0x5ead27['push'](this['editor']['commands']['get'](_0x272631['model']['commandName']));const _0x1152d2=_0x21ee64['buttonView'];return _0x1152d2['actionView']['unbind']('isEnabled'),_0x1152d2['arrowView']['unbind']('isEnabled'),_0x1152d2['actionView']['bind']('isEnabled')['to'](_0x4dcf4e,'isEnabled'),_0x1152d2['arrowView']['bind']('isEnabled')['toMany'](_0x5ead27,'isEnabled',(..._0x39d20e)=>_0x39d20e['some'](_0x32a6f8=>_0x32a6f8)),_0x21ee64['on']('execute',_0x56d938=>{this['editor']['execute'](_0x56d938['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x21ee64;}['_createMenuBarMenu'](_0x3763c4,_0x2dee56,_0x1ef82e){const _0x24b164=new _0x3a8381(_0x3763c4),_0x1c9d42=this['editor']['commands']['get']('trackChanges');_0x24b164['buttonView']['set']({'label':_0x1ef82e,'icon':we});const _0x2809db=new _0x37e4ba(_0x3763c4);for(const _0x489f49 of _0x2dee56){if('separator'==_0x489f49['type']){_0x2809db['items']['add'](new _0x555ab4(_0x3763c4));continue;}const _0x446918=new _0x5e2fab(_0x3763c4,_0x24b164),_0x559dec=new _0x2bfafa(_0x3763c4),_0x588bc8=_0x489f49['model'];_0x559dec['bind'](...Object['keys'](_0x588bc8))['to'](_0x588bc8),_0x559dec['delegate']('execute')['to'](_0x24b164),_0x559dec['on']('execute',()=>{this['editor']['execute'](_0x588bc8['commandName']),this['editor']['editing']['view']['focus']();}),_0x446918['children']['add'](_0x559dec),_0x2809db['items']['add'](_0x446918);}return _0x24b164['bind']('isEnabled')['to'](_0x1c9d42,'isEnabled'),_0x24b164['panelView']['children']['add'](_0x2809db),_0x24b164;}['_initializeController'](_0x37216d){const _0x2f682b=this['editor'],_0x190434=_0x2f682b['config'],_0x4b3ff7=_0x2f682b['plugins']['get']('Annotations'),_0x47c7c6=_0x2f682b['plugins']['get']('CommentsRepository'),_0x4a69d6=_0x2f682b['plugins']['get']('EditorAnnotations'),_0x18a605=_0x2f682b['plugins']['get'](_0x44fc3a)['me'],_0x4a5599=_0x190434['get']('trackChanges')['SuggestionThreadView'],_0x40a717=_0x190434['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3138e3,CommentThreadInputView:_0x52af7e}=_0x2f682b['plugins']['get']('CommentsUI');let _0x364c6b,_0x3745dc,_0x42438c;this['_annotationViews']['has'](_0x37216d['id'])?(_0x3745dc=this['_annotationViews']['get'](_0x37216d['id']),_0x364c6b=_0x3745dc['mainView']):(_0x364c6b=new _0x4a5599(_0x2f682b['locale'],_0x37216d,_0x18a605,{'disableComments':this['_disableComments'],'editorConfig':{..._0x190434['get']('comments.editorConfig'),'licenseKey':_0x190434['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x190434['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x190434['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x190434['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x59f962(_0x190434['get']('locale')),'CommentView':_0x190434['get']('comments')['CommentView'],'CommentsListView':_0x3138e3,'CommentThreadInputView':_0x52af7e,'SuggestionView':_0x40a717}),_0x364c6b['suggestionView']['acceptButton']['on']('execute',()=>{_0x2f682b['editing']['view']['focus']();}),_0x364c6b['suggestionView']['discardButton']['on']('execute',()=>{_0x2f682b['editing']['view']['focus']();}),_0x3745dc=_0x4b3ff7['createAnnotationView'](this['editor']['locale'],_0x364c6b),_0x3745dc['bind']('isDirty')['to'](_0x364c6b,'isDirty'),_0x3745dc['bind']('length')['to'](_0x364c6b),_0x3745dc['bind']('type')['to'](_0x364c6b,'type',_0xed2420=>'suggestion-'+_0xed2420),_0x364c6b['on']('escape',()=>{_0x42438c['fire']('escape');}),this['_annotationViews']['set'](_0x37216d['id'],_0x3745dc));const _0x8c54aa=_0x47c7c6['createCommentThreadController'](_0x37216d['commentThread'],_0x364c6b),_0x3edd4c=new Ce(_0x2f682b,_0x37216d,_0x364c6b,_0x8c54aa),_0x165928=_0x37216d['getAllAdjacentSuggestions']()['filter'](_0x5976d3=>_0x5976d3['isInContent']);_0x364c6b['descriptionParts']=_0x2f682b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x165928),this['_suggestionToController']['set'](_0x37216d,_0x3edd4c),this['_viewToController']['set'](_0x364c6b,_0x3edd4c),_0x42438c=_0x4b3ff7['createAnnotation']({'view':_0x3745dc,'target':()=>{const _0x1c1d67=[],_0x48c284=_0x37216d['getAllAdjacentSuggestions']()['filter'](_0x5a6609=>_0x5a6609['isInContent']);for(const _0x581031 of _0x48c284)_0x1c1d67['push'](..._0x581031['getMarkers']());return _0x577024(_0x2f682b['editing'],_0x1c1d67);},'type':()=>'suggestion-'+_0x3edd4c['view']['type']}),_0x47c7c6['_bindAnnotationToEditors'](_0x364c6b,_0x42438c),_0x4b3ff7['add'](_0x42438c),_0x4a69d6['registerAnnotation'](_0x42438c);}['_destroyController'](_0x117dac){const _0x317a8f=this['editor']['plugins']['get']('CommentsRepository'),_0x1c3e74=this['editor']['plugins']['get']('Annotations'),_0x370a02=this['_suggestionToController']['get'](_0x117dac),_0x2f8039=_0x370a02['view'],_0x4de685=_0x1c3e74['getByInnerView'](_0x2f8039);_0x317a8f['_unbindEditors'](_0x2f8039),_0x4de685&&_0x1c3e74['remove'](_0x4de685),this['_suggestionToController']['delete'](_0x117dac),this['_viewToController']['delete'](_0x2f8039),_0x370a02['destroy']();}['_updateController'](_0x5affd2){if(!_0x5affd2['isInContent']||!this['_suggestionToController']['has'](_0x5affd2))return;const _0x53e4a3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x117482=this['_suggestionToController']['get'](_0x5affd2),_0x4567e9=_0x5affd2['getAllAdjacentSuggestions']();_0x117482['view']['descriptionParts']=_0x53e4a3['descriptionFactory']['getDescriptions'](_0x4567e9);}['destroy'](){for(const _0x3f8902 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3f8902);for(const _0x5c430a of this['_annotationViews']['values']())_0x5c430a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x39eb15){return'model'in _0x39eb15;}class k extends _0x4d8634{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x333b8e){this['editor']['plugins']['get'](p)['adapter']=_0x333b8e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4ae186){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4ae186);}['getSuggestions']({skipNotAttached:_0x6b0b2=!0x1,toJSON:_0x11355b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x6b0b2,'toJSON':_0x11355b});}['getSuggestion'](_0x37f7c3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x37f7c3);}}const w=['Pagination'];class T extends _0x4d8634{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4bd86c=this['editor'];if(_0x4bd86c['config']['define']('trackChangesData.editorCreator',_0x21f01a=>{const _0x743b0a=_0x4bd86c['model']['document']['getRootNames']()['reduce']((_0x4b3f23,_0x298cfe)=>(_0x4b3f23[_0x298cfe]='',_0x4b3f23),{});return _0x4bd86c['constructor']['create'](_0x743b0a,_0x21f01a);}),'function'!=typeof _0x4bd86c['config']['get']('trackChangesData')['editorCreator'])throw new _0xaaad3e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5373f4){return N(this['editor'],!0x0,_0x5373f4);}['getDataWithDiscardedSuggestions'](_0x1b3631){return N(this['editor'],!0x1,_0x1b3631);}}class D extends _0x4d8634{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x541988){function _0x3e175a(_0x3df60c){return _0x3df60c['map'](_0x2016a3=>String['fromCharCode'](_0x2016a3))['join']('');}super(_0x541988),this['result']='end',_0x541988[_0x3e175a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e175a([0x76,0x69,0x65,0x77])][_0x3e175a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e175a([0x61,0x75,0x74,0x6f]),_0x541988[_0x3e175a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3e175a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e175a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3e175a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3e175a([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(_0x501bc6){return void 0x0!==_0x501bc6['getRootsAttributes'];}async function N(_0x5d50a0,_0x450e2f,_0x19d402){const _0x117d8c=_0x279eb0(_0x5d50a0,w);_0x117d8c['plugins']['push'](p,D),_0x117d8c['rootsAttributes']=Fe(_0x5d50a0)?_0x5d50a0['getRootsAttributes']():void 0x0;const _0x47e0c0=document['createDocumentFragment'](),_0xdfc749=_0x5d50a0['config']['get']('trackChangesData')['editorCreator'],_0xc410dc=await _0xdfc749(_0x117d8c,()=>function(_0x56a67a){const _0x49a070=document['createElement']('div');return _0x56a67a['appendChild'](_0x49a070),_0x49a070;}(_0x47e0c0));!function(_0x1b765b,_0x516a40){const _0x4a7e26=_0x1b765b['model']['document']['getRootNames']()['reduce']((_0x17be3d,_0x1d9289)=>(_0x17be3d[_0x1d9289]=_0x1b765b['data']['get']({'rootName':_0x1d9289}),_0x17be3d),{}),_0x1f1493=_0x1b765b['plugins']['get']('Users')['users']['map'](_0x4b3d0c=>({'id':_0x4b3d0c['id'],'name':_0x4b3d0c['name']})),_0xdc86bd=_0x1b765b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x34e0b7=_0x1b765b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3163f9=_0x516a40['plugins']['get']('Users'),_0x31122b=_0x516a40['plugins']['get']('TrackChangesEditing'),_0x4dc30c=_0x516a40['plugins']['get']('CommentsRepository');for(const _0x10d0ba of _0x4dc30c['getCommentThreads']())_0x10d0ba['remove']();for(const _0x50342e of _0x1f1493)_0x3163f9['getUser'](_0x50342e['id'])||_0x3163f9['addUser'](_0x50342e);_0x3163f9['me']||_0x3163f9['useAnonymousUser']();for(const _0x3cdc3b of _0x34e0b7)_0x4dc30c['addCommentThread'](_0x3cdc3b);for(const _0x11c9bb of _0xdc86bd)_0x31122b['addSuggestionData'](_0x11c9bb);_0x516a40['data']['set'](_0x4a7e26);}(_0x5d50a0,_0xc410dc),_0xc410dc['execute'](_0x450e2f?'acceptAllSuggestions':'discardAllSuggestions');const _0x235897=Fe(_0xc410dc)?_0xc410dc['getFullData'](_0x19d402):_0xc410dc['data']['get'](_0x19d402);return await _0xc410dc['destroy'](),_0x235897;}class Me extends _0x342ad9{['options'];constructor(_0x3b6098,_0x599fae){super(_0x3b6098),this['options']=_0x599fae,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'](_0x3c11ea,_0x5bbfff){if(!this['element'])return;const _0x3fc32a=[];for(const [_0x4d9c9d,_0x5b833d]of _0x3c11ea){const _0x39ff0a=document['createElement']('div');_0x39ff0a['setAttribute']('data-ck-root-name',_0x4d9c9d),_0x39ff0a['className']=_0x5b833d['classes']+'\x20ck-track-changes-preview__root-container',_0x39ff0a['innerHTML']=_0x5b833d['content'],_0x3fc32a['push'](_0x39ff0a);}_0x5bbfff(this['element'],_0x3fc32a),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0xa1debf){super(_0xa1debf),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4cd54f=this['editor'],_0xc8ffc5=_0x4cd54f['locale'],_0x2bc249=_0x4cd54f['plugins']['get']('Dialog');let _0x3484e9;const _0x4d9665=function(_0x21c03e){const _0x3ac31e={};if('editables'in _0x21c03e['ui']['view']){for(const [_0x27ebf3,_0x32d32f]of Object['entries'](_0x21c03e['ui']['view']['editables']))_0x3ac31e[_0x27ebf3]=_0x32d32f['element'];}else _0x3ac31e[_0x21c03e['model']['document']['getRootNames']()[0x0]]=_0x21c03e['ui']['view']['editable']['element'];return _0x3ac31e;}(_0x4cd54f),_0x37bba4=function(_0x175c00){let _0x2533c6=0x0;for(const _0x376d44 of Object['values'](_0x175c00))_0x2533c6=Math['max'](_0x2533c6,_0x376d44['getBoundingClientRect']()['width']);let _0x4dbd3c=0x0;for(const _0x11e966 of Object['values'](_0x175c00))_0x4dbd3c+=_0x11e966['getBoundingClientRect']()['height'];const _0x1169ec=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x398581=Math['min'](_0x4dbd3c,_0x1169ec);return{'width':_0x2533c6,'height':_0x398581};}(_0x4d9665);_0x2bc249['show']({'id':'finalContentPreview','title':o(_0xc8ffc5,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xc8ffc5,{'dialogRects':_0x37bba4}),'onHide':()=>{_0x3484e9['detachFromDom']();},'onShow':()=>{_0x4cd54f['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4c2bb6=>{const _0x108b9e=this['_standarizeRootsData'](_0x4c2bb6,_0x4cd54f,_0x4d9665);_0x2bc249['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x108b9e,_0x4cd54f['config']['get']('trackChanges.preview.renderFunction'));}),_0x3484e9=new _0x1ad2a9(_0xc8ffc5,[_0x2bc249['view']]),_0x3484e9['attachToDom'](),_0x3484e9['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4cd54f['once']('destroy',()=>{_0x3484e9['detachFromDom']();});const _0x7984b3=_0x2bc249['view']['headerView']['class'];_0x2bc249['view']['headerView']['class']=_0x7984b3?_0x7984b3+'\x20ck-reset_all':'ck-reset_all',_0x2bc249['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2bc249['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x350648=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x39d89c=_0x350648['previewMode'],_0x14ae87={};if('$labels'===_0x39d89c){for(const _0x5c0bfd of _0x350648['getMergeFieldsIds']())_0x14ae87[_0x5c0bfd]=_0x350648['getLabel'](_0x5c0bfd)||_0x5c0bfd;}else{const _0x5283e6='$defaultValues'===_0x39d89c?_0x350648['getDefaultValues']():_0x350648['getDataSetValues'](_0x39d89c,!0x0);for(const _0x427112 of Object['entries'](_0x5283e6)){const [_0x3b9c8d,_0x46b61f]=_0x427112;_0x14ae87[_0x3b9c8d]=null!==_0x46b61f?_0x46b61f:_0x350648['getLabel'](_0x3b9c8d)||_0x3b9c8d;}}return{'mergeFieldsData':_0x14ae87};}['_standarizeRootsData'](_0x3d1765,_0x213c4f,_0x3338b0){let _0x5a75e8;if('string'==typeof _0x3d1765){const _0x2ab591=_0x213c4f['model']['document']['getRootNames']()[0x0];_0x5a75e8={[_0x2ab591]:_0x3d1765};}else _0x5a75e8=_0x3d1765;const _0x3be07f=this['_fixMediaEmbeds'](_0x5a75e8,_0x213c4f),_0xab33f7=function(_0x57622a,_0x435cb3){for(const [_0x24b71c,_0x4fb833]of _0x57622a)_0x4fb833['classes']=_0x435cb3[_0x24b71c]['classList']['value']['replace']('ck-focused','');return _0x57622a;}(this['_sortRoots'](_0x213c4f)['reduce']((_0x1213c3,_0x3089b1)=>(_0x1213c3['push']([_0x3089b1,{'content':_0x3be07f[_0x3089b1],'classes':''}]),_0x1213c3),[]),_0x3338b0);return _0xab33f7;}['_fixMediaEmbeds'](_0x124d62,_0x5beee5){if(!_0x5beee5['plugins']['has']('MediaEmbedEditing'))return _0x124d62;const _0x432b0e=_0x5beee5['plugins']['get']('MediaEmbedEditing');for(const [_0x110b34,_0x484489]of Object['entries'](_0x124d62)){const _0x47e2f6=document['createElement']('div');_0x47e2f6['innerHTML']=_0x484489,(_0x47e2f6['querySelectorAll']('figure.media')['forEach'](_0x486c4f=>{const _0x384231=_0x486c4f['querySelector']('oembed');if(_0x384231){const _0x4a64aa=_0x384231['getAttribute']('url');if(_0x4a64aa){const _0x25d754=_0x432b0e['registry']['getMediaViewElement'](new _0x760d71(_0x5beee5['editing']['view']['document']),_0x4a64aa,{'elementName':'','renderForEditingView':!0x0}),_0x36d284=document['createElement']('div');_0x36d284['classList']['add']('ck-media__wrapper'),_0x25d754['render'](_0x36d284,_0x5beee5['editing']['view']['domConverter']),_0x384231['replaceWith'](_0x36d284);}}}),_0x124d62[_0x110b34]=_0x47e2f6['innerHTML']);}return _0x124d62;}['_sortRoots'](_0x38c4c9){if(!function(_0x2f11da){return void 0x0!==_0x2f11da['getRootsAttributes'];}(_0x38c4c9))return _0x38c4c9['model']['document']['getRootNames']();const _0x324074=[],_0x2cdd9e=new Map();for(const _0x1155a0 of _0x38c4c9['model']['document']['getRootNames']()){const _0x1374cc=_0x38c4c9['editing']['view']['getDomRoot'](_0x1155a0)['getClientRects']()['item'](0x0);_0x324074['push'](_0x1155a0),_0x2cdd9e['set'](_0x1155a0,_0x1374cc);}return _0x324074['sort']((_0x5970ef,_0x4930e5)=>{const _0x433236=_0x2cdd9e['get'](_0x5970ef),_0x106ae1=_0x2cdd9e['get'](_0x4930e5);return _0x433236['y']-_0x106ae1['y']||_0x433236['x']-_0x106ae1['x'];}),_0x324074;}}class te extends _0x4d8634{static get['requires'](){return[T,_0x1f9b70];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x440d3f){super(_0x440d3f),_0x440d3f['commands']['add']('previewFinalContent',new re(this['editor'])),_0x440d3f['config']['define']('trackChanges.preview.renderFunction',(_0x31834b,_0xc5a422)=>{for(const _0x5b91d9 of _0xc5a422)_0x31834b['appendChild'](_0x5b91d9);});}}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};