@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250910.0 → 0.0.0-nightly-20250912.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) 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/lineheight.js +1 -1
  185. package/src/integrations/link.js +1 -1
  186. package/src/integrations/list.js +1 -1
  187. package/src/integrations/listproperties.js +1 -1
  188. package/src/integrations/mediaembed.js +1 -1
  189. package/src/integrations/mention.js +1 -1
  190. package/src/integrations/mergefields.js +1 -1
  191. package/src/integrations/multilevellist.js +1 -1
  192. package/src/integrations/pagebreak.js +1 -1
  193. package/src/integrations/paragraph.js +1 -1
  194. package/src/integrations/removeformat.js +1 -1
  195. package/src/integrations/replacesourcecommand.js +1 -1
  196. package/src/integrations/restrictededitingmode.js +1 -1
  197. package/src/integrations/shiftentercommand.js +1 -1
  198. package/src/integrations/standardeditingmode.js +1 -1
  199. package/src/integrations/style.js +1 -1
  200. package/src/integrations/table.js +1 -1
  201. package/src/integrations/tablecaption.js +1 -1
  202. package/src/integrations/tableclipboard.js +2 -2
  203. package/src/integrations/tablecolumnresize.js +1 -1
  204. package/src/integrations/tableheadings.js +1 -1
  205. package/src/integrations/tablelayout.js +1 -1
  206. package/src/integrations/tablemergesplit.js +1 -1
  207. package/src/integrations/tableofcontents.js +1 -1
  208. package/src/integrations/tableproperties.js +1 -1
  209. package/src/integrations/template.js +1 -1
  210. package/src/integrations/title.js +1 -1
  211. package/src/integrations/undo.js +1 -1
  212. package/src/integrations/uploadcare.js +1 -1
  213. package/src/integrations/utils.js +1 -1
  214. package/src/suggestion.js +2 -2
  215. package/src/suggestiondescriptionfactory.js +1 -1
  216. package/src/trackchanges.js +1 -1
  217. package/src/trackchangesdata.js +1 -1
  218. package/src/trackchangesediting.js +1 -1
  219. package/src/trackchangespreview.js +1 -1
  220. package/src/trackchangesui.js +1 -1
  221. package/src/ui/suggestioncontroller.js +2 -2
  222. package/src/ui/view/basesuggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionthreadview.js +1 -1
  224. package/src/ui/view/suggestionview.js +1 -1
  225. package/src/ui/view/trackchangespreviewview.js +1 -1
  226. package/src/utils/common-translations.js +1 -1
  227. 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 _0x1de005,Plugin as _0xc3381c,PendingActions as _0x43929c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x50c44a,ObservableMixin as _0x4e23fc,uid as _0x40bebf,priorities as _0x140f0d,insertToPriorityArray as _0x52ddac,toArray as _0x4d7f1e,logWarning as _0x15176d,getEnvKeystrokeText as _0x2ee597,FocusTracker as _0x3dc571,KeystrokeHandler as _0xf9590d,Collection as _0x364833}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x416caf,IconCancel as _0x34fbc3,IconTrackChanges as _0x3e8ec7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x5609d7,View as _0x5f0f48,ViewCollection as _0x212aff,FocusCycler as _0x1b12e5,UIModel as _0x27d310,createDropdown as _0x2a1174,SplitButtonView as _0x182c12,addListToDropdown as _0xf9d567,MenuBarMenuView as _0x422518,MenuBarMenuListView as _0x393953,ListSeparatorView as _0x4d71e8,MenuBarMenuListItemView as _0xfff36b,MenuBarMenuListItemButtonView as _0x38b565,BodyCollection as _0x44ccff,Dialog as _0x3c6ffe}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x187485,hashObject as _0x421d24,surroundingMarkersDetector as _0x599458,FOCUS_ANNOTATION_KEYSTROKE as _0x4f2c95,AriaDescriptionView as _0x28eb53,setupThreadKeyboardNavigation as _0x359702,trimHtml as _0x4008f3,UserView as _0x19cd45,LateFocusButtonView as _0x56ba04,getDateTimeFormatter as _0x141e15,getAllMarkersDomElementsSorted as _0x5bcafd,sanitizeEditorConfig as _0x158091}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0xa9a677,ModelLiveRange as _0x51ea19,ModelLivePosition as _0x400bd9,ViewDowncastWriter as _0x42d2ec}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1b893a,toWidget as _0x52436a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5189f9,set as _0x3f1e1b,isEqual as _0x50425d,unset as _0x440118,omit as Ut}from'es-toolkit/compat';import{Delete as _0x2c4166,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5e8dd4}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x14b56f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x1de005{['_enabledCommands'];constructor(_0x3b48e6,_0x194f75){super(_0x3b48e6),this['_enabledCommands']=_0x194f75,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 _0x22dec5 of this['editor']['commands']['commands']())_0x22dec5['affectsData']&&!this['_enabledCommands']['has'](_0x22dec5)&&_0x22dec5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2251d2 of this['editor']['commands']['commands']())_0x2251d2['affectsData']&&!this['_enabledCommands']['has'](_0x2251d2)&&_0x2251d2['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x1de005{['_suggestions'];constructor(_0x81e367,_0x30621b){super(_0x81e367),this['_suggestions']=_0x30621b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2c3e38){const _0x56f2d7=this['_suggestions']['get'](_0x2c3e38);if(!_0x56f2d7)throw new _0x50c44a('track-changes-accept-suggestion-not-found',this);const _0xdd686a=_0x56f2d7['getRanges']();this['editor']['model']['canEditAt'](_0xdd686a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x56f2d7);}}class $ extends _0x1de005{['_suggestions'];constructor(_0x3efd5e,_0x11a291){super(_0x3efd5e),this['_suggestions']=_0x11a291,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xdda8b6){const _0x444731=this['_suggestions']['get'](_0xdda8b6);if(!_0x444731)throw new _0x50c44a('track-changes-discard-suggestion-not-found',this);const _0x1ae8a9=_0x444731['getRanges']();this['editor']['model']['canEditAt'](_0x1ae8a9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x444731);}}function ls(_0x1b3f57,_0x5301bf){let _0x20d980='';return _0x20d980+=_0x1b3f57['split']('*')['map']((_0x4ba879,_0x4ba3fe)=>_0x4ba3fe%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x4ba879)+'</span>':Zt(_0x4ba879))['join'](''),_0x5301bf&&(_0x20d980+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5301bf['value']+'\x22\x20title=\x22'+_0x5301bf['title']+'\x22></span>'),_0x20d980;}function Zt(_0x2a7341){const _0x3332ed=document['createElement']('span');return _0x3332ed['innerText']=_0x2a7341,_0x3332ed['innerHTML'];}function ts(_0x51d37e){return _0x51d37e['sort']((_0x20f459,_0x3cc8f7)=>'attribute'===_0x20f459['type']&&'attribute'!==_0x3cc8f7['type']?-0x1:'attribute'!==_0x20f459['type']&&'attribute'===_0x3cc8f7['type']?0x1:'deletion'==_0x20f459['type']&&'deletion'!=_0x3cc8f7['type']?-0x1:'deletion'!=_0x20f459['type']&&'deletion'==_0x3cc8f7['type']?0x1:0x0);}function to(_0x2679b7,_0x255cb7){let _0xb0a3f2,_0x489c50=0x0;const _0x2dd838=[],_0x168c62=_0x255cb7['schema'];for(;_0x489c50<_0x2679b7['length'];){const _0x551a7b=_0x2679b7[_0x489c50],_0x258a83=_0x2679b7[_0x489c50+0x1];_0xb0a3f2||(_0xb0a3f2=_0x255cb7['createPositionBefore'](_0x551a7b)),tn(_0x255cb7,_0x551a7b,_0x258a83)||(_0x2dd838['push'](_0x255cb7['createRange'](_0xb0a3f2,_0x168c62['isObject'](_0x551a7b)?_0x255cb7['createPositionAfter'](_0x551a7b):_0x255cb7['createPositionAt'](_0x551a7b,'end'))),_0xb0a3f2=null),_0x489c50++;}return _0x2dd838;}function tn(_0x2287e5,_0x540419,_0x34db76){if(!_0x34db76)return!0x1;const _0x4f98a4=_0x2287e5['createPositionAfter'](_0x540419),_0x555aac=_0x2287e5['createPositionBefore'](_0x34db76);return _0x4f98a4['isTouching'](_0x555aac);}function rs(_0x1c5469,_0x46937d,_0x2080f5){for(;_0x2080f5['length'];){const _0x11684a=_0x2080f5['splice'](0x0,0x64);_0x1c5469['change'](()=>{for(const _0x43ed6c of _0x11684a)_0x43ed6c['isInContent']&&_0x46937d['execute'](_0x43ed6c['id']);});}}class M extends _0x1de005{['_command'];['_suggestions'];constructor(_0x5d91fe,_0x37d6b0,_0x31888e){super(_0x5d91fe),this['_command']=_0x37d6b0,this['_suggestions']=_0x31888e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5baed6=Array['from'](this['_suggestions']['values']())['some'](_0x252df0=>_0x252df0['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5baed6;}['execute'](){const _0x544ecc=ts(Array['from'](this['_suggestions']['values']()));for(const _0x45aa39 of _0x544ecc){const _0x3f74f5=_0x45aa39['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3f74f5))return;}rs(this['editor']['model'],this['_command'],_0x544ecc);}}class B extends _0x1de005{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3971fe,_0x1da39c,_0x4d1287){super(_0x3971fe),this['_command']=_0x1da39c,this['_suggestions']=_0x4d1287,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4b4147=this['editor']['model']['document']['selection'],_0x2e498f=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3cf706,_0x40d23f){const _0x54d817=Array['from'](_0x3cf706['getRanges']()),_0x1a1a79=new Set();for(const _0x2a1577 of _0x40d23f)if(_0x2a1577['isInContent']){for(const _0x3bda18 of _0x54d817)for(const _0xdfb8b of _0x2a1577['getRanges']())(_0x3bda18['isIntersecting'](_0xdfb8b)||_0x3cf706['isCollapsed']&&!_0x2a1577['isMultiRange']&&_0x2a1577['next']&&_0xdfb8b['end']['isTouching'](_0x3bda18['start']))&&_0x1a1a79['add'](_0x2a1577);}return _0x1a1a79;}(_0x4b4147,_0x2e498f),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3a7124=ts(Array['from'](this['_selectedSuggestions']));for(const _0x29f963 of _0x3a7124){const _0x60fc9e=_0x29f963['getRanges']();if(!this['editor']['model']['canEditAt'](_0x60fc9e))return;}rs(this['editor']['model'],this['_command'],_0x3a7124);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x4e23fc(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x56819a,_0x2fec2a){super(),this['id']=_0x2fec2a['id'],this['type']=_0x2fec2a['type'],this['subType']=_0x2fec2a['subType']||null,this['author']=_0x2fec2a['author'],this['creator']=_0x2fec2a['creator']||_0x2fec2a['author'],this['isExternal']=Boolean(_0x2fec2a['attributes']&&_0x2fec2a['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2fec2a['originalSuggestionId']||null,this['_model']=_0x56819a,this['_onAccept']=_0x2fec2a['onAccept'],this['_onDiscard']=_0x2fec2a['onDiscard'],this['_onAttributesChange']=_0x2fec2a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2fec2a['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 _0x57874e=this;for(;_0x57874e['previous'];)_0x57874e=_0x57874e['previous'];return _0x57874e;}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'](_0x3ae8fb){this['_markerNames']['add'](_0x3ae8fb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3cb8f7=>this['_model']['markers']['get'](_0x3cb8f7))['filter'](_0x4ac66a=>_0x4ac66a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x79cfc3=>{for(const _0x52fd2d of this['getMarkers']())_0x79cfc3['removeMarker'](_0x52fd2d);}),this['_markerNames']['clear']();}['removeMarker'](_0x1a9596){this['_model']['change'](_0x123dd4=>{_0x123dd4['removeMarker'](_0x1a9596);}),this['_markerNames']['delete'](_0x1a9596);}['addRange'](_0x7d47b4){const _0xf4b459='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0xf4b459),this['_model']['change'](_0x4ec6ce=>{_0x4ec6ce['addMarker'](_0xf4b459,{'range':_0x7d47b4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2c5d3e){for(const _0x3587b1 of this['getRanges']())if(_0x3587b1['isIntersecting'](_0x2c5d3e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x138c14=>_0x138c14['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4a182a,_0x4d8549)=>[..._0x4a182a,..._0x4d8549['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x252b3d=this['getRanges']();if(0x1!=_0x252b3d['length'])return null;const _0x345e0d=_0x252b3d[0x0],_0x58a0d9=_0x345e0d['start']['nodeAfter'],_0x29703f=_0x345e0d['end']['nodeBefore'];return _0x58a0d9 instanceof _0xa9a677?_0x58a0d9!=_0x29703f?null:_0x58a0d9: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 _0x5ddf5c=[];let _0x53f964=this['head'];for(;_0x53f964;)_0x5ddf5c['push'](_0x53f964),_0x53f964=_0x53f964['next'];return _0x5ddf5c;}['setAttribute'](_0x3714d8,_0x3f8c03){const _0x2c4e96=_0x5189f9(this['attributes']);_0x3f1e1b(_0x2c4e96,_0x3714d8,_0x3f8c03),_0x50425d(_0x2c4e96,this['attributes'])||(this['attributes']=_0x2c4e96,this['_onAttributesChange'](_0x2c4e96));}['removeAttribute'](_0x10e9f7){const _0x3df774=_0x5189f9(this['attributes']);_0x440118(_0x3df774,_0x10e9f7),_0x50425d(_0x3df774,this['attributes'])||(this['attributes']=_0x3df774,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 _0x40bebf()['substr'](0x1,0x5);}}function o(_0x2cb3bc,_0x17428b,_0x37c720){const _0x216444=_0x2cb3bc['t'],t=_0x2cb3bc['t'];switch(_0x17428b){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',_0x37c720);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x37c720);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x37c720);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x37c720);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x37c720);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',_0x37c720);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x37c720);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',_0x37c720);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x37c720);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x37c720);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x37c720);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x37c720);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x37c720);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x37c720);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x37c720);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x37c720);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x37c720);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x37c720);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x37c720);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x37c720);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x37c720);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x37c720);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x37c720);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x37c720);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x37c720);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'},_0x37c720);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x37c720);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x37c720);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x37c720);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x37c720);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x37c720);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x37c720);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x37c720);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'},_0x37c720);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x37c720);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x37c720);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x37c720);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x37c720);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'},_0x37c720);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x37c720);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'},_0x37c720);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x37c720);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x37c720);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'},_0x37c720);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x37c720);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'},_0x37c720);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x37c720);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x37c720);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'},_0x37c720);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x37c720);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 _0x216444({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x37c720);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x216444({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x37c720);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x37c720);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'},_0x37c720);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'},_0x37c720);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'},_0x37c720);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x17428b;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x57ac50,_0x580cf5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x57ac50,this['_locale']=_0x580cf5;}['getDescriptions'](_0x502bc6){const _0x3cd2ea=[],_0x199759=new Set(),_0x5cc5f6=new Set();for(let _0x53abba=0x0;_0x53abba<_0x502bc6['length'];_0x53abba++){const _0x3abd40=_0x502bc6[_0x53abba];if(!_0x3abd40['isInContent'])continue;const _0x443e96=this['_handleCustomCallbackDescription'](_0x3abd40);if(_0x443e96){if(null!=_0x3abd40['subType']){if(_0x199759['has'](_0x3abd40['subType']))continue;_0x199759['add'](_0x3abd40['subType']);}_0x3cd2ea['push'](_0x443e96);}else{if('attribute'==_0x3abd40['type']){const _0x5182a4=_0x3abd40['data']['key'];if(_0x5cc5f6['has'](_0x5182a4))continue;_0x5cc5f6['add'](_0x3abd40['data']['key']),_0x5182a4==m?this['_handleRenameSuggestionDescription'](_0x3cd2ea,_0x3abd40):this['_handleAttributeSuggestionDescription'](_0x3cd2ea,_0x3abd40);continue;}'insertion'!=_0x3abd40['type']&&'deletion'!=_0x3abd40['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3cd2ea,_0x3abd40,_0x502bc6[_0x53abba+0x1]);}}return this['_resolveDescriptionItems'](_0x3cd2ea);}['registerDescriptionCallback'](_0x136ea5){this['_customCallbacks']['push'](_0x136ea5);}['registerElementLabel'](_0x232df3,_0x5f0110,_0x1310b0=_0x140f0d['normal']){'function'==typeof _0x232df3?_0x52ddac(this['_itemLabelsCallbacks'],{'matchingCallback':_0x232df3,'label':_0x5f0110,'priority':_0x1310b0}):this['_itemLabels']['set'](_0x232df3,_0x5f0110);}['registerAttributeLabel'](_0x2e9863,_0xa2923e){this['_attributeLabels']['set'](_0x2e9863,_0xa2923e);}['getItemLabel'](_0x25fe62,_0x5cd987=0x1){let _0x557e6c;for(const _0x1567dd of this['_itemLabelsCallbacks'])if(_0x1567dd['matchingCallback'](_0x25fe62)){_0x557e6c=_0x1567dd['label'];break;}return _0x557e6c||(_0x557e6c=this['_itemLabels']['get'](_0x25fe62['name'])),_0x557e6c?_0x557e6c(_0x5cd987):0x1!==_0x5cd987?_0x5cd987+'\x20'+_0x25fe62['name']+'s':''+_0x25fe62['name'];}['_addDescriptionItems'](_0x358216,_0x222e6e){const _0x105dbb=_0x222e6e['getFirstRange']()['getWalker'](),_0x5e8a1e='insertion'==_0x222e6e['type']?'add':'remove';for(const _0x2d0a3a of _0x105dbb){const _0x48c064=_0x2d0a3a['item'],_0x51b0e9=_0x358216[_0x358216['length']-0x1];if(_0x48c064['is']('$textProxy'))_0x51b0e9&&_0x51b0e9['type']['indexOf']('Container')>-0x1&&_0x358216['pop'](),_0x51b0e9&&'text'==_0x51b0e9['type']?_0x51b0e9[_0x5e8a1e]+=_0x48c064['data']:_0x358216['push']({'type':'text','add':'add'==_0x5e8a1e?_0x48c064['data']:'','remove':'remove'==_0x5e8a1e?_0x48c064['data']:''});else{if(this['_schema']['isObject'](_0x48c064)){const _0x479083=_0x48c064;if(_0x51b0e9&&_0x51b0e9['type']['indexOf']('Container')>-0x1&&_0x358216['pop'](),'elementEnd'==_0x2d0a3a['type'])continue;_0x51b0e9&&_0x51b0e9['type']==_0x5e8a1e+'Object'&&_0x51b0e9['element']['name']==_0x479083['name']?_0x51b0e9['quantity']++:_0x358216['push']({'type':_0x5e8a1e+'Object','element':_0x479083,'quantity':0x1}),_0x105dbb['skip'](_0x3e1d57=>!('elementEnd'==_0x3e1d57['type']&&_0x3e1d57['item']==_0x48c064));}else{if(this['_schema']['checkChild'](_0x48c064,'$text')||_0x48c064['is']('element','softBreak')){const _0xc97ce=_0x48c064;if('add'==_0x5e8a1e&&'elementStart'==_0x2d0a3a['type']||'remove'==_0x5e8a1e&&'elementEnd'==_0x2d0a3a['type'])continue;if(_0x51b0e9&&-0x1==_0x51b0e9['type']['indexOf']('Container')){'text'==_0x51b0e9['type']&&(_0x51b0e9[_0x5e8a1e]+='\x0a');continue;}let _0x17c7d5;if(_0x17c7d5='add'==_0x5e8a1e?_0xc97ce['nextSibling']&&!this['_schema']['isObject'](_0xc97ce['nextSibling'])?_0xc97ce['nextSibling']:null:_0xc97ce['previousSibling']&&!this['_schema']['isObject'](_0xc97ce['previousSibling'])?_0xc97ce['previousSibling']:null,_0xc97ce['isEmpty']||_0x17c7d5&&_0x17c7d5['isEmpty']){const _0x1345e1=_0x17c7d5&&_0x17c7d5['isEmpty']?_0x17c7d5:_0xc97ce;_0x51b0e9&&_0x51b0e9['type']==_0x5e8a1e+'EmptyContainer'&&_0x51b0e9['element']['name']==_0x1345e1['name']?_0x51b0e9['quantity']++:_0x358216['push']({'type':_0x5e8a1e+'EmptyContainer','element':_0x1345e1,'quantity':0x1});}else _0x358216['push']({'type':_0x5e8a1e+'Container','element':_0xc97ce});}}}}}['_resolveDescriptionItems'](_0x105da4){const _0x10e016=this['_locale'],_0x8e4e25=[],_0x20704d=[],_0x34df80=[];for(const _0x416a55 of _0x105da4)switch(_0x416a55['type']){case'text':if(_0x416a55['add']=_0x416a55['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x416a55['remove']=_0x416a55['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x416a55['add']&&''!=_0x416a55['remove']){_0x8e4e25['push']({'type':'replace','content':o(_0x10e016,'REPLACE_TEXT',['\x22'+_0x416a55['remove']+'\x22','\x22'+_0x416a55['add']+'\x22'])});continue;}if(null!=_0x416a55['add']['match'](/^ +$/)){_0x8e4e25['push']({'type':'insertion','content':o(_0x10e016,'*Insert:*\x20%0',o(_0x10e016,'ELEMENT_SPACE',_0x416a55['add']['length']))});continue;}if(null!=_0x416a55['remove']['match'](/^ +$/)){_0x8e4e25['push']({'type':'deletion','content':o(_0x10e016,'*Remove:*\x20%0',o(_0x10e016,'ELEMENT_SPACE',_0x416a55['remove']['length']))});continue;}if(''!=_0x416a55['add']){_0x8e4e25['push']({'type':'insertion','content':o(_0x10e016,'*Insert:*\x20%0','\x22'+_0x416a55['add']+'\x22')});continue;}_0x8e4e25['push']({'type':'deletion','content':o(_0x10e016,'*Remove:*\x20%0','\x22'+_0x416a55['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x8e4e25['push']({'type':'insertion','content':o(_0x10e016,'*Insert:*\x20%0',this['getItemLabel'](_0x416a55['element'],_0x416a55['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x8e4e25['push']({'type':'deletion','content':o(_0x10e016,'*Remove:*\x20%0',this['getItemLabel'](_0x416a55['element'],_0x416a55['quantity']))});continue;case'addContainer':_0x8e4e25['push']({'type':'insertion','content':o(_0x10e016,'*Split:*\x20%0',this['getItemLabel'](_0x416a55['element'],_0x416a55['quantity']))});continue;case'removeContainer':_0x8e4e25['push']({'type':'deletion','content':o(_0x10e016,'*Merge:*\x20%0',this['getItemLabel'](_0x416a55['element'],_0x416a55['quantity']))});continue;case'addFormat':_0x20704d['push'](_0x416a55['key']);continue;case'removeFormat':_0x34df80['push'](_0x416a55['key']);continue;default:_0x8e4e25['push'](_0x416a55);}if(_0x20704d['length']){const _0x17e139=_0x20704d['map'](_0x309b46=>this['_attributeLabels']['has'](_0x309b46)?this['_attributeLabels']['get'](_0x309b46):_0x309b46)['join'](',\x20');_0x8e4e25['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x17e139)});}if(_0x34df80['length']){const _0xe41ea3=_0x34df80['map'](_0xbb8cc8=>this['_attributeLabels']['has'](_0xbb8cc8)?this['_attributeLabels']['get'](_0xbb8cc8):_0xbb8cc8)['join'](',\x20');_0x8e4e25['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xe41ea3)});}return _0x8e4e25;}['_handleCustomCallbackDescription'](_0x4956eb){for(const _0x14e4fc of this['_customCallbacks']){const _0x407af8=_0x14e4fc(_0x4956eb);if(_0x407af8&&'type'in _0x407af8)return _0x407af8;}}['_handleAttributeSuggestionDescription'](_0x2924ed,_0xacbaae){const _0x5552ee=_0xacbaae['data'],_0x5c6082=void 0x0===_0x5552ee['newValue']?'removeFormat':'addFormat';_0x2924ed['push']({'type':_0x5c6082,'key':_0x5552ee['key']});}['_handleRenameSuggestionDescription'](_0x5b2737,_0x155afc){_0x5b2737['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x155afc['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x35961d,_0xcf6a2b,_0x884bb2){if(this['_addDescriptionItems'](_0x35961d,_0xcf6a2b),_0x884bb2&&_0x884bb2['getFirstRange']()&&!_0xcf6a2b['getFirstRange']()['end']['isEqual'](_0x884bb2['getFirstRange']()['start'])){const _0x2e6db6=_0x35961d[_0x35961d['length']-0x1],_0x2bc1a6='insertion'==_0xcf6a2b['type']?'add':'remove';_0x2e6db6&&'text'==_0x2e6db6['type']&&(_0x2e6db6[_0x2bc1a6]+='\x0a');}}}class O extends _0xc3381c{['afterInit'](){const _0x4dbaa0=this['editor'],_0x4884a4=_0x4dbaa0['plugins']['get']('TrackChangesEditing');_0x4dbaa0['commands']['get']('showAIAssistant')&&_0x4884a4['enableCommand']('showAIAssistant');}}class E extends _0xc3381c{['afterInit'](){const _0xfefd1b=this['editor'],_0x40a308=_0xfefd1b['locale'];if(!_0xfefd1b['plugins']['has']('AlignmentEditing'))return;const _0x4b00cd=_0xfefd1b['plugins']['get']('TrackChangesEditing');_0x4b00cd['enableDefaultAttributesIntegration']('alignment'),_0x4b00cd['registerBlockAttribute']('alignment'),_0x4b00cd['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x40a308,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xff2b79=this['editor'],_0x2413bf=_0xff2b79['locale'];_0xff2b79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c4d42=>{if('formatBlock'!=_0x1c4d42['type'])return;const {data:_0x2cd302}=_0x1c4d42;if(_0x2cd302&&'alignment'==_0x2cd302['commandName']){const _0x2cb21c=_0x2cd302['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2413bf,'*Format:*\x20%0',function(_0x53843d){switch(_0x53843d){case'left':return o(_0x2413bf,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2413bf,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2413bf,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2413bf,'FORMAT_JUSTIFY_TEXT');}}(_0x2cb21c))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xc3381c{['afterInit'](){const _0x508a58=this['editor'],_0x2ad294=_0x508a58['plugins']['get']('TrackChangesEditing'),_0x89f429=_0x508a58['locale'];for(const _0x581fa6 of ti){if(!_0x508a58['plugins']['has'](_0x581fa6))continue;const _0x32d247=_0x581fa6['slice'](0x0,-0x7)['toLowerCase'](),_0x11e591='FORMAT_'+_0x32d247['toUpperCase']();_0x2ad294['enableDefaultAttributesIntegration'](_0x32d247),_0x2ad294['registerInlineAttribute'](_0x32d247),_0x2ad294['descriptionFactory']['registerAttributeLabel'](_0x32d247,o(_0x89f429,_0x11e591));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x114ff7=this['editor'],_0x3be9c6=_0x114ff7['locale'],_0x431887=_0x114ff7['plugins']['get']('TrackChangesEditing');function _0xe59db2(_0x54ac74,_0x1d7930){_0x431887['descriptionFactory']['registerDescriptionCallback'](_0x221640=>{if('formatInline'!=_0x221640['type'])return;const {data:_0x3c06c0}=_0x221640;return _0x3c06c0&&_0x3c06c0['commandName']===_0x54ac74?_0x3c06c0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3be9c6,'*Format:*\x20%0',_0x1d7930)}:{'type':'format','content':o(_0x3be9c6,'*Remove\x20format:*\x20%0',_0x1d7930)}:void 0x0;});}_0xe59db2('bold',o(_0x3be9c6,'FORMAT_BOLD')),_0xe59db2('italic',o(_0x3be9c6,'FORMAT_ITALIC')),_0xe59db2('underline',o(_0x3be9c6,'FORMAT_UNDERLINE')),_0xe59db2('code',o(_0x3be9c6,'FORMAT_CODE')),_0xe59db2('strikethrough',o(_0x3be9c6,'FORMAT_STRIKETHROUGH')),_0xe59db2('subscript',o(_0x3be9c6,'FORMAT_SUBSCRIPT')),_0xe59db2('superscript',o(_0x3be9c6,'FORMAT_SUPERSCRIPT'));}}class U extends _0xc3381c{['afterInit'](){const _0x479546=this['editor'],_0x6d96d7=_0x479546['locale'];if(!_0x479546['plugins']['has']('BlockQuoteEditing'))return;const _0x5f1a44=_0x479546['plugins']['get']('TrackChangesEditing'),_0x26877e=this['editor']['commands']['get']('blockQuote');_0x5f1a44['enableCommand']('blockQuote',(_0x174e2c,_0x529c70={})=>{const _0x3c7359=this['editor']['model']['document']['selection'],_0x579c45=_0x529c70&&void 0x0!==_0x529c70['forceValue']?_0x529c70['forceValue']:!_0x26877e['value'];let _0x41378f=[];if(_0x579c45){const _0x2334aa=Array['from'](_0x3c7359['getSelectedBlocks']())['filter'](_0x58cbfe=>oo(_0x58cbfe)||function(_0x56b7d3,_0x53f328){const _0x232bb8=_0x53f328['checkChild'](_0x56b7d3['parent'],'blockQuote'),_0x6efb89=_0x53f328['checkChild'](['$root','blockQuote'],_0x56b7d3);return _0x232bb8&&_0x6efb89;}(_0x58cbfe,this['editor']['model']['schema']));_0x41378f=to(_0x2334aa,_0x479546['model']);}else{const _0x42d395=Array['from'](_0x3c7359['getSelectedBlocks']())['filter'](_0x420e7e=>oo(_0x420e7e));_0x41378f=to(_0x42d395,_0x479546['model']);}_0x479546['model']['change'](()=>{for(const _0xc2e278 of _0x41378f)_0x5f1a44['markBlockFormat'](_0xc2e278,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x579c45}]});});}),_0x5f1a44['descriptionFactory']['registerDescriptionCallback'](_0x20cce2=>{const {data:_0x4e8d04}=_0x20cce2;if(_0x4e8d04&&'blockQuote'==_0x4e8d04['commandName']){const _0x4c24b6=o(_0x6d96d7,'ELEMENT_BLOCK_QUOTE');return _0x4e8d04['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6d96d7,'*Set\x20format:*\x20%0',_0x4c24b6)}:{'type':'format','content':o(_0x6d96d7,'*Remove\x20format:*\x20%0',_0x4c24b6)};}});}}function oo(_0x4370c6){return'blockQuote'==_0x4370c6['parent']['name'];}class V extends _0xc3381c{['afterInit'](){const _0x42dbe5=this['editor'],_0x506ad9=_0x42dbe5['locale'],_0x4a8dc4=_0x42dbe5['plugins']['get']('TrackChangesEditing');_0x42dbe5['plugins']['has']('BookmarkEditing')&&(_0x4a8dc4['enableCommand']('insertBookmark'),_0x4a8dc4['enableDefaultAttributesIntegration']('updateBookmark'),_0x4a8dc4['registerBlockAttribute']('bookmarkId'),_0x4a8dc4['descriptionFactory']['registerDescriptionCallback'](_0x1e7364=>{if('insertion'!=_0x1e7364['type']&&'deletion'!=_0x1e7364['type']&&'attribute'!=_0x1e7364['type'])return;const _0x3b03ba=_0x1e7364['getContainedElement']();if(null==_0x3b03ba)return;if(!_0x3b03ba['is']('element','bookmark'))return;const _0x275f51=_0x3b03ba['getAttribute']('bookmarkId');if('insertion'==_0x1e7364['type'])return{'type':'insertion','content':o(_0x506ad9,'*Insert:*\x20%0','\x22'+_0x275f51+'\x22\x20'+o(_0x506ad9,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1e7364['type'])return{'type':'deletion','content':o(_0x506ad9,'*Remove:*\x20%0','\x22'+_0x275f51+'\x22\x20'+o(_0x506ad9,'ELEMENT_BOOKMARK'))};const {data:_0x46e30d}=_0x1e7364;if(!_0x46e30d||'bookmarkId'!=_0x46e30d['key'])return;return{'type':'format','content':o(_0x506ad9,'*Set\x20bookmark:*\x20%0','\x22'+_0x46e30d['newValue']+'\x22')};}));}}class F extends _0xc3381c{['afterInit'](){const _0x3aefd7=this['editor'];_0x3aefd7['plugins']['has']('CaseChange')&&(_0x3aefd7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3aefd7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3aefd7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xc3381c{['afterInit'](){const _0x55e682=this['editor'];_0x55e682['commands']['get']('ckbox')&&_0x55e682['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xc3381c{['afterInit'](){const _0x364901=this['editor'];if(!_0x364901['plugins']['has']('CodeBlock'))return;const _0x35b82d=_0x364901['plugins']['get']('TrackChangesEditing'),_0x5bfd28=_0x364901['locale'],_0x4df29b=_0x364901['config']['get']('codeBlock')['languages'],_0x5cc87f=_0x364901['commands']['get']('codeBlock');_0x35b82d['enableCommand']('indentCodeBlock'),_0x35b82d['enableCommand']('outdentCodeBlock'),_0x35b82d['enableCommand']('codeBlock',(_0x3f133e,_0x15f1a8={})=>{const _0x158d3a=_0x364901['model'],_0x106cd2=_0x364901['model']['document']['selection'],_0x5039d=_0x15f1a8&&void 0x0!==_0x15f1a8['forceValue']?_0x15f1a8['forceValue']:!_0x5cc87f['value'];let _0x4c676e;_0x15f1a8['language']||(_0x15f1a8['language']=_0x4df29b[0x0]['language']),_0x4c676e=_0x5039d?Array['from'](_0x106cd2['getSelectedBlocks']())['filter'](_0x170a75=>co(_0x170a75)||function(_0x5128a7,_0x5d5ef2){if(_0x5128a7['is']('rootElement')||_0x5d5ef2['isLimit'](_0x5128a7))return!0x1;return _0x5d5ef2['checkChild'](_0x5128a7['parent'],'codeBlock');}(_0x170a75,_0x158d3a['schema'])):Array['from'](_0x106cd2['getSelectedBlocks']())['filter'](_0x5c74db=>co(_0x5c74db));const _0x2a729d=to(_0x4c676e,_0x158d3a);_0x158d3a['change'](()=>{for(const _0x36b9f4 of _0x2a729d)_0x35b82d['markBlockFormat'](_0x36b9f4,{'commandName':'codeBlock','commandParams':[{..._0x15f1a8,'forceValue':_0x5039d}],'formatGroupId':'blockName'});});}),(_0x35b82d['descriptionFactory']['registerElementLabel']('codeBlock',_0x31f52c=>o(_0x5bfd28,'ELEMENT_CODE_BLOCK',_0x31f52c)),_0x35b82d['descriptionFactory']['registerDescriptionCallback'](_0x474f9a=>{if('formatBlock'!=_0x474f9a['type'])return;const _0x15374f=_0x5bfd28['t'],{data:_0xfc310b}=_0x474f9a;if(!_0xfc310b||'codeBlock'!=_0xfc310b['commandName'])return;const _0x206b72=_0xfc310b['commandParams'][0x0]['language'],_0x294d02=_0x15374f(_0x4df29b['find'](_0x550f36=>_0x550f36['language']===_0x206b72)['label'])['toLowerCase']();return _0xfc310b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5bfd28,'*Set\x20format:*\x20%0',o(_0x5bfd28,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x294d02+')')}:{'type':'format','content':o(_0x5bfd28,'*Remove\x20format:*\x20%0',o(_0x5bfd28,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0xa8473){return'codeBlock'==_0xa8473['name'];}class J extends _0xc3381c{['afterInit'](){const _0x21ac70=this['editor'];if(!_0x21ac70['plugins']['has']('CommentsEditing'))return;_0x21ac70['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3fae37,_0x356807,_0x405f03){const _0x1f2ed2=[];for(const _0x4b1a5e of _0x356807['getItems']())_0x4b1a5e['hasAttribute'](_0x3fae37)&&_0x1f2ed2['push'](_0x405f03['createRangeOn'](_0x4b1a5e));return _0x1f2ed2;}function De(_0x5dd94d,_0x49344e,{showActiveMarker:_0x2c4e1f=!0x0}={}){const _0x10e58d=_0x5dd94d['plugins']['get']('TrackChangesEditing');return(_0x489f40,_0x2de1fc,_0xf052e0)=>{if(!_0xf052e0['consumable']['test'](_0x2de1fc['markerRange'],_0x489f40['name']))return;const _0x4e51ba=_0x2de1fc['markerRange']['getWalker'](),_0x3ae277=_0x2de1fc['markerRange']['start'],_0x3b06cc=_0x5dd94d['model']['schema'];let _0x5c724b=null,_0x26d6e0=null,_0x412167=!0x1,_0x586023=!0x1;for(const _0xbc41c8 of _0x4e51ba){const _0xb7b9c0=_0xbc41c8['item'];_0x412167=_0x412167||_0x3b06cc['isContent'](_0xb7b9c0);const _0x149dd0=_0xf052e0['mapper']['toViewElement'](_0xb7b9c0);if(_0x149dd0&&_0x149dd0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xbc41c8['type']&&(_0x3b06cc['isBlock'](_0xb7b9c0)&&!_0x3b06cc['isLimit'](_0xb7b9c0)&&(_0xb7b9c0['nextSibling']||_0x3ae277['isAtEnd']?_0x5c724b&&_0x5c724b['parent']==_0xb7b9c0||(_0x5c724b=_0xb7b9c0,_0x45fc6a(_0xbc41c8['previousPosition']),_0x586023=!0x0):_0x26d6e0=_0x26d6e0||_0xbc41c8['previousPosition']));}function _0x45fc6a(_0x71972){const {id:_0x2eb256,authorId:_0x50e681}=_0x10e58d['_splitMarkerName'](_0x2de1fc['markerName']),_0x2254d1=_0xf052e0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x49344e,'data-suggestion':_0x2eb256,'data-author-id':_0x50e681}),_0x273ce1=_0xf052e0['mapper']['toViewPosition'](_0x71972);_0x2c4e1f&&_0x10e58d['activeMarkers']['includes'](_0x2de1fc['markerName'])&&_0xf052e0['writer']['addClass']('ck-suggestion-marker--active',_0x2254d1),_0xf052e0['writer']['insert'](_0x273ce1,_0x2254d1),_0xf052e0['mapper']['bindElementToMarker'](_0x2254d1,_0x2de1fc['markerName']);}_0x412167||_0x586023||!_0x26d6e0||_0x45fc6a(_0x26d6e0);};}class K extends _0xc3381c{static get['requires'](){return[_0x2c4166];}['init'](){const _0x187d55=this['editor'],_0x52189b=_0x187d55['plugins']['get']('TrackChangesEditing');_0x52189b['enableCommand']('delete');const _0x14ecac=_0x187d55['commands']['get']('deleteForward');_0x52189b['enableCommand']('deleteForward',(_0x2705ed,_0x1d93eb={})=>{const _0x1d4afd=_0x187d55['model']['createSelection'](_0x187d55['model']['document']['selection']);_0x1d4afd['isCollapsed']&&_0x187d55['model']['modifySelection'](_0x1d4afd,{'direction':'forward','unit':_0x1d93eb['unit']});const _0x19be0f=_0x1d4afd['getFirstRange'](),_0xaf5270=_0x51ea19['fromRange'](_0x19be0f);let _0x539895;_0x2705ed(_0x1d93eb),_0x539895='$graveyard'==_0xaf5270['root']['rootName']?_0x187d55['model']['createRange'](_0x19be0f['start']):_0x187d55['model']['createRange'](_0xaf5270['start'],_0xaf5270['end']),_0xaf5270['detach'](),_0x187d55['model']['enqueueChange'](_0x14ecac['buffer']['batch'],_0x2166ae=>{_0x14ecac['buffer']['lock'](),_0x2166ae['setSelection'](_0x2166ae['createRange'](_0x539895['end'])),_0x14ecac['buffer']['unlock']();});}),_0x187d55['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x187d55,'merge'),{'priority':'high'}),_0x187d55['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x56d138,_0x520892,_0x1e9d50)=>{_0x1e9d50['options']['showSuggestionHighlights']&&De(_0x187d55,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x56d138,_0x520892,_0x1e9d50);},{'priority':'high'}),_0x187d55['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1da239,_0x3422e2,_0x4cc91d)=>{const _0x1d35cd=_0x4cc91d['mapper']['markerNameToElements'](_0x3422e2['markerName']);if(_0x1d35cd){for(const _0x4da745 of _0x1d35cd)_0x4da745['is']('uiElement')&&(_0x4cc91d['mapper']['unbindElementFromMarkerName'](_0x4da745,_0x3422e2['markerName']),_0x4cc91d['writer']['remove'](_0x4da745));}},{'priority':'high'});}}class H extends _0xc3381c{['afterInit'](){const _0xc32fa4=this['editor'];if(!_0xc32fa4['plugins']['has']('ListEditing'))return;const _0x423e68=_0xc32fa4['locale'],_0x333135=_0xc32fa4['plugins']['get']('TrackChangesEditing'),_0x187201=_0xc32fa4['plugins']['has']('TodoListEditing'),_0x49e76d=!!_0xc32fa4['config']['get']('list.multiBlock');function _0xe690f3(_0x3930d7){return{'type':'format','content':''+o(_0x423e68,'*Set\x20format:*\x20%0',_0x3930d7)};}function _0x1b287c(_0x5adab5){return{'type':'format','content':''+o(_0x423e68,'*Remove\x20format:*\x20%0',_0x5adab5)};}_0x333135['enableDefaultAttributesIntegration']('numberedList'),_0x333135['enableDefaultAttributesIntegration']('bulletedList'),_0x333135['enableDefaultAttributesIntegration']('customNumberedList'),_0x333135['enableDefaultAttributesIntegration']('customBulletedList'),_0x333135['enableDefaultAttributesIntegration']('indentList'),_0x333135['enableDefaultAttributesIntegration']('outdentList'),_0x333135['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x333135['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x333135['registerBlockAttribute']('listItemId'),_0x333135['registerBlockAttribute']('listType'),_0x333135['registerBlockAttribute']('listIndent'),_0x49e76d&&(_0x333135['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x333135['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x187201&&(_0x333135['enableDefaultAttributesIntegration']('todoList'),_0x333135['enableDefaultAttributesIntegration']('checkTodoList'),_0x333135['registerBlockAttribute']('todoListChecked'),_0x333135['descriptionFactory']['registerDescriptionCallback'](_0x355934=>{const {data:_0x1d16de}=_0x355934;if(_0x1d16de&&'todoListChecked'==_0x1d16de['key'])return{'type':'format','content':_0x1d16de['newValue']?o(_0x423e68,'*Check\x20item*'):o(_0x423e68,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x48c007=>{if(_0x48c007['batch']['isUndo'])return!0x1;let _0x49303a=!0x1;const _0x458a6c=_0x333135['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45e5da=>'todoListChecked'===_0x333135['_getAttributeKey'](_0x45e5da));for(const _0x5515f0 of _0x458a6c){'todo'!=_0x5515f0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x333135['_findSuggestions'](_0x5515f0['getFirstRange'](),'attribute')['find'](_0x40cc47=>'listType'===_0x333135['_getAttributeKey'](_0x40cc47['suggestion']))||(_0x48c007['removeMarker'](_0x5515f0['getFirstMarker']()),_0x49303a=!0x0));}return _0x49303a;})),_0x333135['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x423e68,'FORMAT_INDENT'));const _0x427525={'type':'format','content':''};_0x333135['descriptionFactory']['registerDescriptionCallback'](_0x54e272=>{const {data:_0x54f28c}=_0x54e272;if(!_0x54f28c||'listType'!=_0x54f28c['key'])return;let _0x4f2b27=_0x54e272['head'];for(;_0x4f2b27;){if(_0x4f2b27['data']&&(('listStyle'==_0x4f2b27['data']['key']||'listMarkerStyle'==_0x4f2b27['data']['key'])&&(_0x4f2b27['data']['newValue']&&'default'!=_0x4f2b27['data']['newValue']||'default'!=_0x4f2b27['data']['oldValue']&&!_0x54f28c['newValue'])||!_0x49e76d&&_0x4f2b27['data']['key']==m))return _0x427525;_0x4f2b27=_0x4f2b27['next'];}if(null==_0x54f28c['newValue'])switch(_0x54f28c['oldValue']){case'bulleted':return _0x1b287c(o(_0x423e68,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b287c(o(_0x423e68,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b287c(o(_0x423e68,'ELEMENT_TODO_LIST'));}switch(_0x54f28c['newValue']){case'bulleted':return _0xe690f3(o(_0x423e68,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe690f3(o(_0x423e68,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe690f3(o(_0x423e68,'ELEMENT_TODO_LIST'));}}),_0x333135['descriptionFactory']['registerDescriptionCallback'](_0x2c8c69=>{const {data:_0x3cb7bb}=_0x2c8c69;if(_0x3cb7bb&&'listIndent'==_0x3cb7bb['key'])return null==_0x3cb7bb['newValue']||null==_0x3cb7bb['oldValue']&&0x0==_0x3cb7bb['newValue']?_0x427525:void 0x0;}),_0x333135['descriptionFactory']['registerDescriptionCallback'](_0x5457cc=>{if('attribute'!=_0x5457cc['type'])return;const {data:_0x13c17b}=_0x5457cc;if(!_0x13c17b||'listItemId'!=_0x13c17b['key'])return;const _0x5da788=Te(_0x5457cc);return'newValue'==_0x5da788?{'type':'format','content':o(_0x423e68,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5da788?{'type':'format','content':o(_0x423e68,'*Split:*\x20list\x20item')}:_0x427525;}),_0xc32fa4['model']['document']['registerPostFixer'](_0x3a7f3d=>this['listItemIdFixer'](_0x3a7f3d)),_0xc32fa4['model']['document']['registerPostFixer'](_0x2df082=>this['noTrackChangesFixer'](_0x2df082)),_0xc32fa4['model']['document']['on']('change:data',(_0x45a7bb,_0x1892f1)=>{if(_0x1892f1['isUndo']||!_0x1892f1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5d5e35){if(_0x5d5e35['batch']['isUndo']||!_0x5d5e35['batch']['isLocal'])return!0x1;let _0x57a610=!0x1;const _0x102f90=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cc3c6=>_0x5cc3c6['data']&&'listItemId'==_0x5cc3c6['data']['key'])['filter'](_0x2f06db=>_0x2f06db['data']['newValue']&&_0x2f06db['data']['oldValue']);for(const _0x30cb2a of _0x102f90)Te(_0x30cb2a)||(_0x5d5e35['removeMarker'](_0x30cb2a['getFirstMarker']()),_0x57a610=!0x0);return _0x57a610;}['noTrackChangesFixer'](_0x12157e){if(_0x12157e['batch']['isUndo']||!_0x12157e['batch']['isLocal'])return!0x1;const _0x5289ff=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5289ff['trackChangesCommand']['value'])return!0x1;let _0x148585=!0x1;const _0x375a53=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x107086=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x55d8db=>'attribute'==_0x55d8db['type'])['filter'](_0x17f449=>_0x375a53['includes'](_0x17f449['attributeKey']));if(0x0==_0x107086['length'])return _0x148585;for(const _0x5a018e of _0x107086){const _0x5492cc=_0x5289ff['_findSuggestions'](_0x5a018e['range'],'attribute')['filter'](_0x1113ca=>!_0x1113ca['meta']['isNextTo'])['map'](_0x467676=>_0x467676['suggestion'])['filter'](_0x369896=>{const _0x295403=_0x5289ff['_getAttributeKey'](_0x369896);return _0x375a53['includes'](_0x295403);});if(_0x5492cc['length']){for(const _0x490d8c of _0x5492cc)_0x12157e['removeMarker'](_0x490d8c['getFirstMarker']());_0x148585=!0x0;}}return _0x148585;}['assureChains'](){const _0x1b7454=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57ce85=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3f0a53;const _0x305774=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x170d02=>{if(_0x170d02['data']['oldRange']||!_0x170d02['data']['newRange'])return null;if(!_0x170d02['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x37b44e}=_0x1b7454['_splitMarkerName'](_0x170d02['name']);if(!_0x1b7454['hasSuggestion'](_0x37b44e))return null;const _0x2fe327=_0x1b7454['getSuggestion'](_0x37b44e);return _0x57ce85['includes'](_0x2fe327['data']['key']);})['map'](_0x6988f8=>{const {id:_0xb34554}=_0x1b7454['_splitMarkerName'](_0x6988f8['name']),_0x24526b=_0x1b7454['getSuggestion'](_0xb34554);return _0x3f0a53=_0x24526b['attributes']['groupId'],_0x24526b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x305774['size'])return;const _0x565e4b=_0x1b7454['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3de5b3=>'attribute'==_0x3de5b3['type']&&_0x3de5b3['data']&&_0x57ce85['includes'](_0x3de5b3['data']['key'])&&_0x3de5b3['attributes']['groupId']!=_0x3f0a53)['map'](_0x3743ec=>({'listItem':_0x3743ec['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3743ec['attributes']['groupId']})),_0x4d4b5c=new Set();for(const {groupId:_0x4dd1ee,listItem:_0x47c33b}of _0x565e4b)_0x305774['has'](_0x47c33b)&&_0x4d4b5c['add'](_0x4dd1ee);for(const _0x14aea1 of _0x1b7454['getSuggestions']())_0x4d4b5c['has'](_0x14aea1['attributes']['groupId'])&&_0x14aea1['setAttribute']('groupId',_0x3f0a53);}['_supportLegacySuggestions'](){const _0x2d300e=this['editor'],_0x395040=_0x2d300e['locale'],_0x510944=_0x2d300e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x510944['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4ee39b,_0x1617be){const _0x33677a=[];for(let _0x26d8d7 of _0x4ee39b)_0x26d8d7['start']['nodeAfter']===_0x26d8d7['end']['parent']&&(_0x26d8d7=_0x2d300e['model']['createRange'](_0x2d300e['model']['createPositionAt'](_0x26d8d7['start']['nodeAfter'],0x0))),_0x33677a['push'](_0x26d8d7);_0x2d300e['model']['change'](_0x5d86d6=>{const _0xa26d9a=_0x2d300e['model']['document']['selection'],_0x1c36c2=Array['from'](_0xa26d9a['getRanges']())['map'](_0x47a00d=>_0x51ea19['fromRange'](_0x47a00d));_0x5d86d6['setSelection'](_0x33677a),_0x2d300e['commands']['get'](_0x1617be['commandName'])['refresh'](),_0x1617be['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2d300e['execute'](_0x1617be['commandName'],..._0x1617be['commandParams']),_0x5d86d6['setSelection'](_0x1c36c2);for(const _0x32edb3 of _0x1c36c2)_0x32edb3['detach']();});}),_0x510944['descriptionFactory']['registerElementLabel'](function(_0x2199b2){const _0x5e18ea=!_0x2d300e['model']['schema']['isObject'](_0x2199b2),_0x1a7fce=_0x2199b2['previousSibling'],_0x2d78e7=_0x2199b2['nextSibling'],_0x2667c0=_0x2199b2['getAttribute']('listItemId'),_0x5d4a58=!_0x1a7fce||_0x1a7fce['getAttribute']('listItemId')!==_0x2667c0,_0x480a96=!_0x2d78e7||_0x2d78e7['getAttribute']('listItemId')!==_0x2667c0;return _0x5e18ea&&Boolean(_0x2667c0)&&_0x5d4a58&&_0x480a96;},_0x3db4e1=>o(_0x395040,'ELEMENT_LIST_ITEM',_0x3db4e1));}['_registerLegacyDescription'](){const _0x4cde78=this['editor'],_0x465168=_0x4cde78['locale'];function _0x1f413a(_0x469dae){const _0x33f324=_0x4cde78['commands']['get']('bulletedList')['value'],_0x329244=_0x4cde78['commands']['get']('numberedList')['value'];return'numberedList'===_0x469dae?_0x33f324:_0x329244;}_0x4cde78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x44e0f6){if('formatBlock'!=_0x44e0f6['type'])return;const {data:_0x1ba053}=_0x44e0f6;if(!_0x1ba053)return;let _0xcddae9,_0x2952dc,_0x1d3424,_0x823ce5;switch(_0x1ba053['commandName']){case'bulletedList':_0x1d3424=_0x1ba053['commandParams'][0x0]['forceValue'],_0x823ce5=_0x1f413a(_0x1ba053['commandName']),_0xcddae9=_0x1d3424?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x823ce5&&_0x4cde78['config']['get']('list.multiBlock')||(_0xcddae9='*Change\x20to:*\x20%0'),_0x2952dc={'type':'format','content':o(_0x465168,_0xcddae9,o(_0x465168,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1d3424=_0x1ba053['commandParams'][0x0]['forceValue'],_0x823ce5=_0x1f413a(_0x1ba053['commandName']),_0xcddae9=_0x1d3424?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x823ce5&&_0x4cde78['config']['get']('list.multiBlock')||(_0xcddae9='*Change\x20to:*\x20%0'),_0x2952dc={'type':'format','content':o(_0x465168,_0xcddae9,o(_0x465168,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xcddae9='*Indent:*\x20%0',_0x2952dc={'type':'format','content':o(_0x465168,_0xcddae9,o(_0x465168,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xcddae9=function(_0x3d8a67){const _0x35076b=_0x3d8a67['getFirstRange']();let _0x4e975f=_0x35076b['start']['nodeAfter'];for(;_0x4e975f&&_0x35076b['containsItem'](_0x4e975f);){if(_0x4e975f['getAttribute']('listIndent')>0x0)return!0x1;_0x4e975f=_0x4e975f['nextSibling'];}return!0x0;}(_0x44e0f6)?o(_0x465168,'*Format:*\x20remove\x20from\x20%0',o(_0x465168,function(_0x254e66){return'ELEMENT_'+_0x254e66['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x44e0f6))):o(_0x465168,'*Outdent:*\x20%0',o(_0x465168,'ELEMENT_LIST_ITEM')),_0x2952dc={'type':'format','content':_0xcddae9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1ba053['multipleBlocks']&&(_0xcddae9='*Merge:*\x20%0',_0x2952dc={'type':'deletion','content':o(_0x465168,_0xcddae9,o(_0x465168,'ELEMENT_LIST_ITEM'))});}return _0x2952dc;});}}function Te(_0x50c0bd){let _0x4cc3b3=_0x50c0bd['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4cc3b3;){const _0x37e74d=_0x4cc3b3['getAttribute']('listItemId');if(!_0x37e74d)return!0x1;if(_0x37e74d==_0x50c0bd['data']['newValue'])return'newValue';if(_0x37e74d==_0x50c0bd['data']['oldValue'])return'oldValue';_0x4cc3b3=_0x4cc3b3['previousSibling'];}return!0x1;}class q extends _0xc3381c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2bbce4=this['editor']['config']['get']('list.properties'),_0x1adca9=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bbce4['styles']&&(_0x1adca9['enableDefaultAttributesIntegration']('listStyle'),_0x1adca9['registerBlockAttribute']('listStyle')),_0x2bbce4['reversed']&&(_0x1adca9['enableDefaultAttributesIntegration']('listReversed'),_0x1adca9['registerBlockAttribute']('listReversed')),_0x2bbce4['startIndex']&&(_0x1adca9['enableDefaultAttributesIntegration']('listStart'),_0x1adca9['registerBlockAttribute']('listStart'));const _0x18dc24={'type':'format','content':''};_0x1adca9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x969a91=this['editor']['locale'];_0x1adca9['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x969a91,'FORMAT_LIST_REVERSED')),_0x1adca9['descriptionFactory']['registerDescriptionCallback'](_0x3ae6e3=>{const {data:_0x23b477}=_0x3ae6e3;if(_0x23b477&&'listReversed'==_0x23b477['key'])return null==_0x23b477['newValue']||0x0==_0x23b477['newValue']&&null==_0x23b477['oldValue']?_0x18dc24:void 0x0;}),_0x1adca9['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x969a91,'FORMAT_LIST_START')),_0x1adca9['descriptionFactory']['registerDescriptionCallback'](_0x59213e=>{const {data:_0x16eeff}=_0x59213e;if(_0x16eeff&&'listStart'==_0x16eeff['key'])return null==_0x16eeff['newValue']||0x1==_0x16eeff['newValue']&&null==_0x16eeff['oldValue']?_0x18dc24:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3fc84c=>{if(_0x3fc84c['batch']['isUndo'])return!0x1;let _0x2d50f3=!0x1;const _0x3e3e4e=_0x1adca9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5fefd2=>{const _0x521c9d=_0x1adca9['_getAttributeKey'](_0x5fefd2);return'listStart'==_0x521c9d||'listReversed'==_0x521c9d;});for(const _0x5eb361 of _0x3e3e4e){const _0x56593f=_0x5eb361['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x56593f||'customNumbered'==_0x56593f)continue;_0x1adca9['_findSuggestions'](_0x5eb361['getFirstRange'](),'attribute')['find'](_0x1c33ff=>'listType'==_0x1adca9['_getAttributeKey'](_0x1c33ff['suggestion']))||(_0x3fc84c['removeMarker'](_0x5eb361['getFirstMarker']()),_0x2d50f3=!0x0);}return _0x2d50f3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2cae72){const _0x2b2799=this['editor']['locale'],{data:_0x34d938}=_0x2cae72,_0x54ebdd={'type':'format','content':''};if(!_0x34d938||'listStyle'!=_0x34d938['key'])return;if(!_0x34d938['oldValue'])return'default'==_0x34d938['newValue']?_0x54ebdd:{'type':'format','content':''+o(_0x2b2799,'*Set\x20format:*\x20%0',o(_0x2b2799,this['_getTranslationKeyForListStyle'](_0x34d938['newValue'])))};if(!_0x34d938['newValue']){if('default'==_0x34d938['oldValue'])return _0x54ebdd;let _0x52c328=_0x2cae72['head'];for(;_0x52c328;){if(_0x52c328['data']&&'listType'==_0x52c328['data']['key']&&_0x52c328['data']['newValue'])return _0x54ebdd;_0x52c328=_0x52c328['next'];}return{'type':'format','content':''+o(_0x2b2799,'*Remove\x20format:*\x20%0',o(_0x2b2799,this['_getTranslationKeyForListStyle'](_0x34d938['oldValue'])))};}if('default'!=_0x34d938['newValue'])return{'type':'format','content':''+o(_0x2b2799,'*Set\x20format:*\x20%0',o(_0x2b2799,this['_getTranslationKeyForListStyle'](_0x34d938['newValue'])))};let _0x167f3b=_0x2cae72['head'];for(;_0x167f3b;){if(_0x167f3b['data']&&'listType'==_0x167f3b['data']['key']&&_0x167f3b['data']['newValue']&&_0x167f3b['data']['oldValue'])return _0x54ebdd;_0x167f3b=_0x167f3b['next'];}return{'type':'format','content':o(_0x2b2799,'*Set\x20format:*\x20%0',o(_0x2b2799,'ELEMENT_'+_0x2cae72['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x190b7c=this['editor'],_0x51f01b=_0x190b7c['locale'];_0x190b7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x221cff=>{if('formatBlock'!=_0x221cff['type'])return;const {data:_0x5620cf}=_0x221cff;if(!_0x5620cf)return;let _0xf9b109,_0x74c44a;switch(_0x5620cf['commandName']){case'listStyle':_0xf9b109='*Change\x20to:*\x20%0',_0x74c44a={'type':'format','content':o(_0x51f01b,_0xf9b109,o(_0x51f01b,this['_getTranslationKeyForListStyle'](_0x5620cf['commandParams'][0x0]['type'])))};break;case'listReversed':_0xf9b109=_0x5620cf['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x74c44a={'type':'format','content':o(_0x51f01b,_0xf9b109)};break;case'listStart':_0xf9b109='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x74c44a={'type':'format','content':o(_0x51f01b,_0xf9b109,_0x5620cf['commandParams'][0x0]['startIndex'])};}return _0x74c44a;});}['_getTranslationKeyForListStyle'](_0xb956d3){return'ELEMENT_'+function(_0x10bc79){if(Se['includes'](_0x10bc79))return'bulleted';if(_e['includes'](_0x10bc79))return'numbered';return null;}(_0xb956d3)['toUpperCase']()+'_LIST_'+_0xb956d3['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xc3381c{['afterInit'](){const _0x3193ba=this['editor'];_0x3193ba['commands']['get']('emoji')&&_0x3193ba['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xc3381c{static get['requires'](){return[_0x5e8dd4];}['init'](){const _0x2d3c6c=this['editor'],_0xa33f22=_0x2d3c6c['plugins']['get']('TrackChangesEditing'),_0x14b41d=_0x2d3c6c['commands']['get']('enter');_0xa33f22['enableCommand']('enter',()=>{_0x2d3c6c['model']['change'](_0x41e480=>{const _0x1af467=_0x2d3c6c['model']['document']['selection'],_0x42c274=_0x1af467['getFirstPosition'](),_0x4e7e31=_0x51ea19['fromRange'](_0x1af467['getFirstRange']());if(_0x14b41d['enterBlock'](_0x41e480)){const _0x17575c=_0x2d3c6c['model']['createPositionAt'](_0x42c274['parent']['nextSibling'],0x0),_0x2513aa=_0x41e480['createRange'](_0x42c274,_0x17575c);_0xa33f22['markInsertion'](_0x2513aa);}else _0x41e480['setSelection'](_0x41e480['createRange'](_0x4e7e31['end']));_0x4e7e31['detach'](),_0x14b41d['fire']('afterExecute',{'writer':_0x41e480});});}),_0x2d3c6c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2d3c6c,'split'),{'priority':'high'}),_0x2d3c6c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x48c032,_0x2526e4,_0x55e0df)=>{const _0x3ca324=_0x55e0df['mapper']['markerNameToElements'](_0x2526e4['markerName']);if(_0x3ca324){for(const _0x2334c0 of _0x3ca324)_0x2334c0['hasClass']('ck-suggestion-marker-split')&&(_0x55e0df['mapper']['unbindElementFromMarkerName'](_0x2334c0,_0x2526e4['markerName']),_0x55e0df['writer']['remove'](_0x2334c0));}},{'priority':'high'}),_0x2d3c6c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x25c6ea,_0x33621c,_0x16d484)=>{_0x16d484['options']['showSuggestionHighlights']&&De(_0x2d3c6c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x25c6ea,_0x33621c,_0x16d484);},{'priority':'high'});}}class Q extends _0xc3381c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3564bb=this['editor']['plugins']['get']('TrackChangesEditing');_0x3564bb['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3564bb['enableCommand']('findNext'),_0x3564bb['enableCommand']('findPrevious'),_0x3564bb['enableCommand']('replace'),_0x3564bb['enableCommand']('replaceAll');}['handleFindCommand'](_0x34b2c2,_0x2c2935,_0x596a07={}){const _0x3122dd=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x34b2c2(_0x205fa1=>{let _0x49d643=('string'==typeof _0x2c2935?_0x3122dd['findByTextCallback'](_0x2c2935,_0x596a07):_0x2c2935)(_0x205fa1);Array['isArray'](_0x49d643)&&(_0x49d643={'results':_0x49d643,'searchText':'string'==typeof _0x2c2935?_0x2c2935:''});const _0x31e125=_0x49d643['results']['filter'](_0x37e79a=>!0x1===this['_isInDeletionRange'](_0x37e79a,_0x205fa1['item']));return{..._0x49d643,'results':_0x31e125};},_0x596a07);}['_isInDeletionRange'](_0x349250,_0x2ddd2f){const _0x26ed1b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ddd2f,_0x349250['start']),this['editor']['model']['createPositionAt'](_0x2ddd2f,_0x349250['end']));for(const _0x1448bd of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x26ed1b['getIntersection'](_0x1448bd['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xc3381c{['afterInit'](){const _0x56c721=this['editor']['locale'],_0x5b20c8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x38010d,commandName:_0x2792c3}of eo)this['editor']['plugins']['has'](_0x38010d)&&(_0x5b20c8['enableDefaultAttributesIntegration'](_0x2792c3),_0x5b20c8['registerInlineAttribute'](_0x2792c3));_0x5b20c8['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x56c721,'FORMAT_FONT_SIZE')),_0x5b20c8['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x56c721,'FORMAT_FONT_FAMILY')),_0x5b20c8['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x56c721,'FORMAT_FONT_COLOR')),_0x5b20c8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x56c721,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52890e=this['editor'],_0x494992=_0x52890e['locale'];_0x52890e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55dfda=>{const _0xe35217=_0x494992['t'];if('formatInline'!=_0x55dfda['type'])return;const {data:_0x2aacbb}=_0x55dfda;if(null!=_0x2aacbb){if('fontSize'==_0x2aacbb['commandName']){const _0x5d00c0=_0x2aacbb['commandParams'][0x0]['value'];if(_0x5d00c0){const _0x11bd74=_0xe35217(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1b3c06=>_0x1b3c06['model']==_0x5d00c0)['title'])['toLowerCase']();return{'type':'format','content':o(_0x494992,'*Set\x20font\x20size:*\x20%0',_0x11bd74)};}return{'type':'format','content':o(_0x494992,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2aacbb['commandName']){const _0x1644a8=_0x2aacbb['commandParams'][0x0]['value'];return _0x1644a8?{'type':'format','content':o(_0x494992,'*Set\x20font\x20family:*\x20%0',_0x1644a8)}:{'type':'format','content':o(_0x494992,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2aacbb['commandName']){const _0xf50e36=_0x2aacbb['commandParams'][0x0]['value'];if(_0xf50e36){const _0x259aa0=_0x5609d7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x360e2b=>_0x360e2b['model']==_0xf50e36);let _0x2f52bf=_0xf50e36,_0x24e5b9='';return _0x259aa0&&(_0x2f52bf=_0x259aa0['label'],_0x24e5b9=_0xe35217(_0x2f52bf)['toLowerCase']()),{'type':'format','content':o(_0x494992,'*Set\x20font\x20color:*\x20%0',_0x24e5b9)['trim'](),'color':{'value':_0xf50e36,'title':_0x24e5b9||_0x2f52bf}};}return{'type':'format','content':o(_0x494992,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2aacbb['commandName']){const _0x13ba13=_0x2aacbb['commandParams'][0x0]['value'];if(_0x13ba13){const _0x1aa994=_0x5609d7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x37475e=>_0x37475e['model']==_0x13ba13);let _0x192d74=_0x13ba13,_0x21728c='';return _0x1aa994&&(_0x192d74=_0x1aa994['label'],_0x21728c=_0xe35217(_0x192d74)['toLowerCase']()),{'type':'format','content':o(_0x494992,'*Set\x20font\x20background\x20color:*\x20%0',_0x21728c)['trim'](),'color':{'value':_0x13ba13,'title':_0x21728c||_0x192d74}};}return{'type':'format','content':o(_0x494992,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xc3381c{['afterInit'](){const _0x2e0bbb=this['editor'],_0x33086b=_0x2e0bbb['plugins']['get']('TrackChangesEditing'),_0x321888=_0x2e0bbb['commands']['get']('copyFormat'),_0x1e86aa=_0x2e0bbb['commands']['get']('pasteFormat');_0x321888&&_0x1e86aa&&(_0x33086b['enableDefaultAttributesIntegration']('pasteFormat'),_0x33086b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5552eb=this['editor'],_0x112817=_0x5552eb['locale'];_0x5552eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x442624=>{if('formatBlock'!=_0x442624['type']&&'formatInline'!=_0x442624['type'])return;const {data:_0x4f7d9d}=_0x442624;if(_0x4f7d9d&&'pasteFormat'===_0x4f7d9d['commandName']){const _0x53537b=[],_0x32e0f9=_0x4f7d9d['commandParams'][0x0];for(const [_0x4adbf8,_0x4f68ca]of Object['entries'](_0x32e0f9))_0x53537b['push'](ro(_0x5552eb,_0x4adbf8,_0x4f68ca));return _0x53537b['length']?{'type':'format','content':o(_0x112817,'*Set\x20format\x20to:*\x20%0',_0x53537b['join'](',\x20'))}:{'type':'format','content':o(_0x112817,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5e5c38,_0x368b1c,_0x4c99a1){const _0x4e6689=_0x5e5c38['locale']['t'],_0x1a5070=_0x368b1c['split'](/(?=[A-Z])/)['join']('\x20'),_0x4f2ee9=_0x4e6689(_0x1a5070['charAt'](0x0)['toUpperCase']()+_0x1a5070['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4c99a1)return _0x4f2ee9;if('fontColor'===_0x368b1c||'fontBackgroundColor'===_0x368b1c){const _0xc7afb8=_0x5609d7(_0x5e5c38['config']['get']('fontColor.colors'))['find'](_0x296356=>_0x296356['model']==_0x4c99a1);return _0x4f2ee9+'\x20('+(_0xc7afb8?_0x4e6689(_0xc7afb8['label'])['toLowerCase']():_0x4c99a1)+')';}if('fontSize'===_0x368b1c&&isNaN(parseFloat(_0x4c99a1))){const _0x7baeaa=_0x5e5c38['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5e5c38['config']['get']('fontSize.options'))['find'](_0x483e40=>_0x483e40['model']==_0x4c99a1);return _0x4f2ee9+'\x20('+(_0x7baeaa?_0x4e6689(_0x7baeaa['title'])['toLowerCase']():_0x4c99a1)+')';}return _0x4f2ee9+'\x20('+_0x4c99a1+')';}class Z extends _0xc3381c{['_headingOptions'];['afterInit'](){const _0x118198=this['editor'];if(!_0x118198['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x118198['config']['get']('heading.options');const _0xe43cae=_0x118198['locale'],_0x239f86=_0x118198['plugins']['get']('TrackChangesEditing');_0x239f86['enableDefaultAttributesIntegration']('heading');for(const _0x325b8c of this['_headingOptions'])'paragraph'!=_0x325b8c['model']&&_0x239f86['descriptionFactory']['registerElementLabel'](_0x325b8c['model'],_0x36c7b7=>{const _0xef2b72=this['_getHeadingLevel'](_0x325b8c['model']);return null!==_0xef2b72?_0x3390ec(_0x36c7b7,_0xef2b72):_0x47d18d(_0x36c7b7,_0x325b8c['title']);});function _0x3390ec(_0x8baa76,_0x3f948c){return o(_0xe43cae,'ELEMENT_HEADING',[_0x8baa76,_0x3f948c]);}function _0x47d18d(_0x39c6a8,_0x3eb38d){return o(_0xe43cae,'ELEMENT_HEADING_CUSTOM',[_0x39c6a8,_0x3eb38d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ee912=this['editor'],_0x3be98e=_0x4ee912['locale'];function _0x3ab125(_0x35f278,_0x5eb1b7){return o(_0x3be98e,'ELEMENT_HEADING_CUSTOM',[_0x35f278,_0x5eb1b7]);}_0x4ee912['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35dde4=>{if('formatBlock'!=_0x35dde4['type'])return;const {data:_0x273a7a}=_0x35dde4;if(_0x273a7a&&'heading'==_0x273a7a['commandName']){const _0x2c41c5=_0x273a7a['commandParams'][0x0]['value'],_0x32a731=this['_getHeadingLevel'](_0x2c41c5);if(null!==_0x32a731)return{'type':'format','content':o(_0x3be98e,'*Change\x20to:*\x20%0',(_0x59eff4=0x1,_0x336bf3=_0x32a731,o(_0x3be98e,'ELEMENT_HEADING',[_0x59eff4,_0x336bf3])))};const _0x173b5b=this['_headingOptions']['find'](_0x348648=>_0x348648['model']===_0x2c41c5)['title'];return{'type':'format','content':o(_0x3be98e,'*Change\x20to:*\x20%0',_0x3ab125(0x1,_0x173b5b))};}var _0x59eff4,_0x336bf3;});}['_getHeadingLevel'](_0x27f241){const _0x41f4b5=_0x27f241['match'](/^heading(\d+)/);if(_0x41f4b5)return _0x41f4b5[0x1];const _0x344464=this['_headingOptions']?.['find'](_0x3f2671=>_0x3f2671['model']==_0x27f241);if(_0x344464&&_0x344464['view']){const _0xb6608=_0x344464['view'],_0x2a0e42=(_0xb6608['name']??_0xb6608)['match'](/^h(\d+)/);if(_0x2a0e42)return _0x2a0e42[0x1];}return null;}}class tt extends _0xc3381c{['afterInit'](){const _0x1f7589=this['editor'];if(!_0x1f7589['plugins']['has']('HighlightEditing'))return;const _0x129a5a=_0x1f7589['plugins']['get']('TrackChangesEditing'),_0x23478d=_0x1f7589['locale'];_0x129a5a['enableDefaultAttributesIntegration']('highlight'),_0x129a5a['registerInlineAttribute']('highlight'),_0x129a5a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x23478d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcf3ecf=this['editor'],_0x1ef853=_0xcf3ecf['locale'];_0xcf3ecf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21fb45=>{if('formatInline'!=_0x21fb45['type'])return;const {data:_0x2ed467}=_0x21fb45;if(_0x2ed467&&'highlight'==_0x2ed467['commandName']){const _0x4b2a32=_0x1ef853['t'],_0x445923=_0x2ed467['commandParams'][0x0]['value'];if(_0x445923){const _0x36319c=_0xcf3ecf['config']['get']('highlight.options')['find'](_0x5da234=>_0x5da234['model']==_0x445923),_0x9f14d9=_0x4b2a32(_0x36319c['title'])['toLowerCase']();return{'type':'format','content':o(_0x1ef853,'*Set\x20highlight:*\x20%0',_0x9f14d9),'color':{'value':_0x36319c['color'],'title':_0x36319c['title']}};}return{'type':'format','content':o(_0x1ef853,'*Remove\x20highlight*',o(_0x1ef853,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xc3381c{['afterInit'](){const _0x387ac4=this['editor'];if(!_0x387ac4['plugins']['has']('HorizontalLineEditing'))return;_0x387ac4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x469eb5=_0x387ac4['plugins']['get']('TrackChangesEditing'),_0x252e71=_0x387ac4['locale'];_0x469eb5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3925b0=>o(_0x252e71,'ELEMENT_HORIZONTAL_LINE',_0x3925b0)),_0x387ac4['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x274f48,{writer:_0x123e4,options:_0x412f2c})=>{if(!_0x412f2c['showSuggestionHighlights'])return null;const _0xf7abde=_0x123e4['createContainerElement']('div'),_0x5d72f8=_0x123e4['createEmptyElement']('hr');return _0x123e4['addClass']('ck-horizontal-line',_0xf7abde),_0x123e4['insert'](_0x123e4['createPositionAt'](_0xf7abde,0x0),_0x5d72f8),_0xf7abde;},'converterPriority':'high'});}}class nt extends _0xc3381c{['afterInit'](){const _0x57aa88=this['editor'];if(!_0x57aa88['plugins']['has']('HtmlEmbed'))return;const _0x1f02c9=_0x57aa88['plugins']['get']('TrackChangesEditing'),_0x170817=_0x57aa88['locale'];_0x1f02c9['descriptionFactory']['registerElementLabel']('rawHtml',_0x59781d=>o(_0x170817,'ELEMENT_HTML_EMBED',_0x59781d)),_0x1f02c9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1f02c9['registerBlockAttribute']('value'),_0x1f02c9['descriptionFactory']['registerDescriptionCallback'](_0x2f4c63=>{if('attribute'!=_0x2f4c63['type'])return;const {data:_0x4a5bea}=_0x2f4c63;if(_0x4a5bea&&'value'==_0x4a5bea['key']&&_0x2f4c63['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x111d95=o(_0x170817,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x170817,'*Change\x20%0\x20content*',_0x111d95)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ab3aa=this['editor'],_0x8966b8=_0x5ab3aa['locale'];_0x5ab3aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x308e48=>{if('formatBlock'!=_0x308e48['type'])return;const {data:_0x383043}=_0x308e48;if(_0x383043&&'htmlEmbed'==_0x383043['commandName']){const _0x23715d=o(_0x8966b8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x8966b8,'*Change\x20%0\x20content*',_0x23715d)};}});}}class et extends _0xc3381c{['afterInit'](){const _0x160e15=this['editor'];if(!_0x160e15['plugins']['has']('ImageEditing'))return;const _0x3a9699=_0x160e15['plugins']['get']('TrackChangesEditing'),_0x429078=_0x160e15['plugins']['get']('ImageUtils'),_0xfd126e=_0x160e15['locale'];_0x3a9699['enableCommand']('insertImage'),_0x3a9699['descriptionFactory']['registerElementLabel']('imageBlock',_0x4b688f=>o(_0xfd126e,'ELEMENT_IMAGE',_0x4b688f)),_0x3a9699['descriptionFactory']['registerElementLabel']('imageInline',_0x5ee392=>o(_0xfd126e,'ELEMENT_INLINE_IMAGE',_0x5ee392)),_0x3a9699['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xfd126e,'ELEMENT_CAPTION')),_0x160e15['plugins']['has']('ImageUploadEditing')&&_0x3a9699['enableCommand']('uploadImage'),_0x160e15['plugins']['has']('ImageBlockEditing')&&_0x160e15['plugins']['has']('ImageInlineEditing')&&(_0x3a9699['enableCommand']('imageTypeInline',(_0x31587c,_0x5415fc)=>{const _0x586833=_0x429078['getClosestSelectedImageElement'](_0x160e15['model']['document']['selection']);_0x160e15['model']['change'](()=>{_0x3a9699['markBlockFormat'](_0x586833,{'commandName':'imageTypeInline','commandParams':[_0x5415fc]},[],'convertBlockImageToInline');});}),_0x3a9699['enableCommand']('imageTypeBlock',(_0x12e990,_0x5468b7)=>{_0x160e15['model']['change'](_0x4e02ef=>{let _0x122974=_0x429078['getClosestSelectedImageElement'](_0x160e15['model']['document']['selection']),_0x4737e6=_0x4e02ef['createRangeOn'](_0x122974);const _0x3a8308=_0x400bd9['fromPosition'](_0x4737e6['start'],'toPrevious'),_0xc2b816=_0x400bd9['fromPosition'](_0x4737e6['end'],'toNext');_0x3a9699['forceDefaultExecution'](()=>_0x12e990(_0x5468b7)),_0x122974=_0x429078['getClosestSelectedImageElement'](_0x160e15['model']['document']['selection']),_0x4737e6=_0x4e02ef['createRangeOn'](_0x122974);const _0x417516=_0x4e02ef['createRange'](_0x3a8308,_0xc2b816);_0x3a8308['detach'](),_0xc2b816['detach'](),_0x3a9699['markBlockFormat'](_0x122974,{'commandName':'imageTypeInline','commandParams':[_0x5468b7]},[],'convertInlineImageToBlock'),_0x417516['start']['isBefore'](_0x4737e6['start'])&&_0x3a9699['markInsertion'](_0x4e02ef['createRange'](_0x417516['start'],_0x4737e6['start']),'convertInlineImageToBlock'),_0x4737e6['end']['isBefore'](_0x417516['end'])&&_0x3a9699['markInsertion'](_0x4e02ef['createRange'](_0x4737e6['end'],_0x417516['end']),'convertInlineImageToBlock');});}),_0x3a9699['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3a9699['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3a9699['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3a9699['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3a9699['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3a9699['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x587a62])=>{const _0x52de9=_0x3a9699['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x259ce2=_0x587a62['start'],_0x20ad78=_0x587a62['end'];const _0x589565=_0x160e15['model']['schema']['getNearestSelectionRange'](_0x259ce2,'backward'),_0x5bc661=_0x160e15['model']['schema']['getNearestSelectionRange'](_0x20ad78,'forward');_0x589565['isCollapsed']&&(_0x259ce2=_0x589565['start']),_0x5bc661['isCollapsed']&&(_0x20ad78=_0x5bc661['end']),_0x52de9([_0x160e15['model']['createRange'](_0x259ce2,_0x20ad78)]);}),_0x3a9699['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x9e3534),_0x3a9699['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x9e3534)),_0x160e15['plugins']['has']('ImageCaptionEditing')&&(_0x3a9699['enableCommand']('toggleImageCaption',(_0x12854b,_0x1b5326)=>{const _0x94f143=_0x160e15['plugins']['get']('ImageCaptionUtils');let _0x286553=_0x429078['getClosestSelectedImageElement'](_0x160e15['model']['document']['selection']),_0x1f2003=_0x94f143['getCaptionFromImageModelElement'](_0x286553);_0x160e15['model']['change'](()=>{if(_0x1f2003)return void _0x3a9699['markDeletion'](_0x160e15['model']['createRangeOn'](_0x1f2003));const _0x3e44c9=_0x429078['isBlockImage'](_0x286553);_0x12854b(_0x1b5326),_0x286553=_0x429078['getClosestSelectedImageElement'](_0x160e15['model']['document']['selection']),_0x1f2003=_0x94f143['getCaptionFromImageModelElement'](_0x286553),_0x3a9699['markInsertion'](_0x160e15['model']['createRangeOn'](_0x1f2003),_0x3e44c9?null:'imageCaption');});}),_0x3a9699['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x9e3534));const _0x5129e4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3a9417(_0x4ecfde,_0x3d3a69){const _0x43a57c=_0x5129e4['findIndex'](({type:_0x54ebd4,subType:_0x4b8be3})=>_0x4ecfde['type']==_0x54ebd4&&_0x4ecfde['subType']==_0x4b8be3),_0x159744=_0x5129e4['findIndex'](({type:_0x32f882,subType:_0x249b0c})=>_0x3d3a69['type']==_0x32f882&&_0x3d3a69['subType']==_0x249b0c);if(_0x43a57c<0x0||_0x159744<0x0)return!0x1;const _0x4bbbdc=_0x4ecfde['getFirstRange'](),_0x2fd697=_0x3d3a69['getFirstRange']();if((0x0==_0x43a57c||0x1==_0x43a57c)&&0x2==_0x159744&&_0x4bbbdc['isIntersecting'](_0x2fd697))return!0x0;if(0x2==_0x43a57c&&0x3==_0x159744){const _0x44d817=_0x3a9699['_findSuggestions'](_0x4bbbdc,'insertion')['filter'](({suggestion:_0x49d31b,meta:_0x4dfd0a})=>_0x4dfd0a['isOwn']&&'convertInlineImageToBlock'==_0x49d31b['subType']);if(_0x44d817['length']>0x1&&_0x2fd697['end']['isEqual'](_0x4bbbdc['start']))return!0x0;if(0x1==_0x44d817['length']&&(_0x4bbbdc['start']['isEqual'](_0x2fd697['end'])||_0x4bbbdc['end']['isEqual'](_0x2fd697['start'])))return!0x0;}if(0x3==_0x43a57c&&0x3==_0x159744&&_0x4bbbdc['start']['isBefore'](_0x2fd697['start'])){const _0xf0805=_0x4bbbdc['end']['nodeAfter'],_0x4097dc=_0x2fd697['start']['nodeBefore'];return _0x429078['isBlockImage'](_0xf0805)&&_0xf0805===_0x4097dc;}return!0x1;}function _0x9e3534(_0x1e3692,_0xe1425f){return _0x3a9417(_0x1e3692,_0xe1425f)?[_0x1e3692,_0xe1425f]:_0x3a9417(_0xe1425f,_0x1e3692)?[_0xe1425f,_0x1e3692]:null;}_0x160e15['plugins']['has']('ImageResize')&&(_0x3a9699['enableDefaultAttributesIntegration']('resizeImage'),_0x3a9699['registerBlockAttribute']('resizedWidth'),_0x3a9699['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xfd126e,'FORMAT_IMAGE_SIZE'))),_0x160e15['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3a9699['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3a9699['registerBlockAttribute']('alt')),_0x160e15['plugins']['has']('PictureEditing')&&(_0x3a9699['registerBlockAttribute']('sources'),_0x3a9699['descriptionFactory']['registerDescriptionCallback'](_0x538b2b=>{if('attribute'!=_0x538b2b['type'])return;const {data:_0x2b65f4}=_0x538b2b;return _0x2b65f4&&'sources'==_0x2b65f4['key']?{'type':'format','content':''}:void 0x0;})),_0x160e15['plugins']['has']('ImageSizeAttributes')&&(_0x3a9699['registerBlockAttribute']('width'),_0x3a9699['registerBlockAttribute']('height'),_0x3a9699['descriptionFactory']['registerDescriptionCallback'](_0x31f39d=>{if('attribute'!=_0x31f39d['type'])return;const {data:_0x1bf344}=_0x31f39d;return!_0x1bf344||'width'!=_0x1bf344['key']&&'height'!=_0x1bf344['key']?void 0x0:{'type':'format','content':''};})),_0x3a9699['descriptionFactory']['registerDescriptionCallback'](_0x4c66d7=>{if(!!_0x5129e4['find'](({type:_0x2f50eb,subType:_0x2e87f4})=>_0x4c66d7['type']==_0x2f50eb&&_0x4c66d7['subType']==_0x2e87f4))return _0x4c66d7['previous']?{}:void 0x0;}),_0x3a9699['descriptionFactory']['registerDescriptionCallback'](_0xe09523=>{if('insertion'==_0xe09523['type']||'deletion'==_0xe09523['type']){const _0x3d8773=_0xe09523['getContainedElement']();if(_0x3d8773&&_0x3d8773['is']('element','caption'))return{'type':'insertion'==_0xe09523['type']?'addObject':'removeObject','element':_0x3d8773,'quantity':0x1};}}),_0x3a9699['descriptionFactory']['registerDescriptionCallback'](_0x38594e=>'formatBlock'==_0x38594e['type']&&'convertInlineImageToBlock'==_0x38594e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x38594e['type']&&'convertBlockImageToInline'==_0x38594e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3a9699['descriptionFactory']['registerDescriptionCallback'](_0x2a1a98=>{if('attribute'!=_0x2a1a98['type'])return;const {data:_0x1c4f86}=_0x2a1a98;if(!_0x1c4f86||'alt'!=_0x1c4f86['key'])return;const _0x594991=_0x1c4f86['newValue'];return _0x594991?{'type':'format','content':o(_0xfd126e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x594991+'\x22')}:{'type':'format','content':o(_0xfd126e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b5d2c=this['editor'],_0x31cce0=_0x2b5d2c['locale'];_0x2b5d2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x562cac=>{if('formatBlock'!=_0x562cac['type']&&'formatInline'!=_0x562cac['type'])return;const {data:_0x4dbbf5}=_0x562cac;if(_0x4dbbf5){if('imageTextAlternative'==_0x4dbbf5['commandName']){const _0x1ecea3=_0x4dbbf5['commandParams'][0x0]['newValue'];return _0x1ecea3?{'type':'format','content':o(_0x31cce0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1ecea3+'\x22')}:{'type':'format','content':o(_0x31cce0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4dbbf5['commandName']){const _0x5a886e=_0x4dbbf5['commandParams'][0x0]['width'];return _0x5a886e?{'type':'format','content':o(_0x31cce0,'*Set\x20image\x20width:*\x20%0',_0x5a886e)}:{'type':'format','content':o(_0x31cce0,'*Reset\x20image\x20width*')};}}});}}class st extends _0xc3381c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5da3ba=this['editor']['locale'],_0x26052b=this['editor']['plugins']['get']('TrackChangesEditing');_0x26052b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x26052b['registerBlockAttribute']('src'),_0x26052b['descriptionFactory']['registerDescriptionCallback'](_0x237288=>{if('attribute'!=_0x237288['type'])return;const {data:_0x27d63b}=_0x237288;return _0x27d63b&&'src'==_0x27d63b['key']?_0x27d63b['newValue']&&_0x27d63b['oldValue']?{'type':'format','content':o(_0x5da3ba,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30fcb5=this['editor']['plugins']['get']('TrackChangesEditing');_0x30fcb5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x30fcb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x30fcb5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x30fcb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c5de4=this['editor'],_0x2e76ef=_0x1c5de4['locale'];_0x1c5de4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x488a94=>{if('formatBlock'!=_0x488a94['type']&&'formatInline'!=_0x488a94['type'])return;const {data:_0x6fbc94}=_0x488a94;if(!_0x6fbc94||'replaceImageSource'!=_0x6fbc94['commandName'])return;return{'type':'format','content':o(_0x2e76ef,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xc3381c{['afterInit'](){const _0xb07ac=this['editor'];if(!_0xb07ac['plugins']['has']('ImageStyleEditing'))return;const _0x523232=_0xb07ac['plugins']['get']('TrackChangesEditing'),_0xa7d577=_0xb07ac['plugins']['get']('ImageUtils'),_0x8f4e98={};_0x523232['enableCommand']('imageStyle',(_0x59f6cc,_0x15fe92)=>{const _0x26330b=_0xb07ac['plugins']['get']('Users')['me'],_0x3ba779=_0xb07ac['commands']['get']('imageStyle');let _0x3b8f05=_0xa7d577['getClosestSelectedImageElement'](_0xb07ac['model']['document']['selection']),_0xba2bc7=_0xb07ac['model']['createRangeOn'](_0x3b8f05),_0x135624=_0x3ba779['value'];if(_0x135624==_0x15fe92['value'])return;const _0x337ba1={'commandName':'imageStyle','commandParams':[_0x15fe92],'formatGroupId':_0x40bebf()};_0xb07ac['model']['change'](()=>{if(_0x523232['getSuggestions']()['filter'](_0x1ba77e=>_0x1ba77e['isInContent']&&_0x26330b==_0x1ba77e['author']&&('formatBlock'==_0x1ba77e['type']||'formatInline'==_0x1ba77e['type'])&&('imageStylePreApply'==_0x1ba77e['subType']||'imageStylePostApply'==_0x1ba77e['subType'])&&_0x1ba77e['getFirstRange']()['isEqual'](_0xba2bc7))['forEach'](_0x49ba45=>_0x523232['discardSuggestion'](_0x49ba45['head'])),_0x3b8f05=_0xa7d577['getClosestSelectedImageElement'](_0xb07ac['model']['document']['selection']),_0xba2bc7=_0xb07ac['model']['createRangeOn'](_0x3b8f05),_0x3ba779['refresh'](),_0xb07ac['commands']['get']('imageTypeInline')['refresh'](),_0xb07ac['commands']['get']('imageTypeBlock')['refresh'](),_0x135624=_0x3ba779['value'],_0x135624!=_0x15fe92['value'])return _0xa7d577['isInlineImage'](_0x3b8f05)&&_0x3ba779['shouldConvertImageType'](_0x15fe92['value'],_0x3b8f05)?(_0x59f6cc({..._0x15fe92,'setImageSizes':!0x1}),_0x3b8f05=_0xa7d577['getClosestSelectedImageElement'](_0xb07ac['model']['document']['selection']),void _0x523232['markBlockFormat'](_0x3b8f05,{..._0x337ba1,'commandReversedParams':[{'value':_0x135624||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xa7d577['isBlockImage'](_0x3b8f05)?_0x523232['markBlockFormat'](_0x3b8f05,_0x337ba1,[],'imageStylePostApply'):_0x523232['markInlineFormat'](_0xba2bc7,_0x337ba1,'imageStylePostApply'));});});for(const _0x34cad2 of _0xb07ac['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x8f4e98[_0x34cad2['name']]=_0x34cad2['title']['toLowerCase']();_0x523232['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x523232['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x523232['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x523232['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x306036])=>{_0xa7d577['setImageNaturalSizeAttributes'](_0x306036['getContainedElement']());}),_0x523232['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5f28d2,_0x998f8a)=>{_0x523232['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5f28d2,{'commandName':_0x998f8a['commandName'],'commandParams':_0x998f8a['commandReversedParams']});}),_0x523232['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1046a7,_0x55906d){if(_0x2e8102(_0x1046a7,_0x55906d))return[_0x1046a7,_0x55906d];if(_0x2e8102(_0x55906d,_0x1046a7))return[_0x55906d,_0x1046a7];return null;});const _0x5bf784=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2e8102(_0x8da363,_0xf9de9b){const _0x4263ac=_0x5bf784['findIndex'](({type:_0x299273,subType:_0x2c1532})=>_0x8da363['type']==_0x299273&&_0x8da363['subType']==_0x2c1532),_0x3febc2=_0x5bf784['findIndex'](({type:_0x426e91,subType:_0x200bf5})=>_0xf9de9b['type']==_0x426e91&&_0xf9de9b['subType']==_0x200bf5);if(_0x4263ac<0x0||_0x3febc2<0x0)return!0x1;const _0x11a38d=_0x8da363['getFirstRange'](),_0x59f708=_0xf9de9b['getFirstRange']();if((0x0==_0x4263ac||0x1==_0x4263ac)&&0x2==_0x3febc2&&_0x11a38d['isIntersecting'](_0x59f708))return!0x0;if(0x2==_0x4263ac&&0x3==_0x3febc2){const _0x40fdb2=_0x523232['_findSuggestions'](_0x11a38d,'insertion')['filter'](({suggestion:_0x517d22,meta:_0x1e2002})=>_0x1e2002['isOwn']&&'convertInlineImageToBlock'==_0x517d22['subType']);if(_0x40fdb2['length']>0x1&&_0x59f708['end']['isEqual'](_0x11a38d['start']))return!0x0;if(0x1==_0x40fdb2['length']&&(_0x11a38d['start']['isEqual'](_0x59f708['end'])||_0x11a38d['end']['isEqual'](_0x59f708['start'])))return!0x0;}if(0x3==_0x4263ac&&0x3==_0x3febc2&&_0x11a38d['start']['isBefore'](_0x59f708['start'])){const _0x36377b=_0x11a38d['end']['nodeAfter'],_0x50ac60=_0x59f708['start']['nodeBefore'];return _0xa7d577['isBlockImage'](_0x36377b)&&_0x36377b===_0x50ac60;}return!0x1;}_0xb07ac['model']['document']['registerPostFixer'](()=>{let _0x47ac8b=!0x1;const _0x24841c=Array['from'](_0xb07ac['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x341fb1,data:_0x1185ce}of _0x24841c){const {group:_0xa4d210,type:_0x266d0a,subType:_0x20de4a,id:_0xdc4e54}=_0x523232['_splitMarkerName'](_0x341fb1);if('suggestion'==_0xa4d210&&_0x523232['hasSuggestion'](_0xdc4e54)){if('formatBlock'==_0x266d0a&&('imageStylePreApply'==_0x20de4a||'imageStylePostApply'==_0x20de4a)){const _0xbd6358=_0x523232['getSuggestion'](_0xdc4e54);if(_0x1185ce['newRange']){const _0x1cc6c1=_0xbd6358['getFirstRange']()['getContainedElement']();if(_0xa7d577['isBlockImage'](_0x1cc6c1))continue;_0x523232['discardSuggestion'](_0xbd6358),_0x47ac8b=!0x0;}}if('insertion'==_0x266d0a&&'imageCaption'==_0x20de4a&&!_0x1185ce['newRange']){const _0x8a5a71=_0x523232['getSuggestion'](_0xdc4e54);_0x8a5a71['next']&&_0x8a5a71['next']['isInContent']&&(_0x523232['discardSuggestion'](_0x8a5a71['next']),_0x47ac8b=!0x0);}}}return _0x47ac8b;}),this['_registerLegacyDescription'](_0x8f4e98);}['_registerLegacyDescription'](_0x42d100){const _0x134138=this['editor'],_0x38043a=_0x134138['locale'];_0x134138['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d4d5a=>{if('formatBlock'!=_0x1d4d5a['type']&&'formatInline'!=_0x1d4d5a['type'])return;const {data:_0x3e1748}=_0x1d4d5a;if(!_0x3e1748||'imageStyle'!=_0x3e1748['commandName'])return;const _0x1e5af1=_0x3e1748['commandParams'][0x0]['value'];return _0x164b9f('side'===_0x1e5af1?o(_0x38043a,'FORMAT_SIDE_IMAGE'):_0x42d100[_0x1e5af1]||_0x1e5af1);function _0x164b9f(_0x2d45b7){return{'type':'format','content':o(_0x38043a,'*Format:*\x20%0',_0x2d45b7)};}});}}class rt extends _0xc3381c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x138229){super(_0x138229),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3a7ed0=this['editor'],_0x565c71=_0x3a7ed0['commands']['get']('importWord'),_0xbe82cb=_0x3a7ed0['commands']['get']('trackChanges');_0x565c71&&(_0x565c71['on']('execute',(_0x19ad6a,[,_0x5384f7])=>{this['_trackChangesValueDuringImport']=_0xbe82cb['value'],_0x5384f7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x565c71,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x565c71,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xbe82cb['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3a7ed0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x808714,_0x1610b0){const {suggestions:_0x383366}=_0x1610b0,_0x1af260=this['editor']['commands']['get']('trackChanges'),_0x1ba44b=_0x1af260['value'];this['_trackChangesValueDuringImport']!==_0x1ba44b&&(_0x1af260['execute'](),this['_trackChangesExecuted']=!0x0),_0x383366&&_0x383366['forEach'](({id:_0x2468a6,type:_0x2cfcc0,author:_0x21e28e,created_at:_0x37df04})=>{const _0x7a6472={'id':_0x2468a6,'type':_0x2cfcc0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x21e28e,'createdAt':_0x37df04?new Date(_0x37df04):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x7a6472);});}}class at extends _0xc3381c{['afterInit'](){const _0x38474f=this['editor'],_0x51d00b=_0x38474f['plugins']['get']('TrackChangesEditing');if(_0x38474f['plugins']['has']('IndentEditing')&&(_0x51d00b['enableCommand']('indent'),_0x51d00b['enableCommand']('outdent')),_0x38474f['plugins']['has']('IndentBlock')){for(const _0x45cc69 of['indentBlock','outdentBlock'])_0x51d00b['enableDefaultAttributesIntegration'](_0x45cc69);}const _0x8364c3=_0x38474f['locale'];_0x51d00b['registerBlockAttribute']('blockIndent'),_0x51d00b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x8364c3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x352109=this['editor'],_0x415a80=_0x352109['locale'],_0x403ce7=_0x352109['plugins']['get']('TrackChangesEditing');_0x403ce7['descriptionFactory']['registerDescriptionCallback'](_0x1110bb=>{if('formatBlock'!=_0x1110bb['type'])return;const {data:_0x2a3cbe}=_0x1110bb;if(!_0x2a3cbe)return;if('indentBlock'!=_0x2a3cbe['commandName']&&'outdentBlock'!=_0x2a3cbe['commandName'])return;const _0x128793=_0x1110bb['getItems']()[0x0],_0x4c92cd=_0x403ce7['descriptionFactory']['getItemLabel'](_0x128793);return'indentBlock'==_0x2a3cbe['commandName']?{'type':'format','content':o(_0x415a80,'*Indent:*\x20%0',_0x4c92cd)}:'outdentBlock'==_0x2a3cbe['commandName']?{'type':'format','content':o(_0x415a80,'*Outdent:*\x20%0',_0x4c92cd)}:void 0x0;});}}class ct extends _0xc3381c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xc3381c{['afterInit'](){const _0x37b9fa=this['editor'];if(!_0x37b9fa['plugins']['has']('LinkEditing'))return;const _0x11dae6=_0x37b9fa['plugins']['get']('TrackChangesEditing'),_0x2f2972=_0x37b9fa['commands']['get']('link');_0x11dae6['enableDefaultAttributesIntegration']('link'),_0x11dae6['enableDefaultAttributesIntegration']('unlink'),_0x11dae6['registerInlineAttribute']('linkHref');for(const _0x1592ef of _0x2f2972['manualDecorators'])_0x11dae6['registerInlineAttribute'](_0x1592ef['id']),_0x11dae6['descriptionFactory']['registerAttributeLabel'](_0x1592ef['id'],'link\x20('+_0x1592ef['label']['toLowerCase']()+')');_0x11dae6['descriptionFactory']['registerDescriptionCallback'](_0x33ddb=>{if('attribute'!=_0x33ddb['type'])return;const {data:_0x1a29cf}=_0x33ddb;if(!_0x1a29cf||'linkHref'!=_0x1a29cf['key'])return;const _0x2abd7f=_0x1a29cf['newValue'],_0x4c7d47=_0x37b9fa['locale'];return{'type':'format','content':null==_0x2abd7f?o(_0x4c7d47,'*Remove\x20link*'):o(_0x4c7d47,'*Set\x20link:*\x20%0','\x22'+_0x2abd7f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2db665=this['editor'],_0x23a982=_0x2db665['locale'];_0x2db665['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43f1a7=>{if('formatInline'!=_0x43f1a7['type'])return;const {data:_0x764b1c}=_0x43f1a7;if(_0x764b1c){if('link'==_0x764b1c['commandName']){const _0x524fe0=_0x764b1c['commandParams'][0x0];return{'type':'format','content':o(_0x23a982,'*Set\x20link:*\x20%0','\x22'+_0x524fe0+'\x22')};}return'unlink'==_0x764b1c['commandName']?{'type':'format','content':o(_0x23a982,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xc3381c{['afterInit'](){const _0x2ed727=this['editor'],_0x2650c0=_0x2ed727['locale'];if(!_0x2ed727['plugins']['has']('LegacyListEditing'))return;const _0x5094d2=_0x2ed727['plugins']['get']('TrackChangesEditing'),_0x1020f6=_0x2ed727['plugins']['has']('LegacyTodoListEditing');function _0x5462c5(_0x518bcf){return()=>{const _0x3e69a6=_0x2ed727['model']['document']['selection'],_0x43d08b=_0x2ed727['commands']['get'](_0x518bcf);if(_0x43d08b['value'])return void _0x2ed727['execute']('paragraph',{});const _0x1a9166=_0x518bcf['slice'](0x0,-0x4),_0x386f73=function(_0x5cdae5,_0x4e3380,_0x47031d){let _0xf2ebb9=Array['from'](_0x5cdae5)['filter'](_0xd559ca=>function(_0x31ae43,_0x4fcd3b){return _0x4fcd3b['checkChild'](_0x31ae43['parent'],'listItem')&&!_0x4fcd3b['isObject'](_0x31ae43);}(_0xd559ca,_0x47031d));_0xf2ebb9=_0xf2ebb9['filter'](_0x382b54=>!_0x382b54['is']('element','listItem')||_0x382b54['getAttribute']('listType')!=_0x4e3380);const _0x1be687=new Set();for(const _0x47211f of _0xf2ebb9)_0x47211f['is']('element','listItem')?_0x1be687['add'](Le(_0x47211f)):_0x1be687['add'](_0x47211f);return Array['from'](_0x1be687);}(_0x3e69a6['getSelectedBlocks'](),_0x1a9166,_0x2ed727['model']['schema']);_0x2ed727['model']['change'](()=>{for(const _0x268abf of _0x386f73)_0x5094d2['markBlockFormat'](_0x268abf,{'commandName':_0x518bcf,'commandParams':[{'forceValue':!_0x43d08b['value']}],'formatGroupId':'blockName'},Ee(_0x268abf));});};}function _0x133a47(_0x1d5b28){return()=>{const _0x89bcb7=function(_0x12cedb){let _0x1ccdc5=Array['from'](_0x12cedb);const _0xee6a2a=_0x1ccdc5['findIndex'](_0x1618a5=>'listItem'!=_0x1618a5['name']);return _0xee6a2a>-0x1&&(_0x1ccdc5=_0x1ccdc5['slice'](0x0,_0xee6a2a)),_0x1ccdc5;}(_0x2ed727['model']['document']['selection']['getSelectedBlocks']()),_0x4f0853=_0x2ed727['model']['createRange'](_0x2ed727['model']['createPositionAt'](_0x89bcb7[0x0],'before'),_0x2ed727['model']['createPositionAt'](_0x89bcb7[_0x89bcb7['length']-0x1],'end'));_0x2ed727['model']['change'](()=>{_0x5094d2['markBlockFormat'](_0x4f0853,{'commandName':_0x1d5b28,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3c4467){const _0x4d3137=new Set();for(const _0x71d614 of _0x3c4467){let _0x3cca00=_0x71d614['nextSibling'];for(;_0x3cca00&&_0x3cca00['getAttribute']('listIndent')>_0x71d614['getAttribute']('listIndent');)_0x4d3137['add'](_0x3cca00),_0x3cca00=_0x3cca00['nextSibling'];}return Array['from'](_0x4d3137);}(_0x89bcb7));});};}_0x5094d2['enableCommand']('numberedList',_0x5462c5('numberedList')),_0x5094d2['enableCommand']('bulletedList',_0x5462c5('bulletedList')),_0x1020f6&&_0x5094d2['enableCommand']('todoList',_0x5462c5('todoList')),_0x5094d2['enableCommand']('indentList',_0x133a47('indentList')),_0x5094d2['enableCommand']('outdentList',_0x133a47('outdentList')),_0x1020f6&&_0x5094d2['enableCommand']('checkTodoList',()=>{const _0x34edef=_0x2ed727['commands']['get']('checkTodoList'),_0x44ccde=Array['from'](_0x34edef['_selectedElements']);_0x44ccde['filter'](_0x3ab1f6=>_0x3ab1f6['getAttribute']('todoListChecked')!=_0x34edef['value']),_0x2ed727['model']['change'](()=>{for(const _0x4bb899 of _0x44ccde)_0x5094d2['markBlockFormat'](_0x4bb899,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x34edef['value']}]});});}),_0x5094d2['descriptionFactory']['registerElementLabel']('listItem',_0xdf6bf=>o(_0x2650c0,'ELEMENT_LIST_ITEM',_0xdf6bf)),_0x5094d2['descriptionFactory']['registerDescriptionCallback'](_0x507d49=>{if('formatBlock'!=_0x507d49['type']&&'formatInline'!=_0x507d49['type'])return;const {data:_0x44d082}=_0x507d49;if(_0x44d082){if('numberedList'==_0x44d082['commandName']||'bulletedList'==_0x44d082['commandName']||'todoList'==_0x44d082['commandName'])switch(_0x44d082['commandName']['replace']('List','')){case'bulleted':return _0x1686ec(o(_0x2650c0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1686ec(o(_0x2650c0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1686ec(o(_0x2650c0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x44d082['commandName'])return{'type':'format','content':o(_0x2650c0,'*Indent:*\x20%0',o(_0x2650c0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x44d082['commandName'])return{'type':'format','content':o(_0x2650c0,'*Outdent:*\x20%0',o(_0x2650c0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x44d082['commandName'])return _0x44d082['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2650c0,'*Check\x20item*')}:{'type':'format','content':o(_0x2650c0,'*Uncheck\x20item*')};}function _0x1686ec(_0x36ce46){return{'type':'format','content':o(_0x2650c0,'*Change\x20to:*\x20%0',_0x36ce46)};}});}}function Le(_0x3f63ca){const _0x2ed3f7=_0x3f63ca['getAttribute']('listIndent');if(0x0==_0x2ed3f7)return _0x3f63ca;let _0x4d5411=_0x3f63ca;for(;_0x3f63ca['previousSibling']&&_0x3f63ca['previousSibling']['is']('element','listItem');){const _0x50bc82=_0x3f63ca['previousSibling']['getAttribute']('listIndent');if(_0x50bc82==_0x2ed3f7)_0x4d5411=_0x3f63ca['previousSibling'];else{if(_0x50bc82<_0x2ed3f7)break;}_0x3f63ca=_0x3f63ca['previousSibling'];}return _0x4d5411;}function Ee(_0x6d5b4b){const _0x2b7fc7=[];if(_0x6d5b4b['is']('element','listItem')&&_0x6d5b4b['getAttribute']('listIndent')>0x0){let _0x500905=_0x6d5b4b['nextSibling'];for(;_0x500905&&'listItem'==_0x500905['name']&&_0x500905['getAttribute']('listIndent')==_0x6d5b4b['getAttribute']('listIndent');)_0x2b7fc7['push'](_0x500905),_0x500905=_0x500905['nextSibling'];}return _0x2b7fc7;}class ht extends _0xc3381c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3e606d=this['editor']['config']['get']('list.properties'),_0x131fd0=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e606d['styles']&&_0x131fd0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3e606d['reversed']&&_0x131fd0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3e606d['startIndex']&&_0x131fd0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x131fd0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1c9333,_0x5af462={}){const _0xdf85d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x288ff9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xdf85d0['markMultiRangeBlockFormat'](_0x288ff9,{'commandName':'listStyle','commandParams':[{'type':_0x5af462['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x29b123,_0x566a6f={}){const _0x450e0e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a084f=this['_getSuggestionBlocks'](_0x201799=>_0x201799['is']('element','listItem')&&'numbered'===_0x201799['getAttribute']('listType'));if(_0x4a084f['length']<0x1)return;const _0x4a3f57=_0x4a084f['map'](_0x275ac9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x275ac9,'before'),this['editor']['model']['createPositionAt'](_0x275ac9,0x0)));this['editor']['model']['change'](()=>{_0x450e0e['markMultiRangeBlockFormat'](_0x4a3f57,{'commandName':'listReversed','commandParams':[{'reversed':_0x566a6f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x52cb1b,_0x33d0e6={}){const _0x22a073=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fce1f=this['_getSuggestionBlocks'](_0x3e07bd=>_0x3e07bd['is']('element','listItem')&&'numbered'===_0x3e07bd['getAttribute']('listType'));if(_0x1fce1f['length']<0x1)return;const _0x581fe2=_0x1fce1f['map'](_0x25622c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25622c,'before'),this['editor']['model']['createPositionAt'](_0x25622c,0x0)));this['editor']['model']['change'](()=>{_0x22a073['markMultiRangeBlockFormat'](_0x581fe2,{'commandName':'listStart','commandParams':[{'startIndex':_0x33d0e6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x516e9e){if('formatBlock'!=_0x516e9e['type']&&'formatInline'!=_0x516e9e['type'])return;const _0x2173f2=this['editor']['locale'],{data:_0x3d02bb}=_0x516e9e;if(!_0x3d02bb)return;let _0x2d6845,_0x12b6ef;switch(_0x3d02bb['commandName']){case'listStyle':_0x2d6845='*Change\x20to:*\x20%0',_0x12b6ef={'type':'format','content':o(_0x2173f2,_0x2d6845,o(_0x2173f2,this['_getTranslationKeyForListStyle'](_0x3d02bb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2d6845=_0x3d02bb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x12b6ef={'type':'format','content':o(_0x2173f2,_0x2d6845)};break;case'listStart':_0x2d6845='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x12b6ef={'type':'format','content':o(_0x2173f2,_0x2d6845,_0x3d02bb['commandParams'][0x0]['startIndex'])};}return _0x12b6ef;}['_getSuggestionBlocksForListStyle'](){const _0x55dcf1=this['editor']['plugins']['get']('LegacyListUtils');let _0x260bfb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x260bfb[0x0]?.['is']('element','listItem')&&_0x260bfb['unshift'](..._0x55dcf1['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x260bfb[_0x260bfb['length']-0x1]?.['is']('element','listItem')&&_0x260bfb['push'](..._0x55dcf1['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x260bfb=[...new Set(_0x260bfb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x260bfb=_0x260bfb['filter'](_0xc83b51=>_0xc83b51['is']('element','listItem'))),_0x260bfb;}['_getSuggestionBlocks'](_0x1521ff){const _0x51fedb=this['editor']['plugins']['get']('LegacyListUtils');let _0x256f28=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1521ff)['map'](_0x3af7cf=>{const _0xd65e48=this['editor']['model']['createPositionAt'](_0x3af7cf,0x0);return[..._0x51fedb['getSiblingNodes'](_0xd65e48,'backward'),..._0x51fedb['getSiblingNodes'](_0xd65e48,'forward')];})['flat']();return _0x256f28=[...new Set(_0x256f28)],_0x256f28;}['_getTranslationKeyForListStyle'](_0x1aefa3){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1aefa3)||'default')['toUpperCase']()+'_LIST_'+_0x1aefa3['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xc3381c{['afterInit'](){const _0x593793=this['editor'];if(!_0x593793['plugins']['has']('MediaEmbedEditing'))return;const _0x4e4262=_0x593793['plugins']['get']('TrackChangesEditing'),_0x348065=_0x593793['locale'];_0x4e4262['enableCommand']('mediaEmbed'),_0x4e4262['descriptionFactory']['registerElementLabel']('media',_0x3619ec=>o(_0x348065,'ELEMENT_MEDIA',_0x3619ec)),_0x593793['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x215922,{writer:_0x399851,options:_0x49487c})=>{if(_0x49487c['showSuggestionHighlights'])return _0x399851['createEmptyElement']('div');},'converterPriority':'high'}),_0x593793['data']['downcastDispatcher']['on']('attribute:url:media',(_0x541912,_0x5e1efe,_0x7b6b02)=>{_0x7b6b02['options']['showSuggestionHighlights']&&_0x541912['stop']();},{'priority':'high'});}}class lt extends _0xc3381c{['afterInit'](){const _0x187703=this['editor'];_0x187703['plugins']['has']('MentionEditing')&&_0x187703['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xc3381c{['afterInit'](){const _0x2c5546=this['editor'];if(!_0x2c5546['plugins']['has']('MergeFieldsEditing'))return;const _0x1c27dd=_0x2c5546['plugins']['get']('TrackChangesEditing'),_0x2241f5=_0x2c5546['locale'];_0x1c27dd['enableCommand']('insertMergeField'),_0x1c27dd['enableCommand']('insertMergeFieldBlock'),_0x1c27dd['enableCommand']('insertMergeFieldImage'),_0x1c27dd['descriptionFactory']['registerElementLabel']('mergeField',_0x5daa04=>o(_0x2241f5,'ELEMENT_MERGE_FIELD',_0x5daa04)),_0x1c27dd['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x15a969=>o(_0x2241f5,'ELEMENT_MERGE_FIELD',_0x15a969)),_0x1c27dd['descriptionFactory']['registerDescriptionCallback'](_0x417335=>{if('insertion'!=_0x417335['type']&&'deletion'!=_0x417335['type'])return;const _0x145467=_0x417335['getContainedElement']();if(null==_0x145467)return;const _0x3bfcdd=_0x2c5546['plugins']['get']('MergeFieldsEditing');let _0x432768;switch(_0x3bfcdd['getMergeFieldType'](_0x145467)){case null:return;case'image':{const _0x537cf0=_0x3bfcdd['unwrapAffixes'](_0x145467['getAttribute']('src'));_0x432768=_0x3bfcdd['getLabel'](_0x537cf0)||_0x537cf0;break;}default:{const _0x4aa143=_0x145467['getAttribute']('id');_0x432768=_0x3bfcdd['getLabel'](_0x4aa143)||_0x4aa143;break;}}return'insertion'==_0x417335['type']?{'type':'insertion','content':o(_0x2241f5,'*Insert:*\x20%0','\x22'+_0x432768+'\x22\x20'+o(_0x2241f5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2241f5,'*Remove:*\x20%0','\x22'+_0x432768+'\x22\x20'+o(_0x2241f5,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xc3381c{['afterInit'](){const _0x4b7ba2=this['editor'],_0x4ab373=_0x4b7ba2['plugins']['get']('TrackChangesEditing');_0x4b7ba2['plugins']['has']('MultiLevelList')&&(_0x4ab373['enableDefaultAttributesIntegration']('multiLevelList'),_0x4ab373['registerBlockAttribute']('listMarkerStyle'),_0x4ab373['descriptionFactory']['registerDescriptionCallback'](_0x5161f3=>this['handleDescriptions'](_0x5161f3)));}['handleDescriptions'](_0x2a636f){const _0x54a826=this['editor']['locale'],{data:_0x4ab0f6}=_0x2a636f,_0x444965={'type':'format','content':''};if(_0x4ab0f6&&'listMarkerStyle'==_0x4ab0f6['key']){if(!_0x4ab0f6['oldValue'])return{'type':'format','content':o(_0x54a826,'*Set\x20format:*\x20%0',o(_0x54a826,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4ab0f6['newValue']+')'};if(!_0x4ab0f6['newValue']){let _0x356478=_0x2a636f['head'];for(;_0x356478;){if(_0x356478['data']&&'listType'==_0x356478['data']['key']&&_0x356478['data']['newValue'])return _0x444965;_0x356478=_0x356478['next'];}return{'type':'format','content':o(_0x54a826,'*Remove\x20format:*\x20%0',o(_0x54a826,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4ab0f6['oldValue']+')'};}}}}class pt extends _0xc3381c{['afterInit'](){const _0x26bf53=this['editor'];if(!_0x26bf53['plugins']['has']('PageBreakEditing'))return;_0x26bf53['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1b0b96=_0x26bf53['plugins']['get']('TrackChangesEditing'),_0x4a458f=_0x26bf53['locale'];_0x1b0b96['descriptionFactory']['registerElementLabel']('pageBreak',_0x4cf52f=>o(_0x4a458f,'ELEMENT_PAGE_BREAK',_0x4cf52f));}}class kt extends _0xc3381c{['afterInit'](){const _0x473feb=this['editor'];if(!_0x473feb['plugins']['has']('Paragraph'))return;const _0x4a8267=_0x473feb['locale'],_0x3ce5af=_0x473feb['plugins']['get']('TrackChangesEditing');_0x3ce5af['descriptionFactory']['registerElementLabel']('paragraph',_0x6a212f=>o(_0x4a8267,'ELEMENT_PARAGRAPH',_0x6a212f)),_0x3ce5af['enableDefaultAttributesIntegration']('paragraph'),_0x3ce5af['enableCommand']('insertParagraph'),_0x473feb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x473feb),{'priority':'highest'}),_0x473feb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5a8e87,_0xa6ac85,_0x520fa2)=>{_0x520fa2['options']['showSuggestionHighlights']&&nr(_0x473feb,{'showActiveMarker':!0x1})(_0x5a8e87,_0xa6ac85,_0x520fa2);},{'priority':'highest'});const _0x5a9bde=_0x3ce5af['descriptionFactory'];_0x5a9bde['registerDescriptionCallback'](_0x530df0=>{if('insertion'!==_0x530df0['type'])return;const {start:_0x2be2bc,end:_0x267ea2}=_0x530df0['getFirstRange']();if(!_0x2be2bc['isTouching'](_0x267ea2)||!_0x2be2bc['nodeAfter'])return;const _0x3dc471=_0x473feb['model']['schema'],_0x3dbd23=_0x2be2bc['nodeAfter'];return _0x3dc471['isBlock'](_0x3dbd23)&&!_0x3dc471['isLimit'](_0x3dbd23)&&_0x3dc471['checkChild'](_0x3dbd23,'$text')?{'type':'insertion','content':o(_0x4a8267,'*Insert:*\x20%0',_0x5a9bde['getItemLabel'](_0x3dbd23,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a2366=this['editor'],_0x48344f=_0x3a2366['locale'];_0x3a2366['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b2d5e=>{if('formatBlock'!=_0x1b2d5e['type'])return;const {data:_0x326fb2}=_0x1b2d5e;return _0x326fb2&&'paragraph'==_0x326fb2['commandName']?{'type':'format','content':o(_0x48344f,'*Change\x20to:*\x20%0',o(_0x48344f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x19eded,{showActiveMarker:_0x5eef34=!0x0}={}){return(_0x90751a,_0x43ad84,_0x5c0fb8)=>{const _0x5de62d=_0x19eded['plugins']['get']('TrackChangesEditing'),_0x41da02=_0x43ad84['markerRange']['start'],_0x4a68b4=_0x43ad84['markerRange']['end'],_0x3d311c=_0x19eded['model']['schema'];if(!_0x41da02['isTouching'](_0x4a68b4)||!_0x41da02['nodeAfter'])return;const _0xf0ed40=_0x41da02['nodeAfter'];if(_0x3d311c['isBlock'](_0xf0ed40)&&!_0x3d311c['isLimit'](_0xf0ed40)&&_0x3d311c['checkChild'](_0xf0ed40,'$text')){if(!_0x5c0fb8['consumable']['consume'](_0x43ad84['markerRange'],_0x90751a['name']))return;const {id:_0x39fa58,authorId:_0x2ff9b0}=_0x5de62d['_splitMarkerName'](_0x43ad84['markerName']),_0x1e5cb3=_0x5c0fb8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x39fa58,'data-author-id':_0x2ff9b0}),_0x157b6e=_0x5c0fb8['mapper']['toViewPosition'](_0x4a68b4);_0x5eef34&&_0x5de62d['activeMarkers']['includes'](_0x43ad84['markerName'])&&_0x5c0fb8['writer']['addClass']('ck-suggestion-marker--active',_0x1e5cb3),_0x5c0fb8['writer']['insert'](_0x157b6e,_0x1e5cb3),_0x5c0fb8['mapper']['bindElementToMarker'](_0x1e5cb3,_0x43ad84['markerName']);}};}class wt extends _0xc3381c{['afterInit'](){const _0x1dd092=this['editor'];_0x1dd092['commands']['get']('replaceSource')&&_0x1dd092['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xc3381c{['afterInit'](){const _0x26fe49=this['editor'];if(!_0x26fe49['plugins']['has']('RemoveFormatEditing'))return;_0x26fe49['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c0f23=this['editor'];_0x2c0f23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x270b0f=>{if('formatBlock'!=_0x270b0f['type']&&'formatInline'!=_0x270b0f['type'])return;const {data:_0xc0f36a}=_0x270b0f;return _0xc0f36a&&'removeFormat'==_0xc0f36a['commandName']?{'type':'format','content':o(_0x2c0f23['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xc3381c{['afterInit'](){const _0x565e00=this['editor'];if(!_0x565e00['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4e2797=_0x565e00['plugins']['get']('TrackChangesEditing');_0x4e2797['enableCommand']('goToPreviousRestrictedEditingException'),_0x4e2797['enableCommand']('goToNextRestrictedEditingException');const _0xb77404=_0x565e00['plugins']['get']('RestrictedEditingModeEditing');_0xb77404['enableCommand']('trackChanges'),_0xb77404['enableCommand']('acceptSuggestion'),_0xb77404['enableCommand']('discardSuggestion'),_0xb77404['enableCommand']('acceptAllSuggestions'),_0xb77404['enableCommand']('discardAllSuggestions'),_0xb77404['enableCommand']('acceptSelectedSuggestions'),_0xb77404['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xc3381c{['afterInit'](){const _0x5787df=this['editor'];if(!_0x5787df['plugins']['has']('ShiftEnter'))return;const _0x362677=_0x5787df['plugins']['get']('TrackChangesEditing');_0x362677['enableCommand']('shiftEnter'),_0x5787df['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5787df),{'priority':'high'}),_0x5787df['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5787df),{'priority':'high'}),_0x5787df['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xee1c33,_0x357e32,_0x12722b)=>{_0x12722b['options']['showSuggestionHighlights']&&je(_0x5787df,{'showActiveMarker':!0x1})(_0xee1c33,_0x357e32,_0x12722b);}),_0x362677['descriptionFactory']['registerElementLabel']('softBreak',_0x517cbc=>o(_0x5787df['locale'],'ELEMENT_LINE_BREAK',_0x517cbc));}}function je(_0x4160f1,{showActiveMarker:_0x5b4436=!0x0}={}){return(_0x43fd3d,_0x270d05,_0x46d08c)=>{const _0x4300d8=_0x4160f1['plugins']['get']('TrackChangesEditing');if(!_0x46d08c['consumable']['test'](_0x270d05['markerRange'],_0x43fd3d['name']))return;const _0x5aa649=_0x4160f1['model'];for(const _0x2a22e8 of _0x270d05['markerRange']['getItems']()){if(!_0x2a22e8['is']('element','softBreak'))continue;const _0x1aa538='deletion'==_0x270d05['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5a0dd3,authorId:_0x437245}=_0x4300d8['_splitMarkerName'](_0x270d05['markerName']),_0x98ee00=_0x46d08c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1aa538,'data-suggestion':_0x5a0dd3,'data-author-id':_0x437245}),_0x17f1a5=_0x46d08c['mapper']['toViewPosition'](_0x5aa649['createPositionBefore'](_0x2a22e8));_0x5b4436&&_0x4300d8['activeMarkers']['includes'](_0x270d05['markerName'])&&_0x46d08c['writer']['addClass']('ck-suggestion-marker--active',_0x98ee00),_0x46d08c['writer']['insert'](_0x17f1a5,_0x98ee00),_0x46d08c['mapper']['bindElementToMarker'](_0x98ee00,_0x270d05['markerName']);}};}class St extends _0xc3381c{['afterInit'](){const _0x573a7e=this['editor'],_0x56c146=_0x573a7e['model'],_0x5a365d=_0x573a7e['locale'];if(!_0x573a7e['plugins']['has']('StandardEditingModeEditing'))return;const _0x3d7442=_0x573a7e['plugins']['get']('TrackChangesEditing'),_0x39e61d='restrictedEditingException',_0x3ae8ce=_0x573a7e['commands']['get'](_0x39e61d);_0x3d7442['enableCommand'](_0x39e61d,(_0x2fcf63,_0x1ce67b={})=>{const _0x2b5d12=_0x56c146['document']['selection'];if(_0x2b5d12['isCollapsed'])return void _0x2fcf63(_0x1ce67b);const _0x30bece=void 0x0!==_0x1ce67b['forceValue']?_0x1ce67b['forceValue']:!_0x3ae8ce['value'];_0x56c146['change'](()=>{const _0x389bfc=Array['from'](_0x2b5d12['getRanges']());for(const _0x2bca4e of _0x389bfc){const _0x1d35c0=_0x30bece?[_0x2bca4e]:io(_0x39e61d,_0x2bca4e,_0x56c146);for(const _0x4ce814 of _0x1d35c0)_0x3d7442['markInlineFormat'](_0x4ce814,{'commandName':_0x39e61d,'commandParams':[{'forceValue':_0x30bece}]});}});}),_0x3d7442['descriptionFactory']['registerDescriptionCallback'](_0x296bfb=>{if('formatBlock'!=_0x296bfb['type']&&'formatInline'!=_0x296bfb['type'])return;const {data:_0x255934}=_0x296bfb;return _0x255934&&_0x255934['commandName']==_0x39e61d?_0x255934['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a365d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5a365d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xc3381c{['afterInit'](){const _0xa04636=this['editor'];if(!_0xa04636['plugins']['has']('Style')||!_0xa04636['plugins']['has']('DataSchema'))return;const _0x55c4a9=_0xa04636['plugins']['get']('TrackChangesEditing'),_0x4833dd=_0xa04636['locale'],_0x5be53b=_0xa04636['config']['get']('style')||{},_0x2b346b=_0xa04636['plugins']['get']('GeneralHtmlSupport'),_0x10d1f0=_0xa04636['plugins']['get']('StyleUtils')['normalizeConfig'](_0xa04636['plugins']['get']('DataSchema'),_0x5be53b['definitions']);_0x55c4a9['enableDefaultAttributesIntegration']('style');const _0x3faeb6=new Set();for(const _0xe75794 of _0x10d1f0['block']){const _0x32145c=_0x2b346b['getGhsAttributeNameForElement'](_0xe75794['element']);_0x3faeb6['add'](_0x32145c);}const _0x4258c3=new Set();for(const _0x2face4 of _0x10d1f0['inline']){const _0x4f1a1f=_0x2b346b['getGhsAttributeNameForElement'](_0x2face4['element']);_0x4258c3['add'](_0x4f1a1f);for(const _0xbdf2cf of _0x2face4['ghsAttributes'])_0x4258c3['add'](_0xbdf2cf);}for(const _0x4663bb of _0x3faeb6)_0x55c4a9['registerBlockAttribute'](_0x4663bb),_0x55c4a9['descriptionFactory']['registerAttributeLabel'](_0x4663bb,o(_0x4833dd,'FORMAT_STYLE'));for(const _0x5aac61 of _0x4258c3)_0x55c4a9['registerInlineAttribute'](_0x5aac61),_0x55c4a9['descriptionFactory']['registerAttributeLabel'](_0x5aac61,o(_0x4833dd,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25817b=this['editor'],_0x234cd7=_0x25817b['locale'];_0x25817b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cef0a=>{if('formatBlock'!=_0x2cef0a['type']&&'formatInline'!=_0x2cef0a['type'])return;const {data:_0x4e3f44}=_0x2cef0a;return _0x4e3f44&&'style'===_0x4e3f44['commandName']?_0x4e3f44['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x234cd7,'*Set\x20format:*\x20%0',_0x4e3f44['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x234cd7,'*Remove\x20format:*\x20%0',_0x4e3f44['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xc3381c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2d8460){super(_0x2d8460),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x44577c=this['editor'],_0x13a83d=_0x44577c['model']['document']['selection'];if(!_0x44577c['plugins']['has']('TableEditing'))return;const _0x3ebf4d=_0x44577c['locale'],_0x24bced=_0x44577c['plugins']['get']('TrackChangesEditing'),_0x25d81b=_0x44577c['plugins']['get']('TableUtils');_0x24bced['descriptionFactory']['registerElementLabel']('table',_0x419f84=>o(_0x3ebf4d,'ELEMENT_TABLE',_0x419f84)),this['_setupColumnsRowsFixing'](),_0x24bced['enableCommand']('insertTable'),_0x24bced['enableCommand']('selectTableRow'),_0x24bced['enableCommand']('selectTableColumn');for(const _0x62e7d of['insertTableRowAbove','insertTableRowBelow']){const _0x59a4ea=_0x44577c['commands']['get'](_0x62e7d);_0x24bced['enableCommand'](_0x62e7d,_0x10ebf6=>{_0x44577c['model']['change'](_0x546773=>{_0x10ebf6();const _0x15a66d='above'===_0x59a4ea['order'],_0x33632c=_0x25d81b['getSelectionAffectedTableCells'](_0x13a83d),_0x56738a=_0x25d81b['getRowIndexes'](_0x33632c),_0x4d6786=_0x15a66d?_0x56738a['first']-0x1:_0x56738a['last']+0x1,_0x5ce20e=_0x33632c[0x0]['findAncestor']('table'),_0x9efea=_0x25d81b['createTableWalker'](_0x5ce20e,{'startRow':_0x4d6786,'endRow':_0x4d6786}),_0x5372f2=Array['from'](_0x9efea)['map'](_0x3dc1be=>_0x546773['createRangeOn'](_0x3dc1be['cell']));_0x24bced['markMultiRangeInsertion'](_0x5372f2,'tableRow');});});}for(const _0x51086b of['insertTableColumnLeft','insertTableColumnRight']){const _0x4e1e19=_0x44577c['commands']['get'](_0x51086b);_0x24bced['enableCommand'](_0x51086b,_0x5b6647=>{_0x44577c['model']['change'](_0x54a3ca=>{_0x5b6647();const _0xb3d100='left'===_0x4e1e19['order'],_0xf6a159=_0x25d81b['getSelectionAffectedTableCells'](_0x13a83d),_0x5477a8=_0x25d81b['getColumnIndexes'](_0xf6a159),_0x546e8c=_0xb3d100?_0x5477a8['first']-0x1:_0x5477a8['last']+0x1,_0x2f5572=_0xf6a159[0x0]['findAncestor']('table'),_0x3bba8a=_0x25d81b['createTableWalker'](_0x2f5572,{'startRow':0x0,'column':_0x546e8c,'includeAllSlots':!0x1}),_0x2d66e6=Array['from'](_0x3bba8a)['map'](_0x12dc83=>_0x54a3ca['createRangeOn'](_0x12dc83['cell']));_0x24bced['markMultiRangeInsertion'](_0x2d66e6,'tableColumn');});});}for(const _0x1d7902 of['removeTableRow','removeTableColumn']){const _0x2d4749=_0x1d7902['substr'](0xb),_0x2f0637=_0x2d4749['toLowerCase'](),_0x15aba7=_0x2f0637['substr'](0x0,0x3)+'span',_0xdc07fd='table'+_0x2d4749,_0x196995='min'+_0x2d4749,_0x110dce='max'+_0x2d4749;_0x24bced['enableCommand'](_0x1d7902,()=>{_0x44577c['model']['change'](_0x569757=>{const _0x2fb437=_0x25d81b['getSelectionAffectedTableCells'](_0x13a83d),_0x49868e=_0x2fb437[0x0]['findAncestor']('table');let _0x44a60c;if('removeTableRow'==_0x1d7902){const _0x5a3f02=_0x25d81b['getRowIndexes'](_0x2fb437);_0x44a60c={'startRow':_0x5a3f02['first'],'endRow':_0x5a3f02['last'],'includeAllSlots':!0x0};}else{const _0x37f63b=_0x25d81b['getColumnIndexes'](_0x2fb437);_0x44a60c={'startColumn':_0x37f63b['first'],'endColumn':_0x37f63b['last'],'includeAllSlots':!0x0};}const _0x38512c=_0x25d81b['createTableWalker'](_0x49868e,_0x44a60c),_0x201c14=Array['from'](_0x38512c)['map'](({cell:_0x10cb45})=>_0x10cb45),_0x42b89d=Ne(_0x201c14['filter'](_0x1b9418=>_0x1b9418['hasAttribute'](_0x15aba7))),_0x50a616=Ne(_0x201c14['filter'](_0x21dda8=>!_0x21dda8['hasAttribute'](_0x15aba7)))['map'](_0x5383fe=>_0x569757['createRangeOn'](_0x5383fe)),_0x37c239=_0x24bced['markMultiRangeDeletion'](_0x50a616,_0xdc07fd);if(_0x37c239&&('tableRow'==_0x37c239['subType']||'tableColumn'==_0x37c239['subType'])){const _0x15deb6=this['_getSuggestionCoords'](_0x37c239);for(const _0x3caf9c of _0x42b89d){const _0x33c129=_0x569757['createRangeOn'](_0x3caf9c),_0x24b5ce=_0x25d81b['getCellLocation'](_0x3caf9c),_0x57c3e4=_0x3caf9c['getAttribute'](_0x15aba7)-0x1,_0x39990f=_0x15deb6[_0x196995],_0xd5a241=_0x15deb6[_0x110dce];_0x39990f<=_0x24b5ce[_0x2f0637]&&_0x24b5ce[_0x2f0637]+_0x57c3e4<=_0xd5a241&&_0x37c239['addRange'](_0x33c129);}}});});}function _0x1d26f6(_0x16e460){const _0x57444e=Array['from'](_0x13a83d['getRanges']())['map'](_0x3ee88d=>_0x51ea19['fromRange'](_0x3ee88d));_0x44577c['model']['change'](_0x3dad32=>{const _0x4355ee=_0x3dad32['batch'];_0x16e460=_0x16e460['filter'](_0x2a6088=>'$graveyard'!=_0x2a6088['root']['rootName']),_0x3dad32['setSelection'](_0x16e460),_0x44577c['commands']['get']('removeTableRow')['refresh'](),_0x44577c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x44577c['model']['enqueueChange'](()=>{_0x44577c['model']['enqueueChange'](_0x4355ee,_0x3c4c8a=>{const _0x1f6b67=_0x57444e['filter'](_0x58d775=>'$graveyard'!=_0x58d775['root']['rootName']);_0x1f6b67['length']>0x0&&_0x3c4c8a['setSelection'](_0x1f6b67);for(const _0x18e0f4 of _0x57444e)_0x18e0f4['detach']();});});});}function _0x23f6f4(_0x54f22d){_0x44577c['model']['change'](_0x1cc46e=>{const _0x3f32a2=Array['from'](_0x13a83d['getRanges']())['map'](_0xf6c48f=>_0x51ea19['fromRange'](_0xf6c48f)),_0x4f9f41=[];for(const _0x39472f of _0x54f22d)for(const _0x4624a5 of _0x39472f['getItems']({'shallow':!0x0}))_0x4f9f41['push'](_0x4624a5);for(const _0x234d96 of _0x4f9f41)'$graveyard'!=_0x234d96['root']['rootName']&&(_0x1cc46e['setSelection'](_0x1cc46e['createPositionAt'](_0x234d96,0x0)),_0x44577c['commands']['get']('removeTableColumn')['refresh'](),_0x44577c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x248dff=_0x3f32a2['filter'](_0x32081d=>'$graveyard'!=_0x32081d['root']['rootName']);_0x248dff['length']>0x0&&_0x1cc46e['setSelection'](_0x248dff);for(const _0x53b2ef of _0x3f32a2)_0x53b2ef['detach']();});}function _0x17031d(_0x1b880e,_0x3e469e){return _0x3e469e['every'](_0x33cab3=>_0x1b880e['some'](_0x378e05=>_0x378e05['end']['isEqual'](_0x33cab3['start'])||_0x33cab3['end']['isEqual'](_0x378e05['start'])));}function _0x51612a(_0x1241c3,_0x373010){return!_0x1241c3['some'](_0x586ec3=>_0x373010['some'](_0x229b5c=>_0x586ec3['isIntersecting'](_0x229b5c)))&&_0x1241c3['some'](_0x524248=>_0x373010['some'](_0x356bb1=>_0x524248['end']['isTouching'](_0x356bb1['start'])));}_0x44577c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x51c37e,_0x501511,_0xded7c4)=>{if(!_0xded7c4['options']['showSuggestionHighlights'])return;const _0x14a76f=_0x501511['item'];if(!_0x14a76f||!_0x14a76f['is']('element','tableCell'))return;const _0xe9f941=_0xded7c4['mapper']['toViewElement'](_0x14a76f);if(_0xe9f941){const {id:_0x59916c,authorId:_0x2a2609}=_0x24bced['_splitMarkerName'](_0x501511['markerName']);_0x1b893a(_0xe9f941,_0xded7c4['writer'],(_0x28b6b5,_0x4bed73,_0x1d8c65)=>{_0x1d8c65['addClass'](_0x4d7f1e(_0x4bed73['classes']),_0x28b6b5),_0x1d8c65['setAttribute']('data-suggestion-id',_0x59916c,_0x28b6b5),_0x1d8c65['setAttribute']('data-author-id',_0x2a2609,_0x28b6b5);},(_0x535f22,_0x14fc3c,_0x4dfce0)=>{_0x4dfce0['removeClass'](_0x4d7f1e(_0x14fc3c['classes']),_0x535f22),_0x4dfce0['removeAttribute']('data-suggestion-id',_0x535f22),_0x4dfce0['removeAttribute']('data-author-id',_0x535f22);});}},{'priority':'highest'}),_0x24bced['descriptionFactory']['registerDescriptionCallback'](_0x45ec66=>{if('insertion'!=_0x45ec66['type']&&'deletion'!=_0x45ec66['type'])return;const _0x473ba7=_0x45ec66['getContainedElement']();if(null!=_0x473ba7&&_0x473ba7['is']('element','table')){if('insertion'==_0x45ec66['type']){const _0x2774af=_0x45ec66['getItems']()['filter'](_0x2747b9=>_0x2747b9['is']('$textProxy'))['map'](_0x584c66=>_0x584c66['data']);if(_0x2774af['length'])return{'type':'insertion','content':o(_0x3ebf4d,'*Insert:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2774af['join']('\x20')+'\x22'))};}if('deletion'==_0x45ec66['type']){const _0x78f400=_0x45ec66['getItems']()['filter'](_0x307b94=>_0x307b94['is']('$textProxy'))['map'](_0x10c4a0=>_0x10c4a0['data']);if(_0x78f400['length'])return{'type':'deletion','content':o(_0x3ebf4d,'*Remove:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x78f400['join']('\x20')+'\x22'))};}}}),_0x24bced['descriptionFactory']['registerDescriptionCallback'](_0x1e88a5=>{if('tableRow'==_0x1e88a5['subType']){const _0x2f8713=_0x1e88a5['getItems']()['filter'](_0x5673a2=>_0x5673a2['is']('$textProxy'))['map'](_0x237c82=>_0x237c82['data']),_0x163bc3=this['_getSuggestionCoords'](_0x1e88a5),_0x3f7feb=_0x163bc3['maxRow']-_0x163bc3['minRow']+0x1;if('insertion'==_0x1e88a5['type'])return _0x2f8713['length']?{'type':'insertion','content':o(_0x3ebf4d,'*Insert:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3f7feb,'\x22'+_0x2f8713['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3ebf4d,'*Insert:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_ROW',_0x3f7feb))};if('deletion'==_0x1e88a5['type'])return _0x2f8713['length']?{'type':'deletion','content':o(_0x3ebf4d,'*Remove:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3f7feb,'\x22'+_0x2f8713['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3ebf4d,'*Remove:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_ROW',_0x3f7feb))};}if('tableColumn'==_0x1e88a5['subType']){const _0x454b43=_0x1e88a5['getItems']()['filter'](_0x5ea1d1=>_0x5ea1d1['is']('$textProxy'))['map'](_0xb9a4c0=>_0xb9a4c0['data']),_0x23c0bf=this['_getSuggestionCoords'](_0x1e88a5),_0x58a970=_0x23c0bf['maxColumn']-_0x23c0bf['minColumn']+0x1;if('insertion'==_0x1e88a5['type'])return _0x454b43['length']?{'type':'insertion','content':o(_0x3ebf4d,'*Insert:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58a970,'\x22'+_0x454b43['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3ebf4d,'*Insert:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_COLUMN',_0x58a970))};if('deletion'==_0x1e88a5['type'])return _0x454b43['length']?{'type':'deletion','content':o(_0x3ebf4d,'*Remove:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58a970,'\x22'+_0x454b43['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3ebf4d,'*Remove:*\x20%0',o(_0x3ebf4d,'ELEMENT_TABLE_COLUMN',_0x58a970))};}}),_0x24bced['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1d26f6),_0x24bced['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1d26f6),_0x24bced['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x23f6f4),_0x24bced['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x23f6f4),_0x24bced['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x17031d),_0x24bced['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x17031d),_0x24bced['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x51612a),_0x24bced['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x51612a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x589640=this['editor'],_0xb18cde=_0x589640['model']['document']['selection'];return(_0x4fa68b,_0x331786)=>{_0x589640['model']['change'](_0x4a92da=>{const {commandName:_0x4d41d1,commandParams:_0x83fc3f}=_0x331786;let _0x4c08d7=_0x4fa68b[0x0]['end']['nodeBefore'];_0x83fc3f&&_0x83fc3f[0x0]&&!0x1===_0x83fc3f[0x0]['forceValue']&&(_0x4c08d7=_0x4fa68b[0x0]['start']['nodeAfter']);const _0x290bc2=_0x4a92da['createRangeIn'](_0x4c08d7);if('$graveyard'==_0x290bc2['root']['rootName'])return;const _0x2ada20=Array['from'](_0xb18cde['getRanges']())['map'](_0x5bbd85=>_0x51ea19['fromRange'](_0x5bbd85));_0x4a92da['setSelection'](_0x290bc2),_0x589640['commands']['get'](_0x4d41d1)['refresh'](),_0x83fc3f['push']({'forceDefaultExecution':!0x0}),_0x589640['execute'](_0x4d41d1,..._0x83fc3f);const _0x21726b=_0x2ada20['filter'](_0x16b596=>'$graveyard'!=_0x16b596['root']['rootName']);_0x21726b['length']>0x0&&_0x4a92da['setSelection'](_0x21726b);for(const _0x53d97f of _0x2ada20)_0x53d97f['detach']();});};}['_getCoordsForCells'](_0x2a4283){const _0x496373=this['editor']['plugins']['get']('TableUtils');let _0xf9608e=Number['MAX_SAFE_INTEGER'],_0x5729a7=Number['MIN_SAFE_INTEGER'],_0x16da77=Number['MAX_SAFE_INTEGER'],_0x51a709=Number['MIN_SAFE_INTEGER'];for(const _0xb1573f of _0x2a4283){if('$graveyard'==_0xb1573f['root']['rootName'])continue;const {row:_0x1cf6bd,column:_0x331cbc}=_0x496373['getCellLocation'](_0xb1573f),_0x45563d=_0xb1573f['hasAttribute']('rowspan')?_0xb1573f['getAttribute']('rowspan')-0x1:0x0,_0x5262b9=_0xb1573f['hasAttribute']('colspan')?_0xb1573f['getAttribute']('colspan')-0x1:0x0;_0xf9608e=_0x1cf6bd<_0xf9608e?_0x1cf6bd:_0xf9608e,_0x5729a7=_0x1cf6bd+_0x45563d>_0x5729a7?_0x1cf6bd+_0x45563d:_0x5729a7,_0x16da77=_0x331cbc<_0x16da77?_0x331cbc:_0x16da77,_0x51a709=_0x331cbc+_0x5262b9>_0x51a709?_0x331cbc+_0x5262b9:_0x51a709;}return{'minRow':_0xf9608e,'maxRow':_0x5729a7,'minColumn':_0x16da77,'maxColumn':_0x51a709};}['_setupColumnsRowsFixing'](){const _0x92a668=this['editor'],_0x21338e=_0x92a668['plugins']['get']('TrackChangesEditing'),_0x5323f1=_0x92a668['plugins']['get']('TableUtils');_0x92a668['model']['document']['on']('change:data',()=>{const _0x10ede9=Array['from'](_0x92a668['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25cea7,data:_0x5699a4}of _0x10ede9){const {group:_0x1d075a,id:_0x42f8a1,subType:_0x3e1c0a}=_0x21338e['_splitMarkerName'](_0x25cea7);if('suggestion'!=_0x1d075a)continue;if(null!=_0x5699a4['oldRange'])continue;const _0xa9182=_0x21338e['getSuggestion'](_0x42f8a1);this['_tablePostFixingSubtypes']['includes'](_0x3e1c0a)&&this['_tableSuggestions']['add'](_0xa9182);}},{'priority':'low'});const _0x2e15c3=(_0x130991,_0x3e3c1f)=>{let _0x4eff4e=!0x1;const _0x486c02=_0x3e3c1f['createRangeOn'](_0x130991),_0x33a951=_0x130991['findAncestor']('table'),_0x55cb03=_0x5323f1['getCellLocation'](_0x130991);for(const _0x45746d of this['_tableSuggestions']){const _0x4e6337=_0x45746d['subType'],_0x302b99=_0x4e6337['startsWith']('tablePaste'),_0x229b8f=_0x4e6337['substr'](_0x302b99?0xa:0x5),_0x43db30=_0x229b8f['toLowerCase'](),_0x35f24b=_0x43db30['substr'](0x0,0x3)+'span',_0x34788e='min'+_0x229b8f,_0x1ffeba='max'+_0x229b8f;if(!_0x45746d['isInContent'])continue;if(_0x33a951!=_0x45746d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x45746d['isIntersectingWithRange'](_0x486c02))continue;const _0x1c87ef=_0x130991['hasAttribute'](_0x35f24b)?_0x130991['getAttribute'](_0x35f24b)-0x1:0x0,_0x3f7fa7=this['_getSuggestionCoords'](_0x45746d),_0x3667f6=_0x3f7fa7[_0x34788e],_0x342b0a=_0x3f7fa7[_0x1ffeba];_0x3667f6<=_0x55cb03[_0x43db30]&&_0x55cb03[_0x43db30]+_0x1c87ef<=_0x342b0a&&(_0x45746d['addRange'](_0x486c02),_0x4eff4e=!0x0);}return _0x4eff4e;};_0x92a668['model']['document']['registerPostFixer'](_0x22adb1=>{let _0x494b2d=!0x1;for(const _0x1f0170 of _0x92a668['model']['document']['differ']['getChanges']())if('insert'==_0x1f0170['type']){if('tableRow'==_0x1f0170['name']){for(const _0x3af4a0 of _0x1f0170['position']['nodeAfter']['getChildren']())_0x494b2d=_0x494b2d||_0x2e15c3(_0x3af4a0,_0x22adb1);}else'tableCell'==_0x1f0170['name']&&(_0x494b2d=_0x494b2d||_0x2e15c3(_0x1f0170['position']['nodeAfter'],_0x22adb1));}return _0x494b2d;});}['_getSuggestionCoords'](_0xfac950){return this['_getCoordsForCells'](_0xfac950['getRanges']()['map'](_0x64a335=>_0x64a335['start']['nodeAfter']));}}function Ne(_0x5bed49){return Array['from'](new Set(_0x5bed49)['values']());}class _t extends _0xc3381c{static get['requires'](){return[At];}['afterInit'](){const _0x38a473=this['editor'],_0x44fc24=_0x38a473['model']['document']['selection'],_0x3d354f=_0x38a473['locale'];if(!_0x38a473['plugins']['has']('TableEditing'))return;const _0x32e4de=_0x38a473['plugins']['get']('TrackChangesEditing'),_0x21628f=_0x38a473['plugins']['get']('TableUtils'),_0x2a5c51=_0x38a473['plugins']['get'](At);_0x2a5c51['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x32e4de['enableCommand']('mergeTableCells',()=>{const _0x1c0aba=_0x21628f['getSelectionAffectedTableCells'](_0x38a473['model']['document']['selection']);_0x38a473['model']['change'](()=>{_0x32e4de['markMultiRangeBlockFormat'](_0x1c0aba,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x38a473['commands']['get']('mergeTableCells')['on']('execute',(_0x58b98b,_0x544290)=>{_0x38a473['commands']['get']('trackChanges')['value']&&(_0x544290['length']>0x0&&_0x544290[_0x544290['length']-0x1]&&_0x544290[_0x544290['length']-0x1]['forceDefaultExecution']||_0x32e4de['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x58b98b['stop']());},{'priority':'highest'});for(const _0x43f2d0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x24eed1=_0x38a473['commands']['get'](_0x43f2d0);_0x32e4de['enableCommand'](_0x43f2d0,()=>{const _0x3a2ac3=_0x38a473['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc80a0b=>_0xc80a0b['is']('element','tableCell')),_0x56b499=_0x24eed1['value'];_0x38a473['model']['change'](()=>{_0x32e4de['markMultiRangeBlockFormat']([_0x3a2ac3,_0x56b499],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x47f612 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x113eb0=_0x38a473['commands']['get'](_0x47f612);_0x32e4de['enableCommand'](_0x47f612,()=>{const _0x5985e4=_0x21628f['getSelectionAffectedTableCells'](_0x38a473['model']['document']['selection'])[0x0],_0x521f08=_0x5985e4['findAncestor']('table'),{column:_0x2b7fbe,row:_0x55a744}=_0x21628f['getCellLocation'](_0x5985e4);let _0x4b3f50=[];if('horizontally'==_0x113eb0['direction']){const _0x1d1898=_0x21628f['createTableWalker'](_0x521f08,{'startRow':_0x55a744,'endRow':_0x55a744,'includeAllSlots':!0x0});_0x4b3f50=Array['from'](_0x1d1898)['map'](_0x466d9e=>_0x466d9e['cell']);}else{const _0x39e5f7=_0x21628f['createTableWalker'](_0x521f08,{'column':_0x2b7fbe,'includeAllSlots':!0x0});_0x4b3f50=Array['from'](_0x39e5f7)['map'](_0x839892=>_0x839892['cell']);}_0x38a473['model']['change'](_0x1480c4=>{_0x32e4de['markBlockFormat'](_0x1480c4['createRangeOn'](_0x5985e4),{'commandName':_0x47f612,'commandParams':[]},_0x4b3f50,_0x47f612);});});}_0x32e4de['descriptionFactory']['registerDescriptionCallback'](_0x38a72f=>{if('formatBlock'!=_0x38a72f['type']&&'formatInline'!=_0x38a72f['type'])return;const {data:_0x3723da}=_0x38a72f;return _0x3723da&&'mergeTableCells'==_0x3723da['commandName']?{'type':'format','content':o(_0x3d354f,'*Merge\x20cells*')}:void 0x0;}),_0x32e4de['descriptionFactory']['registerDescriptionCallback'](_0x36abe0=>{if('formatBlock'!=_0x36abe0['type']&&'formatInline'!=_0x36abe0['type'])return;const {data:_0x3defef}=_0x36abe0;return _0x3defef?'splitTableCellVertically'==_0x3defef['commandName']?{'type':'format','content':o(_0x3d354f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3defef['commandName']?{'type':'format','content':o(_0x3d354f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xcbf4c1=_0x2a5c51['_acceptFormatSuggestionCallbackFactory']();for(const _0x4718e5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x32e4de['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4718e5,'accept',_0xcbf4c1);for(const _0xe579e3 of['splitTableCellVertically','splitTableCellHorizontally'])_0x32e4de['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe579e3,'accept',_0xcbf4c1);_0x32e4de['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5047cd=>{_0x38a473['model']['change'](_0x4d35e5=>{const _0x497693=Array['from'](_0x44fc24['getRanges']())['map'](_0x1b2607=>_0x51ea19['fromRange'](_0x1b2607));_0x4d35e5['setSelection'](_0x5047cd),_0x38a473['commands']['get']('mergeTableCells')['refresh'](),_0x38a473['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4911e9=_0x497693['filter'](_0x5852f9=>'$graveyard'!=_0x5852f9['root']['rootName']);_0x4911e9['length']>0x0&&_0x4d35e5['setSelection'](_0x4911e9);for(const _0x3b2aca of _0x497693)_0x3b2aca['detach']();});});for(const _0x5032aa of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2c4ebd=_0x38a473['commands']['get'](_0x5032aa);_0x2c4ebd['on']('set:isEnabled',(_0x19966c,_0x3834a3,_0x476d3e)=>{if(_0x476d3e){const _0x1aa162=_0x38a473['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x47a18d=>_0x47a18d['is']('element','tableCell'));this['_areMergableCells'](_0x2c4ebd['value'],_0x1aa162)||(_0x19966c['return']=!0x1,_0x19966c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x39c683=this['editor']['commands']['get']('mergeTableCells'),_0x50579b=this['editor']['plugins']['get']('TableUtils');if(!_0x39c683['isEnabled'])return!0x1;const _0x14c12e=_0x50579b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3d6fe4 of _0x14c12e)for(const _0x3158cf of _0x14c12e)if(_0x3d6fe4!=_0x3158cf&&!this['_areMergableCells'](_0x3d6fe4,_0x3158cf))return!0x1;return!0x0;}['_areMergableCells'](_0x48589c,_0x358ec9){const _0x30a336=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41e543=this['editor']['model']['createRangeOn'](_0x48589c),_0x5a810e=this['editor']['model']['createRangeOn'](_0x358ec9),_0x5648b4=new Set(),_0x57bf2c=new Set();for(const _0x4e94a9 of _0x30a336['getSuggestions']())if(('insertion'==_0x4e94a9['type']||'deletion'==_0x4e94a9['type']||'mergeTableCells'==_0x4e94a9['subType'])&&_0x4e94a9['isInContent']){for(const _0x510416 of _0x4e94a9['getRanges']())_0x510416['containsRange'](_0x41e543,!0x0)&&_0x5648b4['add'](_0x4e94a9['type']+':'+_0x4e94a9['author']['id']),_0x510416['containsRange'](_0x5a810e,!0x0)&&_0x57bf2c['add'](_0x4e94a9['type']+':'+_0x4e94a9['author']['id']);}if(_0x5648b4['size']!=_0x57bf2c['size'])return!0x1;for(const _0x488606 of _0x5648b4)if(!_0x57bf2c['has'](_0x488606))return!0x1;return!0x0;}}class Ct extends _0xc3381c{static get['requires'](){return[At];}['afterInit'](){const _0x594e53=this['editor'];if(!_0x594e53['plugins']['has']('TableEditing'))return;const _0x51e8f4=_0x594e53['locale'],_0x3bce32=_0x594e53['plugins']['get']('TrackChangesEditing');_0x3bce32['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3bce32['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3bce32['registerBlockAttribute']('headingRows'),_0x3bce32['registerBlockAttribute']('headingColumns'),_0x3bce32['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x51e8f4,'FORMAT_HEADER_ROW')),_0x3bce32['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x51e8f4,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x224032=this['editor']['plugins']['get']('TrackChangesEditing'),_0x397466=this['editor']['plugins']['get']('TableUtils'),_0x5a9138=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x131f68({showActiveMarker:_0x2d2ccc=!0x0,setDataAttribute:_0x679076=!0x0}={}){return(_0x40a2bc,_0x1fd5fa,_0x11557e)=>{const {type:_0x3c68f0,id:_0x2305e4}=_0x224032['_splitMarkerName'](_0x1fd5fa['markerName']),_0xf001d6=_0x224032['getSuggestion'](_0x2305e4),_0x235782=_0xf001d6['data'];if('formatBlock'!=_0xf001d6['type']||!_0x235782||'setTableColumnHeader'!=_0x235782['commandName'])return;if(_0x1fd5fa['item'])return void _0x40a2bc['stop']();if(!_0x11557e['consumable']['consume'](_0x1fd5fa['markerRange'],_0x40a2bc['name']))return;const _0x1c8805=_0x1fd5fa['markerRange']['start']['nodeAfter'],_0xb9c4f8=_0x1fd5fa['markerRange']['end']['nodeBefore'],_0x3b0b2e=_0x1c8805['parent']['parent'],{column:_0xfc78d0}=_0x397466['getCellLocation'](_0x1c8805),{column:_0x571389}=_0x397466['getCellLocation'](_0xb9c4f8);for(let _0x44ca00=_0xfc78d0;_0x44ca00<=_0x571389;_0x44ca00++){const _0x2183ff=_0x397466['createTableWalker'](_0x3b0b2e,{'column':_0x44ca00,'includeAllSlots':!0x1});for(const _0x7402d2 of _0x2183ff){const _0x51db34=_0x7402d2['cell'],_0x111265=_0x11557e['mapper']['toViewElement'](_0x51db34);_0x11557e['writer']['addClass']('ck-suggestion-marker-'+_0x3c68f0,_0x111265),_0x679076&&_0x11557e['writer']['setAttribute']('data-suggestion',_0x2305e4,_0x111265),_0x11557e['mapper']['bindElementToMarker'](_0x111265,_0x1fd5fa['markerName']),_0x2d2ccc&&(_0x224032['activeMarkers']['includes'](_0x1fd5fa['markerName'])?_0x11557e['writer']['addClass']('ck-suggestion-marker--active',_0x111265):_0x11557e['writer']['removeClass']('ck-suggestion-marker--active',_0x111265));}}};}_0x224032['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5a9138),_0x224032['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5a9138),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x131f68(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd85b5,_0x3010d1,_0x272781)=>{_0x272781['options']['showSuggestionHighlights']&&_0x131f68({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xd85b5,_0x3010d1,_0x272781);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x15f082,_0x1c26b9,_0x4d047f)=>{const {type:_0xd867cc,id:_0x1d3e41}=_0x224032['_splitMarkerName'](_0x1c26b9['markerName']),_0x4187d2=_0x224032['getSuggestion'](_0x1d3e41),_0x3dc74d=_0x4187d2['data'];if('formatBlock'!=_0x4187d2['type']||!_0x3dc74d||'setTableColumnHeader'!=_0x3dc74d['commandName'])return;const _0x287794=_0x4d047f['mapper']['markerNameToElements'](_0x1c26b9['markerName']);if(_0x287794){for(const _0x28c8cf of _0x287794)_0x4d047f['writer']['removeClass']('ck-suggestion-marker-'+_0xd867cc,_0x28c8cf),_0x4d047f['writer']['removeClass']('ck-suggestion-marker--active',_0x28c8cf),_0x4d047f['writer']['removeAttribute']('data-suggestion',_0x28c8cf),_0x4d047f['mapper']['unbindElementFromMarkerName'](_0x28c8cf,_0x1c26b9['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d2fdc=this['editor'],_0x290224=_0x2d2fdc['locale'];function _0x4f8a67(_0x56143d){return{'type':'format','content':o(_0x290224,'*Format:*\x20%0',_0x56143d)};}_0x2d2fdc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b1e7f=>{if('formatBlock'!=_0x1b1e7f['type'])return;const {data:_0x4fd497}=_0x1b1e7f;if(_0x4fd497){if('setTableRowHeader'==_0x4fd497['commandName']){const _0x7032ef=_0x4fd497['commandParams'][0x0]['forceValue'];return _0x4f8a67(o(_0x290224,_0x7032ef?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4fd497['commandName']){const _0x2bf45d=_0x4fd497['commandParams'][0x0]['forceValue'];return _0x4f8a67(o(_0x290224,_0x2bf45d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xc3381c{['afterInit'](){const _0x564b7b=this['editor'],_0x31ba6f=_0x564b7b['locale'],_0x3a2626=_0x564b7b['plugins']['get']('TrackChangesEditing');function _0xe4e438(_0x549892){return{'type':'format','content':''+o(_0x31ba6f,'*Set\x20table\x20type:*\x20%0',_0x549892)};}_0x564b7b['plugins']['has']('TableLayout')&&(_0x3a2626['enableCommand']('insertTableLayout'),_0x3a2626['enableDefaultAttributesIntegration']('tableType'),_0x3a2626['registerBlockAttribute']('tableType'),_0x3a2626['descriptionFactory']['registerElementLabel'](_0x5bc830=>_0x5bc830['is']('element','table')&&'layout'===_0x5bc830['getAttribute']('tableType'),_0x125c0d=>o(_0x31ba6f,'ELEMENT_LAYOUT_TABLE',_0x125c0d)),_0x3a2626['descriptionFactory']['registerDescriptionCallback'](_0x1b65e7=>{const {data:_0x4bf7e5}=_0x1b65e7;if(_0x4bf7e5&&'tableType'==_0x4bf7e5['key'])switch(_0x4bf7e5['newValue']){case'layout':return _0xe4e438(o(_0x31ba6f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xe4e438(o(_0x31ba6f,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x2b47ef=>[_0x2b47ef,null]));class Nt extends _0xc3381c{static get['requires'](){return[At];}['afterInit'](){const _0x180a97=this['editor'];if(!_0x180a97['plugins']['has']('TableClipboard'))return;const _0x5567a9=_0x180a97['plugins']['get']('TrackChangesEditing'),_0x1b8c5d=_0x180a97['plugins']['get']('TableUtils'),_0x4f33ed=_0x180a97['plugins']['get'](At),_0x818d90=_0x180a97['plugins']['get']('TableClipboard'),_0x1339d0=_0x180a97['plugins']['get']('TableSelection'),_0x3db9d8=_0x180a97['plugins']['get'](_0x14b56f);_0x4f33ed['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x180a97['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x180a97['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1919c9=null,_0x4f104b=!0x1;_0x3db9d8['on']('contentInsertion',(_0x2b06f0,_0xdb32f4)=>{_0x4f104b='paste'===_0xdb32f4['method'];}),_0x180a97['model']['on']('insertContent',(_0x470abd,_0x5587b2)=>{if(!_0x4f104b&&null===_0x1339d0['getSelectedTableCells']())return;const [_0x3162d6,_0x1b33b5]=_0x5587b2,_0x466be0=_0x5587b2[_0x5587b2['length']-0x1];_0x466be0&&_0x466be0['forceDefaultExecution']||_0x5567a9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3dff62,_0x22cf3f,_0x4634fa,_0x1b8dad,_0x3f4092){if(_0x22cf3f&&!_0x22cf3f['is']('documentSelection'))return!0x1;const _0x3f444e=_0x3f4092['getTableIfOnlyTableInContent'](_0x3dff62,_0x4634fa);if(!_0x3f444e||!Ue(_0x3f444e,void 0x0,_0x1b8dad))return!0x1;const _0x9681cc=_0x1b8dad['getSelectionAffectedTableCells'](_0x4634fa['document']['selection']);if(!_0x9681cc['length'])return!0x1;const _0x38aa3b=_0x9681cc[0x0]['findAncestor']('table'),_0x19c32b=_0x1b8dad['getRowIndexes'](_0x9681cc),_0x2f3ae3=_0x1b8dad['getColumnIndexes'](_0x9681cc),_0x5f28c9={'startRow':_0x19c32b['first'],'endRow':_0x19c32b['last'],'startColumn':_0x2f3ae3['first'],'endColumn':_0x2f3ae3['last']};return 0x1==_0x9681cc['length']&&(_0x5f28c9['endRow']+=_0x1b8dad['getRows'](_0x3f444e)-0x1,_0x5f28c9['endColumn']+=_0x1b8dad['getColumns'](_0x3f444e)-0x1),Ue(_0x38aa3b,_0x5f28c9,_0x1b8dad);}(_0x3162d6,_0x1b33b5,_0x180a97['model'],_0x1b8c5d,_0x818d90)&&(_0x470abd['stop'](),_0x1919c9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x180a97['model']['change'](()=>{_0x180a97['model']['insertContent'](_0x5587b2[0x0],_0x5587b2[0x1],_0x5587b2[0x2],{'forceDefaultExecution':!0x0});const _0x872b91=_0x40bebf(),{rowInsertionRanges:_0x7abb62,columnInsertionRanges:_0x2c0f20,insertionRanges:_0x53f71d,deletionRanges:_0x338ef4,cells:_0x5c8d57}=_0x1919c9;_0x7abb62['length']&&_0x5567a9['markMultiRangeInsertion'](_0x7abb62,'tablePasteRow',{'tablePasteChainId':_0x872b91}),_0x2c0f20['length']&&_0x5567a9['markMultiRangeInsertion'](_0x2c0f20,'tablePasteColumn',{'tablePasteChainId':_0x872b91}),_0x53f71d['length']&&(_0x5567a9['markMultiRangeInsertion'](_0x53f71d,'tablePaste',{'tablePasteChainId':_0x872b91,'skipNestingCheck':!0x0}),_0x53f71d['forEach'](_0x242ca3=>_0x242ca3['detach']?.())),_0x338ef4['length']&&(_0x5567a9['markMultiRangeDeletion'](_0x338ef4,'tablePaste',{'tablePasteChainId':_0x872b91,'skipNestingCheck':!0x0}),_0x338ef4['forEach'](_0x394b82=>_0x394b82['detach']?.()));const _0x4879ac=_0x5567a9['markMultiRangeBlockFormat'](_0x5c8d57['map'](({element:_0x327c96})=>_0x327c96),{'formatGroupId':_0x40bebf()},[],'tablePasteCell',{'tablePasteChainId':_0x872b91});if(_0x4879ac){const _0x44bb3b=_0x4879ac['getMarkers'](),_0x2bc01c=[];for(const {element:_0x3fd4ca,attributes:_0xf64b95}of _0x5c8d57){if(!_0xf64b95)continue;const _0x2395f0=_0x180a97['model']['createRangeOn'](_0x3fd4ca),_0x38cece=_0x44bb3b['find'](_0x4df964=>_0x4df964['getRange']()['isEqual'](_0x2395f0));_0x38cece&&_0x2bc01c['push']([_0x38cece['name'],_0xf64b95]);}_0x2bc01c['length']&&_0x4879ac['setAttribute']('markerAttributes',Object['fromEntries'](_0x2bc01c));}_0x1919c9=null;}));},{'priority':_0x140f0d['high']+0xa}),_0x3db9d8['on']('contentInsertion',()=>{_0x4f104b=!0x1;},{'priority':'lowest'}),_0x180a97['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1efad9,_0xad6438)=>{const [_0x441366,_0x5eccea,,_0x1ed5e6]=_0xad6438;if(!_0x1919c9)return;_0x1efad9['stop']();const _0x5c1e16=_0x441366['cell'],_0x1d5402=_0x5eccea,_0x1150fa=Oe(_0x5c1e16),_0x2aeb5c=Oe(_0x1d5402);_0x1efad9['return']=_0x5c1e16;let _0x25be54=null,_0x52100a=null;if(_0x2aeb5c||_0x1150fa){if(_0x1150fa&&!_0x2aeb5c){_0x1ed5e6['remove'](_0x5c1e16['getChild'](0x0));for(const _0x45a7ea of Array['from'](_0x1d5402['getChildren']()))_0x1ed5e6['insert'](_0x45a7ea,_0x5c1e16,'end');const _0x2882b3=_0x1919c9['rowInsertionIndexes']['includes'](_0x441366['row']),_0x244d2d=_0x1919c9['columnInsertionIndexes']['includes'](_0x441366['column']);_0x2882b3||_0x244d2d||(_0x25be54=_0x51ea19['fromRange'](_0x1ed5e6['createRangeIn'](_0x5c1e16)));}else _0x2aeb5c&&!_0x1150fa&&(_0x52100a=_0x1ed5e6['createRangeIn'](_0x5c1e16));}else{const _0x23e429=_0x1ed5e6['createElement']('tableCellSuggestion'),_0x163c1a=_0x1ed5e6['createElement']('tableCellSuggestion');_0x1ed5e6['wrap'](_0x1ed5e6['createRangeIn'](_0x5c1e16),_0x163c1a),_0x1ed5e6['insert'](_0x23e429,_0x5c1e16,0x0);for(const _0x3686fe of Array['from'](_0x1d5402['getChildren']()))_0x1ed5e6['insert'](_0x3686fe,_0x23e429,'end');_0x25be54=_0x51ea19['fromRange'](_0x1ed5e6['createRangeOn'](_0x23e429)),_0x52100a=_0x51ea19['fromRange'](_0x1ed5e6['createRangeOn'](_0x163c1a));}const _0x40a7c9=Array['from'](_0x1d5402['getAttributes']())['filter'](([_0x3ccd2b])=>Be['includes'](_0x3ccd2b));_0x1919c9['cells']['push']({'element':_0x5c1e16,'attributes':_0x40a7c9['length']?Object['fromEntries'](_0x40a7c9):null}),_0x25be54&&_0x1919c9['insertionRanges']['push'](_0x25be54),_0x52100a&&_0x1919c9['deletionRanges']['push'](_0x52100a);},{'priority':'high'}),_0x1b8c5d['on']('insertColumns',(_0x4f37f5,_0x543c61)=>{const [_0x144069,_0x51abef={}]=_0x543c61;if(!_0x1919c9)return;const _0x1eb7d7=_0x51abef['at']||0x0,_0x421d42=_0x51abef['columns']||0x1;_0x1919c9['columnInsertionIndexes']=new Array(_0x421d42)['fill'](_0x1eb7d7)['map']((_0x334ca9,_0x90c795)=>_0x334ca9+_0x90c795);for(const {cell:_0x3b5611}of _0x1b8c5d['createTableWalker'](_0x144069,{'startColumn':_0x1eb7d7,'endColumn':_0x1eb7d7+_0x421d42-0x1}))_0x1919c9['columnInsertionRanges']['push'](_0x180a97['model']['createRangeOn'](_0x3b5611));},{'priority':'low'}),_0x1b8c5d['on']('insertRows',(_0x34d932,_0x7c1083)=>{const [_0x2161a8,_0x2a1e48={}]=_0x7c1083;if(!_0x1919c9)return;const _0x56014d=_0x2a1e48['at']||0x0,_0x23adf6=_0x2a1e48['rows']||0x1;_0x1919c9['rowInsertionIndexes']=new Array(_0x23adf6)['fill'](_0x56014d)['map']((_0x29de03,_0x2db753)=>_0x29de03+_0x2db753);for(const {cell:_0x398042}of _0x1b8c5d['createTableWalker'](_0x2161a8,{'startRow':_0x56014d,'endRow':_0x56014d+_0x23adf6-0x1}))_0x1919c9['rowInsertionRanges']['push'](_0x180a97['model']['createRangeOn'](_0x398042));},{'priority':'low'}),_0x5567a9['descriptionFactory']['registerDescriptionCallback'](_0x393fb7=>{if(_0x393fb7['subType']&&_0x393fb7['subType']['startsWith']('tablePaste'))return _0x393fb7['previous']?{}:{'type':'insertion','content':o(_0x180a97['locale'],'*Replace\x20table\x20cells*')};});const _0x3870ec=()=>!0x1;for(const _0x332e01 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5567a9['_suggestionFactory']['registerCustomCallback']('insertion',_0x332e01,'join',_0x3870ec),_0x5567a9['_suggestionFactory']['registerCustomCallback']('deletion',_0x332e01,'join',_0x3870ec),_0x5567a9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x332e01,'join',_0x3870ec);_0x5567a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3870ec),_0x5567a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4a6b93,_0x78e498,_0x79968b)=>{const _0x1823d1=_0x4a6b93['map'](_0x2a07f4=>_0x2a07f4['getContainedElement']())['filter'](_0x3375e5=>_0x3375e5),_0x187e5e=new Map(_0x1823d1['map'](_0x3f61e3=>[_0x3f61e3,null]));if(_0x1919c9){for(const {element:_0x46cfc5,attributes:_0x47d669}of _0x1919c9['cells'])_0x47d669&&_0x187e5e['set'](_0x46cfc5,_0x47d669);}else{if(_0x79968b&&_0x79968b['markerAttributes'])for(const [_0x4461c1,_0x1d4695]of Object['entries'](_0x79968b['markerAttributes'])){const _0x2651db=_0x180a97['model']['markers']['get'](_0x4461c1),_0x2a1594=_0x2651db?_0x2651db['getRange']()['getContainedElement']():null;_0x2a1594&&_0x187e5e['set'](_0x2a1594,_0x1d4695);}}_0x180a97['model']['change'](_0x4fa2c6=>{for(const [_0x40e9f2,_0x7550c1]of _0x187e5e)_0x4fa2c6['setAttributes']({...xe,..._0x7550c1},_0x40e9f2);});});const _0x145c7f=(_0x216dba,_0x5e7392)=>{_0x5567a9['_suggestionFactory']['registerCustomCallback'](_0x216dba,'tablePaste',_0x5e7392,(_0x42169e,_0x45fab7,_0x283ded)=>{_0x180a97['model']['change'](_0x3a809f=>{const _0x5c283f=[];for(const _0x5530c2 of _0x42169e){const _0xf58a0b=_0x5530c2['start']['nodeAfter'];_0xf58a0b['is']('element','tableCellSuggestion')&&_0x5c283f['push'](_0xf58a0b);}_0x5567a9['_suggestionFactory']['getSuggestionCallback'](_0x216dba,null,_0x5e7392)(_0x42169e,_0x45fab7,_0x283ded);for(const _0xed31b5 of _0x5c283f)'$graveyard'!=_0xed31b5['root']['rootName']&&_0x3a809f['unwrap'](_0xed31b5);});});};_0x145c7f('insertion','accept'),_0x145c7f('insertion','discard'),_0x145c7f('deletion','accept'),_0x145c7f('deletion','discard'),_0x5567a9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x253648=>{const _0x151a0c=_0x253648['map'](_0x525141=>_0x525141['getContainedElement']()),_0x59f422=_0x151a0c[0x0]['findAncestor']('table'),{minRow:_0x29b81b,maxRow:_0x1be567}=_0x4f33ed['_getCoordsForCells'](_0x151a0c);_0x1b8c5d['removeRows'](_0x59f422,{'at':_0x29b81b,'rows':_0x1be567-_0x29b81b+0x1});}),_0x5567a9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x56c160=>{const _0x58677d=_0x56c160['map'](_0x37916f=>_0x37916f['getContainedElement']()),_0x2738c6=_0x58677d[0x0]['findAncestor']('table'),{minColumn:_0x286063,maxColumn:_0x4e32b9}=_0x4f33ed['_getCoordsForCells'](_0x58677d);_0x1b8c5d['removeColumns'](_0x2738c6,{'at':_0x286063,'columns':_0x4e32b9-_0x286063+0x1});});const _0x4908d6=(_0x497e63,_0x5abaca)=>{if(!_0x5abaca['subType']||!_0x5abaca['subType']['startsWith']('tablePaste'))return;const _0x3f329c=_0x5abaca['attributes']['tablePasteChainId'],_0x595917=_0x5567a9['getSuggestions']()['filter'](_0x28d3ad=>_0x28d3ad['isInContent']&&_0x28d3ad['attributes']&&_0x28d3ad['attributes']['tablePasteChainId']==_0x3f329c);_0x595917['length']&&_0x5abaca['getAllAdjacentSuggestions']()['length']!=_0x595917['length']&&_0x595917['reduce']((_0x4cc6c0,_0x26d115)=>(_0x4cc6c0['next']=_0x26d115,_0x26d115['previous']=_0x4cc6c0,_0x26d115));};function _0x2f2633(_0x34fa54,_0x2a9169=!0x0){const {id:_0x159e8d,authorId:_0x1e7ee9}=_0x5567a9['_splitMarkerName'](_0x34fa54['markerName']),_0x125bb5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2f87fc=_0x5567a9['activeMarkers']['includes'](_0x34fa54['markerName']);return _0x2f87fc&&_0x125bb5['push']('ck-suggestion-marker--active'),{'classes':_0x125bb5,'attributes':{'data-suggestion':_0x159e8d,'data-author-id':_0x1e7ee9},'priority':_0x2f87fc&&_0x2a9169?0xbc2:0xbb8};}_0x5567a9['on']('suggestionLoaded',_0x4908d6,{'priority':'high'}),_0x5567a9['on']('suggestionUnloaded',_0x4908d6,{'priority':'high'}),_0x180a97['model']['document']['registerPostFixer'](()=>{let _0x28985f=!0x1;const _0x77da91=Array['from'](_0x180a97['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c2e33,data:_0x40a9f6}of _0x77da91){const {group:_0x1143f6,type:_0x1621da,id:_0x14dd5c}=_0x5567a9['_splitMarkerName'](_0x5c2e33);if('suggestion'!=_0x1143f6||'deletion'!=_0x1621da||_0x40a9f6['oldRange'])continue;if(!_0x5567a9['hasSuggestion'](_0x14dd5c))continue;const _0x3d674a=_0x5567a9['getSuggestion'](_0x14dd5c)['getRanges'](),_0x39650e=_0x180a97['plugins']['get']('Users')['me'];for(const _0x57632c of _0x5567a9['getSuggestions']()){if(!_0x57632c['isInContent']||_0x57632c['author']!=_0x39650e)continue;if('formatBlock'!=_0x57632c['type']||'tablePasteCell'!=_0x57632c['subType'])continue;if(_0x57632c['getRanges']()['every'](_0x37ba7d=>_0x3d674a['some'](_0xdf3ced=>_0xdf3ced['containsRange'](_0x37ba7d,!0x0)))){for(const _0x2e32c5 of _0x57632c['getAllAdjacentSuggestions']())_0x2e32c5['isInContent']&&(_0x2e32c5['discard'](),_0x28985f=!0x0);}}}return _0x28985f;}),_0x180a97['model']['document']['registerPostFixer'](_0x3dcbc2=>{const _0x2ca164=_0x180a97['commands']['get']('redo');if(!_0x2ca164||!_0x2ca164['_createdBatches']['has'](_0x3dcbc2['batch']))return!0x1;let _0x20419a=!0x1;const _0xf14df7=_0x180a97['plugins']['get']('Users')['me'],_0x4a8fc9=_0x180a97['model']['document']['differ']['getChanges'](),_0x20e63d=Array['from'](_0x180a97['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x17e203,data:_0xa69c8b})=>{const {group:_0x9146a0,subType:_0x5f14cb,authorId:_0xd2e3dd}=_0x5567a9['_splitMarkerName'](_0x17e203);return'suggestion'==_0x9146a0&&'tablePaste'==_0x5f14cb&&_0xd2e3dd==_0xf14df7['id']&&!_0xa69c8b['oldRange'];});for(const _0x9932e9 of _0x4a8fc9){if('insert'!=_0x9932e9['type']||'tableCellSuggestion'!=_0x9932e9['name']||0x1!=_0x9932e9['length'])continue;const _0x7a3a49=_0x3dcbc2['createRange'](_0x9932e9['position'],_0x9932e9['position']['getShiftedBy'](0x1));if(!_0x20e63d['find'](({data:_0x21f870})=>_0x21f870['newRange']['isEqual'](_0x7a3a49))){for(const {name:_0x38f45a,data:_0x32edc9}of _0x20e63d)if(_0x7a3a49['containsRange'](_0x32edc9['newRange'])){_0x3dcbc2['updateMarker'](_0x38f45a,{'range':_0x7a3a49}),_0x20419a=!0x0;break;}}}return _0x20419a;}),_0x180a97['model']['document']['registerPostFixer'](_0x5008fe=>{let _0x277491=!0x1;const _0x2511c8=_0x180a97['plugins']['get']('Users')['me'],_0x5aaf8c=_0x5567a9['getSuggestions']()['filter'](_0x4c492a=>_0x4c492a['isInContent']&&_0x4c492a['author']==_0x2511c8),_0x3d29ce=new Set(),_0x2c6e9e=new Set();for(const _0x3d93e1 of _0x5aaf8c)if('tablePaste'==_0x3d93e1['subType'])for(const _0xa547f5 of _0x3d93e1['getMarkers']()){const _0x30278a=_0xa547f5['getRange']()['getContainedElement']();if(_0x30278a){if(_0x30278a['is']('element','tableCellSuggestion')&&Oe(_0x30278a)){_0x3d93e1['removeMarker'](_0xa547f5['name']),_0x3d29ce['add'](_0x30278a),_0x277491=!0x0;const _0x542149=_0x30278a['nextSibling'],_0x1b3c43=_0x30278a['previousSibling'],_0x528477=_0x542149&&_0x542149['is']('element','tableCellSuggestion'),_0x8fc6eb=_0x1b3c43&&_0x1b3c43['is']('element','tableCellSuggestion');_0x528477&&!_0x3d29ce['has'](_0x542149)&&_0x2c6e9e['add'](_0x542149),_0x8fc6eb&&!_0x3d29ce['has'](_0x1b3c43)&&_0x2c6e9e['add'](_0x1b3c43);}else _0x30278a['is']('element','paragraph')&&_0x30278a['isEmpty']&&(_0x3d93e1['removeMarker'](_0xa547f5['name']),_0x277491=!0x0);}}else{if('tablePasteCell'==_0x3d93e1['subType']){if(!_0x3d93e1['attributes']||!_0x3d93e1['attributes']['tablePasteChainId'])continue;const _0x219fa2=_0x3d93e1['attributes']['markerAttributes'];if(_0x219fa2&&Object['keys'](_0x219fa2)['length'])continue;const _0x1e9df0=_0x3d93e1['attributes']['tablePasteChainId'];let _0x4a4dfc=!0x0,_0x300500=!0x0;for(const _0x4fd4bb of _0x5aaf8c)if(_0x4fd4bb['subType']&&_0x4fd4bb['subType']['startsWith']('tablePaste')){if(!_0x4fd4bb['attributes']['tablePasteChainId']){_0x300500=!0x1;break;}if(_0x4fd4bb['id']!=_0x3d93e1['id']&&_0x4fd4bb['attributes']['tablePasteChainId']==_0x1e9df0){_0x4a4dfc=!0x1;break;}}_0x300500&&_0x4a4dfc&&(_0x3d93e1['removeMarkers'](),_0x277491=!0x0);}}for(const _0xa6f865 of _0x3d29ce)_0x5008fe['remove'](_0xa6f865);for(const _0x55d634 of _0x2c6e9e)_0x5008fe['unwrap'](_0x55d634);return _0x277491;}),_0x180a97['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5392d2=>_0x2f2633(_0x5392d2),'converterPriority':'high'}),_0x180a97['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x272562,_0x4d2029)=>_0x4d2029['options']['showSuggestionHighlights']?_0x2f2633(_0x272562,!0x1):null,'converterPriority':'high'});const _0x2475ac=_0x180a97['editing']['view'];this['listenTo'](_0x2475ac['document'],'clipboardOutput',(_0x21d811,_0x18dda7)=>{const _0x22587c=[];for(const _0x3ea580 of _0x2475ac['createRangeIn'](_0x18dda7['content'])['getItems']())_0x3ea580['is']('element','suggestion-td')&&_0x22587c['push'](_0x3ea580);_0x2475ac['change'](_0x2a024c=>{for(const _0x1ee1f6 of _0x22587c)_0x2a024c['move'](_0x2a024c['createRangeIn'](_0x1ee1f6),_0x2a024c['createPositionBefore'](_0x1ee1f6)),_0x2a024c['remove'](_0x1ee1f6);});});}}function Oe(_0x3856e2){if(_0x3856e2['isEmpty'])return!0x0;const _0x1dc1b3=_0x3856e2['getChild'](0x0);return _0x1dc1b3['is']('element','paragraph')&&_0x1dc1b3['isEmpty'];}function Ue(_0x448015,_0x340a2d={},_0x4738c4){for(const {isAnchor:_0x2da13b,cellHeight:_0x2bb44a,cellWidth:_0x4a67d3}of _0x4738c4['createTableWalker'](_0x448015,{'includeAllSlots':!0x0,..._0x340a2d}))if(!_0x2da13b||0x1!=_0x2bb44a||0x1!=_0x4a67d3)return!0x1;return!0x0;}class Dt extends _0xc3381c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x28b502=this['editor']['plugins']['get']('TrackChangesEditing');_0x28b502['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x28b502['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x28b502['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28b502['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x28b502['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x28b502['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1f6f07,_0x459d91){const _0x5ed719=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cddcc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x39dad8=_0x459d91['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x12d3f4=_0x1cddcc['getColumnGroupElement'](_0x39dad8);let _0x38623e=_0x12d3f4?_0x1cddcc['getTableColumnsWidths'](_0x12d3f4):null,_0x14c4b3=_0x39dad8['getAttribute']('tableWidth')||null;const _0x4ac70c=_0x459d91['tableWidth']||_0x14c4b3,_0x442fce=_0x459d91['columnWidths']||_0x38623e,_0x150371=this['editor']['plugins']['get']('Users')['me'];for(const _0x465159 of _0x5ed719['getSuggestions']()){const _0x293914=_0x465159['getContainedElement']();if('resizeTable'===_0x465159['subType']&&_0x293914===_0x39dad8){_0x465159['author']!==_0x150371&&_0x465159['discard']();const _0x458c72=_0x465159['data']['commandParams'];_0x14c4b3=_0x458c72[0x0]['tableWidth'],_0x38623e=_0x458c72[0x0]['columnWidths'];break;}}_0x1f6f07({'table':_0x39dad8,'tableWidth':_0x4ac70c,'columnWidths':_0x442fce}),_0x5ed719['markBlockFormat'](_0x39dad8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x14c4b3,'columnWidths':_0x38623e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x51f4d2){if('formatBlock'!=_0x51f4d2['type']&&'formatInline'!=_0x51f4d2['type'])return;const {data:_0x45b84f}=_0x51f4d2;if(_0x45b84f&&'resizeTable'===_0x45b84f['formatGroupId']){const _0x52d653='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x52d653)};}}}class $t extends _0xc3381c{['afterInit'](){const _0x504391=this['editor'];_0x504391['plugins']['has']('Template')&&_0x504391['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xc3381c{['afterInit'](){const _0x12ac99=this['editor'];if(!_0x12ac99['commands']['get']('insertTableOfContents'))return;_0x12ac99['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1bb578=_0x12ac99['plugins']['get']('TrackChangesEditing'),_0x5ae154=_0x12ac99['locale'];_0x1bb578['descriptionFactory']['registerElementLabel']('tableOfContents',_0x98dc41=>o(_0x5ae154,'ELEMENT_TABLE_OF_CONTENTS',_0x98dc41));}}class Bt extends _0xc3381c{['afterInit'](){const _0x5c40f5=this['editor'];if(!_0x5c40f5['plugins']['has']('Title'))return;const _0x46d505=_0x5c40f5['plugins']['get']('TrackChangesEditing');_0x46d505['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5c40f5['locale'],'ELEMENT_TITLE')),_0x5c40f5['model']['document']['registerPostFixer'](_0x4b12aa=>{let _0x22d7a3=!0x1;const _0x331d1e=Array['from'](_0x5c40f5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x148135,data:_0x8b1d6b}of _0x331d1e){const {group:_0x273365}=_0x46d505['_splitMarkerName'](_0x148135);if('suggestion'!==_0x273365||!_0x8b1d6b['newRange'])continue;const _0x26d400=_0x8b1d6b['newRange'],_0x1db10d=_0x26d400['end']['nodeBefore'];if(!_0x1db10d||!_0x1db10d['is']('element','title-content'))continue;if(!_0x26d400['start']['isTouching'](_0x26d400['end']))continue;const _0x4c7144=_0x5c40f5['model']['schema']['getNearestSelectionRange'](_0x26d400['end'],'forward');if(_0x4c7144&&_0x4c7144['isCollapsed']){const _0xae8150=_0x4b12aa['createRange'](_0x26d400['start'],_0x4c7144['start']);_0xae8150['isEqual'](_0x26d400)||(_0x4b12aa['updateMarker'](_0x148135,{'range':_0xae8150}),_0x22d7a3=!0x0);}_0x22d7a3||(_0x4b12aa['removeMarker'](_0x148135),_0x22d7a3=!0x0);}return _0x22d7a3;});}}class Tt extends _0xc3381c{['afterInit'](){const _0x533f34=this['editor'],_0x2b321c=_0x533f34['plugins']['get']('TrackChangesEditing');_0x533f34['plugins']['has']('Uploadcare')&&(_0x2b321c['enableCommand']('uploadcare'),_0x533f34['plugins']['has']('UploadcareImageEdit')&&(_0x2b321c['enableCommand']('uploadcareImageEdit'),_0x2b321c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2b321c['registerBlockAttribute']('uploadcareImageId'),_0x2b321c['descriptionFactory']['registerDescriptionCallback'](_0x53ad46=>{if('attribute'!=_0x53ad46['type'])return;const {data:_0x51a1f2}=_0x53ad46;return _0x51a1f2&&'uploadcareImageId'==_0x51a1f2['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xc3381c{['afterInit'](){const _0x119291=this['editor'],_0x405f4b=_0x119291['plugins']['get']('TrackChangesEditing');_0x119291['plugins']['has']('UndoEditing')&&(_0x405f4b['enableCommand']('undo'),_0x405f4b['enableCommand']('redo'));}}class Ot extends _0xc3381c{static get['requires'](){return[At];}['afterInit'](){const _0x2a86f5=this['editor'];if(!_0x2a86f5['plugins']['has']('TableCaptionEditing'))return;_0x2a86f5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xc3381c{['tableProperties'];['tableCellProperties'];constructor(_0x209d0a){super(_0x209d0a),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 _0x362f03=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x59bf46 of this['tableProperties'])_0x362f03['enableCommand'](_0x59bf46,(_0x3c683d,_0x5dadfa)=>{const _0x552116=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x59bf46,[_0x552116],this['tableProperties'],'tableProperties',_0x3c683d,_0x5dadfa);});_0x362f03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x362f03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x362f03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4f0485,_0x48fe4a)=>this['handleDiscardAction'](this['tableProperties'],_0x4f0485,_0x48fe4a)),_0x362f03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xeabaac of this['tableCellProperties'])_0x362f03['enableCommand'](_0xeabaac,(_0x47b1ba,_0xaf36b2)=>{const _0xa7f353=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xeabaac,_0xa7f353,this['tableCellProperties'],'tableCellProperties',_0x47b1ba,_0xaf36b2);});_0x362f03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x362f03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x362f03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x291aa3,_0x2c6858)=>this['handleDiscardAction'](this['tableCellProperties'],_0x291aa3,_0x2c6858)),_0x362f03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x362f03['descriptionFactory']['registerDescriptionCallback'](_0x16b7bd=>this['handleSuggestionDescription'](_0x16b7bd)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2ba333,_0x76c57d,_0x294b46,_0x1f74ae,_0x49dbbc,_0x1d8d96){const _0x1fd802=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1d8d96['batch'],()=>{for(const _0x4fa8a3 of _0x76c57d){if(this['_getSuggestion'](_0x4fa8a3,_0x1f74ae))_0x49dbbc(_0x1d8d96);else{const _0xa5851a={};for(const _0x1c5c25 of _0x294b46){const _0x592793=_0x4fa8a3['getAttribute'](_0x1c5c25);void 0x0!==_0x592793&&(_0xa5851a[_0x1c5c25]=_0x592793);}_0x49dbbc(_0x1d8d96),_0x1fd802['markBlockFormat'](_0x4fa8a3,{'commandParams':[_0xa5851a]},[],_0x1f74ae);}}});}['handleDiscardAction'](_0x2eeb60,_0x4c561f,_0x533ef4){const _0x45bcbd=_0x4c561f[0x0]['start']['nodeAfter'],_0x11ada3=_0x533ef4['commandParams'][0x0];this['editor']['model']['change'](_0x4d6723=>{for(const _0x317a85 of _0x2eeb60)void 0x0!==_0x11ada3[_0x317a85]?_0x4d6723['setAttribute'](_0x317a85,_0x11ada3[_0x317a85],_0x45bcbd):_0x4d6723['removeAttribute'](_0x317a85,_0x45bcbd);});}['handleSuggestionDescription'](_0x34b076){if(_0x34b076['data'])switch(_0x34b076['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'](_0x4c5378,_0x49f4f4){const _0xde9085=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x380d65 of _0xde9085['getSuggestions']({'skipNotAttached':!0x0})){const _0x3f3101=_0x380d65['getContainedElement']();if(_0x380d65['subType']===_0x49f4f4&&_0x3f3101===_0x4c5378)return _0x380d65;}return null;}['_registerTablePropertiesAttributes'](){const _0x2deb21=this['editor']['plugins']['get']('TrackChangesEditing'),_0x381424=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1eb2e5 of _0x381424){const _0x3a48b8=_0x1eb2e5['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2deb21['registerBlockAttribute'](_0x1eb2e5),_0x2deb21['descriptionFactory']['registerAttributeLabel'](_0x1eb2e5,o(this['editor']['locale'],'FORMAT_'+_0x3a48b8));}}}class Rt extends _0xc3381c{['afterInit'](){const _0x2bb2fe=this['editor'];if(!_0x2bb2fe['plugins']['has']('LineHeight'))return;const _0xa2f7cf=_0x2bb2fe['plugins']['get']('TrackChangesEditing'),_0x3b6e27=_0x2bb2fe['locale'];_0xa2f7cf['enableDefaultAttributesIntegration']('lineHeight'),_0xa2f7cf['registerBlockAttribute']('lineHeight'),_0xa2f7cf['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3b6e27,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xc3381c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x187485,_0x43929c,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x517e72){super(_0x517e72),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5b59f4,_0x5305e2,_0x281cd4,_0x3995e9)=>{this['_model']['change'](()=>{for(const _0x212000 of[..._0x3995e9,..._0x281cd4])this['_model']['markers']['has'](_0x212000)&&_0x517e72['editing']['reconvertMarker'](_0x212000);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x517e72['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(),_0x517e72['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x517e72['config']['get']('trackChanges.trackFormatChanges'),_0x517e72['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x517e72['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x517e72,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x64ba5b=this['editor'],_0x402acc=(_0x41d55e,_0xb54ea6)=>{if('attribute'!=_0x41d55e)return'ck-suggestion-marker-'+_0x41d55e;const _0x43e6c5=_0xb54ea6['split']('|')[0x0];return this['_isBlockAttribute'](_0x43e6c5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x64ba5b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x50b6b6=>{const {id:_0x5a4077,authorId:_0x57b347,type:_0x113d17,subType:_0x482a7d}=this['_splitMarkerName'](_0x50b6b6['markerName']),_0x25adce=['ck-suggestion-marker',_0x402acc(_0x113d17,_0x482a7d)];let _0x3d9fdf=0xbb8;return this['activeMarkers']['includes'](_0x50b6b6['markerName'])&&(_0x25adce['push']('ck-suggestion-marker--active'),_0x3d9fdf=0xbc2),'deletion'==_0x113d17&&(_0x3d9fdf+=0x5),{'classes':_0x25adce,'attributes':{'data-suggestion':_0x5a4077,'data-author-id':_0x57b347},'priority':_0x3d9fdf};}}),_0x64ba5b['conversion']['for']('dataDowncast')['add'](_0x49e774=>{_0x49e774['on']('addMarker:suggestion',(_0x2be14a,_0x5da85c,_0x441e91)=>{if(!_0x441e91['options']['showSuggestionHighlights'])return;const _0xd1e29a=_0x5da85c['item'];if(!_0xd1e29a)return;const _0x1f101c=_0x441e91['mapper']['toViewElement'](_0xd1e29a);_0x64ba5b['model']['schema']['isObject'](_0xd1e29a)&&_0x1f101c&&!_0x1f101c['getCustomProperty']('widget')&&_0x1f101c['is']('containerElement')&&_0x52436a(_0x1f101c,_0x441e91['writer']);},{'priority':'high'});}),_0x64ba5b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3d91bf,_0x3c98a7)=>{if(!_0x3c98a7['options']['showSuggestionHighlights'])return null;const {id:_0x22cad9,authorId:_0x2d00ff,type:_0x5b5dfe,subType:_0x36e40c}=this['_splitMarkerName'](_0x3d91bf['markerName']);return{'classes':['ck-suggestion-marker',_0x402acc(_0x5b5dfe,_0x36e40c)],'priority':0xbb8,'attributes':{'data-suggestion':_0x22cad9,'data-author-id':_0x2d00ff}};}});const _0x433bbe=({showActiveMarkers:_0x4e96f2=!0x0,isAttributeSuggestion:_0x919a9a=!0x1}={})=>(_0x2b4057,_0x554a09,_0x19ba6b)=>{if(!_0x554a09['item'])return;const {id:_0x5995c2,authorId:_0x3e6f55}=this['_splitMarkerName'](_0x554a09['markerName']);if(_0x919a9a){const _0xf9a947=this['_suggestions']['get'](_0x5995c2),_0x36a1e3=this['_getAttributeKey'](_0xf9a947);if(!this['_isBlockAttribute'](_0x36a1e3))return;}if(_0x554a09['item']['is']('selection'))return void _0x19ba6b['consumable']['consume'](_0x554a09['item'],_0x2b4057['name']);const _0x2ad2aa=_0x19ba6b['mapper']['toViewElement'](_0x554a09['item']);if(_0x554a09['item']['is']('element')&&_0x64ba5b['model']['schema']['isBlock'](_0x554a09['item'])&&!_0x2ad2aa['getCustomProperty']('addHighlight')){_0x19ba6b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2ad2aa),_0x19ba6b['writer']['setAttribute']('data-suggestion',_0x5995c2,_0x2ad2aa),_0x19ba6b['writer']['setAttribute']('data-author-id',_0x3e6f55,_0x2ad2aa),_0x19ba6b['mapper']['bindElementToMarker'](_0x2ad2aa,_0x554a09['markerName']),_0x4e96f2&&(this['activeMarkers']['includes'](_0x554a09['markerName'])?_0x19ba6b['writer']['addClass']('ck-suggestion-marker--active',_0x2ad2aa):_0x19ba6b['writer']['removeClass']('ck-suggestion-marker--active',_0x2ad2aa));for(const _0x244d0f of _0x64ba5b['model']['createRangeIn'](_0x554a09['item'])['getItems']())_0x19ba6b['consumable']['consume'](_0x244d0f,_0x2b4057['name']);_0x19ba6b['consumable']['consume'](_0x554a09['item'],_0x2b4057['name']);}};_0x64ba5b['conversion']['for']('dataDowncast')['add'](_0x17ee7d=>{_0x17ee7d['on']('addMarker:suggestion:formatBlock',(_0x144af8,_0x167e47,_0x239d71)=>{_0x239d71['options']['showSuggestionHighlights']&&_0x433bbe({'showActiveMarkers':!0x1})(_0x144af8,_0x167e47,_0x239d71);},{'priority':'highest'});}),_0x64ba5b['conversion']['for']('dataDowncast')['add'](_0xce67e9=>{_0xce67e9['on']('addMarker:suggestion:attribute',(_0x26d6a0,_0x1d0e9c,_0x1931b0)=>{_0x1931b0['options']['showSuggestionHighlights']&&_0x433bbe({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x26d6a0,_0x1d0e9c,_0x1931b0);},{'priority':'highest'});}),_0x64ba5b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x316b57,_0x286a87)=>{if(_0x286a87['options']['showSuggestionHighlights']){const {id:_0x103f17,authorId:_0x29114b}=this['_splitMarkerName'](_0x316b57);return _0x316b57['includes'](':split')||_0x316b57['includes'](':merge')?{'group':'suggestion','name':_0x316b57['substr'](0xb),'attributes':{'data-suggestion':_0x103f17,'data-author-id':_0x29114b}}:null;}return{'group':'suggestion','name':_0x316b57['substr'](0xb)};}}),_0x64ba5b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x175627,{writer:_0xd6323d})=>{let _0x4b517d='suggestion:'+_0x175627['getAttribute']('suggestion-type')+':'+_0x175627['getAttribute']('id');return _0x175627['getAttribute']('marker-count')&&(_0x4b517d+=':'+_0x175627['getAttribute']('marker-count')),_0xd6323d['createElement']('$marker',{'data-name':_0x4b517d});}}),_0x64ba5b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x64ba5b['conversion']['for']('editingDowncast')['add'](_0x5e075b=>{_0x5e075b['on']('addMarker:suggestion:formatBlock',_0x433bbe(),{'priority':'high'});}),_0x64ba5b['conversion']['for']('editingDowncast')['add'](_0xd0d1ee=>{_0xd0d1ee['on']('addMarker:suggestion:attribute',_0x433bbe({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x64ba5b['conversion']['for']('editingDowncast')['add'](_0x202380=>{_0x202380['on']('removeMarker:suggestion:formatBlock',(_0x28148e,_0x242113,_0x2f9249)=>{const _0x5672a5=_0x2f9249['mapper']['markerNameToElements'](_0x242113['markerName']);if(_0x5672a5){for(const _0x3bb406 of _0x5672a5)_0x3bb406['getCustomProperty']('addHighlight')||(_0x2f9249['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3bb406),_0x2f9249['writer']['removeAttribute']('data-suggestion',_0x3bb406),_0x2f9249['writer']['removeAttribute']('data-author-id',_0x3bb406),_0x2f9249['mapper']['unbindElementFromMarkerName'](_0x3bb406,_0x242113['markerName']));}},{'priority':'high'});}),_0x64ba5b['conversion']['for']('editingDowncast')['add'](_0x14e32e=>{_0x14e32e['on']('removeMarker:suggestion:attribute',(_0x3e7123,_0x59ee09,_0xe174d5)=>{const _0xbe4ad4=_0xe174d5['mapper']['markerNameToElements'](_0x59ee09['markerName']);if(!_0xbe4ad4)return;const {id:_0x4c30be}=this['_splitMarkerName'](_0x59ee09['markerName']),_0x35db75=this['_suggestions']['get'](_0x4c30be),_0x21e915=this['_getAttributeKey'](_0x35db75);if(this['_isBlockAttribute'](_0x21e915)){for(const _0x1c4c3c of _0xbe4ad4)_0x1c4c3c['getCustomProperty']('addHighlight')||(_0xe174d5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1c4c3c),_0xe174d5['writer']['removeAttribute']('data-suggestion',_0x1c4c3c),_0xe174d5['writer']['removeAttribute']('data-author-id',_0x1c4c3c),_0xe174d5['mapper']['unbindElementFromMarkerName'](_0x1c4c3c,_0x59ee09['markerName']));}},{'priority':'high'});}),_0x64ba5b['model']['document']['registerPostFixer'](_0x433ee7=>{let _0x19d91c=!0x1;const _0x332827=Array['from'](_0x64ba5b['model']['document']['differ']['getChangedMarkers']()),_0x5d0747=new Set();for(const {name:_0xac57cd,data:_0x26c12d}of _0x332827){const {group:_0x8883c7,type:_0x378dd3,subType:_0x53a8fa,id:_0xbb9ba}=this['_splitMarkerName'](_0xac57cd);if('suggestion'!==_0x8883c7)continue;const _0x4e837c=_0x53a8fa?'suggestion:'+_0x378dd3+':'+_0x53a8fa+':'+_0xbb9ba:'suggestion:'+_0x378dd3+':'+_0xbb9ba,_0x4ac36b=_0x64ba5b['model']['markers']['getMarkersGroup'](_0x4e837c),_0x3abfc4=_0x64ba5b['model']['markers']['get'](_0xac57cd),_0x57fc82=this['_suggestions']['get'](_0xbb9ba);if(null!=_0x26c12d['newRange']){'formatInline'==_0x378dd3&&(_0x19d91c=_0x19d91c||Gt(_0x26c12d['newRange'],_0xac57cd,_0x433ee7,_0x64ba5b['model']['schema']));const _0x15c9ad='attribute'==_0x378dd3&&this['_isBlockAttribute'](_0x53a8fa['split']('|')[0x0]),_0xad96ff='attribute'==_0x378dd3&&this['_isInlineAttribute'](_0x53a8fa['split']('|')[0x0]);if(_0x26c12d['newRange']['isCollapsed']||'$graveyard'==_0x26c12d['newRange']['root']['rootName']||'formatBlock'==_0x378dd3&&!Jt(_0x26c12d['newRange'])||_0x15c9ad&&!Jt(_0x26c12d['newRange'])||_0xad96ff&&Kt(_0x26c12d['newRange'])||'deletion'==_0x378dd3&&Kt(_0x26c12d['newRange'])||_0x3abfc4&&Ht(_0x3abfc4,_0x4ac36b))_0x433ee7['removeMarker'](_0xac57cd),_0x19d91c=!0x0;else{if(!_0x57fc82||!_0x57fc82['isInContent'])continue;if(_0x26c12d['newRange']&&_0x26c12d['oldRange']&&_0x26c12d['newRange']['isEqual'](_0x26c12d['oldRange']))continue;_0x5d0747['add'](_0x57fc82);}}}return _0x5d0747['size']>0x0&&(_0x19d91c=!!this['_joinWithAdjacentSuggestions'](_0x5d0747)||_0x19d91c),_0x19d91c;}),_0x64ba5b['model']['document']['registerPostFixer'](_0x5f73f3=>{let _0x1fc265=!0x1;for(const _0x398b45 of _0x64ba5b['model']['document']['differ']['getChanges']())if('insert'==_0x398b45['type'])for(const _0x460bd8 of this['_suggestions']['values']()){if(_0x460bd8['isMultiRange']||!_0x460bd8['isInContent'])continue;const _0xcd83a7='formatBlock'==_0x460bd8['type'],_0xb6bcd3=this['_getAttributeKey'](_0x460bd8),_0x51197e=_0xb6bcd3&&this['_isBlockAttribute'](_0xb6bcd3);if(!_0xcd83a7&&!_0x51197e)continue;const _0x10163d=_0x460bd8['getFirstRange']();if(_0x10163d['start']['parent']!=_0x10163d['end']['parent']&&!_0x10163d['end']['isAtEnd']){const _0x241eda=_0x64ba5b['model']['createPositionAt'](_0x10163d['start']['nodeAfter'],'end'),_0x6755e5=_0x64ba5b['model']['createRange'](_0x10163d['start'],_0x241eda);_0x5f73f3['updateMarker'](_0x460bd8['getFirstMarker'](),{'range':_0x6755e5}),_0x1fc265=!0x0;}}return _0x1fc265;}),_0x64ba5b['model']['document']['registerPostFixer'](_0x5b0035=>this['_processAttributeChanges'](_0x5b0035)),_0x64ba5b['model']['document']['registerPostFixer'](_0xe73697=>!_0xe73697['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xe73697)),_0x64ba5b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x64ba5b['model']['document']['on']('change:data',(_0x4f3ebe,_0xe5b6fe)=>{if(!_0xe5b6fe['isLocal']||_0xe5b6fe['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1ce6ee=_0x64ba5b['model']['document']['differ']['getChanges']();if(0x0==_0x1ce6ee['length'])return;const _0x43cee3=[],_0x47e030=_0x1ce6ee['filter'](_0x13bd50=>'attribute'==_0x13bd50['type']),_0x461692=_0x1ce6ee['filter'](_0x152b65=>'insert'==_0x152b65['type']&&'$text'!=_0x152b65['name']);for(const _0x2a6879 of _0x47e030)this['_isRegisteredAttribute'](_0x2a6879['attributeKey'])&&_0x43cee3['push']({'key':_0x2a6879['attributeKey'],'newValue':_0x2a6879['attributeNewValue'],'oldValue':_0x2a6879['attributeOldValue'],'range':qt(_0x2a6879['range'],_0x64ba5b['model'])});for(const _0x5ab417 of _0x461692){if('rename'!=_0x5ab417['action']&&'refresh'!=_0x5ab417['action'])continue;const _0x1aa862=zt(_0x5ab417['position']['nodeAfter'],_0x64ba5b['model']),_0x65bde3=_0x5ab417['before'];'rename'==_0x5ab417['action']&&_0x43cee3['push']({'key':m,'newValue':_0x5ab417['name'],'oldValue':_0x65bde3['name'],'range':_0x1aa862});for(const [_0x11898e,_0xbe36b5]of _0x65bde3['attributes']){if(!this['_isRegisteredAttribute'](_0x11898e))continue;const _0x3c3bb4=_0x5ab417['attributes']['get'](_0x11898e);_0xbe36b5!==_0x3c3bb4&&_0x43cee3['push']({'key':_0x11898e,'newValue':_0x3c3bb4,'oldValue':_0xbe36b5,'range':_0x1aa862});}for(const [_0x3964d0,_0x4f7c15]of _0x5ab417['attributes'])this['_isRegisteredAttribute'](_0x3964d0)&&(_0x65bde3['attributes']['has'](_0x3964d0)||_0x43cee3['push']({'key':_0x3964d0,'newValue':_0x4f7c15,'oldValue':null,'range':_0x1aa862}));}0x0!=_0x43cee3['length']&&_0x64ba5b['model']['enqueueChange'](_0xe5b6fe,_0x31b4d7=>{const _0x309ddf=_0x40bebf();for(const {range:_0x225551,key:_0x2f97aa,oldValue:_0x371aff,newValue:_0x11d73b}of _0x43cee3)this['markAttributeChange'](_0x225551,_0x2f97aa,_0x371aff,_0x11d73b,{'groupId':_0x309ddf});this['_reduceExistingSuggestions'](_0x31b4d7,_0x43cee3);});},{'priority':'lowest'}),_0x64ba5b['model']['markers']['on']('update:suggestion',(_0x3898dd,_0x1bdd97,_0x4e1590)=>{if(null==_0x4e1590){const {id:_0x388710}=this['_splitMarkerName'](_0x1bdd97['name']),_0x930aa=this['_suggestions']['get'](_0x388710);_0x930aa&&_0x930aa['addMarkerName'](_0x1bdd97['name']);}}),_0x64ba5b['model']['document']['on']('change:data',()=>{const _0x16dd83=Array['from'](_0x64ba5b['model']['document']['differ']['getChangedMarkers']())['filter'](_0xde5162=>'suggestion'===this['_splitMarkerName'](_0xde5162['name'])['group']);if(0x0===_0x16dd83['length'])return;_0x16dd83['sort']((_0x468a4c,_0x1673e7)=>{const _0x37b19d=_0x468a4c['data']['oldRange'],_0xd6450e=_0x1673e7['data']['oldRange'];return null===_0x37b19d&&null===_0xd6450e?0x0:null===_0x37b19d&&null!==_0xd6450e?-0x1:null!==_0x37b19d&&null===_0xd6450e?0x1:_0x37b19d['start']['isBefore'](_0xd6450e['start'])?-0x1:0x1;});const _0x3b3e91=new Set(),_0x2bd258=new Set();for(const {name:_0x7cf219,data:_0x12469e}of _0x16dd83){const {id:_0xf27e6c}=this['_splitMarkerName'](_0x7cf219);if(null===_0x12469e['oldRange']){const _0x2947fa=this['_handleNewSuggestionMarker'](_0x7cf219);_0x2bd258['add'](_0x2947fa);}else{const _0x5cc520=this['_suggestions']['get'](_0xf27e6c);null!==_0x12469e['newRange']||_0x5cc520['isInContent']?(_0x3b3e91['add'](_0x5cc520['head']),_0x2bd258['add'](_0x5cc520)):this['_removeSuggestion'](_0x5cc520);}}_0x2bd258['size']>0x0&&this['_refreshSuggestionsChain'](_0x2bd258);for(const _0x17615e of _0x3b3e91)this['fire']('suggestionChanged',_0x17615e);}),_0x64ba5b['model']['on']('applyOperation',(_0x7aa8d,_0x5423da)=>{const _0x135aaa=_0x5423da[0x0];if(!this['_suggestions']['size'])return;if(!_0x135aaa['isDocumentOperation'])return;if(_0x135aaa['batch']['isUndo']||!_0x135aaa['batch']['isLocal'])return;let _0x536272,_0x545add;switch(_0x135aaa['type']){case'insert':_0x536272=_0x64ba5b['model']['createPositionAt'](_0x135aaa['position']),_0x545add=_0x536272['getShiftedBy'](_0x135aaa['howMany']);break;case'split':_0x536272=_0x64ba5b['model']['createPositionAt'](_0x135aaa['splitPosition']),_0x545add=_0x64ba5b['model']['createPositionAt'](_0x135aaa['moveTargetPosition']);break;case'move':_0x536272=_0x64ba5b['model']['createPositionAt'](_0x135aaa['targetPosition']),_0x545add=_0x536272['getShiftedBy'](_0x135aaa['howMany']);break;default:return;}const _0x1b8af2=_0x64ba5b['model']['createRange'](_0x536272,_0x545add);_0x64ba5b['model']['change'](()=>{for(const {suggestion:_0xc978ac,meta:_0x4beecd}of this['_findSuggestions'](_0x1b8af2)){if(_0xc978ac['isMultiRange'])continue;if('formatInline'==_0xc978ac['type'])continue;const _0x3b524d=this['_getAttributeKey'](_0xc978ac);if(_0x3b524d&&this['_isBlockAttribute'](_0x3b524d)&&'split'!=_0x135aaa['type'])continue;const _0xaf2497=_0xc978ac['data']&&_0xc978ac['data']['multipleBlocks'];('formatBlock'!=_0xc978ac['type']||'split'==_0x135aaa['type']&&!_0xaf2497)&&(_0x4beecd['containsRangeInObject']||'insertion'==_0xc978ac['type']&&_0x4beecd['isOwn']||_0xc978ac['getFirstRange']()['containsRange'](_0x1b8af2)&&this['_breakSuggestionMarker'](_0xc978ac,_0x536272,_0x545add));}});},{'priority':'lowest'}),_0x64ba5b['model']['on']('deleteContent',(_0x56e6f0,_0x26b2ea)=>{const _0x3a6687=_0x26b2ea[0x0],_0x1b6471=_0x26b2ea[0x1];if(_0x1b6471&&_0x1b6471['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3a6687['isCollapsed'])return;const _0x52681d=_0x64ba5b['model']['schema'],{start:_0x31b309,end:_0x2d671e}=_0x3a6687['getFirstRange'](),_0x5b2d28=_0x31b309['nodeAfter']&&_0x52681d['isLimit'](_0x31b309['nodeAfter'])?null:_0x52681d['getNearestSelectionRange'](_0x31b309,'forward'),_0x5a9c9e=_0x2d671e['nodeBefore']&&_0x52681d['isLimit'](_0x2d671e['nodeBefore'])?null:_0x52681d['getNearestSelectionRange'](_0x2d671e,'backward'),_0x5a037a=_0x64ba5b['model']['createRange'](_0x5b2d28?_0x5b2d28['start']:_0x31b309,_0x5a9c9e?_0x5a9c9e['end']:_0x2d671e);_0x64ba5b['model']['change'](_0x4496d9=>{this['markDeletion'](_0x5a037a);const _0x41462d=_0x64ba5b['model']['schema']['getNearestSelectionRange'](_0x5a037a['start']);_0x3a6687['is']('documentSelection')?_0x4496d9['setSelection'](_0x41462d):_0x3a6687['setTo'](_0x41462d);}),_0x56e6f0['stop']();},{'priority':_0x140f0d['normal']+0xa}),_0x64ba5b['model']['on']('insertContent',(_0x58cf87,_0x310bc9)=>{const _0x560126=_0x310bc9[_0x310bc9['length']-0x1];_0x560126&&_0x560126['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x64ba5b['model']['change'](()=>{let _0x3ae238=_0x64ba5b['model']['insertContent'](_0x310bc9[0x0],_0x310bc9[0x1],_0x310bc9[0x2],{'forceDefaultExecution':!0x0});if(!_0x3ae238)return;_0x58cf87['return']=_0x3ae238['clone']();const _0x36e432=_0x3ae238['end']['nodeBefore'],_0x40e615=_0x64ba5b['model']['schema'];_0x36e432&&_0x40e615['isBlock'](_0x36e432)&&!_0x40e615['isObject'](_0x36e432)&&(_0x3ae238=_0x64ba5b['model']['createRange'](_0x3ae238['start'],_0x64ba5b['model']['createPositionAt'](_0x36e432,'end'))),this['markInsertion'](_0x3ae238);}),_0x58cf87['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2b82f3=new D(_0x64ba5b,this['_suggestions']);_0x64ba5b['commands']['add']('acceptSuggestion',_0x2b82f3),this['enableCommand']('acceptSuggestion');const _0x1c9664=new $(_0x64ba5b,this['_suggestions']);_0x64ba5b['commands']['add']('discardSuggestion',_0x1c9664),this['enableCommand']('discardSuggestion'),_0x64ba5b['commands']['add']('acceptAllSuggestions',new M(_0x64ba5b,_0x2b82f3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x64ba5b['commands']['add']('discardAllSuggestions',new M(_0x64ba5b,_0x1c9664,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x64ba5b['commands']['add']('acceptSelectedSuggestions',new B(_0x64ba5b,_0x2b82f3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x64ba5b['commands']['add']('discardSelectedSuggestions',new B(_0x64ba5b,_0x1c9664,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4ebab4=_0x64ba5b['plugins']['get']('CommentsRepository');this['listenTo'](_0x4ebab4,'addComment',(_0x398bfc,{threadId:_0x522e6e})=>{const _0x3e187a=this['_suggestions']['get'](_0x522e6e);_0x3e187a&&_0x3e187a['commentThread']&&0x1===_0x3e187a['commentThread']['length']&&this['_updateSuggestionData'](_0x522e6e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4ebab4,'removeComment',(_0x2a8358,{threadId:_0xe7826c})=>{const _0x23fdbb=this['_suggestions']['get'](_0xe7826c);_0x23fdbb&&_0x23fdbb['commentThread']&&!_0x23fdbb['commentThread']['length']&&this['_updateSuggestionData'](_0xe7826c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2cee42){const _0x539e40=_0x9b1d3a([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x234934=0x6b0f5e6f,_0x36e757=0x6b082c97^_0x234934,_0x30cf94=window[_0x9b1d3a([0x44,0x61,0x74,0x65])][_0x9b1d3a([0x6e,0x6f,0x77])](),_0x41f13b=_0x2cee42[_0x9b1d3a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd62c1d=new window[(_0x9b1d3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47667b=>{_0x41f13b[_0x9b1d3a([0x6f,0x6e,0x63,0x65])](_0x9b1d3a([0x72,0x65,0x61,0x64,0x79]),_0x47667b);}),_0x12f598={[_0x9b1d3a([0x6b,0x74,0x79])]:_0x9b1d3a([0x45,0x43]),[_0x9b1d3a([0x75,0x73,0x65])]:_0x9b1d3a([0x73,0x69,0x67]),[_0x9b1d3a([0x63,0x72,0x76])]:_0x9b1d3a([0x50,0x2d,0x32,0x35,0x36]),[_0x9b1d3a([0x78])]:_0x9b1d3a([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]),[_0x9b1d3a([0x79])]:_0x9b1d3a([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]),[_0x9b1d3a([0x61,0x6c,0x67])]:_0x9b1d3a([0x45,0x53,0x32,0x35,0x36])},_0x49c9a4=_0x41f13b[_0x9b1d3a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9b1d3a([0x67,0x65,0x74])](_0x9b1d3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x571ba7(){let _0x14ac77,_0x50025e=null,_0x580bea=null;try{if(_0x49c9a4==_0x9b1d3a([0x47,0x50,0x4c]))return _0x9b1d3a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14ac77=_0x22e181(),!_0x14ac77)return _0x9b1d3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14ac77[_0x9b1d3a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x580bea=_0x5ac75d(_0x14ac77[_0x9b1d3a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14ac77[_0x9b1d3a([0x6a,0x74,0x69])])),await _0x4effb2()?_0x881003()?_0x3773dc()?_0x9b1d3a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40e798()?(_0x14ac77[_0x9b1d3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9b1d3a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50025e=_0x5324f0(_0x9b1d3a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x14ac77[_0x9b1d3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9b1d3a([0x74,0x72,0x69,0x61,0x6c])&&(_0x50025e=_0x5324f0(_0x9b1d3a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e2f24()):_0x9b1d3a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9b1d3a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9b1d3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9b1d3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3773dc(){const _0xf4cf14=[_0x9b1d3a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9b1d3a([0x74,0x72,0x69,0x61,0x6c])][_0x9b1d3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14ac77[_0x9b1d3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x30cf94/0x3e8:0xe10*_0x36e757;return _0x14ac77[_0x9b1d3a([0x65,0x78,0x70])]<_0xf4cf14;}function _0x881003(){const _0x1c11c7=_0x14ac77[_0x9b1d3a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1c11c7)return!0x1;if(_0x1c11c7[_0x9b1d3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b1d3a([0x2a])))return!0x0;if(_0x1c11c7[_0x9b1d3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b1d3a([0x54,0x43])))return!0x0;if(_0x1c11c7[_0x9b1d3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b1d3a([0x52,0x54,0x43]))){if(_0x3bc677())return!0x0;if(_0x47f511()||_0x29addd())return!0x0;}return!0x1;}function _0x40e798(){const _0xf666a0=_0x14ac77[_0x9b1d3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf666a0||0x0==_0xf666a0[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4b1e48}=new URL(window[_0x9b1d3a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf666a0[_0x9b1d3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b1e48))return!0x0;const _0x288b33=_0x4b1e48[_0x9b1d3a([0x73,0x70,0x6c,0x69,0x74])](_0x9b1d3a([0x2e]));return _0xf666a0[_0x9b1d3a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x431d65=>_0x431d65[_0x9b1d3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b1d3a([0x2a])))[_0x9b1d3a([0x6d,0x61,0x70])](_0x10a1a6=>_0x10a1a6[_0x9b1d3a([0x73,0x70,0x6c,0x69,0x74])](_0x9b1d3a([0x2e])))[_0x9b1d3a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b4ddf=>_0x2b4ddf[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x288b33[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9b1d3a([0x6d,0x61,0x70])](_0x17be55=>Array(_0x288b33[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x17be55[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9b1d3a([0x66,0x69,0x6c,0x6c])](_0x17be55[0x0]===_0x9b1d3a([0x2a])?_0x9b1d3a([0x2a]):'')[_0x9b1d3a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x17be55))[_0x9b1d3a([0x73,0x6f,0x6d,0x65])](_0x48d971=>_0x288b33[_0x9b1d3a([0x65,0x76,0x65,0x72,0x79])]((_0x56f720,_0x1d73e3)=>_0x48d971[_0x1d73e3]===_0x56f720||_0x48d971[_0x1d73e3]===_0x9b1d3a([0x2a])));}function _0x4e2f24(){return _0x50025e&&_0x580bea?new window[(_0x9b1d3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x454090,_0x58715e)=>{_0x50025e[_0x9b1d3a([0x74,0x68,0x65,0x6e])](_0x454090,_0x58715e),_0x580bea[_0x9b1d3a([0x74,0x68,0x65,0x6e])](_0x2940eb=>{_0x2940eb!=_0x9b1d3a([0x56,0x61,0x6c,0x69,0x64])&&_0x454090(_0x2940eb);},_0x58715e);}):_0x50025e||_0x580bea||_0x9b1d3a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ac75d(_0x2bf789,_0xa1e632){return new window[(_0x9b1d3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fd0b5=>{if(_0x1b8348())return _0x4fd0b5(_0x9b1d3a([0x56,0x61,0x6c,0x69,0x64]));_0xab2962(),_0x41f13b[_0x9b1d3a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9b1d3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ed97e=!0x1;const _0x473f30=_0x40bebf();function _0x18d8bf(_0x231cdb){return!!_0x231cdb&&(typeof _0x231cdb===_0x9b1d3a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x231cdb===_0x9b1d3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x231cdb[_0x9b1d3a([0x74,0x68,0x65,0x6e])]===_0x9b1d3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x231cdb[_0x9b1d3a([0x63,0x61,0x74,0x63,0x68])]===_0x9b1d3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x45e79a(_0xb7ace0){_0x2a25b6(_0xb7ace0)[_0x9b1d3a([0x74,0x68,0x65,0x6e])](_0x2ecee0=>{if(!_0x2ecee0||_0x2ecee0[_0x9b1d3a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9b1d3a([0x6f,0x6b]))return _0x9b1d3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x38d3b2(_0x4aac3b(_0x473f30+_0xa1e632))!=_0x2ecee0[_0x9b1d3a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9b1d3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9b1d3a([0x56,0x61,0x6c,0x69,0x64]);})[_0x9b1d3a([0x74,0x68,0x65,0x6e])](_0xd1efa4=>(_0x358aee(),_0xd1efa4),()=>{const _0x579ad9=_0x40c147();return null==_0x579ad9?(_0x358aee(),_0x9b1d3a([0x56,0x61,0x6c,0x69,0x64])):_0x9b1d3a(_0x30cf94-_0x579ad9>(0x4f03da6f^_0x234934)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9b1d3a([0x74,0x68,0x65,0x6e])](_0x4fd0b5)[_0x9b1d3a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4fd0b5(_0x9b1d3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4af43e=0x6b39b0ef^_0x234934;function _0x358aee(){const _0x50e5ca=_0x9b1d3a([0x6c,0x6c,0x63,0x74,0x2d])+_0x38d3b2(_0x4aac3b(_0x2bf789)),_0x31d4c0=_0x1ac1e9(_0x38d3b2(window[_0x9b1d3a([0x4d,0x61,0x74,0x68])][_0x9b1d3a([0x63,0x65,0x69,0x6c])](_0x30cf94/_0x4af43e)));window[_0x9b1d3a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9b1d3a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50e5ca,_0x31d4c0);}function _0x40c147(){const _0xe7f8a4=_0x9b1d3a([0x6c,0x6c,0x63,0x74,0x2d])+_0x38d3b2(_0x4aac3b(_0x2bf789)),_0x394a5b=window[_0x9b1d3a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9b1d3a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe7f8a4);return _0x394a5b?window[_0x9b1d3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ac1e9(_0x394a5b),0x10)*_0x4af43e:null;}function _0x2a25b6(_0x57b7f8){return new window[(_0x9b1d3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37e3f0,_0x132ed3)=>{_0x57b7f8[_0x9b1d3a([0x74,0x68,0x65,0x6e])](_0x37e3f0,_0x132ed3),window[_0x9b1d3a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x132ed3,0x6b0e8aaf^_0x234934);});}}_0x41f13b[_0x9b1d3a([0x6f,0x6e])](_0x9b1d3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x57e549,_0x55ddce)=>{if(_0x55ddce[0x0]!=_0x2bf789)return _0x4fd0b5(_0x9b1d3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x55ddce[0x1]={..._0x55ddce[0x1],[_0x9b1d3a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x473f30};},{[_0x9b1d3a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9b1d3a([0x68,0x69,0x67,0x68])}),_0x41f13b[_0x9b1d3a([0x6f,0x6e])](_0x9b1d3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f227b=>{_0x18d8bf(_0x4f227b[_0x9b1d3a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ed97e=!0x0,_0x45e79a(_0x4f227b[_0x9b1d3a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9b1d3a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9b1d3a([0x6c,0x6f,0x77])}),_0xd62c1d[_0x9b1d3a([0x74,0x68,0x65,0x6e])](()=>{_0x2ed97e||_0x4fd0b5(_0x9b1d3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b8348(){return _0x41f13b[_0x9b1d3a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9b1d3a([0x76,0x69,0x65,0x77])][_0x9b1d3a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9b1d3a([0x61,0x75,0x74,0x6f]);}function _0xab2962(){_0x41f13b[_0x9b1d3a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9b1d3a([0x76,0x69,0x65,0x77])][_0x9b1d3a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9b1d3a([0x61,0x75,0x74,0x6f]);}}function _0x5324f0(_0x1b8d11){const _0xadfd0a=[new window[(_0x9b1d3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f4e0c=>setTimeout(_0x2f4e0c,0x6b0660a3^_0x234934)),_0xd62c1d[_0x9b1d3a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9b1d3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ed212=>{let _0x4a1a64=0x0;_0x41f13b[_0x9b1d3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b1d3a([0x6f,0x6e])](_0x9b1d3a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e2bfa,_0x5426e0)=>{_0x5426e0[0x0][_0x9b1d3a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a1a64++,_0x4a1a64==(0x6b0f5f97^_0x234934)&&(_0x2ed212(),_0x3e2bfa[_0x9b1d3a([0x6f,0x66,0x66])]());});}))];return window[_0x9b1d3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9b1d3a([0x72,0x61,0x63,0x65])](_0xadfd0a)[_0x9b1d3a([0x74,0x68,0x65,0x6e])](()=>_0x1b8d11);}async function _0x6c5174(){await _0xd62c1d,_0x41f13b[_0x9b1d3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b1d3a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d33b6,_0x41f13b[_0x9b1d3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b1d3a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d33b6,_0x41f13b[_0x9b1d3a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9b1d3a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3bc677(){return _0x512547(_0x9b1d3a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x25b3e8(_0x9b1d3a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x9b1d3a([0x73,0x74,0x61,0x74,0x65])]==_0x9b1d3a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x47f511(){return _0x512547(_0x9b1d3a([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 _0x29addd(){return _0x512547(_0x9b1d3a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1b3ac0(_0x2a25b1){const _0x4c56c2=_0x53403f();_0x41f13b[_0x4c56c2]=_0x9b1d3a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a25b1,_0x2a25b1!=_0x9b1d3a([0x56,0x61,0x6c,0x69,0x64])&&_0x6c5174();}function _0x53403f(){const _0x24e251=window[_0x9b1d3a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9b1d3a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9b1d3a([0x6e,0x6f,0x77])]())[_0x9b1d3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9b1d3a([0x2e]),'');let _0x42b30b=_0x9b1d3a([0x67]);for(let _0x2ac4a3=0x0;_0x2ac4a3<_0x24e251[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ac4a3+=0x2){let _0x111a5d=window[_0x9b1d3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24e251[_0x9b1d3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ac4a3,_0x2ac4a3+0x2));_0x111a5d>=_0x539e40[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x111a5d-=_0x539e40[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42b30b+=_0x539e40[_0x111a5d];}return _0x42b30b;}function _0x22e181(){const _0x170d32=_0x49c9a4[_0x9b1d3a([0x73,0x70,0x6c,0x69,0x74])](_0x9b1d3a([0x2e]));if(0x3!=_0x170d32[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x221176(_0x170d32[0x1]);function _0x221176(_0x2c699b){const _0x45fe54=_0x23c82e(_0x2c699b);return _0x45fe54&&_0x2d0e69()?_0x45fe54:null;function _0x2d0e69(){const _0xa273f6=_0x45fe54[_0x9b1d3a([0x6a,0x74,0x69])],_0x1869cc=window[_0x9b1d3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa273f6[_0x9b1d3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa273f6[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x55c6b4={..._0x45fe54,[_0x9b1d3a([0x6a,0x74,0x69])]:_0xa273f6[_0x9b1d3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa273f6[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x55c6b4[_0x9b1d3a([0x76,0x63])],_0x4aac3b(_0x55c6b4)==_0x1869cc;}}}async function _0x4effb2(){let _0x33e9d2=!0x0;try{const _0x1a3ac2=_0x49c9a4[_0x9b1d3a([0x73,0x70,0x6c,0x69,0x74])](_0x9b1d3a([0x2e])),[_0x1b88c1,_0x11cd1b,_0x41a0f9]=_0x1a3ac2;return _0x4fafe5(_0x1b88c1),await _0xee80d7(_0x1b88c1,_0x11cd1b,_0x41a0f9),_0x33e9d2;}catch{return!0x1;}function _0x4fafe5(_0x38b550){const _0x45a477=_0x23c82e(_0x38b550);_0x45a477&&_0x45a477[_0x9b1d3a([0x61,0x6c,0x67])]==_0x9b1d3a([0x45,0x53,0x32,0x35,0x36])||(_0x33e9d2=!0x1);}async function _0xee80d7(_0x11f01a,_0x24bcc5,_0x301975){const _0x376147=window[_0x9b1d3a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9b1d3a([0x66,0x72,0x6f,0x6d])](_0x3432b3(_0x301975),_0x3b3924=>_0x3b3924[_0x9b1d3a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29fb50=new window[(_0x9b1d3a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9b1d3a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11f01a+_0x9b1d3a([0x2e])+_0x24bcc5),_0x47a8f5=window[_0x9b1d3a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9b1d3a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47a8f5)return;const _0x1ea403=await _0x47a8f5[_0x9b1d3a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9b1d3a([0x6a,0x77,0x6b]),_0x12f598,{[_0x9b1d3a([0x6e,0x61,0x6d,0x65])]:_0x9b1d3a([0x45,0x43,0x44,0x53,0x41]),[_0x9b1d3a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9b1d3a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9b1d3a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47a8f5[_0x9b1d3a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9b1d3a([0x6e,0x61,0x6d,0x65])]:_0x9b1d3a([0x45,0x43,0x44,0x53,0x41]),[_0x9b1d3a([0x68,0x61,0x73,0x68])]:{[_0x9b1d3a([0x6e,0x61,0x6d,0x65])]:_0x9b1d3a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ea403,_0x376147,_0x29fb50)||(_0x33e9d2=!0x1);}}function _0x23c82e(_0x3a6377){return _0x3a6377[_0x9b1d3a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9b1d3a([0x65,0x79]))?JSON[_0x9b1d3a([0x70,0x61,0x72,0x73,0x65])](_0x3432b3(_0x3a6377)):null;}function _0x3432b3(_0xea6a9f){return window[_0x9b1d3a([0x61,0x74,0x6f,0x62])](_0xea6a9f[_0x9b1d3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9b1d3a([0x2b]))[_0x9b1d3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9b1d3a([0x2f])));}function _0x4aac3b(_0x57552a){let _0x380a83=0x1505;function _0x4905ae(_0x2c39c6){for(let _0x36f13a=0x0;_0x36f13a<_0x2c39c6[_0x9b1d3a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36f13a++){const _0x1ad208=_0x2c39c6[_0x9b1d3a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x36f13a);_0x380a83=(_0x380a83<<0x5)+_0x380a83+_0x1ad208,_0x380a83&=_0x380a83;}}function _0x252af6(_0x322e2f){Array[_0x9b1d3a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x322e2f)?_0x322e2f[_0x9b1d3a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x252af6):_0x322e2f&&typeof _0x322e2f==_0x9b1d3a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9b1d3a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x322e2f)[_0x9b1d3a([0x73,0x6f,0x72,0x74])]()[_0x9b1d3a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x507409,_0xb2456b])=>{_0x4905ae(_0x507409),_0x252af6(_0xb2456b);}):_0x4905ae(window[_0x9b1d3a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x322e2f));}return _0x252af6(_0x57552a),_0x380a83>>>0x0;}function _0x38d3b2(_0x1c4a26){return _0x1c4a26[_0x9b1d3a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9b1d3a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9b1d3a([0x30]));}function _0x1ac1e9(_0x422d14){return _0x422d14[_0x9b1d3a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9b1d3a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9b1d3a([0x6a,0x6f,0x69,0x6e])]('');}function _0x512547(_0xf72991){return _0x41f13b[_0x9b1d3a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x9b1d3a([0x68,0x61,0x73])](_0xf72991);}function _0x25b3e8(_0x28a224){return _0x41f13b[_0x9b1d3a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x9b1d3a([0x67,0x65,0x74])](_0x28a224);}function _0x3d33b6(){}function _0x9b1d3a(_0x2356ee){return _0x2356ee['map'](_0x44abac=>String['fromCharCode'](_0x44abac))['join']('');}_0x1b3ac0(await _0x571ba7());}(this);}set['adapter'](_0xb36a4c){if(this['_adapter'])throw new _0x50c44a('track-changes-adapter-already-set',this);this['_adapter']=_0xb36a4c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x313150=!0x1,toJSON:_0x1c1047=!0x1}={}){const _0x15684b=[];for(const _0x3c29de of this['_suggestions']['values']())_0x313150&&!_0x3c29de['isInContent']||_0x15684b['push'](_0x3c29de);return _0x1c1047?_0x15684b['map'](_0x502db3=>_0x502db3['toJSON']()):_0x15684b;}['getSuggestion'](_0x5c20b7){const _0x5ba8cc=this['_suggestions']['get'](_0x5c20b7);if(!_0x5ba8cc)throw new _0x50c44a('track-changes-suggestion-not-found',this);return _0x5ba8cc;}['hasSuggestion'](_0x32de36){return this['_suggestions']['has'](_0x32de36);}['addSuggestionData'](_0x5c4d8e){const {authorId:_0x301ff5,id:_0x6e4207,originalSuggestionId:_0xa8e67c,attributes:_0x3f3cbc}=_0x5c4d8e,[_0x3084d0,_0x2d676c]=_0x5c4d8e['type']['split'](':'),_0x581221=this['_suggestions']['get'](_0x6e4207)||this['_createSuggestion'](_0x3084d0,_0x2d676c,_0x6e4207,_0x301ff5,_0x3f3cbc,_0xa8e67c);if(this['_addThreadToSuggestion'](_0x581221),this['_checkSuggestionCorrectness'](_0x581221,_0x3084d0,_0x2d676c||null,_0x301ff5),_0x581221['createdAt']=_0x5c4d8e['createdAt'],_0x581221['_isDataLoaded']=!0x0,_0x3f3cbc&&_0x3f3cbc['@external']){const _0x32228b=_0x3f3cbc['@external'],_0x31fc1b=this['_getExternalAuthor'](_0x32228b['authorName']);_0x581221['authoredAt']=_0x32228b['createdAt'],_0x581221['author']=_0x31fc1b,_0x581221['isExternal']=!0x0;}else _0x581221['authoredAt']=_0x5c4d8e['createdAt'];switch(_0x5c4d8e['data']&&(_0x581221['data']=_0x5c4d8e['data']),_0x5c4d8e['attributes']&&(_0x581221['attributes']=_0x5c4d8e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x581221['_saved']=!0x0),this['_suggestionState']['get'](_0x581221)){case'notReady':this['_suggestionState']['set'](_0x581221,'dataReady');break;case'markerReady':_0x581221['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x581221])),this['_refreshSuggestionsChain'](new Set([_0x581221])),this['_suggestionState']['set'](_0x581221,'ready'),this['fire']('suggestionLoaded',_0x581221)):this['_suggestionState']['set'](_0x581221,'removed');}return _0x581221;}['acceptSuggestion'](_0x56e2bc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x53a26d of _0x56e2bc['getAllAdjacentSuggestions']())_0x53a26d['accept']();});});}['discardSuggestion'](_0x4b5cff){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x42fcab of _0x4b5cff['getAllAdjacentSuggestions']())_0x42fcab['discard']();});});}['enableCommand'](_0x3c41e0,_0x1d9c59){const _0x1df402=this['editor']['commands']['get'](_0x3c41e0);if(!_0x1df402)throw new _0x50c44a('track-changes-command-not-found',this,{'commandName':_0x3c41e0});if(this['_enabledCommands']['has'](_0x1df402))throw new _0x50c44a('track-changes-enable-command-twice',this,{'commandName':_0x3c41e0});this['_enabledCommands']['add'](_0x1df402),_0x1d9c59&&_0x1df402['on']('execute',(_0x26da59,_0x3de4de)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3de4de['length']>0x0&&_0x3de4de[_0x3de4de['length']-0x1]&&_0x3de4de[_0x3de4de['length']-0x1]['forceDefaultExecution']?_0x3de4de['pop']():(_0x26da59['return']=_0x1d9c59((..._0x4eae84)=>_0x1df402['execute'](..._0x4eae84,{'forceDefaultExecution':!0x0}),..._0x3de4de),_0x26da59['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x344453){let _0x3b3566,_0xcbcdc9;const _0x3cf000=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3b3566=_0x344453();}catch(_0x3aa83d){_0xcbcdc9=_0x3aa83d;}return _0x3cf000||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xcbcdc9&&_0x50c44a['rethrowUnexpectedError'](_0xcbcdc9,this),_0x3b3566;}['markInsertion'](_0x26882f,_0x227537=null,_0x133adf={}){if(_0x26882f['isCollapsed'])return null;const _0x1f1937=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x133adf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x22da5a,meta:_0x3f0c80}of this['_findSuggestions'](_0x26882f,'insertion'))if(_0x3f0c80['isOwn']){if(!_0x3f0c80['isNextTo']){if(_0x3f0c80['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x22da5a,_0x133adf))continue;return _0x22da5a;}if(Xt(_0x22da5a,_0x133adf))return _0x22da5a;this['_breakSuggestionMarker'](_0x22da5a,_0x26882f['start'],_0x26882f['end']);break;}if(_0x227537==_0x22da5a['subType']&&Xt(_0x22da5a,_0x133adf)){const _0x4420e8=_0x22da5a['getFirstRange']();return _0x4420e8['start']['isEqual'](_0x26882f['end'])?this['_setSuggestionRange'](_0x22da5a,this['_model']['createRange'](_0x26882f['start'],_0x4420e8['end'])):this['_setSuggestionRange'](_0x22da5a,this['_model']['createRange'](_0x4420e8['start'],_0x26882f['end'])),_0x22da5a;}}const _0x5c9452=_0x40bebf(),_0x2ab51c=_0x1f1937['id'],_0x4d357d=_0x227537?'insertion:'+_0x227537:'insertion',_0x35b928=this['_setSuggestionData']({'id':_0x5c9452,'type':_0x4d357d,'createdAt':new Date(),'authorId':_0x2ab51c,'attributes':_0x133adf});return this['_addSuggestionMarker'](_0x4d357d,_0x5c9452,_0x2ab51c,_0x26882f),_0x35b928;}['markMultiRangeInsertion'](_0x33ad12,_0x9f989d='multi',_0x3f6448={}){const _0x2047a1=this['editor']['plugins']['get']('Users')['me'],_0x577b42=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x9f989d,'join');this['_trackingSessionId']&&(_0x3f6448['trackingSessionId']=this['_trackingSessionId']);for(const _0x4be2d1 of this['getSuggestions']())if(_0x4be2d1['author']['id']==_0x2047a1['id']&&'insertion'==_0x4be2d1['type']&&_0x4be2d1['subType']==_0x9f989d&&Xt(_0x4be2d1,_0x3f6448)&&(_0x577b42(_0x4be2d1['getRanges'](),_0x33ad12)||_0x577b42(_0x33ad12,_0x4be2d1['getRanges']()))){for(const _0x131bb2 of _0x33ad12)_0x4be2d1['addRange'](_0x131bb2);return _0x4be2d1;}for(const {suggestion:_0x3db18f,meta:_0x52da2d}of this['_findSuggestions'](_0x33ad12,'insertion')){if(!_0x52da2d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x52da2d['containsRangeInObject'])continue;if(!Xt(_0x3db18f,_0x3f6448))continue;let _0x836a24=!0x0;for(const _0x1cba71 of _0x3db18f['getRanges']())for(const _0x13ffa4 of _0x33ad12)if(!_0x1cba71['containsRange'](_0x13ffa4)){_0x836a24=!0x1;break;}if(_0x836a24)return _0x3db18f;}const _0x2ffb39=_0x40bebf(),_0x8ed87=_0x2047a1['id'],_0xc815dd='insertion:'+_0x9f989d,_0x3b155f=this['_setSuggestionData']({'id':_0x2ffb39,'type':_0xc815dd,'createdAt':new Date(),'authorId':_0x8ed87,'attributes':_0x3f6448});for(const _0x338fbc of _0x33ad12)this['_addSuggestionMarker'](_0xc815dd,_0x2ffb39,_0x8ed87,_0x338fbc,T['getMultiRangeId']());return _0x3b155f;}['markInlineFormat'](_0x418277,_0x56cec1,_0x3f5845=null,_0x95f4be={}){if(_0x3f5845=_0x3f5845||Lt(_0x56cec1),_0x418277['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x95f4be['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3d3f60=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3f5845,'accept');return this['forceDefaultExecution'](()=>_0x3d3f60([_0x418277],_0x56cec1,_0x95f4be)),null;}const _0x18f6df=this['editor']['plugins']['get']('Users')['me'],_0x1da33f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2a493b,meta:_0x19873b}of this['_findSuggestions'](_0x418277,'insertion'))_0x19873b['isOwn']&&!_0x19873b['isInsideObject']&&_0x1da33f['push'](..._0x2a493b['getRanges']());}const _0x20cc87=function(_0x49b59a,_0x29d2a3){const _0x5babe0=[];for(const _0x3049ea of _0x29d2a3){const _0x14e252=_0x49b59a['getIntersection'](_0x3049ea);_0x14e252&&_0x5babe0['push'](_0x14e252);}return _0x5babe0;}(_0x418277,_0x1da33f),_0x469587=function(_0x1414e3,_0x413869){const _0xc3b812=[_0x1414e3];for(const _0x1fda9f of _0x413869){let _0x211844=0x0;for(;_0x211844<_0xc3b812['length'];){const _0x12bf77=_0xc3b812[_0x211844]['getDifference'](_0x1fda9f);_0xc3b812['splice'](_0x211844,0x1,..._0x12bf77),_0x211844+=_0x12bf77['length'];}}return _0xc3b812;}(_0x418277,_0x1da33f);_0x20cc87['length']&&this['_model']['change'](()=>{for(const _0x5130c7 of _0x20cc87){const _0x42bd78=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3f5845,'accept');this['forceDefaultExecution'](()=>_0x42bd78([_0x5130c7],_0x56cec1,_0x95f4be));}});for(const _0x292069 of _0x469587){let _0x1d1e56=null,_0x177805=_0x292069['start'],_0xcdeaa0=_0x292069['end'];for(const {suggestion:_0x1bce52,meta:_0x197ef6}of this['_findSuggestions'](_0x292069,'formatInline')){if(!_0x197ef6['isOwn'])continue;if(_0x1bce52['subType']!=_0x3f5845)continue;if(!Xt(_0x1bce52,_0x95f4be))continue;const _0x41a1bc=_0x1bce52['getFirstRange']();if(_0x41a1bc['containsRange'](_0x292069,!0x0))return null;_0x177805=_0x177805['isBefore'](_0x41a1bc['start'])?_0x177805:_0x41a1bc['start'],_0xcdeaa0=_0xcdeaa0['isAfter'](_0x41a1bc['end'])?_0xcdeaa0:_0x41a1bc['end'],_0x1d1e56?_0x41a1bc['start']['isBefore'](_0x1d1e56['getFirstRange']()['start'])?(_0x1d1e56['removeMarkers'](),_0x1d1e56=_0x1bce52):_0x1bce52['removeMarkers']():_0x1d1e56=_0x1bce52;}const _0x7ffca9=this['_model']['createRange'](_0x177805,_0xcdeaa0);if(_0x1d1e56)this['_setSuggestionRange'](_0x1d1e56,_0x7ffca9);else{const _0x314756=_0x40bebf(),_0x91df1c=_0x18f6df['id'];this['_setSuggestionData']({'id':_0x314756,'type':'formatInline:'+_0x3f5845,'data':_0x56cec1,'createdAt':new Date(),'authorId':_0x91df1c,'attributes':_0x95f4be}),this['_addSuggestionMarker']('formatInline:'+_0x3f5845,_0x314756,_0x91df1c,_0x7ffca9);}}return null;}['markBlockFormat'](_0x118b18,_0x4b0f58,_0x579fdb=[],_0x11161f=null,_0x3a61dd={}){_0x4b0f58['formatGroupId']||(_0x4b0f58['formatGroupId']=_0x4b0f58['commandName']),_0x4b0f58['multipleBlocks']=_0x118b18['is']('range'),_0x11161f=_0x11161f||Lt(_0x4b0f58);const _0x235d50=_0x579fdb['map'](_0x497fdd=>zt(_0x497fdd,this['_model'])),_0x50bed4=_0x118b18['is']('range')?_0x118b18:zt(_0x118b18,this['_model']);if(this['_trackingSessionId']&&(_0x3a61dd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x47d1b0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11161f,'accept');return this['forceDefaultExecution'](()=>_0x47d1b0([_0x50bed4],_0x4b0f58,_0x3a61dd)),null;}_0x235d50['push'](_0x50bed4);let _0xd5263c=!0x0;for(const _0x4db43d of _0x235d50)if(!this['_rangeIsInLocalUserInsertion'](_0x4db43d)){_0xd5263c=!0x1;break;}if(_0xd5263c&&'always'!==this['_trackFormatChanges']){const _0xfd49c3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11161f,'accept');return this['forceDefaultExecution'](()=>_0xfd49c3([_0x50bed4],_0x4b0f58,_0x3a61dd)),null;}let _0x17286=null,_0x5af41a=_0x50bed4['start'],_0x37582a=_0x50bed4['end'];for(const {suggestion:_0x1e909a,meta:_0x3ecb9e}of this['_findSuggestions'](_0x50bed4,'formatBlock')){if(!_0x3ecb9e['isOwn'])continue;if(_0x3ecb9e['isNextTo']||_0x3ecb9e['containsRangeInObject']||_0x3ecb9e['isInsideObject'])continue;if(_0x1e909a['data']['formatGroupId']!=_0x4b0f58['formatGroupId'])continue;if(!Xt(_0x1e909a,_0x3a61dd))continue;const _0x4bb5fc=_0x1e909a['getFirstRange']();if(_0x1e909a['subType']==_0x11161f){if(_0x4bb5fc['containsRange'](_0x50bed4,!0x0))return null;_0x5af41a=_0x5af41a['isBefore'](_0x4bb5fc['start'])?_0x5af41a:_0x4bb5fc['start'],_0x37582a=_0x37582a['isAfter'](_0x4bb5fc['end'])?_0x37582a:_0x4bb5fc['end'],_0x17286?_0x4bb5fc['start']['isBefore'](_0x17286['getFirstRange']()['start'])?(_0x17286['removeMarkers'](),_0x17286=_0x1e909a):_0x1e909a['removeMarkers']():_0x17286=_0x1e909a;}else{const _0x1ce4a6=_0x50bed4['getIntersection'](_0x4bb5fc);this['_cutOutSuggestionMarker'](_0x1e909a,_0x1ce4a6);}}const _0x5f0d0e=this['editor']['plugins']['get']('Users')['me'],_0x2ff3d4=_0x40bebf(),_0x5aab66=_0x5f0d0e['id'];if(_0x17286)return this['_setSuggestionRange'](_0x17286,this['_model']['createRange'](_0x5af41a,_0x37582a)),_0x17286;{const _0x2acce7=this['_setSuggestionData']({'id':_0x2ff3d4,'type':'formatBlock:'+_0x11161f,'data':_0x4b0f58,'createdAt':new Date(),'authorId':_0x5aab66,'attributes':_0x3a61dd});return this['_addSuggestionMarker']('formatBlock:'+_0x11161f,_0x2ff3d4,_0x5aab66,this['_model']['createRange'](_0x5af41a,_0x37582a)),_0x2acce7;}}['markMultiRangeBlockFormat'](_0x5bd474,_0x344e45,_0x51fc08=[],_0x1abf4c=null,_0x3b4c8a={}){_0x344e45['formatGroupId']||(_0x344e45['formatGroupId']=_0x344e45['commandName']);const _0x30aa0b=_0x5bd474[0x0];_0x344e45['multipleBlocks']=_0x30aa0b['is']('range'),_0x1abf4c=_0x1abf4c||Lt(_0x344e45);const _0x2ce3be=_0x51fc08['map'](_0x4d8871=>zt(_0x4d8871,this['_model'])),_0x19b049=_0x30aa0b['is']('range')?_0x5bd474:_0x5bd474['map'](_0x29d519=>zt(_0x29d519,this['_model']));if(this['_trackingSessionId']&&(_0x3b4c8a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5dc9cd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1abf4c,'accept');return this['forceDefaultExecution'](()=>_0x5dc9cd(_0x19b049,_0x344e45,_0x3b4c8a)),null;}_0x2ce3be['push'](..._0x19b049);let _0x32ad29=!0x0;for(const _0x37d1fd of _0x2ce3be)if(!this['_rangeIsInLocalUserInsertion'](_0x37d1fd)){_0x32ad29=!0x1;break;}if(_0x32ad29&&'always'!==this['_trackFormatChanges']){const _0x4fbc5d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1abf4c,'accept');return this['forceDefaultExecution'](()=>_0x4fbc5d(_0x19b049,_0x344e45,_0x3b4c8a)),null;}const _0x2a6c05=this['editor']['plugins']['get']('Users')['me'];for(const _0x422cdd of this['getSuggestions']()){const _0x45d00f=_0x422cdd['data'];if(_0x422cdd['author']['id']!=_0x2a6c05['id'])continue;if('formatBlock'!=_0x422cdd['type']||_0x45d00f['formatGroupId']!=_0x344e45['formatGroupId'])continue;if(!Xt(_0x422cdd,_0x3b4c8a))continue;const _0x747067=_0x422cdd['subType']==_0x1abf4c;for(let _0x22f60b=0x0;_0x22f60b<_0x19b049['length'];_0x22f60b++){const _0x3c9d4c=_0x19b049[_0x22f60b];for(const _0x592753 of _0x422cdd['getMarkers']()){const _0xd29b00=_0x592753['getRange']();if(_0x3c9d4c['isEqual'](_0xd29b00)){_0x747067?(_0x19b049['splice'](_0x22f60b,0x1),_0x22f60b--):_0x422cdd['removeMarker'](_0x592753['name']);break;}}}}if(0x0==_0x19b049['length'])return null;const _0x460e80=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1abf4c,'join');for(const _0x2316db of this['getSuggestions']()){const _0x4c291d=_0x2316db['data'];if(_0x2316db['author']['id']==_0x2a6c05['id']&&('formatBlock'==_0x2316db['type']&&_0x4c291d['formatGroupId']==_0x344e45['formatGroupId']&&_0x2316db['subType']==_0x1abf4c&&Xt(_0x2316db,_0x3b4c8a)&&(_0x460e80(_0x2316db['getRanges'](),_0x19b049)||_0x460e80(_0x19b049,_0x2316db['getRanges']())))){for(const _0x374d3a of _0x19b049)_0x2316db['addRange'](_0x374d3a);return _0x2316db;}}const _0x1882f3=_0x40bebf(),_0x4c8735=_0x2a6c05['id'],_0x326c64='formatBlock:'+_0x1abf4c,_0x426d87=this['_setSuggestionData']({'id':_0x1882f3,'type':_0x326c64,'data':_0x344e45,'createdAt':new Date(),'authorId':_0x4c8735,'attributes':_0x3b4c8a});for(const _0x51a25b of _0x19b049)this['_addSuggestionMarker'](_0x326c64,_0x1882f3,_0x4c8735,_0x51a25b,T['getMultiRangeId']());return _0x426d87;}['markDeletion'](_0x541aba,_0x253a46=null,_0x15bc5f={}){if(_0x541aba['isCollapsed'])return null;const _0x1602d2=this['editor']['plugins']['get']('Users')['me'],_0x1886bd=new _0x51ea19(_0x541aba['start'],_0x541aba['end']);this['_trackingSessionId']&&(_0x15bc5f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5999fc,meta:_0x3464ce}of this['_findSuggestions'](_0x1886bd,'insertion'))if(_0x3464ce['isOwn']&&!_0x3464ce['isNextTo']){if(_0x5999fc['isMultiRange']){const _0x277b64=_0x5999fc['getRanges']()['filter'](_0x50b6f4=>'$graveyard'!=_0x50b6f4['root']['rootName']);_0x277b64['every'](_0x4fbfa9=>_0x1886bd['containsRange'](_0x4fbfa9,!0x0))&&_0x5999fc['discard']();if(_0x277b64['some'](_0x1d44c6=>_0x1d44c6['containsRange'](_0x1886bd,!0x0))){const _0x4ea972=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x253a46,'accept');return this['forceDefaultExecution'](()=>_0x4ea972([_0x1886bd],null,_0x15bc5f)),null;}}else{const _0x123a3f=_0x1886bd['getIntersection'](_0x5999fc['getFirstRange']());null!==_0x123a3f&&_0x5999fc['_onDiscard']([_0x123a3f],null,_0x15bc5f);}}if(_0x1886bd['detach'](),_0x1886bd['isCollapsed']||'$graveyard'==_0x1886bd['root']['rootName'])return null;let _0x413fb1=null,_0x8fcbb=_0x1886bd['start'],_0xff1106=_0x1886bd['end'];const _0x447dd8=this['_findSuggestions'](_0x1886bd,'deletion');for(const {suggestion:_0x12432b,meta:_0x5b99ce}of _0x447dd8){const _0x2713c9=this['_model']['createRange'](_0x8fcbb,_0xff1106);if(_0x5b99ce['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5b99ce['containsRangeInObject']&&!_0x5b99ce['isInsideObject'])){if(_0x12432b['isMultiRange']){if(!Xt(_0x12432b,_0x15bc5f))continue;let _0x52683c=!0x0;for(const _0x1c4f95 of _0x12432b['getRanges']()){if(_0x1c4f95['containsRange'](_0x2713c9,!0x0))return _0x12432b;_0x2713c9['containsRange'](_0x1c4f95)||(_0x52683c=!0x1);}_0x52683c&&_0x12432b['discard']();}else{const _0x21c833=_0x12432b['getFirstRange']();if(_0x21c833['containsRange'](_0x2713c9,!0x0))return _0x12432b;if(!Xt(_0x12432b,_0x15bc5f)){_0x2713c9['containsRange'](_0x21c833)?_0x12432b['removeMarkers']():_0x21c833['containsPosition'](_0x8fcbb)?_0x8fcbb=_0x21c833['end']:_0x21c833['containsPosition'](_0xff1106)&&(_0xff1106=_0x21c833['start']);continue;}_0x8fcbb=_0x8fcbb['isBefore'](_0x21c833['start'])?_0x8fcbb:_0x21c833['start'],_0xff1106=_0xff1106['isAfter'](_0x21c833['end'])?_0xff1106:_0x21c833['end'],_0x15bc5f=Object['assign']({},_0x12432b['attributes']),_0x413fb1?_0x21c833['start']['isBefore'](_0x413fb1['getFirstRange']()['start'])?(_0x413fb1['removeMarkers'](),_0x413fb1=_0x12432b):_0x12432b['removeMarkers']():_0x413fb1=_0x12432b;}}}if(_0x413fb1)return this['_setSuggestionRange'](_0x413fb1,this['_model']['createRange'](_0x8fcbb,_0xff1106)),_0x413fb1;{const _0x1f53b4=_0x40bebf(),_0x2ac62a=this['_model']['createRange'](_0x8fcbb,_0xff1106),_0x52cc8b=_0x1602d2['id'],_0x5608c9=_0x253a46?'deletion:'+_0x253a46:'deletion',_0x525a10=this['_setSuggestionData']({'id':_0x1f53b4,'type':_0x5608c9,'createdAt':new Date(),'authorId':_0x52cc8b,'attributes':_0x15bc5f});return this['_addSuggestionMarker'](_0x5608c9,_0x1f53b4,_0x52cc8b,_0x2ac62a),_0x525a10;}}['markMultiRangeDeletion'](_0x37a505,_0x1a63fc='multi',_0x2f8816={}){const _0x4a3fa5=this['editor']['plugins']['get']('Users')['me'],_0x20bd49=_0x37a505['map'](_0x360f57=>new _0x51ea19(_0x360f57['start'],_0x360f57['end'])),_0x9fa929=new Set();this['_trackingSessionId']&&(_0x2f8816['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1bb8e8,meta:_0x57a621}of this['_findSuggestions'](_0x20bd49,'insertion'))_0x57a621['isOwn']&&!_0x57a621['isNextTo']&&_0x9fa929['add'](_0x1bb8e8);for(const _0x38ebdc of _0x9fa929)if(_0x38ebdc['isMultiRange']){const _0x27ae3f=_0x38ebdc['getRanges']();(!_0x38ebdc['attributes']||!_0x38ebdc['attributes']['skipNestingCheck'])&&(_0x27ae3f['every'](_0x4f5531=>_0x20bd49['some'](_0x227974=>_0x227974['containsRange'](_0x4f5531,!0x0)))&&_0x38ebdc['discard']());if(_0x20bd49['every'](_0x420cd8=>_0x27ae3f['some'](_0x41500d=>_0x41500d['containsRange'](_0x420cd8,!0x0)))){const _0x12f104=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a63fc,'accept');return this['forceDefaultExecution'](()=>_0x12f104(_0x37a505,null,_0x2f8816)),null;}}else{const _0x5dac8e=_0x38ebdc['getFirstRange']();_0x20bd49['some'](_0x307de0=>_0x307de0['containsRange'](_0x5dac8e,!0x0))&&_0x38ebdc['discard']();if(_0x20bd49['every'](_0xb845cf=>_0x5dac8e['containsRange'](_0xb845cf,!0x0))){const _0x258989=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a63fc,'accept');return this['forceDefaultExecution'](()=>_0x258989(_0x20bd49,null,_0x2f8816)),null;}}const _0x339c0c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a63fc,'join');let _0x50ca14=null;for(const _0x431294 of this['getSuggestions']())if(_0x431294['author']['id']==_0x4a3fa5['id']&&_0x431294['isInContent']&&'deletion'==_0x431294['type']&&_0x431294['subType']==_0x1a63fc&&Xt(_0x431294,_0x2f8816)&&(_0x339c0c(_0x431294['getRanges'](),_0x20bd49)||_0x339c0c(_0x20bd49,_0x431294['getRanges']()))){if(_0x50ca14){if(_0x431294['commentThread']&&_0x431294['commentThread']['length'])continue;for(const _0x3d8e8a of _0x431294['getRanges']())_0x50ca14['isIntersectingWithRange'](_0x3d8e8a)||_0x50ca14['addRange'](_0x3d8e8a);_0x431294['removeMarkers']();}else{_0x50ca14=_0x431294;for(const _0x54ed32 of _0x20bd49)_0x431294['isIntersectingWithRange'](_0x54ed32)||_0x431294['addRange'](_0x54ed32);}}if(_0x50ca14)return _0x50ca14;_0x9fa929['clear']();for(const {suggestion:_0x3fdf11,meta:_0x2a5bdc}of this['_findSuggestions'](_0x20bd49,'deletion'))_0x2a5bdc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2a5bdc['containsRangeInObject']&&!_0x2a5bdc['isInsideObject'])&&Xt(_0x3fdf11,_0x2f8816)&&_0x9fa929['add'](_0x3fdf11);for(const _0x1c9ff5 of _0x9fa929){const _0x10e0f7=_0x1c9ff5['getRanges']();if(!_0x2f8816||!_0x2f8816['skipNestingCheck']){if(_0x20bd49['every'](_0x7a90cc=>_0x10e0f7['some'](_0x3af186=>_0x3af186['containsRange'](_0x7a90cc,!0x0))))return _0x1c9ff5;}(!_0x1c9ff5['attributes']||!_0x1c9ff5['attributes']['skipNestingCheck'])&&(_0x10e0f7['every'](_0x172305=>_0x20bd49['some'](_0x526a90=>_0x526a90['containsRange'](_0x172305,!0x0)))&&_0x1c9ff5['discard']());}const _0x4c672c=_0x40bebf(),_0x13cdab=_0x4a3fa5['id'],_0x3a6d68='deletion:'+_0x1a63fc,_0xf7746b=this['_setSuggestionData']({'id':_0x4c672c,'type':_0x3a6d68,'createdAt':new Date(),'authorId':_0x13cdab,'attributes':_0x2f8816});for(const _0x1dafa7 of _0x20bd49)_0x1dafa7['detach'](),_0x1dafa7['isCollapsed']||'$graveyard'==_0x1dafa7['root']['rootName']||this['_addSuggestionMarker'](_0x3a6d68,_0x4c672c,_0x13cdab,_0x1dafa7,T['getMultiRangeId']());return _0xf7746b;}['markAttributeChange'](_0x22994f,_0x14dc5b,_0x361c15,_0x57f31f,_0x1b07a9){if(_0x22994f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1759c2=this['editor']['plugins']['get']('Users')['me']['id'],_0x603521=Array['from'](this['_suggestions']['values']())['filter'](_0x1e657b=>'attribute'==_0x1e657b['type']&&_0x1e657b['data']['key']==_0x14dc5b&&_0x1e657b['isIntersectingWithRange'](_0x22994f));if(this['_trackingSessionId']&&(_0x1b07a9['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x347e0c=this['_findSuggestions'](_0x22994f,'insertion')['filter'](({meta:_0x27418f})=>_0x27418f['isOwn']&&!_0x27418f['isInsideObject']&&!_0x27418f['isNextTo'])['map'](({suggestion:_0x367471})=>_0x367471);_0x603521['unshift'](..._0x347e0c);}const _0x4b8940=new Map([[_0x22994f,_0x361c15]]);for(const _0x421e95 of _0x603521){const _0x164c60='attribute'==_0x421e95['type']?_0x421e95['data']['oldValue']:void 0x0,_0x172331=_0x421e95['getFirstRange'](),_0x377af0=Array['from'](_0x4b8940['keys']())['find'](_0x33032e=>_0x33032e['isIntersecting'](_0x172331));if(!_0x377af0)continue;const _0xd982cb=_0x377af0['getDifference'](_0x172331);this['_isBlockAttribute'](_0x14dc5b)&&'insertion'==_0x421e95['type']&&0x0!=_0xd982cb['length']||(_0x4b8940['delete'](_0x377af0),_0xd982cb['forEach'](_0x5c1354=>{_0x4b8940['set'](_0x5c1354,_0x361c15);}),'insertion'!=_0x421e95['type']&&_0x164c60!=_0x57f31f&&_0x4b8940['set'](_0x377af0['getIntersection'](_0x172331),_0x164c60));}const _0x109573=[];for(const [_0x665235,_0x373405]of _0x4b8940){const _0x2732da=_0x40bebf(),_0x4b061e={'key':_0x14dc5b,'oldValue':_0x373405,'newValue':_0x57f31f};_0x14dc5b['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':_0x14dc5b});const _0x46e10b=('attribute:'+(_0x14dc5b+'|'+Lt({'newValue':_0x57f31f})))['substring'](0x0,0x3c),_0x15454a=this['_setSuggestionData']({'id':_0x2732da,'type':_0x46e10b,'data':_0x4b061e,'createdAt':new Date(),'authorId':_0x1759c2,'attributes':_0x1b07a9});_0x109573['push'](_0x15454a),this['_addSuggestionMarker'](_0x46e10b,_0x2732da,_0x1759c2,_0x665235);}return _0x109573;}['enableDefaultAttributesIntegration'](_0x3a39d5){this['enableCommand'](_0x3a39d5,(_0x45b566,..._0x1ca786)=>{this['recordAttributeChanges'](()=>{_0x45b566(..._0x1ca786);});});}['registerBlockAttribute'](_0x231dfd){this['_blockAttributeKeys']['add'](_0x231dfd);}['registerInlineAttribute'](_0x4e00ac){this['_inlineAttributeKeys']['add'](_0x4e00ac);}['startTrackingSession'](_0x2222c6){return this['_trackingSessionId']=void 0x0!==_0x2222c6?_0x2222c6:_0x40bebf(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2d9dac){return'attribute'==_0x2d9dac['type']?_0x2d9dac['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xc79f71,_0x581f72){const _0x12055b=_0xc79f71['getFirstMarker']();this['_model']['change'](_0x21f103=>{_0x21f103['updateMarker'](_0x12055b,{'range':_0x581f72});});}['_addThreadToSuggestion'](_0x1d9556){const _0x3c1aba=_0x1d9556['id'],_0x665d0c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3c1aba)||this['_commentsRepository']['addCommentThread']({'channelId':_0x665d0c,'threadId':_0x3c1aba,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1be698=this['_commentsRepository']['getCommentThread'](_0x3c1aba);_0x1be698['unbind']('isRemovable'),_0x1be698['isRemovable']=!0x1,_0x1d9556['commentThread']=_0x1be698;}['_checkSuggestionCorrectness'](_0x3b5016,_0x3762a9,_0xce873b,_0x1cc434){if(_0x3b5016['type']!=_0x3762a9||_0x3b5016['subType']!=_0xce873b||_0x3b5016['creator']['id']!=_0x1cc434)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x50c44a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x34b950,_0x52450b){const _0x314965=_0x34b950['getFirstRange']();if(_0x52450b['isEqual'](_0x314965))_0x34b950['removeMarkers']();else{if(_0x314965['containsRange'](_0x52450b)){const _0xd79177=this['_model']['createPositionAt'](_0x52450b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x34b950,this['_model']['createRange'](_0x314965['start'],_0xd79177));const _0x11cda2=_0x40bebf(),_0x41ef3f=_0x34b950['creator']['id'],_0xbdcc2c=_0x34b950['type']+':'+_0x34b950['subType'];this['_setSuggestionData']({'id':_0x11cda2,'type':_0xbdcc2c,'createdAt':new Date(),'authorId':_0x41ef3f,'data':_0x34b950['data'],'attributes':_0x34b950['attributes']});const _0x28c8b6=this['_model']['createPositionAt'](_0x52450b['end']['parent'],'after'),_0x3d2e91=this['_model']['createRange'](_0x28c8b6,_0x314965['end']);this['_addSuggestionMarker'](_0xbdcc2c,_0x11cda2,_0x41ef3f,_0x3d2e91);}else{if(_0x314965['containsPosition'](_0x52450b['start'])){const _0x4d13af=this['_model']['createPositionAt'](_0x52450b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x34b950,this['_model']['createRange'](_0x314965['start'],_0x4d13af));}else{const _0xea4515=this['_model']['createPositionAt'](_0x52450b['end']['parent'],'after');this['_setSuggestionRange'](_0x34b950,this['_model']['createRange'](_0xea4515,_0x314965['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3b0e8b){for(const {suggestion:_0x26df08,meta:_0x4f0ec8}of this['_findSuggestions'](_0x3b0e8b,'insertion')){if(!_0x4f0ec8['isOwn'])continue;const _0x23c2f8=_0x26df08['getRanges']();for(const _0x337f11 of _0x23c2f8)if(!_0x3b0e8b['getDifference'](_0x337f11)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x26ebc6){return this['editor']['plugins']['get']('Users')['getUser'](_0x26ebc6);}['_getExternalAuthor'](_0x534045){const _0x567833=this['editor']['plugins']['get']('Users'),_0x4e3460=_0x421d24('external:'+_0x534045),_0x4f1919=_0x567833['getUser'](_0x4e3460);return _0x4f1919||_0x567833['addUser']({'id':_0x4e3460,'name':_0x534045});}['_createSuggestion'](_0x21a924,_0x245381,_0xdcb623,_0x55c879,_0x326cbc,_0x2a3f94){const _0x182808=this['_getAuthorFromId'](_0x55c879);if(!_0x182808)throw new _0x50c44a('track-changes-user-not-found',this,{'authorId':_0x55c879,'suggestionId':_0xdcb623});const _0xf6afce=this['_suggestionFactory']['buildSuggestion'](_0x21a924,_0x245381,_0xdcb623,_0x182808,_0x326cbc,_0x432fe2=>{this['_updateSuggestionData'](_0xdcb623,{'attributes':_0x432fe2});const _0x27de3f=this['getSuggestion'](_0xdcb623);this['_joinWithAdjacentSuggestions'](new Set([_0x27de3f])),this['_refreshSuggestionsChain'](new Set([_0x27de3f]));},_0x2a3f94);return this['listenTo'](_0xf6afce,'accept',()=>{this['_updateSuggestionData'](_0xdcb623,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xf6afce,'discard',()=>{this['_updateSuggestionData'](_0xdcb623,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xdcb623,_0xf6afce),this['_suggestionState']['set'](_0xf6afce,'notReady'),_0xf6afce;}['_splitMarkerName'](_0x25a749){const _0x4c6fec=_0x25a749['split'](':');return{'group':_0x4c6fec[0x0],'type':_0x4c6fec[0x1],'subType':_0x4c6fec['length']>=0x5?_0x4c6fec[0x2]:null,'id':_0x4c6fec['length']<0x5?_0x4c6fec[0x2]:_0x4c6fec[0x3],'authorId':_0x4c6fec['length']<0x5?_0x4c6fec[0x3]:_0x4c6fec[0x4],'markerCount':0x6==_0x4c6fec['length']?_0x4c6fec[0x5]:null};}['_breakSuggestionMarker'](_0x402b77,_0xae783e,_0x5d7e34){const _0x2cb2d6=_0x402b77['getFirstRange'](),_0x1bfb99=_0x2cb2d6['start'],_0x240606=_0x2cb2d6['end'];this['_setSuggestionRange'](_0x402b77,this['_model']['createRange'](_0x1bfb99,_0xae783e));const _0x540439=_0x40bebf(),_0x5943de=_0x402b77['creator']['id'],_0x108e1c=_0x402b77['type']+(_0x402b77['subType']?':'+_0x402b77['subType']:'');this['_setSuggestionData']({'id':_0x540439,'type':_0x108e1c,'createdAt':new Date(),'authorId':_0x5943de,'originalSuggestionId':_0x402b77['_originalSuggestionId']||_0x402b77['id'],'attributes':_0x402b77['attributes'],'data':_0x402b77['data']});const _0x226667=this['_getAttributeKey'](_0x402b77);('formatBlock'==_0x402b77['type']||_0x226667&&this['_isBlockAttribute'](_0x226667))&&(_0x5d7e34=this['_model']['createPositionBefore'](_0x5d7e34['parent'])),this['_addSuggestionMarker'](_0x108e1c,_0x540439,_0x5943de,this['_model']['createRange'](_0x5d7e34,_0x240606));}['_findSuggestions'](_0x5a8cd1,_0x2dcdbb=null){const _0x53c163=[],_0x47e480=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5a8cd1)||(_0x5a8cd1=[_0x5a8cd1]);for(const _0x4b8e28 of this['getSuggestions']()){if(!_0x4b8e28['isInContent'])continue;if(_0x2dcdbb&&_0x4b8e28['type']!=_0x2dcdbb)continue;let _0x36aa7c=!0x1;for(const _0x2c9283 of _0x4b8e28['getRanges']()){for(const _0x2f4558 of _0x5a8cd1){const _0x23cd1e=_0x2f4558['start']['isEqual'](_0x2c9283['end'])||_0x2f4558['end']['isEqual'](_0x2c9283['start']);if(_0x23cd1e||_0x2f4558['getIntersection'](_0x2c9283)){const _0x2e41af=_0x2f4558['containsRange'](_0x2c9283)&&Ft(this['_model']['schema'],_0x2c9283['start'],_0x2f4558),_0x255643=_0x2c9283['containsRange'](_0x2f4558)&&Ft(this['_model']['schema'],_0x2f4558['start'],_0x2c9283);_0x53c163['push']({'suggestion':_0x4b8e28,'meta':{'isOwn':_0x47e480==_0x4b8e28['author'],'isNextTo':_0x23cd1e,'isInsideObject':_0x2e41af,'containsRangeInObject':_0x255643}}),_0x36aa7c=!0x0;break;}}if(_0x36aa7c)break;}}return _0x53c163;}['_addSuggestionMarker'](_0xdb5f12,_0x29579a,_0x5d65cf,_0x13e675,_0x14b208){this['_model']['change'](_0x3d04ad=>{let _0x5ecfc2='suggestion:'+_0xdb5f12+':'+_0x29579a+':'+_0x5d65cf;_0x14b208&&(_0x5ecfc2=_0x5ecfc2+':'+_0x14b208),_0x3d04ad['addMarker'](_0x5ecfc2,{'range':_0x13e675,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3ae19a){const _0x2c09d9=_0x3ae19a['previous'],_0x42203c=_0x3ae19a['next'];_0x3ae19a['previous']=null,_0x3ae19a['next']=null,null!=_0x2c09d9&&_0x2c09d9['next']==_0x3ae19a&&(_0x2c09d9['next']=_0x42203c),null!=_0x42203c&&_0x42203c['previous']==_0x3ae19a&&(_0x42203c['previous']=_0x2c09d9),'ready'==this['_suggestionState']['get'](_0x3ae19a)&&(this['_suggestionState']['set'](_0x3ae19a,'removed'),this['fire']('suggestionUnloaded',_0x3ae19a,_0x2c09d9,_0x42203c));}['_setSuggestionData'](_0x2cc55c){const _0x23c326=_0x2cc55c['id'],_0x32ef5e=this['addSuggestionData'](_0x2cc55c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x123d40=this['editor']['plugins']['get']('PendingActions'),_0x49397b=_0x32ef5e['hasComments'],_0x2292f6=_0x32ef5e['subType']?_0x32ef5e['type']+':'+_0x32ef5e['subType']:_0x32ef5e['type'],_0x117734=this['editor']['locale'],_0x2f2206=_0x123d40['add'](o(_0x117734,'PENDING_ACTION_SUGGESTION')),_0x505c6d={'id':_0x23c326,'type':_0x2292f6,'hasComments':_0x49397b,'data':_0x2cc55c['data']||null,'originalSuggestionId':_0x2cc55c['originalSuggestionId']||null,'attributes':_0x32ef5e['attributes']};this['_adapter']['addSuggestion'](_0x505c6d)['then'](_0x2b9d12=>{_0x32ef5e['_saved']=!0x0,_0x123d40['remove'](_0x2f2206),_0x2b9d12&&_0x2b9d12['createdAt']&&(this['_suggestions']['get'](_0x23c326)['createdAt']=_0x2b9d12['createdAt']);})['catch'](_0x20a178=>{throw _0x15176d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x32ef5e['discard']();}),_0x32ef5e['stopListening'](),this['_suggestions']['delete'](_0x32ef5e['id']),this['_suggestionState']['delete'](_0x32ef5e),_0x20a178;});}return _0x32ef5e;}['_isBlockAttribute'](_0x44ee32){return this['_blockAttributeKeys']['has'](_0x44ee32);}['_isInlineAttribute'](_0x3288d7){return this['_inlineAttributeKeys']['has'](_0x3288d7);}['_updateSuggestionData'](_0x2bb8d2,_0x464be7){const _0x2687c7=this['editor']['plugins']['get']('PendingActions'),_0x4a53f6=this['getSuggestion'](_0x2bb8d2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4a53f6['_saved']){const _0x4dcf7a=_0x2687c7['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2bb8d2,_0x464be7)['then'](()=>{_0x2687c7['remove'](_0x4dcf7a);});}else _0x4a53f6['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2bb8d2,_0x464be7);});}}['_getSuggestionData'](_0x4a5049){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x50c44a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4a5049);}['_handleNewSuggestionMarker'](_0x56aec1){const {id:_0x58a175,type:_0x3577d6,subType:_0x5129ab,authorId:_0x3eeaf9}=this['_splitMarkerName'](_0x56aec1),_0x3e3eaf=this['_suggestions']['get'](_0x58a175)||this['_createSuggestion'](_0x3577d6,_0x5129ab,_0x58a175,_0x3eeaf9,{});switch(this['_checkSuggestionCorrectness'](_0x3e3eaf,_0x3577d6,_0x5129ab,_0x3eeaf9),this['_suggestionState']['get'](_0x3e3eaf)){case'notReady':this['_getSuggestionData'](_0x58a175)['then'](_0x3f3458=>{let _0x5e7bad=Promise['resolve']();_0x3f3458['hasComments']&&(_0x5e7bad=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x58a175})),_0x5e7bad['then'](()=>{this['addSuggestionData'](_0x3f3458)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3e3eaf,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x58a175,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3e3eaf,'ready'),this['fire']('suggestionLoaded',_0x3e3eaf);break;case'ready':this['fire']('suggestionChanged',_0x3e3eaf);}return _0x3e3eaf['addMarkerName'](_0x56aec1),_0x3e3eaf;}['_refreshSuggestionsChain'](_0x4e10b2){const _0x9f13eb=Array['from'](_0x4e10b2),_0x5a1e0a=_0x9f13eb['filter'](_0x2c73c=>'attribute'==_0x2c73c['type']);this['_refreshAttributeSuggestionsChain'](_0x5a1e0a);const _0x388535=_0x9f13eb['filter'](_0x4f751a=>!_0x4f751a['isMultiRange']&&'attribute'!=_0x4f751a['type']),_0x585b2b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49381f=>!_0x49381f['isMultiRange']&&'attribute'!=_0x49381f['type']),_0x170328=_0x585b2b['filter'](_0xbb69d7=>!_0x4e10b2['has'](_0xbb69d7)),_0x48ce69=new Map(_0x585b2b['map'](_0x1a5cfd=>[_0x1a5cfd,this['_suggestionFactory']['getSuggestionCallback'](_0x1a5cfd['type'],_0x1a5cfd['subType'],'chain')])),_0x3901cb=new Map(_0x585b2b['map'](_0x42568c=>[_0x42568c,_0x42568c['getFirstRange']()])),_0x48081d=new Set(),_0x5069a8=new Set();for(let _0x2cdd89=0x0;_0x2cdd89<_0x388535['length'];_0x2cdd89++)_0x1bd56c(_0x388535[_0x2cdd89],_0x388535,_0x2cdd89+0x1);for(let _0xd9cd2e=0x0;_0xd9cd2e<_0x388535['length'];_0xd9cd2e++)_0x1bd56c(_0x388535[_0xd9cd2e],_0x170328,0x0);const _0x509aff=new Set();for(let _0x4a9d14=0x0;_0x4a9d14<_0x388535['length'];_0x4a9d14++){const _0x4aef5d=_0x388535[_0x4a9d14];!_0x5069a8['has'](_0x4aef5d)&&_0x4aef5d['previous']&&(_0x509aff['add'](_0x4aef5d['previous']),_0x4aef5d['previous']['next']===_0x4aef5d&&(_0x4aef5d['previous']['next']=null),_0x4aef5d['previous']=null),!_0x48081d['has'](_0x4aef5d)&&_0x4aef5d['next']&&(_0x509aff['add'](_0x4aef5d['next']),_0x4aef5d['next']['previous']===_0x4aef5d&&(_0x4aef5d['next']['previous']=null),_0x4aef5d['next']=null);}function _0x1bd56c(_0x20b40c,_0x5c60b0,_0x3c6035){for(let _0x19e560=_0x3c6035;_0x19e560<_0x5c60b0['length'];_0x19e560++){const _0x2d00d0=_0x454b20(_0x20b40c,_0x5c60b0[_0x19e560]);_0x2d00d0&&(_0x2d00d0[0x0]['next']=_0x2d00d0[0x1],_0x2d00d0[0x1]['previous']=_0x2d00d0[0x0],_0x48081d['add'](_0x2d00d0[0x0]),_0x5069a8['add'](_0x2d00d0[0x1]));}}function _0x454b20(_0x36862a,_0x5d190c){if(_0x36862a['author']['id']!==_0x5d190c['author']['id'])return null;const _0x5b253f=_0x48ce69['get'](_0x36862a)(_0x36862a,_0x5d190c,_0x3901cb['get'](_0x36862a),_0x3901cb['get'](_0x5d190c));if(!_0x5b253f)return null;return _0x48ce69['get'](_0x5d190c)(_0x36862a,_0x5d190c,_0x3901cb['get'](_0x36862a),_0x3901cb['get'](_0x5d190c))?_0x5b253f[0x1]['commentThread']&&_0x5b253f[0x1]['commentThread']['length']?null:_0x5b253f:null;}_0x509aff['size']&&this['_refreshSuggestionsChain'](_0x509aff);}['_refreshAttributeSuggestionsChain'](_0x18b0ae){if(0x0==_0x18b0ae['length'])return;const _0x10d073=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2bef0a=>'attribute'==_0x2bef0a['type']&&_0x2bef0a['_isDataLoaded']),_0x2470cd=[],_0x41ce57=new Map();for(const _0x50c068 of _0x10d073){const _0x37d9a0=_0x421d24(_0x50c068['attributes']);_0x41ce57['has'](_0x37d9a0)||(_0x41ce57['set'](_0x37d9a0,_0x2470cd['length']),_0x2470cd['push']([]));const _0x15e5ff=_0x41ce57['get'](_0x37d9a0);_0x2470cd[_0x15e5ff]['push'](_0x50c068);}!(function(){_0x2470cd['sort']((_0xea745c,_0x256dd1)=>{const _0x2910ea=_0xea745c[0x0]['createdAt'],_0x405b55=_0x256dd1[0x0]['createdAt'];return _0x2910ea==_0x405b55?_0xea745c[0x0]['attributes']['groupId']<_0x256dd1[0x0]['attributes']['groupId']?-0x1:0x1:_0x2910ea<_0x405b55?-0x1:0x1;});for(const _0x28c80f of _0x2470cd)_0x28c80f['sort']((_0x5ea407,_0x3f408c)=>_0x5ea407['id']<_0x3f408c['id']?-0x1:0x1);}());for(let _0x57be19=0x0;_0x57be19<_0x2470cd['length'];_0x57be19++){if(0x0==_0x2470cd[_0x57be19]['length'])continue;const _0x1ce351=[];for(let _0x22cb67=_0x57be19+0x1;_0x22cb67<_0x2470cd['length'];_0x22cb67++)0x0!=_0x2470cd[_0x22cb67]['length']&&_0x2bf694(_0x2470cd[_0x57be19],_0x2470cd[_0x22cb67])&&_0x1ce351['push'](_0x22cb67);for(const _0x25f091 of _0x1ce351)_0x2470cd[_0x57be19]=_0x2470cd[_0x57be19]['concat'](_0x2470cd[_0x25f091]),_0x2470cd[_0x25f091]=[];}for(const _0x935e11 of _0x2470cd)for(let _0x4a8206=0x0;_0x4a8206<_0x935e11['length'];_0x4a8206++){const _0x2475de=_0x935e11[_0x4a8206+0x1]||null;_0x935e11[_0x4a8206]['next']!==_0x2475de&&(_0x935e11[_0x4a8206]['next']=_0x2475de);}for(const _0x22bc54 of _0x2470cd)for(let _0x165b66=0x0;_0x165b66<_0x22bc54['length'];_0x165b66++){const _0x896ca1=_0x22bc54[_0x165b66-0x1]||null;_0x22bc54[_0x165b66]['previous']!==_0x896ca1&&(_0x22bc54[_0x165b66]['previous']=_0x896ca1);}function _0x2bf694(_0x1f8504,_0x40be7b){if(_0x1f8504[0x0]['attributes']['groupId']!==_0x40be7b[0x0]['attributes']['groupId']&&_0x1f8504[0x0]['author']!==_0x40be7b[0x0]['author'])return!0x1;if(!function(_0x3200d2,_0x50e2e7){if(!_0x3200d2['hasComments']&&!_0x50e2e7['hasComments'])return!0x0;if(_0x3200d2['hasComments']&&_0x50e2e7['hasComments'])return!0x1;if(_0x3200d2['hasComments']&&_0x50e2e7['createdAt']<_0x3200d2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x50e2e7['hasComments']&&_0x3200d2['createdAt']<_0x50e2e7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1f8504[0x0],_0x40be7b[0x0]))return!0x1;const _0x4c73cd=Ut(_0x1f8504[0x0]['attributes'],['groupId','trackingSessionId']),_0x82a3e2=Ut(_0x40be7b[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x50425d(_0x4c73cd,_0x82a3e2))return!0x1;if(_0x1f8504[0x0]['attributes']['groupId']==_0x40be7b[0x0]['attributes']['groupId'])return!0x0;if(_0x1f8504[0x0]['attributes']['trackingSessionId']!==_0x40be7b[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1f8504['every'](_0x42c1ab=>_0x40be7b['some'](_0x5dd48f=>_0x42c1ab['getFirstRange']()['isEqual'](_0x5dd48f['getFirstRange']())))&&_0x40be7b['every'](_0x414bea=>_0x1f8504['some'](_0x496779=>_0x414bea['getFirstRange']()['isEqual'](_0x496779['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x228329){const _0x228253=Array['from'](_0x228329),_0xcb7e17=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4e1066=_0xcb7e17['filter'](_0x434f83=>!_0x228329['has'](_0x434f83)),_0x146690=new Map(_0x228253['map'](_0x1e5ce5=>[_0x1e5ce5,this['_suggestionFactory']['getSuggestionCallback'](_0x1e5ce5['type'],_0x1e5ce5['subType'],'join')])),_0x4e9a02=new Map(_0xcb7e17['map'](_0x4ccdf8=>[_0x4ccdf8,_0x4ccdf8['getRanges']()]));for(let _0x24702d=0x0;_0x24702d<_0x228253['length'];_0x24702d++){if(_0x2ecf16(this,_0x228253[_0x24702d],_0x228253,_0x24702d+0x1))return!0x0;}for(let _0xacbab9=0x0;_0xacbab9<_0x228253['length'];_0xacbab9++){if(_0x2ecf16(this,_0x228253[_0xacbab9],_0x4e1066,0x0))return!0x0;}return!0x1;function _0x2ecf16(_0x2d6ebb,_0x17de68,_0x208f14,_0x1db3fe){for(let _0x27856a=_0x1db3fe;_0x27856a<_0x208f14['length'];_0x27856a++){const _0x1680aa=_0x208f14[_0x27856a];if(_0x1680aa['type']!==_0x17de68['type']||_0x1680aa['author']['id']!==_0x17de68['author']['id']||_0x1680aa['subType']!==_0x17de68['subType'])continue;if(!Qt(_0x17de68,_0x1680aa))continue;if('attribute'==_0x17de68['type']&&_0x17de68['data']['oldValue']!=_0x1680aa['data']['oldValue'])continue;if('attribute'==_0x17de68['type']&&_0x2d6ebb['_isBlockAttribute'](_0x17de68['data']['key']))continue;if('formatBlock'==_0x17de68['type']){const _0x4a72bb=_0x2d6ebb['editor']['model'],_0x12c737=_0x17de68['getContainedElement']();if(_0x12c737&&(_0x4a72bb['schema']['isObject'](_0x12c737)||_0x4a72bb['schema']['isLimit'](_0x12c737)))continue;}const _0x1f7ba0=_0x146690['get'](_0x17de68),_0xcdd51a=_0x4e9a02['get'](_0x17de68),_0x28530c=_0x4e9a02['get'](_0x1680aa),_0x475799=_0x17de68['commentThread']&&_0x17de68['commentThread']['length'],_0x3dd960=_0x1680aa['commentThread']&&_0x1680aa['commentThread']['length'];if(!_0x475799&&_0x1f7ba0(_0x28530c,_0xcdd51a))return _0x2d6ebb['_joinSuggestions'](_0x1680aa,_0x17de68),_0x4e9a02['delete'](_0x17de68),!0x0;if(!_0x3dd960&&_0x1f7ba0(_0xcdd51a,_0x28530c))return _0x2d6ebb['_joinSuggestions'](_0x17de68,_0x1680aa),_0x4e9a02['delete'](_0x1680aa),!0x0;}return!0x1;}}['_joinSuggestions'](_0x385540,_0x1d38af){if(_0x385540['isMultiRange']){for(const _0x344996 of _0x1d38af['getRanges']())_0x385540['addRange'](_0x344996);}else{const _0xcb28c4=_0x1d38af['getFirstRange']()['end'];this['_setSuggestionRange'](_0x385540,this['_model']['createRange'](_0x385540['getFirstRange']()['start'],_0xcb28c4));}_0x1d38af['removeMarkers']();}['_getMarkerAnnouncementText'](_0x289518,_0x50e140,_0xb49cd7){const _0xe702eb=_0x289518['startsWith']('format')||_0x289518['startsWith']('attribute')?'FORMATTING':_0x289518['toUpperCase']();return o(this['editor']['locale'],_0x50e140+'_'+_0xe702eb+'_SUGGESTION_ANNOUNCEMENT',_0xb49cd7);}['_initAriaMarkerChangeAnnouncements'](){const _0x3bc31e=this['editor'];if(!_0x3bc31e['ui'])return;const {ariaLiveAnnouncer:_0x40becd}=_0x3bc31e['ui'];_0x599458(this['_model'],({left:_0x199f04,entered:_0x109925})=>{for(const _0x3b5019 of _0x199f04){const {group:_0x17b3ca,type:_0x4e517a}=this['_splitMarkerName'](_0x3b5019['name']);if('suggestion'===_0x17b3ca){_0x40becd['announce'](this['_getMarkerAnnouncementText'](_0x4e517a,'LEAVE'));break;}}for(const _0xcbf164 of _0x109925){const {group:_0x133170,type:_0x3867ba}=this['_splitMarkerName'](_0xcbf164['name']);if('suggestion'===_0x133170){_0x40becd['announce'](this['_getMarkerAnnouncementText'](_0x3867ba,'ENTER',_0x2ee597(_0x4f2c95)));break;}}});}['_processAttributeChanges'](_0x4288bf){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2a84b0=this['editor'],_0x382fae=_0x2a84b0['model']['document']['differ']['getChanges']();if(0x0==_0x382fae['length'])return!0x1;const _0x1654a5=[],_0x21075d=_0x382fae['filter'](_0x5e410b=>'attribute'==_0x5e410b['type']),_0x5778fb=_0x382fae['filter'](_0x1e04d1=>'insert'==_0x1e04d1['type']&&'$text'!=_0x1e04d1['name']),_0x2e8dee=_0x382fae['filter'](_0x4a8b29=>'remove'==_0x4a8b29['type']&&'$text'!=_0x4a8b29['name']);for(const _0x418667 of _0x21075d)_0x1654a5['push']({'key':_0x418667['attributeKey'],'newValue':_0x418667['attributeNewValue'],'oldValue':_0x418667['attributeOldValue'],'range':qt(_0x418667['range'],_0x2a84b0['model'])});for(const _0x38d4cc of _0x5778fb){const _0x3b17be=_0x2e8dee['find'](_0x2e885a=>_0x2e885a['position']['isEqual'](_0x38d4cc['position']));_0x3b17be&&_0x1654a5['push']({'key':m,'newValue':_0x38d4cc['name'],'oldValue':_0x3b17be['name'],'range':_0x2a84b0['model']['createRangeOn'](_0x38d4cc['position']['nodeAfter'])});}return 0x0!=_0x1654a5['length']&&this['_reduceExistingSuggestions'](_0x4288bf,_0x1654a5);}['_processAttributeSuggestions'](_0x1b6bbc){let _0x40c90d=!0x1;const _0x53224e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x205594=>_0x205594['data']['newRange']&&_0x205594['name']['startsWith']('suggestion:attribute:'));for(const _0x35900e of _0x53224e){const {subType:_0x688ad6,id:_0x403a44}=this['_splitMarkerName'](_0x35900e['name']),_0x562b21=_0x688ad6['split']('|')[0x0];for(const _0x58697c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x58697c['id']!=_0x403a44&&'attribute'==_0x58697c['type']&&_0x58697c['data']&&_0x58697c['data']['key']==_0x562b21&&_0x58697c['getFirstRange']()['isIntersecting'](_0x35900e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x58697c,_0x35900e['data']['newRange'],_0x1b6bbc),_0x40c90d=!0x0);}return _0x40c90d;}['recordAttributeChanges'](_0x9b2574){this['_recordAttributeSuggestions']=!0x0,_0x9b2574();}['_isRegisteredAttribute'](_0x3d251f){const _0x395e12=this['_isBlockAttribute'](_0x3d251f),_0x305660=this['_isInlineAttribute'](_0x3d251f);return _0x395e12||_0x305660;}['_reduceExistingSuggestions'](_0x38d50a,_0x3afa78){if(0x0==_0x3afa78['length'])return!0x1;let _0x4a605c=!0x1;for(const _0x4b6e43 of _0x3afa78){const _0xe5e3af=this['_findSuggestions'](_0x4b6e43['range'],'attribute')['filter'](_0x5620ce=>!_0x5620ce['meta']['isNextTo'])['map'](_0x1f2d36=>_0x1f2d36['suggestion']),_0x170034=_0x421d24({'newValue':_0x4b6e43['newValue']});_0xe5e3af['filter'](_0x5c2a9=>{const [_0x3e62ad,_0x32cb0b]=_0x5c2a9['subType']['split']('|');return _0x3e62ad==_0x4b6e43['key']&&_0x32cb0b!=_0x170034;})['forEach'](_0x5e7446=>{this['_reduceSuggestionAttributeRange'](_0x5e7446,_0x4b6e43['range'],_0x38d50a),_0x4a605c=!0x0;});}return _0x4a605c;}['_reduceSuggestionAttributeRange'](_0x48016b,_0x595b8b,_0x1003df){const _0x5db0e6=_0x48016b['getFirstRange']()['getDifference'](_0x595b8b);0x0!==_0x5db0e6['length']?0x1!==_0x5db0e6['length']?this['_breakSuggestionMarker'](_0x48016b,_0x595b8b['start'],_0x595b8b['end']):this['_setSuggestionRange'](_0x48016b,_0x5db0e6[0x0]):_0x1003df['removeMarker'](_0x48016b['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5b656f){this['_editor']=_0x5b656f,this['_model']=_0x5b656f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4d1612,_0x3b6edb,_0x506e14,_0x2c06f1,_0x3248fe,_0x428b1c,_0x20e961){return new T(this['_model'],{'type':_0x4d1612,'subType':_0x3b6edb,'id':_0x506e14,'originalSuggestionId':_0x20e961,'author':_0x2c06f1,'creator':_0x2c06f1,'attributes':_0x3248fe,'onAttributesChange':_0x428b1c,'onAccept':(..._0x4be0a5)=>this['getSuggestionCallback'](_0x4d1612,_0x3b6edb,'accept')(..._0x4be0a5),'onDiscard':(..._0x4469f6)=>this['getSuggestionCallback'](_0x4d1612,_0x3b6edb,'discard')(..._0x4469f6)});}['registerCustomCallback'](_0x3f6ef6,_0x49b165,_0x10e93b,_0x1df354){const _0x510c39=_0x3f6ef6+':'+_0x49b165+':'+_0x10e93b;this['_customCallbacks']['set'](_0x510c39,_0x1df354);}['getSuggestionCallback'](_0x4eca86,_0x544d9e,_0x1e8f1f){const _0x32c959=_0x4eca86+':'+_0x544d9e+':'+_0x1e8f1f;return this['_customCallbacks']['get'](_0x32c959)||this['_defaultCallbacks']['get'](_0x4eca86+':'+_0x1e8f1f);}['_registerDefaultCallbacks'](){const _0x198386=()=>!0x1,_0x3ef31e=_0x36a2de=>{_0x36a2de['sort']((_0x62374,_0x28aa23)=>_0x62374['start']['isBefore'](_0x28aa23['start'])?0x1:-0x1),this['_model']['change'](_0x49f0bd=>{for(const _0x376e96 of _0x36a2de){let _0x198147;_0x198147=_0x376e96['end']['isAtEnd']&&_0x376e96['end']['parent']==_0x376e96['start']['nodeAfter']?_0x49f0bd['createSelection'](_0x376e96['start']['nodeAfter'],'on'):_0x49f0bd['createSelection'](_0x376e96),this['_model']['deleteContent'](_0x198147,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x83d963=(_0x43072a,_0x3a2b0c)=>{_0x3a2b0c&&this['_model']['change'](_0x2e2d8f=>{const {commandName:_0x2d3eab,commandParams:_0x542459=[]}=_0x3a2b0c,_0x339f04=_0x43072a['map'](_0x386a51=>(Pt(_0x386a51)&&(_0x386a51=this['_model']['createRange'](_0x386a51['end'])),_0x386a51))['filter'](_0x229f41=>'$graveyard'!==_0x229f41['root']['rootName']);if(_0x339f04['length']<0x1)return;const _0x57010e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x192c90=>_0x51ea19['fromRange'](_0x192c90));_0x2e2d8f['setSelection'](_0x339f04);for(const _0x499162 of this['_editor']['commands']['commands']())_0x499162['refresh']();_0x542459['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2d3eab,..._0x542459);const _0x53dd8b=_0x57010e['filter'](_0x560928=>'$graveyard'!=_0x560928['root']['rootName']);_0x53dd8b['length']>0x0&&_0x2e2d8f['setSelection'](_0x53dd8b);for(const _0x2a6b21 of _0x57010e)_0x2a6b21['detach']();});},_0x1beef7=(_0x51e6ee,_0x442631)=>0x1==_0x51e6ee['length']&&0x1==_0x442631['length']&&_0x51e6ee[0x0]['end']['isEqual'](_0x442631[0x0]['start']),_0x50f74e=(_0x3adad8,_0xde50c0,_0x467d26,_0x23a5ed)=>Wt(_0x3adad8,_0xde50c0,_0x467d26,_0x23a5ed)?[_0x3adad8,_0xde50c0]:Wt(_0xde50c0,_0x3adad8,_0x23a5ed,_0x467d26)?[_0xde50c0,_0x3adad8]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x198386),this['_defaultCallbacks']['set']('insertion:discard',_0x3ef31e),this['_defaultCallbacks']['set']('insertion:join',_0x1beef7),this['_defaultCallbacks']['set']('insertion:chain',_0x50f74e),this['_defaultCallbacks']['set']('deletion:accept',_0x3ef31e),this['_defaultCallbacks']['set']('deletion:discard',_0x198386),this['_defaultCallbacks']['set']('deletion:join',_0x1beef7),this['_defaultCallbacks']['set']('deletion:chain',_0x50f74e),this['_defaultCallbacks']['set']('formatInline:accept',_0x83d963),this['_defaultCallbacks']['set']('formatInline:discard',_0x198386),this['_defaultCallbacks']['set']('formatInline:join',_0x1beef7),this['_defaultCallbacks']['set']('formatInline:chain',_0x198386),this['_defaultCallbacks']['set']('formatBlock:accept',_0x83d963),this['_defaultCallbacks']['set']('formatBlock:discard',_0x198386),this['_defaultCallbacks']['set']('formatBlock:join',_0x1beef7),this['_defaultCallbacks']['set']('formatBlock:chain',_0x198386),this['_defaultCallbacks']['set']('attribute:accept',_0x198386),this['_defaultCallbacks']['set']('attribute:discard',(_0x22cd61,_0x49f816)=>{if(!_0x49f816)return;const _0x257bc6=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x34714f=>{if(_0x49f816['key']==m)for(const _0x4395cf of _0x22cd61){const _0x18df09=_0x4395cf['start']['nodeAfter'],_0x2e3436=_0x49f816['oldValue'];_0x34714f['rename'](_0x18df09,_0x2e3436);}else{if(_0x257bc6['_isBlockAttribute'](_0x49f816['key'])){for(const _0x2af420 of _0x22cd61)void 0x0!==_0x49f816['oldValue']?_0x34714f['setAttribute'](_0x49f816['key'],_0x49f816['oldValue'],_0x2af420['start']['nodeAfter']):_0x34714f['removeAttribute'](_0x49f816['key'],_0x2af420['start']['nodeAfter']);}else{for(const _0x4be4c5 of _0x22cd61)_0x49f816['oldValue']?_0x34714f['setAttribute'](_0x49f816['key'],_0x49f816['oldValue'],_0x4be4c5):_0x34714f['removeAttribute'](_0x49f816['key'],_0x4be4c5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1beef7);}}function Ft(_0x36da23,_0x33f5c5,_0x9b8933){for(const _0x379eeb of _0x33f5c5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x379eeb['root']==_0x379eeb)return!0x1;if(!_0x9b8933['containsItem'](_0x379eeb))return!0x1;if(_0x36da23['isObject'](_0x379eeb)||_0x36da23['isLimit'](_0x379eeb))return!0x0;}return!0x1;}function Pt(_0x3385dc){return _0x3385dc['end']['parent']==_0x3385dc['start']['nodeAfter']&&_0x3385dc['end']['isAtStart'];}function Gt(_0x2fe36a,_0x57e427,_0x526d2,_0x2ac650){const _0x43f56d=_0x24f7d5=>!_0x24f7d5['item']['is']('$textProxy')&&!_0x2ac650['isObject'](_0x24f7d5['item']),_0xb7caeb=_0x2fe36a['start']['getLastMatchingPosition'](_0x43f56d),_0x4934c1=_0x2fe36a['end']['getLastMatchingPosition'](_0x43f56d,{'direction':'backward'});return(!_0x2fe36a['start']['isEqual'](_0xb7caeb)||!_0x2fe36a['end']['isEqual'](_0x4934c1))&&(_0xb7caeb['isBefore'](_0x4934c1)?_0x526d2['updateMarker'](_0x57e427,{'range':_0x526d2['createRange'](_0xb7caeb,_0x4934c1)}):_0x526d2['removeMarker'](_0x57e427),!0x0);}function Lt(_0x55c9be){return _0x421d24(_0x55c9be);}function Jt(_0x45228a){const _0x39d485=_0x45228a['start']['nodeAfter'];return _0x39d485&&_0x39d485['is']('element');}function Kt(_0x27e0f8){return Pt(_0x27e0f8)||function(_0x219785){return _0x219785['start']['parent']==_0x219785['end']['nodeBefore']&&_0x219785['start']['isAtEnd'];}(_0x27e0f8);}function Ht(_0x382f14,_0x31ac2b){try{const _0x429af0=_0x382f14['getRange']();for(const _0x2223bd of _0x31ac2b)if(_0x382f14!==_0x2223bd&&_0x429af0&&_0x429af0['isIntersecting'](_0x2223bd['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x8635c4,_0x4a4cdd){return null==_0x8635c4['end']['nodeBefore']&&_0x8635c4['end']['parent']==_0x8635c4['start']['nodeAfter']?zt(_0x8635c4['start']['nodeAfter'],_0x4a4cdd):_0x8635c4;}function zt(_0x3e6dec,_0x334052){const _0x23fb65=_0x334052['schema']['isObject'](_0x3e6dec)||_0x334052['schema']['isSelectable'](_0x3e6dec);return _0x334052['createRange'](_0x334052['createPositionAt'](_0x3e6dec,'before'),_0x23fb65?_0x334052['createPositionAfter'](_0x3e6dec):_0x334052['createPositionAt'](_0x3e6dec,'end'));}function Wt(_0x328747,_0x23c2de,_0x3d6c84,_0x4de01c){return!!Qt(_0x328747,_0x23c2de)&&_0x3d6c84['end']['isEqual'](_0x4de01c['start']);}function Qt(_0x3f262e,_0x3fc791){if(!_0x3f262e['_isDataLoaded']||!_0x3fc791['_isDataLoaded'])return!0x1;const _0x2aef7d=new Set(Object['keys'](_0x3f262e['attributes'])),_0x60dd3f=new Set(Object['keys'](_0x3fc791['attributes']));if(_0x2aef7d['delete']('groupId'),_0x60dd3f['delete']('groupId'),0x0==_0x2aef7d['size']&&0x0==_0x60dd3f['size'])return!0x0;if(_0x2aef7d['size']!=_0x60dd3f['size'])return!0x1;const _0x1639f9={..._0x3f262e['attributes']},_0x232d9a={..._0x3fc791['attributes']};return delete _0x1639f9['groupId'],delete _0x232d9a['groupId'],JSON['stringify'](_0x1639f9)==JSON['stringify'](_0x232d9a);}function Xt(_0x165f57,_0x4cd16b){const _0x4b9d3c=Yt(_0x165f57['attributes']),_0x507ffa=Yt(_0x4cd16b);if(!_0x165f57['_isDataLoaded'])return!0x1;for(const _0xfa9878 of Object['keys'](_0x507ffa))if(!_0x50425d(_0x4b9d3c[_0xfa9878],_0x507ffa[_0xfa9878]))return!0x1;return!0x0;}function Yt(_0x5cb9f0){const _0x4074c0=Object['assign']({},_0x5cb9f0);return delete _0x4074c0['skipNestingCheck'],delete _0x4074c0['tablePasteChainId'],_0x4074c0;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x4e23fc(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3b6088,_0x1d8377,_0x32eca2,_0x4fad5e){super(),this['model']=_0x1d8377,this['view']=_0x32eca2,this['commentThreadController']=_0x4fad5e,this['_editor']=_0x3b6088,this['_acceptCommand']=_0x3b6088['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3b6088['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x40b204,_0x5a4102)=>_0x40b204||_0x5a4102),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x43d69e=>_0x43d69e&&this['_editor']['model']['canEditAt'](_0x1d8377['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5db80b=>_0x5db80b&&this['_editor']['model']['canEditAt'](_0x1d8377['getRanges']())),this['_pendingAction']=null,_0x32eca2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x32eca2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x32eca2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x32eca2,'change:isDirty',()=>{_0x32eca2['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 _0x1406bd=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1406bd);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x5f0f48{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4d39ca,_0x32c1a0,_0xf5d436,_0x2d7afb){super(_0x4d39ca),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x28eb53(_0x4d39ca,o(_0x4d39ca,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x32c1a0['authoredAt']),this['bind']('authoredAt')['to'](_0x32c1a0),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',_0x32c1a0,'authoredAt',this,'descriptionParts',(_0x13c5ae,_0x4869c0,_0x822b2b)=>{const _0x3b5eb4=_0x822b2b['map'](_0x458817=>ls(_0x458817['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x13c5ae-0x1,_0x32c1a0['author']['name'],_0x4869c0?_0x2d7afb['formatDateTime'](_0x4869c0):'',new DOMParser()['parseFromString'](_0x3b5eb4,'text/html')['body']['textContent']]);}),this['focusables']=new _0x212aff(),this['focusTracker']=new _0x3dc571(),this['keystrokes']=new _0xf9590d(),this['focusCycler']=new _0x1b12e5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x76080e=>_0x76080e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x32c1a0,this['_localUser']=_0xf5d436,this['_config']=_0x2d7afb,_0x2d7afb['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x359702(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x545cb3}=this['_config'];this['commentsListView']=new _0x545cb3(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',_0x1531a0=>_0x1531a0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3250f7,_0x1651e8)=>_0x3250f7||!!_0x1651e8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x391ad5}=this['_config'],_0xcf307a=new _0x391ad5(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4deb6d=_0xcf307a['commentInputView'];return _0xcf307a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4deb6d,'value',(_0x9e4655,_0x3a2394,_0x14ddea)=>!!_0x14ddea||_0x9e4655&&!_0x3a2394),_0x4deb6d['on']('submit',(_0x5d9cd9,_0x32bf7a)=>{this['fire']('addComment',_0x32bf7a),_0x4deb6d['editor']['setData']('');}),_0x4deb6d['on']('cancel',()=>this['focus']()),_0x4deb6d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xcf307a;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x3f0f67,_0x39759b,_0x403e75,_0x3f0024){super(_0x3f0f67,_0x39759b,_0x403e75,_0x3f0024),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x12ff99=>_0x12ff99&&_0x12ff99[0x0]?_0x12ff99[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x255697,_0x463809)=>{let _0x138a16='';for(const _0x20a9d0 of _0x255697)_0x138a16+='<p>'+ls(_0x20a9d0['content'],_0x20a9d0['color'])+'</p>';return _0x463809?_0x138a16:_0x4008f3(_0x138a16,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3f0024['SuggestionView'](_0x3f0f67,_0x39759b,{'formatDateTime':_0x3f0024['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 _0x47ac9a=this['bindTemplate'],_0x596cf4=[this['suggestionView']];return this['commentsListView']&&_0x596cf4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x596cf4['push'](this['commentThreadInputView']),_0x596cf4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x47ac9a['if']('isActive','ck-suggestion-wrapper--active'),_0x47ac9a['to']('type',_0x2e2ba5=>'ck-suggestion-'+_0x2e2ba5),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':_0x47ac9a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x596cf4};}['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 _0x5f0f48{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x15a91d,_0x509cee,_0x5ae09f){super(_0x15a91d),this['_model']=_0x509cee,this['_config']=_0x5ae09f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x509cee),this['acceptButton']=this['_createButton'](o(_0x15a91d,'Accept\x20suggestion'),_0x416caf,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x15a91d,'Discard\x20suggestion'),_0x34fbc3,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x19cd45(_0x15a91d,_0x509cee['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x212aff([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3dc571(),this['keystrokes']=new _0xf9590d(),this['focusCycler']=new _0x1b12e5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5a76b5=>_0x5a76b5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1e7f00=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1e7f00['innerHTML']=this['description'],this['on']('change:description',(_0x1a1a9c,_0x4adc66,_0x390af5)=>{_0x1e7f00['innerHTML']=_0x390af5;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2031f3=this['bindTemplate'],_0x4c1dfd=[{'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':_0x2031f3['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2031f3['to']('authoredAt',_0x4c3b80=>this['_config']['formatDateTime'](_0x4c3b80))}]}]},{'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']&&_0x4c1dfd['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':_0x4c1dfd}]};}['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'](_0x3068d8,_0x490768,_0x5b128a,_0x4a5571,_0x3703e9){const _0x35ad19=new _0x56ba04(this['locale']);return _0x35ad19['set']({'label':_0x3068d8,'icon':_0x490768,'tooltip':!0x0,'tooltipPosition':_0x3703e9}),_0x35ad19['extendTemplate']({'attributes':{'class':_0x5b128a}}),_0x35ad19['on']('execute',()=>{this['fire'](_0x4a5571,this['_model']['id']);}),_0x35ad19;}['_setupKeyboardNavigation'](){const _0x2f3fb0=this['element'];this['keystrokes']['listenTo'](_0x2f3fb0);for(const _0x514cf6 of this['focusables'])this['focusTracker']['add'](_0x514cf6['element']),this['keystrokes']['listenTo'](_0x514cf6['element']);this['keystrokes']['set']('enter',(_0x3f6bd7,_0xcd973d)=>{_0x2f3fb0===_0x3f6bd7['target']&&(this['focusCycler']['focusFirst'](),_0xcd973d());}),this['keystrokes']['set']('esc',(_0xdf8f92,_0x1d98dd)=>{_0x2f3fb0!==_0xdf8f92['target']&&(this['focus'](),_0x1d98dd());});}}class u extends _0xc3381c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x187485,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x464edd){super(_0x464edd),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3d2d04=this['editor']['config'];_0x3d2d04['define']('trackChanges.SuggestionThreadView',fe),_0x3d2d04['define']('trackChanges.SuggestionView',we),_0x3d2d04['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3d2d04['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x40a001,_0x1d9cee){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5d9fbc,_0x5a3c83]of this['_handleControllerBuffer']){const _0x16f21e=this['_suggestionToController']['has'](_0x5d9fbc);_0x16f21e||_0x5a3c83?_0x16f21e&&_0x5a3c83&&this['_destroyController'](_0x5d9fbc):this['_initializeController'](_0x5d9fbc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x40a001,_0x1d9cee);}['init'](){const _0x12399=this['editor'],_0x56ae7c=_0x12399['plugins']['get']('TrackChangesEditing'),_0x1fd35e=_0x12399['plugins']['get']('Annotations'),_0x10ea21=_0x12399['plugins']['get']('EditorAnnotations'),_0x3e293b=_0x12399['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x10ea21['addSourceCollector'](()=>{const _0x47303c=[];for(const [_0x44c4b1,_0x36fbfd]of Array['from'](this['_suggestionToController'])){const _0x5aca50=_0x44c4b1['getAllAdjacentSuggestions'](),_0x44a7f5=[];for(const _0x5def7f of _0x5aca50){if(!_0x5def7f['isInContent'])continue;if(_0x5def7f['isMultiRange']){_0x44a7f5['push'](..._0x5def7f['getRanges']());continue;}const _0x4862fc=_0x5def7f['getFirstRange']();if(_0x44a7f5['length']>0x0){const _0x5b1e1c=_0x44a7f5[0x0]['getJoined'](_0x4862fc);if(_0x5b1e1c){_0x44a7f5[0x0]=_0x5b1e1c;continue;}}_0x44a7f5['push'](_0x4862fc);}_0x47303c['push']([_0x36fbfd['view'],_0x44a7f5]);}return _0x47303c;}),this['listenTo'](_0x56ae7c,'suggestionLoaded',(_0x2d7ad5,_0x535cbf)=>{this['listenTo'](_0x535cbf,'change:previous',(_0x4dc8ee,_0x537782,_0x34b453,_0x27aea5)=>{_0x535cbf['isInContent']&&(null==_0x34b453?(this['_updateController'](_0x27aea5['head']),this['_handleSuggestionControllerDelayed'](_0x535cbf,!0x1)):(this['_updateController'](_0x34b453['head']),null==_0x27aea5&&this['_handleSuggestionControllerDelayed'](_0x535cbf,!0x0)));}),null!==_0x535cbf['previous']?this['_updateController'](_0x535cbf['head']):this['_handleSuggestionControllerDelayed'](_0x535cbf,!0x1);}),this['listenTo'](_0x56ae7c,'suggestionUnloaded',(_0x4a129c,_0x161d69,_0x3b8ed4)=>{this['stopListening'](_0x161d69,'change:previous'),this['_handleControllerBuffer']['delete'](_0x161d69),this['_suggestionToController']['has'](_0x161d69)&&this['_destroyController'](_0x161d69),_0x3b8ed4&&this['_updateController'](_0x3b8ed4['head']);}),this['listenTo'](_0x56ae7c,'suggestionChanged',(_0xbf5a85,_0x13f32e)=>{this['_updateController'](_0x13f32e);}),this['listenTo'](_0x1fd35e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3e293b,'addComment',(_0x5f5d3e,{threadId:_0x4c6b3e,isFromAdapter:_0x19d1bb})=>{if(_0x19d1bb||!_0x56ae7c['hasSuggestion'](_0x4c6b3e))return;const _0xb0fb48=_0x56ae7c['getSuggestion'](_0x4c6b3e);this['_suggestionToController']['get'](_0xb0fb48)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x146512=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x206d4d;for(const _0x4ee499 in _0x146512){const _0x1a94b9=_0x4ee499,_0x1ce436=_0x146512[_0x1a94b9];if('trackChangesLicenseKeyValid'==_0x1ce436||'trackChangesLicenseKeyInvalid'==_0x1ce436||'trackChangesLicenseKeyExpired'==_0x1ce436||'trackChangesLicenseKeyDomainLimit'==_0x1ce436||'trackChangesLicenseKeyNotAllowed'==_0x1ce436||'trackChangesLicenseKeyEvaluationLimit'==_0x1ce436||'trackChangesLicenseKeyTrialLimit'==_0x1ce436||'trackChangesLicenseKeyUsageLimit'==_0x1ce436){delete _0x146512[_0x1a94b9],_0x206d4d=_0x1ce436,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x206d4d&&_0x146512['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x206d4d&&_0x146512['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x206d4d&&_0x146512['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x206d4d&&_0x146512['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x206d4d&&_0x146512['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x206d4d&&_0x146512['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x206d4d&&_0x146512['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3b5633){const _0x27197a=this['_suggestionToController']['get'](_0x3b5633);if(!_0x27197a)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x27197a['view'])||null;}['getSuggestionForAnnotation'](_0x2f6a41){const _0x34f511=this['_viewToController']['get'](_0x2f6a41['innerView']);return _0x34f511?_0x34f511['model']:null;}['_refreshActiveMarkers'](){const _0x393de6=this['editor']['plugins']['get']('Annotations'),_0x17a254=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22a43b=Array['from'](_0x393de6['activeAnnotations'],_0x1c531e=>_0x1c531e['innerView'])['filter'](_0x45655e=>this['_viewToController']['has'](_0x45655e)),_0xb5db24=[];for(const _0x57d167 of _0x22a43b){const _0x1ce5c0=this['_viewToController']['get'](_0x57d167)['model']['getAllAdjacentSuggestions']();_0xb5db24['push'](..._0x1ce5c0['reduce']((_0x4a85bb,_0xa88f63)=>[..._0x4a85bb,..._0xa88f63['getMarkerNames']()],[]));}_0x17a254['activeMarkers']=_0xb5db24;}['_addUIComponentsToFactory'](){const _0x467cbf=this['editor'],_0xaa9a09=_0x467cbf['locale'],_0x14bc88=o(_0xaa9a09,'Track\x20changes'),_0x2e3531=new _0x364833([{'type':'switchbutton','model':new _0x27d310({'withText':!0x0,'isToggleable':!0x0,'label':_0x14bc88,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x27d310({'withText':!0x0,'label':o(_0xaa9a09,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x27d310({'withText':!0x0,'label':o(_0xaa9a09,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x27d310({'withText':!0x0,'label':o(_0xaa9a09,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x27d310({'withText':!0x0,'label':o(_0xaa9a09,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x467cbf['plugins']['has']('TrackChangesPreview')&&_0x2e3531['addMany']([{'type':'separator'},{'type':'button','model':new _0x27d310({'withText':!0x0,'label':o(_0xaa9a09,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x181a72 of _0x2e3531)if(ke(_0x181a72)){const _0x3585fb=_0x467cbf['commands']['get'](_0x181a72['model']['commandName']);_0x181a72['model']['bind']('isOn','isEnabled')['to'](_0x3585fb,'value','isEnabled');}_0x467cbf['ui']['componentFactory']['add']('trackChanges',_0x2e0a55=>this['_createToolbarButton'](_0x2e0a55,_0x2e3531,_0x14bc88)),_0x467cbf['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5a0676=>this['_createMenuBarMenu'](_0x5a0676,_0x2e3531,_0x14bc88));}['_createToolbarButton'](_0x5a3500,_0x5bc159,_0x403e2e){const _0x280932=_0x2a1174(_0x5a3500,_0x182c12),_0x15dfcc=this['editor']['commands']['get']('trackChanges');_0x280932['buttonView']['set']({'tooltip':_0x403e2e,'label':_0x403e2e,'icon':_0x3e8ec7}),_0x280932['buttonView']['bind']('isOn')['to'](_0x15dfcc,'value'),_0x280932['buttonView']['on']('execute',()=>{_0x15dfcc['execute'](),this['editor']['editing']['view']['focus']();}),_0xf9d567(_0x280932,_0x5bc159,{'role':'menu'});const _0x2ac0c3=[];for(const _0x5ec7a2 of _0x5bc159)ke(_0x5ec7a2)&&_0x2ac0c3['push'](this['editor']['commands']['get'](_0x5ec7a2['model']['commandName']));const _0x5052a7=_0x280932['buttonView'];return _0x5052a7['actionView']['unbind']('isEnabled'),_0x5052a7['arrowView']['unbind']('isEnabled'),_0x5052a7['actionView']['bind']('isEnabled')['to'](_0x15dfcc,'isEnabled'),_0x5052a7['arrowView']['bind']('isEnabled')['toMany'](_0x2ac0c3,'isEnabled',(..._0x3292af)=>_0x3292af['some'](_0xeda63b=>_0xeda63b)),_0x280932['on']('execute',_0x2986f4=>{this['editor']['execute'](_0x2986f4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x280932;}['_createMenuBarMenu'](_0xf4c768,_0x15c492,_0x78bc7){const _0x4ca1e0=new _0x422518(_0xf4c768),_0x4dffed=this['editor']['commands']['get']('trackChanges');_0x4ca1e0['buttonView']['set']({'label':_0x78bc7,'icon':_0x3e8ec7});const _0x1d521b=new _0x393953(_0xf4c768);for(const _0x2a3da9 of _0x15c492){if('separator'==_0x2a3da9['type']){_0x1d521b['items']['add'](new _0x4d71e8(_0xf4c768));continue;}const _0x4f3177=new _0xfff36b(_0xf4c768,_0x4ca1e0),_0x493a4a=new _0x38b565(_0xf4c768),_0x320404=_0x2a3da9['model'];_0x493a4a['bind'](...Object['keys'](_0x320404))['to'](_0x320404),_0x493a4a['delegate']('execute')['to'](_0x4ca1e0),_0x493a4a['on']('execute',()=>{this['editor']['execute'](_0x320404['commandName']),this['editor']['editing']['view']['focus']();}),_0x4f3177['children']['add'](_0x493a4a),_0x1d521b['items']['add'](_0x4f3177);}return _0x4ca1e0['bind']('isEnabled')['to'](_0x4dffed,'isEnabled'),_0x4ca1e0['panelView']['children']['add'](_0x1d521b),_0x4ca1e0;}['_initializeController'](_0x1746f1){const _0x3454d7=this['editor'],_0x2de12d=_0x3454d7['config'],_0x5f5578=_0x3454d7['plugins']['get']('Annotations'),_0x40b932=_0x3454d7['plugins']['get']('CommentsRepository'),_0x459dec=_0x3454d7['plugins']['get']('EditorAnnotations'),_0x50cee3=_0x3454d7['plugins']['get'](_0x187485)['me'],_0x5ac05e=_0x2de12d['get']('trackChanges')['SuggestionThreadView'],_0x273c05=_0x2de12d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1554a8,CommentThreadInputView:_0x359b6d}=_0x3454d7['plugins']['get']('CommentsUI');let _0x2210e3,_0xf335e5,_0x50b1c7;this['_annotationViews']['has'](_0x1746f1['id'])?(_0xf335e5=this['_annotationViews']['get'](_0x1746f1['id']),_0x2210e3=_0xf335e5['mainView']):(_0x2210e3=new _0x5ac05e(_0x3454d7['locale'],_0x1746f1,_0x50cee3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2de12d['get']('comments.editorConfig'),'licenseKey':_0x2de12d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2de12d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2de12d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2de12d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x141e15(_0x2de12d['get']('locale'),_0x3454d7['locale']),'CommentView':_0x2de12d['get']('comments')['CommentView'],'CommentsListView':_0x1554a8,'CommentThreadInputView':_0x359b6d,'SuggestionView':_0x273c05}),_0x2210e3['suggestionView']['acceptButton']['on']('execute',()=>{_0x3454d7['editing']['view']['focus']();}),_0x2210e3['suggestionView']['discardButton']['on']('execute',()=>{_0x3454d7['editing']['view']['focus']();}),_0xf335e5=_0x5f5578['createAnnotationView'](this['editor']['locale'],_0x2210e3),_0xf335e5['bind']('isDirty')['to'](_0x2210e3,'isDirty'),_0xf335e5['bind']('length')['to'](_0x2210e3),_0xf335e5['bind']('type')['to'](_0x2210e3,'type',_0x213daa=>'suggestion-'+_0x213daa),_0x2210e3['on']('escape',()=>{_0x50b1c7['fire']('escape');}),this['_annotationViews']['set'](_0x1746f1['id'],_0xf335e5));const _0x28872f=_0x40b932['createCommentThreadController'](_0x1746f1['commentThread'],_0x2210e3),_0x3592e1=new pe(_0x3454d7,_0x1746f1,_0x2210e3,_0x28872f),_0x162182=_0x1746f1['getAllAdjacentSuggestions']()['filter'](_0x33ff2d=>_0x33ff2d['isInContent']);_0x2210e3['descriptionParts']=_0x3454d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x162182),this['_suggestionToController']['set'](_0x1746f1,_0x3592e1),this['_viewToController']['set'](_0x2210e3,_0x3592e1);const _0x224a3f=()=>{const _0x1ad62f=[],_0x6118f6=_0x1746f1['getAllAdjacentSuggestions']()['filter'](_0x3cc13c=>_0x3cc13c['isInContent']);for(const _0x159175 of _0x6118f6)_0x1ad62f['push'](..._0x159175['getMarkers']());return _0x5bcafd(_0x3454d7['editing'],_0x1ad62f);};_0x50b1c7=_0x5f5578['createAnnotation']({'view':_0xf335e5,'target':_0x224a3f,'type':()=>'suggestion-'+_0x3592e1['view']['type'],'isVisible':!!_0x224a3f()}),_0x40b932['_bindAnnotationToEditors'](_0x2210e3,_0x50b1c7),_0x5f5578['add'](_0x50b1c7),_0x459dec['registerAnnotation'](_0x50b1c7);}['_destroyController'](_0x30c95f){const _0x351a09=this['editor']['plugins']['get']('CommentsRepository'),_0x154f78=this['editor']['plugins']['get']('Annotations'),_0x5746ac=this['_suggestionToController']['get'](_0x30c95f),_0x1eda88=_0x5746ac['view'],_0x82cc09=_0x154f78['getByInnerView'](_0x1eda88);_0x351a09['_unbindEditors'](_0x1eda88),_0x82cc09&&_0x154f78['remove'](_0x82cc09),this['_suggestionToController']['delete'](_0x30c95f),this['_viewToController']['delete'](_0x1eda88),_0x5746ac['destroy']();}['_updateController'](_0x5624de){if(!_0x5624de['isInContent']||!this['_suggestionToController']['has'](_0x5624de))return;const _0x5b7be9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f159d=this['_suggestionToController']['get'](_0x5624de),_0x1e6c97=_0x5624de['getAllAdjacentSuggestions']();_0x3f159d['view']['descriptionParts']=_0x5b7be9['descriptionFactory']['getDescriptions'](_0x1e6c97);}['destroy'](){for(const _0x43746d of this['_suggestionToController']['keys']())this['_destroyController'](_0x43746d);for(const _0x213dcb of this['_annotationViews']['values']())_0x213dcb['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2787d7){return'model'in _0x2787d7;}class Fe extends _0xc3381c{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x375f9f){this['editor']['plugins']['get'](d)['adapter']=_0x375f9f;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1004e6){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1004e6);}['getSuggestions']({skipNotAttached:_0x32941b=!0x1,toJSON:_0x42a314=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x32941b,'toJSON':_0x42a314});}['getSuggestion'](_0x3a97f0){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x3a97f0);}}const p=['Pagination'];class re extends _0xc3381c{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x37ba82=this['editor'];if(_0x37ba82['config']['define']('trackChangesData.editorCreator',_0x2fc8fb=>{const _0x49e4ea=_0x37ba82['model']['document']['getRootNames']()['reduce']((_0x3f0625,_0x57882d)=>(_0x3f0625[_0x57882d]='',_0x3f0625),{});return _0x37ba82['constructor']['create'](_0x49e4ea,_0x2fc8fb);}),'function'!=typeof _0x37ba82['config']['get']('trackChangesData')['editorCreator'])throw new _0x50c44a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5a11a7){return P(this['editor'],!0x0,_0x5a11a7);}['getDataWithDiscardedSuggestions'](_0x530061){return P(this['editor'],!0x1,_0x530061);}}class Ge extends _0xc3381c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xaaece){function _0x493d0f(_0x23da58){return _0x23da58['map'](_0x3e52fa=>String['fromCharCode'](_0x3e52fa))['join']('');}super(_0xaaece),this['result']='end',_0xaaece[_0x493d0f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x493d0f([0x76,0x69,0x65,0x77])][_0x493d0f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x493d0f([0x61,0x75,0x74,0x6f]),_0xaaece[_0x493d0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x493d0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x493d0f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x493d0f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x493d0f([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 He(_0x19312e){return void 0x0!==_0x19312e['getRootsAttributes'];}async function P(_0x49dba2,_0x540765,_0x1a725c){const _0xe41802=_0x158091(_0x49dba2,p);_0xe41802['plugins']['push'](d,Ge),_0xe41802['rootsAttributes']=He(_0x49dba2)?_0x49dba2['getRootsAttributes']():void 0x0;const _0x4ca12f=document['createDocumentFragment'](),_0x4794fa=_0x49dba2['config']['get']('trackChangesData')['editorCreator'],_0x3bbdff=await _0x4794fa(_0xe41802,()=>function(_0x54dcb3){const _0x3a4dc8=document['createElement']('div');return _0x54dcb3['appendChild'](_0x3a4dc8),_0x3a4dc8;}(_0x4ca12f));!function(_0x42d1d7,_0x394473){const _0x18e472=_0x42d1d7['model']['document']['getRootNames']()['reduce']((_0x28dc3f,_0x21629a)=>(_0x28dc3f[_0x21629a]=_0x42d1d7['data']['get']({'rootName':_0x21629a}),_0x28dc3f),{}),_0x527340=_0x42d1d7['plugins']['get']('Users')['users']['map'](_0x2a754b=>({'id':_0x2a754b['id'],'name':_0x2a754b['name']})),_0x113c72=_0x42d1d7['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4ec4bb=_0x42d1d7['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xb3037c=_0x394473['plugins']['get']('Users'),_0x1673b4=_0x394473['plugins']['get']('TrackChangesEditing'),_0x1b21d4=_0x394473['plugins']['get']('CommentsRepository');for(const _0x23731a of _0x1b21d4['getCommentThreads']())_0x23731a['remove']();for(const _0x17a8c7 of _0x527340)_0xb3037c['getUser'](_0x17a8c7['id'])||_0xb3037c['addUser'](_0x17a8c7);_0xb3037c['me']||_0xb3037c['useAnonymousUser']();for(const _0x58189a of _0x4ec4bb)_0x1b21d4['addCommentThread'](_0x58189a);for(const _0x4ab767 of _0x113c72)_0x1673b4['addSuggestionData'](_0x4ab767);_0x394473['data']['set'](_0x18e472);}(_0x49dba2,_0x3bbdff),_0x3bbdff['execute'](_0x540765?'acceptAllSuggestions':'discardAllSuggestions');const _0x540c38=He(_0x3bbdff)?_0x3bbdff['getFullData'](_0x1a725c):_0x3bbdff['data']['get'](_0x1a725c);return await _0x3bbdff['destroy'](),_0x540c38;}class Me extends _0x5f0f48{['options'];constructor(_0x1921bc,_0xd17ada){super(_0x1921bc),this['options']=_0xd17ada,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'](_0x2b82de,_0x4a473b){if(!this['element'])return;const _0x542776=[];for(const [_0x46910f,_0x5cd69e]of _0x2b82de){const _0x30d74c=document['createElement']('div');_0x30d74c['setAttribute']('data-ck-root-name',_0x46910f),_0x30d74c['className']=_0x5cd69e['classes']+'\x20ck-track-changes-preview__root-container',_0x30d74c['innerHTML']=_0x5cd69e['content'],_0x542776['push'](_0x30d74c);}_0x4a473b(this['element'],_0x542776),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1de005{constructor(_0x63af6b){super(_0x63af6b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x113c03=this['editor'],_0x11d775=_0x113c03['locale'],_0x4887e1=_0x113c03['plugins']['get']('Dialog');let _0x406fb7;const _0x33af2c=function(_0x371c9b){const _0x5302bc={};if('editables'in _0x371c9b['ui']['view']){for(const [_0x9c8620,_0x54eeff]of Object['entries'](_0x371c9b['ui']['view']['editables']))_0x5302bc[_0x9c8620]=_0x54eeff['element'];}else _0x5302bc[_0x371c9b['model']['document']['getRootNames']()[0x0]]=_0x371c9b['ui']['view']['editable']['element'];return _0x5302bc;}(_0x113c03),_0x33e9b3=function(_0x4d2cbb){let _0x198cdb=0x0;for(const _0x57d58a of Object['values'](_0x4d2cbb))_0x198cdb=Math['max'](_0x198cdb,_0x57d58a['getBoundingClientRect']()['width']);let _0x344f6c=0x0;for(const _0x1a683f of Object['values'](_0x4d2cbb))_0x344f6c+=_0x1a683f['getBoundingClientRect']()['height'];const _0xc9ae57=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x40cf76=Math['min'](_0x344f6c,_0xc9ae57);return{'width':_0x198cdb,'height':_0x40cf76};}(_0x33af2c);_0x4887e1['show']({'id':'finalContentPreview','title':o(_0x11d775,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x11d775,{'dialogRects':_0x33e9b3}),'onHide':()=>{_0x406fb7['detachFromDom']();},'onShow':()=>{_0x113c03['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x556614=>{const _0x2f08e2=this['_standarizeRootsData'](_0x556614,_0x113c03,_0x33af2c);_0x4887e1['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2f08e2,_0x113c03['config']['get']('trackChanges.preview.renderFunction'));}),_0x406fb7=new _0x44ccff(_0x11d775,[_0x4887e1['view']]),_0x406fb7['attachToDom'](),_0x406fb7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x113c03['once']('destroy',()=>{_0x406fb7['detachFromDom']();});const _0x2af744=_0x4887e1['view']['headerView']['class'];_0x4887e1['view']['headerView']['class']=_0x2af744?_0x2af744+'\x20ck-reset_all':'ck-reset_all',_0x4887e1['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4887e1['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4597d7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x592b56=_0x4597d7['previewMode'],_0x38b355={};if('$labels'===_0x592b56){for(const _0x557414 of _0x4597d7['getMergeFieldsIds']())_0x38b355[_0x557414]=_0x4597d7['getLabel'](_0x557414)||_0x557414;}else{const _0x468022='$defaultValues'===_0x592b56?_0x4597d7['getDefaultValues']():_0x4597d7['getDataSetValues'](_0x592b56,!0x0);for(const _0x24aec8 of Object['entries'](_0x468022)){const [_0x1f1ba7,_0x2048be]=_0x24aec8;_0x38b355[_0x1f1ba7]=null!==_0x2048be?_0x2048be:_0x4597d7['getLabel'](_0x1f1ba7)||_0x1f1ba7;}}return{'mergeFieldsData':_0x38b355};}['_standarizeRootsData'](_0x25266b,_0x240585,_0x43ad8b){let _0x34a6fc;if('string'==typeof _0x25266b){const _0x24492d=_0x240585['model']['document']['getRootNames']()[0x0];_0x34a6fc={[_0x24492d]:_0x25266b};}else _0x34a6fc=_0x25266b;const _0x592596=this['_fixMediaEmbeds'](_0x34a6fc,_0x240585),_0x105746=function(_0x580a91,_0x58d7e4){for(const [_0x1b628e,_0x2d45f5]of _0x580a91)_0x2d45f5['classes']=_0x58d7e4[_0x1b628e]['classList']['value']['replace']('ck-focused','');return _0x580a91;}(this['_sortRoots'](_0x240585)['reduce']((_0x47834f,_0x3da519)=>(_0x47834f['push']([_0x3da519,{'content':_0x592596[_0x3da519],'classes':''}]),_0x47834f),[]),_0x43ad8b);return _0x105746;}['_fixMediaEmbeds'](_0x3d9969,_0x5cb4cb){if(!_0x5cb4cb['plugins']['has']('MediaEmbedEditing'))return _0x3d9969;const _0x30d627=_0x5cb4cb['plugins']['get']('MediaEmbedEditing');for(const [_0x20be1a,_0x3c7714]of Object['entries'](_0x3d9969)){const _0x21998e=document['createElement']('div');_0x21998e['innerHTML']=_0x3c7714,(_0x21998e['querySelectorAll']('figure.media')['forEach'](_0x31e969=>{const _0x298175=_0x31e969['querySelector']('oembed');if(_0x298175){const _0x4a2ebe=_0x298175['getAttribute']('url');if(_0x4a2ebe){const _0x8919ac=_0x30d627['registry']['getMediaViewElement'](new _0x42d2ec(_0x5cb4cb['editing']['view']['document']),_0x4a2ebe,{'elementName':'','renderForEditingView':!0x0}),_0xc5dec2=document['createElement']('div');_0xc5dec2['classList']['add']('ck-media__wrapper'),_0x8919ac['render'](_0xc5dec2,_0x5cb4cb['editing']['view']['domConverter']),_0x298175['replaceWith'](_0xc5dec2);}}}),_0x3d9969[_0x20be1a]=_0x21998e['innerHTML']);}return _0x3d9969;}['_sortRoots'](_0x2767c4){if(!function(_0x396b9c){return void 0x0!==_0x396b9c['getRootsAttributes'];}(_0x2767c4))return _0x2767c4['model']['document']['getRootNames']();const _0x38d2ee=[],_0x4341f4=new Map();for(const _0x47958f of _0x2767c4['model']['document']['getRootNames']()){const _0x46bdfc=_0x2767c4['editing']['view']['getDomRoot'](_0x47958f)['getClientRects']()['item'](0x0);_0x38d2ee['push'](_0x47958f),_0x4341f4['set'](_0x47958f,_0x46bdfc);}return _0x38d2ee['sort']((_0x30f9b9,_0xf2c74e)=>{const _0x434735=_0x4341f4['get'](_0x30f9b9),_0xae87f1=_0x4341f4['get'](_0xf2c74e);return _0x434735['y']-_0xae87f1['y']||_0x434735['x']-_0xae87f1['x'];}),_0x38d2ee;}}class $e extends _0xc3381c{static get['requires'](){return[re,_0x3c6ffe];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ff4b1){super(_0x4ff4b1),_0x4ff4b1['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4ff4b1['config']['define']('trackChanges.preview.renderFunction',(_0x527725,_0x5aa378)=>{for(const _0x30ecdf of _0x5aa378)_0x527725['appendChild'](_0x30ecdf);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x3b1c01,Plugin as _0x3d8ee5,PendingActions as _0x3ba53c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1f6b9a,ObservableMixin as _0xd6634d,uid as _0x5b1bcf,priorities as _0x3f788b,insertToPriorityArray as _0x297bde,toArray as _0x3aa98e,logWarning as _0x169bfd,getEnvKeystrokeText as _0xbf1e54,FocusTracker as _0x3daa71,KeystrokeHandler as _0x2aaaf1,Collection as _0x192251}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x508ffc,IconCancel as _0x24ebb5,IconTrackChanges as _0x20e9d8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xa4dfc5,View as _0x22a891,ViewCollection as _0xbd65c6,FocusCycler as _0x3148ca,UIModel as _0x52ebac,createDropdown as _0x4f6be9,SplitButtonView as _0x5b53e8,addListToDropdown as _0x2f4cec,MenuBarMenuView as _0x43cd12,MenuBarMenuListView as _0x46bdb0,ListSeparatorView as _0x26f926,MenuBarMenuListItemView as _0x2cc587,MenuBarMenuListItemButtonView as _0x2b342c,BodyCollection as _0x39fef5,Dialog as _0x5e4795}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2dd144,hashObject as _0x5e1cbe,surroundingMarkersDetector as _0x17d47c,FOCUS_ANNOTATION_KEYSTROKE as _0x4aeab1,AriaDescriptionView as _0x33f216,setupThreadKeyboardNavigation as _0x19b49f,trimHtml as _0x505d21,UserView as _0x4fc546,LateFocusButtonView as _0x5daea8,getDateTimeFormatter as _0x2f1134,getAllMarkersDomElementsSorted as _0x16590b,sanitizeEditorConfig as _0x2d83d6}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0xa204e7,ModelLiveRange as _0x4f11f5,ModelLivePosition as _0x55d77d,ViewDowncastWriter as _0x5383b0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x9ff18e,toWidget as _0x2088e5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4b2d01,set as _0x450064,isEqual as _0x1b0f7b,unset as _0x398d94,omit as Ut}from'es-toolkit/compat';import{Delete as _0x3dcf53,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xde27ae}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x52e828}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x3b1c01{['_enabledCommands'];constructor(_0x36e168,_0x333b63){super(_0x36e168),this['_enabledCommands']=_0x333b63,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 _0x499262 of this['editor']['commands']['commands']())_0x499262['affectsData']&&!this['_enabledCommands']['has'](_0x499262)&&_0x499262['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x129c00 of this['editor']['commands']['commands']())_0x129c00['affectsData']&&!this['_enabledCommands']['has'](_0x129c00)&&_0x129c00['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x3b1c01{['_suggestions'];constructor(_0x5ab668,_0x36046f){super(_0x5ab668),this['_suggestions']=_0x36046f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x61db13){const _0x173df1=this['_suggestions']['get'](_0x61db13);if(!_0x173df1)throw new _0x1f6b9a('track-changes-accept-suggestion-not-found',this);const _0x6f9ef7=_0x173df1['getRanges']();this['editor']['model']['canEditAt'](_0x6f9ef7)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x173df1);}}class $ extends _0x3b1c01{['_suggestions'];constructor(_0x464a4f,_0x4dd342){super(_0x464a4f),this['_suggestions']=_0x4dd342,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x23dd80){const _0x2a4f10=this['_suggestions']['get'](_0x23dd80);if(!_0x2a4f10)throw new _0x1f6b9a('track-changes-discard-suggestion-not-found',this);const _0x15a28a=_0x2a4f10['getRanges']();this['editor']['model']['canEditAt'](_0x15a28a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2a4f10);}}function ls(_0x2c0b87,_0xd206dc){let _0x440e7e='';return _0x440e7e+=_0x2c0b87['split']('*')['map']((_0x1d42b5,_0x183ca4)=>_0x183ca4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x1d42b5)+'</span>':Zt(_0x1d42b5))['join'](''),_0xd206dc&&(_0x440e7e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xd206dc['value']+'\x22\x20title=\x22'+_0xd206dc['title']+'\x22></span>'),_0x440e7e;}function Zt(_0x3e0d1b){const _0x29648d=document['createElement']('span');return _0x29648d['innerText']=_0x3e0d1b,_0x29648d['innerHTML'];}function ts(_0xfa42f0){return _0xfa42f0['sort']((_0x3822b8,_0x4692af)=>'attribute'===_0x3822b8['type']&&'attribute'!==_0x4692af['type']?-0x1:'attribute'!==_0x3822b8['type']&&'attribute'===_0x4692af['type']?0x1:'deletion'==_0x3822b8['type']&&'deletion'!=_0x4692af['type']?-0x1:'deletion'!=_0x3822b8['type']&&'deletion'==_0x4692af['type']?0x1:0x0);}function to(_0x1051cc,_0x3c94e5){let _0x27a9a6,_0x9e5e6e=0x0;const _0x56e428=[],_0x3f136d=_0x3c94e5['schema'];for(;_0x9e5e6e<_0x1051cc['length'];){const _0x36a938=_0x1051cc[_0x9e5e6e],_0x5752c5=_0x1051cc[_0x9e5e6e+0x1];_0x27a9a6||(_0x27a9a6=_0x3c94e5['createPositionBefore'](_0x36a938)),tn(_0x3c94e5,_0x36a938,_0x5752c5)||(_0x56e428['push'](_0x3c94e5['createRange'](_0x27a9a6,_0x3f136d['isObject'](_0x36a938)?_0x3c94e5['createPositionAfter'](_0x36a938):_0x3c94e5['createPositionAt'](_0x36a938,'end'))),_0x27a9a6=null),_0x9e5e6e++;}return _0x56e428;}function tn(_0x4681d5,_0x2c926a,_0x157737){if(!_0x157737)return!0x1;const _0x38ca98=_0x4681d5['createPositionAfter'](_0x2c926a),_0x3b1566=_0x4681d5['createPositionBefore'](_0x157737);return _0x38ca98['isTouching'](_0x3b1566);}function rs(_0x103b9a,_0x518776,_0x486510){for(;_0x486510['length'];){const _0x200212=_0x486510['splice'](0x0,0x64);_0x103b9a['change'](()=>{for(const _0x4c9e09 of _0x200212)_0x4c9e09['isInContent']&&_0x518776['execute'](_0x4c9e09['id']);});}}class M extends _0x3b1c01{['_command'];['_suggestions'];constructor(_0x267b00,_0x18f4f6,_0x40c762){super(_0x267b00),this['_command']=_0x18f4f6,this['_suggestions']=_0x40c762,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x910c8f=Array['from'](this['_suggestions']['values']())['some'](_0x3b1b4c=>_0x3b1b4c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x910c8f;}['execute'](){const _0x75e1a3=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1e8fd2 of _0x75e1a3){const _0x3fd19d=_0x1e8fd2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3fd19d))return;}rs(this['editor']['model'],this['_command'],_0x75e1a3);}}class B extends _0x3b1c01{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x25c133,_0x551a89,_0x2e9fa2){super(_0x25c133),this['_command']=_0x551a89,this['_suggestions']=_0x2e9fa2,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x413599=this['editor']['model']['document']['selection'],_0x519f4f=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4608b1,_0x100900){const _0x140f1c=Array['from'](_0x4608b1['getRanges']()),_0x1e0a2e=new Set();for(const _0x297dfe of _0x100900)if(_0x297dfe['isInContent']){for(const _0x2c823d of _0x140f1c)for(const _0x120e47 of _0x297dfe['getRanges']())(_0x2c823d['isIntersecting'](_0x120e47)||_0x4608b1['isCollapsed']&&!_0x297dfe['isMultiRange']&&_0x297dfe['next']&&_0x120e47['end']['isTouching'](_0x2c823d['start']))&&_0x1e0a2e['add'](_0x297dfe);}return _0x1e0a2e;}(_0x413599,_0x519f4f),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1a1355=ts(Array['from'](this['_selectedSuggestions']));for(const _0x18a8f3 of _0x1a1355){const _0x117476=_0x18a8f3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x117476))return;}rs(this['editor']['model'],this['_command'],_0x1a1355);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0xd6634d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3e0c07,_0x30c6c7){super(),this['id']=_0x30c6c7['id'],this['type']=_0x30c6c7['type'],this['subType']=_0x30c6c7['subType']||null,this['author']=_0x30c6c7['author'],this['creator']=_0x30c6c7['creator']||_0x30c6c7['author'],this['isExternal']=Boolean(_0x30c6c7['attributes']&&_0x30c6c7['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x30c6c7['originalSuggestionId']||null,this['_model']=_0x3e0c07,this['_onAccept']=_0x30c6c7['onAccept'],this['_onDiscard']=_0x30c6c7['onDiscard'],this['_onAttributesChange']=_0x30c6c7['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x30c6c7['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 _0x4157d7=this;for(;_0x4157d7['previous'];)_0x4157d7=_0x4157d7['previous'];return _0x4157d7;}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'](_0x9b8726){this['_markerNames']['add'](_0x9b8726);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4c77ce=>this['_model']['markers']['get'](_0x4c77ce))['filter'](_0x272a87=>_0x272a87);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x19314f=>{for(const _0x42ccff of this['getMarkers']())_0x19314f['removeMarker'](_0x42ccff);}),this['_markerNames']['clear']();}['removeMarker'](_0x2a7ee1){this['_model']['change'](_0xb8a649=>{_0xb8a649['removeMarker'](_0x2a7ee1);}),this['_markerNames']['delete'](_0x2a7ee1);}['addRange'](_0x5a87fa){const _0x286516='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x286516),this['_model']['change'](_0x124466=>{_0x124466['addMarker'](_0x286516,{'range':_0x5a87fa,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x21d48b){for(const _0x8973e2 of this['getRanges']())if(_0x8973e2['isIntersecting'](_0x21d48b))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x14f13b=>_0x14f13b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x43f3a0,_0x47df77)=>[..._0x43f3a0,..._0x47df77['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5ba9b1=this['getRanges']();if(0x1!=_0x5ba9b1['length'])return null;const _0x537db1=_0x5ba9b1[0x0],_0x443f44=_0x537db1['start']['nodeAfter'],_0x29e687=_0x537db1['end']['nodeBefore'];return _0x443f44 instanceof _0xa204e7?_0x443f44!=_0x29e687?null:_0x443f44: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 _0x1b9b7b=[];let _0x36636b=this['head'];for(;_0x36636b;)_0x1b9b7b['push'](_0x36636b),_0x36636b=_0x36636b['next'];return _0x1b9b7b;}['setAttribute'](_0x4c583a,_0x2525e2){const _0x36c3e6=_0x4b2d01(this['attributes']);_0x450064(_0x36c3e6,_0x4c583a,_0x2525e2),_0x1b0f7b(_0x36c3e6,this['attributes'])||(this['attributes']=_0x36c3e6,this['_onAttributesChange'](_0x36c3e6));}['removeAttribute'](_0x2c8735){const _0x1a3e4c=_0x4b2d01(this['attributes']);_0x398d94(_0x1a3e4c,_0x2c8735),_0x1b0f7b(_0x1a3e4c,this['attributes'])||(this['attributes']=_0x1a3e4c,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 _0x5b1bcf()['substr'](0x1,0x5);}}function o(_0x261be7,_0x3a79d4,_0x4110d6){const _0x2dd394=_0x261be7['t'],t=_0x261be7['t'];switch(_0x3a79d4){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',_0x4110d6);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4110d6);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4110d6);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4110d6);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4110d6);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',_0x4110d6);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4110d6);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',_0x4110d6);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4110d6);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4110d6);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4110d6);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4110d6);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4110d6);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4110d6);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4110d6);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4110d6);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4110d6);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4110d6);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4110d6);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4110d6);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4110d6);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4110d6);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4110d6);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4110d6);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4110d6);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'},_0x4110d6);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4110d6);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4110d6);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4110d6);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4110d6);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4110d6);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4110d6);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4110d6);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'},_0x4110d6);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4110d6);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4110d6);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4110d6);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4110d6);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'},_0x4110d6);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4110d6);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'},_0x4110d6);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x4110d6);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4110d6);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'},_0x4110d6);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4110d6);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'},_0x4110d6);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4110d6);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4110d6);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'},_0x4110d6);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4110d6);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 _0x2dd394({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4110d6);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2dd394({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4110d6);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4110d6);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'},_0x4110d6);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'},_0x4110d6);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'},_0x4110d6);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3a79d4;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4cd82a,_0x2f19b2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4cd82a,this['_locale']=_0x2f19b2;}['getDescriptions'](_0x2dcd1f){const _0x4fdacc=[],_0x61d2d8=new Set(),_0x14b6d7=new Set();for(let _0x244a30=0x0;_0x244a30<_0x2dcd1f['length'];_0x244a30++){const _0x1af7bb=_0x2dcd1f[_0x244a30];if(!_0x1af7bb['isInContent'])continue;const _0x352510=this['_handleCustomCallbackDescription'](_0x1af7bb);if(_0x352510){if(null!=_0x1af7bb['subType']){if(_0x61d2d8['has'](_0x1af7bb['subType']))continue;_0x61d2d8['add'](_0x1af7bb['subType']);}_0x4fdacc['push'](_0x352510);}else{if('attribute'==_0x1af7bb['type']){const _0x4fb2a3=_0x1af7bb['data']['key'];if(_0x14b6d7['has'](_0x4fb2a3))continue;_0x14b6d7['add'](_0x1af7bb['data']['key']),_0x4fb2a3==m?this['_handleRenameSuggestionDescription'](_0x4fdacc,_0x1af7bb):this['_handleAttributeSuggestionDescription'](_0x4fdacc,_0x1af7bb);continue;}'insertion'!=_0x1af7bb['type']&&'deletion'!=_0x1af7bb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4fdacc,_0x1af7bb,_0x2dcd1f[_0x244a30+0x1]);}}return this['_resolveDescriptionItems'](_0x4fdacc);}['registerDescriptionCallback'](_0x524dba){this['_customCallbacks']['push'](_0x524dba);}['registerElementLabel'](_0x5873cd,_0x573b47,_0x3018af=_0x3f788b['normal']){'function'==typeof _0x5873cd?_0x297bde(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5873cd,'label':_0x573b47,'priority':_0x3018af}):this['_itemLabels']['set'](_0x5873cd,_0x573b47);}['registerAttributeLabel'](_0x2d68d7,_0x179b2){this['_attributeLabels']['set'](_0x2d68d7,_0x179b2);}['getItemLabel'](_0x3ba09a,_0x243a21=0x1){let _0x2b4ca8;for(const _0x588456 of this['_itemLabelsCallbacks'])if(_0x588456['matchingCallback'](_0x3ba09a)){_0x2b4ca8=_0x588456['label'];break;}return _0x2b4ca8||(_0x2b4ca8=this['_itemLabels']['get'](_0x3ba09a['name'])),_0x2b4ca8?_0x2b4ca8(_0x243a21):0x1!==_0x243a21?_0x243a21+'\x20'+_0x3ba09a['name']+'s':''+_0x3ba09a['name'];}['_addDescriptionItems'](_0x28438b,_0x335175){const _0x4c6c7f=_0x335175['getFirstRange']()['getWalker'](),_0x41138d='insertion'==_0x335175['type']?'add':'remove';for(const _0x5eae5f of _0x4c6c7f){const _0x46a44e=_0x5eae5f['item'],_0xa7d7fa=_0x28438b[_0x28438b['length']-0x1];if(_0x46a44e['is']('$textProxy'))_0xa7d7fa&&_0xa7d7fa['type']['indexOf']('Container')>-0x1&&_0x28438b['pop'](),_0xa7d7fa&&'text'==_0xa7d7fa['type']?_0xa7d7fa[_0x41138d]+=_0x46a44e['data']:_0x28438b['push']({'type':'text','add':'add'==_0x41138d?_0x46a44e['data']:'','remove':'remove'==_0x41138d?_0x46a44e['data']:''});else{if(this['_schema']['isObject'](_0x46a44e)){const _0x10a411=_0x46a44e;if(_0xa7d7fa&&_0xa7d7fa['type']['indexOf']('Container')>-0x1&&_0x28438b['pop'](),'elementEnd'==_0x5eae5f['type'])continue;_0xa7d7fa&&_0xa7d7fa['type']==_0x41138d+'Object'&&_0xa7d7fa['element']['name']==_0x10a411['name']?_0xa7d7fa['quantity']++:_0x28438b['push']({'type':_0x41138d+'Object','element':_0x10a411,'quantity':0x1}),_0x4c6c7f['skip'](_0x3f49f=>!('elementEnd'==_0x3f49f['type']&&_0x3f49f['item']==_0x46a44e));}else{if(this['_schema']['checkChild'](_0x46a44e,'$text')||_0x46a44e['is']('element','softBreak')){const _0x30807e=_0x46a44e;if('add'==_0x41138d&&'elementStart'==_0x5eae5f['type']||'remove'==_0x41138d&&'elementEnd'==_0x5eae5f['type'])continue;if(_0xa7d7fa&&-0x1==_0xa7d7fa['type']['indexOf']('Container')){'text'==_0xa7d7fa['type']&&(_0xa7d7fa[_0x41138d]+='\x0a');continue;}let _0x2e2688;if(_0x2e2688='add'==_0x41138d?_0x30807e['nextSibling']&&!this['_schema']['isObject'](_0x30807e['nextSibling'])?_0x30807e['nextSibling']:null:_0x30807e['previousSibling']&&!this['_schema']['isObject'](_0x30807e['previousSibling'])?_0x30807e['previousSibling']:null,_0x30807e['isEmpty']||_0x2e2688&&_0x2e2688['isEmpty']){const _0x4f6aed=_0x2e2688&&_0x2e2688['isEmpty']?_0x2e2688:_0x30807e;_0xa7d7fa&&_0xa7d7fa['type']==_0x41138d+'EmptyContainer'&&_0xa7d7fa['element']['name']==_0x4f6aed['name']?_0xa7d7fa['quantity']++:_0x28438b['push']({'type':_0x41138d+'EmptyContainer','element':_0x4f6aed,'quantity':0x1});}else _0x28438b['push']({'type':_0x41138d+'Container','element':_0x30807e});}}}}}['_resolveDescriptionItems'](_0x2ab540){const _0x176183=this['_locale'],_0x449e0d=[],_0x3585e4=[],_0xa9934e=[];for(const _0x4258ac of _0x2ab540)switch(_0x4258ac['type']){case'text':if(_0x4258ac['add']=_0x4258ac['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4258ac['remove']=_0x4258ac['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4258ac['add']&&''!=_0x4258ac['remove']){_0x449e0d['push']({'type':'replace','content':o(_0x176183,'REPLACE_TEXT',['\x22'+_0x4258ac['remove']+'\x22','\x22'+_0x4258ac['add']+'\x22'])});continue;}if(null!=_0x4258ac['add']['match'](/^ +$/)){_0x449e0d['push']({'type':'insertion','content':o(_0x176183,'*Insert:*\x20%0',o(_0x176183,'ELEMENT_SPACE',_0x4258ac['add']['length']))});continue;}if(null!=_0x4258ac['remove']['match'](/^ +$/)){_0x449e0d['push']({'type':'deletion','content':o(_0x176183,'*Remove:*\x20%0',o(_0x176183,'ELEMENT_SPACE',_0x4258ac['remove']['length']))});continue;}if(''!=_0x4258ac['add']){_0x449e0d['push']({'type':'insertion','content':o(_0x176183,'*Insert:*\x20%0','\x22'+_0x4258ac['add']+'\x22')});continue;}_0x449e0d['push']({'type':'deletion','content':o(_0x176183,'*Remove:*\x20%0','\x22'+_0x4258ac['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x449e0d['push']({'type':'insertion','content':o(_0x176183,'*Insert:*\x20%0',this['getItemLabel'](_0x4258ac['element'],_0x4258ac['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x449e0d['push']({'type':'deletion','content':o(_0x176183,'*Remove:*\x20%0',this['getItemLabel'](_0x4258ac['element'],_0x4258ac['quantity']))});continue;case'addContainer':_0x449e0d['push']({'type':'insertion','content':o(_0x176183,'*Split:*\x20%0',this['getItemLabel'](_0x4258ac['element'],_0x4258ac['quantity']))});continue;case'removeContainer':_0x449e0d['push']({'type':'deletion','content':o(_0x176183,'*Merge:*\x20%0',this['getItemLabel'](_0x4258ac['element'],_0x4258ac['quantity']))});continue;case'addFormat':_0x3585e4['push'](_0x4258ac['key']);continue;case'removeFormat':_0xa9934e['push'](_0x4258ac['key']);continue;default:_0x449e0d['push'](_0x4258ac);}if(_0x3585e4['length']){const _0x21f953=_0x3585e4['map'](_0x331b11=>this['_attributeLabels']['has'](_0x331b11)?this['_attributeLabels']['get'](_0x331b11):_0x331b11)['join'](',\x20');_0x449e0d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x21f953)});}if(_0xa9934e['length']){const _0x46a678=_0xa9934e['map'](_0x90bbb0=>this['_attributeLabels']['has'](_0x90bbb0)?this['_attributeLabels']['get'](_0x90bbb0):_0x90bbb0)['join'](',\x20');_0x449e0d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x46a678)});}return _0x449e0d;}['_handleCustomCallbackDescription'](_0x3311bf){for(const _0x2610f5 of this['_customCallbacks']){const _0x22a433=_0x2610f5(_0x3311bf);if(_0x22a433&&'type'in _0x22a433)return _0x22a433;}}['_handleAttributeSuggestionDescription'](_0x36e7c7,_0x5208c3){const _0x2c96a4=_0x5208c3['data'],_0x5c33f0=void 0x0===_0x2c96a4['newValue']?'removeFormat':'addFormat';_0x36e7c7['push']({'type':_0x5c33f0,'key':_0x2c96a4['key']});}['_handleRenameSuggestionDescription'](_0x2195bd,_0x4bca12){_0x2195bd['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4bca12['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x18fa4c,_0x593e6c,_0x1e0f36){if(this['_addDescriptionItems'](_0x18fa4c,_0x593e6c),_0x1e0f36&&_0x1e0f36['getFirstRange']()&&!_0x593e6c['getFirstRange']()['end']['isEqual'](_0x1e0f36['getFirstRange']()['start'])){const _0x2dcb0c=_0x18fa4c[_0x18fa4c['length']-0x1],_0x1b3bea='insertion'==_0x593e6c['type']?'add':'remove';_0x2dcb0c&&'text'==_0x2dcb0c['type']&&(_0x2dcb0c[_0x1b3bea]+='\x0a');}}}class O extends _0x3d8ee5{['afterInit'](){const _0x1c2475=this['editor'],_0x1d94f8=_0x1c2475['plugins']['get']('TrackChangesEditing');_0x1c2475['commands']['get']('showAIAssistant')&&_0x1d94f8['enableCommand']('showAIAssistant');}}class E extends _0x3d8ee5{['afterInit'](){const _0x55a20d=this['editor'],_0x525055=_0x55a20d['locale'];if(!_0x55a20d['plugins']['has']('AlignmentEditing'))return;const _0x20c76f=_0x55a20d['plugins']['get']('TrackChangesEditing');_0x20c76f['enableDefaultAttributesIntegration']('alignment'),_0x20c76f['registerBlockAttribute']('alignment'),_0x20c76f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x525055,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e3253=this['editor'],_0x2c790b=_0x3e3253['locale'];_0x3e3253['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x118199=>{if('formatBlock'!=_0x118199['type'])return;const {data:_0x470b6d}=_0x118199;if(_0x470b6d&&'alignment'==_0x470b6d['commandName']){const _0x1fc6e6=_0x470b6d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2c790b,'*Format:*\x20%0',function(_0x586735){switch(_0x586735){case'left':return o(_0x2c790b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2c790b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2c790b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2c790b,'FORMAT_JUSTIFY_TEXT');}}(_0x1fc6e6))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x3d8ee5{['afterInit'](){const _0x4ead77=this['editor'],_0x5f57a5=_0x4ead77['plugins']['get']('TrackChangesEditing'),_0x163671=_0x4ead77['locale'];for(const _0x583fe1 of ti){if(!_0x4ead77['plugins']['has'](_0x583fe1))continue;const _0x39151f=_0x583fe1['slice'](0x0,-0x7)['toLowerCase'](),_0x58cabe='FORMAT_'+_0x39151f['toUpperCase']();_0x5f57a5['enableDefaultAttributesIntegration'](_0x39151f),_0x5f57a5['registerInlineAttribute'](_0x39151f),_0x5f57a5['descriptionFactory']['registerAttributeLabel'](_0x39151f,o(_0x163671,_0x58cabe));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x252197=this['editor'],_0x596b3d=_0x252197['locale'],_0x395034=_0x252197['plugins']['get']('TrackChangesEditing');function _0x12e4ab(_0x5932f4,_0x379277){_0x395034['descriptionFactory']['registerDescriptionCallback'](_0x3fadd3=>{if('formatInline'!=_0x3fadd3['type'])return;const {data:_0x5522b5}=_0x3fadd3;return _0x5522b5&&_0x5522b5['commandName']===_0x5932f4?_0x5522b5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x596b3d,'*Format:*\x20%0',_0x379277)}:{'type':'format','content':o(_0x596b3d,'*Remove\x20format:*\x20%0',_0x379277)}:void 0x0;});}_0x12e4ab('bold',o(_0x596b3d,'FORMAT_BOLD')),_0x12e4ab('italic',o(_0x596b3d,'FORMAT_ITALIC')),_0x12e4ab('underline',o(_0x596b3d,'FORMAT_UNDERLINE')),_0x12e4ab('code',o(_0x596b3d,'FORMAT_CODE')),_0x12e4ab('strikethrough',o(_0x596b3d,'FORMAT_STRIKETHROUGH')),_0x12e4ab('subscript',o(_0x596b3d,'FORMAT_SUBSCRIPT')),_0x12e4ab('superscript',o(_0x596b3d,'FORMAT_SUPERSCRIPT'));}}class U extends _0x3d8ee5{['afterInit'](){const _0x180def=this['editor'],_0x5c24ce=_0x180def['locale'];if(!_0x180def['plugins']['has']('BlockQuoteEditing'))return;const _0x4f39fd=_0x180def['plugins']['get']('TrackChangesEditing'),_0x1fb02c=this['editor']['commands']['get']('blockQuote');_0x4f39fd['enableCommand']('blockQuote',(_0x16bac9,_0x1a42fa={})=>{const _0x528e19=this['editor']['model']['document']['selection'],_0x4a024a=_0x1a42fa&&void 0x0!==_0x1a42fa['forceValue']?_0x1a42fa['forceValue']:!_0x1fb02c['value'];let _0x55afdb=[];if(_0x4a024a){const _0x30167d=Array['from'](_0x528e19['getSelectedBlocks']())['filter'](_0x3726bd=>oo(_0x3726bd)||function(_0x58d56f,_0x31c391){const _0x72ddb7=_0x31c391['checkChild'](_0x58d56f['parent'],'blockQuote'),_0x1155ed=_0x31c391['checkChild'](['$root','blockQuote'],_0x58d56f);return _0x72ddb7&&_0x1155ed;}(_0x3726bd,this['editor']['model']['schema']));_0x55afdb=to(_0x30167d,_0x180def['model']);}else{const _0x36a953=Array['from'](_0x528e19['getSelectedBlocks']())['filter'](_0x3cc6aa=>oo(_0x3cc6aa));_0x55afdb=to(_0x36a953,_0x180def['model']);}_0x180def['model']['change'](()=>{for(const _0x371c8d of _0x55afdb)_0x4f39fd['markBlockFormat'](_0x371c8d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4a024a}]});});}),_0x4f39fd['descriptionFactory']['registerDescriptionCallback'](_0xcb928f=>{const {data:_0x3df0f1}=_0xcb928f;if(_0x3df0f1&&'blockQuote'==_0x3df0f1['commandName']){const _0x3e0a64=o(_0x5c24ce,'ELEMENT_BLOCK_QUOTE');return _0x3df0f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c24ce,'*Set\x20format:*\x20%0',_0x3e0a64)}:{'type':'format','content':o(_0x5c24ce,'*Remove\x20format:*\x20%0',_0x3e0a64)};}});}}function oo(_0x44f8a7){return'blockQuote'==_0x44f8a7['parent']['name'];}class V extends _0x3d8ee5{['afterInit'](){const _0x1ba988=this['editor'],_0x23f787=_0x1ba988['locale'],_0x4d9864=_0x1ba988['plugins']['get']('TrackChangesEditing');_0x1ba988['plugins']['has']('BookmarkEditing')&&(_0x4d9864['enableCommand']('insertBookmark'),_0x4d9864['enableDefaultAttributesIntegration']('updateBookmark'),_0x4d9864['registerBlockAttribute']('bookmarkId'),_0x4d9864['descriptionFactory']['registerDescriptionCallback'](_0x2b1db2=>{if('insertion'!=_0x2b1db2['type']&&'deletion'!=_0x2b1db2['type']&&'attribute'!=_0x2b1db2['type'])return;const _0xfd6822=_0x2b1db2['getContainedElement']();if(null==_0xfd6822)return;if(!_0xfd6822['is']('element','bookmark'))return;const _0x9d6b38=_0xfd6822['getAttribute']('bookmarkId');if('insertion'==_0x2b1db2['type'])return{'type':'insertion','content':o(_0x23f787,'*Insert:*\x20%0','\x22'+_0x9d6b38+'\x22\x20'+o(_0x23f787,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2b1db2['type'])return{'type':'deletion','content':o(_0x23f787,'*Remove:*\x20%0','\x22'+_0x9d6b38+'\x22\x20'+o(_0x23f787,'ELEMENT_BOOKMARK'))};const {data:_0x47ab3a}=_0x2b1db2;if(!_0x47ab3a||'bookmarkId'!=_0x47ab3a['key'])return;return{'type':'format','content':o(_0x23f787,'*Set\x20bookmark:*\x20%0','\x22'+_0x47ab3a['newValue']+'\x22')};}));}}class F extends _0x3d8ee5{['afterInit'](){const _0x9d5f68=this['editor'];_0x9d5f68['plugins']['has']('CaseChange')&&(_0x9d5f68['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x9d5f68['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x9d5f68['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x3d8ee5{['afterInit'](){const _0x25a921=this['editor'];_0x25a921['commands']['get']('ckbox')&&_0x25a921['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x3d8ee5{['afterInit'](){const _0x2a680b=this['editor'];if(!_0x2a680b['plugins']['has']('CodeBlock'))return;const _0x1e085b=_0x2a680b['plugins']['get']('TrackChangesEditing'),_0xd026d3=_0x2a680b['locale'],_0x1ecc34=_0x2a680b['config']['get']('codeBlock')['languages'],_0x580f2c=_0x2a680b['commands']['get']('codeBlock');_0x1e085b['enableCommand']('indentCodeBlock'),_0x1e085b['enableCommand']('outdentCodeBlock'),_0x1e085b['enableCommand']('codeBlock',(_0x476a06,_0xa3c799={})=>{const _0x186e85=_0x2a680b['model'],_0x23c1c6=_0x2a680b['model']['document']['selection'],_0x94919=_0xa3c799&&void 0x0!==_0xa3c799['forceValue']?_0xa3c799['forceValue']:!_0x580f2c['value'];let _0x28578e;_0xa3c799['language']||(_0xa3c799['language']=_0x1ecc34[0x0]['language']),_0x28578e=_0x94919?Array['from'](_0x23c1c6['getSelectedBlocks']())['filter'](_0x1f9674=>co(_0x1f9674)||function(_0x2dc344,_0x17162e){if(_0x2dc344['is']('rootElement')||_0x17162e['isLimit'](_0x2dc344))return!0x1;return _0x17162e['checkChild'](_0x2dc344['parent'],'codeBlock');}(_0x1f9674,_0x186e85['schema'])):Array['from'](_0x23c1c6['getSelectedBlocks']())['filter'](_0x23c0c1=>co(_0x23c0c1));const _0x4f9d1f=to(_0x28578e,_0x186e85);_0x186e85['change'](()=>{for(const _0x3e71f3 of _0x4f9d1f)_0x1e085b['markBlockFormat'](_0x3e71f3,{'commandName':'codeBlock','commandParams':[{..._0xa3c799,'forceValue':_0x94919}],'formatGroupId':'blockName'});});}),(_0x1e085b['descriptionFactory']['registerElementLabel']('codeBlock',_0x4679f9=>o(_0xd026d3,'ELEMENT_CODE_BLOCK',_0x4679f9)),_0x1e085b['descriptionFactory']['registerDescriptionCallback'](_0x4f5ac0=>{if('formatBlock'!=_0x4f5ac0['type'])return;const _0x52d4fb=_0xd026d3['t'],{data:_0x361b6c}=_0x4f5ac0;if(!_0x361b6c||'codeBlock'!=_0x361b6c['commandName'])return;const _0x2a59f9=_0x361b6c['commandParams'][0x0]['language'],_0x5c44e0=_0x52d4fb(_0x1ecc34['find'](_0x1f9964=>_0x1f9964['language']===_0x2a59f9)['label'])['toLowerCase']();return _0x361b6c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd026d3,'*Set\x20format:*\x20%0',o(_0xd026d3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5c44e0+')')}:{'type':'format','content':o(_0xd026d3,'*Remove\x20format:*\x20%0',o(_0xd026d3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x8eeba1){return'codeBlock'==_0x8eeba1['name'];}class J extends _0x3d8ee5{['afterInit'](){const _0x279b0a=this['editor'];if(!_0x279b0a['plugins']['has']('CommentsEditing'))return;_0x279b0a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x23f40a,_0x1614ad,_0x2f5d51){const _0x412dd2=[];for(const _0x3ad8d3 of _0x1614ad['getItems']())_0x3ad8d3['hasAttribute'](_0x23f40a)&&_0x412dd2['push'](_0x2f5d51['createRangeOn'](_0x3ad8d3));return _0x412dd2;}function De(_0x234fbb,_0x4a8866,{showActiveMarker:_0x42dc98=!0x0}={}){const _0x1df1eb=_0x234fbb['plugins']['get']('TrackChangesEditing');return(_0x2e3266,_0x393b16,_0x5d27d1)=>{if(!_0x5d27d1['consumable']['test'](_0x393b16['markerRange'],_0x2e3266['name']))return;const _0x549b70=_0x393b16['markerRange']['getWalker'](),_0xc5b640=_0x393b16['markerRange']['start'],_0x246859=_0x234fbb['model']['schema'];let _0x4ffcc2=null,_0x4fe4b8=null,_0x1ada86=!0x1,_0x2559fb=!0x1;for(const _0x474d56 of _0x549b70){const _0x56483d=_0x474d56['item'];_0x1ada86=_0x1ada86||_0x246859['isContent'](_0x56483d);const _0xbe1fd0=_0x5d27d1['mapper']['toViewElement'](_0x56483d);if(_0xbe1fd0&&_0xbe1fd0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x474d56['type']&&(_0x246859['isBlock'](_0x56483d)&&!_0x246859['isLimit'](_0x56483d)&&(_0x56483d['nextSibling']||_0xc5b640['isAtEnd']?_0x4ffcc2&&_0x4ffcc2['parent']==_0x56483d||(_0x4ffcc2=_0x56483d,_0x3f04b7(_0x474d56['previousPosition']),_0x2559fb=!0x0):_0x4fe4b8=_0x4fe4b8||_0x474d56['previousPosition']));}function _0x3f04b7(_0x192e3e){const {id:_0x3b9338,authorId:_0x3f2fb1}=_0x1df1eb['_splitMarkerName'](_0x393b16['markerName']),_0x585369=_0x5d27d1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a8866,'data-suggestion':_0x3b9338,'data-author-id':_0x3f2fb1}),_0x3afadd=_0x5d27d1['mapper']['toViewPosition'](_0x192e3e);_0x42dc98&&_0x1df1eb['activeMarkers']['includes'](_0x393b16['markerName'])&&_0x5d27d1['writer']['addClass']('ck-suggestion-marker--active',_0x585369),_0x5d27d1['writer']['insert'](_0x3afadd,_0x585369),_0x5d27d1['mapper']['bindElementToMarker'](_0x585369,_0x393b16['markerName']);}_0x1ada86||_0x2559fb||!_0x4fe4b8||_0x3f04b7(_0x4fe4b8);};}class K extends _0x3d8ee5{static get['requires'](){return[_0x3dcf53];}['init'](){const _0x25beaa=this['editor'],_0x2ae451=_0x25beaa['plugins']['get']('TrackChangesEditing');_0x2ae451['enableCommand']('delete');const _0x155091=_0x25beaa['commands']['get']('deleteForward');_0x2ae451['enableCommand']('deleteForward',(_0x54e6e2,_0x56c475={})=>{const _0x271a4a=_0x25beaa['model']['createSelection'](_0x25beaa['model']['document']['selection']);_0x271a4a['isCollapsed']&&_0x25beaa['model']['modifySelection'](_0x271a4a,{'direction':'forward','unit':_0x56c475['unit']});const _0x4e6048=_0x271a4a['getFirstRange'](),_0x14d62f=_0x4f11f5['fromRange'](_0x4e6048);let _0x4d1e17;_0x54e6e2(_0x56c475),_0x4d1e17='$graveyard'==_0x14d62f['root']['rootName']?_0x25beaa['model']['createRange'](_0x4e6048['start']):_0x25beaa['model']['createRange'](_0x14d62f['start'],_0x14d62f['end']),_0x14d62f['detach'](),_0x25beaa['model']['enqueueChange'](_0x155091['buffer']['batch'],_0x27e5d6=>{_0x155091['buffer']['lock'](),_0x27e5d6['setSelection'](_0x27e5d6['createRange'](_0x4d1e17['end'])),_0x155091['buffer']['unlock']();});}),_0x25beaa['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x25beaa,'merge'),{'priority':'high'}),_0x25beaa['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x297542,_0x1a08d9,_0x5ae7cd)=>{_0x5ae7cd['options']['showSuggestionHighlights']&&De(_0x25beaa,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x297542,_0x1a08d9,_0x5ae7cd);},{'priority':'high'}),_0x25beaa['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x24871f,_0xa00691,_0x5b8a20)=>{const _0x38b0e3=_0x5b8a20['mapper']['markerNameToElements'](_0xa00691['markerName']);if(_0x38b0e3){for(const _0x446ba1 of _0x38b0e3)_0x446ba1['is']('uiElement')&&(_0x5b8a20['mapper']['unbindElementFromMarkerName'](_0x446ba1,_0xa00691['markerName']),_0x5b8a20['writer']['remove'](_0x446ba1));}},{'priority':'high'});}}class H extends _0x3d8ee5{['afterInit'](){const _0x471f21=this['editor'];if(!_0x471f21['plugins']['has']('ListEditing'))return;const _0x296995=_0x471f21['locale'],_0x5525f7=_0x471f21['plugins']['get']('TrackChangesEditing'),_0x410e10=_0x471f21['plugins']['has']('TodoListEditing'),_0xf68e47=!!_0x471f21['config']['get']('list.multiBlock');function _0x4062d0(_0x36df9c){return{'type':'format','content':''+o(_0x296995,'*Set\x20format:*\x20%0',_0x36df9c)};}function _0x14fc6d(_0x13475e){return{'type':'format','content':''+o(_0x296995,'*Remove\x20format:*\x20%0',_0x13475e)};}_0x5525f7['enableDefaultAttributesIntegration']('numberedList'),_0x5525f7['enableDefaultAttributesIntegration']('bulletedList'),_0x5525f7['enableDefaultAttributesIntegration']('customNumberedList'),_0x5525f7['enableDefaultAttributesIntegration']('customBulletedList'),_0x5525f7['enableDefaultAttributesIntegration']('indentList'),_0x5525f7['enableDefaultAttributesIntegration']('outdentList'),_0x5525f7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5525f7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5525f7['registerBlockAttribute']('listItemId'),_0x5525f7['registerBlockAttribute']('listType'),_0x5525f7['registerBlockAttribute']('listIndent'),_0xf68e47&&(_0x5525f7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5525f7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x410e10&&(_0x5525f7['enableDefaultAttributesIntegration']('todoList'),_0x5525f7['enableDefaultAttributesIntegration']('checkTodoList'),_0x5525f7['registerBlockAttribute']('todoListChecked'),_0x5525f7['descriptionFactory']['registerDescriptionCallback'](_0x56f6f9=>{const {data:_0xdbba4d}=_0x56f6f9;if(_0xdbba4d&&'todoListChecked'==_0xdbba4d['key'])return{'type':'format','content':_0xdbba4d['newValue']?o(_0x296995,'*Check\x20item*'):o(_0x296995,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1d6511=>{if(_0x1d6511['batch']['isUndo'])return!0x1;let _0x3c8b68=!0x1;const _0x4b7516=_0x5525f7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10102f=>'todoListChecked'===_0x5525f7['_getAttributeKey'](_0x10102f));for(const _0x5d2054 of _0x4b7516){'todo'!=_0x5d2054['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5525f7['_findSuggestions'](_0x5d2054['getFirstRange'](),'attribute')['find'](_0x4fe362=>'listType'===_0x5525f7['_getAttributeKey'](_0x4fe362['suggestion']))||(_0x1d6511['removeMarker'](_0x5d2054['getFirstMarker']()),_0x3c8b68=!0x0));}return _0x3c8b68;})),_0x5525f7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x296995,'FORMAT_INDENT'));const _0x3dabdd={'type':'format','content':''};_0x5525f7['descriptionFactory']['registerDescriptionCallback'](_0x349e47=>{const {data:_0x384352}=_0x349e47;if(!_0x384352||'listType'!=_0x384352['key'])return;let _0x5f31bd=_0x349e47['head'];for(;_0x5f31bd;){if(_0x5f31bd['data']&&(('listStyle'==_0x5f31bd['data']['key']||'listMarkerStyle'==_0x5f31bd['data']['key'])&&(_0x5f31bd['data']['newValue']&&'default'!=_0x5f31bd['data']['newValue']||'default'!=_0x5f31bd['data']['oldValue']&&!_0x384352['newValue'])||!_0xf68e47&&_0x5f31bd['data']['key']==m))return _0x3dabdd;_0x5f31bd=_0x5f31bd['next'];}if(null==_0x384352['newValue'])switch(_0x384352['oldValue']){case'bulleted':return _0x14fc6d(o(_0x296995,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14fc6d(o(_0x296995,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14fc6d(o(_0x296995,'ELEMENT_TODO_LIST'));}switch(_0x384352['newValue']){case'bulleted':return _0x4062d0(o(_0x296995,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4062d0(o(_0x296995,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4062d0(o(_0x296995,'ELEMENT_TODO_LIST'));}}),_0x5525f7['descriptionFactory']['registerDescriptionCallback'](_0x29a33c=>{const {data:_0x216bb1}=_0x29a33c;if(_0x216bb1&&'listIndent'==_0x216bb1['key'])return null==_0x216bb1['newValue']||null==_0x216bb1['oldValue']&&0x0==_0x216bb1['newValue']?_0x3dabdd:void 0x0;}),_0x5525f7['descriptionFactory']['registerDescriptionCallback'](_0x4e0ba7=>{if('attribute'!=_0x4e0ba7['type'])return;const {data:_0x55be63}=_0x4e0ba7;if(!_0x55be63||'listItemId'!=_0x55be63['key'])return;const _0x2d4f05=Te(_0x4e0ba7);return'newValue'==_0x2d4f05?{'type':'format','content':o(_0x296995,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2d4f05?{'type':'format','content':o(_0x296995,'*Split:*\x20list\x20item')}:_0x3dabdd;}),_0x471f21['model']['document']['registerPostFixer'](_0x1861d3=>this['listItemIdFixer'](_0x1861d3)),_0x471f21['model']['document']['registerPostFixer'](_0x379ec4=>this['noTrackChangesFixer'](_0x379ec4)),_0x471f21['model']['document']['on']('change:data',(_0x5e5075,_0x1ce4e2)=>{if(_0x1ce4e2['isUndo']||!_0x1ce4e2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2698b7){if(_0x2698b7['batch']['isUndo']||!_0x2698b7['batch']['isLocal'])return!0x1;let _0x21828c=!0x1;const _0x5c3c42=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2efb76=>_0x2efb76['data']&&'listItemId'==_0x2efb76['data']['key'])['filter'](_0x45110a=>_0x45110a['data']['newValue']&&_0x45110a['data']['oldValue']);for(const _0x2e970c of _0x5c3c42)Te(_0x2e970c)||(_0x2698b7['removeMarker'](_0x2e970c['getFirstMarker']()),_0x21828c=!0x0);return _0x21828c;}['noTrackChangesFixer'](_0x44b363){if(_0x44b363['batch']['isUndo']||!_0x44b363['batch']['isLocal'])return!0x1;const _0xbf63f9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xbf63f9['trackChangesCommand']['value'])return!0x1;let _0x198cc9=!0x1;const _0x253ff6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x57c60d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3f705a=>'attribute'==_0x3f705a['type'])['filter'](_0x26eacc=>_0x253ff6['includes'](_0x26eacc['attributeKey']));if(0x0==_0x57c60d['length'])return _0x198cc9;for(const _0x22cc91 of _0x57c60d){const _0xd66eed=_0xbf63f9['_findSuggestions'](_0x22cc91['range'],'attribute')['filter'](_0x387c8e=>!_0x387c8e['meta']['isNextTo'])['map'](_0x1b04da=>_0x1b04da['suggestion'])['filter'](_0x38ff18=>{const _0x5cf2d5=_0xbf63f9['_getAttributeKey'](_0x38ff18);return _0x253ff6['includes'](_0x5cf2d5);});if(_0xd66eed['length']){for(const _0xc78a7a of _0xd66eed)_0x44b363['removeMarker'](_0xc78a7a['getFirstMarker']());_0x198cc9=!0x0;}}return _0x198cc9;}['assureChains'](){const _0xbe3278=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54fce2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x7455e9;const _0x2e386c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x554214=>{if(_0x554214['data']['oldRange']||!_0x554214['data']['newRange'])return null;if(!_0x554214['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5f4d7e}=_0xbe3278['_splitMarkerName'](_0x554214['name']);if(!_0xbe3278['hasSuggestion'](_0x5f4d7e))return null;const _0x2aa1b=_0xbe3278['getSuggestion'](_0x5f4d7e);return _0x54fce2['includes'](_0x2aa1b['data']['key']);})['map'](_0x3cec40=>{const {id:_0x421a41}=_0xbe3278['_splitMarkerName'](_0x3cec40['name']),_0x478449=_0xbe3278['getSuggestion'](_0x421a41);return _0x7455e9=_0x478449['attributes']['groupId'],_0x478449['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2e386c['size'])return;const _0x553d58=_0xbe3278['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48e65e=>'attribute'==_0x48e65e['type']&&_0x48e65e['data']&&_0x54fce2['includes'](_0x48e65e['data']['key'])&&_0x48e65e['attributes']['groupId']!=_0x7455e9)['map'](_0x2bd3f0=>({'listItem':_0x2bd3f0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2bd3f0['attributes']['groupId']})),_0x51c448=new Set();for(const {groupId:_0x51bb6e,listItem:_0x365287}of _0x553d58)_0x2e386c['has'](_0x365287)&&_0x51c448['add'](_0x51bb6e);for(const _0x3d1bce of _0xbe3278['getSuggestions']())_0x51c448['has'](_0x3d1bce['attributes']['groupId'])&&_0x3d1bce['setAttribute']('groupId',_0x7455e9);}['_supportLegacySuggestions'](){const _0x10c301=this['editor'],_0x5bad43=_0x10c301['locale'],_0x5f1829=_0x10c301['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5f1829['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x502cd2,_0x9352eb){const _0x51dfe0=[];for(let _0x194d1d of _0x502cd2)_0x194d1d['start']['nodeAfter']===_0x194d1d['end']['parent']&&(_0x194d1d=_0x10c301['model']['createRange'](_0x10c301['model']['createPositionAt'](_0x194d1d['start']['nodeAfter'],0x0))),_0x51dfe0['push'](_0x194d1d);_0x10c301['model']['change'](_0x40bd85=>{const _0x1c0165=_0x10c301['model']['document']['selection'],_0x23b0ca=Array['from'](_0x1c0165['getRanges']())['map'](_0x2b71eb=>_0x4f11f5['fromRange'](_0x2b71eb));_0x40bd85['setSelection'](_0x51dfe0),_0x10c301['commands']['get'](_0x9352eb['commandName'])['refresh'](),_0x9352eb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x10c301['execute'](_0x9352eb['commandName'],..._0x9352eb['commandParams']),_0x40bd85['setSelection'](_0x23b0ca);for(const _0x34e51a of _0x23b0ca)_0x34e51a['detach']();});}),_0x5f1829['descriptionFactory']['registerElementLabel'](function(_0x3e49c5){const _0x339a79=!_0x10c301['model']['schema']['isObject'](_0x3e49c5),_0x52a50c=_0x3e49c5['previousSibling'],_0x74e43b=_0x3e49c5['nextSibling'],_0x37b05f=_0x3e49c5['getAttribute']('listItemId'),_0xbc950b=!_0x52a50c||_0x52a50c['getAttribute']('listItemId')!==_0x37b05f,_0x2c1100=!_0x74e43b||_0x74e43b['getAttribute']('listItemId')!==_0x37b05f;return _0x339a79&&Boolean(_0x37b05f)&&_0xbc950b&&_0x2c1100;},_0x46ea6d=>o(_0x5bad43,'ELEMENT_LIST_ITEM',_0x46ea6d));}['_registerLegacyDescription'](){const _0x55ea67=this['editor'],_0x4b1a9b=_0x55ea67['locale'];function _0x351c9f(_0x26196a){const _0x261db0=_0x55ea67['commands']['get']('bulletedList')['value'],_0x3dfed7=_0x55ea67['commands']['get']('numberedList')['value'];return'numberedList'===_0x26196a?_0x261db0:_0x3dfed7;}_0x55ea67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x529721){if('formatBlock'!=_0x529721['type'])return;const {data:_0x3b7776}=_0x529721;if(!_0x3b7776)return;let _0x47e0d4,_0x22367d,_0x425aac,_0x1039e6;switch(_0x3b7776['commandName']){case'bulletedList':_0x425aac=_0x3b7776['commandParams'][0x0]['forceValue'],_0x1039e6=_0x351c9f(_0x3b7776['commandName']),_0x47e0d4=_0x425aac?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1039e6&&_0x55ea67['config']['get']('list.multiBlock')||(_0x47e0d4='*Change\x20to:*\x20%0'),_0x22367d={'type':'format','content':o(_0x4b1a9b,_0x47e0d4,o(_0x4b1a9b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x425aac=_0x3b7776['commandParams'][0x0]['forceValue'],_0x1039e6=_0x351c9f(_0x3b7776['commandName']),_0x47e0d4=_0x425aac?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1039e6&&_0x55ea67['config']['get']('list.multiBlock')||(_0x47e0d4='*Change\x20to:*\x20%0'),_0x22367d={'type':'format','content':o(_0x4b1a9b,_0x47e0d4,o(_0x4b1a9b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x47e0d4='*Indent:*\x20%0',_0x22367d={'type':'format','content':o(_0x4b1a9b,_0x47e0d4,o(_0x4b1a9b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x47e0d4=function(_0x7273fb){const _0x4c4caf=_0x7273fb['getFirstRange']();let _0x1a098c=_0x4c4caf['start']['nodeAfter'];for(;_0x1a098c&&_0x4c4caf['containsItem'](_0x1a098c);){if(_0x1a098c['getAttribute']('listIndent')>0x0)return!0x1;_0x1a098c=_0x1a098c['nextSibling'];}return!0x0;}(_0x529721)?o(_0x4b1a9b,'*Format:*\x20remove\x20from\x20%0',o(_0x4b1a9b,function(_0x7f7040){return'ELEMENT_'+_0x7f7040['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x529721))):o(_0x4b1a9b,'*Outdent:*\x20%0',o(_0x4b1a9b,'ELEMENT_LIST_ITEM')),_0x22367d={'type':'format','content':_0x47e0d4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3b7776['multipleBlocks']&&(_0x47e0d4='*Merge:*\x20%0',_0x22367d={'type':'deletion','content':o(_0x4b1a9b,_0x47e0d4,o(_0x4b1a9b,'ELEMENT_LIST_ITEM'))});}return _0x22367d;});}}function Te(_0x3ea8a0){let _0x18ebd3=_0x3ea8a0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x18ebd3;){const _0x439da4=_0x18ebd3['getAttribute']('listItemId');if(!_0x439da4)return!0x1;if(_0x439da4==_0x3ea8a0['data']['newValue'])return'newValue';if(_0x439da4==_0x3ea8a0['data']['oldValue'])return'oldValue';_0x18ebd3=_0x18ebd3['previousSibling'];}return!0x1;}class q extends _0x3d8ee5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5f0efd=this['editor']['config']['get']('list.properties'),_0x23860a=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f0efd['styles']&&(_0x23860a['enableDefaultAttributesIntegration']('listStyle'),_0x23860a['registerBlockAttribute']('listStyle')),_0x5f0efd['reversed']&&(_0x23860a['enableDefaultAttributesIntegration']('listReversed'),_0x23860a['registerBlockAttribute']('listReversed')),_0x5f0efd['startIndex']&&(_0x23860a['enableDefaultAttributesIntegration']('listStart'),_0x23860a['registerBlockAttribute']('listStart'));const _0x4e03f5={'type':'format','content':''};_0x23860a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3c720c=this['editor']['locale'];_0x23860a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3c720c,'FORMAT_LIST_REVERSED')),_0x23860a['descriptionFactory']['registerDescriptionCallback'](_0x56a4d3=>{const {data:_0x46bb61}=_0x56a4d3;if(_0x46bb61&&'listReversed'==_0x46bb61['key'])return null==_0x46bb61['newValue']||0x0==_0x46bb61['newValue']&&null==_0x46bb61['oldValue']?_0x4e03f5:void 0x0;}),_0x23860a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3c720c,'FORMAT_LIST_START')),_0x23860a['descriptionFactory']['registerDescriptionCallback'](_0x31bdfb=>{const {data:_0x24e45a}=_0x31bdfb;if(_0x24e45a&&'listStart'==_0x24e45a['key'])return null==_0x24e45a['newValue']||0x1==_0x24e45a['newValue']&&null==_0x24e45a['oldValue']?_0x4e03f5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x31d0bc=>{if(_0x31d0bc['batch']['isUndo'])return!0x1;let _0x430662=!0x1;const _0x223b87=_0x23860a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x196656=>{const _0x58f026=_0x23860a['_getAttributeKey'](_0x196656);return'listStart'==_0x58f026||'listReversed'==_0x58f026;});for(const _0x3cdf07 of _0x223b87){const _0x143b00=_0x3cdf07['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x143b00||'customNumbered'==_0x143b00)continue;_0x23860a['_findSuggestions'](_0x3cdf07['getFirstRange'](),'attribute')['find'](_0x3880c5=>'listType'==_0x23860a['_getAttributeKey'](_0x3880c5['suggestion']))||(_0x31d0bc['removeMarker'](_0x3cdf07['getFirstMarker']()),_0x430662=!0x0);}return _0x430662;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x56d1ea){const _0x567b12=this['editor']['locale'],{data:_0x28a53d}=_0x56d1ea,_0x4f6aa1={'type':'format','content':''};if(!_0x28a53d||'listStyle'!=_0x28a53d['key'])return;if(!_0x28a53d['oldValue'])return'default'==_0x28a53d['newValue']?_0x4f6aa1:{'type':'format','content':''+o(_0x567b12,'*Set\x20format:*\x20%0',o(_0x567b12,this['_getTranslationKeyForListStyle'](_0x28a53d['newValue'])))};if(!_0x28a53d['newValue']){if('default'==_0x28a53d['oldValue'])return _0x4f6aa1;let _0x63fd4=_0x56d1ea['head'];for(;_0x63fd4;){if(_0x63fd4['data']&&'listType'==_0x63fd4['data']['key']&&_0x63fd4['data']['newValue'])return _0x4f6aa1;_0x63fd4=_0x63fd4['next'];}return{'type':'format','content':''+o(_0x567b12,'*Remove\x20format:*\x20%0',o(_0x567b12,this['_getTranslationKeyForListStyle'](_0x28a53d['oldValue'])))};}if('default'!=_0x28a53d['newValue'])return{'type':'format','content':''+o(_0x567b12,'*Set\x20format:*\x20%0',o(_0x567b12,this['_getTranslationKeyForListStyle'](_0x28a53d['newValue'])))};let _0x2a46d5=_0x56d1ea['head'];for(;_0x2a46d5;){if(_0x2a46d5['data']&&'listType'==_0x2a46d5['data']['key']&&_0x2a46d5['data']['newValue']&&_0x2a46d5['data']['oldValue'])return _0x4f6aa1;_0x2a46d5=_0x2a46d5['next'];}return{'type':'format','content':o(_0x567b12,'*Set\x20format:*\x20%0',o(_0x567b12,'ELEMENT_'+_0x56d1ea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x24d575=this['editor'],_0xcaea19=_0x24d575['locale'];_0x24d575['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a68f3=>{if('formatBlock'!=_0x2a68f3['type'])return;const {data:_0x36e105}=_0x2a68f3;if(!_0x36e105)return;let _0xde4213,_0x4bc68b;switch(_0x36e105['commandName']){case'listStyle':_0xde4213='*Change\x20to:*\x20%0',_0x4bc68b={'type':'format','content':o(_0xcaea19,_0xde4213,o(_0xcaea19,this['_getTranslationKeyForListStyle'](_0x36e105['commandParams'][0x0]['type'])))};break;case'listReversed':_0xde4213=_0x36e105['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4bc68b={'type':'format','content':o(_0xcaea19,_0xde4213)};break;case'listStart':_0xde4213='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4bc68b={'type':'format','content':o(_0xcaea19,_0xde4213,_0x36e105['commandParams'][0x0]['startIndex'])};}return _0x4bc68b;});}['_getTranslationKeyForListStyle'](_0x40424e){return'ELEMENT_'+function(_0x18d2dc){if(Se['includes'](_0x18d2dc))return'bulleted';if(_e['includes'](_0x18d2dc))return'numbered';return null;}(_0x40424e)['toUpperCase']()+'_LIST_'+_0x40424e['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x3d8ee5{['afterInit'](){const _0x11093d=this['editor'];_0x11093d['commands']['get']('emoji')&&_0x11093d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x3d8ee5{static get['requires'](){return[_0xde27ae];}['init'](){const _0x47a02b=this['editor'],_0x21c672=_0x47a02b['plugins']['get']('TrackChangesEditing'),_0x2b809c=_0x47a02b['commands']['get']('enter');_0x21c672['enableCommand']('enter',()=>{_0x47a02b['model']['change'](_0x53852b=>{const _0x2fa288=_0x47a02b['model']['document']['selection'],_0x26cee6=_0x2fa288['getFirstPosition'](),_0x5710cc=_0x4f11f5['fromRange'](_0x2fa288['getFirstRange']());if(_0x2b809c['enterBlock'](_0x53852b)){const _0x358823=_0x47a02b['model']['createPositionAt'](_0x26cee6['parent']['nextSibling'],0x0),_0x57890d=_0x53852b['createRange'](_0x26cee6,_0x358823);_0x21c672['markInsertion'](_0x57890d);}else _0x53852b['setSelection'](_0x53852b['createRange'](_0x5710cc['end']));_0x5710cc['detach'](),_0x2b809c['fire']('afterExecute',{'writer':_0x53852b});});}),_0x47a02b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x47a02b,'split'),{'priority':'high'}),_0x47a02b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x476d7f,_0x2db746,_0x6fe6f2)=>{const _0x49ac00=_0x6fe6f2['mapper']['markerNameToElements'](_0x2db746['markerName']);if(_0x49ac00){for(const _0x1cde51 of _0x49ac00)_0x1cde51['hasClass']('ck-suggestion-marker-split')&&(_0x6fe6f2['mapper']['unbindElementFromMarkerName'](_0x1cde51,_0x2db746['markerName']),_0x6fe6f2['writer']['remove'](_0x1cde51));}},{'priority':'high'}),_0x47a02b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4ac9c7,_0x48ef6c,_0x20c529)=>{_0x20c529['options']['showSuggestionHighlights']&&De(_0x47a02b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4ac9c7,_0x48ef6c,_0x20c529);},{'priority':'high'});}}class Q extends _0x3d8ee5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1fe8dd=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fe8dd['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1fe8dd['enableCommand']('findNext'),_0x1fe8dd['enableCommand']('findPrevious'),_0x1fe8dd['enableCommand']('replace'),_0x1fe8dd['enableCommand']('replaceAll');}['handleFindCommand'](_0x49a10a,_0x128e59,_0x56acde={}){const _0x4f4b30=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x49a10a(_0x2e490c=>{let _0x53c8d1=('string'==typeof _0x128e59?_0x4f4b30['findByTextCallback'](_0x128e59,_0x56acde):_0x128e59)(_0x2e490c);Array['isArray'](_0x53c8d1)&&(_0x53c8d1={'results':_0x53c8d1,'searchText':'string'==typeof _0x128e59?_0x128e59:''});const _0x3a8b78=_0x53c8d1['results']['filter'](_0x597c1d=>!0x1===this['_isInDeletionRange'](_0x597c1d,_0x2e490c['item']));return{..._0x53c8d1,'results':_0x3a8b78};},_0x56acde);}['_isInDeletionRange'](_0x15830a,_0x5a65d0){const _0x514b4b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a65d0,_0x15830a['start']),this['editor']['model']['createPositionAt'](_0x5a65d0,_0x15830a['end']));for(const _0x2c9e66 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x514b4b['getIntersection'](_0x2c9e66['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x3d8ee5{['afterInit'](){const _0xef9475=this['editor']['locale'],_0x41aff6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x296c0a,commandName:_0x582897}of eo)this['editor']['plugins']['has'](_0x296c0a)&&(_0x41aff6['enableDefaultAttributesIntegration'](_0x582897),_0x41aff6['registerInlineAttribute'](_0x582897));_0x41aff6['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xef9475,'FORMAT_FONT_SIZE')),_0x41aff6['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xef9475,'FORMAT_FONT_FAMILY')),_0x41aff6['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xef9475,'FORMAT_FONT_COLOR')),_0x41aff6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xef9475,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f4757=this['editor'],_0x101db9=_0x2f4757['locale'];_0x2f4757['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x529637=>{const _0x14affc=_0x101db9['t'];if('formatInline'!=_0x529637['type'])return;const {data:_0x4eb513}=_0x529637;if(null!=_0x4eb513){if('fontSize'==_0x4eb513['commandName']){const _0x366300=_0x4eb513['commandParams'][0x0]['value'];if(_0x366300){const _0x3a8636=_0x14affc(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xee072c=>_0xee072c['model']==_0x366300)['title'])['toLowerCase']();return{'type':'format','content':o(_0x101db9,'*Set\x20font\x20size:*\x20%0',_0x3a8636)};}return{'type':'format','content':o(_0x101db9,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4eb513['commandName']){const _0x2b8e82=_0x4eb513['commandParams'][0x0]['value'];return _0x2b8e82?{'type':'format','content':o(_0x101db9,'*Set\x20font\x20family:*\x20%0',_0x2b8e82)}:{'type':'format','content':o(_0x101db9,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4eb513['commandName']){const _0x44884a=_0x4eb513['commandParams'][0x0]['value'];if(_0x44884a){const _0x68450=_0xa4dfc5(this['editor']['config']['get']('fontColor.colors'))['find'](_0x570b85=>_0x570b85['model']==_0x44884a);let _0x55e066=_0x44884a,_0x1f19b4='';return _0x68450&&(_0x55e066=_0x68450['label'],_0x1f19b4=_0x14affc(_0x55e066)['toLowerCase']()),{'type':'format','content':o(_0x101db9,'*Set\x20font\x20color:*\x20%0',_0x1f19b4)['trim'](),'color':{'value':_0x44884a,'title':_0x1f19b4||_0x55e066}};}return{'type':'format','content':o(_0x101db9,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4eb513['commandName']){const _0x36e00e=_0x4eb513['commandParams'][0x0]['value'];if(_0x36e00e){const _0x57a0c4=_0xa4dfc5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x118214=>_0x118214['model']==_0x36e00e);let _0x1e3ede=_0x36e00e,_0x3ab512='';return _0x57a0c4&&(_0x1e3ede=_0x57a0c4['label'],_0x3ab512=_0x14affc(_0x1e3ede)['toLowerCase']()),{'type':'format','content':o(_0x101db9,'*Set\x20font\x20background\x20color:*\x20%0',_0x3ab512)['trim'](),'color':{'value':_0x36e00e,'title':_0x3ab512||_0x1e3ede}};}return{'type':'format','content':o(_0x101db9,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x3d8ee5{['afterInit'](){const _0x271a32=this['editor'],_0x40a126=_0x271a32['plugins']['get']('TrackChangesEditing'),_0x335619=_0x271a32['commands']['get']('copyFormat'),_0x3b73db=_0x271a32['commands']['get']('pasteFormat');_0x335619&&_0x3b73db&&(_0x40a126['enableDefaultAttributesIntegration']('pasteFormat'),_0x40a126['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x33bae9=this['editor'],_0x39b9b1=_0x33bae9['locale'];_0x33bae9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b7ea0=>{if('formatBlock'!=_0x1b7ea0['type']&&'formatInline'!=_0x1b7ea0['type'])return;const {data:_0x98caa1}=_0x1b7ea0;if(_0x98caa1&&'pasteFormat'===_0x98caa1['commandName']){const _0x5b1903=[],_0x1e1c51=_0x98caa1['commandParams'][0x0];for(const [_0xe47920,_0x593b86]of Object['entries'](_0x1e1c51))_0x5b1903['push'](ro(_0x33bae9,_0xe47920,_0x593b86));return _0x5b1903['length']?{'type':'format','content':o(_0x39b9b1,'*Set\x20format\x20to:*\x20%0',_0x5b1903['join'](',\x20'))}:{'type':'format','content':o(_0x39b9b1,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xb661de,_0x1a02ad,_0x57eb95){const _0x206f99=_0xb661de['locale']['t'],_0x46b44e=_0x1a02ad['split'](/(?=[A-Z])/)['join']('\x20'),_0x3bbba2=_0x206f99(_0x46b44e['charAt'](0x0)['toUpperCase']()+_0x46b44e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x57eb95)return _0x3bbba2;if('fontColor'===_0x1a02ad||'fontBackgroundColor'===_0x1a02ad){const _0x81b1a=_0xa4dfc5(_0xb661de['config']['get']('fontColor.colors'))['find'](_0x13d4f5=>_0x13d4f5['model']==_0x57eb95);return _0x3bbba2+'\x20('+(_0x81b1a?_0x206f99(_0x81b1a['label'])['toLowerCase']():_0x57eb95)+')';}if('fontSize'===_0x1a02ad&&isNaN(parseFloat(_0x57eb95))){const _0x386c28=_0xb661de['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xb661de['config']['get']('fontSize.options'))['find'](_0xf31773=>_0xf31773['model']==_0x57eb95);return _0x3bbba2+'\x20('+(_0x386c28?_0x206f99(_0x386c28['title'])['toLowerCase']():_0x57eb95)+')';}return _0x3bbba2+'\x20('+_0x57eb95+')';}class Z extends _0x3d8ee5{['_headingOptions'];['afterInit'](){const _0x31ac0d=this['editor'];if(!_0x31ac0d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x31ac0d['config']['get']('heading.options');const _0x297234=_0x31ac0d['locale'],_0x443935=_0x31ac0d['plugins']['get']('TrackChangesEditing');_0x443935['enableDefaultAttributesIntegration']('heading');for(const _0x5c7988 of this['_headingOptions'])'paragraph'!=_0x5c7988['model']&&_0x443935['descriptionFactory']['registerElementLabel'](_0x5c7988['model'],_0xd74f42=>{const _0x258d03=this['_getHeadingLevel'](_0x5c7988['model']);return null!==_0x258d03?_0x120d78(_0xd74f42,_0x258d03):_0x3ced0a(_0xd74f42,_0x5c7988['title']);});function _0x120d78(_0x180c64,_0x336822){return o(_0x297234,'ELEMENT_HEADING',[_0x180c64,_0x336822]);}function _0x3ced0a(_0x14e7ce,_0x2b1c6f){return o(_0x297234,'ELEMENT_HEADING_CUSTOM',[_0x14e7ce,_0x2b1c6f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x586414=this['editor'],_0x4dfb71=_0x586414['locale'];function _0x1b2895(_0x5ac2e1,_0xff6744){return o(_0x4dfb71,'ELEMENT_HEADING_CUSTOM',[_0x5ac2e1,_0xff6744]);}_0x586414['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b7a21=>{if('formatBlock'!=_0x4b7a21['type'])return;const {data:_0x4151f8}=_0x4b7a21;if(_0x4151f8&&'heading'==_0x4151f8['commandName']){const _0x5f383f=_0x4151f8['commandParams'][0x0]['value'],_0x51706d=this['_getHeadingLevel'](_0x5f383f);if(null!==_0x51706d)return{'type':'format','content':o(_0x4dfb71,'*Change\x20to:*\x20%0',(_0x399f92=0x1,_0xff3a32=_0x51706d,o(_0x4dfb71,'ELEMENT_HEADING',[_0x399f92,_0xff3a32])))};const _0xdf577c=this['_headingOptions']['find'](_0x1f34f4=>_0x1f34f4['model']===_0x5f383f)['title'];return{'type':'format','content':o(_0x4dfb71,'*Change\x20to:*\x20%0',_0x1b2895(0x1,_0xdf577c))};}var _0x399f92,_0xff3a32;});}['_getHeadingLevel'](_0x925967){const _0x19b453=_0x925967['match'](/^heading(\d+)/);if(_0x19b453)return _0x19b453[0x1];const _0x5f8ac0=this['_headingOptions']?.['find'](_0x4a9b55=>_0x4a9b55['model']==_0x925967);if(_0x5f8ac0&&_0x5f8ac0['view']){const _0x1fa358=_0x5f8ac0['view'],_0x26d9f3=(_0x1fa358['name']??_0x1fa358)['match'](/^h(\d+)/);if(_0x26d9f3)return _0x26d9f3[0x1];}return null;}}class tt extends _0x3d8ee5{['afterInit'](){const _0x4268cc=this['editor'];if(!_0x4268cc['plugins']['has']('HighlightEditing'))return;const _0x362534=_0x4268cc['plugins']['get']('TrackChangesEditing'),_0x506930=_0x4268cc['locale'];_0x362534['enableDefaultAttributesIntegration']('highlight'),_0x362534['registerInlineAttribute']('highlight'),_0x362534['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x506930,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b1b52=this['editor'],_0xc89651=_0x3b1b52['locale'];_0x3b1b52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x160708=>{if('formatInline'!=_0x160708['type'])return;const {data:_0x189311}=_0x160708;if(_0x189311&&'highlight'==_0x189311['commandName']){const _0x3b9041=_0xc89651['t'],_0xe7a1be=_0x189311['commandParams'][0x0]['value'];if(_0xe7a1be){const _0x2b0cc5=_0x3b1b52['config']['get']('highlight.options')['find'](_0xab5ba5=>_0xab5ba5['model']==_0xe7a1be),_0x4cdd3f=_0x3b9041(_0x2b0cc5['title'])['toLowerCase']();return{'type':'format','content':o(_0xc89651,'*Set\x20highlight:*\x20%0',_0x4cdd3f),'color':{'value':_0x2b0cc5['color'],'title':_0x2b0cc5['title']}};}return{'type':'format','content':o(_0xc89651,'*Remove\x20highlight*',o(_0xc89651,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3d8ee5{['afterInit'](){const _0x524c9b=this['editor'];if(!_0x524c9b['plugins']['has']('HorizontalLineEditing'))return;_0x524c9b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x363645=_0x524c9b['plugins']['get']('TrackChangesEditing'),_0x4e4f6e=_0x524c9b['locale'];_0x363645['descriptionFactory']['registerElementLabel']('horizontalLine',_0x178869=>o(_0x4e4f6e,'ELEMENT_HORIZONTAL_LINE',_0x178869)),_0x524c9b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x296c95,{writer:_0x45fc52,options:_0x3206ef})=>{if(!_0x3206ef['showSuggestionHighlights'])return null;const _0x4b7359=_0x45fc52['createContainerElement']('div'),_0x2d3dec=_0x45fc52['createEmptyElement']('hr');return _0x45fc52['addClass']('ck-horizontal-line',_0x4b7359),_0x45fc52['insert'](_0x45fc52['createPositionAt'](_0x4b7359,0x0),_0x2d3dec),_0x4b7359;},'converterPriority':'high'});}}class nt extends _0x3d8ee5{['afterInit'](){const _0x33cfb9=this['editor'];if(!_0x33cfb9['plugins']['has']('HtmlEmbed'))return;const _0x14c79c=_0x33cfb9['plugins']['get']('TrackChangesEditing'),_0x7d4fc2=_0x33cfb9['locale'];_0x14c79c['descriptionFactory']['registerElementLabel']('rawHtml',_0x1aa9a4=>o(_0x7d4fc2,'ELEMENT_HTML_EMBED',_0x1aa9a4)),_0x14c79c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x14c79c['registerBlockAttribute']('value'),_0x14c79c['descriptionFactory']['registerDescriptionCallback'](_0x5c37b2=>{if('attribute'!=_0x5c37b2['type'])return;const {data:_0x4df956}=_0x5c37b2;if(_0x4df956&&'value'==_0x4df956['key']&&_0x5c37b2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x40ca71=o(_0x7d4fc2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x7d4fc2,'*Change\x20%0\x20content*',_0x40ca71)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4be48e=this['editor'],_0x158f58=_0x4be48e['locale'];_0x4be48e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aa180=>{if('formatBlock'!=_0x1aa180['type'])return;const {data:_0x4a2d92}=_0x1aa180;if(_0x4a2d92&&'htmlEmbed'==_0x4a2d92['commandName']){const _0x3a50c0=o(_0x158f58,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x158f58,'*Change\x20%0\x20content*',_0x3a50c0)};}});}}class et extends _0x3d8ee5{['afterInit'](){const _0x37de4e=this['editor'];if(!_0x37de4e['plugins']['has']('ImageEditing'))return;const _0x362827=_0x37de4e['plugins']['get']('TrackChangesEditing'),_0x5d5c2e=_0x37de4e['plugins']['get']('ImageUtils'),_0x3442bb=_0x37de4e['locale'];_0x362827['enableCommand']('insertImage'),_0x362827['descriptionFactory']['registerElementLabel']('imageBlock',_0x484a25=>o(_0x3442bb,'ELEMENT_IMAGE',_0x484a25)),_0x362827['descriptionFactory']['registerElementLabel']('imageInline',_0x176cf4=>o(_0x3442bb,'ELEMENT_INLINE_IMAGE',_0x176cf4)),_0x362827['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3442bb,'ELEMENT_CAPTION')),_0x37de4e['plugins']['has']('ImageUploadEditing')&&_0x362827['enableCommand']('uploadImage'),_0x37de4e['plugins']['has']('ImageBlockEditing')&&_0x37de4e['plugins']['has']('ImageInlineEditing')&&(_0x362827['enableCommand']('imageTypeInline',(_0x3033db,_0x33a405)=>{const _0x5db78a=_0x5d5c2e['getClosestSelectedImageElement'](_0x37de4e['model']['document']['selection']);_0x37de4e['model']['change'](()=>{_0x362827['markBlockFormat'](_0x5db78a,{'commandName':'imageTypeInline','commandParams':[_0x33a405]},[],'convertBlockImageToInline');});}),_0x362827['enableCommand']('imageTypeBlock',(_0x431580,_0x16ab91)=>{_0x37de4e['model']['change'](_0x1c380f=>{let _0x2118a7=_0x5d5c2e['getClosestSelectedImageElement'](_0x37de4e['model']['document']['selection']),_0x179453=_0x1c380f['createRangeOn'](_0x2118a7);const _0x50a0e8=_0x55d77d['fromPosition'](_0x179453['start'],'toPrevious'),_0x4b14f9=_0x55d77d['fromPosition'](_0x179453['end'],'toNext');_0x362827['forceDefaultExecution'](()=>_0x431580(_0x16ab91)),_0x2118a7=_0x5d5c2e['getClosestSelectedImageElement'](_0x37de4e['model']['document']['selection']),_0x179453=_0x1c380f['createRangeOn'](_0x2118a7);const _0x227dda=_0x1c380f['createRange'](_0x50a0e8,_0x4b14f9);_0x50a0e8['detach'](),_0x4b14f9['detach'](),_0x362827['markBlockFormat'](_0x2118a7,{'commandName':'imageTypeInline','commandParams':[_0x16ab91]},[],'convertInlineImageToBlock'),_0x227dda['start']['isBefore'](_0x179453['start'])&&_0x362827['markInsertion'](_0x1c380f['createRange'](_0x227dda['start'],_0x179453['start']),'convertInlineImageToBlock'),_0x179453['end']['isBefore'](_0x227dda['end'])&&_0x362827['markInsertion'](_0x1c380f['createRange'](_0x179453['end'],_0x227dda['end']),'convertInlineImageToBlock');});}),_0x362827['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x362827['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x362827['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x362827['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x362827['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x362827['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2ad434])=>{const _0x8f9edd=_0x362827['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5add36=_0x2ad434['start'],_0x18ef90=_0x2ad434['end'];const _0x47bc4e=_0x37de4e['model']['schema']['getNearestSelectionRange'](_0x5add36,'backward'),_0x1266cf=_0x37de4e['model']['schema']['getNearestSelectionRange'](_0x18ef90,'forward');_0x47bc4e['isCollapsed']&&(_0x5add36=_0x47bc4e['start']),_0x1266cf['isCollapsed']&&(_0x18ef90=_0x1266cf['end']),_0x8f9edd([_0x37de4e['model']['createRange'](_0x5add36,_0x18ef90)]);}),_0x362827['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x317a61),_0x362827['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x317a61)),_0x37de4e['plugins']['has']('ImageCaptionEditing')&&(_0x362827['enableCommand']('toggleImageCaption',(_0x1cd0af,_0x45659b)=>{const _0x2a6869=_0x37de4e['plugins']['get']('ImageCaptionUtils');let _0x14fae5=_0x5d5c2e['getClosestSelectedImageElement'](_0x37de4e['model']['document']['selection']),_0x5b7e78=_0x2a6869['getCaptionFromImageModelElement'](_0x14fae5);_0x37de4e['model']['change'](()=>{if(_0x5b7e78)return void _0x362827['markDeletion'](_0x37de4e['model']['createRangeOn'](_0x5b7e78));const _0x569e2c=_0x5d5c2e['isBlockImage'](_0x14fae5);_0x1cd0af(_0x45659b),_0x14fae5=_0x5d5c2e['getClosestSelectedImageElement'](_0x37de4e['model']['document']['selection']),_0x5b7e78=_0x2a6869['getCaptionFromImageModelElement'](_0x14fae5),_0x362827['markInsertion'](_0x37de4e['model']['createRangeOn'](_0x5b7e78),_0x569e2c?null:'imageCaption');});}),_0x362827['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x317a61));const _0x3439d0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x6247ba(_0x468e59,_0x1f96ae){const _0x53839b=_0x3439d0['findIndex'](({type:_0xe09fb5,subType:_0x10e863})=>_0x468e59['type']==_0xe09fb5&&_0x468e59['subType']==_0x10e863),_0x4161b5=_0x3439d0['findIndex'](({type:_0x493956,subType:_0x2b4ab9})=>_0x1f96ae['type']==_0x493956&&_0x1f96ae['subType']==_0x2b4ab9);if(_0x53839b<0x0||_0x4161b5<0x0)return!0x1;const _0x624b3b=_0x468e59['getFirstRange'](),_0x2cd108=_0x1f96ae['getFirstRange']();if((0x0==_0x53839b||0x1==_0x53839b)&&0x2==_0x4161b5&&_0x624b3b['isIntersecting'](_0x2cd108))return!0x0;if(0x2==_0x53839b&&0x3==_0x4161b5){const _0xb334e6=_0x362827['_findSuggestions'](_0x624b3b,'insertion')['filter'](({suggestion:_0x4127d0,meta:_0x2e24a2})=>_0x2e24a2['isOwn']&&'convertInlineImageToBlock'==_0x4127d0['subType']);if(_0xb334e6['length']>0x1&&_0x2cd108['end']['isEqual'](_0x624b3b['start']))return!0x0;if(0x1==_0xb334e6['length']&&(_0x624b3b['start']['isEqual'](_0x2cd108['end'])||_0x624b3b['end']['isEqual'](_0x2cd108['start'])))return!0x0;}if(0x3==_0x53839b&&0x3==_0x4161b5&&_0x624b3b['start']['isBefore'](_0x2cd108['start'])){const _0x2d79cb=_0x624b3b['end']['nodeAfter'],_0x4a2e06=_0x2cd108['start']['nodeBefore'];return _0x5d5c2e['isBlockImage'](_0x2d79cb)&&_0x2d79cb===_0x4a2e06;}return!0x1;}function _0x317a61(_0x4592d2,_0x19888d){return _0x6247ba(_0x4592d2,_0x19888d)?[_0x4592d2,_0x19888d]:_0x6247ba(_0x19888d,_0x4592d2)?[_0x19888d,_0x4592d2]:null;}_0x37de4e['plugins']['has']('ImageResize')&&(_0x362827['enableDefaultAttributesIntegration']('resizeImage'),_0x362827['registerBlockAttribute']('resizedWidth'),_0x362827['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3442bb,'FORMAT_IMAGE_SIZE'))),_0x37de4e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x362827['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x362827['registerBlockAttribute']('alt')),_0x37de4e['plugins']['has']('PictureEditing')&&(_0x362827['registerBlockAttribute']('sources'),_0x362827['descriptionFactory']['registerDescriptionCallback'](_0x27a6ad=>{if('attribute'!=_0x27a6ad['type'])return;const {data:_0x58e28f}=_0x27a6ad;return _0x58e28f&&'sources'==_0x58e28f['key']?{'type':'format','content':''}:void 0x0;})),_0x37de4e['plugins']['has']('ImageSizeAttributes')&&(_0x362827['registerBlockAttribute']('width'),_0x362827['registerBlockAttribute']('height'),_0x362827['descriptionFactory']['registerDescriptionCallback'](_0x128530=>{if('attribute'!=_0x128530['type'])return;const {data:_0x5a9481}=_0x128530;return!_0x5a9481||'width'!=_0x5a9481['key']&&'height'!=_0x5a9481['key']?void 0x0:{'type':'format','content':''};})),_0x362827['descriptionFactory']['registerDescriptionCallback'](_0x212e43=>{if(!!_0x3439d0['find'](({type:_0x37981c,subType:_0x458abc})=>_0x212e43['type']==_0x37981c&&_0x212e43['subType']==_0x458abc))return _0x212e43['previous']?{}:void 0x0;}),_0x362827['descriptionFactory']['registerDescriptionCallback'](_0x32b619=>{if('insertion'==_0x32b619['type']||'deletion'==_0x32b619['type']){const _0x27bb31=_0x32b619['getContainedElement']();if(_0x27bb31&&_0x27bb31['is']('element','caption'))return{'type':'insertion'==_0x32b619['type']?'addObject':'removeObject','element':_0x27bb31,'quantity':0x1};}}),_0x362827['descriptionFactory']['registerDescriptionCallback'](_0x230191=>'formatBlock'==_0x230191['type']&&'convertInlineImageToBlock'==_0x230191['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x230191['type']&&'convertBlockImageToInline'==_0x230191['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x362827['descriptionFactory']['registerDescriptionCallback'](_0x2f1d23=>{if('attribute'!=_0x2f1d23['type'])return;const {data:_0x2900ab}=_0x2f1d23;if(!_0x2900ab||'alt'!=_0x2900ab['key'])return;const _0x2d69f8=_0x2900ab['newValue'];return _0x2d69f8?{'type':'format','content':o(_0x3442bb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d69f8+'\x22')}:{'type':'format','content':o(_0x3442bb,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c8d6d=this['editor'],_0x33cf8b=_0x5c8d6d['locale'];_0x5c8d6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33b4da=>{if('formatBlock'!=_0x33b4da['type']&&'formatInline'!=_0x33b4da['type'])return;const {data:_0x256492}=_0x33b4da;if(_0x256492){if('imageTextAlternative'==_0x256492['commandName']){const _0x5b7fce=_0x256492['commandParams'][0x0]['newValue'];return _0x5b7fce?{'type':'format','content':o(_0x33cf8b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5b7fce+'\x22')}:{'type':'format','content':o(_0x33cf8b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x256492['commandName']){const _0x144236=_0x256492['commandParams'][0x0]['width'];return _0x144236?{'type':'format','content':o(_0x33cf8b,'*Set\x20image\x20width:*\x20%0',_0x144236)}:{'type':'format','content':o(_0x33cf8b,'*Reset\x20image\x20width*')};}}});}}class st extends _0x3d8ee5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x26bbbf=this['editor']['locale'],_0x1e5d32=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e5d32['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1e5d32['registerBlockAttribute']('src'),_0x1e5d32['descriptionFactory']['registerDescriptionCallback'](_0x342e00=>{if('attribute'!=_0x342e00['type'])return;const {data:_0xa43d}=_0x342e00;return _0xa43d&&'src'==_0xa43d['key']?_0xa43d['newValue']&&_0xa43d['oldValue']?{'type':'format','content':o(_0x26bbbf,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2e6ef6=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e6ef6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2e6ef6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e6ef6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2e6ef6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e426c=this['editor'],_0x557980=_0x2e426c['locale'];_0x2e426c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29464f=>{if('formatBlock'!=_0x29464f['type']&&'formatInline'!=_0x29464f['type'])return;const {data:_0x34b396}=_0x29464f;if(!_0x34b396||'replaceImageSource'!=_0x34b396['commandName'])return;return{'type':'format','content':o(_0x557980,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x3d8ee5{['afterInit'](){const _0x247567=this['editor'];if(!_0x247567['plugins']['has']('ImageStyleEditing'))return;const _0x49513b=_0x247567['plugins']['get']('TrackChangesEditing'),_0x402add=_0x247567['plugins']['get']('ImageUtils'),_0x1da315={};_0x49513b['enableCommand']('imageStyle',(_0x23d0d3,_0x32fd2)=>{const _0x1475a2=_0x247567['plugins']['get']('Users')['me'],_0xf2ffcc=_0x247567['commands']['get']('imageStyle');let _0x425421=_0x402add['getClosestSelectedImageElement'](_0x247567['model']['document']['selection']),_0x515c60=_0x247567['model']['createRangeOn'](_0x425421),_0x20374d=_0xf2ffcc['value'];if(_0x20374d==_0x32fd2['value'])return;const _0x329ac0={'commandName':'imageStyle','commandParams':[_0x32fd2],'formatGroupId':_0x5b1bcf()};_0x247567['model']['change'](()=>{if(_0x49513b['getSuggestions']()['filter'](_0x47f86d=>_0x47f86d['isInContent']&&_0x1475a2==_0x47f86d['author']&&('formatBlock'==_0x47f86d['type']||'formatInline'==_0x47f86d['type'])&&('imageStylePreApply'==_0x47f86d['subType']||'imageStylePostApply'==_0x47f86d['subType'])&&_0x47f86d['getFirstRange']()['isEqual'](_0x515c60))['forEach'](_0x1b5569=>_0x49513b['discardSuggestion'](_0x1b5569['head'])),_0x425421=_0x402add['getClosestSelectedImageElement'](_0x247567['model']['document']['selection']),_0x515c60=_0x247567['model']['createRangeOn'](_0x425421),_0xf2ffcc['refresh'](),_0x247567['commands']['get']('imageTypeInline')['refresh'](),_0x247567['commands']['get']('imageTypeBlock')['refresh'](),_0x20374d=_0xf2ffcc['value'],_0x20374d!=_0x32fd2['value'])return _0x402add['isInlineImage'](_0x425421)&&_0xf2ffcc['shouldConvertImageType'](_0x32fd2['value'],_0x425421)?(_0x23d0d3({..._0x32fd2,'setImageSizes':!0x1}),_0x425421=_0x402add['getClosestSelectedImageElement'](_0x247567['model']['document']['selection']),void _0x49513b['markBlockFormat'](_0x425421,{..._0x329ac0,'commandReversedParams':[{'value':_0x20374d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x402add['isBlockImage'](_0x425421)?_0x49513b['markBlockFormat'](_0x425421,_0x329ac0,[],'imageStylePostApply'):_0x49513b['markInlineFormat'](_0x515c60,_0x329ac0,'imageStylePostApply'));});});for(const _0x2aa11b of _0x247567['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1da315[_0x2aa11b['name']]=_0x2aa11b['title']['toLowerCase']();_0x49513b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x49513b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x49513b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x49513b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4f3cdb])=>{_0x402add['setImageNaturalSizeAttributes'](_0x4f3cdb['getContainedElement']());}),_0x49513b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3686a9,_0x593b69)=>{_0x49513b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3686a9,{'commandName':_0x593b69['commandName'],'commandParams':_0x593b69['commandReversedParams']});}),_0x49513b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x446d18,_0x11d22d){if(_0x647237(_0x446d18,_0x11d22d))return[_0x446d18,_0x11d22d];if(_0x647237(_0x11d22d,_0x446d18))return[_0x11d22d,_0x446d18];return null;});const _0x4506a3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x647237(_0x871cb4,_0x18be58){const _0x3d84ba=_0x4506a3['findIndex'](({type:_0x3137f1,subType:_0x4ba61b})=>_0x871cb4['type']==_0x3137f1&&_0x871cb4['subType']==_0x4ba61b),_0x2b4623=_0x4506a3['findIndex'](({type:_0x1a7d6d,subType:_0x1072f3})=>_0x18be58['type']==_0x1a7d6d&&_0x18be58['subType']==_0x1072f3);if(_0x3d84ba<0x0||_0x2b4623<0x0)return!0x1;const _0x459e74=_0x871cb4['getFirstRange'](),_0xca06e6=_0x18be58['getFirstRange']();if((0x0==_0x3d84ba||0x1==_0x3d84ba)&&0x2==_0x2b4623&&_0x459e74['isIntersecting'](_0xca06e6))return!0x0;if(0x2==_0x3d84ba&&0x3==_0x2b4623){const _0x40833a=_0x49513b['_findSuggestions'](_0x459e74,'insertion')['filter'](({suggestion:_0x52b150,meta:_0x35b941})=>_0x35b941['isOwn']&&'convertInlineImageToBlock'==_0x52b150['subType']);if(_0x40833a['length']>0x1&&_0xca06e6['end']['isEqual'](_0x459e74['start']))return!0x0;if(0x1==_0x40833a['length']&&(_0x459e74['start']['isEqual'](_0xca06e6['end'])||_0x459e74['end']['isEqual'](_0xca06e6['start'])))return!0x0;}if(0x3==_0x3d84ba&&0x3==_0x2b4623&&_0x459e74['start']['isBefore'](_0xca06e6['start'])){const _0x7dcb44=_0x459e74['end']['nodeAfter'],_0x326d87=_0xca06e6['start']['nodeBefore'];return _0x402add['isBlockImage'](_0x7dcb44)&&_0x7dcb44===_0x326d87;}return!0x1;}_0x247567['model']['document']['registerPostFixer'](()=>{let _0xff6ada=!0x1;const _0x55158a=Array['from'](_0x247567['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf00f5e,data:_0x1cd1e1}of _0x55158a){const {group:_0x53dd50,type:_0x1cfb1a,subType:_0x4765ef,id:_0x5427fb}=_0x49513b['_splitMarkerName'](_0xf00f5e);if('suggestion'==_0x53dd50&&_0x49513b['hasSuggestion'](_0x5427fb)){if('formatBlock'==_0x1cfb1a&&('imageStylePreApply'==_0x4765ef||'imageStylePostApply'==_0x4765ef)){const _0x345db4=_0x49513b['getSuggestion'](_0x5427fb);if(_0x1cd1e1['newRange']){const _0x14d312=_0x345db4['getFirstRange']()['getContainedElement']();if(_0x402add['isBlockImage'](_0x14d312))continue;_0x49513b['discardSuggestion'](_0x345db4),_0xff6ada=!0x0;}}if('insertion'==_0x1cfb1a&&'imageCaption'==_0x4765ef&&!_0x1cd1e1['newRange']){const _0x1b3c65=_0x49513b['getSuggestion'](_0x5427fb);_0x1b3c65['next']&&_0x1b3c65['next']['isInContent']&&(_0x49513b['discardSuggestion'](_0x1b3c65['next']),_0xff6ada=!0x0);}}}return _0xff6ada;}),this['_registerLegacyDescription'](_0x1da315);}['_registerLegacyDescription'](_0x3fcdca){const _0x107bdf=this['editor'],_0x22a493=_0x107bdf['locale'];_0x107bdf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28e34b=>{if('formatBlock'!=_0x28e34b['type']&&'formatInline'!=_0x28e34b['type'])return;const {data:_0x3ae9e3}=_0x28e34b;if(!_0x3ae9e3||'imageStyle'!=_0x3ae9e3['commandName'])return;const _0x1b3105=_0x3ae9e3['commandParams'][0x0]['value'];return _0x224006('side'===_0x1b3105?o(_0x22a493,'FORMAT_SIDE_IMAGE'):_0x3fcdca[_0x1b3105]||_0x1b3105);function _0x224006(_0x194718){return{'type':'format','content':o(_0x22a493,'*Format:*\x20%0',_0x194718)};}});}}class rt extends _0x3d8ee5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x18a775){super(_0x18a775),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4d562b=this['editor'],_0x4e3e79=_0x4d562b['commands']['get']('importWord'),_0x359aef=_0x4d562b['commands']['get']('trackChanges');_0x4e3e79&&(_0x4e3e79['on']('execute',(_0x6fe97e,[,_0x58ca08])=>{this['_trackChangesValueDuringImport']=_0x359aef['value'],_0x58ca08['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4e3e79,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4e3e79,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x359aef['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4d562b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x48bd23,_0x2bc936){const {suggestions:_0x49eced}=_0x2bc936,_0x4703e3=this['editor']['commands']['get']('trackChanges'),_0x1a940e=_0x4703e3['value'];this['_trackChangesValueDuringImport']!==_0x1a940e&&(_0x4703e3['execute'](),this['_trackChangesExecuted']=!0x0),_0x49eced&&_0x49eced['forEach'](({id:_0x320bfc,type:_0x4238cb,author:_0x34bce7,created_at:_0x4ea027})=>{const _0x552b04={'id':_0x320bfc,'type':_0x4238cb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x34bce7,'createdAt':_0x4ea027?new Date(_0x4ea027):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x552b04);});}}class at extends _0x3d8ee5{['afterInit'](){const _0x3c6ab1=this['editor'],_0x5278ff=_0x3c6ab1['plugins']['get']('TrackChangesEditing');if(_0x3c6ab1['plugins']['has']('IndentEditing')&&(_0x5278ff['enableCommand']('indent'),_0x5278ff['enableCommand']('outdent')),_0x3c6ab1['plugins']['has']('IndentBlock')){for(const _0x5224fc of['indentBlock','outdentBlock'])_0x5278ff['enableDefaultAttributesIntegration'](_0x5224fc);}const _0x30906d=_0x3c6ab1['locale'];_0x5278ff['registerBlockAttribute']('blockIndent'),_0x5278ff['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x30906d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e7e4d=this['editor'],_0x370ab2=_0x3e7e4d['locale'],_0x353855=_0x3e7e4d['plugins']['get']('TrackChangesEditing');_0x353855['descriptionFactory']['registerDescriptionCallback'](_0x59cca6=>{if('formatBlock'!=_0x59cca6['type'])return;const {data:_0x101060}=_0x59cca6;if(!_0x101060)return;if('indentBlock'!=_0x101060['commandName']&&'outdentBlock'!=_0x101060['commandName'])return;const _0x59cb19=_0x59cca6['getItems']()[0x0],_0x312d16=_0x353855['descriptionFactory']['getItemLabel'](_0x59cb19);return'indentBlock'==_0x101060['commandName']?{'type':'format','content':o(_0x370ab2,'*Indent:*\x20%0',_0x312d16)}:'outdentBlock'==_0x101060['commandName']?{'type':'format','content':o(_0x370ab2,'*Outdent:*\x20%0',_0x312d16)}:void 0x0;});}}class ct extends _0x3d8ee5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x3d8ee5{['afterInit'](){const _0x33673b=this['editor'];if(!_0x33673b['plugins']['has']('LinkEditing'))return;const _0x4e6c52=_0x33673b['plugins']['get']('TrackChangesEditing'),_0x4883f3=_0x33673b['commands']['get']('link');_0x4e6c52['enableDefaultAttributesIntegration']('link'),_0x4e6c52['enableDefaultAttributesIntegration']('unlink'),_0x4e6c52['registerInlineAttribute']('linkHref');for(const _0x152613 of _0x4883f3['manualDecorators'])_0x4e6c52['registerInlineAttribute'](_0x152613['id']),_0x4e6c52['descriptionFactory']['registerAttributeLabel'](_0x152613['id'],'link\x20('+_0x152613['label']['toLowerCase']()+')');_0x4e6c52['descriptionFactory']['registerDescriptionCallback'](_0x368736=>{if('attribute'!=_0x368736['type'])return;const {data:_0x38aab0}=_0x368736;if(!_0x38aab0||'linkHref'!=_0x38aab0['key'])return;const _0x3714df=_0x38aab0['newValue'],_0xdb4f55=_0x33673b['locale'];return{'type':'format','content':null==_0x3714df?o(_0xdb4f55,'*Remove\x20link*'):o(_0xdb4f55,'*Set\x20link:*\x20%0','\x22'+_0x3714df+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cef13=this['editor'],_0x41da9f=_0x4cef13['locale'];_0x4cef13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49020a=>{if('formatInline'!=_0x49020a['type'])return;const {data:_0xdf8384}=_0x49020a;if(_0xdf8384){if('link'==_0xdf8384['commandName']){const _0x396fdb=_0xdf8384['commandParams'][0x0];return{'type':'format','content':o(_0x41da9f,'*Set\x20link:*\x20%0','\x22'+_0x396fdb+'\x22')};}return'unlink'==_0xdf8384['commandName']?{'type':'format','content':o(_0x41da9f,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3d8ee5{['afterInit'](){const _0x23d63b=this['editor'],_0xd302ab=_0x23d63b['locale'];if(!_0x23d63b['plugins']['has']('LegacyListEditing'))return;const _0x2d85b5=_0x23d63b['plugins']['get']('TrackChangesEditing'),_0x3a269e=_0x23d63b['plugins']['has']('LegacyTodoListEditing');function _0x123a8a(_0x1f1f05){return()=>{const _0x4440fb=_0x23d63b['model']['document']['selection'],_0x325c09=_0x23d63b['commands']['get'](_0x1f1f05);if(_0x325c09['value'])return void _0x23d63b['execute']('paragraph',{});const _0x9661c5=_0x1f1f05['slice'](0x0,-0x4),_0x27542a=function(_0x262a88,_0x17da87,_0xe5bc1){let _0x5b1dff=Array['from'](_0x262a88)['filter'](_0x54c5d7=>function(_0x5f3e42,_0x7684fa){return _0x7684fa['checkChild'](_0x5f3e42['parent'],'listItem')&&!_0x7684fa['isObject'](_0x5f3e42);}(_0x54c5d7,_0xe5bc1));_0x5b1dff=_0x5b1dff['filter'](_0x58031c=>!_0x58031c['is']('element','listItem')||_0x58031c['getAttribute']('listType')!=_0x17da87);const _0x43f0a0=new Set();for(const _0x3a0e16 of _0x5b1dff)_0x3a0e16['is']('element','listItem')?_0x43f0a0['add'](Le(_0x3a0e16)):_0x43f0a0['add'](_0x3a0e16);return Array['from'](_0x43f0a0);}(_0x4440fb['getSelectedBlocks'](),_0x9661c5,_0x23d63b['model']['schema']);_0x23d63b['model']['change'](()=>{for(const _0x29afa9 of _0x27542a)_0x2d85b5['markBlockFormat'](_0x29afa9,{'commandName':_0x1f1f05,'commandParams':[{'forceValue':!_0x325c09['value']}],'formatGroupId':'blockName'},Ee(_0x29afa9));});};}function _0xfcedb7(_0x2ce608){return()=>{const _0x3fcad9=function(_0x340370){let _0x2372d2=Array['from'](_0x340370);const _0x3a575e=_0x2372d2['findIndex'](_0x3e90b8=>'listItem'!=_0x3e90b8['name']);return _0x3a575e>-0x1&&(_0x2372d2=_0x2372d2['slice'](0x0,_0x3a575e)),_0x2372d2;}(_0x23d63b['model']['document']['selection']['getSelectedBlocks']()),_0x3a6ced=_0x23d63b['model']['createRange'](_0x23d63b['model']['createPositionAt'](_0x3fcad9[0x0],'before'),_0x23d63b['model']['createPositionAt'](_0x3fcad9[_0x3fcad9['length']-0x1],'end'));_0x23d63b['model']['change'](()=>{_0x2d85b5['markBlockFormat'](_0x3a6ced,{'commandName':_0x2ce608,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4664a2){const _0x110174=new Set();for(const _0x28dc94 of _0x4664a2){let _0x2099bb=_0x28dc94['nextSibling'];for(;_0x2099bb&&_0x2099bb['getAttribute']('listIndent')>_0x28dc94['getAttribute']('listIndent');)_0x110174['add'](_0x2099bb),_0x2099bb=_0x2099bb['nextSibling'];}return Array['from'](_0x110174);}(_0x3fcad9));});};}_0x2d85b5['enableCommand']('numberedList',_0x123a8a('numberedList')),_0x2d85b5['enableCommand']('bulletedList',_0x123a8a('bulletedList')),_0x3a269e&&_0x2d85b5['enableCommand']('todoList',_0x123a8a('todoList')),_0x2d85b5['enableCommand']('indentList',_0xfcedb7('indentList')),_0x2d85b5['enableCommand']('outdentList',_0xfcedb7('outdentList')),_0x3a269e&&_0x2d85b5['enableCommand']('checkTodoList',()=>{const _0x2db4ab=_0x23d63b['commands']['get']('checkTodoList'),_0x4f4afd=Array['from'](_0x2db4ab['_selectedElements']);_0x4f4afd['filter'](_0x12d448=>_0x12d448['getAttribute']('todoListChecked')!=_0x2db4ab['value']),_0x23d63b['model']['change'](()=>{for(const _0x53a96b of _0x4f4afd)_0x2d85b5['markBlockFormat'](_0x53a96b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2db4ab['value']}]});});}),_0x2d85b5['descriptionFactory']['registerElementLabel']('listItem',_0x157913=>o(_0xd302ab,'ELEMENT_LIST_ITEM',_0x157913)),_0x2d85b5['descriptionFactory']['registerDescriptionCallback'](_0x362720=>{if('formatBlock'!=_0x362720['type']&&'formatInline'!=_0x362720['type'])return;const {data:_0x28b2de}=_0x362720;if(_0x28b2de){if('numberedList'==_0x28b2de['commandName']||'bulletedList'==_0x28b2de['commandName']||'todoList'==_0x28b2de['commandName'])switch(_0x28b2de['commandName']['replace']('List','')){case'bulleted':return _0x4d37b6(o(_0xd302ab,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4d37b6(o(_0xd302ab,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4d37b6(o(_0xd302ab,'ELEMENT_TODO_LIST'));}if('indentList'==_0x28b2de['commandName'])return{'type':'format','content':o(_0xd302ab,'*Indent:*\x20%0',o(_0xd302ab,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x28b2de['commandName'])return{'type':'format','content':o(_0xd302ab,'*Outdent:*\x20%0',o(_0xd302ab,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x28b2de['commandName'])return _0x28b2de['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd302ab,'*Check\x20item*')}:{'type':'format','content':o(_0xd302ab,'*Uncheck\x20item*')};}function _0x4d37b6(_0x54c814){return{'type':'format','content':o(_0xd302ab,'*Change\x20to:*\x20%0',_0x54c814)};}});}}function Le(_0xdc0878){const _0x574c53=_0xdc0878['getAttribute']('listIndent');if(0x0==_0x574c53)return _0xdc0878;let _0x3c2566=_0xdc0878;for(;_0xdc0878['previousSibling']&&_0xdc0878['previousSibling']['is']('element','listItem');){const _0x3988b5=_0xdc0878['previousSibling']['getAttribute']('listIndent');if(_0x3988b5==_0x574c53)_0x3c2566=_0xdc0878['previousSibling'];else{if(_0x3988b5<_0x574c53)break;}_0xdc0878=_0xdc0878['previousSibling'];}return _0x3c2566;}function Ee(_0x38cb2a){const _0x68aaa4=[];if(_0x38cb2a['is']('element','listItem')&&_0x38cb2a['getAttribute']('listIndent')>0x0){let _0x3fd0f4=_0x38cb2a['nextSibling'];for(;_0x3fd0f4&&'listItem'==_0x3fd0f4['name']&&_0x3fd0f4['getAttribute']('listIndent')==_0x38cb2a['getAttribute']('listIndent');)_0x68aaa4['push'](_0x3fd0f4),_0x3fd0f4=_0x3fd0f4['nextSibling'];}return _0x68aaa4;}class ht extends _0x3d8ee5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x527dcc=this['editor']['config']['get']('list.properties'),_0x23e729=this['editor']['plugins']['get']('TrackChangesEditing');_0x527dcc['styles']&&_0x23e729['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x527dcc['reversed']&&_0x23e729['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x527dcc['startIndex']&&_0x23e729['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x23e729['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x509ad3,_0x35690f={}){const _0x40a199=this['editor']['plugins']['get']('TrackChangesEditing'),_0x558145=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x40a199['markMultiRangeBlockFormat'](_0x558145,{'commandName':'listStyle','commandParams':[{'type':_0x35690f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x499422,_0x6c1849={}){const _0x2b7370=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59f7f1=this['_getSuggestionBlocks'](_0x3d763c=>_0x3d763c['is']('element','listItem')&&'numbered'===_0x3d763c['getAttribute']('listType'));if(_0x59f7f1['length']<0x1)return;const _0xaaf9c5=_0x59f7f1['map'](_0x3724e2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3724e2,'before'),this['editor']['model']['createPositionAt'](_0x3724e2,0x0)));this['editor']['model']['change'](()=>{_0x2b7370['markMultiRangeBlockFormat'](_0xaaf9c5,{'commandName':'listReversed','commandParams':[{'reversed':_0x6c1849['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x18077f,_0x906fdb={}){const _0x5b4686=this['editor']['plugins']['get']('TrackChangesEditing'),_0x420fa3=this['_getSuggestionBlocks'](_0x754dfe=>_0x754dfe['is']('element','listItem')&&'numbered'===_0x754dfe['getAttribute']('listType'));if(_0x420fa3['length']<0x1)return;const _0xeffa83=_0x420fa3['map'](_0x49673c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x49673c,'before'),this['editor']['model']['createPositionAt'](_0x49673c,0x0)));this['editor']['model']['change'](()=>{_0x5b4686['markMultiRangeBlockFormat'](_0xeffa83,{'commandName':'listStart','commandParams':[{'startIndex':_0x906fdb['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2279e2){if('formatBlock'!=_0x2279e2['type']&&'formatInline'!=_0x2279e2['type'])return;const _0xecf339=this['editor']['locale'],{data:_0x1e35b4}=_0x2279e2;if(!_0x1e35b4)return;let _0x46f4a9,_0x2cb2fc;switch(_0x1e35b4['commandName']){case'listStyle':_0x46f4a9='*Change\x20to:*\x20%0',_0x2cb2fc={'type':'format','content':o(_0xecf339,_0x46f4a9,o(_0xecf339,this['_getTranslationKeyForListStyle'](_0x1e35b4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x46f4a9=_0x1e35b4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2cb2fc={'type':'format','content':o(_0xecf339,_0x46f4a9)};break;case'listStart':_0x46f4a9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2cb2fc={'type':'format','content':o(_0xecf339,_0x46f4a9,_0x1e35b4['commandParams'][0x0]['startIndex'])};}return _0x2cb2fc;}['_getSuggestionBlocksForListStyle'](){const _0x22754e=this['editor']['plugins']['get']('LegacyListUtils');let _0x298dda=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x298dda[0x0]?.['is']('element','listItem')&&_0x298dda['unshift'](..._0x22754e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x298dda[_0x298dda['length']-0x1]?.['is']('element','listItem')&&_0x298dda['push'](..._0x22754e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x298dda=[...new Set(_0x298dda)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x298dda=_0x298dda['filter'](_0x211aa0=>_0x211aa0['is']('element','listItem'))),_0x298dda;}['_getSuggestionBlocks'](_0x489831){const _0x4eb915=this['editor']['plugins']['get']('LegacyListUtils');let _0x322aba=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x489831)['map'](_0x1099fc=>{const _0x470bc2=this['editor']['model']['createPositionAt'](_0x1099fc,0x0);return[..._0x4eb915['getSiblingNodes'](_0x470bc2,'backward'),..._0x4eb915['getSiblingNodes'](_0x470bc2,'forward')];})['flat']();return _0x322aba=[...new Set(_0x322aba)],_0x322aba;}['_getTranslationKeyForListStyle'](_0x13e957){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x13e957)||'default')['toUpperCase']()+'_LIST_'+_0x13e957['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x3d8ee5{['afterInit'](){const _0x3b8caa=this['editor'];if(!_0x3b8caa['plugins']['has']('MediaEmbedEditing'))return;const _0x3ce763=_0x3b8caa['plugins']['get']('TrackChangesEditing'),_0x533b1a=_0x3b8caa['locale'];_0x3ce763['enableCommand']('mediaEmbed'),_0x3ce763['descriptionFactory']['registerElementLabel']('media',_0xc3844c=>o(_0x533b1a,'ELEMENT_MEDIA',_0xc3844c)),_0x3b8caa['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3fb14a,{writer:_0x509153,options:_0x1bc02a})=>{if(_0x1bc02a['showSuggestionHighlights'])return _0x509153['createEmptyElement']('div');},'converterPriority':'high'}),_0x3b8caa['data']['downcastDispatcher']['on']('attribute:url:media',(_0x7b966d,_0x32ebc2,_0x1654ac)=>{_0x1654ac['options']['showSuggestionHighlights']&&_0x7b966d['stop']();},{'priority':'high'});}}class lt extends _0x3d8ee5{['afterInit'](){const _0x2b739d=this['editor'];_0x2b739d['plugins']['has']('MentionEditing')&&_0x2b739d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3d8ee5{['afterInit'](){const _0x25c3ef=this['editor'];if(!_0x25c3ef['plugins']['has']('MergeFieldsEditing'))return;const _0x39e470=_0x25c3ef['plugins']['get']('TrackChangesEditing'),_0xdc3f9c=_0x25c3ef['locale'];_0x39e470['enableCommand']('insertMergeField'),_0x39e470['enableCommand']('insertMergeFieldBlock'),_0x39e470['enableCommand']('insertMergeFieldImage'),_0x39e470['descriptionFactory']['registerElementLabel']('mergeField',_0x26916b=>o(_0xdc3f9c,'ELEMENT_MERGE_FIELD',_0x26916b)),_0x39e470['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1b5ecd=>o(_0xdc3f9c,'ELEMENT_MERGE_FIELD',_0x1b5ecd)),_0x39e470['descriptionFactory']['registerDescriptionCallback'](_0x3deb02=>{if('insertion'!=_0x3deb02['type']&&'deletion'!=_0x3deb02['type'])return;const _0x183c20=_0x3deb02['getContainedElement']();if(null==_0x183c20)return;const _0x59b1c5=_0x25c3ef['plugins']['get']('MergeFieldsEditing');let _0x4210f9;switch(_0x59b1c5['getMergeFieldType'](_0x183c20)){case null:return;case'image':{const _0x1cc974=_0x59b1c5['unwrapAffixes'](_0x183c20['getAttribute']('src'));_0x4210f9=_0x59b1c5['getLabel'](_0x1cc974)||_0x1cc974;break;}default:{const _0x34cf0f=_0x183c20['getAttribute']('id');_0x4210f9=_0x59b1c5['getLabel'](_0x34cf0f)||_0x34cf0f;break;}}return'insertion'==_0x3deb02['type']?{'type':'insertion','content':o(_0xdc3f9c,'*Insert:*\x20%0','\x22'+_0x4210f9+'\x22\x20'+o(_0xdc3f9c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xdc3f9c,'*Remove:*\x20%0','\x22'+_0x4210f9+'\x22\x20'+o(_0xdc3f9c,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x3d8ee5{['afterInit'](){const _0x222d83=this['editor'],_0x338c3c=_0x222d83['plugins']['get']('TrackChangesEditing');_0x222d83['plugins']['has']('MultiLevelList')&&(_0x338c3c['enableDefaultAttributesIntegration']('multiLevelList'),_0x338c3c['registerBlockAttribute']('listMarkerStyle'),_0x338c3c['descriptionFactory']['registerDescriptionCallback'](_0x50c802=>this['handleDescriptions'](_0x50c802)));}['handleDescriptions'](_0x1ffe48){const _0x3ad6ee=this['editor']['locale'],{data:_0x4cb5bb}=_0x1ffe48,_0x59fce6={'type':'format','content':''};if(_0x4cb5bb&&'listMarkerStyle'==_0x4cb5bb['key']){if(!_0x4cb5bb['oldValue'])return{'type':'format','content':o(_0x3ad6ee,'*Set\x20format:*\x20%0',o(_0x3ad6ee,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4cb5bb['newValue']+')'};if(!_0x4cb5bb['newValue']){let _0xb33b15=_0x1ffe48['head'];for(;_0xb33b15;){if(_0xb33b15['data']&&'listType'==_0xb33b15['data']['key']&&_0xb33b15['data']['newValue'])return _0x59fce6;_0xb33b15=_0xb33b15['next'];}return{'type':'format','content':o(_0x3ad6ee,'*Remove\x20format:*\x20%0',o(_0x3ad6ee,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4cb5bb['oldValue']+')'};}}}}class pt extends _0x3d8ee5{['afterInit'](){const _0x2b2eee=this['editor'];if(!_0x2b2eee['plugins']['has']('PageBreakEditing'))return;_0x2b2eee['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3a3f46=_0x2b2eee['plugins']['get']('TrackChangesEditing'),_0x37c01e=_0x2b2eee['locale'];_0x3a3f46['descriptionFactory']['registerElementLabel']('pageBreak',_0x495f30=>o(_0x37c01e,'ELEMENT_PAGE_BREAK',_0x495f30));}}class kt extends _0x3d8ee5{['afterInit'](){const _0x5a317f=this['editor'];if(!_0x5a317f['plugins']['has']('Paragraph'))return;const _0x1c7015=_0x5a317f['locale'],_0x5ea9cd=_0x5a317f['plugins']['get']('TrackChangesEditing');_0x5ea9cd['descriptionFactory']['registerElementLabel']('paragraph',_0x18c536=>o(_0x1c7015,'ELEMENT_PARAGRAPH',_0x18c536)),_0x5ea9cd['enableDefaultAttributesIntegration']('paragraph'),_0x5ea9cd['enableCommand']('insertParagraph'),_0x5a317f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5a317f),{'priority':'highest'}),_0x5a317f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x536aa4,_0x397731,_0x1a5122)=>{_0x1a5122['options']['showSuggestionHighlights']&&nr(_0x5a317f,{'showActiveMarker':!0x1})(_0x536aa4,_0x397731,_0x1a5122);},{'priority':'highest'});const _0x5281c8=_0x5ea9cd['descriptionFactory'];_0x5281c8['registerDescriptionCallback'](_0x398baf=>{if('insertion'!==_0x398baf['type'])return;const {start:_0x4a384e,end:_0x3fc5f7}=_0x398baf['getFirstRange']();if(!_0x4a384e['isTouching'](_0x3fc5f7)||!_0x4a384e['nodeAfter'])return;const _0x18138d=_0x5a317f['model']['schema'],_0x4296ea=_0x4a384e['nodeAfter'];return _0x18138d['isBlock'](_0x4296ea)&&!_0x18138d['isLimit'](_0x4296ea)&&_0x18138d['checkChild'](_0x4296ea,'$text')?{'type':'insertion','content':o(_0x1c7015,'*Insert:*\x20%0',_0x5281c8['getItemLabel'](_0x4296ea,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5db91d=this['editor'],_0x298bb3=_0x5db91d['locale'];_0x5db91d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f8708=>{if('formatBlock'!=_0x1f8708['type'])return;const {data:_0x542e1c}=_0x1f8708;return _0x542e1c&&'paragraph'==_0x542e1c['commandName']?{'type':'format','content':o(_0x298bb3,'*Change\x20to:*\x20%0',o(_0x298bb3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x15a31a,{showActiveMarker:_0xae9e61=!0x0}={}){return(_0x1cdd08,_0x162b29,_0x11eba3)=>{const _0x166667=_0x15a31a['plugins']['get']('TrackChangesEditing'),_0xaa1a16=_0x162b29['markerRange']['start'],_0x500039=_0x162b29['markerRange']['end'],_0xd9d94a=_0x15a31a['model']['schema'];if(!_0xaa1a16['isTouching'](_0x500039)||!_0xaa1a16['nodeAfter'])return;const _0x6e3eef=_0xaa1a16['nodeAfter'];if(_0xd9d94a['isBlock'](_0x6e3eef)&&!_0xd9d94a['isLimit'](_0x6e3eef)&&_0xd9d94a['checkChild'](_0x6e3eef,'$text')){if(!_0x11eba3['consumable']['consume'](_0x162b29['markerRange'],_0x1cdd08['name']))return;const {id:_0x4b0008,authorId:_0x29fbb1}=_0x166667['_splitMarkerName'](_0x162b29['markerName']),_0x68872d=_0x11eba3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4b0008,'data-author-id':_0x29fbb1}),_0x40a883=_0x11eba3['mapper']['toViewPosition'](_0x500039);_0xae9e61&&_0x166667['activeMarkers']['includes'](_0x162b29['markerName'])&&_0x11eba3['writer']['addClass']('ck-suggestion-marker--active',_0x68872d),_0x11eba3['writer']['insert'](_0x40a883,_0x68872d),_0x11eba3['mapper']['bindElementToMarker'](_0x68872d,_0x162b29['markerName']);}};}class wt extends _0x3d8ee5{['afterInit'](){const _0x40898d=this['editor'];_0x40898d['commands']['get']('replaceSource')&&_0x40898d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x3d8ee5{['afterInit'](){const _0x8fbf42=this['editor'];if(!_0x8fbf42['plugins']['has']('RemoveFormatEditing'))return;_0x8fbf42['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2812a7=this['editor'];_0x2812a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b4b32=>{if('formatBlock'!=_0x2b4b32['type']&&'formatInline'!=_0x2b4b32['type'])return;const {data:_0x29ce1b}=_0x2b4b32;return _0x29ce1b&&'removeFormat'==_0x29ce1b['commandName']?{'type':'format','content':o(_0x2812a7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3d8ee5{['afterInit'](){const _0x3c7bbb=this['editor'];if(!_0x3c7bbb['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5497d2=_0x3c7bbb['plugins']['get']('TrackChangesEditing');_0x5497d2['enableCommand']('goToPreviousRestrictedEditingException'),_0x5497d2['enableCommand']('goToNextRestrictedEditingException');const _0x15256f=_0x3c7bbb['plugins']['get']('RestrictedEditingModeEditing');_0x15256f['enableCommand']('trackChanges'),_0x15256f['enableCommand']('acceptSuggestion'),_0x15256f['enableCommand']('discardSuggestion'),_0x15256f['enableCommand']('acceptAllSuggestions'),_0x15256f['enableCommand']('discardAllSuggestions'),_0x15256f['enableCommand']('acceptSelectedSuggestions'),_0x15256f['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3d8ee5{['afterInit'](){const _0x56a5b0=this['editor'];if(!_0x56a5b0['plugins']['has']('ShiftEnter'))return;const _0x1a2f11=_0x56a5b0['plugins']['get']('TrackChangesEditing');_0x1a2f11['enableCommand']('shiftEnter'),_0x56a5b0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x56a5b0),{'priority':'high'}),_0x56a5b0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x56a5b0),{'priority':'high'}),_0x56a5b0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x58ddef,_0x400a93,_0x4e0163)=>{_0x4e0163['options']['showSuggestionHighlights']&&je(_0x56a5b0,{'showActiveMarker':!0x1})(_0x58ddef,_0x400a93,_0x4e0163);}),_0x1a2f11['descriptionFactory']['registerElementLabel']('softBreak',_0x2c5910=>o(_0x56a5b0['locale'],'ELEMENT_LINE_BREAK',_0x2c5910));}}function je(_0x4f747a,{showActiveMarker:_0x4e6c13=!0x0}={}){return(_0x4d0f73,_0x2efd10,_0x233aa0)=>{const _0x44e312=_0x4f747a['plugins']['get']('TrackChangesEditing');if(!_0x233aa0['consumable']['test'](_0x2efd10['markerRange'],_0x4d0f73['name']))return;const _0x425a89=_0x4f747a['model'];for(const _0x46075d of _0x2efd10['markerRange']['getItems']()){if(!_0x46075d['is']('element','softBreak'))continue;const _0x1d7c3d='deletion'==_0x2efd10['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5c9816,authorId:_0x56f119}=_0x44e312['_splitMarkerName'](_0x2efd10['markerName']),_0x566abe=_0x233aa0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1d7c3d,'data-suggestion':_0x5c9816,'data-author-id':_0x56f119}),_0xe5f812=_0x233aa0['mapper']['toViewPosition'](_0x425a89['createPositionBefore'](_0x46075d));_0x4e6c13&&_0x44e312['activeMarkers']['includes'](_0x2efd10['markerName'])&&_0x233aa0['writer']['addClass']('ck-suggestion-marker--active',_0x566abe),_0x233aa0['writer']['insert'](_0xe5f812,_0x566abe),_0x233aa0['mapper']['bindElementToMarker'](_0x566abe,_0x2efd10['markerName']);}};}class St extends _0x3d8ee5{['afterInit'](){const _0x1d8913=this['editor'],_0x4c616e=_0x1d8913['model'],_0x10cd33=_0x1d8913['locale'];if(!_0x1d8913['plugins']['has']('StandardEditingModeEditing'))return;const _0x4ceb5d=_0x1d8913['plugins']['get']('TrackChangesEditing'),_0x103075='restrictedEditingException',_0x5b9258=_0x1d8913['commands']['get'](_0x103075);_0x4ceb5d['enableCommand'](_0x103075,(_0x3a1450,_0x25ea68={})=>{const _0x5179b6=_0x4c616e['document']['selection'];if(_0x5179b6['isCollapsed'])return void _0x3a1450(_0x25ea68);const _0x54109f=void 0x0!==_0x25ea68['forceValue']?_0x25ea68['forceValue']:!_0x5b9258['value'];_0x4c616e['change'](()=>{const _0x4522f3=Array['from'](_0x5179b6['getRanges']());for(const _0x40c17f of _0x4522f3){const _0x383386=_0x54109f?[_0x40c17f]:io(_0x103075,_0x40c17f,_0x4c616e);for(const _0x5f2561 of _0x383386)_0x4ceb5d['markInlineFormat'](_0x5f2561,{'commandName':_0x103075,'commandParams':[{'forceValue':_0x54109f}]});}});}),_0x4ceb5d['descriptionFactory']['registerDescriptionCallback'](_0x48da92=>{if('formatBlock'!=_0x48da92['type']&&'formatInline'!=_0x48da92['type'])return;const {data:_0x5ce955}=_0x48da92;return _0x5ce955&&_0x5ce955['commandName']==_0x103075?_0x5ce955['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10cd33,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x10cd33,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x3d8ee5{['afterInit'](){const _0x54414e=this['editor'];if(!_0x54414e['plugins']['has']('Style')||!_0x54414e['plugins']['has']('DataSchema'))return;const _0x539abe=_0x54414e['plugins']['get']('TrackChangesEditing'),_0x4a6ab7=_0x54414e['locale'],_0x53628a=_0x54414e['config']['get']('style')||{},_0x49a074=_0x54414e['plugins']['get']('GeneralHtmlSupport'),_0xdf66fb=_0x54414e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x54414e['plugins']['get']('DataSchema'),_0x53628a['definitions']);_0x539abe['enableDefaultAttributesIntegration']('style');const _0x360475=new Set();for(const _0x34ab61 of _0xdf66fb['block']){const _0x127bc3=_0x49a074['getGhsAttributeNameForElement'](_0x34ab61['element']);_0x360475['add'](_0x127bc3);}const _0x94a217=new Set();for(const _0x991ada of _0xdf66fb['inline']){const _0x5c0289=_0x49a074['getGhsAttributeNameForElement'](_0x991ada['element']);_0x94a217['add'](_0x5c0289);for(const _0x582ae6 of _0x991ada['ghsAttributes'])_0x94a217['add'](_0x582ae6);}for(const _0x2b475a of _0x360475)_0x539abe['registerBlockAttribute'](_0x2b475a),_0x539abe['descriptionFactory']['registerAttributeLabel'](_0x2b475a,o(_0x4a6ab7,'FORMAT_STYLE'));for(const _0x23eb9d of _0x94a217)_0x539abe['registerInlineAttribute'](_0x23eb9d),_0x539abe['descriptionFactory']['registerAttributeLabel'](_0x23eb9d,o(_0x4a6ab7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e3b20=this['editor'],_0x260ea9=_0x1e3b20['locale'];_0x1e3b20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x413388=>{if('formatBlock'!=_0x413388['type']&&'formatInline'!=_0x413388['type'])return;const {data:_0x76c931}=_0x413388;return _0x76c931&&'style'===_0x76c931['commandName']?_0x76c931['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x260ea9,'*Set\x20format:*\x20%0',_0x76c931['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x260ea9,'*Remove\x20format:*\x20%0',_0x76c931['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x3d8ee5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2cfea6){super(_0x2cfea6),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x58cf49=this['editor'],_0x2af931=_0x58cf49['model']['document']['selection'];if(!_0x58cf49['plugins']['has']('TableEditing'))return;const _0x564b9d=_0x58cf49['locale'],_0x4f6cf5=_0x58cf49['plugins']['get']('TrackChangesEditing'),_0x4ec510=_0x58cf49['plugins']['get']('TableUtils');_0x4f6cf5['descriptionFactory']['registerElementLabel']('table',_0x41e487=>o(_0x564b9d,'ELEMENT_TABLE',_0x41e487)),this['_setupColumnsRowsFixing'](),_0x4f6cf5['enableCommand']('insertTable'),_0x4f6cf5['enableCommand']('selectTableRow'),_0x4f6cf5['enableCommand']('selectTableColumn');for(const _0x4b5597 of['insertTableRowAbove','insertTableRowBelow']){const _0x1e9e25=_0x58cf49['commands']['get'](_0x4b5597);_0x4f6cf5['enableCommand'](_0x4b5597,_0x51564d=>{_0x58cf49['model']['change'](_0x169ae8=>{_0x51564d();const _0x2daa9d='above'===_0x1e9e25['order'],_0x1c3c7a=_0x4ec510['getSelectionAffectedTableCells'](_0x2af931),_0x2f5bec=_0x4ec510['getRowIndexes'](_0x1c3c7a),_0x4a2a3d=_0x2daa9d?_0x2f5bec['first']-0x1:_0x2f5bec['last']+0x1,_0x348fec=_0x1c3c7a[0x0]['findAncestor']('table'),_0xb577a2=_0x4ec510['createTableWalker'](_0x348fec,{'startRow':_0x4a2a3d,'endRow':_0x4a2a3d}),_0x55fc37=Array['from'](_0xb577a2)['map'](_0x1d0a76=>_0x169ae8['createRangeOn'](_0x1d0a76['cell']));_0x4f6cf5['markMultiRangeInsertion'](_0x55fc37,'tableRow');});});}for(const _0x1f78b4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x40962e=_0x58cf49['commands']['get'](_0x1f78b4);_0x4f6cf5['enableCommand'](_0x1f78b4,_0x37afd9=>{_0x58cf49['model']['change'](_0x2ae7c6=>{_0x37afd9();const _0x41cbc1='left'===_0x40962e['order'],_0x555267=_0x4ec510['getSelectionAffectedTableCells'](_0x2af931),_0x435867=_0x4ec510['getColumnIndexes'](_0x555267),_0x44cca5=_0x41cbc1?_0x435867['first']-0x1:_0x435867['last']+0x1,_0x21726f=_0x555267[0x0]['findAncestor']('table'),_0x8bc6ab=_0x4ec510['createTableWalker'](_0x21726f,{'startRow':0x0,'column':_0x44cca5,'includeAllSlots':!0x1}),_0x528291=Array['from'](_0x8bc6ab)['map'](_0x453f4c=>_0x2ae7c6['createRangeOn'](_0x453f4c['cell']));_0x4f6cf5['markMultiRangeInsertion'](_0x528291,'tableColumn');});});}for(const _0x294818 of['removeTableRow','removeTableColumn']){const _0x36cbc5=_0x294818['substr'](0xb),_0x5a36c2=_0x36cbc5['toLowerCase'](),_0x47bd30=_0x5a36c2['substr'](0x0,0x3)+'span',_0x3b692f='table'+_0x36cbc5,_0x205802='min'+_0x36cbc5,_0x20747e='max'+_0x36cbc5;_0x4f6cf5['enableCommand'](_0x294818,()=>{_0x58cf49['model']['change'](_0x580123=>{const _0x5b1e83=_0x4ec510['getSelectionAffectedTableCells'](_0x2af931),_0x2e1eb3=_0x5b1e83[0x0]['findAncestor']('table');let _0x1d7c23;if('removeTableRow'==_0x294818){const _0x3729d9=_0x4ec510['getRowIndexes'](_0x5b1e83);_0x1d7c23={'startRow':_0x3729d9['first'],'endRow':_0x3729d9['last'],'includeAllSlots':!0x0};}else{const _0x5a1412=_0x4ec510['getColumnIndexes'](_0x5b1e83);_0x1d7c23={'startColumn':_0x5a1412['first'],'endColumn':_0x5a1412['last'],'includeAllSlots':!0x0};}const _0x3c9a2e=_0x4ec510['createTableWalker'](_0x2e1eb3,_0x1d7c23),_0x78ef98=Array['from'](_0x3c9a2e)['map'](({cell:_0x551402})=>_0x551402),_0x84ccc3=Ne(_0x78ef98['filter'](_0x1258a9=>_0x1258a9['hasAttribute'](_0x47bd30))),_0x2ad1db=Ne(_0x78ef98['filter'](_0x259b15=>!_0x259b15['hasAttribute'](_0x47bd30)))['map'](_0x5c0ed3=>_0x580123['createRangeOn'](_0x5c0ed3)),_0x238679=_0x4f6cf5['markMultiRangeDeletion'](_0x2ad1db,_0x3b692f);if(_0x238679&&('tableRow'==_0x238679['subType']||'tableColumn'==_0x238679['subType'])){const _0x10612b=this['_getSuggestionCoords'](_0x238679);for(const _0x374d27 of _0x84ccc3){const _0xfbcb9a=_0x580123['createRangeOn'](_0x374d27),_0x4377a7=_0x4ec510['getCellLocation'](_0x374d27),_0x2a5dba=_0x374d27['getAttribute'](_0x47bd30)-0x1,_0x2ec2ca=_0x10612b[_0x205802],_0x86d161=_0x10612b[_0x20747e];_0x2ec2ca<=_0x4377a7[_0x5a36c2]&&_0x4377a7[_0x5a36c2]+_0x2a5dba<=_0x86d161&&_0x238679['addRange'](_0xfbcb9a);}}});});}function _0x1cef3d(_0x18f00c){const _0x3e7e65=Array['from'](_0x2af931['getRanges']())['map'](_0x1a6e52=>_0x4f11f5['fromRange'](_0x1a6e52));_0x58cf49['model']['change'](_0x2c9125=>{const _0x533112=_0x2c9125['batch'];_0x18f00c=_0x18f00c['filter'](_0x15ca27=>'$graveyard'!=_0x15ca27['root']['rootName']),_0x2c9125['setSelection'](_0x18f00c),_0x58cf49['commands']['get']('removeTableRow')['refresh'](),_0x58cf49['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x58cf49['model']['enqueueChange'](()=>{_0x58cf49['model']['enqueueChange'](_0x533112,_0x3cd198=>{const _0x473d05=_0x3e7e65['filter'](_0x255b6c=>'$graveyard'!=_0x255b6c['root']['rootName']);_0x473d05['length']>0x0&&_0x3cd198['setSelection'](_0x473d05);for(const _0x447ba5 of _0x3e7e65)_0x447ba5['detach']();});});});}function _0x181da0(_0x58b1e1){_0x58cf49['model']['change'](_0x30041e=>{const _0x2b06b6=Array['from'](_0x2af931['getRanges']())['map'](_0x10580f=>_0x4f11f5['fromRange'](_0x10580f)),_0x36a4c6=[];for(const _0x10a08b of _0x58b1e1)for(const _0x11aabd of _0x10a08b['getItems']({'shallow':!0x0}))_0x36a4c6['push'](_0x11aabd);for(const _0x32f85f of _0x36a4c6)'$graveyard'!=_0x32f85f['root']['rootName']&&(_0x30041e['setSelection'](_0x30041e['createPositionAt'](_0x32f85f,0x0)),_0x58cf49['commands']['get']('removeTableColumn')['refresh'](),_0x58cf49['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x560c1c=_0x2b06b6['filter'](_0x366908=>'$graveyard'!=_0x366908['root']['rootName']);_0x560c1c['length']>0x0&&_0x30041e['setSelection'](_0x560c1c);for(const _0x160fb2 of _0x2b06b6)_0x160fb2['detach']();});}function _0x38baf0(_0x546c46,_0x3abea4){return _0x3abea4['every'](_0x30b2d0=>_0x546c46['some'](_0x23a5bd=>_0x23a5bd['end']['isEqual'](_0x30b2d0['start'])||_0x30b2d0['end']['isEqual'](_0x23a5bd['start'])));}function _0x5e9063(_0xb9ee67,_0xbc8071){return!_0xb9ee67['some'](_0xf1aa17=>_0xbc8071['some'](_0xd4d999=>_0xf1aa17['isIntersecting'](_0xd4d999)))&&_0xb9ee67['some'](_0x3e740f=>_0xbc8071['some'](_0x3fab19=>_0x3e740f['end']['isTouching'](_0x3fab19['start'])));}_0x58cf49['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x494cf,_0x155de5,_0x44ad4c)=>{if(!_0x44ad4c['options']['showSuggestionHighlights'])return;const _0x23024f=_0x155de5['item'];if(!_0x23024f||!_0x23024f['is']('element','tableCell'))return;const _0x289608=_0x44ad4c['mapper']['toViewElement'](_0x23024f);if(_0x289608){const {id:_0x458c62,authorId:_0x185311}=_0x4f6cf5['_splitMarkerName'](_0x155de5['markerName']);_0x9ff18e(_0x289608,_0x44ad4c['writer'],(_0x3cb3b1,_0x5b0478,_0x5d7ef9)=>{_0x5d7ef9['addClass'](_0x3aa98e(_0x5b0478['classes']),_0x3cb3b1),_0x5d7ef9['setAttribute']('data-suggestion-id',_0x458c62,_0x3cb3b1),_0x5d7ef9['setAttribute']('data-author-id',_0x185311,_0x3cb3b1);},(_0x4286cd,_0x45616a,_0x29d5fb)=>{_0x29d5fb['removeClass'](_0x3aa98e(_0x45616a['classes']),_0x4286cd),_0x29d5fb['removeAttribute']('data-suggestion-id',_0x4286cd),_0x29d5fb['removeAttribute']('data-author-id',_0x4286cd);});}},{'priority':'highest'}),_0x4f6cf5['descriptionFactory']['registerDescriptionCallback'](_0x3b9d6b=>{if('insertion'!=_0x3b9d6b['type']&&'deletion'!=_0x3b9d6b['type'])return;const _0x123ea0=_0x3b9d6b['getContainedElement']();if(null!=_0x123ea0&&_0x123ea0['is']('element','table')){if('insertion'==_0x3b9d6b['type']){const _0x55cee0=_0x3b9d6b['getItems']()['filter'](_0x58ba11=>_0x58ba11['is']('$textProxy'))['map'](_0x4ec9b9=>_0x4ec9b9['data']);if(_0x55cee0['length'])return{'type':'insertion','content':o(_0x564b9d,'*Insert:*\x20%0',o(_0x564b9d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x55cee0['join']('\x20')+'\x22'))};}if('deletion'==_0x3b9d6b['type']){const _0xe81c9e=_0x3b9d6b['getItems']()['filter'](_0x5ae13d=>_0x5ae13d['is']('$textProxy'))['map'](_0xaf4031=>_0xaf4031['data']);if(_0xe81c9e['length'])return{'type':'deletion','content':o(_0x564b9d,'*Remove:*\x20%0',o(_0x564b9d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xe81c9e['join']('\x20')+'\x22'))};}}}),_0x4f6cf5['descriptionFactory']['registerDescriptionCallback'](_0x270d30=>{if('tableRow'==_0x270d30['subType']){const _0x13ae3e=_0x270d30['getItems']()['filter'](_0x39ad0c=>_0x39ad0c['is']('$textProxy'))['map'](_0x1d0b81=>_0x1d0b81['data']),_0x3b6163=this['_getSuggestionCoords'](_0x270d30),_0x57b629=_0x3b6163['maxRow']-_0x3b6163['minRow']+0x1;if('insertion'==_0x270d30['type'])return _0x13ae3e['length']?{'type':'insertion','content':o(_0x564b9d,'*Insert:*\x20%0',o(_0x564b9d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57b629,'\x22'+_0x13ae3e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x564b9d,'*Insert:*\x20%0',o(_0x564b9d,'ELEMENT_TABLE_ROW',_0x57b629))};if('deletion'==_0x270d30['type'])return _0x13ae3e['length']?{'type':'deletion','content':o(_0x564b9d,'*Remove:*\x20%0',o(_0x564b9d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57b629,'\x22'+_0x13ae3e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x564b9d,'*Remove:*\x20%0',o(_0x564b9d,'ELEMENT_TABLE_ROW',_0x57b629))};}if('tableColumn'==_0x270d30['subType']){const _0x4e3929=_0x270d30['getItems']()['filter'](_0x1be43c=>_0x1be43c['is']('$textProxy'))['map'](_0x28378a=>_0x28378a['data']),_0x1fad13=this['_getSuggestionCoords'](_0x270d30),_0x34b2ef=_0x1fad13['maxColumn']-_0x1fad13['minColumn']+0x1;if('insertion'==_0x270d30['type'])return _0x4e3929['length']?{'type':'insertion','content':o(_0x564b9d,'*Insert:*\x20%0',o(_0x564b9d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34b2ef,'\x22'+_0x4e3929['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x564b9d,'*Insert:*\x20%0',o(_0x564b9d,'ELEMENT_TABLE_COLUMN',_0x34b2ef))};if('deletion'==_0x270d30['type'])return _0x4e3929['length']?{'type':'deletion','content':o(_0x564b9d,'*Remove:*\x20%0',o(_0x564b9d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34b2ef,'\x22'+_0x4e3929['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x564b9d,'*Remove:*\x20%0',o(_0x564b9d,'ELEMENT_TABLE_COLUMN',_0x34b2ef))};}}),_0x4f6cf5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1cef3d),_0x4f6cf5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1cef3d),_0x4f6cf5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x181da0),_0x4f6cf5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x181da0),_0x4f6cf5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x38baf0),_0x4f6cf5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x38baf0),_0x4f6cf5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5e9063),_0x4f6cf5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5e9063);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5d5008=this['editor'],_0x4c5f6e=_0x5d5008['model']['document']['selection'];return(_0xa86821,_0xf3ba4)=>{_0x5d5008['model']['change'](_0x221fa5=>{const {commandName:_0x1acce5,commandParams:_0x294d05}=_0xf3ba4;let _0x57b3a1=_0xa86821[0x0]['end']['nodeBefore'];_0x294d05&&_0x294d05[0x0]&&!0x1===_0x294d05[0x0]['forceValue']&&(_0x57b3a1=_0xa86821[0x0]['start']['nodeAfter']);const _0x4ef3ea=_0x221fa5['createRangeIn'](_0x57b3a1);if('$graveyard'==_0x4ef3ea['root']['rootName'])return;const _0x1565b4=Array['from'](_0x4c5f6e['getRanges']())['map'](_0x2f1b9b=>_0x4f11f5['fromRange'](_0x2f1b9b));_0x221fa5['setSelection'](_0x4ef3ea),_0x5d5008['commands']['get'](_0x1acce5)['refresh'](),_0x294d05['push']({'forceDefaultExecution':!0x0}),_0x5d5008['execute'](_0x1acce5,..._0x294d05);const _0x2333b9=_0x1565b4['filter'](_0x212c5e=>'$graveyard'!=_0x212c5e['root']['rootName']);_0x2333b9['length']>0x0&&_0x221fa5['setSelection'](_0x2333b9);for(const _0x1535a5 of _0x1565b4)_0x1535a5['detach']();});};}['_getCoordsForCells'](_0x481d61){const _0x39b81d=this['editor']['plugins']['get']('TableUtils');let _0x1b060d=Number['MAX_SAFE_INTEGER'],_0xf02b8e=Number['MIN_SAFE_INTEGER'],_0x1775f1=Number['MAX_SAFE_INTEGER'],_0x4bb365=Number['MIN_SAFE_INTEGER'];for(const _0x3e91b1 of _0x481d61){if('$graveyard'==_0x3e91b1['root']['rootName'])continue;const {row:_0x1aeecb,column:_0x386b9d}=_0x39b81d['getCellLocation'](_0x3e91b1),_0x458272=_0x3e91b1['hasAttribute']('rowspan')?_0x3e91b1['getAttribute']('rowspan')-0x1:0x0,_0x3a3459=_0x3e91b1['hasAttribute']('colspan')?_0x3e91b1['getAttribute']('colspan')-0x1:0x0;_0x1b060d=_0x1aeecb<_0x1b060d?_0x1aeecb:_0x1b060d,_0xf02b8e=_0x1aeecb+_0x458272>_0xf02b8e?_0x1aeecb+_0x458272:_0xf02b8e,_0x1775f1=_0x386b9d<_0x1775f1?_0x386b9d:_0x1775f1,_0x4bb365=_0x386b9d+_0x3a3459>_0x4bb365?_0x386b9d+_0x3a3459:_0x4bb365;}return{'minRow':_0x1b060d,'maxRow':_0xf02b8e,'minColumn':_0x1775f1,'maxColumn':_0x4bb365};}['_setupColumnsRowsFixing'](){const _0x25627b=this['editor'],_0x1f8b82=_0x25627b['plugins']['get']('TrackChangesEditing'),_0x401be4=_0x25627b['plugins']['get']('TableUtils');_0x25627b['model']['document']['on']('change:data',()=>{const _0x4aa920=Array['from'](_0x25627b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x438679,data:_0x19e956}of _0x4aa920){const {group:_0x561b5a,id:_0x9c338e,subType:_0x4a5ec8}=_0x1f8b82['_splitMarkerName'](_0x438679);if('suggestion'!=_0x561b5a)continue;if(null!=_0x19e956['oldRange'])continue;const _0x42f439=_0x1f8b82['getSuggestion'](_0x9c338e);this['_tablePostFixingSubtypes']['includes'](_0x4a5ec8)&&this['_tableSuggestions']['add'](_0x42f439);}},{'priority':'low'});const _0x45ba02=(_0x504ab4,_0x191801)=>{let _0x1d59b3=!0x1;const _0x3ec4a1=_0x191801['createRangeOn'](_0x504ab4),_0x516b4f=_0x504ab4['findAncestor']('table'),_0x35d232=_0x401be4['getCellLocation'](_0x504ab4);for(const _0x54ea9b of this['_tableSuggestions']){const _0x2d60a2=_0x54ea9b['subType'],_0x3255b4=_0x2d60a2['startsWith']('tablePaste'),_0x26d042=_0x2d60a2['substr'](_0x3255b4?0xa:0x5),_0x50271c=_0x26d042['toLowerCase'](),_0x129bb0=_0x50271c['substr'](0x0,0x3)+'span',_0x51b324='min'+_0x26d042,_0x4892c7='max'+_0x26d042;if(!_0x54ea9b['isInContent'])continue;if(_0x516b4f!=_0x54ea9b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x54ea9b['isIntersectingWithRange'](_0x3ec4a1))continue;const _0x5b8cc7=_0x504ab4['hasAttribute'](_0x129bb0)?_0x504ab4['getAttribute'](_0x129bb0)-0x1:0x0,_0x23b957=this['_getSuggestionCoords'](_0x54ea9b),_0x4a8001=_0x23b957[_0x51b324],_0x5be019=_0x23b957[_0x4892c7];_0x4a8001<=_0x35d232[_0x50271c]&&_0x35d232[_0x50271c]+_0x5b8cc7<=_0x5be019&&(_0x54ea9b['addRange'](_0x3ec4a1),_0x1d59b3=!0x0);}return _0x1d59b3;};_0x25627b['model']['document']['registerPostFixer'](_0x399d6f=>{let _0x2e575d=!0x1;for(const _0x5c0d81 of _0x25627b['model']['document']['differ']['getChanges']())if('insert'==_0x5c0d81['type']){if('tableRow'==_0x5c0d81['name']){for(const _0x1599c2 of _0x5c0d81['position']['nodeAfter']['getChildren']())_0x2e575d=_0x2e575d||_0x45ba02(_0x1599c2,_0x399d6f);}else'tableCell'==_0x5c0d81['name']&&(_0x2e575d=_0x2e575d||_0x45ba02(_0x5c0d81['position']['nodeAfter'],_0x399d6f));}return _0x2e575d;});}['_getSuggestionCoords'](_0x381260){return this['_getCoordsForCells'](_0x381260['getRanges']()['map'](_0x5b7dd2=>_0x5b7dd2['start']['nodeAfter']));}}function Ne(_0x2705bd){return Array['from'](new Set(_0x2705bd)['values']());}class _t extends _0x3d8ee5{static get['requires'](){return[At];}['afterInit'](){const _0x3ad15b=this['editor'],_0x4e3c32=_0x3ad15b['model']['document']['selection'],_0x3f5407=_0x3ad15b['locale'];if(!_0x3ad15b['plugins']['has']('TableEditing'))return;const _0x524997=_0x3ad15b['plugins']['get']('TrackChangesEditing'),_0x31bc05=_0x3ad15b['plugins']['get']('TableUtils'),_0x3f8a97=_0x3ad15b['plugins']['get'](At);_0x3f8a97['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x524997['enableCommand']('mergeTableCells',()=>{const _0x3d101b=_0x31bc05['getSelectionAffectedTableCells'](_0x3ad15b['model']['document']['selection']);_0x3ad15b['model']['change'](()=>{_0x524997['markMultiRangeBlockFormat'](_0x3d101b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3ad15b['commands']['get']('mergeTableCells')['on']('execute',(_0x1a60ca,_0xd50282)=>{_0x3ad15b['commands']['get']('trackChanges')['value']&&(_0xd50282['length']>0x0&&_0xd50282[_0xd50282['length']-0x1]&&_0xd50282[_0xd50282['length']-0x1]['forceDefaultExecution']||_0x524997['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1a60ca['stop']());},{'priority':'highest'});for(const _0x553f0a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x38f408=_0x3ad15b['commands']['get'](_0x553f0a);_0x524997['enableCommand'](_0x553f0a,()=>{const _0x4b8677=_0x3ad15b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1030d3=>_0x1030d3['is']('element','tableCell')),_0x39ec2d=_0x38f408['value'];_0x3ad15b['model']['change'](()=>{_0x524997['markMultiRangeBlockFormat']([_0x4b8677,_0x39ec2d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x52c8fe of['splitTableCellVertically','splitTableCellHorizontally']){const _0x53190=_0x3ad15b['commands']['get'](_0x52c8fe);_0x524997['enableCommand'](_0x52c8fe,()=>{const _0x265800=_0x31bc05['getSelectionAffectedTableCells'](_0x3ad15b['model']['document']['selection'])[0x0],_0x1b3452=_0x265800['findAncestor']('table'),{column:_0x3be0ae,row:_0x1f8ad7}=_0x31bc05['getCellLocation'](_0x265800);let _0x2c8c4a=[];if('horizontally'==_0x53190['direction']){const _0x5016a2=_0x31bc05['createTableWalker'](_0x1b3452,{'startRow':_0x1f8ad7,'endRow':_0x1f8ad7,'includeAllSlots':!0x0});_0x2c8c4a=Array['from'](_0x5016a2)['map'](_0x541a17=>_0x541a17['cell']);}else{const _0x2ab3ec=_0x31bc05['createTableWalker'](_0x1b3452,{'column':_0x3be0ae,'includeAllSlots':!0x0});_0x2c8c4a=Array['from'](_0x2ab3ec)['map'](_0x2a6688=>_0x2a6688['cell']);}_0x3ad15b['model']['change'](_0x20cb77=>{_0x524997['markBlockFormat'](_0x20cb77['createRangeOn'](_0x265800),{'commandName':_0x52c8fe,'commandParams':[]},_0x2c8c4a,_0x52c8fe);});});}_0x524997['descriptionFactory']['registerDescriptionCallback'](_0x20da7f=>{if('formatBlock'!=_0x20da7f['type']&&'formatInline'!=_0x20da7f['type'])return;const {data:_0x3787dc}=_0x20da7f;return _0x3787dc&&'mergeTableCells'==_0x3787dc['commandName']?{'type':'format','content':o(_0x3f5407,'*Merge\x20cells*')}:void 0x0;}),_0x524997['descriptionFactory']['registerDescriptionCallback'](_0x3187ff=>{if('formatBlock'!=_0x3187ff['type']&&'formatInline'!=_0x3187ff['type'])return;const {data:_0xdd7af9}=_0x3187ff;return _0xdd7af9?'splitTableCellVertically'==_0xdd7af9['commandName']?{'type':'format','content':o(_0x3f5407,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xdd7af9['commandName']?{'type':'format','content':o(_0x3f5407,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x462b1d=_0x3f8a97['_acceptFormatSuggestionCallbackFactory']();for(const _0x1f3476 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x524997['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f3476,'accept',_0x462b1d);for(const _0x4bd329 of['splitTableCellVertically','splitTableCellHorizontally'])_0x524997['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4bd329,'accept',_0x462b1d);_0x524997['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x45b6dd=>{_0x3ad15b['model']['change'](_0x4aafdd=>{const _0x95c7cf=Array['from'](_0x4e3c32['getRanges']())['map'](_0x1a9bd8=>_0x4f11f5['fromRange'](_0x1a9bd8));_0x4aafdd['setSelection'](_0x45b6dd),_0x3ad15b['commands']['get']('mergeTableCells')['refresh'](),_0x3ad15b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xb33533=_0x95c7cf['filter'](_0x5ca9fc=>'$graveyard'!=_0x5ca9fc['root']['rootName']);_0xb33533['length']>0x0&&_0x4aafdd['setSelection'](_0xb33533);for(const _0x5aad8a of _0x95c7cf)_0x5aad8a['detach']();});});for(const _0xbd580e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2a3d73=_0x3ad15b['commands']['get'](_0xbd580e);_0x2a3d73['on']('set:isEnabled',(_0x52f514,_0x5aad5a,_0x5b47bf)=>{if(_0x5b47bf){const _0x4a824e=_0x3ad15b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2114e4=>_0x2114e4['is']('element','tableCell'));this['_areMergableCells'](_0x2a3d73['value'],_0x4a824e)||(_0x52f514['return']=!0x1,_0x52f514['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3cf2ee=this['editor']['commands']['get']('mergeTableCells'),_0x3b9ba7=this['editor']['plugins']['get']('TableUtils');if(!_0x3cf2ee['isEnabled'])return!0x1;const _0x5e5246=_0x3b9ba7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x29372b of _0x5e5246)for(const _0x15d1e5 of _0x5e5246)if(_0x29372b!=_0x15d1e5&&!this['_areMergableCells'](_0x29372b,_0x15d1e5))return!0x1;return!0x0;}['_areMergableCells'](_0x436a6e,_0x3e6f8c){const _0x5a13b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x218f5e=this['editor']['model']['createRangeOn'](_0x436a6e),_0x305c54=this['editor']['model']['createRangeOn'](_0x3e6f8c),_0x155fb5=new Set(),_0x12cd3f=new Set();for(const _0xdc31ff of _0x5a13b8['getSuggestions']())if(('insertion'==_0xdc31ff['type']||'deletion'==_0xdc31ff['type']||'mergeTableCells'==_0xdc31ff['subType'])&&_0xdc31ff['isInContent']){for(const _0x54e9de of _0xdc31ff['getRanges']())_0x54e9de['containsRange'](_0x218f5e,!0x0)&&_0x155fb5['add'](_0xdc31ff['type']+':'+_0xdc31ff['author']['id']),_0x54e9de['containsRange'](_0x305c54,!0x0)&&_0x12cd3f['add'](_0xdc31ff['type']+':'+_0xdc31ff['author']['id']);}if(_0x155fb5['size']!=_0x12cd3f['size'])return!0x1;for(const _0x4d013d of _0x155fb5)if(!_0x12cd3f['has'](_0x4d013d))return!0x1;return!0x0;}}class Ct extends _0x3d8ee5{static get['requires'](){return[At];}['afterInit'](){const _0x114120=this['editor'];if(!_0x114120['plugins']['has']('TableEditing'))return;const _0x48b7db=_0x114120['locale'],_0x19ebe3=_0x114120['plugins']['get']('TrackChangesEditing');_0x19ebe3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x19ebe3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x19ebe3['registerBlockAttribute']('headingRows'),_0x19ebe3['registerBlockAttribute']('headingColumns'),_0x19ebe3['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x48b7db,'FORMAT_HEADER_ROW')),_0x19ebe3['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x48b7db,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x9bab2c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x153c72=this['editor']['plugins']['get']('TableUtils'),_0xe099d9=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x5ab91f({showActiveMarker:_0xd53308=!0x0,setDataAttribute:_0x4c8e39=!0x0}={}){return(_0x1145a5,_0x5cffb2,_0xfb7195)=>{const {type:_0xc7c97d,id:_0x222027}=_0x9bab2c['_splitMarkerName'](_0x5cffb2['markerName']),_0x4fa2d3=_0x9bab2c['getSuggestion'](_0x222027),_0x2dccaa=_0x4fa2d3['data'];if('formatBlock'!=_0x4fa2d3['type']||!_0x2dccaa||'setTableColumnHeader'!=_0x2dccaa['commandName'])return;if(_0x5cffb2['item'])return void _0x1145a5['stop']();if(!_0xfb7195['consumable']['consume'](_0x5cffb2['markerRange'],_0x1145a5['name']))return;const _0xc049b2=_0x5cffb2['markerRange']['start']['nodeAfter'],_0x4d31e1=_0x5cffb2['markerRange']['end']['nodeBefore'],_0x5372e8=_0xc049b2['parent']['parent'],{column:_0x5d4375}=_0x153c72['getCellLocation'](_0xc049b2),{column:_0x2ac6d1}=_0x153c72['getCellLocation'](_0x4d31e1);for(let _0xf92580=_0x5d4375;_0xf92580<=_0x2ac6d1;_0xf92580++){const _0x135a65=_0x153c72['createTableWalker'](_0x5372e8,{'column':_0xf92580,'includeAllSlots':!0x1});for(const _0x182793 of _0x135a65){const _0x48d913=_0x182793['cell'],_0x3698c6=_0xfb7195['mapper']['toViewElement'](_0x48d913);_0xfb7195['writer']['addClass']('ck-suggestion-marker-'+_0xc7c97d,_0x3698c6),_0x4c8e39&&_0xfb7195['writer']['setAttribute']('data-suggestion',_0x222027,_0x3698c6),_0xfb7195['mapper']['bindElementToMarker'](_0x3698c6,_0x5cffb2['markerName']),_0xd53308&&(_0x9bab2c['activeMarkers']['includes'](_0x5cffb2['markerName'])?_0xfb7195['writer']['addClass']('ck-suggestion-marker--active',_0x3698c6):_0xfb7195['writer']['removeClass']('ck-suggestion-marker--active',_0x3698c6));}}};}_0x9bab2c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xe099d9),_0x9bab2c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xe099d9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5ab91f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4cf662,_0x56a76e,_0xc9e610)=>{_0xc9e610['options']['showSuggestionHighlights']&&_0x5ab91f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4cf662,_0x56a76e,_0xc9e610);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x598913,_0x585526,_0x3e41af)=>{const {type:_0x93af5,id:_0x1b6053}=_0x9bab2c['_splitMarkerName'](_0x585526['markerName']),_0x55d0ba=_0x9bab2c['getSuggestion'](_0x1b6053),_0xed89d3=_0x55d0ba['data'];if('formatBlock'!=_0x55d0ba['type']||!_0xed89d3||'setTableColumnHeader'!=_0xed89d3['commandName'])return;const _0x5cda18=_0x3e41af['mapper']['markerNameToElements'](_0x585526['markerName']);if(_0x5cda18){for(const _0x3ad10e of _0x5cda18)_0x3e41af['writer']['removeClass']('ck-suggestion-marker-'+_0x93af5,_0x3ad10e),_0x3e41af['writer']['removeClass']('ck-suggestion-marker--active',_0x3ad10e),_0x3e41af['writer']['removeAttribute']('data-suggestion',_0x3ad10e),_0x3e41af['mapper']['unbindElementFromMarkerName'](_0x3ad10e,_0x585526['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x471af3=this['editor'],_0x41f685=_0x471af3['locale'];function _0x524d99(_0x42e537){return{'type':'format','content':o(_0x41f685,'*Format:*\x20%0',_0x42e537)};}_0x471af3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x849774=>{if('formatBlock'!=_0x849774['type'])return;const {data:_0x37865c}=_0x849774;if(_0x37865c){if('setTableRowHeader'==_0x37865c['commandName']){const _0x11c0cb=_0x37865c['commandParams'][0x0]['forceValue'];return _0x524d99(o(_0x41f685,_0x11c0cb?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x37865c['commandName']){const _0x48b8fa=_0x37865c['commandParams'][0x0]['forceValue'];return _0x524d99(o(_0x41f685,_0x48b8fa?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x3d8ee5{['afterInit'](){const _0x4a9719=this['editor'],_0x576ea5=_0x4a9719['locale'],_0x37a87a=_0x4a9719['plugins']['get']('TrackChangesEditing');function _0x396004(_0x25b73c){return{'type':'format','content':''+o(_0x576ea5,'*Set\x20table\x20type:*\x20%0',_0x25b73c)};}_0x4a9719['plugins']['has']('TableLayout')&&(_0x37a87a['enableCommand']('insertTableLayout'),_0x37a87a['enableDefaultAttributesIntegration']('tableType'),_0x37a87a['registerBlockAttribute']('tableType'),_0x37a87a['descriptionFactory']['registerElementLabel'](_0x1daecc=>_0x1daecc['is']('element','table')&&'layout'===_0x1daecc['getAttribute']('tableType'),_0x23cb92=>o(_0x576ea5,'ELEMENT_LAYOUT_TABLE',_0x23cb92)),_0x37a87a['descriptionFactory']['registerDescriptionCallback'](_0x9cfc9a=>{const {data:_0x1eddb8}=_0x9cfc9a;if(_0x1eddb8&&'tableType'==_0x1eddb8['key'])switch(_0x1eddb8['newValue']){case'layout':return _0x396004(o(_0x576ea5,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x396004(o(_0x576ea5,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x3c3a6e=>[_0x3c3a6e,null]));class Nt extends _0x3d8ee5{static get['requires'](){return[At];}['afterInit'](){const _0x5591b6=this['editor'];if(!_0x5591b6['plugins']['has']('TableClipboard'))return;const _0xa70120=_0x5591b6['plugins']['get']('TrackChangesEditing'),_0x2be857=_0x5591b6['plugins']['get']('TableUtils'),_0x4d6cf6=_0x5591b6['plugins']['get'](At),_0x19e7fe=_0x5591b6['plugins']['get']('TableClipboard'),_0x399601=_0x5591b6['plugins']['get']('TableSelection'),_0x355671=_0x5591b6['plugins']['get'](_0x52e828);_0x4d6cf6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5591b6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5591b6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x55fcc3=null,_0x548a60=!0x1;_0x355671['on']('contentInsertion',(_0x2967cf,_0x3b9a1a)=>{_0x548a60='paste'===_0x3b9a1a['method'];}),_0x5591b6['model']['on']('insertContent',(_0x21976c,_0x56bd2d)=>{if(!_0x548a60&&null===_0x399601['getSelectedTableCells']())return;const [_0x1bff1b,_0x1ca759]=_0x56bd2d,_0x4227d7=_0x56bd2d[_0x56bd2d['length']-0x1];_0x4227d7&&_0x4227d7['forceDefaultExecution']||_0xa70120['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x401daa,_0x5b1915,_0x5164ee,_0x47d289,_0x56e959){if(_0x5b1915&&!_0x5b1915['is']('documentSelection'))return!0x1;const _0x4ba3fc=_0x56e959['getTableIfOnlyTableInContent'](_0x401daa,_0x5164ee);if(!_0x4ba3fc||!Ue(_0x4ba3fc,void 0x0,_0x47d289))return!0x1;const _0x4df1b6=_0x47d289['getSelectionAffectedTableCells'](_0x5164ee['document']['selection']);if(!_0x4df1b6['length'])return!0x1;const _0x115141=_0x4df1b6[0x0]['findAncestor']('table'),_0x41401d=_0x47d289['getRowIndexes'](_0x4df1b6),_0x1bbd90=_0x47d289['getColumnIndexes'](_0x4df1b6),_0x231794={'startRow':_0x41401d['first'],'endRow':_0x41401d['last'],'startColumn':_0x1bbd90['first'],'endColumn':_0x1bbd90['last']};return 0x1==_0x4df1b6['length']&&(_0x231794['endRow']+=_0x47d289['getRows'](_0x4ba3fc)-0x1,_0x231794['endColumn']+=_0x47d289['getColumns'](_0x4ba3fc)-0x1),Ue(_0x115141,_0x231794,_0x47d289);}(_0x1bff1b,_0x1ca759,_0x5591b6['model'],_0x2be857,_0x19e7fe)&&(_0x21976c['stop'](),_0x55fcc3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5591b6['model']['change'](()=>{_0x5591b6['model']['insertContent'](_0x56bd2d[0x0],_0x56bd2d[0x1],_0x56bd2d[0x2],{'forceDefaultExecution':!0x0});const _0x3b7e3a=_0x5b1bcf(),{rowInsertionRanges:_0x5926eb,columnInsertionRanges:_0x22e992,insertionRanges:_0x32d8eb,deletionRanges:_0x28a1e8,cells:_0x45ab4a}=_0x55fcc3;_0x5926eb['length']&&_0xa70120['markMultiRangeInsertion'](_0x5926eb,'tablePasteRow',{'tablePasteChainId':_0x3b7e3a}),_0x22e992['length']&&_0xa70120['markMultiRangeInsertion'](_0x22e992,'tablePasteColumn',{'tablePasteChainId':_0x3b7e3a}),_0x32d8eb['length']&&(_0xa70120['markMultiRangeInsertion'](_0x32d8eb,'tablePaste',{'tablePasteChainId':_0x3b7e3a,'skipNestingCheck':!0x0}),_0x32d8eb['forEach'](_0x467dbd=>_0x467dbd['detach']?.())),_0x28a1e8['length']&&(_0xa70120['markMultiRangeDeletion'](_0x28a1e8,'tablePaste',{'tablePasteChainId':_0x3b7e3a,'skipNestingCheck':!0x0}),_0x28a1e8['forEach'](_0x60c41a=>_0x60c41a['detach']?.()));const _0x4e4d44=_0xa70120['markMultiRangeBlockFormat'](_0x45ab4a['map'](({element:_0x22d569})=>_0x22d569),{'formatGroupId':_0x5b1bcf()},[],'tablePasteCell',{'tablePasteChainId':_0x3b7e3a});if(_0x4e4d44){const _0x5fb805=_0x4e4d44['getMarkers'](),_0x3ae26e=[];for(const {element:_0x302c58,attributes:_0x2dd1fc}of _0x45ab4a){if(!_0x2dd1fc)continue;const _0x31eb7f=_0x5591b6['model']['createRangeOn'](_0x302c58),_0x447c74=_0x5fb805['find'](_0x2ee303=>_0x2ee303['getRange']()['isEqual'](_0x31eb7f));_0x447c74&&_0x3ae26e['push']([_0x447c74['name'],_0x2dd1fc]);}_0x3ae26e['length']&&_0x4e4d44['setAttribute']('markerAttributes',Object['fromEntries'](_0x3ae26e));}_0x55fcc3=null;}));},{'priority':_0x3f788b['high']+0xa}),_0x355671['on']('contentInsertion',()=>{_0x548a60=!0x1;},{'priority':'lowest'}),_0x5591b6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x50bfaf,_0x48706e)=>{const [_0x57fb40,_0x557194,,_0x222326]=_0x48706e;if(!_0x55fcc3)return;_0x50bfaf['stop']();const _0x392de4=_0x57fb40['cell'],_0x29429e=_0x557194,_0x35579b=Oe(_0x392de4),_0x33a56a=Oe(_0x29429e);_0x50bfaf['return']=_0x392de4;let _0x49f1f4=null,_0x475f2d=null;if(_0x33a56a||_0x35579b){if(_0x35579b&&!_0x33a56a){_0x222326['remove'](_0x392de4['getChild'](0x0));for(const _0x245f0f of Array['from'](_0x29429e['getChildren']()))_0x222326['insert'](_0x245f0f,_0x392de4,'end');const _0x4c4142=_0x55fcc3['rowInsertionIndexes']['includes'](_0x57fb40['row']),_0x418444=_0x55fcc3['columnInsertionIndexes']['includes'](_0x57fb40['column']);_0x4c4142||_0x418444||(_0x49f1f4=_0x4f11f5['fromRange'](_0x222326['createRangeIn'](_0x392de4)));}else _0x33a56a&&!_0x35579b&&(_0x475f2d=_0x222326['createRangeIn'](_0x392de4));}else{const _0x1d9a12=_0x222326['createElement']('tableCellSuggestion'),_0x16a41b=_0x222326['createElement']('tableCellSuggestion');_0x222326['wrap'](_0x222326['createRangeIn'](_0x392de4),_0x16a41b),_0x222326['insert'](_0x1d9a12,_0x392de4,0x0);for(const _0x5964c1 of Array['from'](_0x29429e['getChildren']()))_0x222326['insert'](_0x5964c1,_0x1d9a12,'end');_0x49f1f4=_0x4f11f5['fromRange'](_0x222326['createRangeOn'](_0x1d9a12)),_0x475f2d=_0x4f11f5['fromRange'](_0x222326['createRangeOn'](_0x16a41b));}const _0xa26482=Array['from'](_0x29429e['getAttributes']())['filter'](([_0x311374])=>Be['includes'](_0x311374));_0x55fcc3['cells']['push']({'element':_0x392de4,'attributes':_0xa26482['length']?Object['fromEntries'](_0xa26482):null}),_0x49f1f4&&_0x55fcc3['insertionRanges']['push'](_0x49f1f4),_0x475f2d&&_0x55fcc3['deletionRanges']['push'](_0x475f2d);},{'priority':'high'}),_0x2be857['on']('insertColumns',(_0x46d443,_0x209d91)=>{const [_0x302252,_0x3bab61={}]=_0x209d91;if(!_0x55fcc3)return;const _0xbb8431=_0x3bab61['at']||0x0,_0x18633f=_0x3bab61['columns']||0x1;_0x55fcc3['columnInsertionIndexes']=new Array(_0x18633f)['fill'](_0xbb8431)['map']((_0x2e4e57,_0xcaee44)=>_0x2e4e57+_0xcaee44);for(const {cell:_0x12e474}of _0x2be857['createTableWalker'](_0x302252,{'startColumn':_0xbb8431,'endColumn':_0xbb8431+_0x18633f-0x1}))_0x55fcc3['columnInsertionRanges']['push'](_0x5591b6['model']['createRangeOn'](_0x12e474));},{'priority':'low'}),_0x2be857['on']('insertRows',(_0x186169,_0x3d2e8a)=>{const [_0x5d284d,_0x7c5de8={}]=_0x3d2e8a;if(!_0x55fcc3)return;const _0x1eb009=_0x7c5de8['at']||0x0,_0x301e96=_0x7c5de8['rows']||0x1;_0x55fcc3['rowInsertionIndexes']=new Array(_0x301e96)['fill'](_0x1eb009)['map']((_0x237685,_0x1f46eb)=>_0x237685+_0x1f46eb);for(const {cell:_0x5c98fc}of _0x2be857['createTableWalker'](_0x5d284d,{'startRow':_0x1eb009,'endRow':_0x1eb009+_0x301e96-0x1}))_0x55fcc3['rowInsertionRanges']['push'](_0x5591b6['model']['createRangeOn'](_0x5c98fc));},{'priority':'low'}),_0xa70120['descriptionFactory']['registerDescriptionCallback'](_0x374740=>{if(_0x374740['subType']&&_0x374740['subType']['startsWith']('tablePaste'))return _0x374740['previous']?{}:{'type':'insertion','content':o(_0x5591b6['locale'],'*Replace\x20table\x20cells*')};});const _0x46307b=()=>!0x1;for(const _0x17517e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xa70120['_suggestionFactory']['registerCustomCallback']('insertion',_0x17517e,'join',_0x46307b),_0xa70120['_suggestionFactory']['registerCustomCallback']('deletion',_0x17517e,'join',_0x46307b),_0xa70120['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x17517e,'join',_0x46307b);_0xa70120['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x46307b),_0xa70120['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5827e8,_0x25c982,_0x177c7d)=>{const _0x21ef7e=_0x5827e8['map'](_0x441fe8=>_0x441fe8['getContainedElement']())['filter'](_0xd77fae=>_0xd77fae),_0x21bbd2=new Map(_0x21ef7e['map'](_0x40c7c9=>[_0x40c7c9,null]));if(_0x55fcc3){for(const {element:_0x5c0759,attributes:_0x1d1474}of _0x55fcc3['cells'])_0x1d1474&&_0x21bbd2['set'](_0x5c0759,_0x1d1474);}else{if(_0x177c7d&&_0x177c7d['markerAttributes'])for(const [_0x280eff,_0x8551c7]of Object['entries'](_0x177c7d['markerAttributes'])){const _0x2a72f9=_0x5591b6['model']['markers']['get'](_0x280eff),_0x453322=_0x2a72f9?_0x2a72f9['getRange']()['getContainedElement']():null;_0x453322&&_0x21bbd2['set'](_0x453322,_0x8551c7);}}_0x5591b6['model']['change'](_0x4badca=>{for(const [_0x5bf04f,_0x468dc1]of _0x21bbd2)_0x4badca['setAttributes']({...xe,..._0x468dc1},_0x5bf04f);});});const _0x3df70a=(_0x380bea,_0x58f572)=>{_0xa70120['_suggestionFactory']['registerCustomCallback'](_0x380bea,'tablePaste',_0x58f572,(_0xf08dfb,_0x1c9596,_0x5e566f)=>{_0x5591b6['model']['change'](_0x17ce25=>{const _0x13296b=[];for(const _0x2085b9 of _0xf08dfb){const _0x5a5bf0=_0x2085b9['start']['nodeAfter'];_0x5a5bf0['is']('element','tableCellSuggestion')&&_0x13296b['push'](_0x5a5bf0);}_0xa70120['_suggestionFactory']['getSuggestionCallback'](_0x380bea,null,_0x58f572)(_0xf08dfb,_0x1c9596,_0x5e566f);for(const _0x1ce9aa of _0x13296b)'$graveyard'!=_0x1ce9aa['root']['rootName']&&_0x17ce25['unwrap'](_0x1ce9aa);});});};_0x3df70a('insertion','accept'),_0x3df70a('insertion','discard'),_0x3df70a('deletion','accept'),_0x3df70a('deletion','discard'),_0xa70120['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5f314e=>{const _0x1796dd=_0x5f314e['map'](_0x2473c4=>_0x2473c4['getContainedElement']()),_0x49e98b=_0x1796dd[0x0]['findAncestor']('table'),{minRow:_0x303650,maxRow:_0x2173d7}=_0x4d6cf6['_getCoordsForCells'](_0x1796dd);_0x2be857['removeRows'](_0x49e98b,{'at':_0x303650,'rows':_0x2173d7-_0x303650+0x1});}),_0xa70120['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x31cecb=>{const _0x224610=_0x31cecb['map'](_0x5235e8=>_0x5235e8['getContainedElement']()),_0x4e30ed=_0x224610[0x0]['findAncestor']('table'),{minColumn:_0x13f579,maxColumn:_0x310759}=_0x4d6cf6['_getCoordsForCells'](_0x224610);_0x2be857['removeColumns'](_0x4e30ed,{'at':_0x13f579,'columns':_0x310759-_0x13f579+0x1});});const _0x1e0be0=(_0x380694,_0xe059ab)=>{if(!_0xe059ab['subType']||!_0xe059ab['subType']['startsWith']('tablePaste'))return;const _0x5daab4=_0xe059ab['attributes']['tablePasteChainId'],_0xb3f645=_0xa70120['getSuggestions']()['filter'](_0x14adeb=>_0x14adeb['isInContent']&&_0x14adeb['attributes']&&_0x14adeb['attributes']['tablePasteChainId']==_0x5daab4);_0xb3f645['length']&&_0xe059ab['getAllAdjacentSuggestions']()['length']!=_0xb3f645['length']&&_0xb3f645['reduce']((_0x524ec1,_0xdbfe3c)=>(_0x524ec1['next']=_0xdbfe3c,_0xdbfe3c['previous']=_0x524ec1,_0xdbfe3c));};function _0x56f271(_0x37c108,_0xee7623=!0x0){const {id:_0x482874,authorId:_0xefe0f6}=_0xa70120['_splitMarkerName'](_0x37c108['markerName']),_0xffdda1=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x336e8c=_0xa70120['activeMarkers']['includes'](_0x37c108['markerName']);return _0x336e8c&&_0xffdda1['push']('ck-suggestion-marker--active'),{'classes':_0xffdda1,'attributes':{'data-suggestion':_0x482874,'data-author-id':_0xefe0f6},'priority':_0x336e8c&&_0xee7623?0xbc2:0xbb8};}_0xa70120['on']('suggestionLoaded',_0x1e0be0,{'priority':'high'}),_0xa70120['on']('suggestionUnloaded',_0x1e0be0,{'priority':'high'}),_0x5591b6['model']['document']['registerPostFixer'](()=>{let _0x266f4d=!0x1;const _0x3dfb85=Array['from'](_0x5591b6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x526bba,data:_0x198b3a}of _0x3dfb85){const {group:_0x45dbad,type:_0x1bf001,id:_0x499248}=_0xa70120['_splitMarkerName'](_0x526bba);if('suggestion'!=_0x45dbad||'deletion'!=_0x1bf001||_0x198b3a['oldRange'])continue;if(!_0xa70120['hasSuggestion'](_0x499248))continue;const _0x26032c=_0xa70120['getSuggestion'](_0x499248)['getRanges'](),_0x30a526=_0x5591b6['plugins']['get']('Users')['me'];for(const _0x5133cc of _0xa70120['getSuggestions']()){if(!_0x5133cc['isInContent']||_0x5133cc['author']!=_0x30a526)continue;if('formatBlock'!=_0x5133cc['type']||'tablePasteCell'!=_0x5133cc['subType'])continue;if(_0x5133cc['getRanges']()['every'](_0x25229c=>_0x26032c['some'](_0x174125=>_0x174125['containsRange'](_0x25229c,!0x0)))){for(const _0x35f70c of _0x5133cc['getAllAdjacentSuggestions']())_0x35f70c['isInContent']&&(_0x35f70c['discard'](),_0x266f4d=!0x0);}}}return _0x266f4d;}),_0x5591b6['model']['document']['registerPostFixer'](_0x2d3e62=>{const _0x118770=_0x5591b6['commands']['get']('redo');if(!_0x118770||!_0x118770['_createdBatches']['has'](_0x2d3e62['batch']))return!0x1;let _0x4b58fb=!0x1;const _0xcb76cb=_0x5591b6['plugins']['get']('Users')['me'],_0x37348b=_0x5591b6['model']['document']['differ']['getChanges'](),_0x27f0a8=Array['from'](_0x5591b6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x36abb2,data:_0x3bf98c})=>{const {group:_0x57208d,subType:_0x25f1d3,authorId:_0x321773}=_0xa70120['_splitMarkerName'](_0x36abb2);return'suggestion'==_0x57208d&&'tablePaste'==_0x25f1d3&&_0x321773==_0xcb76cb['id']&&!_0x3bf98c['oldRange'];});for(const _0x2dfc30 of _0x37348b){if('insert'!=_0x2dfc30['type']||'tableCellSuggestion'!=_0x2dfc30['name']||0x1!=_0x2dfc30['length'])continue;const _0x789dd5=_0x2d3e62['createRange'](_0x2dfc30['position'],_0x2dfc30['position']['getShiftedBy'](0x1));if(!_0x27f0a8['find'](({data:_0x20f9ea})=>_0x20f9ea['newRange']['isEqual'](_0x789dd5))){for(const {name:_0x5798e7,data:_0x5b8700}of _0x27f0a8)if(_0x789dd5['containsRange'](_0x5b8700['newRange'])){_0x2d3e62['updateMarker'](_0x5798e7,{'range':_0x789dd5}),_0x4b58fb=!0x0;break;}}}return _0x4b58fb;}),_0x5591b6['model']['document']['registerPostFixer'](_0x49b16e=>{let _0x5dbf52=!0x1;const _0x4de129=_0x5591b6['plugins']['get']('Users')['me'],_0xd9fa83=_0xa70120['getSuggestions']()['filter'](_0x302320=>_0x302320['isInContent']&&_0x302320['author']==_0x4de129),_0x34ed8c=new Set(),_0x299a36=new Set();for(const _0x30d7b4 of _0xd9fa83)if('tablePaste'==_0x30d7b4['subType'])for(const _0x4e1471 of _0x30d7b4['getMarkers']()){const _0x565e0b=_0x4e1471['getRange']()['getContainedElement']();if(_0x565e0b){if(_0x565e0b['is']('element','tableCellSuggestion')&&Oe(_0x565e0b)){_0x30d7b4['removeMarker'](_0x4e1471['name']),_0x34ed8c['add'](_0x565e0b),_0x5dbf52=!0x0;const _0x2c4272=_0x565e0b['nextSibling'],_0x34bfdc=_0x565e0b['previousSibling'],_0x9d19dc=_0x2c4272&&_0x2c4272['is']('element','tableCellSuggestion'),_0x2288bf=_0x34bfdc&&_0x34bfdc['is']('element','tableCellSuggestion');_0x9d19dc&&!_0x34ed8c['has'](_0x2c4272)&&_0x299a36['add'](_0x2c4272),_0x2288bf&&!_0x34ed8c['has'](_0x34bfdc)&&_0x299a36['add'](_0x34bfdc);}else _0x565e0b['is']('element','paragraph')&&_0x565e0b['isEmpty']&&(_0x30d7b4['removeMarker'](_0x4e1471['name']),_0x5dbf52=!0x0);}}else{if('tablePasteCell'==_0x30d7b4['subType']){if(!_0x30d7b4['attributes']||!_0x30d7b4['attributes']['tablePasteChainId'])continue;const _0xd73282=_0x30d7b4['attributes']['markerAttributes'];if(_0xd73282&&Object['keys'](_0xd73282)['length'])continue;const _0x32c7ce=_0x30d7b4['attributes']['tablePasteChainId'];let _0xf7f778=!0x0,_0x19a35d=!0x0;for(const _0x21e505 of _0xd9fa83)if(_0x21e505['subType']&&_0x21e505['subType']['startsWith']('tablePaste')){if(!_0x21e505['attributes']['tablePasteChainId']){_0x19a35d=!0x1;break;}if(_0x21e505['id']!=_0x30d7b4['id']&&_0x21e505['attributes']['tablePasteChainId']==_0x32c7ce){_0xf7f778=!0x1;break;}}_0x19a35d&&_0xf7f778&&(_0x30d7b4['removeMarkers'](),_0x5dbf52=!0x0);}}for(const _0x2bf8b9 of _0x34ed8c)_0x49b16e['remove'](_0x2bf8b9);for(const _0x31aac0 of _0x299a36)_0x49b16e['unwrap'](_0x31aac0);return _0x5dbf52;}),_0x5591b6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3db476=>_0x56f271(_0x3db476),'converterPriority':'high'}),_0x5591b6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xa2d341,_0x137bcb)=>_0x137bcb['options']['showSuggestionHighlights']?_0x56f271(_0xa2d341,!0x1):null,'converterPriority':'high'});const _0x18eecf=_0x5591b6['editing']['view'];this['listenTo'](_0x18eecf['document'],'clipboardOutput',(_0xd8c63c,_0x5776ce)=>{const _0x4f8220=[];for(const _0x2c7481 of _0x18eecf['createRangeIn'](_0x5776ce['content'])['getItems']())_0x2c7481['is']('element','suggestion-td')&&_0x4f8220['push'](_0x2c7481);_0x18eecf['change'](_0x3b7155=>{for(const _0x2e3a35 of _0x4f8220)_0x3b7155['move'](_0x3b7155['createRangeIn'](_0x2e3a35),_0x3b7155['createPositionBefore'](_0x2e3a35)),_0x3b7155['remove'](_0x2e3a35);});});}}function Oe(_0xb0a0ad){if(_0xb0a0ad['isEmpty'])return!0x0;const _0x57ce48=_0xb0a0ad['getChild'](0x0);return _0x57ce48['is']('element','paragraph')&&_0x57ce48['isEmpty'];}function Ue(_0xd17e19,_0x158b3a={},_0x1c3b75){for(const {isAnchor:_0x3e4f61,cellHeight:_0x2792ca,cellWidth:_0xc6e0a5}of _0x1c3b75['createTableWalker'](_0xd17e19,{'includeAllSlots':!0x0,..._0x158b3a}))if(!_0x3e4f61||0x1!=_0x2792ca||0x1!=_0xc6e0a5)return!0x1;return!0x0;}class Dt extends _0x3d8ee5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1b8380=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b8380['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1b8380['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1b8380['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1b8380['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1b8380['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1b8380['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1c08e9,_0x3a92ad){const _0x2b9453=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ce4d5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x434f5a=_0x3a92ad['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x79241c=_0x5ce4d5['getColumnGroupElement'](_0x434f5a);let _0xa30501=_0x79241c?_0x5ce4d5['getTableColumnsWidths'](_0x79241c):null,_0x39ab62=_0x434f5a['getAttribute']('tableWidth')||null;const _0x37f033=_0x3a92ad['tableWidth']||_0x39ab62,_0x29375b=_0x3a92ad['columnWidths']||_0xa30501,_0x2755f7=this['editor']['plugins']['get']('Users')['me'];for(const _0x4a7d11 of _0x2b9453['getSuggestions']()){const _0x5c1488=_0x4a7d11['getContainedElement']();if('resizeTable'===_0x4a7d11['subType']&&_0x5c1488===_0x434f5a){_0x4a7d11['author']!==_0x2755f7&&_0x4a7d11['discard']();const _0x30cabf=_0x4a7d11['data']['commandParams'];_0x39ab62=_0x30cabf[0x0]['tableWidth'],_0xa30501=_0x30cabf[0x0]['columnWidths'];break;}}_0x1c08e9({'table':_0x434f5a,'tableWidth':_0x37f033,'columnWidths':_0x29375b}),_0x2b9453['markBlockFormat'](_0x434f5a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x39ab62,'columnWidths':_0xa30501}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xdaeb8a){if('formatBlock'!=_0xdaeb8a['type']&&'formatInline'!=_0xdaeb8a['type'])return;const {data:_0x349977}=_0xdaeb8a;if(_0x349977&&'resizeTable'===_0x349977['formatGroupId']){const _0xd65639='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xd65639)};}}}class $t extends _0x3d8ee5{['afterInit'](){const _0x4f55a6=this['editor'];_0x4f55a6['plugins']['has']('Template')&&_0x4f55a6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3d8ee5{['afterInit'](){const _0x1bc9b1=this['editor'];if(!_0x1bc9b1['commands']['get']('insertTableOfContents'))return;_0x1bc9b1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x257e55=_0x1bc9b1['plugins']['get']('TrackChangesEditing'),_0x335aa4=_0x1bc9b1['locale'];_0x257e55['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5e9940=>o(_0x335aa4,'ELEMENT_TABLE_OF_CONTENTS',_0x5e9940));}}class Bt extends _0x3d8ee5{['afterInit'](){const _0x519e5d=this['editor'];if(!_0x519e5d['plugins']['has']('Title'))return;const _0x5954e3=_0x519e5d['plugins']['get']('TrackChangesEditing');_0x5954e3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x519e5d['locale'],'ELEMENT_TITLE')),_0x519e5d['model']['document']['registerPostFixer'](_0x1ddf81=>{let _0x5313a1=!0x1;const _0x3f6c9e=Array['from'](_0x519e5d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4040a5,data:_0x12225b}of _0x3f6c9e){const {group:_0x36b128}=_0x5954e3['_splitMarkerName'](_0x4040a5);if('suggestion'!==_0x36b128||!_0x12225b['newRange'])continue;const _0x2555dc=_0x12225b['newRange'],_0x424fa4=_0x2555dc['end']['nodeBefore'];if(!_0x424fa4||!_0x424fa4['is']('element','title-content'))continue;if(!_0x2555dc['start']['isTouching'](_0x2555dc['end']))continue;const _0x3079ac=_0x519e5d['model']['schema']['getNearestSelectionRange'](_0x2555dc['end'],'forward');if(_0x3079ac&&_0x3079ac['isCollapsed']){const _0x3a2907=_0x1ddf81['createRange'](_0x2555dc['start'],_0x3079ac['start']);_0x3a2907['isEqual'](_0x2555dc)||(_0x1ddf81['updateMarker'](_0x4040a5,{'range':_0x3a2907}),_0x5313a1=!0x0);}_0x5313a1||(_0x1ddf81['removeMarker'](_0x4040a5),_0x5313a1=!0x0);}return _0x5313a1;});}}class Tt extends _0x3d8ee5{['afterInit'](){const _0x4912ce=this['editor'],_0x3a8bc5=_0x4912ce['plugins']['get']('TrackChangesEditing');_0x4912ce['plugins']['has']('Uploadcare')&&(_0x3a8bc5['enableCommand']('uploadcare'),_0x4912ce['plugins']['has']('UploadcareImageEdit')&&(_0x3a8bc5['enableCommand']('uploadcareImageEdit'),_0x3a8bc5['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3a8bc5['registerBlockAttribute']('uploadcareImageId'),_0x3a8bc5['descriptionFactory']['registerDescriptionCallback'](_0x262cf5=>{if('attribute'!=_0x262cf5['type'])return;const {data:_0x347667}=_0x262cf5;return _0x347667&&'uploadcareImageId'==_0x347667['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x3d8ee5{['afterInit'](){const _0x2e89b6=this['editor'],_0x40293b=_0x2e89b6['plugins']['get']('TrackChangesEditing');_0x2e89b6['plugins']['has']('UndoEditing')&&(_0x40293b['enableCommand']('undo'),_0x40293b['enableCommand']('redo'));}}class Ot extends _0x3d8ee5{static get['requires'](){return[At];}['afterInit'](){const _0x42f0c7=this['editor'];if(!_0x42f0c7['plugins']['has']('TableCaptionEditing'))return;_0x42f0c7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x3d8ee5{['tableProperties'];['tableCellProperties'];constructor(_0x430079){super(_0x430079),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 _0x70424e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1a66cb of this['tableProperties'])_0x70424e['enableCommand'](_0x1a66cb,(_0x5e6bff,_0x2d9344)=>{const _0x23898f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1a66cb,[_0x23898f],this['tableProperties'],'tableProperties',_0x5e6bff,_0x2d9344);});_0x70424e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x70424e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x70424e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5c617f,_0x5a17e4)=>this['handleDiscardAction'](this['tableProperties'],_0x5c617f,_0x5a17e4)),_0x70424e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2b9178 of this['tableCellProperties'])_0x70424e['enableCommand'](_0x2b9178,(_0x2b59ae,_0x2bdd89)=>{const _0x15793c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2b9178,_0x15793c,this['tableCellProperties'],'tableCellProperties',_0x2b59ae,_0x2bdd89);});_0x70424e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x70424e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x70424e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x189497,_0x2f638e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x189497,_0x2f638e)),_0x70424e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x70424e['descriptionFactory']['registerDescriptionCallback'](_0x1b3d65=>this['handleSuggestionDescription'](_0x1b3d65)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5f49dd,_0x3a68f5,_0x41bad3,_0x3adfb1,_0xb034bf,_0x49133c){const _0x1f2263=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x49133c['batch'],()=>{for(const _0x4c3590 of _0x3a68f5){if(this['_getSuggestion'](_0x4c3590,_0x3adfb1))_0xb034bf(_0x49133c);else{const _0x374637={};for(const _0x341e48 of _0x41bad3){const _0x457a18=_0x4c3590['getAttribute'](_0x341e48);void 0x0!==_0x457a18&&(_0x374637[_0x341e48]=_0x457a18);}_0xb034bf(_0x49133c),_0x1f2263['markBlockFormat'](_0x4c3590,{'commandParams':[_0x374637]},[],_0x3adfb1);}}});}['handleDiscardAction'](_0x24c6b4,_0x42caea,_0x23252d){const _0x20a186=_0x42caea[0x0]['start']['nodeAfter'],_0x3036b8=_0x23252d['commandParams'][0x0];this['editor']['model']['change'](_0x6fd63f=>{for(const _0x9f198c of _0x24c6b4)void 0x0!==_0x3036b8[_0x9f198c]?_0x6fd63f['setAttribute'](_0x9f198c,_0x3036b8[_0x9f198c],_0x20a186):_0x6fd63f['removeAttribute'](_0x9f198c,_0x20a186);});}['handleSuggestionDescription'](_0x4f3746){if(_0x4f3746['data'])switch(_0x4f3746['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'](_0x17eb58,_0x240a9e){const _0xb04e56=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4870f4 of _0xb04e56['getSuggestions']({'skipNotAttached':!0x0})){const _0x554d12=_0x4870f4['getContainedElement']();if(_0x4870f4['subType']===_0x240a9e&&_0x554d12===_0x17eb58)return _0x4870f4;}return null;}['_registerTablePropertiesAttributes'](){const _0x48054c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x402bc2=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5805a4 of _0x402bc2){const _0x9f5d78=_0x5805a4['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x48054c['registerBlockAttribute'](_0x5805a4),_0x48054c['descriptionFactory']['registerAttributeLabel'](_0x5805a4,o(this['editor']['locale'],'FORMAT_'+_0x9f5d78));}}}class Rt extends _0x3d8ee5{['afterInit'](){const _0x1a9d4b=this['editor'];if(!_0x1a9d4b['plugins']['has']('LineHeight'))return;const _0x6dba85=_0x1a9d4b['plugins']['get']('TrackChangesEditing'),_0xaf8bd7=_0x1a9d4b['locale'];_0x6dba85['enableDefaultAttributesIntegration']('lineHeight'),_0x6dba85['registerBlockAttribute']('lineHeight'),_0x6dba85['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xaf8bd7,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x3d8ee5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x2dd144,_0x3ba53c,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18410b){super(_0x18410b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3db9d0,_0x4c1681,_0x4af5d8,_0xa6e174)=>{this['_model']['change'](()=>{for(const _0x312150 of[..._0xa6e174,..._0x4af5d8])this['_model']['markers']['has'](_0x312150)&&_0x18410b['editing']['reconvertMarker'](_0x312150);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x18410b['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(),_0x18410b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x18410b['config']['get']('trackChanges.trackFormatChanges'),_0x18410b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x18410b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x18410b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1de4bb=this['editor'],_0x26cf6c=(_0x274a47,_0x21755c)=>{if('attribute'!=_0x274a47)return'ck-suggestion-marker-'+_0x274a47;const _0x37a0a0=_0x21755c['split']('|')[0x0];return this['_isBlockAttribute'](_0x37a0a0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1de4bb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x43442f=>{const {id:_0x1678ac,authorId:_0x27cb1e,type:_0x1b7697,subType:_0x5dfaa2}=this['_splitMarkerName'](_0x43442f['markerName']),_0x1b5dfd=['ck-suggestion-marker',_0x26cf6c(_0x1b7697,_0x5dfaa2)];let _0x5d06dc=0xbb8;return this['activeMarkers']['includes'](_0x43442f['markerName'])&&(_0x1b5dfd['push']('ck-suggestion-marker--active'),_0x5d06dc=0xbc2),'deletion'==_0x1b7697&&(_0x5d06dc+=0x5),{'classes':_0x1b5dfd,'attributes':{'data-suggestion':_0x1678ac,'data-author-id':_0x27cb1e},'priority':_0x5d06dc};}}),_0x1de4bb['conversion']['for']('dataDowncast')['add'](_0xb7321d=>{_0xb7321d['on']('addMarker:suggestion',(_0x3f7467,_0x3fc0f5,_0x1e3bba)=>{if(!_0x1e3bba['options']['showSuggestionHighlights'])return;const _0x411fc2=_0x3fc0f5['item'];if(!_0x411fc2)return;const _0x3d2e27=_0x1e3bba['mapper']['toViewElement'](_0x411fc2);_0x1de4bb['model']['schema']['isObject'](_0x411fc2)&&_0x3d2e27&&!_0x3d2e27['getCustomProperty']('widget')&&_0x3d2e27['is']('containerElement')&&_0x2088e5(_0x3d2e27,_0x1e3bba['writer']);},{'priority':'high'});}),_0x1de4bb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1d40e8,_0x4b9aea)=>{if(!_0x4b9aea['options']['showSuggestionHighlights'])return null;const {id:_0x187afc,authorId:_0x4daa92,type:_0x569d35,subType:_0x2bc757}=this['_splitMarkerName'](_0x1d40e8['markerName']);return{'classes':['ck-suggestion-marker',_0x26cf6c(_0x569d35,_0x2bc757)],'priority':0xbb8,'attributes':{'data-suggestion':_0x187afc,'data-author-id':_0x4daa92}};}});const _0x4b34fe=({showActiveMarkers:_0xfca527=!0x0,isAttributeSuggestion:_0x173d3c=!0x1}={})=>(_0x19834f,_0x22609e,_0x61332c)=>{if(!_0x22609e['item'])return;const {id:_0x1f3207,authorId:_0x2dfbcb}=this['_splitMarkerName'](_0x22609e['markerName']);if(_0x173d3c){const _0x3d53e7=this['_suggestions']['get'](_0x1f3207),_0x301ab3=this['_getAttributeKey'](_0x3d53e7);if(!this['_isBlockAttribute'](_0x301ab3))return;}if(_0x22609e['item']['is']('selection'))return void _0x61332c['consumable']['consume'](_0x22609e['item'],_0x19834f['name']);const _0x12b5b6=_0x61332c['mapper']['toViewElement'](_0x22609e['item']);if(_0x22609e['item']['is']('element')&&_0x1de4bb['model']['schema']['isBlock'](_0x22609e['item'])&&!_0x12b5b6['getCustomProperty']('addHighlight')){_0x61332c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x12b5b6),_0x61332c['writer']['setAttribute']('data-suggestion',_0x1f3207,_0x12b5b6),_0x61332c['writer']['setAttribute']('data-author-id',_0x2dfbcb,_0x12b5b6),_0x61332c['mapper']['bindElementToMarker'](_0x12b5b6,_0x22609e['markerName']),_0xfca527&&(this['activeMarkers']['includes'](_0x22609e['markerName'])?_0x61332c['writer']['addClass']('ck-suggestion-marker--active',_0x12b5b6):_0x61332c['writer']['removeClass']('ck-suggestion-marker--active',_0x12b5b6));for(const _0x125859 of _0x1de4bb['model']['createRangeIn'](_0x22609e['item'])['getItems']())_0x61332c['consumable']['consume'](_0x125859,_0x19834f['name']);_0x61332c['consumable']['consume'](_0x22609e['item'],_0x19834f['name']);}};_0x1de4bb['conversion']['for']('dataDowncast')['add'](_0x215697=>{_0x215697['on']('addMarker:suggestion:formatBlock',(_0x1dcc8c,_0x1ba117,_0x221def)=>{_0x221def['options']['showSuggestionHighlights']&&_0x4b34fe({'showActiveMarkers':!0x1})(_0x1dcc8c,_0x1ba117,_0x221def);},{'priority':'highest'});}),_0x1de4bb['conversion']['for']('dataDowncast')['add'](_0x192d8e=>{_0x192d8e['on']('addMarker:suggestion:attribute',(_0x257cb3,_0x27be12,_0x9f97f8)=>{_0x9f97f8['options']['showSuggestionHighlights']&&_0x4b34fe({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x257cb3,_0x27be12,_0x9f97f8);},{'priority':'highest'});}),_0x1de4bb['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x49cad7,_0x174df5)=>{if(_0x174df5['options']['showSuggestionHighlights']){const {id:_0xaf892c,authorId:_0x12baec}=this['_splitMarkerName'](_0x49cad7);return _0x49cad7['includes'](':split')||_0x49cad7['includes'](':merge')?{'group':'suggestion','name':_0x49cad7['substr'](0xb),'attributes':{'data-suggestion':_0xaf892c,'data-author-id':_0x12baec}}:null;}return{'group':'suggestion','name':_0x49cad7['substr'](0xb)};}}),_0x1de4bb['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x29bcba,{writer:_0x44cf11})=>{let _0x5997d0='suggestion:'+_0x29bcba['getAttribute']('suggestion-type')+':'+_0x29bcba['getAttribute']('id');return _0x29bcba['getAttribute']('marker-count')&&(_0x5997d0+=':'+_0x29bcba['getAttribute']('marker-count')),_0x44cf11['createElement']('$marker',{'data-name':_0x5997d0});}}),_0x1de4bb['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1de4bb['conversion']['for']('editingDowncast')['add'](_0x3ceb46=>{_0x3ceb46['on']('addMarker:suggestion:formatBlock',_0x4b34fe(),{'priority':'high'});}),_0x1de4bb['conversion']['for']('editingDowncast')['add'](_0x50ec76=>{_0x50ec76['on']('addMarker:suggestion:attribute',_0x4b34fe({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1de4bb['conversion']['for']('editingDowncast')['add'](_0x36a9e5=>{_0x36a9e5['on']('removeMarker:suggestion:formatBlock',(_0x2b3a61,_0x152f54,_0x3e3b3e)=>{const _0xc984a6=_0x3e3b3e['mapper']['markerNameToElements'](_0x152f54['markerName']);if(_0xc984a6){for(const _0x5c7498 of _0xc984a6)_0x5c7498['getCustomProperty']('addHighlight')||(_0x3e3b3e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5c7498),_0x3e3b3e['writer']['removeAttribute']('data-suggestion',_0x5c7498),_0x3e3b3e['writer']['removeAttribute']('data-author-id',_0x5c7498),_0x3e3b3e['mapper']['unbindElementFromMarkerName'](_0x5c7498,_0x152f54['markerName']));}},{'priority':'high'});}),_0x1de4bb['conversion']['for']('editingDowncast')['add'](_0x319de5=>{_0x319de5['on']('removeMarker:suggestion:attribute',(_0xa0e0a2,_0x1c3ec9,_0x39b5e1)=>{const _0xe517f2=_0x39b5e1['mapper']['markerNameToElements'](_0x1c3ec9['markerName']);if(!_0xe517f2)return;const {id:_0x5dfe91}=this['_splitMarkerName'](_0x1c3ec9['markerName']),_0x20fcd1=this['_suggestions']['get'](_0x5dfe91),_0x5a6453=this['_getAttributeKey'](_0x20fcd1);if(this['_isBlockAttribute'](_0x5a6453)){for(const _0x3415f7 of _0xe517f2)_0x3415f7['getCustomProperty']('addHighlight')||(_0x39b5e1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3415f7),_0x39b5e1['writer']['removeAttribute']('data-suggestion',_0x3415f7),_0x39b5e1['writer']['removeAttribute']('data-author-id',_0x3415f7),_0x39b5e1['mapper']['unbindElementFromMarkerName'](_0x3415f7,_0x1c3ec9['markerName']));}},{'priority':'high'});}),_0x1de4bb['model']['document']['registerPostFixer'](_0x5f41c5=>{let _0x5d90b0=!0x1;const _0x2117e3=Array['from'](_0x1de4bb['model']['document']['differ']['getChangedMarkers']()),_0x1c666b=new Set();for(const {name:_0xc44c1f,data:_0x520f3e}of _0x2117e3){const {group:_0xd92d0c,type:_0x13f70f,subType:_0x313e59,id:_0x50fc33}=this['_splitMarkerName'](_0xc44c1f);if('suggestion'!==_0xd92d0c)continue;const _0x13bc6e=_0x313e59?'suggestion:'+_0x13f70f+':'+_0x313e59+':'+_0x50fc33:'suggestion:'+_0x13f70f+':'+_0x50fc33,_0x427cce=_0x1de4bb['model']['markers']['getMarkersGroup'](_0x13bc6e),_0x2f9790=_0x1de4bb['model']['markers']['get'](_0xc44c1f),_0x58eb71=this['_suggestions']['get'](_0x50fc33);if(null!=_0x520f3e['newRange']){'formatInline'==_0x13f70f&&(_0x5d90b0=_0x5d90b0||Gt(_0x520f3e['newRange'],_0xc44c1f,_0x5f41c5,_0x1de4bb['model']['schema']));const _0x3d0a1a='attribute'==_0x13f70f&&this['_isBlockAttribute'](_0x313e59['split']('|')[0x0]),_0x3c96d2='attribute'==_0x13f70f&&this['_isInlineAttribute'](_0x313e59['split']('|')[0x0]);if(_0x520f3e['newRange']['isCollapsed']||'$graveyard'==_0x520f3e['newRange']['root']['rootName']||'formatBlock'==_0x13f70f&&!Jt(_0x520f3e['newRange'])||_0x3d0a1a&&!Jt(_0x520f3e['newRange'])||_0x3c96d2&&Kt(_0x520f3e['newRange'])||'deletion'==_0x13f70f&&Kt(_0x520f3e['newRange'])||_0x2f9790&&Ht(_0x2f9790,_0x427cce))_0x5f41c5['removeMarker'](_0xc44c1f),_0x5d90b0=!0x0;else{if(!_0x58eb71||!_0x58eb71['isInContent'])continue;if(_0x520f3e['newRange']&&_0x520f3e['oldRange']&&_0x520f3e['newRange']['isEqual'](_0x520f3e['oldRange']))continue;_0x1c666b['add'](_0x58eb71);}}}return _0x1c666b['size']>0x0&&(_0x5d90b0=!!this['_joinWithAdjacentSuggestions'](_0x1c666b)||_0x5d90b0),_0x5d90b0;}),_0x1de4bb['model']['document']['registerPostFixer'](_0x1d8cb5=>{let _0x3bbb4d=!0x1;for(const _0x661a37 of _0x1de4bb['model']['document']['differ']['getChanges']())if('insert'==_0x661a37['type'])for(const _0x552022 of this['_suggestions']['values']()){if(_0x552022['isMultiRange']||!_0x552022['isInContent'])continue;const _0x3878b9='formatBlock'==_0x552022['type'],_0x4c1266=this['_getAttributeKey'](_0x552022),_0x28efa0=_0x4c1266&&this['_isBlockAttribute'](_0x4c1266);if(!_0x3878b9&&!_0x28efa0)continue;const _0x1b7716=_0x552022['getFirstRange']();if(_0x1b7716['start']['parent']!=_0x1b7716['end']['parent']&&!_0x1b7716['end']['isAtEnd']){const _0x54544e=_0x1de4bb['model']['createPositionAt'](_0x1b7716['start']['nodeAfter'],'end'),_0xd9eb95=_0x1de4bb['model']['createRange'](_0x1b7716['start'],_0x54544e);_0x1d8cb5['updateMarker'](_0x552022['getFirstMarker'](),{'range':_0xd9eb95}),_0x3bbb4d=!0x0;}}return _0x3bbb4d;}),_0x1de4bb['model']['document']['registerPostFixer'](_0x1887c1=>this['_processAttributeChanges'](_0x1887c1)),_0x1de4bb['model']['document']['registerPostFixer'](_0xd63a0=>!_0xd63a0['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xd63a0)),_0x1de4bb['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1de4bb['model']['document']['on']('change:data',(_0x21e41e,_0x42a03a)=>{if(!_0x42a03a['isLocal']||_0x42a03a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2456df=_0x1de4bb['model']['document']['differ']['getChanges']();if(0x0==_0x2456df['length'])return;const _0x122afe=[],_0x411df8=_0x2456df['filter'](_0x114674=>'attribute'==_0x114674['type']),_0x27f510=_0x2456df['filter'](_0x592309=>'insert'==_0x592309['type']&&'$text'!=_0x592309['name']);for(const _0x560c74 of _0x411df8)this['_isRegisteredAttribute'](_0x560c74['attributeKey'])&&_0x122afe['push']({'key':_0x560c74['attributeKey'],'newValue':_0x560c74['attributeNewValue'],'oldValue':_0x560c74['attributeOldValue'],'range':qt(_0x560c74['range'],_0x1de4bb['model'])});for(const _0x5ac7c3 of _0x27f510){if('rename'!=_0x5ac7c3['action']&&'refresh'!=_0x5ac7c3['action'])continue;const _0x1db21d=zt(_0x5ac7c3['position']['nodeAfter'],_0x1de4bb['model']),_0x28c32e=_0x5ac7c3['before'];'rename'==_0x5ac7c3['action']&&_0x122afe['push']({'key':m,'newValue':_0x5ac7c3['name'],'oldValue':_0x28c32e['name'],'range':_0x1db21d});for(const [_0x5f159e,_0x33ea07]of _0x28c32e['attributes']){if(!this['_isRegisteredAttribute'](_0x5f159e))continue;const _0x520d67=_0x5ac7c3['attributes']['get'](_0x5f159e);_0x33ea07!==_0x520d67&&_0x122afe['push']({'key':_0x5f159e,'newValue':_0x520d67,'oldValue':_0x33ea07,'range':_0x1db21d});}for(const [_0x5c5284,_0x55a554]of _0x5ac7c3['attributes'])this['_isRegisteredAttribute'](_0x5c5284)&&(_0x28c32e['attributes']['has'](_0x5c5284)||_0x122afe['push']({'key':_0x5c5284,'newValue':_0x55a554,'oldValue':null,'range':_0x1db21d}));}0x0!=_0x122afe['length']&&_0x1de4bb['model']['enqueueChange'](_0x42a03a,_0x44e536=>{const _0x29904a=_0x5b1bcf();for(const {range:_0x5c9340,key:_0x2b9fed,oldValue:_0x22b60d,newValue:_0xb483f0}of _0x122afe)this['markAttributeChange'](_0x5c9340,_0x2b9fed,_0x22b60d,_0xb483f0,{'groupId':_0x29904a});this['_reduceExistingSuggestions'](_0x44e536,_0x122afe);});},{'priority':'lowest'}),_0x1de4bb['model']['markers']['on']('update:suggestion',(_0x41e327,_0x178b88,_0x2940bf)=>{if(null==_0x2940bf){const {id:_0x2ce4e2}=this['_splitMarkerName'](_0x178b88['name']),_0x1e63ec=this['_suggestions']['get'](_0x2ce4e2);_0x1e63ec&&_0x1e63ec['addMarkerName'](_0x178b88['name']);}}),_0x1de4bb['model']['document']['on']('change:data',()=>{const _0x21aadb=Array['from'](_0x1de4bb['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5c0790=>'suggestion'===this['_splitMarkerName'](_0x5c0790['name'])['group']);if(0x0===_0x21aadb['length'])return;_0x21aadb['sort']((_0x4de728,_0x424ad9)=>{const _0x1e8632=_0x4de728['data']['oldRange'],_0xd0f17a=_0x424ad9['data']['oldRange'];return null===_0x1e8632&&null===_0xd0f17a?0x0:null===_0x1e8632&&null!==_0xd0f17a?-0x1:null!==_0x1e8632&&null===_0xd0f17a?0x1:_0x1e8632['start']['isBefore'](_0xd0f17a['start'])?-0x1:0x1;});const _0x454bd5=new Set(),_0x3033a8=new Set();for(const {name:_0x4032aa,data:_0x3084a6}of _0x21aadb){const {id:_0x490d83}=this['_splitMarkerName'](_0x4032aa);if(null===_0x3084a6['oldRange']){const _0x20c25f=this['_handleNewSuggestionMarker'](_0x4032aa);_0x3033a8['add'](_0x20c25f);}else{const _0xfa2f7b=this['_suggestions']['get'](_0x490d83);null!==_0x3084a6['newRange']||_0xfa2f7b['isInContent']?(_0x454bd5['add'](_0xfa2f7b['head']),_0x3033a8['add'](_0xfa2f7b)):this['_removeSuggestion'](_0xfa2f7b);}}_0x3033a8['size']>0x0&&this['_refreshSuggestionsChain'](_0x3033a8);for(const _0x181f90 of _0x454bd5)this['fire']('suggestionChanged',_0x181f90);}),_0x1de4bb['model']['on']('applyOperation',(_0x2a78c4,_0x3a5511)=>{const _0x95328c=_0x3a5511[0x0];if(!this['_suggestions']['size'])return;if(!_0x95328c['isDocumentOperation'])return;if(_0x95328c['batch']['isUndo']||!_0x95328c['batch']['isLocal'])return;let _0x24b704,_0x34fd9d;switch(_0x95328c['type']){case'insert':_0x24b704=_0x1de4bb['model']['createPositionAt'](_0x95328c['position']),_0x34fd9d=_0x24b704['getShiftedBy'](_0x95328c['howMany']);break;case'split':_0x24b704=_0x1de4bb['model']['createPositionAt'](_0x95328c['splitPosition']),_0x34fd9d=_0x1de4bb['model']['createPositionAt'](_0x95328c['moveTargetPosition']);break;case'move':_0x24b704=_0x1de4bb['model']['createPositionAt'](_0x95328c['targetPosition']),_0x34fd9d=_0x24b704['getShiftedBy'](_0x95328c['howMany']);break;default:return;}const _0x51f37d=_0x1de4bb['model']['createRange'](_0x24b704,_0x34fd9d);_0x1de4bb['model']['change'](()=>{for(const {suggestion:_0x449fa1,meta:_0x5cfdc9}of this['_findSuggestions'](_0x51f37d)){if(_0x449fa1['isMultiRange'])continue;if('formatInline'==_0x449fa1['type'])continue;const _0xcbc82e=this['_getAttributeKey'](_0x449fa1);if(_0xcbc82e&&this['_isBlockAttribute'](_0xcbc82e)&&'split'!=_0x95328c['type'])continue;const _0x60b47b=_0x449fa1['data']&&_0x449fa1['data']['multipleBlocks'];('formatBlock'!=_0x449fa1['type']||'split'==_0x95328c['type']&&!_0x60b47b)&&(_0x5cfdc9['containsRangeInObject']||'insertion'==_0x449fa1['type']&&_0x5cfdc9['isOwn']||_0x449fa1['getFirstRange']()['containsRange'](_0x51f37d)&&this['_breakSuggestionMarker'](_0x449fa1,_0x24b704,_0x34fd9d));}});},{'priority':'lowest'}),_0x1de4bb['model']['on']('deleteContent',(_0x1b4cad,_0x3fb580)=>{const _0x3aeaca=_0x3fb580[0x0],_0x383180=_0x3fb580[0x1];if(_0x383180&&_0x383180['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3aeaca['isCollapsed'])return;const _0x3708ac=_0x1de4bb['model']['schema'],{start:_0x161b27,end:_0x5c79b2}=_0x3aeaca['getFirstRange'](),_0x493b12=_0x161b27['nodeAfter']&&_0x3708ac['isLimit'](_0x161b27['nodeAfter'])?null:_0x3708ac['getNearestSelectionRange'](_0x161b27,'forward'),_0x27a922=_0x5c79b2['nodeBefore']&&_0x3708ac['isLimit'](_0x5c79b2['nodeBefore'])?null:_0x3708ac['getNearestSelectionRange'](_0x5c79b2,'backward'),_0x4746de=_0x1de4bb['model']['createRange'](_0x493b12?_0x493b12['start']:_0x161b27,_0x27a922?_0x27a922['end']:_0x5c79b2);_0x1de4bb['model']['change'](_0x4276a6=>{this['markDeletion'](_0x4746de);const _0x197bb9=_0x1de4bb['model']['schema']['getNearestSelectionRange'](_0x4746de['start']);_0x3aeaca['is']('documentSelection')?_0x4276a6['setSelection'](_0x197bb9):_0x3aeaca['setTo'](_0x197bb9);}),_0x1b4cad['stop']();},{'priority':_0x3f788b['normal']+0xa}),_0x1de4bb['model']['on']('insertContent',(_0x1a408d,_0x316473)=>{const _0x33cad7=_0x316473[_0x316473['length']-0x1];_0x33cad7&&_0x33cad7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1de4bb['model']['change'](()=>{let _0x678990=_0x1de4bb['model']['insertContent'](_0x316473[0x0],_0x316473[0x1],_0x316473[0x2],{'forceDefaultExecution':!0x0});if(!_0x678990)return;_0x1a408d['return']=_0x678990['clone']();const _0xd38306=_0x678990['end']['nodeBefore'],_0x4e4816=_0x1de4bb['model']['schema'];_0xd38306&&_0x4e4816['isBlock'](_0xd38306)&&!_0x4e4816['isObject'](_0xd38306)&&(_0x678990=_0x1de4bb['model']['createRange'](_0x678990['start'],_0x1de4bb['model']['createPositionAt'](_0xd38306,'end'))),this['markInsertion'](_0x678990);}),_0x1a408d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x270035=new D(_0x1de4bb,this['_suggestions']);_0x1de4bb['commands']['add']('acceptSuggestion',_0x270035),this['enableCommand']('acceptSuggestion');const _0x448cee=new $(_0x1de4bb,this['_suggestions']);_0x1de4bb['commands']['add']('discardSuggestion',_0x448cee),this['enableCommand']('discardSuggestion'),_0x1de4bb['commands']['add']('acceptAllSuggestions',new M(_0x1de4bb,_0x270035,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1de4bb['commands']['add']('discardAllSuggestions',new M(_0x1de4bb,_0x448cee,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1de4bb['commands']['add']('acceptSelectedSuggestions',new B(_0x1de4bb,_0x270035,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1de4bb['commands']['add']('discardSelectedSuggestions',new B(_0x1de4bb,_0x448cee,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xe6ad3f=_0x1de4bb['plugins']['get']('CommentsRepository');this['listenTo'](_0xe6ad3f,'addComment',(_0x170b50,{threadId:_0x273acf})=>{const _0x345719=this['_suggestions']['get'](_0x273acf);_0x345719&&_0x345719['commentThread']&&0x1===_0x345719['commentThread']['length']&&this['_updateSuggestionData'](_0x273acf,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xe6ad3f,'removeComment',(_0x460bf3,{threadId:_0x1d3503})=>{const _0xcf762e=this['_suggestions']['get'](_0x1d3503);_0xcf762e&&_0xcf762e['commentThread']&&!_0xcf762e['commentThread']['length']&&this['_updateSuggestionData'](_0x1d3503,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xb60f3c){const _0x513d33=_0xb2264b([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x128920=0x6b0f5e6f,_0x26ecf5=0x6b082d47^_0x128920,_0x140602=window[_0xb2264b([0x44,0x61,0x74,0x65])][_0xb2264b([0x6e,0x6f,0x77])](),_0x4c8a17=_0xb60f3c[_0xb2264b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x256e84=new window[(_0xb2264b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35a88f=>{_0x4c8a17[_0xb2264b([0x6f,0x6e,0x63,0x65])](_0xb2264b([0x72,0x65,0x61,0x64,0x79]),_0x35a88f);}),_0x5a9231={[_0xb2264b([0x6b,0x74,0x79])]:_0xb2264b([0x45,0x43]),[_0xb2264b([0x75,0x73,0x65])]:_0xb2264b([0x73,0x69,0x67]),[_0xb2264b([0x63,0x72,0x76])]:_0xb2264b([0x50,0x2d,0x32,0x35,0x36]),[_0xb2264b([0x78])]:_0xb2264b([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]),[_0xb2264b([0x79])]:_0xb2264b([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]),[_0xb2264b([0x61,0x6c,0x67])]:_0xb2264b([0x45,0x53,0x32,0x35,0x36])},_0x3a9f2f=_0x4c8a17[_0xb2264b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb2264b([0x67,0x65,0x74])](_0xb2264b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x587542(){let _0x311035,_0x1371eb=null,_0x323af3=null;try{if(_0x3a9f2f==_0xb2264b([0x47,0x50,0x4c]))return _0xb2264b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x311035=_0x3ddd06(),!_0x311035)return _0xb2264b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x311035[_0xb2264b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x323af3=_0xc2afaa(_0x311035[_0xb2264b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x311035[_0xb2264b([0x6a,0x74,0x69])])),await _0x3e670b()?_0x1f559c()?_0x2fe9e2()?_0xb2264b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x285bac()?(_0x311035[_0xb2264b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb2264b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1371eb=_0x56ced1(_0xb2264b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x311035[_0xb2264b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb2264b([0x74,0x72,0x69,0x61,0x6c])&&(_0x1371eb=_0x56ced1(_0xb2264b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x90e4cc()):_0xb2264b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb2264b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb2264b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb2264b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2fe9e2(){const _0x1b4d64=[_0xb2264b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb2264b([0x74,0x72,0x69,0x61,0x6c])][_0xb2264b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x311035[_0xb2264b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x140602/0x3e8:0xe10*_0x26ecf5;return _0x311035[_0xb2264b([0x65,0x78,0x70])]<_0x1b4d64;}function _0x1f559c(){const _0x57b186=_0x311035[_0xb2264b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x57b186)return!0x1;if(_0x57b186[_0xb2264b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb2264b([0x2a])))return!0x0;if(_0x57b186[_0xb2264b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb2264b([0x54,0x43])))return!0x0;if(_0x57b186[_0xb2264b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb2264b([0x52,0x54,0x43]))){if(_0x440136())return!0x0;if(_0x1dcfca()||_0x71207b())return!0x0;}return!0x1;}function _0x285bac(){const _0x2b2c45=_0x311035[_0xb2264b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b2c45||0x0==_0x2b2c45[_0xb2264b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x8d844f}=new URL(window[_0xb2264b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b2c45[_0xb2264b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8d844f))return!0x0;const _0x460dd0=_0x8d844f[_0xb2264b([0x73,0x70,0x6c,0x69,0x74])](_0xb2264b([0x2e]));return _0x2b2c45[_0xb2264b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x416c8a=>_0x416c8a[_0xb2264b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb2264b([0x2a])))[_0xb2264b([0x6d,0x61,0x70])](_0x2ebb29=>_0x2ebb29[_0xb2264b([0x73,0x70,0x6c,0x69,0x74])](_0xb2264b([0x2e])))[_0xb2264b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a62e7=>_0x3a62e7[_0xb2264b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x460dd0[_0xb2264b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb2264b([0x6d,0x61,0x70])](_0x4c6d38=>Array(_0x460dd0[_0xb2264b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c6d38[_0xb2264b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb2264b([0x66,0x69,0x6c,0x6c])](_0x4c6d38[0x0]===_0xb2264b([0x2a])?_0xb2264b([0x2a]):'')[_0xb2264b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c6d38))[_0xb2264b([0x73,0x6f,0x6d,0x65])](_0x21eaca=>_0x460dd0[_0xb2264b([0x65,0x76,0x65,0x72,0x79])]((_0x173ef8,_0x132751)=>_0x21eaca[_0x132751]===_0x173ef8||_0x21eaca[_0x132751]===_0xb2264b([0x2a])));}function _0x90e4cc(){return _0x1371eb&&_0x323af3?new window[(_0xb2264b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43ae13,_0x39121a)=>{_0x1371eb[_0xb2264b([0x74,0x68,0x65,0x6e])](_0x43ae13,_0x39121a),_0x323af3[_0xb2264b([0x74,0x68,0x65,0x6e])](_0x436c4d=>{_0x436c4d!=_0xb2264b([0x56,0x61,0x6c,0x69,0x64])&&_0x43ae13(_0x436c4d);},_0x39121a);}):_0x1371eb||_0x323af3||_0xb2264b([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc2afaa(_0x3a1bdd,_0x210ad5){return new window[(_0xb2264b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x489331=>{if(_0x40105b())return _0x489331(_0xb2264b([0x56,0x61,0x6c,0x69,0x64]));_0x52e32f(),_0x4c8a17[_0xb2264b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb2264b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a94a0=!0x1;const _0x3ad2ae=_0x5b1bcf();function _0x2f31a5(_0x36e45a){return!!_0x36e45a&&(typeof _0x36e45a===_0xb2264b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x36e45a===_0xb2264b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x36e45a[_0xb2264b([0x74,0x68,0x65,0x6e])]===_0xb2264b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x36e45a[_0xb2264b([0x63,0x61,0x74,0x63,0x68])]===_0xb2264b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x43ebcb(_0x2bc53d){_0x477f30(_0x2bc53d)[_0xb2264b([0x74,0x68,0x65,0x6e])](_0x2ab92c=>{if(!_0x2ab92c||_0x2ab92c[_0xb2264b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb2264b([0x6f,0x6b]))return _0xb2264b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3dc615(_0x14d0f7(_0x3ad2ae+_0x210ad5))!=_0x2ab92c[_0xb2264b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb2264b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb2264b([0x56,0x61,0x6c,0x69,0x64]);})[_0xb2264b([0x74,0x68,0x65,0x6e])](_0x27f107=>(_0x29197f(),_0x27f107),()=>{const _0x5a89b3=_0x4cbf86();return null==_0x5a89b3?(_0x29197f(),_0xb2264b([0x56,0x61,0x6c,0x69,0x64])):_0xb2264b(_0x140602-_0x5a89b3>(0x4f03da6f^_0x128920)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb2264b([0x74,0x68,0x65,0x6e])](_0x489331)[_0xb2264b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x489331(_0xb2264b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xa2161e=0x6b39b0ef^_0x128920;function _0x29197f(){const _0x1ac0d8=_0xb2264b([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dc615(_0x14d0f7(_0x3a1bdd)),_0x5ae433=_0x19c218(_0x3dc615(window[_0xb2264b([0x4d,0x61,0x74,0x68])][_0xb2264b([0x63,0x65,0x69,0x6c])](_0x140602/_0xa2161e)));window[_0xb2264b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb2264b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ac0d8,_0x5ae433);}function _0x4cbf86(){const _0x2a892d=_0xb2264b([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dc615(_0x14d0f7(_0x3a1bdd)),_0x14b4d9=window[_0xb2264b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb2264b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a892d);return _0x14b4d9?window[_0xb2264b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19c218(_0x14b4d9),0x10)*_0xa2161e:null;}function _0x477f30(_0x119b31){return new window[(_0xb2264b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27ff43,_0x3a1e71)=>{_0x119b31[_0xb2264b([0x74,0x68,0x65,0x6e])](_0x27ff43,_0x3a1e71),window[_0xb2264b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a1e71,0x6b0e8aaf^_0x128920);});}}_0x4c8a17[_0xb2264b([0x6f,0x6e])](_0xb2264b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d7695,_0x5ac227)=>{if(_0x5ac227[0x0]!=_0x3a1bdd)return _0x489331(_0xb2264b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ac227[0x1]={..._0x5ac227[0x1],[_0xb2264b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ad2ae};},{[_0xb2264b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb2264b([0x68,0x69,0x67,0x68])}),_0x4c8a17[_0xb2264b([0x6f,0x6e])](_0xb2264b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x46898e=>{_0x2f31a5(_0x46898e[_0xb2264b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a94a0=!0x0,_0x43ebcb(_0x46898e[_0xb2264b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb2264b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb2264b([0x6c,0x6f,0x77])}),_0x256e84[_0xb2264b([0x74,0x68,0x65,0x6e])](()=>{_0x1a94a0||_0x489331(_0xb2264b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x40105b(){return _0x4c8a17[_0xb2264b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb2264b([0x76,0x69,0x65,0x77])][_0xb2264b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb2264b([0x61,0x75,0x74,0x6f]);}function _0x52e32f(){_0x4c8a17[_0xb2264b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb2264b([0x76,0x69,0x65,0x77])][_0xb2264b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb2264b([0x61,0x75,0x74,0x6f]);}}function _0x56ced1(_0x32523e){const _0x1c59b0=[new window[(_0xb2264b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x561735=>setTimeout(_0x561735,0x6b0660a3^_0x128920)),_0x256e84[_0xb2264b([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb2264b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x292962=>{let _0x5bdfef=0x0;_0x4c8a17[_0xb2264b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb2264b([0x6f,0x6e])](_0xb2264b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b0a72,_0x206f87)=>{_0x206f87[0x0][_0xb2264b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5bdfef++,_0x5bdfef==(0x6b0f5f97^_0x128920)&&(_0x292962(),_0x3b0a72[_0xb2264b([0x6f,0x66,0x66])]());});}))];return window[_0xb2264b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb2264b([0x72,0x61,0x63,0x65])](_0x1c59b0)[_0xb2264b([0x74,0x68,0x65,0x6e])](()=>_0x32523e);}async function _0x186402(){await _0x256e84,_0x4c8a17[_0xb2264b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb2264b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d0a0b,_0x4c8a17[_0xb2264b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb2264b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d0a0b,_0x4c8a17[_0xb2264b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb2264b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x440136(){return _0xe1b587(_0xb2264b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x428e9a(_0xb2264b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xb2264b([0x73,0x74,0x61,0x74,0x65])]==_0xb2264b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1dcfca(){return _0xe1b587(_0xb2264b([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 _0x71207b(){return _0xe1b587(_0xb2264b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x38a1a8(_0x2c28c7){const _0x5909bc=_0xd01a55();_0x4c8a17[_0x5909bc]=_0xb2264b([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2c28c7,_0x2c28c7!=_0xb2264b([0x56,0x61,0x6c,0x69,0x64])&&_0x186402();}function _0xd01a55(){const _0x5cea83=window[_0xb2264b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb2264b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb2264b([0x6e,0x6f,0x77])]())[_0xb2264b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb2264b([0x2e]),'');let _0xa845ac=_0xb2264b([0x67]);for(let _0x3bb431=0x0;_0x3bb431<_0x5cea83[_0xb2264b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3bb431+=0x2){let _0x5ed3e7=window[_0xb2264b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cea83[_0xb2264b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3bb431,_0x3bb431+0x2));_0x5ed3e7>=_0x513d33[_0xb2264b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ed3e7-=_0x513d33[_0xb2264b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa845ac+=_0x513d33[_0x5ed3e7];}return _0xa845ac;}function _0x3ddd06(){const _0x59bed7=_0x3a9f2f[_0xb2264b([0x73,0x70,0x6c,0x69,0x74])](_0xb2264b([0x2e]));if(0x3!=_0x59bed7[_0xb2264b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a6b83(_0x59bed7[0x1]);function _0x1a6b83(_0x5f0a83){const _0x252a6e=_0x3bfdb9(_0x5f0a83);return _0x252a6e&&_0x33ebd1()?_0x252a6e:null;function _0x33ebd1(){const _0x39b4ec=_0x252a6e[_0xb2264b([0x6a,0x74,0x69])],_0x3becfa=window[_0xb2264b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39b4ec[_0xb2264b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39b4ec[_0xb2264b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x49cc5a={..._0x252a6e,[_0xb2264b([0x6a,0x74,0x69])]:_0x39b4ec[_0xb2264b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x39b4ec[_0xb2264b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x49cc5a[_0xb2264b([0x76,0x63])],_0x14d0f7(_0x49cc5a)==_0x3becfa;}}}async function _0x3e670b(){let _0x58ab06=!0x0;try{const _0x417072=_0x3a9f2f[_0xb2264b([0x73,0x70,0x6c,0x69,0x74])](_0xb2264b([0x2e])),[_0x2117ea,_0x1d53f1,_0x420fe1]=_0x417072;return _0x4f9fa8(_0x2117ea),await _0x2ab64b(_0x2117ea,_0x1d53f1,_0x420fe1),_0x58ab06;}catch{return!0x1;}function _0x4f9fa8(_0x1a1899){const _0x239e91=_0x3bfdb9(_0x1a1899);_0x239e91&&_0x239e91[_0xb2264b([0x61,0x6c,0x67])]==_0xb2264b([0x45,0x53,0x32,0x35,0x36])||(_0x58ab06=!0x1);}async function _0x2ab64b(_0x3d68bf,_0x2c319c,_0x10fe74){const _0x450d73=window[_0xb2264b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb2264b([0x66,0x72,0x6f,0x6d])](_0x4c8d6f(_0x10fe74),_0x44d74d=>_0x44d74d[_0xb2264b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1a41f8=new window[(_0xb2264b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb2264b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d68bf+_0xb2264b([0x2e])+_0x2c319c),_0x108e58=window[_0xb2264b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb2264b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x108e58)return;const _0x1d1865=await _0x108e58[_0xb2264b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb2264b([0x6a,0x77,0x6b]),_0x5a9231,{[_0xb2264b([0x6e,0x61,0x6d,0x65])]:_0xb2264b([0x45,0x43,0x44,0x53,0x41]),[_0xb2264b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb2264b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb2264b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x108e58[_0xb2264b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb2264b([0x6e,0x61,0x6d,0x65])]:_0xb2264b([0x45,0x43,0x44,0x53,0x41]),[_0xb2264b([0x68,0x61,0x73,0x68])]:{[_0xb2264b([0x6e,0x61,0x6d,0x65])]:_0xb2264b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d1865,_0x450d73,_0x1a41f8)||(_0x58ab06=!0x1);}}function _0x3bfdb9(_0x2cdc0d){return _0x2cdc0d[_0xb2264b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb2264b([0x65,0x79]))?JSON[_0xb2264b([0x70,0x61,0x72,0x73,0x65])](_0x4c8d6f(_0x2cdc0d)):null;}function _0x4c8d6f(_0x285022){return window[_0xb2264b([0x61,0x74,0x6f,0x62])](_0x285022[_0xb2264b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb2264b([0x2b]))[_0xb2264b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb2264b([0x2f])));}function _0x14d0f7(_0x767a47){let _0xc754aa=0x1505;function _0x117801(_0xb15398){for(let _0x1e4148=0x0;_0x1e4148<_0xb15398[_0xb2264b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e4148++){const _0x431d8d=_0xb15398[_0xb2264b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e4148);_0xc754aa=(_0xc754aa<<0x5)+_0xc754aa+_0x431d8d,_0xc754aa&=_0xc754aa;}}function _0x46db01(_0x2633eb){Array[_0xb2264b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2633eb)?_0x2633eb[_0xb2264b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x46db01):_0x2633eb&&typeof _0x2633eb==_0xb2264b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb2264b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2633eb)[_0xb2264b([0x73,0x6f,0x72,0x74])]()[_0xb2264b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xb6e047,_0x177f7f])=>{_0x117801(_0xb6e047),_0x46db01(_0x177f7f);}):_0x117801(window[_0xb2264b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2633eb));}return _0x46db01(_0x767a47),_0xc754aa>>>0x0;}function _0x3dc615(_0x2a48a9){return _0x2a48a9[_0xb2264b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb2264b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb2264b([0x30]));}function _0x19c218(_0x411658){return _0x411658[_0xb2264b([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb2264b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb2264b([0x6a,0x6f,0x69,0x6e])]('');}function _0xe1b587(_0x5ecbca){return _0x4c8a17[_0xb2264b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xb2264b([0x68,0x61,0x73])](_0x5ecbca);}function _0x428e9a(_0x3659ae){return _0x4c8a17[_0xb2264b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xb2264b([0x67,0x65,0x74])](_0x3659ae);}function _0x5d0a0b(){}function _0xb2264b(_0x502f64){return _0x502f64['map'](_0x57acbd=>String['fromCharCode'](_0x57acbd))['join']('');}_0x38a1a8(await _0x587542());}(this);}set['adapter'](_0x4c8364){if(this['_adapter'])throw new _0x1f6b9a('track-changes-adapter-already-set',this);this['_adapter']=_0x4c8364;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2cdbff=!0x1,toJSON:_0x37befa=!0x1}={}){const _0x36635a=[];for(const _0x3e306c of this['_suggestions']['values']())_0x2cdbff&&!_0x3e306c['isInContent']||_0x36635a['push'](_0x3e306c);return _0x37befa?_0x36635a['map'](_0x5af2d4=>_0x5af2d4['toJSON']()):_0x36635a;}['getSuggestion'](_0x3b3012){const _0x3dce08=this['_suggestions']['get'](_0x3b3012);if(!_0x3dce08)throw new _0x1f6b9a('track-changes-suggestion-not-found',this);return _0x3dce08;}['hasSuggestion'](_0x53ee49){return this['_suggestions']['has'](_0x53ee49);}['addSuggestionData'](_0x4b500a){const {authorId:_0x498a9e,id:_0x16417c,originalSuggestionId:_0x40acf1,attributes:_0x1acfc0}=_0x4b500a,[_0x341791,_0x3329d9]=_0x4b500a['type']['split'](':'),_0x5dda14=this['_suggestions']['get'](_0x16417c)||this['_createSuggestion'](_0x341791,_0x3329d9,_0x16417c,_0x498a9e,_0x1acfc0,_0x40acf1);if(this['_addThreadToSuggestion'](_0x5dda14),this['_checkSuggestionCorrectness'](_0x5dda14,_0x341791,_0x3329d9||null,_0x498a9e),_0x5dda14['createdAt']=_0x4b500a['createdAt'],_0x5dda14['_isDataLoaded']=!0x0,_0x1acfc0&&_0x1acfc0['@external']){const _0x2f2cd9=_0x1acfc0['@external'],_0x55e8a3=this['_getExternalAuthor'](_0x2f2cd9['authorName']);_0x5dda14['authoredAt']=_0x2f2cd9['createdAt'],_0x5dda14['author']=_0x55e8a3,_0x5dda14['isExternal']=!0x0;}else _0x5dda14['authoredAt']=_0x4b500a['createdAt'];switch(_0x4b500a['data']&&(_0x5dda14['data']=_0x4b500a['data']),_0x4b500a['attributes']&&(_0x5dda14['attributes']=_0x4b500a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5dda14['_saved']=!0x0),this['_suggestionState']['get'](_0x5dda14)){case'notReady':this['_suggestionState']['set'](_0x5dda14,'dataReady');break;case'markerReady':_0x5dda14['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5dda14])),this['_refreshSuggestionsChain'](new Set([_0x5dda14])),this['_suggestionState']['set'](_0x5dda14,'ready'),this['fire']('suggestionLoaded',_0x5dda14)):this['_suggestionState']['set'](_0x5dda14,'removed');}return _0x5dda14;}['acceptSuggestion'](_0x5d6407){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x150e10 of _0x5d6407['getAllAdjacentSuggestions']())_0x150e10['accept']();});});}['discardSuggestion'](_0x54072e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x9b6e9e of _0x54072e['getAllAdjacentSuggestions']())_0x9b6e9e['discard']();});});}['enableCommand'](_0x11efce,_0x234bbd){const _0x3faafe=this['editor']['commands']['get'](_0x11efce);if(!_0x3faafe)throw new _0x1f6b9a('track-changes-command-not-found',this,{'commandName':_0x11efce});if(this['_enabledCommands']['has'](_0x3faafe))throw new _0x1f6b9a('track-changes-enable-command-twice',this,{'commandName':_0x11efce});this['_enabledCommands']['add'](_0x3faafe),_0x234bbd&&_0x3faafe['on']('execute',(_0x2657ff,_0x4f80c1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4f80c1['length']>0x0&&_0x4f80c1[_0x4f80c1['length']-0x1]&&_0x4f80c1[_0x4f80c1['length']-0x1]['forceDefaultExecution']?_0x4f80c1['pop']():(_0x2657ff['return']=_0x234bbd((..._0x3def50)=>_0x3faafe['execute'](..._0x3def50,{'forceDefaultExecution':!0x0}),..._0x4f80c1),_0x2657ff['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2ce462){let _0x454146,_0x31c6cf;const _0x2ea408=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x454146=_0x2ce462();}catch(_0x5ee842){_0x31c6cf=_0x5ee842;}return _0x2ea408||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x31c6cf&&_0x1f6b9a['rethrowUnexpectedError'](_0x31c6cf,this),_0x454146;}['markInsertion'](_0xadba79,_0x425bab=null,_0x3b9447={}){if(_0xadba79['isCollapsed'])return null;const _0x4c4441=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3b9447['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x557a30,meta:_0x7fb02c}of this['_findSuggestions'](_0xadba79,'insertion'))if(_0x7fb02c['isOwn']){if(!_0x7fb02c['isNextTo']){if(_0x7fb02c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x557a30,_0x3b9447))continue;return _0x557a30;}if(Xt(_0x557a30,_0x3b9447))return _0x557a30;this['_breakSuggestionMarker'](_0x557a30,_0xadba79['start'],_0xadba79['end']);break;}if(_0x425bab==_0x557a30['subType']&&Xt(_0x557a30,_0x3b9447)){const _0x686a82=_0x557a30['getFirstRange']();return _0x686a82['start']['isEqual'](_0xadba79['end'])?this['_setSuggestionRange'](_0x557a30,this['_model']['createRange'](_0xadba79['start'],_0x686a82['end'])):this['_setSuggestionRange'](_0x557a30,this['_model']['createRange'](_0x686a82['start'],_0xadba79['end'])),_0x557a30;}}const _0x1c474b=_0x5b1bcf(),_0x1cb534=_0x4c4441['id'],_0x489485=_0x425bab?'insertion:'+_0x425bab:'insertion',_0xb18ac2=this['_setSuggestionData']({'id':_0x1c474b,'type':_0x489485,'createdAt':new Date(),'authorId':_0x1cb534,'attributes':_0x3b9447});return this['_addSuggestionMarker'](_0x489485,_0x1c474b,_0x1cb534,_0xadba79),_0xb18ac2;}['markMultiRangeInsertion'](_0xa7fbf5,_0x5cac07='multi',_0x7a1c93={}){const _0x5f02f0=this['editor']['plugins']['get']('Users')['me'],_0x17f08a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5cac07,'join');this['_trackingSessionId']&&(_0x7a1c93['trackingSessionId']=this['_trackingSessionId']);for(const _0x2e1129 of this['getSuggestions']())if(_0x2e1129['author']['id']==_0x5f02f0['id']&&'insertion'==_0x2e1129['type']&&_0x2e1129['subType']==_0x5cac07&&Xt(_0x2e1129,_0x7a1c93)&&(_0x17f08a(_0x2e1129['getRanges'](),_0xa7fbf5)||_0x17f08a(_0xa7fbf5,_0x2e1129['getRanges']()))){for(const _0x5a07ae of _0xa7fbf5)_0x2e1129['addRange'](_0x5a07ae);return _0x2e1129;}for(const {suggestion:_0x58e20f,meta:_0x3c7b87}of this['_findSuggestions'](_0xa7fbf5,'insertion')){if(!_0x3c7b87['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3c7b87['containsRangeInObject'])continue;if(!Xt(_0x58e20f,_0x7a1c93))continue;let _0x351f8e=!0x0;for(const _0x1ae2e7 of _0x58e20f['getRanges']())for(const _0x3ac1be of _0xa7fbf5)if(!_0x1ae2e7['containsRange'](_0x3ac1be)){_0x351f8e=!0x1;break;}if(_0x351f8e)return _0x58e20f;}const _0x293fb8=_0x5b1bcf(),_0x49ff0c=_0x5f02f0['id'],_0x5753ac='insertion:'+_0x5cac07,_0x46e5f8=this['_setSuggestionData']({'id':_0x293fb8,'type':_0x5753ac,'createdAt':new Date(),'authorId':_0x49ff0c,'attributes':_0x7a1c93});for(const _0x1fec16 of _0xa7fbf5)this['_addSuggestionMarker'](_0x5753ac,_0x293fb8,_0x49ff0c,_0x1fec16,T['getMultiRangeId']());return _0x46e5f8;}['markInlineFormat'](_0x41ea80,_0x4ff71e,_0x27e219=null,_0x16895b={}){if(_0x27e219=_0x27e219||Lt(_0x4ff71e),_0x41ea80['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x16895b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2515ea=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27e219,'accept');return this['forceDefaultExecution'](()=>_0x2515ea([_0x41ea80],_0x4ff71e,_0x16895b)),null;}const _0x271bd0=this['editor']['plugins']['get']('Users')['me'],_0x218e99=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x20f1e4,meta:_0x407e38}of this['_findSuggestions'](_0x41ea80,'insertion'))_0x407e38['isOwn']&&!_0x407e38['isInsideObject']&&_0x218e99['push'](..._0x20f1e4['getRanges']());}const _0x360433=function(_0x5010b0,_0x191456){const _0x3885a6=[];for(const _0x50a766 of _0x191456){const _0x5297a8=_0x5010b0['getIntersection'](_0x50a766);_0x5297a8&&_0x3885a6['push'](_0x5297a8);}return _0x3885a6;}(_0x41ea80,_0x218e99),_0x44ff97=function(_0x164278,_0x3fd3c3){const _0x976ea2=[_0x164278];for(const _0x38ea2f of _0x3fd3c3){let _0x44726c=0x0;for(;_0x44726c<_0x976ea2['length'];){const _0xdea66b=_0x976ea2[_0x44726c]['getDifference'](_0x38ea2f);_0x976ea2['splice'](_0x44726c,0x1,..._0xdea66b),_0x44726c+=_0xdea66b['length'];}}return _0x976ea2;}(_0x41ea80,_0x218e99);_0x360433['length']&&this['_model']['change'](()=>{for(const _0x5c2ad5 of _0x360433){const _0x180178=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27e219,'accept');this['forceDefaultExecution'](()=>_0x180178([_0x5c2ad5],_0x4ff71e,_0x16895b));}});for(const _0x1de468 of _0x44ff97){let _0x2080f5=null,_0x16af6d=_0x1de468['start'],_0x164242=_0x1de468['end'];for(const {suggestion:_0x3818c8,meta:_0x580a58}of this['_findSuggestions'](_0x1de468,'formatInline')){if(!_0x580a58['isOwn'])continue;if(_0x3818c8['subType']!=_0x27e219)continue;if(!Xt(_0x3818c8,_0x16895b))continue;const _0xc1931=_0x3818c8['getFirstRange']();if(_0xc1931['containsRange'](_0x1de468,!0x0))return null;_0x16af6d=_0x16af6d['isBefore'](_0xc1931['start'])?_0x16af6d:_0xc1931['start'],_0x164242=_0x164242['isAfter'](_0xc1931['end'])?_0x164242:_0xc1931['end'],_0x2080f5?_0xc1931['start']['isBefore'](_0x2080f5['getFirstRange']()['start'])?(_0x2080f5['removeMarkers'](),_0x2080f5=_0x3818c8):_0x3818c8['removeMarkers']():_0x2080f5=_0x3818c8;}const _0x13fbbe=this['_model']['createRange'](_0x16af6d,_0x164242);if(_0x2080f5)this['_setSuggestionRange'](_0x2080f5,_0x13fbbe);else{const _0x16cb8d=_0x5b1bcf(),_0x2e6d20=_0x271bd0['id'];this['_setSuggestionData']({'id':_0x16cb8d,'type':'formatInline:'+_0x27e219,'data':_0x4ff71e,'createdAt':new Date(),'authorId':_0x2e6d20,'attributes':_0x16895b}),this['_addSuggestionMarker']('formatInline:'+_0x27e219,_0x16cb8d,_0x2e6d20,_0x13fbbe);}}return null;}['markBlockFormat'](_0x25b919,_0x454181,_0x1fb817=[],_0x4ab247=null,_0x444023={}){_0x454181['formatGroupId']||(_0x454181['formatGroupId']=_0x454181['commandName']),_0x454181['multipleBlocks']=_0x25b919['is']('range'),_0x4ab247=_0x4ab247||Lt(_0x454181);const _0x57d173=_0x1fb817['map'](_0x1df153=>zt(_0x1df153,this['_model'])),_0x5e4339=_0x25b919['is']('range')?_0x25b919:zt(_0x25b919,this['_model']);if(this['_trackingSessionId']&&(_0x444023['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1f8a5b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ab247,'accept');return this['forceDefaultExecution'](()=>_0x1f8a5b([_0x5e4339],_0x454181,_0x444023)),null;}_0x57d173['push'](_0x5e4339);let _0x2a9ed8=!0x0;for(const _0x10dd98 of _0x57d173)if(!this['_rangeIsInLocalUserInsertion'](_0x10dd98)){_0x2a9ed8=!0x1;break;}if(_0x2a9ed8&&'always'!==this['_trackFormatChanges']){const _0x2e1637=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ab247,'accept');return this['forceDefaultExecution'](()=>_0x2e1637([_0x5e4339],_0x454181,_0x444023)),null;}let _0x1365b6=null,_0x26b9ac=_0x5e4339['start'],_0x3caa06=_0x5e4339['end'];for(const {suggestion:_0x116b68,meta:_0x5286f9}of this['_findSuggestions'](_0x5e4339,'formatBlock')){if(!_0x5286f9['isOwn'])continue;if(_0x5286f9['isNextTo']||_0x5286f9['containsRangeInObject']||_0x5286f9['isInsideObject'])continue;if(_0x116b68['data']['formatGroupId']!=_0x454181['formatGroupId'])continue;if(!Xt(_0x116b68,_0x444023))continue;const _0x13c8a6=_0x116b68['getFirstRange']();if(_0x116b68['subType']==_0x4ab247){if(_0x13c8a6['containsRange'](_0x5e4339,!0x0))return null;_0x26b9ac=_0x26b9ac['isBefore'](_0x13c8a6['start'])?_0x26b9ac:_0x13c8a6['start'],_0x3caa06=_0x3caa06['isAfter'](_0x13c8a6['end'])?_0x3caa06:_0x13c8a6['end'],_0x1365b6?_0x13c8a6['start']['isBefore'](_0x1365b6['getFirstRange']()['start'])?(_0x1365b6['removeMarkers'](),_0x1365b6=_0x116b68):_0x116b68['removeMarkers']():_0x1365b6=_0x116b68;}else{const _0x467514=_0x5e4339['getIntersection'](_0x13c8a6);this['_cutOutSuggestionMarker'](_0x116b68,_0x467514);}}const _0x361a60=this['editor']['plugins']['get']('Users')['me'],_0x237f89=_0x5b1bcf(),_0x457f0f=_0x361a60['id'];if(_0x1365b6)return this['_setSuggestionRange'](_0x1365b6,this['_model']['createRange'](_0x26b9ac,_0x3caa06)),_0x1365b6;{const _0x3957d3=this['_setSuggestionData']({'id':_0x237f89,'type':'formatBlock:'+_0x4ab247,'data':_0x454181,'createdAt':new Date(),'authorId':_0x457f0f,'attributes':_0x444023});return this['_addSuggestionMarker']('formatBlock:'+_0x4ab247,_0x237f89,_0x457f0f,this['_model']['createRange'](_0x26b9ac,_0x3caa06)),_0x3957d3;}}['markMultiRangeBlockFormat'](_0x342bd1,_0x51e13f,_0x18b2e4=[],_0xb41e7b=null,_0x118e84={}){_0x51e13f['formatGroupId']||(_0x51e13f['formatGroupId']=_0x51e13f['commandName']);const _0x181863=_0x342bd1[0x0];_0x51e13f['multipleBlocks']=_0x181863['is']('range'),_0xb41e7b=_0xb41e7b||Lt(_0x51e13f);const _0x6c6649=_0x18b2e4['map'](_0x20e6e3=>zt(_0x20e6e3,this['_model'])),_0x111253=_0x181863['is']('range')?_0x342bd1:_0x342bd1['map'](_0x3cef94=>zt(_0x3cef94,this['_model']));if(this['_trackingSessionId']&&(_0x118e84['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3b26d1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb41e7b,'accept');return this['forceDefaultExecution'](()=>_0x3b26d1(_0x111253,_0x51e13f,_0x118e84)),null;}_0x6c6649['push'](..._0x111253);let _0x1b50be=!0x0;for(const _0xe8d250 of _0x6c6649)if(!this['_rangeIsInLocalUserInsertion'](_0xe8d250)){_0x1b50be=!0x1;break;}if(_0x1b50be&&'always'!==this['_trackFormatChanges']){const _0x2bca4b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb41e7b,'accept');return this['forceDefaultExecution'](()=>_0x2bca4b(_0x111253,_0x51e13f,_0x118e84)),null;}const _0x225bd8=this['editor']['plugins']['get']('Users')['me'];for(const _0x169ac3 of this['getSuggestions']()){const _0x53451a=_0x169ac3['data'];if(_0x169ac3['author']['id']!=_0x225bd8['id'])continue;if('formatBlock'!=_0x169ac3['type']||_0x53451a['formatGroupId']!=_0x51e13f['formatGroupId'])continue;if(!Xt(_0x169ac3,_0x118e84))continue;const _0x5c71ce=_0x169ac3['subType']==_0xb41e7b;for(let _0x3aa243=0x0;_0x3aa243<_0x111253['length'];_0x3aa243++){const _0x502ede=_0x111253[_0x3aa243];for(const _0x47b410 of _0x169ac3['getMarkers']()){const _0x17c392=_0x47b410['getRange']();if(_0x502ede['isEqual'](_0x17c392)){_0x5c71ce?(_0x111253['splice'](_0x3aa243,0x1),_0x3aa243--):_0x169ac3['removeMarker'](_0x47b410['name']);break;}}}}if(0x0==_0x111253['length'])return null;const _0x21aaac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb41e7b,'join');for(const _0x4d47ca of this['getSuggestions']()){const _0x59686d=_0x4d47ca['data'];if(_0x4d47ca['author']['id']==_0x225bd8['id']&&('formatBlock'==_0x4d47ca['type']&&_0x59686d['formatGroupId']==_0x51e13f['formatGroupId']&&_0x4d47ca['subType']==_0xb41e7b&&Xt(_0x4d47ca,_0x118e84)&&(_0x21aaac(_0x4d47ca['getRanges'](),_0x111253)||_0x21aaac(_0x111253,_0x4d47ca['getRanges']())))){for(const _0x442b84 of _0x111253)_0x4d47ca['addRange'](_0x442b84);return _0x4d47ca;}}const _0x502eff=_0x5b1bcf(),_0x42834b=_0x225bd8['id'],_0x54bc4b='formatBlock:'+_0xb41e7b,_0x3f65c2=this['_setSuggestionData']({'id':_0x502eff,'type':_0x54bc4b,'data':_0x51e13f,'createdAt':new Date(),'authorId':_0x42834b,'attributes':_0x118e84});for(const _0x3470d9 of _0x111253)this['_addSuggestionMarker'](_0x54bc4b,_0x502eff,_0x42834b,_0x3470d9,T['getMultiRangeId']());return _0x3f65c2;}['markDeletion'](_0x254c96,_0x43727f=null,_0x39b8b2={}){if(_0x254c96['isCollapsed'])return null;const _0x21ee1d=this['editor']['plugins']['get']('Users')['me'],_0x3cf5e5=new _0x4f11f5(_0x254c96['start'],_0x254c96['end']);this['_trackingSessionId']&&(_0x39b8b2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x17674b,meta:_0x353f0b}of this['_findSuggestions'](_0x3cf5e5,'insertion'))if(_0x353f0b['isOwn']&&!_0x353f0b['isNextTo']){if(_0x17674b['isMultiRange']){const _0x40daed=_0x17674b['getRanges']()['filter'](_0x72db64=>'$graveyard'!=_0x72db64['root']['rootName']);_0x40daed['every'](_0x479a87=>_0x3cf5e5['containsRange'](_0x479a87,!0x0))&&_0x17674b['discard']();if(_0x40daed['some'](_0xfdb856=>_0xfdb856['containsRange'](_0x3cf5e5,!0x0))){const _0x51b9a7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x43727f,'accept');return this['forceDefaultExecution'](()=>_0x51b9a7([_0x3cf5e5],null,_0x39b8b2)),null;}}else{const _0x2f625d=_0x3cf5e5['getIntersection'](_0x17674b['getFirstRange']());null!==_0x2f625d&&_0x17674b['_onDiscard']([_0x2f625d],null,_0x39b8b2);}}if(_0x3cf5e5['detach'](),_0x3cf5e5['isCollapsed']||'$graveyard'==_0x3cf5e5['root']['rootName'])return null;let _0x280ec7=null,_0x184448=_0x3cf5e5['start'],_0x11e9ed=_0x3cf5e5['end'];const _0x169489=this['_findSuggestions'](_0x3cf5e5,'deletion');for(const {suggestion:_0x1b4c6f,meta:_0x2a1e2d}of _0x169489){const _0x50ff3a=this['_model']['createRange'](_0x184448,_0x11e9ed);if(_0x2a1e2d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2a1e2d['containsRangeInObject']&&!_0x2a1e2d['isInsideObject'])){if(_0x1b4c6f['isMultiRange']){if(!Xt(_0x1b4c6f,_0x39b8b2))continue;let _0x511c67=!0x0;for(const _0x534628 of _0x1b4c6f['getRanges']()){if(_0x534628['containsRange'](_0x50ff3a,!0x0))return _0x1b4c6f;_0x50ff3a['containsRange'](_0x534628)||(_0x511c67=!0x1);}_0x511c67&&_0x1b4c6f['discard']();}else{const _0x13fd4a=_0x1b4c6f['getFirstRange']();if(_0x13fd4a['containsRange'](_0x50ff3a,!0x0))return _0x1b4c6f;if(!Xt(_0x1b4c6f,_0x39b8b2)){_0x50ff3a['containsRange'](_0x13fd4a)?_0x1b4c6f['removeMarkers']():_0x13fd4a['containsPosition'](_0x184448)?_0x184448=_0x13fd4a['end']:_0x13fd4a['containsPosition'](_0x11e9ed)&&(_0x11e9ed=_0x13fd4a['start']);continue;}_0x184448=_0x184448['isBefore'](_0x13fd4a['start'])?_0x184448:_0x13fd4a['start'],_0x11e9ed=_0x11e9ed['isAfter'](_0x13fd4a['end'])?_0x11e9ed:_0x13fd4a['end'],_0x39b8b2=Object['assign']({},_0x1b4c6f['attributes']),_0x280ec7?_0x13fd4a['start']['isBefore'](_0x280ec7['getFirstRange']()['start'])?(_0x280ec7['removeMarkers'](),_0x280ec7=_0x1b4c6f):_0x1b4c6f['removeMarkers']():_0x280ec7=_0x1b4c6f;}}}if(_0x280ec7)return this['_setSuggestionRange'](_0x280ec7,this['_model']['createRange'](_0x184448,_0x11e9ed)),_0x280ec7;{const _0x53da67=_0x5b1bcf(),_0x12298e=this['_model']['createRange'](_0x184448,_0x11e9ed),_0x245a82=_0x21ee1d['id'],_0x239b74=_0x43727f?'deletion:'+_0x43727f:'deletion',_0x104eff=this['_setSuggestionData']({'id':_0x53da67,'type':_0x239b74,'createdAt':new Date(),'authorId':_0x245a82,'attributes':_0x39b8b2});return this['_addSuggestionMarker'](_0x239b74,_0x53da67,_0x245a82,_0x12298e),_0x104eff;}}['markMultiRangeDeletion'](_0x2b74b8,_0x4b3915='multi',_0x3722d0={}){const _0xecf4db=this['editor']['plugins']['get']('Users')['me'],_0x212c84=_0x2b74b8['map'](_0x27c493=>new _0x4f11f5(_0x27c493['start'],_0x27c493['end'])),_0xa26aa7=new Set();this['_trackingSessionId']&&(_0x3722d0['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3812db,meta:_0x177b29}of this['_findSuggestions'](_0x212c84,'insertion'))_0x177b29['isOwn']&&!_0x177b29['isNextTo']&&_0xa26aa7['add'](_0x3812db);for(const _0x122f5c of _0xa26aa7)if(_0x122f5c['isMultiRange']){const _0x312d64=_0x122f5c['getRanges']();(!_0x122f5c['attributes']||!_0x122f5c['attributes']['skipNestingCheck'])&&(_0x312d64['every'](_0x16e7ba=>_0x212c84['some'](_0x4dbea4=>_0x4dbea4['containsRange'](_0x16e7ba,!0x0)))&&_0x122f5c['discard']());if(_0x212c84['every'](_0x3d27d3=>_0x312d64['some'](_0x45d61f=>_0x45d61f['containsRange'](_0x3d27d3,!0x0)))){const _0x4d7838=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b3915,'accept');return this['forceDefaultExecution'](()=>_0x4d7838(_0x2b74b8,null,_0x3722d0)),null;}}else{const _0x319606=_0x122f5c['getFirstRange']();_0x212c84['some'](_0x32d507=>_0x32d507['containsRange'](_0x319606,!0x0))&&_0x122f5c['discard']();if(_0x212c84['every'](_0x30577a=>_0x319606['containsRange'](_0x30577a,!0x0))){const _0x4bb754=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b3915,'accept');return this['forceDefaultExecution'](()=>_0x4bb754(_0x212c84,null,_0x3722d0)),null;}}const _0x528a6a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b3915,'join');let _0x2878a2=null;for(const _0x12511a of this['getSuggestions']())if(_0x12511a['author']['id']==_0xecf4db['id']&&_0x12511a['isInContent']&&'deletion'==_0x12511a['type']&&_0x12511a['subType']==_0x4b3915&&Xt(_0x12511a,_0x3722d0)&&(_0x528a6a(_0x12511a['getRanges'](),_0x212c84)||_0x528a6a(_0x212c84,_0x12511a['getRanges']()))){if(_0x2878a2){if(_0x12511a['commentThread']&&_0x12511a['commentThread']['length'])continue;for(const _0x13b713 of _0x12511a['getRanges']())_0x2878a2['isIntersectingWithRange'](_0x13b713)||_0x2878a2['addRange'](_0x13b713);_0x12511a['removeMarkers']();}else{_0x2878a2=_0x12511a;for(const _0x1546f1 of _0x212c84)_0x12511a['isIntersectingWithRange'](_0x1546f1)||_0x12511a['addRange'](_0x1546f1);}}if(_0x2878a2)return _0x2878a2;_0xa26aa7['clear']();for(const {suggestion:_0x4f29d5,meta:_0x2ec338}of this['_findSuggestions'](_0x212c84,'deletion'))_0x2ec338['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2ec338['containsRangeInObject']&&!_0x2ec338['isInsideObject'])&&Xt(_0x4f29d5,_0x3722d0)&&_0xa26aa7['add'](_0x4f29d5);for(const _0x2be459 of _0xa26aa7){const _0x2593d6=_0x2be459['getRanges']();if(!_0x3722d0||!_0x3722d0['skipNestingCheck']){if(_0x212c84['every'](_0x18cd77=>_0x2593d6['some'](_0x2c47ee=>_0x2c47ee['containsRange'](_0x18cd77,!0x0))))return _0x2be459;}(!_0x2be459['attributes']||!_0x2be459['attributes']['skipNestingCheck'])&&(_0x2593d6['every'](_0x44a837=>_0x212c84['some'](_0x28c349=>_0x28c349['containsRange'](_0x44a837,!0x0)))&&_0x2be459['discard']());}const _0x3e6fad=_0x5b1bcf(),_0x7684b5=_0xecf4db['id'],_0x497d33='deletion:'+_0x4b3915,_0x1c992f=this['_setSuggestionData']({'id':_0x3e6fad,'type':_0x497d33,'createdAt':new Date(),'authorId':_0x7684b5,'attributes':_0x3722d0});for(const _0x486e25 of _0x212c84)_0x486e25['detach'](),_0x486e25['isCollapsed']||'$graveyard'==_0x486e25['root']['rootName']||this['_addSuggestionMarker'](_0x497d33,_0x3e6fad,_0x7684b5,_0x486e25,T['getMultiRangeId']());return _0x1c992f;}['markAttributeChange'](_0x53429e,_0x2e62f8,_0xd27b12,_0x49cfdc,_0xed72b8){if(_0x53429e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1529ba=this['editor']['plugins']['get']('Users')['me']['id'],_0x2cebe4=Array['from'](this['_suggestions']['values']())['filter'](_0x4a9b07=>'attribute'==_0x4a9b07['type']&&_0x4a9b07['data']['key']==_0x2e62f8&&_0x4a9b07['isIntersectingWithRange'](_0x53429e));if(this['_trackingSessionId']&&(_0xed72b8['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x469110=this['_findSuggestions'](_0x53429e,'insertion')['filter'](({meta:_0x5d7cce})=>_0x5d7cce['isOwn']&&!_0x5d7cce['isInsideObject']&&!_0x5d7cce['isNextTo'])['map'](({suggestion:_0x5abf1e})=>_0x5abf1e);_0x2cebe4['unshift'](..._0x469110);}const _0x3e620b=new Map([[_0x53429e,_0xd27b12]]);for(const _0x5db1fd of _0x2cebe4){const _0x55b8b5='attribute'==_0x5db1fd['type']?_0x5db1fd['data']['oldValue']:void 0x0,_0x267b09=_0x5db1fd['getFirstRange'](),_0x3dd3c5=Array['from'](_0x3e620b['keys']())['find'](_0x332345=>_0x332345['isIntersecting'](_0x267b09));if(!_0x3dd3c5)continue;const _0xe796b6=_0x3dd3c5['getDifference'](_0x267b09);this['_isBlockAttribute'](_0x2e62f8)&&'insertion'==_0x5db1fd['type']&&0x0!=_0xe796b6['length']||(_0x3e620b['delete'](_0x3dd3c5),_0xe796b6['forEach'](_0x3ff621=>{_0x3e620b['set'](_0x3ff621,_0xd27b12);}),'insertion'!=_0x5db1fd['type']&&_0x55b8b5!=_0x49cfdc&&_0x3e620b['set'](_0x3dd3c5['getIntersection'](_0x267b09),_0x55b8b5));}const _0x262cd4=[];for(const [_0x309ec2,_0x392499]of _0x3e620b){const _0x85346a=_0x5b1bcf(),_0x3597f5={'key':_0x2e62f8,'oldValue':_0x392499,'newValue':_0x49cfdc};_0x2e62f8['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':_0x2e62f8});const _0x463cbf=('attribute:'+(_0x2e62f8+'|'+Lt({'newValue':_0x49cfdc})))['substring'](0x0,0x3c),_0x391923=this['_setSuggestionData']({'id':_0x85346a,'type':_0x463cbf,'data':_0x3597f5,'createdAt':new Date(),'authorId':_0x1529ba,'attributes':_0xed72b8});_0x262cd4['push'](_0x391923),this['_addSuggestionMarker'](_0x463cbf,_0x85346a,_0x1529ba,_0x309ec2);}return _0x262cd4;}['enableDefaultAttributesIntegration'](_0x2d96a8){this['enableCommand'](_0x2d96a8,(_0x1796de,..._0x414564)=>{this['recordAttributeChanges'](()=>{_0x1796de(..._0x414564);});});}['registerBlockAttribute'](_0x52c881){this['_blockAttributeKeys']['add'](_0x52c881);}['registerInlineAttribute'](_0x27687b){this['_inlineAttributeKeys']['add'](_0x27687b);}['startTrackingSession'](_0x1a5c0e){return this['_trackingSessionId']=void 0x0!==_0x1a5c0e?_0x1a5c0e:_0x5b1bcf(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3015cb){return'attribute'==_0x3015cb['type']?_0x3015cb['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1414fc,_0xd89747){const _0x2918af=_0x1414fc['getFirstMarker']();this['_model']['change'](_0x400d63=>{_0x400d63['updateMarker'](_0x2918af,{'range':_0xd89747});});}['_addThreadToSuggestion'](_0x23be88){const _0x18250a=_0x23be88['id'],_0x36dc03=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x18250a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x36dc03,'threadId':_0x18250a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x425eeb=this['_commentsRepository']['getCommentThread'](_0x18250a);_0x425eeb['unbind']('isRemovable'),_0x425eeb['isRemovable']=!0x1,_0x23be88['commentThread']=_0x425eeb;}['_checkSuggestionCorrectness'](_0x13a06a,_0x150a98,_0x2ede31,_0x9d4316){if(_0x13a06a['type']!=_0x150a98||_0x13a06a['subType']!=_0x2ede31||_0x13a06a['creator']['id']!=_0x9d4316)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1f6b9a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x161975,_0xd99964){const _0x231c5d=_0x161975['getFirstRange']();if(_0xd99964['isEqual'](_0x231c5d))_0x161975['removeMarkers']();else{if(_0x231c5d['containsRange'](_0xd99964)){const _0x471ff4=this['_model']['createPositionAt'](_0xd99964['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x161975,this['_model']['createRange'](_0x231c5d['start'],_0x471ff4));const _0x3456c5=_0x5b1bcf(),_0x459a77=_0x161975['creator']['id'],_0x3966c1=_0x161975['type']+':'+_0x161975['subType'];this['_setSuggestionData']({'id':_0x3456c5,'type':_0x3966c1,'createdAt':new Date(),'authorId':_0x459a77,'data':_0x161975['data'],'attributes':_0x161975['attributes']});const _0x15697b=this['_model']['createPositionAt'](_0xd99964['end']['parent'],'after'),_0xd83476=this['_model']['createRange'](_0x15697b,_0x231c5d['end']);this['_addSuggestionMarker'](_0x3966c1,_0x3456c5,_0x459a77,_0xd83476);}else{if(_0x231c5d['containsPosition'](_0xd99964['start'])){const _0x391d12=this['_model']['createPositionAt'](_0xd99964['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x161975,this['_model']['createRange'](_0x231c5d['start'],_0x391d12));}else{const _0x46f36e=this['_model']['createPositionAt'](_0xd99964['end']['parent'],'after');this['_setSuggestionRange'](_0x161975,this['_model']['createRange'](_0x46f36e,_0x231c5d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2a1979){for(const {suggestion:_0x5fe285,meta:_0x381fc1}of this['_findSuggestions'](_0x2a1979,'insertion')){if(!_0x381fc1['isOwn'])continue;const _0x49fc31=_0x5fe285['getRanges']();for(const _0x32e6fa of _0x49fc31)if(!_0x2a1979['getDifference'](_0x32e6fa)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xa3aaed){return this['editor']['plugins']['get']('Users')['getUser'](_0xa3aaed);}['_getExternalAuthor'](_0x38db21){const _0x48da17=this['editor']['plugins']['get']('Users'),_0xe39c3e=_0x5e1cbe('external:'+_0x38db21),_0x5930ec=_0x48da17['getUser'](_0xe39c3e);return _0x5930ec||_0x48da17['addUser']({'id':_0xe39c3e,'name':_0x38db21});}['_createSuggestion'](_0x150a4d,_0xf470cc,_0x359fe8,_0x54cf36,_0xf72b95,_0x132e8f){const _0x28af5b=this['_getAuthorFromId'](_0x54cf36);if(!_0x28af5b)throw new _0x1f6b9a('track-changes-user-not-found',this,{'authorId':_0x54cf36,'suggestionId':_0x359fe8});const _0x2951bb=this['_suggestionFactory']['buildSuggestion'](_0x150a4d,_0xf470cc,_0x359fe8,_0x28af5b,_0xf72b95,_0x9e2440=>{this['_updateSuggestionData'](_0x359fe8,{'attributes':_0x9e2440});const _0x4a5d20=this['getSuggestion'](_0x359fe8);this['_joinWithAdjacentSuggestions'](new Set([_0x4a5d20])),this['_refreshSuggestionsChain'](new Set([_0x4a5d20]));},_0x132e8f);return this['listenTo'](_0x2951bb,'accept',()=>{this['_updateSuggestionData'](_0x359fe8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2951bb,'discard',()=>{this['_updateSuggestionData'](_0x359fe8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x359fe8,_0x2951bb),this['_suggestionState']['set'](_0x2951bb,'notReady'),_0x2951bb;}['_splitMarkerName'](_0x2cdb51){const _0x40513f=_0x2cdb51['split'](':');return{'group':_0x40513f[0x0],'type':_0x40513f[0x1],'subType':_0x40513f['length']>=0x5?_0x40513f[0x2]:null,'id':_0x40513f['length']<0x5?_0x40513f[0x2]:_0x40513f[0x3],'authorId':_0x40513f['length']<0x5?_0x40513f[0x3]:_0x40513f[0x4],'markerCount':0x6==_0x40513f['length']?_0x40513f[0x5]:null};}['_breakSuggestionMarker'](_0xe2b77c,_0x13282e,_0xe557bb){const _0x2c112a=_0xe2b77c['getFirstRange'](),_0x2a56a0=_0x2c112a['start'],_0x5155df=_0x2c112a['end'];this['_setSuggestionRange'](_0xe2b77c,this['_model']['createRange'](_0x2a56a0,_0x13282e));const _0xad485b=_0x5b1bcf(),_0x1d4eca=_0xe2b77c['creator']['id'],_0x4c563a=_0xe2b77c['type']+(_0xe2b77c['subType']?':'+_0xe2b77c['subType']:'');this['_setSuggestionData']({'id':_0xad485b,'type':_0x4c563a,'createdAt':new Date(),'authorId':_0x1d4eca,'originalSuggestionId':_0xe2b77c['_originalSuggestionId']||_0xe2b77c['id'],'attributes':_0xe2b77c['attributes'],'data':_0xe2b77c['data']});const _0x1a061a=this['_getAttributeKey'](_0xe2b77c);('formatBlock'==_0xe2b77c['type']||_0x1a061a&&this['_isBlockAttribute'](_0x1a061a))&&(_0xe557bb=this['_model']['createPositionBefore'](_0xe557bb['parent'])),this['_addSuggestionMarker'](_0x4c563a,_0xad485b,_0x1d4eca,this['_model']['createRange'](_0xe557bb,_0x5155df));}['_findSuggestions'](_0x3f1a81,_0x1d8fca=null){const _0xe17f7d=[],_0x57eb39=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3f1a81)||(_0x3f1a81=[_0x3f1a81]);for(const _0x4decf8 of this['getSuggestions']()){if(!_0x4decf8['isInContent'])continue;if(_0x1d8fca&&_0x4decf8['type']!=_0x1d8fca)continue;let _0x39e08e=!0x1;for(const _0x270364 of _0x4decf8['getRanges']()){for(const _0x279c8a of _0x3f1a81){const _0x5e0a6c=_0x279c8a['start']['isEqual'](_0x270364['end'])||_0x279c8a['end']['isEqual'](_0x270364['start']);if(_0x5e0a6c||_0x279c8a['getIntersection'](_0x270364)){const _0x13ca69=_0x279c8a['containsRange'](_0x270364)&&Ft(this['_model']['schema'],_0x270364['start'],_0x279c8a),_0xcb4437=_0x270364['containsRange'](_0x279c8a)&&Ft(this['_model']['schema'],_0x279c8a['start'],_0x270364);_0xe17f7d['push']({'suggestion':_0x4decf8,'meta':{'isOwn':_0x57eb39==_0x4decf8['author'],'isNextTo':_0x5e0a6c,'isInsideObject':_0x13ca69,'containsRangeInObject':_0xcb4437}}),_0x39e08e=!0x0;break;}}if(_0x39e08e)break;}}return _0xe17f7d;}['_addSuggestionMarker'](_0x13486b,_0x409802,_0x232992,_0x1236cd,_0x5fbd87){this['_model']['change'](_0x19c3cf=>{let _0x44636c='suggestion:'+_0x13486b+':'+_0x409802+':'+_0x232992;_0x5fbd87&&(_0x44636c=_0x44636c+':'+_0x5fbd87),_0x19c3cf['addMarker'](_0x44636c,{'range':_0x1236cd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3f8fd0){const _0x31db53=_0x3f8fd0['previous'],_0x1206c9=_0x3f8fd0['next'];_0x3f8fd0['previous']=null,_0x3f8fd0['next']=null,null!=_0x31db53&&_0x31db53['next']==_0x3f8fd0&&(_0x31db53['next']=_0x1206c9),null!=_0x1206c9&&_0x1206c9['previous']==_0x3f8fd0&&(_0x1206c9['previous']=_0x31db53),'ready'==this['_suggestionState']['get'](_0x3f8fd0)&&(this['_suggestionState']['set'](_0x3f8fd0,'removed'),this['fire']('suggestionUnloaded',_0x3f8fd0,_0x31db53,_0x1206c9));}['_setSuggestionData'](_0x4af7d8){const _0x375a0b=_0x4af7d8['id'],_0x782b93=this['addSuggestionData'](_0x4af7d8);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1d1640=this['editor']['plugins']['get']('PendingActions'),_0x34e153=_0x782b93['hasComments'],_0x275ed1=_0x782b93['subType']?_0x782b93['type']+':'+_0x782b93['subType']:_0x782b93['type'],_0x5bf5e1=this['editor']['locale'],_0x28475c=_0x1d1640['add'](o(_0x5bf5e1,'PENDING_ACTION_SUGGESTION')),_0x5b2903={'id':_0x375a0b,'type':_0x275ed1,'hasComments':_0x34e153,'data':_0x4af7d8['data']||null,'originalSuggestionId':_0x4af7d8['originalSuggestionId']||null,'attributes':_0x782b93['attributes']};this['_adapter']['addSuggestion'](_0x5b2903)['then'](_0x37be15=>{_0x782b93['_saved']=!0x0,_0x1d1640['remove'](_0x28475c),_0x37be15&&_0x37be15['createdAt']&&(this['_suggestions']['get'](_0x375a0b)['createdAt']=_0x37be15['createdAt']);})['catch'](_0x52444a=>{throw _0x169bfd('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x782b93['discard']();}),_0x782b93['stopListening'](),this['_suggestions']['delete'](_0x782b93['id']),this['_suggestionState']['delete'](_0x782b93),_0x52444a;});}return _0x782b93;}['_isBlockAttribute'](_0x430805){return this['_blockAttributeKeys']['has'](_0x430805);}['_isInlineAttribute'](_0x957b5a){return this['_inlineAttributeKeys']['has'](_0x957b5a);}['_updateSuggestionData'](_0x1916a2,_0x4ac8b4){const _0x2e7392=this['editor']['plugins']['get']('PendingActions'),_0x43197d=this['getSuggestion'](_0x1916a2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x43197d['_saved']){const _0x2a3012=_0x2e7392['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1916a2,_0x4ac8b4)['then'](()=>{_0x2e7392['remove'](_0x2a3012);});}else _0x43197d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1916a2,_0x4ac8b4);});}}['_getSuggestionData'](_0x53d742){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1f6b9a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x53d742);}['_handleNewSuggestionMarker'](_0x2f3723){const {id:_0x648830,type:_0x1f51cb,subType:_0x1715c5,authorId:_0x4c0bbc}=this['_splitMarkerName'](_0x2f3723),_0x2ee951=this['_suggestions']['get'](_0x648830)||this['_createSuggestion'](_0x1f51cb,_0x1715c5,_0x648830,_0x4c0bbc,{});switch(this['_checkSuggestionCorrectness'](_0x2ee951,_0x1f51cb,_0x1715c5,_0x4c0bbc),this['_suggestionState']['get'](_0x2ee951)){case'notReady':this['_getSuggestionData'](_0x648830)['then'](_0x481095=>{let _0x55b91c=Promise['resolve']();_0x481095['hasComments']&&(_0x55b91c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x648830})),_0x55b91c['then'](()=>{this['addSuggestionData'](_0x481095)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2ee951,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x648830,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2ee951,'ready'),this['fire']('suggestionLoaded',_0x2ee951);break;case'ready':this['fire']('suggestionChanged',_0x2ee951);}return _0x2ee951['addMarkerName'](_0x2f3723),_0x2ee951;}['_refreshSuggestionsChain'](_0x21ce16){const _0x2ac2ee=Array['from'](_0x21ce16),_0x5c813d=_0x2ac2ee['filter'](_0x500dee=>'attribute'==_0x500dee['type']);this['_refreshAttributeSuggestionsChain'](_0x5c813d);const _0x42bd9a=_0x2ac2ee['filter'](_0x246fe6=>!_0x246fe6['isMultiRange']&&'attribute'!=_0x246fe6['type']),_0x2e026f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a48e=>!_0x1a48e['isMultiRange']&&'attribute'!=_0x1a48e['type']),_0x205957=_0x2e026f['filter'](_0x4ca47b=>!_0x21ce16['has'](_0x4ca47b)),_0x165773=new Map(_0x2e026f['map'](_0x24d63a=>[_0x24d63a,this['_suggestionFactory']['getSuggestionCallback'](_0x24d63a['type'],_0x24d63a['subType'],'chain')])),_0x1c78c1=new Map(_0x2e026f['map'](_0x466b33=>[_0x466b33,_0x466b33['getFirstRange']()])),_0x3acee6=new Set(),_0x1d21bf=new Set();for(let _0x52deac=0x0;_0x52deac<_0x42bd9a['length'];_0x52deac++)_0x5d1d5a(_0x42bd9a[_0x52deac],_0x42bd9a,_0x52deac+0x1);for(let _0x497b27=0x0;_0x497b27<_0x42bd9a['length'];_0x497b27++)_0x5d1d5a(_0x42bd9a[_0x497b27],_0x205957,0x0);const _0x3dc941=new Set();for(let _0x450305=0x0;_0x450305<_0x42bd9a['length'];_0x450305++){const _0x4258d4=_0x42bd9a[_0x450305];!_0x1d21bf['has'](_0x4258d4)&&_0x4258d4['previous']&&(_0x3dc941['add'](_0x4258d4['previous']),_0x4258d4['previous']['next']===_0x4258d4&&(_0x4258d4['previous']['next']=null),_0x4258d4['previous']=null),!_0x3acee6['has'](_0x4258d4)&&_0x4258d4['next']&&(_0x3dc941['add'](_0x4258d4['next']),_0x4258d4['next']['previous']===_0x4258d4&&(_0x4258d4['next']['previous']=null),_0x4258d4['next']=null);}function _0x5d1d5a(_0x3aa442,_0x212135,_0xea2fb6){for(let _0x215412=_0xea2fb6;_0x215412<_0x212135['length'];_0x215412++){const _0x579b27=_0x9d4e9f(_0x3aa442,_0x212135[_0x215412]);_0x579b27&&(_0x579b27[0x0]['next']=_0x579b27[0x1],_0x579b27[0x1]['previous']=_0x579b27[0x0],_0x3acee6['add'](_0x579b27[0x0]),_0x1d21bf['add'](_0x579b27[0x1]));}}function _0x9d4e9f(_0x4967d2,_0x43daf9){if(_0x4967d2['author']['id']!==_0x43daf9['author']['id'])return null;const _0x1fea6b=_0x165773['get'](_0x4967d2)(_0x4967d2,_0x43daf9,_0x1c78c1['get'](_0x4967d2),_0x1c78c1['get'](_0x43daf9));if(!_0x1fea6b)return null;return _0x165773['get'](_0x43daf9)(_0x4967d2,_0x43daf9,_0x1c78c1['get'](_0x4967d2),_0x1c78c1['get'](_0x43daf9))?_0x1fea6b[0x1]['commentThread']&&_0x1fea6b[0x1]['commentThread']['length']?null:_0x1fea6b:null;}_0x3dc941['size']&&this['_refreshSuggestionsChain'](_0x3dc941);}['_refreshAttributeSuggestionsChain'](_0x2a4317){if(0x0==_0x2a4317['length'])return;const _0x7bf87a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c18d8=>'attribute'==_0x3c18d8['type']&&_0x3c18d8['_isDataLoaded']),_0x389e78=[],_0x27f195=new Map();for(const _0x5bcac8 of _0x7bf87a){const _0x4319ac=_0x5e1cbe(_0x5bcac8['attributes']);_0x27f195['has'](_0x4319ac)||(_0x27f195['set'](_0x4319ac,_0x389e78['length']),_0x389e78['push']([]));const _0x4d38bb=_0x27f195['get'](_0x4319ac);_0x389e78[_0x4d38bb]['push'](_0x5bcac8);}!(function(){_0x389e78['sort']((_0x547b40,_0x5201ed)=>{const _0x3be12b=_0x547b40[0x0]['createdAt'],_0x2d1aa4=_0x5201ed[0x0]['createdAt'];return _0x3be12b==_0x2d1aa4?_0x547b40[0x0]['attributes']['groupId']<_0x5201ed[0x0]['attributes']['groupId']?-0x1:0x1:_0x3be12b<_0x2d1aa4?-0x1:0x1;});for(const _0x146b24 of _0x389e78)_0x146b24['sort']((_0x1f9288,_0x5e09e3)=>_0x1f9288['id']<_0x5e09e3['id']?-0x1:0x1);}());for(let _0x76bed=0x0;_0x76bed<_0x389e78['length'];_0x76bed++){if(0x0==_0x389e78[_0x76bed]['length'])continue;const _0x426c63=[];for(let _0x1360c7=_0x76bed+0x1;_0x1360c7<_0x389e78['length'];_0x1360c7++)0x0!=_0x389e78[_0x1360c7]['length']&&_0x41b51e(_0x389e78[_0x76bed],_0x389e78[_0x1360c7])&&_0x426c63['push'](_0x1360c7);for(const _0x5ba925 of _0x426c63)_0x389e78[_0x76bed]=_0x389e78[_0x76bed]['concat'](_0x389e78[_0x5ba925]),_0x389e78[_0x5ba925]=[];}for(const _0x34863a of _0x389e78)for(let _0x18bb6e=0x0;_0x18bb6e<_0x34863a['length'];_0x18bb6e++){const _0x2550db=_0x34863a[_0x18bb6e+0x1]||null;_0x34863a[_0x18bb6e]['next']!==_0x2550db&&(_0x34863a[_0x18bb6e]['next']=_0x2550db);}for(const _0x3b26ca of _0x389e78)for(let _0x5342a7=0x0;_0x5342a7<_0x3b26ca['length'];_0x5342a7++){const _0x4bebc7=_0x3b26ca[_0x5342a7-0x1]||null;_0x3b26ca[_0x5342a7]['previous']!==_0x4bebc7&&(_0x3b26ca[_0x5342a7]['previous']=_0x4bebc7);}function _0x41b51e(_0x51bdd4,_0x1d1c89){if(_0x51bdd4[0x0]['attributes']['groupId']!==_0x1d1c89[0x0]['attributes']['groupId']&&_0x51bdd4[0x0]['author']!==_0x1d1c89[0x0]['author'])return!0x1;if(!function(_0x4d4486,_0x23f91a){if(!_0x4d4486['hasComments']&&!_0x23f91a['hasComments'])return!0x0;if(_0x4d4486['hasComments']&&_0x23f91a['hasComments'])return!0x1;if(_0x4d4486['hasComments']&&_0x23f91a['createdAt']<_0x4d4486['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x23f91a['hasComments']&&_0x4d4486['createdAt']<_0x23f91a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x51bdd4[0x0],_0x1d1c89[0x0]))return!0x1;const _0x77b173=Ut(_0x51bdd4[0x0]['attributes'],['groupId','trackingSessionId']),_0x2532ac=Ut(_0x1d1c89[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1b0f7b(_0x77b173,_0x2532ac))return!0x1;if(_0x51bdd4[0x0]['attributes']['groupId']==_0x1d1c89[0x0]['attributes']['groupId'])return!0x0;if(_0x51bdd4[0x0]['attributes']['trackingSessionId']!==_0x1d1c89[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x51bdd4['every'](_0x229941=>_0x1d1c89['some'](_0x3dea6a=>_0x229941['getFirstRange']()['isEqual'](_0x3dea6a['getFirstRange']())))&&_0x1d1c89['every'](_0x138c12=>_0x51bdd4['some'](_0x5bdbcf=>_0x138c12['getFirstRange']()['isEqual'](_0x5bdbcf['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xe0a398){const _0x5c3bf9=Array['from'](_0xe0a398),_0x5467b7=this['getSuggestions']({'skipNotAttached':!0x0}),_0xe977b7=_0x5467b7['filter'](_0xfd6f24=>!_0xe0a398['has'](_0xfd6f24)),_0x16cd47=new Map(_0x5c3bf9['map'](_0x5da528=>[_0x5da528,this['_suggestionFactory']['getSuggestionCallback'](_0x5da528['type'],_0x5da528['subType'],'join')])),_0x2d3b79=new Map(_0x5467b7['map'](_0x4419c6=>[_0x4419c6,_0x4419c6['getRanges']()]));for(let _0x28103b=0x0;_0x28103b<_0x5c3bf9['length'];_0x28103b++){if(_0x52a69c(this,_0x5c3bf9[_0x28103b],_0x5c3bf9,_0x28103b+0x1))return!0x0;}for(let _0x56d1fc=0x0;_0x56d1fc<_0x5c3bf9['length'];_0x56d1fc++){if(_0x52a69c(this,_0x5c3bf9[_0x56d1fc],_0xe977b7,0x0))return!0x0;}return!0x1;function _0x52a69c(_0x26752b,_0x281f7f,_0x442d10,_0x4b1183){for(let _0x21b056=_0x4b1183;_0x21b056<_0x442d10['length'];_0x21b056++){const _0x1a6209=_0x442d10[_0x21b056];if(_0x1a6209['type']!==_0x281f7f['type']||_0x1a6209['author']['id']!==_0x281f7f['author']['id']||_0x1a6209['subType']!==_0x281f7f['subType'])continue;if(!Qt(_0x281f7f,_0x1a6209))continue;if('attribute'==_0x281f7f['type']&&_0x281f7f['data']['oldValue']!=_0x1a6209['data']['oldValue'])continue;if('attribute'==_0x281f7f['type']&&_0x26752b['_isBlockAttribute'](_0x281f7f['data']['key']))continue;if('formatBlock'==_0x281f7f['type']){const _0x28d3e3=_0x26752b['editor']['model'],_0x5f3b1b=_0x281f7f['getContainedElement']();if(_0x5f3b1b&&(_0x28d3e3['schema']['isObject'](_0x5f3b1b)||_0x28d3e3['schema']['isLimit'](_0x5f3b1b)))continue;}const _0x398940=_0x16cd47['get'](_0x281f7f),_0x3fd45c=_0x2d3b79['get'](_0x281f7f),_0xc1b97e=_0x2d3b79['get'](_0x1a6209),_0x21ca78=_0x281f7f['commentThread']&&_0x281f7f['commentThread']['length'],_0x541694=_0x1a6209['commentThread']&&_0x1a6209['commentThread']['length'];if(!_0x21ca78&&_0x398940(_0xc1b97e,_0x3fd45c))return _0x26752b['_joinSuggestions'](_0x1a6209,_0x281f7f),_0x2d3b79['delete'](_0x281f7f),!0x0;if(!_0x541694&&_0x398940(_0x3fd45c,_0xc1b97e))return _0x26752b['_joinSuggestions'](_0x281f7f,_0x1a6209),_0x2d3b79['delete'](_0x1a6209),!0x0;}return!0x1;}}['_joinSuggestions'](_0x27d535,_0x48f3e1){if(_0x27d535['isMultiRange']){for(const _0x398652 of _0x48f3e1['getRanges']())_0x27d535['addRange'](_0x398652);}else{const _0x2a61e8=_0x48f3e1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x27d535,this['_model']['createRange'](_0x27d535['getFirstRange']()['start'],_0x2a61e8));}_0x48f3e1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3bb1c1,_0x4787c5,_0x9507d9){const _0x2edfe1=_0x3bb1c1['startsWith']('format')||_0x3bb1c1['startsWith']('attribute')?'FORMATTING':_0x3bb1c1['toUpperCase']();return o(this['editor']['locale'],_0x4787c5+'_'+_0x2edfe1+'_SUGGESTION_ANNOUNCEMENT',_0x9507d9);}['_initAriaMarkerChangeAnnouncements'](){const _0x502343=this['editor'];if(!_0x502343['ui'])return;const {ariaLiveAnnouncer:_0x46e825}=_0x502343['ui'];_0x17d47c(this['_model'],({left:_0xcb20ce,entered:_0x38db76})=>{for(const _0x5f8e15 of _0xcb20ce){const {group:_0xfc3ff6,type:_0xc82ba0}=this['_splitMarkerName'](_0x5f8e15['name']);if('suggestion'===_0xfc3ff6){_0x46e825['announce'](this['_getMarkerAnnouncementText'](_0xc82ba0,'LEAVE'));break;}}for(const _0x1db3f7 of _0x38db76){const {group:_0x20547e,type:_0x272d3b}=this['_splitMarkerName'](_0x1db3f7['name']);if('suggestion'===_0x20547e){_0x46e825['announce'](this['_getMarkerAnnouncementText'](_0x272d3b,'ENTER',_0xbf1e54(_0x4aeab1)));break;}}});}['_processAttributeChanges'](_0x3a92e1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x594949=this['editor'],_0x2b6501=_0x594949['model']['document']['differ']['getChanges']();if(0x0==_0x2b6501['length'])return!0x1;const _0x344039=[],_0x18abea=_0x2b6501['filter'](_0x319caf=>'attribute'==_0x319caf['type']),_0x536842=_0x2b6501['filter'](_0x371f88=>'insert'==_0x371f88['type']&&'$text'!=_0x371f88['name']),_0x3d7d98=_0x2b6501['filter'](_0x84c884=>'remove'==_0x84c884['type']&&'$text'!=_0x84c884['name']);for(const _0x156d0d of _0x18abea)_0x344039['push']({'key':_0x156d0d['attributeKey'],'newValue':_0x156d0d['attributeNewValue'],'oldValue':_0x156d0d['attributeOldValue'],'range':qt(_0x156d0d['range'],_0x594949['model'])});for(const _0x25276f of _0x536842){const _0x397f14=_0x3d7d98['find'](_0xbb5796=>_0xbb5796['position']['isEqual'](_0x25276f['position']));_0x397f14&&_0x344039['push']({'key':m,'newValue':_0x25276f['name'],'oldValue':_0x397f14['name'],'range':_0x594949['model']['createRangeOn'](_0x25276f['position']['nodeAfter'])});}return 0x0!=_0x344039['length']&&this['_reduceExistingSuggestions'](_0x3a92e1,_0x344039);}['_processAttributeSuggestions'](_0x2f759a){let _0x342628=!0x1;const _0x9b70e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x30cc35=>_0x30cc35['data']['newRange']&&_0x30cc35['name']['startsWith']('suggestion:attribute:'));for(const _0x23cc5b of _0x9b70e){const {subType:_0x57128f,id:_0x166361}=this['_splitMarkerName'](_0x23cc5b['name']),_0x2cfe81=_0x57128f['split']('|')[0x0];for(const _0x19d813 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x19d813['id']!=_0x166361&&'attribute'==_0x19d813['type']&&_0x19d813['data']&&_0x19d813['data']['key']==_0x2cfe81&&_0x19d813['getFirstRange']()['isIntersecting'](_0x23cc5b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x19d813,_0x23cc5b['data']['newRange'],_0x2f759a),_0x342628=!0x0);}return _0x342628;}['recordAttributeChanges'](_0x32b21a){this['_recordAttributeSuggestions']=!0x0,_0x32b21a();}['_isRegisteredAttribute'](_0x1593c4){const _0x53b08a=this['_isBlockAttribute'](_0x1593c4),_0x267a85=this['_isInlineAttribute'](_0x1593c4);return _0x53b08a||_0x267a85;}['_reduceExistingSuggestions'](_0xfc2249,_0x57ae97){if(0x0==_0x57ae97['length'])return!0x1;let _0x53d3e5=!0x1;for(const _0x5bb991 of _0x57ae97){const _0x3716f8=this['_findSuggestions'](_0x5bb991['range'],'attribute')['filter'](_0x47126c=>!_0x47126c['meta']['isNextTo'])['map'](_0x565076=>_0x565076['suggestion']),_0x38956a=_0x5e1cbe({'newValue':_0x5bb991['newValue']});_0x3716f8['filter'](_0x9cb09b=>{const [_0x4493c2,_0x108bb1]=_0x9cb09b['subType']['split']('|');return _0x4493c2==_0x5bb991['key']&&_0x108bb1!=_0x38956a;})['forEach'](_0x5727c7=>{this['_reduceSuggestionAttributeRange'](_0x5727c7,_0x5bb991['range'],_0xfc2249),_0x53d3e5=!0x0;});}return _0x53d3e5;}['_reduceSuggestionAttributeRange'](_0xf6bf6a,_0x475e60,_0x1dbb0c){const _0x51c4a2=_0xf6bf6a['getFirstRange']()['getDifference'](_0x475e60);0x0!==_0x51c4a2['length']?0x1!==_0x51c4a2['length']?this['_breakSuggestionMarker'](_0xf6bf6a,_0x475e60['start'],_0x475e60['end']):this['_setSuggestionRange'](_0xf6bf6a,_0x51c4a2[0x0]):_0x1dbb0c['removeMarker'](_0xf6bf6a['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3c4a61){this['_editor']=_0x3c4a61,this['_model']=_0x3c4a61['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4f7ce1,_0x5bb8d8,_0x45782c,_0x50ed1a,_0x5b0391,_0x5e60c7,_0x135ffd){return new T(this['_model'],{'type':_0x4f7ce1,'subType':_0x5bb8d8,'id':_0x45782c,'originalSuggestionId':_0x135ffd,'author':_0x50ed1a,'creator':_0x50ed1a,'attributes':_0x5b0391,'onAttributesChange':_0x5e60c7,'onAccept':(..._0x45d3c8)=>this['getSuggestionCallback'](_0x4f7ce1,_0x5bb8d8,'accept')(..._0x45d3c8),'onDiscard':(..._0x1fa7d8)=>this['getSuggestionCallback'](_0x4f7ce1,_0x5bb8d8,'discard')(..._0x1fa7d8)});}['registerCustomCallback'](_0x325e53,_0x53bf1e,_0xf91c,_0x3afff8){const _0x364325=_0x325e53+':'+_0x53bf1e+':'+_0xf91c;this['_customCallbacks']['set'](_0x364325,_0x3afff8);}['getSuggestionCallback'](_0x3a4a53,_0x52605d,_0x1516c7){const _0xef4ae3=_0x3a4a53+':'+_0x52605d+':'+_0x1516c7;return this['_customCallbacks']['get'](_0xef4ae3)||this['_defaultCallbacks']['get'](_0x3a4a53+':'+_0x1516c7);}['_registerDefaultCallbacks'](){const _0x1d7fcc=()=>!0x1,_0x3881b5=_0x20f2c0=>{_0x20f2c0['sort']((_0xf1d9db,_0x436fbe)=>_0xf1d9db['start']['isBefore'](_0x436fbe['start'])?0x1:-0x1),this['_model']['change'](_0x4b8e7b=>{for(const _0x4ad941 of _0x20f2c0){let _0x28fecf;_0x28fecf=_0x4ad941['end']['isAtEnd']&&_0x4ad941['end']['parent']==_0x4ad941['start']['nodeAfter']?_0x4b8e7b['createSelection'](_0x4ad941['start']['nodeAfter'],'on'):_0x4b8e7b['createSelection'](_0x4ad941),this['_model']['deleteContent'](_0x28fecf,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x179fd6=(_0x33640a,_0x5ae150)=>{_0x5ae150&&this['_model']['change'](_0x262683=>{const {commandName:_0x368ad5,commandParams:_0x15e7a2=[]}=_0x5ae150,_0x32f234=_0x33640a['map'](_0x58ba79=>(Pt(_0x58ba79)&&(_0x58ba79=this['_model']['createRange'](_0x58ba79['end'])),_0x58ba79))['filter'](_0x29a71f=>'$graveyard'!==_0x29a71f['root']['rootName']);if(_0x32f234['length']<0x1)return;const _0x44817f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x43a713=>_0x4f11f5['fromRange'](_0x43a713));_0x262683['setSelection'](_0x32f234);for(const _0x482cf4 of this['_editor']['commands']['commands']())_0x482cf4['refresh']();_0x15e7a2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x368ad5,..._0x15e7a2);const _0x46da3f=_0x44817f['filter'](_0x4ceb90=>'$graveyard'!=_0x4ceb90['root']['rootName']);_0x46da3f['length']>0x0&&_0x262683['setSelection'](_0x46da3f);for(const _0x39dca4 of _0x44817f)_0x39dca4['detach']();});},_0x106d69=(_0x587356,_0x5e8b7e)=>0x1==_0x587356['length']&&0x1==_0x5e8b7e['length']&&_0x587356[0x0]['end']['isEqual'](_0x5e8b7e[0x0]['start']),_0x27fe04=(_0x4381bb,_0x28531e,_0x5378a1,_0x53e33b)=>Wt(_0x4381bb,_0x28531e,_0x5378a1,_0x53e33b)?[_0x4381bb,_0x28531e]:Wt(_0x28531e,_0x4381bb,_0x53e33b,_0x5378a1)?[_0x28531e,_0x4381bb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1d7fcc),this['_defaultCallbacks']['set']('insertion:discard',_0x3881b5),this['_defaultCallbacks']['set']('insertion:join',_0x106d69),this['_defaultCallbacks']['set']('insertion:chain',_0x27fe04),this['_defaultCallbacks']['set']('deletion:accept',_0x3881b5),this['_defaultCallbacks']['set']('deletion:discard',_0x1d7fcc),this['_defaultCallbacks']['set']('deletion:join',_0x106d69),this['_defaultCallbacks']['set']('deletion:chain',_0x27fe04),this['_defaultCallbacks']['set']('formatInline:accept',_0x179fd6),this['_defaultCallbacks']['set']('formatInline:discard',_0x1d7fcc),this['_defaultCallbacks']['set']('formatInline:join',_0x106d69),this['_defaultCallbacks']['set']('formatInline:chain',_0x1d7fcc),this['_defaultCallbacks']['set']('formatBlock:accept',_0x179fd6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1d7fcc),this['_defaultCallbacks']['set']('formatBlock:join',_0x106d69),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1d7fcc),this['_defaultCallbacks']['set']('attribute:accept',_0x1d7fcc),this['_defaultCallbacks']['set']('attribute:discard',(_0xf7c747,_0x1255c9)=>{if(!_0x1255c9)return;const _0x35c5c0=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x41d240=>{if(_0x1255c9['key']==m)for(const _0xc53978 of _0xf7c747){const _0x5880b4=_0xc53978['start']['nodeAfter'],_0x5249de=_0x1255c9['oldValue'];_0x41d240['rename'](_0x5880b4,_0x5249de);}else{if(_0x35c5c0['_isBlockAttribute'](_0x1255c9['key'])){for(const _0x53a82 of _0xf7c747)void 0x0!==_0x1255c9['oldValue']?_0x41d240['setAttribute'](_0x1255c9['key'],_0x1255c9['oldValue'],_0x53a82['start']['nodeAfter']):_0x41d240['removeAttribute'](_0x1255c9['key'],_0x53a82['start']['nodeAfter']);}else{for(const _0x4e144e of _0xf7c747)_0x1255c9['oldValue']?_0x41d240['setAttribute'](_0x1255c9['key'],_0x1255c9['oldValue'],_0x4e144e):_0x41d240['removeAttribute'](_0x1255c9['key'],_0x4e144e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x106d69);}}function Ft(_0x11267d,_0x460182,_0x41d135){for(const _0x5c8b8d of _0x460182['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5c8b8d['root']==_0x5c8b8d)return!0x1;if(!_0x41d135['containsItem'](_0x5c8b8d))return!0x1;if(_0x11267d['isObject'](_0x5c8b8d)||_0x11267d['isLimit'](_0x5c8b8d))return!0x0;}return!0x1;}function Pt(_0x148f84){return _0x148f84['end']['parent']==_0x148f84['start']['nodeAfter']&&_0x148f84['end']['isAtStart'];}function Gt(_0x1efa37,_0x9f4144,_0x1eba88,_0x290b68){const _0x19c521=_0x472010=>!_0x472010['item']['is']('$textProxy')&&!_0x290b68['isObject'](_0x472010['item']),_0x1188a5=_0x1efa37['start']['getLastMatchingPosition'](_0x19c521),_0x2159cb=_0x1efa37['end']['getLastMatchingPosition'](_0x19c521,{'direction':'backward'});return(!_0x1efa37['start']['isEqual'](_0x1188a5)||!_0x1efa37['end']['isEqual'](_0x2159cb))&&(_0x1188a5['isBefore'](_0x2159cb)?_0x1eba88['updateMarker'](_0x9f4144,{'range':_0x1eba88['createRange'](_0x1188a5,_0x2159cb)}):_0x1eba88['removeMarker'](_0x9f4144),!0x0);}function Lt(_0x1048f6){return _0x5e1cbe(_0x1048f6);}function Jt(_0x514645){const _0x5729e3=_0x514645['start']['nodeAfter'];return _0x5729e3&&_0x5729e3['is']('element');}function Kt(_0x355668){return Pt(_0x355668)||function(_0x557103){return _0x557103['start']['parent']==_0x557103['end']['nodeBefore']&&_0x557103['start']['isAtEnd'];}(_0x355668);}function Ht(_0x1820c2,_0x10482d){try{const _0x8ad49f=_0x1820c2['getRange']();for(const _0x9b489e of _0x10482d)if(_0x1820c2!==_0x9b489e&&_0x8ad49f&&_0x8ad49f['isIntersecting'](_0x9b489e['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x2639bc,_0x33f451){return null==_0x2639bc['end']['nodeBefore']&&_0x2639bc['end']['parent']==_0x2639bc['start']['nodeAfter']?zt(_0x2639bc['start']['nodeAfter'],_0x33f451):_0x2639bc;}function zt(_0x6932cc,_0x2f6f21){const _0x49b0ec=_0x2f6f21['schema']['isObject'](_0x6932cc)||_0x2f6f21['schema']['isSelectable'](_0x6932cc);return _0x2f6f21['createRange'](_0x2f6f21['createPositionAt'](_0x6932cc,'before'),_0x49b0ec?_0x2f6f21['createPositionAfter'](_0x6932cc):_0x2f6f21['createPositionAt'](_0x6932cc,'end'));}function Wt(_0x1decd9,_0x5104ca,_0x54b55c,_0x29cb91){return!!Qt(_0x1decd9,_0x5104ca)&&_0x54b55c['end']['isEqual'](_0x29cb91['start']);}function Qt(_0x44f0b6,_0x402936){if(!_0x44f0b6['_isDataLoaded']||!_0x402936['_isDataLoaded'])return!0x1;const _0x3e044e=new Set(Object['keys'](_0x44f0b6['attributes'])),_0x29b842=new Set(Object['keys'](_0x402936['attributes']));if(_0x3e044e['delete']('groupId'),_0x29b842['delete']('groupId'),0x0==_0x3e044e['size']&&0x0==_0x29b842['size'])return!0x0;if(_0x3e044e['size']!=_0x29b842['size'])return!0x1;const _0x23872e={..._0x44f0b6['attributes']},_0x2f8588={..._0x402936['attributes']};return delete _0x23872e['groupId'],delete _0x2f8588['groupId'],JSON['stringify'](_0x23872e)==JSON['stringify'](_0x2f8588);}function Xt(_0x255367,_0x547534){const _0x47746f=Yt(_0x255367['attributes']),_0x9c0cc7=Yt(_0x547534);if(!_0x255367['_isDataLoaded'])return!0x1;for(const _0x1609dd of Object['keys'](_0x9c0cc7))if(!_0x1b0f7b(_0x47746f[_0x1609dd],_0x9c0cc7[_0x1609dd]))return!0x1;return!0x0;}function Yt(_0x2e2d3f){const _0x4a5d69=Object['assign']({},_0x2e2d3f);return delete _0x4a5d69['skipNestingCheck'],delete _0x4a5d69['tablePasteChainId'],_0x4a5d69;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0xd6634d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1de690,_0x2946de,_0x1427bc,_0x1601a9){super(),this['model']=_0x2946de,this['view']=_0x1427bc,this['commentThreadController']=_0x1601a9,this['_editor']=_0x1de690,this['_acceptCommand']=_0x1de690['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1de690['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3bbd05,_0x98c5f4)=>_0x3bbd05||_0x98c5f4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x59ef81=>_0x59ef81&&this['_editor']['model']['canEditAt'](_0x2946de['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x519d2c=>_0x519d2c&&this['_editor']['model']['canEditAt'](_0x2946de['getRanges']())),this['_pendingAction']=null,_0x1427bc['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1427bc,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1427bc,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1427bc,'change:isDirty',()=>{_0x1427bc['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 _0x2f3449=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2f3449);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x22a891{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x375545,_0x44d78f,_0x231b43,_0xff3680){super(_0x375545),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x33f216(_0x375545,o(_0x375545,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x44d78f['authoredAt']),this['bind']('authoredAt')['to'](_0x44d78f),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',_0x44d78f,'authoredAt',this,'descriptionParts',(_0x44dc08,_0x542331,_0x41f07f)=>{const _0x4964ce=_0x41f07f['map'](_0xafe4a4=>ls(_0xafe4a4['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x44dc08-0x1,_0x44d78f['author']['name'],_0x542331?_0xff3680['formatDateTime'](_0x542331):'',new DOMParser()['parseFromString'](_0x4964ce,'text/html')['body']['textContent']]);}),this['focusables']=new _0xbd65c6(),this['focusTracker']=new _0x3daa71(),this['keystrokes']=new _0x2aaaf1(),this['focusCycler']=new _0x3148ca({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3dfff5=>_0x3dfff5['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x44d78f,this['_localUser']=_0x231b43,this['_config']=_0xff3680,_0xff3680['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x19b49f(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1894ff}=this['_config'];this['commentsListView']=new _0x1894ff(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',_0x38ffd4=>_0x38ffd4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x347f76,_0x410fc4)=>_0x347f76||!!_0x410fc4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x39a995}=this['_config'],_0x3a862b=new _0x39a995(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x15d382=_0x3a862b['commentInputView'];return _0x3a862b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x15d382,'value',(_0x59d6a8,_0x3f8aa1,_0x4548f2)=>!!_0x4548f2||_0x59d6a8&&!_0x3f8aa1),_0x15d382['on']('submit',(_0x3a6bc4,_0x4883e7)=>{this['fire']('addComment',_0x4883e7),_0x15d382['editor']['setData']('');}),_0x15d382['on']('cancel',()=>this['focus']()),_0x15d382['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3a862b;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x23d4be,_0x2ef1c6,_0x306811,_0x2ff76a){super(_0x23d4be,_0x2ef1c6,_0x306811,_0x2ff76a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1693d0=>_0x1693d0&&_0x1693d0[0x0]?_0x1693d0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x20ce73,_0x50b0bf)=>{let _0x2c644d='';for(const _0x5a7c48 of _0x20ce73)_0x2c644d+='<p>'+ls(_0x5a7c48['content'],_0x5a7c48['color'])+'</p>';return _0x50b0bf?_0x2c644d:_0x505d21(_0x2c644d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2ff76a['SuggestionView'](_0x23d4be,_0x2ef1c6,{'formatDateTime':_0x2ff76a['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 _0x57c285=this['bindTemplate'],_0x458ebb=[this['suggestionView']];return this['commentsListView']&&_0x458ebb['push'](this['commentsListView']),this['commentThreadInputView']&&_0x458ebb['push'](this['commentThreadInputView']),_0x458ebb['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x57c285['if']('isActive','ck-suggestion-wrapper--active'),_0x57c285['to']('type',_0x126174=>'ck-suggestion-'+_0x126174),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':_0x57c285['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x458ebb};}['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 _0x22a891{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5cd23b,_0x398ef2,_0x55786e){super(_0x5cd23b),this['_model']=_0x398ef2,this['_config']=_0x55786e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x398ef2),this['acceptButton']=this['_createButton'](o(_0x5cd23b,'Accept\x20suggestion'),_0x508ffc,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5cd23b,'Discard\x20suggestion'),_0x24ebb5,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4fc546(_0x5cd23b,_0x398ef2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xbd65c6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3daa71(),this['keystrokes']=new _0x2aaaf1(),this['focusCycler']=new _0x3148ca({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x552e66=>_0x552e66['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4ab29e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4ab29e['innerHTML']=this['description'],this['on']('change:description',(_0x5e928c,_0x39e975,_0x47255b)=>{_0x4ab29e['innerHTML']=_0x47255b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x290a8d=this['bindTemplate'],_0x3a3501=[{'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':_0x290a8d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x290a8d['to']('authoredAt',_0x1a383e=>this['_config']['formatDateTime'](_0x1a383e))}]}]},{'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']&&_0x3a3501['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':_0x3a3501}]};}['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'](_0x194150,_0x2b735c,_0x194995,_0x5333c8,_0x5cb6b7){const _0x5e191f=new _0x5daea8(this['locale']);return _0x5e191f['set']({'label':_0x194150,'icon':_0x2b735c,'tooltip':!0x0,'tooltipPosition':_0x5cb6b7}),_0x5e191f['extendTemplate']({'attributes':{'class':_0x194995}}),_0x5e191f['on']('execute',()=>{this['fire'](_0x5333c8,this['_model']['id']);}),_0x5e191f;}['_setupKeyboardNavigation'](){const _0xe4c5a3=this['element'];this['keystrokes']['listenTo'](_0xe4c5a3);for(const _0x51c0b9 of this['focusables'])this['focusTracker']['add'](_0x51c0b9['element']),this['keystrokes']['listenTo'](_0x51c0b9['element']);this['keystrokes']['set']('enter',(_0x300269,_0x574cc0)=>{_0xe4c5a3===_0x300269['target']&&(this['focusCycler']['focusFirst'](),_0x574cc0());}),this['keystrokes']['set']('esc',(_0x22b1b1,_0x5a4936)=>{_0xe4c5a3!==_0x22b1b1['target']&&(this['focus'](),_0x5a4936());});}}class u extends _0x3d8ee5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x2dd144,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e07fe){super(_0x5e07fe),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2cf5f5=this['editor']['config'];_0x2cf5f5['define']('trackChanges.SuggestionThreadView',fe),_0x2cf5f5['define']('trackChanges.SuggestionView',we),_0x2cf5f5['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2cf5f5['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3a6455,_0x369a9f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3f2849,_0x443a1f]of this['_handleControllerBuffer']){const _0x34a210=this['_suggestionToController']['has'](_0x3f2849);_0x34a210||_0x443a1f?_0x34a210&&_0x443a1f&&this['_destroyController'](_0x3f2849):this['_initializeController'](_0x3f2849);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3a6455,_0x369a9f);}['init'](){const _0x290c19=this['editor'],_0x346a89=_0x290c19['plugins']['get']('TrackChangesEditing'),_0x11ed4d=_0x290c19['plugins']['get']('Annotations'),_0x2406a6=_0x290c19['plugins']['get']('EditorAnnotations'),_0x3390ab=_0x290c19['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2406a6['addSourceCollector'](()=>{const _0xbf8a71=[];for(const [_0x6472af,_0x224e9f]of Array['from'](this['_suggestionToController'])){const _0x5e274e=_0x6472af['getAllAdjacentSuggestions'](),_0x375f57=[];for(const _0x318b5b of _0x5e274e){if(!_0x318b5b['isInContent'])continue;if(_0x318b5b['isMultiRange']){_0x375f57['push'](..._0x318b5b['getRanges']());continue;}const _0xb28965=_0x318b5b['getFirstRange']();if(_0x375f57['length']>0x0){const _0x245aa0=_0x375f57[0x0]['getJoined'](_0xb28965);if(_0x245aa0){_0x375f57[0x0]=_0x245aa0;continue;}}_0x375f57['push'](_0xb28965);}_0xbf8a71['push']([_0x224e9f['view'],_0x375f57]);}return _0xbf8a71;}),this['listenTo'](_0x346a89,'suggestionLoaded',(_0x354a40,_0x5b6872)=>{this['listenTo'](_0x5b6872,'change:previous',(_0x1e4bdd,_0x5ccb1c,_0x23fcaf,_0x394075)=>{_0x5b6872['isInContent']&&(null==_0x23fcaf?(this['_updateController'](_0x394075['head']),this['_handleSuggestionControllerDelayed'](_0x5b6872,!0x1)):(this['_updateController'](_0x23fcaf['head']),null==_0x394075&&this['_handleSuggestionControllerDelayed'](_0x5b6872,!0x0)));}),null!==_0x5b6872['previous']?this['_updateController'](_0x5b6872['head']):this['_handleSuggestionControllerDelayed'](_0x5b6872,!0x1);}),this['listenTo'](_0x346a89,'suggestionUnloaded',(_0x48f788,_0x46a016,_0x1dce81)=>{this['stopListening'](_0x46a016,'change:previous'),this['_handleControllerBuffer']['delete'](_0x46a016),this['_suggestionToController']['has'](_0x46a016)&&this['_destroyController'](_0x46a016),_0x1dce81&&this['_updateController'](_0x1dce81['head']);}),this['listenTo'](_0x346a89,'suggestionChanged',(_0x145966,_0x244aee)=>{this['_updateController'](_0x244aee);}),this['listenTo'](_0x11ed4d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3390ab,'addComment',(_0x2c22e1,{threadId:_0x77488a,isFromAdapter:_0x39ce86})=>{if(_0x39ce86||!_0x346a89['hasSuggestion'](_0x77488a))return;const _0x36d979=_0x346a89['getSuggestion'](_0x77488a);this['_suggestionToController']['get'](_0x36d979)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x568f86=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d7d09;for(const _0x2611d1 in _0x568f86){const _0x402587=_0x2611d1,_0x35200f=_0x568f86[_0x402587];if('trackChangesLicenseKeyValid'==_0x35200f||'trackChangesLicenseKeyInvalid'==_0x35200f||'trackChangesLicenseKeyExpired'==_0x35200f||'trackChangesLicenseKeyDomainLimit'==_0x35200f||'trackChangesLicenseKeyNotAllowed'==_0x35200f||'trackChangesLicenseKeyEvaluationLimit'==_0x35200f||'trackChangesLicenseKeyTrialLimit'==_0x35200f||'trackChangesLicenseKeyUsageLimit'==_0x35200f){delete _0x568f86[_0x402587],_0x5d7d09=_0x35200f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5d7d09&&_0x568f86['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5d7d09&&_0x568f86['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5d7d09&&_0x568f86['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5d7d09&&_0x568f86['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5d7d09&&_0x568f86['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5d7d09&&_0x568f86['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5d7d09&&_0x568f86['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5c9d21){const _0x16205e=this['_suggestionToController']['get'](_0x5c9d21);if(!_0x16205e)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x16205e['view'])||null;}['getSuggestionForAnnotation'](_0x55cf8f){const _0x5940cc=this['_viewToController']['get'](_0x55cf8f['innerView']);return _0x5940cc?_0x5940cc['model']:null;}['_refreshActiveMarkers'](){const _0x5b7f22=this['editor']['plugins']['get']('Annotations'),_0x51379a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a1281=Array['from'](_0x5b7f22['activeAnnotations'],_0x493c45=>_0x493c45['innerView'])['filter'](_0x301ca9=>this['_viewToController']['has'](_0x301ca9)),_0x3fad09=[];for(const _0x33a4a6 of _0x5a1281){const _0x1c1180=this['_viewToController']['get'](_0x33a4a6)['model']['getAllAdjacentSuggestions']();_0x3fad09['push'](..._0x1c1180['reduce']((_0x572164,_0x49654e)=>[..._0x572164,..._0x49654e['getMarkerNames']()],[]));}_0x51379a['activeMarkers']=_0x3fad09;}['_addUIComponentsToFactory'](){const _0x11f7fb=this['editor'],_0x5cfd89=_0x11f7fb['locale'],_0x466617=o(_0x5cfd89,'Track\x20changes'),_0x3e92e2=new _0x192251([{'type':'switchbutton','model':new _0x52ebac({'withText':!0x0,'isToggleable':!0x0,'label':_0x466617,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x52ebac({'withText':!0x0,'label':o(_0x5cfd89,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x52ebac({'withText':!0x0,'label':o(_0x5cfd89,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x52ebac({'withText':!0x0,'label':o(_0x5cfd89,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x52ebac({'withText':!0x0,'label':o(_0x5cfd89,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x11f7fb['plugins']['has']('TrackChangesPreview')&&_0x3e92e2['addMany']([{'type':'separator'},{'type':'button','model':new _0x52ebac({'withText':!0x0,'label':o(_0x5cfd89,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x326d15 of _0x3e92e2)if(ke(_0x326d15)){const _0x4c67ff=_0x11f7fb['commands']['get'](_0x326d15['model']['commandName']);_0x326d15['model']['bind']('isOn','isEnabled')['to'](_0x4c67ff,'value','isEnabled');}_0x11f7fb['ui']['componentFactory']['add']('trackChanges',_0x505c69=>this['_createToolbarButton'](_0x505c69,_0x3e92e2,_0x466617)),_0x11f7fb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2086d7=>this['_createMenuBarMenu'](_0x2086d7,_0x3e92e2,_0x466617));}['_createToolbarButton'](_0x1725a0,_0x1c2336,_0x104c37){const _0x594b50=_0x4f6be9(_0x1725a0,_0x5b53e8),_0x3c183f=this['editor']['commands']['get']('trackChanges');_0x594b50['buttonView']['set']({'tooltip':_0x104c37,'label':_0x104c37,'icon':_0x20e9d8}),_0x594b50['buttonView']['bind']('isOn')['to'](_0x3c183f,'value'),_0x594b50['buttonView']['on']('execute',()=>{_0x3c183f['execute'](),this['editor']['editing']['view']['focus']();}),_0x2f4cec(_0x594b50,_0x1c2336,{'role':'menu'});const _0x53bfa1=[];for(const _0x58b4a4 of _0x1c2336)ke(_0x58b4a4)&&_0x53bfa1['push'](this['editor']['commands']['get'](_0x58b4a4['model']['commandName']));const _0x52afde=_0x594b50['buttonView'];return _0x52afde['actionView']['unbind']('isEnabled'),_0x52afde['arrowView']['unbind']('isEnabled'),_0x52afde['actionView']['bind']('isEnabled')['to'](_0x3c183f,'isEnabled'),_0x52afde['arrowView']['bind']('isEnabled')['toMany'](_0x53bfa1,'isEnabled',(..._0x125ddf)=>_0x125ddf['some'](_0x5d05cb=>_0x5d05cb)),_0x594b50['on']('execute',_0x360087=>{this['editor']['execute'](_0x360087['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x594b50;}['_createMenuBarMenu'](_0x17c85e,_0x35d7c8,_0x45b026){const _0x1fcaf6=new _0x43cd12(_0x17c85e),_0x34ca98=this['editor']['commands']['get']('trackChanges');_0x1fcaf6['buttonView']['set']({'label':_0x45b026,'icon':_0x20e9d8});const _0x13b567=new _0x46bdb0(_0x17c85e);for(const _0x5c751c of _0x35d7c8){if('separator'==_0x5c751c['type']){_0x13b567['items']['add'](new _0x26f926(_0x17c85e));continue;}const _0x2b0cea=new _0x2cc587(_0x17c85e,_0x1fcaf6),_0x2e6540=new _0x2b342c(_0x17c85e),_0x1e13ae=_0x5c751c['model'];_0x2e6540['bind'](...Object['keys'](_0x1e13ae))['to'](_0x1e13ae),_0x2e6540['delegate']('execute')['to'](_0x1fcaf6),_0x2e6540['on']('execute',()=>{this['editor']['execute'](_0x1e13ae['commandName']),this['editor']['editing']['view']['focus']();}),_0x2b0cea['children']['add'](_0x2e6540),_0x13b567['items']['add'](_0x2b0cea);}return _0x1fcaf6['bind']('isEnabled')['to'](_0x34ca98,'isEnabled'),_0x1fcaf6['panelView']['children']['add'](_0x13b567),_0x1fcaf6;}['_initializeController'](_0x1c6ee6){const _0x207845=this['editor'],_0x1e0045=_0x207845['config'],_0x3e7fa8=_0x207845['plugins']['get']('Annotations'),_0x445928=_0x207845['plugins']['get']('CommentsRepository'),_0x2da564=_0x207845['plugins']['get']('EditorAnnotations'),_0x4b21eb=_0x207845['plugins']['get'](_0x2dd144)['me'],_0x274c5e=_0x1e0045['get']('trackChanges')['SuggestionThreadView'],_0x1096cc=_0x1e0045['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x14f4a9,CommentThreadInputView:_0x443296}=_0x207845['plugins']['get']('CommentsUI');let _0x3c0639,_0x2101fa,_0x55e590;this['_annotationViews']['has'](_0x1c6ee6['id'])?(_0x2101fa=this['_annotationViews']['get'](_0x1c6ee6['id']),_0x3c0639=_0x2101fa['mainView']):(_0x3c0639=new _0x274c5e(_0x207845['locale'],_0x1c6ee6,_0x4b21eb,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1e0045['get']('comments.editorConfig'),'licenseKey':_0x1e0045['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1e0045['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1e0045['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1e0045['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2f1134(_0x1e0045['get']('locale'),_0x207845['locale']),'CommentView':_0x1e0045['get']('comments')['CommentView'],'CommentsListView':_0x14f4a9,'CommentThreadInputView':_0x443296,'SuggestionView':_0x1096cc}),_0x3c0639['suggestionView']['acceptButton']['on']('execute',()=>{_0x207845['editing']['view']['focus']();}),_0x3c0639['suggestionView']['discardButton']['on']('execute',()=>{_0x207845['editing']['view']['focus']();}),_0x2101fa=_0x3e7fa8['createAnnotationView'](this['editor']['locale'],_0x3c0639),_0x2101fa['bind']('isDirty')['to'](_0x3c0639,'isDirty'),_0x2101fa['bind']('length')['to'](_0x3c0639),_0x2101fa['bind']('type')['to'](_0x3c0639,'type',_0x2b31a7=>'suggestion-'+_0x2b31a7),_0x3c0639['on']('escape',()=>{_0x55e590['fire']('escape');}),this['_annotationViews']['set'](_0x1c6ee6['id'],_0x2101fa));const _0x30189e=_0x445928['createCommentThreadController'](_0x1c6ee6['commentThread'],_0x3c0639),_0xe619bb=new pe(_0x207845,_0x1c6ee6,_0x3c0639,_0x30189e),_0x146890=_0x1c6ee6['getAllAdjacentSuggestions']()['filter'](_0x4b136d=>_0x4b136d['isInContent']);_0x3c0639['descriptionParts']=_0x207845['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x146890),this['_suggestionToController']['set'](_0x1c6ee6,_0xe619bb),this['_viewToController']['set'](_0x3c0639,_0xe619bb);const _0x26cd24=()=>{const _0x4ef563=[],_0x1c3622=_0x1c6ee6['getAllAdjacentSuggestions']()['filter'](_0x39c57f=>_0x39c57f['isInContent']);for(const _0xb86f1a of _0x1c3622)_0x4ef563['push'](..._0xb86f1a['getMarkers']());return _0x16590b(_0x207845['editing'],_0x4ef563);};_0x55e590=_0x3e7fa8['createAnnotation']({'view':_0x2101fa,'target':_0x26cd24,'type':()=>'suggestion-'+_0xe619bb['view']['type'],'isVisible':!!_0x26cd24()}),_0x445928['_bindAnnotationToEditors'](_0x3c0639,_0x55e590),_0x3e7fa8['add'](_0x55e590),_0x2da564['registerAnnotation'](_0x55e590);}['_destroyController'](_0x386d24){const _0x25ab96=this['editor']['plugins']['get']('CommentsRepository'),_0x55c8e3=this['editor']['plugins']['get']('Annotations'),_0x40fd13=this['_suggestionToController']['get'](_0x386d24),_0xf39d66=_0x40fd13['view'],_0x31aa24=_0x55c8e3['getByInnerView'](_0xf39d66);_0x25ab96['_unbindEditors'](_0xf39d66),_0x31aa24&&_0x55c8e3['remove'](_0x31aa24),this['_suggestionToController']['delete'](_0x386d24),this['_viewToController']['delete'](_0xf39d66),_0x40fd13['destroy']();}['_updateController'](_0x2ea812){if(!_0x2ea812['isInContent']||!this['_suggestionToController']['has'](_0x2ea812))return;const _0x1a54b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x274256=this['_suggestionToController']['get'](_0x2ea812),_0x55d054=_0x2ea812['getAllAdjacentSuggestions']();_0x274256['view']['descriptionParts']=_0x1a54b4['descriptionFactory']['getDescriptions'](_0x55d054);}['destroy'](){for(const _0xee461b of this['_suggestionToController']['keys']())this['_destroyController'](_0xee461b);for(const _0x5061c6 of this['_annotationViews']['values']())_0x5061c6['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2bfd5){return'model'in _0x2bfd5;}class Fe extends _0x3d8ee5{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4781b2){this['editor']['plugins']['get'](d)['adapter']=_0x4781b2;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x166277){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x166277);}['getSuggestions']({skipNotAttached:_0x46bac6=!0x1,toJSON:_0x182e6c=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x46bac6,'toJSON':_0x182e6c});}['getSuggestion'](_0xb53b93){return this['editor']['plugins']['get'](d)['getSuggestion'](_0xb53b93);}}const p=['Pagination'];class re extends _0x3d8ee5{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3b6d9f=this['editor'];if(_0x3b6d9f['config']['define']('trackChangesData.editorCreator',_0x5d976b=>{const _0x20f036=_0x3b6d9f['model']['document']['getRootNames']()['reduce']((_0x4b1b6c,_0x49873f)=>(_0x4b1b6c[_0x49873f]='',_0x4b1b6c),{});return _0x3b6d9f['constructor']['create'](_0x20f036,_0x5d976b);}),'function'!=typeof _0x3b6d9f['config']['get']('trackChangesData')['editorCreator'])throw new _0x1f6b9a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x543734){return P(this['editor'],!0x0,_0x543734);}['getDataWithDiscardedSuggestions'](_0x44f7c9){return P(this['editor'],!0x1,_0x44f7c9);}}class Ge extends _0x3d8ee5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f9caa){function _0x131d1f(_0x35f666){return _0x35f666['map'](_0x5375d1=>String['fromCharCode'](_0x5375d1))['join']('');}super(_0x4f9caa),this['result']='end',_0x4f9caa[_0x131d1f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x131d1f([0x76,0x69,0x65,0x77])][_0x131d1f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x131d1f([0x61,0x75,0x74,0x6f]),_0x4f9caa[_0x131d1f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x131d1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x131d1f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x131d1f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x131d1f([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 He(_0x467d5d){return void 0x0!==_0x467d5d['getRootsAttributes'];}async function P(_0x31209f,_0x2005e3,_0x131ef4){const _0x27b1f0=_0x2d83d6(_0x31209f,p);_0x27b1f0['plugins']['push'](d,Ge),_0x27b1f0['rootsAttributes']=He(_0x31209f)?_0x31209f['getRootsAttributes']():void 0x0;const _0x4405ce=document['createDocumentFragment'](),_0x15e60a=_0x31209f['config']['get']('trackChangesData')['editorCreator'],_0x250e6b=await _0x15e60a(_0x27b1f0,()=>function(_0x433055){const _0x4092c4=document['createElement']('div');return _0x433055['appendChild'](_0x4092c4),_0x4092c4;}(_0x4405ce));!function(_0x447397,_0x9d6a73){const _0x578288=_0x447397['model']['document']['getRootNames']()['reduce']((_0x42bc36,_0x5f51fd)=>(_0x42bc36[_0x5f51fd]=_0x447397['data']['get']({'rootName':_0x5f51fd}),_0x42bc36),{}),_0x534ab0=_0x447397['plugins']['get']('Users')['users']['map'](_0x28ca20=>({'id':_0x28ca20['id'],'name':_0x28ca20['name']})),_0x4c131c=_0x447397['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x571231=_0x447397['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3a47ed=_0x9d6a73['plugins']['get']('Users'),_0x3719c0=_0x9d6a73['plugins']['get']('TrackChangesEditing'),_0x1ac4e4=_0x9d6a73['plugins']['get']('CommentsRepository');for(const _0x36e337 of _0x1ac4e4['getCommentThreads']())_0x36e337['remove']();for(const _0x544524 of _0x534ab0)_0x3a47ed['getUser'](_0x544524['id'])||_0x3a47ed['addUser'](_0x544524);_0x3a47ed['me']||_0x3a47ed['useAnonymousUser']();for(const _0x32549e of _0x571231)_0x1ac4e4['addCommentThread'](_0x32549e);for(const _0x27b77c of _0x4c131c)_0x3719c0['addSuggestionData'](_0x27b77c);_0x9d6a73['data']['set'](_0x578288);}(_0x31209f,_0x250e6b),_0x250e6b['execute'](_0x2005e3?'acceptAllSuggestions':'discardAllSuggestions');const _0x34b51d=He(_0x250e6b)?_0x250e6b['getFullData'](_0x131ef4):_0x250e6b['data']['get'](_0x131ef4);return await _0x250e6b['destroy'](),_0x34b51d;}class Me extends _0x22a891{['options'];constructor(_0x485e71,_0x47c09c){super(_0x485e71),this['options']=_0x47c09c,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'](_0x5bd550,_0x1f1c62){if(!this['element'])return;const _0x30315e=[];for(const [_0x28dce4,_0x349de6]of _0x5bd550){const _0xc41b9b=document['createElement']('div');_0xc41b9b['setAttribute']('data-ck-root-name',_0x28dce4),_0xc41b9b['className']=_0x349de6['classes']+'\x20ck-track-changes-preview__root-container',_0xc41b9b['innerHTML']=_0x349de6['content'],_0x30315e['push'](_0xc41b9b);}_0x1f1c62(this['element'],_0x30315e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3b1c01{constructor(_0x53f92c){super(_0x53f92c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5197f4=this['editor'],_0x3d98d1=_0x5197f4['locale'],_0xe289de=_0x5197f4['plugins']['get']('Dialog');let _0x43188d;const _0x27d19a=function(_0x50dc3b){const _0x4a4560={};if('editables'in _0x50dc3b['ui']['view']){for(const [_0x290ccb,_0x41999a]of Object['entries'](_0x50dc3b['ui']['view']['editables']))_0x4a4560[_0x290ccb]=_0x41999a['element'];}else _0x4a4560[_0x50dc3b['model']['document']['getRootNames']()[0x0]]=_0x50dc3b['ui']['view']['editable']['element'];return _0x4a4560;}(_0x5197f4),_0x2b77c3=function(_0x481ebd){let _0x571a7a=0x0;for(const _0x3f7dea of Object['values'](_0x481ebd))_0x571a7a=Math['max'](_0x571a7a,_0x3f7dea['getBoundingClientRect']()['width']);let _0x5ebdba=0x0;for(const _0x2a2e35 of Object['values'](_0x481ebd))_0x5ebdba+=_0x2a2e35['getBoundingClientRect']()['height'];const _0x33ebcb=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x221119=Math['min'](_0x5ebdba,_0x33ebcb);return{'width':_0x571a7a,'height':_0x221119};}(_0x27d19a);_0xe289de['show']({'id':'finalContentPreview','title':o(_0x3d98d1,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3d98d1,{'dialogRects':_0x2b77c3}),'onHide':()=>{_0x43188d['detachFromDom']();},'onShow':()=>{_0x5197f4['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x486644=>{const _0x2650fc=this['_standarizeRootsData'](_0x486644,_0x5197f4,_0x27d19a);_0xe289de['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2650fc,_0x5197f4['config']['get']('trackChanges.preview.renderFunction'));}),_0x43188d=new _0x39fef5(_0x3d98d1,[_0xe289de['view']]),_0x43188d['attachToDom'](),_0x43188d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5197f4['once']('destroy',()=>{_0x43188d['detachFromDom']();});const _0x1994c4=_0xe289de['view']['headerView']['class'];_0xe289de['view']['headerView']['class']=_0x1994c4?_0x1994c4+'\x20ck-reset_all':'ck-reset_all',_0xe289de['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xe289de['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x181e10=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5f0ca1=_0x181e10['previewMode'],_0x26fd3a={};if('$labels'===_0x5f0ca1){for(const _0x1dfa43 of _0x181e10['getMergeFieldsIds']())_0x26fd3a[_0x1dfa43]=_0x181e10['getLabel'](_0x1dfa43)||_0x1dfa43;}else{const _0x3d84e2='$defaultValues'===_0x5f0ca1?_0x181e10['getDefaultValues']():_0x181e10['getDataSetValues'](_0x5f0ca1,!0x0);for(const _0x47d8d3 of Object['entries'](_0x3d84e2)){const [_0x4b20fe,_0x35c8bb]=_0x47d8d3;_0x26fd3a[_0x4b20fe]=null!==_0x35c8bb?_0x35c8bb:_0x181e10['getLabel'](_0x4b20fe)||_0x4b20fe;}}return{'mergeFieldsData':_0x26fd3a};}['_standarizeRootsData'](_0x39fae2,_0x47c0da,_0xe99a19){let _0x1e0062;if('string'==typeof _0x39fae2){const _0x1fb3ad=_0x47c0da['model']['document']['getRootNames']()[0x0];_0x1e0062={[_0x1fb3ad]:_0x39fae2};}else _0x1e0062=_0x39fae2;const _0xb97d1=this['_fixMediaEmbeds'](_0x1e0062,_0x47c0da),_0x4252c7=function(_0x1761c3,_0x21522c){for(const [_0x24354b,_0x3202c9]of _0x1761c3)_0x3202c9['classes']=_0x21522c[_0x24354b]['classList']['value']['replace']('ck-focused','');return _0x1761c3;}(this['_sortRoots'](_0x47c0da)['reduce']((_0xf85554,_0x2b1081)=>(_0xf85554['push']([_0x2b1081,{'content':_0xb97d1[_0x2b1081],'classes':''}]),_0xf85554),[]),_0xe99a19);return _0x4252c7;}['_fixMediaEmbeds'](_0x193cd7,_0x4ad683){if(!_0x4ad683['plugins']['has']('MediaEmbedEditing'))return _0x193cd7;const _0x15f5aa=_0x4ad683['plugins']['get']('MediaEmbedEditing');for(const [_0x3ed243,_0x56be4d]of Object['entries'](_0x193cd7)){const _0x245386=document['createElement']('div');_0x245386['innerHTML']=_0x56be4d,(_0x245386['querySelectorAll']('figure.media')['forEach'](_0x39bde3=>{const _0x331cd6=_0x39bde3['querySelector']('oembed');if(_0x331cd6){const _0x11258a=_0x331cd6['getAttribute']('url');if(_0x11258a){const _0x195d7c=_0x15f5aa['registry']['getMediaViewElement'](new _0x5383b0(_0x4ad683['editing']['view']['document']),_0x11258a,{'elementName':'','renderForEditingView':!0x0}),_0x35e0e6=document['createElement']('div');_0x35e0e6['classList']['add']('ck-media__wrapper'),_0x195d7c['render'](_0x35e0e6,_0x4ad683['editing']['view']['domConverter']),_0x331cd6['replaceWith'](_0x35e0e6);}}}),_0x193cd7[_0x3ed243]=_0x245386['innerHTML']);}return _0x193cd7;}['_sortRoots'](_0x3c7fc3){if(!function(_0x37a91e){return void 0x0!==_0x37a91e['getRootsAttributes'];}(_0x3c7fc3))return _0x3c7fc3['model']['document']['getRootNames']();const _0x2cdad0=[],_0xd4cc7e=new Map();for(const _0x3b4a5f of _0x3c7fc3['model']['document']['getRootNames']()){const _0x5c81e5=_0x3c7fc3['editing']['view']['getDomRoot'](_0x3b4a5f)['getClientRects']()['item'](0x0);_0x2cdad0['push'](_0x3b4a5f),_0xd4cc7e['set'](_0x3b4a5f,_0x5c81e5);}return _0x2cdad0['sort']((_0x15df44,_0x46c68d)=>{const _0x190a42=_0xd4cc7e['get'](_0x15df44),_0x2bb444=_0xd4cc7e['get'](_0x46c68d);return _0x190a42['y']-_0x2bb444['y']||_0x190a42['x']-_0x2bb444['x'];}),_0x2cdad0;}}class $e extends _0x3d8ee5{static get['requires'](){return[re,_0x5e4795];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5cce8d){super(_0x5cce8d),_0x5cce8d['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5cce8d['config']['define']('trackChanges.preview.renderFunction',(_0x36f2e4,_0x35f472)=>{for(const _0x45a2e2 of _0x35f472)_0x36f2e4['appendChild'](_0x45a2e2);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};