@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250608.0 → 0.0.0-nightly-20250610.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 (226) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +4 -4
  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/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/link.js +1 -1
  185. package/src/integrations/list.js +1 -1
  186. package/src/integrations/listproperties.js +1 -1
  187. package/src/integrations/mediaembed.js +1 -1
  188. package/src/integrations/mention.js +1 -1
  189. package/src/integrations/mergefields.js +1 -1
  190. package/src/integrations/multilevellist.js +1 -1
  191. package/src/integrations/pagebreak.js +1 -1
  192. package/src/integrations/paragraph.js +1 -1
  193. package/src/integrations/removeformat.js +1 -1
  194. package/src/integrations/replacesourcecommand.js +1 -1
  195. package/src/integrations/restrictededitingmode.js +1 -1
  196. package/src/integrations/shiftentercommand.js +1 -1
  197. package/src/integrations/standardeditingmode.js +1 -1
  198. package/src/integrations/style.js +1 -1
  199. package/src/integrations/table.js +1 -1
  200. package/src/integrations/tablecaption.js +1 -1
  201. package/src/integrations/tableclipboard.js +2 -2
  202. package/src/integrations/tablecolumnresize.js +1 -1
  203. package/src/integrations/tableheadings.js +1 -1
  204. package/src/integrations/tablelayout.js +1 -1
  205. package/src/integrations/tablemergesplit.js +1 -1
  206. package/src/integrations/tableofcontents.js +1 -1
  207. package/src/integrations/tableproperties.js +1 -1
  208. package/src/integrations/template.js +1 -1
  209. package/src/integrations/title.js +1 -1
  210. package/src/integrations/undo.js +1 -1
  211. package/src/integrations/uploadcare.js +1 -1
  212. package/src/integrations/utils.js +1 -1
  213. package/src/suggestion.js +2 -2
  214. package/src/suggestiondescriptionfactory.js +1 -1
  215. package/src/trackchanges.js +1 -1
  216. package/src/trackchangesdata.js +1 -1
  217. package/src/trackchangesediting.js +1 -1
  218. package/src/trackchangespreview.js +1 -1
  219. package/src/trackchangesui.js +1 -1
  220. package/src/ui/suggestioncontroller.js +2 -2
  221. package/src/ui/view/basesuggestionthreadview.js +1 -1
  222. package/src/ui/view/suggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionview.js +1 -1
  224. package/src/ui/view/trackchangespreviewview.js +1 -1
  225. package/src/utils/common-translations.js +1 -1
  226. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x5cf6aa,Plugin as _0x28b250,PendingActions as _0x305085}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4ee9c2,ObservableMixin as _0x3e391a,uid as _0x370ed3,priorities as _0x4066a6,insertToPriorityArray as _0x108dfb,toArray as _0x384868,logWarning as _0x2d38e9,getEnvKeystrokeText as _0x278c74,FocusTracker as _0xebdde7,KeystrokeHandler as _0x485de4,Collection as _0x558e28}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4e2f88,IconCancel as _0x11f7a8,IconTrackChanges as _0xc8e2e5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as to,View as _0x56481a,ViewCollection as _0x2bdb44,FocusCycler as _0x2a3b0e,ViewModel as _0x5b6ffb,createDropdown as _0x6ae726,SplitButtonView as _0x1f0b07,addListToDropdown as _0x6a29f5,MenuBarMenuView as _0x79c27f,MenuBarMenuListView as _0x17d1da,ListSeparatorView as _0x425f2a,MenuBarMenuListItemView as _0x2e0880,MenuBarMenuListItemButtonView as _0x24f457,BodyCollection as _0x36f7c3,Dialog as _0x4fa047}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x148996,hashObject as _0x3e24bc,surroundingMarkersDetector as _0x46fc19,FOCUS_ANNOTATION_KEYSTROKE as _0x837e7b,AriaDescriptionView as _0x25c525,setupThreadKeyboardNavigation as _0x581dea,trimHtml as _0x4dbf21,UserView as _0x251d08,LateFocusButtonView as _0x2ae706,getDateTimeFormatter as _0x1ba8e4,getAllMarkersDomElementsSorted as _0x391156,sanitizeEditorConfig as _0x3ce4c0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1c7c63,LiveRange as _0xc2db3f,LivePosition as _0x30cdb6,DowncastWriter as _0x5400db}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x11d210,toWidget as _0x5b3197}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x41887c,set as _0x43cd48,isEqual as _0x31f67f,unset as _0x8c8f5a,omit as Ut}from'es-toolkit/compat';import{Delete as _0x51d717,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x242bbd}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x5ed61e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class D extends _0x5cf6aa{['_enabledCommands'];constructor(_0x3897cf,_0x26b733){super(_0x3897cf),this['_enabledCommands']=_0x26b733,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 _0xb448d9 of this['editor']['commands']['commands']())_0xb448d9['affectsData']&&!this['_enabledCommands']['has'](_0xb448d9)&&_0xb448d9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x19d26a of this['editor']['commands']['commands']())_0x19d26a['affectsData']&&!this['_enabledCommands']['has'](_0x19d26a)&&_0x19d26a['clearForceDisabled']('TrackChangesCommand');}}class M extends _0x5cf6aa{['_suggestions'];constructor(_0x18672e,_0x5928a3){super(_0x18672e),this['_suggestions']=_0x5928a3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x56302e){const _0x17989a=this['_suggestions']['get'](_0x56302e);if(!_0x17989a)throw new _0x4ee9c2('track-changes-accept-suggestion-not-found',this);const _0x461616=_0x17989a['getRanges']();this['editor']['model']['canEditAt'](_0x461616)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x17989a);}}class $ extends _0x5cf6aa{['_suggestions'];constructor(_0xde107c,_0x70cca3){super(_0xde107c),this['_suggestions']=_0x70cca3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3db39f){const _0x564277=this['_suggestions']['get'](_0x3db39f);if(!_0x564277)throw new _0x4ee9c2('track-changes-discard-suggestion-not-found',this);const _0x4c495b=_0x564277['getRanges']();this['editor']['model']['canEditAt'](_0x4c495b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x564277);}}function ls(_0x47470b,_0x176341){let _0x375ffb='';return _0x375ffb+=_0x47470b['split']('*')['map']((_0x577ad0,_0x3c505d)=>_0x3c505d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x577ad0)+'</span>':nn(_0x577ad0))['join'](''),_0x176341&&(_0x375ffb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x176341['value']+'\x22\x20title=\x22'+_0x176341['title']+'\x22></span>'),_0x375ffb;}function nn(_0x5c8c2d){const _0x163cf8=document['createElement']('span');return _0x163cf8['innerText']=_0x5c8c2d,_0x163cf8['innerHTML'];}function ts(_0x388834){return _0x388834['sort']((_0x4daead,_0x47fb7a)=>'deletion'==_0x4daead['type']&&'deletion'!=_0x47fb7a['type']?-0x1:'deletion'!=_0x4daead['type']&&'deletion'==_0x47fb7a['type']?0x1:0x0);}function Yt(_0xd04776,_0x524af9){let _0x211cbd,_0x4d6bc6=0x0;const _0x4ac66c=[],_0x1d9cec=_0x524af9['schema'];for(;_0x4d6bc6<_0xd04776['length'];){const _0x376f2e=_0xd04776[_0x4d6bc6],_0x53f860=_0xd04776[_0x4d6bc6+0x1];_0x211cbd||(_0x211cbd=_0x524af9['createPositionBefore'](_0x376f2e)),on(_0x524af9,_0x376f2e,_0x53f860)||(_0x4ac66c['push'](_0x524af9['createRange'](_0x211cbd,_0x1d9cec['isObject'](_0x376f2e)?_0x524af9['createPositionAfter'](_0x376f2e):_0x524af9['createPositionAt'](_0x376f2e,'end'))),_0x211cbd=null),_0x4d6bc6++;}return _0x4ac66c;}function on(_0x513608,_0x3ffe1d,_0x17ba46){if(!_0x17ba46)return!0x1;const _0x514a68=_0x513608['createPositionAfter'](_0x3ffe1d),_0x586e5a=_0x513608['createPositionBefore'](_0x17ba46);return _0x514a68['isTouching'](_0x586e5a);}function rs(_0x567211,_0x40efbf,_0x234796){for(;_0x234796['length'];){const _0x486af8=_0x234796['splice'](0x0,0x64);_0x567211['change'](()=>{for(const _0x42f272 of _0x486af8)_0x42f272['isInContent']&&_0x40efbf['execute'](_0x42f272['id']);});}}class B extends _0x5cf6aa{['_command'];['_suggestions'];constructor(_0x5b4af2,_0xb1ebf9,_0x295f8a){super(_0x5b4af2),this['_command']=_0xb1ebf9,this['_suggestions']=_0x295f8a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4c8a19=Array['from'](this['_suggestions']['values']())['some'](_0x5ce50f=>_0x5ce50f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4c8a19;}['execute'](){const _0x4f3e93=ts(Array['from'](this['_suggestions']['values']()));for(const _0xec7a79 of _0x4f3e93){const _0x5f6824=_0xec7a79['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5f6824))return;}rs(this['editor']['model'],this['_command'],_0x4f3e93);}}class T extends _0x5cf6aa{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x19316b,_0x1ba2a6,_0x5769c7){super(_0x19316b),this['_command']=_0x1ba2a6,this['_suggestions']=_0x5769c7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x7d9d45=this['editor']['model']['document']['selection'],_0x45afb8=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x24d7b9,_0x5db68a){const _0x1d6709=Array['from'](_0x24d7b9['getRanges']()),_0x2204bb=new Set();for(const _0x2d9857 of _0x5db68a)if(_0x2d9857['isInContent']){for(const _0x194b5f of _0x1d6709)for(const _0x162958 of _0x2d9857['getRanges']())(_0x194b5f['isIntersecting'](_0x162958)||_0x24d7b9['isCollapsed']&&!_0x2d9857['isMultiRange']&&_0x2d9857['next']&&_0x162958['end']['isTouching'](_0x194b5f['start']))&&_0x2204bb['add'](_0x2d9857);}return _0x2204bb;}(_0x7d9d45,_0x45afb8),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x48f1fa=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1824d8 of _0x48f1fa){const _0x474cb0=_0x1824d8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x474cb0))return;}rs(this['editor']['model'],this['_command'],_0x48f1fa);}}class x extends/* #__PURE__ -- @preserve */
24
- _0x3e391a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1c41d5,_0x1cce23){super(),this['id']=_0x1cce23['id'],this['type']=_0x1cce23['type'],this['subType']=_0x1cce23['subType']||null,this['author']=_0x1cce23['author'],this['creator']=_0x1cce23['creator']||_0x1cce23['author'],this['isExternal']=Boolean(_0x1cce23['attributes']&&_0x1cce23['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1cce23['originalSuggestionId']||null,this['_model']=_0x1c41d5,this['_onAccept']=_0x1cce23['onAccept'],this['_onDiscard']=_0x1cce23['onDiscard'],this['_onAttributesChange']=_0x1cce23['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1cce23['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 _0x1897e1=this;for(;_0x1897e1['previous'];)_0x1897e1=_0x1897e1['previous'];return _0x1897e1;}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'](_0x2f5e2f){this['_markerNames']['add'](_0x2f5e2f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x509fb2=>this['_model']['markers']['get'](_0x509fb2))['filter'](_0x3e336d=>_0x3e336d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2b70f9=>{for(const _0x398620 of this['getMarkers']())_0x2b70f9['removeMarker'](_0x398620);}),this['_markerNames']['clear']();}['removeMarker'](_0x23bf3f){this['_model']['change'](_0x4b898a=>{_0x4b898a['removeMarker'](_0x23bf3f);}),this['_markerNames']['delete'](_0x23bf3f);}['addRange'](_0x3f3565){const _0x2a2d10='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x2a2d10),this['_model']['change'](_0xb56f64=>{_0xb56f64['addMarker'](_0x2a2d10,{'range':_0x3f3565,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x39be88){for(const _0x14bc85 of this['getRanges']())if(_0x14bc85['isIntersecting'](_0x39be88))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x52e57a=>_0x52e57a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x596c4b,_0x3582a0)=>[..._0x596c4b,..._0x3582a0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x19a36f=this['getRanges']();if(0x1!=_0x19a36f['length'])return null;const _0x1140c7=_0x19a36f[0x0],_0x39acc4=_0x1140c7['start']['nodeAfter'],_0x2a7e36=_0x1140c7['end']['nodeBefore'];return _0x39acc4 instanceof _0x1c7c63?_0x39acc4!=_0x2a7e36?null:_0x39acc4: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 _0x2f657e=[];let _0xd050a0=this['head'];for(;_0xd050a0;)_0x2f657e['push'](_0xd050a0),_0xd050a0=_0xd050a0['next'];return _0x2f657e;}['setAttribute'](_0x38e793,_0x4547d3){const _0x41139a=_0x41887c(this['attributes']);_0x43cd48(_0x41139a,_0x38e793,_0x4547d3),_0x31f67f(_0x41139a,this['attributes'])||(this['attributes']=_0x41139a,this['_onAttributesChange'](_0x41139a));}['removeAttribute'](_0x143a67){const _0x150452=_0x41887c(this['attributes']);_0x8c8f5a(_0x150452,_0x143a67),_0x31f67f(_0x150452,this['attributes'])||(this['attributes']=_0x150452,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 _0x370ed3()['substr'](0x1,0x5);}}function o(_0x5c67bc,_0x39f884,_0x548109){const _0x6625e8=_0x5c67bc['t'],t=_0x5c67bc['t'];switch(_0x39f884){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',_0x548109);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x548109);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x548109);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x548109);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x548109);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',_0x548109);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x548109);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',_0x548109);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x548109);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x548109);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x548109);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x548109);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x548109);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x548109);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x548109);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x548109);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x548109);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x548109);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x548109);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x548109);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x548109);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x548109);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x548109);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x548109);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x548109);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'},_0x548109);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x548109);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x548109);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x548109);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x548109);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x548109);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x548109);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x548109);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'},_0x548109);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x548109);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x548109);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x548109);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x548109);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'},_0x548109);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x548109);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'},_0x548109);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'},_0x548109);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x548109);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'},_0x548109);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x548109);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'},_0x548109);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x548109);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x548109);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'},_0x548109);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x548109);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 _0x6625e8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x548109);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x6625e8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x548109);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x548109);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'},_0x548109);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'},_0x548109);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'},_0x548109);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x39f884;}}class O{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x595120,_0x5b584e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x595120,this['_locale']=_0x5b584e;}['getDescriptions'](_0xee55d0){const _0x41cd71=[],_0x8960c5=new Set(),_0x237a7e=new Set();for(let _0x65913a=0x0;_0x65913a<_0xee55d0['length'];_0x65913a++){const _0x845fc0=_0xee55d0[_0x65913a];if(!_0x845fc0['isInContent'])continue;const _0x49208f=this['_handleCustomCallbackDescription'](_0x845fc0);if(_0x49208f){if(null!=_0x845fc0['subType']){if(_0x8960c5['has'](_0x845fc0['subType']))continue;_0x8960c5['add'](_0x845fc0['subType']);}_0x41cd71['push'](_0x49208f);}else{if('attribute'!=_0x845fc0['type'])'insertion'!=_0x845fc0['type']&&'deletion'!=_0x845fc0['type']||this['_handleInsertRemoveSuggestionDescription'](_0x41cd71,_0x845fc0,_0xee55d0[_0x65913a+0x1]);else{const _0xbbfe86=_0x845fc0['data']['key'];if(_0x237a7e['has'](_0xbbfe86))continue;_0x237a7e['add'](_0x845fc0['data']['key']),_0xbbfe86==m?this['_handleRenameSuggestionDescription'](_0x41cd71,_0x845fc0):this['_handleAttributeSuggestionDescription'](_0x41cd71,_0x845fc0);}}}return this['_resolveDescriptionItems'](_0x41cd71);}['registerDescriptionCallback'](_0x4cd58a){this['_customCallbacks']['push'](_0x4cd58a);}['registerElementLabel'](_0x3f46a5,_0x523586,_0x115549=_0x4066a6['normal']){'function'==typeof _0x3f46a5?_0x108dfb(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3f46a5,'label':_0x523586,'priority':_0x115549}):this['_itemLabels']['set'](_0x3f46a5,_0x523586);}['registerAttributeLabel'](_0x187ba6,_0x25687a){this['_attributeLabels']['set'](_0x187ba6,_0x25687a);}['getItemLabel'](_0x5d59bb,_0x5c6a70=0x1){let _0x4c408a;for(const _0xad878a of this['_itemLabelsCallbacks'])if(_0xad878a['matchingCallback'](_0x5d59bb)){_0x4c408a=_0xad878a['label'];break;}return _0x4c408a||(_0x4c408a=this['_itemLabels']['get'](_0x5d59bb['name'])),_0x4c408a?_0x4c408a(_0x5c6a70):0x1!==_0x5c6a70?_0x5c6a70+'\x20'+_0x5d59bb['name']+'s':''+_0x5d59bb['name'];}['_addDescriptionItems'](_0x1db36e,_0x4382db){const _0x372908=_0x4382db['getFirstRange']()['getWalker'](),_0x4604ed='insertion'==_0x4382db['type']?'add':'remove';for(const _0x133310 of _0x372908){const _0x45f835=_0x133310['item'],_0x46cc84=_0x1db36e[_0x1db36e['length']-0x1];if(_0x45f835['is']('$textProxy'))_0x46cc84&&_0x46cc84['type']['indexOf']('Container')>-0x1&&_0x1db36e['pop'](),_0x46cc84&&'text'==_0x46cc84['type']?_0x46cc84[_0x4604ed]+=_0x45f835['data']:_0x1db36e['push']({'type':'text','add':'add'==_0x4604ed?_0x45f835['data']:'','remove':'remove'==_0x4604ed?_0x45f835['data']:''});else{if(this['_schema']['isObject'](_0x45f835)){const _0x45fa40=_0x45f835;if(_0x46cc84&&_0x46cc84['type']['indexOf']('Container')>-0x1&&_0x1db36e['pop'](),'elementEnd'==_0x133310['type'])continue;_0x46cc84&&_0x46cc84['type']==_0x4604ed+'Object'&&_0x46cc84['element']['name']==_0x45fa40['name']?_0x46cc84['quantity']++:_0x1db36e['push']({'type':_0x4604ed+'Object','element':_0x45fa40,'quantity':0x1}),_0x372908['skip'](_0x142329=>!('elementEnd'==_0x142329['type']&&_0x142329['item']==_0x45f835));}else{if(this['_schema']['checkChild'](_0x45f835,'$text')||_0x45f835['is']('element','softBreak')){const _0x36dab4=_0x45f835;if('add'==_0x4604ed&&'elementStart'==_0x133310['type']||'remove'==_0x4604ed&&'elementEnd'==_0x133310['type'])continue;if(_0x46cc84&&-0x1==_0x46cc84['type']['indexOf']('Container')){'text'==_0x46cc84['type']&&(_0x46cc84[_0x4604ed]+='\x0a');continue;}let _0x2c1160;if(_0x2c1160='add'==_0x4604ed?_0x36dab4['nextSibling']&&!this['_schema']['isObject'](_0x36dab4['nextSibling'])?_0x36dab4['nextSibling']:null:_0x36dab4['previousSibling']&&!this['_schema']['isObject'](_0x36dab4['previousSibling'])?_0x36dab4['previousSibling']:null,_0x36dab4['isEmpty']||_0x2c1160&&_0x2c1160['isEmpty']){const _0x2c8878=_0x2c1160&&_0x2c1160['isEmpty']?_0x2c1160:_0x36dab4;_0x46cc84&&_0x46cc84['type']==_0x4604ed+'EmptyContainer'&&_0x46cc84['element']['name']==_0x2c8878['name']?_0x46cc84['quantity']++:_0x1db36e['push']({'type':_0x4604ed+'EmptyContainer','element':_0x2c8878,'quantity':0x1});}else _0x1db36e['push']({'type':_0x4604ed+'Container','element':_0x36dab4});}}}}}['_resolveDescriptionItems'](_0x3f37e0){const _0x35ff0e=this['_locale'],_0x28c6d4=[],_0x355ca8=[],_0xbe8cf5=[];for(const _0x28f661 of _0x3f37e0)switch(_0x28f661['type']){case'text':if(_0x28f661['add']=_0x28f661['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x28f661['remove']=_0x28f661['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x28f661['add']&&''!=_0x28f661['remove']){_0x28c6d4['push']({'type':'replace','content':o(_0x35ff0e,'REPLACE_TEXT',['\x22'+_0x28f661['remove']+'\x22','\x22'+_0x28f661['add']+'\x22'])});continue;}if(null!=_0x28f661['add']['match'](/^ +$/)){_0x28c6d4['push']({'type':'insertion','content':o(_0x35ff0e,'*Insert:*\x20%0',o(_0x35ff0e,'ELEMENT_SPACE',_0x28f661['add']['length']))});continue;}if(null!=_0x28f661['remove']['match'](/^ +$/)){_0x28c6d4['push']({'type':'deletion','content':o(_0x35ff0e,'*Remove:*\x20%0',o(_0x35ff0e,'ELEMENT_SPACE',_0x28f661['remove']['length']))});continue;}if(''!=_0x28f661['add']){_0x28c6d4['push']({'type':'insertion','content':o(_0x35ff0e,'*Insert:*\x20%0','\x22'+_0x28f661['add']+'\x22')});continue;}_0x28c6d4['push']({'type':'deletion','content':o(_0x35ff0e,'*Remove:*\x20%0','\x22'+_0x28f661['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x28c6d4['push']({'type':'insertion','content':o(_0x35ff0e,'*Insert:*\x20%0',this['getItemLabel'](_0x28f661['element'],_0x28f661['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x28c6d4['push']({'type':'deletion','content':o(_0x35ff0e,'*Remove:*\x20%0',this['getItemLabel'](_0x28f661['element'],_0x28f661['quantity']))});continue;case'addContainer':_0x28c6d4['push']({'type':'insertion','content':o(_0x35ff0e,'*Split:*\x20%0',this['getItemLabel'](_0x28f661['element'],_0x28f661['quantity']))});continue;case'removeContainer':_0x28c6d4['push']({'type':'deletion','content':o(_0x35ff0e,'*Merge:*\x20%0',this['getItemLabel'](_0x28f661['element'],_0x28f661['quantity']))});continue;case'addFormat':_0x355ca8['push'](_0x28f661['key']);continue;case'removeFormat':_0xbe8cf5['push'](_0x28f661['key']);continue;default:_0x28c6d4['push'](_0x28f661);}if(_0x355ca8['length']){const _0x164e70=_0x355ca8['map'](_0x2c561a=>this['_attributeLabels']['has'](_0x2c561a)?this['_attributeLabels']['get'](_0x2c561a):_0x2c561a)['join'](',\x20');_0x28c6d4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x164e70)});}if(_0xbe8cf5['length']){const _0x5bb70f=_0xbe8cf5['map'](_0x244e31=>this['_attributeLabels']['has'](_0x244e31)?this['_attributeLabels']['get'](_0x244e31):_0x244e31)['join'](',\x20');_0x28c6d4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5bb70f)});}return _0x28c6d4;}['_handleCustomCallbackDescription'](_0x248921){for(const _0x489570 of this['_customCallbacks']){const _0xf3cae6=_0x489570(_0x248921);if(_0xf3cae6&&'type'in _0xf3cae6)return _0xf3cae6;}}['_handleAttributeSuggestionDescription'](_0x1cb9d8,_0x291917){const _0x28b4bc=_0x291917['data'],_0x2d72e9=void 0x0===_0x28b4bc['newValue']?'removeFormat':'addFormat';_0x1cb9d8['push']({'type':_0x2d72e9,'key':_0x28b4bc['key']});}['_handleRenameSuggestionDescription'](_0xaf977e,_0x56a535){_0xaf977e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x56a535['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x26ed9e,_0x3b8c65,_0x359986){if(this['_addDescriptionItems'](_0x26ed9e,_0x3b8c65),_0x359986&&_0x359986['getFirstRange']()&&!_0x3b8c65['getFirstRange']()['end']['isEqual'](_0x359986['getFirstRange']()['start'])){const _0x46f26a=_0x26ed9e[_0x26ed9e['length']-0x1],_0x424d62='insertion'==_0x3b8c65['type']?'add':'remove';_0x46f26a&&'text'==_0x46f26a['type']&&(_0x46f26a[_0x424d62]+='\x0a');}}}class R extends _0x28b250{['afterInit'](){const _0x1d55de=this['editor'],_0x5d342f=_0x1d55de['plugins']['get']('TrackChangesEditing');_0x1d55de['commands']['get']('showAIAssistant')&&_0x5d342f['enableCommand']('showAIAssistant');}}class E extends _0x28b250{['afterInit'](){const _0x3bc11b=this['editor'],_0x162539=_0x3bc11b['locale'];if(!_0x3bc11b['plugins']['has']('AlignmentEditing'))return;const _0x31c642=_0x3bc11b['plugins']['get']('TrackChangesEditing');_0x31c642['enableDefaultAttributesIntegration']('alignment'),_0x31c642['registerBlockAttribute']('alignment'),_0x31c642['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x162539,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23408e=this['editor'],_0x504c98=_0x23408e['locale'];_0x23408e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc6244d=>{if('formatBlock'!=_0xc6244d['type'])return;const {data:_0x46f38b}=_0xc6244d;if(_0x46f38b&&'alignment'==_0x46f38b['commandName']){const _0x4c77b6=_0x46f38b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x504c98,'*Format:*\x20%0',function(_0x59678f){switch(_0x59678f){case'left':return o(_0x504c98,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x504c98,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x504c98,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x504c98,'FORMAT_JUSTIFY_TEXT');}}(_0x4c77b6))};}});}}const Xt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x28b250{['afterInit'](){const _0x58d9da=this['editor'],_0x2c0d79=_0x58d9da['plugins']['get']('TrackChangesEditing'),_0x1aa8fc=_0x58d9da['locale'];for(const _0x5f5bab of Xt){if(!_0x58d9da['plugins']['has'](_0x5f5bab))continue;const _0xf8f6e8=_0x5f5bab['slice'](0x0,-0x7)['toLowerCase'](),_0x4c77c8='FORMAT_'+_0xf8f6e8['toUpperCase']();_0x2c0d79['enableDefaultAttributesIntegration'](_0xf8f6e8),_0x2c0d79['registerInlineAttribute'](_0xf8f6e8),_0x2c0d79['descriptionFactory']['registerAttributeLabel'](_0xf8f6e8,o(_0x1aa8fc,_0x4c77c8));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2c79=this['editor'],_0x5c9ff4=_0x1f2c79['locale'],_0x37c072=_0x1f2c79['plugins']['get']('TrackChangesEditing');function _0x1b04a1(_0x3412d2,_0xd4cf39){_0x37c072['descriptionFactory']['registerDescriptionCallback'](_0x5755e2=>{if('formatInline'!=_0x5755e2['type'])return;const {data:_0x5da336}=_0x5755e2;return _0x5da336&&_0x5da336['commandName']===_0x3412d2?_0x5da336['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c9ff4,'*Format:*\x20%0',_0xd4cf39)}:{'type':'format','content':o(_0x5c9ff4,'*Remove\x20format:*\x20%0',_0xd4cf39)}:void 0x0;});}_0x1b04a1('bold',o(_0x5c9ff4,'FORMAT_BOLD')),_0x1b04a1('italic',o(_0x5c9ff4,'FORMAT_ITALIC')),_0x1b04a1('underline',o(_0x5c9ff4,'FORMAT_UNDERLINE')),_0x1b04a1('code',o(_0x5c9ff4,'FORMAT_CODE')),_0x1b04a1('strikethrough',o(_0x5c9ff4,'FORMAT_STRIKETHROUGH')),_0x1b04a1('subscript',o(_0x5c9ff4,'FORMAT_SUBSCRIPT')),_0x1b04a1('superscript',o(_0x5c9ff4,'FORMAT_SUPERSCRIPT'));}}class V extends _0x28b250{['afterInit'](){const _0x106f7d=this['editor'],_0x779f8d=_0x106f7d['locale'];if(!_0x106f7d['plugins']['has']('BlockQuoteEditing'))return;const _0x35e422=_0x106f7d['plugins']['get']('TrackChangesEditing'),_0x16c411=this['editor']['commands']['get']('blockQuote');_0x35e422['enableCommand']('blockQuote',(_0x2581bf,_0x7ad518={})=>{const _0x4a5a0f=this['editor']['model']['document']['selection'],_0x47e11b=_0x7ad518&&void 0x0!==_0x7ad518['forceValue']?_0x7ad518['forceValue']:!_0x16c411['value'];let _0x36ab7a=[];if(_0x47e11b){const _0x3c6901=Array['from'](_0x4a5a0f['getSelectedBlocks']())['filter'](_0x239dfe=>Zt(_0x239dfe)||function(_0x5330ae,_0x15ffd8){const _0x366bf9=_0x15ffd8['checkChild'](_0x5330ae['parent'],'blockQuote'),_0x506c5c=_0x15ffd8['checkChild'](['$root','blockQuote'],_0x5330ae);return _0x366bf9&&_0x506c5c;}(_0x239dfe,this['editor']['model']['schema']));_0x36ab7a=Yt(_0x3c6901,_0x106f7d['model']);}else{const _0x483d9a=Array['from'](_0x4a5a0f['getSelectedBlocks']())['filter'](_0x198322=>Zt(_0x198322));_0x36ab7a=Yt(_0x483d9a,_0x106f7d['model']);}_0x106f7d['model']['change'](()=>{for(const _0x2fc41d of _0x36ab7a)_0x35e422['markBlockFormat'](_0x2fc41d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x47e11b}]});});}),_0x35e422['descriptionFactory']['registerDescriptionCallback'](_0xe9f89a=>{const {data:_0x7bccc7}=_0xe9f89a;if(_0x7bccc7&&'blockQuote'==_0x7bccc7['commandName']){const _0x474654=o(_0x779f8d,'ELEMENT_BLOCK_QUOTE');return _0x7bccc7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x779f8d,'*Set\x20format:*\x20%0',_0x474654)}:{'type':'format','content':o(_0x779f8d,'*Remove\x20format:*\x20%0',_0x474654)};}});}}function Zt(_0x4e3e1a){return'blockQuote'==_0x4e3e1a['parent']['name'];}class F extends _0x28b250{['afterInit'](){const _0x4c5691=this['editor'],_0x25a35d=_0x4c5691['locale'],_0x8ff9e2=_0x4c5691['plugins']['get']('TrackChangesEditing');_0x4c5691['plugins']['has']('BookmarkEditing')&&(_0x8ff9e2['enableCommand']('insertBookmark'),_0x8ff9e2['enableDefaultAttributesIntegration']('updateBookmark'),_0x8ff9e2['registerBlockAttribute']('bookmarkId'),_0x8ff9e2['descriptionFactory']['registerDescriptionCallback'](_0x23123a=>{if('insertion'!=_0x23123a['type']&&'deletion'!=_0x23123a['type']&&'attribute'!=_0x23123a['type'])return;const _0xbe003d=_0x23123a['getContainedElement']();if(null==_0xbe003d)return;if(!_0xbe003d['is']('element','bookmark'))return;const _0x161b7b=_0xbe003d['getAttribute']('bookmarkId');if('insertion'==_0x23123a['type'])return{'type':'insertion','content':o(_0x25a35d,'*Insert:*\x20%0','\x22'+_0x161b7b+'\x22\x20'+o(_0x25a35d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x23123a['type'])return{'type':'deletion','content':o(_0x25a35d,'*Remove:*\x20%0','\x22'+_0x161b7b+'\x22\x20'+o(_0x25a35d,'ELEMENT_BOOKMARK'))};const {data:_0x2372a9}=_0x23123a;if(!_0x2372a9||'bookmarkId'!=_0x2372a9['key'])return;return{'type':'format','content':o(_0x25a35d,'*Set\x20bookmark:*\x20%0','\x22'+_0x2372a9['newValue']+'\x22')};}));}}class G extends _0x28b250{['afterInit'](){const _0x188a57=this['editor'];_0x188a57['plugins']['has']('CaseChange')&&(_0x188a57['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x188a57['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x188a57['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class L extends _0x28b250{['afterInit'](){const _0x44828f=this['editor'];_0x44828f['commands']['get']('ckbox')&&_0x44828f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x28b250{['afterInit'](){const _0x3bbd20=this['editor'];if(!_0x3bbd20['plugins']['has']('CodeBlock'))return;const _0x104474=_0x3bbd20['plugins']['get']('TrackChangesEditing'),_0x28965e=_0x3bbd20['locale'],_0x377804=_0x3bbd20['config']['get']('codeBlock')['languages'],_0x5966a3=_0x3bbd20['commands']['get']('codeBlock');_0x104474['enableCommand']('indentCodeBlock'),_0x104474['enableCommand']('outdentCodeBlock'),_0x104474['enableCommand']('codeBlock',(_0x3dccbb,_0x1639ad={})=>{const _0x35a04a=_0x3bbd20['model'],_0x3a5b12=_0x3bbd20['model']['document']['selection'],_0xad7343=_0x1639ad&&void 0x0!==_0x1639ad['forceValue']?_0x1639ad['forceValue']:!_0x5966a3['value'];let _0x5cf071;_0x1639ad['language']||(_0x1639ad['language']=_0x377804[0x0]['language']),_0x5cf071=_0xad7343?Array['from'](_0x3a5b12['getSelectedBlocks']())['filter'](_0x11a70c=>oo(_0x11a70c)||function(_0x571c5a,_0x5a8756){if(_0x571c5a['is']('rootElement')||_0x5a8756['isLimit'](_0x571c5a))return!0x1;return _0x5a8756['checkChild'](_0x571c5a['parent'],'codeBlock');}(_0x11a70c,_0x35a04a['schema'])):Array['from'](_0x3a5b12['getSelectedBlocks']())['filter'](_0x3a58ed=>oo(_0x3a58ed));const _0x3df170=Yt(_0x5cf071,_0x35a04a);_0x35a04a['change'](()=>{for(const _0x4e06d8 of _0x3df170)_0x104474['markBlockFormat'](_0x4e06d8,{'commandName':'codeBlock','commandParams':[{..._0x1639ad,'forceValue':_0xad7343}],'formatGroupId':'blockName'});});}),(_0x104474['descriptionFactory']['registerElementLabel']('codeBlock',_0xee5539=>o(_0x28965e,'ELEMENT_CODE_BLOCK',_0xee5539)),_0x104474['descriptionFactory']['registerDescriptionCallback'](_0x4852bc=>{if('formatBlock'!=_0x4852bc['type'])return;const _0x4c24c=_0x28965e['t'],{data:_0x492cbf}=_0x4852bc;if(!_0x492cbf||'codeBlock'!=_0x492cbf['commandName'])return;const _0x26c0ee=_0x492cbf['commandParams'][0x0]['language'],_0x31a02f=_0x4c24c(_0x377804['find'](_0x195f4f=>_0x195f4f['language']===_0x26c0ee)['label'])['toLowerCase']();return _0x492cbf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28965e,'*Set\x20format:*\x20%0',o(_0x28965e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x31a02f+')')}:{'type':'format','content':o(_0x28965e,'*Remove\x20format:*\x20%0',o(_0x28965e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x1f26ab){return'codeBlock'==_0x1f26ab['name'];}class K extends _0x28b250{['afterInit'](){const _0x5c7966=this['editor'];if(!_0x5c7966['plugins']['has']('CommentsEditing'))return;_0x5c7966['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4bda0b,_0x161bee,_0x49a3e7){const _0x5ad157=[];for(const _0x5592ab of _0x161bee['getItems']())_0x5592ab['hasAttribute'](_0x4bda0b)&&_0x5ad157['push'](_0x49a3e7['createRangeOn'](_0x5592ab));return _0x5ad157;}function Fe(_0x142ab0,_0x2a5594,{showActiveMarker:_0x4d8384=!0x0}={}){const _0x7a991a=_0x142ab0['plugins']['get']('TrackChangesEditing');return(_0x6b4b91,_0xbf814a,_0x1664fd)=>{if(!_0x1664fd['consumable']['test'](_0xbf814a['markerRange'],_0x6b4b91['name']))return;const _0x2d934e=_0xbf814a['markerRange']['getWalker'](),_0x30f46e=_0xbf814a['markerRange']['start'],_0x2bde5b=_0x142ab0['model']['schema'];let _0xa8da58=null,_0xc457b8=null,_0x1b4d00=!0x1,_0x48fbbf=!0x1;for(const _0x3afcdc of _0x2d934e){const _0x57a440=_0x3afcdc['item'];_0x1b4d00=_0x1b4d00||_0x2bde5b['isContent'](_0x57a440);const _0x3e64df=_0x1664fd['mapper']['toViewElement'](_0x57a440);if(_0x3e64df&&_0x3e64df['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3afcdc['type']&&(_0x2bde5b['isBlock'](_0x57a440)&&!_0x2bde5b['isLimit'](_0x57a440)&&(_0x57a440['nextSibling']||_0x30f46e['isAtEnd']?_0xa8da58&&_0xa8da58['parent']==_0x57a440||(_0xa8da58=_0x57a440,_0x301b9b(_0x3afcdc['previousPosition']),_0x48fbbf=!0x0):_0xc457b8=_0xc457b8||_0x3afcdc['previousPosition']));}function _0x301b9b(_0x4b1722){const {id:_0x4ba3e5,authorId:_0xbe4ab4}=_0x7a991a['_splitMarkerName'](_0xbf814a['markerName']),_0x227f01=_0x1664fd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2a5594,'data-suggestion':_0x4ba3e5,'data-author-id':_0xbe4ab4}),_0x8ca2e5=_0x1664fd['mapper']['toViewPosition'](_0x4b1722);_0x4d8384&&_0x7a991a['activeMarkers']['includes'](_0xbf814a['markerName'])&&_0x1664fd['writer']['addClass']('ck-suggestion-marker--active',_0x227f01),_0x1664fd['writer']['insert'](_0x8ca2e5,_0x227f01),_0x1664fd['mapper']['bindElementToMarker'](_0x227f01,_0xbf814a['markerName']);}_0x1b4d00||_0x48fbbf||!_0xc457b8||_0x301b9b(_0xc457b8);};}class H extends _0x28b250{static get['requires'](){return[_0x51d717];}['init'](){const _0x1f0eea=this['editor'],_0x14b9d7=_0x1f0eea['plugins']['get']('TrackChangesEditing');_0x14b9d7['enableCommand']('delete');const _0xa4b12b=_0x1f0eea['commands']['get']('deleteForward');_0x14b9d7['enableCommand']('deleteForward',(_0x94528c,_0x1739cd={})=>{const _0x43becf=_0x1f0eea['model']['createSelection'](_0x1f0eea['model']['document']['selection']);_0x43becf['isCollapsed']&&_0x1f0eea['model']['modifySelection'](_0x43becf,{'direction':'forward','unit':_0x1739cd['unit']});const _0x417123=_0x43becf['getFirstRange'](),_0x51fc3b=_0xc2db3f['fromRange'](_0x417123);let _0x4faaa2;_0x94528c(_0x1739cd),_0x4faaa2='$graveyard'==_0x51fc3b['root']['rootName']?_0x1f0eea['model']['createRange'](_0x417123['start']):_0x1f0eea['model']['createRange'](_0x51fc3b['start'],_0x51fc3b['end']),_0x51fc3b['detach'](),_0x1f0eea['model']['enqueueChange'](_0xa4b12b['buffer']['batch'],_0x1a632b=>{_0xa4b12b['buffer']['lock'](),_0x1a632b['setSelection'](_0x1a632b['createRange'](_0x4faaa2['end'])),_0xa4b12b['buffer']['unlock']();});}),_0x1f0eea['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x1f0eea,'merge'),{'priority':'high'}),_0x1f0eea['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5106da,_0x425a6f,_0x352e57)=>{_0x352e57['options']['showSuggestionHighlights']&&Fe(_0x1f0eea,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5106da,_0x425a6f,_0x352e57);},{'priority':'high'}),_0x1f0eea['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4081c0,_0x23beef,_0xb3fb30)=>{const _0x4a201e=_0xb3fb30['mapper']['markerNameToElements'](_0x23beef['markerName']);if(_0x4a201e){for(const _0x499dc5 of _0x4a201e)_0x499dc5['is']('uiElement')&&(_0xb3fb30['mapper']['unbindElementFromMarkerName'](_0x499dc5,_0x23beef['markerName']),_0xb3fb30['writer']['remove'](_0x499dc5));}},{'priority':'high'});}}class q extends _0x28b250{['afterInit'](){const _0x32e913=this['editor'];if(!_0x32e913['plugins']['has']('ListEditing'))return;const _0x41ee7a=_0x32e913['locale'],_0xeaf92f=_0x32e913['plugins']['get']('TrackChangesEditing'),_0x46cc55=_0x32e913['plugins']['has']('TodoListEditing'),_0x359c08=!!_0x32e913['config']['get']('list.multiBlock');function _0x81c897(_0x35608e){return{'type':'format','content':''+o(_0x41ee7a,'*Set\x20format:*\x20%0',_0x35608e)};}function _0x2678ba(_0x3a4b3d){return{'type':'format','content':''+o(_0x41ee7a,'*Remove\x20format:*\x20%0',_0x3a4b3d)};}_0xeaf92f['enableDefaultAttributesIntegration']('numberedList'),_0xeaf92f['enableDefaultAttributesIntegration']('bulletedList'),_0xeaf92f['enableDefaultAttributesIntegration']('customNumberedList'),_0xeaf92f['enableDefaultAttributesIntegration']('customBulletedList'),_0xeaf92f['enableDefaultAttributesIntegration']('indentList'),_0xeaf92f['enableDefaultAttributesIntegration']('outdentList'),_0xeaf92f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xeaf92f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xeaf92f['registerBlockAttribute']('listItemId'),_0xeaf92f['registerBlockAttribute']('listType'),_0xeaf92f['registerBlockAttribute']('listIndent'),_0x359c08&&(_0xeaf92f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xeaf92f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x46cc55&&(_0xeaf92f['enableDefaultAttributesIntegration']('todoList'),_0xeaf92f['enableDefaultAttributesIntegration']('checkTodoList'),_0xeaf92f['registerBlockAttribute']('todoListChecked'),_0xeaf92f['descriptionFactory']['registerDescriptionCallback'](_0x5a8d6c=>{const {data:_0x34248e}=_0x5a8d6c;if(_0x34248e&&'todoListChecked'==_0x34248e['key'])return{'type':'format','content':_0x34248e['newValue']?o(_0x41ee7a,'*Check\x20item*'):o(_0x41ee7a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4a4a6d=>{if(_0x4a4a6d['batch']['isUndo'])return!0x1;let _0x266237=!0x1;const _0x26e455=_0xeaf92f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2830fd=>'todoListChecked'===_0xeaf92f['_getAttributeKey'](_0x2830fd));for(const _0x547873 of _0x26e455){'todo'!=_0x547873['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xeaf92f['_findSuggestions'](_0x547873['getFirstRange'](),'attribute')['find'](_0x48c846=>'listType'===_0xeaf92f['_getAttributeKey'](_0x48c846['suggestion']))||(_0x4a4a6d['removeMarker'](_0x547873['getFirstMarker']()),_0x266237=!0x0));}return _0x266237;})),_0xeaf92f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x41ee7a,'FORMAT_INDENT'));const _0x386fe2={'type':'format','content':''};_0xeaf92f['descriptionFactory']['registerDescriptionCallback'](_0x1fd801=>{const {data:_0x4520d8}=_0x1fd801;if(!_0x4520d8||'listType'!=_0x4520d8['key'])return;let _0x5aed25=_0x1fd801['head'];for(;_0x5aed25;){if(_0x5aed25['data']&&(('listStyle'==_0x5aed25['data']['key']||'listMarkerStyle'==_0x5aed25['data']['key'])&&(_0x5aed25['data']['newValue']&&'default'!=_0x5aed25['data']['newValue']||'default'!=_0x5aed25['data']['oldValue']&&!_0x4520d8['newValue'])||!_0x359c08&&_0x5aed25['data']['key']==m))return _0x386fe2;_0x5aed25=_0x5aed25['next'];}if(null==_0x4520d8['newValue'])switch(_0x4520d8['oldValue']){case'bulleted':return _0x2678ba(o(_0x41ee7a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2678ba(o(_0x41ee7a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2678ba(o(_0x41ee7a,'ELEMENT_TODO_LIST'));}switch(_0x4520d8['newValue']){case'bulleted':return _0x81c897(o(_0x41ee7a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x81c897(o(_0x41ee7a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x81c897(o(_0x41ee7a,'ELEMENT_TODO_LIST'));}}),_0xeaf92f['descriptionFactory']['registerDescriptionCallback'](_0x14d2ec=>{const {data:_0xc87a31}=_0x14d2ec;if(_0xc87a31&&'listIndent'==_0xc87a31['key'])return null==_0xc87a31['newValue']||null==_0xc87a31['oldValue']&&0x0==_0xc87a31['newValue']?_0x386fe2:void 0x0;}),_0xeaf92f['descriptionFactory']['registerDescriptionCallback'](_0x18d4de=>{if('attribute'!=_0x18d4de['type'])return;const {data:_0x25b731}=_0x18d4de;if(!_0x25b731||'listItemId'!=_0x25b731['key'])return;const _0x521f4e=Te(_0x18d4de);return'newValue'==_0x521f4e?{'type':'format','content':o(_0x41ee7a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x521f4e?{'type':'format','content':o(_0x41ee7a,'*Split:*\x20list\x20item')}:_0x386fe2;}),_0x32e913['model']['document']['registerPostFixer'](_0xef0dda=>this['listItemIdFixer'](_0xef0dda)),_0x32e913['model']['document']['registerPostFixer'](_0xe3b8d3=>this['noTrackChangesFixer'](_0xe3b8d3)),_0x32e913['model']['document']['on']('change:data',(_0x29195a,_0xfac65b)=>{if(_0xfac65b['isUndo']||!_0xfac65b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3a38a9){if(_0x3a38a9['batch']['isUndo']||!_0x3a38a9['batch']['isLocal'])return!0x1;let _0x98be52=!0x1;const _0x357c44=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa9c4f4=>_0xa9c4f4['data']&&'listItemId'==_0xa9c4f4['data']['key'])['filter'](_0x5b4160=>_0x5b4160['data']['newValue']&&_0x5b4160['data']['oldValue']);for(const _0x1bf7f7 of _0x357c44)Te(_0x1bf7f7)||(_0x3a38a9['removeMarker'](_0x1bf7f7['getFirstMarker']()),_0x98be52=!0x0);return _0x98be52;}['noTrackChangesFixer'](_0x40c43e){if(_0x40c43e['batch']['isUndo']||!_0x40c43e['batch']['isLocal'])return!0x1;const _0x11b225=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x11b225['trackChangesCommand']['value'])return!0x1;let _0x24436e=!0x1;const _0x37152d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xc9d51c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x372a71=>'attribute'==_0x372a71['type'])['filter'](_0x166b75=>_0x37152d['includes'](_0x166b75['attributeKey']));if(0x0==_0xc9d51c['length'])return _0x24436e;for(const _0x12fd34 of _0xc9d51c){const _0x2a2e03=_0x11b225['_findSuggestions'](_0x12fd34['range'],'attribute')['filter'](_0x47a4b3=>!_0x47a4b3['meta']['isNextTo'])['map'](_0x597449=>_0x597449['suggestion'])['filter'](_0x488de8=>{const _0x17f8ba=_0x11b225['_getAttributeKey'](_0x488de8);return _0x37152d['includes'](_0x17f8ba);});if(_0x2a2e03['length']){for(const _0x1cff99 of _0x2a2e03)_0x40c43e['removeMarker'](_0x1cff99['getFirstMarker']());_0x24436e=!0x0;}}return _0x24436e;}['assureChains'](){const _0x5105f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15b212=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x50e033;const _0x47cb85=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3fcf63=>{if(_0x3fcf63['data']['oldRange']||!_0x3fcf63['data']['newRange'])return null;if(!_0x3fcf63['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1b0214}=_0x5105f9['_splitMarkerName'](_0x3fcf63['name']);if(!_0x5105f9['hasSuggestion'](_0x1b0214))return null;const _0x51d34f=_0x5105f9['getSuggestion'](_0x1b0214);return _0x15b212['includes'](_0x51d34f['data']['key']);})['map'](_0x11a96b=>{const {id:_0x54af79}=_0x5105f9['_splitMarkerName'](_0x11a96b['name']),_0x288929=_0x5105f9['getSuggestion'](_0x54af79);return _0x50e033=_0x288929['attributes']['groupId'],_0x288929['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x47cb85['size'])return;const _0x52b00d=_0x5105f9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf08d15=>'attribute'==_0xf08d15['type']&&_0xf08d15['data']&&_0x15b212['includes'](_0xf08d15['data']['key'])&&_0xf08d15['attributes']['groupId']!=_0x50e033)['map'](_0x27a9b2=>({'listItem':_0x27a9b2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x27a9b2['attributes']['groupId']})),_0x352f55=new Set();for(const {groupId:_0x2b150f,listItem:_0x2dbdf5}of _0x52b00d)_0x47cb85['has'](_0x2dbdf5)&&_0x352f55['add'](_0x2b150f);for(const _0x955faf of _0x5105f9['getSuggestions']())_0x352f55['has'](_0x955faf['attributes']['groupId'])&&_0x955faf['setAttribute']('groupId',_0x50e033);}['_supportLegacySuggestions'](){const _0x4aa604=this['editor'],_0x72f75c=_0x4aa604['locale'],_0x41e520=_0x4aa604['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x41e520['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xf10898,_0x39a13e){const _0x41cc45=[];for(let _0x429752 of _0xf10898)_0x429752['start']['nodeAfter']===_0x429752['end']['parent']&&(_0x429752=_0x4aa604['model']['createRange'](_0x4aa604['model']['createPositionAt'](_0x429752['start']['nodeAfter'],0x0))),_0x41cc45['push'](_0x429752);_0x4aa604['model']['change'](_0x370f17=>{const _0x36519d=_0x4aa604['model']['document']['selection'],_0x15d0c0=Array['from'](_0x36519d['getRanges']())['map'](_0x1efdb2=>_0xc2db3f['fromRange'](_0x1efdb2));_0x370f17['setSelection'](_0x41cc45),_0x4aa604['commands']['get'](_0x39a13e['commandName'])['refresh'](),_0x39a13e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4aa604['execute'](_0x39a13e['commandName'],..._0x39a13e['commandParams']),_0x370f17['setSelection'](_0x15d0c0);for(const _0x30d2c5 of _0x15d0c0)_0x30d2c5['detach']();});}),_0x41e520['descriptionFactory']['registerElementLabel'](function(_0x3683fc){const _0x4e94ad=!_0x4aa604['model']['schema']['isObject'](_0x3683fc),_0x52e90a=_0x3683fc['previousSibling'],_0x50436d=_0x3683fc['nextSibling'],_0xb23181=_0x3683fc['getAttribute']('listItemId'),_0x34b822=!_0x52e90a||_0x52e90a['getAttribute']('listItemId')!==_0xb23181,_0x1c00d1=!_0x50436d||_0x50436d['getAttribute']('listItemId')!==_0xb23181;return _0x4e94ad&&Boolean(_0xb23181)&&_0x34b822&&_0x1c00d1;},_0x88df77=>o(_0x72f75c,'ELEMENT_LIST_ITEM',_0x88df77));}['_registerLegacyDescription'](){const _0x24a5dd=this['editor'],_0x3172b1=_0x24a5dd['locale'];function _0x1a2dea(_0x9cb6eb){const _0xe9602c=_0x24a5dd['commands']['get']('bulletedList')['value'],_0x48880b=_0x24a5dd['commands']['get']('numberedList')['value'];return'numberedList'===_0x9cb6eb?_0xe9602c:_0x48880b;}_0x24a5dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1cb343){if('formatBlock'!=_0x1cb343['type'])return;const {data:_0x51a488}=_0x1cb343;if(!_0x51a488)return;let _0x543af0,_0x12495f,_0x134c44,_0x421c22;switch(_0x51a488['commandName']){case'bulletedList':_0x134c44=_0x51a488['commandParams'][0x0]['forceValue'],_0x421c22=_0x1a2dea(_0x51a488['commandName']),_0x543af0=_0x134c44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x421c22&&_0x24a5dd['config']['get']('list.multiBlock')||(_0x543af0='*Change\x20to:*\x20%0'),_0x12495f={'type':'format','content':o(_0x3172b1,_0x543af0,o(_0x3172b1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x134c44=_0x51a488['commandParams'][0x0]['forceValue'],_0x421c22=_0x1a2dea(_0x51a488['commandName']),_0x543af0=_0x134c44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x421c22&&_0x24a5dd['config']['get']('list.multiBlock')||(_0x543af0='*Change\x20to:*\x20%0'),_0x12495f={'type':'format','content':o(_0x3172b1,_0x543af0,o(_0x3172b1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x543af0='*Indent:*\x20%0',_0x12495f={'type':'format','content':o(_0x3172b1,_0x543af0,o(_0x3172b1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x543af0=function(_0x47c769){const _0x2b40db=_0x47c769['getFirstRange']();let _0x25995e=_0x2b40db['start']['nodeAfter'];for(;_0x25995e&&_0x2b40db['containsItem'](_0x25995e);){if(_0x25995e['getAttribute']('listIndent')>0x0)return!0x1;_0x25995e=_0x25995e['nextSibling'];}return!0x0;}(_0x1cb343)?o(_0x3172b1,'*Format:*\x20remove\x20from\x20%0',o(_0x3172b1,function(_0x11c368){return'ELEMENT_'+_0x11c368['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1cb343))):o(_0x3172b1,'*Outdent:*\x20%0',o(_0x3172b1,'ELEMENT_LIST_ITEM')),_0x12495f={'type':'format','content':_0x543af0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x51a488['multipleBlocks']&&(_0x543af0='*Merge:*\x20%0',_0x12495f={'type':'deletion','content':o(_0x3172b1,_0x543af0,o(_0x3172b1,'ELEMENT_LIST_ITEM'))});}return _0x12495f;});}}function Te(_0xfccaa3){let _0x34b6e7=_0xfccaa3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x34b6e7;){const _0x395a28=_0x34b6e7['getAttribute']('listItemId');if(!_0x395a28)return!0x1;if(_0x395a28==_0xfccaa3['data']['newValue'])return'newValue';if(_0x395a28==_0xfccaa3['data']['oldValue'])return'oldValue';_0x34b6e7=_0x34b6e7['previousSibling'];}return!0x1;}class z extends _0x28b250{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x441278=this['editor']['config']['get']('list.properties'),_0x6b9862=this['editor']['plugins']['get']('TrackChangesEditing');_0x441278['styles']&&(_0x6b9862['enableDefaultAttributesIntegration']('listStyle'),_0x6b9862['registerBlockAttribute']('listStyle')),_0x441278['reversed']&&(_0x6b9862['enableDefaultAttributesIntegration']('listReversed'),_0x6b9862['registerBlockAttribute']('listReversed')),_0x441278['startIndex']&&(_0x6b9862['enableDefaultAttributesIntegration']('listStart'),_0x6b9862['registerBlockAttribute']('listStart'));const _0x2f2ee2={'type':'format','content':''};_0x6b9862['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2f98f6=this['editor']['locale'];_0x6b9862['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2f98f6,'FORMAT_LIST_REVERSED')),_0x6b9862['descriptionFactory']['registerDescriptionCallback'](_0x290a34=>{const {data:_0x26493c}=_0x290a34;if(_0x26493c&&'listReversed'==_0x26493c['key'])return null==_0x26493c['newValue']||0x0==_0x26493c['newValue']&&null==_0x26493c['oldValue']?_0x2f2ee2:void 0x0;}),_0x6b9862['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2f98f6,'FORMAT_LIST_START')),_0x6b9862['descriptionFactory']['registerDescriptionCallback'](_0x4fc36d=>{const {data:_0x4a0601}=_0x4fc36d;if(_0x4a0601&&'listStart'==_0x4a0601['key'])return null==_0x4a0601['newValue']||0x1==_0x4a0601['newValue']&&null==_0x4a0601['oldValue']?_0x2f2ee2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x323a1=>{if(_0x323a1['batch']['isUndo'])return!0x1;let _0x353335=!0x1;const _0x2c229b=_0x6b9862['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x502758=>{const _0x1a5daa=_0x6b9862['_getAttributeKey'](_0x502758);return'listStart'==_0x1a5daa||'listReversed'==_0x1a5daa;});for(const _0x2de121 of _0x2c229b){const _0x1638d7=_0x2de121['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1638d7||'customNumbered'==_0x1638d7)continue;_0x6b9862['_findSuggestions'](_0x2de121['getFirstRange'](),'attribute')['find'](_0x5efe2f=>'listType'==_0x6b9862['_getAttributeKey'](_0x5efe2f['suggestion']))||(_0x323a1['removeMarker'](_0x2de121['getFirstMarker']()),_0x353335=!0x0);}return _0x353335;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4395db){const _0x3b73c3=this['editor']['locale'],{data:_0x245be7}=_0x4395db,_0x5c7ef2={'type':'format','content':''};if(!_0x245be7||'listStyle'!=_0x245be7['key'])return;if(!_0x245be7['oldValue'])return'default'==_0x245be7['newValue']?_0x5c7ef2:{'type':'format','content':''+o(_0x3b73c3,'*Set\x20format:*\x20%0',o(_0x3b73c3,this['_getTranslationKeyForListStyle'](_0x245be7['newValue'])))};if(!_0x245be7['newValue']){if('default'==_0x245be7['oldValue'])return _0x5c7ef2;let _0x48f497=_0x4395db['head'];for(;_0x48f497;){if(_0x48f497['data']&&'listType'==_0x48f497['data']['key']&&_0x48f497['data']['newValue'])return _0x5c7ef2;_0x48f497=_0x48f497['next'];}return{'type':'format','content':''+o(_0x3b73c3,'*Remove\x20format:*\x20%0',o(_0x3b73c3,this['_getTranslationKeyForListStyle'](_0x245be7['oldValue'])))};}if('default'!=_0x245be7['newValue'])return{'type':'format','content':''+o(_0x3b73c3,'*Set\x20format:*\x20%0',o(_0x3b73c3,this['_getTranslationKeyForListStyle'](_0x245be7['newValue'])))};let _0xe3944=_0x4395db['head'];for(;_0xe3944;){if(_0xe3944['data']&&'listType'==_0xe3944['data']['key']&&_0xe3944['data']['newValue']&&_0xe3944['data']['oldValue'])return _0x5c7ef2;_0xe3944=_0xe3944['next'];}return{'type':'format','content':o(_0x3b73c3,'*Set\x20format:*\x20%0',o(_0x3b73c3,'ELEMENT_'+_0x4395db['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x18f914=this['editor'],_0x39afb9=_0x18f914['locale'];_0x18f914['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x963fef=>{if('formatBlock'!=_0x963fef['type'])return;const {data:_0x2e56fa}=_0x963fef;if(!_0x2e56fa)return;let _0x52bb72,_0x22ad3c;switch(_0x2e56fa['commandName']){case'listStyle':_0x52bb72='*Change\x20to:*\x20%0',_0x22ad3c={'type':'format','content':o(_0x39afb9,_0x52bb72,o(_0x39afb9,this['_getTranslationKeyForListStyle'](_0x2e56fa['commandParams'][0x0]['type'])))};break;case'listReversed':_0x52bb72=_0x2e56fa['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x22ad3c={'type':'format','content':o(_0x39afb9,_0x52bb72)};break;case'listStart':_0x52bb72='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x22ad3c={'type':'format','content':o(_0x39afb9,_0x52bb72,_0x2e56fa['commandParams'][0x0]['startIndex'])};}return _0x22ad3c;});}['_getTranslationKeyForListStyle'](_0x3cfe54){return'ELEMENT_'+function(_0x1f5262){if(Se['includes'](_0x1f5262))return'bulleted';if(_e['includes'](_0x1f5262))return'numbered';return null;}(_0x3cfe54)['toUpperCase']()+'_LIST_'+_0x3cfe54['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x28b250{['afterInit'](){const _0x1eb345=this['editor'];_0x1eb345['commands']['get']('emoji')&&_0x1eb345['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Q extends _0x28b250{static get['requires'](){return[_0x242bbd];}['init'](){const _0x504e9f=this['editor'],_0x50930e=_0x504e9f['plugins']['get']('TrackChangesEditing'),_0x2b81cd=_0x504e9f['commands']['get']('enter');_0x50930e['enableCommand']('enter',()=>{_0x504e9f['model']['change'](_0x2658e3=>{const _0x15c531=_0x504e9f['model']['document']['selection'],_0x493e26=_0x15c531['getFirstPosition'](),_0x2c2b7f=_0xc2db3f['fromRange'](_0x15c531['getFirstRange']());if(_0x2b81cd['enterBlock'](_0x2658e3)){const _0x48cbba=_0x504e9f['model']['createPositionAt'](_0x493e26['parent']['nextSibling'],0x0),_0x19ed64=_0x2658e3['createRange'](_0x493e26,_0x48cbba);_0x50930e['markInsertion'](_0x19ed64);}else _0x2658e3['setSelection'](_0x2658e3['createRange'](_0x2c2b7f['end']));_0x2c2b7f['detach'](),_0x2b81cd['fire']('afterExecute',{'writer':_0x2658e3});});}),_0x504e9f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x504e9f,'split'),{'priority':'high'}),_0x504e9f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1d880c,_0x1db5c1,_0x563eee)=>{const _0x4cc0e3=_0x563eee['mapper']['markerNameToElements'](_0x1db5c1['markerName']);if(_0x4cc0e3){for(const _0xf4c0c of _0x4cc0e3)_0xf4c0c['hasClass']('ck-suggestion-marker-split')&&(_0x563eee['mapper']['unbindElementFromMarkerName'](_0xf4c0c,_0x1db5c1['markerName']),_0x563eee['writer']['remove'](_0xf4c0c));}},{'priority':'high'}),_0x504e9f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x54899b,_0xeab2b6,_0xf29999)=>{_0xf29999['options']['showSuggestionHighlights']&&Fe(_0x504e9f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x54899b,_0xeab2b6,_0xf29999);},{'priority':'high'});}}class X extends _0x28b250{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x122e72=this['editor']['plugins']['get']('TrackChangesEditing');_0x122e72['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x122e72['enableCommand']('findNext'),_0x122e72['enableCommand']('findPrevious'),_0x122e72['enableCommand']('replace'),_0x122e72['enableCommand']('replaceAll');}['handleFindCommand'](_0x476dc5,_0x37425c,_0x3f98c4={}){const _0x3e3279=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x476dc5(_0x2758a4=>{let _0x1fd71b=('string'==typeof _0x37425c?_0x3e3279['findByTextCallback'](_0x37425c,_0x3f98c4):_0x37425c)(_0x2758a4);Array['isArray'](_0x1fd71b)&&(_0x1fd71b={'results':_0x1fd71b,'searchText':'string'==typeof _0x37425c?_0x37425c:''});const _0x4d73af=_0x1fd71b['results']['filter'](_0x3af71e=>!0x1===this['_isInDeletionRange'](_0x3af71e,_0x2758a4['item']));return{..._0x1fd71b,'results':_0x4d73af};},_0x3f98c4);}['_isInDeletionRange'](_0x58781c,_0x4f09c5){const _0x348ec3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f09c5,_0x58781c['start']),this['editor']['model']['createPositionAt'](_0x4f09c5,_0x58781c['end']));for(const _0x1edc98 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x348ec3['getIntersection'](_0x1edc98['getRange']()))return!0x0;return!0x1;}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x28b250{['afterInit'](){const _0x246cfe=this['editor']['locale'],_0x3800fb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5bf1f5,commandName:_0x195335}of no)this['editor']['plugins']['has'](_0x5bf1f5)&&(_0x3800fb['enableDefaultAttributesIntegration'](_0x195335),_0x3800fb['registerInlineAttribute'](_0x195335));_0x3800fb['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x246cfe,'FORMAT_FONT_SIZE')),_0x3800fb['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x246cfe,'FORMAT_FONT_FAMILY')),_0x3800fb['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x246cfe,'FORMAT_FONT_COLOR')),_0x3800fb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x246cfe,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21e916=this['editor'],_0x53b08b=_0x21e916['locale'];_0x21e916['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d1114=>{const _0x533f29=_0x53b08b['t'];if('formatInline'!=_0x1d1114['type'])return;const {data:_0x4339c2}=_0x1d1114;if(null!=_0x4339c2){if('fontSize'==_0x4339c2['commandName']){const _0x3e918b=_0x4339c2['commandParams'][0x0]['value'];if(_0x3e918b){const _0x1e0bfe=_0x533f29(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3ba881=>_0x3ba881['model']==_0x3e918b)['title'])['toLowerCase']();return{'type':'format','content':o(_0x53b08b,'*Set\x20font\x20size:*\x20%0',_0x1e0bfe)};}return{'type':'format','content':o(_0x53b08b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4339c2['commandName']){const _0x411b85=_0x4339c2['commandParams'][0x0]['value'];return _0x411b85?{'type':'format','content':o(_0x53b08b,'*Set\x20font\x20family:*\x20%0',_0x411b85)}:{'type':'format','content':o(_0x53b08b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4339c2['commandName']){const _0x7ae0e8=_0x4339c2['commandParams'][0x0]['value'];if(_0x7ae0e8){const _0x537b5b=to(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5e6774=>_0x5e6774['model']==_0x7ae0e8);let _0x10bf5c=_0x7ae0e8,_0x1401fb='';return _0x537b5b&&(_0x10bf5c=_0x537b5b['label'],_0x1401fb=_0x533f29(_0x10bf5c)['toLowerCase']()),{'type':'format','content':o(_0x53b08b,'*Set\x20font\x20color:*\x20%0',_0x1401fb)['trim'](),'color':{'value':_0x7ae0e8,'title':_0x1401fb||_0x10bf5c}};}return{'type':'format','content':o(_0x53b08b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4339c2['commandName']){const _0x13a367=_0x4339c2['commandParams'][0x0]['value'];if(_0x13a367){const _0x18be71=to(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x10d786=>_0x10d786['model']==_0x13a367);let _0x4f7f4d=_0x13a367,_0x5cd6a7='';return _0x18be71&&(_0x4f7f4d=_0x18be71['label'],_0x5cd6a7=_0x533f29(_0x4f7f4d)['toLowerCase']()),{'type':'format','content':o(_0x53b08b,'*Set\x20font\x20background\x20color:*\x20%0',_0x5cd6a7)['trim'](),'color':{'value':_0x13a367,'title':_0x5cd6a7||_0x4f7f4d}};}return{'type':'format','content':o(_0x53b08b,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x28b250{['afterInit'](){const _0x3b3236=this['editor'],_0x32d36c=_0x3b3236['plugins']['get']('TrackChangesEditing'),_0x42f33b=_0x3b3236['commands']['get']('copyFormat'),_0xc5a3ee=_0x3b3236['commands']['get']('pasteFormat');_0x42f33b&&_0xc5a3ee&&(_0x32d36c['enableDefaultAttributesIntegration']('pasteFormat'),_0x32d36c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x480389=this['editor'],_0x3a972c=_0x480389['locale'];_0x480389['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a72b6=>{if('formatBlock'!=_0x4a72b6['type']&&'formatInline'!=_0x4a72b6['type'])return;const {data:_0x17453d}=_0x4a72b6;if(_0x17453d&&'pasteFormat'===_0x17453d['commandName']){const _0x573a5e=[],_0x1e1e68=_0x17453d['commandParams'][0x0];for(const [_0x100c47,_0xa1e276]of Object['entries'](_0x1e1e68))_0x573a5e['push'](ro(_0x480389,_0x100c47,_0xa1e276));return _0x573a5e['length']?{'type':'format','content':o(_0x3a972c,'*Set\x20format\x20to:*\x20%0',_0x573a5e['join'](',\x20'))}:{'type':'format','content':o(_0x3a972c,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x27d67b,_0x332c11,_0x5c3e42){const _0x35b582=_0x27d67b['locale']['t'],_0x2ffdbd=_0x332c11['split'](/(?=[A-Z])/)['join']('\x20'),_0x2264cb=_0x35b582(_0x2ffdbd['charAt'](0x0)['toUpperCase']()+_0x2ffdbd['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5c3e42)return _0x2264cb;if('fontColor'===_0x332c11||'fontBackgroundColor'===_0x332c11){const _0x38ef17=to(_0x27d67b['config']['get']('fontColor.colors'))['find'](_0x122a8c=>_0x122a8c['model']==_0x5c3e42);return _0x2264cb+'\x20('+(_0x38ef17?_0x35b582(_0x38ef17['label'])['toLowerCase']():_0x5c3e42)+')';}if('fontSize'===_0x332c11&&isNaN(parseFloat(_0x5c3e42))){const _0x5386f1=_0x27d67b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x27d67b['config']['get']('fontSize.options'))['find'](_0x118837=>_0x118837['model']==_0x5c3e42);return _0x2264cb+'\x20('+(_0x5386f1?_0x35b582(_0x5386f1['title'])['toLowerCase']():_0x5c3e42)+')';}return _0x2264cb+'\x20('+_0x5c3e42+')';}class tt extends _0x28b250{['_headingOptions'];['afterInit'](){const _0x5f127f=this['editor'];if(!_0x5f127f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5f127f['config']['get']('heading.options');const _0x4b26e9=_0x5f127f['locale'],_0xafab8b=_0x5f127f['plugins']['get']('TrackChangesEditing');_0xafab8b['enableDefaultAttributesIntegration']('heading');for(const _0x41e281 of this['_headingOptions'])'paragraph'!=_0x41e281['model']&&_0xafab8b['descriptionFactory']['registerElementLabel'](_0x41e281['model'],_0x1afe08=>{const _0x2dc2c0=this['_getHeadingLevel'](_0x41e281['model']);return null!==_0x2dc2c0?_0x5be7c1(_0x1afe08,_0x2dc2c0):_0x164549(_0x1afe08,_0x41e281['title']);});function _0x5be7c1(_0x5cb076,_0x327d7d){return o(_0x4b26e9,'ELEMENT_HEADING',[_0x5cb076,_0x327d7d]);}function _0x164549(_0x5e00ba,_0x55da18){return o(_0x4b26e9,'ELEMENT_HEADING_CUSTOM',[_0x5e00ba,_0x55da18]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ce038=this['editor'],_0x471b0b=_0x5ce038['locale'];function _0x11615d(_0x36589d,_0x404672){return o(_0x471b0b,'ELEMENT_HEADING_CUSTOM',[_0x36589d,_0x404672]);}_0x5ce038['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53191d=>{if('formatBlock'!=_0x53191d['type'])return;const {data:_0x8e546d}=_0x53191d;if(_0x8e546d&&'heading'==_0x8e546d['commandName']){const _0x76301b=_0x8e546d['commandParams'][0x0]['value'],_0xa6b41e=this['_getHeadingLevel'](_0x76301b);if(null!==_0xa6b41e)return{'type':'format','content':o(_0x471b0b,'*Change\x20to:*\x20%0',(_0x218ccb=0x1,_0x23e4c5=_0xa6b41e,o(_0x471b0b,'ELEMENT_HEADING',[_0x218ccb,_0x23e4c5])))};const _0x32e393=this['_headingOptions']['find'](_0x4995ed=>_0x4995ed['model']===_0x76301b)['title'];return{'type':'format','content':o(_0x471b0b,'*Change\x20to:*\x20%0',_0x11615d(0x1,_0x32e393))};}var _0x218ccb,_0x23e4c5;});}['_getHeadingLevel'](_0x198640){const _0x138aa1=_0x198640['match'](/^heading(\d+)/);if(_0x138aa1)return _0x138aa1[0x1];const _0x34a6f6=this['_headingOptions']?.['find'](_0x1d3ac2=>_0x1d3ac2['model']==_0x198640);if(_0x34a6f6&&_0x34a6f6['view']){const _0x5629a8=_0x34a6f6['view'],_0x4aa9d2=(_0x5629a8['name']??_0x5629a8)['match'](/^h(\d+)/);if(_0x4aa9d2)return _0x4aa9d2[0x1];}return null;}}class it extends _0x28b250{['afterInit'](){const _0x1a3174=this['editor'];if(!_0x1a3174['plugins']['has']('HighlightEditing'))return;const _0x1dd600=_0x1a3174['plugins']['get']('TrackChangesEditing'),_0x22b209=_0x1a3174['locale'];_0x1dd600['enableDefaultAttributesIntegration']('highlight'),_0x1dd600['registerInlineAttribute']('highlight'),_0x1dd600['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x22b209,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x148612=this['editor'],_0x73f1c2=_0x148612['locale'];_0x148612['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e023e=>{if('formatInline'!=_0x4e023e['type'])return;const {data:_0x47dded}=_0x4e023e;if(_0x47dded&&'highlight'==_0x47dded['commandName']){const _0x5b15a2=_0x73f1c2['t'],_0x4eda42=_0x47dded['commandParams'][0x0]['value'];if(_0x4eda42){const _0x278161=_0x148612['config']['get']('highlight.options')['find'](_0x22515c=>_0x22515c['model']==_0x4eda42),_0x22d1d1=_0x5b15a2(_0x278161['title'])['toLowerCase']();return{'type':'format','content':o(_0x73f1c2,'*Set\x20highlight:*\x20%0',_0x22d1d1),'color':{'value':_0x278161['color'],'title':_0x278161['title']}};}return{'type':'format','content':o(_0x73f1c2,'*Remove\x20highlight*',o(_0x73f1c2,'FORMAT_HIGHLIGHT'))};}});}}class nt extends _0x28b250{['afterInit'](){const _0x3cb028=this['editor'];if(!_0x3cb028['plugins']['has']('HorizontalLineEditing'))return;_0x3cb028['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x192873=_0x3cb028['plugins']['get']('TrackChangesEditing'),_0x38a555=_0x3cb028['locale'];_0x192873['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3c9b9e=>o(_0x38a555,'ELEMENT_HORIZONTAL_LINE',_0x3c9b9e)),_0x3cb028['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x14d59b,{writer:_0x103dba,options:_0x1d4875})=>{if(!_0x1d4875['showSuggestionHighlights'])return null;const _0x2ce26f=_0x103dba['createContainerElement']('div'),_0x531fa2=_0x103dba['createEmptyElement']('hr');return _0x103dba['addClass']('ck-horizontal-line',_0x2ce26f),_0x103dba['insert'](_0x103dba['createPositionAt'](_0x2ce26f,0x0),_0x531fa2),_0x2ce26f;},'converterPriority':'high'});}}class et extends _0x28b250{['afterInit'](){const _0x2bf621=this['editor'];if(!_0x2bf621['plugins']['has']('HtmlEmbed'))return;const _0x25b6bb=_0x2bf621['plugins']['get']('TrackChangesEditing'),_0x154788=_0x2bf621['locale'];_0x25b6bb['descriptionFactory']['registerElementLabel']('rawHtml',_0x18c0cd=>o(_0x154788,'ELEMENT_HTML_EMBED',_0x18c0cd)),_0x25b6bb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x25b6bb['registerBlockAttribute']('value'),_0x25b6bb['descriptionFactory']['registerDescriptionCallback'](_0x1e49ae=>{if('attribute'!=_0x1e49ae['type'])return;const {data:_0x388d8b}=_0x1e49ae;if(_0x388d8b&&'value'==_0x388d8b['key']&&_0x1e49ae['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x22f6db=o(_0x154788,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x154788,'*Change\x20%0\x20content*',_0x22f6db)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1219a7=this['editor'],_0x1837ea=_0x1219a7['locale'];_0x1219a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b5cff=>{if('formatBlock'!=_0x5b5cff['type'])return;const {data:_0x5abad8}=_0x5b5cff;if(_0x5abad8&&'htmlEmbed'==_0x5abad8['commandName']){const _0x26f017=o(_0x1837ea,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1837ea,'*Change\x20%0\x20content*',_0x26f017)};}});}}class st extends _0x28b250{['afterInit'](){const _0xc28387=this['editor'];if(!_0xc28387['plugins']['has']('ImageEditing'))return;const _0x25eb8d=_0xc28387['plugins']['get']('TrackChangesEditing'),_0x55d200=_0xc28387['plugins']['get']('ImageUtils'),_0x3e3641=_0xc28387['locale'];_0x25eb8d['enableCommand']('insertImage'),_0x25eb8d['descriptionFactory']['registerElementLabel']('imageBlock',_0x5163c0=>o(_0x3e3641,'ELEMENT_IMAGE',_0x5163c0)),_0x25eb8d['descriptionFactory']['registerElementLabel']('imageInline',_0x174a4d=>o(_0x3e3641,'ELEMENT_INLINE_IMAGE',_0x174a4d)),_0x25eb8d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3e3641,'ELEMENT_CAPTION')),_0xc28387['plugins']['has']('ImageUploadEditing')&&_0x25eb8d['enableCommand']('uploadImage'),_0xc28387['plugins']['has']('ImageBlockEditing')&&_0xc28387['plugins']['has']('ImageInlineEditing')&&(_0x25eb8d['enableCommand']('imageTypeInline',(_0x45af91,_0x59e44c)=>{const _0x3180ea=_0x55d200['getClosestSelectedImageElement'](_0xc28387['model']['document']['selection']);_0xc28387['model']['change'](()=>{_0x25eb8d['markBlockFormat'](_0x3180ea,{'commandName':'imageTypeInline','commandParams':[_0x59e44c]},[],'convertBlockImageToInline');});}),_0x25eb8d['enableCommand']('imageTypeBlock',(_0x1656f3,_0x41a0c2)=>{_0xc28387['model']['change'](_0xd37d14=>{let _0x3541b6=_0x55d200['getClosestSelectedImageElement'](_0xc28387['model']['document']['selection']),_0x521af9=_0xd37d14['createRangeOn'](_0x3541b6);const _0x59beab=_0x30cdb6['fromPosition'](_0x521af9['start'],'toPrevious'),_0x9affc4=_0x30cdb6['fromPosition'](_0x521af9['end'],'toNext');_0x25eb8d['forceDefaultExecution'](()=>_0x1656f3(_0x41a0c2)),_0x3541b6=_0x55d200['getClosestSelectedImageElement'](_0xc28387['model']['document']['selection']),_0x521af9=_0xd37d14['createRangeOn'](_0x3541b6);const _0x4452bb=_0xd37d14['createRange'](_0x59beab,_0x9affc4);_0x59beab['detach'](),_0x9affc4['detach'](),_0x25eb8d['markBlockFormat'](_0x3541b6,{'commandName':'imageTypeInline','commandParams':[_0x41a0c2]},[],'convertInlineImageToBlock'),_0x4452bb['start']['isBefore'](_0x521af9['start'])&&_0x25eb8d['markInsertion'](_0xd37d14['createRange'](_0x4452bb['start'],_0x521af9['start']),'convertInlineImageToBlock'),_0x521af9['end']['isBefore'](_0x4452bb['end'])&&_0x25eb8d['markInsertion'](_0xd37d14['createRange'](_0x521af9['end'],_0x4452bb['end']),'convertInlineImageToBlock');});}),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x25eb8d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xc25858])=>{const _0x3f9afe=_0x25eb8d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x24a4cc=_0xc25858['start'],_0x18e891=_0xc25858['end'];const _0x4380f0=_0xc28387['model']['schema']['getNearestSelectionRange'](_0x24a4cc,'backward'),_0x1d1288=_0xc28387['model']['schema']['getNearestSelectionRange'](_0x18e891,'forward');_0x4380f0['isCollapsed']&&(_0x24a4cc=_0x4380f0['start']),_0x1d1288['isCollapsed']&&(_0x18e891=_0x1d1288['end']),_0x3f9afe([_0xc28387['model']['createRange'](_0x24a4cc,_0x18e891)]);}),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x59bf45),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x59bf45)),_0xc28387['plugins']['has']('ImageCaptionEditing')&&(_0x25eb8d['enableCommand']('toggleImageCaption',(_0x643318,_0x8db4bb)=>{const _0x44fec5=_0xc28387['plugins']['get']('ImageCaptionUtils');let _0x3e014f=_0x55d200['getClosestSelectedImageElement'](_0xc28387['model']['document']['selection']),_0xf3a41c=_0x44fec5['getCaptionFromImageModelElement'](_0x3e014f);_0xc28387['model']['change'](()=>{if(_0xf3a41c)return void _0x25eb8d['markDeletion'](_0xc28387['model']['createRangeOn'](_0xf3a41c));const _0x3bdd14=_0x55d200['isBlockImage'](_0x3e014f);_0x643318(_0x8db4bb),_0x3e014f=_0x55d200['getClosestSelectedImageElement'](_0xc28387['model']['document']['selection']),_0xf3a41c=_0x44fec5['getCaptionFromImageModelElement'](_0x3e014f),_0x25eb8d['markInsertion'](_0xc28387['model']['createRangeOn'](_0xf3a41c),_0x3bdd14?null:'imageCaption');});}),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x59bf45));const _0x441b03=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2f419c(_0xc669eb,_0x1fff75){const _0x267683=_0x441b03['findIndex'](({type:_0x3b1782,subType:_0x55cd2d})=>_0xc669eb['type']==_0x3b1782&&_0xc669eb['subType']==_0x55cd2d),_0x304986=_0x441b03['findIndex'](({type:_0x311074,subType:_0xedfb07})=>_0x1fff75['type']==_0x311074&&_0x1fff75['subType']==_0xedfb07);if(_0x267683<0x0||_0x304986<0x0)return!0x1;const _0x573d69=_0xc669eb['getFirstRange'](),_0x4461bf=_0x1fff75['getFirstRange']();if((0x0==_0x267683||0x1==_0x267683)&&0x2==_0x304986&&_0x573d69['isIntersecting'](_0x4461bf))return!0x0;if(0x2==_0x267683&&0x3==_0x304986){const _0x37f155=_0x25eb8d['_findSuggestions'](_0x573d69,'insertion')['filter'](({suggestion:_0x3ccff1,meta:_0x43a56d})=>_0x43a56d['isOwn']&&'convertInlineImageToBlock'==_0x3ccff1['subType']);if(_0x37f155['length']>0x1&&_0x4461bf['end']['isEqual'](_0x573d69['start']))return!0x0;if(0x1==_0x37f155['length']&&(_0x573d69['start']['isEqual'](_0x4461bf['end'])||_0x573d69['end']['isEqual'](_0x4461bf['start'])))return!0x0;}if(0x3==_0x267683&&0x3==_0x304986&&_0x573d69['start']['isBefore'](_0x4461bf['start'])){const _0x38420d=_0x573d69['end']['nodeAfter'],_0x3c3a02=_0x4461bf['start']['nodeBefore'];return _0x55d200['isBlockImage'](_0x38420d)&&_0x38420d===_0x3c3a02;}return!0x1;}function _0x59bf45(_0x524d27,_0x303561){return _0x2f419c(_0x524d27,_0x303561)?[_0x524d27,_0x303561]:_0x2f419c(_0x303561,_0x524d27)?[_0x303561,_0x524d27]:null;}_0xc28387['plugins']['has']('ImageResize')&&(_0x25eb8d['enableDefaultAttributesIntegration']('resizeImage'),_0x25eb8d['registerBlockAttribute']('resizedWidth'),_0x25eb8d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3e3641,'FORMAT_IMAGE_SIZE'))),_0xc28387['plugins']['has']('ImageTextAlternativeEditing')&&(_0x25eb8d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x25eb8d['registerBlockAttribute']('alt')),_0xc28387['plugins']['has']('PictureEditing')&&(_0x25eb8d['registerBlockAttribute']('sources'),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x31fa74=>{if('attribute'!=_0x31fa74['type'])return;const {data:_0x4a8b64}=_0x31fa74;return _0x4a8b64&&'sources'==_0x4a8b64['key']?{'type':'format','content':''}:void 0x0;})),_0xc28387['plugins']['has']('ImageSizeAttributes')&&(_0x25eb8d['registerBlockAttribute']('width'),_0x25eb8d['registerBlockAttribute']('height'),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x5dd80a=>{if('attribute'!=_0x5dd80a['type'])return;const {data:_0x444b0e}=_0x5dd80a;return!_0x444b0e||'width'!=_0x444b0e['key']&&'height'!=_0x444b0e['key']?void 0x0:{'type':'format','content':''};})),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x397c55=>{if(!!_0x441b03['find'](({type:_0x45c737,subType:_0x51dcce})=>_0x397c55['type']==_0x45c737&&_0x397c55['subType']==_0x51dcce))return _0x397c55['previous']?{}:void 0x0;}),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x63d94f=>{if('insertion'==_0x63d94f['type']||'deletion'==_0x63d94f['type']){const _0x510ac2=_0x63d94f['getContainedElement']();if(_0x510ac2&&_0x510ac2['is']('element','caption'))return{'type':'insertion'==_0x63d94f['type']?'addObject':'removeObject','element':_0x510ac2,'quantity':0x1};}}),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x3424ee=>'formatBlock'==_0x3424ee['type']&&'convertInlineImageToBlock'==_0x3424ee['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3424ee['type']&&'convertBlockImageToInline'==_0x3424ee['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x3e361c=>{if('attribute'!=_0x3e361c['type'])return;const {data:_0x3d0b1d}=_0x3e361c;if(!_0x3d0b1d||'alt'!=_0x3d0b1d['key'])return;const _0x22a17e=_0x3d0b1d['newValue'];return _0x22a17e?{'type':'format','content':o(_0x3e3641,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x22a17e+'\x22')}:{'type':'format','content':o(_0x3e3641,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x491270=this['editor'],_0x1668af=_0x491270['locale'];_0x491270['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a335a=>{if('formatBlock'!=_0x5a335a['type']&&'formatInline'!=_0x5a335a['type'])return;const {data:_0x11170b}=_0x5a335a;if(_0x11170b){if('imageTextAlternative'==_0x11170b['commandName']){const _0x3915da=_0x11170b['commandParams'][0x0]['newValue'];return _0x3915da?{'type':'format','content':o(_0x1668af,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3915da+'\x22')}:{'type':'format','content':o(_0x1668af,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x11170b['commandName']){const _0x3ecd40=_0x11170b['commandParams'][0x0]['width'];return _0x3ecd40?{'type':'format','content':o(_0x1668af,'*Set\x20image\x20width:*\x20%0',_0x3ecd40)}:{'type':'format','content':o(_0x1668af,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x28b250{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3b7ed3=this['editor']['locale'],_0x1507c8=this['editor']['plugins']['get']('TrackChangesEditing');_0x1507c8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1507c8['registerBlockAttribute']('src'),_0x1507c8['descriptionFactory']['registerDescriptionCallback'](_0x594769=>{if('attribute'!=_0x594769['type'])return;const {data:_0x5157f7}=_0x594769;return _0x5157f7&&'src'==_0x5157f7['key']?_0x5157f7['newValue']&&_0x5157f7['oldValue']?{'type':'format','content':o(_0x3b7ed3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xeca685=this['editor']['plugins']['get']('TrackChangesEditing');_0xeca685['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xeca685['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xeca685['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xeca685['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31fa68=this['editor'],_0x2ed856=_0x31fa68['locale'];_0x31fa68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40a128=>{if('formatBlock'!=_0x40a128['type']&&'formatInline'!=_0x40a128['type'])return;const {data:_0x229bea}=_0x40a128;if(!_0x229bea||'replaceImageSource'!=_0x229bea['commandName'])return;return{'type':'format','content':o(_0x2ed856,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x28b250{['afterInit'](){const _0x473101=this['editor'];if(!_0x473101['plugins']['has']('ImageStyleEditing'))return;const _0x759f7e=_0x473101['plugins']['get']('TrackChangesEditing'),_0x1b8596=_0x473101['plugins']['get']('ImageUtils'),_0x253c86={};_0x759f7e['enableCommand']('imageStyle',(_0x4f76e8,_0x1d5c68)=>{const _0x421bca=_0x473101['plugins']['get']('Users')['me'],_0x549a50=_0x473101['commands']['get']('imageStyle');let _0x564536=_0x1b8596['getClosestSelectedImageElement'](_0x473101['model']['document']['selection']),_0xb083e5=_0x473101['model']['createRangeOn'](_0x564536),_0x2165e4=_0x549a50['value'];if(_0x2165e4==_0x1d5c68['value'])return;const _0x2b2a74={'commandName':'imageStyle','commandParams':[_0x1d5c68],'formatGroupId':_0x370ed3()};_0x473101['model']['change'](()=>{if(_0x759f7e['getSuggestions']()['filter'](_0x1f9dea=>_0x1f9dea['isInContent']&&_0x421bca==_0x1f9dea['author']&&('formatBlock'==_0x1f9dea['type']||'formatInline'==_0x1f9dea['type'])&&('imageStylePreApply'==_0x1f9dea['subType']||'imageStylePostApply'==_0x1f9dea['subType'])&&_0x1f9dea['getFirstRange']()['isEqual'](_0xb083e5))['forEach'](_0x337286=>_0x759f7e['discardSuggestion'](_0x337286['head'])),_0x564536=_0x1b8596['getClosestSelectedImageElement'](_0x473101['model']['document']['selection']),_0xb083e5=_0x473101['model']['createRangeOn'](_0x564536),_0x549a50['refresh'](),_0x473101['commands']['get']('imageTypeInline')['refresh'](),_0x473101['commands']['get']('imageTypeBlock')['refresh'](),_0x2165e4=_0x549a50['value'],_0x2165e4!=_0x1d5c68['value'])return _0x1b8596['isInlineImage'](_0x564536)&&_0x549a50['shouldConvertImageType'](_0x1d5c68['value'],_0x564536)?(_0x4f76e8({..._0x1d5c68,'setImageSizes':!0x1}),_0x564536=_0x1b8596['getClosestSelectedImageElement'](_0x473101['model']['document']['selection']),void _0x759f7e['markBlockFormat'](_0x564536,{..._0x2b2a74,'commandReversedParams':[{'value':_0x2165e4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1b8596['isBlockImage'](_0x564536)?_0x759f7e['markBlockFormat'](_0x564536,_0x2b2a74,[],'imageStylePostApply'):_0x759f7e['markInlineFormat'](_0xb083e5,_0x2b2a74,'imageStylePostApply'));});});for(const _0x2a9198 of _0x473101['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x253c86[_0x2a9198['name']]=_0x2a9198['title']['toLowerCase']();_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4b9ac4])=>{_0x1b8596['setImageNaturalSizeAttributes'](_0x4b9ac4['getContainedElement']());}),_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x29fe23,_0x21cb1d)=>{_0x759f7e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x29fe23,{'commandName':_0x21cb1d['commandName'],'commandParams':_0x21cb1d['commandReversedParams']});}),_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4ec3b1,_0x4cf52d){if(_0xb9ddcc(_0x4ec3b1,_0x4cf52d))return[_0x4ec3b1,_0x4cf52d];if(_0xb9ddcc(_0x4cf52d,_0x4ec3b1))return[_0x4cf52d,_0x4ec3b1];return null;});const _0x41332b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xb9ddcc(_0x3d5804,_0x5b626f){const _0x2ed07c=_0x41332b['findIndex'](({type:_0x320923,subType:_0x5a6d20})=>_0x3d5804['type']==_0x320923&&_0x3d5804['subType']==_0x5a6d20),_0x2bbee2=_0x41332b['findIndex'](({type:_0x42b61f,subType:_0x4d04d0})=>_0x5b626f['type']==_0x42b61f&&_0x5b626f['subType']==_0x4d04d0);if(_0x2ed07c<0x0||_0x2bbee2<0x0)return!0x1;const _0x87202f=_0x3d5804['getFirstRange'](),_0x19d8d=_0x5b626f['getFirstRange']();if((0x0==_0x2ed07c||0x1==_0x2ed07c)&&0x2==_0x2bbee2&&_0x87202f['isIntersecting'](_0x19d8d))return!0x0;if(0x2==_0x2ed07c&&0x3==_0x2bbee2){const _0x3ad0ec=_0x759f7e['_findSuggestions'](_0x87202f,'insertion')['filter'](({suggestion:_0x1068c1,meta:_0x17163f})=>_0x17163f['isOwn']&&'convertInlineImageToBlock'==_0x1068c1['subType']);if(_0x3ad0ec['length']>0x1&&_0x19d8d['end']['isEqual'](_0x87202f['start']))return!0x0;if(0x1==_0x3ad0ec['length']&&(_0x87202f['start']['isEqual'](_0x19d8d['end'])||_0x87202f['end']['isEqual'](_0x19d8d['start'])))return!0x0;}if(0x3==_0x2ed07c&&0x3==_0x2bbee2&&_0x87202f['start']['isBefore'](_0x19d8d['start'])){const _0x2d02a8=_0x87202f['end']['nodeAfter'],_0x2ec4f5=_0x19d8d['start']['nodeBefore'];return _0x1b8596['isBlockImage'](_0x2d02a8)&&_0x2d02a8===_0x2ec4f5;}return!0x1;}_0x473101['model']['document']['registerPostFixer'](()=>{let _0x2f1900=!0x1;const _0xb2f7c6=Array['from'](_0x473101['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a7183,data:_0x3d814e}of _0xb2f7c6){const {group:_0x5946ff,type:_0x2d5123,subType:_0x34305d,id:_0x5e4463}=_0x759f7e['_splitMarkerName'](_0x2a7183);if('suggestion'==_0x5946ff&&_0x759f7e['hasSuggestion'](_0x5e4463)){if('formatBlock'==_0x2d5123&&('imageStylePreApply'==_0x34305d||'imageStylePostApply'==_0x34305d)){const _0x1630c9=_0x759f7e['getSuggestion'](_0x5e4463);if(_0x3d814e['newRange']){const _0x3cc882=_0x1630c9['getFirstRange']()['getContainedElement']();if(_0x1b8596['isBlockImage'](_0x3cc882))continue;_0x759f7e['discardSuggestion'](_0x1630c9),_0x2f1900=!0x0;}}if('insertion'==_0x2d5123&&'imageCaption'==_0x34305d&&!_0x3d814e['newRange']){const _0x12ce0e=_0x759f7e['getSuggestion'](_0x5e4463);_0x12ce0e['next']&&_0x12ce0e['next']['isInContent']&&(_0x759f7e['discardSuggestion'](_0x12ce0e['next']),_0x2f1900=!0x0);}}}return _0x2f1900;}),this['_registerLegacyDescription'](_0x253c86);}['_registerLegacyDescription'](_0x3bf0c7){const _0x20451e=this['editor'],_0x1b6bcd=_0x20451e['locale'];_0x20451e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1280fe=>{if('formatBlock'!=_0x1280fe['type']&&'formatInline'!=_0x1280fe['type'])return;const {data:_0x2e0527}=_0x1280fe;if(!_0x2e0527||'imageStyle'!=_0x2e0527['commandName'])return;const _0x5335b6=_0x2e0527['commandParams'][0x0]['value'];return _0x492576('side'===_0x5335b6?o(_0x1b6bcd,'FORMAT_SIDE_IMAGE'):_0x3bf0c7[_0x5335b6]||_0x5335b6);function _0x492576(_0x89d390){return{'type':'format','content':o(_0x1b6bcd,'*Format:*\x20%0',_0x89d390)};}});}}class at extends _0x28b250{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3bbe81){super(_0x3bbe81),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3b9d30=this['editor'],_0x9b254=_0x3b9d30['commands']['get']('importWord'),_0x1c0ccd=_0x3b9d30['commands']['get']('trackChanges');_0x9b254&&(_0x9b254['on']('execute',(_0x5c6c85,[,_0x10536a])=>{this['_trackChangesValueDuringImport']=_0x1c0ccd['value'],_0x10536a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x9b254,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x9b254,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1c0ccd['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3b9d30['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3dbd7d,_0x567a4f){const {suggestions:_0x17da43}=_0x567a4f,_0x5a4b6c=this['editor']['commands']['get']('trackChanges'),_0x58068d=_0x5a4b6c['value'];this['_trackChangesValueDuringImport']!==_0x58068d&&(_0x5a4b6c['execute'](),this['_trackChangesExecuted']=!0x0),_0x17da43&&_0x17da43['forEach'](({id:_0x3bc8dd,type:_0xae69e1,author:_0x18352d,created_at:_0x20f550})=>{const _0x2f16bd={'id':_0x3bc8dd,'type':_0xae69e1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x18352d,'createdAt':_0x20f550?new Date(_0x20f550):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2f16bd);});}}class ct extends _0x28b250{['afterInit'](){const _0x2518fb=this['editor'],_0x2e6680=_0x2518fb['plugins']['get']('TrackChangesEditing');if(_0x2518fb['plugins']['has']('IndentEditing')&&(_0x2e6680['enableCommand']('indent'),_0x2e6680['enableCommand']('outdent')),_0x2518fb['plugins']['has']('IndentBlock')){for(const _0x1f1142 of['indentBlock','outdentBlock'])_0x2e6680['enableDefaultAttributesIntegration'](_0x1f1142);}const _0x419597=_0x2518fb['locale'];_0x2e6680['registerBlockAttribute']('blockIndent'),_0x2e6680['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x419597,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39716d=this['editor'],_0x4fccb0=_0x39716d['locale'],_0x3bdeef=_0x39716d['plugins']['get']('TrackChangesEditing');_0x3bdeef['descriptionFactory']['registerDescriptionCallback'](_0x221166=>{if('formatBlock'!=_0x221166['type'])return;const {data:_0x45fa20}=_0x221166;if(!_0x45fa20)return;if('indentBlock'!=_0x45fa20['commandName']&&'outdentBlock'!=_0x45fa20['commandName'])return;const _0x5d0949=_0x221166['getItems']()[0x0],_0x563bcb=_0x3bdeef['descriptionFactory']['getItemLabel'](_0x5d0949);return'indentBlock'==_0x45fa20['commandName']?{'type':'format','content':o(_0x4fccb0,'*Indent:*\x20%0',_0x563bcb)}:'outdentBlock'==_0x45fa20['commandName']?{'type':'format','content':o(_0x4fccb0,'*Outdent:*\x20%0',_0x563bcb)}:void 0x0;});}}class ut extends _0x28b250{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ft extends _0x28b250{['afterInit'](){const _0x4e0b9c=this['editor'];if(!_0x4e0b9c['plugins']['has']('LinkEditing'))return;const _0x4d3fe6=_0x4e0b9c['plugins']['get']('TrackChangesEditing'),_0x3ca90f=_0x4e0b9c['commands']['get']('link');_0x4d3fe6['enableDefaultAttributesIntegration']('link'),_0x4d3fe6['enableDefaultAttributesIntegration']('unlink'),_0x4d3fe6['registerInlineAttribute']('linkHref');for(const _0x2a7799 of _0x3ca90f['manualDecorators'])_0x4d3fe6['registerInlineAttribute'](_0x2a7799['id']),_0x4d3fe6['descriptionFactory']['registerAttributeLabel'](_0x2a7799['id'],'link\x20('+_0x2a7799['label']['toLowerCase']()+')');_0x4d3fe6['descriptionFactory']['registerDescriptionCallback'](_0x5e6cf5=>{if('attribute'!=_0x5e6cf5['type'])return;const {data:_0x43b060}=_0x5e6cf5;if(!_0x43b060||'linkHref'!=_0x43b060['key'])return;const _0x131071=_0x43b060['newValue'],_0x3b80e9=_0x4e0b9c['locale'];return{'type':'format','content':null==_0x131071?o(_0x3b80e9,'*Remove\x20link*'):o(_0x3b80e9,'*Set\x20link:*\x20%0','\x22'+_0x131071+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x276046=this['editor'],_0x2bab53=_0x276046['locale'];_0x276046['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x203f7b=>{if('formatInline'!=_0x203f7b['type'])return;const {data:_0x976251}=_0x203f7b;if(_0x976251){if('link'==_0x976251['commandName']){const _0x3e8a4e=_0x976251['commandParams'][0x0];return{'type':'format','content':o(_0x2bab53,'*Set\x20link:*\x20%0','\x22'+_0x3e8a4e+'\x22')};}return'unlink'==_0x976251['commandName']?{'type':'format','content':o(_0x2bab53,'*Remove\x20link*')}:void 0x0;}});}}class ht extends _0x28b250{['afterInit'](){const _0x552677=this['editor'],_0x47766b=_0x552677['locale'];if(!_0x552677['plugins']['has']('LegacyListEditing'))return;const _0x25af9e=_0x552677['plugins']['get']('TrackChangesEditing'),_0x37ece9=_0x552677['plugins']['has']('LegacyTodoListEditing');function _0x4df840(_0x4f945e){return()=>{const _0xf0b40b=_0x552677['model']['document']['selection'],_0x3198a0=_0x552677['commands']['get'](_0x4f945e);if(_0x3198a0['value'])return void _0x552677['execute']('paragraph',{});const _0x26c466=_0x4f945e['slice'](0x0,-0x4),_0x2bb33b=function(_0x1b8f65,_0x406ea6,_0x4e0a9f){let _0x3c9b71=Array['from'](_0x1b8f65)['filter'](_0x9df6d=>function(_0x33c216,_0x3ab4b3){return _0x3ab4b3['checkChild'](_0x33c216['parent'],'listItem')&&!_0x3ab4b3['isObject'](_0x33c216);}(_0x9df6d,_0x4e0a9f));_0x3c9b71=_0x3c9b71['filter'](_0x2024a6=>!_0x2024a6['is']('element','listItem')||_0x2024a6['getAttribute']('listType')!=_0x406ea6);const _0x7f9e35=new Set();for(const _0x1a91d7 of _0x3c9b71)_0x1a91d7['is']('element','listItem')?_0x7f9e35['add'](Le(_0x1a91d7)):_0x7f9e35['add'](_0x1a91d7);return Array['from'](_0x7f9e35);}(_0xf0b40b['getSelectedBlocks'](),_0x26c466,_0x552677['model']['schema']);_0x552677['model']['change'](()=>{for(const _0x5a99fb of _0x2bb33b)_0x25af9e['markBlockFormat'](_0x5a99fb,{'commandName':_0x4f945e,'commandParams':[{'forceValue':!_0x3198a0['value']}],'formatGroupId':'blockName'},Ee(_0x5a99fb));});};}function _0x5d1cd6(_0x468e52){return()=>{const _0x1f1937=function(_0x37f3b9){let _0x3cebfd=Array['from'](_0x37f3b9);const _0x3180f2=_0x3cebfd['findIndex'](_0x6776d9=>'listItem'!=_0x6776d9['name']);return _0x3180f2>-0x1&&(_0x3cebfd=_0x3cebfd['slice'](0x0,_0x3180f2)),_0x3cebfd;}(_0x552677['model']['document']['selection']['getSelectedBlocks']()),_0x3abfa6=_0x552677['model']['createRange'](_0x552677['model']['createPositionAt'](_0x1f1937[0x0],'before'),_0x552677['model']['createPositionAt'](_0x1f1937[_0x1f1937['length']-0x1],'end'));_0x552677['model']['change'](()=>{_0x25af9e['markBlockFormat'](_0x3abfa6,{'commandName':_0x468e52,'commandParams':[],'formatGroupId':'listIndent'},function(_0x470d80){const _0x172e29=new Set();for(const _0x5c889e of _0x470d80){let _0x46a8e5=_0x5c889e['nextSibling'];for(;_0x46a8e5&&_0x46a8e5['getAttribute']('listIndent')>_0x5c889e['getAttribute']('listIndent');)_0x172e29['add'](_0x46a8e5),_0x46a8e5=_0x46a8e5['nextSibling'];}return Array['from'](_0x172e29);}(_0x1f1937));});};}_0x25af9e['enableCommand']('numberedList',_0x4df840('numberedList')),_0x25af9e['enableCommand']('bulletedList',_0x4df840('bulletedList')),_0x37ece9&&_0x25af9e['enableCommand']('todoList',_0x4df840('todoList')),_0x25af9e['enableCommand']('indentList',_0x5d1cd6('indentList')),_0x25af9e['enableCommand']('outdentList',_0x5d1cd6('outdentList')),_0x37ece9&&_0x25af9e['enableCommand']('checkTodoList',()=>{const _0xdd6aad=_0x552677['commands']['get']('checkTodoList'),_0x40abb7=Array['from'](_0xdd6aad['_selectedElements']);_0x40abb7['filter'](_0x256ed9=>_0x256ed9['getAttribute']('todoListChecked')!=_0xdd6aad['value']),_0x552677['model']['change'](()=>{for(const _0x5d09e7 of _0x40abb7)_0x25af9e['markBlockFormat'](_0x5d09e7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xdd6aad['value']}]});});}),_0x25af9e['descriptionFactory']['registerElementLabel']('listItem',_0x555fbd=>o(_0x47766b,'ELEMENT_LIST_ITEM',_0x555fbd)),_0x25af9e['descriptionFactory']['registerDescriptionCallback'](_0x4029cc=>{if('formatBlock'!=_0x4029cc['type']&&'formatInline'!=_0x4029cc['type'])return;const {data:_0x58954e}=_0x4029cc;if(_0x58954e){if('numberedList'==_0x58954e['commandName']||'bulletedList'==_0x58954e['commandName']||'todoList'==_0x58954e['commandName'])switch(_0x58954e['commandName']['replace']('List','')){case'bulleted':return _0x598db1(o(_0x47766b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x598db1(o(_0x47766b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x598db1(o(_0x47766b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x58954e['commandName'])return{'type':'format','content':o(_0x47766b,'*Indent:*\x20%0',o(_0x47766b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x58954e['commandName'])return{'type':'format','content':o(_0x47766b,'*Outdent:*\x20%0',o(_0x47766b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x58954e['commandName'])return _0x58954e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47766b,'*Check\x20item*')}:{'type':'format','content':o(_0x47766b,'*Uncheck\x20item*')};}function _0x598db1(_0x50931c){return{'type':'format','content':o(_0x47766b,'*Change\x20to:*\x20%0',_0x50931c)};}});}}function Le(_0x1a4365){const _0x1bd777=_0x1a4365['getAttribute']('listIndent');if(0x0==_0x1bd777)return _0x1a4365;let _0x109875=_0x1a4365;for(;_0x1a4365['previousSibling']&&_0x1a4365['previousSibling']['is']('element','listItem');){const _0x9a574e=_0x1a4365['previousSibling']['getAttribute']('listIndent');if(_0x9a574e==_0x1bd777)_0x109875=_0x1a4365['previousSibling'];else{if(_0x9a574e<_0x1bd777)break;}_0x1a4365=_0x1a4365['previousSibling'];}return _0x109875;}function Ee(_0x48b1b6){const _0x424acf=[];if(_0x48b1b6['is']('element','listItem')&&_0x48b1b6['getAttribute']('listIndent')>0x0){let _0x24f02b=_0x48b1b6['nextSibling'];for(;_0x24f02b&&'listItem'==_0x24f02b['name']&&_0x24f02b['getAttribute']('listIndent')==_0x48b1b6['getAttribute']('listIndent');)_0x424acf['push'](_0x24f02b),_0x24f02b=_0x24f02b['nextSibling'];}return _0x424acf;}class gt extends _0x28b250{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x981be4=this['editor']['config']['get']('list.properties'),_0x1017b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x981be4['styles']&&_0x1017b8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x981be4['reversed']&&_0x1017b8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x981be4['startIndex']&&_0x1017b8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1017b8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x131727,_0x30099e={}){const _0x1e18c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb41226=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1e18c4['markMultiRangeBlockFormat'](_0xb41226,{'commandName':'listStyle','commandParams':[{'type':_0x30099e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x38fc66,_0x17c60d={}){const _0x2cc512=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28a624=this['_getSuggestionBlocks'](_0x23e525=>_0x23e525['is']('element','listItem')&&'numbered'===_0x23e525['getAttribute']('listType'));if(_0x28a624['length']<0x1)return;const _0x2ff5b9=_0x28a624['map'](_0x4c53e7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c53e7,'before'),this['editor']['model']['createPositionAt'](_0x4c53e7,0x0)));this['editor']['model']['change'](()=>{_0x2cc512['markMultiRangeBlockFormat'](_0x2ff5b9,{'commandName':'listReversed','commandParams':[{'reversed':_0x17c60d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5cfaaf,_0x20baa1={}){const _0x274be9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4853ea=this['_getSuggestionBlocks'](_0x1be80e=>_0x1be80e['is']('element','listItem')&&'numbered'===_0x1be80e['getAttribute']('listType'));if(_0x4853ea['length']<0x1)return;const _0x1e1422=_0x4853ea['map'](_0x26d0ae=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26d0ae,'before'),this['editor']['model']['createPositionAt'](_0x26d0ae,0x0)));this['editor']['model']['change'](()=>{_0x274be9['markMultiRangeBlockFormat'](_0x1e1422,{'commandName':'listStart','commandParams':[{'startIndex':_0x20baa1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x309282){if('formatBlock'!=_0x309282['type']&&'formatInline'!=_0x309282['type'])return;const _0x349e79=this['editor']['locale'],{data:_0x41265b}=_0x309282;if(!_0x41265b)return;let _0xb47a75,_0x1aac1e;switch(_0x41265b['commandName']){case'listStyle':_0xb47a75='*Change\x20to:*\x20%0',_0x1aac1e={'type':'format','content':o(_0x349e79,_0xb47a75,o(_0x349e79,this['_getTranslationKeyForListStyle'](_0x41265b['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb47a75=_0x41265b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1aac1e={'type':'format','content':o(_0x349e79,_0xb47a75)};break;case'listStart':_0xb47a75='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1aac1e={'type':'format','content':o(_0x349e79,_0xb47a75,_0x41265b['commandParams'][0x0]['startIndex'])};}return _0x1aac1e;}['_getSuggestionBlocksForListStyle'](){const _0x1acb9b=this['editor']['plugins']['get']('LegacyListUtils');let _0x155c10=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x155c10[0x0]?.['is']('element','listItem')&&_0x155c10['unshift'](..._0x1acb9b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x155c10[_0x155c10['length']-0x1]?.['is']('element','listItem')&&_0x155c10['push'](..._0x1acb9b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x155c10=[...new Set(_0x155c10)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x155c10=_0x155c10['filter'](_0x33b8e6=>_0x33b8e6['is']('element','listItem'))),_0x155c10;}['_getSuggestionBlocks'](_0x29a594){const _0xd4d36=this['editor']['plugins']['get']('LegacyListUtils');let _0x4acb50=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x29a594)['map'](_0x502eab=>{const _0xc0bbae=this['editor']['model']['createPositionAt'](_0x502eab,0x0);return[..._0xd4d36['getSiblingNodes'](_0xc0bbae,'backward'),..._0xd4d36['getSiblingNodes'](_0xc0bbae,'forward')];})['flat']();return _0x4acb50=[...new Set(_0x4acb50)],_0x4acb50;}['_getTranslationKeyForListStyle'](_0x582c1e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x582c1e)||'default')['toUpperCase']()+'_LIST_'+_0x582c1e['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x28b250{['afterInit'](){const _0xaaa6b6=this['editor'];if(!_0xaaa6b6['plugins']['has']('MediaEmbedEditing'))return;const _0x391df4=_0xaaa6b6['plugins']['get']('TrackChangesEditing'),_0xe1f974=_0xaaa6b6['locale'];_0x391df4['enableCommand']('mediaEmbed'),_0x391df4['descriptionFactory']['registerElementLabel']('media',_0x525633=>o(_0xe1f974,'ELEMENT_MEDIA',_0x525633)),_0xaaa6b6['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x8d4d0c,{writer:_0x5c2df8,options:_0x577c7f})=>{if(_0x577c7f['showSuggestionHighlights'])return _0x5c2df8['createEmptyElement']('div');},'converterPriority':'high'}),_0xaaa6b6['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3cc081,_0x312808,_0x4bfdfb)=>{_0x4bfdfb['options']['showSuggestionHighlights']&&_0x3cc081['stop']();},{'priority':'high'});}}class dt extends _0x28b250{['afterInit'](){const _0x1063c5=this['editor'];_0x1063c5['plugins']['has']('MentionEditing')&&_0x1063c5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class mt extends _0x28b250{['afterInit'](){const _0x5c9032=this['editor'];if(!_0x5c9032['plugins']['has']('MergeFieldsEditing'))return;const _0x66d5a8=_0x5c9032['plugins']['get']('TrackChangesEditing'),_0xff0efc=_0x5c9032['locale'];_0x66d5a8['enableCommand']('insertMergeField'),_0x66d5a8['enableCommand']('insertMergeFieldBlock'),_0x66d5a8['enableCommand']('insertMergeFieldImage'),_0x66d5a8['descriptionFactory']['registerElementLabel']('mergeField',_0xe9312a=>o(_0xff0efc,'ELEMENT_MERGE_FIELD',_0xe9312a)),_0x66d5a8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x303b4e=>o(_0xff0efc,'ELEMENT_MERGE_FIELD',_0x303b4e)),_0x66d5a8['descriptionFactory']['registerDescriptionCallback'](_0x2ee1bc=>{if('insertion'!=_0x2ee1bc['type']&&'deletion'!=_0x2ee1bc['type'])return;const _0x5cf787=_0x2ee1bc['getContainedElement']();if(null==_0x5cf787)return;const _0x161cc9=_0x5c9032['plugins']['get']('MergeFieldsEditing');let _0x4a4e77;switch(_0x161cc9['getMergeFieldType'](_0x5cf787)){case null:return;case'image':{const _0x147235=_0x161cc9['unwrapAffixes'](_0x5cf787['getAttribute']('src'));_0x4a4e77=_0x161cc9['getLabel'](_0x147235)||_0x147235;break;}default:{const _0x1932e7=_0x5cf787['getAttribute']('id');_0x4a4e77=_0x161cc9['getLabel'](_0x1932e7)||_0x1932e7;break;}}return'insertion'==_0x2ee1bc['type']?{'type':'insertion','content':o(_0xff0efc,'*Insert:*\x20%0','\x22'+_0x4a4e77+'\x22\x20'+o(_0xff0efc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xff0efc,'*Remove:*\x20%0','\x22'+_0x4a4e77+'\x22\x20'+o(_0xff0efc,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x28b250{['afterInit'](){const _0x2c2c40=this['editor'],_0xab3db6=_0x2c2c40['plugins']['get']('TrackChangesEditing');_0x2c2c40['plugins']['has']('MultiLevelList')&&(_0xab3db6['enableDefaultAttributesIntegration']('multiLevelList'),_0xab3db6['registerBlockAttribute']('listMarkerStyle'),_0xab3db6['descriptionFactory']['registerDescriptionCallback'](_0x400e4a=>this['handleDescriptions'](_0x400e4a)));}['handleDescriptions'](_0x4d424b){const _0x559b12=this['editor']['locale'],{data:_0xc3211b}=_0x4d424b,_0x398cfa={'type':'format','content':''};if(_0xc3211b&&'listMarkerStyle'==_0xc3211b['key']){if(!_0xc3211b['oldValue'])return{'type':'format','content':o(_0x559b12,'*Set\x20format:*\x20%0',o(_0x559b12,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc3211b['newValue']+')'};if(!_0xc3211b['newValue']){let _0x14c7ef=_0x4d424b['head'];for(;_0x14c7ef;){if(_0x14c7ef['data']&&'listType'==_0x14c7ef['data']['key']&&_0x14c7ef['data']['newValue'])return _0x398cfa;_0x14c7ef=_0x14c7ef['next'];}return{'type':'format','content':o(_0x559b12,'*Remove\x20format:*\x20%0',o(_0x559b12,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc3211b['oldValue']+')'};}}}}class kt extends _0x28b250{['afterInit'](){const _0x30d9be=this['editor'];if(!_0x30d9be['plugins']['has']('PageBreakEditing'))return;_0x30d9be['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1dde8b=_0x30d9be['plugins']['get']('TrackChangesEditing'),_0x3b0ad4=_0x30d9be['locale'];_0x1dde8b['descriptionFactory']['registerElementLabel']('pageBreak',_0x51fe37=>o(_0x3b0ad4,'ELEMENT_PAGE_BREAK',_0x51fe37));}}class wt extends _0x28b250{['afterInit'](){const _0x18143b=this['editor'];if(!_0x18143b['plugins']['has']('Paragraph'))return;const _0x4b6a46=_0x18143b['locale'],_0x2cdbd6=_0x18143b['plugins']['get']('TrackChangesEditing');_0x2cdbd6['descriptionFactory']['registerElementLabel']('paragraph',_0x3c9c34=>o(_0x4b6a46,'ELEMENT_PARAGRAPH',_0x3c9c34)),_0x2cdbd6['enableDefaultAttributesIntegration']('paragraph'),_0x2cdbd6['enableCommand']('insertParagraph'),_0x18143b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x18143b),{'priority':'highest'}),_0x18143b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xcdf140,_0x13b969,_0x54ff21)=>{_0x54ff21['options']['showSuggestionHighlights']&&nr(_0x18143b,{'showActiveMarker':!0x1})(_0xcdf140,_0x13b969,_0x54ff21);},{'priority':'highest'});const _0x2e473d=_0x2cdbd6['descriptionFactory'];_0x2e473d['registerDescriptionCallback'](_0x2c3f35=>{if('insertion'!==_0x2c3f35['type'])return;const {start:_0x1195eb,end:_0x3cfe6e}=_0x2c3f35['getFirstRange']();if(!_0x1195eb['isTouching'](_0x3cfe6e)||!_0x1195eb['nodeAfter'])return;const _0x5045d5=_0x18143b['model']['schema'],_0x38f8f2=_0x1195eb['nodeAfter'];return _0x5045d5['isBlock'](_0x38f8f2)&&!_0x5045d5['isLimit'](_0x38f8f2)&&_0x5045d5['checkChild'](_0x38f8f2,'$text')?{'type':'insertion','content':o(_0x4b6a46,'*Insert:*\x20%0',_0x2e473d['getItemLabel'](_0x38f8f2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x74ea76=this['editor'],_0x4084d1=_0x74ea76['locale'];_0x74ea76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30748d=>{if('formatBlock'!=_0x30748d['type'])return;const {data:_0x3c260e}=_0x30748d;return _0x3c260e&&'paragraph'==_0x3c260e['commandName']?{'type':'format','content':o(_0x4084d1,'*Change\x20to:*\x20%0',o(_0x4084d1,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5e1c60,{showActiveMarker:_0x1e17f1=!0x0}={}){return(_0x1dddbd,_0x56f1c1,_0x1ea162)=>{const _0x39a759=_0x5e1c60['plugins']['get']('TrackChangesEditing'),_0x26c47f=_0x56f1c1['markerRange']['start'],_0x45820f=_0x56f1c1['markerRange']['end'],_0x114c3f=_0x5e1c60['model']['schema'];if(!_0x26c47f['isTouching'](_0x45820f)||!_0x26c47f['nodeAfter'])return;const _0xf2362b=_0x26c47f['nodeAfter'];if(_0x114c3f['isBlock'](_0xf2362b)&&!_0x114c3f['isLimit'](_0xf2362b)&&_0x114c3f['checkChild'](_0xf2362b,'$text')){if(!_0x1ea162['consumable']['consume'](_0x56f1c1['markerRange'],_0x1dddbd['name']))return;const {id:_0x4d0a7d,authorId:_0x50afbd}=_0x39a759['_splitMarkerName'](_0x56f1c1['markerName']),_0x7d8785=_0x1ea162['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4d0a7d,'data-author-id':_0x50afbd}),_0x1f9d02=_0x1ea162['mapper']['toViewPosition'](_0x45820f);_0x1e17f1&&_0x39a759['activeMarkers']['includes'](_0x56f1c1['markerName'])&&_0x1ea162['writer']['addClass']('ck-suggestion-marker--active',_0x7d8785),_0x1ea162['writer']['insert'](_0x1f9d02,_0x7d8785),_0x1ea162['mapper']['bindElementToMarker'](_0x7d8785,_0x56f1c1['markerName']);}};}class bt extends _0x28b250{['afterInit'](){const _0x216a42=this['editor'];_0x216a42['commands']['get']('replaceSource')&&_0x216a42['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class yt extends _0x28b250{['afterInit'](){const _0x344e3c=this['editor'];if(!_0x344e3c['plugins']['has']('RemoveFormatEditing'))return;_0x344e3c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1966a5=this['editor'];_0x1966a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x504e78=>{if('formatBlock'!=_0x504e78['type']&&'formatInline'!=_0x504e78['type'])return;const {data:_0x192cc5}=_0x504e78;return _0x192cc5&&'removeFormat'==_0x192cc5['commandName']?{'type':'format','content':o(_0x1966a5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class St extends _0x28b250{['afterInit'](){const _0x597d2a=this['editor'];if(!_0x597d2a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5b54f4=_0x597d2a['plugins']['get']('TrackChangesEditing');_0x5b54f4['enableCommand']('goToPreviousRestrictedEditingException'),_0x5b54f4['enableCommand']('goToNextRestrictedEditingException');const _0x34f250=_0x597d2a['plugins']['get']('RestrictedEditingModeEditing');_0x34f250['enableCommand']('trackChanges'),_0x34f250['enableCommand']('acceptSuggestion'),_0x34f250['enableCommand']('discardSuggestion'),_0x34f250['enableCommand']('acceptAllSuggestions'),_0x34f250['enableCommand']('discardAllSuggestions'),_0x34f250['enableCommand']('acceptSelectedSuggestions'),_0x34f250['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x28b250{['afterInit'](){const _0x3100f8=this['editor'];if(!_0x3100f8['plugins']['has']('ShiftEnter'))return;const _0x223b70=_0x3100f8['plugins']['get']('TrackChangesEditing');_0x223b70['enableCommand']('shiftEnter'),_0x3100f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3100f8),{'priority':'high'}),_0x3100f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3100f8),{'priority':'high'}),_0x3100f8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x9240f4,_0x48f82c,_0x4f4486)=>{_0x4f4486['options']['showSuggestionHighlights']&&je(_0x3100f8,{'showActiveMarker':!0x1})(_0x9240f4,_0x48f82c,_0x4f4486);}),_0x223b70['descriptionFactory']['registerElementLabel']('softBreak',_0xa9e4ae=>o(_0x3100f8['locale'],'ELEMENT_LINE_BREAK',_0xa9e4ae));}}function je(_0x1bcc7c,{showActiveMarker:_0x39ff01=!0x0}={}){return(_0x187dc1,_0x451538,_0x1989bd)=>{const _0x2d8c83=_0x1bcc7c['plugins']['get']('TrackChangesEditing');if(!_0x1989bd['consumable']['test'](_0x451538['markerRange'],_0x187dc1['name']))return;const _0x1feb7c=_0x1bcc7c['model'];for(const _0x36936b of _0x451538['markerRange']['getItems']()){if(!_0x36936b['is']('element','softBreak'))continue;const _0x562250='deletion'==_0x451538['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2fd6fc,authorId:_0x1bfe05}=_0x2d8c83['_splitMarkerName'](_0x451538['markerName']),_0x3cf13f=_0x1989bd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x562250,'data-suggestion':_0x2fd6fc,'data-author-id':_0x1bfe05}),_0x3b533c=_0x1989bd['mapper']['toViewPosition'](_0x1feb7c['createPositionBefore'](_0x36936b));_0x39ff01&&_0x2d8c83['activeMarkers']['includes'](_0x451538['markerName'])&&_0x1989bd['writer']['addClass']('ck-suggestion-marker--active',_0x3cf13f),_0x1989bd['writer']['insert'](_0x3b533c,_0x3cf13f),_0x1989bd['mapper']['bindElementToMarker'](_0x3cf13f,_0x451538['markerName']);}};}class It extends _0x28b250{['afterInit'](){const _0x305571=this['editor'],_0x233c9d=_0x305571['model'],_0x4e0db0=_0x305571['locale'];if(!_0x305571['plugins']['has']('StandardEditingModeEditing'))return;const _0x52c688=_0x305571['plugins']['get']('TrackChangesEditing'),_0x9b6fb4='restrictedEditingException',_0xf2989e=_0x305571['commands']['get'](_0x9b6fb4);_0x52c688['enableCommand'](_0x9b6fb4,(_0x27b667,_0x38a8a3={})=>{const _0x30bf2c=_0x233c9d['document']['selection'];if(_0x30bf2c['isCollapsed'])return void _0x27b667(_0x38a8a3);const _0x3b2de2=void 0x0!==_0x38a8a3['forceValue']?_0x38a8a3['forceValue']:!_0xf2989e['value'];_0x233c9d['change'](()=>{const _0x4b4aee=Array['from'](_0x30bf2c['getRanges']());for(const _0x1d5a1e of _0x4b4aee){const _0x437c6e=_0x3b2de2?[_0x1d5a1e]:io(_0x9b6fb4,_0x1d5a1e,_0x233c9d);for(const _0x20e424 of _0x437c6e)_0x52c688['markInlineFormat'](_0x20e424,{'commandName':_0x9b6fb4,'commandParams':[{'forceValue':_0x3b2de2}]});}});}),_0x52c688['descriptionFactory']['registerDescriptionCallback'](_0x18aafc=>{if('formatBlock'!=_0x18aafc['type']&&'formatInline'!=_0x18aafc['type'])return;const {data:_0x260731}=_0x18aafc;return _0x260731&&_0x260731['commandName']==_0x9b6fb4?_0x260731['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e0db0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4e0db0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x28b250{['afterInit'](){const _0x36b9d3=this['editor'];if(!_0x36b9d3['plugins']['has']('Style')||!_0x36b9d3['plugins']['has']('DataSchema'))return;const _0x3de6d1=_0x36b9d3['plugins']['get']('TrackChangesEditing'),_0x590bf5=_0x36b9d3['locale'],_0x286bc0=_0x36b9d3['config']['get']('style')||{},_0x1eb466=_0x36b9d3['plugins']['get']('GeneralHtmlSupport'),_0x39d6c4=_0x36b9d3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x36b9d3['plugins']['get']('DataSchema'),_0x286bc0['definitions']);_0x3de6d1['enableDefaultAttributesIntegration']('style');const _0x305e39=new Set();for(const _0x32c757 of _0x39d6c4['block']){const _0xfd34ab=_0x1eb466['getGhsAttributeNameForElement'](_0x32c757['element']);_0x305e39['add'](_0xfd34ab);}const _0x1ad16c=new Set();for(const _0x46fe50 of _0x39d6c4['inline']){const _0x36b84f=_0x1eb466['getGhsAttributeNameForElement'](_0x46fe50['element']);_0x1ad16c['add'](_0x36b84f);for(const _0x52df80 of _0x46fe50['ghsAttributes'])_0x1ad16c['add'](_0x52df80);}for(const _0xefc101 of _0x305e39)_0x3de6d1['registerBlockAttribute'](_0xefc101),_0x3de6d1['descriptionFactory']['registerAttributeLabel'](_0xefc101,o(_0x590bf5,'FORMAT_STYLE'));for(const _0x35aa82 of _0x1ad16c)_0x3de6d1['registerInlineAttribute'](_0x35aa82),_0x3de6d1['descriptionFactory']['registerAttributeLabel'](_0x35aa82,o(_0x590bf5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e9f3b=this['editor'],_0x5c63b5=_0x4e9f3b['locale'];_0x4e9f3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e8601=>{if('formatBlock'!=_0x3e8601['type']&&'formatInline'!=_0x3e8601['type'])return;const {data:_0xf58859}=_0x3e8601;return _0xf58859&&'style'===_0xf58859['commandName']?_0xf58859['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c63b5,'*Set\x20format:*\x20%0',_0xf58859['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5c63b5,'*Remove\x20format:*\x20%0',_0xf58859['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x28b250{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4b7e75){super(_0x4b7e75),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3f8d5b=this['editor'],_0x500155=_0x3f8d5b['model']['document']['selection'];if(!_0x3f8d5b['plugins']['has']('TableEditing'))return;const _0x2bee76=_0x3f8d5b['locale'],_0x40e363=_0x3f8d5b['plugins']['get']('TrackChangesEditing'),_0x5c661f=_0x3f8d5b['plugins']['get']('TableUtils');_0x40e363['descriptionFactory']['registerElementLabel']('table',_0x319927=>o(_0x2bee76,'ELEMENT_TABLE',_0x319927)),this['_setupColumnsRowsFixing'](),_0x40e363['enableCommand']('insertTable'),_0x40e363['enableCommand']('selectTableRow'),_0x40e363['enableCommand']('selectTableColumn');for(const _0x38186a of['insertTableRowAbove','insertTableRowBelow']){const _0x488416=_0x3f8d5b['commands']['get'](_0x38186a);_0x40e363['enableCommand'](_0x38186a,_0x9d5723=>{_0x3f8d5b['model']['change'](_0x5936ab=>{_0x9d5723();const _0x4ec13b='above'===_0x488416['order'],_0xab4d71=_0x5c661f['getSelectionAffectedTableCells'](_0x500155),_0x5e49eb=_0x5c661f['getRowIndexes'](_0xab4d71),_0x562da3=_0x4ec13b?_0x5e49eb['first']-0x1:_0x5e49eb['last']+0x1,_0x55b8dc=_0xab4d71[0x0]['findAncestor']('table'),_0x3fe33a=_0x5c661f['createTableWalker'](_0x55b8dc,{'startRow':_0x562da3,'endRow':_0x562da3}),_0x346532=Array['from'](_0x3fe33a)['map'](_0x255c32=>_0x5936ab['createRangeOn'](_0x255c32['cell']));_0x40e363['markMultiRangeInsertion'](_0x346532,'tableRow');});});}for(const _0x213470 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4fa693=_0x3f8d5b['commands']['get'](_0x213470);_0x40e363['enableCommand'](_0x213470,_0x33ff28=>{_0x3f8d5b['model']['change'](_0x47d5fa=>{_0x33ff28();const _0x4b2fc2='left'===_0x4fa693['order'],_0xd00473=_0x5c661f['getSelectionAffectedTableCells'](_0x500155),_0x2b1219=_0x5c661f['getColumnIndexes'](_0xd00473),_0x403748=_0x4b2fc2?_0x2b1219['first']-0x1:_0x2b1219['last']+0x1,_0x55bf8f=_0xd00473[0x0]['findAncestor']('table'),_0x256d45=_0x5c661f['createTableWalker'](_0x55bf8f,{'startRow':0x0,'column':_0x403748,'includeAllSlots':!0x1}),_0xae357d=Array['from'](_0x256d45)['map'](_0x5dd0d4=>_0x47d5fa['createRangeOn'](_0x5dd0d4['cell']));_0x40e363['markMultiRangeInsertion'](_0xae357d,'tableColumn');});});}for(const _0x587235 of['removeTableRow','removeTableColumn']){const _0x54916a=_0x587235['substr'](0xb),_0x4d8a40=_0x54916a['toLowerCase'](),_0x42c43e=_0x4d8a40['substr'](0x0,0x3)+'span',_0x3eaadb='table'+_0x54916a,_0x4858ca='min'+_0x54916a,_0x4b2e6b='max'+_0x54916a;_0x40e363['enableCommand'](_0x587235,()=>{_0x3f8d5b['model']['change'](_0x127d7f=>{const _0x5d450f=_0x5c661f['getSelectionAffectedTableCells'](_0x500155),_0x5b93e8=_0x5d450f[0x0]['findAncestor']('table');let _0x371b1c;if('removeTableRow'==_0x587235){const _0x132ba4=_0x5c661f['getRowIndexes'](_0x5d450f);_0x371b1c={'startRow':_0x132ba4['first'],'endRow':_0x132ba4['last'],'includeAllSlots':!0x0};}else{const _0x4521a3=_0x5c661f['getColumnIndexes'](_0x5d450f);_0x371b1c={'startColumn':_0x4521a3['first'],'endColumn':_0x4521a3['last'],'includeAllSlots':!0x0};}const _0x414e54=_0x5c661f['createTableWalker'](_0x5b93e8,_0x371b1c),_0x104bfe=Array['from'](_0x414e54)['map'](({cell:_0x4d5f92})=>_0x4d5f92),_0x586237=Ne(_0x104bfe['filter'](_0x383af3=>_0x383af3['hasAttribute'](_0x42c43e))),_0x120530=Ne(_0x104bfe['filter'](_0xdbcaa5=>!_0xdbcaa5['hasAttribute'](_0x42c43e)))['map'](_0x502952=>_0x127d7f['createRangeOn'](_0x502952)),_0x2e8575=_0x40e363['markMultiRangeDeletion'](_0x120530,_0x3eaadb);if(_0x2e8575&&('tableRow'==_0x2e8575['subType']||'tableColumn'==_0x2e8575['subType'])){const _0x5c8c9d=this['_getSuggestionCoords'](_0x2e8575);for(const _0x3f75f7 of _0x586237){const _0x156968=_0x127d7f['createRangeOn'](_0x3f75f7),_0x11a0cc=_0x5c661f['getCellLocation'](_0x3f75f7),_0xd51949=_0x3f75f7['getAttribute'](_0x42c43e)-0x1,_0x32d1f0=_0x5c8c9d[_0x4858ca],_0x260afa=_0x5c8c9d[_0x4b2e6b];_0x32d1f0<=_0x11a0cc[_0x4d8a40]&&_0x11a0cc[_0x4d8a40]+_0xd51949<=_0x260afa&&_0x2e8575['addRange'](_0x156968);}}});});}function _0x347770(_0x43b11b){const _0x2c2f84=Array['from'](_0x500155['getRanges']())['map'](_0x54e170=>_0xc2db3f['fromRange'](_0x54e170));_0x3f8d5b['model']['change'](_0x72d225=>{const _0x5ce0c2=_0x72d225['batch'];_0x43b11b=_0x43b11b['filter'](_0x666240=>'$graveyard'!=_0x666240['root']['rootName']),_0x72d225['setSelection'](_0x43b11b),_0x3f8d5b['commands']['get']('removeTableRow')['refresh'](),_0x3f8d5b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3f8d5b['model']['enqueueChange'](()=>{_0x3f8d5b['model']['enqueueChange'](_0x5ce0c2,_0x27b86d=>{const _0x21e7e7=_0x2c2f84['filter'](_0x137fa6=>'$graveyard'!=_0x137fa6['root']['rootName']);_0x21e7e7['length']>0x0&&_0x27b86d['setSelection'](_0x21e7e7);for(const _0x3b90f6 of _0x2c2f84)_0x3b90f6['detach']();});});});}function _0x334299(_0x391d36){_0x3f8d5b['model']['change'](_0x23ed2e=>{const _0x26397a=Array['from'](_0x500155['getRanges']())['map'](_0x25f269=>_0xc2db3f['fromRange'](_0x25f269)),_0xd942e3=[];for(const _0x402af3 of _0x391d36)for(const _0x301adf of _0x402af3['getItems']({'shallow':!0x0}))_0xd942e3['push'](_0x301adf);for(const _0x2862d2 of _0xd942e3)'$graveyard'!=_0x2862d2['root']['rootName']&&(_0x23ed2e['setSelection'](_0x23ed2e['createPositionAt'](_0x2862d2,0x0)),_0x3f8d5b['commands']['get']('removeTableColumn')['refresh'](),_0x3f8d5b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x48950c=_0x26397a['filter'](_0x51cdfc=>'$graveyard'!=_0x51cdfc['root']['rootName']);_0x48950c['length']>0x0&&_0x23ed2e['setSelection'](_0x48950c);for(const _0x439f47 of _0x26397a)_0x439f47['detach']();});}function _0x4e9f53(_0x492105,_0x2cdec3){return _0x2cdec3['every'](_0x18f102=>_0x492105['some'](_0x468628=>_0x468628['end']['isEqual'](_0x18f102['start'])||_0x18f102['end']['isEqual'](_0x468628['start'])));}function _0x3276a2(_0x8055ff,_0x2ce879){return!_0x8055ff['some'](_0x352ae7=>_0x2ce879['some'](_0x329714=>_0x352ae7['isIntersecting'](_0x329714)))&&_0x8055ff['some'](_0x28a1dc=>_0x2ce879['some'](_0x51a73a=>_0x28a1dc['end']['isTouching'](_0x51a73a['start'])));}_0x3f8d5b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2337e3,_0x4c0a4b,_0x4e0b6b)=>{if(!_0x4e0b6b['options']['showSuggestionHighlights'])return;const _0x359a38=_0x4c0a4b['item'];if(!_0x359a38||!_0x359a38['is']('element','tableCell'))return;const _0x15bae3=_0x4e0b6b['mapper']['toViewElement'](_0x359a38);if(_0x15bae3){const {id:_0x2deb77,authorId:_0x589c19}=_0x40e363['_splitMarkerName'](_0x4c0a4b['markerName']);_0x11d210(_0x15bae3,_0x4e0b6b['writer'],(_0x16da4c,_0x498dee,_0x5ec999)=>{_0x5ec999['addClass'](_0x384868(_0x498dee['classes']),_0x16da4c),_0x5ec999['setAttribute']('data-suggestion-id',_0x2deb77,_0x16da4c),_0x5ec999['setAttribute']('data-author-id',_0x589c19,_0x16da4c);},(_0x444714,_0x2d10af,_0x492a41)=>{_0x492a41['removeClass'](_0x384868(_0x2d10af['classes']),_0x444714),_0x492a41['removeAttribute']('data-suggestion-id',_0x444714),_0x492a41['removeAttribute']('data-author-id',_0x444714);});}},{'priority':'highest'}),_0x40e363['descriptionFactory']['registerDescriptionCallback'](_0x222c94=>{if('insertion'!=_0x222c94['type']&&'deletion'!=_0x222c94['type'])return;const _0xd335c0=_0x222c94['getContainedElement']();if(null!=_0xd335c0&&_0xd335c0['is']('element','table')){if('insertion'==_0x222c94['type']){const _0x539521=_0x222c94['getItems']()['filter'](_0x1c3b40=>_0x1c3b40['is']('$textProxy'))['map'](_0x49f2c1=>_0x49f2c1['data']);if(_0x539521['length'])return{'type':'insertion','content':o(_0x2bee76,'*Insert:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x539521['join']('\x20')+'\x22'))};}if('deletion'==_0x222c94['type']){const _0x558479=_0x222c94['getItems']()['filter'](_0x1b76f8=>_0x1b76f8['is']('$textProxy'))['map'](_0x287a5f=>_0x287a5f['data']);if(_0x558479['length'])return{'type':'deletion','content':o(_0x2bee76,'*Remove:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x558479['join']('\x20')+'\x22'))};}}}),_0x40e363['descriptionFactory']['registerDescriptionCallback'](_0x57e423=>{if('tableRow'==_0x57e423['subType']){const _0xf4d61d=_0x57e423['getItems']()['filter'](_0x117589=>_0x117589['is']('$textProxy'))['map'](_0x412826=>_0x412826['data']),_0x3a08c1=this['_getSuggestionCoords'](_0x57e423),_0x14f061=_0x3a08c1['maxRow']-_0x3a08c1['minRow']+0x1;if('insertion'==_0x57e423['type'])return _0xf4d61d['length']?{'type':'insertion','content':o(_0x2bee76,'*Insert:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14f061,'\x22'+_0xf4d61d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2bee76,'*Insert:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_ROW',_0x14f061))};if('deletion'==_0x57e423['type'])return _0xf4d61d['length']?{'type':'deletion','content':o(_0x2bee76,'*Remove:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14f061,'\x22'+_0xf4d61d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2bee76,'*Remove:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_ROW',_0x14f061))};}if('tableColumn'==_0x57e423['subType']){const _0x511939=_0x57e423['getItems']()['filter'](_0x562b30=>_0x562b30['is']('$textProxy'))['map'](_0x510f53=>_0x510f53['data']),_0x79095e=this['_getSuggestionCoords'](_0x57e423),_0x14f81d=_0x79095e['maxColumn']-_0x79095e['minColumn']+0x1;if('insertion'==_0x57e423['type'])return _0x511939['length']?{'type':'insertion','content':o(_0x2bee76,'*Insert:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x14f81d,'\x22'+_0x511939['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2bee76,'*Insert:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_COLUMN',_0x14f81d))};if('deletion'==_0x57e423['type'])return _0x511939['length']?{'type':'deletion','content':o(_0x2bee76,'*Remove:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x14f81d,'\x22'+_0x511939['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2bee76,'*Remove:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_COLUMN',_0x14f81d))};}}),_0x40e363['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x347770),_0x40e363['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x347770),_0x40e363['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x334299),_0x40e363['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x334299),_0x40e363['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4e9f53),_0x40e363['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4e9f53),_0x40e363['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3276a2),_0x40e363['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3276a2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x366750=this['editor'],_0x30ba06=_0x366750['model']['document']['selection'];return(_0x46a943,_0x3d8e68)=>{_0x366750['model']['change'](_0x3174b7=>{const {commandName:_0xb52239,commandParams:_0x4eddea}=_0x3d8e68;let _0x565371=_0x46a943[0x0]['end']['nodeBefore'];_0x4eddea&&_0x4eddea[0x0]&&!0x1===_0x4eddea[0x0]['forceValue']&&(_0x565371=_0x46a943[0x0]['start']['nodeAfter']);const _0x508390=_0x3174b7['createRangeIn'](_0x565371);if('$graveyard'==_0x508390['root']['rootName'])return;const _0x17158f=Array['from'](_0x30ba06['getRanges']())['map'](_0x12b8df=>_0xc2db3f['fromRange'](_0x12b8df));_0x3174b7['setSelection'](_0x508390),_0x366750['commands']['get'](_0xb52239)['refresh'](),_0x4eddea['push']({'forceDefaultExecution':!0x0}),_0x366750['execute'](_0xb52239,..._0x4eddea);const _0x1e03c8=_0x17158f['filter'](_0x515127=>'$graveyard'!=_0x515127['root']['rootName']);_0x1e03c8['length']>0x0&&_0x3174b7['setSelection'](_0x1e03c8);for(const _0x585a51 of _0x17158f)_0x585a51['detach']();});};}['_getCoordsForCells'](_0x446b32){const _0x3ba89b=this['editor']['plugins']['get']('TableUtils');let _0xf53cda=Number['MAX_SAFE_INTEGER'],_0x57337c=Number['MIN_SAFE_INTEGER'],_0x27eef0=Number['MAX_SAFE_INTEGER'],_0x1cef1a=Number['MIN_SAFE_INTEGER'];for(const _0x5af5d0 of _0x446b32){if('$graveyard'==_0x5af5d0['root']['rootName'])continue;const {row:_0x587274,column:_0x1c2fb3}=_0x3ba89b['getCellLocation'](_0x5af5d0),_0x4feb4b=_0x5af5d0['hasAttribute']('rowspan')?_0x5af5d0['getAttribute']('rowspan')-0x1:0x0,_0x244889=_0x5af5d0['hasAttribute']('colspan')?_0x5af5d0['getAttribute']('colspan')-0x1:0x0;_0xf53cda=_0x587274<_0xf53cda?_0x587274:_0xf53cda,_0x57337c=_0x587274+_0x4feb4b>_0x57337c?_0x587274+_0x4feb4b:_0x57337c,_0x27eef0=_0x1c2fb3<_0x27eef0?_0x1c2fb3:_0x27eef0,_0x1cef1a=_0x1c2fb3+_0x244889>_0x1cef1a?_0x1c2fb3+_0x244889:_0x1cef1a;}return{'minRow':_0xf53cda,'maxRow':_0x57337c,'minColumn':_0x27eef0,'maxColumn':_0x1cef1a};}['_setupColumnsRowsFixing'](){const _0x32b238=this['editor'],_0x2674ae=_0x32b238['plugins']['get']('TrackChangesEditing'),_0x4d7659=_0x32b238['plugins']['get']('TableUtils');_0x32b238['model']['document']['on']('change:data',()=>{const _0x40f50c=Array['from'](_0x32b238['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7d21c9,data:_0x165fbc}of _0x40f50c){const {group:_0x2765c0,id:_0x4ea422,subType:_0x109d83}=_0x2674ae['_splitMarkerName'](_0x7d21c9);if('suggestion'!=_0x2765c0)continue;if(null!=_0x165fbc['oldRange'])continue;const _0x26474d=_0x2674ae['getSuggestion'](_0x4ea422);this['_tablePostFixingSubtypes']['includes'](_0x109d83)&&this['_tableSuggestions']['add'](_0x26474d);}},{'priority':'low'});const _0x461d18=(_0x4dff07,_0x21b2b1)=>{let _0x108fee=!0x1;const _0x4bb568=_0x21b2b1['createRangeOn'](_0x4dff07),_0x152029=_0x4dff07['findAncestor']('table'),_0x2aa36d=_0x4d7659['getCellLocation'](_0x4dff07);for(const _0x5378e2 of this['_tableSuggestions']){const _0x1f5e3e=_0x5378e2['subType'],_0x36ab81=_0x1f5e3e['startsWith']('tablePaste'),_0x11cc85=_0x1f5e3e['substr'](_0x36ab81?0xa:0x5),_0x39ef84=_0x11cc85['toLowerCase'](),_0x5dde10=_0x39ef84['substr'](0x0,0x3)+'span',_0x4c53f7='min'+_0x11cc85,_0x4549c7='max'+_0x11cc85;if(!_0x5378e2['isInContent'])continue;if(_0x152029!=_0x5378e2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5378e2['isIntersectingWithRange'](_0x4bb568))continue;const _0x28e47f=_0x4dff07['hasAttribute'](_0x5dde10)?_0x4dff07['getAttribute'](_0x5dde10)-0x1:0x0,_0x203d95=this['_getSuggestionCoords'](_0x5378e2),_0x315414=_0x203d95[_0x4c53f7],_0x1b0157=_0x203d95[_0x4549c7];_0x315414<=_0x2aa36d[_0x39ef84]&&_0x2aa36d[_0x39ef84]+_0x28e47f<=_0x1b0157&&(_0x5378e2['addRange'](_0x4bb568),_0x108fee=!0x0);}return _0x108fee;};_0x32b238['model']['document']['registerPostFixer'](_0x6b33b=>{let _0x239939=!0x1;for(const _0x252f34 of _0x32b238['model']['document']['differ']['getChanges']())if('insert'==_0x252f34['type']){if('tableRow'==_0x252f34['name']){for(const _0x17ad81 of _0x252f34['position']['nodeAfter']['getChildren']())_0x239939=_0x239939||_0x461d18(_0x17ad81,_0x6b33b);}else'tableCell'==_0x252f34['name']&&(_0x239939=_0x239939||_0x461d18(_0x252f34['position']['nodeAfter'],_0x6b33b));}return _0x239939;});}['_getSuggestionCoords'](_0x4b09b3){return this['_getCoordsForCells'](_0x4b09b3['getRanges']()['map'](_0x3b7f5c=>_0x3b7f5c['start']['nodeAfter']));}}function Ne(_0x2634b8){return Array['from'](new Set(_0x2634b8)['values']());}class Ct extends _0x28b250{static get['requires'](){return[_t];}['afterInit'](){const _0xed6017=this['editor'],_0x22bfdb=_0xed6017['model']['document']['selection'],_0x1fc7a6=_0xed6017['locale'];if(!_0xed6017['plugins']['has']('TableEditing'))return;const _0x3ebcd7=_0xed6017['plugins']['get']('TrackChangesEditing'),_0x5d9954=_0xed6017['plugins']['get']('TableUtils'),_0x177be9=_0xed6017['plugins']['get'](_t);_0x177be9['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3ebcd7['enableCommand']('mergeTableCells',()=>{const _0xf1b9f5=_0x5d9954['getSelectionAffectedTableCells'](_0xed6017['model']['document']['selection']);_0xed6017['model']['change'](()=>{_0x3ebcd7['markMultiRangeBlockFormat'](_0xf1b9f5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xed6017['commands']['get']('mergeTableCells')['on']('execute',(_0xf675d1,_0x4ed674)=>{_0xed6017['commands']['get']('trackChanges')['value']&&(_0x4ed674['length']>0x0&&_0x4ed674[_0x4ed674['length']-0x1]&&_0x4ed674[_0x4ed674['length']-0x1]['forceDefaultExecution']||_0x3ebcd7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xf675d1['stop']());},{'priority':'highest'});for(const _0x424f93 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x33a51a=_0xed6017['commands']['get'](_0x424f93);_0x3ebcd7['enableCommand'](_0x424f93,()=>{const _0x3e841d=_0xed6017['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x167aa2=>_0x167aa2['is']('element','tableCell')),_0x15ef56=_0x33a51a['value'];_0xed6017['model']['change'](()=>{_0x3ebcd7['markMultiRangeBlockFormat']([_0x3e841d,_0x15ef56],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x537615 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x929386=_0xed6017['commands']['get'](_0x537615);_0x3ebcd7['enableCommand'](_0x537615,()=>{const _0x32d8b6=_0x5d9954['getSelectionAffectedTableCells'](_0xed6017['model']['document']['selection'])[0x0],_0x162a01=_0x32d8b6['findAncestor']('table'),{column:_0x417c95,row:_0x4ac1e7}=_0x5d9954['getCellLocation'](_0x32d8b6);let _0x32eaa2=[];if('horizontally'==_0x929386['direction']){const _0xa0076d=_0x5d9954['createTableWalker'](_0x162a01,{'startRow':_0x4ac1e7,'endRow':_0x4ac1e7,'includeAllSlots':!0x0});_0x32eaa2=Array['from'](_0xa0076d)['map'](_0x33586d=>_0x33586d['cell']);}else{const _0x33a64b=_0x5d9954['createTableWalker'](_0x162a01,{'column':_0x417c95,'includeAllSlots':!0x0});_0x32eaa2=Array['from'](_0x33a64b)['map'](_0xd5c60f=>_0xd5c60f['cell']);}_0xed6017['model']['change'](_0x506edf=>{_0x3ebcd7['markBlockFormat'](_0x506edf['createRangeOn'](_0x32d8b6),{'commandName':_0x537615,'commandParams':[]},_0x32eaa2,_0x537615);});});}_0x3ebcd7['descriptionFactory']['registerDescriptionCallback'](_0x2d9020=>{if('formatBlock'!=_0x2d9020['type']&&'formatInline'!=_0x2d9020['type'])return;const {data:_0x51af02}=_0x2d9020;return _0x51af02&&'mergeTableCells'==_0x51af02['commandName']?{'type':'format','content':o(_0x1fc7a6,'*Merge\x20cells*')}:void 0x0;}),_0x3ebcd7['descriptionFactory']['registerDescriptionCallback'](_0xb0b0af=>{if('formatBlock'!=_0xb0b0af['type']&&'formatInline'!=_0xb0b0af['type'])return;const {data:_0x14c050}=_0xb0b0af;return _0x14c050?'splitTableCellVertically'==_0x14c050['commandName']?{'type':'format','content':o(_0x1fc7a6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x14c050['commandName']?{'type':'format','content':o(_0x1fc7a6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3df816=_0x177be9['_acceptFormatSuggestionCallbackFactory']();for(const _0x2369b8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3ebcd7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2369b8,'accept',_0x3df816);for(const _0x4fb6d9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3ebcd7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4fb6d9,'accept',_0x3df816);_0x3ebcd7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x12a54d=>{_0xed6017['model']['change'](_0x140778=>{const _0x55df32=Array['from'](_0x22bfdb['getRanges']())['map'](_0x4c10ed=>_0xc2db3f['fromRange'](_0x4c10ed));_0x140778['setSelection'](_0x12a54d),_0xed6017['commands']['get']('mergeTableCells')['refresh'](),_0xed6017['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x549b83=_0x55df32['filter'](_0x232fe7=>'$graveyard'!=_0x232fe7['root']['rootName']);_0x549b83['length']>0x0&&_0x140778['setSelection'](_0x549b83);for(const _0x5a0689 of _0x55df32)_0x5a0689['detach']();});});for(const _0x27b497 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x13fa6d=_0xed6017['commands']['get'](_0x27b497);_0x13fa6d['on']('set:isEnabled',(_0x4d4dde,_0x4907b8,_0x112432)=>{if(_0x112432){const _0x306fb0=_0xed6017['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2e0887=>_0x2e0887['is']('element','tableCell'));this['_areMergableCells'](_0x13fa6d['value'],_0x306fb0)||(_0x4d4dde['return']=!0x1,_0x4d4dde['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2dc302=this['editor']['commands']['get']('mergeTableCells'),_0x4c23cc=this['editor']['plugins']['get']('TableUtils');if(!_0x2dc302['isEnabled'])return!0x1;const _0x1170c4=_0x4c23cc['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2b3d4c of _0x1170c4)for(const _0x58a502 of _0x1170c4)if(_0x2b3d4c!=_0x58a502&&!this['_areMergableCells'](_0x2b3d4c,_0x58a502))return!0x1;return!0x0;}['_areMergableCells'](_0x2b3911,_0x287083){const _0x501f31=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d81ca=this['editor']['model']['createRangeOn'](_0x2b3911),_0x16b51a=this['editor']['model']['createRangeOn'](_0x287083),_0x339584=new Set(),_0x482767=new Set();for(const _0x4d4b8a of _0x501f31['getSuggestions']())if(('insertion'==_0x4d4b8a['type']||'deletion'==_0x4d4b8a['type']||'mergeTableCells'==_0x4d4b8a['subType'])&&_0x4d4b8a['isInContent']){for(const _0x39f588 of _0x4d4b8a['getRanges']())_0x39f588['containsRange'](_0x1d81ca,!0x0)&&_0x339584['add'](_0x4d4b8a['type']+':'+_0x4d4b8a['author']['id']),_0x39f588['containsRange'](_0x16b51a,!0x0)&&_0x482767['add'](_0x4d4b8a['type']+':'+_0x4d4b8a['author']['id']);}if(_0x339584['size']!=_0x482767['size'])return!0x1;for(const _0x2df0cf of _0x339584)if(!_0x482767['has'](_0x2df0cf))return!0x1;return!0x0;}}class vt extends _0x28b250{static get['requires'](){return[_t];}['afterInit'](){const _0x3eaa5d=this['editor'];if(!_0x3eaa5d['plugins']['has']('TableEditing'))return;const _0xcc6848=_0x3eaa5d['locale'],_0x448b77=_0x3eaa5d['plugins']['get']('TrackChangesEditing');_0x448b77['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x448b77['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x448b77['registerBlockAttribute']('headingRows'),_0x448b77['registerBlockAttribute']('headingColumns'),_0x448b77['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xcc6848,'FORMAT_HEADER_ROW')),_0x448b77['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xcc6848,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4037af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x584710=this['editor']['plugins']['get']('TableUtils'),_0x2535b7=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0xc032ac({showActiveMarker:_0x222161=!0x0,setDataAttribute:_0x2021e7=!0x0}={}){return(_0x539586,_0x31f2ad,_0x17e165)=>{const {type:_0x1579f8,id:_0x4e839e}=_0x4037af['_splitMarkerName'](_0x31f2ad['markerName']),_0x4544f=_0x4037af['getSuggestion'](_0x4e839e),_0x3b8ba1=_0x4544f['data'];if('formatBlock'!=_0x4544f['type']||!_0x3b8ba1||'setTableColumnHeader'!=_0x3b8ba1['commandName'])return;if(_0x31f2ad['item'])return void _0x539586['stop']();if(!_0x17e165['consumable']['consume'](_0x31f2ad['markerRange'],_0x539586['name']))return;const _0x1972b3=_0x31f2ad['markerRange']['start']['nodeAfter'],_0x5c6c91=_0x31f2ad['markerRange']['end']['nodeBefore'],_0x5a8d62=_0x1972b3['parent']['parent'],{column:_0xb4ce4e}=_0x584710['getCellLocation'](_0x1972b3),{column:_0x2186f4}=_0x584710['getCellLocation'](_0x5c6c91);for(let _0x3e112a=_0xb4ce4e;_0x3e112a<=_0x2186f4;_0x3e112a++){const _0x441428=_0x584710['createTableWalker'](_0x5a8d62,{'column':_0x3e112a,'includeAllSlots':!0x1});for(const _0x54f164 of _0x441428){const _0x36762e=_0x54f164['cell'],_0x82a496=_0x17e165['mapper']['toViewElement'](_0x36762e);_0x17e165['writer']['addClass']('ck-suggestion-marker-'+_0x1579f8,_0x82a496),_0x2021e7&&_0x17e165['writer']['setAttribute']('data-suggestion',_0x4e839e,_0x82a496),_0x17e165['mapper']['bindElementToMarker'](_0x82a496,_0x31f2ad['markerName']),_0x222161&&(_0x4037af['activeMarkers']['includes'](_0x31f2ad['markerName'])?_0x17e165['writer']['addClass']('ck-suggestion-marker--active',_0x82a496):_0x17e165['writer']['removeClass']('ck-suggestion-marker--active',_0x82a496));}}};}_0x4037af['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2535b7),_0x4037af['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2535b7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xc032ac(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5ba8dc,_0x570d21,_0x1302f1)=>{_0x1302f1['options']['showSuggestionHighlights']&&_0xc032ac({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5ba8dc,_0x570d21,_0x1302f1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2878dc,_0x5f279a,_0xdf96de)=>{const {type:_0xefb397,id:_0x87db4d}=_0x4037af['_splitMarkerName'](_0x5f279a['markerName']),_0x162973=_0x4037af['getSuggestion'](_0x87db4d),_0x4b00e2=_0x162973['data'];if('formatBlock'!=_0x162973['type']||!_0x4b00e2||'setTableColumnHeader'!=_0x4b00e2['commandName'])return;const _0x1398be=_0xdf96de['mapper']['markerNameToElements'](_0x5f279a['markerName']);if(_0x1398be){for(const _0x31f5f9 of _0x1398be)_0xdf96de['writer']['removeClass']('ck-suggestion-marker-'+_0xefb397,_0x31f5f9),_0xdf96de['writer']['removeClass']('ck-suggestion-marker--active',_0x31f5f9),_0xdf96de['writer']['removeAttribute']('data-suggestion',_0x31f5f9),_0xdf96de['mapper']['unbindElementFromMarkerName'](_0x31f5f9,_0x5f279a['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c9b94=this['editor'],_0x254282=_0x3c9b94['locale'];function _0x3cf6b9(_0x52152c){return{'type':'format','content':o(_0x254282,'*Format:*\x20%0',_0x52152c)};}_0x3c9b94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3eb68f=>{if('formatBlock'!=_0x3eb68f['type'])return;const {data:_0x1a94dd}=_0x3eb68f;if(_0x1a94dd){if('setTableRowHeader'==_0x1a94dd['commandName']){const _0x4e3df6=_0x1a94dd['commandParams'][0x0]['forceValue'];return _0x3cf6b9(o(_0x254282,_0x4e3df6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1a94dd['commandName']){const _0x412c09=_0x1a94dd['commandParams'][0x0]['forceValue'];return _0x3cf6b9(o(_0x254282,_0x412c09?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Nt extends _0x28b250{['afterInit'](){const _0x2a6a85=this['editor'],_0x16a726=_0x2a6a85['locale'],_0x3c3e19=_0x2a6a85['plugins']['get']('TrackChangesEditing');function _0x3cb4f2(_0x3becf3){return{'type':'format','content':''+o(_0x16a726,'*Set\x20table\x20type:*\x20%0',_0x3becf3)};}_0x2a6a85['plugins']['has']('TableLayout')&&(_0x3c3e19['enableCommand']('insertTableLayout'),_0x3c3e19['enableDefaultAttributesIntegration']('tableType'),_0x3c3e19['registerBlockAttribute']('tableType'),_0x3c3e19['descriptionFactory']['registerElementLabel'](_0x4ea473=>_0x4ea473['is']('element','table')&&'layout'===_0x4ea473['getAttribute']('tableType'),_0x4892b5=>o(_0x16a726,'ELEMENT_LAYOUT_TABLE',_0x4892b5)),_0x3c3e19['descriptionFactory']['registerDescriptionCallback'](_0x20de4b=>{const {data:_0x82b91f}=_0x20de4b;if(_0x82b91f&&'tableType'==_0x82b91f['key'])switch(_0x82b91f['newValue']){case'layout':return _0x3cb4f2(o(_0x16a726,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3cb4f2(o(_0x16a726,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](xe['map'](_0x4211d9=>[_0x4211d9,null]));class Dt extends _0x28b250{static get['requires'](){return[_t];}['afterInit'](){const _0x331a2c=this['editor'];if(!_0x331a2c['plugins']['has']('TableClipboard'))return;const _0x34f6ee=_0x331a2c['plugins']['get']('TrackChangesEditing'),_0x2a240d=_0x331a2c['plugins']['get']('TableUtils'),_0x2a1280=_0x331a2c['plugins']['get'](_t),_0x5551e5=_0x331a2c['plugins']['get']('TableClipboard'),_0x2ce826=_0x331a2c['plugins']['get']('TableSelection'),_0x247c0f=_0x331a2c['plugins']['get'](_0x5ed61e);_0x2a1280['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x331a2c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x331a2c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xcde454=null,_0x22fb4a=!0x1;_0x247c0f['on']('contentInsertion',(_0x2d7897,_0x280e3b)=>{_0x22fb4a='paste'===_0x280e3b['method'];}),_0x331a2c['model']['on']('insertContent',(_0x5d6963,_0x2fe273)=>{if(!_0x22fb4a&&null===_0x2ce826['getSelectedTableCells']())return;const [_0x2179f0,_0x48fd16]=_0x2fe273,_0x26b00d=_0x2fe273[_0x2fe273['length']-0x1];_0x26b00d&&_0x26b00d['forceDefaultExecution']||_0x34f6ee['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x170a02,_0x3dd728,_0x542df5,_0x3b8893,_0x4d2415){if(_0x3dd728&&!_0x3dd728['is']('documentSelection'))return!0x1;const _0x187209=_0x4d2415['getTableIfOnlyTableInContent'](_0x170a02,_0x542df5);if(!_0x187209||!De(_0x187209,void 0x0,_0x3b8893))return!0x1;const _0x12a5cb=_0x3b8893['getSelectionAffectedTableCells'](_0x542df5['document']['selection']);if(!_0x12a5cb['length'])return!0x1;const _0x9feec8=_0x12a5cb[0x0]['findAncestor']('table'),_0x48f647=_0x3b8893['getRowIndexes'](_0x12a5cb),_0x244f6a=_0x3b8893['getColumnIndexes'](_0x12a5cb),_0x594e16={'startRow':_0x48f647['first'],'endRow':_0x48f647['last'],'startColumn':_0x244f6a['first'],'endColumn':_0x244f6a['last']};return 0x1==_0x12a5cb['length']&&(_0x594e16['endRow']+=_0x3b8893['getRows'](_0x187209)-0x1,_0x594e16['endColumn']+=_0x3b8893['getColumns'](_0x187209)-0x1),De(_0x9feec8,_0x594e16,_0x3b8893);}(_0x2179f0,_0x48fd16,_0x331a2c['model'],_0x2a240d,_0x5551e5)&&(_0x5d6963['stop'](),_0xcde454={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x331a2c['model']['change'](()=>{_0x331a2c['model']['insertContent'](_0x2fe273[0x0],_0x2fe273[0x1],_0x2fe273[0x2],{'forceDefaultExecution':!0x0});const _0x4bd841=_0x370ed3(),{rowInsertionRanges:_0x4257cc,columnInsertionRanges:_0xe3d595,insertionRanges:_0xd0cfe5,deletionRanges:_0xe15881,cells:_0x24be74}=_0xcde454;_0x4257cc['length']&&_0x34f6ee['markMultiRangeInsertion'](_0x4257cc,'tablePasteRow',{'tablePasteChainId':_0x4bd841}),_0xe3d595['length']&&_0x34f6ee['markMultiRangeInsertion'](_0xe3d595,'tablePasteColumn',{'tablePasteChainId':_0x4bd841}),_0xd0cfe5['length']&&(_0x34f6ee['markMultiRangeInsertion'](_0xd0cfe5,'tablePaste',{'tablePasteChainId':_0x4bd841,'skipNestingCheck':!0x0}),_0xd0cfe5['forEach'](_0x4fc9d3=>_0x4fc9d3['detach']?.())),_0xe15881['length']&&(_0x34f6ee['markMultiRangeDeletion'](_0xe15881,'tablePaste',{'tablePasteChainId':_0x4bd841,'skipNestingCheck':!0x0}),_0xe15881['forEach'](_0x2f4ef3=>_0x2f4ef3['detach']?.()));const _0x5e4582=_0x34f6ee['markMultiRangeBlockFormat'](_0x24be74['map'](({element:_0x1aea8a})=>_0x1aea8a),{'formatGroupId':_0x370ed3()},[],'tablePasteCell',{'tablePasteChainId':_0x4bd841});if(_0x5e4582){const _0x2dccac=_0x5e4582['getMarkers'](),_0x2fa7f9=[];for(const {element:_0x24cfa7,attributes:_0x211692}of _0x24be74){if(!_0x211692)continue;const _0x123e10=_0x331a2c['model']['createRangeOn'](_0x24cfa7),_0x190e58=_0x2dccac['find'](_0x4c5589=>_0x4c5589['getRange']()['isEqual'](_0x123e10));_0x190e58&&_0x2fa7f9['push']([_0x190e58['name'],_0x211692]);}_0x2fa7f9['length']&&_0x5e4582['setAttribute']('markerAttributes',Object['fromEntries'](_0x2fa7f9));}_0xcde454=null;}));},{'priority':_0x4066a6['high']+0xa}),_0x247c0f['on']('contentInsertion',()=>{_0x22fb4a=!0x1;},{'priority':'lowest'}),_0x331a2c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2eb3ca,_0x43d0f1)=>{const [_0x543220,_0x27251c,,_0x3e4015]=_0x43d0f1;if(!_0xcde454)return;_0x2eb3ca['stop']();const _0x1e2ccf=_0x543220['cell'],_0x2ad0e6=_0x27251c,_0x49b210=Ue(_0x1e2ccf),_0x51ecea=Ue(_0x2ad0e6);_0x2eb3ca['return']=_0x1e2ccf;let _0x27e39a=null,_0x11f917=null;if(_0x51ecea||_0x49b210){if(_0x49b210&&!_0x51ecea){_0x3e4015['remove'](_0x1e2ccf['getChild'](0x0));for(const _0xb532e6 of Array['from'](_0x2ad0e6['getChildren']()))_0x3e4015['insert'](_0xb532e6,_0x1e2ccf,'end');const _0x50d6ac=_0xcde454['rowInsertionIndexes']['includes'](_0x543220['row']),_0x367f82=_0xcde454['columnInsertionIndexes']['includes'](_0x543220['column']);_0x50d6ac||_0x367f82||(_0x27e39a=_0xc2db3f['fromRange'](_0x3e4015['createRangeIn'](_0x1e2ccf)));}else _0x51ecea&&!_0x49b210&&(_0x11f917=_0x3e4015['createRangeIn'](_0x1e2ccf));}else{const _0x2878c9=_0x3e4015['createElement']('tableCellSuggestion'),_0x5af19b=_0x3e4015['createElement']('tableCellSuggestion');_0x3e4015['wrap'](_0x3e4015['createRangeIn'](_0x1e2ccf),_0x5af19b),_0x3e4015['insert'](_0x2878c9,_0x1e2ccf,0x0);for(const _0x3319d1 of Array['from'](_0x2ad0e6['getChildren']()))_0x3e4015['insert'](_0x3319d1,_0x2878c9,'end');_0x27e39a=_0xc2db3f['fromRange'](_0x3e4015['createRangeOn'](_0x2878c9)),_0x11f917=_0xc2db3f['fromRange'](_0x3e4015['createRangeOn'](_0x5af19b));}const _0x1cdab6=Array['from'](_0x2ad0e6['getAttributes']())['filter'](([_0x42be05])=>xe['includes'](_0x42be05));_0xcde454['cells']['push']({'element':_0x1e2ccf,'attributes':_0x1cdab6['length']?Object['fromEntries'](_0x1cdab6):null}),_0x27e39a&&_0xcde454['insertionRanges']['push'](_0x27e39a),_0x11f917&&_0xcde454['deletionRanges']['push'](_0x11f917);},{'priority':'high'}),_0x2a240d['on']('insertColumns',(_0x261f4b,_0x2e69a1)=>{const [_0x423f2a,_0x2c5215={}]=_0x2e69a1;if(!_0xcde454)return;const _0x37de1e=_0x2c5215['at']||0x0,_0x25376c=_0x2c5215['columns']||0x1;_0xcde454['columnInsertionIndexes']=new Array(_0x25376c)['fill'](_0x37de1e)['map']((_0x57a8bd,_0x51ad50)=>_0x57a8bd+_0x51ad50);for(const {cell:_0x1b4cfa}of _0x2a240d['createTableWalker'](_0x423f2a,{'startColumn':_0x37de1e,'endColumn':_0x37de1e+_0x25376c-0x1}))_0xcde454['columnInsertionRanges']['push'](_0x331a2c['model']['createRangeOn'](_0x1b4cfa));},{'priority':'low'}),_0x2a240d['on']('insertRows',(_0x584cb8,_0x2d2abf)=>{const [_0xa272bc,_0x244305={}]=_0x2d2abf;if(!_0xcde454)return;const _0x8dbb61=_0x244305['at']||0x0,_0x198ded=_0x244305['rows']||0x1;_0xcde454['rowInsertionIndexes']=new Array(_0x198ded)['fill'](_0x8dbb61)['map']((_0xd59abf,_0x2d2c13)=>_0xd59abf+_0x2d2c13);for(const {cell:_0x374911}of _0x2a240d['createTableWalker'](_0xa272bc,{'startRow':_0x8dbb61,'endRow':_0x8dbb61+_0x198ded-0x1}))_0xcde454['rowInsertionRanges']['push'](_0x331a2c['model']['createRangeOn'](_0x374911));},{'priority':'low'}),_0x34f6ee['descriptionFactory']['registerDescriptionCallback'](_0x57eeac=>{if(_0x57eeac['subType']&&_0x57eeac['subType']['startsWith']('tablePaste'))return _0x57eeac['previous']?{}:{'type':'insertion','content':o(_0x331a2c['locale'],'*Replace\x20table\x20cells*')};});const _0x4d20f8=()=>!0x1;for(const _0x59fc78 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x34f6ee['_suggestionFactory']['registerCustomCallback']('insertion',_0x59fc78,'join',_0x4d20f8),_0x34f6ee['_suggestionFactory']['registerCustomCallback']('deletion',_0x59fc78,'join',_0x4d20f8),_0x34f6ee['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x59fc78,'join',_0x4d20f8);_0x34f6ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4d20f8),_0x34f6ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x517bc9,_0x3aceb2,_0x4abfdc)=>{const _0x2fc01a=_0x517bc9['map'](_0x130942=>_0x130942['getContainedElement']())['filter'](_0xd41033=>_0xd41033),_0x29847a=new Map(_0x2fc01a['map'](_0x3dc831=>[_0x3dc831,null]));if(_0xcde454){for(const {element:_0xa5837,attributes:_0xbd339f}of _0xcde454['cells'])_0xbd339f&&_0x29847a['set'](_0xa5837,_0xbd339f);}else{if(_0x4abfdc&&_0x4abfdc['markerAttributes'])for(const [_0x21f6ef,_0xc631cd]of Object['entries'](_0x4abfdc['markerAttributes'])){const _0x1a6853=_0x331a2c['model']['markers']['get'](_0x21f6ef),_0x5c9303=_0x1a6853?_0x1a6853['getRange']()['getContainedElement']():null;_0x5c9303&&_0x29847a['set'](_0x5c9303,_0xc631cd);}}_0x331a2c['model']['change'](_0x495465=>{for(const [_0xdb9b96,_0x3d92a1]of _0x29847a)_0x495465['setAttributes']({...Oe,..._0x3d92a1},_0xdb9b96);});});const _0x136379=(_0x5b12ea,_0xdc4890)=>{_0x34f6ee['_suggestionFactory']['registerCustomCallback'](_0x5b12ea,'tablePaste',_0xdc4890,(_0x2b3ef5,_0x2a49b8,_0x522437)=>{_0x331a2c['model']['change'](_0x1eeca9=>{const _0x3017ed=[];for(const _0x3e6658 of _0x2b3ef5){const _0x4f9800=_0x3e6658['start']['nodeAfter'];_0x4f9800['is']('element','tableCellSuggestion')&&_0x3017ed['push'](_0x4f9800);}_0x34f6ee['_suggestionFactory']['getSuggestionCallback'](_0x5b12ea,null,_0xdc4890)(_0x2b3ef5,_0x2a49b8,_0x522437);for(const _0x42a9d9 of _0x3017ed)'$graveyard'!=_0x42a9d9['root']['rootName']&&_0x1eeca9['unwrap'](_0x42a9d9);});});};_0x136379('insertion','accept'),_0x136379('insertion','discard'),_0x136379('deletion','accept'),_0x136379('deletion','discard'),_0x34f6ee['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x23c772=>{const _0x893efa=_0x23c772['map'](_0x54680f=>_0x54680f['getContainedElement']()),_0xaace25=_0x893efa[0x0]['findAncestor']('table'),{minRow:_0x1c4359,maxRow:_0x5b2f43}=_0x2a1280['_getCoordsForCells'](_0x893efa);_0x2a240d['removeRows'](_0xaace25,{'at':_0x1c4359,'rows':_0x5b2f43-_0x1c4359+0x1});}),_0x34f6ee['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4b4b57=>{const _0x264416=_0x4b4b57['map'](_0x560993=>_0x560993['getContainedElement']()),_0xf546e9=_0x264416[0x0]['findAncestor']('table'),{minColumn:_0x10624d,maxColumn:_0x39f34e}=_0x2a1280['_getCoordsForCells'](_0x264416);_0x2a240d['removeColumns'](_0xf546e9,{'at':_0x10624d,'columns':_0x39f34e-_0x10624d+0x1});});const _0x212812=(_0x1d3fd9,_0xaab406)=>{if(!_0xaab406['subType']||!_0xaab406['subType']['startsWith']('tablePaste'))return;const _0x47c21c=_0xaab406['attributes']['tablePasteChainId'],_0x42e82b=_0x34f6ee['getSuggestions']()['filter'](_0x368744=>_0x368744['isInContent']&&_0x368744['attributes']&&_0x368744['attributes']['tablePasteChainId']==_0x47c21c);_0x42e82b['length']&&_0xaab406['getAllAdjacentSuggestions']()['length']!=_0x42e82b['length']&&_0x42e82b['reduce']((_0xef2d76,_0x29717c)=>(_0xef2d76['next']=_0x29717c,_0x29717c['previous']=_0xef2d76,_0x29717c));};function _0x141b92(_0x19da0d,_0x23c3c7=!0x0){const {id:_0x5b2186,authorId:_0xca8a17}=_0x34f6ee['_splitMarkerName'](_0x19da0d['markerName']),_0x2fcc72=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x33f016=_0x34f6ee['activeMarkers']['includes'](_0x19da0d['markerName']);return _0x33f016&&_0x2fcc72['push']('ck-suggestion-marker--active'),{'classes':_0x2fcc72,'attributes':{'data-suggestion':_0x5b2186,'data-author-id':_0xca8a17},'priority':_0x33f016&&_0x23c3c7?0xbc2:0xbb8};}_0x34f6ee['on']('suggestionLoaded',_0x212812,{'priority':'high'}),_0x34f6ee['on']('suggestionUnloaded',_0x212812,{'priority':'high'}),_0x331a2c['model']['document']['registerPostFixer'](()=>{let _0x40c1f6=!0x1;const _0x29a30c=Array['from'](_0x331a2c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2756af,data:_0x4c0f4f}of _0x29a30c){const {group:_0x50a8e4,type:_0x46fa3a,id:_0x452c5f}=_0x34f6ee['_splitMarkerName'](_0x2756af);if('suggestion'!=_0x50a8e4||'deletion'!=_0x46fa3a||_0x4c0f4f['oldRange'])continue;if(!_0x34f6ee['hasSuggestion'](_0x452c5f))continue;const _0x364521=_0x34f6ee['getSuggestion'](_0x452c5f)['getRanges'](),_0x3c3b4e=_0x331a2c['plugins']['get']('Users')['me'];for(const _0xcb0ce2 of _0x34f6ee['getSuggestions']()){if(!_0xcb0ce2['isInContent']||_0xcb0ce2['author']!=_0x3c3b4e)continue;if('formatBlock'!=_0xcb0ce2['type']||'tablePasteCell'!=_0xcb0ce2['subType'])continue;if(_0xcb0ce2['getRanges']()['every'](_0x3c47f2=>_0x364521['some'](_0x5659ea=>_0x5659ea['containsRange'](_0x3c47f2,!0x0)))){for(const _0xbdf1cf of _0xcb0ce2['getAllAdjacentSuggestions']())_0xbdf1cf['isInContent']&&(_0xbdf1cf['discard'](),_0x40c1f6=!0x0);}}}return _0x40c1f6;}),_0x331a2c['model']['document']['registerPostFixer'](_0x1ad89a=>{const _0x98e094=_0x331a2c['commands']['get']('redo');if(!_0x98e094||!_0x98e094['_createdBatches']['has'](_0x1ad89a['batch']))return!0x1;let _0xf297fb=!0x1;const _0x2f43a5=_0x331a2c['plugins']['get']('Users')['me'],_0xee3328=_0x331a2c['model']['document']['differ']['getChanges'](),_0x11fed7=Array['from'](_0x331a2c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xb00982,data:_0x4e7634})=>{const {group:_0x4e5d50,subType:_0x2062a0,authorId:_0x2ae342}=_0x34f6ee['_splitMarkerName'](_0xb00982);return'suggestion'==_0x4e5d50&&'tablePaste'==_0x2062a0&&_0x2ae342==_0x2f43a5['id']&&!_0x4e7634['oldRange'];});for(const _0x32f477 of _0xee3328){if('insert'!=_0x32f477['type']||'tableCellSuggestion'!=_0x32f477['name']||0x1!=_0x32f477['length'])continue;const _0x3c7002=_0x1ad89a['createRange'](_0x32f477['position'],_0x32f477['position']['getShiftedBy'](0x1));if(!_0x11fed7['find'](({data:_0x50ccf7})=>_0x50ccf7['newRange']['isEqual'](_0x3c7002))){for(const {name:_0x13d095,data:_0x393f5f}of _0x11fed7)if(_0x3c7002['containsRange'](_0x393f5f['newRange'])){_0x1ad89a['updateMarker'](_0x13d095,{'range':_0x3c7002}),_0xf297fb=!0x0;break;}}}return _0xf297fb;}),_0x331a2c['model']['document']['registerPostFixer'](_0x4442a6=>{let _0x24b5f3=!0x1;const _0x285712=_0x331a2c['plugins']['get']('Users')['me'],_0x3f8b81=_0x34f6ee['getSuggestions']()['filter'](_0x1f62e3=>_0x1f62e3['isInContent']&&_0x1f62e3['author']==_0x285712),_0x1ff4a6=new Set(),_0x45ff71=new Set();for(const _0x2108f6 of _0x3f8b81)if('tablePaste'==_0x2108f6['subType'])for(const _0x455684 of _0x2108f6['getMarkers']()){const _0x2a7871=_0x455684['getRange']()['getContainedElement']();if(_0x2a7871){if(_0x2a7871['is']('element','tableCellSuggestion')&&Ue(_0x2a7871)){_0x2108f6['removeMarker'](_0x455684['name']),_0x1ff4a6['add'](_0x2a7871),_0x24b5f3=!0x0;const _0x4fbd96=_0x2a7871['nextSibling'],_0x373ae4=_0x2a7871['previousSibling'],_0x184d78=_0x4fbd96&&_0x4fbd96['is']('element','tableCellSuggestion'),_0x193b37=_0x373ae4&&_0x373ae4['is']('element','tableCellSuggestion');_0x184d78&&!_0x1ff4a6['has'](_0x4fbd96)&&_0x45ff71['add'](_0x4fbd96),_0x193b37&&!_0x1ff4a6['has'](_0x373ae4)&&_0x45ff71['add'](_0x373ae4);}else _0x2a7871['is']('element','paragraph')&&_0x2a7871['isEmpty']&&(_0x2108f6['removeMarker'](_0x455684['name']),_0x24b5f3=!0x0);}}else{if('tablePasteCell'==_0x2108f6['subType']){if(!_0x2108f6['attributes']||!_0x2108f6['attributes']['tablePasteChainId'])continue;const _0x22dc13=_0x2108f6['attributes']['markerAttributes'];if(_0x22dc13&&Object['keys'](_0x22dc13)['length'])continue;const _0x28b39c=_0x2108f6['attributes']['tablePasteChainId'];let _0x384da3=!0x0,_0x539376=!0x0;for(const _0x3382ee of _0x3f8b81)if(_0x3382ee['subType']&&_0x3382ee['subType']['startsWith']('tablePaste')){if(!_0x3382ee['attributes']['tablePasteChainId']){_0x539376=!0x1;break;}if(_0x3382ee['id']!=_0x2108f6['id']&&_0x3382ee['attributes']['tablePasteChainId']==_0x28b39c){_0x384da3=!0x1;break;}}_0x539376&&_0x384da3&&(_0x2108f6['removeMarkers'](),_0x24b5f3=!0x0);}}for(const _0x595dc8 of _0x1ff4a6)_0x4442a6['remove'](_0x595dc8);for(const _0x47bd93 of _0x45ff71)_0x4442a6['unwrap'](_0x47bd93);return _0x24b5f3;}),_0x331a2c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1b80ae=>_0x141b92(_0x1b80ae),'converterPriority':'high'}),_0x331a2c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x51b55f,_0x7e731b)=>_0x7e731b['options']['showSuggestionHighlights']?_0x141b92(_0x51b55f,!0x1):null,'converterPriority':'high'});const _0x3e1d68=_0x331a2c['editing']['view'];this['listenTo'](_0x3e1d68['document'],'clipboardOutput',(_0x313dcf,_0x1b3547)=>{const _0x387663=[];for(const _0x401fd8 of _0x3e1d68['createRangeIn'](_0x1b3547['content'])['getItems']())_0x401fd8['is']('element','suggestion-td')&&_0x387663['push'](_0x401fd8);_0x3e1d68['change'](_0x1645ad=>{for(const _0x25927b of _0x387663)_0x1645ad['move'](_0x1645ad['createRangeIn'](_0x25927b),_0x1645ad['createPositionBefore'](_0x25927b)),_0x1645ad['remove'](_0x25927b);});});}}function Ue(_0x254bc8){if(_0x254bc8['isEmpty'])return!0x0;const _0x4bb306=_0x254bc8['getChild'](0x0);return _0x4bb306['is']('element','paragraph')&&_0x4bb306['isEmpty'];}function De(_0x43562c,_0x570ef3={},_0x567192){for(const {isAnchor:_0x58689f,cellHeight:_0xaa0117,cellWidth:_0x1c64d4}of _0x567192['createTableWalker'](_0x43562c,{'includeAllSlots':!0x0,..._0x570ef3}))if(!_0x58689f||0x1!=_0xaa0117||0x1!=_0x1c64d4)return!0x1;return!0x0;}class Mt extends _0x28b250{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x54c522=this['editor']['plugins']['get']('TrackChangesEditing');_0x54c522['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x54c522['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x54c522['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54c522['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x54c522['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x54c522['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1b170a,_0x4cc9c6){const _0x40d91d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x243162=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x327aff=_0x4cc9c6['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3cd6b3=_0x243162['getColumnGroupElement'](_0x327aff);let _0x550446=_0x3cd6b3?_0x243162['getTableColumnsWidths'](_0x3cd6b3):null,_0x41bc8=_0x327aff['getAttribute']('tableWidth')||null;const _0x3d03b0=_0x4cc9c6['tableWidth']||_0x41bc8,_0x22f560=_0x4cc9c6['columnWidths']||_0x550446,_0x13cc99=this['editor']['plugins']['get']('Users')['me'];for(const _0x3bb4a1 of _0x40d91d['getSuggestions']()){const _0x5c44d6=_0x3bb4a1['getContainedElement']();if('resizeTable'===_0x3bb4a1['subType']&&_0x5c44d6===_0x327aff){_0x3bb4a1['author']!==_0x13cc99&&_0x3bb4a1['discard']();const _0x1518cf=_0x3bb4a1['data']['commandParams'];_0x41bc8=_0x1518cf[0x0]['tableWidth'],_0x550446=_0x1518cf[0x0]['columnWidths'];break;}}_0x1b170a({'table':_0x327aff,'tableWidth':_0x3d03b0,'columnWidths':_0x22f560}),_0x40d91d['markBlockFormat'](_0x327aff,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x41bc8,'columnWidths':_0x550446}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x19f4a1){if('formatBlock'!=_0x19f4a1['type']&&'formatInline'!=_0x19f4a1['type'])return;const {data:_0xdeda9b}=_0x19f4a1;if(_0xdeda9b&&'resizeTable'===_0xdeda9b['formatGroupId']){const _0xdddb2d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xdddb2d)};}}}class $t extends _0x28b250{['afterInit'](){const _0x36096f=this['editor'];_0x36096f['plugins']['has']('Template')&&_0x36096f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Bt extends _0x28b250{['afterInit'](){const _0x203e1c=this['editor'];if(!_0x203e1c['commands']['get']('insertTableOfContents'))return;_0x203e1c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x18e94a=_0x203e1c['plugins']['get']('TrackChangesEditing'),_0x895a45=_0x203e1c['locale'];_0x18e94a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5d8016=>o(_0x895a45,'ELEMENT_TABLE_OF_CONTENTS',_0x5d8016));}}class Tt extends _0x28b250{['afterInit'](){const _0x90a43d=this['editor'];if(!_0x90a43d['plugins']['has']('Title'))return;const _0x207a35=_0x90a43d['plugins']['get']('TrackChangesEditing');_0x207a35['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x90a43d['locale'],'ELEMENT_TITLE')),_0x90a43d['model']['document']['registerPostFixer'](_0x41557c=>{let _0x170b89=!0x1;const _0xcb023a=Array['from'](_0x90a43d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x6380ac,data:_0x17e7af}of _0xcb023a){const {group:_0x33afd3}=_0x207a35['_splitMarkerName'](_0x6380ac);if('suggestion'!==_0x33afd3||!_0x17e7af['newRange'])continue;const _0x117edf=_0x17e7af['newRange'],_0xe0e9bf=_0x117edf['end']['nodeBefore'];if(!_0xe0e9bf||!_0xe0e9bf['is']('element','title-content'))continue;if(!_0x117edf['start']['isTouching'](_0x117edf['end']))continue;const _0x46fdc2=_0x90a43d['model']['schema']['getNearestSelectionRange'](_0x117edf['end'],'forward');if(_0x46fdc2&&_0x46fdc2['isCollapsed']){const _0x5da359=_0x41557c['createRange'](_0x117edf['start'],_0x46fdc2['start']);_0x5da359['isEqual'](_0x117edf)||(_0x41557c['updateMarker'](_0x6380ac,{'range':_0x5da359}),_0x170b89=!0x0);}_0x170b89||(_0x41557c['removeMarker'](_0x6380ac),_0x170b89=!0x0);}return _0x170b89;});}}class xt extends _0x28b250{['afterInit'](){const _0x559e66=this['editor'],_0x2d187e=_0x559e66['plugins']['get']('TrackChangesEditing');_0x559e66['plugins']['has']('Uploadcare')&&(_0x2d187e['enableCommand']('uploadcare'),_0x559e66['plugins']['has']('UploadcareImageEdit')&&(_0x2d187e['enableCommand']('uploadcareImageEdit'),_0x2d187e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2d187e['registerBlockAttribute']('uploadcareImageId'),_0x2d187e['descriptionFactory']['registerDescriptionCallback'](_0x5434ff=>{if('attribute'!=_0x5434ff['type'])return;const {data:_0x34798e}=_0x5434ff;return _0x34798e&&'uploadcareImageId'==_0x34798e['key']?{'type':'format','content':''}:void 0x0;})));}}class Ot extends _0x28b250{['afterInit'](){const _0x7d61a6=this['editor'],_0x4966e8=_0x7d61a6['plugins']['get']('TrackChangesEditing');_0x7d61a6['plugins']['has']('UndoEditing')&&(_0x4966e8['enableCommand']('undo'),_0x4966e8['enableCommand']('redo'));}}class Rt extends _0x28b250{static get['requires'](){return[_t];}['afterInit'](){const _0x45da15=this['editor'];if(!_0x45da15['plugins']['has']('TableCaptionEditing'))return;_0x45da15['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x28b250{['tableProperties'];['tableCellProperties'];constructor(_0x20e27a){super(_0x20e27a),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 _0x4be923=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x421fd9 of this['tableProperties'])_0x4be923['enableCommand'](_0x421fd9,(_0x209ead,_0x3477e1)=>{const _0x32fd04=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x421fd9,[_0x32fd04],this['tableProperties'],'tableProperties',_0x209ead,_0x3477e1);});_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4be923['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3a24f0,_0x10307f)=>this['handleDiscardAction'](this['tableProperties'],_0x3a24f0,_0x10307f)),_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x53e764 of this['tableCellProperties'])_0x4be923['enableCommand'](_0x53e764,(_0x3cdf6b,_0x58124f)=>{const _0x47e5aa=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x53e764,_0x47e5aa,this['tableCellProperties'],'tableCellProperties',_0x3cdf6b,_0x58124f);});_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4be923['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3ac0d8,_0x3ec10f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3ac0d8,_0x3ec10f)),_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4be923['descriptionFactory']['registerDescriptionCallback'](_0x3d2e95=>this['handleSuggestionDescription'](_0x3d2e95));}['_handlePropertyChange'](_0x13fe75,_0x1aac79,_0x3b1c95,_0x3dd696,_0x20f9c5,_0x34b472){const _0x5c8406=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x34b472['batch'],()=>{for(const _0x161d33 of _0x1aac79){if(this['_getSuggestion'](_0x161d33,_0x3dd696))_0x20f9c5(_0x34b472);else{const _0x251957={};for(const _0x5b3aa1 of _0x3b1c95){const _0x58d079=_0x161d33['getAttribute'](_0x5b3aa1);void 0x0!==_0x58d079&&(_0x251957[_0x5b3aa1]=_0x58d079);}_0x20f9c5(_0x34b472),_0x5c8406['markBlockFormat'](_0x161d33,{'commandParams':[_0x251957]},[],_0x3dd696);}}});}['handleDiscardAction'](_0x4ce04c,_0x2d2cb8,_0x444129){const _0x57501c=_0x2d2cb8[0x0]['start']['nodeAfter'],_0x2efd7=_0x444129['commandParams'][0x0];this['editor']['model']['change'](_0x1874fa=>{for(const _0x54e235 of _0x4ce04c)void 0x0!==_0x2efd7[_0x54e235]?_0x1874fa['setAttribute'](_0x54e235,_0x2efd7[_0x54e235],_0x57501c):_0x1874fa['removeAttribute'](_0x54e235,_0x57501c);});}['handleSuggestionDescription'](_0x4ae024){if(_0x4ae024['data'])switch(_0x4ae024['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'](_0x459f40,_0x37b883){const _0xe389c2=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x23b92f of _0xe389c2['getSuggestions']({'skipNotAttached':!0x0})){const _0x5f4bc2=_0x23b92f['getContainedElement']();if(_0x23b92f['subType']===_0x37b883&&_0x5f4bc2===_0x459f40)return _0x23b92f;}return null;}}const m='$elementName';class d extends _0x28b250{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x148996,_0x305085,R,E,U,V,F,L,G,J,K,H,W,Q,X,Y,Z,tt,it,nt,et,st,rt,ot,at,ct,ut,ht,gt,pt,ft,q,z,lt,dt,mt,kt,wt,bt,yt,St,jt,It,At,_t,Ct,vt,Nt,Rt,Dt,Mt,Bt,Et,$t,Tt,xt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3322eb){super(_0x3322eb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x59bf40,_0x4e7081,_0x4b8054,_0x5763b8)=>{this['_model']['change'](()=>{for(const _0x48510b of[..._0x5763b8,..._0x4b8054])this['_model']['markers']['has'](_0x48510b)&&_0x3322eb['editing']['reconvertMarker'](_0x48510b);});}),this['descriptionFactory']=new O(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3322eb['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(),_0x3322eb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3322eb['config']['get']('trackChanges.trackFormatChanges'),_0x3322eb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3322eb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new D(_0x3322eb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x30804d=this['editor'],_0x2f7a22=(_0x395b8c,_0x18911e)=>{if('attribute'!=_0x395b8c)return'ck-suggestion-marker-'+_0x395b8c;const _0x1f3a25=_0x18911e['split']('|')[0x0];return this['_isBlockAttribute'](_0x1f3a25)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x30804d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2343fb=>{const {id:_0x328bcd,authorId:_0x457972,type:_0x4d865c,subType:_0x3927db}=this['_splitMarkerName'](_0x2343fb['markerName']),_0x50b12e=['ck-suggestion-marker',_0x2f7a22(_0x4d865c,_0x3927db)];let _0x323090=0xbb8;return this['activeMarkers']['includes'](_0x2343fb['markerName'])&&(_0x50b12e['push']('ck-suggestion-marker--active'),_0x323090=0xbc2),'deletion'==_0x4d865c&&(_0x323090+=0x5),{'classes':_0x50b12e,'attributes':{'data-suggestion':_0x328bcd,'data-author-id':_0x457972},'priority':_0x323090};}}),_0x30804d['conversion']['for']('dataDowncast')['add'](_0x176016=>{_0x176016['on']('addMarker:suggestion',(_0x44bd95,_0x401b9e,_0x103460)=>{if(!_0x103460['options']['showSuggestionHighlights'])return;const _0x417896=_0x401b9e['item'];if(!_0x417896)return;const _0x32d3d0=_0x103460['mapper']['toViewElement'](_0x417896);_0x30804d['model']['schema']['isObject'](_0x417896)&&_0x32d3d0&&!_0x32d3d0['getCustomProperty']('widget')&&_0x32d3d0['is']('containerElement')&&_0x5b3197(_0x32d3d0,_0x103460['writer']);},{'priority':'high'});}),_0x30804d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5d9324,_0x4e1e67)=>{if(!_0x4e1e67['options']['showSuggestionHighlights'])return null;const {id:_0x50bfee,authorId:_0x125d99,type:_0x4c923b,subType:_0x9e9c96}=this['_splitMarkerName'](_0x5d9324['markerName']);return{'classes':['ck-suggestion-marker',_0x2f7a22(_0x4c923b,_0x9e9c96)],'priority':0xbb8,'attributes':{'data-suggestion':_0x50bfee,'data-author-id':_0x125d99}};}});const _0x5981b5=({showActiveMarkers:_0xda0220=!0x0,isAttributeSuggestion:_0x4763c4=!0x1}={})=>(_0x1ada13,_0x53325b,_0x24ef38)=>{if(!_0x53325b['item'])return;const {id:_0x22e76a,authorId:_0x58b4cb}=this['_splitMarkerName'](_0x53325b['markerName']);if(_0x4763c4){const _0x258966=this['_suggestions']['get'](_0x22e76a),_0x3e7665=this['_getAttributeKey'](_0x258966);if(!this['_isBlockAttribute'](_0x3e7665))return;}if(_0x53325b['item']['is']('selection'))return void _0x24ef38['consumable']['consume'](_0x53325b['item'],_0x1ada13['name']);const _0x1b38ab=_0x24ef38['mapper']['toViewElement'](_0x53325b['item']);if(_0x53325b['item']['is']('element')&&_0x30804d['model']['schema']['isBlock'](_0x53325b['item'])&&!_0x1b38ab['getCustomProperty']('addHighlight')){_0x24ef38['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1b38ab),_0x24ef38['writer']['setAttribute']('data-suggestion',_0x22e76a,_0x1b38ab),_0x24ef38['writer']['setAttribute']('data-author-id',_0x58b4cb,_0x1b38ab),_0x24ef38['mapper']['bindElementToMarker'](_0x1b38ab,_0x53325b['markerName']),_0xda0220&&(this['activeMarkers']['includes'](_0x53325b['markerName'])?_0x24ef38['writer']['addClass']('ck-suggestion-marker--active',_0x1b38ab):_0x24ef38['writer']['removeClass']('ck-suggestion-marker--active',_0x1b38ab));for(const _0x19a12d of _0x30804d['model']['createRangeIn'](_0x53325b['item'])['getItems']())_0x24ef38['consumable']['consume'](_0x19a12d,_0x1ada13['name']);_0x24ef38['consumable']['consume'](_0x53325b['item'],_0x1ada13['name']);}};_0x30804d['conversion']['for']('dataDowncast')['add'](_0x199c2e=>{_0x199c2e['on']('addMarker:suggestion:formatBlock',(_0x452f63,_0x2b7676,_0x19148c)=>{_0x19148c['options']['showSuggestionHighlights']&&_0x5981b5({'showActiveMarkers':!0x1})(_0x452f63,_0x2b7676,_0x19148c);},{'priority':'highest'});}),_0x30804d['conversion']['for']('dataDowncast')['add'](_0x1caca3=>{_0x1caca3['on']('addMarker:suggestion:attribute',(_0x4b5f95,_0x1f0ed7,_0x322b85)=>{_0x322b85['options']['showSuggestionHighlights']&&_0x5981b5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4b5f95,_0x1f0ed7,_0x322b85);},{'priority':'highest'});}),_0x30804d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x56eda9,_0x1100f3)=>{if(_0x1100f3['options']['showSuggestionHighlights']){const {id:_0x5a3f9a,authorId:_0xc6f669}=this['_splitMarkerName'](_0x56eda9);return _0x56eda9['includes'](':split')||_0x56eda9['includes'](':merge')?{'group':'suggestion','name':_0x56eda9['substr'](0xb),'attributes':{'data-suggestion':_0x5a3f9a,'data-author-id':_0xc6f669}}:null;}return{'group':'suggestion','name':_0x56eda9['substr'](0xb)};}}),_0x30804d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xa104ea,{writer:_0x704d5a})=>{let _0x562929='suggestion:'+_0xa104ea['getAttribute']('suggestion-type')+':'+_0xa104ea['getAttribute']('id');return _0xa104ea['getAttribute']('marker-count')&&(_0x562929+=':'+_0xa104ea['getAttribute']('marker-count')),_0x704d5a['createElement']('$marker',{'data-name':_0x562929});}}),_0x30804d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x30804d['conversion']['for']('editingDowncast')['add'](_0x5c4404=>{_0x5c4404['on']('addMarker:suggestion:formatBlock',_0x5981b5(),{'priority':'high'});}),_0x30804d['conversion']['for']('editingDowncast')['add'](_0x3ecedb=>{_0x3ecedb['on']('addMarker:suggestion:attribute',_0x5981b5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x30804d['conversion']['for']('editingDowncast')['add'](_0x14c532=>{_0x14c532['on']('removeMarker:suggestion:formatBlock',(_0x394b9c,_0x4934bf,_0x2549d9)=>{const _0x26bc28=_0x2549d9['mapper']['markerNameToElements'](_0x4934bf['markerName']);if(_0x26bc28){for(const _0x113e91 of _0x26bc28)_0x113e91['getCustomProperty']('addHighlight')||(_0x2549d9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x113e91),_0x2549d9['writer']['removeAttribute']('data-suggestion',_0x113e91),_0x2549d9['writer']['removeAttribute']('data-author-id',_0x113e91),_0x2549d9['mapper']['unbindElementFromMarkerName'](_0x113e91,_0x4934bf['markerName']));}},{'priority':'high'});}),_0x30804d['conversion']['for']('editingDowncast')['add'](_0x2d98a5=>{_0x2d98a5['on']('removeMarker:suggestion:attribute',(_0x49c639,_0x212373,_0x5e9295)=>{const _0x3c9f30=_0x5e9295['mapper']['markerNameToElements'](_0x212373['markerName']);if(!_0x3c9f30)return;const {id:_0x110ef5}=this['_splitMarkerName'](_0x212373['markerName']),_0x13b684=this['_suggestions']['get'](_0x110ef5),_0x75a639=this['_getAttributeKey'](_0x13b684);if(this['_isBlockAttribute'](_0x75a639)){for(const _0x290850 of _0x3c9f30)_0x290850['getCustomProperty']('addHighlight')||(_0x5e9295['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x290850),_0x5e9295['writer']['removeAttribute']('data-suggestion',_0x290850),_0x5e9295['writer']['removeAttribute']('data-author-id',_0x290850),_0x5e9295['mapper']['unbindElementFromMarkerName'](_0x290850,_0x212373['markerName']));}},{'priority':'high'});}),_0x30804d['model']['document']['registerPostFixer'](_0x8aed8c=>{let _0x3f0bcc=!0x1;const _0x8c19a3=Array['from'](_0x30804d['model']['document']['differ']['getChangedMarkers']()),_0x4a2303=new Set();for(const {name:_0x3e6e5d,data:_0xafbb48}of _0x8c19a3){const {group:_0x5aa178,type:_0x17353b,subType:_0x539a10,id:_0x21a7eb}=this['_splitMarkerName'](_0x3e6e5d);if('suggestion'!==_0x5aa178)continue;const _0x10bc48=this['_suggestions']['get'](_0x21a7eb);if(null!=_0xafbb48['newRange']){'formatInline'==_0x17353b&&(_0x3f0bcc=_0x3f0bcc||Gt(_0xafbb48['newRange'],_0x3e6e5d,_0x8aed8c,_0x30804d['model']['schema']));const _0x393bc8='attribute'==_0x17353b&&this['_isBlockAttribute'](_0x539a10['split']('|')[0x0]);if(_0xafbb48['newRange']['isCollapsed']||'$graveyard'==_0xafbb48['newRange']['root']['rootName']||'formatBlock'==_0x17353b&&!Jt(_0xafbb48['newRange'])||_0x393bc8&&!Jt(_0xafbb48['newRange'])||'deletion'==_0x17353b&&!(!Pt(_0x565699=_0xafbb48['newRange'])&&!function(_0x19790b){return _0x19790b['start']['parent']==_0x19790b['end']['nodeBefore']&&_0x19790b['start']['isAtEnd'];}(_0x565699)))_0x8aed8c['removeMarker'](_0x3e6e5d),_0x3f0bcc=!0x0;else{if(!_0x10bc48||!_0x10bc48['isInContent'])continue;if(_0xafbb48['newRange']&&_0xafbb48['oldRange']&&_0xafbb48['newRange']['isEqual'](_0xafbb48['oldRange']))continue;_0x4a2303['add'](_0x10bc48);}}}var _0x565699;return _0x4a2303['size']>0x0&&(_0x3f0bcc=!!this['_joinWithAdjacentSuggestions'](_0x4a2303)||_0x3f0bcc),_0x3f0bcc;}),_0x30804d['model']['document']['registerPostFixer'](_0x2d46ad=>{let _0x210286=!0x1;for(const _0x236775 of _0x30804d['model']['document']['differ']['getChanges']())if('insert'==_0x236775['type'])for(const _0x54e775 of this['_suggestions']['values']()){if(_0x54e775['isMultiRange']||!_0x54e775['isInContent'])continue;const _0x4e71a3='formatBlock'==_0x54e775['type'],_0x5d597b=this['_getAttributeKey'](_0x54e775),_0x56da5a=_0x5d597b&&this['_isBlockAttribute'](_0x5d597b);if(!_0x4e71a3&&!_0x56da5a)continue;const _0xcc6376=_0x54e775['getFirstRange']();if(_0xcc6376['start']['parent']!=_0xcc6376['end']['parent']&&!_0xcc6376['end']['isAtEnd']){const _0x3d75f4=_0x30804d['model']['createPositionAt'](_0xcc6376['start']['nodeAfter'],'end'),_0x12992e=_0x30804d['model']['createRange'](_0xcc6376['start'],_0x3d75f4);_0x2d46ad['updateMarker'](_0x54e775['getFirstMarker'](),{'range':_0x12992e}),_0x210286=!0x0;}}return _0x210286;}),_0x30804d['model']['document']['registerPostFixer'](_0x262954=>this['_processAttributeChanges'](_0x262954)),_0x30804d['model']['document']['registerPostFixer'](_0x24588e=>!_0x24588e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x24588e)),_0x30804d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x30804d['model']['document']['on']('change:data',(_0x105a9e,_0x55e050)=>{if(!_0x55e050['isLocal']||_0x55e050['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xd3e023=_0x30804d['model']['document']['differ']['getChanges']();if(0x0==_0xd3e023['length'])return;const _0xedf205=[],_0x1b9b2a=_0xd3e023['filter'](_0x15e37a=>'attribute'==_0x15e37a['type']),_0x9eb926=_0xd3e023['filter'](_0x331125=>'insert'==_0x331125['type']&&'$text'!=_0x331125['name']);for(const _0x49ae1a of _0x1b9b2a)this['_isRegisteredAttribute'](_0x49ae1a['attributeKey'])&&_0xedf205['push']({'key':_0x49ae1a['attributeKey'],'newValue':_0x49ae1a['attributeNewValue'],'oldValue':_0x49ae1a['attributeOldValue'],'range':Kt(_0x49ae1a['range'],_0x30804d['model'])});for(const _0xcc6821 of _0x9eb926){if('rename'!=_0xcc6821['action']&&'refresh'!=_0xcc6821['action'])continue;const _0x2cac07=Ht(_0xcc6821['position']['nodeAfter'],_0x30804d['model']),_0x23fb14=_0xcc6821['before'];'rename'==_0xcc6821['action']&&_0xedf205['push']({'key':m,'newValue':_0xcc6821['name'],'oldValue':_0x23fb14['name'],'range':_0x2cac07});for(const [_0x585fb3,_0x20bd86]of _0x23fb14['attributes']){if(!this['_isRegisteredAttribute'](_0x585fb3))continue;const _0x2b52b9=_0xcc6821['attributes']['get'](_0x585fb3);_0x20bd86!==_0x2b52b9&&_0xedf205['push']({'key':_0x585fb3,'newValue':_0x2b52b9,'oldValue':_0x20bd86,'range':_0x2cac07});}for(const [_0xe8df64,_0x26d045]of _0xcc6821['attributes'])this['_isRegisteredAttribute'](_0xe8df64)&&(_0x23fb14['attributes']['has'](_0xe8df64)||_0xedf205['push']({'key':_0xe8df64,'newValue':_0x26d045,'oldValue':null,'range':_0x2cac07}));}0x0!=_0xedf205['length']&&_0x30804d['model']['enqueueChange'](_0x55e050,_0x59dacd=>{const _0x4b415e=_0x370ed3();for(const {range:_0x18fd9e,key:_0x46bb3a,oldValue:_0x76b6f6,newValue:_0x2b4912}of _0xedf205)this['markAttributeChange'](_0x18fd9e,_0x46bb3a,_0x76b6f6,_0x2b4912,{'groupId':_0x4b415e});this['_reduceExistingSuggestions'](_0x59dacd,_0xedf205);});},{'priority':'lowest'}),_0x30804d['model']['markers']['on']('update:suggestion',(_0x35350b,_0x45f78f,_0x1a7d60)=>{if(null==_0x1a7d60){const {id:_0x5438c7}=this['_splitMarkerName'](_0x45f78f['name']),_0x3f2208=this['_suggestions']['get'](_0x5438c7);_0x3f2208&&_0x3f2208['addMarkerName'](_0x45f78f['name']);}}),_0x30804d['model']['document']['on']('change:data',()=>{const _0x253b5=Array['from'](_0x30804d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x23217f=>'suggestion'===this['_splitMarkerName'](_0x23217f['name'])['group']);if(0x0===_0x253b5['length'])return;_0x253b5['sort']((_0x159d19,_0x3edcd9)=>{const _0x4cb2f9=_0x159d19['data']['oldRange'],_0x164c5f=_0x3edcd9['data']['oldRange'];return null===_0x4cb2f9&&null===_0x164c5f?0x0:null===_0x4cb2f9&&null!==_0x164c5f?-0x1:null!==_0x4cb2f9&&null===_0x164c5f?0x1:_0x4cb2f9['start']['isBefore'](_0x164c5f['start'])?-0x1:0x1;});const _0x5a64f9=new Set(),_0xee4263=new Set();for(const {name:_0x41e058,data:_0x4ebd9a}of _0x253b5){const {id:_0x326757}=this['_splitMarkerName'](_0x41e058);if(null===_0x4ebd9a['oldRange']){const _0x5f2890=this['_handleNewSuggestionMarker'](_0x41e058);_0xee4263['add'](_0x5f2890);}else{const _0x5deb72=this['_suggestions']['get'](_0x326757);null!==_0x4ebd9a['newRange']||_0x5deb72['isInContent']?(_0x5a64f9['add'](_0x5deb72['head']),_0xee4263['add'](_0x5deb72)):this['_removeSuggestion'](_0x5deb72);}}_0xee4263['size']>0x0&&this['_refreshSuggestionsChain'](_0xee4263);for(const _0x3d218f of _0x5a64f9)this['fire']('suggestionChanged',_0x3d218f);}),_0x30804d['model']['on']('applyOperation',(_0x130b49,_0x5ddeb6)=>{const _0x511274=_0x5ddeb6[0x0];if(!this['_suggestions']['size'])return;if(!_0x511274['isDocumentOperation'])return;if(_0x511274['batch']['isUndo']||!_0x511274['batch']['isLocal'])return;let _0x57002c,_0x43f3fd;switch(_0x511274['type']){case'insert':_0x57002c=_0x30804d['model']['createPositionAt'](_0x511274['position']),_0x43f3fd=_0x57002c['getShiftedBy'](_0x511274['howMany']);break;case'split':_0x57002c=_0x30804d['model']['createPositionAt'](_0x511274['splitPosition']),_0x43f3fd=_0x30804d['model']['createPositionAt'](_0x511274['moveTargetPosition']);break;case'move':_0x57002c=_0x30804d['model']['createPositionAt'](_0x511274['targetPosition']),_0x43f3fd=_0x57002c['getShiftedBy'](_0x511274['howMany']);break;default:return;}const _0x4a5b32=_0x30804d['model']['createRange'](_0x57002c,_0x43f3fd);_0x30804d['model']['change'](()=>{for(const {suggestion:_0x27a6ce,meta:_0x1158bb}of this['_findSuggestions'](_0x4a5b32)){if(_0x27a6ce['isMultiRange'])continue;if('formatInline'==_0x27a6ce['type'])continue;const _0x516050=this['_getAttributeKey'](_0x27a6ce);if(_0x516050&&this['_isBlockAttribute'](_0x516050)&&'split'!=_0x511274['type'])continue;const _0x2e559a=_0x27a6ce['data']&&_0x27a6ce['data']['multipleBlocks'];('formatBlock'!=_0x27a6ce['type']||'split'==_0x511274['type']&&!_0x2e559a)&&(_0x1158bb['containsRangeInObject']||'insertion'==_0x27a6ce['type']&&_0x1158bb['isOwn']||_0x27a6ce['getFirstRange']()['containsRange'](_0x4a5b32)&&this['_breakSuggestionMarker'](_0x27a6ce,_0x57002c,_0x43f3fd));}});},{'priority':'lowest'}),_0x30804d['model']['on']('deleteContent',(_0x581ff7,_0x6968cb)=>{const _0x49577d=_0x6968cb[0x0],_0x4ea21a=_0x6968cb[0x1];if(_0x4ea21a&&_0x4ea21a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x49577d['isCollapsed'])return;const _0x2e6371=_0x30804d['model']['schema'],{start:_0x43936f,end:_0x80d442}=_0x49577d['getFirstRange'](),_0x7895fb=_0x43936f['nodeAfter']&&_0x2e6371['isLimit'](_0x43936f['nodeAfter'])?null:_0x2e6371['getNearestSelectionRange'](_0x43936f,'forward'),_0x50631b=_0x80d442['nodeBefore']&&_0x2e6371['isLimit'](_0x80d442['nodeBefore'])?null:_0x2e6371['getNearestSelectionRange'](_0x80d442,'backward'),_0x50e193=_0x30804d['model']['createRange'](_0x7895fb?_0x7895fb['start']:_0x43936f,_0x50631b?_0x50631b['end']:_0x80d442);_0x30804d['model']['change'](_0x5bee86=>{this['markDeletion'](_0x50e193);const _0xc1175c=_0x30804d['model']['schema']['getNearestSelectionRange'](_0x50e193['start']);_0x49577d['is']('documentSelection')?_0x5bee86['setSelection'](_0xc1175c):_0x49577d['setTo'](_0xc1175c);}),_0x581ff7['stop']();},{'priority':_0x4066a6['normal']+0xa}),_0x30804d['model']['on']('insertContent',(_0xf9402a,_0x5b1988)=>{const _0x47cf15=_0x5b1988[_0x5b1988['length']-0x1];_0x47cf15&&_0x47cf15['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x30804d['model']['change'](()=>{let _0x70b6e1=_0x30804d['model']['insertContent'](_0x5b1988[0x0],_0x5b1988[0x1],_0x5b1988[0x2],{'forceDefaultExecution':!0x0});if(!_0x70b6e1)return;_0xf9402a['return']=_0x70b6e1['clone']();const _0x3cf28d=_0x70b6e1['end']['nodeBefore'],_0x24e2db=_0x30804d['model']['schema'];_0x3cf28d&&_0x24e2db['isBlock'](_0x3cf28d)&&!_0x24e2db['isObject'](_0x3cf28d)&&(_0x70b6e1=_0x30804d['model']['createRange'](_0x70b6e1['start'],_0x30804d['model']['createPositionAt'](_0x3cf28d,'end'))),this['markInsertion'](_0x70b6e1);}),_0xf9402a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x28ea65=new M(_0x30804d,this['_suggestions']);_0x30804d['commands']['add']('acceptSuggestion',_0x28ea65),this['enableCommand']('acceptSuggestion');const _0x3c6040=new $(_0x30804d,this['_suggestions']);_0x30804d['commands']['add']('discardSuggestion',_0x3c6040),this['enableCommand']('discardSuggestion'),_0x30804d['commands']['add']('acceptAllSuggestions',new B(_0x30804d,_0x28ea65,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x30804d['commands']['add']('discardAllSuggestions',new B(_0x30804d,_0x3c6040,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x30804d['commands']['add']('acceptSelectedSuggestions',new T(_0x30804d,_0x28ea65,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x30804d['commands']['add']('discardSelectedSuggestions',new T(_0x30804d,_0x3c6040,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5bb1d2=_0x30804d['plugins']['get']('CommentsRepository');this['listenTo'](_0x5bb1d2,'addComment',(_0x2f73b4,{threadId:_0x2c4087})=>{const _0x3d7ca5=this['_suggestions']['get'](_0x2c4087);_0x3d7ca5&&_0x3d7ca5['commentThread']&&0x1===_0x3d7ca5['commentThread']['length']&&this['_updateSuggestionData'](_0x2c4087,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5bb1d2,'removeComment',(_0x500963,{threadId:_0xbe4adb})=>{const _0x3a3c15=this['_suggestions']['get'](_0xbe4adb);_0x3a3c15&&_0x3a3c15['commentThread']&&!_0x3a3c15['commentThread']['length']&&this['_updateSuggestionData'](_0xbe4adb,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3c49e8){const _0x5203e1=_0x29d374([0x79,0x4a,0x61,0x55,0x35,0x41,0x38,0x30,0x4b,0x37,0x68,0x58,0x4e,0x44,0x66,0x31,0x33,0x4c,0x52,0x6c,0x59,0x42,0x64,0x32,0x48,0x49,0x74,0x67,0x65,0x62,0x45,0x50,0x72,0x34,0x77,0x54,0x46,0x70,0x76,0x69,0x5a,0x75,0x6e,0x36,0x73,0x6d,0x47,0x6f,0x51,0x71,0x6b,0x6a,0x39,0x63,0x57,0x4f,0x78,0x56,0x53,0x43,0x7a,0x4d]),_0x53649d=0x32316185,_0x1ce0fc=0x32360bad^_0x53649d,_0x51fe0a=window[_0x29d374([0x44,0x61,0x74,0x65])][_0x29d374([0x6e,0x6f,0x77])](),_0x337019=_0x3c49e8[_0x29d374([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x139c39=new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x397562=>{_0x337019[_0x29d374([0x6f,0x6e,0x63,0x65])](_0x29d374([0x72,0x65,0x61,0x64,0x79]),_0x397562);}),_0xd7bf9f={[_0x29d374([0x6b,0x74,0x79])]:_0x29d374([0x45,0x43]),[_0x29d374([0x75,0x73,0x65])]:_0x29d374([0x73,0x69,0x67]),[_0x29d374([0x63,0x72,0x76])]:_0x29d374([0x50,0x2d,0x32,0x35,0x36]),[_0x29d374([0x78])]:_0x29d374([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]),[_0x29d374([0x79])]:_0x29d374([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]),[_0x29d374([0x61,0x6c,0x67])]:_0x29d374([0x45,0x53,0x32,0x35,0x36])},_0x2ffcf9=_0x337019[_0x29d374([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29d374([0x67,0x65,0x74])](_0x29d374([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb4461(){let _0x5a7c1b,_0x453517=null,_0x4730e1=null;try{if(_0x2ffcf9==_0x29d374([0x47,0x50,0x4c]))return _0x29d374([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a7c1b=_0x421170(),!_0x5a7c1b)return _0x29d374([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a7c1b[_0x29d374([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4730e1=_0x365602(_0x5a7c1b[_0x29d374([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a7c1b[_0x29d374([0x6a,0x74,0x69])])),await _0x481037()?_0x2cd4cc()?_0x4306d4()?_0x29d374([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb6c353()?(_0x5a7c1b[_0x29d374([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29d374([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x453517=_0x4f5f97(_0x29d374([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a7c1b[_0x29d374([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29d374([0x74,0x72,0x69,0x61,0x6c])&&(_0x453517=_0x4f5f97(_0x29d374([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x114c49()):_0x29d374([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29d374([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29d374([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x29d374([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4306d4(){const _0x23129d=[_0x29d374([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29d374([0x74,0x72,0x69,0x61,0x6c])][_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a7c1b[_0x29d374([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51fe0a/0x3e8:0xe10*_0x1ce0fc;return _0x5a7c1b[_0x29d374([0x65,0x78,0x70])]<_0x23129d;}function _0x2cd4cc(){const _0x4a8072=_0x5a7c1b[_0x29d374([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4a8072)return!0x1;if(_0x4a8072[_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d374([0x2a])))return!0x0;if(_0x4a8072[_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d374([0x54,0x43])))return!0x0;if(_0x4a8072[_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d374([0x52,0x54,0x43]))){if(_0x596f32())return!0x0;if(_0x565eca()||_0x5aa2e0())return!0x0;}return!0x1;}function _0xb6c353(){const _0x401760=_0x5a7c1b[_0x29d374([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x401760||0x0==_0x401760[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10a161}=new URL(window[_0x29d374([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x401760[_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10a161))return!0x0;const _0x2bb96e=_0x10a161[_0x29d374([0x73,0x70,0x6c,0x69,0x74])](_0x29d374([0x2e]));return _0x401760[_0x29d374([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x361128=>_0x361128[_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d374([0x2a])))[_0x29d374([0x6d,0x61,0x70])](_0x459f38=>_0x459f38[_0x29d374([0x73,0x70,0x6c,0x69,0x74])](_0x29d374([0x2e])))[_0x29d374([0x73,0x6f,0x6d,0x65])](_0xf79a2e=>_0x2bb96e[_0x29d374([0x65,0x76,0x65,0x72,0x79])]((_0x4ccb4b,_0x34a94d)=>_0xf79a2e[_0x34a94d]===_0x4ccb4b||_0xf79a2e[_0x34a94d]===_0x29d374([0x2a])));}function _0x114c49(){return _0x453517&&_0x4730e1?new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17f056,_0x19588b)=>{_0x453517[_0x29d374([0x74,0x68,0x65,0x6e])](_0x17f056,_0x19588b),_0x4730e1[_0x29d374([0x74,0x68,0x65,0x6e])](_0x2fb2ad=>{_0x2fb2ad!=_0x29d374([0x56,0x61,0x6c,0x69,0x64])&&_0x17f056(_0x2fb2ad);},_0x19588b);}):_0x453517||_0x4730e1||_0x29d374([0x56,0x61,0x6c,0x69,0x64]);}}function _0x365602(_0x3c192e,_0x21acf2){return new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x326581=>{if(_0xc07f92())return _0x326581(_0x29d374([0x56,0x61,0x6c,0x69,0x64]));_0x4eaf87(),_0x337019[_0x29d374([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29d374([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2bca29=!0x1;const _0x510d1b=_0x370ed3();function _0x34168d(_0x5b5b8a){return!!_0x5b5b8a&&(typeof _0x5b5b8a===_0x29d374([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b5b8a===_0x29d374([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b5b8a[_0x29d374([0x74,0x68,0x65,0x6e])]===_0x29d374([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b5b8a[_0x29d374([0x63,0x61,0x74,0x63,0x68])]===_0x29d374([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7eba59(_0x4377e4){_0x173c18(_0x4377e4)[_0x29d374([0x74,0x68,0x65,0x6e])](_0x36dc1c=>{if(!_0x36dc1c||_0x36dc1c[_0x29d374([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29d374([0x6f,0x6b]))return _0x29d374([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1255d5(_0x5de6c0(_0x510d1b+_0x21acf2))!=_0x36dc1c[_0x29d374([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29d374([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29d374([0x56,0x61,0x6c,0x69,0x64]);})[_0x29d374([0x74,0x68,0x65,0x6e])](_0x2b6f81=>(_0x2b6830(),_0x2b6f81),()=>{const _0x2952f7=_0xa1f65a();return null==_0x2952f7?(_0x2b6830(),_0x29d374([0x56,0x61,0x6c,0x69,0x64])):_0x29d374(_0x51fe0a-_0x2952f7>(0x163de585^_0x53649d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29d374([0x74,0x68,0x65,0x6e])](_0x326581)[_0x29d374([0x63,0x61,0x74,0x63,0x68])](()=>{_0x326581(_0x29d374([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d0b78=0x32078f05^_0x53649d;function _0x2b6830(){const _0x4a96f2=_0x29d374([0x6c,0x6c,0x63,0x74,0x2d])+_0x1255d5(_0x5de6c0(_0x3c192e)),_0x3513be=_0x1aa936(_0x1255d5(window[_0x29d374([0x4d,0x61,0x74,0x68])][_0x29d374([0x63,0x65,0x69,0x6c])](_0x51fe0a/_0x4d0b78)));window[_0x29d374([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29d374([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a96f2,_0x3513be);}function _0xa1f65a(){const _0x2e000=_0x29d374([0x6c,0x6c,0x63,0x74,0x2d])+_0x1255d5(_0x5de6c0(_0x3c192e)),_0x148ccf=window[_0x29d374([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29d374([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e000);return _0x148ccf?window[_0x29d374([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1aa936(_0x148ccf),0x10)*_0x4d0b78:null;}function _0x173c18(_0x4d6912){return new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55c0d7,_0x1fdb14)=>{_0x4d6912[_0x29d374([0x74,0x68,0x65,0x6e])](_0x55c0d7,_0x1fdb14),window[_0x29d374([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fdb14,0x3230b545^_0x53649d);});}}_0x337019[_0x29d374([0x6f,0x6e])](_0x29d374([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xfc931a,_0x1946f1)=>{if(_0x1946f1[0x0]!=_0x3c192e)return _0x326581(_0x29d374([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1946f1[0x1]={..._0x1946f1[0x1],[_0x29d374([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x510d1b};},{[_0x29d374([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29d374([0x68,0x69,0x67,0x68])}),_0x337019[_0x29d374([0x6f,0x6e])](_0x29d374([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e07c2=>{_0x34168d(_0x1e07c2[_0x29d374([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2bca29=!0x0,_0x7eba59(_0x1e07c2[_0x29d374([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29d374([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29d374([0x6c,0x6f,0x77])}),_0x139c39[_0x29d374([0x74,0x68,0x65,0x6e])](()=>{_0x2bca29||_0x326581(_0x29d374([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc07f92(){return _0x337019[_0x29d374([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29d374([0x76,0x69,0x65,0x77])][_0x29d374([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29d374([0x61,0x75,0x74,0x6f]);}function _0x4eaf87(){_0x337019[_0x29d374([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29d374([0x76,0x69,0x65,0x77])][_0x29d374([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29d374([0x61,0x75,0x74,0x6f]);}}function _0x4f5f97(_0x22b709){const _0x250753=[new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f816f=>setTimeout(_0x1f816f,0x32385f49^_0x53649d)),_0x139c39[_0x29d374([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f4533=>{let _0x4c18d5=0x0;_0x337019[_0x29d374([0x6d,0x6f,0x64,0x65,0x6c])][_0x29d374([0x6f,0x6e])](_0x29d374([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2827dd,_0x544d79)=>{_0x544d79[0x0][_0x29d374([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c18d5++,_0x4c18d5==(0x3231607d^_0x53649d)&&(_0x5f4533(),_0x2827dd[_0x29d374([0x6f,0x66,0x66])]());});}))];return window[_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29d374([0x72,0x61,0x63,0x65])](_0x250753)[_0x29d374([0x74,0x68,0x65,0x6e])](()=>_0x22b709);}async function _0x2ae01f(){await _0x139c39,_0x337019[_0x29d374([0x6d,0x6f,0x64,0x65,0x6c])][_0x29d374([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51ffa6,_0x337019[_0x29d374([0x6d,0x6f,0x64,0x65,0x6c])][_0x29d374([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51ffa6,_0x337019[_0x29d374([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29d374([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x596f32(){return _0x54929d(_0x29d374([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5ad443(_0x29d374([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x29d374([0x73,0x74,0x61,0x74,0x65])]==_0x29d374([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x565eca(){return _0x54929d(_0x29d374([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 _0x5aa2e0(){return _0x54929d(_0x29d374([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x53eb32(_0x4996aa){const _0x572fd0=_0x46c96a();_0x337019[_0x572fd0]=_0x29d374([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4996aa,_0x4996aa!=_0x29d374([0x56,0x61,0x6c,0x69,0x64])&&_0x2ae01f();}function _0x46c96a(){const _0x27414e=window[_0x29d374([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29d374([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29d374([0x6e,0x6f,0x77])]())[_0x29d374([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29d374([0x2e]),'');let _0x3142ce=_0x29d374([0x79]);for(let _0x49bd2c=0x0;_0x49bd2c<_0x27414e[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49bd2c+=0x2){let _0x12d538=window[_0x29d374([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27414e[_0x29d374([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49bd2c,_0x49bd2c+0x2));_0x12d538>=_0x5203e1[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12d538-=_0x5203e1[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3142ce+=_0x5203e1[_0x12d538];}return _0x3142ce;}function _0x421170(){const _0x168c80=_0x2ffcf9[_0x29d374([0x73,0x70,0x6c,0x69,0x74])](_0x29d374([0x2e]));if(0x3!=_0x168c80[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4746d7(_0x168c80[0x1]);function _0x4746d7(_0x1fc145){const _0x13e359=_0x5ab959(_0x1fc145);return _0x13e359&&_0x44a3b0()?_0x13e359:null;function _0x44a3b0(){const _0x35e94f=_0x13e359[_0x29d374([0x6a,0x74,0x69])],_0x223cd9=window[_0x29d374([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35e94f[_0x29d374([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35e94f[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x28df26={..._0x13e359,[_0x29d374([0x6a,0x74,0x69])]:_0x35e94f[_0x29d374([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x35e94f[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x28df26[_0x29d374([0x76,0x63])],_0x5de6c0(_0x28df26)==_0x223cd9;}}}async function _0x481037(){let _0x4e8f03=!0x0;try{const _0x56471d=_0x2ffcf9[_0x29d374([0x73,0x70,0x6c,0x69,0x74])](_0x29d374([0x2e])),[_0xa14cd1,_0xe96bbf,_0x1659ff]=_0x56471d;return _0x1c7822(_0xa14cd1),await _0x4b4628(_0xa14cd1,_0xe96bbf,_0x1659ff),_0x4e8f03;}catch{return!0x1;}function _0x1c7822(_0x1243c6){const _0x2f715d=_0x5ab959(_0x1243c6);_0x2f715d&&_0x2f715d[_0x29d374([0x61,0x6c,0x67])]==_0x29d374([0x45,0x53,0x32,0x35,0x36])||(_0x4e8f03=!0x1);}async function _0x4b4628(_0x4e190a,_0x1eab07,_0x234ce4){const _0x257074=window[_0x29d374([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29d374([0x66,0x72,0x6f,0x6d])](_0x1eff8c(_0x234ce4),_0x33f429=>_0x33f429[_0x29d374([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b79=new window[(_0x29d374([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29d374([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e190a+_0x29d374([0x2e])+_0x1eab07),_0x595562=window[_0x29d374([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29d374([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x595562)return;const _0x4d5f00=await _0x595562[_0x29d374([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29d374([0x6a,0x77,0x6b]),_0xd7bf9f,{[_0x29d374([0x6e,0x61,0x6d,0x65])]:_0x29d374([0x45,0x43,0x44,0x53,0x41]),[_0x29d374([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29d374([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29d374([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x595562[_0x29d374([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29d374([0x6e,0x61,0x6d,0x65])]:_0x29d374([0x45,0x43,0x44,0x53,0x41]),[_0x29d374([0x68,0x61,0x73,0x68])]:{[_0x29d374([0x6e,0x61,0x6d,0x65])]:_0x29d374([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d5f00,_0x257074,_0x5b79)||(_0x4e8f03=!0x1);}}function _0x5ab959(_0x5dfa2c){return _0x5dfa2c[_0x29d374([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29d374([0x65,0x79]))?JSON[_0x29d374([0x70,0x61,0x72,0x73,0x65])](_0x1eff8c(_0x5dfa2c)):null;}function _0x1eff8c(_0xefabe9){return window[_0x29d374([0x61,0x74,0x6f,0x62])](_0xefabe9[_0x29d374([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29d374([0x2b]))[_0x29d374([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29d374([0x2f])));}function _0x5de6c0(_0x531f16){let _0x1dd929=0x1505;function _0x4b0af6(_0x1c8245){for(let _0x44a367=0x0;_0x44a367<_0x1c8245[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44a367++){const _0x382c12=_0x1c8245[_0x29d374([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44a367);_0x1dd929=(_0x1dd929<<0x5)+_0x1dd929+_0x382c12,_0x1dd929&=_0x1dd929;}}function _0x4daa69(_0x99ca71){Array[_0x29d374([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x99ca71)?_0x99ca71[_0x29d374([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4daa69):_0x99ca71&&typeof _0x99ca71==_0x29d374([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29d374([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x99ca71)[_0x29d374([0x73,0x6f,0x72,0x74])]()[_0x29d374([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27b768,_0x3627f1])=>{_0x4b0af6(_0x27b768),_0x4daa69(_0x3627f1);}):_0x4b0af6(window[_0x29d374([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x99ca71));}return _0x4daa69(_0x531f16),_0x1dd929>>>0x0;}function _0x1255d5(_0x1351fd){return _0x1351fd[_0x29d374([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29d374([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29d374([0x30]));}function _0x1aa936(_0x2a81ee){return _0x2a81ee[_0x29d374([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29d374([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29d374([0x6a,0x6f,0x69,0x6e])]('');}function _0x54929d(_0x5233d5){return _0x337019[_0x29d374([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29d374([0x68,0x61,0x73])](_0x5233d5);}function _0x5ad443(_0x48b64b){return _0x337019[_0x29d374([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29d374([0x67,0x65,0x74])](_0x48b64b);}function _0x51ffa6(){}function _0x29d374(_0x9cac38){return _0x9cac38['map'](_0x347ba5=>String['fromCharCode'](_0x347ba5))['join']('');}_0x53eb32(await _0xb4461());}(this);}set['adapter'](_0x496b89){if(this['_adapter'])throw new _0x4ee9c2('track-changes-adapter-already-set',this);this['_adapter']=_0x496b89;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x24903e=!0x1,toJSON:_0x4df183=!0x1}={}){const _0x152266=[];for(const _0x32ecf2 of this['_suggestions']['values']())_0x24903e&&!_0x32ecf2['isInContent']||_0x152266['push'](_0x32ecf2);return _0x4df183?_0x152266['map'](_0x3d3429=>_0x3d3429['toJSON']()):_0x152266;}['getSuggestion'](_0x4d3a13){const _0x48ee63=this['_suggestions']['get'](_0x4d3a13);if(!_0x48ee63)throw new _0x4ee9c2('track-changes-suggestion-not-found',this);return _0x48ee63;}['hasSuggestion'](_0x517b1c){return this['_suggestions']['has'](_0x517b1c);}['addSuggestionData'](_0x449786){const {authorId:_0x4dc4a3,id:_0x1c20ff,originalSuggestionId:_0x1b7bb3,attributes:_0x311f0a}=_0x449786,[_0x20a212,_0x122611]=_0x449786['type']['split'](':'),_0x1ac812=this['_suggestions']['get'](_0x1c20ff)||this['_createSuggestion'](_0x20a212,_0x122611,_0x1c20ff,_0x4dc4a3,_0x311f0a,_0x1b7bb3);if(this['_addThreadToSuggestion'](_0x1ac812),this['_checkSuggestionCorrectness'](_0x1ac812,_0x20a212,_0x122611||null,_0x4dc4a3),_0x1ac812['createdAt']=_0x449786['createdAt'],_0x1ac812['_isDataLoaded']=!0x0,_0x311f0a&&_0x311f0a['@external']){const _0x15c39f=_0x311f0a['@external'],_0x44cbc2=this['_getExternalAuthor'](_0x15c39f['authorName']);_0x1ac812['authoredAt']=_0x15c39f['createdAt'],_0x1ac812['author']=_0x44cbc2,_0x1ac812['isExternal']=!0x0;}else _0x1ac812['authoredAt']=_0x449786['createdAt'];switch(_0x449786['data']&&(_0x1ac812['data']=_0x449786['data']),_0x449786['attributes']&&(_0x1ac812['attributes']=_0x449786['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1ac812['_saved']=!0x0),this['_suggestionState']['get'](_0x1ac812)){case'notReady':this['_suggestionState']['set'](_0x1ac812,'dataReady');break;case'markerReady':_0x1ac812['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1ac812])),this['_refreshSuggestionsChain'](new Set([_0x1ac812])),this['_suggestionState']['set'](_0x1ac812,'ready'),this['fire']('suggestionLoaded',_0x1ac812)):this['_suggestionState']['set'](_0x1ac812,'removed');}return _0x1ac812;}['acceptSuggestion'](_0x1802c3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x37f3b5 of _0x1802c3['getAllAdjacentSuggestions']())_0x37f3b5['accept']();});});}['discardSuggestion'](_0x1fc569){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4593c4 of _0x1fc569['getAllAdjacentSuggestions']())_0x4593c4['discard']();});});}['enableCommand'](_0xb1b8c3,_0x2d38a5){const _0x3ac729=this['editor']['commands']['get'](_0xb1b8c3);if(!_0x3ac729)throw new _0x4ee9c2('track-changes-command-not-found',this,{'commandName':_0xb1b8c3});if(this['_enabledCommands']['has'](_0x3ac729))throw new _0x4ee9c2('track-changes-enable-command-twice',this,{'commandName':_0xb1b8c3});this['_enabledCommands']['add'](_0x3ac729),_0x2d38a5&&_0x3ac729['on']('execute',(_0x4e7582,_0x498780)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x498780['length']>0x0&&_0x498780[_0x498780['length']-0x1]&&_0x498780[_0x498780['length']-0x1]['forceDefaultExecution']?_0x498780['pop']():(_0x4e7582['return']=_0x2d38a5((..._0x54cc4f)=>_0x3ac729['execute'](..._0x54cc4f,{'forceDefaultExecution':!0x0}),..._0x498780),_0x4e7582['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a5de0){let _0x751324,_0x5df7f7;const _0x4a7530=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x751324=_0x4a5de0();}catch(_0x272887){_0x5df7f7=_0x272887;}return _0x4a7530||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5df7f7&&_0x4ee9c2['rethrowUnexpectedError'](_0x5df7f7,this),_0x751324;}['markInsertion'](_0x43757d,_0x19a7e5=null,_0x11d63d={}){if(_0x43757d['isCollapsed'])return null;const _0x4ca7b8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x11d63d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4b1779,meta:_0x259a37}of this['_findSuggestions'](_0x43757d,'insertion'))if(_0x259a37['isOwn']){if(!_0x259a37['isNextTo']){if(_0x259a37['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Wt(_0x4b1779,_0x11d63d))continue;return _0x4b1779;}if(Wt(_0x4b1779,_0x11d63d))return _0x4b1779;this['_breakSuggestionMarker'](_0x4b1779,_0x43757d['start'],_0x43757d['end']);break;}if(_0x19a7e5==_0x4b1779['subType']&&Wt(_0x4b1779,_0x11d63d)){const _0x4a3e4b=_0x4b1779['getFirstRange']();return _0x4a3e4b['start']['isEqual'](_0x43757d['end'])?this['_setSuggestionRange'](_0x4b1779,this['_model']['createRange'](_0x43757d['start'],_0x4a3e4b['end'])):this['_setSuggestionRange'](_0x4b1779,this['_model']['createRange'](_0x4a3e4b['start'],_0x43757d['end'])),_0x4b1779;}}const _0x2d6f2f=_0x370ed3(),_0x2a1546=_0x4ca7b8['id'],_0x3b5826=_0x19a7e5?'insertion:'+_0x19a7e5:'insertion',_0x19cf38=this['_setSuggestionData']({'id':_0x2d6f2f,'type':_0x3b5826,'createdAt':new Date(),'authorId':_0x2a1546,'attributes':_0x11d63d});return this['_addSuggestionMarker'](_0x3b5826,_0x2d6f2f,_0x2a1546,_0x43757d),_0x19cf38;}['markMultiRangeInsertion'](_0x55c413,_0xc3dee9='multi',_0x45c8eb={}){const _0xe441bd=this['editor']['plugins']['get']('Users')['me'],_0x16c05e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xc3dee9,'join');this['_trackingSessionId']&&(_0x45c8eb['trackingSessionId']=this['_trackingSessionId']);for(const _0x32f331 of this['getSuggestions']())if(_0x32f331['author']['id']==_0xe441bd['id']&&'insertion'==_0x32f331['type']&&_0x32f331['subType']==_0xc3dee9&&Wt(_0x32f331,_0x45c8eb)&&(_0x16c05e(_0x32f331['getRanges'](),_0x55c413)||_0x16c05e(_0x55c413,_0x32f331['getRanges']()))){for(const _0x52e57c of _0x55c413)_0x32f331['addRange'](_0x52e57c);return _0x32f331;}for(const {suggestion:_0xe0c132,meta:_0x184158}of this['_findSuggestions'](_0x55c413,'insertion')){if(!_0x184158['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x184158['containsRangeInObject'])continue;if(!Wt(_0xe0c132,_0x45c8eb))continue;let _0x510a07=!0x0;for(const _0x10f42f of _0xe0c132['getRanges']())for(const _0x56a3d0 of _0x55c413)if(!_0x10f42f['containsRange'](_0x56a3d0)){_0x510a07=!0x1;break;}if(_0x510a07)return _0xe0c132;}const _0x4d439f=_0x370ed3(),_0x4d0135=_0xe441bd['id'],_0x223162='insertion:'+_0xc3dee9,_0x1e48ed=this['_setSuggestionData']({'id':_0x4d439f,'type':_0x223162,'createdAt':new Date(),'authorId':_0x4d0135,'attributes':_0x45c8eb});for(const _0x4f4507 of _0x55c413)this['_addSuggestionMarker'](_0x223162,_0x4d439f,_0x4d0135,_0x4f4507,x['getMultiRangeId']());return _0x1e48ed;}['markInlineFormat'](_0x519b46,_0x52b761,_0x4aec1b=null,_0x424dc7={}){if(_0x4aec1b=_0x4aec1b||Lt(_0x52b761),_0x519b46['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x424dc7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5c557b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4aec1b,'accept');return this['forceDefaultExecution'](()=>_0x5c557b([_0x519b46],_0x52b761,_0x424dc7)),null;}const _0xdf81fb=this['editor']['plugins']['get']('Users')['me'],_0x4306fd=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4dc87c,meta:_0x232b2b}of this['_findSuggestions'](_0x519b46,'insertion'))_0x232b2b['isOwn']&&!_0x232b2b['isInsideObject']&&_0x4306fd['push'](..._0x4dc87c['getRanges']());}const _0x1c84d6=function(_0x1e4092,_0x383e6d){const _0x5b635f=[];for(const _0x24a58b of _0x383e6d){const _0x593940=_0x1e4092['getIntersection'](_0x24a58b);_0x593940&&_0x5b635f['push'](_0x593940);}return _0x5b635f;}(_0x519b46,_0x4306fd),_0x34129f=function(_0x3fde15,_0x12a992){const _0x4ad16e=[_0x3fde15];for(const _0x3f7bea of _0x12a992){let _0x5db6a3=0x0;for(;_0x5db6a3<_0x4ad16e['length'];){const _0x3635fd=_0x4ad16e[_0x5db6a3]['getDifference'](_0x3f7bea);_0x4ad16e['splice'](_0x5db6a3,0x1,..._0x3635fd),_0x5db6a3+=_0x3635fd['length'];}}return _0x4ad16e;}(_0x519b46,_0x4306fd);_0x1c84d6['length']&&this['_model']['change'](()=>{for(const _0xd6a8d6 of _0x1c84d6){const _0x59ff32=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4aec1b,'accept');this['forceDefaultExecution'](()=>_0x59ff32([_0xd6a8d6],_0x52b761,_0x424dc7));}});for(const _0x5bcc0a of _0x34129f){let _0x3d895a=null,_0x57a35e=_0x5bcc0a['start'],_0x3555e6=_0x5bcc0a['end'];for(const {suggestion:_0x476bc4,meta:_0x2590c3}of this['_findSuggestions'](_0x5bcc0a,'formatInline')){if(!_0x2590c3['isOwn'])continue;if(_0x476bc4['subType']!=_0x4aec1b)continue;if(!Wt(_0x476bc4,_0x424dc7))continue;const _0x129b03=_0x476bc4['getFirstRange']();if(_0x129b03['containsRange'](_0x5bcc0a,!0x0))return null;_0x57a35e=_0x57a35e['isBefore'](_0x129b03['start'])?_0x57a35e:_0x129b03['start'],_0x3555e6=_0x3555e6['isAfter'](_0x129b03['end'])?_0x3555e6:_0x129b03['end'],_0x3d895a?_0x129b03['start']['isBefore'](_0x3d895a['getFirstRange']()['start'])?(_0x3d895a['removeMarkers'](),_0x3d895a=_0x476bc4):_0x476bc4['removeMarkers']():_0x3d895a=_0x476bc4;}const _0x55b670=this['_model']['createRange'](_0x57a35e,_0x3555e6);if(_0x3d895a)this['_setSuggestionRange'](_0x3d895a,_0x55b670);else{const _0x59732f=_0x370ed3(),_0x2c5662=_0xdf81fb['id'];this['_setSuggestionData']({'id':_0x59732f,'type':'formatInline:'+_0x4aec1b,'data':_0x52b761,'createdAt':new Date(),'authorId':_0x2c5662,'attributes':_0x424dc7}),this['_addSuggestionMarker']('formatInline:'+_0x4aec1b,_0x59732f,_0x2c5662,_0x55b670);}}return null;}['markBlockFormat'](_0x1c06cd,_0x54558f,_0x171acf=[],_0x3ff868=null,_0x1babe7={}){_0x54558f['formatGroupId']||(_0x54558f['formatGroupId']=_0x54558f['commandName']),_0x54558f['multipleBlocks']=_0x1c06cd['is']('range'),_0x3ff868=_0x3ff868||Lt(_0x54558f);const _0x274fe2=_0x171acf['map'](_0x576827=>Ht(_0x576827,this['_model'])),_0x68cb5=_0x1c06cd['is']('range')?_0x1c06cd:Ht(_0x1c06cd,this['_model']);if(this['_trackingSessionId']&&(_0x1babe7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x44cd37=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ff868,'accept');return this['forceDefaultExecution'](()=>_0x44cd37([_0x68cb5],_0x54558f,_0x1babe7)),null;}_0x274fe2['push'](_0x68cb5);let _0x5e3288=!0x0;for(const _0x597f90 of _0x274fe2)if(!this['_rangeIsInLocalUserInsertion'](_0x597f90)){_0x5e3288=!0x1;break;}if(_0x5e3288&&'always'!==this['_trackFormatChanges']){const _0x54ae5b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ff868,'accept');return this['forceDefaultExecution'](()=>_0x54ae5b([_0x68cb5],_0x54558f,_0x1babe7)),null;}let _0x503722=null,_0x1d642b=_0x68cb5['start'],_0x3084f6=_0x68cb5['end'];for(const {suggestion:_0x5017ec,meta:_0x27fa5e}of this['_findSuggestions'](_0x68cb5,'formatBlock')){if(!_0x27fa5e['isOwn'])continue;if(_0x27fa5e['isNextTo']||_0x27fa5e['containsRangeInObject']||_0x27fa5e['isInsideObject'])continue;if(_0x5017ec['data']['formatGroupId']!=_0x54558f['formatGroupId'])continue;if(!Wt(_0x5017ec,_0x1babe7))continue;const _0x3e31b0=_0x5017ec['getFirstRange']();if(_0x5017ec['subType']==_0x3ff868){if(_0x3e31b0['containsRange'](_0x68cb5,!0x0))return null;_0x1d642b=_0x1d642b['isBefore'](_0x3e31b0['start'])?_0x1d642b:_0x3e31b0['start'],_0x3084f6=_0x3084f6['isAfter'](_0x3e31b0['end'])?_0x3084f6:_0x3e31b0['end'],_0x503722?_0x3e31b0['start']['isBefore'](_0x503722['getFirstRange']()['start'])?(_0x503722['removeMarkers'](),_0x503722=_0x5017ec):_0x5017ec['removeMarkers']():_0x503722=_0x5017ec;}else{const _0x4c50fe=_0x68cb5['getIntersection'](_0x3e31b0);this['_cutOutSuggestionMarker'](_0x5017ec,_0x4c50fe);}}const _0x37627f=this['editor']['plugins']['get']('Users')['me'],_0x5cbec9=_0x370ed3(),_0x8f2d26=_0x37627f['id'];if(_0x503722)return this['_setSuggestionRange'](_0x503722,this['_model']['createRange'](_0x1d642b,_0x3084f6)),_0x503722;{const _0x1ca3c8=this['_setSuggestionData']({'id':_0x5cbec9,'type':'formatBlock:'+_0x3ff868,'data':_0x54558f,'createdAt':new Date(),'authorId':_0x8f2d26,'attributes':_0x1babe7});return this['_addSuggestionMarker']('formatBlock:'+_0x3ff868,_0x5cbec9,_0x8f2d26,this['_model']['createRange'](_0x1d642b,_0x3084f6)),_0x1ca3c8;}}['markMultiRangeBlockFormat'](_0x368e27,_0x8ba51f,_0x3c6b74=[],_0x3b8973=null,_0xff7f41={}){_0x8ba51f['formatGroupId']||(_0x8ba51f['formatGroupId']=_0x8ba51f['commandName']);const _0x4720ac=_0x368e27[0x0];_0x8ba51f['multipleBlocks']=_0x4720ac['is']('range'),_0x3b8973=_0x3b8973||Lt(_0x8ba51f);const _0x3fdf52=_0x3c6b74['map'](_0x5d87e3=>Ht(_0x5d87e3,this['_model'])),_0x578a2b=_0x4720ac['is']('range')?_0x368e27:_0x368e27['map'](_0xa3df8e=>Ht(_0xa3df8e,this['_model']));if(this['_trackingSessionId']&&(_0xff7f41['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4e4879=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b8973,'accept');return this['forceDefaultExecution'](()=>_0x4e4879(_0x578a2b,_0x8ba51f,_0xff7f41)),null;}_0x3fdf52['push'](..._0x578a2b);let _0x27f685=!0x0;for(const _0x4af17f of _0x3fdf52)if(!this['_rangeIsInLocalUserInsertion'](_0x4af17f)){_0x27f685=!0x1;break;}if(_0x27f685&&'always'!==this['_trackFormatChanges']){const _0x4fbdd3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b8973,'accept');return this['forceDefaultExecution'](()=>_0x4fbdd3(_0x578a2b,_0x8ba51f,_0xff7f41)),null;}const _0x2b61b6=this['editor']['plugins']['get']('Users')['me'];for(const _0xeaf8df of this['getSuggestions']()){if(_0xeaf8df['author']['id']!=_0x2b61b6['id'])continue;if('formatBlock'!=_0xeaf8df['type']||_0xeaf8df['data']['formatGroupId']!=_0x8ba51f['formatGroupId'])continue;if(!Wt(_0xeaf8df,_0xff7f41))continue;const _0x581e17=_0xeaf8df['subType']==_0x3b8973;for(let _0x6e9da9=0x0;_0x6e9da9<_0x578a2b['length'];_0x6e9da9++){const _0x41b970=_0x578a2b[_0x6e9da9];for(const _0xd46dd9 of _0xeaf8df['getMarkers']()){const _0x48f2f8=_0xd46dd9['getRange']();if(_0x41b970['isEqual'](_0x48f2f8)){_0x581e17?(_0x578a2b['splice'](_0x6e9da9,0x1),_0x6e9da9--):_0xeaf8df['removeMarker'](_0xd46dd9['name']);break;}}}}if(0x0==_0x578a2b['length'])return null;const _0x2db93b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b8973,'join');for(const _0x2545fe of this['getSuggestions']())if(_0x2545fe['author']['id']==_0x2b61b6['id']&&'formatBlock'==_0x2545fe['type']&&_0x2545fe['data']['formatGroupId']==_0x8ba51f['formatGroupId']&&_0x2545fe['subType']==_0x3b8973&&Wt(_0x2545fe,_0xff7f41)&&(_0x2db93b(_0x2545fe['getRanges'](),_0x578a2b)||_0x2db93b(_0x578a2b,_0x2545fe['getRanges']()))){for(const _0x278db7 of _0x578a2b)_0x2545fe['addRange'](_0x278db7);return _0x2545fe;}const _0x40feac=_0x370ed3(),_0x3e5431=_0x2b61b6['id'],_0x390e45='formatBlock:'+_0x3b8973,_0x3008ce=this['_setSuggestionData']({'id':_0x40feac,'type':_0x390e45,'data':_0x8ba51f,'createdAt':new Date(),'authorId':_0x3e5431,'attributes':_0xff7f41});for(const _0x597606 of _0x578a2b)this['_addSuggestionMarker'](_0x390e45,_0x40feac,_0x3e5431,_0x597606,x['getMultiRangeId']());return _0x3008ce;}['markDeletion'](_0x3970ca,_0x1d1035=null,_0x1cde61={}){if(_0x3970ca['isCollapsed'])return null;const _0x9025f8=this['editor']['plugins']['get']('Users')['me'],_0x3bce63=new _0xc2db3f(_0x3970ca['start'],_0x3970ca['end']);this['_trackingSessionId']&&(_0x1cde61['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x6ba96d,meta:_0x51b274}of this['_findSuggestions'](_0x3bce63,'insertion'))if(_0x51b274['isOwn']&&!_0x51b274['isNextTo']){if(_0x6ba96d['isMultiRange']){const _0x31516=_0x6ba96d['getRanges']()['filter'](_0x1881a1=>'$graveyard'!=_0x1881a1['root']['rootName']);_0x31516['every'](_0x132f6a=>_0x3bce63['containsRange'](_0x132f6a,!0x0))&&_0x6ba96d['discard']();if(_0x31516['some'](_0x2f9f91=>_0x2f9f91['containsRange'](_0x3bce63,!0x0))){const _0x1a074c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d1035,'accept');return this['forceDefaultExecution'](()=>_0x1a074c([_0x3bce63],null,_0x1cde61)),null;}}else{const _0x1fb148=_0x3bce63['getIntersection'](_0x6ba96d['getFirstRange']());null!==_0x1fb148&&_0x6ba96d['_onDiscard']([_0x1fb148],null,_0x1cde61);}}if(_0x3bce63['detach'](),_0x3bce63['isCollapsed']||'$graveyard'==_0x3bce63['root']['rootName'])return null;let _0x33372a=null,_0x4b530d=_0x3bce63['start'],_0x1b7fbf=_0x3bce63['end'];const _0x4c7a9c=this['_findSuggestions'](_0x3bce63,'deletion');for(const {suggestion:_0x2a9b5f,meta:_0x1022ab}of _0x4c7a9c){const _0x5e1222=this['_model']['createRange'](_0x4b530d,_0x1b7fbf);if(_0x1022ab['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1022ab['containsRangeInObject']&&!_0x1022ab['isInsideObject'])){if(_0x2a9b5f['isMultiRange']){if(!Wt(_0x2a9b5f,_0x1cde61))continue;let _0x585c0f=!0x0;for(const _0x1a5a51 of _0x2a9b5f['getRanges']()){if(_0x1a5a51['containsRange'](_0x5e1222,!0x0))return _0x2a9b5f;_0x5e1222['containsRange'](_0x1a5a51)||(_0x585c0f=!0x1);}_0x585c0f&&_0x2a9b5f['discard']();}else{const _0x5c478d=_0x2a9b5f['getFirstRange']();if(_0x5c478d['containsRange'](_0x5e1222,!0x0))return _0x2a9b5f;if(!Wt(_0x2a9b5f,_0x1cde61)){_0x5e1222['containsRange'](_0x5c478d)?_0x2a9b5f['removeMarkers']():_0x5c478d['containsPosition'](_0x4b530d)?_0x4b530d=_0x5c478d['end']:_0x5c478d['containsPosition'](_0x1b7fbf)&&(_0x1b7fbf=_0x5c478d['start']);continue;}_0x4b530d=_0x4b530d['isBefore'](_0x5c478d['start'])?_0x4b530d:_0x5c478d['start'],_0x1b7fbf=_0x1b7fbf['isAfter'](_0x5c478d['end'])?_0x1b7fbf:_0x5c478d['end'],_0x1cde61=Object['assign']({},_0x2a9b5f['attributes']),_0x33372a?_0x5c478d['start']['isBefore'](_0x33372a['getFirstRange']()['start'])?(_0x33372a['removeMarkers'](),_0x33372a=_0x2a9b5f):_0x2a9b5f['removeMarkers']():_0x33372a=_0x2a9b5f;}}}if(_0x33372a)return this['_setSuggestionRange'](_0x33372a,this['_model']['createRange'](_0x4b530d,_0x1b7fbf)),_0x33372a;{const _0x2321f9=_0x370ed3(),_0x40c39e=this['_model']['createRange'](_0x4b530d,_0x1b7fbf),_0x7a94b5=_0x9025f8['id'],_0x2df468=_0x1d1035?'deletion:'+_0x1d1035:'deletion',_0x319dce=this['_setSuggestionData']({'id':_0x2321f9,'type':_0x2df468,'createdAt':new Date(),'authorId':_0x7a94b5,'attributes':_0x1cde61});return this['_addSuggestionMarker'](_0x2df468,_0x2321f9,_0x7a94b5,_0x40c39e),_0x319dce;}}['markMultiRangeDeletion'](_0x11c90e,_0x136188='multi',_0x18614c={}){const _0x4d03a0=this['editor']['plugins']['get']('Users')['me'],_0x24d469=_0x11c90e['map'](_0x583e48=>new _0xc2db3f(_0x583e48['start'],_0x583e48['end'])),_0x4ff76b=new Set();this['_trackingSessionId']&&(_0x18614c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x49fc74,meta:_0x145d9e}of this['_findSuggestions'](_0x24d469,'insertion'))_0x145d9e['isOwn']&&!_0x145d9e['isNextTo']&&_0x4ff76b['add'](_0x49fc74);for(const _0x3bfa5c of _0x4ff76b)if(_0x3bfa5c['isMultiRange']){const _0x6d5752=_0x3bfa5c['getRanges']();(!_0x3bfa5c['attributes']||!_0x3bfa5c['attributes']['skipNestingCheck'])&&(_0x6d5752['every'](_0x22eaa6=>_0x24d469['some'](_0x471742=>_0x471742['containsRange'](_0x22eaa6,!0x0)))&&_0x3bfa5c['discard']());if(_0x24d469['every'](_0x18fc5b=>_0x6d5752['some'](_0x7cfa=>_0x7cfa['containsRange'](_0x18fc5b,!0x0)))){const _0x1c672e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x136188,'accept');return this['forceDefaultExecution'](()=>_0x1c672e(_0x11c90e,null,_0x18614c)),null;}}else{const _0x434cc7=_0x3bfa5c['getFirstRange']();_0x24d469['some'](_0x28e6c0=>_0x28e6c0['containsRange'](_0x434cc7,!0x0))&&_0x3bfa5c['discard']();if(_0x24d469['every'](_0xac8958=>_0x434cc7['containsRange'](_0xac8958,!0x0))){const _0x5ea591=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x136188,'accept');return this['forceDefaultExecution'](()=>_0x5ea591(_0x24d469,null,_0x18614c)),null;}}const _0xfbbdc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x136188,'join');let _0x1fe3da=null;for(const _0x1325e5 of this['getSuggestions']())if(_0x1325e5['author']['id']==_0x4d03a0['id']&&_0x1325e5['isInContent']&&'deletion'==_0x1325e5['type']&&_0x1325e5['subType']==_0x136188&&Wt(_0x1325e5,_0x18614c)&&(_0xfbbdc(_0x1325e5['getRanges'](),_0x24d469)||_0xfbbdc(_0x24d469,_0x1325e5['getRanges']()))){if(_0x1fe3da){if(_0x1325e5['commentThread']&&_0x1325e5['commentThread']['length'])continue;for(const _0x18c704 of _0x1325e5['getRanges']())_0x1fe3da['isIntersectingWithRange'](_0x18c704)||_0x1fe3da['addRange'](_0x18c704);_0x1325e5['removeMarkers']();}else{_0x1fe3da=_0x1325e5;for(const _0x32734d of _0x24d469)_0x1325e5['isIntersectingWithRange'](_0x32734d)||_0x1325e5['addRange'](_0x32734d);}}if(_0x1fe3da)return _0x1fe3da;_0x4ff76b['clear']();for(const {suggestion:_0x4ae75d,meta:_0x53ffa1}of this['_findSuggestions'](_0x24d469,'deletion'))_0x53ffa1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53ffa1['containsRangeInObject']&&!_0x53ffa1['isInsideObject'])&&Wt(_0x4ae75d,_0x18614c)&&_0x4ff76b['add'](_0x4ae75d);for(const _0x14939b of _0x4ff76b){const _0x1a14f9=_0x14939b['getRanges']();if(!_0x18614c||!_0x18614c['skipNestingCheck']){if(_0x24d469['every'](_0xa05582=>_0x1a14f9['some'](_0x1f5317=>_0x1f5317['containsRange'](_0xa05582,!0x0))))return _0x14939b;}(!_0x14939b['attributes']||!_0x14939b['attributes']['skipNestingCheck'])&&(_0x1a14f9['every'](_0x12cc86=>_0x24d469['some'](_0x2a34f8=>_0x2a34f8['containsRange'](_0x12cc86,!0x0)))&&_0x14939b['discard']());}const _0x27252a=_0x370ed3(),_0x183ffa=_0x4d03a0['id'],_0xe2d805='deletion:'+_0x136188,_0x3ae489=this['_setSuggestionData']({'id':_0x27252a,'type':_0xe2d805,'createdAt':new Date(),'authorId':_0x183ffa,'attributes':_0x18614c});for(const _0x1dd927 of _0x24d469)_0x1dd927['detach'](),_0x1dd927['isCollapsed']||'$graveyard'==_0x1dd927['root']['rootName']||this['_addSuggestionMarker'](_0xe2d805,_0x27252a,_0x183ffa,_0x1dd927,x['getMultiRangeId']());return _0x3ae489;}['markAttributeChange'](_0x5190bc,_0x38e7d8,_0x3739c2,_0x28fbc0,_0x4fab57){if(_0x5190bc['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5bba8c=this['editor']['plugins']['get']('Users')['me']['id'],_0x223470=Array['from'](this['_suggestions']['values']())['filter'](_0x2ccad6=>'attribute'==_0x2ccad6['type']&&_0x2ccad6['data']['key']==_0x38e7d8&&_0x2ccad6['isIntersectingWithRange'](_0x5190bc));if(this['_trackingSessionId']&&(_0x4fab57['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2076dd=this['_findSuggestions'](_0x5190bc,'insertion')['filter'](({meta:_0xc9b557})=>_0xc9b557['isOwn']&&!_0xc9b557['isInsideObject']&&!_0xc9b557['isNextTo'])['map'](({suggestion:_0x393889})=>_0x393889);_0x223470['unshift'](..._0x2076dd);}const _0x3df293=new Map([[_0x5190bc,_0x3739c2]]);for(const _0x51323f of _0x223470){const _0x18c53f='attribute'==_0x51323f['type']?_0x51323f['data']['oldValue']:void 0x0,_0x14a7b1=_0x51323f['getFirstRange'](),_0x282909=Array['from'](_0x3df293['keys']())['find'](_0x2e6dee=>_0x2e6dee['isIntersecting'](_0x14a7b1));if(!_0x282909)continue;const _0x454377=_0x282909['getDifference'](_0x14a7b1);this['_isBlockAttribute'](_0x38e7d8)&&'insertion'==_0x51323f['type']&&0x0!=_0x454377['length']||(_0x3df293['delete'](_0x282909),_0x454377['forEach'](_0x1ac8e5=>{_0x3df293['set'](_0x1ac8e5,_0x3739c2);}),'insertion'!=_0x51323f['type']&&_0x18c53f!=_0x28fbc0&&_0x3df293['set'](_0x282909['getIntersection'](_0x14a7b1),_0x18c53f));}const _0x12e5ab=[];for(const [_0x454acc,_0x55c5bc]of _0x3df293){const _0x195a43=_0x370ed3(),_0x5df497={'key':_0x38e7d8,'oldValue':_0x55c5bc,'newValue':_0x28fbc0};_0x38e7d8['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':_0x38e7d8});const _0x404358=('attribute:'+(_0x38e7d8+'|'+Lt({'newValue':_0x28fbc0})))['substring'](0x0,0x3c),_0x3def28=this['_setSuggestionData']({'id':_0x195a43,'type':_0x404358,'data':_0x5df497,'createdAt':new Date(),'authorId':_0x5bba8c,'attributes':_0x4fab57});_0x12e5ab['push'](_0x3def28),this['_addSuggestionMarker'](_0x404358,_0x195a43,_0x5bba8c,_0x454acc);}return _0x12e5ab;}['enableDefaultAttributesIntegration'](_0x5db50e){this['enableCommand'](_0x5db50e,(_0x7a4068,..._0x44e8bc)=>{this['_recordAttributeChanges'](()=>{_0x7a4068(..._0x44e8bc);});});}['registerBlockAttribute'](_0x151526){this['_blockAttributeKeys']['add'](_0x151526);}['registerInlineAttribute'](_0x2e7fa3){this['_inlineAttributeKeys']['add'](_0x2e7fa3);}['startTrackingSession'](_0x323498){return this['_trackingSessionId']=void 0x0!==_0x323498?_0x323498:_0x370ed3(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4bfe61){return'attribute'==_0x4bfe61['type']?_0x4bfe61['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x782d4d,_0x83f73){const _0x325e88=_0x782d4d['getFirstMarker']();this['_model']['change'](_0x73b693=>{_0x73b693['updateMarker'](_0x325e88,{'range':_0x83f73});});}['_addThreadToSuggestion'](_0x34c49a){const _0x312c1b=_0x34c49a['id'],_0x5b4d84=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x312c1b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5b4d84,'threadId':_0x312c1b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x334337=this['_commentsRepository']['getCommentThread'](_0x312c1b);_0x334337['unbind']('isRemovable'),_0x334337['isRemovable']=!0x1,_0x34c49a['commentThread']=_0x334337;}['_checkSuggestionCorrectness'](_0x26b931,_0x40bd81,_0x104518,_0x843479){if(_0x26b931['type']!=_0x40bd81||_0x26b931['subType']!=_0x104518||_0x26b931['creator']['id']!=_0x843479)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4ee9c2('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3c9963,_0x542b1d){const _0x250c2d=_0x3c9963['getFirstRange']();if(_0x542b1d['isEqual'](_0x250c2d))_0x3c9963['removeMarkers']();else{if(_0x250c2d['containsRange'](_0x542b1d)){const _0x42ec19=this['_model']['createPositionAt'](_0x542b1d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c9963,this['_model']['createRange'](_0x250c2d['start'],_0x42ec19));const _0x468c93=_0x370ed3(),_0xd9367d=_0x3c9963['creator']['id'],_0x49407a=_0x3c9963['type']+':'+_0x3c9963['subType'];this['_setSuggestionData']({'id':_0x468c93,'type':_0x49407a,'createdAt':new Date(),'authorId':_0xd9367d,'data':_0x3c9963['data'],'attributes':_0x3c9963['attributes']});const _0x39ef78=this['_model']['createPositionAt'](_0x542b1d['end']['parent'],'after'),_0x4b852b=this['_model']['createRange'](_0x39ef78,_0x250c2d['end']);this['_addSuggestionMarker'](_0x49407a,_0x468c93,_0xd9367d,_0x4b852b);}else{if(_0x250c2d['containsPosition'](_0x542b1d['start'])){const _0x40ca28=this['_model']['createPositionAt'](_0x542b1d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c9963,this['_model']['createRange'](_0x250c2d['start'],_0x40ca28));}else{const _0x5b011e=this['_model']['createPositionAt'](_0x542b1d['end']['parent'],'after');this['_setSuggestionRange'](_0x3c9963,this['_model']['createRange'](_0x5b011e,_0x250c2d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2c421c){for(const {suggestion:_0x419ece,meta:_0x4b3c60}of this['_findSuggestions'](_0x2c421c,'insertion')){if(!_0x4b3c60['isOwn'])continue;const _0x24a0ff=_0x419ece['getRanges']();for(const _0x572050 of _0x24a0ff)if(!_0x2c421c['getDifference'](_0x572050)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1e5b6d){const _0x6a0fab=this['editor']['plugins']['get']('Users')['getUser'](_0x1e5b6d);if(!_0x6a0fab)throw new _0x4ee9c2('track-changes-user-not-found',this);return _0x6a0fab;}['_getExternalAuthor'](_0x292b6e){const _0x52a9eb=this['editor']['plugins']['get']('Users'),_0x145c04=_0x3e24bc('external:'+_0x292b6e),_0x1cfdfd=_0x52a9eb['getUser'](_0x145c04);return _0x1cfdfd||_0x52a9eb['addUser']({'id':_0x145c04,'name':_0x292b6e});}['_createSuggestion'](_0x5a1a21,_0x2e4f9a,_0x584286,_0x4fc5f6,_0x3f5703,_0x5013bb){const _0x1e4c08=this['_getAuthorFromId'](_0x4fc5f6),_0x1266d7=this['_suggestionFactory']['buildSuggestion'](_0x5a1a21,_0x2e4f9a,_0x584286,_0x1e4c08,_0x3f5703,_0xf85daa=>{this['_updateSuggestionData'](_0x584286,{'attributes':_0xf85daa});const _0x23c5ba=this['getSuggestion'](_0x584286);this['_joinWithAdjacentSuggestions'](new Set([_0x23c5ba])),this['_refreshSuggestionsChain'](new Set([_0x23c5ba]));},_0x5013bb);return this['listenTo'](_0x1266d7,'accept',()=>{this['_updateSuggestionData'](_0x584286,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1266d7,'discard',()=>{this['_updateSuggestionData'](_0x584286,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x584286,_0x1266d7),this['_suggestionState']['set'](_0x1266d7,'notReady'),_0x1266d7;}['_splitMarkerName'](_0x2fc46c){const _0x482910=_0x2fc46c['split'](':');return{'group':_0x482910[0x0],'type':_0x482910[0x1],'subType':_0x482910['length']>=0x5?_0x482910[0x2]:null,'id':_0x482910['length']<0x5?_0x482910[0x2]:_0x482910[0x3],'authorId':_0x482910['length']<0x5?_0x482910[0x3]:_0x482910[0x4],'markerCount':0x6==_0x482910['length']?_0x482910[0x5]:null};}['_breakSuggestionMarker'](_0xd1e458,_0x59eedb,_0x431331){const _0x103600=_0xd1e458['getFirstRange'](),_0x3d6e22=_0x103600['start'],_0x1136b2=_0x103600['end'];this['_setSuggestionRange'](_0xd1e458,this['_model']['createRange'](_0x3d6e22,_0x59eedb));const _0x1fdf49=_0x370ed3(),_0x30b39e=_0xd1e458['creator']['id'],_0x36214a=_0xd1e458['type']+(_0xd1e458['subType']?':'+_0xd1e458['subType']:'');this['_setSuggestionData']({'id':_0x1fdf49,'type':_0x36214a,'createdAt':new Date(),'authorId':_0x30b39e,'originalSuggestionId':_0xd1e458['_originalSuggestionId']||_0xd1e458['id'],'attributes':_0xd1e458['attributes'],'data':_0xd1e458['data']});const _0x1e1807=this['_getAttributeKey'](_0xd1e458);('formatBlock'==_0xd1e458['type']||_0x1e1807&&this['_isBlockAttribute'](_0x1e1807))&&(_0x431331=this['_model']['createPositionBefore'](_0x431331['parent'])),this['_addSuggestionMarker'](_0x36214a,_0x1fdf49,_0x30b39e,this['_model']['createRange'](_0x431331,_0x1136b2));}['_findSuggestions'](_0x25611b,_0x11e143=null){const _0x3bc31b=[],_0xa93af3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x25611b)||(_0x25611b=[_0x25611b]);for(const _0x22fd37 of this['getSuggestions']()){if(!_0x22fd37['isInContent'])continue;if(_0x11e143&&_0x22fd37['type']!=_0x11e143)continue;let _0x199adf=!0x1;for(const _0xa66742 of _0x22fd37['getRanges']()){for(const _0x1e693e of _0x25611b){const _0x512580=_0x1e693e['start']['isEqual'](_0xa66742['end'])||_0x1e693e['end']['isEqual'](_0xa66742['start']);if(_0x512580||_0x1e693e['getIntersection'](_0xa66742)){const _0x5079ac=_0x1e693e['containsRange'](_0xa66742)&&Ft(this['_model']['schema'],_0xa66742['start'],_0x1e693e),_0x44d8b0=_0xa66742['containsRange'](_0x1e693e)&&Ft(this['_model']['schema'],_0x1e693e['start'],_0xa66742);_0x3bc31b['push']({'suggestion':_0x22fd37,'meta':{'isOwn':_0xa93af3==_0x22fd37['author'],'isNextTo':_0x512580,'isInsideObject':_0x5079ac,'containsRangeInObject':_0x44d8b0}}),_0x199adf=!0x0;break;}}if(_0x199adf)break;}}return _0x3bc31b;}['_addSuggestionMarker'](_0x21db7e,_0x5215a8,_0x5e371e,_0x3348d3,_0x2f21ac){this['_model']['change'](_0x5945ee=>{let _0x595f70='suggestion:'+_0x21db7e+':'+_0x5215a8+':'+_0x5e371e;_0x2f21ac&&(_0x595f70=_0x595f70+':'+_0x2f21ac),_0x5945ee['addMarker'](_0x595f70,{'range':_0x3348d3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1da785){const _0x32a54b=_0x1da785['previous'],_0x10f41d=_0x1da785['next'];_0x1da785['previous']=null,_0x1da785['next']=null,null!=_0x32a54b&&_0x32a54b['next']==_0x1da785&&(_0x32a54b['next']=_0x10f41d),null!=_0x10f41d&&_0x10f41d['previous']==_0x1da785&&(_0x10f41d['previous']=_0x32a54b),'ready'==this['_suggestionState']['get'](_0x1da785)&&(this['_suggestionState']['set'](_0x1da785,'removed'),this['fire']('suggestionUnloaded',_0x1da785,_0x32a54b,_0x10f41d));}['_setSuggestionData'](_0x4aa09d){const _0x3bb5fe=_0x4aa09d['id'],_0x379a39=this['addSuggestionData'](_0x4aa09d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x49a399=this['editor']['plugins']['get']('PendingActions'),_0xafb16e=_0x379a39['hasComments'],_0x385f43=_0x379a39['subType']?_0x379a39['type']+':'+_0x379a39['subType']:_0x379a39['type'],_0x3d247d=this['editor']['locale'],_0x503d80=_0x49a399['add'](o(_0x3d247d,'PENDING_ACTION_SUGGESTION')),_0x3166e3={'id':_0x3bb5fe,'type':_0x385f43,'hasComments':_0xafb16e,'data':_0x4aa09d['data']||null,'originalSuggestionId':_0x4aa09d['originalSuggestionId']||null,'attributes':_0x379a39['attributes']};this['_adapter']['addSuggestion'](_0x3166e3)['then'](_0x4a9806=>{_0x379a39['_saved']=!0x0,_0x49a399['remove'](_0x503d80),_0x4a9806&&_0x4a9806['createdAt']&&(this['_suggestions']['get'](_0x3bb5fe)['createdAt']=_0x4a9806['createdAt']);})['catch'](_0x399e3d=>{throw _0x2d38e9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x379a39['discard']();}),_0x379a39['stopListening'](),this['_suggestions']['delete'](_0x379a39['id']),this['_suggestionState']['delete'](_0x379a39),_0x399e3d;});}return _0x379a39;}['_isBlockAttribute'](_0x1f6d58){return this['_blockAttributeKeys']['has'](_0x1f6d58);}['_updateSuggestionData'](_0xeac410,_0x4ab9f7){const _0x1ab289=this['editor']['plugins']['get']('PendingActions'),_0xfaeb5d=this['getSuggestion'](_0xeac410);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xfaeb5d['_saved']){const _0x542f5b=_0x1ab289['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xeac410,_0x4ab9f7)['then'](()=>{_0x1ab289['remove'](_0x542f5b);});}else _0xfaeb5d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xeac410,_0x4ab9f7);});}}['_getSuggestionData'](_0x572ed5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4ee9c2('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x572ed5);}['_handleNewSuggestionMarker'](_0x11e283){const {id:_0x8c6a29,type:_0x19bf55,subType:_0x57b875,authorId:_0x265eab}=this['_splitMarkerName'](_0x11e283),_0x1ce753=this['_suggestions']['get'](_0x8c6a29)||this['_createSuggestion'](_0x19bf55,_0x57b875,_0x8c6a29,_0x265eab,{});switch(this['_checkSuggestionCorrectness'](_0x1ce753,_0x19bf55,_0x57b875,_0x265eab),this['_suggestionState']['get'](_0x1ce753)){case'notReady':this['_getSuggestionData'](_0x8c6a29)['then'](_0x448497=>{let _0x304d6f=Promise['resolve']();_0x448497['hasComments']&&(_0x304d6f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x8c6a29})),_0x304d6f['then'](()=>{this['addSuggestionData'](_0x448497)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1ce753,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x8c6a29,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1ce753,'ready'),this['fire']('suggestionLoaded',_0x1ce753);break;case'ready':this['fire']('suggestionChanged',_0x1ce753);}return _0x1ce753['addMarkerName'](_0x11e283),_0x1ce753;}['_refreshSuggestionsChain'](_0x1ee585){const _0x3f33b6=Array['from'](_0x1ee585),_0x51c451=_0x3f33b6['filter'](_0x4ba041=>'attribute'==_0x4ba041['type']);this['_refreshAttributeSuggestionsChain'](_0x51c451);const _0x53c377=_0x3f33b6['filter'](_0x25ce7f=>!_0x25ce7f['isMultiRange']&&'attribute'!=_0x25ce7f['type']),_0x3cd3df=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ec4a0=>!_0x5ec4a0['isMultiRange']&&'attribute'!=_0x5ec4a0['type']),_0x1edfd2=_0x3cd3df['filter'](_0x4d49cf=>!_0x1ee585['has'](_0x4d49cf)),_0x188eac=new Map(_0x3cd3df['map'](_0x2adc55=>[_0x2adc55,this['_suggestionFactory']['getSuggestionCallback'](_0x2adc55['type'],_0x2adc55['subType'],'chain')])),_0x572c21=new Map(_0x3cd3df['map'](_0x27a4fc=>[_0x27a4fc,_0x27a4fc['getFirstRange']()])),_0x1dc9a4=new Set(),_0x455031=new Set();for(let _0x35ac8b=0x0;_0x35ac8b<_0x53c377['length'];_0x35ac8b++)_0x2156b8(_0x53c377[_0x35ac8b],_0x53c377,_0x35ac8b+0x1);for(let _0x2214c2=0x0;_0x2214c2<_0x53c377['length'];_0x2214c2++)_0x2156b8(_0x53c377[_0x2214c2],_0x1edfd2,0x0);const _0xb2ba50=new Set();for(let _0x3fc7d0=0x0;_0x3fc7d0<_0x53c377['length'];_0x3fc7d0++){const _0x21d69e=_0x53c377[_0x3fc7d0];!_0x455031['has'](_0x21d69e)&&_0x21d69e['previous']&&(_0xb2ba50['add'](_0x21d69e['previous']),_0x21d69e['previous']['next']===_0x21d69e&&(_0x21d69e['previous']['next']=null),_0x21d69e['previous']=null),!_0x1dc9a4['has'](_0x21d69e)&&_0x21d69e['next']&&(_0xb2ba50['add'](_0x21d69e['next']),_0x21d69e['next']['previous']===_0x21d69e&&(_0x21d69e['next']['previous']=null),_0x21d69e['next']=null);}function _0x2156b8(_0x17ad9a,_0x4c4ba5,_0x106a6f){for(let _0x13e7b1=_0x106a6f;_0x13e7b1<_0x4c4ba5['length'];_0x13e7b1++){const _0x30e723=_0x26b194(_0x17ad9a,_0x4c4ba5[_0x13e7b1]);_0x30e723&&(_0x30e723[0x0]['next']=_0x30e723[0x1],_0x30e723[0x1]['previous']=_0x30e723[0x0],_0x1dc9a4['add'](_0x30e723[0x0]),_0x455031['add'](_0x30e723[0x1]));}}function _0x26b194(_0x50e70e,_0x145a54){if(_0x50e70e['author']['id']!==_0x145a54['author']['id'])return null;const _0x1585e4=_0x188eac['get'](_0x50e70e)(_0x50e70e,_0x145a54,_0x572c21['get'](_0x50e70e),_0x572c21['get'](_0x145a54));if(!_0x1585e4)return null;return _0x188eac['get'](_0x145a54)(_0x50e70e,_0x145a54,_0x572c21['get'](_0x50e70e),_0x572c21['get'](_0x145a54))?_0x1585e4[0x1]['commentThread']&&_0x1585e4[0x1]['commentThread']['length']?null:_0x1585e4:null;}_0xb2ba50['size']&&this['_refreshSuggestionsChain'](_0xb2ba50);}['_refreshAttributeSuggestionsChain'](_0x7a7c67){if(0x0==_0x7a7c67['length'])return;const _0x19238d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27cc14=>'attribute'==_0x27cc14['type']&&_0x27cc14['_isDataLoaded']),_0x59d44a=[],_0x20abbe=new Map();for(const _0x4401d2 of _0x19238d){const _0x44f064=_0x3e24bc(_0x4401d2['attributes']);_0x20abbe['has'](_0x44f064)||(_0x20abbe['set'](_0x44f064,_0x59d44a['length']),_0x59d44a['push']([]));const _0x1a431a=_0x20abbe['get'](_0x44f064);_0x59d44a[_0x1a431a]['push'](_0x4401d2);}!(function(){_0x59d44a['sort']((_0x484694,_0x165c34)=>{const _0x50da97=_0x484694[0x0]['createdAt'],_0x2184c3=_0x165c34[0x0]['createdAt'];return _0x50da97==_0x2184c3?_0x484694[0x0]['attributes']['groupId']<_0x165c34[0x0]['attributes']['groupId']?-0x1:0x1:_0x50da97<_0x2184c3?-0x1:0x1;});for(const _0x1dd2fd of _0x59d44a)_0x1dd2fd['sort']((_0x2410e7,_0x3c83fb)=>_0x2410e7['id']<_0x3c83fb['id']?-0x1:0x1);}());for(let _0x9a3d16=0x0;_0x9a3d16<_0x59d44a['length'];_0x9a3d16++){if(0x0==_0x59d44a[_0x9a3d16]['length'])continue;const _0x15f8ea=[];for(let _0x29a470=_0x9a3d16+0x1;_0x29a470<_0x59d44a['length'];_0x29a470++)0x0!=_0x59d44a[_0x29a470]['length']&&_0x3115ed(_0x59d44a[_0x9a3d16],_0x59d44a[_0x29a470])&&_0x15f8ea['push'](_0x29a470);for(const _0x8b4fb4 of _0x15f8ea)_0x59d44a[_0x9a3d16]=_0x59d44a[_0x9a3d16]['concat'](_0x59d44a[_0x8b4fb4]),_0x59d44a[_0x8b4fb4]=[];}for(const _0x3f017f of _0x59d44a)for(let _0x3dcc3c=0x0;_0x3dcc3c<_0x3f017f['length'];_0x3dcc3c++){const _0x592a39=_0x3f017f[_0x3dcc3c+0x1]||null;_0x3f017f[_0x3dcc3c]['next']!==_0x592a39&&(_0x3f017f[_0x3dcc3c]['next']=_0x592a39);}for(const _0x472827 of _0x59d44a)for(let _0xabc66=0x0;_0xabc66<_0x472827['length'];_0xabc66++){const _0x7d22c2=_0x472827[_0xabc66-0x1]||null;_0x472827[_0xabc66]['previous']!==_0x7d22c2&&(_0x472827[_0xabc66]['previous']=_0x7d22c2);}function _0x3115ed(_0x3c7984,_0x245368){if(_0x3c7984[0x0]['attributes']['groupId']!==_0x245368[0x0]['attributes']['groupId']&&_0x3c7984[0x0]['author']!==_0x245368[0x0]['author'])return!0x1;if(!function(_0x1b6c2b,_0x38aae7){if(!_0x1b6c2b['hasComments']&&!_0x38aae7['hasComments'])return!0x0;if(_0x1b6c2b['hasComments']&&_0x38aae7['hasComments'])return!0x1;if(_0x1b6c2b['hasComments']&&_0x38aae7['createdAt']<_0x1b6c2b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x38aae7['hasComments']&&_0x1b6c2b['createdAt']<_0x38aae7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3c7984[0x0],_0x245368[0x0]))return!0x1;const _0x2c8088=Ut(_0x3c7984[0x0]['attributes'],['groupId','trackingSessionId']),_0xe472be=Ut(_0x245368[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x31f67f(_0x2c8088,_0xe472be))return!0x1;if(_0x3c7984[0x0]['attributes']['groupId']==_0x245368[0x0]['attributes']['groupId'])return!0x0;if(_0x3c7984[0x0]['attributes']['trackingSessionId']!==_0x245368[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3c7984['every'](_0x2d3a34=>_0x245368['some'](_0x4ec898=>_0x2d3a34['getFirstRange']()['isEqual'](_0x4ec898['getFirstRange']())))&&_0x245368['every'](_0x3baf9c=>_0x3c7984['some'](_0x364ee2=>_0x3baf9c['getFirstRange']()['isEqual'](_0x364ee2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x59af70){const _0x587b0f=Array['from'](_0x59af70),_0x59a665=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ba268=_0x59a665['filter'](_0x351599=>!_0x59af70['has'](_0x351599)),_0x1ddde0=new Map(_0x587b0f['map'](_0x47a963=>[_0x47a963,this['_suggestionFactory']['getSuggestionCallback'](_0x47a963['type'],_0x47a963['subType'],'join')])),_0x4d16f9=new Map(_0x59a665['map'](_0x5bb41c=>[_0x5bb41c,_0x5bb41c['getRanges']()]));for(let _0x458745=0x0;_0x458745<_0x587b0f['length'];_0x458745++){if(_0xe1fffb(this,_0x587b0f[_0x458745],_0x587b0f,_0x458745+0x1))return!0x0;}for(let _0x20e84a=0x0;_0x20e84a<_0x587b0f['length'];_0x20e84a++){if(_0xe1fffb(this,_0x587b0f[_0x20e84a],_0x3ba268,0x0))return!0x0;}return!0x1;function _0xe1fffb(_0x2ec2df,_0xa7901c,_0x34a419,_0x3e7ac4){for(let _0x34397e=_0x3e7ac4;_0x34397e<_0x34a419['length'];_0x34397e++){const _0x127aac=_0x34a419[_0x34397e];if(_0x127aac['type']!==_0xa7901c['type']||_0x127aac['author']['id']!==_0xa7901c['author']['id']||_0x127aac['subType']!==_0xa7901c['subType'])continue;if(!zt(_0xa7901c,_0x127aac))continue;if('attribute'==_0xa7901c['type']&&_0xa7901c['data']['oldValue']!=_0x127aac['data']['oldValue'])continue;if('attribute'==_0xa7901c['type']&&_0x2ec2df['_isBlockAttribute'](_0xa7901c['data']['key']))continue;if('formatBlock'==_0xa7901c['type']){const _0x1e6fda=_0x2ec2df['editor']['model'],_0x279fed=_0xa7901c['getContainedElement']();if(_0x279fed&&(_0x1e6fda['schema']['isObject'](_0x279fed)||_0x1e6fda['schema']['isLimit'](_0x279fed)))continue;}const _0xcbc402=_0x1ddde0['get'](_0xa7901c),_0x4c880c=_0x4d16f9['get'](_0xa7901c),_0x1a2f9b=_0x4d16f9['get'](_0x127aac),_0x3346b7=_0xa7901c['commentThread']&&_0xa7901c['commentThread']['length'],_0xfb1176=_0x127aac['commentThread']&&_0x127aac['commentThread']['length'];if(!_0x3346b7&&_0xcbc402(_0x1a2f9b,_0x4c880c))return _0x2ec2df['_joinSuggestions'](_0x127aac,_0xa7901c),_0x4d16f9['delete'](_0xa7901c),!0x0;if(!_0xfb1176&&_0xcbc402(_0x4c880c,_0x1a2f9b))return _0x2ec2df['_joinSuggestions'](_0xa7901c,_0x127aac),_0x4d16f9['delete'](_0x127aac),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5c6842,_0x5e2ab1){if(_0x5c6842['isMultiRange']){for(const _0x4da020 of _0x5e2ab1['getRanges']())_0x5c6842['addRange'](_0x4da020);}else{const _0x2d411e=_0x5e2ab1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5c6842,this['_model']['createRange'](_0x5c6842['getFirstRange']()['start'],_0x2d411e));}_0x5e2ab1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x30d2db,_0x5aca62,_0x51035b){const _0x14672c=_0x30d2db['startsWith']('format')||_0x30d2db['startsWith']('attribute')?'FORMATTING':_0x30d2db['toUpperCase']();return o(this['editor']['locale'],_0x5aca62+'_'+_0x14672c+'_SUGGESTION_ANNOUNCEMENT',_0x51035b);}['_initAriaMarkerChangeAnnouncements'](){const _0x299094=this['editor'];if(!_0x299094['ui'])return;const {ariaLiveAnnouncer:_0x3cd5eb}=_0x299094['ui'];_0x46fc19(this['_model'],({left:_0x4b60fa,entered:_0x593ee3})=>{for(const _0x2d9ec9 of _0x4b60fa){const {group:_0x3722e7,type:_0x24e501}=this['_splitMarkerName'](_0x2d9ec9['name']);if('suggestion'===_0x3722e7){_0x3cd5eb['announce'](this['_getMarkerAnnouncementText'](_0x24e501,'LEAVE'));break;}}for(const _0x5126b7 of _0x593ee3){const {group:_0x21ecf2,type:_0x43f4b8}=this['_splitMarkerName'](_0x5126b7['name']);if('suggestion'===_0x21ecf2){_0x3cd5eb['announce'](this['_getMarkerAnnouncementText'](_0x43f4b8,'ENTER',_0x278c74(_0x837e7b)));break;}}});}['_processAttributeChanges'](_0x51028e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x357c43=this['editor'],_0x1e3b00=_0x357c43['model']['document']['differ']['getChanges']();if(0x0==_0x1e3b00['length'])return!0x1;const _0x20e316=[],_0x295ea1=_0x1e3b00['filter'](_0x3aa3bf=>'attribute'==_0x3aa3bf['type']),_0x22baac=_0x1e3b00['filter'](_0x17b05c=>'insert'==_0x17b05c['type']&&'$text'!=_0x17b05c['name']),_0x11d887=_0x1e3b00['filter'](_0x1a200f=>'remove'==_0x1a200f['type']&&'$text'!=_0x1a200f['name']);for(const _0x2d812c of _0x295ea1)_0x20e316['push']({'key':_0x2d812c['attributeKey'],'newValue':_0x2d812c['attributeNewValue'],'oldValue':_0x2d812c['attributeOldValue'],'range':Kt(_0x2d812c['range'],_0x357c43['model'])});for(const _0x2a0958 of _0x22baac){const _0x565fb7=_0x11d887['find'](_0x5686f0=>_0x5686f0['position']['isEqual'](_0x2a0958['position']));_0x565fb7&&_0x20e316['push']({'key':m,'newValue':_0x2a0958['name'],'oldValue':_0x565fb7['name'],'range':_0x357c43['model']['createRangeOn'](_0x2a0958['position']['nodeAfter'])});}return 0x0!=_0x20e316['length']&&this['_reduceExistingSuggestions'](_0x51028e,_0x20e316);}['_processAttributeSuggestions'](_0x4722c6){let _0x156e95=!0x1;const _0x5bdbe3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1d9e53=>_0x1d9e53['data']['newRange']&&_0x1d9e53['name']['startsWith']('suggestion:attribute:'));for(const _0x80f2f0 of _0x5bdbe3){const {subType:_0x1143c4,id:_0x51ceac}=this['_splitMarkerName'](_0x80f2f0['name']),_0x4db0f8=_0x1143c4['split']('|')[0x0];for(const _0x1527be of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1527be['id']!=_0x51ceac&&'attribute'==_0x1527be['type']&&_0x1527be['data']&&_0x1527be['data']['key']==_0x4db0f8&&_0x1527be['getFirstRange']()['isIntersecting'](_0x80f2f0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1527be,_0x80f2f0['data']['newRange'],_0x4722c6),_0x156e95=!0x0);}return _0x156e95;}['_recordAttributeChanges'](_0x4643f1){this['_recordAttributeSuggestions']=!0x0,_0x4643f1();}['_isRegisteredAttribute'](_0x2f5c29){const _0xfdda96=this['_isBlockAttribute'](_0x2f5c29),_0xaf6e45=this['_inlineAttributeKeys']['has'](_0x2f5c29);return _0xfdda96||_0xaf6e45;}['_reduceExistingSuggestions'](_0x2feaf1,_0xcdaa81){if(0x0==_0xcdaa81['length'])return!0x1;let _0x291b7b=!0x1;for(const _0x3be5a5 of _0xcdaa81){const _0x4e8ebf=this['_findSuggestions'](_0x3be5a5['range'],'attribute')['filter'](_0x4b1317=>!_0x4b1317['meta']['isNextTo'])['map'](_0x58c369=>_0x58c369['suggestion']),_0x2b7c30=_0x3e24bc({'newValue':_0x3be5a5['newValue']});_0x4e8ebf['filter'](_0x1ea0d4=>{const [_0x194178,_0x4f936b]=_0x1ea0d4['subType']['split']('|');return _0x194178==_0x3be5a5['key']&&_0x4f936b!=_0x2b7c30;})['forEach'](_0x3292e7=>{this['_reduceSuggestionAttributeRange'](_0x3292e7,_0x3be5a5['range'],_0x2feaf1),_0x291b7b=!0x0;});}return _0x291b7b;}['_reduceSuggestionAttributeRange'](_0x3b28ce,_0x1859ca,_0x3eb901){const _0x1f8d34=_0x3b28ce['getFirstRange']()['getDifference'](_0x1859ca);0x0!==_0x1f8d34['length']?0x1!==_0x1f8d34['length']?this['_breakSuggestionMarker'](_0x3b28ce,_0x1859ca['start'],_0x1859ca['end']):this['_setSuggestionRange'](_0x3b28ce,_0x1f8d34[0x0]):_0x3eb901['removeMarker'](_0x3b28ce['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x417b6e){this['_editor']=_0x417b6e,this['_model']=_0x417b6e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x112696,_0xf164f6,_0x13ce26,_0x210ae4,_0x27e2b4,_0x5c1a60,_0x42fa26){return new x(this['_model'],{'type':_0x112696,'subType':_0xf164f6,'id':_0x13ce26,'originalSuggestionId':_0x42fa26,'author':_0x210ae4,'creator':_0x210ae4,'attributes':_0x27e2b4,'onAttributesChange':_0x5c1a60,'onAccept':(..._0x23558a)=>this['getSuggestionCallback'](_0x112696,_0xf164f6,'accept')(..._0x23558a),'onDiscard':(..._0x1c2de4)=>this['getSuggestionCallback'](_0x112696,_0xf164f6,'discard')(..._0x1c2de4)});}['registerCustomCallback'](_0x54437c,_0x1b4700,_0x3947cd,_0x942931){const _0x239a69=_0x54437c+':'+_0x1b4700+':'+_0x3947cd;this['_customCallbacks']['set'](_0x239a69,_0x942931);}['getSuggestionCallback'](_0x3ad725,_0x445b8d,_0x14e006){const _0x7d9c50=_0x3ad725+':'+_0x445b8d+':'+_0x14e006;return this['_customCallbacks']['get'](_0x7d9c50)||this['_defaultCallbacks']['get'](_0x3ad725+':'+_0x14e006);}['_registerDefaultCallbacks'](){const _0x5e4874=()=>!0x1,_0x24ecbd=_0x53d5c4=>{_0x53d5c4['sort']((_0x2ab14c,_0x578017)=>_0x2ab14c['start']['isBefore'](_0x578017['start'])?0x1:-0x1),this['_model']['change'](_0x5762b3=>{for(const _0x810f25 of _0x53d5c4){let _0x1d4b7d;_0x1d4b7d=_0x810f25['end']['isAtEnd']&&_0x810f25['end']['parent']==_0x810f25['start']['nodeAfter']?_0x5762b3['createSelection'](_0x810f25['start']['nodeAfter'],'on'):_0x5762b3['createSelection'](_0x810f25),this['_model']['deleteContent'](_0x1d4b7d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x523370=(_0xb763be,_0x3b27f6)=>{_0x3b27f6&&this['_model']['change'](_0x44db2d=>{const {commandName:_0x5c933e,commandParams:_0x33d657=[]}=_0x3b27f6,_0x80ef4c=_0xb763be['map'](_0x2c22b6=>(Pt(_0x2c22b6)&&(_0x2c22b6=this['_model']['createRange'](_0x2c22b6['end'])),_0x2c22b6))['filter'](_0x41d7e6=>'$graveyard'!==_0x41d7e6['root']['rootName']);if(_0x80ef4c['length']<0x1)return;const _0x37fcda=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3b5d98=>_0xc2db3f['fromRange'](_0x3b5d98));_0x44db2d['setSelection'](_0x80ef4c);for(const _0x11ecff of this['_editor']['commands']['commands']())_0x11ecff['refresh']();_0x33d657['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5c933e,..._0x33d657);const _0x952d16=_0x37fcda['filter'](_0x28e8a5=>'$graveyard'!=_0x28e8a5['root']['rootName']);_0x952d16['length']>0x0&&_0x44db2d['setSelection'](_0x952d16);for(const _0x4731d6 of _0x37fcda)_0x4731d6['detach']();});},_0x13da8e=(_0x58003f,_0x27a687)=>0x1==_0x58003f['length']&&0x1==_0x27a687['length']&&_0x58003f[0x0]['end']['isEqual'](_0x27a687[0x0]['start']),_0x39c4eb=(_0x35eea2,_0x3041d4,_0x2a26ca,_0x4ad47f)=>qt(_0x35eea2,_0x3041d4,_0x2a26ca,_0x4ad47f)?[_0x35eea2,_0x3041d4]:qt(_0x3041d4,_0x35eea2,_0x4ad47f,_0x2a26ca)?[_0x3041d4,_0x35eea2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e4874),this['_defaultCallbacks']['set']('insertion:discard',_0x24ecbd),this['_defaultCallbacks']['set']('insertion:join',_0x13da8e),this['_defaultCallbacks']['set']('insertion:chain',_0x39c4eb),this['_defaultCallbacks']['set']('deletion:accept',_0x24ecbd),this['_defaultCallbacks']['set']('deletion:discard',_0x5e4874),this['_defaultCallbacks']['set']('deletion:join',_0x13da8e),this['_defaultCallbacks']['set']('deletion:chain',_0x39c4eb),this['_defaultCallbacks']['set']('formatInline:accept',_0x523370),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e4874),this['_defaultCallbacks']['set']('formatInline:join',_0x13da8e),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e4874),this['_defaultCallbacks']['set']('formatBlock:accept',_0x523370),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e4874),this['_defaultCallbacks']['set']('formatBlock:join',_0x13da8e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e4874),this['_defaultCallbacks']['set']('attribute:accept',_0x5e4874),this['_defaultCallbacks']['set']('attribute:discard',(_0x54db2c,_0xe906ee)=>{if(!_0xe906ee)return;const _0x403985=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2b11d7=>{if(_0xe906ee['key']==m)for(const _0x18d16e of _0x54db2c){const _0x23994f=_0x18d16e['start']['nodeAfter'],_0x16bcc3=_0xe906ee['oldValue'];_0x2b11d7['rename'](_0x23994f,_0x16bcc3);}else{if(_0x403985['_isBlockAttribute'](_0xe906ee['key'])){for(const _0xbf0564 of _0x54db2c)void 0x0!==_0xe906ee['oldValue']?_0x2b11d7['setAttribute'](_0xe906ee['key'],_0xe906ee['oldValue'],_0xbf0564['start']['nodeAfter']):_0x2b11d7['removeAttribute'](_0xe906ee['key'],_0xbf0564['start']['nodeAfter']);}else{for(const _0x28c2ac of _0x54db2c)_0xe906ee['oldValue']?_0x2b11d7['setAttribute'](_0xe906ee['key'],_0xe906ee['oldValue'],_0x28c2ac):_0x2b11d7['removeAttribute'](_0xe906ee['key'],_0x28c2ac);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x13da8e);}}function Ft(_0x4d4627,_0xae1461,_0x4a8192){for(const _0x59dc95 of _0xae1461['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x59dc95['root']==_0x59dc95)return!0x1;if(!_0x4a8192['containsItem'](_0x59dc95))return!0x1;if(_0x4d4627['isObject'](_0x59dc95)||_0x4d4627['isLimit'](_0x59dc95))return!0x0;}return!0x1;}function Pt(_0x148fe6){return _0x148fe6['end']['parent']==_0x148fe6['start']['nodeAfter']&&_0x148fe6['end']['isAtStart'];}function Gt(_0x17a037,_0x1cceec,_0x101767,_0x4919e6){const _0x27972a=_0x4db726=>!_0x4db726['item']['is']('$textProxy')&&!_0x4919e6['isObject'](_0x4db726['item']),_0x5cd4f0=_0x17a037['start']['getLastMatchingPosition'](_0x27972a),_0x49fd59=_0x17a037['end']['getLastMatchingPosition'](_0x27972a,{'direction':'backward'});return(!_0x17a037['start']['isEqual'](_0x5cd4f0)||!_0x17a037['end']['isEqual'](_0x49fd59))&&(_0x5cd4f0['isBefore'](_0x49fd59)?_0x101767['updateMarker'](_0x1cceec,{'range':_0x101767['createRange'](_0x5cd4f0,_0x49fd59)}):_0x101767['removeMarker'](_0x1cceec),!0x0);}function Lt(_0x8130f6){return _0x3e24bc(_0x8130f6);}function Jt(_0x17916c){const _0x2a6b48=_0x17916c['start']['nodeAfter'];return _0x2a6b48&&_0x2a6b48['is']('element');}function Kt(_0x4b35fe,_0x320edc){return null==_0x4b35fe['end']['nodeBefore']&&_0x4b35fe['end']['parent']==_0x4b35fe['start']['nodeAfter']?Ht(_0x4b35fe['start']['nodeAfter'],_0x320edc):_0x4b35fe;}function Ht(_0x6ca0e6,_0x3cdcad){const _0x408f1f=_0x3cdcad['schema']['isObject'](_0x6ca0e6)||_0x3cdcad['schema']['isSelectable'](_0x6ca0e6);return _0x3cdcad['createRange'](_0x3cdcad['createPositionAt'](_0x6ca0e6,'before'),_0x408f1f?_0x3cdcad['createPositionAfter'](_0x6ca0e6):_0x3cdcad['createPositionAt'](_0x6ca0e6,'end'));}function qt(_0x479a63,_0x5d2be7,_0x152cd0,_0x3baf98){return!!zt(_0x479a63,_0x5d2be7)&&_0x152cd0['end']['isEqual'](_0x3baf98['start']);}function zt(_0x13d16e,_0x16f6e9){if(!_0x13d16e['_isDataLoaded']||!_0x16f6e9['_isDataLoaded'])return!0x1;const _0x38bbe4=new Set(Object['keys'](_0x13d16e['attributes'])),_0x3856b5=new Set(Object['keys'](_0x16f6e9['attributes']));if(_0x38bbe4['delete']('groupId'),_0x3856b5['delete']('groupId'),0x0==_0x38bbe4['size']&&0x0==_0x3856b5['size'])return!0x0;if(_0x38bbe4['size']!=_0x3856b5['size'])return!0x1;const _0xd8f60f={..._0x13d16e['attributes']},_0x50782e={..._0x16f6e9['attributes']};return delete _0xd8f60f['groupId'],delete _0x50782e['groupId'],JSON['stringify'](_0xd8f60f)==JSON['stringify'](_0x50782e);}function Wt(_0x24a416,_0x907312){const _0x326bc7=Qt(_0x24a416['attributes']),_0x30c61d=Qt(_0x907312);if(!_0x24a416['_isDataLoaded'])return!0x1;for(const _0x441c92 of Object['keys'](_0x30c61d))if(!_0x31f67f(_0x326bc7[_0x441c92],_0x30c61d[_0x441c92]))return!0x1;return!0x0;}function Qt(_0x122069){const _0x35588b=Object['assign']({},_0x122069);return delete _0x35588b['skipNestingCheck'],delete _0x35588b['tablePasteChainId'],_0x35588b;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x3e391a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3e70ed,_0x4cca3d,_0x314f54,_0x239ed8){super(),this['model']=_0x4cca3d,this['view']=_0x314f54,this['commentThreadController']=_0x239ed8,this['_editor']=_0x3e70ed,this['_acceptCommand']=_0x3e70ed['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3e70ed['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2f0cda,_0x215a8e)=>_0x2f0cda||_0x215a8e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x41bd98=>_0x41bd98&&this['_editor']['model']['canEditAt'](_0x4cca3d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x261eed=>_0x261eed&&this['_editor']['model']['canEditAt'](_0x4cca3d['getRanges']())),this['_pendingAction']=null,_0x314f54['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x314f54,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x314f54,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x314f54,'change:isDirty',()=>{_0x314f54['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 _0x3c0b14=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3c0b14);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x56481a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x267eb3,_0x44d04a,_0x36640d,_0x5310d8){super(_0x267eb3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x25c525(_0x267eb3,o(_0x267eb3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x44d04a['authoredAt']),this['bind']('authoredAt')['to'](_0x44d04a),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',_0x44d04a,'authoredAt',this,'descriptionParts',(_0x159eac,_0x57dc60,_0x233aaf)=>{const _0x2233a8=_0x233aaf['map'](_0x12ec6b=>ls(_0x12ec6b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x159eac-0x1,_0x44d04a['author']['name'],_0x57dc60?_0x5310d8['formatDateTime'](_0x57dc60):'',new DOMParser()['parseFromString'](_0x2233a8,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2bdb44(),this['focusTracker']=new _0xebdde7(),this['keystrokes']=new _0x485de4(),this['focusCycler']=new _0x2a3b0e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2f9ce3=>_0x2f9ce3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x44d04a,this['_localUser']=_0x36640d,this['_config']=_0x5310d8,_0x5310d8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x581dea(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5d6687}=this['_config'];this['commentsListView']=new _0x5d6687(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',_0x5dee55=>_0x5dee55+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2576b1,_0x3e1216)=>_0x2576b1||!!_0x3e1216);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2fe55f}=this['_config'],_0x391094=new _0x2fe55f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xa9bded=_0x391094['commentInputView'];return _0x391094['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xa9bded,'value',(_0x4250cb,_0x3127ed,_0x5f27d2)=>!!_0x5f27d2||_0x4250cb&&!_0x3127ed),_0xa9bded['on']('submit',(_0x438430,_0x20f570)=>{this['fire']('addComment',_0x20f570),_0xa9bded['editor']['setData']('');}),_0xa9bded['on']('cancel',()=>this['focus']()),_0xa9bded['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x391094;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0x29f334,_0x3edb8b,_0x1e57ca,_0xd1552a){super(_0x29f334,_0x3edb8b,_0x1e57ca,_0xd1552a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x460b96=>_0x460b96&&_0x460b96[0x0]?_0x460b96[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x297adf,_0x5a076d)=>{let _0x961a7e='';for(const _0x23df74 of _0x297adf)_0x961a7e+='<p>'+ls(_0x23df74['content'],_0x23df74['color'])+'</p>';return _0x5a076d?_0x961a7e:_0x4dbf21(_0x961a7e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xd1552a['SuggestionView'](_0x29f334,_0x3edb8b,{'formatDateTime':_0xd1552a['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 _0x312fe5=this['bindTemplate'],_0x57e58a=[this['suggestionView']];return this['commentsListView']&&_0x57e58a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x57e58a['push'](this['commentThreadInputView']),_0x57e58a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x312fe5['if']('isActive','ck-suggestion-wrapper--active'),_0x312fe5['to']('type',_0x26c8a3=>'ck-suggestion-'+_0x26c8a3),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':_0x312fe5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x57e58a};}['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 we extends _0x56481a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2579ce,_0xd6c211,_0x133829){super(_0x2579ce),this['_model']=_0xd6c211,this['_config']=_0x133829,this['set']('description',''),this['bind']('authoredAt')['to'](_0xd6c211),this['acceptButton']=this['_createButton'](o(_0x2579ce,'Accept\x20suggestion'),_0x4e2f88,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2579ce,'Discard\x20suggestion'),_0x11f7a8,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x251d08(_0x2579ce,_0xd6c211['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2bdb44([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xebdde7(),this['keystrokes']=new _0x485de4(),this['focusCycler']=new _0x2a3b0e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x311485=>_0x311485['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x60313f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x60313f['innerHTML']=this['description'],this['on']('change:description',(_0x5d0d2d,_0x10e285,_0x543d5d)=>{_0x60313f['innerHTML']=_0x543d5d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3c330e=this['bindTemplate'],_0x3a0931=[{'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':_0x3c330e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3c330e['to']('authoredAt',_0x4799f8=>this['_config']['formatDateTime'](_0x4799f8))}]}]},{'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']&&_0x3a0931['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':_0x3a0931}]};}['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'](_0x38c83b,_0x563c6b,_0x14bc70,_0x2cea63,_0x477419){const _0x5615aa=new _0x2ae706(this['locale']);return _0x5615aa['set']({'label':_0x38c83b,'icon':_0x563c6b,'tooltip':!0x0,'tooltipPosition':_0x477419}),_0x5615aa['extendTemplate']({'attributes':{'class':_0x14bc70}}),_0x5615aa['on']('execute',()=>{this['fire'](_0x2cea63,this['_model']['id']);}),_0x5615aa;}['_setupKeyboardNavigation'](){const _0x2de529=this['element'];this['keystrokes']['listenTo'](_0x2de529);for(const _0x755239 of this['focusables'])this['focusTracker']['add'](_0x755239['element']),this['keystrokes']['listenTo'](_0x755239['element']);this['keystrokes']['set']('enter',(_0x3442d5,_0x2baa36)=>{_0x2de529===_0x3442d5['target']&&(this['focusCycler']['focusFirst'](),_0x2baa36());}),this['keystrokes']['set']('esc',(_0x2cd303,_0x3a7cdd)=>{_0x2de529!==_0x2cd303['target']&&(this['focus'](),_0x3a7cdd());});}}class u extends _0x28b250{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x148996,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27aedc){super(_0x27aedc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x149b17=this['editor']['config'];_0x149b17['define']('trackChanges.SuggestionThreadView',fe),_0x149b17['define']('trackChanges.SuggestionView',we),_0x149b17['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x149b17['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x472db8,_0x29d5d3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1ec483,_0x50eaf3]of this['_handleControllerBuffer']){const _0x5d7d25=this['_suggestionToController']['has'](_0x1ec483);_0x5d7d25||_0x50eaf3?_0x5d7d25&&_0x50eaf3&&this['_destroyController'](_0x1ec483):this['_initializeController'](_0x1ec483);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x472db8,_0x29d5d3);}['init'](){const _0x298bc7=this['editor'],_0x15ae43=_0x298bc7['plugins']['get']('TrackChangesEditing'),_0x4c303b=_0x298bc7['plugins']['get']('Annotations'),_0x2507be=_0x298bc7['plugins']['get']('EditorAnnotations'),_0xa3fda0=_0x298bc7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2507be['addSourceCollector'](()=>{const _0x8a13b4=[];for(const [_0x4a4e14,_0x6c8eac]of Array['from'](this['_suggestionToController'])){const _0x551811=_0x4a4e14['getAllAdjacentSuggestions'](),_0x21658d=[];for(const _0xfd7860 of _0x551811){if(!_0xfd7860['isInContent'])continue;if(_0xfd7860['isMultiRange']){_0x21658d['push'](..._0xfd7860['getRanges']());continue;}const _0x36968c=_0xfd7860['getFirstRange']();if(_0x21658d['length']>0x0){const _0x36ebba=_0x21658d[0x0]['getJoined'](_0x36968c);if(_0x36ebba){_0x21658d[0x0]=_0x36ebba;continue;}}_0x21658d['push'](_0x36968c);}_0x8a13b4['push']([_0x6c8eac['view'],_0x21658d]);}return _0x8a13b4;}),this['listenTo'](_0x15ae43,'suggestionLoaded',(_0x5aee79,_0x5b3058)=>{this['listenTo'](_0x5b3058,'change:previous',(_0x4faa9f,_0x3acb93,_0x37c9b2,_0x50307f)=>{_0x5b3058['isInContent']&&(null==_0x37c9b2?(this['_updateController'](_0x50307f['head']),this['_handleSuggestionControllerDelayed'](_0x5b3058,!0x1)):(this['_updateController'](_0x37c9b2['head']),null==_0x50307f&&this['_handleSuggestionControllerDelayed'](_0x5b3058,!0x0)));}),null!==_0x5b3058['previous']?this['_updateController'](_0x5b3058['head']):this['_handleSuggestionControllerDelayed'](_0x5b3058,!0x1);}),this['listenTo'](_0x15ae43,'suggestionUnloaded',(_0x3ccec3,_0x1b0085,_0x486350)=>{this['stopListening'](_0x1b0085,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1b0085),this['_suggestionToController']['has'](_0x1b0085)&&this['_destroyController'](_0x1b0085),_0x486350&&this['_updateController'](_0x486350['head']);}),this['listenTo'](_0x15ae43,'suggestionChanged',(_0xf40afc,_0x397778)=>{this['_updateController'](_0x397778);}),this['listenTo'](_0x4c303b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xa3fda0,'addComment',(_0x1b9be4,{threadId:_0x176a1b,isFromAdapter:_0x10776c})=>{if(_0x10776c||!_0x15ae43['hasSuggestion'](_0x176a1b))return;const _0x4c75da=_0x15ae43['getSuggestion'](_0x176a1b);this['_suggestionToController']['get'](_0x4c75da)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x56118f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e8b5e;for(const _0x43573b in _0x56118f){const _0x2edbcb=_0x43573b,_0x143465=_0x56118f[_0x2edbcb];if('trackChangesLicenseKeyValid'==_0x143465||'trackChangesLicenseKeyInvalid'==_0x143465||'trackChangesLicenseKeyExpired'==_0x143465||'trackChangesLicenseKeyDomainLimit'==_0x143465||'trackChangesLicenseKeyNotAllowed'==_0x143465||'trackChangesLicenseKeyEvaluationLimit'==_0x143465||'trackChangesLicenseKeyTrialLimit'==_0x143465||'trackChangesLicenseKeyUsageLimit'==_0x143465){delete _0x56118f[_0x2edbcb],_0x1e8b5e=_0x143465,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1e8b5e&&_0x56118f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1e8b5e&&_0x56118f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1e8b5e&&_0x56118f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1e8b5e&&_0x56118f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1e8b5e&&_0x56118f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1e8b5e&&_0x56118f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1e8b5e&&_0x56118f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x517358=this['editor']['plugins']['get']('Annotations'),_0x1c6daf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56f003=Array['from'](_0x517358['activeAnnotations'],_0x252e37=>_0x252e37['innerView'])['filter'](_0x5d5214=>this['_viewToController']['has'](_0x5d5214)),_0x1f0187=[];for(const _0x15e5f4 of _0x56f003){const _0x5867eb=this['_viewToController']['get'](_0x15e5f4)['model']['getAllAdjacentSuggestions']();_0x1f0187['push'](..._0x5867eb['reduce']((_0x523278,_0xcd5a02)=>[..._0x523278,..._0xcd5a02['getMarkerNames']()],[]));}_0x1c6daf['activeMarkers']=_0x1f0187;}['_addUIComponentsToFactory'](){const _0x2e1d86=this['editor'],_0x3c9622=_0x2e1d86['locale'],_0x545fbe=o(_0x3c9622,'Track\x20changes'),_0x4ae05a=new _0x558e28([{'type':'switchbutton','model':new _0x5b6ffb({'withText':!0x0,'isToggleable':!0x0,'label':_0x545fbe,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5b6ffb({'withText':!0x0,'label':o(_0x3c9622,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b6ffb({'withText':!0x0,'label':o(_0x3c9622,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b6ffb({'withText':!0x0,'label':o(_0x3c9622,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b6ffb({'withText':!0x0,'label':o(_0x3c9622,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2e1d86['plugins']['has']('TrackChangesPreview')&&_0x4ae05a['addMany']([{'type':'separator'},{'type':'button','model':new _0x5b6ffb({'withText':!0x0,'label':o(_0x3c9622,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x9a84dd of _0x4ae05a)if(ke(_0x9a84dd)){const _0x1cad90=_0x2e1d86['commands']['get'](_0x9a84dd['model']['commandName']);_0x9a84dd['model']['bind']('isOn','isEnabled')['to'](_0x1cad90,'value','isEnabled');}_0x2e1d86['ui']['componentFactory']['add']('trackChanges',_0x26de98=>this['_createToolbarButton'](_0x26de98,_0x4ae05a,_0x545fbe)),_0x2e1d86['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2329dd=>this['_createMenuBarMenu'](_0x2329dd,_0x4ae05a,_0x545fbe));}['_createToolbarButton'](_0x14e4d6,_0x4dc51c,_0x229930){const _0x3f34ed=_0x6ae726(_0x14e4d6,_0x1f0b07),_0x4c5b9a=this['editor']['commands']['get']('trackChanges');_0x3f34ed['buttonView']['set']({'tooltip':_0x229930,'label':_0x229930,'icon':_0xc8e2e5}),_0x3f34ed['buttonView']['bind']('isOn')['to'](_0x4c5b9a,'value'),_0x3f34ed['buttonView']['on']('execute',()=>{_0x4c5b9a['execute'](),this['editor']['editing']['view']['focus']();}),_0x6a29f5(_0x3f34ed,_0x4dc51c,{'role':'menu'});const _0x1a6990=[];for(const _0x3f69d8 of _0x4dc51c)ke(_0x3f69d8)&&_0x1a6990['push'](this['editor']['commands']['get'](_0x3f69d8['model']['commandName']));const _0x4a8b29=_0x3f34ed['buttonView'];return _0x4a8b29['actionView']['unbind']('isEnabled'),_0x4a8b29['arrowView']['unbind']('isEnabled'),_0x4a8b29['actionView']['bind']('isEnabled')['to'](_0x4c5b9a,'isEnabled'),_0x4a8b29['arrowView']['bind']('isEnabled')['toMany'](_0x1a6990,'isEnabled',(..._0x540ecf)=>_0x540ecf['some'](_0x1e6fb3=>_0x1e6fb3)),_0x3f34ed['on']('execute',_0x379716=>{this['editor']['execute'](_0x379716['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3f34ed;}['_createMenuBarMenu'](_0x2d52a5,_0x493dc4,_0x40026c){const _0x4ec88e=new _0x79c27f(_0x2d52a5),_0x30de69=this['editor']['commands']['get']('trackChanges');_0x4ec88e['buttonView']['set']({'label':_0x40026c,'icon':_0xc8e2e5});const _0xc2de4f=new _0x17d1da(_0x2d52a5);for(const _0x67f673 of _0x493dc4){if('separator'==_0x67f673['type']){_0xc2de4f['items']['add'](new _0x425f2a(_0x2d52a5));continue;}const _0x2b81d2=new _0x2e0880(_0x2d52a5,_0x4ec88e),_0x301049=new _0x24f457(_0x2d52a5),_0x3d21c7=_0x67f673['model'];_0x301049['bind'](...Object['keys'](_0x3d21c7))['to'](_0x3d21c7),_0x301049['delegate']('execute')['to'](_0x4ec88e),_0x301049['on']('execute',()=>{this['editor']['execute'](_0x3d21c7['commandName']),this['editor']['editing']['view']['focus']();}),_0x2b81d2['children']['add'](_0x301049),_0xc2de4f['items']['add'](_0x2b81d2);}return _0x4ec88e['bind']('isEnabled')['to'](_0x30de69,'isEnabled'),_0x4ec88e['panelView']['children']['add'](_0xc2de4f),_0x4ec88e;}['_initializeController'](_0xa4e388){const _0x2ab5d1=this['editor'],_0xd5abaa=_0x2ab5d1['config'],_0x2abd41=_0x2ab5d1['plugins']['get']('Annotations'),_0x3a3956=_0x2ab5d1['plugins']['get']('CommentsRepository'),_0x3d4441=_0x2ab5d1['plugins']['get']('EditorAnnotations'),_0x5670ba=_0x2ab5d1['plugins']['get'](_0x148996)['me'],_0x4a5631=_0xd5abaa['get']('trackChanges')['SuggestionThreadView'],_0x48afb9=_0xd5abaa['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x532465,CommentThreadInputView:_0x58761a}=_0x2ab5d1['plugins']['get']('CommentsUI');let _0x27adb4,_0x2927bc,_0x3358e6;this['_annotationViews']['has'](_0xa4e388['id'])?(_0x2927bc=this['_annotationViews']['get'](_0xa4e388['id']),_0x27adb4=_0x2927bc['mainView']):(_0x27adb4=new _0x4a5631(_0x2ab5d1['locale'],_0xa4e388,_0x5670ba,{'disableComments':this['_disableComments'],'editorConfig':{..._0xd5abaa['get']('comments.editorConfig'),'licenseKey':_0xd5abaa['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xd5abaa['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xd5abaa['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xd5abaa['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1ba8e4(_0xd5abaa['get']('locale'),_0x2ab5d1['locale']),'CommentView':_0xd5abaa['get']('comments')['CommentView'],'CommentsListView':_0x532465,'CommentThreadInputView':_0x58761a,'SuggestionView':_0x48afb9}),_0x27adb4['suggestionView']['acceptButton']['on']('execute',()=>{_0x2ab5d1['editing']['view']['focus']();}),_0x27adb4['suggestionView']['discardButton']['on']('execute',()=>{_0x2ab5d1['editing']['view']['focus']();}),_0x2927bc=_0x2abd41['createAnnotationView'](this['editor']['locale'],_0x27adb4),_0x2927bc['bind']('isDirty')['to'](_0x27adb4,'isDirty'),_0x2927bc['bind']('length')['to'](_0x27adb4),_0x2927bc['bind']('type')['to'](_0x27adb4,'type',_0x5d46f7=>'suggestion-'+_0x5d46f7),_0x27adb4['on']('escape',()=>{_0x3358e6['fire']('escape');}),this['_annotationViews']['set'](_0xa4e388['id'],_0x2927bc));const _0xecf06=_0x3a3956['createCommentThreadController'](_0xa4e388['commentThread'],_0x27adb4),_0x2c6891=new pe(_0x2ab5d1,_0xa4e388,_0x27adb4,_0xecf06),_0x4690d8=_0xa4e388['getAllAdjacentSuggestions']()['filter'](_0x7eb407=>_0x7eb407['isInContent']);_0x27adb4['descriptionParts']=_0x2ab5d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4690d8),this['_suggestionToController']['set'](_0xa4e388,_0x2c6891),this['_viewToController']['set'](_0x27adb4,_0x2c6891),_0x3358e6=_0x2abd41['createAnnotation']({'view':_0x2927bc,'target':()=>{const _0x5d0765=[],_0x4ffe8b=_0xa4e388['getAllAdjacentSuggestions']()['filter'](_0x4053c9=>_0x4053c9['isInContent']);for(const _0x160694 of _0x4ffe8b)_0x5d0765['push'](..._0x160694['getMarkers']());return _0x391156(_0x2ab5d1['editing'],_0x5d0765);},'type':()=>'suggestion-'+_0x2c6891['view']['type']}),_0x3a3956['_bindAnnotationToEditors'](_0x27adb4,_0x3358e6),_0x2abd41['add'](_0x3358e6),_0x3d4441['registerAnnotation'](_0x3358e6);}['_destroyController'](_0x31d2b8){const _0x154aad=this['editor']['plugins']['get']('CommentsRepository'),_0x30691a=this['editor']['plugins']['get']('Annotations'),_0x4086ea=this['_suggestionToController']['get'](_0x31d2b8),_0x3cdd5f=_0x4086ea['view'],_0x20d946=_0x30691a['getByInnerView'](_0x3cdd5f);_0x154aad['_unbindEditors'](_0x3cdd5f),_0x20d946&&_0x30691a['remove'](_0x20d946),this['_suggestionToController']['delete'](_0x31d2b8),this['_viewToController']['delete'](_0x3cdd5f),_0x4086ea['destroy']();}['_updateController'](_0x3f051e){if(!_0x3f051e['isInContent']||!this['_suggestionToController']['has'](_0x3f051e))return;const _0x1cac2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47734f=this['_suggestionToController']['get'](_0x3f051e),_0x34d2d5=_0x3f051e['getAllAdjacentSuggestions']();_0x47734f['view']['descriptionParts']=_0x1cac2b['descriptionFactory']['getDescriptions'](_0x34d2d5);}['destroy'](){for(const _0x1f1c9c of this['_suggestionToController']['keys']())this['_destroyController'](_0x1f1c9c);for(const _0x24c3a9 of this['_annotationViews']['values']())_0x24c3a9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x19e49f){return'model'in _0x19e49f;}class Ge extends _0x28b250{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x54a84d){this['editor']['plugins']['get'](d)['adapter']=_0x54a84d;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x472c65){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x472c65);}['getSuggestions']({skipNotAttached:_0x2e092f=!0x1,toJSON:_0x325aa6=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2e092f,'toJSON':_0x325aa6});}['getSuggestion'](_0x212e9c){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x212e9c);}}const p=['Pagination'];class re extends _0x28b250{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4dace6=this['editor'];if(_0x4dace6['config']['define']('trackChangesData.editorCreator',_0x3c89f5=>{const _0x1d66df=_0x4dace6['model']['document']['getRootNames']()['reduce']((_0x24b1b9,_0x36b89f)=>(_0x24b1b9[_0x36b89f]='',_0x24b1b9),{});return _0x4dace6['constructor']['create'](_0x1d66df,_0x3c89f5);}),'function'!=typeof _0x4dace6['config']['get']('trackChangesData')['editorCreator'])throw new _0x4ee9c2('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x40464a){return w(this['editor'],!0x0,_0x40464a);}['getDataWithDiscardedSuggestions'](_0x5d94b5){return w(this['editor'],!0x1,_0x5d94b5);}}class k extends _0x28b250{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd7694e){function _0x4efc5b(_0x597790){return _0x597790['map'](_0x1066c0=>String['fromCharCode'](_0x1066c0))['join']('');}super(_0xd7694e),this['result']='end',_0xd7694e[_0x4efc5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4efc5b([0x76,0x69,0x65,0x77])][_0x4efc5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4efc5b([0x61,0x75,0x74,0x6f]),_0xd7694e[_0x4efc5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4efc5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4efc5b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4efc5b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4efc5b([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 $e(_0x13702c){return void 0x0!==_0x13702c['getRootsAttributes'];}async function w(_0x28f28c,_0x494f91,_0x89456){const _0x1c8427=_0x3ce4c0(_0x28f28c,p);_0x1c8427['plugins']['push'](d,k),_0x1c8427['rootsAttributes']=$e(_0x28f28c)?_0x28f28c['getRootsAttributes']():void 0x0;const _0x41b26d=document['createDocumentFragment'](),_0x526da9=_0x28f28c['config']['get']('trackChangesData')['editorCreator'],_0x12ea8e=await _0x526da9(_0x1c8427,()=>function(_0x53fb91){const _0x405fc6=document['createElement']('div');return _0x53fb91['appendChild'](_0x405fc6),_0x405fc6;}(_0x41b26d));!function(_0x4314e5,_0x3d3821){const _0x4c0301=_0x4314e5['model']['document']['getRootNames']()['reduce']((_0x5a9f5d,_0x361a29)=>(_0x5a9f5d[_0x361a29]=_0x4314e5['data']['get']({'rootName':_0x361a29}),_0x5a9f5d),{}),_0x4dbe1f=_0x4314e5['plugins']['get']('Users')['users']['map'](_0x5b5fe4=>({'id':_0x5b5fe4['id'],'name':_0x5b5fe4['name']})),_0x29dd9c=_0x4314e5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x40d3c4=_0x4314e5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3eefd4=_0x3d3821['plugins']['get']('Users'),_0x3d2399=_0x3d3821['plugins']['get']('TrackChangesEditing'),_0x5ed927=_0x3d3821['plugins']['get']('CommentsRepository');for(const _0xafadfa of _0x5ed927['getCommentThreads']())_0xafadfa['remove']();for(const _0x2461ba of _0x4dbe1f)_0x3eefd4['getUser'](_0x2461ba['id'])||_0x3eefd4['addUser'](_0x2461ba);_0x3eefd4['me']||_0x3eefd4['useAnonymousUser']();for(const _0xb41d1b of _0x40d3c4)_0x5ed927['addCommentThread'](_0xb41d1b);for(const _0x3ec8cb of _0x29dd9c)_0x3d2399['addSuggestionData'](_0x3ec8cb);_0x3d3821['data']['set'](_0x4c0301);}(_0x28f28c,_0x12ea8e),_0x12ea8e['execute'](_0x494f91?'acceptAllSuggestions':'discardAllSuggestions');const _0xeed579=$e(_0x12ea8e)?_0x12ea8e['getFullData'](_0x89456):_0x12ea8e['data']['get'](_0x89456);return await _0x12ea8e['destroy'](),_0xeed579;}class Me extends _0x56481a{['options'];constructor(_0x148ea2,_0x5d7c1e){super(_0x148ea2),this['options']=_0x5d7c1e,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'](_0x43400a,_0x21220e){if(!this['element'])return;const _0x2317d3=[];for(const [_0x5f1f0b,_0x3a402a]of _0x43400a){const _0x328e45=document['createElement']('div');_0x328e45['setAttribute']('data-ck-root-name',_0x5f1f0b),_0x328e45['className']=_0x3a402a['classes']+'\x20ck-track-changes-preview__root-container',_0x328e45['innerHTML']=_0x3a402a['content'],_0x2317d3['push'](_0x328e45);}_0x21220e(this['element'],_0x2317d3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x5cf6aa{constructor(_0x5ca113){super(_0x5ca113),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x130214=this['editor'],_0x324632=_0x130214['locale'],_0x5854e9=_0x130214['plugins']['get']('Dialog');let _0x38a290;const _0x114f50=function(_0x18b3c7){const _0x15305d={};if('editables'in _0x18b3c7['ui']['view']){for(const [_0x75c011,_0x1c4dda]of Object['entries'](_0x18b3c7['ui']['view']['editables']))_0x15305d[_0x75c011]=_0x1c4dda['element'];}else _0x15305d[_0x18b3c7['model']['document']['getRootNames']()[0x0]]=_0x18b3c7['ui']['view']['editable']['element'];return _0x15305d;}(_0x130214),_0x1bc933=function(_0x4a5752){let _0x493ba6=0x0;for(const _0x4f9da5 of Object['values'](_0x4a5752))_0x493ba6=Math['max'](_0x493ba6,_0x4f9da5['getBoundingClientRect']()['width']);let _0x544619=0x0;for(const _0x22c13b of Object['values'](_0x4a5752))_0x544619+=_0x22c13b['getBoundingClientRect']()['height'];const _0x5193e1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x59a5ca=Math['min'](_0x544619,_0x5193e1);return{'width':_0x493ba6,'height':_0x59a5ca};}(_0x114f50);_0x5854e9['show']({'id':'finalContentPreview','title':o(_0x324632,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x324632,{'dialogRects':_0x1bc933}),'onHide':()=>{_0x38a290['detachFromDom']();},'onShow':()=>{_0x130214['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x538085=>{const _0x2565a9=this['_standarizeRootsData'](_0x538085,_0x130214,_0x114f50);_0x5854e9['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2565a9,_0x130214['config']['get']('trackChanges.preview.renderFunction'));}),_0x38a290=new _0x36f7c3(_0x324632,[_0x5854e9['view']]),_0x38a290['attachToDom'](),_0x38a290['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x130214['once']('destroy',()=>{_0x38a290['detachFromDom']();});const _0x5a4298=_0x5854e9['view']['headerView']['class'];_0x5854e9['view']['headerView']['class']=_0x5a4298?_0x5a4298+'\x20ck-reset_all':'ck-reset_all',_0x5854e9['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5854e9['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3e0417=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x36d87a=_0x3e0417['previewMode'],_0x2dbd8b={};if('$labels'===_0x36d87a){for(const _0x3529d3 of _0x3e0417['getMergeFieldsIds']())_0x2dbd8b[_0x3529d3]=_0x3e0417['getLabel'](_0x3529d3)||_0x3529d3;}else{const _0x36ed91='$defaultValues'===_0x36d87a?_0x3e0417['getDefaultValues']():_0x3e0417['getDataSetValues'](_0x36d87a,!0x0);for(const _0x561c00 of Object['entries'](_0x36ed91)){const [_0x893289,_0x4b44a8]=_0x561c00;_0x2dbd8b[_0x893289]=null!==_0x4b44a8?_0x4b44a8:_0x3e0417['getLabel'](_0x893289)||_0x893289;}}return{'mergeFieldsData':_0x2dbd8b};}['_standarizeRootsData'](_0x1d1b49,_0x979fe7,_0xa90a44){let _0x21d212;if('string'==typeof _0x1d1b49){const _0x5bf5ff=_0x979fe7['model']['document']['getRootNames']()[0x0];_0x21d212={[_0x5bf5ff]:_0x1d1b49};}else _0x21d212=_0x1d1b49;const _0x400046=this['_fixMediaEmbeds'](_0x21d212,_0x979fe7),_0xa82111=function(_0x55a0d0,_0x238522){for(const [_0x2bd71b,_0x3a3833]of _0x55a0d0)_0x3a3833['classes']=_0x238522[_0x2bd71b]['classList']['value']['replace']('ck-focused','');return _0x55a0d0;}(this['_sortRoots'](_0x979fe7)['reduce']((_0x50ccce,_0x2ee11e)=>(_0x50ccce['push']([_0x2ee11e,{'content':_0x400046[_0x2ee11e],'classes':''}]),_0x50ccce),[]),_0xa90a44);return _0xa82111;}['_fixMediaEmbeds'](_0x47b443,_0x583129){if(!_0x583129['plugins']['has']('MediaEmbedEditing'))return _0x47b443;const _0x3ac887=_0x583129['plugins']['get']('MediaEmbedEditing');for(const [_0xe791d4,_0x343517]of Object['entries'](_0x47b443)){const _0x54c4b4=document['createElement']('div');_0x54c4b4['innerHTML']=_0x343517,(_0x54c4b4['querySelectorAll']('figure.media')['forEach'](_0x5a1226=>{const _0x5d8e40=_0x5a1226['querySelector']('oembed');if(_0x5d8e40){const _0x318370=_0x5d8e40['getAttribute']('url');if(_0x318370){const _0x1b436c=_0x3ac887['registry']['getMediaViewElement'](new _0x5400db(_0x583129['editing']['view']['document']),_0x318370,{'elementName':'','renderForEditingView':!0x0}),_0x499b5d=document['createElement']('div');_0x499b5d['classList']['add']('ck-media__wrapper'),_0x1b436c['render'](_0x499b5d,_0x583129['editing']['view']['domConverter']),_0x5d8e40['replaceWith'](_0x499b5d);}}}),_0x47b443[_0xe791d4]=_0x54c4b4['innerHTML']);}return _0x47b443;}['_sortRoots'](_0x5d9872){if(!function(_0x1de823){return void 0x0!==_0x1de823['getRootsAttributes'];}(_0x5d9872))return _0x5d9872['model']['document']['getRootNames']();const _0x46deb9=[],_0x66fef5=new Map();for(const _0x29a865 of _0x5d9872['model']['document']['getRootNames']()){const _0x5146d2=_0x5d9872['editing']['view']['getDomRoot'](_0x29a865)['getClientRects']()['item'](0x0);_0x46deb9['push'](_0x29a865),_0x66fef5['set'](_0x29a865,_0x5146d2);}return _0x46deb9['sort']((_0x416b27,_0x4f1c67)=>{const _0x1d075e=_0x66fef5['get'](_0x416b27),_0x208276=_0x66fef5['get'](_0x4f1c67);return _0x1d075e['y']-_0x208276['y']||_0x1d075e['x']-_0x208276['x'];}),_0x46deb9;}}class He extends _0x28b250{static get['requires'](){return[re,_0x4fa047];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ae5d2){super(_0x5ae5d2),_0x5ae5d2['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5ae5d2['config']['define']('trackChanges.preview.renderFunction',(_0x2f30b3,_0x184178)=>{for(const _0x3bd584 of _0x184178)_0x2f30b3['appendChild'](_0x3bd584);});}}export{M as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,T as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,fe as SuggestionThreadView,we as SuggestionView,Ge as TrackChanges,D as TrackChangesCommand,re as TrackChangesData,d as TrackChangesEditing,He as TrackChangesPreview};
23
+ import{Command as _0x4571b2,Plugin as _0x20a8ee,PendingActions as _0x3ffb44}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x33db9e,ObservableMixin as _0x14016a,uid as _0x422f91,priorities as _0x4315fd,insertToPriorityArray as _0x268113,toArray as _0x21bab1,logWarning as _0x481fac,getEnvKeystrokeText as _0x14209d,FocusTracker as _0x2bc954,KeystrokeHandler as _0x15d5fa,Collection as _0x4ca890}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x43f6a0,IconCancel as _0x1b3eb3,IconTrackChanges as _0xb105de}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as to,View as _0x3b0130,ViewCollection as _0x5cdd0b,FocusCycler as _0x49f9d8,ViewModel as _0x3c92b0,createDropdown as _0x30e8a9,SplitButtonView as _0x2727cf,addListToDropdown as _0x1fc2f2,MenuBarMenuView as _0x33a675,MenuBarMenuListView as _0x4416a5,ListSeparatorView as _0x3e4ce4,MenuBarMenuListItemView as _0x5f2f40,MenuBarMenuListItemButtonView as _0x123cf4,BodyCollection as _0x17d8c7,Dialog as _0x5f0b2e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x47b862,hashObject as _0x482ee0,surroundingMarkersDetector as _0x551d7f,FOCUS_ANNOTATION_KEYSTROKE as _0x28b85a,AriaDescriptionView as _0x5e4763,setupThreadKeyboardNavigation as _0x1f2ce6,trimHtml as _0x546a86,UserView as _0x206158,LateFocusButtonView as _0x546d99,getDateTimeFormatter as _0x569dc4,getAllMarkersDomElementsSorted as _0x54d4e2,sanitizeEditorConfig as _0x3351a2}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x19a744,LiveRange as _0x80ba14,LivePosition as _0x3df3c0,DowncastWriter as _0x1e2250}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xea350c,toWidget as _0x153fc6}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x126853,set as _0x362282,isEqual as _0x2ff6dc,unset as _0x380c19,omit as Ut}from'es-toolkit/compat';import{Delete as _0x301ef5,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1b6ce1}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x56d33c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class D extends _0x4571b2{['_enabledCommands'];constructor(_0x538617,_0x25363a){super(_0x538617),this['_enabledCommands']=_0x25363a,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 _0x56089b of this['editor']['commands']['commands']())_0x56089b['affectsData']&&!this['_enabledCommands']['has'](_0x56089b)&&_0x56089b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2cc1c2 of this['editor']['commands']['commands']())_0x2cc1c2['affectsData']&&!this['_enabledCommands']['has'](_0x2cc1c2)&&_0x2cc1c2['clearForceDisabled']('TrackChangesCommand');}}class M extends _0x4571b2{['_suggestions'];constructor(_0x4eb50c,_0x25b814){super(_0x4eb50c),this['_suggestions']=_0x25b814,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3448dd){const _0x421213=this['_suggestions']['get'](_0x3448dd);if(!_0x421213)throw new _0x33db9e('track-changes-accept-suggestion-not-found',this);const _0x547e5c=_0x421213['getRanges']();this['editor']['model']['canEditAt'](_0x547e5c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x421213);}}class $ extends _0x4571b2{['_suggestions'];constructor(_0x486e60,_0x2aeb68){super(_0x486e60),this['_suggestions']=_0x2aeb68,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xc0f77b){const _0x315ffe=this['_suggestions']['get'](_0xc0f77b);if(!_0x315ffe)throw new _0x33db9e('track-changes-discard-suggestion-not-found',this);const _0x1a13dd=_0x315ffe['getRanges']();this['editor']['model']['canEditAt'](_0x1a13dd)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x315ffe);}}function ls(_0x2cb281,_0x34ac11){let _0x223a19='';return _0x223a19+=_0x2cb281['split']('*')['map']((_0x25a44f,_0x5c700f)=>_0x5c700f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x25a44f)+'</span>':nn(_0x25a44f))['join'](''),_0x34ac11&&(_0x223a19+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x34ac11['value']+'\x22\x20title=\x22'+_0x34ac11['title']+'\x22></span>'),_0x223a19;}function nn(_0x142663){const _0xeddfb2=document['createElement']('span');return _0xeddfb2['innerText']=_0x142663,_0xeddfb2['innerHTML'];}function ts(_0x55cdce){return _0x55cdce['sort']((_0x2a2e82,_0xb26147)=>'deletion'==_0x2a2e82['type']&&'deletion'!=_0xb26147['type']?-0x1:'deletion'!=_0x2a2e82['type']&&'deletion'==_0xb26147['type']?0x1:0x0);}function Yt(_0x602512,_0x196e7a){let _0xbf0e56,_0x2ef39d=0x0;const _0x330402=[],_0x4c3f4f=_0x196e7a['schema'];for(;_0x2ef39d<_0x602512['length'];){const _0x47d258=_0x602512[_0x2ef39d],_0x8fd329=_0x602512[_0x2ef39d+0x1];_0xbf0e56||(_0xbf0e56=_0x196e7a['createPositionBefore'](_0x47d258)),on(_0x196e7a,_0x47d258,_0x8fd329)||(_0x330402['push'](_0x196e7a['createRange'](_0xbf0e56,_0x4c3f4f['isObject'](_0x47d258)?_0x196e7a['createPositionAfter'](_0x47d258):_0x196e7a['createPositionAt'](_0x47d258,'end'))),_0xbf0e56=null),_0x2ef39d++;}return _0x330402;}function on(_0x5d20d6,_0xd51717,_0x3e0800){if(!_0x3e0800)return!0x1;const _0x79d8bb=_0x5d20d6['createPositionAfter'](_0xd51717),_0x2f1733=_0x5d20d6['createPositionBefore'](_0x3e0800);return _0x79d8bb['isTouching'](_0x2f1733);}function rs(_0x20365b,_0x5a9f9e,_0x30114e){for(;_0x30114e['length'];){const _0x5ae028=_0x30114e['splice'](0x0,0x64);_0x20365b['change'](()=>{for(const _0x5c542f of _0x5ae028)_0x5c542f['isInContent']&&_0x5a9f9e['execute'](_0x5c542f['id']);});}}class B extends _0x4571b2{['_command'];['_suggestions'];constructor(_0x24cb12,_0x339221,_0x490f69){super(_0x24cb12),this['_command']=_0x339221,this['_suggestions']=_0x490f69,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x444b55=Array['from'](this['_suggestions']['values']())['some'](_0xe0ffc3=>_0xe0ffc3['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x444b55;}['execute'](){const _0x17008a=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3f783b of _0x17008a){const _0x566ced=_0x3f783b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x566ced))return;}rs(this['editor']['model'],this['_command'],_0x17008a);}}class T extends _0x4571b2{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x32be7b,_0x5773a6,_0xb9bf1d){super(_0x32be7b),this['_command']=_0x5773a6,this['_suggestions']=_0xb9bf1d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5e3eec=this['editor']['model']['document']['selection'],_0x42c4a6=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1bb4bc,_0x3d890c){const _0x4b903a=Array['from'](_0x1bb4bc['getRanges']()),_0x3ab500=new Set();for(const _0x36b47c of _0x3d890c)if(_0x36b47c['isInContent']){for(const _0x2908c2 of _0x4b903a)for(const _0x594ca6 of _0x36b47c['getRanges']())(_0x2908c2['isIntersecting'](_0x594ca6)||_0x1bb4bc['isCollapsed']&&!_0x36b47c['isMultiRange']&&_0x36b47c['next']&&_0x594ca6['end']['isTouching'](_0x2908c2['start']))&&_0x3ab500['add'](_0x36b47c);}return _0x3ab500;}(_0x5e3eec,_0x42c4a6),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x253462=ts(Array['from'](this['_selectedSuggestions']));for(const _0x57874f of _0x253462){const _0x571ad6=_0x57874f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x571ad6))return;}rs(this['editor']['model'],this['_command'],_0x253462);}}class x extends/* #__PURE__ -- @preserve */
24
+ _0x14016a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5f2e7b,_0x1f1643){super(),this['id']=_0x1f1643['id'],this['type']=_0x1f1643['type'],this['subType']=_0x1f1643['subType']||null,this['author']=_0x1f1643['author'],this['creator']=_0x1f1643['creator']||_0x1f1643['author'],this['isExternal']=Boolean(_0x1f1643['attributes']&&_0x1f1643['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1f1643['originalSuggestionId']||null,this['_model']=_0x5f2e7b,this['_onAccept']=_0x1f1643['onAccept'],this['_onDiscard']=_0x1f1643['onDiscard'],this['_onAttributesChange']=_0x1f1643['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1f1643['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 _0x3be7c6=this;for(;_0x3be7c6['previous'];)_0x3be7c6=_0x3be7c6['previous'];return _0x3be7c6;}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'](_0x37fad8){this['_markerNames']['add'](_0x37fad8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4baaa0=>this['_model']['markers']['get'](_0x4baaa0))['filter'](_0x45123a=>_0x45123a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2394d9=>{for(const _0x255a52 of this['getMarkers']())_0x2394d9['removeMarker'](_0x255a52);}),this['_markerNames']['clear']();}['removeMarker'](_0x424c41){this['_model']['change'](_0x3f3182=>{_0x3f3182['removeMarker'](_0x424c41);}),this['_markerNames']['delete'](_0x424c41);}['addRange'](_0x2035c9){const _0x35fccf='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x35fccf),this['_model']['change'](_0x221196=>{_0x221196['addMarker'](_0x35fccf,{'range':_0x2035c9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x417efa){for(const _0xde7534 of this['getRanges']())if(_0xde7534['isIntersecting'](_0x417efa))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3fa777=>_0x3fa777['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x509978,_0x4e3dca)=>[..._0x509978,..._0x4e3dca['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x127744=this['getRanges']();if(0x1!=_0x127744['length'])return null;const _0x28eeb0=_0x127744[0x0],_0x18280f=_0x28eeb0['start']['nodeAfter'],_0x2831db=_0x28eeb0['end']['nodeBefore'];return _0x18280f instanceof _0x19a744?_0x18280f!=_0x2831db?null:_0x18280f: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 _0x249e99=[];let _0x13bb51=this['head'];for(;_0x13bb51;)_0x249e99['push'](_0x13bb51),_0x13bb51=_0x13bb51['next'];return _0x249e99;}['setAttribute'](_0x550636,_0x4964d1){const _0x3cb08c=_0x126853(this['attributes']);_0x362282(_0x3cb08c,_0x550636,_0x4964d1),_0x2ff6dc(_0x3cb08c,this['attributes'])||(this['attributes']=_0x3cb08c,this['_onAttributesChange'](_0x3cb08c));}['removeAttribute'](_0x4d787c){const _0x4dbbbb=_0x126853(this['attributes']);_0x380c19(_0x4dbbbb,_0x4d787c),_0x2ff6dc(_0x4dbbbb,this['attributes'])||(this['attributes']=_0x4dbbbb,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 _0x422f91()['substr'](0x1,0x5);}}function o(_0x26d6ce,_0x14fd27,_0xfbb1d1){const _0x317625=_0x26d6ce['t'],t=_0x26d6ce['t'];switch(_0x14fd27){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',_0xfbb1d1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xfbb1d1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xfbb1d1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xfbb1d1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xfbb1d1);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',_0xfbb1d1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xfbb1d1);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',_0xfbb1d1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xfbb1d1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xfbb1d1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xfbb1d1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xfbb1d1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xfbb1d1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xfbb1d1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xfbb1d1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xfbb1d1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xfbb1d1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xfbb1d1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xfbb1d1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xfbb1d1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xfbb1d1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xfbb1d1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xfbb1d1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xfbb1d1);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xfbb1d1);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'},_0xfbb1d1);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xfbb1d1);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xfbb1d1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xfbb1d1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xfbb1d1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xfbb1d1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xfbb1d1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xfbb1d1);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'},_0xfbb1d1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xfbb1d1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xfbb1d1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xfbb1d1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xfbb1d1);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'},_0xfbb1d1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xfbb1d1);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'},_0xfbb1d1);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'},_0xfbb1d1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xfbb1d1);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'},_0xfbb1d1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xfbb1d1);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'},_0xfbb1d1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xfbb1d1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xfbb1d1);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'},_0xfbb1d1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xfbb1d1);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 _0x317625({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xfbb1d1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x317625({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xfbb1d1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xfbb1d1);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'},_0xfbb1d1);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'},_0xfbb1d1);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'},_0xfbb1d1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x14fd27;}}class O{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x51b65a,_0x31dbfe){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x51b65a,this['_locale']=_0x31dbfe;}['getDescriptions'](_0x5187f5){const _0x568953=[],_0x5f40af=new Set(),_0x37974e=new Set();for(let _0x3969b3=0x0;_0x3969b3<_0x5187f5['length'];_0x3969b3++){const _0x5be6b6=_0x5187f5[_0x3969b3];if(!_0x5be6b6['isInContent'])continue;const _0x16f406=this['_handleCustomCallbackDescription'](_0x5be6b6);if(_0x16f406){if(null!=_0x5be6b6['subType']){if(_0x5f40af['has'](_0x5be6b6['subType']))continue;_0x5f40af['add'](_0x5be6b6['subType']);}_0x568953['push'](_0x16f406);}else{if('attribute'!=_0x5be6b6['type'])'insertion'!=_0x5be6b6['type']&&'deletion'!=_0x5be6b6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x568953,_0x5be6b6,_0x5187f5[_0x3969b3+0x1]);else{const _0x37402c=_0x5be6b6['data']['key'];if(_0x37974e['has'](_0x37402c))continue;_0x37974e['add'](_0x5be6b6['data']['key']),_0x37402c==m?this['_handleRenameSuggestionDescription'](_0x568953,_0x5be6b6):this['_handleAttributeSuggestionDescription'](_0x568953,_0x5be6b6);}}}return this['_resolveDescriptionItems'](_0x568953);}['registerDescriptionCallback'](_0x2d9fee){this['_customCallbacks']['push'](_0x2d9fee);}['registerElementLabel'](_0xbf3307,_0xee184,_0x13374b=_0x4315fd['normal']){'function'==typeof _0xbf3307?_0x268113(this['_itemLabelsCallbacks'],{'matchingCallback':_0xbf3307,'label':_0xee184,'priority':_0x13374b}):this['_itemLabels']['set'](_0xbf3307,_0xee184);}['registerAttributeLabel'](_0x530137,_0x21ae96){this['_attributeLabels']['set'](_0x530137,_0x21ae96);}['getItemLabel'](_0x183b31,_0x1ff1f0=0x1){let _0x1773b3;for(const _0x236392 of this['_itemLabelsCallbacks'])if(_0x236392['matchingCallback'](_0x183b31)){_0x1773b3=_0x236392['label'];break;}return _0x1773b3||(_0x1773b3=this['_itemLabels']['get'](_0x183b31['name'])),_0x1773b3?_0x1773b3(_0x1ff1f0):0x1!==_0x1ff1f0?_0x1ff1f0+'\x20'+_0x183b31['name']+'s':''+_0x183b31['name'];}['_addDescriptionItems'](_0x3328ad,_0x32ef68){const _0x366b67=_0x32ef68['getFirstRange']()['getWalker'](),_0x53be8e='insertion'==_0x32ef68['type']?'add':'remove';for(const _0xf97c63 of _0x366b67){const _0x4dce3f=_0xf97c63['item'],_0x952843=_0x3328ad[_0x3328ad['length']-0x1];if(_0x4dce3f['is']('$textProxy'))_0x952843&&_0x952843['type']['indexOf']('Container')>-0x1&&_0x3328ad['pop'](),_0x952843&&'text'==_0x952843['type']?_0x952843[_0x53be8e]+=_0x4dce3f['data']:_0x3328ad['push']({'type':'text','add':'add'==_0x53be8e?_0x4dce3f['data']:'','remove':'remove'==_0x53be8e?_0x4dce3f['data']:''});else{if(this['_schema']['isObject'](_0x4dce3f)){const _0x410f1d=_0x4dce3f;if(_0x952843&&_0x952843['type']['indexOf']('Container')>-0x1&&_0x3328ad['pop'](),'elementEnd'==_0xf97c63['type'])continue;_0x952843&&_0x952843['type']==_0x53be8e+'Object'&&_0x952843['element']['name']==_0x410f1d['name']?_0x952843['quantity']++:_0x3328ad['push']({'type':_0x53be8e+'Object','element':_0x410f1d,'quantity':0x1}),_0x366b67['skip'](_0x1b767a=>!('elementEnd'==_0x1b767a['type']&&_0x1b767a['item']==_0x4dce3f));}else{if(this['_schema']['checkChild'](_0x4dce3f,'$text')||_0x4dce3f['is']('element','softBreak')){const _0xca1289=_0x4dce3f;if('add'==_0x53be8e&&'elementStart'==_0xf97c63['type']||'remove'==_0x53be8e&&'elementEnd'==_0xf97c63['type'])continue;if(_0x952843&&-0x1==_0x952843['type']['indexOf']('Container')){'text'==_0x952843['type']&&(_0x952843[_0x53be8e]+='\x0a');continue;}let _0x34d008;if(_0x34d008='add'==_0x53be8e?_0xca1289['nextSibling']&&!this['_schema']['isObject'](_0xca1289['nextSibling'])?_0xca1289['nextSibling']:null:_0xca1289['previousSibling']&&!this['_schema']['isObject'](_0xca1289['previousSibling'])?_0xca1289['previousSibling']:null,_0xca1289['isEmpty']||_0x34d008&&_0x34d008['isEmpty']){const _0x546252=_0x34d008&&_0x34d008['isEmpty']?_0x34d008:_0xca1289;_0x952843&&_0x952843['type']==_0x53be8e+'EmptyContainer'&&_0x952843['element']['name']==_0x546252['name']?_0x952843['quantity']++:_0x3328ad['push']({'type':_0x53be8e+'EmptyContainer','element':_0x546252,'quantity':0x1});}else _0x3328ad['push']({'type':_0x53be8e+'Container','element':_0xca1289});}}}}}['_resolveDescriptionItems'](_0x2cc099){const _0x43ab58=this['_locale'],_0x3e0f3=[],_0x12a90a=[],_0x1acf53=[];for(const _0x17d579 of _0x2cc099)switch(_0x17d579['type']){case'text':if(_0x17d579['add']=_0x17d579['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x17d579['remove']=_0x17d579['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x17d579['add']&&''!=_0x17d579['remove']){_0x3e0f3['push']({'type':'replace','content':o(_0x43ab58,'REPLACE_TEXT',['\x22'+_0x17d579['remove']+'\x22','\x22'+_0x17d579['add']+'\x22'])});continue;}if(null!=_0x17d579['add']['match'](/^ +$/)){_0x3e0f3['push']({'type':'insertion','content':o(_0x43ab58,'*Insert:*\x20%0',o(_0x43ab58,'ELEMENT_SPACE',_0x17d579['add']['length']))});continue;}if(null!=_0x17d579['remove']['match'](/^ +$/)){_0x3e0f3['push']({'type':'deletion','content':o(_0x43ab58,'*Remove:*\x20%0',o(_0x43ab58,'ELEMENT_SPACE',_0x17d579['remove']['length']))});continue;}if(''!=_0x17d579['add']){_0x3e0f3['push']({'type':'insertion','content':o(_0x43ab58,'*Insert:*\x20%0','\x22'+_0x17d579['add']+'\x22')});continue;}_0x3e0f3['push']({'type':'deletion','content':o(_0x43ab58,'*Remove:*\x20%0','\x22'+_0x17d579['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3e0f3['push']({'type':'insertion','content':o(_0x43ab58,'*Insert:*\x20%0',this['getItemLabel'](_0x17d579['element'],_0x17d579['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3e0f3['push']({'type':'deletion','content':o(_0x43ab58,'*Remove:*\x20%0',this['getItemLabel'](_0x17d579['element'],_0x17d579['quantity']))});continue;case'addContainer':_0x3e0f3['push']({'type':'insertion','content':o(_0x43ab58,'*Split:*\x20%0',this['getItemLabel'](_0x17d579['element'],_0x17d579['quantity']))});continue;case'removeContainer':_0x3e0f3['push']({'type':'deletion','content':o(_0x43ab58,'*Merge:*\x20%0',this['getItemLabel'](_0x17d579['element'],_0x17d579['quantity']))});continue;case'addFormat':_0x12a90a['push'](_0x17d579['key']);continue;case'removeFormat':_0x1acf53['push'](_0x17d579['key']);continue;default:_0x3e0f3['push'](_0x17d579);}if(_0x12a90a['length']){const _0x92cf3f=_0x12a90a['map'](_0x2358f8=>this['_attributeLabels']['has'](_0x2358f8)?this['_attributeLabels']['get'](_0x2358f8):_0x2358f8)['join'](',\x20');_0x3e0f3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x92cf3f)});}if(_0x1acf53['length']){const _0x70079=_0x1acf53['map'](_0x5836bf=>this['_attributeLabels']['has'](_0x5836bf)?this['_attributeLabels']['get'](_0x5836bf):_0x5836bf)['join'](',\x20');_0x3e0f3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x70079)});}return _0x3e0f3;}['_handleCustomCallbackDescription'](_0x51f88c){for(const _0x1facbc of this['_customCallbacks']){const _0x1402d4=_0x1facbc(_0x51f88c);if(_0x1402d4&&'type'in _0x1402d4)return _0x1402d4;}}['_handleAttributeSuggestionDescription'](_0xdbab4d,_0x2e9d6c){const _0x325dc8=_0x2e9d6c['data'],_0x24d174=void 0x0===_0x325dc8['newValue']?'removeFormat':'addFormat';_0xdbab4d['push']({'type':_0x24d174,'key':_0x325dc8['key']});}['_handleRenameSuggestionDescription'](_0x1f47e3,_0x8aa74e){_0x1f47e3['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x8aa74e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x285b1a,_0x355078,_0x4c7cc4){if(this['_addDescriptionItems'](_0x285b1a,_0x355078),_0x4c7cc4&&_0x4c7cc4['getFirstRange']()&&!_0x355078['getFirstRange']()['end']['isEqual'](_0x4c7cc4['getFirstRange']()['start'])){const _0x170d67=_0x285b1a[_0x285b1a['length']-0x1],_0x582b15='insertion'==_0x355078['type']?'add':'remove';_0x170d67&&'text'==_0x170d67['type']&&(_0x170d67[_0x582b15]+='\x0a');}}}class R extends _0x20a8ee{['afterInit'](){const _0x4714ee=this['editor'],_0x8e933f=_0x4714ee['plugins']['get']('TrackChangesEditing');_0x4714ee['commands']['get']('showAIAssistant')&&_0x8e933f['enableCommand']('showAIAssistant');}}class E extends _0x20a8ee{['afterInit'](){const _0x10284e=this['editor'],_0x4ccf3d=_0x10284e['locale'];if(!_0x10284e['plugins']['has']('AlignmentEditing'))return;const _0x1c4b38=_0x10284e['plugins']['get']('TrackChangesEditing');_0x1c4b38['enableDefaultAttributesIntegration']('alignment'),_0x1c4b38['registerBlockAttribute']('alignment'),_0x1c4b38['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4ccf3d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x72e165=this['editor'],_0x3fe091=_0x72e165['locale'];_0x72e165['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1eebb5=>{if('formatBlock'!=_0x1eebb5['type'])return;const {data:_0x1ef074}=_0x1eebb5;if(_0x1ef074&&'alignment'==_0x1ef074['commandName']){const _0x4e2a42=_0x1ef074['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3fe091,'*Format:*\x20%0',function(_0x3270c7){switch(_0x3270c7){case'left':return o(_0x3fe091,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3fe091,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3fe091,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3fe091,'FORMAT_JUSTIFY_TEXT');}}(_0x4e2a42))};}});}}const Xt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x20a8ee{['afterInit'](){const _0x483030=this['editor'],_0x34190a=_0x483030['plugins']['get']('TrackChangesEditing'),_0x4d2590=_0x483030['locale'];for(const _0x3805a9 of Xt){if(!_0x483030['plugins']['has'](_0x3805a9))continue;const _0x569375=_0x3805a9['slice'](0x0,-0x7)['toLowerCase'](),_0x5c5703='FORMAT_'+_0x569375['toUpperCase']();_0x34190a['enableDefaultAttributesIntegration'](_0x569375),_0x34190a['registerInlineAttribute'](_0x569375),_0x34190a['descriptionFactory']['registerAttributeLabel'](_0x569375,o(_0x4d2590,_0x5c5703));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46ea55=this['editor'],_0x426d2c=_0x46ea55['locale'],_0x4bdfe0=_0x46ea55['plugins']['get']('TrackChangesEditing');function _0x238afd(_0x2c6d32,_0x183f61){_0x4bdfe0['descriptionFactory']['registerDescriptionCallback'](_0x3fee11=>{if('formatInline'!=_0x3fee11['type'])return;const {data:_0x4840f4}=_0x3fee11;return _0x4840f4&&_0x4840f4['commandName']===_0x2c6d32?_0x4840f4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x426d2c,'*Format:*\x20%0',_0x183f61)}:{'type':'format','content':o(_0x426d2c,'*Remove\x20format:*\x20%0',_0x183f61)}:void 0x0;});}_0x238afd('bold',o(_0x426d2c,'FORMAT_BOLD')),_0x238afd('italic',o(_0x426d2c,'FORMAT_ITALIC')),_0x238afd('underline',o(_0x426d2c,'FORMAT_UNDERLINE')),_0x238afd('code',o(_0x426d2c,'FORMAT_CODE')),_0x238afd('strikethrough',o(_0x426d2c,'FORMAT_STRIKETHROUGH')),_0x238afd('subscript',o(_0x426d2c,'FORMAT_SUBSCRIPT')),_0x238afd('superscript',o(_0x426d2c,'FORMAT_SUPERSCRIPT'));}}class V extends _0x20a8ee{['afterInit'](){const _0x34160c=this['editor'],_0x536ecb=_0x34160c['locale'];if(!_0x34160c['plugins']['has']('BlockQuoteEditing'))return;const _0x2c87ac=_0x34160c['plugins']['get']('TrackChangesEditing'),_0x45956b=this['editor']['commands']['get']('blockQuote');_0x2c87ac['enableCommand']('blockQuote',(_0x32cfa7,_0x10afe8={})=>{const _0x1d0a59=this['editor']['model']['document']['selection'],_0x1116c=_0x10afe8&&void 0x0!==_0x10afe8['forceValue']?_0x10afe8['forceValue']:!_0x45956b['value'];let _0x30f0f8=[];if(_0x1116c){const _0x5990a3=Array['from'](_0x1d0a59['getSelectedBlocks']())['filter'](_0xbfec8f=>Zt(_0xbfec8f)||function(_0x5ed267,_0xe114ff){const _0x2e0175=_0xe114ff['checkChild'](_0x5ed267['parent'],'blockQuote'),_0x5dad66=_0xe114ff['checkChild'](['$root','blockQuote'],_0x5ed267);return _0x2e0175&&_0x5dad66;}(_0xbfec8f,this['editor']['model']['schema']));_0x30f0f8=Yt(_0x5990a3,_0x34160c['model']);}else{const _0x1ccd4e=Array['from'](_0x1d0a59['getSelectedBlocks']())['filter'](_0x17c15c=>Zt(_0x17c15c));_0x30f0f8=Yt(_0x1ccd4e,_0x34160c['model']);}_0x34160c['model']['change'](()=>{for(const _0x15545b of _0x30f0f8)_0x2c87ac['markBlockFormat'](_0x15545b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1116c}]});});}),_0x2c87ac['descriptionFactory']['registerDescriptionCallback'](_0x5ae37e=>{const {data:_0x18d68c}=_0x5ae37e;if(_0x18d68c&&'blockQuote'==_0x18d68c['commandName']){const _0x9afe6d=o(_0x536ecb,'ELEMENT_BLOCK_QUOTE');return _0x18d68c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x536ecb,'*Set\x20format:*\x20%0',_0x9afe6d)}:{'type':'format','content':o(_0x536ecb,'*Remove\x20format:*\x20%0',_0x9afe6d)};}});}}function Zt(_0x13790c){return'blockQuote'==_0x13790c['parent']['name'];}class F extends _0x20a8ee{['afterInit'](){const _0x1453db=this['editor'],_0x3937cc=_0x1453db['locale'],_0x4413f4=_0x1453db['plugins']['get']('TrackChangesEditing');_0x1453db['plugins']['has']('BookmarkEditing')&&(_0x4413f4['enableCommand']('insertBookmark'),_0x4413f4['enableDefaultAttributesIntegration']('updateBookmark'),_0x4413f4['registerBlockAttribute']('bookmarkId'),_0x4413f4['descriptionFactory']['registerDescriptionCallback'](_0x5621bb=>{if('insertion'!=_0x5621bb['type']&&'deletion'!=_0x5621bb['type']&&'attribute'!=_0x5621bb['type'])return;const _0x532307=_0x5621bb['getContainedElement']();if(null==_0x532307)return;if(!_0x532307['is']('element','bookmark'))return;const _0x4aa2ac=_0x532307['getAttribute']('bookmarkId');if('insertion'==_0x5621bb['type'])return{'type':'insertion','content':o(_0x3937cc,'*Insert:*\x20%0','\x22'+_0x4aa2ac+'\x22\x20'+o(_0x3937cc,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5621bb['type'])return{'type':'deletion','content':o(_0x3937cc,'*Remove:*\x20%0','\x22'+_0x4aa2ac+'\x22\x20'+o(_0x3937cc,'ELEMENT_BOOKMARK'))};const {data:_0x565339}=_0x5621bb;if(!_0x565339||'bookmarkId'!=_0x565339['key'])return;return{'type':'format','content':o(_0x3937cc,'*Set\x20bookmark:*\x20%0','\x22'+_0x565339['newValue']+'\x22')};}));}}class G extends _0x20a8ee{['afterInit'](){const _0x50f9f2=this['editor'];_0x50f9f2['plugins']['has']('CaseChange')&&(_0x50f9f2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x50f9f2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x50f9f2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class L extends _0x20a8ee{['afterInit'](){const _0x391d46=this['editor'];_0x391d46['commands']['get']('ckbox')&&_0x391d46['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x20a8ee{['afterInit'](){const _0x49ef43=this['editor'];if(!_0x49ef43['plugins']['has']('CodeBlock'))return;const _0x46a764=_0x49ef43['plugins']['get']('TrackChangesEditing'),_0x10c6b7=_0x49ef43['locale'],_0xab33e8=_0x49ef43['config']['get']('codeBlock')['languages'],_0x2c1192=_0x49ef43['commands']['get']('codeBlock');_0x46a764['enableCommand']('indentCodeBlock'),_0x46a764['enableCommand']('outdentCodeBlock'),_0x46a764['enableCommand']('codeBlock',(_0x33693c,_0x21aa62={})=>{const _0x37664=_0x49ef43['model'],_0x23ee9a=_0x49ef43['model']['document']['selection'],_0x5f5a2f=_0x21aa62&&void 0x0!==_0x21aa62['forceValue']?_0x21aa62['forceValue']:!_0x2c1192['value'];let _0x54e0a0;_0x21aa62['language']||(_0x21aa62['language']=_0xab33e8[0x0]['language']),_0x54e0a0=_0x5f5a2f?Array['from'](_0x23ee9a['getSelectedBlocks']())['filter'](_0x3baf08=>oo(_0x3baf08)||function(_0x2ee8bc,_0x20ab36){if(_0x2ee8bc['is']('rootElement')||_0x20ab36['isLimit'](_0x2ee8bc))return!0x1;return _0x20ab36['checkChild'](_0x2ee8bc['parent'],'codeBlock');}(_0x3baf08,_0x37664['schema'])):Array['from'](_0x23ee9a['getSelectedBlocks']())['filter'](_0x1b9547=>oo(_0x1b9547));const _0x40b95b=Yt(_0x54e0a0,_0x37664);_0x37664['change'](()=>{for(const _0x4642e3 of _0x40b95b)_0x46a764['markBlockFormat'](_0x4642e3,{'commandName':'codeBlock','commandParams':[{..._0x21aa62,'forceValue':_0x5f5a2f}],'formatGroupId':'blockName'});});}),(_0x46a764['descriptionFactory']['registerElementLabel']('codeBlock',_0x1a5289=>o(_0x10c6b7,'ELEMENT_CODE_BLOCK',_0x1a5289)),_0x46a764['descriptionFactory']['registerDescriptionCallback'](_0x208232=>{if('formatBlock'!=_0x208232['type'])return;const _0x350d77=_0x10c6b7['t'],{data:_0xb627be}=_0x208232;if(!_0xb627be||'codeBlock'!=_0xb627be['commandName'])return;const _0x1d10ed=_0xb627be['commandParams'][0x0]['language'],_0x3da410=_0x350d77(_0xab33e8['find'](_0x55e3ed=>_0x55e3ed['language']===_0x1d10ed)['label'])['toLowerCase']();return _0xb627be['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10c6b7,'*Set\x20format:*\x20%0',o(_0x10c6b7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3da410+')')}:{'type':'format','content':o(_0x10c6b7,'*Remove\x20format:*\x20%0',o(_0x10c6b7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x2bf8eb){return'codeBlock'==_0x2bf8eb['name'];}class K extends _0x20a8ee{['afterInit'](){const _0x1fa7e4=this['editor'];if(!_0x1fa7e4['plugins']['has']('CommentsEditing'))return;_0x1fa7e4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x299c82,_0x344ea5,_0x44c50e){const _0x4752a3=[];for(const _0xaf9e53 of _0x344ea5['getItems']())_0xaf9e53['hasAttribute'](_0x299c82)&&_0x4752a3['push'](_0x44c50e['createRangeOn'](_0xaf9e53));return _0x4752a3;}function Fe(_0x26360d,_0x1f60bb,{showActiveMarker:_0x10412b=!0x0}={}){const _0x26d0c1=_0x26360d['plugins']['get']('TrackChangesEditing');return(_0x42ac67,_0x40dbea,_0x45629a)=>{if(!_0x45629a['consumable']['test'](_0x40dbea['markerRange'],_0x42ac67['name']))return;const _0xf47de6=_0x40dbea['markerRange']['getWalker'](),_0x79211d=_0x40dbea['markerRange']['start'],_0x490d40=_0x26360d['model']['schema'];let _0x2ae14e=null,_0x45e33e=null,_0xd0253c=!0x1,_0x2644a5=!0x1;for(const _0x1236d8 of _0xf47de6){const _0x28f3b1=_0x1236d8['item'];_0xd0253c=_0xd0253c||_0x490d40['isContent'](_0x28f3b1);const _0x550935=_0x45629a['mapper']['toViewElement'](_0x28f3b1);if(_0x550935&&_0x550935['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1236d8['type']&&(_0x490d40['isBlock'](_0x28f3b1)&&!_0x490d40['isLimit'](_0x28f3b1)&&(_0x28f3b1['nextSibling']||_0x79211d['isAtEnd']?_0x2ae14e&&_0x2ae14e['parent']==_0x28f3b1||(_0x2ae14e=_0x28f3b1,_0x52fb6c(_0x1236d8['previousPosition']),_0x2644a5=!0x0):_0x45e33e=_0x45e33e||_0x1236d8['previousPosition']));}function _0x52fb6c(_0x301222){const {id:_0x2797ef,authorId:_0x597b0d}=_0x26d0c1['_splitMarkerName'](_0x40dbea['markerName']),_0x14a9eb=_0x45629a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1f60bb,'data-suggestion':_0x2797ef,'data-author-id':_0x597b0d}),_0x25e131=_0x45629a['mapper']['toViewPosition'](_0x301222);_0x10412b&&_0x26d0c1['activeMarkers']['includes'](_0x40dbea['markerName'])&&_0x45629a['writer']['addClass']('ck-suggestion-marker--active',_0x14a9eb),_0x45629a['writer']['insert'](_0x25e131,_0x14a9eb),_0x45629a['mapper']['bindElementToMarker'](_0x14a9eb,_0x40dbea['markerName']);}_0xd0253c||_0x2644a5||!_0x45e33e||_0x52fb6c(_0x45e33e);};}class H extends _0x20a8ee{static get['requires'](){return[_0x301ef5];}['init'](){const _0xa3e0d=this['editor'],_0x3ace52=_0xa3e0d['plugins']['get']('TrackChangesEditing');_0x3ace52['enableCommand']('delete');const _0x233e17=_0xa3e0d['commands']['get']('deleteForward');_0x3ace52['enableCommand']('deleteForward',(_0x19c9fa,_0x55af4d={})=>{const _0x378c16=_0xa3e0d['model']['createSelection'](_0xa3e0d['model']['document']['selection']);_0x378c16['isCollapsed']&&_0xa3e0d['model']['modifySelection'](_0x378c16,{'direction':'forward','unit':_0x55af4d['unit']});const _0x5b6cb0=_0x378c16['getFirstRange'](),_0x36454e=_0x80ba14['fromRange'](_0x5b6cb0);let _0xffc7a3;_0x19c9fa(_0x55af4d),_0xffc7a3='$graveyard'==_0x36454e['root']['rootName']?_0xa3e0d['model']['createRange'](_0x5b6cb0['start']):_0xa3e0d['model']['createRange'](_0x36454e['start'],_0x36454e['end']),_0x36454e['detach'](),_0xa3e0d['model']['enqueueChange'](_0x233e17['buffer']['batch'],_0x1eb90b=>{_0x233e17['buffer']['lock'](),_0x1eb90b['setSelection'](_0x1eb90b['createRange'](_0xffc7a3['end'])),_0x233e17['buffer']['unlock']();});}),_0xa3e0d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0xa3e0d,'merge'),{'priority':'high'}),_0xa3e0d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x21325a,_0x3e7124,_0x4fbf68)=>{_0x4fbf68['options']['showSuggestionHighlights']&&Fe(_0xa3e0d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x21325a,_0x3e7124,_0x4fbf68);},{'priority':'high'}),_0xa3e0d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3f9369,_0x5e7384,_0xb1a70e)=>{const _0x2a7c86=_0xb1a70e['mapper']['markerNameToElements'](_0x5e7384['markerName']);if(_0x2a7c86){for(const _0x4d35e8 of _0x2a7c86)_0x4d35e8['is']('uiElement')&&(_0xb1a70e['mapper']['unbindElementFromMarkerName'](_0x4d35e8,_0x5e7384['markerName']),_0xb1a70e['writer']['remove'](_0x4d35e8));}},{'priority':'high'});}}class q extends _0x20a8ee{['afterInit'](){const _0x5e64ca=this['editor'];if(!_0x5e64ca['plugins']['has']('ListEditing'))return;const _0x5a3868=_0x5e64ca['locale'],_0x1c002b=_0x5e64ca['plugins']['get']('TrackChangesEditing'),_0x307a6b=_0x5e64ca['plugins']['has']('TodoListEditing'),_0xcf868=!!_0x5e64ca['config']['get']('list.multiBlock');function _0x1abe9e(_0x1aaa05){return{'type':'format','content':''+o(_0x5a3868,'*Set\x20format:*\x20%0',_0x1aaa05)};}function _0x58c62d(_0x5306b6){return{'type':'format','content':''+o(_0x5a3868,'*Remove\x20format:*\x20%0',_0x5306b6)};}_0x1c002b['enableDefaultAttributesIntegration']('numberedList'),_0x1c002b['enableDefaultAttributesIntegration']('bulletedList'),_0x1c002b['enableDefaultAttributesIntegration']('customNumberedList'),_0x1c002b['enableDefaultAttributesIntegration']('customBulletedList'),_0x1c002b['enableDefaultAttributesIntegration']('indentList'),_0x1c002b['enableDefaultAttributesIntegration']('outdentList'),_0x1c002b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1c002b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1c002b['registerBlockAttribute']('listItemId'),_0x1c002b['registerBlockAttribute']('listType'),_0x1c002b['registerBlockAttribute']('listIndent'),_0xcf868&&(_0x1c002b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1c002b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x307a6b&&(_0x1c002b['enableDefaultAttributesIntegration']('todoList'),_0x1c002b['enableDefaultAttributesIntegration']('checkTodoList'),_0x1c002b['registerBlockAttribute']('todoListChecked'),_0x1c002b['descriptionFactory']['registerDescriptionCallback'](_0x5b61df=>{const {data:_0x2de338}=_0x5b61df;if(_0x2de338&&'todoListChecked'==_0x2de338['key'])return{'type':'format','content':_0x2de338['newValue']?o(_0x5a3868,'*Check\x20item*'):o(_0x5a3868,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x346c17=>{if(_0x346c17['batch']['isUndo'])return!0x1;let _0x92018d=!0x1;const _0x4a1159=_0x1c002b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x535e26=>'todoListChecked'===_0x1c002b['_getAttributeKey'](_0x535e26));for(const _0x195574 of _0x4a1159){'todo'!=_0x195574['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1c002b['_findSuggestions'](_0x195574['getFirstRange'](),'attribute')['find'](_0x31d0b5=>'listType'===_0x1c002b['_getAttributeKey'](_0x31d0b5['suggestion']))||(_0x346c17['removeMarker'](_0x195574['getFirstMarker']()),_0x92018d=!0x0));}return _0x92018d;})),_0x1c002b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5a3868,'FORMAT_INDENT'));const _0x220480={'type':'format','content':''};_0x1c002b['descriptionFactory']['registerDescriptionCallback'](_0x21b126=>{const {data:_0x47e941}=_0x21b126;if(!_0x47e941||'listType'!=_0x47e941['key'])return;let _0x297e19=_0x21b126['head'];for(;_0x297e19;){if(_0x297e19['data']&&(('listStyle'==_0x297e19['data']['key']||'listMarkerStyle'==_0x297e19['data']['key'])&&(_0x297e19['data']['newValue']&&'default'!=_0x297e19['data']['newValue']||'default'!=_0x297e19['data']['oldValue']&&!_0x47e941['newValue'])||!_0xcf868&&_0x297e19['data']['key']==m))return _0x220480;_0x297e19=_0x297e19['next'];}if(null==_0x47e941['newValue'])switch(_0x47e941['oldValue']){case'bulleted':return _0x58c62d(o(_0x5a3868,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58c62d(o(_0x5a3868,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58c62d(o(_0x5a3868,'ELEMENT_TODO_LIST'));}switch(_0x47e941['newValue']){case'bulleted':return _0x1abe9e(o(_0x5a3868,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1abe9e(o(_0x5a3868,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1abe9e(o(_0x5a3868,'ELEMENT_TODO_LIST'));}}),_0x1c002b['descriptionFactory']['registerDescriptionCallback'](_0x4b5ec3=>{const {data:_0x3ebd7e}=_0x4b5ec3;if(_0x3ebd7e&&'listIndent'==_0x3ebd7e['key'])return null==_0x3ebd7e['newValue']||null==_0x3ebd7e['oldValue']&&0x0==_0x3ebd7e['newValue']?_0x220480:void 0x0;}),_0x1c002b['descriptionFactory']['registerDescriptionCallback'](_0x313767=>{if('attribute'!=_0x313767['type'])return;const {data:_0x13e862}=_0x313767;if(!_0x13e862||'listItemId'!=_0x13e862['key'])return;const _0x301ee6=Te(_0x313767);return'newValue'==_0x301ee6?{'type':'format','content':o(_0x5a3868,'*Merge:*\x20list\x20item')}:'oldValue'==_0x301ee6?{'type':'format','content':o(_0x5a3868,'*Split:*\x20list\x20item')}:_0x220480;}),_0x5e64ca['model']['document']['registerPostFixer'](_0x41172e=>this['listItemIdFixer'](_0x41172e)),_0x5e64ca['model']['document']['registerPostFixer'](_0x290ec2=>this['noTrackChangesFixer'](_0x290ec2)),_0x5e64ca['model']['document']['on']('change:data',(_0x42b65b,_0x5f38eb)=>{if(_0x5f38eb['isUndo']||!_0x5f38eb['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x137a55){if(_0x137a55['batch']['isUndo']||!_0x137a55['batch']['isLocal'])return!0x1;let _0x484b26=!0x1;const _0x3f984f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43981b=>_0x43981b['data']&&'listItemId'==_0x43981b['data']['key'])['filter'](_0x5cadc9=>_0x5cadc9['data']['newValue']&&_0x5cadc9['data']['oldValue']);for(const _0x351163 of _0x3f984f)Te(_0x351163)||(_0x137a55['removeMarker'](_0x351163['getFirstMarker']()),_0x484b26=!0x0);return _0x484b26;}['noTrackChangesFixer'](_0x488e3b){if(_0x488e3b['batch']['isUndo']||!_0x488e3b['batch']['isLocal'])return!0x1;const _0x1972a3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1972a3['trackChangesCommand']['value'])return!0x1;let _0x4c6497=!0x1;const _0x1d483e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x168e33=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3c10bc=>'attribute'==_0x3c10bc['type'])['filter'](_0x2e8ed2=>_0x1d483e['includes'](_0x2e8ed2['attributeKey']));if(0x0==_0x168e33['length'])return _0x4c6497;for(const _0x433337 of _0x168e33){const _0x34c60a=_0x1972a3['_findSuggestions'](_0x433337['range'],'attribute')['filter'](_0x51abeb=>!_0x51abeb['meta']['isNextTo'])['map'](_0x5218aa=>_0x5218aa['suggestion'])['filter'](_0x3cd395=>{const _0x454b45=_0x1972a3['_getAttributeKey'](_0x3cd395);return _0x1d483e['includes'](_0x454b45);});if(_0x34c60a['length']){for(const _0x5449a3 of _0x34c60a)_0x488e3b['removeMarker'](_0x5449a3['getFirstMarker']());_0x4c6497=!0x0;}}return _0x4c6497;}['assureChains'](){const _0x5da698=this['editor']['plugins']['get']('TrackChangesEditing'),_0x454885=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x9cdebe;const _0x14c527=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xd82aed=>{if(_0xd82aed['data']['oldRange']||!_0xd82aed['data']['newRange'])return null;if(!_0xd82aed['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x357a5e}=_0x5da698['_splitMarkerName'](_0xd82aed['name']);if(!_0x5da698['hasSuggestion'](_0x357a5e))return null;const _0x42e15a=_0x5da698['getSuggestion'](_0x357a5e);return _0x454885['includes'](_0x42e15a['data']['key']);})['map'](_0x9c971f=>{const {id:_0x3314d9}=_0x5da698['_splitMarkerName'](_0x9c971f['name']),_0x3d98d9=_0x5da698['getSuggestion'](_0x3314d9);return _0x9cdebe=_0x3d98d9['attributes']['groupId'],_0x3d98d9['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x14c527['size'])return;const _0x2a058d=_0x5da698['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26a45b=>'attribute'==_0x26a45b['type']&&_0x26a45b['data']&&_0x454885['includes'](_0x26a45b['data']['key'])&&_0x26a45b['attributes']['groupId']!=_0x9cdebe)['map'](_0x50b4ce=>({'listItem':_0x50b4ce['getFirstRange']()['start']['nodeAfter'],'groupId':_0x50b4ce['attributes']['groupId']})),_0x38c7b3=new Set();for(const {groupId:_0x4bd153,listItem:_0x4c333b}of _0x2a058d)_0x14c527['has'](_0x4c333b)&&_0x38c7b3['add'](_0x4bd153);for(const _0x42177c of _0x5da698['getSuggestions']())_0x38c7b3['has'](_0x42177c['attributes']['groupId'])&&_0x42177c['setAttribute']('groupId',_0x9cdebe);}['_supportLegacySuggestions'](){const _0x5de713=this['editor'],_0xc8eb7c=_0x5de713['locale'],_0x1ab129=_0x5de713['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1ab129['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x9dc660,_0x348718){const _0x2c3971=[];for(let _0x164302 of _0x9dc660)_0x164302['start']['nodeAfter']===_0x164302['end']['parent']&&(_0x164302=_0x5de713['model']['createRange'](_0x5de713['model']['createPositionAt'](_0x164302['start']['nodeAfter'],0x0))),_0x2c3971['push'](_0x164302);_0x5de713['model']['change'](_0x307b8d=>{const _0x276592=_0x5de713['model']['document']['selection'],_0x3e3d05=Array['from'](_0x276592['getRanges']())['map'](_0x4a368d=>_0x80ba14['fromRange'](_0x4a368d));_0x307b8d['setSelection'](_0x2c3971),_0x5de713['commands']['get'](_0x348718['commandName'])['refresh'](),_0x348718['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5de713['execute'](_0x348718['commandName'],..._0x348718['commandParams']),_0x307b8d['setSelection'](_0x3e3d05);for(const _0xa18aa7 of _0x3e3d05)_0xa18aa7['detach']();});}),_0x1ab129['descriptionFactory']['registerElementLabel'](function(_0x25eca6){const _0x57cae9=!_0x5de713['model']['schema']['isObject'](_0x25eca6),_0x44b47f=_0x25eca6['previousSibling'],_0x13cfea=_0x25eca6['nextSibling'],_0x52ac80=_0x25eca6['getAttribute']('listItemId'),_0x231291=!_0x44b47f||_0x44b47f['getAttribute']('listItemId')!==_0x52ac80,_0x15167c=!_0x13cfea||_0x13cfea['getAttribute']('listItemId')!==_0x52ac80;return _0x57cae9&&Boolean(_0x52ac80)&&_0x231291&&_0x15167c;},_0x2b3e1f=>o(_0xc8eb7c,'ELEMENT_LIST_ITEM',_0x2b3e1f));}['_registerLegacyDescription'](){const _0x218815=this['editor'],_0x5efb14=_0x218815['locale'];function _0x4e8092(_0x56d1db){const _0x22e868=_0x218815['commands']['get']('bulletedList')['value'],_0x353cce=_0x218815['commands']['get']('numberedList')['value'];return'numberedList'===_0x56d1db?_0x22e868:_0x353cce;}_0x218815['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3fcd37){if('formatBlock'!=_0x3fcd37['type'])return;const {data:_0x4a4089}=_0x3fcd37;if(!_0x4a4089)return;let _0x56ea08,_0x3c42e9,_0x391f6b,_0x3d2ed3;switch(_0x4a4089['commandName']){case'bulletedList':_0x391f6b=_0x4a4089['commandParams'][0x0]['forceValue'],_0x3d2ed3=_0x4e8092(_0x4a4089['commandName']),_0x56ea08=_0x391f6b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3d2ed3&&_0x218815['config']['get']('list.multiBlock')||(_0x56ea08='*Change\x20to:*\x20%0'),_0x3c42e9={'type':'format','content':o(_0x5efb14,_0x56ea08,o(_0x5efb14,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x391f6b=_0x4a4089['commandParams'][0x0]['forceValue'],_0x3d2ed3=_0x4e8092(_0x4a4089['commandName']),_0x56ea08=_0x391f6b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3d2ed3&&_0x218815['config']['get']('list.multiBlock')||(_0x56ea08='*Change\x20to:*\x20%0'),_0x3c42e9={'type':'format','content':o(_0x5efb14,_0x56ea08,o(_0x5efb14,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x56ea08='*Indent:*\x20%0',_0x3c42e9={'type':'format','content':o(_0x5efb14,_0x56ea08,o(_0x5efb14,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x56ea08=function(_0xd7ecf){const _0x4766df=_0xd7ecf['getFirstRange']();let _0x3dbbbe=_0x4766df['start']['nodeAfter'];for(;_0x3dbbbe&&_0x4766df['containsItem'](_0x3dbbbe);){if(_0x3dbbbe['getAttribute']('listIndent')>0x0)return!0x1;_0x3dbbbe=_0x3dbbbe['nextSibling'];}return!0x0;}(_0x3fcd37)?o(_0x5efb14,'*Format:*\x20remove\x20from\x20%0',o(_0x5efb14,function(_0xda2d45){return'ELEMENT_'+_0xda2d45['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3fcd37))):o(_0x5efb14,'*Outdent:*\x20%0',o(_0x5efb14,'ELEMENT_LIST_ITEM')),_0x3c42e9={'type':'format','content':_0x56ea08};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4a4089['multipleBlocks']&&(_0x56ea08='*Merge:*\x20%0',_0x3c42e9={'type':'deletion','content':o(_0x5efb14,_0x56ea08,o(_0x5efb14,'ELEMENT_LIST_ITEM'))});}return _0x3c42e9;});}}function Te(_0x3a778f){let _0x3156f4=_0x3a778f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3156f4;){const _0x1daced=_0x3156f4['getAttribute']('listItemId');if(!_0x1daced)return!0x1;if(_0x1daced==_0x3a778f['data']['newValue'])return'newValue';if(_0x1daced==_0x3a778f['data']['oldValue'])return'oldValue';_0x3156f4=_0x3156f4['previousSibling'];}return!0x1;}class z extends _0x20a8ee{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xb0376d=this['editor']['config']['get']('list.properties'),_0x3659cc=this['editor']['plugins']['get']('TrackChangesEditing');_0xb0376d['styles']&&(_0x3659cc['enableDefaultAttributesIntegration']('listStyle'),_0x3659cc['registerBlockAttribute']('listStyle')),_0xb0376d['reversed']&&(_0x3659cc['enableDefaultAttributesIntegration']('listReversed'),_0x3659cc['registerBlockAttribute']('listReversed')),_0xb0376d['startIndex']&&(_0x3659cc['enableDefaultAttributesIntegration']('listStart'),_0x3659cc['registerBlockAttribute']('listStart'));const _0x2ef9c5={'type':'format','content':''};_0x3659cc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x334755=this['editor']['locale'];_0x3659cc['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x334755,'FORMAT_LIST_REVERSED')),_0x3659cc['descriptionFactory']['registerDescriptionCallback'](_0x69c124=>{const {data:_0x4e15f0}=_0x69c124;if(_0x4e15f0&&'listReversed'==_0x4e15f0['key'])return null==_0x4e15f0['newValue']||0x0==_0x4e15f0['newValue']&&null==_0x4e15f0['oldValue']?_0x2ef9c5:void 0x0;}),_0x3659cc['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x334755,'FORMAT_LIST_START')),_0x3659cc['descriptionFactory']['registerDescriptionCallback'](_0x1248c1=>{const {data:_0x4bcb6c}=_0x1248c1;if(_0x4bcb6c&&'listStart'==_0x4bcb6c['key'])return null==_0x4bcb6c['newValue']||0x1==_0x4bcb6c['newValue']&&null==_0x4bcb6c['oldValue']?_0x2ef9c5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x470f53=>{if(_0x470f53['batch']['isUndo'])return!0x1;let _0x5cc954=!0x1;const _0x260dcc=_0x3659cc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52b293=>{const _0x28fa80=_0x3659cc['_getAttributeKey'](_0x52b293);return'listStart'==_0x28fa80||'listReversed'==_0x28fa80;});for(const _0x46a74d of _0x260dcc){const _0x4c9341=_0x46a74d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4c9341||'customNumbered'==_0x4c9341)continue;_0x3659cc['_findSuggestions'](_0x46a74d['getFirstRange'](),'attribute')['find'](_0x361288=>'listType'==_0x3659cc['_getAttributeKey'](_0x361288['suggestion']))||(_0x470f53['removeMarker'](_0x46a74d['getFirstMarker']()),_0x5cc954=!0x0);}return _0x5cc954;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42a2ef){const _0x3f05ce=this['editor']['locale'],{data:_0x1d4e2c}=_0x42a2ef,_0x5cb312={'type':'format','content':''};if(!_0x1d4e2c||'listStyle'!=_0x1d4e2c['key'])return;if(!_0x1d4e2c['oldValue'])return'default'==_0x1d4e2c['newValue']?_0x5cb312:{'type':'format','content':''+o(_0x3f05ce,'*Set\x20format:*\x20%0',o(_0x3f05ce,this['_getTranslationKeyForListStyle'](_0x1d4e2c['newValue'])))};if(!_0x1d4e2c['newValue']){if('default'==_0x1d4e2c['oldValue'])return _0x5cb312;let _0xbf4868=_0x42a2ef['head'];for(;_0xbf4868;){if(_0xbf4868['data']&&'listType'==_0xbf4868['data']['key']&&_0xbf4868['data']['newValue'])return _0x5cb312;_0xbf4868=_0xbf4868['next'];}return{'type':'format','content':''+o(_0x3f05ce,'*Remove\x20format:*\x20%0',o(_0x3f05ce,this['_getTranslationKeyForListStyle'](_0x1d4e2c['oldValue'])))};}if('default'!=_0x1d4e2c['newValue'])return{'type':'format','content':''+o(_0x3f05ce,'*Set\x20format:*\x20%0',o(_0x3f05ce,this['_getTranslationKeyForListStyle'](_0x1d4e2c['newValue'])))};let _0x3ae3c2=_0x42a2ef['head'];for(;_0x3ae3c2;){if(_0x3ae3c2['data']&&'listType'==_0x3ae3c2['data']['key']&&_0x3ae3c2['data']['newValue']&&_0x3ae3c2['data']['oldValue'])return _0x5cb312;_0x3ae3c2=_0x3ae3c2['next'];}return{'type':'format','content':o(_0x3f05ce,'*Set\x20format:*\x20%0',o(_0x3f05ce,'ELEMENT_'+_0x42a2ef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x59b35f=this['editor'],_0x4bf4b7=_0x59b35f['locale'];_0x59b35f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2387f6=>{if('formatBlock'!=_0x2387f6['type'])return;const {data:_0x5ce52a}=_0x2387f6;if(!_0x5ce52a)return;let _0x1fee00,_0x20b01c;switch(_0x5ce52a['commandName']){case'listStyle':_0x1fee00='*Change\x20to:*\x20%0',_0x20b01c={'type':'format','content':o(_0x4bf4b7,_0x1fee00,o(_0x4bf4b7,this['_getTranslationKeyForListStyle'](_0x5ce52a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1fee00=_0x5ce52a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x20b01c={'type':'format','content':o(_0x4bf4b7,_0x1fee00)};break;case'listStart':_0x1fee00='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x20b01c={'type':'format','content':o(_0x4bf4b7,_0x1fee00,_0x5ce52a['commandParams'][0x0]['startIndex'])};}return _0x20b01c;});}['_getTranslationKeyForListStyle'](_0x5018ff){return'ELEMENT_'+function(_0x411e92){if(Se['includes'](_0x411e92))return'bulleted';if(_e['includes'](_0x411e92))return'numbered';return null;}(_0x5018ff)['toUpperCase']()+'_LIST_'+_0x5018ff['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x20a8ee{['afterInit'](){const _0x479fb1=this['editor'];_0x479fb1['commands']['get']('emoji')&&_0x479fb1['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Q extends _0x20a8ee{static get['requires'](){return[_0x1b6ce1];}['init'](){const _0xcdf27e=this['editor'],_0x3f7131=_0xcdf27e['plugins']['get']('TrackChangesEditing'),_0x3a133a=_0xcdf27e['commands']['get']('enter');_0x3f7131['enableCommand']('enter',()=>{_0xcdf27e['model']['change'](_0x14b46b=>{const _0x436d4a=_0xcdf27e['model']['document']['selection'],_0x136345=_0x436d4a['getFirstPosition'](),_0x170ed2=_0x80ba14['fromRange'](_0x436d4a['getFirstRange']());if(_0x3a133a['enterBlock'](_0x14b46b)){const _0x38ce8b=_0xcdf27e['model']['createPositionAt'](_0x136345['parent']['nextSibling'],0x0),_0x4052c6=_0x14b46b['createRange'](_0x136345,_0x38ce8b);_0x3f7131['markInsertion'](_0x4052c6);}else _0x14b46b['setSelection'](_0x14b46b['createRange'](_0x170ed2['end']));_0x170ed2['detach'](),_0x3a133a['fire']('afterExecute',{'writer':_0x14b46b});});}),_0xcdf27e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0xcdf27e,'split'),{'priority':'high'}),_0xcdf27e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x283071,_0x373bcf,_0x3bb038)=>{const _0x24d061=_0x3bb038['mapper']['markerNameToElements'](_0x373bcf['markerName']);if(_0x24d061){for(const _0x546dbc of _0x24d061)_0x546dbc['hasClass']('ck-suggestion-marker-split')&&(_0x3bb038['mapper']['unbindElementFromMarkerName'](_0x546dbc,_0x373bcf['markerName']),_0x3bb038['writer']['remove'](_0x546dbc));}},{'priority':'high'}),_0xcdf27e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2ecbd7,_0x127568,_0x257717)=>{_0x257717['options']['showSuggestionHighlights']&&Fe(_0xcdf27e,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2ecbd7,_0x127568,_0x257717);},{'priority':'high'});}}class X extends _0x20a8ee{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x295cfc=this['editor']['plugins']['get']('TrackChangesEditing');_0x295cfc['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x295cfc['enableCommand']('findNext'),_0x295cfc['enableCommand']('findPrevious'),_0x295cfc['enableCommand']('replace'),_0x295cfc['enableCommand']('replaceAll');}['handleFindCommand'](_0xbc83ef,_0x390a39,_0x555b33={}){const _0x3b6299=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xbc83ef(_0x2d7806=>{let _0x1b0257=('string'==typeof _0x390a39?_0x3b6299['findByTextCallback'](_0x390a39,_0x555b33):_0x390a39)(_0x2d7806);Array['isArray'](_0x1b0257)&&(_0x1b0257={'results':_0x1b0257,'searchText':'string'==typeof _0x390a39?_0x390a39:''});const _0x349bb2=_0x1b0257['results']['filter'](_0x2a192c=>!0x1===this['_isInDeletionRange'](_0x2a192c,_0x2d7806['item']));return{..._0x1b0257,'results':_0x349bb2};},_0x555b33);}['_isInDeletionRange'](_0x28607a,_0x2d6f91){const _0x551ee7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d6f91,_0x28607a['start']),this['editor']['model']['createPositionAt'](_0x2d6f91,_0x28607a['end']));for(const _0x1ddbe8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x551ee7['getIntersection'](_0x1ddbe8['getRange']()))return!0x0;return!0x1;}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x20a8ee{['afterInit'](){const _0x4e4c1a=this['editor']['locale'],_0x45e1c9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2acec9,commandName:_0x4c4586}of no)this['editor']['plugins']['has'](_0x2acec9)&&(_0x45e1c9['enableDefaultAttributesIntegration'](_0x4c4586),_0x45e1c9['registerInlineAttribute'](_0x4c4586));_0x45e1c9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4e4c1a,'FORMAT_FONT_SIZE')),_0x45e1c9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4e4c1a,'FORMAT_FONT_FAMILY')),_0x45e1c9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4e4c1a,'FORMAT_FONT_COLOR')),_0x45e1c9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4e4c1a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d698c=this['editor'],_0x3766fc=_0x1d698c['locale'];_0x1d698c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ce46e=>{const _0x3f0e77=_0x3766fc['t'];if('formatInline'!=_0x4ce46e['type'])return;const {data:_0x5e7e07}=_0x4ce46e;if(null!=_0x5e7e07){if('fontSize'==_0x5e7e07['commandName']){const _0x278623=_0x5e7e07['commandParams'][0x0]['value'];if(_0x278623){const _0x1bc76e=_0x3f0e77(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4f7066=>_0x4f7066['model']==_0x278623)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3766fc,'*Set\x20font\x20size:*\x20%0',_0x1bc76e)};}return{'type':'format','content':o(_0x3766fc,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5e7e07['commandName']){const _0x50794a=_0x5e7e07['commandParams'][0x0]['value'];return _0x50794a?{'type':'format','content':o(_0x3766fc,'*Set\x20font\x20family:*\x20%0',_0x50794a)}:{'type':'format','content':o(_0x3766fc,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5e7e07['commandName']){const _0x43906e=_0x5e7e07['commandParams'][0x0]['value'];if(_0x43906e){const _0x52d7f8=to(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1b8cc2=>_0x1b8cc2['model']==_0x43906e);let _0xc37535=_0x43906e,_0x55212c='';return _0x52d7f8&&(_0xc37535=_0x52d7f8['label'],_0x55212c=_0x3f0e77(_0xc37535)['toLowerCase']()),{'type':'format','content':o(_0x3766fc,'*Set\x20font\x20color:*\x20%0',_0x55212c)['trim'](),'color':{'value':_0x43906e,'title':_0x55212c||_0xc37535}};}return{'type':'format','content':o(_0x3766fc,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5e7e07['commandName']){const _0x473ded=_0x5e7e07['commandParams'][0x0]['value'];if(_0x473ded){const _0x45c00d=to(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xbf8fe8=>_0xbf8fe8['model']==_0x473ded);let _0x252aeb=_0x473ded,_0x67ea82='';return _0x45c00d&&(_0x252aeb=_0x45c00d['label'],_0x67ea82=_0x3f0e77(_0x252aeb)['toLowerCase']()),{'type':'format','content':o(_0x3766fc,'*Set\x20font\x20background\x20color:*\x20%0',_0x67ea82)['trim'](),'color':{'value':_0x473ded,'title':_0x67ea82||_0x252aeb}};}return{'type':'format','content':o(_0x3766fc,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x20a8ee{['afterInit'](){const _0xf37cb0=this['editor'],_0x1889a0=_0xf37cb0['plugins']['get']('TrackChangesEditing'),_0x30a68b=_0xf37cb0['commands']['get']('copyFormat'),_0x419c43=_0xf37cb0['commands']['get']('pasteFormat');_0x30a68b&&_0x419c43&&(_0x1889a0['enableDefaultAttributesIntegration']('pasteFormat'),_0x1889a0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1d54c6=this['editor'],_0x5e9359=_0x1d54c6['locale'];_0x1d54c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xda14d7=>{if('formatBlock'!=_0xda14d7['type']&&'formatInline'!=_0xda14d7['type'])return;const {data:_0xd79a69}=_0xda14d7;if(_0xd79a69&&'pasteFormat'===_0xd79a69['commandName']){const _0x5d53dd=[],_0x4ba2d6=_0xd79a69['commandParams'][0x0];for(const [_0x399320,_0x182cc5]of Object['entries'](_0x4ba2d6))_0x5d53dd['push'](ro(_0x1d54c6,_0x399320,_0x182cc5));return _0x5d53dd['length']?{'type':'format','content':o(_0x5e9359,'*Set\x20format\x20to:*\x20%0',_0x5d53dd['join'](',\x20'))}:{'type':'format','content':o(_0x5e9359,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x4ae0a9,_0x1e61a0,_0x26dbf9){const _0x3b564e=_0x4ae0a9['locale']['t'],_0x31e32c=_0x1e61a0['split'](/(?=[A-Z])/)['join']('\x20'),_0x32303a=_0x3b564e(_0x31e32c['charAt'](0x0)['toUpperCase']()+_0x31e32c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x26dbf9)return _0x32303a;if('fontColor'===_0x1e61a0||'fontBackgroundColor'===_0x1e61a0){const _0x1db380=to(_0x4ae0a9['config']['get']('fontColor.colors'))['find'](_0x23bb44=>_0x23bb44['model']==_0x26dbf9);return _0x32303a+'\x20('+(_0x1db380?_0x3b564e(_0x1db380['label'])['toLowerCase']():_0x26dbf9)+')';}if('fontSize'===_0x1e61a0&&isNaN(parseFloat(_0x26dbf9))){const _0x1e944c=_0x4ae0a9['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4ae0a9['config']['get']('fontSize.options'))['find'](_0x28cd97=>_0x28cd97['model']==_0x26dbf9);return _0x32303a+'\x20('+(_0x1e944c?_0x3b564e(_0x1e944c['title'])['toLowerCase']():_0x26dbf9)+')';}return _0x32303a+'\x20('+_0x26dbf9+')';}class tt extends _0x20a8ee{['_headingOptions'];['afterInit'](){const _0x31ba32=this['editor'];if(!_0x31ba32['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x31ba32['config']['get']('heading.options');const _0x375b4c=_0x31ba32['locale'],_0x347d2c=_0x31ba32['plugins']['get']('TrackChangesEditing');_0x347d2c['enableDefaultAttributesIntegration']('heading');for(const _0x30ec0c of this['_headingOptions'])'paragraph'!=_0x30ec0c['model']&&_0x347d2c['descriptionFactory']['registerElementLabel'](_0x30ec0c['model'],_0x4cacfc=>{const _0x345d82=this['_getHeadingLevel'](_0x30ec0c['model']);return null!==_0x345d82?_0x41b8f9(_0x4cacfc,_0x345d82):_0x65cee(_0x4cacfc,_0x30ec0c['title']);});function _0x41b8f9(_0x291daa,_0x5a494b){return o(_0x375b4c,'ELEMENT_HEADING',[_0x291daa,_0x5a494b]);}function _0x65cee(_0xe5326b,_0x268cec){return o(_0x375b4c,'ELEMENT_HEADING_CUSTOM',[_0xe5326b,_0x268cec]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x414227=this['editor'],_0x4ebfe6=_0x414227['locale'];function _0x458482(_0x22de1b,_0x414f56){return o(_0x4ebfe6,'ELEMENT_HEADING_CUSTOM',[_0x22de1b,_0x414f56]);}_0x414227['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ce594=>{if('formatBlock'!=_0x5ce594['type'])return;const {data:_0x13f50a}=_0x5ce594;if(_0x13f50a&&'heading'==_0x13f50a['commandName']){const _0x1a82e1=_0x13f50a['commandParams'][0x0]['value'],_0x484add=this['_getHeadingLevel'](_0x1a82e1);if(null!==_0x484add)return{'type':'format','content':o(_0x4ebfe6,'*Change\x20to:*\x20%0',(_0x13e5a7=0x1,_0x4e8624=_0x484add,o(_0x4ebfe6,'ELEMENT_HEADING',[_0x13e5a7,_0x4e8624])))};const _0x3d8ab3=this['_headingOptions']['find'](_0x415f94=>_0x415f94['model']===_0x1a82e1)['title'];return{'type':'format','content':o(_0x4ebfe6,'*Change\x20to:*\x20%0',_0x458482(0x1,_0x3d8ab3))};}var _0x13e5a7,_0x4e8624;});}['_getHeadingLevel'](_0x2d64c1){const _0x50fde9=_0x2d64c1['match'](/^heading(\d+)/);if(_0x50fde9)return _0x50fde9[0x1];const _0x477a72=this['_headingOptions']?.['find'](_0x40b9de=>_0x40b9de['model']==_0x2d64c1);if(_0x477a72&&_0x477a72['view']){const _0x56fea3=_0x477a72['view'],_0x33b44f=(_0x56fea3['name']??_0x56fea3)['match'](/^h(\d+)/);if(_0x33b44f)return _0x33b44f[0x1];}return null;}}class it extends _0x20a8ee{['afterInit'](){const _0x2f391a=this['editor'];if(!_0x2f391a['plugins']['has']('HighlightEditing'))return;const _0x2bd65b=_0x2f391a['plugins']['get']('TrackChangesEditing'),_0x4f38bf=_0x2f391a['locale'];_0x2bd65b['enableDefaultAttributesIntegration']('highlight'),_0x2bd65b['registerInlineAttribute']('highlight'),_0x2bd65b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4f38bf,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b33e8=this['editor'],_0x4f63ea=_0x1b33e8['locale'];_0x1b33e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d9d90=>{if('formatInline'!=_0x4d9d90['type'])return;const {data:_0x590ebf}=_0x4d9d90;if(_0x590ebf&&'highlight'==_0x590ebf['commandName']){const _0x5e18c7=_0x4f63ea['t'],_0x2faf9c=_0x590ebf['commandParams'][0x0]['value'];if(_0x2faf9c){const _0x5dcdc8=_0x1b33e8['config']['get']('highlight.options')['find'](_0x357958=>_0x357958['model']==_0x2faf9c),_0x13a826=_0x5e18c7(_0x5dcdc8['title'])['toLowerCase']();return{'type':'format','content':o(_0x4f63ea,'*Set\x20highlight:*\x20%0',_0x13a826),'color':{'value':_0x5dcdc8['color'],'title':_0x5dcdc8['title']}};}return{'type':'format','content':o(_0x4f63ea,'*Remove\x20highlight*',o(_0x4f63ea,'FORMAT_HIGHLIGHT'))};}});}}class nt extends _0x20a8ee{['afterInit'](){const _0x310e29=this['editor'];if(!_0x310e29['plugins']['has']('HorizontalLineEditing'))return;_0x310e29['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xf2e442=_0x310e29['plugins']['get']('TrackChangesEditing'),_0x548d2d=_0x310e29['locale'];_0xf2e442['descriptionFactory']['registerElementLabel']('horizontalLine',_0x122708=>o(_0x548d2d,'ELEMENT_HORIZONTAL_LINE',_0x122708)),_0x310e29['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4bbe27,{writer:_0x557a6a,options:_0x4e6a06})=>{if(!_0x4e6a06['showSuggestionHighlights'])return null;const _0x2509b4=_0x557a6a['createContainerElement']('div'),_0x1d2ef5=_0x557a6a['createEmptyElement']('hr');return _0x557a6a['addClass']('ck-horizontal-line',_0x2509b4),_0x557a6a['insert'](_0x557a6a['createPositionAt'](_0x2509b4,0x0),_0x1d2ef5),_0x2509b4;},'converterPriority':'high'});}}class et extends _0x20a8ee{['afterInit'](){const _0x27f590=this['editor'];if(!_0x27f590['plugins']['has']('HtmlEmbed'))return;const _0x3d2a17=_0x27f590['plugins']['get']('TrackChangesEditing'),_0x5293bd=_0x27f590['locale'];_0x3d2a17['descriptionFactory']['registerElementLabel']('rawHtml',_0x3f8324=>o(_0x5293bd,'ELEMENT_HTML_EMBED',_0x3f8324)),_0x3d2a17['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3d2a17['registerBlockAttribute']('value'),_0x3d2a17['descriptionFactory']['registerDescriptionCallback'](_0x51aa01=>{if('attribute'!=_0x51aa01['type'])return;const {data:_0x9065a8}=_0x51aa01;if(_0x9065a8&&'value'==_0x9065a8['key']&&_0x51aa01['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2e811f=o(_0x5293bd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5293bd,'*Change\x20%0\x20content*',_0x2e811f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3912e8=this['editor'],_0x58a291=_0x3912e8['locale'];_0x3912e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56c914=>{if('formatBlock'!=_0x56c914['type'])return;const {data:_0x36c43b}=_0x56c914;if(_0x36c43b&&'htmlEmbed'==_0x36c43b['commandName']){const _0x34e810=o(_0x58a291,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x58a291,'*Change\x20%0\x20content*',_0x34e810)};}});}}class st extends _0x20a8ee{['afterInit'](){const _0x1e25ed=this['editor'];if(!_0x1e25ed['plugins']['has']('ImageEditing'))return;const _0x5ed667=_0x1e25ed['plugins']['get']('TrackChangesEditing'),_0xc7c28e=_0x1e25ed['plugins']['get']('ImageUtils'),_0x3fdea7=_0x1e25ed['locale'];_0x5ed667['enableCommand']('insertImage'),_0x5ed667['descriptionFactory']['registerElementLabel']('imageBlock',_0x21f545=>o(_0x3fdea7,'ELEMENT_IMAGE',_0x21f545)),_0x5ed667['descriptionFactory']['registerElementLabel']('imageInline',_0x49de4d=>o(_0x3fdea7,'ELEMENT_INLINE_IMAGE',_0x49de4d)),_0x5ed667['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3fdea7,'ELEMENT_CAPTION')),_0x1e25ed['plugins']['has']('ImageUploadEditing')&&_0x5ed667['enableCommand']('uploadImage'),_0x1e25ed['plugins']['has']('ImageBlockEditing')&&_0x1e25ed['plugins']['has']('ImageInlineEditing')&&(_0x5ed667['enableCommand']('imageTypeInline',(_0x231a5b,_0x4d6df7)=>{const _0x4f5dac=_0xc7c28e['getClosestSelectedImageElement'](_0x1e25ed['model']['document']['selection']);_0x1e25ed['model']['change'](()=>{_0x5ed667['markBlockFormat'](_0x4f5dac,{'commandName':'imageTypeInline','commandParams':[_0x4d6df7]},[],'convertBlockImageToInline');});}),_0x5ed667['enableCommand']('imageTypeBlock',(_0x5f108f,_0x58b192)=>{_0x1e25ed['model']['change'](_0x2e22fa=>{let _0x2577fa=_0xc7c28e['getClosestSelectedImageElement'](_0x1e25ed['model']['document']['selection']),_0x142c8c=_0x2e22fa['createRangeOn'](_0x2577fa);const _0xaa2ab0=_0x3df3c0['fromPosition'](_0x142c8c['start'],'toPrevious'),_0x5e5896=_0x3df3c0['fromPosition'](_0x142c8c['end'],'toNext');_0x5ed667['forceDefaultExecution'](()=>_0x5f108f(_0x58b192)),_0x2577fa=_0xc7c28e['getClosestSelectedImageElement'](_0x1e25ed['model']['document']['selection']),_0x142c8c=_0x2e22fa['createRangeOn'](_0x2577fa);const _0x225f70=_0x2e22fa['createRange'](_0xaa2ab0,_0x5e5896);_0xaa2ab0['detach'](),_0x5e5896['detach'](),_0x5ed667['markBlockFormat'](_0x2577fa,{'commandName':'imageTypeInline','commandParams':[_0x58b192]},[],'convertInlineImageToBlock'),_0x225f70['start']['isBefore'](_0x142c8c['start'])&&_0x5ed667['markInsertion'](_0x2e22fa['createRange'](_0x225f70['start'],_0x142c8c['start']),'convertInlineImageToBlock'),_0x142c8c['end']['isBefore'](_0x225f70['end'])&&_0x5ed667['markInsertion'](_0x2e22fa['createRange'](_0x142c8c['end'],_0x225f70['end']),'convertInlineImageToBlock');});}),_0x5ed667['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5ed667['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5ed667['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5ed667['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5ed667['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5ed667['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4b975a])=>{const _0x2d9c4e=_0x5ed667['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xc43dba=_0x4b975a['start'],_0xda010a=_0x4b975a['end'];const _0x4078d2=_0x1e25ed['model']['schema']['getNearestSelectionRange'](_0xc43dba,'backward'),_0x17bd7a=_0x1e25ed['model']['schema']['getNearestSelectionRange'](_0xda010a,'forward');_0x4078d2['isCollapsed']&&(_0xc43dba=_0x4078d2['start']),_0x17bd7a['isCollapsed']&&(_0xda010a=_0x17bd7a['end']),_0x2d9c4e([_0x1e25ed['model']['createRange'](_0xc43dba,_0xda010a)]);}),_0x5ed667['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x315780),_0x5ed667['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x315780)),_0x1e25ed['plugins']['has']('ImageCaptionEditing')&&(_0x5ed667['enableCommand']('toggleImageCaption',(_0x2b8387,_0x2afd82)=>{const _0x4237be=_0x1e25ed['plugins']['get']('ImageCaptionUtils');let _0x36bceb=_0xc7c28e['getClosestSelectedImageElement'](_0x1e25ed['model']['document']['selection']),_0x22f9ad=_0x4237be['getCaptionFromImageModelElement'](_0x36bceb);_0x1e25ed['model']['change'](()=>{if(_0x22f9ad)return void _0x5ed667['markDeletion'](_0x1e25ed['model']['createRangeOn'](_0x22f9ad));const _0x5a9322=_0xc7c28e['isBlockImage'](_0x36bceb);_0x2b8387(_0x2afd82),_0x36bceb=_0xc7c28e['getClosestSelectedImageElement'](_0x1e25ed['model']['document']['selection']),_0x22f9ad=_0x4237be['getCaptionFromImageModelElement'](_0x36bceb),_0x5ed667['markInsertion'](_0x1e25ed['model']['createRangeOn'](_0x22f9ad),_0x5a9322?null:'imageCaption');});}),_0x5ed667['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x315780));const _0x2d9067=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x23ec91(_0x589a22,_0x41423a){const _0x334f3f=_0x2d9067['findIndex'](({type:_0xfcf309,subType:_0x1999fb})=>_0x589a22['type']==_0xfcf309&&_0x589a22['subType']==_0x1999fb),_0x1756ba=_0x2d9067['findIndex'](({type:_0x6760c9,subType:_0x40d32c})=>_0x41423a['type']==_0x6760c9&&_0x41423a['subType']==_0x40d32c);if(_0x334f3f<0x0||_0x1756ba<0x0)return!0x1;const _0x1b1645=_0x589a22['getFirstRange'](),_0x2dda74=_0x41423a['getFirstRange']();if((0x0==_0x334f3f||0x1==_0x334f3f)&&0x2==_0x1756ba&&_0x1b1645['isIntersecting'](_0x2dda74))return!0x0;if(0x2==_0x334f3f&&0x3==_0x1756ba){const _0x28176c=_0x5ed667['_findSuggestions'](_0x1b1645,'insertion')['filter'](({suggestion:_0x932e1,meta:_0x5ee261})=>_0x5ee261['isOwn']&&'convertInlineImageToBlock'==_0x932e1['subType']);if(_0x28176c['length']>0x1&&_0x2dda74['end']['isEqual'](_0x1b1645['start']))return!0x0;if(0x1==_0x28176c['length']&&(_0x1b1645['start']['isEqual'](_0x2dda74['end'])||_0x1b1645['end']['isEqual'](_0x2dda74['start'])))return!0x0;}if(0x3==_0x334f3f&&0x3==_0x1756ba&&_0x1b1645['start']['isBefore'](_0x2dda74['start'])){const _0x45dfa4=_0x1b1645['end']['nodeAfter'],_0x24e44c=_0x2dda74['start']['nodeBefore'];return _0xc7c28e['isBlockImage'](_0x45dfa4)&&_0x45dfa4===_0x24e44c;}return!0x1;}function _0x315780(_0x189bf1,_0x2859d4){return _0x23ec91(_0x189bf1,_0x2859d4)?[_0x189bf1,_0x2859d4]:_0x23ec91(_0x2859d4,_0x189bf1)?[_0x2859d4,_0x189bf1]:null;}_0x1e25ed['plugins']['has']('ImageResize')&&(_0x5ed667['enableDefaultAttributesIntegration']('resizeImage'),_0x5ed667['registerBlockAttribute']('resizedWidth'),_0x5ed667['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3fdea7,'FORMAT_IMAGE_SIZE'))),_0x1e25ed['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5ed667['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5ed667['registerBlockAttribute']('alt')),_0x1e25ed['plugins']['has']('PictureEditing')&&(_0x5ed667['registerBlockAttribute']('sources'),_0x5ed667['descriptionFactory']['registerDescriptionCallback'](_0x4d7d8a=>{if('attribute'!=_0x4d7d8a['type'])return;const {data:_0x5e306f}=_0x4d7d8a;return _0x5e306f&&'sources'==_0x5e306f['key']?{'type':'format','content':''}:void 0x0;})),_0x1e25ed['plugins']['has']('ImageSizeAttributes')&&(_0x5ed667['registerBlockAttribute']('width'),_0x5ed667['registerBlockAttribute']('height'),_0x5ed667['descriptionFactory']['registerDescriptionCallback'](_0x42dd53=>{if('attribute'!=_0x42dd53['type'])return;const {data:_0x29aee3}=_0x42dd53;return!_0x29aee3||'width'!=_0x29aee3['key']&&'height'!=_0x29aee3['key']?void 0x0:{'type':'format','content':''};})),_0x5ed667['descriptionFactory']['registerDescriptionCallback'](_0x5dfe0e=>{if(!!_0x2d9067['find'](({type:_0x576779,subType:_0x589d7f})=>_0x5dfe0e['type']==_0x576779&&_0x5dfe0e['subType']==_0x589d7f))return _0x5dfe0e['previous']?{}:void 0x0;}),_0x5ed667['descriptionFactory']['registerDescriptionCallback'](_0x595160=>{if('insertion'==_0x595160['type']||'deletion'==_0x595160['type']){const _0xe889ee=_0x595160['getContainedElement']();if(_0xe889ee&&_0xe889ee['is']('element','caption'))return{'type':'insertion'==_0x595160['type']?'addObject':'removeObject','element':_0xe889ee,'quantity':0x1};}}),_0x5ed667['descriptionFactory']['registerDescriptionCallback'](_0xe6738e=>'formatBlock'==_0xe6738e['type']&&'convertInlineImageToBlock'==_0xe6738e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xe6738e['type']&&'convertBlockImageToInline'==_0xe6738e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5ed667['descriptionFactory']['registerDescriptionCallback'](_0x2341a3=>{if('attribute'!=_0x2341a3['type'])return;const {data:_0x4aeee0}=_0x2341a3;if(!_0x4aeee0||'alt'!=_0x4aeee0['key'])return;const _0xe47ea=_0x4aeee0['newValue'];return _0xe47ea?{'type':'format','content':o(_0x3fdea7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xe47ea+'\x22')}:{'type':'format','content':o(_0x3fdea7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x251745=this['editor'],_0x131313=_0x251745['locale'];_0x251745['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x565b31=>{if('formatBlock'!=_0x565b31['type']&&'formatInline'!=_0x565b31['type'])return;const {data:_0x37a4f7}=_0x565b31;if(_0x37a4f7){if('imageTextAlternative'==_0x37a4f7['commandName']){const _0x473c86=_0x37a4f7['commandParams'][0x0]['newValue'];return _0x473c86?{'type':'format','content':o(_0x131313,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x473c86+'\x22')}:{'type':'format','content':o(_0x131313,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x37a4f7['commandName']){const _0x56fdcb=_0x37a4f7['commandParams'][0x0]['width'];return _0x56fdcb?{'type':'format','content':o(_0x131313,'*Set\x20image\x20width:*\x20%0',_0x56fdcb)}:{'type':'format','content':o(_0x131313,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x20a8ee{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1bfa20=this['editor']['locale'],_0x4add00=this['editor']['plugins']['get']('TrackChangesEditing');_0x4add00['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4add00['registerBlockAttribute']('src'),_0x4add00['descriptionFactory']['registerDescriptionCallback'](_0x59ff8a=>{if('attribute'!=_0x59ff8a['type'])return;const {data:_0x15ba4a}=_0x59ff8a;return _0x15ba4a&&'src'==_0x15ba4a['key']?_0x15ba4a['newValue']&&_0x15ba4a['oldValue']?{'type':'format','content':o(_0x1bfa20,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xb28c39=this['editor']['plugins']['get']('TrackChangesEditing');_0xb28c39['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xb28c39['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb28c39['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xb28c39['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x588b00=this['editor'],_0x5ab594=_0x588b00['locale'];_0x588b00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x328973=>{if('formatBlock'!=_0x328973['type']&&'formatInline'!=_0x328973['type'])return;const {data:_0x2ca974}=_0x328973;if(!_0x2ca974||'replaceImageSource'!=_0x2ca974['commandName'])return;return{'type':'format','content':o(_0x5ab594,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x20a8ee{['afterInit'](){const _0x4c9ebc=this['editor'];if(!_0x4c9ebc['plugins']['has']('ImageStyleEditing'))return;const _0x31c3ab=_0x4c9ebc['plugins']['get']('TrackChangesEditing'),_0x5f17b0=_0x4c9ebc['plugins']['get']('ImageUtils'),_0xc5c1e5={};_0x31c3ab['enableCommand']('imageStyle',(_0x8c33bc,_0x15558a)=>{const _0x3f5da3=_0x4c9ebc['plugins']['get']('Users')['me'],_0x164940=_0x4c9ebc['commands']['get']('imageStyle');let _0x4b9ca5=_0x5f17b0['getClosestSelectedImageElement'](_0x4c9ebc['model']['document']['selection']),_0x5ace77=_0x4c9ebc['model']['createRangeOn'](_0x4b9ca5),_0x4d0ea3=_0x164940['value'];if(_0x4d0ea3==_0x15558a['value'])return;const _0x2a7eac={'commandName':'imageStyle','commandParams':[_0x15558a],'formatGroupId':_0x422f91()};_0x4c9ebc['model']['change'](()=>{if(_0x31c3ab['getSuggestions']()['filter'](_0x2deb93=>_0x2deb93['isInContent']&&_0x3f5da3==_0x2deb93['author']&&('formatBlock'==_0x2deb93['type']||'formatInline'==_0x2deb93['type'])&&('imageStylePreApply'==_0x2deb93['subType']||'imageStylePostApply'==_0x2deb93['subType'])&&_0x2deb93['getFirstRange']()['isEqual'](_0x5ace77))['forEach'](_0x47666f=>_0x31c3ab['discardSuggestion'](_0x47666f['head'])),_0x4b9ca5=_0x5f17b0['getClosestSelectedImageElement'](_0x4c9ebc['model']['document']['selection']),_0x5ace77=_0x4c9ebc['model']['createRangeOn'](_0x4b9ca5),_0x164940['refresh'](),_0x4c9ebc['commands']['get']('imageTypeInline')['refresh'](),_0x4c9ebc['commands']['get']('imageTypeBlock')['refresh'](),_0x4d0ea3=_0x164940['value'],_0x4d0ea3!=_0x15558a['value'])return _0x5f17b0['isInlineImage'](_0x4b9ca5)&&_0x164940['shouldConvertImageType'](_0x15558a['value'],_0x4b9ca5)?(_0x8c33bc({..._0x15558a,'setImageSizes':!0x1}),_0x4b9ca5=_0x5f17b0['getClosestSelectedImageElement'](_0x4c9ebc['model']['document']['selection']),void _0x31c3ab['markBlockFormat'](_0x4b9ca5,{..._0x2a7eac,'commandReversedParams':[{'value':_0x4d0ea3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5f17b0['isBlockImage'](_0x4b9ca5)?_0x31c3ab['markBlockFormat'](_0x4b9ca5,_0x2a7eac,[],'imageStylePostApply'):_0x31c3ab['markInlineFormat'](_0x5ace77,_0x2a7eac,'imageStylePostApply'));});});for(const _0x313b9a of _0x4c9ebc['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xc5c1e5[_0x313b9a['name']]=_0x313b9a['title']['toLowerCase']();_0x31c3ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x31c3ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x31c3ab['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x31c3ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x10d1b4])=>{_0x5f17b0['setImageNaturalSizeAttributes'](_0x10d1b4['getContainedElement']());}),_0x31c3ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x392879,_0x4fde07)=>{_0x31c3ab['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x392879,{'commandName':_0x4fde07['commandName'],'commandParams':_0x4fde07['commandReversedParams']});}),_0x31c3ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4e826c,_0x3bc076){if(_0x36068d(_0x4e826c,_0x3bc076))return[_0x4e826c,_0x3bc076];if(_0x36068d(_0x3bc076,_0x4e826c))return[_0x3bc076,_0x4e826c];return null;});const _0x6fb0a3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x36068d(_0x264f2e,_0xc57ffe){const _0x2ee5f5=_0x6fb0a3['findIndex'](({type:_0x41b72e,subType:_0x556f54})=>_0x264f2e['type']==_0x41b72e&&_0x264f2e['subType']==_0x556f54),_0x4932c8=_0x6fb0a3['findIndex'](({type:_0x3d0f3f,subType:_0xedc957})=>_0xc57ffe['type']==_0x3d0f3f&&_0xc57ffe['subType']==_0xedc957);if(_0x2ee5f5<0x0||_0x4932c8<0x0)return!0x1;const _0x5d73d9=_0x264f2e['getFirstRange'](),_0x309c64=_0xc57ffe['getFirstRange']();if((0x0==_0x2ee5f5||0x1==_0x2ee5f5)&&0x2==_0x4932c8&&_0x5d73d9['isIntersecting'](_0x309c64))return!0x0;if(0x2==_0x2ee5f5&&0x3==_0x4932c8){const _0x2ce167=_0x31c3ab['_findSuggestions'](_0x5d73d9,'insertion')['filter'](({suggestion:_0x54b3a8,meta:_0x54ae5a})=>_0x54ae5a['isOwn']&&'convertInlineImageToBlock'==_0x54b3a8['subType']);if(_0x2ce167['length']>0x1&&_0x309c64['end']['isEqual'](_0x5d73d9['start']))return!0x0;if(0x1==_0x2ce167['length']&&(_0x5d73d9['start']['isEqual'](_0x309c64['end'])||_0x5d73d9['end']['isEqual'](_0x309c64['start'])))return!0x0;}if(0x3==_0x2ee5f5&&0x3==_0x4932c8&&_0x5d73d9['start']['isBefore'](_0x309c64['start'])){const _0x7ce8cc=_0x5d73d9['end']['nodeAfter'],_0x1ccdb0=_0x309c64['start']['nodeBefore'];return _0x5f17b0['isBlockImage'](_0x7ce8cc)&&_0x7ce8cc===_0x1ccdb0;}return!0x1;}_0x4c9ebc['model']['document']['registerPostFixer'](()=>{let _0x2dfdee=!0x1;const _0x3b1305=Array['from'](_0x4c9ebc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b9e05,data:_0x542dc0}of _0x3b1305){const {group:_0x169fd5,type:_0xffb4f6,subType:_0x48855b,id:_0x50cc35}=_0x31c3ab['_splitMarkerName'](_0x5b9e05);if('suggestion'==_0x169fd5&&_0x31c3ab['hasSuggestion'](_0x50cc35)){if('formatBlock'==_0xffb4f6&&('imageStylePreApply'==_0x48855b||'imageStylePostApply'==_0x48855b)){const _0x1aeaa6=_0x31c3ab['getSuggestion'](_0x50cc35);if(_0x542dc0['newRange']){const _0x53353a=_0x1aeaa6['getFirstRange']()['getContainedElement']();if(_0x5f17b0['isBlockImage'](_0x53353a))continue;_0x31c3ab['discardSuggestion'](_0x1aeaa6),_0x2dfdee=!0x0;}}if('insertion'==_0xffb4f6&&'imageCaption'==_0x48855b&&!_0x542dc0['newRange']){const _0x254c0b=_0x31c3ab['getSuggestion'](_0x50cc35);_0x254c0b['next']&&_0x254c0b['next']['isInContent']&&(_0x31c3ab['discardSuggestion'](_0x254c0b['next']),_0x2dfdee=!0x0);}}}return _0x2dfdee;}),this['_registerLegacyDescription'](_0xc5c1e5);}['_registerLegacyDescription'](_0x313707){const _0x2ecd9a=this['editor'],_0x22bf96=_0x2ecd9a['locale'];_0x2ecd9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x389faa=>{if('formatBlock'!=_0x389faa['type']&&'formatInline'!=_0x389faa['type'])return;const {data:_0xe0214f}=_0x389faa;if(!_0xe0214f||'imageStyle'!=_0xe0214f['commandName'])return;const _0x332297=_0xe0214f['commandParams'][0x0]['value'];return _0x9fa214('side'===_0x332297?o(_0x22bf96,'FORMAT_SIDE_IMAGE'):_0x313707[_0x332297]||_0x332297);function _0x9fa214(_0x37a1ab){return{'type':'format','content':o(_0x22bf96,'*Format:*\x20%0',_0x37a1ab)};}});}}class at extends _0x20a8ee{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4123bf){super(_0x4123bf),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4d6c49=this['editor'],_0x127145=_0x4d6c49['commands']['get']('importWord'),_0x20cd95=_0x4d6c49['commands']['get']('trackChanges');_0x127145&&(_0x127145['on']('execute',(_0x342054,[,_0x6e4339])=>{this['_trackChangesValueDuringImport']=_0x20cd95['value'],_0x6e4339['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x127145,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x127145,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x20cd95['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4d6c49['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xcede3,_0x7e3497){const {suggestions:_0x5cc29c}=_0x7e3497,_0x3f4e7f=this['editor']['commands']['get']('trackChanges'),_0x1d1d3d=_0x3f4e7f['value'];this['_trackChangesValueDuringImport']!==_0x1d1d3d&&(_0x3f4e7f['execute'](),this['_trackChangesExecuted']=!0x0),_0x5cc29c&&_0x5cc29c['forEach'](({id:_0x3459c5,type:_0x4b3dab,author:_0x4c5b29,created_at:_0xa15cf1})=>{const _0x1c5028={'id':_0x3459c5,'type':_0x4b3dab,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4c5b29,'createdAt':_0xa15cf1?new Date(_0xa15cf1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c5028);});}}class ct extends _0x20a8ee{['afterInit'](){const _0x40d99a=this['editor'],_0x37a876=_0x40d99a['plugins']['get']('TrackChangesEditing');if(_0x40d99a['plugins']['has']('IndentEditing')&&(_0x37a876['enableCommand']('indent'),_0x37a876['enableCommand']('outdent')),_0x40d99a['plugins']['has']('IndentBlock')){for(const _0x507397 of['indentBlock','outdentBlock'])_0x37a876['enableDefaultAttributesIntegration'](_0x507397);}const _0x562928=_0x40d99a['locale'];_0x37a876['registerBlockAttribute']('blockIndent'),_0x37a876['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x562928,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x115c04=this['editor'],_0x4b1643=_0x115c04['locale'],_0x3a78af=_0x115c04['plugins']['get']('TrackChangesEditing');_0x3a78af['descriptionFactory']['registerDescriptionCallback'](_0x59c6c0=>{if('formatBlock'!=_0x59c6c0['type'])return;const {data:_0x249454}=_0x59c6c0;if(!_0x249454)return;if('indentBlock'!=_0x249454['commandName']&&'outdentBlock'!=_0x249454['commandName'])return;const _0xfbd720=_0x59c6c0['getItems']()[0x0],_0x31753c=_0x3a78af['descriptionFactory']['getItemLabel'](_0xfbd720);return'indentBlock'==_0x249454['commandName']?{'type':'format','content':o(_0x4b1643,'*Indent:*\x20%0',_0x31753c)}:'outdentBlock'==_0x249454['commandName']?{'type':'format','content':o(_0x4b1643,'*Outdent:*\x20%0',_0x31753c)}:void 0x0;});}}class ut extends _0x20a8ee{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ft extends _0x20a8ee{['afterInit'](){const _0x3ae132=this['editor'];if(!_0x3ae132['plugins']['has']('LinkEditing'))return;const _0x57d544=_0x3ae132['plugins']['get']('TrackChangesEditing'),_0x204cf1=_0x3ae132['commands']['get']('link');_0x57d544['enableDefaultAttributesIntegration']('link'),_0x57d544['enableDefaultAttributesIntegration']('unlink'),_0x57d544['registerInlineAttribute']('linkHref');for(const _0x4658bb of _0x204cf1['manualDecorators'])_0x57d544['registerInlineAttribute'](_0x4658bb['id']),_0x57d544['descriptionFactory']['registerAttributeLabel'](_0x4658bb['id'],'link\x20('+_0x4658bb['label']['toLowerCase']()+')');_0x57d544['descriptionFactory']['registerDescriptionCallback'](_0x163337=>{if('attribute'!=_0x163337['type'])return;const {data:_0x3ded33}=_0x163337;if(!_0x3ded33||'linkHref'!=_0x3ded33['key'])return;const _0x21178e=_0x3ded33['newValue'],_0x1ccb49=_0x3ae132['locale'];return{'type':'format','content':null==_0x21178e?o(_0x1ccb49,'*Remove\x20link*'):o(_0x1ccb49,'*Set\x20link:*\x20%0','\x22'+_0x21178e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x417478=this['editor'],_0x58e6e6=_0x417478['locale'];_0x417478['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x376c42=>{if('formatInline'!=_0x376c42['type'])return;const {data:_0x12c910}=_0x376c42;if(_0x12c910){if('link'==_0x12c910['commandName']){const _0x3684c7=_0x12c910['commandParams'][0x0];return{'type':'format','content':o(_0x58e6e6,'*Set\x20link:*\x20%0','\x22'+_0x3684c7+'\x22')};}return'unlink'==_0x12c910['commandName']?{'type':'format','content':o(_0x58e6e6,'*Remove\x20link*')}:void 0x0;}});}}class ht extends _0x20a8ee{['afterInit'](){const _0x1e6dca=this['editor'],_0x28049a=_0x1e6dca['locale'];if(!_0x1e6dca['plugins']['has']('LegacyListEditing'))return;const _0x5491ea=_0x1e6dca['plugins']['get']('TrackChangesEditing'),_0x5794bc=_0x1e6dca['plugins']['has']('LegacyTodoListEditing');function _0x5b6999(_0x1598d1){return()=>{const _0x25a29e=_0x1e6dca['model']['document']['selection'],_0x195abc=_0x1e6dca['commands']['get'](_0x1598d1);if(_0x195abc['value'])return void _0x1e6dca['execute']('paragraph',{});const _0x3df9a4=_0x1598d1['slice'](0x0,-0x4),_0x3885a6=function(_0x14d66a,_0x37d65b,_0x51ecfe){let _0x1df108=Array['from'](_0x14d66a)['filter'](_0x478e1b=>function(_0xf6b759,_0xa8a8bb){return _0xa8a8bb['checkChild'](_0xf6b759['parent'],'listItem')&&!_0xa8a8bb['isObject'](_0xf6b759);}(_0x478e1b,_0x51ecfe));_0x1df108=_0x1df108['filter'](_0x358764=>!_0x358764['is']('element','listItem')||_0x358764['getAttribute']('listType')!=_0x37d65b);const _0x55df83=new Set();for(const _0x1eade8 of _0x1df108)_0x1eade8['is']('element','listItem')?_0x55df83['add'](Le(_0x1eade8)):_0x55df83['add'](_0x1eade8);return Array['from'](_0x55df83);}(_0x25a29e['getSelectedBlocks'](),_0x3df9a4,_0x1e6dca['model']['schema']);_0x1e6dca['model']['change'](()=>{for(const _0x5cb8ed of _0x3885a6)_0x5491ea['markBlockFormat'](_0x5cb8ed,{'commandName':_0x1598d1,'commandParams':[{'forceValue':!_0x195abc['value']}],'formatGroupId':'blockName'},Ee(_0x5cb8ed));});};}function _0x3fb3ae(_0x148a0f){return()=>{const _0x5f0676=function(_0x46e5ff){let _0xddc7bb=Array['from'](_0x46e5ff);const _0x163b69=_0xddc7bb['findIndex'](_0x502a6f=>'listItem'!=_0x502a6f['name']);return _0x163b69>-0x1&&(_0xddc7bb=_0xddc7bb['slice'](0x0,_0x163b69)),_0xddc7bb;}(_0x1e6dca['model']['document']['selection']['getSelectedBlocks']()),_0x227c09=_0x1e6dca['model']['createRange'](_0x1e6dca['model']['createPositionAt'](_0x5f0676[0x0],'before'),_0x1e6dca['model']['createPositionAt'](_0x5f0676[_0x5f0676['length']-0x1],'end'));_0x1e6dca['model']['change'](()=>{_0x5491ea['markBlockFormat'](_0x227c09,{'commandName':_0x148a0f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x356a62){const _0x157639=new Set();for(const _0x559027 of _0x356a62){let _0x18520a=_0x559027['nextSibling'];for(;_0x18520a&&_0x18520a['getAttribute']('listIndent')>_0x559027['getAttribute']('listIndent');)_0x157639['add'](_0x18520a),_0x18520a=_0x18520a['nextSibling'];}return Array['from'](_0x157639);}(_0x5f0676));});};}_0x5491ea['enableCommand']('numberedList',_0x5b6999('numberedList')),_0x5491ea['enableCommand']('bulletedList',_0x5b6999('bulletedList')),_0x5794bc&&_0x5491ea['enableCommand']('todoList',_0x5b6999('todoList')),_0x5491ea['enableCommand']('indentList',_0x3fb3ae('indentList')),_0x5491ea['enableCommand']('outdentList',_0x3fb3ae('outdentList')),_0x5794bc&&_0x5491ea['enableCommand']('checkTodoList',()=>{const _0x16afd5=_0x1e6dca['commands']['get']('checkTodoList'),_0x314f02=Array['from'](_0x16afd5['_selectedElements']);_0x314f02['filter'](_0x43ae57=>_0x43ae57['getAttribute']('todoListChecked')!=_0x16afd5['value']),_0x1e6dca['model']['change'](()=>{for(const _0x27e3b4 of _0x314f02)_0x5491ea['markBlockFormat'](_0x27e3b4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x16afd5['value']}]});});}),_0x5491ea['descriptionFactory']['registerElementLabel']('listItem',_0x4d034f=>o(_0x28049a,'ELEMENT_LIST_ITEM',_0x4d034f)),_0x5491ea['descriptionFactory']['registerDescriptionCallback'](_0x2fb4a1=>{if('formatBlock'!=_0x2fb4a1['type']&&'formatInline'!=_0x2fb4a1['type'])return;const {data:_0xeacf21}=_0x2fb4a1;if(_0xeacf21){if('numberedList'==_0xeacf21['commandName']||'bulletedList'==_0xeacf21['commandName']||'todoList'==_0xeacf21['commandName'])switch(_0xeacf21['commandName']['replace']('List','')){case'bulleted':return _0x10dfac(o(_0x28049a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x10dfac(o(_0x28049a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x10dfac(o(_0x28049a,'ELEMENT_TODO_LIST'));}if('indentList'==_0xeacf21['commandName'])return{'type':'format','content':o(_0x28049a,'*Indent:*\x20%0',o(_0x28049a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xeacf21['commandName'])return{'type':'format','content':o(_0x28049a,'*Outdent:*\x20%0',o(_0x28049a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xeacf21['commandName'])return _0xeacf21['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28049a,'*Check\x20item*')}:{'type':'format','content':o(_0x28049a,'*Uncheck\x20item*')};}function _0x10dfac(_0x99d894){return{'type':'format','content':o(_0x28049a,'*Change\x20to:*\x20%0',_0x99d894)};}});}}function Le(_0x49761c){const _0xaf10e6=_0x49761c['getAttribute']('listIndent');if(0x0==_0xaf10e6)return _0x49761c;let _0x2ff721=_0x49761c;for(;_0x49761c['previousSibling']&&_0x49761c['previousSibling']['is']('element','listItem');){const _0x3455b0=_0x49761c['previousSibling']['getAttribute']('listIndent');if(_0x3455b0==_0xaf10e6)_0x2ff721=_0x49761c['previousSibling'];else{if(_0x3455b0<_0xaf10e6)break;}_0x49761c=_0x49761c['previousSibling'];}return _0x2ff721;}function Ee(_0x2c8070){const _0x4d5a55=[];if(_0x2c8070['is']('element','listItem')&&_0x2c8070['getAttribute']('listIndent')>0x0){let _0x4c45ec=_0x2c8070['nextSibling'];for(;_0x4c45ec&&'listItem'==_0x4c45ec['name']&&_0x4c45ec['getAttribute']('listIndent')==_0x2c8070['getAttribute']('listIndent');)_0x4d5a55['push'](_0x4c45ec),_0x4c45ec=_0x4c45ec['nextSibling'];}return _0x4d5a55;}class gt extends _0x20a8ee{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x17b0df=this['editor']['config']['get']('list.properties'),_0x4fe78c=this['editor']['plugins']['get']('TrackChangesEditing');_0x17b0df['styles']&&_0x4fe78c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x17b0df['reversed']&&_0x4fe78c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x17b0df['startIndex']&&_0x4fe78c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4fe78c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x21e037,_0x5aeb8b={}){const _0x3935d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38f3c0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3935d5['markMultiRangeBlockFormat'](_0x38f3c0,{'commandName':'listStyle','commandParams':[{'type':_0x5aeb8b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x34e328,_0x4980ac={}){const _0x2775ef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f7048=this['_getSuggestionBlocks'](_0x2fd4e2=>_0x2fd4e2['is']('element','listItem')&&'numbered'===_0x2fd4e2['getAttribute']('listType'));if(_0x1f7048['length']<0x1)return;const _0x1d59c3=_0x1f7048['map'](_0x147c24=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x147c24,'before'),this['editor']['model']['createPositionAt'](_0x147c24,0x0)));this['editor']['model']['change'](()=>{_0x2775ef['markMultiRangeBlockFormat'](_0x1d59c3,{'commandName':'listReversed','commandParams':[{'reversed':_0x4980ac['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2195e7,_0x4381f1={}){const _0x2ee498=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51d3ff=this['_getSuggestionBlocks'](_0x230135=>_0x230135['is']('element','listItem')&&'numbered'===_0x230135['getAttribute']('listType'));if(_0x51d3ff['length']<0x1)return;const _0x43af52=_0x51d3ff['map'](_0x23f119=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x23f119,'before'),this['editor']['model']['createPositionAt'](_0x23f119,0x0)));this['editor']['model']['change'](()=>{_0x2ee498['markMultiRangeBlockFormat'](_0x43af52,{'commandName':'listStart','commandParams':[{'startIndex':_0x4381f1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x35a18e){if('formatBlock'!=_0x35a18e['type']&&'formatInline'!=_0x35a18e['type'])return;const _0x36e7d0=this['editor']['locale'],{data:_0x470628}=_0x35a18e;if(!_0x470628)return;let _0x421cd5,_0x67b98;switch(_0x470628['commandName']){case'listStyle':_0x421cd5='*Change\x20to:*\x20%0',_0x67b98={'type':'format','content':o(_0x36e7d0,_0x421cd5,o(_0x36e7d0,this['_getTranslationKeyForListStyle'](_0x470628['commandParams'][0x0]['type'])))};break;case'listReversed':_0x421cd5=_0x470628['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x67b98={'type':'format','content':o(_0x36e7d0,_0x421cd5)};break;case'listStart':_0x421cd5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x67b98={'type':'format','content':o(_0x36e7d0,_0x421cd5,_0x470628['commandParams'][0x0]['startIndex'])};}return _0x67b98;}['_getSuggestionBlocksForListStyle'](){const _0x40f093=this['editor']['plugins']['get']('LegacyListUtils');let _0x6c0f23=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x6c0f23[0x0]?.['is']('element','listItem')&&_0x6c0f23['unshift'](..._0x40f093['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x6c0f23[_0x6c0f23['length']-0x1]?.['is']('element','listItem')&&_0x6c0f23['push'](..._0x40f093['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x6c0f23=[...new Set(_0x6c0f23)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x6c0f23=_0x6c0f23['filter'](_0xdfc5e2=>_0xdfc5e2['is']('element','listItem'))),_0x6c0f23;}['_getSuggestionBlocks'](_0x2c4ba7){const _0x40511a=this['editor']['plugins']['get']('LegacyListUtils');let _0x9e30f2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2c4ba7)['map'](_0x161f3a=>{const _0x40ac87=this['editor']['model']['createPositionAt'](_0x161f3a,0x0);return[..._0x40511a['getSiblingNodes'](_0x40ac87,'backward'),..._0x40511a['getSiblingNodes'](_0x40ac87,'forward')];})['flat']();return _0x9e30f2=[...new Set(_0x9e30f2)],_0x9e30f2;}['_getTranslationKeyForListStyle'](_0xf85d54){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xf85d54)||'default')['toUpperCase']()+'_LIST_'+_0xf85d54['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x20a8ee{['afterInit'](){const _0x16e8df=this['editor'];if(!_0x16e8df['plugins']['has']('MediaEmbedEditing'))return;const _0x3f324c=_0x16e8df['plugins']['get']('TrackChangesEditing'),_0x433851=_0x16e8df['locale'];_0x3f324c['enableCommand']('mediaEmbed'),_0x3f324c['descriptionFactory']['registerElementLabel']('media',_0x30dce8=>o(_0x433851,'ELEMENT_MEDIA',_0x30dce8)),_0x16e8df['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x470f47,{writer:_0x3aab96,options:_0x513aca})=>{if(_0x513aca['showSuggestionHighlights'])return _0x3aab96['createEmptyElement']('div');},'converterPriority':'high'}),_0x16e8df['data']['downcastDispatcher']['on']('attribute:url:media',(_0x473210,_0x586e92,_0x366927)=>{_0x366927['options']['showSuggestionHighlights']&&_0x473210['stop']();},{'priority':'high'});}}class dt extends _0x20a8ee{['afterInit'](){const _0x29033b=this['editor'];_0x29033b['plugins']['has']('MentionEditing')&&_0x29033b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class mt extends _0x20a8ee{['afterInit'](){const _0x20ca43=this['editor'];if(!_0x20ca43['plugins']['has']('MergeFieldsEditing'))return;const _0x345878=_0x20ca43['plugins']['get']('TrackChangesEditing'),_0x441a72=_0x20ca43['locale'];_0x345878['enableCommand']('insertMergeField'),_0x345878['enableCommand']('insertMergeFieldBlock'),_0x345878['enableCommand']('insertMergeFieldImage'),_0x345878['descriptionFactory']['registerElementLabel']('mergeField',_0x473b95=>o(_0x441a72,'ELEMENT_MERGE_FIELD',_0x473b95)),_0x345878['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x107d61=>o(_0x441a72,'ELEMENT_MERGE_FIELD',_0x107d61)),_0x345878['descriptionFactory']['registerDescriptionCallback'](_0x4a3247=>{if('insertion'!=_0x4a3247['type']&&'deletion'!=_0x4a3247['type'])return;const _0x3481a1=_0x4a3247['getContainedElement']();if(null==_0x3481a1)return;const _0x13d01f=_0x20ca43['plugins']['get']('MergeFieldsEditing');let _0x2a1054;switch(_0x13d01f['getMergeFieldType'](_0x3481a1)){case null:return;case'image':{const _0x37088f=_0x13d01f['unwrapAffixes'](_0x3481a1['getAttribute']('src'));_0x2a1054=_0x13d01f['getLabel'](_0x37088f)||_0x37088f;break;}default:{const _0x9edb06=_0x3481a1['getAttribute']('id');_0x2a1054=_0x13d01f['getLabel'](_0x9edb06)||_0x9edb06;break;}}return'insertion'==_0x4a3247['type']?{'type':'insertion','content':o(_0x441a72,'*Insert:*\x20%0','\x22'+_0x2a1054+'\x22\x20'+o(_0x441a72,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x441a72,'*Remove:*\x20%0','\x22'+_0x2a1054+'\x22\x20'+o(_0x441a72,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x20a8ee{['afterInit'](){const _0x985c48=this['editor'],_0x252d56=_0x985c48['plugins']['get']('TrackChangesEditing');_0x985c48['plugins']['has']('MultiLevelList')&&(_0x252d56['enableDefaultAttributesIntegration']('multiLevelList'),_0x252d56['registerBlockAttribute']('listMarkerStyle'),_0x252d56['descriptionFactory']['registerDescriptionCallback'](_0x4dcff4=>this['handleDescriptions'](_0x4dcff4)));}['handleDescriptions'](_0x51b6c7){const _0x3e3812=this['editor']['locale'],{data:_0x4cbff9}=_0x51b6c7,_0x148655={'type':'format','content':''};if(_0x4cbff9&&'listMarkerStyle'==_0x4cbff9['key']){if(!_0x4cbff9['oldValue'])return{'type':'format','content':o(_0x3e3812,'*Set\x20format:*\x20%0',o(_0x3e3812,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4cbff9['newValue']+')'};if(!_0x4cbff9['newValue']){let _0x57f470=_0x51b6c7['head'];for(;_0x57f470;){if(_0x57f470['data']&&'listType'==_0x57f470['data']['key']&&_0x57f470['data']['newValue'])return _0x148655;_0x57f470=_0x57f470['next'];}return{'type':'format','content':o(_0x3e3812,'*Remove\x20format:*\x20%0',o(_0x3e3812,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4cbff9['oldValue']+')'};}}}}class kt extends _0x20a8ee{['afterInit'](){const _0xe41179=this['editor'];if(!_0xe41179['plugins']['has']('PageBreakEditing'))return;_0xe41179['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x491b0b=_0xe41179['plugins']['get']('TrackChangesEditing'),_0x12883b=_0xe41179['locale'];_0x491b0b['descriptionFactory']['registerElementLabel']('pageBreak',_0x158515=>o(_0x12883b,'ELEMENT_PAGE_BREAK',_0x158515));}}class wt extends _0x20a8ee{['afterInit'](){const _0x32a566=this['editor'];if(!_0x32a566['plugins']['has']('Paragraph'))return;const _0xf587c2=_0x32a566['locale'],_0x3ea133=_0x32a566['plugins']['get']('TrackChangesEditing');_0x3ea133['descriptionFactory']['registerElementLabel']('paragraph',_0x1bcbe9=>o(_0xf587c2,'ELEMENT_PARAGRAPH',_0x1bcbe9)),_0x3ea133['enableDefaultAttributesIntegration']('paragraph'),_0x3ea133['enableCommand']('insertParagraph'),_0x32a566['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x32a566),{'priority':'highest'}),_0x32a566['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x376406,_0x343fd1,_0x238a43)=>{_0x238a43['options']['showSuggestionHighlights']&&nr(_0x32a566,{'showActiveMarker':!0x1})(_0x376406,_0x343fd1,_0x238a43);},{'priority':'highest'});const _0x4006ed=_0x3ea133['descriptionFactory'];_0x4006ed['registerDescriptionCallback'](_0x13e526=>{if('insertion'!==_0x13e526['type'])return;const {start:_0x2af495,end:_0x5c61a4}=_0x13e526['getFirstRange']();if(!_0x2af495['isTouching'](_0x5c61a4)||!_0x2af495['nodeAfter'])return;const _0x38dc51=_0x32a566['model']['schema'],_0x43de9e=_0x2af495['nodeAfter'];return _0x38dc51['isBlock'](_0x43de9e)&&!_0x38dc51['isLimit'](_0x43de9e)&&_0x38dc51['checkChild'](_0x43de9e,'$text')?{'type':'insertion','content':o(_0xf587c2,'*Insert:*\x20%0',_0x4006ed['getItemLabel'](_0x43de9e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12bbae=this['editor'],_0x57db00=_0x12bbae['locale'];_0x12bbae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45d09c=>{if('formatBlock'!=_0x45d09c['type'])return;const {data:_0x167162}=_0x45d09c;return _0x167162&&'paragraph'==_0x167162['commandName']?{'type':'format','content':o(_0x57db00,'*Change\x20to:*\x20%0',o(_0x57db00,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x536db8,{showActiveMarker:_0x30d95a=!0x0}={}){return(_0x306da3,_0x4a7228,_0x5768ad)=>{const _0x59c684=_0x536db8['plugins']['get']('TrackChangesEditing'),_0x1882b1=_0x4a7228['markerRange']['start'],_0x46a8bb=_0x4a7228['markerRange']['end'],_0x11c269=_0x536db8['model']['schema'];if(!_0x1882b1['isTouching'](_0x46a8bb)||!_0x1882b1['nodeAfter'])return;const _0x56439d=_0x1882b1['nodeAfter'];if(_0x11c269['isBlock'](_0x56439d)&&!_0x11c269['isLimit'](_0x56439d)&&_0x11c269['checkChild'](_0x56439d,'$text')){if(!_0x5768ad['consumable']['consume'](_0x4a7228['markerRange'],_0x306da3['name']))return;const {id:_0x835eb,authorId:_0x52550c}=_0x59c684['_splitMarkerName'](_0x4a7228['markerName']),_0x2dd9de=_0x5768ad['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x835eb,'data-author-id':_0x52550c}),_0x22473e=_0x5768ad['mapper']['toViewPosition'](_0x46a8bb);_0x30d95a&&_0x59c684['activeMarkers']['includes'](_0x4a7228['markerName'])&&_0x5768ad['writer']['addClass']('ck-suggestion-marker--active',_0x2dd9de),_0x5768ad['writer']['insert'](_0x22473e,_0x2dd9de),_0x5768ad['mapper']['bindElementToMarker'](_0x2dd9de,_0x4a7228['markerName']);}};}class bt extends _0x20a8ee{['afterInit'](){const _0x1a6cd3=this['editor'];_0x1a6cd3['commands']['get']('replaceSource')&&_0x1a6cd3['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class yt extends _0x20a8ee{['afterInit'](){const _0x19e0c9=this['editor'];if(!_0x19e0c9['plugins']['has']('RemoveFormatEditing'))return;_0x19e0c9['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x553e89=this['editor'];_0x553e89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5edb59=>{if('formatBlock'!=_0x5edb59['type']&&'formatInline'!=_0x5edb59['type'])return;const {data:_0x173a91}=_0x5edb59;return _0x173a91&&'removeFormat'==_0x173a91['commandName']?{'type':'format','content':o(_0x553e89['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class St extends _0x20a8ee{['afterInit'](){const _0x59ca7a=this['editor'];if(!_0x59ca7a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x25b47b=_0x59ca7a['plugins']['get']('TrackChangesEditing');_0x25b47b['enableCommand']('goToPreviousRestrictedEditingException'),_0x25b47b['enableCommand']('goToNextRestrictedEditingException');const _0x528b7e=_0x59ca7a['plugins']['get']('RestrictedEditingModeEditing');_0x528b7e['enableCommand']('trackChanges'),_0x528b7e['enableCommand']('acceptSuggestion'),_0x528b7e['enableCommand']('discardSuggestion'),_0x528b7e['enableCommand']('acceptAllSuggestions'),_0x528b7e['enableCommand']('discardAllSuggestions'),_0x528b7e['enableCommand']('acceptSelectedSuggestions'),_0x528b7e['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x20a8ee{['afterInit'](){const _0x1e4d08=this['editor'];if(!_0x1e4d08['plugins']['has']('ShiftEnter'))return;const _0x3fba11=_0x1e4d08['plugins']['get']('TrackChangesEditing');_0x3fba11['enableCommand']('shiftEnter'),_0x1e4d08['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1e4d08),{'priority':'high'}),_0x1e4d08['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1e4d08),{'priority':'high'}),_0x1e4d08['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34de3f,_0x24e7c8,_0x19bcde)=>{_0x19bcde['options']['showSuggestionHighlights']&&je(_0x1e4d08,{'showActiveMarker':!0x1})(_0x34de3f,_0x24e7c8,_0x19bcde);}),_0x3fba11['descriptionFactory']['registerElementLabel']('softBreak',_0x42c80d=>o(_0x1e4d08['locale'],'ELEMENT_LINE_BREAK',_0x42c80d));}}function je(_0x4b37f1,{showActiveMarker:_0x122912=!0x0}={}){return(_0x50f08d,_0x1e18df,_0x49b474)=>{const _0x190058=_0x4b37f1['plugins']['get']('TrackChangesEditing');if(!_0x49b474['consumable']['test'](_0x1e18df['markerRange'],_0x50f08d['name']))return;const _0x45f5fb=_0x4b37f1['model'];for(const _0x3ed4e2 of _0x1e18df['markerRange']['getItems']()){if(!_0x3ed4e2['is']('element','softBreak'))continue;const _0x50b398='deletion'==_0x1e18df['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x45be4,authorId:_0x22be18}=_0x190058['_splitMarkerName'](_0x1e18df['markerName']),_0x43376e=_0x49b474['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50b398,'data-suggestion':_0x45be4,'data-author-id':_0x22be18}),_0x1dbe68=_0x49b474['mapper']['toViewPosition'](_0x45f5fb['createPositionBefore'](_0x3ed4e2));_0x122912&&_0x190058['activeMarkers']['includes'](_0x1e18df['markerName'])&&_0x49b474['writer']['addClass']('ck-suggestion-marker--active',_0x43376e),_0x49b474['writer']['insert'](_0x1dbe68,_0x43376e),_0x49b474['mapper']['bindElementToMarker'](_0x43376e,_0x1e18df['markerName']);}};}class It extends _0x20a8ee{['afterInit'](){const _0x2964c6=this['editor'],_0x406453=_0x2964c6['model'],_0x5e421e=_0x2964c6['locale'];if(!_0x2964c6['plugins']['has']('StandardEditingModeEditing'))return;const _0x1042d8=_0x2964c6['plugins']['get']('TrackChangesEditing'),_0x33893b='restrictedEditingException',_0x4c1890=_0x2964c6['commands']['get'](_0x33893b);_0x1042d8['enableCommand'](_0x33893b,(_0x2fc23d,_0x281cea={})=>{const _0x36866c=_0x406453['document']['selection'];if(_0x36866c['isCollapsed'])return void _0x2fc23d(_0x281cea);const _0x34cd46=void 0x0!==_0x281cea['forceValue']?_0x281cea['forceValue']:!_0x4c1890['value'];_0x406453['change'](()=>{const _0x2b0002=Array['from'](_0x36866c['getRanges']());for(const _0x5dc25c of _0x2b0002){const _0x38a737=_0x34cd46?[_0x5dc25c]:io(_0x33893b,_0x5dc25c,_0x406453);for(const _0x5bcba6 of _0x38a737)_0x1042d8['markInlineFormat'](_0x5bcba6,{'commandName':_0x33893b,'commandParams':[{'forceValue':_0x34cd46}]});}});}),_0x1042d8['descriptionFactory']['registerDescriptionCallback'](_0x3f2fa8=>{if('formatBlock'!=_0x3f2fa8['type']&&'formatInline'!=_0x3f2fa8['type'])return;const {data:_0x14dc8c}=_0x3f2fa8;return _0x14dc8c&&_0x14dc8c['commandName']==_0x33893b?_0x14dc8c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e421e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5e421e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x20a8ee{['afterInit'](){const _0x5d5786=this['editor'];if(!_0x5d5786['plugins']['has']('Style')||!_0x5d5786['plugins']['has']('DataSchema'))return;const _0x5c7f10=_0x5d5786['plugins']['get']('TrackChangesEditing'),_0x9d3667=_0x5d5786['locale'],_0x37f77c=_0x5d5786['config']['get']('style')||{},_0x140a0a=_0x5d5786['plugins']['get']('GeneralHtmlSupport'),_0x574ee6=_0x5d5786['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5d5786['plugins']['get']('DataSchema'),_0x37f77c['definitions']);_0x5c7f10['enableDefaultAttributesIntegration']('style');const _0x2b66fe=new Set();for(const _0x587589 of _0x574ee6['block']){const _0x4e8e6e=_0x140a0a['getGhsAttributeNameForElement'](_0x587589['element']);_0x2b66fe['add'](_0x4e8e6e);}const _0x55837e=new Set();for(const _0x325bcc of _0x574ee6['inline']){const _0x1dcebb=_0x140a0a['getGhsAttributeNameForElement'](_0x325bcc['element']);_0x55837e['add'](_0x1dcebb);for(const _0x2cf46d of _0x325bcc['ghsAttributes'])_0x55837e['add'](_0x2cf46d);}for(const _0x5060a6 of _0x2b66fe)_0x5c7f10['registerBlockAttribute'](_0x5060a6),_0x5c7f10['descriptionFactory']['registerAttributeLabel'](_0x5060a6,o(_0x9d3667,'FORMAT_STYLE'));for(const _0x124b54 of _0x55837e)_0x5c7f10['registerInlineAttribute'](_0x124b54),_0x5c7f10['descriptionFactory']['registerAttributeLabel'](_0x124b54,o(_0x9d3667,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d1d13=this['editor'],_0x199aa0=_0x1d1d13['locale'];_0x1d1d13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8ba934=>{if('formatBlock'!=_0x8ba934['type']&&'formatInline'!=_0x8ba934['type'])return;const {data:_0x218858}=_0x8ba934;return _0x218858&&'style'===_0x218858['commandName']?_0x218858['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x199aa0,'*Set\x20format:*\x20%0',_0x218858['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x199aa0,'*Remove\x20format:*\x20%0',_0x218858['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x20a8ee{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xbb14cf){super(_0xbb14cf),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5bdde6=this['editor'],_0x5eb5cd=_0x5bdde6['model']['document']['selection'];if(!_0x5bdde6['plugins']['has']('TableEditing'))return;const _0x37d4aa=_0x5bdde6['locale'],_0x1fa5f0=_0x5bdde6['plugins']['get']('TrackChangesEditing'),_0x5c7a64=_0x5bdde6['plugins']['get']('TableUtils');_0x1fa5f0['descriptionFactory']['registerElementLabel']('table',_0x2bc21d=>o(_0x37d4aa,'ELEMENT_TABLE',_0x2bc21d)),this['_setupColumnsRowsFixing'](),_0x1fa5f0['enableCommand']('insertTable'),_0x1fa5f0['enableCommand']('selectTableRow'),_0x1fa5f0['enableCommand']('selectTableColumn');for(const _0x1ed026 of['insertTableRowAbove','insertTableRowBelow']){const _0x4e02d7=_0x5bdde6['commands']['get'](_0x1ed026);_0x1fa5f0['enableCommand'](_0x1ed026,_0x208192=>{_0x5bdde6['model']['change'](_0x5d744c=>{_0x208192();const _0x1ae29d='above'===_0x4e02d7['order'],_0x19ded8=_0x5c7a64['getSelectionAffectedTableCells'](_0x5eb5cd),_0x1f8b49=_0x5c7a64['getRowIndexes'](_0x19ded8),_0x15a0c4=_0x1ae29d?_0x1f8b49['first']-0x1:_0x1f8b49['last']+0x1,_0x1c287c=_0x19ded8[0x0]['findAncestor']('table'),_0x45cdf0=_0x5c7a64['createTableWalker'](_0x1c287c,{'startRow':_0x15a0c4,'endRow':_0x15a0c4}),_0x232c66=Array['from'](_0x45cdf0)['map'](_0x5b5747=>_0x5d744c['createRangeOn'](_0x5b5747['cell']));_0x1fa5f0['markMultiRangeInsertion'](_0x232c66,'tableRow');});});}for(const _0x49d56b of['insertTableColumnLeft','insertTableColumnRight']){const _0x5aaeaf=_0x5bdde6['commands']['get'](_0x49d56b);_0x1fa5f0['enableCommand'](_0x49d56b,_0x498b5a=>{_0x5bdde6['model']['change'](_0x1b2f3b=>{_0x498b5a();const _0x52a03a='left'===_0x5aaeaf['order'],_0x32b4e8=_0x5c7a64['getSelectionAffectedTableCells'](_0x5eb5cd),_0x2c04c5=_0x5c7a64['getColumnIndexes'](_0x32b4e8),_0x489d5e=_0x52a03a?_0x2c04c5['first']-0x1:_0x2c04c5['last']+0x1,_0x376398=_0x32b4e8[0x0]['findAncestor']('table'),_0x9e0a28=_0x5c7a64['createTableWalker'](_0x376398,{'startRow':0x0,'column':_0x489d5e,'includeAllSlots':!0x1}),_0x208368=Array['from'](_0x9e0a28)['map'](_0x16e98a=>_0x1b2f3b['createRangeOn'](_0x16e98a['cell']));_0x1fa5f0['markMultiRangeInsertion'](_0x208368,'tableColumn');});});}for(const _0xf9b3c5 of['removeTableRow','removeTableColumn']){const _0x126eac=_0xf9b3c5['substr'](0xb),_0x43cd91=_0x126eac['toLowerCase'](),_0x1bdd49=_0x43cd91['substr'](0x0,0x3)+'span',_0x3382e5='table'+_0x126eac,_0x28dde9='min'+_0x126eac,_0x52e690='max'+_0x126eac;_0x1fa5f0['enableCommand'](_0xf9b3c5,()=>{_0x5bdde6['model']['change'](_0x7762f8=>{const _0x128df4=_0x5c7a64['getSelectionAffectedTableCells'](_0x5eb5cd),_0xdedce9=_0x128df4[0x0]['findAncestor']('table');let _0x1d70e7;if('removeTableRow'==_0xf9b3c5){const _0x5aa8cc=_0x5c7a64['getRowIndexes'](_0x128df4);_0x1d70e7={'startRow':_0x5aa8cc['first'],'endRow':_0x5aa8cc['last'],'includeAllSlots':!0x0};}else{const _0x51b18a=_0x5c7a64['getColumnIndexes'](_0x128df4);_0x1d70e7={'startColumn':_0x51b18a['first'],'endColumn':_0x51b18a['last'],'includeAllSlots':!0x0};}const _0x16c746=_0x5c7a64['createTableWalker'](_0xdedce9,_0x1d70e7),_0x3715ec=Array['from'](_0x16c746)['map'](({cell:_0x10c12c})=>_0x10c12c),_0xf16dff=Ne(_0x3715ec['filter'](_0x388fe1=>_0x388fe1['hasAttribute'](_0x1bdd49))),_0x563f14=Ne(_0x3715ec['filter'](_0x3e2cc5=>!_0x3e2cc5['hasAttribute'](_0x1bdd49)))['map'](_0x56381b=>_0x7762f8['createRangeOn'](_0x56381b)),_0x5ef766=_0x1fa5f0['markMultiRangeDeletion'](_0x563f14,_0x3382e5);if(_0x5ef766&&('tableRow'==_0x5ef766['subType']||'tableColumn'==_0x5ef766['subType'])){const _0x1bfd4c=this['_getSuggestionCoords'](_0x5ef766);for(const _0xaedef0 of _0xf16dff){const _0x224c10=_0x7762f8['createRangeOn'](_0xaedef0),_0x33d9e6=_0x5c7a64['getCellLocation'](_0xaedef0),_0x5cd67a=_0xaedef0['getAttribute'](_0x1bdd49)-0x1,_0x327ed8=_0x1bfd4c[_0x28dde9],_0x3bf7ad=_0x1bfd4c[_0x52e690];_0x327ed8<=_0x33d9e6[_0x43cd91]&&_0x33d9e6[_0x43cd91]+_0x5cd67a<=_0x3bf7ad&&_0x5ef766['addRange'](_0x224c10);}}});});}function _0x321f51(_0x116ae5){const _0x315439=Array['from'](_0x5eb5cd['getRanges']())['map'](_0x33ed07=>_0x80ba14['fromRange'](_0x33ed07));_0x5bdde6['model']['change'](_0x58499f=>{const _0x457164=_0x58499f['batch'];_0x116ae5=_0x116ae5['filter'](_0x175982=>'$graveyard'!=_0x175982['root']['rootName']),_0x58499f['setSelection'](_0x116ae5),_0x5bdde6['commands']['get']('removeTableRow')['refresh'](),_0x5bdde6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5bdde6['model']['enqueueChange'](()=>{_0x5bdde6['model']['enqueueChange'](_0x457164,_0x850b59=>{const _0x4d1e12=_0x315439['filter'](_0x510d27=>'$graveyard'!=_0x510d27['root']['rootName']);_0x4d1e12['length']>0x0&&_0x850b59['setSelection'](_0x4d1e12);for(const _0x59cce3 of _0x315439)_0x59cce3['detach']();});});});}function _0x32496b(_0x438f26){_0x5bdde6['model']['change'](_0x34e5ad=>{const _0x13bab2=Array['from'](_0x5eb5cd['getRanges']())['map'](_0x58ce60=>_0x80ba14['fromRange'](_0x58ce60)),_0x3b39bf=[];for(const _0x343add of _0x438f26)for(const _0x348a48 of _0x343add['getItems']({'shallow':!0x0}))_0x3b39bf['push'](_0x348a48);for(const _0x7a27d4 of _0x3b39bf)'$graveyard'!=_0x7a27d4['root']['rootName']&&(_0x34e5ad['setSelection'](_0x34e5ad['createPositionAt'](_0x7a27d4,0x0)),_0x5bdde6['commands']['get']('removeTableColumn')['refresh'](),_0x5bdde6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x8263a2=_0x13bab2['filter'](_0x59c652=>'$graveyard'!=_0x59c652['root']['rootName']);_0x8263a2['length']>0x0&&_0x34e5ad['setSelection'](_0x8263a2);for(const _0x48a14b of _0x13bab2)_0x48a14b['detach']();});}function _0x4be245(_0x3b6202,_0x43136e){return _0x43136e['every'](_0x40084f=>_0x3b6202['some'](_0x5441f2=>_0x5441f2['end']['isEqual'](_0x40084f['start'])||_0x40084f['end']['isEqual'](_0x5441f2['start'])));}function _0x504278(_0xcdc3ed,_0x33df43){return!_0xcdc3ed['some'](_0x5316d2=>_0x33df43['some'](_0x5a8877=>_0x5316d2['isIntersecting'](_0x5a8877)))&&_0xcdc3ed['some'](_0x1b5f43=>_0x33df43['some'](_0x5dbddb=>_0x1b5f43['end']['isTouching'](_0x5dbddb['start'])));}_0x5bdde6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x21b1c7,_0x4cfeb7,_0x5e0ff7)=>{if(!_0x5e0ff7['options']['showSuggestionHighlights'])return;const _0x366e45=_0x4cfeb7['item'];if(!_0x366e45||!_0x366e45['is']('element','tableCell'))return;const _0x2181c5=_0x5e0ff7['mapper']['toViewElement'](_0x366e45);if(_0x2181c5){const {id:_0x26c1d5,authorId:_0x591c50}=_0x1fa5f0['_splitMarkerName'](_0x4cfeb7['markerName']);_0xea350c(_0x2181c5,_0x5e0ff7['writer'],(_0x5cf7d8,_0xb6443d,_0x2603f6)=>{_0x2603f6['addClass'](_0x21bab1(_0xb6443d['classes']),_0x5cf7d8),_0x2603f6['setAttribute']('data-suggestion-id',_0x26c1d5,_0x5cf7d8),_0x2603f6['setAttribute']('data-author-id',_0x591c50,_0x5cf7d8);},(_0x1e170b,_0x4dad4c,_0x5f0b0d)=>{_0x5f0b0d['removeClass'](_0x21bab1(_0x4dad4c['classes']),_0x1e170b),_0x5f0b0d['removeAttribute']('data-suggestion-id',_0x1e170b),_0x5f0b0d['removeAttribute']('data-author-id',_0x1e170b);});}},{'priority':'highest'}),_0x1fa5f0['descriptionFactory']['registerDescriptionCallback'](_0x75558e=>{if('insertion'!=_0x75558e['type']&&'deletion'!=_0x75558e['type'])return;const _0x1cbd91=_0x75558e['getContainedElement']();if(null!=_0x1cbd91&&_0x1cbd91['is']('element','table')){if('insertion'==_0x75558e['type']){const _0x5c5870=_0x75558e['getItems']()['filter'](_0x24e2d4=>_0x24e2d4['is']('$textProxy'))['map'](_0x2ada9d=>_0x2ada9d['data']);if(_0x5c5870['length'])return{'type':'insertion','content':o(_0x37d4aa,'*Insert:*\x20%0',o(_0x37d4aa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5c5870['join']('\x20')+'\x22'))};}if('deletion'==_0x75558e['type']){const _0x426b5e=_0x75558e['getItems']()['filter'](_0x19d369=>_0x19d369['is']('$textProxy'))['map'](_0x42e2e1=>_0x42e2e1['data']);if(_0x426b5e['length'])return{'type':'deletion','content':o(_0x37d4aa,'*Remove:*\x20%0',o(_0x37d4aa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x426b5e['join']('\x20')+'\x22'))};}}}),_0x1fa5f0['descriptionFactory']['registerDescriptionCallback'](_0x4acc12=>{if('tableRow'==_0x4acc12['subType']){const _0x3e0459=_0x4acc12['getItems']()['filter'](_0x3d8fb9=>_0x3d8fb9['is']('$textProxy'))['map'](_0x7561a5=>_0x7561a5['data']),_0x44d495=this['_getSuggestionCoords'](_0x4acc12),_0x396394=_0x44d495['maxRow']-_0x44d495['minRow']+0x1;if('insertion'==_0x4acc12['type'])return _0x3e0459['length']?{'type':'insertion','content':o(_0x37d4aa,'*Insert:*\x20%0',o(_0x37d4aa,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x396394,'\x22'+_0x3e0459['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x37d4aa,'*Insert:*\x20%0',o(_0x37d4aa,'ELEMENT_TABLE_ROW',_0x396394))};if('deletion'==_0x4acc12['type'])return _0x3e0459['length']?{'type':'deletion','content':o(_0x37d4aa,'*Remove:*\x20%0',o(_0x37d4aa,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x396394,'\x22'+_0x3e0459['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x37d4aa,'*Remove:*\x20%0',o(_0x37d4aa,'ELEMENT_TABLE_ROW',_0x396394))};}if('tableColumn'==_0x4acc12['subType']){const _0x541a98=_0x4acc12['getItems']()['filter'](_0x301432=>_0x301432['is']('$textProxy'))['map'](_0x9e604d=>_0x9e604d['data']),_0x5551e7=this['_getSuggestionCoords'](_0x4acc12),_0x32baf9=_0x5551e7['maxColumn']-_0x5551e7['minColumn']+0x1;if('insertion'==_0x4acc12['type'])return _0x541a98['length']?{'type':'insertion','content':o(_0x37d4aa,'*Insert:*\x20%0',o(_0x37d4aa,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x32baf9,'\x22'+_0x541a98['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x37d4aa,'*Insert:*\x20%0',o(_0x37d4aa,'ELEMENT_TABLE_COLUMN',_0x32baf9))};if('deletion'==_0x4acc12['type'])return _0x541a98['length']?{'type':'deletion','content':o(_0x37d4aa,'*Remove:*\x20%0',o(_0x37d4aa,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x32baf9,'\x22'+_0x541a98['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x37d4aa,'*Remove:*\x20%0',o(_0x37d4aa,'ELEMENT_TABLE_COLUMN',_0x32baf9))};}}),_0x1fa5f0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x321f51),_0x1fa5f0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x321f51),_0x1fa5f0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x32496b),_0x1fa5f0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x32496b),_0x1fa5f0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4be245),_0x1fa5f0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4be245),_0x1fa5f0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x504278),_0x1fa5f0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x504278);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1ae70c=this['editor'],_0x4be2d1=_0x1ae70c['model']['document']['selection'];return(_0x5b3dee,_0x3e87f1)=>{_0x1ae70c['model']['change'](_0x2b6a2f=>{const {commandName:_0x39ff13,commandParams:_0x39a375}=_0x3e87f1;let _0x4e533e=_0x5b3dee[0x0]['end']['nodeBefore'];_0x39a375&&_0x39a375[0x0]&&!0x1===_0x39a375[0x0]['forceValue']&&(_0x4e533e=_0x5b3dee[0x0]['start']['nodeAfter']);const _0xd5c7a7=_0x2b6a2f['createRangeIn'](_0x4e533e);if('$graveyard'==_0xd5c7a7['root']['rootName'])return;const _0x53e2c3=Array['from'](_0x4be2d1['getRanges']())['map'](_0x17b5eb=>_0x80ba14['fromRange'](_0x17b5eb));_0x2b6a2f['setSelection'](_0xd5c7a7),_0x1ae70c['commands']['get'](_0x39ff13)['refresh'](),_0x39a375['push']({'forceDefaultExecution':!0x0}),_0x1ae70c['execute'](_0x39ff13,..._0x39a375);const _0x521223=_0x53e2c3['filter'](_0xce3018=>'$graveyard'!=_0xce3018['root']['rootName']);_0x521223['length']>0x0&&_0x2b6a2f['setSelection'](_0x521223);for(const _0x271e24 of _0x53e2c3)_0x271e24['detach']();});};}['_getCoordsForCells'](_0x37f46b){const _0x4f1af7=this['editor']['plugins']['get']('TableUtils');let _0x252bd1=Number['MAX_SAFE_INTEGER'],_0xd5f72a=Number['MIN_SAFE_INTEGER'],_0x28faaa=Number['MAX_SAFE_INTEGER'],_0x53f7b7=Number['MIN_SAFE_INTEGER'];for(const _0x15b1d7 of _0x37f46b){if('$graveyard'==_0x15b1d7['root']['rootName'])continue;const {row:_0x27d44d,column:_0x29d8bb}=_0x4f1af7['getCellLocation'](_0x15b1d7),_0x8f8a7=_0x15b1d7['hasAttribute']('rowspan')?_0x15b1d7['getAttribute']('rowspan')-0x1:0x0,_0x4628ee=_0x15b1d7['hasAttribute']('colspan')?_0x15b1d7['getAttribute']('colspan')-0x1:0x0;_0x252bd1=_0x27d44d<_0x252bd1?_0x27d44d:_0x252bd1,_0xd5f72a=_0x27d44d+_0x8f8a7>_0xd5f72a?_0x27d44d+_0x8f8a7:_0xd5f72a,_0x28faaa=_0x29d8bb<_0x28faaa?_0x29d8bb:_0x28faaa,_0x53f7b7=_0x29d8bb+_0x4628ee>_0x53f7b7?_0x29d8bb+_0x4628ee:_0x53f7b7;}return{'minRow':_0x252bd1,'maxRow':_0xd5f72a,'minColumn':_0x28faaa,'maxColumn':_0x53f7b7};}['_setupColumnsRowsFixing'](){const _0x47b004=this['editor'],_0x24aa60=_0x47b004['plugins']['get']('TrackChangesEditing'),_0x188d6a=_0x47b004['plugins']['get']('TableUtils');_0x47b004['model']['document']['on']('change:data',()=>{const _0x55dc30=Array['from'](_0x47b004['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x582ed9,data:_0x5ca390}of _0x55dc30){const {group:_0x470c7b,id:_0x5c91ef,subType:_0x438661}=_0x24aa60['_splitMarkerName'](_0x582ed9);if('suggestion'!=_0x470c7b)continue;if(null!=_0x5ca390['oldRange'])continue;const _0x2105e3=_0x24aa60['getSuggestion'](_0x5c91ef);this['_tablePostFixingSubtypes']['includes'](_0x438661)&&this['_tableSuggestions']['add'](_0x2105e3);}},{'priority':'low'});const _0x2d5126=(_0x5306a8,_0x4add64)=>{let _0xdef0e2=!0x1;const _0x123192=_0x4add64['createRangeOn'](_0x5306a8),_0x4798af=_0x5306a8['findAncestor']('table'),_0x18fcd3=_0x188d6a['getCellLocation'](_0x5306a8);for(const _0x13799d of this['_tableSuggestions']){const _0x517b64=_0x13799d['subType'],_0x1fd79d=_0x517b64['startsWith']('tablePaste'),_0x52cdf9=_0x517b64['substr'](_0x1fd79d?0xa:0x5),_0x341353=_0x52cdf9['toLowerCase'](),_0x3c43ad=_0x341353['substr'](0x0,0x3)+'span',_0x30bedd='min'+_0x52cdf9,_0x13461e='max'+_0x52cdf9;if(!_0x13799d['isInContent'])continue;if(_0x4798af!=_0x13799d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x13799d['isIntersectingWithRange'](_0x123192))continue;const _0x4cf319=_0x5306a8['hasAttribute'](_0x3c43ad)?_0x5306a8['getAttribute'](_0x3c43ad)-0x1:0x0,_0x2c7c55=this['_getSuggestionCoords'](_0x13799d),_0x44f96f=_0x2c7c55[_0x30bedd],_0x59e495=_0x2c7c55[_0x13461e];_0x44f96f<=_0x18fcd3[_0x341353]&&_0x18fcd3[_0x341353]+_0x4cf319<=_0x59e495&&(_0x13799d['addRange'](_0x123192),_0xdef0e2=!0x0);}return _0xdef0e2;};_0x47b004['model']['document']['registerPostFixer'](_0x13dea8=>{let _0x5c5e2a=!0x1;for(const _0x3b12d0 of _0x47b004['model']['document']['differ']['getChanges']())if('insert'==_0x3b12d0['type']){if('tableRow'==_0x3b12d0['name']){for(const _0x1c4dfb of _0x3b12d0['position']['nodeAfter']['getChildren']())_0x5c5e2a=_0x5c5e2a||_0x2d5126(_0x1c4dfb,_0x13dea8);}else'tableCell'==_0x3b12d0['name']&&(_0x5c5e2a=_0x5c5e2a||_0x2d5126(_0x3b12d0['position']['nodeAfter'],_0x13dea8));}return _0x5c5e2a;});}['_getSuggestionCoords'](_0x32a147){return this['_getCoordsForCells'](_0x32a147['getRanges']()['map'](_0x3c6ccb=>_0x3c6ccb['start']['nodeAfter']));}}function Ne(_0x8cb8dc){return Array['from'](new Set(_0x8cb8dc)['values']());}class Ct extends _0x20a8ee{static get['requires'](){return[_t];}['afterInit'](){const _0x255113=this['editor'],_0x392e05=_0x255113['model']['document']['selection'],_0x23613e=_0x255113['locale'];if(!_0x255113['plugins']['has']('TableEditing'))return;const _0xe1448a=_0x255113['plugins']['get']('TrackChangesEditing'),_0x2154cc=_0x255113['plugins']['get']('TableUtils'),_0x5393e5=_0x255113['plugins']['get'](_t);_0x5393e5['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xe1448a['enableCommand']('mergeTableCells',()=>{const _0x34020f=_0x2154cc['getSelectionAffectedTableCells'](_0x255113['model']['document']['selection']);_0x255113['model']['change'](()=>{_0xe1448a['markMultiRangeBlockFormat'](_0x34020f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x255113['commands']['get']('mergeTableCells')['on']('execute',(_0x381861,_0x5a4ae1)=>{_0x255113['commands']['get']('trackChanges')['value']&&(_0x5a4ae1['length']>0x0&&_0x5a4ae1[_0x5a4ae1['length']-0x1]&&_0x5a4ae1[_0x5a4ae1['length']-0x1]['forceDefaultExecution']||_0xe1448a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x381861['stop']());},{'priority':'highest'});for(const _0x3efe12 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x181cd5=_0x255113['commands']['get'](_0x3efe12);_0xe1448a['enableCommand'](_0x3efe12,()=>{const _0x940f6c=_0x255113['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x25f360=>_0x25f360['is']('element','tableCell')),_0x581405=_0x181cd5['value'];_0x255113['model']['change'](()=>{_0xe1448a['markMultiRangeBlockFormat']([_0x940f6c,_0x581405],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x101cfc of['splitTableCellVertically','splitTableCellHorizontally']){const _0x11e7cc=_0x255113['commands']['get'](_0x101cfc);_0xe1448a['enableCommand'](_0x101cfc,()=>{const _0x5c8350=_0x2154cc['getSelectionAffectedTableCells'](_0x255113['model']['document']['selection'])[0x0],_0x4c5b61=_0x5c8350['findAncestor']('table'),{column:_0x140e1d,row:_0x56503f}=_0x2154cc['getCellLocation'](_0x5c8350);let _0xfbe214=[];if('horizontally'==_0x11e7cc['direction']){const _0x309128=_0x2154cc['createTableWalker'](_0x4c5b61,{'startRow':_0x56503f,'endRow':_0x56503f,'includeAllSlots':!0x0});_0xfbe214=Array['from'](_0x309128)['map'](_0x42f35c=>_0x42f35c['cell']);}else{const _0x2ff510=_0x2154cc['createTableWalker'](_0x4c5b61,{'column':_0x140e1d,'includeAllSlots':!0x0});_0xfbe214=Array['from'](_0x2ff510)['map'](_0x154c53=>_0x154c53['cell']);}_0x255113['model']['change'](_0x147dbc=>{_0xe1448a['markBlockFormat'](_0x147dbc['createRangeOn'](_0x5c8350),{'commandName':_0x101cfc,'commandParams':[]},_0xfbe214,_0x101cfc);});});}_0xe1448a['descriptionFactory']['registerDescriptionCallback'](_0x33e0cf=>{if('formatBlock'!=_0x33e0cf['type']&&'formatInline'!=_0x33e0cf['type'])return;const {data:_0x53c6b3}=_0x33e0cf;return _0x53c6b3&&'mergeTableCells'==_0x53c6b3['commandName']?{'type':'format','content':o(_0x23613e,'*Merge\x20cells*')}:void 0x0;}),_0xe1448a['descriptionFactory']['registerDescriptionCallback'](_0x22f2f2=>{if('formatBlock'!=_0x22f2f2['type']&&'formatInline'!=_0x22f2f2['type'])return;const {data:_0x5d60ab}=_0x22f2f2;return _0x5d60ab?'splitTableCellVertically'==_0x5d60ab['commandName']?{'type':'format','content':o(_0x23613e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5d60ab['commandName']?{'type':'format','content':o(_0x23613e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1e0721=_0x5393e5['_acceptFormatSuggestionCallbackFactory']();for(const _0x20e945 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xe1448a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x20e945,'accept',_0x1e0721);for(const _0x131717 of['splitTableCellVertically','splitTableCellHorizontally'])_0xe1448a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x131717,'accept',_0x1e0721);_0xe1448a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x129eaa=>{_0x255113['model']['change'](_0x3d9958=>{const _0x52775e=Array['from'](_0x392e05['getRanges']())['map'](_0x388f30=>_0x80ba14['fromRange'](_0x388f30));_0x3d9958['setSelection'](_0x129eaa),_0x255113['commands']['get']('mergeTableCells')['refresh'](),_0x255113['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x318389=_0x52775e['filter'](_0x5ca96a=>'$graveyard'!=_0x5ca96a['root']['rootName']);_0x318389['length']>0x0&&_0x3d9958['setSelection'](_0x318389);for(const _0x226040 of _0x52775e)_0x226040['detach']();});});for(const _0x5ebfd6 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x41303f=_0x255113['commands']['get'](_0x5ebfd6);_0x41303f['on']('set:isEnabled',(_0x2aea83,_0xdbca06,_0x1fb9cd)=>{if(_0x1fb9cd){const _0x686793=_0x255113['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4949a2=>_0x4949a2['is']('element','tableCell'));this['_areMergableCells'](_0x41303f['value'],_0x686793)||(_0x2aea83['return']=!0x1,_0x2aea83['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x50caab=this['editor']['commands']['get']('mergeTableCells'),_0x520387=this['editor']['plugins']['get']('TableUtils');if(!_0x50caab['isEnabled'])return!0x1;const _0x5e49dc=_0x520387['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x425991 of _0x5e49dc)for(const _0x54e2ec of _0x5e49dc)if(_0x425991!=_0x54e2ec&&!this['_areMergableCells'](_0x425991,_0x54e2ec))return!0x1;return!0x0;}['_areMergableCells'](_0x4cc384,_0x215f1b){const _0xdf732c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x93497c=this['editor']['model']['createRangeOn'](_0x4cc384),_0x3af439=this['editor']['model']['createRangeOn'](_0x215f1b),_0x108b78=new Set(),_0x22d877=new Set();for(const _0x5eb662 of _0xdf732c['getSuggestions']())if(('insertion'==_0x5eb662['type']||'deletion'==_0x5eb662['type']||'mergeTableCells'==_0x5eb662['subType'])&&_0x5eb662['isInContent']){for(const _0x13a3db of _0x5eb662['getRanges']())_0x13a3db['containsRange'](_0x93497c,!0x0)&&_0x108b78['add'](_0x5eb662['type']+':'+_0x5eb662['author']['id']),_0x13a3db['containsRange'](_0x3af439,!0x0)&&_0x22d877['add'](_0x5eb662['type']+':'+_0x5eb662['author']['id']);}if(_0x108b78['size']!=_0x22d877['size'])return!0x1;for(const _0x1728ed of _0x108b78)if(!_0x22d877['has'](_0x1728ed))return!0x1;return!0x0;}}class vt extends _0x20a8ee{static get['requires'](){return[_t];}['afterInit'](){const _0x1d4abb=this['editor'];if(!_0x1d4abb['plugins']['has']('TableEditing'))return;const _0x5aedfc=_0x1d4abb['locale'],_0x20e070=_0x1d4abb['plugins']['get']('TrackChangesEditing');_0x20e070['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x20e070['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x20e070['registerBlockAttribute']('headingRows'),_0x20e070['registerBlockAttribute']('headingColumns'),_0x20e070['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5aedfc,'FORMAT_HEADER_ROW')),_0x20e070['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5aedfc,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x183122=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e2ebc=this['editor']['plugins']['get']('TableUtils'),_0x527a9d=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x11713a({showActiveMarker:_0x357831=!0x0,setDataAttribute:_0x42dda2=!0x0}={}){return(_0x5c026e,_0x18f85e,_0x46fcca)=>{const {type:_0x31b973,id:_0x1994be}=_0x183122['_splitMarkerName'](_0x18f85e['markerName']),_0x253505=_0x183122['getSuggestion'](_0x1994be),_0xc86edd=_0x253505['data'];if('formatBlock'!=_0x253505['type']||!_0xc86edd||'setTableColumnHeader'!=_0xc86edd['commandName'])return;if(_0x18f85e['item'])return void _0x5c026e['stop']();if(!_0x46fcca['consumable']['consume'](_0x18f85e['markerRange'],_0x5c026e['name']))return;const _0x3e90ab=_0x18f85e['markerRange']['start']['nodeAfter'],_0x5a3a3f=_0x18f85e['markerRange']['end']['nodeBefore'],_0x3b64c3=_0x3e90ab['parent']['parent'],{column:_0x5bbf83}=_0x2e2ebc['getCellLocation'](_0x3e90ab),{column:_0x1c8c92}=_0x2e2ebc['getCellLocation'](_0x5a3a3f);for(let _0x19ddbb=_0x5bbf83;_0x19ddbb<=_0x1c8c92;_0x19ddbb++){const _0x17269b=_0x2e2ebc['createTableWalker'](_0x3b64c3,{'column':_0x19ddbb,'includeAllSlots':!0x1});for(const _0x4d390b of _0x17269b){const _0x1b12ca=_0x4d390b['cell'],_0x595364=_0x46fcca['mapper']['toViewElement'](_0x1b12ca);_0x46fcca['writer']['addClass']('ck-suggestion-marker-'+_0x31b973,_0x595364),_0x42dda2&&_0x46fcca['writer']['setAttribute']('data-suggestion',_0x1994be,_0x595364),_0x46fcca['mapper']['bindElementToMarker'](_0x595364,_0x18f85e['markerName']),_0x357831&&(_0x183122['activeMarkers']['includes'](_0x18f85e['markerName'])?_0x46fcca['writer']['addClass']('ck-suggestion-marker--active',_0x595364):_0x46fcca['writer']['removeClass']('ck-suggestion-marker--active',_0x595364));}}};}_0x183122['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x527a9d),_0x183122['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x527a9d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x11713a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x30b2b7,_0x2c7e97,_0x510fe1)=>{_0x510fe1['options']['showSuggestionHighlights']&&_0x11713a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x30b2b7,_0x2c7e97,_0x510fe1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x30022e,_0x2132e3,_0x2ef793)=>{const {type:_0x24bd39,id:_0x3ad80c}=_0x183122['_splitMarkerName'](_0x2132e3['markerName']),_0x5d5a7d=_0x183122['getSuggestion'](_0x3ad80c),_0x4f6ef9=_0x5d5a7d['data'];if('formatBlock'!=_0x5d5a7d['type']||!_0x4f6ef9||'setTableColumnHeader'!=_0x4f6ef9['commandName'])return;const _0x4a3eab=_0x2ef793['mapper']['markerNameToElements'](_0x2132e3['markerName']);if(_0x4a3eab){for(const _0x18e096 of _0x4a3eab)_0x2ef793['writer']['removeClass']('ck-suggestion-marker-'+_0x24bd39,_0x18e096),_0x2ef793['writer']['removeClass']('ck-suggestion-marker--active',_0x18e096),_0x2ef793['writer']['removeAttribute']('data-suggestion',_0x18e096),_0x2ef793['mapper']['unbindElementFromMarkerName'](_0x18e096,_0x2132e3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c04d9=this['editor'],_0x20505d=_0x1c04d9['locale'];function _0xca4d50(_0x53143d){return{'type':'format','content':o(_0x20505d,'*Format:*\x20%0',_0x53143d)};}_0x1c04d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49726e=>{if('formatBlock'!=_0x49726e['type'])return;const {data:_0x537ed2}=_0x49726e;if(_0x537ed2){if('setTableRowHeader'==_0x537ed2['commandName']){const _0x3dbadd=_0x537ed2['commandParams'][0x0]['forceValue'];return _0xca4d50(o(_0x20505d,_0x3dbadd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x537ed2['commandName']){const _0x5b5815=_0x537ed2['commandParams'][0x0]['forceValue'];return _0xca4d50(o(_0x20505d,_0x5b5815?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Nt extends _0x20a8ee{['afterInit'](){const _0x4c4aac=this['editor'],_0xb654bf=_0x4c4aac['locale'],_0x2a6027=_0x4c4aac['plugins']['get']('TrackChangesEditing');function _0x202704(_0x677e1){return{'type':'format','content':''+o(_0xb654bf,'*Set\x20table\x20type:*\x20%0',_0x677e1)};}_0x4c4aac['plugins']['has']('TableLayout')&&(_0x2a6027['enableCommand']('insertTableLayout'),_0x2a6027['enableDefaultAttributesIntegration']('tableType'),_0x2a6027['registerBlockAttribute']('tableType'),_0x2a6027['descriptionFactory']['registerElementLabel'](_0x400b19=>_0x400b19['is']('element','table')&&'layout'===_0x400b19['getAttribute']('tableType'),_0x58bbd7=>o(_0xb654bf,'ELEMENT_LAYOUT_TABLE',_0x58bbd7)),_0x2a6027['descriptionFactory']['registerDescriptionCallback'](_0x223f73=>{const {data:_0x1f876d}=_0x223f73;if(_0x1f876d&&'tableType'==_0x1f876d['key'])switch(_0x1f876d['newValue']){case'layout':return _0x202704(o(_0xb654bf,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x202704(o(_0xb654bf,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](xe['map'](_0x41790b=>[_0x41790b,null]));class Dt extends _0x20a8ee{static get['requires'](){return[_t];}['afterInit'](){const _0x3f6c98=this['editor'];if(!_0x3f6c98['plugins']['has']('TableClipboard'))return;const _0x389ce0=_0x3f6c98['plugins']['get']('TrackChangesEditing'),_0x7de508=_0x3f6c98['plugins']['get']('TableUtils'),_0x11ad75=_0x3f6c98['plugins']['get'](_t),_0x1406e8=_0x3f6c98['plugins']['get']('TableClipboard'),_0x261994=_0x3f6c98['plugins']['get']('TableSelection'),_0x3dab75=_0x3f6c98['plugins']['get'](_0x56d33c);_0x11ad75['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3f6c98['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3f6c98['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x48838e=null,_0x297a20=!0x1;_0x3dab75['on']('contentInsertion',(_0x586c14,_0x594c28)=>{_0x297a20='paste'===_0x594c28['method'];}),_0x3f6c98['model']['on']('insertContent',(_0x3f8b4f,_0x3321a1)=>{if(!_0x297a20&&null===_0x261994['getSelectedTableCells']())return;const [_0x4c6259,_0x237460]=_0x3321a1,_0x4af3c4=_0x3321a1[_0x3321a1['length']-0x1];_0x4af3c4&&_0x4af3c4['forceDefaultExecution']||_0x389ce0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4f27c2,_0xaf49ef,_0x2d4342,_0x2311de,_0x1a4519){if(_0xaf49ef&&!_0xaf49ef['is']('documentSelection'))return!0x1;const _0x59d9b0=_0x1a4519['getTableIfOnlyTableInContent'](_0x4f27c2,_0x2d4342);if(!_0x59d9b0||!De(_0x59d9b0,void 0x0,_0x2311de))return!0x1;const _0xec0ec1=_0x2311de['getSelectionAffectedTableCells'](_0x2d4342['document']['selection']);if(!_0xec0ec1['length'])return!0x1;const _0x3880cf=_0xec0ec1[0x0]['findAncestor']('table'),_0x53f143=_0x2311de['getRowIndexes'](_0xec0ec1),_0x392395=_0x2311de['getColumnIndexes'](_0xec0ec1),_0x84238={'startRow':_0x53f143['first'],'endRow':_0x53f143['last'],'startColumn':_0x392395['first'],'endColumn':_0x392395['last']};return 0x1==_0xec0ec1['length']&&(_0x84238['endRow']+=_0x2311de['getRows'](_0x59d9b0)-0x1,_0x84238['endColumn']+=_0x2311de['getColumns'](_0x59d9b0)-0x1),De(_0x3880cf,_0x84238,_0x2311de);}(_0x4c6259,_0x237460,_0x3f6c98['model'],_0x7de508,_0x1406e8)&&(_0x3f8b4f['stop'](),_0x48838e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3f6c98['model']['change'](()=>{_0x3f6c98['model']['insertContent'](_0x3321a1[0x0],_0x3321a1[0x1],_0x3321a1[0x2],{'forceDefaultExecution':!0x0});const _0x95adf2=_0x422f91(),{rowInsertionRanges:_0x1b234e,columnInsertionRanges:_0x4a92c1,insertionRanges:_0x11fa86,deletionRanges:_0x4f2cec,cells:_0x4e9965}=_0x48838e;_0x1b234e['length']&&_0x389ce0['markMultiRangeInsertion'](_0x1b234e,'tablePasteRow',{'tablePasteChainId':_0x95adf2}),_0x4a92c1['length']&&_0x389ce0['markMultiRangeInsertion'](_0x4a92c1,'tablePasteColumn',{'tablePasteChainId':_0x95adf2}),_0x11fa86['length']&&(_0x389ce0['markMultiRangeInsertion'](_0x11fa86,'tablePaste',{'tablePasteChainId':_0x95adf2,'skipNestingCheck':!0x0}),_0x11fa86['forEach'](_0x13d30e=>_0x13d30e['detach']?.())),_0x4f2cec['length']&&(_0x389ce0['markMultiRangeDeletion'](_0x4f2cec,'tablePaste',{'tablePasteChainId':_0x95adf2,'skipNestingCheck':!0x0}),_0x4f2cec['forEach'](_0x4e6ad4=>_0x4e6ad4['detach']?.()));const _0xf7cb20=_0x389ce0['markMultiRangeBlockFormat'](_0x4e9965['map'](({element:_0x211cd9})=>_0x211cd9),{'formatGroupId':_0x422f91()},[],'tablePasteCell',{'tablePasteChainId':_0x95adf2});if(_0xf7cb20){const _0x493bad=_0xf7cb20['getMarkers'](),_0x27eb6c=[];for(const {element:_0x4582e9,attributes:_0x4430ca}of _0x4e9965){if(!_0x4430ca)continue;const _0xa2bd11=_0x3f6c98['model']['createRangeOn'](_0x4582e9),_0x3d66c1=_0x493bad['find'](_0x42bbaa=>_0x42bbaa['getRange']()['isEqual'](_0xa2bd11));_0x3d66c1&&_0x27eb6c['push']([_0x3d66c1['name'],_0x4430ca]);}_0x27eb6c['length']&&_0xf7cb20['setAttribute']('markerAttributes',Object['fromEntries'](_0x27eb6c));}_0x48838e=null;}));},{'priority':_0x4315fd['high']+0xa}),_0x3dab75['on']('contentInsertion',()=>{_0x297a20=!0x1;},{'priority':'lowest'}),_0x3f6c98['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5b9300,_0x52cbb0)=>{const [_0x50cf2e,_0x46503b,,_0x17905b]=_0x52cbb0;if(!_0x48838e)return;_0x5b9300['stop']();const _0x179556=_0x50cf2e['cell'],_0x1bd153=_0x46503b,_0x4ebb36=Ue(_0x179556),_0x26eb8f=Ue(_0x1bd153);_0x5b9300['return']=_0x179556;let _0x435bdf=null,_0xad59ac=null;if(_0x26eb8f||_0x4ebb36){if(_0x4ebb36&&!_0x26eb8f){_0x17905b['remove'](_0x179556['getChild'](0x0));for(const _0x2bc1d5 of Array['from'](_0x1bd153['getChildren']()))_0x17905b['insert'](_0x2bc1d5,_0x179556,'end');const _0x1ced6c=_0x48838e['rowInsertionIndexes']['includes'](_0x50cf2e['row']),_0x507145=_0x48838e['columnInsertionIndexes']['includes'](_0x50cf2e['column']);_0x1ced6c||_0x507145||(_0x435bdf=_0x80ba14['fromRange'](_0x17905b['createRangeIn'](_0x179556)));}else _0x26eb8f&&!_0x4ebb36&&(_0xad59ac=_0x17905b['createRangeIn'](_0x179556));}else{const _0x510b5e=_0x17905b['createElement']('tableCellSuggestion'),_0x348067=_0x17905b['createElement']('tableCellSuggestion');_0x17905b['wrap'](_0x17905b['createRangeIn'](_0x179556),_0x348067),_0x17905b['insert'](_0x510b5e,_0x179556,0x0);for(const _0x36d73b of Array['from'](_0x1bd153['getChildren']()))_0x17905b['insert'](_0x36d73b,_0x510b5e,'end');_0x435bdf=_0x80ba14['fromRange'](_0x17905b['createRangeOn'](_0x510b5e)),_0xad59ac=_0x80ba14['fromRange'](_0x17905b['createRangeOn'](_0x348067));}const _0x333e88=Array['from'](_0x1bd153['getAttributes']())['filter'](([_0x50bea0])=>xe['includes'](_0x50bea0));_0x48838e['cells']['push']({'element':_0x179556,'attributes':_0x333e88['length']?Object['fromEntries'](_0x333e88):null}),_0x435bdf&&_0x48838e['insertionRanges']['push'](_0x435bdf),_0xad59ac&&_0x48838e['deletionRanges']['push'](_0xad59ac);},{'priority':'high'}),_0x7de508['on']('insertColumns',(_0x48955f,_0x170ba2)=>{const [_0x48ac44,_0x4b389a={}]=_0x170ba2;if(!_0x48838e)return;const _0x3ed38a=_0x4b389a['at']||0x0,_0x50ddc9=_0x4b389a['columns']||0x1;_0x48838e['columnInsertionIndexes']=new Array(_0x50ddc9)['fill'](_0x3ed38a)['map']((_0x35b96c,_0x140324)=>_0x35b96c+_0x140324);for(const {cell:_0x20294b}of _0x7de508['createTableWalker'](_0x48ac44,{'startColumn':_0x3ed38a,'endColumn':_0x3ed38a+_0x50ddc9-0x1}))_0x48838e['columnInsertionRanges']['push'](_0x3f6c98['model']['createRangeOn'](_0x20294b));},{'priority':'low'}),_0x7de508['on']('insertRows',(_0x731dab,_0x248224)=>{const [_0x1666ab,_0x2aec4c={}]=_0x248224;if(!_0x48838e)return;const _0x172e44=_0x2aec4c['at']||0x0,_0x145067=_0x2aec4c['rows']||0x1;_0x48838e['rowInsertionIndexes']=new Array(_0x145067)['fill'](_0x172e44)['map']((_0x45d631,_0x355916)=>_0x45d631+_0x355916);for(const {cell:_0x1f0206}of _0x7de508['createTableWalker'](_0x1666ab,{'startRow':_0x172e44,'endRow':_0x172e44+_0x145067-0x1}))_0x48838e['rowInsertionRanges']['push'](_0x3f6c98['model']['createRangeOn'](_0x1f0206));},{'priority':'low'}),_0x389ce0['descriptionFactory']['registerDescriptionCallback'](_0x39f1eb=>{if(_0x39f1eb['subType']&&_0x39f1eb['subType']['startsWith']('tablePaste'))return _0x39f1eb['previous']?{}:{'type':'insertion','content':o(_0x3f6c98['locale'],'*Replace\x20table\x20cells*')};});const _0x1be42c=()=>!0x1;for(const _0x4ca373 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x389ce0['_suggestionFactory']['registerCustomCallback']('insertion',_0x4ca373,'join',_0x1be42c),_0x389ce0['_suggestionFactory']['registerCustomCallback']('deletion',_0x4ca373,'join',_0x1be42c),_0x389ce0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ca373,'join',_0x1be42c);_0x389ce0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1be42c),_0x389ce0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x31ffb5,_0x4e67b1,_0x21dd89)=>{const _0x35457b=_0x31ffb5['map'](_0x4ce90d=>_0x4ce90d['getContainedElement']())['filter'](_0x378359=>_0x378359),_0x387ba7=new Map(_0x35457b['map'](_0x17e547=>[_0x17e547,null]));if(_0x48838e){for(const {element:_0x4e50bc,attributes:_0x35b31d}of _0x48838e['cells'])_0x35b31d&&_0x387ba7['set'](_0x4e50bc,_0x35b31d);}else{if(_0x21dd89&&_0x21dd89['markerAttributes'])for(const [_0x3a1692,_0x33c5ae]of Object['entries'](_0x21dd89['markerAttributes'])){const _0x49ea14=_0x3f6c98['model']['markers']['get'](_0x3a1692),_0x16a974=_0x49ea14?_0x49ea14['getRange']()['getContainedElement']():null;_0x16a974&&_0x387ba7['set'](_0x16a974,_0x33c5ae);}}_0x3f6c98['model']['change'](_0x289cea=>{for(const [_0x46106c,_0x48e53f]of _0x387ba7)_0x289cea['setAttributes']({...Oe,..._0x48e53f},_0x46106c);});});const _0x35b317=(_0x562686,_0x35b1c4)=>{_0x389ce0['_suggestionFactory']['registerCustomCallback'](_0x562686,'tablePaste',_0x35b1c4,(_0x4a5848,_0xb8c9da,_0x2b1ac0)=>{_0x3f6c98['model']['change'](_0x19799c=>{const _0x5ba795=[];for(const _0xf5d99c of _0x4a5848){const _0x57ea62=_0xf5d99c['start']['nodeAfter'];_0x57ea62['is']('element','tableCellSuggestion')&&_0x5ba795['push'](_0x57ea62);}_0x389ce0['_suggestionFactory']['getSuggestionCallback'](_0x562686,null,_0x35b1c4)(_0x4a5848,_0xb8c9da,_0x2b1ac0);for(const _0x281525 of _0x5ba795)'$graveyard'!=_0x281525['root']['rootName']&&_0x19799c['unwrap'](_0x281525);});});};_0x35b317('insertion','accept'),_0x35b317('insertion','discard'),_0x35b317('deletion','accept'),_0x35b317('deletion','discard'),_0x389ce0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xf43dfc=>{const _0x5d923f=_0xf43dfc['map'](_0x514e38=>_0x514e38['getContainedElement']()),_0x1328ca=_0x5d923f[0x0]['findAncestor']('table'),{minRow:_0x36d61a,maxRow:_0x7ff1f9}=_0x11ad75['_getCoordsForCells'](_0x5d923f);_0x7de508['removeRows'](_0x1328ca,{'at':_0x36d61a,'rows':_0x7ff1f9-_0x36d61a+0x1});}),_0x389ce0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x21e526=>{const _0x482ff8=_0x21e526['map'](_0xcb66c6=>_0xcb66c6['getContainedElement']()),_0x505667=_0x482ff8[0x0]['findAncestor']('table'),{minColumn:_0x255fb3,maxColumn:_0xf6173}=_0x11ad75['_getCoordsForCells'](_0x482ff8);_0x7de508['removeColumns'](_0x505667,{'at':_0x255fb3,'columns':_0xf6173-_0x255fb3+0x1});});const _0x38ef2a=(_0x20d147,_0x5b3185)=>{if(!_0x5b3185['subType']||!_0x5b3185['subType']['startsWith']('tablePaste'))return;const _0x196390=_0x5b3185['attributes']['tablePasteChainId'],_0x360122=_0x389ce0['getSuggestions']()['filter'](_0x319ae6=>_0x319ae6['isInContent']&&_0x319ae6['attributes']&&_0x319ae6['attributes']['tablePasteChainId']==_0x196390);_0x360122['length']&&_0x5b3185['getAllAdjacentSuggestions']()['length']!=_0x360122['length']&&_0x360122['reduce']((_0x528b0e,_0x1a22bc)=>(_0x528b0e['next']=_0x1a22bc,_0x1a22bc['previous']=_0x528b0e,_0x1a22bc));};function _0x3b2f69(_0x3e2644,_0xcff875=!0x0){const {id:_0x20df19,authorId:_0x276466}=_0x389ce0['_splitMarkerName'](_0x3e2644['markerName']),_0xdaa402=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5c7535=_0x389ce0['activeMarkers']['includes'](_0x3e2644['markerName']);return _0x5c7535&&_0xdaa402['push']('ck-suggestion-marker--active'),{'classes':_0xdaa402,'attributes':{'data-suggestion':_0x20df19,'data-author-id':_0x276466},'priority':_0x5c7535&&_0xcff875?0xbc2:0xbb8};}_0x389ce0['on']('suggestionLoaded',_0x38ef2a,{'priority':'high'}),_0x389ce0['on']('suggestionUnloaded',_0x38ef2a,{'priority':'high'}),_0x3f6c98['model']['document']['registerPostFixer'](()=>{let _0x17e757=!0x1;const _0x2a55ff=Array['from'](_0x3f6c98['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c1a11,data:_0x3bf182}of _0x2a55ff){const {group:_0x187a86,type:_0x3a61e6,id:_0x5eb198}=_0x389ce0['_splitMarkerName'](_0x2c1a11);if('suggestion'!=_0x187a86||'deletion'!=_0x3a61e6||_0x3bf182['oldRange'])continue;if(!_0x389ce0['hasSuggestion'](_0x5eb198))continue;const _0x463f93=_0x389ce0['getSuggestion'](_0x5eb198)['getRanges'](),_0x258495=_0x3f6c98['plugins']['get']('Users')['me'];for(const _0x29be0f of _0x389ce0['getSuggestions']()){if(!_0x29be0f['isInContent']||_0x29be0f['author']!=_0x258495)continue;if('formatBlock'!=_0x29be0f['type']||'tablePasteCell'!=_0x29be0f['subType'])continue;if(_0x29be0f['getRanges']()['every'](_0x2868f1=>_0x463f93['some'](_0x5390af=>_0x5390af['containsRange'](_0x2868f1,!0x0)))){for(const _0x21aaee of _0x29be0f['getAllAdjacentSuggestions']())_0x21aaee['isInContent']&&(_0x21aaee['discard'](),_0x17e757=!0x0);}}}return _0x17e757;}),_0x3f6c98['model']['document']['registerPostFixer'](_0x1352c6=>{const _0xe11793=_0x3f6c98['commands']['get']('redo');if(!_0xe11793||!_0xe11793['_createdBatches']['has'](_0x1352c6['batch']))return!0x1;let _0x59d69=!0x1;const _0x5124f9=_0x3f6c98['plugins']['get']('Users')['me'],_0x3df777=_0x3f6c98['model']['document']['differ']['getChanges'](),_0x4b44ef=Array['from'](_0x3f6c98['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4f4998,data:_0x1cc744})=>{const {group:_0x1f24b1,subType:_0x1797e3,authorId:_0x439898}=_0x389ce0['_splitMarkerName'](_0x4f4998);return'suggestion'==_0x1f24b1&&'tablePaste'==_0x1797e3&&_0x439898==_0x5124f9['id']&&!_0x1cc744['oldRange'];});for(const _0x37ee44 of _0x3df777){if('insert'!=_0x37ee44['type']||'tableCellSuggestion'!=_0x37ee44['name']||0x1!=_0x37ee44['length'])continue;const _0x3e53a9=_0x1352c6['createRange'](_0x37ee44['position'],_0x37ee44['position']['getShiftedBy'](0x1));if(!_0x4b44ef['find'](({data:_0x255715})=>_0x255715['newRange']['isEqual'](_0x3e53a9))){for(const {name:_0x3109fd,data:_0x1ca954}of _0x4b44ef)if(_0x3e53a9['containsRange'](_0x1ca954['newRange'])){_0x1352c6['updateMarker'](_0x3109fd,{'range':_0x3e53a9}),_0x59d69=!0x0;break;}}}return _0x59d69;}),_0x3f6c98['model']['document']['registerPostFixer'](_0x43eafa=>{let _0x475e35=!0x1;const _0x2ddf93=_0x3f6c98['plugins']['get']('Users')['me'],_0x2cfcbc=_0x389ce0['getSuggestions']()['filter'](_0x29a2eb=>_0x29a2eb['isInContent']&&_0x29a2eb['author']==_0x2ddf93),_0x2ffc23=new Set(),_0x34203f=new Set();for(const _0x347dde of _0x2cfcbc)if('tablePaste'==_0x347dde['subType'])for(const _0x441ac8 of _0x347dde['getMarkers']()){const _0x50745d=_0x441ac8['getRange']()['getContainedElement']();if(_0x50745d){if(_0x50745d['is']('element','tableCellSuggestion')&&Ue(_0x50745d)){_0x347dde['removeMarker'](_0x441ac8['name']),_0x2ffc23['add'](_0x50745d),_0x475e35=!0x0;const _0x5d41e9=_0x50745d['nextSibling'],_0x3684bf=_0x50745d['previousSibling'],_0x5c6061=_0x5d41e9&&_0x5d41e9['is']('element','tableCellSuggestion'),_0x72e9b7=_0x3684bf&&_0x3684bf['is']('element','tableCellSuggestion');_0x5c6061&&!_0x2ffc23['has'](_0x5d41e9)&&_0x34203f['add'](_0x5d41e9),_0x72e9b7&&!_0x2ffc23['has'](_0x3684bf)&&_0x34203f['add'](_0x3684bf);}else _0x50745d['is']('element','paragraph')&&_0x50745d['isEmpty']&&(_0x347dde['removeMarker'](_0x441ac8['name']),_0x475e35=!0x0);}}else{if('tablePasteCell'==_0x347dde['subType']){if(!_0x347dde['attributes']||!_0x347dde['attributes']['tablePasteChainId'])continue;const _0x532708=_0x347dde['attributes']['markerAttributes'];if(_0x532708&&Object['keys'](_0x532708)['length'])continue;const _0x385fdf=_0x347dde['attributes']['tablePasteChainId'];let _0x17053c=!0x0,_0x5dc975=!0x0;for(const _0x1c959b of _0x2cfcbc)if(_0x1c959b['subType']&&_0x1c959b['subType']['startsWith']('tablePaste')){if(!_0x1c959b['attributes']['tablePasteChainId']){_0x5dc975=!0x1;break;}if(_0x1c959b['id']!=_0x347dde['id']&&_0x1c959b['attributes']['tablePasteChainId']==_0x385fdf){_0x17053c=!0x1;break;}}_0x5dc975&&_0x17053c&&(_0x347dde['removeMarkers'](),_0x475e35=!0x0);}}for(const _0x3ceaa5 of _0x2ffc23)_0x43eafa['remove'](_0x3ceaa5);for(const _0x23e9ee of _0x34203f)_0x43eafa['unwrap'](_0x23e9ee);return _0x475e35;}),_0x3f6c98['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2cafff=>_0x3b2f69(_0x2cafff),'converterPriority':'high'}),_0x3f6c98['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x305141,_0x4adbbe)=>_0x4adbbe['options']['showSuggestionHighlights']?_0x3b2f69(_0x305141,!0x1):null,'converterPriority':'high'});const _0x8807e8=_0x3f6c98['editing']['view'];this['listenTo'](_0x8807e8['document'],'clipboardOutput',(_0x4a663b,_0x346d0e)=>{const _0x2591dd=[];for(const _0x446f8f of _0x8807e8['createRangeIn'](_0x346d0e['content'])['getItems']())_0x446f8f['is']('element','suggestion-td')&&_0x2591dd['push'](_0x446f8f);_0x8807e8['change'](_0x33145b=>{for(const _0x14b4c2 of _0x2591dd)_0x33145b['move'](_0x33145b['createRangeIn'](_0x14b4c2),_0x33145b['createPositionBefore'](_0x14b4c2)),_0x33145b['remove'](_0x14b4c2);});});}}function Ue(_0x2e7967){if(_0x2e7967['isEmpty'])return!0x0;const _0x5985c6=_0x2e7967['getChild'](0x0);return _0x5985c6['is']('element','paragraph')&&_0x5985c6['isEmpty'];}function De(_0x36b96c,_0x27e5bb={},_0x478ed6){for(const {isAnchor:_0x2742e8,cellHeight:_0x26869e,cellWidth:_0xfcc15}of _0x478ed6['createTableWalker'](_0x36b96c,{'includeAllSlots':!0x0,..._0x27e5bb}))if(!_0x2742e8||0x1!=_0x26869e||0x1!=_0xfcc15)return!0x1;return!0x0;}class Mt extends _0x20a8ee{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xedefd=this['editor']['plugins']['get']('TrackChangesEditing');_0xedefd['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xedefd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xedefd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xedefd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xedefd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xedefd['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x35f7c4,_0x87fc3b){const _0x5d9a1b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x405a91=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xd0d59c=_0x87fc3b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4ef5cf=_0x405a91['getColumnGroupElement'](_0xd0d59c);let _0x242075=_0x4ef5cf?_0x405a91['getTableColumnsWidths'](_0x4ef5cf):null,_0x25805c=_0xd0d59c['getAttribute']('tableWidth')||null;const _0x121baa=_0x87fc3b['tableWidth']||_0x25805c,_0x422e27=_0x87fc3b['columnWidths']||_0x242075,_0x5d319f=this['editor']['plugins']['get']('Users')['me'];for(const _0x293188 of _0x5d9a1b['getSuggestions']()){const _0x37aedd=_0x293188['getContainedElement']();if('resizeTable'===_0x293188['subType']&&_0x37aedd===_0xd0d59c){_0x293188['author']!==_0x5d319f&&_0x293188['discard']();const _0x14c460=_0x293188['data']['commandParams'];_0x25805c=_0x14c460[0x0]['tableWidth'],_0x242075=_0x14c460[0x0]['columnWidths'];break;}}_0x35f7c4({'table':_0xd0d59c,'tableWidth':_0x121baa,'columnWidths':_0x422e27}),_0x5d9a1b['markBlockFormat'](_0xd0d59c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x25805c,'columnWidths':_0x242075}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x12c9c3){if('formatBlock'!=_0x12c9c3['type']&&'formatInline'!=_0x12c9c3['type'])return;const {data:_0x47527c}=_0x12c9c3;if(_0x47527c&&'resizeTable'===_0x47527c['formatGroupId']){const _0x251032='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x251032)};}}}class $t extends _0x20a8ee{['afterInit'](){const _0x2226f3=this['editor'];_0x2226f3['plugins']['has']('Template')&&_0x2226f3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Bt extends _0x20a8ee{['afterInit'](){const _0x549a83=this['editor'];if(!_0x549a83['commands']['get']('insertTableOfContents'))return;_0x549a83['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x35314b=_0x549a83['plugins']['get']('TrackChangesEditing'),_0x40c4ef=_0x549a83['locale'];_0x35314b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x51cb17=>o(_0x40c4ef,'ELEMENT_TABLE_OF_CONTENTS',_0x51cb17));}}class Tt extends _0x20a8ee{['afterInit'](){const _0x31b73f=this['editor'];if(!_0x31b73f['plugins']['has']('Title'))return;const _0x532a9c=_0x31b73f['plugins']['get']('TrackChangesEditing');_0x532a9c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x31b73f['locale'],'ELEMENT_TITLE')),_0x31b73f['model']['document']['registerPostFixer'](_0x5dac95=>{let _0x374640=!0x1;const _0x55a4cc=Array['from'](_0x31b73f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56629f,data:_0x42264f}of _0x55a4cc){const {group:_0x5f15ef}=_0x532a9c['_splitMarkerName'](_0x56629f);if('suggestion'!==_0x5f15ef||!_0x42264f['newRange'])continue;const _0xc7c2b8=_0x42264f['newRange'],_0xbd72a=_0xc7c2b8['end']['nodeBefore'];if(!_0xbd72a||!_0xbd72a['is']('element','title-content'))continue;if(!_0xc7c2b8['start']['isTouching'](_0xc7c2b8['end']))continue;const _0x578bd1=_0x31b73f['model']['schema']['getNearestSelectionRange'](_0xc7c2b8['end'],'forward');if(_0x578bd1&&_0x578bd1['isCollapsed']){const _0x51a9d7=_0x5dac95['createRange'](_0xc7c2b8['start'],_0x578bd1['start']);_0x51a9d7['isEqual'](_0xc7c2b8)||(_0x5dac95['updateMarker'](_0x56629f,{'range':_0x51a9d7}),_0x374640=!0x0);}_0x374640||(_0x5dac95['removeMarker'](_0x56629f),_0x374640=!0x0);}return _0x374640;});}}class xt extends _0x20a8ee{['afterInit'](){const _0x6e77bf=this['editor'],_0x573fa3=_0x6e77bf['plugins']['get']('TrackChangesEditing');_0x6e77bf['plugins']['has']('Uploadcare')&&(_0x573fa3['enableCommand']('uploadcare'),_0x6e77bf['plugins']['has']('UploadcareImageEdit')&&(_0x573fa3['enableCommand']('uploadcareImageEdit'),_0x573fa3['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x573fa3['registerBlockAttribute']('uploadcareImageId'),_0x573fa3['descriptionFactory']['registerDescriptionCallback'](_0x18ee72=>{if('attribute'!=_0x18ee72['type'])return;const {data:_0x54a77c}=_0x18ee72;return _0x54a77c&&'uploadcareImageId'==_0x54a77c['key']?{'type':'format','content':''}:void 0x0;})));}}class Ot extends _0x20a8ee{['afterInit'](){const _0x2c9726=this['editor'],_0xbeeab7=_0x2c9726['plugins']['get']('TrackChangesEditing');_0x2c9726['plugins']['has']('UndoEditing')&&(_0xbeeab7['enableCommand']('undo'),_0xbeeab7['enableCommand']('redo'));}}class Rt extends _0x20a8ee{static get['requires'](){return[_t];}['afterInit'](){const _0x190d84=this['editor'];if(!_0x190d84['plugins']['has']('TableCaptionEditing'))return;_0x190d84['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x20a8ee{['tableProperties'];['tableCellProperties'];constructor(_0xc96acd){super(_0xc96acd),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 _0x18d509=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x456c78 of this['tableProperties'])_0x18d509['enableCommand'](_0x456c78,(_0xdbdbd8,_0x281aa6)=>{const _0x445fdc=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x456c78,[_0x445fdc],this['tableProperties'],'tableProperties',_0xdbdbd8,_0x281aa6);});_0x18d509['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x18d509['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x18d509['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4cf8fb,_0x2ad2fc)=>this['handleDiscardAction'](this['tableProperties'],_0x4cf8fb,_0x2ad2fc)),_0x18d509['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3bb578 of this['tableCellProperties'])_0x18d509['enableCommand'](_0x3bb578,(_0x9d0fd4,_0x1aa8db)=>{const _0x3a7723=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3bb578,_0x3a7723,this['tableCellProperties'],'tableCellProperties',_0x9d0fd4,_0x1aa8db);});_0x18d509['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x18d509['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x18d509['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x32f387,_0xb24d5e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x32f387,_0xb24d5e)),_0x18d509['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x18d509['descriptionFactory']['registerDescriptionCallback'](_0x486000=>this['handleSuggestionDescription'](_0x486000));}['_handlePropertyChange'](_0x3b93c3,_0x2cf44a,_0x1a7b9b,_0x50a3ec,_0x40ef0e,_0x38dc72){const _0x5e7b67=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x38dc72['batch'],()=>{for(const _0xc6c5f3 of _0x2cf44a){if(this['_getSuggestion'](_0xc6c5f3,_0x50a3ec))_0x40ef0e(_0x38dc72);else{const _0x4d8da0={};for(const _0x5100f0 of _0x1a7b9b){const _0x3e21e5=_0xc6c5f3['getAttribute'](_0x5100f0);void 0x0!==_0x3e21e5&&(_0x4d8da0[_0x5100f0]=_0x3e21e5);}_0x40ef0e(_0x38dc72),_0x5e7b67['markBlockFormat'](_0xc6c5f3,{'commandParams':[_0x4d8da0]},[],_0x50a3ec);}}});}['handleDiscardAction'](_0x70ca33,_0x88e3a6,_0x25a90b){const _0x590de5=_0x88e3a6[0x0]['start']['nodeAfter'],_0x31974a=_0x25a90b['commandParams'][0x0];this['editor']['model']['change'](_0x16f919=>{for(const _0x3b7162 of _0x70ca33)void 0x0!==_0x31974a[_0x3b7162]?_0x16f919['setAttribute'](_0x3b7162,_0x31974a[_0x3b7162],_0x590de5):_0x16f919['removeAttribute'](_0x3b7162,_0x590de5);});}['handleSuggestionDescription'](_0x39eac7){if(_0x39eac7['data'])switch(_0x39eac7['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'](_0x2f9bd1,_0x5dbca8){const _0x4407e7=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4203b9 of _0x4407e7['getSuggestions']({'skipNotAttached':!0x0})){const _0x1da7dc=_0x4203b9['getContainedElement']();if(_0x4203b9['subType']===_0x5dbca8&&_0x1da7dc===_0x2f9bd1)return _0x4203b9;}return null;}}const m='$elementName';class d extends _0x20a8ee{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x47b862,_0x3ffb44,R,E,U,V,F,L,G,J,K,H,W,Q,X,Y,Z,tt,it,nt,et,st,rt,ot,at,ct,ut,ht,gt,pt,ft,q,z,lt,dt,mt,kt,wt,bt,yt,St,jt,It,At,_t,Ct,vt,Nt,Rt,Dt,Mt,Bt,Et,$t,Tt,xt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x445e51){super(_0x445e51),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4d17cd,_0x2bc3f5,_0x156e4a,_0x19b3d3)=>{this['_model']['change'](()=>{for(const _0x4417e9 of[..._0x19b3d3,..._0x156e4a])this['_model']['markers']['has'](_0x4417e9)&&_0x445e51['editing']['reconvertMarker'](_0x4417e9);});}),this['descriptionFactory']=new O(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x445e51['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(),_0x445e51['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x445e51['config']['get']('trackChanges.trackFormatChanges'),_0x445e51['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x445e51['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new D(_0x445e51,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x24cd18=this['editor'],_0x2df539=(_0x3d9fad,_0x4a4e74)=>{if('attribute'!=_0x3d9fad)return'ck-suggestion-marker-'+_0x3d9fad;const _0x37e549=_0x4a4e74['split']('|')[0x0];return this['_isBlockAttribute'](_0x37e549)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x24cd18['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1c9499=>{const {id:_0x5dc9fb,authorId:_0x1013a0,type:_0x2b1b89,subType:_0x166223}=this['_splitMarkerName'](_0x1c9499['markerName']),_0x336cee=['ck-suggestion-marker',_0x2df539(_0x2b1b89,_0x166223)];let _0x4772c8=0xbb8;return this['activeMarkers']['includes'](_0x1c9499['markerName'])&&(_0x336cee['push']('ck-suggestion-marker--active'),_0x4772c8=0xbc2),'deletion'==_0x2b1b89&&(_0x4772c8+=0x5),{'classes':_0x336cee,'attributes':{'data-suggestion':_0x5dc9fb,'data-author-id':_0x1013a0},'priority':_0x4772c8};}}),_0x24cd18['conversion']['for']('dataDowncast')['add'](_0x204952=>{_0x204952['on']('addMarker:suggestion',(_0xa97cfa,_0x166c1d,_0x1803a3)=>{if(!_0x1803a3['options']['showSuggestionHighlights'])return;const _0x2061d9=_0x166c1d['item'];if(!_0x2061d9)return;const _0x2ecec7=_0x1803a3['mapper']['toViewElement'](_0x2061d9);_0x24cd18['model']['schema']['isObject'](_0x2061d9)&&_0x2ecec7&&!_0x2ecec7['getCustomProperty']('widget')&&_0x2ecec7['is']('containerElement')&&_0x153fc6(_0x2ecec7,_0x1803a3['writer']);},{'priority':'high'});}),_0x24cd18['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x48fd33,_0x262643)=>{if(!_0x262643['options']['showSuggestionHighlights'])return null;const {id:_0x4fa43b,authorId:_0x43227e,type:_0x47285d,subType:_0x517b2e}=this['_splitMarkerName'](_0x48fd33['markerName']);return{'classes':['ck-suggestion-marker',_0x2df539(_0x47285d,_0x517b2e)],'priority':0xbb8,'attributes':{'data-suggestion':_0x4fa43b,'data-author-id':_0x43227e}};}});const _0x2277dd=({showActiveMarkers:_0x4e8c3b=!0x0,isAttributeSuggestion:_0x267a8f=!0x1}={})=>(_0x224583,_0x39020b,_0x20eccc)=>{if(!_0x39020b['item'])return;const {id:_0x2395c0,authorId:_0x3f644f}=this['_splitMarkerName'](_0x39020b['markerName']);if(_0x267a8f){const _0x531d90=this['_suggestions']['get'](_0x2395c0),_0x2bb7ae=this['_getAttributeKey'](_0x531d90);if(!this['_isBlockAttribute'](_0x2bb7ae))return;}if(_0x39020b['item']['is']('selection'))return void _0x20eccc['consumable']['consume'](_0x39020b['item'],_0x224583['name']);const _0x4854c0=_0x20eccc['mapper']['toViewElement'](_0x39020b['item']);if(_0x39020b['item']['is']('element')&&_0x24cd18['model']['schema']['isBlock'](_0x39020b['item'])&&!_0x4854c0['getCustomProperty']('addHighlight')){_0x20eccc['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4854c0),_0x20eccc['writer']['setAttribute']('data-suggestion',_0x2395c0,_0x4854c0),_0x20eccc['writer']['setAttribute']('data-author-id',_0x3f644f,_0x4854c0),_0x20eccc['mapper']['bindElementToMarker'](_0x4854c0,_0x39020b['markerName']),_0x4e8c3b&&(this['activeMarkers']['includes'](_0x39020b['markerName'])?_0x20eccc['writer']['addClass']('ck-suggestion-marker--active',_0x4854c0):_0x20eccc['writer']['removeClass']('ck-suggestion-marker--active',_0x4854c0));for(const _0x3eaf28 of _0x24cd18['model']['createRangeIn'](_0x39020b['item'])['getItems']())_0x20eccc['consumable']['consume'](_0x3eaf28,_0x224583['name']);_0x20eccc['consumable']['consume'](_0x39020b['item'],_0x224583['name']);}};_0x24cd18['conversion']['for']('dataDowncast')['add'](_0x52bd8b=>{_0x52bd8b['on']('addMarker:suggestion:formatBlock',(_0x382a53,_0xcd4c7a,_0x390b2c)=>{_0x390b2c['options']['showSuggestionHighlights']&&_0x2277dd({'showActiveMarkers':!0x1})(_0x382a53,_0xcd4c7a,_0x390b2c);},{'priority':'highest'});}),_0x24cd18['conversion']['for']('dataDowncast')['add'](_0x4f4865=>{_0x4f4865['on']('addMarker:suggestion:attribute',(_0x247aab,_0x9f99d6,_0x20035d)=>{_0x20035d['options']['showSuggestionHighlights']&&_0x2277dd({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x247aab,_0x9f99d6,_0x20035d);},{'priority':'highest'});}),_0x24cd18['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3ccb48,_0x4169d9)=>{if(_0x4169d9['options']['showSuggestionHighlights']){const {id:_0x51ebe8,authorId:_0x5591ec}=this['_splitMarkerName'](_0x3ccb48);return _0x3ccb48['includes'](':split')||_0x3ccb48['includes'](':merge')?{'group':'suggestion','name':_0x3ccb48['substr'](0xb),'attributes':{'data-suggestion':_0x51ebe8,'data-author-id':_0x5591ec}}:null;}return{'group':'suggestion','name':_0x3ccb48['substr'](0xb)};}}),_0x24cd18['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x464324,{writer:_0x4d0d26})=>{let _0x2b544b='suggestion:'+_0x464324['getAttribute']('suggestion-type')+':'+_0x464324['getAttribute']('id');return _0x464324['getAttribute']('marker-count')&&(_0x2b544b+=':'+_0x464324['getAttribute']('marker-count')),_0x4d0d26['createElement']('$marker',{'data-name':_0x2b544b});}}),_0x24cd18['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x24cd18['conversion']['for']('editingDowncast')['add'](_0x26c222=>{_0x26c222['on']('addMarker:suggestion:formatBlock',_0x2277dd(),{'priority':'high'});}),_0x24cd18['conversion']['for']('editingDowncast')['add'](_0x173b78=>{_0x173b78['on']('addMarker:suggestion:attribute',_0x2277dd({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x24cd18['conversion']['for']('editingDowncast')['add'](_0x461b0b=>{_0x461b0b['on']('removeMarker:suggestion:formatBlock',(_0x28236a,_0x336e51,_0x1b7cc5)=>{const _0x4f6920=_0x1b7cc5['mapper']['markerNameToElements'](_0x336e51['markerName']);if(_0x4f6920){for(const _0x2a5546 of _0x4f6920)_0x2a5546['getCustomProperty']('addHighlight')||(_0x1b7cc5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2a5546),_0x1b7cc5['writer']['removeAttribute']('data-suggestion',_0x2a5546),_0x1b7cc5['writer']['removeAttribute']('data-author-id',_0x2a5546),_0x1b7cc5['mapper']['unbindElementFromMarkerName'](_0x2a5546,_0x336e51['markerName']));}},{'priority':'high'});}),_0x24cd18['conversion']['for']('editingDowncast')['add'](_0x2e31f3=>{_0x2e31f3['on']('removeMarker:suggestion:attribute',(_0x315788,_0x4330c5,_0x1eae9c)=>{const _0x55a71c=_0x1eae9c['mapper']['markerNameToElements'](_0x4330c5['markerName']);if(!_0x55a71c)return;const {id:_0x4785e1}=this['_splitMarkerName'](_0x4330c5['markerName']),_0x16c66b=this['_suggestions']['get'](_0x4785e1),_0x533c57=this['_getAttributeKey'](_0x16c66b);if(this['_isBlockAttribute'](_0x533c57)){for(const _0x5a967e of _0x55a71c)_0x5a967e['getCustomProperty']('addHighlight')||(_0x1eae9c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a967e),_0x1eae9c['writer']['removeAttribute']('data-suggestion',_0x5a967e),_0x1eae9c['writer']['removeAttribute']('data-author-id',_0x5a967e),_0x1eae9c['mapper']['unbindElementFromMarkerName'](_0x5a967e,_0x4330c5['markerName']));}},{'priority':'high'});}),_0x24cd18['model']['document']['registerPostFixer'](_0x8e58bb=>{let _0x112074=!0x1;const _0x545b71=Array['from'](_0x24cd18['model']['document']['differ']['getChangedMarkers']()),_0x5abd04=new Set();for(const {name:_0x29b454,data:_0x591bc9}of _0x545b71){const {group:_0xbce83e,type:_0x4f6547,subType:_0x588bc8,id:_0x49fe0d}=this['_splitMarkerName'](_0x29b454);if('suggestion'!==_0xbce83e)continue;const _0x5e1d0a=this['_suggestions']['get'](_0x49fe0d);if(null!=_0x591bc9['newRange']){'formatInline'==_0x4f6547&&(_0x112074=_0x112074||Gt(_0x591bc9['newRange'],_0x29b454,_0x8e58bb,_0x24cd18['model']['schema']));const _0x37a1b9='attribute'==_0x4f6547&&this['_isBlockAttribute'](_0x588bc8['split']('|')[0x0]);if(_0x591bc9['newRange']['isCollapsed']||'$graveyard'==_0x591bc9['newRange']['root']['rootName']||'formatBlock'==_0x4f6547&&!Jt(_0x591bc9['newRange'])||_0x37a1b9&&!Jt(_0x591bc9['newRange'])||'deletion'==_0x4f6547&&!(!Pt(_0x205717=_0x591bc9['newRange'])&&!function(_0x364c86){return _0x364c86['start']['parent']==_0x364c86['end']['nodeBefore']&&_0x364c86['start']['isAtEnd'];}(_0x205717)))_0x8e58bb['removeMarker'](_0x29b454),_0x112074=!0x0;else{if(!_0x5e1d0a||!_0x5e1d0a['isInContent'])continue;if(_0x591bc9['newRange']&&_0x591bc9['oldRange']&&_0x591bc9['newRange']['isEqual'](_0x591bc9['oldRange']))continue;_0x5abd04['add'](_0x5e1d0a);}}}var _0x205717;return _0x5abd04['size']>0x0&&(_0x112074=!!this['_joinWithAdjacentSuggestions'](_0x5abd04)||_0x112074),_0x112074;}),_0x24cd18['model']['document']['registerPostFixer'](_0x16acaf=>{let _0x3e5310=!0x1;for(const _0x178931 of _0x24cd18['model']['document']['differ']['getChanges']())if('insert'==_0x178931['type'])for(const _0x3e534e of this['_suggestions']['values']()){if(_0x3e534e['isMultiRange']||!_0x3e534e['isInContent'])continue;const _0x1ff2e5='formatBlock'==_0x3e534e['type'],_0x2cb74a=this['_getAttributeKey'](_0x3e534e),_0x2e5765=_0x2cb74a&&this['_isBlockAttribute'](_0x2cb74a);if(!_0x1ff2e5&&!_0x2e5765)continue;const _0x1b05b6=_0x3e534e['getFirstRange']();if(_0x1b05b6['start']['parent']!=_0x1b05b6['end']['parent']&&!_0x1b05b6['end']['isAtEnd']){const _0x268e54=_0x24cd18['model']['createPositionAt'](_0x1b05b6['start']['nodeAfter'],'end'),_0x51b696=_0x24cd18['model']['createRange'](_0x1b05b6['start'],_0x268e54);_0x16acaf['updateMarker'](_0x3e534e['getFirstMarker'](),{'range':_0x51b696}),_0x3e5310=!0x0;}}return _0x3e5310;}),_0x24cd18['model']['document']['registerPostFixer'](_0x4b38d4=>this['_processAttributeChanges'](_0x4b38d4)),_0x24cd18['model']['document']['registerPostFixer'](_0x19002f=>!_0x19002f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x19002f)),_0x24cd18['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x24cd18['model']['document']['on']('change:data',(_0x4a55ae,_0x3b8163)=>{if(!_0x3b8163['isLocal']||_0x3b8163['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x519358=_0x24cd18['model']['document']['differ']['getChanges']();if(0x0==_0x519358['length'])return;const _0x154f15=[],_0x359ba5=_0x519358['filter'](_0x4d1b3e=>'attribute'==_0x4d1b3e['type']),_0x4e4a91=_0x519358['filter'](_0x4cd55d=>'insert'==_0x4cd55d['type']&&'$text'!=_0x4cd55d['name']);for(const _0x8de696 of _0x359ba5)this['_isRegisteredAttribute'](_0x8de696['attributeKey'])&&_0x154f15['push']({'key':_0x8de696['attributeKey'],'newValue':_0x8de696['attributeNewValue'],'oldValue':_0x8de696['attributeOldValue'],'range':Kt(_0x8de696['range'],_0x24cd18['model'])});for(const _0x3ec6ae of _0x4e4a91){if('rename'!=_0x3ec6ae['action']&&'refresh'!=_0x3ec6ae['action'])continue;const _0x2e2dfb=Ht(_0x3ec6ae['position']['nodeAfter'],_0x24cd18['model']),_0x4bfa97=_0x3ec6ae['before'];'rename'==_0x3ec6ae['action']&&_0x154f15['push']({'key':m,'newValue':_0x3ec6ae['name'],'oldValue':_0x4bfa97['name'],'range':_0x2e2dfb});for(const [_0x2fd55c,_0x24ef93]of _0x4bfa97['attributes']){if(!this['_isRegisteredAttribute'](_0x2fd55c))continue;const _0x377fc5=_0x3ec6ae['attributes']['get'](_0x2fd55c);_0x24ef93!==_0x377fc5&&_0x154f15['push']({'key':_0x2fd55c,'newValue':_0x377fc5,'oldValue':_0x24ef93,'range':_0x2e2dfb});}for(const [_0x16400e,_0x599506]of _0x3ec6ae['attributes'])this['_isRegisteredAttribute'](_0x16400e)&&(_0x4bfa97['attributes']['has'](_0x16400e)||_0x154f15['push']({'key':_0x16400e,'newValue':_0x599506,'oldValue':null,'range':_0x2e2dfb}));}0x0!=_0x154f15['length']&&_0x24cd18['model']['enqueueChange'](_0x3b8163,_0x49b70d=>{const _0x1c5b7e=_0x422f91();for(const {range:_0x482ce0,key:_0xf991e5,oldValue:_0xcadb39,newValue:_0x204ed0}of _0x154f15)this['markAttributeChange'](_0x482ce0,_0xf991e5,_0xcadb39,_0x204ed0,{'groupId':_0x1c5b7e});this['_reduceExistingSuggestions'](_0x49b70d,_0x154f15);});},{'priority':'lowest'}),_0x24cd18['model']['markers']['on']('update:suggestion',(_0x3b499c,_0x2f9b52,_0x19426c)=>{if(null==_0x19426c){const {id:_0x4523c7}=this['_splitMarkerName'](_0x2f9b52['name']),_0x2c184b=this['_suggestions']['get'](_0x4523c7);_0x2c184b&&_0x2c184b['addMarkerName'](_0x2f9b52['name']);}}),_0x24cd18['model']['document']['on']('change:data',()=>{const _0xc1ccec=Array['from'](_0x24cd18['model']['document']['differ']['getChangedMarkers']())['filter'](_0x568466=>'suggestion'===this['_splitMarkerName'](_0x568466['name'])['group']);if(0x0===_0xc1ccec['length'])return;_0xc1ccec['sort']((_0xfd6b5e,_0x4775b8)=>{const _0x47d3b3=_0xfd6b5e['data']['oldRange'],_0x5c475e=_0x4775b8['data']['oldRange'];return null===_0x47d3b3&&null===_0x5c475e?0x0:null===_0x47d3b3&&null!==_0x5c475e?-0x1:null!==_0x47d3b3&&null===_0x5c475e?0x1:_0x47d3b3['start']['isBefore'](_0x5c475e['start'])?-0x1:0x1;});const _0x1f85c4=new Set(),_0x571e82=new Set();for(const {name:_0x3c009c,data:_0x7310bd}of _0xc1ccec){const {id:_0x39d6e0}=this['_splitMarkerName'](_0x3c009c);if(null===_0x7310bd['oldRange']){const _0x3982f1=this['_handleNewSuggestionMarker'](_0x3c009c);_0x571e82['add'](_0x3982f1);}else{const _0x28a10e=this['_suggestions']['get'](_0x39d6e0);null!==_0x7310bd['newRange']||_0x28a10e['isInContent']?(_0x1f85c4['add'](_0x28a10e['head']),_0x571e82['add'](_0x28a10e)):this['_removeSuggestion'](_0x28a10e);}}_0x571e82['size']>0x0&&this['_refreshSuggestionsChain'](_0x571e82);for(const _0x1932ca of _0x1f85c4)this['fire']('suggestionChanged',_0x1932ca);}),_0x24cd18['model']['on']('applyOperation',(_0x2c3fbc,_0x2bc92d)=>{const _0x1aba8b=_0x2bc92d[0x0];if(!this['_suggestions']['size'])return;if(!_0x1aba8b['isDocumentOperation'])return;if(_0x1aba8b['batch']['isUndo']||!_0x1aba8b['batch']['isLocal'])return;let _0x377936,_0x298b9a;switch(_0x1aba8b['type']){case'insert':_0x377936=_0x24cd18['model']['createPositionAt'](_0x1aba8b['position']),_0x298b9a=_0x377936['getShiftedBy'](_0x1aba8b['howMany']);break;case'split':_0x377936=_0x24cd18['model']['createPositionAt'](_0x1aba8b['splitPosition']),_0x298b9a=_0x24cd18['model']['createPositionAt'](_0x1aba8b['moveTargetPosition']);break;case'move':_0x377936=_0x24cd18['model']['createPositionAt'](_0x1aba8b['targetPosition']),_0x298b9a=_0x377936['getShiftedBy'](_0x1aba8b['howMany']);break;default:return;}const _0x8eed2f=_0x24cd18['model']['createRange'](_0x377936,_0x298b9a);_0x24cd18['model']['change'](()=>{for(const {suggestion:_0x58b97b,meta:_0x192adb}of this['_findSuggestions'](_0x8eed2f)){if(_0x58b97b['isMultiRange'])continue;if('formatInline'==_0x58b97b['type'])continue;const _0x447ec5=this['_getAttributeKey'](_0x58b97b);if(_0x447ec5&&this['_isBlockAttribute'](_0x447ec5)&&'split'!=_0x1aba8b['type'])continue;const _0x456089=_0x58b97b['data']&&_0x58b97b['data']['multipleBlocks'];('formatBlock'!=_0x58b97b['type']||'split'==_0x1aba8b['type']&&!_0x456089)&&(_0x192adb['containsRangeInObject']||'insertion'==_0x58b97b['type']&&_0x192adb['isOwn']||_0x58b97b['getFirstRange']()['containsRange'](_0x8eed2f)&&this['_breakSuggestionMarker'](_0x58b97b,_0x377936,_0x298b9a));}});},{'priority':'lowest'}),_0x24cd18['model']['on']('deleteContent',(_0x54034f,_0xc9b8d4)=>{const _0x2c4454=_0xc9b8d4[0x0],_0x51941c=_0xc9b8d4[0x1];if(_0x51941c&&_0x51941c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2c4454['isCollapsed'])return;const _0x3d87bd=_0x24cd18['model']['schema'],{start:_0xf211ba,end:_0x1df4b8}=_0x2c4454['getFirstRange'](),_0x16a4cb=_0xf211ba['nodeAfter']&&_0x3d87bd['isLimit'](_0xf211ba['nodeAfter'])?null:_0x3d87bd['getNearestSelectionRange'](_0xf211ba,'forward'),_0x3b1a1e=_0x1df4b8['nodeBefore']&&_0x3d87bd['isLimit'](_0x1df4b8['nodeBefore'])?null:_0x3d87bd['getNearestSelectionRange'](_0x1df4b8,'backward'),_0x4ce7d2=_0x24cd18['model']['createRange'](_0x16a4cb?_0x16a4cb['start']:_0xf211ba,_0x3b1a1e?_0x3b1a1e['end']:_0x1df4b8);_0x24cd18['model']['change'](_0x5956bd=>{this['markDeletion'](_0x4ce7d2);const _0x5427c9=_0x24cd18['model']['schema']['getNearestSelectionRange'](_0x4ce7d2['start']);_0x2c4454['is']('documentSelection')?_0x5956bd['setSelection'](_0x5427c9):_0x2c4454['setTo'](_0x5427c9);}),_0x54034f['stop']();},{'priority':_0x4315fd['normal']+0xa}),_0x24cd18['model']['on']('insertContent',(_0x4ed90e,_0x4f6959)=>{const _0xc5cc38=_0x4f6959[_0x4f6959['length']-0x1];_0xc5cc38&&_0xc5cc38['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x24cd18['model']['change'](()=>{let _0x47448b=_0x24cd18['model']['insertContent'](_0x4f6959[0x0],_0x4f6959[0x1],_0x4f6959[0x2],{'forceDefaultExecution':!0x0});if(!_0x47448b)return;_0x4ed90e['return']=_0x47448b['clone']();const _0x1123bf=_0x47448b['end']['nodeBefore'],_0xe824ac=_0x24cd18['model']['schema'];_0x1123bf&&_0xe824ac['isBlock'](_0x1123bf)&&!_0xe824ac['isObject'](_0x1123bf)&&(_0x47448b=_0x24cd18['model']['createRange'](_0x47448b['start'],_0x24cd18['model']['createPositionAt'](_0x1123bf,'end'))),this['markInsertion'](_0x47448b);}),_0x4ed90e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x11103a=new M(_0x24cd18,this['_suggestions']);_0x24cd18['commands']['add']('acceptSuggestion',_0x11103a),this['enableCommand']('acceptSuggestion');const _0xd124c1=new $(_0x24cd18,this['_suggestions']);_0x24cd18['commands']['add']('discardSuggestion',_0xd124c1),this['enableCommand']('discardSuggestion'),_0x24cd18['commands']['add']('acceptAllSuggestions',new B(_0x24cd18,_0x11103a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x24cd18['commands']['add']('discardAllSuggestions',new B(_0x24cd18,_0xd124c1,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x24cd18['commands']['add']('acceptSelectedSuggestions',new T(_0x24cd18,_0x11103a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x24cd18['commands']['add']('discardSelectedSuggestions',new T(_0x24cd18,_0xd124c1,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x307d8a=_0x24cd18['plugins']['get']('CommentsRepository');this['listenTo'](_0x307d8a,'addComment',(_0x54f508,{threadId:_0x401f1d})=>{const _0x4fda41=this['_suggestions']['get'](_0x401f1d);_0x4fda41&&_0x4fda41['commentThread']&&0x1===_0x4fda41['commentThread']['length']&&this['_updateSuggestionData'](_0x401f1d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x307d8a,'removeComment',(_0x32763d,{threadId:_0x22d205})=>{const _0x12aa96=this['_suggestions']['get'](_0x22d205);_0x12aa96&&_0x12aa96['commentThread']&&!_0x12aa96['commentThread']['length']&&this['_updateSuggestionData'](_0x22d205,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5ef3a6){const _0x195715=_0x6b7631([0x63,0x71,0x78,0x38,0x39,0x34,0x37,0x30,0x52,0x54,0x7a,0x72,0x58,0x35,0x45,0x57,0x53,0x68,0x33,0x6f,0x51,0x6c,0x77,0x4b,0x4a,0x76,0x56,0x32,0x6b,0x4d,0x66,0x43,0x4f,0x62,0x64,0x49,0x44,0x67,0x55,0x50,0x73,0x42,0x70,0x31,0x46,0x75,0x48,0x6d,0x79,0x41,0x4e,0x4c,0x47,0x36,0x6e,0x6a,0x65,0x59,0x74,0x61,0x5a,0x69]),_0x84d151=0x26f01faf,_0x3c94e3=0x26f775f7^_0x84d151,_0x50a8fe=window[_0x6b7631([0x44,0x61,0x74,0x65])][_0x6b7631([0x6e,0x6f,0x77])](),_0x27d7c4=_0x5ef3a6[_0x6b7631([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20f020=new window[(_0x6b7631([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe697d=>{_0x27d7c4[_0x6b7631([0x6f,0x6e,0x63,0x65])](_0x6b7631([0x72,0x65,0x61,0x64,0x79]),_0xe697d);}),_0x175adc={[_0x6b7631([0x6b,0x74,0x79])]:_0x6b7631([0x45,0x43]),[_0x6b7631([0x75,0x73,0x65])]:_0x6b7631([0x73,0x69,0x67]),[_0x6b7631([0x63,0x72,0x76])]:_0x6b7631([0x50,0x2d,0x32,0x35,0x36]),[_0x6b7631([0x78])]:_0x6b7631([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]),[_0x6b7631([0x79])]:_0x6b7631([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]),[_0x6b7631([0x61,0x6c,0x67])]:_0x6b7631([0x45,0x53,0x32,0x35,0x36])},_0x3830b2=_0x27d7c4[_0x6b7631([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x6b7631([0x67,0x65,0x74])](_0x6b7631([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5711a9(){let _0x1012c2,_0x5e19b2=null,_0x3328e1=null;try{if(_0x3830b2==_0x6b7631([0x47,0x50,0x4c]))return _0x6b7631([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1012c2=_0xb0b3ac(),!_0x1012c2)return _0x6b7631([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1012c2[_0x6b7631([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3328e1=_0x93ec22(_0x1012c2[_0x6b7631([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1012c2[_0x6b7631([0x6a,0x74,0x69])])),await _0x40d01c()?_0xce8122()?_0x30fb10()?_0x6b7631([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x735843()?(_0x1012c2[_0x6b7631([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6b7631([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e19b2=_0x14c3ef(_0x6b7631([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1012c2[_0x6b7631([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6b7631([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e19b2=_0x14c3ef(_0x6b7631([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x264b55()):_0x6b7631([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x6b7631([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x6b7631([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x6b7631([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x30fb10(){const _0x14b6dc=[_0x6b7631([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x6b7631([0x74,0x72,0x69,0x61,0x6c])][_0x6b7631([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1012c2[_0x6b7631([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x50a8fe/0x3e8:0xe10*_0x3c94e3;return _0x1012c2[_0x6b7631([0x65,0x78,0x70])]<_0x14b6dc;}function _0xce8122(){const _0x12c79f=_0x1012c2[_0x6b7631([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x12c79f)return!0x1;if(_0x12c79f[_0x6b7631([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6b7631([0x2a])))return!0x0;if(_0x12c79f[_0x6b7631([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6b7631([0x54,0x43])))return!0x0;if(_0x12c79f[_0x6b7631([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6b7631([0x52,0x54,0x43]))){if(_0x1e9758())return!0x0;if(_0x36db23()||_0x5a4d37())return!0x0;}return!0x1;}function _0x735843(){const _0x35b647=_0x1012c2[_0x6b7631([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35b647||0x0==_0x35b647[_0x6b7631([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37f82f}=new URL(window[_0x6b7631([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x35b647[_0x6b7631([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37f82f))return!0x0;const _0x56deb3=_0x37f82f[_0x6b7631([0x73,0x70,0x6c,0x69,0x74])](_0x6b7631([0x2e]));return _0x35b647[_0x6b7631([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e39c9=>_0x1e39c9[_0x6b7631([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6b7631([0x2a])))[_0x6b7631([0x6d,0x61,0x70])](_0x4be2f7=>_0x4be2f7[_0x6b7631([0x73,0x70,0x6c,0x69,0x74])](_0x6b7631([0x2e])))[_0x6b7631([0x73,0x6f,0x6d,0x65])](_0x17faf7=>_0x56deb3[_0x6b7631([0x65,0x76,0x65,0x72,0x79])]((_0x5e87a0,_0xd5e200)=>_0x17faf7[_0xd5e200]===_0x5e87a0||_0x17faf7[_0xd5e200]===_0x6b7631([0x2a])));}function _0x264b55(){return _0x5e19b2&&_0x3328e1?new window[(_0x6b7631([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38b283,_0x1a5bc6)=>{_0x5e19b2[_0x6b7631([0x74,0x68,0x65,0x6e])](_0x38b283,_0x1a5bc6),_0x3328e1[_0x6b7631([0x74,0x68,0x65,0x6e])](_0x19bea3=>{_0x19bea3!=_0x6b7631([0x56,0x61,0x6c,0x69,0x64])&&_0x38b283(_0x19bea3);},_0x1a5bc6);}):_0x5e19b2||_0x3328e1||_0x6b7631([0x56,0x61,0x6c,0x69,0x64]);}}function _0x93ec22(_0x1b8f75,_0x415891){return new window[(_0x6b7631([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ed143=>{if(_0x1a7e81())return _0x1ed143(_0x6b7631([0x56,0x61,0x6c,0x69,0x64]));_0x5bb09f(),_0x27d7c4[_0x6b7631([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x6b7631([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1aca4b=!0x1;const _0x39b80a=_0x422f91();function _0x5736b1(_0x19f9eb){return!!_0x19f9eb&&(typeof _0x19f9eb===_0x6b7631([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19f9eb===_0x6b7631([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19f9eb[_0x6b7631([0x74,0x68,0x65,0x6e])]===_0x6b7631([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19f9eb[_0x6b7631([0x63,0x61,0x74,0x63,0x68])]===_0x6b7631([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x835a7a(_0x110b87){_0x1af12c(_0x110b87)[_0x6b7631([0x74,0x68,0x65,0x6e])](_0xfaede7=>{if(!_0xfaede7||_0xfaede7[_0x6b7631([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x6b7631([0x6f,0x6b]))return _0x6b7631([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5cd936(_0x260c21(_0x39b80a+_0x415891))!=_0xfaede7[_0x6b7631([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x6b7631([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x6b7631([0x56,0x61,0x6c,0x69,0x64]);})[_0x6b7631([0x74,0x68,0x65,0x6e])](_0x3e1af8=>(_0x386f9f(),_0x3e1af8),()=>{const _0x47eb54=_0x78f04e();return null==_0x47eb54?(_0x386f9f(),_0x6b7631([0x56,0x61,0x6c,0x69,0x64])):_0x6b7631(_0x50a8fe-_0x47eb54>(0x2fc9baf^_0x84d151)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x6b7631([0x74,0x68,0x65,0x6e])](_0x1ed143)[_0x6b7631([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ed143(_0x6b7631([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x354c05=0x26c6f12f^_0x84d151;function _0x386f9f(){const _0x495a74=_0x6b7631([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cd936(_0x260c21(_0x1b8f75)),_0x674c7=_0x2482a2(_0x5cd936(window[_0x6b7631([0x4d,0x61,0x74,0x68])][_0x6b7631([0x63,0x65,0x69,0x6c])](_0x50a8fe/_0x354c05)));window[_0x6b7631([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6b7631([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x495a74,_0x674c7);}function _0x78f04e(){const _0x2fce76=_0x6b7631([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cd936(_0x260c21(_0x1b8f75)),_0x182af2=window[_0x6b7631([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6b7631([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fce76);return _0x182af2?window[_0x6b7631([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2482a2(_0x182af2),0x10)*_0x354c05:null;}function _0x1af12c(_0x43431f){return new window[(_0x6b7631([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21c9e5,_0x45d3d5)=>{_0x43431f[_0x6b7631([0x74,0x68,0x65,0x6e])](_0x21c9e5,_0x45d3d5),window[_0x6b7631([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x45d3d5,0x26f1cb6f^_0x84d151);});}}_0x27d7c4[_0x6b7631([0x6f,0x6e])](_0x6b7631([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x465252,_0x247abe)=>{if(_0x247abe[0x0]!=_0x1b8f75)return _0x1ed143(_0x6b7631([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x247abe[0x1]={..._0x247abe[0x1],[_0x6b7631([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x39b80a};},{[_0x6b7631([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6b7631([0x68,0x69,0x67,0x68])}),_0x27d7c4[_0x6b7631([0x6f,0x6e])](_0x6b7631([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5a9198=>{_0x5736b1(_0x5a9198[_0x6b7631([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1aca4b=!0x0,_0x835a7a(_0x5a9198[_0x6b7631([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x6b7631([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6b7631([0x6c,0x6f,0x77])}),_0x20f020[_0x6b7631([0x74,0x68,0x65,0x6e])](()=>{_0x1aca4b||_0x1ed143(_0x6b7631([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a7e81(){return _0x27d7c4[_0x6b7631([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6b7631([0x76,0x69,0x65,0x77])][_0x6b7631([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x6b7631([0x61,0x75,0x74,0x6f]);}function _0x5bb09f(){_0x27d7c4[_0x6b7631([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6b7631([0x76,0x69,0x65,0x77])][_0x6b7631([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6b7631([0x61,0x75,0x74,0x6f]);}}function _0x14c3ef(_0x7a0c37){const _0x271c1d=[new window[(_0x6b7631([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x309438=>setTimeout(_0x309438,0x26f92163^_0x84d151)),_0x20f020[_0x6b7631([0x74,0x68,0x65,0x6e])](()=>new window[(_0x6b7631([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cc383=>{let _0x29c838=0x0;_0x27d7c4[_0x6b7631([0x6d,0x6f,0x64,0x65,0x6c])][_0x6b7631([0x6f,0x6e])](_0x6b7631([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x68f32,_0x2ea1e3)=>{_0x2ea1e3[0x0][_0x6b7631([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29c838++,_0x29c838==(0x26f01e57^_0x84d151)&&(_0x4cc383(),_0x68f32[_0x6b7631([0x6f,0x66,0x66])]());});}))];return window[_0x6b7631([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6b7631([0x72,0x61,0x63,0x65])](_0x271c1d)[_0x6b7631([0x74,0x68,0x65,0x6e])](()=>_0x7a0c37);}async function _0x36e638(){await _0x20f020,_0x27d7c4[_0x6b7631([0x6d,0x6f,0x64,0x65,0x6c])][_0x6b7631([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xb4a253,_0x27d7c4[_0x6b7631([0x6d,0x6f,0x64,0x65,0x6c])][_0x6b7631([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xb4a253,_0x27d7c4[_0x6b7631([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x6b7631([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e9758(){return _0x5e24f7(_0x6b7631([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4808c7(_0x6b7631([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x6b7631([0x73,0x74,0x61,0x74,0x65])]==_0x6b7631([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x36db23(){return _0x5e24f7(_0x6b7631([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 _0x5a4d37(){return _0x5e24f7(_0x6b7631([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x402514(_0x1c7b29){const _0x21ece8=_0x59e4ed();_0x27d7c4[_0x21ece8]=_0x6b7631([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c7b29,_0x1c7b29!=_0x6b7631([0x56,0x61,0x6c,0x69,0x64])&&_0x36e638();}function _0x59e4ed(){const _0x7ba42b=window[_0x6b7631([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x6b7631([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x6b7631([0x6e,0x6f,0x77])]())[_0x6b7631([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x6b7631([0x2e]),'');let _0x5d80a8=_0x6b7631([0x63]);for(let _0x26e499=0x0;_0x26e499<_0x7ba42b[_0x6b7631([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26e499+=0x2){let _0x460819=window[_0x6b7631([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7ba42b[_0x6b7631([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26e499,_0x26e499+0x2));_0x460819>=_0x195715[_0x6b7631([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x460819-=_0x195715[_0x6b7631([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d80a8+=_0x195715[_0x460819];}return _0x5d80a8;}function _0xb0b3ac(){const _0x3ce746=_0x3830b2[_0x6b7631([0x73,0x70,0x6c,0x69,0x74])](_0x6b7631([0x2e]));if(0x3!=_0x3ce746[_0x6b7631([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f9a5d(_0x3ce746[0x1]);function _0x1f9a5d(_0xc8296d){const _0x117bca=_0x375f30(_0xc8296d);return _0x117bca&&_0x369db7()?_0x117bca:null;function _0x369db7(){const _0x5915b6=_0x117bca[_0x6b7631([0x6a,0x74,0x69])],_0x4e439d=window[_0x6b7631([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5915b6[_0x6b7631([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5915b6[_0x6b7631([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x385dfb={..._0x117bca,[_0x6b7631([0x6a,0x74,0x69])]:_0x5915b6[_0x6b7631([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5915b6[_0x6b7631([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x385dfb[_0x6b7631([0x76,0x63])],_0x260c21(_0x385dfb)==_0x4e439d;}}}async function _0x40d01c(){let _0x22b006=!0x0;try{const _0x533c41=_0x3830b2[_0x6b7631([0x73,0x70,0x6c,0x69,0x74])](_0x6b7631([0x2e])),[_0x1b6263,_0x3ca17f,_0x49a3b8]=_0x533c41;return _0x53d4a1(_0x1b6263),await _0x1659a9(_0x1b6263,_0x3ca17f,_0x49a3b8),_0x22b006;}catch{return!0x1;}function _0x53d4a1(_0x4d8cd6){const _0x2ac62f=_0x375f30(_0x4d8cd6);_0x2ac62f&&_0x2ac62f[_0x6b7631([0x61,0x6c,0x67])]==_0x6b7631([0x45,0x53,0x32,0x35,0x36])||(_0x22b006=!0x1);}async function _0x1659a9(_0x1fa619,_0xd704ff,_0x3a610b){const _0x302e5c=window[_0x6b7631([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x6b7631([0x66,0x72,0x6f,0x6d])](_0xb74a31(_0x3a610b),_0x4e96fa=>_0x4e96fa[_0x6b7631([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x254a62=new window[(_0x6b7631([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x6b7631([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1fa619+_0x6b7631([0x2e])+_0xd704ff),_0x3a7d65=window[_0x6b7631([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x6b7631([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a7d65)return;const _0x263ab8=await _0x3a7d65[_0x6b7631([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x6b7631([0x6a,0x77,0x6b]),_0x175adc,{[_0x6b7631([0x6e,0x61,0x6d,0x65])]:_0x6b7631([0x45,0x43,0x44,0x53,0x41]),[_0x6b7631([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x6b7631([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x6b7631([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a7d65[_0x6b7631([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x6b7631([0x6e,0x61,0x6d,0x65])]:_0x6b7631([0x45,0x43,0x44,0x53,0x41]),[_0x6b7631([0x68,0x61,0x73,0x68])]:{[_0x6b7631([0x6e,0x61,0x6d,0x65])]:_0x6b7631([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x263ab8,_0x302e5c,_0x254a62)||(_0x22b006=!0x1);}}function _0x375f30(_0xe7cc9c){return _0xe7cc9c[_0x6b7631([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x6b7631([0x65,0x79]))?JSON[_0x6b7631([0x70,0x61,0x72,0x73,0x65])](_0xb74a31(_0xe7cc9c)):null;}function _0xb74a31(_0x1bb077){return window[_0x6b7631([0x61,0x74,0x6f,0x62])](_0x1bb077[_0x6b7631([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x6b7631([0x2b]))[_0x6b7631([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x6b7631([0x2f])));}function _0x260c21(_0x3120bc){let _0xb4dbac=0x1505;function _0x2456b6(_0xafd7ad){for(let _0x40df15=0x0;_0x40df15<_0xafd7ad[_0x6b7631([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40df15++){const _0x92a661=_0xafd7ad[_0x6b7631([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40df15);_0xb4dbac=(_0xb4dbac<<0x5)+_0xb4dbac+_0x92a661,_0xb4dbac&=_0xb4dbac;}}function _0x28a707(_0x44cba4){Array[_0x6b7631([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x44cba4)?_0x44cba4[_0x6b7631([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28a707):_0x44cba4&&typeof _0x44cba4==_0x6b7631([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x6b7631([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x44cba4)[_0x6b7631([0x73,0x6f,0x72,0x74])]()[_0x6b7631([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x57ce2a,_0x397a24])=>{_0x2456b6(_0x57ce2a),_0x28a707(_0x397a24);}):_0x2456b6(window[_0x6b7631([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x44cba4));}return _0x28a707(_0x3120bc),_0xb4dbac>>>0x0;}function _0x5cd936(_0x8cb97b){return _0x8cb97b[_0x6b7631([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x6b7631([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x6b7631([0x30]));}function _0x2482a2(_0x3ec67f){return _0x3ec67f[_0x6b7631([0x73,0x70,0x6c,0x69,0x74])]('')[_0x6b7631([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x6b7631([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e24f7(_0xb2ac13){return _0x27d7c4[_0x6b7631([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x6b7631([0x68,0x61,0x73])](_0xb2ac13);}function _0x4808c7(_0x78329a){return _0x27d7c4[_0x6b7631([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x6b7631([0x67,0x65,0x74])](_0x78329a);}function _0xb4a253(){}function _0x6b7631(_0x364a0f){return _0x364a0f['map'](_0x1a6a08=>String['fromCharCode'](_0x1a6a08))['join']('');}_0x402514(await _0x5711a9());}(this);}set['adapter'](_0x4cc3d3){if(this['_adapter'])throw new _0x33db9e('track-changes-adapter-already-set',this);this['_adapter']=_0x4cc3d3;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3d29a3=!0x1,toJSON:_0x506f12=!0x1}={}){const _0x176a7f=[];for(const _0xca36ce of this['_suggestions']['values']())_0x3d29a3&&!_0xca36ce['isInContent']||_0x176a7f['push'](_0xca36ce);return _0x506f12?_0x176a7f['map'](_0x137e77=>_0x137e77['toJSON']()):_0x176a7f;}['getSuggestion'](_0x94b6b){const _0x228d6b=this['_suggestions']['get'](_0x94b6b);if(!_0x228d6b)throw new _0x33db9e('track-changes-suggestion-not-found',this);return _0x228d6b;}['hasSuggestion'](_0x4b3a46){return this['_suggestions']['has'](_0x4b3a46);}['addSuggestionData'](_0x2bea53){const {authorId:_0x3a9fe7,id:_0x585f81,originalSuggestionId:_0x4362b0,attributes:_0x495f09}=_0x2bea53,[_0x193f9b,_0x1310dc]=_0x2bea53['type']['split'](':'),_0x4471ca=this['_suggestions']['get'](_0x585f81)||this['_createSuggestion'](_0x193f9b,_0x1310dc,_0x585f81,_0x3a9fe7,_0x495f09,_0x4362b0);if(this['_addThreadToSuggestion'](_0x4471ca),this['_checkSuggestionCorrectness'](_0x4471ca,_0x193f9b,_0x1310dc||null,_0x3a9fe7),_0x4471ca['createdAt']=_0x2bea53['createdAt'],_0x4471ca['_isDataLoaded']=!0x0,_0x495f09&&_0x495f09['@external']){const _0x3be5e6=_0x495f09['@external'],_0x4e6959=this['_getExternalAuthor'](_0x3be5e6['authorName']);_0x4471ca['authoredAt']=_0x3be5e6['createdAt'],_0x4471ca['author']=_0x4e6959,_0x4471ca['isExternal']=!0x0;}else _0x4471ca['authoredAt']=_0x2bea53['createdAt'];switch(_0x2bea53['data']&&(_0x4471ca['data']=_0x2bea53['data']),_0x2bea53['attributes']&&(_0x4471ca['attributes']=_0x2bea53['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4471ca['_saved']=!0x0),this['_suggestionState']['get'](_0x4471ca)){case'notReady':this['_suggestionState']['set'](_0x4471ca,'dataReady');break;case'markerReady':_0x4471ca['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4471ca])),this['_refreshSuggestionsChain'](new Set([_0x4471ca])),this['_suggestionState']['set'](_0x4471ca,'ready'),this['fire']('suggestionLoaded',_0x4471ca)):this['_suggestionState']['set'](_0x4471ca,'removed');}return _0x4471ca;}['acceptSuggestion'](_0x25be7d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x7b98b8 of _0x25be7d['getAllAdjacentSuggestions']())_0x7b98b8['accept']();});});}['discardSuggestion'](_0x66e186){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x430fd8 of _0x66e186['getAllAdjacentSuggestions']())_0x430fd8['discard']();});});}['enableCommand'](_0x1dfbe9,_0x12b0ef){const _0x55eb5d=this['editor']['commands']['get'](_0x1dfbe9);if(!_0x55eb5d)throw new _0x33db9e('track-changes-command-not-found',this,{'commandName':_0x1dfbe9});if(this['_enabledCommands']['has'](_0x55eb5d))throw new _0x33db9e('track-changes-enable-command-twice',this,{'commandName':_0x1dfbe9});this['_enabledCommands']['add'](_0x55eb5d),_0x12b0ef&&_0x55eb5d['on']('execute',(_0x272e78,_0x1543eb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1543eb['length']>0x0&&_0x1543eb[_0x1543eb['length']-0x1]&&_0x1543eb[_0x1543eb['length']-0x1]['forceDefaultExecution']?_0x1543eb['pop']():(_0x272e78['return']=_0x12b0ef((..._0x3eee27)=>_0x55eb5d['execute'](..._0x3eee27,{'forceDefaultExecution':!0x0}),..._0x1543eb),_0x272e78['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5c697d){let _0x195552,_0x2162bf;const _0x1b3568=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x195552=_0x5c697d();}catch(_0x259fa3){_0x2162bf=_0x259fa3;}return _0x1b3568||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2162bf&&_0x33db9e['rethrowUnexpectedError'](_0x2162bf,this),_0x195552;}['markInsertion'](_0x20a253,_0x16b36d=null,_0x204eec={}){if(_0x20a253['isCollapsed'])return null;const _0x1ebcd8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x204eec['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x254664,meta:_0x1a4b2c}of this['_findSuggestions'](_0x20a253,'insertion'))if(_0x1a4b2c['isOwn']){if(!_0x1a4b2c['isNextTo']){if(_0x1a4b2c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Wt(_0x254664,_0x204eec))continue;return _0x254664;}if(Wt(_0x254664,_0x204eec))return _0x254664;this['_breakSuggestionMarker'](_0x254664,_0x20a253['start'],_0x20a253['end']);break;}if(_0x16b36d==_0x254664['subType']&&Wt(_0x254664,_0x204eec)){const _0x394753=_0x254664['getFirstRange']();return _0x394753['start']['isEqual'](_0x20a253['end'])?this['_setSuggestionRange'](_0x254664,this['_model']['createRange'](_0x20a253['start'],_0x394753['end'])):this['_setSuggestionRange'](_0x254664,this['_model']['createRange'](_0x394753['start'],_0x20a253['end'])),_0x254664;}}const _0x58f476=_0x422f91(),_0x5b9e9b=_0x1ebcd8['id'],_0x21ac99=_0x16b36d?'insertion:'+_0x16b36d:'insertion',_0x1f0bfa=this['_setSuggestionData']({'id':_0x58f476,'type':_0x21ac99,'createdAt':new Date(),'authorId':_0x5b9e9b,'attributes':_0x204eec});return this['_addSuggestionMarker'](_0x21ac99,_0x58f476,_0x5b9e9b,_0x20a253),_0x1f0bfa;}['markMultiRangeInsertion'](_0x3b23a7,_0x32cd03='multi',_0x207da4={}){const _0x9422f9=this['editor']['plugins']['get']('Users')['me'],_0x3cd00a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x32cd03,'join');this['_trackingSessionId']&&(_0x207da4['trackingSessionId']=this['_trackingSessionId']);for(const _0x1bb285 of this['getSuggestions']())if(_0x1bb285['author']['id']==_0x9422f9['id']&&'insertion'==_0x1bb285['type']&&_0x1bb285['subType']==_0x32cd03&&Wt(_0x1bb285,_0x207da4)&&(_0x3cd00a(_0x1bb285['getRanges'](),_0x3b23a7)||_0x3cd00a(_0x3b23a7,_0x1bb285['getRanges']()))){for(const _0x232c23 of _0x3b23a7)_0x1bb285['addRange'](_0x232c23);return _0x1bb285;}for(const {suggestion:_0x257f87,meta:_0x2619e7}of this['_findSuggestions'](_0x3b23a7,'insertion')){if(!_0x2619e7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2619e7['containsRangeInObject'])continue;if(!Wt(_0x257f87,_0x207da4))continue;let _0x4b9bc9=!0x0;for(const _0x3bc4ec of _0x257f87['getRanges']())for(const _0x5572ed of _0x3b23a7)if(!_0x3bc4ec['containsRange'](_0x5572ed)){_0x4b9bc9=!0x1;break;}if(_0x4b9bc9)return _0x257f87;}const _0x293772=_0x422f91(),_0x21441d=_0x9422f9['id'],_0x3d3e36='insertion:'+_0x32cd03,_0x5d683e=this['_setSuggestionData']({'id':_0x293772,'type':_0x3d3e36,'createdAt':new Date(),'authorId':_0x21441d,'attributes':_0x207da4});for(const _0x15f9ba of _0x3b23a7)this['_addSuggestionMarker'](_0x3d3e36,_0x293772,_0x21441d,_0x15f9ba,x['getMultiRangeId']());return _0x5d683e;}['markInlineFormat'](_0x2ce5b1,_0x17bdfc,_0x174354=null,_0x107e87={}){if(_0x174354=_0x174354||Lt(_0x17bdfc),_0x2ce5b1['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x107e87['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x14a954=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x174354,'accept');return this['forceDefaultExecution'](()=>_0x14a954([_0x2ce5b1],_0x17bdfc,_0x107e87)),null;}const _0x23d159=this['editor']['plugins']['get']('Users')['me'],_0x1422bc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x12cd70,meta:_0x287d45}of this['_findSuggestions'](_0x2ce5b1,'insertion'))_0x287d45['isOwn']&&!_0x287d45['isInsideObject']&&_0x1422bc['push'](..._0x12cd70['getRanges']());}const _0x4a0f9c=function(_0x2758b4,_0x406229){const _0x7081ff=[];for(const _0x7189f9 of _0x406229){const _0x516d71=_0x2758b4['getIntersection'](_0x7189f9);_0x516d71&&_0x7081ff['push'](_0x516d71);}return _0x7081ff;}(_0x2ce5b1,_0x1422bc),_0x2cb3b4=function(_0x305382,_0x5e5ab2){const _0xfdfef3=[_0x305382];for(const _0x5436bb of _0x5e5ab2){let _0x4ba89e=0x0;for(;_0x4ba89e<_0xfdfef3['length'];){const _0x328ffa=_0xfdfef3[_0x4ba89e]['getDifference'](_0x5436bb);_0xfdfef3['splice'](_0x4ba89e,0x1,..._0x328ffa),_0x4ba89e+=_0x328ffa['length'];}}return _0xfdfef3;}(_0x2ce5b1,_0x1422bc);_0x4a0f9c['length']&&this['_model']['change'](()=>{for(const _0x22f5a8 of _0x4a0f9c){const _0x57b137=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x174354,'accept');this['forceDefaultExecution'](()=>_0x57b137([_0x22f5a8],_0x17bdfc,_0x107e87));}});for(const _0x5ed1b1 of _0x2cb3b4){let _0x5c435e=null,_0x3d04a2=_0x5ed1b1['start'],_0x1d94f3=_0x5ed1b1['end'];for(const {suggestion:_0x226927,meta:_0xb2875d}of this['_findSuggestions'](_0x5ed1b1,'formatInline')){if(!_0xb2875d['isOwn'])continue;if(_0x226927['subType']!=_0x174354)continue;if(!Wt(_0x226927,_0x107e87))continue;const _0x3d3907=_0x226927['getFirstRange']();if(_0x3d3907['containsRange'](_0x5ed1b1,!0x0))return null;_0x3d04a2=_0x3d04a2['isBefore'](_0x3d3907['start'])?_0x3d04a2:_0x3d3907['start'],_0x1d94f3=_0x1d94f3['isAfter'](_0x3d3907['end'])?_0x1d94f3:_0x3d3907['end'],_0x5c435e?_0x3d3907['start']['isBefore'](_0x5c435e['getFirstRange']()['start'])?(_0x5c435e['removeMarkers'](),_0x5c435e=_0x226927):_0x226927['removeMarkers']():_0x5c435e=_0x226927;}const _0x3caddc=this['_model']['createRange'](_0x3d04a2,_0x1d94f3);if(_0x5c435e)this['_setSuggestionRange'](_0x5c435e,_0x3caddc);else{const _0xe5d974=_0x422f91(),_0x266114=_0x23d159['id'];this['_setSuggestionData']({'id':_0xe5d974,'type':'formatInline:'+_0x174354,'data':_0x17bdfc,'createdAt':new Date(),'authorId':_0x266114,'attributes':_0x107e87}),this['_addSuggestionMarker']('formatInline:'+_0x174354,_0xe5d974,_0x266114,_0x3caddc);}}return null;}['markBlockFormat'](_0x317b07,_0x2eadaf,_0x3ca417=[],_0x2da06e=null,_0x5c1329={}){_0x2eadaf['formatGroupId']||(_0x2eadaf['formatGroupId']=_0x2eadaf['commandName']),_0x2eadaf['multipleBlocks']=_0x317b07['is']('range'),_0x2da06e=_0x2da06e||Lt(_0x2eadaf);const _0x3a4d04=_0x3ca417['map'](_0x297f18=>Ht(_0x297f18,this['_model'])),_0x4f42a0=_0x317b07['is']('range')?_0x317b07:Ht(_0x317b07,this['_model']);if(this['_trackingSessionId']&&(_0x5c1329['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4bfb92=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2da06e,'accept');return this['forceDefaultExecution'](()=>_0x4bfb92([_0x4f42a0],_0x2eadaf,_0x5c1329)),null;}_0x3a4d04['push'](_0x4f42a0);let _0xf8a2e0=!0x0;for(const _0x576006 of _0x3a4d04)if(!this['_rangeIsInLocalUserInsertion'](_0x576006)){_0xf8a2e0=!0x1;break;}if(_0xf8a2e0&&'always'!==this['_trackFormatChanges']){const _0x1ba810=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2da06e,'accept');return this['forceDefaultExecution'](()=>_0x1ba810([_0x4f42a0],_0x2eadaf,_0x5c1329)),null;}let _0x68bbce=null,_0x3c99cb=_0x4f42a0['start'],_0x5cc867=_0x4f42a0['end'];for(const {suggestion:_0x4fa4d5,meta:_0x481d17}of this['_findSuggestions'](_0x4f42a0,'formatBlock')){if(!_0x481d17['isOwn'])continue;if(_0x481d17['isNextTo']||_0x481d17['containsRangeInObject']||_0x481d17['isInsideObject'])continue;if(_0x4fa4d5['data']['formatGroupId']!=_0x2eadaf['formatGroupId'])continue;if(!Wt(_0x4fa4d5,_0x5c1329))continue;const _0x2478be=_0x4fa4d5['getFirstRange']();if(_0x4fa4d5['subType']==_0x2da06e){if(_0x2478be['containsRange'](_0x4f42a0,!0x0))return null;_0x3c99cb=_0x3c99cb['isBefore'](_0x2478be['start'])?_0x3c99cb:_0x2478be['start'],_0x5cc867=_0x5cc867['isAfter'](_0x2478be['end'])?_0x5cc867:_0x2478be['end'],_0x68bbce?_0x2478be['start']['isBefore'](_0x68bbce['getFirstRange']()['start'])?(_0x68bbce['removeMarkers'](),_0x68bbce=_0x4fa4d5):_0x4fa4d5['removeMarkers']():_0x68bbce=_0x4fa4d5;}else{const _0x2de8dd=_0x4f42a0['getIntersection'](_0x2478be);this['_cutOutSuggestionMarker'](_0x4fa4d5,_0x2de8dd);}}const _0x1407e5=this['editor']['plugins']['get']('Users')['me'],_0x48b40c=_0x422f91(),_0x48168c=_0x1407e5['id'];if(_0x68bbce)return this['_setSuggestionRange'](_0x68bbce,this['_model']['createRange'](_0x3c99cb,_0x5cc867)),_0x68bbce;{const _0x4e4ffb=this['_setSuggestionData']({'id':_0x48b40c,'type':'formatBlock:'+_0x2da06e,'data':_0x2eadaf,'createdAt':new Date(),'authorId':_0x48168c,'attributes':_0x5c1329});return this['_addSuggestionMarker']('formatBlock:'+_0x2da06e,_0x48b40c,_0x48168c,this['_model']['createRange'](_0x3c99cb,_0x5cc867)),_0x4e4ffb;}}['markMultiRangeBlockFormat'](_0x1635fb,_0x1ffead,_0x4ca66=[],_0x48f74e=null,_0x5713d9={}){_0x1ffead['formatGroupId']||(_0x1ffead['formatGroupId']=_0x1ffead['commandName']);const _0x5df2df=_0x1635fb[0x0];_0x1ffead['multipleBlocks']=_0x5df2df['is']('range'),_0x48f74e=_0x48f74e||Lt(_0x1ffead);const _0x5bd1bd=_0x4ca66['map'](_0x475fb9=>Ht(_0x475fb9,this['_model'])),_0x12e169=_0x5df2df['is']('range')?_0x1635fb:_0x1635fb['map'](_0x20ad9f=>Ht(_0x20ad9f,this['_model']));if(this['_trackingSessionId']&&(_0x5713d9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x9a1c23=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48f74e,'accept');return this['forceDefaultExecution'](()=>_0x9a1c23(_0x12e169,_0x1ffead,_0x5713d9)),null;}_0x5bd1bd['push'](..._0x12e169);let _0x3fb755=!0x0;for(const _0x3fbc33 of _0x5bd1bd)if(!this['_rangeIsInLocalUserInsertion'](_0x3fbc33)){_0x3fb755=!0x1;break;}if(_0x3fb755&&'always'!==this['_trackFormatChanges']){const _0x5633b7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48f74e,'accept');return this['forceDefaultExecution'](()=>_0x5633b7(_0x12e169,_0x1ffead,_0x5713d9)),null;}const _0x3a7930=this['editor']['plugins']['get']('Users')['me'];for(const _0x372ecf of this['getSuggestions']()){if(_0x372ecf['author']['id']!=_0x3a7930['id'])continue;if('formatBlock'!=_0x372ecf['type']||_0x372ecf['data']['formatGroupId']!=_0x1ffead['formatGroupId'])continue;if(!Wt(_0x372ecf,_0x5713d9))continue;const _0x2d5d75=_0x372ecf['subType']==_0x48f74e;for(let _0x105a43=0x0;_0x105a43<_0x12e169['length'];_0x105a43++){const _0x3f0a4a=_0x12e169[_0x105a43];for(const _0x278d4b of _0x372ecf['getMarkers']()){const _0x2da1f8=_0x278d4b['getRange']();if(_0x3f0a4a['isEqual'](_0x2da1f8)){_0x2d5d75?(_0x12e169['splice'](_0x105a43,0x1),_0x105a43--):_0x372ecf['removeMarker'](_0x278d4b['name']);break;}}}}if(0x0==_0x12e169['length'])return null;const _0x4f05d0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48f74e,'join');for(const _0x56dde2 of this['getSuggestions']())if(_0x56dde2['author']['id']==_0x3a7930['id']&&'formatBlock'==_0x56dde2['type']&&_0x56dde2['data']['formatGroupId']==_0x1ffead['formatGroupId']&&_0x56dde2['subType']==_0x48f74e&&Wt(_0x56dde2,_0x5713d9)&&(_0x4f05d0(_0x56dde2['getRanges'](),_0x12e169)||_0x4f05d0(_0x12e169,_0x56dde2['getRanges']()))){for(const _0x35dfc6 of _0x12e169)_0x56dde2['addRange'](_0x35dfc6);return _0x56dde2;}const _0x4c8988=_0x422f91(),_0x4ad1b5=_0x3a7930['id'],_0x11ae04='formatBlock:'+_0x48f74e,_0x297bf7=this['_setSuggestionData']({'id':_0x4c8988,'type':_0x11ae04,'data':_0x1ffead,'createdAt':new Date(),'authorId':_0x4ad1b5,'attributes':_0x5713d9});for(const _0x3c72ce of _0x12e169)this['_addSuggestionMarker'](_0x11ae04,_0x4c8988,_0x4ad1b5,_0x3c72ce,x['getMultiRangeId']());return _0x297bf7;}['markDeletion'](_0x5cc265,_0x500eba=null,_0x16c402={}){if(_0x5cc265['isCollapsed'])return null;const _0x4a56ba=this['editor']['plugins']['get']('Users')['me'],_0x52aa0f=new _0x80ba14(_0x5cc265['start'],_0x5cc265['end']);this['_trackingSessionId']&&(_0x16c402['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x491b63,meta:_0x26a1fa}of this['_findSuggestions'](_0x52aa0f,'insertion'))if(_0x26a1fa['isOwn']&&!_0x26a1fa['isNextTo']){if(_0x491b63['isMultiRange']){const _0x7e5f7f=_0x491b63['getRanges']()['filter'](_0x4dd2fc=>'$graveyard'!=_0x4dd2fc['root']['rootName']);_0x7e5f7f['every'](_0x1d107f=>_0x52aa0f['containsRange'](_0x1d107f,!0x0))&&_0x491b63['discard']();if(_0x7e5f7f['some'](_0x56a5eb=>_0x56a5eb['containsRange'](_0x52aa0f,!0x0))){const _0x2574c9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x500eba,'accept');return this['forceDefaultExecution'](()=>_0x2574c9([_0x52aa0f],null,_0x16c402)),null;}}else{const _0x10b834=_0x52aa0f['getIntersection'](_0x491b63['getFirstRange']());null!==_0x10b834&&_0x491b63['_onDiscard']([_0x10b834],null,_0x16c402);}}if(_0x52aa0f['detach'](),_0x52aa0f['isCollapsed']||'$graveyard'==_0x52aa0f['root']['rootName'])return null;let _0x182526=null,_0x256821=_0x52aa0f['start'],_0x439c3f=_0x52aa0f['end'];const _0x1529c8=this['_findSuggestions'](_0x52aa0f,'deletion');for(const {suggestion:_0xaf3470,meta:_0x378e56}of _0x1529c8){const _0x1a4554=this['_model']['createRange'](_0x256821,_0x439c3f);if(_0x378e56['isOwn']&&(this['_mergeNestedSuggestions']||!_0x378e56['containsRangeInObject']&&!_0x378e56['isInsideObject'])){if(_0xaf3470['isMultiRange']){if(!Wt(_0xaf3470,_0x16c402))continue;let _0x31e13b=!0x0;for(const _0x305214 of _0xaf3470['getRanges']()){if(_0x305214['containsRange'](_0x1a4554,!0x0))return _0xaf3470;_0x1a4554['containsRange'](_0x305214)||(_0x31e13b=!0x1);}_0x31e13b&&_0xaf3470['discard']();}else{const _0x4c3529=_0xaf3470['getFirstRange']();if(_0x4c3529['containsRange'](_0x1a4554,!0x0))return _0xaf3470;if(!Wt(_0xaf3470,_0x16c402)){_0x1a4554['containsRange'](_0x4c3529)?_0xaf3470['removeMarkers']():_0x4c3529['containsPosition'](_0x256821)?_0x256821=_0x4c3529['end']:_0x4c3529['containsPosition'](_0x439c3f)&&(_0x439c3f=_0x4c3529['start']);continue;}_0x256821=_0x256821['isBefore'](_0x4c3529['start'])?_0x256821:_0x4c3529['start'],_0x439c3f=_0x439c3f['isAfter'](_0x4c3529['end'])?_0x439c3f:_0x4c3529['end'],_0x16c402=Object['assign']({},_0xaf3470['attributes']),_0x182526?_0x4c3529['start']['isBefore'](_0x182526['getFirstRange']()['start'])?(_0x182526['removeMarkers'](),_0x182526=_0xaf3470):_0xaf3470['removeMarkers']():_0x182526=_0xaf3470;}}}if(_0x182526)return this['_setSuggestionRange'](_0x182526,this['_model']['createRange'](_0x256821,_0x439c3f)),_0x182526;{const _0x2ca18c=_0x422f91(),_0x1c0cd8=this['_model']['createRange'](_0x256821,_0x439c3f),_0x41d8dd=_0x4a56ba['id'],_0x3b51a8=_0x500eba?'deletion:'+_0x500eba:'deletion',_0x15237c=this['_setSuggestionData']({'id':_0x2ca18c,'type':_0x3b51a8,'createdAt':new Date(),'authorId':_0x41d8dd,'attributes':_0x16c402});return this['_addSuggestionMarker'](_0x3b51a8,_0x2ca18c,_0x41d8dd,_0x1c0cd8),_0x15237c;}}['markMultiRangeDeletion'](_0x4efd4f,_0x12767d='multi',_0x496640={}){const _0xc08675=this['editor']['plugins']['get']('Users')['me'],_0x567d11=_0x4efd4f['map'](_0x5a3110=>new _0x80ba14(_0x5a3110['start'],_0x5a3110['end'])),_0x45b4f1=new Set();this['_trackingSessionId']&&(_0x496640['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5508e0,meta:_0x52515b}of this['_findSuggestions'](_0x567d11,'insertion'))_0x52515b['isOwn']&&!_0x52515b['isNextTo']&&_0x45b4f1['add'](_0x5508e0);for(const _0x440c00 of _0x45b4f1)if(_0x440c00['isMultiRange']){const _0x3d1ef9=_0x440c00['getRanges']();(!_0x440c00['attributes']||!_0x440c00['attributes']['skipNestingCheck'])&&(_0x3d1ef9['every'](_0x29181d=>_0x567d11['some'](_0x233913=>_0x233913['containsRange'](_0x29181d,!0x0)))&&_0x440c00['discard']());if(_0x567d11['every'](_0x1c8df7=>_0x3d1ef9['some'](_0x567b87=>_0x567b87['containsRange'](_0x1c8df7,!0x0)))){const _0x33bb77=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12767d,'accept');return this['forceDefaultExecution'](()=>_0x33bb77(_0x4efd4f,null,_0x496640)),null;}}else{const _0x241cd3=_0x440c00['getFirstRange']();_0x567d11['some'](_0x46eae7=>_0x46eae7['containsRange'](_0x241cd3,!0x0))&&_0x440c00['discard']();if(_0x567d11['every'](_0x11414e=>_0x241cd3['containsRange'](_0x11414e,!0x0))){const _0x5b8e42=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12767d,'accept');return this['forceDefaultExecution'](()=>_0x5b8e42(_0x567d11,null,_0x496640)),null;}}const _0x23f789=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12767d,'join');let _0x5a4bae=null;for(const _0x1fafc8 of this['getSuggestions']())if(_0x1fafc8['author']['id']==_0xc08675['id']&&_0x1fafc8['isInContent']&&'deletion'==_0x1fafc8['type']&&_0x1fafc8['subType']==_0x12767d&&Wt(_0x1fafc8,_0x496640)&&(_0x23f789(_0x1fafc8['getRanges'](),_0x567d11)||_0x23f789(_0x567d11,_0x1fafc8['getRanges']()))){if(_0x5a4bae){if(_0x1fafc8['commentThread']&&_0x1fafc8['commentThread']['length'])continue;for(const _0xe8aac1 of _0x1fafc8['getRanges']())_0x5a4bae['isIntersectingWithRange'](_0xe8aac1)||_0x5a4bae['addRange'](_0xe8aac1);_0x1fafc8['removeMarkers']();}else{_0x5a4bae=_0x1fafc8;for(const _0x3e8c4f of _0x567d11)_0x1fafc8['isIntersectingWithRange'](_0x3e8c4f)||_0x1fafc8['addRange'](_0x3e8c4f);}}if(_0x5a4bae)return _0x5a4bae;_0x45b4f1['clear']();for(const {suggestion:_0x5ce444,meta:_0x36c50d}of this['_findSuggestions'](_0x567d11,'deletion'))_0x36c50d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x36c50d['containsRangeInObject']&&!_0x36c50d['isInsideObject'])&&Wt(_0x5ce444,_0x496640)&&_0x45b4f1['add'](_0x5ce444);for(const _0x5bfb00 of _0x45b4f1){const _0xd3a6f5=_0x5bfb00['getRanges']();if(!_0x496640||!_0x496640['skipNestingCheck']){if(_0x567d11['every'](_0x5c496f=>_0xd3a6f5['some'](_0x5502a8=>_0x5502a8['containsRange'](_0x5c496f,!0x0))))return _0x5bfb00;}(!_0x5bfb00['attributes']||!_0x5bfb00['attributes']['skipNestingCheck'])&&(_0xd3a6f5['every'](_0x40cf26=>_0x567d11['some'](_0x27fe4f=>_0x27fe4f['containsRange'](_0x40cf26,!0x0)))&&_0x5bfb00['discard']());}const _0x1c55af=_0x422f91(),_0x24eb53=_0xc08675['id'],_0x1b4400='deletion:'+_0x12767d,_0x341ab3=this['_setSuggestionData']({'id':_0x1c55af,'type':_0x1b4400,'createdAt':new Date(),'authorId':_0x24eb53,'attributes':_0x496640});for(const _0x4014a1 of _0x567d11)_0x4014a1['detach'](),_0x4014a1['isCollapsed']||'$graveyard'==_0x4014a1['root']['rootName']||this['_addSuggestionMarker'](_0x1b4400,_0x1c55af,_0x24eb53,_0x4014a1,x['getMultiRangeId']());return _0x341ab3;}['markAttributeChange'](_0x1b4b74,_0x227d2b,_0x55c8da,_0x34fb3c,_0x41e9c0){if(_0x1b4b74['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x52cf94=this['editor']['plugins']['get']('Users')['me']['id'],_0x240f4b=Array['from'](this['_suggestions']['values']())['filter'](_0x739846=>'attribute'==_0x739846['type']&&_0x739846['data']['key']==_0x227d2b&&_0x739846['isIntersectingWithRange'](_0x1b4b74));if(this['_trackingSessionId']&&(_0x41e9c0['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x48319b=this['_findSuggestions'](_0x1b4b74,'insertion')['filter'](({meta:_0x845c51})=>_0x845c51['isOwn']&&!_0x845c51['isInsideObject']&&!_0x845c51['isNextTo'])['map'](({suggestion:_0x1ca09c})=>_0x1ca09c);_0x240f4b['unshift'](..._0x48319b);}const _0x54b2a7=new Map([[_0x1b4b74,_0x55c8da]]);for(const _0x10ef5e of _0x240f4b){const _0x234e4e='attribute'==_0x10ef5e['type']?_0x10ef5e['data']['oldValue']:void 0x0,_0x1afc16=_0x10ef5e['getFirstRange'](),_0x1fb746=Array['from'](_0x54b2a7['keys']())['find'](_0x21e3f7=>_0x21e3f7['isIntersecting'](_0x1afc16));if(!_0x1fb746)continue;const _0x1a0aae=_0x1fb746['getDifference'](_0x1afc16);this['_isBlockAttribute'](_0x227d2b)&&'insertion'==_0x10ef5e['type']&&0x0!=_0x1a0aae['length']||(_0x54b2a7['delete'](_0x1fb746),_0x1a0aae['forEach'](_0x4ab133=>{_0x54b2a7['set'](_0x4ab133,_0x55c8da);}),'insertion'!=_0x10ef5e['type']&&_0x234e4e!=_0x34fb3c&&_0x54b2a7['set'](_0x1fb746['getIntersection'](_0x1afc16),_0x234e4e));}const _0x147af2=[];for(const [_0x3f141e,_0x3bff26]of _0x54b2a7){const _0x451eb5=_0x422f91(),_0x1a045c={'key':_0x227d2b,'oldValue':_0x3bff26,'newValue':_0x34fb3c};_0x227d2b['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':_0x227d2b});const _0x56b0eb=('attribute:'+(_0x227d2b+'|'+Lt({'newValue':_0x34fb3c})))['substring'](0x0,0x3c),_0x377601=this['_setSuggestionData']({'id':_0x451eb5,'type':_0x56b0eb,'data':_0x1a045c,'createdAt':new Date(),'authorId':_0x52cf94,'attributes':_0x41e9c0});_0x147af2['push'](_0x377601),this['_addSuggestionMarker'](_0x56b0eb,_0x451eb5,_0x52cf94,_0x3f141e);}return _0x147af2;}['enableDefaultAttributesIntegration'](_0xc464bb){this['enableCommand'](_0xc464bb,(_0x1f5ab6,..._0x34cc6a)=>{this['_recordAttributeChanges'](()=>{_0x1f5ab6(..._0x34cc6a);});});}['registerBlockAttribute'](_0x6c04fc){this['_blockAttributeKeys']['add'](_0x6c04fc);}['registerInlineAttribute'](_0x537c05){this['_inlineAttributeKeys']['add'](_0x537c05);}['startTrackingSession'](_0x2e0318){return this['_trackingSessionId']=void 0x0!==_0x2e0318?_0x2e0318:_0x422f91(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5578a1){return'attribute'==_0x5578a1['type']?_0x5578a1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x326419,_0x5280d8){const _0x5be82f=_0x326419['getFirstMarker']();this['_model']['change'](_0x2d9762=>{_0x2d9762['updateMarker'](_0x5be82f,{'range':_0x5280d8});});}['_addThreadToSuggestion'](_0x378ee3){const _0x367590=_0x378ee3['id'],_0x4a665a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x367590)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4a665a,'threadId':_0x367590,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x48e9de=this['_commentsRepository']['getCommentThread'](_0x367590);_0x48e9de['unbind']('isRemovable'),_0x48e9de['isRemovable']=!0x1,_0x378ee3['commentThread']=_0x48e9de;}['_checkSuggestionCorrectness'](_0x5e95fe,_0x24e176,_0x18bfce,_0x104d1e){if(_0x5e95fe['type']!=_0x24e176||_0x5e95fe['subType']!=_0x18bfce||_0x5e95fe['creator']['id']!=_0x104d1e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x33db9e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x38712e,_0x57e6b3){const _0x556822=_0x38712e['getFirstRange']();if(_0x57e6b3['isEqual'](_0x556822))_0x38712e['removeMarkers']();else{if(_0x556822['containsRange'](_0x57e6b3)){const _0x5e7150=this['_model']['createPositionAt'](_0x57e6b3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x38712e,this['_model']['createRange'](_0x556822['start'],_0x5e7150));const _0x4f649d=_0x422f91(),_0x17b29d=_0x38712e['creator']['id'],_0x24bfc1=_0x38712e['type']+':'+_0x38712e['subType'];this['_setSuggestionData']({'id':_0x4f649d,'type':_0x24bfc1,'createdAt':new Date(),'authorId':_0x17b29d,'data':_0x38712e['data'],'attributes':_0x38712e['attributes']});const _0x3d616b=this['_model']['createPositionAt'](_0x57e6b3['end']['parent'],'after'),_0x1adc5d=this['_model']['createRange'](_0x3d616b,_0x556822['end']);this['_addSuggestionMarker'](_0x24bfc1,_0x4f649d,_0x17b29d,_0x1adc5d);}else{if(_0x556822['containsPosition'](_0x57e6b3['start'])){const _0x566376=this['_model']['createPositionAt'](_0x57e6b3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x38712e,this['_model']['createRange'](_0x556822['start'],_0x566376));}else{const _0x5adba8=this['_model']['createPositionAt'](_0x57e6b3['end']['parent'],'after');this['_setSuggestionRange'](_0x38712e,this['_model']['createRange'](_0x5adba8,_0x556822['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x31d35d){for(const {suggestion:_0x50c520,meta:_0x3d9c69}of this['_findSuggestions'](_0x31d35d,'insertion')){if(!_0x3d9c69['isOwn'])continue;const _0x229d32=_0x50c520['getRanges']();for(const _0x13e718 of _0x229d32)if(!_0x31d35d['getDifference'](_0x13e718)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x47d08){const _0x18b12a=this['editor']['plugins']['get']('Users')['getUser'](_0x47d08);if(!_0x18b12a)throw new _0x33db9e('track-changes-user-not-found',this);return _0x18b12a;}['_getExternalAuthor'](_0x343380){const _0x9c6fea=this['editor']['plugins']['get']('Users'),_0x55a5cd=_0x482ee0('external:'+_0x343380),_0xbb79bb=_0x9c6fea['getUser'](_0x55a5cd);return _0xbb79bb||_0x9c6fea['addUser']({'id':_0x55a5cd,'name':_0x343380});}['_createSuggestion'](_0x34c540,_0xdcf0ee,_0x4bad7b,_0x53a949,_0x10140b,_0x25c2aa){const _0x48379a=this['_getAuthorFromId'](_0x53a949),_0x462cfa=this['_suggestionFactory']['buildSuggestion'](_0x34c540,_0xdcf0ee,_0x4bad7b,_0x48379a,_0x10140b,_0x407e59=>{this['_updateSuggestionData'](_0x4bad7b,{'attributes':_0x407e59});const _0x57ab3d=this['getSuggestion'](_0x4bad7b);this['_joinWithAdjacentSuggestions'](new Set([_0x57ab3d])),this['_refreshSuggestionsChain'](new Set([_0x57ab3d]));},_0x25c2aa);return this['listenTo'](_0x462cfa,'accept',()=>{this['_updateSuggestionData'](_0x4bad7b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x462cfa,'discard',()=>{this['_updateSuggestionData'](_0x4bad7b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4bad7b,_0x462cfa),this['_suggestionState']['set'](_0x462cfa,'notReady'),_0x462cfa;}['_splitMarkerName'](_0x3cb951){const _0x3267fb=_0x3cb951['split'](':');return{'group':_0x3267fb[0x0],'type':_0x3267fb[0x1],'subType':_0x3267fb['length']>=0x5?_0x3267fb[0x2]:null,'id':_0x3267fb['length']<0x5?_0x3267fb[0x2]:_0x3267fb[0x3],'authorId':_0x3267fb['length']<0x5?_0x3267fb[0x3]:_0x3267fb[0x4],'markerCount':0x6==_0x3267fb['length']?_0x3267fb[0x5]:null};}['_breakSuggestionMarker'](_0x54c8de,_0x5a4415,_0x37be68){const _0x494f63=_0x54c8de['getFirstRange'](),_0x2d1c84=_0x494f63['start'],_0x3153c6=_0x494f63['end'];this['_setSuggestionRange'](_0x54c8de,this['_model']['createRange'](_0x2d1c84,_0x5a4415));const _0x112fcc=_0x422f91(),_0xe519d9=_0x54c8de['creator']['id'],_0x5e8f54=_0x54c8de['type']+(_0x54c8de['subType']?':'+_0x54c8de['subType']:'');this['_setSuggestionData']({'id':_0x112fcc,'type':_0x5e8f54,'createdAt':new Date(),'authorId':_0xe519d9,'originalSuggestionId':_0x54c8de['_originalSuggestionId']||_0x54c8de['id'],'attributes':_0x54c8de['attributes'],'data':_0x54c8de['data']});const _0x4d8f14=this['_getAttributeKey'](_0x54c8de);('formatBlock'==_0x54c8de['type']||_0x4d8f14&&this['_isBlockAttribute'](_0x4d8f14))&&(_0x37be68=this['_model']['createPositionBefore'](_0x37be68['parent'])),this['_addSuggestionMarker'](_0x5e8f54,_0x112fcc,_0xe519d9,this['_model']['createRange'](_0x37be68,_0x3153c6));}['_findSuggestions'](_0x2c4821,_0x337f09=null){const _0x395ef9=[],_0x1285f2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2c4821)||(_0x2c4821=[_0x2c4821]);for(const _0x1c02b3 of this['getSuggestions']()){if(!_0x1c02b3['isInContent'])continue;if(_0x337f09&&_0x1c02b3['type']!=_0x337f09)continue;let _0x1be601=!0x1;for(const _0x3e60bf of _0x1c02b3['getRanges']()){for(const _0x6d29c6 of _0x2c4821){const _0x10d8fd=_0x6d29c6['start']['isEqual'](_0x3e60bf['end'])||_0x6d29c6['end']['isEqual'](_0x3e60bf['start']);if(_0x10d8fd||_0x6d29c6['getIntersection'](_0x3e60bf)){const _0x22bb89=_0x6d29c6['containsRange'](_0x3e60bf)&&Ft(this['_model']['schema'],_0x3e60bf['start'],_0x6d29c6),_0x170046=_0x3e60bf['containsRange'](_0x6d29c6)&&Ft(this['_model']['schema'],_0x6d29c6['start'],_0x3e60bf);_0x395ef9['push']({'suggestion':_0x1c02b3,'meta':{'isOwn':_0x1285f2==_0x1c02b3['author'],'isNextTo':_0x10d8fd,'isInsideObject':_0x22bb89,'containsRangeInObject':_0x170046}}),_0x1be601=!0x0;break;}}if(_0x1be601)break;}}return _0x395ef9;}['_addSuggestionMarker'](_0x474213,_0x1a722e,_0x136709,_0x2ef000,_0x54b00c){this['_model']['change'](_0x13ac51=>{let _0x5b0c3d='suggestion:'+_0x474213+':'+_0x1a722e+':'+_0x136709;_0x54b00c&&(_0x5b0c3d=_0x5b0c3d+':'+_0x54b00c),_0x13ac51['addMarker'](_0x5b0c3d,{'range':_0x2ef000,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5e6e77){const _0x2f7e66=_0x5e6e77['previous'],_0x2dcd6c=_0x5e6e77['next'];_0x5e6e77['previous']=null,_0x5e6e77['next']=null,null!=_0x2f7e66&&_0x2f7e66['next']==_0x5e6e77&&(_0x2f7e66['next']=_0x2dcd6c),null!=_0x2dcd6c&&_0x2dcd6c['previous']==_0x5e6e77&&(_0x2dcd6c['previous']=_0x2f7e66),'ready'==this['_suggestionState']['get'](_0x5e6e77)&&(this['_suggestionState']['set'](_0x5e6e77,'removed'),this['fire']('suggestionUnloaded',_0x5e6e77,_0x2f7e66,_0x2dcd6c));}['_setSuggestionData'](_0x4fea98){const _0x9fe37=_0x4fea98['id'],_0x3a62cc=this['addSuggestionData'](_0x4fea98);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5b909d=this['editor']['plugins']['get']('PendingActions'),_0x70cf63=_0x3a62cc['hasComments'],_0x3638dd=_0x3a62cc['subType']?_0x3a62cc['type']+':'+_0x3a62cc['subType']:_0x3a62cc['type'],_0x21eacf=this['editor']['locale'],_0x9547dd=_0x5b909d['add'](o(_0x21eacf,'PENDING_ACTION_SUGGESTION')),_0x3813a9={'id':_0x9fe37,'type':_0x3638dd,'hasComments':_0x70cf63,'data':_0x4fea98['data']||null,'originalSuggestionId':_0x4fea98['originalSuggestionId']||null,'attributes':_0x3a62cc['attributes']};this['_adapter']['addSuggestion'](_0x3813a9)['then'](_0x4009ec=>{_0x3a62cc['_saved']=!0x0,_0x5b909d['remove'](_0x9547dd),_0x4009ec&&_0x4009ec['createdAt']&&(this['_suggestions']['get'](_0x9fe37)['createdAt']=_0x4009ec['createdAt']);})['catch'](_0x348ea9=>{throw _0x481fac('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3a62cc['discard']();}),_0x3a62cc['stopListening'](),this['_suggestions']['delete'](_0x3a62cc['id']),this['_suggestionState']['delete'](_0x3a62cc),_0x348ea9;});}return _0x3a62cc;}['_isBlockAttribute'](_0xb0af4f){return this['_blockAttributeKeys']['has'](_0xb0af4f);}['_updateSuggestionData'](_0x457af8,_0xa3fc72){const _0x4869ed=this['editor']['plugins']['get']('PendingActions'),_0x4899b8=this['getSuggestion'](_0x457af8);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4899b8['_saved']){const _0x1313f6=_0x4869ed['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x457af8,_0xa3fc72)['then'](()=>{_0x4869ed['remove'](_0x1313f6);});}else _0x4899b8['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x457af8,_0xa3fc72);});}}['_getSuggestionData'](_0x514680){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x33db9e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x514680);}['_handleNewSuggestionMarker'](_0x29503e){const {id:_0x1b00cb,type:_0x2d9670,subType:_0x407c90,authorId:_0x185b6c}=this['_splitMarkerName'](_0x29503e),_0xa68d3e=this['_suggestions']['get'](_0x1b00cb)||this['_createSuggestion'](_0x2d9670,_0x407c90,_0x1b00cb,_0x185b6c,{});switch(this['_checkSuggestionCorrectness'](_0xa68d3e,_0x2d9670,_0x407c90,_0x185b6c),this['_suggestionState']['get'](_0xa68d3e)){case'notReady':this['_getSuggestionData'](_0x1b00cb)['then'](_0x1612b4=>{let _0x8b6ac4=Promise['resolve']();_0x1612b4['hasComments']&&(_0x8b6ac4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1b00cb})),_0x8b6ac4['then'](()=>{this['addSuggestionData'](_0x1612b4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xa68d3e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1b00cb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xa68d3e,'ready'),this['fire']('suggestionLoaded',_0xa68d3e);break;case'ready':this['fire']('suggestionChanged',_0xa68d3e);}return _0xa68d3e['addMarkerName'](_0x29503e),_0xa68d3e;}['_refreshSuggestionsChain'](_0x340525){const _0x218504=Array['from'](_0x340525),_0x36d4c1=_0x218504['filter'](_0x5ec769=>'attribute'==_0x5ec769['type']);this['_refreshAttributeSuggestionsChain'](_0x36d4c1);const _0x4ca23b=_0x218504['filter'](_0x3d6913=>!_0x3d6913['isMultiRange']&&'attribute'!=_0x3d6913['type']),_0xf4111a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20c50e=>!_0x20c50e['isMultiRange']&&'attribute'!=_0x20c50e['type']),_0x55e56d=_0xf4111a['filter'](_0x53e48d=>!_0x340525['has'](_0x53e48d)),_0x5e7fa2=new Map(_0xf4111a['map'](_0x53d97f=>[_0x53d97f,this['_suggestionFactory']['getSuggestionCallback'](_0x53d97f['type'],_0x53d97f['subType'],'chain')])),_0x3afd5a=new Map(_0xf4111a['map'](_0x339417=>[_0x339417,_0x339417['getFirstRange']()])),_0x4a3443=new Set(),_0x1ede67=new Set();for(let _0x183452=0x0;_0x183452<_0x4ca23b['length'];_0x183452++)_0x20dde9(_0x4ca23b[_0x183452],_0x4ca23b,_0x183452+0x1);for(let _0x1bec79=0x0;_0x1bec79<_0x4ca23b['length'];_0x1bec79++)_0x20dde9(_0x4ca23b[_0x1bec79],_0x55e56d,0x0);const _0x558942=new Set();for(let _0x28ab05=0x0;_0x28ab05<_0x4ca23b['length'];_0x28ab05++){const _0x39a76b=_0x4ca23b[_0x28ab05];!_0x1ede67['has'](_0x39a76b)&&_0x39a76b['previous']&&(_0x558942['add'](_0x39a76b['previous']),_0x39a76b['previous']['next']===_0x39a76b&&(_0x39a76b['previous']['next']=null),_0x39a76b['previous']=null),!_0x4a3443['has'](_0x39a76b)&&_0x39a76b['next']&&(_0x558942['add'](_0x39a76b['next']),_0x39a76b['next']['previous']===_0x39a76b&&(_0x39a76b['next']['previous']=null),_0x39a76b['next']=null);}function _0x20dde9(_0x77056b,_0x533e7d,_0x464616){for(let _0x30f2b5=_0x464616;_0x30f2b5<_0x533e7d['length'];_0x30f2b5++){const _0x43152b=_0xe00898(_0x77056b,_0x533e7d[_0x30f2b5]);_0x43152b&&(_0x43152b[0x0]['next']=_0x43152b[0x1],_0x43152b[0x1]['previous']=_0x43152b[0x0],_0x4a3443['add'](_0x43152b[0x0]),_0x1ede67['add'](_0x43152b[0x1]));}}function _0xe00898(_0x31a9de,_0x5f2fdc){if(_0x31a9de['author']['id']!==_0x5f2fdc['author']['id'])return null;const _0x16644b=_0x5e7fa2['get'](_0x31a9de)(_0x31a9de,_0x5f2fdc,_0x3afd5a['get'](_0x31a9de),_0x3afd5a['get'](_0x5f2fdc));if(!_0x16644b)return null;return _0x5e7fa2['get'](_0x5f2fdc)(_0x31a9de,_0x5f2fdc,_0x3afd5a['get'](_0x31a9de),_0x3afd5a['get'](_0x5f2fdc))?_0x16644b[0x1]['commentThread']&&_0x16644b[0x1]['commentThread']['length']?null:_0x16644b:null;}_0x558942['size']&&this['_refreshSuggestionsChain'](_0x558942);}['_refreshAttributeSuggestionsChain'](_0x523438){if(0x0==_0x523438['length'])return;const _0x3b9e6f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5624da=>'attribute'==_0x5624da['type']&&_0x5624da['_isDataLoaded']),_0x384894=[],_0x179651=new Map();for(const _0xcff2db of _0x3b9e6f){const _0xeeddda=_0x482ee0(_0xcff2db['attributes']);_0x179651['has'](_0xeeddda)||(_0x179651['set'](_0xeeddda,_0x384894['length']),_0x384894['push']([]));const _0x45689d=_0x179651['get'](_0xeeddda);_0x384894[_0x45689d]['push'](_0xcff2db);}!(function(){_0x384894['sort']((_0x1f438a,_0x2a25b0)=>{const _0xf6f816=_0x1f438a[0x0]['createdAt'],_0x135fcd=_0x2a25b0[0x0]['createdAt'];return _0xf6f816==_0x135fcd?_0x1f438a[0x0]['attributes']['groupId']<_0x2a25b0[0x0]['attributes']['groupId']?-0x1:0x1:_0xf6f816<_0x135fcd?-0x1:0x1;});for(const _0x424969 of _0x384894)_0x424969['sort']((_0x27fba0,_0x1e0eb1)=>_0x27fba0['id']<_0x1e0eb1['id']?-0x1:0x1);}());for(let _0x193a49=0x0;_0x193a49<_0x384894['length'];_0x193a49++){if(0x0==_0x384894[_0x193a49]['length'])continue;const _0x5ed7d=[];for(let _0x6459b=_0x193a49+0x1;_0x6459b<_0x384894['length'];_0x6459b++)0x0!=_0x384894[_0x6459b]['length']&&_0x2b5719(_0x384894[_0x193a49],_0x384894[_0x6459b])&&_0x5ed7d['push'](_0x6459b);for(const _0x36e3ee of _0x5ed7d)_0x384894[_0x193a49]=_0x384894[_0x193a49]['concat'](_0x384894[_0x36e3ee]),_0x384894[_0x36e3ee]=[];}for(const _0x4d4583 of _0x384894)for(let _0x708e5f=0x0;_0x708e5f<_0x4d4583['length'];_0x708e5f++){const _0x219242=_0x4d4583[_0x708e5f+0x1]||null;_0x4d4583[_0x708e5f]['next']!==_0x219242&&(_0x4d4583[_0x708e5f]['next']=_0x219242);}for(const _0x21ac77 of _0x384894)for(let _0x4487c3=0x0;_0x4487c3<_0x21ac77['length'];_0x4487c3++){const _0x4eb5f7=_0x21ac77[_0x4487c3-0x1]||null;_0x21ac77[_0x4487c3]['previous']!==_0x4eb5f7&&(_0x21ac77[_0x4487c3]['previous']=_0x4eb5f7);}function _0x2b5719(_0x286bad,_0x56a0dd){if(_0x286bad[0x0]['attributes']['groupId']!==_0x56a0dd[0x0]['attributes']['groupId']&&_0x286bad[0x0]['author']!==_0x56a0dd[0x0]['author'])return!0x1;if(!function(_0x1257b2,_0x145d76){if(!_0x1257b2['hasComments']&&!_0x145d76['hasComments'])return!0x0;if(_0x1257b2['hasComments']&&_0x145d76['hasComments'])return!0x1;if(_0x1257b2['hasComments']&&_0x145d76['createdAt']<_0x1257b2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x145d76['hasComments']&&_0x1257b2['createdAt']<_0x145d76['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x286bad[0x0],_0x56a0dd[0x0]))return!0x1;const _0xa8db19=Ut(_0x286bad[0x0]['attributes'],['groupId','trackingSessionId']),_0x5ee40c=Ut(_0x56a0dd[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2ff6dc(_0xa8db19,_0x5ee40c))return!0x1;if(_0x286bad[0x0]['attributes']['groupId']==_0x56a0dd[0x0]['attributes']['groupId'])return!0x0;if(_0x286bad[0x0]['attributes']['trackingSessionId']!==_0x56a0dd[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x286bad['every'](_0x2bcd18=>_0x56a0dd['some'](_0x1941d3=>_0x2bcd18['getFirstRange']()['isEqual'](_0x1941d3['getFirstRange']())))&&_0x56a0dd['every'](_0x33a56a=>_0x286bad['some'](_0x15cda7=>_0x33a56a['getFirstRange']()['isEqual'](_0x15cda7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x39fee7){const _0x5aa63c=Array['from'](_0x39fee7),_0x3b2f3d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x748166=_0x3b2f3d['filter'](_0x3822a0=>!_0x39fee7['has'](_0x3822a0)),_0x52c906=new Map(_0x5aa63c['map'](_0x359cd4=>[_0x359cd4,this['_suggestionFactory']['getSuggestionCallback'](_0x359cd4['type'],_0x359cd4['subType'],'join')])),_0x59dd70=new Map(_0x3b2f3d['map'](_0x221cf2=>[_0x221cf2,_0x221cf2['getRanges']()]));for(let _0x2ad41a=0x0;_0x2ad41a<_0x5aa63c['length'];_0x2ad41a++){if(_0x418ec5(this,_0x5aa63c[_0x2ad41a],_0x5aa63c,_0x2ad41a+0x1))return!0x0;}for(let _0x4e2661=0x0;_0x4e2661<_0x5aa63c['length'];_0x4e2661++){if(_0x418ec5(this,_0x5aa63c[_0x4e2661],_0x748166,0x0))return!0x0;}return!0x1;function _0x418ec5(_0x50de01,_0x36352a,_0x5dd2bb,_0x17e09a){for(let _0x254ab8=_0x17e09a;_0x254ab8<_0x5dd2bb['length'];_0x254ab8++){const _0xc04a66=_0x5dd2bb[_0x254ab8];if(_0xc04a66['type']!==_0x36352a['type']||_0xc04a66['author']['id']!==_0x36352a['author']['id']||_0xc04a66['subType']!==_0x36352a['subType'])continue;if(!zt(_0x36352a,_0xc04a66))continue;if('attribute'==_0x36352a['type']&&_0x36352a['data']['oldValue']!=_0xc04a66['data']['oldValue'])continue;if('attribute'==_0x36352a['type']&&_0x50de01['_isBlockAttribute'](_0x36352a['data']['key']))continue;if('formatBlock'==_0x36352a['type']){const _0x545b8e=_0x50de01['editor']['model'],_0x10f789=_0x36352a['getContainedElement']();if(_0x10f789&&(_0x545b8e['schema']['isObject'](_0x10f789)||_0x545b8e['schema']['isLimit'](_0x10f789)))continue;}const _0x3d17ef=_0x52c906['get'](_0x36352a),_0x591048=_0x59dd70['get'](_0x36352a),_0x4f295c=_0x59dd70['get'](_0xc04a66),_0x572e45=_0x36352a['commentThread']&&_0x36352a['commentThread']['length'],_0x51ba86=_0xc04a66['commentThread']&&_0xc04a66['commentThread']['length'];if(!_0x572e45&&_0x3d17ef(_0x4f295c,_0x591048))return _0x50de01['_joinSuggestions'](_0xc04a66,_0x36352a),_0x59dd70['delete'](_0x36352a),!0x0;if(!_0x51ba86&&_0x3d17ef(_0x591048,_0x4f295c))return _0x50de01['_joinSuggestions'](_0x36352a,_0xc04a66),_0x59dd70['delete'](_0xc04a66),!0x0;}return!0x1;}}['_joinSuggestions'](_0x41aac9,_0x375904){if(_0x41aac9['isMultiRange']){for(const _0x63466d of _0x375904['getRanges']())_0x41aac9['addRange'](_0x63466d);}else{const _0xbc05d1=_0x375904['getFirstRange']()['end'];this['_setSuggestionRange'](_0x41aac9,this['_model']['createRange'](_0x41aac9['getFirstRange']()['start'],_0xbc05d1));}_0x375904['removeMarkers']();}['_getMarkerAnnouncementText'](_0x41041c,_0x5452b3,_0x4a15d4){const _0x1c3481=_0x41041c['startsWith']('format')||_0x41041c['startsWith']('attribute')?'FORMATTING':_0x41041c['toUpperCase']();return o(this['editor']['locale'],_0x5452b3+'_'+_0x1c3481+'_SUGGESTION_ANNOUNCEMENT',_0x4a15d4);}['_initAriaMarkerChangeAnnouncements'](){const _0x42d1c9=this['editor'];if(!_0x42d1c9['ui'])return;const {ariaLiveAnnouncer:_0x525640}=_0x42d1c9['ui'];_0x551d7f(this['_model'],({left:_0x462a66,entered:_0x5c3548})=>{for(const _0x42bf61 of _0x462a66){const {group:_0x791313,type:_0x2f0c75}=this['_splitMarkerName'](_0x42bf61['name']);if('suggestion'===_0x791313){_0x525640['announce'](this['_getMarkerAnnouncementText'](_0x2f0c75,'LEAVE'));break;}}for(const _0x20f238 of _0x5c3548){const {group:_0x26b725,type:_0x1d158c}=this['_splitMarkerName'](_0x20f238['name']);if('suggestion'===_0x26b725){_0x525640['announce'](this['_getMarkerAnnouncementText'](_0x1d158c,'ENTER',_0x14209d(_0x28b85a)));break;}}});}['_processAttributeChanges'](_0x5d670d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x27bf46=this['editor'],_0xf0bec5=_0x27bf46['model']['document']['differ']['getChanges']();if(0x0==_0xf0bec5['length'])return!0x1;const _0x1ae32d=[],_0xb1fe74=_0xf0bec5['filter'](_0x3e9788=>'attribute'==_0x3e9788['type']),_0x2d7f15=_0xf0bec5['filter'](_0x51a475=>'insert'==_0x51a475['type']&&'$text'!=_0x51a475['name']),_0x1c4415=_0xf0bec5['filter'](_0x124107=>'remove'==_0x124107['type']&&'$text'!=_0x124107['name']);for(const _0x299cec of _0xb1fe74)_0x1ae32d['push']({'key':_0x299cec['attributeKey'],'newValue':_0x299cec['attributeNewValue'],'oldValue':_0x299cec['attributeOldValue'],'range':Kt(_0x299cec['range'],_0x27bf46['model'])});for(const _0x32b3a9 of _0x2d7f15){const _0x11edea=_0x1c4415['find'](_0x42ed09=>_0x42ed09['position']['isEqual'](_0x32b3a9['position']));_0x11edea&&_0x1ae32d['push']({'key':m,'newValue':_0x32b3a9['name'],'oldValue':_0x11edea['name'],'range':_0x27bf46['model']['createRangeOn'](_0x32b3a9['position']['nodeAfter'])});}return 0x0!=_0x1ae32d['length']&&this['_reduceExistingSuggestions'](_0x5d670d,_0x1ae32d);}['_processAttributeSuggestions'](_0x5762cd){let _0x228d58=!0x1;const _0x36a1b4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x19acf1=>_0x19acf1['data']['newRange']&&_0x19acf1['name']['startsWith']('suggestion:attribute:'));for(const _0x3d9afa of _0x36a1b4){const {subType:_0x10d67e,id:_0x3a512c}=this['_splitMarkerName'](_0x3d9afa['name']),_0x3a59b3=_0x10d67e['split']('|')[0x0];for(const _0xb5cc9f of this['getSuggestions']({'skipNotAttached':!0x0}))_0xb5cc9f['id']!=_0x3a512c&&'attribute'==_0xb5cc9f['type']&&_0xb5cc9f['data']&&_0xb5cc9f['data']['key']==_0x3a59b3&&_0xb5cc9f['getFirstRange']()['isIntersecting'](_0x3d9afa['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xb5cc9f,_0x3d9afa['data']['newRange'],_0x5762cd),_0x228d58=!0x0);}return _0x228d58;}['_recordAttributeChanges'](_0x1eba28){this['_recordAttributeSuggestions']=!0x0,_0x1eba28();}['_isRegisteredAttribute'](_0x598e5b){const _0x9d7f9b=this['_isBlockAttribute'](_0x598e5b),_0x17548b=this['_inlineAttributeKeys']['has'](_0x598e5b);return _0x9d7f9b||_0x17548b;}['_reduceExistingSuggestions'](_0x1a48fd,_0x3d80aa){if(0x0==_0x3d80aa['length'])return!0x1;let _0x4164ba=!0x1;for(const _0xdb84f0 of _0x3d80aa){const _0x17a369=this['_findSuggestions'](_0xdb84f0['range'],'attribute')['filter'](_0x168d92=>!_0x168d92['meta']['isNextTo'])['map'](_0x136eab=>_0x136eab['suggestion']),_0x25c990=_0x482ee0({'newValue':_0xdb84f0['newValue']});_0x17a369['filter'](_0x51bfac=>{const [_0x1ececf,_0x468a25]=_0x51bfac['subType']['split']('|');return _0x1ececf==_0xdb84f0['key']&&_0x468a25!=_0x25c990;})['forEach'](_0x5f1c53=>{this['_reduceSuggestionAttributeRange'](_0x5f1c53,_0xdb84f0['range'],_0x1a48fd),_0x4164ba=!0x0;});}return _0x4164ba;}['_reduceSuggestionAttributeRange'](_0x30248b,_0x2a6aa0,_0x2e362e){const _0x11521b=_0x30248b['getFirstRange']()['getDifference'](_0x2a6aa0);0x0!==_0x11521b['length']?0x1!==_0x11521b['length']?this['_breakSuggestionMarker'](_0x30248b,_0x2a6aa0['start'],_0x2a6aa0['end']):this['_setSuggestionRange'](_0x30248b,_0x11521b[0x0]):_0x2e362e['removeMarker'](_0x30248b['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xd0001b){this['_editor']=_0xd0001b,this['_model']=_0xd0001b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x15816d,_0x56a62a,_0x1c3597,_0x37fce9,_0x272635,_0x41b3e6,_0x5efdd5){return new x(this['_model'],{'type':_0x15816d,'subType':_0x56a62a,'id':_0x1c3597,'originalSuggestionId':_0x5efdd5,'author':_0x37fce9,'creator':_0x37fce9,'attributes':_0x272635,'onAttributesChange':_0x41b3e6,'onAccept':(..._0x1ac15f)=>this['getSuggestionCallback'](_0x15816d,_0x56a62a,'accept')(..._0x1ac15f),'onDiscard':(..._0x396621)=>this['getSuggestionCallback'](_0x15816d,_0x56a62a,'discard')(..._0x396621)});}['registerCustomCallback'](_0x415bb7,_0x20da73,_0x3a77a5,_0x2c5ca3){const _0x24388a=_0x415bb7+':'+_0x20da73+':'+_0x3a77a5;this['_customCallbacks']['set'](_0x24388a,_0x2c5ca3);}['getSuggestionCallback'](_0x281394,_0xdaa179,_0x27f816){const _0x47c047=_0x281394+':'+_0xdaa179+':'+_0x27f816;return this['_customCallbacks']['get'](_0x47c047)||this['_defaultCallbacks']['get'](_0x281394+':'+_0x27f816);}['_registerDefaultCallbacks'](){const _0x4d7a89=()=>!0x1,_0x17ae74=_0x39acfb=>{_0x39acfb['sort']((_0x2cbf04,_0x2fdec2)=>_0x2cbf04['start']['isBefore'](_0x2fdec2['start'])?0x1:-0x1),this['_model']['change'](_0x4dc36f=>{for(const _0x8cd780 of _0x39acfb){let _0x1fd4a0;_0x1fd4a0=_0x8cd780['end']['isAtEnd']&&_0x8cd780['end']['parent']==_0x8cd780['start']['nodeAfter']?_0x4dc36f['createSelection'](_0x8cd780['start']['nodeAfter'],'on'):_0x4dc36f['createSelection'](_0x8cd780),this['_model']['deleteContent'](_0x1fd4a0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1f4c7e=(_0x23d804,_0x1cadcb)=>{_0x1cadcb&&this['_model']['change'](_0x35d839=>{const {commandName:_0x223d72,commandParams:_0xb8935=[]}=_0x1cadcb,_0x3837b9=_0x23d804['map'](_0x1ccce2=>(Pt(_0x1ccce2)&&(_0x1ccce2=this['_model']['createRange'](_0x1ccce2['end'])),_0x1ccce2))['filter'](_0x42dc47=>'$graveyard'!==_0x42dc47['root']['rootName']);if(_0x3837b9['length']<0x1)return;const _0x9d278=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x32269b=>_0x80ba14['fromRange'](_0x32269b));_0x35d839['setSelection'](_0x3837b9);for(const _0x5d3e9e of this['_editor']['commands']['commands']())_0x5d3e9e['refresh']();_0xb8935['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x223d72,..._0xb8935);const _0x5ba66a=_0x9d278['filter'](_0x3667f0=>'$graveyard'!=_0x3667f0['root']['rootName']);_0x5ba66a['length']>0x0&&_0x35d839['setSelection'](_0x5ba66a);for(const _0x531aef of _0x9d278)_0x531aef['detach']();});},_0x31e47e=(_0x3aced0,_0x466ea9)=>0x1==_0x3aced0['length']&&0x1==_0x466ea9['length']&&_0x3aced0[0x0]['end']['isEqual'](_0x466ea9[0x0]['start']),_0x33fd95=(_0x18a8b5,_0x347e33,_0x28ddde,_0x1b4e6d)=>qt(_0x18a8b5,_0x347e33,_0x28ddde,_0x1b4e6d)?[_0x18a8b5,_0x347e33]:qt(_0x347e33,_0x18a8b5,_0x1b4e6d,_0x28ddde)?[_0x347e33,_0x18a8b5]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4d7a89),this['_defaultCallbacks']['set']('insertion:discard',_0x17ae74),this['_defaultCallbacks']['set']('insertion:join',_0x31e47e),this['_defaultCallbacks']['set']('insertion:chain',_0x33fd95),this['_defaultCallbacks']['set']('deletion:accept',_0x17ae74),this['_defaultCallbacks']['set']('deletion:discard',_0x4d7a89),this['_defaultCallbacks']['set']('deletion:join',_0x31e47e),this['_defaultCallbacks']['set']('deletion:chain',_0x33fd95),this['_defaultCallbacks']['set']('formatInline:accept',_0x1f4c7e),this['_defaultCallbacks']['set']('formatInline:discard',_0x4d7a89),this['_defaultCallbacks']['set']('formatInline:join',_0x31e47e),this['_defaultCallbacks']['set']('formatInline:chain',_0x4d7a89),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1f4c7e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4d7a89),this['_defaultCallbacks']['set']('formatBlock:join',_0x31e47e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4d7a89),this['_defaultCallbacks']['set']('attribute:accept',_0x4d7a89),this['_defaultCallbacks']['set']('attribute:discard',(_0x3c2794,_0x5d5b42)=>{if(!_0x5d5b42)return;const _0x4c4415=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x206b7b=>{if(_0x5d5b42['key']==m)for(const _0x4143bf of _0x3c2794){const _0x4d0bc3=_0x4143bf['start']['nodeAfter'],_0x5d5569=_0x5d5b42['oldValue'];_0x206b7b['rename'](_0x4d0bc3,_0x5d5569);}else{if(_0x4c4415['_isBlockAttribute'](_0x5d5b42['key'])){for(const _0x5ddd24 of _0x3c2794)void 0x0!==_0x5d5b42['oldValue']?_0x206b7b['setAttribute'](_0x5d5b42['key'],_0x5d5b42['oldValue'],_0x5ddd24['start']['nodeAfter']):_0x206b7b['removeAttribute'](_0x5d5b42['key'],_0x5ddd24['start']['nodeAfter']);}else{for(const _0x3670fe of _0x3c2794)_0x5d5b42['oldValue']?_0x206b7b['setAttribute'](_0x5d5b42['key'],_0x5d5b42['oldValue'],_0x3670fe):_0x206b7b['removeAttribute'](_0x5d5b42['key'],_0x3670fe);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x31e47e);}}function Ft(_0x3152fb,_0x312369,_0x172c87){for(const _0x4770c5 of _0x312369['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4770c5['root']==_0x4770c5)return!0x1;if(!_0x172c87['containsItem'](_0x4770c5))return!0x1;if(_0x3152fb['isObject'](_0x4770c5)||_0x3152fb['isLimit'](_0x4770c5))return!0x0;}return!0x1;}function Pt(_0x59c1cc){return _0x59c1cc['end']['parent']==_0x59c1cc['start']['nodeAfter']&&_0x59c1cc['end']['isAtStart'];}function Gt(_0x5c05cc,_0x3801e1,_0x244552,_0x43eece){const _0x48bf09=_0x23fb6d=>!_0x23fb6d['item']['is']('$textProxy')&&!_0x43eece['isObject'](_0x23fb6d['item']),_0x3d23a0=_0x5c05cc['start']['getLastMatchingPosition'](_0x48bf09),_0x42c8e0=_0x5c05cc['end']['getLastMatchingPosition'](_0x48bf09,{'direction':'backward'});return(!_0x5c05cc['start']['isEqual'](_0x3d23a0)||!_0x5c05cc['end']['isEqual'](_0x42c8e0))&&(_0x3d23a0['isBefore'](_0x42c8e0)?_0x244552['updateMarker'](_0x3801e1,{'range':_0x244552['createRange'](_0x3d23a0,_0x42c8e0)}):_0x244552['removeMarker'](_0x3801e1),!0x0);}function Lt(_0x5933e5){return _0x482ee0(_0x5933e5);}function Jt(_0x556d75){const _0x4ea4e2=_0x556d75['start']['nodeAfter'];return _0x4ea4e2&&_0x4ea4e2['is']('element');}function Kt(_0x47d817,_0x5b742e){return null==_0x47d817['end']['nodeBefore']&&_0x47d817['end']['parent']==_0x47d817['start']['nodeAfter']?Ht(_0x47d817['start']['nodeAfter'],_0x5b742e):_0x47d817;}function Ht(_0x498b55,_0x3a541d){const _0x73aa45=_0x3a541d['schema']['isObject'](_0x498b55)||_0x3a541d['schema']['isSelectable'](_0x498b55);return _0x3a541d['createRange'](_0x3a541d['createPositionAt'](_0x498b55,'before'),_0x73aa45?_0x3a541d['createPositionAfter'](_0x498b55):_0x3a541d['createPositionAt'](_0x498b55,'end'));}function qt(_0x42a209,_0x2b5805,_0x13ae84,_0x13bbd1){return!!zt(_0x42a209,_0x2b5805)&&_0x13ae84['end']['isEqual'](_0x13bbd1['start']);}function zt(_0x10ec4d,_0x27b337){if(!_0x10ec4d['_isDataLoaded']||!_0x27b337['_isDataLoaded'])return!0x1;const _0x4c1850=new Set(Object['keys'](_0x10ec4d['attributes'])),_0x2d47e7=new Set(Object['keys'](_0x27b337['attributes']));if(_0x4c1850['delete']('groupId'),_0x2d47e7['delete']('groupId'),0x0==_0x4c1850['size']&&0x0==_0x2d47e7['size'])return!0x0;if(_0x4c1850['size']!=_0x2d47e7['size'])return!0x1;const _0x462b61={..._0x10ec4d['attributes']},_0x588031={..._0x27b337['attributes']};return delete _0x462b61['groupId'],delete _0x588031['groupId'],JSON['stringify'](_0x462b61)==JSON['stringify'](_0x588031);}function Wt(_0x4a4744,_0x46527b){const _0x139094=Qt(_0x4a4744['attributes']),_0x51943b=Qt(_0x46527b);if(!_0x4a4744['_isDataLoaded'])return!0x1;for(const _0x40ff3e of Object['keys'](_0x51943b))if(!_0x2ff6dc(_0x139094[_0x40ff3e],_0x51943b[_0x40ff3e]))return!0x1;return!0x0;}function Qt(_0xbcda54){const _0x293ccf=Object['assign']({},_0xbcda54);return delete _0x293ccf['skipNestingCheck'],delete _0x293ccf['tablePasteChainId'],_0x293ccf;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x14016a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4718d4,_0x282d93,_0x128080,_0x25e981){super(),this['model']=_0x282d93,this['view']=_0x128080,this['commentThreadController']=_0x25e981,this['_editor']=_0x4718d4,this['_acceptCommand']=_0x4718d4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4718d4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x50c21e,_0x5143cc)=>_0x50c21e||_0x5143cc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4bc986=>_0x4bc986&&this['_editor']['model']['canEditAt'](_0x282d93['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x417985=>_0x417985&&this['_editor']['model']['canEditAt'](_0x282d93['getRanges']())),this['_pendingAction']=null,_0x128080['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x128080,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x128080,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x128080,'change:isDirty',()=>{_0x128080['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 _0x4f4a4c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4f4a4c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x3b0130{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x15070a,_0x258977,_0x2ac647,_0x248b0b){super(_0x15070a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5e4763(_0x15070a,o(_0x15070a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x258977['authoredAt']),this['bind']('authoredAt')['to'](_0x258977),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',_0x258977,'authoredAt',this,'descriptionParts',(_0x3fd828,_0x141e5a,_0x160140)=>{const _0xc629ea=_0x160140['map'](_0x575943=>ls(_0x575943['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3fd828-0x1,_0x258977['author']['name'],_0x141e5a?_0x248b0b['formatDateTime'](_0x141e5a):'',new DOMParser()['parseFromString'](_0xc629ea,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5cdd0b(),this['focusTracker']=new _0x2bc954(),this['keystrokes']=new _0x15d5fa(),this['focusCycler']=new _0x49f9d8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x22e9c9=>_0x22e9c9['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x258977,this['_localUser']=_0x2ac647,this['_config']=_0x248b0b,_0x248b0b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1f2ce6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x21b51c}=this['_config'];this['commentsListView']=new _0x21b51c(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',_0x445e54=>_0x445e54+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1261d6,_0x13dab4)=>_0x1261d6||!!_0x13dab4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2df63a}=this['_config'],_0x57f3a4=new _0x2df63a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x96930c=_0x57f3a4['commentInputView'];return _0x57f3a4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x96930c,'value',(_0x1b4064,_0x5bc3ee,_0x1723f1)=>!!_0x1723f1||_0x1b4064&&!_0x5bc3ee),_0x96930c['on']('submit',(_0xa5dd59,_0x1de956)=>{this['fire']('addComment',_0x1de956),_0x96930c['editor']['setData']('');}),_0x96930c['on']('cancel',()=>this['focus']()),_0x96930c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x57f3a4;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0x2dde09,_0x2b1075,_0x4c43df,_0x245487){super(_0x2dde09,_0x2b1075,_0x4c43df,_0x245487),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x146ac8=>_0x146ac8&&_0x146ac8[0x0]?_0x146ac8[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1c4f8c,_0x10a248)=>{let _0x5137f8='';for(const _0x44db63 of _0x1c4f8c)_0x5137f8+='<p>'+ls(_0x44db63['content'],_0x44db63['color'])+'</p>';return _0x10a248?_0x5137f8:_0x546a86(_0x5137f8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x245487['SuggestionView'](_0x2dde09,_0x2b1075,{'formatDateTime':_0x245487['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 _0x1efedc=this['bindTemplate'],_0x597fb0=[this['suggestionView']];return this['commentsListView']&&_0x597fb0['push'](this['commentsListView']),this['commentThreadInputView']&&_0x597fb0['push'](this['commentThreadInputView']),_0x597fb0['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1efedc['if']('isActive','ck-suggestion-wrapper--active'),_0x1efedc['to']('type',_0x572966=>'ck-suggestion-'+_0x572966),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':_0x1efedc['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x597fb0};}['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 we extends _0x3b0130{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5222cd,_0x142a89,_0x1d7068){super(_0x5222cd),this['_model']=_0x142a89,this['_config']=_0x1d7068,this['set']('description',''),this['bind']('authoredAt')['to'](_0x142a89),this['acceptButton']=this['_createButton'](o(_0x5222cd,'Accept\x20suggestion'),_0x43f6a0,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5222cd,'Discard\x20suggestion'),_0x1b3eb3,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x206158(_0x5222cd,_0x142a89['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5cdd0b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2bc954(),this['keystrokes']=new _0x15d5fa(),this['focusCycler']=new _0x49f9d8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x130589=>_0x130589['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x32c78d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x32c78d['innerHTML']=this['description'],this['on']('change:description',(_0x1d3d75,_0x1bb81e,_0x11131f)=>{_0x32c78d['innerHTML']=_0x11131f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1d2570=this['bindTemplate'],_0x3dab9b=[{'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':_0x1d2570['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1d2570['to']('authoredAt',_0x4a92e7=>this['_config']['formatDateTime'](_0x4a92e7))}]}]},{'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']&&_0x3dab9b['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':_0x3dab9b}]};}['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'](_0x5de162,_0x28d4ae,_0x21e717,_0x1b3a45,_0x528050){const _0x386d0b=new _0x546d99(this['locale']);return _0x386d0b['set']({'label':_0x5de162,'icon':_0x28d4ae,'tooltip':!0x0,'tooltipPosition':_0x528050}),_0x386d0b['extendTemplate']({'attributes':{'class':_0x21e717}}),_0x386d0b['on']('execute',()=>{this['fire'](_0x1b3a45,this['_model']['id']);}),_0x386d0b;}['_setupKeyboardNavigation'](){const _0xf8746c=this['element'];this['keystrokes']['listenTo'](_0xf8746c);for(const _0x1ddbcc of this['focusables'])this['focusTracker']['add'](_0x1ddbcc['element']),this['keystrokes']['listenTo'](_0x1ddbcc['element']);this['keystrokes']['set']('enter',(_0x448009,_0x5625d6)=>{_0xf8746c===_0x448009['target']&&(this['focusCycler']['focusFirst'](),_0x5625d6());}),this['keystrokes']['set']('esc',(_0x468095,_0x542b54)=>{_0xf8746c!==_0x468095['target']&&(this['focus'](),_0x542b54());});}}class u extends _0x20a8ee{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x47b862,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2de58b){super(_0x2de58b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2fdad1=this['editor']['config'];_0x2fdad1['define']('trackChanges.SuggestionThreadView',fe),_0x2fdad1['define']('trackChanges.SuggestionView',we),_0x2fdad1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2fdad1['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x401ad9,_0x399705){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x24fd9a,_0x106bc5]of this['_handleControllerBuffer']){const _0x473287=this['_suggestionToController']['has'](_0x24fd9a);_0x473287||_0x106bc5?_0x473287&&_0x106bc5&&this['_destroyController'](_0x24fd9a):this['_initializeController'](_0x24fd9a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x401ad9,_0x399705);}['init'](){const _0x18f632=this['editor'],_0x41582a=_0x18f632['plugins']['get']('TrackChangesEditing'),_0x6913eb=_0x18f632['plugins']['get']('Annotations'),_0xd20dc1=_0x18f632['plugins']['get']('EditorAnnotations'),_0x3b70db=_0x18f632['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xd20dc1['addSourceCollector'](()=>{const _0x24cc39=[];for(const [_0x521949,_0xf2c8a]of Array['from'](this['_suggestionToController'])){const _0x156406=_0x521949['getAllAdjacentSuggestions'](),_0x4ad3c0=[];for(const _0x47e662 of _0x156406){if(!_0x47e662['isInContent'])continue;if(_0x47e662['isMultiRange']){_0x4ad3c0['push'](..._0x47e662['getRanges']());continue;}const _0x385147=_0x47e662['getFirstRange']();if(_0x4ad3c0['length']>0x0){const _0x33c644=_0x4ad3c0[0x0]['getJoined'](_0x385147);if(_0x33c644){_0x4ad3c0[0x0]=_0x33c644;continue;}}_0x4ad3c0['push'](_0x385147);}_0x24cc39['push']([_0xf2c8a['view'],_0x4ad3c0]);}return _0x24cc39;}),this['listenTo'](_0x41582a,'suggestionLoaded',(_0x3f0a41,_0x42e10a)=>{this['listenTo'](_0x42e10a,'change:previous',(_0x326d2b,_0x371948,_0x1aee0e,_0x23231c)=>{_0x42e10a['isInContent']&&(null==_0x1aee0e?(this['_updateController'](_0x23231c['head']),this['_handleSuggestionControllerDelayed'](_0x42e10a,!0x1)):(this['_updateController'](_0x1aee0e['head']),null==_0x23231c&&this['_handleSuggestionControllerDelayed'](_0x42e10a,!0x0)));}),null!==_0x42e10a['previous']?this['_updateController'](_0x42e10a['head']):this['_handleSuggestionControllerDelayed'](_0x42e10a,!0x1);}),this['listenTo'](_0x41582a,'suggestionUnloaded',(_0x44173d,_0x5aa8a7,_0x24e2fe)=>{this['stopListening'](_0x5aa8a7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5aa8a7),this['_suggestionToController']['has'](_0x5aa8a7)&&this['_destroyController'](_0x5aa8a7),_0x24e2fe&&this['_updateController'](_0x24e2fe['head']);}),this['listenTo'](_0x41582a,'suggestionChanged',(_0x43b6c4,_0x4f5b6c)=>{this['_updateController'](_0x4f5b6c);}),this['listenTo'](_0x6913eb,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3b70db,'addComment',(_0x2ddc1b,{threadId:_0x232ea1,isFromAdapter:_0x4bd618})=>{if(_0x4bd618||!_0x41582a['hasSuggestion'](_0x232ea1))return;const _0x132758=_0x41582a['getSuggestion'](_0x232ea1);this['_suggestionToController']['get'](_0x132758)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4658eb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b3f2d;for(const _0x56d827 in _0x4658eb){const _0x32e297=_0x56d827,_0x2c7f34=_0x4658eb[_0x32e297];if('trackChangesLicenseKeyValid'==_0x2c7f34||'trackChangesLicenseKeyInvalid'==_0x2c7f34||'trackChangesLicenseKeyExpired'==_0x2c7f34||'trackChangesLicenseKeyDomainLimit'==_0x2c7f34||'trackChangesLicenseKeyNotAllowed'==_0x2c7f34||'trackChangesLicenseKeyEvaluationLimit'==_0x2c7f34||'trackChangesLicenseKeyTrialLimit'==_0x2c7f34||'trackChangesLicenseKeyUsageLimit'==_0x2c7f34){delete _0x4658eb[_0x32e297],_0x3b3f2d=_0x2c7f34,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3b3f2d&&_0x4658eb['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3b3f2d&&_0x4658eb['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3b3f2d&&_0x4658eb['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3b3f2d&&_0x4658eb['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3b3f2d&&_0x4658eb['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3b3f2d&&_0x4658eb['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3b3f2d&&_0x4658eb['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4b3c0c=this['editor']['plugins']['get']('Annotations'),_0x6496f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30744d=Array['from'](_0x4b3c0c['activeAnnotations'],_0x1789bc=>_0x1789bc['innerView'])['filter'](_0x57aa60=>this['_viewToController']['has'](_0x57aa60)),_0x4f64a7=[];for(const _0x44a25f of _0x30744d){const _0x481b10=this['_viewToController']['get'](_0x44a25f)['model']['getAllAdjacentSuggestions']();_0x4f64a7['push'](..._0x481b10['reduce']((_0x4b584a,_0x385b7f)=>[..._0x4b584a,..._0x385b7f['getMarkerNames']()],[]));}_0x6496f2['activeMarkers']=_0x4f64a7;}['_addUIComponentsToFactory'](){const _0x54a50f=this['editor'],_0x3cf987=_0x54a50f['locale'],_0x2ef005=o(_0x3cf987,'Track\x20changes'),_0x588c5c=new _0x4ca890([{'type':'switchbutton','model':new _0x3c92b0({'withText':!0x0,'isToggleable':!0x0,'label':_0x2ef005,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3c92b0({'withText':!0x0,'label':o(_0x3cf987,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3c92b0({'withText':!0x0,'label':o(_0x3cf987,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3c92b0({'withText':!0x0,'label':o(_0x3cf987,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3c92b0({'withText':!0x0,'label':o(_0x3cf987,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x54a50f['plugins']['has']('TrackChangesPreview')&&_0x588c5c['addMany']([{'type':'separator'},{'type':'button','model':new _0x3c92b0({'withText':!0x0,'label':o(_0x3cf987,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x326a81 of _0x588c5c)if(ke(_0x326a81)){const _0x2e1789=_0x54a50f['commands']['get'](_0x326a81['model']['commandName']);_0x326a81['model']['bind']('isOn','isEnabled')['to'](_0x2e1789,'value','isEnabled');}_0x54a50f['ui']['componentFactory']['add']('trackChanges',_0x203bd2=>this['_createToolbarButton'](_0x203bd2,_0x588c5c,_0x2ef005)),_0x54a50f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3f1d14=>this['_createMenuBarMenu'](_0x3f1d14,_0x588c5c,_0x2ef005));}['_createToolbarButton'](_0x2a70ad,_0x56edbe,_0x146df7){const _0x59be31=_0x30e8a9(_0x2a70ad,_0x2727cf),_0x3ad3cc=this['editor']['commands']['get']('trackChanges');_0x59be31['buttonView']['set']({'tooltip':_0x146df7,'label':_0x146df7,'icon':_0xb105de}),_0x59be31['buttonView']['bind']('isOn')['to'](_0x3ad3cc,'value'),_0x59be31['buttonView']['on']('execute',()=>{_0x3ad3cc['execute'](),this['editor']['editing']['view']['focus']();}),_0x1fc2f2(_0x59be31,_0x56edbe,{'role':'menu'});const _0x3a72e4=[];for(const _0x192bd4 of _0x56edbe)ke(_0x192bd4)&&_0x3a72e4['push'](this['editor']['commands']['get'](_0x192bd4['model']['commandName']));const _0x5911c6=_0x59be31['buttonView'];return _0x5911c6['actionView']['unbind']('isEnabled'),_0x5911c6['arrowView']['unbind']('isEnabled'),_0x5911c6['actionView']['bind']('isEnabled')['to'](_0x3ad3cc,'isEnabled'),_0x5911c6['arrowView']['bind']('isEnabled')['toMany'](_0x3a72e4,'isEnabled',(..._0x42e32f)=>_0x42e32f['some'](_0x148054=>_0x148054)),_0x59be31['on']('execute',_0x51af1c=>{this['editor']['execute'](_0x51af1c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x59be31;}['_createMenuBarMenu'](_0xdd0b4f,_0x213f92,_0xbc3594){const _0x1bcf10=new _0x33a675(_0xdd0b4f),_0x3488ce=this['editor']['commands']['get']('trackChanges');_0x1bcf10['buttonView']['set']({'label':_0xbc3594,'icon':_0xb105de});const _0x2b6480=new _0x4416a5(_0xdd0b4f);for(const _0x3d2245 of _0x213f92){if('separator'==_0x3d2245['type']){_0x2b6480['items']['add'](new _0x3e4ce4(_0xdd0b4f));continue;}const _0x5bda05=new _0x5f2f40(_0xdd0b4f,_0x1bcf10),_0x4150e8=new _0x123cf4(_0xdd0b4f),_0x522117=_0x3d2245['model'];_0x4150e8['bind'](...Object['keys'](_0x522117))['to'](_0x522117),_0x4150e8['delegate']('execute')['to'](_0x1bcf10),_0x4150e8['on']('execute',()=>{this['editor']['execute'](_0x522117['commandName']),this['editor']['editing']['view']['focus']();}),_0x5bda05['children']['add'](_0x4150e8),_0x2b6480['items']['add'](_0x5bda05);}return _0x1bcf10['bind']('isEnabled')['to'](_0x3488ce,'isEnabled'),_0x1bcf10['panelView']['children']['add'](_0x2b6480),_0x1bcf10;}['_initializeController'](_0xb49281){const _0x37ae73=this['editor'],_0x47bb6d=_0x37ae73['config'],_0x298284=_0x37ae73['plugins']['get']('Annotations'),_0x3e18cf=_0x37ae73['plugins']['get']('CommentsRepository'),_0x378b35=_0x37ae73['plugins']['get']('EditorAnnotations'),_0x5c548f=_0x37ae73['plugins']['get'](_0x47b862)['me'],_0x12f7ab=_0x47bb6d['get']('trackChanges')['SuggestionThreadView'],_0x1854a7=_0x47bb6d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3246ae,CommentThreadInputView:_0x4af477}=_0x37ae73['plugins']['get']('CommentsUI');let _0x2fd646,_0x4f8067,_0x3ed2d2;this['_annotationViews']['has'](_0xb49281['id'])?(_0x4f8067=this['_annotationViews']['get'](_0xb49281['id']),_0x2fd646=_0x4f8067['mainView']):(_0x2fd646=new _0x12f7ab(_0x37ae73['locale'],_0xb49281,_0x5c548f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x47bb6d['get']('comments.editorConfig'),'licenseKey':_0x47bb6d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x47bb6d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x47bb6d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x47bb6d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x569dc4(_0x47bb6d['get']('locale'),_0x37ae73['locale']),'CommentView':_0x47bb6d['get']('comments')['CommentView'],'CommentsListView':_0x3246ae,'CommentThreadInputView':_0x4af477,'SuggestionView':_0x1854a7}),_0x2fd646['suggestionView']['acceptButton']['on']('execute',()=>{_0x37ae73['editing']['view']['focus']();}),_0x2fd646['suggestionView']['discardButton']['on']('execute',()=>{_0x37ae73['editing']['view']['focus']();}),_0x4f8067=_0x298284['createAnnotationView'](this['editor']['locale'],_0x2fd646),_0x4f8067['bind']('isDirty')['to'](_0x2fd646,'isDirty'),_0x4f8067['bind']('length')['to'](_0x2fd646),_0x4f8067['bind']('type')['to'](_0x2fd646,'type',_0x13d367=>'suggestion-'+_0x13d367),_0x2fd646['on']('escape',()=>{_0x3ed2d2['fire']('escape');}),this['_annotationViews']['set'](_0xb49281['id'],_0x4f8067));const _0x1968d0=_0x3e18cf['createCommentThreadController'](_0xb49281['commentThread'],_0x2fd646),_0x552bdd=new pe(_0x37ae73,_0xb49281,_0x2fd646,_0x1968d0),_0x5f2936=_0xb49281['getAllAdjacentSuggestions']()['filter'](_0x49c4d7=>_0x49c4d7['isInContent']);_0x2fd646['descriptionParts']=_0x37ae73['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5f2936),this['_suggestionToController']['set'](_0xb49281,_0x552bdd),this['_viewToController']['set'](_0x2fd646,_0x552bdd),_0x3ed2d2=_0x298284['createAnnotation']({'view':_0x4f8067,'target':()=>{const _0x3295e9=[],_0x5c694d=_0xb49281['getAllAdjacentSuggestions']()['filter'](_0x5ab8d9=>_0x5ab8d9['isInContent']);for(const _0x5095f5 of _0x5c694d)_0x3295e9['push'](..._0x5095f5['getMarkers']());return _0x54d4e2(_0x37ae73['editing'],_0x3295e9);},'type':()=>'suggestion-'+_0x552bdd['view']['type']}),_0x3e18cf['_bindAnnotationToEditors'](_0x2fd646,_0x3ed2d2),_0x298284['add'](_0x3ed2d2),_0x378b35['registerAnnotation'](_0x3ed2d2);}['_destroyController'](_0xf85448){const _0x838e1b=this['editor']['plugins']['get']('CommentsRepository'),_0x54698f=this['editor']['plugins']['get']('Annotations'),_0x500b44=this['_suggestionToController']['get'](_0xf85448),_0x3ba4c6=_0x500b44['view'],_0x308446=_0x54698f['getByInnerView'](_0x3ba4c6);_0x838e1b['_unbindEditors'](_0x3ba4c6),_0x308446&&_0x54698f['remove'](_0x308446),this['_suggestionToController']['delete'](_0xf85448),this['_viewToController']['delete'](_0x3ba4c6),_0x500b44['destroy']();}['_updateController'](_0x128c0c){if(!_0x128c0c['isInContent']||!this['_suggestionToController']['has'](_0x128c0c))return;const _0x34d80c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32bfd5=this['_suggestionToController']['get'](_0x128c0c),_0x376ae5=_0x128c0c['getAllAdjacentSuggestions']();_0x32bfd5['view']['descriptionParts']=_0x34d80c['descriptionFactory']['getDescriptions'](_0x376ae5);}['destroy'](){for(const _0x594e07 of this['_suggestionToController']['keys']())this['_destroyController'](_0x594e07);for(const _0x51aee8 of this['_annotationViews']['values']())_0x51aee8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5cc427){return'model'in _0x5cc427;}class Ge extends _0x20a8ee{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3f6c31){this['editor']['plugins']['get'](d)['adapter']=_0x3f6c31;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2a69a1){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2a69a1);}['getSuggestions']({skipNotAttached:_0x3b34b5=!0x1,toJSON:_0x411608=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x3b34b5,'toJSON':_0x411608});}['getSuggestion'](_0xe247b1){return this['editor']['plugins']['get'](d)['getSuggestion'](_0xe247b1);}}const p=['Pagination'];class re extends _0x20a8ee{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x51af80=this['editor'];if(_0x51af80['config']['define']('trackChangesData.editorCreator',_0x254305=>{const _0xdeb65f=_0x51af80['model']['document']['getRootNames']()['reduce']((_0x161b0f,_0x1c3f66)=>(_0x161b0f[_0x1c3f66]='',_0x161b0f),{});return _0x51af80['constructor']['create'](_0xdeb65f,_0x254305);}),'function'!=typeof _0x51af80['config']['get']('trackChangesData')['editorCreator'])throw new _0x33db9e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x48c61e){return w(this['editor'],!0x0,_0x48c61e);}['getDataWithDiscardedSuggestions'](_0x4097a4){return w(this['editor'],!0x1,_0x4097a4);}}class k extends _0x20a8ee{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12c49a){function _0x30fd53(_0x50c6c6){return _0x50c6c6['map'](_0x20df34=>String['fromCharCode'](_0x20df34))['join']('');}super(_0x12c49a),this['result']='end',_0x12c49a[_0x30fd53([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30fd53([0x76,0x69,0x65,0x77])][_0x30fd53([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30fd53([0x61,0x75,0x74,0x6f]),_0x12c49a[_0x30fd53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x30fd53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30fd53([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x30fd53([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x30fd53([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 $e(_0x23ca7a){return void 0x0!==_0x23ca7a['getRootsAttributes'];}async function w(_0x1a66d5,_0x399f38,_0x49305a){const _0x5aa876=_0x3351a2(_0x1a66d5,p);_0x5aa876['plugins']['push'](d,k),_0x5aa876['rootsAttributes']=$e(_0x1a66d5)?_0x1a66d5['getRootsAttributes']():void 0x0;const _0x5c6466=document['createDocumentFragment'](),_0x23d9bc=_0x1a66d5['config']['get']('trackChangesData')['editorCreator'],_0x13b10f=await _0x23d9bc(_0x5aa876,()=>function(_0x531c20){const _0x1aed99=document['createElement']('div');return _0x531c20['appendChild'](_0x1aed99),_0x1aed99;}(_0x5c6466));!function(_0x4da63d,_0x1ce27b){const _0xdd528c=_0x4da63d['model']['document']['getRootNames']()['reduce']((_0x53f5b4,_0x5bae88)=>(_0x53f5b4[_0x5bae88]=_0x4da63d['data']['get']({'rootName':_0x5bae88}),_0x53f5b4),{}),_0x28b4ff=_0x4da63d['plugins']['get']('Users')['users']['map'](_0x5de4fc=>({'id':_0x5de4fc['id'],'name':_0x5de4fc['name']})),_0x1dbd46=_0x4da63d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x32d358=_0x4da63d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c2cfc=_0x1ce27b['plugins']['get']('Users'),_0x4cfb94=_0x1ce27b['plugins']['get']('TrackChangesEditing'),_0x3eb1ad=_0x1ce27b['plugins']['get']('CommentsRepository');for(const _0x807fa7 of _0x3eb1ad['getCommentThreads']())_0x807fa7['remove']();for(const _0x17080d of _0x28b4ff)_0x5c2cfc['getUser'](_0x17080d['id'])||_0x5c2cfc['addUser'](_0x17080d);_0x5c2cfc['me']||_0x5c2cfc['useAnonymousUser']();for(const _0x19d4e4 of _0x32d358)_0x3eb1ad['addCommentThread'](_0x19d4e4);for(const _0x5d53c5 of _0x1dbd46)_0x4cfb94['addSuggestionData'](_0x5d53c5);_0x1ce27b['data']['set'](_0xdd528c);}(_0x1a66d5,_0x13b10f),_0x13b10f['execute'](_0x399f38?'acceptAllSuggestions':'discardAllSuggestions');const _0x3d0fa0=$e(_0x13b10f)?_0x13b10f['getFullData'](_0x49305a):_0x13b10f['data']['get'](_0x49305a);return await _0x13b10f['destroy'](),_0x3d0fa0;}class Me extends _0x3b0130{['options'];constructor(_0x453624,_0x40eb93){super(_0x453624),this['options']=_0x40eb93,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'](_0x5c76cf,_0x5b2950){if(!this['element'])return;const _0x11b271=[];for(const [_0x336f4d,_0x4c499f]of _0x5c76cf){const _0x2168b6=document['createElement']('div');_0x2168b6['setAttribute']('data-ck-root-name',_0x336f4d),_0x2168b6['className']=_0x4c499f['classes']+'\x20ck-track-changes-preview__root-container',_0x2168b6['innerHTML']=_0x4c499f['content'],_0x11b271['push'](_0x2168b6);}_0x5b2950(this['element'],_0x11b271),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x4571b2{constructor(_0xf98385){super(_0xf98385),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x13f3c1=this['editor'],_0x46f199=_0x13f3c1['locale'],_0x42079f=_0x13f3c1['plugins']['get']('Dialog');let _0x58a73b;const _0x113689=function(_0x4354e5){const _0xe742c0={};if('editables'in _0x4354e5['ui']['view']){for(const [_0x42b547,_0x2d68dd]of Object['entries'](_0x4354e5['ui']['view']['editables']))_0xe742c0[_0x42b547]=_0x2d68dd['element'];}else _0xe742c0[_0x4354e5['model']['document']['getRootNames']()[0x0]]=_0x4354e5['ui']['view']['editable']['element'];return _0xe742c0;}(_0x13f3c1),_0x517448=function(_0x491b53){let _0x60ce78=0x0;for(const _0x538d77 of Object['values'](_0x491b53))_0x60ce78=Math['max'](_0x60ce78,_0x538d77['getBoundingClientRect']()['width']);let _0x1df980=0x0;for(const _0x249737 of Object['values'](_0x491b53))_0x1df980+=_0x249737['getBoundingClientRect']()['height'];const _0x11ab8e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3308e6=Math['min'](_0x1df980,_0x11ab8e);return{'width':_0x60ce78,'height':_0x3308e6};}(_0x113689);_0x42079f['show']({'id':'finalContentPreview','title':o(_0x46f199,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x46f199,{'dialogRects':_0x517448}),'onHide':()=>{_0x58a73b['detachFromDom']();},'onShow':()=>{_0x13f3c1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x37d044=>{const _0xf558f7=this['_standarizeRootsData'](_0x37d044,_0x13f3c1,_0x113689);_0x42079f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xf558f7,_0x13f3c1['config']['get']('trackChanges.preview.renderFunction'));}),_0x58a73b=new _0x17d8c7(_0x46f199,[_0x42079f['view']]),_0x58a73b['attachToDom'](),_0x58a73b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x13f3c1['once']('destroy',()=>{_0x58a73b['detachFromDom']();});const _0x2e7250=_0x42079f['view']['headerView']['class'];_0x42079f['view']['headerView']['class']=_0x2e7250?_0x2e7250+'\x20ck-reset_all':'ck-reset_all',_0x42079f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x42079f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x480e35=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2fe62b=_0x480e35['previewMode'],_0x3fdf2b={};if('$labels'===_0x2fe62b){for(const _0xf6b065 of _0x480e35['getMergeFieldsIds']())_0x3fdf2b[_0xf6b065]=_0x480e35['getLabel'](_0xf6b065)||_0xf6b065;}else{const _0x226d27='$defaultValues'===_0x2fe62b?_0x480e35['getDefaultValues']():_0x480e35['getDataSetValues'](_0x2fe62b,!0x0);for(const _0x22b5bb of Object['entries'](_0x226d27)){const [_0x49ff78,_0x56e994]=_0x22b5bb;_0x3fdf2b[_0x49ff78]=null!==_0x56e994?_0x56e994:_0x480e35['getLabel'](_0x49ff78)||_0x49ff78;}}return{'mergeFieldsData':_0x3fdf2b};}['_standarizeRootsData'](_0x37a6a0,_0x49ad3d,_0x4a8cec){let _0x2fdae3;if('string'==typeof _0x37a6a0){const _0x1e3eeb=_0x49ad3d['model']['document']['getRootNames']()[0x0];_0x2fdae3={[_0x1e3eeb]:_0x37a6a0};}else _0x2fdae3=_0x37a6a0;const _0x5555b7=this['_fixMediaEmbeds'](_0x2fdae3,_0x49ad3d),_0x32ac4f=function(_0x9a8685,_0x39f063){for(const [_0x168bd9,_0x11ff8b]of _0x9a8685)_0x11ff8b['classes']=_0x39f063[_0x168bd9]['classList']['value']['replace']('ck-focused','');return _0x9a8685;}(this['_sortRoots'](_0x49ad3d)['reduce']((_0x1da0af,_0x5f0ae8)=>(_0x1da0af['push']([_0x5f0ae8,{'content':_0x5555b7[_0x5f0ae8],'classes':''}]),_0x1da0af),[]),_0x4a8cec);return _0x32ac4f;}['_fixMediaEmbeds'](_0x4e0d1a,_0x2017bb){if(!_0x2017bb['plugins']['has']('MediaEmbedEditing'))return _0x4e0d1a;const _0x1c9a15=_0x2017bb['plugins']['get']('MediaEmbedEditing');for(const [_0x3d8d61,_0x1ec492]of Object['entries'](_0x4e0d1a)){const _0x555432=document['createElement']('div');_0x555432['innerHTML']=_0x1ec492,(_0x555432['querySelectorAll']('figure.media')['forEach'](_0x420996=>{const _0x2b6cfb=_0x420996['querySelector']('oembed');if(_0x2b6cfb){const _0x26ff81=_0x2b6cfb['getAttribute']('url');if(_0x26ff81){const _0x39e2ee=_0x1c9a15['registry']['getMediaViewElement'](new _0x1e2250(_0x2017bb['editing']['view']['document']),_0x26ff81,{'elementName':'','renderForEditingView':!0x0}),_0x3dd952=document['createElement']('div');_0x3dd952['classList']['add']('ck-media__wrapper'),_0x39e2ee['render'](_0x3dd952,_0x2017bb['editing']['view']['domConverter']),_0x2b6cfb['replaceWith'](_0x3dd952);}}}),_0x4e0d1a[_0x3d8d61]=_0x555432['innerHTML']);}return _0x4e0d1a;}['_sortRoots'](_0x278bdf){if(!function(_0x17f17c){return void 0x0!==_0x17f17c['getRootsAttributes'];}(_0x278bdf))return _0x278bdf['model']['document']['getRootNames']();const _0x646093=[],_0x36fa3f=new Map();for(const _0x572dcf of _0x278bdf['model']['document']['getRootNames']()){const _0x2129d1=_0x278bdf['editing']['view']['getDomRoot'](_0x572dcf)['getClientRects']()['item'](0x0);_0x646093['push'](_0x572dcf),_0x36fa3f['set'](_0x572dcf,_0x2129d1);}return _0x646093['sort']((_0x22f8de,_0x4b288b)=>{const _0x414235=_0x36fa3f['get'](_0x22f8de),_0x248f91=_0x36fa3f['get'](_0x4b288b);return _0x414235['y']-_0x248f91['y']||_0x414235['x']-_0x248f91['x'];}),_0x646093;}}class He extends _0x20a8ee{static get['requires'](){return[re,_0x5f0b2e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57767e){super(_0x57767e),_0x57767e['commands']['add']('previewFinalContent',new te(this['editor'])),_0x57767e['config']['define']('trackChanges.preview.renderFunction',(_0x3230a1,_0x1f2b4a)=>{for(const _0x1a07d4 of _0x1f2b4a)_0x3230a1['appendChild'](_0x1a07d4);});}}export{M as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,T as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,fe as SuggestionThreadView,we as SuggestionView,Ge as TrackChanges,D as TrackChangesCommand,re as TrackChangesData,d as TrackChangesEditing,He as TrackChangesPreview};