@ckeditor/ckeditor5-track-changes 45.2.1-alpha.8 → 45.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/link.js +1 -1
  185. package/src/integrations/list.js +1 -1
  186. package/src/integrations/listproperties.js +1 -1
  187. package/src/integrations/mediaembed.js +1 -1
  188. package/src/integrations/mention.js +1 -1
  189. package/src/integrations/mergefields.js +1 -1
  190. package/src/integrations/multilevellist.js +1 -1
  191. package/src/integrations/pagebreak.js +1 -1
  192. package/src/integrations/paragraph.js +1 -1
  193. package/src/integrations/removeformat.js +1 -1
  194. package/src/integrations/replacesourcecommand.js +1 -1
  195. package/src/integrations/restrictededitingmode.js +1 -1
  196. package/src/integrations/shiftentercommand.js +1 -1
  197. package/src/integrations/standardeditingmode.js +1 -1
  198. package/src/integrations/style.js +1 -1
  199. package/src/integrations/table.js +1 -1
  200. package/src/integrations/tablecaption.js +1 -1
  201. package/src/integrations/tableclipboard.js +1 -1
  202. package/src/integrations/tablecolumnresize.js +1 -1
  203. package/src/integrations/tableheadings.js +1 -1
  204. package/src/integrations/tablelayout.js +1 -1
  205. package/src/integrations/tablemergesplit.js +1 -1
  206. package/src/integrations/tableofcontents.js +1 -1
  207. package/src/integrations/tableproperties.js +1 -1
  208. package/src/integrations/template.js +1 -1
  209. package/src/integrations/title.js +1 -1
  210. package/src/integrations/undo.js +1 -1
  211. package/src/integrations/uploadcare.js +1 -1
  212. package/src/integrations/utils.js +1 -1
  213. package/src/suggestion.js +2 -2
  214. package/src/suggestiondescriptionfactory.js +1 -1
  215. package/src/trackchanges.js +1 -1
  216. package/src/trackchangesdata.js +1 -1
  217. package/src/trackchangesediting.js +1 -1
  218. package/src/trackchangespreview.js +1 -1
  219. package/src/trackchangesui.js +1 -1
  220. package/src/ui/suggestioncontroller.js +2 -2
  221. package/src/ui/view/basesuggestionthreadview.js +1 -1
  222. package/src/ui/view/suggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionview.js +1 -1
  224. package/src/ui/view/trackchangespreviewview.js +1 -1
  225. package/src/utils/common-translations.js +1 -1
  226. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0xaae2ec,Plugin as _0x121524,PendingActions as _0x38bf77}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x33c4a9,ObservableMixin as _0x4ec318,uid as _0x25ef3d,priorities as _0x84b019,insertToPriorityArray as _0x1876b4,toArray as _0x27a1f0,logWarning as _0x24dc67,getEnvKeystrokeText as _0x231ec4,FocusTracker as _0x23919d,KeystrokeHandler as _0x5e8f5e,Collection as _0x3e74dd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5ac1f8,IconCancel as _0x2e2f79,IconTrackChanges as _0x5aba70}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x883619,View as _0x3c3a65,ViewCollection as _0x1cf556,FocusCycler as _0x80b2b8,ViewModel as _0x22348e,createDropdown as _0x1a0e52,SplitButtonView as _0x247951,addListToDropdown as _0x1a8fc2,MenuBarMenuView as _0x4416c9,MenuBarMenuListView as _0x2b3aae,ListSeparatorView as _0x567c6c,MenuBarMenuListItemView as _0x346f61,MenuBarMenuListItemButtonView as _0x59f6d0,BodyCollection as _0x428682,Dialog as _0x179695}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x23ff89,hashObject as _0x51efad,surroundingMarkersDetector as _0x2001ba,FOCUS_ANNOTATION_KEYSTROKE as _0x1f0485,AriaDescriptionView as _0x34a612,setupThreadKeyboardNavigation as _0x158e7e,trimHtml as _0x41c8ca,UserView as _0x2a1e2e,LateFocusButtonView as _0x10be5c,getDateTimeFormatter as _0x40e693,getAllMarkersDomElementsSorted as _0x18066e,sanitizeEditorConfig as _0x4fa1ac}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x559cd2,LiveRange as _0xf8fd8e,LivePosition as _0x398546,DowncastWriter as _0x1c82f2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x47633e,toWidget as _0x4a22af}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2f9077,set as _0x3052ca,isEqual as _0x5834e8,unset as _0xa0cdee,omit as Ft}from'es-toolkit/compat';import{Delete as _0x39a15c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x36173d}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x5ab88f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0xaae2ec{['_enabledCommands'];constructor(_0x414e1a,_0x59dda1){super(_0x414e1a),this['_enabledCommands']=_0x59dda1,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 _0x1da9df of this['editor']['commands']['commands']())_0x1da9df['affectsData']&&!this['_enabledCommands']['has'](_0x1da9df)&&_0x1da9df['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x21d969 of this['editor']['commands']['commands']())_0x21d969['affectsData']&&!this['_enabledCommands']['has'](_0x21d969)&&_0x21d969['clearForceDisabled']('TrackChangesCommand');}}class x extends _0xaae2ec{['_suggestions'];constructor(_0xd7716e,_0x35ff62){super(_0xd7716e),this['_suggestions']=_0x35ff62,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x84f2a6){const _0x1d625f=this['_suggestions']['get'](_0x84f2a6);if(!_0x1d625f)throw new _0x33c4a9('track-changes-accept-suggestion-not-found',this);const _0x4f8f1a=_0x1d625f['getRanges']();this['editor']['model']['canEditAt'](_0x4f8f1a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1d625f);}}class O extends _0xaae2ec{['_suggestions'];constructor(_0x3f103f,_0x4bd476){super(_0x3f103f),this['_suggestions']=_0x4bd476,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1a809f){const _0x4d2c8b=this['_suggestions']['get'](_0x1a809f);if(!_0x4d2c8b)throw new _0x33c4a9('track-changes-discard-suggestion-not-found',this);const _0x40f907=_0x4d2c8b['getRanges']();this['editor']['model']['canEditAt'](_0x40f907)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4d2c8b);}}function ls(_0x13c5d8,_0x1fafd2){let _0x353339='';return _0x353339+=_0x13c5d8['split']('*')['map']((_0x5a4e39,_0x37725f)=>_0x37725f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5a4e39)+'</span>':nn(_0x5a4e39))['join'](''),_0x1fafd2&&(_0x353339+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1fafd2['value']+'\x22\x20title=\x22'+_0x1fafd2['title']+'\x22></span>'),_0x353339;}function nn(_0x3d7703){const _0x310444=document['createElement']('span');return _0x310444['innerText']=_0x3d7703,_0x310444['innerHTML'];}function ts(_0xa03b81){return _0xa03b81['sort']((_0x2b7d86,_0x52f682)=>'deletion'==_0x2b7d86['type']&&'deletion'!=_0x52f682['type']?-0x1:'deletion'!=_0x2b7d86['type']&&'deletion'==_0x52f682['type']?0x1:0x0);}function to(_0x16b84c,_0x400ec9){let _0x140405,_0x4e53c9=0x0;const _0x4feb2a=[],_0x2a9498=_0x400ec9['schema'];for(;_0x4e53c9<_0x16b84c['length'];){const _0x3727b6=_0x16b84c[_0x4e53c9],_0x5a9154=_0x16b84c[_0x4e53c9+0x1];_0x140405||(_0x140405=_0x400ec9['createPositionBefore'](_0x3727b6)),on(_0x400ec9,_0x3727b6,_0x5a9154)||(_0x4feb2a['push'](_0x400ec9['createRange'](_0x140405,_0x2a9498['isObject'](_0x3727b6)?_0x400ec9['createPositionAfter'](_0x3727b6):_0x400ec9['createPositionAt'](_0x3727b6,'end'))),_0x140405=null),_0x4e53c9++;}return _0x4feb2a;}function on(_0x2e04fb,_0x33ec55,_0x52bd99){if(!_0x52bd99)return!0x1;const _0x3537b2=_0x2e04fb['createPositionAfter'](_0x33ec55),_0x253dde=_0x2e04fb['createPositionBefore'](_0x52bd99);return _0x3537b2['isTouching'](_0x253dde);}function rs(_0x299d02,_0x149db0,_0x21fb66){for(;_0x21fb66['length'];){const _0x515a4d=_0x21fb66['splice'](0x0,0x64);_0x299d02['change'](()=>{for(const _0x3eefea of _0x515a4d)_0x3eefea['isInContent']&&_0x149db0['execute'](_0x3eefea['id']);});}}class R extends _0xaae2ec{['_command'];['_suggestions'];constructor(_0x40c3d9,_0x4d65e3,_0x4b713d){super(_0x40c3d9),this['_command']=_0x4d65e3,this['_suggestions']=_0x4b713d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x48d9d7=Array['from'](this['_suggestions']['values']())['some'](_0x52de51=>_0x52de51['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x48d9d7;}['execute'](){const _0x19febc=ts(Array['from'](this['_suggestions']['values']()));for(const _0x53727c of _0x19febc){const _0x56db0c=_0x53727c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x56db0c))return;}rs(this['editor']['model'],this['_command'],_0x19febc);}}class E extends _0xaae2ec{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3c1a4,_0x3c94ce,_0x195ffa){super(_0x3c1a4),this['_command']=_0x3c94ce,this['_suggestions']=_0x195ffa,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x53d56f=this['editor']['model']['document']['selection'],_0x311b40=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1b96d0,_0x435576){const _0x3a551a=Array['from'](_0x1b96d0['getRanges']()),_0x136c39=new Set();for(const _0x89d8e3 of _0x435576)if(_0x89d8e3['isInContent']){for(const _0x379992 of _0x3a551a)for(const _0x6b96ad of _0x89d8e3['getRanges']())(_0x379992['isIntersecting'](_0x6b96ad)||_0x1b96d0['isCollapsed']&&!_0x89d8e3['isMultiRange']&&_0x89d8e3['next']&&_0x6b96ad['end']['isTouching'](_0x379992['start']))&&_0x136c39['add'](_0x89d8e3);}return _0x136c39;}(_0x53d56f,_0x311b40),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x48d84f=ts(Array['from'](this['_selectedSuggestions']));for(const _0x114087 of _0x48d84f){const _0x2221f4=_0x114087['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2221f4))return;}rs(this['editor']['model'],this['_command'],_0x48d84f);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x4ec318(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5a2ab5,_0x4ac535){super(),this['id']=_0x4ac535['id'],this['type']=_0x4ac535['type'],this['subType']=_0x4ac535['subType']||null,this['author']=_0x4ac535['author'],this['creator']=_0x4ac535['creator']||_0x4ac535['author'],this['isExternal']=Boolean(_0x4ac535['attributes']&&_0x4ac535['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4ac535['originalSuggestionId']||null,this['_model']=_0x5a2ab5,this['_onAccept']=_0x4ac535['onAccept'],this['_onDiscard']=_0x4ac535['onDiscard'],this['_onAttributesChange']=_0x4ac535['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4ac535['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 _0x551f8e=this;for(;_0x551f8e['previous'];)_0x551f8e=_0x551f8e['previous'];return _0x551f8e;}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'](_0x986929){this['_markerNames']['add'](_0x986929);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4ae050=>this['_model']['markers']['get'](_0x4ae050))['filter'](_0x1a9d30=>_0x1a9d30);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x416689=>{for(const _0x18ce37 of this['getMarkers']())_0x416689['removeMarker'](_0x18ce37);}),this['_markerNames']['clear']();}['removeMarker'](_0x2b0cc5){this['_model']['change'](_0x14de69=>{_0x14de69['removeMarker'](_0x2b0cc5);}),this['_markerNames']['delete'](_0x2b0cc5);}['addRange'](_0x375d2e){const _0x1445e3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1445e3),this['_model']['change'](_0xd56d54=>{_0xd56d54['addMarker'](_0x1445e3,{'range':_0x375d2e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x315c53){for(const _0x557abe of this['getRanges']())if(_0x557abe['isIntersecting'](_0x315c53))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x56e526=>_0x56e526['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3ca7a1,_0x17479c)=>[..._0x3ca7a1,..._0x17479c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x20eda5=this['getRanges']();if(0x1!=_0x20eda5['length'])return null;const _0x242d66=_0x20eda5[0x0],_0x21f47a=_0x242d66['start']['nodeAfter'],_0x3dc773=_0x242d66['end']['nodeBefore'];return _0x21f47a instanceof _0x559cd2?_0x21f47a!=_0x3dc773?null:_0x21f47a: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 _0x5440b3=[];let _0x4fb0e1=this['head'];for(;_0x4fb0e1;)_0x5440b3['push'](_0x4fb0e1),_0x4fb0e1=_0x4fb0e1['next'];return _0x5440b3;}['setAttribute'](_0x43f224,_0x844a52){const _0x4bea1c=_0x2f9077(this['attributes']);_0x3052ca(_0x4bea1c,_0x43f224,_0x844a52),_0x5834e8(_0x4bea1c,this['attributes'])||(this['attributes']=_0x4bea1c,this['_onAttributesChange'](_0x4bea1c));}['removeAttribute'](_0x26e94d){const _0x1e502a=_0x2f9077(this['attributes']);_0xa0cdee(_0x1e502a,_0x26e94d),_0x5834e8(_0x1e502a,this['attributes'])||(this['attributes']=_0x1e502a,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 _0x25ef3d()['substr'](0x1,0x5);}}function c(_0x3d498a,_0x399560,_0x28fd3f){const _0x26fbe6=_0x3d498a['t'],t=_0x3d498a['t'];switch(_0x399560){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',_0x28fd3f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x28fd3f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x28fd3f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x28fd3f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x28fd3f);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',_0x28fd3f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x28fd3f);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',_0x28fd3f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x28fd3f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x28fd3f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x28fd3f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x28fd3f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x28fd3f);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x28fd3f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x28fd3f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x28fd3f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x28fd3f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x28fd3f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x28fd3f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x28fd3f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x28fd3f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x28fd3f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x28fd3f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x28fd3f);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x28fd3f);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'},_0x28fd3f);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x28fd3f);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x28fd3f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x28fd3f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x28fd3f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x28fd3f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x28fd3f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x28fd3f);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'},_0x28fd3f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x28fd3f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x28fd3f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x28fd3f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x28fd3f);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'},_0x28fd3f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x28fd3f);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'},_0x28fd3f);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x28fd3f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x28fd3f);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'},_0x28fd3f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x28fd3f);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'},_0x28fd3f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x28fd3f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x28fd3f);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'},_0x28fd3f);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x28fd3f);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 _0x26fbe6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x28fd3f);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x26fbe6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x28fd3f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x28fd3f);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'},_0x28fd3f);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'},_0x28fd3f);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'},_0x28fd3f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x399560;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2cad89,_0x4ec8e7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2cad89,this['_locale']=_0x4ec8e7;}['getDescriptions'](_0x56d47c){const _0xb9297f=[],_0x3b13fe=new Set(),_0x5cb0bc=new Set();for(let _0x227832=0x0;_0x227832<_0x56d47c['length'];_0x227832++){const _0x44a6c2=_0x56d47c[_0x227832];if(!_0x44a6c2['isInContent'])continue;const _0x27c46b=this['_handleCustomCallbackDescription'](_0x44a6c2);if(_0x27c46b){if(null!=_0x44a6c2['subType']){if(_0x3b13fe['has'](_0x44a6c2['subType']))continue;_0x3b13fe['add'](_0x44a6c2['subType']);}_0xb9297f['push'](_0x27c46b);}else{if('attribute'==_0x44a6c2['type']){const _0x25f735=_0x44a6c2['data']['key'];if(_0x5cb0bc['has'](_0x25f735))continue;_0x5cb0bc['add'](_0x44a6c2['data']['key']),_0x25f735==u?this['_handleRenameSuggestionDescription'](_0xb9297f,_0x44a6c2):this['_handleAttributeSuggestionDescription'](_0xb9297f,_0x44a6c2);continue;}'insertion'!=_0x44a6c2['type']&&'deletion'!=_0x44a6c2['type']||this['_handleInsertRemoveSuggestionDescription'](_0xb9297f,_0x44a6c2,_0x56d47c[_0x227832+0x1]);}}return this['_resolveDescriptionItems'](_0xb9297f);}['registerDescriptionCallback'](_0x1d13fe){this['_customCallbacks']['push'](_0x1d13fe);}['registerElementLabel'](_0x38b135,_0x4f82fa,_0x378dd3=_0x84b019['normal']){'function'==typeof _0x38b135?_0x1876b4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x38b135,'label':_0x4f82fa,'priority':_0x378dd3}):this['_itemLabels']['set'](_0x38b135,_0x4f82fa);}['registerAttributeLabel'](_0xc64f51,_0x5a243c){this['_attributeLabels']['set'](_0xc64f51,_0x5a243c);}['getItemLabel'](_0x5536aa,_0x56b343=0x1){let _0x4bdaf4;for(const _0x1cb3d9 of this['_itemLabelsCallbacks'])if(_0x1cb3d9['matchingCallback'](_0x5536aa)){_0x4bdaf4=_0x1cb3d9['label'];break;}return _0x4bdaf4||(_0x4bdaf4=this['_itemLabels']['get'](_0x5536aa['name'])),_0x4bdaf4?_0x4bdaf4(_0x56b343):0x1!==_0x56b343?_0x56b343+'\x20'+_0x5536aa['name']+'s':''+_0x5536aa['name'];}['_addDescriptionItems'](_0x1ce27c,_0x52629f){const _0x375f6d=_0x52629f['getFirstRange']()['getWalker'](),_0x392478='insertion'==_0x52629f['type']?'add':'remove';for(const _0x5444e3 of _0x375f6d){const _0x4b359c=_0x5444e3['item'],_0x131b49=_0x1ce27c[_0x1ce27c['length']-0x1];if(_0x4b359c['is']('$textProxy'))_0x131b49&&_0x131b49['type']['indexOf']('Container')>-0x1&&_0x1ce27c['pop'](),_0x131b49&&'text'==_0x131b49['type']?_0x131b49[_0x392478]+=_0x4b359c['data']:_0x1ce27c['push']({'type':'text','add':'add'==_0x392478?_0x4b359c['data']:'','remove':'remove'==_0x392478?_0x4b359c['data']:''});else{if(this['_schema']['isObject'](_0x4b359c)){const _0x5d7d0c=_0x4b359c;if(_0x131b49&&_0x131b49['type']['indexOf']('Container')>-0x1&&_0x1ce27c['pop'](),'elementEnd'==_0x5444e3['type'])continue;_0x131b49&&_0x131b49['type']==_0x392478+'Object'&&_0x131b49['element']['name']==_0x5d7d0c['name']?_0x131b49['quantity']++:_0x1ce27c['push']({'type':_0x392478+'Object','element':_0x5d7d0c,'quantity':0x1}),_0x375f6d['skip'](_0xc8864=>!('elementEnd'==_0xc8864['type']&&_0xc8864['item']==_0x4b359c));}else{if(this['_schema']['checkChild'](_0x4b359c,'$text')||_0x4b359c['is']('element','softBreak')){const _0x19eb68=_0x4b359c;if('add'==_0x392478&&'elementStart'==_0x5444e3['type']||'remove'==_0x392478&&'elementEnd'==_0x5444e3['type'])continue;if(_0x131b49&&-0x1==_0x131b49['type']['indexOf']('Container')){'text'==_0x131b49['type']&&(_0x131b49[_0x392478]+='\x0a');continue;}let _0x2687ec;if(_0x2687ec='add'==_0x392478?_0x19eb68['nextSibling']&&!this['_schema']['isObject'](_0x19eb68['nextSibling'])?_0x19eb68['nextSibling']:null:_0x19eb68['previousSibling']&&!this['_schema']['isObject'](_0x19eb68['previousSibling'])?_0x19eb68['previousSibling']:null,_0x19eb68['isEmpty']||_0x2687ec&&_0x2687ec['isEmpty']){const _0x939d17=_0x2687ec&&_0x2687ec['isEmpty']?_0x2687ec:_0x19eb68;_0x131b49&&_0x131b49['type']==_0x392478+'EmptyContainer'&&_0x131b49['element']['name']==_0x939d17['name']?_0x131b49['quantity']++:_0x1ce27c['push']({'type':_0x392478+'EmptyContainer','element':_0x939d17,'quantity':0x1});}else _0x1ce27c['push']({'type':_0x392478+'Container','element':_0x19eb68});}}}}}['_resolveDescriptionItems'](_0x34cea3){const _0x414ef5=this['_locale'],_0x12a866=[],_0x534ed9=[],_0x515d21=[];for(const _0x42d9d8 of _0x34cea3)switch(_0x42d9d8['type']){case'text':if(_0x42d9d8['add']=_0x42d9d8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x42d9d8['remove']=_0x42d9d8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x42d9d8['add']&&''!=_0x42d9d8['remove']){_0x12a866['push']({'type':'replace','content':c(_0x414ef5,'REPLACE_TEXT',['\x22'+_0x42d9d8['remove']+'\x22','\x22'+_0x42d9d8['add']+'\x22'])});continue;}if(null!=_0x42d9d8['add']['match'](/^ +$/)){_0x12a866['push']({'type':'insertion','content':c(_0x414ef5,'*Insert:*\x20%0',c(_0x414ef5,'ELEMENT_SPACE',_0x42d9d8['add']['length']))});continue;}if(null!=_0x42d9d8['remove']['match'](/^ +$/)){_0x12a866['push']({'type':'deletion','content':c(_0x414ef5,'*Remove:*\x20%0',c(_0x414ef5,'ELEMENT_SPACE',_0x42d9d8['remove']['length']))});continue;}if(''!=_0x42d9d8['add']){_0x12a866['push']({'type':'insertion','content':c(_0x414ef5,'*Insert:*\x20%0','\x22'+_0x42d9d8['add']+'\x22')});continue;}_0x12a866['push']({'type':'deletion','content':c(_0x414ef5,'*Remove:*\x20%0','\x22'+_0x42d9d8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x12a866['push']({'type':'insertion','content':c(_0x414ef5,'*Insert:*\x20%0',this['getItemLabel'](_0x42d9d8['element'],_0x42d9d8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x12a866['push']({'type':'deletion','content':c(_0x414ef5,'*Remove:*\x20%0',this['getItemLabel'](_0x42d9d8['element'],_0x42d9d8['quantity']))});continue;case'addContainer':_0x12a866['push']({'type':'insertion','content':c(_0x414ef5,'*Split:*\x20%0',this['getItemLabel'](_0x42d9d8['element'],_0x42d9d8['quantity']))});continue;case'removeContainer':_0x12a866['push']({'type':'deletion','content':c(_0x414ef5,'*Merge:*\x20%0',this['getItemLabel'](_0x42d9d8['element'],_0x42d9d8['quantity']))});continue;case'addFormat':_0x534ed9['push'](_0x42d9d8['key']);continue;case'removeFormat':_0x515d21['push'](_0x42d9d8['key']);continue;default:_0x12a866['push'](_0x42d9d8);}if(_0x534ed9['length']){const _0xef125=_0x534ed9['map'](_0x5005a0=>this['_attributeLabels']['has'](_0x5005a0)?this['_attributeLabels']['get'](_0x5005a0):_0x5005a0)['join'](',\x20');_0x12a866['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0xef125)});}if(_0x515d21['length']){const _0x49ef39=_0x515d21['map'](_0x9a3587=>this['_attributeLabels']['has'](_0x9a3587)?this['_attributeLabels']['get'](_0x9a3587):_0x9a3587)['join'](',\x20');_0x12a866['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x49ef39)});}return _0x12a866;}['_handleCustomCallbackDescription'](_0x4c3ddd){for(const _0x1b5637 of this['_customCallbacks']){const _0x49007b=_0x1b5637(_0x4c3ddd);if(_0x49007b&&'type'in _0x49007b)return _0x49007b;}}['_handleAttributeSuggestionDescription'](_0x594945,_0x98f209){const _0x1a6b8e=_0x98f209['data'],_0x4e977b=void 0x0===_0x1a6b8e['newValue']?'removeFormat':'addFormat';_0x594945['push']({'type':_0x4e977b,'key':_0x1a6b8e['key']});}['_handleRenameSuggestionDescription'](_0x339b33,_0x1b3113){_0x339b33['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1b3113['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x8990af,_0x1278b2,_0x9ca04b){if(this['_addDescriptionItems'](_0x8990af,_0x1278b2),_0x9ca04b&&_0x9ca04b['getFirstRange']()&&!_0x1278b2['getFirstRange']()['end']['isEqual'](_0x9ca04b['getFirstRange']()['start'])){const _0x44551a=_0x8990af[_0x8990af['length']-0x1],_0x143c83='insertion'==_0x1278b2['type']?'add':'remove';_0x44551a&&'text'==_0x44551a['type']&&(_0x44551a[_0x143c83]+='\x0a');}}}class U extends _0x121524{['afterInit'](){const _0x34cfb3=this['editor'],_0x3c076a=_0x34cfb3['plugins']['get']('TrackChangesEditing');_0x34cfb3['commands']['get']('showAIAssistant')&&_0x3c076a['enableCommand']('showAIAssistant');}}class V extends _0x121524{['afterInit'](){const _0x2e2728=this['editor'],_0x3d2f04=_0x2e2728['locale'];if(!_0x2e2728['plugins']['has']('AlignmentEditing'))return;const _0xf04597=_0x2e2728['plugins']['get']('TrackChangesEditing');_0xf04597['enableDefaultAttributesIntegration']('alignment'),_0xf04597['registerBlockAttribute']('alignment'),_0xf04597['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x3d2f04,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x290283=this['editor'],_0xdaba36=_0x290283['locale'];_0x290283['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26bb59=>{if('formatBlock'!=_0x26bb59['type'])return;const {data:_0x66060}=_0x26bb59;if(_0x66060&&'alignment'==_0x66060['commandName']){const _0xa80d0b=_0x66060['commandParams'][0x0]['value'];return{'type':'format','content':c(_0xdaba36,'*Format:*\x20%0',function(_0xaaed9c){switch(_0xaaed9c){case'left':return c(_0xdaba36,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0xdaba36,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0xdaba36,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0xdaba36,'FORMAT_JUSTIFY_TEXT');}}(_0xa80d0b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x121524{['afterInit'](){const _0x32b55b=this['editor'],_0x3fcf51=_0x32b55b['plugins']['get']('TrackChangesEditing'),_0x4900f7=_0x32b55b['locale'];for(const _0x2bc118 of ti){if(!_0x32b55b['plugins']['has'](_0x2bc118))continue;const _0x48584f=_0x2bc118['slice'](0x0,-0x7)['toLowerCase'](),_0x1f6ef1='FORMAT_'+_0x48584f['toUpperCase']();_0x3fcf51['enableDefaultAttributesIntegration'](_0x48584f),_0x3fcf51['registerInlineAttribute'](_0x48584f),_0x3fcf51['descriptionFactory']['registerAttributeLabel'](_0x48584f,c(_0x4900f7,_0x1f6ef1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7b1adc=this['editor'],_0x21f3ac=_0x7b1adc['locale'],_0x292179=_0x7b1adc['plugins']['get']('TrackChangesEditing');function _0x336fed(_0x5d12b9,_0xf555ea){_0x292179['descriptionFactory']['registerDescriptionCallback'](_0x38b3e3=>{if('formatInline'!=_0x38b3e3['type'])return;const {data:_0x40337c}=_0x38b3e3;return _0x40337c&&_0x40337c['commandName']===_0x5d12b9?_0x40337c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x21f3ac,'*Format:*\x20%0',_0xf555ea)}:{'type':'format','content':c(_0x21f3ac,'*Remove\x20format:*\x20%0',_0xf555ea)}:void 0x0;});}_0x336fed('bold',c(_0x21f3ac,'FORMAT_BOLD')),_0x336fed('italic',c(_0x21f3ac,'FORMAT_ITALIC')),_0x336fed('underline',c(_0x21f3ac,'FORMAT_UNDERLINE')),_0x336fed('code',c(_0x21f3ac,'FORMAT_CODE')),_0x336fed('strikethrough',c(_0x21f3ac,'FORMAT_STRIKETHROUGH')),_0x336fed('subscript',c(_0x21f3ac,'FORMAT_SUBSCRIPT')),_0x336fed('superscript',c(_0x21f3ac,'FORMAT_SUPERSCRIPT'));}}class G extends _0x121524{['afterInit'](){const _0x300e82=this['editor'],_0x518d40=_0x300e82['locale'];if(!_0x300e82['plugins']['has']('BlockQuoteEditing'))return;const _0x5c838b=_0x300e82['plugins']['get']('TrackChangesEditing'),_0x51d28d=this['editor']['commands']['get']('blockQuote');_0x5c838b['enableCommand']('blockQuote',(_0x5277ff,_0x389bce={})=>{const _0x595997=this['editor']['model']['document']['selection'],_0x3fb028=_0x389bce&&void 0x0!==_0x389bce['forceValue']?_0x389bce['forceValue']:!_0x51d28d['value'];let _0x4e574a=[];if(_0x3fb028){const _0x135a7d=Array['from'](_0x595997['getSelectedBlocks']())['filter'](_0x48f007=>oo(_0x48f007)||function(_0x4ca1e3,_0x3c7428){const _0x22bea5=_0x3c7428['checkChild'](_0x4ca1e3['parent'],'blockQuote'),_0xaf23b0=_0x3c7428['checkChild'](['$root','blockQuote'],_0x4ca1e3);return _0x22bea5&&_0xaf23b0;}(_0x48f007,this['editor']['model']['schema']));_0x4e574a=to(_0x135a7d,_0x300e82['model']);}else{const _0x535a0f=Array['from'](_0x595997['getSelectedBlocks']())['filter'](_0x45bb44=>oo(_0x45bb44));_0x4e574a=to(_0x535a0f,_0x300e82['model']);}_0x300e82['model']['change'](()=>{for(const _0x508cb4 of _0x4e574a)_0x5c838b['markBlockFormat'](_0x508cb4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3fb028}]});});}),_0x5c838b['descriptionFactory']['registerDescriptionCallback'](_0x535fde=>{const {data:_0x300b40}=_0x535fde;if(_0x300b40&&'blockQuote'==_0x300b40['commandName']){const _0x115386=c(_0x518d40,'ELEMENT_BLOCK_QUOTE');return _0x300b40['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x518d40,'*Set\x20format:*\x20%0',_0x115386)}:{'type':'format','content':c(_0x518d40,'*Remove\x20format:*\x20%0',_0x115386)};}});}}function oo(_0x4f76d6){return'blockQuote'==_0x4f76d6['parent']['name'];}class L extends _0x121524{['afterInit'](){const _0x451bdb=this['editor'],_0x43ac26=_0x451bdb['locale'],_0x292eed=_0x451bdb['plugins']['get']('TrackChangesEditing');_0x451bdb['plugins']['has']('BookmarkEditing')&&(_0x292eed['enableCommand']('insertBookmark'),_0x292eed['enableDefaultAttributesIntegration']('updateBookmark'),_0x292eed['registerBlockAttribute']('bookmarkId'),_0x292eed['descriptionFactory']['registerDescriptionCallback'](_0x202bc8=>{if('insertion'!=_0x202bc8['type']&&'deletion'!=_0x202bc8['type']&&'attribute'!=_0x202bc8['type'])return;const _0x5aac42=_0x202bc8['getContainedElement']();if(null==_0x5aac42)return;if(!_0x5aac42['is']('element','bookmark'))return;const _0x44a171=_0x5aac42['getAttribute']('bookmarkId');if('insertion'==_0x202bc8['type'])return{'type':'insertion','content':c(_0x43ac26,'*Insert:*\x20%0','\x22'+_0x44a171+'\x22\x20'+c(_0x43ac26,'ELEMENT_BOOKMARK'))};if('deletion'==_0x202bc8['type'])return{'type':'deletion','content':c(_0x43ac26,'*Remove:*\x20%0','\x22'+_0x44a171+'\x22\x20'+c(_0x43ac26,'ELEMENT_BOOKMARK'))};const {data:_0x43a629}=_0x202bc8;if(!_0x43a629||'bookmarkId'!=_0x43a629['key'])return;return{'type':'format','content':c(_0x43ac26,'*Set\x20bookmark:*\x20%0','\x22'+_0x43a629['newValue']+'\x22')};}));}}class J extends _0x121524{['afterInit'](){const _0x4e1cee=this['editor'];_0x4e1cee['plugins']['has']('CaseChange')&&(_0x4e1cee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4e1cee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4e1cee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x121524{['afterInit'](){const _0x442d07=this['editor'];_0x442d07['commands']['get']('ckbox')&&_0x442d07['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x121524{['afterInit'](){const _0x13d9ac=this['editor'];if(!_0x13d9ac['plugins']['has']('CodeBlock'))return;const _0x37cc06=_0x13d9ac['plugins']['get']('TrackChangesEditing'),_0xb49e2=_0x13d9ac['locale'],_0x90ca4f=_0x13d9ac['config']['get']('codeBlock')['languages'],_0x22542d=_0x13d9ac['commands']['get']('codeBlock');_0x37cc06['enableCommand']('indentCodeBlock'),_0x37cc06['enableCommand']('outdentCodeBlock'),_0x37cc06['enableCommand']('codeBlock',(_0x52ebf0,_0x2bbbd3={})=>{const _0x5b5921=_0x13d9ac['model'],_0x550051=_0x13d9ac['model']['document']['selection'],_0x16b4cf=_0x2bbbd3&&void 0x0!==_0x2bbbd3['forceValue']?_0x2bbbd3['forceValue']:!_0x22542d['value'];let _0x3ac558;_0x2bbbd3['language']||(_0x2bbbd3['language']=_0x90ca4f[0x0]['language']),_0x3ac558=_0x16b4cf?Array['from'](_0x550051['getSelectedBlocks']())['filter'](_0x2a23d4=>eo(_0x2a23d4)||function(_0x47d2ae,_0x46d5bf){if(_0x47d2ae['is']('rootElement')||_0x46d5bf['isLimit'](_0x47d2ae))return!0x1;return _0x46d5bf['checkChild'](_0x47d2ae['parent'],'codeBlock');}(_0x2a23d4,_0x5b5921['schema'])):Array['from'](_0x550051['getSelectedBlocks']())['filter'](_0x54fc27=>eo(_0x54fc27));const _0x614075=to(_0x3ac558,_0x5b5921);_0x5b5921['change'](()=>{for(const _0x65714b of _0x614075)_0x37cc06['markBlockFormat'](_0x65714b,{'commandName':'codeBlock','commandParams':[{..._0x2bbbd3,'forceValue':_0x16b4cf}],'formatGroupId':'blockName'});});}),(_0x37cc06['descriptionFactory']['registerElementLabel']('codeBlock',_0x29b207=>c(_0xb49e2,'ELEMENT_CODE_BLOCK',_0x29b207)),_0x37cc06['descriptionFactory']['registerDescriptionCallback'](_0x49c428=>{if('formatBlock'!=_0x49c428['type'])return;const _0x3b8f97=_0xb49e2['t'],{data:_0x509ffd}=_0x49c428;if(!_0x509ffd||'codeBlock'!=_0x509ffd['commandName'])return;const _0x2fb8e6=_0x509ffd['commandParams'][0x0]['language'],_0xfbacdc=_0x3b8f97(_0x90ca4f['find'](_0x48f2b9=>_0x48f2b9['language']===_0x2fb8e6)['label'])['toLowerCase']();return _0x509ffd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xb49e2,'*Set\x20format:*\x20%0',c(_0xb49e2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xfbacdc+')')}:{'type':'format','content':c(_0xb49e2,'*Remove\x20format:*\x20%0',c(_0xb49e2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x29309c){return'codeBlock'==_0x29309c['name'];}class q extends _0x121524{['afterInit'](){const _0x115658=this['editor'];if(!_0x115658['plugins']['has']('CommentsEditing'))return;_0x115658['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4c298d,_0x726f00,_0x5d8229){const _0x10aebd=[];for(const _0x22c03f of _0x726f00['getItems']())_0x22c03f['hasAttribute'](_0x4c298d)&&_0x10aebd['push'](_0x5d8229['createRangeOn'](_0x22c03f));return _0x10aebd;}function Fe(_0x75697e,_0x544657,{showActiveMarker:_0x20854f=!0x0}={}){const _0x104b07=_0x75697e['plugins']['get']('TrackChangesEditing');return(_0x17888e,_0x128bfb,_0x2b0d5d)=>{if(!_0x2b0d5d['consumable']['test'](_0x128bfb['markerRange'],_0x17888e['name']))return;const _0x3614a1=_0x128bfb['markerRange']['getWalker'](),_0x1f7ee0=_0x128bfb['markerRange']['start'],_0x1c77ef=_0x75697e['model']['schema'];let _0x4dbf0a=null,_0x4d3f16=null,_0x1d5717=!0x1,_0x495102=!0x1;for(const _0x2b7e10 of _0x3614a1){const _0x24549f=_0x2b7e10['item'];_0x1d5717=_0x1d5717||_0x1c77ef['isContent'](_0x24549f);const _0x307a28=_0x2b0d5d['mapper']['toViewElement'](_0x24549f);if(_0x307a28&&_0x307a28['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2b7e10['type']&&(_0x1c77ef['isBlock'](_0x24549f)&&!_0x1c77ef['isLimit'](_0x24549f)&&(_0x24549f['nextSibling']||_0x1f7ee0['isAtEnd']?_0x4dbf0a&&_0x4dbf0a['parent']==_0x24549f||(_0x4dbf0a=_0x24549f,_0x1678f9(_0x2b7e10['previousPosition']),_0x495102=!0x0):_0x4d3f16=_0x4d3f16||_0x2b7e10['previousPosition']));}function _0x1678f9(_0x51ceab){const {id:_0x29f65e,authorId:_0x28fb77}=_0x104b07['_splitMarkerName'](_0x128bfb['markerName']),_0x1c3b66=_0x2b0d5d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x544657,'data-suggestion':_0x29f65e,'data-author-id':_0x28fb77}),_0x23ac66=_0x2b0d5d['mapper']['toViewPosition'](_0x51ceab);_0x20854f&&_0x104b07['activeMarkers']['includes'](_0x128bfb['markerName'])&&_0x2b0d5d['writer']['addClass']('ck-suggestion-marker--active',_0x1c3b66),_0x2b0d5d['writer']['insert'](_0x23ac66,_0x1c3b66),_0x2b0d5d['mapper']['bindElementToMarker'](_0x1c3b66,_0x128bfb['markerName']);}_0x1d5717||_0x495102||!_0x4d3f16||_0x1678f9(_0x4d3f16);};}class z extends _0x121524{static get['requires'](){return[_0x39a15c];}['init'](){const _0x5a6145=this['editor'],_0x2a0f35=_0x5a6145['plugins']['get']('TrackChangesEditing');_0x2a0f35['enableCommand']('delete');const _0x59a432=_0x5a6145['commands']['get']('deleteForward');_0x2a0f35['enableCommand']('deleteForward',(_0x18b3eb,_0x5b6189={})=>{const _0x115901=_0x5a6145['model']['createSelection'](_0x5a6145['model']['document']['selection']);_0x115901['isCollapsed']&&_0x5a6145['model']['modifySelection'](_0x115901,{'direction':'forward','unit':_0x5b6189['unit']});const _0x13014a=_0x115901['getFirstRange'](),_0x1253fa=_0xf8fd8e['fromRange'](_0x13014a);let _0x36e716;_0x18b3eb(_0x5b6189),_0x36e716='$graveyard'==_0x1253fa['root']['rootName']?_0x5a6145['model']['createRange'](_0x13014a['start']):_0x5a6145['model']['createRange'](_0x1253fa['start'],_0x1253fa['end']),_0x1253fa['detach'](),_0x5a6145['model']['enqueueChange'](_0x59a432['buffer']['batch'],_0x53c52f=>{_0x59a432['buffer']['lock'](),_0x53c52f['setSelection'](_0x53c52f['createRange'](_0x36e716['end'])),_0x59a432['buffer']['unlock']();});}),_0x5a6145['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x5a6145,'merge'),{'priority':'high'}),_0x5a6145['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3efbb4,_0x3ca352,_0x57d45a)=>{_0x57d45a['options']['showSuggestionHighlights']&&Fe(_0x5a6145,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3efbb4,_0x3ca352,_0x57d45a);},{'priority':'high'}),_0x5a6145['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x213d40,_0x5cce72,_0x20fe31)=>{const _0x38dfc5=_0x20fe31['mapper']['markerNameToElements'](_0x5cce72['markerName']);if(_0x38dfc5){for(const _0x2ea27f of _0x38dfc5)_0x2ea27f['is']('uiElement')&&(_0x20fe31['mapper']['unbindElementFromMarkerName'](_0x2ea27f,_0x5cce72['markerName']),_0x20fe31['writer']['remove'](_0x2ea27f));}},{'priority':'high'});}}class W extends _0x121524{['afterInit'](){const _0x43bfba=this['editor'];if(!_0x43bfba['plugins']['has']('ListEditing'))return;const _0x1ed6c2=_0x43bfba['locale'],_0xc232a5=_0x43bfba['plugins']['get']('TrackChangesEditing'),_0x37fa05=_0x43bfba['plugins']['has']('TodoListEditing'),_0x261c31=!!_0x43bfba['config']['get']('list.multiBlock');function _0x4d9a1a(_0xc63131){return{'type':'format','content':''+c(_0x1ed6c2,'*Set\x20format:*\x20%0',_0xc63131)};}function _0x2fc1a6(_0x56aaa3){return{'type':'format','content':''+c(_0x1ed6c2,'*Remove\x20format:*\x20%0',_0x56aaa3)};}_0xc232a5['enableDefaultAttributesIntegration']('numberedList'),_0xc232a5['enableDefaultAttributesIntegration']('bulletedList'),_0xc232a5['enableDefaultAttributesIntegration']('customNumberedList'),_0xc232a5['enableDefaultAttributesIntegration']('customBulletedList'),_0xc232a5['enableDefaultAttributesIntegration']('indentList'),_0xc232a5['enableDefaultAttributesIntegration']('outdentList'),_0xc232a5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xc232a5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xc232a5['registerBlockAttribute']('listItemId'),_0xc232a5['registerBlockAttribute']('listType'),_0xc232a5['registerBlockAttribute']('listIndent'),_0x261c31&&(_0xc232a5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xc232a5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x37fa05&&(_0xc232a5['enableDefaultAttributesIntegration']('todoList'),_0xc232a5['enableDefaultAttributesIntegration']('checkTodoList'),_0xc232a5['registerBlockAttribute']('todoListChecked'),_0xc232a5['descriptionFactory']['registerDescriptionCallback'](_0x5444c5=>{const {data:_0x464916}=_0x5444c5;if(_0x464916&&'todoListChecked'==_0x464916['key'])return{'type':'format','content':_0x464916['newValue']?c(_0x1ed6c2,'*Check\x20item*'):c(_0x1ed6c2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2e6fd9=>{if(_0x2e6fd9['batch']['isUndo'])return!0x1;let _0x54fb82=!0x1;const _0x4ff555=_0xc232a5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb1e36b=>'todoListChecked'===_0xc232a5['_getAttributeKey'](_0xb1e36b));for(const _0x11e0ca of _0x4ff555){'todo'!=_0x11e0ca['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xc232a5['_findSuggestions'](_0x11e0ca['getFirstRange'](),'attribute')['find'](_0x50fc23=>'listType'===_0xc232a5['_getAttributeKey'](_0x50fc23['suggestion']))||(_0x2e6fd9['removeMarker'](_0x11e0ca['getFirstMarker']()),_0x54fb82=!0x0));}return _0x54fb82;})),_0xc232a5['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x1ed6c2,'FORMAT_INDENT'));const _0x5c05e9={'type':'format','content':''};_0xc232a5['descriptionFactory']['registerDescriptionCallback'](_0x56e255=>{const {data:_0x3b8ff1}=_0x56e255;if(!_0x3b8ff1||'listType'!=_0x3b8ff1['key'])return;let _0x32bffb=_0x56e255['head'];for(;_0x32bffb;){if(_0x32bffb['data']&&(('listStyle'==_0x32bffb['data']['key']||'listMarkerStyle'==_0x32bffb['data']['key'])&&(_0x32bffb['data']['newValue']&&'default'!=_0x32bffb['data']['newValue']||'default'!=_0x32bffb['data']['oldValue']&&!_0x3b8ff1['newValue'])||!_0x261c31&&_0x32bffb['data']['key']==u))return _0x5c05e9;_0x32bffb=_0x32bffb['next'];}if(null==_0x3b8ff1['newValue'])switch(_0x3b8ff1['oldValue']){case'bulleted':return _0x2fc1a6(c(_0x1ed6c2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2fc1a6(c(_0x1ed6c2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2fc1a6(c(_0x1ed6c2,'ELEMENT_TODO_LIST'));}switch(_0x3b8ff1['newValue']){case'bulleted':return _0x4d9a1a(c(_0x1ed6c2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4d9a1a(c(_0x1ed6c2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4d9a1a(c(_0x1ed6c2,'ELEMENT_TODO_LIST'));}}),_0xc232a5['descriptionFactory']['registerDescriptionCallback'](_0x236d86=>{const {data:_0x251302}=_0x236d86;if(_0x251302&&'listIndent'==_0x251302['key'])return null==_0x251302['newValue']||null==_0x251302['oldValue']&&0x0==_0x251302['newValue']?_0x5c05e9:void 0x0;}),_0xc232a5['descriptionFactory']['registerDescriptionCallback'](_0x234b98=>{if('attribute'!=_0x234b98['type'])return;const {data:_0xdbb504}=_0x234b98;if(!_0xdbb504||'listItemId'!=_0xdbb504['key'])return;const _0x2de62e=Te(_0x234b98);return'newValue'==_0x2de62e?{'type':'format','content':c(_0x1ed6c2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2de62e?{'type':'format','content':c(_0x1ed6c2,'*Split:*\x20list\x20item')}:_0x5c05e9;}),_0x43bfba['model']['document']['registerPostFixer'](_0xe2d6fd=>this['listItemIdFixer'](_0xe2d6fd)),_0x43bfba['model']['document']['registerPostFixer'](_0x1a485f=>this['noTrackChangesFixer'](_0x1a485f)),_0x43bfba['model']['document']['on']('change:data',(_0x5aa199,_0x593584)=>{if(_0x593584['isUndo']||!_0x593584['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2fab1f){if(_0x2fab1f['batch']['isUndo']||!_0x2fab1f['batch']['isLocal'])return!0x1;let _0x364449=!0x1;const _0x36ac5e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10a2eb=>_0x10a2eb['data']&&'listItemId'==_0x10a2eb['data']['key'])['filter'](_0x4534dd=>_0x4534dd['data']['newValue']&&_0x4534dd['data']['oldValue']);for(const _0x2cc4f8 of _0x36ac5e)Te(_0x2cc4f8)||(_0x2fab1f['removeMarker'](_0x2cc4f8['getFirstMarker']()),_0x364449=!0x0);return _0x364449;}['noTrackChangesFixer'](_0x3db1d2){if(_0x3db1d2['batch']['isUndo']||!_0x3db1d2['batch']['isLocal'])return!0x1;const _0x479d43=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x479d43['trackChangesCommand']['value'])return!0x1;let _0x4a21db=!0x1;const _0x53da2c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x138616=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3880a3=>'attribute'==_0x3880a3['type'])['filter'](_0x298133=>_0x53da2c['includes'](_0x298133['attributeKey']));if(0x0==_0x138616['length'])return _0x4a21db;for(const _0x3cedc3 of _0x138616){const _0x3a598d=_0x479d43['_findSuggestions'](_0x3cedc3['range'],'attribute')['filter'](_0x50e577=>!_0x50e577['meta']['isNextTo'])['map'](_0x429f61=>_0x429f61['suggestion'])['filter'](_0xe77ade=>{const _0x1f4219=_0x479d43['_getAttributeKey'](_0xe77ade);return _0x53da2c['includes'](_0x1f4219);});if(_0x3a598d['length']){for(const _0x17e23c of _0x3a598d)_0x3db1d2['removeMarker'](_0x17e23c['getFirstMarker']());_0x4a21db=!0x0;}}return _0x4a21db;}['assureChains'](){const _0x21b7e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46625e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x244a8d;const _0x26f5f9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x375e2b=>{if(_0x375e2b['data']['oldRange']||!_0x375e2b['data']['newRange'])return null;if(!_0x375e2b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2f07ed}=_0x21b7e7['_splitMarkerName'](_0x375e2b['name']);if(!_0x21b7e7['hasSuggestion'](_0x2f07ed))return null;const _0x945122=_0x21b7e7['getSuggestion'](_0x2f07ed);return _0x46625e['includes'](_0x945122['data']['key']);})['map'](_0x55164f=>{const {id:_0x3c3628}=_0x21b7e7['_splitMarkerName'](_0x55164f['name']),_0x1d7e94=_0x21b7e7['getSuggestion'](_0x3c3628);return _0x244a8d=_0x1d7e94['attributes']['groupId'],_0x1d7e94['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x26f5f9['size'])return;const _0x473669=_0x21b7e7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4df0a2=>'attribute'==_0x4df0a2['type']&&_0x4df0a2['data']&&_0x46625e['includes'](_0x4df0a2['data']['key'])&&_0x4df0a2['attributes']['groupId']!=_0x244a8d)['map'](_0xd9440c=>({'listItem':_0xd9440c['getFirstRange']()['start']['nodeAfter'],'groupId':_0xd9440c['attributes']['groupId']})),_0x3bafe6=new Set();for(const {groupId:_0x170860,listItem:_0x5912e}of _0x473669)_0x26f5f9['has'](_0x5912e)&&_0x3bafe6['add'](_0x170860);for(const _0x230e76 of _0x21b7e7['getSuggestions']())_0x3bafe6['has'](_0x230e76['attributes']['groupId'])&&_0x230e76['setAttribute']('groupId',_0x244a8d);}['_supportLegacySuggestions'](){const _0x16ee0a=this['editor'],_0x34afca=_0x16ee0a['locale'],_0x2064b4=_0x16ee0a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2064b4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1ab8b9,_0x136ec2){const _0xb7a91d=[];for(let _0x33d1bb of _0x1ab8b9)_0x33d1bb['start']['nodeAfter']===_0x33d1bb['end']['parent']&&(_0x33d1bb=_0x16ee0a['model']['createRange'](_0x16ee0a['model']['createPositionAt'](_0x33d1bb['start']['nodeAfter'],0x0))),_0xb7a91d['push'](_0x33d1bb);_0x16ee0a['model']['change'](_0x1016b9=>{const _0x52414a=_0x16ee0a['model']['document']['selection'],_0x28130d=Array['from'](_0x52414a['getRanges']())['map'](_0x816921=>_0xf8fd8e['fromRange'](_0x816921));_0x1016b9['setSelection'](_0xb7a91d),_0x16ee0a['commands']['get'](_0x136ec2['commandName'])['refresh'](),_0x136ec2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x16ee0a['execute'](_0x136ec2['commandName'],..._0x136ec2['commandParams']),_0x1016b9['setSelection'](_0x28130d);for(const _0xdefa3e of _0x28130d)_0xdefa3e['detach']();});}),_0x2064b4['descriptionFactory']['registerElementLabel'](function(_0x174fb1){const _0x310e9c=!_0x16ee0a['model']['schema']['isObject'](_0x174fb1),_0x2a7e19=_0x174fb1['previousSibling'],_0x32b2be=_0x174fb1['nextSibling'],_0x229cdb=_0x174fb1['getAttribute']('listItemId'),_0x5848ea=!_0x2a7e19||_0x2a7e19['getAttribute']('listItemId')!==_0x229cdb,_0x49a6f0=!_0x32b2be||_0x32b2be['getAttribute']('listItemId')!==_0x229cdb;return _0x310e9c&&Boolean(_0x229cdb)&&_0x5848ea&&_0x49a6f0;},_0x121139=>c(_0x34afca,'ELEMENT_LIST_ITEM',_0x121139));}['_registerLegacyDescription'](){const _0x1b71ed=this['editor'],_0x2a11c6=_0x1b71ed['locale'];function _0x5d5d62(_0x171bde){const _0x4e3525=_0x1b71ed['commands']['get']('bulletedList')['value'],_0x354134=_0x1b71ed['commands']['get']('numberedList')['value'];return'numberedList'===_0x171bde?_0x4e3525:_0x354134;}_0x1b71ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xb357b7){if('formatBlock'!=_0xb357b7['type'])return;const {data:_0xb260a0}=_0xb357b7;if(!_0xb260a0)return;let _0x363720,_0x9343be,_0x3015c3,_0x3beff9;switch(_0xb260a0['commandName']){case'bulletedList':_0x3015c3=_0xb260a0['commandParams'][0x0]['forceValue'],_0x3beff9=_0x5d5d62(_0xb260a0['commandName']),_0x363720=_0x3015c3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3beff9&&_0x1b71ed['config']['get']('list.multiBlock')||(_0x363720='*Change\x20to:*\x20%0'),_0x9343be={'type':'format','content':c(_0x2a11c6,_0x363720,c(_0x2a11c6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3015c3=_0xb260a0['commandParams'][0x0]['forceValue'],_0x3beff9=_0x5d5d62(_0xb260a0['commandName']),_0x363720=_0x3015c3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3beff9&&_0x1b71ed['config']['get']('list.multiBlock')||(_0x363720='*Change\x20to:*\x20%0'),_0x9343be={'type':'format','content':c(_0x2a11c6,_0x363720,c(_0x2a11c6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x363720='*Indent:*\x20%0',_0x9343be={'type':'format','content':c(_0x2a11c6,_0x363720,c(_0x2a11c6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x363720=function(_0xdf7071){const _0x50f5c3=_0xdf7071['getFirstRange']();let _0xda355b=_0x50f5c3['start']['nodeAfter'];for(;_0xda355b&&_0x50f5c3['containsItem'](_0xda355b);){if(_0xda355b['getAttribute']('listIndent')>0x0)return!0x1;_0xda355b=_0xda355b['nextSibling'];}return!0x0;}(_0xb357b7)?c(_0x2a11c6,'*Format:*\x20remove\x20from\x20%0',c(_0x2a11c6,function(_0x46080a){return'ELEMENT_'+_0x46080a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xb357b7))):c(_0x2a11c6,'*Outdent:*\x20%0',c(_0x2a11c6,'ELEMENT_LIST_ITEM')),_0x9343be={'type':'format','content':_0x363720};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xb260a0['multipleBlocks']&&(_0x363720='*Merge:*\x20%0',_0x9343be={'type':'deletion','content':c(_0x2a11c6,_0x363720,c(_0x2a11c6,'ELEMENT_LIST_ITEM'))});}return _0x9343be;});}}function Te(_0x163924){let _0x348882=_0x163924['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x348882;){const _0x2d4fae=_0x348882['getAttribute']('listItemId');if(!_0x2d4fae)return!0x1;if(_0x2d4fae==_0x163924['data']['newValue'])return'newValue';if(_0x2d4fae==_0x163924['data']['oldValue'])return'oldValue';_0x348882=_0x348882['previousSibling'];}return!0x1;}class Se extends _0x121524{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x346afe=this['editor']['config']['get']('list.properties'),_0x215299=this['editor']['plugins']['get']('TrackChangesEditing');_0x346afe['styles']&&(_0x215299['enableDefaultAttributesIntegration']('listStyle'),_0x215299['registerBlockAttribute']('listStyle')),_0x346afe['reversed']&&(_0x215299['enableDefaultAttributesIntegration']('listReversed'),_0x215299['registerBlockAttribute']('listReversed')),_0x346afe['startIndex']&&(_0x215299['enableDefaultAttributesIntegration']('listStart'),_0x215299['registerBlockAttribute']('listStart'));const _0x4f31e4={'type':'format','content':''};_0x215299['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x147bf8=this['editor']['locale'];_0x215299['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x147bf8,'FORMAT_LIST_REVERSED')),_0x215299['descriptionFactory']['registerDescriptionCallback'](_0x561367=>{const {data:_0x666052}=_0x561367;if(_0x666052&&'listReversed'==_0x666052['key'])return null==_0x666052['newValue']||0x0==_0x666052['newValue']&&null==_0x666052['oldValue']?_0x4f31e4:void 0x0;}),_0x215299['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x147bf8,'FORMAT_LIST_START')),_0x215299['descriptionFactory']['registerDescriptionCallback'](_0x320907=>{const {data:_0xc3c1f}=_0x320907;if(_0xc3c1f&&'listStart'==_0xc3c1f['key'])return null==_0xc3c1f['newValue']||0x1==_0xc3c1f['newValue']&&null==_0xc3c1f['oldValue']?_0x4f31e4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x38c0b0=>{if(_0x38c0b0['batch']['isUndo'])return!0x1;let _0x2730be=!0x1;const _0x174545=_0x215299['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c3540=>{const _0x545d0a=_0x215299['_getAttributeKey'](_0x3c3540);return'listStart'==_0x545d0a||'listReversed'==_0x545d0a;});for(const _0x458a70 of _0x174545){const _0x37adf3=_0x458a70['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x37adf3||'customNumbered'==_0x37adf3)continue;_0x215299['_findSuggestions'](_0x458a70['getFirstRange'](),'attribute')['find'](_0x38ff16=>'listType'==_0x215299['_getAttributeKey'](_0x38ff16['suggestion']))||(_0x38c0b0['removeMarker'](_0x458a70['getFirstMarker']()),_0x2730be=!0x0);}return _0x2730be;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x51c5d8){const _0x28e499=this['editor']['locale'],{data:_0x402abf}=_0x51c5d8,_0x28b9e8={'type':'format','content':''};if(!_0x402abf||'listStyle'!=_0x402abf['key'])return;if(!_0x402abf['oldValue'])return'default'==_0x402abf['newValue']?_0x28b9e8:{'type':'format','content':''+c(_0x28e499,'*Set\x20format:*\x20%0',c(_0x28e499,this['_getTranslationKeyForListStyle'](_0x402abf['newValue'])))};if(!_0x402abf['newValue']){if('default'==_0x402abf['oldValue'])return _0x28b9e8;let _0x237644=_0x51c5d8['head'];for(;_0x237644;){if(_0x237644['data']&&'listType'==_0x237644['data']['key']&&_0x237644['data']['newValue'])return _0x28b9e8;_0x237644=_0x237644['next'];}return{'type':'format','content':''+c(_0x28e499,'*Remove\x20format:*\x20%0',c(_0x28e499,this['_getTranslationKeyForListStyle'](_0x402abf['oldValue'])))};}if('default'!=_0x402abf['newValue'])return{'type':'format','content':''+c(_0x28e499,'*Set\x20format:*\x20%0',c(_0x28e499,this['_getTranslationKeyForListStyle'](_0x402abf['newValue'])))};let _0x4834dc=_0x51c5d8['head'];for(;_0x4834dc;){if(_0x4834dc['data']&&'listType'==_0x4834dc['data']['key']&&_0x4834dc['data']['newValue']&&_0x4834dc['data']['oldValue'])return _0x28b9e8;_0x4834dc=_0x4834dc['next'];}return{'type':'format','content':c(_0x28e499,'*Set\x20format:*\x20%0',c(_0x28e499,'ELEMENT_'+_0x51c5d8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3235be=this['editor'],_0x52ccfa=_0x3235be['locale'];_0x3235be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b5613=>{if('formatBlock'!=_0x4b5613['type'])return;const {data:_0x2581ed}=_0x4b5613;if(!_0x2581ed)return;let _0x4ac64c,_0x54d71b;switch(_0x2581ed['commandName']){case'listStyle':_0x4ac64c='*Change\x20to:*\x20%0',_0x54d71b={'type':'format','content':c(_0x52ccfa,_0x4ac64c,c(_0x52ccfa,this['_getTranslationKeyForListStyle'](_0x2581ed['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4ac64c=_0x2581ed['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x54d71b={'type':'format','content':c(_0x52ccfa,_0x4ac64c)};break;case'listStart':_0x4ac64c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x54d71b={'type':'format','content':c(_0x52ccfa,_0x4ac64c,_0x2581ed['commandParams'][0x0]['startIndex'])};}return _0x54d71b;});}['_getTranslationKeyForListStyle'](_0x177154){return'ELEMENT_'+function(_0x2967c5){if(_e['includes'](_0x2967c5))return'bulleted';if(Re['includes'](_0x2967c5))return'numbered';return null;}(_0x177154)['toUpperCase']()+'_LIST_'+_0x177154['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x121524{['afterInit'](){const _0x3479a5=this['editor'];_0x3479a5['commands']['get']('emoji')&&_0x3479a5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x121524{static get['requires'](){return[_0x36173d];}['init'](){const _0x9ac5c6=this['editor'],_0x1943b2=_0x9ac5c6['plugins']['get']('TrackChangesEditing'),_0x8ac9c5=_0x9ac5c6['commands']['get']('enter');_0x1943b2['enableCommand']('enter',()=>{_0x9ac5c6['model']['change'](_0x443387=>{const _0x5d9d89=_0x9ac5c6['model']['document']['selection'],_0x9a660d=_0x5d9d89['getFirstPosition'](),_0x367086=_0xf8fd8e['fromRange'](_0x5d9d89['getFirstRange']());if(_0x8ac9c5['enterBlock'](_0x443387)){const _0x182721=_0x9ac5c6['model']['createPositionAt'](_0x9a660d['parent']['nextSibling'],0x0),_0x1bb347=_0x443387['createRange'](_0x9a660d,_0x182721);_0x1943b2['markInsertion'](_0x1bb347);}else _0x443387['setSelection'](_0x443387['createRange'](_0x367086['end']));_0x367086['detach'](),_0x8ac9c5['fire']('afterExecute',{'writer':_0x443387});});}),_0x9ac5c6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x9ac5c6,'split'),{'priority':'high'}),_0x9ac5c6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1c870e,_0x321255,_0x880d13)=>{const _0x346793=_0x880d13['mapper']['markerNameToElements'](_0x321255['markerName']);if(_0x346793){for(const _0x53576c of _0x346793)_0x53576c['hasClass']('ck-suggestion-marker-split')&&(_0x880d13['mapper']['unbindElementFromMarkerName'](_0x53576c,_0x321255['markerName']),_0x880d13['writer']['remove'](_0x53576c));}},{'priority':'high'}),_0x9ac5c6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41e1f6,_0x3ac3c6,_0x15042c)=>{_0x15042c['options']['showSuggestionHighlights']&&Fe(_0x9ac5c6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x41e1f6,_0x3ac3c6,_0x15042c);},{'priority':'high'});}}class Z extends _0x121524{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5d369a=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d369a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5d369a['enableCommand']('findNext'),_0x5d369a['enableCommand']('findPrevious'),_0x5d369a['enableCommand']('replace'),_0x5d369a['enableCommand']('replaceAll');}['handleFindCommand'](_0x3135a8,_0x569241,_0x42eb19={}){const _0x562995=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3135a8(_0x5e0396=>{let _0x44d7c8=('string'==typeof _0x569241?_0x562995['findByTextCallback'](_0x569241,_0x42eb19):_0x569241)(_0x5e0396);Array['isArray'](_0x44d7c8)&&(_0x44d7c8={'results':_0x44d7c8,'searchText':'string'==typeof _0x569241?_0x569241:''});const _0x2102d4=_0x44d7c8['results']['filter'](_0x201040=>!0x1===this['_isInDeletionRange'](_0x201040,_0x5e0396['item']));return{..._0x44d7c8,'results':_0x2102d4};},_0x42eb19);}['_isInDeletionRange'](_0x2feab5,_0x440a1d){const _0x5be315=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x440a1d,_0x2feab5['start']),this['editor']['model']['createPositionAt'](_0x440a1d,_0x2feab5['end']));for(const _0x53b688 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5be315['getIntersection'](_0x53b688['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x121524{['afterInit'](){const _0x51a685=this['editor']['locale'],_0x66510a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3a22e1,commandName:_0x16b140}of ro)this['editor']['plugins']['has'](_0x3a22e1)&&(_0x66510a['enableDefaultAttributesIntegration'](_0x16b140),_0x66510a['registerInlineAttribute'](_0x16b140));_0x66510a['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x51a685,'FORMAT_FONT_SIZE')),_0x66510a['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x51a685,'FORMAT_FONT_FAMILY')),_0x66510a['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x51a685,'FORMAT_FONT_COLOR')),_0x66510a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x51a685,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f4972=this['editor'],_0x65150=_0x1f4972['locale'];_0x1f4972['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b001d=>{const _0x2df1ac=_0x65150['t'];if('formatInline'!=_0x1b001d['type'])return;const {data:_0x459b25}=_0x1b001d;if(null!=_0x459b25){if('fontSize'==_0x459b25['commandName']){const _0x35023f=_0x459b25['commandParams'][0x0]['value'];if(_0x35023f){const _0x1b2ddf=_0x2df1ac(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x354840=>_0x354840['model']==_0x35023f)['title'])['toLowerCase']();return{'type':'format','content':c(_0x65150,'*Set\x20font\x20size:*\x20%0',_0x1b2ddf)};}return{'type':'format','content':c(_0x65150,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x459b25['commandName']){const _0x26bf35=_0x459b25['commandParams'][0x0]['value'];return _0x26bf35?{'type':'format','content':c(_0x65150,'*Set\x20font\x20family:*\x20%0',_0x26bf35)}:{'type':'format','content':c(_0x65150,'*Reset\x20font\x20family*')};}if('fontColor'==_0x459b25['commandName']){const _0xbdf5cb=_0x459b25['commandParams'][0x0]['value'];if(_0xbdf5cb){const _0x440e57=_0x883619(this['editor']['config']['get']('fontColor.colors'))['find'](_0x25bec7=>_0x25bec7['model']==_0xbdf5cb);let _0x5cd28f=_0xbdf5cb,_0xe3d17b='';return _0x440e57&&(_0x5cd28f=_0x440e57['label'],_0xe3d17b=_0x2df1ac(_0x5cd28f)['toLowerCase']()),{'type':'format','content':c(_0x65150,'*Set\x20font\x20color:*\x20%0',_0xe3d17b)['trim'](),'color':{'value':_0xbdf5cb,'title':_0xe3d17b||_0x5cd28f}};}return{'type':'format','content':c(_0x65150,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x459b25['commandName']){const _0x38cfab=_0x459b25['commandParams'][0x0]['value'];if(_0x38cfab){const _0x3b05b8=_0x883619(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2172f9=>_0x2172f9['model']==_0x38cfab);let _0x32d94c=_0x38cfab,_0x20fc2a='';return _0x3b05b8&&(_0x32d94c=_0x3b05b8['label'],_0x20fc2a=_0x2df1ac(_0x32d94c)['toLowerCase']()),{'type':'format','content':c(_0x65150,'*Set\x20font\x20background\x20color:*\x20%0',_0x20fc2a)['trim'](),'color':{'value':_0x38cfab,'title':_0x20fc2a||_0x32d94c}};}return{'type':'format','content':c(_0x65150,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x121524{['afterInit'](){const _0x1832c3=this['editor'],_0x41437d=_0x1832c3['plugins']['get']('TrackChangesEditing'),_0x5b2d3f=_0x1832c3['commands']['get']('copyFormat'),_0xf95f03=_0x1832c3['commands']['get']('pasteFormat');_0x5b2d3f&&_0xf95f03&&(_0x41437d['enableDefaultAttributesIntegration']('pasteFormat'),_0x41437d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x287a80=this['editor'],_0x4a976e=_0x287a80['locale'];_0x287a80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1748c3=>{if('formatBlock'!=_0x1748c3['type']&&'formatInline'!=_0x1748c3['type'])return;const {data:_0x1f308c}=_0x1748c3;if(_0x1f308c&&'pasteFormat'===_0x1f308c['commandName']){const _0x3194b2=[],_0x1234e4=_0x1f308c['commandParams'][0x0];for(const [_0x471a5f,_0x499995]of Object['entries'](_0x1234e4))_0x3194b2['push'](so(_0x287a80,_0x471a5f,_0x499995));return _0x3194b2['length']?{'type':'format','content':c(_0x4a976e,'*Set\x20format\x20to:*\x20%0',_0x3194b2['join'](',\x20'))}:{'type':'format','content':c(_0x4a976e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x43545f,_0x450026,_0x565dab){const _0x51df00=_0x43545f['locale']['t'],_0x4c12b2=_0x450026['split'](/(?=[A-Z])/)['join']('\x20'),_0x2d7656=_0x51df00(_0x4c12b2['charAt'](0x0)['toUpperCase']()+_0x4c12b2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x565dab)return _0x2d7656;if('fontColor'===_0x450026||'fontBackgroundColor'===_0x450026){const _0x200fe6=_0x883619(_0x43545f['config']['get']('fontColor.colors'))['find'](_0x1c3964=>_0x1c3964['model']==_0x565dab);return _0x2d7656+'\x20('+(_0x200fe6?_0x51df00(_0x200fe6['label'])['toLowerCase']():_0x565dab)+')';}if('fontSize'===_0x450026&&isNaN(parseFloat(_0x565dab))){const _0x11f2c3=_0x43545f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x43545f['config']['get']('fontSize.options'))['find'](_0x34e565=>_0x34e565['model']==_0x565dab);return _0x2d7656+'\x20('+(_0x11f2c3?_0x51df00(_0x11f2c3['title'])['toLowerCase']():_0x565dab)+')';}return _0x2d7656+'\x20('+_0x565dab+')';}class et extends _0x121524{['_headingOptions'];['afterInit'](){const _0x428e42=this['editor'];if(!_0x428e42['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x428e42['config']['get']('heading.options');const _0x3b65c7=_0x428e42['locale'],_0x1ede17=_0x428e42['plugins']['get']('TrackChangesEditing');_0x1ede17['enableDefaultAttributesIntegration']('heading');for(const _0x2eb3fa of this['_headingOptions'])'paragraph'!=_0x2eb3fa['model']&&_0x1ede17['descriptionFactory']['registerElementLabel'](_0x2eb3fa['model'],_0x319fea=>{const _0x228d12=this['_getHeadingLevel'](_0x2eb3fa['model']);return null!==_0x228d12?_0x27600a(_0x319fea,_0x228d12):_0x5c2785(_0x319fea,_0x2eb3fa['title']);});function _0x27600a(_0x5321d0,_0x51951d){return c(_0x3b65c7,'ELEMENT_HEADING',[_0x5321d0,_0x51951d]);}function _0x5c2785(_0x20bf62,_0x41b981){return c(_0x3b65c7,'ELEMENT_HEADING_CUSTOM',[_0x20bf62,_0x41b981]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xaa5b2a=this['editor'],_0x2d636d=_0xaa5b2a['locale'];function _0x33f45f(_0x124ae0,_0x2d2767){return c(_0x2d636d,'ELEMENT_HEADING_CUSTOM',[_0x124ae0,_0x2d2767]);}_0xaa5b2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a2983=>{if('formatBlock'!=_0x1a2983['type'])return;const {data:_0x53edbe}=_0x1a2983;if(_0x53edbe&&'heading'==_0x53edbe['commandName']){const _0x5cfb03=_0x53edbe['commandParams'][0x0]['value'],_0x4154b2=this['_getHeadingLevel'](_0x5cfb03);if(null!==_0x4154b2)return{'type':'format','content':c(_0x2d636d,'*Change\x20to:*\x20%0',(_0x876765=0x1,_0x4e5d3a=_0x4154b2,c(_0x2d636d,'ELEMENT_HEADING',[_0x876765,_0x4e5d3a])))};const _0x12e9e3=this['_headingOptions']['find'](_0x3559e2=>_0x3559e2['model']===_0x5cfb03)['title'];return{'type':'format','content':c(_0x2d636d,'*Change\x20to:*\x20%0',_0x33f45f(0x1,_0x12e9e3))};}var _0x876765,_0x4e5d3a;});}['_getHeadingLevel'](_0x56cbe){const _0x548881=_0x56cbe['match'](/^heading(\d+)/);if(_0x548881)return _0x548881[0x1];const _0x52e59d=this['_headingOptions']?.['find'](_0x5093f1=>_0x5093f1['model']==_0x56cbe);if(_0x52e59d&&_0x52e59d['view']){const _0x52ca45=_0x52e59d['view'],_0x2630dd=(_0x52ca45['name']??_0x52ca45)['match'](/^h(\d+)/);if(_0x2630dd)return _0x2630dd[0x1];}return null;}}class nt extends _0x121524{['afterInit'](){const _0x1d53e2=this['editor'];if(!_0x1d53e2['plugins']['has']('HighlightEditing'))return;const _0x47df29=_0x1d53e2['plugins']['get']('TrackChangesEditing'),_0x425144=_0x1d53e2['locale'];_0x47df29['enableDefaultAttributesIntegration']('highlight'),_0x47df29['registerInlineAttribute']('highlight'),_0x47df29['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x425144,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34f2e8=this['editor'],_0x4ddab7=_0x34f2e8['locale'];_0x34f2e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3520db=>{if('formatInline'!=_0x3520db['type'])return;const {data:_0x13e653}=_0x3520db;if(_0x13e653&&'highlight'==_0x13e653['commandName']){const _0xa803a4=_0x4ddab7['t'],_0x188792=_0x13e653['commandParams'][0x0]['value'];if(_0x188792){const _0x4928a2=_0x34f2e8['config']['get']('highlight.options')['find'](_0x436a3e=>_0x436a3e['model']==_0x188792),_0x57db97=_0xa803a4(_0x4928a2['title'])['toLowerCase']();return{'type':'format','content':c(_0x4ddab7,'*Set\x20highlight:*\x20%0',_0x57db97),'color':{'value':_0x4928a2['color'],'title':_0x4928a2['title']}};}return{'type':'format','content':c(_0x4ddab7,'*Remove\x20highlight*',c(_0x4ddab7,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x121524{['afterInit'](){const _0x2889f7=this['editor'];if(!_0x2889f7['plugins']['has']('HorizontalLineEditing'))return;_0x2889f7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2e9944=_0x2889f7['plugins']['get']('TrackChangesEditing'),_0x55dea2=_0x2889f7['locale'];_0x2e9944['descriptionFactory']['registerElementLabel']('horizontalLine',_0xbdab54=>c(_0x55dea2,'ELEMENT_HORIZONTAL_LINE',_0xbdab54)),_0x2889f7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5e3690,{writer:_0x2c28d1,options:_0x13228c})=>{if(!_0x13228c['showSuggestionHighlights'])return null;const _0x49d269=_0x2c28d1['createContainerElement']('div'),_0x63453e=_0x2c28d1['createEmptyElement']('hr');return _0x2c28d1['addClass']('ck-horizontal-line',_0x49d269),_0x2c28d1['insert'](_0x2c28d1['createPositionAt'](_0x49d269,0x0),_0x63453e),_0x49d269;},'converterPriority':'high'});}}class ot extends _0x121524{['afterInit'](){const _0x1f709d=this['editor'];if(!_0x1f709d['plugins']['has']('HtmlEmbed'))return;const _0x2b2db2=_0x1f709d['plugins']['get']('TrackChangesEditing'),_0x5d42d4=_0x1f709d['locale'];_0x2b2db2['descriptionFactory']['registerElementLabel']('rawHtml',_0x29b96a=>c(_0x5d42d4,'ELEMENT_HTML_EMBED',_0x29b96a)),_0x2b2db2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2b2db2['registerBlockAttribute']('value'),_0x2b2db2['descriptionFactory']['registerDescriptionCallback'](_0x458351=>{if('attribute'!=_0x458351['type'])return;const {data:_0x5847d8}=_0x458351;if(_0x5847d8&&'value'==_0x5847d8['key']&&_0x458351['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5268b9=c(_0x5d42d4,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5d42d4,'*Change\x20%0\x20content*',_0x5268b9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4782ab=this['editor'],_0x82bfd2=_0x4782ab['locale'];_0x4782ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34d8a0=>{if('formatBlock'!=_0x34d8a0['type'])return;const {data:_0x3de7f0}=_0x34d8a0;if(_0x3de7f0&&'htmlEmbed'==_0x3de7f0['commandName']){const _0x376223=c(_0x82bfd2,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x82bfd2,'*Change\x20%0\x20content*',_0x376223)};}});}}class rt extends _0x121524{['afterInit'](){const _0x32ee95=this['editor'];if(!_0x32ee95['plugins']['has']('ImageEditing'))return;const _0x275404=_0x32ee95['plugins']['get']('TrackChangesEditing'),_0x37bed3=_0x32ee95['plugins']['get']('ImageUtils'),_0x286718=_0x32ee95['locale'];_0x275404['enableCommand']('insertImage'),_0x275404['descriptionFactory']['registerElementLabel']('imageBlock',_0xc3b90d=>c(_0x286718,'ELEMENT_IMAGE',_0xc3b90d)),_0x275404['descriptionFactory']['registerElementLabel']('imageInline',_0x3e69fa=>c(_0x286718,'ELEMENT_INLINE_IMAGE',_0x3e69fa)),_0x275404['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x286718,'ELEMENT_CAPTION')),_0x32ee95['plugins']['has']('ImageUploadEditing')&&_0x275404['enableCommand']('uploadImage'),_0x32ee95['plugins']['has']('ImageBlockEditing')&&_0x32ee95['plugins']['has']('ImageInlineEditing')&&(_0x275404['enableCommand']('imageTypeInline',(_0x208b45,_0xb9b5a1)=>{const _0x3076cb=_0x37bed3['getClosestSelectedImageElement'](_0x32ee95['model']['document']['selection']);_0x32ee95['model']['change'](()=>{_0x275404['markBlockFormat'](_0x3076cb,{'commandName':'imageTypeInline','commandParams':[_0xb9b5a1]},[],'convertBlockImageToInline');});}),_0x275404['enableCommand']('imageTypeBlock',(_0x167f5d,_0x2ed6e7)=>{_0x32ee95['model']['change'](_0x3beceb=>{let _0x16d3ed=_0x37bed3['getClosestSelectedImageElement'](_0x32ee95['model']['document']['selection']),_0x32ba7a=_0x3beceb['createRangeOn'](_0x16d3ed);const _0x322a5d=_0x398546['fromPosition'](_0x32ba7a['start'],'toPrevious'),_0x29eb36=_0x398546['fromPosition'](_0x32ba7a['end'],'toNext');_0x275404['forceDefaultExecution'](()=>_0x167f5d(_0x2ed6e7)),_0x16d3ed=_0x37bed3['getClosestSelectedImageElement'](_0x32ee95['model']['document']['selection']),_0x32ba7a=_0x3beceb['createRangeOn'](_0x16d3ed);const _0x1e9a15=_0x3beceb['createRange'](_0x322a5d,_0x29eb36);_0x322a5d['detach'](),_0x29eb36['detach'](),_0x275404['markBlockFormat'](_0x16d3ed,{'commandName':'imageTypeInline','commandParams':[_0x2ed6e7]},[],'convertInlineImageToBlock'),_0x1e9a15['start']['isBefore'](_0x32ba7a['start'])&&_0x275404['markInsertion'](_0x3beceb['createRange'](_0x1e9a15['start'],_0x32ba7a['start']),'convertInlineImageToBlock'),_0x32ba7a['end']['isBefore'](_0x1e9a15['end'])&&_0x275404['markInsertion'](_0x3beceb['createRange'](_0x32ba7a['end'],_0x1e9a15['end']),'convertInlineImageToBlock');});}),_0x275404['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x275404['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x275404['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x275404['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x275404['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x275404['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x207016])=>{const _0x10d864=_0x275404['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x55fa4c=_0x207016['start'],_0x27a895=_0x207016['end'];const _0x30f1e2=_0x32ee95['model']['schema']['getNearestSelectionRange'](_0x55fa4c,'backward'),_0x47344e=_0x32ee95['model']['schema']['getNearestSelectionRange'](_0x27a895,'forward');_0x30f1e2['isCollapsed']&&(_0x55fa4c=_0x30f1e2['start']),_0x47344e['isCollapsed']&&(_0x27a895=_0x47344e['end']),_0x10d864([_0x32ee95['model']['createRange'](_0x55fa4c,_0x27a895)]);}),_0x275404['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1011b3),_0x275404['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1011b3)),_0x32ee95['plugins']['has']('ImageCaptionEditing')&&(_0x275404['enableCommand']('toggleImageCaption',(_0x34b0c9,_0x14eb53)=>{const _0x9ef5d9=_0x32ee95['plugins']['get']('ImageCaptionUtils');let _0x5ce11c=_0x37bed3['getClosestSelectedImageElement'](_0x32ee95['model']['document']['selection']),_0x348234=_0x9ef5d9['getCaptionFromImageModelElement'](_0x5ce11c);_0x32ee95['model']['change'](()=>{if(_0x348234)return void _0x275404['markDeletion'](_0x32ee95['model']['createRangeOn'](_0x348234));const _0x5aebaf=_0x37bed3['isBlockImage'](_0x5ce11c);_0x34b0c9(_0x14eb53),_0x5ce11c=_0x37bed3['getClosestSelectedImageElement'](_0x32ee95['model']['document']['selection']),_0x348234=_0x9ef5d9['getCaptionFromImageModelElement'](_0x5ce11c),_0x275404['markInsertion'](_0x32ee95['model']['createRangeOn'](_0x348234),_0x5aebaf?null:'imageCaption');});}),_0x275404['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1011b3));const _0x3da526=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3d7c0f(_0x46b5f8,_0xe2ccfd){const _0xda96b2=_0x3da526['findIndex'](({type:_0x4b234f,subType:_0x1b0a7e})=>_0x46b5f8['type']==_0x4b234f&&_0x46b5f8['subType']==_0x1b0a7e),_0x4d2fc0=_0x3da526['findIndex'](({type:_0x46fe2b,subType:_0x4c6a1e})=>_0xe2ccfd['type']==_0x46fe2b&&_0xe2ccfd['subType']==_0x4c6a1e);if(_0xda96b2<0x0||_0x4d2fc0<0x0)return!0x1;const _0xb118d6=_0x46b5f8['getFirstRange'](),_0x352cf7=_0xe2ccfd['getFirstRange']();if((0x0==_0xda96b2||0x1==_0xda96b2)&&0x2==_0x4d2fc0&&_0xb118d6['isIntersecting'](_0x352cf7))return!0x0;if(0x2==_0xda96b2&&0x3==_0x4d2fc0){const _0x1c573b=_0x275404['_findSuggestions'](_0xb118d6,'insertion')['filter'](({suggestion:_0x7dc460,meta:_0x4fee2d})=>_0x4fee2d['isOwn']&&'convertInlineImageToBlock'==_0x7dc460['subType']);if(_0x1c573b['length']>0x1&&_0x352cf7['end']['isEqual'](_0xb118d6['start']))return!0x0;if(0x1==_0x1c573b['length']&&(_0xb118d6['start']['isEqual'](_0x352cf7['end'])||_0xb118d6['end']['isEqual'](_0x352cf7['start'])))return!0x0;}if(0x3==_0xda96b2&&0x3==_0x4d2fc0&&_0xb118d6['start']['isBefore'](_0x352cf7['start'])){const _0x53d68b=_0xb118d6['end']['nodeAfter'],_0x432608=_0x352cf7['start']['nodeBefore'];return _0x37bed3['isBlockImage'](_0x53d68b)&&_0x53d68b===_0x432608;}return!0x1;}function _0x1011b3(_0x1ba1e3,_0x2a9ec2){return _0x3d7c0f(_0x1ba1e3,_0x2a9ec2)?[_0x1ba1e3,_0x2a9ec2]:_0x3d7c0f(_0x2a9ec2,_0x1ba1e3)?[_0x2a9ec2,_0x1ba1e3]:null;}_0x32ee95['plugins']['has']('ImageResize')&&(_0x275404['enableDefaultAttributesIntegration']('resizeImage'),_0x275404['registerBlockAttribute']('resizedWidth'),_0x275404['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x286718,'FORMAT_IMAGE_SIZE'))),_0x32ee95['plugins']['has']('ImageTextAlternativeEditing')&&(_0x275404['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x275404['registerBlockAttribute']('alt')),_0x32ee95['plugins']['has']('PictureEditing')&&(_0x275404['registerBlockAttribute']('sources'),_0x275404['descriptionFactory']['registerDescriptionCallback'](_0x45d5f5=>{if('attribute'!=_0x45d5f5['type'])return;const {data:_0x51b0e1}=_0x45d5f5;return _0x51b0e1&&'sources'==_0x51b0e1['key']?{'type':'format','content':''}:void 0x0;})),_0x32ee95['plugins']['has']('ImageSizeAttributes')&&(_0x275404['registerBlockAttribute']('width'),_0x275404['registerBlockAttribute']('height'),_0x275404['descriptionFactory']['registerDescriptionCallback'](_0x1a223a=>{if('attribute'!=_0x1a223a['type'])return;const {data:_0x5f14cd}=_0x1a223a;return!_0x5f14cd||'width'!=_0x5f14cd['key']&&'height'!=_0x5f14cd['key']?void 0x0:{'type':'format','content':''};})),_0x275404['descriptionFactory']['registerDescriptionCallback'](_0x2251b8=>{if(!!_0x3da526['find'](({type:_0x26c691,subType:_0x402024})=>_0x2251b8['type']==_0x26c691&&_0x2251b8['subType']==_0x402024))return _0x2251b8['previous']?{}:void 0x0;}),_0x275404['descriptionFactory']['registerDescriptionCallback'](_0x1cb2e9=>{if('insertion'==_0x1cb2e9['type']||'deletion'==_0x1cb2e9['type']){const _0x4b6781=_0x1cb2e9['getContainedElement']();if(_0x4b6781&&_0x4b6781['is']('element','caption'))return{'type':'insertion'==_0x1cb2e9['type']?'addObject':'removeObject','element':_0x4b6781,'quantity':0x1};}}),_0x275404['descriptionFactory']['registerDescriptionCallback'](_0x56b0f6=>'formatBlock'==_0x56b0f6['type']&&'convertInlineImageToBlock'==_0x56b0f6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x56b0f6['type']&&'convertBlockImageToInline'==_0x56b0f6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x275404['descriptionFactory']['registerDescriptionCallback'](_0x495c5a=>{if('attribute'!=_0x495c5a['type'])return;const {data:_0x2bdffb}=_0x495c5a;if(!_0x2bdffb||'alt'!=_0x2bdffb['key'])return;const _0x266e3a=_0x2bdffb['newValue'];return _0x266e3a?{'type':'format','content':c(_0x286718,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x266e3a+'\x22')}:{'type':'format','content':c(_0x286718,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x525644=this['editor'],_0xe9eb4=_0x525644['locale'];_0x525644['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x145578=>{if('formatBlock'!=_0x145578['type']&&'formatInline'!=_0x145578['type'])return;const {data:_0x3b012e}=_0x145578;if(_0x3b012e){if('imageTextAlternative'==_0x3b012e['commandName']){const _0x2b2746=_0x3b012e['commandParams'][0x0]['newValue'];return _0x2b2746?{'type':'format','content':c(_0xe9eb4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2b2746+'\x22')}:{'type':'format','content':c(_0xe9eb4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3b012e['commandName']){const _0x5f599b=_0x3b012e['commandParams'][0x0]['width'];return _0x5f599b?{'type':'format','content':c(_0xe9eb4,'*Set\x20image\x20width:*\x20%0',_0x5f599b)}:{'type':'format','content':c(_0xe9eb4,'*Reset\x20image\x20width*')};}}});}}class at extends _0x121524{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1a4911=this['editor']['locale'],_0x33c21a=this['editor']['plugins']['get']('TrackChangesEditing');_0x33c21a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x33c21a['registerBlockAttribute']('src'),_0x33c21a['descriptionFactory']['registerDescriptionCallback'](_0x3f42d6=>{if('attribute'!=_0x3f42d6['type'])return;const {data:_0x58fd23}=_0x3f42d6;return _0x58fd23&&'src'==_0x58fd23['key']?_0x58fd23['newValue']&&_0x58fd23['oldValue']?{'type':'format','content':c(_0x1a4911,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5385db=this['editor']['plugins']['get']('TrackChangesEditing');_0x5385db['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5385db['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5385db['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5385db['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x355a9c=this['editor'],_0x54a2ac=_0x355a9c['locale'];_0x355a9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43d321=>{if('formatBlock'!=_0x43d321['type']&&'formatInline'!=_0x43d321['type'])return;const {data:_0xf95983}=_0x43d321;if(!_0xf95983||'replaceImageSource'!=_0xf95983['commandName'])return;return{'type':'format','content':c(_0x54a2ac,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x121524{['afterInit'](){const _0x4c38a5=this['editor'];if(!_0x4c38a5['plugins']['has']('ImageStyleEditing'))return;const _0x1c7018=_0x4c38a5['plugins']['get']('TrackChangesEditing'),_0x3b431b=_0x4c38a5['plugins']['get']('ImageUtils'),_0x36d0d3={};_0x1c7018['enableCommand']('imageStyle',(_0x151c79,_0x5cbb25)=>{const _0x510f29=_0x4c38a5['plugins']['get']('Users')['me'],_0x1b816b=_0x4c38a5['commands']['get']('imageStyle');let _0x31fb31=_0x3b431b['getClosestSelectedImageElement'](_0x4c38a5['model']['document']['selection']),_0x12832d=_0x4c38a5['model']['createRangeOn'](_0x31fb31),_0x5db9c1=_0x1b816b['value'];if(_0x5db9c1==_0x5cbb25['value'])return;const _0x47c097={'commandName':'imageStyle','commandParams':[_0x5cbb25],'formatGroupId':_0x25ef3d()};_0x4c38a5['model']['change'](()=>{if(_0x1c7018['getSuggestions']()['filter'](_0x4bab86=>_0x4bab86['isInContent']&&_0x510f29==_0x4bab86['author']&&('formatBlock'==_0x4bab86['type']||'formatInline'==_0x4bab86['type'])&&('imageStylePreApply'==_0x4bab86['subType']||'imageStylePostApply'==_0x4bab86['subType'])&&_0x4bab86['getFirstRange']()['isEqual'](_0x12832d))['forEach'](_0x23ac9c=>_0x1c7018['discardSuggestion'](_0x23ac9c['head'])),_0x31fb31=_0x3b431b['getClosestSelectedImageElement'](_0x4c38a5['model']['document']['selection']),_0x12832d=_0x4c38a5['model']['createRangeOn'](_0x31fb31),_0x1b816b['refresh'](),_0x4c38a5['commands']['get']('imageTypeInline')['refresh'](),_0x4c38a5['commands']['get']('imageTypeBlock')['refresh'](),_0x5db9c1=_0x1b816b['value'],_0x5db9c1!=_0x5cbb25['value'])return _0x3b431b['isInlineImage'](_0x31fb31)&&_0x1b816b['shouldConvertImageType'](_0x5cbb25['value'],_0x31fb31)?(_0x151c79({..._0x5cbb25,'setImageSizes':!0x1}),_0x31fb31=_0x3b431b['getClosestSelectedImageElement'](_0x4c38a5['model']['document']['selection']),void _0x1c7018['markBlockFormat'](_0x31fb31,{..._0x47c097,'commandReversedParams':[{'value':_0x5db9c1||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3b431b['isBlockImage'](_0x31fb31)?_0x1c7018['markBlockFormat'](_0x31fb31,_0x47c097,[],'imageStylePostApply'):_0x1c7018['markInlineFormat'](_0x12832d,_0x47c097,'imageStylePostApply'));});});for(const _0x4e3e4e of _0x4c38a5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x36d0d3[_0x4e3e4e['name']]=_0x4e3e4e['title']['toLowerCase']();_0x1c7018['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1c7018['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1c7018['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1c7018['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x520064])=>{_0x3b431b['setImageNaturalSizeAttributes'](_0x520064['getContainedElement']());}),_0x1c7018['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5b645c,_0x43532e)=>{_0x1c7018['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5b645c,{'commandName':_0x43532e['commandName'],'commandParams':_0x43532e['commandReversedParams']});}),_0x1c7018['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5573e8,_0x46204f){if(_0x4279f0(_0x5573e8,_0x46204f))return[_0x5573e8,_0x46204f];if(_0x4279f0(_0x46204f,_0x5573e8))return[_0x46204f,_0x5573e8];return null;});const _0x117967=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4279f0(_0x5218a3,_0x3a88bd){const _0x2ece24=_0x117967['findIndex'](({type:_0x4c0926,subType:_0x35255c})=>_0x5218a3['type']==_0x4c0926&&_0x5218a3['subType']==_0x35255c),_0x2e575e=_0x117967['findIndex'](({type:_0x1322e3,subType:_0x511b41})=>_0x3a88bd['type']==_0x1322e3&&_0x3a88bd['subType']==_0x511b41);if(_0x2ece24<0x0||_0x2e575e<0x0)return!0x1;const _0x193324=_0x5218a3['getFirstRange'](),_0x512f6f=_0x3a88bd['getFirstRange']();if((0x0==_0x2ece24||0x1==_0x2ece24)&&0x2==_0x2e575e&&_0x193324['isIntersecting'](_0x512f6f))return!0x0;if(0x2==_0x2ece24&&0x3==_0x2e575e){const _0x29be6a=_0x1c7018['_findSuggestions'](_0x193324,'insertion')['filter'](({suggestion:_0x3f716b,meta:_0x5dcbbb})=>_0x5dcbbb['isOwn']&&'convertInlineImageToBlock'==_0x3f716b['subType']);if(_0x29be6a['length']>0x1&&_0x512f6f['end']['isEqual'](_0x193324['start']))return!0x0;if(0x1==_0x29be6a['length']&&(_0x193324['start']['isEqual'](_0x512f6f['end'])||_0x193324['end']['isEqual'](_0x512f6f['start'])))return!0x0;}if(0x3==_0x2ece24&&0x3==_0x2e575e&&_0x193324['start']['isBefore'](_0x512f6f['start'])){const _0x138036=_0x193324['end']['nodeAfter'],_0x980fa3=_0x512f6f['start']['nodeBefore'];return _0x3b431b['isBlockImage'](_0x138036)&&_0x138036===_0x980fa3;}return!0x1;}_0x4c38a5['model']['document']['registerPostFixer'](()=>{let _0x3d7d10=!0x1;const _0x7617fc=Array['from'](_0x4c38a5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3479d0,data:_0x57c560}of _0x7617fc){const {group:_0x13c8f4,type:_0x5d8b73,subType:_0x5d804f,id:_0x2c7c16}=_0x1c7018['_splitMarkerName'](_0x3479d0);if('suggestion'==_0x13c8f4&&_0x1c7018['hasSuggestion'](_0x2c7c16)){if('formatBlock'==_0x5d8b73&&('imageStylePreApply'==_0x5d804f||'imageStylePostApply'==_0x5d804f)){const _0x34a9f7=_0x1c7018['getSuggestion'](_0x2c7c16);if(_0x57c560['newRange']){const _0x1c7c2c=_0x34a9f7['getFirstRange']()['getContainedElement']();if(_0x3b431b['isBlockImage'](_0x1c7c2c))continue;_0x1c7018['discardSuggestion'](_0x34a9f7),_0x3d7d10=!0x0;}}if('insertion'==_0x5d8b73&&'imageCaption'==_0x5d804f&&!_0x57c560['newRange']){const _0x2beeb1=_0x1c7018['getSuggestion'](_0x2c7c16);_0x2beeb1['next']&&_0x2beeb1['next']['isInContent']&&(_0x1c7018['discardSuggestion'](_0x2beeb1['next']),_0x3d7d10=!0x0);}}}return _0x3d7d10;}),this['_registerLegacyDescription'](_0x36d0d3);}['_registerLegacyDescription'](_0x48d82f){const _0x911fd8=this['editor'],_0x1bdc22=_0x911fd8['locale'];_0x911fd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59b0b3=>{if('formatBlock'!=_0x59b0b3['type']&&'formatInline'!=_0x59b0b3['type'])return;const {data:_0x17d4eb}=_0x59b0b3;if(!_0x17d4eb||'imageStyle'!=_0x17d4eb['commandName'])return;const _0x16dbac=_0x17d4eb['commandParams'][0x0]['value'];return _0x44ee0f('side'===_0x16dbac?c(_0x1bdc22,'FORMAT_SIDE_IMAGE'):_0x48d82f[_0x16dbac]||_0x16dbac);function _0x44ee0f(_0x27e077){return{'type':'format','content':c(_0x1bdc22,'*Format:*\x20%0',_0x27e077)};}});}}class ut extends _0x121524{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x16fdef){super(_0x16fdef),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2d464a=this['editor'],_0xea022f=_0x2d464a['commands']['get']('importWord'),_0x3f9358=_0x2d464a['commands']['get']('trackChanges');_0xea022f&&(_0xea022f['on']('execute',(_0x57fd1d,[,_0x58ddb6])=>{this['_trackChangesValueDuringImport']=_0x3f9358['value'],_0x58ddb6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xea022f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xea022f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3f9358['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2d464a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x462a15,_0x4d585f){const {suggestions:_0x50d51c}=_0x4d585f,_0x526c8e=this['editor']['commands']['get']('trackChanges'),_0x56e2c9=_0x526c8e['value'];this['_trackChangesValueDuringImport']!==_0x56e2c9&&(_0x526c8e['execute'](),this['_trackChangesExecuted']=!0x0),_0x50d51c&&_0x50d51c['forEach'](({id:_0x34c6a5,type:_0x122ca9,author:_0xec5941,created_at:_0x4af80b})=>{const _0x24dc6c={'id':_0x34c6a5,'type':_0x122ca9,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xec5941,'createdAt':_0x4af80b?new Date(_0x4af80b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x24dc6c);});}}class ft extends _0x121524{['afterInit'](){const _0x17cbec=this['editor'],_0x1e53ee=_0x17cbec['plugins']['get']('TrackChangesEditing');if(_0x17cbec['plugins']['has']('IndentEditing')&&(_0x1e53ee['enableCommand']('indent'),_0x1e53ee['enableCommand']('outdent')),_0x17cbec['plugins']['has']('IndentBlock')){for(const _0x74a85 of['indentBlock','outdentBlock'])_0x1e53ee['enableDefaultAttributesIntegration'](_0x74a85);}const _0xf15b6f=_0x17cbec['locale'];_0x1e53ee['registerBlockAttribute']('blockIndent'),_0x1e53ee['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0xf15b6f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a3b67=this['editor'],_0x5c2fa5=_0x3a3b67['locale'],_0x195653=_0x3a3b67['plugins']['get']('TrackChangesEditing');_0x195653['descriptionFactory']['registerDescriptionCallback'](_0x147d56=>{if('formatBlock'!=_0x147d56['type'])return;const {data:_0x59329b}=_0x147d56;if(!_0x59329b)return;if('indentBlock'!=_0x59329b['commandName']&&'outdentBlock'!=_0x59329b['commandName'])return;const _0x6c8f87=_0x147d56['getItems']()[0x0],_0x2aada7=_0x195653['descriptionFactory']['getItemLabel'](_0x6c8f87);return'indentBlock'==_0x59329b['commandName']?{'type':'format','content':c(_0x5c2fa5,'*Indent:*\x20%0',_0x2aada7)}:'outdentBlock'==_0x59329b['commandName']?{'type':'format','content':c(_0x5c2fa5,'*Outdent:*\x20%0',_0x2aada7)}:void 0x0;});}}class ht extends _0x121524{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x121524{['afterInit'](){const _0x59aa17=this['editor'];if(!_0x59aa17['plugins']['has']('LinkEditing'))return;const _0x314fe1=_0x59aa17['plugins']['get']('TrackChangesEditing'),_0x5becd5=_0x59aa17['commands']['get']('link');_0x314fe1['enableDefaultAttributesIntegration']('link'),_0x314fe1['enableDefaultAttributesIntegration']('unlink'),_0x314fe1['registerInlineAttribute']('linkHref');for(const _0x225c9f of _0x5becd5['manualDecorators'])_0x314fe1['registerInlineAttribute'](_0x225c9f['id']),_0x314fe1['descriptionFactory']['registerAttributeLabel'](_0x225c9f['id'],'link\x20('+_0x225c9f['label']['toLowerCase']()+')');_0x314fe1['descriptionFactory']['registerDescriptionCallback'](_0x5576b3=>{if('attribute'!=_0x5576b3['type'])return;const {data:_0x285240}=_0x5576b3;if(!_0x285240||'linkHref'!=_0x285240['key'])return;const _0x28bdbd=_0x285240['newValue'],_0x47f854=_0x59aa17['locale'];return{'type':'format','content':null==_0x28bdbd?c(_0x47f854,'*Remove\x20link*'):c(_0x47f854,'*Set\x20link:*\x20%0','\x22'+_0x28bdbd+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7237c2=this['editor'],_0x47790d=_0x7237c2['locale'];_0x7237c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fbc6f=>{if('formatInline'!=_0x2fbc6f['type'])return;const {data:_0x1c658c}=_0x2fbc6f;if(_0x1c658c){if('link'==_0x1c658c['commandName']){const _0x539b20=_0x1c658c['commandParams'][0x0];return{'type':'format','content':c(_0x47790d,'*Set\x20link:*\x20%0','\x22'+_0x539b20+'\x22')};}return'unlink'==_0x1c658c['commandName']?{'type':'format','content':c(_0x47790d,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x121524{['afterInit'](){const _0x4b8f69=this['editor'],_0x59cc7c=_0x4b8f69['locale'];if(!_0x4b8f69['plugins']['has']('LegacyListEditing'))return;const _0x49cc4c=_0x4b8f69['plugins']['get']('TrackChangesEditing'),_0x1578d3=_0x4b8f69['plugins']['has']('LegacyTodoListEditing');function _0x2182e7(_0x17b969){return()=>{const _0x3cdcfc=_0x4b8f69['model']['document']['selection'],_0x2210dd=_0x4b8f69['commands']['get'](_0x17b969);if(_0x2210dd['value'])return void _0x4b8f69['execute']('paragraph',{});const _0x5ad822=_0x17b969['slice'](0x0,-0x4),_0x2fa40c=function(_0x3742d7,_0x4b7d0a,_0x51e428){let _0x58d63b=Array['from'](_0x3742d7)['filter'](_0x5ca33a=>function(_0x31b8fc,_0x5bdfba){return _0x5bdfba['checkChild'](_0x31b8fc['parent'],'listItem')&&!_0x5bdfba['isObject'](_0x31b8fc);}(_0x5ca33a,_0x51e428));_0x58d63b=_0x58d63b['filter'](_0x217dfb=>!_0x217dfb['is']('element','listItem')||_0x217dfb['getAttribute']('listType')!=_0x4b7d0a);const _0x258d32=new Set();for(const _0x3b47f3 of _0x58d63b)_0x3b47f3['is']('element','listItem')?_0x258d32['add'](Le(_0x3b47f3)):_0x258d32['add'](_0x3b47f3);return Array['from'](_0x258d32);}(_0x3cdcfc['getSelectedBlocks'](),_0x5ad822,_0x4b8f69['model']['schema']);_0x4b8f69['model']['change'](()=>{for(const _0x2cb587 of _0x2fa40c)_0x49cc4c['markBlockFormat'](_0x2cb587,{'commandName':_0x17b969,'commandParams':[{'forceValue':!_0x2210dd['value']}],'formatGroupId':'blockName'},Ee(_0x2cb587));});};}function _0x49c185(_0x50cb96){return()=>{const _0xeab72b=function(_0x1b47a4){let _0x3466a0=Array['from'](_0x1b47a4);const _0x30a43d=_0x3466a0['findIndex'](_0x3d18a4=>'listItem'!=_0x3d18a4['name']);return _0x30a43d>-0x1&&(_0x3466a0=_0x3466a0['slice'](0x0,_0x30a43d)),_0x3466a0;}(_0x4b8f69['model']['document']['selection']['getSelectedBlocks']()),_0x2dbd5c=_0x4b8f69['model']['createRange'](_0x4b8f69['model']['createPositionAt'](_0xeab72b[0x0],'before'),_0x4b8f69['model']['createPositionAt'](_0xeab72b[_0xeab72b['length']-0x1],'end'));_0x4b8f69['model']['change'](()=>{_0x49cc4c['markBlockFormat'](_0x2dbd5c,{'commandName':_0x50cb96,'commandParams':[],'formatGroupId':'listIndent'},function(_0x33dc31){const _0x4b502c=new Set();for(const _0x2e3e80 of _0x33dc31){let _0x14fcf0=_0x2e3e80['nextSibling'];for(;_0x14fcf0&&_0x14fcf0['getAttribute']('listIndent')>_0x2e3e80['getAttribute']('listIndent');)_0x4b502c['add'](_0x14fcf0),_0x14fcf0=_0x14fcf0['nextSibling'];}return Array['from'](_0x4b502c);}(_0xeab72b));});};}_0x49cc4c['enableCommand']('numberedList',_0x2182e7('numberedList')),_0x49cc4c['enableCommand']('bulletedList',_0x2182e7('bulletedList')),_0x1578d3&&_0x49cc4c['enableCommand']('todoList',_0x2182e7('todoList')),_0x49cc4c['enableCommand']('indentList',_0x49c185('indentList')),_0x49cc4c['enableCommand']('outdentList',_0x49c185('outdentList')),_0x1578d3&&_0x49cc4c['enableCommand']('checkTodoList',()=>{const _0x187e7a=_0x4b8f69['commands']['get']('checkTodoList'),_0x242bd3=Array['from'](_0x187e7a['_selectedElements']);_0x242bd3['filter'](_0x6ee24c=>_0x6ee24c['getAttribute']('todoListChecked')!=_0x187e7a['value']),_0x4b8f69['model']['change'](()=>{for(const _0x42e507 of _0x242bd3)_0x49cc4c['markBlockFormat'](_0x42e507,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x187e7a['value']}]});});}),_0x49cc4c['descriptionFactory']['registerElementLabel']('listItem',_0x4e4b63=>c(_0x59cc7c,'ELEMENT_LIST_ITEM',_0x4e4b63)),_0x49cc4c['descriptionFactory']['registerDescriptionCallback'](_0x42f3be=>{if('formatBlock'!=_0x42f3be['type']&&'formatInline'!=_0x42f3be['type'])return;const {data:_0x1571f6}=_0x42f3be;if(_0x1571f6){if('numberedList'==_0x1571f6['commandName']||'bulletedList'==_0x1571f6['commandName']||'todoList'==_0x1571f6['commandName'])switch(_0x1571f6['commandName']['replace']('List','')){case'bulleted':return _0x46184e(c(_0x59cc7c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46184e(c(_0x59cc7c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46184e(c(_0x59cc7c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1571f6['commandName'])return{'type':'format','content':c(_0x59cc7c,'*Indent:*\x20%0',c(_0x59cc7c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1571f6['commandName'])return{'type':'format','content':c(_0x59cc7c,'*Outdent:*\x20%0',c(_0x59cc7c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1571f6['commandName'])return _0x1571f6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x59cc7c,'*Check\x20item*')}:{'type':'format','content':c(_0x59cc7c,'*Uncheck\x20item*')};}function _0x46184e(_0x40c8a0){return{'type':'format','content':c(_0x59cc7c,'*Change\x20to:*\x20%0',_0x40c8a0)};}});}}function Le(_0x80ea17){const _0x387e6b=_0x80ea17['getAttribute']('listIndent');if(0x0==_0x387e6b)return _0x80ea17;let _0x16949f=_0x80ea17;for(;_0x80ea17['previousSibling']&&_0x80ea17['previousSibling']['is']('element','listItem');){const _0x24abc2=_0x80ea17['previousSibling']['getAttribute']('listIndent');if(_0x24abc2==_0x387e6b)_0x16949f=_0x80ea17['previousSibling'];else{if(_0x24abc2<_0x387e6b)break;}_0x80ea17=_0x80ea17['previousSibling'];}return _0x16949f;}function Ee(_0x2669bb){const _0x44b4ef=[];if(_0x2669bb['is']('element','listItem')&&_0x2669bb['getAttribute']('listIndent')>0x0){let _0x142435=_0x2669bb['nextSibling'];for(;_0x142435&&'listItem'==_0x142435['name']&&_0x142435['getAttribute']('listIndent')==_0x2669bb['getAttribute']('listIndent');)_0x44b4ef['push'](_0x142435),_0x142435=_0x142435['nextSibling'];}return _0x44b4ef;}class Q extends _0x121524{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x41c7e2=this['editor']['config']['get']('list.properties'),_0x2a1b5e=this['editor']['plugins']['get']('TrackChangesEditing');_0x41c7e2['styles']&&_0x2a1b5e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x41c7e2['reversed']&&_0x2a1b5e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x41c7e2['startIndex']&&_0x2a1b5e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2a1b5e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x6663f3,_0x3b782f={}){const _0x14b872=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bacd5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x14b872['markMultiRangeBlockFormat'](_0x4bacd5,{'commandName':'listStyle','commandParams':[{'type':_0x3b782f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x134c3a,_0x1980b6={}){const _0x34fc55=this['editor']['plugins']['get']('TrackChangesEditing'),_0x541ae0=this['_getSuggestionBlocks'](_0x515300=>_0x515300['is']('element','listItem')&&'numbered'===_0x515300['getAttribute']('listType'));if(_0x541ae0['length']<0x1)return;const _0xd3b410=_0x541ae0['map'](_0x254697=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x254697,'before'),this['editor']['model']['createPositionAt'](_0x254697,0x0)));this['editor']['model']['change'](()=>{_0x34fc55['markMultiRangeBlockFormat'](_0xd3b410,{'commandName':'listReversed','commandParams':[{'reversed':_0x1980b6['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xf84e48,_0x2600fd={}){const _0xe58839=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3def8d=this['_getSuggestionBlocks'](_0x20376c=>_0x20376c['is']('element','listItem')&&'numbered'===_0x20376c['getAttribute']('listType'));if(_0x3def8d['length']<0x1)return;const _0x22f89d=_0x3def8d['map'](_0x4e8244=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e8244,'before'),this['editor']['model']['createPositionAt'](_0x4e8244,0x0)));this['editor']['model']['change'](()=>{_0xe58839['markMultiRangeBlockFormat'](_0x22f89d,{'commandName':'listStart','commandParams':[{'startIndex':_0x2600fd['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x37f42b){if('formatBlock'!=_0x37f42b['type']&&'formatInline'!=_0x37f42b['type'])return;const _0x292072=this['editor']['locale'],{data:_0xe20fd}=_0x37f42b;if(!_0xe20fd)return;let _0x3aada5,_0x250876;switch(_0xe20fd['commandName']){case'listStyle':_0x3aada5='*Change\x20to:*\x20%0',_0x250876={'type':'format','content':c(_0x292072,_0x3aada5,c(_0x292072,this['_getTranslationKeyForListStyle'](_0xe20fd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3aada5=_0xe20fd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x250876={'type':'format','content':c(_0x292072,_0x3aada5)};break;case'listStart':_0x3aada5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x250876={'type':'format','content':c(_0x292072,_0x3aada5,_0xe20fd['commandParams'][0x0]['startIndex'])};}return _0x250876;}['_getSuggestionBlocksForListStyle'](){const _0x3c20ca=this['editor']['plugins']['get']('LegacyListUtils');let _0x592d3a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x592d3a[0x0]?.['is']('element','listItem')&&_0x592d3a['unshift'](..._0x3c20ca['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x592d3a[_0x592d3a['length']-0x1]?.['is']('element','listItem')&&_0x592d3a['push'](..._0x3c20ca['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x592d3a=[...new Set(_0x592d3a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x592d3a=_0x592d3a['filter'](_0x99e9a0=>_0x99e9a0['is']('element','listItem'))),_0x592d3a;}['_getSuggestionBlocks'](_0x21e98d){const _0x2aca06=this['editor']['plugins']['get']('LegacyListUtils');let _0x52298d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x21e98d)['map'](_0x140149=>{const _0x458e9c=this['editor']['model']['createPositionAt'](_0x140149,0x0);return[..._0x2aca06['getSiblingNodes'](_0x458e9c,'backward'),..._0x2aca06['getSiblingNodes'](_0x458e9c,'forward')];})['flat']();return _0x52298d=[...new Set(_0x52298d)],_0x52298d;}['_getTranslationKeyForListStyle'](_0x3bf8d2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3bf8d2)||'default')['toUpperCase']()+'_LIST_'+_0x3bf8d2['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x121524{['afterInit'](){const _0x40757f=this['editor'];if(!_0x40757f['plugins']['has']('MediaEmbedEditing'))return;const _0x1bbf33=_0x40757f['plugins']['get']('TrackChangesEditing'),_0x16d5e7=_0x40757f['locale'];_0x1bbf33['enableCommand']('mediaEmbed'),_0x1bbf33['descriptionFactory']['registerElementLabel']('media',_0x2f23e2=>c(_0x16d5e7,'ELEMENT_MEDIA',_0x2f23e2)),_0x40757f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3ebe8b,{writer:_0x1d1f51,options:_0xb3ab2d})=>{if(_0xb3ab2d['showSuggestionHighlights'])return _0x1d1f51['createEmptyElement']('div');},'converterPriority':'high'}),_0x40757f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x47a603,_0x35721d,_0x4973e2)=>{_0x4973e2['options']['showSuggestionHighlights']&&_0x47a603['stop']();},{'priority':'high'});}}class pt extends _0x121524{['afterInit'](){const _0x2cc2e7=this['editor'];_0x2cc2e7['plugins']['has']('MentionEditing')&&_0x2cc2e7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x121524{['afterInit'](){const _0x265464=this['editor'];if(!_0x265464['plugins']['has']('MergeFieldsEditing'))return;const _0x337e26=_0x265464['plugins']['get']('TrackChangesEditing'),_0x3712f8=_0x265464['locale'];_0x337e26['enableCommand']('insertMergeField'),_0x337e26['enableCommand']('insertMergeFieldBlock'),_0x337e26['enableCommand']('insertMergeFieldImage'),_0x337e26['descriptionFactory']['registerElementLabel']('mergeField',_0x297d0b=>c(_0x3712f8,'ELEMENT_MERGE_FIELD',_0x297d0b)),_0x337e26['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x111818=>c(_0x3712f8,'ELEMENT_MERGE_FIELD',_0x111818)),_0x337e26['descriptionFactory']['registerDescriptionCallback'](_0x229b5e=>{if('insertion'!=_0x229b5e['type']&&'deletion'!=_0x229b5e['type'])return;const _0x2ea8e8=_0x229b5e['getContainedElement']();if(null==_0x2ea8e8)return;const _0x42f9bf=_0x265464['plugins']['get']('MergeFieldsEditing');let _0x15f6ed;switch(_0x42f9bf['getMergeFieldType'](_0x2ea8e8)){case null:return;case'image':{const _0xec5a51=_0x42f9bf['unwrapAffixes'](_0x2ea8e8['getAttribute']('src'));_0x15f6ed=_0x42f9bf['getLabel'](_0xec5a51)||_0xec5a51;break;}default:{const _0x299866=_0x2ea8e8['getAttribute']('id');_0x15f6ed=_0x42f9bf['getLabel'](_0x299866)||_0x299866;break;}}return'insertion'==_0x229b5e['type']?{'type':'insertion','content':c(_0x3712f8,'*Insert:*\x20%0','\x22'+_0x15f6ed+'\x22\x20'+c(_0x3712f8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3712f8,'*Remove:*\x20%0','\x22'+_0x15f6ed+'\x22\x20'+c(_0x3712f8,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x121524{['afterInit'](){const _0x3f7d8d=this['editor'],_0x1e66cd=_0x3f7d8d['plugins']['get']('TrackChangesEditing');_0x3f7d8d['plugins']['has']('MultiLevelList')&&(_0x1e66cd['enableDefaultAttributesIntegration']('multiLevelList'),_0x1e66cd['registerBlockAttribute']('listMarkerStyle'),_0x1e66cd['descriptionFactory']['registerDescriptionCallback'](_0x4a1a0b=>this['handleDescriptions'](_0x4a1a0b)));}['handleDescriptions'](_0x64f6ac){const _0x5c7073=this['editor']['locale'],{data:_0xab1e17}=_0x64f6ac,_0x580cae={'type':'format','content':''};if(_0xab1e17&&'listMarkerStyle'==_0xab1e17['key']){if(!_0xab1e17['oldValue'])return{'type':'format','content':c(_0x5c7073,'*Set\x20format:*\x20%0',c(_0x5c7073,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xab1e17['newValue']+')'};if(!_0xab1e17['newValue']){let _0x28b5ee=_0x64f6ac['head'];for(;_0x28b5ee;){if(_0x28b5ee['data']&&'listType'==_0x28b5ee['data']['key']&&_0x28b5ee['data']['newValue'])return _0x580cae;_0x28b5ee=_0x28b5ee['next'];}return{'type':'format','content':c(_0x5c7073,'*Remove\x20format:*\x20%0',c(_0x5c7073,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xab1e17['oldValue']+')'};}}}}class bt extends _0x121524{['afterInit'](){const _0x420ed8=this['editor'];if(!_0x420ed8['plugins']['has']('PageBreakEditing'))return;_0x420ed8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x363a8e=_0x420ed8['plugins']['get']('TrackChangesEditing'),_0xa39283=_0x420ed8['locale'];_0x363a8e['descriptionFactory']['registerElementLabel']('pageBreak',_0x624e5a=>c(_0xa39283,'ELEMENT_PAGE_BREAK',_0x624e5a));}}class yt extends _0x121524{['afterInit'](){const _0x440cb7=this['editor'];if(!_0x440cb7['plugins']['has']('Paragraph'))return;const _0x1486b1=_0x440cb7['locale'],_0x40cdbe=_0x440cb7['plugins']['get']('TrackChangesEditing');_0x40cdbe['descriptionFactory']['registerElementLabel']('paragraph',_0x7c243a=>c(_0x1486b1,'ELEMENT_PARAGRAPH',_0x7c243a)),_0x40cdbe['enableDefaultAttributesIntegration']('paragraph'),_0x40cdbe['enableCommand']('insertParagraph'),_0x440cb7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x440cb7),{'priority':'highest'}),_0x440cb7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x384936,_0x491699,_0x230e33)=>{_0x230e33['options']['showSuggestionHighlights']&&nr(_0x440cb7,{'showActiveMarker':!0x1})(_0x384936,_0x491699,_0x230e33);},{'priority':'highest'});const _0x4ec80e=_0x40cdbe['descriptionFactory'];_0x4ec80e['registerDescriptionCallback'](_0x40fab6=>{if('insertion'!==_0x40fab6['type'])return;const {start:_0x4153aa,end:_0x3c1ba6}=_0x40fab6['getFirstRange']();if(!_0x4153aa['isTouching'](_0x3c1ba6)||!_0x4153aa['nodeAfter'])return;const _0x474ab0=_0x440cb7['model']['schema'],_0x3a2e14=_0x4153aa['nodeAfter'];return _0x474ab0['isBlock'](_0x3a2e14)&&!_0x474ab0['isLimit'](_0x3a2e14)&&_0x474ab0['checkChild'](_0x3a2e14,'$text')?{'type':'insertion','content':c(_0x1486b1,'*Insert:*\x20%0',_0x4ec80e['getItemLabel'](_0x3a2e14,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24d4da=this['editor'],_0x562770=_0x24d4da['locale'];_0x24d4da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcec340=>{if('formatBlock'!=_0xcec340['type'])return;const {data:_0x1c4f1a}=_0xcec340;return _0x1c4f1a&&'paragraph'==_0x1c4f1a['commandName']?{'type':'format','content':c(_0x562770,'*Change\x20to:*\x20%0',c(_0x562770,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x353aed,{showActiveMarker:_0x5f2e8e=!0x0}={}){return(_0x5ce50a,_0x2e827e,_0x285626)=>{const _0x5bf85e=_0x353aed['plugins']['get']('TrackChangesEditing'),_0x3ef01e=_0x2e827e['markerRange']['start'],_0x548b82=_0x2e827e['markerRange']['end'],_0x3c0dc9=_0x353aed['model']['schema'];if(!_0x3ef01e['isTouching'](_0x548b82)||!_0x3ef01e['nodeAfter'])return;const _0x53bc88=_0x3ef01e['nodeAfter'];if(_0x3c0dc9['isBlock'](_0x53bc88)&&!_0x3c0dc9['isLimit'](_0x53bc88)&&_0x3c0dc9['checkChild'](_0x53bc88,'$text')){if(!_0x285626['consumable']['consume'](_0x2e827e['markerRange'],_0x5ce50a['name']))return;const {id:_0x4ffc99,authorId:_0x28bdc3}=_0x5bf85e['_splitMarkerName'](_0x2e827e['markerName']),_0x4a1658=_0x285626['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4ffc99,'data-author-id':_0x28bdc3}),_0x4b694d=_0x285626['mapper']['toViewPosition'](_0x548b82);_0x5f2e8e&&_0x5bf85e['activeMarkers']['includes'](_0x2e827e['markerName'])&&_0x285626['writer']['addClass']('ck-suggestion-marker--active',_0x4a1658),_0x285626['writer']['insert'](_0x4b694d,_0x4a1658),_0x285626['mapper']['bindElementToMarker'](_0x4a1658,_0x2e827e['markerName']);}};}class St extends _0x121524{['afterInit'](){const _0x1c1446=this['editor'];_0x1c1446['commands']['get']('replaceSource')&&_0x1c1446['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x121524{['afterInit'](){const _0x21a072=this['editor'];if(!_0x21a072['plugins']['has']('RemoveFormatEditing'))return;_0x21a072['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x306645=this['editor'];_0x306645['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x355ce8=>{if('formatBlock'!=_0x355ce8['type']&&'formatInline'!=_0x355ce8['type'])return;const {data:_0x399859}=_0x355ce8;return _0x399859&&'removeFormat'==_0x399859['commandName']?{'type':'format','content':c(_0x306645['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x121524{['afterInit'](){const _0x482530=this['editor'];if(!_0x482530['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x454edd=_0x482530['plugins']['get']('TrackChangesEditing');_0x454edd['enableCommand']('goToPreviousRestrictedEditingException'),_0x454edd['enableCommand']('goToNextRestrictedEditingException');const _0x237888=_0x482530['plugins']['get']('RestrictedEditingModeEditing');_0x237888['enableCommand']('trackChanges'),_0x237888['enableCommand']('acceptSuggestion'),_0x237888['enableCommand']('discardSuggestion'),_0x237888['enableCommand']('acceptAllSuggestions'),_0x237888['enableCommand']('discardAllSuggestions'),_0x237888['enableCommand']('acceptSelectedSuggestions'),_0x237888['enableCommand']('discardSelectedSuggestions');}}class At extends _0x121524{['afterInit'](){const _0x78a818=this['editor'];if(!_0x78a818['plugins']['has']('ShiftEnter'))return;const _0x20526f=_0x78a818['plugins']['get']('TrackChangesEditing');_0x20526f['enableCommand']('shiftEnter'),_0x78a818['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x78a818),{'priority':'high'}),_0x78a818['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x78a818),{'priority':'high'}),_0x78a818['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x32dcc5,_0x1aa789,_0x2fc332)=>{_0x2fc332['options']['showSuggestionHighlights']&&je(_0x78a818,{'showActiveMarker':!0x1})(_0x32dcc5,_0x1aa789,_0x2fc332);}),_0x20526f['descriptionFactory']['registerElementLabel']('softBreak',_0x27528d=>c(_0x78a818['locale'],'ELEMENT_LINE_BREAK',_0x27528d));}}function je(_0x4c32de,{showActiveMarker:_0x47a0f4=!0x0}={}){return(_0x589dc0,_0x527aac,_0x200ddd)=>{const _0x5f20fb=_0x4c32de['plugins']['get']('TrackChangesEditing');if(!_0x200ddd['consumable']['test'](_0x527aac['markerRange'],_0x589dc0['name']))return;const _0x265c4a=_0x4c32de['model'];for(const _0x4fcb87 of _0x527aac['markerRange']['getItems']()){if(!_0x4fcb87['is']('element','softBreak'))continue;const _0xa96dc7='deletion'==_0x527aac['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2a792f,authorId:_0x210efd}=_0x5f20fb['_splitMarkerName'](_0x527aac['markerName']),_0x2c07ca=_0x200ddd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xa96dc7,'data-suggestion':_0x2a792f,'data-author-id':_0x210efd}),_0x5c27db=_0x200ddd['mapper']['toViewPosition'](_0x265c4a['createPositionBefore'](_0x4fcb87));_0x47a0f4&&_0x5f20fb['activeMarkers']['includes'](_0x527aac['markerName'])&&_0x200ddd['writer']['addClass']('ck-suggestion-marker--active',_0x2c07ca),_0x200ddd['writer']['insert'](_0x5c27db,_0x2c07ca),_0x200ddd['mapper']['bindElementToMarker'](_0x2c07ca,_0x527aac['markerName']);}};}class _t extends _0x121524{['afterInit'](){const _0x486525=this['editor'],_0x5b90f9=_0x486525['model'],_0x1dec84=_0x486525['locale'];if(!_0x486525['plugins']['has']('StandardEditingModeEditing'))return;const _0x2a5d32=_0x486525['plugins']['get']('TrackChangesEditing'),_0x52f169='restrictedEditingException',_0x2864d2=_0x486525['commands']['get'](_0x52f169);_0x2a5d32['enableCommand'](_0x52f169,(_0x52791d,_0x4f4559={})=>{const _0x256176=_0x5b90f9['document']['selection'];if(_0x256176['isCollapsed'])return void _0x52791d(_0x4f4559);const _0x4dca7d=void 0x0!==_0x4f4559['forceValue']?_0x4f4559['forceValue']:!_0x2864d2['value'];_0x5b90f9['change'](()=>{const _0x343c7b=Array['from'](_0x256176['getRanges']());for(const _0x5c78e8 of _0x343c7b){const _0xcf8012=_0x4dca7d?[_0x5c78e8]:io(_0x52f169,_0x5c78e8,_0x5b90f9);for(const _0x46e955 of _0xcf8012)_0x2a5d32['markInlineFormat'](_0x46e955,{'commandName':_0x52f169,'commandParams':[{'forceValue':_0x4dca7d}]});}});}),_0x2a5d32['descriptionFactory']['registerDescriptionCallback'](_0x1fbe39=>{if('formatBlock'!=_0x1fbe39['type']&&'formatInline'!=_0x1fbe39['type'])return;const {data:_0x2ed36c}=_0x1fbe39;return _0x2ed36c&&_0x2ed36c['commandName']==_0x52f169?_0x2ed36c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1dec84,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x1dec84,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x121524{['afterInit'](){const _0x4c20fb=this['editor'];if(!_0x4c20fb['plugins']['has']('Style')||!_0x4c20fb['plugins']['has']('DataSchema'))return;const _0x3a2e13=_0x4c20fb['plugins']['get']('TrackChangesEditing'),_0x29dab3=_0x4c20fb['locale'],_0x131db8=_0x4c20fb['config']['get']('style')||{},_0x39c9c8=_0x4c20fb['plugins']['get']('GeneralHtmlSupport'),_0x697cf0=_0x4c20fb['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4c20fb['plugins']['get']('DataSchema'),_0x131db8['definitions']);_0x3a2e13['enableDefaultAttributesIntegration']('style');const _0x443724=new Set();for(const _0x1a1d34 of _0x697cf0['block']){const _0x41d18b=_0x39c9c8['getGhsAttributeNameForElement'](_0x1a1d34['element']);_0x443724['add'](_0x41d18b);}const _0x2d9452=new Set();for(const _0x1102b1 of _0x697cf0['inline']){const _0x28f342=_0x39c9c8['getGhsAttributeNameForElement'](_0x1102b1['element']);_0x2d9452['add'](_0x28f342);for(const _0x55cbcb of _0x1102b1['ghsAttributes'])_0x2d9452['add'](_0x55cbcb);}for(const _0x3272d4 of _0x443724)_0x3a2e13['registerBlockAttribute'](_0x3272d4),_0x3a2e13['descriptionFactory']['registerAttributeLabel'](_0x3272d4,c(_0x29dab3,'FORMAT_STYLE'));for(const _0x36b087 of _0x2d9452)_0x3a2e13['registerInlineAttribute'](_0x36b087),_0x3a2e13['descriptionFactory']['registerAttributeLabel'](_0x36b087,c(_0x29dab3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20fd69=this['editor'],_0x17d651=_0x20fd69['locale'];_0x20fd69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e1db7=>{if('formatBlock'!=_0x5e1db7['type']&&'formatInline'!=_0x5e1db7['type'])return;const {data:_0x4e7a57}=_0x5e1db7;return _0x4e7a57&&'style'===_0x4e7a57['commandName']?_0x4e7a57['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x17d651,'*Set\x20format:*\x20%0',_0x4e7a57['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x17d651,'*Remove\x20format:*\x20%0',_0x4e7a57['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x121524{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5f5246){super(_0x5f5246),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1ac6fa=this['editor'],_0x14eb45=_0x1ac6fa['model']['document']['selection'];if(!_0x1ac6fa['plugins']['has']('TableEditing'))return;const _0x2c5924=_0x1ac6fa['locale'],_0x4de84a=_0x1ac6fa['plugins']['get']('TrackChangesEditing'),_0x5e8f20=_0x1ac6fa['plugins']['get']('TableUtils');_0x4de84a['descriptionFactory']['registerElementLabel']('table',_0x45e5d1=>c(_0x2c5924,'ELEMENT_TABLE',_0x45e5d1)),this['_setupColumnsRowsFixing'](),_0x4de84a['enableCommand']('insertTable'),_0x4de84a['enableCommand']('selectTableRow'),_0x4de84a['enableCommand']('selectTableColumn');for(const _0x246bb7 of['insertTableRowAbove','insertTableRowBelow']){const _0x24a9e7=_0x1ac6fa['commands']['get'](_0x246bb7);_0x4de84a['enableCommand'](_0x246bb7,_0x3fa322=>{_0x1ac6fa['model']['change'](_0x60aca8=>{_0x3fa322();const _0x4c3cfb='above'===_0x24a9e7['order'],_0x344850=_0x5e8f20['getSelectionAffectedTableCells'](_0x14eb45),_0x4ad66e=_0x5e8f20['getRowIndexes'](_0x344850),_0x2e8279=_0x4c3cfb?_0x4ad66e['first']-0x1:_0x4ad66e['last']+0x1,_0x265b2b=_0x344850[0x0]['findAncestor']('table'),_0x4989ba=_0x5e8f20['createTableWalker'](_0x265b2b,{'startRow':_0x2e8279,'endRow':_0x2e8279}),_0x28b7b1=Array['from'](_0x4989ba)['map'](_0x41e034=>_0x60aca8['createRangeOn'](_0x41e034['cell']));_0x4de84a['markMultiRangeInsertion'](_0x28b7b1,'tableRow');});});}for(const _0x344241 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2f46ad=_0x1ac6fa['commands']['get'](_0x344241);_0x4de84a['enableCommand'](_0x344241,_0x3d9e81=>{_0x1ac6fa['model']['change'](_0x51f4cf=>{_0x3d9e81();const _0x29faee='left'===_0x2f46ad['order'],_0x4deee9=_0x5e8f20['getSelectionAffectedTableCells'](_0x14eb45),_0x33d64d=_0x5e8f20['getColumnIndexes'](_0x4deee9),_0x435e92=_0x29faee?_0x33d64d['first']-0x1:_0x33d64d['last']+0x1,_0x4f3db6=_0x4deee9[0x0]['findAncestor']('table'),_0x5bc090=_0x5e8f20['createTableWalker'](_0x4f3db6,{'startRow':0x0,'column':_0x435e92,'includeAllSlots':!0x1}),_0x1723ff=Array['from'](_0x5bc090)['map'](_0x42c8d3=>_0x51f4cf['createRangeOn'](_0x42c8d3['cell']));_0x4de84a['markMultiRangeInsertion'](_0x1723ff,'tableColumn');});});}for(const _0x1e29fd of['removeTableRow','removeTableColumn']){const _0x96c987=_0x1e29fd['substr'](0xb),_0x355424=_0x96c987['toLowerCase'](),_0x5e005e=_0x355424['substr'](0x0,0x3)+'span',_0x2b4712='table'+_0x96c987,_0xf11f66='min'+_0x96c987,_0x2794fe='max'+_0x96c987;_0x4de84a['enableCommand'](_0x1e29fd,()=>{_0x1ac6fa['model']['change'](_0x13f4c0=>{const _0x810fd0=_0x5e8f20['getSelectionAffectedTableCells'](_0x14eb45),_0x1d248d=_0x810fd0[0x0]['findAncestor']('table');let _0x43cac6;if('removeTableRow'==_0x1e29fd){const _0x752d59=_0x5e8f20['getRowIndexes'](_0x810fd0);_0x43cac6={'startRow':_0x752d59['first'],'endRow':_0x752d59['last'],'includeAllSlots':!0x0};}else{const _0x167272=_0x5e8f20['getColumnIndexes'](_0x810fd0);_0x43cac6={'startColumn':_0x167272['first'],'endColumn':_0x167272['last'],'includeAllSlots':!0x0};}const _0xb4863f=_0x5e8f20['createTableWalker'](_0x1d248d,_0x43cac6),_0x52c254=Array['from'](_0xb4863f)['map'](({cell:_0x394399})=>_0x394399),_0x11bef1=xe(_0x52c254['filter'](_0x1222c6=>_0x1222c6['hasAttribute'](_0x5e005e))),_0x59a43b=xe(_0x52c254['filter'](_0x5bb575=>!_0x5bb575['hasAttribute'](_0x5e005e)))['map'](_0x103dbe=>_0x13f4c0['createRangeOn'](_0x103dbe)),_0x21c7ef=_0x4de84a['markMultiRangeDeletion'](_0x59a43b,_0x2b4712);if(_0x21c7ef&&('tableRow'==_0x21c7ef['subType']||'tableColumn'==_0x21c7ef['subType'])){const _0x208ebe=this['_getSuggestionCoords'](_0x21c7ef);for(const _0x22c521 of _0x11bef1){const _0x2a9fcb=_0x13f4c0['createRangeOn'](_0x22c521),_0x4f8b0d=_0x5e8f20['getCellLocation'](_0x22c521),_0x428b56=_0x22c521['getAttribute'](_0x5e005e)-0x1,_0x497152=_0x208ebe[_0xf11f66],_0x33f43c=_0x208ebe[_0x2794fe];_0x497152<=_0x4f8b0d[_0x355424]&&_0x4f8b0d[_0x355424]+_0x428b56<=_0x33f43c&&_0x21c7ef['addRange'](_0x2a9fcb);}}});});}function _0x612739(_0x1321da){const _0x2a4fd9=Array['from'](_0x14eb45['getRanges']())['map'](_0x23cc61=>_0xf8fd8e['fromRange'](_0x23cc61));_0x1ac6fa['model']['change'](_0x4b13cb=>{const _0x118b2d=_0x4b13cb['batch'];_0x1321da=_0x1321da['filter'](_0x25d9a9=>'$graveyard'!=_0x25d9a9['root']['rootName']),_0x4b13cb['setSelection'](_0x1321da),_0x1ac6fa['commands']['get']('removeTableRow')['refresh'](),_0x1ac6fa['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1ac6fa['model']['enqueueChange'](()=>{_0x1ac6fa['model']['enqueueChange'](_0x118b2d,_0x3d7362=>{const _0x432eaf=_0x2a4fd9['filter'](_0x50ace4=>'$graveyard'!=_0x50ace4['root']['rootName']);_0x432eaf['length']>0x0&&_0x3d7362['setSelection'](_0x432eaf);for(const _0x2acbfb of _0x2a4fd9)_0x2acbfb['detach']();});});});}function _0x3df8e3(_0x353eee){_0x1ac6fa['model']['change'](_0x33a075=>{const _0x51d603=Array['from'](_0x14eb45['getRanges']())['map'](_0x5e4f4d=>_0xf8fd8e['fromRange'](_0x5e4f4d)),_0x4a3bc2=[];for(const _0x3397f2 of _0x353eee)for(const _0x5ffab0 of _0x3397f2['getItems']({'shallow':!0x0}))_0x4a3bc2['push'](_0x5ffab0);for(const _0x1d5abb of _0x4a3bc2)'$graveyard'!=_0x1d5abb['root']['rootName']&&(_0x33a075['setSelection'](_0x33a075['createPositionAt'](_0x1d5abb,0x0)),_0x1ac6fa['commands']['get']('removeTableColumn')['refresh'](),_0x1ac6fa['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5d2ce3=_0x51d603['filter'](_0x470b90=>'$graveyard'!=_0x470b90['root']['rootName']);_0x5d2ce3['length']>0x0&&_0x33a075['setSelection'](_0x5d2ce3);for(const _0x187b5e of _0x51d603)_0x187b5e['detach']();});}function _0x16698a(_0x1e70ca,_0x36482b){return _0x36482b['every'](_0xf26210=>_0x1e70ca['some'](_0x734679=>_0x734679['end']['isEqual'](_0xf26210['start'])||_0xf26210['end']['isEqual'](_0x734679['start'])));}function _0x438540(_0x159fc8,_0x33c2ff){return!_0x159fc8['some'](_0x2b5e01=>_0x33c2ff['some'](_0x365df8=>_0x2b5e01['isIntersecting'](_0x365df8)))&&_0x159fc8['some'](_0x4b35e1=>_0x33c2ff['some'](_0x4071ef=>_0x4b35e1['end']['isTouching'](_0x4071ef['start'])));}_0x1ac6fa['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3cdbc3,_0x172e10,_0x4088e4)=>{if(!_0x4088e4['options']['showSuggestionHighlights'])return;const _0x189775=_0x172e10['item'];if(!_0x189775||!_0x189775['is']('element','tableCell'))return;const _0x5f26bd=_0x4088e4['mapper']['toViewElement'](_0x189775);if(_0x5f26bd){const {id:_0x4b6728,authorId:_0x4ac999}=_0x4de84a['_splitMarkerName'](_0x172e10['markerName']);_0x47633e(_0x5f26bd,_0x4088e4['writer'],(_0x41889f,_0x55c86c,_0x22804a)=>{_0x22804a['addClass'](_0x27a1f0(_0x55c86c['classes']),_0x41889f),_0x22804a['setAttribute']('data-suggestion-id',_0x4b6728,_0x41889f),_0x22804a['setAttribute']('data-author-id',_0x4ac999,_0x41889f);},(_0xdc7e16,_0x347aab,_0x357b32)=>{_0x357b32['removeClass'](_0x27a1f0(_0x347aab['classes']),_0xdc7e16),_0x357b32['removeAttribute']('data-suggestion-id',_0xdc7e16),_0x357b32['removeAttribute']('data-author-id',_0xdc7e16);});}},{'priority':'highest'}),_0x4de84a['descriptionFactory']['registerDescriptionCallback'](_0x34a97d=>{if('insertion'!=_0x34a97d['type']&&'deletion'!=_0x34a97d['type'])return;const _0x3f994f=_0x34a97d['getContainedElement']();if(null!=_0x3f994f&&_0x3f994f['is']('element','table')){if('insertion'==_0x34a97d['type']){const _0x4ca167=_0x34a97d['getItems']()['filter'](_0x37d619=>_0x37d619['is']('$textProxy'))['map'](_0x21b5c9=>_0x21b5c9['data']);if(_0x4ca167['length'])return{'type':'insertion','content':c(_0x2c5924,'*Insert:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ca167['join']('\x20')+'\x22'))};}if('deletion'==_0x34a97d['type']){const _0x5a5a78=_0x34a97d['getItems']()['filter'](_0x53cd46=>_0x53cd46['is']('$textProxy'))['map'](_0x560c81=>_0x560c81['data']);if(_0x5a5a78['length'])return{'type':'deletion','content':c(_0x2c5924,'*Remove:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a5a78['join']('\x20')+'\x22'))};}}}),_0x4de84a['descriptionFactory']['registerDescriptionCallback'](_0x5e4aca=>{if('tableRow'==_0x5e4aca['subType']){const _0x40cf76=_0x5e4aca['getItems']()['filter'](_0x425541=>_0x425541['is']('$textProxy'))['map'](_0x315904=>_0x315904['data']),_0x3fa884=this['_getSuggestionCoords'](_0x5e4aca),_0x7ab532=_0x3fa884['maxRow']-_0x3fa884['minRow']+0x1;if('insertion'==_0x5e4aca['type'])return _0x40cf76['length']?{'type':'insertion','content':c(_0x2c5924,'*Insert:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x7ab532,'\x22'+_0x40cf76['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2c5924,'*Insert:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_ROW',_0x7ab532))};if('deletion'==_0x5e4aca['type'])return _0x40cf76['length']?{'type':'deletion','content':c(_0x2c5924,'*Remove:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x7ab532,'\x22'+_0x40cf76['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2c5924,'*Remove:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_ROW',_0x7ab532))};}if('tableColumn'==_0x5e4aca['subType']){const _0x22f658=_0x5e4aca['getItems']()['filter'](_0x2ee117=>_0x2ee117['is']('$textProxy'))['map'](_0x16be57=>_0x16be57['data']),_0x1b8455=this['_getSuggestionCoords'](_0x5e4aca),_0x262f70=_0x1b8455['maxColumn']-_0x1b8455['minColumn']+0x1;if('insertion'==_0x5e4aca['type'])return _0x22f658['length']?{'type':'insertion','content':c(_0x2c5924,'*Insert:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x262f70,'\x22'+_0x22f658['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2c5924,'*Insert:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_COLUMN',_0x262f70))};if('deletion'==_0x5e4aca['type'])return _0x22f658['length']?{'type':'deletion','content':c(_0x2c5924,'*Remove:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x262f70,'\x22'+_0x22f658['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2c5924,'*Remove:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_COLUMN',_0x262f70))};}}),_0x4de84a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x612739),_0x4de84a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x612739),_0x4de84a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3df8e3),_0x4de84a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3df8e3),_0x4de84a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x16698a),_0x4de84a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x16698a),_0x4de84a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x438540),_0x4de84a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x438540);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4157ba=this['editor'],_0x1c21a2=_0x4157ba['model']['document']['selection'];return(_0x56825e,_0x4da825)=>{_0x4157ba['model']['change'](_0x81a35a=>{const {commandName:_0x3fb02a,commandParams:_0x2f5871}=_0x4da825;let _0x328cc0=_0x56825e[0x0]['end']['nodeBefore'];_0x2f5871&&_0x2f5871[0x0]&&!0x1===_0x2f5871[0x0]['forceValue']&&(_0x328cc0=_0x56825e[0x0]['start']['nodeAfter']);const _0x437953=_0x81a35a['createRangeIn'](_0x328cc0);if('$graveyard'==_0x437953['root']['rootName'])return;const _0x333d31=Array['from'](_0x1c21a2['getRanges']())['map'](_0x259c4b=>_0xf8fd8e['fromRange'](_0x259c4b));_0x81a35a['setSelection'](_0x437953),_0x4157ba['commands']['get'](_0x3fb02a)['refresh'](),_0x2f5871['push']({'forceDefaultExecution':!0x0}),_0x4157ba['execute'](_0x3fb02a,..._0x2f5871);const _0x10cf2a=_0x333d31['filter'](_0x2c1596=>'$graveyard'!=_0x2c1596['root']['rootName']);_0x10cf2a['length']>0x0&&_0x81a35a['setSelection'](_0x10cf2a);for(const _0x1977ba of _0x333d31)_0x1977ba['detach']();});};}['_getCoordsForCells'](_0x172cc8){const _0x1b0d48=this['editor']['plugins']['get']('TableUtils');let _0x1300cf=Number['MAX_SAFE_INTEGER'],_0x5df975=Number['MIN_SAFE_INTEGER'],_0x2680df=Number['MAX_SAFE_INTEGER'],_0x288ee8=Number['MIN_SAFE_INTEGER'];for(const _0x4042de of _0x172cc8){if('$graveyard'==_0x4042de['root']['rootName'])continue;const {row:_0x27e2c8,column:_0x4ce7b7}=_0x1b0d48['getCellLocation'](_0x4042de),_0x3a9c44=_0x4042de['hasAttribute']('rowspan')?_0x4042de['getAttribute']('rowspan')-0x1:0x0,_0x249093=_0x4042de['hasAttribute']('colspan')?_0x4042de['getAttribute']('colspan')-0x1:0x0;_0x1300cf=_0x27e2c8<_0x1300cf?_0x27e2c8:_0x1300cf,_0x5df975=_0x27e2c8+_0x3a9c44>_0x5df975?_0x27e2c8+_0x3a9c44:_0x5df975,_0x2680df=_0x4ce7b7<_0x2680df?_0x4ce7b7:_0x2680df,_0x288ee8=_0x4ce7b7+_0x249093>_0x288ee8?_0x4ce7b7+_0x249093:_0x288ee8;}return{'minRow':_0x1300cf,'maxRow':_0x5df975,'minColumn':_0x2680df,'maxColumn':_0x288ee8};}['_setupColumnsRowsFixing'](){const _0x31fa3b=this['editor'],_0x85c830=_0x31fa3b['plugins']['get']('TrackChangesEditing'),_0x45f4b8=_0x31fa3b['plugins']['get']('TableUtils');_0x31fa3b['model']['document']['on']('change:data',()=>{const _0x589a62=Array['from'](_0x31fa3b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc8fd34,data:_0x226998}of _0x589a62){const {group:_0x3bd835,id:_0x5d08a0,subType:_0x80c624}=_0x85c830['_splitMarkerName'](_0xc8fd34);if('suggestion'!=_0x3bd835)continue;if(null!=_0x226998['oldRange'])continue;const _0x414fb8=_0x85c830['getSuggestion'](_0x5d08a0);this['_tablePostFixingSubtypes']['includes'](_0x80c624)&&this['_tableSuggestions']['add'](_0x414fb8);}},{'priority':'low'});const _0xdbd83d=(_0x377b77,_0x4062b4)=>{let _0x504e89=!0x1;const _0x37bfb5=_0x4062b4['createRangeOn'](_0x377b77),_0x535600=_0x377b77['findAncestor']('table'),_0xd685ae=_0x45f4b8['getCellLocation'](_0x377b77);for(const _0x1effc9 of this['_tableSuggestions']){const _0x4f436d=_0x1effc9['subType'],_0x1dfd75=_0x4f436d['startsWith']('tablePaste'),_0x3e6282=_0x4f436d['substr'](_0x1dfd75?0xa:0x5),_0x40ba11=_0x3e6282['toLowerCase'](),_0x522894=_0x40ba11['substr'](0x0,0x3)+'span',_0x722cd='min'+_0x3e6282,_0x3ae7f3='max'+_0x3e6282;if(!_0x1effc9['isInContent'])continue;if(_0x535600!=_0x1effc9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1effc9['isIntersectingWithRange'](_0x37bfb5))continue;const _0x45e7ba=_0x377b77['hasAttribute'](_0x522894)?_0x377b77['getAttribute'](_0x522894)-0x1:0x0,_0x308405=this['_getSuggestionCoords'](_0x1effc9),_0x1a29d4=_0x308405[_0x722cd],_0x3c0b48=_0x308405[_0x3ae7f3];_0x1a29d4<=_0xd685ae[_0x40ba11]&&_0xd685ae[_0x40ba11]+_0x45e7ba<=_0x3c0b48&&(_0x1effc9['addRange'](_0x37bfb5),_0x504e89=!0x0);}return _0x504e89;};_0x31fa3b['model']['document']['registerPostFixer'](_0x3f5253=>{let _0x5bbcd0=!0x1;for(const _0x4dd04b of _0x31fa3b['model']['document']['differ']['getChanges']())if('insert'==_0x4dd04b['type']){if('tableRow'==_0x4dd04b['name']){for(const _0x1a6426 of _0x4dd04b['position']['nodeAfter']['getChildren']())_0x5bbcd0=_0x5bbcd0||_0xdbd83d(_0x1a6426,_0x3f5253);}else'tableCell'==_0x4dd04b['name']&&(_0x5bbcd0=_0x5bbcd0||_0xdbd83d(_0x4dd04b['position']['nodeAfter'],_0x3f5253));}return _0x5bbcd0;});}['_getSuggestionCoords'](_0x16398e){return this['_getCoordsForCells'](_0x16398e['getRanges']()['map'](_0x36079e=>_0x36079e['start']['nodeAfter']));}}function xe(_0x1926e0){return Array['from'](new Set(_0x1926e0)['values']());}class Nt extends _0x121524{static get['requires'](){return[Ct];}['afterInit'](){const _0x5588be=this['editor'],_0x1645de=_0x5588be['model']['document']['selection'],_0x4f207a=_0x5588be['locale'];if(!_0x5588be['plugins']['has']('TableEditing'))return;const _0x56b204=_0x5588be['plugins']['get']('TrackChangesEditing'),_0x23030c=_0x5588be['plugins']['get']('TableUtils'),_0x10f601=_0x5588be['plugins']['get'](Ct);_0x10f601['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x56b204['enableCommand']('mergeTableCells',()=>{const _0x5227df=_0x23030c['getSelectionAffectedTableCells'](_0x5588be['model']['document']['selection']);_0x5588be['model']['change'](()=>{_0x56b204['markMultiRangeBlockFormat'](_0x5227df,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5588be['commands']['get']('mergeTableCells')['on']('execute',(_0x2b2d8,_0x56bb29)=>{_0x5588be['commands']['get']('trackChanges')['value']&&(_0x56bb29['length']>0x0&&_0x56bb29[_0x56bb29['length']-0x1]&&_0x56bb29[_0x56bb29['length']-0x1]['forceDefaultExecution']||_0x56b204['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2b2d8['stop']());},{'priority':'highest'});for(const _0x3bf8dc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x280397=_0x5588be['commands']['get'](_0x3bf8dc);_0x56b204['enableCommand'](_0x3bf8dc,()=>{const _0x2dcb25=_0x5588be['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x594357=>_0x594357['is']('element','tableCell')),_0x3bda28=_0x280397['value'];_0x5588be['model']['change'](()=>{_0x56b204['markMultiRangeBlockFormat']([_0x2dcb25,_0x3bda28],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x17d3c7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5988b2=_0x5588be['commands']['get'](_0x17d3c7);_0x56b204['enableCommand'](_0x17d3c7,()=>{const _0x4a4a48=_0x23030c['getSelectionAffectedTableCells'](_0x5588be['model']['document']['selection'])[0x0],_0x34a391=_0x4a4a48['findAncestor']('table'),{column:_0x34b3aa,row:_0x595477}=_0x23030c['getCellLocation'](_0x4a4a48);let _0x39a935=[];if('horizontally'==_0x5988b2['direction']){const _0x266d21=_0x23030c['createTableWalker'](_0x34a391,{'startRow':_0x595477,'endRow':_0x595477,'includeAllSlots':!0x0});_0x39a935=Array['from'](_0x266d21)['map'](_0x5dd12e=>_0x5dd12e['cell']);}else{const _0x56dc5f=_0x23030c['createTableWalker'](_0x34a391,{'column':_0x34b3aa,'includeAllSlots':!0x0});_0x39a935=Array['from'](_0x56dc5f)['map'](_0x10fecf=>_0x10fecf['cell']);}_0x5588be['model']['change'](_0x36c05e=>{_0x56b204['markBlockFormat'](_0x36c05e['createRangeOn'](_0x4a4a48),{'commandName':_0x17d3c7,'commandParams':[]},_0x39a935,_0x17d3c7);});});}_0x56b204['descriptionFactory']['registerDescriptionCallback'](_0x3ef2b8=>{if('formatBlock'!=_0x3ef2b8['type']&&'formatInline'!=_0x3ef2b8['type'])return;const {data:_0x34a2f1}=_0x3ef2b8;return _0x34a2f1&&'mergeTableCells'==_0x34a2f1['commandName']?{'type':'format','content':c(_0x4f207a,'*Merge\x20cells*')}:void 0x0;}),_0x56b204['descriptionFactory']['registerDescriptionCallback'](_0x1ab9f2=>{if('formatBlock'!=_0x1ab9f2['type']&&'formatInline'!=_0x1ab9f2['type'])return;const {data:_0x8447d7}=_0x1ab9f2;return _0x8447d7?'splitTableCellVertically'==_0x8447d7['commandName']?{'type':'format','content':c(_0x4f207a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x8447d7['commandName']?{'type':'format','content':c(_0x4f207a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x59518d=_0x10f601['_acceptFormatSuggestionCallbackFactory']();for(const _0x530ae1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x56b204['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x530ae1,'accept',_0x59518d);for(const _0x1fc5ad of['splitTableCellVertically','splitTableCellHorizontally'])_0x56b204['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1fc5ad,'accept',_0x59518d);_0x56b204['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x36be40=>{_0x5588be['model']['change'](_0x37118d=>{const _0x30253a=Array['from'](_0x1645de['getRanges']())['map'](_0x30a43e=>_0xf8fd8e['fromRange'](_0x30a43e));_0x37118d['setSelection'](_0x36be40),_0x5588be['commands']['get']('mergeTableCells')['refresh'](),_0x5588be['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xd28ca8=_0x30253a['filter'](_0x439ea9=>'$graveyard'!=_0x439ea9['root']['rootName']);_0xd28ca8['length']>0x0&&_0x37118d['setSelection'](_0xd28ca8);for(const _0x1330a1 of _0x30253a)_0x1330a1['detach']();});});for(const _0x5ef2d0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x563695=_0x5588be['commands']['get'](_0x5ef2d0);_0x563695['on']('set:isEnabled',(_0x190550,_0x54d588,_0x597b52)=>{if(_0x597b52){const _0xa58274=_0x5588be['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xb60ce1=>_0xb60ce1['is']('element','tableCell'));this['_areMergableCells'](_0x563695['value'],_0xa58274)||(_0x190550['return']=!0x1,_0x190550['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x33d75d=this['editor']['commands']['get']('mergeTableCells'),_0x2d05d9=this['editor']['plugins']['get']('TableUtils');if(!_0x33d75d['isEnabled'])return!0x1;const _0x21e3fc=_0x2d05d9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3d9eaf of _0x21e3fc)for(const _0xdc8af1 of _0x21e3fc)if(_0x3d9eaf!=_0xdc8af1&&!this['_areMergableCells'](_0x3d9eaf,_0xdc8af1))return!0x1;return!0x0;}['_areMergableCells'](_0x21a39a,_0x2ebf3c){const _0x1676b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13829b=this['editor']['model']['createRangeOn'](_0x21a39a),_0x411f83=this['editor']['model']['createRangeOn'](_0x2ebf3c),_0x5cbbc1=new Set(),_0x6cd945=new Set();for(const _0x90d803 of _0x1676b5['getSuggestions']())if(('insertion'==_0x90d803['type']||'deletion'==_0x90d803['type']||'mergeTableCells'==_0x90d803['subType'])&&_0x90d803['isInContent']){for(const _0x415e40 of _0x90d803['getRanges']())_0x415e40['containsRange'](_0x13829b,!0x0)&&_0x5cbbc1['add'](_0x90d803['type']+':'+_0x90d803['author']['id']),_0x415e40['containsRange'](_0x411f83,!0x0)&&_0x6cd945['add'](_0x90d803['type']+':'+_0x90d803['author']['id']);}if(_0x5cbbc1['size']!=_0x6cd945['size'])return!0x1;for(const _0x118b27 of _0x5cbbc1)if(!_0x6cd945['has'](_0x118b27))return!0x1;return!0x0;}}class Dt extends _0x121524{static get['requires'](){return[Ct];}['afterInit'](){const _0x52b56e=this['editor'];if(!_0x52b56e['plugins']['has']('TableEditing'))return;const _0x39cde3=_0x52b56e['locale'],_0x2da537=_0x52b56e['plugins']['get']('TrackChangesEditing');_0x2da537['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2da537['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2da537['registerBlockAttribute']('headingRows'),_0x2da537['registerBlockAttribute']('headingColumns'),_0x2da537['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x39cde3,'FORMAT_HEADER_ROW')),_0x2da537['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x39cde3,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x17e466=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4611e5=this['editor']['plugins']['get']('TableUtils'),_0x4f6191=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3c9ad2({showActiveMarker:_0x3eb1ba=!0x0,setDataAttribute:_0x2d32e3=!0x0}={}){return(_0x46af84,_0x17d4bc,_0x41f400)=>{const {type:_0x4ab0a5,id:_0x4b0c72}=_0x17e466['_splitMarkerName'](_0x17d4bc['markerName']),_0x3aeb71=_0x17e466['getSuggestion'](_0x4b0c72),_0x1e59aa=_0x3aeb71['data'];if('formatBlock'!=_0x3aeb71['type']||!_0x1e59aa||'setTableColumnHeader'!=_0x1e59aa['commandName'])return;if(_0x17d4bc['item'])return void _0x46af84['stop']();if(!_0x41f400['consumable']['consume'](_0x17d4bc['markerRange'],_0x46af84['name']))return;const _0x3a9f00=_0x17d4bc['markerRange']['start']['nodeAfter'],_0x5f0ac7=_0x17d4bc['markerRange']['end']['nodeBefore'],_0xb7c9c2=_0x3a9f00['parent']['parent'],{column:_0x1b4fef}=_0x4611e5['getCellLocation'](_0x3a9f00),{column:_0x28b722}=_0x4611e5['getCellLocation'](_0x5f0ac7);for(let _0x4b7754=_0x1b4fef;_0x4b7754<=_0x28b722;_0x4b7754++){const _0x26b31e=_0x4611e5['createTableWalker'](_0xb7c9c2,{'column':_0x4b7754,'includeAllSlots':!0x1});for(const _0x3e8ee1 of _0x26b31e){const _0x3e8445=_0x3e8ee1['cell'],_0x4c038b=_0x41f400['mapper']['toViewElement'](_0x3e8445);_0x41f400['writer']['addClass']('ck-suggestion-marker-'+_0x4ab0a5,_0x4c038b),_0x2d32e3&&_0x41f400['writer']['setAttribute']('data-suggestion',_0x4b0c72,_0x4c038b),_0x41f400['mapper']['bindElementToMarker'](_0x4c038b,_0x17d4bc['markerName']),_0x3eb1ba&&(_0x17e466['activeMarkers']['includes'](_0x17d4bc['markerName'])?_0x41f400['writer']['addClass']('ck-suggestion-marker--active',_0x4c038b):_0x41f400['writer']['removeClass']('ck-suggestion-marker--active',_0x4c038b));}}};}_0x17e466['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4f6191),_0x17e466['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4f6191),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3c9ad2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24901f,_0x3f3af6,_0x2560de)=>{_0x2560de['options']['showSuggestionHighlights']&&_0x3c9ad2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x24901f,_0x3f3af6,_0x2560de);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x428c3b,_0x36304c,_0x328976)=>{const {type:_0x2283c2,id:_0x133044}=_0x17e466['_splitMarkerName'](_0x36304c['markerName']),_0x3d7485=_0x17e466['getSuggestion'](_0x133044),_0x4da0c5=_0x3d7485['data'];if('formatBlock'!=_0x3d7485['type']||!_0x4da0c5||'setTableColumnHeader'!=_0x4da0c5['commandName'])return;const _0x1fab38=_0x328976['mapper']['markerNameToElements'](_0x36304c['markerName']);if(_0x1fab38){for(const _0x275ee7 of _0x1fab38)_0x328976['writer']['removeClass']('ck-suggestion-marker-'+_0x2283c2,_0x275ee7),_0x328976['writer']['removeClass']('ck-suggestion-marker--active',_0x275ee7),_0x328976['writer']['removeAttribute']('data-suggestion',_0x275ee7),_0x328976['mapper']['unbindElementFromMarkerName'](_0x275ee7,_0x36304c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x157306=this['editor'],_0x53a914=_0x157306['locale'];function _0x2d6c95(_0x363e74){return{'type':'format','content':c(_0x53a914,'*Format:*\x20%0',_0x363e74)};}_0x157306['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35837a=>{if('formatBlock'!=_0x35837a['type'])return;const {data:_0xa6fbb3}=_0x35837a;if(_0xa6fbb3){if('setTableRowHeader'==_0xa6fbb3['commandName']){const _0x3792e7=_0xa6fbb3['commandParams'][0x0]['forceValue'];return _0x2d6c95(c(_0x53a914,_0x3792e7?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xa6fbb3['commandName']){const _0x539068=_0xa6fbb3['commandParams'][0x0]['forceValue'];return _0x2d6c95(c(_0x53a914,_0x539068?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x121524{['afterInit'](){const _0x531b72=this['editor'],_0x5bce6d=_0x531b72['locale'],_0x331595=_0x531b72['plugins']['get']('TrackChangesEditing');function _0x508e86(_0xa0e657){return{'type':'format','content':''+c(_0x5bce6d,'*Set\x20table\x20type:*\x20%0',_0xa0e657)};}_0x531b72['plugins']['has']('TableLayout')&&(_0x331595['enableCommand']('insertTableLayout'),_0x331595['enableDefaultAttributesIntegration']('tableType'),_0x331595['registerBlockAttribute']('tableType'),_0x331595['descriptionFactory']['registerElementLabel'](_0xff9e9b=>_0xff9e9b['is']('element','table')&&'layout'===_0xff9e9b['getAttribute']('tableType'),_0x4f520c=>c(_0x5bce6d,'ELEMENT_LAYOUT_TABLE',_0x4f520c)),_0x331595['descriptionFactory']['registerDescriptionCallback'](_0x16e4ac=>{const {data:_0x19c34a}=_0x16e4ac;if(_0x19c34a&&'tableType'==_0x19c34a['key'])switch(_0x19c34a['newValue']){case'layout':return _0x508e86(c(_0x5bce6d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x508e86(c(_0x5bce6d,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x5e9563=>[_0x5e9563,null]));class $t extends _0x121524{static get['requires'](){return[Ct];}['afterInit'](){const _0x329652=this['editor'];if(!_0x329652['plugins']['has']('TableClipboard'))return;const _0x571dff=_0x329652['plugins']['get']('TrackChangesEditing'),_0x9cdad2=_0x329652['plugins']['get']('TableUtils'),_0x492bd5=_0x329652['plugins']['get'](Ct),_0x94f29c=_0x329652['plugins']['get']('TableClipboard'),_0x286e9c=_0x329652['plugins']['get']('TableSelection'),_0x52844b=_0x329652['plugins']['get'](_0x5ab88f);_0x492bd5['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x329652['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x329652['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4820b4=null,_0x180249=!0x1;_0x52844b['on']('contentInsertion',(_0x4ef4a9,_0x238933)=>{_0x180249='paste'===_0x238933['method'];}),_0x329652['model']['on']('insertContent',(_0x28263e,_0x430e8e)=>{if(!_0x180249&&null===_0x286e9c['getSelectedTableCells']())return;const [_0x5a1827,_0xb2b875]=_0x430e8e,_0xeb4a42=_0x430e8e[_0x430e8e['length']-0x1];_0xeb4a42&&_0xeb4a42['forceDefaultExecution']||_0x571dff['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x14e6c3,_0x2b784b,_0x355050,_0x190c5f,_0x5b01c3){if(_0x2b784b&&!_0x2b784b['is']('documentSelection'))return!0x1;const _0x1785f2=_0x5b01c3['getTableIfOnlyTableInContent'](_0x14e6c3,_0x355050);if(!_0x1785f2||!He(_0x1785f2,void 0x0,_0x190c5f))return!0x1;const _0x315f4d=_0x190c5f['getSelectionAffectedTableCells'](_0x355050['document']['selection']);if(!_0x315f4d['length'])return!0x1;const _0xf4e859=_0x315f4d[0x0]['findAncestor']('table'),_0x3921fd=_0x190c5f['getRowIndexes'](_0x315f4d),_0x37ed07=_0x190c5f['getColumnIndexes'](_0x315f4d),_0x151f05={'startRow':_0x3921fd['first'],'endRow':_0x3921fd['last'],'startColumn':_0x37ed07['first'],'endColumn':_0x37ed07['last']};return 0x1==_0x315f4d['length']&&(_0x151f05['endRow']+=_0x190c5f['getRows'](_0x1785f2)-0x1,_0x151f05['endColumn']+=_0x190c5f['getColumns'](_0x1785f2)-0x1),He(_0xf4e859,_0x151f05,_0x190c5f);}(_0x5a1827,_0xb2b875,_0x329652['model'],_0x9cdad2,_0x94f29c)&&(_0x28263e['stop'](),_0x4820b4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x329652['model']['change'](()=>{_0x329652['model']['insertContent'](_0x430e8e[0x0],_0x430e8e[0x1],_0x430e8e[0x2],{'forceDefaultExecution':!0x0});const _0x4c7cc2=_0x25ef3d(),{rowInsertionRanges:_0x2b3983,columnInsertionRanges:_0x42ce02,insertionRanges:_0x43396f,deletionRanges:_0x17e34c,cells:_0x107ab0}=_0x4820b4;_0x2b3983['length']&&_0x571dff['markMultiRangeInsertion'](_0x2b3983,'tablePasteRow',{'tablePasteChainId':_0x4c7cc2}),_0x42ce02['length']&&_0x571dff['markMultiRangeInsertion'](_0x42ce02,'tablePasteColumn',{'tablePasteChainId':_0x4c7cc2}),_0x43396f['length']&&(_0x571dff['markMultiRangeInsertion'](_0x43396f,'tablePaste',{'tablePasteChainId':_0x4c7cc2,'skipNestingCheck':!0x0}),_0x43396f['forEach'](_0x548623=>_0x548623['detach']?.())),_0x17e34c['length']&&(_0x571dff['markMultiRangeDeletion'](_0x17e34c,'tablePaste',{'tablePasteChainId':_0x4c7cc2,'skipNestingCheck':!0x0}),_0x17e34c['forEach'](_0x3ff555=>_0x3ff555['detach']?.()));const _0x4b3cb4=_0x571dff['markMultiRangeBlockFormat'](_0x107ab0['map'](({element:_0x192d99})=>_0x192d99),{'formatGroupId':_0x25ef3d()},[],'tablePasteCell',{'tablePasteChainId':_0x4c7cc2});if(_0x4b3cb4){const _0x19919e=_0x4b3cb4['getMarkers'](),_0x87a6d4=[];for(const {element:_0x57e311,attributes:_0x3df483}of _0x107ab0){if(!_0x3df483)continue;const _0x46721a=_0x329652['model']['createRangeOn'](_0x57e311),_0x1528ce=_0x19919e['find'](_0x1444d8=>_0x1444d8['getRange']()['isEqual'](_0x46721a));_0x1528ce&&_0x87a6d4['push']([_0x1528ce['name'],_0x3df483]);}_0x87a6d4['length']&&_0x4b3cb4['setAttribute']('markerAttributes',Object['fromEntries'](_0x87a6d4));}_0x4820b4=null;}));},{'priority':_0x84b019['high']+0xa}),_0x52844b['on']('contentInsertion',()=>{_0x180249=!0x1;},{'priority':'lowest'}),_0x329652['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x341921,_0x1858a7)=>{const [_0x30b400,_0x2aa3ce,,_0x4f84cd]=_0x1858a7;if(!_0x4820b4)return;_0x341921['stop']();const _0x4d2f65=_0x30b400['cell'],_0x1fcba1=_0x2aa3ce,_0x3640cf=De(_0x4d2f65),_0x389122=De(_0x1fcba1);_0x341921['return']=_0x4d2f65;let _0x5d4af4=null,_0x1019bc=null;if(_0x389122||_0x3640cf){if(_0x3640cf&&!_0x389122){_0x4f84cd['remove'](_0x4d2f65['getChild'](0x0));for(const _0x1284e2 of Array['from'](_0x1fcba1['getChildren']()))_0x4f84cd['insert'](_0x1284e2,_0x4d2f65,'end');const _0x2b57b0=_0x4820b4['rowInsertionIndexes']['includes'](_0x30b400['row']),_0x50b4bb=_0x4820b4['columnInsertionIndexes']['includes'](_0x30b400['column']);_0x2b57b0||_0x50b4bb||(_0x5d4af4=_0xf8fd8e['fromRange'](_0x4f84cd['createRangeIn'](_0x4d2f65)));}else _0x389122&&!_0x3640cf&&(_0x1019bc=_0x4f84cd['createRangeIn'](_0x4d2f65));}else{const _0x18b5f0=_0x4f84cd['createElement']('tableCellSuggestion'),_0x5601aa=_0x4f84cd['createElement']('tableCellSuggestion');_0x4f84cd['wrap'](_0x4f84cd['createRangeIn'](_0x4d2f65),_0x5601aa),_0x4f84cd['insert'](_0x18b5f0,_0x4d2f65,0x0);for(const _0x4985ca of Array['from'](_0x1fcba1['getChildren']()))_0x4f84cd['insert'](_0x4985ca,_0x18b5f0,'end');_0x5d4af4=_0xf8fd8e['fromRange'](_0x4f84cd['createRangeOn'](_0x18b5f0)),_0x1019bc=_0xf8fd8e['fromRange'](_0x4f84cd['createRangeOn'](_0x5601aa));}const _0x47120=Array['from'](_0x1fcba1['getAttributes']())['filter'](([_0x33e4d2])=>Oe['includes'](_0x33e4d2));_0x4820b4['cells']['push']({'element':_0x4d2f65,'attributes':_0x47120['length']?Object['fromEntries'](_0x47120):null}),_0x5d4af4&&_0x4820b4['insertionRanges']['push'](_0x5d4af4),_0x1019bc&&_0x4820b4['deletionRanges']['push'](_0x1019bc);},{'priority':'high'}),_0x9cdad2['on']('insertColumns',(_0x45acf5,_0x112b24)=>{const [_0x5afbd1,_0xaf8903={}]=_0x112b24;if(!_0x4820b4)return;const _0x3fed19=_0xaf8903['at']||0x0,_0x3e5e8d=_0xaf8903['columns']||0x1;_0x4820b4['columnInsertionIndexes']=new Array(_0x3e5e8d)['fill'](_0x3fed19)['map']((_0x246c7f,_0x223131)=>_0x246c7f+_0x223131);for(const {cell:_0x3160c2}of _0x9cdad2['createTableWalker'](_0x5afbd1,{'startColumn':_0x3fed19,'endColumn':_0x3fed19+_0x3e5e8d-0x1}))_0x4820b4['columnInsertionRanges']['push'](_0x329652['model']['createRangeOn'](_0x3160c2));},{'priority':'low'}),_0x9cdad2['on']('insertRows',(_0x53d4d2,_0x1c2f1d)=>{const [_0x60d14,_0x40aa86={}]=_0x1c2f1d;if(!_0x4820b4)return;const _0x2de44c=_0x40aa86['at']||0x0,_0x7dd7e6=_0x40aa86['rows']||0x1;_0x4820b4['rowInsertionIndexes']=new Array(_0x7dd7e6)['fill'](_0x2de44c)['map']((_0x438c33,_0x132e30)=>_0x438c33+_0x132e30);for(const {cell:_0x365c3f}of _0x9cdad2['createTableWalker'](_0x60d14,{'startRow':_0x2de44c,'endRow':_0x2de44c+_0x7dd7e6-0x1}))_0x4820b4['rowInsertionRanges']['push'](_0x329652['model']['createRangeOn'](_0x365c3f));},{'priority':'low'}),_0x571dff['descriptionFactory']['registerDescriptionCallback'](_0x5d8733=>{if(_0x5d8733['subType']&&_0x5d8733['subType']['startsWith']('tablePaste'))return _0x5d8733['previous']?{}:{'type':'insertion','content':c(_0x329652['locale'],'*Replace\x20table\x20cells*')};});const _0x1346f2=()=>!0x1;for(const _0x5d143f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x571dff['_suggestionFactory']['registerCustomCallback']('insertion',_0x5d143f,'join',_0x1346f2),_0x571dff['_suggestionFactory']['registerCustomCallback']('deletion',_0x5d143f,'join',_0x1346f2),_0x571dff['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d143f,'join',_0x1346f2);_0x571dff['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1346f2),_0x571dff['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3e36fe,_0x56ee9b,_0x443e8b)=>{const _0x40a521=_0x3e36fe['map'](_0x2ef197=>_0x2ef197['getContainedElement']())['filter'](_0x459152=>_0x459152),_0x2636ff=new Map(_0x40a521['map'](_0x10e703=>[_0x10e703,null]));if(_0x4820b4){for(const {element:_0x404c3c,attributes:_0x2cf243}of _0x4820b4['cells'])_0x2cf243&&_0x2636ff['set'](_0x404c3c,_0x2cf243);}else{if(_0x443e8b&&_0x443e8b['markerAttributes'])for(const [_0x2c44cc,_0x5d5d3e]of Object['entries'](_0x443e8b['markerAttributes'])){const _0x1e69c9=_0x329652['model']['markers']['get'](_0x2c44cc),_0x3c23b7=_0x1e69c9?_0x1e69c9['getRange']()['getContainedElement']():null;_0x3c23b7&&_0x2636ff['set'](_0x3c23b7,_0x5d5d3e);}}_0x329652['model']['change'](_0x1cec0f=>{for(const [_0x4069a4,_0xac534f]of _0x2636ff)_0x1cec0f['setAttributes']({...Ue,..._0xac534f},_0x4069a4);});});const _0x581e40=(_0x49e373,_0x502934)=>{_0x571dff['_suggestionFactory']['registerCustomCallback'](_0x49e373,'tablePaste',_0x502934,(_0x1999d1,_0x218e95,_0x40e3fc)=>{_0x329652['model']['change'](_0x10cd7e=>{const _0x33ce60=[];for(const _0x13f659 of _0x1999d1){const _0x30dff1=_0x13f659['start']['nodeAfter'];_0x30dff1['is']('element','tableCellSuggestion')&&_0x33ce60['push'](_0x30dff1);}_0x571dff['_suggestionFactory']['getSuggestionCallback'](_0x49e373,null,_0x502934)(_0x1999d1,_0x218e95,_0x40e3fc);for(const _0x454e4e of _0x33ce60)'$graveyard'!=_0x454e4e['root']['rootName']&&_0x10cd7e['unwrap'](_0x454e4e);});});};_0x581e40('insertion','accept'),_0x581e40('insertion','discard'),_0x581e40('deletion','accept'),_0x581e40('deletion','discard'),_0x571dff['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2d0f15=>{const _0x5bf359=_0x2d0f15['map'](_0x26cb28=>_0x26cb28['getContainedElement']()),_0xd73dbf=_0x5bf359[0x0]['findAncestor']('table'),{minRow:_0x326b90,maxRow:_0x2b639a}=_0x492bd5['_getCoordsForCells'](_0x5bf359);_0x9cdad2['removeRows'](_0xd73dbf,{'at':_0x326b90,'rows':_0x2b639a-_0x326b90+0x1});}),_0x571dff['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2e6ed2=>{const _0x379782=_0x2e6ed2['map'](_0x49082e=>_0x49082e['getContainedElement']()),_0x3593c7=_0x379782[0x0]['findAncestor']('table'),{minColumn:_0x227635,maxColumn:_0x3f46d6}=_0x492bd5['_getCoordsForCells'](_0x379782);_0x9cdad2['removeColumns'](_0x3593c7,{'at':_0x227635,'columns':_0x3f46d6-_0x227635+0x1});});const _0x359463=(_0x462117,_0x443a8b)=>{if(!_0x443a8b['subType']||!_0x443a8b['subType']['startsWith']('tablePaste'))return;const _0x7eee35=_0x443a8b['attributes']['tablePasteChainId'],_0x1c0cf7=_0x571dff['getSuggestions']()['filter'](_0x2db9ba=>_0x2db9ba['isInContent']&&_0x2db9ba['attributes']&&_0x2db9ba['attributes']['tablePasteChainId']==_0x7eee35);_0x1c0cf7['length']&&_0x443a8b['getAllAdjacentSuggestions']()['length']!=_0x1c0cf7['length']&&_0x1c0cf7['reduce']((_0x1ba667,_0xce11cf)=>(_0x1ba667['next']=_0xce11cf,_0xce11cf['previous']=_0x1ba667,_0xce11cf));};function _0x283138(_0x520685,_0x245d27=!0x0){const {id:_0x2f7c3b,authorId:_0x4685da}=_0x571dff['_splitMarkerName'](_0x520685['markerName']),_0x19c65a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5b5043=_0x571dff['activeMarkers']['includes'](_0x520685['markerName']);return _0x5b5043&&_0x19c65a['push']('ck-suggestion-marker--active'),{'classes':_0x19c65a,'attributes':{'data-suggestion':_0x2f7c3b,'data-author-id':_0x4685da},'priority':_0x5b5043&&_0x245d27?0xbc2:0xbb8};}_0x571dff['on']('suggestionLoaded',_0x359463,{'priority':'high'}),_0x571dff['on']('suggestionUnloaded',_0x359463,{'priority':'high'}),_0x329652['model']['document']['registerPostFixer'](()=>{let _0xdec06c=!0x1;const _0x51280f=Array['from'](_0x329652['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54f9ee,data:_0x62031a}of _0x51280f){const {group:_0x2b1ad5,type:_0x315fa1,id:_0x3c7a1f}=_0x571dff['_splitMarkerName'](_0x54f9ee);if('suggestion'!=_0x2b1ad5||'deletion'!=_0x315fa1||_0x62031a['oldRange'])continue;if(!_0x571dff['hasSuggestion'](_0x3c7a1f))continue;const _0x4fe0da=_0x571dff['getSuggestion'](_0x3c7a1f)['getRanges'](),_0x5524f2=_0x329652['plugins']['get']('Users')['me'];for(const _0x3fca90 of _0x571dff['getSuggestions']()){if(!_0x3fca90['isInContent']||_0x3fca90['author']!=_0x5524f2)continue;if('formatBlock'!=_0x3fca90['type']||'tablePasteCell'!=_0x3fca90['subType'])continue;if(_0x3fca90['getRanges']()['every'](_0x13ea3d=>_0x4fe0da['some'](_0x3b1941=>_0x3b1941['containsRange'](_0x13ea3d,!0x0)))){for(const _0x7372e6 of _0x3fca90['getAllAdjacentSuggestions']())_0x7372e6['isInContent']&&(_0x7372e6['discard'](),_0xdec06c=!0x0);}}}return _0xdec06c;}),_0x329652['model']['document']['registerPostFixer'](_0x75795a=>{const _0x26a6ce=_0x329652['commands']['get']('redo');if(!_0x26a6ce||!_0x26a6ce['_createdBatches']['has'](_0x75795a['batch']))return!0x1;let _0x4cbaf2=!0x1;const _0x332fd1=_0x329652['plugins']['get']('Users')['me'],_0x54630e=_0x329652['model']['document']['differ']['getChanges'](),_0x208bd4=Array['from'](_0x329652['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x245ae2,data:_0x1e7cd9})=>{const {group:_0x1779f4,subType:_0x2396d0,authorId:_0x51bc13}=_0x571dff['_splitMarkerName'](_0x245ae2);return'suggestion'==_0x1779f4&&'tablePaste'==_0x2396d0&&_0x51bc13==_0x332fd1['id']&&!_0x1e7cd9['oldRange'];});for(const _0x2b2253 of _0x54630e){if('insert'!=_0x2b2253['type']||'tableCellSuggestion'!=_0x2b2253['name']||0x1!=_0x2b2253['length'])continue;const _0x5e4add=_0x75795a['createRange'](_0x2b2253['position'],_0x2b2253['position']['getShiftedBy'](0x1));if(!_0x208bd4['find'](({data:_0x4a3b4d})=>_0x4a3b4d['newRange']['isEqual'](_0x5e4add))){for(const {name:_0x48f519,data:_0x4d612b}of _0x208bd4)if(_0x5e4add['containsRange'](_0x4d612b['newRange'])){_0x75795a['updateMarker'](_0x48f519,{'range':_0x5e4add}),_0x4cbaf2=!0x0;break;}}}return _0x4cbaf2;}),_0x329652['model']['document']['registerPostFixer'](_0x4675c9=>{let _0x2b7cb8=!0x1;const _0x38aebd=_0x329652['plugins']['get']('Users')['me'],_0x1bdc43=_0x571dff['getSuggestions']()['filter'](_0x5f0e83=>_0x5f0e83['isInContent']&&_0x5f0e83['author']==_0x38aebd),_0x418bf8=new Set(),_0x520388=new Set();for(const _0x311440 of _0x1bdc43)if('tablePaste'==_0x311440['subType'])for(const _0x4bd9ef of _0x311440['getMarkers']()){const _0x4567a9=_0x4bd9ef['getRange']()['getContainedElement']();if(_0x4567a9){if(_0x4567a9['is']('element','tableCellSuggestion')&&De(_0x4567a9)){_0x311440['removeMarker'](_0x4bd9ef['name']),_0x418bf8['add'](_0x4567a9),_0x2b7cb8=!0x0;const _0x2c2243=_0x4567a9['nextSibling'],_0x2e6227=_0x4567a9['previousSibling'],_0x4f2c88=_0x2c2243&&_0x2c2243['is']('element','tableCellSuggestion'),_0x5c4ca2=_0x2e6227&&_0x2e6227['is']('element','tableCellSuggestion');_0x4f2c88&&!_0x418bf8['has'](_0x2c2243)&&_0x520388['add'](_0x2c2243),_0x5c4ca2&&!_0x418bf8['has'](_0x2e6227)&&_0x520388['add'](_0x2e6227);}else _0x4567a9['is']('element','paragraph')&&_0x4567a9['isEmpty']&&(_0x311440['removeMarker'](_0x4bd9ef['name']),_0x2b7cb8=!0x0);}}else{if('tablePasteCell'==_0x311440['subType']){if(!_0x311440['attributes']||!_0x311440['attributes']['tablePasteChainId'])continue;const _0x4fff33=_0x311440['attributes']['markerAttributes'];if(_0x4fff33&&Object['keys'](_0x4fff33)['length'])continue;const _0x25e82f=_0x311440['attributes']['tablePasteChainId'];let _0x456a8f=!0x0,_0xd9c70e=!0x0;for(const _0x515b65 of _0x1bdc43)if(_0x515b65['subType']&&_0x515b65['subType']['startsWith']('tablePaste')){if(!_0x515b65['attributes']['tablePasteChainId']){_0xd9c70e=!0x1;break;}if(_0x515b65['id']!=_0x311440['id']&&_0x515b65['attributes']['tablePasteChainId']==_0x25e82f){_0x456a8f=!0x1;break;}}_0xd9c70e&&_0x456a8f&&(_0x311440['removeMarkers'](),_0x2b7cb8=!0x0);}}for(const _0x2f17c3 of _0x418bf8)_0x4675c9['remove'](_0x2f17c3);for(const _0x52d3c1 of _0x520388)_0x4675c9['unwrap'](_0x52d3c1);return _0x2b7cb8;}),_0x329652['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x16818c=>_0x283138(_0x16818c),'converterPriority':'high'}),_0x329652['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x385b47,_0x530ed4)=>_0x530ed4['options']['showSuggestionHighlights']?_0x283138(_0x385b47,!0x1):null,'converterPriority':'high'});const _0x4dbbd2=_0x329652['editing']['view'];this['listenTo'](_0x4dbbd2['document'],'clipboardOutput',(_0xc7ba8f,_0x2aba33)=>{const _0x399d54=[];for(const _0x3c7ea5 of _0x4dbbd2['createRangeIn'](_0x2aba33['content'])['getItems']())_0x3c7ea5['is']('element','suggestion-td')&&_0x399d54['push'](_0x3c7ea5);_0x4dbbd2['change'](_0x54f2c9=>{for(const _0xac78f3 of _0x399d54)_0x54f2c9['move'](_0x54f2c9['createRangeIn'](_0xac78f3),_0x54f2c9['createPositionBefore'](_0xac78f3)),_0x54f2c9['remove'](_0xac78f3);});});}}function De(_0x3e3c0e){if(_0x3e3c0e['isEmpty'])return!0x0;const _0x472802=_0x3e3c0e['getChild'](0x0);return _0x472802['is']('element','paragraph')&&_0x472802['isEmpty'];}function He(_0x348c08,_0x50ab4f={},_0x338106){for(const {isAnchor:_0x5dc07a,cellHeight:_0x3458b5,cellWidth:_0x3ffec6}of _0x338106['createTableWalker'](_0x348c08,{'includeAllSlots':!0x0,..._0x50ab4f}))if(!_0x5dc07a||0x1!=_0x3458b5||0x1!=_0x3ffec6)return!0x1;return!0x0;}class Bt extends _0x121524{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x37cbef=this['editor']['plugins']['get']('TrackChangesEditing');_0x37cbef['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x37cbef['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x37cbef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37cbef['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x37cbef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x37cbef['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x482be9,_0x1476cc){const _0x374c9e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ff998=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xe57616=_0x1476cc['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x43786c=_0x3ff998['getColumnGroupElement'](_0xe57616);let _0x41ecce=_0x43786c?_0x3ff998['getTableColumnsWidths'](_0x43786c):null,_0x3ee416=_0xe57616['getAttribute']('tableWidth')||null;const _0x4ac53c=_0x1476cc['tableWidth']||_0x3ee416,_0x5d3fc1=_0x1476cc['columnWidths']||_0x41ecce,_0x1e274e=this['editor']['plugins']['get']('Users')['me'];for(const _0x7739e6 of _0x374c9e['getSuggestions']()){const _0x54bf11=_0x7739e6['getContainedElement']();if('resizeTable'===_0x7739e6['subType']&&_0x54bf11===_0xe57616){_0x7739e6['author']!==_0x1e274e&&_0x7739e6['discard']();const _0x238656=_0x7739e6['data']['commandParams'];_0x3ee416=_0x238656[0x0]['tableWidth'],_0x41ecce=_0x238656[0x0]['columnWidths'];break;}}_0x482be9({'table':_0xe57616,'tableWidth':_0x4ac53c,'columnWidths':_0x5d3fc1}),_0x374c9e['markBlockFormat'](_0xe57616,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3ee416,'columnWidths':_0x41ecce}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1a35a4){if('formatBlock'!=_0x1a35a4['type']&&'formatInline'!=_0x1a35a4['type'])return;const {data:_0x20c374}=_0x1a35a4;if(_0x20c374&&'resizeTable'===_0x20c374['formatGroupId']){const _0x41fe8b='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x41fe8b)};}}}class xt extends _0x121524{['afterInit'](){const _0x2afcfa=this['editor'];_0x2afcfa['plugins']['has']('Template')&&_0x2afcfa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x121524{['afterInit'](){const _0x136914=this['editor'];if(!_0x136914['commands']['get']('insertTableOfContents'))return;_0x136914['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xb3ecc1=_0x136914['plugins']['get']('TrackChangesEditing'),_0x38c367=_0x136914['locale'];_0xb3ecc1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3c6f68=>c(_0x38c367,'ELEMENT_TABLE_OF_CONTENTS',_0x3c6f68));}}class Rt extends _0x121524{['afterInit'](){const _0x2c83a5=this['editor'];if(!_0x2c83a5['plugins']['has']('Title'))return;const _0x1ad1c6=_0x2c83a5['plugins']['get']('TrackChangesEditing');_0x1ad1c6['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x2c83a5['locale'],'ELEMENT_TITLE')),_0x2c83a5['model']['document']['registerPostFixer'](_0x4b1eac=>{let _0x45c940=!0x1;const _0x5acc0a=Array['from'](_0x2c83a5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3bf780,data:_0x216844}of _0x5acc0a){const {group:_0x29e183}=_0x1ad1c6['_splitMarkerName'](_0x3bf780);if('suggestion'!==_0x29e183||!_0x216844['newRange'])continue;const _0x5b1375=_0x216844['newRange'],_0x1cdb21=_0x5b1375['end']['nodeBefore'];if(!_0x1cdb21||!_0x1cdb21['is']('element','title-content'))continue;if(!_0x5b1375['start']['isTouching'](_0x5b1375['end']))continue;const _0xfc58b7=_0x2c83a5['model']['schema']['getNearestSelectionRange'](_0x5b1375['end'],'forward');if(_0xfc58b7&&_0xfc58b7['isCollapsed']){const _0x4e88ea=_0x4b1eac['createRange'](_0x5b1375['start'],_0xfc58b7['start']);_0x4e88ea['isEqual'](_0x5b1375)||(_0x4b1eac['updateMarker'](_0x3bf780,{'range':_0x4e88ea}),_0x45c940=!0x0);}_0x45c940||(_0x4b1eac['removeMarker'](_0x3bf780),_0x45c940=!0x0);}return _0x45c940;});}}class Tt extends _0x121524{['afterInit'](){const _0x12d2c8=this['editor'],_0x12d26e=_0x12d2c8['plugins']['get']('TrackChangesEditing');_0x12d2c8['plugins']['has']('Uploadcare')&&(_0x12d26e['enableCommand']('uploadcare'),_0x12d2c8['plugins']['has']('UploadcareImageEdit')&&(_0x12d26e['enableCommand']('uploadcareImageEdit'),_0x12d26e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x12d26e['registerBlockAttribute']('uploadcareImageId'),_0x12d26e['descriptionFactory']['registerDescriptionCallback'](_0x5cf80b=>{if('attribute'!=_0x5cf80b['type'])return;const {data:_0x3cc3d3}=_0x5cf80b;return _0x3cc3d3&&'uploadcareImageId'==_0x3cc3d3['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x121524{['afterInit'](){const _0x1327bb=this['editor'],_0x108e70=_0x1327bb['plugins']['get']('TrackChangesEditing');_0x1327bb['plugins']['has']('UndoEditing')&&(_0x108e70['enableCommand']('undo'),_0x108e70['enableCommand']('redo'));}}class Ut extends _0x121524{static get['requires'](){return[Ct];}['afterInit'](){const _0x122900=this['editor'];if(!_0x122900['plugins']['has']('TableCaptionEditing'))return;_0x122900['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x121524{['tableProperties'];['tableCellProperties'];constructor(_0x1d2e54){super(_0x1d2e54),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x518b30=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x29b986 of this['tableProperties'])_0x518b30['enableCommand'](_0x29b986,(_0x7a189,_0xce6c6d)=>{const _0x218e77=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x29b986,[_0x218e77],this['tableProperties'],'tableProperties',_0x7a189,_0xce6c6d);});_0x518b30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x518b30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x518b30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x58fcd4,_0x4e5173)=>this['handleDiscardAction'](this['tableProperties'],_0x58fcd4,_0x4e5173)),_0x518b30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x12ba74 of this['tableCellProperties'])_0x518b30['enableCommand'](_0x12ba74,(_0x23f77f,_0x5cbfcd)=>{const _0x5f1af7=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x12ba74,_0x5f1af7,this['tableCellProperties'],'tableCellProperties',_0x23f77f,_0x5cbfcd);});_0x518b30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x518b30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x518b30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x49a19c,_0x2b570f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x49a19c,_0x2b570f)),_0x518b30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x518b30['descriptionFactory']['registerDescriptionCallback'](_0x20b3f8=>this['handleSuggestionDescription'](_0x20b3f8));}['_handlePropertyChange'](_0x120eee,_0x2e97ea,_0x76e973,_0x1714d5,_0x21e458,_0x538e89){const _0x389063=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x538e89['batch'],()=>{for(const _0x3eb61c of _0x2e97ea){if(this['_getSuggestion'](_0x3eb61c,_0x1714d5))_0x21e458(_0x538e89);else{const _0x1dbd5a={};for(const _0x17ad59 of _0x76e973){const _0x2bbf1a=_0x3eb61c['getAttribute'](_0x17ad59);void 0x0!==_0x2bbf1a&&(_0x1dbd5a[_0x17ad59]=_0x2bbf1a);}_0x21e458(_0x538e89),_0x389063['markBlockFormat'](_0x3eb61c,{'commandParams':[_0x1dbd5a]},[],_0x1714d5);}}});}['handleDiscardAction'](_0x50339d,_0x5daf06,_0x196e55){const _0x171632=_0x5daf06[0x0]['start']['nodeAfter'],_0x8f2043=_0x196e55['commandParams'][0x0];this['editor']['model']['change'](_0x5a7816=>{for(const _0x40520a of _0x50339d)void 0x0!==_0x8f2043[_0x40520a]?_0x5a7816['setAttribute'](_0x40520a,_0x8f2043[_0x40520a],_0x171632):_0x5a7816['removeAttribute'](_0x40520a,_0x171632);});}['handleSuggestionDescription'](_0x12ebf9){if(_0x12ebf9['data'])switch(_0x12ebf9['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xe66918,_0x49b749){const _0xef9b67=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x224ad5 of _0xef9b67['getSuggestions']({'skipNotAttached':!0x0})){const _0x46a682=_0x224ad5['getContainedElement']();if(_0x224ad5['subType']===_0x49b749&&_0x46a682===_0xe66918)return _0x224ad5;}return null;}}const u='$elementName';class p extends _0x121524{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x23ff89,_0x38bf77,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14e48b){super(_0x14e48b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x30da33,_0x1fcb39,_0x149fff,_0x1b98ea)=>{this['_model']['change'](()=>{for(const _0x5e8486 of[..._0x1b98ea,..._0x149fff])this['_model']['markers']['has'](_0x5e8486)&&_0x14e48b['editing']['reconvertMarker'](_0x5e8486);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x14e48b['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x14e48b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x14e48b['config']['get']('trackChanges.trackFormatChanges'),_0x14e48b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x14e48b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x14e48b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x269a83=this['editor'],_0x25c95e=(_0x45f9b0,_0x31e9c9)=>{if('attribute'!=_0x45f9b0)return'ck-suggestion-marker-'+_0x45f9b0;const _0x2a3c5f=_0x31e9c9['split']('|')[0x0];return this['_isBlockAttribute'](_0x2a3c5f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x269a83['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x591e98=>{const {id:_0x4a25d3,authorId:_0x1ee255,type:_0x29c119,subType:_0x5ad74d}=this['_splitMarkerName'](_0x591e98['markerName']),_0x118dc4=['ck-suggestion-marker',_0x25c95e(_0x29c119,_0x5ad74d)];let _0x57a0b4=0xbb8;return this['activeMarkers']['includes'](_0x591e98['markerName'])&&(_0x118dc4['push']('ck-suggestion-marker--active'),_0x57a0b4=0xbc2),'deletion'==_0x29c119&&(_0x57a0b4+=0x5),{'classes':_0x118dc4,'attributes':{'data-suggestion':_0x4a25d3,'data-author-id':_0x1ee255},'priority':_0x57a0b4};}}),_0x269a83['conversion']['for']('dataDowncast')['add'](_0x4224bc=>{_0x4224bc['on']('addMarker:suggestion',(_0x270039,_0x2d3632,_0x51a35b)=>{if(!_0x51a35b['options']['showSuggestionHighlights'])return;const _0x28853f=_0x2d3632['item'];if(!_0x28853f)return;const _0x308f9a=_0x51a35b['mapper']['toViewElement'](_0x28853f);_0x269a83['model']['schema']['isObject'](_0x28853f)&&_0x308f9a&&!_0x308f9a['getCustomProperty']('widget')&&_0x308f9a['is']('containerElement')&&_0x4a22af(_0x308f9a,_0x51a35b['writer']);},{'priority':'high'});}),_0x269a83['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4bcac8,_0x2f9527)=>{if(!_0x2f9527['options']['showSuggestionHighlights'])return null;const {id:_0x4d311d,authorId:_0x58ff22,type:_0x92a2b5,subType:_0x29d066}=this['_splitMarkerName'](_0x4bcac8['markerName']);return{'classes':['ck-suggestion-marker',_0x25c95e(_0x92a2b5,_0x29d066)],'priority':0xbb8,'attributes':{'data-suggestion':_0x4d311d,'data-author-id':_0x58ff22}};}});const _0x5b139a=({showActiveMarkers:_0xfcf593=!0x0,isAttributeSuggestion:_0x5b9e87=!0x1}={})=>(_0x5d0007,_0x5ded0,_0xb02f75)=>{if(!_0x5ded0['item'])return;const {id:_0x118cfc,authorId:_0x7718e1}=this['_splitMarkerName'](_0x5ded0['markerName']);if(_0x5b9e87){const _0x3e0b6e=this['_suggestions']['get'](_0x118cfc),_0x739f5b=this['_getAttributeKey'](_0x3e0b6e);if(!this['_isBlockAttribute'](_0x739f5b))return;}if(_0x5ded0['item']['is']('selection'))return void _0xb02f75['consumable']['consume'](_0x5ded0['item'],_0x5d0007['name']);const _0x5082a7=_0xb02f75['mapper']['toViewElement'](_0x5ded0['item']);if(_0x5ded0['item']['is']('element')&&_0x269a83['model']['schema']['isBlock'](_0x5ded0['item'])&&!_0x5082a7['getCustomProperty']('addHighlight')){_0xb02f75['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5082a7),_0xb02f75['writer']['setAttribute']('data-suggestion',_0x118cfc,_0x5082a7),_0xb02f75['writer']['setAttribute']('data-author-id',_0x7718e1,_0x5082a7),_0xb02f75['mapper']['bindElementToMarker'](_0x5082a7,_0x5ded0['markerName']),_0xfcf593&&(this['activeMarkers']['includes'](_0x5ded0['markerName'])?_0xb02f75['writer']['addClass']('ck-suggestion-marker--active',_0x5082a7):_0xb02f75['writer']['removeClass']('ck-suggestion-marker--active',_0x5082a7));for(const _0x4b6166 of _0x269a83['model']['createRangeIn'](_0x5ded0['item'])['getItems']())_0xb02f75['consumable']['consume'](_0x4b6166,_0x5d0007['name']);_0xb02f75['consumable']['consume'](_0x5ded0['item'],_0x5d0007['name']);}};_0x269a83['conversion']['for']('dataDowncast')['add'](_0x357eef=>{_0x357eef['on']('addMarker:suggestion:formatBlock',(_0x2d3a3f,_0x3a6c09,_0x5adf81)=>{_0x5adf81['options']['showSuggestionHighlights']&&_0x5b139a({'showActiveMarkers':!0x1})(_0x2d3a3f,_0x3a6c09,_0x5adf81);},{'priority':'highest'});}),_0x269a83['conversion']['for']('dataDowncast')['add'](_0xd4f400=>{_0xd4f400['on']('addMarker:suggestion:attribute',(_0x3f9224,_0x5dc561,_0x43b4ff)=>{_0x43b4ff['options']['showSuggestionHighlights']&&_0x5b139a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3f9224,_0x5dc561,_0x43b4ff);},{'priority':'highest'});}),_0x269a83['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xea401b,_0x170cb1)=>{if(_0x170cb1['options']['showSuggestionHighlights']){const {id:_0xde9e80,authorId:_0xe62764}=this['_splitMarkerName'](_0xea401b);return _0xea401b['includes'](':split')||_0xea401b['includes'](':merge')?{'group':'suggestion','name':_0xea401b['substr'](0xb),'attributes':{'data-suggestion':_0xde9e80,'data-author-id':_0xe62764}}:null;}return{'group':'suggestion','name':_0xea401b['substr'](0xb)};}}),_0x269a83['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x467529,{writer:_0x15879e})=>{let _0x42381f='suggestion:'+_0x467529['getAttribute']('suggestion-type')+':'+_0x467529['getAttribute']('id');return _0x467529['getAttribute']('marker-count')&&(_0x42381f+=':'+_0x467529['getAttribute']('marker-count')),_0x15879e['createElement']('$marker',{'data-name':_0x42381f});}}),_0x269a83['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x269a83['conversion']['for']('editingDowncast')['add'](_0x5bb2a9=>{_0x5bb2a9['on']('addMarker:suggestion:formatBlock',_0x5b139a(),{'priority':'high'});}),_0x269a83['conversion']['for']('editingDowncast')['add'](_0x2a9206=>{_0x2a9206['on']('addMarker:suggestion:attribute',_0x5b139a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x269a83['conversion']['for']('editingDowncast')['add'](_0x215720=>{_0x215720['on']('removeMarker:suggestion:formatBlock',(_0x452750,_0xb152ac,_0xa7a08f)=>{const _0x2eddff=_0xa7a08f['mapper']['markerNameToElements'](_0xb152ac['markerName']);if(_0x2eddff){for(const _0x2dfa74 of _0x2eddff)_0x2dfa74['getCustomProperty']('addHighlight')||(_0xa7a08f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2dfa74),_0xa7a08f['writer']['removeAttribute']('data-suggestion',_0x2dfa74),_0xa7a08f['writer']['removeAttribute']('data-author-id',_0x2dfa74),_0xa7a08f['mapper']['unbindElementFromMarkerName'](_0x2dfa74,_0xb152ac['markerName']));}},{'priority':'high'});}),_0x269a83['conversion']['for']('editingDowncast')['add'](_0x3abcaa=>{_0x3abcaa['on']('removeMarker:suggestion:attribute',(_0x20636f,_0x2e53bd,_0x471368)=>{const _0x55c903=_0x471368['mapper']['markerNameToElements'](_0x2e53bd['markerName']);if(!_0x55c903)return;const {id:_0x4fb30c}=this['_splitMarkerName'](_0x2e53bd['markerName']),_0xdc4365=this['_suggestions']['get'](_0x4fb30c),_0x29b5e3=this['_getAttributeKey'](_0xdc4365);if(this['_isBlockAttribute'](_0x29b5e3)){for(const _0x50e83c of _0x55c903)_0x50e83c['getCustomProperty']('addHighlight')||(_0x471368['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x50e83c),_0x471368['writer']['removeAttribute']('data-suggestion',_0x50e83c),_0x471368['writer']['removeAttribute']('data-author-id',_0x50e83c),_0x471368['mapper']['unbindElementFromMarkerName'](_0x50e83c,_0x2e53bd['markerName']));}},{'priority':'high'});}),_0x269a83['model']['document']['registerPostFixer'](_0x124fea=>{let _0x51cf9d=!0x1;const _0x23924e=Array['from'](_0x269a83['model']['document']['differ']['getChangedMarkers']()),_0x115b6a=new Set();for(const {name:_0x37ca34,data:_0x3bcbe9}of _0x23924e){const {group:_0x492863,type:_0x47b7d6,subType:_0x5c38c1,id:_0x48b1cb}=this['_splitMarkerName'](_0x37ca34);if('suggestion'!==_0x492863)continue;const _0x447cd0=this['_suggestions']['get'](_0x48b1cb);if(null!=_0x3bcbe9['newRange']){'formatInline'==_0x47b7d6&&(_0x51cf9d=_0x51cf9d||Jt(_0x3bcbe9['newRange'],_0x37ca34,_0x124fea,_0x269a83['model']['schema']));const _0x4d3b52='attribute'==_0x47b7d6&&this['_isBlockAttribute'](_0x5c38c1['split']('|')[0x0]);if(_0x3bcbe9['newRange']['isCollapsed']||'$graveyard'==_0x3bcbe9['newRange']['root']['rootName']||'formatBlock'==_0x47b7d6&&!Ht(_0x3bcbe9['newRange'])||_0x4d3b52&&!Ht(_0x3bcbe9['newRange'])||'deletion'==_0x47b7d6&&!qt(_0x3bcbe9['newRange']))_0x124fea['removeMarker'](_0x37ca34),_0x51cf9d=!0x0;else{if(!_0x447cd0||!_0x447cd0['isInContent'])continue;if(_0x3bcbe9['newRange']&&_0x3bcbe9['oldRange']&&_0x3bcbe9['newRange']['isEqual'](_0x3bcbe9['oldRange']))continue;_0x115b6a['add'](_0x447cd0);}}}return _0x115b6a['size']>0x0&&(_0x51cf9d=!!this['_joinWithAdjacentSuggestions'](_0x115b6a)||_0x51cf9d),_0x51cf9d;}),_0x269a83['model']['document']['registerPostFixer'](_0x3a0d59=>{let _0x3309bf=!0x1;for(const _0x53111e of _0x269a83['model']['document']['differ']['getChanges']())if('insert'==_0x53111e['type'])for(const _0x2155a1 of this['_suggestions']['values']()){if(_0x2155a1['isMultiRange']||!_0x2155a1['isInContent'])continue;const _0x4ece03='formatBlock'==_0x2155a1['type'],_0x25f6c6=this['_getAttributeKey'](_0x2155a1),_0x278ddd=_0x25f6c6&&this['_isBlockAttribute'](_0x25f6c6);if(!_0x4ece03&&!_0x278ddd)continue;const _0x221943=_0x2155a1['getFirstRange']();if(_0x221943['start']['parent']!=_0x221943['end']['parent']&&!_0x221943['end']['isAtEnd']){const _0x14bb09=_0x269a83['model']['createPositionAt'](_0x221943['start']['nodeAfter'],'end'),_0x3bcac4=_0x269a83['model']['createRange'](_0x221943['start'],_0x14bb09);_0x3a0d59['updateMarker'](_0x2155a1['getFirstMarker'](),{'range':_0x3bcac4}),_0x3309bf=!0x0;}}return _0x3309bf;}),_0x269a83['model']['document']['registerPostFixer'](_0x207420=>this['_processAttributeChanges'](_0x207420)),_0x269a83['model']['document']['registerPostFixer'](_0x30bf6d=>!_0x30bf6d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x30bf6d)),_0x269a83['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x269a83['model']['document']['on']('change:data',(_0x5db024,_0x30c7f2)=>{if(!_0x30c7f2['isLocal']||_0x30c7f2['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x42782f=_0x269a83['model']['document']['differ']['getChanges']();if(0x0==_0x42782f['length'])return;const _0x5e3968=[],_0x9fc6a0=_0x42782f['filter'](_0x25ffe9=>'attribute'==_0x25ffe9['type']),_0x1a11f8=_0x42782f['filter'](_0x5a3d8b=>'insert'==_0x5a3d8b['type']&&'$text'!=_0x5a3d8b['name']);for(const _0x4f252d of _0x9fc6a0)this['_isRegisteredAttribute'](_0x4f252d['attributeKey'])&&_0x5e3968['push']({'key':_0x4f252d['attributeKey'],'newValue':_0x4f252d['attributeNewValue'],'oldValue':_0x4f252d['attributeOldValue'],'range':zt(_0x4f252d['range'],_0x269a83['model'])});for(const _0x5c5010 of _0x1a11f8){if('rename'!=_0x5c5010['action']&&'refresh'!=_0x5c5010['action'])continue;const _0xebd5fc=Wt(_0x5c5010['position']['nodeAfter'],_0x269a83['model']),_0x288c32=_0x5c5010['before'];'rename'==_0x5c5010['action']&&_0x5e3968['push']({'key':u,'newValue':_0x5c5010['name'],'oldValue':_0x288c32['name'],'range':_0xebd5fc});for(const [_0x4ae738,_0x3eb529]of _0x288c32['attributes']){if(!this['_isRegisteredAttribute'](_0x4ae738))continue;const _0x39c1bd=_0x5c5010['attributes']['get'](_0x4ae738);_0x3eb529!==_0x39c1bd&&_0x5e3968['push']({'key':_0x4ae738,'newValue':_0x39c1bd,'oldValue':_0x3eb529,'range':_0xebd5fc});}for(const [_0x518393,_0x516058]of _0x5c5010['attributes'])this['_isRegisteredAttribute'](_0x518393)&&(_0x288c32['attributes']['has'](_0x518393)||_0x5e3968['push']({'key':_0x518393,'newValue':_0x516058,'oldValue':null,'range':_0xebd5fc}));}0x0!=_0x5e3968['length']&&_0x269a83['model']['enqueueChange'](_0x30c7f2,_0x34654e=>{const _0x41684c=_0x25ef3d();for(const {range:_0x3f4f7c,key:_0x5e4631,oldValue:_0x5698f1,newValue:_0x2ff99e}of _0x5e3968)this['markAttributeChange'](_0x3f4f7c,_0x5e4631,_0x5698f1,_0x2ff99e,{'groupId':_0x41684c});this['_reduceExistingSuggestions'](_0x34654e,_0x5e3968);});},{'priority':'lowest'}),_0x269a83['model']['markers']['on']('update:suggestion',(_0xcc65d6,_0x312cd2,_0x1950fb)=>{if(null==_0x1950fb){const {id:_0x5d06e1}=this['_splitMarkerName'](_0x312cd2['name']),_0x4e9b11=this['_suggestions']['get'](_0x5d06e1);_0x4e9b11&&_0x4e9b11['addMarkerName'](_0x312cd2['name']);}}),_0x269a83['model']['document']['on']('change:data',()=>{const _0x7b5924=Array['from'](_0x269a83['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5561a3=>'suggestion'===this['_splitMarkerName'](_0x5561a3['name'])['group']);if(0x0===_0x7b5924['length'])return;_0x7b5924['sort']((_0x2ad561,_0x63e86a)=>{const _0x39aa4f=_0x2ad561['data']['oldRange'],_0x2648d2=_0x63e86a['data']['oldRange'];return null===_0x39aa4f&&null===_0x2648d2?0x0:null===_0x39aa4f&&null!==_0x2648d2?-0x1:null!==_0x39aa4f&&null===_0x2648d2?0x1:_0x39aa4f['start']['isBefore'](_0x2648d2['start'])?-0x1:0x1;});const _0x56a253=new Set(),_0x2b6a26=new Set();for(const {name:_0x2b1a00,data:_0x335689}of _0x7b5924){const {id:_0x13fe51}=this['_splitMarkerName'](_0x2b1a00);if(null===_0x335689['oldRange']){const _0x5b5cda=this['_handleNewSuggestionMarker'](_0x2b1a00);_0x2b6a26['add'](_0x5b5cda);}else{const _0x3ef22d=this['_suggestions']['get'](_0x13fe51);null!==_0x335689['newRange']||_0x3ef22d['isInContent']?(_0x56a253['add'](_0x3ef22d['head']),_0x2b6a26['add'](_0x3ef22d)):this['_removeSuggestion'](_0x3ef22d);}}_0x2b6a26['size']>0x0&&this['_refreshSuggestionsChain'](_0x2b6a26);for(const _0x53c3f2 of _0x56a253)this['fire']('suggestionChanged',_0x53c3f2);}),_0x269a83['model']['on']('applyOperation',(_0x4b946a,_0x12eaad)=>{const _0x454adb=_0x12eaad[0x0];if(!this['_suggestions']['size'])return;if(!_0x454adb['isDocumentOperation'])return;if(_0x454adb['batch']['isUndo']||!_0x454adb['batch']['isLocal'])return;let _0xe78e0b,_0x2b1919;switch(_0x454adb['type']){case'insert':_0xe78e0b=_0x269a83['model']['createPositionAt'](_0x454adb['position']),_0x2b1919=_0xe78e0b['getShiftedBy'](_0x454adb['howMany']);break;case'split':_0xe78e0b=_0x269a83['model']['createPositionAt'](_0x454adb['splitPosition']),_0x2b1919=_0x269a83['model']['createPositionAt'](_0x454adb['moveTargetPosition']);break;case'move':_0xe78e0b=_0x269a83['model']['createPositionAt'](_0x454adb['targetPosition']),_0x2b1919=_0xe78e0b['getShiftedBy'](_0x454adb['howMany']);break;default:return;}const _0x263903=_0x269a83['model']['createRange'](_0xe78e0b,_0x2b1919);_0x269a83['model']['change'](()=>{for(const {suggestion:_0x51abec,meta:_0x37dd4}of this['_findSuggestions'](_0x263903)){if(_0x51abec['isMultiRange'])continue;if('formatInline'==_0x51abec['type'])continue;const _0x467d1a=this['_getAttributeKey'](_0x51abec);if(_0x467d1a&&this['_isBlockAttribute'](_0x467d1a)&&'split'!=_0x454adb['type'])continue;const _0x52dfae=_0x51abec['data']&&_0x51abec['data']['multipleBlocks'];('formatBlock'!=_0x51abec['type']||'split'==_0x454adb['type']&&!_0x52dfae)&&(_0x37dd4['containsRangeInObject']||'insertion'==_0x51abec['type']&&_0x37dd4['isOwn']||_0x51abec['getFirstRange']()['containsRange'](_0x263903)&&this['_breakSuggestionMarker'](_0x51abec,_0xe78e0b,_0x2b1919));}});},{'priority':'lowest'}),_0x269a83['model']['on']('deleteContent',(_0x531529,_0x2102eb)=>{const _0x779017=_0x2102eb[0x0],_0x33a0ec=_0x2102eb[0x1];if(_0x33a0ec&&_0x33a0ec['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x779017['isCollapsed'])return;const _0x5179f0=_0x269a83['model']['schema'],{start:_0x5e1617,end:_0x41f953}=_0x779017['getFirstRange'](),_0x5ad200=_0x5e1617['nodeAfter']&&_0x5179f0['isLimit'](_0x5e1617['nodeAfter'])?null:_0x5179f0['getNearestSelectionRange'](_0x5e1617,'forward'),_0x47c41f=_0x41f953['nodeBefore']&&_0x5179f0['isLimit'](_0x41f953['nodeBefore'])?null:_0x5179f0['getNearestSelectionRange'](_0x41f953,'backward'),_0x365053=_0x269a83['model']['createRange'](_0x5ad200?_0x5ad200['start']:_0x5e1617,_0x47c41f?_0x47c41f['end']:_0x41f953);_0x269a83['model']['change'](_0x34c02f=>{this['markDeletion'](_0x365053);const _0x33d3d6=_0x269a83['model']['schema']['getNearestSelectionRange'](_0x365053['start']);_0x779017['is']('documentSelection')?_0x34c02f['setSelection'](_0x33d3d6):_0x779017['setTo'](_0x33d3d6);}),_0x531529['stop']();},{'priority':_0x84b019['normal']+0xa}),_0x269a83['model']['on']('insertContent',(_0x57ec74,_0x54e96f)=>{const _0xc1b28=_0x54e96f[_0x54e96f['length']-0x1];_0xc1b28&&_0xc1b28['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x269a83['model']['change'](()=>{let _0x2185ba=_0x269a83['model']['insertContent'](_0x54e96f[0x0],_0x54e96f[0x1],_0x54e96f[0x2],{'forceDefaultExecution':!0x0});if(!_0x2185ba)return;_0x57ec74['return']=_0x2185ba['clone']();const _0x3395ea=_0x2185ba['end']['nodeBefore'],_0x13064f=_0x269a83['model']['schema'];_0x3395ea&&_0x13064f['isBlock'](_0x3395ea)&&!_0x13064f['isObject'](_0x3395ea)&&(_0x2185ba=_0x269a83['model']['createRange'](_0x2185ba['start'],_0x269a83['model']['createPositionAt'](_0x3395ea,'end'))),this['markInsertion'](_0x2185ba);}),_0x57ec74['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x30b744=new x(_0x269a83,this['_suggestions']);_0x269a83['commands']['add']('acceptSuggestion',_0x30b744),this['enableCommand']('acceptSuggestion');const _0x3ae6df=new O(_0x269a83,this['_suggestions']);_0x269a83['commands']['add']('discardSuggestion',_0x3ae6df),this['enableCommand']('discardSuggestion'),_0x269a83['commands']['add']('acceptAllSuggestions',new R(_0x269a83,_0x30b744,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x269a83['commands']['add']('discardAllSuggestions',new R(_0x269a83,_0x3ae6df,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x269a83['commands']['add']('acceptSelectedSuggestions',new E(_0x269a83,_0x30b744,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x269a83['commands']['add']('discardSelectedSuggestions',new E(_0x269a83,_0x3ae6df,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x52b476=_0x269a83['plugins']['get']('CommentsRepository');this['listenTo'](_0x52b476,'addComment',(_0x2c81e2,{threadId:_0x20d308})=>{const _0x5dedf8=this['_suggestions']['get'](_0x20d308);_0x5dedf8&&_0x5dedf8['commentThread']&&0x1===_0x5dedf8['commentThread']['length']&&this['_updateSuggestionData'](_0x20d308,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x52b476,'removeComment',(_0x515f36,{threadId:_0x12b12d})=>{const _0x123b81=this['_suggestions']['get'](_0x12b12d);_0x123b81&&_0x123b81['commentThread']&&!_0x123b81['commentThread']['length']&&this['_updateSuggestionData'](_0x12b12d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3dec31){const _0x1b44cb=_0x156ddb([0x48,0x63,0x6b,0x46,0x41,0x76,0x75,0x39,0x4c,0x34,0x61,0x62,0x45,0x70,0x47,0x55,0x79,0x4b,0x73,0x72,0x49,0x58,0x30,0x33,0x36,0x4f,0x69,0x5a,0x7a,0x4e,0x42,0x50,0x31,0x4d,0x57,0x59,0x78,0x77,0x68,0x43,0x38,0x6d,0x6a,0x32,0x6c,0x35,0x64,0x51,0x71,0x4a,0x56,0x66,0x74,0x6e,0x65,0x67,0x6f,0x54,0x44,0x53,0x52,0x37]),_0x294eeb=0x6159d31f,_0x5eacd2=0x615eb867^_0x294eeb,_0x201213=window[_0x156ddb([0x44,0x61,0x74,0x65])][_0x156ddb([0x6e,0x6f,0x77])](),_0x3471a4=_0x3dec31[_0x156ddb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a1408=new window[(_0x156ddb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cffcb=>{_0x3471a4[_0x156ddb([0x6f,0x6e,0x63,0x65])](_0x156ddb([0x72,0x65,0x61,0x64,0x79]),_0x4cffcb);}),_0x84eb51={[_0x156ddb([0x6b,0x74,0x79])]:_0x156ddb([0x45,0x43]),[_0x156ddb([0x75,0x73,0x65])]:_0x156ddb([0x73,0x69,0x67]),[_0x156ddb([0x63,0x72,0x76])]:_0x156ddb([0x50,0x2d,0x32,0x35,0x36]),[_0x156ddb([0x78])]:_0x156ddb([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]),[_0x156ddb([0x79])]:_0x156ddb([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]),[_0x156ddb([0x61,0x6c,0x67])]:_0x156ddb([0x45,0x53,0x32,0x35,0x36])},_0x2650c1=_0x3471a4[_0x156ddb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x156ddb([0x67,0x65,0x74])](_0x156ddb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f2ff1(){let _0x295e5a,_0x2fc888=null,_0x3e4fc9=null;try{if(_0x2650c1==_0x156ddb([0x47,0x50,0x4c]))return _0x156ddb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x295e5a=_0x2f4b6(),!_0x295e5a)return _0x156ddb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x295e5a[_0x156ddb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e4fc9=_0x8bebc4(_0x295e5a[_0x156ddb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x295e5a[_0x156ddb([0x6a,0x74,0x69])])),await _0x234a9e()?_0x551445()?_0x2220fa()?_0x156ddb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40856b()?(_0x295e5a[_0x156ddb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x156ddb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fc888=_0x21c1c9(_0x156ddb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x295e5a[_0x156ddb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x156ddb([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fc888=_0x21c1c9(_0x156ddb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x518d0a()):_0x156ddb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x156ddb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x156ddb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x156ddb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2220fa(){const _0x348275=[_0x156ddb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x156ddb([0x74,0x72,0x69,0x61,0x6c])][_0x156ddb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x295e5a[_0x156ddb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x201213/0x3e8:0xe10*_0x5eacd2;return _0x295e5a[_0x156ddb([0x65,0x78,0x70])]<_0x348275;}function _0x551445(){const _0x11e006=_0x295e5a[_0x156ddb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x11e006)return!0x1;if(_0x11e006[_0x156ddb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x156ddb([0x2a])))return!0x0;if(_0x11e006[_0x156ddb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x156ddb([0x54,0x43])))return!0x0;if(_0x11e006[_0x156ddb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x156ddb([0x52,0x54,0x43]))){if(_0x2bdeb6())return!0x0;if(_0x17da0c()||_0xe2d3e3())return!0x0;}return!0x1;}function _0x40856b(){const _0x1748fe=_0x295e5a[_0x156ddb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1748fe||0x0==_0x1748fe[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c6ee2}=new URL(window[_0x156ddb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1748fe[_0x156ddb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c6ee2))return!0x0;const _0x28c70d=_0x3c6ee2[_0x156ddb([0x73,0x70,0x6c,0x69,0x74])](_0x156ddb([0x2e]));return _0x1748fe[_0x156ddb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48d4c8=>_0x48d4c8[_0x156ddb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x156ddb([0x2a])))[_0x156ddb([0x6d,0x61,0x70])](_0x1a00da=>_0x1a00da[_0x156ddb([0x73,0x70,0x6c,0x69,0x74])](_0x156ddb([0x2e])))[_0x156ddb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4825a3=>_0x4825a3[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28c70d[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x156ddb([0x6d,0x61,0x70])](_0x1f6ea4=>Array(_0x28c70d[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1f6ea4[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x156ddb([0x66,0x69,0x6c,0x6c])](_0x1f6ea4[0x0]===_0x156ddb([0x2a])?_0x156ddb([0x2a]):'')[_0x156ddb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1f6ea4))[_0x156ddb([0x73,0x6f,0x6d,0x65])](_0x54a9d1=>_0x28c70d[_0x156ddb([0x65,0x76,0x65,0x72,0x79])]((_0x4fdb24,_0x2c2723)=>_0x54a9d1[_0x2c2723]===_0x4fdb24||_0x54a9d1[_0x2c2723]===_0x156ddb([0x2a])));}function _0x518d0a(){return _0x2fc888&&_0x3e4fc9?new window[(_0x156ddb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55fa54,_0x122370)=>{_0x2fc888[_0x156ddb([0x74,0x68,0x65,0x6e])](_0x55fa54,_0x122370),_0x3e4fc9[_0x156ddb([0x74,0x68,0x65,0x6e])](_0x7548ba=>{_0x7548ba!=_0x156ddb([0x56,0x61,0x6c,0x69,0x64])&&_0x55fa54(_0x7548ba);},_0x122370);}):_0x2fc888||_0x3e4fc9||_0x156ddb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x8bebc4(_0x4f185c,_0x3d80d3){return new window[(_0x156ddb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x358f7b=>{if(_0x59ca41())return _0x358f7b(_0x156ddb([0x56,0x61,0x6c,0x69,0x64]));_0xd8ac7(),_0x3471a4[_0x156ddb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x156ddb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e7557=!0x1;const _0x3a95b8=_0x25ef3d();function _0xb9159f(_0x17a245){return!!_0x17a245&&(typeof _0x17a245===_0x156ddb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x17a245===_0x156ddb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x17a245[_0x156ddb([0x74,0x68,0x65,0x6e])]===_0x156ddb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x17a245[_0x156ddb([0x63,0x61,0x74,0x63,0x68])]===_0x156ddb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42713e(_0x5eee83){_0x2dcf07(_0x5eee83)[_0x156ddb([0x74,0x68,0x65,0x6e])](_0x3aaf04=>{if(!_0x3aaf04||_0x3aaf04[_0x156ddb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x156ddb([0x6f,0x6b]))return _0x156ddb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c8323(_0x2b6ce0(_0x3a95b8+_0x3d80d3))!=_0x3aaf04[_0x156ddb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x156ddb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x156ddb([0x56,0x61,0x6c,0x69,0x64]);})[_0x156ddb([0x74,0x68,0x65,0x6e])](_0x291ebe=>(_0x234f30(),_0x291ebe),()=>{const _0x2e3fcd=_0x18a2e4();return null==_0x2e3fcd?(_0x234f30(),_0x156ddb([0x56,0x61,0x6c,0x69,0x64])):_0x156ddb(_0x201213-_0x2e3fcd>(0x4555571f^_0x294eeb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x156ddb([0x74,0x68,0x65,0x6e])](_0x358f7b)[_0x156ddb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x358f7b(_0x156ddb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2821b8=0x616f3d9f^_0x294eeb;function _0x234f30(){const _0x3c1378=_0x156ddb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c8323(_0x2b6ce0(_0x4f185c)),_0x2824e1=_0x32600a(_0x3c8323(window[_0x156ddb([0x4d,0x61,0x74,0x68])][_0x156ddb([0x63,0x65,0x69,0x6c])](_0x201213/_0x2821b8)));window[_0x156ddb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x156ddb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c1378,_0x2824e1);}function _0x18a2e4(){const _0x582fe2=_0x156ddb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c8323(_0x2b6ce0(_0x4f185c)),_0x145dc1=window[_0x156ddb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x156ddb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x582fe2);return _0x145dc1?window[_0x156ddb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32600a(_0x145dc1),0x10)*_0x2821b8:null;}function _0x2dcf07(_0x4aff94){return new window[(_0x156ddb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41c450,_0x1752bd)=>{_0x4aff94[_0x156ddb([0x74,0x68,0x65,0x6e])](_0x41c450,_0x1752bd),window[_0x156ddb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1752bd,0x615807df^_0x294eeb);});}}_0x3471a4[_0x156ddb([0x6f,0x6e])](_0x156ddb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb3611c,_0x37e747)=>{if(_0x37e747[0x0]!=_0x4f185c)return _0x358f7b(_0x156ddb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37e747[0x1]={..._0x37e747[0x1],[_0x156ddb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a95b8};},{[_0x156ddb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x156ddb([0x68,0x69,0x67,0x68])}),_0x3471a4[_0x156ddb([0x6f,0x6e])](_0x156ddb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b4479=>{_0xb9159f(_0x2b4479[_0x156ddb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e7557=!0x0,_0x42713e(_0x2b4479[_0x156ddb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x156ddb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x156ddb([0x6c,0x6f,0x77])}),_0x1a1408[_0x156ddb([0x74,0x68,0x65,0x6e])](()=>{_0x5e7557||_0x358f7b(_0x156ddb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59ca41(){return _0x3471a4[_0x156ddb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x156ddb([0x76,0x69,0x65,0x77])][_0x156ddb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x156ddb([0x61,0x75,0x74,0x6f]);}function _0xd8ac7(){_0x3471a4[_0x156ddb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x156ddb([0x76,0x69,0x65,0x77])][_0x156ddb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x156ddb([0x61,0x75,0x74,0x6f]);}}function _0x21c1c9(_0x56cdc7){const _0x1dc286=[new window[(_0x156ddb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7c2802=>setTimeout(_0x7c2802,0x6150edd3^_0x294eeb)),_0x1a1408[_0x156ddb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x156ddb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd641f6=>{let _0x38bde1=0x0;_0x3471a4[_0x156ddb([0x6d,0x6f,0x64,0x65,0x6c])][_0x156ddb([0x6f,0x6e])](_0x156ddb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11fb0e,_0x3deae1)=>{_0x3deae1[0x0][_0x156ddb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38bde1++,_0x38bde1==(0x6159d2e7^_0x294eeb)&&(_0xd641f6(),_0x11fb0e[_0x156ddb([0x6f,0x66,0x66])]());});}))];return window[_0x156ddb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x156ddb([0x72,0x61,0x63,0x65])](_0x1dc286)[_0x156ddb([0x74,0x68,0x65,0x6e])](()=>_0x56cdc7);}async function _0x562501(){await _0x1a1408,_0x3471a4[_0x156ddb([0x6d,0x6f,0x64,0x65,0x6c])][_0x156ddb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ac103,_0x3471a4[_0x156ddb([0x6d,0x6f,0x64,0x65,0x6c])][_0x156ddb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ac103,_0x3471a4[_0x156ddb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x156ddb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2bdeb6(){return _0x2a8cd0(_0x156ddb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4ce48d(_0x156ddb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x156ddb([0x73,0x74,0x61,0x74,0x65])]==_0x156ddb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x17da0c(){return _0x2a8cd0(_0x156ddb([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 _0xe2d3e3(){return _0x2a8cd0(_0x156ddb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xaf6ccb(_0x50e9ce){const _0x4994d4=_0x1d9b9b();_0x3471a4[_0x4994d4]=_0x156ddb([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x50e9ce,_0x50e9ce!=_0x156ddb([0x56,0x61,0x6c,0x69,0x64])&&_0x562501();}function _0x1d9b9b(){const _0x29ddb3=window[_0x156ddb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x156ddb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x156ddb([0x6e,0x6f,0x77])]())[_0x156ddb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x156ddb([0x2e]),'');let _0x554152=_0x156ddb([0x48]);for(let _0x2c1ac1=0x0;_0x2c1ac1<_0x29ddb3[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c1ac1+=0x2){let _0x55b796=window[_0x156ddb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29ddb3[_0x156ddb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c1ac1,_0x2c1ac1+0x2));_0x55b796>=_0x1b44cb[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55b796-=_0x1b44cb[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x554152+=_0x1b44cb[_0x55b796];}return _0x554152;}function _0x2f4b6(){const _0x1d03a1=_0x2650c1[_0x156ddb([0x73,0x70,0x6c,0x69,0x74])](_0x156ddb([0x2e]));if(0x3!=_0x1d03a1[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x438463(_0x1d03a1[0x1]);function _0x438463(_0x389dad){const _0x590759=_0x34e1ea(_0x389dad);return _0x590759&&_0xf47c69()?_0x590759:null;function _0xf47c69(){const _0x32d509=_0x590759[_0x156ddb([0x6a,0x74,0x69])],_0x2b17f3=window[_0x156ddb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32d509[_0x156ddb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32d509[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x41a156={..._0x590759,[_0x156ddb([0x6a,0x74,0x69])]:_0x32d509[_0x156ddb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32d509[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x41a156[_0x156ddb([0x76,0x63])],_0x2b6ce0(_0x41a156)==_0x2b17f3;}}}async function _0x234a9e(){let _0xb34155=!0x0;try{const _0x15dc6f=_0x2650c1[_0x156ddb([0x73,0x70,0x6c,0x69,0x74])](_0x156ddb([0x2e])),[_0xada08b,_0x386914,_0x55984a]=_0x15dc6f;return _0x21cda4(_0xada08b),await _0x2ac08b(_0xada08b,_0x386914,_0x55984a),_0xb34155;}catch{return!0x1;}function _0x21cda4(_0x35b100){const _0x5c91e8=_0x34e1ea(_0x35b100);_0x5c91e8&&_0x5c91e8[_0x156ddb([0x61,0x6c,0x67])]==_0x156ddb([0x45,0x53,0x32,0x35,0x36])||(_0xb34155=!0x1);}async function _0x2ac08b(_0x14eaf8,_0x1c5dd9,_0x361a24){const _0x445abd=window[_0x156ddb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x156ddb([0x66,0x72,0x6f,0x6d])](_0x511109(_0x361a24),_0x2a10de=>_0x2a10de[_0x156ddb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x587f60=new window[(_0x156ddb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x156ddb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14eaf8+_0x156ddb([0x2e])+_0x1c5dd9),_0x3d9673=window[_0x156ddb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x156ddb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3d9673)return;const _0x179bd0=await _0x3d9673[_0x156ddb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x156ddb([0x6a,0x77,0x6b]),_0x84eb51,{[_0x156ddb([0x6e,0x61,0x6d,0x65])]:_0x156ddb([0x45,0x43,0x44,0x53,0x41]),[_0x156ddb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x156ddb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x156ddb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3d9673[_0x156ddb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x156ddb([0x6e,0x61,0x6d,0x65])]:_0x156ddb([0x45,0x43,0x44,0x53,0x41]),[_0x156ddb([0x68,0x61,0x73,0x68])]:{[_0x156ddb([0x6e,0x61,0x6d,0x65])]:_0x156ddb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x179bd0,_0x445abd,_0x587f60)||(_0xb34155=!0x1);}}function _0x34e1ea(_0x2148f2){return _0x2148f2[_0x156ddb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x156ddb([0x65,0x79]))?JSON[_0x156ddb([0x70,0x61,0x72,0x73,0x65])](_0x511109(_0x2148f2)):null;}function _0x511109(_0xfbc4fb){return window[_0x156ddb([0x61,0x74,0x6f,0x62])](_0xfbc4fb[_0x156ddb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x156ddb([0x2b]))[_0x156ddb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x156ddb([0x2f])));}function _0x2b6ce0(_0x2fc8f6){let _0x144ce1=0x1505;function _0xcae06e(_0xf46306){for(let _0x4b9513=0x0;_0x4b9513<_0xf46306[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b9513++){const _0x2f118e=_0xf46306[_0x156ddb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b9513);_0x144ce1=(_0x144ce1<<0x5)+_0x144ce1+_0x2f118e,_0x144ce1&=_0x144ce1;}}function _0x5dc57e(_0x1f2a94){Array[_0x156ddb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f2a94)?_0x1f2a94[_0x156ddb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5dc57e):_0x1f2a94&&typeof _0x1f2a94==_0x156ddb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x156ddb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f2a94)[_0x156ddb([0x73,0x6f,0x72,0x74])]()[_0x156ddb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x192228,_0x477dab])=>{_0xcae06e(_0x192228),_0x5dc57e(_0x477dab);}):_0xcae06e(window[_0x156ddb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f2a94));}return _0x5dc57e(_0x2fc8f6),_0x144ce1>>>0x0;}function _0x3c8323(_0x4f5a8d){return _0x4f5a8d[_0x156ddb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x156ddb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x156ddb([0x30]));}function _0x32600a(_0x26bda0){return _0x26bda0[_0x156ddb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x156ddb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x156ddb([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a8cd0(_0x2607cb){return _0x3471a4[_0x156ddb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x156ddb([0x68,0x61,0x73])](_0x2607cb);}function _0x4ce48d(_0xf10543){return _0x3471a4[_0x156ddb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x156ddb([0x67,0x65,0x74])](_0xf10543);}function _0x1ac103(){}function _0x156ddb(_0x3f5134){return _0x3f5134['map'](_0x2eff85=>String['fromCharCode'](_0x2eff85))['join']('');}_0xaf6ccb(await _0x3f2ff1());}(this);}set['adapter'](_0x2a33c4){if(this['_adapter'])throw new _0x33c4a9('track-changes-adapter-already-set',this);this['_adapter']=_0x2a33c4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x203b44=!0x1,toJSON:_0x5672ff=!0x1}={}){const _0x4deeef=[];for(const _0x1560b1 of this['_suggestions']['values']())_0x203b44&&!_0x1560b1['isInContent']||_0x4deeef['push'](_0x1560b1);return _0x5672ff?_0x4deeef['map'](_0x16dbdb=>_0x16dbdb['toJSON']()):_0x4deeef;}['getSuggestion'](_0x18c19d){const _0x7402d7=this['_suggestions']['get'](_0x18c19d);if(!_0x7402d7)throw new _0x33c4a9('track-changes-suggestion-not-found',this);return _0x7402d7;}['hasSuggestion'](_0x46865e){return this['_suggestions']['has'](_0x46865e);}['addSuggestionData'](_0x196ad8){const {authorId:_0xbcdb65,id:_0x3c2c89,originalSuggestionId:_0x443468,attributes:_0xec8e2}=_0x196ad8,[_0x406c52,_0x162421]=_0x196ad8['type']['split'](':'),_0x53568f=this['_suggestions']['get'](_0x3c2c89)||this['_createSuggestion'](_0x406c52,_0x162421,_0x3c2c89,_0xbcdb65,_0xec8e2,_0x443468);if(this['_addThreadToSuggestion'](_0x53568f),this['_checkSuggestionCorrectness'](_0x53568f,_0x406c52,_0x162421||null,_0xbcdb65),_0x53568f['createdAt']=_0x196ad8['createdAt'],_0x53568f['_isDataLoaded']=!0x0,_0xec8e2&&_0xec8e2['@external']){const _0x2c6c59=_0xec8e2['@external'],_0x996363=this['_getExternalAuthor'](_0x2c6c59['authorName']);_0x53568f['authoredAt']=_0x2c6c59['createdAt'],_0x53568f['author']=_0x996363,_0x53568f['isExternal']=!0x0;}else _0x53568f['authoredAt']=_0x196ad8['createdAt'];switch(_0x196ad8['data']&&(_0x53568f['data']=_0x196ad8['data']),_0x196ad8['attributes']&&(_0x53568f['attributes']=_0x196ad8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x53568f['_saved']=!0x0),this['_suggestionState']['get'](_0x53568f)){case'notReady':this['_suggestionState']['set'](_0x53568f,'dataReady');break;case'markerReady':_0x53568f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x53568f])),this['_refreshSuggestionsChain'](new Set([_0x53568f])),this['_suggestionState']['set'](_0x53568f,'ready'),this['fire']('suggestionLoaded',_0x53568f)):this['_suggestionState']['set'](_0x53568f,'removed');}return _0x53568f;}['acceptSuggestion'](_0x51ff68){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x27ab4e of _0x51ff68['getAllAdjacentSuggestions']())_0x27ab4e['accept']();});});}['discardSuggestion'](_0x410e0e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3fcb49 of _0x410e0e['getAllAdjacentSuggestions']())_0x3fcb49['discard']();});});}['enableCommand'](_0x423d1c,_0x48b811){const _0xa96ae1=this['editor']['commands']['get'](_0x423d1c);if(!_0xa96ae1)throw new _0x33c4a9('track-changes-command-not-found',this,{'commandName':_0x423d1c});if(this['_enabledCommands']['has'](_0xa96ae1))throw new _0x33c4a9('track-changes-enable-command-twice',this,{'commandName':_0x423d1c});this['_enabledCommands']['add'](_0xa96ae1),_0x48b811&&_0xa96ae1['on']('execute',(_0x2f4995,_0x5eaa0e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5eaa0e['length']>0x0&&_0x5eaa0e[_0x5eaa0e['length']-0x1]&&_0x5eaa0e[_0x5eaa0e['length']-0x1]['forceDefaultExecution']?_0x5eaa0e['pop']():(_0x2f4995['return']=_0x48b811((..._0x3fc6d3)=>_0xa96ae1['execute'](..._0x3fc6d3,{'forceDefaultExecution':!0x0}),..._0x5eaa0e),_0x2f4995['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3256a7){let _0x354b7c,_0x3edb67;const _0x35957c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x354b7c=_0x3256a7();}catch(_0x461dc8){_0x3edb67=_0x461dc8;}return _0x35957c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3edb67&&_0x33c4a9['rethrowUnexpectedError'](_0x3edb67,this),_0x354b7c;}['markInsertion'](_0x5e18c4,_0x335d4f=null,_0x3eebc1={}){if(_0x5e18c4['isCollapsed'])return null;const _0x2c62ad=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3eebc1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x478138,meta:_0x3f0285}of this['_findSuggestions'](_0x5e18c4,'insertion'))if(_0x3f0285['isOwn']){if(!_0x3f0285['isNextTo']){if(_0x3f0285['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Yt(_0x478138,_0x3eebc1))continue;return _0x478138;}if(Yt(_0x478138,_0x3eebc1))return _0x478138;this['_breakSuggestionMarker'](_0x478138,_0x5e18c4['start'],_0x5e18c4['end']);break;}if(_0x335d4f==_0x478138['subType']&&Yt(_0x478138,_0x3eebc1)){const _0x4590a3=_0x478138['getFirstRange']();return _0x4590a3['start']['isEqual'](_0x5e18c4['end'])?this['_setSuggestionRange'](_0x478138,this['_model']['createRange'](_0x5e18c4['start'],_0x4590a3['end'])):this['_setSuggestionRange'](_0x478138,this['_model']['createRange'](_0x4590a3['start'],_0x5e18c4['end'])),_0x478138;}}const _0x196154=_0x25ef3d(),_0x256c9c=_0x2c62ad['id'],_0x1d6d50=_0x335d4f?'insertion:'+_0x335d4f:'insertion',_0x2a0112=this['_setSuggestionData']({'id':_0x196154,'type':_0x1d6d50,'createdAt':new Date(),'authorId':_0x256c9c,'attributes':_0x3eebc1});return this['_addSuggestionMarker'](_0x1d6d50,_0x196154,_0x256c9c,_0x5e18c4),_0x2a0112;}['markMultiRangeInsertion'](_0x56af05,_0x5f4697='multi',_0x3642f7={}){const _0x21a0dd=this['editor']['plugins']['get']('Users')['me'],_0x43dd21=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5f4697,'join');this['_trackingSessionId']&&(_0x3642f7['trackingSessionId']=this['_trackingSessionId']);for(const _0x28a46f of this['getSuggestions']())if(_0x28a46f['author']['id']==_0x21a0dd['id']&&'insertion'==_0x28a46f['type']&&_0x28a46f['subType']==_0x5f4697&&Yt(_0x28a46f,_0x3642f7)&&(_0x43dd21(_0x28a46f['getRanges'](),_0x56af05)||_0x43dd21(_0x56af05,_0x28a46f['getRanges']()))){for(const _0x4e371c of _0x56af05)_0x28a46f['addRange'](_0x4e371c);return _0x28a46f;}for(const {suggestion:_0x43ce36,meta:_0x44d090}of this['_findSuggestions'](_0x56af05,'insertion')){if(!_0x44d090['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x44d090['containsRangeInObject'])continue;if(!Yt(_0x43ce36,_0x3642f7))continue;let _0x31aa3a=!0x0;for(const _0x3a9a70 of _0x43ce36['getRanges']())for(const _0x304bd1 of _0x56af05)if(!_0x3a9a70['containsRange'](_0x304bd1)){_0x31aa3a=!0x1;break;}if(_0x31aa3a)return _0x43ce36;}const _0x29941e=_0x25ef3d(),_0x11cbbe=_0x21a0dd['id'],_0x53cee6='insertion:'+_0x5f4697,_0x165943=this['_setSuggestionData']({'id':_0x29941e,'type':_0x53cee6,'createdAt':new Date(),'authorId':_0x11cbbe,'attributes':_0x3642f7});for(const _0x1a1e09 of _0x56af05)this['_addSuggestionMarker'](_0x53cee6,_0x29941e,_0x11cbbe,_0x1a1e09,o['getMultiRangeId']());return _0x165943;}['markInlineFormat'](_0x35b670,_0x58e654,_0x23a8c8=null,_0x28a429={}){if(_0x23a8c8=_0x23a8c8||Kt(_0x58e654),_0x35b670['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x28a429['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1a7ba0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x23a8c8,'accept');return this['forceDefaultExecution'](()=>_0x1a7ba0([_0x35b670],_0x58e654,_0x28a429)),null;}const _0x4cf5ae=this['editor']['plugins']['get']('Users')['me'],_0x130849=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2d623e,meta:_0x34f4cb}of this['_findSuggestions'](_0x35b670,'insertion'))_0x34f4cb['isOwn']&&!_0x34f4cb['isInsideObject']&&_0x130849['push'](..._0x2d623e['getRanges']());}const _0x2de051=function(_0x57abad,_0x26e3a9){const _0x4f6b15=[];for(const _0x2c0e26 of _0x26e3a9){const _0x2fc042=_0x57abad['getIntersection'](_0x2c0e26);_0x2fc042&&_0x4f6b15['push'](_0x2fc042);}return _0x4f6b15;}(_0x35b670,_0x130849),_0x56ac48=function(_0x2b152f,_0x518cc5){const _0x95fec8=[_0x2b152f];for(const _0x4d6ba3 of _0x518cc5){let _0x23da65=0x0;for(;_0x23da65<_0x95fec8['length'];){const _0x2ab1f5=_0x95fec8[_0x23da65]['getDifference'](_0x4d6ba3);_0x95fec8['splice'](_0x23da65,0x1,..._0x2ab1f5),_0x23da65+=_0x2ab1f5['length'];}}return _0x95fec8;}(_0x35b670,_0x130849);_0x2de051['length']&&this['_model']['change'](()=>{for(const _0x366935 of _0x2de051){const _0x16720d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x23a8c8,'accept');this['forceDefaultExecution'](()=>_0x16720d([_0x366935],_0x58e654,_0x28a429));}});for(const _0x2d6dbd of _0x56ac48){let _0x46cfc1=null,_0x51e3ff=_0x2d6dbd['start'],_0x55eb36=_0x2d6dbd['end'];for(const {suggestion:_0x5e82bb,meta:_0x114b58}of this['_findSuggestions'](_0x2d6dbd,'formatInline')){if(!_0x114b58['isOwn'])continue;if(_0x5e82bb['subType']!=_0x23a8c8)continue;if(!Yt(_0x5e82bb,_0x28a429))continue;const _0x567b81=_0x5e82bb['getFirstRange']();if(_0x567b81['containsRange'](_0x2d6dbd,!0x0))return null;_0x51e3ff=_0x51e3ff['isBefore'](_0x567b81['start'])?_0x51e3ff:_0x567b81['start'],_0x55eb36=_0x55eb36['isAfter'](_0x567b81['end'])?_0x55eb36:_0x567b81['end'],_0x46cfc1?_0x567b81['start']['isBefore'](_0x46cfc1['getFirstRange']()['start'])?(_0x46cfc1['removeMarkers'](),_0x46cfc1=_0x5e82bb):_0x5e82bb['removeMarkers']():_0x46cfc1=_0x5e82bb;}const _0x43b70c=this['_model']['createRange'](_0x51e3ff,_0x55eb36);if(_0x46cfc1)this['_setSuggestionRange'](_0x46cfc1,_0x43b70c);else{const _0x17da7b=_0x25ef3d(),_0x42e69c=_0x4cf5ae['id'];this['_setSuggestionData']({'id':_0x17da7b,'type':'formatInline:'+_0x23a8c8,'data':_0x58e654,'createdAt':new Date(),'authorId':_0x42e69c,'attributes':_0x28a429}),this['_addSuggestionMarker']('formatInline:'+_0x23a8c8,_0x17da7b,_0x42e69c,_0x43b70c);}}return null;}['markBlockFormat'](_0x3ddce4,_0x374e0e,_0x2c3b0a=[],_0x5bad27=null,_0x4961dd={}){_0x374e0e['formatGroupId']||(_0x374e0e['formatGroupId']=_0x374e0e['commandName']),_0x374e0e['multipleBlocks']=_0x3ddce4['is']('range'),_0x5bad27=_0x5bad27||Kt(_0x374e0e);const _0x5d020e=_0x2c3b0a['map'](_0x4556f0=>Wt(_0x4556f0,this['_model'])),_0x2cf010=_0x3ddce4['is']('range')?_0x3ddce4:Wt(_0x3ddce4,this['_model']);if(this['_trackingSessionId']&&(_0x4961dd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x385d28=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bad27,'accept');return this['forceDefaultExecution'](()=>_0x385d28([_0x2cf010],_0x374e0e,_0x4961dd)),null;}_0x5d020e['push'](_0x2cf010);let _0x19471a=!0x0;for(const _0x39053b of _0x5d020e)if(!this['_rangeIsInLocalUserInsertion'](_0x39053b)){_0x19471a=!0x1;break;}if(_0x19471a&&'always'!==this['_trackFormatChanges']){const _0x5e9ce2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bad27,'accept');return this['forceDefaultExecution'](()=>_0x5e9ce2([_0x2cf010],_0x374e0e,_0x4961dd)),null;}let _0x377f9e=null,_0xb4842b=_0x2cf010['start'],_0x21f6db=_0x2cf010['end'];for(const {suggestion:_0x7029a2,meta:_0x261bf1}of this['_findSuggestions'](_0x2cf010,'formatBlock')){if(!_0x261bf1['isOwn'])continue;if(_0x261bf1['isNextTo']||_0x261bf1['containsRangeInObject']||_0x261bf1['isInsideObject'])continue;if(_0x7029a2['data']['formatGroupId']!=_0x374e0e['formatGroupId'])continue;if(!Yt(_0x7029a2,_0x4961dd))continue;const _0x162520=_0x7029a2['getFirstRange']();if(_0x7029a2['subType']==_0x5bad27){if(_0x162520['containsRange'](_0x2cf010,!0x0))return null;_0xb4842b=_0xb4842b['isBefore'](_0x162520['start'])?_0xb4842b:_0x162520['start'],_0x21f6db=_0x21f6db['isAfter'](_0x162520['end'])?_0x21f6db:_0x162520['end'],_0x377f9e?_0x162520['start']['isBefore'](_0x377f9e['getFirstRange']()['start'])?(_0x377f9e['removeMarkers'](),_0x377f9e=_0x7029a2):_0x7029a2['removeMarkers']():_0x377f9e=_0x7029a2;}else{const _0x234440=_0x2cf010['getIntersection'](_0x162520);this['_cutOutSuggestionMarker'](_0x7029a2,_0x234440);}}const _0x39eac3=this['editor']['plugins']['get']('Users')['me'],_0x4dea88=_0x25ef3d(),_0x1a4be2=_0x39eac3['id'];if(_0x377f9e)return this['_setSuggestionRange'](_0x377f9e,this['_model']['createRange'](_0xb4842b,_0x21f6db)),_0x377f9e;{const _0x395d2d=this['_setSuggestionData']({'id':_0x4dea88,'type':'formatBlock:'+_0x5bad27,'data':_0x374e0e,'createdAt':new Date(),'authorId':_0x1a4be2,'attributes':_0x4961dd});return this['_addSuggestionMarker']('formatBlock:'+_0x5bad27,_0x4dea88,_0x1a4be2,this['_model']['createRange'](_0xb4842b,_0x21f6db)),_0x395d2d;}}['markMultiRangeBlockFormat'](_0x53bb7a,_0x374fb7,_0x5620b4=[],_0x456319=null,_0x2bd006={}){_0x374fb7['formatGroupId']||(_0x374fb7['formatGroupId']=_0x374fb7['commandName']);const _0x4ea045=_0x53bb7a[0x0];_0x374fb7['multipleBlocks']=_0x4ea045['is']('range'),_0x456319=_0x456319||Kt(_0x374fb7);const _0x432217=_0x5620b4['map'](_0x4e5b8f=>Wt(_0x4e5b8f,this['_model'])),_0x77f6a2=_0x4ea045['is']('range')?_0x53bb7a:_0x53bb7a['map'](_0x249ab1=>Wt(_0x249ab1,this['_model']));if(this['_trackingSessionId']&&(_0x2bd006['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x39e83e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x456319,'accept');return this['forceDefaultExecution'](()=>_0x39e83e(_0x77f6a2,_0x374fb7,_0x2bd006)),null;}_0x432217['push'](..._0x77f6a2);let _0x53574c=!0x0;for(const _0x30a94e of _0x432217)if(!this['_rangeIsInLocalUserInsertion'](_0x30a94e)){_0x53574c=!0x1;break;}if(_0x53574c&&'always'!==this['_trackFormatChanges']){const _0x15ce5b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x456319,'accept');return this['forceDefaultExecution'](()=>_0x15ce5b(_0x77f6a2,_0x374fb7,_0x2bd006)),null;}const _0x21456d=this['editor']['plugins']['get']('Users')['me'];for(const _0x16959a of this['getSuggestions']()){if(_0x16959a['author']['id']!=_0x21456d['id'])continue;if('formatBlock'!=_0x16959a['type']||_0x16959a['data']['formatGroupId']!=_0x374fb7['formatGroupId'])continue;if(!Yt(_0x16959a,_0x2bd006))continue;const _0x5d994b=_0x16959a['subType']==_0x456319;for(let _0x3e8c57=0x0;_0x3e8c57<_0x77f6a2['length'];_0x3e8c57++){const _0x245c3d=_0x77f6a2[_0x3e8c57];for(const _0x383a62 of _0x16959a['getMarkers']()){const _0x3c25c8=_0x383a62['getRange']();if(_0x245c3d['isEqual'](_0x3c25c8)){_0x5d994b?(_0x77f6a2['splice'](_0x3e8c57,0x1),_0x3e8c57--):_0x16959a['removeMarker'](_0x383a62['name']);break;}}}}if(0x0==_0x77f6a2['length'])return null;const _0x1a4780=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x456319,'join');for(const _0xa1bf91 of this['getSuggestions']())if(_0xa1bf91['author']['id']==_0x21456d['id']&&'formatBlock'==_0xa1bf91['type']&&_0xa1bf91['data']['formatGroupId']==_0x374fb7['formatGroupId']&&_0xa1bf91['subType']==_0x456319&&Yt(_0xa1bf91,_0x2bd006)&&(_0x1a4780(_0xa1bf91['getRanges'](),_0x77f6a2)||_0x1a4780(_0x77f6a2,_0xa1bf91['getRanges']()))){for(const _0x42d452 of _0x77f6a2)_0xa1bf91['addRange'](_0x42d452);return _0xa1bf91;}const _0x40c5f7=_0x25ef3d(),_0x29cf1c=_0x21456d['id'],_0x5d74f6='formatBlock:'+_0x456319,_0x187b1e=this['_setSuggestionData']({'id':_0x40c5f7,'type':_0x5d74f6,'data':_0x374fb7,'createdAt':new Date(),'authorId':_0x29cf1c,'attributes':_0x2bd006});for(const _0x31007b of _0x77f6a2)this['_addSuggestionMarker'](_0x5d74f6,_0x40c5f7,_0x29cf1c,_0x31007b,o['getMultiRangeId']());return _0x187b1e;}['markDeletion'](_0x19feaf,_0x369bcc=null,_0x28790c={}){if(_0x19feaf['isCollapsed'])return null;const _0x28ebd9=this['editor']['plugins']['get']('Users')['me'],_0x2dd0ef=new _0xf8fd8e(_0x19feaf['start'],_0x19feaf['end']);this['_trackingSessionId']&&(_0x28790c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x16bdd5,meta:_0x153844}of this['_findSuggestions'](_0x2dd0ef,'insertion'))if(_0x153844['isOwn']&&!_0x153844['isNextTo']){if(_0x16bdd5['isMultiRange']){const _0x153363=_0x16bdd5['getRanges']()['filter'](_0xaebe9=>'$graveyard'!=_0xaebe9['root']['rootName']);_0x153363['every'](_0x5e152e=>_0x2dd0ef['containsRange'](_0x5e152e,!0x0))&&_0x16bdd5['discard']();if(_0x153363['some'](_0x40fe4e=>_0x40fe4e['containsRange'](_0x2dd0ef,!0x0))){const _0x4a1dd5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x369bcc,'accept');return this['forceDefaultExecution'](()=>_0x4a1dd5([_0x2dd0ef],null,_0x28790c)),null;}}else{const _0x32eb71=_0x2dd0ef['getIntersection'](_0x16bdd5['getFirstRange']());null!==_0x32eb71&&_0x16bdd5['_onDiscard']([_0x32eb71],null,_0x28790c);}}if(_0x2dd0ef['detach'](),_0x2dd0ef['isCollapsed']||'$graveyard'==_0x2dd0ef['root']['rootName'])return null;let _0x371562=null,_0x87434b=_0x2dd0ef['start'],_0x4c6d2b=_0x2dd0ef['end'];const _0x49b550=this['_findSuggestions'](_0x2dd0ef,'deletion');for(const {suggestion:_0x3b251b,meta:_0x4f6036}of _0x49b550){const _0xf13181=this['_model']['createRange'](_0x87434b,_0x4c6d2b);if(_0x4f6036['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4f6036['containsRangeInObject']&&!_0x4f6036['isInsideObject'])){if(_0x3b251b['isMultiRange']){if(!Yt(_0x3b251b,_0x28790c))continue;let _0x49a386=!0x0;for(const _0x1534dc of _0x3b251b['getRanges']()){if(_0x1534dc['containsRange'](_0xf13181,!0x0))return _0x3b251b;_0xf13181['containsRange'](_0x1534dc)||(_0x49a386=!0x1);}_0x49a386&&_0x3b251b['discard']();}else{const _0x105fcb=_0x3b251b['getFirstRange']();if(_0x105fcb['containsRange'](_0xf13181,!0x0))return _0x3b251b;if(!Yt(_0x3b251b,_0x28790c)){_0xf13181['containsRange'](_0x105fcb)?_0x3b251b['removeMarkers']():_0x105fcb['containsPosition'](_0x87434b)?_0x87434b=_0x105fcb['end']:_0x105fcb['containsPosition'](_0x4c6d2b)&&(_0x4c6d2b=_0x105fcb['start']);continue;}_0x87434b=_0x87434b['isBefore'](_0x105fcb['start'])?_0x87434b:_0x105fcb['start'],_0x4c6d2b=_0x4c6d2b['isAfter'](_0x105fcb['end'])?_0x4c6d2b:_0x105fcb['end'],_0x28790c=Object['assign']({},_0x3b251b['attributes']),_0x371562?_0x105fcb['start']['isBefore'](_0x371562['getFirstRange']()['start'])?(_0x371562['removeMarkers'](),_0x371562=_0x3b251b):_0x3b251b['removeMarkers']():_0x371562=_0x3b251b;}}}if(_0x371562)return this['_setSuggestionRange'](_0x371562,this['_model']['createRange'](_0x87434b,_0x4c6d2b)),_0x371562;{const _0x7f0b5b=_0x25ef3d(),_0x5def39=this['_model']['createRange'](_0x87434b,_0x4c6d2b),_0x66b4ac=_0x28ebd9['id'],_0x1c3761=_0x369bcc?'deletion:'+_0x369bcc:'deletion',_0x27fb94=this['_setSuggestionData']({'id':_0x7f0b5b,'type':_0x1c3761,'createdAt':new Date(),'authorId':_0x66b4ac,'attributes':_0x28790c});return this['_addSuggestionMarker'](_0x1c3761,_0x7f0b5b,_0x66b4ac,_0x5def39),_0x27fb94;}}['markMultiRangeDeletion'](_0x4dbcb4,_0x354def='multi',_0x5d335d={}){const _0x1c8d19=this['editor']['plugins']['get']('Users')['me'],_0x10338e=_0x4dbcb4['map'](_0x509d3a=>new _0xf8fd8e(_0x509d3a['start'],_0x509d3a['end'])),_0x4132b8=new Set();this['_trackingSessionId']&&(_0x5d335d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x7be099,meta:_0x2e1a18}of this['_findSuggestions'](_0x10338e,'insertion'))_0x2e1a18['isOwn']&&!_0x2e1a18['isNextTo']&&_0x4132b8['add'](_0x7be099);for(const _0x280cdf of _0x4132b8)if(_0x280cdf['isMultiRange']){const _0x1368a6=_0x280cdf['getRanges']();(!_0x280cdf['attributes']||!_0x280cdf['attributes']['skipNestingCheck'])&&(_0x1368a6['every'](_0x342873=>_0x10338e['some'](_0x18c72e=>_0x18c72e['containsRange'](_0x342873,!0x0)))&&_0x280cdf['discard']());if(_0x10338e['every'](_0x2137e6=>_0x1368a6['some'](_0x76fd8=>_0x76fd8['containsRange'](_0x2137e6,!0x0)))){const _0x1743b4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x354def,'accept');return this['forceDefaultExecution'](()=>_0x1743b4(_0x4dbcb4,null,_0x5d335d)),null;}}else{const _0x2ea27c=_0x280cdf['getFirstRange']();_0x10338e['some'](_0xbc655a=>_0xbc655a['containsRange'](_0x2ea27c,!0x0))&&_0x280cdf['discard']();if(_0x10338e['every'](_0x505a3f=>_0x2ea27c['containsRange'](_0x505a3f,!0x0))){const _0x52bbc6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x354def,'accept');return this['forceDefaultExecution'](()=>_0x52bbc6(_0x10338e,null,_0x5d335d)),null;}}const _0x1eec6b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x354def,'join');let _0x5c3704=null;for(const _0x5b7d81 of this['getSuggestions']())if(_0x5b7d81['author']['id']==_0x1c8d19['id']&&_0x5b7d81['isInContent']&&'deletion'==_0x5b7d81['type']&&_0x5b7d81['subType']==_0x354def&&Yt(_0x5b7d81,_0x5d335d)&&(_0x1eec6b(_0x5b7d81['getRanges'](),_0x10338e)||_0x1eec6b(_0x10338e,_0x5b7d81['getRanges']()))){if(_0x5c3704){if(_0x5b7d81['commentThread']&&_0x5b7d81['commentThread']['length'])continue;for(const _0x2d0c5f of _0x5b7d81['getRanges']())_0x5c3704['isIntersectingWithRange'](_0x2d0c5f)||_0x5c3704['addRange'](_0x2d0c5f);_0x5b7d81['removeMarkers']();}else{_0x5c3704=_0x5b7d81;for(const _0x2fb897 of _0x10338e)_0x5b7d81['isIntersectingWithRange'](_0x2fb897)||_0x5b7d81['addRange'](_0x2fb897);}}if(_0x5c3704)return _0x5c3704;_0x4132b8['clear']();for(const {suggestion:_0x5a5a11,meta:_0x11d68f}of this['_findSuggestions'](_0x10338e,'deletion'))_0x11d68f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x11d68f['containsRangeInObject']&&!_0x11d68f['isInsideObject'])&&Yt(_0x5a5a11,_0x5d335d)&&_0x4132b8['add'](_0x5a5a11);for(const _0x94ff58 of _0x4132b8){const _0x1a5043=_0x94ff58['getRanges']();if(!_0x5d335d||!_0x5d335d['skipNestingCheck']){if(_0x10338e['every'](_0x3939e7=>_0x1a5043['some'](_0x295ea4=>_0x295ea4['containsRange'](_0x3939e7,!0x0))))return _0x94ff58;}(!_0x94ff58['attributes']||!_0x94ff58['attributes']['skipNestingCheck'])&&(_0x1a5043['every'](_0x4665e5=>_0x10338e['some'](_0x29a8a8=>_0x29a8a8['containsRange'](_0x4665e5,!0x0)))&&_0x94ff58['discard']());}const _0x1eeeff=_0x25ef3d(),_0x3f30ca=_0x1c8d19['id'],_0x167eb3='deletion:'+_0x354def,_0x134e5b=this['_setSuggestionData']({'id':_0x1eeeff,'type':_0x167eb3,'createdAt':new Date(),'authorId':_0x3f30ca,'attributes':_0x5d335d});for(const _0x20241 of _0x10338e)_0x20241['detach'](),_0x20241['isCollapsed']||'$graveyard'==_0x20241['root']['rootName']||this['_addSuggestionMarker'](_0x167eb3,_0x1eeeff,_0x3f30ca,_0x20241,o['getMultiRangeId']());return _0x134e5b;}['markAttributeChange'](_0x4c90cf,_0x4b2d76,_0x360f78,_0x48d337,_0x541bc9){if(_0x4c90cf['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x55ed2c=this['editor']['plugins']['get']('Users')['me']['id'],_0x2cbea0=Array['from'](this['_suggestions']['values']())['filter'](_0x31ad71=>'attribute'==_0x31ad71['type']&&_0x31ad71['data']['key']==_0x4b2d76&&_0x31ad71['isIntersectingWithRange'](_0x4c90cf));if(this['_trackingSessionId']&&(_0x541bc9['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x555e41=this['_findSuggestions'](_0x4c90cf,'insertion')['filter'](({meta:_0xbdf52e})=>_0xbdf52e['isOwn']&&!_0xbdf52e['isInsideObject']&&!_0xbdf52e['isNextTo'])['map'](({suggestion:_0x147ab2})=>_0x147ab2);_0x2cbea0['unshift'](..._0x555e41);}const _0x2730f7=new Map([[_0x4c90cf,_0x360f78]]);for(const _0x556c4c of _0x2cbea0){const _0x1bf2ce='attribute'==_0x556c4c['type']?_0x556c4c['data']['oldValue']:void 0x0,_0x38f250=_0x556c4c['getFirstRange'](),_0x4729b6=Array['from'](_0x2730f7['keys']())['find'](_0x546764=>_0x546764['isIntersecting'](_0x38f250));if(!_0x4729b6)continue;const _0x472913=_0x4729b6['getDifference'](_0x38f250);this['_isBlockAttribute'](_0x4b2d76)&&'insertion'==_0x556c4c['type']&&0x0!=_0x472913['length']||(_0x2730f7['delete'](_0x4729b6),_0x472913['forEach'](_0x2050e1=>{_0x2730f7['set'](_0x2050e1,_0x360f78);}),'insertion'!=_0x556c4c['type']&&_0x1bf2ce!=_0x48d337&&_0x2730f7['set'](_0x4729b6['getIntersection'](_0x38f250),_0x1bf2ce));}const _0x3c127d=[];for(const [_0x58ea4a,_0x47f583]of _0x2730f7){const _0x4e5e57=_0x25ef3d(),_0x42a2c4={'key':_0x4b2d76,'oldValue':_0x47f583,'newValue':_0x48d337};_0x4b2d76['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':_0x4b2d76});const _0x1c2623=('attribute:'+(_0x4b2d76+'|'+Kt({'newValue':_0x48d337})))['substring'](0x0,0x3c),_0x5b0aac=this['_setSuggestionData']({'id':_0x4e5e57,'type':_0x1c2623,'data':_0x42a2c4,'createdAt':new Date(),'authorId':_0x55ed2c,'attributes':_0x541bc9});_0x3c127d['push'](_0x5b0aac),this['_addSuggestionMarker'](_0x1c2623,_0x4e5e57,_0x55ed2c,_0x58ea4a);}return _0x3c127d;}['enableDefaultAttributesIntegration'](_0x28739e){this['enableCommand'](_0x28739e,(_0x15fc55,..._0x2af99b)=>{this['_recordAttributeChanges'](()=>{_0x15fc55(..._0x2af99b);});});}['registerBlockAttribute'](_0x260f5c){this['_blockAttributeKeys']['add'](_0x260f5c);}['registerInlineAttribute'](_0x5c2a96){this['_inlineAttributeKeys']['add'](_0x5c2a96);}['startTrackingSession'](_0x52c364){return this['_trackingSessionId']=void 0x0!==_0x52c364?_0x52c364:_0x25ef3d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5d2953){return'attribute'==_0x5d2953['type']?_0x5d2953['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1b99eb,_0x44966e){const _0x2ed272=_0x1b99eb['getFirstMarker']();this['_model']['change'](_0x266704=>{_0x266704['updateMarker'](_0x2ed272,{'range':_0x44966e});});}['_addThreadToSuggestion'](_0x5d63f3){const _0x376ed6=_0x5d63f3['id'],_0x3b2b0f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x376ed6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3b2b0f,'threadId':_0x376ed6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5d1a62=this['_commentsRepository']['getCommentThread'](_0x376ed6);_0x5d1a62['unbind']('isRemovable'),_0x5d1a62['isRemovable']=!0x1,_0x5d63f3['commentThread']=_0x5d1a62;}['_checkSuggestionCorrectness'](_0x553563,_0x12bf7b,_0x3aff86,_0xcf98c8){if(_0x553563['type']!=_0x12bf7b||_0x553563['subType']!=_0x3aff86||_0x553563['creator']['id']!=_0xcf98c8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x33c4a9('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3a1c3d,_0x4428d5){const _0x151b88=_0x3a1c3d['getFirstRange']();if(_0x4428d5['isEqual'](_0x151b88))_0x3a1c3d['removeMarkers']();else{if(_0x151b88['containsRange'](_0x4428d5)){const _0x48b63c=this['_model']['createPositionAt'](_0x4428d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3a1c3d,this['_model']['createRange'](_0x151b88['start'],_0x48b63c));const _0x4b490e=_0x25ef3d(),_0x4210b0=_0x3a1c3d['creator']['id'],_0xeb82dd=_0x3a1c3d['type']+':'+_0x3a1c3d['subType'];this['_setSuggestionData']({'id':_0x4b490e,'type':_0xeb82dd,'createdAt':new Date(),'authorId':_0x4210b0,'data':_0x3a1c3d['data'],'attributes':_0x3a1c3d['attributes']});const _0x4d0c35=this['_model']['createPositionAt'](_0x4428d5['end']['parent'],'after'),_0x1d1739=this['_model']['createRange'](_0x4d0c35,_0x151b88['end']);this['_addSuggestionMarker'](_0xeb82dd,_0x4b490e,_0x4210b0,_0x1d1739);}else{if(_0x151b88['containsPosition'](_0x4428d5['start'])){const _0x494bd1=this['_model']['createPositionAt'](_0x4428d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3a1c3d,this['_model']['createRange'](_0x151b88['start'],_0x494bd1));}else{const _0x1e4226=this['_model']['createPositionAt'](_0x4428d5['end']['parent'],'after');this['_setSuggestionRange'](_0x3a1c3d,this['_model']['createRange'](_0x1e4226,_0x151b88['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xd4ea29){for(const {suggestion:_0x2331f9,meta:_0x19ee74}of this['_findSuggestions'](_0xd4ea29,'insertion')){if(!_0x19ee74['isOwn'])continue;const _0xe61d09=_0x2331f9['getRanges']();for(const _0x195c47 of _0xe61d09)if(!_0xd4ea29['getDifference'](_0x195c47)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xf841b7){const _0x683c23=this['editor']['plugins']['get']('Users')['getUser'](_0xf841b7);if(!_0x683c23)throw new _0x33c4a9('track-changes-user-not-found',this);return _0x683c23;}['_getExternalAuthor'](_0x12d65c){const _0x270575=this['editor']['plugins']['get']('Users'),_0x2203bc=_0x51efad('external:'+_0x12d65c),_0x5e0b2f=_0x270575['getUser'](_0x2203bc);return _0x5e0b2f||_0x270575['addUser']({'id':_0x2203bc,'name':_0x12d65c});}['_createSuggestion'](_0x43e2fd,_0xf44c79,_0x383790,_0xee700d,_0x481a23,_0x2457cb){const _0x4c1d30=this['_getAuthorFromId'](_0xee700d),_0x547c9b=this['_suggestionFactory']['buildSuggestion'](_0x43e2fd,_0xf44c79,_0x383790,_0x4c1d30,_0x481a23,_0x42ce56=>{this['_updateSuggestionData'](_0x383790,{'attributes':_0x42ce56});const _0x1343af=this['getSuggestion'](_0x383790);this['_joinWithAdjacentSuggestions'](new Set([_0x1343af])),this['_refreshSuggestionsChain'](new Set([_0x1343af]));},_0x2457cb);return this['listenTo'](_0x547c9b,'accept',()=>{this['_updateSuggestionData'](_0x383790,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x547c9b,'discard',()=>{this['_updateSuggestionData'](_0x383790,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x383790,_0x547c9b),this['_suggestionState']['set'](_0x547c9b,'notReady'),_0x547c9b;}['_splitMarkerName'](_0x9b12cc){const _0x118137=_0x9b12cc['split'](':');return{'group':_0x118137[0x0],'type':_0x118137[0x1],'subType':_0x118137['length']>=0x5?_0x118137[0x2]:null,'id':_0x118137['length']<0x5?_0x118137[0x2]:_0x118137[0x3],'authorId':_0x118137['length']<0x5?_0x118137[0x3]:_0x118137[0x4],'markerCount':0x6==_0x118137['length']?_0x118137[0x5]:null};}['_breakSuggestionMarker'](_0x57f9ff,_0x33d51c,_0x2b84aa){const _0x42bf1c=_0x57f9ff['getFirstRange'](),_0x1ef86a=_0x42bf1c['start'],_0x58262a=_0x42bf1c['end'];this['_setSuggestionRange'](_0x57f9ff,this['_model']['createRange'](_0x1ef86a,_0x33d51c));const _0x3e4cbe=_0x25ef3d(),_0x2cb4a1=_0x57f9ff['creator']['id'],_0x15475b=_0x57f9ff['type']+(_0x57f9ff['subType']?':'+_0x57f9ff['subType']:'');this['_setSuggestionData']({'id':_0x3e4cbe,'type':_0x15475b,'createdAt':new Date(),'authorId':_0x2cb4a1,'originalSuggestionId':_0x57f9ff['_originalSuggestionId']||_0x57f9ff['id'],'attributes':_0x57f9ff['attributes'],'data':_0x57f9ff['data']});const _0x4bac65=this['_getAttributeKey'](_0x57f9ff);('formatBlock'==_0x57f9ff['type']||_0x4bac65&&this['_isBlockAttribute'](_0x4bac65))&&(_0x2b84aa=this['_model']['createPositionBefore'](_0x2b84aa['parent'])),this['_addSuggestionMarker'](_0x15475b,_0x3e4cbe,_0x2cb4a1,this['_model']['createRange'](_0x2b84aa,_0x58262a));}['_findSuggestions'](_0x2b566e,_0x2514c4=null){const _0x47ec0c=[],_0x5cf384=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2b566e)||(_0x2b566e=[_0x2b566e]);for(const _0x400d75 of this['getSuggestions']()){if(!_0x400d75['isInContent'])continue;if(_0x2514c4&&_0x400d75['type']!=_0x2514c4)continue;let _0x3328f4=!0x1;for(const _0x58ce36 of _0x400d75['getRanges']()){for(const _0xf08667 of _0x2b566e){const _0x175f3c=_0xf08667['start']['isEqual'](_0x58ce36['end'])||_0xf08667['end']['isEqual'](_0x58ce36['start']);if(_0x175f3c||_0xf08667['getIntersection'](_0x58ce36)){const _0x1abf78=_0xf08667['containsRange'](_0x58ce36)&&Gt(this['_model']['schema'],_0x58ce36['start'],_0xf08667),_0x30e9b5=_0x58ce36['containsRange'](_0xf08667)&&Gt(this['_model']['schema'],_0xf08667['start'],_0x58ce36);_0x47ec0c['push']({'suggestion':_0x400d75,'meta':{'isOwn':_0x5cf384==_0x400d75['author'],'isNextTo':_0x175f3c,'isInsideObject':_0x1abf78,'containsRangeInObject':_0x30e9b5}}),_0x3328f4=!0x0;break;}}if(_0x3328f4)break;}}return _0x47ec0c;}['_addSuggestionMarker'](_0x5bc7d7,_0x3f67c6,_0x5066c5,_0x2bf1ba,_0x245e51){this['_model']['change'](_0xc8be37=>{let _0x36e8c9='suggestion:'+_0x5bc7d7+':'+_0x3f67c6+':'+_0x5066c5;_0x245e51&&(_0x36e8c9=_0x36e8c9+':'+_0x245e51),_0xc8be37['addMarker'](_0x36e8c9,{'range':_0x2bf1ba,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xcd6e10){const _0x7fb4b2=_0xcd6e10['previous'],_0x161b20=_0xcd6e10['next'];_0xcd6e10['previous']=null,_0xcd6e10['next']=null,null!=_0x7fb4b2&&_0x7fb4b2['next']==_0xcd6e10&&(_0x7fb4b2['next']=_0x161b20),null!=_0x161b20&&_0x161b20['previous']==_0xcd6e10&&(_0x161b20['previous']=_0x7fb4b2),'ready'==this['_suggestionState']['get'](_0xcd6e10)&&(this['_suggestionState']['set'](_0xcd6e10,'removed'),this['fire']('suggestionUnloaded',_0xcd6e10,_0x7fb4b2,_0x161b20));}['_setSuggestionData'](_0x7b9dbf){const _0x54ad75=_0x7b9dbf['id'],_0x3920f4=this['addSuggestionData'](_0x7b9dbf);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x53feae=this['editor']['plugins']['get']('PendingActions'),_0x23b9b1=_0x3920f4['hasComments'],_0x463093=_0x3920f4['subType']?_0x3920f4['type']+':'+_0x3920f4['subType']:_0x3920f4['type'],_0x53ec2e=this['editor']['locale'],_0x525370=_0x53feae['add'](c(_0x53ec2e,'PENDING_ACTION_SUGGESTION')),_0x45678e={'id':_0x54ad75,'type':_0x463093,'hasComments':_0x23b9b1,'data':_0x7b9dbf['data']||null,'originalSuggestionId':_0x7b9dbf['originalSuggestionId']||null,'attributes':_0x3920f4['attributes']};this['_adapter']['addSuggestion'](_0x45678e)['then'](_0x4bfcaf=>{_0x3920f4['_saved']=!0x0,_0x53feae['remove'](_0x525370),_0x4bfcaf&&_0x4bfcaf['createdAt']&&(this['_suggestions']['get'](_0x54ad75)['createdAt']=_0x4bfcaf['createdAt']);})['catch'](_0x4e8cdd=>{throw _0x24dc67('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3920f4['discard']();}),_0x3920f4['stopListening'](),this['_suggestions']['delete'](_0x3920f4['id']),this['_suggestionState']['delete'](_0x3920f4),_0x4e8cdd;});}return _0x3920f4;}['_isBlockAttribute'](_0x1390dd){return this['_blockAttributeKeys']['has'](_0x1390dd);}['_updateSuggestionData'](_0x476d0b,_0x3b4c0e){const _0x2dfebd=this['editor']['plugins']['get']('PendingActions'),_0x3832ed=this['getSuggestion'](_0x476d0b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3832ed['_saved']){const _0x9f91b5=_0x2dfebd['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x476d0b,_0x3b4c0e)['then'](()=>{_0x2dfebd['remove'](_0x9f91b5);});}else _0x3832ed['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x476d0b,_0x3b4c0e);});}}['_getSuggestionData'](_0x80053d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x33c4a9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x80053d);}['_handleNewSuggestionMarker'](_0x5a91f){const {id:_0xd220c4,type:_0x810e3d,subType:_0xe71982,authorId:_0x58e4d6}=this['_splitMarkerName'](_0x5a91f),_0x30bb2e=this['_suggestions']['get'](_0xd220c4)||this['_createSuggestion'](_0x810e3d,_0xe71982,_0xd220c4,_0x58e4d6,{});switch(this['_checkSuggestionCorrectness'](_0x30bb2e,_0x810e3d,_0xe71982,_0x58e4d6),this['_suggestionState']['get'](_0x30bb2e)){case'notReady':this['_getSuggestionData'](_0xd220c4)['then'](_0x2e50f7=>{let _0x497b84=Promise['resolve']();_0x2e50f7['hasComments']&&(_0x497b84=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xd220c4})),_0x497b84['then'](()=>{this['addSuggestionData'](_0x2e50f7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x30bb2e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xd220c4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x30bb2e,'ready'),this['fire']('suggestionLoaded',_0x30bb2e);break;case'ready':this['fire']('suggestionChanged',_0x30bb2e);}return _0x30bb2e['addMarkerName'](_0x5a91f),_0x30bb2e;}['_refreshSuggestionsChain'](_0x37c8d9){const _0x4c77f5=Array['from'](_0x37c8d9),_0x1d7c2d=_0x4c77f5['filter'](_0x473463=>'attribute'==_0x473463['type']);this['_refreshAttributeSuggestionsChain'](_0x1d7c2d);const _0x572e35=_0x4c77f5['filter'](_0x316d2e=>!_0x316d2e['isMultiRange']&&'attribute'!=_0x316d2e['type']),_0x28d024=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c97d6=>!_0x2c97d6['isMultiRange']&&'attribute'!=_0x2c97d6['type']),_0x29aace=_0x28d024['filter'](_0x48f34d=>!_0x37c8d9['has'](_0x48f34d)),_0x37546f=new Map(_0x28d024['map'](_0x13ca76=>[_0x13ca76,this['_suggestionFactory']['getSuggestionCallback'](_0x13ca76['type'],_0x13ca76['subType'],'chain')])),_0x372d41=new Map(_0x28d024['map'](_0x4b78f8=>[_0x4b78f8,_0x4b78f8['getFirstRange']()])),_0x2686e6=new Set(),_0x519361=new Set();for(let _0x5c01b4=0x0;_0x5c01b4<_0x572e35['length'];_0x5c01b4++)_0x5454f9(_0x572e35[_0x5c01b4],_0x572e35,_0x5c01b4+0x1);for(let _0x1d5bfb=0x0;_0x1d5bfb<_0x572e35['length'];_0x1d5bfb++)_0x5454f9(_0x572e35[_0x1d5bfb],_0x29aace,0x0);const _0x5aea7b=new Set();for(let _0x241b14=0x0;_0x241b14<_0x572e35['length'];_0x241b14++){const _0x21c934=_0x572e35[_0x241b14];!_0x519361['has'](_0x21c934)&&_0x21c934['previous']&&(_0x5aea7b['add'](_0x21c934['previous']),_0x21c934['previous']['next']===_0x21c934&&(_0x21c934['previous']['next']=null),_0x21c934['previous']=null),!_0x2686e6['has'](_0x21c934)&&_0x21c934['next']&&(_0x5aea7b['add'](_0x21c934['next']),_0x21c934['next']['previous']===_0x21c934&&(_0x21c934['next']['previous']=null),_0x21c934['next']=null);}function _0x5454f9(_0x140943,_0x22255f,_0x2e1f30){for(let _0x4f70f9=_0x2e1f30;_0x4f70f9<_0x22255f['length'];_0x4f70f9++){const _0x12e7f4=_0x168843(_0x140943,_0x22255f[_0x4f70f9]);_0x12e7f4&&(_0x12e7f4[0x0]['next']=_0x12e7f4[0x1],_0x12e7f4[0x1]['previous']=_0x12e7f4[0x0],_0x2686e6['add'](_0x12e7f4[0x0]),_0x519361['add'](_0x12e7f4[0x1]));}}function _0x168843(_0x3b6902,_0xbfed9a){if(_0x3b6902['author']['id']!==_0xbfed9a['author']['id'])return null;const _0x34e041=_0x37546f['get'](_0x3b6902)(_0x3b6902,_0xbfed9a,_0x372d41['get'](_0x3b6902),_0x372d41['get'](_0xbfed9a));if(!_0x34e041)return null;return _0x37546f['get'](_0xbfed9a)(_0x3b6902,_0xbfed9a,_0x372d41['get'](_0x3b6902),_0x372d41['get'](_0xbfed9a))?_0x34e041[0x1]['commentThread']&&_0x34e041[0x1]['commentThread']['length']?null:_0x34e041:null;}_0x5aea7b['size']&&this['_refreshSuggestionsChain'](_0x5aea7b);}['_refreshAttributeSuggestionsChain'](_0x5a6bb1){if(0x0==_0x5a6bb1['length'])return;const _0x590e40=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x141012=>'attribute'==_0x141012['type']&&_0x141012['_isDataLoaded']),_0x214e8f=[],_0x54b361=new Map();for(const _0x5080cb of _0x590e40){const _0x259e2b=_0x51efad(_0x5080cb['attributes']);_0x54b361['has'](_0x259e2b)||(_0x54b361['set'](_0x259e2b,_0x214e8f['length']),_0x214e8f['push']([]));const _0xcd461f=_0x54b361['get'](_0x259e2b);_0x214e8f[_0xcd461f]['push'](_0x5080cb);}!(function(){_0x214e8f['sort']((_0x1ba660,_0x4d6a2e)=>{const _0x528d94=_0x1ba660[0x0]['createdAt'],_0x1bc436=_0x4d6a2e[0x0]['createdAt'];return _0x528d94==_0x1bc436?_0x1ba660[0x0]['attributes']['groupId']<_0x4d6a2e[0x0]['attributes']['groupId']?-0x1:0x1:_0x528d94<_0x1bc436?-0x1:0x1;});for(const _0x4de613 of _0x214e8f)_0x4de613['sort']((_0x4aab84,_0x264e06)=>_0x4aab84['id']<_0x264e06['id']?-0x1:0x1);}());for(let _0x945fa8=0x0;_0x945fa8<_0x214e8f['length'];_0x945fa8++){if(0x0==_0x214e8f[_0x945fa8]['length'])continue;const _0xf17de0=[];for(let _0x534cb6=_0x945fa8+0x1;_0x534cb6<_0x214e8f['length'];_0x534cb6++)0x0!=_0x214e8f[_0x534cb6]['length']&&_0x14ff39(_0x214e8f[_0x945fa8],_0x214e8f[_0x534cb6])&&_0xf17de0['push'](_0x534cb6);for(const _0x169a97 of _0xf17de0)_0x214e8f[_0x945fa8]=_0x214e8f[_0x945fa8]['concat'](_0x214e8f[_0x169a97]),_0x214e8f[_0x169a97]=[];}for(const _0x1a5689 of _0x214e8f)for(let _0x4d9492=0x0;_0x4d9492<_0x1a5689['length'];_0x4d9492++){const _0x48bfdd=_0x1a5689[_0x4d9492+0x1]||null;_0x1a5689[_0x4d9492]['next']!==_0x48bfdd&&(_0x1a5689[_0x4d9492]['next']=_0x48bfdd);}for(const _0x23f585 of _0x214e8f)for(let _0x18168b=0x0;_0x18168b<_0x23f585['length'];_0x18168b++){const _0x30cf6b=_0x23f585[_0x18168b-0x1]||null;_0x23f585[_0x18168b]['previous']!==_0x30cf6b&&(_0x23f585[_0x18168b]['previous']=_0x30cf6b);}function _0x14ff39(_0x20c39f,_0x5b408c){if(_0x20c39f[0x0]['attributes']['groupId']!==_0x5b408c[0x0]['attributes']['groupId']&&_0x20c39f[0x0]['author']!==_0x5b408c[0x0]['author'])return!0x1;if(!function(_0x491486,_0x1ddf83){if(!_0x491486['hasComments']&&!_0x1ddf83['hasComments'])return!0x0;if(_0x491486['hasComments']&&_0x1ddf83['hasComments'])return!0x1;if(_0x491486['hasComments']&&_0x1ddf83['createdAt']<_0x491486['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1ddf83['hasComments']&&_0x491486['createdAt']<_0x1ddf83['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x20c39f[0x0],_0x5b408c[0x0]))return!0x1;const _0x5c0e3f=Ft(_0x20c39f[0x0]['attributes'],['groupId','trackingSessionId']),_0x4cdcfb=Ft(_0x5b408c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5834e8(_0x5c0e3f,_0x4cdcfb))return!0x1;if(_0x20c39f[0x0]['attributes']['groupId']==_0x5b408c[0x0]['attributes']['groupId'])return!0x0;if(_0x20c39f[0x0]['attributes']['trackingSessionId']!==_0x5b408c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x20c39f['every'](_0x355dad=>_0x5b408c['some'](_0x596d04=>_0x355dad['getFirstRange']()['isEqual'](_0x596d04['getFirstRange']())))&&_0x5b408c['every'](_0x19c3bc=>_0x20c39f['some'](_0x23a7ed=>_0x19c3bc['getFirstRange']()['isEqual'](_0x23a7ed['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x15a5e8){const _0x102b9e=Array['from'](_0x15a5e8),_0x447da9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1d6263=_0x447da9['filter'](_0x1efa0e=>!_0x15a5e8['has'](_0x1efa0e)),_0xe54ea3=new Map(_0x102b9e['map'](_0x4313c9=>[_0x4313c9,this['_suggestionFactory']['getSuggestionCallback'](_0x4313c9['type'],_0x4313c9['subType'],'join')])),_0x1f998a=new Map(_0x447da9['map'](_0x20a960=>[_0x20a960,_0x20a960['getRanges']()]));for(let _0x5794f5=0x0;_0x5794f5<_0x102b9e['length'];_0x5794f5++){if(_0x1dfb25(this,_0x102b9e[_0x5794f5],_0x102b9e,_0x5794f5+0x1))return!0x0;}for(let _0x5f385e=0x0;_0x5f385e<_0x102b9e['length'];_0x5f385e++){if(_0x1dfb25(this,_0x102b9e[_0x5f385e],_0x1d6263,0x0))return!0x0;}return!0x1;function _0x1dfb25(_0x531692,_0x104ab3,_0x471edc,_0x1952e4){for(let _0x5f04ba=_0x1952e4;_0x5f04ba<_0x471edc['length'];_0x5f04ba++){const _0x2b674d=_0x471edc[_0x5f04ba];if(_0x2b674d['type']!==_0x104ab3['type']||_0x2b674d['author']['id']!==_0x104ab3['author']['id']||_0x2b674d['subType']!==_0x104ab3['subType'])continue;if(!Xt(_0x104ab3,_0x2b674d))continue;if('attribute'==_0x104ab3['type']&&_0x104ab3['data']['oldValue']!=_0x2b674d['data']['oldValue'])continue;if('attribute'==_0x104ab3['type']&&_0x531692['_isBlockAttribute'](_0x104ab3['data']['key']))continue;if('formatBlock'==_0x104ab3['type']){const _0x122165=_0x531692['editor']['model'],_0x332f71=_0x104ab3['getContainedElement']();if(_0x332f71&&(_0x122165['schema']['isObject'](_0x332f71)||_0x122165['schema']['isLimit'](_0x332f71)))continue;}const _0x46e369=_0xe54ea3['get'](_0x104ab3),_0x3d00b9=_0x1f998a['get'](_0x104ab3),_0x502560=_0x1f998a['get'](_0x2b674d),_0x3ffc75=_0x104ab3['commentThread']&&_0x104ab3['commentThread']['length'],_0x22e38f=_0x2b674d['commentThread']&&_0x2b674d['commentThread']['length'];if(!_0x3ffc75&&_0x46e369(_0x502560,_0x3d00b9))return _0x531692['_joinSuggestions'](_0x2b674d,_0x104ab3),_0x1f998a['delete'](_0x104ab3),!0x0;if(!_0x22e38f&&_0x46e369(_0x3d00b9,_0x502560))return _0x531692['_joinSuggestions'](_0x104ab3,_0x2b674d),_0x1f998a['delete'](_0x2b674d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x19e25b,_0x5c71ba){if(_0x19e25b['isMultiRange']){for(const _0x193e4 of _0x5c71ba['getRanges']())_0x19e25b['addRange'](_0x193e4);}else{const _0x106187=_0x5c71ba['getFirstRange']()['end'];this['_setSuggestionRange'](_0x19e25b,this['_model']['createRange'](_0x19e25b['getFirstRange']()['start'],_0x106187));}_0x5c71ba['removeMarkers']();}['_getMarkerAnnouncementText'](_0x75c8da,_0x4d8459,_0x51e139){const _0x4eae24=_0x75c8da['startsWith']('format')||_0x75c8da['startsWith']('attribute')?'FORMATTING':_0x75c8da['toUpperCase']();return c(this['editor']['locale'],_0x4d8459+'_'+_0x4eae24+'_SUGGESTION_ANNOUNCEMENT',_0x51e139);}['_initAriaMarkerChangeAnnouncements'](){const _0x25e7d9=this['editor'];if(!_0x25e7d9['ui'])return;const {ariaLiveAnnouncer:_0x7b131c}=_0x25e7d9['ui'];_0x2001ba(this['_model'],({left:_0x2c7605,entered:_0x21b669})=>{for(const _0x3ef84d of _0x2c7605){const {group:_0x133b8f,type:_0x12fd17}=this['_splitMarkerName'](_0x3ef84d['name']);if('suggestion'===_0x133b8f){_0x7b131c['announce'](this['_getMarkerAnnouncementText'](_0x12fd17,'LEAVE'));break;}}for(const _0x208390 of _0x21b669){const {group:_0x5cd4cc,type:_0x444134}=this['_splitMarkerName'](_0x208390['name']);if('suggestion'===_0x5cd4cc){_0x7b131c['announce'](this['_getMarkerAnnouncementText'](_0x444134,'ENTER',_0x231ec4(_0x1f0485)));break;}}});}['_processAttributeChanges'](_0x5e0108){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4de35d=this['editor'],_0x3e7b6d=_0x4de35d['model']['document']['differ']['getChanges']();if(0x0==_0x3e7b6d['length'])return!0x1;const _0x191df0=[],_0x419c52=_0x3e7b6d['filter'](_0x46bfc6=>'attribute'==_0x46bfc6['type']),_0x33b3ce=_0x3e7b6d['filter'](_0xe66291=>'insert'==_0xe66291['type']&&'$text'!=_0xe66291['name']),_0x43d097=_0x3e7b6d['filter'](_0x27f70e=>'remove'==_0x27f70e['type']&&'$text'!=_0x27f70e['name']);for(const _0x556b27 of _0x419c52)_0x191df0['push']({'key':_0x556b27['attributeKey'],'newValue':_0x556b27['attributeNewValue'],'oldValue':_0x556b27['attributeOldValue'],'range':zt(_0x556b27['range'],_0x4de35d['model'])});for(const _0x24198f of _0x33b3ce){const _0x4c614c=_0x43d097['find'](_0x53a600=>_0x53a600['position']['isEqual'](_0x24198f['position']));_0x4c614c&&_0x191df0['push']({'key':u,'newValue':_0x24198f['name'],'oldValue':_0x4c614c['name'],'range':_0x4de35d['model']['createRangeOn'](_0x24198f['position']['nodeAfter'])});}return 0x0!=_0x191df0['length']&&this['_reduceExistingSuggestions'](_0x5e0108,_0x191df0);}['_processAttributeSuggestions'](_0x4f8606){let _0xf8c447=!0x1;const _0x40dfee=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4e8f67=>_0x4e8f67['data']['newRange']&&_0x4e8f67['name']['startsWith']('suggestion:attribute:'));for(const _0x3af0e2 of _0x40dfee){const {subType:_0x4008b3,id:_0x4ab8db}=this['_splitMarkerName'](_0x3af0e2['name']),_0x3fd6a3=_0x4008b3['split']('|')[0x0];for(const _0x2749df of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2749df['id']!=_0x4ab8db&&'attribute'==_0x2749df['type']&&_0x2749df['data']&&_0x2749df['data']['key']==_0x3fd6a3&&_0x2749df['getFirstRange']()['isIntersecting'](_0x3af0e2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2749df,_0x3af0e2['data']['newRange'],_0x4f8606),_0xf8c447=!0x0);}return _0xf8c447;}['_recordAttributeChanges'](_0x567638){this['_recordAttributeSuggestions']=!0x0,_0x567638();}['_isRegisteredAttribute'](_0x53b1c2){const _0x325e78=this['_isBlockAttribute'](_0x53b1c2),_0x37ca36=this['_inlineAttributeKeys']['has'](_0x53b1c2);return _0x325e78||_0x37ca36;}['_reduceExistingSuggestions'](_0x2d9daa,_0x2c6f68){if(0x0==_0x2c6f68['length'])return!0x1;let _0x3a9c23=!0x1;for(const _0x18ca34 of _0x2c6f68){const _0x53bd65=this['_findSuggestions'](_0x18ca34['range'],'attribute')['filter'](_0x5d73e1=>!_0x5d73e1['meta']['isNextTo'])['map'](_0x2368af=>_0x2368af['suggestion']),_0x54e0c9=_0x51efad({'newValue':_0x18ca34['newValue']});_0x53bd65['filter'](_0x1fc7fa=>{const [_0xdb920d,_0x51b395]=_0x1fc7fa['subType']['split']('|');return _0xdb920d==_0x18ca34['key']&&_0x51b395!=_0x54e0c9;})['forEach'](_0x34d1ef=>{this['_reduceSuggestionAttributeRange'](_0x34d1ef,_0x18ca34['range'],_0x2d9daa),_0x3a9c23=!0x0;});}return _0x3a9c23;}['_reduceSuggestionAttributeRange'](_0x1cccee,_0x3b1af3,_0x48c8bb){const _0x5f26e3=_0x1cccee['getFirstRange']()['getDifference'](_0x3b1af3);0x0!==_0x5f26e3['length']?0x1!==_0x5f26e3['length']?this['_breakSuggestionMarker'](_0x1cccee,_0x3b1af3['start'],_0x3b1af3['end']):this['_setSuggestionRange'](_0x1cccee,_0x5f26e3[0x0]):_0x48c8bb['removeMarker'](_0x1cccee['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x43f929){this['_editor']=_0x43f929,this['_model']=_0x43f929['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2f1142,_0x50d2ae,_0x48a348,_0x25871d,_0x393317,_0x29988c,_0x5882bc){return new o(this['_model'],{'type':_0x2f1142,'subType':_0x50d2ae,'id':_0x48a348,'originalSuggestionId':_0x5882bc,'author':_0x25871d,'creator':_0x25871d,'attributes':_0x393317,'onAttributesChange':_0x29988c,'onAccept':(..._0x53a8c1)=>this['getSuggestionCallback'](_0x2f1142,_0x50d2ae,'accept')(..._0x53a8c1),'onDiscard':(..._0x54be48)=>this['getSuggestionCallback'](_0x2f1142,_0x50d2ae,'discard')(..._0x54be48)});}['registerCustomCallback'](_0x1a2f95,_0x30af9e,_0xb286c,_0x389cdb){const _0x484d72=_0x1a2f95+':'+_0x30af9e+':'+_0xb286c;this['_customCallbacks']['set'](_0x484d72,_0x389cdb);}['getSuggestionCallback'](_0xb894e0,_0x486499,_0x3df66f){const _0x5a7a7d=_0xb894e0+':'+_0x486499+':'+_0x3df66f;return this['_customCallbacks']['get'](_0x5a7a7d)||this['_defaultCallbacks']['get'](_0xb894e0+':'+_0x3df66f);}['_registerDefaultCallbacks'](){const _0x5c7fa2=()=>!0x1,_0x4d5dd1=_0x1d5a38=>{_0x1d5a38['sort']((_0x185ca9,_0x3b1372)=>_0x185ca9['start']['isBefore'](_0x3b1372['start'])?0x1:-0x1),this['_model']['change'](_0x14239f=>{for(const _0x377843 of _0x1d5a38){let _0x2ff308;_0x2ff308=_0x377843['end']['isAtEnd']&&_0x377843['end']['parent']==_0x377843['start']['nodeAfter']?_0x14239f['createSelection'](_0x377843['start']['nodeAfter'],'on'):_0x14239f['createSelection'](_0x377843),this['_model']['deleteContent'](_0x2ff308,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2bb531=(_0x49c663,_0x2043dc)=>{_0x2043dc&&this['_model']['change'](_0x40de08=>{const {commandName:_0xf5c6aa,commandParams:_0x203352=[]}=_0x2043dc,_0x1edc53=_0x49c663['map'](_0x3dd55a=>(Lt(_0x3dd55a)&&(_0x3dd55a=this['_model']['createRange'](_0x3dd55a['end'])),_0x3dd55a))['filter'](_0x4c3bf5=>'$graveyard'!==_0x4c3bf5['root']['rootName']);if(_0x1edc53['length']<0x1)return;const _0xb60156=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xe60014=>_0xf8fd8e['fromRange'](_0xe60014));_0x40de08['setSelection'](_0x1edc53);for(const _0x271c93 of this['_editor']['commands']['commands']())_0x271c93['refresh']();_0x203352['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xf5c6aa,..._0x203352);const _0x591003=_0xb60156['filter'](_0x52ca28=>'$graveyard'!=_0x52ca28['root']['rootName']);_0x591003['length']>0x0&&_0x40de08['setSelection'](_0x591003);for(const _0x12072c of _0xb60156)_0x12072c['detach']();});},_0x4fbe95=(_0x21d8b1,_0x3f886e)=>0x1==_0x21d8b1['length']&&0x1==_0x3f886e['length']&&_0x21d8b1[0x0]['end']['isEqual'](_0x3f886e[0x0]['start']),_0x3a8070=(_0x3b0a65,_0x69cb91,_0x34904d,_0x5551d7)=>Qt(_0x3b0a65,_0x69cb91,_0x34904d,_0x5551d7)?[_0x3b0a65,_0x69cb91]:Qt(_0x69cb91,_0x3b0a65,_0x5551d7,_0x34904d)?[_0x69cb91,_0x3b0a65]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5c7fa2),this['_defaultCallbacks']['set']('insertion:discard',_0x4d5dd1),this['_defaultCallbacks']['set']('insertion:join',_0x4fbe95),this['_defaultCallbacks']['set']('insertion:chain',_0x3a8070),this['_defaultCallbacks']['set']('deletion:accept',_0x4d5dd1),this['_defaultCallbacks']['set']('deletion:discard',_0x5c7fa2),this['_defaultCallbacks']['set']('deletion:join',_0x4fbe95),this['_defaultCallbacks']['set']('deletion:chain',_0x3a8070),this['_defaultCallbacks']['set']('formatInline:accept',_0x2bb531),this['_defaultCallbacks']['set']('formatInline:discard',_0x5c7fa2),this['_defaultCallbacks']['set']('formatInline:join',_0x4fbe95),this['_defaultCallbacks']['set']('formatInline:chain',_0x5c7fa2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2bb531),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5c7fa2),this['_defaultCallbacks']['set']('formatBlock:join',_0x4fbe95),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5c7fa2),this['_defaultCallbacks']['set']('attribute:accept',_0x5c7fa2),this['_defaultCallbacks']['set']('attribute:discard',(_0x26681e,_0x1032b8)=>{if(!_0x1032b8)return;const _0x5efb5b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3e13f9=>{if(_0x1032b8['key']==u)for(const _0x141038 of _0x26681e){const _0x561794=_0x141038['start']['nodeAfter'],_0x8b2cc9=_0x1032b8['oldValue'];_0x3e13f9['rename'](_0x561794,_0x8b2cc9);}else{if(_0x5efb5b['_isBlockAttribute'](_0x1032b8['key'])){for(const _0x19daf8 of _0x26681e)void 0x0!==_0x1032b8['oldValue']?_0x3e13f9['setAttribute'](_0x1032b8['key'],_0x1032b8['oldValue'],_0x19daf8['start']['nodeAfter']):_0x3e13f9['removeAttribute'](_0x1032b8['key'],_0x19daf8['start']['nodeAfter']);}else{for(const _0x25bc4c of _0x26681e)_0x1032b8['oldValue']?_0x3e13f9['setAttribute'](_0x1032b8['key'],_0x1032b8['oldValue'],_0x25bc4c):_0x3e13f9['removeAttribute'](_0x1032b8['key'],_0x25bc4c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4fbe95);}}function Gt(_0x3bdcf3,_0x39881b,_0x2497cd){for(const _0xea3bda of _0x39881b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xea3bda['root']==_0xea3bda)return!0x1;if(!_0x2497cd['containsItem'](_0xea3bda))return!0x1;if(_0x3bdcf3['isObject'](_0xea3bda)||_0x3bdcf3['isLimit'](_0xea3bda))return!0x0;}return!0x1;}function Lt(_0x1a07ec){return _0x1a07ec['end']['parent']==_0x1a07ec['start']['nodeAfter']&&_0x1a07ec['end']['isAtStart'];}function Jt(_0x79495f,_0x4282e6,_0x2d2c07,_0x53e30f){const _0x5583e7=_0x17ea99=>!_0x17ea99['item']['is']('$textProxy')&&!_0x53e30f['isObject'](_0x17ea99['item']),_0x2cd834=_0x79495f['start']['getLastMatchingPosition'](_0x5583e7),_0x2c8e2e=_0x79495f['end']['getLastMatchingPosition'](_0x5583e7,{'direction':'backward'});return(!_0x79495f['start']['isEqual'](_0x2cd834)||!_0x79495f['end']['isEqual'](_0x2c8e2e))&&(_0x2cd834['isBefore'](_0x2c8e2e)?_0x2d2c07['updateMarker'](_0x4282e6,{'range':_0x2d2c07['createRange'](_0x2cd834,_0x2c8e2e)}):_0x2d2c07['removeMarker'](_0x4282e6),!0x0);}function Kt(_0x3bbdf0){return _0x51efad(_0x3bbdf0);}function Ht(_0x5299ba){const _0x547ef7=_0x5299ba['start']['nodeAfter'];return _0x547ef7&&_0x547ef7['is']('element');}function qt(_0x260a92){return!Lt(_0x260a92)&&!function(_0xb5e01a){return _0xb5e01a['start']['parent']==_0xb5e01a['end']['nodeBefore']&&_0xb5e01a['start']['isAtEnd'];}(_0x260a92);}function zt(_0xa4d3b3,_0x33e751){return null==_0xa4d3b3['end']['nodeBefore']&&_0xa4d3b3['end']['parent']==_0xa4d3b3['start']['nodeAfter']?Wt(_0xa4d3b3['start']['nodeAfter'],_0x33e751):_0xa4d3b3;}function Wt(_0x2cb1a6,_0x50ad5d){const _0x2b8b31=_0x50ad5d['schema']['isObject'](_0x2cb1a6)||_0x50ad5d['schema']['isSelectable'](_0x2cb1a6);return _0x50ad5d['createRange'](_0x50ad5d['createPositionAt'](_0x2cb1a6,'before'),_0x2b8b31?_0x50ad5d['createPositionAfter'](_0x2cb1a6):_0x50ad5d['createPositionAt'](_0x2cb1a6,'end'));}function Qt(_0x5bbcc0,_0x316d34,_0x2b0021,_0x4126a8){return!!Xt(_0x5bbcc0,_0x316d34)&&_0x2b0021['end']['isEqual'](_0x4126a8['start']);}function Xt(_0x4b4d19,_0x34c2a6){if(!_0x4b4d19['_isDataLoaded']||!_0x34c2a6['_isDataLoaded'])return!0x1;const _0x2d040b=new Set(Object['keys'](_0x4b4d19['attributes'])),_0x47a971=new Set(Object['keys'](_0x34c2a6['attributes']));if(_0x2d040b['delete']('groupId'),_0x47a971['delete']('groupId'),0x0==_0x2d040b['size']&&0x0==_0x47a971['size'])return!0x0;if(_0x2d040b['size']!=_0x47a971['size'])return!0x1;const _0x11403b={..._0x4b4d19['attributes']},_0x2645fb={..._0x34c2a6['attributes']};return delete _0x11403b['groupId'],delete _0x2645fb['groupId'],JSON['stringify'](_0x11403b)==JSON['stringify'](_0x2645fb);}function Yt(_0x2cbec2,_0x4ca820){const _0x5b77aa=Zt(_0x2cbec2['attributes']),_0x3dc9ac=Zt(_0x4ca820);if(!_0x2cbec2['_isDataLoaded'])return!0x1;for(const _0x2d8cc9 of Object['keys'](_0x3dc9ac))if(!_0x5834e8(_0x5b77aa[_0x2d8cc9],_0x3dc9ac[_0x2d8cc9]))return!0x1;return!0x0;}function Zt(_0x555ed4){const _0x1f4550=Object['assign']({},_0x555ed4);return delete _0x1f4550['skipNestingCheck'],delete _0x1f4550['tablePasteChainId'],_0x1f4550;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x4ec318(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x276a6b,_0x2ba096,_0x54552c,_0x1be1e5){super(),this['model']=_0x2ba096,this['view']=_0x54552c,this['commentThreadController']=_0x1be1e5,this['_editor']=_0x276a6b,this['_acceptCommand']=_0x276a6b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x276a6b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x50fc69,_0x3430c4)=>_0x50fc69||_0x3430c4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x45bc6d=>_0x45bc6d&&this['_editor']['model']['canEditAt'](_0x2ba096['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xc124d1=>_0xc124d1&&this['_editor']['model']['canEditAt'](_0x2ba096['getRanges']())),this['_pendingAction']=null,_0x54552c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x54552c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x54552c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x54552c,'change:isDirty',()=>{_0x54552c['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 _0x465b08=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x465b08);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3c3a65{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5b07ff,_0x3baa91,_0x5b3224,_0x4f2c4e){super(_0x5b07ff),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x34a612(_0x5b07ff,c(_0x5b07ff,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3baa91['authoredAt']),this['bind']('authoredAt')['to'](_0x3baa91),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',_0x3baa91,'authoredAt',this,'descriptionParts',(_0x1a4ba6,_0x5ced0a,_0x2e79d1)=>{const _0x2066d9=_0x2e79d1['map'](_0x15333e=>ls(_0x15333e['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1a4ba6-0x1,_0x3baa91['author']['name'],_0x5ced0a?_0x4f2c4e['formatDateTime'](_0x5ced0a):'',new DOMParser()['parseFromString'](_0x2066d9,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1cf556(),this['focusTracker']=new _0x23919d(),this['keystrokes']=new _0x5e8f5e(),this['focusCycler']=new _0x80b2b8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1b0a34=>_0x1b0a34['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3baa91,this['_localUser']=_0x5b3224,this['_config']=_0x4f2c4e,_0x4f2c4e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x158e7e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x263bcf}=this['_config'];this['commentsListView']=new _0x263bcf(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',_0x23dfb4=>_0x23dfb4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x54451f,_0x34d7a4)=>_0x54451f||!!_0x34d7a4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5734b2}=this['_config'],_0x552f63=new _0x5734b2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4c19c1=_0x552f63['commentInputView'];return _0x552f63['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4c19c1,'value',(_0x4c40a4,_0x4f6a32,_0x2d971f)=>!!_0x2d971f||_0x4c40a4&&!_0x4f6a32),_0x4c19c1['on']('submit',(_0x496333,_0xe084bc)=>{this['fire']('addComment',_0xe084bc),_0x4c19c1['editor']['setData']('');}),_0x4c19c1['on']('cancel',()=>this['focus']()),_0x4c19c1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x552f63;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x52acc0,_0x24b0c6,_0x32b163,_0x22b01e){super(_0x52acc0,_0x24b0c6,_0x32b163,_0x22b01e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1f3652=>_0x1f3652&&_0x1f3652[0x0]?_0x1f3652[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2f0413,_0x5d9ea2)=>{let _0x161bb7='';for(const _0x911e28 of _0x2f0413)_0x161bb7+='<p>'+ls(_0x911e28['content'],_0x911e28['color'])+'</p>';return _0x5d9ea2?_0x161bb7:_0x41c8ca(_0x161bb7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x22b01e['SuggestionView'](_0x52acc0,_0x24b0c6,{'formatDateTime':_0x22b01e['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 _0x34fb48=this['bindTemplate'],_0xabb853=[this['suggestionView']];return this['commentsListView']&&_0xabb853['push'](this['commentsListView']),this['commentThreadInputView']&&_0xabb853['push'](this['commentThreadInputView']),_0xabb853['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x34fb48['if']('isActive','ck-suggestion-wrapper--active'),_0x34fb48['to']('type',_0x1e30c8=>'ck-suggestion-'+_0x1e30c8),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':_0x34fb48['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xabb853};}['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 _0x3c3a65{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4fee03,_0x20b6fc,_0x11b64e){super(_0x4fee03),this['_model']=_0x20b6fc,this['_config']=_0x11b64e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x20b6fc),this['acceptButton']=this['_createButton'](c(_0x4fee03,'Accept\x20suggestion'),_0x5ac1f8,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4fee03,'Discard\x20suggestion'),_0x2e2f79,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2a1e2e(_0x4fee03,_0x20b6fc['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1cf556([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x23919d(),this['keystrokes']=new _0x5e8f5e(),this['focusCycler']=new _0x80b2b8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4d5bef=>_0x4d5bef['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x12bc10=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x12bc10['innerHTML']=this['description'],this['on']('change:description',(_0x4207f9,_0x1980f8,_0x2c2714)=>{_0x12bc10['innerHTML']=_0x2c2714;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5ebeb2=this['bindTemplate'],_0x1e124e=[{'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':_0x5ebeb2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5ebeb2['to']('authoredAt',_0x5edf0f=>this['_config']['formatDateTime'](_0x5edf0f))}]}]},{'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']&&_0x1e124e['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':_0x1e124e}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3d859f,_0x1b1299,_0x48630c,_0x1e47e9,_0x1d5d47){const _0x3241c8=new _0x10be5c(this['locale']);return _0x3241c8['set']({'label':_0x3d859f,'icon':_0x1b1299,'tooltip':!0x0,'tooltipPosition':_0x1d5d47}),_0x3241c8['extendTemplate']({'attributes':{'class':_0x48630c}}),_0x3241c8['on']('execute',()=>{this['fire'](_0x1e47e9,this['_model']['id']);}),_0x3241c8;}['_setupKeyboardNavigation'](){const _0x1b05fb=this['element'];this['keystrokes']['listenTo'](_0x1b05fb);for(const _0x259f45 of this['focusables'])this['focusTracker']['add'](_0x259f45['element']),this['keystrokes']['listenTo'](_0x259f45['element']);this['keystrokes']['set']('enter',(_0x55bce7,_0x382f1f)=>{_0x1b05fb===_0x55bce7['target']&&(this['focusCycler']['focusFirst'](),_0x382f1f());}),this['keystrokes']['set']('esc',(_0x56fdaf,_0x2f51c1)=>{_0x1b05fb!==_0x56fdaf['target']&&(this['focus'](),_0x2f51c1());});}}class d extends _0x121524{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x23ff89,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x217bc3){super(_0x217bc3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2521a4=this['editor']['config'];_0x2521a4['define']('trackChanges.SuggestionThreadView',fe),_0x2521a4['define']('trackChanges.SuggestionView',we),_0x2521a4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2521a4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x72f03,_0x55bb7a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x47d7bf,_0x3c149e]of this['_handleControllerBuffer']){const _0x42d432=this['_suggestionToController']['has'](_0x47d7bf);_0x42d432||_0x3c149e?_0x42d432&&_0x3c149e&&this['_destroyController'](_0x47d7bf):this['_initializeController'](_0x47d7bf);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x72f03,_0x55bb7a);}['init'](){const _0x5454bc=this['editor'],_0x210915=_0x5454bc['plugins']['get']('TrackChangesEditing'),_0x390f73=_0x5454bc['plugins']['get']('Annotations'),_0x4b0962=_0x5454bc['plugins']['get']('EditorAnnotations'),_0xf627b=_0x5454bc['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4b0962['addSourceCollector'](()=>{const _0x21c3ee=[];for(const [_0x3bcbb9,_0x138faf]of Array['from'](this['_suggestionToController'])){const _0x1d6567=_0x3bcbb9['getAllAdjacentSuggestions'](),_0x3d214e=[];for(const _0x1d2b9c of _0x1d6567){if(!_0x1d2b9c['isInContent'])continue;if(_0x1d2b9c['isMultiRange']){_0x3d214e['push'](..._0x1d2b9c['getRanges']());continue;}const _0x4b5927=_0x1d2b9c['getFirstRange']();if(_0x3d214e['length']>0x0){const _0x5d45d1=_0x3d214e[0x0]['getJoined'](_0x4b5927);if(_0x5d45d1){_0x3d214e[0x0]=_0x5d45d1;continue;}}_0x3d214e['push'](_0x4b5927);}_0x21c3ee['push']([_0x138faf['view'],_0x3d214e]);}return _0x21c3ee;}),this['listenTo'](_0x210915,'suggestionLoaded',(_0x1d53fc,_0xa83894)=>{this['listenTo'](_0xa83894,'change:previous',(_0x1c2079,_0x313cfe,_0x3907db,_0xe76de3)=>{_0xa83894['isInContent']&&(null==_0x3907db?(this['_updateController'](_0xe76de3['head']),this['_handleSuggestionControllerDelayed'](_0xa83894,!0x1)):(this['_updateController'](_0x3907db['head']),null==_0xe76de3&&this['_handleSuggestionControllerDelayed'](_0xa83894,!0x0)));}),null!==_0xa83894['previous']?this['_updateController'](_0xa83894['head']):this['_handleSuggestionControllerDelayed'](_0xa83894,!0x1);}),this['listenTo'](_0x210915,'suggestionUnloaded',(_0x4923da,_0x17e2a1,_0x191d2c)=>{this['stopListening'](_0x17e2a1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x17e2a1),this['_suggestionToController']['has'](_0x17e2a1)&&this['_destroyController'](_0x17e2a1),_0x191d2c&&this['_updateController'](_0x191d2c['head']);}),this['listenTo'](_0x210915,'suggestionChanged',(_0xf64a11,_0x40de85)=>{this['_updateController'](_0x40de85);}),this['listenTo'](_0x390f73,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xf627b,'addComment',(_0x2897f7,{threadId:_0x41762b,isFromAdapter:_0x485324})=>{if(_0x485324||!_0x210915['hasSuggestion'](_0x41762b))return;const _0x450e20=_0x210915['getSuggestion'](_0x41762b);this['_suggestionToController']['get'](_0x450e20)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x19a4d6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x56f8a2;for(const _0x347d00 in _0x19a4d6){const _0x1f64ed=_0x347d00,_0x3e0508=_0x19a4d6[_0x1f64ed];if('trackChangesLicenseKeyValid'==_0x3e0508||'trackChangesLicenseKeyInvalid'==_0x3e0508||'trackChangesLicenseKeyExpired'==_0x3e0508||'trackChangesLicenseKeyDomainLimit'==_0x3e0508||'trackChangesLicenseKeyNotAllowed'==_0x3e0508||'trackChangesLicenseKeyEvaluationLimit'==_0x3e0508||'trackChangesLicenseKeyTrialLimit'==_0x3e0508||'trackChangesLicenseKeyUsageLimit'==_0x3e0508){delete _0x19a4d6[_0x1f64ed],_0x56f8a2=_0x3e0508,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x56f8a2&&_0x19a4d6['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x56f8a2&&_0x19a4d6['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x56f8a2&&_0x19a4d6['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x56f8a2&&_0x19a4d6['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x56f8a2&&_0x19a4d6['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x56f8a2&&_0x19a4d6['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x56f8a2&&_0x19a4d6['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x41706e=this['editor']['plugins']['get']('Annotations'),_0x4f82b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cc794=Array['from'](_0x41706e['activeAnnotations'],_0x184b87=>_0x184b87['innerView'])['filter'](_0x378314=>this['_viewToController']['has'](_0x378314)),_0x279e40=[];for(const _0x1c9f7a of _0x3cc794){const _0x1f0a4c=this['_viewToController']['get'](_0x1c9f7a)['model']['getAllAdjacentSuggestions']();_0x279e40['push'](..._0x1f0a4c['reduce']((_0x424c03,_0x6a1cbd)=>[..._0x424c03,..._0x6a1cbd['getMarkerNames']()],[]));}_0x4f82b7['activeMarkers']=_0x279e40;}['_addUIComponentsToFactory'](){const _0x5da473=this['editor'],_0x157712=_0x5da473['locale'],_0x2898e0=c(_0x157712,'Track\x20changes'),_0x24017c=new _0x3e74dd([{'type':'switchbutton','model':new _0x22348e({'withText':!0x0,'isToggleable':!0x0,'label':_0x2898e0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x22348e({'withText':!0x0,'label':c(_0x157712,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22348e({'withText':!0x0,'label':c(_0x157712,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22348e({'withText':!0x0,'label':c(_0x157712,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22348e({'withText':!0x0,'label':c(_0x157712,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5da473['plugins']['has']('TrackChangesPreview')&&_0x24017c['addMany']([{'type':'separator'},{'type':'button','model':new _0x22348e({'withText':!0x0,'label':c(_0x157712,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3c0e47 of _0x24017c)if(ke(_0x3c0e47)){const _0x1b5b7e=_0x5da473['commands']['get'](_0x3c0e47['model']['commandName']);_0x3c0e47['model']['bind']('isOn','isEnabled')['to'](_0x1b5b7e,'value','isEnabled');}_0x5da473['ui']['componentFactory']['add']('trackChanges',_0x320303=>this['_createToolbarButton'](_0x320303,_0x24017c,_0x2898e0)),_0x5da473['ui']['componentFactory']['add']('menuBar:trackChanges',_0x51c3c5=>this['_createMenuBarMenu'](_0x51c3c5,_0x24017c,_0x2898e0));}['_createToolbarButton'](_0x5ae052,_0x31af77,_0x281d74){const _0x2dc82b=_0x1a0e52(_0x5ae052,_0x247951),_0x16321f=this['editor']['commands']['get']('trackChanges');_0x2dc82b['buttonView']['set']({'tooltip':_0x281d74,'label':_0x281d74,'icon':_0x5aba70}),_0x2dc82b['buttonView']['bind']('isOn')['to'](_0x16321f,'value'),_0x2dc82b['buttonView']['on']('execute',()=>{_0x16321f['execute'](),this['editor']['editing']['view']['focus']();}),_0x1a8fc2(_0x2dc82b,_0x31af77,{'role':'menu'});const _0x8e5984=[];for(const _0x5e4016 of _0x31af77)ke(_0x5e4016)&&_0x8e5984['push'](this['editor']['commands']['get'](_0x5e4016['model']['commandName']));const _0x3d34cc=_0x2dc82b['buttonView'];return _0x3d34cc['actionView']['unbind']('isEnabled'),_0x3d34cc['arrowView']['unbind']('isEnabled'),_0x3d34cc['actionView']['bind']('isEnabled')['to'](_0x16321f,'isEnabled'),_0x3d34cc['arrowView']['bind']('isEnabled')['toMany'](_0x8e5984,'isEnabled',(..._0x1c455c)=>_0x1c455c['some'](_0x4aa9a4=>_0x4aa9a4)),_0x2dc82b['on']('execute',_0x23f431=>{this['editor']['execute'](_0x23f431['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2dc82b;}['_createMenuBarMenu'](_0x3572ef,_0x305749,_0x5b86da){const _0x4b85fe=new _0x4416c9(_0x3572ef),_0x582c0a=this['editor']['commands']['get']('trackChanges');_0x4b85fe['buttonView']['set']({'label':_0x5b86da,'icon':_0x5aba70});const _0x554847=new _0x2b3aae(_0x3572ef);for(const _0x26e2be of _0x305749){if('separator'==_0x26e2be['type']){_0x554847['items']['add'](new _0x567c6c(_0x3572ef));continue;}const _0x197d32=new _0x346f61(_0x3572ef,_0x4b85fe),_0x4a750b=new _0x59f6d0(_0x3572ef),_0x102db4=_0x26e2be['model'];_0x4a750b['bind'](...Object['keys'](_0x102db4))['to'](_0x102db4),_0x4a750b['delegate']('execute')['to'](_0x4b85fe),_0x4a750b['on']('execute',()=>{this['editor']['execute'](_0x102db4['commandName']),this['editor']['editing']['view']['focus']();}),_0x197d32['children']['add'](_0x4a750b),_0x554847['items']['add'](_0x197d32);}return _0x4b85fe['bind']('isEnabled')['to'](_0x582c0a,'isEnabled'),_0x4b85fe['panelView']['children']['add'](_0x554847),_0x4b85fe;}['_initializeController'](_0x582eda){const _0x2adcb=this['editor'],_0x5cc542=_0x2adcb['config'],_0x45c547=_0x2adcb['plugins']['get']('Annotations'),_0x1bf8a8=_0x2adcb['plugins']['get']('CommentsRepository'),_0x123e2b=_0x2adcb['plugins']['get']('EditorAnnotations'),_0x39ea96=_0x2adcb['plugins']['get'](_0x23ff89)['me'],_0x3ce4c5=_0x5cc542['get']('trackChanges')['SuggestionThreadView'],_0x4d4db7=_0x5cc542['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2869c4,CommentThreadInputView:_0x2132db}=_0x2adcb['plugins']['get']('CommentsUI');let _0x36adba,_0x16bb3f,_0x233cec;this['_annotationViews']['has'](_0x582eda['id'])?(_0x16bb3f=this['_annotationViews']['get'](_0x582eda['id']),_0x36adba=_0x16bb3f['mainView']):(_0x36adba=new _0x3ce4c5(_0x2adcb['locale'],_0x582eda,_0x39ea96,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5cc542['get']('comments.editorConfig'),'licenseKey':_0x5cc542['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5cc542['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5cc542['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5cc542['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x40e693(_0x5cc542['get']('locale'),_0x2adcb['locale']),'CommentView':_0x5cc542['get']('comments')['CommentView'],'CommentsListView':_0x2869c4,'CommentThreadInputView':_0x2132db,'SuggestionView':_0x4d4db7}),_0x36adba['suggestionView']['acceptButton']['on']('execute',()=>{_0x2adcb['editing']['view']['focus']();}),_0x36adba['suggestionView']['discardButton']['on']('execute',()=>{_0x2adcb['editing']['view']['focus']();}),_0x16bb3f=_0x45c547['createAnnotationView'](this['editor']['locale'],_0x36adba),_0x16bb3f['bind']('isDirty')['to'](_0x36adba,'isDirty'),_0x16bb3f['bind']('length')['to'](_0x36adba),_0x16bb3f['bind']('type')['to'](_0x36adba,'type',_0x979419=>'suggestion-'+_0x979419),_0x36adba['on']('escape',()=>{_0x233cec['fire']('escape');}),this['_annotationViews']['set'](_0x582eda['id'],_0x16bb3f));const _0x3500f2=_0x1bf8a8['createCommentThreadController'](_0x582eda['commentThread'],_0x36adba),_0x20a606=new pe(_0x2adcb,_0x582eda,_0x36adba,_0x3500f2),_0x16910f=_0x582eda['getAllAdjacentSuggestions']()['filter'](_0x2727ef=>_0x2727ef['isInContent']);_0x36adba['descriptionParts']=_0x2adcb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x16910f),this['_suggestionToController']['set'](_0x582eda,_0x20a606),this['_viewToController']['set'](_0x36adba,_0x20a606),_0x233cec=_0x45c547['createAnnotation']({'view':_0x16bb3f,'target':()=>{const _0x11ca55=[],_0x4b693a=_0x582eda['getAllAdjacentSuggestions']()['filter'](_0x16dccc=>_0x16dccc['isInContent']);for(const _0x4776a4 of _0x4b693a)_0x11ca55['push'](..._0x4776a4['getMarkers']());return _0x18066e(_0x2adcb['editing'],_0x11ca55);},'type':()=>'suggestion-'+_0x20a606['view']['type']}),_0x1bf8a8['_bindAnnotationToEditors'](_0x36adba,_0x233cec),_0x45c547['add'](_0x233cec),_0x123e2b['registerAnnotation'](_0x233cec);}['_destroyController'](_0x31f835){const _0x27fdcc=this['editor']['plugins']['get']('CommentsRepository'),_0x63bcc=this['editor']['plugins']['get']('Annotations'),_0x3fbb7a=this['_suggestionToController']['get'](_0x31f835),_0x1d04bf=_0x3fbb7a['view'],_0x11cd4d=_0x63bcc['getByInnerView'](_0x1d04bf);_0x27fdcc['_unbindEditors'](_0x1d04bf),_0x11cd4d&&_0x63bcc['remove'](_0x11cd4d),this['_suggestionToController']['delete'](_0x31f835),this['_viewToController']['delete'](_0x1d04bf),_0x3fbb7a['destroy']();}['_updateController'](_0x4d7d50){if(!_0x4d7d50['isInContent']||!this['_suggestionToController']['has'](_0x4d7d50))return;const _0xf7f66a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40d160=this['_suggestionToController']['get'](_0x4d7d50),_0x12294e=_0x4d7d50['getAllAdjacentSuggestions']();_0x40d160['view']['descriptionParts']=_0xf7f66a['descriptionFactory']['getDescriptions'](_0x12294e);}['destroy'](){for(const _0x22134e of this['_suggestionToController']['keys']())this['_destroyController'](_0x22134e);for(const _0x16a337 of this['_annotationViews']['values']())_0x16a337['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4437fa){return'model'in _0x4437fa;}class k extends _0x121524{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x428ab9){this['editor']['plugins']['get'](p)['adapter']=_0x428ab9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1171f1){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1171f1);}['getSuggestions']({skipNotAttached:_0x450f16=!0x1,toJSON:_0x156232=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x450f16,'toJSON':_0x156232});}['getSuggestion'](_0x5725d2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5725d2);}}const w=['Pagination'];class T extends _0x121524{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5d9896=this['editor'];if(_0x5d9896['config']['define']('trackChangesData.editorCreator',_0x48c080=>{const _0x2c59f7=_0x5d9896['model']['document']['getRootNames']()['reduce']((_0x21ccc0,_0x26f3fe)=>(_0x21ccc0[_0x26f3fe]='',_0x21ccc0),{});return _0x5d9896['constructor']['create'](_0x2c59f7,_0x48c080);}),'function'!=typeof _0x5d9896['config']['get']('trackChangesData')['editorCreator'])throw new _0x33c4a9('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xbd8a27){return N(this['editor'],!0x0,_0xbd8a27);}['getDataWithDiscardedSuggestions'](_0x24ce9f){return N(this['editor'],!0x1,_0x24ce9f);}}class D extends _0x121524{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ec1b3){function _0x2e033e(_0x593f35){return _0x593f35['map'](_0x28e9c5=>String['fromCharCode'](_0x28e9c5))['join']('');}super(_0x3ec1b3),this['result']='end',_0x3ec1b3[_0x2e033e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e033e([0x76,0x69,0x65,0x77])][_0x2e033e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e033e([0x61,0x75,0x74,0x6f]),_0x3ec1b3[_0x2e033e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2e033e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e033e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2e033e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2e033e([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 Ge(_0x170afc){return void 0x0!==_0x170afc['getRootsAttributes'];}async function N(_0x2e16f5,_0xb280c5,_0x515f70){const _0x50eadb=_0x4fa1ac(_0x2e16f5,w);_0x50eadb['plugins']['push'](p,D),_0x50eadb['rootsAttributes']=Ge(_0x2e16f5)?_0x2e16f5['getRootsAttributes']():void 0x0;const _0x2cc4aa=document['createDocumentFragment'](),_0x3d08c6=_0x2e16f5['config']['get']('trackChangesData')['editorCreator'],_0x481a88=await _0x3d08c6(_0x50eadb,()=>function(_0x28a0fa){const _0x532d6c=document['createElement']('div');return _0x28a0fa['appendChild'](_0x532d6c),_0x532d6c;}(_0x2cc4aa));!function(_0x295c52,_0x207afb){const _0xafe906=_0x295c52['model']['document']['getRootNames']()['reduce']((_0x44952f,_0x4cf552)=>(_0x44952f[_0x4cf552]=_0x295c52['data']['get']({'rootName':_0x4cf552}),_0x44952f),{}),_0x2f3b34=_0x295c52['plugins']['get']('Users')['users']['map'](_0x33f697=>({'id':_0x33f697['id'],'name':_0x33f697['name']})),_0x431be8=_0x295c52['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x179d07=_0x295c52['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x39c221=_0x207afb['plugins']['get']('Users'),_0x2889df=_0x207afb['plugins']['get']('TrackChangesEditing'),_0x79780b=_0x207afb['plugins']['get']('CommentsRepository');for(const _0x54f228 of _0x79780b['getCommentThreads']())_0x54f228['remove']();for(const _0x486ebd of _0x2f3b34)_0x39c221['getUser'](_0x486ebd['id'])||_0x39c221['addUser'](_0x486ebd);_0x39c221['me']||_0x39c221['useAnonymousUser']();for(const _0x58c880 of _0x179d07)_0x79780b['addCommentThread'](_0x58c880);for(const _0x460ee2 of _0x431be8)_0x2889df['addSuggestionData'](_0x460ee2);_0x207afb['data']['set'](_0xafe906);}(_0x2e16f5,_0x481a88),_0x481a88['execute'](_0xb280c5?'acceptAllSuggestions':'discardAllSuggestions');const _0x33a7c4=Ge(_0x481a88)?_0x481a88['getFullData'](_0x515f70):_0x481a88['data']['get'](_0x515f70);return await _0x481a88['destroy'](),_0x33a7c4;}class Me extends _0x3c3a65{['options'];constructor(_0x124bd3,_0x4c3fb8){super(_0x124bd3),this['options']=_0x4c3fb8,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'](_0x210e3f,_0x4ded64){if(!this['element'])return;const _0x1d44c5=[];for(const [_0x14817c,_0x2b6e09]of _0x210e3f){const _0x5eac7f=document['createElement']('div');_0x5eac7f['setAttribute']('data-ck-root-name',_0x14817c),_0x5eac7f['className']=_0x2b6e09['classes']+'\x20ck-track-changes-preview__root-container',_0x5eac7f['innerHTML']=_0x2b6e09['content'],_0x1d44c5['push'](_0x5eac7f);}_0x4ded64(this['element'],_0x1d44c5),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0xaae2ec{constructor(_0x17cc64){super(_0x17cc64),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1ffa09=this['editor'],_0x5aedee=_0x1ffa09['locale'],_0x2d2894=_0x1ffa09['plugins']['get']('Dialog');let _0x1aeb4e;const _0x324972=function(_0x3e2164){const _0x37a90d={};if('editables'in _0x3e2164['ui']['view']){for(const [_0xffeccf,_0x1573cd]of Object['entries'](_0x3e2164['ui']['view']['editables']))_0x37a90d[_0xffeccf]=_0x1573cd['element'];}else _0x37a90d[_0x3e2164['model']['document']['getRootNames']()[0x0]]=_0x3e2164['ui']['view']['editable']['element'];return _0x37a90d;}(_0x1ffa09),_0x42566d=function(_0x5c0810){let _0x887848=0x0;for(const _0x351a7b of Object['values'](_0x5c0810))_0x887848=Math['max'](_0x887848,_0x351a7b['getBoundingClientRect']()['width']);let _0x32a94f=0x0;for(const _0x107c99 of Object['values'](_0x5c0810))_0x32a94f+=_0x107c99['getBoundingClientRect']()['height'];const _0x5dc676=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2f6794=Math['min'](_0x32a94f,_0x5dc676);return{'width':_0x887848,'height':_0x2f6794};}(_0x324972);_0x2d2894['show']({'id':'finalContentPreview','title':c(_0x5aedee,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5aedee,{'dialogRects':_0x42566d}),'onHide':()=>{_0x1aeb4e['detachFromDom']();},'onShow':()=>{_0x1ffa09['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x467b5b=>{const _0x222b0d=this['_standarizeRootsData'](_0x467b5b,_0x1ffa09,_0x324972);_0x2d2894['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x222b0d,_0x1ffa09['config']['get']('trackChanges.preview.renderFunction'));}),_0x1aeb4e=new _0x428682(_0x5aedee,[_0x2d2894['view']]),_0x1aeb4e['attachToDom'](),_0x1aeb4e['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1ffa09['once']('destroy',()=>{_0x1aeb4e['detachFromDom']();});const _0x24ffeb=_0x2d2894['view']['headerView']['class'];_0x2d2894['view']['headerView']['class']=_0x24ffeb?_0x24ffeb+'\x20ck-reset_all':'ck-reset_all',_0x2d2894['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2d2894['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1c7df6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x434909=_0x1c7df6['previewMode'],_0x42d0a0={};if('$labels'===_0x434909){for(const _0x83e195 of _0x1c7df6['getMergeFieldsIds']())_0x42d0a0[_0x83e195]=_0x1c7df6['getLabel'](_0x83e195)||_0x83e195;}else{const _0x20cb8f='$defaultValues'===_0x434909?_0x1c7df6['getDefaultValues']():_0x1c7df6['getDataSetValues'](_0x434909,!0x0);for(const _0x65d555 of Object['entries'](_0x20cb8f)){const [_0x4cbacc,_0x349674]=_0x65d555;_0x42d0a0[_0x4cbacc]=null!==_0x349674?_0x349674:_0x1c7df6['getLabel'](_0x4cbacc)||_0x4cbacc;}}return{'mergeFieldsData':_0x42d0a0};}['_standarizeRootsData'](_0x2f63ab,_0x13de9e,_0x5ef968){let _0xe038c9;if('string'==typeof _0x2f63ab){const _0x529e49=_0x13de9e['model']['document']['getRootNames']()[0x0];_0xe038c9={[_0x529e49]:_0x2f63ab};}else _0xe038c9=_0x2f63ab;const _0x1b3e78=this['_fixMediaEmbeds'](_0xe038c9,_0x13de9e),_0x13e115=function(_0xe70bd2,_0x4982ce){for(const [_0x31da9d,_0x39d02a]of _0xe70bd2)_0x39d02a['classes']=_0x4982ce[_0x31da9d]['classList']['value']['replace']('ck-focused','');return _0xe70bd2;}(this['_sortRoots'](_0x13de9e)['reduce']((_0x11baf1,_0x3609cb)=>(_0x11baf1['push']([_0x3609cb,{'content':_0x1b3e78[_0x3609cb],'classes':''}]),_0x11baf1),[]),_0x5ef968);return _0x13e115;}['_fixMediaEmbeds'](_0x19805e,_0x336036){if(!_0x336036['plugins']['has']('MediaEmbedEditing'))return _0x19805e;const _0x2168c4=_0x336036['plugins']['get']('MediaEmbedEditing');for(const [_0x48f5aa,_0x3066c8]of Object['entries'](_0x19805e)){const _0x3a4721=document['createElement']('div');_0x3a4721['innerHTML']=_0x3066c8,(_0x3a4721['querySelectorAll']('figure.media')['forEach'](_0x3f2129=>{const _0x4efc4d=_0x3f2129['querySelector']('oembed');if(_0x4efc4d){const _0x142ca6=_0x4efc4d['getAttribute']('url');if(_0x142ca6){const _0x43fb4f=_0x2168c4['registry']['getMediaViewElement'](new _0x1c82f2(_0x336036['editing']['view']['document']),_0x142ca6,{'elementName':'','renderForEditingView':!0x0}),_0x3184aa=document['createElement']('div');_0x3184aa['classList']['add']('ck-media__wrapper'),_0x43fb4f['render'](_0x3184aa,_0x336036['editing']['view']['domConverter']),_0x4efc4d['replaceWith'](_0x3184aa);}}}),_0x19805e[_0x48f5aa]=_0x3a4721['innerHTML']);}return _0x19805e;}['_sortRoots'](_0x3c2d99){if(!function(_0x438f07){return void 0x0!==_0x438f07['getRootsAttributes'];}(_0x3c2d99))return _0x3c2d99['model']['document']['getRootNames']();const _0x4bd8f0=[],_0x4b8cda=new Map();for(const _0x23339d of _0x3c2d99['model']['document']['getRootNames']()){const _0x24025f=_0x3c2d99['editing']['view']['getDomRoot'](_0x23339d)['getClientRects']()['item'](0x0);_0x4bd8f0['push'](_0x23339d),_0x4b8cda['set'](_0x23339d,_0x24025f);}return _0x4bd8f0['sort']((_0x298616,_0x3e0572)=>{const _0x34797a=_0x4b8cda['get'](_0x298616),_0x4d8858=_0x4b8cda['get'](_0x3e0572);return _0x34797a['y']-_0x4d8858['y']||_0x34797a['x']-_0x4d8858['x'];}),_0x4bd8f0;}}class te extends _0x121524{static get['requires'](){return[T,_0x179695];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf76daa){super(_0xf76daa),_0xf76daa['commands']['add']('previewFinalContent',new re(this['editor'])),_0xf76daa['config']['define']('trackChanges.preview.renderFunction',(_0x1d79c9,_0x477808)=>{for(const _0x491833 of _0x477808)_0x1d79c9['appendChild'](_0x491833);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x2a6841,Plugin as _0x145e1e,PendingActions as _0x5aa78c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x23f610,ObservableMixin as _0x48291f,uid as _0xdf79fb,priorities as _0x4266f3,insertToPriorityArray as _0x3dfa7f,toArray as _0x57c294,logWarning as _0x2174f1,getEnvKeystrokeText as _0x1a3183,FocusTracker as _0x3b0299,KeystrokeHandler as _0x2075d1,Collection as _0x303b8b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2825d1,IconCancel as _0x187575,IconTrackChanges as _0x52450a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x553222,View as _0x5ef96c,ViewCollection as _0x578fc8,FocusCycler as _0x559fa8,ViewModel as _0x2d86d1,createDropdown as _0x407968,SplitButtonView as _0x5019a0,addListToDropdown as _0x200f5c,MenuBarMenuView as _0x307a6f,MenuBarMenuListView as _0x46ea1e,ListSeparatorView as _0x48255e,MenuBarMenuListItemView as _0x5caa27,MenuBarMenuListItemButtonView as _0x4cb07a,BodyCollection as _0x10d846,Dialog as _0x2f67f8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x52a7a7,hashObject as _0x2e8bbb,surroundingMarkersDetector as _0x56b228,FOCUS_ANNOTATION_KEYSTROKE as _0xc83a4,AriaDescriptionView as _0xb6480,setupThreadKeyboardNavigation as _0x883de9,trimHtml as _0x1e5bab,UserView as _0x177539,LateFocusButtonView as _0x4b6595,getDateTimeFormatter as _0x54e688,getAllMarkersDomElementsSorted as _0x30a813,sanitizeEditorConfig as _0x2e1fd9}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2110b5,LiveRange as _0x1d9e5c,LivePosition as _0x4b854b,DowncastWriter as _0x2d16d3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3d3279,toWidget as _0x919928}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x33d9d0,set as _0x403a7b,isEqual as _0x32e373,unset as _0x4ce9b6,omit as Ft}from'es-toolkit/compat';import{Delete as _0x2e4424,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4aab6}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1b6ef3}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x2a6841{['_enabledCommands'];constructor(_0x3b2a31,_0x1461ab){super(_0x3b2a31),this['_enabledCommands']=_0x1461ab,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 _0x14d12f of this['editor']['commands']['commands']())_0x14d12f['affectsData']&&!this['_enabledCommands']['has'](_0x14d12f)&&_0x14d12f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x19b40b of this['editor']['commands']['commands']())_0x19b40b['affectsData']&&!this['_enabledCommands']['has'](_0x19b40b)&&_0x19b40b['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x2a6841{['_suggestions'];constructor(_0x204631,_0x5432a9){super(_0x204631),this['_suggestions']=_0x5432a9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x106b9d){const _0x44613a=this['_suggestions']['get'](_0x106b9d);if(!_0x44613a)throw new _0x23f610('track-changes-accept-suggestion-not-found',this);const _0x350f9d=_0x44613a['getRanges']();this['editor']['model']['canEditAt'](_0x350f9d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x44613a);}}class O extends _0x2a6841{['_suggestions'];constructor(_0xf19873,_0x314260){super(_0xf19873),this['_suggestions']=_0x314260,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5a7ddc){const _0x4e212c=this['_suggestions']['get'](_0x5a7ddc);if(!_0x4e212c)throw new _0x23f610('track-changes-discard-suggestion-not-found',this);const _0x2a6495=_0x4e212c['getRanges']();this['editor']['model']['canEditAt'](_0x2a6495)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4e212c);}}function ls(_0x279ebe,_0x43af78){let _0xdba5fc='';return _0xdba5fc+=_0x279ebe['split']('*')['map']((_0x2958e2,_0x14289a)=>_0x14289a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2958e2)+'</span>':nn(_0x2958e2))['join'](''),_0x43af78&&(_0xdba5fc+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x43af78['value']+'\x22\x20title=\x22'+_0x43af78['title']+'\x22></span>'),_0xdba5fc;}function nn(_0x3d8fb5){const _0x2723aa=document['createElement']('span');return _0x2723aa['innerText']=_0x3d8fb5,_0x2723aa['innerHTML'];}function ts(_0x5322af){return _0x5322af['sort']((_0x19abd4,_0x10b141)=>'deletion'==_0x19abd4['type']&&'deletion'!=_0x10b141['type']?-0x1:'deletion'!=_0x19abd4['type']&&'deletion'==_0x10b141['type']?0x1:0x0);}function to(_0x178087,_0x1f3b3c){let _0x1b7d0f,_0x17de5b=0x0;const _0x3b9a03=[],_0x1924b3=_0x1f3b3c['schema'];for(;_0x17de5b<_0x178087['length'];){const _0x3dac20=_0x178087[_0x17de5b],_0x837e59=_0x178087[_0x17de5b+0x1];_0x1b7d0f||(_0x1b7d0f=_0x1f3b3c['createPositionBefore'](_0x3dac20)),on(_0x1f3b3c,_0x3dac20,_0x837e59)||(_0x3b9a03['push'](_0x1f3b3c['createRange'](_0x1b7d0f,_0x1924b3['isObject'](_0x3dac20)?_0x1f3b3c['createPositionAfter'](_0x3dac20):_0x1f3b3c['createPositionAt'](_0x3dac20,'end'))),_0x1b7d0f=null),_0x17de5b++;}return _0x3b9a03;}function on(_0x509a5a,_0x2098d4,_0x5a5bf4){if(!_0x5a5bf4)return!0x1;const _0x3f2977=_0x509a5a['createPositionAfter'](_0x2098d4),_0x48491d=_0x509a5a['createPositionBefore'](_0x5a5bf4);return _0x3f2977['isTouching'](_0x48491d);}function rs(_0x56a047,_0x41ec96,_0x201094){for(;_0x201094['length'];){const _0x4ae312=_0x201094['splice'](0x0,0x64);_0x56a047['change'](()=>{for(const _0x1c6876 of _0x4ae312)_0x1c6876['isInContent']&&_0x41ec96['execute'](_0x1c6876['id']);});}}class R extends _0x2a6841{['_command'];['_suggestions'];constructor(_0x3b742d,_0x1bd00f,_0x5acf5a){super(_0x3b742d),this['_command']=_0x1bd00f,this['_suggestions']=_0x5acf5a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xf07714=Array['from'](this['_suggestions']['values']())['some'](_0x25a12b=>_0x25a12b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xf07714;}['execute'](){const _0x24be4a=ts(Array['from'](this['_suggestions']['values']()));for(const _0x36cb31 of _0x24be4a){const _0x3fac0b=_0x36cb31['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3fac0b))return;}rs(this['editor']['model'],this['_command'],_0x24be4a);}}class E extends _0x2a6841{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2e924a,_0x11e4c9,_0xcf592e){super(_0x2e924a),this['_command']=_0x11e4c9,this['_suggestions']=_0xcf592e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5bfc02=this['editor']['model']['document']['selection'],_0x6deffe=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x56a2a7,_0x2f7945){const _0x480beb=Array['from'](_0x56a2a7['getRanges']()),_0x5b8fc5=new Set();for(const _0x35ffb0 of _0x2f7945)if(_0x35ffb0['isInContent']){for(const _0x13ae54 of _0x480beb)for(const _0x3cd204 of _0x35ffb0['getRanges']())(_0x13ae54['isIntersecting'](_0x3cd204)||_0x56a2a7['isCollapsed']&&!_0x35ffb0['isMultiRange']&&_0x35ffb0['next']&&_0x3cd204['end']['isTouching'](_0x13ae54['start']))&&_0x5b8fc5['add'](_0x35ffb0);}return _0x5b8fc5;}(_0x5bfc02,_0x6deffe),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x181755=ts(Array['from'](this['_selectedSuggestions']));for(const _0x44d4ba of _0x181755){const _0x33f1ee=_0x44d4ba['getRanges']();if(!this['editor']['model']['canEditAt'](_0x33f1ee))return;}rs(this['editor']['model'],this['_command'],_0x181755);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x48291f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x199da8,_0x840993){super(),this['id']=_0x840993['id'],this['type']=_0x840993['type'],this['subType']=_0x840993['subType']||null,this['author']=_0x840993['author'],this['creator']=_0x840993['creator']||_0x840993['author'],this['isExternal']=Boolean(_0x840993['attributes']&&_0x840993['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x840993['originalSuggestionId']||null,this['_model']=_0x199da8,this['_onAccept']=_0x840993['onAccept'],this['_onDiscard']=_0x840993['onDiscard'],this['_onAttributesChange']=_0x840993['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x840993['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 _0x10e5e2=this;for(;_0x10e5e2['previous'];)_0x10e5e2=_0x10e5e2['previous'];return _0x10e5e2;}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'](_0xf73f2){this['_markerNames']['add'](_0xf73f2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xf1fce=>this['_model']['markers']['get'](_0xf1fce))['filter'](_0x5b03d2=>_0x5b03d2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4b4abd=>{for(const _0x3d56f5 of this['getMarkers']())_0x4b4abd['removeMarker'](_0x3d56f5);}),this['_markerNames']['clear']();}['removeMarker'](_0x3bab82){this['_model']['change'](_0x5f124d=>{_0x5f124d['removeMarker'](_0x3bab82);}),this['_markerNames']['delete'](_0x3bab82);}['addRange'](_0x2f364f){const _0x20dc5d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x20dc5d),this['_model']['change'](_0x24faf8=>{_0x24faf8['addMarker'](_0x20dc5d,{'range':_0x2f364f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1b1d47){for(const _0x1480b8 of this['getRanges']())if(_0x1480b8['isIntersecting'](_0x1b1d47))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1e1127=>_0x1e1127['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4fc627,_0x3090a5)=>[..._0x4fc627,..._0x3090a5['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x251172=this['getRanges']();if(0x1!=_0x251172['length'])return null;const _0x575673=_0x251172[0x0],_0x57d9d2=_0x575673['start']['nodeAfter'],_0x5d8af6=_0x575673['end']['nodeBefore'];return _0x57d9d2 instanceof _0x2110b5?_0x57d9d2!=_0x5d8af6?null:_0x57d9d2: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 _0x49bbb9=[];let _0x39220e=this['head'];for(;_0x39220e;)_0x49bbb9['push'](_0x39220e),_0x39220e=_0x39220e['next'];return _0x49bbb9;}['setAttribute'](_0x1266ec,_0x516b86){const _0x4cdae0=_0x33d9d0(this['attributes']);_0x403a7b(_0x4cdae0,_0x1266ec,_0x516b86),_0x32e373(_0x4cdae0,this['attributes'])||(this['attributes']=_0x4cdae0,this['_onAttributesChange'](_0x4cdae0));}['removeAttribute'](_0x583164){const _0x378007=_0x33d9d0(this['attributes']);_0x4ce9b6(_0x378007,_0x583164),_0x32e373(_0x378007,this['attributes'])||(this['attributes']=_0x378007,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 _0xdf79fb()['substr'](0x1,0x5);}}function c(_0x5216e6,_0x531b99,_0x47b56b){const _0x3697c2=_0x5216e6['t'],t=_0x5216e6['t'];switch(_0x531b99){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',_0x47b56b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x47b56b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x47b56b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x47b56b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x47b56b);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',_0x47b56b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x47b56b);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',_0x47b56b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x47b56b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x47b56b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x47b56b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x47b56b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x47b56b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x47b56b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x47b56b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x47b56b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x47b56b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x47b56b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x47b56b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x47b56b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x47b56b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x47b56b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x47b56b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x47b56b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x47b56b);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'},_0x47b56b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x47b56b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x47b56b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x47b56b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x47b56b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x47b56b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x47b56b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x47b56b);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'},_0x47b56b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x47b56b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x47b56b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x47b56b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x47b56b);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'},_0x47b56b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x47b56b);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'},_0x47b56b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x47b56b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x47b56b);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'},_0x47b56b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x47b56b);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'},_0x47b56b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x47b56b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x47b56b);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'},_0x47b56b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x47b56b);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 _0x3697c2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x47b56b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3697c2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x47b56b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x47b56b);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'},_0x47b56b);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'},_0x47b56b);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'},_0x47b56b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x531b99;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2dbdd6,_0x22a705){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2dbdd6,this['_locale']=_0x22a705;}['getDescriptions'](_0x23895e){const _0x2dc34c=[],_0x6af93b=new Set(),_0x44b9c=new Set();for(let _0x4a80d5=0x0;_0x4a80d5<_0x23895e['length'];_0x4a80d5++){const _0xcbb3b9=_0x23895e[_0x4a80d5];if(!_0xcbb3b9['isInContent'])continue;const _0x2d3993=this['_handleCustomCallbackDescription'](_0xcbb3b9);if(_0x2d3993){if(null!=_0xcbb3b9['subType']){if(_0x6af93b['has'](_0xcbb3b9['subType']))continue;_0x6af93b['add'](_0xcbb3b9['subType']);}_0x2dc34c['push'](_0x2d3993);}else{if('attribute'==_0xcbb3b9['type']){const _0x38c880=_0xcbb3b9['data']['key'];if(_0x44b9c['has'](_0x38c880))continue;_0x44b9c['add'](_0xcbb3b9['data']['key']),_0x38c880==u?this['_handleRenameSuggestionDescription'](_0x2dc34c,_0xcbb3b9):this['_handleAttributeSuggestionDescription'](_0x2dc34c,_0xcbb3b9);continue;}'insertion'!=_0xcbb3b9['type']&&'deletion'!=_0xcbb3b9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2dc34c,_0xcbb3b9,_0x23895e[_0x4a80d5+0x1]);}}return this['_resolveDescriptionItems'](_0x2dc34c);}['registerDescriptionCallback'](_0xbaff42){this['_customCallbacks']['push'](_0xbaff42);}['registerElementLabel'](_0x2e5de9,_0x3d6904,_0x4eb9ca=_0x4266f3['normal']){'function'==typeof _0x2e5de9?_0x3dfa7f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2e5de9,'label':_0x3d6904,'priority':_0x4eb9ca}):this['_itemLabels']['set'](_0x2e5de9,_0x3d6904);}['registerAttributeLabel'](_0x2f0abd,_0x7e089c){this['_attributeLabels']['set'](_0x2f0abd,_0x7e089c);}['getItemLabel'](_0x288be0,_0x664a72=0x1){let _0x233cac;for(const _0x261ad3 of this['_itemLabelsCallbacks'])if(_0x261ad3['matchingCallback'](_0x288be0)){_0x233cac=_0x261ad3['label'];break;}return _0x233cac||(_0x233cac=this['_itemLabels']['get'](_0x288be0['name'])),_0x233cac?_0x233cac(_0x664a72):0x1!==_0x664a72?_0x664a72+'\x20'+_0x288be0['name']+'s':''+_0x288be0['name'];}['_addDescriptionItems'](_0xfc9202,_0x5ba8d2){const _0x4f84e6=_0x5ba8d2['getFirstRange']()['getWalker'](),_0x311369='insertion'==_0x5ba8d2['type']?'add':'remove';for(const _0x35f5e3 of _0x4f84e6){const _0x4bf7f1=_0x35f5e3['item'],_0x3adadf=_0xfc9202[_0xfc9202['length']-0x1];if(_0x4bf7f1['is']('$textProxy'))_0x3adadf&&_0x3adadf['type']['indexOf']('Container')>-0x1&&_0xfc9202['pop'](),_0x3adadf&&'text'==_0x3adadf['type']?_0x3adadf[_0x311369]+=_0x4bf7f1['data']:_0xfc9202['push']({'type':'text','add':'add'==_0x311369?_0x4bf7f1['data']:'','remove':'remove'==_0x311369?_0x4bf7f1['data']:''});else{if(this['_schema']['isObject'](_0x4bf7f1)){const _0x57f179=_0x4bf7f1;if(_0x3adadf&&_0x3adadf['type']['indexOf']('Container')>-0x1&&_0xfc9202['pop'](),'elementEnd'==_0x35f5e3['type'])continue;_0x3adadf&&_0x3adadf['type']==_0x311369+'Object'&&_0x3adadf['element']['name']==_0x57f179['name']?_0x3adadf['quantity']++:_0xfc9202['push']({'type':_0x311369+'Object','element':_0x57f179,'quantity':0x1}),_0x4f84e6['skip'](_0x13d903=>!('elementEnd'==_0x13d903['type']&&_0x13d903['item']==_0x4bf7f1));}else{if(this['_schema']['checkChild'](_0x4bf7f1,'$text')||_0x4bf7f1['is']('element','softBreak')){const _0x336731=_0x4bf7f1;if('add'==_0x311369&&'elementStart'==_0x35f5e3['type']||'remove'==_0x311369&&'elementEnd'==_0x35f5e3['type'])continue;if(_0x3adadf&&-0x1==_0x3adadf['type']['indexOf']('Container')){'text'==_0x3adadf['type']&&(_0x3adadf[_0x311369]+='\x0a');continue;}let _0x41790e;if(_0x41790e='add'==_0x311369?_0x336731['nextSibling']&&!this['_schema']['isObject'](_0x336731['nextSibling'])?_0x336731['nextSibling']:null:_0x336731['previousSibling']&&!this['_schema']['isObject'](_0x336731['previousSibling'])?_0x336731['previousSibling']:null,_0x336731['isEmpty']||_0x41790e&&_0x41790e['isEmpty']){const _0x1c65cb=_0x41790e&&_0x41790e['isEmpty']?_0x41790e:_0x336731;_0x3adadf&&_0x3adadf['type']==_0x311369+'EmptyContainer'&&_0x3adadf['element']['name']==_0x1c65cb['name']?_0x3adadf['quantity']++:_0xfc9202['push']({'type':_0x311369+'EmptyContainer','element':_0x1c65cb,'quantity':0x1});}else _0xfc9202['push']({'type':_0x311369+'Container','element':_0x336731});}}}}}['_resolveDescriptionItems'](_0x5b9926){const _0x4d1212=this['_locale'],_0xa20285=[],_0x54de15=[],_0x36276b=[];for(const _0x1fe43b of _0x5b9926)switch(_0x1fe43b['type']){case'text':if(_0x1fe43b['add']=_0x1fe43b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1fe43b['remove']=_0x1fe43b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1fe43b['add']&&''!=_0x1fe43b['remove']){_0xa20285['push']({'type':'replace','content':c(_0x4d1212,'REPLACE_TEXT',['\x22'+_0x1fe43b['remove']+'\x22','\x22'+_0x1fe43b['add']+'\x22'])});continue;}if(null!=_0x1fe43b['add']['match'](/^ +$/)){_0xa20285['push']({'type':'insertion','content':c(_0x4d1212,'*Insert:*\x20%0',c(_0x4d1212,'ELEMENT_SPACE',_0x1fe43b['add']['length']))});continue;}if(null!=_0x1fe43b['remove']['match'](/^ +$/)){_0xa20285['push']({'type':'deletion','content':c(_0x4d1212,'*Remove:*\x20%0',c(_0x4d1212,'ELEMENT_SPACE',_0x1fe43b['remove']['length']))});continue;}if(''!=_0x1fe43b['add']){_0xa20285['push']({'type':'insertion','content':c(_0x4d1212,'*Insert:*\x20%0','\x22'+_0x1fe43b['add']+'\x22')});continue;}_0xa20285['push']({'type':'deletion','content':c(_0x4d1212,'*Remove:*\x20%0','\x22'+_0x1fe43b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xa20285['push']({'type':'insertion','content':c(_0x4d1212,'*Insert:*\x20%0',this['getItemLabel'](_0x1fe43b['element'],_0x1fe43b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xa20285['push']({'type':'deletion','content':c(_0x4d1212,'*Remove:*\x20%0',this['getItemLabel'](_0x1fe43b['element'],_0x1fe43b['quantity']))});continue;case'addContainer':_0xa20285['push']({'type':'insertion','content':c(_0x4d1212,'*Split:*\x20%0',this['getItemLabel'](_0x1fe43b['element'],_0x1fe43b['quantity']))});continue;case'removeContainer':_0xa20285['push']({'type':'deletion','content':c(_0x4d1212,'*Merge:*\x20%0',this['getItemLabel'](_0x1fe43b['element'],_0x1fe43b['quantity']))});continue;case'addFormat':_0x54de15['push'](_0x1fe43b['key']);continue;case'removeFormat':_0x36276b['push'](_0x1fe43b['key']);continue;default:_0xa20285['push'](_0x1fe43b);}if(_0x54de15['length']){const _0x34e6e8=_0x54de15['map'](_0x151429=>this['_attributeLabels']['has'](_0x151429)?this['_attributeLabels']['get'](_0x151429):_0x151429)['join'](',\x20');_0xa20285['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x34e6e8)});}if(_0x36276b['length']){const _0x42ae35=_0x36276b['map'](_0x3aecab=>this['_attributeLabels']['has'](_0x3aecab)?this['_attributeLabels']['get'](_0x3aecab):_0x3aecab)['join'](',\x20');_0xa20285['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x42ae35)});}return _0xa20285;}['_handleCustomCallbackDescription'](_0x5086f6){for(const _0x5064d6 of this['_customCallbacks']){const _0x33635a=_0x5064d6(_0x5086f6);if(_0x33635a&&'type'in _0x33635a)return _0x33635a;}}['_handleAttributeSuggestionDescription'](_0x432501,_0x1ff82e){const _0x5dfb3b=_0x1ff82e['data'],_0x447071=void 0x0===_0x5dfb3b['newValue']?'removeFormat':'addFormat';_0x432501['push']({'type':_0x447071,'key':_0x5dfb3b['key']});}['_handleRenameSuggestionDescription'](_0x349987,_0x31de07){_0x349987['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x31de07['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5d3088,_0x171e15,_0x170b13){if(this['_addDescriptionItems'](_0x5d3088,_0x171e15),_0x170b13&&_0x170b13['getFirstRange']()&&!_0x171e15['getFirstRange']()['end']['isEqual'](_0x170b13['getFirstRange']()['start'])){const _0x2a37de=_0x5d3088[_0x5d3088['length']-0x1],_0x1226ef='insertion'==_0x171e15['type']?'add':'remove';_0x2a37de&&'text'==_0x2a37de['type']&&(_0x2a37de[_0x1226ef]+='\x0a');}}}class U extends _0x145e1e{['afterInit'](){const _0x28d680=this['editor'],_0x2d1f02=_0x28d680['plugins']['get']('TrackChangesEditing');_0x28d680['commands']['get']('showAIAssistant')&&_0x2d1f02['enableCommand']('showAIAssistant');}}class V extends _0x145e1e{['afterInit'](){const _0x9809cd=this['editor'],_0x39896a=_0x9809cd['locale'];if(!_0x9809cd['plugins']['has']('AlignmentEditing'))return;const _0x3da3a0=_0x9809cd['plugins']['get']('TrackChangesEditing');_0x3da3a0['enableDefaultAttributesIntegration']('alignment'),_0x3da3a0['registerBlockAttribute']('alignment'),_0x3da3a0['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x39896a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dbe63=this['editor'],_0x2bda93=_0x2dbe63['locale'];_0x2dbe63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c7135=>{if('formatBlock'!=_0x1c7135['type'])return;const {data:_0x21fa1f}=_0x1c7135;if(_0x21fa1f&&'alignment'==_0x21fa1f['commandName']){const _0x44d544=_0x21fa1f['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x2bda93,'*Format:*\x20%0',function(_0x3e6768){switch(_0x3e6768){case'left':return c(_0x2bda93,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x2bda93,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x2bda93,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x2bda93,'FORMAT_JUSTIFY_TEXT');}}(_0x44d544))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x145e1e{['afterInit'](){const _0x3091de=this['editor'],_0x2dd653=_0x3091de['plugins']['get']('TrackChangesEditing'),_0x109f10=_0x3091de['locale'];for(const _0x49c65c of ti){if(!_0x3091de['plugins']['has'](_0x49c65c))continue;const _0x3fc071=_0x49c65c['slice'](0x0,-0x7)['toLowerCase'](),_0x270f8f='FORMAT_'+_0x3fc071['toUpperCase']();_0x2dd653['enableDefaultAttributesIntegration'](_0x3fc071),_0x2dd653['registerInlineAttribute'](_0x3fc071),_0x2dd653['descriptionFactory']['registerAttributeLabel'](_0x3fc071,c(_0x109f10,_0x270f8f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x374f79=this['editor'],_0x20e9bc=_0x374f79['locale'],_0x1fc185=_0x374f79['plugins']['get']('TrackChangesEditing');function _0x5cb757(_0x445f1e,_0x256786){_0x1fc185['descriptionFactory']['registerDescriptionCallback'](_0x3df2af=>{if('formatInline'!=_0x3df2af['type'])return;const {data:_0x598a81}=_0x3df2af;return _0x598a81&&_0x598a81['commandName']===_0x445f1e?_0x598a81['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x20e9bc,'*Format:*\x20%0',_0x256786)}:{'type':'format','content':c(_0x20e9bc,'*Remove\x20format:*\x20%0',_0x256786)}:void 0x0;});}_0x5cb757('bold',c(_0x20e9bc,'FORMAT_BOLD')),_0x5cb757('italic',c(_0x20e9bc,'FORMAT_ITALIC')),_0x5cb757('underline',c(_0x20e9bc,'FORMAT_UNDERLINE')),_0x5cb757('code',c(_0x20e9bc,'FORMAT_CODE')),_0x5cb757('strikethrough',c(_0x20e9bc,'FORMAT_STRIKETHROUGH')),_0x5cb757('subscript',c(_0x20e9bc,'FORMAT_SUBSCRIPT')),_0x5cb757('superscript',c(_0x20e9bc,'FORMAT_SUPERSCRIPT'));}}class G extends _0x145e1e{['afterInit'](){const _0x4b72d1=this['editor'],_0x4f8299=_0x4b72d1['locale'];if(!_0x4b72d1['plugins']['has']('BlockQuoteEditing'))return;const _0x4bc3ea=_0x4b72d1['plugins']['get']('TrackChangesEditing'),_0x5d97e9=this['editor']['commands']['get']('blockQuote');_0x4bc3ea['enableCommand']('blockQuote',(_0x24fcf9,_0x4da956={})=>{const _0x206363=this['editor']['model']['document']['selection'],_0x1dca6a=_0x4da956&&void 0x0!==_0x4da956['forceValue']?_0x4da956['forceValue']:!_0x5d97e9['value'];let _0x2ad71c=[];if(_0x1dca6a){const _0x1323bb=Array['from'](_0x206363['getSelectedBlocks']())['filter'](_0x5e6768=>oo(_0x5e6768)||function(_0x4fb6ff,_0x54b782){const _0x435fd6=_0x54b782['checkChild'](_0x4fb6ff['parent'],'blockQuote'),_0x17ba66=_0x54b782['checkChild'](['$root','blockQuote'],_0x4fb6ff);return _0x435fd6&&_0x17ba66;}(_0x5e6768,this['editor']['model']['schema']));_0x2ad71c=to(_0x1323bb,_0x4b72d1['model']);}else{const _0x3ec4ff=Array['from'](_0x206363['getSelectedBlocks']())['filter'](_0x1e78bf=>oo(_0x1e78bf));_0x2ad71c=to(_0x3ec4ff,_0x4b72d1['model']);}_0x4b72d1['model']['change'](()=>{for(const _0x31ad3b of _0x2ad71c)_0x4bc3ea['markBlockFormat'](_0x31ad3b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1dca6a}]});});}),_0x4bc3ea['descriptionFactory']['registerDescriptionCallback'](_0x445f71=>{const {data:_0x52cbe0}=_0x445f71;if(_0x52cbe0&&'blockQuote'==_0x52cbe0['commandName']){const _0x1f8ee4=c(_0x4f8299,'ELEMENT_BLOCK_QUOTE');return _0x52cbe0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4f8299,'*Set\x20format:*\x20%0',_0x1f8ee4)}:{'type':'format','content':c(_0x4f8299,'*Remove\x20format:*\x20%0',_0x1f8ee4)};}});}}function oo(_0x26de39){return'blockQuote'==_0x26de39['parent']['name'];}class L extends _0x145e1e{['afterInit'](){const _0x11598e=this['editor'],_0x22aee0=_0x11598e['locale'],_0x30b08b=_0x11598e['plugins']['get']('TrackChangesEditing');_0x11598e['plugins']['has']('BookmarkEditing')&&(_0x30b08b['enableCommand']('insertBookmark'),_0x30b08b['enableDefaultAttributesIntegration']('updateBookmark'),_0x30b08b['registerBlockAttribute']('bookmarkId'),_0x30b08b['descriptionFactory']['registerDescriptionCallback'](_0x4e4e63=>{if('insertion'!=_0x4e4e63['type']&&'deletion'!=_0x4e4e63['type']&&'attribute'!=_0x4e4e63['type'])return;const _0xde3f36=_0x4e4e63['getContainedElement']();if(null==_0xde3f36)return;if(!_0xde3f36['is']('element','bookmark'))return;const _0x576202=_0xde3f36['getAttribute']('bookmarkId');if('insertion'==_0x4e4e63['type'])return{'type':'insertion','content':c(_0x22aee0,'*Insert:*\x20%0','\x22'+_0x576202+'\x22\x20'+c(_0x22aee0,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4e4e63['type'])return{'type':'deletion','content':c(_0x22aee0,'*Remove:*\x20%0','\x22'+_0x576202+'\x22\x20'+c(_0x22aee0,'ELEMENT_BOOKMARK'))};const {data:_0x317a44}=_0x4e4e63;if(!_0x317a44||'bookmarkId'!=_0x317a44['key'])return;return{'type':'format','content':c(_0x22aee0,'*Set\x20bookmark:*\x20%0','\x22'+_0x317a44['newValue']+'\x22')};}));}}class J extends _0x145e1e{['afterInit'](){const _0x40822b=this['editor'];_0x40822b['plugins']['has']('CaseChange')&&(_0x40822b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x40822b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x40822b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x145e1e{['afterInit'](){const _0x31638a=this['editor'];_0x31638a['commands']['get']('ckbox')&&_0x31638a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x145e1e{['afterInit'](){const _0x437b09=this['editor'];if(!_0x437b09['plugins']['has']('CodeBlock'))return;const _0x387ef8=_0x437b09['plugins']['get']('TrackChangesEditing'),_0x583abc=_0x437b09['locale'],_0x29ca0a=_0x437b09['config']['get']('codeBlock')['languages'],_0x212ff3=_0x437b09['commands']['get']('codeBlock');_0x387ef8['enableCommand']('indentCodeBlock'),_0x387ef8['enableCommand']('outdentCodeBlock'),_0x387ef8['enableCommand']('codeBlock',(_0x4f7e63,_0x19c9cb={})=>{const _0x5e994f=_0x437b09['model'],_0x36618d=_0x437b09['model']['document']['selection'],_0x56d1dc=_0x19c9cb&&void 0x0!==_0x19c9cb['forceValue']?_0x19c9cb['forceValue']:!_0x212ff3['value'];let _0x24aa25;_0x19c9cb['language']||(_0x19c9cb['language']=_0x29ca0a[0x0]['language']),_0x24aa25=_0x56d1dc?Array['from'](_0x36618d['getSelectedBlocks']())['filter'](_0x56fbfd=>eo(_0x56fbfd)||function(_0xe3f248,_0x38b034){if(_0xe3f248['is']('rootElement')||_0x38b034['isLimit'](_0xe3f248))return!0x1;return _0x38b034['checkChild'](_0xe3f248['parent'],'codeBlock');}(_0x56fbfd,_0x5e994f['schema'])):Array['from'](_0x36618d['getSelectedBlocks']())['filter'](_0x39120f=>eo(_0x39120f));const _0x4e555c=to(_0x24aa25,_0x5e994f);_0x5e994f['change'](()=>{for(const _0x26e90b of _0x4e555c)_0x387ef8['markBlockFormat'](_0x26e90b,{'commandName':'codeBlock','commandParams':[{..._0x19c9cb,'forceValue':_0x56d1dc}],'formatGroupId':'blockName'});});}),(_0x387ef8['descriptionFactory']['registerElementLabel']('codeBlock',_0x5f05a7=>c(_0x583abc,'ELEMENT_CODE_BLOCK',_0x5f05a7)),_0x387ef8['descriptionFactory']['registerDescriptionCallback'](_0x18cdef=>{if('formatBlock'!=_0x18cdef['type'])return;const _0x1daf03=_0x583abc['t'],{data:_0x304359}=_0x18cdef;if(!_0x304359||'codeBlock'!=_0x304359['commandName'])return;const _0xc7ca92=_0x304359['commandParams'][0x0]['language'],_0x5b61fa=_0x1daf03(_0x29ca0a['find'](_0x5a68b1=>_0x5a68b1['language']===_0xc7ca92)['label'])['toLowerCase']();return _0x304359['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x583abc,'*Set\x20format:*\x20%0',c(_0x583abc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5b61fa+')')}:{'type':'format','content':c(_0x583abc,'*Remove\x20format:*\x20%0',c(_0x583abc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x161d3a){return'codeBlock'==_0x161d3a['name'];}class q extends _0x145e1e{['afterInit'](){const _0x37068c=this['editor'];if(!_0x37068c['plugins']['has']('CommentsEditing'))return;_0x37068c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x82909c,_0x4181cb,_0xf9ea3f){const _0x75ae91=[];for(const _0xc85ece of _0x4181cb['getItems']())_0xc85ece['hasAttribute'](_0x82909c)&&_0x75ae91['push'](_0xf9ea3f['createRangeOn'](_0xc85ece));return _0x75ae91;}function Fe(_0x408224,_0x5469ea,{showActiveMarker:_0x1dab78=!0x0}={}){const _0x1bc7c8=_0x408224['plugins']['get']('TrackChangesEditing');return(_0x3bfbfc,_0x1a9d45,_0x666673)=>{if(!_0x666673['consumable']['test'](_0x1a9d45['markerRange'],_0x3bfbfc['name']))return;const _0x4f8201=_0x1a9d45['markerRange']['getWalker'](),_0x1c6f1c=_0x1a9d45['markerRange']['start'],_0x8506d5=_0x408224['model']['schema'];let _0x4d1076=null,_0x3b2b6f=null,_0x2996d7=!0x1,_0x1031ec=!0x1;for(const _0x346be6 of _0x4f8201){const _0x56bc53=_0x346be6['item'];_0x2996d7=_0x2996d7||_0x8506d5['isContent'](_0x56bc53);const _0x3d8395=_0x666673['mapper']['toViewElement'](_0x56bc53);if(_0x3d8395&&_0x3d8395['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x346be6['type']&&(_0x8506d5['isBlock'](_0x56bc53)&&!_0x8506d5['isLimit'](_0x56bc53)&&(_0x56bc53['nextSibling']||_0x1c6f1c['isAtEnd']?_0x4d1076&&_0x4d1076['parent']==_0x56bc53||(_0x4d1076=_0x56bc53,_0x17df64(_0x346be6['previousPosition']),_0x1031ec=!0x0):_0x3b2b6f=_0x3b2b6f||_0x346be6['previousPosition']));}function _0x17df64(_0x357b18){const {id:_0x192266,authorId:_0x4b708c}=_0x1bc7c8['_splitMarkerName'](_0x1a9d45['markerName']),_0x1e96c6=_0x666673['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5469ea,'data-suggestion':_0x192266,'data-author-id':_0x4b708c}),_0x34cd95=_0x666673['mapper']['toViewPosition'](_0x357b18);_0x1dab78&&_0x1bc7c8['activeMarkers']['includes'](_0x1a9d45['markerName'])&&_0x666673['writer']['addClass']('ck-suggestion-marker--active',_0x1e96c6),_0x666673['writer']['insert'](_0x34cd95,_0x1e96c6),_0x666673['mapper']['bindElementToMarker'](_0x1e96c6,_0x1a9d45['markerName']);}_0x2996d7||_0x1031ec||!_0x3b2b6f||_0x17df64(_0x3b2b6f);};}class z extends _0x145e1e{static get['requires'](){return[_0x2e4424];}['init'](){const _0x147a39=this['editor'],_0x2177d6=_0x147a39['plugins']['get']('TrackChangesEditing');_0x2177d6['enableCommand']('delete');const _0x36e9ee=_0x147a39['commands']['get']('deleteForward');_0x2177d6['enableCommand']('deleteForward',(_0x578eb2,_0x5de039={})=>{const _0x4d9f26=_0x147a39['model']['createSelection'](_0x147a39['model']['document']['selection']);_0x4d9f26['isCollapsed']&&_0x147a39['model']['modifySelection'](_0x4d9f26,{'direction':'forward','unit':_0x5de039['unit']});const _0x3e5da8=_0x4d9f26['getFirstRange'](),_0xc4d3f5=_0x1d9e5c['fromRange'](_0x3e5da8);let _0x4c8c18;_0x578eb2(_0x5de039),_0x4c8c18='$graveyard'==_0xc4d3f5['root']['rootName']?_0x147a39['model']['createRange'](_0x3e5da8['start']):_0x147a39['model']['createRange'](_0xc4d3f5['start'],_0xc4d3f5['end']),_0xc4d3f5['detach'](),_0x147a39['model']['enqueueChange'](_0x36e9ee['buffer']['batch'],_0x4eb534=>{_0x36e9ee['buffer']['lock'](),_0x4eb534['setSelection'](_0x4eb534['createRange'](_0x4c8c18['end'])),_0x36e9ee['buffer']['unlock']();});}),_0x147a39['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x147a39,'merge'),{'priority':'high'}),_0x147a39['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1492ca,_0x9c71c7,_0x252838)=>{_0x252838['options']['showSuggestionHighlights']&&Fe(_0x147a39,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1492ca,_0x9c71c7,_0x252838);},{'priority':'high'}),_0x147a39['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x295f66,_0x24f761,_0x69619e)=>{const _0x59d51d=_0x69619e['mapper']['markerNameToElements'](_0x24f761['markerName']);if(_0x59d51d){for(const _0x2d3ec3 of _0x59d51d)_0x2d3ec3['is']('uiElement')&&(_0x69619e['mapper']['unbindElementFromMarkerName'](_0x2d3ec3,_0x24f761['markerName']),_0x69619e['writer']['remove'](_0x2d3ec3));}},{'priority':'high'});}}class W extends _0x145e1e{['afterInit'](){const _0x4b3525=this['editor'];if(!_0x4b3525['plugins']['has']('ListEditing'))return;const _0x1f607b=_0x4b3525['locale'],_0x229b4c=_0x4b3525['plugins']['get']('TrackChangesEditing'),_0x27afbd=_0x4b3525['plugins']['has']('TodoListEditing'),_0xe3e3b1=!!_0x4b3525['config']['get']('list.multiBlock');function _0x39d2ee(_0x4a1205){return{'type':'format','content':''+c(_0x1f607b,'*Set\x20format:*\x20%0',_0x4a1205)};}function _0x2c596b(_0x4c4c17){return{'type':'format','content':''+c(_0x1f607b,'*Remove\x20format:*\x20%0',_0x4c4c17)};}_0x229b4c['enableDefaultAttributesIntegration']('numberedList'),_0x229b4c['enableDefaultAttributesIntegration']('bulletedList'),_0x229b4c['enableDefaultAttributesIntegration']('customNumberedList'),_0x229b4c['enableDefaultAttributesIntegration']('customBulletedList'),_0x229b4c['enableDefaultAttributesIntegration']('indentList'),_0x229b4c['enableDefaultAttributesIntegration']('outdentList'),_0x229b4c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x229b4c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x229b4c['registerBlockAttribute']('listItemId'),_0x229b4c['registerBlockAttribute']('listType'),_0x229b4c['registerBlockAttribute']('listIndent'),_0xe3e3b1&&(_0x229b4c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x229b4c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x27afbd&&(_0x229b4c['enableDefaultAttributesIntegration']('todoList'),_0x229b4c['enableDefaultAttributesIntegration']('checkTodoList'),_0x229b4c['registerBlockAttribute']('todoListChecked'),_0x229b4c['descriptionFactory']['registerDescriptionCallback'](_0x2854b0=>{const {data:_0x5be0ce}=_0x2854b0;if(_0x5be0ce&&'todoListChecked'==_0x5be0ce['key'])return{'type':'format','content':_0x5be0ce['newValue']?c(_0x1f607b,'*Check\x20item*'):c(_0x1f607b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2e6e7e=>{if(_0x2e6e7e['batch']['isUndo'])return!0x1;let _0x11373e=!0x1;const _0x1a7585=_0x229b4c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6b17d2=>'todoListChecked'===_0x229b4c['_getAttributeKey'](_0x6b17d2));for(const _0x3d09be of _0x1a7585){'todo'!=_0x3d09be['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x229b4c['_findSuggestions'](_0x3d09be['getFirstRange'](),'attribute')['find'](_0x520f7d=>'listType'===_0x229b4c['_getAttributeKey'](_0x520f7d['suggestion']))||(_0x2e6e7e['removeMarker'](_0x3d09be['getFirstMarker']()),_0x11373e=!0x0));}return _0x11373e;})),_0x229b4c['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x1f607b,'FORMAT_INDENT'));const _0x367d51={'type':'format','content':''};_0x229b4c['descriptionFactory']['registerDescriptionCallback'](_0x128f0b=>{const {data:_0x598f67}=_0x128f0b;if(!_0x598f67||'listType'!=_0x598f67['key'])return;let _0x451599=_0x128f0b['head'];for(;_0x451599;){if(_0x451599['data']&&(('listStyle'==_0x451599['data']['key']||'listMarkerStyle'==_0x451599['data']['key'])&&(_0x451599['data']['newValue']&&'default'!=_0x451599['data']['newValue']||'default'!=_0x451599['data']['oldValue']&&!_0x598f67['newValue'])||!_0xe3e3b1&&_0x451599['data']['key']==u))return _0x367d51;_0x451599=_0x451599['next'];}if(null==_0x598f67['newValue'])switch(_0x598f67['oldValue']){case'bulleted':return _0x2c596b(c(_0x1f607b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c596b(c(_0x1f607b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c596b(c(_0x1f607b,'ELEMENT_TODO_LIST'));}switch(_0x598f67['newValue']){case'bulleted':return _0x39d2ee(c(_0x1f607b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39d2ee(c(_0x1f607b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39d2ee(c(_0x1f607b,'ELEMENT_TODO_LIST'));}}),_0x229b4c['descriptionFactory']['registerDescriptionCallback'](_0x3f17b0=>{const {data:_0x39bab4}=_0x3f17b0;if(_0x39bab4&&'listIndent'==_0x39bab4['key'])return null==_0x39bab4['newValue']||null==_0x39bab4['oldValue']&&0x0==_0x39bab4['newValue']?_0x367d51:void 0x0;}),_0x229b4c['descriptionFactory']['registerDescriptionCallback'](_0x5af6cc=>{if('attribute'!=_0x5af6cc['type'])return;const {data:_0x7fe31e}=_0x5af6cc;if(!_0x7fe31e||'listItemId'!=_0x7fe31e['key'])return;const _0xae561b=Te(_0x5af6cc);return'newValue'==_0xae561b?{'type':'format','content':c(_0x1f607b,'*Merge:*\x20list\x20item')}:'oldValue'==_0xae561b?{'type':'format','content':c(_0x1f607b,'*Split:*\x20list\x20item')}:_0x367d51;}),_0x4b3525['model']['document']['registerPostFixer'](_0x535cc5=>this['listItemIdFixer'](_0x535cc5)),_0x4b3525['model']['document']['registerPostFixer'](_0x52be6a=>this['noTrackChangesFixer'](_0x52be6a)),_0x4b3525['model']['document']['on']('change:data',(_0x5038d0,_0x560bcc)=>{if(_0x560bcc['isUndo']||!_0x560bcc['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x407611){if(_0x407611['batch']['isUndo']||!_0x407611['batch']['isLocal'])return!0x1;let _0x22cdd0=!0x1;const _0x28e957=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2fc359=>_0x2fc359['data']&&'listItemId'==_0x2fc359['data']['key'])['filter'](_0x21cbbe=>_0x21cbbe['data']['newValue']&&_0x21cbbe['data']['oldValue']);for(const _0x4ebf88 of _0x28e957)Te(_0x4ebf88)||(_0x407611['removeMarker'](_0x4ebf88['getFirstMarker']()),_0x22cdd0=!0x0);return _0x22cdd0;}['noTrackChangesFixer'](_0xd57c85){if(_0xd57c85['batch']['isUndo']||!_0xd57c85['batch']['isLocal'])return!0x1;const _0x1c1b23=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1c1b23['trackChangesCommand']['value'])return!0x1;let _0x17871e=!0x1;const _0x4954d5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x109a96=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2d851d=>'attribute'==_0x2d851d['type'])['filter'](_0x576d2f=>_0x4954d5['includes'](_0x576d2f['attributeKey']));if(0x0==_0x109a96['length'])return _0x17871e;for(const _0x531738 of _0x109a96){const _0x48684d=_0x1c1b23['_findSuggestions'](_0x531738['range'],'attribute')['filter'](_0x527192=>!_0x527192['meta']['isNextTo'])['map'](_0x2732fa=>_0x2732fa['suggestion'])['filter'](_0x561b16=>{const _0x920114=_0x1c1b23['_getAttributeKey'](_0x561b16);return _0x4954d5['includes'](_0x920114);});if(_0x48684d['length']){for(const _0x5c6a95 of _0x48684d)_0xd57c85['removeMarker'](_0x5c6a95['getFirstMarker']());_0x17871e=!0x0;}}return _0x17871e;}['assureChains'](){const _0x211b14=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37480b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4b4528;const _0x2e8ba8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x249484=>{if(_0x249484['data']['oldRange']||!_0x249484['data']['newRange'])return null;if(!_0x249484['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4be45e}=_0x211b14['_splitMarkerName'](_0x249484['name']);if(!_0x211b14['hasSuggestion'](_0x4be45e))return null;const _0x245bbb=_0x211b14['getSuggestion'](_0x4be45e);return _0x37480b['includes'](_0x245bbb['data']['key']);})['map'](_0x692216=>{const {id:_0x21df4b}=_0x211b14['_splitMarkerName'](_0x692216['name']),_0x1163ae=_0x211b14['getSuggestion'](_0x21df4b);return _0x4b4528=_0x1163ae['attributes']['groupId'],_0x1163ae['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2e8ba8['size'])return;const _0x3ee4d7=_0x211b14['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36ab44=>'attribute'==_0x36ab44['type']&&_0x36ab44['data']&&_0x37480b['includes'](_0x36ab44['data']['key'])&&_0x36ab44['attributes']['groupId']!=_0x4b4528)['map'](_0x401a5f=>({'listItem':_0x401a5f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x401a5f['attributes']['groupId']})),_0x28d118=new Set();for(const {groupId:_0x1a90ec,listItem:_0xa620a5}of _0x3ee4d7)_0x2e8ba8['has'](_0xa620a5)&&_0x28d118['add'](_0x1a90ec);for(const _0x17e262 of _0x211b14['getSuggestions']())_0x28d118['has'](_0x17e262['attributes']['groupId'])&&_0x17e262['setAttribute']('groupId',_0x4b4528);}['_supportLegacySuggestions'](){const _0x2c1410=this['editor'],_0x4e760e=_0x2c1410['locale'],_0xdcb4c5=_0x2c1410['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xdcb4c5['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x38e199,_0x4cd028){const _0x1af9ec=[];for(let _0x4b65d5 of _0x38e199)_0x4b65d5['start']['nodeAfter']===_0x4b65d5['end']['parent']&&(_0x4b65d5=_0x2c1410['model']['createRange'](_0x2c1410['model']['createPositionAt'](_0x4b65d5['start']['nodeAfter'],0x0))),_0x1af9ec['push'](_0x4b65d5);_0x2c1410['model']['change'](_0x2f9ebc=>{const _0x5e8861=_0x2c1410['model']['document']['selection'],_0x474887=Array['from'](_0x5e8861['getRanges']())['map'](_0x21f8a4=>_0x1d9e5c['fromRange'](_0x21f8a4));_0x2f9ebc['setSelection'](_0x1af9ec),_0x2c1410['commands']['get'](_0x4cd028['commandName'])['refresh'](),_0x4cd028['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2c1410['execute'](_0x4cd028['commandName'],..._0x4cd028['commandParams']),_0x2f9ebc['setSelection'](_0x474887);for(const _0xff04f0 of _0x474887)_0xff04f0['detach']();});}),_0xdcb4c5['descriptionFactory']['registerElementLabel'](function(_0x7ef237){const _0x21ba16=!_0x2c1410['model']['schema']['isObject'](_0x7ef237),_0x3da12=_0x7ef237['previousSibling'],_0xf4a504=_0x7ef237['nextSibling'],_0x4ca2c6=_0x7ef237['getAttribute']('listItemId'),_0x1ed9d2=!_0x3da12||_0x3da12['getAttribute']('listItemId')!==_0x4ca2c6,_0x5b4ec0=!_0xf4a504||_0xf4a504['getAttribute']('listItemId')!==_0x4ca2c6;return _0x21ba16&&Boolean(_0x4ca2c6)&&_0x1ed9d2&&_0x5b4ec0;},_0x5ef2c5=>c(_0x4e760e,'ELEMENT_LIST_ITEM',_0x5ef2c5));}['_registerLegacyDescription'](){const _0x1f1383=this['editor'],_0x59e81a=_0x1f1383['locale'];function _0x3f73ce(_0x4c73e6){const _0x20c770=_0x1f1383['commands']['get']('bulletedList')['value'],_0x664a0=_0x1f1383['commands']['get']('numberedList')['value'];return'numberedList'===_0x4c73e6?_0x20c770:_0x664a0;}_0x1f1383['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1e13b2){if('formatBlock'!=_0x1e13b2['type'])return;const {data:_0x4341dc}=_0x1e13b2;if(!_0x4341dc)return;let _0x508b06,_0x5eacb3,_0x34127c,_0x3f6422;switch(_0x4341dc['commandName']){case'bulletedList':_0x34127c=_0x4341dc['commandParams'][0x0]['forceValue'],_0x3f6422=_0x3f73ce(_0x4341dc['commandName']),_0x508b06=_0x34127c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f6422&&_0x1f1383['config']['get']('list.multiBlock')||(_0x508b06='*Change\x20to:*\x20%0'),_0x5eacb3={'type':'format','content':c(_0x59e81a,_0x508b06,c(_0x59e81a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x34127c=_0x4341dc['commandParams'][0x0]['forceValue'],_0x3f6422=_0x3f73ce(_0x4341dc['commandName']),_0x508b06=_0x34127c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f6422&&_0x1f1383['config']['get']('list.multiBlock')||(_0x508b06='*Change\x20to:*\x20%0'),_0x5eacb3={'type':'format','content':c(_0x59e81a,_0x508b06,c(_0x59e81a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x508b06='*Indent:*\x20%0',_0x5eacb3={'type':'format','content':c(_0x59e81a,_0x508b06,c(_0x59e81a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x508b06=function(_0x4995be){const _0x55b209=_0x4995be['getFirstRange']();let _0x587ab7=_0x55b209['start']['nodeAfter'];for(;_0x587ab7&&_0x55b209['containsItem'](_0x587ab7);){if(_0x587ab7['getAttribute']('listIndent')>0x0)return!0x1;_0x587ab7=_0x587ab7['nextSibling'];}return!0x0;}(_0x1e13b2)?c(_0x59e81a,'*Format:*\x20remove\x20from\x20%0',c(_0x59e81a,function(_0x4612c0){return'ELEMENT_'+_0x4612c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1e13b2))):c(_0x59e81a,'*Outdent:*\x20%0',c(_0x59e81a,'ELEMENT_LIST_ITEM')),_0x5eacb3={'type':'format','content':_0x508b06};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4341dc['multipleBlocks']&&(_0x508b06='*Merge:*\x20%0',_0x5eacb3={'type':'deletion','content':c(_0x59e81a,_0x508b06,c(_0x59e81a,'ELEMENT_LIST_ITEM'))});}return _0x5eacb3;});}}function Te(_0x127a7b){let _0x586804=_0x127a7b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x586804;){const _0x424304=_0x586804['getAttribute']('listItemId');if(!_0x424304)return!0x1;if(_0x424304==_0x127a7b['data']['newValue'])return'newValue';if(_0x424304==_0x127a7b['data']['oldValue'])return'oldValue';_0x586804=_0x586804['previousSibling'];}return!0x1;}class Se extends _0x145e1e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x388ff3=this['editor']['config']['get']('list.properties'),_0x4a8086=this['editor']['plugins']['get']('TrackChangesEditing');_0x388ff3['styles']&&(_0x4a8086['enableDefaultAttributesIntegration']('listStyle'),_0x4a8086['registerBlockAttribute']('listStyle')),_0x388ff3['reversed']&&(_0x4a8086['enableDefaultAttributesIntegration']('listReversed'),_0x4a8086['registerBlockAttribute']('listReversed')),_0x388ff3['startIndex']&&(_0x4a8086['enableDefaultAttributesIntegration']('listStart'),_0x4a8086['registerBlockAttribute']('listStart'));const _0x5f20c0={'type':'format','content':''};_0x4a8086['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x29678c=this['editor']['locale'];_0x4a8086['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x29678c,'FORMAT_LIST_REVERSED')),_0x4a8086['descriptionFactory']['registerDescriptionCallback'](_0x54d198=>{const {data:_0x41c1ba}=_0x54d198;if(_0x41c1ba&&'listReversed'==_0x41c1ba['key'])return null==_0x41c1ba['newValue']||0x0==_0x41c1ba['newValue']&&null==_0x41c1ba['oldValue']?_0x5f20c0:void 0x0;}),_0x4a8086['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x29678c,'FORMAT_LIST_START')),_0x4a8086['descriptionFactory']['registerDescriptionCallback'](_0x4ebc47=>{const {data:_0x531150}=_0x4ebc47;if(_0x531150&&'listStart'==_0x531150['key'])return null==_0x531150['newValue']||0x1==_0x531150['newValue']&&null==_0x531150['oldValue']?_0x5f20c0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x472502=>{if(_0x472502['batch']['isUndo'])return!0x1;let _0x5bb897=!0x1;const _0x559e71=_0x4a8086['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25aa89=>{const _0x1fbc4e=_0x4a8086['_getAttributeKey'](_0x25aa89);return'listStart'==_0x1fbc4e||'listReversed'==_0x1fbc4e;});for(const _0x2f9792 of _0x559e71){const _0x1c85f6=_0x2f9792['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1c85f6||'customNumbered'==_0x1c85f6)continue;_0x4a8086['_findSuggestions'](_0x2f9792['getFirstRange'](),'attribute')['find'](_0x1f8fb2=>'listType'==_0x4a8086['_getAttributeKey'](_0x1f8fb2['suggestion']))||(_0x472502['removeMarker'](_0x2f9792['getFirstMarker']()),_0x5bb897=!0x0);}return _0x5bb897;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x16373a){const _0x3341fd=this['editor']['locale'],{data:_0xdfd958}=_0x16373a,_0x4b7da8={'type':'format','content':''};if(!_0xdfd958||'listStyle'!=_0xdfd958['key'])return;if(!_0xdfd958['oldValue'])return'default'==_0xdfd958['newValue']?_0x4b7da8:{'type':'format','content':''+c(_0x3341fd,'*Set\x20format:*\x20%0',c(_0x3341fd,this['_getTranslationKeyForListStyle'](_0xdfd958['newValue'])))};if(!_0xdfd958['newValue']){if('default'==_0xdfd958['oldValue'])return _0x4b7da8;let _0x2e957c=_0x16373a['head'];for(;_0x2e957c;){if(_0x2e957c['data']&&'listType'==_0x2e957c['data']['key']&&_0x2e957c['data']['newValue'])return _0x4b7da8;_0x2e957c=_0x2e957c['next'];}return{'type':'format','content':''+c(_0x3341fd,'*Remove\x20format:*\x20%0',c(_0x3341fd,this['_getTranslationKeyForListStyle'](_0xdfd958['oldValue'])))};}if('default'!=_0xdfd958['newValue'])return{'type':'format','content':''+c(_0x3341fd,'*Set\x20format:*\x20%0',c(_0x3341fd,this['_getTranslationKeyForListStyle'](_0xdfd958['newValue'])))};let _0x243249=_0x16373a['head'];for(;_0x243249;){if(_0x243249['data']&&'listType'==_0x243249['data']['key']&&_0x243249['data']['newValue']&&_0x243249['data']['oldValue'])return _0x4b7da8;_0x243249=_0x243249['next'];}return{'type':'format','content':c(_0x3341fd,'*Set\x20format:*\x20%0',c(_0x3341fd,'ELEMENT_'+_0x16373a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x240512=this['editor'],_0x3deaa4=_0x240512['locale'];_0x240512['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c8407=>{if('formatBlock'!=_0x4c8407['type'])return;const {data:_0x4981df}=_0x4c8407;if(!_0x4981df)return;let _0x35607a,_0x5b7dd6;switch(_0x4981df['commandName']){case'listStyle':_0x35607a='*Change\x20to:*\x20%0',_0x5b7dd6={'type':'format','content':c(_0x3deaa4,_0x35607a,c(_0x3deaa4,this['_getTranslationKeyForListStyle'](_0x4981df['commandParams'][0x0]['type'])))};break;case'listReversed':_0x35607a=_0x4981df['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5b7dd6={'type':'format','content':c(_0x3deaa4,_0x35607a)};break;case'listStart':_0x35607a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5b7dd6={'type':'format','content':c(_0x3deaa4,_0x35607a,_0x4981df['commandParams'][0x0]['startIndex'])};}return _0x5b7dd6;});}['_getTranslationKeyForListStyle'](_0x2eadc4){return'ELEMENT_'+function(_0xe7cf80){if(_e['includes'](_0xe7cf80))return'bulleted';if(Re['includes'](_0xe7cf80))return'numbered';return null;}(_0x2eadc4)['toUpperCase']()+'_LIST_'+_0x2eadc4['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x145e1e{['afterInit'](){const _0x293f12=this['editor'];_0x293f12['commands']['get']('emoji')&&_0x293f12['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x145e1e{static get['requires'](){return[_0x4aab6];}['init'](){const _0x4de4df=this['editor'],_0x266d82=_0x4de4df['plugins']['get']('TrackChangesEditing'),_0x5b1209=_0x4de4df['commands']['get']('enter');_0x266d82['enableCommand']('enter',()=>{_0x4de4df['model']['change'](_0x4a63b3=>{const _0x352840=_0x4de4df['model']['document']['selection'],_0x346f1a=_0x352840['getFirstPosition'](),_0x1a7d80=_0x1d9e5c['fromRange'](_0x352840['getFirstRange']());if(_0x5b1209['enterBlock'](_0x4a63b3)){const _0xdccfae=_0x4de4df['model']['createPositionAt'](_0x346f1a['parent']['nextSibling'],0x0),_0x5414bf=_0x4a63b3['createRange'](_0x346f1a,_0xdccfae);_0x266d82['markInsertion'](_0x5414bf);}else _0x4a63b3['setSelection'](_0x4a63b3['createRange'](_0x1a7d80['end']));_0x1a7d80['detach'](),_0x5b1209['fire']('afterExecute',{'writer':_0x4a63b3});});}),_0x4de4df['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x4de4df,'split'),{'priority':'high'}),_0x4de4df['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5a05fe,_0x2fd94f,_0x29ba60)=>{const _0x4219d4=_0x29ba60['mapper']['markerNameToElements'](_0x2fd94f['markerName']);if(_0x4219d4){for(const _0x586cd4 of _0x4219d4)_0x586cd4['hasClass']('ck-suggestion-marker-split')&&(_0x29ba60['mapper']['unbindElementFromMarkerName'](_0x586cd4,_0x2fd94f['markerName']),_0x29ba60['writer']['remove'](_0x586cd4));}},{'priority':'high'}),_0x4de4df['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x27ce36,_0x4a9587,_0x467297)=>{_0x467297['options']['showSuggestionHighlights']&&Fe(_0x4de4df,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x27ce36,_0x4a9587,_0x467297);},{'priority':'high'});}}class Z extends _0x145e1e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5039f9=this['editor']['plugins']['get']('TrackChangesEditing');_0x5039f9['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5039f9['enableCommand']('findNext'),_0x5039f9['enableCommand']('findPrevious'),_0x5039f9['enableCommand']('replace'),_0x5039f9['enableCommand']('replaceAll');}['handleFindCommand'](_0x38e1e5,_0x36f55a,_0x57ca90={}){const _0x54ff4a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x38e1e5(_0x6b932a=>{let _0xa984eb=('string'==typeof _0x36f55a?_0x54ff4a['findByTextCallback'](_0x36f55a,_0x57ca90):_0x36f55a)(_0x6b932a);Array['isArray'](_0xa984eb)&&(_0xa984eb={'results':_0xa984eb,'searchText':'string'==typeof _0x36f55a?_0x36f55a:''});const _0x294b35=_0xa984eb['results']['filter'](_0x246c64=>!0x1===this['_isInDeletionRange'](_0x246c64,_0x6b932a['item']));return{..._0xa984eb,'results':_0x294b35};},_0x57ca90);}['_isInDeletionRange'](_0x2739d6,_0x530ac0){const _0x4a1bd6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x530ac0,_0x2739d6['start']),this['editor']['model']['createPositionAt'](_0x530ac0,_0x2739d6['end']));for(const _0x14458a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4a1bd6['getIntersection'](_0x14458a['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x145e1e{['afterInit'](){const _0x5516b2=this['editor']['locale'],_0x2a84e2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x312a51,commandName:_0x3964cf}of ro)this['editor']['plugins']['has'](_0x312a51)&&(_0x2a84e2['enableDefaultAttributesIntegration'](_0x3964cf),_0x2a84e2['registerInlineAttribute'](_0x3964cf));_0x2a84e2['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x5516b2,'FORMAT_FONT_SIZE')),_0x2a84e2['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x5516b2,'FORMAT_FONT_FAMILY')),_0x2a84e2['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x5516b2,'FORMAT_FONT_COLOR')),_0x2a84e2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x5516b2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e4f93=this['editor'],_0x246dff=_0x5e4f93['locale'];_0x5e4f93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46eaee=>{const _0x4c6213=_0x246dff['t'];if('formatInline'!=_0x46eaee['type'])return;const {data:_0x15312f}=_0x46eaee;if(null!=_0x15312f){if('fontSize'==_0x15312f['commandName']){const _0x544a66=_0x15312f['commandParams'][0x0]['value'];if(_0x544a66){const _0x1f9688=_0x4c6213(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x34a242=>_0x34a242['model']==_0x544a66)['title'])['toLowerCase']();return{'type':'format','content':c(_0x246dff,'*Set\x20font\x20size:*\x20%0',_0x1f9688)};}return{'type':'format','content':c(_0x246dff,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x15312f['commandName']){const _0x637b=_0x15312f['commandParams'][0x0]['value'];return _0x637b?{'type':'format','content':c(_0x246dff,'*Set\x20font\x20family:*\x20%0',_0x637b)}:{'type':'format','content':c(_0x246dff,'*Reset\x20font\x20family*')};}if('fontColor'==_0x15312f['commandName']){const _0x50f0c5=_0x15312f['commandParams'][0x0]['value'];if(_0x50f0c5){const _0x1b823e=_0x553222(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1b5e21=>_0x1b5e21['model']==_0x50f0c5);let _0x267b5b=_0x50f0c5,_0x29bb9c='';return _0x1b823e&&(_0x267b5b=_0x1b823e['label'],_0x29bb9c=_0x4c6213(_0x267b5b)['toLowerCase']()),{'type':'format','content':c(_0x246dff,'*Set\x20font\x20color:*\x20%0',_0x29bb9c)['trim'](),'color':{'value':_0x50f0c5,'title':_0x29bb9c||_0x267b5b}};}return{'type':'format','content':c(_0x246dff,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x15312f['commandName']){const _0x55212f=_0x15312f['commandParams'][0x0]['value'];if(_0x55212f){const _0x305751=_0x553222(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x6a45a2=>_0x6a45a2['model']==_0x55212f);let _0x35f9b8=_0x55212f,_0x462f6d='';return _0x305751&&(_0x35f9b8=_0x305751['label'],_0x462f6d=_0x4c6213(_0x35f9b8)['toLowerCase']()),{'type':'format','content':c(_0x246dff,'*Set\x20font\x20background\x20color:*\x20%0',_0x462f6d)['trim'](),'color':{'value':_0x55212f,'title':_0x462f6d||_0x35f9b8}};}return{'type':'format','content':c(_0x246dff,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x145e1e{['afterInit'](){const _0x286c64=this['editor'],_0x3e3217=_0x286c64['plugins']['get']('TrackChangesEditing'),_0x209643=_0x286c64['commands']['get']('copyFormat'),_0x4e0d4a=_0x286c64['commands']['get']('pasteFormat');_0x209643&&_0x4e0d4a&&(_0x3e3217['enableDefaultAttributesIntegration']('pasteFormat'),_0x3e3217['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4090e9=this['editor'],_0x37f0ec=_0x4090e9['locale'];_0x4090e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d5d92=>{if('formatBlock'!=_0x1d5d92['type']&&'formatInline'!=_0x1d5d92['type'])return;const {data:_0xe9b0fb}=_0x1d5d92;if(_0xe9b0fb&&'pasteFormat'===_0xe9b0fb['commandName']){const _0x407883=[],_0x598685=_0xe9b0fb['commandParams'][0x0];for(const [_0x244a31,_0x25b6cd]of Object['entries'](_0x598685))_0x407883['push'](so(_0x4090e9,_0x244a31,_0x25b6cd));return _0x407883['length']?{'type':'format','content':c(_0x37f0ec,'*Set\x20format\x20to:*\x20%0',_0x407883['join'](',\x20'))}:{'type':'format','content':c(_0x37f0ec,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1009f7,_0x457f8c,_0x6d14d6){const _0x1f9419=_0x1009f7['locale']['t'],_0x3247ab=_0x457f8c['split'](/(?=[A-Z])/)['join']('\x20'),_0x35c160=_0x1f9419(_0x3247ab['charAt'](0x0)['toUpperCase']()+_0x3247ab['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x6d14d6)return _0x35c160;if('fontColor'===_0x457f8c||'fontBackgroundColor'===_0x457f8c){const _0x5af2d9=_0x553222(_0x1009f7['config']['get']('fontColor.colors'))['find'](_0x2dd0ae=>_0x2dd0ae['model']==_0x6d14d6);return _0x35c160+'\x20('+(_0x5af2d9?_0x1f9419(_0x5af2d9['label'])['toLowerCase']():_0x6d14d6)+')';}if('fontSize'===_0x457f8c&&isNaN(parseFloat(_0x6d14d6))){const _0x5330c7=_0x1009f7['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1009f7['config']['get']('fontSize.options'))['find'](_0xfc7c39=>_0xfc7c39['model']==_0x6d14d6);return _0x35c160+'\x20('+(_0x5330c7?_0x1f9419(_0x5330c7['title'])['toLowerCase']():_0x6d14d6)+')';}return _0x35c160+'\x20('+_0x6d14d6+')';}class et extends _0x145e1e{['_headingOptions'];['afterInit'](){const _0x1279c6=this['editor'];if(!_0x1279c6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1279c6['config']['get']('heading.options');const _0x5a47b3=_0x1279c6['locale'],_0x1142b2=_0x1279c6['plugins']['get']('TrackChangesEditing');_0x1142b2['enableDefaultAttributesIntegration']('heading');for(const _0x11dbab of this['_headingOptions'])'paragraph'!=_0x11dbab['model']&&_0x1142b2['descriptionFactory']['registerElementLabel'](_0x11dbab['model'],_0x988b9b=>{const _0x237375=this['_getHeadingLevel'](_0x11dbab['model']);return null!==_0x237375?_0x235251(_0x988b9b,_0x237375):_0x38f59c(_0x988b9b,_0x11dbab['title']);});function _0x235251(_0x18c542,_0x581828){return c(_0x5a47b3,'ELEMENT_HEADING',[_0x18c542,_0x581828]);}function _0x38f59c(_0x3e4c1b,_0x480595){return c(_0x5a47b3,'ELEMENT_HEADING_CUSTOM',[_0x3e4c1b,_0x480595]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d2843=this['editor'],_0x4468fb=_0x3d2843['locale'];function _0x44f198(_0x13e082,_0x125f4a){return c(_0x4468fb,'ELEMENT_HEADING_CUSTOM',[_0x13e082,_0x125f4a]);}_0x3d2843['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x266b57=>{if('formatBlock'!=_0x266b57['type'])return;const {data:_0x5462df}=_0x266b57;if(_0x5462df&&'heading'==_0x5462df['commandName']){const _0x173cd0=_0x5462df['commandParams'][0x0]['value'],_0x120f7c=this['_getHeadingLevel'](_0x173cd0);if(null!==_0x120f7c)return{'type':'format','content':c(_0x4468fb,'*Change\x20to:*\x20%0',(_0x35fe60=0x1,_0x4c2586=_0x120f7c,c(_0x4468fb,'ELEMENT_HEADING',[_0x35fe60,_0x4c2586])))};const _0x22db67=this['_headingOptions']['find'](_0x3c7260=>_0x3c7260['model']===_0x173cd0)['title'];return{'type':'format','content':c(_0x4468fb,'*Change\x20to:*\x20%0',_0x44f198(0x1,_0x22db67))};}var _0x35fe60,_0x4c2586;});}['_getHeadingLevel'](_0x405306){const _0x4ff24d=_0x405306['match'](/^heading(\d+)/);if(_0x4ff24d)return _0x4ff24d[0x1];const _0x301d55=this['_headingOptions']?.['find'](_0x5a08e8=>_0x5a08e8['model']==_0x405306);if(_0x301d55&&_0x301d55['view']){const _0x5392b4=_0x301d55['view'],_0x40464c=(_0x5392b4['name']??_0x5392b4)['match'](/^h(\d+)/);if(_0x40464c)return _0x40464c[0x1];}return null;}}class nt extends _0x145e1e{['afterInit'](){const _0x27cdd3=this['editor'];if(!_0x27cdd3['plugins']['has']('HighlightEditing'))return;const _0x2cad41=_0x27cdd3['plugins']['get']('TrackChangesEditing'),_0x15be2c=_0x27cdd3['locale'];_0x2cad41['enableDefaultAttributesIntegration']('highlight'),_0x2cad41['registerInlineAttribute']('highlight'),_0x2cad41['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x15be2c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2d7f=this['editor'],_0x1b3805=_0x1f2d7f['locale'];_0x1f2d7f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18bcb3=>{if('formatInline'!=_0x18bcb3['type'])return;const {data:_0x51700f}=_0x18bcb3;if(_0x51700f&&'highlight'==_0x51700f['commandName']){const _0x539fd6=_0x1b3805['t'],_0xa49bbd=_0x51700f['commandParams'][0x0]['value'];if(_0xa49bbd){const _0x2cdd7c=_0x1f2d7f['config']['get']('highlight.options')['find'](_0x3fc898=>_0x3fc898['model']==_0xa49bbd),_0x4888f8=_0x539fd6(_0x2cdd7c['title'])['toLowerCase']();return{'type':'format','content':c(_0x1b3805,'*Set\x20highlight:*\x20%0',_0x4888f8),'color':{'value':_0x2cdd7c['color'],'title':_0x2cdd7c['title']}};}return{'type':'format','content':c(_0x1b3805,'*Remove\x20highlight*',c(_0x1b3805,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x145e1e{['afterInit'](){const _0x18274d=this['editor'];if(!_0x18274d['plugins']['has']('HorizontalLineEditing'))return;_0x18274d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5c3ba9=_0x18274d['plugins']['get']('TrackChangesEditing'),_0x67938d=_0x18274d['locale'];_0x5c3ba9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1df923=>c(_0x67938d,'ELEMENT_HORIZONTAL_LINE',_0x1df923)),_0x18274d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x48ba76,{writer:_0x4bafee,options:_0x5eaf07})=>{if(!_0x5eaf07['showSuggestionHighlights'])return null;const _0x5ef767=_0x4bafee['createContainerElement']('div'),_0x4577e8=_0x4bafee['createEmptyElement']('hr');return _0x4bafee['addClass']('ck-horizontal-line',_0x5ef767),_0x4bafee['insert'](_0x4bafee['createPositionAt'](_0x5ef767,0x0),_0x4577e8),_0x5ef767;},'converterPriority':'high'});}}class ot extends _0x145e1e{['afterInit'](){const _0x91bcc7=this['editor'];if(!_0x91bcc7['plugins']['has']('HtmlEmbed'))return;const _0x31a3a3=_0x91bcc7['plugins']['get']('TrackChangesEditing'),_0x18d355=_0x91bcc7['locale'];_0x31a3a3['descriptionFactory']['registerElementLabel']('rawHtml',_0x27b06b=>c(_0x18d355,'ELEMENT_HTML_EMBED',_0x27b06b)),_0x31a3a3['enableDefaultAttributesIntegration']('htmlEmbed'),_0x31a3a3['registerBlockAttribute']('value'),_0x31a3a3['descriptionFactory']['registerDescriptionCallback'](_0x120da5=>{if('attribute'!=_0x120da5['type'])return;const {data:_0x1e89b5}=_0x120da5;if(_0x1e89b5&&'value'==_0x1e89b5['key']&&_0x120da5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x33f3ae=c(_0x18d355,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x18d355,'*Change\x20%0\x20content*',_0x33f3ae)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x568c12=this['editor'],_0x4ae563=_0x568c12['locale'];_0x568c12['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x293e36=>{if('formatBlock'!=_0x293e36['type'])return;const {data:_0x297938}=_0x293e36;if(_0x297938&&'htmlEmbed'==_0x297938['commandName']){const _0x33f1e5=c(_0x4ae563,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x4ae563,'*Change\x20%0\x20content*',_0x33f1e5)};}});}}class rt extends _0x145e1e{['afterInit'](){const _0x1423a8=this['editor'];if(!_0x1423a8['plugins']['has']('ImageEditing'))return;const _0x40b5e0=_0x1423a8['plugins']['get']('TrackChangesEditing'),_0x4eb4f6=_0x1423a8['plugins']['get']('ImageUtils'),_0x1e9b64=_0x1423a8['locale'];_0x40b5e0['enableCommand']('insertImage'),_0x40b5e0['descriptionFactory']['registerElementLabel']('imageBlock',_0x3b172b=>c(_0x1e9b64,'ELEMENT_IMAGE',_0x3b172b)),_0x40b5e0['descriptionFactory']['registerElementLabel']('imageInline',_0x29b1b8=>c(_0x1e9b64,'ELEMENT_INLINE_IMAGE',_0x29b1b8)),_0x40b5e0['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x1e9b64,'ELEMENT_CAPTION')),_0x1423a8['plugins']['has']('ImageUploadEditing')&&_0x40b5e0['enableCommand']('uploadImage'),_0x1423a8['plugins']['has']('ImageBlockEditing')&&_0x1423a8['plugins']['has']('ImageInlineEditing')&&(_0x40b5e0['enableCommand']('imageTypeInline',(_0x565940,_0xbb4b72)=>{const _0x1af178=_0x4eb4f6['getClosestSelectedImageElement'](_0x1423a8['model']['document']['selection']);_0x1423a8['model']['change'](()=>{_0x40b5e0['markBlockFormat'](_0x1af178,{'commandName':'imageTypeInline','commandParams':[_0xbb4b72]},[],'convertBlockImageToInline');});}),_0x40b5e0['enableCommand']('imageTypeBlock',(_0x562b9a,_0x2a4d3d)=>{_0x1423a8['model']['change'](_0x2a9211=>{let _0x15f52f=_0x4eb4f6['getClosestSelectedImageElement'](_0x1423a8['model']['document']['selection']),_0x446751=_0x2a9211['createRangeOn'](_0x15f52f);const _0x504c40=_0x4b854b['fromPosition'](_0x446751['start'],'toPrevious'),_0x1a31bb=_0x4b854b['fromPosition'](_0x446751['end'],'toNext');_0x40b5e0['forceDefaultExecution'](()=>_0x562b9a(_0x2a4d3d)),_0x15f52f=_0x4eb4f6['getClosestSelectedImageElement'](_0x1423a8['model']['document']['selection']),_0x446751=_0x2a9211['createRangeOn'](_0x15f52f);const _0x23de49=_0x2a9211['createRange'](_0x504c40,_0x1a31bb);_0x504c40['detach'](),_0x1a31bb['detach'](),_0x40b5e0['markBlockFormat'](_0x15f52f,{'commandName':'imageTypeInline','commandParams':[_0x2a4d3d]},[],'convertInlineImageToBlock'),_0x23de49['start']['isBefore'](_0x446751['start'])&&_0x40b5e0['markInsertion'](_0x2a9211['createRange'](_0x23de49['start'],_0x446751['start']),'convertInlineImageToBlock'),_0x446751['end']['isBefore'](_0x23de49['end'])&&_0x40b5e0['markInsertion'](_0x2a9211['createRange'](_0x446751['end'],_0x23de49['end']),'convertInlineImageToBlock');});}),_0x40b5e0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x40b5e0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x40b5e0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x40b5e0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x40b5e0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x40b5e0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x31af94])=>{const _0x1087e4=_0x40b5e0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x209768=_0x31af94['start'],_0x17cfdf=_0x31af94['end'];const _0x165044=_0x1423a8['model']['schema']['getNearestSelectionRange'](_0x209768,'backward'),_0x1454bf=_0x1423a8['model']['schema']['getNearestSelectionRange'](_0x17cfdf,'forward');_0x165044['isCollapsed']&&(_0x209768=_0x165044['start']),_0x1454bf['isCollapsed']&&(_0x17cfdf=_0x1454bf['end']),_0x1087e4([_0x1423a8['model']['createRange'](_0x209768,_0x17cfdf)]);}),_0x40b5e0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4175c4),_0x40b5e0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4175c4)),_0x1423a8['plugins']['has']('ImageCaptionEditing')&&(_0x40b5e0['enableCommand']('toggleImageCaption',(_0x333be8,_0xc294f8)=>{const _0x5afc31=_0x1423a8['plugins']['get']('ImageCaptionUtils');let _0x2e19a1=_0x4eb4f6['getClosestSelectedImageElement'](_0x1423a8['model']['document']['selection']),_0x1e2838=_0x5afc31['getCaptionFromImageModelElement'](_0x2e19a1);_0x1423a8['model']['change'](()=>{if(_0x1e2838)return void _0x40b5e0['markDeletion'](_0x1423a8['model']['createRangeOn'](_0x1e2838));const _0x8f973=_0x4eb4f6['isBlockImage'](_0x2e19a1);_0x333be8(_0xc294f8),_0x2e19a1=_0x4eb4f6['getClosestSelectedImageElement'](_0x1423a8['model']['document']['selection']),_0x1e2838=_0x5afc31['getCaptionFromImageModelElement'](_0x2e19a1),_0x40b5e0['markInsertion'](_0x1423a8['model']['createRangeOn'](_0x1e2838),_0x8f973?null:'imageCaption');});}),_0x40b5e0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4175c4));const _0x36ebe1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5d7ab7(_0x1ff7b7,_0x307f29){const _0x274cda=_0x36ebe1['findIndex'](({type:_0x426165,subType:_0x50cf95})=>_0x1ff7b7['type']==_0x426165&&_0x1ff7b7['subType']==_0x50cf95),_0x517166=_0x36ebe1['findIndex'](({type:_0x524d8a,subType:_0xb043e4})=>_0x307f29['type']==_0x524d8a&&_0x307f29['subType']==_0xb043e4);if(_0x274cda<0x0||_0x517166<0x0)return!0x1;const _0x3b188b=_0x1ff7b7['getFirstRange'](),_0x109c96=_0x307f29['getFirstRange']();if((0x0==_0x274cda||0x1==_0x274cda)&&0x2==_0x517166&&_0x3b188b['isIntersecting'](_0x109c96))return!0x0;if(0x2==_0x274cda&&0x3==_0x517166){const _0x1361ca=_0x40b5e0['_findSuggestions'](_0x3b188b,'insertion')['filter'](({suggestion:_0x3d499f,meta:_0x430e2b})=>_0x430e2b['isOwn']&&'convertInlineImageToBlock'==_0x3d499f['subType']);if(_0x1361ca['length']>0x1&&_0x109c96['end']['isEqual'](_0x3b188b['start']))return!0x0;if(0x1==_0x1361ca['length']&&(_0x3b188b['start']['isEqual'](_0x109c96['end'])||_0x3b188b['end']['isEqual'](_0x109c96['start'])))return!0x0;}if(0x3==_0x274cda&&0x3==_0x517166&&_0x3b188b['start']['isBefore'](_0x109c96['start'])){const _0x31c804=_0x3b188b['end']['nodeAfter'],_0x16bd92=_0x109c96['start']['nodeBefore'];return _0x4eb4f6['isBlockImage'](_0x31c804)&&_0x31c804===_0x16bd92;}return!0x1;}function _0x4175c4(_0x29b80f,_0x42d5c6){return _0x5d7ab7(_0x29b80f,_0x42d5c6)?[_0x29b80f,_0x42d5c6]:_0x5d7ab7(_0x42d5c6,_0x29b80f)?[_0x42d5c6,_0x29b80f]:null;}_0x1423a8['plugins']['has']('ImageResize')&&(_0x40b5e0['enableDefaultAttributesIntegration']('resizeImage'),_0x40b5e0['registerBlockAttribute']('resizedWidth'),_0x40b5e0['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x1e9b64,'FORMAT_IMAGE_SIZE'))),_0x1423a8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x40b5e0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x40b5e0['registerBlockAttribute']('alt')),_0x1423a8['plugins']['has']('PictureEditing')&&(_0x40b5e0['registerBlockAttribute']('sources'),_0x40b5e0['descriptionFactory']['registerDescriptionCallback'](_0x43775d=>{if('attribute'!=_0x43775d['type'])return;const {data:_0x2958b6}=_0x43775d;return _0x2958b6&&'sources'==_0x2958b6['key']?{'type':'format','content':''}:void 0x0;})),_0x1423a8['plugins']['has']('ImageSizeAttributes')&&(_0x40b5e0['registerBlockAttribute']('width'),_0x40b5e0['registerBlockAttribute']('height'),_0x40b5e0['descriptionFactory']['registerDescriptionCallback'](_0x2a28a4=>{if('attribute'!=_0x2a28a4['type'])return;const {data:_0x595767}=_0x2a28a4;return!_0x595767||'width'!=_0x595767['key']&&'height'!=_0x595767['key']?void 0x0:{'type':'format','content':''};})),_0x40b5e0['descriptionFactory']['registerDescriptionCallback'](_0x57ec1d=>{if(!!_0x36ebe1['find'](({type:_0x36550f,subType:_0x5502a1})=>_0x57ec1d['type']==_0x36550f&&_0x57ec1d['subType']==_0x5502a1))return _0x57ec1d['previous']?{}:void 0x0;}),_0x40b5e0['descriptionFactory']['registerDescriptionCallback'](_0x357483=>{if('insertion'==_0x357483['type']||'deletion'==_0x357483['type']){const _0x4ec5cb=_0x357483['getContainedElement']();if(_0x4ec5cb&&_0x4ec5cb['is']('element','caption'))return{'type':'insertion'==_0x357483['type']?'addObject':'removeObject','element':_0x4ec5cb,'quantity':0x1};}}),_0x40b5e0['descriptionFactory']['registerDescriptionCallback'](_0x1dc5d1=>'formatBlock'==_0x1dc5d1['type']&&'convertInlineImageToBlock'==_0x1dc5d1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1dc5d1['type']&&'convertBlockImageToInline'==_0x1dc5d1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x40b5e0['descriptionFactory']['registerDescriptionCallback'](_0x352d23=>{if('attribute'!=_0x352d23['type'])return;const {data:_0x288359}=_0x352d23;if(!_0x288359||'alt'!=_0x288359['key'])return;const _0x5c927d=_0x288359['newValue'];return _0x5c927d?{'type':'format','content':c(_0x1e9b64,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5c927d+'\x22')}:{'type':'format','content':c(_0x1e9b64,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e0be6=this['editor'],_0x23c47c=_0x1e0be6['locale'];_0x1e0be6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33736a=>{if('formatBlock'!=_0x33736a['type']&&'formatInline'!=_0x33736a['type'])return;const {data:_0x4e2003}=_0x33736a;if(_0x4e2003){if('imageTextAlternative'==_0x4e2003['commandName']){const _0x32bd49=_0x4e2003['commandParams'][0x0]['newValue'];return _0x32bd49?{'type':'format','content':c(_0x23c47c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x32bd49+'\x22')}:{'type':'format','content':c(_0x23c47c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4e2003['commandName']){const _0x2ceccb=_0x4e2003['commandParams'][0x0]['width'];return _0x2ceccb?{'type':'format','content':c(_0x23c47c,'*Set\x20image\x20width:*\x20%0',_0x2ceccb)}:{'type':'format','content':c(_0x23c47c,'*Reset\x20image\x20width*')};}}});}}class at extends _0x145e1e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1ec077=this['editor']['locale'],_0x4443dc=this['editor']['plugins']['get']('TrackChangesEditing');_0x4443dc['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4443dc['registerBlockAttribute']('src'),_0x4443dc['descriptionFactory']['registerDescriptionCallback'](_0x5c138b=>{if('attribute'!=_0x5c138b['type'])return;const {data:_0x35f649}=_0x5c138b;return _0x35f649&&'src'==_0x35f649['key']?_0x35f649['newValue']&&_0x35f649['oldValue']?{'type':'format','content':c(_0x1ec077,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x425fb2=this['editor']['plugins']['get']('TrackChangesEditing');_0x425fb2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x425fb2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x425fb2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x425fb2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x177083=this['editor'],_0x2b7668=_0x177083['locale'];_0x177083['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42504b=>{if('formatBlock'!=_0x42504b['type']&&'formatInline'!=_0x42504b['type'])return;const {data:_0x2bb140}=_0x42504b;if(!_0x2bb140||'replaceImageSource'!=_0x2bb140['commandName'])return;return{'type':'format','content':c(_0x2b7668,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x145e1e{['afterInit'](){const _0x489bba=this['editor'];if(!_0x489bba['plugins']['has']('ImageStyleEditing'))return;const _0x453af5=_0x489bba['plugins']['get']('TrackChangesEditing'),_0x1e4105=_0x489bba['plugins']['get']('ImageUtils'),_0x2e6544={};_0x453af5['enableCommand']('imageStyle',(_0x499e48,_0x6e8809)=>{const _0x23581d=_0x489bba['plugins']['get']('Users')['me'],_0x45aef4=_0x489bba['commands']['get']('imageStyle');let _0x290112=_0x1e4105['getClosestSelectedImageElement'](_0x489bba['model']['document']['selection']),_0x491b45=_0x489bba['model']['createRangeOn'](_0x290112),_0x3e17c5=_0x45aef4['value'];if(_0x3e17c5==_0x6e8809['value'])return;const _0x5b6b09={'commandName':'imageStyle','commandParams':[_0x6e8809],'formatGroupId':_0xdf79fb()};_0x489bba['model']['change'](()=>{if(_0x453af5['getSuggestions']()['filter'](_0x22f901=>_0x22f901['isInContent']&&_0x23581d==_0x22f901['author']&&('formatBlock'==_0x22f901['type']||'formatInline'==_0x22f901['type'])&&('imageStylePreApply'==_0x22f901['subType']||'imageStylePostApply'==_0x22f901['subType'])&&_0x22f901['getFirstRange']()['isEqual'](_0x491b45))['forEach'](_0x2ef063=>_0x453af5['discardSuggestion'](_0x2ef063['head'])),_0x290112=_0x1e4105['getClosestSelectedImageElement'](_0x489bba['model']['document']['selection']),_0x491b45=_0x489bba['model']['createRangeOn'](_0x290112),_0x45aef4['refresh'](),_0x489bba['commands']['get']('imageTypeInline')['refresh'](),_0x489bba['commands']['get']('imageTypeBlock')['refresh'](),_0x3e17c5=_0x45aef4['value'],_0x3e17c5!=_0x6e8809['value'])return _0x1e4105['isInlineImage'](_0x290112)&&_0x45aef4['shouldConvertImageType'](_0x6e8809['value'],_0x290112)?(_0x499e48({..._0x6e8809,'setImageSizes':!0x1}),_0x290112=_0x1e4105['getClosestSelectedImageElement'](_0x489bba['model']['document']['selection']),void _0x453af5['markBlockFormat'](_0x290112,{..._0x5b6b09,'commandReversedParams':[{'value':_0x3e17c5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1e4105['isBlockImage'](_0x290112)?_0x453af5['markBlockFormat'](_0x290112,_0x5b6b09,[],'imageStylePostApply'):_0x453af5['markInlineFormat'](_0x491b45,_0x5b6b09,'imageStylePostApply'));});});for(const _0x191f70 of _0x489bba['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2e6544[_0x191f70['name']]=_0x191f70['title']['toLowerCase']();_0x453af5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x453af5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x453af5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x453af5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x189c31])=>{_0x1e4105['setImageNaturalSizeAttributes'](_0x189c31['getContainedElement']());}),_0x453af5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2f813c,_0x6bc9f4)=>{_0x453af5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2f813c,{'commandName':_0x6bc9f4['commandName'],'commandParams':_0x6bc9f4['commandReversedParams']});}),_0x453af5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x382e1f,_0x5f3526){if(_0x5b5ead(_0x382e1f,_0x5f3526))return[_0x382e1f,_0x5f3526];if(_0x5b5ead(_0x5f3526,_0x382e1f))return[_0x5f3526,_0x382e1f];return null;});const _0x1f879e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5b5ead(_0x38d279,_0x125727){const _0xa54f11=_0x1f879e['findIndex'](({type:_0x20ab71,subType:_0x33bf3b})=>_0x38d279['type']==_0x20ab71&&_0x38d279['subType']==_0x33bf3b),_0x2e567b=_0x1f879e['findIndex'](({type:_0x5ca954,subType:_0x353cf0})=>_0x125727['type']==_0x5ca954&&_0x125727['subType']==_0x353cf0);if(_0xa54f11<0x0||_0x2e567b<0x0)return!0x1;const _0xb8d412=_0x38d279['getFirstRange'](),_0xfd8350=_0x125727['getFirstRange']();if((0x0==_0xa54f11||0x1==_0xa54f11)&&0x2==_0x2e567b&&_0xb8d412['isIntersecting'](_0xfd8350))return!0x0;if(0x2==_0xa54f11&&0x3==_0x2e567b){const _0x514d99=_0x453af5['_findSuggestions'](_0xb8d412,'insertion')['filter'](({suggestion:_0x28bcd8,meta:_0x484cc1})=>_0x484cc1['isOwn']&&'convertInlineImageToBlock'==_0x28bcd8['subType']);if(_0x514d99['length']>0x1&&_0xfd8350['end']['isEqual'](_0xb8d412['start']))return!0x0;if(0x1==_0x514d99['length']&&(_0xb8d412['start']['isEqual'](_0xfd8350['end'])||_0xb8d412['end']['isEqual'](_0xfd8350['start'])))return!0x0;}if(0x3==_0xa54f11&&0x3==_0x2e567b&&_0xb8d412['start']['isBefore'](_0xfd8350['start'])){const _0x475bd6=_0xb8d412['end']['nodeAfter'],_0x2724a0=_0xfd8350['start']['nodeBefore'];return _0x1e4105['isBlockImage'](_0x475bd6)&&_0x475bd6===_0x2724a0;}return!0x1;}_0x489bba['model']['document']['registerPostFixer'](()=>{let _0x5afb49=!0x1;const _0x248b04=Array['from'](_0x489bba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc9ef4c,data:_0x126e3d}of _0x248b04){const {group:_0x190ad3,type:_0x2ca5e,subType:_0xcab32c,id:_0x3f3bf4}=_0x453af5['_splitMarkerName'](_0xc9ef4c);if('suggestion'==_0x190ad3&&_0x453af5['hasSuggestion'](_0x3f3bf4)){if('formatBlock'==_0x2ca5e&&('imageStylePreApply'==_0xcab32c||'imageStylePostApply'==_0xcab32c)){const _0x408eef=_0x453af5['getSuggestion'](_0x3f3bf4);if(_0x126e3d['newRange']){const _0x5db5ce=_0x408eef['getFirstRange']()['getContainedElement']();if(_0x1e4105['isBlockImage'](_0x5db5ce))continue;_0x453af5['discardSuggestion'](_0x408eef),_0x5afb49=!0x0;}}if('insertion'==_0x2ca5e&&'imageCaption'==_0xcab32c&&!_0x126e3d['newRange']){const _0x4d4e08=_0x453af5['getSuggestion'](_0x3f3bf4);_0x4d4e08['next']&&_0x4d4e08['next']['isInContent']&&(_0x453af5['discardSuggestion'](_0x4d4e08['next']),_0x5afb49=!0x0);}}}return _0x5afb49;}),this['_registerLegacyDescription'](_0x2e6544);}['_registerLegacyDescription'](_0x181273){const _0x765052=this['editor'],_0x4e8a52=_0x765052['locale'];_0x765052['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2df9f0=>{if('formatBlock'!=_0x2df9f0['type']&&'formatInline'!=_0x2df9f0['type'])return;const {data:_0x3eaa2f}=_0x2df9f0;if(!_0x3eaa2f||'imageStyle'!=_0x3eaa2f['commandName'])return;const _0x4fcd23=_0x3eaa2f['commandParams'][0x0]['value'];return _0x4979cd('side'===_0x4fcd23?c(_0x4e8a52,'FORMAT_SIDE_IMAGE'):_0x181273[_0x4fcd23]||_0x4fcd23);function _0x4979cd(_0x538db2){return{'type':'format','content':c(_0x4e8a52,'*Format:*\x20%0',_0x538db2)};}});}}class ut extends _0x145e1e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x581472){super(_0x581472),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3530a9=this['editor'],_0x3762ba=_0x3530a9['commands']['get']('importWord'),_0x2382bb=_0x3530a9['commands']['get']('trackChanges');_0x3762ba&&(_0x3762ba['on']('execute',(_0x42fad0,[,_0x110e03])=>{this['_trackChangesValueDuringImport']=_0x2382bb['value'],_0x110e03['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3762ba,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3762ba,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2382bb['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3530a9['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5ec059,_0x4b814d){const {suggestions:_0x17de5c}=_0x4b814d,_0x59dd52=this['editor']['commands']['get']('trackChanges'),_0x2b6f0f=_0x59dd52['value'];this['_trackChangesValueDuringImport']!==_0x2b6f0f&&(_0x59dd52['execute'](),this['_trackChangesExecuted']=!0x0),_0x17de5c&&_0x17de5c['forEach'](({id:_0x5d2779,type:_0x5c6107,author:_0x4c5684,created_at:_0x4b46c6})=>{const _0xdfc0cd={'id':_0x5d2779,'type':_0x5c6107,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4c5684,'createdAt':_0x4b46c6?new Date(_0x4b46c6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xdfc0cd);});}}class ft extends _0x145e1e{['afterInit'](){const _0x1c0f44=this['editor'],_0x1a3713=_0x1c0f44['plugins']['get']('TrackChangesEditing');if(_0x1c0f44['plugins']['has']('IndentEditing')&&(_0x1a3713['enableCommand']('indent'),_0x1a3713['enableCommand']('outdent')),_0x1c0f44['plugins']['has']('IndentBlock')){for(const _0x964ab3 of['indentBlock','outdentBlock'])_0x1a3713['enableDefaultAttributesIntegration'](_0x964ab3);}const _0x1ccf42=_0x1c0f44['locale'];_0x1a3713['registerBlockAttribute']('blockIndent'),_0x1a3713['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x1ccf42,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26b977=this['editor'],_0x3bedfb=_0x26b977['locale'],_0x40fd4a=_0x26b977['plugins']['get']('TrackChangesEditing');_0x40fd4a['descriptionFactory']['registerDescriptionCallback'](_0x1ff64b=>{if('formatBlock'!=_0x1ff64b['type'])return;const {data:_0x464829}=_0x1ff64b;if(!_0x464829)return;if('indentBlock'!=_0x464829['commandName']&&'outdentBlock'!=_0x464829['commandName'])return;const _0x5dbcfb=_0x1ff64b['getItems']()[0x0],_0x4826af=_0x40fd4a['descriptionFactory']['getItemLabel'](_0x5dbcfb);return'indentBlock'==_0x464829['commandName']?{'type':'format','content':c(_0x3bedfb,'*Indent:*\x20%0',_0x4826af)}:'outdentBlock'==_0x464829['commandName']?{'type':'format','content':c(_0x3bedfb,'*Outdent:*\x20%0',_0x4826af)}:void 0x0;});}}class ht extends _0x145e1e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x145e1e{['afterInit'](){const _0x15edf2=this['editor'];if(!_0x15edf2['plugins']['has']('LinkEditing'))return;const _0x165414=_0x15edf2['plugins']['get']('TrackChangesEditing'),_0x52fe58=_0x15edf2['commands']['get']('link');_0x165414['enableDefaultAttributesIntegration']('link'),_0x165414['enableDefaultAttributesIntegration']('unlink'),_0x165414['registerInlineAttribute']('linkHref');for(const _0x1c25b8 of _0x52fe58['manualDecorators'])_0x165414['registerInlineAttribute'](_0x1c25b8['id']),_0x165414['descriptionFactory']['registerAttributeLabel'](_0x1c25b8['id'],'link\x20('+_0x1c25b8['label']['toLowerCase']()+')');_0x165414['descriptionFactory']['registerDescriptionCallback'](_0x52219d=>{if('attribute'!=_0x52219d['type'])return;const {data:_0x1d3511}=_0x52219d;if(!_0x1d3511||'linkHref'!=_0x1d3511['key'])return;const _0x6aa6f1=_0x1d3511['newValue'],_0x5dde90=_0x15edf2['locale'];return{'type':'format','content':null==_0x6aa6f1?c(_0x5dde90,'*Remove\x20link*'):c(_0x5dde90,'*Set\x20link:*\x20%0','\x22'+_0x6aa6f1+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3793c2=this['editor'],_0x4d570a=_0x3793c2['locale'];_0x3793c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4478b4=>{if('formatInline'!=_0x4478b4['type'])return;const {data:_0xeec1e7}=_0x4478b4;if(_0xeec1e7){if('link'==_0xeec1e7['commandName']){const _0xfdfe59=_0xeec1e7['commandParams'][0x0];return{'type':'format','content':c(_0x4d570a,'*Set\x20link:*\x20%0','\x22'+_0xfdfe59+'\x22')};}return'unlink'==_0xeec1e7['commandName']?{'type':'format','content':c(_0x4d570a,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x145e1e{['afterInit'](){const _0xd8ffdb=this['editor'],_0xc5f245=_0xd8ffdb['locale'];if(!_0xd8ffdb['plugins']['has']('LegacyListEditing'))return;const _0x530514=_0xd8ffdb['plugins']['get']('TrackChangesEditing'),_0x2b9a2d=_0xd8ffdb['plugins']['has']('LegacyTodoListEditing');function _0x1a742a(_0x10e1f0){return()=>{const _0x1f7a75=_0xd8ffdb['model']['document']['selection'],_0x255840=_0xd8ffdb['commands']['get'](_0x10e1f0);if(_0x255840['value'])return void _0xd8ffdb['execute']('paragraph',{});const _0x180a61=_0x10e1f0['slice'](0x0,-0x4),_0x1b29e8=function(_0x1d54ab,_0x3e485f,_0x3f71dc){let _0x35b165=Array['from'](_0x1d54ab)['filter'](_0x4798b5=>function(_0x3b7e32,_0x4466c3){return _0x4466c3['checkChild'](_0x3b7e32['parent'],'listItem')&&!_0x4466c3['isObject'](_0x3b7e32);}(_0x4798b5,_0x3f71dc));_0x35b165=_0x35b165['filter'](_0x1138fa=>!_0x1138fa['is']('element','listItem')||_0x1138fa['getAttribute']('listType')!=_0x3e485f);const _0x11f946=new Set();for(const _0x2cf3b9 of _0x35b165)_0x2cf3b9['is']('element','listItem')?_0x11f946['add'](Le(_0x2cf3b9)):_0x11f946['add'](_0x2cf3b9);return Array['from'](_0x11f946);}(_0x1f7a75['getSelectedBlocks'](),_0x180a61,_0xd8ffdb['model']['schema']);_0xd8ffdb['model']['change'](()=>{for(const _0x831a4 of _0x1b29e8)_0x530514['markBlockFormat'](_0x831a4,{'commandName':_0x10e1f0,'commandParams':[{'forceValue':!_0x255840['value']}],'formatGroupId':'blockName'},Ee(_0x831a4));});};}function _0x1b6a13(_0x498689){return()=>{const _0x1a26a4=function(_0x50930f){let _0xfaee34=Array['from'](_0x50930f);const _0x34d280=_0xfaee34['findIndex'](_0x513b34=>'listItem'!=_0x513b34['name']);return _0x34d280>-0x1&&(_0xfaee34=_0xfaee34['slice'](0x0,_0x34d280)),_0xfaee34;}(_0xd8ffdb['model']['document']['selection']['getSelectedBlocks']()),_0x4b3854=_0xd8ffdb['model']['createRange'](_0xd8ffdb['model']['createPositionAt'](_0x1a26a4[0x0],'before'),_0xd8ffdb['model']['createPositionAt'](_0x1a26a4[_0x1a26a4['length']-0x1],'end'));_0xd8ffdb['model']['change'](()=>{_0x530514['markBlockFormat'](_0x4b3854,{'commandName':_0x498689,'commandParams':[],'formatGroupId':'listIndent'},function(_0x588487){const _0x4c1e97=new Set();for(const _0x2cf91c of _0x588487){let _0x5b2169=_0x2cf91c['nextSibling'];for(;_0x5b2169&&_0x5b2169['getAttribute']('listIndent')>_0x2cf91c['getAttribute']('listIndent');)_0x4c1e97['add'](_0x5b2169),_0x5b2169=_0x5b2169['nextSibling'];}return Array['from'](_0x4c1e97);}(_0x1a26a4));});};}_0x530514['enableCommand']('numberedList',_0x1a742a('numberedList')),_0x530514['enableCommand']('bulletedList',_0x1a742a('bulletedList')),_0x2b9a2d&&_0x530514['enableCommand']('todoList',_0x1a742a('todoList')),_0x530514['enableCommand']('indentList',_0x1b6a13('indentList')),_0x530514['enableCommand']('outdentList',_0x1b6a13('outdentList')),_0x2b9a2d&&_0x530514['enableCommand']('checkTodoList',()=>{const _0x26220d=_0xd8ffdb['commands']['get']('checkTodoList'),_0x4aceac=Array['from'](_0x26220d['_selectedElements']);_0x4aceac['filter'](_0x223337=>_0x223337['getAttribute']('todoListChecked')!=_0x26220d['value']),_0xd8ffdb['model']['change'](()=>{for(const _0x493175 of _0x4aceac)_0x530514['markBlockFormat'](_0x493175,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x26220d['value']}]});});}),_0x530514['descriptionFactory']['registerElementLabel']('listItem',_0x45be66=>c(_0xc5f245,'ELEMENT_LIST_ITEM',_0x45be66)),_0x530514['descriptionFactory']['registerDescriptionCallback'](_0x165af5=>{if('formatBlock'!=_0x165af5['type']&&'formatInline'!=_0x165af5['type'])return;const {data:_0x42ed60}=_0x165af5;if(_0x42ed60){if('numberedList'==_0x42ed60['commandName']||'bulletedList'==_0x42ed60['commandName']||'todoList'==_0x42ed60['commandName'])switch(_0x42ed60['commandName']['replace']('List','')){case'bulleted':return _0x44cf84(c(_0xc5f245,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x44cf84(c(_0xc5f245,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x44cf84(c(_0xc5f245,'ELEMENT_TODO_LIST'));}if('indentList'==_0x42ed60['commandName'])return{'type':'format','content':c(_0xc5f245,'*Indent:*\x20%0',c(_0xc5f245,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x42ed60['commandName'])return{'type':'format','content':c(_0xc5f245,'*Outdent:*\x20%0',c(_0xc5f245,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x42ed60['commandName'])return _0x42ed60['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xc5f245,'*Check\x20item*')}:{'type':'format','content':c(_0xc5f245,'*Uncheck\x20item*')};}function _0x44cf84(_0x16a8d4){return{'type':'format','content':c(_0xc5f245,'*Change\x20to:*\x20%0',_0x16a8d4)};}});}}function Le(_0x2e1b03){const _0x3d92e2=_0x2e1b03['getAttribute']('listIndent');if(0x0==_0x3d92e2)return _0x2e1b03;let _0x2237ff=_0x2e1b03;for(;_0x2e1b03['previousSibling']&&_0x2e1b03['previousSibling']['is']('element','listItem');){const _0x5affbb=_0x2e1b03['previousSibling']['getAttribute']('listIndent');if(_0x5affbb==_0x3d92e2)_0x2237ff=_0x2e1b03['previousSibling'];else{if(_0x5affbb<_0x3d92e2)break;}_0x2e1b03=_0x2e1b03['previousSibling'];}return _0x2237ff;}function Ee(_0x119a57){const _0x56bfbf=[];if(_0x119a57['is']('element','listItem')&&_0x119a57['getAttribute']('listIndent')>0x0){let _0x25fcf4=_0x119a57['nextSibling'];for(;_0x25fcf4&&'listItem'==_0x25fcf4['name']&&_0x25fcf4['getAttribute']('listIndent')==_0x119a57['getAttribute']('listIndent');)_0x56bfbf['push'](_0x25fcf4),_0x25fcf4=_0x25fcf4['nextSibling'];}return _0x56bfbf;}class Q extends _0x145e1e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x53307d=this['editor']['config']['get']('list.properties'),_0x455533=this['editor']['plugins']['get']('TrackChangesEditing');_0x53307d['styles']&&_0x455533['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x53307d['reversed']&&_0x455533['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x53307d['startIndex']&&_0x455533['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x455533['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4a1202,_0x759f77={}){const _0x1c48a4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e3fb8=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1c48a4['markMultiRangeBlockFormat'](_0x5e3fb8,{'commandName':'listStyle','commandParams':[{'type':_0x759f77['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4578f0,_0x3a5345={}){const _0x1c84d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x130dc6=this['_getSuggestionBlocks'](_0x164d56=>_0x164d56['is']('element','listItem')&&'numbered'===_0x164d56['getAttribute']('listType'));if(_0x130dc6['length']<0x1)return;const _0x319c99=_0x130dc6['map'](_0x1eb80e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1eb80e,'before'),this['editor']['model']['createPositionAt'](_0x1eb80e,0x0)));this['editor']['model']['change'](()=>{_0x1c84d3['markMultiRangeBlockFormat'](_0x319c99,{'commandName':'listReversed','commandParams':[{'reversed':_0x3a5345['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3ba871,_0x17ea12={}){const _0x4d4b9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f7b48=this['_getSuggestionBlocks'](_0x422464=>_0x422464['is']('element','listItem')&&'numbered'===_0x422464['getAttribute']('listType'));if(_0x2f7b48['length']<0x1)return;const _0x252b28=_0x2f7b48['map'](_0x2badbf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2badbf,'before'),this['editor']['model']['createPositionAt'](_0x2badbf,0x0)));this['editor']['model']['change'](()=>{_0x4d4b9a['markMultiRangeBlockFormat'](_0x252b28,{'commandName':'listStart','commandParams':[{'startIndex':_0x17ea12['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5d9713){if('formatBlock'!=_0x5d9713['type']&&'formatInline'!=_0x5d9713['type'])return;const _0x26f51f=this['editor']['locale'],{data:_0x267e8e}=_0x5d9713;if(!_0x267e8e)return;let _0x49b670,_0x29721a;switch(_0x267e8e['commandName']){case'listStyle':_0x49b670='*Change\x20to:*\x20%0',_0x29721a={'type':'format','content':c(_0x26f51f,_0x49b670,c(_0x26f51f,this['_getTranslationKeyForListStyle'](_0x267e8e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x49b670=_0x267e8e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x29721a={'type':'format','content':c(_0x26f51f,_0x49b670)};break;case'listStart':_0x49b670='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x29721a={'type':'format','content':c(_0x26f51f,_0x49b670,_0x267e8e['commandParams'][0x0]['startIndex'])};}return _0x29721a;}['_getSuggestionBlocksForListStyle'](){const _0x544d63=this['editor']['plugins']['get']('LegacyListUtils');let _0x3bcaa4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3bcaa4[0x0]?.['is']('element','listItem')&&_0x3bcaa4['unshift'](..._0x544d63['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3bcaa4[_0x3bcaa4['length']-0x1]?.['is']('element','listItem')&&_0x3bcaa4['push'](..._0x544d63['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3bcaa4=[...new Set(_0x3bcaa4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3bcaa4=_0x3bcaa4['filter'](_0xc2c07f=>_0xc2c07f['is']('element','listItem'))),_0x3bcaa4;}['_getSuggestionBlocks'](_0xfc1904){const _0x564dfb=this['editor']['plugins']['get']('LegacyListUtils');let _0x31a403=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xfc1904)['map'](_0x4a1482=>{const _0x444c42=this['editor']['model']['createPositionAt'](_0x4a1482,0x0);return[..._0x564dfb['getSiblingNodes'](_0x444c42,'backward'),..._0x564dfb['getSiblingNodes'](_0x444c42,'forward')];})['flat']();return _0x31a403=[...new Set(_0x31a403)],_0x31a403;}['_getTranslationKeyForListStyle'](_0x28865f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x28865f)||'default')['toUpperCase']()+'_LIST_'+_0x28865f['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x145e1e{['afterInit'](){const _0x2450e2=this['editor'];if(!_0x2450e2['plugins']['has']('MediaEmbedEditing'))return;const _0x5988ca=_0x2450e2['plugins']['get']('TrackChangesEditing'),_0x360003=_0x2450e2['locale'];_0x5988ca['enableCommand']('mediaEmbed'),_0x5988ca['descriptionFactory']['registerElementLabel']('media',_0x1a7471=>c(_0x360003,'ELEMENT_MEDIA',_0x1a7471)),_0x2450e2['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x27c290,{writer:_0x406aac,options:_0x3a2f37})=>{if(_0x3a2f37['showSuggestionHighlights'])return _0x406aac['createEmptyElement']('div');},'converterPriority':'high'}),_0x2450e2['data']['downcastDispatcher']['on']('attribute:url:media',(_0xed9765,_0x1c137c,_0x460c15)=>{_0x460c15['options']['showSuggestionHighlights']&&_0xed9765['stop']();},{'priority':'high'});}}class pt extends _0x145e1e{['afterInit'](){const _0xd47fa=this['editor'];_0xd47fa['plugins']['has']('MentionEditing')&&_0xd47fa['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x145e1e{['afterInit'](){const _0x5a2bfd=this['editor'];if(!_0x5a2bfd['plugins']['has']('MergeFieldsEditing'))return;const _0x380aba=_0x5a2bfd['plugins']['get']('TrackChangesEditing'),_0x204411=_0x5a2bfd['locale'];_0x380aba['enableCommand']('insertMergeField'),_0x380aba['enableCommand']('insertMergeFieldBlock'),_0x380aba['enableCommand']('insertMergeFieldImage'),_0x380aba['descriptionFactory']['registerElementLabel']('mergeField',_0xda00=>c(_0x204411,'ELEMENT_MERGE_FIELD',_0xda00)),_0x380aba['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1135fb=>c(_0x204411,'ELEMENT_MERGE_FIELD',_0x1135fb)),_0x380aba['descriptionFactory']['registerDescriptionCallback'](_0x1a5ce0=>{if('insertion'!=_0x1a5ce0['type']&&'deletion'!=_0x1a5ce0['type'])return;const _0x1e7c4a=_0x1a5ce0['getContainedElement']();if(null==_0x1e7c4a)return;const _0x657135=_0x5a2bfd['plugins']['get']('MergeFieldsEditing');let _0x5d46fe;switch(_0x657135['getMergeFieldType'](_0x1e7c4a)){case null:return;case'image':{const _0x88019f=_0x657135['unwrapAffixes'](_0x1e7c4a['getAttribute']('src'));_0x5d46fe=_0x657135['getLabel'](_0x88019f)||_0x88019f;break;}default:{const _0x10f817=_0x1e7c4a['getAttribute']('id');_0x5d46fe=_0x657135['getLabel'](_0x10f817)||_0x10f817;break;}}return'insertion'==_0x1a5ce0['type']?{'type':'insertion','content':c(_0x204411,'*Insert:*\x20%0','\x22'+_0x5d46fe+'\x22\x20'+c(_0x204411,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x204411,'*Remove:*\x20%0','\x22'+_0x5d46fe+'\x22\x20'+c(_0x204411,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x145e1e{['afterInit'](){const _0x1d639d=this['editor'],_0x1a669a=_0x1d639d['plugins']['get']('TrackChangesEditing');_0x1d639d['plugins']['has']('MultiLevelList')&&(_0x1a669a['enableDefaultAttributesIntegration']('multiLevelList'),_0x1a669a['registerBlockAttribute']('listMarkerStyle'),_0x1a669a['descriptionFactory']['registerDescriptionCallback'](_0x9f0f3a=>this['handleDescriptions'](_0x9f0f3a)));}['handleDescriptions'](_0x4dda9b){const _0x5c33d6=this['editor']['locale'],{data:_0x58b72d}=_0x4dda9b,_0x1809b1={'type':'format','content':''};if(_0x58b72d&&'listMarkerStyle'==_0x58b72d['key']){if(!_0x58b72d['oldValue'])return{'type':'format','content':c(_0x5c33d6,'*Set\x20format:*\x20%0',c(_0x5c33d6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x58b72d['newValue']+')'};if(!_0x58b72d['newValue']){let _0x383e90=_0x4dda9b['head'];for(;_0x383e90;){if(_0x383e90['data']&&'listType'==_0x383e90['data']['key']&&_0x383e90['data']['newValue'])return _0x1809b1;_0x383e90=_0x383e90['next'];}return{'type':'format','content':c(_0x5c33d6,'*Remove\x20format:*\x20%0',c(_0x5c33d6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x58b72d['oldValue']+')'};}}}}class bt extends _0x145e1e{['afterInit'](){const _0x17e116=this['editor'];if(!_0x17e116['plugins']['has']('PageBreakEditing'))return;_0x17e116['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5550da=_0x17e116['plugins']['get']('TrackChangesEditing'),_0x4defe6=_0x17e116['locale'];_0x5550da['descriptionFactory']['registerElementLabel']('pageBreak',_0x4ca819=>c(_0x4defe6,'ELEMENT_PAGE_BREAK',_0x4ca819));}}class yt extends _0x145e1e{['afterInit'](){const _0x22a291=this['editor'];if(!_0x22a291['plugins']['has']('Paragraph'))return;const _0x9c6eca=_0x22a291['locale'],_0x5d063c=_0x22a291['plugins']['get']('TrackChangesEditing');_0x5d063c['descriptionFactory']['registerElementLabel']('paragraph',_0x58d181=>c(_0x9c6eca,'ELEMENT_PARAGRAPH',_0x58d181)),_0x5d063c['enableDefaultAttributesIntegration']('paragraph'),_0x5d063c['enableCommand']('insertParagraph'),_0x22a291['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x22a291),{'priority':'highest'}),_0x22a291['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1975fb,_0xbc5aa0,_0x40c4dd)=>{_0x40c4dd['options']['showSuggestionHighlights']&&nr(_0x22a291,{'showActiveMarker':!0x1})(_0x1975fb,_0xbc5aa0,_0x40c4dd);},{'priority':'highest'});const _0x4d25ab=_0x5d063c['descriptionFactory'];_0x4d25ab['registerDescriptionCallback'](_0x3daaf9=>{if('insertion'!==_0x3daaf9['type'])return;const {start:_0x2839df,end:_0x317039}=_0x3daaf9['getFirstRange']();if(!_0x2839df['isTouching'](_0x317039)||!_0x2839df['nodeAfter'])return;const _0x419ad8=_0x22a291['model']['schema'],_0x4db4a8=_0x2839df['nodeAfter'];return _0x419ad8['isBlock'](_0x4db4a8)&&!_0x419ad8['isLimit'](_0x4db4a8)&&_0x419ad8['checkChild'](_0x4db4a8,'$text')?{'type':'insertion','content':c(_0x9c6eca,'*Insert:*\x20%0',_0x4d25ab['getItemLabel'](_0x4db4a8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc58d37=this['editor'],_0x193ee9=_0xc58d37['locale'];_0xc58d37['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x219595=>{if('formatBlock'!=_0x219595['type'])return;const {data:_0xaa8f54}=_0x219595;return _0xaa8f54&&'paragraph'==_0xaa8f54['commandName']?{'type':'format','content':c(_0x193ee9,'*Change\x20to:*\x20%0',c(_0x193ee9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x231885,{showActiveMarker:_0xc6155a=!0x0}={}){return(_0x2827af,_0x14d338,_0x3d931f)=>{const _0x39afa1=_0x231885['plugins']['get']('TrackChangesEditing'),_0x286bdd=_0x14d338['markerRange']['start'],_0x5292a0=_0x14d338['markerRange']['end'],_0x19c739=_0x231885['model']['schema'];if(!_0x286bdd['isTouching'](_0x5292a0)||!_0x286bdd['nodeAfter'])return;const _0x401d53=_0x286bdd['nodeAfter'];if(_0x19c739['isBlock'](_0x401d53)&&!_0x19c739['isLimit'](_0x401d53)&&_0x19c739['checkChild'](_0x401d53,'$text')){if(!_0x3d931f['consumable']['consume'](_0x14d338['markerRange'],_0x2827af['name']))return;const {id:_0x42d52c,authorId:_0x3fe2a0}=_0x39afa1['_splitMarkerName'](_0x14d338['markerName']),_0x186e79=_0x3d931f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x42d52c,'data-author-id':_0x3fe2a0}),_0x3ed03e=_0x3d931f['mapper']['toViewPosition'](_0x5292a0);_0xc6155a&&_0x39afa1['activeMarkers']['includes'](_0x14d338['markerName'])&&_0x3d931f['writer']['addClass']('ck-suggestion-marker--active',_0x186e79),_0x3d931f['writer']['insert'](_0x3ed03e,_0x186e79),_0x3d931f['mapper']['bindElementToMarker'](_0x186e79,_0x14d338['markerName']);}};}class St extends _0x145e1e{['afterInit'](){const _0x3755ac=this['editor'];_0x3755ac['commands']['get']('replaceSource')&&_0x3755ac['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x145e1e{['afterInit'](){const _0x5a88d3=this['editor'];if(!_0x5a88d3['plugins']['has']('RemoveFormatEditing'))return;_0x5a88d3['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x716439=this['editor'];_0x716439['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1568b6=>{if('formatBlock'!=_0x1568b6['type']&&'formatInline'!=_0x1568b6['type'])return;const {data:_0x2e1490}=_0x1568b6;return _0x2e1490&&'removeFormat'==_0x2e1490['commandName']?{'type':'format','content':c(_0x716439['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x145e1e{['afterInit'](){const _0x44e3eb=this['editor'];if(!_0x44e3eb['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x52ebab=_0x44e3eb['plugins']['get']('TrackChangesEditing');_0x52ebab['enableCommand']('goToPreviousRestrictedEditingException'),_0x52ebab['enableCommand']('goToNextRestrictedEditingException');const _0x216754=_0x44e3eb['plugins']['get']('RestrictedEditingModeEditing');_0x216754['enableCommand']('trackChanges'),_0x216754['enableCommand']('acceptSuggestion'),_0x216754['enableCommand']('discardSuggestion'),_0x216754['enableCommand']('acceptAllSuggestions'),_0x216754['enableCommand']('discardAllSuggestions'),_0x216754['enableCommand']('acceptSelectedSuggestions'),_0x216754['enableCommand']('discardSelectedSuggestions');}}class At extends _0x145e1e{['afterInit'](){const _0x47d41d=this['editor'];if(!_0x47d41d['plugins']['has']('ShiftEnter'))return;const _0x3a2330=_0x47d41d['plugins']['get']('TrackChangesEditing');_0x3a2330['enableCommand']('shiftEnter'),_0x47d41d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x47d41d),{'priority':'high'}),_0x47d41d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x47d41d),{'priority':'high'}),_0x47d41d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x177082,_0x1e99dd,_0xc5f00c)=>{_0xc5f00c['options']['showSuggestionHighlights']&&je(_0x47d41d,{'showActiveMarker':!0x1})(_0x177082,_0x1e99dd,_0xc5f00c);}),_0x3a2330['descriptionFactory']['registerElementLabel']('softBreak',_0x29e12e=>c(_0x47d41d['locale'],'ELEMENT_LINE_BREAK',_0x29e12e));}}function je(_0x1d985f,{showActiveMarker:_0x50a81f=!0x0}={}){return(_0x2d4052,_0x410e3e,_0x6a4485)=>{const _0x5ee625=_0x1d985f['plugins']['get']('TrackChangesEditing');if(!_0x6a4485['consumable']['test'](_0x410e3e['markerRange'],_0x2d4052['name']))return;const _0x55df9f=_0x1d985f['model'];for(const _0x59fb94 of _0x410e3e['markerRange']['getItems']()){if(!_0x59fb94['is']('element','softBreak'))continue;const _0x21f835='deletion'==_0x410e3e['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1df60d,authorId:_0x1da585}=_0x5ee625['_splitMarkerName'](_0x410e3e['markerName']),_0x5ac689=_0x6a4485['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x21f835,'data-suggestion':_0x1df60d,'data-author-id':_0x1da585}),_0x33566b=_0x6a4485['mapper']['toViewPosition'](_0x55df9f['createPositionBefore'](_0x59fb94));_0x50a81f&&_0x5ee625['activeMarkers']['includes'](_0x410e3e['markerName'])&&_0x6a4485['writer']['addClass']('ck-suggestion-marker--active',_0x5ac689),_0x6a4485['writer']['insert'](_0x33566b,_0x5ac689),_0x6a4485['mapper']['bindElementToMarker'](_0x5ac689,_0x410e3e['markerName']);}};}class _t extends _0x145e1e{['afterInit'](){const _0x333b98=this['editor'],_0x51b7e9=_0x333b98['model'],_0x9877d1=_0x333b98['locale'];if(!_0x333b98['plugins']['has']('StandardEditingModeEditing'))return;const _0x5c41a3=_0x333b98['plugins']['get']('TrackChangesEditing'),_0x466469='restrictedEditingException',_0x54ea44=_0x333b98['commands']['get'](_0x466469);_0x5c41a3['enableCommand'](_0x466469,(_0x4bf208,_0x342c08={})=>{const _0xac1fe9=_0x51b7e9['document']['selection'];if(_0xac1fe9['isCollapsed'])return void _0x4bf208(_0x342c08);const _0xe3db50=void 0x0!==_0x342c08['forceValue']?_0x342c08['forceValue']:!_0x54ea44['value'];_0x51b7e9['change'](()=>{const _0x4cadc2=Array['from'](_0xac1fe9['getRanges']());for(const _0x30fe17 of _0x4cadc2){const _0x3a4bda=_0xe3db50?[_0x30fe17]:io(_0x466469,_0x30fe17,_0x51b7e9);for(const _0x466ffa of _0x3a4bda)_0x5c41a3['markInlineFormat'](_0x466ffa,{'commandName':_0x466469,'commandParams':[{'forceValue':_0xe3db50}]});}});}),_0x5c41a3['descriptionFactory']['registerDescriptionCallback'](_0x58dac3=>{if('formatBlock'!=_0x58dac3['type']&&'formatInline'!=_0x58dac3['type'])return;const {data:_0x4085e1}=_0x58dac3;return _0x4085e1&&_0x4085e1['commandName']==_0x466469?_0x4085e1['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x9877d1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x9877d1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x145e1e{['afterInit'](){const _0x2aef02=this['editor'];if(!_0x2aef02['plugins']['has']('Style')||!_0x2aef02['plugins']['has']('DataSchema'))return;const _0x2490bd=_0x2aef02['plugins']['get']('TrackChangesEditing'),_0xd2db25=_0x2aef02['locale'],_0x2fd5f1=_0x2aef02['config']['get']('style')||{},_0x13957e=_0x2aef02['plugins']['get']('GeneralHtmlSupport'),_0x368412=_0x2aef02['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2aef02['plugins']['get']('DataSchema'),_0x2fd5f1['definitions']);_0x2490bd['enableDefaultAttributesIntegration']('style');const _0x564eac=new Set();for(const _0x301860 of _0x368412['block']){const _0x57d517=_0x13957e['getGhsAttributeNameForElement'](_0x301860['element']);_0x564eac['add'](_0x57d517);}const _0x25bb8b=new Set();for(const _0x3e0b90 of _0x368412['inline']){const _0x492dc0=_0x13957e['getGhsAttributeNameForElement'](_0x3e0b90['element']);_0x25bb8b['add'](_0x492dc0);for(const _0x4b1162 of _0x3e0b90['ghsAttributes'])_0x25bb8b['add'](_0x4b1162);}for(const _0x35f685 of _0x564eac)_0x2490bd['registerBlockAttribute'](_0x35f685),_0x2490bd['descriptionFactory']['registerAttributeLabel'](_0x35f685,c(_0xd2db25,'FORMAT_STYLE'));for(const _0x16d8a2 of _0x25bb8b)_0x2490bd['registerInlineAttribute'](_0x16d8a2),_0x2490bd['descriptionFactory']['registerAttributeLabel'](_0x16d8a2,c(_0xd2db25,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ed708=this['editor'],_0x40a8ff=_0x5ed708['locale'];_0x5ed708['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x159bf1=>{if('formatBlock'!=_0x159bf1['type']&&'formatInline'!=_0x159bf1['type'])return;const {data:_0x14636c}=_0x159bf1;return _0x14636c&&'style'===_0x14636c['commandName']?_0x14636c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x40a8ff,'*Set\x20format:*\x20%0',_0x14636c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x40a8ff,'*Remove\x20format:*\x20%0',_0x14636c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x145e1e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xfca0bb){super(_0xfca0bb),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1f0bdb=this['editor'],_0x3d8d88=_0x1f0bdb['model']['document']['selection'];if(!_0x1f0bdb['plugins']['has']('TableEditing'))return;const _0x19549c=_0x1f0bdb['locale'],_0x168dd4=_0x1f0bdb['plugins']['get']('TrackChangesEditing'),_0x416b29=_0x1f0bdb['plugins']['get']('TableUtils');_0x168dd4['descriptionFactory']['registerElementLabel']('table',_0x83369e=>c(_0x19549c,'ELEMENT_TABLE',_0x83369e)),this['_setupColumnsRowsFixing'](),_0x168dd4['enableCommand']('insertTable'),_0x168dd4['enableCommand']('selectTableRow'),_0x168dd4['enableCommand']('selectTableColumn');for(const _0x1d7414 of['insertTableRowAbove','insertTableRowBelow']){const _0x4ff171=_0x1f0bdb['commands']['get'](_0x1d7414);_0x168dd4['enableCommand'](_0x1d7414,_0x36a721=>{_0x1f0bdb['model']['change'](_0x3943d1=>{_0x36a721();const _0x52a040='above'===_0x4ff171['order'],_0x2274ac=_0x416b29['getSelectionAffectedTableCells'](_0x3d8d88),_0x56186b=_0x416b29['getRowIndexes'](_0x2274ac),_0x12e622=_0x52a040?_0x56186b['first']-0x1:_0x56186b['last']+0x1,_0x20eb1f=_0x2274ac[0x0]['findAncestor']('table'),_0x4f160d=_0x416b29['createTableWalker'](_0x20eb1f,{'startRow':_0x12e622,'endRow':_0x12e622}),_0x2454d1=Array['from'](_0x4f160d)['map'](_0x732156=>_0x3943d1['createRangeOn'](_0x732156['cell']));_0x168dd4['markMultiRangeInsertion'](_0x2454d1,'tableRow');});});}for(const _0x5341f2 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2a505a=_0x1f0bdb['commands']['get'](_0x5341f2);_0x168dd4['enableCommand'](_0x5341f2,_0x29dd5a=>{_0x1f0bdb['model']['change'](_0x27ded0=>{_0x29dd5a();const _0x4a6b2e='left'===_0x2a505a['order'],_0x3c911d=_0x416b29['getSelectionAffectedTableCells'](_0x3d8d88),_0x4bb74b=_0x416b29['getColumnIndexes'](_0x3c911d),_0x133040=_0x4a6b2e?_0x4bb74b['first']-0x1:_0x4bb74b['last']+0x1,_0x1d9384=_0x3c911d[0x0]['findAncestor']('table'),_0x570cbd=_0x416b29['createTableWalker'](_0x1d9384,{'startRow':0x0,'column':_0x133040,'includeAllSlots':!0x1}),_0x442f4e=Array['from'](_0x570cbd)['map'](_0xaadd0=>_0x27ded0['createRangeOn'](_0xaadd0['cell']));_0x168dd4['markMultiRangeInsertion'](_0x442f4e,'tableColumn');});});}for(const _0xa9b99 of['removeTableRow','removeTableColumn']){const _0x124359=_0xa9b99['substr'](0xb),_0x4d3306=_0x124359['toLowerCase'](),_0x2d4c51=_0x4d3306['substr'](0x0,0x3)+'span',_0x5220f8='table'+_0x124359,_0x2700e5='min'+_0x124359,_0x1c43da='max'+_0x124359;_0x168dd4['enableCommand'](_0xa9b99,()=>{_0x1f0bdb['model']['change'](_0x398a0a=>{const _0x3cca23=_0x416b29['getSelectionAffectedTableCells'](_0x3d8d88),_0x28f3ae=_0x3cca23[0x0]['findAncestor']('table');let _0x2fbb38;if('removeTableRow'==_0xa9b99){const _0x2bfb7d=_0x416b29['getRowIndexes'](_0x3cca23);_0x2fbb38={'startRow':_0x2bfb7d['first'],'endRow':_0x2bfb7d['last'],'includeAllSlots':!0x0};}else{const _0x3ca6e6=_0x416b29['getColumnIndexes'](_0x3cca23);_0x2fbb38={'startColumn':_0x3ca6e6['first'],'endColumn':_0x3ca6e6['last'],'includeAllSlots':!0x0};}const _0x2b1df7=_0x416b29['createTableWalker'](_0x28f3ae,_0x2fbb38),_0x49fb47=Array['from'](_0x2b1df7)['map'](({cell:_0x5a780c})=>_0x5a780c),_0x13d609=xe(_0x49fb47['filter'](_0x56ec3c=>_0x56ec3c['hasAttribute'](_0x2d4c51))),_0x5c6e30=xe(_0x49fb47['filter'](_0x3e87b0=>!_0x3e87b0['hasAttribute'](_0x2d4c51)))['map'](_0x41c924=>_0x398a0a['createRangeOn'](_0x41c924)),_0x387133=_0x168dd4['markMultiRangeDeletion'](_0x5c6e30,_0x5220f8);if(_0x387133&&('tableRow'==_0x387133['subType']||'tableColumn'==_0x387133['subType'])){const _0xa7835b=this['_getSuggestionCoords'](_0x387133);for(const _0x3c6c83 of _0x13d609){const _0x222714=_0x398a0a['createRangeOn'](_0x3c6c83),_0x1f5f6=_0x416b29['getCellLocation'](_0x3c6c83),_0x48b944=_0x3c6c83['getAttribute'](_0x2d4c51)-0x1,_0x3c07b1=_0xa7835b[_0x2700e5],_0x56a7f1=_0xa7835b[_0x1c43da];_0x3c07b1<=_0x1f5f6[_0x4d3306]&&_0x1f5f6[_0x4d3306]+_0x48b944<=_0x56a7f1&&_0x387133['addRange'](_0x222714);}}});});}function _0x29bf4a(_0x1f1d75){const _0x56b7a1=Array['from'](_0x3d8d88['getRanges']())['map'](_0x50c10c=>_0x1d9e5c['fromRange'](_0x50c10c));_0x1f0bdb['model']['change'](_0x34d4df=>{const _0x5d8f16=_0x34d4df['batch'];_0x1f1d75=_0x1f1d75['filter'](_0x408172=>'$graveyard'!=_0x408172['root']['rootName']),_0x34d4df['setSelection'](_0x1f1d75),_0x1f0bdb['commands']['get']('removeTableRow')['refresh'](),_0x1f0bdb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1f0bdb['model']['enqueueChange'](()=>{_0x1f0bdb['model']['enqueueChange'](_0x5d8f16,_0x3ded3c=>{const _0x46c7b1=_0x56b7a1['filter'](_0x2e08c9=>'$graveyard'!=_0x2e08c9['root']['rootName']);_0x46c7b1['length']>0x0&&_0x3ded3c['setSelection'](_0x46c7b1);for(const _0x51c200 of _0x56b7a1)_0x51c200['detach']();});});});}function _0xcc389a(_0x2c5041){_0x1f0bdb['model']['change'](_0x56de79=>{const _0x11fce5=Array['from'](_0x3d8d88['getRanges']())['map'](_0x3b1091=>_0x1d9e5c['fromRange'](_0x3b1091)),_0x55fc61=[];for(const _0x10d2b2 of _0x2c5041)for(const _0x5655d3 of _0x10d2b2['getItems']({'shallow':!0x0}))_0x55fc61['push'](_0x5655d3);for(const _0x2b8cb6 of _0x55fc61)'$graveyard'!=_0x2b8cb6['root']['rootName']&&(_0x56de79['setSelection'](_0x56de79['createPositionAt'](_0x2b8cb6,0x0)),_0x1f0bdb['commands']['get']('removeTableColumn')['refresh'](),_0x1f0bdb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x40d68d=_0x11fce5['filter'](_0x16657b=>'$graveyard'!=_0x16657b['root']['rootName']);_0x40d68d['length']>0x0&&_0x56de79['setSelection'](_0x40d68d);for(const _0x53e697 of _0x11fce5)_0x53e697['detach']();});}function _0x41060d(_0x1e6ba6,_0x466961){return _0x466961['every'](_0x74e075=>_0x1e6ba6['some'](_0x3ebc81=>_0x3ebc81['end']['isEqual'](_0x74e075['start'])||_0x74e075['end']['isEqual'](_0x3ebc81['start'])));}function _0xd61653(_0x42969a,_0x55da93){return!_0x42969a['some'](_0x55ea78=>_0x55da93['some'](_0x5dd90c=>_0x55ea78['isIntersecting'](_0x5dd90c)))&&_0x42969a['some'](_0x432e83=>_0x55da93['some'](_0x39279d=>_0x432e83['end']['isTouching'](_0x39279d['start'])));}_0x1f0bdb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x316995,_0x1476b5,_0x4f4ac3)=>{if(!_0x4f4ac3['options']['showSuggestionHighlights'])return;const _0x47cdd3=_0x1476b5['item'];if(!_0x47cdd3||!_0x47cdd3['is']('element','tableCell'))return;const _0x5ad053=_0x4f4ac3['mapper']['toViewElement'](_0x47cdd3);if(_0x5ad053){const {id:_0x20af87,authorId:_0x57fc51}=_0x168dd4['_splitMarkerName'](_0x1476b5['markerName']);_0x3d3279(_0x5ad053,_0x4f4ac3['writer'],(_0xa09616,_0x4f914d,_0x507308)=>{_0x507308['addClass'](_0x57c294(_0x4f914d['classes']),_0xa09616),_0x507308['setAttribute']('data-suggestion-id',_0x20af87,_0xa09616),_0x507308['setAttribute']('data-author-id',_0x57fc51,_0xa09616);},(_0x41e00c,_0x571805,_0x204c80)=>{_0x204c80['removeClass'](_0x57c294(_0x571805['classes']),_0x41e00c),_0x204c80['removeAttribute']('data-suggestion-id',_0x41e00c),_0x204c80['removeAttribute']('data-author-id',_0x41e00c);});}},{'priority':'highest'}),_0x168dd4['descriptionFactory']['registerDescriptionCallback'](_0x41f79a=>{if('insertion'!=_0x41f79a['type']&&'deletion'!=_0x41f79a['type'])return;const _0x4a2d88=_0x41f79a['getContainedElement']();if(null!=_0x4a2d88&&_0x4a2d88['is']('element','table')){if('insertion'==_0x41f79a['type']){const _0x4ef07e=_0x41f79a['getItems']()['filter'](_0x33d080=>_0x33d080['is']('$textProxy'))['map'](_0x1e5015=>_0x1e5015['data']);if(_0x4ef07e['length'])return{'type':'insertion','content':c(_0x19549c,'*Insert:*\x20%0',c(_0x19549c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ef07e['join']('\x20')+'\x22'))};}if('deletion'==_0x41f79a['type']){const _0x554c08=_0x41f79a['getItems']()['filter'](_0x5c9bf9=>_0x5c9bf9['is']('$textProxy'))['map'](_0x24069e=>_0x24069e['data']);if(_0x554c08['length'])return{'type':'deletion','content':c(_0x19549c,'*Remove:*\x20%0',c(_0x19549c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x554c08['join']('\x20')+'\x22'))};}}}),_0x168dd4['descriptionFactory']['registerDescriptionCallback'](_0x44e76c=>{if('tableRow'==_0x44e76c['subType']){const _0x1b58c9=_0x44e76c['getItems']()['filter'](_0xd033bf=>_0xd033bf['is']('$textProxy'))['map'](_0x115e33=>_0x115e33['data']),_0x56a558=this['_getSuggestionCoords'](_0x44e76c),_0x4775f3=_0x56a558['maxRow']-_0x56a558['minRow']+0x1;if('insertion'==_0x44e76c['type'])return _0x1b58c9['length']?{'type':'insertion','content':c(_0x19549c,'*Insert:*\x20%0',c(_0x19549c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4775f3,'\x22'+_0x1b58c9['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x19549c,'*Insert:*\x20%0',c(_0x19549c,'ELEMENT_TABLE_ROW',_0x4775f3))};if('deletion'==_0x44e76c['type'])return _0x1b58c9['length']?{'type':'deletion','content':c(_0x19549c,'*Remove:*\x20%0',c(_0x19549c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4775f3,'\x22'+_0x1b58c9['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x19549c,'*Remove:*\x20%0',c(_0x19549c,'ELEMENT_TABLE_ROW',_0x4775f3))};}if('tableColumn'==_0x44e76c['subType']){const _0x40281d=_0x44e76c['getItems']()['filter'](_0x535f61=>_0x535f61['is']('$textProxy'))['map'](_0xa81e9a=>_0xa81e9a['data']),_0x319456=this['_getSuggestionCoords'](_0x44e76c),_0x57855=_0x319456['maxColumn']-_0x319456['minColumn']+0x1;if('insertion'==_0x44e76c['type'])return _0x40281d['length']?{'type':'insertion','content':c(_0x19549c,'*Insert:*\x20%0',c(_0x19549c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x57855,'\x22'+_0x40281d['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x19549c,'*Insert:*\x20%0',c(_0x19549c,'ELEMENT_TABLE_COLUMN',_0x57855))};if('deletion'==_0x44e76c['type'])return _0x40281d['length']?{'type':'deletion','content':c(_0x19549c,'*Remove:*\x20%0',c(_0x19549c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x57855,'\x22'+_0x40281d['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x19549c,'*Remove:*\x20%0',c(_0x19549c,'ELEMENT_TABLE_COLUMN',_0x57855))};}}),_0x168dd4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x29bf4a),_0x168dd4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x29bf4a),_0x168dd4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xcc389a),_0x168dd4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xcc389a),_0x168dd4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x41060d),_0x168dd4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x41060d),_0x168dd4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xd61653),_0x168dd4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xd61653);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1e0dae=this['editor'],_0x540be2=_0x1e0dae['model']['document']['selection'];return(_0x86d14a,_0x370f38)=>{_0x1e0dae['model']['change'](_0x2599ea=>{const {commandName:_0x19ec3c,commandParams:_0x5a2223}=_0x370f38;let _0x2c6569=_0x86d14a[0x0]['end']['nodeBefore'];_0x5a2223&&_0x5a2223[0x0]&&!0x1===_0x5a2223[0x0]['forceValue']&&(_0x2c6569=_0x86d14a[0x0]['start']['nodeAfter']);const _0x304ac4=_0x2599ea['createRangeIn'](_0x2c6569);if('$graveyard'==_0x304ac4['root']['rootName'])return;const _0x34e8cf=Array['from'](_0x540be2['getRanges']())['map'](_0x427d12=>_0x1d9e5c['fromRange'](_0x427d12));_0x2599ea['setSelection'](_0x304ac4),_0x1e0dae['commands']['get'](_0x19ec3c)['refresh'](),_0x5a2223['push']({'forceDefaultExecution':!0x0}),_0x1e0dae['execute'](_0x19ec3c,..._0x5a2223);const _0x3bb975=_0x34e8cf['filter'](_0x3e1d60=>'$graveyard'!=_0x3e1d60['root']['rootName']);_0x3bb975['length']>0x0&&_0x2599ea['setSelection'](_0x3bb975);for(const _0x4ffa6f of _0x34e8cf)_0x4ffa6f['detach']();});};}['_getCoordsForCells'](_0x2b425b){const _0x307fa3=this['editor']['plugins']['get']('TableUtils');let _0x38a7b8=Number['MAX_SAFE_INTEGER'],_0x29bd16=Number['MIN_SAFE_INTEGER'],_0x54352d=Number['MAX_SAFE_INTEGER'],_0x5bb4de=Number['MIN_SAFE_INTEGER'];for(const _0xe20675 of _0x2b425b){if('$graveyard'==_0xe20675['root']['rootName'])continue;const {row:_0x36e0d1,column:_0x5d9e82}=_0x307fa3['getCellLocation'](_0xe20675),_0x215984=_0xe20675['hasAttribute']('rowspan')?_0xe20675['getAttribute']('rowspan')-0x1:0x0,_0x1c1387=_0xe20675['hasAttribute']('colspan')?_0xe20675['getAttribute']('colspan')-0x1:0x0;_0x38a7b8=_0x36e0d1<_0x38a7b8?_0x36e0d1:_0x38a7b8,_0x29bd16=_0x36e0d1+_0x215984>_0x29bd16?_0x36e0d1+_0x215984:_0x29bd16,_0x54352d=_0x5d9e82<_0x54352d?_0x5d9e82:_0x54352d,_0x5bb4de=_0x5d9e82+_0x1c1387>_0x5bb4de?_0x5d9e82+_0x1c1387:_0x5bb4de;}return{'minRow':_0x38a7b8,'maxRow':_0x29bd16,'minColumn':_0x54352d,'maxColumn':_0x5bb4de};}['_setupColumnsRowsFixing'](){const _0x4cb340=this['editor'],_0xffe785=_0x4cb340['plugins']['get']('TrackChangesEditing'),_0x178162=_0x4cb340['plugins']['get']('TableUtils');_0x4cb340['model']['document']['on']('change:data',()=>{const _0x45af2a=Array['from'](_0x4cb340['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7266c6,data:_0x286860}of _0x45af2a){const {group:_0x52f106,id:_0x5664df,subType:_0x4eaaeb}=_0xffe785['_splitMarkerName'](_0x7266c6);if('suggestion'!=_0x52f106)continue;if(null!=_0x286860['oldRange'])continue;const _0x565367=_0xffe785['getSuggestion'](_0x5664df);this['_tablePostFixingSubtypes']['includes'](_0x4eaaeb)&&this['_tableSuggestions']['add'](_0x565367);}},{'priority':'low'});const _0x55bbc1=(_0x1fd3bd,_0x31f7ad)=>{let _0x568e7e=!0x1;const _0x125823=_0x31f7ad['createRangeOn'](_0x1fd3bd),_0x398517=_0x1fd3bd['findAncestor']('table'),_0x344fe9=_0x178162['getCellLocation'](_0x1fd3bd);for(const _0x42f264 of this['_tableSuggestions']){const _0x4a315f=_0x42f264['subType'],_0x3db0cd=_0x4a315f['startsWith']('tablePaste'),_0x333488=_0x4a315f['substr'](_0x3db0cd?0xa:0x5),_0x5d1a16=_0x333488['toLowerCase'](),_0x2a664c=_0x5d1a16['substr'](0x0,0x3)+'span',_0x1f7f97='min'+_0x333488,_0x141797='max'+_0x333488;if(!_0x42f264['isInContent'])continue;if(_0x398517!=_0x42f264['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x42f264['isIntersectingWithRange'](_0x125823))continue;const _0x3dd013=_0x1fd3bd['hasAttribute'](_0x2a664c)?_0x1fd3bd['getAttribute'](_0x2a664c)-0x1:0x0,_0x5b8800=this['_getSuggestionCoords'](_0x42f264),_0x5d6eff=_0x5b8800[_0x1f7f97],_0x5961ea=_0x5b8800[_0x141797];_0x5d6eff<=_0x344fe9[_0x5d1a16]&&_0x344fe9[_0x5d1a16]+_0x3dd013<=_0x5961ea&&(_0x42f264['addRange'](_0x125823),_0x568e7e=!0x0);}return _0x568e7e;};_0x4cb340['model']['document']['registerPostFixer'](_0x2601ee=>{let _0x3374c0=!0x1;for(const _0x11e013 of _0x4cb340['model']['document']['differ']['getChanges']())if('insert'==_0x11e013['type']){if('tableRow'==_0x11e013['name']){for(const _0xfe4886 of _0x11e013['position']['nodeAfter']['getChildren']())_0x3374c0=_0x3374c0||_0x55bbc1(_0xfe4886,_0x2601ee);}else'tableCell'==_0x11e013['name']&&(_0x3374c0=_0x3374c0||_0x55bbc1(_0x11e013['position']['nodeAfter'],_0x2601ee));}return _0x3374c0;});}['_getSuggestionCoords'](_0x57fe66){return this['_getCoordsForCells'](_0x57fe66['getRanges']()['map'](_0xa9fd15=>_0xa9fd15['start']['nodeAfter']));}}function xe(_0xcf8bc1){return Array['from'](new Set(_0xcf8bc1)['values']());}class Nt extends _0x145e1e{static get['requires'](){return[Ct];}['afterInit'](){const _0x1a935b=this['editor'],_0x1c44bf=_0x1a935b['model']['document']['selection'],_0xfaa3e9=_0x1a935b['locale'];if(!_0x1a935b['plugins']['has']('TableEditing'))return;const _0x399700=_0x1a935b['plugins']['get']('TrackChangesEditing'),_0x5e5bc3=_0x1a935b['plugins']['get']('TableUtils'),_0x27390e=_0x1a935b['plugins']['get'](Ct);_0x27390e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x399700['enableCommand']('mergeTableCells',()=>{const _0x2a6b94=_0x5e5bc3['getSelectionAffectedTableCells'](_0x1a935b['model']['document']['selection']);_0x1a935b['model']['change'](()=>{_0x399700['markMultiRangeBlockFormat'](_0x2a6b94,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1a935b['commands']['get']('mergeTableCells')['on']('execute',(_0x195d46,_0x5bb633)=>{_0x1a935b['commands']['get']('trackChanges')['value']&&(_0x5bb633['length']>0x0&&_0x5bb633[_0x5bb633['length']-0x1]&&_0x5bb633[_0x5bb633['length']-0x1]['forceDefaultExecution']||_0x399700['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x195d46['stop']());},{'priority':'highest'});for(const _0x1b19ec of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5cf704=_0x1a935b['commands']['get'](_0x1b19ec);_0x399700['enableCommand'](_0x1b19ec,()=>{const _0x5db83e=_0x1a935b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1448a1=>_0x1448a1['is']('element','tableCell')),_0x1e7d9e=_0x5cf704['value'];_0x1a935b['model']['change'](()=>{_0x399700['markMultiRangeBlockFormat']([_0x5db83e,_0x1e7d9e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x533ea1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x28af62=_0x1a935b['commands']['get'](_0x533ea1);_0x399700['enableCommand'](_0x533ea1,()=>{const _0x1a4e0a=_0x5e5bc3['getSelectionAffectedTableCells'](_0x1a935b['model']['document']['selection'])[0x0],_0x40e6f7=_0x1a4e0a['findAncestor']('table'),{column:_0x55a1a8,row:_0x2c52a9}=_0x5e5bc3['getCellLocation'](_0x1a4e0a);let _0x82323c=[];if('horizontally'==_0x28af62['direction']){const _0x2dd23a=_0x5e5bc3['createTableWalker'](_0x40e6f7,{'startRow':_0x2c52a9,'endRow':_0x2c52a9,'includeAllSlots':!0x0});_0x82323c=Array['from'](_0x2dd23a)['map'](_0x2d1003=>_0x2d1003['cell']);}else{const _0x1372cf=_0x5e5bc3['createTableWalker'](_0x40e6f7,{'column':_0x55a1a8,'includeAllSlots':!0x0});_0x82323c=Array['from'](_0x1372cf)['map'](_0x31087f=>_0x31087f['cell']);}_0x1a935b['model']['change'](_0x5d9456=>{_0x399700['markBlockFormat'](_0x5d9456['createRangeOn'](_0x1a4e0a),{'commandName':_0x533ea1,'commandParams':[]},_0x82323c,_0x533ea1);});});}_0x399700['descriptionFactory']['registerDescriptionCallback'](_0x5054ab=>{if('formatBlock'!=_0x5054ab['type']&&'formatInline'!=_0x5054ab['type'])return;const {data:_0x284a14}=_0x5054ab;return _0x284a14&&'mergeTableCells'==_0x284a14['commandName']?{'type':'format','content':c(_0xfaa3e9,'*Merge\x20cells*')}:void 0x0;}),_0x399700['descriptionFactory']['registerDescriptionCallback'](_0x19effd=>{if('formatBlock'!=_0x19effd['type']&&'formatInline'!=_0x19effd['type'])return;const {data:_0x411489}=_0x19effd;return _0x411489?'splitTableCellVertically'==_0x411489['commandName']?{'type':'format','content':c(_0xfaa3e9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x411489['commandName']?{'type':'format','content':c(_0xfaa3e9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x28c665=_0x27390e['_acceptFormatSuggestionCallbackFactory']();for(const _0xec53a3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x399700['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xec53a3,'accept',_0x28c665);for(const _0x4ea69d of['splitTableCellVertically','splitTableCellHorizontally'])_0x399700['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ea69d,'accept',_0x28c665);_0x399700['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2854e7=>{_0x1a935b['model']['change'](_0x44f0c8=>{const _0x25b17d=Array['from'](_0x1c44bf['getRanges']())['map'](_0x49884e=>_0x1d9e5c['fromRange'](_0x49884e));_0x44f0c8['setSelection'](_0x2854e7),_0x1a935b['commands']['get']('mergeTableCells')['refresh'](),_0x1a935b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x439f6e=_0x25b17d['filter'](_0xd36991=>'$graveyard'!=_0xd36991['root']['rootName']);_0x439f6e['length']>0x0&&_0x44f0c8['setSelection'](_0x439f6e);for(const _0x1bb296 of _0x25b17d)_0x1bb296['detach']();});});for(const _0x596039 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x52188a=_0x1a935b['commands']['get'](_0x596039);_0x52188a['on']('set:isEnabled',(_0x12831f,_0x2b95c0,_0x1c3988)=>{if(_0x1c3988){const _0x4eade3=_0x1a935b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2771b9=>_0x2771b9['is']('element','tableCell'));this['_areMergableCells'](_0x52188a['value'],_0x4eade3)||(_0x12831f['return']=!0x1,_0x12831f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2ed2a1=this['editor']['commands']['get']('mergeTableCells'),_0x3252ba=this['editor']['plugins']['get']('TableUtils');if(!_0x2ed2a1['isEnabled'])return!0x1;const _0x8a403b=_0x3252ba['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4c115c of _0x8a403b)for(const _0x536558 of _0x8a403b)if(_0x4c115c!=_0x536558&&!this['_areMergableCells'](_0x4c115c,_0x536558))return!0x1;return!0x0;}['_areMergableCells'](_0xe943ff,_0x3a62c5){const _0x58386d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dc0e4=this['editor']['model']['createRangeOn'](_0xe943ff),_0x32b4a7=this['editor']['model']['createRangeOn'](_0x3a62c5),_0x29d225=new Set(),_0x598c79=new Set();for(const _0x1c01ae of _0x58386d['getSuggestions']())if(('insertion'==_0x1c01ae['type']||'deletion'==_0x1c01ae['type']||'mergeTableCells'==_0x1c01ae['subType'])&&_0x1c01ae['isInContent']){for(const _0x10e76a of _0x1c01ae['getRanges']())_0x10e76a['containsRange'](_0x4dc0e4,!0x0)&&_0x29d225['add'](_0x1c01ae['type']+':'+_0x1c01ae['author']['id']),_0x10e76a['containsRange'](_0x32b4a7,!0x0)&&_0x598c79['add'](_0x1c01ae['type']+':'+_0x1c01ae['author']['id']);}if(_0x29d225['size']!=_0x598c79['size'])return!0x1;for(const _0x3df5a2 of _0x29d225)if(!_0x598c79['has'](_0x3df5a2))return!0x1;return!0x0;}}class Dt extends _0x145e1e{static get['requires'](){return[Ct];}['afterInit'](){const _0x4aabe3=this['editor'];if(!_0x4aabe3['plugins']['has']('TableEditing'))return;const _0x4012c7=_0x4aabe3['locale'],_0xf86c67=_0x4aabe3['plugins']['get']('TrackChangesEditing');_0xf86c67['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xf86c67['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xf86c67['registerBlockAttribute']('headingRows'),_0xf86c67['registerBlockAttribute']('headingColumns'),_0xf86c67['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x4012c7,'FORMAT_HEADER_ROW')),_0xf86c67['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x4012c7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x162339=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48a75c=this['editor']['plugins']['get']('TableUtils'),_0x3a89fe=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x426380({showActiveMarker:_0x5871d1=!0x0,setDataAttribute:_0x682c39=!0x0}={}){return(_0x578f72,_0x4869f7,_0x30b064)=>{const {type:_0x3d9ffc,id:_0x41fa49}=_0x162339['_splitMarkerName'](_0x4869f7['markerName']),_0x2501d5=_0x162339['getSuggestion'](_0x41fa49),_0x45d65a=_0x2501d5['data'];if('formatBlock'!=_0x2501d5['type']||!_0x45d65a||'setTableColumnHeader'!=_0x45d65a['commandName'])return;if(_0x4869f7['item'])return void _0x578f72['stop']();if(!_0x30b064['consumable']['consume'](_0x4869f7['markerRange'],_0x578f72['name']))return;const _0x33e722=_0x4869f7['markerRange']['start']['nodeAfter'],_0x3ce90d=_0x4869f7['markerRange']['end']['nodeBefore'],_0x48c36d=_0x33e722['parent']['parent'],{column:_0x2c9452}=_0x48a75c['getCellLocation'](_0x33e722),{column:_0x1e38d3}=_0x48a75c['getCellLocation'](_0x3ce90d);for(let _0x4ba580=_0x2c9452;_0x4ba580<=_0x1e38d3;_0x4ba580++){const _0x57d5bc=_0x48a75c['createTableWalker'](_0x48c36d,{'column':_0x4ba580,'includeAllSlots':!0x1});for(const _0x53df99 of _0x57d5bc){const _0x1fc247=_0x53df99['cell'],_0x497079=_0x30b064['mapper']['toViewElement'](_0x1fc247);_0x30b064['writer']['addClass']('ck-suggestion-marker-'+_0x3d9ffc,_0x497079),_0x682c39&&_0x30b064['writer']['setAttribute']('data-suggestion',_0x41fa49,_0x497079),_0x30b064['mapper']['bindElementToMarker'](_0x497079,_0x4869f7['markerName']),_0x5871d1&&(_0x162339['activeMarkers']['includes'](_0x4869f7['markerName'])?_0x30b064['writer']['addClass']('ck-suggestion-marker--active',_0x497079):_0x30b064['writer']['removeClass']('ck-suggestion-marker--active',_0x497079));}}};}_0x162339['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3a89fe),_0x162339['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3a89fe),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x426380(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a4f21,_0x1d08c3,_0x596309)=>{_0x596309['options']['showSuggestionHighlights']&&_0x426380({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3a4f21,_0x1d08c3,_0x596309);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4e4a67,_0x38ed29,_0x4cfce4)=>{const {type:_0x3382cf,id:_0x5c9ca3}=_0x162339['_splitMarkerName'](_0x38ed29['markerName']),_0x3c5416=_0x162339['getSuggestion'](_0x5c9ca3),_0x2e5c66=_0x3c5416['data'];if('formatBlock'!=_0x3c5416['type']||!_0x2e5c66||'setTableColumnHeader'!=_0x2e5c66['commandName'])return;const _0x4d157d=_0x4cfce4['mapper']['markerNameToElements'](_0x38ed29['markerName']);if(_0x4d157d){for(const _0x2ccd76 of _0x4d157d)_0x4cfce4['writer']['removeClass']('ck-suggestion-marker-'+_0x3382cf,_0x2ccd76),_0x4cfce4['writer']['removeClass']('ck-suggestion-marker--active',_0x2ccd76),_0x4cfce4['writer']['removeAttribute']('data-suggestion',_0x2ccd76),_0x4cfce4['mapper']['unbindElementFromMarkerName'](_0x2ccd76,_0x38ed29['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x214b64=this['editor'],_0x223452=_0x214b64['locale'];function _0x3c2e2e(_0x4dab4e){return{'type':'format','content':c(_0x223452,'*Format:*\x20%0',_0x4dab4e)};}_0x214b64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x202ad8=>{if('formatBlock'!=_0x202ad8['type'])return;const {data:_0x341278}=_0x202ad8;if(_0x341278){if('setTableRowHeader'==_0x341278['commandName']){const _0x5576a1=_0x341278['commandParams'][0x0]['forceValue'];return _0x3c2e2e(c(_0x223452,_0x5576a1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x341278['commandName']){const _0x1480d7=_0x341278['commandParams'][0x0]['forceValue'];return _0x3c2e2e(c(_0x223452,_0x1480d7?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x145e1e{['afterInit'](){const _0x7310fb=this['editor'],_0x499adb=_0x7310fb['locale'],_0xefade3=_0x7310fb['plugins']['get']('TrackChangesEditing');function _0x14aec3(_0x4c7bb6){return{'type':'format','content':''+c(_0x499adb,'*Set\x20table\x20type:*\x20%0',_0x4c7bb6)};}_0x7310fb['plugins']['has']('TableLayout')&&(_0xefade3['enableCommand']('insertTableLayout'),_0xefade3['enableDefaultAttributesIntegration']('tableType'),_0xefade3['registerBlockAttribute']('tableType'),_0xefade3['descriptionFactory']['registerElementLabel'](_0x19c983=>_0x19c983['is']('element','table')&&'layout'===_0x19c983['getAttribute']('tableType'),_0x2b584e=>c(_0x499adb,'ELEMENT_LAYOUT_TABLE',_0x2b584e)),_0xefade3['descriptionFactory']['registerDescriptionCallback'](_0x3cf248=>{const {data:_0x4275db}=_0x3cf248;if(_0x4275db&&'tableType'==_0x4275db['key'])switch(_0x4275db['newValue']){case'layout':return _0x14aec3(c(_0x499adb,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x14aec3(c(_0x499adb,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x45b014=>[_0x45b014,null]));class $t extends _0x145e1e{static get['requires'](){return[Ct];}['afterInit'](){const _0x144c6f=this['editor'];if(!_0x144c6f['plugins']['has']('TableClipboard'))return;const _0x1d5c3a=_0x144c6f['plugins']['get']('TrackChangesEditing'),_0x11188c=_0x144c6f['plugins']['get']('TableUtils'),_0xf4e917=_0x144c6f['plugins']['get'](Ct),_0x4e475d=_0x144c6f['plugins']['get']('TableClipboard'),_0x2afb3f=_0x144c6f['plugins']['get']('TableSelection'),_0x5c4608=_0x144c6f['plugins']['get'](_0x1b6ef3);_0xf4e917['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x144c6f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x144c6f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x7fa59c=null,_0x38a9e5=!0x1;_0x5c4608['on']('contentInsertion',(_0x45bb07,_0x2f5b50)=>{_0x38a9e5='paste'===_0x2f5b50['method'];}),_0x144c6f['model']['on']('insertContent',(_0x204cee,_0x3ee877)=>{if(!_0x38a9e5&&null===_0x2afb3f['getSelectedTableCells']())return;const [_0x97f0e6,_0x3efe81]=_0x3ee877,_0x372cbb=_0x3ee877[_0x3ee877['length']-0x1];_0x372cbb&&_0x372cbb['forceDefaultExecution']||_0x1d5c3a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x30fcc3,_0x3bcf93,_0x221f36,_0x18ba9e,_0x2dc5e4){if(_0x3bcf93&&!_0x3bcf93['is']('documentSelection'))return!0x1;const _0x22f12a=_0x2dc5e4['getTableIfOnlyTableInContent'](_0x30fcc3,_0x221f36);if(!_0x22f12a||!He(_0x22f12a,void 0x0,_0x18ba9e))return!0x1;const _0x392584=_0x18ba9e['getSelectionAffectedTableCells'](_0x221f36['document']['selection']);if(!_0x392584['length'])return!0x1;const _0x1b34e7=_0x392584[0x0]['findAncestor']('table'),_0x3d45a5=_0x18ba9e['getRowIndexes'](_0x392584),_0x5d3680=_0x18ba9e['getColumnIndexes'](_0x392584),_0x55ac67={'startRow':_0x3d45a5['first'],'endRow':_0x3d45a5['last'],'startColumn':_0x5d3680['first'],'endColumn':_0x5d3680['last']};return 0x1==_0x392584['length']&&(_0x55ac67['endRow']+=_0x18ba9e['getRows'](_0x22f12a)-0x1,_0x55ac67['endColumn']+=_0x18ba9e['getColumns'](_0x22f12a)-0x1),He(_0x1b34e7,_0x55ac67,_0x18ba9e);}(_0x97f0e6,_0x3efe81,_0x144c6f['model'],_0x11188c,_0x4e475d)&&(_0x204cee['stop'](),_0x7fa59c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x144c6f['model']['change'](()=>{_0x144c6f['model']['insertContent'](_0x3ee877[0x0],_0x3ee877[0x1],_0x3ee877[0x2],{'forceDefaultExecution':!0x0});const _0x40c43a=_0xdf79fb(),{rowInsertionRanges:_0x326d4e,columnInsertionRanges:_0x3ce63,insertionRanges:_0x691b7b,deletionRanges:_0xc71caa,cells:_0x1393fe}=_0x7fa59c;_0x326d4e['length']&&_0x1d5c3a['markMultiRangeInsertion'](_0x326d4e,'tablePasteRow',{'tablePasteChainId':_0x40c43a}),_0x3ce63['length']&&_0x1d5c3a['markMultiRangeInsertion'](_0x3ce63,'tablePasteColumn',{'tablePasteChainId':_0x40c43a}),_0x691b7b['length']&&(_0x1d5c3a['markMultiRangeInsertion'](_0x691b7b,'tablePaste',{'tablePasteChainId':_0x40c43a,'skipNestingCheck':!0x0}),_0x691b7b['forEach'](_0x50da8c=>_0x50da8c['detach']?.())),_0xc71caa['length']&&(_0x1d5c3a['markMultiRangeDeletion'](_0xc71caa,'tablePaste',{'tablePasteChainId':_0x40c43a,'skipNestingCheck':!0x0}),_0xc71caa['forEach'](_0x458ad1=>_0x458ad1['detach']?.()));const _0x33da67=_0x1d5c3a['markMultiRangeBlockFormat'](_0x1393fe['map'](({element:_0x588f88})=>_0x588f88),{'formatGroupId':_0xdf79fb()},[],'tablePasteCell',{'tablePasteChainId':_0x40c43a});if(_0x33da67){const _0x102b20=_0x33da67['getMarkers'](),_0x7e894b=[];for(const {element:_0x3779de,attributes:_0x553079}of _0x1393fe){if(!_0x553079)continue;const _0x26dd94=_0x144c6f['model']['createRangeOn'](_0x3779de),_0x482efe=_0x102b20['find'](_0x5d4f1f=>_0x5d4f1f['getRange']()['isEqual'](_0x26dd94));_0x482efe&&_0x7e894b['push']([_0x482efe['name'],_0x553079]);}_0x7e894b['length']&&_0x33da67['setAttribute']('markerAttributes',Object['fromEntries'](_0x7e894b));}_0x7fa59c=null;}));},{'priority':_0x4266f3['high']+0xa}),_0x5c4608['on']('contentInsertion',()=>{_0x38a9e5=!0x1;},{'priority':'lowest'}),_0x144c6f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x106adf,_0x14f59f)=>{const [_0x279df0,_0x3a1482,,_0xe0ec6d]=_0x14f59f;if(!_0x7fa59c)return;_0x106adf['stop']();const _0x2a1292=_0x279df0['cell'],_0x39cbd0=_0x3a1482,_0x2733ad=De(_0x2a1292),_0xf34f2d=De(_0x39cbd0);_0x106adf['return']=_0x2a1292;let _0x5ed745=null,_0x343d0a=null;if(_0xf34f2d||_0x2733ad){if(_0x2733ad&&!_0xf34f2d){_0xe0ec6d['remove'](_0x2a1292['getChild'](0x0));for(const _0x515535 of Array['from'](_0x39cbd0['getChildren']()))_0xe0ec6d['insert'](_0x515535,_0x2a1292,'end');const _0x5357b8=_0x7fa59c['rowInsertionIndexes']['includes'](_0x279df0['row']),_0x5c2091=_0x7fa59c['columnInsertionIndexes']['includes'](_0x279df0['column']);_0x5357b8||_0x5c2091||(_0x5ed745=_0x1d9e5c['fromRange'](_0xe0ec6d['createRangeIn'](_0x2a1292)));}else _0xf34f2d&&!_0x2733ad&&(_0x343d0a=_0xe0ec6d['createRangeIn'](_0x2a1292));}else{const _0x2fc026=_0xe0ec6d['createElement']('tableCellSuggestion'),_0x4110a6=_0xe0ec6d['createElement']('tableCellSuggestion');_0xe0ec6d['wrap'](_0xe0ec6d['createRangeIn'](_0x2a1292),_0x4110a6),_0xe0ec6d['insert'](_0x2fc026,_0x2a1292,0x0);for(const _0x240471 of Array['from'](_0x39cbd0['getChildren']()))_0xe0ec6d['insert'](_0x240471,_0x2fc026,'end');_0x5ed745=_0x1d9e5c['fromRange'](_0xe0ec6d['createRangeOn'](_0x2fc026)),_0x343d0a=_0x1d9e5c['fromRange'](_0xe0ec6d['createRangeOn'](_0x4110a6));}const _0x5c1e89=Array['from'](_0x39cbd0['getAttributes']())['filter'](([_0x4e9a48])=>Oe['includes'](_0x4e9a48));_0x7fa59c['cells']['push']({'element':_0x2a1292,'attributes':_0x5c1e89['length']?Object['fromEntries'](_0x5c1e89):null}),_0x5ed745&&_0x7fa59c['insertionRanges']['push'](_0x5ed745),_0x343d0a&&_0x7fa59c['deletionRanges']['push'](_0x343d0a);},{'priority':'high'}),_0x11188c['on']('insertColumns',(_0x5be9a8,_0x5159ce)=>{const [_0x12dc5f,_0x14c0af={}]=_0x5159ce;if(!_0x7fa59c)return;const _0x5caec9=_0x14c0af['at']||0x0,_0x1b3e5f=_0x14c0af['columns']||0x1;_0x7fa59c['columnInsertionIndexes']=new Array(_0x1b3e5f)['fill'](_0x5caec9)['map']((_0x563ea4,_0x68cb3e)=>_0x563ea4+_0x68cb3e);for(const {cell:_0x50414d}of _0x11188c['createTableWalker'](_0x12dc5f,{'startColumn':_0x5caec9,'endColumn':_0x5caec9+_0x1b3e5f-0x1}))_0x7fa59c['columnInsertionRanges']['push'](_0x144c6f['model']['createRangeOn'](_0x50414d));},{'priority':'low'}),_0x11188c['on']('insertRows',(_0x3b6bbc,_0x5b3530)=>{const [_0x26dcec,_0x36ec2f={}]=_0x5b3530;if(!_0x7fa59c)return;const _0xc39f61=_0x36ec2f['at']||0x0,_0x7cff36=_0x36ec2f['rows']||0x1;_0x7fa59c['rowInsertionIndexes']=new Array(_0x7cff36)['fill'](_0xc39f61)['map']((_0x374981,_0x20a64a)=>_0x374981+_0x20a64a);for(const {cell:_0xe647f7}of _0x11188c['createTableWalker'](_0x26dcec,{'startRow':_0xc39f61,'endRow':_0xc39f61+_0x7cff36-0x1}))_0x7fa59c['rowInsertionRanges']['push'](_0x144c6f['model']['createRangeOn'](_0xe647f7));},{'priority':'low'}),_0x1d5c3a['descriptionFactory']['registerDescriptionCallback'](_0x4255f3=>{if(_0x4255f3['subType']&&_0x4255f3['subType']['startsWith']('tablePaste'))return _0x4255f3['previous']?{}:{'type':'insertion','content':c(_0x144c6f['locale'],'*Replace\x20table\x20cells*')};});const _0x3a7340=()=>!0x1;for(const _0x241aed of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1d5c3a['_suggestionFactory']['registerCustomCallback']('insertion',_0x241aed,'join',_0x3a7340),_0x1d5c3a['_suggestionFactory']['registerCustomCallback']('deletion',_0x241aed,'join',_0x3a7340),_0x1d5c3a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x241aed,'join',_0x3a7340);_0x1d5c3a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3a7340),_0x1d5c3a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5c0f97,_0x3ace53,_0x4894f9)=>{const _0x41a160=_0x5c0f97['map'](_0x123f0f=>_0x123f0f['getContainedElement']())['filter'](_0x4ca582=>_0x4ca582),_0x534985=new Map(_0x41a160['map'](_0x3ee0dc=>[_0x3ee0dc,null]));if(_0x7fa59c){for(const {element:_0x4f64bc,attributes:_0x5dc3c6}of _0x7fa59c['cells'])_0x5dc3c6&&_0x534985['set'](_0x4f64bc,_0x5dc3c6);}else{if(_0x4894f9&&_0x4894f9['markerAttributes'])for(const [_0x3809d9,_0x53a4f5]of Object['entries'](_0x4894f9['markerAttributes'])){const _0x57b96e=_0x144c6f['model']['markers']['get'](_0x3809d9),_0x3efa06=_0x57b96e?_0x57b96e['getRange']()['getContainedElement']():null;_0x3efa06&&_0x534985['set'](_0x3efa06,_0x53a4f5);}}_0x144c6f['model']['change'](_0x5a5805=>{for(const [_0x576527,_0x1f3231]of _0x534985)_0x5a5805['setAttributes']({...Ue,..._0x1f3231},_0x576527);});});const _0x1026b3=(_0x13bd8b,_0x1454f9)=>{_0x1d5c3a['_suggestionFactory']['registerCustomCallback'](_0x13bd8b,'tablePaste',_0x1454f9,(_0x32749f,_0x55f997,_0x2c697c)=>{_0x144c6f['model']['change'](_0x36b8dc=>{const _0x30bf26=[];for(const _0x11595d of _0x32749f){const _0x523a12=_0x11595d['start']['nodeAfter'];_0x523a12['is']('element','tableCellSuggestion')&&_0x30bf26['push'](_0x523a12);}_0x1d5c3a['_suggestionFactory']['getSuggestionCallback'](_0x13bd8b,null,_0x1454f9)(_0x32749f,_0x55f997,_0x2c697c);for(const _0x3ddc8b of _0x30bf26)'$graveyard'!=_0x3ddc8b['root']['rootName']&&_0x36b8dc['unwrap'](_0x3ddc8b);});});};_0x1026b3('insertion','accept'),_0x1026b3('insertion','discard'),_0x1026b3('deletion','accept'),_0x1026b3('deletion','discard'),_0x1d5c3a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x16bfb2=>{const _0x5a9967=_0x16bfb2['map'](_0x1fc25d=>_0x1fc25d['getContainedElement']()),_0x43c9fe=_0x5a9967[0x0]['findAncestor']('table'),{minRow:_0x2a80bf,maxRow:_0x5e3e45}=_0xf4e917['_getCoordsForCells'](_0x5a9967);_0x11188c['removeRows'](_0x43c9fe,{'at':_0x2a80bf,'rows':_0x5e3e45-_0x2a80bf+0x1});}),_0x1d5c3a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x118f0f=>{const _0x2a8443=_0x118f0f['map'](_0x4e5a0e=>_0x4e5a0e['getContainedElement']()),_0x1473e6=_0x2a8443[0x0]['findAncestor']('table'),{minColumn:_0x4a5baf,maxColumn:_0xceedf6}=_0xf4e917['_getCoordsForCells'](_0x2a8443);_0x11188c['removeColumns'](_0x1473e6,{'at':_0x4a5baf,'columns':_0xceedf6-_0x4a5baf+0x1});});const _0x26d6e5=(_0x463908,_0x24f484)=>{if(!_0x24f484['subType']||!_0x24f484['subType']['startsWith']('tablePaste'))return;const _0x13e710=_0x24f484['attributes']['tablePasteChainId'],_0x1e93f6=_0x1d5c3a['getSuggestions']()['filter'](_0x451bf2=>_0x451bf2['isInContent']&&_0x451bf2['attributes']&&_0x451bf2['attributes']['tablePasteChainId']==_0x13e710);_0x1e93f6['length']&&_0x24f484['getAllAdjacentSuggestions']()['length']!=_0x1e93f6['length']&&_0x1e93f6['reduce']((_0x184228,_0x504c93)=>(_0x184228['next']=_0x504c93,_0x504c93['previous']=_0x184228,_0x504c93));};function _0x926025(_0x3d8c61,_0x2b3a41=!0x0){const {id:_0x441ca7,authorId:_0x5524b9}=_0x1d5c3a['_splitMarkerName'](_0x3d8c61['markerName']),_0x5c1b03=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x206479=_0x1d5c3a['activeMarkers']['includes'](_0x3d8c61['markerName']);return _0x206479&&_0x5c1b03['push']('ck-suggestion-marker--active'),{'classes':_0x5c1b03,'attributes':{'data-suggestion':_0x441ca7,'data-author-id':_0x5524b9},'priority':_0x206479&&_0x2b3a41?0xbc2:0xbb8};}_0x1d5c3a['on']('suggestionLoaded',_0x26d6e5,{'priority':'high'}),_0x1d5c3a['on']('suggestionUnloaded',_0x26d6e5,{'priority':'high'}),_0x144c6f['model']['document']['registerPostFixer'](()=>{let _0x5514ef=!0x1;const _0x347f45=Array['from'](_0x144c6f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f0537,data:_0x1e8e8a}of _0x347f45){const {group:_0x4f58ef,type:_0x32608a,id:_0x541e44}=_0x1d5c3a['_splitMarkerName'](_0x2f0537);if('suggestion'!=_0x4f58ef||'deletion'!=_0x32608a||_0x1e8e8a['oldRange'])continue;if(!_0x1d5c3a['hasSuggestion'](_0x541e44))continue;const _0x3510a2=_0x1d5c3a['getSuggestion'](_0x541e44)['getRanges'](),_0x8b48eb=_0x144c6f['plugins']['get']('Users')['me'];for(const _0x433ff1 of _0x1d5c3a['getSuggestions']()){if(!_0x433ff1['isInContent']||_0x433ff1['author']!=_0x8b48eb)continue;if('formatBlock'!=_0x433ff1['type']||'tablePasteCell'!=_0x433ff1['subType'])continue;if(_0x433ff1['getRanges']()['every'](_0x174502=>_0x3510a2['some'](_0x3d944d=>_0x3d944d['containsRange'](_0x174502,!0x0)))){for(const _0x3f812b of _0x433ff1['getAllAdjacentSuggestions']())_0x3f812b['isInContent']&&(_0x3f812b['discard'](),_0x5514ef=!0x0);}}}return _0x5514ef;}),_0x144c6f['model']['document']['registerPostFixer'](_0x3ff1fe=>{const _0x16fbce=_0x144c6f['commands']['get']('redo');if(!_0x16fbce||!_0x16fbce['_createdBatches']['has'](_0x3ff1fe['batch']))return!0x1;let _0x2ff03f=!0x1;const _0x25e34b=_0x144c6f['plugins']['get']('Users')['me'],_0x45a2ad=_0x144c6f['model']['document']['differ']['getChanges'](),_0x450318=Array['from'](_0x144c6f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3ffbaf,data:_0x5d8eb2})=>{const {group:_0xec1370,subType:_0x5f24bf,authorId:_0x21a992}=_0x1d5c3a['_splitMarkerName'](_0x3ffbaf);return'suggestion'==_0xec1370&&'tablePaste'==_0x5f24bf&&_0x21a992==_0x25e34b['id']&&!_0x5d8eb2['oldRange'];});for(const _0x26cb67 of _0x45a2ad){if('insert'!=_0x26cb67['type']||'tableCellSuggestion'!=_0x26cb67['name']||0x1!=_0x26cb67['length'])continue;const _0x5a9b5a=_0x3ff1fe['createRange'](_0x26cb67['position'],_0x26cb67['position']['getShiftedBy'](0x1));if(!_0x450318['find'](({data:_0x38865a})=>_0x38865a['newRange']['isEqual'](_0x5a9b5a))){for(const {name:_0x4f6816,data:_0x463185}of _0x450318)if(_0x5a9b5a['containsRange'](_0x463185['newRange'])){_0x3ff1fe['updateMarker'](_0x4f6816,{'range':_0x5a9b5a}),_0x2ff03f=!0x0;break;}}}return _0x2ff03f;}),_0x144c6f['model']['document']['registerPostFixer'](_0x4a2dd8=>{let _0x44392c=!0x1;const _0x397698=_0x144c6f['plugins']['get']('Users')['me'],_0xaa2b63=_0x1d5c3a['getSuggestions']()['filter'](_0x475c65=>_0x475c65['isInContent']&&_0x475c65['author']==_0x397698),_0x549ff1=new Set(),_0x137260=new Set();for(const _0x47e8c4 of _0xaa2b63)if('tablePaste'==_0x47e8c4['subType'])for(const _0x569198 of _0x47e8c4['getMarkers']()){const _0xa15432=_0x569198['getRange']()['getContainedElement']();if(_0xa15432){if(_0xa15432['is']('element','tableCellSuggestion')&&De(_0xa15432)){_0x47e8c4['removeMarker'](_0x569198['name']),_0x549ff1['add'](_0xa15432),_0x44392c=!0x0;const _0x1ea32e=_0xa15432['nextSibling'],_0x587b5f=_0xa15432['previousSibling'],_0xd129fe=_0x1ea32e&&_0x1ea32e['is']('element','tableCellSuggestion'),_0x494988=_0x587b5f&&_0x587b5f['is']('element','tableCellSuggestion');_0xd129fe&&!_0x549ff1['has'](_0x1ea32e)&&_0x137260['add'](_0x1ea32e),_0x494988&&!_0x549ff1['has'](_0x587b5f)&&_0x137260['add'](_0x587b5f);}else _0xa15432['is']('element','paragraph')&&_0xa15432['isEmpty']&&(_0x47e8c4['removeMarker'](_0x569198['name']),_0x44392c=!0x0);}}else{if('tablePasteCell'==_0x47e8c4['subType']){if(!_0x47e8c4['attributes']||!_0x47e8c4['attributes']['tablePasteChainId'])continue;const _0x1c7eea=_0x47e8c4['attributes']['markerAttributes'];if(_0x1c7eea&&Object['keys'](_0x1c7eea)['length'])continue;const _0x97590=_0x47e8c4['attributes']['tablePasteChainId'];let _0x77c1=!0x0,_0x59958a=!0x0;for(const _0x1c85e0 of _0xaa2b63)if(_0x1c85e0['subType']&&_0x1c85e0['subType']['startsWith']('tablePaste')){if(!_0x1c85e0['attributes']['tablePasteChainId']){_0x59958a=!0x1;break;}if(_0x1c85e0['id']!=_0x47e8c4['id']&&_0x1c85e0['attributes']['tablePasteChainId']==_0x97590){_0x77c1=!0x1;break;}}_0x59958a&&_0x77c1&&(_0x47e8c4['removeMarkers'](),_0x44392c=!0x0);}}for(const _0x15dfcd of _0x549ff1)_0x4a2dd8['remove'](_0x15dfcd);for(const _0xe8a3d7 of _0x137260)_0x4a2dd8['unwrap'](_0xe8a3d7);return _0x44392c;}),_0x144c6f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4fbf68=>_0x926025(_0x4fbf68),'converterPriority':'high'}),_0x144c6f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x7de1b1,_0x13ddde)=>_0x13ddde['options']['showSuggestionHighlights']?_0x926025(_0x7de1b1,!0x1):null,'converterPriority':'high'});const _0xa27eda=_0x144c6f['editing']['view'];this['listenTo'](_0xa27eda['document'],'clipboardOutput',(_0x2119fc,_0x3bc8bd)=>{const _0x4137a9=[];for(const _0xf2cebe of _0xa27eda['createRangeIn'](_0x3bc8bd['content'])['getItems']())_0xf2cebe['is']('element','suggestion-td')&&_0x4137a9['push'](_0xf2cebe);_0xa27eda['change'](_0x34f97b=>{for(const _0x58d41f of _0x4137a9)_0x34f97b['move'](_0x34f97b['createRangeIn'](_0x58d41f),_0x34f97b['createPositionBefore'](_0x58d41f)),_0x34f97b['remove'](_0x58d41f);});});}}function De(_0x360f07){if(_0x360f07['isEmpty'])return!0x0;const _0x2c1878=_0x360f07['getChild'](0x0);return _0x2c1878['is']('element','paragraph')&&_0x2c1878['isEmpty'];}function He(_0x33a701,_0x193479={},_0x42d2d5){for(const {isAnchor:_0x456c39,cellHeight:_0x35c8ac,cellWidth:_0x3cb8bf}of _0x42d2d5['createTableWalker'](_0x33a701,{'includeAllSlots':!0x0,..._0x193479}))if(!_0x456c39||0x1!=_0x35c8ac||0x1!=_0x3cb8bf)return!0x1;return!0x0;}class Bt extends _0x145e1e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x349ab9=this['editor']['plugins']['get']('TrackChangesEditing');_0x349ab9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x349ab9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x349ab9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x349ab9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x349ab9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x349ab9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x558b54,_0x57cf75){const _0x17de52=this['editor']['plugins']['get']('TrackChangesEditing'),_0x425a61=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x50b443=_0x57cf75['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2a0b30=_0x425a61['getColumnGroupElement'](_0x50b443);let _0x56d073=_0x2a0b30?_0x425a61['getTableColumnsWidths'](_0x2a0b30):null,_0x4fb760=_0x50b443['getAttribute']('tableWidth')||null;const _0xa196f2=_0x57cf75['tableWidth']||_0x4fb760,_0x2c9d13=_0x57cf75['columnWidths']||_0x56d073,_0x3b9671=this['editor']['plugins']['get']('Users')['me'];for(const _0x210732 of _0x17de52['getSuggestions']()){const _0xab8ced=_0x210732['getContainedElement']();if('resizeTable'===_0x210732['subType']&&_0xab8ced===_0x50b443){_0x210732['author']!==_0x3b9671&&_0x210732['discard']();const _0x4d32d6=_0x210732['data']['commandParams'];_0x4fb760=_0x4d32d6[0x0]['tableWidth'],_0x56d073=_0x4d32d6[0x0]['columnWidths'];break;}}_0x558b54({'table':_0x50b443,'tableWidth':_0xa196f2,'columnWidths':_0x2c9d13}),_0x17de52['markBlockFormat'](_0x50b443,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4fb760,'columnWidths':_0x56d073}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x574c2f){if('formatBlock'!=_0x574c2f['type']&&'formatInline'!=_0x574c2f['type'])return;const {data:_0x326c12}=_0x574c2f;if(_0x326c12&&'resizeTable'===_0x326c12['formatGroupId']){const _0x6af694='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x6af694)};}}}class xt extends _0x145e1e{['afterInit'](){const _0x27e906=this['editor'];_0x27e906['plugins']['has']('Template')&&_0x27e906['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x145e1e{['afterInit'](){const _0x364f59=this['editor'];if(!_0x364f59['commands']['get']('insertTableOfContents'))return;_0x364f59['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xedb225=_0x364f59['plugins']['get']('TrackChangesEditing'),_0x136a6a=_0x364f59['locale'];_0xedb225['descriptionFactory']['registerElementLabel']('tableOfContents',_0x17459a=>c(_0x136a6a,'ELEMENT_TABLE_OF_CONTENTS',_0x17459a));}}class Rt extends _0x145e1e{['afterInit'](){const _0x12b52b=this['editor'];if(!_0x12b52b['plugins']['has']('Title'))return;const _0x48f9e9=_0x12b52b['plugins']['get']('TrackChangesEditing');_0x48f9e9['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x12b52b['locale'],'ELEMENT_TITLE')),_0x12b52b['model']['document']['registerPostFixer'](_0x65ac4f=>{let _0x3f03a3=!0x1;const _0x18b733=Array['from'](_0x12b52b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x132550,data:_0x133c82}of _0x18b733){const {group:_0x1abf43}=_0x48f9e9['_splitMarkerName'](_0x132550);if('suggestion'!==_0x1abf43||!_0x133c82['newRange'])continue;const _0x45c3ab=_0x133c82['newRange'],_0x1dd8c8=_0x45c3ab['end']['nodeBefore'];if(!_0x1dd8c8||!_0x1dd8c8['is']('element','title-content'))continue;if(!_0x45c3ab['start']['isTouching'](_0x45c3ab['end']))continue;const _0x4e0dff=_0x12b52b['model']['schema']['getNearestSelectionRange'](_0x45c3ab['end'],'forward');if(_0x4e0dff&&_0x4e0dff['isCollapsed']){const _0x1c4435=_0x65ac4f['createRange'](_0x45c3ab['start'],_0x4e0dff['start']);_0x1c4435['isEqual'](_0x45c3ab)||(_0x65ac4f['updateMarker'](_0x132550,{'range':_0x1c4435}),_0x3f03a3=!0x0);}_0x3f03a3||(_0x65ac4f['removeMarker'](_0x132550),_0x3f03a3=!0x0);}return _0x3f03a3;});}}class Tt extends _0x145e1e{['afterInit'](){const _0x47704d=this['editor'],_0x2f5acb=_0x47704d['plugins']['get']('TrackChangesEditing');_0x47704d['plugins']['has']('Uploadcare')&&(_0x2f5acb['enableCommand']('uploadcare'),_0x47704d['plugins']['has']('UploadcareImageEdit')&&(_0x2f5acb['enableCommand']('uploadcareImageEdit'),_0x2f5acb['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2f5acb['registerBlockAttribute']('uploadcareImageId'),_0x2f5acb['descriptionFactory']['registerDescriptionCallback'](_0xd5ad62=>{if('attribute'!=_0xd5ad62['type'])return;const {data:_0xcbc54}=_0xd5ad62;return _0xcbc54&&'uploadcareImageId'==_0xcbc54['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x145e1e{['afterInit'](){const _0x5091a3=this['editor'],_0x33f6e6=_0x5091a3['plugins']['get']('TrackChangesEditing');_0x5091a3['plugins']['has']('UndoEditing')&&(_0x33f6e6['enableCommand']('undo'),_0x33f6e6['enableCommand']('redo'));}}class Ut extends _0x145e1e{static get['requires'](){return[Ct];}['afterInit'](){const _0x223298=this['editor'];if(!_0x223298['plugins']['has']('TableCaptionEditing'))return;_0x223298['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x145e1e{['tableProperties'];['tableCellProperties'];constructor(_0x48679f){super(_0x48679f),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x123d5e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x32ea3d of this['tableProperties'])_0x123d5e['enableCommand'](_0x32ea3d,(_0x47ed8e,_0x24e800)=>{const _0x17f18c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x32ea3d,[_0x17f18c],this['tableProperties'],'tableProperties',_0x47ed8e,_0x24e800);});_0x123d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x123d5e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x123d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x12005d,_0x377c64)=>this['handleDiscardAction'](this['tableProperties'],_0x12005d,_0x377c64)),_0x123d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xbfe446 of this['tableCellProperties'])_0x123d5e['enableCommand'](_0xbfe446,(_0xcd395f,_0x538cec)=>{const _0x3f9c68=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xbfe446,_0x3f9c68,this['tableCellProperties'],'tableCellProperties',_0xcd395f,_0x538cec);});_0x123d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x123d5e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x123d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x163116,_0x32fd25)=>this['handleDiscardAction'](this['tableCellProperties'],_0x163116,_0x32fd25)),_0x123d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x123d5e['descriptionFactory']['registerDescriptionCallback'](_0x44848c=>this['handleSuggestionDescription'](_0x44848c));}['_handlePropertyChange'](_0x4275b6,_0x32ac90,_0x29d0c9,_0x39a0b6,_0x155163,_0xf27304){const _0xe8540d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xf27304['batch'],()=>{for(const _0x3061cc of _0x32ac90){if(this['_getSuggestion'](_0x3061cc,_0x39a0b6))_0x155163(_0xf27304);else{const _0x2f7ec4={};for(const _0x132b2f of _0x29d0c9){const _0x51b1bc=_0x3061cc['getAttribute'](_0x132b2f);void 0x0!==_0x51b1bc&&(_0x2f7ec4[_0x132b2f]=_0x51b1bc);}_0x155163(_0xf27304),_0xe8540d['markBlockFormat'](_0x3061cc,{'commandParams':[_0x2f7ec4]},[],_0x39a0b6);}}});}['handleDiscardAction'](_0x1330ab,_0x52ea8d,_0x59bf97){const _0x1d26fe=_0x52ea8d[0x0]['start']['nodeAfter'],_0x19ecf1=_0x59bf97['commandParams'][0x0];this['editor']['model']['change'](_0x2340b1=>{for(const _0x1c9dea of _0x1330ab)void 0x0!==_0x19ecf1[_0x1c9dea]?_0x2340b1['setAttribute'](_0x1c9dea,_0x19ecf1[_0x1c9dea],_0x1d26fe):_0x2340b1['removeAttribute'](_0x1c9dea,_0x1d26fe);});}['handleSuggestionDescription'](_0x4e2827){if(_0x4e2827['data'])switch(_0x4e2827['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4d3f93,_0x221de3){const _0x14ecd5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x24c85d of _0x14ecd5['getSuggestions']({'skipNotAttached':!0x0})){const _0x5c9a53=_0x24c85d['getContainedElement']();if(_0x24c85d['subType']===_0x221de3&&_0x5c9a53===_0x4d3f93)return _0x24c85d;}return null;}}const u='$elementName';class p extends _0x145e1e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x52a7a7,_0x5aa78c,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x307d6f){super(_0x307d6f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x34e852,_0x160fed,_0x5db518,_0x5a9279)=>{this['_model']['change'](()=>{for(const _0x190cec of[..._0x5a9279,..._0x5db518])this['_model']['markers']['has'](_0x190cec)&&_0x307d6f['editing']['reconvertMarker'](_0x190cec);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x307d6f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x307d6f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x307d6f['config']['get']('trackChanges.trackFormatChanges'),_0x307d6f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x307d6f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x307d6f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x655e49=this['editor'],_0x25c6b1=(_0x485dd5,_0x39a3ed)=>{if('attribute'!=_0x485dd5)return'ck-suggestion-marker-'+_0x485dd5;const _0x63bdd3=_0x39a3ed['split']('|')[0x0];return this['_isBlockAttribute'](_0x63bdd3)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x655e49['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x384dba=>{const {id:_0x871552,authorId:_0x13fde0,type:_0x156109,subType:_0x4ffced}=this['_splitMarkerName'](_0x384dba['markerName']),_0x44811d=['ck-suggestion-marker',_0x25c6b1(_0x156109,_0x4ffced)];let _0x509a98=0xbb8;return this['activeMarkers']['includes'](_0x384dba['markerName'])&&(_0x44811d['push']('ck-suggestion-marker--active'),_0x509a98=0xbc2),'deletion'==_0x156109&&(_0x509a98+=0x5),{'classes':_0x44811d,'attributes':{'data-suggestion':_0x871552,'data-author-id':_0x13fde0},'priority':_0x509a98};}}),_0x655e49['conversion']['for']('dataDowncast')['add'](_0x54c8a1=>{_0x54c8a1['on']('addMarker:suggestion',(_0x3517dc,_0x157111,_0x5563f7)=>{if(!_0x5563f7['options']['showSuggestionHighlights'])return;const _0x43849e=_0x157111['item'];if(!_0x43849e)return;const _0x1c33b3=_0x5563f7['mapper']['toViewElement'](_0x43849e);_0x655e49['model']['schema']['isObject'](_0x43849e)&&_0x1c33b3&&!_0x1c33b3['getCustomProperty']('widget')&&_0x1c33b3['is']('containerElement')&&_0x919928(_0x1c33b3,_0x5563f7['writer']);},{'priority':'high'});}),_0x655e49['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x326aa1,_0x866fa6)=>{if(!_0x866fa6['options']['showSuggestionHighlights'])return null;const {id:_0x1604d5,authorId:_0x39bd1e,type:_0x35e6eb,subType:_0x2f3a41}=this['_splitMarkerName'](_0x326aa1['markerName']);return{'classes':['ck-suggestion-marker',_0x25c6b1(_0x35e6eb,_0x2f3a41)],'priority':0xbb8,'attributes':{'data-suggestion':_0x1604d5,'data-author-id':_0x39bd1e}};}});const _0x5a088c=({showActiveMarkers:_0x1d1387=!0x0,isAttributeSuggestion:_0x474c99=!0x1}={})=>(_0x7cc745,_0x141650,_0x2f243b)=>{if(!_0x141650['item'])return;const {id:_0x1c9f61,authorId:_0x2c4d17}=this['_splitMarkerName'](_0x141650['markerName']);if(_0x474c99){const _0x38a34f=this['_suggestions']['get'](_0x1c9f61),_0x26faa2=this['_getAttributeKey'](_0x38a34f);if(!this['_isBlockAttribute'](_0x26faa2))return;}if(_0x141650['item']['is']('selection'))return void _0x2f243b['consumable']['consume'](_0x141650['item'],_0x7cc745['name']);const _0x5e784f=_0x2f243b['mapper']['toViewElement'](_0x141650['item']);if(_0x141650['item']['is']('element')&&_0x655e49['model']['schema']['isBlock'](_0x141650['item'])&&!_0x5e784f['getCustomProperty']('addHighlight')){_0x2f243b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5e784f),_0x2f243b['writer']['setAttribute']('data-suggestion',_0x1c9f61,_0x5e784f),_0x2f243b['writer']['setAttribute']('data-author-id',_0x2c4d17,_0x5e784f),_0x2f243b['mapper']['bindElementToMarker'](_0x5e784f,_0x141650['markerName']),_0x1d1387&&(this['activeMarkers']['includes'](_0x141650['markerName'])?_0x2f243b['writer']['addClass']('ck-suggestion-marker--active',_0x5e784f):_0x2f243b['writer']['removeClass']('ck-suggestion-marker--active',_0x5e784f));for(const _0x3c03a2 of _0x655e49['model']['createRangeIn'](_0x141650['item'])['getItems']())_0x2f243b['consumable']['consume'](_0x3c03a2,_0x7cc745['name']);_0x2f243b['consumable']['consume'](_0x141650['item'],_0x7cc745['name']);}};_0x655e49['conversion']['for']('dataDowncast')['add'](_0x372524=>{_0x372524['on']('addMarker:suggestion:formatBlock',(_0x2f2e9e,_0x23bb7d,_0x15e6c8)=>{_0x15e6c8['options']['showSuggestionHighlights']&&_0x5a088c({'showActiveMarkers':!0x1})(_0x2f2e9e,_0x23bb7d,_0x15e6c8);},{'priority':'highest'});}),_0x655e49['conversion']['for']('dataDowncast')['add'](_0x355330=>{_0x355330['on']('addMarker:suggestion:attribute',(_0x214530,_0x2d9854,_0xcd9d59)=>{_0xcd9d59['options']['showSuggestionHighlights']&&_0x5a088c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x214530,_0x2d9854,_0xcd9d59);},{'priority':'highest'});}),_0x655e49['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x474055,_0x38bd44)=>{if(_0x38bd44['options']['showSuggestionHighlights']){const {id:_0x3dea14,authorId:_0x21a05e}=this['_splitMarkerName'](_0x474055);return _0x474055['includes'](':split')||_0x474055['includes'](':merge')?{'group':'suggestion','name':_0x474055['substr'](0xb),'attributes':{'data-suggestion':_0x3dea14,'data-author-id':_0x21a05e}}:null;}return{'group':'suggestion','name':_0x474055['substr'](0xb)};}}),_0x655e49['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x11bdc8,{writer:_0x3cd646})=>{let _0x267e9f='suggestion:'+_0x11bdc8['getAttribute']('suggestion-type')+':'+_0x11bdc8['getAttribute']('id');return _0x11bdc8['getAttribute']('marker-count')&&(_0x267e9f+=':'+_0x11bdc8['getAttribute']('marker-count')),_0x3cd646['createElement']('$marker',{'data-name':_0x267e9f});}}),_0x655e49['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x655e49['conversion']['for']('editingDowncast')['add'](_0x40205e=>{_0x40205e['on']('addMarker:suggestion:formatBlock',_0x5a088c(),{'priority':'high'});}),_0x655e49['conversion']['for']('editingDowncast')['add'](_0x434887=>{_0x434887['on']('addMarker:suggestion:attribute',_0x5a088c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x655e49['conversion']['for']('editingDowncast')['add'](_0xc5f3cb=>{_0xc5f3cb['on']('removeMarker:suggestion:formatBlock',(_0xd64937,_0x24efbb,_0x2884e5)=>{const _0x25a198=_0x2884e5['mapper']['markerNameToElements'](_0x24efbb['markerName']);if(_0x25a198){for(const _0x431d31 of _0x25a198)_0x431d31['getCustomProperty']('addHighlight')||(_0x2884e5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x431d31),_0x2884e5['writer']['removeAttribute']('data-suggestion',_0x431d31),_0x2884e5['writer']['removeAttribute']('data-author-id',_0x431d31),_0x2884e5['mapper']['unbindElementFromMarkerName'](_0x431d31,_0x24efbb['markerName']));}},{'priority':'high'});}),_0x655e49['conversion']['for']('editingDowncast')['add'](_0x31b2b0=>{_0x31b2b0['on']('removeMarker:suggestion:attribute',(_0x9d0986,_0x4ba937,_0x93407b)=>{const _0x3cdead=_0x93407b['mapper']['markerNameToElements'](_0x4ba937['markerName']);if(!_0x3cdead)return;const {id:_0x1259c2}=this['_splitMarkerName'](_0x4ba937['markerName']),_0x5d708c=this['_suggestions']['get'](_0x1259c2),_0x3a3a2a=this['_getAttributeKey'](_0x5d708c);if(this['_isBlockAttribute'](_0x3a3a2a)){for(const _0x876321 of _0x3cdead)_0x876321['getCustomProperty']('addHighlight')||(_0x93407b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x876321),_0x93407b['writer']['removeAttribute']('data-suggestion',_0x876321),_0x93407b['writer']['removeAttribute']('data-author-id',_0x876321),_0x93407b['mapper']['unbindElementFromMarkerName'](_0x876321,_0x4ba937['markerName']));}},{'priority':'high'});}),_0x655e49['model']['document']['registerPostFixer'](_0x275251=>{let _0x4bceed=!0x1;const _0x131490=Array['from'](_0x655e49['model']['document']['differ']['getChangedMarkers']()),_0x8a7c06=new Set();for(const {name:_0x28b4d5,data:_0x4c1c90}of _0x131490){const {group:_0xc4e650,type:_0x479512,subType:_0x324319,id:_0x5df99e}=this['_splitMarkerName'](_0x28b4d5);if('suggestion'!==_0xc4e650)continue;const _0x774ab4=this['_suggestions']['get'](_0x5df99e);if(null!=_0x4c1c90['newRange']){'formatInline'==_0x479512&&(_0x4bceed=_0x4bceed||Jt(_0x4c1c90['newRange'],_0x28b4d5,_0x275251,_0x655e49['model']['schema']));const _0x16e2c4='attribute'==_0x479512&&this['_isBlockAttribute'](_0x324319['split']('|')[0x0]);if(_0x4c1c90['newRange']['isCollapsed']||'$graveyard'==_0x4c1c90['newRange']['root']['rootName']||'formatBlock'==_0x479512&&!Ht(_0x4c1c90['newRange'])||_0x16e2c4&&!Ht(_0x4c1c90['newRange'])||'deletion'==_0x479512&&!qt(_0x4c1c90['newRange']))_0x275251['removeMarker'](_0x28b4d5),_0x4bceed=!0x0;else{if(!_0x774ab4||!_0x774ab4['isInContent'])continue;if(_0x4c1c90['newRange']&&_0x4c1c90['oldRange']&&_0x4c1c90['newRange']['isEqual'](_0x4c1c90['oldRange']))continue;_0x8a7c06['add'](_0x774ab4);}}}return _0x8a7c06['size']>0x0&&(_0x4bceed=!!this['_joinWithAdjacentSuggestions'](_0x8a7c06)||_0x4bceed),_0x4bceed;}),_0x655e49['model']['document']['registerPostFixer'](_0x43b3bc=>{let _0x28d2db=!0x1;for(const _0x2206e2 of _0x655e49['model']['document']['differ']['getChanges']())if('insert'==_0x2206e2['type'])for(const _0x4d5431 of this['_suggestions']['values']()){if(_0x4d5431['isMultiRange']||!_0x4d5431['isInContent'])continue;const _0x147578='formatBlock'==_0x4d5431['type'],_0x2f2494=this['_getAttributeKey'](_0x4d5431),_0x18792e=_0x2f2494&&this['_isBlockAttribute'](_0x2f2494);if(!_0x147578&&!_0x18792e)continue;const _0x346da0=_0x4d5431['getFirstRange']();if(_0x346da0['start']['parent']!=_0x346da0['end']['parent']&&!_0x346da0['end']['isAtEnd']){const _0x1edf29=_0x655e49['model']['createPositionAt'](_0x346da0['start']['nodeAfter'],'end'),_0xa3a1da=_0x655e49['model']['createRange'](_0x346da0['start'],_0x1edf29);_0x43b3bc['updateMarker'](_0x4d5431['getFirstMarker'](),{'range':_0xa3a1da}),_0x28d2db=!0x0;}}return _0x28d2db;}),_0x655e49['model']['document']['registerPostFixer'](_0x59fb7f=>this['_processAttributeChanges'](_0x59fb7f)),_0x655e49['model']['document']['registerPostFixer'](_0x2746e1=>!_0x2746e1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2746e1)),_0x655e49['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x655e49['model']['document']['on']('change:data',(_0x332e7c,_0x59a751)=>{if(!_0x59a751['isLocal']||_0x59a751['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x43a160=_0x655e49['model']['document']['differ']['getChanges']();if(0x0==_0x43a160['length'])return;const _0x193d7e=[],_0x306221=_0x43a160['filter'](_0xf76d86=>'attribute'==_0xf76d86['type']),_0x4d6820=_0x43a160['filter'](_0x3690e4=>'insert'==_0x3690e4['type']&&'$text'!=_0x3690e4['name']);for(const _0x44b095 of _0x306221)this['_isRegisteredAttribute'](_0x44b095['attributeKey'])&&_0x193d7e['push']({'key':_0x44b095['attributeKey'],'newValue':_0x44b095['attributeNewValue'],'oldValue':_0x44b095['attributeOldValue'],'range':zt(_0x44b095['range'],_0x655e49['model'])});for(const _0x2f9d4 of _0x4d6820){if('rename'!=_0x2f9d4['action']&&'refresh'!=_0x2f9d4['action'])continue;const _0x4f5c17=Wt(_0x2f9d4['position']['nodeAfter'],_0x655e49['model']),_0x540eac=_0x2f9d4['before'];'rename'==_0x2f9d4['action']&&_0x193d7e['push']({'key':u,'newValue':_0x2f9d4['name'],'oldValue':_0x540eac['name'],'range':_0x4f5c17});for(const [_0x1d51bd,_0x580a5e]of _0x540eac['attributes']){if(!this['_isRegisteredAttribute'](_0x1d51bd))continue;const _0x398e11=_0x2f9d4['attributes']['get'](_0x1d51bd);_0x580a5e!==_0x398e11&&_0x193d7e['push']({'key':_0x1d51bd,'newValue':_0x398e11,'oldValue':_0x580a5e,'range':_0x4f5c17});}for(const [_0x486763,_0x1b99a0]of _0x2f9d4['attributes'])this['_isRegisteredAttribute'](_0x486763)&&(_0x540eac['attributes']['has'](_0x486763)||_0x193d7e['push']({'key':_0x486763,'newValue':_0x1b99a0,'oldValue':null,'range':_0x4f5c17}));}0x0!=_0x193d7e['length']&&_0x655e49['model']['enqueueChange'](_0x59a751,_0x5ae274=>{const _0x341a66=_0xdf79fb();for(const {range:_0xe2ad2,key:_0x4069f4,oldValue:_0x48a2bb,newValue:_0x517046}of _0x193d7e)this['markAttributeChange'](_0xe2ad2,_0x4069f4,_0x48a2bb,_0x517046,{'groupId':_0x341a66});this['_reduceExistingSuggestions'](_0x5ae274,_0x193d7e);});},{'priority':'lowest'}),_0x655e49['model']['markers']['on']('update:suggestion',(_0x314e6c,_0x36d509,_0x23e4c9)=>{if(null==_0x23e4c9){const {id:_0x5f2aa3}=this['_splitMarkerName'](_0x36d509['name']),_0x42179d=this['_suggestions']['get'](_0x5f2aa3);_0x42179d&&_0x42179d['addMarkerName'](_0x36d509['name']);}}),_0x655e49['model']['document']['on']('change:data',()=>{const _0x54de87=Array['from'](_0x655e49['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2ff02a=>'suggestion'===this['_splitMarkerName'](_0x2ff02a['name'])['group']);if(0x0===_0x54de87['length'])return;_0x54de87['sort']((_0x49dbad,_0x48064c)=>{const _0x5727dc=_0x49dbad['data']['oldRange'],_0xe9eee8=_0x48064c['data']['oldRange'];return null===_0x5727dc&&null===_0xe9eee8?0x0:null===_0x5727dc&&null!==_0xe9eee8?-0x1:null!==_0x5727dc&&null===_0xe9eee8?0x1:_0x5727dc['start']['isBefore'](_0xe9eee8['start'])?-0x1:0x1;});const _0x472c04=new Set(),_0x44ab9b=new Set();for(const {name:_0x35c38c,data:_0x32c610}of _0x54de87){const {id:_0x2471a3}=this['_splitMarkerName'](_0x35c38c);if(null===_0x32c610['oldRange']){const _0x2e896d=this['_handleNewSuggestionMarker'](_0x35c38c);_0x44ab9b['add'](_0x2e896d);}else{const _0x3ca50d=this['_suggestions']['get'](_0x2471a3);null!==_0x32c610['newRange']||_0x3ca50d['isInContent']?(_0x472c04['add'](_0x3ca50d['head']),_0x44ab9b['add'](_0x3ca50d)):this['_removeSuggestion'](_0x3ca50d);}}_0x44ab9b['size']>0x0&&this['_refreshSuggestionsChain'](_0x44ab9b);for(const _0x59fd3f of _0x472c04)this['fire']('suggestionChanged',_0x59fd3f);}),_0x655e49['model']['on']('applyOperation',(_0x5e5c67,_0xe41a81)=>{const _0x346498=_0xe41a81[0x0];if(!this['_suggestions']['size'])return;if(!_0x346498['isDocumentOperation'])return;if(_0x346498['batch']['isUndo']||!_0x346498['batch']['isLocal'])return;let _0xf22d4d,_0x323c86;switch(_0x346498['type']){case'insert':_0xf22d4d=_0x655e49['model']['createPositionAt'](_0x346498['position']),_0x323c86=_0xf22d4d['getShiftedBy'](_0x346498['howMany']);break;case'split':_0xf22d4d=_0x655e49['model']['createPositionAt'](_0x346498['splitPosition']),_0x323c86=_0x655e49['model']['createPositionAt'](_0x346498['moveTargetPosition']);break;case'move':_0xf22d4d=_0x655e49['model']['createPositionAt'](_0x346498['targetPosition']),_0x323c86=_0xf22d4d['getShiftedBy'](_0x346498['howMany']);break;default:return;}const _0x2330e2=_0x655e49['model']['createRange'](_0xf22d4d,_0x323c86);_0x655e49['model']['change'](()=>{for(const {suggestion:_0x22f409,meta:_0x1271c2}of this['_findSuggestions'](_0x2330e2)){if(_0x22f409['isMultiRange'])continue;if('formatInline'==_0x22f409['type'])continue;const _0x25524d=this['_getAttributeKey'](_0x22f409);if(_0x25524d&&this['_isBlockAttribute'](_0x25524d)&&'split'!=_0x346498['type'])continue;const _0x4271fd=_0x22f409['data']&&_0x22f409['data']['multipleBlocks'];('formatBlock'!=_0x22f409['type']||'split'==_0x346498['type']&&!_0x4271fd)&&(_0x1271c2['containsRangeInObject']||'insertion'==_0x22f409['type']&&_0x1271c2['isOwn']||_0x22f409['getFirstRange']()['containsRange'](_0x2330e2)&&this['_breakSuggestionMarker'](_0x22f409,_0xf22d4d,_0x323c86));}});},{'priority':'lowest'}),_0x655e49['model']['on']('deleteContent',(_0x23fdd8,_0x5b4bae)=>{const _0x626fa=_0x5b4bae[0x0],_0x4fd2ca=_0x5b4bae[0x1];if(_0x4fd2ca&&_0x4fd2ca['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x626fa['isCollapsed'])return;const _0x16bf48=_0x655e49['model']['schema'],{start:_0x3af2ea,end:_0x5940e0}=_0x626fa['getFirstRange'](),_0x27a10e=_0x3af2ea['nodeAfter']&&_0x16bf48['isLimit'](_0x3af2ea['nodeAfter'])?null:_0x16bf48['getNearestSelectionRange'](_0x3af2ea,'forward'),_0x1466b1=_0x5940e0['nodeBefore']&&_0x16bf48['isLimit'](_0x5940e0['nodeBefore'])?null:_0x16bf48['getNearestSelectionRange'](_0x5940e0,'backward'),_0x7d1697=_0x655e49['model']['createRange'](_0x27a10e?_0x27a10e['start']:_0x3af2ea,_0x1466b1?_0x1466b1['end']:_0x5940e0);_0x655e49['model']['change'](_0x263d48=>{this['markDeletion'](_0x7d1697);const _0x487251=_0x655e49['model']['schema']['getNearestSelectionRange'](_0x7d1697['start']);_0x626fa['is']('documentSelection')?_0x263d48['setSelection'](_0x487251):_0x626fa['setTo'](_0x487251);}),_0x23fdd8['stop']();},{'priority':_0x4266f3['normal']+0xa}),_0x655e49['model']['on']('insertContent',(_0x5b5360,_0x2a96e2)=>{const _0xc1ab6f=_0x2a96e2[_0x2a96e2['length']-0x1];_0xc1ab6f&&_0xc1ab6f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x655e49['model']['change'](()=>{let _0x2a808a=_0x655e49['model']['insertContent'](_0x2a96e2[0x0],_0x2a96e2[0x1],_0x2a96e2[0x2],{'forceDefaultExecution':!0x0});if(!_0x2a808a)return;_0x5b5360['return']=_0x2a808a['clone']();const _0x46397b=_0x2a808a['end']['nodeBefore'],_0xc6de11=_0x655e49['model']['schema'];_0x46397b&&_0xc6de11['isBlock'](_0x46397b)&&!_0xc6de11['isObject'](_0x46397b)&&(_0x2a808a=_0x655e49['model']['createRange'](_0x2a808a['start'],_0x655e49['model']['createPositionAt'](_0x46397b,'end'))),this['markInsertion'](_0x2a808a);}),_0x5b5360['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x199f05=new x(_0x655e49,this['_suggestions']);_0x655e49['commands']['add']('acceptSuggestion',_0x199f05),this['enableCommand']('acceptSuggestion');const _0x4d2c21=new O(_0x655e49,this['_suggestions']);_0x655e49['commands']['add']('discardSuggestion',_0x4d2c21),this['enableCommand']('discardSuggestion'),_0x655e49['commands']['add']('acceptAllSuggestions',new R(_0x655e49,_0x199f05,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x655e49['commands']['add']('discardAllSuggestions',new R(_0x655e49,_0x4d2c21,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x655e49['commands']['add']('acceptSelectedSuggestions',new E(_0x655e49,_0x199f05,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x655e49['commands']['add']('discardSelectedSuggestions',new E(_0x655e49,_0x4d2c21,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1ddecd=_0x655e49['plugins']['get']('CommentsRepository');this['listenTo'](_0x1ddecd,'addComment',(_0x4491c0,{threadId:_0x466943})=>{const _0x582df3=this['_suggestions']['get'](_0x466943);_0x582df3&&_0x582df3['commentThread']&&0x1===_0x582df3['commentThread']['length']&&this['_updateSuggestionData'](_0x466943,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1ddecd,'removeComment',(_0x223914,{threadId:_0x556f35})=>{const _0x1f010b=this['_suggestions']['get'](_0x556f35);_0x1f010b&&_0x1f010b['commentThread']&&!_0x1f010b['commentThread']['length']&&this['_updateSuggestionData'](_0x556f35,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4dc59b){const _0x4fcc4a=_0x5e99ab([0x55,0x75,0x68,0x64,0x31,0x77,0x47,0x49,0x50,0x65,0x4e,0x6d,0x38,0x66,0x67,0x4d,0x63,0x59,0x39,0x48,0x70,0x53,0x69,0x4b,0x42,0x35,0x6b,0x74,0x32,0x44,0x36,0x52,0x78,0x45,0x6e,0x79,0x30,0x62,0x6f,0x57,0x4f,0x76,0x51,0x4a,0x37,0x46,0x6c,0x71,0x54,0x61,0x5a,0x7a,0x4c,0x72,0x56,0x58,0x6a,0x34,0x43,0x33,0x73,0x41]),_0xac080d=0x6f1e81d5,_0x8b3cca=0x6f19ea7d^_0xac080d,_0x56da54=window[_0x5e99ab([0x44,0x61,0x74,0x65])][_0x5e99ab([0x6e,0x6f,0x77])](),_0x6036e6=_0x4dc59b[_0x5e99ab([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x578084=new window[(_0x5e99ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x443aff=>{_0x6036e6[_0x5e99ab([0x6f,0x6e,0x63,0x65])](_0x5e99ab([0x72,0x65,0x61,0x64,0x79]),_0x443aff);}),_0x239906={[_0x5e99ab([0x6b,0x74,0x79])]:_0x5e99ab([0x45,0x43]),[_0x5e99ab([0x75,0x73,0x65])]:_0x5e99ab([0x73,0x69,0x67]),[_0x5e99ab([0x63,0x72,0x76])]:_0x5e99ab([0x50,0x2d,0x32,0x35,0x36]),[_0x5e99ab([0x78])]:_0x5e99ab([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]),[_0x5e99ab([0x79])]:_0x5e99ab([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]),[_0x5e99ab([0x61,0x6c,0x67])]:_0x5e99ab([0x45,0x53,0x32,0x35,0x36])},_0x4ee418=_0x6036e6[_0x5e99ab([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e99ab([0x67,0x65,0x74])](_0x5e99ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7644ff(){let _0x2663fc,_0x14b6a9=null,_0x6d6f47=null;try{if(_0x4ee418==_0x5e99ab([0x47,0x50,0x4c]))return _0x5e99ab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2663fc=_0x6f2e21(),!_0x2663fc)return _0x5e99ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2663fc[_0x5e99ab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x6d6f47=_0x492153(_0x2663fc[_0x5e99ab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2663fc[_0x5e99ab([0x6a,0x74,0x69])])),await _0x193e71()?_0x323999()?_0x5f3303()?_0x5e99ab([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x51aab1()?(_0x2663fc[_0x5e99ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e99ab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x14b6a9=_0x527fbb(_0x5e99ab([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2663fc[_0x5e99ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e99ab([0x74,0x72,0x69,0x61,0x6c])&&(_0x14b6a9=_0x527fbb(_0x5e99ab([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1aa5b3()):_0x5e99ab([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e99ab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e99ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e99ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5f3303(){const _0x3ff203=[_0x5e99ab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e99ab([0x74,0x72,0x69,0x61,0x6c])][_0x5e99ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2663fc[_0x5e99ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56da54/0x3e8:0xe10*_0x8b3cca;return _0x2663fc[_0x5e99ab([0x65,0x78,0x70])]<_0x3ff203;}function _0x323999(){const _0x2fae50=_0x2663fc[_0x5e99ab([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2fae50)return!0x1;if(_0x2fae50[_0x5e99ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e99ab([0x2a])))return!0x0;if(_0x2fae50[_0x5e99ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e99ab([0x54,0x43])))return!0x0;if(_0x2fae50[_0x5e99ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e99ab([0x52,0x54,0x43]))){if(_0x3b8b18())return!0x0;if(_0x721986()||_0x4bab6b())return!0x0;}return!0x1;}function _0x51aab1(){const _0x5a8bf4=_0x2663fc[_0x5e99ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a8bf4||0x0==_0x5a8bf4[_0x5e99ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e7347}=new URL(window[_0x5e99ab([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a8bf4[_0x5e99ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e7347))return!0x0;const _0x389b18=_0x4e7347[_0x5e99ab([0x73,0x70,0x6c,0x69,0x74])](_0x5e99ab([0x2e]));return _0x5a8bf4[_0x5e99ab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x115fce=>_0x115fce[_0x5e99ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e99ab([0x2a])))[_0x5e99ab([0x6d,0x61,0x70])](_0x530978=>_0x530978[_0x5e99ab([0x73,0x70,0x6c,0x69,0x74])](_0x5e99ab([0x2e])))[_0x5e99ab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49c5b6=>_0x49c5b6[_0x5e99ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x389b18[_0x5e99ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e99ab([0x6d,0x61,0x70])](_0x5961d5=>Array(_0x389b18[_0x5e99ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5961d5[_0x5e99ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e99ab([0x66,0x69,0x6c,0x6c])](_0x5961d5[0x0]===_0x5e99ab([0x2a])?_0x5e99ab([0x2a]):'')[_0x5e99ab([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5961d5))[_0x5e99ab([0x73,0x6f,0x6d,0x65])](_0x214748=>_0x389b18[_0x5e99ab([0x65,0x76,0x65,0x72,0x79])]((_0x5e17ba,_0x388088)=>_0x214748[_0x388088]===_0x5e17ba||_0x214748[_0x388088]===_0x5e99ab([0x2a])));}function _0x1aa5b3(){return _0x14b6a9&&_0x6d6f47?new window[(_0x5e99ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e1ec3,_0x242d64)=>{_0x14b6a9[_0x5e99ab([0x74,0x68,0x65,0x6e])](_0x5e1ec3,_0x242d64),_0x6d6f47[_0x5e99ab([0x74,0x68,0x65,0x6e])](_0x435a51=>{_0x435a51!=_0x5e99ab([0x56,0x61,0x6c,0x69,0x64])&&_0x5e1ec3(_0x435a51);},_0x242d64);}):_0x14b6a9||_0x6d6f47||_0x5e99ab([0x56,0x61,0x6c,0x69,0x64]);}}function _0x492153(_0x508690,_0x12da70){return new window[(_0x5e99ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31ca66=>{if(_0x554a36())return _0x31ca66(_0x5e99ab([0x56,0x61,0x6c,0x69,0x64]));_0x6af0ea(),_0x6036e6[_0x5e99ab([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e99ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36f79b=!0x1;const _0x566f04=_0xdf79fb();function _0x5071c6(_0x321d24){return!!_0x321d24&&(typeof _0x321d24===_0x5e99ab([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x321d24===_0x5e99ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x321d24[_0x5e99ab([0x74,0x68,0x65,0x6e])]===_0x5e99ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x321d24[_0x5e99ab([0x63,0x61,0x74,0x63,0x68])]===_0x5e99ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x31b10e(_0xf6ad2e){_0xe24f5a(_0xf6ad2e)[_0x5e99ab([0x74,0x68,0x65,0x6e])](_0x463eae=>{if(!_0x463eae||_0x463eae[_0x5e99ab([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e99ab([0x6f,0x6b]))return _0x5e99ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ce21a(_0x592e6e(_0x566f04+_0x12da70))!=_0x463eae[_0x5e99ab([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e99ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e99ab([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e99ab([0x74,0x68,0x65,0x6e])](_0x1c6423=>(_0x48fc00(),_0x1c6423),()=>{const _0x338d47=_0x21e732();return null==_0x338d47?(_0x48fc00(),_0x5e99ab([0x56,0x61,0x6c,0x69,0x64])):_0x5e99ab(_0x56da54-_0x338d47>(0x4b1205d5^_0xac080d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e99ab([0x74,0x68,0x65,0x6e])](_0x31ca66)[_0x5e99ab([0x63,0x61,0x74,0x63,0x68])](()=>{_0x31ca66(_0x5e99ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e8ae6=0x6f286f55^_0xac080d;function _0x48fc00(){const _0x54c92c=_0x5e99ab([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ce21a(_0x592e6e(_0x508690)),_0x469285=_0x236c1e(_0x1ce21a(window[_0x5e99ab([0x4d,0x61,0x74,0x68])][_0x5e99ab([0x63,0x65,0x69,0x6c])](_0x56da54/_0x3e8ae6)));window[_0x5e99ab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e99ab([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54c92c,_0x469285);}function _0x21e732(){const _0x12f5b6=_0x5e99ab([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ce21a(_0x592e6e(_0x508690)),_0x2514cf=window[_0x5e99ab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e99ab([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12f5b6);return _0x2514cf?window[_0x5e99ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x236c1e(_0x2514cf),0x10)*_0x3e8ae6:null;}function _0xe24f5a(_0x44b335){return new window[(_0x5e99ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb73494,_0x5eda46)=>{_0x44b335[_0x5e99ab([0x74,0x68,0x65,0x6e])](_0xb73494,_0x5eda46),window[_0x5e99ab([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5eda46,0x6f1f5515^_0xac080d);});}}_0x6036e6[_0x5e99ab([0x6f,0x6e])](_0x5e99ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x108427,_0x5a5f60)=>{if(_0x5a5f60[0x0]!=_0x508690)return _0x31ca66(_0x5e99ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a5f60[0x1]={..._0x5a5f60[0x1],[_0x5e99ab([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x566f04};},{[_0x5e99ab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e99ab([0x68,0x69,0x67,0x68])}),_0x6036e6[_0x5e99ab([0x6f,0x6e])](_0x5e99ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2d40ff=>{_0x5071c6(_0x2d40ff[_0x5e99ab([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36f79b=!0x0,_0x31b10e(_0x2d40ff[_0x5e99ab([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e99ab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e99ab([0x6c,0x6f,0x77])}),_0x578084[_0x5e99ab([0x74,0x68,0x65,0x6e])](()=>{_0x36f79b||_0x31ca66(_0x5e99ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x554a36(){return _0x6036e6[_0x5e99ab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e99ab([0x76,0x69,0x65,0x77])][_0x5e99ab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e99ab([0x61,0x75,0x74,0x6f]);}function _0x6af0ea(){_0x6036e6[_0x5e99ab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e99ab([0x76,0x69,0x65,0x77])][_0x5e99ab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e99ab([0x61,0x75,0x74,0x6f]);}}function _0x527fbb(_0x5f2952){const _0xf43a11=[new window[(_0x5e99ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38f793=>setTimeout(_0x38f793,0x6f17bf19^_0xac080d)),_0x578084[_0x5e99ab([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e99ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x433988=>{let _0x48cbbb=0x0;_0x6036e6[_0x5e99ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e99ab([0x6f,0x6e])](_0x5e99ab([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x27991d,_0x48e152)=>{_0x48e152[0x0][_0x5e99ab([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x48cbbb++,_0x48cbbb==(0x6f1e802d^_0xac080d)&&(_0x433988(),_0x27991d[_0x5e99ab([0x6f,0x66,0x66])]());});}))];return window[_0x5e99ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e99ab([0x72,0x61,0x63,0x65])](_0xf43a11)[_0x5e99ab([0x74,0x68,0x65,0x6e])](()=>_0x5f2952);}async function _0x3c1f22(){await _0x578084,_0x6036e6[_0x5e99ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e99ab([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x700244,_0x6036e6[_0x5e99ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e99ab([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x700244,_0x6036e6[_0x5e99ab([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e99ab([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b8b18(){return _0x3e5712(_0x5e99ab([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1447d1(_0x5e99ab([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5e99ab([0x73,0x74,0x61,0x74,0x65])]==_0x5e99ab([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x721986(){return _0x3e5712(_0x5e99ab([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 _0x4bab6b(){return _0x3e5712(_0x5e99ab([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1f5b29(_0x3a96a8){const _0x2a7ecc=_0x2b509e();_0x6036e6[_0x2a7ecc]=_0x5e99ab([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3a96a8,_0x3a96a8!=_0x5e99ab([0x56,0x61,0x6c,0x69,0x64])&&_0x3c1f22();}function _0x2b509e(){const _0x1b5c75=window[_0x5e99ab([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e99ab([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e99ab([0x6e,0x6f,0x77])]())[_0x5e99ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e99ab([0x2e]),'');let _0x9f82a4=_0x5e99ab([0x55]);for(let _0x3b4ead=0x0;_0x3b4ead<_0x1b5c75[_0x5e99ab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b4ead+=0x2){let _0x3c2700=window[_0x5e99ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b5c75[_0x5e99ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b4ead,_0x3b4ead+0x2));_0x3c2700>=_0x4fcc4a[_0x5e99ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3c2700-=_0x4fcc4a[_0x5e99ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x9f82a4+=_0x4fcc4a[_0x3c2700];}return _0x9f82a4;}function _0x6f2e21(){const _0x32cb15=_0x4ee418[_0x5e99ab([0x73,0x70,0x6c,0x69,0x74])](_0x5e99ab([0x2e]));if(0x3!=_0x32cb15[_0x5e99ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x28884a(_0x32cb15[0x1]);function _0x28884a(_0x4bd89d){const _0xfaecdf=_0x267f65(_0x4bd89d);return _0xfaecdf&&_0x3932a5()?_0xfaecdf:null;function _0x3932a5(){const _0x2f1311=_0xfaecdf[_0x5e99ab([0x6a,0x74,0x69])],_0x2b3be8=window[_0x5e99ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f1311[_0x5e99ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f1311[_0x5e99ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x260569={..._0xfaecdf,[_0x5e99ab([0x6a,0x74,0x69])]:_0x2f1311[_0x5e99ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f1311[_0x5e99ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x260569[_0x5e99ab([0x76,0x63])],_0x592e6e(_0x260569)==_0x2b3be8;}}}async function _0x193e71(){let _0x2966e5=!0x0;try{const _0x32e25c=_0x4ee418[_0x5e99ab([0x73,0x70,0x6c,0x69,0x74])](_0x5e99ab([0x2e])),[_0x68c086,_0x52ec84,_0x7f7b2]=_0x32e25c;return _0x3d5911(_0x68c086),await _0xdacb5e(_0x68c086,_0x52ec84,_0x7f7b2),_0x2966e5;}catch{return!0x1;}function _0x3d5911(_0x306ba5){const _0x3fc2cd=_0x267f65(_0x306ba5);_0x3fc2cd&&_0x3fc2cd[_0x5e99ab([0x61,0x6c,0x67])]==_0x5e99ab([0x45,0x53,0x32,0x35,0x36])||(_0x2966e5=!0x1);}async function _0xdacb5e(_0x24360b,_0x14a2f9,_0x481c03){const _0xf683d7=window[_0x5e99ab([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e99ab([0x66,0x72,0x6f,0x6d])](_0x4a22b5(_0x481c03),_0x376808=>_0x376808[_0x5e99ab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2644b8=new window[(_0x5e99ab([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e99ab([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24360b+_0x5e99ab([0x2e])+_0x14a2f9),_0x1c4f56=window[_0x5e99ab([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e99ab([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c4f56)return;const _0x382661=await _0x1c4f56[_0x5e99ab([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e99ab([0x6a,0x77,0x6b]),_0x239906,{[_0x5e99ab([0x6e,0x61,0x6d,0x65])]:_0x5e99ab([0x45,0x43,0x44,0x53,0x41]),[_0x5e99ab([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e99ab([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e99ab([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c4f56[_0x5e99ab([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e99ab([0x6e,0x61,0x6d,0x65])]:_0x5e99ab([0x45,0x43,0x44,0x53,0x41]),[_0x5e99ab([0x68,0x61,0x73,0x68])]:{[_0x5e99ab([0x6e,0x61,0x6d,0x65])]:_0x5e99ab([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x382661,_0xf683d7,_0x2644b8)||(_0x2966e5=!0x1);}}function _0x267f65(_0x2648ff){return _0x2648ff[_0x5e99ab([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e99ab([0x65,0x79]))?JSON[_0x5e99ab([0x70,0x61,0x72,0x73,0x65])](_0x4a22b5(_0x2648ff)):null;}function _0x4a22b5(_0x1ff90a){return window[_0x5e99ab([0x61,0x74,0x6f,0x62])](_0x1ff90a[_0x5e99ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e99ab([0x2b]))[_0x5e99ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e99ab([0x2f])));}function _0x592e6e(_0x1a9c5b){let _0x588f7b=0x1505;function _0x372535(_0x4a0e6a){for(let _0x1eba43=0x0;_0x1eba43<_0x4a0e6a[_0x5e99ab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1eba43++){const _0x5b93e4=_0x4a0e6a[_0x5e99ab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1eba43);_0x588f7b=(_0x588f7b<<0x5)+_0x588f7b+_0x5b93e4,_0x588f7b&=_0x588f7b;}}function _0x2c7624(_0x55fd3a){Array[_0x5e99ab([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x55fd3a)?_0x55fd3a[_0x5e99ab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c7624):_0x55fd3a&&typeof _0x55fd3a==_0x5e99ab([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e99ab([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x55fd3a)[_0x5e99ab([0x73,0x6f,0x72,0x74])]()[_0x5e99ab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a642d,_0x2dd3e2])=>{_0x372535(_0x2a642d),_0x2c7624(_0x2dd3e2);}):_0x372535(window[_0x5e99ab([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x55fd3a));}return _0x2c7624(_0x1a9c5b),_0x588f7b>>>0x0;}function _0x1ce21a(_0x343349){return _0x343349[_0x5e99ab([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e99ab([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e99ab([0x30]));}function _0x236c1e(_0x36d414){return _0x36d414[_0x5e99ab([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e99ab([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e99ab([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e5712(_0x3a66d5){return _0x6036e6[_0x5e99ab([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5e99ab([0x68,0x61,0x73])](_0x3a66d5);}function _0x1447d1(_0x394085){return _0x6036e6[_0x5e99ab([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5e99ab([0x67,0x65,0x74])](_0x394085);}function _0x700244(){}function _0x5e99ab(_0x4fdd57){return _0x4fdd57['map'](_0xd09894=>String['fromCharCode'](_0xd09894))['join']('');}_0x1f5b29(await _0x7644ff());}(this);}set['adapter'](_0x16e8f5){if(this['_adapter'])throw new _0x23f610('track-changes-adapter-already-set',this);this['_adapter']=_0x16e8f5;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3188d4=!0x1,toJSON:_0x2396ae=!0x1}={}){const _0x54be93=[];for(const _0x307a43 of this['_suggestions']['values']())_0x3188d4&&!_0x307a43['isInContent']||_0x54be93['push'](_0x307a43);return _0x2396ae?_0x54be93['map'](_0x47704f=>_0x47704f['toJSON']()):_0x54be93;}['getSuggestion'](_0x34fef6){const _0x1ddc6f=this['_suggestions']['get'](_0x34fef6);if(!_0x1ddc6f)throw new _0x23f610('track-changes-suggestion-not-found',this);return _0x1ddc6f;}['hasSuggestion'](_0x3f3a7b){return this['_suggestions']['has'](_0x3f3a7b);}['addSuggestionData'](_0x53b286){const {authorId:_0x20b6ba,id:_0x3e062d,originalSuggestionId:_0x1079da,attributes:_0x5e50f9}=_0x53b286,[_0xddee97,_0x474d77]=_0x53b286['type']['split'](':'),_0x57ec1a=this['_suggestions']['get'](_0x3e062d)||this['_createSuggestion'](_0xddee97,_0x474d77,_0x3e062d,_0x20b6ba,_0x5e50f9,_0x1079da);if(this['_addThreadToSuggestion'](_0x57ec1a),this['_checkSuggestionCorrectness'](_0x57ec1a,_0xddee97,_0x474d77||null,_0x20b6ba),_0x57ec1a['createdAt']=_0x53b286['createdAt'],_0x57ec1a['_isDataLoaded']=!0x0,_0x5e50f9&&_0x5e50f9['@external']){const _0x12a97d=_0x5e50f9['@external'],_0x452917=this['_getExternalAuthor'](_0x12a97d['authorName']);_0x57ec1a['authoredAt']=_0x12a97d['createdAt'],_0x57ec1a['author']=_0x452917,_0x57ec1a['isExternal']=!0x0;}else _0x57ec1a['authoredAt']=_0x53b286['createdAt'];switch(_0x53b286['data']&&(_0x57ec1a['data']=_0x53b286['data']),_0x53b286['attributes']&&(_0x57ec1a['attributes']=_0x53b286['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x57ec1a['_saved']=!0x0),this['_suggestionState']['get'](_0x57ec1a)){case'notReady':this['_suggestionState']['set'](_0x57ec1a,'dataReady');break;case'markerReady':_0x57ec1a['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x57ec1a])),this['_refreshSuggestionsChain'](new Set([_0x57ec1a])),this['_suggestionState']['set'](_0x57ec1a,'ready'),this['fire']('suggestionLoaded',_0x57ec1a)):this['_suggestionState']['set'](_0x57ec1a,'removed');}return _0x57ec1a;}['acceptSuggestion'](_0x45eeda){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x57d99b of _0x45eeda['getAllAdjacentSuggestions']())_0x57d99b['accept']();});});}['discardSuggestion'](_0x2f0a9c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3eed0b of _0x2f0a9c['getAllAdjacentSuggestions']())_0x3eed0b['discard']();});});}['enableCommand'](_0x221ba0,_0x372fb7){const _0x324328=this['editor']['commands']['get'](_0x221ba0);if(!_0x324328)throw new _0x23f610('track-changes-command-not-found',this,{'commandName':_0x221ba0});if(this['_enabledCommands']['has'](_0x324328))throw new _0x23f610('track-changes-enable-command-twice',this,{'commandName':_0x221ba0});this['_enabledCommands']['add'](_0x324328),_0x372fb7&&_0x324328['on']('execute',(_0xf00b67,_0x488222)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x488222['length']>0x0&&_0x488222[_0x488222['length']-0x1]&&_0x488222[_0x488222['length']-0x1]['forceDefaultExecution']?_0x488222['pop']():(_0xf00b67['return']=_0x372fb7((..._0x53e581)=>_0x324328['execute'](..._0x53e581,{'forceDefaultExecution':!0x0}),..._0x488222),_0xf00b67['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x100856){let _0x4c3716,_0x3bab27;const _0x4e00a2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4c3716=_0x100856();}catch(_0x2b2b86){_0x3bab27=_0x2b2b86;}return _0x4e00a2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3bab27&&_0x23f610['rethrowUnexpectedError'](_0x3bab27,this),_0x4c3716;}['markInsertion'](_0x27ff98,_0x3fcfff=null,_0x59542f={}){if(_0x27ff98['isCollapsed'])return null;const _0x1c7df6=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x59542f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x44fc51,meta:_0x2acd81}of this['_findSuggestions'](_0x27ff98,'insertion'))if(_0x2acd81['isOwn']){if(!_0x2acd81['isNextTo']){if(_0x2acd81['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Yt(_0x44fc51,_0x59542f))continue;return _0x44fc51;}if(Yt(_0x44fc51,_0x59542f))return _0x44fc51;this['_breakSuggestionMarker'](_0x44fc51,_0x27ff98['start'],_0x27ff98['end']);break;}if(_0x3fcfff==_0x44fc51['subType']&&Yt(_0x44fc51,_0x59542f)){const _0x2893d9=_0x44fc51['getFirstRange']();return _0x2893d9['start']['isEqual'](_0x27ff98['end'])?this['_setSuggestionRange'](_0x44fc51,this['_model']['createRange'](_0x27ff98['start'],_0x2893d9['end'])):this['_setSuggestionRange'](_0x44fc51,this['_model']['createRange'](_0x2893d9['start'],_0x27ff98['end'])),_0x44fc51;}}const _0x3a137b=_0xdf79fb(),_0x225634=_0x1c7df6['id'],_0x3ba211=_0x3fcfff?'insertion:'+_0x3fcfff:'insertion',_0x14e9c4=this['_setSuggestionData']({'id':_0x3a137b,'type':_0x3ba211,'createdAt':new Date(),'authorId':_0x225634,'attributes':_0x59542f});return this['_addSuggestionMarker'](_0x3ba211,_0x3a137b,_0x225634,_0x27ff98),_0x14e9c4;}['markMultiRangeInsertion'](_0x1ec797,_0x4c7958='multi',_0x52b75b={}){const _0x4b9dab=this['editor']['plugins']['get']('Users')['me'],_0x11b05e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4c7958,'join');this['_trackingSessionId']&&(_0x52b75b['trackingSessionId']=this['_trackingSessionId']);for(const _0x4b304e of this['getSuggestions']())if(_0x4b304e['author']['id']==_0x4b9dab['id']&&'insertion'==_0x4b304e['type']&&_0x4b304e['subType']==_0x4c7958&&Yt(_0x4b304e,_0x52b75b)&&(_0x11b05e(_0x4b304e['getRanges'](),_0x1ec797)||_0x11b05e(_0x1ec797,_0x4b304e['getRanges']()))){for(const _0x56724b of _0x1ec797)_0x4b304e['addRange'](_0x56724b);return _0x4b304e;}for(const {suggestion:_0x382ab4,meta:_0x51cee4}of this['_findSuggestions'](_0x1ec797,'insertion')){if(!_0x51cee4['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x51cee4['containsRangeInObject'])continue;if(!Yt(_0x382ab4,_0x52b75b))continue;let _0x2358a6=!0x0;for(const _0x214359 of _0x382ab4['getRanges']())for(const _0x3bec26 of _0x1ec797)if(!_0x214359['containsRange'](_0x3bec26)){_0x2358a6=!0x1;break;}if(_0x2358a6)return _0x382ab4;}const _0x461f1f=_0xdf79fb(),_0x647ccc=_0x4b9dab['id'],_0x30a4d3='insertion:'+_0x4c7958,_0x26a776=this['_setSuggestionData']({'id':_0x461f1f,'type':_0x30a4d3,'createdAt':new Date(),'authorId':_0x647ccc,'attributes':_0x52b75b});for(const _0x11fcc5 of _0x1ec797)this['_addSuggestionMarker'](_0x30a4d3,_0x461f1f,_0x647ccc,_0x11fcc5,o['getMultiRangeId']());return _0x26a776;}['markInlineFormat'](_0x296f2f,_0x4a40e9,_0x190b14=null,_0xb0c918={}){if(_0x190b14=_0x190b14||Kt(_0x4a40e9),_0x296f2f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xb0c918['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x474a56=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x190b14,'accept');return this['forceDefaultExecution'](()=>_0x474a56([_0x296f2f],_0x4a40e9,_0xb0c918)),null;}const _0xeaf5d6=this['editor']['plugins']['get']('Users')['me'],_0x4e12c6=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1b89cf,meta:_0x4dc92c}of this['_findSuggestions'](_0x296f2f,'insertion'))_0x4dc92c['isOwn']&&!_0x4dc92c['isInsideObject']&&_0x4e12c6['push'](..._0x1b89cf['getRanges']());}const _0x836bd3=function(_0x30f383,_0x581701){const _0x4f89cf=[];for(const _0x5c446b of _0x581701){const _0x20684d=_0x30f383['getIntersection'](_0x5c446b);_0x20684d&&_0x4f89cf['push'](_0x20684d);}return _0x4f89cf;}(_0x296f2f,_0x4e12c6),_0x36e6f5=function(_0x58c1b5,_0x5c99ce){const _0xc3e56b=[_0x58c1b5];for(const _0x4c18d3 of _0x5c99ce){let _0x4fafac=0x0;for(;_0x4fafac<_0xc3e56b['length'];){const _0x3f584f=_0xc3e56b[_0x4fafac]['getDifference'](_0x4c18d3);_0xc3e56b['splice'](_0x4fafac,0x1,..._0x3f584f),_0x4fafac+=_0x3f584f['length'];}}return _0xc3e56b;}(_0x296f2f,_0x4e12c6);_0x836bd3['length']&&this['_model']['change'](()=>{for(const _0x32e899 of _0x836bd3){const _0x3ec683=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x190b14,'accept');this['forceDefaultExecution'](()=>_0x3ec683([_0x32e899],_0x4a40e9,_0xb0c918));}});for(const _0x32d416 of _0x36e6f5){let _0x470781=null,_0x232ffe=_0x32d416['start'],_0x292a32=_0x32d416['end'];for(const {suggestion:_0x587cdd,meta:_0x59258b}of this['_findSuggestions'](_0x32d416,'formatInline')){if(!_0x59258b['isOwn'])continue;if(_0x587cdd['subType']!=_0x190b14)continue;if(!Yt(_0x587cdd,_0xb0c918))continue;const _0x29f3f8=_0x587cdd['getFirstRange']();if(_0x29f3f8['containsRange'](_0x32d416,!0x0))return null;_0x232ffe=_0x232ffe['isBefore'](_0x29f3f8['start'])?_0x232ffe:_0x29f3f8['start'],_0x292a32=_0x292a32['isAfter'](_0x29f3f8['end'])?_0x292a32:_0x29f3f8['end'],_0x470781?_0x29f3f8['start']['isBefore'](_0x470781['getFirstRange']()['start'])?(_0x470781['removeMarkers'](),_0x470781=_0x587cdd):_0x587cdd['removeMarkers']():_0x470781=_0x587cdd;}const _0x231d77=this['_model']['createRange'](_0x232ffe,_0x292a32);if(_0x470781)this['_setSuggestionRange'](_0x470781,_0x231d77);else{const _0x2c193f=_0xdf79fb(),_0x4260a9=_0xeaf5d6['id'];this['_setSuggestionData']({'id':_0x2c193f,'type':'formatInline:'+_0x190b14,'data':_0x4a40e9,'createdAt':new Date(),'authorId':_0x4260a9,'attributes':_0xb0c918}),this['_addSuggestionMarker']('formatInline:'+_0x190b14,_0x2c193f,_0x4260a9,_0x231d77);}}return null;}['markBlockFormat'](_0x492db3,_0x26a36a,_0xa7b9e4=[],_0x15b034=null,_0x51eef1={}){_0x26a36a['formatGroupId']||(_0x26a36a['formatGroupId']=_0x26a36a['commandName']),_0x26a36a['multipleBlocks']=_0x492db3['is']('range'),_0x15b034=_0x15b034||Kt(_0x26a36a);const _0x21e33d=_0xa7b9e4['map'](_0x29e5b0=>Wt(_0x29e5b0,this['_model'])),_0x17b88c=_0x492db3['is']('range')?_0x492db3:Wt(_0x492db3,this['_model']);if(this['_trackingSessionId']&&(_0x51eef1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x52641c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15b034,'accept');return this['forceDefaultExecution'](()=>_0x52641c([_0x17b88c],_0x26a36a,_0x51eef1)),null;}_0x21e33d['push'](_0x17b88c);let _0x3a0c11=!0x0;for(const _0x1be17c of _0x21e33d)if(!this['_rangeIsInLocalUserInsertion'](_0x1be17c)){_0x3a0c11=!0x1;break;}if(_0x3a0c11&&'always'!==this['_trackFormatChanges']){const _0x2772fd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15b034,'accept');return this['forceDefaultExecution'](()=>_0x2772fd([_0x17b88c],_0x26a36a,_0x51eef1)),null;}let _0x42f870=null,_0xfd7396=_0x17b88c['start'],_0x247931=_0x17b88c['end'];for(const {suggestion:_0x276e5,meta:_0x123c1d}of this['_findSuggestions'](_0x17b88c,'formatBlock')){if(!_0x123c1d['isOwn'])continue;if(_0x123c1d['isNextTo']||_0x123c1d['containsRangeInObject']||_0x123c1d['isInsideObject'])continue;if(_0x276e5['data']['formatGroupId']!=_0x26a36a['formatGroupId'])continue;if(!Yt(_0x276e5,_0x51eef1))continue;const _0x2d50c4=_0x276e5['getFirstRange']();if(_0x276e5['subType']==_0x15b034){if(_0x2d50c4['containsRange'](_0x17b88c,!0x0))return null;_0xfd7396=_0xfd7396['isBefore'](_0x2d50c4['start'])?_0xfd7396:_0x2d50c4['start'],_0x247931=_0x247931['isAfter'](_0x2d50c4['end'])?_0x247931:_0x2d50c4['end'],_0x42f870?_0x2d50c4['start']['isBefore'](_0x42f870['getFirstRange']()['start'])?(_0x42f870['removeMarkers'](),_0x42f870=_0x276e5):_0x276e5['removeMarkers']():_0x42f870=_0x276e5;}else{const _0x41fb75=_0x17b88c['getIntersection'](_0x2d50c4);this['_cutOutSuggestionMarker'](_0x276e5,_0x41fb75);}}const _0x42db50=this['editor']['plugins']['get']('Users')['me'],_0xa3cbfd=_0xdf79fb(),_0x555f3d=_0x42db50['id'];if(_0x42f870)return this['_setSuggestionRange'](_0x42f870,this['_model']['createRange'](_0xfd7396,_0x247931)),_0x42f870;{const _0x22559c=this['_setSuggestionData']({'id':_0xa3cbfd,'type':'formatBlock:'+_0x15b034,'data':_0x26a36a,'createdAt':new Date(),'authorId':_0x555f3d,'attributes':_0x51eef1});return this['_addSuggestionMarker']('formatBlock:'+_0x15b034,_0xa3cbfd,_0x555f3d,this['_model']['createRange'](_0xfd7396,_0x247931)),_0x22559c;}}['markMultiRangeBlockFormat'](_0x2f69fb,_0x5b4c54,_0x25a640=[],_0x5528f1=null,_0xe7fd68={}){_0x5b4c54['formatGroupId']||(_0x5b4c54['formatGroupId']=_0x5b4c54['commandName']);const _0x1924d6=_0x2f69fb[0x0];_0x5b4c54['multipleBlocks']=_0x1924d6['is']('range'),_0x5528f1=_0x5528f1||Kt(_0x5b4c54);const _0x40f595=_0x25a640['map'](_0x1c9087=>Wt(_0x1c9087,this['_model'])),_0x47a3ff=_0x1924d6['is']('range')?_0x2f69fb:_0x2f69fb['map'](_0x154f69=>Wt(_0x154f69,this['_model']));if(this['_trackingSessionId']&&(_0xe7fd68['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x157668=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5528f1,'accept');return this['forceDefaultExecution'](()=>_0x157668(_0x47a3ff,_0x5b4c54,_0xe7fd68)),null;}_0x40f595['push'](..._0x47a3ff);let _0x12224e=!0x0;for(const _0x371358 of _0x40f595)if(!this['_rangeIsInLocalUserInsertion'](_0x371358)){_0x12224e=!0x1;break;}if(_0x12224e&&'always'!==this['_trackFormatChanges']){const _0x265459=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5528f1,'accept');return this['forceDefaultExecution'](()=>_0x265459(_0x47a3ff,_0x5b4c54,_0xe7fd68)),null;}const _0x510660=this['editor']['plugins']['get']('Users')['me'];for(const _0x3a628b of this['getSuggestions']()){if(_0x3a628b['author']['id']!=_0x510660['id'])continue;if('formatBlock'!=_0x3a628b['type']||_0x3a628b['data']['formatGroupId']!=_0x5b4c54['formatGroupId'])continue;if(!Yt(_0x3a628b,_0xe7fd68))continue;const _0x2fa254=_0x3a628b['subType']==_0x5528f1;for(let _0x53c3d9=0x0;_0x53c3d9<_0x47a3ff['length'];_0x53c3d9++){const _0x4be217=_0x47a3ff[_0x53c3d9];for(const _0x534116 of _0x3a628b['getMarkers']()){const _0x1dbdf7=_0x534116['getRange']();if(_0x4be217['isEqual'](_0x1dbdf7)){_0x2fa254?(_0x47a3ff['splice'](_0x53c3d9,0x1),_0x53c3d9--):_0x3a628b['removeMarker'](_0x534116['name']);break;}}}}if(0x0==_0x47a3ff['length'])return null;const _0x19311a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5528f1,'join');for(const _0xe17c67 of this['getSuggestions']())if(_0xe17c67['author']['id']==_0x510660['id']&&'formatBlock'==_0xe17c67['type']&&_0xe17c67['data']['formatGroupId']==_0x5b4c54['formatGroupId']&&_0xe17c67['subType']==_0x5528f1&&Yt(_0xe17c67,_0xe7fd68)&&(_0x19311a(_0xe17c67['getRanges'](),_0x47a3ff)||_0x19311a(_0x47a3ff,_0xe17c67['getRanges']()))){for(const _0x5284d8 of _0x47a3ff)_0xe17c67['addRange'](_0x5284d8);return _0xe17c67;}const _0x4df14b=_0xdf79fb(),_0xca10da=_0x510660['id'],_0xd54e44='formatBlock:'+_0x5528f1,_0x5ca714=this['_setSuggestionData']({'id':_0x4df14b,'type':_0xd54e44,'data':_0x5b4c54,'createdAt':new Date(),'authorId':_0xca10da,'attributes':_0xe7fd68});for(const _0x5312ab of _0x47a3ff)this['_addSuggestionMarker'](_0xd54e44,_0x4df14b,_0xca10da,_0x5312ab,o['getMultiRangeId']());return _0x5ca714;}['markDeletion'](_0x3e8f04,_0x200ef6=null,_0x593861={}){if(_0x3e8f04['isCollapsed'])return null;const _0x295b9c=this['editor']['plugins']['get']('Users')['me'],_0x41db61=new _0x1d9e5c(_0x3e8f04['start'],_0x3e8f04['end']);this['_trackingSessionId']&&(_0x593861['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3b2d05,meta:_0x457c42}of this['_findSuggestions'](_0x41db61,'insertion'))if(_0x457c42['isOwn']&&!_0x457c42['isNextTo']){if(_0x3b2d05['isMultiRange']){const _0x5c0685=_0x3b2d05['getRanges']()['filter'](_0x165985=>'$graveyard'!=_0x165985['root']['rootName']);_0x5c0685['every'](_0x113379=>_0x41db61['containsRange'](_0x113379,!0x0))&&_0x3b2d05['discard']();if(_0x5c0685['some'](_0x15adb9=>_0x15adb9['containsRange'](_0x41db61,!0x0))){const _0x5d1948=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x200ef6,'accept');return this['forceDefaultExecution'](()=>_0x5d1948([_0x41db61],null,_0x593861)),null;}}else{const _0x420759=_0x41db61['getIntersection'](_0x3b2d05['getFirstRange']());null!==_0x420759&&_0x3b2d05['_onDiscard']([_0x420759],null,_0x593861);}}if(_0x41db61['detach'](),_0x41db61['isCollapsed']||'$graveyard'==_0x41db61['root']['rootName'])return null;let _0x476b86=null,_0x4d24ff=_0x41db61['start'],_0x153c17=_0x41db61['end'];const _0xec663e=this['_findSuggestions'](_0x41db61,'deletion');for(const {suggestion:_0x292fc6,meta:_0x9e02cf}of _0xec663e){const _0x1f7d7e=this['_model']['createRange'](_0x4d24ff,_0x153c17);if(_0x9e02cf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9e02cf['containsRangeInObject']&&!_0x9e02cf['isInsideObject'])){if(_0x292fc6['isMultiRange']){if(!Yt(_0x292fc6,_0x593861))continue;let _0x54f27c=!0x0;for(const _0x27b99f of _0x292fc6['getRanges']()){if(_0x27b99f['containsRange'](_0x1f7d7e,!0x0))return _0x292fc6;_0x1f7d7e['containsRange'](_0x27b99f)||(_0x54f27c=!0x1);}_0x54f27c&&_0x292fc6['discard']();}else{const _0x16cb07=_0x292fc6['getFirstRange']();if(_0x16cb07['containsRange'](_0x1f7d7e,!0x0))return _0x292fc6;if(!Yt(_0x292fc6,_0x593861)){_0x1f7d7e['containsRange'](_0x16cb07)?_0x292fc6['removeMarkers']():_0x16cb07['containsPosition'](_0x4d24ff)?_0x4d24ff=_0x16cb07['end']:_0x16cb07['containsPosition'](_0x153c17)&&(_0x153c17=_0x16cb07['start']);continue;}_0x4d24ff=_0x4d24ff['isBefore'](_0x16cb07['start'])?_0x4d24ff:_0x16cb07['start'],_0x153c17=_0x153c17['isAfter'](_0x16cb07['end'])?_0x153c17:_0x16cb07['end'],_0x593861=Object['assign']({},_0x292fc6['attributes']),_0x476b86?_0x16cb07['start']['isBefore'](_0x476b86['getFirstRange']()['start'])?(_0x476b86['removeMarkers'](),_0x476b86=_0x292fc6):_0x292fc6['removeMarkers']():_0x476b86=_0x292fc6;}}}if(_0x476b86)return this['_setSuggestionRange'](_0x476b86,this['_model']['createRange'](_0x4d24ff,_0x153c17)),_0x476b86;{const _0x1a7eb0=_0xdf79fb(),_0x4270c7=this['_model']['createRange'](_0x4d24ff,_0x153c17),_0x2faf6d=_0x295b9c['id'],_0x173c46=_0x200ef6?'deletion:'+_0x200ef6:'deletion',_0x4e6f73=this['_setSuggestionData']({'id':_0x1a7eb0,'type':_0x173c46,'createdAt':new Date(),'authorId':_0x2faf6d,'attributes':_0x593861});return this['_addSuggestionMarker'](_0x173c46,_0x1a7eb0,_0x2faf6d,_0x4270c7),_0x4e6f73;}}['markMultiRangeDeletion'](_0x239b7d,_0x5dc22f='multi',_0x3448df={}){const _0x3567ac=this['editor']['plugins']['get']('Users')['me'],_0x25452d=_0x239b7d['map'](_0x16cb2b=>new _0x1d9e5c(_0x16cb2b['start'],_0x16cb2b['end'])),_0x5a8b71=new Set();this['_trackingSessionId']&&(_0x3448df['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2ea11b,meta:_0x391ab2}of this['_findSuggestions'](_0x25452d,'insertion'))_0x391ab2['isOwn']&&!_0x391ab2['isNextTo']&&_0x5a8b71['add'](_0x2ea11b);for(const _0x1df50f of _0x5a8b71)if(_0x1df50f['isMultiRange']){const _0x7ac775=_0x1df50f['getRanges']();(!_0x1df50f['attributes']||!_0x1df50f['attributes']['skipNestingCheck'])&&(_0x7ac775['every'](_0x3dd4ae=>_0x25452d['some'](_0x2e7a17=>_0x2e7a17['containsRange'](_0x3dd4ae,!0x0)))&&_0x1df50f['discard']());if(_0x25452d['every'](_0x4efb30=>_0x7ac775['some'](_0x1545b6=>_0x1545b6['containsRange'](_0x4efb30,!0x0)))){const _0x4e6296=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dc22f,'accept');return this['forceDefaultExecution'](()=>_0x4e6296(_0x239b7d,null,_0x3448df)),null;}}else{const _0x207de4=_0x1df50f['getFirstRange']();_0x25452d['some'](_0x113419=>_0x113419['containsRange'](_0x207de4,!0x0))&&_0x1df50f['discard']();if(_0x25452d['every'](_0x45a9a7=>_0x207de4['containsRange'](_0x45a9a7,!0x0))){const _0x4f64ed=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dc22f,'accept');return this['forceDefaultExecution'](()=>_0x4f64ed(_0x25452d,null,_0x3448df)),null;}}const _0xc69d71=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dc22f,'join');let _0x54fc32=null;for(const _0x2efab1 of this['getSuggestions']())if(_0x2efab1['author']['id']==_0x3567ac['id']&&_0x2efab1['isInContent']&&'deletion'==_0x2efab1['type']&&_0x2efab1['subType']==_0x5dc22f&&Yt(_0x2efab1,_0x3448df)&&(_0xc69d71(_0x2efab1['getRanges'](),_0x25452d)||_0xc69d71(_0x25452d,_0x2efab1['getRanges']()))){if(_0x54fc32){if(_0x2efab1['commentThread']&&_0x2efab1['commentThread']['length'])continue;for(const _0x15bd46 of _0x2efab1['getRanges']())_0x54fc32['isIntersectingWithRange'](_0x15bd46)||_0x54fc32['addRange'](_0x15bd46);_0x2efab1['removeMarkers']();}else{_0x54fc32=_0x2efab1;for(const _0x5cebd1 of _0x25452d)_0x2efab1['isIntersectingWithRange'](_0x5cebd1)||_0x2efab1['addRange'](_0x5cebd1);}}if(_0x54fc32)return _0x54fc32;_0x5a8b71['clear']();for(const {suggestion:_0x22a076,meta:_0x73f12e}of this['_findSuggestions'](_0x25452d,'deletion'))_0x73f12e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x73f12e['containsRangeInObject']&&!_0x73f12e['isInsideObject'])&&Yt(_0x22a076,_0x3448df)&&_0x5a8b71['add'](_0x22a076);for(const _0x2857f1 of _0x5a8b71){const _0x46ff4a=_0x2857f1['getRanges']();if(!_0x3448df||!_0x3448df['skipNestingCheck']){if(_0x25452d['every'](_0x32da58=>_0x46ff4a['some'](_0x4cc0f5=>_0x4cc0f5['containsRange'](_0x32da58,!0x0))))return _0x2857f1;}(!_0x2857f1['attributes']||!_0x2857f1['attributes']['skipNestingCheck'])&&(_0x46ff4a['every'](_0x4662ab=>_0x25452d['some'](_0x5b0b3b=>_0x5b0b3b['containsRange'](_0x4662ab,!0x0)))&&_0x2857f1['discard']());}const _0x4d67ba=_0xdf79fb(),_0x528604=_0x3567ac['id'],_0x43583e='deletion:'+_0x5dc22f,_0x23733c=this['_setSuggestionData']({'id':_0x4d67ba,'type':_0x43583e,'createdAt':new Date(),'authorId':_0x528604,'attributes':_0x3448df});for(const _0xd1e5de of _0x25452d)_0xd1e5de['detach'](),_0xd1e5de['isCollapsed']||'$graveyard'==_0xd1e5de['root']['rootName']||this['_addSuggestionMarker'](_0x43583e,_0x4d67ba,_0x528604,_0xd1e5de,o['getMultiRangeId']());return _0x23733c;}['markAttributeChange'](_0x1ffc6a,_0x786ed4,_0x5c587f,_0x20600d,_0x29d8a8){if(_0x1ffc6a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4dcade=this['editor']['plugins']['get']('Users')['me']['id'],_0x51f979=Array['from'](this['_suggestions']['values']())['filter'](_0x20b4a0=>'attribute'==_0x20b4a0['type']&&_0x20b4a0['data']['key']==_0x786ed4&&_0x20b4a0['isIntersectingWithRange'](_0x1ffc6a));if(this['_trackingSessionId']&&(_0x29d8a8['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x17d8b5=this['_findSuggestions'](_0x1ffc6a,'insertion')['filter'](({meta:_0x279549})=>_0x279549['isOwn']&&!_0x279549['isInsideObject']&&!_0x279549['isNextTo'])['map'](({suggestion:_0x49751b})=>_0x49751b);_0x51f979['unshift'](..._0x17d8b5);}const _0x41a680=new Map([[_0x1ffc6a,_0x5c587f]]);for(const _0x261bcf of _0x51f979){const _0x2f11a5='attribute'==_0x261bcf['type']?_0x261bcf['data']['oldValue']:void 0x0,_0x5b4f0d=_0x261bcf['getFirstRange'](),_0x4c30c4=Array['from'](_0x41a680['keys']())['find'](_0x5b45c8=>_0x5b45c8['isIntersecting'](_0x5b4f0d));if(!_0x4c30c4)continue;const _0x20f2fd=_0x4c30c4['getDifference'](_0x5b4f0d);this['_isBlockAttribute'](_0x786ed4)&&'insertion'==_0x261bcf['type']&&0x0!=_0x20f2fd['length']||(_0x41a680['delete'](_0x4c30c4),_0x20f2fd['forEach'](_0x5cad3a=>{_0x41a680['set'](_0x5cad3a,_0x5c587f);}),'insertion'!=_0x261bcf['type']&&_0x2f11a5!=_0x20600d&&_0x41a680['set'](_0x4c30c4['getIntersection'](_0x5b4f0d),_0x2f11a5));}const _0x2fe836=[];for(const [_0x1d4b3c,_0x413783]of _0x41a680){const _0x1dc1a0=_0xdf79fb(),_0x4eaa3e={'key':_0x786ed4,'oldValue':_0x413783,'newValue':_0x20600d};_0x786ed4['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':_0x786ed4});const _0x34cdd3=('attribute:'+(_0x786ed4+'|'+Kt({'newValue':_0x20600d})))['substring'](0x0,0x3c),_0x30f7ea=this['_setSuggestionData']({'id':_0x1dc1a0,'type':_0x34cdd3,'data':_0x4eaa3e,'createdAt':new Date(),'authorId':_0x4dcade,'attributes':_0x29d8a8});_0x2fe836['push'](_0x30f7ea),this['_addSuggestionMarker'](_0x34cdd3,_0x1dc1a0,_0x4dcade,_0x1d4b3c);}return _0x2fe836;}['enableDefaultAttributesIntegration'](_0x1c3666){this['enableCommand'](_0x1c3666,(_0x5e62f,..._0x3b1c69)=>{this['_recordAttributeChanges'](()=>{_0x5e62f(..._0x3b1c69);});});}['registerBlockAttribute'](_0x34d9bc){this['_blockAttributeKeys']['add'](_0x34d9bc);}['registerInlineAttribute'](_0x26619e){this['_inlineAttributeKeys']['add'](_0x26619e);}['startTrackingSession'](_0x113264){return this['_trackingSessionId']=void 0x0!==_0x113264?_0x113264:_0xdf79fb(),this['_trackingSessionId'];}['_getAttributeKey'](_0x20e571){return'attribute'==_0x20e571['type']?_0x20e571['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x549d13,_0x2eb8bd){const _0x20d8a2=_0x549d13['getFirstMarker']();this['_model']['change'](_0x2cd910=>{_0x2cd910['updateMarker'](_0x20d8a2,{'range':_0x2eb8bd});});}['_addThreadToSuggestion'](_0x5a6d62){const _0x37245d=_0x5a6d62['id'],_0x30bf2c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x37245d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x30bf2c,'threadId':_0x37245d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xbefb66=this['_commentsRepository']['getCommentThread'](_0x37245d);_0xbefb66['unbind']('isRemovable'),_0xbefb66['isRemovable']=!0x1,_0x5a6d62['commentThread']=_0xbefb66;}['_checkSuggestionCorrectness'](_0x2e2a41,_0x1ec356,_0x2e39a4,_0x465817){if(_0x2e2a41['type']!=_0x1ec356||_0x2e2a41['subType']!=_0x2e39a4||_0x2e2a41['creator']['id']!=_0x465817)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x23f610('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3e159a,_0x3f22fa){const _0x181b51=_0x3e159a['getFirstRange']();if(_0x3f22fa['isEqual'](_0x181b51))_0x3e159a['removeMarkers']();else{if(_0x181b51['containsRange'](_0x3f22fa)){const _0x57245c=this['_model']['createPositionAt'](_0x3f22fa['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3e159a,this['_model']['createRange'](_0x181b51['start'],_0x57245c));const _0x4ab1c0=_0xdf79fb(),_0x27319a=_0x3e159a['creator']['id'],_0x574390=_0x3e159a['type']+':'+_0x3e159a['subType'];this['_setSuggestionData']({'id':_0x4ab1c0,'type':_0x574390,'createdAt':new Date(),'authorId':_0x27319a,'data':_0x3e159a['data'],'attributes':_0x3e159a['attributes']});const _0x18f4a2=this['_model']['createPositionAt'](_0x3f22fa['end']['parent'],'after'),_0x3a1cbd=this['_model']['createRange'](_0x18f4a2,_0x181b51['end']);this['_addSuggestionMarker'](_0x574390,_0x4ab1c0,_0x27319a,_0x3a1cbd);}else{if(_0x181b51['containsPosition'](_0x3f22fa['start'])){const _0x4ebeef=this['_model']['createPositionAt'](_0x3f22fa['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3e159a,this['_model']['createRange'](_0x181b51['start'],_0x4ebeef));}else{const _0x4eb1e9=this['_model']['createPositionAt'](_0x3f22fa['end']['parent'],'after');this['_setSuggestionRange'](_0x3e159a,this['_model']['createRange'](_0x4eb1e9,_0x181b51['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x100b71){for(const {suggestion:_0x588a7a,meta:_0x2af8e9}of this['_findSuggestions'](_0x100b71,'insertion')){if(!_0x2af8e9['isOwn'])continue;const _0x15ff82=_0x588a7a['getRanges']();for(const _0x1e4fb4 of _0x15ff82)if(!_0x100b71['getDifference'](_0x1e4fb4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3e7e64){const _0x341205=this['editor']['plugins']['get']('Users')['getUser'](_0x3e7e64);if(!_0x341205)throw new _0x23f610('track-changes-user-not-found',this);return _0x341205;}['_getExternalAuthor'](_0x1d7e84){const _0x38ba0b=this['editor']['plugins']['get']('Users'),_0x212bb2=_0x2e8bbb('external:'+_0x1d7e84),_0x3e8caf=_0x38ba0b['getUser'](_0x212bb2);return _0x3e8caf||_0x38ba0b['addUser']({'id':_0x212bb2,'name':_0x1d7e84});}['_createSuggestion'](_0x1d6ebd,_0x3b35ed,_0x403776,_0x5abc94,_0x57b484,_0x36fb3f){const _0x1caa3f=this['_getAuthorFromId'](_0x5abc94),_0x5da520=this['_suggestionFactory']['buildSuggestion'](_0x1d6ebd,_0x3b35ed,_0x403776,_0x1caa3f,_0x57b484,_0x5ec57f=>{this['_updateSuggestionData'](_0x403776,{'attributes':_0x5ec57f});const _0x334200=this['getSuggestion'](_0x403776);this['_joinWithAdjacentSuggestions'](new Set([_0x334200])),this['_refreshSuggestionsChain'](new Set([_0x334200]));},_0x36fb3f);return this['listenTo'](_0x5da520,'accept',()=>{this['_updateSuggestionData'](_0x403776,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5da520,'discard',()=>{this['_updateSuggestionData'](_0x403776,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x403776,_0x5da520),this['_suggestionState']['set'](_0x5da520,'notReady'),_0x5da520;}['_splitMarkerName'](_0x1b1093){const _0x294238=_0x1b1093['split'](':');return{'group':_0x294238[0x0],'type':_0x294238[0x1],'subType':_0x294238['length']>=0x5?_0x294238[0x2]:null,'id':_0x294238['length']<0x5?_0x294238[0x2]:_0x294238[0x3],'authorId':_0x294238['length']<0x5?_0x294238[0x3]:_0x294238[0x4],'markerCount':0x6==_0x294238['length']?_0x294238[0x5]:null};}['_breakSuggestionMarker'](_0x23ac80,_0x541bb7,_0x331724){const _0x4a5c6f=_0x23ac80['getFirstRange'](),_0x240838=_0x4a5c6f['start'],_0x1880eb=_0x4a5c6f['end'];this['_setSuggestionRange'](_0x23ac80,this['_model']['createRange'](_0x240838,_0x541bb7));const _0x3838ee=_0xdf79fb(),_0x4efb05=_0x23ac80['creator']['id'],_0x4497bc=_0x23ac80['type']+(_0x23ac80['subType']?':'+_0x23ac80['subType']:'');this['_setSuggestionData']({'id':_0x3838ee,'type':_0x4497bc,'createdAt':new Date(),'authorId':_0x4efb05,'originalSuggestionId':_0x23ac80['_originalSuggestionId']||_0x23ac80['id'],'attributes':_0x23ac80['attributes'],'data':_0x23ac80['data']});const _0x4c4932=this['_getAttributeKey'](_0x23ac80);('formatBlock'==_0x23ac80['type']||_0x4c4932&&this['_isBlockAttribute'](_0x4c4932))&&(_0x331724=this['_model']['createPositionBefore'](_0x331724['parent'])),this['_addSuggestionMarker'](_0x4497bc,_0x3838ee,_0x4efb05,this['_model']['createRange'](_0x331724,_0x1880eb));}['_findSuggestions'](_0xad3676,_0x35e3f4=null){const _0x4dc20e=[],_0x5f5b1d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xad3676)||(_0xad3676=[_0xad3676]);for(const _0xa5606 of this['getSuggestions']()){if(!_0xa5606['isInContent'])continue;if(_0x35e3f4&&_0xa5606['type']!=_0x35e3f4)continue;let _0x582263=!0x1;for(const _0x1b84b1 of _0xa5606['getRanges']()){for(const _0x39fcc0 of _0xad3676){const _0x6c169c=_0x39fcc0['start']['isEqual'](_0x1b84b1['end'])||_0x39fcc0['end']['isEqual'](_0x1b84b1['start']);if(_0x6c169c||_0x39fcc0['getIntersection'](_0x1b84b1)){const _0x3904f8=_0x39fcc0['containsRange'](_0x1b84b1)&&Gt(this['_model']['schema'],_0x1b84b1['start'],_0x39fcc0),_0x2e5ef0=_0x1b84b1['containsRange'](_0x39fcc0)&&Gt(this['_model']['schema'],_0x39fcc0['start'],_0x1b84b1);_0x4dc20e['push']({'suggestion':_0xa5606,'meta':{'isOwn':_0x5f5b1d==_0xa5606['author'],'isNextTo':_0x6c169c,'isInsideObject':_0x3904f8,'containsRangeInObject':_0x2e5ef0}}),_0x582263=!0x0;break;}}if(_0x582263)break;}}return _0x4dc20e;}['_addSuggestionMarker'](_0x4ce14a,_0x23b416,_0x4b7499,_0x433dd1,_0x5a185e){this['_model']['change'](_0x4a7a1f=>{let _0x228f22='suggestion:'+_0x4ce14a+':'+_0x23b416+':'+_0x4b7499;_0x5a185e&&(_0x228f22=_0x228f22+':'+_0x5a185e),_0x4a7a1f['addMarker'](_0x228f22,{'range':_0x433dd1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x195243){const _0x30207e=_0x195243['previous'],_0x5715bf=_0x195243['next'];_0x195243['previous']=null,_0x195243['next']=null,null!=_0x30207e&&_0x30207e['next']==_0x195243&&(_0x30207e['next']=_0x5715bf),null!=_0x5715bf&&_0x5715bf['previous']==_0x195243&&(_0x5715bf['previous']=_0x30207e),'ready'==this['_suggestionState']['get'](_0x195243)&&(this['_suggestionState']['set'](_0x195243,'removed'),this['fire']('suggestionUnloaded',_0x195243,_0x30207e,_0x5715bf));}['_setSuggestionData'](_0x2cbdb9){const _0x44d9b0=_0x2cbdb9['id'],_0x1d200e=this['addSuggestionData'](_0x2cbdb9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x53a3cb=this['editor']['plugins']['get']('PendingActions'),_0x470b9c=_0x1d200e['hasComments'],_0x20e396=_0x1d200e['subType']?_0x1d200e['type']+':'+_0x1d200e['subType']:_0x1d200e['type'],_0x307600=this['editor']['locale'],_0x29f883=_0x53a3cb['add'](c(_0x307600,'PENDING_ACTION_SUGGESTION')),_0xc00de={'id':_0x44d9b0,'type':_0x20e396,'hasComments':_0x470b9c,'data':_0x2cbdb9['data']||null,'originalSuggestionId':_0x2cbdb9['originalSuggestionId']||null,'attributes':_0x1d200e['attributes']};this['_adapter']['addSuggestion'](_0xc00de)['then'](_0x1f5c87=>{_0x1d200e['_saved']=!0x0,_0x53a3cb['remove'](_0x29f883),_0x1f5c87&&_0x1f5c87['createdAt']&&(this['_suggestions']['get'](_0x44d9b0)['createdAt']=_0x1f5c87['createdAt']);})['catch'](_0x2e9e8b=>{throw _0x2174f1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1d200e['discard']();}),_0x1d200e['stopListening'](),this['_suggestions']['delete'](_0x1d200e['id']),this['_suggestionState']['delete'](_0x1d200e),_0x2e9e8b;});}return _0x1d200e;}['_isBlockAttribute'](_0x30fa42){return this['_blockAttributeKeys']['has'](_0x30fa42);}['_updateSuggestionData'](_0x298bc9,_0x3151de){const _0x1f999e=this['editor']['plugins']['get']('PendingActions'),_0x36cf09=this['getSuggestion'](_0x298bc9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x36cf09['_saved']){const _0x45e850=_0x1f999e['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x298bc9,_0x3151de)['then'](()=>{_0x1f999e['remove'](_0x45e850);});}else _0x36cf09['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x298bc9,_0x3151de);});}}['_getSuggestionData'](_0x3a0e9a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x23f610('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a0e9a);}['_handleNewSuggestionMarker'](_0xd003e){const {id:_0x4d6bca,type:_0x24440c,subType:_0x38c0f,authorId:_0x17f04a}=this['_splitMarkerName'](_0xd003e),_0x62e284=this['_suggestions']['get'](_0x4d6bca)||this['_createSuggestion'](_0x24440c,_0x38c0f,_0x4d6bca,_0x17f04a,{});switch(this['_checkSuggestionCorrectness'](_0x62e284,_0x24440c,_0x38c0f,_0x17f04a),this['_suggestionState']['get'](_0x62e284)){case'notReady':this['_getSuggestionData'](_0x4d6bca)['then'](_0x576014=>{let _0x2de0ac=Promise['resolve']();_0x576014['hasComments']&&(_0x2de0ac=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4d6bca})),_0x2de0ac['then'](()=>{this['addSuggestionData'](_0x576014)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x62e284,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4d6bca,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x62e284,'ready'),this['fire']('suggestionLoaded',_0x62e284);break;case'ready':this['fire']('suggestionChanged',_0x62e284);}return _0x62e284['addMarkerName'](_0xd003e),_0x62e284;}['_refreshSuggestionsChain'](_0x5b0663){const _0xadc28a=Array['from'](_0x5b0663),_0xbe05e2=_0xadc28a['filter'](_0x27db04=>'attribute'==_0x27db04['type']);this['_refreshAttributeSuggestionsChain'](_0xbe05e2);const _0x5521ba=_0xadc28a['filter'](_0x30e23a=>!_0x30e23a['isMultiRange']&&'attribute'!=_0x30e23a['type']),_0x2704ea=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43389b=>!_0x43389b['isMultiRange']&&'attribute'!=_0x43389b['type']),_0x20729a=_0x2704ea['filter'](_0x3bd106=>!_0x5b0663['has'](_0x3bd106)),_0x2bfeea=new Map(_0x2704ea['map'](_0x242900=>[_0x242900,this['_suggestionFactory']['getSuggestionCallback'](_0x242900['type'],_0x242900['subType'],'chain')])),_0x17fcdc=new Map(_0x2704ea['map'](_0x2524c1=>[_0x2524c1,_0x2524c1['getFirstRange']()])),_0x42c607=new Set(),_0x4444cb=new Set();for(let _0xed5656=0x0;_0xed5656<_0x5521ba['length'];_0xed5656++)_0x21df80(_0x5521ba[_0xed5656],_0x5521ba,_0xed5656+0x1);for(let _0x49fb36=0x0;_0x49fb36<_0x5521ba['length'];_0x49fb36++)_0x21df80(_0x5521ba[_0x49fb36],_0x20729a,0x0);const _0x219132=new Set();for(let _0x1da84b=0x0;_0x1da84b<_0x5521ba['length'];_0x1da84b++){const _0x2f4734=_0x5521ba[_0x1da84b];!_0x4444cb['has'](_0x2f4734)&&_0x2f4734['previous']&&(_0x219132['add'](_0x2f4734['previous']),_0x2f4734['previous']['next']===_0x2f4734&&(_0x2f4734['previous']['next']=null),_0x2f4734['previous']=null),!_0x42c607['has'](_0x2f4734)&&_0x2f4734['next']&&(_0x219132['add'](_0x2f4734['next']),_0x2f4734['next']['previous']===_0x2f4734&&(_0x2f4734['next']['previous']=null),_0x2f4734['next']=null);}function _0x21df80(_0x43d986,_0x353cc,_0x1f3206){for(let _0xf4c8fc=_0x1f3206;_0xf4c8fc<_0x353cc['length'];_0xf4c8fc++){const _0x129cd9=_0x10a7bf(_0x43d986,_0x353cc[_0xf4c8fc]);_0x129cd9&&(_0x129cd9[0x0]['next']=_0x129cd9[0x1],_0x129cd9[0x1]['previous']=_0x129cd9[0x0],_0x42c607['add'](_0x129cd9[0x0]),_0x4444cb['add'](_0x129cd9[0x1]));}}function _0x10a7bf(_0x84cb2e,_0x36e6b6){if(_0x84cb2e['author']['id']!==_0x36e6b6['author']['id'])return null;const _0x2f4af4=_0x2bfeea['get'](_0x84cb2e)(_0x84cb2e,_0x36e6b6,_0x17fcdc['get'](_0x84cb2e),_0x17fcdc['get'](_0x36e6b6));if(!_0x2f4af4)return null;return _0x2bfeea['get'](_0x36e6b6)(_0x84cb2e,_0x36e6b6,_0x17fcdc['get'](_0x84cb2e),_0x17fcdc['get'](_0x36e6b6))?_0x2f4af4[0x1]['commentThread']&&_0x2f4af4[0x1]['commentThread']['length']?null:_0x2f4af4:null;}_0x219132['size']&&this['_refreshSuggestionsChain'](_0x219132);}['_refreshAttributeSuggestionsChain'](_0x1f59be){if(0x0==_0x1f59be['length'])return;const _0x25fded=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x32fc82=>'attribute'==_0x32fc82['type']&&_0x32fc82['_isDataLoaded']),_0x2ff640=[],_0x330b46=new Map();for(const _0x1a979e of _0x25fded){const _0x2cbfde=_0x2e8bbb(_0x1a979e['attributes']);_0x330b46['has'](_0x2cbfde)||(_0x330b46['set'](_0x2cbfde,_0x2ff640['length']),_0x2ff640['push']([]));const _0x55ce7b=_0x330b46['get'](_0x2cbfde);_0x2ff640[_0x55ce7b]['push'](_0x1a979e);}!(function(){_0x2ff640['sort']((_0x48244b,_0x34d50f)=>{const _0x38daa8=_0x48244b[0x0]['createdAt'],_0x579a41=_0x34d50f[0x0]['createdAt'];return _0x38daa8==_0x579a41?_0x48244b[0x0]['attributes']['groupId']<_0x34d50f[0x0]['attributes']['groupId']?-0x1:0x1:_0x38daa8<_0x579a41?-0x1:0x1;});for(const _0x2a1984 of _0x2ff640)_0x2a1984['sort']((_0x5ad8e4,_0x12e9a7)=>_0x5ad8e4['id']<_0x12e9a7['id']?-0x1:0x1);}());for(let _0x56aca1=0x0;_0x56aca1<_0x2ff640['length'];_0x56aca1++){if(0x0==_0x2ff640[_0x56aca1]['length'])continue;const _0x258c36=[];for(let _0x557f9f=_0x56aca1+0x1;_0x557f9f<_0x2ff640['length'];_0x557f9f++)0x0!=_0x2ff640[_0x557f9f]['length']&&_0x18bece(_0x2ff640[_0x56aca1],_0x2ff640[_0x557f9f])&&_0x258c36['push'](_0x557f9f);for(const _0x547681 of _0x258c36)_0x2ff640[_0x56aca1]=_0x2ff640[_0x56aca1]['concat'](_0x2ff640[_0x547681]),_0x2ff640[_0x547681]=[];}for(const _0x28cb80 of _0x2ff640)for(let _0x2446bb=0x0;_0x2446bb<_0x28cb80['length'];_0x2446bb++){const _0x583fbe=_0x28cb80[_0x2446bb+0x1]||null;_0x28cb80[_0x2446bb]['next']!==_0x583fbe&&(_0x28cb80[_0x2446bb]['next']=_0x583fbe);}for(const _0x1b2d99 of _0x2ff640)for(let _0x92eaf9=0x0;_0x92eaf9<_0x1b2d99['length'];_0x92eaf9++){const _0x1b2717=_0x1b2d99[_0x92eaf9-0x1]||null;_0x1b2d99[_0x92eaf9]['previous']!==_0x1b2717&&(_0x1b2d99[_0x92eaf9]['previous']=_0x1b2717);}function _0x18bece(_0x17ffad,_0x19217d){if(_0x17ffad[0x0]['attributes']['groupId']!==_0x19217d[0x0]['attributes']['groupId']&&_0x17ffad[0x0]['author']!==_0x19217d[0x0]['author'])return!0x1;if(!function(_0x3c9105,_0x34072b){if(!_0x3c9105['hasComments']&&!_0x34072b['hasComments'])return!0x0;if(_0x3c9105['hasComments']&&_0x34072b['hasComments'])return!0x1;if(_0x3c9105['hasComments']&&_0x34072b['createdAt']<_0x3c9105['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x34072b['hasComments']&&_0x3c9105['createdAt']<_0x34072b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x17ffad[0x0],_0x19217d[0x0]))return!0x1;const _0x3687c4=Ft(_0x17ffad[0x0]['attributes'],['groupId','trackingSessionId']),_0x2701f1=Ft(_0x19217d[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x32e373(_0x3687c4,_0x2701f1))return!0x1;if(_0x17ffad[0x0]['attributes']['groupId']==_0x19217d[0x0]['attributes']['groupId'])return!0x0;if(_0x17ffad[0x0]['attributes']['trackingSessionId']!==_0x19217d[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x17ffad['every'](_0x177e34=>_0x19217d['some'](_0xb83295=>_0x177e34['getFirstRange']()['isEqual'](_0xb83295['getFirstRange']())))&&_0x19217d['every'](_0x4827b8=>_0x17ffad['some'](_0x33e693=>_0x4827b8['getFirstRange']()['isEqual'](_0x33e693['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4d35d0){const _0x346bcc=Array['from'](_0x4d35d0),_0x3aec5c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x58d1f7=_0x3aec5c['filter'](_0x41c59f=>!_0x4d35d0['has'](_0x41c59f)),_0x496eaf=new Map(_0x346bcc['map'](_0x2b722a=>[_0x2b722a,this['_suggestionFactory']['getSuggestionCallback'](_0x2b722a['type'],_0x2b722a['subType'],'join')])),_0x1e7b26=new Map(_0x3aec5c['map'](_0xd5e995=>[_0xd5e995,_0xd5e995['getRanges']()]));for(let _0x2131f5=0x0;_0x2131f5<_0x346bcc['length'];_0x2131f5++){if(_0x497a83(this,_0x346bcc[_0x2131f5],_0x346bcc,_0x2131f5+0x1))return!0x0;}for(let _0x4a05c1=0x0;_0x4a05c1<_0x346bcc['length'];_0x4a05c1++){if(_0x497a83(this,_0x346bcc[_0x4a05c1],_0x58d1f7,0x0))return!0x0;}return!0x1;function _0x497a83(_0x292dc2,_0x57f77d,_0x2f9cb7,_0x245ffb){for(let _0x5a8c02=_0x245ffb;_0x5a8c02<_0x2f9cb7['length'];_0x5a8c02++){const _0x2f52f0=_0x2f9cb7[_0x5a8c02];if(_0x2f52f0['type']!==_0x57f77d['type']||_0x2f52f0['author']['id']!==_0x57f77d['author']['id']||_0x2f52f0['subType']!==_0x57f77d['subType'])continue;if(!Xt(_0x57f77d,_0x2f52f0))continue;if('attribute'==_0x57f77d['type']&&_0x57f77d['data']['oldValue']!=_0x2f52f0['data']['oldValue'])continue;if('attribute'==_0x57f77d['type']&&_0x292dc2['_isBlockAttribute'](_0x57f77d['data']['key']))continue;if('formatBlock'==_0x57f77d['type']){const _0x548250=_0x292dc2['editor']['model'],_0x2b3f4f=_0x57f77d['getContainedElement']();if(_0x2b3f4f&&(_0x548250['schema']['isObject'](_0x2b3f4f)||_0x548250['schema']['isLimit'](_0x2b3f4f)))continue;}const _0x23354e=_0x496eaf['get'](_0x57f77d),_0x4522a7=_0x1e7b26['get'](_0x57f77d),_0x2a2753=_0x1e7b26['get'](_0x2f52f0),_0x56d9d4=_0x57f77d['commentThread']&&_0x57f77d['commentThread']['length'],_0x257e78=_0x2f52f0['commentThread']&&_0x2f52f0['commentThread']['length'];if(!_0x56d9d4&&_0x23354e(_0x2a2753,_0x4522a7))return _0x292dc2['_joinSuggestions'](_0x2f52f0,_0x57f77d),_0x1e7b26['delete'](_0x57f77d),!0x0;if(!_0x257e78&&_0x23354e(_0x4522a7,_0x2a2753))return _0x292dc2['_joinSuggestions'](_0x57f77d,_0x2f52f0),_0x1e7b26['delete'](_0x2f52f0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x56c92b,_0x22cb98){if(_0x56c92b['isMultiRange']){for(const _0x129936 of _0x22cb98['getRanges']())_0x56c92b['addRange'](_0x129936);}else{const _0x32a8dd=_0x22cb98['getFirstRange']()['end'];this['_setSuggestionRange'](_0x56c92b,this['_model']['createRange'](_0x56c92b['getFirstRange']()['start'],_0x32a8dd));}_0x22cb98['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3b749f,_0x36a34d,_0x47d1c4){const _0x2df623=_0x3b749f['startsWith']('format')||_0x3b749f['startsWith']('attribute')?'FORMATTING':_0x3b749f['toUpperCase']();return c(this['editor']['locale'],_0x36a34d+'_'+_0x2df623+'_SUGGESTION_ANNOUNCEMENT',_0x47d1c4);}['_initAriaMarkerChangeAnnouncements'](){const _0x13f819=this['editor'];if(!_0x13f819['ui'])return;const {ariaLiveAnnouncer:_0x2b3152}=_0x13f819['ui'];_0x56b228(this['_model'],({left:_0x5d59f1,entered:_0x4940a7})=>{for(const _0xd5b226 of _0x5d59f1){const {group:_0x129a82,type:_0x331b19}=this['_splitMarkerName'](_0xd5b226['name']);if('suggestion'===_0x129a82){_0x2b3152['announce'](this['_getMarkerAnnouncementText'](_0x331b19,'LEAVE'));break;}}for(const _0x2fee91 of _0x4940a7){const {group:_0x70ecf2,type:_0x1df765}=this['_splitMarkerName'](_0x2fee91['name']);if('suggestion'===_0x70ecf2){_0x2b3152['announce'](this['_getMarkerAnnouncementText'](_0x1df765,'ENTER',_0x1a3183(_0xc83a4)));break;}}});}['_processAttributeChanges'](_0x25f14b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x408e9c=this['editor'],_0x320928=_0x408e9c['model']['document']['differ']['getChanges']();if(0x0==_0x320928['length'])return!0x1;const _0x2fb48e=[],_0x298e8c=_0x320928['filter'](_0x44acd2=>'attribute'==_0x44acd2['type']),_0x443f9c=_0x320928['filter'](_0x165f96=>'insert'==_0x165f96['type']&&'$text'!=_0x165f96['name']),_0x282e0a=_0x320928['filter'](_0x1f2802=>'remove'==_0x1f2802['type']&&'$text'!=_0x1f2802['name']);for(const _0x48a64d of _0x298e8c)_0x2fb48e['push']({'key':_0x48a64d['attributeKey'],'newValue':_0x48a64d['attributeNewValue'],'oldValue':_0x48a64d['attributeOldValue'],'range':zt(_0x48a64d['range'],_0x408e9c['model'])});for(const _0x14a100 of _0x443f9c){const _0x4a4776=_0x282e0a['find'](_0x34a03a=>_0x34a03a['position']['isEqual'](_0x14a100['position']));_0x4a4776&&_0x2fb48e['push']({'key':u,'newValue':_0x14a100['name'],'oldValue':_0x4a4776['name'],'range':_0x408e9c['model']['createRangeOn'](_0x14a100['position']['nodeAfter'])});}return 0x0!=_0x2fb48e['length']&&this['_reduceExistingSuggestions'](_0x25f14b,_0x2fb48e);}['_processAttributeSuggestions'](_0x23705e){let _0x380eb8=!0x1;const _0x109c09=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x52d1e5=>_0x52d1e5['data']['newRange']&&_0x52d1e5['name']['startsWith']('suggestion:attribute:'));for(const _0x40d87c of _0x109c09){const {subType:_0x3a70fe,id:_0x2eee89}=this['_splitMarkerName'](_0x40d87c['name']),_0x4cf900=_0x3a70fe['split']('|')[0x0];for(const _0x14d268 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x14d268['id']!=_0x2eee89&&'attribute'==_0x14d268['type']&&_0x14d268['data']&&_0x14d268['data']['key']==_0x4cf900&&_0x14d268['getFirstRange']()['isIntersecting'](_0x40d87c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x14d268,_0x40d87c['data']['newRange'],_0x23705e),_0x380eb8=!0x0);}return _0x380eb8;}['_recordAttributeChanges'](_0xd0e482){this['_recordAttributeSuggestions']=!0x0,_0xd0e482();}['_isRegisteredAttribute'](_0x56bfa0){const _0x46bcf5=this['_isBlockAttribute'](_0x56bfa0),_0x5b20e0=this['_inlineAttributeKeys']['has'](_0x56bfa0);return _0x46bcf5||_0x5b20e0;}['_reduceExistingSuggestions'](_0x3c6214,_0x33ab05){if(0x0==_0x33ab05['length'])return!0x1;let _0x4097bf=!0x1;for(const _0x1c3b55 of _0x33ab05){const _0x12ef6=this['_findSuggestions'](_0x1c3b55['range'],'attribute')['filter'](_0x531a44=>!_0x531a44['meta']['isNextTo'])['map'](_0x1d551a=>_0x1d551a['suggestion']),_0x42f99e=_0x2e8bbb({'newValue':_0x1c3b55['newValue']});_0x12ef6['filter'](_0x44ffc9=>{const [_0xda57aa,_0x32f142]=_0x44ffc9['subType']['split']('|');return _0xda57aa==_0x1c3b55['key']&&_0x32f142!=_0x42f99e;})['forEach'](_0x40b358=>{this['_reduceSuggestionAttributeRange'](_0x40b358,_0x1c3b55['range'],_0x3c6214),_0x4097bf=!0x0;});}return _0x4097bf;}['_reduceSuggestionAttributeRange'](_0x4e53e5,_0x30b471,_0x1c2e82){const _0x240de8=_0x4e53e5['getFirstRange']()['getDifference'](_0x30b471);0x0!==_0x240de8['length']?0x1!==_0x240de8['length']?this['_breakSuggestionMarker'](_0x4e53e5,_0x30b471['start'],_0x30b471['end']):this['_setSuggestionRange'](_0x4e53e5,_0x240de8[0x0]):_0x1c2e82['removeMarker'](_0x4e53e5['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x54c9ee){this['_editor']=_0x54c9ee,this['_model']=_0x54c9ee['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3470c9,_0x32fda6,_0x5f3017,_0x1c0b69,_0x2db4e0,_0x540fd2,_0x5c7308){return new o(this['_model'],{'type':_0x3470c9,'subType':_0x32fda6,'id':_0x5f3017,'originalSuggestionId':_0x5c7308,'author':_0x1c0b69,'creator':_0x1c0b69,'attributes':_0x2db4e0,'onAttributesChange':_0x540fd2,'onAccept':(..._0x50d421)=>this['getSuggestionCallback'](_0x3470c9,_0x32fda6,'accept')(..._0x50d421),'onDiscard':(..._0x313878)=>this['getSuggestionCallback'](_0x3470c9,_0x32fda6,'discard')(..._0x313878)});}['registerCustomCallback'](_0x2bedcb,_0x2e12b2,_0x99aaca,_0x36ce3b){const _0x4b0d2e=_0x2bedcb+':'+_0x2e12b2+':'+_0x99aaca;this['_customCallbacks']['set'](_0x4b0d2e,_0x36ce3b);}['getSuggestionCallback'](_0x225a9c,_0x3f45d7,_0x3303d2){const _0x154211=_0x225a9c+':'+_0x3f45d7+':'+_0x3303d2;return this['_customCallbacks']['get'](_0x154211)||this['_defaultCallbacks']['get'](_0x225a9c+':'+_0x3303d2);}['_registerDefaultCallbacks'](){const _0xb5f5d2=()=>!0x1,_0x3401c1=_0x6206ad=>{_0x6206ad['sort']((_0x423b42,_0x559dad)=>_0x423b42['start']['isBefore'](_0x559dad['start'])?0x1:-0x1),this['_model']['change'](_0x34a7a0=>{for(const _0x4bf307 of _0x6206ad){let _0xa705e5;_0xa705e5=_0x4bf307['end']['isAtEnd']&&_0x4bf307['end']['parent']==_0x4bf307['start']['nodeAfter']?_0x34a7a0['createSelection'](_0x4bf307['start']['nodeAfter'],'on'):_0x34a7a0['createSelection'](_0x4bf307),this['_model']['deleteContent'](_0xa705e5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x226b29=(_0x277669,_0x1a69d2)=>{_0x1a69d2&&this['_model']['change'](_0x3c1184=>{const {commandName:_0x18afdd,commandParams:_0x2a8306=[]}=_0x1a69d2,_0x23b88c=_0x277669['map'](_0xd6fb71=>(Lt(_0xd6fb71)&&(_0xd6fb71=this['_model']['createRange'](_0xd6fb71['end'])),_0xd6fb71))['filter'](_0x2f9ec8=>'$graveyard'!==_0x2f9ec8['root']['rootName']);if(_0x23b88c['length']<0x1)return;const _0xe2aa75=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x46e16a=>_0x1d9e5c['fromRange'](_0x46e16a));_0x3c1184['setSelection'](_0x23b88c);for(const _0x1f43e6 of this['_editor']['commands']['commands']())_0x1f43e6['refresh']();_0x2a8306['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x18afdd,..._0x2a8306);const _0x2cb45b=_0xe2aa75['filter'](_0x142522=>'$graveyard'!=_0x142522['root']['rootName']);_0x2cb45b['length']>0x0&&_0x3c1184['setSelection'](_0x2cb45b);for(const _0xaefa1 of _0xe2aa75)_0xaefa1['detach']();});},_0x145a79=(_0x2e80b1,_0x41f711)=>0x1==_0x2e80b1['length']&&0x1==_0x41f711['length']&&_0x2e80b1[0x0]['end']['isEqual'](_0x41f711[0x0]['start']),_0x27d37b=(_0x48946c,_0x960dc3,_0x485f76,_0x33ad48)=>Qt(_0x48946c,_0x960dc3,_0x485f76,_0x33ad48)?[_0x48946c,_0x960dc3]:Qt(_0x960dc3,_0x48946c,_0x33ad48,_0x485f76)?[_0x960dc3,_0x48946c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xb5f5d2),this['_defaultCallbacks']['set']('insertion:discard',_0x3401c1),this['_defaultCallbacks']['set']('insertion:join',_0x145a79),this['_defaultCallbacks']['set']('insertion:chain',_0x27d37b),this['_defaultCallbacks']['set']('deletion:accept',_0x3401c1),this['_defaultCallbacks']['set']('deletion:discard',_0xb5f5d2),this['_defaultCallbacks']['set']('deletion:join',_0x145a79),this['_defaultCallbacks']['set']('deletion:chain',_0x27d37b),this['_defaultCallbacks']['set']('formatInline:accept',_0x226b29),this['_defaultCallbacks']['set']('formatInline:discard',_0xb5f5d2),this['_defaultCallbacks']['set']('formatInline:join',_0x145a79),this['_defaultCallbacks']['set']('formatInline:chain',_0xb5f5d2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x226b29),this['_defaultCallbacks']['set']('formatBlock:discard',_0xb5f5d2),this['_defaultCallbacks']['set']('formatBlock:join',_0x145a79),this['_defaultCallbacks']['set']('formatBlock:chain',_0xb5f5d2),this['_defaultCallbacks']['set']('attribute:accept',_0xb5f5d2),this['_defaultCallbacks']['set']('attribute:discard',(_0x55e81b,_0x405571)=>{if(!_0x405571)return;const _0x15a9fc=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1d75a7=>{if(_0x405571['key']==u)for(const _0x5c8ab0 of _0x55e81b){const _0x9e4a10=_0x5c8ab0['start']['nodeAfter'],_0x10c8c7=_0x405571['oldValue'];_0x1d75a7['rename'](_0x9e4a10,_0x10c8c7);}else{if(_0x15a9fc['_isBlockAttribute'](_0x405571['key'])){for(const _0x1f6e2b of _0x55e81b)void 0x0!==_0x405571['oldValue']?_0x1d75a7['setAttribute'](_0x405571['key'],_0x405571['oldValue'],_0x1f6e2b['start']['nodeAfter']):_0x1d75a7['removeAttribute'](_0x405571['key'],_0x1f6e2b['start']['nodeAfter']);}else{for(const _0x1b989e of _0x55e81b)_0x405571['oldValue']?_0x1d75a7['setAttribute'](_0x405571['key'],_0x405571['oldValue'],_0x1b989e):_0x1d75a7['removeAttribute'](_0x405571['key'],_0x1b989e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x145a79);}}function Gt(_0x596197,_0x35c69b,_0x1382ba){for(const _0x57f3ad of _0x35c69b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x57f3ad['root']==_0x57f3ad)return!0x1;if(!_0x1382ba['containsItem'](_0x57f3ad))return!0x1;if(_0x596197['isObject'](_0x57f3ad)||_0x596197['isLimit'](_0x57f3ad))return!0x0;}return!0x1;}function Lt(_0x497fb2){return _0x497fb2['end']['parent']==_0x497fb2['start']['nodeAfter']&&_0x497fb2['end']['isAtStart'];}function Jt(_0x3b1f69,_0x3a4a3a,_0x2e379a,_0x34a6a2){const _0x8d80b4=_0x568d63=>!_0x568d63['item']['is']('$textProxy')&&!_0x34a6a2['isObject'](_0x568d63['item']),_0x4165bf=_0x3b1f69['start']['getLastMatchingPosition'](_0x8d80b4),_0x38a845=_0x3b1f69['end']['getLastMatchingPosition'](_0x8d80b4,{'direction':'backward'});return(!_0x3b1f69['start']['isEqual'](_0x4165bf)||!_0x3b1f69['end']['isEqual'](_0x38a845))&&(_0x4165bf['isBefore'](_0x38a845)?_0x2e379a['updateMarker'](_0x3a4a3a,{'range':_0x2e379a['createRange'](_0x4165bf,_0x38a845)}):_0x2e379a['removeMarker'](_0x3a4a3a),!0x0);}function Kt(_0x595a7e){return _0x2e8bbb(_0x595a7e);}function Ht(_0x4979fa){const _0x26d2b2=_0x4979fa['start']['nodeAfter'];return _0x26d2b2&&_0x26d2b2['is']('element');}function qt(_0x35b18f){return!Lt(_0x35b18f)&&!function(_0x442021){return _0x442021['start']['parent']==_0x442021['end']['nodeBefore']&&_0x442021['start']['isAtEnd'];}(_0x35b18f);}function zt(_0xe9860e,_0x464ab7){return null==_0xe9860e['end']['nodeBefore']&&_0xe9860e['end']['parent']==_0xe9860e['start']['nodeAfter']?Wt(_0xe9860e['start']['nodeAfter'],_0x464ab7):_0xe9860e;}function Wt(_0x5027a9,_0x55f631){const _0x50bde5=_0x55f631['schema']['isObject'](_0x5027a9)||_0x55f631['schema']['isSelectable'](_0x5027a9);return _0x55f631['createRange'](_0x55f631['createPositionAt'](_0x5027a9,'before'),_0x50bde5?_0x55f631['createPositionAfter'](_0x5027a9):_0x55f631['createPositionAt'](_0x5027a9,'end'));}function Qt(_0x19766c,_0x1eb471,_0x2cbb37,_0x39c979){return!!Xt(_0x19766c,_0x1eb471)&&_0x2cbb37['end']['isEqual'](_0x39c979['start']);}function Xt(_0x36ce56,_0x43fee5){if(!_0x36ce56['_isDataLoaded']||!_0x43fee5['_isDataLoaded'])return!0x1;const _0x4e4bbd=new Set(Object['keys'](_0x36ce56['attributes'])),_0xebbc9e=new Set(Object['keys'](_0x43fee5['attributes']));if(_0x4e4bbd['delete']('groupId'),_0xebbc9e['delete']('groupId'),0x0==_0x4e4bbd['size']&&0x0==_0xebbc9e['size'])return!0x0;if(_0x4e4bbd['size']!=_0xebbc9e['size'])return!0x1;const _0xa8b873={..._0x36ce56['attributes']},_0x503255={..._0x43fee5['attributes']};return delete _0xa8b873['groupId'],delete _0x503255['groupId'],JSON['stringify'](_0xa8b873)==JSON['stringify'](_0x503255);}function Yt(_0x112d08,_0xeed12c){const _0x4d0e59=Zt(_0x112d08['attributes']),_0x26183c=Zt(_0xeed12c);if(!_0x112d08['_isDataLoaded'])return!0x1;for(const _0x1d4b0e of Object['keys'](_0x26183c))if(!_0x32e373(_0x4d0e59[_0x1d4b0e],_0x26183c[_0x1d4b0e]))return!0x1;return!0x0;}function Zt(_0x323c0b){const _0x12f1e7=Object['assign']({},_0x323c0b);return delete _0x12f1e7['skipNestingCheck'],delete _0x12f1e7['tablePasteChainId'],_0x12f1e7;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x48291f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x9174ee,_0x3c7ed8,_0x2804d2,_0x3ebc1a){super(),this['model']=_0x3c7ed8,this['view']=_0x2804d2,this['commentThreadController']=_0x3ebc1a,this['_editor']=_0x9174ee,this['_acceptCommand']=_0x9174ee['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x9174ee['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4e5cec,_0x557850)=>_0x4e5cec||_0x557850),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x24eb6a=>_0x24eb6a&&this['_editor']['model']['canEditAt'](_0x3c7ed8['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x19bf61=>_0x19bf61&&this['_editor']['model']['canEditAt'](_0x3c7ed8['getRanges']())),this['_pendingAction']=null,_0x2804d2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2804d2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2804d2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2804d2,'change:isDirty',()=>{_0x2804d2['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 _0x115bf2=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x115bf2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5ef96c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x77e70b,_0x3320f1,_0x3e686f,_0x383904){super(_0x77e70b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xb6480(_0x77e70b,c(_0x77e70b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3320f1['authoredAt']),this['bind']('authoredAt')['to'](_0x3320f1),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',_0x3320f1,'authoredAt',this,'descriptionParts',(_0x45af2f,_0x2ce628,_0x5d71f4)=>{const _0x4821a2=_0x5d71f4['map'](_0x1ba0e1=>ls(_0x1ba0e1['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x45af2f-0x1,_0x3320f1['author']['name'],_0x2ce628?_0x383904['formatDateTime'](_0x2ce628):'',new DOMParser()['parseFromString'](_0x4821a2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x578fc8(),this['focusTracker']=new _0x3b0299(),this['keystrokes']=new _0x2075d1(),this['focusCycler']=new _0x559fa8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x214495=>_0x214495['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3320f1,this['_localUser']=_0x3e686f,this['_config']=_0x383904,_0x383904['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x883de9(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x214065}=this['_config'];this['commentsListView']=new _0x214065(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',_0x22d021=>_0x22d021+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5199e2,_0x31b131)=>_0x5199e2||!!_0x31b131);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3ed7da}=this['_config'],_0x4115ab=new _0x3ed7da(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xe8c3dd=_0x4115ab['commentInputView'];return _0x4115ab['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xe8c3dd,'value',(_0x49711e,_0x490ff2,_0x45c8a5)=>!!_0x45c8a5||_0x49711e&&!_0x490ff2),_0xe8c3dd['on']('submit',(_0x70658a,_0x2a0c5b)=>{this['fire']('addComment',_0x2a0c5b),_0xe8c3dd['editor']['setData']('');}),_0xe8c3dd['on']('cancel',()=>this['focus']()),_0xe8c3dd['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4115ab;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x320fee,_0x43f9f8,_0x3307e4,_0x3e803c){super(_0x320fee,_0x43f9f8,_0x3307e4,_0x3e803c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x13eec3=>_0x13eec3&&_0x13eec3[0x0]?_0x13eec3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4cc4fc,_0x22561b)=>{let _0x10d847='';for(const _0x430ed9 of _0x4cc4fc)_0x10d847+='<p>'+ls(_0x430ed9['content'],_0x430ed9['color'])+'</p>';return _0x22561b?_0x10d847:_0x1e5bab(_0x10d847,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3e803c['SuggestionView'](_0x320fee,_0x43f9f8,{'formatDateTime':_0x3e803c['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 _0x27ead1=this['bindTemplate'],_0x42a703=[this['suggestionView']];return this['commentsListView']&&_0x42a703['push'](this['commentsListView']),this['commentThreadInputView']&&_0x42a703['push'](this['commentThreadInputView']),_0x42a703['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x27ead1['if']('isActive','ck-suggestion-wrapper--active'),_0x27ead1['to']('type',_0x21d836=>'ck-suggestion-'+_0x21d836),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':_0x27ead1['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x42a703};}['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 _0x5ef96c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x383d45,_0xa89f73,_0x3da8a7){super(_0x383d45),this['_model']=_0xa89f73,this['_config']=_0x3da8a7,this['set']('description',''),this['bind']('authoredAt')['to'](_0xa89f73),this['acceptButton']=this['_createButton'](c(_0x383d45,'Accept\x20suggestion'),_0x2825d1,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x383d45,'Discard\x20suggestion'),_0x187575,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x177539(_0x383d45,_0xa89f73['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x578fc8([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3b0299(),this['keystrokes']=new _0x2075d1(),this['focusCycler']=new _0x559fa8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3cdc00=>_0x3cdc00['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1a75b9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1a75b9['innerHTML']=this['description'],this['on']('change:description',(_0x4686a5,_0x207392,_0x4924af)=>{_0x1a75b9['innerHTML']=_0x4924af;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1c18ec=this['bindTemplate'],_0x4196d9=[{'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':_0x1c18ec['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1c18ec['to']('authoredAt',_0x58c85f=>this['_config']['formatDateTime'](_0x58c85f))}]}]},{'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']&&_0x4196d9['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':_0x4196d9}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x32dda9,_0x239f99,_0x7f2eb2,_0x46a0dc,_0x599124){const _0xcfd89e=new _0x4b6595(this['locale']);return _0xcfd89e['set']({'label':_0x32dda9,'icon':_0x239f99,'tooltip':!0x0,'tooltipPosition':_0x599124}),_0xcfd89e['extendTemplate']({'attributes':{'class':_0x7f2eb2}}),_0xcfd89e['on']('execute',()=>{this['fire'](_0x46a0dc,this['_model']['id']);}),_0xcfd89e;}['_setupKeyboardNavigation'](){const _0x124cdf=this['element'];this['keystrokes']['listenTo'](_0x124cdf);for(const _0x4f5dbb of this['focusables'])this['focusTracker']['add'](_0x4f5dbb['element']),this['keystrokes']['listenTo'](_0x4f5dbb['element']);this['keystrokes']['set']('enter',(_0x337d88,_0x24461a)=>{_0x124cdf===_0x337d88['target']&&(this['focusCycler']['focusFirst'](),_0x24461a());}),this['keystrokes']['set']('esc',(_0x207b87,_0x6e01d5)=>{_0x124cdf!==_0x207b87['target']&&(this['focus'](),_0x6e01d5());});}}class d extends _0x145e1e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x52a7a7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27d4ea){super(_0x27d4ea),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x26ca3c=this['editor']['config'];_0x26ca3c['define']('trackChanges.SuggestionThreadView',fe),_0x26ca3c['define']('trackChanges.SuggestionView',we),_0x26ca3c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x26ca3c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2f0b05,_0xd6fb82){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1c53ae,_0x4b430f]of this['_handleControllerBuffer']){const _0xf5ad11=this['_suggestionToController']['has'](_0x1c53ae);_0xf5ad11||_0x4b430f?_0xf5ad11&&_0x4b430f&&this['_destroyController'](_0x1c53ae):this['_initializeController'](_0x1c53ae);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2f0b05,_0xd6fb82);}['init'](){const _0xe0aeea=this['editor'],_0x566a90=_0xe0aeea['plugins']['get']('TrackChangesEditing'),_0x4f5b4f=_0xe0aeea['plugins']['get']('Annotations'),_0x4dd168=_0xe0aeea['plugins']['get']('EditorAnnotations'),_0x3e4665=_0xe0aeea['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4dd168['addSourceCollector'](()=>{const _0xc425ed=[];for(const [_0x42d327,_0x2f45d7]of Array['from'](this['_suggestionToController'])){const _0x227e8f=_0x42d327['getAllAdjacentSuggestions'](),_0x41eb6f=[];for(const _0x26e357 of _0x227e8f){if(!_0x26e357['isInContent'])continue;if(_0x26e357['isMultiRange']){_0x41eb6f['push'](..._0x26e357['getRanges']());continue;}const _0x1bf887=_0x26e357['getFirstRange']();if(_0x41eb6f['length']>0x0){const _0x4fe4b8=_0x41eb6f[0x0]['getJoined'](_0x1bf887);if(_0x4fe4b8){_0x41eb6f[0x0]=_0x4fe4b8;continue;}}_0x41eb6f['push'](_0x1bf887);}_0xc425ed['push']([_0x2f45d7['view'],_0x41eb6f]);}return _0xc425ed;}),this['listenTo'](_0x566a90,'suggestionLoaded',(_0x53e6b4,_0x3f7cf5)=>{this['listenTo'](_0x3f7cf5,'change:previous',(_0x3bf44c,_0x21b976,_0x215ab4,_0x1776be)=>{_0x3f7cf5['isInContent']&&(null==_0x215ab4?(this['_updateController'](_0x1776be['head']),this['_handleSuggestionControllerDelayed'](_0x3f7cf5,!0x1)):(this['_updateController'](_0x215ab4['head']),null==_0x1776be&&this['_handleSuggestionControllerDelayed'](_0x3f7cf5,!0x0)));}),null!==_0x3f7cf5['previous']?this['_updateController'](_0x3f7cf5['head']):this['_handleSuggestionControllerDelayed'](_0x3f7cf5,!0x1);}),this['listenTo'](_0x566a90,'suggestionUnloaded',(_0x19505a,_0x25eea6,_0x39267f)=>{this['stopListening'](_0x25eea6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x25eea6),this['_suggestionToController']['has'](_0x25eea6)&&this['_destroyController'](_0x25eea6),_0x39267f&&this['_updateController'](_0x39267f['head']);}),this['listenTo'](_0x566a90,'suggestionChanged',(_0x326668,_0x4fccb5)=>{this['_updateController'](_0x4fccb5);}),this['listenTo'](_0x4f5b4f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3e4665,'addComment',(_0x4f12a2,{threadId:_0x391f83,isFromAdapter:_0x2f9626})=>{if(_0x2f9626||!_0x566a90['hasSuggestion'](_0x391f83))return;const _0x3fa571=_0x566a90['getSuggestion'](_0x391f83);this['_suggestionToController']['get'](_0x3fa571)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x55f23a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b9acb;for(const _0x4480e7 in _0x55f23a){const _0x2c35c5=_0x4480e7,_0x39425d=_0x55f23a[_0x2c35c5];if('trackChangesLicenseKeyValid'==_0x39425d||'trackChangesLicenseKeyInvalid'==_0x39425d||'trackChangesLicenseKeyExpired'==_0x39425d||'trackChangesLicenseKeyDomainLimit'==_0x39425d||'trackChangesLicenseKeyNotAllowed'==_0x39425d||'trackChangesLicenseKeyEvaluationLimit'==_0x39425d||'trackChangesLicenseKeyTrialLimit'==_0x39425d||'trackChangesLicenseKeyUsageLimit'==_0x39425d){delete _0x55f23a[_0x2c35c5],_0x1b9acb=_0x39425d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1b9acb&&_0x55f23a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1b9acb&&_0x55f23a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1b9acb&&_0x55f23a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1b9acb&&_0x55f23a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1b9acb&&_0x55f23a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1b9acb&&_0x55f23a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1b9acb&&_0x55f23a['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2bcf59=this['editor']['plugins']['get']('Annotations'),_0x962b61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x355e7d=Array['from'](_0x2bcf59['activeAnnotations'],_0x317dee=>_0x317dee['innerView'])['filter'](_0x82c193=>this['_viewToController']['has'](_0x82c193)),_0x2adc27=[];for(const _0x7931a7 of _0x355e7d){const _0x370465=this['_viewToController']['get'](_0x7931a7)['model']['getAllAdjacentSuggestions']();_0x2adc27['push'](..._0x370465['reduce']((_0x104b89,_0xacfc66)=>[..._0x104b89,..._0xacfc66['getMarkerNames']()],[]));}_0x962b61['activeMarkers']=_0x2adc27;}['_addUIComponentsToFactory'](){const _0x49be30=this['editor'],_0x4cf2e7=_0x49be30['locale'],_0x24d99d=c(_0x4cf2e7,'Track\x20changes'),_0x3b0c6d=new _0x303b8b([{'type':'switchbutton','model':new _0x2d86d1({'withText':!0x0,'isToggleable':!0x0,'label':_0x24d99d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2d86d1({'withText':!0x0,'label':c(_0x4cf2e7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d86d1({'withText':!0x0,'label':c(_0x4cf2e7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d86d1({'withText':!0x0,'label':c(_0x4cf2e7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d86d1({'withText':!0x0,'label':c(_0x4cf2e7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x49be30['plugins']['has']('TrackChangesPreview')&&_0x3b0c6d['addMany']([{'type':'separator'},{'type':'button','model':new _0x2d86d1({'withText':!0x0,'label':c(_0x4cf2e7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x63564 of _0x3b0c6d)if(ke(_0x63564)){const _0x1d8525=_0x49be30['commands']['get'](_0x63564['model']['commandName']);_0x63564['model']['bind']('isOn','isEnabled')['to'](_0x1d8525,'value','isEnabled');}_0x49be30['ui']['componentFactory']['add']('trackChanges',_0x4e3682=>this['_createToolbarButton'](_0x4e3682,_0x3b0c6d,_0x24d99d)),_0x49be30['ui']['componentFactory']['add']('menuBar:trackChanges',_0xad9bfc=>this['_createMenuBarMenu'](_0xad9bfc,_0x3b0c6d,_0x24d99d));}['_createToolbarButton'](_0x29c0ae,_0x5dd854,_0x4f4874){const _0x5a4ae5=_0x407968(_0x29c0ae,_0x5019a0),_0x1b8fe5=this['editor']['commands']['get']('trackChanges');_0x5a4ae5['buttonView']['set']({'tooltip':_0x4f4874,'label':_0x4f4874,'icon':_0x52450a}),_0x5a4ae5['buttonView']['bind']('isOn')['to'](_0x1b8fe5,'value'),_0x5a4ae5['buttonView']['on']('execute',()=>{_0x1b8fe5['execute'](),this['editor']['editing']['view']['focus']();}),_0x200f5c(_0x5a4ae5,_0x5dd854,{'role':'menu'});const _0x1d48ca=[];for(const _0x266f47 of _0x5dd854)ke(_0x266f47)&&_0x1d48ca['push'](this['editor']['commands']['get'](_0x266f47['model']['commandName']));const _0x3ff01a=_0x5a4ae5['buttonView'];return _0x3ff01a['actionView']['unbind']('isEnabled'),_0x3ff01a['arrowView']['unbind']('isEnabled'),_0x3ff01a['actionView']['bind']('isEnabled')['to'](_0x1b8fe5,'isEnabled'),_0x3ff01a['arrowView']['bind']('isEnabled')['toMany'](_0x1d48ca,'isEnabled',(..._0x10c141)=>_0x10c141['some'](_0xce6d7c=>_0xce6d7c)),_0x5a4ae5['on']('execute',_0x131014=>{this['editor']['execute'](_0x131014['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5a4ae5;}['_createMenuBarMenu'](_0x479753,_0x1f85f4,_0x40f28e){const _0x1728a5=new _0x307a6f(_0x479753),_0x177f8e=this['editor']['commands']['get']('trackChanges');_0x1728a5['buttonView']['set']({'label':_0x40f28e,'icon':_0x52450a});const _0x358e40=new _0x46ea1e(_0x479753);for(const _0x2dfb7f of _0x1f85f4){if('separator'==_0x2dfb7f['type']){_0x358e40['items']['add'](new _0x48255e(_0x479753));continue;}const _0x9f5f16=new _0x5caa27(_0x479753,_0x1728a5),_0x8c1d0b=new _0x4cb07a(_0x479753),_0x235aac=_0x2dfb7f['model'];_0x8c1d0b['bind'](...Object['keys'](_0x235aac))['to'](_0x235aac),_0x8c1d0b['delegate']('execute')['to'](_0x1728a5),_0x8c1d0b['on']('execute',()=>{this['editor']['execute'](_0x235aac['commandName']),this['editor']['editing']['view']['focus']();}),_0x9f5f16['children']['add'](_0x8c1d0b),_0x358e40['items']['add'](_0x9f5f16);}return _0x1728a5['bind']('isEnabled')['to'](_0x177f8e,'isEnabled'),_0x1728a5['panelView']['children']['add'](_0x358e40),_0x1728a5;}['_initializeController'](_0x23ef25){const _0x156c66=this['editor'],_0x161f41=_0x156c66['config'],_0x5af34c=_0x156c66['plugins']['get']('Annotations'),_0x118ec2=_0x156c66['plugins']['get']('CommentsRepository'),_0x37d31a=_0x156c66['plugins']['get']('EditorAnnotations'),_0x1459e6=_0x156c66['plugins']['get'](_0x52a7a7)['me'],_0x153af0=_0x161f41['get']('trackChanges')['SuggestionThreadView'],_0x5092a1=_0x161f41['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x457650,CommentThreadInputView:_0x255e84}=_0x156c66['plugins']['get']('CommentsUI');let _0x1eb77a,_0x1e981e,_0x5a6f5e;this['_annotationViews']['has'](_0x23ef25['id'])?(_0x1e981e=this['_annotationViews']['get'](_0x23ef25['id']),_0x1eb77a=_0x1e981e['mainView']):(_0x1eb77a=new _0x153af0(_0x156c66['locale'],_0x23ef25,_0x1459e6,{'disableComments':this['_disableComments'],'editorConfig':{..._0x161f41['get']('comments.editorConfig'),'licenseKey':_0x161f41['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x161f41['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x161f41['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x161f41['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x54e688(_0x161f41['get']('locale'),_0x156c66['locale']),'CommentView':_0x161f41['get']('comments')['CommentView'],'CommentsListView':_0x457650,'CommentThreadInputView':_0x255e84,'SuggestionView':_0x5092a1}),_0x1eb77a['suggestionView']['acceptButton']['on']('execute',()=>{_0x156c66['editing']['view']['focus']();}),_0x1eb77a['suggestionView']['discardButton']['on']('execute',()=>{_0x156c66['editing']['view']['focus']();}),_0x1e981e=_0x5af34c['createAnnotationView'](this['editor']['locale'],_0x1eb77a),_0x1e981e['bind']('isDirty')['to'](_0x1eb77a,'isDirty'),_0x1e981e['bind']('length')['to'](_0x1eb77a),_0x1e981e['bind']('type')['to'](_0x1eb77a,'type',_0xe60d54=>'suggestion-'+_0xe60d54),_0x1eb77a['on']('escape',()=>{_0x5a6f5e['fire']('escape');}),this['_annotationViews']['set'](_0x23ef25['id'],_0x1e981e));const _0x21e0c2=_0x118ec2['createCommentThreadController'](_0x23ef25['commentThread'],_0x1eb77a),_0x57544c=new pe(_0x156c66,_0x23ef25,_0x1eb77a,_0x21e0c2),_0x50e118=_0x23ef25['getAllAdjacentSuggestions']()['filter'](_0x50c5de=>_0x50c5de['isInContent']);_0x1eb77a['descriptionParts']=_0x156c66['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x50e118),this['_suggestionToController']['set'](_0x23ef25,_0x57544c),this['_viewToController']['set'](_0x1eb77a,_0x57544c),_0x5a6f5e=_0x5af34c['createAnnotation']({'view':_0x1e981e,'target':()=>{const _0x14bdd1=[],_0x24d284=_0x23ef25['getAllAdjacentSuggestions']()['filter'](_0x1dcb7d=>_0x1dcb7d['isInContent']);for(const _0x3ecfb2 of _0x24d284)_0x14bdd1['push'](..._0x3ecfb2['getMarkers']());return _0x30a813(_0x156c66['editing'],_0x14bdd1);},'type':()=>'suggestion-'+_0x57544c['view']['type']}),_0x118ec2['_bindAnnotationToEditors'](_0x1eb77a,_0x5a6f5e),_0x5af34c['add'](_0x5a6f5e),_0x37d31a['registerAnnotation'](_0x5a6f5e);}['_destroyController'](_0x3ecadb){const _0x2119e6=this['editor']['plugins']['get']('CommentsRepository'),_0x51b125=this['editor']['plugins']['get']('Annotations'),_0x6a2093=this['_suggestionToController']['get'](_0x3ecadb),_0x6e34ea=_0x6a2093['view'],_0x11adbd=_0x51b125['getByInnerView'](_0x6e34ea);_0x2119e6['_unbindEditors'](_0x6e34ea),_0x11adbd&&_0x51b125['remove'](_0x11adbd),this['_suggestionToController']['delete'](_0x3ecadb),this['_viewToController']['delete'](_0x6e34ea),_0x6a2093['destroy']();}['_updateController'](_0x505b46){if(!_0x505b46['isInContent']||!this['_suggestionToController']['has'](_0x505b46))return;const _0x3120ab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bd7be=this['_suggestionToController']['get'](_0x505b46),_0x5af3bf=_0x505b46['getAllAdjacentSuggestions']();_0x5bd7be['view']['descriptionParts']=_0x3120ab['descriptionFactory']['getDescriptions'](_0x5af3bf);}['destroy'](){for(const _0x473714 of this['_suggestionToController']['keys']())this['_destroyController'](_0x473714);for(const _0x243705 of this['_annotationViews']['values']())_0x243705['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x23712f){return'model'in _0x23712f;}class k extends _0x145e1e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x547499){this['editor']['plugins']['get'](p)['adapter']=_0x547499;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x34df41){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x34df41);}['getSuggestions']({skipNotAttached:_0x45dc8e=!0x1,toJSON:_0x3e3d75=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x45dc8e,'toJSON':_0x3e3d75});}['getSuggestion'](_0x124cad){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x124cad);}}const w=['Pagination'];class T extends _0x145e1e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4d45ee=this['editor'];if(_0x4d45ee['config']['define']('trackChangesData.editorCreator',_0xc8725d=>{const _0x2030bc=_0x4d45ee['model']['document']['getRootNames']()['reduce']((_0x2ce49f,_0x3b2653)=>(_0x2ce49f[_0x3b2653]='',_0x2ce49f),{});return _0x4d45ee['constructor']['create'](_0x2030bc,_0xc8725d);}),'function'!=typeof _0x4d45ee['config']['get']('trackChangesData')['editorCreator'])throw new _0x23f610('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x307356){return N(this['editor'],!0x0,_0x307356);}['getDataWithDiscardedSuggestions'](_0x34ae06){return N(this['editor'],!0x1,_0x34ae06);}}class D extends _0x145e1e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xec2df6){function _0x409b17(_0x1bd82f){return _0x1bd82f['map'](_0x342808=>String['fromCharCode'](_0x342808))['join']('');}super(_0xec2df6),this['result']='end',_0xec2df6[_0x409b17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x409b17([0x76,0x69,0x65,0x77])][_0x409b17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x409b17([0x61,0x75,0x74,0x6f]),_0xec2df6[_0x409b17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x409b17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x409b17([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x409b17([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x409b17([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 Ge(_0x3fff9c){return void 0x0!==_0x3fff9c['getRootsAttributes'];}async function N(_0x2fe37a,_0x574323,_0x6d1010){const _0x125750=_0x2e1fd9(_0x2fe37a,w);_0x125750['plugins']['push'](p,D),_0x125750['rootsAttributes']=Ge(_0x2fe37a)?_0x2fe37a['getRootsAttributes']():void 0x0;const _0x552d2e=document['createDocumentFragment'](),_0x5c52b1=_0x2fe37a['config']['get']('trackChangesData')['editorCreator'],_0x53fea2=await _0x5c52b1(_0x125750,()=>function(_0x3212dd){const _0x27cd98=document['createElement']('div');return _0x3212dd['appendChild'](_0x27cd98),_0x27cd98;}(_0x552d2e));!function(_0x2146eb,_0x320c17){const _0x2587bf=_0x2146eb['model']['document']['getRootNames']()['reduce']((_0x2ac855,_0x4c2ed0)=>(_0x2ac855[_0x4c2ed0]=_0x2146eb['data']['get']({'rootName':_0x4c2ed0}),_0x2ac855),{}),_0x232046=_0x2146eb['plugins']['get']('Users')['users']['map'](_0x4ceb88=>({'id':_0x4ceb88['id'],'name':_0x4ceb88['name']})),_0x219099=_0x2146eb['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x431376=_0x2146eb['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5b9b82=_0x320c17['plugins']['get']('Users'),_0x505fec=_0x320c17['plugins']['get']('TrackChangesEditing'),_0x4147db=_0x320c17['plugins']['get']('CommentsRepository');for(const _0x57d8a6 of _0x4147db['getCommentThreads']())_0x57d8a6['remove']();for(const _0x99012 of _0x232046)_0x5b9b82['getUser'](_0x99012['id'])||_0x5b9b82['addUser'](_0x99012);_0x5b9b82['me']||_0x5b9b82['useAnonymousUser']();for(const _0xb83de4 of _0x431376)_0x4147db['addCommentThread'](_0xb83de4);for(const _0xa67f01 of _0x219099)_0x505fec['addSuggestionData'](_0xa67f01);_0x320c17['data']['set'](_0x2587bf);}(_0x2fe37a,_0x53fea2),_0x53fea2['execute'](_0x574323?'acceptAllSuggestions':'discardAllSuggestions');const _0x227308=Ge(_0x53fea2)?_0x53fea2['getFullData'](_0x6d1010):_0x53fea2['data']['get'](_0x6d1010);return await _0x53fea2['destroy'](),_0x227308;}class Me extends _0x5ef96c{['options'];constructor(_0xef288e,_0x2c353b){super(_0xef288e),this['options']=_0x2c353b,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'](_0x13edf8,_0x3ac6d0){if(!this['element'])return;const _0xc66e53=[];for(const [_0x2aea2a,_0x5707a4]of _0x13edf8){const _0x2bfe81=document['createElement']('div');_0x2bfe81['setAttribute']('data-ck-root-name',_0x2aea2a),_0x2bfe81['className']=_0x5707a4['classes']+'\x20ck-track-changes-preview__root-container',_0x2bfe81['innerHTML']=_0x5707a4['content'],_0xc66e53['push'](_0x2bfe81);}_0x3ac6d0(this['element'],_0xc66e53),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x2a6841{constructor(_0x489ddd){super(_0x489ddd),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2c189b=this['editor'],_0x274b2e=_0x2c189b['locale'],_0x406037=_0x2c189b['plugins']['get']('Dialog');let _0x4cfc18;const _0x53ad18=function(_0x35298e){const _0x4bc0f1={};if('editables'in _0x35298e['ui']['view']){for(const [_0x4778d6,_0x201d01]of Object['entries'](_0x35298e['ui']['view']['editables']))_0x4bc0f1[_0x4778d6]=_0x201d01['element'];}else _0x4bc0f1[_0x35298e['model']['document']['getRootNames']()[0x0]]=_0x35298e['ui']['view']['editable']['element'];return _0x4bc0f1;}(_0x2c189b),_0xaf9e18=function(_0x101a98){let _0x20c89b=0x0;for(const _0x25c5b7 of Object['values'](_0x101a98))_0x20c89b=Math['max'](_0x20c89b,_0x25c5b7['getBoundingClientRect']()['width']);let _0x3433a9=0x0;for(const _0x5c7af5 of Object['values'](_0x101a98))_0x3433a9+=_0x5c7af5['getBoundingClientRect']()['height'];const _0x4762ec=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2a6c3f=Math['min'](_0x3433a9,_0x4762ec);return{'width':_0x20c89b,'height':_0x2a6c3f};}(_0x53ad18);_0x406037['show']({'id':'finalContentPreview','title':c(_0x274b2e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x274b2e,{'dialogRects':_0xaf9e18}),'onHide':()=>{_0x4cfc18['detachFromDom']();},'onShow':()=>{_0x2c189b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3ec0ce=>{const _0x485728=this['_standarizeRootsData'](_0x3ec0ce,_0x2c189b,_0x53ad18);_0x406037['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x485728,_0x2c189b['config']['get']('trackChanges.preview.renderFunction'));}),_0x4cfc18=new _0x10d846(_0x274b2e,[_0x406037['view']]),_0x4cfc18['attachToDom'](),_0x4cfc18['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2c189b['once']('destroy',()=>{_0x4cfc18['detachFromDom']();});const _0x511465=_0x406037['view']['headerView']['class'];_0x406037['view']['headerView']['class']=_0x511465?_0x511465+'\x20ck-reset_all':'ck-reset_all',_0x406037['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x406037['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x77707f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x471d31=_0x77707f['previewMode'],_0x330a25={};if('$labels'===_0x471d31){for(const _0x4a3fc6 of _0x77707f['getMergeFieldsIds']())_0x330a25[_0x4a3fc6]=_0x77707f['getLabel'](_0x4a3fc6)||_0x4a3fc6;}else{const _0x454a2e='$defaultValues'===_0x471d31?_0x77707f['getDefaultValues']():_0x77707f['getDataSetValues'](_0x471d31,!0x0);for(const _0x243301 of Object['entries'](_0x454a2e)){const [_0x341827,_0x3282fc]=_0x243301;_0x330a25[_0x341827]=null!==_0x3282fc?_0x3282fc:_0x77707f['getLabel'](_0x341827)||_0x341827;}}return{'mergeFieldsData':_0x330a25};}['_standarizeRootsData'](_0x53a488,_0x1d0de2,_0xa2d82a){let _0x1e31a8;if('string'==typeof _0x53a488){const _0x2f0477=_0x1d0de2['model']['document']['getRootNames']()[0x0];_0x1e31a8={[_0x2f0477]:_0x53a488};}else _0x1e31a8=_0x53a488;const _0x1254fe=this['_fixMediaEmbeds'](_0x1e31a8,_0x1d0de2),_0x22bb9b=function(_0x4d3aca,_0x4436a1){for(const [_0x2985b8,_0x201abc]of _0x4d3aca)_0x201abc['classes']=_0x4436a1[_0x2985b8]['classList']['value']['replace']('ck-focused','');return _0x4d3aca;}(this['_sortRoots'](_0x1d0de2)['reduce']((_0x2e0a72,_0x19a767)=>(_0x2e0a72['push']([_0x19a767,{'content':_0x1254fe[_0x19a767],'classes':''}]),_0x2e0a72),[]),_0xa2d82a);return _0x22bb9b;}['_fixMediaEmbeds'](_0x475999,_0x3900c1){if(!_0x3900c1['plugins']['has']('MediaEmbedEditing'))return _0x475999;const _0x3b33a3=_0x3900c1['plugins']['get']('MediaEmbedEditing');for(const [_0x59e301,_0x8c2c5f]of Object['entries'](_0x475999)){const _0x3e3f60=document['createElement']('div');_0x3e3f60['innerHTML']=_0x8c2c5f,(_0x3e3f60['querySelectorAll']('figure.media')['forEach'](_0x207855=>{const _0x55cc96=_0x207855['querySelector']('oembed');if(_0x55cc96){const _0x3b6515=_0x55cc96['getAttribute']('url');if(_0x3b6515){const _0xa832be=_0x3b33a3['registry']['getMediaViewElement'](new _0x2d16d3(_0x3900c1['editing']['view']['document']),_0x3b6515,{'elementName':'','renderForEditingView':!0x0}),_0x319833=document['createElement']('div');_0x319833['classList']['add']('ck-media__wrapper'),_0xa832be['render'](_0x319833,_0x3900c1['editing']['view']['domConverter']),_0x55cc96['replaceWith'](_0x319833);}}}),_0x475999[_0x59e301]=_0x3e3f60['innerHTML']);}return _0x475999;}['_sortRoots'](_0x4efc43){if(!function(_0x26f887){return void 0x0!==_0x26f887['getRootsAttributes'];}(_0x4efc43))return _0x4efc43['model']['document']['getRootNames']();const _0x36ef33=[],_0x107c4c=new Map();for(const _0x233903 of _0x4efc43['model']['document']['getRootNames']()){const _0xc140fc=_0x4efc43['editing']['view']['getDomRoot'](_0x233903)['getClientRects']()['item'](0x0);_0x36ef33['push'](_0x233903),_0x107c4c['set'](_0x233903,_0xc140fc);}return _0x36ef33['sort']((_0x714bcf,_0x409184)=>{const _0x2a330a=_0x107c4c['get'](_0x714bcf),_0x44edf0=_0x107c4c['get'](_0x409184);return _0x2a330a['y']-_0x44edf0['y']||_0x2a330a['x']-_0x44edf0['x'];}),_0x36ef33;}}class te extends _0x145e1e{static get['requires'](){return[T,_0x2f67f8];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x99e8c){super(_0x99e8c),_0x99e8c['commands']['add']('previewFinalContent',new re(this['editor'])),_0x99e8c['config']['define']('trackChanges.preview.renderFunction',(_0x4a8f45,_0x16c132)=>{for(const _0x3b431b of _0x16c132)_0x4a8f45['appendChild'](_0x3b431b);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};