@ckeditor/ckeditor5-track-changes 47.4.0-alpha.3 → 47.4.0-alpha.5

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 (230) 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/ai.js +1 -1
  158. package/src/integrations/aiassistant.js +1 -1
  159. package/src/integrations/aiquickactions.js +1 -1
  160. package/src/integrations/alignment.js +1 -1
  161. package/src/integrations/basicstyles.js +1 -1
  162. package/src/integrations/blockquote.js +1 -1
  163. package/src/integrations/bookmark.js +1 -1
  164. package/src/integrations/casechange.js +1 -1
  165. package/src/integrations/ckbox.js +1 -1
  166. package/src/integrations/codeblock.js +1 -1
  167. package/src/integrations/comments.js +1 -1
  168. package/src/integrations/deletecommand.js +1 -1
  169. package/src/integrations/emoji.js +1 -1
  170. package/src/integrations/entercommand.js +1 -1
  171. package/src/integrations/findandreplace.js +1 -1
  172. package/src/integrations/font.js +1 -1
  173. package/src/integrations/footnotes.js +1 -1
  174. package/src/integrations/formatpainter.js +1 -1
  175. package/src/integrations/heading.js +1 -1
  176. package/src/integrations/highlight.js +1 -1
  177. package/src/integrations/horizontalline.js +1 -1
  178. package/src/integrations/htmlembed.js +1 -1
  179. package/src/integrations/image.js +1 -1
  180. package/src/integrations/imagereplace.js +1 -1
  181. package/src/integrations/imagestyle.js +1 -1
  182. package/src/integrations/importword.js +1 -1
  183. package/src/integrations/indent.js +1 -1
  184. package/src/integrations/inputcommand.js +1 -1
  185. package/src/integrations/legacylist.js +1 -1
  186. package/src/integrations/legacylistproperties.js +1 -1
  187. package/src/integrations/lineheight.js +1 -1
  188. package/src/integrations/link.js +1 -1
  189. package/src/integrations/list.js +1 -1
  190. package/src/integrations/listproperties.js +1 -1
  191. package/src/integrations/mediaembed.js +1 -1
  192. package/src/integrations/mention.js +1 -1
  193. package/src/integrations/mergefields.js +1 -1
  194. package/src/integrations/multilevellist.js +1 -1
  195. package/src/integrations/pagebreak.js +1 -1
  196. package/src/integrations/paragraph.js +1 -1
  197. package/src/integrations/removeformat.js +1 -1
  198. package/src/integrations/replacesourcecommand.js +1 -1
  199. package/src/integrations/restrictededitingmode.js +1 -1
  200. package/src/integrations/shiftentercommand.js +1 -1
  201. package/src/integrations/standardeditingmode.js +1 -1
  202. package/src/integrations/style.js +1 -1
  203. package/src/integrations/table.js +1 -1
  204. package/src/integrations/tablecaption.js +1 -1
  205. package/src/integrations/tableclipboard.js +2 -2
  206. package/src/integrations/tablecolumnresize.js +1 -1
  207. package/src/integrations/tableheadings.js +1 -1
  208. package/src/integrations/tablelayout.js +1 -1
  209. package/src/integrations/tablemergesplit.js +1 -1
  210. package/src/integrations/tableofcontents.js +1 -1
  211. package/src/integrations/tableproperties.js +1 -1
  212. package/src/integrations/template.js +1 -1
  213. package/src/integrations/title.js +1 -1
  214. package/src/integrations/undo.js +1 -1
  215. package/src/integrations/uploadcare.js +1 -1
  216. package/src/integrations/utils.js +1 -1
  217. package/src/suggestion.js +2 -2
  218. package/src/suggestiondescriptionfactory.js +1 -1
  219. package/src/trackchanges.js +1 -1
  220. package/src/trackchangesdata.js +1 -1
  221. package/src/trackchangesediting.js +1 -1
  222. package/src/trackchangespreview.js +1 -1
  223. package/src/trackchangesui.js +1 -1
  224. package/src/ui/suggestioncontroller.js +2 -2
  225. package/src/ui/view/basesuggestionthreadview.js +1 -1
  226. package/src/ui/view/suggestionthreadview.js +1 -1
  227. package/src/ui/view/suggestionview.js +1 -1
  228. package/src/ui/view/trackchangespreviewview.js +1 -1
  229. package/src/utils/common-translations.js +1 -1
  230. 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 _0x25d0bd,Plugin as _0x2f9a9e,PendingActions as _0x1806c4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2003cb,ObservableMixin as _0xd48f68,uid as _0x47c5b6,priorities as _0x5dcdab,insertToPriorityArray as _0x2101f5,logWarning as _0x404f2d,getEnvKeystrokeText as _0x949a1b,FocusTracker as _0x3fdedd,KeystrokeHandler as _0x13a0a3,Collection as _0x22f62e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x37ec19,IconCancel as _0x4b2fc4,IconTrackChanges as _0x4a91dc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x529a1a,View as _0xda289e,ViewCollection as _0x1ce125,FocusCycler as _0x26c50b,UIModel as _0x5a69d2,createDropdown as _0x4bfa5e,SplitButtonView as _0xd645a8,addListToDropdown as _0x294e4b,MenuBarMenuView as _0x514490,MenuBarMenuListView as _0x2c00d1,ListSeparatorView as _0x582585,MenuBarMenuListItemView as _0x111127,MenuBarMenuListItemButtonView as _0x4851e3,BodyCollection as _0x526a2f,Dialog as _0x456ea4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4ad530,DocumentCompare as _0x26567f,hashObject as _0x1c2930,surroundingMarkersDetector as _0x51a386,FOCUS_ANNOTATION_KEYSTROKE as _0xf91429,AriaDescriptionView as _0x478bd9,setupThreadKeyboardNavigation as _0x30fce3,trimHtml as _0x59ee01,UserView as _0x25b94,LateFocusButtonView as _0x2cf1d2,getDateTimeFormatter as _0xc3f68,getAllMarkersDomElementsSorted as _0x1a9e64,sanitizeEditorConfig as _0x4acd4f}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x16d825,ModelLiveRange as _0xf95a74,ModelLivePosition as _0x4606ea,ViewDowncastWriter as _0x1147a1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x449790,set as _0x440af1,isEqual as _0x41a2af,unset as _0x1985d8,omit as Pt}from'es-toolkit/compat';import{Delete as _0x5dc4fa,Input as _0x166587}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1f2a77}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4a3731}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x25d0bd{['_enabledCommands'];constructor(_0x117e56,_0x5e6b15){super(_0x117e56),this['_enabledCommands']=_0x5e6b15,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 _0x5ef08e of this['editor']['commands']['commands']())_0x5ef08e['affectsData']&&!this['_enabledCommands']['has'](_0x5ef08e)&&_0x5ef08e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4d6fa4 of this['editor']['commands']['commands']())_0x4d6fa4['affectsData']&&!this['_enabledCommands']['has'](_0x4d6fa4)&&_0x4d6fa4['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x25d0bd{['_suggestions'];constructor(_0x492186,_0x120b4d){super(_0x492186),this['_suggestions']=_0x120b4d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x183762){const _0x3cac6d=this['_suggestions']['get'](_0x183762);if(!_0x3cac6d)throw new _0x2003cb('track-changes-accept-suggestion-not-found',this);const _0x331556=_0x3cac6d['getRanges']();this['editor']['model']['canEditAt'](_0x331556)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3cac6d);}}class D extends _0x25d0bd{['_suggestions'];constructor(_0x194aed,_0xcd709f){super(_0x194aed),this['_suggestions']=_0xcd709f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3d4eea){const _0x2efea3=this['_suggestions']['get'](_0x3d4eea);if(!_0x2efea3)throw new _0x2003cb('track-changes-discard-suggestion-not-found',this);const _0x1685c4=_0x2efea3['getRanges']();this['editor']['model']['canEditAt'](_0x1685c4)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2efea3);}}function ls(_0x50fc1f,_0x4b3860){let _0x5b5384='';return _0x5b5384+=_0x50fc1f['split']('*')['map']((_0x2b6f21,_0x2dafe9)=>_0x2dafe9%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x2b6f21)+'</span>':rn(_0x2b6f21))['join'](''),_0x4b3860&&(_0x5b5384+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4b3860['value']+'\x22\x20title=\x22'+_0x4b3860['title']+'\x22></span>'),_0x5b5384;}function rn(_0xeada34){const _0x3a20f2=document['createElement']('span');return _0x3a20f2['innerText']=_0xeada34,_0x3a20f2['innerHTML'];}function ts(_0x4cc04c){return _0x4cc04c['sort']((_0x2ab395,_0x159c44)=>'attribute'===_0x2ab395['type']&&'attribute'!==_0x159c44['type']?-0x1:'attribute'!==_0x2ab395['type']&&'attribute'===_0x159c44['type']?0x1:'deletion'==_0x2ab395['type']&&'deletion'!=_0x159c44['type']?-0x1:'deletion'!=_0x2ab395['type']&&'deletion'==_0x159c44['type']?0x1:0x0);}function to(_0x63a87b,_0x2da464){let _0x4ed2b2,_0x13fc36=0x0;const _0x365e85=[],_0xb81fdd=_0x2da464['schema'];for(;_0x13fc36<_0x63a87b['length'];){const _0xb46961=_0x63a87b[_0x13fc36],_0x25c19b=_0x63a87b[_0x13fc36+0x1];_0x4ed2b2||(_0x4ed2b2=_0x2da464['createPositionBefore'](_0xb46961)),cn(_0x2da464,_0xb46961,_0x25c19b)||(_0x365e85['push'](_0x2da464['createRange'](_0x4ed2b2,_0xb81fdd['isObject'](_0xb46961)?_0x2da464['createPositionAfter'](_0xb46961):_0x2da464['createPositionAt'](_0xb46961,'end'))),_0x4ed2b2=null),_0x13fc36++;}return _0x365e85;}function cn(_0x4cfcfc,_0xcefcd1,_0x32802f){if(!_0x32802f)return!0x1;const _0x52b27f=_0x4cfcfc['createPositionAfter'](_0xcefcd1),_0x51a5f4=_0x4cfcfc['createPositionBefore'](_0x32802f);return _0x52b27f['isTouching'](_0x51a5f4);}function rs(_0x12a822,_0x2db033,_0x26691d){for(;_0x26691d['length'];){const _0x485d5b=_0x26691d['splice'](0x0,0x64);_0x12a822['change'](()=>{for(const _0xd74a8f of _0x485d5b)_0xd74a8f['isInContent']&&_0x2db033['execute'](_0xd74a8f['id']);});}}class B extends _0x25d0bd{['_command'];['_suggestions'];constructor(_0x5cfd66,_0x5a3f98,_0x33f618){super(_0x5cfd66),this['_command']=_0x5a3f98,this['_suggestions']=_0x33f618,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4ddf07=Array['from'](this['_suggestions']['values']())['some'](_0x403f6d=>_0x403f6d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4ddf07;}['execute'](){const _0x5dfdd4=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3c5f5d of _0x5dfdd4){const _0x5d378a=_0x3c5f5d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5d378a))return;}rs(this['editor']['model'],this['_command'],_0x5dfdd4);}}class O extends _0x25d0bd{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x42d4e0,_0xf9ff88,_0x234945){super(_0x42d4e0),this['_command']=_0xf9ff88,this['_suggestions']=_0x234945,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x15c4b9=this['editor']['model']['document']['selection'],_0x445049=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x6c85a0,_0xc3ddaf){const _0x27b1f2=Array['from'](_0x6c85a0['getRanges']()),_0x2d7225=new Set();for(const _0x132b80 of _0xc3ddaf)if(_0x132b80['isInContent']){for(const _0x5cc56f of _0x27b1f2)for(const _0x4cce08 of _0x132b80['getRanges']())(_0x5cc56f['isIntersecting'](_0x4cce08)||_0x6c85a0['isCollapsed']&&!_0x132b80['isMultiRange']&&_0x132b80['next']&&_0x4cce08['end']['isTouching'](_0x5cc56f['start']))&&_0x2d7225['add'](_0x132b80);}return _0x2d7225;}(_0x15c4b9,_0x445049),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x51cd02=ts(Array['from'](this['_selectedSuggestions']));for(const _0x84f6d7 of _0x51cd02){const _0x14065a=_0x84f6d7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x14065a))return;}rs(this['editor']['model'],this['_command'],_0x51cd02);}}class x extends/* #__PURE__ -- @preserve */
24
- _0xd48f68(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x523c03,_0x46d8d0){super(),this['id']=_0x46d8d0['id'],this['type']=_0x46d8d0['type'],this['subType']=_0x46d8d0['subType']||null,this['author']=_0x46d8d0['author'],this['creator']=_0x46d8d0['creator']||_0x46d8d0['author'],this['isExternal']=Boolean(_0x46d8d0['attributes']&&_0x46d8d0['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x46d8d0['originalSuggestionId']||null,this['_model']=_0x523c03,this['_onAccept']=_0x46d8d0['onAccept'],this['_onDiscard']=_0x46d8d0['onDiscard'],this['_onAttributesChange']=_0x46d8d0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x46d8d0['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 _0x4914f9=this;for(;_0x4914f9['previous'];)_0x4914f9=_0x4914f9['previous'];return _0x4914f9;}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'](_0x1b54c0){this['_markerNames']['add'](_0x1b54c0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x873420=>this['_model']['markers']['get'](_0x873420))['filter'](_0x145a0e=>_0x145a0e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1e2d10=>{for(const _0x404ee7 of this['getMarkers']())_0x1e2d10['removeMarker'](_0x404ee7);}),this['_markerNames']['clear']();}['removeMarker'](_0x59d652){this['_model']['change'](_0x700951=>{_0x700951['removeMarker'](_0x59d652);}),this['_markerNames']['delete'](_0x59d652);}['addRange'](_0x450316){const _0x291492='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x291492),this['_model']['change'](_0x974c91=>{_0x974c91['addMarker'](_0x291492,{'range':_0x450316,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3d1db5){for(const _0x477926 of this['getRanges']())if(_0x477926['isIntersecting'](_0x3d1db5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2e4924=>_0x2e4924['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x32e792,_0x5bf780)=>[..._0x32e792,..._0x5bf780['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x54b65c=this['getRanges']();if(0x1!=_0x54b65c['length'])return null;const _0x359727=_0x54b65c[0x0],_0x14ffb9=_0x359727['start']['nodeAfter'],_0xa1e840=_0x359727['end']['nodeBefore'];return _0x14ffb9 instanceof _0x16d825?_0x14ffb9!=_0xa1e840?null:_0x14ffb9: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 _0x3c3995=[];let _0x217d69=this['head'];for(;_0x217d69;)_0x3c3995['push'](_0x217d69),_0x217d69=_0x217d69['next'];return _0x3c3995;}['setAttribute'](_0x2e8393,_0x2f47c5){const _0x47997f=_0x449790(this['attributes']);_0x440af1(_0x47997f,_0x2e8393,_0x2f47c5),_0x41a2af(_0x47997f,this['attributes'])||(this['attributes']=_0x47997f,this['_onAttributesChange'](_0x47997f));}['removeAttribute'](_0x4e73bb){const _0x151af8=_0x449790(this['attributes']);_0x1985d8(_0x151af8,_0x4e73bb),_0x41a2af(_0x151af8,this['attributes'])||(this['attributes']=_0x151af8,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 _0x47c5b6()['substr'](0x1,0x5);}}function o(_0x5af5a2,_0x59e2ad,_0x128821){const _0x1613ef=_0x5af5a2['t'],t=_0x5af5a2['t'];switch(_0x59e2ad){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',_0x128821);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x128821);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x128821);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x128821);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x128821);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',_0x128821);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x128821);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',_0x128821);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x128821);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x128821);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x128821);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x128821);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x128821);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x128821);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x128821);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x128821);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x128821);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x128821);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x128821);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x128821);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x128821);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x128821);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x128821);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x128821);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x128821);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'},_0x128821);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x128821);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x128821);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x128821);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x128821);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x128821);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x128821);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x128821);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'},_0x128821);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x128821);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x128821);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x128821);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x128821);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'},_0x128821);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x128821);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'},_0x128821);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'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x128821);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x128821);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'},_0x128821);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x128821);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'},_0x128821);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x128821);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x128821);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x128821);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x128821);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x128821);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'},_0x128821);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x128821);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 _0x1613ef({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x128821);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1613ef({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x128821);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x128821);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'},_0x128821);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'},_0x128821);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'},_0x128821);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x59e2ad;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2b26ab,_0x50fa19){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2b26ab,this['_locale']=_0x50fa19;}['getDescriptions'](_0x34ea0b){const _0x4476aa=[],_0xc05e55=new Set(),_0x4e5f20=new Set();for(let _0x7768fc=0x0;_0x7768fc<_0x34ea0b['length'];_0x7768fc++){const _0x595490=_0x34ea0b[_0x7768fc];if(!_0x595490['isInContent'])continue;const _0x23aad0=this['_handleCustomCallbackDescription'](_0x595490);if(_0x23aad0){if(null!=_0x595490['subType']){if(_0xc05e55['has'](_0x595490['subType']))continue;_0xc05e55['add'](_0x595490['subType']);}_0x4476aa['push'](_0x23aad0);}else{if('attribute'==_0x595490['type']){const _0x4744bb=_0x595490['data']['key'];if(_0x4e5f20['has'](_0x4744bb))continue;_0x4e5f20['add'](_0x595490['data']['key']),_0x4744bb==m?this['_handleRenameSuggestionDescription'](_0x4476aa,_0x595490):this['_handleAttributeSuggestionDescription'](_0x4476aa,_0x595490);continue;}'insertion'!=_0x595490['type']&&'deletion'!=_0x595490['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4476aa,_0x595490,_0x34ea0b[_0x7768fc+0x1]);}}return this['_resolveDescriptionItems'](_0x4476aa);}['registerDescriptionCallback'](_0x3df1ca){this['_customCallbacks']['push'](_0x3df1ca);}['registerElementLabel'](_0x54bdec,_0xfd22cc,_0x4f036c=_0x5dcdab['normal']){'function'==typeof _0x54bdec?_0x2101f5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x54bdec,'label':_0xfd22cc,'priority':_0x4f036c}):this['_itemLabels']['set'](_0x54bdec,_0xfd22cc);}['registerAttributeLabel'](_0x5ac493,_0x4a613c){this['_attributeLabels']['set'](_0x5ac493,_0x4a613c);}['getItemLabel'](_0x4f7fc8,_0x4fd4bc=0x1){let _0x37e538;for(const _0x4b113f of this['_itemLabelsCallbacks'])if(_0x4b113f['matchingCallback'](_0x4f7fc8)){_0x37e538=_0x4b113f['label'];break;}return _0x37e538||(_0x37e538=this['_itemLabels']['get'](_0x4f7fc8['name'])),_0x37e538?_0x37e538(_0x4fd4bc):0x1!==_0x4fd4bc?_0x4fd4bc+'\x20'+_0x4f7fc8['name']+'s':''+_0x4f7fc8['name'];}['_addDescriptionItems'](_0x1307ff,_0x898b04){const _0x394b3b=_0x898b04['getFirstRange']()['getWalker'](),_0x829fa='insertion'==_0x898b04['type']?'add':'remove';for(const _0x466be6 of _0x394b3b){const _0x5cff78=_0x466be6['item'],_0x8a3477=_0x1307ff[_0x1307ff['length']-0x1];if(_0x5cff78['is']('$textProxy'))_0x8a3477&&_0x8a3477['type']['indexOf']('Container')>-0x1&&_0x1307ff['pop'](),_0x8a3477&&'text'==_0x8a3477['type']?_0x8a3477[_0x829fa]+=_0x5cff78['data']:_0x1307ff['push']({'type':'text','add':'add'==_0x829fa?_0x5cff78['data']:'','remove':'remove'==_0x829fa?_0x5cff78['data']:''});else{if(this['_schema']['isObject'](_0x5cff78)){const _0x36a91d=_0x5cff78;if(_0x8a3477&&_0x8a3477['type']['indexOf']('Container')>-0x1&&_0x1307ff['pop'](),'elementEnd'==_0x466be6['type'])continue;_0x8a3477&&_0x8a3477['type']==_0x829fa+'Object'&&_0x8a3477['element']['name']==_0x36a91d['name']?_0x8a3477['quantity']++:_0x1307ff['push']({'type':_0x829fa+'Object','element':_0x36a91d,'quantity':0x1}),_0x394b3b['skip'](_0x1a12e9=>!('elementEnd'==_0x1a12e9['type']&&_0x1a12e9['item']==_0x5cff78));}else{if(this['_schema']['checkChild'](_0x5cff78,'$text')||_0x5cff78['is']('element','softBreak')){const _0xf512e=_0x5cff78;if('add'==_0x829fa&&'elementStart'==_0x466be6['type']||'remove'==_0x829fa&&'elementEnd'==_0x466be6['type'])continue;if(_0x8a3477&&-0x1==_0x8a3477['type']['indexOf']('Container')){'text'==_0x8a3477['type']&&(_0x8a3477[_0x829fa]+='\x0a');continue;}let _0x59df53;if(_0x59df53='add'==_0x829fa?_0xf512e['nextSibling']&&!this['_schema']['isObject'](_0xf512e['nextSibling'])?_0xf512e['nextSibling']:null:_0xf512e['previousSibling']&&!this['_schema']['isObject'](_0xf512e['previousSibling'])?_0xf512e['previousSibling']:null,_0xf512e['isEmpty']||_0x59df53&&_0x59df53['isEmpty']){const _0x3c6c68=_0x59df53&&_0x59df53['isEmpty']?_0x59df53:_0xf512e;_0x8a3477&&_0x8a3477['type']==_0x829fa+'EmptyContainer'&&_0x8a3477['element']['name']==_0x3c6c68['name']?_0x8a3477['quantity']++:_0x1307ff['push']({'type':_0x829fa+'EmptyContainer','element':_0x3c6c68,'quantity':0x1});}else _0x1307ff['push']({'type':_0x829fa+'Container','element':_0xf512e});}}}}}['_resolveDescriptionItems'](_0x2fe566){const _0x145beb=this['_locale'],_0x4f2f35=[],_0x51c647=[],_0x13ac68=[];for(const _0x396bc1 of _0x2fe566)switch(_0x396bc1['type']){case'text':if(_0x396bc1['add']=_0x396bc1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x396bc1['remove']=_0x396bc1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x396bc1['add']&&''!=_0x396bc1['remove']){_0x4f2f35['push']({'type':'replace','content':o(_0x145beb,'REPLACE_TEXT',['\x22'+_0x396bc1['remove']+'\x22','\x22'+_0x396bc1['add']+'\x22'])});continue;}if(null!=_0x396bc1['add']['match'](/^ +$/)){_0x4f2f35['push']({'type':'insertion','content':o(_0x145beb,'*Insert:*\x20%0',o(_0x145beb,'ELEMENT_SPACE',_0x396bc1['add']['length']))});continue;}if(null!=_0x396bc1['remove']['match'](/^ +$/)){_0x4f2f35['push']({'type':'deletion','content':o(_0x145beb,'*Remove:*\x20%0',o(_0x145beb,'ELEMENT_SPACE',_0x396bc1['remove']['length']))});continue;}if(''!=_0x396bc1['add']){_0x4f2f35['push']({'type':'insertion','content':o(_0x145beb,'*Insert:*\x20%0','\x22'+_0x396bc1['add']+'\x22')});continue;}_0x4f2f35['push']({'type':'deletion','content':o(_0x145beb,'*Remove:*\x20%0','\x22'+_0x396bc1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4f2f35['push']({'type':'insertion','content':o(_0x145beb,'*Insert:*\x20%0',this['getItemLabel'](_0x396bc1['element'],_0x396bc1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4f2f35['push']({'type':'deletion','content':o(_0x145beb,'*Remove:*\x20%0',this['getItemLabel'](_0x396bc1['element'],_0x396bc1['quantity']))});continue;case'addContainer':_0x4f2f35['push']({'type':'insertion','content':o(_0x145beb,'*Split:*\x20%0',this['getItemLabel'](_0x396bc1['element'],_0x396bc1['quantity']))});continue;case'removeContainer':_0x4f2f35['push']({'type':'deletion','content':o(_0x145beb,'*Merge:*\x20%0',this['getItemLabel'](_0x396bc1['element'],_0x396bc1['quantity']))});continue;case'addFormat':_0x51c647['push'](_0x396bc1['key']);continue;case'removeFormat':_0x13ac68['push'](_0x396bc1['key']);continue;default:_0x4f2f35['push'](_0x396bc1);}if(_0x51c647['length']){const _0x25d7db=_0x51c647['map'](_0x1c0be5=>this['_attributeLabels']['has'](_0x1c0be5)?this['_attributeLabels']['get'](_0x1c0be5):_0x1c0be5)['join'](',\x20');_0x4f2f35['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x25d7db)});}if(_0x13ac68['length']){const _0x3936e6=_0x13ac68['map'](_0x2be0ee=>this['_attributeLabels']['has'](_0x2be0ee)?this['_attributeLabels']['get'](_0x2be0ee):_0x2be0ee)['join'](',\x20');_0x4f2f35['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3936e6)});}return _0x4f2f35;}['_handleCustomCallbackDescription'](_0x5105dc){for(const _0x2c113a of this['_customCallbacks']){const _0xddfe37=_0x2c113a(_0x5105dc);if(_0xddfe37&&'type'in _0xddfe37)return _0xddfe37;}}['_handleAttributeSuggestionDescription'](_0x1a9f77,_0x403e5b){const _0x333e60=_0x403e5b['data'],_0x498907=void 0x0===_0x333e60['newValue']?'removeFormat':'addFormat';_0x1a9f77['push']({'type':_0x498907,'key':_0x333e60['key']});}['_handleRenameSuggestionDescription'](_0x14c4fc,_0x225ff8){_0x14c4fc['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x225ff8['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5bae85,_0x32040a,_0x68b896){if(this['_addDescriptionItems'](_0x5bae85,_0x32040a),_0x68b896&&_0x68b896['getFirstRange']()&&!_0x32040a['getFirstRange']()['end']['isEqual'](_0x68b896['getFirstRange']()['start'])){const _0x412d4c=_0x5bae85[_0x5bae85['length']-0x1],_0x204087='insertion'==_0x32040a['type']?'add':'remove';_0x412d4c&&'text'==_0x412d4c['type']&&(_0x412d4c[_0x204087]+='\x0a');}}}class R extends _0x2f9a9e{['afterInit'](){const _0x291ad0=this['editor'],_0x5dccb9=_0x291ad0['plugins']['get']('TrackChangesEditing');_0x291ad0['commands']['get']('showAIAssistant')&&_0x5dccb9['enableCommand']('showAIAssistant');}}class T extends _0x2f9a9e{['afterInit'](){const _0x445b60=this['editor'],_0x333af3=_0x445b60['plugins']['get']('TrackChangesEditing');_0x445b60['commands']['get']('toggleAi')&&_0x333af3['enableCommand']('toggleAi');}}class E extends _0x2f9a9e{['afterInit'](){const _0x3b6fa6=this['editor'],_0x20820c=_0x3b6fa6['plugins']['get']('TrackChangesEditing');_0x3b6fa6['commands']['get']('aiQuickAction')&&_0x20820c['enableCommand']('aiQuickAction');}}class U extends _0x2f9a9e{['afterInit'](){const _0x32227b=this['editor'],_0x57a538=_0x32227b['locale'];if(!_0x32227b['plugins']['has']('AlignmentEditing'))return;const _0x2f6aef=_0x32227b['plugins']['get']('TrackChangesEditing');_0x2f6aef['enableDefaultAttributesIntegration']('alignment'),_0x2f6aef['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x57a538,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10eec0=this['editor'],_0x35ebe5=_0x10eec0['locale'];_0x10eec0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6aad54=>{if('formatBlock'!=_0x6aad54['type'])return;const {data:_0x91a7a}=_0x6aad54;if(_0x91a7a&&'alignment'==_0x91a7a['commandName']){const _0x1d2ac3=_0x91a7a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x35ebe5,'*Format:*\x20%0',function(_0x431474){switch(_0x431474){case'left':return o(_0x35ebe5,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x35ebe5,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x35ebe5,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x35ebe5,'FORMAT_JUSTIFY_TEXT');}}(_0x1d2ac3))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x2f9a9e{['afterInit'](){const _0x5a794c=this['editor'],_0x57d85f=_0x5a794c['plugins']['get']('TrackChangesEditing'),_0xf31962=_0x5a794c['locale'];for(const _0x33cce7 of ti){if(!_0x5a794c['plugins']['has'](_0x33cce7))continue;const _0x3639c9=_0x33cce7['slice'](0x0,-0x7)['toLowerCase'](),_0x4db96e='FORMAT_'+_0x3639c9['toUpperCase']();_0x57d85f['enableDefaultAttributesIntegration'](_0x3639c9),_0x57d85f['descriptionFactory']['registerAttributeLabel'](_0x3639c9,o(_0xf31962,_0x4db96e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c08f8=this['editor'],_0x273da0=_0x3c08f8['locale'],_0x1f7877=_0x3c08f8['plugins']['get']('TrackChangesEditing');function _0x3912c4(_0x48cf0e,_0x384f9d){_0x1f7877['descriptionFactory']['registerDescriptionCallback'](_0x4b54cc=>{if('formatInline'!=_0x4b54cc['type'])return;const {data:_0x217795}=_0x4b54cc;return _0x217795&&_0x217795['commandName']===_0x48cf0e?_0x217795['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x273da0,'*Format:*\x20%0',_0x384f9d)}:{'type':'format','content':o(_0x273da0,'*Remove\x20format:*\x20%0',_0x384f9d)}:void 0x0;});}_0x3912c4('bold',o(_0x273da0,'FORMAT_BOLD')),_0x3912c4('italic',o(_0x273da0,'FORMAT_ITALIC')),_0x3912c4('underline',o(_0x273da0,'FORMAT_UNDERLINE')),_0x3912c4('code',o(_0x273da0,'FORMAT_CODE')),_0x3912c4('strikethrough',o(_0x273da0,'FORMAT_STRIKETHROUGH')),_0x3912c4('subscript',o(_0x273da0,'FORMAT_SUBSCRIPT')),_0x3912c4('superscript',o(_0x273da0,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2f9a9e{['afterInit'](){const _0x21b235=this['editor'],_0x51eb35=_0x21b235['locale'];if(!_0x21b235['plugins']['has']('BlockQuoteEditing'))return;const _0x5883fd=_0x21b235['plugins']['get']('TrackChangesEditing'),_0x2403f9=this['editor']['commands']['get']('blockQuote');_0x5883fd['enableCommand']('blockQuote',(_0x21e663,_0x17e3e6={})=>{const _0x279f94=this['editor']['model']['document']['selection'],_0x4c5994=_0x17e3e6&&void 0x0!==_0x17e3e6['forceValue']?_0x17e3e6['forceValue']:!_0x2403f9['value'];let _0x26bc33=[];if(_0x4c5994){const _0x4cdb1a=Array['from'](_0x279f94['getSelectedBlocks']())['filter'](_0x389558=>oo(_0x389558)||function(_0x17f449,_0x67f79f){const _0x224961=_0x67f79f['checkChild'](_0x17f449['parent'],'blockQuote'),_0x3e86ef=_0x67f79f['checkChild'](['$root','blockQuote'],_0x17f449);return _0x224961&&_0x3e86ef;}(_0x389558,this['editor']['model']['schema']));_0x26bc33=to(_0x4cdb1a,_0x21b235['model']);}else{const _0xf31289=Array['from'](_0x279f94['getSelectedBlocks']())['filter'](_0x96d0ea=>oo(_0x96d0ea));_0x26bc33=to(_0xf31289,_0x21b235['model']);}_0x21b235['model']['change'](()=>{for(const _0xe2adb6 of _0x26bc33)_0x5883fd['markBlockFormat'](_0xe2adb6,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4c5994}]});});}),_0x5883fd['descriptionFactory']['registerDescriptionCallback'](_0x219237=>{const {data:_0x452ec7}=_0x219237;if(_0x452ec7&&'blockQuote'==_0x452ec7['commandName']){const _0xfe5088=o(_0x51eb35,'ELEMENT_BLOCK_QUOTE');return _0x452ec7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51eb35,'*Set\x20format:*\x20%0',_0xfe5088)}:{'type':'format','content':o(_0x51eb35,'*Remove\x20format:*\x20%0',_0xfe5088)};}});}}function oo(_0x220f11){return'blockQuote'==_0x220f11['parent']['name'];}class G extends _0x2f9a9e{['afterInit'](){const _0xe1140f=this['editor'],_0x3210d8=_0xe1140f['locale'],_0x32ba4c=_0xe1140f['plugins']['get']('TrackChangesEditing');_0xe1140f['plugins']['has']('BookmarkEditing')&&(_0x32ba4c['enableCommand']('insertBookmark'),_0x32ba4c['enableDefaultAttributesIntegration']('updateBookmark'),_0x32ba4c['descriptionFactory']['registerDescriptionCallback'](_0x537b70=>{if('insertion'!=_0x537b70['type']&&'deletion'!=_0x537b70['type']&&'attribute'!=_0x537b70['type'])return;const _0x3006f4=_0x537b70['getContainedElement']();if(null==_0x3006f4)return;if(!_0x3006f4['is']('element','bookmark'))return;const _0x4a7dab=_0x3006f4['getAttribute']('bookmarkId');if('insertion'==_0x537b70['type'])return{'type':'insertion','content':o(_0x3210d8,'*Insert:*\x20%0','\x22'+_0x4a7dab+'\x22\x20'+o(_0x3210d8,'ELEMENT_BOOKMARK'))};if('deletion'==_0x537b70['type'])return{'type':'deletion','content':o(_0x3210d8,'*Remove:*\x20%0','\x22'+_0x4a7dab+'\x22\x20'+o(_0x3210d8,'ELEMENT_BOOKMARK'))};const {data:_0x3eafb5}=_0x537b70;if(!_0x3eafb5||'bookmarkId'!=_0x3eafb5['key'])return;return{'type':'format','content':o(_0x3210d8,'*Set\x20bookmark:*\x20%0','\x22'+_0x3eafb5['newValue']+'\x22')};}));}}class L extends _0x2f9a9e{['afterInit'](){const _0x2ae811=this['editor'];_0x2ae811['plugins']['has']('CaseChange')&&(_0x2ae811['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2ae811['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2ae811['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x2f9a9e{['afterInit'](){const _0x310b55=this['editor'];_0x310b55['commands']['get']('ckbox')&&_0x310b55['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2f9a9e{['afterInit'](){const _0x230f9a=this['editor'];if(!_0x230f9a['plugins']['has']('CodeBlock'))return;const _0x58650=_0x230f9a['plugins']['get']('TrackChangesEditing'),_0x250ff1=_0x230f9a['locale'],_0x1a4eae=_0x230f9a['config']['get']('codeBlock')['languages'],_0x56a9b6=_0x230f9a['commands']['get']('codeBlock');_0x58650['enableCommand']('indentCodeBlock'),_0x58650['enableCommand']('outdentCodeBlock'),_0x58650['enableCommand']('codeBlock',(_0x3da1af,_0x23127b={})=>{const _0x1f1daa=_0x230f9a['model'],_0x59178f=_0x230f9a['model']['document']['selection'],_0x137c47=_0x23127b&&void 0x0!==_0x23127b['forceValue']?_0x23127b['forceValue']:!_0x56a9b6['value'];let _0x31e398;_0x23127b['language']||(_0x23127b['language']=_0x1a4eae[0x0]['language']),_0x31e398=_0x137c47?Array['from'](_0x59178f['getSelectedBlocks']())['filter'](_0x275c8c=>co(_0x275c8c)||function(_0x3d5ff6,_0x503bfc){if(_0x3d5ff6['is']('rootElement')||_0x503bfc['isLimit'](_0x3d5ff6))return!0x1;return _0x503bfc['checkChild'](_0x3d5ff6['parent'],'codeBlock');}(_0x275c8c,_0x1f1daa['schema'])):Array['from'](_0x59178f['getSelectedBlocks']())['filter'](_0x84699e=>co(_0x84699e));const _0x4f91fd=to(_0x31e398,_0x1f1daa);_0x1f1daa['change'](()=>{for(const _0x54bdc0 of _0x4f91fd)_0x58650['markBlockFormat'](_0x54bdc0,{'commandName':'codeBlock','commandParams':[{..._0x23127b,'forceValue':_0x137c47}],'formatGroupId':'blockName'});});}),(_0x58650['descriptionFactory']['registerElementLabel']('codeBlock',_0x2a37e7=>o(_0x250ff1,'ELEMENT_CODE_BLOCK',_0x2a37e7)),_0x58650['descriptionFactory']['registerDescriptionCallback'](_0x14ea86=>{if('formatBlock'!=_0x14ea86['type'])return;const _0x3e190d=_0x250ff1['t'],{data:_0x3bdafb}=_0x14ea86;if(!_0x3bdafb||'codeBlock'!=_0x3bdafb['commandName'])return;const _0x42644a=_0x3bdafb['commandParams'][0x0]['language'],_0x293922=_0x3e190d(_0x1a4eae['find'](_0x2c98f1=>_0x2c98f1['language']===_0x42644a)['label'])['toLowerCase']();return _0x3bdafb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x250ff1,'*Set\x20format:*\x20%0',o(_0x250ff1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x293922+')')}:{'type':'format','content':o(_0x250ff1,'*Remove\x20format:*\x20%0',o(_0x250ff1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x198d88){return'codeBlock'==_0x198d88['name'];}class z extends _0x2f9a9e{['afterInit'](){const _0x160c35=this['editor'];if(!_0x160c35['plugins']['has']('CommentsEditing'))return;_0x160c35['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x2f9a9e{static get['requires'](){return[_0x5dc4fa];}['init'](){const _0x1bfe5b=this['editor'],_0x3c7469=_0x1bfe5b['plugins']['get']('TrackChangesEditing');_0x3c7469['enableCommand']('delete');const _0xe1e958=_0x1bfe5b['commands']['get']('deleteForward');_0x3c7469['enableCommand']('deleteForward',(_0x2a5320,_0x33d9e0={})=>{const _0x59d925=_0x1bfe5b['model']['createSelection'](_0x1bfe5b['model']['document']['selection']);_0x59d925['isCollapsed']&&_0x1bfe5b['model']['modifySelection'](_0x59d925,{'direction':'forward','unit':_0x33d9e0['unit']});const _0x128fd4=_0x59d925['getFirstRange'](),_0x42bc10=_0xf95a74['fromRange'](_0x128fd4);let _0x4908aa;_0x2a5320(_0x33d9e0),_0x4908aa='$graveyard'==_0x42bc10['root']['rootName']?_0x1bfe5b['model']['createRange'](_0x128fd4['start']):_0x1bfe5b['model']['createRange'](_0x42bc10['start'],_0x42bc10['end']),_0x42bc10['detach'](),_0x1bfe5b['model']['enqueueChange'](_0xe1e958['buffer']['batch'],_0x2ee587=>{_0xe1e958['buffer']['lock'](),_0x2ee587['setSelection'](_0x2ee587['createRange'](_0x4908aa['end'])),_0xe1e958['buffer']['unlock']();});});}}class W extends _0x2f9a9e{['afterInit'](){const _0xa6241b=this['editor'];if(!_0xa6241b['plugins']['has']('ListEditing'))return;const _0x5c63db=_0xa6241b['locale'],_0x587a91=_0xa6241b['plugins']['get']('TrackChangesEditing'),_0x911166=_0xa6241b['plugins']['has']('TodoListEditing'),_0x5d8649=!!_0xa6241b['config']['get']('list.multiBlock');function _0x523d1d(_0x30a023){return{'type':'format','content':''+o(_0x5c63db,'*Set\x20format:*\x20%0',_0x30a023)};}function _0x2c72ec(_0x2df4a6){return{'type':'format','content':''+o(_0x5c63db,'*Remove\x20format:*\x20%0',_0x2df4a6)};}_0x587a91['enableDefaultAttributesIntegration']('numberedList'),_0x587a91['enableDefaultAttributesIntegration']('bulletedList'),_0x587a91['enableDefaultAttributesIntegration']('customNumberedList'),_0x587a91['enableDefaultAttributesIntegration']('customBulletedList'),_0x587a91['enableDefaultAttributesIntegration']('indentList'),_0x587a91['enableDefaultAttributesIntegration']('outdentList'),_0x587a91['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x587a91['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5d8649&&(_0x587a91['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x587a91['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x911166&&(_0x587a91['enableDefaultAttributesIntegration']('todoList'),_0x587a91['enableDefaultAttributesIntegration']('checkTodoList'),_0x587a91['descriptionFactory']['registerDescriptionCallback'](_0x27e9df=>{const {data:_0x2ead7f}=_0x27e9df;if(_0x2ead7f&&'todoListChecked'==_0x2ead7f['key'])return{'type':'format','content':_0x2ead7f['newValue']?o(_0x5c63db,'*Check\x20item*'):o(_0x5c63db,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x21ba1a=>{if(_0x21ba1a['batch']['isUndo'])return!0x1;let _0x29a04b=!0x1;const _0x493ddb=_0x587a91['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43b1d2=>'todoListChecked'===_0x587a91['_getAttributeKey'](_0x43b1d2));for(const _0x39fb27 of _0x493ddb){'todo'!=_0x39fb27['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x587a91['_findSuggestions'](_0x39fb27['getFirstRange'](),'attribute')['find'](_0x2c26df=>'listType'===_0x587a91['_getAttributeKey'](_0x2c26df['suggestion']))||(_0x21ba1a['removeMarker'](_0x39fb27['getFirstMarker']()),_0x29a04b=!0x0));}return _0x29a04b;})),_0x587a91['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5c63db,'FORMAT_INDENT'));const _0x181496={'type':'format','content':''};_0x587a91['descriptionFactory']['registerDescriptionCallback'](_0x1f9f06=>{const {data:_0x139a56}=_0x1f9f06;if(!_0x139a56||'listType'!=_0x139a56['key'])return;let _0x38d91d=_0x1f9f06['head'];for(;_0x38d91d;){if(_0x38d91d['data']&&(('listStyle'==_0x38d91d['data']['key']||'listMarkerStyle'==_0x38d91d['data']['key'])&&(_0x38d91d['data']['newValue']&&'default'!=_0x38d91d['data']['newValue']||'default'!=_0x38d91d['data']['oldValue']&&!_0x139a56['newValue'])||!_0x5d8649&&_0x38d91d['data']['key']==m))return _0x181496;_0x38d91d=_0x38d91d['next'];}if(null==_0x139a56['newValue'])switch(_0x139a56['oldValue']){case'bulleted':return _0x2c72ec(o(_0x5c63db,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c72ec(o(_0x5c63db,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c72ec(o(_0x5c63db,'ELEMENT_TODO_LIST'));}switch(_0x139a56['newValue']){case'bulleted':return _0x523d1d(o(_0x5c63db,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x523d1d(o(_0x5c63db,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x523d1d(o(_0x5c63db,'ELEMENT_TODO_LIST'));}}),_0x587a91['descriptionFactory']['registerDescriptionCallback'](_0x5d9a20=>{const {data:_0x227e3a}=_0x5d9a20;if(_0x227e3a&&'listIndent'==_0x227e3a['key'])return null==_0x227e3a['newValue']||null==_0x227e3a['oldValue']&&0x0==_0x227e3a['newValue']?_0x181496:void 0x0;}),_0x587a91['descriptionFactory']['registerDescriptionCallback'](_0x253b95=>{if('attribute'!=_0x253b95['type'])return;const {data:_0x3988a7}=_0x253b95;if(!_0x3988a7||'listItemId'!=_0x3988a7['key'])return;const _0x11a7c6=Te(_0x253b95);return'newValue'==_0x11a7c6?{'type':'format','content':o(_0x5c63db,'*Merge:*\x20list\x20item')}:'oldValue'==_0x11a7c6?{'type':'format','content':o(_0x5c63db,'*Split:*\x20list\x20item')}:_0x181496;}),_0xa6241b['model']['document']['registerPostFixer'](_0x3cf024=>this['listItemIdFixer'](_0x3cf024)),_0xa6241b['model']['document']['registerPostFixer'](_0x420ee4=>this['noTrackChangesFixer'](_0x420ee4)),_0xa6241b['model']['document']['on']('change:data',(_0x1da57c,_0x1c00b7)=>{if(_0x1c00b7['isUndo']||!_0x1c00b7['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3a36c9){if(_0x3a36c9['batch']['isUndo']||!_0x3a36c9['batch']['isLocal'])return!0x1;let _0x25b6ae=!0x1;const _0xb371dd=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x350504=>_0x350504['data']&&'listItemId'==_0x350504['data']['key'])['filter'](_0x291f30=>_0x291f30['data']['newValue']&&_0x291f30['data']['oldValue']);for(const _0xbdd90f of _0xb371dd)Te(_0xbdd90f)||(_0x3a36c9['removeMarker'](_0xbdd90f['getFirstMarker']()),_0x25b6ae=!0x0);return _0x25b6ae;}['noTrackChangesFixer'](_0x4bba16){if(_0x4bba16['batch']['isUndo']||!_0x4bba16['batch']['isLocal'])return!0x1;const _0xde13fc=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xde13fc['trackChangesCommand']['value'])return!0x1;let _0x3161fc=!0x1;const _0x1c1d5b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3bd72f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x222972=>'attribute'==_0x222972['type'])['filter'](_0x31b830=>_0x1c1d5b['includes'](_0x31b830['attributeKey']));if(0x0==_0x3bd72f['length'])return _0x3161fc;for(const _0xab2288 of _0x3bd72f){const _0x3dd0d8=_0xde13fc['_findSuggestions'](_0xab2288['range'],'attribute')['filter'](_0x2aebb3=>!_0x2aebb3['meta']['isNextTo'])['map'](_0x254e88=>_0x254e88['suggestion'])['filter'](_0xd0f5a6=>{const _0x5c6f41=_0xde13fc['_getAttributeKey'](_0xd0f5a6);return _0x1c1d5b['includes'](_0x5c6f41);});if(_0x3dd0d8['length']){for(const _0xee2194 of _0x3dd0d8)_0x4bba16['removeMarker'](_0xee2194['getFirstMarker']());_0x3161fc=!0x0;}}return _0x3161fc;}['assureChains'](){const _0x5b4c2d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4607c0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3c8175;const _0x264083=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x52f168=>{if(_0x52f168['data']['oldRange']||!_0x52f168['data']['newRange'])return null;if(!_0x52f168['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4e743f}=_0x5b4c2d['_splitMarkerName'](_0x52f168['name']);if(!_0x5b4c2d['hasSuggestion'](_0x4e743f))return null;const _0x196639=_0x5b4c2d['getSuggestion'](_0x4e743f);return _0x4607c0['includes'](_0x196639['data']['key']);})['map'](_0x51c2f5=>{const {id:_0xca8ff}=_0x5b4c2d['_splitMarkerName'](_0x51c2f5['name']),_0x33a3d5=_0x5b4c2d['getSuggestion'](_0xca8ff);return _0x3c8175=_0x33a3d5['attributes']['groupId'],_0x33a3d5['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x264083['size'])return;const _0x2c0782=_0x5b4c2d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x385b20=>'attribute'==_0x385b20['type']&&_0x385b20['data']&&_0x4607c0['includes'](_0x385b20['data']['key'])&&_0x385b20['attributes']['groupId']!=_0x3c8175)['map'](_0x3c07ff=>({'listItem':_0x3c07ff['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3c07ff['attributes']['groupId']})),_0xfffe01=new Set();for(const {groupId:_0x11eb89,listItem:_0x1e264e}of _0x2c0782)_0x264083['has'](_0x1e264e)&&_0xfffe01['add'](_0x11eb89);for(const _0xd6d4f4 of _0x5b4c2d['getSuggestions']())_0xfffe01['has'](_0xd6d4f4['attributes']['groupId'])&&_0xd6d4f4['setAttribute']('groupId',_0x3c8175);}['_supportLegacySuggestions'](){const _0x33b4cf=this['editor'],_0x464e8d=_0x33b4cf['locale'],_0x49c797=_0x33b4cf['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x49c797['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x445bae,_0x8a1e03){const _0x15415d=[];for(let _0x58d0f7 of _0x445bae)_0x58d0f7['start']['nodeAfter']===_0x58d0f7['end']['parent']&&(_0x58d0f7=_0x33b4cf['model']['createRange'](_0x33b4cf['model']['createPositionAt'](_0x58d0f7['start']['nodeAfter'],0x0))),_0x15415d['push'](_0x58d0f7);_0x33b4cf['model']['change'](_0x1cfb23=>{const _0x1daa89=_0x33b4cf['model']['document']['selection'],_0x276613=Array['from'](_0x1daa89['getRanges']())['map'](_0x5b1a24=>_0xf95a74['fromRange'](_0x5b1a24));_0x1cfb23['setSelection'](_0x15415d),_0x33b4cf['commands']['get'](_0x8a1e03['commandName'])['refresh'](),_0x8a1e03['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x33b4cf['execute'](_0x8a1e03['commandName'],..._0x8a1e03['commandParams']),_0x1cfb23['setSelection'](_0x276613);for(const _0x8da295 of _0x276613)_0x8da295['detach']();});}),_0x49c797['descriptionFactory']['registerElementLabel'](function(_0x55587e){const _0x8c8d6b=!_0x33b4cf['model']['schema']['isObject'](_0x55587e),_0x3cefc2=_0x55587e['previousSibling'],_0x46ccc9=_0x55587e['nextSibling'],_0x51b6ce=_0x55587e['getAttribute']('listItemId'),_0x3f848a=!_0x3cefc2||_0x3cefc2['getAttribute']('listItemId')!==_0x51b6ce,_0x35f132=!_0x46ccc9||_0x46ccc9['getAttribute']('listItemId')!==_0x51b6ce;return _0x8c8d6b&&Boolean(_0x51b6ce)&&_0x3f848a&&_0x35f132;},_0x2e7339=>o(_0x464e8d,'ELEMENT_LIST_ITEM',_0x2e7339));}['_registerLegacyDescription'](){const _0x480c1e=this['editor'],_0x34b88c=_0x480c1e['locale'];function _0x246bb7(_0x50ab7f){const _0x1de1c6=_0x480c1e['commands']['get']('bulletedList')['value'],_0x212fd6=_0x480c1e['commands']['get']('numberedList')['value'];return'numberedList'===_0x50ab7f?_0x1de1c6:_0x212fd6;}_0x480c1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x41ceaa){if('formatBlock'!=_0x41ceaa['type'])return;const {data:_0x4096dc}=_0x41ceaa;if(!_0x4096dc)return;let _0xa8eaa5,_0x5c7480,_0x268d33,_0x1df8d;switch(_0x4096dc['commandName']){case'bulletedList':_0x268d33=_0x4096dc['commandParams'][0x0]['forceValue'],_0x1df8d=_0x246bb7(_0x4096dc['commandName']),_0xa8eaa5=_0x268d33?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1df8d&&_0x480c1e['config']['get']('list.multiBlock')||(_0xa8eaa5='*Change\x20to:*\x20%0'),_0x5c7480={'type':'format','content':o(_0x34b88c,_0xa8eaa5,o(_0x34b88c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x268d33=_0x4096dc['commandParams'][0x0]['forceValue'],_0x1df8d=_0x246bb7(_0x4096dc['commandName']),_0xa8eaa5=_0x268d33?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1df8d&&_0x480c1e['config']['get']('list.multiBlock')||(_0xa8eaa5='*Change\x20to:*\x20%0'),_0x5c7480={'type':'format','content':o(_0x34b88c,_0xa8eaa5,o(_0x34b88c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xa8eaa5='*Indent:*\x20%0',_0x5c7480={'type':'format','content':o(_0x34b88c,_0xa8eaa5,o(_0x34b88c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xa8eaa5=function(_0x3fa1f5){const _0x2faaa9=_0x3fa1f5['getFirstRange']();let _0x58dbee=_0x2faaa9['start']['nodeAfter'];for(;_0x58dbee&&_0x2faaa9['containsItem'](_0x58dbee);){if(_0x58dbee['getAttribute']('listIndent')>0x0)return!0x1;_0x58dbee=_0x58dbee['nextSibling'];}return!0x0;}(_0x41ceaa)?o(_0x34b88c,'*Format:*\x20remove\x20from\x20%0',o(_0x34b88c,function(_0x2e22d1){return'ELEMENT_'+_0x2e22d1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x41ceaa))):o(_0x34b88c,'*Outdent:*\x20%0',o(_0x34b88c,'ELEMENT_LIST_ITEM')),_0x5c7480={'type':'format','content':_0xa8eaa5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4096dc['multipleBlocks']&&(_0xa8eaa5='*Merge:*\x20%0',_0x5c7480={'type':'deletion','content':o(_0x34b88c,_0xa8eaa5,o(_0x34b88c,'ELEMENT_LIST_ITEM'))});}return _0x5c7480;});}}function Te(_0x3ec146){let _0x200723=_0x3ec146['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x200723;){const _0x3b0481=_0x200723['getAttribute']('listItemId');if(!_0x3b0481)return!0x1;if(_0x3b0481==_0x3ec146['data']['newValue'])return'newValue';if(_0x3b0481==_0x3ec146['data']['oldValue'])return'oldValue';_0x200723=_0x200723['previousSibling'];}return!0x1;}class H extends _0x2f9a9e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x230d28=this['editor']['config']['get']('list.properties'),_0x129c6f=this['editor']['plugins']['get']('TrackChangesEditing');_0x230d28['styles']&&_0x129c6f['enableDefaultAttributesIntegration']('listStyle'),_0x230d28['reversed']&&_0x129c6f['enableDefaultAttributesIntegration']('listReversed'),_0x230d28['startIndex']&&_0x129c6f['enableDefaultAttributesIntegration']('listStart');const _0x31313b={'type':'format','content':''};_0x129c6f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5d5150=this['editor']['locale'];_0x129c6f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5d5150,'FORMAT_LIST_REVERSED')),_0x129c6f['descriptionFactory']['registerDescriptionCallback'](_0x2b195c=>{const {data:_0x429bf9}=_0x2b195c;if(_0x429bf9&&'listReversed'==_0x429bf9['key'])return null==_0x429bf9['newValue']||0x0==_0x429bf9['newValue']&&null==_0x429bf9['oldValue']?_0x31313b:void 0x0;}),_0x129c6f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5d5150,'FORMAT_LIST_START')),_0x129c6f['descriptionFactory']['registerDescriptionCallback'](_0x13b4f5=>{const {data:_0x2863f5}=_0x13b4f5;if(_0x2863f5&&'listStart'==_0x2863f5['key'])return null==_0x2863f5['newValue']||0x1==_0x2863f5['newValue']&&null==_0x2863f5['oldValue']?_0x31313b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x731e7f=>{if(_0x731e7f['batch']['isUndo'])return!0x1;let _0x413fc5=!0x1;const _0x4b9537=_0x129c6f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59e396=>{const _0x4967ba=_0x129c6f['_getAttributeKey'](_0x59e396);return'listStart'==_0x4967ba||'listReversed'==_0x4967ba;});for(const _0x534ac6 of _0x4b9537){const _0x5f48a9=_0x534ac6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5f48a9||'customNumbered'==_0x5f48a9)continue;_0x129c6f['_findSuggestions'](_0x534ac6['getFirstRange'](),'attribute')['find'](_0x116fd9=>'listType'==_0x129c6f['_getAttributeKey'](_0x116fd9['suggestion']))||(_0x731e7f['removeMarker'](_0x534ac6['getFirstMarker']()),_0x413fc5=!0x0);}return _0x413fc5;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x28fb90){const _0x5451b1=this['editor']['locale'],{data:_0x233555}=_0x28fb90,_0x30d11c={'type':'format','content':''};if(!_0x233555||'listStyle'!=_0x233555['key'])return;if(!_0x233555['oldValue'])return'default'==_0x233555['newValue']?_0x30d11c:{'type':'format','content':''+o(_0x5451b1,'*Set\x20format:*\x20%0',o(_0x5451b1,this['_getTranslationKeyForListStyle'](_0x233555['newValue'])))};if(!_0x233555['newValue']){if('default'==_0x233555['oldValue'])return _0x30d11c;let _0x203073=_0x28fb90['head'];for(;_0x203073;){if(_0x203073['data']&&'listType'==_0x203073['data']['key']&&_0x203073['data']['newValue'])return _0x30d11c;_0x203073=_0x203073['next'];}return{'type':'format','content':''+o(_0x5451b1,'*Remove\x20format:*\x20%0',o(_0x5451b1,this['_getTranslationKeyForListStyle'](_0x233555['oldValue'])))};}if('default'!=_0x233555['newValue'])return{'type':'format','content':''+o(_0x5451b1,'*Set\x20format:*\x20%0',o(_0x5451b1,this['_getTranslationKeyForListStyle'](_0x233555['newValue'])))};let _0x21f1f2=_0x28fb90['head'];for(;_0x21f1f2;){if(_0x21f1f2['data']&&'listType'==_0x21f1f2['data']['key']&&_0x21f1f2['data']['newValue']&&_0x21f1f2['data']['oldValue'])return _0x30d11c;_0x21f1f2=_0x21f1f2['next'];}return{'type':'format','content':o(_0x5451b1,'*Set\x20format:*\x20%0',o(_0x5451b1,'ELEMENT_'+_0x28fb90['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4d58d0=this['editor'],_0x1aa676=_0x4d58d0['locale'];_0x4d58d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x564d2f=>{if('formatBlock'!=_0x564d2f['type'])return;const {data:_0x4e7500}=_0x564d2f;if(!_0x4e7500)return;let _0x2b3bc1,_0x16f519;switch(_0x4e7500['commandName']){case'listStyle':_0x2b3bc1='*Change\x20to:*\x20%0',_0x16f519={'type':'format','content':o(_0x1aa676,_0x2b3bc1,o(_0x1aa676,this['_getTranslationKeyForListStyle'](_0x4e7500['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2b3bc1=_0x4e7500['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x16f519={'type':'format','content':o(_0x1aa676,_0x2b3bc1)};break;case'listStart':_0x2b3bc1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x16f519={'type':'format','content':o(_0x1aa676,_0x2b3bc1,_0x4e7500['commandParams'][0x0]['startIndex'])};}return _0x16f519;});}['_getTranslationKeyForListStyle'](_0x4c8aa7){return'ELEMENT_'+function(_0x1df064){if(ye['includes'](_0x1df064))return'bulleted';if(Se['includes'](_0x1df064))return'numbered';return null;}(_0x4c8aa7)['toUpperCase']()+'_LIST_'+_0x4c8aa7['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2f9a9e{['afterInit'](){const _0x5741d7=this['editor'];_0x5741d7['commands']['get']('emoji')&&_0x5741d7['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x2f9a9e{static get['requires'](){return[_0x1f2a77];}['init'](){const _0x4426e9=this['editor'],_0x2e7d3b=_0x4426e9['plugins']['get']('TrackChangesEditing'),_0x46079d=_0x4426e9['commands']['get']('enter');_0x2e7d3b['enableCommand']('enter',()=>{_0x4426e9['model']['change'](_0x433370=>{const _0x130a96=_0x4426e9['model']['document']['selection'],_0x982de=_0x130a96['getFirstPosition'](),_0x45b672=_0xf95a74['fromRange'](_0x130a96['getFirstRange']());if(_0x46079d['enterBlock'](_0x433370)){const _0x2fe934=_0x4426e9['model']['createPositionAt'](_0x982de['parent']['nextSibling'],0x0),_0x29daa0=_0x433370['createRange'](_0x982de,_0x2fe934);_0x2e7d3b['markInsertion'](_0x29daa0);}else _0x433370['setSelection'](_0x433370['createRange'](_0x45b672['end']));_0x45b672['detach'](),_0x46079d['fire']('afterExecute',{'writer':_0x433370});});});}}class Y extends _0x2f9a9e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x37f62c=this['editor']['plugins']['get']('TrackChangesEditing');_0x37f62c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x37f62c['enableCommand']('findNext'),_0x37f62c['enableCommand']('findPrevious'),_0x37f62c['enableCommand']('replace'),_0x37f62c['enableCommand']('replaceAll');}['handleFindCommand'](_0x3f074e,_0xb6cab4,_0x4a7b8d={}){const _0x22b75c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3f074e(_0x5afd79=>{let _0x10d8a3=('string'==typeof _0xb6cab4?_0x22b75c['findByTextCallback'](_0xb6cab4,_0x4a7b8d):_0xb6cab4)(_0x5afd79);Array['isArray'](_0x10d8a3)&&(_0x10d8a3={'results':_0x10d8a3,'searchText':'string'==typeof _0xb6cab4?_0xb6cab4:''});const _0x39622f=_0x10d8a3['results']['filter'](_0x43120b=>!0x1===this['_isInDeletionRange'](_0x43120b,_0x5afd79['item']));return{..._0x10d8a3,'results':_0x39622f};},_0x4a7b8d);}['_isInDeletionRange'](_0x221a00,_0x51bc9d){const _0x338964=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x51bc9d,_0x221a00['start']),this['editor']['model']['createPositionAt'](_0x51bc9d,_0x221a00['end']));for(const _0x2c0cd1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x338964['getIntersection'](_0x2c0cd1['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x2f9a9e{['afterInit'](){const _0x1f977a=this['editor']['locale'],_0x53973b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x8c1134,commandName:_0x535e4a}of eo)this['editor']['plugins']['has'](_0x8c1134)&&_0x53973b['enableDefaultAttributesIntegration'](_0x535e4a);_0x53973b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1f977a,'FORMAT_FONT_SIZE')),_0x53973b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1f977a,'FORMAT_FONT_FAMILY')),_0x53973b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1f977a,'FORMAT_FONT_COLOR')),_0x53973b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1f977a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x67aa33=this['editor'],_0x3a703c=_0x67aa33['locale'];_0x67aa33['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x295622=>{const _0x1483be=_0x3a703c['t'];if('formatInline'!=_0x295622['type'])return;const {data:_0xa4d1c2}=_0x295622;if(null!=_0xa4d1c2){if('fontSize'==_0xa4d1c2['commandName']){const _0x4ce301=_0xa4d1c2['commandParams'][0x0]['value'];if(_0x4ce301){const _0x3d2f1e=_0x1483be(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x30f583=>_0x30f583['model']==_0x4ce301)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3a703c,'*Set\x20font\x20size:*\x20%0',_0x3d2f1e)};}return{'type':'format','content':o(_0x3a703c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xa4d1c2['commandName']){const _0x49eca1=_0xa4d1c2['commandParams'][0x0]['value'];return _0x49eca1?{'type':'format','content':o(_0x3a703c,'*Set\x20font\x20family:*\x20%0',_0x49eca1)}:{'type':'format','content':o(_0x3a703c,'*Reset\x20font\x20family*')};}if('fontColor'==_0xa4d1c2['commandName']){const _0x1a4e6f=_0xa4d1c2['commandParams'][0x0]['value'];if(_0x1a4e6f){const _0x4faaaf=_0x529a1a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x38a6e5=>_0x38a6e5['model']==_0x1a4e6f);let _0x21ec79=_0x1a4e6f,_0x46a6d2='';return _0x4faaaf&&(_0x21ec79=_0x4faaaf['label'],_0x46a6d2=_0x1483be(_0x21ec79)['toLowerCase']()),{'type':'format','content':o(_0x3a703c,'*Set\x20font\x20color:*\x20%0',_0x46a6d2)['trim'](),'color':{'value':_0x1a4e6f,'title':_0x46a6d2||_0x21ec79}};}return{'type':'format','content':o(_0x3a703c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xa4d1c2['commandName']){const _0x4b52f4=_0xa4d1c2['commandParams'][0x0]['value'];if(_0x4b52f4){const _0x56e51e=_0x529a1a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x46ebff=>_0x46ebff['model']==_0x4b52f4);let _0x15c982=_0x4b52f4,_0x227226='';return _0x56e51e&&(_0x15c982=_0x56e51e['label'],_0x227226=_0x1483be(_0x15c982)['toLowerCase']()),{'type':'format','content':o(_0x3a703c,'*Set\x20font\x20background\x20color:*\x20%0',_0x227226)['trim'](),'color':{'value':_0x4b52f4,'title':_0x227226||_0x15c982}};}return{'type':'format','content':o(_0x3a703c,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2f9a9e{['afterInit'](){const {plugins:_0x15ff1d}=this['editor'];_0x15ff1d['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x15ff1d['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x529e33,plugins:_0x291493,commands:_0x396831}=this['editor'],_0x3e343a=_0x291493['get']('TrackChangesEditing');_0x396831['get']('footnotesStyle')&&_0x3e343a['enableDefaultAttributesIntegration']('footnotesStyle'),_0x396831['get']('footnotesStart')&&_0x3e343a['enableDefaultAttributesIntegration']('footnotesStart'),_0x3e343a['registerBlockAttribute']('footnotesListStyle'),_0x3e343a['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x529e33,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x3e343a['registerBlockAttribute']('footnotesListStart'),_0x3e343a['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x529e33,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x20862b=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x1168fe,commands:_0x569b5c}=this['editor'];_0x569b5c['get']('insertFootnote')&&_0x20862b['enableCommand']('insertFootnote'),_0x20862b['descriptionFactory']['registerElementLabel']('footnoteRef',_0x46669b=>o(_0x1168fe,'ELEMENT_FOOTNOTE_REF',_0x46669b)),_0x20862b['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1558ac=>o(_0x1168fe,'ELEMENT_FOOTNOTE_DEFINITION',_0x1558ac)),_0x20862b['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0xd7bfca=>o(_0x1168fe,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0xd7bfca));}}class nt extends _0x2f9a9e{['afterInit'](){const _0x15efbd=this['editor'],_0x1f5db6=_0x15efbd['plugins']['get']('TrackChangesEditing'),_0x5c014a=_0x15efbd['commands']['get']('copyFormat'),_0x3e015d=_0x15efbd['commands']['get']('pasteFormat');_0x5c014a&&_0x3e015d&&(_0x1f5db6['enableDefaultAttributesIntegration']('pasteFormat'),_0x1f5db6['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x390746=this['editor'],_0x4bec40=_0x390746['locale'];_0x390746['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x131aea=>{if('formatBlock'!=_0x131aea['type']&&'formatInline'!=_0x131aea['type'])return;const {data:_0x3d0d8f}=_0x131aea;if(_0x3d0d8f&&'pasteFormat'===_0x3d0d8f['commandName']){const _0x319c30=[],_0x216b97=_0x3d0d8f['commandParams'][0x0];for(const [_0x324929,_0x52a355]of Object['entries'](_0x216b97))_0x319c30['push'](ro(_0x390746,_0x324929,_0x52a355));return _0x319c30['length']?{'type':'format','content':o(_0x4bec40,'*Set\x20format\x20to:*\x20%0',_0x319c30['join'](',\x20'))}:{'type':'format','content':o(_0x4bec40,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3a69b8,_0x510a3b,_0x58626d){const _0x1a5415=_0x3a69b8['locale']['t'],_0x167881=_0x510a3b['split'](/(?=[A-Z])/)['join']('\x20'),_0x5b667e=_0x1a5415(_0x167881['charAt'](0x0)['toUpperCase']()+_0x167881['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x58626d)return _0x5b667e;if('fontColor'===_0x510a3b||'fontBackgroundColor'===_0x510a3b){const _0x20c24f=_0x529a1a(_0x3a69b8['config']['get']('fontColor.colors'))['find'](_0x3e3e31=>_0x3e3e31['model']==_0x58626d);return _0x5b667e+'\x20('+(_0x20c24f?_0x1a5415(_0x20c24f['label'])['toLowerCase']():_0x58626d)+')';}if('fontSize'===_0x510a3b&&isNaN(parseFloat(_0x58626d))){const _0x2e3ea1=_0x3a69b8['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3a69b8['config']['get']('fontSize.options'))['find'](_0x1fba35=>_0x1fba35['model']==_0x58626d);return _0x5b667e+'\x20('+(_0x2e3ea1?_0x1a5415(_0x2e3ea1['title'])['toLowerCase']():_0x58626d)+')';}return _0x5b667e+'\x20('+_0x58626d+')';}class it extends _0x2f9a9e{['_headingOptions'];['afterInit'](){const _0x4dba47=this['editor'];if(!_0x4dba47['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4dba47['config']['get']('heading.options');const _0x36e0cc=_0x4dba47['locale'],_0x260c06=_0x4dba47['plugins']['get']('TrackChangesEditing');_0x260c06['enableDefaultAttributesIntegration']('heading');for(const _0x53bdd9 of this['_headingOptions'])'paragraph'!=_0x53bdd9['model']&&_0x260c06['descriptionFactory']['registerElementLabel'](_0x53bdd9['model'],_0x32159d=>{const _0x219e44=this['_getHeadingLevel'](_0x53bdd9['model']);return null!==_0x219e44?_0x239569(_0x32159d,_0x219e44):_0x324726(_0x32159d,_0x53bdd9['title']);});function _0x239569(_0x46b2f1,_0x4d3daf){return o(_0x36e0cc,'ELEMENT_HEADING',[_0x46b2f1,_0x4d3daf]);}function _0x324726(_0x3dfa39,_0x4e6c58){return o(_0x36e0cc,'ELEMENT_HEADING_CUSTOM',[_0x3dfa39,_0x4e6c58]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x312096=this['editor'],_0x4849c=_0x312096['locale'];function _0x5e57f8(_0x4e34cb,_0x5e8dab){return o(_0x4849c,'ELEMENT_HEADING_CUSTOM',[_0x4e34cb,_0x5e8dab]);}_0x312096['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e87dd=>{if('formatBlock'!=_0x1e87dd['type'])return;const {data:_0x1ebc49}=_0x1e87dd;if(_0x1ebc49&&'heading'==_0x1ebc49['commandName']){const _0x4d3ed2=_0x1ebc49['commandParams'][0x0]['value'],_0xf19ec2=this['_getHeadingLevel'](_0x4d3ed2);if(null!==_0xf19ec2)return{'type':'format','content':o(_0x4849c,'*Change\x20to:*\x20%0',(_0x3f83ef=0x1,_0xf16a0d=_0xf19ec2,o(_0x4849c,'ELEMENT_HEADING',[_0x3f83ef,_0xf16a0d])))};const _0x3dab1a=this['_headingOptions']['find'](_0x37dade=>_0x37dade['model']===_0x4d3ed2)['title'];return{'type':'format','content':o(_0x4849c,'*Change\x20to:*\x20%0',_0x5e57f8(0x1,_0x3dab1a))};}var _0x3f83ef,_0xf16a0d;});}['_getHeadingLevel'](_0x13e489){const _0x571dc6=_0x13e489['match'](/^heading(\d+)/);if(_0x571dc6)return _0x571dc6[0x1];const _0x30fb33=this['_headingOptions']?.['find'](_0x1157de=>_0x1157de['model']==_0x13e489);if(_0x30fb33&&_0x30fb33['view']){const _0x7124dd=_0x30fb33['view'],_0x2d0ee5=(_0x7124dd['name']??_0x7124dd)['match'](/^h(\d+)/);if(_0x2d0ee5)return _0x2d0ee5[0x1];}return null;}}class et extends _0x2f9a9e{['afterInit'](){const _0x2b0704=this['editor'];if(!_0x2b0704['plugins']['has']('HighlightEditing'))return;const _0x36d80c=_0x2b0704['plugins']['get']('TrackChangesEditing'),_0xc97d93=_0x2b0704['locale'];_0x36d80c['enableDefaultAttributesIntegration']('highlight'),_0x36d80c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xc97d93,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d7d0c=this['editor'],_0x3ef064=_0x2d7d0c['locale'];_0x2d7d0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b47e0=>{if('formatInline'!=_0x2b47e0['type'])return;const {data:_0x157b4e}=_0x2b47e0;if(_0x157b4e&&'highlight'==_0x157b4e['commandName']){const _0x3fd7b7=_0x3ef064['t'],_0xc80f71=_0x157b4e['commandParams'][0x0]['value'];if(_0xc80f71){const _0x58ae8c=_0x2d7d0c['config']['get']('highlight.options')['find'](_0xfb1b98=>_0xfb1b98['model']==_0xc80f71),_0x3fe83e=_0x3fd7b7(_0x58ae8c['title'])['toLowerCase']();return{'type':'format','content':o(_0x3ef064,'*Set\x20highlight:*\x20%0',_0x3fe83e),'color':{'value':_0x58ae8c['color'],'title':_0x58ae8c['title']}};}return{'type':'format','content':o(_0x3ef064,'*Remove\x20highlight*',o(_0x3ef064,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2f9a9e{['afterInit'](){const _0x33db6f=this['editor'];if(!_0x33db6f['plugins']['has']('HorizontalLineEditing'))return;_0x33db6f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x31bad7=_0x33db6f['plugins']['get']('TrackChangesEditing'),_0xca48af=_0x33db6f['locale'];_0x31bad7['descriptionFactory']['registerElementLabel']('horizontalLine',_0x26ed2a=>o(_0xca48af,'ELEMENT_HORIZONTAL_LINE',_0x26ed2a));}}class ot extends _0x2f9a9e{['afterInit'](){const _0x494df7=this['editor'];if(!_0x494df7['plugins']['has']('HtmlEmbed'))return;const _0x3a2381=_0x494df7['plugins']['get']('TrackChangesEditing'),_0x510a63=_0x494df7['locale'];_0x3a2381['descriptionFactory']['registerElementLabel']('rawHtml',_0xca10dc=>o(_0x510a63,'ELEMENT_HTML_EMBED',_0xca10dc)),_0x3a2381['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3a2381['descriptionFactory']['registerDescriptionCallback'](_0x1ae198=>{if('attribute'!=_0x1ae198['type'])return;const {data:_0x45f4a0}=_0x1ae198;if(_0x45f4a0&&'value'==_0x45f4a0['key']&&_0x1ae198['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x55e148=o(_0x510a63,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x510a63,'*Change\x20%0\x20content*',_0x55e148)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x347780=this['editor'],_0x32695c=_0x347780['locale'];_0x347780['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bd227=>{if('formatBlock'!=_0x5bd227['type'])return;const {data:_0x316edd}=_0x5bd227;if(_0x316edd&&'htmlEmbed'==_0x316edd['commandName']){const _0x4996f9=o(_0x32695c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x32695c,'*Change\x20%0\x20content*',_0x4996f9)};}});}}class rt extends _0x2f9a9e{['afterInit'](){const _0x5c3ccf=this['editor'];if(!_0x5c3ccf['plugins']['has']('ImageEditing'))return;const _0xb73776=_0x5c3ccf['plugins']['get']('TrackChangesEditing'),_0x793e75=_0x5c3ccf['plugins']['get']('ImageUtils'),_0x3ccce0=_0x5c3ccf['locale'];_0xb73776['enableCommand']('insertImage'),_0xb73776['descriptionFactory']['registerElementLabel']('imageBlock',_0x55e346=>o(_0x3ccce0,'ELEMENT_IMAGE',_0x55e346)),_0xb73776['descriptionFactory']['registerElementLabel']('imageInline',_0x6049e3=>o(_0x3ccce0,'ELEMENT_INLINE_IMAGE',_0x6049e3)),_0xb73776['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3ccce0,'ELEMENT_CAPTION')),_0x5c3ccf['plugins']['has']('ImageUploadEditing')&&_0xb73776['enableCommand']('uploadImage'),_0x5c3ccf['plugins']['has']('ImageBlockEditing')&&_0x5c3ccf['plugins']['has']('ImageInlineEditing')&&(_0xb73776['enableCommand']('imageTypeInline',(_0xb05ff4,_0x2e87d1)=>{const _0xdbad60=_0x793e75['getClosestSelectedImageElement'](_0x5c3ccf['model']['document']['selection']);_0x5c3ccf['model']['change'](()=>{_0xb73776['markBlockFormat'](_0xdbad60,{'commandName':'imageTypeInline','commandParams':[_0x2e87d1]},[],'convertBlockImageToInline');});}),_0xb73776['enableCommand']('imageTypeBlock',(_0x52de09,_0x543a36)=>{_0x5c3ccf['model']['change'](_0x57ef8b=>{let _0x5eef25=_0x793e75['getClosestSelectedImageElement'](_0x5c3ccf['model']['document']['selection']),_0x3a9437=_0x57ef8b['createRangeOn'](_0x5eef25);const _0x283df5=_0x4606ea['fromPosition'](_0x3a9437['start'],'toPrevious'),_0x7dbe2=_0x4606ea['fromPosition'](_0x3a9437['end'],'toNext');_0xb73776['forceDefaultExecution'](()=>_0x52de09(_0x543a36)),_0x5eef25=_0x793e75['getClosestSelectedImageElement'](_0x5c3ccf['model']['document']['selection']),_0x3a9437=_0x57ef8b['createRangeOn'](_0x5eef25);const _0x3655e1=_0x57ef8b['createRange'](_0x283df5,_0x7dbe2);_0x283df5['detach'](),_0x7dbe2['detach'](),_0xb73776['markBlockFormat'](_0x5eef25,{'commandName':'imageTypeInline','commandParams':[_0x543a36]},[],'convertInlineImageToBlock'),_0x3655e1['start']['isBefore'](_0x3a9437['start'])&&_0xb73776['markInsertion'](_0x57ef8b['createRange'](_0x3655e1['start'],_0x3a9437['start']),'convertInlineImageToBlock'),_0x3a9437['end']['isBefore'](_0x3655e1['end'])&&_0xb73776['markInsertion'](_0x57ef8b['createRange'](_0x3a9437['end'],_0x3655e1['end']),'convertInlineImageToBlock');});}),_0xb73776['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xb73776['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xb73776['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xb73776['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xb73776['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xb73776['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x10b180])=>{const _0x1bdddb=_0xb73776['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2955c3=_0x10b180['start'],_0x40d80e=_0x10b180['end'];const _0x428d5a=_0x5c3ccf['model']['schema']['getNearestSelectionRange'](_0x2955c3,'backward'),_0x13d1b0=_0x5c3ccf['model']['schema']['getNearestSelectionRange'](_0x40d80e,'forward');_0x428d5a['isCollapsed']&&(_0x2955c3=_0x428d5a['start']),_0x13d1b0['isCollapsed']&&(_0x40d80e=_0x13d1b0['end']),_0x1bdddb([_0x5c3ccf['model']['createRange'](_0x2955c3,_0x40d80e)]);}),_0xb73776['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1de7e5),_0xb73776['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1de7e5)),_0x5c3ccf['plugins']['has']('ImageCaptionEditing')&&(_0xb73776['enableCommand']('toggleImageCaption',(_0x198d08,_0x1f0eb)=>{const _0x13be0e=_0x5c3ccf['plugins']['get']('ImageCaptionUtils');let _0x4ed925=_0x793e75['getClosestSelectedImageElement'](_0x5c3ccf['model']['document']['selection']),_0x4ed9cc=_0x13be0e['getCaptionFromImageModelElement'](_0x4ed925);_0x5c3ccf['model']['change'](()=>{if(_0x4ed9cc)return void _0xb73776['markDeletion'](_0x5c3ccf['model']['createRangeOn'](_0x4ed9cc));const _0x2105d8=_0x793e75['isBlockImage'](_0x4ed925);_0x198d08(_0x1f0eb),_0x4ed925=_0x793e75['getClosestSelectedImageElement'](_0x5c3ccf['model']['document']['selection']),_0x4ed9cc=_0x13be0e['getCaptionFromImageModelElement'](_0x4ed925),_0xb73776['markInsertion'](_0x5c3ccf['model']['createRangeOn'](_0x4ed9cc),_0x2105d8?null:'imageCaption');});}),_0xb73776['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1de7e5));const _0x254f22=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2622b0(_0xa0ea3d,_0x54f6cd){const _0x2512c8=_0x254f22['findIndex'](({type:_0x402e5d,subType:_0x2b871a})=>_0xa0ea3d['type']==_0x402e5d&&_0xa0ea3d['subType']==_0x2b871a),_0x460859=_0x254f22['findIndex'](({type:_0x52eed9,subType:_0x4285b0})=>_0x54f6cd['type']==_0x52eed9&&_0x54f6cd['subType']==_0x4285b0);if(_0x2512c8<0x0||_0x460859<0x0)return!0x1;const _0x98cbcd=_0xa0ea3d['getFirstRange'](),_0x4ddd5d=_0x54f6cd['getFirstRange']();if((0x0==_0x2512c8||0x1==_0x2512c8)&&0x2==_0x460859&&_0x98cbcd['isIntersecting'](_0x4ddd5d))return!0x0;if(0x2==_0x2512c8&&0x3==_0x460859){const _0x49a5fb=_0xb73776['_findSuggestions'](_0x98cbcd,'insertion')['filter'](({suggestion:_0x54eb75,meta:_0x5328ef})=>_0x5328ef['isOwn']&&'convertInlineImageToBlock'==_0x54eb75['subType']);if(_0x49a5fb['length']>0x1&&_0x4ddd5d['end']['isEqual'](_0x98cbcd['start']))return!0x0;if(0x1==_0x49a5fb['length']&&(_0x98cbcd['start']['isEqual'](_0x4ddd5d['end'])||_0x98cbcd['end']['isEqual'](_0x4ddd5d['start'])))return!0x0;}if(0x3==_0x2512c8&&0x3==_0x460859&&_0x98cbcd['start']['isBefore'](_0x4ddd5d['start'])){const _0xa2c516=_0x98cbcd['end']['nodeAfter'],_0x52c8eb=_0x4ddd5d['start']['nodeBefore'];return _0x793e75['isBlockImage'](_0xa2c516)&&_0xa2c516===_0x52c8eb;}return!0x1;}function _0x1de7e5(_0x207916,_0x2be648){return _0x2622b0(_0x207916,_0x2be648)?[_0x207916,_0x2be648]:_0x2622b0(_0x2be648,_0x207916)?[_0x2be648,_0x207916]:null;}_0x5c3ccf['plugins']['has']('ImageResize')&&(_0xb73776['enableDefaultAttributesIntegration']('resizeImage'),_0xb73776['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3ccce0,'FORMAT_IMAGE_SIZE'))),_0x5c3ccf['plugins']['has']('ImageTextAlternativeEditing')&&_0xb73776['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5c3ccf['plugins']['has']('PictureEditing')&&_0xb73776['descriptionFactory']['registerDescriptionCallback'](_0x5df7c7=>{if('attribute'!=_0x5df7c7['type'])return;const {data:_0x2509bd}=_0x5df7c7;return _0x2509bd&&'sources'==_0x2509bd['key']?{'type':'format','content':''}:void 0x0;}),_0x5c3ccf['plugins']['has']('ImageSizeAttributes')&&_0xb73776['descriptionFactory']['registerDescriptionCallback'](_0x5c5746=>{if('attribute'!=_0x5c5746['type'])return;const {data:_0x516902}=_0x5c5746;return!_0x516902||'width'!=_0x516902['key']&&'height'!=_0x516902['key']?void 0x0:{'type':'format','content':''};}),_0xb73776['descriptionFactory']['registerDescriptionCallback'](_0x27e144=>{if(!!_0x254f22['find'](({type:_0x128e90,subType:_0x564d98})=>_0x27e144['type']==_0x128e90&&_0x27e144['subType']==_0x564d98))return _0x27e144['previous']?{}:void 0x0;}),_0xb73776['descriptionFactory']['registerDescriptionCallback'](_0x2eb907=>{if('insertion'==_0x2eb907['type']||'deletion'==_0x2eb907['type']){const _0x49cbc9=_0x2eb907['getContainedElement']();if(_0x49cbc9&&_0x49cbc9['is']('element','caption'))return{'type':'insertion'==_0x2eb907['type']?'addObject':'removeObject','element':_0x49cbc9,'quantity':0x1};}}),_0xb73776['descriptionFactory']['registerDescriptionCallback'](_0x39f734=>'formatBlock'==_0x39f734['type']&&'convertInlineImageToBlock'==_0x39f734['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x39f734['type']&&'convertBlockImageToInline'==_0x39f734['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xb73776['descriptionFactory']['registerDescriptionCallback'](_0x5ea7c8=>{if('attribute'!=_0x5ea7c8['type'])return;const {data:_0x135175}=_0x5ea7c8;if(!_0x135175||'alt'!=_0x135175['key'])return;const _0x2d4d5d=_0x135175['newValue'];return _0x2d4d5d?{'type':'format','content':o(_0x3ccce0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d4d5d+'\x22')}:{'type':'format','content':o(_0x3ccce0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2186d0=this['editor'],_0x129413=_0x2186d0['locale'];_0x2186d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x149cba=>{if('formatBlock'!=_0x149cba['type']&&'formatInline'!=_0x149cba['type'])return;const {data:_0x1dcda6}=_0x149cba;if(_0x1dcda6){if('imageTextAlternative'==_0x1dcda6['commandName']){const _0x308427=_0x1dcda6['commandParams'][0x0]['newValue'];return _0x308427?{'type':'format','content':o(_0x129413,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x308427+'\x22')}:{'type':'format','content':o(_0x129413,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1dcda6['commandName']){const _0x2fe780=_0x1dcda6['commandParams'][0x0]['width'];return _0x2fe780?{'type':'format','content':o(_0x129413,'*Set\x20image\x20width:*\x20%0',_0x2fe780)}:{'type':'format','content':o(_0x129413,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2f9a9e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x70402=this['editor']['locale'],_0x16adfe=this['editor']['plugins']['get']('TrackChangesEditing');_0x16adfe['enableDefaultAttributesIntegration']('replaceImageSource'),_0x16adfe['descriptionFactory']['registerDescriptionCallback'](_0x483a0c=>{if('attribute'!=_0x483a0c['type'])return;const {data:_0x3fc32e}=_0x483a0c;return _0x3fc32e&&'src'==_0x3fc32e['key']?_0x3fc32e['newValue']&&_0x3fc32e['oldValue']?{'type':'format','content':o(_0x70402,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1eb95c=this['editor']['plugins']['get']('TrackChangesEditing');_0x1eb95c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1eb95c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1eb95c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1eb95c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd3eee6=this['editor'],_0x456445=_0xd3eee6['locale'];_0xd3eee6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x526bb3=>{if('formatBlock'!=_0x526bb3['type']&&'formatInline'!=_0x526bb3['type'])return;const {data:_0x3717d9}=_0x526bb3;if(!_0x3717d9||'replaceImageSource'!=_0x3717d9['commandName'])return;return{'type':'format','content':o(_0x456445,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2f9a9e{['afterInit'](){const _0x4af1dc=this['editor'];if(!_0x4af1dc['plugins']['has']('ImageStyleEditing'))return;const _0x526d6f=_0x4af1dc['plugins']['get']('TrackChangesEditing'),_0x17dd49=_0x4af1dc['plugins']['get']('ImageUtils'),_0x43d1e2={};_0x526d6f['enableCommand']('imageStyle',(_0x373a43,_0x2aad79)=>{const _0x449d51=_0x4af1dc['plugins']['get']('Users')['me'],_0x4088b8=_0x4af1dc['commands']['get']('imageStyle');let _0x331477=_0x17dd49['getClosestSelectedImageElement'](_0x4af1dc['model']['document']['selection']),_0x2bee25=_0x4af1dc['model']['createRangeOn'](_0x331477),_0x126dac=_0x4088b8['value'];if(_0x126dac==_0x2aad79['value'])return;const _0x4b3dd4={'commandName':'imageStyle','commandParams':[_0x2aad79],'formatGroupId':_0x47c5b6()};_0x4af1dc['model']['change'](()=>{if(_0x526d6f['getSuggestions']()['filter'](_0xd9ca8f=>_0xd9ca8f['isInContent']&&_0x449d51==_0xd9ca8f['author']&&('formatBlock'==_0xd9ca8f['type']||'formatInline'==_0xd9ca8f['type'])&&('imageStylePreApply'==_0xd9ca8f['subType']||'imageStylePostApply'==_0xd9ca8f['subType'])&&_0xd9ca8f['getFirstRange']()['isEqual'](_0x2bee25))['forEach'](_0x4ad8c7=>_0x526d6f['discardSuggestion'](_0x4ad8c7['head'])),_0x331477=_0x17dd49['getClosestSelectedImageElement'](_0x4af1dc['model']['document']['selection']),_0x2bee25=_0x4af1dc['model']['createRangeOn'](_0x331477),_0x4088b8['refresh'](),_0x4af1dc['commands']['get']('imageTypeInline')['refresh'](),_0x4af1dc['commands']['get']('imageTypeBlock')['refresh'](),_0x126dac=_0x4088b8['value'],_0x126dac!=_0x2aad79['value'])return _0x17dd49['isInlineImage'](_0x331477)&&_0x4088b8['shouldConvertImageType'](_0x2aad79['value'],_0x331477)?(_0x373a43({..._0x2aad79,'setImageSizes':!0x1}),_0x331477=_0x17dd49['getClosestSelectedImageElement'](_0x4af1dc['model']['document']['selection']),void _0x526d6f['markBlockFormat'](_0x331477,{..._0x4b3dd4,'commandReversedParams':[{'value':_0x126dac||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x17dd49['isBlockImage'](_0x331477)?_0x526d6f['markBlockFormat'](_0x331477,_0x4b3dd4,[],'imageStylePostApply'):_0x526d6f['markInlineFormat'](_0x2bee25,_0x4b3dd4,'imageStylePostApply'));});});for(const _0x5aedd2 of _0x4af1dc['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x43d1e2[_0x5aedd2['name']]=_0x5aedd2['title']['toLowerCase']();_0x526d6f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x526d6f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x526d6f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x526d6f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x35147c])=>{_0x17dd49['setImageNaturalSizeAttributes'](_0x35147c['getContainedElement']());}),_0x526d6f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x55e0f0,_0x2fc6e4)=>{_0x526d6f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x55e0f0,{'commandName':_0x2fc6e4['commandName'],'commandParams':_0x2fc6e4['commandReversedParams']});}),_0x526d6f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x329a87,_0x5d6872){if(_0x27af65(_0x329a87,_0x5d6872))return[_0x329a87,_0x5d6872];if(_0x27af65(_0x5d6872,_0x329a87))return[_0x5d6872,_0x329a87];return null;});const _0xf0685a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x27af65(_0x5aa476,_0x3f2ce7){const _0x553c9a=_0xf0685a['findIndex'](({type:_0x5e0951,subType:_0x4bfbf4})=>_0x5aa476['type']==_0x5e0951&&_0x5aa476['subType']==_0x4bfbf4),_0x59c124=_0xf0685a['findIndex'](({type:_0x40d429,subType:_0x1a8b59})=>_0x3f2ce7['type']==_0x40d429&&_0x3f2ce7['subType']==_0x1a8b59);if(_0x553c9a<0x0||_0x59c124<0x0)return!0x1;const _0x4b9ca9=_0x5aa476['getFirstRange'](),_0x476d63=_0x3f2ce7['getFirstRange']();if((0x0==_0x553c9a||0x1==_0x553c9a)&&0x2==_0x59c124&&_0x4b9ca9['isIntersecting'](_0x476d63))return!0x0;if(0x2==_0x553c9a&&0x3==_0x59c124){const _0x408337=_0x526d6f['_findSuggestions'](_0x4b9ca9,'insertion')['filter'](({suggestion:_0x23f168,meta:_0x22b442})=>_0x22b442['isOwn']&&'convertInlineImageToBlock'==_0x23f168['subType']);if(_0x408337['length']>0x1&&_0x476d63['end']['isEqual'](_0x4b9ca9['start']))return!0x0;if(0x1==_0x408337['length']&&(_0x4b9ca9['start']['isEqual'](_0x476d63['end'])||_0x4b9ca9['end']['isEqual'](_0x476d63['start'])))return!0x0;}if(0x3==_0x553c9a&&0x3==_0x59c124&&_0x4b9ca9['start']['isBefore'](_0x476d63['start'])){const _0x5a159f=_0x4b9ca9['end']['nodeAfter'],_0x37f9e8=_0x476d63['start']['nodeBefore'];return _0x17dd49['isBlockImage'](_0x5a159f)&&_0x5a159f===_0x37f9e8;}return!0x1;}_0x4af1dc['model']['document']['registerPostFixer'](()=>{let _0x2546ec=!0x1;const _0x33cd49=Array['from'](_0x4af1dc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c55b4,data:_0xb40871}of _0x33cd49){const {group:_0x69802d,type:_0x4d6430,subType:_0x1f316,id:_0xc02a65}=_0x526d6f['_splitMarkerName'](_0x5c55b4);if('suggestion'==_0x69802d&&_0x526d6f['hasSuggestion'](_0xc02a65)){if('formatBlock'==_0x4d6430&&('imageStylePreApply'==_0x1f316||'imageStylePostApply'==_0x1f316)){const _0x5d4b56=_0x526d6f['getSuggestion'](_0xc02a65);if(_0xb40871['newRange']){const _0x4b800f=_0x5d4b56['getFirstRange']()['getContainedElement']();if(_0x17dd49['isBlockImage'](_0x4b800f))continue;_0x526d6f['discardSuggestion'](_0x5d4b56),_0x2546ec=!0x0;}}if('insertion'==_0x4d6430&&'imageCaption'==_0x1f316&&!_0xb40871['newRange']){const _0x4427fc=_0x526d6f['getSuggestion'](_0xc02a65);_0x4427fc['next']&&_0x4427fc['next']['isInContent']&&(_0x526d6f['discardSuggestion'](_0x4427fc['next']),_0x2546ec=!0x0);}}}return _0x2546ec;}),this['_registerLegacyDescription'](_0x43d1e2);}['_registerLegacyDescription'](_0x46cae4){const _0x169a13=this['editor'],_0x23e242=_0x169a13['locale'];_0x169a13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4efd43=>{if('formatBlock'!=_0x4efd43['type']&&'formatInline'!=_0x4efd43['type'])return;const {data:_0x2ea464}=_0x4efd43;if(!_0x2ea464||'imageStyle'!=_0x2ea464['commandName'])return;const _0x113345=_0x2ea464['commandParams'][0x0]['value'];return _0x1d4b91('side'===_0x113345?o(_0x23e242,'FORMAT_SIDE_IMAGE'):_0x46cae4[_0x113345]||_0x113345);function _0x1d4b91(_0x529c1e){return{'type':'format','content':o(_0x23e242,'*Format:*\x20%0',_0x529c1e)};}});}}class ut extends _0x2f9a9e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2da95d){super(_0x2da95d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2120d8=this['editor'],_0x1ffdc3=_0x2120d8['commands']['get']('importWord'),_0xec0267=_0x2120d8['commands']['get']('trackChanges');_0x1ffdc3&&(_0x1ffdc3['on']('execute',(_0x1a9117,[,_0x3dfd08])=>{this['_trackChangesValueDuringImport']=_0xec0267['value'],_0x3dfd08['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1ffdc3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1ffdc3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xec0267['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2120d8['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x55fe59,_0x189967){const {suggestions:_0xa21f07}=_0x189967,_0x533c27=this['editor']['commands']['get']('trackChanges'),_0x4d7fa0=_0x533c27['value'];this['_trackChangesValueDuringImport']!==_0x4d7fa0&&(_0x533c27['execute'](),this['_trackChangesExecuted']=!0x0),_0xa21f07&&_0xa21f07['forEach'](({id:_0x1454d0,type:_0x1fa707,author:_0x5ea424,created_at:_0x5d9197})=>{const _0x411b49={'id':_0x1454d0,'type':_0x1fa707,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5ea424,'createdAt':_0x5d9197?new Date(_0x5d9197):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x411b49);});}}class ft extends _0x2f9a9e{['afterInit'](){const _0x3e99e6=this['editor'],_0xfce35=_0x3e99e6['plugins']['get']('TrackChangesEditing');if(_0x3e99e6['plugins']['has']('IndentEditing')&&(_0xfce35['enableCommand']('indent'),_0xfce35['enableCommand']('outdent')),_0x3e99e6['plugins']['has']('IndentBlock')){for(const _0x52f210 of['indentBlock','outdentBlock'])_0xfce35['enableDefaultAttributesIntegration'](_0x52f210);}const _0x530647=_0x3e99e6['locale'];_0xfce35['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x530647,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf0cf28=this['editor'],_0x1fbade=_0xf0cf28['locale'],_0x1f9e33=_0xf0cf28['plugins']['get']('TrackChangesEditing');_0x1f9e33['descriptionFactory']['registerDescriptionCallback'](_0x58c16e=>{if('formatBlock'!=_0x58c16e['type'])return;const {data:_0x374d8b}=_0x58c16e;if(!_0x374d8b)return;if('indentBlock'!=_0x374d8b['commandName']&&'outdentBlock'!=_0x374d8b['commandName'])return;const _0x2a4e35=_0x58c16e['getItems']()[0x0],_0x568862=_0x1f9e33['descriptionFactory']['getItemLabel'](_0x2a4e35);return'indentBlock'==_0x374d8b['commandName']?{'type':'format','content':o(_0x1fbade,'*Indent:*\x20%0',_0x568862)}:'outdentBlock'==_0x374d8b['commandName']?{'type':'format','content':o(_0x1fbade,'*Outdent:*\x20%0',_0x568862)}:void 0x0;});}}class ht extends _0x2f9a9e{static get['requires'](){return[_0x166587];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2f9a9e{['afterInit'](){const _0x342d7a=this['editor'];if(!_0x342d7a['plugins']['has']('LinkEditing'))return;const _0x43b59c=_0x342d7a['plugins']['get']('TrackChangesEditing'),_0x28694d=_0x342d7a['commands']['get']('link');_0x43b59c['enableDefaultAttributesIntegration']('link'),_0x43b59c['enableDefaultAttributesIntegration']('unlink');for(const _0x56f2c0 of _0x28694d['manualDecorators'])_0x43b59c['descriptionFactory']['registerAttributeLabel'](_0x56f2c0['id'],'link\x20('+_0x56f2c0['label']['toLowerCase']()+')');_0x43b59c['descriptionFactory']['registerDescriptionCallback'](_0x52dc08=>{if('attribute'!=_0x52dc08['type'])return;const {data:_0x3f8c2}=_0x52dc08;if(!_0x3f8c2||'linkHref'!=_0x3f8c2['key'])return;const _0x4261ea=_0x3f8c2['newValue'],_0x48f687=_0x342d7a['locale'];return{'type':'format','content':null==_0x4261ea?o(_0x48f687,'*Remove\x20link*'):o(_0x48f687,'*Set\x20link:*\x20%0','\x22'+_0x4261ea+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17ee94=this['editor'],_0x2e681b=_0x17ee94['locale'];_0x17ee94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34d0f9=>{if('formatInline'!=_0x34d0f9['type'])return;const {data:_0x5e0f06}=_0x34d0f9;if(_0x5e0f06){if('link'==_0x5e0f06['commandName']){const _0x4f2cc0=_0x5e0f06['commandParams'][0x0];return{'type':'format','content':o(_0x2e681b,'*Set\x20link:*\x20%0','\x22'+_0x4f2cc0+'\x22')};}return'unlink'==_0x5e0f06['commandName']?{'type':'format','content':o(_0x2e681b,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2f9a9e{['afterInit'](){const _0x36886e=this['editor'],_0x28b78c=_0x36886e['locale'];if(!_0x36886e['plugins']['has']('LegacyListEditing'))return;const _0x2e1625=_0x36886e['plugins']['get']('TrackChangesEditing'),_0x182c3a=_0x36886e['plugins']['has']('LegacyTodoListEditing');function _0x41734b(_0x538fb9){return()=>{const _0x5f3f3c=_0x36886e['model']['document']['selection'],_0x490883=_0x36886e['commands']['get'](_0x538fb9);if(_0x490883['value'])return void _0x36886e['execute']('paragraph',{});const _0x35f9a7=_0x538fb9['slice'](0x0,-0x4),_0x3bf77d=function(_0x446a1b,_0xc8daf9,_0x2dcead){let _0x543212=Array['from'](_0x446a1b)['filter'](_0x4f135e=>function(_0x21ea93,_0x9c9d9f){return _0x9c9d9f['checkChild'](_0x21ea93['parent'],'listItem')&&!_0x9c9d9f['isObject'](_0x21ea93);}(_0x4f135e,_0x2dcead));_0x543212=_0x543212['filter'](_0x284426=>!_0x284426['is']('element','listItem')||_0x284426['getAttribute']('listType')!=_0xc8daf9);const _0x3972b1=new Set();for(const _0x46dc3d of _0x543212)_0x46dc3d['is']('element','listItem')?_0x3972b1['add'](Le(_0x46dc3d)):_0x3972b1['add'](_0x46dc3d);return Array['from'](_0x3972b1);}(_0x5f3f3c['getSelectedBlocks'](),_0x35f9a7,_0x36886e['model']['schema']);_0x36886e['model']['change'](()=>{for(const _0xe66472 of _0x3bf77d)_0x2e1625['markBlockFormat'](_0xe66472,{'commandName':_0x538fb9,'commandParams':[{'forceValue':!_0x490883['value']}],'formatGroupId':'blockName'},Ee(_0xe66472));});};}function _0xc29db4(_0xff4d5b){return()=>{const _0x193dbc=function(_0x248ddb){let _0x225a23=Array['from'](_0x248ddb);const _0x157d6a=_0x225a23['findIndex'](_0x1b6819=>'listItem'!=_0x1b6819['name']);return _0x157d6a>-0x1&&(_0x225a23=_0x225a23['slice'](0x0,_0x157d6a)),_0x225a23;}(_0x36886e['model']['document']['selection']['getSelectedBlocks']()),_0x57aaaf=_0x36886e['model']['createRange'](_0x36886e['model']['createPositionAt'](_0x193dbc[0x0],'before'),_0x36886e['model']['createPositionAt'](_0x193dbc[_0x193dbc['length']-0x1],'end'));_0x36886e['model']['change'](()=>{_0x2e1625['markBlockFormat'](_0x57aaaf,{'commandName':_0xff4d5b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x21789c){const _0x1f8325=new Set();for(const _0x28aae9 of _0x21789c){let _0x38978b=_0x28aae9['nextSibling'];for(;_0x38978b&&_0x38978b['getAttribute']('listIndent')>_0x28aae9['getAttribute']('listIndent');)_0x1f8325['add'](_0x38978b),_0x38978b=_0x38978b['nextSibling'];}return Array['from'](_0x1f8325);}(_0x193dbc));});};}_0x2e1625['enableCommand']('numberedList',_0x41734b('numberedList')),_0x2e1625['enableCommand']('bulletedList',_0x41734b('bulletedList')),_0x182c3a&&_0x2e1625['enableCommand']('todoList',_0x41734b('todoList')),_0x2e1625['enableCommand']('indentList',_0xc29db4('indentList')),_0x2e1625['enableCommand']('outdentList',_0xc29db4('outdentList')),_0x182c3a&&_0x2e1625['enableCommand']('checkTodoList',()=>{const _0x55dfb5=_0x36886e['commands']['get']('checkTodoList'),_0x1b5b08=Array['from'](_0x55dfb5['_selectedElements']);_0x1b5b08['filter'](_0x587b00=>_0x587b00['getAttribute']('todoListChecked')!=_0x55dfb5['value']),_0x36886e['model']['change'](()=>{for(const _0x4986c7 of _0x1b5b08)_0x2e1625['markBlockFormat'](_0x4986c7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x55dfb5['value']}]});});}),_0x2e1625['descriptionFactory']['registerElementLabel']('listItem',_0x1a81c6=>o(_0x28b78c,'ELEMENT_LIST_ITEM',_0x1a81c6)),_0x2e1625['descriptionFactory']['registerDescriptionCallback'](_0x3c52a2=>{if('formatBlock'!=_0x3c52a2['type']&&'formatInline'!=_0x3c52a2['type'])return;const {data:_0x2addd0}=_0x3c52a2;if(_0x2addd0){if('numberedList'==_0x2addd0['commandName']||'bulletedList'==_0x2addd0['commandName']||'todoList'==_0x2addd0['commandName'])switch(_0x2addd0['commandName']['replace']('List','')){case'bulleted':return _0x5c1f4c(o(_0x28b78c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c1f4c(o(_0x28b78c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c1f4c(o(_0x28b78c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2addd0['commandName'])return{'type':'format','content':o(_0x28b78c,'*Indent:*\x20%0',o(_0x28b78c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2addd0['commandName'])return{'type':'format','content':o(_0x28b78c,'*Outdent:*\x20%0',o(_0x28b78c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2addd0['commandName'])return _0x2addd0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28b78c,'*Check\x20item*')}:{'type':'format','content':o(_0x28b78c,'*Uncheck\x20item*')};}function _0x5c1f4c(_0x4411df){return{'type':'format','content':o(_0x28b78c,'*Change\x20to:*\x20%0',_0x4411df)};}});}}function Le(_0x3d90bb){const _0x3af68e=_0x3d90bb['getAttribute']('listIndent');if(0x0==_0x3af68e)return _0x3d90bb;let _0x27798f=_0x3d90bb;for(;_0x3d90bb['previousSibling']&&_0x3d90bb['previousSibling']['is']('element','listItem');){const _0x26c9d2=_0x3d90bb['previousSibling']['getAttribute']('listIndent');if(_0x26c9d2==_0x3af68e)_0x27798f=_0x3d90bb['previousSibling'];else{if(_0x26c9d2<_0x3af68e)break;}_0x3d90bb=_0x3d90bb['previousSibling'];}return _0x27798f;}function Ee(_0x281c9f){const _0x31b24f=[];if(_0x281c9f['is']('element','listItem')&&_0x281c9f['getAttribute']('listIndent')>0x0){let _0x437601=_0x281c9f['nextSibling'];for(;_0x437601&&'listItem'==_0x437601['name']&&_0x437601['getAttribute']('listIndent')==_0x281c9f['getAttribute']('listIndent');)_0x31b24f['push'](_0x437601),_0x437601=_0x437601['nextSibling'];}return _0x31b24f;}class mt extends _0x2f9a9e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2a5b14=this['editor']['config']['get']('list.properties'),_0x50d099=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a5b14['styles']&&_0x50d099['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2a5b14['reversed']&&_0x50d099['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2a5b14['startIndex']&&_0x50d099['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x50d099['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x904b9d,_0xc22bb7={}){const _0x47fbe1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9e4832=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x47fbe1['markMultiRangeBlockFormat'](_0x9e4832,{'commandName':'listStyle','commandParams':[{'type':_0xc22bb7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x856ddd,_0x37000c={}){const _0x290a95=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d8ba9=this['_getSuggestionBlocks'](_0x2e9fb4=>_0x2e9fb4['is']('element','listItem')&&'numbered'===_0x2e9fb4['getAttribute']('listType'));if(_0x1d8ba9['length']<0x1)return;const _0x180228=_0x1d8ba9['map'](_0x987a1a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x987a1a,'before'),this['editor']['model']['createPositionAt'](_0x987a1a,0x0)));this['editor']['model']['change'](()=>{_0x290a95['markMultiRangeBlockFormat'](_0x180228,{'commandName':'listReversed','commandParams':[{'reversed':_0x37000c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1ae69c,_0x492f8d={}){const _0x18482d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52ceed=this['_getSuggestionBlocks'](_0x190bf9=>_0x190bf9['is']('element','listItem')&&'numbered'===_0x190bf9['getAttribute']('listType'));if(_0x52ceed['length']<0x1)return;const _0x304c40=_0x52ceed['map'](_0x39cc48=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x39cc48,'before'),this['editor']['model']['createPositionAt'](_0x39cc48,0x0)));this['editor']['model']['change'](()=>{_0x18482d['markMultiRangeBlockFormat'](_0x304c40,{'commandName':'listStart','commandParams':[{'startIndex':_0x492f8d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5ab607){if('formatBlock'!=_0x5ab607['type']&&'formatInline'!=_0x5ab607['type'])return;const _0x40ed38=this['editor']['locale'],{data:_0x214ee5}=_0x5ab607;if(!_0x214ee5)return;let _0x597381,_0x5df04b;switch(_0x214ee5['commandName']){case'listStyle':_0x597381='*Change\x20to:*\x20%0',_0x5df04b={'type':'format','content':o(_0x40ed38,_0x597381,o(_0x40ed38,this['_getTranslationKeyForListStyle'](_0x214ee5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x597381=_0x214ee5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5df04b={'type':'format','content':o(_0x40ed38,_0x597381)};break;case'listStart':_0x597381='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5df04b={'type':'format','content':o(_0x40ed38,_0x597381,_0x214ee5['commandParams'][0x0]['startIndex'])};}return _0x5df04b;}['_getSuggestionBlocksForListStyle'](){const _0xea4bd9=this['editor']['plugins']['get']('LegacyListUtils');let _0x4dba35=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4dba35[0x0]?.['is']('element','listItem')&&_0x4dba35['unshift'](..._0xea4bd9['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4dba35[_0x4dba35['length']-0x1]?.['is']('element','listItem')&&_0x4dba35['push'](..._0xea4bd9['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4dba35=[...new Set(_0x4dba35)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4dba35=_0x4dba35['filter'](_0x3ff47c=>_0x3ff47c['is']('element','listItem'))),_0x4dba35;}['_getSuggestionBlocks'](_0x331947){const _0x1fa29c=this['editor']['plugins']['get']('LegacyListUtils');let _0x52b084=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x331947)['map'](_0x29dcbb=>{const _0x2c2284=this['editor']['model']['createPositionAt'](_0x29dcbb,0x0);return[..._0x1fa29c['getSiblingNodes'](_0x2c2284,'backward'),..._0x1fa29c['getSiblingNodes'](_0x2c2284,'forward')];})['flat']();return _0x52b084=[...new Set(_0x52b084)],_0x52b084;}['_getTranslationKeyForListStyle'](_0x1b3ef4){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1b3ef4)||'default')['toUpperCase']()+'_LIST_'+_0x1b3ef4['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2f9a9e{['afterInit'](){const _0x61026a=this['editor'];if(!_0x61026a['plugins']['has']('MediaEmbedEditing'))return;const _0x1e114b=_0x61026a['plugins']['get']('TrackChangesEditing'),_0x583e1f=_0x61026a['locale'];_0x1e114b['enableCommand']('mediaEmbed'),_0x1e114b['descriptionFactory']['registerElementLabel']('media',_0x493111=>o(_0x583e1f,'ELEMENT_MEDIA',_0x493111));}}class pt extends _0x2f9a9e{['afterInit'](){const _0x5c7a86=this['editor'];_0x5c7a86['plugins']['has']('MentionEditing')&&_0x5c7a86['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2f9a9e{['afterInit'](){const _0x270be8=this['editor'];if(!_0x270be8['plugins']['has']('MergeFieldsEditing'))return;const _0x3f4492=_0x270be8['plugins']['get']('TrackChangesEditing'),_0xc69ffb=_0x270be8['locale'];_0x3f4492['enableCommand']('insertMergeField'),_0x3f4492['enableCommand']('insertMergeFieldBlock'),_0x3f4492['enableCommand']('insertMergeFieldImage'),_0x3f4492['descriptionFactory']['registerElementLabel']('mergeField',_0x34f26b=>o(_0xc69ffb,'ELEMENT_MERGE_FIELD',_0x34f26b)),_0x3f4492['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x40ecf2=>o(_0xc69ffb,'ELEMENT_MERGE_FIELD',_0x40ecf2)),_0x3f4492['descriptionFactory']['registerDescriptionCallback'](_0x329b56=>{if('insertion'!=_0x329b56['type']&&'deletion'!=_0x329b56['type'])return;const _0x99d697=_0x329b56['getContainedElement']();if(null==_0x99d697)return;const _0x9f1053=_0x270be8['plugins']['get']('MergeFieldsEditing');let _0x4826a5;switch(_0x9f1053['getMergeFieldType'](_0x99d697)){case null:return;case'image':{const _0x16db0f=_0x9f1053['unwrapAffixes'](_0x99d697['getAttribute']('src'));_0x4826a5=_0x9f1053['getLabel'](_0x16db0f)||_0x16db0f;break;}default:{const _0x43b06a=_0x99d697['getAttribute']('id');_0x4826a5=_0x9f1053['getLabel'](_0x43b06a)||_0x43b06a;break;}}return'insertion'==_0x329b56['type']?{'type':'insertion','content':o(_0xc69ffb,'*Insert:*\x20%0','\x22'+_0x4826a5+'\x22\x20'+o(_0xc69ffb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xc69ffb,'*Remove:*\x20%0','\x22'+_0x4826a5+'\x22\x20'+o(_0xc69ffb,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2f9a9e{['afterInit'](){const _0x3df09f=this['editor'],_0x1d2ed0=_0x3df09f['plugins']['get']('TrackChangesEditing');_0x3df09f['plugins']['has']('MultiLevelList')&&(_0x1d2ed0['enableDefaultAttributesIntegration']('multiLevelList'),_0x1d2ed0['descriptionFactory']['registerDescriptionCallback'](_0x303e25=>this['handleDescriptions'](_0x303e25)));}['handleDescriptions'](_0x5aff1f){const _0x347906=this['editor']['locale'],{data:_0x4119b8}=_0x5aff1f,_0x47a83e={'type':'format','content':''};if(_0x4119b8&&'listMarkerStyle'==_0x4119b8['key']){if(!_0x4119b8['oldValue'])return{'type':'format','content':o(_0x347906,'*Set\x20format:*\x20%0',o(_0x347906,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4119b8['newValue']+')'};if(!_0x4119b8['newValue']){let _0x10d30a=_0x5aff1f['head'];for(;_0x10d30a;){if(_0x10d30a['data']&&'listType'==_0x10d30a['data']['key']&&_0x10d30a['data']['newValue'])return _0x47a83e;_0x10d30a=_0x10d30a['next'];}return{'type':'format','content':o(_0x347906,'*Remove\x20format:*\x20%0',o(_0x347906,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4119b8['oldValue']+')'};}}}}class bt extends _0x2f9a9e{['afterInit'](){const _0x1867b7=this['editor'];if(!_0x1867b7['plugins']['has']('PageBreakEditing'))return;_0x1867b7['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d7cad=_0x1867b7['plugins']['get']('TrackChangesEditing'),_0x5e5350=_0x1867b7['locale'];_0x3d7cad['descriptionFactory']['registerElementLabel']('pageBreak',_0xd41d39=>o(_0x5e5350,'ELEMENT_PAGE_BREAK',_0xd41d39));}}class yt extends _0x2f9a9e{['afterInit'](){const _0x3314c8=this['editor'];if(!_0x3314c8['plugins']['has']('Paragraph'))return;const _0x117973=_0x3314c8['locale'],_0x27d125=_0x3314c8['plugins']['get']('TrackChangesEditing');_0x27d125['descriptionFactory']['registerElementLabel']('paragraph',_0x1c0791=>o(_0x117973,'ELEMENT_PARAGRAPH',_0x1c0791)),_0x27d125['enableDefaultAttributesIntegration']('paragraph'),_0x27d125['enableCommand']('insertParagraph');const _0x596dde=_0x27d125['descriptionFactory'];_0x596dde['registerDescriptionCallback'](_0x531529=>{if('insertion'!==_0x531529['type'])return;const {start:_0x1f59a8,end:_0x33e673}=_0x531529['getFirstRange']();if(!_0x1f59a8['isTouching'](_0x33e673)||!_0x1f59a8['nodeAfter'])return;const _0x171cdd=_0x3314c8['model']['schema'],_0x1cd0ef=_0x1f59a8['nodeAfter'];return _0x171cdd['isBlock'](_0x1cd0ef)&&!_0x171cdd['isLimit'](_0x1cd0ef)&&_0x171cdd['checkChild'](_0x1cd0ef,'$text')?{'type':'insertion','content':o(_0x117973,'*Insert:*\x20%0',_0x596dde['getItemLabel'](_0x1cd0ef,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd278c3=this['editor'],_0x354e74=_0xd278c3['locale'];_0xd278c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11cd10=>{if('formatBlock'!=_0x11cd10['type'])return;const {data:_0x2c34b5}=_0x11cd10;return _0x2c34b5&&'paragraph'==_0x2c34b5['commandName']?{'type':'format','content':o(_0x354e74,'*Change\x20to:*\x20%0',o(_0x354e74,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x2f9a9e{['afterInit'](){const _0x4bf398=this['editor'];_0x4bf398['commands']['get']('replaceSource')&&_0x4bf398['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2f9a9e{['afterInit'](){const _0x4fe162=this['editor'];if(!_0x4fe162['plugins']['has']('RemoveFormatEditing'))return;_0x4fe162['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1915d0=this['editor'];_0x1915d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x532cfa=>{if('formatBlock'!=_0x532cfa['type']&&'formatInline'!=_0x532cfa['type'])return;const {data:_0x12ea66}=_0x532cfa;return _0x12ea66&&'removeFormat'==_0x12ea66['commandName']?{'type':'format','content':o(_0x1915d0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x2f9a9e{['afterInit'](){const _0x52fd6d=this['editor'];if(!_0x52fd6d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x23917f=_0x52fd6d['plugins']['get']('TrackChangesEditing');_0x23917f['enableCommand']('goToPreviousRestrictedEditingException'),_0x23917f['enableCommand']('goToNextRestrictedEditingException');const _0x4c7472=_0x52fd6d['plugins']['get']('RestrictedEditingModeEditing');_0x4c7472['enableCommand']('trackChanges'),_0x4c7472['enableCommand']('acceptSuggestion'),_0x4c7472['enableCommand']('discardSuggestion'),_0x4c7472['enableCommand']('acceptAllSuggestions'),_0x4c7472['enableCommand']('discardAllSuggestions'),_0x4c7472['enableCommand']('acceptSelectedSuggestions'),_0x4c7472['enableCommand']('discardSelectedSuggestions');}}class At extends _0x2f9a9e{['afterInit'](){const _0x180f3e=this['editor'];if(!_0x180f3e['plugins']['has']('ShiftEnter'))return;const _0x53d0bc=_0x180f3e['plugins']['get']('TrackChangesEditing');_0x53d0bc['enableCommand']('shiftEnter'),_0x53d0bc['descriptionFactory']['registerElementLabel']('softBreak',_0x4ac421=>o(_0x180f3e['locale'],'ELEMENT_LINE_BREAK',_0x4ac421));}}function an(_0xce328e,_0x326305,_0x5294bc){const _0x1cd467=[];for(const _0x2bcbfe of _0x326305['getItems']())_0x2bcbfe['hasAttribute'](_0xce328e)&&_0x1cd467['push'](_0x5294bc['createRangeOn'](_0x2bcbfe));return _0x1cd467;}class _t extends _0x2f9a9e{['afterInit'](){const _0x5d244d=this['editor'],_0x5140c3=_0x5d244d['plugins']['get']('TrackChangesEditing');_0x5d244d['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x5140c3['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x45901f=this['editor'],_0x1d8a3e=_0x45901f['model'],_0x4f5849=_0x45901f['locale'],_0x75155b=_0x45901f['plugins']['get']('TrackChangesEditing'),_0x3a8ea3='restrictedEditingException',_0x4f86f0=_0x45901f['commands']['get'](_0x3a8ea3);_0x75155b['enableCommand'](_0x3a8ea3,(_0x1bf53f,_0x34d522={})=>{const _0x6b9dd8=_0x1d8a3e['document']['selection'];if(_0x6b9dd8['isCollapsed'])return void _0x1bf53f(_0x34d522);const _0x153f36=void 0x0!==_0x34d522['forceValue']?_0x34d522['forceValue']:!_0x4f86f0['value'];_0x1d8a3e['change'](()=>{const _0x1363f9=Array['from'](_0x6b9dd8['getRanges']());for(const _0x5cae24 of _0x1363f9){const _0x59c1c6=_0x153f36?[_0x5cae24]:an(_0x3a8ea3,_0x5cae24,_0x1d8a3e);for(const _0x3cdd30 of _0x59c1c6)_0x75155b['markInlineFormat'](_0x3cdd30,{'commandName':_0x3a8ea3,'commandParams':[{'forceValue':_0x153f36}]});}});}),_0x75155b['descriptionFactory']['registerDescriptionCallback'](_0x5d9ef6=>{if('formatBlock'!=_0x5d9ef6['type']&&'formatInline'!=_0x5d9ef6['type'])return;const {data:_0x1476ea}=_0x5d9ef6;return _0x1476ea&&_0x1476ea['commandName']==_0x3a8ea3?_0x1476ea['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f5849,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4f5849,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x11e079=this['editor'],_0x2cd00f=_0x11e079['locale'],_0x5ee5be=_0x11e079['plugins']['get']('TrackChangesEditing'),_0x2c14dc='restrictedEditingExceptionBlock',_0x4c24e2=this['editor']['commands']['get'](_0x2c14dc);_0x5ee5be['enableCommand'](_0x2c14dc,(_0x5e6af2,_0x3c228e={})=>{const _0x22cb9e=this['editor']['model']['document']['selection'],_0x26975a=_0x3c228e&&void 0x0!==_0x3c228e['forceValue']?_0x3c228e['forceValue']:!_0x4c24e2['value'];let _0x7e069=[];if(_0x26975a){const _0x45ac0f=Array['from'](_0x22cb9e['getSelectedBlocks']())['filter'](_0x131a8a=>function(_0x5ae610){return!!_0x5ae610['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x131a8a)||function(_0x132207,_0x3e4607){const _0x3d127d=_0x3e4607['createContext'](_0x132207['parent']);if(!_0x3e4607['checkChild'](_0x3d127d,'restrictedEditingException'))return!0x1;if(!_0x3e4607['checkChild'](_0x3d127d['push']('restrictedEditingException'),_0x132207))return!0x1;return!0x0;}(_0x131a8a,this['editor']['model']['schema']));_0x7e069=to(_0x45ac0f,_0x11e079['model']);}else{const _0x590219=Array['from'](_0x22cb9e['getSelectedBlocks']())['map'](_0x2a14a6=>function(_0x45ae9f){let _0x112229=_0x45ae9f;for(;_0x112229['parent'];){if('restrictedEditingException'==_0x112229['parent']['name'])return _0x112229;_0x112229=_0x112229['parent'];}return null;}(_0x2a14a6))['filter'](_0x5bd2a3=>!!_0x5bd2a3);_0x7e069=to(_0x590219,_0x11e079['model']);}_0x11e079['model']['change'](()=>{for(const _0xf9c270 of _0x7e069)_0x5ee5be['markBlockFormat'](_0xf9c270,{'commandName':_0x2c14dc,'commandParams':[{'forceValue':_0x26975a}]});});}),_0x5ee5be['descriptionFactory']['registerDescriptionCallback'](_0x1fdfb3=>{const {data:_0x14483b}=_0x1fdfb3;if(_0x14483b&&_0x14483b['commandName']==_0x2c14dc)return _0x14483b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2cd00f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2cd00f,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x2f9a9e{['afterInit'](){const _0x1474b3=this['editor'];if(!_0x1474b3['plugins']['has']('Style')||!_0x1474b3['plugins']['has']('DataSchema'))return;const _0x32f67e=_0x1474b3['plugins']['get']('TrackChangesEditing'),_0x12228a=_0x1474b3['locale'],_0x315d9c=_0x1474b3['config']['get']('style')||{},_0x5b4379=_0x1474b3['plugins']['get']('GeneralHtmlSupport'),_0x20068b=_0x1474b3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1474b3['plugins']['get']('DataSchema'),_0x315d9c['definitions']);_0x32f67e['enableDefaultAttributesIntegration']('style');const _0x3824bc=new Set();for(const _0x573d8e of _0x20068b['block']){const _0x59cf67=_0x5b4379['getGhsAttributeNameForElement'](_0x573d8e['element']);_0x3824bc['add'](_0x59cf67);}const _0xffce19=new Set();for(const _0x505ac3 of _0x20068b['inline']){const _0x3f7bcc=_0x5b4379['getGhsAttributeNameForElement'](_0x505ac3['element']);_0xffce19['add'](_0x3f7bcc);for(const _0x30e568 of _0x505ac3['ghsAttributes'])_0xffce19['add'](_0x30e568);}for(const _0x345a8e of _0x3824bc)_0x32f67e['descriptionFactory']['registerAttributeLabel'](_0x345a8e,o(_0x12228a,'FORMAT_STYLE'));for(const _0x154906 of _0xffce19)_0x32f67e['descriptionFactory']['registerAttributeLabel'](_0x154906,o(_0x12228a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x281d1c=this['editor'],_0xf60926=_0x281d1c['locale'];_0x281d1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbec4e8=>{if('formatBlock'!=_0xbec4e8['type']&&'formatInline'!=_0xbec4e8['type'])return;const {data:_0x449f79}=_0xbec4e8;return _0x449f79&&'style'===_0x449f79['commandName']?_0x449f79['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf60926,'*Set\x20format:*\x20%0',_0x449f79['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xf60926,'*Remove\x20format:*\x20%0',_0x449f79['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x2f9a9e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xe75796){super(_0xe75796),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5a55aa=this['editor'],_0x3dd8c8=_0x5a55aa['model']['document']['selection'];if(!_0x5a55aa['plugins']['has']('TableEditing'))return;const _0x311daf=_0x5a55aa['locale'],_0x355795=_0x5a55aa['plugins']['get']('TrackChangesEditing'),_0xe4a499=_0x5a55aa['plugins']['get']('TableUtils');_0x355795['descriptionFactory']['registerElementLabel']('table',_0x3ac174=>o(_0x311daf,'ELEMENT_TABLE',_0x3ac174)),this['_setupColumnsRowsFixing'](),_0x355795['enableCommand']('insertTable'),_0x355795['enableCommand']('selectTableRow'),_0x355795['enableCommand']('selectTableColumn');for(const _0x53817a of['insertTableRowAbove','insertTableRowBelow']){const _0x549ea3=_0x5a55aa['commands']['get'](_0x53817a);_0x355795['enableCommand'](_0x53817a,_0x28844e=>{_0x5a55aa['model']['change'](_0x4bc1dc=>{_0x28844e();const _0x3791c1='above'===_0x549ea3['order'],_0x2b7143=_0xe4a499['getSelectionAffectedTableCells'](_0x3dd8c8),_0x1c6546=_0xe4a499['getRowIndexes'](_0x2b7143),_0x23e74d=_0x3791c1?_0x1c6546['first']-0x1:_0x1c6546['last']+0x1,_0x3335b7=_0x2b7143[0x0]['findAncestor']('table'),_0x27fc8e=_0xe4a499['createTableWalker'](_0x3335b7,{'startRow':_0x23e74d,'endRow':_0x23e74d}),_0x51cc58=Array['from'](_0x27fc8e)['map'](_0x3f1daf=>_0x4bc1dc['createRangeOn'](_0x3f1daf['cell']));_0x355795['markMultiRangeInsertion'](_0x51cc58,'tableRow');});});}for(const _0x4610b4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3b5f58=_0x5a55aa['commands']['get'](_0x4610b4);_0x355795['enableCommand'](_0x4610b4,_0x397984=>{_0x5a55aa['model']['change'](_0x39a3c5=>{_0x397984();const _0x2f4b2d='left'===_0x3b5f58['order'],_0x5bb880=_0xe4a499['getSelectionAffectedTableCells'](_0x3dd8c8),_0x1eb16e=_0xe4a499['getColumnIndexes'](_0x5bb880),_0x5735c0=_0x2f4b2d?_0x1eb16e['first']-0x1:_0x1eb16e['last']+0x1,_0x19b866=_0x5bb880[0x0]['findAncestor']('table'),_0x4393bf=_0xe4a499['createTableWalker'](_0x19b866,{'startRow':0x0,'column':_0x5735c0,'includeAllSlots':!0x1}),_0x4314a8=Array['from'](_0x4393bf)['map'](_0x32c1bd=>_0x39a3c5['createRangeOn'](_0x32c1bd['cell']));_0x355795['markMultiRangeInsertion'](_0x4314a8,'tableColumn');});});}for(const _0x4cb7f9 of['removeTableRow','removeTableColumn']){const _0x5864df=_0x4cb7f9['substr'](0xb),_0x36fa5e=_0x5864df['toLowerCase'](),_0x12accf=_0x36fa5e['substr'](0x0,0x3)+'span',_0x45912b='table'+_0x5864df,_0x31db15='min'+_0x5864df,_0x2ff2ae='max'+_0x5864df;_0x355795['enableCommand'](_0x4cb7f9,()=>{_0x5a55aa['model']['change'](_0xc994bf=>{const _0x444f00=_0xe4a499['getSelectionAffectedTableCells'](_0x3dd8c8),_0x5c8f33=_0x444f00[0x0]['findAncestor']('table');let _0x261b0e;if('removeTableRow'==_0x4cb7f9){const _0x57f55f=_0xe4a499['getRowIndexes'](_0x444f00);_0x261b0e={'startRow':_0x57f55f['first'],'endRow':_0x57f55f['last'],'includeAllSlots':!0x0};}else{const _0x1a183d=_0xe4a499['getColumnIndexes'](_0x444f00);_0x261b0e={'startColumn':_0x1a183d['first'],'endColumn':_0x1a183d['last'],'includeAllSlots':!0x0};}const _0x5e5d0c=_0xe4a499['createTableWalker'](_0x5c8f33,_0x261b0e),_0x5c4a3e=Array['from'](_0x5e5d0c)['map'](({cell:_0x4397f4})=>_0x4397f4),_0x2d428b=_e(_0x5c4a3e['filter'](_0x9c1585=>_0x9c1585['hasAttribute'](_0x12accf))),_0x4c8d5d=_e(_0x5c4a3e['filter'](_0x433698=>!_0x433698['hasAttribute'](_0x12accf)))['map'](_0x7fa6ee=>_0xc994bf['createRangeOn'](_0x7fa6ee)),_0x2fc028=_0x355795['markMultiRangeDeletion'](_0x4c8d5d,_0x45912b);if(_0x2fc028&&('tableRow'==_0x2fc028['subType']||'tableColumn'==_0x2fc028['subType'])){const _0x581ea8=this['_getSuggestionCoords'](_0x2fc028);for(const _0x5899fd of _0x2d428b){const _0x1f6fed=_0xc994bf['createRangeOn'](_0x5899fd),_0x557058=_0xe4a499['getCellLocation'](_0x5899fd),_0x30bc4c=_0x5899fd['getAttribute'](_0x12accf)-0x1,_0x25650e=_0x581ea8[_0x31db15],_0x20390e=_0x581ea8[_0x2ff2ae];_0x25650e<=_0x557058[_0x36fa5e]&&_0x557058[_0x36fa5e]+_0x30bc4c<=_0x20390e&&_0x2fc028['addRange'](_0x1f6fed);}}});});}function _0x2c4fc8(_0x533ce4){const _0x5e5619=Array['from'](_0x3dd8c8['getRanges']())['map'](_0x600f96=>_0xf95a74['fromRange'](_0x600f96));_0x5a55aa['model']['change'](_0x467fd8=>{const _0x392278=_0x467fd8['batch'];_0x533ce4=_0x533ce4['filter'](_0x475870=>'$graveyard'!=_0x475870['root']['rootName']),_0x467fd8['setSelection'](_0x533ce4),_0x5a55aa['commands']['get']('removeTableRow')['refresh'](),_0x5a55aa['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5a55aa['model']['enqueueChange'](()=>{_0x5a55aa['model']['enqueueChange'](_0x392278,_0x38d32d=>{const _0x573ce3=_0x5e5619['filter'](_0x26fa32=>'$graveyard'!=_0x26fa32['root']['rootName']);_0x573ce3['length']>0x0&&_0x38d32d['setSelection'](_0x573ce3);for(const _0x53b93a of _0x5e5619)_0x53b93a['detach']();});});});}function _0x2ad995(_0x15a56c){_0x5a55aa['model']['change'](_0x2579a1=>{const _0x60feab=Array['from'](_0x3dd8c8['getRanges']())['map'](_0x31d2b1=>_0xf95a74['fromRange'](_0x31d2b1)),_0x2ba475=[];for(const _0x3af668 of _0x15a56c)for(const _0x5169bb of _0x3af668['getItems']({'shallow':!0x0}))_0x2ba475['push'](_0x5169bb);for(const _0x101945 of _0x2ba475)'$graveyard'!=_0x101945['root']['rootName']&&(_0x2579a1['setSelection'](_0x2579a1['createPositionAt'](_0x101945,0x0)),_0x5a55aa['commands']['get']('removeTableColumn')['refresh'](),_0x5a55aa['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xfcd2c0=_0x60feab['filter'](_0x5a9483=>'$graveyard'!=_0x5a9483['root']['rootName']);_0xfcd2c0['length']>0x0&&_0x2579a1['setSelection'](_0xfcd2c0);for(const _0x2b7778 of _0x60feab)_0x2b7778['detach']();});}function _0x4429f6(_0x6a100e,_0x2d6cf2){return _0x2d6cf2['every'](_0x2a548e=>_0x6a100e['some'](_0x42d28f=>_0x42d28f['end']['isEqual'](_0x2a548e['start'])||_0x2a548e['end']['isEqual'](_0x42d28f['start'])));}function _0x71ea23(_0x21507d,_0x5dc1ab){return!_0x21507d['some'](_0x19ec10=>_0x5dc1ab['some'](_0x5a8957=>_0x19ec10['isIntersecting'](_0x5a8957)))&&_0x21507d['some'](_0x94f57=>_0x5dc1ab['some'](_0x2342f6=>_0x94f57['end']['isTouching'](_0x2342f6['start'])));}_0x355795['descriptionFactory']['registerDescriptionCallback'](_0x2b8564=>{if('insertion'!=_0x2b8564['type']&&'deletion'!=_0x2b8564['type'])return;const _0x384312=_0x2b8564['getContainedElement']();if(null!=_0x384312&&_0x384312['is']('element','table')){if('insertion'==_0x2b8564['type']){const _0x2023c5=_0x2b8564['getItems']()['filter'](_0x2457b1=>_0x2457b1['is']('$textProxy'))['map'](_0x40311a=>_0x40311a['data']);if(_0x2023c5['length'])return{'type':'insertion','content':o(_0x311daf,'*Insert:*\x20%0',o(_0x311daf,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2023c5['join']('\x20')+'\x22'))};}if('deletion'==_0x2b8564['type']){const _0x5b4e10=_0x2b8564['getItems']()['filter'](_0x4232aa=>_0x4232aa['is']('$textProxy'))['map'](_0x1641c5=>_0x1641c5['data']);if(_0x5b4e10['length'])return{'type':'deletion','content':o(_0x311daf,'*Remove:*\x20%0',o(_0x311daf,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5b4e10['join']('\x20')+'\x22'))};}}}),_0x355795['descriptionFactory']['registerDescriptionCallback'](_0x4e710e=>{if('tableRow'==_0x4e710e['subType']){const _0x4acd6b=_0x4e710e['getItems']()['filter'](_0x35bdec=>_0x35bdec['is']('$textProxy'))['map'](_0x5052f2=>_0x5052f2['data']),_0x4d5bff=this['_getSuggestionCoords'](_0x4e710e),_0x2c16d7=_0x4d5bff['maxRow']-_0x4d5bff['minRow']+0x1;if('insertion'==_0x4e710e['type'])return _0x4acd6b['length']?{'type':'insertion','content':o(_0x311daf,'*Insert:*\x20%0',o(_0x311daf,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2c16d7,'\x22'+_0x4acd6b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x311daf,'*Insert:*\x20%0',o(_0x311daf,'ELEMENT_TABLE_ROW',_0x2c16d7))};if('deletion'==_0x4e710e['type'])return _0x4acd6b['length']?{'type':'deletion','content':o(_0x311daf,'*Remove:*\x20%0',o(_0x311daf,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2c16d7,'\x22'+_0x4acd6b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x311daf,'*Remove:*\x20%0',o(_0x311daf,'ELEMENT_TABLE_ROW',_0x2c16d7))};}if('tableColumn'==_0x4e710e['subType']){const _0x2789c6=_0x4e710e['getItems']()['filter'](_0x52f093=>_0x52f093['is']('$textProxy'))['map'](_0x2862b7=>_0x2862b7['data']),_0x2fc232=this['_getSuggestionCoords'](_0x4e710e),_0x463eb1=_0x2fc232['maxColumn']-_0x2fc232['minColumn']+0x1;if('insertion'==_0x4e710e['type'])return _0x2789c6['length']?{'type':'insertion','content':o(_0x311daf,'*Insert:*\x20%0',o(_0x311daf,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x463eb1,'\x22'+_0x2789c6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x311daf,'*Insert:*\x20%0',o(_0x311daf,'ELEMENT_TABLE_COLUMN',_0x463eb1))};if('deletion'==_0x4e710e['type'])return _0x2789c6['length']?{'type':'deletion','content':o(_0x311daf,'*Remove:*\x20%0',o(_0x311daf,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x463eb1,'\x22'+_0x2789c6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x311daf,'*Remove:*\x20%0',o(_0x311daf,'ELEMENT_TABLE_COLUMN',_0x463eb1))};}}),_0x355795['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2c4fc8),_0x355795['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2c4fc8),_0x355795['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2ad995),_0x355795['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2ad995),_0x355795['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4429f6),_0x355795['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4429f6),_0x355795['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x71ea23),_0x355795['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x71ea23);}['_acceptFormatSuggestionCallbackFactory'](){const _0x662e98=this['editor'],_0x505f35=_0x662e98['model']['document']['selection'];return(_0x2dcb69,_0x5c1e01)=>{_0x662e98['model']['change'](_0x3dd6a8=>{const {commandName:_0x4fd416,commandParams:_0x2666df}=_0x5c1e01;let _0x4c249b=_0x2dcb69[0x0]['end']['nodeBefore'];_0x2666df&&_0x2666df[0x0]&&!0x1===_0x2666df[0x0]['forceValue']&&(_0x4c249b=_0x2dcb69[0x0]['start']['nodeAfter']);const _0x273d3c=_0x3dd6a8['createRangeIn'](_0x4c249b);if('$graveyard'==_0x273d3c['root']['rootName'])return;const _0x2a3f32=Array['from'](_0x505f35['getRanges']())['map'](_0x198a2e=>_0xf95a74['fromRange'](_0x198a2e));_0x3dd6a8['setSelection'](_0x273d3c),_0x662e98['commands']['get'](_0x4fd416)['refresh'](),_0x2666df['push']({'forceDefaultExecution':!0x0}),_0x662e98['execute'](_0x4fd416,..._0x2666df);const _0x77f991=_0x2a3f32['filter'](_0x59dc30=>'$graveyard'!=_0x59dc30['root']['rootName']);_0x77f991['length']>0x0&&_0x3dd6a8['setSelection'](_0x77f991);for(const _0x2c3d28 of _0x2a3f32)_0x2c3d28['detach']();});};}['_getCoordsForCells'](_0x27275e){const _0x565dcc=this['editor']['plugins']['get']('TableUtils');let _0x4bbb0d=Number['MAX_SAFE_INTEGER'],_0x1941b6=Number['MIN_SAFE_INTEGER'],_0x280402=Number['MAX_SAFE_INTEGER'],_0x5da4b5=Number['MIN_SAFE_INTEGER'];for(const _0x43f652 of _0x27275e){if('$graveyard'==_0x43f652['root']['rootName'])continue;const {row:_0x52a2e7,column:_0x1c9e43}=_0x565dcc['getCellLocation'](_0x43f652),_0x4a4cbe=_0x43f652['hasAttribute']('rowspan')?_0x43f652['getAttribute']('rowspan')-0x1:0x0,_0x32cc10=_0x43f652['hasAttribute']('colspan')?_0x43f652['getAttribute']('colspan')-0x1:0x0;_0x4bbb0d=_0x52a2e7<_0x4bbb0d?_0x52a2e7:_0x4bbb0d,_0x1941b6=_0x52a2e7+_0x4a4cbe>_0x1941b6?_0x52a2e7+_0x4a4cbe:_0x1941b6,_0x280402=_0x1c9e43<_0x280402?_0x1c9e43:_0x280402,_0x5da4b5=_0x1c9e43+_0x32cc10>_0x5da4b5?_0x1c9e43+_0x32cc10:_0x5da4b5;}return{'minRow':_0x4bbb0d,'maxRow':_0x1941b6,'minColumn':_0x280402,'maxColumn':_0x5da4b5};}['_setupColumnsRowsFixing'](){const _0x253f66=this['editor'],_0x3256fd=_0x253f66['plugins']['get']('TrackChangesEditing'),_0x43d540=_0x253f66['plugins']['get']('TableUtils');_0x253f66['model']['document']['on']('change:data',()=>{const _0x54304d=Array['from'](_0x253f66['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe17c7f,data:_0x386a39}of _0x54304d){const {group:_0x405571,id:_0x4cccc6,subType:_0x45d61d}=_0x3256fd['_splitMarkerName'](_0xe17c7f);if('suggestion'!=_0x405571)continue;if(null!=_0x386a39['oldRange'])continue;const _0x4a15a2=_0x3256fd['getSuggestion'](_0x4cccc6);this['_tablePostFixingSubtypes']['includes'](_0x45d61d)&&this['_tableSuggestions']['add'](_0x4a15a2);}},{'priority':'low'});const _0x51c710=(_0x27016b,_0x44a040)=>{let _0x31029e=!0x1;const _0x47b8ee=_0x44a040['createRangeOn'](_0x27016b),_0x41d8a5=_0x27016b['findAncestor']('table'),_0x50d0ad=_0x43d540['getCellLocation'](_0x27016b);for(const _0x2f7d53 of this['_tableSuggestions']){const _0x51f59d=_0x2f7d53['subType'],_0x1965d1=_0x51f59d['startsWith']('tablePaste'),_0x14a6eb=_0x51f59d['substr'](_0x1965d1?0xa:0x5),_0x545a23=_0x14a6eb['toLowerCase'](),_0x33df67=_0x545a23['substr'](0x0,0x3)+'span',_0x29ad9f='min'+_0x14a6eb,_0x533864='max'+_0x14a6eb;if(!_0x2f7d53['isInContent'])continue;if(_0x41d8a5!=_0x2f7d53['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2f7d53['isIntersectingWithRange'](_0x47b8ee))continue;const _0x2b64c6=_0x27016b['hasAttribute'](_0x33df67)?_0x27016b['getAttribute'](_0x33df67)-0x1:0x0,_0x11bb4c=this['_getSuggestionCoords'](_0x2f7d53),_0x5623c6=_0x11bb4c[_0x29ad9f],_0x457151=_0x11bb4c[_0x533864];_0x5623c6<=_0x50d0ad[_0x545a23]&&_0x50d0ad[_0x545a23]+_0x2b64c6<=_0x457151&&(_0x2f7d53['addRange'](_0x47b8ee),_0x31029e=!0x0);}return _0x31029e;};_0x253f66['model']['document']['registerPostFixer'](_0xb9954f=>{let _0x277db4=!0x1;for(const _0x4eec2c of _0x253f66['model']['document']['differ']['getChanges']())if('insert'==_0x4eec2c['type']){if('tableRow'==_0x4eec2c['name']){for(const _0x2c0480 of _0x4eec2c['position']['nodeAfter']['getChildren']())_0x277db4=_0x277db4||_0x51c710(_0x2c0480,_0xb9954f);}else'tableCell'==_0x4eec2c['name']&&(_0x277db4=_0x277db4||_0x51c710(_0x4eec2c['position']['nodeAfter'],_0xb9954f));}return _0x277db4;});}['_getSuggestionCoords'](_0x514c2c){return this['_getCoordsForCells'](_0x514c2c['getRanges']()['map'](_0x1a1264=>_0x1a1264['start']['nodeAfter']));}}function _e(_0xb94c40){return Array['from'](new Set(_0xb94c40)['values']());}class $t extends _0x2f9a9e{static get['requires'](){return[Nt];}['afterInit'](){const _0x45bdd5=this['editor'],_0x1a6231=_0x45bdd5['model']['document']['selection'],_0x3f9a9c=_0x45bdd5['locale'];if(!_0x45bdd5['plugins']['has']('TableEditing'))return;const _0x5d628a=_0x45bdd5['plugins']['get']('TrackChangesEditing'),_0x50120e=_0x45bdd5['plugins']['get']('TableUtils'),_0x4fe12f=_0x45bdd5['plugins']['get'](Nt);_0x4fe12f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5d628a['enableCommand']('mergeTableCells',()=>{const _0x3b8c0c=_0x50120e['getSelectionAffectedTableCells'](_0x45bdd5['model']['document']['selection']);_0x45bdd5['model']['change'](()=>{_0x5d628a['markMultiRangeBlockFormat'](_0x3b8c0c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x45bdd5['commands']['get']('mergeTableCells')['on']('execute',(_0x3c85af,_0x2ea8e7)=>{_0x45bdd5['commands']['get']('trackChanges')['value']&&(_0x2ea8e7['length']>0x0&&_0x2ea8e7[_0x2ea8e7['length']-0x1]&&_0x2ea8e7[_0x2ea8e7['length']-0x1]['forceDefaultExecution']||_0x5d628a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3c85af['stop']());},{'priority':'highest'});for(const _0x1bc940 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x111b1a=_0x45bdd5['commands']['get'](_0x1bc940);_0x5d628a['enableCommand'](_0x1bc940,()=>{const _0x116a16=_0x45bdd5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3e1645=>_0x3e1645['is']('element','tableCell')),_0x4577e5=_0x111b1a['value'];_0x45bdd5['model']['change'](()=>{_0x5d628a['markMultiRangeBlockFormat']([_0x116a16,_0x4577e5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x51cab7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xdd5c52=_0x45bdd5['commands']['get'](_0x51cab7);_0x5d628a['enableCommand'](_0x51cab7,()=>{const _0x19ae69=_0x50120e['getSelectionAffectedTableCells'](_0x45bdd5['model']['document']['selection'])[0x0],_0x5c3661=_0x19ae69['findAncestor']('table'),{column:_0x30b81d,row:_0x1c5ced}=_0x50120e['getCellLocation'](_0x19ae69);let _0x22c6f5=[];if('horizontally'==_0xdd5c52['direction']){const _0x463b95=_0x50120e['createTableWalker'](_0x5c3661,{'startRow':_0x1c5ced,'endRow':_0x1c5ced,'includeAllSlots':!0x0});_0x22c6f5=Array['from'](_0x463b95)['map'](_0x5b6f1e=>_0x5b6f1e['cell']);}else{const _0x1c84ca=_0x50120e['createTableWalker'](_0x5c3661,{'column':_0x30b81d,'includeAllSlots':!0x0});_0x22c6f5=Array['from'](_0x1c84ca)['map'](_0x3d1637=>_0x3d1637['cell']);}_0x45bdd5['model']['change'](_0x243a92=>{_0x5d628a['markBlockFormat'](_0x243a92['createRangeOn'](_0x19ae69),{'commandName':_0x51cab7,'commandParams':[]},_0x22c6f5,_0x51cab7);});});}_0x5d628a['descriptionFactory']['registerDescriptionCallback'](_0x4e1c5b=>{if('formatBlock'!=_0x4e1c5b['type']&&'formatInline'!=_0x4e1c5b['type'])return;const {data:_0x4c02a3}=_0x4e1c5b;return _0x4c02a3&&'mergeTableCells'==_0x4c02a3['commandName']?{'type':'format','content':o(_0x3f9a9c,'*Merge\x20cells*')}:void 0x0;}),_0x5d628a['descriptionFactory']['registerDescriptionCallback'](_0x160738=>{if('formatBlock'!=_0x160738['type']&&'formatInline'!=_0x160738['type'])return;const {data:_0x132403}=_0x160738;return _0x132403?'splitTableCellVertically'==_0x132403['commandName']?{'type':'format','content':o(_0x3f9a9c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x132403['commandName']?{'type':'format','content':o(_0x3f9a9c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4353e8=_0x4fe12f['_acceptFormatSuggestionCallbackFactory']();for(const _0x536562 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5d628a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x536562,'accept',_0x4353e8);for(const _0x1bf8a6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5d628a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1bf8a6,'accept',_0x4353e8);_0x5d628a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1c2d3e=>{_0x45bdd5['model']['change'](_0x9b6c41=>{const _0x5ce0ba=Array['from'](_0x1a6231['getRanges']())['map'](_0x220ab0=>_0xf95a74['fromRange'](_0x220ab0));_0x9b6c41['setSelection'](_0x1c2d3e),_0x45bdd5['commands']['get']('mergeTableCells')['refresh'](),_0x45bdd5['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x199741=_0x5ce0ba['filter'](_0x89e5c=>'$graveyard'!=_0x89e5c['root']['rootName']);_0x199741['length']>0x0&&_0x9b6c41['setSelection'](_0x199741);for(const _0x955e0 of _0x5ce0ba)_0x955e0['detach']();});});for(const _0x4c25f5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3d3b5d=_0x45bdd5['commands']['get'](_0x4c25f5);_0x3d3b5d['on']('set:isEnabled',(_0x5f129c,_0x5251da,_0x1af578)=>{if(_0x1af578){const _0x42c1fb=_0x45bdd5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5b56df=>_0x5b56df['is']('element','tableCell'));this['_areMergableCells'](_0x3d3b5d['value'],_0x42c1fb)||(_0x5f129c['return']=!0x1,_0x5f129c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x13c6c8=this['editor']['commands']['get']('mergeTableCells'),_0x4ee5d8=this['editor']['plugins']['get']('TableUtils');if(!_0x13c6c8['isEnabled'])return!0x1;const _0x5e2b4a=_0x4ee5d8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x56739d of _0x5e2b4a)for(const _0x12b6d8 of _0x5e2b4a)if(_0x56739d!=_0x12b6d8&&!this['_areMergableCells'](_0x56739d,_0x12b6d8))return!0x1;return!0x0;}['_areMergableCells'](_0xfd5672,_0x3cdf4d){const _0x1782c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d4fa5=this['editor']['model']['createRangeOn'](_0xfd5672),_0x27c931=this['editor']['model']['createRangeOn'](_0x3cdf4d),_0x215af3=new Set(),_0x282aee=new Set();for(const _0x25942c of _0x1782c4['getSuggestions']())if(('insertion'==_0x25942c['type']||'deletion'==_0x25942c['type']||'mergeTableCells'==_0x25942c['subType'])&&_0x25942c['isInContent']){for(const _0x46cafb of _0x25942c['getRanges']())_0x46cafb['containsRange'](_0x2d4fa5,!0x0)&&_0x215af3['add'](_0x25942c['type']+':'+_0x25942c['author']['id']),_0x46cafb['containsRange'](_0x27c931,!0x0)&&_0x282aee['add'](_0x25942c['type']+':'+_0x25942c['author']['id']);}if(_0x215af3['size']!=_0x282aee['size'])return!0x1;for(const _0x24c26d of _0x215af3)if(!_0x282aee['has'](_0x24c26d))return!0x1;return!0x0;}}class vt extends _0x2f9a9e{static get['requires'](){return[Nt];}['afterInit'](){const _0x11d4e6=this['editor'];if(!_0x11d4e6['plugins']['has']('TableEditing'))return;const _0x4c9d41=_0x11d4e6['locale'],_0x3e5243=_0x11d4e6['plugins']['get']('TrackChangesEditing');_0x3e5243['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3e5243['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3e5243['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4c9d41,'FORMAT_HEADER_ROW')),_0x3e5243['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4c9d41,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x477a21=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27917f=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x477a21['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x27917f),_0x477a21['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x27917f),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x230134=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22786d=this['editor']['plugins']['get']('TableUtils');function _0x547f12({showActiveMarker:_0x57847d=!0x0,setDataAttribute:_0x7e0a40=!0x0}={}){return(_0x3c6074,_0x2fbd49,_0x2b5ebe)=>{const {type:_0x27ed62,id:_0x5b5430}=_0x230134['_splitMarkerName'](_0x2fbd49['markerName']);if(!_0x230134['hasSuggestion'](_0x5b5430))return;const _0x407cd0=_0x230134['getSuggestion'](_0x5b5430),_0x56094a=_0x407cd0['data'];if('formatBlock'!=_0x407cd0['type']||!_0x56094a||'setTableColumnHeader'!=_0x56094a['commandName'])return;if(_0x2fbd49['item'])return void _0x3c6074['stop']();if(!_0x2b5ebe['consumable']['consume'](_0x2fbd49['markerRange'],_0x3c6074['name']))return;const _0x596e25=_0x2fbd49['markerRange']['start']['nodeAfter'],_0x5d0098=_0x2fbd49['markerRange']['end']['nodeBefore'],_0x271689=_0x596e25['parent']['parent'],{column:_0x1dbb46}=_0x22786d['getCellLocation'](_0x596e25),{column:_0x3d3157}=_0x22786d['getCellLocation'](_0x5d0098);for(let _0x472efa=_0x1dbb46;_0x472efa<=_0x3d3157;_0x472efa++){const _0x1b472d=_0x22786d['createTableWalker'](_0x271689,{'column':_0x472efa,'includeAllSlots':!0x1});for(const _0x2e5a46 of _0x1b472d){const _0xd6583b=_0x2e5a46['cell'],_0x22776d=_0x2b5ebe['mapper']['toViewElement'](_0xd6583b);_0x2b5ebe['writer']['addClass']('ck-suggestion-marker-'+_0x27ed62,_0x22776d),_0x7e0a40&&_0x2b5ebe['writer']['setAttribute']('data-suggestion',_0x5b5430,_0x22776d),_0x2b5ebe['mapper']['bindElementToMarker'](_0x22776d,_0x2fbd49['markerName']),_0x57847d&&(_0x230134['activeMarkers']['includes'](_0x2fbd49['markerName'])?_0x2b5ebe['writer']['addClass']('ck-suggestion-marker--active',_0x22776d):_0x2b5ebe['writer']['removeClass']('ck-suggestion-marker--active',_0x22776d));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x547f12(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x187c82,_0x5be250,_0x2cd62a)=>{_0x2cd62a['options']['showSuggestionHighlights']&&_0x547f12({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x187c82,_0x5be250,_0x2cd62a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x93cc14,_0x2826b3,_0x1eacd3)=>{const {type:_0x17de42,id:_0x3972b6}=_0x230134['_splitMarkerName'](_0x2826b3['markerName']);if(!_0x230134['hasSuggestion'](_0x3972b6))return;const _0x8da058=_0x230134['getSuggestion'](_0x3972b6),_0x366d01=_0x8da058['data'];if('formatBlock'!=_0x8da058['type']||!_0x366d01||'setTableColumnHeader'!=_0x366d01['commandName'])return;const _0xbf8995=_0x1eacd3['mapper']['markerNameToElements'](_0x2826b3['markerName']);if(_0xbf8995){for(const _0x3827a5 of _0xbf8995)_0x1eacd3['writer']['removeClass']('ck-suggestion-marker-'+_0x17de42,_0x3827a5),_0x1eacd3['writer']['removeClass']('ck-suggestion-marker--active',_0x3827a5),_0x1eacd3['writer']['removeAttribute']('data-suggestion',_0x3827a5),_0x1eacd3['mapper']['unbindElementFromMarkerName'](_0x3827a5,_0x2826b3['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x29bc5e=this['editor'],_0x10211f=_0x29bc5e['locale'];function _0xc3f31(_0x22fb67){return{'type':'format','content':o(_0x10211f,'*Format:*\x20%0',_0x22fb67)};}_0x29bc5e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4963d3=>{if('formatBlock'!=_0x4963d3['type'])return;const {data:_0x3e7fb6}=_0x4963d3;if(_0x3e7fb6){if('setTableRowHeader'==_0x3e7fb6['commandName']){const _0x595907=_0x3e7fb6['commandParams'][0x0]['forceValue'];return _0xc3f31(o(_0x10211f,_0x595907?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3e7fb6['commandName']){const _0x24e264=_0x3e7fb6['commandParams'][0x0]['forceValue'];return _0xc3f31(o(_0x10211f,_0x24e264?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x2f9a9e{['afterInit'](){const _0x4493e6=this['editor'],_0x1b6426=_0x4493e6['locale'],_0x5a3e94=_0x4493e6['plugins']['get']('TrackChangesEditing');function _0xc642bb(_0x3e0ed7){return{'type':'format','content':''+o(_0x1b6426,'*Set\x20table\x20type:*\x20%0',_0x3e0ed7)};}_0x4493e6['plugins']['has']('TableLayout')&&(_0x5a3e94['enableCommand']('insertTableLayout'),_0x5a3e94['enableDefaultAttributesIntegration']('tableType'),_0x5a3e94['descriptionFactory']['registerElementLabel'](_0x392ee6=>_0x392ee6['is']('element','table')&&'layout'===_0x392ee6['getAttribute']('tableType'),_0x4a2a3e=>o(_0x1b6426,'ELEMENT_LAYOUT_TABLE',_0x4a2a3e)),_0x5a3e94['descriptionFactory']['registerDescriptionCallback'](_0x15aec8=>{const {data:_0x1314a2}=_0x15aec8;if(_0x1314a2&&'tableType'==_0x1314a2['key'])switch(_0x1314a2['newValue']){case'layout':return _0xc642bb(o(_0x1b6426,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xc642bb(o(_0x1b6426,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x234ba5=>[_0x234ba5,null]));class Bt extends _0x2f9a9e{static get['requires'](){return[Nt];}['afterInit'](){const _0x16ba22=this['editor'];if(!_0x16ba22['plugins']['has']('TableClipboard'))return;const _0x5a1ede=_0x16ba22['plugins']['get']('TrackChangesEditing'),_0x17137d=_0x16ba22['plugins']['get']('TableUtils'),_0x2a2c83=_0x16ba22['plugins']['get'](Nt),_0x4f2907=_0x16ba22['plugins']['get']('TableClipboard'),_0x4407f5=_0x16ba22['plugins']['get']('TableSelection'),_0x27de36=_0x16ba22['plugins']['get'](_0x4a3731);_0x2a2c83['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x16ba22['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x16ba22['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3efcc6=null,_0x41c8b5=!0x1;_0x27de36['on']('contentInsertion',(_0x2aebd9,_0x4e26d1)=>{_0x41c8b5='paste'===_0x4e26d1['method'];}),_0x16ba22['model']['on']('insertContent',(_0x32632a,_0x3a7241)=>{if(!_0x41c8b5&&null===_0x4407f5['getSelectedTableCells']())return;const [_0x5dc857,_0x5ee0ba]=_0x3a7241,_0x59314b=_0x3a7241[_0x3a7241['length']-0x1];_0x59314b&&_0x59314b['forceDefaultExecution']||_0x5a1ede['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x11b498,_0x53ec8a,_0x28d53e,_0x5d4764,_0xad3bd9){if(_0x53ec8a&&!_0x53ec8a['is']('documentSelection'))return!0x1;const _0x4d50c5=_0xad3bd9['getTableIfOnlyTableInContent'](_0x11b498,_0x28d53e);if(!_0x4d50c5||!Oe(_0x4d50c5,void 0x0,_0x5d4764))return!0x1;const _0x3c2817=_0x5d4764['getSelectionAffectedTableCells'](_0x28d53e['document']['selection']);if(!_0x3c2817['length'])return!0x1;const _0x16730d=_0x3c2817[0x0]['findAncestor']('table'),_0x20b944=_0x5d4764['getRowIndexes'](_0x3c2817),_0x583800=_0x5d4764['getColumnIndexes'](_0x3c2817),_0x2c5098={'startRow':_0x20b944['first'],'endRow':_0x20b944['last'],'startColumn':_0x583800['first'],'endColumn':_0x583800['last']};return 0x1==_0x3c2817['length']&&(_0x2c5098['endRow']+=_0x5d4764['getRows'](_0x4d50c5)-0x1,_0x2c5098['endColumn']+=_0x5d4764['getColumns'](_0x4d50c5)-0x1),Oe(_0x16730d,_0x2c5098,_0x5d4764);}(_0x5dc857,_0x5ee0ba,_0x16ba22['model'],_0x17137d,_0x4f2907)&&(_0x32632a['stop'](),_0x3efcc6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x16ba22['model']['change'](()=>{_0x16ba22['model']['insertContent'](_0x3a7241[0x0],_0x3a7241[0x1],_0x3a7241[0x2],{'forceDefaultExecution':!0x0});const _0x3314c2=_0x47c5b6(),{rowInsertionRanges:_0x1dc048,columnInsertionRanges:_0x2300ce,insertionRanges:_0x4125d5,deletionRanges:_0x6d6be5,cells:_0x17a231}=_0x3efcc6;_0x1dc048['length']&&_0x5a1ede['markMultiRangeInsertion'](_0x1dc048,'tablePasteRow',{'tablePasteChainId':_0x3314c2}),_0x2300ce['length']&&_0x5a1ede['markMultiRangeInsertion'](_0x2300ce,'tablePasteColumn',{'tablePasteChainId':_0x3314c2}),_0x4125d5['length']&&(_0x5a1ede['markMultiRangeInsertion'](_0x4125d5,'tablePaste',{'tablePasteChainId':_0x3314c2,'skipNestingCheck':!0x0}),_0x4125d5['forEach'](_0x32b483=>_0x32b483['detach']?.())),_0x6d6be5['length']&&(_0x5a1ede['markMultiRangeDeletion'](_0x6d6be5,'tablePaste',{'tablePasteChainId':_0x3314c2,'skipNestingCheck':!0x0}),_0x6d6be5['forEach'](_0x3c24eb=>_0x3c24eb['detach']?.()));const _0xaf5c25=_0x5a1ede['markMultiRangeBlockFormat'](_0x17a231['map'](({element:_0x1d6f7a})=>_0x1d6f7a),{'formatGroupId':_0x47c5b6()},[],'tablePasteCell',{'tablePasteChainId':_0x3314c2});if(_0xaf5c25){const _0x53e3fe=_0xaf5c25['getMarkers'](),_0x22be79=[];for(const {element:_0x533a46,attributes:_0x36502d}of _0x17a231){if(!_0x36502d)continue;const _0x50db31=_0x16ba22['model']['createRangeOn'](_0x533a46),_0x122ff7=_0x53e3fe['find'](_0x33ccf2=>_0x33ccf2['getRange']()['isEqual'](_0x50db31));_0x122ff7&&_0x22be79['push']([_0x122ff7['name'],_0x36502d]);}_0x22be79['length']&&_0xaf5c25['setAttribute']('markerAttributes',Object['fromEntries'](_0x22be79));}_0x3efcc6=null;}));},{'priority':_0x5dcdab['high']+0xa}),_0x27de36['on']('contentInsertion',()=>{_0x41c8b5=!0x1;},{'priority':'lowest'}),_0x16ba22['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x595c0f,_0x3d99d5)=>{const [_0xe42aa,_0x46f7ea,,_0x4eae54]=_0x3d99d5;if(!_0x3efcc6)return;_0x595c0f['stop']();const _0x14dc8f=_0xe42aa['cell'],_0x1afbeb=_0x46f7ea,_0x4950b8=Be(_0x14dc8f),_0x15d0ca=Be(_0x1afbeb);_0x595c0f['return']=_0x14dc8f;let _0x4b35a1=null,_0x1b4066=null;if(_0x15d0ca||_0x4950b8){if(_0x4950b8&&!_0x15d0ca){_0x4eae54['remove'](_0x14dc8f['getChild'](0x0));for(const _0x53ae6d of Array['from'](_0x1afbeb['getChildren']()))_0x4eae54['insert'](_0x53ae6d,_0x14dc8f,'end');const _0x289681=_0x3efcc6['rowInsertionIndexes']['includes'](_0xe42aa['row']),_0x44aa25=_0x3efcc6['columnInsertionIndexes']['includes'](_0xe42aa['column']);_0x289681||_0x44aa25||(_0x4b35a1=_0xf95a74['fromRange'](_0x4eae54['createRangeIn'](_0x14dc8f)));}else _0x15d0ca&&!_0x4950b8&&(_0x1b4066=_0x4eae54['createRangeIn'](_0x14dc8f));}else{const _0x1fa14e=_0x4eae54['createElement']('tableCellSuggestion'),_0x2e72ec=_0x4eae54['createElement']('tableCellSuggestion');_0x4eae54['wrap'](_0x4eae54['createRangeIn'](_0x14dc8f),_0x2e72ec),_0x4eae54['insert'](_0x1fa14e,_0x14dc8f,0x0);for(const _0x1f8199 of Array['from'](_0x1afbeb['getChildren']()))_0x4eae54['insert'](_0x1f8199,_0x1fa14e,'end');_0x4b35a1=_0xf95a74['fromRange'](_0x4eae54['createRangeOn'](_0x1fa14e)),_0x1b4066=_0xf95a74['fromRange'](_0x4eae54['createRangeOn'](_0x2e72ec));}const _0x3f4ff7=Array['from'](_0x1afbeb['getAttributes']())['filter'](([_0x45ddb4])=>Re['includes'](_0x45ddb4));_0x3efcc6['cells']['push']({'element':_0x14dc8f,'attributes':_0x3f4ff7['length']?Object['fromEntries'](_0x3f4ff7):null}),_0x4b35a1&&_0x3efcc6['insertionRanges']['push'](_0x4b35a1),_0x1b4066&&_0x3efcc6['deletionRanges']['push'](_0x1b4066);},{'priority':'high'}),_0x17137d['on']('insertColumns',(_0x2022f1,_0x2787a7)=>{const [_0x1d5c30,_0x30a7e6={}]=_0x2787a7;if(!_0x3efcc6)return;const _0x4da370=_0x30a7e6['at']||0x0,_0x3cc134=_0x30a7e6['columns']||0x1;_0x3efcc6['columnInsertionIndexes']=new Array(_0x3cc134)['fill'](_0x4da370)['map']((_0x16a7b1,_0x22dec1)=>_0x16a7b1+_0x22dec1);for(const {cell:_0x4bb09c}of _0x17137d['createTableWalker'](_0x1d5c30,{'startColumn':_0x4da370,'endColumn':_0x4da370+_0x3cc134-0x1}))_0x3efcc6['columnInsertionRanges']['push'](_0x16ba22['model']['createRangeOn'](_0x4bb09c));},{'priority':'low'}),_0x17137d['on']('insertRows',(_0x41e131,_0x46749b)=>{const [_0x2a53bc,_0x4d2993={}]=_0x46749b;if(!_0x3efcc6)return;const _0x5d6555=_0x4d2993['at']||0x0,_0x532f30=_0x4d2993['rows']||0x1;_0x3efcc6['rowInsertionIndexes']=new Array(_0x532f30)['fill'](_0x5d6555)['map']((_0xda3ae6,_0x1c5f33)=>_0xda3ae6+_0x1c5f33);for(const {cell:_0x2ac17a}of _0x17137d['createTableWalker'](_0x2a53bc,{'startRow':_0x5d6555,'endRow':_0x5d6555+_0x532f30-0x1}))_0x3efcc6['rowInsertionRanges']['push'](_0x16ba22['model']['createRangeOn'](_0x2ac17a));},{'priority':'low'}),_0x5a1ede['descriptionFactory']['registerDescriptionCallback'](_0x154831=>{if(_0x154831['subType']&&_0x154831['subType']['startsWith']('tablePaste'))return _0x154831['previous']?{}:{'type':'insertion','content':o(_0x16ba22['locale'],'*Replace\x20table\x20cells*')};});const _0x4191e9=()=>!0x1;for(const _0x3f359e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5a1ede['_suggestionFactory']['registerCustomCallback']('insertion',_0x3f359e,'join',_0x4191e9),_0x5a1ede['_suggestionFactory']['registerCustomCallback']('deletion',_0x3f359e,'join',_0x4191e9),_0x5a1ede['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f359e,'join',_0x4191e9);_0x5a1ede['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4191e9),_0x5a1ede['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x48f0ec,_0x5e9528,_0xb12e8e)=>{const _0x35aa7a=_0x48f0ec['map'](_0x109385=>_0x109385['getContainedElement']())['filter'](_0x4e4bd4=>_0x4e4bd4),_0xf8daef=new Map(_0x35aa7a['map'](_0x2ceeda=>[_0x2ceeda,null]));if(_0x3efcc6){for(const {element:_0x384e0f,attributes:_0x47d449}of _0x3efcc6['cells'])_0x47d449&&_0xf8daef['set'](_0x384e0f,_0x47d449);}else{if(_0xb12e8e&&_0xb12e8e['markerAttributes'])for(const [_0x27da01,_0x117acb]of Object['entries'](_0xb12e8e['markerAttributes'])){const _0x94b307=_0x16ba22['model']['markers']['get'](_0x27da01),_0x17e853=_0x94b307?_0x94b307['getRange']()['getContainedElement']():null;_0x17e853&&_0xf8daef['set'](_0x17e853,_0x117acb);}}_0x16ba22['model']['change'](_0x3b9a98=>{for(const [_0x5a2b7b,_0x10bdda]of _0xf8daef)_0x3b9a98['setAttributes']({...Ae,..._0x10bdda},_0x5a2b7b);});});const _0x42f132=(_0x22af47,_0x34bfd8)=>{_0x5a1ede['_suggestionFactory']['registerCustomCallback'](_0x22af47,'tablePaste',_0x34bfd8,(_0x49adfb,_0x5cffab,_0x4730aa)=>{_0x16ba22['model']['change'](_0xc46708=>{const _0x2736b4=[];for(const _0x16aefc of _0x49adfb){const _0x1a2127=_0x16aefc['start']['nodeAfter'];_0x1a2127['is']('element','tableCellSuggestion')&&_0x2736b4['push'](_0x1a2127);}_0x5a1ede['_suggestionFactory']['getSuggestionCallback'](_0x22af47,null,_0x34bfd8)(_0x49adfb,_0x5cffab,_0x4730aa);for(const _0x4b64a4 of _0x2736b4)'$graveyard'!=_0x4b64a4['root']['rootName']&&_0xc46708['unwrap'](_0x4b64a4);});});};_0x42f132('insertion','accept'),_0x42f132('insertion','discard'),_0x42f132('deletion','accept'),_0x42f132('deletion','discard'),_0x5a1ede['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1539c5=>{const _0x2a7acd=_0x1539c5['map'](_0xc03991=>_0xc03991['getContainedElement']()),_0x32f473=_0x2a7acd[0x0]['findAncestor']('table'),{minRow:_0x5a0af1,maxRow:_0x32f86b}=_0x2a2c83['_getCoordsForCells'](_0x2a7acd);_0x17137d['removeRows'](_0x32f473,{'at':_0x5a0af1,'rows':_0x32f86b-_0x5a0af1+0x1});}),_0x5a1ede['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xd6edf2=>{const _0xec9016=_0xd6edf2['map'](_0x4a8fde=>_0x4a8fde['getContainedElement']()),_0x1d409a=_0xec9016[0x0]['findAncestor']('table'),{minColumn:_0x2281df,maxColumn:_0x2fb870}=_0x2a2c83['_getCoordsForCells'](_0xec9016);_0x17137d['removeColumns'](_0x1d409a,{'at':_0x2281df,'columns':_0x2fb870-_0x2281df+0x1});});const _0x2c53db=(_0x31d0ec,_0x2bb74f)=>{if(!_0x2bb74f['subType']||!_0x2bb74f['subType']['startsWith']('tablePaste'))return;const _0x5c65f4=_0x2bb74f['attributes']['tablePasteChainId'],_0x3d6eae=_0x5a1ede['getSuggestions']()['filter'](_0x487dd2=>_0x487dd2['isInContent']&&_0x487dd2['attributes']&&_0x487dd2['attributes']['tablePasteChainId']==_0x5c65f4);_0x3d6eae['length']&&_0x2bb74f['getAllAdjacentSuggestions']()['length']!=_0x3d6eae['length']&&_0x3d6eae['reduce']((_0x1057f3,_0x578191)=>(_0x1057f3['next']=_0x578191,_0x578191['previous']=_0x1057f3,_0x578191));};function _0x11912f(_0x66fb91,_0xc0899e=!0x0){const {id:_0x545cb3,authorId:_0x7312c1}=_0x5a1ede['_splitMarkerName'](_0x66fb91['markerName']),_0x1091c3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x133188=_0x5a1ede['activeMarkers']['includes'](_0x66fb91['markerName']);return _0x133188&&_0x1091c3['push']('ck-suggestion-marker--active'),{'classes':_0x1091c3,'attributes':{'data-suggestion':_0x545cb3,'data-author-id':_0x7312c1},'priority':_0x133188&&_0xc0899e?0xbc2:0xbb8};}_0x5a1ede['on']('suggestionLoaded',_0x2c53db,{'priority':'high'}),_0x5a1ede['on']('suggestionUnloaded',_0x2c53db,{'priority':'high'}),_0x16ba22['model']['document']['registerPostFixer'](()=>{let _0x51e40d=!0x1;const _0xe4fe24=Array['from'](_0x16ba22['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x212b91,data:_0x145243}of _0xe4fe24){const {group:_0x124b63,type:_0x32c1d0,id:_0x5324d7}=_0x5a1ede['_splitMarkerName'](_0x212b91);if('suggestion'!=_0x124b63||'deletion'!=_0x32c1d0||_0x145243['oldRange'])continue;if(!_0x5a1ede['hasSuggestion'](_0x5324d7))continue;const _0xdfda79=_0x5a1ede['getSuggestion'](_0x5324d7)['getRanges'](),_0x1e4292=_0x16ba22['plugins']['get']('Users')['me'];for(const _0x23035a of _0x5a1ede['getSuggestions']()){if(!_0x23035a['isInContent']||_0x23035a['author']!=_0x1e4292)continue;if('formatBlock'!=_0x23035a['type']||'tablePasteCell'!=_0x23035a['subType'])continue;if(_0x23035a['getRanges']()['every'](_0x144444=>_0xdfda79['some'](_0x8c6b6=>_0x8c6b6['containsRange'](_0x144444,!0x0)))){for(const _0x13197a of _0x23035a['getAllAdjacentSuggestions']())_0x13197a['isInContent']&&(_0x13197a['discard'](),_0x51e40d=!0x0);}}}return _0x51e40d;}),_0x16ba22['model']['document']['registerPostFixer'](_0x24c2f9=>{const _0x15f596=_0x16ba22['commands']['get']('redo');if(!_0x15f596||!_0x15f596['_createdBatches']['has'](_0x24c2f9['batch']))return!0x1;let _0x290861=!0x1;const _0x2617e1=_0x16ba22['plugins']['get']('Users')['me'],_0x596fc1=_0x16ba22['model']['document']['differ']['getChanges'](),_0xdb117=Array['from'](_0x16ba22['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2699c2,data:_0x41fe54})=>{const {group:_0x204213,subType:_0x55c029,authorId:_0x5c044e}=_0x5a1ede['_splitMarkerName'](_0x2699c2);return'suggestion'==_0x204213&&'tablePaste'==_0x55c029&&_0x5c044e==_0x2617e1['id']&&!_0x41fe54['oldRange'];});for(const _0x24da18 of _0x596fc1){if('insert'!=_0x24da18['type']||'tableCellSuggestion'!=_0x24da18['name']||0x1!=_0x24da18['length'])continue;const _0x1009b0=_0x24c2f9['createRange'](_0x24da18['position'],_0x24da18['position']['getShiftedBy'](0x1));if(!_0xdb117['find'](({data:_0x1f5bc6})=>_0x1f5bc6['newRange']['isEqual'](_0x1009b0))){for(const {name:_0x271fee,data:_0x4038df}of _0xdb117)if(_0x1009b0['containsRange'](_0x4038df['newRange'])){_0x24c2f9['updateMarker'](_0x271fee,{'range':_0x1009b0}),_0x290861=!0x0;break;}}}return _0x290861;}),_0x16ba22['model']['document']['registerPostFixer'](_0x159cae=>{let _0x471449=!0x1;const _0x1d79f6=_0x16ba22['plugins']['get']('Users')['me'],_0x2d41e2=_0x5a1ede['getSuggestions']()['filter'](_0x43de4c=>_0x43de4c['isInContent']&&_0x43de4c['author']==_0x1d79f6),_0x1f9ff3=new Set(),_0x4fc3c7=new Set();for(const _0xaaa9c1 of _0x2d41e2)if('tablePaste'==_0xaaa9c1['subType'])for(const _0x5a57b8 of _0xaaa9c1['getMarkers']()){const _0x274a5e=_0x5a57b8['getRange']()['getContainedElement']();if(_0x274a5e){if(_0x274a5e['is']('element','tableCellSuggestion')&&Be(_0x274a5e)){_0xaaa9c1['removeMarker'](_0x5a57b8['name']),_0x1f9ff3['add'](_0x274a5e),_0x471449=!0x0;const _0x2a7d7b=_0x274a5e['nextSibling'],_0x1984b8=_0x274a5e['previousSibling'],_0x6e474=_0x2a7d7b&&_0x2a7d7b['is']('element','tableCellSuggestion'),_0x5d092a=_0x1984b8&&_0x1984b8['is']('element','tableCellSuggestion');_0x6e474&&!_0x1f9ff3['has'](_0x2a7d7b)&&_0x4fc3c7['add'](_0x2a7d7b),_0x5d092a&&!_0x1f9ff3['has'](_0x1984b8)&&_0x4fc3c7['add'](_0x1984b8);}else _0x274a5e['is']('element','paragraph')&&_0x274a5e['isEmpty']&&(_0xaaa9c1['removeMarker'](_0x5a57b8['name']),_0x471449=!0x0);}}else{if('tablePasteCell'==_0xaaa9c1['subType']){if(!_0xaaa9c1['attributes']||!_0xaaa9c1['attributes']['tablePasteChainId'])continue;const _0x5207ea=_0xaaa9c1['attributes']['markerAttributes'];if(_0x5207ea&&Object['keys'](_0x5207ea)['length'])continue;const _0x1668ce=_0xaaa9c1['attributes']['tablePasteChainId'];let _0x2e551e=!0x0,_0x12ffc9=!0x0;for(const _0x3a2112 of _0x2d41e2)if(_0x3a2112['subType']&&_0x3a2112['subType']['startsWith']('tablePaste')){if(!_0x3a2112['attributes']['tablePasteChainId']){_0x12ffc9=!0x1;break;}if(_0x3a2112['id']!=_0xaaa9c1['id']&&_0x3a2112['attributes']['tablePasteChainId']==_0x1668ce){_0x2e551e=!0x1;break;}}_0x12ffc9&&_0x2e551e&&(_0xaaa9c1['removeMarkers'](),_0x471449=!0x0);}}for(const _0x12c969 of _0x1f9ff3)_0x159cae['remove'](_0x12c969);for(const _0x3a4a0b of _0x4fc3c7)_0x159cae['unwrap'](_0x3a4a0b);return _0x471449;}),_0x16ba22['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5a28ed=>_0x11912f(_0x5a28ed),'converterPriority':'high'}),_0x16ba22['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xf76aac,_0x5af96b)=>_0x5af96b['options']['showSuggestionHighlights']?_0x11912f(_0xf76aac,!0x1):null,'converterPriority':'high'});const _0x2e05ba=_0x16ba22['editing']['view'];this['listenTo'](_0x2e05ba['document'],'clipboardOutput',(_0xe3bf0e,_0x2058a9)=>{const _0x17b600=[];for(const _0x17683f of _0x2e05ba['createRangeIn'](_0x2058a9['content'])['getItems']())_0x17683f['is']('element','suggestion-td')&&_0x17b600['push'](_0x17683f);_0x2e05ba['change'](_0x1ce506=>{for(const _0x344b12 of _0x17b600)_0x1ce506['move'](_0x1ce506['createRangeIn'](_0x344b12),_0x1ce506['createPositionBefore'](_0x344b12)),_0x1ce506['remove'](_0x344b12);});});}}function Be(_0x50b89e){if(_0x50b89e['isEmpty'])return!0x0;const _0x713fe3=_0x50b89e['getChild'](0x0);return _0x713fe3['is']('element','paragraph')&&_0x713fe3['isEmpty'];}function Oe(_0x35bc07,_0x526fb2={},_0x396f8d){for(const {isAnchor:_0x3b7d70,cellHeight:_0x16d50d,cellWidth:_0x5205f6}of _0x396f8d['createTableWalker'](_0x35bc07,{'includeAllSlots':!0x0,..._0x526fb2}))if(!_0x3b7d70||0x1!=_0x16d50d||0x1!=_0x5205f6)return!0x1;return!0x0;}class Ot extends _0x2f9a9e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1526f8=this['editor']['plugins']['get']('TrackChangesEditing');_0x1526f8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1526f8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1526f8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1526f8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1526f8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1526f8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3c7a8e,_0x1ff8fb){const _0x4feae9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd19215=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x274440=_0x1ff8fb['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5b5f2f=_0xd19215['getColumnGroupElement'](_0x274440);let _0x401ff6=_0x5b5f2f?_0xd19215['getTableColumnsWidths'](_0x5b5f2f):null,_0x1f791a=_0x274440['getAttribute']('tableWidth')||null;const _0x77206e=_0x1ff8fb['tableWidth']||_0x1f791a,_0x4a52de=_0x1ff8fb['columnWidths']||_0x401ff6,_0x1164d1=this['editor']['plugins']['get']('Users')['me'];for(const _0x5ed131 of _0x4feae9['getSuggestions']()){const _0x476486=_0x5ed131['getContainedElement']();if('resizeTable'===_0x5ed131['subType']&&_0x476486===_0x274440){_0x5ed131['author']!==_0x1164d1&&_0x5ed131['discard']();const _0x25676b=_0x5ed131['data']['commandParams'];_0x1f791a=_0x25676b[0x0]['tableWidth'],_0x401ff6=_0x25676b[0x0]['columnWidths'];break;}}_0x3c7a8e({'table':_0x274440,'tableWidth':_0x77206e,'columnWidths':_0x4a52de}),_0x4feae9['markBlockFormat'](_0x274440,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1f791a,'columnWidths':_0x401ff6}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xf17fd5){if('formatBlock'!=_0xf17fd5['type']&&'formatInline'!=_0xf17fd5['type'])return;const {data:_0x2b906c}=_0xf17fd5;if(_0x2b906c&&'resizeTable'===_0x2b906c['formatGroupId']){const _0x382274='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x382274)};}}}class xt extends _0x2f9a9e{['afterInit'](){const _0x3e6e9d=this['editor'];_0x3e6e9d['plugins']['has']('Template')&&_0x3e6e9d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2f9a9e{['afterInit'](){const _0x3f2476=this['editor'];if(!_0x3f2476['commands']['get']('insertTableOfContents'))return;_0x3f2476['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x187e87=_0x3f2476['plugins']['get']('TrackChangesEditing'),_0xe69832=_0x3f2476['locale'];_0x187e87['descriptionFactory']['registerElementLabel']('tableOfContents',_0x10f6a7=>o(_0xe69832,'ELEMENT_TABLE_OF_CONTENTS',_0x10f6a7));}}class Rt extends _0x2f9a9e{['afterInit'](){const _0x2af890=this['editor'];if(!_0x2af890['plugins']['has']('Title'))return;const _0x475ec2=_0x2af890['plugins']['get']('TrackChangesEditing');_0x475ec2['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2af890['locale'],'ELEMENT_TITLE')),_0x2af890['model']['document']['registerPostFixer'](_0x51a456=>{let _0x4a9849=!0x1;const _0xda1849=Array['from'](_0x2af890['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4422ae,data:_0xb65b36}of _0xda1849){const {group:_0x5aac09}=_0x475ec2['_splitMarkerName'](_0x4422ae);if('suggestion'!==_0x5aac09||!_0xb65b36['newRange'])continue;const _0x440988=_0xb65b36['newRange'],_0x34598e=_0x440988['end']['nodeBefore'];if(!_0x34598e||!_0x34598e['is']('element','title-content'))continue;if(!_0x440988['start']['isTouching'](_0x440988['end']))continue;const _0x2b0302=_0x2af890['model']['schema']['getNearestSelectionRange'](_0x440988['end'],'forward');if(_0x2b0302&&_0x2b0302['isCollapsed']){const _0x3d9e1b=_0x51a456['createRange'](_0x440988['start'],_0x2b0302['start']);_0x3d9e1b['isEqual'](_0x440988)||(_0x51a456['updateMarker'](_0x4422ae,{'range':_0x3d9e1b}),_0x4a9849=!0x0);}_0x4a9849||(_0x51a456['removeMarker'](_0x4422ae),_0x4a9849=!0x0);}return _0x4a9849;});}}class Tt extends _0x2f9a9e{['afterInit'](){const _0x336c8b=this['editor'],_0x38bb2e=_0x336c8b['plugins']['get']('TrackChangesEditing');_0x336c8b['plugins']['has']('Uploadcare')&&(_0x38bb2e['enableCommand']('uploadcare'),_0x336c8b['plugins']['has']('UploadcareImageEdit')&&(_0x38bb2e['enableCommand']('uploadcareImageEdit'),_0x38bb2e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x38bb2e['descriptionFactory']['registerDescriptionCallback'](_0xd85bc6=>{if('attribute'!=_0xd85bc6['type'])return;const {data:_0x3a8943}=_0xd85bc6;return _0x3a8943&&'uploadcareImageId'==_0x3a8943['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2f9a9e{['afterInit'](){const _0x102d49=this['editor'],_0x4fa899=_0x102d49['plugins']['get']('TrackChangesEditing');_0x102d49['plugins']['has']('UndoEditing')&&(_0x4fa899['enableCommand']('undo'),_0x4fa899['enableCommand']('redo'));}}class Ut extends _0x2f9a9e{static get['requires'](){return[Nt];}['afterInit'](){const _0x54393d=this['editor'];if(!_0x54393d['plugins']['has']('TableCaptionEditing'))return;_0x54393d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2f9a9e{['tableProperties'];['tableCellProperties'];constructor(_0x5d155c){super(_0x5d155c),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x5d155c['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x47c6ce=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xc291b8 of this['tableProperties'])_0x47c6ce['enableCommand'](_0xc291b8,(_0x5b20aa,_0x486be1)=>{const _0xede076=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xc291b8,[_0xede076],this['tableProperties'],'tableProperties',_0x5b20aa,_0x486be1);});_0x47c6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x47c6ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47c6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x193c1b,_0x10544d)=>this['handleDiscardAction'](this['tableProperties'],_0x193c1b,_0x10544d)),_0x47c6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5439ee of this['tableCellProperties'])this['editor']['commands']['get'](_0x5439ee)&&_0x47c6ce['enableCommand'](_0x5439ee,(_0x35e68d,_0x43aacf)=>{const _0x3a5351=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5439ee,_0x3a5351,this['tableCellProperties'],'tableCellProperties',_0x35e68d,_0x43aacf);});_0x47c6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x47c6ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47c6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x41700f,_0x457a8)=>this['handleDiscardAction'](this['tableCellProperties'],_0x41700f,_0x457a8)),_0x47c6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x47c6ce['registerBlockAttribute']('tableCellType'),_0x47c6ce['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x47c6ce['descriptionFactory']['registerDescriptionCallback'](_0x427ae4=>this['handleSuggestionDescription'](_0x427ae4)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1db6d2,_0xbd8ee2,_0x110fea,_0xd2467a,_0x5b914,_0x524c74){const _0x53e9f0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x524c74['batch'],()=>{for(const _0xfd7204 of _0xbd8ee2){if(this['_getSuggestion'](_0xfd7204,_0xd2467a))_0x5b914(_0x524c74);else{const _0x21097c={};for(const _0x1810e4 of _0x110fea){const _0x491e5e=_0xfd7204['getAttribute'](_0x1810e4);void 0x0!==_0x491e5e&&(_0x21097c[_0x1810e4]=_0x491e5e);}_0x5b914(_0x524c74),_0x53e9f0['markBlockFormat'](_0xfd7204,{'commandParams':[_0x21097c]},[],_0xd2467a);}}});}['handleDiscardAction'](_0x187cf1,_0xcb7313,_0x5905b3){const _0x3e9fa0=_0xcb7313[0x0]['start']['nodeAfter'],_0x456481=_0x5905b3['commandParams'][0x0];this['editor']['model']['change'](_0x1ac6ec=>{for(const _0x307810 of _0x187cf1)void 0x0!==_0x456481[_0x307810]?_0x1ac6ec['setAttribute'](_0x307810,_0x456481[_0x307810],_0x3e9fa0):_0x1ac6ec['removeAttribute'](_0x307810,_0x3e9fa0);});}['handleSuggestionDescription'](_0xa5db71){if(_0xa5db71['data'])switch(_0xa5db71['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'](_0x51ecf0,_0x3d60ec){const _0x20fbd4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x9442b9 of _0x20fbd4['getSuggestions']({'skipNotAttached':!0x0})){const _0x4d5732=_0x9442b9['getContainedElement']();if(_0x9442b9['subType']===_0x3d60ec&&_0x4d5732===_0x51ecf0)return _0x9442b9;}return null;}['_registerTablePropertiesAttributes'](){const _0x34acd7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x100fe9=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4384cd of _0x100fe9){const _0x4a64ca=_0x4384cd['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x34acd7['descriptionFactory']['registerAttributeLabel'](_0x4384cd,o(this['editor']['locale'],'FORMAT_'+_0x4a64ca));}}}class Ft extends _0x2f9a9e{['afterInit'](){const _0x2bdd49=this['editor'];if(!_0x2bdd49['plugins']['has']('LineHeight'))return;const _0x4a1605=_0x2bdd49['plugins']['get']('TrackChangesEditing'),_0x11410d=_0x2bdd49['locale'];_0x4a1605['enableDefaultAttributesIntegration']('lineHeight'),_0x4a1605['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x11410d,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2f9a9e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x4ad530,_0x1806c4,_0x26567f,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x558838){super(_0x558838),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x506901,_0x29a248,_0x1414ed,_0x34d98b)=>{this['_model']['change'](()=>{for(const _0x159172 of[..._0x34d98b,..._0x1414ed])this['_model']['markers']['has'](_0x159172)&&_0x558838['editing']['reconvertMarker'](_0x159172);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x558838['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x558838['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x558838['config']['get']('trackChanges.trackFormatChanges'),_0x558838['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x558838['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x558838,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3cb012=this['editor'];_0x3cb012['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xcb93b7,{writer:_0x491bf4})=>{let _0x2616de='suggestion:'+_0xcb93b7['getAttribute']('suggestion-type')+':'+_0xcb93b7['getAttribute']('id');return _0xcb93b7['getAttribute']('marker-count')&&(_0x2616de+=':'+_0xcb93b7['getAttribute']('marker-count')),_0x491bf4['createElement']('$marker',{'data-name':_0x2616de});}}),_0x3cb012['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3cb012['model']['document']['registerPostFixer'](_0x5271b1=>{let _0x622b52=!0x1;const _0x1fe9ea=Array['from'](_0x3cb012['model']['document']['differ']['getChangedMarkers']()),_0x2d02dc=new Set();for(const {name:_0x557df6,data:_0x348db4}of _0x1fe9ea){const {group:_0xd7d782,type:_0x3bb4b2,subType:_0x2cc00f,id:_0xfeeeef}=this['_splitMarkerName'](_0x557df6);if('suggestion'!==_0xd7d782)continue;const _0xf8cc57=_0x2cc00f?'suggestion:'+_0x3bb4b2+':'+_0x2cc00f+':'+_0xfeeeef:'suggestion:'+_0x3bb4b2+':'+_0xfeeeef,_0x588739=_0x3cb012['model']['markers']['getMarkersGroup'](_0xf8cc57),_0x401294=_0x3cb012['model']['markers']['get'](_0x557df6),_0x4ee05c=this['_suggestions']['get'](_0xfeeeef);if(null!=_0x348db4['newRange']){'formatInline'==_0x3bb4b2&&(_0x622b52=_0x622b52||Wt(_0x348db4['newRange'],_0x557df6,_0x5271b1,_0x3cb012['model']['schema']));const _0x8c7494='attribute'==_0x3bb4b2&&this['_isBlockAttribute'](_0x2cc00f['split']('|')[0x0]),_0x395c4e='attribute'==_0x3bb4b2&&this['_isInlineAttribute'](_0x2cc00f['split']('|')[0x0]);if(_0x348db4['newRange']['isCollapsed']||'$graveyard'==_0x348db4['newRange']['root']['rootName']||'formatBlock'==_0x3bb4b2&&!Qt(_0x348db4['newRange'])||_0x8c7494&&!Qt(_0x348db4['newRange'])||_0x395c4e&&Xt(_0x348db4['newRange'])||'deletion'==_0x3bb4b2&&Xt(_0x348db4['newRange'])||_0x401294&&Yt(_0x401294,_0x588739))_0x5271b1['removeMarker'](_0x557df6),_0x622b52=!0x0;else{if(!_0x4ee05c||!_0x4ee05c['isInContent'])continue;if(_0x348db4['newRange']&&_0x348db4['oldRange']&&_0x348db4['newRange']['isEqual'](_0x348db4['oldRange']))continue;_0x2d02dc['add'](_0x4ee05c);}}}return _0x2d02dc['size']>0x0&&(_0x622b52=!!this['_joinWithAdjacentSuggestions'](_0x2d02dc)||_0x622b52),_0x622b52;}),_0x3cb012['model']['document']['registerPostFixer'](_0x14ac24=>{let _0x5309e1=!0x1;for(const _0xedbdbb of _0x3cb012['model']['document']['differ']['getChanges']())if('insert'==_0xedbdbb['type'])for(const _0x12d498 of this['_suggestions']['values']()){if(_0x12d498['isMultiRange']||!_0x12d498['isInContent'])continue;const _0x34a490='formatBlock'==_0x12d498['type'],_0x38c704=this['_getAttributeKey'](_0x12d498),_0x24076e=_0x38c704&&this['_isBlockAttribute'](_0x38c704);if(!_0x34a490&&!_0x24076e)continue;const _0x851910=_0x12d498['getFirstRange']();if(_0x851910['start']['parent']!=_0x851910['end']['parent']&&!_0x851910['end']['isAtEnd']){const _0x1dc155=_0x3cb012['model']['createPositionAt'](_0x851910['start']['nodeAfter'],'end'),_0x1bb199=_0x3cb012['model']['createRange'](_0x851910['start'],_0x1dc155);_0x14ac24['updateMarker'](_0x12d498['getFirstMarker'](),{'range':_0x1bb199}),_0x5309e1=!0x0;}}return _0x5309e1;}),_0x3cb012['model']['document']['registerPostFixer'](_0x4831f9=>this['_processAttributeChanges'](_0x4831f9)),_0x3cb012['model']['document']['registerPostFixer'](_0x519597=>!_0x519597['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x519597)),_0x3cb012['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3cb012['model']['document']['on']('change:data',(_0x2f8348,_0x321ee2)=>{if(!_0x321ee2['isLocal']||_0x321ee2['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x52712c=_0x3cb012['model']['document']['differ']['getChanges']();if(0x0==_0x52712c['length'])return;const _0x2fb945=[],_0x256682=_0x52712c['filter'](_0x57e07c=>'attribute'==_0x57e07c['type']),_0x206597=_0x52712c['filter'](_0x462e10=>'insert'==_0x462e10['type']&&'$text'!=_0x462e10['name']);for(const _0x1bec7a of _0x256682)this['_isRegisteredAttribute'](_0x1bec7a['attributeKey'])&&_0x2fb945['push']({'key':_0x1bec7a['attributeKey'],'newValue':_0x1bec7a['attributeNewValue'],'oldValue':_0x1bec7a['attributeOldValue'],'range':Zt(_0x1bec7a['range'],_0x3cb012['model'])});for(const _0x4f679c of _0x206597){if('rename'!=_0x4f679c['action']&&'refresh'!=_0x4f679c['action'])continue;const _0x506ea1=tn(_0x4f679c['position']['nodeAfter'],_0x3cb012['model']),_0x312c35=_0x4f679c['before'];'rename'==_0x4f679c['action']&&_0x2fb945['push']({'key':m,'newValue':_0x4f679c['name'],'oldValue':_0x312c35['name'],'range':_0x506ea1});for(const [_0x5a02a3,_0x35e8f6]of _0x312c35['attributes']){if(!this['_isRegisteredAttribute'](_0x5a02a3))continue;const _0x18cb12=_0x4f679c['attributes']['get'](_0x5a02a3);_0x35e8f6!==_0x18cb12&&_0x2fb945['push']({'key':_0x5a02a3,'newValue':_0x18cb12,'oldValue':_0x35e8f6,'range':_0x506ea1});}for(const [_0x115200,_0x3cceef]of _0x4f679c['attributes'])this['_isRegisteredAttribute'](_0x115200)&&(_0x312c35['attributes']['has'](_0x115200)||_0x2fb945['push']({'key':_0x115200,'newValue':_0x3cceef,'oldValue':null,'range':_0x506ea1}));}0x0!=_0x2fb945['length']&&_0x3cb012['model']['enqueueChange'](_0x321ee2,_0x8609f8=>{const _0x2b5379=_0x47c5b6();for(const {range:_0x584189,key:_0xe9d72a,oldValue:_0x3a0d2e,newValue:_0x2fe8be}of _0x2fb945)this['markAttributeChange'](_0x584189,_0xe9d72a,_0x3a0d2e,_0x2fe8be,{'groupId':_0x2b5379});this['_reduceExistingSuggestions'](_0x8609f8,_0x2fb945);});},{'priority':'lowest'}),_0x3cb012['model']['markers']['on']('update:suggestion',(_0x2bd9ce,_0x5fe27f,_0x94c1ff)=>{if(null==_0x94c1ff){const {id:_0xd3bd0e}=this['_splitMarkerName'](_0x5fe27f['name']),_0x474e10=this['_suggestions']['get'](_0xd3bd0e);_0x474e10&&_0x474e10['addMarkerName'](_0x5fe27f['name']);}}),_0x3cb012['model']['document']['on']('change:data',()=>{const _0x596aef=Array['from'](_0x3cb012['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5c7a9d=>'suggestion'===this['_splitMarkerName'](_0x5c7a9d['name'])['group']);if(0x0===_0x596aef['length'])return;_0x596aef['sort']((_0x342217,_0x3ffffa)=>{const _0x25b299=_0x342217['data']['oldRange'],_0x2f7e23=_0x3ffffa['data']['oldRange'];return null===_0x25b299&&null===_0x2f7e23?0x0:null===_0x25b299&&null!==_0x2f7e23?-0x1:null!==_0x25b299&&null===_0x2f7e23?0x1:_0x25b299['start']['isBefore'](_0x2f7e23['start'])?-0x1:0x1;});const _0x3181ad=new Set(),_0x30e421=new Set();for(const {name:_0x3b8923,data:_0x56c864}of _0x596aef){const {id:_0xae122b}=this['_splitMarkerName'](_0x3b8923);if(null===_0x56c864['oldRange']){const _0x35ac15=this['_handleNewSuggestionMarker'](_0x3b8923);_0x30e421['add'](_0x35ac15);}else{const _0x44074e=this['_suggestions']['get'](_0xae122b);null!==_0x56c864['newRange']||_0x44074e['isInContent']?(_0x3181ad['add'](_0x44074e['head']),_0x30e421['add'](_0x44074e)):this['_removeSuggestion'](_0x44074e);}}_0x30e421['size']>0x0&&this['_refreshSuggestionsChain'](_0x30e421);for(const _0x13ab2 of _0x3181ad)this['fire']('suggestionChanged',_0x13ab2);}),_0x3cb012['model']['on']('applyOperation',(_0x3b594d,_0x2a78ef)=>{const _0x5c97b8=_0x2a78ef[0x0];if(!this['_suggestions']['size'])return;if(!_0x5c97b8['isDocumentOperation'])return;if(_0x5c97b8['batch']['isUndo']||!_0x5c97b8['batch']['isLocal'])return;let _0x210977,_0x21dd72;switch(_0x5c97b8['type']){case'insert':_0x210977=_0x3cb012['model']['createPositionAt'](_0x5c97b8['position']),_0x21dd72=_0x210977['getShiftedBy'](_0x5c97b8['howMany']);break;case'split':_0x210977=_0x3cb012['model']['createPositionAt'](_0x5c97b8['splitPosition']),_0x21dd72=_0x3cb012['model']['createPositionAt'](_0x5c97b8['moveTargetPosition']);break;case'move':_0x210977=_0x3cb012['model']['createPositionAt'](_0x5c97b8['targetPosition']),_0x21dd72=_0x210977['getShiftedBy'](_0x5c97b8['howMany']);break;default:return;}const _0x4ec8d7=_0x3cb012['model']['createRange'](_0x210977,_0x21dd72);_0x3cb012['model']['change'](()=>{for(const {suggestion:_0x486e3c,meta:_0x55b062}of this['_findSuggestions'](_0x4ec8d7)){if(_0x486e3c['isMultiRange'])continue;if('formatInline'==_0x486e3c['type'])continue;const _0x33ca88=this['_getAttributeKey'](_0x486e3c);if(_0x33ca88&&this['_isBlockAttribute'](_0x33ca88)&&'split'!=_0x5c97b8['type'])continue;const _0x4362e1=_0x486e3c['data']&&_0x486e3c['data']['multipleBlocks'];('formatBlock'!=_0x486e3c['type']||'split'==_0x5c97b8['type']&&!_0x4362e1)&&(_0x55b062['containsRangeInObject']||'insertion'==_0x486e3c['type']&&_0x55b062['isOwn']||_0x486e3c['getFirstRange']()['containsRange'](_0x4ec8d7)&&this['_breakSuggestionMarker'](_0x486e3c,_0x210977,_0x21dd72));}});},{'priority':'lowest'}),_0x3cb012['model']['on']('deleteContent',(_0x4d45ca,_0x2506fd)=>{const _0x4d2a7=_0x2506fd[0x0],_0x5ca4d0=_0x2506fd[0x1];if(_0x5ca4d0&&_0x5ca4d0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4d2a7['isCollapsed'])return;const _0x167fb6=_0x3cb012['model']['schema'],{start:_0x57e4e3,end:_0x21956b}=_0x4d2a7['getFirstRange'](),_0x3fcc06=_0x57e4e3['nodeAfter']&&_0x167fb6['isLimit'](_0x57e4e3['nodeAfter'])?null:_0x167fb6['getNearestSelectionRange'](_0x57e4e3,'forward'),_0x291746=_0x21956b['nodeBefore']&&_0x167fb6['isLimit'](_0x21956b['nodeBefore'])?null:_0x167fb6['getNearestSelectionRange'](_0x21956b,'backward'),_0x16720b=_0x3cb012['model']['createRange'](_0x3fcc06?_0x3fcc06['start']:_0x57e4e3,_0x291746?_0x291746['end']:_0x21956b);_0x3cb012['model']['change'](_0x5a9016=>{this['markDeletion'](_0x16720b);const _0x1b9f5f=_0x3cb012['model']['schema']['getNearestSelectionRange'](_0x16720b['start']);_0x4d2a7['is']('documentSelection')?_0x5a9016['setSelection'](_0x1b9f5f):_0x4d2a7['setTo'](_0x1b9f5f);}),_0x4d45ca['stop']();},{'priority':_0x5dcdab['normal']+0xa}),_0x3cb012['model']['on']('insertContent',(_0x231937,_0x1e8beb)=>{const _0x117908=_0x1e8beb[_0x1e8beb['length']-0x1];_0x117908&&_0x117908['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3cb012['model']['change'](()=>{let _0x4ba69e=_0x3cb012['model']['insertContent'](_0x1e8beb[0x0],_0x1e8beb[0x1],_0x1e8beb[0x2],{'forceDefaultExecution':!0x0});if(!_0x4ba69e)return;_0x231937['return']=_0x4ba69e['clone']();const _0x1f5ca8=_0x4ba69e['end']['nodeBefore'],_0x1518b4=_0x3cb012['model']['schema'];_0x1f5ca8&&_0x1518b4['isBlock'](_0x1f5ca8)&&!_0x1518b4['isObject'](_0x1f5ca8)&&(_0x4ba69e=_0x3cb012['model']['createRange'](_0x4ba69e['start'],_0x3cb012['model']['createPositionAt'](_0x1f5ca8,'end'))),this['markInsertion'](_0x4ba69e);}),_0x231937['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x13252b=new v(_0x3cb012,this['_suggestions']);_0x3cb012['commands']['add']('acceptSuggestion',_0x13252b),this['enableCommand']('acceptSuggestion');const _0x160614=new D(_0x3cb012,this['_suggestions']);_0x3cb012['commands']['add']('discardSuggestion',_0x160614),this['enableCommand']('discardSuggestion'),_0x3cb012['commands']['add']('acceptAllSuggestions',new B(_0x3cb012,_0x13252b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3cb012['commands']['add']('discardAllSuggestions',new B(_0x3cb012,_0x160614,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3cb012['commands']['add']('acceptSelectedSuggestions',new O(_0x3cb012,_0x13252b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3cb012['commands']['add']('discardSelectedSuggestions',new O(_0x3cb012,_0x160614,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x107299=_0x3cb012['plugins']['get']('CommentsRepository');this['listenTo'](_0x107299,'addComment',(_0x520ff5,{threadId:_0x16e061})=>{const _0x4cf445=this['_suggestions']['get'](_0x16e061);_0x4cf445&&_0x4cf445['commentThread']&&0x1===_0x4cf445['commentThread']['length']&&this['_updateSuggestionData'](_0x16e061,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x107299,'removeComment',(_0x2eda59,{threadId:_0xc03c30})=>{const _0x105e7c=this['_suggestions']['get'](_0xc03c30);_0x105e7c&&_0x105e7c['commentThread']&&!_0x105e7c['commentThread']['length']&&this['_updateSuggestionData'](_0xc03c30,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x481d33){const _0x522225=_0x11d3ee([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x5238d2=0x3d8d0df,_0x5b91b3=0x3dfae5f^_0x5238d2,_0x2ef478=window[_0x11d3ee([0x44,0x61,0x74,0x65])][_0x11d3ee([0x6e,0x6f,0x77])](),_0x4787fb=_0x481d33[_0x11d3ee([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x86546f=new window[(_0x11d3ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe92efe=>{_0x4787fb[_0x11d3ee([0x6f,0x6e,0x63,0x65])](_0x11d3ee([0x72,0x65,0x61,0x64,0x79]),_0xe92efe);}),_0x38bcab={[_0x11d3ee([0x6b,0x74,0x79])]:_0x11d3ee([0x45,0x43]),[_0x11d3ee([0x75,0x73,0x65])]:_0x11d3ee([0x73,0x69,0x67]),[_0x11d3ee([0x63,0x72,0x76])]:_0x11d3ee([0x50,0x2d,0x32,0x35,0x36]),[_0x11d3ee([0x78])]:_0x11d3ee([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]),[_0x11d3ee([0x79])]:_0x11d3ee([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]),[_0x11d3ee([0x61,0x6c,0x67])]:_0x11d3ee([0x45,0x53,0x32,0x35,0x36])},_0x2b6c8f=_0x4787fb[_0x11d3ee([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11d3ee([0x67,0x65,0x74])](_0x11d3ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3baee8(){let _0x2828cf,_0x53b8bf=null,_0x41210d=null;try{if(_0x2b6c8f==_0x11d3ee([0x47,0x50,0x4c]))return _0x11d3ee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2828cf=_0x363956(),!_0x2828cf)return _0x11d3ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2828cf[_0x11d3ee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41210d=_0xcbe501(_0x2828cf[_0x11d3ee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2828cf[_0x11d3ee([0x6a,0x74,0x69])])),await _0x220b0a()?_0x1aa21a()?_0x4f13d9()?_0x11d3ee([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5cbe11()?(_0x2828cf[_0x11d3ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11d3ee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53b8bf=_0x417948(_0x11d3ee([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x306974()):_0x11d3ee([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11d3ee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11d3ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x11d3ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4f13d9(){const _0x2d6147=[_0x11d3ee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11d3ee([0x74,0x72,0x69,0x61,0x6c])][_0x11d3ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2828cf[_0x11d3ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ef478/0x3e8:0xe10*_0x5b91b3;return _0x2828cf[_0x11d3ee([0x65,0x78,0x70])]<_0x2d6147;}function _0x1aa21a(){const _0x5aca06=_0x2828cf[_0x11d3ee([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5aca06)return!0x1;if(_0x5aca06[_0x11d3ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11d3ee([0x2a])))return!0x0;if(_0x5aca06[_0x11d3ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11d3ee([0x54,0x43])))return!0x0;if(_0x5aca06[_0x11d3ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11d3ee([0x52,0x54,0x43]))){if(_0x1b8b90())return!0x0;if(_0x1b4408()||_0x108fb0())return!0x0;}return!0x1;}function _0x5cbe11(){const _0x2b924e=_0x2828cf[_0x11d3ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b924e||0x0==_0x2b924e[_0x11d3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b56df}=new URL(window[_0x11d3ee([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b924e[_0x11d3ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b56df))return!0x0;const _0x226f52=_0x2b56df[_0x11d3ee([0x73,0x70,0x6c,0x69,0x74])](_0x11d3ee([0x2e]));return _0x2b924e[_0x11d3ee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bf58b=>_0x5bf58b[_0x11d3ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11d3ee([0x2a])))[_0x11d3ee([0x6d,0x61,0x70])](_0x124489=>_0x124489[_0x11d3ee([0x73,0x70,0x6c,0x69,0x74])](_0x11d3ee([0x2e])))[_0x11d3ee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d1948=>_0x1d1948[_0x11d3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x226f52[_0x11d3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11d3ee([0x6d,0x61,0x70])](_0x2e274c=>Array(_0x226f52[_0x11d3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e274c[_0x11d3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11d3ee([0x66,0x69,0x6c,0x6c])](_0x2e274c[0x0]===_0x11d3ee([0x2a])?_0x11d3ee([0x2a]):'')[_0x11d3ee([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e274c))[_0x11d3ee([0x73,0x6f,0x6d,0x65])](_0x266023=>_0x226f52[_0x11d3ee([0x65,0x76,0x65,0x72,0x79])]((_0x3f9553,_0x5d58a1)=>_0x266023[_0x5d58a1]===_0x3f9553||_0x266023[_0x5d58a1]===_0x11d3ee([0x2a])));}function _0x306974(){return _0x53b8bf&&_0x41210d?new window[(_0x11d3ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3faf33,_0x3db83e)=>{_0x53b8bf[_0x11d3ee([0x74,0x68,0x65,0x6e])](_0x3faf33,_0x3db83e),_0x41210d[_0x11d3ee([0x74,0x68,0x65,0x6e])](_0x213b4e=>{_0x213b4e!=_0x11d3ee([0x56,0x61,0x6c,0x69,0x64])&&_0x3faf33(_0x213b4e);},_0x3db83e);}):_0x53b8bf||_0x41210d||_0x11d3ee([0x56,0x61,0x6c,0x69,0x64]);}}function _0xcbe501(_0x15fe3b,_0x205cda){return new window[(_0x11d3ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x68baa5=>{if(_0x1b10fd())return _0x68baa5(_0x11d3ee([0x56,0x61,0x6c,0x69,0x64]));_0x2ed500(),_0x4787fb[_0x11d3ee([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11d3ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3859af=!0x1;const _0x298280=_0x47c5b6();function _0x5bbd7e(_0x10be08){return!!_0x10be08&&(typeof _0x10be08===_0x11d3ee([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10be08===_0x11d3ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10be08[_0x11d3ee([0x74,0x68,0x65,0x6e])]===_0x11d3ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10be08[_0x11d3ee([0x63,0x61,0x74,0x63,0x68])]===_0x11d3ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ca347(_0x3a53d8){_0x1cbe09(_0x3a53d8)[_0x11d3ee([0x74,0x68,0x65,0x6e])](_0x21bb19=>{if(!_0x21bb19||_0x21bb19[_0x11d3ee([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11d3ee([0x6f,0x6b]))return _0x11d3ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x173cb9(_0x5de7e6(_0x298280+_0x205cda))!=_0x21bb19[_0x11d3ee([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11d3ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11d3ee([0x56,0x61,0x6c,0x69,0x64]);})[_0x11d3ee([0x74,0x68,0x65,0x6e])](_0x5bf970=>(_0x4ed77a(),_0x5bf970),()=>{const _0x1c3968=_0x31d4e5();return null==_0x1c3968?(_0x4ed77a(),_0x11d3ee([0x56,0x61,0x6c,0x69,0x64])):_0x11d3ee(_0x2ef478-_0x1c3968>(0x27d454df^_0x5238d2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11d3ee([0x74,0x68,0x65,0x6e])](_0x68baa5)[_0x11d3ee([0x63,0x61,0x74,0x63,0x68])](()=>{_0x68baa5(_0x11d3ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc9c6e6=0x3ee3e5f^_0x5238d2;function _0x4ed77a(){const _0xbfb00d=_0x11d3ee([0x6c,0x6c,0x63,0x74,0x2d])+_0x173cb9(_0x5de7e6(_0x15fe3b)),_0x385d82=_0x50f93c(_0x173cb9(window[_0x11d3ee([0x4d,0x61,0x74,0x68])][_0x11d3ee([0x63,0x65,0x69,0x6c])](_0x2ef478/_0xc9c6e6)));window[_0x11d3ee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11d3ee([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbfb00d,_0x385d82);}function _0x31d4e5(){const _0x29ec7e=_0x11d3ee([0x6c,0x6c,0x63,0x74,0x2d])+_0x173cb9(_0x5de7e6(_0x15fe3b)),_0x5cbb73=window[_0x11d3ee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11d3ee([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29ec7e);return _0x5cbb73?window[_0x11d3ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50f93c(_0x5cbb73),0x10)*_0xc9c6e6:null;}function _0x1cbe09(_0x36bffe){return new window[(_0x11d3ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4442da,_0x351a6a)=>{_0x36bffe[_0x11d3ee([0x74,0x68,0x65,0x6e])](_0x4442da,_0x351a6a),window[_0x11d3ee([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x351a6a,0x3d9041f^_0x5238d2);});}}_0x4787fb[_0x11d3ee([0x6f,0x6e])](_0x11d3ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ec266,_0x31fb07)=>{if(_0x31fb07[0x0]!=_0x15fe3b)return _0x68baa5(_0x11d3ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31fb07[0x1]={..._0x31fb07[0x1],[_0x11d3ee([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x298280};},{[_0x11d3ee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11d3ee([0x68,0x69,0x67,0x68])}),_0x4787fb[_0x11d3ee([0x6f,0x6e])](_0x11d3ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9bc44d=>{_0x5bbd7e(_0x9bc44d[_0x11d3ee([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3859af=!0x0,_0x4ca347(_0x9bc44d[_0x11d3ee([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11d3ee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11d3ee([0x6c,0x6f,0x77])}),_0x86546f[_0x11d3ee([0x74,0x68,0x65,0x6e])](()=>{_0x3859af||_0x68baa5(_0x11d3ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b10fd(){return _0x4787fb[_0x11d3ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11d3ee([0x76,0x69,0x65,0x77])][_0x11d3ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11d3ee([0x61,0x75,0x74,0x6f]);}function _0x2ed500(){_0x4787fb[_0x11d3ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11d3ee([0x76,0x69,0x65,0x77])][_0x11d3ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11d3ee([0x61,0x75,0x74,0x6f]);}}function _0x417948(_0x147592){const _0x29303f=[new window[(_0x11d3ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49459b=>setTimeout(_0x49459b,0x3d1ee13^_0x5238d2)),_0x86546f[_0x11d3ee([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11d3ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x333bae=>{let _0x300335=0x0;_0x4787fb[_0x11d3ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x11d3ee([0x6f,0x6e])](_0x11d3ee([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22c17a,_0x208fcd)=>{_0x208fcd[0x0][_0x11d3ee([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x300335++,_0x300335==(0x3d8d537^_0x5238d2)&&(_0x333bae(),_0x22c17a[_0x11d3ee([0x6f,0x66,0x66])]());});}))];return window[_0x11d3ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11d3ee([0x72,0x61,0x63,0x65])](_0x29303f)[_0x11d3ee([0x74,0x68,0x65,0x6e])](()=>_0x147592);}async function _0x3fc7c7(){await _0x86546f,_0x4787fb[_0x11d3ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x11d3ee([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x870bc2,_0x4787fb[_0x11d3ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x11d3ee([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x870bc2,_0x4787fb[_0x11d3ee([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11d3ee([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b8b90(){return _0x45c79b(_0x11d3ee([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4f3573(_0x11d3ee([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x11d3ee([0x73,0x74,0x61,0x74,0x65])]==_0x11d3ee([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1b4408(){return _0x45c79b(_0x11d3ee([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 _0x108fb0(){return _0x45c79b(_0x11d3ee([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x84af8b(_0x2b7544){const _0x375283=_0x5452db();_0x4787fb[_0x375283]=_0x11d3ee([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2b7544,_0x2b7544!=_0x11d3ee([0x56,0x61,0x6c,0x69,0x64])&&_0x3fc7c7();}function _0x5452db(){const _0x1dba16=window[_0x11d3ee([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11d3ee([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11d3ee([0x6e,0x6f,0x77])]())[_0x11d3ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11d3ee([0x2e]),'');let _0x30f400=_0x11d3ee([0x52]);for(let _0x2c271e=0x0;_0x2c271e<_0x1dba16[_0x11d3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c271e+=0x2){let _0x218afe=window[_0x11d3ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1dba16[_0x11d3ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c271e,_0x2c271e+0x2));_0x218afe>=_0x522225[_0x11d3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x218afe-=_0x522225[_0x11d3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30f400+=_0x522225[_0x218afe];}return _0x30f400;}function _0x363956(){const _0x4189bb=_0x2b6c8f[_0x11d3ee([0x73,0x70,0x6c,0x69,0x74])](_0x11d3ee([0x2e]));if(0x3!=_0x4189bb[_0x11d3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40864a(_0x4189bb[0x1]);function _0x40864a(_0xfcf769){const _0xc7777c=_0x897294(_0xfcf769);return _0xc7777c&&_0x871a31()?_0xc7777c:null;function _0x871a31(){const _0x2c71ca=_0xc7777c[_0x11d3ee([0x6a,0x74,0x69])],_0x4174be=window[_0x11d3ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c71ca[_0x11d3ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c71ca[_0x11d3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa6cb56={..._0xc7777c,[_0x11d3ee([0x6a,0x74,0x69])]:_0x2c71ca[_0x11d3ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c71ca[_0x11d3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa6cb56[_0x11d3ee([0x76,0x63])],_0x5de7e6(_0xa6cb56)==_0x4174be;}}}async function _0x220b0a(){let _0x3715e3=!0x0;try{const _0x1973ca=_0x2b6c8f[_0x11d3ee([0x73,0x70,0x6c,0x69,0x74])](_0x11d3ee([0x2e])),[_0x4c5a05,_0x4d0cb4,_0x28ca59]=_0x1973ca;return _0x16d53a(_0x4c5a05),await _0x4f855e(_0x4c5a05,_0x4d0cb4,_0x28ca59),_0x3715e3;}catch{return!0x1;}function _0x16d53a(_0xb4e70e){const _0x46e106=_0x897294(_0xb4e70e);_0x46e106&&_0x46e106[_0x11d3ee([0x61,0x6c,0x67])]==_0x11d3ee([0x45,0x53,0x32,0x35,0x36])||(_0x3715e3=!0x1);}async function _0x4f855e(_0x3a9c2b,_0x47f64c,_0x4dcd84){const _0x18e6e6=window[_0x11d3ee([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11d3ee([0x66,0x72,0x6f,0x6d])](_0x5d125a(_0x4dcd84),_0x939e93=>_0x939e93[_0x11d3ee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x54e5d5=new window[(_0x11d3ee([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11d3ee([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a9c2b+_0x11d3ee([0x2e])+_0x47f64c),_0x243158=window[_0x11d3ee([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11d3ee([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x243158)return;const _0xeb5952=await _0x243158[_0x11d3ee([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11d3ee([0x6a,0x77,0x6b]),_0x38bcab,{[_0x11d3ee([0x6e,0x61,0x6d,0x65])]:_0x11d3ee([0x45,0x43,0x44,0x53,0x41]),[_0x11d3ee([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11d3ee([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11d3ee([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x243158[_0x11d3ee([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11d3ee([0x6e,0x61,0x6d,0x65])]:_0x11d3ee([0x45,0x43,0x44,0x53,0x41]),[_0x11d3ee([0x68,0x61,0x73,0x68])]:{[_0x11d3ee([0x6e,0x61,0x6d,0x65])]:_0x11d3ee([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xeb5952,_0x18e6e6,_0x54e5d5)||(_0x3715e3=!0x1);}}function _0x897294(_0x52adcf){return _0x52adcf[_0x11d3ee([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11d3ee([0x65,0x79]))?JSON[_0x11d3ee([0x70,0x61,0x72,0x73,0x65])](_0x5d125a(_0x52adcf)):null;}function _0x5d125a(_0x313342){return window[_0x11d3ee([0x61,0x74,0x6f,0x62])](_0x313342[_0x11d3ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11d3ee([0x2b]))[_0x11d3ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11d3ee([0x2f])));}function _0x5de7e6(_0x4642d7){let _0x4f8c90=0x1505;function _0x5baf61(_0x3d0451){for(let _0x55ee5b=0x0;_0x55ee5b<_0x3d0451[_0x11d3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55ee5b++){const _0x357a0e=_0x3d0451[_0x11d3ee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55ee5b);_0x4f8c90=(_0x4f8c90<<0x5)+_0x4f8c90+_0x357a0e,_0x4f8c90&=_0x4f8c90;}}function _0x4c75c1(_0x3d2ca7){Array[_0x11d3ee([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d2ca7)?_0x3d2ca7[_0x11d3ee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c75c1):_0x3d2ca7&&typeof _0x3d2ca7==_0x11d3ee([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11d3ee([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d2ca7)[_0x11d3ee([0x73,0x6f,0x72,0x74])]()[_0x11d3ee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40cbd9,_0x50086a])=>{_0x5baf61(_0x40cbd9),_0x4c75c1(_0x50086a);}):_0x5baf61(window[_0x11d3ee([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d2ca7));}return _0x4c75c1(_0x4642d7),_0x4f8c90>>>0x0;}function _0x173cb9(_0x1c9b1a){return _0x1c9b1a[_0x11d3ee([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11d3ee([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11d3ee([0x30]));}function _0x50f93c(_0x5c283d){return _0x5c283d[_0x11d3ee([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11d3ee([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11d3ee([0x6a,0x6f,0x69,0x6e])]('');}function _0x45c79b(_0x254422){return _0x4787fb[_0x11d3ee([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x11d3ee([0x68,0x61,0x73])](_0x254422);}function _0x4f3573(_0x4b3554){return _0x4787fb[_0x11d3ee([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x11d3ee([0x67,0x65,0x74])](_0x4b3554);}function _0x870bc2(){}function _0x11d3ee(_0x2d9443){return _0x2d9443['map'](_0x43a79f=>String['fromCharCode'](_0x43a79f))['join']('');}_0x84af8b(await _0x3baee8());}(this);}set['adapter'](_0x38eb9c){if(this['_adapter'])throw new _0x2003cb('track-changes-adapter-already-set',this);this['_adapter']=_0x38eb9c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3a281a=!0x1,toJSON:_0x2bfcb4=!0x1}={}){const _0x2f7d32=[];for(const _0x363d83 of this['_suggestions']['values']())_0x3a281a&&!_0x363d83['isInContent']||_0x2f7d32['push'](_0x363d83);return _0x2bfcb4?_0x2f7d32['map'](_0x2c378f=>_0x2c378f['toJSON']()):_0x2f7d32;}['getSuggestion'](_0x15cbda){const _0x2b4a13=this['_suggestions']['get'](_0x15cbda);if(!_0x2b4a13)throw new _0x2003cb('track-changes-suggestion-not-found',this);return _0x2b4a13;}['hasSuggestion'](_0x3daf1f){return this['_suggestions']['has'](_0x3daf1f);}['addSuggestionData'](_0x4de5e6){const {authorId:_0x3fcaa2,id:_0x1e2008,originalSuggestionId:_0x577e5b,attributes:_0x212800}=_0x4de5e6,[_0x36388f,_0x58e750]=_0x4de5e6['type']['split'](':'),_0x3d033b=this['_suggestions']['get'](_0x1e2008)||this['_createSuggestion'](_0x36388f,_0x58e750,_0x1e2008,_0x3fcaa2,_0x212800,_0x577e5b);if(this['_addThreadToSuggestion'](_0x3d033b),this['_checkSuggestionCorrectness'](_0x3d033b,_0x36388f,_0x58e750||null,_0x3fcaa2),_0x3d033b['createdAt']=_0x4de5e6['createdAt'],_0x3d033b['_isDataLoaded']=!0x0,_0x212800&&_0x212800['@external']){const _0x278a1f=_0x212800['@external'],_0x3b382b=this['_getExternalAuthor'](_0x278a1f['authorName']);_0x3d033b['authoredAt']=_0x278a1f['createdAt'],_0x3d033b['author']=_0x3b382b,_0x3d033b['isExternal']=!0x0;}else _0x3d033b['authoredAt']=_0x4de5e6['createdAt'];switch(_0x4de5e6['data']&&(_0x3d033b['data']=_0x4de5e6['data']),_0x4de5e6['attributes']&&(_0x3d033b['attributes']=_0x4de5e6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3d033b['_saved']=!0x0),this['_suggestionState']['get'](_0x3d033b)){case'notReady':this['_suggestionState']['set'](_0x3d033b,'dataReady');break;case'markerReady':_0x3d033b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3d033b])),this['_refreshSuggestionsChain'](new Set([_0x3d033b])),this['_suggestionState']['set'](_0x3d033b,'ready'),this['fire']('suggestionLoaded',_0x3d033b)):this['_suggestionState']['set'](_0x3d033b,'removed');}return _0x3d033b;}['acceptSuggestion'](_0x54f145){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4205e3 of _0x54f145['getAllAdjacentSuggestions']())_0x4205e3['accept']();});});}['discardSuggestion'](_0x245337){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x503b45 of _0x245337['getAllAdjacentSuggestions']())_0x503b45['discard']();});});}['enableCommand'](_0x2aef90,_0x1c5585){const _0x5f5daf=this['editor']['commands']['get'](_0x2aef90);if(!_0x5f5daf)throw new _0x2003cb('track-changes-command-not-found',this,{'commandName':_0x2aef90});if(this['_enabledCommands']['has'](_0x5f5daf))throw new _0x2003cb('track-changes-enable-command-twice',this,{'commandName':_0x2aef90});this['_enabledCommands']['add'](_0x5f5daf),_0x1c5585&&_0x5f5daf['on']('execute',(_0x3e0311,_0x4c73cb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4c73cb['length']>0x0&&_0x4c73cb[_0x4c73cb['length']-0x1]&&_0x4c73cb[_0x4c73cb['length']-0x1]['forceDefaultExecution']?_0x4c73cb['pop']():(_0x3e0311['return']=_0x1c5585((..._0x3fcd9a)=>_0x5f5daf['execute'](..._0x3fcd9a,{'forceDefaultExecution':!0x0}),..._0x4c73cb),_0x3e0311['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2242a4){let _0x384e99,_0x331660;const _0x13b82c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x384e99=_0x2242a4();}catch(_0x785201){_0x331660=_0x785201;}return _0x13b82c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x331660&&_0x2003cb['rethrowUnexpectedError'](_0x331660,this),_0x384e99;}['markInsertion'](_0x4dbf9c,_0x4b4bbe=null,_0x6c89a8={}){if(_0x4dbf9c['isCollapsed'])return null;const _0x480986=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x6c89a8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x509203,meta:_0x1a9250}of this['_findSuggestions'](_0x4dbf9c,'insertion'))if(_0x1a9250['isOwn']){if(!_0x1a9250['isNextTo']){if(_0x1a9250['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x509203,_0x6c89a8))continue;return _0x509203;}if(sn(_0x509203,_0x6c89a8))return _0x509203;this['_breakSuggestionMarker'](_0x509203,_0x4dbf9c['start'],_0x4dbf9c['end']);break;}if(_0x4b4bbe==_0x509203['subType']&&sn(_0x509203,_0x6c89a8)){const _0x199417=_0x509203['getFirstRange']();return _0x199417['start']['isEqual'](_0x4dbf9c['end'])?this['_setSuggestionRange'](_0x509203,this['_model']['createRange'](_0x4dbf9c['start'],_0x199417['end'])):this['_setSuggestionRange'](_0x509203,this['_model']['createRange'](_0x199417['start'],_0x4dbf9c['end'])),_0x509203;}}const _0x237e87=_0x47c5b6(),_0x16332f=_0x480986['id'],_0x6f5b38=_0x4b4bbe?'insertion:'+_0x4b4bbe:'insertion',_0x292850=this['_setSuggestionData']({'id':_0x237e87,'type':_0x6f5b38,'createdAt':new Date(),'authorId':_0x16332f,'attributes':_0x6c89a8});return this['_addSuggestionMarker'](_0x6f5b38,_0x237e87,_0x16332f,_0x4dbf9c),_0x292850;}['markMultiRangeInsertion'](_0x552a89,_0x15f933='multi',_0x8ad37b={}){const _0x1e2e01=this['editor']['plugins']['get']('Users')['me'],_0x29665f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x15f933,'join');this['_trackingSessionId']&&(_0x8ad37b['trackingSessionId']=this['_trackingSessionId']);for(const _0x28aba0 of this['getSuggestions']())if(_0x28aba0['author']['id']==_0x1e2e01['id']&&'insertion'==_0x28aba0['type']&&_0x28aba0['subType']==_0x15f933&&sn(_0x28aba0,_0x8ad37b)&&(_0x29665f(_0x28aba0['getRanges'](),_0x552a89)||_0x29665f(_0x552a89,_0x28aba0['getRanges']()))){for(const _0x336495 of _0x552a89)_0x28aba0['addRange'](_0x336495);return _0x28aba0;}for(const {suggestion:_0x3da74d,meta:_0x40d48a}of this['_findSuggestions'](_0x552a89,'insertion')){if(!_0x40d48a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x40d48a['containsRangeInObject'])continue;if(!sn(_0x3da74d,_0x8ad37b))continue;let _0x2a1530=!0x0;for(const _0x4fca1a of _0x3da74d['getRanges']())for(const _0x80b770 of _0x552a89)if(!_0x4fca1a['containsRange'](_0x80b770)){_0x2a1530=!0x1;break;}if(_0x2a1530)return _0x3da74d;}const _0x2deaf1=_0x47c5b6(),_0x5ceb92=_0x1e2e01['id'],_0x53c682='insertion:'+_0x15f933,_0x2098e1=this['_setSuggestionData']({'id':_0x2deaf1,'type':_0x53c682,'createdAt':new Date(),'authorId':_0x5ceb92,'attributes':_0x8ad37b});for(const _0x2efcdd of _0x552a89)this['_addSuggestionMarker'](_0x53c682,_0x2deaf1,_0x5ceb92,_0x2efcdd,x['getMultiRangeId']());return _0x2098e1;}['markInlineFormat'](_0x5908d1,_0x2a6614,_0x2b2151=null,_0x2ca8e2={}){if(_0x2b2151=_0x2b2151||Ht(_0x2a6614),_0x5908d1['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2ca8e2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2571f8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b2151,'accept');return this['forceDefaultExecution'](()=>_0x2571f8([_0x5908d1],_0x2a6614,_0x2ca8e2)),null;}const _0x527cd4=this['editor']['plugins']['get']('Users')['me'],_0x2d9246=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x106c24,meta:_0x4e257b}of this['_findSuggestions'](_0x5908d1,'insertion'))_0x4e257b['isOwn']&&!_0x4e257b['isInsideObject']&&_0x2d9246['push'](..._0x106c24['getRanges']());}const _0x62ccd5=function(_0x2d1728,_0x1f2eef){const _0x12e34d=[];for(const _0x1e6cf5 of _0x1f2eef){const _0x431782=_0x2d1728['getIntersection'](_0x1e6cf5);_0x431782&&_0x12e34d['push'](_0x431782);}return _0x12e34d;}(_0x5908d1,_0x2d9246),_0x4f826d=function(_0x51c912,_0x3b1dd8){const _0x198140=[_0x51c912];for(const _0x36239f of _0x3b1dd8){let _0x380ea8=0x0;for(;_0x380ea8<_0x198140['length'];){const _0x25a2b6=_0x198140[_0x380ea8]['getDifference'](_0x36239f);_0x198140['splice'](_0x380ea8,0x1,..._0x25a2b6),_0x380ea8+=_0x25a2b6['length'];}}return _0x198140;}(_0x5908d1,_0x2d9246);_0x62ccd5['length']&&this['_model']['change'](()=>{for(const _0x27d288 of _0x62ccd5){const _0x3865c7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b2151,'accept');this['forceDefaultExecution'](()=>_0x3865c7([_0x27d288],_0x2a6614,_0x2ca8e2));}});for(const _0x5da830 of _0x4f826d){let _0x479c3c=null,_0x54eec6=_0x5da830['start'],_0x16d748=_0x5da830['end'];for(const {suggestion:_0x481400,meta:_0x4dd148}of this['_findSuggestions'](_0x5da830,'formatInline')){if(!_0x4dd148['isOwn'])continue;if(_0x481400['subType']!=_0x2b2151)continue;if(!sn(_0x481400,_0x2ca8e2))continue;const _0x46d7a2=_0x481400['getFirstRange']();if(_0x46d7a2['containsRange'](_0x5da830,!0x0))return null;_0x54eec6=_0x54eec6['isBefore'](_0x46d7a2['start'])?_0x54eec6:_0x46d7a2['start'],_0x16d748=_0x16d748['isAfter'](_0x46d7a2['end'])?_0x16d748:_0x46d7a2['end'],_0x479c3c?_0x46d7a2['start']['isBefore'](_0x479c3c['getFirstRange']()['start'])?(_0x479c3c['removeMarkers'](),_0x479c3c=_0x481400):_0x481400['removeMarkers']():_0x479c3c=_0x481400;}const _0x5394a=this['_model']['createRange'](_0x54eec6,_0x16d748);if(_0x479c3c)this['_setSuggestionRange'](_0x479c3c,_0x5394a);else{const _0x35a924=_0x47c5b6(),_0x5a2954=_0x527cd4['id'];this['_setSuggestionData']({'id':_0x35a924,'type':'formatInline:'+_0x2b2151,'data':_0x2a6614,'createdAt':new Date(),'authorId':_0x5a2954,'attributes':_0x2ca8e2}),this['_addSuggestionMarker']('formatInline:'+_0x2b2151,_0x35a924,_0x5a2954,_0x5394a);}}return null;}['markBlockFormat'](_0x239cc5,_0x380c40,_0x4e3c31=[],_0x55a405=null,_0x2d4d7d={}){_0x380c40['formatGroupId']||(_0x380c40['formatGroupId']=_0x380c40['commandName']),_0x380c40['multipleBlocks']=_0x239cc5['is']('range'),_0x55a405=_0x55a405||Ht(_0x380c40);const _0x29d41f=_0x4e3c31['map'](_0x414594=>tn(_0x414594,this['_model'])),_0x49cca1=_0x239cc5['is']('range')?_0x239cc5:tn(_0x239cc5,this['_model']);if(this['_trackingSessionId']&&(_0x2d4d7d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x57dfd4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x55a405,'accept');return this['forceDefaultExecution'](()=>_0x57dfd4([_0x49cca1],_0x380c40,_0x2d4d7d)),null;}_0x29d41f['push'](_0x49cca1);let _0x591650=!0x0;for(const _0x385b31 of _0x29d41f)if(!this['_rangeIsInLocalUserInsertion'](_0x385b31)){_0x591650=!0x1;break;}if(_0x591650&&'always'!==this['_trackFormatChanges']){const _0x221260=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x55a405,'accept');return this['forceDefaultExecution'](()=>_0x221260([_0x49cca1],_0x380c40,_0x2d4d7d)),null;}let _0x1ee60f=null,_0x5470cb=_0x49cca1['start'],_0x5423fd=_0x49cca1['end'];for(const {suggestion:_0x2bb0b1,meta:_0x4b8459}of this['_findSuggestions'](_0x49cca1,'formatBlock')){if(!_0x4b8459['isOwn'])continue;if(_0x4b8459['isNextTo']||_0x4b8459['containsRangeInObject']||_0x4b8459['isInsideObject'])continue;if(_0x2bb0b1['data']['formatGroupId']!=_0x380c40['formatGroupId'])continue;if(!sn(_0x2bb0b1,_0x2d4d7d))continue;const _0x3450f0=_0x2bb0b1['getFirstRange']();if(_0x2bb0b1['subType']==_0x55a405){if(_0x3450f0['containsRange'](_0x49cca1,!0x0))return null;_0x5470cb=_0x5470cb['isBefore'](_0x3450f0['start'])?_0x5470cb:_0x3450f0['start'],_0x5423fd=_0x5423fd['isAfter'](_0x3450f0['end'])?_0x5423fd:_0x3450f0['end'],_0x1ee60f?_0x3450f0['start']['isBefore'](_0x1ee60f['getFirstRange']()['start'])?(_0x1ee60f['removeMarkers'](),_0x1ee60f=_0x2bb0b1):_0x2bb0b1['removeMarkers']():_0x1ee60f=_0x2bb0b1;}else{const _0x44edd0=_0x49cca1['getIntersection'](_0x3450f0);this['_cutOutSuggestionMarker'](_0x2bb0b1,_0x44edd0);}}const _0xb4ca80=this['editor']['plugins']['get']('Users')['me'],_0x33ea6f=_0x47c5b6(),_0x4c8ca2=_0xb4ca80['id'];if(_0x1ee60f)return this['_setSuggestionRange'](_0x1ee60f,this['_model']['createRange'](_0x5470cb,_0x5423fd)),_0x1ee60f;{const _0x28c17c=this['_setSuggestionData']({'id':_0x33ea6f,'type':'formatBlock:'+_0x55a405,'data':_0x380c40,'createdAt':new Date(),'authorId':_0x4c8ca2,'attributes':_0x2d4d7d});return this['_addSuggestionMarker']('formatBlock:'+_0x55a405,_0x33ea6f,_0x4c8ca2,this['_model']['createRange'](_0x5470cb,_0x5423fd)),_0x28c17c;}}['markMultiRangeBlockFormat'](_0x5dccaa,_0x330fb0,_0x53a524=[],_0x58736f=null,_0x31dfc4={}){_0x330fb0['formatGroupId']||(_0x330fb0['formatGroupId']=_0x330fb0['commandName']);const _0x548e46=_0x5dccaa[0x0];_0x330fb0['multipleBlocks']=_0x548e46['is']('range'),_0x58736f=_0x58736f||Ht(_0x330fb0);const _0x2ab1d7=_0x53a524['map'](_0xdcacfc=>tn(_0xdcacfc,this['_model'])),_0x41e8fe=_0x548e46['is']('range')?_0x5dccaa:_0x5dccaa['map'](_0x2b1ce0=>tn(_0x2b1ce0,this['_model']));if(this['_trackingSessionId']&&(_0x31dfc4['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x90044a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58736f,'accept');return this['forceDefaultExecution'](()=>_0x90044a(_0x41e8fe,_0x330fb0,_0x31dfc4)),null;}_0x2ab1d7['push'](..._0x41e8fe);let _0xc7bc96=!0x0;for(const _0x278fa1 of _0x2ab1d7)if(!this['_rangeIsInLocalUserInsertion'](_0x278fa1)){_0xc7bc96=!0x1;break;}if(_0xc7bc96&&'always'!==this['_trackFormatChanges']){const _0x13f0d1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58736f,'accept');return this['forceDefaultExecution'](()=>_0x13f0d1(_0x41e8fe,_0x330fb0,_0x31dfc4)),null;}const _0x36257b=this['editor']['plugins']['get']('Users')['me'];for(const _0x5beee4 of this['getSuggestions']()){const _0x2b5f5=_0x5beee4['data'];if(_0x5beee4['author']['id']!=_0x36257b['id'])continue;if('formatBlock'!=_0x5beee4['type']||_0x2b5f5['formatGroupId']!=_0x330fb0['formatGroupId'])continue;if(!sn(_0x5beee4,_0x31dfc4))continue;const _0x4829e8=_0x5beee4['subType']==_0x58736f;for(let _0x8a59b9=0x0;_0x8a59b9<_0x41e8fe['length'];_0x8a59b9++){const _0x33f64f=_0x41e8fe[_0x8a59b9];for(const _0x3649ea of _0x5beee4['getMarkers']()){const _0x539184=_0x3649ea['getRange']();if(_0x33f64f['isEqual'](_0x539184)){_0x4829e8?(_0x41e8fe['splice'](_0x8a59b9,0x1),_0x8a59b9--):_0x5beee4['removeMarker'](_0x3649ea['name']);break;}}}}if(0x0==_0x41e8fe['length'])return null;const _0x60ef57=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58736f,'join');for(const _0x49d9a1 of this['getSuggestions']()){const _0x30c6ca=_0x49d9a1['data'];if(_0x49d9a1['author']['id']==_0x36257b['id']&&('formatBlock'==_0x49d9a1['type']&&_0x30c6ca['formatGroupId']==_0x330fb0['formatGroupId']&&_0x49d9a1['subType']==_0x58736f&&sn(_0x49d9a1,_0x31dfc4)&&(_0x60ef57(_0x49d9a1['getRanges'](),_0x41e8fe)||_0x60ef57(_0x41e8fe,_0x49d9a1['getRanges']())))){for(const _0x5246a3 of _0x41e8fe)_0x49d9a1['addRange'](_0x5246a3);return _0x49d9a1;}}const _0x2fe2ac=_0x47c5b6(),_0x207e51=_0x36257b['id'],_0x5c4805='formatBlock:'+_0x58736f,_0x469886=this['_setSuggestionData']({'id':_0x2fe2ac,'type':_0x5c4805,'data':_0x330fb0,'createdAt':new Date(),'authorId':_0x207e51,'attributes':_0x31dfc4});for(const _0x12533c of _0x41e8fe)this['_addSuggestionMarker'](_0x5c4805,_0x2fe2ac,_0x207e51,_0x12533c,x['getMultiRangeId']());return _0x469886;}['markDeletion'](_0x45f52e,_0x174924=null,_0x48638d={}){if(_0x45f52e['isCollapsed'])return null;const _0x5743c9=this['editor']['plugins']['get']('Users')['me'],_0x3a5575=new _0xf95a74(_0x45f52e['start'],_0x45f52e['end']);this['_trackingSessionId']&&(_0x48638d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3758bd,meta:_0x57de40}of this['_findSuggestions'](_0x3a5575,'insertion'))if(_0x57de40['isOwn']&&!_0x57de40['isNextTo']){if(_0x3758bd['isMultiRange']){const _0x4ba8e8=_0x3758bd['getRanges']()['filter'](_0x5e4cb0=>'$graveyard'!=_0x5e4cb0['root']['rootName']);_0x4ba8e8['every'](_0x3c3f37=>_0x3a5575['containsRange'](_0x3c3f37,!0x0))&&_0x3758bd['discard']();if(_0x4ba8e8['some'](_0x1a7e5d=>_0x1a7e5d['containsRange'](_0x3a5575,!0x0))){const _0x1d55e4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x174924,'accept');return this['forceDefaultExecution'](()=>_0x1d55e4([_0x3a5575],null,_0x48638d)),null;}}else{const _0x5b2478=_0x3a5575['getIntersection'](_0x3758bd['getFirstRange']());null!==_0x5b2478&&_0x3758bd['_onDiscard']([_0x5b2478],null,_0x48638d);}}if(_0x3a5575['detach'](),_0x3a5575['isCollapsed']||'$graveyard'==_0x3a5575['root']['rootName'])return null;let _0x9b685=null,_0xedf580=_0x3a5575['start'],_0x2927e0=_0x3a5575['end'];const _0x3afb27=this['_findSuggestions'](_0x3a5575,'deletion');for(const {suggestion:_0x2ceee4,meta:_0x72d5ca}of _0x3afb27){const _0x5587d5=this['_model']['createRange'](_0xedf580,_0x2927e0);if(_0x72d5ca['isOwn']&&(this['_mergeNestedSuggestions']||!_0x72d5ca['containsRangeInObject']&&!_0x72d5ca['isInsideObject'])){if(_0x2ceee4['isMultiRange']){if(!sn(_0x2ceee4,_0x48638d))continue;let _0xb44521=!0x0;for(const _0x27fb08 of _0x2ceee4['getRanges']()){if(_0x27fb08['containsRange'](_0x5587d5,!0x0))return _0x2ceee4;_0x5587d5['containsRange'](_0x27fb08)||(_0xb44521=!0x1);}_0xb44521&&_0x2ceee4['discard']();}else{const _0x203f5a=_0x2ceee4['getFirstRange']();if(_0x203f5a['containsRange'](_0x5587d5,!0x0))return _0x2ceee4;if(!sn(_0x2ceee4,_0x48638d)){_0x5587d5['containsRange'](_0x203f5a)?_0x2ceee4['removeMarkers']():_0x203f5a['containsPosition'](_0xedf580)?_0xedf580=_0x203f5a['end']:_0x203f5a['containsPosition'](_0x2927e0)&&(_0x2927e0=_0x203f5a['start']);continue;}_0xedf580=_0xedf580['isBefore'](_0x203f5a['start'])?_0xedf580:_0x203f5a['start'],_0x2927e0=_0x2927e0['isAfter'](_0x203f5a['end'])?_0x2927e0:_0x203f5a['end'],_0x48638d=Object['assign']({},_0x2ceee4['attributes']),_0x9b685?_0x203f5a['start']['isBefore'](_0x9b685['getFirstRange']()['start'])?(_0x9b685['removeMarkers'](),_0x9b685=_0x2ceee4):_0x2ceee4['removeMarkers']():_0x9b685=_0x2ceee4;}}}if(_0x9b685)return this['_setSuggestionRange'](_0x9b685,this['_model']['createRange'](_0xedf580,_0x2927e0)),_0x9b685;{const _0x40a2ff=_0x47c5b6(),_0x562bf4=this['_model']['createRange'](_0xedf580,_0x2927e0),_0x1fdff6=_0x5743c9['id'],_0x25d0d1=_0x174924?'deletion:'+_0x174924:'deletion',_0x34b99c=this['_setSuggestionData']({'id':_0x40a2ff,'type':_0x25d0d1,'createdAt':new Date(),'authorId':_0x1fdff6,'attributes':_0x48638d});return this['_addSuggestionMarker'](_0x25d0d1,_0x40a2ff,_0x1fdff6,_0x562bf4),_0x34b99c;}}['markMultiRangeDeletion'](_0x323c67,_0x53546b='multi',_0x146757={}){const _0x3a9b77=this['editor']['plugins']['get']('Users')['me'],_0x5ce7a9=_0x323c67['map'](_0x22c051=>new _0xf95a74(_0x22c051['start'],_0x22c051['end'])),_0x563ea6=new Set();this['_trackingSessionId']&&(_0x146757['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x429802,meta:_0x3af490}of this['_findSuggestions'](_0x5ce7a9,'insertion'))_0x3af490['isOwn']&&!_0x3af490['isNextTo']&&_0x563ea6['add'](_0x429802);for(const _0x2d055a of _0x563ea6)if(_0x2d055a['isMultiRange']){const _0x4d1c9e=_0x2d055a['getRanges']();(!_0x2d055a['attributes']||!_0x2d055a['attributes']['skipNestingCheck'])&&(_0x4d1c9e['every'](_0x33408e=>_0x5ce7a9['some'](_0x516967=>_0x516967['containsRange'](_0x33408e,!0x0)))&&_0x2d055a['discard']());if(_0x5ce7a9['every'](_0x2c4002=>_0x4d1c9e['some'](_0x1f24c0=>_0x1f24c0['containsRange'](_0x2c4002,!0x0)))){const _0x4c5148=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53546b,'accept');return this['forceDefaultExecution'](()=>_0x4c5148(_0x323c67,null,_0x146757)),null;}}else{const _0x5457f9=_0x2d055a['getFirstRange']();_0x5ce7a9['some'](_0x322305=>_0x322305['containsRange'](_0x5457f9,!0x0))&&_0x2d055a['discard']();if(_0x5ce7a9['every'](_0x47f81e=>_0x5457f9['containsRange'](_0x47f81e,!0x0))){const _0x22b35f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53546b,'accept');return this['forceDefaultExecution'](()=>_0x22b35f(_0x5ce7a9,null,_0x146757)),null;}}const _0x39a173=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53546b,'join');let _0xaaddd6=null;for(const _0x1435d0 of this['getSuggestions']())if(_0x1435d0['author']['id']==_0x3a9b77['id']&&_0x1435d0['isInContent']&&'deletion'==_0x1435d0['type']&&_0x1435d0['subType']==_0x53546b&&sn(_0x1435d0,_0x146757)&&(_0x39a173(_0x1435d0['getRanges'](),_0x5ce7a9)||_0x39a173(_0x5ce7a9,_0x1435d0['getRanges']()))){if(_0xaaddd6){if(_0x1435d0['commentThread']&&_0x1435d0['commentThread']['length'])continue;for(const _0x8bc866 of _0x1435d0['getRanges']())_0xaaddd6['isIntersectingWithRange'](_0x8bc866)||_0xaaddd6['addRange'](_0x8bc866);_0x1435d0['removeMarkers']();}else{_0xaaddd6=_0x1435d0;for(const _0x7ce63b of _0x5ce7a9)_0x1435d0['isIntersectingWithRange'](_0x7ce63b)||_0x1435d0['addRange'](_0x7ce63b);}}if(_0xaaddd6)return _0xaaddd6;_0x563ea6['clear']();for(const {suggestion:_0x5932b1,meta:_0x2757b6}of this['_findSuggestions'](_0x5ce7a9,'deletion'))_0x2757b6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2757b6['containsRangeInObject']&&!_0x2757b6['isInsideObject'])&&sn(_0x5932b1,_0x146757)&&_0x563ea6['add'](_0x5932b1);for(const _0x375514 of _0x563ea6){const _0x108c26=_0x375514['getRanges']();if(!_0x146757||!_0x146757['skipNestingCheck']){if(_0x5ce7a9['every'](_0x5b5977=>_0x108c26['some'](_0x4f2863=>_0x4f2863['containsRange'](_0x5b5977,!0x0))))return _0x375514;}(!_0x375514['attributes']||!_0x375514['attributes']['skipNestingCheck'])&&(_0x108c26['every'](_0x53edeb=>_0x5ce7a9['some'](_0x2fcbd3=>_0x2fcbd3['containsRange'](_0x53edeb,!0x0)))&&_0x375514['discard']());}const _0x4dd3c4=_0x47c5b6(),_0x1da8e9=_0x3a9b77['id'],_0x1d38be='deletion:'+_0x53546b,_0x170a62=this['_setSuggestionData']({'id':_0x4dd3c4,'type':_0x1d38be,'createdAt':new Date(),'authorId':_0x1da8e9,'attributes':_0x146757});for(const _0x173c86 of _0x5ce7a9)_0x173c86['detach'](),_0x173c86['isCollapsed']||'$graveyard'==_0x173c86['root']['rootName']||this['_addSuggestionMarker'](_0x1d38be,_0x4dd3c4,_0x1da8e9,_0x173c86,x['getMultiRangeId']());return _0x170a62;}['markAttributeChange'](_0x57289c,_0x2073da,_0x16df8b,_0x3c582c,_0x42b526){if(_0x57289c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x56937b=this['editor']['plugins']['get']('Users')['me']['id'],_0x1cef67=Array['from'](this['_suggestions']['values']())['filter'](_0x3e2b4c=>'attribute'==_0x3e2b4c['type']&&_0x3e2b4c['data']['key']==_0x2073da&&_0x3e2b4c['isIntersectingWithRange'](_0x57289c));if(this['_trackingSessionId']&&(_0x42b526['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x262f00=this['_findSuggestions'](_0x57289c,'insertion')['filter'](({meta:_0x5dbda9})=>_0x5dbda9['isOwn']&&!_0x5dbda9['isInsideObject']&&!_0x5dbda9['isNextTo'])['map'](({suggestion:_0x2ff70f})=>_0x2ff70f);_0x1cef67['unshift'](..._0x262f00);}const _0x312b4b=new Map([[_0x57289c,_0x16df8b]]);for(const _0x35aa62 of _0x1cef67){const _0x3ed5e0='attribute'==_0x35aa62['type']?_0x35aa62['data']['oldValue']:void 0x0,_0x80b76c=_0x35aa62['getFirstRange'](),_0x13553d=Array['from'](_0x312b4b['keys']())['find'](_0x1aacbb=>_0x1aacbb['isIntersecting'](_0x80b76c));if(!_0x13553d)continue;const _0x4a9598=_0x13553d['getDifference'](_0x80b76c);this['_isBlockAttribute'](_0x2073da)&&'insertion'==_0x35aa62['type']&&0x0!=_0x4a9598['length']||(_0x312b4b['delete'](_0x13553d),_0x4a9598['forEach'](_0x2c239d=>{_0x312b4b['set'](_0x2c239d,_0x16df8b);}),'insertion'!=_0x35aa62['type']&&_0x3ed5e0!=_0x3c582c&&_0x312b4b['set'](_0x13553d['getIntersection'](_0x80b76c),_0x3ed5e0));}const _0x4702bd=[];for(const [_0x77b638,_0x43566b]of _0x312b4b){const _0x2f749c=_0x47c5b6(),_0x39c137={'key':_0x2073da,'oldValue':_0x43566b,'newValue':_0x3c582c};_0x2073da['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':_0x2073da});const _0x2558f3=('attribute:'+(_0x2073da+'|'+Ht({'newValue':_0x3c582c})))['substring'](0x0,0x3c),_0x389346=this['_setSuggestionData']({'id':_0x2f749c,'type':_0x2558f3,'data':_0x39c137,'createdAt':new Date(),'authorId':_0x56937b,'attributes':_0x42b526});_0x4702bd['push'](_0x389346),this['_addSuggestionMarker'](_0x2558f3,_0x2f749c,_0x56937b,_0x77b638);}return _0x4702bd;}['enableDefaultAttributesIntegration'](_0x314935){this['enableCommand'](_0x314935,(_0x42ac1a,..._0x3e5554)=>{this['recordAttributeChanges'](()=>{_0x42ac1a(..._0x3e5554);});});}['registerBlockAttribute'](_0x30295e){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x30295e);}['registerInlineAttribute'](_0x343568){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x343568);}['startTrackingSession'](_0x40d155){return this['_trackingSessionId']=void 0x0!==_0x40d155?_0x40d155:_0x47c5b6(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3da4dd){return'attribute'==_0x3da4dd['type']?_0x3da4dd['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x509925){if(0x0==_0x509925['length'])return;const _0x1f83e0=this['editor'],_0x4bf9cf=_0x1f83e0['plugins']['get'](_0x26567f),_0x4364e7=[];_0x1f83e0['model']['change'](_0x4c12a2=>{for(let _0x42ddda=0x0;_0x42ddda<_0x509925['length'];_0x42ddda++){const _0x1a155c=_0x509925[_0x42ddda];if(_0x1a155c['baseVersion']=_0x1f83e0['model']['document']['version'],_0x1a155c['isDocumentOperation']=!0x0,_0x4bf9cf['isMarkedRemoveOperation'](_0x1a155c)){const _0x18b391=Lt(_0x1a155c['newRange'],_0x1f83e0['model']);_0x4364e7['unshift'](_0xf95a74['fromRange'](_0x18b391));}else switch(_0x1a155c['type']){case'rename':{const _0x536d42=_0x1a155c['oldName'],_0x3753b9=_0x1a155c['newName'];if(_0x536d42==_0x3753b9)break;_0x4c12a2['batch']['addOperation'](_0x1a155c),_0x1f83e0['model']['applyOperation'](_0x1a155c);const _0x29cfa3='$elementName',_0x5ba807=_0x1a155c['position'],_0x134be1=_0x1f83e0['model']['createRange'](_0x5ba807,_0x1f83e0['model']['createPositionAt'](_0x5ba807['nodeAfter'],'end'));this['markAttributeChange'](_0x134be1,_0x29cfa3,_0x536d42,_0x3753b9,{'groupId':_0x47c5b6()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x324b23=_0x1a155c['oldValue'],_0x412334=_0x1a155c['newValue'];if(_0x324b23==_0x412334)break;_0x4c12a2['batch']['addOperation'](_0x1a155c),_0x1f83e0['model']['applyOperation'](_0x1a155c);const _0x2abb79=_0x1a155c['key'];if(!this['_isRegisteredAttribute'](_0x2abb79))break;const _0x16f0b5=Lt(_0x1a155c['range'],_0x1f83e0['model']);this['markAttributeChange'](_0x16f0b5,_0x2abb79,_0x324b23,_0x412334,{'groupId':_0x47c5b6()});break;}case'insert':{_0x4c12a2['batch']['addOperation'](_0x1a155c),_0x1f83e0['model']['applyOperation'](_0x1a155c);if(_0x509925[_0x42ddda+0x1]&&'move'==_0x509925[_0x42ddda+0x1]['type'])break;const _0x52610e=_0x1a155c['position'],_0x303303=_0x1a155c['howMany'],_0x4337f8=Lt(_0x1f83e0['model']['createRange'](_0x52610e,_0x52610e['getShiftedBy'](_0x303303)),_0x1f83e0['model']);this['markInsertion'](_0x4337f8);break;}case'split':{_0x4c12a2['batch']['addOperation'](_0x1a155c),_0x1f83e0['model']['applyOperation'](_0x1a155c);const _0x2c0cb9=_0x1a155c['splitPosition'],_0x2ea5b8=_0x1a155c['moveTargetPosition'];this['markInsertion'](_0x1f83e0['model']['createRange'](_0x2c0cb9,_0x2ea5b8));break;}case'move':case'remove':_0x4c12a2['batch']['addOperation'](_0x1a155c),_0x1f83e0['model']['applyOperation'](_0x1a155c);}}for(const _0x45a85d of _0x4364e7)_0x45a85d['detach'](),this['markDeletion'](_0x45a85d);});}['_setSuggestionRange'](_0x1188ca,_0x191735){const _0xdcecb2=_0x1188ca['getFirstMarker']();this['_model']['change'](_0x23d5e4=>{_0x23d5e4['updateMarker'](_0xdcecb2,{'range':_0x191735});});}['_addThreadToSuggestion'](_0x3dac83){const _0xb873dd=_0x3dac83['id'],_0x4aa777=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xb873dd)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4aa777,'threadId':_0xb873dd,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x55e188=this['_commentsRepository']['getCommentThread'](_0xb873dd);_0x55e188['unbind']('isRemovable'),_0x55e188['isRemovable']=!0x1,_0x3dac83['commentThread']=_0x55e188;}['_checkSuggestionCorrectness'](_0x322395,_0x23c3e1,_0x4d8190,_0x4f20d9){if(_0x322395['type']!=_0x23c3e1||_0x322395['subType']!=_0x4d8190||_0x322395['creator']['id']!=_0x4f20d9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2003cb('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x39cb63,_0x3d8efc){const _0x348f19=_0x39cb63['getFirstRange']();if(_0x3d8efc['isEqual'](_0x348f19))_0x39cb63['removeMarkers']();else{if(_0x348f19['containsRange'](_0x3d8efc)){const _0x1e3a17=this['_model']['createPositionAt'](_0x3d8efc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x39cb63,this['_model']['createRange'](_0x348f19['start'],_0x1e3a17));const _0x2b318a=_0x47c5b6(),_0x36bc2c=_0x39cb63['creator']['id'],_0x500789=_0x39cb63['type']+':'+_0x39cb63['subType'];this['_setSuggestionData']({'id':_0x2b318a,'type':_0x500789,'createdAt':new Date(),'authorId':_0x36bc2c,'data':_0x39cb63['data'],'attributes':_0x39cb63['attributes']});const _0x1d217c=this['_model']['createPositionAt'](_0x3d8efc['end']['parent'],'after'),_0x4e89f9=this['_model']['createRange'](_0x1d217c,_0x348f19['end']);this['_addSuggestionMarker'](_0x500789,_0x2b318a,_0x36bc2c,_0x4e89f9);}else{if(_0x348f19['containsPosition'](_0x3d8efc['start'])){const _0x28d078=this['_model']['createPositionAt'](_0x3d8efc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x39cb63,this['_model']['createRange'](_0x348f19['start'],_0x28d078));}else{const _0x5bb69d=this['_model']['createPositionAt'](_0x3d8efc['end']['parent'],'after');this['_setSuggestionRange'](_0x39cb63,this['_model']['createRange'](_0x5bb69d,_0x348f19['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1e6c97){for(const {suggestion:_0x388a0d,meta:_0x5881bd}of this['_findSuggestions'](_0x1e6c97,'insertion')){if(!_0x5881bd['isOwn'])continue;const _0x34e4e4=_0x388a0d['getRanges']();for(const _0xa9038c of _0x34e4e4)if(!_0x1e6c97['getDifference'](_0xa9038c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x55eaba){return this['editor']['plugins']['get']('Users')['getUser'](_0x55eaba);}['_getExternalAuthor'](_0x71c1e1){const _0x117c49=this['editor']['plugins']['get']('Users'),_0x59fe1a=_0x1c2930('external:'+_0x71c1e1),_0x4da9d5=_0x117c49['getUser'](_0x59fe1a);return _0x4da9d5||_0x117c49['addUser']({'id':_0x59fe1a,'name':_0x71c1e1});}['_createSuggestion'](_0x134e5b,_0x2ab8cc,_0x3c8f3d,_0x2c826f,_0x4c9c18,_0x406120){const _0x40d59e=this['_getAuthorFromId'](_0x2c826f);if(!_0x40d59e)throw new _0x2003cb('track-changes-user-not-found',this,{'authorId':_0x2c826f,'suggestionId':_0x3c8f3d});const _0x374de4=this['_suggestionFactory']['buildSuggestion'](_0x134e5b,_0x2ab8cc,_0x3c8f3d,_0x40d59e,_0x4c9c18,_0x1d6008=>{this['_updateSuggestionData'](_0x3c8f3d,{'attributes':_0x1d6008});const _0x3661d3=this['getSuggestion'](_0x3c8f3d);this['_joinWithAdjacentSuggestions'](new Set([_0x3661d3])),this['_refreshSuggestionsChain'](new Set([_0x3661d3]));},_0x406120);return this['listenTo'](_0x374de4,'accept',()=>{this['_updateSuggestionData'](_0x3c8f3d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x374de4,'discard',()=>{this['_updateSuggestionData'](_0x3c8f3d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3c8f3d,_0x374de4),this['_suggestionState']['set'](_0x374de4,'notReady'),_0x374de4;}['_splitMarkerName'](_0x304dcf){return Gt(_0x304dcf);}['_breakSuggestionMarker'](_0x4f3d68,_0x3c6daf,_0x38a1e0){const _0x1d5f7c=_0x4f3d68['getFirstRange'](),_0x383563=_0x1d5f7c['start'],_0x1ebdf0=_0x1d5f7c['end'];this['_setSuggestionRange'](_0x4f3d68,this['_model']['createRange'](_0x383563,_0x3c6daf));const _0x23d333=_0x47c5b6(),_0x1bf9b2=_0x4f3d68['creator']['id'],_0xe902bf=_0x4f3d68['type']+(_0x4f3d68['subType']?':'+_0x4f3d68['subType']:'');this['_setSuggestionData']({'id':_0x23d333,'type':_0xe902bf,'createdAt':new Date(),'authorId':_0x1bf9b2,'originalSuggestionId':_0x4f3d68['_originalSuggestionId']||_0x4f3d68['id'],'attributes':_0x4f3d68['attributes'],'data':_0x4f3d68['data']});const _0x6597f=this['_getAttributeKey'](_0x4f3d68);('formatBlock'==_0x4f3d68['type']||_0x6597f&&this['_isBlockAttribute'](_0x6597f))&&(_0x38a1e0=this['_model']['createPositionBefore'](_0x38a1e0['parent'])),this['_addSuggestionMarker'](_0xe902bf,_0x23d333,_0x1bf9b2,this['_model']['createRange'](_0x38a1e0,_0x1ebdf0));}['_findSuggestions'](_0x2b84a6,_0xc920b5=null){const _0x57cd62=[],_0x6f75ee=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2b84a6)||(_0x2b84a6=[_0x2b84a6]);for(const _0x581bf0 of this['getSuggestions']()){if(!_0x581bf0['isInContent'])continue;if(_0xc920b5&&_0x581bf0['type']!=_0xc920b5)continue;let _0x341f45=!0x1;for(const _0x3a200f of _0x581bf0['getRanges']()){for(const _0x5e5186 of _0x2b84a6){const _0x2afbaf=_0x5e5186['start']['isEqual'](_0x3a200f['end'])||_0x5e5186['end']['isEqual'](_0x3a200f['start']);if(_0x2afbaf||_0x5e5186['getIntersection'](_0x3a200f)){const _0x331309=_0x5e5186['containsRange'](_0x3a200f)&&zt(this['_model']['schema'],_0x3a200f['start'],_0x5e5186),_0x4122bb=_0x3a200f['containsRange'](_0x5e5186)&&zt(this['_model']['schema'],_0x5e5186['start'],_0x3a200f);_0x57cd62['push']({'suggestion':_0x581bf0,'meta':{'isOwn':_0x6f75ee==_0x581bf0['author'],'isNextTo':_0x2afbaf,'isInsideObject':_0x331309,'containsRangeInObject':_0x4122bb}}),_0x341f45=!0x0;break;}}if(_0x341f45)break;}}return _0x57cd62;}['_addSuggestionMarker'](_0x4c1bea,_0x2c05f3,_0x551810,_0x15bb75,_0x10f7f0){this['_model']['change'](_0x5a8362=>{let _0x1ead40='suggestion:'+_0x4c1bea+':'+_0x2c05f3+':'+_0x551810;_0x10f7f0&&(_0x1ead40=_0x1ead40+':'+_0x10f7f0),_0x5a8362['addMarker'](_0x1ead40,{'range':_0x15bb75,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x36455c){const _0x5a5a7b=_0x36455c['previous'],_0x4c44d6=_0x36455c['next'];_0x36455c['previous']=null,_0x36455c['next']=null,null!=_0x5a5a7b&&_0x5a5a7b['next']==_0x36455c&&(_0x5a5a7b['next']=_0x4c44d6),null!=_0x4c44d6&&_0x4c44d6['previous']==_0x36455c&&(_0x4c44d6['previous']=_0x5a5a7b),'ready'==this['_suggestionState']['get'](_0x36455c)&&(this['_suggestionState']['set'](_0x36455c,'removed'),this['fire']('suggestionUnloaded',_0x36455c,_0x5a5a7b,_0x4c44d6));}['_setSuggestionData'](_0x21e163){const _0x377f12=_0x21e163['id'],_0x5aedc2=this['addSuggestionData'](_0x21e163);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x8acc14=this['editor']['plugins']['get']('PendingActions'),_0x3e18ec=_0x5aedc2['hasComments'],_0x2dfc80=_0x5aedc2['subType']?_0x5aedc2['type']+':'+_0x5aedc2['subType']:_0x5aedc2['type'],_0x536a28=this['editor']['locale'],_0x1bb9e1=_0x8acc14['add'](o(_0x536a28,'PENDING_ACTION_SUGGESTION')),_0x5efbd6={'id':_0x377f12,'type':_0x2dfc80,'hasComments':_0x3e18ec,'data':_0x21e163['data']||null,'originalSuggestionId':_0x21e163['originalSuggestionId']||null,'attributes':_0x5aedc2['attributes']};this['_adapter']['addSuggestion'](_0x5efbd6)['then'](_0x2dda4f=>{_0x5aedc2['_saved']=!0x0,_0x8acc14['remove'](_0x1bb9e1),_0x2dda4f&&_0x2dda4f['createdAt']&&(this['_suggestions']['get'](_0x377f12)['createdAt']=_0x2dda4f['createdAt']);})['catch'](_0x4a0fbe=>{throw _0x404f2d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5aedc2['discard']();}),_0x5aedc2['stopListening'](),this['_suggestions']['delete'](_0x5aedc2['id']),this['_suggestionState']['delete'](_0x5aedc2),_0x4a0fbe;});}return _0x5aedc2;}['_isBlockAttribute'](_0x41af20){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x41af20);}['_isInlineAttribute'](_0x3c8059){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x3c8059);}['_updateSuggestionData'](_0x538c49,_0x59216e){const _0x1c7a74=this['editor']['plugins']['get']('PendingActions'),_0x278656=this['getSuggestion'](_0x538c49);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x278656['_saved']){const _0x3c1cd6=_0x1c7a74['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x538c49,_0x59216e)['then'](()=>{_0x1c7a74['remove'](_0x3c1cd6);});}else _0x278656['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x538c49,_0x59216e);});}}['_getSuggestionData'](_0x27857f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2003cb('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x27857f);}['_handleNewSuggestionMarker'](_0x42ff34){const {id:_0x368bfd,type:_0x323f23,subType:_0x117544,authorId:_0x577145}=this['_splitMarkerName'](_0x42ff34),_0x26121f=this['_suggestions']['get'](_0x368bfd)||this['_createSuggestion'](_0x323f23,_0x117544,_0x368bfd,_0x577145,{});switch(this['_checkSuggestionCorrectness'](_0x26121f,_0x323f23,_0x117544,_0x577145),this['_suggestionState']['get'](_0x26121f)){case'notReady':this['_getSuggestionData'](_0x368bfd)['then'](_0x45a8af=>{let _0xe26262=Promise['resolve']();_0x45a8af['hasComments']&&(_0xe26262=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x368bfd})),_0xe26262['then'](()=>{this['addSuggestionData'](_0x45a8af)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x26121f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x368bfd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x26121f,'ready'),this['fire']('suggestionLoaded',_0x26121f);break;case'ready':this['fire']('suggestionChanged',_0x26121f);}return _0x26121f['addMarkerName'](_0x42ff34),_0x26121f;}['_refreshSuggestionsChain'](_0x68ab27){const _0x12fe13=Array['from'](_0x68ab27),_0x1cc18b=_0x12fe13['filter'](_0x245456=>'attribute'==_0x245456['type']);this['_refreshAttributeSuggestionsChain'](_0x1cc18b);const _0x77ed14=_0x12fe13['filter'](_0x267235=>!_0x267235['isMultiRange']&&'attribute'!=_0x267235['type']),_0x2f904a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5977c1=>!_0x5977c1['isMultiRange']&&'attribute'!=_0x5977c1['type']),_0x17ca0c=_0x2f904a['filter'](_0x2a4a3c=>!_0x68ab27['has'](_0x2a4a3c)),_0x4ee360=new Map(_0x2f904a['map'](_0x3d6ef5=>[_0x3d6ef5,this['_suggestionFactory']['getSuggestionCallback'](_0x3d6ef5['type'],_0x3d6ef5['subType'],'chain')])),_0x2f29ad=new Map(_0x2f904a['map'](_0x21fbd9=>[_0x21fbd9,_0x21fbd9['getFirstRange']()])),_0x56fa9f=new Set(),_0x3ad61f=new Set();for(let _0xb43bf7=0x0;_0xb43bf7<_0x77ed14['length'];_0xb43bf7++)_0x51def7(_0x77ed14[_0xb43bf7],_0x77ed14,_0xb43bf7+0x1);for(let _0x2d4582=0x0;_0x2d4582<_0x77ed14['length'];_0x2d4582++)_0x51def7(_0x77ed14[_0x2d4582],_0x17ca0c,0x0);const _0x2e82b2=new Set();for(let _0x923d6a=0x0;_0x923d6a<_0x77ed14['length'];_0x923d6a++){const _0x5e7a11=_0x77ed14[_0x923d6a];!_0x3ad61f['has'](_0x5e7a11)&&_0x5e7a11['previous']&&(_0x2e82b2['add'](_0x5e7a11['previous']),_0x5e7a11['previous']['next']===_0x5e7a11&&(_0x5e7a11['previous']['next']=null),_0x5e7a11['previous']=null),!_0x56fa9f['has'](_0x5e7a11)&&_0x5e7a11['next']&&(_0x2e82b2['add'](_0x5e7a11['next']),_0x5e7a11['next']['previous']===_0x5e7a11&&(_0x5e7a11['next']['previous']=null),_0x5e7a11['next']=null);}function _0x51def7(_0x1ef183,_0x12291e,_0x2b8a61){for(let _0x3ed285=_0x2b8a61;_0x3ed285<_0x12291e['length'];_0x3ed285++){const _0x1ef516=_0x5d8dea(_0x1ef183,_0x12291e[_0x3ed285]);_0x1ef516&&(_0x1ef516[0x0]['next']=_0x1ef516[0x1],_0x1ef516[0x1]['previous']=_0x1ef516[0x0],_0x56fa9f['add'](_0x1ef516[0x0]),_0x3ad61f['add'](_0x1ef516[0x1]));}}function _0x5d8dea(_0x2dc3f0,_0x52e1d8){if(_0x2dc3f0['author']['id']!==_0x52e1d8['author']['id'])return null;const _0x284a98=_0x4ee360['get'](_0x2dc3f0)(_0x2dc3f0,_0x52e1d8,_0x2f29ad['get'](_0x2dc3f0),_0x2f29ad['get'](_0x52e1d8));if(!_0x284a98)return null;return _0x4ee360['get'](_0x52e1d8)(_0x2dc3f0,_0x52e1d8,_0x2f29ad['get'](_0x2dc3f0),_0x2f29ad['get'](_0x52e1d8))?_0x284a98[0x1]['commentThread']&&_0x284a98[0x1]['commentThread']['length']?null:_0x284a98:null;}_0x2e82b2['size']&&this['_refreshSuggestionsChain'](_0x2e82b2);}['_refreshAttributeSuggestionsChain'](_0x1e8cc5){if(0x0==_0x1e8cc5['length'])return;const _0xe1bfc8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x230f5c=>'attribute'==_0x230f5c['type']&&_0x230f5c['_isDataLoaded']),_0x51e320=[],_0x6b2ef0=new Map();for(const _0x2df256 of _0xe1bfc8){const _0x6749a0=_0x1c2930(_0x2df256['attributes']);_0x6b2ef0['has'](_0x6749a0)||(_0x6b2ef0['set'](_0x6749a0,_0x51e320['length']),_0x51e320['push']([]));const _0x468f3a=_0x6b2ef0['get'](_0x6749a0);_0x51e320[_0x468f3a]['push'](_0x2df256);}!(function(){_0x51e320['sort']((_0x1531bb,_0x5238fe)=>{const _0x359d4e=_0x1531bb[0x0]['createdAt'],_0x5ba480=_0x5238fe[0x0]['createdAt'];return _0x359d4e==_0x5ba480?_0x1531bb[0x0]['attributes']['groupId']<_0x5238fe[0x0]['attributes']['groupId']?-0x1:0x1:_0x359d4e<_0x5ba480?-0x1:0x1;});for(const _0x4a1b50 of _0x51e320)_0x4a1b50['sort']((_0x2d11c3,_0xb63e3b)=>_0x2d11c3['id']<_0xb63e3b['id']?-0x1:0x1);}());for(let _0x412419=0x0;_0x412419<_0x51e320['length'];_0x412419++){if(0x0==_0x51e320[_0x412419]['length'])continue;const _0x4de933=[];for(let _0x33546c=_0x412419+0x1;_0x33546c<_0x51e320['length'];_0x33546c++)0x0!=_0x51e320[_0x33546c]['length']&&_0x3c1151(_0x51e320[_0x412419],_0x51e320[_0x33546c])&&_0x4de933['push'](_0x33546c);for(const _0x35fdd0 of _0x4de933)_0x51e320[_0x412419]=_0x51e320[_0x412419]['concat'](_0x51e320[_0x35fdd0]),_0x51e320[_0x35fdd0]=[];}for(const _0x46ed91 of _0x51e320)for(let _0x4c5471=0x0;_0x4c5471<_0x46ed91['length'];_0x4c5471++){const _0x57d4a8=_0x46ed91[_0x4c5471+0x1]||null;_0x46ed91[_0x4c5471]['next']!==_0x57d4a8&&(_0x46ed91[_0x4c5471]['next']=_0x57d4a8);}for(const _0x3e7691 of _0x51e320)for(let _0x5a7084=0x0;_0x5a7084<_0x3e7691['length'];_0x5a7084++){const _0x439a66=_0x3e7691[_0x5a7084-0x1]||null;_0x3e7691[_0x5a7084]['previous']!==_0x439a66&&(_0x3e7691[_0x5a7084]['previous']=_0x439a66);}function _0x3c1151(_0xd2862c,_0x3005a1){if(_0xd2862c[0x0]['attributes']['groupId']!==_0x3005a1[0x0]['attributes']['groupId']&&_0xd2862c[0x0]['author']!==_0x3005a1[0x0]['author'])return!0x1;if(!function(_0x5759e0,_0x54bc7e){if(!_0x5759e0['hasComments']&&!_0x54bc7e['hasComments'])return!0x0;if(_0x5759e0['hasComments']&&_0x54bc7e['hasComments'])return!0x1;if(_0x5759e0['hasComments']&&_0x54bc7e['createdAt']<_0x5759e0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x54bc7e['hasComments']&&_0x5759e0['createdAt']<_0x54bc7e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xd2862c[0x0],_0x3005a1[0x0]))return!0x1;const _0x503bf7=Pt(_0xd2862c[0x0]['attributes'],['groupId','trackingSessionId']),_0x4d067d=Pt(_0x3005a1[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x41a2af(_0x503bf7,_0x4d067d))return!0x1;if(_0xd2862c[0x0]['attributes']['groupId']==_0x3005a1[0x0]['attributes']['groupId'])return!0x0;if(_0xd2862c[0x0]['attributes']['trackingSessionId']!==_0x3005a1[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xd2862c['every'](_0x2c441a=>_0x3005a1['some'](_0x4b9de6=>_0x2c441a['getFirstRange']()['isEqual'](_0x4b9de6['getFirstRange']())))&&_0x3005a1['every'](_0x1dc840=>_0xd2862c['some'](_0x4083fe=>_0x1dc840['getFirstRange']()['isEqual'](_0x4083fe['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2bb8be){const _0x5c25d8=Array['from'](_0x2bb8be),_0x35bf99=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ec63f=_0x35bf99['filter'](_0x27e614=>!_0x2bb8be['has'](_0x27e614)),_0x210cd0=new Map(_0x5c25d8['map'](_0x5b29e3=>[_0x5b29e3,this['_suggestionFactory']['getSuggestionCallback'](_0x5b29e3['type'],_0x5b29e3['subType'],'join')])),_0x25f2a1=new Map(_0x35bf99['map'](_0x3a151e=>[_0x3a151e,_0x3a151e['getRanges']()]));for(let _0x47c802=0x0;_0x47c802<_0x5c25d8['length'];_0x47c802++){if(_0x3352a7(this,_0x5c25d8[_0x47c802],_0x5c25d8,_0x47c802+0x1))return!0x0;}for(let _0x3d0716=0x0;_0x3d0716<_0x5c25d8['length'];_0x3d0716++){if(_0x3352a7(this,_0x5c25d8[_0x3d0716],_0x3ec63f,0x0))return!0x0;}return!0x1;function _0x3352a7(_0x3626be,_0x2418eb,_0xc37d64,_0x24b67c){for(let _0x30062f=_0x24b67c;_0x30062f<_0xc37d64['length'];_0x30062f++){const _0x47c485=_0xc37d64[_0x30062f];if(_0x47c485['type']!==_0x2418eb['type']||_0x47c485['author']['id']!==_0x2418eb['author']['id']||_0x47c485['subType']!==_0x2418eb['subType'])continue;if(!en(_0x2418eb,_0x47c485))continue;if('attribute'==_0x2418eb['type']&&_0x2418eb['data']['oldValue']!=_0x47c485['data']['oldValue'])continue;if('attribute'==_0x2418eb['type']&&_0x3626be['_isBlockAttribute'](_0x2418eb['data']['key']))continue;if('formatBlock'==_0x2418eb['type']){const _0x443e27=_0x3626be['editor']['model'],_0x4641af=_0x2418eb['getContainedElement']();if(_0x4641af&&(_0x443e27['schema']['isObject'](_0x4641af)||_0x443e27['schema']['isLimit'](_0x4641af)))continue;}const _0x38db00=_0x210cd0['get'](_0x2418eb),_0x460abc=_0x25f2a1['get'](_0x2418eb),_0x74943a=_0x25f2a1['get'](_0x47c485),_0x3df928=_0x2418eb['commentThread']&&_0x2418eb['commentThread']['length'],_0x3675fc=_0x47c485['commentThread']&&_0x47c485['commentThread']['length'];if(!_0x3df928&&_0x38db00(_0x74943a,_0x460abc))return _0x3626be['_joinSuggestions'](_0x47c485,_0x2418eb),_0x25f2a1['delete'](_0x2418eb),!0x0;if(!_0x3675fc&&_0x38db00(_0x460abc,_0x74943a))return _0x3626be['_joinSuggestions'](_0x2418eb,_0x47c485),_0x25f2a1['delete'](_0x47c485),!0x0;}return!0x1;}}['_joinSuggestions'](_0x945569,_0x2103c0){if(_0x945569['isMultiRange']){for(const _0x169c84 of _0x2103c0['getRanges']())_0x945569['addRange'](_0x169c84);}else{const _0x5c8adc=_0x2103c0['getFirstRange']()['end'];this['_setSuggestionRange'](_0x945569,this['_model']['createRange'](_0x945569['getFirstRange']()['start'],_0x5c8adc));}_0x2103c0['removeMarkers']();}['_getMarkerAnnouncementText'](_0x231281,_0x26028c,_0x2dd62f){const _0x5217a5=_0x231281['startsWith']('format')||_0x231281['startsWith']('attribute')?'FORMATTING':_0x231281['toUpperCase']();return o(this['editor']['locale'],_0x26028c+'_'+_0x5217a5+'_SUGGESTION_ANNOUNCEMENT',_0x2dd62f);}['_initAriaMarkerChangeAnnouncements'](){const _0x871042=this['editor'];if(!_0x871042['ui'])return;const {ariaLiveAnnouncer:_0x4e3f68}=_0x871042['ui'];_0x51a386(this['_model'],({left:_0x40a2f5,entered:_0x18e01d})=>{for(const _0x15ee99 of _0x40a2f5){const {group:_0xfe179c,type:_0xf01410}=this['_splitMarkerName'](_0x15ee99['name']);if('suggestion'===_0xfe179c){_0x4e3f68['announce'](this['_getMarkerAnnouncementText'](_0xf01410,'LEAVE'));break;}}for(const _0x59e718 of _0x18e01d){const {group:_0x4bc2a7,type:_0x386127}=this['_splitMarkerName'](_0x59e718['name']);if('suggestion'===_0x4bc2a7){_0x4e3f68['announce'](this['_getMarkerAnnouncementText'](_0x386127,'ENTER',_0x949a1b(_0xf91429)));break;}}});}['_processAttributeChanges'](_0x1c5b6c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x37e7a6=this['editor'],_0x56d51a=_0x37e7a6['model']['document']['differ']['getChanges']();if(0x0==_0x56d51a['length'])return!0x1;const _0x4dfdb9=[],_0x453091=_0x56d51a['filter'](_0x4cf936=>'attribute'==_0x4cf936['type']),_0x2ffbfe=_0x56d51a['filter'](_0x266fcb=>'insert'==_0x266fcb['type']&&'$text'!=_0x266fcb['name']),_0x426258=_0x56d51a['filter'](_0x2de66c=>'remove'==_0x2de66c['type']&&'$text'!=_0x2de66c['name']);for(const _0x4c3dd6 of _0x453091)_0x4dfdb9['push']({'key':_0x4c3dd6['attributeKey'],'newValue':_0x4c3dd6['attributeNewValue'],'oldValue':_0x4c3dd6['attributeOldValue'],'range':Zt(_0x4c3dd6['range'],_0x37e7a6['model'])});for(const _0x1b0250 of _0x2ffbfe){const _0x4b7632=_0x426258['find'](_0x588205=>_0x588205['position']['isEqual'](_0x1b0250['position']));_0x4b7632&&_0x4dfdb9['push']({'key':m,'newValue':_0x1b0250['name'],'oldValue':_0x4b7632['name'],'range':_0x37e7a6['model']['createRangeOn'](_0x1b0250['position']['nodeAfter'])});}return 0x0!=_0x4dfdb9['length']&&this['_reduceExistingSuggestions'](_0x1c5b6c,_0x4dfdb9);}['_processAttributeSuggestions'](_0x117693){let _0x92aa31=!0x1;const _0xc5d3b5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5d4599=>_0x5d4599['data']['newRange']&&_0x5d4599['name']['startsWith']('suggestion:attribute:'));for(const _0x482c00 of _0xc5d3b5){const {subType:_0x20c13f,id:_0x14f8b5}=this['_splitMarkerName'](_0x482c00['name']),_0x1ccfac=_0x20c13f['split']('|')[0x0];for(const _0xbfe1ac of this['getSuggestions']({'skipNotAttached':!0x0}))_0xbfe1ac['id']!=_0x14f8b5&&'attribute'==_0xbfe1ac['type']&&_0xbfe1ac['data']&&_0xbfe1ac['data']['key']==_0x1ccfac&&_0xbfe1ac['getFirstRange']()['isIntersecting'](_0x482c00['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xbfe1ac,_0x482c00['data']['newRange'],_0x117693),_0x92aa31=!0x0);}return _0x92aa31;}['recordAttributeChanges'](_0x2b33a1){this['_recordAttributeSuggestions']=!0x0,_0x2b33a1();}['_isRegisteredAttribute'](_0x16a5e9){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x16a5e9);}['_reduceExistingSuggestions'](_0x49bc21,_0x540378){if(0x0==_0x540378['length'])return!0x1;let _0x31c812=!0x1;for(const _0x5a8416 of _0x540378){const _0xe17146=this['_findSuggestions'](_0x5a8416['range'],'attribute')['filter'](_0x3d2bcc=>!_0x3d2bcc['meta']['isNextTo'])['map'](_0x564a6c=>_0x564a6c['suggestion']),_0x3f4d89=_0x1c2930({'newValue':_0x5a8416['newValue']});_0xe17146['filter'](_0x274869=>{const [_0x1a25b5,_0x2b56e4]=_0x274869['subType']['split']('|');return _0x1a25b5==_0x5a8416['key']&&_0x2b56e4!=_0x3f4d89;})['forEach'](_0x31902f=>{this['_reduceSuggestionAttributeRange'](_0x31902f,_0x5a8416['range'],_0x49bc21),_0x31c812=!0x0;});}return _0x31c812;}['_reduceSuggestionAttributeRange'](_0x2fb6d7,_0x466119,_0x1f4149){const _0x5346ff=_0x2fb6d7['getFirstRange']()['getDifference'](_0x466119);0x0!==_0x5346ff['length']?0x1!==_0x5346ff['length']?this['_breakSuggestionMarker'](_0x2fb6d7,_0x466119['start'],_0x466119['end']):this['_setSuggestionRange'](_0x2fb6d7,_0x5346ff[0x0]):_0x1f4149['removeMarker'](_0x2fb6d7['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2d4e8b){this['_editor']=_0x2d4e8b,this['_model']=_0x2d4e8b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x488c06,_0x433300,_0x5a4585,_0x461bd8,_0x168368,_0x7d70ba,_0x33c386){return new x(this['_model'],{'type':_0x488c06,'subType':_0x433300,'id':_0x5a4585,'originalSuggestionId':_0x33c386,'author':_0x461bd8,'creator':_0x461bd8,'attributes':_0x168368,'onAttributesChange':_0x7d70ba,'onAccept':(..._0x47a102)=>this['getSuggestionCallback'](_0x488c06,_0x433300,'accept')(..._0x47a102),'onDiscard':(..._0x344fd4)=>this['getSuggestionCallback'](_0x488c06,_0x433300,'discard')(..._0x344fd4)});}['registerCustomCallback'](_0x42fe7f,_0x43fe86,_0x3ed2c9,_0x9ff965){const _0x2a1289=_0x42fe7f+':'+_0x43fe86+':'+_0x3ed2c9;this['_customCallbacks']['set'](_0x2a1289,_0x9ff965);}['getSuggestionCallback'](_0x110534,_0x250337,_0x144c6c){const _0x17d8da=_0x110534+':'+_0x250337+':'+_0x144c6c;return this['_customCallbacks']['get'](_0x17d8da)||this['_defaultCallbacks']['get'](_0x110534+':'+_0x144c6c);}['_registerDefaultCallbacks'](){const _0x4c039c=()=>!0x1,_0x4d2613=_0x5e6c3a=>{_0x5e6c3a['sort']((_0x3e8735,_0x462505)=>_0x3e8735['start']['isBefore'](_0x462505['start'])?0x1:-0x1),this['_model']['change'](_0x2e88eb=>{for(const _0x174771 of _0x5e6c3a){let _0x743676;_0x743676=_0x174771['end']['isAtEnd']&&_0x174771['end']['parent']==_0x174771['start']['nodeAfter']?_0x2e88eb['createSelection'](_0x174771['start']['nodeAfter'],'on'):_0x2e88eb['createSelection'](_0x174771),this['_model']['deleteContent'](_0x743676,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x274bb3=(_0x46e58d,_0x4acb44)=>{_0x4acb44&&this['_model']['change'](_0x1596b9=>{const {commandName:_0x44d891,commandParams:_0x4813fc=[]}=_0x4acb44,_0x3a7aa4=_0x46e58d['map'](_0x39ac5d=>(Kt(_0x39ac5d)&&(_0x39ac5d=this['_model']['createRange'](_0x39ac5d['end'])),_0x39ac5d))['filter'](_0x2b7cb3=>'$graveyard'!==_0x2b7cb3['root']['rootName']);if(_0x3a7aa4['length']<0x1)return;const _0x26d111=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x39241e=>_0xf95a74['fromRange'](_0x39241e));_0x1596b9['setSelection'](_0x3a7aa4);for(const _0x2b1049 of this['_editor']['commands']['commands']())_0x2b1049['refresh']();_0x4813fc['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x44d891,..._0x4813fc);const _0x5c11f0=_0x26d111['filter'](_0x48610a=>'$graveyard'!=_0x48610a['root']['rootName']);_0x5c11f0['length']>0x0&&_0x1596b9['setSelection'](_0x5c11f0);for(const _0x160c27 of _0x26d111)_0x160c27['detach']();});},_0x134ef0=(_0x507aaf,_0x1f98fd)=>0x1==_0x507aaf['length']&&0x1==_0x1f98fd['length']&&_0x507aaf[0x0]['end']['isEqual'](_0x1f98fd[0x0]['start']),_0x5da970=(_0x58246c,_0x11407d,_0x28e2b5,_0x5b4248)=>nn(_0x58246c,_0x11407d,_0x28e2b5,_0x5b4248)?[_0x58246c,_0x11407d]:nn(_0x11407d,_0x58246c,_0x5b4248,_0x28e2b5)?[_0x11407d,_0x58246c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4c039c),this['_defaultCallbacks']['set']('insertion:discard',_0x4d2613),this['_defaultCallbacks']['set']('insertion:join',_0x134ef0),this['_defaultCallbacks']['set']('insertion:chain',_0x5da970),this['_defaultCallbacks']['set']('deletion:accept',_0x4d2613),this['_defaultCallbacks']['set']('deletion:discard',_0x4c039c),this['_defaultCallbacks']['set']('deletion:join',_0x134ef0),this['_defaultCallbacks']['set']('deletion:chain',_0x5da970),this['_defaultCallbacks']['set']('formatInline:accept',_0x274bb3),this['_defaultCallbacks']['set']('formatInline:discard',_0x4c039c),this['_defaultCallbacks']['set']('formatInline:join',_0x134ef0),this['_defaultCallbacks']['set']('formatInline:chain',_0x4c039c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x274bb3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4c039c),this['_defaultCallbacks']['set']('formatBlock:join',_0x134ef0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4c039c),this['_defaultCallbacks']['set']('attribute:accept',_0x4c039c),this['_defaultCallbacks']['set']('attribute:discard',(_0x4d6a7e,_0x3ae1b0)=>{if(!_0x3ae1b0)return;const _0x9bee32=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x17279a=>{if(_0x3ae1b0['key']==m)for(const _0xced9ab of _0x4d6a7e){const _0x4939d2=_0xced9ab['start']['nodeAfter'],_0x3b8e64=_0x3ae1b0['oldValue'];_0x17279a['rename'](_0x4939d2,_0x3b8e64);}else{if(_0x9bee32['_isBlockAttribute'](_0x3ae1b0['key'])){for(const _0x5e8a45 of _0x4d6a7e)void 0x0!==_0x3ae1b0['oldValue']?_0x17279a['setAttribute'](_0x3ae1b0['key'],_0x3ae1b0['oldValue'],_0x5e8a45['start']['nodeAfter']):_0x17279a['removeAttribute'](_0x3ae1b0['key'],_0x5e8a45['start']['nodeAfter']);}else{for(const _0x144ac0 of _0x4d6a7e)_0x3ae1b0['oldValue']?_0x17279a['setAttribute'](_0x3ae1b0['key'],_0x3ae1b0['oldValue'],_0x144ac0):_0x17279a['removeAttribute'](_0x3ae1b0['key'],_0x144ac0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x134ef0);}}function zt(_0x5d7213,_0x246e5c,_0x5c8c0e){for(const _0x5dd813 of _0x246e5c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5dd813['root']==_0x5dd813)return!0x1;if(!_0x5c8c0e['containsItem'](_0x5dd813))return!0x1;if(_0x5d7213['isObject'](_0x5dd813)||_0x5d7213['isLimit'](_0x5dd813))return!0x0;}return!0x1;}function Kt(_0x1ac6a0){return _0x1ac6a0['end']['parent']==_0x1ac6a0['start']['nodeAfter']&&_0x1ac6a0['end']['isAtStart'];}function Wt(_0x300ef8,_0x4b9bea,_0x277cc0,_0x9b6d1){const _0x4d4ec7=_0x4df038=>!_0x4df038['item']['is']('$textProxy')&&!_0x9b6d1['isObject'](_0x4df038['item']),_0x4a2f25=_0x300ef8['start']['getLastMatchingPosition'](_0x4d4ec7),_0x2c2a26=_0x300ef8['end']['getLastMatchingPosition'](_0x4d4ec7,{'direction':'backward'});return(!_0x300ef8['start']['isEqual'](_0x4a2f25)||!_0x300ef8['end']['isEqual'](_0x2c2a26))&&(_0x4a2f25['isBefore'](_0x2c2a26)?_0x277cc0['updateMarker'](_0x4b9bea,{'range':_0x277cc0['createRange'](_0x4a2f25,_0x2c2a26)}):_0x277cc0['removeMarker'](_0x4b9bea),!0x0);}function Ht(_0x4ce7cf){return _0x1c2930(_0x4ce7cf);}function Qt(_0x21f933){const _0x56e5ae=_0x21f933['start']['nodeAfter'];return _0x56e5ae&&_0x56e5ae['is']('element');}function Xt(_0x1d71bc){return Kt(_0x1d71bc)||function(_0x460c6a){return _0x460c6a['start']['parent']==_0x460c6a['end']['nodeBefore']&&_0x460c6a['start']['isAtEnd'];}(_0x1d71bc);}function Yt(_0x1e951f,_0x5aa322){try{const _0x24cebf=_0x1e951f['getRange']();for(const _0x2c0a73 of _0x5aa322)if(_0x1e951f!==_0x2c0a73&&_0x24cebf&&_0x24cebf['isIntersecting'](_0x2c0a73['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x25668d,_0x2c26f3){return null==_0x25668d['end']['nodeBefore']&&_0x25668d['end']['parent']==_0x25668d['start']['nodeAfter']?tn(_0x25668d['start']['nodeAfter'],_0x2c26f3):_0x25668d;}function tn(_0x52e944,_0x5136e1){const _0x5a2107=_0x5136e1['schema']['isObject'](_0x52e944)||_0x5136e1['schema']['isSelectable'](_0x52e944);return _0x5136e1['createRange'](_0x5136e1['createPositionAt'](_0x52e944,'before'),_0x5a2107?_0x5136e1['createPositionAfter'](_0x52e944):_0x5136e1['createPositionAt'](_0x52e944,'end'));}function nn(_0x53c7d2,_0x3b1fa2,_0x55ca49,_0x7397dc){return!!en(_0x53c7d2,_0x3b1fa2)&&_0x55ca49['end']['isEqual'](_0x7397dc['start']);}function en(_0x8c38c2,_0x39f3ef){if(!_0x8c38c2['_isDataLoaded']||!_0x39f3ef['_isDataLoaded'])return!0x1;const _0xaf8040=new Set(Object['keys'](_0x8c38c2['attributes'])),_0x3c0f2b=new Set(Object['keys'](_0x39f3ef['attributes']));if(_0xaf8040['delete']('groupId'),_0x3c0f2b['delete']('groupId'),0x0==_0xaf8040['size']&&0x0==_0x3c0f2b['size'])return!0x0;if(_0xaf8040['size']!=_0x3c0f2b['size'])return!0x1;const _0xa549bb={..._0x8c38c2['attributes']},_0x50a01e={..._0x39f3ef['attributes']};return delete _0xa549bb['groupId'],delete _0x50a01e['groupId'],JSON['stringify'](_0xa549bb)==JSON['stringify'](_0x50a01e);}function sn(_0xe631b3,_0x4c0bf2){const _0x12a97d=on(_0xe631b3['attributes']),_0x2a990b=on(_0x4c0bf2);if(!_0xe631b3['_isDataLoaded'])return!0x1;for(const _0x85a521 of Object['keys'](_0x2a990b))if(!_0x41a2af(_0x12a97d[_0x85a521],_0x2a990b[_0x85a521]))return!0x1;return!0x0;}function on(_0x108a4d){const _0x3974ef=Object['assign']({},_0x108a4d);return delete _0x3974ef['skipNestingCheck'],delete _0x3974ef['tablePasteChainId'],_0x3974ef;}class pe extends/* #__PURE__ -- @preserve */
26
- _0xd48f68(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x593ec0,_0x3da794,_0x5c8ff2,_0xebba22){super(),this['model']=_0x3da794,this['view']=_0x5c8ff2,this['commentThreadController']=_0xebba22,this['_editor']=_0x593ec0,this['_acceptCommand']=_0x593ec0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x593ec0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3b2d91,_0x42be83)=>_0x3b2d91||_0x42be83),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x33fb94=>_0x33fb94&&this['_editor']['model']['canEditAt'](_0x3da794['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x186556=>_0x186556&&this['_editor']['model']['canEditAt'](_0x3da794['getRanges']())),this['_pendingAction']=null,_0x5c8ff2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5c8ff2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5c8ff2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5c8ff2,'change:isDirty',()=>{_0x5c8ff2['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 _0xd1524b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xd1524b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0xda289e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1e87e3,_0x2b93c6,_0x3785c2,_0x245e3e){super(_0x1e87e3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x478bd9(_0x1e87e3,o(_0x1e87e3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2b93c6['authoredAt']),this['bind']('authoredAt')['to'](_0x2b93c6),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',_0x2b93c6,'authoredAt',this,'descriptionParts',(_0x30b46d,_0x135177,_0x3ab962)=>{const _0x3b3fc1=_0x3ab962['map'](_0x504515=>ls(_0x504515['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x30b46d-0x1,_0x2b93c6['author']['name'],_0x135177?_0x245e3e['formatDateTime'](_0x135177):'',new DOMParser()['parseFromString'](_0x3b3fc1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1ce125(),this['focusTracker']=new _0x3fdedd(),this['keystrokes']=new _0x13a0a3(),this['focusCycler']=new _0x26c50b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1c5b59=>_0x1c5b59['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2b93c6,this['_localUser']=_0x3785c2,this['_config']=_0x245e3e,_0x245e3e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x30fce3(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x11f559}=this['_config'];this['commentsListView']=new _0x11f559(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',_0x2ce534=>_0x2ce534+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x148973,_0x1db76a)=>_0x148973||!!_0x1db76a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1d66ec}=this['_config'],_0x3f3d76=new _0x1d66ec(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x64a552=_0x3f3d76['commentInputView'];return _0x3f3d76['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x64a552,'value',(_0x523ca8,_0x213f13,_0x3b9592)=>!!_0x3b9592||_0x523ca8&&!_0x213f13),_0x64a552['on']('submit',(_0x8768d,_0x416d7a)=>{this['fire']('addComment',_0x416d7a),_0x64a552['editor']['setData']('');}),_0x64a552['on']('cancel',()=>this['focus']()),_0x64a552['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3f3d76;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x203a7a,_0x535e96,_0x388f49,_0x2496ce){super(_0x203a7a,_0x535e96,_0x388f49,_0x2496ce),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x449b7d=>_0x449b7d&&_0x449b7d[0x0]?_0x449b7d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3e890a,_0x5c0963)=>{let _0x5b0c64='';for(const _0x2ae6a0 of _0x3e890a)_0x5b0c64+='<p>'+ls(_0x2ae6a0['content'],_0x2ae6a0['color'])+'</p>';return _0x5c0963?_0x5b0c64:_0x59ee01(_0x5b0c64,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2496ce['SuggestionView'](_0x203a7a,_0x535e96,{'formatDateTime':_0x2496ce['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 _0x15b1db=this['bindTemplate'],_0x59322f=[this['suggestionView']];return this['commentsListView']&&_0x59322f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x59322f['push'](this['commentThreadInputView']),_0x59322f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x15b1db['if']('isActive','ck-suggestion-wrapper--active'),_0x15b1db['to']('type',_0x1b6c08=>'ck-suggestion-'+_0x1b6c08),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':_0x15b1db['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x59322f};}['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 _0xda289e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x52c175,_0x4ee389,_0x4ad945){super(_0x52c175),this['_model']=_0x4ee389,this['_config']=_0x4ad945,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4ee389),this['acceptButton']=this['_createButton'](o(_0x52c175,'Accept\x20suggestion'),_0x37ec19,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x52c175,'Discard\x20suggestion'),_0x4b2fc4,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x25b94(_0x52c175,_0x4ee389['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1ce125([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3fdedd(),this['keystrokes']=new _0x13a0a3(),this['focusCycler']=new _0x26c50b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3d57ac=>_0x3d57ac['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xec0f40=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xec0f40['innerHTML']=this['description'],this['on']('change:description',(_0x32e128,_0x26431f,_0x57b10c)=>{_0xec0f40['innerHTML']=_0x57b10c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x142ec8=this['bindTemplate'],_0x3a30e0=[{'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':_0x142ec8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x142ec8['to']('authoredAt',_0x1473ce=>this['_config']['formatDateTime'](_0x1473ce))}]}]},{'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']&&_0x3a30e0['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':_0x3a30e0}]};}['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'](_0xab10b6,_0x11dde8,_0x31b88c,_0x1c4240,_0x1d61cb){const _0x45f831=new _0x2cf1d2(this['locale']);return _0x45f831['set']({'label':_0xab10b6,'icon':_0x11dde8,'tooltip':!0x0,'tooltipPosition':_0x1d61cb}),_0x45f831['extendTemplate']({'attributes':{'class':_0x31b88c}}),_0x45f831['on']('execute',()=>{this['fire'](_0x1c4240,this['_model']['id']);}),_0x45f831;}['_setupKeyboardNavigation'](){const _0x35ccc9=this['element'];this['keystrokes']['listenTo'](_0x35ccc9);for(const _0x39d82b of this['focusables'])this['focusTracker']['add'](_0x39d82b['element']),this['keystrokes']['listenTo'](_0x39d82b['element']);this['keystrokes']['set']('enter',(_0x26e895,_0x9cc7f6)=>{_0x35ccc9===_0x26e895['target']&&(this['focusCycler']['focusFirst'](),_0x9cc7f6());}),this['keystrokes']['set']('esc',(_0x4229f6,_0x3e074f)=>{_0x35ccc9!==_0x4229f6['target']&&(this['focus'](),_0x3e074f());});}}class u extends _0x2f9a9e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x4ad530,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2336ab){super(_0x2336ab),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x11e89d=this['editor']['config'];_0x11e89d['define']('trackChanges.SuggestionThreadView',fe),_0x11e89d['define']('trackChanges.SuggestionView',we),_0x11e89d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x11e89d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x66c86e,_0x3fd018){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x11898,_0x30e2b0]of this['_handleControllerBuffer']){const _0xc9545d=this['_suggestionToController']['has'](_0x11898);_0xc9545d||_0x30e2b0?_0xc9545d&&_0x30e2b0&&this['_destroyController'](_0x11898):this['_initializeController'](_0x11898);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x66c86e,_0x3fd018);}['init'](){const _0x3049a4=this['editor'],_0x56aa4f=_0x3049a4['plugins']['get']('TrackChangesEditing'),_0x1f76bd=_0x3049a4['plugins']['get']('Annotations'),_0x22a443=_0x3049a4['plugins']['get']('EditorAnnotations'),_0x1bd0a2=_0x3049a4['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x22a443['addSourceCollector'](()=>{const _0x36e668=[];for(const [_0x11e4d8,_0x43ad1d]of Array['from'](this['_suggestionToController'])){const _0x1b4ecf=_0x11e4d8['getAllAdjacentSuggestions'](),_0x48389a=[];for(const _0x4cc31d of _0x1b4ecf){if(!_0x4cc31d['isInContent'])continue;if(_0x4cc31d['isMultiRange']){_0x48389a['push'](..._0x4cc31d['getRanges']());continue;}const _0x3714eb=_0x4cc31d['getFirstRange']();if(_0x48389a['length']>0x0){const _0x137ec9=_0x48389a[0x0]['getJoined'](_0x3714eb);if(_0x137ec9){_0x48389a[0x0]=_0x137ec9;continue;}}_0x48389a['push'](_0x3714eb);}_0x36e668['push']([_0x43ad1d['view'],_0x48389a]);}return _0x36e668;}),this['listenTo'](_0x56aa4f,'suggestionLoaded',(_0x589e8d,_0x2b8355)=>{this['listenTo'](_0x2b8355,'change:previous',(_0x564732,_0x3ed1d8,_0x525ce5,_0x34e47b)=>{_0x2b8355['isInContent']&&(null==_0x525ce5?(this['_updateController'](_0x34e47b['head']),this['_handleSuggestionControllerDelayed'](_0x2b8355,!0x1)):(this['_updateController'](_0x525ce5['head']),null==_0x34e47b&&this['_handleSuggestionControllerDelayed'](_0x2b8355,!0x0)));}),null!==_0x2b8355['previous']?this['_updateController'](_0x2b8355['head']):this['_handleSuggestionControllerDelayed'](_0x2b8355,!0x1);}),this['listenTo'](_0x56aa4f,'suggestionUnloaded',(_0x5de21e,_0x43bf61,_0x293caa)=>{this['stopListening'](_0x43bf61,'change:previous'),this['_handleControllerBuffer']['delete'](_0x43bf61),this['_suggestionToController']['has'](_0x43bf61)&&this['_destroyController'](_0x43bf61),_0x293caa&&this['_updateController'](_0x293caa['head']);}),this['listenTo'](_0x56aa4f,'suggestionChanged',(_0x2993f9,_0x25edd4)=>{this['_updateController'](_0x25edd4);}),this['listenTo'](_0x1f76bd,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1bd0a2,'addComment',(_0x4c94c4,{threadId:_0x1d21b7,isFromAdapter:_0x56d000})=>{if(_0x56d000||!_0x56aa4f['hasSuggestion'](_0x1d21b7))return;const _0x563121=_0x56aa4f['getSuggestion'](_0x1d21b7);this['_suggestionToController']['get'](_0x563121)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x289222=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x27c047;for(const _0x4c90ee in _0x289222){const _0x2c8da5=_0x4c90ee,_0x33e1b6=_0x289222[_0x2c8da5];if('trackChangesLicenseKeyValid'==_0x33e1b6||'trackChangesLicenseKeyInvalid'==_0x33e1b6||'trackChangesLicenseKeyExpired'==_0x33e1b6||'trackChangesLicenseKeyDomainLimit'==_0x33e1b6||'trackChangesLicenseKeyNotAllowed'==_0x33e1b6||'trackChangesLicenseKeyEvaluationLimit'==_0x33e1b6||'trackChangesLicenseKeyUsageLimit'==_0x33e1b6){delete _0x289222[_0x2c8da5],_0x27c047=_0x33e1b6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x27c047&&_0x289222['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x27c047&&_0x289222['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x27c047&&_0x289222['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x27c047&&_0x289222['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x27c047&&_0x289222['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x27c047&&_0x289222['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x796be0){const _0x389ee8=this['_suggestionToController']['get'](_0x796be0);if(!_0x389ee8)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x389ee8['view'])||null;}['getSuggestionForAnnotation'](_0x3cd4ec){const _0x29bf39=this['_viewToController']['get'](_0x3cd4ec['innerView']);return _0x29bf39?_0x29bf39['model']:null;}['_refreshActiveMarkers'](){const _0x2657ee=this['editor']['plugins']['get']('Annotations'),_0x467707=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36caf2=Array['from'](_0x2657ee['activeAnnotations'],_0x30bac8=>_0x30bac8['innerView'])['filter'](_0x34249c=>this['_viewToController']['has'](_0x34249c)),_0x4eae5b=[];for(const _0x1b11fb of _0x36caf2){const _0x304498=this['_viewToController']['get'](_0x1b11fb)['model']['getAllAdjacentSuggestions']();_0x4eae5b['push'](..._0x304498['reduce']((_0x52f572,_0x1a18d1)=>[..._0x52f572,..._0x1a18d1['getMarkerNames']()],[]));}_0x467707['activeMarkers']=_0x4eae5b;}['_addUIComponentsToFactory'](){const _0x3aad2a=this['editor'],_0x58e220=_0x3aad2a['locale'],_0x136c96=o(_0x58e220,'Track\x20changes'),_0xb996f0=new _0x22f62e([{'type':'switchbutton','model':new _0x5a69d2({'withText':!0x0,'isToggleable':!0x0,'label':_0x136c96,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5a69d2({'withText':!0x0,'label':o(_0x58e220,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5a69d2({'withText':!0x0,'label':o(_0x58e220,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5a69d2({'withText':!0x0,'label':o(_0x58e220,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5a69d2({'withText':!0x0,'label':o(_0x58e220,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3aad2a['plugins']['has']('TrackChangesPreview')&&_0xb996f0['addMany']([{'type':'separator'},{'type':'button','model':new _0x5a69d2({'withText':!0x0,'label':o(_0x58e220,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2bdba0 of _0xb996f0)if(ke(_0x2bdba0)){const _0xfadb23=_0x3aad2a['commands']['get'](_0x2bdba0['model']['commandName']);_0x2bdba0['model']['bind']('isOn','isEnabled')['to'](_0xfadb23,'value','isEnabled');}_0x3aad2a['ui']['componentFactory']['add']('trackChanges',_0x3401ec=>this['_createToolbarButton'](_0x3401ec,_0xb996f0,_0x136c96)),_0x3aad2a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x45206e=>this['_createMenuBarMenu'](_0x45206e,_0xb996f0,_0x136c96));}['_createToolbarButton'](_0x5d8fde,_0x712aeb,_0x37e2fb){const _0x2b6409=_0x4bfa5e(_0x5d8fde,_0xd645a8),_0x544ff9=this['editor']['commands']['get']('trackChanges');_0x2b6409['buttonView']['set']({'tooltip':_0x37e2fb,'label':_0x37e2fb,'icon':_0x4a91dc}),_0x2b6409['buttonView']['bind']('isOn')['to'](_0x544ff9,'value'),_0x2b6409['buttonView']['on']('execute',()=>{_0x544ff9['execute'](),this['editor']['editing']['view']['focus']();}),_0x294e4b(_0x2b6409,_0x712aeb,{'role':'menu'});const _0x56b920=[];for(const _0x1adb0f of _0x712aeb)ke(_0x1adb0f)&&_0x56b920['push'](this['editor']['commands']['get'](_0x1adb0f['model']['commandName']));const _0x413551=_0x2b6409['buttonView'];return _0x413551['actionView']['unbind']('isEnabled'),_0x413551['arrowView']['unbind']('isEnabled'),_0x413551['actionView']['bind']('isEnabled')['to'](_0x544ff9,'isEnabled'),_0x413551['arrowView']['bind']('isEnabled')['toMany'](_0x56b920,'isEnabled',(..._0x3d8c1f)=>_0x3d8c1f['some'](_0x3e828b=>_0x3e828b)),_0x2b6409['on']('execute',_0x2ec318=>{this['editor']['execute'](_0x2ec318['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2b6409;}['_createMenuBarMenu'](_0xf57541,_0x54d82f,_0x34f9be){const _0x4cfa69=new _0x514490(_0xf57541),_0x15f06c=this['editor']['commands']['get']('trackChanges');_0x4cfa69['buttonView']['set']({'label':_0x34f9be,'icon':_0x4a91dc});const _0x3ea11e=new _0x2c00d1(_0xf57541);for(const _0x57dcf0 of _0x54d82f){if('separator'==_0x57dcf0['type']){_0x3ea11e['items']['add'](new _0x582585(_0xf57541));continue;}const _0x31df7d=new _0x111127(_0xf57541,_0x4cfa69),_0x41d10d=new _0x4851e3(_0xf57541),_0x10ebf7=_0x57dcf0['model'];_0x41d10d['bind'](...Object['keys'](_0x10ebf7))['to'](_0x10ebf7),_0x41d10d['delegate']('execute')['to'](_0x4cfa69),_0x41d10d['on']('execute',()=>{this['editor']['execute'](_0x10ebf7['commandName']),this['editor']['editing']['view']['focus']();}),_0x31df7d['children']['add'](_0x41d10d),_0x3ea11e['items']['add'](_0x31df7d);}return _0x4cfa69['bind']('isEnabled')['to'](_0x15f06c,'isEnabled'),_0x4cfa69['panelView']['children']['add'](_0x3ea11e),_0x4cfa69;}['_initializeController'](_0x51598d){const _0x4a2056=this['editor'],_0x50b6c2=_0x4a2056['config'],_0x561f15=_0x4a2056['plugins']['get']('Annotations'),_0x237d6f=_0x4a2056['plugins']['get']('CommentsRepository'),_0x4ba000=_0x4a2056['plugins']['get']('EditorAnnotations'),_0x1f644e=_0x4a2056['plugins']['get'](_0x4ad530)['me'],_0x176aca=_0x50b6c2['get']('trackChanges')['SuggestionThreadView'],_0x1153dd=_0x50b6c2['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x51bace,CommentThreadInputView:_0x3cebef}=_0x4a2056['plugins']['get']('CommentsUI');let _0x27439d,_0x536950,_0xa290ea;this['_annotationViews']['has'](_0x51598d['id'])?(_0x536950=this['_annotationViews']['get'](_0x51598d['id']),_0x27439d=_0x536950['mainView']):(_0x27439d=new _0x176aca(_0x4a2056['locale'],_0x51598d,_0x1f644e,{'disableComments':this['_disableComments'],'editorConfig':{..._0x50b6c2['get']('comments.editorConfig'),'licenseKey':_0x50b6c2['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x50b6c2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x50b6c2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x50b6c2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xc3f68(_0x50b6c2['get']('locale'),_0x4a2056['locale']),'CommentView':_0x50b6c2['get']('comments')['CommentView'],'CommentsListView':_0x51bace,'CommentThreadInputView':_0x3cebef,'SuggestionView':_0x1153dd}),_0x27439d['suggestionView']['acceptButton']['on']('execute',()=>{_0x4a2056['editing']['view']['focus']();}),_0x27439d['suggestionView']['discardButton']['on']('execute',()=>{_0x4a2056['editing']['view']['focus']();}),_0x536950=_0x561f15['createAnnotationView'](this['editor']['locale'],_0x27439d),_0x536950['bind']('isDirty')['to'](_0x27439d,'isDirty'),_0x536950['bind']('length')['to'](_0x27439d),_0x536950['bind']('type')['to'](_0x27439d,'type',_0x3e8537=>'suggestion-'+_0x3e8537),_0x27439d['on']('escape',()=>{_0xa290ea['fire']('escape');}),this['_annotationViews']['set'](_0x51598d['id'],_0x536950));const _0x561bf0=_0x237d6f['createCommentThreadController'](_0x51598d['commentThread'],_0x27439d),_0x3efc16=new pe(_0x4a2056,_0x51598d,_0x27439d,_0x561bf0),_0x53a024=_0x51598d['getAllAdjacentSuggestions']()['filter'](_0x2a4365=>_0x2a4365['isInContent']);_0x27439d['descriptionParts']=_0x4a2056['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x53a024),this['_suggestionToController']['set'](_0x51598d,_0x3efc16),this['_viewToController']['set'](_0x27439d,_0x3efc16);const _0x36131d=()=>{const _0x5184ef=[],_0x5da16d=_0x51598d['getAllAdjacentSuggestions']()['filter'](_0x11d43b=>_0x11d43b['isInContent']);for(const _0x4f8026 of _0x5da16d)_0x5184ef['push'](..._0x4f8026['getMarkers']());return _0x1a9e64(_0x4a2056['editing'],_0x5184ef);};_0xa290ea=_0x561f15['createAnnotation']({'view':_0x536950,'target':_0x36131d,'type':()=>'suggestion-'+_0x3efc16['view']['type'],'isVisible':!!_0x36131d()}),_0x237d6f['_bindAnnotationToEditors'](_0x27439d,_0xa290ea),_0x561f15['add'](_0xa290ea),_0x4ba000['registerAnnotation'](_0xa290ea);}['_destroyController'](_0x24586e){const _0x4dd4fa=this['editor']['plugins']['get']('CommentsRepository'),_0x3d6559=this['editor']['plugins']['get']('Annotations'),_0x12966f=this['_suggestionToController']['get'](_0x24586e),_0x2ae862=_0x12966f['view'],_0x278912=_0x3d6559['getByInnerView'](_0x2ae862);_0x4dd4fa['_unbindEditors'](_0x2ae862),_0x278912&&_0x3d6559['remove'](_0x278912),this['_suggestionToController']['delete'](_0x24586e),this['_viewToController']['delete'](_0x2ae862),_0x12966f['destroy']();}['_updateController'](_0x23ed26){if(!_0x23ed26['isInContent']||!this['_suggestionToController']['has'](_0x23ed26))return;const _0x58c7b6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bd01f=this['_suggestionToController']['get'](_0x23ed26),_0x39d016=_0x23ed26['getAllAdjacentSuggestions']();_0x2bd01f['view']['descriptionParts']=_0x58c7b6['descriptionFactory']['getDescriptions'](_0x39d016);}['destroy'](){for(const _0x39826e of this['_suggestionToController']['keys']())this['_destroyController'](_0x39826e);for(const _0x22d151 of this['_annotationViews']['values']())_0x22d151['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4ee97d){return'model'in _0x4ee97d;}class Ne extends _0x2f9a9e{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x100cb2){this['editor']['plugins']['get'](d)['adapter']=_0x100cb2;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x229ce6){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x229ce6);}['getSuggestions']({skipNotAttached:_0x13ba57=!0x1,toJSON:_0x39c591=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x13ba57,'toJSON':_0x39c591});}['getSuggestion'](_0x1c28ac){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1c28ac);}}const p=['Pagination'];class re extends _0x2f9a9e{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x286101=this['editor'];if(_0x286101['config']['define']('trackChangesData.editorCreator',_0x228069=>{const _0x41e9ba=_0x286101['model']['document']['getRootNames']()['reduce']((_0x44b1c6,_0x3ed075)=>(_0x44b1c6[_0x3ed075]='',_0x44b1c6),{});return _0x286101['constructor']['create'](_0x41e9ba,_0x228069);}),'function'!=typeof _0x286101['config']['get']('trackChangesData')['editorCreator'])throw new _0x2003cb('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x262654){return P(this['editor'],!0x0,_0x262654);}['getDataWithDiscardedSuggestions'](_0x29bdbc){return P(this['editor'],!0x1,_0x29bdbc);}}class Fe extends _0x2f9a9e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xbe63f2){function _0x28bb09(_0x4dd746){return _0x4dd746['map'](_0x42af20=>String['fromCharCode'](_0x42af20))['join']('');}super(_0xbe63f2),this['result']='end',_0xbe63f2[_0x28bb09([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28bb09([0x76,0x69,0x65,0x77])][_0x28bb09([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28bb09([0x61,0x75,0x74,0x6f]),_0xbe63f2[_0x28bb09([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x28bb09([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28bb09([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x28bb09([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x28bb09([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 De(_0x2be7cd){return void 0x0!==_0x2be7cd['getRootsAttributes'];}async function P(_0x9c6d8,_0x3c29e2,_0x2a986a){const _0x25851b=_0x4acd4f(_0x9c6d8,p);_0x25851b['plugins']['push'](d,Fe),_0x25851b['rootsAttributes']=De(_0x9c6d8)?_0x9c6d8['getRootsAttributes']():void 0x0;const _0x3eff6f=document['createDocumentFragment'](),_0x2eb769=_0x9c6d8['config']['get']('trackChangesData')['editorCreator'],_0x5245a4=await _0x2eb769(_0x25851b,()=>function(_0x11ae15){const _0x736a7f=document['createElement']('div');return _0x11ae15['appendChild'](_0x736a7f),_0x736a7f;}(_0x3eff6f));!function(_0x54f0be,_0x412eee){const _0x4c72af=_0x54f0be['model']['document']['getRootNames']()['reduce']((_0x1aefd3,_0x54992a)=>(_0x1aefd3[_0x54992a]=_0x54f0be['data']['get']({'rootName':_0x54992a}),_0x1aefd3),{}),_0x3db473=_0x54f0be['plugins']['get']('Users')['users']['map'](_0x53319b=>({'id':_0x53319b['id'],'name':_0x53319b['name']})),_0x11c38c=_0x54f0be['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3f83bb=_0x54f0be['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xa48115=_0x412eee['plugins']['get']('Users'),_0x379089=_0x412eee['plugins']['get']('TrackChangesEditing'),_0xc92b8=_0x412eee['plugins']['get']('CommentsRepository');for(const _0x1c58e1 of _0xc92b8['getCommentThreads']())_0x1c58e1['remove']();for(const _0xc5ab83 of _0x3db473)_0xa48115['getUser'](_0xc5ab83['id'])||_0xa48115['addUser'](_0xc5ab83);_0xa48115['me']||_0xa48115['useAnonymousUser']();for(const _0x37d802 of _0x3f83bb)_0xc92b8['addCommentThread'](_0x37d802);for(const _0x2843f0 of _0x11c38c)_0x379089['addSuggestionData'](_0x2843f0);_0x412eee['data']['set'](_0x4c72af);}(_0x9c6d8,_0x5245a4),_0x5245a4['execute'](_0x3c29e2?'acceptAllSuggestions':'discardAllSuggestions');const _0x2605af=De(_0x5245a4)?_0x5245a4['getFullData'](_0x2a986a):_0x5245a4['data']['get'](_0x2a986a);return await _0x5245a4['destroy'](),_0x2605af;}class Me extends _0xda289e{['options'];constructor(_0x14b872,_0xf13c2f){super(_0x14b872),this['options']=_0xf13c2f,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'](_0x3f12ef,_0x999683){if(!this['element'])return;const _0x4f316b=[];for(const [_0x5a4332,_0x491c08]of _0x3f12ef){const _0x55ea9c=document['createElement']('div');_0x55ea9c['setAttribute']('data-ck-root-name',_0x5a4332),_0x55ea9c['className']=_0x491c08['classes']+'\x20ck-track-changes-preview__root-container',_0x55ea9c['innerHTML']=_0x491c08['content'],_0x4f316b['push'](_0x55ea9c);}_0x999683(this['element'],_0x4f316b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x25d0bd{constructor(_0x4e9610){super(_0x4e9610),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x53ac5c=this['editor'],_0x16da6c=_0x53ac5c['locale'],_0x1e9823=_0x53ac5c['plugins']['get']('Dialog');let _0x36ee35;const _0x213dea=function(_0x5e60d7){const _0x4688e5={};if('editables'in _0x5e60d7['ui']['view']){for(const [_0x284cc5,_0x1b3ed7]of Object['entries'](_0x5e60d7['ui']['view']['editables']))_0x4688e5[_0x284cc5]=_0x1b3ed7['element'];}else _0x4688e5[_0x5e60d7['model']['document']['getRootNames']()[0x0]]=_0x5e60d7['ui']['view']['editable']['element'];return _0x4688e5;}(_0x53ac5c),_0x30eb98=function(_0x349863){let _0x2f7d47=0x0;for(const _0x439b3c of Object['values'](_0x349863))_0x2f7d47=Math['max'](_0x2f7d47,_0x439b3c['getBoundingClientRect']()['width']);let _0x3621c1=0x0;for(const _0x4dd689 of Object['values'](_0x349863))_0x3621c1+=_0x4dd689['getBoundingClientRect']()['height'];const _0x351bb3=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1cb9fe=Math['min'](_0x3621c1,_0x351bb3);return{'width':_0x2f7d47,'height':_0x1cb9fe};}(_0x213dea);_0x1e9823['show']({'id':'finalContentPreview','title':o(_0x16da6c,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x16da6c,{'dialogRects':_0x30eb98}),'onHide':()=>{_0x36ee35['detachFromDom']();},'onShow':()=>{_0x53ac5c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2ce454=>{const _0x1e0eac=this['_standarizeRootsData'](_0x2ce454,_0x53ac5c,_0x213dea);_0x1e9823['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1e0eac,_0x53ac5c['config']['get']('trackChanges.preview.renderFunction'));}),_0x36ee35=new _0x526a2f(_0x16da6c,[_0x1e9823['view']]),_0x36ee35['attachToDom'](),_0x36ee35['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x53ac5c['once']('destroy',()=>{_0x36ee35['detachFromDom']();});const _0x1a64de=_0x1e9823['view']['headerView']['class'];_0x1e9823['view']['headerView']['class']=_0x1a64de?_0x1a64de+'\x20ck-reset_all':'ck-reset_all',_0x1e9823['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1e9823['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x27995c=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2ead1c=_0x27995c['previewMode'],_0x22d650={};if('$labels'===_0x2ead1c){for(const _0x48f5bb of _0x27995c['getMergeFieldsIds']())_0x22d650[_0x48f5bb]=_0x27995c['getLabel'](_0x48f5bb)||_0x48f5bb;}else{const _0x554b60='$defaultValues'===_0x2ead1c?_0x27995c['getDefaultValues']():_0x27995c['getDataSetValues'](_0x2ead1c,!0x0);for(const _0x16ebc5 of Object['entries'](_0x554b60)){const [_0x30deae,_0x5217da]=_0x16ebc5;_0x22d650[_0x30deae]=null!==_0x5217da?_0x5217da:_0x27995c['getLabel'](_0x30deae)||_0x30deae;}}return{'mergeFieldsData':_0x22d650};}['_standarizeRootsData'](_0x1c12e6,_0x2bc515,_0x54a4c9){let _0x520744;if('string'==typeof _0x1c12e6){const _0x400003=_0x2bc515['model']['document']['getRootNames']()[0x0];_0x520744={[_0x400003]:_0x1c12e6};}else _0x520744=_0x1c12e6;const _0xeb4cd9=this['_fixMediaEmbeds'](_0x520744,_0x2bc515),_0x5d7168=function(_0x1afd93,_0x387d24){for(const [_0x43d046,_0x50ab7e]of _0x1afd93)_0x50ab7e['classes']=_0x387d24[_0x43d046]['classList']['value']['replace']('ck-focused','');return _0x1afd93;}(this['_sortRoots'](_0x2bc515)['reduce']((_0x4bb96c,_0x2b0738)=>(_0x4bb96c['push']([_0x2b0738,{'content':_0xeb4cd9[_0x2b0738],'classes':''}]),_0x4bb96c),[]),_0x54a4c9);return _0x5d7168;}['_fixMediaEmbeds'](_0x38eac0,_0x464021){if(!_0x464021['plugins']['has']('MediaEmbedEditing'))return _0x38eac0;const _0x49a758=_0x464021['plugins']['get']('MediaEmbedEditing');for(const [_0x47fcc3,_0xed042f]of Object['entries'](_0x38eac0)){const _0x539581=document['createElement']('div');_0x539581['innerHTML']=_0xed042f,(_0x539581['querySelectorAll']('figure.media')['forEach'](_0x5df3f3=>{const _0x46b23c=_0x5df3f3['querySelector']('oembed');if(_0x46b23c){const _0x562745=_0x46b23c['getAttribute']('url');if(_0x562745){const _0x394741=_0x49a758['registry']['getMediaViewElement'](new _0x1147a1(_0x464021['editing']['view']['document']),_0x562745,{'elementName':'','renderForEditingView':!0x0}),_0xedc40f=document['createElement']('div');_0xedc40f['classList']['add']('ck-media__wrapper'),_0x394741['render'](_0xedc40f,_0x464021['editing']['view']['domConverter']),_0x46b23c['replaceWith'](_0xedc40f);}}}),_0x38eac0[_0x47fcc3]=_0x539581['innerHTML']);}return _0x38eac0;}['_sortRoots'](_0x4587c8){if(!function(_0x295f32){return void 0x0!==_0x295f32['getRootsAttributes'];}(_0x4587c8))return _0x4587c8['model']['document']['getRootNames']();const _0x256584=[],_0x55ff03=new Map();for(const _0x5d6cf4 of _0x4587c8['model']['document']['getRootNames']()){const _0xf38486=_0x4587c8['editing']['view']['getDomRoot'](_0x5d6cf4)['getClientRects']()['item'](0x0);_0x256584['push'](_0x5d6cf4),_0x55ff03['set'](_0x5d6cf4,_0xf38486);}return _0x256584['sort']((_0x5c7a6b,_0x35469c)=>{const _0x1e1a6d=_0x55ff03['get'](_0x5c7a6b),_0x548d23=_0x55ff03['get'](_0x35469c);return _0x1e1a6d['y']-_0x548d23['y']||_0x1e1a6d['x']-_0x548d23['x'];}),_0x256584;}}class Ue extends _0x2f9a9e{static get['requires'](){return[re,_0x456ea4];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x305e1c){super(_0x305e1c),_0x305e1c['commands']['add']('previewFinalContent',new te(this['editor'])),_0x305e1c['config']['define']('trackChanges.preview.renderFunction',(_0x211fd9,_0x3153f3)=>{for(const _0x6dcec9 of _0x3153f3)_0x211fd9['appendChild'](_0x6dcec9);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x3a7f40,Plugin as _0x3274cb,PendingActions as _0x26c9ca}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2557e8,ObservableMixin as _0x4414c9,uid as _0x531b89,priorities as _0x296698,insertToPriorityArray as _0x4cc218,logWarning as _0x3bf1ea,getEnvKeystrokeText as _0x231584,FocusTracker as _0x4f281b,KeystrokeHandler as _0xabf8c7,Collection as _0x129ca7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xd5318d,IconCancel as _0x92cecc,IconTrackChanges as _0x3b1e66}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x48e5c8,View as _0x5e1d9e,ViewCollection as _0x5b34fa,FocusCycler as _0x4e0adc,UIModel as _0x39b47f,createDropdown as _0x389741,SplitButtonView as _0x26c15b,addListToDropdown as _0x371943,MenuBarMenuView as _0xbe2358,MenuBarMenuListView as _0x4bb86,ListSeparatorView as _0x1aee94,MenuBarMenuListItemView as _0x21ec28,MenuBarMenuListItemButtonView as _0x2463a3,BodyCollection as _0x436014,Dialog as _0x48ca18}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1567bc,DocumentCompare as _0x43db28,hashObject as _0x12c857,surroundingMarkersDetector as _0x42ea18,FOCUS_ANNOTATION_KEYSTROKE as _0x2ab3aa,AriaDescriptionView as _0x387eeb,setupThreadKeyboardNavigation as _0xfb400c,trimHtml as _0x2db41e,UserView as _0x3b2f56,LateFocusButtonView as _0x53f018,getDateTimeFormatter as _0x36fc7b,getAllMarkersDomElementsSorted as _0x1487c6,sanitizeEditorConfig as _0x2b1901}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x4c11ec,ModelLiveRange as _0x393f46,ModelLivePosition as _0x5b59fc,ViewDowncastWriter as _0x83e009}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x46a575,set as _0x57c3a8,isEqual as _0x4f9f48,unset as _0x26704d,omit as Pt}from'es-toolkit/compat';import{Delete as _0x31903c,Input as _0x5595f9}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x51080f}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x28c363}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x3a7f40{['_enabledCommands'];constructor(_0x36a990,_0x9b01b2){super(_0x36a990),this['_enabledCommands']=_0x9b01b2,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 _0x18ea9c of this['editor']['commands']['commands']())_0x18ea9c['affectsData']&&!this['_enabledCommands']['has'](_0x18ea9c)&&_0x18ea9c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x147780 of this['editor']['commands']['commands']())_0x147780['affectsData']&&!this['_enabledCommands']['has'](_0x147780)&&_0x147780['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x3a7f40{['_suggestions'];constructor(_0x38b947,_0x795e7c){super(_0x38b947),this['_suggestions']=_0x795e7c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xf5b2a0){const _0x357317=this['_suggestions']['get'](_0xf5b2a0);if(!_0x357317)throw new _0x2557e8('track-changes-accept-suggestion-not-found',this);const _0xb33e36=_0x357317['getRanges']();this['editor']['model']['canEditAt'](_0xb33e36)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x357317);}}class D extends _0x3a7f40{['_suggestions'];constructor(_0x2f17b1,_0x55086c){super(_0x2f17b1),this['_suggestions']=_0x55086c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x55c349){const _0x122d76=this['_suggestions']['get'](_0x55c349);if(!_0x122d76)throw new _0x2557e8('track-changes-discard-suggestion-not-found',this);const _0x58edfb=_0x122d76['getRanges']();this['editor']['model']['canEditAt'](_0x58edfb)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x122d76);}}function ls(_0x27e8a2,_0x1a0fc9){let _0x26fb32='';return _0x26fb32+=_0x27e8a2['split']('*')['map']((_0x23f21f,_0x43b217)=>_0x43b217%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x23f21f)+'</span>':rn(_0x23f21f))['join'](''),_0x1a0fc9&&(_0x26fb32+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1a0fc9['value']+'\x22\x20title=\x22'+_0x1a0fc9['title']+'\x22></span>'),_0x26fb32;}function rn(_0x4c5808){const _0x3c0f27=document['createElement']('span');return _0x3c0f27['innerText']=_0x4c5808,_0x3c0f27['innerHTML'];}function ts(_0x501734){return _0x501734['sort']((_0x2b7827,_0x5e322b)=>'attribute'===_0x2b7827['type']&&'attribute'!==_0x5e322b['type']?-0x1:'attribute'!==_0x2b7827['type']&&'attribute'===_0x5e322b['type']?0x1:'deletion'==_0x2b7827['type']&&'deletion'!=_0x5e322b['type']?-0x1:'deletion'!=_0x2b7827['type']&&'deletion'==_0x5e322b['type']?0x1:0x0);}function to(_0x421d31,_0xa6af15){let _0x4a4e36,_0x35c05b=0x0;const _0x21bc2c=[],_0xd6b88c=_0xa6af15['schema'];for(;_0x35c05b<_0x421d31['length'];){const _0xbf342f=_0x421d31[_0x35c05b],_0xc64bdc=_0x421d31[_0x35c05b+0x1];_0x4a4e36||(_0x4a4e36=_0xa6af15['createPositionBefore'](_0xbf342f)),cn(_0xa6af15,_0xbf342f,_0xc64bdc)||(_0x21bc2c['push'](_0xa6af15['createRange'](_0x4a4e36,_0xd6b88c['isObject'](_0xbf342f)?_0xa6af15['createPositionAfter'](_0xbf342f):_0xa6af15['createPositionAt'](_0xbf342f,'end'))),_0x4a4e36=null),_0x35c05b++;}return _0x21bc2c;}function cn(_0x1ccc68,_0x39f683,_0x10f3fd){if(!_0x10f3fd)return!0x1;const _0x48e019=_0x1ccc68['createPositionAfter'](_0x39f683),_0x8e9ce0=_0x1ccc68['createPositionBefore'](_0x10f3fd);return _0x48e019['isTouching'](_0x8e9ce0);}function rs(_0x3afbd3,_0x598303,_0x501ccc){for(;_0x501ccc['length'];){const _0x242b39=_0x501ccc['splice'](0x0,0x64);_0x3afbd3['change'](()=>{for(const _0x482e87 of _0x242b39)_0x482e87['isInContent']&&_0x598303['execute'](_0x482e87['id']);});}}class B extends _0x3a7f40{['_command'];['_suggestions'];constructor(_0x349b9d,_0x1a51ee,_0x25f036){super(_0x349b9d),this['_command']=_0x1a51ee,this['_suggestions']=_0x25f036,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2df31c=Array['from'](this['_suggestions']['values']())['some'](_0x188f26=>_0x188f26['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2df31c;}['execute'](){const _0x5d41d3=ts(Array['from'](this['_suggestions']['values']()));for(const _0x13cebf of _0x5d41d3){const _0x4b8465=_0x13cebf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b8465))return;}rs(this['editor']['model'],this['_command'],_0x5d41d3);}}class O extends _0x3a7f40{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x206fcb,_0x21bebc,_0x382983){super(_0x206fcb),this['_command']=_0x21bebc,this['_suggestions']=_0x382983,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x310f93=this['editor']['model']['document']['selection'],_0xeabb4e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4027f9,_0x400d58){const _0x2670e6=Array['from'](_0x4027f9['getRanges']()),_0x18a7af=new Set();for(const _0x4f04ac of _0x400d58)if(_0x4f04ac['isInContent']){for(const _0x40e727 of _0x2670e6)for(const _0x171ab2 of _0x4f04ac['getRanges']())(_0x40e727['isIntersecting'](_0x171ab2)||_0x4027f9['isCollapsed']&&!_0x4f04ac['isMultiRange']&&_0x4f04ac['next']&&_0x171ab2['end']['isTouching'](_0x40e727['start']))&&_0x18a7af['add'](_0x4f04ac);}return _0x18a7af;}(_0x310f93,_0xeabb4e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4758ff=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3f2b4c of _0x4758ff){const _0x4a29c9=_0x3f2b4c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a29c9))return;}rs(this['editor']['model'],this['_command'],_0x4758ff);}}class x extends/* #__PURE__ -- @preserve */
24
+ _0x4414c9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x255933,_0x2f245b){super(),this['id']=_0x2f245b['id'],this['type']=_0x2f245b['type'],this['subType']=_0x2f245b['subType']||null,this['author']=_0x2f245b['author'],this['creator']=_0x2f245b['creator']||_0x2f245b['author'],this['isExternal']=Boolean(_0x2f245b['attributes']&&_0x2f245b['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2f245b['originalSuggestionId']||null,this['_model']=_0x255933,this['_onAccept']=_0x2f245b['onAccept'],this['_onDiscard']=_0x2f245b['onDiscard'],this['_onAttributesChange']=_0x2f245b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2f245b['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 _0x54b32c=this;for(;_0x54b32c['previous'];)_0x54b32c=_0x54b32c['previous'];return _0x54b32c;}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'](_0x24368e){this['_markerNames']['add'](_0x24368e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x59f7b3=>this['_model']['markers']['get'](_0x59f7b3))['filter'](_0x43f83d=>_0x43f83d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x21edd7=>{for(const _0x5cc77c of this['getMarkers']())_0x21edd7['removeMarker'](_0x5cc77c);}),this['_markerNames']['clear']();}['removeMarker'](_0x40845c){this['_model']['change'](_0x7ef3b0=>{_0x7ef3b0['removeMarker'](_0x40845c);}),this['_markerNames']['delete'](_0x40845c);}['addRange'](_0x556e63){const _0x1f9c88='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x1f9c88),this['_model']['change'](_0x1d5de8=>{_0x1d5de8['addMarker'](_0x1f9c88,{'range':_0x556e63,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x52db8f){for(const _0x508bf0 of this['getRanges']())if(_0x508bf0['isIntersecting'](_0x52db8f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xbe583a=>_0xbe583a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3254b1,_0x174912)=>[..._0x3254b1,..._0x174912['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x497eb4=this['getRanges']();if(0x1!=_0x497eb4['length'])return null;const _0x5b05e8=_0x497eb4[0x0],_0x4d4858=_0x5b05e8['start']['nodeAfter'],_0x100174=_0x5b05e8['end']['nodeBefore'];return _0x4d4858 instanceof _0x4c11ec?_0x4d4858!=_0x100174?null:_0x4d4858: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 _0x3ca0b8=[];let _0x56156f=this['head'];for(;_0x56156f;)_0x3ca0b8['push'](_0x56156f),_0x56156f=_0x56156f['next'];return _0x3ca0b8;}['setAttribute'](_0xeb83bf,_0x2da4b3){const _0x5e0c69=_0x46a575(this['attributes']);_0x57c3a8(_0x5e0c69,_0xeb83bf,_0x2da4b3),_0x4f9f48(_0x5e0c69,this['attributes'])||(this['attributes']=_0x5e0c69,this['_onAttributesChange'](_0x5e0c69));}['removeAttribute'](_0x3fa116){const _0x463c90=_0x46a575(this['attributes']);_0x26704d(_0x463c90,_0x3fa116),_0x4f9f48(_0x463c90,this['attributes'])||(this['attributes']=_0x463c90,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 _0x531b89()['substr'](0x1,0x5);}}function o(_0x542fba,_0x4a304a,_0x396b13){const _0x1c351c=_0x542fba['t'],t=_0x542fba['t'];switch(_0x4a304a){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',_0x396b13);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x396b13);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x396b13);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x396b13);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x396b13);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',_0x396b13);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x396b13);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',_0x396b13);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x396b13);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x396b13);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x396b13);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x396b13);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x396b13);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x396b13);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x396b13);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x396b13);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x396b13);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x396b13);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x396b13);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x396b13);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x396b13);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x396b13);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x396b13);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x396b13);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x396b13);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'},_0x396b13);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x396b13);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x396b13);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x396b13);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x396b13);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x396b13);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x396b13);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x396b13);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'},_0x396b13);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x396b13);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x396b13);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x396b13);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x396b13);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'},_0x396b13);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x396b13);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'},_0x396b13);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'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x396b13);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x396b13);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'},_0x396b13);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x396b13);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'},_0x396b13);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x396b13);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x396b13);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x396b13);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x396b13);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x396b13);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'},_0x396b13);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x396b13);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 _0x1c351c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x396b13);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1c351c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x396b13);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x396b13);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'},_0x396b13);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'},_0x396b13);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'},_0x396b13);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4a304a;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4ce4a3,_0x147bc5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4ce4a3,this['_locale']=_0x147bc5;}['getDescriptions'](_0x27fe3d){const _0x30d51d=[],_0x44b93c=new Set(),_0x2027cd=new Set();for(let _0x347a1f=0x0;_0x347a1f<_0x27fe3d['length'];_0x347a1f++){const _0x19642b=_0x27fe3d[_0x347a1f];if(!_0x19642b['isInContent'])continue;const _0x49f4d4=this['_handleCustomCallbackDescription'](_0x19642b);if(_0x49f4d4){if(null!=_0x19642b['subType']){if(_0x44b93c['has'](_0x19642b['subType']))continue;_0x44b93c['add'](_0x19642b['subType']);}_0x30d51d['push'](_0x49f4d4);}else{if('attribute'==_0x19642b['type']){const _0x35ac5a=_0x19642b['data']['key'];if(_0x2027cd['has'](_0x35ac5a))continue;_0x2027cd['add'](_0x19642b['data']['key']),_0x35ac5a==m?this['_handleRenameSuggestionDescription'](_0x30d51d,_0x19642b):this['_handleAttributeSuggestionDescription'](_0x30d51d,_0x19642b);continue;}'insertion'!=_0x19642b['type']&&'deletion'!=_0x19642b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x30d51d,_0x19642b,_0x27fe3d[_0x347a1f+0x1]);}}return this['_resolveDescriptionItems'](_0x30d51d);}['registerDescriptionCallback'](_0x196b0a){this['_customCallbacks']['push'](_0x196b0a);}['registerElementLabel'](_0x5454ad,_0x129b19,_0x8b9283=_0x296698['normal']){'function'==typeof _0x5454ad?_0x4cc218(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5454ad,'label':_0x129b19,'priority':_0x8b9283}):this['_itemLabels']['set'](_0x5454ad,_0x129b19);}['registerAttributeLabel'](_0x3ea810,_0x4b45fb){this['_attributeLabels']['set'](_0x3ea810,_0x4b45fb);}['getItemLabel'](_0x1f65b6,_0x16c9e1=0x1){let _0x12d909;for(const _0x3e1d26 of this['_itemLabelsCallbacks'])if(_0x3e1d26['matchingCallback'](_0x1f65b6)){_0x12d909=_0x3e1d26['label'];break;}return _0x12d909||(_0x12d909=this['_itemLabels']['get'](_0x1f65b6['name'])),_0x12d909?_0x12d909(_0x16c9e1):0x1!==_0x16c9e1?_0x16c9e1+'\x20'+_0x1f65b6['name']+'s':''+_0x1f65b6['name'];}['_addDescriptionItems'](_0x31d5ea,_0x227fef){const _0x3ade80=_0x227fef['getFirstRange']()['getWalker'](),_0x2327fa='insertion'==_0x227fef['type']?'add':'remove';for(const _0x11510a of _0x3ade80){const _0x1b34c6=_0x11510a['item'],_0x189ffd=_0x31d5ea[_0x31d5ea['length']-0x1];if(_0x1b34c6['is']('$textProxy'))_0x189ffd&&_0x189ffd['type']['indexOf']('Container')>-0x1&&_0x31d5ea['pop'](),_0x189ffd&&'text'==_0x189ffd['type']?_0x189ffd[_0x2327fa]+=_0x1b34c6['data']:_0x31d5ea['push']({'type':'text','add':'add'==_0x2327fa?_0x1b34c6['data']:'','remove':'remove'==_0x2327fa?_0x1b34c6['data']:''});else{if(this['_schema']['isObject'](_0x1b34c6)){const _0x403dee=_0x1b34c6;if(_0x189ffd&&_0x189ffd['type']['indexOf']('Container')>-0x1&&_0x31d5ea['pop'](),'elementEnd'==_0x11510a['type'])continue;_0x189ffd&&_0x189ffd['type']==_0x2327fa+'Object'&&_0x189ffd['element']['name']==_0x403dee['name']?_0x189ffd['quantity']++:_0x31d5ea['push']({'type':_0x2327fa+'Object','element':_0x403dee,'quantity':0x1}),_0x3ade80['skip'](_0x43160d=>!('elementEnd'==_0x43160d['type']&&_0x43160d['item']==_0x1b34c6));}else{if(this['_schema']['checkChild'](_0x1b34c6,'$text')||_0x1b34c6['is']('element','softBreak')){const _0x2942c6=_0x1b34c6;if('add'==_0x2327fa&&'elementStart'==_0x11510a['type']||'remove'==_0x2327fa&&'elementEnd'==_0x11510a['type'])continue;if(_0x189ffd&&-0x1==_0x189ffd['type']['indexOf']('Container')){'text'==_0x189ffd['type']&&(_0x189ffd[_0x2327fa]+='\x0a');continue;}let _0x2b1123;if(_0x2b1123='add'==_0x2327fa?_0x2942c6['nextSibling']&&!this['_schema']['isObject'](_0x2942c6['nextSibling'])?_0x2942c6['nextSibling']:null:_0x2942c6['previousSibling']&&!this['_schema']['isObject'](_0x2942c6['previousSibling'])?_0x2942c6['previousSibling']:null,_0x2942c6['isEmpty']||_0x2b1123&&_0x2b1123['isEmpty']){const _0xf5e4fc=_0x2b1123&&_0x2b1123['isEmpty']?_0x2b1123:_0x2942c6;_0x189ffd&&_0x189ffd['type']==_0x2327fa+'EmptyContainer'&&_0x189ffd['element']['name']==_0xf5e4fc['name']?_0x189ffd['quantity']++:_0x31d5ea['push']({'type':_0x2327fa+'EmptyContainer','element':_0xf5e4fc,'quantity':0x1});}else _0x31d5ea['push']({'type':_0x2327fa+'Container','element':_0x2942c6});}}}}}['_resolveDescriptionItems'](_0x2d50d7){const _0x380486=this['_locale'],_0x2df8b2=[],_0x126518=[],_0x288621=[];for(const _0x4bedac of _0x2d50d7)switch(_0x4bedac['type']){case'text':if(_0x4bedac['add']=_0x4bedac['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4bedac['remove']=_0x4bedac['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4bedac['add']&&''!=_0x4bedac['remove']){_0x2df8b2['push']({'type':'replace','content':o(_0x380486,'REPLACE_TEXT',['\x22'+_0x4bedac['remove']+'\x22','\x22'+_0x4bedac['add']+'\x22'])});continue;}if(null!=_0x4bedac['add']['match'](/^ +$/)){_0x2df8b2['push']({'type':'insertion','content':o(_0x380486,'*Insert:*\x20%0',o(_0x380486,'ELEMENT_SPACE',_0x4bedac['add']['length']))});continue;}if(null!=_0x4bedac['remove']['match'](/^ +$/)){_0x2df8b2['push']({'type':'deletion','content':o(_0x380486,'*Remove:*\x20%0',o(_0x380486,'ELEMENT_SPACE',_0x4bedac['remove']['length']))});continue;}if(''!=_0x4bedac['add']){_0x2df8b2['push']({'type':'insertion','content':o(_0x380486,'*Insert:*\x20%0','\x22'+_0x4bedac['add']+'\x22')});continue;}_0x2df8b2['push']({'type':'deletion','content':o(_0x380486,'*Remove:*\x20%0','\x22'+_0x4bedac['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2df8b2['push']({'type':'insertion','content':o(_0x380486,'*Insert:*\x20%0',this['getItemLabel'](_0x4bedac['element'],_0x4bedac['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2df8b2['push']({'type':'deletion','content':o(_0x380486,'*Remove:*\x20%0',this['getItemLabel'](_0x4bedac['element'],_0x4bedac['quantity']))});continue;case'addContainer':_0x2df8b2['push']({'type':'insertion','content':o(_0x380486,'*Split:*\x20%0',this['getItemLabel'](_0x4bedac['element'],_0x4bedac['quantity']))});continue;case'removeContainer':_0x2df8b2['push']({'type':'deletion','content':o(_0x380486,'*Merge:*\x20%0',this['getItemLabel'](_0x4bedac['element'],_0x4bedac['quantity']))});continue;case'addFormat':_0x126518['push'](_0x4bedac['key']);continue;case'removeFormat':_0x288621['push'](_0x4bedac['key']);continue;default:_0x2df8b2['push'](_0x4bedac);}if(_0x126518['length']){const _0x10bb97=_0x126518['map'](_0x150c83=>this['_attributeLabels']['has'](_0x150c83)?this['_attributeLabels']['get'](_0x150c83):_0x150c83)['join'](',\x20');_0x2df8b2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x10bb97)});}if(_0x288621['length']){const _0x46b480=_0x288621['map'](_0x1c6af8=>this['_attributeLabels']['has'](_0x1c6af8)?this['_attributeLabels']['get'](_0x1c6af8):_0x1c6af8)['join'](',\x20');_0x2df8b2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x46b480)});}return _0x2df8b2;}['_handleCustomCallbackDescription'](_0x349dff){for(const _0x4005ba of this['_customCallbacks']){const _0x56e33e=_0x4005ba(_0x349dff);if(_0x56e33e&&'type'in _0x56e33e)return _0x56e33e;}}['_handleAttributeSuggestionDescription'](_0xc1c72b,_0xf4da65){const _0x25b9bd=_0xf4da65['data'],_0x2dd0ac=void 0x0===_0x25b9bd['newValue']?'removeFormat':'addFormat';_0xc1c72b['push']({'type':_0x2dd0ac,'key':_0x25b9bd['key']});}['_handleRenameSuggestionDescription'](_0x56e654,_0x357b4b){_0x56e654['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x357b4b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x123b23,_0x207b7c,_0x4caa51){if(this['_addDescriptionItems'](_0x123b23,_0x207b7c),_0x4caa51&&_0x4caa51['getFirstRange']()&&!_0x207b7c['getFirstRange']()['end']['isEqual'](_0x4caa51['getFirstRange']()['start'])){const _0x28f80e=_0x123b23[_0x123b23['length']-0x1],_0x116248='insertion'==_0x207b7c['type']?'add':'remove';_0x28f80e&&'text'==_0x28f80e['type']&&(_0x28f80e[_0x116248]+='\x0a');}}}class R extends _0x3274cb{['afterInit'](){const _0x2f4590=this['editor'],_0x2d2bde=_0x2f4590['plugins']['get']('TrackChangesEditing');_0x2f4590['commands']['get']('showAIAssistant')&&_0x2d2bde['enableCommand']('showAIAssistant');}}class T extends _0x3274cb{['afterInit'](){const _0x3b7cd8=this['editor'],_0x3b2e55=_0x3b7cd8['plugins']['get']('TrackChangesEditing');_0x3b7cd8['commands']['get']('toggleAi')&&_0x3b2e55['enableCommand']('toggleAi');}}class E extends _0x3274cb{['afterInit'](){const _0x44dcb5=this['editor'],_0x42fc7e=_0x44dcb5['plugins']['get']('TrackChangesEditing');_0x44dcb5['commands']['get']('aiQuickAction')&&_0x42fc7e['enableCommand']('aiQuickAction');}}class U extends _0x3274cb{['afterInit'](){const _0x42c78c=this['editor'],_0x4a04f4=_0x42c78c['locale'];if(!_0x42c78c['plugins']['has']('AlignmentEditing'))return;const _0x23dd22=_0x42c78c['plugins']['get']('TrackChangesEditing');_0x23dd22['enableDefaultAttributesIntegration']('alignment'),_0x23dd22['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4a04f4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dc49e=this['editor'],_0x12e0f0=_0x2dc49e['locale'];_0x2dc49e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18e267=>{if('formatBlock'!=_0x18e267['type'])return;const {data:_0x15be8f}=_0x18e267;if(_0x15be8f&&'alignment'==_0x15be8f['commandName']){const _0x22f507=_0x15be8f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x12e0f0,'*Format:*\x20%0',function(_0x26ffa5){switch(_0x26ffa5){case'left':return o(_0x12e0f0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x12e0f0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x12e0f0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x12e0f0,'FORMAT_JUSTIFY_TEXT');}}(_0x22f507))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x3274cb{['afterInit'](){const _0x5a4efd=this['editor'],_0x14a215=_0x5a4efd['plugins']['get']('TrackChangesEditing'),_0x124d45=_0x5a4efd['locale'];for(const _0x18755a of ti){if(!_0x5a4efd['plugins']['has'](_0x18755a))continue;const _0x431b49=_0x18755a['slice'](0x0,-0x7)['toLowerCase'](),_0x2f4230='FORMAT_'+_0x431b49['toUpperCase']();_0x14a215['enableDefaultAttributesIntegration'](_0x431b49),_0x14a215['descriptionFactory']['registerAttributeLabel'](_0x431b49,o(_0x124d45,_0x2f4230));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd7464d=this['editor'],_0x119079=_0xd7464d['locale'],_0x3e02ec=_0xd7464d['plugins']['get']('TrackChangesEditing');function _0x26af2a(_0x1a0ce7,_0x454c91){_0x3e02ec['descriptionFactory']['registerDescriptionCallback'](_0x40a83d=>{if('formatInline'!=_0x40a83d['type'])return;const {data:_0x475702}=_0x40a83d;return _0x475702&&_0x475702['commandName']===_0x1a0ce7?_0x475702['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x119079,'*Format:*\x20%0',_0x454c91)}:{'type':'format','content':o(_0x119079,'*Remove\x20format:*\x20%0',_0x454c91)}:void 0x0;});}_0x26af2a('bold',o(_0x119079,'FORMAT_BOLD')),_0x26af2a('italic',o(_0x119079,'FORMAT_ITALIC')),_0x26af2a('underline',o(_0x119079,'FORMAT_UNDERLINE')),_0x26af2a('code',o(_0x119079,'FORMAT_CODE')),_0x26af2a('strikethrough',o(_0x119079,'FORMAT_STRIKETHROUGH')),_0x26af2a('subscript',o(_0x119079,'FORMAT_SUBSCRIPT')),_0x26af2a('superscript',o(_0x119079,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3274cb{['afterInit'](){const _0xa69424=this['editor'],_0xecd996=_0xa69424['locale'];if(!_0xa69424['plugins']['has']('BlockQuoteEditing'))return;const _0x1edecd=_0xa69424['plugins']['get']('TrackChangesEditing'),_0x52e319=this['editor']['commands']['get']('blockQuote');_0x1edecd['enableCommand']('blockQuote',(_0x327095,_0x576537={})=>{const _0x2e0c5b=this['editor']['model']['document']['selection'],_0x1c4ebf=_0x576537&&void 0x0!==_0x576537['forceValue']?_0x576537['forceValue']:!_0x52e319['value'];let _0x3589e9=[];if(_0x1c4ebf){const _0xe2bfb9=Array['from'](_0x2e0c5b['getSelectedBlocks']())['filter'](_0x39b4f2=>oo(_0x39b4f2)||function(_0x5c87e2,_0xff8fd8){const _0x4fcf2b=_0xff8fd8['checkChild'](_0x5c87e2['parent'],'blockQuote'),_0x33903a=_0xff8fd8['checkChild'](['$root','blockQuote'],_0x5c87e2);return _0x4fcf2b&&_0x33903a;}(_0x39b4f2,this['editor']['model']['schema']));_0x3589e9=to(_0xe2bfb9,_0xa69424['model']);}else{const _0x5d65d6=Array['from'](_0x2e0c5b['getSelectedBlocks']())['filter'](_0x2f4370=>oo(_0x2f4370));_0x3589e9=to(_0x5d65d6,_0xa69424['model']);}_0xa69424['model']['change'](()=>{for(const _0x2c8a8e of _0x3589e9)_0x1edecd['markBlockFormat'](_0x2c8a8e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1c4ebf}]});});}),_0x1edecd['descriptionFactory']['registerDescriptionCallback'](_0x2f25d1=>{const {data:_0x11a70b}=_0x2f25d1;if(_0x11a70b&&'blockQuote'==_0x11a70b['commandName']){const _0x2f9dad=o(_0xecd996,'ELEMENT_BLOCK_QUOTE');return _0x11a70b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xecd996,'*Set\x20format:*\x20%0',_0x2f9dad)}:{'type':'format','content':o(_0xecd996,'*Remove\x20format:*\x20%0',_0x2f9dad)};}});}}function oo(_0x5dc96a){return'blockQuote'==_0x5dc96a['parent']['name'];}class G extends _0x3274cb{['afterInit'](){const _0x198f9e=this['editor'],_0x1453d6=_0x198f9e['locale'],_0x29d986=_0x198f9e['plugins']['get']('TrackChangesEditing');_0x198f9e['plugins']['has']('BookmarkEditing')&&(_0x29d986['enableCommand']('insertBookmark'),_0x29d986['enableDefaultAttributesIntegration']('updateBookmark'),_0x29d986['descriptionFactory']['registerDescriptionCallback'](_0x4ee218=>{if('insertion'!=_0x4ee218['type']&&'deletion'!=_0x4ee218['type']&&'attribute'!=_0x4ee218['type'])return;const _0x17ab48=_0x4ee218['getContainedElement']();if(null==_0x17ab48)return;if(!_0x17ab48['is']('element','bookmark'))return;const _0x9479=_0x17ab48['getAttribute']('bookmarkId');if('insertion'==_0x4ee218['type'])return{'type':'insertion','content':o(_0x1453d6,'*Insert:*\x20%0','\x22'+_0x9479+'\x22\x20'+o(_0x1453d6,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4ee218['type'])return{'type':'deletion','content':o(_0x1453d6,'*Remove:*\x20%0','\x22'+_0x9479+'\x22\x20'+o(_0x1453d6,'ELEMENT_BOOKMARK'))};const {data:_0x38b45a}=_0x4ee218;if(!_0x38b45a||'bookmarkId'!=_0x38b45a['key'])return;return{'type':'format','content':o(_0x1453d6,'*Set\x20bookmark:*\x20%0','\x22'+_0x38b45a['newValue']+'\x22')};}));}}class L extends _0x3274cb{['afterInit'](){const _0x58a7ee=this['editor'];_0x58a7ee['plugins']['has']('CaseChange')&&(_0x58a7ee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x58a7ee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x58a7ee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x3274cb{['afterInit'](){const _0xd8fe40=this['editor'];_0xd8fe40['commands']['get']('ckbox')&&_0xd8fe40['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x3274cb{['afterInit'](){const _0x50cf5d=this['editor'];if(!_0x50cf5d['plugins']['has']('CodeBlock'))return;const _0x31683b=_0x50cf5d['plugins']['get']('TrackChangesEditing'),_0x3713ee=_0x50cf5d['locale'],_0x4afd54=_0x50cf5d['config']['get']('codeBlock')['languages'],_0x289022=_0x50cf5d['commands']['get']('codeBlock');_0x31683b['enableCommand']('indentCodeBlock'),_0x31683b['enableCommand']('outdentCodeBlock'),_0x31683b['enableCommand']('codeBlock',(_0x44c5a5,_0x4a8ffa={})=>{const _0x43d789=_0x50cf5d['model'],_0x22e3fe=_0x50cf5d['model']['document']['selection'],_0x268de2=_0x4a8ffa&&void 0x0!==_0x4a8ffa['forceValue']?_0x4a8ffa['forceValue']:!_0x289022['value'];let _0x15aeb1;_0x4a8ffa['language']||(_0x4a8ffa['language']=_0x4afd54[0x0]['language']),_0x15aeb1=_0x268de2?Array['from'](_0x22e3fe['getSelectedBlocks']())['filter'](_0x4db3a9=>co(_0x4db3a9)||function(_0x59aaf1,_0x5cd10c){if(_0x59aaf1['is']('rootElement')||_0x5cd10c['isLimit'](_0x59aaf1))return!0x1;return _0x5cd10c['checkChild'](_0x59aaf1['parent'],'codeBlock');}(_0x4db3a9,_0x43d789['schema'])):Array['from'](_0x22e3fe['getSelectedBlocks']())['filter'](_0x597cdc=>co(_0x597cdc));const _0x4bbe43=to(_0x15aeb1,_0x43d789);_0x43d789['change'](()=>{for(const _0xbc8ea1 of _0x4bbe43)_0x31683b['markBlockFormat'](_0xbc8ea1,{'commandName':'codeBlock','commandParams':[{..._0x4a8ffa,'forceValue':_0x268de2}],'formatGroupId':'blockName'});});}),(_0x31683b['descriptionFactory']['registerElementLabel']('codeBlock',_0x2ef7ef=>o(_0x3713ee,'ELEMENT_CODE_BLOCK',_0x2ef7ef)),_0x31683b['descriptionFactory']['registerDescriptionCallback'](_0x5ddc63=>{if('formatBlock'!=_0x5ddc63['type'])return;const _0x5df104=_0x3713ee['t'],{data:_0x2c6c5a}=_0x5ddc63;if(!_0x2c6c5a||'codeBlock'!=_0x2c6c5a['commandName'])return;const _0x51dc42=_0x2c6c5a['commandParams'][0x0]['language'],_0x5638d3=_0x5df104(_0x4afd54['find'](_0x318c85=>_0x318c85['language']===_0x51dc42)['label'])['toLowerCase']();return _0x2c6c5a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3713ee,'*Set\x20format:*\x20%0',o(_0x3713ee,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5638d3+')')}:{'type':'format','content':o(_0x3713ee,'*Remove\x20format:*\x20%0',o(_0x3713ee,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x256dd6){return'codeBlock'==_0x256dd6['name'];}class z extends _0x3274cb{['afterInit'](){const _0x22f614=this['editor'];if(!_0x22f614['plugins']['has']('CommentsEditing'))return;_0x22f614['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x3274cb{static get['requires'](){return[_0x31903c];}['init'](){const _0x107303=this['editor'],_0x1c7cb0=_0x107303['plugins']['get']('TrackChangesEditing');_0x1c7cb0['enableCommand']('delete');const _0x1fbe9d=_0x107303['commands']['get']('deleteForward');_0x1c7cb0['enableCommand']('deleteForward',(_0x10d6a8,_0x2aee59={})=>{const _0x56361d=_0x107303['model']['createSelection'](_0x107303['model']['document']['selection']);_0x56361d['isCollapsed']&&_0x107303['model']['modifySelection'](_0x56361d,{'direction':'forward','unit':_0x2aee59['unit']});const _0x211a47=_0x56361d['getFirstRange'](),_0x2104d5=_0x393f46['fromRange'](_0x211a47);let _0x4d98eb;_0x10d6a8(_0x2aee59),_0x4d98eb='$graveyard'==_0x2104d5['root']['rootName']?_0x107303['model']['createRange'](_0x211a47['start']):_0x107303['model']['createRange'](_0x2104d5['start'],_0x2104d5['end']),_0x2104d5['detach'](),_0x107303['model']['enqueueChange'](_0x1fbe9d['buffer']['batch'],_0x2dfba3=>{_0x1fbe9d['buffer']['lock'](),_0x2dfba3['setSelection'](_0x2dfba3['createRange'](_0x4d98eb['end'])),_0x1fbe9d['buffer']['unlock']();});});}}class W extends _0x3274cb{['afterInit'](){const _0x42257b=this['editor'];if(!_0x42257b['plugins']['has']('ListEditing'))return;const _0x2ee974=_0x42257b['locale'],_0x11bc63=_0x42257b['plugins']['get']('TrackChangesEditing'),_0x4162c0=_0x42257b['plugins']['has']('TodoListEditing'),_0x49600c=!!_0x42257b['config']['get']('list.multiBlock');function _0x5f285a(_0x5ea2f9){return{'type':'format','content':''+o(_0x2ee974,'*Set\x20format:*\x20%0',_0x5ea2f9)};}function _0x388e29(_0xd15188){return{'type':'format','content':''+o(_0x2ee974,'*Remove\x20format:*\x20%0',_0xd15188)};}_0x11bc63['enableDefaultAttributesIntegration']('numberedList'),_0x11bc63['enableDefaultAttributesIntegration']('bulletedList'),_0x11bc63['enableDefaultAttributesIntegration']('customNumberedList'),_0x11bc63['enableDefaultAttributesIntegration']('customBulletedList'),_0x11bc63['enableDefaultAttributesIntegration']('indentList'),_0x11bc63['enableDefaultAttributesIntegration']('outdentList'),_0x11bc63['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x11bc63['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x49600c&&(_0x11bc63['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x11bc63['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4162c0&&(_0x11bc63['enableDefaultAttributesIntegration']('todoList'),_0x11bc63['enableDefaultAttributesIntegration']('checkTodoList'),_0x11bc63['descriptionFactory']['registerDescriptionCallback'](_0x25d81c=>{const {data:_0x3341a7}=_0x25d81c;if(_0x3341a7&&'todoListChecked'==_0x3341a7['key'])return{'type':'format','content':_0x3341a7['newValue']?o(_0x2ee974,'*Check\x20item*'):o(_0x2ee974,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5d3d07=>{if(_0x5d3d07['batch']['isUndo'])return!0x1;let _0x3dc714=!0x1;const _0xcf38e4=_0x11bc63['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36e92b=>'todoListChecked'===_0x11bc63['_getAttributeKey'](_0x36e92b));for(const _0x4bdd50 of _0xcf38e4){'todo'!=_0x4bdd50['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x11bc63['_findSuggestions'](_0x4bdd50['getFirstRange'](),'attribute')['find'](_0x421ccc=>'listType'===_0x11bc63['_getAttributeKey'](_0x421ccc['suggestion']))||(_0x5d3d07['removeMarker'](_0x4bdd50['getFirstMarker']()),_0x3dc714=!0x0));}return _0x3dc714;})),_0x11bc63['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2ee974,'FORMAT_INDENT'));const _0x35521d={'type':'format','content':''};_0x11bc63['descriptionFactory']['registerDescriptionCallback'](_0x4958d5=>{const {data:_0x411937}=_0x4958d5;if(!_0x411937||'listType'!=_0x411937['key'])return;let _0x32b354=_0x4958d5['head'];for(;_0x32b354;){if(_0x32b354['data']&&(('listStyle'==_0x32b354['data']['key']||'listMarkerStyle'==_0x32b354['data']['key'])&&(_0x32b354['data']['newValue']&&'default'!=_0x32b354['data']['newValue']||'default'!=_0x32b354['data']['oldValue']&&!_0x411937['newValue'])||!_0x49600c&&_0x32b354['data']['key']==m))return _0x35521d;_0x32b354=_0x32b354['next'];}if(null==_0x411937['newValue'])switch(_0x411937['oldValue']){case'bulleted':return _0x388e29(o(_0x2ee974,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x388e29(o(_0x2ee974,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x388e29(o(_0x2ee974,'ELEMENT_TODO_LIST'));}switch(_0x411937['newValue']){case'bulleted':return _0x5f285a(o(_0x2ee974,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f285a(o(_0x2ee974,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f285a(o(_0x2ee974,'ELEMENT_TODO_LIST'));}}),_0x11bc63['descriptionFactory']['registerDescriptionCallback'](_0x4217dd=>{const {data:_0x5c3c9f}=_0x4217dd;if(_0x5c3c9f&&'listIndent'==_0x5c3c9f['key'])return null==_0x5c3c9f['newValue']||null==_0x5c3c9f['oldValue']&&0x0==_0x5c3c9f['newValue']?_0x35521d:void 0x0;}),_0x11bc63['descriptionFactory']['registerDescriptionCallback'](_0x5220c0=>{if('attribute'!=_0x5220c0['type'])return;const {data:_0x35174b}=_0x5220c0;if(!_0x35174b||'listItemId'!=_0x35174b['key'])return;const _0x2422ed=Te(_0x5220c0);return'newValue'==_0x2422ed?{'type':'format','content':o(_0x2ee974,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2422ed?{'type':'format','content':o(_0x2ee974,'*Split:*\x20list\x20item')}:_0x35521d;}),_0x42257b['model']['document']['registerPostFixer'](_0x37abee=>this['listItemIdFixer'](_0x37abee)),_0x42257b['model']['document']['registerPostFixer'](_0x31fff0=>this['noTrackChangesFixer'](_0x31fff0)),_0x42257b['model']['document']['on']('change:data',(_0x4173da,_0x46e256)=>{if(_0x46e256['isUndo']||!_0x46e256['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1120ef){if(_0x1120ef['batch']['isUndo']||!_0x1120ef['batch']['isLocal'])return!0x1;let _0x25c230=!0x1;const _0x9a52ca=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24add9=>_0x24add9['data']&&'listItemId'==_0x24add9['data']['key'])['filter'](_0x48c07c=>_0x48c07c['data']['newValue']&&_0x48c07c['data']['oldValue']);for(const _0x1b1766 of _0x9a52ca)Te(_0x1b1766)||(_0x1120ef['removeMarker'](_0x1b1766['getFirstMarker']()),_0x25c230=!0x0);return _0x25c230;}['noTrackChangesFixer'](_0x296b77){if(_0x296b77['batch']['isUndo']||!_0x296b77['batch']['isLocal'])return!0x1;const _0x4419b6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4419b6['trackChangesCommand']['value'])return!0x1;let _0x44ee33=!0x1;const _0xb5018a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x694aa1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x345426=>'attribute'==_0x345426['type'])['filter'](_0x231d76=>_0xb5018a['includes'](_0x231d76['attributeKey']));if(0x0==_0x694aa1['length'])return _0x44ee33;for(const _0x3dc56f of _0x694aa1){const _0x1b13e3=_0x4419b6['_findSuggestions'](_0x3dc56f['range'],'attribute')['filter'](_0x4c8b26=>!_0x4c8b26['meta']['isNextTo'])['map'](_0x1f8e15=>_0x1f8e15['suggestion'])['filter'](_0x5eac8a=>{const _0x2171cf=_0x4419b6['_getAttributeKey'](_0x5eac8a);return _0xb5018a['includes'](_0x2171cf);});if(_0x1b13e3['length']){for(const _0x572b0d of _0x1b13e3)_0x296b77['removeMarker'](_0x572b0d['getFirstMarker']());_0x44ee33=!0x0;}}return _0x44ee33;}['assureChains'](){const _0xb9b32c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ff44c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4e70ea;const _0x3dd355=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3b942d=>{if(_0x3b942d['data']['oldRange']||!_0x3b942d['data']['newRange'])return null;if(!_0x3b942d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x93b5ee}=_0xb9b32c['_splitMarkerName'](_0x3b942d['name']);if(!_0xb9b32c['hasSuggestion'](_0x93b5ee))return null;const _0x3369fc=_0xb9b32c['getSuggestion'](_0x93b5ee);return _0x1ff44c['includes'](_0x3369fc['data']['key']);})['map'](_0x3513e4=>{const {id:_0x85a9fe}=_0xb9b32c['_splitMarkerName'](_0x3513e4['name']),_0x4cd801=_0xb9b32c['getSuggestion'](_0x85a9fe);return _0x4e70ea=_0x4cd801['attributes']['groupId'],_0x4cd801['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3dd355['size'])return;const _0x508d0c=_0xb9b32c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x98a224=>'attribute'==_0x98a224['type']&&_0x98a224['data']&&_0x1ff44c['includes'](_0x98a224['data']['key'])&&_0x98a224['attributes']['groupId']!=_0x4e70ea)['map'](_0x4ffec0=>({'listItem':_0x4ffec0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4ffec0['attributes']['groupId']})),_0xe71ae0=new Set();for(const {groupId:_0x4b54d6,listItem:_0x390250}of _0x508d0c)_0x3dd355['has'](_0x390250)&&_0xe71ae0['add'](_0x4b54d6);for(const _0x255019 of _0xb9b32c['getSuggestions']())_0xe71ae0['has'](_0x255019['attributes']['groupId'])&&_0x255019['setAttribute']('groupId',_0x4e70ea);}['_supportLegacySuggestions'](){const _0x4398ba=this['editor'],_0x1abf0f=_0x4398ba['locale'],_0x519633=_0x4398ba['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x519633['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x155adb,_0x1322e6){const _0x129689=[];for(let _0x31beeb of _0x155adb)_0x31beeb['start']['nodeAfter']===_0x31beeb['end']['parent']&&(_0x31beeb=_0x4398ba['model']['createRange'](_0x4398ba['model']['createPositionAt'](_0x31beeb['start']['nodeAfter'],0x0))),_0x129689['push'](_0x31beeb);_0x4398ba['model']['change'](_0x5220b2=>{const _0x56d9a4=_0x4398ba['model']['document']['selection'],_0x2784fc=Array['from'](_0x56d9a4['getRanges']())['map'](_0x4fc4e4=>_0x393f46['fromRange'](_0x4fc4e4));_0x5220b2['setSelection'](_0x129689),_0x4398ba['commands']['get'](_0x1322e6['commandName'])['refresh'](),_0x1322e6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4398ba['execute'](_0x1322e6['commandName'],..._0x1322e6['commandParams']),_0x5220b2['setSelection'](_0x2784fc);for(const _0x613c60 of _0x2784fc)_0x613c60['detach']();});}),_0x519633['descriptionFactory']['registerElementLabel'](function(_0x107f48){const _0x3d6af0=!_0x4398ba['model']['schema']['isObject'](_0x107f48),_0x1c6961=_0x107f48['previousSibling'],_0x5d0261=_0x107f48['nextSibling'],_0x5ed7ca=_0x107f48['getAttribute']('listItemId'),_0xb5b010=!_0x1c6961||_0x1c6961['getAttribute']('listItemId')!==_0x5ed7ca,_0x306a98=!_0x5d0261||_0x5d0261['getAttribute']('listItemId')!==_0x5ed7ca;return _0x3d6af0&&Boolean(_0x5ed7ca)&&_0xb5b010&&_0x306a98;},_0xd33b30=>o(_0x1abf0f,'ELEMENT_LIST_ITEM',_0xd33b30));}['_registerLegacyDescription'](){const _0x1ad65d=this['editor'],_0x4cdaf5=_0x1ad65d['locale'];function _0x335027(_0x321940){const _0x8498bf=_0x1ad65d['commands']['get']('bulletedList')['value'],_0xd74fd=_0x1ad65d['commands']['get']('numberedList')['value'];return'numberedList'===_0x321940?_0x8498bf:_0xd74fd;}_0x1ad65d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x40859b){if('formatBlock'!=_0x40859b['type'])return;const {data:_0xad78ab}=_0x40859b;if(!_0xad78ab)return;let _0x4453b4,_0xc55c89,_0x4bb405,_0x22e51d;switch(_0xad78ab['commandName']){case'bulletedList':_0x4bb405=_0xad78ab['commandParams'][0x0]['forceValue'],_0x22e51d=_0x335027(_0xad78ab['commandName']),_0x4453b4=_0x4bb405?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x22e51d&&_0x1ad65d['config']['get']('list.multiBlock')||(_0x4453b4='*Change\x20to:*\x20%0'),_0xc55c89={'type':'format','content':o(_0x4cdaf5,_0x4453b4,o(_0x4cdaf5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4bb405=_0xad78ab['commandParams'][0x0]['forceValue'],_0x22e51d=_0x335027(_0xad78ab['commandName']),_0x4453b4=_0x4bb405?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x22e51d&&_0x1ad65d['config']['get']('list.multiBlock')||(_0x4453b4='*Change\x20to:*\x20%0'),_0xc55c89={'type':'format','content':o(_0x4cdaf5,_0x4453b4,o(_0x4cdaf5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4453b4='*Indent:*\x20%0',_0xc55c89={'type':'format','content':o(_0x4cdaf5,_0x4453b4,o(_0x4cdaf5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4453b4=function(_0x59ed20){const _0x29f227=_0x59ed20['getFirstRange']();let _0x2021c0=_0x29f227['start']['nodeAfter'];for(;_0x2021c0&&_0x29f227['containsItem'](_0x2021c0);){if(_0x2021c0['getAttribute']('listIndent')>0x0)return!0x1;_0x2021c0=_0x2021c0['nextSibling'];}return!0x0;}(_0x40859b)?o(_0x4cdaf5,'*Format:*\x20remove\x20from\x20%0',o(_0x4cdaf5,function(_0x1e638f){return'ELEMENT_'+_0x1e638f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x40859b))):o(_0x4cdaf5,'*Outdent:*\x20%0',o(_0x4cdaf5,'ELEMENT_LIST_ITEM')),_0xc55c89={'type':'format','content':_0x4453b4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xad78ab['multipleBlocks']&&(_0x4453b4='*Merge:*\x20%0',_0xc55c89={'type':'deletion','content':o(_0x4cdaf5,_0x4453b4,o(_0x4cdaf5,'ELEMENT_LIST_ITEM'))});}return _0xc55c89;});}}function Te(_0x14eb39){let _0x476ae7=_0x14eb39['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x476ae7;){const _0x653a62=_0x476ae7['getAttribute']('listItemId');if(!_0x653a62)return!0x1;if(_0x653a62==_0x14eb39['data']['newValue'])return'newValue';if(_0x653a62==_0x14eb39['data']['oldValue'])return'oldValue';_0x476ae7=_0x476ae7['previousSibling'];}return!0x1;}class H extends _0x3274cb{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x350aa2=this['editor']['config']['get']('list.properties'),_0x162db7=this['editor']['plugins']['get']('TrackChangesEditing');_0x350aa2['styles']&&_0x162db7['enableDefaultAttributesIntegration']('listStyle'),_0x350aa2['reversed']&&_0x162db7['enableDefaultAttributesIntegration']('listReversed'),_0x350aa2['startIndex']&&_0x162db7['enableDefaultAttributesIntegration']('listStart');const _0xb9709a={'type':'format','content':''};_0x162db7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4e9a8b=this['editor']['locale'];_0x162db7['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4e9a8b,'FORMAT_LIST_REVERSED')),_0x162db7['descriptionFactory']['registerDescriptionCallback'](_0x395560=>{const {data:_0x439f20}=_0x395560;if(_0x439f20&&'listReversed'==_0x439f20['key'])return null==_0x439f20['newValue']||0x0==_0x439f20['newValue']&&null==_0x439f20['oldValue']?_0xb9709a:void 0x0;}),_0x162db7['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4e9a8b,'FORMAT_LIST_START')),_0x162db7['descriptionFactory']['registerDescriptionCallback'](_0xb0af9a=>{const {data:_0x3c79df}=_0xb0af9a;if(_0x3c79df&&'listStart'==_0x3c79df['key'])return null==_0x3c79df['newValue']||0x1==_0x3c79df['newValue']&&null==_0x3c79df['oldValue']?_0xb9709a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x6c6799=>{if(_0x6c6799['batch']['isUndo'])return!0x1;let _0x21cef7=!0x1;const _0x2a6b8e=_0x162db7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ecff5=>{const _0x57ee0f=_0x162db7['_getAttributeKey'](_0x5ecff5);return'listStart'==_0x57ee0f||'listReversed'==_0x57ee0f;});for(const _0x516357 of _0x2a6b8e){const _0x5bccff=_0x516357['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5bccff||'customNumbered'==_0x5bccff)continue;_0x162db7['_findSuggestions'](_0x516357['getFirstRange'](),'attribute')['find'](_0xe2bf5c=>'listType'==_0x162db7['_getAttributeKey'](_0xe2bf5c['suggestion']))||(_0x6c6799['removeMarker'](_0x516357['getFirstMarker']()),_0x21cef7=!0x0);}return _0x21cef7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1571db){const _0x4c13c0=this['editor']['locale'],{data:_0x31d677}=_0x1571db,_0x2ddb6a={'type':'format','content':''};if(!_0x31d677||'listStyle'!=_0x31d677['key'])return;if(!_0x31d677['oldValue'])return'default'==_0x31d677['newValue']?_0x2ddb6a:{'type':'format','content':''+o(_0x4c13c0,'*Set\x20format:*\x20%0',o(_0x4c13c0,this['_getTranslationKeyForListStyle'](_0x31d677['newValue'])))};if(!_0x31d677['newValue']){if('default'==_0x31d677['oldValue'])return _0x2ddb6a;let _0x2b18eb=_0x1571db['head'];for(;_0x2b18eb;){if(_0x2b18eb['data']&&'listType'==_0x2b18eb['data']['key']&&_0x2b18eb['data']['newValue'])return _0x2ddb6a;_0x2b18eb=_0x2b18eb['next'];}return{'type':'format','content':''+o(_0x4c13c0,'*Remove\x20format:*\x20%0',o(_0x4c13c0,this['_getTranslationKeyForListStyle'](_0x31d677['oldValue'])))};}if('default'!=_0x31d677['newValue'])return{'type':'format','content':''+o(_0x4c13c0,'*Set\x20format:*\x20%0',o(_0x4c13c0,this['_getTranslationKeyForListStyle'](_0x31d677['newValue'])))};let _0x4e7460=_0x1571db['head'];for(;_0x4e7460;){if(_0x4e7460['data']&&'listType'==_0x4e7460['data']['key']&&_0x4e7460['data']['newValue']&&_0x4e7460['data']['oldValue'])return _0x2ddb6a;_0x4e7460=_0x4e7460['next'];}return{'type':'format','content':o(_0x4c13c0,'*Set\x20format:*\x20%0',o(_0x4c13c0,'ELEMENT_'+_0x1571db['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x66c9=this['editor'],_0x2b84d5=_0x66c9['locale'];_0x66c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fbd3e=>{if('formatBlock'!=_0x4fbd3e['type'])return;const {data:_0x196c90}=_0x4fbd3e;if(!_0x196c90)return;let _0x1f0b1b,_0x2d0183;switch(_0x196c90['commandName']){case'listStyle':_0x1f0b1b='*Change\x20to:*\x20%0',_0x2d0183={'type':'format','content':o(_0x2b84d5,_0x1f0b1b,o(_0x2b84d5,this['_getTranslationKeyForListStyle'](_0x196c90['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1f0b1b=_0x196c90['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2d0183={'type':'format','content':o(_0x2b84d5,_0x1f0b1b)};break;case'listStart':_0x1f0b1b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2d0183={'type':'format','content':o(_0x2b84d5,_0x1f0b1b,_0x196c90['commandParams'][0x0]['startIndex'])};}return _0x2d0183;});}['_getTranslationKeyForListStyle'](_0x54846f){return'ELEMENT_'+function(_0x5585d8){if(ye['includes'](_0x5585d8))return'bulleted';if(Se['includes'](_0x5585d8))return'numbered';return null;}(_0x54846f)['toUpperCase']()+'_LIST_'+_0x54846f['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x3274cb{['afterInit'](){const _0x5ccec5=this['editor'];_0x5ccec5['commands']['get']('emoji')&&_0x5ccec5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x3274cb{static get['requires'](){return[_0x51080f];}['init'](){const _0x51a986=this['editor'],_0x57c183=_0x51a986['plugins']['get']('TrackChangesEditing'),_0x1ea346=_0x51a986['commands']['get']('enter');_0x57c183['enableCommand']('enter',()=>{_0x51a986['model']['change'](_0x2d8b6a=>{const _0x29cb2f=_0x51a986['model']['document']['selection'],_0x214543=_0x29cb2f['getFirstPosition'](),_0x15025b=_0x393f46['fromRange'](_0x29cb2f['getFirstRange']());if(_0x1ea346['enterBlock'](_0x2d8b6a)){const _0x3aa663=_0x51a986['model']['createPositionAt'](_0x214543['parent']['nextSibling'],0x0),_0x1f6514=_0x2d8b6a['createRange'](_0x214543,_0x3aa663);_0x57c183['markInsertion'](_0x1f6514);}else _0x2d8b6a['setSelection'](_0x2d8b6a['createRange'](_0x15025b['end']));_0x15025b['detach'](),_0x1ea346['fire']('afterExecute',{'writer':_0x2d8b6a});});});}}class Y extends _0x3274cb{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3f1319=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f1319['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3f1319['enableCommand']('findNext'),_0x3f1319['enableCommand']('findPrevious'),_0x3f1319['enableCommand']('replace'),_0x3f1319['enableCommand']('replaceAll');}['handleFindCommand'](_0x19faaf,_0x27940f,_0x4012d3={}){const _0x23a868=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x19faaf(_0x4666ca=>{let _0xfb330a=('string'==typeof _0x27940f?_0x23a868['findByTextCallback'](_0x27940f,_0x4012d3):_0x27940f)(_0x4666ca);Array['isArray'](_0xfb330a)&&(_0xfb330a={'results':_0xfb330a,'searchText':'string'==typeof _0x27940f?_0x27940f:''});const _0x3c7ebe=_0xfb330a['results']['filter'](_0x5ca77d=>!0x1===this['_isInDeletionRange'](_0x5ca77d,_0x4666ca['item']));return{..._0xfb330a,'results':_0x3c7ebe};},_0x4012d3);}['_isInDeletionRange'](_0x169819,_0x3d89a2){const _0x3a9dda=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d89a2,_0x169819['start']),this['editor']['model']['createPositionAt'](_0x3d89a2,_0x169819['end']));for(const _0x1e5956 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3a9dda['getIntersection'](_0x1e5956['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x3274cb{['afterInit'](){const _0x40e562=this['editor']['locale'],_0x3dfe09=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x55e55b,commandName:_0xe31b95}of eo)this['editor']['plugins']['has'](_0x55e55b)&&_0x3dfe09['enableDefaultAttributesIntegration'](_0xe31b95);_0x3dfe09['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x40e562,'FORMAT_FONT_SIZE')),_0x3dfe09['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x40e562,'FORMAT_FONT_FAMILY')),_0x3dfe09['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x40e562,'FORMAT_FONT_COLOR')),_0x3dfe09['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x40e562,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1393a1=this['editor'],_0x303fa1=_0x1393a1['locale'];_0x1393a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b91bb=>{const _0x47b318=_0x303fa1['t'];if('formatInline'!=_0x3b91bb['type'])return;const {data:_0x389d97}=_0x3b91bb;if(null!=_0x389d97){if('fontSize'==_0x389d97['commandName']){const _0x3594c5=_0x389d97['commandParams'][0x0]['value'];if(_0x3594c5){const _0x590113=_0x47b318(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2f8ccc=>_0x2f8ccc['model']==_0x3594c5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x303fa1,'*Set\x20font\x20size:*\x20%0',_0x590113)};}return{'type':'format','content':o(_0x303fa1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x389d97['commandName']){const _0x11c7cf=_0x389d97['commandParams'][0x0]['value'];return _0x11c7cf?{'type':'format','content':o(_0x303fa1,'*Set\x20font\x20family:*\x20%0',_0x11c7cf)}:{'type':'format','content':o(_0x303fa1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x389d97['commandName']){const _0x85b605=_0x389d97['commandParams'][0x0]['value'];if(_0x85b605){const _0x276b0d=_0x48e5c8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2748c9=>_0x2748c9['model']==_0x85b605);let _0x487f5d=_0x85b605,_0x1a2cb6='';return _0x276b0d&&(_0x487f5d=_0x276b0d['label'],_0x1a2cb6=_0x47b318(_0x487f5d)['toLowerCase']()),{'type':'format','content':o(_0x303fa1,'*Set\x20font\x20color:*\x20%0',_0x1a2cb6)['trim'](),'color':{'value':_0x85b605,'title':_0x1a2cb6||_0x487f5d}};}return{'type':'format','content':o(_0x303fa1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x389d97['commandName']){const _0x5c69da=_0x389d97['commandParams'][0x0]['value'];if(_0x5c69da){const _0x330305=_0x48e5c8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x48936e=>_0x48936e['model']==_0x5c69da);let _0x38bcaa=_0x5c69da,_0x2ea399='';return _0x330305&&(_0x38bcaa=_0x330305['label'],_0x2ea399=_0x47b318(_0x38bcaa)['toLowerCase']()),{'type':'format','content':o(_0x303fa1,'*Set\x20font\x20background\x20color:*\x20%0',_0x2ea399)['trim'](),'color':{'value':_0x5c69da,'title':_0x2ea399||_0x38bcaa}};}return{'type':'format','content':o(_0x303fa1,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x3274cb{['afterInit'](){const {plugins:_0x2e361d}=this['editor'];_0x2e361d['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2e361d['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x59d389,plugins:_0x32c3ac,commands:_0x218126}=this['editor'],_0xb27da8=_0x32c3ac['get']('TrackChangesEditing');_0x218126['get']('footnotesStyle')&&_0xb27da8['enableDefaultAttributesIntegration']('footnotesStyle'),_0x218126['get']('footnotesStart')&&_0xb27da8['enableDefaultAttributesIntegration']('footnotesStart'),_0xb27da8['registerBlockAttribute']('footnotesListStyle'),_0xb27da8['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x59d389,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xb27da8['registerBlockAttribute']('footnotesListStart'),_0xb27da8['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x59d389,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x54ebfe=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x37c865,commands:_0x2d6e0b}=this['editor'];_0x2d6e0b['get']('insertFootnote')&&_0x54ebfe['enableCommand']('insertFootnote'),_0x54ebfe['descriptionFactory']['registerElementLabel']('footnoteRef',_0x39fd57=>o(_0x37c865,'ELEMENT_FOOTNOTE_REF',_0x39fd57)),_0x54ebfe['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x5ee3b7=>o(_0x37c865,'ELEMENT_FOOTNOTE_DEFINITION',_0x5ee3b7)),_0x54ebfe['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1be923=>o(_0x37c865,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1be923));}}class nt extends _0x3274cb{['afterInit'](){const _0x6390d7=this['editor'],_0x39b51a=_0x6390d7['plugins']['get']('TrackChangesEditing'),_0x387ce6=_0x6390d7['commands']['get']('copyFormat'),_0x586300=_0x6390d7['commands']['get']('pasteFormat');_0x387ce6&&_0x586300&&(_0x39b51a['enableDefaultAttributesIntegration']('pasteFormat'),_0x39b51a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x17a160=this['editor'],_0xef4d9c=_0x17a160['locale'];_0x17a160['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fedd5=>{if('formatBlock'!=_0x2fedd5['type']&&'formatInline'!=_0x2fedd5['type'])return;const {data:_0x49c946}=_0x2fedd5;if(_0x49c946&&'pasteFormat'===_0x49c946['commandName']){const _0x44ab3c=[],_0x7c1312=_0x49c946['commandParams'][0x0];for(const [_0x3e570f,_0x3f45c2]of Object['entries'](_0x7c1312))_0x44ab3c['push'](ro(_0x17a160,_0x3e570f,_0x3f45c2));return _0x44ab3c['length']?{'type':'format','content':o(_0xef4d9c,'*Set\x20format\x20to:*\x20%0',_0x44ab3c['join'](',\x20'))}:{'type':'format','content':o(_0xef4d9c,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x15a98c,_0xe8d724,_0x36e564){const _0x308334=_0x15a98c['locale']['t'],_0x1a0ca9=_0xe8d724['split'](/(?=[A-Z])/)['join']('\x20'),_0x44e23a=_0x308334(_0x1a0ca9['charAt'](0x0)['toUpperCase']()+_0x1a0ca9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x36e564)return _0x44e23a;if('fontColor'===_0xe8d724||'fontBackgroundColor'===_0xe8d724){const _0x5b96e5=_0x48e5c8(_0x15a98c['config']['get']('fontColor.colors'))['find'](_0x75bc33=>_0x75bc33['model']==_0x36e564);return _0x44e23a+'\x20('+(_0x5b96e5?_0x308334(_0x5b96e5['label'])['toLowerCase']():_0x36e564)+')';}if('fontSize'===_0xe8d724&&isNaN(parseFloat(_0x36e564))){const _0x1cf5b1=_0x15a98c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x15a98c['config']['get']('fontSize.options'))['find'](_0x2c3e89=>_0x2c3e89['model']==_0x36e564);return _0x44e23a+'\x20('+(_0x1cf5b1?_0x308334(_0x1cf5b1['title'])['toLowerCase']():_0x36e564)+')';}return _0x44e23a+'\x20('+_0x36e564+')';}class it extends _0x3274cb{['_headingOptions'];['afterInit'](){const _0x4ea363=this['editor'];if(!_0x4ea363['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4ea363['config']['get']('heading.options');const _0x57ce06=_0x4ea363['locale'],_0x27556c=_0x4ea363['plugins']['get']('TrackChangesEditing');_0x27556c['enableDefaultAttributesIntegration']('heading');for(const _0x2423ef of this['_headingOptions'])'paragraph'!=_0x2423ef['model']&&_0x27556c['descriptionFactory']['registerElementLabel'](_0x2423ef['model'],_0x4d506d=>{const _0x2261ea=this['_getHeadingLevel'](_0x2423ef['model']);return null!==_0x2261ea?_0x4d7a4e(_0x4d506d,_0x2261ea):_0x2cd300(_0x4d506d,_0x2423ef['title']);});function _0x4d7a4e(_0x14d219,_0x29b35a){return o(_0x57ce06,'ELEMENT_HEADING',[_0x14d219,_0x29b35a]);}function _0x2cd300(_0x10501f,_0x21f9fb){return o(_0x57ce06,'ELEMENT_HEADING_CUSTOM',[_0x10501f,_0x21f9fb]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a0cd5=this['editor'],_0xba04e1=_0x2a0cd5['locale'];function _0x508b4c(_0x40fa93,_0x2c38de){return o(_0xba04e1,'ELEMENT_HEADING_CUSTOM',[_0x40fa93,_0x2c38de]);}_0x2a0cd5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2db8e6=>{if('formatBlock'!=_0x2db8e6['type'])return;const {data:_0x1baae0}=_0x2db8e6;if(_0x1baae0&&'heading'==_0x1baae0['commandName']){const _0x174be8=_0x1baae0['commandParams'][0x0]['value'],_0x7cac09=this['_getHeadingLevel'](_0x174be8);if(null!==_0x7cac09)return{'type':'format','content':o(_0xba04e1,'*Change\x20to:*\x20%0',(_0x4f0c72=0x1,_0x499d22=_0x7cac09,o(_0xba04e1,'ELEMENT_HEADING',[_0x4f0c72,_0x499d22])))};const _0xb6ecdb=this['_headingOptions']['find'](_0x2e4b35=>_0x2e4b35['model']===_0x174be8)['title'];return{'type':'format','content':o(_0xba04e1,'*Change\x20to:*\x20%0',_0x508b4c(0x1,_0xb6ecdb))};}var _0x4f0c72,_0x499d22;});}['_getHeadingLevel'](_0x3bbf8e){const _0x13f253=_0x3bbf8e['match'](/^heading(\d+)/);if(_0x13f253)return _0x13f253[0x1];const _0x468b5a=this['_headingOptions']?.['find'](_0x92bb73=>_0x92bb73['model']==_0x3bbf8e);if(_0x468b5a&&_0x468b5a['view']){const _0xd0dff9=_0x468b5a['view'],_0x5c76cd=(_0xd0dff9['name']??_0xd0dff9)['match'](/^h(\d+)/);if(_0x5c76cd)return _0x5c76cd[0x1];}return null;}}class et extends _0x3274cb{['afterInit'](){const _0x4c4ba1=this['editor'];if(!_0x4c4ba1['plugins']['has']('HighlightEditing'))return;const _0x451b8f=_0x4c4ba1['plugins']['get']('TrackChangesEditing'),_0x3ad5a7=_0x4c4ba1['locale'];_0x451b8f['enableDefaultAttributesIntegration']('highlight'),_0x451b8f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3ad5a7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x437975=this['editor'],_0x24bdff=_0x437975['locale'];_0x437975['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x190056=>{if('formatInline'!=_0x190056['type'])return;const {data:_0x467700}=_0x190056;if(_0x467700&&'highlight'==_0x467700['commandName']){const _0x38d29b=_0x24bdff['t'],_0x346b54=_0x467700['commandParams'][0x0]['value'];if(_0x346b54){const _0x10346d=_0x437975['config']['get']('highlight.options')['find'](_0x450119=>_0x450119['model']==_0x346b54),_0x3793fc=_0x38d29b(_0x10346d['title'])['toLowerCase']();return{'type':'format','content':o(_0x24bdff,'*Set\x20highlight:*\x20%0',_0x3793fc),'color':{'value':_0x10346d['color'],'title':_0x10346d['title']}};}return{'type':'format','content':o(_0x24bdff,'*Remove\x20highlight*',o(_0x24bdff,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3274cb{['afterInit'](){const _0x46c6cd=this['editor'];if(!_0x46c6cd['plugins']['has']('HorizontalLineEditing'))return;_0x46c6cd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4c3666=_0x46c6cd['plugins']['get']('TrackChangesEditing'),_0x5b726b=_0x46c6cd['locale'];_0x4c3666['descriptionFactory']['registerElementLabel']('horizontalLine',_0x54aa06=>o(_0x5b726b,'ELEMENT_HORIZONTAL_LINE',_0x54aa06));}}class ot extends _0x3274cb{['afterInit'](){const _0x8f4818=this['editor'];if(!_0x8f4818['plugins']['has']('HtmlEmbed'))return;const _0xb6dfbc=_0x8f4818['plugins']['get']('TrackChangesEditing'),_0x5baea9=_0x8f4818['locale'];_0xb6dfbc['descriptionFactory']['registerElementLabel']('rawHtml',_0xa1c58f=>o(_0x5baea9,'ELEMENT_HTML_EMBED',_0xa1c58f)),_0xb6dfbc['enableDefaultAttributesIntegration']('htmlEmbed'),_0xb6dfbc['descriptionFactory']['registerDescriptionCallback'](_0x3c7aea=>{if('attribute'!=_0x3c7aea['type'])return;const {data:_0x1e02c9}=_0x3c7aea;if(_0x1e02c9&&'value'==_0x1e02c9['key']&&_0x3c7aea['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3d74d4=o(_0x5baea9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5baea9,'*Change\x20%0\x20content*',_0x3d74d4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc344d6=this['editor'],_0x2484f6=_0xc344d6['locale'];_0xc344d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x320888=>{if('formatBlock'!=_0x320888['type'])return;const {data:_0x4e91a4}=_0x320888;if(_0x4e91a4&&'htmlEmbed'==_0x4e91a4['commandName']){const _0x4d52c1=o(_0x2484f6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2484f6,'*Change\x20%0\x20content*',_0x4d52c1)};}});}}class rt extends _0x3274cb{['afterInit'](){const _0x58a191=this['editor'];if(!_0x58a191['plugins']['has']('ImageEditing'))return;const _0x34af48=_0x58a191['plugins']['get']('TrackChangesEditing'),_0x12bc78=_0x58a191['plugins']['get']('ImageUtils'),_0x41bc1a=_0x58a191['locale'];_0x34af48['enableCommand']('insertImage'),_0x34af48['descriptionFactory']['registerElementLabel']('imageBlock',_0x38c2c0=>o(_0x41bc1a,'ELEMENT_IMAGE',_0x38c2c0)),_0x34af48['descriptionFactory']['registerElementLabel']('imageInline',_0x31dd8f=>o(_0x41bc1a,'ELEMENT_INLINE_IMAGE',_0x31dd8f)),_0x34af48['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x41bc1a,'ELEMENT_CAPTION')),_0x58a191['plugins']['has']('ImageUploadEditing')&&_0x34af48['enableCommand']('uploadImage'),_0x58a191['plugins']['has']('ImageBlockEditing')&&_0x58a191['plugins']['has']('ImageInlineEditing')&&(_0x34af48['enableCommand']('imageTypeInline',(_0x4b51df,_0x4536d7)=>{const _0x4015a0=_0x12bc78['getClosestSelectedImageElement'](_0x58a191['model']['document']['selection']);_0x58a191['model']['change'](()=>{_0x34af48['markBlockFormat'](_0x4015a0,{'commandName':'imageTypeInline','commandParams':[_0x4536d7]},[],'convertBlockImageToInline');});}),_0x34af48['enableCommand']('imageTypeBlock',(_0xea58cb,_0x3cff8d)=>{_0x58a191['model']['change'](_0x5c3236=>{let _0x413948=_0x12bc78['getClosestSelectedImageElement'](_0x58a191['model']['document']['selection']),_0x44e00b=_0x5c3236['createRangeOn'](_0x413948);const _0x37b582=_0x5b59fc['fromPosition'](_0x44e00b['start'],'toPrevious'),_0x1abd2e=_0x5b59fc['fromPosition'](_0x44e00b['end'],'toNext');_0x34af48['forceDefaultExecution'](()=>_0xea58cb(_0x3cff8d)),_0x413948=_0x12bc78['getClosestSelectedImageElement'](_0x58a191['model']['document']['selection']),_0x44e00b=_0x5c3236['createRangeOn'](_0x413948);const _0x19cc60=_0x5c3236['createRange'](_0x37b582,_0x1abd2e);_0x37b582['detach'](),_0x1abd2e['detach'](),_0x34af48['markBlockFormat'](_0x413948,{'commandName':'imageTypeInline','commandParams':[_0x3cff8d]},[],'convertInlineImageToBlock'),_0x19cc60['start']['isBefore'](_0x44e00b['start'])&&_0x34af48['markInsertion'](_0x5c3236['createRange'](_0x19cc60['start'],_0x44e00b['start']),'convertInlineImageToBlock'),_0x44e00b['end']['isBefore'](_0x19cc60['end'])&&_0x34af48['markInsertion'](_0x5c3236['createRange'](_0x44e00b['end'],_0x19cc60['end']),'convertInlineImageToBlock');});}),_0x34af48['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x34af48['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x34af48['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x34af48['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x34af48['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x34af48['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5d628f])=>{const _0x51559e=_0x34af48['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x81322c=_0x5d628f['start'],_0x568228=_0x5d628f['end'];const _0x4fe0e8=_0x58a191['model']['schema']['getNearestSelectionRange'](_0x81322c,'backward'),_0xc7fbcf=_0x58a191['model']['schema']['getNearestSelectionRange'](_0x568228,'forward');_0x4fe0e8['isCollapsed']&&(_0x81322c=_0x4fe0e8['start']),_0xc7fbcf['isCollapsed']&&(_0x568228=_0xc7fbcf['end']),_0x51559e([_0x58a191['model']['createRange'](_0x81322c,_0x568228)]);}),_0x34af48['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x112a72),_0x34af48['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x112a72)),_0x58a191['plugins']['has']('ImageCaptionEditing')&&(_0x34af48['enableCommand']('toggleImageCaption',(_0x1add9a,_0x329670)=>{const _0x5ef823=_0x58a191['plugins']['get']('ImageCaptionUtils');let _0x22f7be=_0x12bc78['getClosestSelectedImageElement'](_0x58a191['model']['document']['selection']),_0xc0bf66=_0x5ef823['getCaptionFromImageModelElement'](_0x22f7be);_0x58a191['model']['change'](()=>{if(_0xc0bf66)return void _0x34af48['markDeletion'](_0x58a191['model']['createRangeOn'](_0xc0bf66));const _0x40a882=_0x12bc78['isBlockImage'](_0x22f7be);_0x1add9a(_0x329670),_0x22f7be=_0x12bc78['getClosestSelectedImageElement'](_0x58a191['model']['document']['selection']),_0xc0bf66=_0x5ef823['getCaptionFromImageModelElement'](_0x22f7be),_0x34af48['markInsertion'](_0x58a191['model']['createRangeOn'](_0xc0bf66),_0x40a882?null:'imageCaption');});}),_0x34af48['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x112a72));const _0xbd81=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x493045(_0x5478c8,_0x3df64a){const _0x51f6b6=_0xbd81['findIndex'](({type:_0x376918,subType:_0x4f6de3})=>_0x5478c8['type']==_0x376918&&_0x5478c8['subType']==_0x4f6de3),_0x24981f=_0xbd81['findIndex'](({type:_0x15c562,subType:_0x17958c})=>_0x3df64a['type']==_0x15c562&&_0x3df64a['subType']==_0x17958c);if(_0x51f6b6<0x0||_0x24981f<0x0)return!0x1;const _0x516293=_0x5478c8['getFirstRange'](),_0x1e6ba6=_0x3df64a['getFirstRange']();if((0x0==_0x51f6b6||0x1==_0x51f6b6)&&0x2==_0x24981f&&_0x516293['isIntersecting'](_0x1e6ba6))return!0x0;if(0x2==_0x51f6b6&&0x3==_0x24981f){const _0x340637=_0x34af48['_findSuggestions'](_0x516293,'insertion')['filter'](({suggestion:_0x1ac3ed,meta:_0x333a35})=>_0x333a35['isOwn']&&'convertInlineImageToBlock'==_0x1ac3ed['subType']);if(_0x340637['length']>0x1&&_0x1e6ba6['end']['isEqual'](_0x516293['start']))return!0x0;if(0x1==_0x340637['length']&&(_0x516293['start']['isEqual'](_0x1e6ba6['end'])||_0x516293['end']['isEqual'](_0x1e6ba6['start'])))return!0x0;}if(0x3==_0x51f6b6&&0x3==_0x24981f&&_0x516293['start']['isBefore'](_0x1e6ba6['start'])){const _0xe919c=_0x516293['end']['nodeAfter'],_0x13a578=_0x1e6ba6['start']['nodeBefore'];return _0x12bc78['isBlockImage'](_0xe919c)&&_0xe919c===_0x13a578;}return!0x1;}function _0x112a72(_0x5d0382,_0x1b200c){return _0x493045(_0x5d0382,_0x1b200c)?[_0x5d0382,_0x1b200c]:_0x493045(_0x1b200c,_0x5d0382)?[_0x1b200c,_0x5d0382]:null;}_0x58a191['plugins']['has']('ImageResize')&&(_0x34af48['enableDefaultAttributesIntegration']('resizeImage'),_0x34af48['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x41bc1a,'FORMAT_IMAGE_SIZE'))),_0x58a191['plugins']['has']('ImageTextAlternativeEditing')&&_0x34af48['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x58a191['plugins']['has']('PictureEditing')&&_0x34af48['descriptionFactory']['registerDescriptionCallback'](_0x5d70aa=>{if('attribute'!=_0x5d70aa['type'])return;const {data:_0xa2de04}=_0x5d70aa;return _0xa2de04&&'sources'==_0xa2de04['key']?{'type':'format','content':''}:void 0x0;}),_0x58a191['plugins']['has']('ImageSizeAttributes')&&_0x34af48['descriptionFactory']['registerDescriptionCallback'](_0x4e8636=>{if('attribute'!=_0x4e8636['type'])return;const {data:_0x1e503d}=_0x4e8636;return!_0x1e503d||'width'!=_0x1e503d['key']&&'height'!=_0x1e503d['key']?void 0x0:{'type':'format','content':''};}),_0x34af48['descriptionFactory']['registerDescriptionCallback'](_0x135169=>{if(!!_0xbd81['find'](({type:_0x22501d,subType:_0x24f439})=>_0x135169['type']==_0x22501d&&_0x135169['subType']==_0x24f439))return _0x135169['previous']?{}:void 0x0;}),_0x34af48['descriptionFactory']['registerDescriptionCallback'](_0x4628c5=>{if('insertion'==_0x4628c5['type']||'deletion'==_0x4628c5['type']){const _0x26189f=_0x4628c5['getContainedElement']();if(_0x26189f&&_0x26189f['is']('element','caption'))return{'type':'insertion'==_0x4628c5['type']?'addObject':'removeObject','element':_0x26189f,'quantity':0x1};}}),_0x34af48['descriptionFactory']['registerDescriptionCallback'](_0x1990d3=>'formatBlock'==_0x1990d3['type']&&'convertInlineImageToBlock'==_0x1990d3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1990d3['type']&&'convertBlockImageToInline'==_0x1990d3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x34af48['descriptionFactory']['registerDescriptionCallback'](_0x261aa5=>{if('attribute'!=_0x261aa5['type'])return;const {data:_0x142825}=_0x261aa5;if(!_0x142825||'alt'!=_0x142825['key'])return;const _0x29c16a=_0x142825['newValue'];return _0x29c16a?{'type':'format','content':o(_0x41bc1a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x29c16a+'\x22')}:{'type':'format','content':o(_0x41bc1a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3af062=this['editor'],_0x18ad92=_0x3af062['locale'];_0x3af062['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x333590=>{if('formatBlock'!=_0x333590['type']&&'formatInline'!=_0x333590['type'])return;const {data:_0x256250}=_0x333590;if(_0x256250){if('imageTextAlternative'==_0x256250['commandName']){const _0x43ea15=_0x256250['commandParams'][0x0]['newValue'];return _0x43ea15?{'type':'format','content':o(_0x18ad92,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43ea15+'\x22')}:{'type':'format','content':o(_0x18ad92,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x256250['commandName']){const _0x1080c4=_0x256250['commandParams'][0x0]['width'];return _0x1080c4?{'type':'format','content':o(_0x18ad92,'*Set\x20image\x20width:*\x20%0',_0x1080c4)}:{'type':'format','content':o(_0x18ad92,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3274cb{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x19be6c=this['editor']['locale'],_0x51d32d=this['editor']['plugins']['get']('TrackChangesEditing');_0x51d32d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x51d32d['descriptionFactory']['registerDescriptionCallback'](_0x401761=>{if('attribute'!=_0x401761['type'])return;const {data:_0x4c60cd}=_0x401761;return _0x4c60cd&&'src'==_0x4c60cd['key']?_0x4c60cd['newValue']&&_0x4c60cd['oldValue']?{'type':'format','content':o(_0x19be6c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x41fe11=this['editor']['plugins']['get']('TrackChangesEditing');_0x41fe11['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x41fe11['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41fe11['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x41fe11['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53b68f=this['editor'],_0x2a20c8=_0x53b68f['locale'];_0x53b68f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x447d3b=>{if('formatBlock'!=_0x447d3b['type']&&'formatInline'!=_0x447d3b['type'])return;const {data:_0x749fa5}=_0x447d3b;if(!_0x749fa5||'replaceImageSource'!=_0x749fa5['commandName'])return;return{'type':'format','content':o(_0x2a20c8,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3274cb{['afterInit'](){const _0x1dcc28=this['editor'];if(!_0x1dcc28['plugins']['has']('ImageStyleEditing'))return;const _0x584b1e=_0x1dcc28['plugins']['get']('TrackChangesEditing'),_0x420f6f=_0x1dcc28['plugins']['get']('ImageUtils'),_0x26d0c8={};_0x584b1e['enableCommand']('imageStyle',(_0x2c19f1,_0x4696b9)=>{const _0x377466=_0x1dcc28['plugins']['get']('Users')['me'],_0x74d3b4=_0x1dcc28['commands']['get']('imageStyle');let _0x2b5d9d=_0x420f6f['getClosestSelectedImageElement'](_0x1dcc28['model']['document']['selection']),_0x237153=_0x1dcc28['model']['createRangeOn'](_0x2b5d9d),_0x51267f=_0x74d3b4['value'];if(_0x51267f==_0x4696b9['value'])return;const _0x3b1ee1={'commandName':'imageStyle','commandParams':[_0x4696b9],'formatGroupId':_0x531b89()};_0x1dcc28['model']['change'](()=>{if(_0x584b1e['getSuggestions']()['filter'](_0x53ce89=>_0x53ce89['isInContent']&&_0x377466==_0x53ce89['author']&&('formatBlock'==_0x53ce89['type']||'formatInline'==_0x53ce89['type'])&&('imageStylePreApply'==_0x53ce89['subType']||'imageStylePostApply'==_0x53ce89['subType'])&&_0x53ce89['getFirstRange']()['isEqual'](_0x237153))['forEach'](_0x24c2fc=>_0x584b1e['discardSuggestion'](_0x24c2fc['head'])),_0x2b5d9d=_0x420f6f['getClosestSelectedImageElement'](_0x1dcc28['model']['document']['selection']),_0x237153=_0x1dcc28['model']['createRangeOn'](_0x2b5d9d),_0x74d3b4['refresh'](),_0x1dcc28['commands']['get']('imageTypeInline')['refresh'](),_0x1dcc28['commands']['get']('imageTypeBlock')['refresh'](),_0x51267f=_0x74d3b4['value'],_0x51267f!=_0x4696b9['value'])return _0x420f6f['isInlineImage'](_0x2b5d9d)&&_0x74d3b4['shouldConvertImageType'](_0x4696b9['value'],_0x2b5d9d)?(_0x2c19f1({..._0x4696b9,'setImageSizes':!0x1}),_0x2b5d9d=_0x420f6f['getClosestSelectedImageElement'](_0x1dcc28['model']['document']['selection']),void _0x584b1e['markBlockFormat'](_0x2b5d9d,{..._0x3b1ee1,'commandReversedParams':[{'value':_0x51267f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x420f6f['isBlockImage'](_0x2b5d9d)?_0x584b1e['markBlockFormat'](_0x2b5d9d,_0x3b1ee1,[],'imageStylePostApply'):_0x584b1e['markInlineFormat'](_0x237153,_0x3b1ee1,'imageStylePostApply'));});});for(const _0x3e756e of _0x1dcc28['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x26d0c8[_0x3e756e['name']]=_0x3e756e['title']['toLowerCase']();_0x584b1e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x584b1e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x584b1e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x584b1e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x20c777])=>{_0x420f6f['setImageNaturalSizeAttributes'](_0x20c777['getContainedElement']());}),_0x584b1e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x40df4b,_0x36bad4)=>{_0x584b1e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x40df4b,{'commandName':_0x36bad4['commandName'],'commandParams':_0x36bad4['commandReversedParams']});}),_0x584b1e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x33b4bc,_0x3d6dc2){if(_0xc6eec6(_0x33b4bc,_0x3d6dc2))return[_0x33b4bc,_0x3d6dc2];if(_0xc6eec6(_0x3d6dc2,_0x33b4bc))return[_0x3d6dc2,_0x33b4bc];return null;});const _0xe21f64=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xc6eec6(_0x528e18,_0x46ccef){const _0x551630=_0xe21f64['findIndex'](({type:_0x332114,subType:_0x307747})=>_0x528e18['type']==_0x332114&&_0x528e18['subType']==_0x307747),_0x33a4fc=_0xe21f64['findIndex'](({type:_0x60e717,subType:_0x2e8374})=>_0x46ccef['type']==_0x60e717&&_0x46ccef['subType']==_0x2e8374);if(_0x551630<0x0||_0x33a4fc<0x0)return!0x1;const _0x18441e=_0x528e18['getFirstRange'](),_0x71e6d4=_0x46ccef['getFirstRange']();if((0x0==_0x551630||0x1==_0x551630)&&0x2==_0x33a4fc&&_0x18441e['isIntersecting'](_0x71e6d4))return!0x0;if(0x2==_0x551630&&0x3==_0x33a4fc){const _0x4bcbee=_0x584b1e['_findSuggestions'](_0x18441e,'insertion')['filter'](({suggestion:_0x34bc2a,meta:_0x552d45})=>_0x552d45['isOwn']&&'convertInlineImageToBlock'==_0x34bc2a['subType']);if(_0x4bcbee['length']>0x1&&_0x71e6d4['end']['isEqual'](_0x18441e['start']))return!0x0;if(0x1==_0x4bcbee['length']&&(_0x18441e['start']['isEqual'](_0x71e6d4['end'])||_0x18441e['end']['isEqual'](_0x71e6d4['start'])))return!0x0;}if(0x3==_0x551630&&0x3==_0x33a4fc&&_0x18441e['start']['isBefore'](_0x71e6d4['start'])){const _0x36fac7=_0x18441e['end']['nodeAfter'],_0x310e05=_0x71e6d4['start']['nodeBefore'];return _0x420f6f['isBlockImage'](_0x36fac7)&&_0x36fac7===_0x310e05;}return!0x1;}_0x1dcc28['model']['document']['registerPostFixer'](()=>{let _0x58dbf6=!0x1;const _0x3937da=Array['from'](_0x1dcc28['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b925e,data:_0x3e3c82}of _0x3937da){const {group:_0x297eba,type:_0x22a934,subType:_0x5b9a70,id:_0x5dd560}=_0x584b1e['_splitMarkerName'](_0x5b925e);if('suggestion'==_0x297eba&&_0x584b1e['hasSuggestion'](_0x5dd560)){if('formatBlock'==_0x22a934&&('imageStylePreApply'==_0x5b9a70||'imageStylePostApply'==_0x5b9a70)){const _0x554d45=_0x584b1e['getSuggestion'](_0x5dd560);if(_0x3e3c82['newRange']){const _0x1dfcc7=_0x554d45['getFirstRange']()['getContainedElement']();if(_0x420f6f['isBlockImage'](_0x1dfcc7))continue;_0x584b1e['discardSuggestion'](_0x554d45),_0x58dbf6=!0x0;}}if('insertion'==_0x22a934&&'imageCaption'==_0x5b9a70&&!_0x3e3c82['newRange']){const _0x7c91e8=_0x584b1e['getSuggestion'](_0x5dd560);_0x7c91e8['next']&&_0x7c91e8['next']['isInContent']&&(_0x584b1e['discardSuggestion'](_0x7c91e8['next']),_0x58dbf6=!0x0);}}}return _0x58dbf6;}),this['_registerLegacyDescription'](_0x26d0c8);}['_registerLegacyDescription'](_0x17baac){const _0x1fb2f5=this['editor'],_0x2ce465=_0x1fb2f5['locale'];_0x1fb2f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x396ad0=>{if('formatBlock'!=_0x396ad0['type']&&'formatInline'!=_0x396ad0['type'])return;const {data:_0x162d04}=_0x396ad0;if(!_0x162d04||'imageStyle'!=_0x162d04['commandName'])return;const _0x4f31b9=_0x162d04['commandParams'][0x0]['value'];return _0x8624b4('side'===_0x4f31b9?o(_0x2ce465,'FORMAT_SIDE_IMAGE'):_0x17baac[_0x4f31b9]||_0x4f31b9);function _0x8624b4(_0x50980e){return{'type':'format','content':o(_0x2ce465,'*Format:*\x20%0',_0x50980e)};}});}}class ut extends _0x3274cb{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x369d4b){super(_0x369d4b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x410743=this['editor'],_0x166678=_0x410743['commands']['get']('importWord'),_0x17dbc2=_0x410743['commands']['get']('trackChanges');_0x166678&&(_0x166678['on']('execute',(_0x288fd9,[,_0x4f61dd])=>{this['_trackChangesValueDuringImport']=_0x17dbc2['value'],_0x4f61dd['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x166678,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x166678,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x17dbc2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x410743['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x395129,_0xdf8c1){const {suggestions:_0x43b754}=_0xdf8c1,_0x48198c=this['editor']['commands']['get']('trackChanges'),_0x81e1b7=_0x48198c['value'];this['_trackChangesValueDuringImport']!==_0x81e1b7&&(_0x48198c['execute'](),this['_trackChangesExecuted']=!0x0),_0x43b754&&_0x43b754['forEach'](({id:_0x35913b,type:_0x4a5584,author:_0x4258cf,created_at:_0x637bbe})=>{const _0x4e106a={'id':_0x35913b,'type':_0x4a5584,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4258cf,'createdAt':_0x637bbe?new Date(_0x637bbe):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4e106a);});}}class ft extends _0x3274cb{['afterInit'](){const _0x221aaa=this['editor'],_0x106836=_0x221aaa['plugins']['get']('TrackChangesEditing');if(_0x221aaa['plugins']['has']('IndentEditing')&&(_0x106836['enableCommand']('indent'),_0x106836['enableCommand']('outdent')),_0x221aaa['plugins']['has']('IndentBlock')){for(const _0x5cf373 of['indentBlock','outdentBlock'])_0x106836['enableDefaultAttributesIntegration'](_0x5cf373);}const _0x37a0bc=_0x221aaa['locale'];_0x106836['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x37a0bc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45376d=this['editor'],_0x4aced0=_0x45376d['locale'],_0x157a40=_0x45376d['plugins']['get']('TrackChangesEditing');_0x157a40['descriptionFactory']['registerDescriptionCallback'](_0x33f07a=>{if('formatBlock'!=_0x33f07a['type'])return;const {data:_0x2dc840}=_0x33f07a;if(!_0x2dc840)return;if('indentBlock'!=_0x2dc840['commandName']&&'outdentBlock'!=_0x2dc840['commandName'])return;const _0x872dc2=_0x33f07a['getItems']()[0x0],_0x1563d8=_0x157a40['descriptionFactory']['getItemLabel'](_0x872dc2);return'indentBlock'==_0x2dc840['commandName']?{'type':'format','content':o(_0x4aced0,'*Indent:*\x20%0',_0x1563d8)}:'outdentBlock'==_0x2dc840['commandName']?{'type':'format','content':o(_0x4aced0,'*Outdent:*\x20%0',_0x1563d8)}:void 0x0;});}}class ht extends _0x3274cb{static get['requires'](){return[_0x5595f9];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x3274cb{['afterInit'](){const _0x20bda6=this['editor'];if(!_0x20bda6['plugins']['has']('LinkEditing'))return;const _0x4a5342=_0x20bda6['plugins']['get']('TrackChangesEditing'),_0x1c7407=_0x20bda6['commands']['get']('link');_0x4a5342['enableDefaultAttributesIntegration']('link'),_0x4a5342['enableDefaultAttributesIntegration']('unlink');for(const _0x4ddfd1 of _0x1c7407['manualDecorators'])_0x4a5342['descriptionFactory']['registerAttributeLabel'](_0x4ddfd1['id'],'link\x20('+_0x4ddfd1['label']['toLowerCase']()+')');_0x4a5342['descriptionFactory']['registerDescriptionCallback'](_0x5cf2a4=>{if('attribute'!=_0x5cf2a4['type'])return;const {data:_0x36a2e1}=_0x5cf2a4;if(!_0x36a2e1||'linkHref'!=_0x36a2e1['key'])return;const _0x165b61=_0x36a2e1['newValue'],_0x41f907=_0x20bda6['locale'];return{'type':'format','content':null==_0x165b61?o(_0x41f907,'*Remove\x20link*'):o(_0x41f907,'*Set\x20link:*\x20%0','\x22'+_0x165b61+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ae088=this['editor'],_0x2af1f9=_0x5ae088['locale'];_0x5ae088['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ad8d0=>{if('formatInline'!=_0x1ad8d0['type'])return;const {data:_0x100faa}=_0x1ad8d0;if(_0x100faa){if('link'==_0x100faa['commandName']){const _0xd7017b=_0x100faa['commandParams'][0x0];return{'type':'format','content':o(_0x2af1f9,'*Set\x20link:*\x20%0','\x22'+_0xd7017b+'\x22')};}return'unlink'==_0x100faa['commandName']?{'type':'format','content':o(_0x2af1f9,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x3274cb{['afterInit'](){const _0x5a46fa=this['editor'],_0x128d20=_0x5a46fa['locale'];if(!_0x5a46fa['plugins']['has']('LegacyListEditing'))return;const _0x588ff4=_0x5a46fa['plugins']['get']('TrackChangesEditing'),_0x22caf6=_0x5a46fa['plugins']['has']('LegacyTodoListEditing');function _0x1a6c5b(_0x219ccb){return()=>{const _0x3acb9e=_0x5a46fa['model']['document']['selection'],_0x3865f6=_0x5a46fa['commands']['get'](_0x219ccb);if(_0x3865f6['value'])return void _0x5a46fa['execute']('paragraph',{});const _0x4aebce=_0x219ccb['slice'](0x0,-0x4),_0x3cbdd8=function(_0x46cd2d,_0x56fede,_0x4f4afe){let _0x49c411=Array['from'](_0x46cd2d)['filter'](_0x43657b=>function(_0x56d4d3,_0x2a85a2){return _0x2a85a2['checkChild'](_0x56d4d3['parent'],'listItem')&&!_0x2a85a2['isObject'](_0x56d4d3);}(_0x43657b,_0x4f4afe));_0x49c411=_0x49c411['filter'](_0x32e394=>!_0x32e394['is']('element','listItem')||_0x32e394['getAttribute']('listType')!=_0x56fede);const _0x5b7d77=new Set();for(const _0x389fd8 of _0x49c411)_0x389fd8['is']('element','listItem')?_0x5b7d77['add'](Le(_0x389fd8)):_0x5b7d77['add'](_0x389fd8);return Array['from'](_0x5b7d77);}(_0x3acb9e['getSelectedBlocks'](),_0x4aebce,_0x5a46fa['model']['schema']);_0x5a46fa['model']['change'](()=>{for(const _0x4b3dab of _0x3cbdd8)_0x588ff4['markBlockFormat'](_0x4b3dab,{'commandName':_0x219ccb,'commandParams':[{'forceValue':!_0x3865f6['value']}],'formatGroupId':'blockName'},Ee(_0x4b3dab));});};}function _0x39f50b(_0x5242aa){return()=>{const _0x510074=function(_0x1b4ff4){let _0x502145=Array['from'](_0x1b4ff4);const _0x5f3464=_0x502145['findIndex'](_0x5b400a=>'listItem'!=_0x5b400a['name']);return _0x5f3464>-0x1&&(_0x502145=_0x502145['slice'](0x0,_0x5f3464)),_0x502145;}(_0x5a46fa['model']['document']['selection']['getSelectedBlocks']()),_0x121701=_0x5a46fa['model']['createRange'](_0x5a46fa['model']['createPositionAt'](_0x510074[0x0],'before'),_0x5a46fa['model']['createPositionAt'](_0x510074[_0x510074['length']-0x1],'end'));_0x5a46fa['model']['change'](()=>{_0x588ff4['markBlockFormat'](_0x121701,{'commandName':_0x5242aa,'commandParams':[],'formatGroupId':'listIndent'},function(_0x27a1cf){const _0x5e18a9=new Set();for(const _0xd45b95 of _0x27a1cf){let _0x112d3b=_0xd45b95['nextSibling'];for(;_0x112d3b&&_0x112d3b['getAttribute']('listIndent')>_0xd45b95['getAttribute']('listIndent');)_0x5e18a9['add'](_0x112d3b),_0x112d3b=_0x112d3b['nextSibling'];}return Array['from'](_0x5e18a9);}(_0x510074));});};}_0x588ff4['enableCommand']('numberedList',_0x1a6c5b('numberedList')),_0x588ff4['enableCommand']('bulletedList',_0x1a6c5b('bulletedList')),_0x22caf6&&_0x588ff4['enableCommand']('todoList',_0x1a6c5b('todoList')),_0x588ff4['enableCommand']('indentList',_0x39f50b('indentList')),_0x588ff4['enableCommand']('outdentList',_0x39f50b('outdentList')),_0x22caf6&&_0x588ff4['enableCommand']('checkTodoList',()=>{const _0x413bac=_0x5a46fa['commands']['get']('checkTodoList'),_0x27404c=Array['from'](_0x413bac['_selectedElements']);_0x27404c['filter'](_0x40bf1c=>_0x40bf1c['getAttribute']('todoListChecked')!=_0x413bac['value']),_0x5a46fa['model']['change'](()=>{for(const _0x8b4cc7 of _0x27404c)_0x588ff4['markBlockFormat'](_0x8b4cc7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x413bac['value']}]});});}),_0x588ff4['descriptionFactory']['registerElementLabel']('listItem',_0x5eefcc=>o(_0x128d20,'ELEMENT_LIST_ITEM',_0x5eefcc)),_0x588ff4['descriptionFactory']['registerDescriptionCallback'](_0x11d429=>{if('formatBlock'!=_0x11d429['type']&&'formatInline'!=_0x11d429['type'])return;const {data:_0x5eb4c6}=_0x11d429;if(_0x5eb4c6){if('numberedList'==_0x5eb4c6['commandName']||'bulletedList'==_0x5eb4c6['commandName']||'todoList'==_0x5eb4c6['commandName'])switch(_0x5eb4c6['commandName']['replace']('List','')){case'bulleted':return _0x45dd33(o(_0x128d20,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45dd33(o(_0x128d20,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45dd33(o(_0x128d20,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5eb4c6['commandName'])return{'type':'format','content':o(_0x128d20,'*Indent:*\x20%0',o(_0x128d20,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5eb4c6['commandName'])return{'type':'format','content':o(_0x128d20,'*Outdent:*\x20%0',o(_0x128d20,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5eb4c6['commandName'])return _0x5eb4c6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x128d20,'*Check\x20item*')}:{'type':'format','content':o(_0x128d20,'*Uncheck\x20item*')};}function _0x45dd33(_0x386526){return{'type':'format','content':o(_0x128d20,'*Change\x20to:*\x20%0',_0x386526)};}});}}function Le(_0x44e6c9){const _0x42f1eb=_0x44e6c9['getAttribute']('listIndent');if(0x0==_0x42f1eb)return _0x44e6c9;let _0x42606a=_0x44e6c9;for(;_0x44e6c9['previousSibling']&&_0x44e6c9['previousSibling']['is']('element','listItem');){const _0x2e6b65=_0x44e6c9['previousSibling']['getAttribute']('listIndent');if(_0x2e6b65==_0x42f1eb)_0x42606a=_0x44e6c9['previousSibling'];else{if(_0x2e6b65<_0x42f1eb)break;}_0x44e6c9=_0x44e6c9['previousSibling'];}return _0x42606a;}function Ee(_0x2c8fac){const _0x52bc72=[];if(_0x2c8fac['is']('element','listItem')&&_0x2c8fac['getAttribute']('listIndent')>0x0){let _0x6cf347=_0x2c8fac['nextSibling'];for(;_0x6cf347&&'listItem'==_0x6cf347['name']&&_0x6cf347['getAttribute']('listIndent')==_0x2c8fac['getAttribute']('listIndent');)_0x52bc72['push'](_0x6cf347),_0x6cf347=_0x6cf347['nextSibling'];}return _0x52bc72;}class mt extends _0x3274cb{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3a46f6=this['editor']['config']['get']('list.properties'),_0x477bda=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a46f6['styles']&&_0x477bda['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3a46f6['reversed']&&_0x477bda['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3a46f6['startIndex']&&_0x477bda['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x477bda['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2d4c9f,_0x2c968c={}){const _0x1f9488=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30f8dd=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1f9488['markMultiRangeBlockFormat'](_0x30f8dd,{'commandName':'listStyle','commandParams':[{'type':_0x2c968c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x345f31,_0x3d21de={}){const _0x53bba2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b704b=this['_getSuggestionBlocks'](_0x1af911=>_0x1af911['is']('element','listItem')&&'numbered'===_0x1af911['getAttribute']('listType'));if(_0x4b704b['length']<0x1)return;const _0x4d88a4=_0x4b704b['map'](_0x38ffcc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x38ffcc,'before'),this['editor']['model']['createPositionAt'](_0x38ffcc,0x0)));this['editor']['model']['change'](()=>{_0x53bba2['markMultiRangeBlockFormat'](_0x4d88a4,{'commandName':'listReversed','commandParams':[{'reversed':_0x3d21de['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x55e98e,_0x92657a={}){const _0x461b05=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c008=this['_getSuggestionBlocks'](_0x22eb06=>_0x22eb06['is']('element','listItem')&&'numbered'===_0x22eb06['getAttribute']('listType'));if(_0x3c008['length']<0x1)return;const _0x1e2e03=_0x3c008['map'](_0x30c7c4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30c7c4,'before'),this['editor']['model']['createPositionAt'](_0x30c7c4,0x0)));this['editor']['model']['change'](()=>{_0x461b05['markMultiRangeBlockFormat'](_0x1e2e03,{'commandName':'listStart','commandParams':[{'startIndex':_0x92657a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x40e208){if('formatBlock'!=_0x40e208['type']&&'formatInline'!=_0x40e208['type'])return;const _0x19b498=this['editor']['locale'],{data:_0x861d9e}=_0x40e208;if(!_0x861d9e)return;let _0xfbbe81,_0x2aff6b;switch(_0x861d9e['commandName']){case'listStyle':_0xfbbe81='*Change\x20to:*\x20%0',_0x2aff6b={'type':'format','content':o(_0x19b498,_0xfbbe81,o(_0x19b498,this['_getTranslationKeyForListStyle'](_0x861d9e['commandParams'][0x0]['type'])))};break;case'listReversed':_0xfbbe81=_0x861d9e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2aff6b={'type':'format','content':o(_0x19b498,_0xfbbe81)};break;case'listStart':_0xfbbe81='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2aff6b={'type':'format','content':o(_0x19b498,_0xfbbe81,_0x861d9e['commandParams'][0x0]['startIndex'])};}return _0x2aff6b;}['_getSuggestionBlocksForListStyle'](){const _0xc96153=this['editor']['plugins']['get']('LegacyListUtils');let _0x119bbd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x119bbd[0x0]?.['is']('element','listItem')&&_0x119bbd['unshift'](..._0xc96153['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x119bbd[_0x119bbd['length']-0x1]?.['is']('element','listItem')&&_0x119bbd['push'](..._0xc96153['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x119bbd=[...new Set(_0x119bbd)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x119bbd=_0x119bbd['filter'](_0x2c1077=>_0x2c1077['is']('element','listItem'))),_0x119bbd;}['_getSuggestionBlocks'](_0x30d3e1){const _0x51a886=this['editor']['plugins']['get']('LegacyListUtils');let _0x2fd28a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x30d3e1)['map'](_0x42c14b=>{const _0x41c312=this['editor']['model']['createPositionAt'](_0x42c14b,0x0);return[..._0x51a886['getSiblingNodes'](_0x41c312,'backward'),..._0x51a886['getSiblingNodes'](_0x41c312,'forward')];})['flat']();return _0x2fd28a=[...new Set(_0x2fd28a)],_0x2fd28a;}['_getTranslationKeyForListStyle'](_0x588d13){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x588d13)||'default')['toUpperCase']()+'_LIST_'+_0x588d13['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x3274cb{['afterInit'](){const _0x5409de=this['editor'];if(!_0x5409de['plugins']['has']('MediaEmbedEditing'))return;const _0x138abc=_0x5409de['plugins']['get']('TrackChangesEditing'),_0x395f72=_0x5409de['locale'];_0x138abc['enableCommand']('mediaEmbed'),_0x138abc['descriptionFactory']['registerElementLabel']('media',_0x2e26fd=>o(_0x395f72,'ELEMENT_MEDIA',_0x2e26fd));}}class pt extends _0x3274cb{['afterInit'](){const _0x4a8952=this['editor'];_0x4a8952['plugins']['has']('MentionEditing')&&_0x4a8952['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x3274cb{['afterInit'](){const _0x1e8978=this['editor'];if(!_0x1e8978['plugins']['has']('MergeFieldsEditing'))return;const _0xbad1ef=_0x1e8978['plugins']['get']('TrackChangesEditing'),_0x1f2d8e=_0x1e8978['locale'];_0xbad1ef['enableCommand']('insertMergeField'),_0xbad1ef['enableCommand']('insertMergeFieldBlock'),_0xbad1ef['enableCommand']('insertMergeFieldImage'),_0xbad1ef['descriptionFactory']['registerElementLabel']('mergeField',_0x24343f=>o(_0x1f2d8e,'ELEMENT_MERGE_FIELD',_0x24343f)),_0xbad1ef['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5c822e=>o(_0x1f2d8e,'ELEMENT_MERGE_FIELD',_0x5c822e)),_0xbad1ef['descriptionFactory']['registerDescriptionCallback'](_0x3f57b2=>{if('insertion'!=_0x3f57b2['type']&&'deletion'!=_0x3f57b2['type'])return;const _0x324aaa=_0x3f57b2['getContainedElement']();if(null==_0x324aaa)return;const _0xaac8b3=_0x1e8978['plugins']['get']('MergeFieldsEditing');let _0x2e59be;switch(_0xaac8b3['getMergeFieldType'](_0x324aaa)){case null:return;case'image':{const _0xa65eb4=_0xaac8b3['unwrapAffixes'](_0x324aaa['getAttribute']('src'));_0x2e59be=_0xaac8b3['getLabel'](_0xa65eb4)||_0xa65eb4;break;}default:{const _0x2189fe=_0x324aaa['getAttribute']('id');_0x2e59be=_0xaac8b3['getLabel'](_0x2189fe)||_0x2189fe;break;}}return'insertion'==_0x3f57b2['type']?{'type':'insertion','content':o(_0x1f2d8e,'*Insert:*\x20%0','\x22'+_0x2e59be+'\x22\x20'+o(_0x1f2d8e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1f2d8e,'*Remove:*\x20%0','\x22'+_0x2e59be+'\x22\x20'+o(_0x1f2d8e,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x3274cb{['afterInit'](){const _0x4dddb0=this['editor'],_0x2faa8c=_0x4dddb0['plugins']['get']('TrackChangesEditing');_0x4dddb0['plugins']['has']('MultiLevelList')&&(_0x2faa8c['enableDefaultAttributesIntegration']('multiLevelList'),_0x2faa8c['descriptionFactory']['registerDescriptionCallback'](_0xc18595=>this['handleDescriptions'](_0xc18595)));}['handleDescriptions'](_0x5b4ae7){const _0x49381c=this['editor']['locale'],{data:_0x29d3da}=_0x5b4ae7,_0x343c02={'type':'format','content':''};if(_0x29d3da&&'listMarkerStyle'==_0x29d3da['key']){if(!_0x29d3da['oldValue'])return{'type':'format','content':o(_0x49381c,'*Set\x20format:*\x20%0',o(_0x49381c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x29d3da['newValue']+')'};if(!_0x29d3da['newValue']){let _0x473e6c=_0x5b4ae7['head'];for(;_0x473e6c;){if(_0x473e6c['data']&&'listType'==_0x473e6c['data']['key']&&_0x473e6c['data']['newValue'])return _0x343c02;_0x473e6c=_0x473e6c['next'];}return{'type':'format','content':o(_0x49381c,'*Remove\x20format:*\x20%0',o(_0x49381c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x29d3da['oldValue']+')'};}}}}class bt extends _0x3274cb{['afterInit'](){const _0x4efe24=this['editor'];if(!_0x4efe24['plugins']['has']('PageBreakEditing'))return;_0x4efe24['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x30aa64=_0x4efe24['plugins']['get']('TrackChangesEditing'),_0x18cea3=_0x4efe24['locale'];_0x30aa64['descriptionFactory']['registerElementLabel']('pageBreak',_0x323155=>o(_0x18cea3,'ELEMENT_PAGE_BREAK',_0x323155));}}class yt extends _0x3274cb{['afterInit'](){const _0x495dd8=this['editor'];if(!_0x495dd8['plugins']['has']('Paragraph'))return;const _0x3a5cf5=_0x495dd8['locale'],_0x31917c=_0x495dd8['plugins']['get']('TrackChangesEditing');_0x31917c['descriptionFactory']['registerElementLabel']('paragraph',_0x277cb4=>o(_0x3a5cf5,'ELEMENT_PARAGRAPH',_0x277cb4)),_0x31917c['enableDefaultAttributesIntegration']('paragraph'),_0x31917c['enableCommand']('insertParagraph');const _0x173259=_0x31917c['descriptionFactory'];_0x173259['registerDescriptionCallback'](_0x50122c=>{if('insertion'!==_0x50122c['type'])return;const {start:_0x12c0f9,end:_0xf63d52}=_0x50122c['getFirstRange']();if(!_0x12c0f9['isTouching'](_0xf63d52)||!_0x12c0f9['nodeAfter'])return;const _0x5d4998=_0x495dd8['model']['schema'],_0x465bf8=_0x12c0f9['nodeAfter'];return _0x5d4998['isBlock'](_0x465bf8)&&!_0x5d4998['isLimit'](_0x465bf8)&&_0x5d4998['checkChild'](_0x465bf8,'$text')?{'type':'insertion','content':o(_0x3a5cf5,'*Insert:*\x20%0',_0x173259['getItemLabel'](_0x465bf8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3711a0=this['editor'],_0x239c21=_0x3711a0['locale'];_0x3711a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x265983=>{if('formatBlock'!=_0x265983['type'])return;const {data:_0x32f6cc}=_0x265983;return _0x32f6cc&&'paragraph'==_0x32f6cc['commandName']?{'type':'format','content':o(_0x239c21,'*Change\x20to:*\x20%0',o(_0x239c21,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x3274cb{['afterInit'](){const _0x1a330e=this['editor'];_0x1a330e['commands']['get']('replaceSource')&&_0x1a330e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x3274cb{['afterInit'](){const _0x13ea73=this['editor'];if(!_0x13ea73['plugins']['has']('RemoveFormatEditing'))return;_0x13ea73['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2da852=this['editor'];_0x2da852['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x594f76=>{if('formatBlock'!=_0x594f76['type']&&'formatInline'!=_0x594f76['type'])return;const {data:_0x337da2}=_0x594f76;return _0x337da2&&'removeFormat'==_0x337da2['commandName']?{'type':'format','content':o(_0x2da852['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x3274cb{['afterInit'](){const _0xcfed2a=this['editor'];if(!_0xcfed2a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1ade38=_0xcfed2a['plugins']['get']('TrackChangesEditing');_0x1ade38['enableCommand']('goToPreviousRestrictedEditingException'),_0x1ade38['enableCommand']('goToNextRestrictedEditingException');const _0x407952=_0xcfed2a['plugins']['get']('RestrictedEditingModeEditing');_0x407952['enableCommand']('trackChanges'),_0x407952['enableCommand']('acceptSuggestion'),_0x407952['enableCommand']('discardSuggestion'),_0x407952['enableCommand']('acceptAllSuggestions'),_0x407952['enableCommand']('discardAllSuggestions'),_0x407952['enableCommand']('acceptSelectedSuggestions'),_0x407952['enableCommand']('discardSelectedSuggestions');}}class At extends _0x3274cb{['afterInit'](){const _0x434ed2=this['editor'];if(!_0x434ed2['plugins']['has']('ShiftEnter'))return;const _0x4af4f3=_0x434ed2['plugins']['get']('TrackChangesEditing');_0x4af4f3['enableCommand']('shiftEnter'),_0x4af4f3['descriptionFactory']['registerElementLabel']('softBreak',_0x4c4a2c=>o(_0x434ed2['locale'],'ELEMENT_LINE_BREAK',_0x4c4a2c));}}function an(_0x470a4,_0x1a141e,_0x4d18e7){const _0x453bff=[];for(const _0x797a18 of _0x1a141e['getItems']())_0x797a18['hasAttribute'](_0x470a4)&&_0x453bff['push'](_0x4d18e7['createRangeOn'](_0x797a18));return _0x453bff;}class _t extends _0x3274cb{['afterInit'](){const _0x1dcb73=this['editor'],_0xeac502=_0x1dcb73['plugins']['get']('TrackChangesEditing');_0x1dcb73['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xeac502['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x5c30f3=this['editor'],_0x2e2c86=_0x5c30f3['model'],_0x78dc88=_0x5c30f3['locale'],_0x14a400=_0x5c30f3['plugins']['get']('TrackChangesEditing'),_0x43c67e='restrictedEditingException',_0x27514c=_0x5c30f3['commands']['get'](_0x43c67e);_0x14a400['enableCommand'](_0x43c67e,(_0x5bc2dc,_0x359a1d={})=>{const _0x3aab85=_0x2e2c86['document']['selection'];if(_0x3aab85['isCollapsed'])return void _0x5bc2dc(_0x359a1d);const _0x4d5759=void 0x0!==_0x359a1d['forceValue']?_0x359a1d['forceValue']:!_0x27514c['value'];_0x2e2c86['change'](()=>{const _0x4b0329=Array['from'](_0x3aab85['getRanges']());for(const _0x48e7de of _0x4b0329){const _0x31b7fe=_0x4d5759?[_0x48e7de]:an(_0x43c67e,_0x48e7de,_0x2e2c86);for(const _0x3dc495 of _0x31b7fe)_0x14a400['markInlineFormat'](_0x3dc495,{'commandName':_0x43c67e,'commandParams':[{'forceValue':_0x4d5759}]});}});}),_0x14a400['descriptionFactory']['registerDescriptionCallback'](_0x2a4a5d=>{if('formatBlock'!=_0x2a4a5d['type']&&'formatInline'!=_0x2a4a5d['type'])return;const {data:_0x1f618b}=_0x2a4a5d;return _0x1f618b&&_0x1f618b['commandName']==_0x43c67e?_0x1f618b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x78dc88,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x78dc88,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x111508=this['editor'],_0x5920b6=_0x111508['locale'],_0x1921b4=_0x111508['plugins']['get']('TrackChangesEditing'),_0x560b4c='restrictedEditingExceptionBlock',_0x1639df=this['editor']['commands']['get'](_0x560b4c);_0x1921b4['enableCommand'](_0x560b4c,(_0x5d4e0a,_0xa4d9e0={})=>{const _0x158a0c=this['editor']['model']['document']['selection'],_0x19d36b=_0xa4d9e0&&void 0x0!==_0xa4d9e0['forceValue']?_0xa4d9e0['forceValue']:!_0x1639df['value'];let _0x26bffa=[];if(_0x19d36b){const _0x447d91=Array['from'](_0x158a0c['getSelectedBlocks']())['filter'](_0x4ac82a=>function(_0x536a4c){return!!_0x536a4c['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x4ac82a)||function(_0x55f15e,_0x29b9fe){const _0x49f5ac=_0x29b9fe['createContext'](_0x55f15e['parent']);if(!_0x29b9fe['checkChild'](_0x49f5ac,'restrictedEditingException'))return!0x1;if(!_0x29b9fe['checkChild'](_0x49f5ac['push']('restrictedEditingException'),_0x55f15e))return!0x1;return!0x0;}(_0x4ac82a,this['editor']['model']['schema']));_0x26bffa=to(_0x447d91,_0x111508['model']);}else{const _0x21773c=Array['from'](_0x158a0c['getSelectedBlocks']())['map'](_0x23f2fa=>function(_0x13c6f9){let _0x55980e=_0x13c6f9;for(;_0x55980e['parent'];){if('restrictedEditingException'==_0x55980e['parent']['name'])return _0x55980e;_0x55980e=_0x55980e['parent'];}return null;}(_0x23f2fa))['filter'](_0x8afa66=>!!_0x8afa66);_0x26bffa=to(_0x21773c,_0x111508['model']);}_0x111508['model']['change'](()=>{for(const _0x1d496a of _0x26bffa)_0x1921b4['markBlockFormat'](_0x1d496a,{'commandName':_0x560b4c,'commandParams':[{'forceValue':_0x19d36b}]});});}),_0x1921b4['descriptionFactory']['registerDescriptionCallback'](_0x2aa175=>{const {data:_0xede361}=_0x2aa175;if(_0xede361&&_0xede361['commandName']==_0x560b4c)return _0xede361['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5920b6,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5920b6,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x3274cb{['afterInit'](){const _0xa9956c=this['editor'];if(!_0xa9956c['plugins']['has']('Style')||!_0xa9956c['plugins']['has']('DataSchema'))return;const _0x57f0cb=_0xa9956c['plugins']['get']('TrackChangesEditing'),_0x59bc54=_0xa9956c['locale'],_0x96cccc=_0xa9956c['config']['get']('style')||{},_0x10bca1=_0xa9956c['plugins']['get']('GeneralHtmlSupport'),_0x3bf284=_0xa9956c['plugins']['get']('StyleUtils')['normalizeConfig'](_0xa9956c['plugins']['get']('DataSchema'),_0x96cccc['definitions']);_0x57f0cb['enableDefaultAttributesIntegration']('style');const _0x25c266=new Set();for(const _0x36fab1 of _0x3bf284['block']){const _0x434dca=_0x10bca1['getGhsAttributeNameForElement'](_0x36fab1['element']);_0x25c266['add'](_0x434dca);}const _0x12031b=new Set();for(const _0x482e83 of _0x3bf284['inline']){const _0x372683=_0x10bca1['getGhsAttributeNameForElement'](_0x482e83['element']);_0x12031b['add'](_0x372683);for(const _0x4b3f6e of _0x482e83['ghsAttributes'])_0x12031b['add'](_0x4b3f6e);}for(const _0x31ff56 of _0x25c266)_0x57f0cb['descriptionFactory']['registerAttributeLabel'](_0x31ff56,o(_0x59bc54,'FORMAT_STYLE'));for(const _0x36accc of _0x12031b)_0x57f0cb['descriptionFactory']['registerAttributeLabel'](_0x36accc,o(_0x59bc54,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ec3fa=this['editor'],_0x4084fe=_0x4ec3fa['locale'];_0x4ec3fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dd1d0=>{if('formatBlock'!=_0x1dd1d0['type']&&'formatInline'!=_0x1dd1d0['type'])return;const {data:_0x482077}=_0x1dd1d0;return _0x482077&&'style'===_0x482077['commandName']?_0x482077['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4084fe,'*Set\x20format:*\x20%0',_0x482077['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4084fe,'*Remove\x20format:*\x20%0',_0x482077['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x3274cb{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xaeaa5){super(_0xaeaa5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x559b9f=this['editor'],_0x1ae555=_0x559b9f['model']['document']['selection'];if(!_0x559b9f['plugins']['has']('TableEditing'))return;const _0x902d2=_0x559b9f['locale'],_0x5b4938=_0x559b9f['plugins']['get']('TrackChangesEditing'),_0x1e541b=_0x559b9f['plugins']['get']('TableUtils');_0x5b4938['descriptionFactory']['registerElementLabel']('table',_0x2a478e=>o(_0x902d2,'ELEMENT_TABLE',_0x2a478e)),this['_setupColumnsRowsFixing'](),_0x5b4938['enableCommand']('insertTable'),_0x5b4938['enableCommand']('selectTableRow'),_0x5b4938['enableCommand']('selectTableColumn');for(const _0x5c3b3c of['insertTableRowAbove','insertTableRowBelow']){const _0x276f1d=_0x559b9f['commands']['get'](_0x5c3b3c);_0x5b4938['enableCommand'](_0x5c3b3c,_0x20bcad=>{_0x559b9f['model']['change'](_0x4ceebe=>{_0x20bcad();const _0xe3b495='above'===_0x276f1d['order'],_0x5871cb=_0x1e541b['getSelectionAffectedTableCells'](_0x1ae555),_0x5d32b1=_0x1e541b['getRowIndexes'](_0x5871cb),_0xbf6b51=_0xe3b495?_0x5d32b1['first']-0x1:_0x5d32b1['last']+0x1,_0x4b4f1b=_0x5871cb[0x0]['findAncestor']('table'),_0x419956=_0x1e541b['createTableWalker'](_0x4b4f1b,{'startRow':_0xbf6b51,'endRow':_0xbf6b51}),_0x41dffa=Array['from'](_0x419956)['map'](_0x350dcd=>_0x4ceebe['createRangeOn'](_0x350dcd['cell']));_0x5b4938['markMultiRangeInsertion'](_0x41dffa,'tableRow');});});}for(const _0x4574c5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x17808f=_0x559b9f['commands']['get'](_0x4574c5);_0x5b4938['enableCommand'](_0x4574c5,_0x31695b=>{_0x559b9f['model']['change'](_0x281f64=>{_0x31695b();const _0x4e7f46='left'===_0x17808f['order'],_0x1dfa7d=_0x1e541b['getSelectionAffectedTableCells'](_0x1ae555),_0x3449ea=_0x1e541b['getColumnIndexes'](_0x1dfa7d),_0x3c20c4=_0x4e7f46?_0x3449ea['first']-0x1:_0x3449ea['last']+0x1,_0x3a5b06=_0x1dfa7d[0x0]['findAncestor']('table'),_0x14061c=_0x1e541b['createTableWalker'](_0x3a5b06,{'startRow':0x0,'column':_0x3c20c4,'includeAllSlots':!0x1}),_0x3fa821=Array['from'](_0x14061c)['map'](_0x362390=>_0x281f64['createRangeOn'](_0x362390['cell']));_0x5b4938['markMultiRangeInsertion'](_0x3fa821,'tableColumn');});});}for(const _0x2bdaf4 of['removeTableRow','removeTableColumn']){const _0x10e4d7=_0x2bdaf4['substr'](0xb),_0x3b36e7=_0x10e4d7['toLowerCase'](),_0x1d6ae3=_0x3b36e7['substr'](0x0,0x3)+'span',_0x10876c='table'+_0x10e4d7,_0xe34305='min'+_0x10e4d7,_0x330ccd='max'+_0x10e4d7;_0x5b4938['enableCommand'](_0x2bdaf4,()=>{_0x559b9f['model']['change'](_0x4082b8=>{const _0x3fc1b4=_0x1e541b['getSelectionAffectedTableCells'](_0x1ae555),_0x30ba25=_0x3fc1b4[0x0]['findAncestor']('table');let _0x32252d;if('removeTableRow'==_0x2bdaf4){const _0x53f35e=_0x1e541b['getRowIndexes'](_0x3fc1b4);_0x32252d={'startRow':_0x53f35e['first'],'endRow':_0x53f35e['last'],'includeAllSlots':!0x0};}else{const _0x3cf38c=_0x1e541b['getColumnIndexes'](_0x3fc1b4);_0x32252d={'startColumn':_0x3cf38c['first'],'endColumn':_0x3cf38c['last'],'includeAllSlots':!0x0};}const _0x279255=_0x1e541b['createTableWalker'](_0x30ba25,_0x32252d),_0x4a109f=Array['from'](_0x279255)['map'](({cell:_0x199861})=>_0x199861),_0x94034=_e(_0x4a109f['filter'](_0x3b7c3b=>_0x3b7c3b['hasAttribute'](_0x1d6ae3))),_0x4d601b=_e(_0x4a109f['filter'](_0x100fc3=>!_0x100fc3['hasAttribute'](_0x1d6ae3)))['map'](_0x1ff166=>_0x4082b8['createRangeOn'](_0x1ff166)),_0x5d6db7=_0x5b4938['markMultiRangeDeletion'](_0x4d601b,_0x10876c);if(_0x5d6db7&&('tableRow'==_0x5d6db7['subType']||'tableColumn'==_0x5d6db7['subType'])){const _0x2a9c67=this['_getSuggestionCoords'](_0x5d6db7);for(const _0x2b56e6 of _0x94034){const _0x99e032=_0x4082b8['createRangeOn'](_0x2b56e6),_0x2dcd35=_0x1e541b['getCellLocation'](_0x2b56e6),_0x42f565=_0x2b56e6['getAttribute'](_0x1d6ae3)-0x1,_0x9ee9d0=_0x2a9c67[_0xe34305],_0x57fa56=_0x2a9c67[_0x330ccd];_0x9ee9d0<=_0x2dcd35[_0x3b36e7]&&_0x2dcd35[_0x3b36e7]+_0x42f565<=_0x57fa56&&_0x5d6db7['addRange'](_0x99e032);}}});});}function _0x3ca5d5(_0x531d45){const _0x1f98f2=Array['from'](_0x1ae555['getRanges']())['map'](_0x3c6a4c=>_0x393f46['fromRange'](_0x3c6a4c));_0x559b9f['model']['change'](_0x1780f2=>{const _0x16fb94=_0x1780f2['batch'];_0x531d45=_0x531d45['filter'](_0x117b98=>'$graveyard'!=_0x117b98['root']['rootName']),_0x1780f2['setSelection'](_0x531d45),_0x559b9f['commands']['get']('removeTableRow')['refresh'](),_0x559b9f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x559b9f['model']['enqueueChange'](()=>{_0x559b9f['model']['enqueueChange'](_0x16fb94,_0x2bffa3=>{const _0x2c8b82=_0x1f98f2['filter'](_0x36739b=>'$graveyard'!=_0x36739b['root']['rootName']);_0x2c8b82['length']>0x0&&_0x2bffa3['setSelection'](_0x2c8b82);for(const _0x59b9b2 of _0x1f98f2)_0x59b9b2['detach']();});});});}function _0x5e58d9(_0x435bfe){_0x559b9f['model']['change'](_0x1835f2=>{const _0x326327=Array['from'](_0x1ae555['getRanges']())['map'](_0x511219=>_0x393f46['fromRange'](_0x511219)),_0x569d57=[];for(const _0x2dfdc3 of _0x435bfe)for(const _0x35e694 of _0x2dfdc3['getItems']({'shallow':!0x0}))_0x569d57['push'](_0x35e694);for(const _0x511af5 of _0x569d57)'$graveyard'!=_0x511af5['root']['rootName']&&(_0x1835f2['setSelection'](_0x1835f2['createPositionAt'](_0x511af5,0x0)),_0x559b9f['commands']['get']('removeTableColumn')['refresh'](),_0x559b9f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x197043=_0x326327['filter'](_0x3d7169=>'$graveyard'!=_0x3d7169['root']['rootName']);_0x197043['length']>0x0&&_0x1835f2['setSelection'](_0x197043);for(const _0xae3980 of _0x326327)_0xae3980['detach']();});}function _0x272403(_0x2e3ce2,_0x2b37e5){return _0x2b37e5['every'](_0x11e65f=>_0x2e3ce2['some'](_0x5eedb6=>_0x5eedb6['end']['isEqual'](_0x11e65f['start'])||_0x11e65f['end']['isEqual'](_0x5eedb6['start'])));}function _0x31e18c(_0x128e81,_0x3b5545){return!_0x128e81['some'](_0xaee241=>_0x3b5545['some'](_0x5dfd4f=>_0xaee241['isIntersecting'](_0x5dfd4f)))&&_0x128e81['some'](_0x4efccc=>_0x3b5545['some'](_0x35b270=>_0x4efccc['end']['isTouching'](_0x35b270['start'])));}_0x5b4938['descriptionFactory']['registerDescriptionCallback'](_0x4768a6=>{if('insertion'!=_0x4768a6['type']&&'deletion'!=_0x4768a6['type'])return;const _0x3b0477=_0x4768a6['getContainedElement']();if(null!=_0x3b0477&&_0x3b0477['is']('element','table')){if('insertion'==_0x4768a6['type']){const _0x185812=_0x4768a6['getItems']()['filter'](_0x307ec2=>_0x307ec2['is']('$textProxy'))['map'](_0x2a30c3=>_0x2a30c3['data']);if(_0x185812['length'])return{'type':'insertion','content':o(_0x902d2,'*Insert:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x185812['join']('\x20')+'\x22'))};}if('deletion'==_0x4768a6['type']){const _0x3a92f4=_0x4768a6['getItems']()['filter'](_0x26e245=>_0x26e245['is']('$textProxy'))['map'](_0x576d56=>_0x576d56['data']);if(_0x3a92f4['length'])return{'type':'deletion','content':o(_0x902d2,'*Remove:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a92f4['join']('\x20')+'\x22'))};}}}),_0x5b4938['descriptionFactory']['registerDescriptionCallback'](_0x4a580e=>{if('tableRow'==_0x4a580e['subType']){const _0x1d0ff8=_0x4a580e['getItems']()['filter'](_0x2bc676=>_0x2bc676['is']('$textProxy'))['map'](_0x3f03b2=>_0x3f03b2['data']),_0x4398c0=this['_getSuggestionCoords'](_0x4a580e),_0x44441d=_0x4398c0['maxRow']-_0x4398c0['minRow']+0x1;if('insertion'==_0x4a580e['type'])return _0x1d0ff8['length']?{'type':'insertion','content':o(_0x902d2,'*Insert:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x44441d,'\x22'+_0x1d0ff8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x902d2,'*Insert:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_ROW',_0x44441d))};if('deletion'==_0x4a580e['type'])return _0x1d0ff8['length']?{'type':'deletion','content':o(_0x902d2,'*Remove:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x44441d,'\x22'+_0x1d0ff8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x902d2,'*Remove:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_ROW',_0x44441d))};}if('tableColumn'==_0x4a580e['subType']){const _0x391d8f=_0x4a580e['getItems']()['filter'](_0x5711ae=>_0x5711ae['is']('$textProxy'))['map'](_0x18588c=>_0x18588c['data']),_0x13bdeb=this['_getSuggestionCoords'](_0x4a580e),_0xd4ca6a=_0x13bdeb['maxColumn']-_0x13bdeb['minColumn']+0x1;if('insertion'==_0x4a580e['type'])return _0x391d8f['length']?{'type':'insertion','content':o(_0x902d2,'*Insert:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xd4ca6a,'\x22'+_0x391d8f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x902d2,'*Insert:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_COLUMN',_0xd4ca6a))};if('deletion'==_0x4a580e['type'])return _0x391d8f['length']?{'type':'deletion','content':o(_0x902d2,'*Remove:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xd4ca6a,'\x22'+_0x391d8f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x902d2,'*Remove:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_COLUMN',_0xd4ca6a))};}}),_0x5b4938['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3ca5d5),_0x5b4938['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3ca5d5),_0x5b4938['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5e58d9),_0x5b4938['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5e58d9),_0x5b4938['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x272403),_0x5b4938['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x272403),_0x5b4938['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x31e18c),_0x5b4938['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x31e18c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1d1864=this['editor'],_0x17ed34=_0x1d1864['model']['document']['selection'];return(_0x17ec8d,_0xaade43)=>{_0x1d1864['model']['change'](_0x48e343=>{const {commandName:_0x4077f7,commandParams:_0x89e08c}=_0xaade43;let _0x21eb59=_0x17ec8d[0x0]['end']['nodeBefore'];_0x89e08c&&_0x89e08c[0x0]&&!0x1===_0x89e08c[0x0]['forceValue']&&(_0x21eb59=_0x17ec8d[0x0]['start']['nodeAfter']);const _0x33d6f6=_0x48e343['createRangeIn'](_0x21eb59);if('$graveyard'==_0x33d6f6['root']['rootName'])return;const _0x95db7d=Array['from'](_0x17ed34['getRanges']())['map'](_0x3ff51=>_0x393f46['fromRange'](_0x3ff51));_0x48e343['setSelection'](_0x33d6f6),_0x1d1864['commands']['get'](_0x4077f7)['refresh'](),_0x89e08c['push']({'forceDefaultExecution':!0x0}),_0x1d1864['execute'](_0x4077f7,..._0x89e08c);const _0x286385=_0x95db7d['filter'](_0x259da4=>'$graveyard'!=_0x259da4['root']['rootName']);_0x286385['length']>0x0&&_0x48e343['setSelection'](_0x286385);for(const _0x58fb2d of _0x95db7d)_0x58fb2d['detach']();});};}['_getCoordsForCells'](_0xb1f2f2){const _0x14f94d=this['editor']['plugins']['get']('TableUtils');let _0x1f605c=Number['MAX_SAFE_INTEGER'],_0x4b2ad5=Number['MIN_SAFE_INTEGER'],_0x4422fb=Number['MAX_SAFE_INTEGER'],_0x778167=Number['MIN_SAFE_INTEGER'];for(const _0xfc4bab of _0xb1f2f2){if('$graveyard'==_0xfc4bab['root']['rootName'])continue;const {row:_0x480ff0,column:_0x39916e}=_0x14f94d['getCellLocation'](_0xfc4bab),_0x188642=_0xfc4bab['hasAttribute']('rowspan')?_0xfc4bab['getAttribute']('rowspan')-0x1:0x0,_0x2ccf9d=_0xfc4bab['hasAttribute']('colspan')?_0xfc4bab['getAttribute']('colspan')-0x1:0x0;_0x1f605c=_0x480ff0<_0x1f605c?_0x480ff0:_0x1f605c,_0x4b2ad5=_0x480ff0+_0x188642>_0x4b2ad5?_0x480ff0+_0x188642:_0x4b2ad5,_0x4422fb=_0x39916e<_0x4422fb?_0x39916e:_0x4422fb,_0x778167=_0x39916e+_0x2ccf9d>_0x778167?_0x39916e+_0x2ccf9d:_0x778167;}return{'minRow':_0x1f605c,'maxRow':_0x4b2ad5,'minColumn':_0x4422fb,'maxColumn':_0x778167};}['_setupColumnsRowsFixing'](){const _0x2fbd74=this['editor'],_0x283e12=_0x2fbd74['plugins']['get']('TrackChangesEditing'),_0x23cbe0=_0x2fbd74['plugins']['get']('TableUtils');_0x2fbd74['model']['document']['on']('change:data',()=>{const _0x554a49=Array['from'](_0x2fbd74['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x129116,data:_0x2ef510}of _0x554a49){const {group:_0x15b0e9,id:_0x12cb4a,subType:_0x3ff517}=_0x283e12['_splitMarkerName'](_0x129116);if('suggestion'!=_0x15b0e9)continue;if(null!=_0x2ef510['oldRange'])continue;const _0x466979=_0x283e12['getSuggestion'](_0x12cb4a);this['_tablePostFixingSubtypes']['includes'](_0x3ff517)&&this['_tableSuggestions']['add'](_0x466979);}},{'priority':'low'});const _0x4ce897=(_0x3255a2,_0x51af87)=>{let _0x5f523d=!0x1;const _0x58e946=_0x51af87['createRangeOn'](_0x3255a2),_0x15d0f4=_0x3255a2['findAncestor']('table'),_0x52b68a=_0x23cbe0['getCellLocation'](_0x3255a2);for(const _0x43dfd0 of this['_tableSuggestions']){const _0x2dafc3=_0x43dfd0['subType'],_0x11138b=_0x2dafc3['startsWith']('tablePaste'),_0xefbdc5=_0x2dafc3['substr'](_0x11138b?0xa:0x5),_0x3603ea=_0xefbdc5['toLowerCase'](),_0x3fac89=_0x3603ea['substr'](0x0,0x3)+'span',_0x22b45e='min'+_0xefbdc5,_0x2778e7='max'+_0xefbdc5;if(!_0x43dfd0['isInContent'])continue;if(_0x15d0f4!=_0x43dfd0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x43dfd0['isIntersectingWithRange'](_0x58e946))continue;const _0x4193f8=_0x3255a2['hasAttribute'](_0x3fac89)?_0x3255a2['getAttribute'](_0x3fac89)-0x1:0x0,_0x209417=this['_getSuggestionCoords'](_0x43dfd0),_0xfe7565=_0x209417[_0x22b45e],_0x5ca493=_0x209417[_0x2778e7];_0xfe7565<=_0x52b68a[_0x3603ea]&&_0x52b68a[_0x3603ea]+_0x4193f8<=_0x5ca493&&(_0x43dfd0['addRange'](_0x58e946),_0x5f523d=!0x0);}return _0x5f523d;};_0x2fbd74['model']['document']['registerPostFixer'](_0x3f635a=>{let _0x2ce5b9=!0x1;for(const _0x2f9052 of _0x2fbd74['model']['document']['differ']['getChanges']())if('insert'==_0x2f9052['type']){if('tableRow'==_0x2f9052['name']){for(const _0x436616 of _0x2f9052['position']['nodeAfter']['getChildren']())_0x2ce5b9=_0x2ce5b9||_0x4ce897(_0x436616,_0x3f635a);}else'tableCell'==_0x2f9052['name']&&(_0x2ce5b9=_0x2ce5b9||_0x4ce897(_0x2f9052['position']['nodeAfter'],_0x3f635a));}return _0x2ce5b9;});}['_getSuggestionCoords'](_0x4dd7a4){return this['_getCoordsForCells'](_0x4dd7a4['getRanges']()['map'](_0x51fad8=>_0x51fad8['start']['nodeAfter']));}}function _e(_0x3e7782){return Array['from'](new Set(_0x3e7782)['values']());}class $t extends _0x3274cb{static get['requires'](){return[Nt];}['afterInit'](){const _0xcc6f9a=this['editor'],_0x308422=_0xcc6f9a['model']['document']['selection'],_0xcb6e57=_0xcc6f9a['locale'];if(!_0xcc6f9a['plugins']['has']('TableEditing'))return;const _0x11dc47=_0xcc6f9a['plugins']['get']('TrackChangesEditing'),_0x4c8b78=_0xcc6f9a['plugins']['get']('TableUtils'),_0x4f7ea0=_0xcc6f9a['plugins']['get'](Nt);_0x4f7ea0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x11dc47['enableCommand']('mergeTableCells',()=>{const _0x3df31f=_0x4c8b78['getSelectionAffectedTableCells'](_0xcc6f9a['model']['document']['selection']);_0xcc6f9a['model']['change'](()=>{_0x11dc47['markMultiRangeBlockFormat'](_0x3df31f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xcc6f9a['commands']['get']('mergeTableCells')['on']('execute',(_0x3ba54f,_0x1bd464)=>{_0xcc6f9a['commands']['get']('trackChanges')['value']&&(_0x1bd464['length']>0x0&&_0x1bd464[_0x1bd464['length']-0x1]&&_0x1bd464[_0x1bd464['length']-0x1]['forceDefaultExecution']||_0x11dc47['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3ba54f['stop']());},{'priority':'highest'});for(const _0x3603c5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x120aeb=_0xcc6f9a['commands']['get'](_0x3603c5);_0x11dc47['enableCommand'](_0x3603c5,()=>{const _0x689703=_0xcc6f9a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x29c577=>_0x29c577['is']('element','tableCell')),_0x529c6c=_0x120aeb['value'];_0xcc6f9a['model']['change'](()=>{_0x11dc47['markMultiRangeBlockFormat']([_0x689703,_0x529c6c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x32dd1a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x779bf3=_0xcc6f9a['commands']['get'](_0x32dd1a);_0x11dc47['enableCommand'](_0x32dd1a,()=>{const _0x5576c6=_0x4c8b78['getSelectionAffectedTableCells'](_0xcc6f9a['model']['document']['selection'])[0x0],_0x2b98cd=_0x5576c6['findAncestor']('table'),{column:_0xda1bdc,row:_0x56c5f6}=_0x4c8b78['getCellLocation'](_0x5576c6);let _0x52b9a0=[];if('horizontally'==_0x779bf3['direction']){const _0x3e0d02=_0x4c8b78['createTableWalker'](_0x2b98cd,{'startRow':_0x56c5f6,'endRow':_0x56c5f6,'includeAllSlots':!0x0});_0x52b9a0=Array['from'](_0x3e0d02)['map'](_0x5dc701=>_0x5dc701['cell']);}else{const _0x2c5d32=_0x4c8b78['createTableWalker'](_0x2b98cd,{'column':_0xda1bdc,'includeAllSlots':!0x0});_0x52b9a0=Array['from'](_0x2c5d32)['map'](_0x68ea18=>_0x68ea18['cell']);}_0xcc6f9a['model']['change'](_0x112949=>{_0x11dc47['markBlockFormat'](_0x112949['createRangeOn'](_0x5576c6),{'commandName':_0x32dd1a,'commandParams':[]},_0x52b9a0,_0x32dd1a);});});}_0x11dc47['descriptionFactory']['registerDescriptionCallback'](_0x30f9ea=>{if('formatBlock'!=_0x30f9ea['type']&&'formatInline'!=_0x30f9ea['type'])return;const {data:_0x59141f}=_0x30f9ea;return _0x59141f&&'mergeTableCells'==_0x59141f['commandName']?{'type':'format','content':o(_0xcb6e57,'*Merge\x20cells*')}:void 0x0;}),_0x11dc47['descriptionFactory']['registerDescriptionCallback'](_0x27472a=>{if('formatBlock'!=_0x27472a['type']&&'formatInline'!=_0x27472a['type'])return;const {data:_0x10900c}=_0x27472a;return _0x10900c?'splitTableCellVertically'==_0x10900c['commandName']?{'type':'format','content':o(_0xcb6e57,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x10900c['commandName']?{'type':'format','content':o(_0xcb6e57,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x43198e=_0x4f7ea0['_acceptFormatSuggestionCallbackFactory']();for(const _0x45dc61 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x11dc47['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45dc61,'accept',_0x43198e);for(const _0x3a8456 of['splitTableCellVertically','splitTableCellHorizontally'])_0x11dc47['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a8456,'accept',_0x43198e);_0x11dc47['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x45ea88=>{_0xcc6f9a['model']['change'](_0x22bb17=>{const _0x2130f5=Array['from'](_0x308422['getRanges']())['map'](_0x11af31=>_0x393f46['fromRange'](_0x11af31));_0x22bb17['setSelection'](_0x45ea88),_0xcc6f9a['commands']['get']('mergeTableCells')['refresh'](),_0xcc6f9a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x352d5e=_0x2130f5['filter'](_0x122bdb=>'$graveyard'!=_0x122bdb['root']['rootName']);_0x352d5e['length']>0x0&&_0x22bb17['setSelection'](_0x352d5e);for(const _0xa7b6fd of _0x2130f5)_0xa7b6fd['detach']();});});for(const _0x4a9a2d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2ff231=_0xcc6f9a['commands']['get'](_0x4a9a2d);_0x2ff231['on']('set:isEnabled',(_0xd9887e,_0x38ec3d,_0x4dde49)=>{if(_0x4dde49){const _0x2a1bea=_0xcc6f9a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4b31fb=>_0x4b31fb['is']('element','tableCell'));this['_areMergableCells'](_0x2ff231['value'],_0x2a1bea)||(_0xd9887e['return']=!0x1,_0xd9887e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4a018a=this['editor']['commands']['get']('mergeTableCells'),_0x179379=this['editor']['plugins']['get']('TableUtils');if(!_0x4a018a['isEnabled'])return!0x1;const _0x12fad1=_0x179379['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x54eac2 of _0x12fad1)for(const _0x2ba94c of _0x12fad1)if(_0x54eac2!=_0x2ba94c&&!this['_areMergableCells'](_0x54eac2,_0x2ba94c))return!0x1;return!0x0;}['_areMergableCells'](_0x1de15b,_0x1774a8){const _0x128553=this['editor']['plugins']['get']('TrackChangesEditing'),_0x478510=this['editor']['model']['createRangeOn'](_0x1de15b),_0x275f8a=this['editor']['model']['createRangeOn'](_0x1774a8),_0x5b0ba6=new Set(),_0x2a287=new Set();for(const _0x52e946 of _0x128553['getSuggestions']())if(('insertion'==_0x52e946['type']||'deletion'==_0x52e946['type']||'mergeTableCells'==_0x52e946['subType'])&&_0x52e946['isInContent']){for(const _0x558c84 of _0x52e946['getRanges']())_0x558c84['containsRange'](_0x478510,!0x0)&&_0x5b0ba6['add'](_0x52e946['type']+':'+_0x52e946['author']['id']),_0x558c84['containsRange'](_0x275f8a,!0x0)&&_0x2a287['add'](_0x52e946['type']+':'+_0x52e946['author']['id']);}if(_0x5b0ba6['size']!=_0x2a287['size'])return!0x1;for(const _0x36607e of _0x5b0ba6)if(!_0x2a287['has'](_0x36607e))return!0x1;return!0x0;}}class vt extends _0x3274cb{static get['requires'](){return[Nt];}['afterInit'](){const _0x4b7790=this['editor'];if(!_0x4b7790['plugins']['has']('TableEditing'))return;const _0x519074=_0x4b7790['locale'],_0x37e456=_0x4b7790['plugins']['get']('TrackChangesEditing');_0x37e456['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x37e456['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x37e456['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x519074,'FORMAT_HEADER_ROW')),_0x37e456['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x519074,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x32b10b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x314f56=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x32b10b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x314f56),_0x32b10b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x314f56),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x4fd53a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdc1be7=this['editor']['plugins']['get']('TableUtils');function _0x4c869c({showActiveMarker:_0x29ecee=!0x0,setDataAttribute:_0x4bbcc7=!0x0}={}){return(_0x5524cd,_0x2f603c,_0x41c9ff)=>{const {type:_0x54f03b,id:_0x7294c1}=_0x4fd53a['_splitMarkerName'](_0x2f603c['markerName']);if(!_0x4fd53a['hasSuggestion'](_0x7294c1))return;const _0x33652d=_0x4fd53a['getSuggestion'](_0x7294c1),_0x58dd45=_0x33652d['data'];if('formatBlock'!=_0x33652d['type']||!_0x58dd45||'setTableColumnHeader'!=_0x58dd45['commandName'])return;if(_0x2f603c['item'])return void _0x5524cd['stop']();if(!_0x41c9ff['consumable']['consume'](_0x2f603c['markerRange'],_0x5524cd['name']))return;const _0xa0de60=_0x2f603c['markerRange']['start']['nodeAfter'],_0x321d85=_0x2f603c['markerRange']['end']['nodeBefore'],_0x372044=_0xa0de60['parent']['parent'],{column:_0x5e1d8f}=_0xdc1be7['getCellLocation'](_0xa0de60),{column:_0x14bdba}=_0xdc1be7['getCellLocation'](_0x321d85);for(let _0x4b0809=_0x5e1d8f;_0x4b0809<=_0x14bdba;_0x4b0809++){const _0x1d5fa4=_0xdc1be7['createTableWalker'](_0x372044,{'column':_0x4b0809,'includeAllSlots':!0x1});for(const _0x552156 of _0x1d5fa4){const _0x342b65=_0x552156['cell'],_0x36876a=_0x41c9ff['mapper']['toViewElement'](_0x342b65);_0x41c9ff['writer']['addClass']('ck-suggestion-marker-'+_0x54f03b,_0x36876a),_0x4bbcc7&&_0x41c9ff['writer']['setAttribute']('data-suggestion',_0x7294c1,_0x36876a),_0x41c9ff['mapper']['bindElementToMarker'](_0x36876a,_0x2f603c['markerName']),_0x29ecee&&(_0x4fd53a['activeMarkers']['includes'](_0x2f603c['markerName'])?_0x41c9ff['writer']['addClass']('ck-suggestion-marker--active',_0x36876a):_0x41c9ff['writer']['removeClass']('ck-suggestion-marker--active',_0x36876a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4c869c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x23de5b,_0x2cba08,_0x2f1f81)=>{_0x2f1f81['options']['showSuggestionHighlights']&&_0x4c869c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x23de5b,_0x2cba08,_0x2f1f81);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2bf7a8,_0x4ed65c,_0x20d59e)=>{const {type:_0x1d4637,id:_0x540fff}=_0x4fd53a['_splitMarkerName'](_0x4ed65c['markerName']);if(!_0x4fd53a['hasSuggestion'](_0x540fff))return;const _0x446019=_0x4fd53a['getSuggestion'](_0x540fff),_0xd42590=_0x446019['data'];if('formatBlock'!=_0x446019['type']||!_0xd42590||'setTableColumnHeader'!=_0xd42590['commandName'])return;const _0x161a1c=_0x20d59e['mapper']['markerNameToElements'](_0x4ed65c['markerName']);if(_0x161a1c){for(const _0x35ae15 of _0x161a1c)_0x20d59e['writer']['removeClass']('ck-suggestion-marker-'+_0x1d4637,_0x35ae15),_0x20d59e['writer']['removeClass']('ck-suggestion-marker--active',_0x35ae15),_0x20d59e['writer']['removeAttribute']('data-suggestion',_0x35ae15),_0x20d59e['mapper']['unbindElementFromMarkerName'](_0x35ae15,_0x4ed65c['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x18c7bc=this['editor'],_0x54b285=_0x18c7bc['locale'];function _0x34c4ab(_0x597fe7){return{'type':'format','content':o(_0x54b285,'*Format:*\x20%0',_0x597fe7)};}_0x18c7bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x324f59=>{if('formatBlock'!=_0x324f59['type'])return;const {data:_0x18a504}=_0x324f59;if(_0x18a504){if('setTableRowHeader'==_0x18a504['commandName']){const _0x509f99=_0x18a504['commandParams'][0x0]['forceValue'];return _0x34c4ab(o(_0x54b285,_0x509f99?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x18a504['commandName']){const _0x5ace12=_0x18a504['commandParams'][0x0]['forceValue'];return _0x34c4ab(o(_0x54b285,_0x5ace12?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x3274cb{['afterInit'](){const _0x1056f2=this['editor'],_0x230659=_0x1056f2['locale'],_0x3cf3bd=_0x1056f2['plugins']['get']('TrackChangesEditing');function _0x5ace18(_0x10da91){return{'type':'format','content':''+o(_0x230659,'*Set\x20table\x20type:*\x20%0',_0x10da91)};}_0x1056f2['plugins']['has']('TableLayout')&&(_0x3cf3bd['enableCommand']('insertTableLayout'),_0x3cf3bd['enableDefaultAttributesIntegration']('tableType'),_0x3cf3bd['descriptionFactory']['registerElementLabel'](_0x5634cc=>_0x5634cc['is']('element','table')&&'layout'===_0x5634cc['getAttribute']('tableType'),_0x4ccdbc=>o(_0x230659,'ELEMENT_LAYOUT_TABLE',_0x4ccdbc)),_0x3cf3bd['descriptionFactory']['registerDescriptionCallback'](_0x2b8f7b=>{const {data:_0x4e1c34}=_0x2b8f7b;if(_0x4e1c34&&'tableType'==_0x4e1c34['key'])switch(_0x4e1c34['newValue']){case'layout':return _0x5ace18(o(_0x230659,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5ace18(o(_0x230659,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x291c19=>[_0x291c19,null]));class Bt extends _0x3274cb{static get['requires'](){return[Nt];}['afterInit'](){const _0x289ef9=this['editor'];if(!_0x289ef9['plugins']['has']('TableClipboard'))return;const _0x4371af=_0x289ef9['plugins']['get']('TrackChangesEditing'),_0x42240e=_0x289ef9['plugins']['get']('TableUtils'),_0x311383=_0x289ef9['plugins']['get'](Nt),_0x4bad4b=_0x289ef9['plugins']['get']('TableClipboard'),_0x20167e=_0x289ef9['plugins']['get']('TableSelection'),_0x1d0b25=_0x289ef9['plugins']['get'](_0x28c363);_0x311383['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x289ef9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x289ef9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x456ec5=null,_0x2489da=!0x1;_0x1d0b25['on']('contentInsertion',(_0x20f4f3,_0x351af1)=>{_0x2489da='paste'===_0x351af1['method'];}),_0x289ef9['model']['on']('insertContent',(_0x1cf55d,_0x256eeb)=>{if(!_0x2489da&&null===_0x20167e['getSelectedTableCells']())return;const [_0x57c860,_0x652165]=_0x256eeb,_0x45a20d=_0x256eeb[_0x256eeb['length']-0x1];_0x45a20d&&_0x45a20d['forceDefaultExecution']||_0x4371af['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3002f2,_0x6ef778,_0x5716c7,_0x535b44,_0x103864){if(_0x6ef778&&!_0x6ef778['is']('documentSelection'))return!0x1;const _0x5ca2c4=_0x103864['getTableIfOnlyTableInContent'](_0x3002f2,_0x5716c7);if(!_0x5ca2c4||!Oe(_0x5ca2c4,void 0x0,_0x535b44))return!0x1;const _0x3a3ad5=_0x535b44['getSelectionAffectedTableCells'](_0x5716c7['document']['selection']);if(!_0x3a3ad5['length'])return!0x1;const _0x2d7304=_0x3a3ad5[0x0]['findAncestor']('table'),_0x233578=_0x535b44['getRowIndexes'](_0x3a3ad5),_0x238e2e=_0x535b44['getColumnIndexes'](_0x3a3ad5),_0x4f85db={'startRow':_0x233578['first'],'endRow':_0x233578['last'],'startColumn':_0x238e2e['first'],'endColumn':_0x238e2e['last']};return 0x1==_0x3a3ad5['length']&&(_0x4f85db['endRow']+=_0x535b44['getRows'](_0x5ca2c4)-0x1,_0x4f85db['endColumn']+=_0x535b44['getColumns'](_0x5ca2c4)-0x1),Oe(_0x2d7304,_0x4f85db,_0x535b44);}(_0x57c860,_0x652165,_0x289ef9['model'],_0x42240e,_0x4bad4b)&&(_0x1cf55d['stop'](),_0x456ec5={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x289ef9['model']['change'](()=>{_0x289ef9['model']['insertContent'](_0x256eeb[0x0],_0x256eeb[0x1],_0x256eeb[0x2],{'forceDefaultExecution':!0x0});const _0x5e7578=_0x531b89(),{rowInsertionRanges:_0x368b1a,columnInsertionRanges:_0x290cb6,insertionRanges:_0x31f5bb,deletionRanges:_0x2db78a,cells:_0x149908}=_0x456ec5;_0x368b1a['length']&&_0x4371af['markMultiRangeInsertion'](_0x368b1a,'tablePasteRow',{'tablePasteChainId':_0x5e7578}),_0x290cb6['length']&&_0x4371af['markMultiRangeInsertion'](_0x290cb6,'tablePasteColumn',{'tablePasteChainId':_0x5e7578}),_0x31f5bb['length']&&(_0x4371af['markMultiRangeInsertion'](_0x31f5bb,'tablePaste',{'tablePasteChainId':_0x5e7578,'skipNestingCheck':!0x0}),_0x31f5bb['forEach'](_0x4badcd=>_0x4badcd['detach']?.())),_0x2db78a['length']&&(_0x4371af['markMultiRangeDeletion'](_0x2db78a,'tablePaste',{'tablePasteChainId':_0x5e7578,'skipNestingCheck':!0x0}),_0x2db78a['forEach'](_0x4435ad=>_0x4435ad['detach']?.()));const _0x2a62db=_0x4371af['markMultiRangeBlockFormat'](_0x149908['map'](({element:_0x233791})=>_0x233791),{'formatGroupId':_0x531b89()},[],'tablePasteCell',{'tablePasteChainId':_0x5e7578});if(_0x2a62db){const _0x1ca331=_0x2a62db['getMarkers'](),_0x5487d5=[];for(const {element:_0x2e5781,attributes:_0x515e28}of _0x149908){if(!_0x515e28)continue;const _0x361d6b=_0x289ef9['model']['createRangeOn'](_0x2e5781),_0xa9976=_0x1ca331['find'](_0x5446b4=>_0x5446b4['getRange']()['isEqual'](_0x361d6b));_0xa9976&&_0x5487d5['push']([_0xa9976['name'],_0x515e28]);}_0x5487d5['length']&&_0x2a62db['setAttribute']('markerAttributes',Object['fromEntries'](_0x5487d5));}_0x456ec5=null;}));},{'priority':_0x296698['high']+0xa}),_0x1d0b25['on']('contentInsertion',()=>{_0x2489da=!0x1;},{'priority':'lowest'}),_0x289ef9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5b17de,_0xe60138)=>{const [_0x47517b,_0x52796b,,_0x421b81]=_0xe60138;if(!_0x456ec5)return;_0x5b17de['stop']();const _0x3dde6b=_0x47517b['cell'],_0x5ad67d=_0x52796b,_0x4c4227=Be(_0x3dde6b),_0x5bcb44=Be(_0x5ad67d);_0x5b17de['return']=_0x3dde6b;let _0x4a6e0e=null,_0x5b0ec0=null;if(_0x5bcb44||_0x4c4227){if(_0x4c4227&&!_0x5bcb44){_0x421b81['remove'](_0x3dde6b['getChild'](0x0));for(const _0x2978af of Array['from'](_0x5ad67d['getChildren']()))_0x421b81['insert'](_0x2978af,_0x3dde6b,'end');const _0xc5d79a=_0x456ec5['rowInsertionIndexes']['includes'](_0x47517b['row']),_0x452851=_0x456ec5['columnInsertionIndexes']['includes'](_0x47517b['column']);_0xc5d79a||_0x452851||(_0x4a6e0e=_0x393f46['fromRange'](_0x421b81['createRangeIn'](_0x3dde6b)));}else _0x5bcb44&&!_0x4c4227&&(_0x5b0ec0=_0x421b81['createRangeIn'](_0x3dde6b));}else{const _0x58b5b5=_0x421b81['createElement']('tableCellSuggestion'),_0x2534e4=_0x421b81['createElement']('tableCellSuggestion');_0x421b81['wrap'](_0x421b81['createRangeIn'](_0x3dde6b),_0x2534e4),_0x421b81['insert'](_0x58b5b5,_0x3dde6b,0x0);for(const _0x540274 of Array['from'](_0x5ad67d['getChildren']()))_0x421b81['insert'](_0x540274,_0x58b5b5,'end');_0x4a6e0e=_0x393f46['fromRange'](_0x421b81['createRangeOn'](_0x58b5b5)),_0x5b0ec0=_0x393f46['fromRange'](_0x421b81['createRangeOn'](_0x2534e4));}const _0x40aa96=Array['from'](_0x5ad67d['getAttributes']())['filter'](([_0x455f30])=>Re['includes'](_0x455f30));_0x456ec5['cells']['push']({'element':_0x3dde6b,'attributes':_0x40aa96['length']?Object['fromEntries'](_0x40aa96):null}),_0x4a6e0e&&_0x456ec5['insertionRanges']['push'](_0x4a6e0e),_0x5b0ec0&&_0x456ec5['deletionRanges']['push'](_0x5b0ec0);},{'priority':'high'}),_0x42240e['on']('insertColumns',(_0x31fecf,_0x11c2be)=>{const [_0x3fc6f4,_0x45f47d={}]=_0x11c2be;if(!_0x456ec5)return;const _0x191eba=_0x45f47d['at']||0x0,_0x1558e9=_0x45f47d['columns']||0x1;_0x456ec5['columnInsertionIndexes']=new Array(_0x1558e9)['fill'](_0x191eba)['map']((_0xf0be58,_0x4adfe1)=>_0xf0be58+_0x4adfe1);for(const {cell:_0x54db6b}of _0x42240e['createTableWalker'](_0x3fc6f4,{'startColumn':_0x191eba,'endColumn':_0x191eba+_0x1558e9-0x1}))_0x456ec5['columnInsertionRanges']['push'](_0x289ef9['model']['createRangeOn'](_0x54db6b));},{'priority':'low'}),_0x42240e['on']('insertRows',(_0x294186,_0x3339cd)=>{const [_0x194565,_0x43f235={}]=_0x3339cd;if(!_0x456ec5)return;const _0x532afb=_0x43f235['at']||0x0,_0x1025a2=_0x43f235['rows']||0x1;_0x456ec5['rowInsertionIndexes']=new Array(_0x1025a2)['fill'](_0x532afb)['map']((_0x194843,_0x54ee54)=>_0x194843+_0x54ee54);for(const {cell:_0x46e4b7}of _0x42240e['createTableWalker'](_0x194565,{'startRow':_0x532afb,'endRow':_0x532afb+_0x1025a2-0x1}))_0x456ec5['rowInsertionRanges']['push'](_0x289ef9['model']['createRangeOn'](_0x46e4b7));},{'priority':'low'}),_0x4371af['descriptionFactory']['registerDescriptionCallback'](_0x41b946=>{if(_0x41b946['subType']&&_0x41b946['subType']['startsWith']('tablePaste'))return _0x41b946['previous']?{}:{'type':'insertion','content':o(_0x289ef9['locale'],'*Replace\x20table\x20cells*')};});const _0x48f747=()=>!0x1;for(const _0x558706 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4371af['_suggestionFactory']['registerCustomCallback']('insertion',_0x558706,'join',_0x48f747),_0x4371af['_suggestionFactory']['registerCustomCallback']('deletion',_0x558706,'join',_0x48f747),_0x4371af['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x558706,'join',_0x48f747);_0x4371af['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x48f747),_0x4371af['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc47d74,_0x432292,_0x4f4f26)=>{const _0x4d66d8=_0xc47d74['map'](_0x20bf83=>_0x20bf83['getContainedElement']())['filter'](_0x4ef84b=>_0x4ef84b),_0x56c7f3=new Map(_0x4d66d8['map'](_0x4f60c1=>[_0x4f60c1,null]));if(_0x456ec5){for(const {element:_0x4c4dc5,attributes:_0x3510b2}of _0x456ec5['cells'])_0x3510b2&&_0x56c7f3['set'](_0x4c4dc5,_0x3510b2);}else{if(_0x4f4f26&&_0x4f4f26['markerAttributes'])for(const [_0x4c80a0,_0x469359]of Object['entries'](_0x4f4f26['markerAttributes'])){const _0x24616f=_0x289ef9['model']['markers']['get'](_0x4c80a0),_0x5ddfb5=_0x24616f?_0x24616f['getRange']()['getContainedElement']():null;_0x5ddfb5&&_0x56c7f3['set'](_0x5ddfb5,_0x469359);}}_0x289ef9['model']['change'](_0x3435ec=>{for(const [_0x4df414,_0x1be537]of _0x56c7f3)_0x3435ec['setAttributes']({...Ae,..._0x1be537},_0x4df414);});});const _0x1a1e2d=(_0x28eb90,_0x22e399)=>{_0x4371af['_suggestionFactory']['registerCustomCallback'](_0x28eb90,'tablePaste',_0x22e399,(_0x4aaf19,_0xddb243,_0x11234b)=>{_0x289ef9['model']['change'](_0x5006f9=>{const _0x2d1f8c=[];for(const _0x1ad5f8 of _0x4aaf19){const _0x3f2560=_0x1ad5f8['start']['nodeAfter'];_0x3f2560['is']('element','tableCellSuggestion')&&_0x2d1f8c['push'](_0x3f2560);}_0x4371af['_suggestionFactory']['getSuggestionCallback'](_0x28eb90,null,_0x22e399)(_0x4aaf19,_0xddb243,_0x11234b);for(const _0x220225 of _0x2d1f8c)'$graveyard'!=_0x220225['root']['rootName']&&_0x5006f9['unwrap'](_0x220225);});});};_0x1a1e2d('insertion','accept'),_0x1a1e2d('insertion','discard'),_0x1a1e2d('deletion','accept'),_0x1a1e2d('deletion','discard'),_0x4371af['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2cc37e=>{const _0x404209=_0x2cc37e['map'](_0x5801cd=>_0x5801cd['getContainedElement']()),_0x5e6d19=_0x404209[0x0]['findAncestor']('table'),{minRow:_0x54a7df,maxRow:_0x3dfd45}=_0x311383['_getCoordsForCells'](_0x404209);_0x42240e['removeRows'](_0x5e6d19,{'at':_0x54a7df,'rows':_0x3dfd45-_0x54a7df+0x1});}),_0x4371af['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1e23f3=>{const _0x3e873b=_0x1e23f3['map'](_0x3f9c74=>_0x3f9c74['getContainedElement']()),_0x2f97e0=_0x3e873b[0x0]['findAncestor']('table'),{minColumn:_0x5265c8,maxColumn:_0x14c332}=_0x311383['_getCoordsForCells'](_0x3e873b);_0x42240e['removeColumns'](_0x2f97e0,{'at':_0x5265c8,'columns':_0x14c332-_0x5265c8+0x1});});const _0x31be90=(_0x201338,_0x2bfe66)=>{if(!_0x2bfe66['subType']||!_0x2bfe66['subType']['startsWith']('tablePaste'))return;const _0x389253=_0x2bfe66['attributes']['tablePasteChainId'],_0x2591ed=_0x4371af['getSuggestions']()['filter'](_0x2853f1=>_0x2853f1['isInContent']&&_0x2853f1['attributes']&&_0x2853f1['attributes']['tablePasteChainId']==_0x389253);_0x2591ed['length']&&_0x2bfe66['getAllAdjacentSuggestions']()['length']!=_0x2591ed['length']&&_0x2591ed['reduce']((_0x5656a0,_0x3c8b05)=>(_0x5656a0['next']=_0x3c8b05,_0x3c8b05['previous']=_0x5656a0,_0x3c8b05));};function _0x58d32b(_0x41bdba,_0x1c6a5b=!0x0){const {id:_0x297a2e,authorId:_0x455c31}=_0x4371af['_splitMarkerName'](_0x41bdba['markerName']),_0x4892eb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x474f2a=_0x4371af['activeMarkers']['includes'](_0x41bdba['markerName']);return _0x474f2a&&_0x4892eb['push']('ck-suggestion-marker--active'),{'classes':_0x4892eb,'attributes':{'data-suggestion':_0x297a2e,'data-author-id':_0x455c31},'priority':_0x474f2a&&_0x1c6a5b?0xbc2:0xbb8};}_0x4371af['on']('suggestionLoaded',_0x31be90,{'priority':'high'}),_0x4371af['on']('suggestionUnloaded',_0x31be90,{'priority':'high'}),_0x289ef9['model']['document']['registerPostFixer'](()=>{let _0x5747e7=!0x1;const _0x16cfc4=Array['from'](_0x289ef9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3151e2,data:_0x1f4947}of _0x16cfc4){const {group:_0x5d896d,type:_0x212c88,id:_0xbb7ad5}=_0x4371af['_splitMarkerName'](_0x3151e2);if('suggestion'!=_0x5d896d||'deletion'!=_0x212c88||_0x1f4947['oldRange'])continue;if(!_0x4371af['hasSuggestion'](_0xbb7ad5))continue;const _0x19447c=_0x4371af['getSuggestion'](_0xbb7ad5)['getRanges'](),_0x80858=_0x289ef9['plugins']['get']('Users')['me'];for(const _0x21f801 of _0x4371af['getSuggestions']()){if(!_0x21f801['isInContent']||_0x21f801['author']!=_0x80858)continue;if('formatBlock'!=_0x21f801['type']||'tablePasteCell'!=_0x21f801['subType'])continue;if(_0x21f801['getRanges']()['every'](_0x2f41a7=>_0x19447c['some'](_0x3e48ef=>_0x3e48ef['containsRange'](_0x2f41a7,!0x0)))){for(const _0x3d81c5 of _0x21f801['getAllAdjacentSuggestions']())_0x3d81c5['isInContent']&&(_0x3d81c5['discard'](),_0x5747e7=!0x0);}}}return _0x5747e7;}),_0x289ef9['model']['document']['registerPostFixer'](_0x3fda2c=>{const _0xefb514=_0x289ef9['commands']['get']('redo');if(!_0xefb514||!_0xefb514['_createdBatches']['has'](_0x3fda2c['batch']))return!0x1;let _0x442a3c=!0x1;const _0x1041e1=_0x289ef9['plugins']['get']('Users')['me'],_0x23e706=_0x289ef9['model']['document']['differ']['getChanges'](),_0x5df5e0=Array['from'](_0x289ef9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x52d076,data:_0x2e8497})=>{const {group:_0x176c80,subType:_0x131ec6,authorId:_0x18f917}=_0x4371af['_splitMarkerName'](_0x52d076);return'suggestion'==_0x176c80&&'tablePaste'==_0x131ec6&&_0x18f917==_0x1041e1['id']&&!_0x2e8497['oldRange'];});for(const _0x302b77 of _0x23e706){if('insert'!=_0x302b77['type']||'tableCellSuggestion'!=_0x302b77['name']||0x1!=_0x302b77['length'])continue;const _0x160de7=_0x3fda2c['createRange'](_0x302b77['position'],_0x302b77['position']['getShiftedBy'](0x1));if(!_0x5df5e0['find'](({data:_0x3295bf})=>_0x3295bf['newRange']['isEqual'](_0x160de7))){for(const {name:_0x278c65,data:_0x12d380}of _0x5df5e0)if(_0x160de7['containsRange'](_0x12d380['newRange'])){_0x3fda2c['updateMarker'](_0x278c65,{'range':_0x160de7}),_0x442a3c=!0x0;break;}}}return _0x442a3c;}),_0x289ef9['model']['document']['registerPostFixer'](_0x22265c=>{let _0x1d99fe=!0x1;const _0x2859d4=_0x289ef9['plugins']['get']('Users')['me'],_0x372473=_0x4371af['getSuggestions']()['filter'](_0x383575=>_0x383575['isInContent']&&_0x383575['author']==_0x2859d4),_0x51c895=new Set(),_0x3a758a=new Set();for(const _0x13fabb of _0x372473)if('tablePaste'==_0x13fabb['subType'])for(const _0x2a4a34 of _0x13fabb['getMarkers']()){const _0x1d3bdf=_0x2a4a34['getRange']()['getContainedElement']();if(_0x1d3bdf){if(_0x1d3bdf['is']('element','tableCellSuggestion')&&Be(_0x1d3bdf)){_0x13fabb['removeMarker'](_0x2a4a34['name']),_0x51c895['add'](_0x1d3bdf),_0x1d99fe=!0x0;const _0x532008=_0x1d3bdf['nextSibling'],_0x477afb=_0x1d3bdf['previousSibling'],_0x14cc23=_0x532008&&_0x532008['is']('element','tableCellSuggestion'),_0x1e0f5b=_0x477afb&&_0x477afb['is']('element','tableCellSuggestion');_0x14cc23&&!_0x51c895['has'](_0x532008)&&_0x3a758a['add'](_0x532008),_0x1e0f5b&&!_0x51c895['has'](_0x477afb)&&_0x3a758a['add'](_0x477afb);}else _0x1d3bdf['is']('element','paragraph')&&_0x1d3bdf['isEmpty']&&(_0x13fabb['removeMarker'](_0x2a4a34['name']),_0x1d99fe=!0x0);}}else{if('tablePasteCell'==_0x13fabb['subType']){if(!_0x13fabb['attributes']||!_0x13fabb['attributes']['tablePasteChainId'])continue;const _0x3f9fc9=_0x13fabb['attributes']['markerAttributes'];if(_0x3f9fc9&&Object['keys'](_0x3f9fc9)['length'])continue;const _0x47bcbd=_0x13fabb['attributes']['tablePasteChainId'];let _0x5da646=!0x0,_0x33b440=!0x0;for(const _0x29ec43 of _0x372473)if(_0x29ec43['subType']&&_0x29ec43['subType']['startsWith']('tablePaste')){if(!_0x29ec43['attributes']['tablePasteChainId']){_0x33b440=!0x1;break;}if(_0x29ec43['id']!=_0x13fabb['id']&&_0x29ec43['attributes']['tablePasteChainId']==_0x47bcbd){_0x5da646=!0x1;break;}}_0x33b440&&_0x5da646&&(_0x13fabb['removeMarkers'](),_0x1d99fe=!0x0);}}for(const _0x5d48a0 of _0x51c895)_0x22265c['remove'](_0x5d48a0);for(const _0x14ebe3 of _0x3a758a)_0x22265c['unwrap'](_0x14ebe3);return _0x1d99fe;}),_0x289ef9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x41f033=>_0x58d32b(_0x41f033),'converterPriority':'high'}),_0x289ef9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x183c9b,_0x23674e)=>_0x23674e['options']['showSuggestionHighlights']?_0x58d32b(_0x183c9b,!0x1):null,'converterPriority':'high'});const _0x52736a=_0x289ef9['editing']['view'];this['listenTo'](_0x52736a['document'],'clipboardOutput',(_0x4a3b99,_0x104d18)=>{const _0x356e80=[];for(const _0x17052e of _0x52736a['createRangeIn'](_0x104d18['content'])['getItems']())_0x17052e['is']('element','suggestion-td')&&_0x356e80['push'](_0x17052e);_0x52736a['change'](_0x311e0c=>{for(const _0x5c3a5a of _0x356e80)_0x311e0c['move'](_0x311e0c['createRangeIn'](_0x5c3a5a),_0x311e0c['createPositionBefore'](_0x5c3a5a)),_0x311e0c['remove'](_0x5c3a5a);});});}}function Be(_0x5bf46){if(_0x5bf46['isEmpty'])return!0x0;const _0x3ece02=_0x5bf46['getChild'](0x0);return _0x3ece02['is']('element','paragraph')&&_0x3ece02['isEmpty'];}function Oe(_0x26247f,_0x473d9a={},_0x1b6363){for(const {isAnchor:_0x1df74f,cellHeight:_0x11078e,cellWidth:_0x430997}of _0x1b6363['createTableWalker'](_0x26247f,{'includeAllSlots':!0x0,..._0x473d9a}))if(!_0x1df74f||0x1!=_0x11078e||0x1!=_0x430997)return!0x1;return!0x0;}class Ot extends _0x3274cb{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xf44141=this['editor']['plugins']['get']('TrackChangesEditing');_0xf44141['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xf44141['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xf44141['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf44141['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xf44141['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xf44141['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xd4708a,_0x3eacba){const _0x460250=this['editor']['plugins']['get']('TrackChangesEditing'),_0x484bc8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3fc727=_0x3eacba['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x21b91b=_0x484bc8['getColumnGroupElement'](_0x3fc727);let _0x3e125e=_0x21b91b?_0x484bc8['getTableColumnsWidths'](_0x21b91b):null,_0x45dcf7=_0x3fc727['getAttribute']('tableWidth')||null;const _0x8b80b9=_0x3eacba['tableWidth']||_0x45dcf7,_0x3c5038=_0x3eacba['columnWidths']||_0x3e125e,_0xb3d714=this['editor']['plugins']['get']('Users')['me'];for(const _0x1cbac8 of _0x460250['getSuggestions']()){const _0x14877b=_0x1cbac8['getContainedElement']();if('resizeTable'===_0x1cbac8['subType']&&_0x14877b===_0x3fc727){_0x1cbac8['author']!==_0xb3d714&&_0x1cbac8['discard']();const _0x5f41df=_0x1cbac8['data']['commandParams'];_0x45dcf7=_0x5f41df[0x0]['tableWidth'],_0x3e125e=_0x5f41df[0x0]['columnWidths'];break;}}_0xd4708a({'table':_0x3fc727,'tableWidth':_0x8b80b9,'columnWidths':_0x3c5038}),_0x460250['markBlockFormat'](_0x3fc727,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x45dcf7,'columnWidths':_0x3e125e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x118dba){if('formatBlock'!=_0x118dba['type']&&'formatInline'!=_0x118dba['type'])return;const {data:_0x337f40}=_0x118dba;if(_0x337f40&&'resizeTable'===_0x337f40['formatGroupId']){const _0x5d90c1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5d90c1)};}}}class xt extends _0x3274cb{['afterInit'](){const _0x347762=this['editor'];_0x347762['plugins']['has']('Template')&&_0x347762['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3274cb{['afterInit'](){const _0x4ee73a=this['editor'];if(!_0x4ee73a['commands']['get']('insertTableOfContents'))return;_0x4ee73a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3d68d6=_0x4ee73a['plugins']['get']('TrackChangesEditing'),_0x38ce39=_0x4ee73a['locale'];_0x3d68d6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4a8c10=>o(_0x38ce39,'ELEMENT_TABLE_OF_CONTENTS',_0x4a8c10));}}class Rt extends _0x3274cb{['afterInit'](){const _0xde44a5=this['editor'];if(!_0xde44a5['plugins']['has']('Title'))return;const _0x2deb5e=_0xde44a5['plugins']['get']('TrackChangesEditing');_0x2deb5e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xde44a5['locale'],'ELEMENT_TITLE')),_0xde44a5['model']['document']['registerPostFixer'](_0x4b3dbc=>{let _0x1a9c10=!0x1;const _0x4242e4=Array['from'](_0xde44a5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc2cd6e,data:_0x2a78b1}of _0x4242e4){const {group:_0xafd414}=_0x2deb5e['_splitMarkerName'](_0xc2cd6e);if('suggestion'!==_0xafd414||!_0x2a78b1['newRange'])continue;const _0x36dfc0=_0x2a78b1['newRange'],_0x5cef77=_0x36dfc0['end']['nodeBefore'];if(!_0x5cef77||!_0x5cef77['is']('element','title-content'))continue;if(!_0x36dfc0['start']['isTouching'](_0x36dfc0['end']))continue;const _0x11141f=_0xde44a5['model']['schema']['getNearestSelectionRange'](_0x36dfc0['end'],'forward');if(_0x11141f&&_0x11141f['isCollapsed']){const _0x161a1d=_0x4b3dbc['createRange'](_0x36dfc0['start'],_0x11141f['start']);_0x161a1d['isEqual'](_0x36dfc0)||(_0x4b3dbc['updateMarker'](_0xc2cd6e,{'range':_0x161a1d}),_0x1a9c10=!0x0);}_0x1a9c10||(_0x4b3dbc['removeMarker'](_0xc2cd6e),_0x1a9c10=!0x0);}return _0x1a9c10;});}}class Tt extends _0x3274cb{['afterInit'](){const _0x60b0d1=this['editor'],_0x2a3e06=_0x60b0d1['plugins']['get']('TrackChangesEditing');_0x60b0d1['plugins']['has']('Uploadcare')&&(_0x2a3e06['enableCommand']('uploadcare'),_0x60b0d1['plugins']['has']('UploadcareImageEdit')&&(_0x2a3e06['enableCommand']('uploadcareImageEdit'),_0x2a3e06['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2a3e06['descriptionFactory']['registerDescriptionCallback'](_0x2a650a=>{if('attribute'!=_0x2a650a['type'])return;const {data:_0xf64bfa}=_0x2a650a;return _0xf64bfa&&'uploadcareImageId'==_0xf64bfa['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x3274cb{['afterInit'](){const _0x28923d=this['editor'],_0x46d7d4=_0x28923d['plugins']['get']('TrackChangesEditing');_0x28923d['plugins']['has']('UndoEditing')&&(_0x46d7d4['enableCommand']('undo'),_0x46d7d4['enableCommand']('redo'));}}class Ut extends _0x3274cb{static get['requires'](){return[Nt];}['afterInit'](){const _0x1dd636=this['editor'];if(!_0x1dd636['plugins']['has']('TableCaptionEditing'))return;_0x1dd636['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x3274cb{['tableProperties'];['tableCellProperties'];constructor(_0x87ec33){super(_0x87ec33),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x87ec33['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x215d2f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x11aade of this['tableProperties'])_0x215d2f['enableCommand'](_0x11aade,(_0x1b018d,_0xd75ad)=>{const _0x3a2ea6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x11aade,[_0x3a2ea6],this['tableProperties'],'tableProperties',_0x1b018d,_0xd75ad);});_0x215d2f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x215d2f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x215d2f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xc223a3,_0x107029)=>this['handleDiscardAction'](this['tableProperties'],_0xc223a3,_0x107029)),_0x215d2f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xc609b of this['tableCellProperties'])this['editor']['commands']['get'](_0xc609b)&&_0x215d2f['enableCommand'](_0xc609b,(_0x18ed8a,_0x2f6479)=>{const _0xa6658b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xc609b,_0xa6658b,this['tableCellProperties'],'tableCellProperties',_0x18ed8a,_0x2f6479);});_0x215d2f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x215d2f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x215d2f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x8e71df,_0x52b304)=>this['handleDiscardAction'](this['tableCellProperties'],_0x8e71df,_0x52b304)),_0x215d2f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x215d2f['registerBlockAttribute']('tableCellType'),_0x215d2f['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x215d2f['descriptionFactory']['registerDescriptionCallback'](_0x3942a0=>this['handleSuggestionDescription'](_0x3942a0)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x59a49c,_0x1d0fd5,_0x3c30b1,_0x2cd10e,_0x31dbe5,_0x221910){const _0x399306=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x221910['batch'],()=>{for(const _0x2260ff of _0x1d0fd5){if(this['_getSuggestion'](_0x2260ff,_0x2cd10e))_0x31dbe5(_0x221910);else{const _0xc53c8d={};for(const _0x423f6a of _0x3c30b1){const _0x4271de=_0x2260ff['getAttribute'](_0x423f6a);void 0x0!==_0x4271de&&(_0xc53c8d[_0x423f6a]=_0x4271de);}_0x31dbe5(_0x221910),_0x399306['markBlockFormat'](_0x2260ff,{'commandParams':[_0xc53c8d]},[],_0x2cd10e);}}});}['handleDiscardAction'](_0x2f2307,_0x50c681,_0x14cf6c){const _0x5ace49=_0x50c681[0x0]['start']['nodeAfter'],_0x387af3=_0x14cf6c['commandParams'][0x0];this['editor']['model']['change'](_0x1e3463=>{for(const _0x4599af of _0x2f2307)void 0x0!==_0x387af3[_0x4599af]?_0x1e3463['setAttribute'](_0x4599af,_0x387af3[_0x4599af],_0x5ace49):_0x1e3463['removeAttribute'](_0x4599af,_0x5ace49);});}['handleSuggestionDescription'](_0x5d42a6){if(_0x5d42a6['data'])switch(_0x5d42a6['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'](_0x2bb05f,_0x2d55e0){const _0x193ade=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4cf6c8 of _0x193ade['getSuggestions']({'skipNotAttached':!0x0})){const _0x5d76c9=_0x4cf6c8['getContainedElement']();if(_0x4cf6c8['subType']===_0x2d55e0&&_0x5d76c9===_0x2bb05f)return _0x4cf6c8;}return null;}['_registerTablePropertiesAttributes'](){const _0x485583=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3945cc=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5b4248 of _0x3945cc){const _0x138a37=_0x5b4248['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x485583['descriptionFactory']['registerAttributeLabel'](_0x5b4248,o(this['editor']['locale'],'FORMAT_'+_0x138a37));}}}class Ft extends _0x3274cb{['afterInit'](){const _0x38b6bd=this['editor'];if(!_0x38b6bd['plugins']['has']('LineHeight'))return;const _0x1ebe1e=_0x38b6bd['plugins']['get']('TrackChangesEditing'),_0x31657f=_0x38b6bd['locale'];_0x1ebe1e['enableDefaultAttributesIntegration']('lineHeight'),_0x1ebe1e['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x31657f,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x3274cb{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x1567bc,_0x26c9ca,_0x43db28,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14c794){super(_0x14c794),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x206c06,_0x3eb596,_0x32e9f1,_0x5da28c)=>{this['_model']['change'](()=>{for(const _0x47f8b0 of[..._0x5da28c,..._0x32e9f1])this['_model']['markers']['has'](_0x47f8b0)&&_0x14c794['editing']['reconvertMarker'](_0x47f8b0);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x14c794['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x14c794['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x14c794['config']['get']('trackChanges.trackFormatChanges'),_0x14c794['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x14c794['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x14c794,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1b3ff8=this['editor'];_0x1b3ff8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xd11c0d,{writer:_0x3601fa})=>{let _0x1b5509='suggestion:'+_0xd11c0d['getAttribute']('suggestion-type')+':'+_0xd11c0d['getAttribute']('id');return _0xd11c0d['getAttribute']('marker-count')&&(_0x1b5509+=':'+_0xd11c0d['getAttribute']('marker-count')),_0x3601fa['createElement']('$marker',{'data-name':_0x1b5509});}}),_0x1b3ff8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1b3ff8['model']['document']['registerPostFixer'](_0x1ff8a1=>{let _0xf28c43=!0x1;const _0x4052da=Array['from'](_0x1b3ff8['model']['document']['differ']['getChangedMarkers']()),_0x26297d=new Set();for(const {name:_0x51fc68,data:_0x1fd4c9}of _0x4052da){const {group:_0x5d5747,type:_0x49108e,subType:_0x1bb0e0,id:_0x19c6ab}=this['_splitMarkerName'](_0x51fc68);if('suggestion'!==_0x5d5747)continue;const _0x2544f6=_0x1bb0e0?'suggestion:'+_0x49108e+':'+_0x1bb0e0+':'+_0x19c6ab:'suggestion:'+_0x49108e+':'+_0x19c6ab,_0x390ac7=_0x1b3ff8['model']['markers']['getMarkersGroup'](_0x2544f6),_0x175c33=_0x1b3ff8['model']['markers']['get'](_0x51fc68),_0x1c2f39=this['_suggestions']['get'](_0x19c6ab);if(null!=_0x1fd4c9['newRange']){'formatInline'==_0x49108e&&(_0xf28c43=_0xf28c43||Wt(_0x1fd4c9['newRange'],_0x51fc68,_0x1ff8a1,_0x1b3ff8['model']['schema']));const _0x3a8665='attribute'==_0x49108e&&this['_isBlockAttribute'](_0x1bb0e0['split']('|')[0x0]),_0x58162b='attribute'==_0x49108e&&this['_isInlineAttribute'](_0x1bb0e0['split']('|')[0x0]);if(_0x1fd4c9['newRange']['isCollapsed']||'$graveyard'==_0x1fd4c9['newRange']['root']['rootName']||'formatBlock'==_0x49108e&&!Qt(_0x1fd4c9['newRange'])||_0x3a8665&&!Qt(_0x1fd4c9['newRange'])||_0x58162b&&Xt(_0x1fd4c9['newRange'])||'deletion'==_0x49108e&&Xt(_0x1fd4c9['newRange'])||_0x175c33&&Yt(_0x175c33,_0x390ac7))_0x1ff8a1['removeMarker'](_0x51fc68),_0xf28c43=!0x0;else{if(!_0x1c2f39||!_0x1c2f39['isInContent'])continue;if(_0x1fd4c9['newRange']&&_0x1fd4c9['oldRange']&&_0x1fd4c9['newRange']['isEqual'](_0x1fd4c9['oldRange']))continue;_0x26297d['add'](_0x1c2f39);}}}return _0x26297d['size']>0x0&&(_0xf28c43=!!this['_joinWithAdjacentSuggestions'](_0x26297d)||_0xf28c43),_0xf28c43;}),_0x1b3ff8['model']['document']['registerPostFixer'](_0x5b1ff0=>{let _0x5143b8=!0x1;for(const _0x300a13 of _0x1b3ff8['model']['document']['differ']['getChanges']())if('insert'==_0x300a13['type'])for(const _0x2d22a0 of this['_suggestions']['values']()){if(_0x2d22a0['isMultiRange']||!_0x2d22a0['isInContent'])continue;const _0x39ed17='formatBlock'==_0x2d22a0['type'],_0x539634=this['_getAttributeKey'](_0x2d22a0),_0x493e6a=_0x539634&&this['_isBlockAttribute'](_0x539634);if(!_0x39ed17&&!_0x493e6a)continue;const _0x98fa66=_0x2d22a0['getFirstRange']();if(_0x98fa66['start']['parent']!=_0x98fa66['end']['parent']&&!_0x98fa66['end']['isAtEnd']){const _0x117721=_0x1b3ff8['model']['createPositionAt'](_0x98fa66['start']['nodeAfter'],'end'),_0x51cddd=_0x1b3ff8['model']['createRange'](_0x98fa66['start'],_0x117721);_0x5b1ff0['updateMarker'](_0x2d22a0['getFirstMarker'](),{'range':_0x51cddd}),_0x5143b8=!0x0;}}return _0x5143b8;}),_0x1b3ff8['model']['document']['registerPostFixer'](_0x35de98=>this['_processAttributeChanges'](_0x35de98)),_0x1b3ff8['model']['document']['registerPostFixer'](_0x38dc3b=>!_0x38dc3b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x38dc3b)),_0x1b3ff8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1b3ff8['model']['document']['on']('change:data',(_0x4f12f8,_0x360034)=>{if(!_0x360034['isLocal']||_0x360034['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4de55d=_0x1b3ff8['model']['document']['differ']['getChanges']();if(0x0==_0x4de55d['length'])return;const _0x17660c=[],_0x4bbca8=_0x4de55d['filter'](_0x22c9a9=>'attribute'==_0x22c9a9['type']),_0x4e6069=_0x4de55d['filter'](_0x297f13=>'insert'==_0x297f13['type']&&'$text'!=_0x297f13['name']);for(const _0x442948 of _0x4bbca8)this['_isRegisteredAttribute'](_0x442948['attributeKey'])&&_0x17660c['push']({'key':_0x442948['attributeKey'],'newValue':_0x442948['attributeNewValue'],'oldValue':_0x442948['attributeOldValue'],'range':Zt(_0x442948['range'],_0x1b3ff8['model'])});for(const _0x9e2d67 of _0x4e6069){if('rename'!=_0x9e2d67['action']&&'refresh'!=_0x9e2d67['action'])continue;const _0x546bd2=tn(_0x9e2d67['position']['nodeAfter'],_0x1b3ff8['model']),_0x34e72a=_0x9e2d67['before'];'rename'==_0x9e2d67['action']&&_0x17660c['push']({'key':m,'newValue':_0x9e2d67['name'],'oldValue':_0x34e72a['name'],'range':_0x546bd2});for(const [_0x23dbc1,_0xbf4e1b]of _0x34e72a['attributes']){if(!this['_isRegisteredAttribute'](_0x23dbc1))continue;const _0x30f3f0=_0x9e2d67['attributes']['get'](_0x23dbc1);_0xbf4e1b!==_0x30f3f0&&_0x17660c['push']({'key':_0x23dbc1,'newValue':_0x30f3f0,'oldValue':_0xbf4e1b,'range':_0x546bd2});}for(const [_0x57f1aa,_0x54eb1e]of _0x9e2d67['attributes'])this['_isRegisteredAttribute'](_0x57f1aa)&&(_0x34e72a['attributes']['has'](_0x57f1aa)||_0x17660c['push']({'key':_0x57f1aa,'newValue':_0x54eb1e,'oldValue':null,'range':_0x546bd2}));}0x0!=_0x17660c['length']&&_0x1b3ff8['model']['enqueueChange'](_0x360034,_0x3d8526=>{const _0x934889=_0x531b89();for(const {range:_0x2f18bf,key:_0x5816fd,oldValue:_0x249c92,newValue:_0x5d5744}of _0x17660c)this['markAttributeChange'](_0x2f18bf,_0x5816fd,_0x249c92,_0x5d5744,{'groupId':_0x934889});this['_reduceExistingSuggestions'](_0x3d8526,_0x17660c);});},{'priority':'lowest'}),_0x1b3ff8['model']['markers']['on']('update:suggestion',(_0x89ade2,_0x29ce1e,_0x13a823)=>{if(null==_0x13a823){const {id:_0x393eef}=this['_splitMarkerName'](_0x29ce1e['name']),_0x24b4a3=this['_suggestions']['get'](_0x393eef);_0x24b4a3&&_0x24b4a3['addMarkerName'](_0x29ce1e['name']);}}),_0x1b3ff8['model']['document']['on']('change:data',()=>{const _0x4624a1=Array['from'](_0x1b3ff8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3f440d=>'suggestion'===this['_splitMarkerName'](_0x3f440d['name'])['group']);if(0x0===_0x4624a1['length'])return;_0x4624a1['sort']((_0x45e903,_0x4ddd63)=>{const _0x51bf20=_0x45e903['data']['oldRange'],_0x2cab76=_0x4ddd63['data']['oldRange'];return null===_0x51bf20&&null===_0x2cab76?0x0:null===_0x51bf20&&null!==_0x2cab76?-0x1:null!==_0x51bf20&&null===_0x2cab76?0x1:_0x51bf20['start']['isBefore'](_0x2cab76['start'])?-0x1:0x1;});const _0x642f4b=new Set(),_0x4437cd=new Set();for(const {name:_0xec88a4,data:_0xf27d8c}of _0x4624a1){const {id:_0xfe3511}=this['_splitMarkerName'](_0xec88a4);if(null===_0xf27d8c['oldRange']){const _0x52eb28=this['_handleNewSuggestionMarker'](_0xec88a4);_0x4437cd['add'](_0x52eb28);}else{const _0x2d4ef=this['_suggestions']['get'](_0xfe3511);null!==_0xf27d8c['newRange']||_0x2d4ef['isInContent']?(_0x642f4b['add'](_0x2d4ef['head']),_0x4437cd['add'](_0x2d4ef)):this['_removeSuggestion'](_0x2d4ef);}}_0x4437cd['size']>0x0&&this['_refreshSuggestionsChain'](_0x4437cd);for(const _0x24a323 of _0x642f4b)this['fire']('suggestionChanged',_0x24a323);}),_0x1b3ff8['model']['on']('applyOperation',(_0x1f58b5,_0x18089e)=>{const _0x57fdfc=_0x18089e[0x0];if(!this['_suggestions']['size'])return;if(!_0x57fdfc['isDocumentOperation'])return;if(_0x57fdfc['batch']['isUndo']||!_0x57fdfc['batch']['isLocal'])return;let _0x18158b,_0x505e3e;switch(_0x57fdfc['type']){case'insert':_0x18158b=_0x1b3ff8['model']['createPositionAt'](_0x57fdfc['position']),_0x505e3e=_0x18158b['getShiftedBy'](_0x57fdfc['howMany']);break;case'split':_0x18158b=_0x1b3ff8['model']['createPositionAt'](_0x57fdfc['splitPosition']),_0x505e3e=_0x1b3ff8['model']['createPositionAt'](_0x57fdfc['moveTargetPosition']);break;case'move':_0x18158b=_0x1b3ff8['model']['createPositionAt'](_0x57fdfc['targetPosition']),_0x505e3e=_0x18158b['getShiftedBy'](_0x57fdfc['howMany']);break;default:return;}const _0x5547bd=_0x1b3ff8['model']['createRange'](_0x18158b,_0x505e3e);_0x1b3ff8['model']['change'](()=>{for(const {suggestion:_0x41ce5d,meta:_0x42f1a8}of this['_findSuggestions'](_0x5547bd)){if(_0x41ce5d['isMultiRange'])continue;if('formatInline'==_0x41ce5d['type'])continue;const _0x45813d=this['_getAttributeKey'](_0x41ce5d);if(_0x45813d&&this['_isBlockAttribute'](_0x45813d)&&'split'!=_0x57fdfc['type'])continue;const _0x1f23c6=_0x41ce5d['data']&&_0x41ce5d['data']['multipleBlocks'];('formatBlock'!=_0x41ce5d['type']||'split'==_0x57fdfc['type']&&!_0x1f23c6)&&(_0x42f1a8['containsRangeInObject']||'insertion'==_0x41ce5d['type']&&_0x42f1a8['isOwn']||_0x41ce5d['getFirstRange']()['containsRange'](_0x5547bd)&&this['_breakSuggestionMarker'](_0x41ce5d,_0x18158b,_0x505e3e));}});},{'priority':'lowest'}),_0x1b3ff8['model']['on']('deleteContent',(_0x4a0429,_0x34b4a3)=>{const _0x748f8f=_0x34b4a3[0x0],_0x4c01a0=_0x34b4a3[0x1];if(_0x4c01a0&&_0x4c01a0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x748f8f['isCollapsed'])return;const _0x4a1a00=_0x1b3ff8['model']['schema'],{start:_0xb399f3,end:_0x40bc56}=_0x748f8f['getFirstRange'](),_0x2bee88=_0xb399f3['nodeAfter']&&_0x4a1a00['isLimit'](_0xb399f3['nodeAfter'])?null:_0x4a1a00['getNearestSelectionRange'](_0xb399f3,'forward'),_0x6f4cca=_0x40bc56['nodeBefore']&&_0x4a1a00['isLimit'](_0x40bc56['nodeBefore'])?null:_0x4a1a00['getNearestSelectionRange'](_0x40bc56,'backward'),_0x16aa04=_0x1b3ff8['model']['createRange'](_0x2bee88?_0x2bee88['start']:_0xb399f3,_0x6f4cca?_0x6f4cca['end']:_0x40bc56);_0x1b3ff8['model']['change'](_0xc42c8a=>{this['markDeletion'](_0x16aa04);const _0x59fe2f=_0x1b3ff8['model']['schema']['getNearestSelectionRange'](_0x16aa04['start']);_0x748f8f['is']('documentSelection')?_0xc42c8a['setSelection'](_0x59fe2f):_0x748f8f['setTo'](_0x59fe2f);}),_0x4a0429['stop']();},{'priority':_0x296698['normal']+0xa}),_0x1b3ff8['model']['on']('insertContent',(_0x6d87e,_0x3fdc55)=>{const _0x35c954=_0x3fdc55[_0x3fdc55['length']-0x1];_0x35c954&&_0x35c954['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1b3ff8['model']['change'](()=>{let _0x6e40f3=_0x1b3ff8['model']['insertContent'](_0x3fdc55[0x0],_0x3fdc55[0x1],_0x3fdc55[0x2],{'forceDefaultExecution':!0x0});if(!_0x6e40f3)return;_0x6d87e['return']=_0x6e40f3['clone']();const _0x45528c=_0x6e40f3['end']['nodeBefore'],_0x5c5643=_0x1b3ff8['model']['schema'];_0x45528c&&_0x5c5643['isBlock'](_0x45528c)&&!_0x5c5643['isObject'](_0x45528c)&&(_0x6e40f3=_0x1b3ff8['model']['createRange'](_0x6e40f3['start'],_0x1b3ff8['model']['createPositionAt'](_0x45528c,'end'))),this['markInsertion'](_0x6e40f3);}),_0x6d87e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1543eb=new v(_0x1b3ff8,this['_suggestions']);_0x1b3ff8['commands']['add']('acceptSuggestion',_0x1543eb),this['enableCommand']('acceptSuggestion');const _0x45477a=new D(_0x1b3ff8,this['_suggestions']);_0x1b3ff8['commands']['add']('discardSuggestion',_0x45477a),this['enableCommand']('discardSuggestion'),_0x1b3ff8['commands']['add']('acceptAllSuggestions',new B(_0x1b3ff8,_0x1543eb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1b3ff8['commands']['add']('discardAllSuggestions',new B(_0x1b3ff8,_0x45477a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1b3ff8['commands']['add']('acceptSelectedSuggestions',new O(_0x1b3ff8,_0x1543eb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1b3ff8['commands']['add']('discardSelectedSuggestions',new O(_0x1b3ff8,_0x45477a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x216317=_0x1b3ff8['plugins']['get']('CommentsRepository');this['listenTo'](_0x216317,'addComment',(_0x4070dc,{threadId:_0x22884a})=>{const _0x877ec3=this['_suggestions']['get'](_0x22884a);_0x877ec3&&_0x877ec3['commentThread']&&0x1===_0x877ec3['commentThread']['length']&&this['_updateSuggestionData'](_0x22884a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x216317,'removeComment',(_0x11adf2,{threadId:_0x6249bd})=>{const _0x347588=this['_suggestions']['get'](_0x6249bd);_0x347588&&_0x347588['commentThread']&&!_0x347588['commentThread']['length']&&this['_updateSuggestionData'](_0x6249bd,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x32e6aa){const _0x2541b5=_0x59a7f1([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x480815=0x3d8d0df,_0x1b1a3d=0x3dfae6f^_0x480815,_0x20c04d=window[_0x59a7f1([0x44,0x61,0x74,0x65])][_0x59a7f1([0x6e,0x6f,0x77])](),_0x105b95=_0x32e6aa[_0x59a7f1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ed656=new window[(_0x59a7f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52b7bf=>{_0x105b95[_0x59a7f1([0x6f,0x6e,0x63,0x65])](_0x59a7f1([0x72,0x65,0x61,0x64,0x79]),_0x52b7bf);}),_0x5debd8={[_0x59a7f1([0x6b,0x74,0x79])]:_0x59a7f1([0x45,0x43]),[_0x59a7f1([0x75,0x73,0x65])]:_0x59a7f1([0x73,0x69,0x67]),[_0x59a7f1([0x63,0x72,0x76])]:_0x59a7f1([0x50,0x2d,0x32,0x35,0x36]),[_0x59a7f1([0x78])]:_0x59a7f1([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]),[_0x59a7f1([0x79])]:_0x59a7f1([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]),[_0x59a7f1([0x61,0x6c,0x67])]:_0x59a7f1([0x45,0x53,0x32,0x35,0x36])},_0x24195e=_0x105b95[_0x59a7f1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59a7f1([0x67,0x65,0x74])](_0x59a7f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24d67b(){let _0x25e3c8,_0x4e6d52=null,_0x113306=null;try{if(_0x24195e==_0x59a7f1([0x47,0x50,0x4c]))return _0x59a7f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x25e3c8=_0x17aef8(),!_0x25e3c8)return _0x59a7f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x25e3c8[_0x59a7f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x113306=_0x34059d(_0x25e3c8[_0x59a7f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x25e3c8[_0x59a7f1([0x6a,0x74,0x69])])),await _0x23403c()?_0x42d0fd()?_0x111e12()?_0x59a7f1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf50ce0()?(_0x25e3c8[_0x59a7f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59a7f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e6d52=_0x5bc0ea(_0x59a7f1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c7807()):_0x59a7f1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59a7f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59a7f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x59a7f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x111e12(){const _0x576d04=[_0x59a7f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59a7f1([0x74,0x72,0x69,0x61,0x6c])][_0x59a7f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25e3c8[_0x59a7f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20c04d/0x3e8:0xe10*_0x1b1a3d;return _0x25e3c8[_0x59a7f1([0x65,0x78,0x70])]<_0x576d04;}function _0x42d0fd(){const _0x58c54c=_0x25e3c8[_0x59a7f1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x58c54c)return!0x1;if(_0x58c54c[_0x59a7f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59a7f1([0x2a])))return!0x0;if(_0x58c54c[_0x59a7f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59a7f1([0x54,0x43])))return!0x0;if(_0x58c54c[_0x59a7f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59a7f1([0x52,0x54,0x43]))){if(_0xa4b818())return!0x0;if(_0x4fd1a3()||_0x171773())return!0x0;}return!0x1;}function _0xf50ce0(){const _0x3c9358=_0x25e3c8[_0x59a7f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c9358||0x0==_0x3c9358[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d7e91}=new URL(window[_0x59a7f1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c9358[_0x59a7f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d7e91))return!0x0;const _0x23c785=_0x3d7e91[_0x59a7f1([0x73,0x70,0x6c,0x69,0x74])](_0x59a7f1([0x2e]));return _0x3c9358[_0x59a7f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54585e=>_0x54585e[_0x59a7f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59a7f1([0x2a])))[_0x59a7f1([0x6d,0x61,0x70])](_0x26a7cd=>_0x26a7cd[_0x59a7f1([0x73,0x70,0x6c,0x69,0x74])](_0x59a7f1([0x2e])))[_0x59a7f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x411a89=>_0x411a89[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x23c785[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59a7f1([0x6d,0x61,0x70])](_0x1dec73=>Array(_0x23c785[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1dec73[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59a7f1([0x66,0x69,0x6c,0x6c])](_0x1dec73[0x0]===_0x59a7f1([0x2a])?_0x59a7f1([0x2a]):'')[_0x59a7f1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1dec73))[_0x59a7f1([0x73,0x6f,0x6d,0x65])](_0x3806c0=>_0x23c785[_0x59a7f1([0x65,0x76,0x65,0x72,0x79])]((_0x55227f,_0xac0ca7)=>_0x3806c0[_0xac0ca7]===_0x55227f||_0x3806c0[_0xac0ca7]===_0x59a7f1([0x2a])));}function _0x3c7807(){return _0x4e6d52&&_0x113306?new window[(_0x59a7f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57a381,_0x1c105d)=>{_0x4e6d52[_0x59a7f1([0x74,0x68,0x65,0x6e])](_0x57a381,_0x1c105d),_0x113306[_0x59a7f1([0x74,0x68,0x65,0x6e])](_0x1ac96c=>{_0x1ac96c!=_0x59a7f1([0x56,0x61,0x6c,0x69,0x64])&&_0x57a381(_0x1ac96c);},_0x1c105d);}):_0x4e6d52||_0x113306||_0x59a7f1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34059d(_0x17521d,_0x23fb5c){return new window[(_0x59a7f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c33bf=>{if(_0x5adf06())return _0x2c33bf(_0x59a7f1([0x56,0x61,0x6c,0x69,0x64]));_0x55c6fe(),_0x105b95[_0x59a7f1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59a7f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x113335=!0x1;const _0x58683b=_0x531b89();function _0x1bf5c5(_0x3c22b4){return!!_0x3c22b4&&(typeof _0x3c22b4===_0x59a7f1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c22b4===_0x59a7f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c22b4[_0x59a7f1([0x74,0x68,0x65,0x6e])]===_0x59a7f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c22b4[_0x59a7f1([0x63,0x61,0x74,0x63,0x68])]===_0x59a7f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25b260(_0x5484d4){_0xf90d61(_0x5484d4)[_0x59a7f1([0x74,0x68,0x65,0x6e])](_0x3edbeb=>{if(!_0x3edbeb||_0x3edbeb[_0x59a7f1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59a7f1([0x6f,0x6b]))return _0x59a7f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3aed25(_0x6f8ec7(_0x58683b+_0x23fb5c))!=_0x3edbeb[_0x59a7f1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59a7f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59a7f1([0x56,0x61,0x6c,0x69,0x64]);})[_0x59a7f1([0x74,0x68,0x65,0x6e])](_0x4fa152=>(_0x37643b(),_0x4fa152),()=>{const _0x116cc4=_0x29167f();return null==_0x116cc4?(_0x37643b(),_0x59a7f1([0x56,0x61,0x6c,0x69,0x64])):_0x59a7f1(_0x20c04d-_0x116cc4>(0x27d454df^_0x480815)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59a7f1([0x74,0x68,0x65,0x6e])](_0x2c33bf)[_0x59a7f1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c33bf(_0x59a7f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37ad03=0x3ee3e5f^_0x480815;function _0x37643b(){const _0x349a87=_0x59a7f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x3aed25(_0x6f8ec7(_0x17521d)),_0x25ffad=_0x1eccfa(_0x3aed25(window[_0x59a7f1([0x4d,0x61,0x74,0x68])][_0x59a7f1([0x63,0x65,0x69,0x6c])](_0x20c04d/_0x37ad03)));window[_0x59a7f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59a7f1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x349a87,_0x25ffad);}function _0x29167f(){const _0x3849d1=_0x59a7f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x3aed25(_0x6f8ec7(_0x17521d)),_0x332172=window[_0x59a7f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59a7f1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3849d1);return _0x332172?window[_0x59a7f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1eccfa(_0x332172),0x10)*_0x37ad03:null;}function _0xf90d61(_0x4fd5fb){return new window[(_0x59a7f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15efbb,_0x4cfc71)=>{_0x4fd5fb[_0x59a7f1([0x74,0x68,0x65,0x6e])](_0x15efbb,_0x4cfc71),window[_0x59a7f1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4cfc71,0x3d9041f^_0x480815);});}}_0x105b95[_0x59a7f1([0x6f,0x6e])](_0x59a7f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf6e440,_0x1ac4f0)=>{if(_0x1ac4f0[0x0]!=_0x17521d)return _0x2c33bf(_0x59a7f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ac4f0[0x1]={..._0x1ac4f0[0x1],[_0x59a7f1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58683b};},{[_0x59a7f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59a7f1([0x68,0x69,0x67,0x68])}),_0x105b95[_0x59a7f1([0x6f,0x6e])](_0x59a7f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c7325=>{_0x1bf5c5(_0x4c7325[_0x59a7f1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x113335=!0x0,_0x25b260(_0x4c7325[_0x59a7f1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59a7f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59a7f1([0x6c,0x6f,0x77])}),_0x2ed656[_0x59a7f1([0x74,0x68,0x65,0x6e])](()=>{_0x113335||_0x2c33bf(_0x59a7f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5adf06(){return _0x105b95[_0x59a7f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59a7f1([0x76,0x69,0x65,0x77])][_0x59a7f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59a7f1([0x61,0x75,0x74,0x6f]);}function _0x55c6fe(){_0x105b95[_0x59a7f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59a7f1([0x76,0x69,0x65,0x77])][_0x59a7f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59a7f1([0x61,0x75,0x74,0x6f]);}}function _0x5bc0ea(_0x2cb68b){const _0x591a5b=[new window[(_0x59a7f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28219c=>setTimeout(_0x28219c,0x3d1ee13^_0x480815)),_0x2ed656[_0x59a7f1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59a7f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28b647=>{let _0x365c53=0x0;_0x105b95[_0x59a7f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x59a7f1([0x6f,0x6e])](_0x59a7f1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x587407,_0x5f0b72)=>{_0x5f0b72[0x0][_0x59a7f1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x365c53++,_0x365c53==(0x3d8d537^_0x480815)&&(_0x28b647(),_0x587407[_0x59a7f1([0x6f,0x66,0x66])]());});}))];return window[_0x59a7f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59a7f1([0x72,0x61,0x63,0x65])](_0x591a5b)[_0x59a7f1([0x74,0x68,0x65,0x6e])](()=>_0x2cb68b);}async function _0x2de787(){await _0x2ed656,_0x105b95[_0x59a7f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x59a7f1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x46c2b8,_0x105b95[_0x59a7f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x59a7f1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x46c2b8,_0x105b95[_0x59a7f1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59a7f1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa4b818(){return _0x1d3b9d(_0x59a7f1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x41c3e6(_0x59a7f1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x59a7f1([0x73,0x74,0x61,0x74,0x65])]==_0x59a7f1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4fd1a3(){return _0x1d3b9d(_0x59a7f1([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 _0x171773(){return _0x1d3b9d(_0x59a7f1([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1c9fcf(_0x3e77c6){const _0x564fe3=_0x52f896();_0x105b95[_0x564fe3]=_0x59a7f1([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e77c6,_0x3e77c6!=_0x59a7f1([0x56,0x61,0x6c,0x69,0x64])&&_0x2de787();}function _0x52f896(){const _0x52f476=window[_0x59a7f1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59a7f1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59a7f1([0x6e,0x6f,0x77])]())[_0x59a7f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59a7f1([0x2e]),'');let _0x21a5d0=_0x59a7f1([0x52]);for(let _0x4d0f00=0x0;_0x4d0f00<_0x52f476[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d0f00+=0x2){let _0x445cca=window[_0x59a7f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52f476[_0x59a7f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d0f00,_0x4d0f00+0x2));_0x445cca>=_0x2541b5[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x445cca-=_0x2541b5[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x21a5d0+=_0x2541b5[_0x445cca];}return _0x21a5d0;}function _0x17aef8(){const _0x986e79=_0x24195e[_0x59a7f1([0x73,0x70,0x6c,0x69,0x74])](_0x59a7f1([0x2e]));if(0x3!=_0x986e79[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb75a00(_0x986e79[0x1]);function _0xb75a00(_0x2d86c0){const _0x56634f=_0x44a8b8(_0x2d86c0);return _0x56634f&&_0x213325()?_0x56634f:null;function _0x213325(){const _0x3f4528=_0x56634f[_0x59a7f1([0x6a,0x74,0x69])],_0x606985=window[_0x59a7f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f4528[_0x59a7f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f4528[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x480cb1={..._0x56634f,[_0x59a7f1([0x6a,0x74,0x69])]:_0x3f4528[_0x59a7f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f4528[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x480cb1[_0x59a7f1([0x76,0x63])],_0x6f8ec7(_0x480cb1)==_0x606985;}}}async function _0x23403c(){let _0x2423fc=!0x0;try{const _0x54fb55=_0x24195e[_0x59a7f1([0x73,0x70,0x6c,0x69,0x74])](_0x59a7f1([0x2e])),[_0x36ea23,_0x26070e,_0x345eda]=_0x54fb55;return _0x4b5d32(_0x36ea23),await _0x23631a(_0x36ea23,_0x26070e,_0x345eda),_0x2423fc;}catch{return!0x1;}function _0x4b5d32(_0x92f939){const _0x3cf724=_0x44a8b8(_0x92f939);_0x3cf724&&_0x3cf724[_0x59a7f1([0x61,0x6c,0x67])]==_0x59a7f1([0x45,0x53,0x32,0x35,0x36])||(_0x2423fc=!0x1);}async function _0x23631a(_0x22454c,_0x9ba15e,_0x3d7ce6){const _0x4e2d6b=window[_0x59a7f1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59a7f1([0x66,0x72,0x6f,0x6d])](_0x44c6c3(_0x3d7ce6),_0x51fe19=>_0x51fe19[_0x59a7f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c5737=new window[(_0x59a7f1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59a7f1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22454c+_0x59a7f1([0x2e])+_0x9ba15e),_0x291a75=window[_0x59a7f1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59a7f1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x291a75)return;const _0x2395f2=await _0x291a75[_0x59a7f1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59a7f1([0x6a,0x77,0x6b]),_0x5debd8,{[_0x59a7f1([0x6e,0x61,0x6d,0x65])]:_0x59a7f1([0x45,0x43,0x44,0x53,0x41]),[_0x59a7f1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59a7f1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59a7f1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x291a75[_0x59a7f1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59a7f1([0x6e,0x61,0x6d,0x65])]:_0x59a7f1([0x45,0x43,0x44,0x53,0x41]),[_0x59a7f1([0x68,0x61,0x73,0x68])]:{[_0x59a7f1([0x6e,0x61,0x6d,0x65])]:_0x59a7f1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2395f2,_0x4e2d6b,_0x1c5737)||(_0x2423fc=!0x1);}}function _0x44a8b8(_0x4e59c6){return _0x4e59c6[_0x59a7f1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59a7f1([0x65,0x79]))?JSON[_0x59a7f1([0x70,0x61,0x72,0x73,0x65])](_0x44c6c3(_0x4e59c6)):null;}function _0x44c6c3(_0x466f65){return window[_0x59a7f1([0x61,0x74,0x6f,0x62])](_0x466f65[_0x59a7f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59a7f1([0x2b]))[_0x59a7f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59a7f1([0x2f])));}function _0x6f8ec7(_0x46573c){let _0x1b7678=0x1505;function _0xd50e86(_0xdcdd96){for(let _0x3e113f=0x0;_0x3e113f<_0xdcdd96[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e113f++){const _0x4e47b7=_0xdcdd96[_0x59a7f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3e113f);_0x1b7678=(_0x1b7678<<0x5)+_0x1b7678+_0x4e47b7,_0x1b7678&=_0x1b7678;}}function _0xaf72b1(_0x4049b1){Array[_0x59a7f1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4049b1)?_0x4049b1[_0x59a7f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xaf72b1):_0x4049b1&&typeof _0x4049b1==_0x59a7f1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59a7f1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4049b1)[_0x59a7f1([0x73,0x6f,0x72,0x74])]()[_0x59a7f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17cc61,_0x29af44])=>{_0xd50e86(_0x17cc61),_0xaf72b1(_0x29af44);}):_0xd50e86(window[_0x59a7f1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4049b1));}return _0xaf72b1(_0x46573c),_0x1b7678>>>0x0;}function _0x3aed25(_0xd60921){return _0xd60921[_0x59a7f1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59a7f1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59a7f1([0x30]));}function _0x1eccfa(_0x131d7c){return _0x131d7c[_0x59a7f1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59a7f1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59a7f1([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d3b9d(_0xe3e309){return _0x105b95[_0x59a7f1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59a7f1([0x68,0x61,0x73])](_0xe3e309);}function _0x41c3e6(_0xbdd939){return _0x105b95[_0x59a7f1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59a7f1([0x67,0x65,0x74])](_0xbdd939);}function _0x46c2b8(){}function _0x59a7f1(_0x36c8e4){return _0x36c8e4['map'](_0x29a7bb=>String['fromCharCode'](_0x29a7bb))['join']('');}_0x1c9fcf(await _0x24d67b());}(this);}set['adapter'](_0x248924){if(this['_adapter'])throw new _0x2557e8('track-changes-adapter-already-set',this);this['_adapter']=_0x248924;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x42daf6=!0x1,toJSON:_0x832d8b=!0x1}={}){const _0x21e95b=[];for(const _0x17b5f1 of this['_suggestions']['values']())_0x42daf6&&!_0x17b5f1['isInContent']||_0x21e95b['push'](_0x17b5f1);return _0x832d8b?_0x21e95b['map'](_0x235920=>_0x235920['toJSON']()):_0x21e95b;}['getSuggestion'](_0x2702f7){const _0x3ebb8f=this['_suggestions']['get'](_0x2702f7);if(!_0x3ebb8f)throw new _0x2557e8('track-changes-suggestion-not-found',this);return _0x3ebb8f;}['hasSuggestion'](_0x5f252a){return this['_suggestions']['has'](_0x5f252a);}['addSuggestionData'](_0x324e75){const {authorId:_0x548f91,id:_0x343c63,originalSuggestionId:_0x17b13b,attributes:_0x5c93ae}=_0x324e75,[_0x41a07b,_0x2447f8]=_0x324e75['type']['split'](':'),_0x28697f=this['_suggestions']['get'](_0x343c63)||this['_createSuggestion'](_0x41a07b,_0x2447f8,_0x343c63,_0x548f91,_0x5c93ae,_0x17b13b);if(this['_addThreadToSuggestion'](_0x28697f),this['_checkSuggestionCorrectness'](_0x28697f,_0x41a07b,_0x2447f8||null,_0x548f91),_0x28697f['createdAt']=_0x324e75['createdAt'],_0x28697f['_isDataLoaded']=!0x0,_0x5c93ae&&_0x5c93ae['@external']){const _0x5a67a3=_0x5c93ae['@external'],_0x27c7c8=this['_getExternalAuthor'](_0x5a67a3['authorName']);_0x28697f['authoredAt']=_0x5a67a3['createdAt'],_0x28697f['author']=_0x27c7c8,_0x28697f['isExternal']=!0x0;}else _0x28697f['authoredAt']=_0x324e75['createdAt'];switch(_0x324e75['data']&&(_0x28697f['data']=_0x324e75['data']),_0x324e75['attributes']&&(_0x28697f['attributes']=_0x324e75['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x28697f['_saved']=!0x0),this['_suggestionState']['get'](_0x28697f)){case'notReady':this['_suggestionState']['set'](_0x28697f,'dataReady');break;case'markerReady':_0x28697f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x28697f])),this['_refreshSuggestionsChain'](new Set([_0x28697f])),this['_suggestionState']['set'](_0x28697f,'ready'),this['fire']('suggestionLoaded',_0x28697f)):this['_suggestionState']['set'](_0x28697f,'removed');}return _0x28697f;}['acceptSuggestion'](_0x1dd62a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x53b9aa of _0x1dd62a['getAllAdjacentSuggestions']())_0x53b9aa['accept']();});});}['discardSuggestion'](_0x3efe6f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x23c412 of _0x3efe6f['getAllAdjacentSuggestions']())_0x23c412['discard']();});});}['enableCommand'](_0x35539b,_0x343fbc){const _0x4a81ab=this['editor']['commands']['get'](_0x35539b);if(!_0x4a81ab)throw new _0x2557e8('track-changes-command-not-found',this,{'commandName':_0x35539b});if(this['_enabledCommands']['has'](_0x4a81ab))throw new _0x2557e8('track-changes-enable-command-twice',this,{'commandName':_0x35539b});this['_enabledCommands']['add'](_0x4a81ab),_0x343fbc&&_0x4a81ab['on']('execute',(_0x32b300,_0xdac4b2)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xdac4b2['length']>0x0&&_0xdac4b2[_0xdac4b2['length']-0x1]&&_0xdac4b2[_0xdac4b2['length']-0x1]['forceDefaultExecution']?_0xdac4b2['pop']():(_0x32b300['return']=_0x343fbc((..._0x2d47b4)=>_0x4a81ab['execute'](..._0x2d47b4,{'forceDefaultExecution':!0x0}),..._0xdac4b2),_0x32b300['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x44a8f6){let _0x47c281,_0x3e732a;const _0x339d23=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x47c281=_0x44a8f6();}catch(_0x106009){_0x3e732a=_0x106009;}return _0x339d23||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3e732a&&_0x2557e8['rethrowUnexpectedError'](_0x3e732a,this),_0x47c281;}['markInsertion'](_0x5cc6ef,_0x3622d1=null,_0x176ea5={}){if(_0x5cc6ef['isCollapsed'])return null;const _0x1cffca=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x176ea5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5931a7,meta:_0x4426ef}of this['_findSuggestions'](_0x5cc6ef,'insertion'))if(_0x4426ef['isOwn']){if(!_0x4426ef['isNextTo']){if(_0x4426ef['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x5931a7,_0x176ea5))continue;return _0x5931a7;}if(sn(_0x5931a7,_0x176ea5))return _0x5931a7;this['_breakSuggestionMarker'](_0x5931a7,_0x5cc6ef['start'],_0x5cc6ef['end']);break;}if(_0x3622d1==_0x5931a7['subType']&&sn(_0x5931a7,_0x176ea5)){const _0xa7a11=_0x5931a7['getFirstRange']();return _0xa7a11['start']['isEqual'](_0x5cc6ef['end'])?this['_setSuggestionRange'](_0x5931a7,this['_model']['createRange'](_0x5cc6ef['start'],_0xa7a11['end'])):this['_setSuggestionRange'](_0x5931a7,this['_model']['createRange'](_0xa7a11['start'],_0x5cc6ef['end'])),_0x5931a7;}}const _0x22dcb2=_0x531b89(),_0x3dbed8=_0x1cffca['id'],_0x51595c=_0x3622d1?'insertion:'+_0x3622d1:'insertion',_0x3ed10f=this['_setSuggestionData']({'id':_0x22dcb2,'type':_0x51595c,'createdAt':new Date(),'authorId':_0x3dbed8,'attributes':_0x176ea5});return this['_addSuggestionMarker'](_0x51595c,_0x22dcb2,_0x3dbed8,_0x5cc6ef),_0x3ed10f;}['markMultiRangeInsertion'](_0x38aaa8,_0x2d3013='multi',_0x2f1d6a={}){const _0x2da249=this['editor']['plugins']['get']('Users')['me'],_0xc214ae=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2d3013,'join');this['_trackingSessionId']&&(_0x2f1d6a['trackingSessionId']=this['_trackingSessionId']);for(const _0xcb048d of this['getSuggestions']())if(_0xcb048d['author']['id']==_0x2da249['id']&&'insertion'==_0xcb048d['type']&&_0xcb048d['subType']==_0x2d3013&&sn(_0xcb048d,_0x2f1d6a)&&(_0xc214ae(_0xcb048d['getRanges'](),_0x38aaa8)||_0xc214ae(_0x38aaa8,_0xcb048d['getRanges']()))){for(const _0xa8ad0e of _0x38aaa8)_0xcb048d['addRange'](_0xa8ad0e);return _0xcb048d;}for(const {suggestion:_0x4da192,meta:_0x211f6b}of this['_findSuggestions'](_0x38aaa8,'insertion')){if(!_0x211f6b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x211f6b['containsRangeInObject'])continue;if(!sn(_0x4da192,_0x2f1d6a))continue;let _0x570c91=!0x0;for(const _0x81e8f4 of _0x4da192['getRanges']())for(const _0x28d672 of _0x38aaa8)if(!_0x81e8f4['containsRange'](_0x28d672)){_0x570c91=!0x1;break;}if(_0x570c91)return _0x4da192;}const _0x2b77b7=_0x531b89(),_0x3bd01a=_0x2da249['id'],_0x2103ad='insertion:'+_0x2d3013,_0x998064=this['_setSuggestionData']({'id':_0x2b77b7,'type':_0x2103ad,'createdAt':new Date(),'authorId':_0x3bd01a,'attributes':_0x2f1d6a});for(const _0x21302e of _0x38aaa8)this['_addSuggestionMarker'](_0x2103ad,_0x2b77b7,_0x3bd01a,_0x21302e,x['getMultiRangeId']());return _0x998064;}['markInlineFormat'](_0x442c79,_0x2336a7,_0x263fb4=null,_0x55034f={}){if(_0x263fb4=_0x263fb4||Ht(_0x2336a7),_0x442c79['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x55034f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x30a96e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x263fb4,'accept');return this['forceDefaultExecution'](()=>_0x30a96e([_0x442c79],_0x2336a7,_0x55034f)),null;}const _0x32d666=this['editor']['plugins']['get']('Users')['me'],_0x176cf9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xdeaaf7,meta:_0x2ab6d6}of this['_findSuggestions'](_0x442c79,'insertion'))_0x2ab6d6['isOwn']&&!_0x2ab6d6['isInsideObject']&&_0x176cf9['push'](..._0xdeaaf7['getRanges']());}const _0x32a01c=function(_0x53f075,_0x4b8536){const _0x1efb20=[];for(const _0x4b06c4 of _0x4b8536){const _0xdde178=_0x53f075['getIntersection'](_0x4b06c4);_0xdde178&&_0x1efb20['push'](_0xdde178);}return _0x1efb20;}(_0x442c79,_0x176cf9),_0x58d208=function(_0x436196,_0x542464){const _0x315b8b=[_0x436196];for(const _0x3610b8 of _0x542464){let _0x4b4f12=0x0;for(;_0x4b4f12<_0x315b8b['length'];){const _0x368c61=_0x315b8b[_0x4b4f12]['getDifference'](_0x3610b8);_0x315b8b['splice'](_0x4b4f12,0x1,..._0x368c61),_0x4b4f12+=_0x368c61['length'];}}return _0x315b8b;}(_0x442c79,_0x176cf9);_0x32a01c['length']&&this['_model']['change'](()=>{for(const _0x1aaf4c of _0x32a01c){const _0x36f856=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x263fb4,'accept');this['forceDefaultExecution'](()=>_0x36f856([_0x1aaf4c],_0x2336a7,_0x55034f));}});for(const _0x1f3d17 of _0x58d208){let _0xa49f01=null,_0x270925=_0x1f3d17['start'],_0x23584a=_0x1f3d17['end'];for(const {suggestion:_0x62eb94,meta:_0x2dfa37}of this['_findSuggestions'](_0x1f3d17,'formatInline')){if(!_0x2dfa37['isOwn'])continue;if(_0x62eb94['subType']!=_0x263fb4)continue;if(!sn(_0x62eb94,_0x55034f))continue;const _0x412f23=_0x62eb94['getFirstRange']();if(_0x412f23['containsRange'](_0x1f3d17,!0x0))return null;_0x270925=_0x270925['isBefore'](_0x412f23['start'])?_0x270925:_0x412f23['start'],_0x23584a=_0x23584a['isAfter'](_0x412f23['end'])?_0x23584a:_0x412f23['end'],_0xa49f01?_0x412f23['start']['isBefore'](_0xa49f01['getFirstRange']()['start'])?(_0xa49f01['removeMarkers'](),_0xa49f01=_0x62eb94):_0x62eb94['removeMarkers']():_0xa49f01=_0x62eb94;}const _0x157c70=this['_model']['createRange'](_0x270925,_0x23584a);if(_0xa49f01)this['_setSuggestionRange'](_0xa49f01,_0x157c70);else{const _0x4d1c15=_0x531b89(),_0x1febde=_0x32d666['id'];this['_setSuggestionData']({'id':_0x4d1c15,'type':'formatInline:'+_0x263fb4,'data':_0x2336a7,'createdAt':new Date(),'authorId':_0x1febde,'attributes':_0x55034f}),this['_addSuggestionMarker']('formatInline:'+_0x263fb4,_0x4d1c15,_0x1febde,_0x157c70);}}return null;}['markBlockFormat'](_0x2f4c15,_0x2b09ac,_0x18086d=[],_0x50fdb4=null,_0x3ea8db={}){_0x2b09ac['formatGroupId']||(_0x2b09ac['formatGroupId']=_0x2b09ac['commandName']),_0x2b09ac['multipleBlocks']=_0x2f4c15['is']('range'),_0x50fdb4=_0x50fdb4||Ht(_0x2b09ac);const _0x37c7e4=_0x18086d['map'](_0x2f74c6=>tn(_0x2f74c6,this['_model'])),_0x490631=_0x2f4c15['is']('range')?_0x2f4c15:tn(_0x2f4c15,this['_model']);if(this['_trackingSessionId']&&(_0x3ea8db['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc100fb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50fdb4,'accept');return this['forceDefaultExecution'](()=>_0xc100fb([_0x490631],_0x2b09ac,_0x3ea8db)),null;}_0x37c7e4['push'](_0x490631);let _0x1dcd50=!0x0;for(const _0x2d26a2 of _0x37c7e4)if(!this['_rangeIsInLocalUserInsertion'](_0x2d26a2)){_0x1dcd50=!0x1;break;}if(_0x1dcd50&&'always'!==this['_trackFormatChanges']){const _0x17433e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50fdb4,'accept');return this['forceDefaultExecution'](()=>_0x17433e([_0x490631],_0x2b09ac,_0x3ea8db)),null;}let _0x4f71f6=null,_0x179362=_0x490631['start'],_0x4ee7b5=_0x490631['end'];for(const {suggestion:_0x184c64,meta:_0x4b55ce}of this['_findSuggestions'](_0x490631,'formatBlock')){if(!_0x4b55ce['isOwn'])continue;if(_0x4b55ce['isNextTo']||_0x4b55ce['containsRangeInObject']||_0x4b55ce['isInsideObject'])continue;if(_0x184c64['data']['formatGroupId']!=_0x2b09ac['formatGroupId'])continue;if(!sn(_0x184c64,_0x3ea8db))continue;const _0x173a0f=_0x184c64['getFirstRange']();if(_0x184c64['subType']==_0x50fdb4){if(_0x173a0f['containsRange'](_0x490631,!0x0))return null;_0x179362=_0x179362['isBefore'](_0x173a0f['start'])?_0x179362:_0x173a0f['start'],_0x4ee7b5=_0x4ee7b5['isAfter'](_0x173a0f['end'])?_0x4ee7b5:_0x173a0f['end'],_0x4f71f6?_0x173a0f['start']['isBefore'](_0x4f71f6['getFirstRange']()['start'])?(_0x4f71f6['removeMarkers'](),_0x4f71f6=_0x184c64):_0x184c64['removeMarkers']():_0x4f71f6=_0x184c64;}else{const _0x59e248=_0x490631['getIntersection'](_0x173a0f);this['_cutOutSuggestionMarker'](_0x184c64,_0x59e248);}}const _0x43ab4f=this['editor']['plugins']['get']('Users')['me'],_0x58dc99=_0x531b89(),_0x1af561=_0x43ab4f['id'];if(_0x4f71f6)return this['_setSuggestionRange'](_0x4f71f6,this['_model']['createRange'](_0x179362,_0x4ee7b5)),_0x4f71f6;{const _0x33d2ee=this['_setSuggestionData']({'id':_0x58dc99,'type':'formatBlock:'+_0x50fdb4,'data':_0x2b09ac,'createdAt':new Date(),'authorId':_0x1af561,'attributes':_0x3ea8db});return this['_addSuggestionMarker']('formatBlock:'+_0x50fdb4,_0x58dc99,_0x1af561,this['_model']['createRange'](_0x179362,_0x4ee7b5)),_0x33d2ee;}}['markMultiRangeBlockFormat'](_0x46b6a4,_0x5b26a7,_0x2ca347=[],_0x3b9165=null,_0x10793c={}){_0x5b26a7['formatGroupId']||(_0x5b26a7['formatGroupId']=_0x5b26a7['commandName']);const _0x5d7c70=_0x46b6a4[0x0];_0x5b26a7['multipleBlocks']=_0x5d7c70['is']('range'),_0x3b9165=_0x3b9165||Ht(_0x5b26a7);const _0x1f75ed=_0x2ca347['map'](_0x236253=>tn(_0x236253,this['_model'])),_0x1af2ab=_0x5d7c70['is']('range')?_0x46b6a4:_0x46b6a4['map'](_0x95523=>tn(_0x95523,this['_model']));if(this['_trackingSessionId']&&(_0x10793c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x155ce5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b9165,'accept');return this['forceDefaultExecution'](()=>_0x155ce5(_0x1af2ab,_0x5b26a7,_0x10793c)),null;}_0x1f75ed['push'](..._0x1af2ab);let _0x4bb956=!0x0;for(const _0xe1468f of _0x1f75ed)if(!this['_rangeIsInLocalUserInsertion'](_0xe1468f)){_0x4bb956=!0x1;break;}if(_0x4bb956&&'always'!==this['_trackFormatChanges']){const _0xb05d28=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b9165,'accept');return this['forceDefaultExecution'](()=>_0xb05d28(_0x1af2ab,_0x5b26a7,_0x10793c)),null;}const _0x49a1d6=this['editor']['plugins']['get']('Users')['me'];for(const _0x6dbe5b of this['getSuggestions']()){const _0x5373f9=_0x6dbe5b['data'];if(_0x6dbe5b['author']['id']!=_0x49a1d6['id'])continue;if('formatBlock'!=_0x6dbe5b['type']||_0x5373f9['formatGroupId']!=_0x5b26a7['formatGroupId'])continue;if(!sn(_0x6dbe5b,_0x10793c))continue;const _0x4160fe=_0x6dbe5b['subType']==_0x3b9165;for(let _0x5bbb02=0x0;_0x5bbb02<_0x1af2ab['length'];_0x5bbb02++){const _0x4b2d00=_0x1af2ab[_0x5bbb02];for(const _0x37c082 of _0x6dbe5b['getMarkers']()){const _0x371fe9=_0x37c082['getRange']();if(_0x4b2d00['isEqual'](_0x371fe9)){_0x4160fe?(_0x1af2ab['splice'](_0x5bbb02,0x1),_0x5bbb02--):_0x6dbe5b['removeMarker'](_0x37c082['name']);break;}}}}if(0x0==_0x1af2ab['length'])return null;const _0x59bb6d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b9165,'join');for(const _0x4de800 of this['getSuggestions']()){const _0x1eee4d=_0x4de800['data'];if(_0x4de800['author']['id']==_0x49a1d6['id']&&('formatBlock'==_0x4de800['type']&&_0x1eee4d['formatGroupId']==_0x5b26a7['formatGroupId']&&_0x4de800['subType']==_0x3b9165&&sn(_0x4de800,_0x10793c)&&(_0x59bb6d(_0x4de800['getRanges'](),_0x1af2ab)||_0x59bb6d(_0x1af2ab,_0x4de800['getRanges']())))){for(const _0x2be590 of _0x1af2ab)_0x4de800['addRange'](_0x2be590);return _0x4de800;}}const _0x576f25=_0x531b89(),_0x381f83=_0x49a1d6['id'],_0x4ef21d='formatBlock:'+_0x3b9165,_0x976db3=this['_setSuggestionData']({'id':_0x576f25,'type':_0x4ef21d,'data':_0x5b26a7,'createdAt':new Date(),'authorId':_0x381f83,'attributes':_0x10793c});for(const _0x1559b0 of _0x1af2ab)this['_addSuggestionMarker'](_0x4ef21d,_0x576f25,_0x381f83,_0x1559b0,x['getMultiRangeId']());return _0x976db3;}['markDeletion'](_0x395926,_0x43b9e6=null,_0x4f77fa={}){if(_0x395926['isCollapsed'])return null;const _0x10a7a0=this['editor']['plugins']['get']('Users')['me'],_0x340e5d=new _0x393f46(_0x395926['start'],_0x395926['end']);this['_trackingSessionId']&&(_0x4f77fa['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x43eca4,meta:_0xf32baa}of this['_findSuggestions'](_0x340e5d,'insertion'))if(_0xf32baa['isOwn']&&!_0xf32baa['isNextTo']){if(_0x43eca4['isMultiRange']){const _0x54425b=_0x43eca4['getRanges']()['filter'](_0x1d81fb=>'$graveyard'!=_0x1d81fb['root']['rootName']);_0x54425b['every'](_0x579b6d=>_0x340e5d['containsRange'](_0x579b6d,!0x0))&&_0x43eca4['discard']();if(_0x54425b['some'](_0x4f8770=>_0x4f8770['containsRange'](_0x340e5d,!0x0))){const _0x460507=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x43b9e6,'accept');return this['forceDefaultExecution'](()=>_0x460507([_0x340e5d],null,_0x4f77fa)),null;}}else{const _0x51ff32=_0x340e5d['getIntersection'](_0x43eca4['getFirstRange']());null!==_0x51ff32&&_0x43eca4['_onDiscard']([_0x51ff32],null,_0x4f77fa);}}if(_0x340e5d['detach'](),_0x340e5d['isCollapsed']||'$graveyard'==_0x340e5d['root']['rootName'])return null;let _0x5c281f=null,_0x1983a0=_0x340e5d['start'],_0x5173ef=_0x340e5d['end'];const _0x46229b=this['_findSuggestions'](_0x340e5d,'deletion');for(const {suggestion:_0x1eb4f9,meta:_0x30af2d}of _0x46229b){const _0x3a1db1=this['_model']['createRange'](_0x1983a0,_0x5173ef);if(_0x30af2d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x30af2d['containsRangeInObject']&&!_0x30af2d['isInsideObject'])){if(_0x1eb4f9['isMultiRange']){if(!sn(_0x1eb4f9,_0x4f77fa))continue;let _0x5ff066=!0x0;for(const _0x5b3a17 of _0x1eb4f9['getRanges']()){if(_0x5b3a17['containsRange'](_0x3a1db1,!0x0))return _0x1eb4f9;_0x3a1db1['containsRange'](_0x5b3a17)||(_0x5ff066=!0x1);}_0x5ff066&&_0x1eb4f9['discard']();}else{const _0x3a54d3=_0x1eb4f9['getFirstRange']();if(_0x3a54d3['containsRange'](_0x3a1db1,!0x0))return _0x1eb4f9;if(!sn(_0x1eb4f9,_0x4f77fa)){_0x3a1db1['containsRange'](_0x3a54d3)?_0x1eb4f9['removeMarkers']():_0x3a54d3['containsPosition'](_0x1983a0)?_0x1983a0=_0x3a54d3['end']:_0x3a54d3['containsPosition'](_0x5173ef)&&(_0x5173ef=_0x3a54d3['start']);continue;}_0x1983a0=_0x1983a0['isBefore'](_0x3a54d3['start'])?_0x1983a0:_0x3a54d3['start'],_0x5173ef=_0x5173ef['isAfter'](_0x3a54d3['end'])?_0x5173ef:_0x3a54d3['end'],_0x4f77fa=Object['assign']({},_0x1eb4f9['attributes']),_0x5c281f?_0x3a54d3['start']['isBefore'](_0x5c281f['getFirstRange']()['start'])?(_0x5c281f['removeMarkers'](),_0x5c281f=_0x1eb4f9):_0x1eb4f9['removeMarkers']():_0x5c281f=_0x1eb4f9;}}}if(_0x5c281f)return this['_setSuggestionRange'](_0x5c281f,this['_model']['createRange'](_0x1983a0,_0x5173ef)),_0x5c281f;{const _0x40c738=_0x531b89(),_0x1ce507=this['_model']['createRange'](_0x1983a0,_0x5173ef),_0xca3153=_0x10a7a0['id'],_0x39b999=_0x43b9e6?'deletion:'+_0x43b9e6:'deletion',_0x5b8885=this['_setSuggestionData']({'id':_0x40c738,'type':_0x39b999,'createdAt':new Date(),'authorId':_0xca3153,'attributes':_0x4f77fa});return this['_addSuggestionMarker'](_0x39b999,_0x40c738,_0xca3153,_0x1ce507),_0x5b8885;}}['markMultiRangeDeletion'](_0xd5acfa,_0x48c2c6='multi',_0x3cb83b={}){const _0x97f46f=this['editor']['plugins']['get']('Users')['me'],_0x18eab2=_0xd5acfa['map'](_0x360fd7=>new _0x393f46(_0x360fd7['start'],_0x360fd7['end'])),_0x24a3aa=new Set();this['_trackingSessionId']&&(_0x3cb83b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x80c45d,meta:_0x38cbb5}of this['_findSuggestions'](_0x18eab2,'insertion'))_0x38cbb5['isOwn']&&!_0x38cbb5['isNextTo']&&_0x24a3aa['add'](_0x80c45d);for(const _0x596543 of _0x24a3aa)if(_0x596543['isMultiRange']){const _0x4746d3=_0x596543['getRanges']();(!_0x596543['attributes']||!_0x596543['attributes']['skipNestingCheck'])&&(_0x4746d3['every'](_0x411e62=>_0x18eab2['some'](_0x88cd7e=>_0x88cd7e['containsRange'](_0x411e62,!0x0)))&&_0x596543['discard']());if(_0x18eab2['every'](_0x34717a=>_0x4746d3['some'](_0x24b287=>_0x24b287['containsRange'](_0x34717a,!0x0)))){const _0x2275b8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48c2c6,'accept');return this['forceDefaultExecution'](()=>_0x2275b8(_0xd5acfa,null,_0x3cb83b)),null;}}else{const _0x3b7e2a=_0x596543['getFirstRange']();_0x18eab2['some'](_0xdbdbb6=>_0xdbdbb6['containsRange'](_0x3b7e2a,!0x0))&&_0x596543['discard']();if(_0x18eab2['every'](_0x49616e=>_0x3b7e2a['containsRange'](_0x49616e,!0x0))){const _0x32c627=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48c2c6,'accept');return this['forceDefaultExecution'](()=>_0x32c627(_0x18eab2,null,_0x3cb83b)),null;}}const _0x3b5e79=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48c2c6,'join');let _0x23e6c3=null;for(const _0x541d72 of this['getSuggestions']())if(_0x541d72['author']['id']==_0x97f46f['id']&&_0x541d72['isInContent']&&'deletion'==_0x541d72['type']&&_0x541d72['subType']==_0x48c2c6&&sn(_0x541d72,_0x3cb83b)&&(_0x3b5e79(_0x541d72['getRanges'](),_0x18eab2)||_0x3b5e79(_0x18eab2,_0x541d72['getRanges']()))){if(_0x23e6c3){if(_0x541d72['commentThread']&&_0x541d72['commentThread']['length'])continue;for(const _0x56be28 of _0x541d72['getRanges']())_0x23e6c3['isIntersectingWithRange'](_0x56be28)||_0x23e6c3['addRange'](_0x56be28);_0x541d72['removeMarkers']();}else{_0x23e6c3=_0x541d72;for(const _0x3ba3b7 of _0x18eab2)_0x541d72['isIntersectingWithRange'](_0x3ba3b7)||_0x541d72['addRange'](_0x3ba3b7);}}if(_0x23e6c3)return _0x23e6c3;_0x24a3aa['clear']();for(const {suggestion:_0xd51c2b,meta:_0x30e94f}of this['_findSuggestions'](_0x18eab2,'deletion'))_0x30e94f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x30e94f['containsRangeInObject']&&!_0x30e94f['isInsideObject'])&&sn(_0xd51c2b,_0x3cb83b)&&_0x24a3aa['add'](_0xd51c2b);for(const _0x37da69 of _0x24a3aa){const _0xe9a2f0=_0x37da69['getRanges']();if(!_0x3cb83b||!_0x3cb83b['skipNestingCheck']){if(_0x18eab2['every'](_0xc6540f=>_0xe9a2f0['some'](_0x32b386=>_0x32b386['containsRange'](_0xc6540f,!0x0))))return _0x37da69;}(!_0x37da69['attributes']||!_0x37da69['attributes']['skipNestingCheck'])&&(_0xe9a2f0['every'](_0x7127f3=>_0x18eab2['some'](_0x344f45=>_0x344f45['containsRange'](_0x7127f3,!0x0)))&&_0x37da69['discard']());}const _0x3f9f38=_0x531b89(),_0x57c5d7=_0x97f46f['id'],_0x302477='deletion:'+_0x48c2c6,_0x34bf47=this['_setSuggestionData']({'id':_0x3f9f38,'type':_0x302477,'createdAt':new Date(),'authorId':_0x57c5d7,'attributes':_0x3cb83b});for(const _0x32d7f8 of _0x18eab2)_0x32d7f8['detach'](),_0x32d7f8['isCollapsed']||'$graveyard'==_0x32d7f8['root']['rootName']||this['_addSuggestionMarker'](_0x302477,_0x3f9f38,_0x57c5d7,_0x32d7f8,x['getMultiRangeId']());return _0x34bf47;}['markAttributeChange'](_0x389483,_0x5cb465,_0x5d4a9e,_0x5f358b,_0x3b36f9){if(_0x389483['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x341b3e=this['editor']['plugins']['get']('Users')['me']['id'],_0x55fa62=Array['from'](this['_suggestions']['values']())['filter'](_0x30f367=>'attribute'==_0x30f367['type']&&_0x30f367['data']['key']==_0x5cb465&&_0x30f367['isIntersectingWithRange'](_0x389483));if(this['_trackingSessionId']&&(_0x3b36f9['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1eeffa=this['_findSuggestions'](_0x389483,'insertion')['filter'](({meta:_0x8aa98f})=>_0x8aa98f['isOwn']&&!_0x8aa98f['isInsideObject']&&!_0x8aa98f['isNextTo'])['map'](({suggestion:_0xfb2c92})=>_0xfb2c92);_0x55fa62['unshift'](..._0x1eeffa);}const _0x8ddc08=new Map([[_0x389483,_0x5d4a9e]]);for(const _0x1f158b of _0x55fa62){const _0x13b8fa='attribute'==_0x1f158b['type']?_0x1f158b['data']['oldValue']:void 0x0,_0x446df5=_0x1f158b['getFirstRange'](),_0x433316=Array['from'](_0x8ddc08['keys']())['find'](_0x49852f=>_0x49852f['isIntersecting'](_0x446df5));if(!_0x433316)continue;const _0x3665b5=_0x433316['getDifference'](_0x446df5);this['_isBlockAttribute'](_0x5cb465)&&'insertion'==_0x1f158b['type']&&0x0!=_0x3665b5['length']||(_0x8ddc08['delete'](_0x433316),_0x3665b5['forEach'](_0x5ba5c0=>{_0x8ddc08['set'](_0x5ba5c0,_0x5d4a9e);}),'insertion'!=_0x1f158b['type']&&_0x13b8fa!=_0x5f358b&&_0x8ddc08['set'](_0x433316['getIntersection'](_0x446df5),_0x13b8fa));}const _0x223586=[];for(const [_0x48a5a7,_0x53123e]of _0x8ddc08){const _0x273253=_0x531b89(),_0x2171b9={'key':_0x5cb465,'oldValue':_0x53123e,'newValue':_0x5f358b};_0x5cb465['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':_0x5cb465});const _0x36d03c=('attribute:'+(_0x5cb465+'|'+Ht({'newValue':_0x5f358b})))['substring'](0x0,0x3c),_0x65e61a=this['_setSuggestionData']({'id':_0x273253,'type':_0x36d03c,'data':_0x2171b9,'createdAt':new Date(),'authorId':_0x341b3e,'attributes':_0x3b36f9});_0x223586['push'](_0x65e61a),this['_addSuggestionMarker'](_0x36d03c,_0x273253,_0x341b3e,_0x48a5a7);}return _0x223586;}['enableDefaultAttributesIntegration'](_0x1e8e72){this['enableCommand'](_0x1e8e72,(_0x50f24d,..._0x3dcebd)=>{this['recordAttributeChanges'](()=>{_0x50f24d(..._0x3dcebd);});});}['registerBlockAttribute'](_0xe3aab7){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0xe3aab7);}['registerInlineAttribute'](_0x22f8db){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x22f8db);}['startTrackingSession'](_0x3c913c){return this['_trackingSessionId']=void 0x0!==_0x3c913c?_0x3c913c:_0x531b89(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1baaf3){return'attribute'==_0x1baaf3['type']?_0x1baaf3['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x2ed120){if(0x0==_0x2ed120['length'])return;const _0x96f44b=this['editor'],_0x35836c=_0x96f44b['plugins']['get'](_0x43db28),_0x222b72=[];_0x96f44b['model']['change'](_0x44b0f2=>{for(let _0x4997de=0x0;_0x4997de<_0x2ed120['length'];_0x4997de++){const _0x59de01=_0x2ed120[_0x4997de];if(_0x59de01['baseVersion']=_0x96f44b['model']['document']['version'],_0x59de01['isDocumentOperation']=!0x0,_0x35836c['isMarkedRemoveOperation'](_0x59de01)){const _0x2127ec=Lt(_0x59de01['newRange'],_0x96f44b['model']);_0x222b72['unshift'](_0x393f46['fromRange'](_0x2127ec));}else switch(_0x59de01['type']){case'rename':{const _0x41010a=_0x59de01['oldName'],_0x1eaa86=_0x59de01['newName'];if(_0x41010a==_0x1eaa86)break;_0x44b0f2['batch']['addOperation'](_0x59de01),_0x96f44b['model']['applyOperation'](_0x59de01);const _0x2eff0f='$elementName',_0x33cd65=_0x59de01['position'],_0x3136ea=_0x96f44b['model']['createRange'](_0x33cd65,_0x96f44b['model']['createPositionAt'](_0x33cd65['nodeAfter'],'end'));this['markAttributeChange'](_0x3136ea,_0x2eff0f,_0x41010a,_0x1eaa86,{'groupId':_0x531b89()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x47225f=_0x59de01['oldValue'],_0x288ace=_0x59de01['newValue'];if(_0x47225f==_0x288ace)break;_0x44b0f2['batch']['addOperation'](_0x59de01),_0x96f44b['model']['applyOperation'](_0x59de01);const _0x525e57=_0x59de01['key'];if(!this['_isRegisteredAttribute'](_0x525e57))break;const _0x16d775=Lt(_0x59de01['range'],_0x96f44b['model']);this['markAttributeChange'](_0x16d775,_0x525e57,_0x47225f,_0x288ace,{'groupId':_0x531b89()});break;}case'insert':{_0x44b0f2['batch']['addOperation'](_0x59de01),_0x96f44b['model']['applyOperation'](_0x59de01);if(_0x2ed120[_0x4997de+0x1]&&'move'==_0x2ed120[_0x4997de+0x1]['type'])break;const _0x58f810=_0x59de01['position'],_0x3e40b8=_0x59de01['howMany'],_0x2c9b02=Lt(_0x96f44b['model']['createRange'](_0x58f810,_0x58f810['getShiftedBy'](_0x3e40b8)),_0x96f44b['model']);this['markInsertion'](_0x2c9b02);break;}case'split':{_0x44b0f2['batch']['addOperation'](_0x59de01),_0x96f44b['model']['applyOperation'](_0x59de01);const _0xb8ae1=_0x59de01['splitPosition'],_0x2585e2=_0x59de01['moveTargetPosition'];this['markInsertion'](_0x96f44b['model']['createRange'](_0xb8ae1,_0x2585e2));break;}case'move':case'remove':_0x44b0f2['batch']['addOperation'](_0x59de01),_0x96f44b['model']['applyOperation'](_0x59de01);}}for(const _0xaeaf of _0x222b72)_0xaeaf['detach'](),this['markDeletion'](_0xaeaf);});}['_setSuggestionRange'](_0x17bb70,_0x610db7){const _0x51b66a=_0x17bb70['getFirstMarker']();this['_model']['change'](_0x3e66bc=>{_0x3e66bc['updateMarker'](_0x51b66a,{'range':_0x610db7});});}['_addThreadToSuggestion'](_0x22233b){const _0x18c25f=_0x22233b['id'],_0x4f3faf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x18c25f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4f3faf,'threadId':_0x18c25f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4242c3=this['_commentsRepository']['getCommentThread'](_0x18c25f);_0x4242c3['unbind']('isRemovable'),_0x4242c3['isRemovable']=!0x1,_0x22233b['commentThread']=_0x4242c3;}['_checkSuggestionCorrectness'](_0x18e703,_0x5a03eb,_0x504ddf,_0x231d3c){if(_0x18e703['type']!=_0x5a03eb||_0x18e703['subType']!=_0x504ddf||_0x18e703['creator']['id']!=_0x231d3c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2557e8('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x16815a,_0x564e05){const _0x50e1ab=_0x16815a['getFirstRange']();if(_0x564e05['isEqual'](_0x50e1ab))_0x16815a['removeMarkers']();else{if(_0x50e1ab['containsRange'](_0x564e05)){const _0x289a92=this['_model']['createPositionAt'](_0x564e05['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16815a,this['_model']['createRange'](_0x50e1ab['start'],_0x289a92));const _0x55a322=_0x531b89(),_0x2f8b28=_0x16815a['creator']['id'],_0x214c1d=_0x16815a['type']+':'+_0x16815a['subType'];this['_setSuggestionData']({'id':_0x55a322,'type':_0x214c1d,'createdAt':new Date(),'authorId':_0x2f8b28,'data':_0x16815a['data'],'attributes':_0x16815a['attributes']});const _0x23370f=this['_model']['createPositionAt'](_0x564e05['end']['parent'],'after'),_0x118b76=this['_model']['createRange'](_0x23370f,_0x50e1ab['end']);this['_addSuggestionMarker'](_0x214c1d,_0x55a322,_0x2f8b28,_0x118b76);}else{if(_0x50e1ab['containsPosition'](_0x564e05['start'])){const _0x42c9e5=this['_model']['createPositionAt'](_0x564e05['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16815a,this['_model']['createRange'](_0x50e1ab['start'],_0x42c9e5));}else{const _0x461b72=this['_model']['createPositionAt'](_0x564e05['end']['parent'],'after');this['_setSuggestionRange'](_0x16815a,this['_model']['createRange'](_0x461b72,_0x50e1ab['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x324942){for(const {suggestion:_0x2785b5,meta:_0x1ad5dd}of this['_findSuggestions'](_0x324942,'insertion')){if(!_0x1ad5dd['isOwn'])continue;const _0x28870e=_0x2785b5['getRanges']();for(const _0x25452a of _0x28870e)if(!_0x324942['getDifference'](_0x25452a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x59263a){return this['editor']['plugins']['get']('Users')['getUser'](_0x59263a);}['_getExternalAuthor'](_0x10fbf9){const _0x1b4236=this['editor']['plugins']['get']('Users'),_0x4272c5=_0x12c857('external:'+_0x10fbf9),_0x3501af=_0x1b4236['getUser'](_0x4272c5);return _0x3501af||_0x1b4236['addUser']({'id':_0x4272c5,'name':_0x10fbf9});}['_createSuggestion'](_0x2d0ce8,_0xeb083c,_0x4c0ef3,_0x4fb17,_0xa5d38b,_0xd538ad){const _0x2af138=this['_getAuthorFromId'](_0x4fb17);if(!_0x2af138)throw new _0x2557e8('track-changes-user-not-found',this,{'authorId':_0x4fb17,'suggestionId':_0x4c0ef3});const _0x5c5abf=this['_suggestionFactory']['buildSuggestion'](_0x2d0ce8,_0xeb083c,_0x4c0ef3,_0x2af138,_0xa5d38b,_0x44d2a8=>{this['_updateSuggestionData'](_0x4c0ef3,{'attributes':_0x44d2a8});const _0x161a45=this['getSuggestion'](_0x4c0ef3);this['_joinWithAdjacentSuggestions'](new Set([_0x161a45])),this['_refreshSuggestionsChain'](new Set([_0x161a45]));},_0xd538ad);return this['listenTo'](_0x5c5abf,'accept',()=>{this['_updateSuggestionData'](_0x4c0ef3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5c5abf,'discard',()=>{this['_updateSuggestionData'](_0x4c0ef3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4c0ef3,_0x5c5abf),this['_suggestionState']['set'](_0x5c5abf,'notReady'),_0x5c5abf;}['_splitMarkerName'](_0x3856ab){return Gt(_0x3856ab);}['_breakSuggestionMarker'](_0x1d0cb1,_0x2d5abf,_0x36f7e3){const _0x457825=_0x1d0cb1['getFirstRange'](),_0x2740af=_0x457825['start'],_0x1c6a79=_0x457825['end'];this['_setSuggestionRange'](_0x1d0cb1,this['_model']['createRange'](_0x2740af,_0x2d5abf));const _0xd5cd61=_0x531b89(),_0xabbbaf=_0x1d0cb1['creator']['id'],_0x1150f7=_0x1d0cb1['type']+(_0x1d0cb1['subType']?':'+_0x1d0cb1['subType']:'');this['_setSuggestionData']({'id':_0xd5cd61,'type':_0x1150f7,'createdAt':new Date(),'authorId':_0xabbbaf,'originalSuggestionId':_0x1d0cb1['_originalSuggestionId']||_0x1d0cb1['id'],'attributes':_0x1d0cb1['attributes'],'data':_0x1d0cb1['data']});const _0x2b26f5=this['_getAttributeKey'](_0x1d0cb1);('formatBlock'==_0x1d0cb1['type']||_0x2b26f5&&this['_isBlockAttribute'](_0x2b26f5))&&(_0x36f7e3=this['_model']['createPositionBefore'](_0x36f7e3['parent'])),this['_addSuggestionMarker'](_0x1150f7,_0xd5cd61,_0xabbbaf,this['_model']['createRange'](_0x36f7e3,_0x1c6a79));}['_findSuggestions'](_0x574ca8,_0x2dfcae=null){const _0x425387=[],_0x5d25bf=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x574ca8)||(_0x574ca8=[_0x574ca8]);for(const _0x3931db of this['getSuggestions']()){if(!_0x3931db['isInContent'])continue;if(_0x2dfcae&&_0x3931db['type']!=_0x2dfcae)continue;let _0x28bcf4=!0x1;for(const _0xeb3b52 of _0x3931db['getRanges']()){for(const _0x269563 of _0x574ca8){const _0xf61d46=_0x269563['start']['isEqual'](_0xeb3b52['end'])||_0x269563['end']['isEqual'](_0xeb3b52['start']);if(_0xf61d46||_0x269563['getIntersection'](_0xeb3b52)){const _0x551b60=_0x269563['containsRange'](_0xeb3b52)&&zt(this['_model']['schema'],_0xeb3b52['start'],_0x269563),_0x4e42ed=_0xeb3b52['containsRange'](_0x269563)&&zt(this['_model']['schema'],_0x269563['start'],_0xeb3b52);_0x425387['push']({'suggestion':_0x3931db,'meta':{'isOwn':_0x5d25bf==_0x3931db['author'],'isNextTo':_0xf61d46,'isInsideObject':_0x551b60,'containsRangeInObject':_0x4e42ed}}),_0x28bcf4=!0x0;break;}}if(_0x28bcf4)break;}}return _0x425387;}['_addSuggestionMarker'](_0x44627b,_0x493d53,_0x29483d,_0x2c55e4,_0x14513b){this['_model']['change'](_0x243de8=>{let _0x31825c='suggestion:'+_0x44627b+':'+_0x493d53+':'+_0x29483d;_0x14513b&&(_0x31825c=_0x31825c+':'+_0x14513b),_0x243de8['addMarker'](_0x31825c,{'range':_0x2c55e4,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x32e71d){const _0x2dd5fc=_0x32e71d['previous'],_0x4c55ff=_0x32e71d['next'];_0x32e71d['previous']=null,_0x32e71d['next']=null,null!=_0x2dd5fc&&_0x2dd5fc['next']==_0x32e71d&&(_0x2dd5fc['next']=_0x4c55ff),null!=_0x4c55ff&&_0x4c55ff['previous']==_0x32e71d&&(_0x4c55ff['previous']=_0x2dd5fc),'ready'==this['_suggestionState']['get'](_0x32e71d)&&(this['_suggestionState']['set'](_0x32e71d,'removed'),this['fire']('suggestionUnloaded',_0x32e71d,_0x2dd5fc,_0x4c55ff));}['_setSuggestionData'](_0xbb818a){const _0x779b65=_0xbb818a['id'],_0x175a88=this['addSuggestionData'](_0xbb818a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2a2752=this['editor']['plugins']['get']('PendingActions'),_0x5b4751=_0x175a88['hasComments'],_0x1dad4c=_0x175a88['subType']?_0x175a88['type']+':'+_0x175a88['subType']:_0x175a88['type'],_0x35e367=this['editor']['locale'],_0x564946=_0x2a2752['add'](o(_0x35e367,'PENDING_ACTION_SUGGESTION')),_0x4cfc3d={'id':_0x779b65,'type':_0x1dad4c,'hasComments':_0x5b4751,'data':_0xbb818a['data']||null,'originalSuggestionId':_0xbb818a['originalSuggestionId']||null,'attributes':_0x175a88['attributes']};this['_adapter']['addSuggestion'](_0x4cfc3d)['then'](_0x5b1db2=>{_0x175a88['_saved']=!0x0,_0x2a2752['remove'](_0x564946),_0x5b1db2&&_0x5b1db2['createdAt']&&(this['_suggestions']['get'](_0x779b65)['createdAt']=_0x5b1db2['createdAt']);})['catch'](_0x59483e=>{throw _0x3bf1ea('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x175a88['discard']();}),_0x175a88['stopListening'](),this['_suggestions']['delete'](_0x175a88['id']),this['_suggestionState']['delete'](_0x175a88),_0x59483e;});}return _0x175a88;}['_isBlockAttribute'](_0x45cb6e){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x45cb6e);}['_isInlineAttribute'](_0x1b4be6){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x1b4be6);}['_updateSuggestionData'](_0x1cebf1,_0xce078d){const _0x10f4b2=this['editor']['plugins']['get']('PendingActions'),_0x434b52=this['getSuggestion'](_0x1cebf1);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x434b52['_saved']){const _0x28d2a5=_0x10f4b2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1cebf1,_0xce078d)['then'](()=>{_0x10f4b2['remove'](_0x28d2a5);});}else _0x434b52['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1cebf1,_0xce078d);});}}['_getSuggestionData'](_0x340856){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2557e8('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x340856);}['_handleNewSuggestionMarker'](_0x303ce1){const {id:_0x77e3ac,type:_0x56892a,subType:_0x1f14fd,authorId:_0x52d030}=this['_splitMarkerName'](_0x303ce1),_0x2eb3fa=this['_suggestions']['get'](_0x77e3ac)||this['_createSuggestion'](_0x56892a,_0x1f14fd,_0x77e3ac,_0x52d030,{});switch(this['_checkSuggestionCorrectness'](_0x2eb3fa,_0x56892a,_0x1f14fd,_0x52d030),this['_suggestionState']['get'](_0x2eb3fa)){case'notReady':this['_getSuggestionData'](_0x77e3ac)['then'](_0x41b73b=>{let _0xf4fcb1=Promise['resolve']();_0x41b73b['hasComments']&&(_0xf4fcb1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x77e3ac})),_0xf4fcb1['then'](()=>{this['addSuggestionData'](_0x41b73b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2eb3fa,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x77e3ac,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2eb3fa,'ready'),this['fire']('suggestionLoaded',_0x2eb3fa);break;case'ready':this['fire']('suggestionChanged',_0x2eb3fa);}return _0x2eb3fa['addMarkerName'](_0x303ce1),_0x2eb3fa;}['_refreshSuggestionsChain'](_0x18fe3d){const _0x5a40d3=Array['from'](_0x18fe3d),_0x57c145=_0x5a40d3['filter'](_0x55f752=>'attribute'==_0x55f752['type']);this['_refreshAttributeSuggestionsChain'](_0x57c145);const _0x451c89=_0x5a40d3['filter'](_0x55b199=>!_0x55b199['isMultiRange']&&'attribute'!=_0x55b199['type']),_0x3796bc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23b516=>!_0x23b516['isMultiRange']&&'attribute'!=_0x23b516['type']),_0x47b6d9=_0x3796bc['filter'](_0x1bc0ef=>!_0x18fe3d['has'](_0x1bc0ef)),_0x390d7b=new Map(_0x3796bc['map'](_0x1d3450=>[_0x1d3450,this['_suggestionFactory']['getSuggestionCallback'](_0x1d3450['type'],_0x1d3450['subType'],'chain')])),_0xe79c8b=new Map(_0x3796bc['map'](_0x4f6197=>[_0x4f6197,_0x4f6197['getFirstRange']()])),_0x2d145a=new Set(),_0x1b6efb=new Set();for(let _0x4cdc88=0x0;_0x4cdc88<_0x451c89['length'];_0x4cdc88++)_0x3516dd(_0x451c89[_0x4cdc88],_0x451c89,_0x4cdc88+0x1);for(let _0x3287c2=0x0;_0x3287c2<_0x451c89['length'];_0x3287c2++)_0x3516dd(_0x451c89[_0x3287c2],_0x47b6d9,0x0);const _0x40e755=new Set();for(let _0x210aea=0x0;_0x210aea<_0x451c89['length'];_0x210aea++){const _0x3bb135=_0x451c89[_0x210aea];!_0x1b6efb['has'](_0x3bb135)&&_0x3bb135['previous']&&(_0x40e755['add'](_0x3bb135['previous']),_0x3bb135['previous']['next']===_0x3bb135&&(_0x3bb135['previous']['next']=null),_0x3bb135['previous']=null),!_0x2d145a['has'](_0x3bb135)&&_0x3bb135['next']&&(_0x40e755['add'](_0x3bb135['next']),_0x3bb135['next']['previous']===_0x3bb135&&(_0x3bb135['next']['previous']=null),_0x3bb135['next']=null);}function _0x3516dd(_0x1e57fa,_0x7b0958,_0x37a1e8){for(let _0x15154f=_0x37a1e8;_0x15154f<_0x7b0958['length'];_0x15154f++){const _0x54c61e=_0x520128(_0x1e57fa,_0x7b0958[_0x15154f]);_0x54c61e&&(_0x54c61e[0x0]['next']=_0x54c61e[0x1],_0x54c61e[0x1]['previous']=_0x54c61e[0x0],_0x2d145a['add'](_0x54c61e[0x0]),_0x1b6efb['add'](_0x54c61e[0x1]));}}function _0x520128(_0x4d31f4,_0x467c0e){if(_0x4d31f4['author']['id']!==_0x467c0e['author']['id'])return null;const _0x58a167=_0x390d7b['get'](_0x4d31f4)(_0x4d31f4,_0x467c0e,_0xe79c8b['get'](_0x4d31f4),_0xe79c8b['get'](_0x467c0e));if(!_0x58a167)return null;return _0x390d7b['get'](_0x467c0e)(_0x4d31f4,_0x467c0e,_0xe79c8b['get'](_0x4d31f4),_0xe79c8b['get'](_0x467c0e))?_0x58a167[0x1]['commentThread']&&_0x58a167[0x1]['commentThread']['length']?null:_0x58a167:null;}_0x40e755['size']&&this['_refreshSuggestionsChain'](_0x40e755);}['_refreshAttributeSuggestionsChain'](_0x5c4b5a){if(0x0==_0x5c4b5a['length'])return;const _0x1bd022=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3164b9=>'attribute'==_0x3164b9['type']&&_0x3164b9['_isDataLoaded']),_0x46f1cf=[],_0x54b567=new Map();for(const _0x3bdccb of _0x1bd022){const _0x4e8929=_0x12c857(_0x3bdccb['attributes']);_0x54b567['has'](_0x4e8929)||(_0x54b567['set'](_0x4e8929,_0x46f1cf['length']),_0x46f1cf['push']([]));const _0x1aa5fc=_0x54b567['get'](_0x4e8929);_0x46f1cf[_0x1aa5fc]['push'](_0x3bdccb);}!(function(){_0x46f1cf['sort']((_0x1c2f89,_0x2abbbd)=>{const _0x225856=_0x1c2f89[0x0]['createdAt'],_0x316b59=_0x2abbbd[0x0]['createdAt'];return _0x225856==_0x316b59?_0x1c2f89[0x0]['attributes']['groupId']<_0x2abbbd[0x0]['attributes']['groupId']?-0x1:0x1:_0x225856<_0x316b59?-0x1:0x1;});for(const _0x937af9 of _0x46f1cf)_0x937af9['sort']((_0x7255a6,_0x3acaa8)=>_0x7255a6['id']<_0x3acaa8['id']?-0x1:0x1);}());for(let _0x530248=0x0;_0x530248<_0x46f1cf['length'];_0x530248++){if(0x0==_0x46f1cf[_0x530248]['length'])continue;const _0x43ade9=[];for(let _0x50d3c2=_0x530248+0x1;_0x50d3c2<_0x46f1cf['length'];_0x50d3c2++)0x0!=_0x46f1cf[_0x50d3c2]['length']&&_0x3936ca(_0x46f1cf[_0x530248],_0x46f1cf[_0x50d3c2])&&_0x43ade9['push'](_0x50d3c2);for(const _0x325844 of _0x43ade9)_0x46f1cf[_0x530248]=_0x46f1cf[_0x530248]['concat'](_0x46f1cf[_0x325844]),_0x46f1cf[_0x325844]=[];}for(const _0x27a15d of _0x46f1cf)for(let _0x32e906=0x0;_0x32e906<_0x27a15d['length'];_0x32e906++){const _0x4cfbe0=_0x27a15d[_0x32e906+0x1]||null;_0x27a15d[_0x32e906]['next']!==_0x4cfbe0&&(_0x27a15d[_0x32e906]['next']=_0x4cfbe0);}for(const _0x13cb86 of _0x46f1cf)for(let _0x7579bd=0x0;_0x7579bd<_0x13cb86['length'];_0x7579bd++){const _0x2f2477=_0x13cb86[_0x7579bd-0x1]||null;_0x13cb86[_0x7579bd]['previous']!==_0x2f2477&&(_0x13cb86[_0x7579bd]['previous']=_0x2f2477);}function _0x3936ca(_0x5a6084,_0x50e853){if(_0x5a6084[0x0]['attributes']['groupId']!==_0x50e853[0x0]['attributes']['groupId']&&_0x5a6084[0x0]['author']!==_0x50e853[0x0]['author'])return!0x1;if(!function(_0x489af2,_0x1662c6){if(!_0x489af2['hasComments']&&!_0x1662c6['hasComments'])return!0x0;if(_0x489af2['hasComments']&&_0x1662c6['hasComments'])return!0x1;if(_0x489af2['hasComments']&&_0x1662c6['createdAt']<_0x489af2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1662c6['hasComments']&&_0x489af2['createdAt']<_0x1662c6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5a6084[0x0],_0x50e853[0x0]))return!0x1;const _0x354642=Pt(_0x5a6084[0x0]['attributes'],['groupId','trackingSessionId']),_0x536a9e=Pt(_0x50e853[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4f9f48(_0x354642,_0x536a9e))return!0x1;if(_0x5a6084[0x0]['attributes']['groupId']==_0x50e853[0x0]['attributes']['groupId'])return!0x0;if(_0x5a6084[0x0]['attributes']['trackingSessionId']!==_0x50e853[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5a6084['every'](_0x3827f6=>_0x50e853['some'](_0x552e30=>_0x3827f6['getFirstRange']()['isEqual'](_0x552e30['getFirstRange']())))&&_0x50e853['every'](_0x3f40e7=>_0x5a6084['some'](_0x1a895d=>_0x3f40e7['getFirstRange']()['isEqual'](_0x1a895d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4602aa){const _0x3fb167=Array['from'](_0x4602aa),_0xe212da=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ba5f7=_0xe212da['filter'](_0x299284=>!_0x4602aa['has'](_0x299284)),_0xb69dce=new Map(_0x3fb167['map'](_0x5214ba=>[_0x5214ba,this['_suggestionFactory']['getSuggestionCallback'](_0x5214ba['type'],_0x5214ba['subType'],'join')])),_0x5d03d8=new Map(_0xe212da['map'](_0x2aec43=>[_0x2aec43,_0x2aec43['getRanges']()]));for(let _0x2932b0=0x0;_0x2932b0<_0x3fb167['length'];_0x2932b0++){if(_0x45192f(this,_0x3fb167[_0x2932b0],_0x3fb167,_0x2932b0+0x1))return!0x0;}for(let _0x358a11=0x0;_0x358a11<_0x3fb167['length'];_0x358a11++){if(_0x45192f(this,_0x3fb167[_0x358a11],_0x3ba5f7,0x0))return!0x0;}return!0x1;function _0x45192f(_0x10ed5e,_0x5aefa0,_0x1bb4ae,_0x4f0046){for(let _0x2e5819=_0x4f0046;_0x2e5819<_0x1bb4ae['length'];_0x2e5819++){const _0x5df12d=_0x1bb4ae[_0x2e5819];if(_0x5df12d['type']!==_0x5aefa0['type']||_0x5df12d['author']['id']!==_0x5aefa0['author']['id']||_0x5df12d['subType']!==_0x5aefa0['subType'])continue;if(!en(_0x5aefa0,_0x5df12d))continue;if('attribute'==_0x5aefa0['type']&&_0x5aefa0['data']['oldValue']!=_0x5df12d['data']['oldValue'])continue;if('attribute'==_0x5aefa0['type']&&_0x10ed5e['_isBlockAttribute'](_0x5aefa0['data']['key']))continue;if('formatBlock'==_0x5aefa0['type']){const _0x598ebc=_0x10ed5e['editor']['model'],_0x300aa3=_0x5aefa0['getContainedElement']();if(_0x300aa3&&(_0x598ebc['schema']['isObject'](_0x300aa3)||_0x598ebc['schema']['isLimit'](_0x300aa3)))continue;}const _0x3437e5=_0xb69dce['get'](_0x5aefa0),_0x271a33=_0x5d03d8['get'](_0x5aefa0),_0x43deef=_0x5d03d8['get'](_0x5df12d),_0x29036a=_0x5aefa0['commentThread']&&_0x5aefa0['commentThread']['length'],_0x2b18ba=_0x5df12d['commentThread']&&_0x5df12d['commentThread']['length'];if(!_0x29036a&&_0x3437e5(_0x43deef,_0x271a33))return _0x10ed5e['_joinSuggestions'](_0x5df12d,_0x5aefa0),_0x5d03d8['delete'](_0x5aefa0),!0x0;if(!_0x2b18ba&&_0x3437e5(_0x271a33,_0x43deef))return _0x10ed5e['_joinSuggestions'](_0x5aefa0,_0x5df12d),_0x5d03d8['delete'](_0x5df12d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x942a8d,_0x273255){if(_0x942a8d['isMultiRange']){for(const _0xe71d49 of _0x273255['getRanges']())_0x942a8d['addRange'](_0xe71d49);}else{const _0x5a72f4=_0x273255['getFirstRange']()['end'];this['_setSuggestionRange'](_0x942a8d,this['_model']['createRange'](_0x942a8d['getFirstRange']()['start'],_0x5a72f4));}_0x273255['removeMarkers']();}['_getMarkerAnnouncementText'](_0x187c0b,_0x98f9f7,_0x352133){const _0x1db4b5=_0x187c0b['startsWith']('format')||_0x187c0b['startsWith']('attribute')?'FORMATTING':_0x187c0b['toUpperCase']();return o(this['editor']['locale'],_0x98f9f7+'_'+_0x1db4b5+'_SUGGESTION_ANNOUNCEMENT',_0x352133);}['_initAriaMarkerChangeAnnouncements'](){const _0x5b23b5=this['editor'];if(!_0x5b23b5['ui'])return;const {ariaLiveAnnouncer:_0x44cbad}=_0x5b23b5['ui'];_0x42ea18(this['_model'],({left:_0x9d302f,entered:_0x43359c})=>{for(const _0x36e4e0 of _0x9d302f){const {group:_0x1939b9,type:_0x4c3537}=this['_splitMarkerName'](_0x36e4e0['name']);if('suggestion'===_0x1939b9){_0x44cbad['announce'](this['_getMarkerAnnouncementText'](_0x4c3537,'LEAVE'));break;}}for(const _0x282f88 of _0x43359c){const {group:_0x17631d,type:_0x105e4c}=this['_splitMarkerName'](_0x282f88['name']);if('suggestion'===_0x17631d){_0x44cbad['announce'](this['_getMarkerAnnouncementText'](_0x105e4c,'ENTER',_0x231584(_0x2ab3aa)));break;}}});}['_processAttributeChanges'](_0x166e63){if(this['_recordAttributeSuggestions'])return!0x1;const _0x482e4b=this['editor'],_0x9e667d=_0x482e4b['model']['document']['differ']['getChanges']();if(0x0==_0x9e667d['length'])return!0x1;const _0x22a27a=[],_0x4db77e=_0x9e667d['filter'](_0x1dd80c=>'attribute'==_0x1dd80c['type']),_0x204dff=_0x9e667d['filter'](_0x677464=>'insert'==_0x677464['type']&&'$text'!=_0x677464['name']),_0x36170d=_0x9e667d['filter'](_0x4cba6a=>'remove'==_0x4cba6a['type']&&'$text'!=_0x4cba6a['name']);for(const _0x11e03c of _0x4db77e)_0x22a27a['push']({'key':_0x11e03c['attributeKey'],'newValue':_0x11e03c['attributeNewValue'],'oldValue':_0x11e03c['attributeOldValue'],'range':Zt(_0x11e03c['range'],_0x482e4b['model'])});for(const _0x11be27 of _0x204dff){const _0x11d6eb=_0x36170d['find'](_0x45fc2a=>_0x45fc2a['position']['isEqual'](_0x11be27['position']));_0x11d6eb&&_0x22a27a['push']({'key':m,'newValue':_0x11be27['name'],'oldValue':_0x11d6eb['name'],'range':_0x482e4b['model']['createRangeOn'](_0x11be27['position']['nodeAfter'])});}return 0x0!=_0x22a27a['length']&&this['_reduceExistingSuggestions'](_0x166e63,_0x22a27a);}['_processAttributeSuggestions'](_0x118852){let _0x411360=!0x1;const _0x32c500=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4dae07=>_0x4dae07['data']['newRange']&&_0x4dae07['name']['startsWith']('suggestion:attribute:'));for(const _0x529841 of _0x32c500){const {subType:_0x5ec76c,id:_0x47dab2}=this['_splitMarkerName'](_0x529841['name']),_0x18b510=_0x5ec76c['split']('|')[0x0];for(const _0x407649 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x407649['id']!=_0x47dab2&&'attribute'==_0x407649['type']&&_0x407649['data']&&_0x407649['data']['key']==_0x18b510&&_0x407649['getFirstRange']()['isIntersecting'](_0x529841['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x407649,_0x529841['data']['newRange'],_0x118852),_0x411360=!0x0);}return _0x411360;}['recordAttributeChanges'](_0x5aea9f){this['_recordAttributeSuggestions']=!0x0,_0x5aea9f();}['_isRegisteredAttribute'](_0x5a8062){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x5a8062);}['_reduceExistingSuggestions'](_0x5e2726,_0x56e891){if(0x0==_0x56e891['length'])return!0x1;let _0xfbae0d=!0x1;for(const _0x2a668f of _0x56e891){const _0x411552=this['_findSuggestions'](_0x2a668f['range'],'attribute')['filter'](_0x2802af=>!_0x2802af['meta']['isNextTo'])['map'](_0x50ca6b=>_0x50ca6b['suggestion']),_0x450712=_0x12c857({'newValue':_0x2a668f['newValue']});_0x411552['filter'](_0x3b8649=>{const [_0x221269,_0x569531]=_0x3b8649['subType']['split']('|');return _0x221269==_0x2a668f['key']&&_0x569531!=_0x450712;})['forEach'](_0xe2b6ff=>{this['_reduceSuggestionAttributeRange'](_0xe2b6ff,_0x2a668f['range'],_0x5e2726),_0xfbae0d=!0x0;});}return _0xfbae0d;}['_reduceSuggestionAttributeRange'](_0x57aa65,_0x5f2f10,_0x3ec4a4){const _0x25e762=_0x57aa65['getFirstRange']()['getDifference'](_0x5f2f10);0x0!==_0x25e762['length']?0x1!==_0x25e762['length']?this['_breakSuggestionMarker'](_0x57aa65,_0x5f2f10['start'],_0x5f2f10['end']):this['_setSuggestionRange'](_0x57aa65,_0x25e762[0x0]):_0x3ec4a4['removeMarker'](_0x57aa65['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1c6d66){this['_editor']=_0x1c6d66,this['_model']=_0x1c6d66['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x54fc8a,_0x3bc5cf,_0x5b14bc,_0x3b0a94,_0x73b849,_0x2032c0,_0xa7e08){return new x(this['_model'],{'type':_0x54fc8a,'subType':_0x3bc5cf,'id':_0x5b14bc,'originalSuggestionId':_0xa7e08,'author':_0x3b0a94,'creator':_0x3b0a94,'attributes':_0x73b849,'onAttributesChange':_0x2032c0,'onAccept':(..._0x4c2a9a)=>this['getSuggestionCallback'](_0x54fc8a,_0x3bc5cf,'accept')(..._0x4c2a9a),'onDiscard':(..._0x45f1e5)=>this['getSuggestionCallback'](_0x54fc8a,_0x3bc5cf,'discard')(..._0x45f1e5)});}['registerCustomCallback'](_0x4f58f1,_0xab5984,_0x2ca063,_0x280c99){const _0x54126e=_0x4f58f1+':'+_0xab5984+':'+_0x2ca063;this['_customCallbacks']['set'](_0x54126e,_0x280c99);}['getSuggestionCallback'](_0x566b42,_0x4fbb2b,_0x36f635){const _0x2c7a82=_0x566b42+':'+_0x4fbb2b+':'+_0x36f635;return this['_customCallbacks']['get'](_0x2c7a82)||this['_defaultCallbacks']['get'](_0x566b42+':'+_0x36f635);}['_registerDefaultCallbacks'](){const _0x4ded98=()=>!0x1,_0x5c83fd=_0x59f6f7=>{_0x59f6f7['sort']((_0x521aa4,_0xfff81f)=>_0x521aa4['start']['isBefore'](_0xfff81f['start'])?0x1:-0x1),this['_model']['change'](_0x1d460f=>{for(const _0x21081b of _0x59f6f7){let _0x3e9c9e;_0x3e9c9e=_0x21081b['end']['isAtEnd']&&_0x21081b['end']['parent']==_0x21081b['start']['nodeAfter']?_0x1d460f['createSelection'](_0x21081b['start']['nodeAfter'],'on'):_0x1d460f['createSelection'](_0x21081b),this['_model']['deleteContent'](_0x3e9c9e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x35d492=(_0x556197,_0x5cd237)=>{_0x5cd237&&this['_model']['change'](_0x5b33a9=>{const {commandName:_0x2389b9,commandParams:_0x283ff2=[]}=_0x5cd237,_0x4d08ee=_0x556197['map'](_0x4f70b9=>(Kt(_0x4f70b9)&&(_0x4f70b9=this['_model']['createRange'](_0x4f70b9['end'])),_0x4f70b9))['filter'](_0x12b512=>'$graveyard'!==_0x12b512['root']['rootName']);if(_0x4d08ee['length']<0x1)return;const _0x1cf9c8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x17605f=>_0x393f46['fromRange'](_0x17605f));_0x5b33a9['setSelection'](_0x4d08ee);for(const _0x131379 of this['_editor']['commands']['commands']())_0x131379['refresh']();_0x283ff2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2389b9,..._0x283ff2);const _0x51b3f1=_0x1cf9c8['filter'](_0x23bf09=>'$graveyard'!=_0x23bf09['root']['rootName']);_0x51b3f1['length']>0x0&&_0x5b33a9['setSelection'](_0x51b3f1);for(const _0x4a76ae of _0x1cf9c8)_0x4a76ae['detach']();});},_0x1f03a9=(_0x10f1a5,_0x2b9360)=>0x1==_0x10f1a5['length']&&0x1==_0x2b9360['length']&&_0x10f1a5[0x0]['end']['isEqual'](_0x2b9360[0x0]['start']),_0x5c1844=(_0x7a545a,_0x357bd1,_0x90e1bc,_0x4ef52d)=>nn(_0x7a545a,_0x357bd1,_0x90e1bc,_0x4ef52d)?[_0x7a545a,_0x357bd1]:nn(_0x357bd1,_0x7a545a,_0x4ef52d,_0x90e1bc)?[_0x357bd1,_0x7a545a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4ded98),this['_defaultCallbacks']['set']('insertion:discard',_0x5c83fd),this['_defaultCallbacks']['set']('insertion:join',_0x1f03a9),this['_defaultCallbacks']['set']('insertion:chain',_0x5c1844),this['_defaultCallbacks']['set']('deletion:accept',_0x5c83fd),this['_defaultCallbacks']['set']('deletion:discard',_0x4ded98),this['_defaultCallbacks']['set']('deletion:join',_0x1f03a9),this['_defaultCallbacks']['set']('deletion:chain',_0x5c1844),this['_defaultCallbacks']['set']('formatInline:accept',_0x35d492),this['_defaultCallbacks']['set']('formatInline:discard',_0x4ded98),this['_defaultCallbacks']['set']('formatInline:join',_0x1f03a9),this['_defaultCallbacks']['set']('formatInline:chain',_0x4ded98),this['_defaultCallbacks']['set']('formatBlock:accept',_0x35d492),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4ded98),this['_defaultCallbacks']['set']('formatBlock:join',_0x1f03a9),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4ded98),this['_defaultCallbacks']['set']('attribute:accept',_0x4ded98),this['_defaultCallbacks']['set']('attribute:discard',(_0x39bb04,_0x4021ae)=>{if(!_0x4021ae)return;const _0x399597=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x153dab=>{if(_0x4021ae['key']==m)for(const _0x140642 of _0x39bb04){const _0x1d2d42=_0x140642['start']['nodeAfter'],_0x5f425b=_0x4021ae['oldValue'];_0x153dab['rename'](_0x1d2d42,_0x5f425b);}else{if(_0x399597['_isBlockAttribute'](_0x4021ae['key'])){for(const _0x4e506b of _0x39bb04)void 0x0!==_0x4021ae['oldValue']?_0x153dab['setAttribute'](_0x4021ae['key'],_0x4021ae['oldValue'],_0x4e506b['start']['nodeAfter']):_0x153dab['removeAttribute'](_0x4021ae['key'],_0x4e506b['start']['nodeAfter']);}else{for(const _0x9cf480 of _0x39bb04)_0x4021ae['oldValue']?_0x153dab['setAttribute'](_0x4021ae['key'],_0x4021ae['oldValue'],_0x9cf480):_0x153dab['removeAttribute'](_0x4021ae['key'],_0x9cf480);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1f03a9);}}function zt(_0x172465,_0x4e0738,_0xbb4bf3){for(const _0x4585ed of _0x4e0738['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4585ed['root']==_0x4585ed)return!0x1;if(!_0xbb4bf3['containsItem'](_0x4585ed))return!0x1;if(_0x172465['isObject'](_0x4585ed)||_0x172465['isLimit'](_0x4585ed))return!0x0;}return!0x1;}function Kt(_0x18f13e){return _0x18f13e['end']['parent']==_0x18f13e['start']['nodeAfter']&&_0x18f13e['end']['isAtStart'];}function Wt(_0x4454b5,_0x18f68d,_0x59790f,_0x52808e){const _0x377ed4=_0x27b8d2=>!_0x27b8d2['item']['is']('$textProxy')&&!_0x52808e['isObject'](_0x27b8d2['item']),_0x39ba3d=_0x4454b5['start']['getLastMatchingPosition'](_0x377ed4),_0x2c8a35=_0x4454b5['end']['getLastMatchingPosition'](_0x377ed4,{'direction':'backward'});return(!_0x4454b5['start']['isEqual'](_0x39ba3d)||!_0x4454b5['end']['isEqual'](_0x2c8a35))&&(_0x39ba3d['isBefore'](_0x2c8a35)?_0x59790f['updateMarker'](_0x18f68d,{'range':_0x59790f['createRange'](_0x39ba3d,_0x2c8a35)}):_0x59790f['removeMarker'](_0x18f68d),!0x0);}function Ht(_0x2d8881){return _0x12c857(_0x2d8881);}function Qt(_0x532c52){const _0x29d3b0=_0x532c52['start']['nodeAfter'];return _0x29d3b0&&_0x29d3b0['is']('element');}function Xt(_0x2a3c03){return Kt(_0x2a3c03)||function(_0xf352fc){return _0xf352fc['start']['parent']==_0xf352fc['end']['nodeBefore']&&_0xf352fc['start']['isAtEnd'];}(_0x2a3c03);}function Yt(_0x43402b,_0x7927cd){try{const _0x28d4e1=_0x43402b['getRange']();for(const _0x52e971 of _0x7927cd)if(_0x43402b!==_0x52e971&&_0x28d4e1&&_0x28d4e1['isIntersecting'](_0x52e971['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x527092,_0x13119d){return null==_0x527092['end']['nodeBefore']&&_0x527092['end']['parent']==_0x527092['start']['nodeAfter']?tn(_0x527092['start']['nodeAfter'],_0x13119d):_0x527092;}function tn(_0x3b8d15,_0x2a9a1e){const _0x468805=_0x2a9a1e['schema']['isObject'](_0x3b8d15)||_0x2a9a1e['schema']['isSelectable'](_0x3b8d15);return _0x2a9a1e['createRange'](_0x2a9a1e['createPositionAt'](_0x3b8d15,'before'),_0x468805?_0x2a9a1e['createPositionAfter'](_0x3b8d15):_0x2a9a1e['createPositionAt'](_0x3b8d15,'end'));}function nn(_0x962f21,_0x3d8593,_0xda38fd,_0x256269){return!!en(_0x962f21,_0x3d8593)&&_0xda38fd['end']['isEqual'](_0x256269['start']);}function en(_0x1bdd08,_0x5b92d7){if(!_0x1bdd08['_isDataLoaded']||!_0x5b92d7['_isDataLoaded'])return!0x1;const _0x5b910b=new Set(Object['keys'](_0x1bdd08['attributes'])),_0x3c26e0=new Set(Object['keys'](_0x5b92d7['attributes']));if(_0x5b910b['delete']('groupId'),_0x3c26e0['delete']('groupId'),0x0==_0x5b910b['size']&&0x0==_0x3c26e0['size'])return!0x0;if(_0x5b910b['size']!=_0x3c26e0['size'])return!0x1;const _0x57b818={..._0x1bdd08['attributes']},_0x4f4f1b={..._0x5b92d7['attributes']};return delete _0x57b818['groupId'],delete _0x4f4f1b['groupId'],JSON['stringify'](_0x57b818)==JSON['stringify'](_0x4f4f1b);}function sn(_0x1678b0,_0x285f93){const _0x5898c4=on(_0x1678b0['attributes']),_0x4dbaaa=on(_0x285f93);if(!_0x1678b0['_isDataLoaded'])return!0x1;for(const _0x41f4f1 of Object['keys'](_0x4dbaaa))if(!_0x4f9f48(_0x5898c4[_0x41f4f1],_0x4dbaaa[_0x41f4f1]))return!0x1;return!0x0;}function on(_0xe46d2a){const _0x5beef3=Object['assign']({},_0xe46d2a);return delete _0x5beef3['skipNestingCheck'],delete _0x5beef3['tablePasteChainId'],_0x5beef3;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x4414c9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xc66b42,_0x755aea,_0x24aa95,_0x473699){super(),this['model']=_0x755aea,this['view']=_0x24aa95,this['commentThreadController']=_0x473699,this['_editor']=_0xc66b42,this['_acceptCommand']=_0xc66b42['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xc66b42['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xd29ac9,_0x2af92a)=>_0xd29ac9||_0x2af92a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x20616c=>_0x20616c&&this['_editor']['model']['canEditAt'](_0x755aea['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x488b1e=>_0x488b1e&&this['_editor']['model']['canEditAt'](_0x755aea['getRanges']())),this['_pendingAction']=null,_0x24aa95['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x24aa95,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x24aa95,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x24aa95,'change:isDirty',()=>{_0x24aa95['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 _0x24c4c5=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x24c4c5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x5e1d9e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x30b5f3,_0x51e8ee,_0x1b0188,_0xd5ed16){super(_0x30b5f3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x387eeb(_0x30b5f3,o(_0x30b5f3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x51e8ee['authoredAt']),this['bind']('authoredAt')['to'](_0x51e8ee),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',_0x51e8ee,'authoredAt',this,'descriptionParts',(_0xfd5d19,_0x493068,_0x2963e3)=>{const _0x116d0e=_0x2963e3['map'](_0x931fed=>ls(_0x931fed['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xfd5d19-0x1,_0x51e8ee['author']['name'],_0x493068?_0xd5ed16['formatDateTime'](_0x493068):'',new DOMParser()['parseFromString'](_0x116d0e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5b34fa(),this['focusTracker']=new _0x4f281b(),this['keystrokes']=new _0xabf8c7(),this['focusCycler']=new _0x4e0adc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x27fdff=>_0x27fdff['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x51e8ee,this['_localUser']=_0x1b0188,this['_config']=_0xd5ed16,_0xd5ed16['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xfb400c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5971d9}=this['_config'];this['commentsListView']=new _0x5971d9(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',_0x13acfc=>_0x13acfc+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1cdf69,_0x35a5d3)=>_0x1cdf69||!!_0x35a5d3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3a79ca}=this['_config'],_0x1b3d08=new _0x3a79ca(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2dfd6e=_0x1b3d08['commentInputView'];return _0x1b3d08['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2dfd6e,'value',(_0x41cbe9,_0x34e998,_0x18d162)=>!!_0x18d162||_0x41cbe9&&!_0x34e998),_0x2dfd6e['on']('submit',(_0x6d3dd8,_0x310d27)=>{this['fire']('addComment',_0x310d27),_0x2dfd6e['editor']['setData']('');}),_0x2dfd6e['on']('cancel',()=>this['focus']()),_0x2dfd6e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1b3d08;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x2c9f10,_0x165464,_0x471783,_0x5f4870){super(_0x2c9f10,_0x165464,_0x471783,_0x5f4870),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2b8f70=>_0x2b8f70&&_0x2b8f70[0x0]?_0x2b8f70[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x760b85,_0x1ff6a3)=>{let _0x23eda1='';for(const _0xd14818 of _0x760b85)_0x23eda1+='<p>'+ls(_0xd14818['content'],_0xd14818['color'])+'</p>';return _0x1ff6a3?_0x23eda1:_0x2db41e(_0x23eda1,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5f4870['SuggestionView'](_0x2c9f10,_0x165464,{'formatDateTime':_0x5f4870['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 _0x1dbc5c=this['bindTemplate'],_0x585d78=[this['suggestionView']];return this['commentsListView']&&_0x585d78['push'](this['commentsListView']),this['commentThreadInputView']&&_0x585d78['push'](this['commentThreadInputView']),_0x585d78['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1dbc5c['if']('isActive','ck-suggestion-wrapper--active'),_0x1dbc5c['to']('type',_0x396a28=>'ck-suggestion-'+_0x396a28),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':_0x1dbc5c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x585d78};}['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 _0x5e1d9e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4774ea,_0x3b30e5,_0x358143){super(_0x4774ea),this['_model']=_0x3b30e5,this['_config']=_0x358143,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3b30e5),this['acceptButton']=this['_createButton'](o(_0x4774ea,'Accept\x20suggestion'),_0xd5318d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4774ea,'Discard\x20suggestion'),_0x92cecc,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3b2f56(_0x4774ea,_0x3b30e5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5b34fa([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4f281b(),this['keystrokes']=new _0xabf8c7(),this['focusCycler']=new _0x4e0adc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4561ea=>_0x4561ea['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x385369=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x385369['innerHTML']=this['description'],this['on']('change:description',(_0x2fc742,_0x1dd840,_0x54bcb7)=>{_0x385369['innerHTML']=_0x54bcb7;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x233228=this['bindTemplate'],_0x4ee7a1=[{'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':_0x233228['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x233228['to']('authoredAt',_0x2462cf=>this['_config']['formatDateTime'](_0x2462cf))}]}]},{'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']&&_0x4ee7a1['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':_0x4ee7a1}]};}['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'](_0x33ebc9,_0x29d9e7,_0x2ff855,_0x3bb669,_0x216b66){const _0x19616c=new _0x53f018(this['locale']);return _0x19616c['set']({'label':_0x33ebc9,'icon':_0x29d9e7,'tooltip':!0x0,'tooltipPosition':_0x216b66}),_0x19616c['extendTemplate']({'attributes':{'class':_0x2ff855}}),_0x19616c['on']('execute',()=>{this['fire'](_0x3bb669,this['_model']['id']);}),_0x19616c;}['_setupKeyboardNavigation'](){const _0x236d33=this['element'];this['keystrokes']['listenTo'](_0x236d33);for(const _0x58eed2 of this['focusables'])this['focusTracker']['add'](_0x58eed2['element']),this['keystrokes']['listenTo'](_0x58eed2['element']);this['keystrokes']['set']('enter',(_0x506216,_0xe3e347)=>{_0x236d33===_0x506216['target']&&(this['focusCycler']['focusFirst'](),_0xe3e347());}),this['keystrokes']['set']('esc',(_0x524000,_0x18b341)=>{_0x236d33!==_0x524000['target']&&(this['focus'](),_0x18b341());});}}class u extends _0x3274cb{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x1567bc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52d2c0){super(_0x52d2c0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1f433a=this['editor']['config'];_0x1f433a['define']('trackChanges.SuggestionThreadView',fe),_0x1f433a['define']('trackChanges.SuggestionView',we),_0x1f433a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1f433a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x362eb9,_0x1b6b02){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xcfef01,_0x28a8a4]of this['_handleControllerBuffer']){const _0x99d775=this['_suggestionToController']['has'](_0xcfef01);_0x99d775||_0x28a8a4?_0x99d775&&_0x28a8a4&&this['_destroyController'](_0xcfef01):this['_initializeController'](_0xcfef01);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x362eb9,_0x1b6b02);}['init'](){const _0x44a978=this['editor'],_0x4e5047=_0x44a978['plugins']['get']('TrackChangesEditing'),_0x5f245a=_0x44a978['plugins']['get']('Annotations'),_0x6c039f=_0x44a978['plugins']['get']('EditorAnnotations'),_0x2569ec=_0x44a978['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x6c039f['addSourceCollector'](()=>{const _0x4a7d82=[];for(const [_0x5c8107,_0x5d3b4a]of Array['from'](this['_suggestionToController'])){const _0x110431=_0x5c8107['getAllAdjacentSuggestions'](),_0x4221ea=[];for(const _0x234196 of _0x110431){if(!_0x234196['isInContent'])continue;if(_0x234196['isMultiRange']){_0x4221ea['push'](..._0x234196['getRanges']());continue;}const _0xd5360b=_0x234196['getFirstRange']();if(_0x4221ea['length']>0x0){const _0x2d55a7=_0x4221ea[0x0]['getJoined'](_0xd5360b);if(_0x2d55a7){_0x4221ea[0x0]=_0x2d55a7;continue;}}_0x4221ea['push'](_0xd5360b);}_0x4a7d82['push']([_0x5d3b4a['view'],_0x4221ea]);}return _0x4a7d82;}),this['listenTo'](_0x4e5047,'suggestionLoaded',(_0x4c075a,_0x20223b)=>{this['listenTo'](_0x20223b,'change:previous',(_0x4e6c26,_0x25efea,_0x45a2c4,_0x510fe5)=>{_0x20223b['isInContent']&&(null==_0x45a2c4?(this['_updateController'](_0x510fe5['head']),this['_handleSuggestionControllerDelayed'](_0x20223b,!0x1)):(this['_updateController'](_0x45a2c4['head']),null==_0x510fe5&&this['_handleSuggestionControllerDelayed'](_0x20223b,!0x0)));}),null!==_0x20223b['previous']?this['_updateController'](_0x20223b['head']):this['_handleSuggestionControllerDelayed'](_0x20223b,!0x1);}),this['listenTo'](_0x4e5047,'suggestionUnloaded',(_0x3122af,_0x4f8789,_0x10bd1f)=>{this['stopListening'](_0x4f8789,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4f8789),this['_suggestionToController']['has'](_0x4f8789)&&this['_destroyController'](_0x4f8789),_0x10bd1f&&this['_updateController'](_0x10bd1f['head']);}),this['listenTo'](_0x4e5047,'suggestionChanged',(_0x36eb93,_0x4b50b0)=>{this['_updateController'](_0x4b50b0);}),this['listenTo'](_0x5f245a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2569ec,'addComment',(_0x4cae29,{threadId:_0x2814e0,isFromAdapter:_0x5df72b})=>{if(_0x5df72b||!_0x4e5047['hasSuggestion'](_0x2814e0))return;const _0x3bc9b3=_0x4e5047['getSuggestion'](_0x2814e0);this['_suggestionToController']['get'](_0x3bc9b3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a822c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5ed2ff;for(const _0x108343 in _0x4a822c){const _0x2fa2ae=_0x108343,_0x5d3ae5=_0x4a822c[_0x2fa2ae];if('trackChangesLicenseKeyValid'==_0x5d3ae5||'trackChangesLicenseKeyInvalid'==_0x5d3ae5||'trackChangesLicenseKeyExpired'==_0x5d3ae5||'trackChangesLicenseKeyDomainLimit'==_0x5d3ae5||'trackChangesLicenseKeyNotAllowed'==_0x5d3ae5||'trackChangesLicenseKeyEvaluationLimit'==_0x5d3ae5||'trackChangesLicenseKeyUsageLimit'==_0x5d3ae5){delete _0x4a822c[_0x2fa2ae],_0x5ed2ff=_0x5d3ae5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5ed2ff&&_0x4a822c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5ed2ff&&_0x4a822c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5ed2ff&&_0x4a822c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5ed2ff&&_0x4a822c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5ed2ff&&_0x4a822c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5ed2ff&&_0x4a822c['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2de643){const _0x3a2077=this['_suggestionToController']['get'](_0x2de643);if(!_0x3a2077)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3a2077['view'])||null;}['getSuggestionForAnnotation'](_0x205ca2){const _0x3fee27=this['_viewToController']['get'](_0x205ca2['innerView']);return _0x3fee27?_0x3fee27['model']:null;}['_refreshActiveMarkers'](){const _0x512844=this['editor']['plugins']['get']('Annotations'),_0x1b9a0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x534734=Array['from'](_0x512844['activeAnnotations'],_0x2856f9=>_0x2856f9['innerView'])['filter'](_0x98da7d=>this['_viewToController']['has'](_0x98da7d)),_0x2eaa44=[];for(const _0x235942 of _0x534734){const _0x277662=this['_viewToController']['get'](_0x235942)['model']['getAllAdjacentSuggestions']();_0x2eaa44['push'](..._0x277662['reduce']((_0x21ec67,_0xd2ace5)=>[..._0x21ec67,..._0xd2ace5['getMarkerNames']()],[]));}_0x1b9a0b['activeMarkers']=_0x2eaa44;}['_addUIComponentsToFactory'](){const _0x219190=this['editor'],_0x1474cb=_0x219190['locale'],_0x2126a8=o(_0x1474cb,'Track\x20changes'),_0x295ad5=new _0x129ca7([{'type':'switchbutton','model':new _0x39b47f({'withText':!0x0,'isToggleable':!0x0,'label':_0x2126a8,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x39b47f({'withText':!0x0,'label':o(_0x1474cb,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x39b47f({'withText':!0x0,'label':o(_0x1474cb,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x39b47f({'withText':!0x0,'label':o(_0x1474cb,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x39b47f({'withText':!0x0,'label':o(_0x1474cb,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x219190['plugins']['has']('TrackChangesPreview')&&_0x295ad5['addMany']([{'type':'separator'},{'type':'button','model':new _0x39b47f({'withText':!0x0,'label':o(_0x1474cb,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1ddd33 of _0x295ad5)if(ke(_0x1ddd33)){const _0x11eea2=_0x219190['commands']['get'](_0x1ddd33['model']['commandName']);_0x1ddd33['model']['bind']('isOn','isEnabled')['to'](_0x11eea2,'value','isEnabled');}_0x219190['ui']['componentFactory']['add']('trackChanges',_0x3a96f7=>this['_createToolbarButton'](_0x3a96f7,_0x295ad5,_0x2126a8)),_0x219190['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4ae85e=>this['_createMenuBarMenu'](_0x4ae85e,_0x295ad5,_0x2126a8));}['_createToolbarButton'](_0x1ce676,_0xa60a74,_0x1153f1){const _0x522314=_0x389741(_0x1ce676,_0x26c15b),_0x36be22=this['editor']['commands']['get']('trackChanges');_0x522314['buttonView']['set']({'tooltip':_0x1153f1,'label':_0x1153f1,'icon':_0x3b1e66}),_0x522314['buttonView']['bind']('isOn')['to'](_0x36be22,'value'),_0x522314['buttonView']['on']('execute',()=>{_0x36be22['execute'](),this['editor']['editing']['view']['focus']();}),_0x371943(_0x522314,_0xa60a74,{'role':'menu'});const _0x5c0517=[];for(const _0x4cdd84 of _0xa60a74)ke(_0x4cdd84)&&_0x5c0517['push'](this['editor']['commands']['get'](_0x4cdd84['model']['commandName']));const _0x42aac1=_0x522314['buttonView'];return _0x42aac1['actionView']['unbind']('isEnabled'),_0x42aac1['arrowView']['unbind']('isEnabled'),_0x42aac1['actionView']['bind']('isEnabled')['to'](_0x36be22,'isEnabled'),_0x42aac1['arrowView']['bind']('isEnabled')['toMany'](_0x5c0517,'isEnabled',(..._0x20f1db)=>_0x20f1db['some'](_0x1e1594=>_0x1e1594)),_0x522314['on']('execute',_0x5d9583=>{this['editor']['execute'](_0x5d9583['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x522314;}['_createMenuBarMenu'](_0x431f0c,_0x34a786,_0x2bb03e){const _0x57f4a5=new _0xbe2358(_0x431f0c),_0x3ad6d0=this['editor']['commands']['get']('trackChanges');_0x57f4a5['buttonView']['set']({'label':_0x2bb03e,'icon':_0x3b1e66});const _0xfab4e3=new _0x4bb86(_0x431f0c);for(const _0x3b1707 of _0x34a786){if('separator'==_0x3b1707['type']){_0xfab4e3['items']['add'](new _0x1aee94(_0x431f0c));continue;}const _0x3b412a=new _0x21ec28(_0x431f0c,_0x57f4a5),_0x260547=new _0x2463a3(_0x431f0c),_0x22fec5=_0x3b1707['model'];_0x260547['bind'](...Object['keys'](_0x22fec5))['to'](_0x22fec5),_0x260547['delegate']('execute')['to'](_0x57f4a5),_0x260547['on']('execute',()=>{this['editor']['execute'](_0x22fec5['commandName']),this['editor']['editing']['view']['focus']();}),_0x3b412a['children']['add'](_0x260547),_0xfab4e3['items']['add'](_0x3b412a);}return _0x57f4a5['bind']('isEnabled')['to'](_0x3ad6d0,'isEnabled'),_0x57f4a5['panelView']['children']['add'](_0xfab4e3),_0x57f4a5;}['_initializeController'](_0x4d9450){const _0x331ef9=this['editor'],_0x56c567=_0x331ef9['config'],_0x2672b4=_0x331ef9['plugins']['get']('Annotations'),_0x17e520=_0x331ef9['plugins']['get']('CommentsRepository'),_0x4357af=_0x331ef9['plugins']['get']('EditorAnnotations'),_0x4a2f3a=_0x331ef9['plugins']['get'](_0x1567bc)['me'],_0x503c53=_0x56c567['get']('trackChanges')['SuggestionThreadView'],_0x405e7e=_0x56c567['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2fcd43,CommentThreadInputView:_0x1db89a}=_0x331ef9['plugins']['get']('CommentsUI');let _0x3a994b,_0x9f9f18,_0x10cea8;this['_annotationViews']['has'](_0x4d9450['id'])?(_0x9f9f18=this['_annotationViews']['get'](_0x4d9450['id']),_0x3a994b=_0x9f9f18['mainView']):(_0x3a994b=new _0x503c53(_0x331ef9['locale'],_0x4d9450,_0x4a2f3a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x56c567['get']('comments.editorConfig'),'licenseKey':_0x56c567['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x56c567['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x56c567['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x56c567['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x36fc7b(_0x56c567['get']('locale'),_0x331ef9['locale']),'CommentView':_0x56c567['get']('comments')['CommentView'],'CommentsListView':_0x2fcd43,'CommentThreadInputView':_0x1db89a,'SuggestionView':_0x405e7e}),_0x3a994b['suggestionView']['acceptButton']['on']('execute',()=>{_0x331ef9['editing']['view']['focus']();}),_0x3a994b['suggestionView']['discardButton']['on']('execute',()=>{_0x331ef9['editing']['view']['focus']();}),_0x9f9f18=_0x2672b4['createAnnotationView'](this['editor']['locale'],_0x3a994b),_0x9f9f18['bind']('isDirty')['to'](_0x3a994b,'isDirty'),_0x9f9f18['bind']('length')['to'](_0x3a994b),_0x9f9f18['bind']('type')['to'](_0x3a994b,'type',_0x4e339a=>'suggestion-'+_0x4e339a),_0x3a994b['on']('escape',()=>{_0x10cea8['fire']('escape');}),this['_annotationViews']['set'](_0x4d9450['id'],_0x9f9f18));const _0x4c2931=_0x17e520['createCommentThreadController'](_0x4d9450['commentThread'],_0x3a994b),_0x3bbc15=new pe(_0x331ef9,_0x4d9450,_0x3a994b,_0x4c2931),_0x5ed118=_0x4d9450['getAllAdjacentSuggestions']()['filter'](_0x5455fc=>_0x5455fc['isInContent']);_0x3a994b['descriptionParts']=_0x331ef9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5ed118),this['_suggestionToController']['set'](_0x4d9450,_0x3bbc15),this['_viewToController']['set'](_0x3a994b,_0x3bbc15);const _0x4f6f90=()=>{const _0x38b01d=[],_0x4460c9=_0x4d9450['getAllAdjacentSuggestions']()['filter'](_0x2a0239=>_0x2a0239['isInContent']);for(const _0x3edf89 of _0x4460c9)_0x38b01d['push'](..._0x3edf89['getMarkers']());return _0x1487c6(_0x331ef9['editing'],_0x38b01d);};_0x10cea8=_0x2672b4['createAnnotation']({'view':_0x9f9f18,'target':_0x4f6f90,'type':()=>'suggestion-'+_0x3bbc15['view']['type'],'isVisible':!!_0x4f6f90()}),_0x17e520['_bindAnnotationToEditors'](_0x3a994b,_0x10cea8),_0x2672b4['add'](_0x10cea8),_0x4357af['registerAnnotation'](_0x10cea8);}['_destroyController'](_0x5c681a){const _0x43651a=this['editor']['plugins']['get']('CommentsRepository'),_0x219584=this['editor']['plugins']['get']('Annotations'),_0x5b896c=this['_suggestionToController']['get'](_0x5c681a),_0x4de169=_0x5b896c['view'],_0x16894b=_0x219584['getByInnerView'](_0x4de169);_0x43651a['_unbindEditors'](_0x4de169),_0x16894b&&_0x219584['remove'](_0x16894b),this['_suggestionToController']['delete'](_0x5c681a),this['_viewToController']['delete'](_0x4de169),_0x5b896c['destroy']();}['_updateController'](_0x377903){if(!_0x377903['isInContent']||!this['_suggestionToController']['has'](_0x377903))return;const _0x2a125d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48146f=this['_suggestionToController']['get'](_0x377903),_0xe6f688=_0x377903['getAllAdjacentSuggestions']();_0x48146f['view']['descriptionParts']=_0x2a125d['descriptionFactory']['getDescriptions'](_0xe6f688);}['destroy'](){for(const _0x59ca3d of this['_suggestionToController']['keys']())this['_destroyController'](_0x59ca3d);for(const _0x2c8997 of this['_annotationViews']['values']())_0x2c8997['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xf7b714){return'model'in _0xf7b714;}class Ne extends _0x3274cb{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x7eb508){this['editor']['plugins']['get'](d)['adapter']=_0x7eb508;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0xa66961){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0xa66961);}['getSuggestions']({skipNotAttached:_0x5752b1=!0x1,toJSON:_0x59ff4f=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5752b1,'toJSON':_0x59ff4f});}['getSuggestion'](_0x3b6cd1){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x3b6cd1);}}const p=['Pagination'];class re extends _0x3274cb{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2eae54=this['editor'];if(_0x2eae54['config']['define']('trackChangesData.editorCreator',_0x560736=>{const _0xb14334=_0x2eae54['model']['document']['getRootNames']()['reduce']((_0x3b7b50,_0x23a65f)=>(_0x3b7b50[_0x23a65f]='',_0x3b7b50),{});return _0x2eae54['constructor']['create'](_0xb14334,_0x560736);}),'function'!=typeof _0x2eae54['config']['get']('trackChangesData')['editorCreator'])throw new _0x2557e8('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5b22da){return P(this['editor'],!0x0,_0x5b22da);}['getDataWithDiscardedSuggestions'](_0x16c375){return P(this['editor'],!0x1,_0x16c375);}}class Fe extends _0x3274cb{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x444338){function _0x5dc3a9(_0x2f5c54){return _0x2f5c54['map'](_0x3c034e=>String['fromCharCode'](_0x3c034e))['join']('');}super(_0x444338),this['result']='end',_0x444338[_0x5dc3a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5dc3a9([0x76,0x69,0x65,0x77])][_0x5dc3a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5dc3a9([0x61,0x75,0x74,0x6f]),_0x444338[_0x5dc3a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5dc3a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5dc3a9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5dc3a9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5dc3a9([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 De(_0x4c0b5f){return void 0x0!==_0x4c0b5f['getRootsAttributes'];}async function P(_0x40ff16,_0x127efb,_0x39b9a3){const _0x5546d2=_0x2b1901(_0x40ff16,p);_0x5546d2['plugins']['push'](d,Fe),_0x5546d2['rootsAttributes']=De(_0x40ff16)?_0x40ff16['getRootsAttributes']():void 0x0;const _0x21c032=document['createDocumentFragment'](),_0x5b0374=_0x40ff16['config']['get']('trackChangesData')['editorCreator'],_0x519c00=await _0x5b0374(_0x5546d2,()=>function(_0x12e5b8){const _0x803b56=document['createElement']('div');return _0x12e5b8['appendChild'](_0x803b56),_0x803b56;}(_0x21c032));!function(_0x58a529,_0x2145ae){const _0x1783fa=_0x58a529['model']['document']['getRootNames']()['reduce']((_0x2326d4,_0x5595d3)=>(_0x2326d4[_0x5595d3]=_0x58a529['data']['get']({'rootName':_0x5595d3}),_0x2326d4),{}),_0x297bdb=_0x58a529['plugins']['get']('Users')['users']['map'](_0x54f4c6=>({'id':_0x54f4c6['id'],'name':_0x54f4c6['name']})),_0x4c8387=_0x58a529['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xbe5679=_0x58a529['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x11f138=_0x2145ae['plugins']['get']('Users'),_0x54b166=_0x2145ae['plugins']['get']('TrackChangesEditing'),_0x501268=_0x2145ae['plugins']['get']('CommentsRepository');for(const _0x180997 of _0x501268['getCommentThreads']())_0x180997['remove']();for(const _0x11fb18 of _0x297bdb)_0x11f138['getUser'](_0x11fb18['id'])||_0x11f138['addUser'](_0x11fb18);_0x11f138['me']||_0x11f138['useAnonymousUser']();for(const _0x409c48 of _0xbe5679)_0x501268['addCommentThread'](_0x409c48);for(const _0x6012ca of _0x4c8387)_0x54b166['addSuggestionData'](_0x6012ca);_0x2145ae['data']['set'](_0x1783fa);}(_0x40ff16,_0x519c00),_0x519c00['execute'](_0x127efb?'acceptAllSuggestions':'discardAllSuggestions');const _0x59d2c3=De(_0x519c00)?_0x519c00['getFullData'](_0x39b9a3):_0x519c00['data']['get'](_0x39b9a3);return await _0x519c00['destroy'](),_0x59d2c3;}class Me extends _0x5e1d9e{['options'];constructor(_0x3050eb,_0x29d84b){super(_0x3050eb),this['options']=_0x29d84b,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'](_0x3de5d2,_0x28bfab){if(!this['element'])return;const _0x29cd29=[];for(const [_0x3feda0,_0x324969]of _0x3de5d2){const _0x22aa21=document['createElement']('div');_0x22aa21['setAttribute']('data-ck-root-name',_0x3feda0),_0x22aa21['className']=_0x324969['classes']+'\x20ck-track-changes-preview__root-container',_0x22aa21['innerHTML']=_0x324969['content'],_0x29cd29['push'](_0x22aa21);}_0x28bfab(this['element'],_0x29cd29),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3a7f40{constructor(_0x4cd783){super(_0x4cd783),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xd6cb3b=this['editor'],_0x2985b1=_0xd6cb3b['locale'],_0x196d39=_0xd6cb3b['plugins']['get']('Dialog');let _0x40cccf;const _0x3e32a7=function(_0x3644e7){const _0x576ed={};if('editables'in _0x3644e7['ui']['view']){for(const [_0x1faab4,_0x290a67]of Object['entries'](_0x3644e7['ui']['view']['editables']))_0x576ed[_0x1faab4]=_0x290a67['element'];}else _0x576ed[_0x3644e7['model']['document']['getRootNames']()[0x0]]=_0x3644e7['ui']['view']['editable']['element'];return _0x576ed;}(_0xd6cb3b),_0x49d780=function(_0x29ba1f){let _0xea19d=0x0;for(const _0x1a6a41 of Object['values'](_0x29ba1f))_0xea19d=Math['max'](_0xea19d,_0x1a6a41['getBoundingClientRect']()['width']);let _0x960097=0x0;for(const _0x223082 of Object['values'](_0x29ba1f))_0x960097+=_0x223082['getBoundingClientRect']()['height'];const _0x31f534=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3623ee=Math['min'](_0x960097,_0x31f534);return{'width':_0xea19d,'height':_0x3623ee};}(_0x3e32a7);_0x196d39['show']({'id':'finalContentPreview','title':o(_0x2985b1,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2985b1,{'dialogRects':_0x49d780}),'onHide':()=>{_0x40cccf['detachFromDom']();},'onShow':()=>{_0xd6cb3b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3f7ba3=>{const _0xa46bfa=this['_standarizeRootsData'](_0x3f7ba3,_0xd6cb3b,_0x3e32a7);_0x196d39['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xa46bfa,_0xd6cb3b['config']['get']('trackChanges.preview.renderFunction'));}),_0x40cccf=new _0x436014(_0x2985b1,[_0x196d39['view']]),_0x40cccf['attachToDom'](),_0x40cccf['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xd6cb3b['once']('destroy',()=>{_0x40cccf['detachFromDom']();});const _0x646f1c=_0x196d39['view']['headerView']['class'];_0x196d39['view']['headerView']['class']=_0x646f1c?_0x646f1c+'\x20ck-reset_all':'ck-reset_all',_0x196d39['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x196d39['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1f15bb=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1a1e91=_0x1f15bb['previewMode'],_0x6067a1={};if('$labels'===_0x1a1e91){for(const _0x1d4727 of _0x1f15bb['getMergeFieldsIds']())_0x6067a1[_0x1d4727]=_0x1f15bb['getLabel'](_0x1d4727)||_0x1d4727;}else{const _0x5514c2='$defaultValues'===_0x1a1e91?_0x1f15bb['getDefaultValues']():_0x1f15bb['getDataSetValues'](_0x1a1e91,!0x0);for(const _0x5451da of Object['entries'](_0x5514c2)){const [_0x40fa49,_0x3c25f5]=_0x5451da;_0x6067a1[_0x40fa49]=null!==_0x3c25f5?_0x3c25f5:_0x1f15bb['getLabel'](_0x40fa49)||_0x40fa49;}}return{'mergeFieldsData':_0x6067a1};}['_standarizeRootsData'](_0x31bd6b,_0x5ef34a,_0x51b185){let _0x59ede2;if('string'==typeof _0x31bd6b){const _0x40954d=_0x5ef34a['model']['document']['getRootNames']()[0x0];_0x59ede2={[_0x40954d]:_0x31bd6b};}else _0x59ede2=_0x31bd6b;const _0x5d9829=this['_fixMediaEmbeds'](_0x59ede2,_0x5ef34a),_0x5c278a=function(_0xa7833c,_0x5f4e38){for(const [_0x26826e,_0xbda5d1]of _0xa7833c)_0xbda5d1['classes']=_0x5f4e38[_0x26826e]['classList']['value']['replace']('ck-focused','');return _0xa7833c;}(this['_sortRoots'](_0x5ef34a)['reduce']((_0x49e1d3,_0x444e6f)=>(_0x49e1d3['push']([_0x444e6f,{'content':_0x5d9829[_0x444e6f],'classes':''}]),_0x49e1d3),[]),_0x51b185);return _0x5c278a;}['_fixMediaEmbeds'](_0xfe9bf1,_0xca37c0){if(!_0xca37c0['plugins']['has']('MediaEmbedEditing'))return _0xfe9bf1;const _0x2e529d=_0xca37c0['plugins']['get']('MediaEmbedEditing');for(const [_0x255a33,_0x1ef3bd]of Object['entries'](_0xfe9bf1)){const _0x1baa0a=document['createElement']('div');_0x1baa0a['innerHTML']=_0x1ef3bd,(_0x1baa0a['querySelectorAll']('figure.media')['forEach'](_0x29a12c=>{const _0x97fca2=_0x29a12c['querySelector']('oembed');if(_0x97fca2){const _0x41b368=_0x97fca2['getAttribute']('url');if(_0x41b368){const _0x2e1605=_0x2e529d['registry']['getMediaViewElement'](new _0x83e009(_0xca37c0['editing']['view']['document']),_0x41b368,{'elementName':'','renderForEditingView':!0x0}),_0x1fea50=document['createElement']('div');_0x1fea50['classList']['add']('ck-media__wrapper'),_0x2e1605['render'](_0x1fea50,_0xca37c0['editing']['view']['domConverter']),_0x97fca2['replaceWith'](_0x1fea50);}}}),_0xfe9bf1[_0x255a33]=_0x1baa0a['innerHTML']);}return _0xfe9bf1;}['_sortRoots'](_0x25fbd3){if(!function(_0x19b9ad){return void 0x0!==_0x19b9ad['getRootsAttributes'];}(_0x25fbd3))return _0x25fbd3['model']['document']['getRootNames']();const _0x539ae8=[],_0x4dc1c4=new Map();for(const _0x212c1c of _0x25fbd3['model']['document']['getRootNames']()){const _0x4f2f12=_0x25fbd3['editing']['view']['getDomRoot'](_0x212c1c)['getClientRects']()['item'](0x0);_0x539ae8['push'](_0x212c1c),_0x4dc1c4['set'](_0x212c1c,_0x4f2f12);}return _0x539ae8['sort']((_0x25abb5,_0x52c8cf)=>{const _0x5a07a1=_0x4dc1c4['get'](_0x25abb5),_0x2f38ba=_0x4dc1c4['get'](_0x52c8cf);return _0x5a07a1['y']-_0x2f38ba['y']||_0x5a07a1['x']-_0x2f38ba['x'];}),_0x539ae8;}}class Ue extends _0x3274cb{static get['requires'](){return[re,_0x48ca18];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4660ad){super(_0x4660ad),_0x4660ad['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4660ad['config']['define']('trackChanges.preview.renderFunction',(_0x302878,_0x6f30a1)=>{for(const _0x3f80f5 of _0x6f30a1)_0x302878['appendChild'](_0x3f80f5);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};