@ckeditor/ckeditor5-track-changes 47.0.0-alpha.0 → 47.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/lineheight.js +1 -1
  185. package/src/integrations/link.js +1 -1
  186. package/src/integrations/list.js +1 -1
  187. package/src/integrations/listproperties.js +1 -1
  188. package/src/integrations/mediaembed.js +1 -1
  189. package/src/integrations/mention.js +1 -1
  190. package/src/integrations/mergefields.js +1 -1
  191. package/src/integrations/multilevellist.js +1 -1
  192. package/src/integrations/pagebreak.js +1 -1
  193. package/src/integrations/paragraph.js +1 -1
  194. package/src/integrations/removeformat.js +1 -1
  195. package/src/integrations/replacesourcecommand.js +1 -1
  196. package/src/integrations/restrictededitingmode.js +1 -1
  197. package/src/integrations/shiftentercommand.js +1 -1
  198. package/src/integrations/standardeditingmode.js +1 -1
  199. package/src/integrations/style.js +1 -1
  200. package/src/integrations/table.js +1 -1
  201. package/src/integrations/tablecaption.js +1 -1
  202. package/src/integrations/tableclipboard.js +2 -2
  203. package/src/integrations/tablecolumnresize.js +1 -1
  204. package/src/integrations/tableheadings.js +1 -1
  205. package/src/integrations/tablelayout.js +1 -1
  206. package/src/integrations/tablemergesplit.js +1 -1
  207. package/src/integrations/tableofcontents.js +1 -1
  208. package/src/integrations/tableproperties.js +1 -1
  209. package/src/integrations/template.js +1 -1
  210. package/src/integrations/title.js +1 -1
  211. package/src/integrations/undo.js +1 -1
  212. package/src/integrations/uploadcare.js +1 -1
  213. package/src/integrations/utils.js +1 -1
  214. package/src/suggestion.js +2 -2
  215. package/src/suggestiondescriptionfactory.js +1 -1
  216. package/src/trackchanges.js +1 -1
  217. package/src/trackchangesdata.js +1 -1
  218. package/src/trackchangesediting.js +1 -1
  219. package/src/trackchangespreview.js +1 -1
  220. package/src/trackchangesui.js +1 -1
  221. package/src/ui/suggestioncontroller.js +2 -2
  222. package/src/ui/view/basesuggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionthreadview.js +1 -1
  224. package/src/ui/view/suggestionview.js +1 -1
  225. package/src/ui/view/trackchangespreviewview.js +1 -1
  226. package/src/utils/common-translations.js +1 -1
  227. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x19904a,Plugin as _0x1bca86,PendingActions as _0x453176}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4b5846,ObservableMixin as _0x525c04,uid as _0x573f80,priorities as _0x163a1e,insertToPriorityArray as _0x4aa073,toArray as _0x13eaa6,logWarning as _0x4f7fa7,getEnvKeystrokeText as _0x59e26d,FocusTracker as _0x1bc739,KeystrokeHandler as _0x31729b,Collection as _0xeedcbe}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5ba9a4,IconCancel as _0x410e59,IconTrackChanges as _0x140ece}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x296d10,View as _0x302463,ViewCollection as _0x180284,FocusCycler as _0x4a1c64,UIModel as _0x277d09,createDropdown as _0x4694c4,SplitButtonView as _0x44697c,addListToDropdown as _0xe21f8e,MenuBarMenuView as _0x257436,MenuBarMenuListView as _0x579a05,ListSeparatorView as _0x509549,MenuBarMenuListItemView as _0x2989f2,MenuBarMenuListItemButtonView as _0x553772,BodyCollection as _0x483eeb,Dialog as _0x21e0ca}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x52e77f,DocumentCompare as _0x56191a,hashObject as _0x3623f6,surroundingMarkersDetector as _0x18e029,FOCUS_ANNOTATION_KEYSTROKE as _0x23d5dc,AriaDescriptionView as _0x567ab5,setupThreadKeyboardNavigation as _0x48487a,trimHtml as _0x50f9b3,UserView as _0x4a34b5,LateFocusButtonView as _0x1ed099,getDateTimeFormatter as _0x47b19c,getAllMarkersDomElementsSorted as _0x1bd493,sanitizeEditorConfig as _0x9f66cf}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x2228a3,ModelLiveRange as _0x35191f,ModelLivePosition as _0x244208,ModelPosition as _0x2f60c4,ModelRange as _0x24dd86,_DetachOperation as _0x5f410a,ViewDowncastWriter as _0x4606e3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3b341e,toWidget as _0x4cd134}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3b51e9,set as _0x3dcbbe,isEqual as _0xbcf3a8,unset as _0x421a07,omit as Gt}from'es-toolkit/compat';import{Delete as _0x1fb13e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x30ecc7}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x23c76d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x19904a{['_enabledCommands'];constructor(_0x4f97cd,_0x4f668c){super(_0x4f97cd),this['_enabledCommands']=_0x4f668c,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 _0x24b5cb of this['editor']['commands']['commands']())_0x24b5cb['affectsData']&&!this['_enabledCommands']['has'](_0x24b5cb)&&_0x24b5cb['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x23d9a9 of this['editor']['commands']['commands']())_0x23d9a9['affectsData']&&!this['_enabledCommands']['has'](_0x23d9a9)&&_0x23d9a9['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x19904a{['_suggestions'];constructor(_0x2882b8,_0x2711a3){super(_0x2882b8),this['_suggestions']=_0x2711a3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xbd15){const _0x589d91=this['_suggestions']['get'](_0xbd15);if(!_0x589d91)throw new _0x4b5846('track-changes-accept-suggestion-not-found',this);const _0x3d6fa3=_0x589d91['getRanges']();this['editor']['model']['canEditAt'](_0x3d6fa3)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x589d91);}}class O extends _0x19904a{['_suggestions'];constructor(_0x323945,_0x316a9f){super(_0x323945),this['_suggestions']=_0x316a9f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f3e7e){const _0x26a7d7=this['_suggestions']['get'](_0x3f3e7e);if(!_0x26a7d7)throw new _0x4b5846('track-changes-discard-suggestion-not-found',this);const _0xcb3155=_0x26a7d7['getRanges']();this['editor']['model']['canEditAt'](_0xcb3155)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x26a7d7);}}function ls(_0x10f211,_0x26c771){let _0xa0801='';return _0xa0801+=_0x10f211['split']('*')['map']((_0x41e083,_0x2a6355)=>_0x2a6355%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x41e083)+'</span>':tn(_0x41e083))['join'](''),_0x26c771&&(_0xa0801+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x26c771['value']+'\x22\x20title=\x22'+_0x26c771['title']+'\x22></span>'),_0xa0801;}function tn(_0x541c4d){const _0xe21ed2=document['createElement']('span');return _0xe21ed2['innerText']=_0x541c4d,_0xe21ed2['innerHTML'];}function ts(_0x3525ff){return _0x3525ff['sort']((_0xfcaa17,_0x4a8f16)=>'attribute'===_0xfcaa17['type']&&'attribute'!==_0x4a8f16['type']?-0x1:'attribute'!==_0xfcaa17['type']&&'attribute'===_0x4a8f16['type']?0x1:'deletion'==_0xfcaa17['type']&&'deletion'!=_0x4a8f16['type']?-0x1:'deletion'!=_0xfcaa17['type']&&'deletion'==_0x4a8f16['type']?0x1:0x0);}function to(_0x37f69f,_0x16a887){let _0x208c24,_0x58b147=0x0;const _0x2d0e6d=[],_0x3c0b5d=_0x16a887['schema'];for(;_0x58b147<_0x37f69f['length'];){const _0x4150f5=_0x37f69f[_0x58b147],_0x3c0371=_0x37f69f[_0x58b147+0x1];_0x208c24||(_0x208c24=_0x16a887['createPositionBefore'](_0x4150f5)),nn(_0x16a887,_0x4150f5,_0x3c0371)||(_0x2d0e6d['push'](_0x16a887['createRange'](_0x208c24,_0x3c0b5d['isObject'](_0x4150f5)?_0x16a887['createPositionAfter'](_0x4150f5):_0x16a887['createPositionAt'](_0x4150f5,'end'))),_0x208c24=null),_0x58b147++;}return _0x2d0e6d;}function nn(_0x349567,_0x2be1de,_0x74e55){if(!_0x74e55)return!0x1;const _0x4fd3ef=_0x349567['createPositionAfter'](_0x2be1de),_0xc4e9a3=_0x349567['createPositionBefore'](_0x74e55);return _0x4fd3ef['isTouching'](_0xc4e9a3);}function rs(_0x39e24c,_0x3729aa,_0x1ef69b){for(;_0x1ef69b['length'];){const _0x560383=_0x1ef69b['splice'](0x0,0x64);_0x39e24c['change'](()=>{for(const _0x5f4b63 of _0x560383)_0x5f4b63['isInContent']&&_0x3729aa['execute'](_0x5f4b63['id']);});}}class x extends _0x19904a{['_command'];['_suggestions'];constructor(_0x2a7be6,_0x501eb3,_0x70007f){super(_0x2a7be6),this['_command']=_0x501eb3,this['_suggestions']=_0x70007f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xdcf457=Array['from'](this['_suggestions']['values']())['some'](_0x28424f=>_0x28424f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xdcf457;}['execute'](){const _0x463b74=ts(Array['from'](this['_suggestions']['values']()));for(const _0x33c4bf of _0x463b74){const _0x941619=_0x33c4bf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x941619))return;}rs(this['editor']['model'],this['_command'],_0x463b74);}}class E extends _0x19904a{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x37ddd0,_0x1cb643,_0x225ce4){super(_0x37ddd0),this['_command']=_0x1cb643,this['_suggestions']=_0x225ce4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x58d600=this['editor']['model']['document']['selection'],_0x4241ed=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x23b994,_0x6c70c6){const _0x477086=Array['from'](_0x23b994['getRanges']()),_0xb97707=new Set();for(const _0x22218f of _0x6c70c6)if(_0x22218f['isInContent']){for(const _0xda8052 of _0x477086)for(const _0x38a200 of _0x22218f['getRanges']())(_0xda8052['isIntersecting'](_0x38a200)||_0x23b994['isCollapsed']&&!_0x22218f['isMultiRange']&&_0x22218f['next']&&_0x38a200['end']['isTouching'](_0xda8052['start']))&&_0xb97707['add'](_0x22218f);}return _0xb97707;}(_0x58d600,_0x4241ed),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x19ac32=ts(Array['from'](this['_selectedSuggestions']));for(const _0x781d69 of _0x19ac32){const _0x4e4546=_0x781d69['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4e4546))return;}rs(this['editor']['model'],this['_command'],_0x19ac32);}}class R extends/* #__PURE__ -- @preserve */
24
- _0x525c04(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x30adf9,_0x2d85a0){super(),this['id']=_0x2d85a0['id'],this['type']=_0x2d85a0['type'],this['subType']=_0x2d85a0['subType']||null,this['author']=_0x2d85a0['author'],this['creator']=_0x2d85a0['creator']||_0x2d85a0['author'],this['isExternal']=Boolean(_0x2d85a0['attributes']&&_0x2d85a0['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2d85a0['originalSuggestionId']||null,this['_model']=_0x30adf9,this['_onAccept']=_0x2d85a0['onAccept'],this['_onDiscard']=_0x2d85a0['onDiscard'],this['_onAttributesChange']=_0x2d85a0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2d85a0['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 _0x5577b7=this;for(;_0x5577b7['previous'];)_0x5577b7=_0x5577b7['previous'];return _0x5577b7;}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'](_0x1058ea){this['_markerNames']['add'](_0x1058ea);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x49f9ee=>this['_model']['markers']['get'](_0x49f9ee))['filter'](_0x21ea74=>_0x21ea74);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5590e7=>{for(const _0x4c7083 of this['getMarkers']())_0x5590e7['removeMarker'](_0x4c7083);}),this['_markerNames']['clear']();}['removeMarker'](_0x3e6d26){this['_model']['change'](_0x2d2909=>{_0x2d2909['removeMarker'](_0x3e6d26);}),this['_markerNames']['delete'](_0x3e6d26);}['addRange'](_0x579444){const _0x18eb75='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x18eb75),this['_model']['change'](_0x55e011=>{_0x55e011['addMarker'](_0x18eb75,{'range':_0x579444,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x470d36){for(const _0x3d6f8a of this['getRanges']())if(_0x3d6f8a['isIntersecting'](_0x470d36))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x24e2fe=>_0x24e2fe['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xda9bf,_0x171b82)=>[..._0xda9bf,..._0x171b82['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x235e5d=this['getRanges']();if(0x1!=_0x235e5d['length'])return null;const _0x168ec8=_0x235e5d[0x0],_0x5cd3e9=_0x168ec8['start']['nodeAfter'],_0x3739a0=_0x168ec8['end']['nodeBefore'];return _0x5cd3e9 instanceof _0x2228a3?_0x5cd3e9!=_0x3739a0?null:_0x5cd3e9: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 _0x453652=[];let _0x12df61=this['head'];for(;_0x12df61;)_0x453652['push'](_0x12df61),_0x12df61=_0x12df61['next'];return _0x453652;}['setAttribute'](_0x49b3b9,_0x37990d){const _0x53bd0a=_0x3b51e9(this['attributes']);_0x3dcbbe(_0x53bd0a,_0x49b3b9,_0x37990d),_0xbcf3a8(_0x53bd0a,this['attributes'])||(this['attributes']=_0x53bd0a,this['_onAttributesChange'](_0x53bd0a));}['removeAttribute'](_0x328b38){const _0x19157f=_0x3b51e9(this['attributes']);_0x421a07(_0x19157f,_0x328b38),_0xbcf3a8(_0x19157f,this['attributes'])||(this['attributes']=_0x19157f,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 _0x573f80()['substr'](0x1,0x5);}}function o(_0x49f3cd,_0x36c6fe,_0x15e37d){const _0x480192=_0x49f3cd['t'],t=_0x49f3cd['t'];switch(_0x36c6fe){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',_0x15e37d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x15e37d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x15e37d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x15e37d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x15e37d);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',_0x15e37d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x15e37d);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',_0x15e37d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x15e37d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x15e37d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x15e37d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x15e37d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x15e37d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x15e37d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x15e37d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x15e37d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x15e37d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x15e37d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x15e37d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x15e37d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x15e37d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x15e37d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x15e37d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x15e37d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x15e37d);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'},_0x15e37d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x15e37d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x15e37d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x15e37d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x15e37d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x15e37d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x15e37d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x15e37d);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'},_0x15e37d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x15e37d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x15e37d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x15e37d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x15e37d);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'},_0x15e37d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x15e37d);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'},_0x15e37d);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x15e37d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x15e37d);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'},_0x15e37d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x15e37d);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'},_0x15e37d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x15e37d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x15e37d);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'},_0x15e37d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x15e37d);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 _0x480192({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x15e37d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x480192({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x15e37d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x15e37d);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'},_0x15e37d);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'},_0x15e37d);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'},_0x15e37d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x36c6fe;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2a9e60,_0x2f90b4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2a9e60,this['_locale']=_0x2f90b4;}['getDescriptions'](_0x46c9a2){const _0x19e196=[],_0x5ebd6a=new Set(),_0xf9d088=new Set();for(let _0x93ce97=0x0;_0x93ce97<_0x46c9a2['length'];_0x93ce97++){const _0x35469d=_0x46c9a2[_0x93ce97];if(!_0x35469d['isInContent'])continue;const _0x484985=this['_handleCustomCallbackDescription'](_0x35469d);if(_0x484985){if(null!=_0x35469d['subType']){if(_0x5ebd6a['has'](_0x35469d['subType']))continue;_0x5ebd6a['add'](_0x35469d['subType']);}_0x19e196['push'](_0x484985);}else{if('attribute'==_0x35469d['type']){const _0x590376=_0x35469d['data']['key'];if(_0xf9d088['has'](_0x590376))continue;_0xf9d088['add'](_0x35469d['data']['key']),_0x590376==m?this['_handleRenameSuggestionDescription'](_0x19e196,_0x35469d):this['_handleAttributeSuggestionDescription'](_0x19e196,_0x35469d);continue;}'insertion'!=_0x35469d['type']&&'deletion'!=_0x35469d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x19e196,_0x35469d,_0x46c9a2[_0x93ce97+0x1]);}}return this['_resolveDescriptionItems'](_0x19e196);}['registerDescriptionCallback'](_0x58ae54){this['_customCallbacks']['push'](_0x58ae54);}['registerElementLabel'](_0x28370a,_0x313093,_0x4480b=_0x163a1e['normal']){'function'==typeof _0x28370a?_0x4aa073(this['_itemLabelsCallbacks'],{'matchingCallback':_0x28370a,'label':_0x313093,'priority':_0x4480b}):this['_itemLabels']['set'](_0x28370a,_0x313093);}['registerAttributeLabel'](_0x3460a6,_0x14e419){this['_attributeLabels']['set'](_0x3460a6,_0x14e419);}['getItemLabel'](_0x41aa3a,_0x16e2fc=0x1){let _0x31f190;for(const _0x75edd5 of this['_itemLabelsCallbacks'])if(_0x75edd5['matchingCallback'](_0x41aa3a)){_0x31f190=_0x75edd5['label'];break;}return _0x31f190||(_0x31f190=this['_itemLabels']['get'](_0x41aa3a['name'])),_0x31f190?_0x31f190(_0x16e2fc):0x1!==_0x16e2fc?_0x16e2fc+'\x20'+_0x41aa3a['name']+'s':''+_0x41aa3a['name'];}['_addDescriptionItems'](_0x1a0264,_0x149c29){const _0x513221=_0x149c29['getFirstRange']()['getWalker'](),_0x2102e9='insertion'==_0x149c29['type']?'add':'remove';for(const _0x1dee40 of _0x513221){const _0x467376=_0x1dee40['item'],_0x226c3a=_0x1a0264[_0x1a0264['length']-0x1];if(_0x467376['is']('$textProxy'))_0x226c3a&&_0x226c3a['type']['indexOf']('Container')>-0x1&&_0x1a0264['pop'](),_0x226c3a&&'text'==_0x226c3a['type']?_0x226c3a[_0x2102e9]+=_0x467376['data']:_0x1a0264['push']({'type':'text','add':'add'==_0x2102e9?_0x467376['data']:'','remove':'remove'==_0x2102e9?_0x467376['data']:''});else{if(this['_schema']['isObject'](_0x467376)){const _0x2a3bf0=_0x467376;if(_0x226c3a&&_0x226c3a['type']['indexOf']('Container')>-0x1&&_0x1a0264['pop'](),'elementEnd'==_0x1dee40['type'])continue;_0x226c3a&&_0x226c3a['type']==_0x2102e9+'Object'&&_0x226c3a['element']['name']==_0x2a3bf0['name']?_0x226c3a['quantity']++:_0x1a0264['push']({'type':_0x2102e9+'Object','element':_0x2a3bf0,'quantity':0x1}),_0x513221['skip'](_0x368006=>!('elementEnd'==_0x368006['type']&&_0x368006['item']==_0x467376));}else{if(this['_schema']['checkChild'](_0x467376,'$text')||_0x467376['is']('element','softBreak')){const _0x500814=_0x467376;if('add'==_0x2102e9&&'elementStart'==_0x1dee40['type']||'remove'==_0x2102e9&&'elementEnd'==_0x1dee40['type'])continue;if(_0x226c3a&&-0x1==_0x226c3a['type']['indexOf']('Container')){'text'==_0x226c3a['type']&&(_0x226c3a[_0x2102e9]+='\x0a');continue;}let _0x53627f;if(_0x53627f='add'==_0x2102e9?_0x500814['nextSibling']&&!this['_schema']['isObject'](_0x500814['nextSibling'])?_0x500814['nextSibling']:null:_0x500814['previousSibling']&&!this['_schema']['isObject'](_0x500814['previousSibling'])?_0x500814['previousSibling']:null,_0x500814['isEmpty']||_0x53627f&&_0x53627f['isEmpty']){const _0x143661=_0x53627f&&_0x53627f['isEmpty']?_0x53627f:_0x500814;_0x226c3a&&_0x226c3a['type']==_0x2102e9+'EmptyContainer'&&_0x226c3a['element']['name']==_0x143661['name']?_0x226c3a['quantity']++:_0x1a0264['push']({'type':_0x2102e9+'EmptyContainer','element':_0x143661,'quantity':0x1});}else _0x1a0264['push']({'type':_0x2102e9+'Container','element':_0x500814});}}}}}['_resolveDescriptionItems'](_0x42c8b2){const _0x211734=this['_locale'],_0x396487=[],_0x20c1c0=[],_0x576c73=[];for(const _0x9e62c5 of _0x42c8b2)switch(_0x9e62c5['type']){case'text':if(_0x9e62c5['add']=_0x9e62c5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x9e62c5['remove']=_0x9e62c5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x9e62c5['add']&&''!=_0x9e62c5['remove']){_0x396487['push']({'type':'replace','content':o(_0x211734,'REPLACE_TEXT',['\x22'+_0x9e62c5['remove']+'\x22','\x22'+_0x9e62c5['add']+'\x22'])});continue;}if(null!=_0x9e62c5['add']['match'](/^ +$/)){_0x396487['push']({'type':'insertion','content':o(_0x211734,'*Insert:*\x20%0',o(_0x211734,'ELEMENT_SPACE',_0x9e62c5['add']['length']))});continue;}if(null!=_0x9e62c5['remove']['match'](/^ +$/)){_0x396487['push']({'type':'deletion','content':o(_0x211734,'*Remove:*\x20%0',o(_0x211734,'ELEMENT_SPACE',_0x9e62c5['remove']['length']))});continue;}if(''!=_0x9e62c5['add']){_0x396487['push']({'type':'insertion','content':o(_0x211734,'*Insert:*\x20%0','\x22'+_0x9e62c5['add']+'\x22')});continue;}_0x396487['push']({'type':'deletion','content':o(_0x211734,'*Remove:*\x20%0','\x22'+_0x9e62c5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x396487['push']({'type':'insertion','content':o(_0x211734,'*Insert:*\x20%0',this['getItemLabel'](_0x9e62c5['element'],_0x9e62c5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x396487['push']({'type':'deletion','content':o(_0x211734,'*Remove:*\x20%0',this['getItemLabel'](_0x9e62c5['element'],_0x9e62c5['quantity']))});continue;case'addContainer':_0x396487['push']({'type':'insertion','content':o(_0x211734,'*Split:*\x20%0',this['getItemLabel'](_0x9e62c5['element'],_0x9e62c5['quantity']))});continue;case'removeContainer':_0x396487['push']({'type':'deletion','content':o(_0x211734,'*Merge:*\x20%0',this['getItemLabel'](_0x9e62c5['element'],_0x9e62c5['quantity']))});continue;case'addFormat':_0x20c1c0['push'](_0x9e62c5['key']);continue;case'removeFormat':_0x576c73['push'](_0x9e62c5['key']);continue;default:_0x396487['push'](_0x9e62c5);}if(_0x20c1c0['length']){const _0x1eec64=_0x20c1c0['map'](_0x1e0998=>this['_attributeLabels']['has'](_0x1e0998)?this['_attributeLabels']['get'](_0x1e0998):_0x1e0998)['join'](',\x20');_0x396487['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1eec64)});}if(_0x576c73['length']){const _0x5bbf43=_0x576c73['map'](_0x44c216=>this['_attributeLabels']['has'](_0x44c216)?this['_attributeLabels']['get'](_0x44c216):_0x44c216)['join'](',\x20');_0x396487['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5bbf43)});}return _0x396487;}['_handleCustomCallbackDescription'](_0x4920e5){for(const _0x3eb6e of this['_customCallbacks']){const _0x4f8111=_0x3eb6e(_0x4920e5);if(_0x4f8111&&'type'in _0x4f8111)return _0x4f8111;}}['_handleAttributeSuggestionDescription'](_0x5a0df7,_0x1bef67){const _0x414547=_0x1bef67['data'],_0x4c14b9=void 0x0===_0x414547['newValue']?'removeFormat':'addFormat';_0x5a0df7['push']({'type':_0x4c14b9,'key':_0x414547['key']});}['_handleRenameSuggestionDescription'](_0x5b90b2,_0x5c9f06){_0x5b90b2['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5c9f06['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1368bd,_0xb95b51,_0x4787e1){if(this['_addDescriptionItems'](_0x1368bd,_0xb95b51),_0x4787e1&&_0x4787e1['getFirstRange']()&&!_0xb95b51['getFirstRange']()['end']['isEqual'](_0x4787e1['getFirstRange']()['start'])){const _0x5b3da1=_0x1368bd[_0x1368bd['length']-0x1],_0xf0fc9a='insertion'==_0xb95b51['type']?'add':'remove';_0x5b3da1&&'text'==_0x5b3da1['type']&&(_0x5b3da1[_0xf0fc9a]+='\x0a');}}}class V extends _0x1bca86{['afterInit'](){const _0x91a160=this['editor'],_0x974a4c=_0x91a160['plugins']['get']('TrackChangesEditing');_0x91a160['commands']['get']('showAIAssistant')&&_0x974a4c['enableCommand']('showAIAssistant');}}class F extends _0x1bca86{['afterInit'](){const _0x4d57f6=this['editor'],_0x4ec6e2=_0x4d57f6['locale'];if(!_0x4d57f6['plugins']['has']('AlignmentEditing'))return;const _0x3fe495=_0x4d57f6['plugins']['get']('TrackChangesEditing');_0x3fe495['enableDefaultAttributesIntegration']('alignment'),_0x3fe495['registerBlockAttribute']('alignment'),_0x3fe495['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4ec6e2,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e6359=this['editor'],_0x4d2ddf=_0x1e6359['locale'];_0x1e6359['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d8283=>{if('formatBlock'!=_0x1d8283['type'])return;const {data:_0x56e246}=_0x1d8283;if(_0x56e246&&'alignment'==_0x56e246['commandName']){const _0x576a3a=_0x56e246['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4d2ddf,'*Format:*\x20%0',function(_0xd891d4){switch(_0xd891d4){case'left':return o(_0x4d2ddf,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4d2ddf,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4d2ddf,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4d2ddf,'FORMAT_JUSTIFY_TEXT');}}(_0x576a3a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x1bca86{['afterInit'](){const _0x5c3709=this['editor'],_0x4cf756=_0x5c3709['plugins']['get']('TrackChangesEditing'),_0x6a49cf=_0x5c3709['locale'];for(const _0x2352f9 of ti){if(!_0x5c3709['plugins']['has'](_0x2352f9))continue;const _0x32a781=_0x2352f9['slice'](0x0,-0x7)['toLowerCase'](),_0x243a22='FORMAT_'+_0x32a781['toUpperCase']();_0x4cf756['enableDefaultAttributesIntegration'](_0x32a781),_0x4cf756['registerInlineAttribute'](_0x32a781),_0x4cf756['descriptionFactory']['registerAttributeLabel'](_0x32a781,o(_0x6a49cf,_0x243a22));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x489120=this['editor'],_0x1d4fcd=_0x489120['locale'],_0x4d2167=_0x489120['plugins']['get']('TrackChangesEditing');function _0x2cc1f5(_0x2adf51,_0x1b9cdc){_0x4d2167['descriptionFactory']['registerDescriptionCallback'](_0x5d3f2d=>{if('formatInline'!=_0x5d3f2d['type'])return;const {data:_0x48e1d6}=_0x5d3f2d;return _0x48e1d6&&_0x48e1d6['commandName']===_0x2adf51?_0x48e1d6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d4fcd,'*Format:*\x20%0',_0x1b9cdc)}:{'type':'format','content':o(_0x1d4fcd,'*Remove\x20format:*\x20%0',_0x1b9cdc)}:void 0x0;});}_0x2cc1f5('bold',o(_0x1d4fcd,'FORMAT_BOLD')),_0x2cc1f5('italic',o(_0x1d4fcd,'FORMAT_ITALIC')),_0x2cc1f5('underline',o(_0x1d4fcd,'FORMAT_UNDERLINE')),_0x2cc1f5('code',o(_0x1d4fcd,'FORMAT_CODE')),_0x2cc1f5('strikethrough',o(_0x1d4fcd,'FORMAT_STRIKETHROUGH')),_0x2cc1f5('subscript',o(_0x1d4fcd,'FORMAT_SUBSCRIPT')),_0x2cc1f5('superscript',o(_0x1d4fcd,'FORMAT_SUPERSCRIPT'));}}class L extends _0x1bca86{['afterInit'](){const _0x108029=this['editor'],_0x2f719a=_0x108029['locale'];if(!_0x108029['plugins']['has']('BlockQuoteEditing'))return;const _0x37ad00=_0x108029['plugins']['get']('TrackChangesEditing'),_0x4ccd01=this['editor']['commands']['get']('blockQuote');_0x37ad00['enableCommand']('blockQuote',(_0x425ec3,_0x117121={})=>{const _0x1ad79b=this['editor']['model']['document']['selection'],_0xb86035=_0x117121&&void 0x0!==_0x117121['forceValue']?_0x117121['forceValue']:!_0x4ccd01['value'];let _0x5f30b0=[];if(_0xb86035){const _0x110565=Array['from'](_0x1ad79b['getSelectedBlocks']())['filter'](_0x2e6a10=>oo(_0x2e6a10)||function(_0x4e079f,_0xd5b350){const _0x46a4ec=_0xd5b350['checkChild'](_0x4e079f['parent'],'blockQuote'),_0x51b991=_0xd5b350['checkChild'](['$root','blockQuote'],_0x4e079f);return _0x46a4ec&&_0x51b991;}(_0x2e6a10,this['editor']['model']['schema']));_0x5f30b0=to(_0x110565,_0x108029['model']);}else{const _0x4315fa=Array['from'](_0x1ad79b['getSelectedBlocks']())['filter'](_0x4d2dd1=>oo(_0x4d2dd1));_0x5f30b0=to(_0x4315fa,_0x108029['model']);}_0x108029['model']['change'](()=>{for(const _0x4b3ee6 of _0x5f30b0)_0x37ad00['markBlockFormat'](_0x4b3ee6,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xb86035}]});});}),_0x37ad00['descriptionFactory']['registerDescriptionCallback'](_0x553da0=>{const {data:_0x1553ba}=_0x553da0;if(_0x1553ba&&'blockQuote'==_0x1553ba['commandName']){const _0x20ecb2=o(_0x2f719a,'ELEMENT_BLOCK_QUOTE');return _0x1553ba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f719a,'*Set\x20format:*\x20%0',_0x20ecb2)}:{'type':'format','content':o(_0x2f719a,'*Remove\x20format:*\x20%0',_0x20ecb2)};}});}}function oo(_0x221409){return'blockQuote'==_0x221409['parent']['name'];}class J extends _0x1bca86{['afterInit'](){const _0x5573b5=this['editor'],_0x5ce3b0=_0x5573b5['locale'],_0x592865=_0x5573b5['plugins']['get']('TrackChangesEditing');_0x5573b5['plugins']['has']('BookmarkEditing')&&(_0x592865['enableCommand']('insertBookmark'),_0x592865['enableDefaultAttributesIntegration']('updateBookmark'),_0x592865['registerBlockAttribute']('bookmarkId'),_0x592865['descriptionFactory']['registerDescriptionCallback'](_0x5eccd3=>{if('insertion'!=_0x5eccd3['type']&&'deletion'!=_0x5eccd3['type']&&'attribute'!=_0x5eccd3['type'])return;const _0xc52a33=_0x5eccd3['getContainedElement']();if(null==_0xc52a33)return;if(!_0xc52a33['is']('element','bookmark'))return;const _0x164ef2=_0xc52a33['getAttribute']('bookmarkId');if('insertion'==_0x5eccd3['type'])return{'type':'insertion','content':o(_0x5ce3b0,'*Insert:*\x20%0','\x22'+_0x164ef2+'\x22\x20'+o(_0x5ce3b0,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5eccd3['type'])return{'type':'deletion','content':o(_0x5ce3b0,'*Remove:*\x20%0','\x22'+_0x164ef2+'\x22\x20'+o(_0x5ce3b0,'ELEMENT_BOOKMARK'))};const {data:_0x1bcc3f}=_0x5eccd3;if(!_0x1bcc3f||'bookmarkId'!=_0x1bcc3f['key'])return;return{'type':'format','content':o(_0x5ce3b0,'*Set\x20bookmark:*\x20%0','\x22'+_0x1bcc3f['newValue']+'\x22')};}));}}class K extends _0x1bca86{['afterInit'](){const _0x276382=this['editor'];_0x276382['plugins']['has']('CaseChange')&&(_0x276382['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x276382['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x276382['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x1bca86{['afterInit'](){const _0x322aa1=this['editor'];_0x322aa1['commands']['get']('ckbox')&&_0x322aa1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x1bca86{['afterInit'](){const _0x5994f2=this['editor'];if(!_0x5994f2['plugins']['has']('CodeBlock'))return;const _0x2e3b5b=_0x5994f2['plugins']['get']('TrackChangesEditing'),_0x284502=_0x5994f2['locale'],_0x3313bd=_0x5994f2['config']['get']('codeBlock')['languages'],_0x243444=_0x5994f2['commands']['get']('codeBlock');_0x2e3b5b['enableCommand']('indentCodeBlock'),_0x2e3b5b['enableCommand']('outdentCodeBlock'),_0x2e3b5b['enableCommand']('codeBlock',(_0x314740,_0xb756ab={})=>{const _0x23f8f2=_0x5994f2['model'],_0x5ac19c=_0x5994f2['model']['document']['selection'],_0x84b40e=_0xb756ab&&void 0x0!==_0xb756ab['forceValue']?_0xb756ab['forceValue']:!_0x243444['value'];let _0x50759d;_0xb756ab['language']||(_0xb756ab['language']=_0x3313bd[0x0]['language']),_0x50759d=_0x84b40e?Array['from'](_0x5ac19c['getSelectedBlocks']())['filter'](_0x231cf5=>co(_0x231cf5)||function(_0x4c2b9b,_0xd4c95c){if(_0x4c2b9b['is']('rootElement')||_0xd4c95c['isLimit'](_0x4c2b9b))return!0x1;return _0xd4c95c['checkChild'](_0x4c2b9b['parent'],'codeBlock');}(_0x231cf5,_0x23f8f2['schema'])):Array['from'](_0x5ac19c['getSelectedBlocks']())['filter'](_0x257eb9=>co(_0x257eb9));const _0x4bd849=to(_0x50759d,_0x23f8f2);_0x23f8f2['change'](()=>{for(const _0x10ec7f of _0x4bd849)_0x2e3b5b['markBlockFormat'](_0x10ec7f,{'commandName':'codeBlock','commandParams':[{..._0xb756ab,'forceValue':_0x84b40e}],'formatGroupId':'blockName'});});}),(_0x2e3b5b['descriptionFactory']['registerElementLabel']('codeBlock',_0x1cc3e8=>o(_0x284502,'ELEMENT_CODE_BLOCK',_0x1cc3e8)),_0x2e3b5b['descriptionFactory']['registerDescriptionCallback'](_0x2ac96c=>{if('formatBlock'!=_0x2ac96c['type'])return;const _0x2ce7c2=_0x284502['t'],{data:_0x4c9389}=_0x2ac96c;if(!_0x4c9389||'codeBlock'!=_0x4c9389['commandName'])return;const _0x2d5a1c=_0x4c9389['commandParams'][0x0]['language'],_0x2b5580=_0x2ce7c2(_0x3313bd['find'](_0xe34c47=>_0xe34c47['language']===_0x2d5a1c)['label'])['toLowerCase']();return _0x4c9389['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x284502,'*Set\x20format:*\x20%0',o(_0x284502,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2b5580+')')}:{'type':'format','content':o(_0x284502,'*Remove\x20format:*\x20%0',o(_0x284502,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x58f86d){return'codeBlock'==_0x58f86d['name'];}class q extends _0x1bca86{['afterInit'](){const _0x5bf898=this['editor'];if(!_0x5bf898['plugins']['has']('CommentsEditing'))return;_0x5bf898['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x570e2d,_0xdc56d7,_0x1d74e2){const _0x4ff967=[];for(const _0x365820 of _0xdc56d7['getItems']())_0x365820['hasAttribute'](_0x570e2d)&&_0x4ff967['push'](_0x1d74e2['createRangeOn'](_0x365820));return _0x4ff967;}function Ge(_0x330c8e,_0xcc97cb,{showActiveMarker:_0x134a9b=!0x0}={}){const _0x2d3202=_0x330c8e['plugins']['get']('TrackChangesEditing');return(_0x506e4a,_0x46f44c,_0x313902)=>{if(!_0x313902['consumable']['test'](_0x46f44c['markerRange'],_0x506e4a['name']))return;const _0x42e011=_0x46f44c['markerRange']['getWalker'](),_0x4f2846=_0x46f44c['markerRange']['start'],_0x5c6bf5=_0x330c8e['model']['schema'];let _0x5d916e=null,_0x41f4bd=null,_0x16f6fe=!0x1,_0x5b0418=!0x1;for(const _0x4ef698 of _0x42e011){const _0x1d0190=_0x4ef698['item'];_0x16f6fe=_0x16f6fe||_0x5c6bf5['isContent'](_0x1d0190);const _0x4c484a=_0x313902['mapper']['toViewElement'](_0x1d0190);if(_0x4c484a&&_0x4c484a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4ef698['type']&&(_0x5c6bf5['isBlock'](_0x1d0190)&&!_0x5c6bf5['isLimit'](_0x1d0190)&&(_0x1d0190['nextSibling']||_0x4f2846['isAtEnd']?_0x5d916e&&_0x5d916e['parent']==_0x1d0190||(_0x5d916e=_0x1d0190,_0x1b0522(_0x4ef698['previousPosition']),_0x5b0418=!0x0):_0x41f4bd=_0x41f4bd||_0x4ef698['previousPosition']));}function _0x1b0522(_0x4e689a){const {id:_0x386e96,authorId:_0x5e9e81}=_0x2d3202['_splitMarkerName'](_0x46f44c['markerName']),_0x531f64=_0x313902['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcc97cb,'data-suggestion':_0x386e96,'data-author-id':_0x5e9e81}),_0x570e3d=_0x313902['mapper']['toViewPosition'](_0x4e689a);_0x134a9b&&_0x2d3202['activeMarkers']['includes'](_0x46f44c['markerName'])&&_0x313902['writer']['addClass']('ck-suggestion-marker--active',_0x531f64),_0x313902['writer']['insert'](_0x570e3d,_0x531f64),_0x313902['mapper']['bindElementToMarker'](_0x531f64,_0x46f44c['markerName']);}_0x16f6fe||_0x5b0418||!_0x41f4bd||_0x1b0522(_0x41f4bd);};}class z extends _0x1bca86{static get['requires'](){return[_0x1fb13e];}['init'](){const _0xd7e495=this['editor'],_0x53edb8=_0xd7e495['plugins']['get']('TrackChangesEditing');_0x53edb8['enableCommand']('delete');const _0x14c0d1=_0xd7e495['commands']['get']('deleteForward');_0x53edb8['enableCommand']('deleteForward',(_0x13fbd1,_0xa6a01f={})=>{const _0x1ea6d3=_0xd7e495['model']['createSelection'](_0xd7e495['model']['document']['selection']);_0x1ea6d3['isCollapsed']&&_0xd7e495['model']['modifySelection'](_0x1ea6d3,{'direction':'forward','unit':_0xa6a01f['unit']});const _0x5755f1=_0x1ea6d3['getFirstRange'](),_0x5ea2d6=_0x35191f['fromRange'](_0x5755f1);let _0x42373b;_0x13fbd1(_0xa6a01f),_0x42373b='$graveyard'==_0x5ea2d6['root']['rootName']?_0xd7e495['model']['createRange'](_0x5755f1['start']):_0xd7e495['model']['createRange'](_0x5ea2d6['start'],_0x5ea2d6['end']),_0x5ea2d6['detach'](),_0xd7e495['model']['enqueueChange'](_0x14c0d1['buffer']['batch'],_0x143491=>{_0x14c0d1['buffer']['lock'](),_0x143491['setSelection'](_0x143491['createRange'](_0x42373b['end'])),_0x14c0d1['buffer']['unlock']();});}),_0xd7e495['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0xd7e495,'merge'),{'priority':'high'}),_0xd7e495['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4a41dc,_0x5208f8,_0x1d3d55)=>{_0x1d3d55['options']['showSuggestionHighlights']&&Ge(_0xd7e495,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4a41dc,_0x5208f8,_0x1d3d55);},{'priority':'high'}),_0xd7e495['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x27fa9b,_0x3baf95,_0x280f49)=>{const _0x2cab33=_0x280f49['mapper']['markerNameToElements'](_0x3baf95['markerName']);if(_0x2cab33){for(const _0x56b36e of _0x2cab33)_0x56b36e['is']('uiElement')&&(_0x280f49['mapper']['unbindElementFromMarkerName'](_0x56b36e,_0x3baf95['markerName']),_0x280f49['writer']['remove'](_0x56b36e));}},{'priority':'high'});}}class Q extends _0x1bca86{['afterInit'](){const _0x340ca0=this['editor'];if(!_0x340ca0['plugins']['has']('ListEditing'))return;const _0x63b751=_0x340ca0['locale'],_0x6f2c28=_0x340ca0['plugins']['get']('TrackChangesEditing'),_0x5d3060=_0x340ca0['plugins']['has']('TodoListEditing'),_0x2acf59=!!_0x340ca0['config']['get']('list.multiBlock');function _0x419caf(_0x5ac214){return{'type':'format','content':''+o(_0x63b751,'*Set\x20format:*\x20%0',_0x5ac214)};}function _0x274f9e(_0x4846df){return{'type':'format','content':''+o(_0x63b751,'*Remove\x20format:*\x20%0',_0x4846df)};}_0x6f2c28['enableDefaultAttributesIntegration']('numberedList'),_0x6f2c28['enableDefaultAttributesIntegration']('bulletedList'),_0x6f2c28['enableDefaultAttributesIntegration']('customNumberedList'),_0x6f2c28['enableDefaultAttributesIntegration']('customBulletedList'),_0x6f2c28['enableDefaultAttributesIntegration']('indentList'),_0x6f2c28['enableDefaultAttributesIntegration']('outdentList'),_0x6f2c28['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x6f2c28['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x6f2c28['registerBlockAttribute']('listItemId'),_0x6f2c28['registerBlockAttribute']('listType'),_0x6f2c28['registerBlockAttribute']('listIndent'),_0x2acf59&&(_0x6f2c28['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x6f2c28['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5d3060&&(_0x6f2c28['enableDefaultAttributesIntegration']('todoList'),_0x6f2c28['enableDefaultAttributesIntegration']('checkTodoList'),_0x6f2c28['registerBlockAttribute']('todoListChecked'),_0x6f2c28['descriptionFactory']['registerDescriptionCallback'](_0x214ae=>{const {data:_0x4da5b3}=_0x214ae;if(_0x4da5b3&&'todoListChecked'==_0x4da5b3['key'])return{'type':'format','content':_0x4da5b3['newValue']?o(_0x63b751,'*Check\x20item*'):o(_0x63b751,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xa80f97=>{if(_0xa80f97['batch']['isUndo'])return!0x1;let _0x80944d=!0x1;const _0x5f34c7=_0x6f2c28['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26b991=>'todoListChecked'===_0x6f2c28['_getAttributeKey'](_0x26b991));for(const _0x3bdd9f of _0x5f34c7){'todo'!=_0x3bdd9f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x6f2c28['_findSuggestions'](_0x3bdd9f['getFirstRange'](),'attribute')['find'](_0x230a05=>'listType'===_0x6f2c28['_getAttributeKey'](_0x230a05['suggestion']))||(_0xa80f97['removeMarker'](_0x3bdd9f['getFirstMarker']()),_0x80944d=!0x0));}return _0x80944d;})),_0x6f2c28['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x63b751,'FORMAT_INDENT'));const _0x37bcb5={'type':'format','content':''};_0x6f2c28['descriptionFactory']['registerDescriptionCallback'](_0x1927a0=>{const {data:_0x55744b}=_0x1927a0;if(!_0x55744b||'listType'!=_0x55744b['key'])return;let _0x1db502=_0x1927a0['head'];for(;_0x1db502;){if(_0x1db502['data']&&(('listStyle'==_0x1db502['data']['key']||'listMarkerStyle'==_0x1db502['data']['key'])&&(_0x1db502['data']['newValue']&&'default'!=_0x1db502['data']['newValue']||'default'!=_0x1db502['data']['oldValue']&&!_0x55744b['newValue'])||!_0x2acf59&&_0x1db502['data']['key']==m))return _0x37bcb5;_0x1db502=_0x1db502['next'];}if(null==_0x55744b['newValue'])switch(_0x55744b['oldValue']){case'bulleted':return _0x274f9e(o(_0x63b751,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x274f9e(o(_0x63b751,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x274f9e(o(_0x63b751,'ELEMENT_TODO_LIST'));}switch(_0x55744b['newValue']){case'bulleted':return _0x419caf(o(_0x63b751,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x419caf(o(_0x63b751,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x419caf(o(_0x63b751,'ELEMENT_TODO_LIST'));}}),_0x6f2c28['descriptionFactory']['registerDescriptionCallback'](_0x206853=>{const {data:_0xf0116f}=_0x206853;if(_0xf0116f&&'listIndent'==_0xf0116f['key'])return null==_0xf0116f['newValue']||null==_0xf0116f['oldValue']&&0x0==_0xf0116f['newValue']?_0x37bcb5:void 0x0;}),_0x6f2c28['descriptionFactory']['registerDescriptionCallback'](_0x717126=>{if('attribute'!=_0x717126['type'])return;const {data:_0x1c71f4}=_0x717126;if(!_0x1c71f4||'listItemId'!=_0x1c71f4['key'])return;const _0x455eae=Be(_0x717126);return'newValue'==_0x455eae?{'type':'format','content':o(_0x63b751,'*Merge:*\x20list\x20item')}:'oldValue'==_0x455eae?{'type':'format','content':o(_0x63b751,'*Split:*\x20list\x20item')}:_0x37bcb5;}),_0x340ca0['model']['document']['registerPostFixer'](_0x3e0e38=>this['listItemIdFixer'](_0x3e0e38)),_0x340ca0['model']['document']['registerPostFixer'](_0x4cb4ce=>this['noTrackChangesFixer'](_0x4cb4ce)),_0x340ca0['model']['document']['on']('change:data',(_0x5442fb,_0x591d71)=>{if(_0x591d71['isUndo']||!_0x591d71['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5a78e1){if(_0x5a78e1['batch']['isUndo']||!_0x5a78e1['batch']['isLocal'])return!0x1;let _0x1b9d96=!0x1;const _0x54f827=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e998a=>_0x1e998a['data']&&'listItemId'==_0x1e998a['data']['key'])['filter'](_0x5d8695=>_0x5d8695['data']['newValue']&&_0x5d8695['data']['oldValue']);for(const _0x2b1ee6 of _0x54f827)Be(_0x2b1ee6)||(_0x5a78e1['removeMarker'](_0x2b1ee6['getFirstMarker']()),_0x1b9d96=!0x0);return _0x1b9d96;}['noTrackChangesFixer'](_0x179d90){if(_0x179d90['batch']['isUndo']||!_0x179d90['batch']['isLocal'])return!0x1;const _0x9bccc1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x9bccc1['trackChangesCommand']['value'])return!0x1;let _0x2fbbf0=!0x1;const _0x9d6ca0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1b4db0=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x56143e=>'attribute'==_0x56143e['type'])['filter'](_0x44b5fd=>_0x9d6ca0['includes'](_0x44b5fd['attributeKey']));if(0x0==_0x1b4db0['length'])return _0x2fbbf0;for(const _0x49ffa4 of _0x1b4db0){const _0x5730c6=_0x9bccc1['_findSuggestions'](_0x49ffa4['range'],'attribute')['filter'](_0x234c90=>!_0x234c90['meta']['isNextTo'])['map'](_0x558976=>_0x558976['suggestion'])['filter'](_0x5bce8b=>{const _0x5530d1=_0x9bccc1['_getAttributeKey'](_0x5bce8b);return _0x9d6ca0['includes'](_0x5530d1);});if(_0x5730c6['length']){for(const _0x178f6c of _0x5730c6)_0x179d90['removeMarker'](_0x178f6c['getFirstMarker']());_0x2fbbf0=!0x0;}}return _0x2fbbf0;}['assureChains'](){const _0x322885=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13c3cc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4f9ff1;const _0x13ae11=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x214b0a=>{if(_0x214b0a['data']['oldRange']||!_0x214b0a['data']['newRange'])return null;if(!_0x214b0a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x598f0f}=_0x322885['_splitMarkerName'](_0x214b0a['name']);if(!_0x322885['hasSuggestion'](_0x598f0f))return null;const _0x2cfe3a=_0x322885['getSuggestion'](_0x598f0f);return _0x13c3cc['includes'](_0x2cfe3a['data']['key']);})['map'](_0x86a11f=>{const {id:_0x20db00}=_0x322885['_splitMarkerName'](_0x86a11f['name']),_0x20e9e6=_0x322885['getSuggestion'](_0x20db00);return _0x4f9ff1=_0x20e9e6['attributes']['groupId'],_0x20e9e6['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x13ae11['size'])return;const _0x234044=_0x322885['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x282363=>'attribute'==_0x282363['type']&&_0x282363['data']&&_0x13c3cc['includes'](_0x282363['data']['key'])&&_0x282363['attributes']['groupId']!=_0x4f9ff1)['map'](_0x14b13a=>({'listItem':_0x14b13a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x14b13a['attributes']['groupId']})),_0x584e07=new Set();for(const {groupId:_0x42acf2,listItem:_0x3163b7}of _0x234044)_0x13ae11['has'](_0x3163b7)&&_0x584e07['add'](_0x42acf2);for(const _0x9e8ae1 of _0x322885['getSuggestions']())_0x584e07['has'](_0x9e8ae1['attributes']['groupId'])&&_0x9e8ae1['setAttribute']('groupId',_0x4f9ff1);}['_supportLegacySuggestions'](){const _0x4f3d6a=this['editor'],_0xcb8262=_0x4f3d6a['locale'],_0x15e3f9=_0x4f3d6a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x15e3f9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x31c901,_0x1815fd){const _0x218c08=[];for(let _0xfb6f63 of _0x31c901)_0xfb6f63['start']['nodeAfter']===_0xfb6f63['end']['parent']&&(_0xfb6f63=_0x4f3d6a['model']['createRange'](_0x4f3d6a['model']['createPositionAt'](_0xfb6f63['start']['nodeAfter'],0x0))),_0x218c08['push'](_0xfb6f63);_0x4f3d6a['model']['change'](_0x44ae7a=>{const _0x50c157=_0x4f3d6a['model']['document']['selection'],_0x1d957d=Array['from'](_0x50c157['getRanges']())['map'](_0x1e8be1=>_0x35191f['fromRange'](_0x1e8be1));_0x44ae7a['setSelection'](_0x218c08),_0x4f3d6a['commands']['get'](_0x1815fd['commandName'])['refresh'](),_0x1815fd['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4f3d6a['execute'](_0x1815fd['commandName'],..._0x1815fd['commandParams']),_0x44ae7a['setSelection'](_0x1d957d);for(const _0x292aee of _0x1d957d)_0x292aee['detach']();});}),_0x15e3f9['descriptionFactory']['registerElementLabel'](function(_0x176ee8){const _0x5d0bbf=!_0x4f3d6a['model']['schema']['isObject'](_0x176ee8),_0xdf4ebb=_0x176ee8['previousSibling'],_0x2547e1=_0x176ee8['nextSibling'],_0x40ac78=_0x176ee8['getAttribute']('listItemId'),_0x98627d=!_0xdf4ebb||_0xdf4ebb['getAttribute']('listItemId')!==_0x40ac78,_0x42d0b2=!_0x2547e1||_0x2547e1['getAttribute']('listItemId')!==_0x40ac78;return _0x5d0bbf&&Boolean(_0x40ac78)&&_0x98627d&&_0x42d0b2;},_0x37e8bd=>o(_0xcb8262,'ELEMENT_LIST_ITEM',_0x37e8bd));}['_registerLegacyDescription'](){const _0x2cdb77=this['editor'],_0x3e57a3=_0x2cdb77['locale'];function _0x48e080(_0x40f732){const _0x57fdc2=_0x2cdb77['commands']['get']('bulletedList')['value'],_0x407684=_0x2cdb77['commands']['get']('numberedList')['value'];return'numberedList'===_0x40f732?_0x57fdc2:_0x407684;}_0x2cdb77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2d1c1d){if('formatBlock'!=_0x2d1c1d['type'])return;const {data:_0x89a11c}=_0x2d1c1d;if(!_0x89a11c)return;let _0x4e9f0e,_0x588b03,_0x487fdd,_0x1fa66c;switch(_0x89a11c['commandName']){case'bulletedList':_0x487fdd=_0x89a11c['commandParams'][0x0]['forceValue'],_0x1fa66c=_0x48e080(_0x89a11c['commandName']),_0x4e9f0e=_0x487fdd?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1fa66c&&_0x2cdb77['config']['get']('list.multiBlock')||(_0x4e9f0e='*Change\x20to:*\x20%0'),_0x588b03={'type':'format','content':o(_0x3e57a3,_0x4e9f0e,o(_0x3e57a3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x487fdd=_0x89a11c['commandParams'][0x0]['forceValue'],_0x1fa66c=_0x48e080(_0x89a11c['commandName']),_0x4e9f0e=_0x487fdd?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1fa66c&&_0x2cdb77['config']['get']('list.multiBlock')||(_0x4e9f0e='*Change\x20to:*\x20%0'),_0x588b03={'type':'format','content':o(_0x3e57a3,_0x4e9f0e,o(_0x3e57a3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4e9f0e='*Indent:*\x20%0',_0x588b03={'type':'format','content':o(_0x3e57a3,_0x4e9f0e,o(_0x3e57a3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4e9f0e=function(_0x418cf9){const _0x411da1=_0x418cf9['getFirstRange']();let _0x67725d=_0x411da1['start']['nodeAfter'];for(;_0x67725d&&_0x411da1['containsItem'](_0x67725d);){if(_0x67725d['getAttribute']('listIndent')>0x0)return!0x1;_0x67725d=_0x67725d['nextSibling'];}return!0x0;}(_0x2d1c1d)?o(_0x3e57a3,'*Format:*\x20remove\x20from\x20%0',o(_0x3e57a3,function(_0x3e6b85){return'ELEMENT_'+_0x3e6b85['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2d1c1d))):o(_0x3e57a3,'*Outdent:*\x20%0',o(_0x3e57a3,'ELEMENT_LIST_ITEM')),_0x588b03={'type':'format','content':_0x4e9f0e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x89a11c['multipleBlocks']&&(_0x4e9f0e='*Merge:*\x20%0',_0x588b03={'type':'deletion','content':o(_0x3e57a3,_0x4e9f0e,o(_0x3e57a3,'ELEMENT_LIST_ITEM'))});}return _0x588b03;});}}function Be(_0x4249d4){let _0x394fd2=_0x4249d4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x394fd2;){const _0x2e061a=_0x394fd2['getAttribute']('listItemId');if(!_0x2e061a)return!0x1;if(_0x2e061a==_0x4249d4['data']['newValue'])return'newValue';if(_0x2e061a==_0x4249d4['data']['oldValue'])return'oldValue';_0x394fd2=_0x394fd2['previousSibling'];}return!0x1;}class X extends _0x1bca86{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2a98e0=this['editor']['config']['get']('list.properties'),_0x420a08=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a98e0['styles']&&(_0x420a08['enableDefaultAttributesIntegration']('listStyle'),_0x420a08['registerBlockAttribute']('listStyle')),_0x2a98e0['reversed']&&(_0x420a08['enableDefaultAttributesIntegration']('listReversed'),_0x420a08['registerBlockAttribute']('listReversed')),_0x2a98e0['startIndex']&&(_0x420a08['enableDefaultAttributesIntegration']('listStart'),_0x420a08['registerBlockAttribute']('listStart'));const _0x126320={'type':'format','content':''};_0x420a08['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2f0fa2=this['editor']['locale'];_0x420a08['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2f0fa2,'FORMAT_LIST_REVERSED')),_0x420a08['descriptionFactory']['registerDescriptionCallback'](_0x3aadca=>{const {data:_0x3e2b68}=_0x3aadca;if(_0x3e2b68&&'listReversed'==_0x3e2b68['key'])return null==_0x3e2b68['newValue']||0x0==_0x3e2b68['newValue']&&null==_0x3e2b68['oldValue']?_0x126320:void 0x0;}),_0x420a08['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2f0fa2,'FORMAT_LIST_START')),_0x420a08['descriptionFactory']['registerDescriptionCallback'](_0x483e61=>{const {data:_0x8ca246}=_0x483e61;if(_0x8ca246&&'listStart'==_0x8ca246['key'])return null==_0x8ca246['newValue']||0x1==_0x8ca246['newValue']&&null==_0x8ca246['oldValue']?_0x126320:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x338476=>{if(_0x338476['batch']['isUndo'])return!0x1;let _0x54b5d0=!0x1;const _0x24eaa9=_0x420a08['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30d69e=>{const _0x3107b2=_0x420a08['_getAttributeKey'](_0x30d69e);return'listStart'==_0x3107b2||'listReversed'==_0x3107b2;});for(const _0x37b4ff of _0x24eaa9){const _0x5812b6=_0x37b4ff['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5812b6||'customNumbered'==_0x5812b6)continue;_0x420a08['_findSuggestions'](_0x37b4ff['getFirstRange'](),'attribute')['find'](_0xcf0ce0=>'listType'==_0x420a08['_getAttributeKey'](_0xcf0ce0['suggestion']))||(_0x338476['removeMarker'](_0x37b4ff['getFirstMarker']()),_0x54b5d0=!0x0);}return _0x54b5d0;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3d59c8){const _0x4a9a7c=this['editor']['locale'],{data:_0x386130}=_0x3d59c8,_0xe5642a={'type':'format','content':''};if(!_0x386130||'listStyle'!=_0x386130['key'])return;if(!_0x386130['oldValue'])return'default'==_0x386130['newValue']?_0xe5642a:{'type':'format','content':''+o(_0x4a9a7c,'*Set\x20format:*\x20%0',o(_0x4a9a7c,this['_getTranslationKeyForListStyle'](_0x386130['newValue'])))};if(!_0x386130['newValue']){if('default'==_0x386130['oldValue'])return _0xe5642a;let _0x1134a9=_0x3d59c8['head'];for(;_0x1134a9;){if(_0x1134a9['data']&&'listType'==_0x1134a9['data']['key']&&_0x1134a9['data']['newValue'])return _0xe5642a;_0x1134a9=_0x1134a9['next'];}return{'type':'format','content':''+o(_0x4a9a7c,'*Remove\x20format:*\x20%0',o(_0x4a9a7c,this['_getTranslationKeyForListStyle'](_0x386130['oldValue'])))};}if('default'!=_0x386130['newValue'])return{'type':'format','content':''+o(_0x4a9a7c,'*Set\x20format:*\x20%0',o(_0x4a9a7c,this['_getTranslationKeyForListStyle'](_0x386130['newValue'])))};let _0x4ae214=_0x3d59c8['head'];for(;_0x4ae214;){if(_0x4ae214['data']&&'listType'==_0x4ae214['data']['key']&&_0x4ae214['data']['newValue']&&_0x4ae214['data']['oldValue'])return _0xe5642a;_0x4ae214=_0x4ae214['next'];}return{'type':'format','content':o(_0x4a9a7c,'*Set\x20format:*\x20%0',o(_0x4a9a7c,'ELEMENT_'+_0x3d59c8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x300d06=this['editor'],_0x3c9554=_0x300d06['locale'];_0x300d06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x214390=>{if('formatBlock'!=_0x214390['type'])return;const {data:_0x2ddadb}=_0x214390;if(!_0x2ddadb)return;let _0x3b1fde,_0x1ea147;switch(_0x2ddadb['commandName']){case'listStyle':_0x3b1fde='*Change\x20to:*\x20%0',_0x1ea147={'type':'format','content':o(_0x3c9554,_0x3b1fde,o(_0x3c9554,this['_getTranslationKeyForListStyle'](_0x2ddadb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3b1fde=_0x2ddadb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ea147={'type':'format','content':o(_0x3c9554,_0x3b1fde)};break;case'listStart':_0x3b1fde='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ea147={'type':'format','content':o(_0x3c9554,_0x3b1fde,_0x2ddadb['commandParams'][0x0]['startIndex'])};}return _0x1ea147;});}['_getTranslationKeyForListStyle'](_0x12624e){return'ELEMENT_'+function(_0x175fa8){if(Re['includes'](_0x175fa8))return'bulleted';if(Fe['includes'](_0x175fa8))return'numbered';return null;}(_0x12624e)['toUpperCase']()+'_LIST_'+_0x12624e['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Fe=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Y extends _0x1bca86{['afterInit'](){const _0x119a05=this['editor'];_0x119a05['commands']['get']('emoji')&&_0x119a05['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Z extends _0x1bca86{static get['requires'](){return[_0x30ecc7];}['init'](){const _0x1a8767=this['editor'],_0x3076d0=_0x1a8767['plugins']['get']('TrackChangesEditing'),_0x43451a=_0x1a8767['commands']['get']('enter');_0x3076d0['enableCommand']('enter',()=>{_0x1a8767['model']['change'](_0x1516d3=>{const _0x197058=_0x1a8767['model']['document']['selection'],_0x389d7a=_0x197058['getFirstPosition'](),_0xb2fb3b=_0x35191f['fromRange'](_0x197058['getFirstRange']());if(_0x43451a['enterBlock'](_0x1516d3)){const _0x3b88c2=_0x1a8767['model']['createPositionAt'](_0x389d7a['parent']['nextSibling'],0x0),_0x43733c=_0x1516d3['createRange'](_0x389d7a,_0x3b88c2);_0x3076d0['markInsertion'](_0x43733c);}else _0x1516d3['setSelection'](_0x1516d3['createRange'](_0xb2fb3b['end']));_0xb2fb3b['detach'](),_0x43451a['fire']('afterExecute',{'writer':_0x1516d3});});}),_0x1a8767['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0x1a8767,'split'),{'priority':'high'}),_0x1a8767['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x516de2,_0x35b36b,_0x539de6)=>{const _0x2a6d4e=_0x539de6['mapper']['markerNameToElements'](_0x35b36b['markerName']);if(_0x2a6d4e){for(const _0xaa842b of _0x2a6d4e)_0xaa842b['hasClass']('ck-suggestion-marker-split')&&(_0x539de6['mapper']['unbindElementFromMarkerName'](_0xaa842b,_0x35b36b['markerName']),_0x539de6['writer']['remove'](_0xaa842b));}},{'priority':'high'}),_0x1a8767['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xae7eb1,_0x896cfd,_0x3b325d)=>{_0x3b325d['options']['showSuggestionHighlights']&&Ge(_0x1a8767,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xae7eb1,_0x896cfd,_0x3b325d);},{'priority':'high'});}}class tt extends _0x1bca86{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5ebf17=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ebf17['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5ebf17['enableCommand']('findNext'),_0x5ebf17['enableCommand']('findPrevious'),_0x5ebf17['enableCommand']('replace'),_0x5ebf17['enableCommand']('replaceAll');}['handleFindCommand'](_0x1aa4d5,_0x2155d0,_0x3f294d={}){const _0x23c366=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1aa4d5(_0x569690=>{let _0x2e972c=('string'==typeof _0x2155d0?_0x23c366['findByTextCallback'](_0x2155d0,_0x3f294d):_0x2155d0)(_0x569690);Array['isArray'](_0x2e972c)&&(_0x2e972c={'results':_0x2e972c,'searchText':'string'==typeof _0x2155d0?_0x2155d0:''});const _0xb82d5f=_0x2e972c['results']['filter'](_0x1880ae=>!0x1===this['_isInDeletionRange'](_0x1880ae,_0x569690['item']));return{..._0x2e972c,'results':_0xb82d5f};},_0x3f294d);}['_isInDeletionRange'](_0x4efd9f,_0x5aa897){const _0x9d6988=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5aa897,_0x4efd9f['start']),this['editor']['model']['createPositionAt'](_0x5aa897,_0x4efd9f['end']));for(const _0x49fd7c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x9d6988['getIntersection'](_0x49fd7c['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class et extends _0x1bca86{['afterInit'](){const _0x555ef5=this['editor']['locale'],_0x8807f9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4c1576,commandName:_0x1cfe3c}of eo)this['editor']['plugins']['has'](_0x4c1576)&&(_0x8807f9['enableDefaultAttributesIntegration'](_0x1cfe3c),_0x8807f9['registerInlineAttribute'](_0x1cfe3c));_0x8807f9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x555ef5,'FORMAT_FONT_SIZE')),_0x8807f9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x555ef5,'FORMAT_FONT_FAMILY')),_0x8807f9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x555ef5,'FORMAT_FONT_COLOR')),_0x8807f9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x555ef5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x516618=this['editor'],_0x10cf09=_0x516618['locale'];_0x516618['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2308da=>{const _0x2acce4=_0x10cf09['t'];if('formatInline'!=_0x2308da['type'])return;const {data:_0x277e2e}=_0x2308da;if(null!=_0x277e2e){if('fontSize'==_0x277e2e['commandName']){const _0x20b1fb=_0x277e2e['commandParams'][0x0]['value'];if(_0x20b1fb){const _0x202a4b=_0x2acce4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xdb5f5a=>_0xdb5f5a['model']==_0x20b1fb)['title'])['toLowerCase']();return{'type':'format','content':o(_0x10cf09,'*Set\x20font\x20size:*\x20%0',_0x202a4b)};}return{'type':'format','content':o(_0x10cf09,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x277e2e['commandName']){const _0x94ec95=_0x277e2e['commandParams'][0x0]['value'];return _0x94ec95?{'type':'format','content':o(_0x10cf09,'*Set\x20font\x20family:*\x20%0',_0x94ec95)}:{'type':'format','content':o(_0x10cf09,'*Reset\x20font\x20family*')};}if('fontColor'==_0x277e2e['commandName']){const _0x5d5e19=_0x277e2e['commandParams'][0x0]['value'];if(_0x5d5e19){const _0x21fbbf=_0x296d10(this['editor']['config']['get']('fontColor.colors'))['find'](_0x196fc9=>_0x196fc9['model']==_0x5d5e19);let _0x5c7368=_0x5d5e19,_0x572986='';return _0x21fbbf&&(_0x5c7368=_0x21fbbf['label'],_0x572986=_0x2acce4(_0x5c7368)['toLowerCase']()),{'type':'format','content':o(_0x10cf09,'*Set\x20font\x20color:*\x20%0',_0x572986)['trim'](),'color':{'value':_0x5d5e19,'title':_0x572986||_0x5c7368}};}return{'type':'format','content':o(_0x10cf09,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x277e2e['commandName']){const _0x24c362=_0x277e2e['commandParams'][0x0]['value'];if(_0x24c362){const _0x5321ae=_0x296d10(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5e1e4a=>_0x5e1e4a['model']==_0x24c362);let _0xdc615c=_0x24c362,_0x22ef43='';return _0x5321ae&&(_0xdc615c=_0x5321ae['label'],_0x22ef43=_0x2acce4(_0xdc615c)['toLowerCase']()),{'type':'format','content':o(_0x10cf09,'*Set\x20font\x20background\x20color:*\x20%0',_0x22ef43)['trim'](),'color':{'value':_0x24c362,'title':_0x22ef43||_0xdc615c}};}return{'type':'format','content':o(_0x10cf09,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x1bca86{['afterInit'](){const _0x596ea1=this['editor'],_0xfc7ca8=_0x596ea1['plugins']['get']('TrackChangesEditing'),_0x319fca=_0x596ea1['commands']['get']('copyFormat'),_0x351552=_0x596ea1['commands']['get']('pasteFormat');_0x319fca&&_0x351552&&(_0xfc7ca8['enableDefaultAttributesIntegration']('pasteFormat'),_0xfc7ca8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2b293c=this['editor'],_0x5cc1e6=_0x2b293c['locale'];_0x2b293c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40f9fd=>{if('formatBlock'!=_0x40f9fd['type']&&'formatInline'!=_0x40f9fd['type'])return;const {data:_0x5e2c59}=_0x40f9fd;if(_0x5e2c59&&'pasteFormat'===_0x5e2c59['commandName']){const _0x9eef6a=[],_0x3cedfd=_0x5e2c59['commandParams'][0x0];for(const [_0x47b500,_0x31dece]of Object['entries'](_0x3cedfd))_0x9eef6a['push'](ro(_0x2b293c,_0x47b500,_0x31dece));return _0x9eef6a['length']?{'type':'format','content':o(_0x5cc1e6,'*Set\x20format\x20to:*\x20%0',_0x9eef6a['join'](',\x20'))}:{'type':'format','content':o(_0x5cc1e6,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5e68fa,_0x1c3d41,_0x1360c4){const _0x5d1d21=_0x5e68fa['locale']['t'],_0x42c710=_0x1c3d41['split'](/(?=[A-Z])/)['join']('\x20'),_0x566652=_0x5d1d21(_0x42c710['charAt'](0x0)['toUpperCase']()+_0x42c710['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1360c4)return _0x566652;if('fontColor'===_0x1c3d41||'fontBackgroundColor'===_0x1c3d41){const _0x4522e2=_0x296d10(_0x5e68fa['config']['get']('fontColor.colors'))['find'](_0x2cb0c7=>_0x2cb0c7['model']==_0x1360c4);return _0x566652+'\x20('+(_0x4522e2?_0x5d1d21(_0x4522e2['label'])['toLowerCase']():_0x1360c4)+')';}if('fontSize'===_0x1c3d41&&isNaN(parseFloat(_0x1360c4))){const _0x4afa14=_0x5e68fa['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5e68fa['config']['get']('fontSize.options'))['find'](_0x2410da=>_0x2410da['model']==_0x1360c4);return _0x566652+'\x20('+(_0x4afa14?_0x5d1d21(_0x4afa14['title'])['toLowerCase']():_0x1360c4)+')';}return _0x566652+'\x20('+_0x1360c4+')';}class nt extends _0x1bca86{['_headingOptions'];['afterInit'](){const _0x9ca8ca=this['editor'];if(!_0x9ca8ca['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x9ca8ca['config']['get']('heading.options');const _0x47e2c1=_0x9ca8ca['locale'],_0x46a70c=_0x9ca8ca['plugins']['get']('TrackChangesEditing');_0x46a70c['enableDefaultAttributesIntegration']('heading');for(const _0x499f78 of this['_headingOptions'])'paragraph'!=_0x499f78['model']&&_0x46a70c['descriptionFactory']['registerElementLabel'](_0x499f78['model'],_0x554073=>{const _0x5723f8=this['_getHeadingLevel'](_0x499f78['model']);return null!==_0x5723f8?_0x36b3c7(_0x554073,_0x5723f8):_0x272171(_0x554073,_0x499f78['title']);});function _0x36b3c7(_0x35265a,_0x5e9be0){return o(_0x47e2c1,'ELEMENT_HEADING',[_0x35265a,_0x5e9be0]);}function _0x272171(_0x388dd7,_0x2b8f8b){return o(_0x47e2c1,'ELEMENT_HEADING_CUSTOM',[_0x388dd7,_0x2b8f8b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb45986=this['editor'],_0x15f663=_0xb45986['locale'];function _0x2dd87d(_0x3a25fe,_0x2e0224){return o(_0x15f663,'ELEMENT_HEADING_CUSTOM',[_0x3a25fe,_0x2e0224]);}_0xb45986['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23401e=>{if('formatBlock'!=_0x23401e['type'])return;const {data:_0x44f5a4}=_0x23401e;if(_0x44f5a4&&'heading'==_0x44f5a4['commandName']){const _0x2f0d7a=_0x44f5a4['commandParams'][0x0]['value'],_0x243071=this['_getHeadingLevel'](_0x2f0d7a);if(null!==_0x243071)return{'type':'format','content':o(_0x15f663,'*Change\x20to:*\x20%0',(_0x589e44=0x1,_0x2e25b6=_0x243071,o(_0x15f663,'ELEMENT_HEADING',[_0x589e44,_0x2e25b6])))};const _0x75bde1=this['_headingOptions']['find'](_0x2c4115=>_0x2c4115['model']===_0x2f0d7a)['title'];return{'type':'format','content':o(_0x15f663,'*Change\x20to:*\x20%0',_0x2dd87d(0x1,_0x75bde1))};}var _0x589e44,_0x2e25b6;});}['_getHeadingLevel'](_0x1678cc){const _0x3f2e83=_0x1678cc['match'](/^heading(\d+)/);if(_0x3f2e83)return _0x3f2e83[0x1];const _0x127035=this['_headingOptions']?.['find'](_0x418db6=>_0x418db6['model']==_0x1678cc);if(_0x127035&&_0x127035['view']){const _0x5f161d=_0x127035['view'],_0x449fb4=(_0x5f161d['name']??_0x5f161d)['match'](/^h(\d+)/);if(_0x449fb4)return _0x449fb4[0x1];}return null;}}class st extends _0x1bca86{['afterInit'](){const _0x5ac0a1=this['editor'];if(!_0x5ac0a1['plugins']['has']('HighlightEditing'))return;const _0xcbddbe=_0x5ac0a1['plugins']['get']('TrackChangesEditing'),_0x48f293=_0x5ac0a1['locale'];_0xcbddbe['enableDefaultAttributesIntegration']('highlight'),_0xcbddbe['registerInlineAttribute']('highlight'),_0xcbddbe['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x48f293,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x495f77=this['editor'],_0x12b0e1=_0x495f77['locale'];_0x495f77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a417=>{if('formatInline'!=_0x5a417['type'])return;const {data:_0x316195}=_0x5a417;if(_0x316195&&'highlight'==_0x316195['commandName']){const _0x475e4b=_0x12b0e1['t'],_0x4bdf32=_0x316195['commandParams'][0x0]['value'];if(_0x4bdf32){const _0x58c5f7=_0x495f77['config']['get']('highlight.options')['find'](_0x5afb1d=>_0x5afb1d['model']==_0x4bdf32),_0xd5fa01=_0x475e4b(_0x58c5f7['title'])['toLowerCase']();return{'type':'format','content':o(_0x12b0e1,'*Set\x20highlight:*\x20%0',_0xd5fa01),'color':{'value':_0x58c5f7['color'],'title':_0x58c5f7['title']}};}return{'type':'format','content':o(_0x12b0e1,'*Remove\x20highlight*',o(_0x12b0e1,'FORMAT_HIGHLIGHT'))};}});}}class ot extends _0x1bca86{['afterInit'](){const _0x33efa6=this['editor'];if(!_0x33efa6['plugins']['has']('HorizontalLineEditing'))return;_0x33efa6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1eea43=_0x33efa6['plugins']['get']('TrackChangesEditing'),_0x50b9e2=_0x33efa6['locale'];_0x1eea43['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4048c7=>o(_0x50b9e2,'ELEMENT_HORIZONTAL_LINE',_0x4048c7)),_0x33efa6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5d1a26,{writer:_0x4477ba,options:_0x249b2a})=>{if(!_0x249b2a['showSuggestionHighlights'])return null;const _0x4ebee6=_0x4477ba['createContainerElement']('div'),_0x593c70=_0x4477ba['createEmptyElement']('hr');return _0x4477ba['addClass']('ck-horizontal-line',_0x4ebee6),_0x4477ba['insert'](_0x4477ba['createPositionAt'](_0x4ebee6,0x0),_0x593c70),_0x4ebee6;},'converterPriority':'high'});}}class rt extends _0x1bca86{['afterInit'](){const _0x23f515=this['editor'];if(!_0x23f515['plugins']['has']('HtmlEmbed'))return;const _0xc371a=_0x23f515['plugins']['get']('TrackChangesEditing'),_0x1e675e=_0x23f515['locale'];_0xc371a['descriptionFactory']['registerElementLabel']('rawHtml',_0x537e91=>o(_0x1e675e,'ELEMENT_HTML_EMBED',_0x537e91)),_0xc371a['enableDefaultAttributesIntegration']('htmlEmbed'),_0xc371a['registerBlockAttribute']('value'),_0xc371a['descriptionFactory']['registerDescriptionCallback'](_0x55d5f7=>{if('attribute'!=_0x55d5f7['type'])return;const {data:_0x3f2c80}=_0x55d5f7;if(_0x3f2c80&&'value'==_0x3f2c80['key']&&_0x55d5f7['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x243dab=o(_0x1e675e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1e675e,'*Change\x20%0\x20content*',_0x243dab)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x227d24=this['editor'],_0x374b63=_0x227d24['locale'];_0x227d24['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x396e18=>{if('formatBlock'!=_0x396e18['type'])return;const {data:_0x2f4ba1}=_0x396e18;if(_0x2f4ba1&&'htmlEmbed'==_0x2f4ba1['commandName']){const _0x33bcd3=o(_0x374b63,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x374b63,'*Change\x20%0\x20content*',_0x33bcd3)};}});}}class at extends _0x1bca86{['afterInit'](){const _0x5b280b=this['editor'];if(!_0x5b280b['plugins']['has']('ImageEditing'))return;const _0x4ae32d=_0x5b280b['plugins']['get']('TrackChangesEditing'),_0x215501=_0x5b280b['plugins']['get']('ImageUtils'),_0xa8d00f=_0x5b280b['locale'];_0x4ae32d['enableCommand']('insertImage'),_0x4ae32d['descriptionFactory']['registerElementLabel']('imageBlock',_0x3640d9=>o(_0xa8d00f,'ELEMENT_IMAGE',_0x3640d9)),_0x4ae32d['descriptionFactory']['registerElementLabel']('imageInline',_0x266d09=>o(_0xa8d00f,'ELEMENT_INLINE_IMAGE',_0x266d09)),_0x4ae32d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xa8d00f,'ELEMENT_CAPTION')),_0x5b280b['plugins']['has']('ImageUploadEditing')&&_0x4ae32d['enableCommand']('uploadImage'),_0x5b280b['plugins']['has']('ImageBlockEditing')&&_0x5b280b['plugins']['has']('ImageInlineEditing')&&(_0x4ae32d['enableCommand']('imageTypeInline',(_0x491dab,_0x34f681)=>{const _0x53ac36=_0x215501['getClosestSelectedImageElement'](_0x5b280b['model']['document']['selection']);_0x5b280b['model']['change'](()=>{_0x4ae32d['markBlockFormat'](_0x53ac36,{'commandName':'imageTypeInline','commandParams':[_0x34f681]},[],'convertBlockImageToInline');});}),_0x4ae32d['enableCommand']('imageTypeBlock',(_0x1d57a5,_0x4d8663)=>{_0x5b280b['model']['change'](_0x23a96a=>{let _0x504c34=_0x215501['getClosestSelectedImageElement'](_0x5b280b['model']['document']['selection']),_0x3ea664=_0x23a96a['createRangeOn'](_0x504c34);const _0x508706=_0x244208['fromPosition'](_0x3ea664['start'],'toPrevious'),_0x56e7cf=_0x244208['fromPosition'](_0x3ea664['end'],'toNext');_0x4ae32d['forceDefaultExecution'](()=>_0x1d57a5(_0x4d8663)),_0x504c34=_0x215501['getClosestSelectedImageElement'](_0x5b280b['model']['document']['selection']),_0x3ea664=_0x23a96a['createRangeOn'](_0x504c34);const _0x14ff8d=_0x23a96a['createRange'](_0x508706,_0x56e7cf);_0x508706['detach'](),_0x56e7cf['detach'](),_0x4ae32d['markBlockFormat'](_0x504c34,{'commandName':'imageTypeInline','commandParams':[_0x4d8663]},[],'convertInlineImageToBlock'),_0x14ff8d['start']['isBefore'](_0x3ea664['start'])&&_0x4ae32d['markInsertion'](_0x23a96a['createRange'](_0x14ff8d['start'],_0x3ea664['start']),'convertInlineImageToBlock'),_0x3ea664['end']['isBefore'](_0x14ff8d['end'])&&_0x4ae32d['markInsertion'](_0x23a96a['createRange'](_0x3ea664['end'],_0x14ff8d['end']),'convertInlineImageToBlock');});}),_0x4ae32d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4ae32d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4ae32d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4ae32d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4ae32d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4ae32d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4ef35d])=>{const _0x237ae5=_0x4ae32d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x23ff58=_0x4ef35d['start'],_0x266e1=_0x4ef35d['end'];const _0x37bbd2=_0x5b280b['model']['schema']['getNearestSelectionRange'](_0x23ff58,'backward'),_0x38b2d6=_0x5b280b['model']['schema']['getNearestSelectionRange'](_0x266e1,'forward');_0x37bbd2['isCollapsed']&&(_0x23ff58=_0x37bbd2['start']),_0x38b2d6['isCollapsed']&&(_0x266e1=_0x38b2d6['end']),_0x237ae5([_0x5b280b['model']['createRange'](_0x23ff58,_0x266e1)]);}),_0x4ae32d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x228f09),_0x4ae32d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x228f09)),_0x5b280b['plugins']['has']('ImageCaptionEditing')&&(_0x4ae32d['enableCommand']('toggleImageCaption',(_0x5b9cfa,_0x1d46f8)=>{const _0x9d3c8c=_0x5b280b['plugins']['get']('ImageCaptionUtils');let _0x2e2d84=_0x215501['getClosestSelectedImageElement'](_0x5b280b['model']['document']['selection']),_0x3067ed=_0x9d3c8c['getCaptionFromImageModelElement'](_0x2e2d84);_0x5b280b['model']['change'](()=>{if(_0x3067ed)return void _0x4ae32d['markDeletion'](_0x5b280b['model']['createRangeOn'](_0x3067ed));const _0x303229=_0x215501['isBlockImage'](_0x2e2d84);_0x5b9cfa(_0x1d46f8),_0x2e2d84=_0x215501['getClosestSelectedImageElement'](_0x5b280b['model']['document']['selection']),_0x3067ed=_0x9d3c8c['getCaptionFromImageModelElement'](_0x2e2d84),_0x4ae32d['markInsertion'](_0x5b280b['model']['createRangeOn'](_0x3067ed),_0x303229?null:'imageCaption');});}),_0x4ae32d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x228f09));const _0x2d4f3e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5739a2(_0x3fb58e,_0x466c15){const _0x753d0f=_0x2d4f3e['findIndex'](({type:_0x303029,subType:_0x31e042})=>_0x3fb58e['type']==_0x303029&&_0x3fb58e['subType']==_0x31e042),_0x1462b7=_0x2d4f3e['findIndex'](({type:_0x380e19,subType:_0x3b057b})=>_0x466c15['type']==_0x380e19&&_0x466c15['subType']==_0x3b057b);if(_0x753d0f<0x0||_0x1462b7<0x0)return!0x1;const _0x31fa76=_0x3fb58e['getFirstRange'](),_0xb1b187=_0x466c15['getFirstRange']();if((0x0==_0x753d0f||0x1==_0x753d0f)&&0x2==_0x1462b7&&_0x31fa76['isIntersecting'](_0xb1b187))return!0x0;if(0x2==_0x753d0f&&0x3==_0x1462b7){const _0x5a191a=_0x4ae32d['_findSuggestions'](_0x31fa76,'insertion')['filter'](({suggestion:_0x4be8d0,meta:_0x3340ad})=>_0x3340ad['isOwn']&&'convertInlineImageToBlock'==_0x4be8d0['subType']);if(_0x5a191a['length']>0x1&&_0xb1b187['end']['isEqual'](_0x31fa76['start']))return!0x0;if(0x1==_0x5a191a['length']&&(_0x31fa76['start']['isEqual'](_0xb1b187['end'])||_0x31fa76['end']['isEqual'](_0xb1b187['start'])))return!0x0;}if(0x3==_0x753d0f&&0x3==_0x1462b7&&_0x31fa76['start']['isBefore'](_0xb1b187['start'])){const _0x26533=_0x31fa76['end']['nodeAfter'],_0x51b2c5=_0xb1b187['start']['nodeBefore'];return _0x215501['isBlockImage'](_0x26533)&&_0x26533===_0x51b2c5;}return!0x1;}function _0x228f09(_0x5e740a,_0xfc6e65){return _0x5739a2(_0x5e740a,_0xfc6e65)?[_0x5e740a,_0xfc6e65]:_0x5739a2(_0xfc6e65,_0x5e740a)?[_0xfc6e65,_0x5e740a]:null;}_0x5b280b['plugins']['has']('ImageResize')&&(_0x4ae32d['enableDefaultAttributesIntegration']('resizeImage'),_0x4ae32d['registerBlockAttribute']('resizedWidth'),_0x4ae32d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xa8d00f,'FORMAT_IMAGE_SIZE'))),_0x5b280b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4ae32d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4ae32d['registerBlockAttribute']('alt')),_0x5b280b['plugins']['has']('PictureEditing')&&(_0x4ae32d['registerBlockAttribute']('sources'),_0x4ae32d['descriptionFactory']['registerDescriptionCallback'](_0x123be9=>{if('attribute'!=_0x123be9['type'])return;const {data:_0x3917b7}=_0x123be9;return _0x3917b7&&'sources'==_0x3917b7['key']?{'type':'format','content':''}:void 0x0;})),_0x5b280b['plugins']['has']('ImageSizeAttributes')&&(_0x4ae32d['registerBlockAttribute']('width'),_0x4ae32d['registerBlockAttribute']('height'),_0x4ae32d['descriptionFactory']['registerDescriptionCallback'](_0x265063=>{if('attribute'!=_0x265063['type'])return;const {data:_0x3d4b20}=_0x265063;return!_0x3d4b20||'width'!=_0x3d4b20['key']&&'height'!=_0x3d4b20['key']?void 0x0:{'type':'format','content':''};})),_0x4ae32d['descriptionFactory']['registerDescriptionCallback'](_0x3cad74=>{if(!!_0x2d4f3e['find'](({type:_0x1d141a,subType:_0xf7dd34})=>_0x3cad74['type']==_0x1d141a&&_0x3cad74['subType']==_0xf7dd34))return _0x3cad74['previous']?{}:void 0x0;}),_0x4ae32d['descriptionFactory']['registerDescriptionCallback'](_0x52c3d5=>{if('insertion'==_0x52c3d5['type']||'deletion'==_0x52c3d5['type']){const _0x2f2855=_0x52c3d5['getContainedElement']();if(_0x2f2855&&_0x2f2855['is']('element','caption'))return{'type':'insertion'==_0x52c3d5['type']?'addObject':'removeObject','element':_0x2f2855,'quantity':0x1};}}),_0x4ae32d['descriptionFactory']['registerDescriptionCallback'](_0x4d35b0=>'formatBlock'==_0x4d35b0['type']&&'convertInlineImageToBlock'==_0x4d35b0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4d35b0['type']&&'convertBlockImageToInline'==_0x4d35b0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4ae32d['descriptionFactory']['registerDescriptionCallback'](_0x4a511d=>{if('attribute'!=_0x4a511d['type'])return;const {data:_0x280a4a}=_0x4a511d;if(!_0x280a4a||'alt'!=_0x280a4a['key'])return;const _0xcc529d=_0x280a4a['newValue'];return _0xcc529d?{'type':'format','content':o(_0xa8d00f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xcc529d+'\x22')}:{'type':'format','content':o(_0xa8d00f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x321846=this['editor'],_0x338e65=_0x321846['locale'];_0x321846['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30ec72=>{if('formatBlock'!=_0x30ec72['type']&&'formatInline'!=_0x30ec72['type'])return;const {data:_0x414f45}=_0x30ec72;if(_0x414f45){if('imageTextAlternative'==_0x414f45['commandName']){const _0x4f9531=_0x414f45['commandParams'][0x0]['newValue'];return _0x4f9531?{'type':'format','content':o(_0x338e65,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4f9531+'\x22')}:{'type':'format','content':o(_0x338e65,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x414f45['commandName']){const _0x209e2f=_0x414f45['commandParams'][0x0]['width'];return _0x209e2f?{'type':'format','content':o(_0x338e65,'*Set\x20image\x20width:*\x20%0',_0x209e2f)}:{'type':'format','content':o(_0x338e65,'*Reset\x20image\x20width*')};}}});}}class ct extends _0x1bca86{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x51f49f=this['editor']['locale'],_0x1ed2fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ed2fa['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1ed2fa['registerBlockAttribute']('src'),_0x1ed2fa['descriptionFactory']['registerDescriptionCallback'](_0xf31bc4=>{if('attribute'!=_0xf31bc4['type'])return;const {data:_0x53fc38}=_0xf31bc4;return _0x53fc38&&'src'==_0x53fc38['key']?_0x53fc38['newValue']&&_0x53fc38['oldValue']?{'type':'format','content':o(_0x51f49f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30eca2=this['editor']['plugins']['get']('TrackChangesEditing');_0x30eca2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x30eca2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x30eca2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x30eca2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3786f5=this['editor'],_0x548275=_0x3786f5['locale'];_0x3786f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8eac52=>{if('formatBlock'!=_0x8eac52['type']&&'formatInline'!=_0x8eac52['type'])return;const {data:_0x4e843d}=_0x8eac52;if(!_0x4e843d||'replaceImageSource'!=_0x4e843d['commandName'])return;return{'type':'format','content':o(_0x548275,'*Format:*\x20replace\x20image\x20URL')};});}}class ut extends _0x1bca86{['afterInit'](){const _0x6ee42e=this['editor'];if(!_0x6ee42e['plugins']['has']('ImageStyleEditing'))return;const _0x200376=_0x6ee42e['plugins']['get']('TrackChangesEditing'),_0x3362a9=_0x6ee42e['plugins']['get']('ImageUtils'),_0x7aaa63={};_0x200376['enableCommand']('imageStyle',(_0x1ee6cc,_0x3814f1)=>{const _0x4a9ac5=_0x6ee42e['plugins']['get']('Users')['me'],_0x2e58ca=_0x6ee42e['commands']['get']('imageStyle');let _0x3d0cff=_0x3362a9['getClosestSelectedImageElement'](_0x6ee42e['model']['document']['selection']),_0x5d551d=_0x6ee42e['model']['createRangeOn'](_0x3d0cff),_0x501875=_0x2e58ca['value'];if(_0x501875==_0x3814f1['value'])return;const _0x1b4d22={'commandName':'imageStyle','commandParams':[_0x3814f1],'formatGroupId':_0x573f80()};_0x6ee42e['model']['change'](()=>{if(_0x200376['getSuggestions']()['filter'](_0x26084c=>_0x26084c['isInContent']&&_0x4a9ac5==_0x26084c['author']&&('formatBlock'==_0x26084c['type']||'formatInline'==_0x26084c['type'])&&('imageStylePreApply'==_0x26084c['subType']||'imageStylePostApply'==_0x26084c['subType'])&&_0x26084c['getFirstRange']()['isEqual'](_0x5d551d))['forEach'](_0x299b5e=>_0x200376['discardSuggestion'](_0x299b5e['head'])),_0x3d0cff=_0x3362a9['getClosestSelectedImageElement'](_0x6ee42e['model']['document']['selection']),_0x5d551d=_0x6ee42e['model']['createRangeOn'](_0x3d0cff),_0x2e58ca['refresh'](),_0x6ee42e['commands']['get']('imageTypeInline')['refresh'](),_0x6ee42e['commands']['get']('imageTypeBlock')['refresh'](),_0x501875=_0x2e58ca['value'],_0x501875!=_0x3814f1['value'])return _0x3362a9['isInlineImage'](_0x3d0cff)&&_0x2e58ca['shouldConvertImageType'](_0x3814f1['value'],_0x3d0cff)?(_0x1ee6cc({..._0x3814f1,'setImageSizes':!0x1}),_0x3d0cff=_0x3362a9['getClosestSelectedImageElement'](_0x6ee42e['model']['document']['selection']),void _0x200376['markBlockFormat'](_0x3d0cff,{..._0x1b4d22,'commandReversedParams':[{'value':_0x501875||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3362a9['isBlockImage'](_0x3d0cff)?_0x200376['markBlockFormat'](_0x3d0cff,_0x1b4d22,[],'imageStylePostApply'):_0x200376['markInlineFormat'](_0x5d551d,_0x1b4d22,'imageStylePostApply'));});});for(const _0x357da3 of _0x6ee42e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x7aaa63[_0x357da3['name']]=_0x357da3['title']['toLowerCase']();_0x200376['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x200376['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x200376['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x200376['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x490b7d])=>{_0x3362a9['setImageNaturalSizeAttributes'](_0x490b7d['getContainedElement']());}),_0x200376['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x90c561,_0x4d8691)=>{_0x200376['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x90c561,{'commandName':_0x4d8691['commandName'],'commandParams':_0x4d8691['commandReversedParams']});}),_0x200376['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x31c565,_0x4fe022){if(_0x241175(_0x31c565,_0x4fe022))return[_0x31c565,_0x4fe022];if(_0x241175(_0x4fe022,_0x31c565))return[_0x4fe022,_0x31c565];return null;});const _0xa8c953=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x241175(_0x144e33,_0x5549a2){const _0x516dbc=_0xa8c953['findIndex'](({type:_0x2fc8e7,subType:_0x22e483})=>_0x144e33['type']==_0x2fc8e7&&_0x144e33['subType']==_0x22e483),_0x1153aa=_0xa8c953['findIndex'](({type:_0x7e6c1,subType:_0x7069d6})=>_0x5549a2['type']==_0x7e6c1&&_0x5549a2['subType']==_0x7069d6);if(_0x516dbc<0x0||_0x1153aa<0x0)return!0x1;const _0x59a5c6=_0x144e33['getFirstRange'](),_0x3c2978=_0x5549a2['getFirstRange']();if((0x0==_0x516dbc||0x1==_0x516dbc)&&0x2==_0x1153aa&&_0x59a5c6['isIntersecting'](_0x3c2978))return!0x0;if(0x2==_0x516dbc&&0x3==_0x1153aa){const _0x4c7913=_0x200376['_findSuggestions'](_0x59a5c6,'insertion')['filter'](({suggestion:_0x9be3a1,meta:_0x268ce3})=>_0x268ce3['isOwn']&&'convertInlineImageToBlock'==_0x9be3a1['subType']);if(_0x4c7913['length']>0x1&&_0x3c2978['end']['isEqual'](_0x59a5c6['start']))return!0x0;if(0x1==_0x4c7913['length']&&(_0x59a5c6['start']['isEqual'](_0x3c2978['end'])||_0x59a5c6['end']['isEqual'](_0x3c2978['start'])))return!0x0;}if(0x3==_0x516dbc&&0x3==_0x1153aa&&_0x59a5c6['start']['isBefore'](_0x3c2978['start'])){const _0x114fee=_0x59a5c6['end']['nodeAfter'],_0x3b1969=_0x3c2978['start']['nodeBefore'];return _0x3362a9['isBlockImage'](_0x114fee)&&_0x114fee===_0x3b1969;}return!0x1;}_0x6ee42e['model']['document']['registerPostFixer'](()=>{let _0x42a84e=!0x1;const _0x23ac6c=Array['from'](_0x6ee42e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27f70e,data:_0x40383c}of _0x23ac6c){const {group:_0xe9dbe7,type:_0x1cf4bc,subType:_0x10bc38,id:_0x44f173}=_0x200376['_splitMarkerName'](_0x27f70e);if('suggestion'==_0xe9dbe7&&_0x200376['hasSuggestion'](_0x44f173)){if('formatBlock'==_0x1cf4bc&&('imageStylePreApply'==_0x10bc38||'imageStylePostApply'==_0x10bc38)){const _0x5810f0=_0x200376['getSuggestion'](_0x44f173);if(_0x40383c['newRange']){const _0x22b52f=_0x5810f0['getFirstRange']()['getContainedElement']();if(_0x3362a9['isBlockImage'](_0x22b52f))continue;_0x200376['discardSuggestion'](_0x5810f0),_0x42a84e=!0x0;}}if('insertion'==_0x1cf4bc&&'imageCaption'==_0x10bc38&&!_0x40383c['newRange']){const _0x41e274=_0x200376['getSuggestion'](_0x44f173);_0x41e274['next']&&_0x41e274['next']['isInContent']&&(_0x200376['discardSuggestion'](_0x41e274['next']),_0x42a84e=!0x0);}}}return _0x42a84e;}),this['_registerLegacyDescription'](_0x7aaa63);}['_registerLegacyDescription'](_0x306074){const _0x57bf0e=this['editor'],_0x234f9e=_0x57bf0e['locale'];_0x57bf0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17d177=>{if('formatBlock'!=_0x17d177['type']&&'formatInline'!=_0x17d177['type'])return;const {data:_0x5b471d}=_0x17d177;if(!_0x5b471d||'imageStyle'!=_0x5b471d['commandName'])return;const _0x115709=_0x5b471d['commandParams'][0x0]['value'];return _0xea3749('side'===_0x115709?o(_0x234f9e,'FORMAT_SIDE_IMAGE'):_0x306074[_0x115709]||_0x115709);function _0xea3749(_0x964b26){return{'type':'format','content':o(_0x234f9e,'*Format:*\x20%0',_0x964b26)};}});}}class ft extends _0x1bca86{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x52f4a0){super(_0x52f4a0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4a6023=this['editor'],_0xb34188=_0x4a6023['commands']['get']('importWord'),_0x4425d1=_0x4a6023['commands']['get']('trackChanges');_0xb34188&&(_0xb34188['on']('execute',(_0x147a44,[,_0x22eeaa])=>{this['_trackChangesValueDuringImport']=_0x4425d1['value'],_0x22eeaa['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xb34188,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xb34188,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4425d1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4a6023['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x48415a,_0x598673){const {suggestions:_0x5b1caa}=_0x598673,_0x5e55df=this['editor']['commands']['get']('trackChanges'),_0x4998bb=_0x5e55df['value'];this['_trackChangesValueDuringImport']!==_0x4998bb&&(_0x5e55df['execute'](),this['_trackChangesExecuted']=!0x0),_0x5b1caa&&_0x5b1caa['forEach'](({id:_0x497922,type:_0x1fee1e,author:_0x53b734,created_at:_0x41e3db})=>{const _0x116231={'id':_0x497922,'type':_0x1fee1e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x53b734,'createdAt':_0x41e3db?new Date(_0x41e3db):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x116231);});}}class ht extends _0x1bca86{['afterInit'](){const _0x1c3cd2=this['editor'],_0x2202c3=_0x1c3cd2['plugins']['get']('TrackChangesEditing');if(_0x1c3cd2['plugins']['has']('IndentEditing')&&(_0x2202c3['enableCommand']('indent'),_0x2202c3['enableCommand']('outdent')),_0x1c3cd2['plugins']['has']('IndentBlock')){for(const _0x120c28 of['indentBlock','outdentBlock'])_0x2202c3['enableDefaultAttributesIntegration'](_0x120c28);}const _0x3dc157=_0x1c3cd2['locale'];_0x2202c3['registerBlockAttribute']('blockIndent'),_0x2202c3['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3dc157,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x369d87=this['editor'],_0x47abe0=_0x369d87['locale'],_0x2d1ada=_0x369d87['plugins']['get']('TrackChangesEditing');_0x2d1ada['descriptionFactory']['registerDescriptionCallback'](_0x32726a=>{if('formatBlock'!=_0x32726a['type'])return;const {data:_0x478721}=_0x32726a;if(!_0x478721)return;if('indentBlock'!=_0x478721['commandName']&&'outdentBlock'!=_0x478721['commandName'])return;const _0xced2e3=_0x32726a['getItems']()[0x0],_0x124902=_0x2d1ada['descriptionFactory']['getItemLabel'](_0xced2e3);return'indentBlock'==_0x478721['commandName']?{'type':'format','content':o(_0x47abe0,'*Indent:*\x20%0',_0x124902)}:'outdentBlock'==_0x478721['commandName']?{'type':'format','content':o(_0x47abe0,'*Outdent:*\x20%0',_0x124902)}:void 0x0;});}}class gt extends _0x1bca86{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x1bca86{['afterInit'](){const _0x32dfb8=this['editor'];if(!_0x32dfb8['plugins']['has']('LinkEditing'))return;const _0x10dfbe=_0x32dfb8['plugins']['get']('TrackChangesEditing'),_0x4a7605=_0x32dfb8['commands']['get']('link');_0x10dfbe['enableDefaultAttributesIntegration']('link'),_0x10dfbe['enableDefaultAttributesIntegration']('unlink'),_0x10dfbe['registerInlineAttribute']('linkHref');for(const _0x29045c of _0x4a7605['manualDecorators'])_0x10dfbe['registerInlineAttribute'](_0x29045c['id']),_0x10dfbe['descriptionFactory']['registerAttributeLabel'](_0x29045c['id'],'link\x20('+_0x29045c['label']['toLowerCase']()+')');_0x10dfbe['descriptionFactory']['registerDescriptionCallback'](_0x2977cd=>{if('attribute'!=_0x2977cd['type'])return;const {data:_0x48351e}=_0x2977cd;if(!_0x48351e||'linkHref'!=_0x48351e['key'])return;const _0x2c8084=_0x48351e['newValue'],_0x13ee1c=_0x32dfb8['locale'];return{'type':'format','content':null==_0x2c8084?o(_0x13ee1c,'*Remove\x20link*'):o(_0x13ee1c,'*Set\x20link:*\x20%0','\x22'+_0x2c8084+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x314aa3=this['editor'],_0x1e3919=_0x314aa3['locale'];_0x314aa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5079bd=>{if('formatInline'!=_0x5079bd['type'])return;const {data:_0x4e6164}=_0x5079bd;if(_0x4e6164){if('link'==_0x4e6164['commandName']){const _0x142cc4=_0x4e6164['commandParams'][0x0];return{'type':'format','content':o(_0x1e3919,'*Set\x20link:*\x20%0','\x22'+_0x142cc4+'\x22')};}return'unlink'==_0x4e6164['commandName']?{'type':'format','content':o(_0x1e3919,'*Remove\x20link*')}:void 0x0;}});}}class dt extends _0x1bca86{['afterInit'](){const _0x2966c1=this['editor'],_0x57a8e8=_0x2966c1['locale'];if(!_0x2966c1['plugins']['has']('LegacyListEditing'))return;const _0x5f5325=_0x2966c1['plugins']['get']('TrackChangesEditing'),_0x3d22f8=_0x2966c1['plugins']['has']('LegacyTodoListEditing');function _0x5d8894(_0x2fc741){return()=>{const _0x41e3fd=_0x2966c1['model']['document']['selection'],_0xe9c73e=_0x2966c1['commands']['get'](_0x2fc741);if(_0xe9c73e['value'])return void _0x2966c1['execute']('paragraph',{});const _0x25bd9f=_0x2fc741['slice'](0x0,-0x4),_0x138b18=function(_0x43ed68,_0x1ea803,_0x43719d){let _0x2b6297=Array['from'](_0x43ed68)['filter'](_0x2d4610=>function(_0x1db581,_0x43cd09){return _0x43cd09['checkChild'](_0x1db581['parent'],'listItem')&&!_0x43cd09['isObject'](_0x1db581);}(_0x2d4610,_0x43719d));_0x2b6297=_0x2b6297['filter'](_0x4b446a=>!_0x4b446a['is']('element','listItem')||_0x4b446a['getAttribute']('listType')!=_0x1ea803);const _0x5abd24=new Set();for(const _0x4eebe7 of _0x2b6297)_0x4eebe7['is']('element','listItem')?_0x5abd24['add'](Ne(_0x4eebe7)):_0x5abd24['add'](_0x4eebe7);return Array['from'](_0x5abd24);}(_0x41e3fd['getSelectedBlocks'](),_0x25bd9f,_0x2966c1['model']['schema']);_0x2966c1['model']['change'](()=>{for(const _0xc48cbb of _0x138b18)_0x5f5325['markBlockFormat'](_0xc48cbb,{'commandName':_0x2fc741,'commandParams':[{'forceValue':!_0xe9c73e['value']}],'formatGroupId':'blockName'},Se(_0xc48cbb));});};}function _0xdd809f(_0x1cd512){return()=>{const _0x3534cc=function(_0x44b145){let _0xffdcd5=Array['from'](_0x44b145);const _0x2bace8=_0xffdcd5['findIndex'](_0x3c5588=>'listItem'!=_0x3c5588['name']);return _0x2bace8>-0x1&&(_0xffdcd5=_0xffdcd5['slice'](0x0,_0x2bace8)),_0xffdcd5;}(_0x2966c1['model']['document']['selection']['getSelectedBlocks']()),_0x58d6e9=_0x2966c1['model']['createRange'](_0x2966c1['model']['createPositionAt'](_0x3534cc[0x0],'before'),_0x2966c1['model']['createPositionAt'](_0x3534cc[_0x3534cc['length']-0x1],'end'));_0x2966c1['model']['change'](()=>{_0x5f5325['markBlockFormat'](_0x58d6e9,{'commandName':_0x1cd512,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4ac54d){const _0x3914cd=new Set();for(const _0x3bf6c7 of _0x4ac54d){let _0x12007a=_0x3bf6c7['nextSibling'];for(;_0x12007a&&_0x12007a['getAttribute']('listIndent')>_0x3bf6c7['getAttribute']('listIndent');)_0x3914cd['add'](_0x12007a),_0x12007a=_0x12007a['nextSibling'];}return Array['from'](_0x3914cd);}(_0x3534cc));});};}_0x5f5325['enableCommand']('numberedList',_0x5d8894('numberedList')),_0x5f5325['enableCommand']('bulletedList',_0x5d8894('bulletedList')),_0x3d22f8&&_0x5f5325['enableCommand']('todoList',_0x5d8894('todoList')),_0x5f5325['enableCommand']('indentList',_0xdd809f('indentList')),_0x5f5325['enableCommand']('outdentList',_0xdd809f('outdentList')),_0x3d22f8&&_0x5f5325['enableCommand']('checkTodoList',()=>{const _0x420ee9=_0x2966c1['commands']['get']('checkTodoList'),_0xf41dce=Array['from'](_0x420ee9['_selectedElements']);_0xf41dce['filter'](_0x5e6bee=>_0x5e6bee['getAttribute']('todoListChecked')!=_0x420ee9['value']),_0x2966c1['model']['change'](()=>{for(const _0x6a0f7 of _0xf41dce)_0x5f5325['markBlockFormat'](_0x6a0f7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x420ee9['value']}]});});}),_0x5f5325['descriptionFactory']['registerElementLabel']('listItem',_0x114ce4=>o(_0x57a8e8,'ELEMENT_LIST_ITEM',_0x114ce4)),_0x5f5325['descriptionFactory']['registerDescriptionCallback'](_0x3e2d95=>{if('formatBlock'!=_0x3e2d95['type']&&'formatInline'!=_0x3e2d95['type'])return;const {data:_0x3553f8}=_0x3e2d95;if(_0x3553f8){if('numberedList'==_0x3553f8['commandName']||'bulletedList'==_0x3553f8['commandName']||'todoList'==_0x3553f8['commandName'])switch(_0x3553f8['commandName']['replace']('List','')){case'bulleted':return _0x30751a(o(_0x57a8e8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30751a(o(_0x57a8e8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30751a(o(_0x57a8e8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3553f8['commandName'])return{'type':'format','content':o(_0x57a8e8,'*Indent:*\x20%0',o(_0x57a8e8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3553f8['commandName'])return{'type':'format','content':o(_0x57a8e8,'*Outdent:*\x20%0',o(_0x57a8e8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3553f8['commandName'])return _0x3553f8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57a8e8,'*Check\x20item*')}:{'type':'format','content':o(_0x57a8e8,'*Uncheck\x20item*')};}function _0x30751a(_0x53128c){return{'type':'format','content':o(_0x57a8e8,'*Change\x20to:*\x20%0',_0x53128c)};}});}}function Ne(_0x2b4e1f){const _0x1eb9f6=_0x2b4e1f['getAttribute']('listIndent');if(0x0==_0x1eb9f6)return _0x2b4e1f;let _0x4bfb56=_0x2b4e1f;for(;_0x2b4e1f['previousSibling']&&_0x2b4e1f['previousSibling']['is']('element','listItem');){const _0x13d748=_0x2b4e1f['previousSibling']['getAttribute']('listIndent');if(_0x13d748==_0x1eb9f6)_0x4bfb56=_0x2b4e1f['previousSibling'];else{if(_0x13d748<_0x1eb9f6)break;}_0x2b4e1f=_0x2b4e1f['previousSibling'];}return _0x4bfb56;}function Se(_0x4d452a){const _0x558767=[];if(_0x4d452a['is']('element','listItem')&&_0x4d452a['getAttribute']('listIndent')>0x0){let _0x3f480d=_0x4d452a['nextSibling'];for(;_0x3f480d&&'listItem'==_0x3f480d['name']&&_0x3f480d['getAttribute']('listIndent')==_0x4d452a['getAttribute']('listIndent');)_0x558767['push'](_0x3f480d),_0x3f480d=_0x3f480d['nextSibling'];}return _0x558767;}class mt extends _0x1bca86{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1921df=this['editor']['config']['get']('list.properties'),_0x404ba6=this['editor']['plugins']['get']('TrackChangesEditing');_0x1921df['styles']&&_0x404ba6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1921df['reversed']&&_0x404ba6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1921df['startIndex']&&_0x404ba6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x404ba6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x26c018,_0x5f5a1b={}){const _0x6862ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x334e26=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x6862ca['markMultiRangeBlockFormat'](_0x334e26,{'commandName':'listStyle','commandParams':[{'type':_0x5f5a1b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x105726,_0x446825={}){const _0x4c9d2e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bcdf7=this['_getSuggestionBlocks'](_0x19b426=>_0x19b426['is']('element','listItem')&&'numbered'===_0x19b426['getAttribute']('listType'));if(_0x1bcdf7['length']<0x1)return;const _0x4ccb38=_0x1bcdf7['map'](_0x1945f6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1945f6,'before'),this['editor']['model']['createPositionAt'](_0x1945f6,0x0)));this['editor']['model']['change'](()=>{_0x4c9d2e['markMultiRangeBlockFormat'](_0x4ccb38,{'commandName':'listReversed','commandParams':[{'reversed':_0x446825['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x34098e,_0x298537={}){const _0x3b917a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x164bd1=this['_getSuggestionBlocks'](_0x28ba7f=>_0x28ba7f['is']('element','listItem')&&'numbered'===_0x28ba7f['getAttribute']('listType'));if(_0x164bd1['length']<0x1)return;const _0x24e341=_0x164bd1['map'](_0x175798=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x175798,'before'),this['editor']['model']['createPositionAt'](_0x175798,0x0)));this['editor']['model']['change'](()=>{_0x3b917a['markMultiRangeBlockFormat'](_0x24e341,{'commandName':'listStart','commandParams':[{'startIndex':_0x298537['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x53813d){if('formatBlock'!=_0x53813d['type']&&'formatInline'!=_0x53813d['type'])return;const _0xef172b=this['editor']['locale'],{data:_0x556e94}=_0x53813d;if(!_0x556e94)return;let _0x47f546,_0x2af369;switch(_0x556e94['commandName']){case'listStyle':_0x47f546='*Change\x20to:*\x20%0',_0x2af369={'type':'format','content':o(_0xef172b,_0x47f546,o(_0xef172b,this['_getTranslationKeyForListStyle'](_0x556e94['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47f546=_0x556e94['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2af369={'type':'format','content':o(_0xef172b,_0x47f546)};break;case'listStart':_0x47f546='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2af369={'type':'format','content':o(_0xef172b,_0x47f546,_0x556e94['commandParams'][0x0]['startIndex'])};}return _0x2af369;}['_getSuggestionBlocksForListStyle'](){const _0x20d6e5=this['editor']['plugins']['get']('LegacyListUtils');let _0xe2d5b9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xe2d5b9[0x0]?.['is']('element','listItem')&&_0xe2d5b9['unshift'](..._0x20d6e5['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xe2d5b9[_0xe2d5b9['length']-0x1]?.['is']('element','listItem')&&_0xe2d5b9['push'](..._0x20d6e5['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xe2d5b9=[...new Set(_0xe2d5b9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xe2d5b9=_0xe2d5b9['filter'](_0x3fa7b7=>_0x3fa7b7['is']('element','listItem'))),_0xe2d5b9;}['_getSuggestionBlocks'](_0x41d340){const _0x5a1347=this['editor']['plugins']['get']('LegacyListUtils');let _0x6b8c18=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x41d340)['map'](_0x1952fb=>{const _0x1a4f88=this['editor']['model']['createPositionAt'](_0x1952fb,0x0);return[..._0x5a1347['getSiblingNodes'](_0x1a4f88,'backward'),..._0x5a1347['getSiblingNodes'](_0x1a4f88,'forward')];})['flat']();return _0x6b8c18=[...new Set(_0x6b8c18)],_0x6b8c18;}['_getTranslationKeyForListStyle'](_0x5dfc86){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5dfc86)||'default')['toUpperCase']()+'_LIST_'+_0x5dfc86['toUpperCase']()['replace'](/-/g,'_');}}class pt extends _0x1bca86{['afterInit'](){const _0x5344f1=this['editor'];if(!_0x5344f1['plugins']['has']('MediaEmbedEditing'))return;const _0x2e95e9=_0x5344f1['plugins']['get']('TrackChangesEditing'),_0x483c77=_0x5344f1['locale'];_0x2e95e9['enableCommand']('mediaEmbed'),_0x2e95e9['descriptionFactory']['registerElementLabel']('media',_0x51bcf5=>o(_0x483c77,'ELEMENT_MEDIA',_0x51bcf5)),_0x5344f1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2aa14e,{writer:_0x114e60,options:_0x33df95})=>{if(_0x33df95['showSuggestionHighlights'])return _0x114e60['createEmptyElement']('div');},'converterPriority':'high'}),_0x5344f1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x338d08,_0x21c7eb,_0x1df8dc)=>{_0x1df8dc['options']['showSuggestionHighlights']&&_0x338d08['stop']();},{'priority':'high'});}}class kt extends _0x1bca86{['afterInit'](){const _0x106a39=this['editor'];_0x106a39['plugins']['has']('MentionEditing')&&_0x106a39['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x1bca86{['afterInit'](){const _0x361298=this['editor'];if(!_0x361298['plugins']['has']('MergeFieldsEditing'))return;const _0x15db3f=_0x361298['plugins']['get']('TrackChangesEditing'),_0x552fe7=_0x361298['locale'];_0x15db3f['enableCommand']('insertMergeField'),_0x15db3f['enableCommand']('insertMergeFieldBlock'),_0x15db3f['enableCommand']('insertMergeFieldImage'),_0x15db3f['descriptionFactory']['registerElementLabel']('mergeField',_0x3bcdca=>o(_0x552fe7,'ELEMENT_MERGE_FIELD',_0x3bcdca)),_0x15db3f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xe793e0=>o(_0x552fe7,'ELEMENT_MERGE_FIELD',_0xe793e0)),_0x15db3f['descriptionFactory']['registerDescriptionCallback'](_0xf17038=>{if('insertion'!=_0xf17038['type']&&'deletion'!=_0xf17038['type'])return;const _0x8bb9b6=_0xf17038['getContainedElement']();if(null==_0x8bb9b6)return;const _0x453f86=_0x361298['plugins']['get']('MergeFieldsEditing');let _0x48c6d2;switch(_0x453f86['getMergeFieldType'](_0x8bb9b6)){case null:return;case'image':{const _0x14e71e=_0x453f86['unwrapAffixes'](_0x8bb9b6['getAttribute']('src'));_0x48c6d2=_0x453f86['getLabel'](_0x14e71e)||_0x14e71e;break;}default:{const _0x742825=_0x8bb9b6['getAttribute']('id');_0x48c6d2=_0x453f86['getLabel'](_0x742825)||_0x742825;break;}}return'insertion'==_0xf17038['type']?{'type':'insertion','content':o(_0x552fe7,'*Insert:*\x20%0','\x22'+_0x48c6d2+'\x22\x20'+o(_0x552fe7,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x552fe7,'*Remove:*\x20%0','\x22'+_0x48c6d2+'\x22\x20'+o(_0x552fe7,'ELEMENT_MERGE_FIELD'))};});}}class bt extends _0x1bca86{['afterInit'](){const _0x100ee9=this['editor'],_0x4ca639=_0x100ee9['plugins']['get']('TrackChangesEditing');_0x100ee9['plugins']['has']('MultiLevelList')&&(_0x4ca639['enableDefaultAttributesIntegration']('multiLevelList'),_0x4ca639['registerBlockAttribute']('listMarkerStyle'),_0x4ca639['descriptionFactory']['registerDescriptionCallback'](_0x4c1832=>this['handleDescriptions'](_0x4c1832)));}['handleDescriptions'](_0x46d1d1){const _0x42a5d4=this['editor']['locale'],{data:_0x204a48}=_0x46d1d1,_0x591a97={'type':'format','content':''};if(_0x204a48&&'listMarkerStyle'==_0x204a48['key']){if(!_0x204a48['oldValue'])return{'type':'format','content':o(_0x42a5d4,'*Set\x20format:*\x20%0',o(_0x42a5d4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x204a48['newValue']+')'};if(!_0x204a48['newValue']){let _0x1ef659=_0x46d1d1['head'];for(;_0x1ef659;){if(_0x1ef659['data']&&'listType'==_0x1ef659['data']['key']&&_0x1ef659['data']['newValue'])return _0x591a97;_0x1ef659=_0x1ef659['next'];}return{'type':'format','content':o(_0x42a5d4,'*Remove\x20format:*\x20%0',o(_0x42a5d4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x204a48['oldValue']+')'};}}}}class yt extends _0x1bca86{['afterInit'](){const _0x4b17c5=this['editor'];if(!_0x4b17c5['plugins']['has']('PageBreakEditing'))return;_0x4b17c5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x79a7ea=_0x4b17c5['plugins']['get']('TrackChangesEditing'),_0x44c23f=_0x4b17c5['locale'];_0x79a7ea['descriptionFactory']['registerElementLabel']('pageBreak',_0x2b13da=>o(_0x44c23f,'ELEMENT_PAGE_BREAK',_0x2b13da));}}class St extends _0x1bca86{['afterInit'](){const _0x16f26b=this['editor'];if(!_0x16f26b['plugins']['has']('Paragraph'))return;const _0x25ed89=_0x16f26b['locale'],_0x2fb580=_0x16f26b['plugins']['get']('TrackChangesEditing');_0x2fb580['descriptionFactory']['registerElementLabel']('paragraph',_0x3d7d03=>o(_0x25ed89,'ELEMENT_PARAGRAPH',_0x3d7d03)),_0x2fb580['enableDefaultAttributesIntegration']('paragraph'),_0x2fb580['enableCommand']('insertParagraph'),_0x16f26b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x16f26b),{'priority':'highest'}),_0x16f26b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x23f66e,_0x4facb5,_0x233224)=>{_0x233224['options']['showSuggestionHighlights']&&nr(_0x16f26b,{'showActiveMarker':!0x1})(_0x23f66e,_0x4facb5,_0x233224);},{'priority':'highest'});const _0xebbdee=_0x2fb580['descriptionFactory'];_0xebbdee['registerDescriptionCallback'](_0x38d256=>{if('insertion'!==_0x38d256['type'])return;const {start:_0x55c529,end:_0x2e6267}=_0x38d256['getFirstRange']();if(!_0x55c529['isTouching'](_0x2e6267)||!_0x55c529['nodeAfter'])return;const _0x343994=_0x16f26b['model']['schema'],_0x10de0d=_0x55c529['nodeAfter'];return _0x343994['isBlock'](_0x10de0d)&&!_0x343994['isLimit'](_0x10de0d)&&_0x343994['checkChild'](_0x10de0d,'$text')?{'type':'insertion','content':o(_0x25ed89,'*Insert:*\x20%0',_0xebbdee['getItemLabel'](_0x10de0d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c4698=this['editor'],_0x57bf65=_0x2c4698['locale'];_0x2c4698['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29ca7a=>{if('formatBlock'!=_0x29ca7a['type'])return;const {data:_0x205e88}=_0x29ca7a;return _0x205e88&&'paragraph'==_0x205e88['commandName']?{'type':'format','content':o(_0x57bf65,'*Change\x20to:*\x20%0',o(_0x57bf65,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x142bc9,{showActiveMarker:_0x4689d4=!0x0}={}){return(_0x2d15a3,_0x534b71,_0x44fc91)=>{const _0x36fd2a=_0x142bc9['plugins']['get']('TrackChangesEditing'),_0x58a4e7=_0x534b71['markerRange']['start'],_0x4df52c=_0x534b71['markerRange']['end'],_0x3bc5b8=_0x142bc9['model']['schema'];if(!_0x58a4e7['isTouching'](_0x4df52c)||!_0x58a4e7['nodeAfter'])return;const _0x1fcc8f=_0x58a4e7['nodeAfter'];if(_0x3bc5b8['isBlock'](_0x1fcc8f)&&!_0x3bc5b8['isLimit'](_0x1fcc8f)&&_0x3bc5b8['checkChild'](_0x1fcc8f,'$text')){if(!_0x44fc91['consumable']['consume'](_0x534b71['markerRange'],_0x2d15a3['name']))return;const {id:_0xa9491a,authorId:_0x1b7d4f}=_0x36fd2a['_splitMarkerName'](_0x534b71['markerName']),_0x2f8341=_0x44fc91['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0xa9491a,'data-author-id':_0x1b7d4f}),_0x1b8698=_0x44fc91['mapper']['toViewPosition'](_0x4df52c);_0x4689d4&&_0x36fd2a['activeMarkers']['includes'](_0x534b71['markerName'])&&_0x44fc91['writer']['addClass']('ck-suggestion-marker--active',_0x2f8341),_0x44fc91['writer']['insert'](_0x1b8698,_0x2f8341),_0x44fc91['mapper']['bindElementToMarker'](_0x2f8341,_0x534b71['markerName']);}};}class jt extends _0x1bca86{['afterInit'](){const _0x5a5407=this['editor'];_0x5a5407['commands']['get']('replaceSource')&&_0x5a5407['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class It extends _0x1bca86{['afterInit'](){const _0x4d5370=this['editor'];if(!_0x4d5370['plugins']['has']('RemoveFormatEditing'))return;_0x4d5370['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x100cbf=this['editor'];_0x100cbf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12e1bc=>{if('formatBlock'!=_0x12e1bc['type']&&'formatInline'!=_0x12e1bc['type'])return;const {data:_0x1fe79f}=_0x12e1bc;return _0x1fe79f&&'removeFormat'==_0x1fe79f['commandName']?{'type':'format','content':o(_0x100cbf['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x1bca86{['afterInit'](){const _0x1ca000=this['editor'];if(!_0x1ca000['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x551056=_0x1ca000['plugins']['get']('TrackChangesEditing');_0x551056['enableCommand']('goToPreviousRestrictedEditingException'),_0x551056['enableCommand']('goToNextRestrictedEditingException');const _0x2a3173=_0x1ca000['plugins']['get']('RestrictedEditingModeEditing');_0x2a3173['enableCommand']('trackChanges'),_0x2a3173['enableCommand']('acceptSuggestion'),_0x2a3173['enableCommand']('discardSuggestion'),_0x2a3173['enableCommand']('acceptAllSuggestions'),_0x2a3173['enableCommand']('discardAllSuggestions'),_0x2a3173['enableCommand']('acceptSelectedSuggestions'),_0x2a3173['enableCommand']('discardSelectedSuggestions');}}class _t extends _0x1bca86{['afterInit'](){const _0xa1423f=this['editor'];if(!_0xa1423f['plugins']['has']('ShiftEnter'))return;const _0xe39e68=_0xa1423f['plugins']['get']('TrackChangesEditing');_0xe39e68['enableCommand']('shiftEnter'),_0xa1423f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ee(_0xa1423f),{'priority':'high'}),_0xa1423f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ee(_0xa1423f),{'priority':'high'}),_0xa1423f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x463fa1,_0x2ac4e2,_0x862299)=>{_0x862299['options']['showSuggestionHighlights']&&Ee(_0xa1423f,{'showActiveMarker':!0x1})(_0x463fa1,_0x2ac4e2,_0x862299);}),_0xe39e68['descriptionFactory']['registerElementLabel']('softBreak',_0x34b59d=>o(_0xa1423f['locale'],'ELEMENT_LINE_BREAK',_0x34b59d));}}function Ee(_0x5d808a,{showActiveMarker:_0x17a76f=!0x0}={}){return(_0x96663b,_0x51f5d1,_0x3743fd)=>{const _0xe5fe4a=_0x5d808a['plugins']['get']('TrackChangesEditing');if(!_0x3743fd['consumable']['test'](_0x51f5d1['markerRange'],_0x96663b['name']))return;const _0xca9758=_0x5d808a['model'];for(const _0x1eba28 of _0x51f5d1['markerRange']['getItems']()){if(!_0x1eba28['is']('element','softBreak'))continue;const _0x3190db='deletion'==_0x51f5d1['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x321bd8,authorId:_0x1f8099}=_0xe5fe4a['_splitMarkerName'](_0x51f5d1['markerName']),_0x2ea59f=_0x3743fd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3190db,'data-suggestion':_0x321bd8,'data-author-id':_0x1f8099}),_0x4327f9=_0x3743fd['mapper']['toViewPosition'](_0xca9758['createPositionBefore'](_0x1eba28));_0x17a76f&&_0xe5fe4a['activeMarkers']['includes'](_0x51f5d1['markerName'])&&_0x3743fd['writer']['addClass']('ck-suggestion-marker--active',_0x2ea59f),_0x3743fd['writer']['insert'](_0x4327f9,_0x2ea59f),_0x3743fd['mapper']['bindElementToMarker'](_0x2ea59f,_0x51f5d1['markerName']);}};}class vt extends _0x1bca86{['afterInit'](){const _0x4cdc90=this['editor'],_0x549438=_0x4cdc90['model'],_0x2c40ff=_0x4cdc90['locale'];if(!_0x4cdc90['plugins']['has']('StandardEditingModeEditing'))return;const _0x16a594=_0x4cdc90['plugins']['get']('TrackChangesEditing'),_0x366524='restrictedEditingException',_0x51923f=_0x4cdc90['commands']['get'](_0x366524);_0x16a594['enableCommand'](_0x366524,(_0x2b55ea,_0x8aed99={})=>{const _0x903d6=_0x549438['document']['selection'];if(_0x903d6['isCollapsed'])return void _0x2b55ea(_0x8aed99);const _0x5af329=void 0x0!==_0x8aed99['forceValue']?_0x8aed99['forceValue']:!_0x51923f['value'];_0x549438['change'](()=>{const _0x16f799=Array['from'](_0x903d6['getRanges']());for(const _0xa0ec22 of _0x16f799){const _0x51afd3=_0x5af329?[_0xa0ec22]:io(_0x366524,_0xa0ec22,_0x549438);for(const _0x1a69d0 of _0x51afd3)_0x16a594['markInlineFormat'](_0x1a69d0,{'commandName':_0x366524,'commandParams':[{'forceValue':_0x5af329}]});}});}),_0x16a594['descriptionFactory']['registerDescriptionCallback'](_0x47da4c=>{if('formatBlock'!=_0x47da4c['type']&&'formatInline'!=_0x47da4c['type'])return;const {data:_0xdc0e16}=_0x47da4c;return _0xdc0e16&&_0xdc0e16['commandName']==_0x366524?_0xdc0e16['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c40ff,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2c40ff,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Ct extends _0x1bca86{['afterInit'](){const _0x3e83e8=this['editor'];if(!_0x3e83e8['plugins']['has']('Style')||!_0x3e83e8['plugins']['has']('DataSchema'))return;const _0x132aea=_0x3e83e8['plugins']['get']('TrackChangesEditing'),_0x41eeb4=_0x3e83e8['locale'],_0x323d56=_0x3e83e8['config']['get']('style')||{},_0x538def=_0x3e83e8['plugins']['get']('GeneralHtmlSupport'),_0x2a8717=_0x3e83e8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3e83e8['plugins']['get']('DataSchema'),_0x323d56['definitions']);_0x132aea['enableDefaultAttributesIntegration']('style');const _0x13dfd6=new Set();for(const _0x38904c of _0x2a8717['block']){const _0x4c96f5=_0x538def['getGhsAttributeNameForElement'](_0x38904c['element']);_0x13dfd6['add'](_0x4c96f5);}const _0x5d04bf=new Set();for(const _0x48417a of _0x2a8717['inline']){const _0x1079a7=_0x538def['getGhsAttributeNameForElement'](_0x48417a['element']);_0x5d04bf['add'](_0x1079a7);for(const _0x568c52 of _0x48417a['ghsAttributes'])_0x5d04bf['add'](_0x568c52);}for(const _0x11a3c7 of _0x13dfd6)_0x132aea['registerBlockAttribute'](_0x11a3c7),_0x132aea['descriptionFactory']['registerAttributeLabel'](_0x11a3c7,o(_0x41eeb4,'FORMAT_STYLE'));for(const _0xaa5522 of _0x5d04bf)_0x132aea['registerInlineAttribute'](_0xaa5522),_0x132aea['descriptionFactory']['registerAttributeLabel'](_0xaa5522,o(_0x41eeb4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x292ff4=this['editor'],_0x595eef=_0x292ff4['locale'];_0x292ff4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fc033=>{if('formatBlock'!=_0x2fc033['type']&&'formatInline'!=_0x2fc033['type'])return;const {data:_0x3dceab}=_0x2fc033;return _0x3dceab&&'style'===_0x3dceab['commandName']?_0x3dceab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x595eef,'*Set\x20format:*\x20%0',_0x3dceab['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x595eef,'*Remove\x20format:*\x20%0',_0x3dceab['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class $t extends _0x1bca86{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1b1d70){super(_0x1b1d70),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1e103c=this['editor'],_0x18a302=_0x1e103c['model']['document']['selection'];if(!_0x1e103c['plugins']['has']('TableEditing'))return;const _0xd31f74=_0x1e103c['locale'],_0x5f5c34=_0x1e103c['plugins']['get']('TrackChangesEditing'),_0x34b93c=_0x1e103c['plugins']['get']('TableUtils');_0x5f5c34['descriptionFactory']['registerElementLabel']('table',_0x3e727b=>o(_0xd31f74,'ELEMENT_TABLE',_0x3e727b)),this['_setupColumnsRowsFixing'](),_0x5f5c34['enableCommand']('insertTable'),_0x5f5c34['enableCommand']('selectTableRow'),_0x5f5c34['enableCommand']('selectTableColumn');for(const _0x344f27 of['insertTableRowAbove','insertTableRowBelow']){const _0x4588d7=_0x1e103c['commands']['get'](_0x344f27);_0x5f5c34['enableCommand'](_0x344f27,_0x24c40b=>{_0x1e103c['model']['change'](_0x161149=>{_0x24c40b();const _0x3b0c50='above'===_0x4588d7['order'],_0x368f72=_0x34b93c['getSelectionAffectedTableCells'](_0x18a302),_0x374946=_0x34b93c['getRowIndexes'](_0x368f72),_0x11f3cc=_0x3b0c50?_0x374946['first']-0x1:_0x374946['last']+0x1,_0x475a6a=_0x368f72[0x0]['findAncestor']('table'),_0x531b67=_0x34b93c['createTableWalker'](_0x475a6a,{'startRow':_0x11f3cc,'endRow':_0x11f3cc}),_0x178037=Array['from'](_0x531b67)['map'](_0x400f47=>_0x161149['createRangeOn'](_0x400f47['cell']));_0x5f5c34['markMultiRangeInsertion'](_0x178037,'tableRow');});});}for(const _0x1ea29b of['insertTableColumnLeft','insertTableColumnRight']){const _0xa7c62b=_0x1e103c['commands']['get'](_0x1ea29b);_0x5f5c34['enableCommand'](_0x1ea29b,_0x3967ab=>{_0x1e103c['model']['change'](_0x1ba008=>{_0x3967ab();const _0x1e9d09='left'===_0xa7c62b['order'],_0x1a1aef=_0x34b93c['getSelectionAffectedTableCells'](_0x18a302),_0x282f65=_0x34b93c['getColumnIndexes'](_0x1a1aef),_0x32f410=_0x1e9d09?_0x282f65['first']-0x1:_0x282f65['last']+0x1,_0x54344f=_0x1a1aef[0x0]['findAncestor']('table'),_0x55517a=_0x34b93c['createTableWalker'](_0x54344f,{'startRow':0x0,'column':_0x32f410,'includeAllSlots':!0x1}),_0x15d0ed=Array['from'](_0x55517a)['map'](_0x391cc5=>_0x1ba008['createRangeOn'](_0x391cc5['cell']));_0x5f5c34['markMultiRangeInsertion'](_0x15d0ed,'tableColumn');});});}for(const _0x437c34 of['removeTableRow','removeTableColumn']){const _0x283d97=_0x437c34['substr'](0xb),_0x5ab099=_0x283d97['toLowerCase'](),_0x5f306b=_0x5ab099['substr'](0x0,0x3)+'span',_0x1b9e9c='table'+_0x283d97,_0x517dc6='min'+_0x283d97,_0xc5e424='max'+_0x283d97;_0x5f5c34['enableCommand'](_0x437c34,()=>{_0x1e103c['model']['change'](_0x2fc55e=>{const _0x2508dd=_0x34b93c['getSelectionAffectedTableCells'](_0x18a302),_0x46ab96=_0x2508dd[0x0]['findAncestor']('table');let _0x202a96;if('removeTableRow'==_0x437c34){const _0x24c030=_0x34b93c['getRowIndexes'](_0x2508dd);_0x202a96={'startRow':_0x24c030['first'],'endRow':_0x24c030['last'],'includeAllSlots':!0x0};}else{const _0x1f4243=_0x34b93c['getColumnIndexes'](_0x2508dd);_0x202a96={'startColumn':_0x1f4243['first'],'endColumn':_0x1f4243['last'],'includeAllSlots':!0x0};}const _0x3917c4=_0x34b93c['createTableWalker'](_0x46ab96,_0x202a96),_0x154791=Array['from'](_0x3917c4)['map'](({cell:_0x150e40})=>_0x150e40),_0x500c4a=We(_0x154791['filter'](_0x4b5c39=>_0x4b5c39['hasAttribute'](_0x5f306b))),_0x27ac5a=We(_0x154791['filter'](_0x4955be=>!_0x4955be['hasAttribute'](_0x5f306b)))['map'](_0x438197=>_0x2fc55e['createRangeOn'](_0x438197)),_0x1c85c2=_0x5f5c34['markMultiRangeDeletion'](_0x27ac5a,_0x1b9e9c);if(_0x1c85c2&&('tableRow'==_0x1c85c2['subType']||'tableColumn'==_0x1c85c2['subType'])){const _0x14ea12=this['_getSuggestionCoords'](_0x1c85c2);for(const _0x9875f7 of _0x500c4a){const _0x46a382=_0x2fc55e['createRangeOn'](_0x9875f7),_0x4e0099=_0x34b93c['getCellLocation'](_0x9875f7),_0x57a723=_0x9875f7['getAttribute'](_0x5f306b)-0x1,_0x5a7e47=_0x14ea12[_0x517dc6],_0x2b99c6=_0x14ea12[_0xc5e424];_0x5a7e47<=_0x4e0099[_0x5ab099]&&_0x4e0099[_0x5ab099]+_0x57a723<=_0x2b99c6&&_0x1c85c2['addRange'](_0x46a382);}}});});}function _0x274e6e(_0x1c6e63){const _0x49aa44=Array['from'](_0x18a302['getRanges']())['map'](_0x6c3556=>_0x35191f['fromRange'](_0x6c3556));_0x1e103c['model']['change'](_0x5e2f25=>{const _0x95265e=_0x5e2f25['batch'];_0x1c6e63=_0x1c6e63['filter'](_0x228210=>'$graveyard'!=_0x228210['root']['rootName']),_0x5e2f25['setSelection'](_0x1c6e63),_0x1e103c['commands']['get']('removeTableRow')['refresh'](),_0x1e103c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1e103c['model']['enqueueChange'](()=>{_0x1e103c['model']['enqueueChange'](_0x95265e,_0x1f534a=>{const _0x1c25d9=_0x49aa44['filter'](_0x2556c1=>'$graveyard'!=_0x2556c1['root']['rootName']);_0x1c25d9['length']>0x0&&_0x1f534a['setSelection'](_0x1c25d9);for(const _0x10dc0f of _0x49aa44)_0x10dc0f['detach']();});});});}function _0x278185(_0x5048f2){_0x1e103c['model']['change'](_0x1c1d1f=>{const _0x406503=Array['from'](_0x18a302['getRanges']())['map'](_0x414c57=>_0x35191f['fromRange'](_0x414c57)),_0x29b35e=[];for(const _0x23d145 of _0x5048f2)for(const _0x1f2419 of _0x23d145['getItems']({'shallow':!0x0}))_0x29b35e['push'](_0x1f2419);for(const _0x319426 of _0x29b35e)'$graveyard'!=_0x319426['root']['rootName']&&(_0x1c1d1f['setSelection'](_0x1c1d1f['createPositionAt'](_0x319426,0x0)),_0x1e103c['commands']['get']('removeTableColumn')['refresh'](),_0x1e103c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5e3823=_0x406503['filter'](_0x156633=>'$graveyard'!=_0x156633['root']['rootName']);_0x5e3823['length']>0x0&&_0x1c1d1f['setSelection'](_0x5e3823);for(const _0x3067cc of _0x406503)_0x3067cc['detach']();});}function _0x59ebaa(_0x730f8,_0x7bb623){return _0x7bb623['every'](_0x1830b0=>_0x730f8['some'](_0x4dc4b8=>_0x4dc4b8['end']['isEqual'](_0x1830b0['start'])||_0x1830b0['end']['isEqual'](_0x4dc4b8['start'])));}function _0x657120(_0x46a017,_0x2dc44c){return!_0x46a017['some'](_0x3ec795=>_0x2dc44c['some'](_0x1acc49=>_0x3ec795['isIntersecting'](_0x1acc49)))&&_0x46a017['some'](_0x53182b=>_0x2dc44c['some'](_0x51bcbd=>_0x53182b['end']['isTouching'](_0x51bcbd['start'])));}_0x1e103c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f32c2,_0xac8583,_0x5f5c21)=>{if(!_0x5f5c21['options']['showSuggestionHighlights'])return;const _0x232142=_0xac8583['item'];if(!_0x232142||!_0x232142['is']('element','tableCell'))return;const _0x513f7d=_0x5f5c21['mapper']['toViewElement'](_0x232142);if(_0x513f7d){const {id:_0xfdd1c7,authorId:_0x391350}=_0x5f5c34['_splitMarkerName'](_0xac8583['markerName']);_0x3b341e(_0x513f7d,_0x5f5c21['writer'],(_0x43dddd,_0x58e7e3,_0x43f7f7)=>{_0x43f7f7['addClass'](_0x13eaa6(_0x58e7e3['classes']),_0x43dddd),_0x43f7f7['setAttribute']('data-suggestion-id',_0xfdd1c7,_0x43dddd),_0x43f7f7['setAttribute']('data-author-id',_0x391350,_0x43dddd);},(_0x11cbba,_0x28eb3d,_0x3fe977)=>{_0x3fe977['removeClass'](_0x13eaa6(_0x28eb3d['classes']),_0x11cbba),_0x3fe977['removeAttribute']('data-suggestion-id',_0x11cbba),_0x3fe977['removeAttribute']('data-author-id',_0x11cbba);});}},{'priority':'highest'}),_0x5f5c34['descriptionFactory']['registerDescriptionCallback'](_0x4c07be=>{if('insertion'!=_0x4c07be['type']&&'deletion'!=_0x4c07be['type'])return;const _0x2193d4=_0x4c07be['getContainedElement']();if(null!=_0x2193d4&&_0x2193d4['is']('element','table')){if('insertion'==_0x4c07be['type']){const _0x4d8a2c=_0x4c07be['getItems']()['filter'](_0xa84195=>_0xa84195['is']('$textProxy'))['map'](_0x1508bf=>_0x1508bf['data']);if(_0x4d8a2c['length'])return{'type':'insertion','content':o(_0xd31f74,'*Insert:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d8a2c['join']('\x20')+'\x22'))};}if('deletion'==_0x4c07be['type']){const _0x4b2d9c=_0x4c07be['getItems']()['filter'](_0x561d0f=>_0x561d0f['is']('$textProxy'))['map'](_0x377aa3=>_0x377aa3['data']);if(_0x4b2d9c['length'])return{'type':'deletion','content':o(_0xd31f74,'*Remove:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4b2d9c['join']('\x20')+'\x22'))};}}}),_0x5f5c34['descriptionFactory']['registerDescriptionCallback'](_0x576415=>{if('tableRow'==_0x576415['subType']){const _0x1ab442=_0x576415['getItems']()['filter'](_0x41384f=>_0x41384f['is']('$textProxy'))['map'](_0x40d788=>_0x40d788['data']),_0x242a1a=this['_getSuggestionCoords'](_0x576415),_0x525fec=_0x242a1a['maxRow']-_0x242a1a['minRow']+0x1;if('insertion'==_0x576415['type'])return _0x1ab442['length']?{'type':'insertion','content':o(_0xd31f74,'*Insert:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x525fec,'\x22'+_0x1ab442['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xd31f74,'*Insert:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_ROW',_0x525fec))};if('deletion'==_0x576415['type'])return _0x1ab442['length']?{'type':'deletion','content':o(_0xd31f74,'*Remove:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x525fec,'\x22'+_0x1ab442['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xd31f74,'*Remove:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_ROW',_0x525fec))};}if('tableColumn'==_0x576415['subType']){const _0xc5d091=_0x576415['getItems']()['filter'](_0x5a6245=>_0x5a6245['is']('$textProxy'))['map'](_0x3f2bf=>_0x3f2bf['data']),_0x5d888f=this['_getSuggestionCoords'](_0x576415),_0x470818=_0x5d888f['maxColumn']-_0x5d888f['minColumn']+0x1;if('insertion'==_0x576415['type'])return _0xc5d091['length']?{'type':'insertion','content':o(_0xd31f74,'*Insert:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x470818,'\x22'+_0xc5d091['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xd31f74,'*Insert:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_COLUMN',_0x470818))};if('deletion'==_0x576415['type'])return _0xc5d091['length']?{'type':'deletion','content':o(_0xd31f74,'*Remove:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x470818,'\x22'+_0xc5d091['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xd31f74,'*Remove:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_COLUMN',_0x470818))};}}),_0x5f5c34['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x274e6e),_0x5f5c34['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x274e6e),_0x5f5c34['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x278185),_0x5f5c34['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x278185),_0x5f5c34['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x59ebaa),_0x5f5c34['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x59ebaa),_0x5f5c34['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x657120),_0x5f5c34['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x657120);}['_acceptFormatSuggestionCallbackFactory'](){const _0x46af86=this['editor'],_0x4cc5df=_0x46af86['model']['document']['selection'];return(_0x26bb06,_0x3c7221)=>{_0x46af86['model']['change'](_0x541443=>{const {commandName:_0x36682c,commandParams:_0x193131}=_0x3c7221;let _0x38442b=_0x26bb06[0x0]['end']['nodeBefore'];_0x193131&&_0x193131[0x0]&&!0x1===_0x193131[0x0]['forceValue']&&(_0x38442b=_0x26bb06[0x0]['start']['nodeAfter']);const _0x2e23d4=_0x541443['createRangeIn'](_0x38442b);if('$graveyard'==_0x2e23d4['root']['rootName'])return;const _0x32bd02=Array['from'](_0x4cc5df['getRanges']())['map'](_0x199c04=>_0x35191f['fromRange'](_0x199c04));_0x541443['setSelection'](_0x2e23d4),_0x46af86['commands']['get'](_0x36682c)['refresh'](),_0x193131['push']({'forceDefaultExecution':!0x0}),_0x46af86['execute'](_0x36682c,..._0x193131);const _0x4ef539=_0x32bd02['filter'](_0x202aec=>'$graveyard'!=_0x202aec['root']['rootName']);_0x4ef539['length']>0x0&&_0x541443['setSelection'](_0x4ef539);for(const _0x5ba86e of _0x32bd02)_0x5ba86e['detach']();});};}['_getCoordsForCells'](_0x238ed1){const _0x4ad7af=this['editor']['plugins']['get']('TableUtils');let _0x3d499b=Number['MAX_SAFE_INTEGER'],_0x35a111=Number['MIN_SAFE_INTEGER'],_0x1f8435=Number['MAX_SAFE_INTEGER'],_0x4879af=Number['MIN_SAFE_INTEGER'];for(const _0x17c48a of _0x238ed1){if('$graveyard'==_0x17c48a['root']['rootName'])continue;const {row:_0x4aca47,column:_0x115a96}=_0x4ad7af['getCellLocation'](_0x17c48a),_0x468bd9=_0x17c48a['hasAttribute']('rowspan')?_0x17c48a['getAttribute']('rowspan')-0x1:0x0,_0x3863de=_0x17c48a['hasAttribute']('colspan')?_0x17c48a['getAttribute']('colspan')-0x1:0x0;_0x3d499b=_0x4aca47<_0x3d499b?_0x4aca47:_0x3d499b,_0x35a111=_0x4aca47+_0x468bd9>_0x35a111?_0x4aca47+_0x468bd9:_0x35a111,_0x1f8435=_0x115a96<_0x1f8435?_0x115a96:_0x1f8435,_0x4879af=_0x115a96+_0x3863de>_0x4879af?_0x115a96+_0x3863de:_0x4879af;}return{'minRow':_0x3d499b,'maxRow':_0x35a111,'minColumn':_0x1f8435,'maxColumn':_0x4879af};}['_setupColumnsRowsFixing'](){const _0x4fe4df=this['editor'],_0x210e24=_0x4fe4df['plugins']['get']('TrackChangesEditing'),_0xf7fe34=_0x4fe4df['plugins']['get']('TableUtils');_0x4fe4df['model']['document']['on']('change:data',()=>{const _0x3c6d43=Array['from'](_0x4fe4df['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b18e9,data:_0x523f2c}of _0x3c6d43){const {group:_0x418502,id:_0xa2ba5d,subType:_0x51f067}=_0x210e24['_splitMarkerName'](_0x1b18e9);if('suggestion'!=_0x418502)continue;if(null!=_0x523f2c['oldRange'])continue;const _0x162c8a=_0x210e24['getSuggestion'](_0xa2ba5d);this['_tablePostFixingSubtypes']['includes'](_0x51f067)&&this['_tableSuggestions']['add'](_0x162c8a);}},{'priority':'low'});const _0x260b35=(_0x1d4d61,_0x53f0ae)=>{let _0x716ace=!0x1;const _0x18a2a0=_0x53f0ae['createRangeOn'](_0x1d4d61),_0x53d6b0=_0x1d4d61['findAncestor']('table'),_0x3e8c62=_0xf7fe34['getCellLocation'](_0x1d4d61);for(const _0x3b3048 of this['_tableSuggestions']){const _0x56e56b=_0x3b3048['subType'],_0x1972e6=_0x56e56b['startsWith']('tablePaste'),_0x491830=_0x56e56b['substr'](_0x1972e6?0xa:0x5),_0x4f6279=_0x491830['toLowerCase'](),_0x3ed2a5=_0x4f6279['substr'](0x0,0x3)+'span',_0x3d3ee9='min'+_0x491830,_0x465c61='max'+_0x491830;if(!_0x3b3048['isInContent'])continue;if(_0x53d6b0!=_0x3b3048['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3b3048['isIntersectingWithRange'](_0x18a2a0))continue;const _0x5d98ae=_0x1d4d61['hasAttribute'](_0x3ed2a5)?_0x1d4d61['getAttribute'](_0x3ed2a5)-0x1:0x0,_0x3fa882=this['_getSuggestionCoords'](_0x3b3048),_0x4e1785=_0x3fa882[_0x3d3ee9],_0x410eeb=_0x3fa882[_0x465c61];_0x4e1785<=_0x3e8c62[_0x4f6279]&&_0x3e8c62[_0x4f6279]+_0x5d98ae<=_0x410eeb&&(_0x3b3048['addRange'](_0x18a2a0),_0x716ace=!0x0);}return _0x716ace;};_0x4fe4df['model']['document']['registerPostFixer'](_0x5ecc25=>{let _0x186984=!0x1;for(const _0x123ec9 of _0x4fe4df['model']['document']['differ']['getChanges']())if('insert'==_0x123ec9['type']){if('tableRow'==_0x123ec9['name']){for(const _0x5744a0 of _0x123ec9['position']['nodeAfter']['getChildren']())_0x186984=_0x186984||_0x260b35(_0x5744a0,_0x5ecc25);}else'tableCell'==_0x123ec9['name']&&(_0x186984=_0x186984||_0x260b35(_0x123ec9['position']['nodeAfter'],_0x5ecc25));}return _0x186984;});}['_getSuggestionCoords'](_0x13544b){return this['_getCoordsForCells'](_0x13544b['getRanges']()['map'](_0x13c518=>_0x13c518['start']['nodeAfter']));}}function We(_0x1c71d4){return Array['from'](new Set(_0x1c71d4)['values']());}class Nt extends _0x1bca86{static get['requires'](){return[$t];}['afterInit'](){const _0x2d7caf=this['editor'],_0x78ebb4=_0x2d7caf['model']['document']['selection'],_0x2a7e44=_0x2d7caf['locale'];if(!_0x2d7caf['plugins']['has']('TableEditing'))return;const _0xf0ab46=_0x2d7caf['plugins']['get']('TrackChangesEditing'),_0x117268=_0x2d7caf['plugins']['get']('TableUtils'),_0x5ee087=_0x2d7caf['plugins']['get']($t);_0x5ee087['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xf0ab46['enableCommand']('mergeTableCells',()=>{const _0x419d27=_0x117268['getSelectionAffectedTableCells'](_0x2d7caf['model']['document']['selection']);_0x2d7caf['model']['change'](()=>{_0xf0ab46['markMultiRangeBlockFormat'](_0x419d27,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2d7caf['commands']['get']('mergeTableCells')['on']('execute',(_0x5be806,_0x5ca603)=>{_0x2d7caf['commands']['get']('trackChanges')['value']&&(_0x5ca603['length']>0x0&&_0x5ca603[_0x5ca603['length']-0x1]&&_0x5ca603[_0x5ca603['length']-0x1]['forceDefaultExecution']||_0xf0ab46['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5be806['stop']());},{'priority':'highest'});for(const _0x396b4b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xf168cf=_0x2d7caf['commands']['get'](_0x396b4b);_0xf0ab46['enableCommand'](_0x396b4b,()=>{const _0x10ea62=_0x2d7caf['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x336646=>_0x336646['is']('element','tableCell')),_0x3c3da4=_0xf168cf['value'];_0x2d7caf['model']['change'](()=>{_0xf0ab46['markMultiRangeBlockFormat']([_0x10ea62,_0x3c3da4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x46faaf of['splitTableCellVertically','splitTableCellHorizontally']){const _0x18946e=_0x2d7caf['commands']['get'](_0x46faaf);_0xf0ab46['enableCommand'](_0x46faaf,()=>{const _0x5a286b=_0x117268['getSelectionAffectedTableCells'](_0x2d7caf['model']['document']['selection'])[0x0],_0x316b38=_0x5a286b['findAncestor']('table'),{column:_0x4ddb22,row:_0x13784c}=_0x117268['getCellLocation'](_0x5a286b);let _0x51f769=[];if('horizontally'==_0x18946e['direction']){const _0x46a29e=_0x117268['createTableWalker'](_0x316b38,{'startRow':_0x13784c,'endRow':_0x13784c,'includeAllSlots':!0x0});_0x51f769=Array['from'](_0x46a29e)['map'](_0x31b1da=>_0x31b1da['cell']);}else{const _0x51d1fb=_0x117268['createTableWalker'](_0x316b38,{'column':_0x4ddb22,'includeAllSlots':!0x0});_0x51f769=Array['from'](_0x51d1fb)['map'](_0x2b6575=>_0x2b6575['cell']);}_0x2d7caf['model']['change'](_0x3c9dfd=>{_0xf0ab46['markBlockFormat'](_0x3c9dfd['createRangeOn'](_0x5a286b),{'commandName':_0x46faaf,'commandParams':[]},_0x51f769,_0x46faaf);});});}_0xf0ab46['descriptionFactory']['registerDescriptionCallback'](_0x4c2f5c=>{if('formatBlock'!=_0x4c2f5c['type']&&'formatInline'!=_0x4c2f5c['type'])return;const {data:_0x14d621}=_0x4c2f5c;return _0x14d621&&'mergeTableCells'==_0x14d621['commandName']?{'type':'format','content':o(_0x2a7e44,'*Merge\x20cells*')}:void 0x0;}),_0xf0ab46['descriptionFactory']['registerDescriptionCallback'](_0x4b411b=>{if('formatBlock'!=_0x4b411b['type']&&'formatInline'!=_0x4b411b['type'])return;const {data:_0xabea4b}=_0x4b411b;return _0xabea4b?'splitTableCellVertically'==_0xabea4b['commandName']?{'type':'format','content':o(_0x2a7e44,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xabea4b['commandName']?{'type':'format','content':o(_0x2a7e44,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2a58c9=_0x5ee087['_acceptFormatSuggestionCallbackFactory']();for(const _0x2782ca of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xf0ab46['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2782ca,'accept',_0x2a58c9);for(const _0x5d9b8b of['splitTableCellVertically','splitTableCellHorizontally'])_0xf0ab46['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d9b8b,'accept',_0x2a58c9);_0xf0ab46['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x211048=>{_0x2d7caf['model']['change'](_0x5cfcd6=>{const _0x598cb0=Array['from'](_0x78ebb4['getRanges']())['map'](_0x5dea1c=>_0x35191f['fromRange'](_0x5dea1c));_0x5cfcd6['setSelection'](_0x211048),_0x2d7caf['commands']['get']('mergeTableCells')['refresh'](),_0x2d7caf['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3df228=_0x598cb0['filter'](_0x5e654d=>'$graveyard'!=_0x5e654d['root']['rootName']);_0x3df228['length']>0x0&&_0x5cfcd6['setSelection'](_0x3df228);for(const _0x4bc2ea of _0x598cb0)_0x4bc2ea['detach']();});});for(const _0x3e175e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x37a4bd=_0x2d7caf['commands']['get'](_0x3e175e);_0x37a4bd['on']('set:isEnabled',(_0x6414d6,_0x5862d2,_0x28626f)=>{if(_0x28626f){const _0x3d649e=_0x2d7caf['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4c9241=>_0x4c9241['is']('element','tableCell'));this['_areMergableCells'](_0x37a4bd['value'],_0x3d649e)||(_0x6414d6['return']=!0x1,_0x6414d6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x88715=this['editor']['commands']['get']('mergeTableCells'),_0x1a241f=this['editor']['plugins']['get']('TableUtils');if(!_0x88715['isEnabled'])return!0x1;const _0x26c048=_0x1a241f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1b71c2 of _0x26c048)for(const _0x303137 of _0x26c048)if(_0x1b71c2!=_0x303137&&!this['_areMergableCells'](_0x1b71c2,_0x303137))return!0x1;return!0x0;}['_areMergableCells'](_0x4a6a84,_0xd2d6e){const _0x24046f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x458cb7=this['editor']['model']['createRangeOn'](_0x4a6a84),_0x134a00=this['editor']['model']['createRangeOn'](_0xd2d6e),_0x1ed1e3=new Set(),_0x270ca5=new Set();for(const _0x4166ef of _0x24046f['getSuggestions']())if(('insertion'==_0x4166ef['type']||'deletion'==_0x4166ef['type']||'mergeTableCells'==_0x4166ef['subType'])&&_0x4166ef['isInContent']){for(const _0x666a8b of _0x4166ef['getRanges']())_0x666a8b['containsRange'](_0x458cb7,!0x0)&&_0x1ed1e3['add'](_0x4166ef['type']+':'+_0x4166ef['author']['id']),_0x666a8b['containsRange'](_0x134a00,!0x0)&&_0x270ca5['add'](_0x4166ef['type']+':'+_0x4166ef['author']['id']);}if(_0x1ed1e3['size']!=_0x270ca5['size'])return!0x1;for(const _0x555651 of _0x1ed1e3)if(!_0x270ca5['has'](_0x555651))return!0x1;return!0x0;}}class Dt extends _0x1bca86{static get['requires'](){return[$t];}['afterInit'](){const _0x380619=this['editor'];if(!_0x380619['plugins']['has']('TableEditing'))return;const _0x3d4511=_0x380619['locale'],_0x3afafb=_0x380619['plugins']['get']('TrackChangesEditing');_0x3afafb['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3afafb['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3afafb['registerBlockAttribute']('headingRows'),_0x3afafb['registerBlockAttribute']('headingColumns'),_0x3afafb['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3d4511,'FORMAT_HEADER_ROW')),_0x3afafb['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3d4511,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2657e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x461175=this['editor']['plugins']['get']('TableUtils'),_0x566a00=this['editor']['plugins']['get']($t)['_acceptFormatSuggestionCallbackFactory']();function _0x4c177b({showActiveMarker:_0xd7f615=!0x0,setDataAttribute:_0x2c71df=!0x0}={}){return(_0x3f0943,_0x4c0581,_0x5079ab)=>{const {type:_0x4d2d2e,id:_0x5b9f17}=_0x2657e0['_splitMarkerName'](_0x4c0581['markerName']);if(!_0x2657e0['hasSuggestion'](_0x5b9f17))return;const _0xbab4d0=_0x2657e0['getSuggestion'](_0x5b9f17),_0x46c9bf=_0xbab4d0['data'];if('formatBlock'!=_0xbab4d0['type']||!_0x46c9bf||'setTableColumnHeader'!=_0x46c9bf['commandName'])return;if(_0x4c0581['item'])return void _0x3f0943['stop']();if(!_0x5079ab['consumable']['consume'](_0x4c0581['markerRange'],_0x3f0943['name']))return;const _0x505481=_0x4c0581['markerRange']['start']['nodeAfter'],_0x28626c=_0x4c0581['markerRange']['end']['nodeBefore'],_0x27cad0=_0x505481['parent']['parent'],{column:_0x2f38d7}=_0x461175['getCellLocation'](_0x505481),{column:_0x1d0dcc}=_0x461175['getCellLocation'](_0x28626c);for(let _0x260a95=_0x2f38d7;_0x260a95<=_0x1d0dcc;_0x260a95++){const _0x274c9e=_0x461175['createTableWalker'](_0x27cad0,{'column':_0x260a95,'includeAllSlots':!0x1});for(const _0x302e1c of _0x274c9e){const _0x480a60=_0x302e1c['cell'],_0x587a8e=_0x5079ab['mapper']['toViewElement'](_0x480a60);_0x5079ab['writer']['addClass']('ck-suggestion-marker-'+_0x4d2d2e,_0x587a8e),_0x2c71df&&_0x5079ab['writer']['setAttribute']('data-suggestion',_0x5b9f17,_0x587a8e),_0x5079ab['mapper']['bindElementToMarker'](_0x587a8e,_0x4c0581['markerName']),_0xd7f615&&(_0x2657e0['activeMarkers']['includes'](_0x4c0581['markerName'])?_0x5079ab['writer']['addClass']('ck-suggestion-marker--active',_0x587a8e):_0x5079ab['writer']['removeClass']('ck-suggestion-marker--active',_0x587a8e));}}};}_0x2657e0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x566a00),_0x2657e0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x566a00),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4c177b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c8c36,_0x474a17,_0x349bc1)=>{_0x349bc1['options']['showSuggestionHighlights']&&_0x4c177b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4c8c36,_0x474a17,_0x349bc1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1061de,_0x4063f5,_0x192a80)=>{const {type:_0x1ea981,id:_0x48895e}=_0x2657e0['_splitMarkerName'](_0x4063f5['markerName']);if(!_0x2657e0['hasSuggestion'](_0x48895e))return;const _0x59c34b=_0x2657e0['getSuggestion'](_0x48895e),_0x58e199=_0x59c34b['data'];if('formatBlock'!=_0x59c34b['type']||!_0x58e199||'setTableColumnHeader'!=_0x58e199['commandName'])return;const _0x4f6e8c=_0x192a80['mapper']['markerNameToElements'](_0x4063f5['markerName']);if(_0x4f6e8c){for(const _0x4d7554 of _0x4f6e8c)_0x192a80['writer']['removeClass']('ck-suggestion-marker-'+_0x1ea981,_0x4d7554),_0x192a80['writer']['removeClass']('ck-suggestion-marker--active',_0x4d7554),_0x192a80['writer']['removeAttribute']('data-suggestion',_0x4d7554),_0x192a80['mapper']['unbindElementFromMarkerName'](_0x4d7554,_0x4063f5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19f61d=this['editor'],_0x306e8d=_0x19f61d['locale'];function _0x55269f(_0x1b254b){return{'type':'format','content':o(_0x306e8d,'*Format:*\x20%0',_0x1b254b)};}_0x19f61d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x475899=>{if('formatBlock'!=_0x475899['type'])return;const {data:_0x30298e}=_0x475899;if(_0x30298e){if('setTableRowHeader'==_0x30298e['commandName']){const _0x3e0b46=_0x30298e['commandParams'][0x0]['forceValue'];return _0x55269f(o(_0x306e8d,_0x3e0b46?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x30298e['commandName']){const _0x27b7ea=_0x30298e['commandParams'][0x0]['forceValue'];return _0x55269f(o(_0x306e8d,_0x27b7ea?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Mt extends _0x1bca86{['afterInit'](){const _0xf2bf5=this['editor'],_0x364c6a=_0xf2bf5['locale'],_0x461035=_0xf2bf5['plugins']['get']('TrackChangesEditing');function _0x42f40c(_0x5527a8){return{'type':'format','content':''+o(_0x364c6a,'*Set\x20table\x20type:*\x20%0',_0x5527a8)};}_0xf2bf5['plugins']['has']('TableLayout')&&(_0x461035['enableCommand']('insertTableLayout'),_0x461035['enableDefaultAttributesIntegration']('tableType'),_0x461035['registerBlockAttribute']('tableType'),_0x461035['descriptionFactory']['registerElementLabel'](_0x18e098=>_0x18e098['is']('element','table')&&'layout'===_0x18e098['getAttribute']('tableType'),_0x59408a=>o(_0x364c6a,'ELEMENT_LAYOUT_TABLE',_0x59408a)),_0x461035['descriptionFactory']['registerDescriptionCallback'](_0x336f20=>{const {data:_0x286c44}=_0x336f20;if(_0x286c44&&'tableType'==_0x286c44['key'])switch(_0x286c44['newValue']){case'layout':return _0x42f40c(o(_0x364c6a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x42f40c(o(_0x364c6a,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Oe['map'](_0xcd66ff=>[_0xcd66ff,null]));class Bt extends _0x1bca86{static get['requires'](){return[$t];}['afterInit'](){const _0x1d687c=this['editor'];if(!_0x1d687c['plugins']['has']('TableClipboard'))return;const _0x3d395a=_0x1d687c['plugins']['get']('TrackChangesEditing'),_0x4cd50f=_0x1d687c['plugins']['get']('TableUtils'),_0x310633=_0x1d687c['plugins']['get']($t),_0x1dc7ec=_0x1d687c['plugins']['get']('TableClipboard'),_0x337d9b=_0x1d687c['plugins']['get']('TableSelection'),_0x1b5e2b=_0x1d687c['plugins']['get'](_0x23c76d);_0x310633['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1d687c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1d687c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x281bd2=null,_0x843824=!0x1;_0x1b5e2b['on']('contentInsertion',(_0x5a3ff6,_0x186506)=>{_0x843824='paste'===_0x186506['method'];}),_0x1d687c['model']['on']('insertContent',(_0x167320,_0x482dd2)=>{if(!_0x843824&&null===_0x337d9b['getSelectedTableCells']())return;const [_0x15d62d,_0x4df83e]=_0x482dd2,_0x5f238c=_0x482dd2[_0x482dd2['length']-0x1];_0x5f238c&&_0x5f238c['forceDefaultExecution']||_0x3d395a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x479770,_0x3e7e88,_0x36c8e7,_0x5e17a2,_0x64b2f){if(_0x3e7e88&&!_0x3e7e88['is']('documentSelection'))return!0x1;const _0x3334e3=_0x64b2f['getTableIfOnlyTableInContent'](_0x479770,_0x36c8e7);if(!_0x3334e3||!He(_0x3334e3,void 0x0,_0x5e17a2))return!0x1;const _0x5069ae=_0x5e17a2['getSelectionAffectedTableCells'](_0x36c8e7['document']['selection']);if(!_0x5069ae['length'])return!0x1;const _0x557f10=_0x5069ae[0x0]['findAncestor']('table'),_0x1a94ad=_0x5e17a2['getRowIndexes'](_0x5069ae),_0x1d913c=_0x5e17a2['getColumnIndexes'](_0x5069ae),_0x2f5343={'startRow':_0x1a94ad['first'],'endRow':_0x1a94ad['last'],'startColumn':_0x1d913c['first'],'endColumn':_0x1d913c['last']};return 0x1==_0x5069ae['length']&&(_0x2f5343['endRow']+=_0x5e17a2['getRows'](_0x3334e3)-0x1,_0x2f5343['endColumn']+=_0x5e17a2['getColumns'](_0x3334e3)-0x1),He(_0x557f10,_0x2f5343,_0x5e17a2);}(_0x15d62d,_0x4df83e,_0x1d687c['model'],_0x4cd50f,_0x1dc7ec)&&(_0x167320['stop'](),_0x281bd2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1d687c['model']['change'](()=>{_0x1d687c['model']['insertContent'](_0x482dd2[0x0],_0x482dd2[0x1],_0x482dd2[0x2],{'forceDefaultExecution':!0x0});const _0x30cbc3=_0x573f80(),{rowInsertionRanges:_0xe0361,columnInsertionRanges:_0x503403,insertionRanges:_0x54bc1d,deletionRanges:_0x465dc2,cells:_0x459d05}=_0x281bd2;_0xe0361['length']&&_0x3d395a['markMultiRangeInsertion'](_0xe0361,'tablePasteRow',{'tablePasteChainId':_0x30cbc3}),_0x503403['length']&&_0x3d395a['markMultiRangeInsertion'](_0x503403,'tablePasteColumn',{'tablePasteChainId':_0x30cbc3}),_0x54bc1d['length']&&(_0x3d395a['markMultiRangeInsertion'](_0x54bc1d,'tablePaste',{'tablePasteChainId':_0x30cbc3,'skipNestingCheck':!0x0}),_0x54bc1d['forEach'](_0x56a26e=>_0x56a26e['detach']?.())),_0x465dc2['length']&&(_0x3d395a['markMultiRangeDeletion'](_0x465dc2,'tablePaste',{'tablePasteChainId':_0x30cbc3,'skipNestingCheck':!0x0}),_0x465dc2['forEach'](_0x150dc4=>_0x150dc4['detach']?.()));const _0x5ebde5=_0x3d395a['markMultiRangeBlockFormat'](_0x459d05['map'](({element:_0x2a9a34})=>_0x2a9a34),{'formatGroupId':_0x573f80()},[],'tablePasteCell',{'tablePasteChainId':_0x30cbc3});if(_0x5ebde5){const _0x3333db=_0x5ebde5['getMarkers'](),_0x467f8c=[];for(const {element:_0x46fa5a,attributes:_0x39bd1b}of _0x459d05){if(!_0x39bd1b)continue;const _0x45418e=_0x1d687c['model']['createRangeOn'](_0x46fa5a),_0x3f3648=_0x3333db['find'](_0x222f33=>_0x222f33['getRange']()['isEqual'](_0x45418e));_0x3f3648&&_0x467f8c['push']([_0x3f3648['name'],_0x39bd1b]);}_0x467f8c['length']&&_0x5ebde5['setAttribute']('markerAttributes',Object['fromEntries'](_0x467f8c));}_0x281bd2=null;}));},{'priority':_0x163a1e['high']+0xa}),_0x1b5e2b['on']('contentInsertion',()=>{_0x843824=!0x1;},{'priority':'lowest'}),_0x1d687c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x30238a,_0x4932b0)=>{const [_0x21263e,_0x32e9ae,,_0x2a93dd]=_0x4932b0;if(!_0x281bd2)return;_0x30238a['stop']();const _0x42b993=_0x21263e['cell'],_0x10a0b2=_0x32e9ae,_0x4f2931=De(_0x42b993),_0xb3a609=De(_0x10a0b2);_0x30238a['return']=_0x42b993;let _0x2b8130=null,_0x143ec3=null;if(_0xb3a609||_0x4f2931){if(_0x4f2931&&!_0xb3a609){_0x2a93dd['remove'](_0x42b993['getChild'](0x0));for(const _0x1c9d22 of Array['from'](_0x10a0b2['getChildren']()))_0x2a93dd['insert'](_0x1c9d22,_0x42b993,'end');const _0x4fe68a=_0x281bd2['rowInsertionIndexes']['includes'](_0x21263e['row']),_0x3fed7c=_0x281bd2['columnInsertionIndexes']['includes'](_0x21263e['column']);_0x4fe68a||_0x3fed7c||(_0x2b8130=_0x35191f['fromRange'](_0x2a93dd['createRangeIn'](_0x42b993)));}else _0xb3a609&&!_0x4f2931&&(_0x143ec3=_0x2a93dd['createRangeIn'](_0x42b993));}else{const _0x5b7f98=_0x2a93dd['createElement']('tableCellSuggestion'),_0x65890=_0x2a93dd['createElement']('tableCellSuggestion');_0x2a93dd['wrap'](_0x2a93dd['createRangeIn'](_0x42b993),_0x65890),_0x2a93dd['insert'](_0x5b7f98,_0x42b993,0x0);for(const _0x4f59c1 of Array['from'](_0x10a0b2['getChildren']()))_0x2a93dd['insert'](_0x4f59c1,_0x5b7f98,'end');_0x2b8130=_0x35191f['fromRange'](_0x2a93dd['createRangeOn'](_0x5b7f98)),_0x143ec3=_0x35191f['fromRange'](_0x2a93dd['createRangeOn'](_0x65890));}const _0x3c23ae=Array['from'](_0x10a0b2['getAttributes']())['filter'](([_0x3b45b6])=>Oe['includes'](_0x3b45b6));_0x281bd2['cells']['push']({'element':_0x42b993,'attributes':_0x3c23ae['length']?Object['fromEntries'](_0x3c23ae):null}),_0x2b8130&&_0x281bd2['insertionRanges']['push'](_0x2b8130),_0x143ec3&&_0x281bd2['deletionRanges']['push'](_0x143ec3);},{'priority':'high'}),_0x4cd50f['on']('insertColumns',(_0x46462a,_0x5b6205)=>{const [_0x13f63a,_0x4470cd={}]=_0x5b6205;if(!_0x281bd2)return;const _0x5e6976=_0x4470cd['at']||0x0,_0x4a7c55=_0x4470cd['columns']||0x1;_0x281bd2['columnInsertionIndexes']=new Array(_0x4a7c55)['fill'](_0x5e6976)['map']((_0x203cd7,_0x41a14c)=>_0x203cd7+_0x41a14c);for(const {cell:_0x5029df}of _0x4cd50f['createTableWalker'](_0x13f63a,{'startColumn':_0x5e6976,'endColumn':_0x5e6976+_0x4a7c55-0x1}))_0x281bd2['columnInsertionRanges']['push'](_0x1d687c['model']['createRangeOn'](_0x5029df));},{'priority':'low'}),_0x4cd50f['on']('insertRows',(_0x4b6bec,_0x250981)=>{const [_0x4f7a81,_0x55ac72={}]=_0x250981;if(!_0x281bd2)return;const _0x52810b=_0x55ac72['at']||0x0,_0x3a81ad=_0x55ac72['rows']||0x1;_0x281bd2['rowInsertionIndexes']=new Array(_0x3a81ad)['fill'](_0x52810b)['map']((_0x94e542,_0x2aadca)=>_0x94e542+_0x2aadca);for(const {cell:_0x43e553}of _0x4cd50f['createTableWalker'](_0x4f7a81,{'startRow':_0x52810b,'endRow':_0x52810b+_0x3a81ad-0x1}))_0x281bd2['rowInsertionRanges']['push'](_0x1d687c['model']['createRangeOn'](_0x43e553));},{'priority':'low'}),_0x3d395a['descriptionFactory']['registerDescriptionCallback'](_0x43360e=>{if(_0x43360e['subType']&&_0x43360e['subType']['startsWith']('tablePaste'))return _0x43360e['previous']?{}:{'type':'insertion','content':o(_0x1d687c['locale'],'*Replace\x20table\x20cells*')};});const _0x5aa5ce=()=>!0x1;for(const _0x2050be of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3d395a['_suggestionFactory']['registerCustomCallback']('insertion',_0x2050be,'join',_0x5aa5ce),_0x3d395a['_suggestionFactory']['registerCustomCallback']('deletion',_0x2050be,'join',_0x5aa5ce),_0x3d395a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2050be,'join',_0x5aa5ce);_0x3d395a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5aa5ce),_0x3d395a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x46fb4e,_0x13c64d,_0x3d5e7b)=>{const _0x9d4424=_0x46fb4e['map'](_0x51d2ce=>_0x51d2ce['getContainedElement']())['filter'](_0xb4c432=>_0xb4c432),_0x4d174d=new Map(_0x9d4424['map'](_0x143320=>[_0x143320,null]));if(_0x281bd2){for(const {element:_0xa19305,attributes:_0xee88e3}of _0x281bd2['cells'])_0xee88e3&&_0x4d174d['set'](_0xa19305,_0xee88e3);}else{if(_0x3d5e7b&&_0x3d5e7b['markerAttributes'])for(const [_0xdc448b,_0x35542d]of Object['entries'](_0x3d5e7b['markerAttributes'])){const _0x38e5d2=_0x1d687c['model']['markers']['get'](_0xdc448b),_0x143392=_0x38e5d2?_0x38e5d2['getRange']()['getContainedElement']():null;_0x143392&&_0x4d174d['set'](_0x143392,_0x35542d);}}_0x1d687c['model']['change'](_0x4e3b05=>{for(const [_0x2320e8,_0x23d863]of _0x4d174d)_0x4e3b05['setAttributes']({...Ue,..._0x23d863},_0x2320e8);});});const _0x547afc=(_0x2b3f34,_0x370d7e)=>{_0x3d395a['_suggestionFactory']['registerCustomCallback'](_0x2b3f34,'tablePaste',_0x370d7e,(_0x258303,_0x587dc4,_0x3390b8)=>{_0x1d687c['model']['change'](_0x47ffcf=>{const _0x31c263=[];for(const _0x83e99f of _0x258303){const _0x198501=_0x83e99f['start']['nodeAfter'];_0x198501['is']('element','tableCellSuggestion')&&_0x31c263['push'](_0x198501);}_0x3d395a['_suggestionFactory']['getSuggestionCallback'](_0x2b3f34,null,_0x370d7e)(_0x258303,_0x587dc4,_0x3390b8);for(const _0x5a4d40 of _0x31c263)'$graveyard'!=_0x5a4d40['root']['rootName']&&_0x47ffcf['unwrap'](_0x5a4d40);});});};_0x547afc('insertion','accept'),_0x547afc('insertion','discard'),_0x547afc('deletion','accept'),_0x547afc('deletion','discard'),_0x3d395a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xff0cf=>{const _0x107436=_0xff0cf['map'](_0x284f4b=>_0x284f4b['getContainedElement']()),_0x2b2327=_0x107436[0x0]['findAncestor']('table'),{minRow:_0x2dd51a,maxRow:_0x20ae59}=_0x310633['_getCoordsForCells'](_0x107436);_0x4cd50f['removeRows'](_0x2b2327,{'at':_0x2dd51a,'rows':_0x20ae59-_0x2dd51a+0x1});}),_0x3d395a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4abe51=>{const _0x13c906=_0x4abe51['map'](_0x32e119=>_0x32e119['getContainedElement']()),_0x42705a=_0x13c906[0x0]['findAncestor']('table'),{minColumn:_0x4f60aa,maxColumn:_0x554cec}=_0x310633['_getCoordsForCells'](_0x13c906);_0x4cd50f['removeColumns'](_0x42705a,{'at':_0x4f60aa,'columns':_0x554cec-_0x4f60aa+0x1});});const _0x1dbcfd=(_0x7a53bb,_0x242206)=>{if(!_0x242206['subType']||!_0x242206['subType']['startsWith']('tablePaste'))return;const _0x3552ce=_0x242206['attributes']['tablePasteChainId'],_0x3f482f=_0x3d395a['getSuggestions']()['filter'](_0x744700=>_0x744700['isInContent']&&_0x744700['attributes']&&_0x744700['attributes']['tablePasteChainId']==_0x3552ce);_0x3f482f['length']&&_0x242206['getAllAdjacentSuggestions']()['length']!=_0x3f482f['length']&&_0x3f482f['reduce']((_0xf4df59,_0x2035b8)=>(_0xf4df59['next']=_0x2035b8,_0x2035b8['previous']=_0xf4df59,_0x2035b8));};function _0x26ea6d(_0x11c8a7,_0x347dcb=!0x0){const {id:_0x4e2462,authorId:_0x373189}=_0x3d395a['_splitMarkerName'](_0x11c8a7['markerName']),_0x78c8b7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x47e34d=_0x3d395a['activeMarkers']['includes'](_0x11c8a7['markerName']);return _0x47e34d&&_0x78c8b7['push']('ck-suggestion-marker--active'),{'classes':_0x78c8b7,'attributes':{'data-suggestion':_0x4e2462,'data-author-id':_0x373189},'priority':_0x47e34d&&_0x347dcb?0xbc2:0xbb8};}_0x3d395a['on']('suggestionLoaded',_0x1dbcfd,{'priority':'high'}),_0x3d395a['on']('suggestionUnloaded',_0x1dbcfd,{'priority':'high'}),_0x1d687c['model']['document']['registerPostFixer'](()=>{let _0x1a8d3f=!0x1;const _0x29898b=Array['from'](_0x1d687c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d0604,data:_0x3575e7}of _0x29898b){const {group:_0x20f017,type:_0x2b373c,id:_0x11ad43}=_0x3d395a['_splitMarkerName'](_0x1d0604);if('suggestion'!=_0x20f017||'deletion'!=_0x2b373c||_0x3575e7['oldRange'])continue;if(!_0x3d395a['hasSuggestion'](_0x11ad43))continue;const _0x486c74=_0x3d395a['getSuggestion'](_0x11ad43)['getRanges'](),_0x55d2f4=_0x1d687c['plugins']['get']('Users')['me'];for(const _0x29c1ec of _0x3d395a['getSuggestions']()){if(!_0x29c1ec['isInContent']||_0x29c1ec['author']!=_0x55d2f4)continue;if('formatBlock'!=_0x29c1ec['type']||'tablePasteCell'!=_0x29c1ec['subType'])continue;if(_0x29c1ec['getRanges']()['every'](_0x2416fe=>_0x486c74['some'](_0x447382=>_0x447382['containsRange'](_0x2416fe,!0x0)))){for(const _0x4632be of _0x29c1ec['getAllAdjacentSuggestions']())_0x4632be['isInContent']&&(_0x4632be['discard'](),_0x1a8d3f=!0x0);}}}return _0x1a8d3f;}),_0x1d687c['model']['document']['registerPostFixer'](_0x357f76=>{const _0x406bdd=_0x1d687c['commands']['get']('redo');if(!_0x406bdd||!_0x406bdd['_createdBatches']['has'](_0x357f76['batch']))return!0x1;let _0x2d439d=!0x1;const _0x1fec14=_0x1d687c['plugins']['get']('Users')['me'],_0x102f9d=_0x1d687c['model']['document']['differ']['getChanges'](),_0x4c9208=Array['from'](_0x1d687c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x95574e,data:_0x1c9e98})=>{const {group:_0x3a5ae6,subType:_0x25adf3,authorId:_0x943718}=_0x3d395a['_splitMarkerName'](_0x95574e);return'suggestion'==_0x3a5ae6&&'tablePaste'==_0x25adf3&&_0x943718==_0x1fec14['id']&&!_0x1c9e98['oldRange'];});for(const _0x1f5a64 of _0x102f9d){if('insert'!=_0x1f5a64['type']||'tableCellSuggestion'!=_0x1f5a64['name']||0x1!=_0x1f5a64['length'])continue;const _0x1b1a12=_0x357f76['createRange'](_0x1f5a64['position'],_0x1f5a64['position']['getShiftedBy'](0x1));if(!_0x4c9208['find'](({data:_0x378971})=>_0x378971['newRange']['isEqual'](_0x1b1a12))){for(const {name:_0x4c7245,data:_0x2c7917}of _0x4c9208)if(_0x1b1a12['containsRange'](_0x2c7917['newRange'])){_0x357f76['updateMarker'](_0x4c7245,{'range':_0x1b1a12}),_0x2d439d=!0x0;break;}}}return _0x2d439d;}),_0x1d687c['model']['document']['registerPostFixer'](_0x57f674=>{let _0x2217f8=!0x1;const _0x5420d7=_0x1d687c['plugins']['get']('Users')['me'],_0x5f3e1c=_0x3d395a['getSuggestions']()['filter'](_0x32d38e=>_0x32d38e['isInContent']&&_0x32d38e['author']==_0x5420d7),_0x40e931=new Set(),_0x4da636=new Set();for(const _0xff5e57 of _0x5f3e1c)if('tablePaste'==_0xff5e57['subType'])for(const _0x5ce1a4 of _0xff5e57['getMarkers']()){const _0x1de570=_0x5ce1a4['getRange']()['getContainedElement']();if(_0x1de570){if(_0x1de570['is']('element','tableCellSuggestion')&&De(_0x1de570)){_0xff5e57['removeMarker'](_0x5ce1a4['name']),_0x40e931['add'](_0x1de570),_0x2217f8=!0x0;const _0x1cf684=_0x1de570['nextSibling'],_0x52d0ef=_0x1de570['previousSibling'],_0x134aef=_0x1cf684&&_0x1cf684['is']('element','tableCellSuggestion'),_0xf7c02b=_0x52d0ef&&_0x52d0ef['is']('element','tableCellSuggestion');_0x134aef&&!_0x40e931['has'](_0x1cf684)&&_0x4da636['add'](_0x1cf684),_0xf7c02b&&!_0x40e931['has'](_0x52d0ef)&&_0x4da636['add'](_0x52d0ef);}else _0x1de570['is']('element','paragraph')&&_0x1de570['isEmpty']&&(_0xff5e57['removeMarker'](_0x5ce1a4['name']),_0x2217f8=!0x0);}}else{if('tablePasteCell'==_0xff5e57['subType']){if(!_0xff5e57['attributes']||!_0xff5e57['attributes']['tablePasteChainId'])continue;const _0x69be36=_0xff5e57['attributes']['markerAttributes'];if(_0x69be36&&Object['keys'](_0x69be36)['length'])continue;const _0x35487f=_0xff5e57['attributes']['tablePasteChainId'];let _0x33405c=!0x0,_0x118e85=!0x0;for(const _0x2fc7fc of _0x5f3e1c)if(_0x2fc7fc['subType']&&_0x2fc7fc['subType']['startsWith']('tablePaste')){if(!_0x2fc7fc['attributes']['tablePasteChainId']){_0x118e85=!0x1;break;}if(_0x2fc7fc['id']!=_0xff5e57['id']&&_0x2fc7fc['attributes']['tablePasteChainId']==_0x35487f){_0x33405c=!0x1;break;}}_0x118e85&&_0x33405c&&(_0xff5e57['removeMarkers'](),_0x2217f8=!0x0);}}for(const _0x452f49 of _0x40e931)_0x57f674['remove'](_0x452f49);for(const _0x37d8f0 of _0x4da636)_0x57f674['unwrap'](_0x37d8f0);return _0x2217f8;}),_0x1d687c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2d6ad4=>_0x26ea6d(_0x2d6ad4),'converterPriority':'high'}),_0x1d687c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2654da,_0x5a3615)=>_0x5a3615['options']['showSuggestionHighlights']?_0x26ea6d(_0x2654da,!0x1):null,'converterPriority':'high'});const _0x36aa81=_0x1d687c['editing']['view'];this['listenTo'](_0x36aa81['document'],'clipboardOutput',(_0x119bed,_0x1ed5f6)=>{const _0x1c9536=[];for(const _0x34aeb7 of _0x36aa81['createRangeIn'](_0x1ed5f6['content'])['getItems']())_0x34aeb7['is']('element','suggestion-td')&&_0x1c9536['push'](_0x34aeb7);_0x36aa81['change'](_0x2381b7=>{for(const _0x3fef89 of _0x1c9536)_0x2381b7['move'](_0x2381b7['createRangeIn'](_0x3fef89),_0x2381b7['createPositionBefore'](_0x3fef89)),_0x2381b7['remove'](_0x3fef89);});});}}function De(_0x5b95d6){if(_0x5b95d6['isEmpty'])return!0x0;const _0x225a33=_0x5b95d6['getChild'](0x0);return _0x225a33['is']('element','paragraph')&&_0x225a33['isEmpty'];}function He(_0x13325d,_0x576e6c={},_0x51416f){for(const {isAnchor:_0x163741,cellHeight:_0x8a9879,cellWidth:_0x1dfbfb}of _0x51416f['createTableWalker'](_0x13325d,{'includeAllSlots':!0x0,..._0x576e6c}))if(!_0x163741||0x1!=_0x8a9879||0x1!=_0x1dfbfb)return!0x1;return!0x0;}class Tt extends _0x1bca86{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4980eb=this['editor']['plugins']['get']('TrackChangesEditing');_0x4980eb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4980eb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4980eb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4980eb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4980eb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4980eb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x24da95,_0x1e7d5e){const _0x16761f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e50d0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4efdc6=_0x1e7d5e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x336ff4=_0x5e50d0['getColumnGroupElement'](_0x4efdc6);let _0x49051a=_0x336ff4?_0x5e50d0['getTableColumnsWidths'](_0x336ff4):null,_0x3199b5=_0x4efdc6['getAttribute']('tableWidth')||null;const _0x422763=_0x1e7d5e['tableWidth']||_0x3199b5,_0x388380=_0x1e7d5e['columnWidths']||_0x49051a,_0x54b26a=this['editor']['plugins']['get']('Users')['me'];for(const _0x5a219a of _0x16761f['getSuggestions']()){const _0x31f0b5=_0x5a219a['getContainedElement']();if('resizeTable'===_0x5a219a['subType']&&_0x31f0b5===_0x4efdc6){_0x5a219a['author']!==_0x54b26a&&_0x5a219a['discard']();const _0x33c8c6=_0x5a219a['data']['commandParams'];_0x3199b5=_0x33c8c6[0x0]['tableWidth'],_0x49051a=_0x33c8c6[0x0]['columnWidths'];break;}}_0x24da95({'table':_0x4efdc6,'tableWidth':_0x422763,'columnWidths':_0x388380}),_0x16761f['markBlockFormat'](_0x4efdc6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3199b5,'columnWidths':_0x49051a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x58ade4){if('formatBlock'!=_0x58ade4['type']&&'formatInline'!=_0x58ade4['type'])return;const {data:_0x3eea26}=_0x58ade4;if(_0x3eea26&&'resizeTable'===_0x3eea26['formatGroupId']){const _0x1f3623='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1f3623)};}}}class Ot extends _0x1bca86{['afterInit'](){const _0x10429b=this['editor'];_0x10429b['plugins']['has']('Template')&&_0x10429b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class xt extends _0x1bca86{['afterInit'](){const _0x2355e0=this['editor'];if(!_0x2355e0['commands']['get']('insertTableOfContents'))return;_0x2355e0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x281a9e=_0x2355e0['plugins']['get']('TrackChangesEditing'),_0x3830d1=_0x2355e0['locale'];_0x281a9e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x657cc9=>o(_0x3830d1,'ELEMENT_TABLE_OF_CONTENTS',_0x657cc9));}}class Et extends _0x1bca86{['afterInit'](){const _0x428598=this['editor'];if(!_0x428598['plugins']['has']('Title'))return;const _0x2d79b9=_0x428598['plugins']['get']('TrackChangesEditing');_0x2d79b9['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x428598['locale'],'ELEMENT_TITLE')),_0x428598['model']['document']['registerPostFixer'](_0x209696=>{let _0x145f5d=!0x1;const _0x21e990=Array['from'](_0x428598['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x303d3a,data:_0x1bb21a}of _0x21e990){const {group:_0x188197}=_0x2d79b9['_splitMarkerName'](_0x303d3a);if('suggestion'!==_0x188197||!_0x1bb21a['newRange'])continue;const _0x21e92f=_0x1bb21a['newRange'],_0x39dfab=_0x21e92f['end']['nodeBefore'];if(!_0x39dfab||!_0x39dfab['is']('element','title-content'))continue;if(!_0x21e92f['start']['isTouching'](_0x21e92f['end']))continue;const _0x22ae73=_0x428598['model']['schema']['getNearestSelectionRange'](_0x21e92f['end'],'forward');if(_0x22ae73&&_0x22ae73['isCollapsed']){const _0x570a30=_0x209696['createRange'](_0x21e92f['start'],_0x22ae73['start']);_0x570a30['isEqual'](_0x21e92f)||(_0x209696['updateMarker'](_0x303d3a,{'range':_0x570a30}),_0x145f5d=!0x0);}_0x145f5d||(_0x209696['removeMarker'](_0x303d3a),_0x145f5d=!0x0);}return _0x145f5d;});}}class Rt extends _0x1bca86{['afterInit'](){const _0xb0687b=this['editor'],_0x2e4d91=_0xb0687b['plugins']['get']('TrackChangesEditing');_0xb0687b['plugins']['has']('Uploadcare')&&(_0x2e4d91['enableCommand']('uploadcare'),_0xb0687b['plugins']['has']('UploadcareImageEdit')&&(_0x2e4d91['enableCommand']('uploadcareImageEdit'),_0x2e4d91['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2e4d91['registerBlockAttribute']('uploadcareImageId'),_0x2e4d91['descriptionFactory']['registerDescriptionCallback'](_0xd1f184=>{if('attribute'!=_0xd1f184['type'])return;const {data:_0xe60c55}=_0xd1f184;return _0xe60c55&&'uploadcareImageId'==_0xe60c55['key']?{'type':'format','content':''}:void 0x0;})));}}class Ut extends _0x1bca86{['afterInit'](){const _0x111e6a=this['editor'],_0x1aa347=_0x111e6a['plugins']['get']('TrackChangesEditing');_0x111e6a['plugins']['has']('UndoEditing')&&(_0x1aa347['enableCommand']('undo'),_0x1aa347['enableCommand']('redo'));}}class Vt extends _0x1bca86{static get['requires'](){return[$t];}['afterInit'](){const _0xbe2d42=this['editor'];if(!_0xbe2d42['plugins']['has']('TableCaptionEditing'))return;_0xbe2d42['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ft extends _0x1bca86{['tableProperties'];['tableCellProperties'];constructor(_0x21070e){super(_0x21070e),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 _0x330516=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x51dcb0 of this['tableProperties'])_0x330516['enableCommand'](_0x51dcb0,(_0x3db702,_0x116815)=>{const _0x557d24=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x51dcb0,[_0x557d24],this['tableProperties'],'tableProperties',_0x3db702,_0x116815);});_0x330516['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x330516['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x330516['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3a258a,_0xf3bbc0)=>this['handleDiscardAction'](this['tableProperties'],_0x3a258a,_0xf3bbc0)),_0x330516['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x206099 of this['tableCellProperties'])_0x330516['enableCommand'](_0x206099,(_0x47a33a,_0x21f95e)=>{const _0x183086=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x206099,_0x183086,this['tableCellProperties'],'tableCellProperties',_0x47a33a,_0x21f95e);});_0x330516['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x330516['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x330516['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x477dd1,_0x40d5e3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x477dd1,_0x40d5e3)),_0x330516['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x330516['descriptionFactory']['registerDescriptionCallback'](_0x1c2b1d=>this['handleSuggestionDescription'](_0x1c2b1d)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5e32ea,_0xac98a2,_0x454771,_0x2aad9d,_0x2efb0f,_0x581f61){const _0x2a6c72=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x581f61['batch'],()=>{for(const _0x9c82bf of _0xac98a2){if(this['_getSuggestion'](_0x9c82bf,_0x2aad9d))_0x2efb0f(_0x581f61);else{const _0x58cd69={};for(const _0x54c5cf of _0x454771){const _0x4747e3=_0x9c82bf['getAttribute'](_0x54c5cf);void 0x0!==_0x4747e3&&(_0x58cd69[_0x54c5cf]=_0x4747e3);}_0x2efb0f(_0x581f61),_0x2a6c72['markBlockFormat'](_0x9c82bf,{'commandParams':[_0x58cd69]},[],_0x2aad9d);}}});}['handleDiscardAction'](_0x3aaee4,_0x1dec0b,_0x2eeda4){const _0x3cea6a=_0x1dec0b[0x0]['start']['nodeAfter'],_0x1a94be=_0x2eeda4['commandParams'][0x0];this['editor']['model']['change'](_0x23cb27=>{for(const _0x106f33 of _0x3aaee4)void 0x0!==_0x1a94be[_0x106f33]?_0x23cb27['setAttribute'](_0x106f33,_0x1a94be[_0x106f33],_0x3cea6a):_0x23cb27['removeAttribute'](_0x106f33,_0x3cea6a);});}['handleSuggestionDescription'](_0x1966b0){if(_0x1966b0['data'])switch(_0x1966b0['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x181530,_0x224479){const _0x1c09b5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1e6b87 of _0x1c09b5['getSuggestions']({'skipNotAttached':!0x0})){const _0xae767e=_0x1e6b87['getContainedElement']();if(_0x1e6b87['subType']===_0x224479&&_0xae767e===_0x181530)return _0x1e6b87;}return null;}['_registerTablePropertiesAttributes'](){const _0xbc966a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49d63c=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x42fbcd of _0x49d63c){const _0x35a3b2=_0x42fbcd['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xbc966a['registerBlockAttribute'](_0x42fbcd),_0xbc966a['descriptionFactory']['registerAttributeLabel'](_0x42fbcd,o(this['editor']['locale'],'FORMAT_'+_0x35a3b2));}}}class Pt extends _0x1bca86{['afterInit'](){const _0x50a856=this['editor'];if(!_0x50a856['plugins']['has']('LineHeight'))return;const _0x174488=_0x50a856['plugins']['get']('TrackChangesEditing'),_0x1f4680=_0x50a856['locale'];_0x174488['enableDefaultAttributesIntegration']('lineHeight'),_0x174488['registerBlockAttribute']('lineHeight'),_0x174488['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1f4680,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x1bca86{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x52e77f,_0x453176,_0x56191a,V,F,G,L,J,H,K,W,q,z,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,ct,ft,ht,gt,dt,mt,bt,lt,Q,Pt,X,pt,kt,wt,yt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Vt,Bt,Tt,xt,Ft,Ot,Et,Rt,Ut];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14f295){super(_0x14f295),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2c20d3,_0x6d3fbd,_0x5d6f38,_0x4f769b)=>{this['_model']['change'](()=>{for(const _0x32e69a of[..._0x4f769b,..._0x5d6f38])this['_model']['markers']['has'](_0x32e69a)&&_0x14f295['editing']['reconvertMarker'](_0x32e69a);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Lt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x14f295['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x14f295['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x14f295['config']['get']('trackChanges.trackFormatChanges'),_0x14f295['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x14f295['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x14f295,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xf89b18=this['editor'],_0x1b5d50=(_0x369288,_0x4e9827)=>{if('attribute'!=_0x369288)return'ck-suggestion-marker-'+_0x369288;const _0x42a867=_0x4e9827['split']('|')[0x0];return this['_isBlockAttribute'](_0x42a867)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xf89b18['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5879aa=>{const {id:_0x332787,authorId:_0x30eeea,type:_0x11f60c,subType:_0x55f45f}=this['_splitMarkerName'](_0x5879aa['markerName']),_0x430e6b=['ck-suggestion-marker',_0x1b5d50(_0x11f60c,_0x55f45f)];let _0x5a85c1=0xbb8;return this['activeMarkers']['includes'](_0x5879aa['markerName'])&&(_0x430e6b['push']('ck-suggestion-marker--active'),_0x5a85c1=0xbc2),'deletion'==_0x11f60c&&(_0x5a85c1+=0x5),{'classes':_0x430e6b,'attributes':{'data-suggestion':_0x332787,'data-author-id':_0x30eeea},'priority':_0x5a85c1};}}),_0xf89b18['conversion']['for']('dataDowncast')['add'](_0x3c660b=>{_0x3c660b['on']('addMarker:suggestion',(_0x19711f,_0xc58395,_0x4dd00c)=>{if(!_0x4dd00c['options']['showSuggestionHighlights'])return;const _0x36ea13=_0xc58395['item'];if(!_0x36ea13)return;const _0x103044=_0x4dd00c['mapper']['toViewElement'](_0x36ea13);_0xf89b18['model']['schema']['isObject'](_0x36ea13)&&_0x103044&&!_0x103044['getCustomProperty']('widget')&&_0x103044['is']('containerElement')&&_0x4cd134(_0x103044,_0x4dd00c['writer']);},{'priority':'high'});}),_0xf89b18['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4b9c22,_0x3cf4bf)=>{if(!_0x3cf4bf['options']['showSuggestionHighlights'])return null;const {id:_0x40b750,authorId:_0x2c08bb,type:_0x3fc705,subType:_0x58802a}=this['_splitMarkerName'](_0x4b9c22['markerName']);return{'classes':['ck-suggestion-marker',_0x1b5d50(_0x3fc705,_0x58802a)],'priority':0xbb8,'attributes':{'data-suggestion':_0x40b750,'data-author-id':_0x2c08bb}};}});const _0x248a4b=({showActiveMarkers:_0x446410=!0x0,isAttributeSuggestion:_0x563008=!0x1}={})=>(_0x15526b,_0x29c557,_0x5e4032)=>{if(!_0x29c557['item'])return;const {id:_0xeca032,authorId:_0x2d25ca,subType:_0x28c71c}=this['_splitMarkerName'](_0x29c557['markerName']);if(_0x563008){const _0x13bcfe=se(_0x28c71c);if(!this['_isBlockAttribute'](_0x13bcfe))return;}if(_0x29c557['item']['is']('selection'))return void _0x5e4032['consumable']['consume'](_0x29c557['item'],_0x15526b['name']);const _0x4a9b22=_0x5e4032['mapper']['toViewElement'](_0x29c557['item']);if(_0x29c557['item']['is']('element')&&_0xf89b18['model']['schema']['isBlock'](_0x29c557['item'])&&!_0x4a9b22['getCustomProperty']('addHighlight')){_0x5e4032['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4a9b22),_0x5e4032['writer']['setAttribute']('data-suggestion',_0xeca032,_0x4a9b22),_0x5e4032['writer']['setAttribute']('data-author-id',_0x2d25ca,_0x4a9b22),_0x5e4032['mapper']['bindElementToMarker'](_0x4a9b22,_0x29c557['markerName']),_0x446410&&(this['activeMarkers']['includes'](_0x29c557['markerName'])?_0x5e4032['writer']['addClass']('ck-suggestion-marker--active',_0x4a9b22):_0x5e4032['writer']['removeClass']('ck-suggestion-marker--active',_0x4a9b22));for(const _0x451762 of _0xf89b18['model']['createRangeIn'](_0x29c557['item'])['getItems']())_0x5e4032['consumable']['consume'](_0x451762,_0x15526b['name']);_0x5e4032['consumable']['consume'](_0x29c557['item'],_0x15526b['name']);}};_0xf89b18['conversion']['for']('dataDowncast')['add'](_0x203609=>{_0x203609['on']('addMarker:suggestion:formatBlock',(_0x3f5efd,_0x34e32f,_0x194afe)=>{_0x194afe['options']['showSuggestionHighlights']&&_0x248a4b({'showActiveMarkers':!0x1})(_0x3f5efd,_0x34e32f,_0x194afe);},{'priority':'highest'});}),_0xf89b18['conversion']['for']('dataDowncast')['add'](_0x8b6ee7=>{_0x8b6ee7['on']('addMarker:suggestion:attribute',(_0x12cba7,_0x5809ae,_0x36c206)=>{_0x36c206['options']['showSuggestionHighlights']&&_0x248a4b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x12cba7,_0x5809ae,_0x36c206);},{'priority':'highest'});}),_0xf89b18['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x503e25,_0xe1b856)=>{if(_0xe1b856['options']['showSuggestionHighlights']){const {id:_0x1f5e9e,authorId:_0x4c6d46}=this['_splitMarkerName'](_0x503e25);return _0x503e25['includes'](':split')||_0x503e25['includes'](':merge')?{'group':'suggestion','name':_0x503e25['substr'](0xb),'attributes':{'data-suggestion':_0x1f5e9e,'data-author-id':_0x4c6d46}}:null;}return{'group':'suggestion','name':_0x503e25['substr'](0xb)};}}),_0xf89b18['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x45eeaf,{writer:_0x184e8f})=>{let _0x22ae16='suggestion:'+_0x45eeaf['getAttribute']('suggestion-type')+':'+_0x45eeaf['getAttribute']('id');return _0x45eeaf['getAttribute']('marker-count')&&(_0x22ae16+=':'+_0x45eeaf['getAttribute']('marker-count')),_0x184e8f['createElement']('$marker',{'data-name':_0x22ae16});}}),_0xf89b18['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xf89b18['conversion']['for']('editingDowncast')['add'](_0x36e290=>{_0x36e290['on']('addMarker:suggestion:formatBlock',_0x248a4b(),{'priority':'high'});}),_0xf89b18['conversion']['for']('editingDowncast')['add'](_0x3c94c1=>{_0x3c94c1['on']('addMarker:suggestion:attribute',_0x248a4b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xf89b18['conversion']['for']('editingDowncast')['add'](_0x5aa321=>{_0x5aa321['on']('removeMarker:suggestion:formatBlock',(_0x5b8b52,_0x2fe20a,_0x5b0cf9)=>{const _0x1688c3=_0x5b0cf9['mapper']['markerNameToElements'](_0x2fe20a['markerName']);if(_0x1688c3){for(const _0x3be5f0 of _0x1688c3)_0x3be5f0['getCustomProperty']('addHighlight')||(_0x5b0cf9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3be5f0),_0x5b0cf9['writer']['removeAttribute']('data-suggestion',_0x3be5f0),_0x5b0cf9['writer']['removeAttribute']('data-author-id',_0x3be5f0),_0x5b0cf9['mapper']['unbindElementFromMarkerName'](_0x3be5f0,_0x2fe20a['markerName']));}},{'priority':'high'});}),_0xf89b18['conversion']['for']('editingDowncast')['add'](_0x4626a5=>{_0x4626a5['on']('removeMarker:suggestion:attribute',(_0x22dbac,_0x34f600,_0x465deb)=>{const _0x196340=_0x465deb['mapper']['markerNameToElements'](_0x34f600['markerName']);if(!_0x196340)return;const {subType:_0x4e76d0}=this['_splitMarkerName'](_0x34f600['markerName']),_0x2bb1b2=se(_0x4e76d0);if(this['_isBlockAttribute'](_0x2bb1b2)){for(const _0x3b90e5 of _0x196340)_0x3b90e5['getCustomProperty']('addHighlight')||(_0x465deb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3b90e5),_0x465deb['writer']['removeAttribute']('data-suggestion',_0x3b90e5),_0x465deb['writer']['removeAttribute']('data-author-id',_0x3b90e5),_0x465deb['mapper']['unbindElementFromMarkerName'](_0x3b90e5,_0x34f600['markerName']));}},{'priority':'high'});}),_0xf89b18['model']['document']['registerPostFixer'](_0x3d2257=>{let _0x5ac83e=!0x1;const _0x557852=Array['from'](_0xf89b18['model']['document']['differ']['getChangedMarkers']()),_0x34fd7d=new Set();for(const {name:_0x15e00b,data:_0x3e0184}of _0x557852){const {group:_0x44df49,type:_0x1e7583,subType:_0x546e48,id:_0x23d7a2}=this['_splitMarkerName'](_0x15e00b);if('suggestion'!==_0x44df49)continue;const _0x165135=_0x546e48?'suggestion:'+_0x1e7583+':'+_0x546e48+':'+_0x23d7a2:'suggestion:'+_0x1e7583+':'+_0x23d7a2,_0x1ce3e6=_0xf89b18['model']['markers']['getMarkersGroup'](_0x165135),_0x21c5a9=_0xf89b18['model']['markers']['get'](_0x15e00b),_0x52c24e=this['_suggestions']['get'](_0x23d7a2);if(null!=_0x3e0184['newRange']){'formatInline'==_0x1e7583&&(_0x5ac83e=_0x5ac83e||Ht(_0x3e0184['newRange'],_0x15e00b,_0x3d2257,_0xf89b18['model']['schema']));const _0x8bc20f='attribute'==_0x1e7583&&this['_isBlockAttribute'](_0x546e48['split']('|')[0x0]),_0x316cc1='attribute'==_0x1e7583&&this['_isInlineAttribute'](_0x546e48['split']('|')[0x0]);if(_0x3e0184['newRange']['isCollapsed']||'$graveyard'==_0x3e0184['newRange']['root']['rootName']||'formatBlock'==_0x1e7583&&!qt(_0x3e0184['newRange'])||_0x8bc20f&&!qt(_0x3e0184['newRange'])||_0x316cc1&&zt(_0x3e0184['newRange'])||'deletion'==_0x1e7583&&zt(_0x3e0184['newRange'])||_0x21c5a9&&Qt(_0x21c5a9,_0x1ce3e6))_0x3d2257['removeMarker'](_0x15e00b),_0x5ac83e=!0x0;else{if(!_0x52c24e||!_0x52c24e['isInContent'])continue;if(_0x3e0184['newRange']&&_0x3e0184['oldRange']&&_0x3e0184['newRange']['isEqual'](_0x3e0184['oldRange']))continue;_0x34fd7d['add'](_0x52c24e);}}}return _0x34fd7d['size']>0x0&&(_0x5ac83e=!!this['_joinWithAdjacentSuggestions'](_0x34fd7d)||_0x5ac83e),_0x5ac83e;}),_0xf89b18['model']['document']['registerPostFixer'](_0x1740ac=>{let _0x436ba8=!0x1;for(const _0x2c8c1a of _0xf89b18['model']['document']['differ']['getChanges']())if('insert'==_0x2c8c1a['type'])for(const _0x279415 of this['_suggestions']['values']()){if(_0x279415['isMultiRange']||!_0x279415['isInContent'])continue;const _0x28da6a='formatBlock'==_0x279415['type'],_0x386bc7=this['_getAttributeKey'](_0x279415),_0x47d440=_0x386bc7&&this['_isBlockAttribute'](_0x386bc7);if(!_0x28da6a&&!_0x47d440)continue;const _0x44f131=_0x279415['getFirstRange']();if(_0x44f131['start']['parent']!=_0x44f131['end']['parent']&&!_0x44f131['end']['isAtEnd']){const _0x42d308=_0xf89b18['model']['createPositionAt'](_0x44f131['start']['nodeAfter'],'end'),_0x15553e=_0xf89b18['model']['createRange'](_0x44f131['start'],_0x42d308);_0x1740ac['updateMarker'](_0x279415['getFirstMarker'](),{'range':_0x15553e}),_0x436ba8=!0x0;}}return _0x436ba8;}),_0xf89b18['model']['document']['registerPostFixer'](_0x46c754=>this['_processAttributeChanges'](_0x46c754)),_0xf89b18['model']['document']['registerPostFixer'](_0x1ee9ed=>!_0x1ee9ed['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1ee9ed)),_0xf89b18['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xf89b18['model']['document']['on']('change:data',(_0x15cb6a,_0x27751e)=>{if(!_0x27751e['isLocal']||_0x27751e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3f1d41=_0xf89b18['model']['document']['differ']['getChanges']();if(0x0==_0x3f1d41['length'])return;const _0x462ce0=[],_0x46c7da=_0x3f1d41['filter'](_0x254015=>'attribute'==_0x254015['type']),_0x5cff3b=_0x3f1d41['filter'](_0x4c8905=>'insert'==_0x4c8905['type']&&'$text'!=_0x4c8905['name']);for(const _0x46f216 of _0x46c7da)this['_isRegisteredAttribute'](_0x46f216['attributeKey'])&&_0x462ce0['push']({'key':_0x46f216['attributeKey'],'newValue':_0x46f216['attributeNewValue'],'oldValue':_0x46f216['attributeOldValue'],'range':Yt(_0x46f216['range'],_0xf89b18['model'])});for(const _0x26758f of _0x5cff3b){if('rename'!=_0x26758f['action']&&'refresh'!=_0x26758f['action'])continue;const _0x3bd816=Zt(_0x26758f['position']['nodeAfter'],_0xf89b18['model']),_0x4977f9=_0x26758f['before'];'rename'==_0x26758f['action']&&_0x462ce0['push']({'key':m,'newValue':_0x26758f['name'],'oldValue':_0x4977f9['name'],'range':_0x3bd816});for(const [_0x32420e,_0x297d1d]of _0x4977f9['attributes']){if(!this['_isRegisteredAttribute'](_0x32420e))continue;const _0x2f5088=_0x26758f['attributes']['get'](_0x32420e);_0x297d1d!==_0x2f5088&&_0x462ce0['push']({'key':_0x32420e,'newValue':_0x2f5088,'oldValue':_0x297d1d,'range':_0x3bd816});}for(const [_0x52219b,_0x1a3950]of _0x26758f['attributes'])this['_isRegisteredAttribute'](_0x52219b)&&(_0x4977f9['attributes']['has'](_0x52219b)||_0x462ce0['push']({'key':_0x52219b,'newValue':_0x1a3950,'oldValue':null,'range':_0x3bd816}));}0x0!=_0x462ce0['length']&&_0xf89b18['model']['enqueueChange'](_0x27751e,_0x154596=>{const _0x17f150=_0x573f80();for(const {range:_0x559da8,key:_0x414a12,oldValue:_0x4a623d,newValue:_0x202817}of _0x462ce0)this['markAttributeChange'](_0x559da8,_0x414a12,_0x4a623d,_0x202817,{'groupId':_0x17f150});this['_reduceExistingSuggestions'](_0x154596,_0x462ce0);});},{'priority':'lowest'}),_0xf89b18['model']['markers']['on']('update:suggestion',(_0x42275e,_0x375fb7,_0x2d92cd)=>{if(null==_0x2d92cd){const {id:_0x467e0e}=this['_splitMarkerName'](_0x375fb7['name']),_0x17b4b3=this['_suggestions']['get'](_0x467e0e);_0x17b4b3&&_0x17b4b3['addMarkerName'](_0x375fb7['name']);}}),_0xf89b18['model']['document']['on']('change:data',()=>{const _0x7198b2=Array['from'](_0xf89b18['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3ea373=>'suggestion'===this['_splitMarkerName'](_0x3ea373['name'])['group']);if(0x0===_0x7198b2['length'])return;_0x7198b2['sort']((_0x5d1784,_0x2e8500)=>{const _0x427acf=_0x5d1784['data']['oldRange'],_0xe74645=_0x2e8500['data']['oldRange'];return null===_0x427acf&&null===_0xe74645?0x0:null===_0x427acf&&null!==_0xe74645?-0x1:null!==_0x427acf&&null===_0xe74645?0x1:_0x427acf['start']['isBefore'](_0xe74645['start'])?-0x1:0x1;});const _0x917e0f=new Set(),_0x7065a6=new Set();for(const {name:_0x1a9a30,data:_0x49f26c}of _0x7198b2){const {id:_0x1dcba3}=this['_splitMarkerName'](_0x1a9a30);if(null===_0x49f26c['oldRange']){const _0x19d183=this['_handleNewSuggestionMarker'](_0x1a9a30);_0x7065a6['add'](_0x19d183);}else{const _0x5881c8=this['_suggestions']['get'](_0x1dcba3);null!==_0x49f26c['newRange']||_0x5881c8['isInContent']?(_0x917e0f['add'](_0x5881c8['head']),_0x7065a6['add'](_0x5881c8)):this['_removeSuggestion'](_0x5881c8);}}_0x7065a6['size']>0x0&&this['_refreshSuggestionsChain'](_0x7065a6);for(const _0x4c9b3a of _0x917e0f)this['fire']('suggestionChanged',_0x4c9b3a);}),_0xf89b18['model']['on']('applyOperation',(_0x2ce0ca,_0x318f49)=>{const _0x37b6e0=_0x318f49[0x0];if(!this['_suggestions']['size'])return;if(!_0x37b6e0['isDocumentOperation'])return;if(_0x37b6e0['batch']['isUndo']||!_0x37b6e0['batch']['isLocal'])return;let _0x517167,_0x273f74;switch(_0x37b6e0['type']){case'insert':_0x517167=_0xf89b18['model']['createPositionAt'](_0x37b6e0['position']),_0x273f74=_0x517167['getShiftedBy'](_0x37b6e0['howMany']);break;case'split':_0x517167=_0xf89b18['model']['createPositionAt'](_0x37b6e0['splitPosition']),_0x273f74=_0xf89b18['model']['createPositionAt'](_0x37b6e0['moveTargetPosition']);break;case'move':_0x517167=_0xf89b18['model']['createPositionAt'](_0x37b6e0['targetPosition']),_0x273f74=_0x517167['getShiftedBy'](_0x37b6e0['howMany']);break;default:return;}const _0x147285=_0xf89b18['model']['createRange'](_0x517167,_0x273f74);_0xf89b18['model']['change'](()=>{for(const {suggestion:_0x1d593e,meta:_0x4d7d9c}of this['_findSuggestions'](_0x147285)){if(_0x1d593e['isMultiRange'])continue;if('formatInline'==_0x1d593e['type'])continue;const _0x411692=this['_getAttributeKey'](_0x1d593e);if(_0x411692&&this['_isBlockAttribute'](_0x411692)&&'split'!=_0x37b6e0['type'])continue;const _0x3a50d4=_0x1d593e['data']&&_0x1d593e['data']['multipleBlocks'];('formatBlock'!=_0x1d593e['type']||'split'==_0x37b6e0['type']&&!_0x3a50d4)&&(_0x4d7d9c['containsRangeInObject']||'insertion'==_0x1d593e['type']&&_0x4d7d9c['isOwn']||_0x1d593e['getFirstRange']()['containsRange'](_0x147285)&&this['_breakSuggestionMarker'](_0x1d593e,_0x517167,_0x273f74));}});},{'priority':'lowest'}),_0xf89b18['model']['on']('deleteContent',(_0x21e644,_0x5aba5d)=>{const _0x171b3b=_0x5aba5d[0x0],_0x4ea862=_0x5aba5d[0x1];if(_0x4ea862&&_0x4ea862['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x171b3b['isCollapsed'])return;const _0x4f933b=_0xf89b18['model']['schema'],{start:_0x4c1875,end:_0x20d715}=_0x171b3b['getFirstRange'](),_0xb4cf24=_0x4c1875['nodeAfter']&&_0x4f933b['isLimit'](_0x4c1875['nodeAfter'])?null:_0x4f933b['getNearestSelectionRange'](_0x4c1875,'forward'),_0x2b828f=_0x20d715['nodeBefore']&&_0x4f933b['isLimit'](_0x20d715['nodeBefore'])?null:_0x4f933b['getNearestSelectionRange'](_0x20d715,'backward'),_0x32a627=_0xf89b18['model']['createRange'](_0xb4cf24?_0xb4cf24['start']:_0x4c1875,_0x2b828f?_0x2b828f['end']:_0x20d715);_0xf89b18['model']['change'](_0x465b0a=>{this['markDeletion'](_0x32a627);const _0x599056=_0xf89b18['model']['schema']['getNearestSelectionRange'](_0x32a627['start']);_0x171b3b['is']('documentSelection')?_0x465b0a['setSelection'](_0x599056):_0x171b3b['setTo'](_0x599056);}),_0x21e644['stop']();},{'priority':_0x163a1e['normal']+0xa}),_0xf89b18['model']['on']('insertContent',(_0x15cc43,_0x201228)=>{const _0x99a7f4=_0x201228[_0x201228['length']-0x1];_0x99a7f4&&_0x99a7f4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xf89b18['model']['change'](()=>{let _0x1119d2=_0xf89b18['model']['insertContent'](_0x201228[0x0],_0x201228[0x1],_0x201228[0x2],{'forceDefaultExecution':!0x0});if(!_0x1119d2)return;_0x15cc43['return']=_0x1119d2['clone']();const _0x44e197=_0x1119d2['end']['nodeBefore'],_0x5ab33e=_0xf89b18['model']['schema'];_0x44e197&&_0x5ab33e['isBlock'](_0x44e197)&&!_0x5ab33e['isObject'](_0x44e197)&&(_0x1119d2=_0xf89b18['model']['createRange'](_0x1119d2['start'],_0xf89b18['model']['createPositionAt'](_0x44e197,'end'))),this['markInsertion'](_0x1119d2);}),_0x15cc43['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x17a599=new T(_0xf89b18,this['_suggestions']);_0xf89b18['commands']['add']('acceptSuggestion',_0x17a599),this['enableCommand']('acceptSuggestion');const _0x550b71=new O(_0xf89b18,this['_suggestions']);_0xf89b18['commands']['add']('discardSuggestion',_0x550b71),this['enableCommand']('discardSuggestion'),_0xf89b18['commands']['add']('acceptAllSuggestions',new x(_0xf89b18,_0x17a599,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xf89b18['commands']['add']('discardAllSuggestions',new x(_0xf89b18,_0x550b71,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xf89b18['commands']['add']('acceptSelectedSuggestions',new E(_0xf89b18,_0x17a599,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xf89b18['commands']['add']('discardSelectedSuggestions',new E(_0xf89b18,_0x550b71,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2805c4=_0xf89b18['plugins']['get']('CommentsRepository');this['listenTo'](_0x2805c4,'addComment',(_0x5bfe31,{threadId:_0x171593})=>{const _0x133bbc=this['_suggestions']['get'](_0x171593);_0x133bbc&&_0x133bbc['commentThread']&&0x1===_0x133bbc['commentThread']['length']&&this['_updateSuggestionData'](_0x171593,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2805c4,'removeComment',(_0x51655c,{threadId:_0xb0ded8})=>{const _0x471ed7=this['_suggestions']['get'](_0xb0ded8);_0x471ed7&&_0x471ed7['commentThread']&&!_0x471ed7['commentThread']['length']&&this['_updateSuggestionData'](_0xb0ded8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1cc5b4){const _0x154b6f=_0xf9948a([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x2cd9b5=0x6b0f5e6f,_0x53b3f6=0x6b082a27^_0x2cd9b5,_0x98fb64=window[_0xf9948a([0x44,0x61,0x74,0x65])][_0xf9948a([0x6e,0x6f,0x77])](),_0x2210e4=_0x1cc5b4[_0xf9948a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ccd2c=new window[(_0xf9948a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21a798=>{_0x2210e4[_0xf9948a([0x6f,0x6e,0x63,0x65])](_0xf9948a([0x72,0x65,0x61,0x64,0x79]),_0x21a798);}),_0x47ed81={[_0xf9948a([0x6b,0x74,0x79])]:_0xf9948a([0x45,0x43]),[_0xf9948a([0x75,0x73,0x65])]:_0xf9948a([0x73,0x69,0x67]),[_0xf9948a([0x63,0x72,0x76])]:_0xf9948a([0x50,0x2d,0x32,0x35,0x36]),[_0xf9948a([0x78])]:_0xf9948a([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]),[_0xf9948a([0x79])]:_0xf9948a([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]),[_0xf9948a([0x61,0x6c,0x67])]:_0xf9948a([0x45,0x53,0x32,0x35,0x36])},_0x271a5a=_0x2210e4[_0xf9948a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf9948a([0x67,0x65,0x74])](_0xf9948a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7a7f9(){let _0x4c7434,_0x5b1a8a=null,_0x434584=null;try{if(_0x271a5a==_0xf9948a([0x47,0x50,0x4c]))return _0xf9948a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c7434=_0x3e788a(),!_0x4c7434)return _0xf9948a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c7434[_0xf9948a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x434584=_0x5c4c65(_0x4c7434[_0xf9948a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c7434[_0xf9948a([0x6a,0x74,0x69])])),await _0xc35aaa()?_0x593d7b()?_0x5a0b01()?_0xf9948a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x15120e()?(_0x4c7434[_0xf9948a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf9948a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b1a8a=_0x5a8a01(_0xf9948a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c7434[_0xf9948a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf9948a([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b1a8a=_0x5a8a01(_0xf9948a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x51a9f6()):_0xf9948a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf9948a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf9948a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf9948a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a0b01(){const _0x4f3688=[_0xf9948a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf9948a([0x74,0x72,0x69,0x61,0x6c])][_0xf9948a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c7434[_0xf9948a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x98fb64/0x3e8:0xe10*_0x53b3f6;return _0x4c7434[_0xf9948a([0x65,0x78,0x70])]<_0x4f3688;}function _0x593d7b(){const _0x4cc34d=_0x4c7434[_0xf9948a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4cc34d)return!0x1;if(_0x4cc34d[_0xf9948a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf9948a([0x2a])))return!0x0;if(_0x4cc34d[_0xf9948a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf9948a([0x54,0x43])))return!0x0;if(_0x4cc34d[_0xf9948a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf9948a([0x52,0x54,0x43]))){if(_0x3c5468())return!0x0;if(_0x397f07()||_0x4c2f06())return!0x0;}return!0x1;}function _0x15120e(){const _0x392da8=_0x4c7434[_0xf9948a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x392da8||0x0==_0x392da8[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e85bc}=new URL(window[_0xf9948a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x392da8[_0xf9948a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e85bc))return!0x0;const _0x1af52f=_0x2e85bc[_0xf9948a([0x73,0x70,0x6c,0x69,0x74])](_0xf9948a([0x2e]));return _0x392da8[_0xf9948a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x336605=>_0x336605[_0xf9948a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf9948a([0x2a])))[_0xf9948a([0x6d,0x61,0x70])](_0x278ac1=>_0x278ac1[_0xf9948a([0x73,0x70,0x6c,0x69,0x74])](_0xf9948a([0x2e])))[_0xf9948a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56d234=>_0x56d234[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1af52f[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf9948a([0x6d,0x61,0x70])](_0x4707ab=>Array(_0x1af52f[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4707ab[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf9948a([0x66,0x69,0x6c,0x6c])](_0x4707ab[0x0]===_0xf9948a([0x2a])?_0xf9948a([0x2a]):'')[_0xf9948a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4707ab))[_0xf9948a([0x73,0x6f,0x6d,0x65])](_0x3fd42=>_0x1af52f[_0xf9948a([0x65,0x76,0x65,0x72,0x79])]((_0x1d8b55,_0x3540b0)=>_0x3fd42[_0x3540b0]===_0x1d8b55||_0x3fd42[_0x3540b0]===_0xf9948a([0x2a])));}function _0x51a9f6(){return _0x5b1a8a&&_0x434584?new window[(_0xf9948a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1812d4,_0x34a6bb)=>{_0x5b1a8a[_0xf9948a([0x74,0x68,0x65,0x6e])](_0x1812d4,_0x34a6bb),_0x434584[_0xf9948a([0x74,0x68,0x65,0x6e])](_0x4d0611=>{_0x4d0611!=_0xf9948a([0x56,0x61,0x6c,0x69,0x64])&&_0x1812d4(_0x4d0611);},_0x34a6bb);}):_0x5b1a8a||_0x434584||_0xf9948a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c4c65(_0xf0c9b4,_0x47776c){return new window[(_0xf9948a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x529552=>{if(_0x36bc60())return _0x529552(_0xf9948a([0x56,0x61,0x6c,0x69,0x64]));_0x29b2b4(),_0x2210e4[_0xf9948a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf9948a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2148ce=!0x1;const _0x198940=_0x573f80();function _0x6314b5(_0x1e272f){return!!_0x1e272f&&(typeof _0x1e272f===_0xf9948a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e272f===_0xf9948a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e272f[_0xf9948a([0x74,0x68,0x65,0x6e])]===_0xf9948a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e272f[_0xf9948a([0x63,0x61,0x74,0x63,0x68])]===_0xf9948a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2abcc1(_0x2a7a80){_0x521142(_0x2a7a80)[_0xf9948a([0x74,0x68,0x65,0x6e])](_0x35593b=>{if(!_0x35593b||_0x35593b[_0xf9948a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf9948a([0x6f,0x6b]))return _0xf9948a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb1bfe1(_0xdd3c5d(_0x198940+_0x47776c))!=_0x35593b[_0xf9948a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf9948a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf9948a([0x56,0x61,0x6c,0x69,0x64]);})[_0xf9948a([0x74,0x68,0x65,0x6e])](_0x63841f=>(_0x4c5f86(),_0x63841f),()=>{const _0x2c74dd=_0x199f87();return null==_0x2c74dd?(_0x4c5f86(),_0xf9948a([0x56,0x61,0x6c,0x69,0x64])):_0xf9948a(_0x98fb64-_0x2c74dd>(0x4f03da6f^_0x2cd9b5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf9948a([0x74,0x68,0x65,0x6e])](_0x529552)[_0xf9948a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x529552(_0xf9948a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x46a6f6=0x6b39b0ef^_0x2cd9b5;function _0x4c5f86(){const _0x53ccaa=_0xf9948a([0x6c,0x6c,0x63,0x74,0x2d])+_0xb1bfe1(_0xdd3c5d(_0xf0c9b4)),_0x2c18bd=_0x545a79(_0xb1bfe1(window[_0xf9948a([0x4d,0x61,0x74,0x68])][_0xf9948a([0x63,0x65,0x69,0x6c])](_0x98fb64/_0x46a6f6)));window[_0xf9948a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf9948a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53ccaa,_0x2c18bd);}function _0x199f87(){const _0x1002bf=_0xf9948a([0x6c,0x6c,0x63,0x74,0x2d])+_0xb1bfe1(_0xdd3c5d(_0xf0c9b4)),_0x5bd45e=window[_0xf9948a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf9948a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1002bf);return _0x5bd45e?window[_0xf9948a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x545a79(_0x5bd45e),0x10)*_0x46a6f6:null;}function _0x521142(_0x52068b){return new window[(_0xf9948a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33227f,_0x17ddf2)=>{_0x52068b[_0xf9948a([0x74,0x68,0x65,0x6e])](_0x33227f,_0x17ddf2),window[_0xf9948a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17ddf2,0x6b0e8aaf^_0x2cd9b5);});}}_0x2210e4[_0xf9948a([0x6f,0x6e])](_0xf9948a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12948e,_0x39f73f)=>{if(_0x39f73f[0x0]!=_0xf0c9b4)return _0x529552(_0xf9948a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39f73f[0x1]={..._0x39f73f[0x1],[_0xf9948a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x198940};},{[_0xf9948a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf9948a([0x68,0x69,0x67,0x68])}),_0x2210e4[_0xf9948a([0x6f,0x6e])](_0xf9948a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4463e3=>{_0x6314b5(_0x4463e3[_0xf9948a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2148ce=!0x0,_0x2abcc1(_0x4463e3[_0xf9948a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf9948a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf9948a([0x6c,0x6f,0x77])}),_0x1ccd2c[_0xf9948a([0x74,0x68,0x65,0x6e])](()=>{_0x2148ce||_0x529552(_0xf9948a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36bc60(){return _0x2210e4[_0xf9948a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf9948a([0x76,0x69,0x65,0x77])][_0xf9948a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf9948a([0x61,0x75,0x74,0x6f]);}function _0x29b2b4(){_0x2210e4[_0xf9948a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf9948a([0x76,0x69,0x65,0x77])][_0xf9948a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf9948a([0x61,0x75,0x74,0x6f]);}}function _0x5a8a01(_0x557c1b){const _0x52bb70=[new window[(_0xf9948a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa20798=>setTimeout(_0xa20798,0x6b0660a3^_0x2cd9b5)),_0x1ccd2c[_0xf9948a([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf9948a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfe328e=>{let _0x4483ed=0x0;_0x2210e4[_0xf9948a([0x6d,0x6f,0x64,0x65,0x6c])][_0xf9948a([0x6f,0x6e])](_0xf9948a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x258497,_0x30b82e)=>{_0x30b82e[0x0][_0xf9948a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4483ed++,_0x4483ed==(0x6b0f5f97^_0x2cd9b5)&&(_0xfe328e(),_0x258497[_0xf9948a([0x6f,0x66,0x66])]());});}))];return window[_0xf9948a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf9948a([0x72,0x61,0x63,0x65])](_0x52bb70)[_0xf9948a([0x74,0x68,0x65,0x6e])](()=>_0x557c1b);}async function _0x4fe607(){await _0x1ccd2c,_0x2210e4[_0xf9948a([0x6d,0x6f,0x64,0x65,0x6c])][_0xf9948a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5562f0,_0x2210e4[_0xf9948a([0x6d,0x6f,0x64,0x65,0x6c])][_0xf9948a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5562f0,_0x2210e4[_0xf9948a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf9948a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c5468(){return _0x1ca480(_0xf9948a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1ca84f(_0xf9948a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xf9948a([0x73,0x74,0x61,0x74,0x65])]==_0xf9948a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x397f07(){return _0x1ca480(_0xf9948a([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 _0x4c2f06(){return _0x1ca480(_0xf9948a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3bd5ef(_0x4ea295){const _0x139d2e=_0x30d464();_0x2210e4[_0x139d2e]=_0xf9948a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ea295,_0x4ea295!=_0xf9948a([0x56,0x61,0x6c,0x69,0x64])&&_0x4fe607();}function _0x30d464(){const _0x4f4d0e=window[_0xf9948a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf9948a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf9948a([0x6e,0x6f,0x77])]())[_0xf9948a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf9948a([0x2e]),'');let _0x5d9d65=_0xf9948a([0x67]);for(let _0x47f887=0x0;_0x47f887<_0x4f4d0e[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47f887+=0x2){let _0x35ae9b=window[_0xf9948a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f4d0e[_0xf9948a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47f887,_0x47f887+0x2));_0x35ae9b>=_0x154b6f[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35ae9b-=_0x154b6f[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d9d65+=_0x154b6f[_0x35ae9b];}return _0x5d9d65;}function _0x3e788a(){const _0xd53d1c=_0x271a5a[_0xf9948a([0x73,0x70,0x6c,0x69,0x74])](_0xf9948a([0x2e]));if(0x3!=_0xd53d1c[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x348c29(_0xd53d1c[0x1]);function _0x348c29(_0x53e367){const _0x48f55a=_0x877a2c(_0x53e367);return _0x48f55a&&_0x36366e()?_0x48f55a:null;function _0x36366e(){const _0x3c8ad5=_0x48f55a[_0xf9948a([0x6a,0x74,0x69])],_0x8e041a=window[_0xf9948a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c8ad5[_0xf9948a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c8ad5[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x130674={..._0x48f55a,[_0xf9948a([0x6a,0x74,0x69])]:_0x3c8ad5[_0xf9948a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c8ad5[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x130674[_0xf9948a([0x76,0x63])],_0xdd3c5d(_0x130674)==_0x8e041a;}}}async function _0xc35aaa(){let _0x4c62c6=!0x0;try{const _0x5bd864=_0x271a5a[_0xf9948a([0x73,0x70,0x6c,0x69,0x74])](_0xf9948a([0x2e])),[_0x422923,_0x33fddf,_0x1b2520]=_0x5bd864;return _0x3ef8fd(_0x422923),await _0x3d2406(_0x422923,_0x33fddf,_0x1b2520),_0x4c62c6;}catch{return!0x1;}function _0x3ef8fd(_0x577055){const _0x15e891=_0x877a2c(_0x577055);_0x15e891&&_0x15e891[_0xf9948a([0x61,0x6c,0x67])]==_0xf9948a([0x45,0x53,0x32,0x35,0x36])||(_0x4c62c6=!0x1);}async function _0x3d2406(_0x2e687b,_0x40498a,_0xe37700){const _0x53d259=window[_0xf9948a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf9948a([0x66,0x72,0x6f,0x6d])](_0xa12e8e(_0xe37700),_0x5c2dee=>_0x5c2dee[_0xf9948a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4639d9=new window[(_0xf9948a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf9948a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e687b+_0xf9948a([0x2e])+_0x40498a),_0x1c9fb3=window[_0xf9948a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf9948a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c9fb3)return;const _0x10a196=await _0x1c9fb3[_0xf9948a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf9948a([0x6a,0x77,0x6b]),_0x47ed81,{[_0xf9948a([0x6e,0x61,0x6d,0x65])]:_0xf9948a([0x45,0x43,0x44,0x53,0x41]),[_0xf9948a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf9948a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf9948a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c9fb3[_0xf9948a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf9948a([0x6e,0x61,0x6d,0x65])]:_0xf9948a([0x45,0x43,0x44,0x53,0x41]),[_0xf9948a([0x68,0x61,0x73,0x68])]:{[_0xf9948a([0x6e,0x61,0x6d,0x65])]:_0xf9948a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10a196,_0x53d259,_0x4639d9)||(_0x4c62c6=!0x1);}}function _0x877a2c(_0x294b9d){return _0x294b9d[_0xf9948a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf9948a([0x65,0x79]))?JSON[_0xf9948a([0x70,0x61,0x72,0x73,0x65])](_0xa12e8e(_0x294b9d)):null;}function _0xa12e8e(_0x1e2364){return window[_0xf9948a([0x61,0x74,0x6f,0x62])](_0x1e2364[_0xf9948a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf9948a([0x2b]))[_0xf9948a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf9948a([0x2f])));}function _0xdd3c5d(_0x23ae6d){let _0x3c5801=0x1505;function _0x55a7fd(_0x16525a){for(let _0xc6cde8=0x0;_0xc6cde8<_0x16525a[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc6cde8++){const _0x441552=_0x16525a[_0xf9948a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc6cde8);_0x3c5801=(_0x3c5801<<0x5)+_0x3c5801+_0x441552,_0x3c5801&=_0x3c5801;}}function _0x59678f(_0xb6644c){Array[_0xf9948a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb6644c)?_0xb6644c[_0xf9948a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59678f):_0xb6644c&&typeof _0xb6644c==_0xf9948a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf9948a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb6644c)[_0xf9948a([0x73,0x6f,0x72,0x74])]()[_0xf9948a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x91d2ec,_0x15afc9])=>{_0x55a7fd(_0x91d2ec),_0x59678f(_0x15afc9);}):_0x55a7fd(window[_0xf9948a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb6644c));}return _0x59678f(_0x23ae6d),_0x3c5801>>>0x0;}function _0xb1bfe1(_0x3042e5){return _0x3042e5[_0xf9948a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf9948a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf9948a([0x30]));}function _0x545a79(_0x201362){return _0x201362[_0xf9948a([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf9948a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf9948a([0x6a,0x6f,0x69,0x6e])]('');}function _0x1ca480(_0x1db5b2){return _0x2210e4[_0xf9948a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf9948a([0x68,0x61,0x73])](_0x1db5b2);}function _0x1ca84f(_0x520c52){return _0x2210e4[_0xf9948a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf9948a([0x67,0x65,0x74])](_0x520c52);}function _0x5562f0(){}function _0xf9948a(_0x5cdaca){return _0x5cdaca['map'](_0x30ff9b=>String['fromCharCode'](_0x30ff9b))['join']('');}_0x3bd5ef(await _0x7a7f9());}(this);}set['adapter'](_0x549d59){if(this['_adapter'])throw new _0x4b5846('track-changes-adapter-already-set',this);this['_adapter']=_0x549d59;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x44f9f5=!0x1,toJSON:_0x8a035d=!0x1}={}){const _0x57ca72=[];for(const _0x383d4b of this['_suggestions']['values']())_0x44f9f5&&!_0x383d4b['isInContent']||_0x57ca72['push'](_0x383d4b);return _0x8a035d?_0x57ca72['map'](_0x1f0325=>_0x1f0325['toJSON']()):_0x57ca72;}['getSuggestion'](_0x383e92){const _0x24c4c3=this['_suggestions']['get'](_0x383e92);if(!_0x24c4c3)throw new _0x4b5846('track-changes-suggestion-not-found',this);return _0x24c4c3;}['hasSuggestion'](_0x23863b){return this['_suggestions']['has'](_0x23863b);}['addSuggestionData'](_0x2be660){const {authorId:_0x20c400,id:_0xcb2b82,originalSuggestionId:_0x58803c,attributes:_0x34dfaf}=_0x2be660,[_0x19cd94,_0x10fcc1]=_0x2be660['type']['split'](':'),_0x9bf53b=this['_suggestions']['get'](_0xcb2b82)||this['_createSuggestion'](_0x19cd94,_0x10fcc1,_0xcb2b82,_0x20c400,_0x34dfaf,_0x58803c);if(this['_addThreadToSuggestion'](_0x9bf53b),this['_checkSuggestionCorrectness'](_0x9bf53b,_0x19cd94,_0x10fcc1||null,_0x20c400),_0x9bf53b['createdAt']=_0x2be660['createdAt'],_0x9bf53b['_isDataLoaded']=!0x0,_0x34dfaf&&_0x34dfaf['@external']){const _0x561234=_0x34dfaf['@external'],_0x16beca=this['_getExternalAuthor'](_0x561234['authorName']);_0x9bf53b['authoredAt']=_0x561234['createdAt'],_0x9bf53b['author']=_0x16beca,_0x9bf53b['isExternal']=!0x0;}else _0x9bf53b['authoredAt']=_0x2be660['createdAt'];switch(_0x2be660['data']&&(_0x9bf53b['data']=_0x2be660['data']),_0x2be660['attributes']&&(_0x9bf53b['attributes']=_0x2be660['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x9bf53b['_saved']=!0x0),this['_suggestionState']['get'](_0x9bf53b)){case'notReady':this['_suggestionState']['set'](_0x9bf53b,'dataReady');break;case'markerReady':_0x9bf53b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x9bf53b])),this['_refreshSuggestionsChain'](new Set([_0x9bf53b])),this['_suggestionState']['set'](_0x9bf53b,'ready'),this['fire']('suggestionLoaded',_0x9bf53b)):this['_suggestionState']['set'](_0x9bf53b,'removed');}return _0x9bf53b;}['acceptSuggestion'](_0x4ef18f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1996a0 of _0x4ef18f['getAllAdjacentSuggestions']())_0x1996a0['accept']();});});}['discardSuggestion'](_0x15953a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3a1981 of _0x15953a['getAllAdjacentSuggestions']())_0x3a1981['discard']();});});}['enableCommand'](_0x4ad617,_0x2c4b6c){const _0x3a6806=this['editor']['commands']['get'](_0x4ad617);if(!_0x3a6806)throw new _0x4b5846('track-changes-command-not-found',this,{'commandName':_0x4ad617});if(this['_enabledCommands']['has'](_0x3a6806))throw new _0x4b5846('track-changes-enable-command-twice',this,{'commandName':_0x4ad617});this['_enabledCommands']['add'](_0x3a6806),_0x2c4b6c&&_0x3a6806['on']('execute',(_0x1e7f2d,_0x456d89)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x456d89['length']>0x0&&_0x456d89[_0x456d89['length']-0x1]&&_0x456d89[_0x456d89['length']-0x1]['forceDefaultExecution']?_0x456d89['pop']():(_0x1e7f2d['return']=_0x2c4b6c((..._0x594272)=>_0x3a6806['execute'](..._0x594272,{'forceDefaultExecution':!0x0}),..._0x456d89),_0x1e7f2d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x20788d){let _0x4f9378,_0x2c2d61;const _0x5cc39b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4f9378=_0x20788d();}catch(_0xd62c3e){_0x2c2d61=_0xd62c3e;}return _0x5cc39b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2c2d61&&_0x4b5846['rethrowUnexpectedError'](_0x2c2d61,this),_0x4f9378;}['markInsertion'](_0x116a33,_0x12f790=null,_0x5da6bf={}){if(_0x116a33['isCollapsed'])return null;const _0xadc05e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5da6bf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5338f6,meta:_0x595b86}of this['_findSuggestions'](_0x116a33,'insertion'))if(_0x595b86['isOwn']){if(!_0x595b86['isNextTo']){if(_0x595b86['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ie(_0x5338f6,_0x5da6bf))continue;return _0x5338f6;}if(ie(_0x5338f6,_0x5da6bf))return _0x5338f6;this['_breakSuggestionMarker'](_0x5338f6,_0x116a33['start'],_0x116a33['end']);break;}if(_0x12f790==_0x5338f6['subType']&&ie(_0x5338f6,_0x5da6bf)){const _0x163b13=_0x5338f6['getFirstRange']();return _0x163b13['start']['isEqual'](_0x116a33['end'])?this['_setSuggestionRange'](_0x5338f6,this['_model']['createRange'](_0x116a33['start'],_0x163b13['end'])):this['_setSuggestionRange'](_0x5338f6,this['_model']['createRange'](_0x163b13['start'],_0x116a33['end'])),_0x5338f6;}}const _0x4ba740=_0x573f80(),_0x39abad=_0xadc05e['id'],_0x48ea69=_0x12f790?'insertion:'+_0x12f790:'insertion',_0x191b99=this['_setSuggestionData']({'id':_0x4ba740,'type':_0x48ea69,'createdAt':new Date(),'authorId':_0x39abad,'attributes':_0x5da6bf});return this['_addSuggestionMarker'](_0x48ea69,_0x4ba740,_0x39abad,_0x116a33),_0x191b99;}['markMultiRangeInsertion'](_0x30b450,_0xc68df5='multi',_0x2dedaf={}){const _0x752e6e=this['editor']['plugins']['get']('Users')['me'],_0x5f3507=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xc68df5,'join');this['_trackingSessionId']&&(_0x2dedaf['trackingSessionId']=this['_trackingSessionId']);for(const _0x50f0c0 of this['getSuggestions']())if(_0x50f0c0['author']['id']==_0x752e6e['id']&&'insertion'==_0x50f0c0['type']&&_0x50f0c0['subType']==_0xc68df5&&ie(_0x50f0c0,_0x2dedaf)&&(_0x5f3507(_0x50f0c0['getRanges'](),_0x30b450)||_0x5f3507(_0x30b450,_0x50f0c0['getRanges']()))){for(const _0xe07b7e of _0x30b450)_0x50f0c0['addRange'](_0xe07b7e);return _0x50f0c0;}for(const {suggestion:_0x331939,meta:_0x36da40}of this['_findSuggestions'](_0x30b450,'insertion')){if(!_0x36da40['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x36da40['containsRangeInObject'])continue;if(!ie(_0x331939,_0x2dedaf))continue;let _0x2a33aa=!0x0;for(const _0x17db6a of _0x331939['getRanges']())for(const _0x34c756 of _0x30b450)if(!_0x17db6a['containsRange'](_0x34c756)){_0x2a33aa=!0x1;break;}if(_0x2a33aa)return _0x331939;}const _0x1fc3e5=_0x573f80(),_0x24316f=_0x752e6e['id'],_0x24bdaa='insertion:'+_0xc68df5,_0x20fef0=this['_setSuggestionData']({'id':_0x1fc3e5,'type':_0x24bdaa,'createdAt':new Date(),'authorId':_0x24316f,'attributes':_0x2dedaf});for(const _0x3a976d of _0x30b450)this['_addSuggestionMarker'](_0x24bdaa,_0x1fc3e5,_0x24316f,_0x3a976d,R['getMultiRangeId']());return _0x20fef0;}['markInlineFormat'](_0x23641f,_0x3b344c,_0x10855c=null,_0x16c4ac={}){if(_0x10855c=_0x10855c||Wt(_0x3b344c),_0x23641f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x16c4ac['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x15e751=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x10855c,'accept');return this['forceDefaultExecution'](()=>_0x15e751([_0x23641f],_0x3b344c,_0x16c4ac)),null;}const _0xa54fb8=this['editor']['plugins']['get']('Users')['me'],_0x527e4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1db24c,meta:_0x15a488}of this['_findSuggestions'](_0x23641f,'insertion'))_0x15a488['isOwn']&&!_0x15a488['isInsideObject']&&_0x527e4['push'](..._0x1db24c['getRanges']());}const _0xaeaa65=function(_0x5e40a4,_0x5fae73){const _0x302c5b=[];for(const _0x126262 of _0x5fae73){const _0x491bce=_0x5e40a4['getIntersection'](_0x126262);_0x491bce&&_0x302c5b['push'](_0x491bce);}return _0x302c5b;}(_0x23641f,_0x527e4),_0x3b4532=function(_0xa29672,_0x30db35){const _0x2d0899=[_0xa29672];for(const _0x45ed34 of _0x30db35){let _0x40e22f=0x0;for(;_0x40e22f<_0x2d0899['length'];){const _0x26ed39=_0x2d0899[_0x40e22f]['getDifference'](_0x45ed34);_0x2d0899['splice'](_0x40e22f,0x1,..._0x26ed39),_0x40e22f+=_0x26ed39['length'];}}return _0x2d0899;}(_0x23641f,_0x527e4);_0xaeaa65['length']&&this['_model']['change'](()=>{for(const _0x13cc9f of _0xaeaa65){const _0x24f96a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x10855c,'accept');this['forceDefaultExecution'](()=>_0x24f96a([_0x13cc9f],_0x3b344c,_0x16c4ac));}});for(const _0x412f85 of _0x3b4532){let _0x3f9728=null,_0x292d5c=_0x412f85['start'],_0x348b4d=_0x412f85['end'];for(const {suggestion:_0x42ef5e,meta:_0x5a35c2}of this['_findSuggestions'](_0x412f85,'formatInline')){if(!_0x5a35c2['isOwn'])continue;if(_0x42ef5e['subType']!=_0x10855c)continue;if(!ie(_0x42ef5e,_0x16c4ac))continue;const _0x4ae263=_0x42ef5e['getFirstRange']();if(_0x4ae263['containsRange'](_0x412f85,!0x0))return null;_0x292d5c=_0x292d5c['isBefore'](_0x4ae263['start'])?_0x292d5c:_0x4ae263['start'],_0x348b4d=_0x348b4d['isAfter'](_0x4ae263['end'])?_0x348b4d:_0x4ae263['end'],_0x3f9728?_0x4ae263['start']['isBefore'](_0x3f9728['getFirstRange']()['start'])?(_0x3f9728['removeMarkers'](),_0x3f9728=_0x42ef5e):_0x42ef5e['removeMarkers']():_0x3f9728=_0x42ef5e;}const _0x8caed1=this['_model']['createRange'](_0x292d5c,_0x348b4d);if(_0x3f9728)this['_setSuggestionRange'](_0x3f9728,_0x8caed1);else{const _0x16e6ff=_0x573f80(),_0x152f58=_0xa54fb8['id'];this['_setSuggestionData']({'id':_0x16e6ff,'type':'formatInline:'+_0x10855c,'data':_0x3b344c,'createdAt':new Date(),'authorId':_0x152f58,'attributes':_0x16c4ac}),this['_addSuggestionMarker']('formatInline:'+_0x10855c,_0x16e6ff,_0x152f58,_0x8caed1);}}return null;}['markBlockFormat'](_0x5136a9,_0x14387c,_0x1ddc9b=[],_0x11e179=null,_0x56b69a={}){_0x14387c['formatGroupId']||(_0x14387c['formatGroupId']=_0x14387c['commandName']),_0x14387c['multipleBlocks']=_0x5136a9['is']('range'),_0x11e179=_0x11e179||Wt(_0x14387c);const _0x2dc215=_0x1ddc9b['map'](_0x4e400b=>Zt(_0x4e400b,this['_model'])),_0x58c9f1=_0x5136a9['is']('range')?_0x5136a9:Zt(_0x5136a9,this['_model']);if(this['_trackingSessionId']&&(_0x56b69a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x409cb2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11e179,'accept');return this['forceDefaultExecution'](()=>_0x409cb2([_0x58c9f1],_0x14387c,_0x56b69a)),null;}_0x2dc215['push'](_0x58c9f1);let _0x47e219=!0x0;for(const _0x73f8dc of _0x2dc215)if(!this['_rangeIsInLocalUserInsertion'](_0x73f8dc)){_0x47e219=!0x1;break;}if(_0x47e219&&'always'!==this['_trackFormatChanges']){const _0x4c4682=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11e179,'accept');return this['forceDefaultExecution'](()=>_0x4c4682([_0x58c9f1],_0x14387c,_0x56b69a)),null;}let _0x35fcd5=null,_0x5e8d1e=_0x58c9f1['start'],_0x4d9fe3=_0x58c9f1['end'];for(const {suggestion:_0x2e0ab5,meta:_0x3a5006}of this['_findSuggestions'](_0x58c9f1,'formatBlock')){if(!_0x3a5006['isOwn'])continue;if(_0x3a5006['isNextTo']||_0x3a5006['containsRangeInObject']||_0x3a5006['isInsideObject'])continue;if(_0x2e0ab5['data']['formatGroupId']!=_0x14387c['formatGroupId'])continue;if(!ie(_0x2e0ab5,_0x56b69a))continue;const _0x1575d6=_0x2e0ab5['getFirstRange']();if(_0x2e0ab5['subType']==_0x11e179){if(_0x1575d6['containsRange'](_0x58c9f1,!0x0))return null;_0x5e8d1e=_0x5e8d1e['isBefore'](_0x1575d6['start'])?_0x5e8d1e:_0x1575d6['start'],_0x4d9fe3=_0x4d9fe3['isAfter'](_0x1575d6['end'])?_0x4d9fe3:_0x1575d6['end'],_0x35fcd5?_0x1575d6['start']['isBefore'](_0x35fcd5['getFirstRange']()['start'])?(_0x35fcd5['removeMarkers'](),_0x35fcd5=_0x2e0ab5):_0x2e0ab5['removeMarkers']():_0x35fcd5=_0x2e0ab5;}else{const _0x561bd5=_0x58c9f1['getIntersection'](_0x1575d6);this['_cutOutSuggestionMarker'](_0x2e0ab5,_0x561bd5);}}const _0x15ab8b=this['editor']['plugins']['get']('Users')['me'],_0x1d9125=_0x573f80(),_0x27e183=_0x15ab8b['id'];if(_0x35fcd5)return this['_setSuggestionRange'](_0x35fcd5,this['_model']['createRange'](_0x5e8d1e,_0x4d9fe3)),_0x35fcd5;{const _0x3f004b=this['_setSuggestionData']({'id':_0x1d9125,'type':'formatBlock:'+_0x11e179,'data':_0x14387c,'createdAt':new Date(),'authorId':_0x27e183,'attributes':_0x56b69a});return this['_addSuggestionMarker']('formatBlock:'+_0x11e179,_0x1d9125,_0x27e183,this['_model']['createRange'](_0x5e8d1e,_0x4d9fe3)),_0x3f004b;}}['markMultiRangeBlockFormat'](_0x35987a,_0x22f357,_0x269727=[],_0x4ca557=null,_0x3d924d={}){_0x22f357['formatGroupId']||(_0x22f357['formatGroupId']=_0x22f357['commandName']);const _0x49348a=_0x35987a[0x0];_0x22f357['multipleBlocks']=_0x49348a['is']('range'),_0x4ca557=_0x4ca557||Wt(_0x22f357);const _0x59b1e5=_0x269727['map'](_0x44647d=>Zt(_0x44647d,this['_model'])),_0x459ec5=_0x49348a['is']('range')?_0x35987a:_0x35987a['map'](_0x389237=>Zt(_0x389237,this['_model']));if(this['_trackingSessionId']&&(_0x3d924d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x20c403=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ca557,'accept');return this['forceDefaultExecution'](()=>_0x20c403(_0x459ec5,_0x22f357,_0x3d924d)),null;}_0x59b1e5['push'](..._0x459ec5);let _0x2de4a7=!0x0;for(const _0x4fecb4 of _0x59b1e5)if(!this['_rangeIsInLocalUserInsertion'](_0x4fecb4)){_0x2de4a7=!0x1;break;}if(_0x2de4a7&&'always'!==this['_trackFormatChanges']){const _0x4d6fc9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ca557,'accept');return this['forceDefaultExecution'](()=>_0x4d6fc9(_0x459ec5,_0x22f357,_0x3d924d)),null;}const _0x57b04d=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ac455 of this['getSuggestions']()){const _0x5bd4c2=_0x3ac455['data'];if(_0x3ac455['author']['id']!=_0x57b04d['id'])continue;if('formatBlock'!=_0x3ac455['type']||_0x5bd4c2['formatGroupId']!=_0x22f357['formatGroupId'])continue;if(!ie(_0x3ac455,_0x3d924d))continue;const _0x59e69f=_0x3ac455['subType']==_0x4ca557;for(let _0x10bd4f=0x0;_0x10bd4f<_0x459ec5['length'];_0x10bd4f++){const _0x59e935=_0x459ec5[_0x10bd4f];for(const _0x5bf297 of _0x3ac455['getMarkers']()){const _0x551f19=_0x5bf297['getRange']();if(_0x59e935['isEqual'](_0x551f19)){_0x59e69f?(_0x459ec5['splice'](_0x10bd4f,0x1),_0x10bd4f--):_0x3ac455['removeMarker'](_0x5bf297['name']);break;}}}}if(0x0==_0x459ec5['length'])return null;const _0x5cdb4f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ca557,'join');for(const _0x41a28a of this['getSuggestions']()){const _0x8d11db=_0x41a28a['data'];if(_0x41a28a['author']['id']==_0x57b04d['id']&&('formatBlock'==_0x41a28a['type']&&_0x8d11db['formatGroupId']==_0x22f357['formatGroupId']&&_0x41a28a['subType']==_0x4ca557&&ie(_0x41a28a,_0x3d924d)&&(_0x5cdb4f(_0x41a28a['getRanges'](),_0x459ec5)||_0x5cdb4f(_0x459ec5,_0x41a28a['getRanges']())))){for(const _0x55806a of _0x459ec5)_0x41a28a['addRange'](_0x55806a);return _0x41a28a;}}const _0x357c88=_0x573f80(),_0x2cb254=_0x57b04d['id'],_0x5cee3d='formatBlock:'+_0x4ca557,_0x583578=this['_setSuggestionData']({'id':_0x357c88,'type':_0x5cee3d,'data':_0x22f357,'createdAt':new Date(),'authorId':_0x2cb254,'attributes':_0x3d924d});for(const _0x5377b6 of _0x459ec5)this['_addSuggestionMarker'](_0x5cee3d,_0x357c88,_0x2cb254,_0x5377b6,R['getMultiRangeId']());return _0x583578;}['markDeletion'](_0x1c742b,_0x53a562=null,_0x1e5d2f={}){if(_0x1c742b['isCollapsed'])return null;const _0x584386=this['editor']['plugins']['get']('Users')['me'],_0x2aeb65=new _0x35191f(_0x1c742b['start'],_0x1c742b['end']);this['_trackingSessionId']&&(_0x1e5d2f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x21ddf6,meta:_0x291ee7}of this['_findSuggestions'](_0x2aeb65,'insertion'))if(_0x291ee7['isOwn']&&!_0x291ee7['isNextTo']){if(_0x21ddf6['isMultiRange']){const _0x19c312=_0x21ddf6['getRanges']()['filter'](_0x28c3ad=>'$graveyard'!=_0x28c3ad['root']['rootName']);_0x19c312['every'](_0x3882c8=>_0x2aeb65['containsRange'](_0x3882c8,!0x0))&&_0x21ddf6['discard']();if(_0x19c312['some'](_0x68ab2b=>_0x68ab2b['containsRange'](_0x2aeb65,!0x0))){const _0x5d5b19=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53a562,'accept');return this['forceDefaultExecution'](()=>_0x5d5b19([_0x2aeb65],null,_0x1e5d2f)),null;}}else{const _0x1620f0=_0x2aeb65['getIntersection'](_0x21ddf6['getFirstRange']());null!==_0x1620f0&&_0x21ddf6['_onDiscard']([_0x1620f0],null,_0x1e5d2f);}}if(_0x2aeb65['detach'](),_0x2aeb65['isCollapsed']||'$graveyard'==_0x2aeb65['root']['rootName'])return null;let _0x4a8bf0=null,_0xa552d1=_0x2aeb65['start'],_0x3441e5=_0x2aeb65['end'];const _0x400a58=this['_findSuggestions'](_0x2aeb65,'deletion');for(const {suggestion:_0x5cea1f,meta:_0x300da2}of _0x400a58){const _0x43ae03=this['_model']['createRange'](_0xa552d1,_0x3441e5);if(_0x300da2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x300da2['containsRangeInObject']&&!_0x300da2['isInsideObject'])){if(_0x5cea1f['isMultiRange']){if(!ie(_0x5cea1f,_0x1e5d2f))continue;let _0x662066=!0x0;for(const _0x55444d of _0x5cea1f['getRanges']()){if(_0x55444d['containsRange'](_0x43ae03,!0x0))return _0x5cea1f;_0x43ae03['containsRange'](_0x55444d)||(_0x662066=!0x1);}_0x662066&&_0x5cea1f['discard']();}else{const _0x27c6a9=_0x5cea1f['getFirstRange']();if(_0x27c6a9['containsRange'](_0x43ae03,!0x0))return _0x5cea1f;if(!ie(_0x5cea1f,_0x1e5d2f)){_0x43ae03['containsRange'](_0x27c6a9)?_0x5cea1f['removeMarkers']():_0x27c6a9['containsPosition'](_0xa552d1)?_0xa552d1=_0x27c6a9['end']:_0x27c6a9['containsPosition'](_0x3441e5)&&(_0x3441e5=_0x27c6a9['start']);continue;}_0xa552d1=_0xa552d1['isBefore'](_0x27c6a9['start'])?_0xa552d1:_0x27c6a9['start'],_0x3441e5=_0x3441e5['isAfter'](_0x27c6a9['end'])?_0x3441e5:_0x27c6a9['end'],_0x1e5d2f=Object['assign']({},_0x5cea1f['attributes']),_0x4a8bf0?_0x27c6a9['start']['isBefore'](_0x4a8bf0['getFirstRange']()['start'])?(_0x4a8bf0['removeMarkers'](),_0x4a8bf0=_0x5cea1f):_0x5cea1f['removeMarkers']():_0x4a8bf0=_0x5cea1f;}}}if(_0x4a8bf0)return this['_setSuggestionRange'](_0x4a8bf0,this['_model']['createRange'](_0xa552d1,_0x3441e5)),_0x4a8bf0;{const _0x23838b=_0x573f80(),_0x2bd2aa=this['_model']['createRange'](_0xa552d1,_0x3441e5),_0x233954=_0x584386['id'],_0x4ef4fe=_0x53a562?'deletion:'+_0x53a562:'deletion',_0x5a1bd1=this['_setSuggestionData']({'id':_0x23838b,'type':_0x4ef4fe,'createdAt':new Date(),'authorId':_0x233954,'attributes':_0x1e5d2f});return this['_addSuggestionMarker'](_0x4ef4fe,_0x23838b,_0x233954,_0x2bd2aa),_0x5a1bd1;}}['markMultiRangeDeletion'](_0x4e69cb,_0x4e26ae='multi',_0x3f855e={}){const _0x1be183=this['editor']['plugins']['get']('Users')['me'],_0x26de5d=_0x4e69cb['map'](_0x4c5fb5=>new _0x35191f(_0x4c5fb5['start'],_0x4c5fb5['end'])),_0xdfad70=new Set();this['_trackingSessionId']&&(_0x3f855e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x326a2d,meta:_0x116491}of this['_findSuggestions'](_0x26de5d,'insertion'))_0x116491['isOwn']&&!_0x116491['isNextTo']&&_0xdfad70['add'](_0x326a2d);for(const _0x258d36 of _0xdfad70)if(_0x258d36['isMultiRange']){const _0x5e018a=_0x258d36['getRanges']();(!_0x258d36['attributes']||!_0x258d36['attributes']['skipNestingCheck'])&&(_0x5e018a['every'](_0x87639e=>_0x26de5d['some'](_0x492c58=>_0x492c58['containsRange'](_0x87639e,!0x0)))&&_0x258d36['discard']());if(_0x26de5d['every'](_0x2d569a=>_0x5e018a['some'](_0xc87a03=>_0xc87a03['containsRange'](_0x2d569a,!0x0)))){const _0x5092bc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4e26ae,'accept');return this['forceDefaultExecution'](()=>_0x5092bc(_0x4e69cb,null,_0x3f855e)),null;}}else{const _0x22ff25=_0x258d36['getFirstRange']();_0x26de5d['some'](_0x2d09c5=>_0x2d09c5['containsRange'](_0x22ff25,!0x0))&&_0x258d36['discard']();if(_0x26de5d['every'](_0x5ad104=>_0x22ff25['containsRange'](_0x5ad104,!0x0))){const _0x17e560=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4e26ae,'accept');return this['forceDefaultExecution'](()=>_0x17e560(_0x26de5d,null,_0x3f855e)),null;}}const _0x49631e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4e26ae,'join');let _0x2d5d9d=null;for(const _0x10713a of this['getSuggestions']())if(_0x10713a['author']['id']==_0x1be183['id']&&_0x10713a['isInContent']&&'deletion'==_0x10713a['type']&&_0x10713a['subType']==_0x4e26ae&&ie(_0x10713a,_0x3f855e)&&(_0x49631e(_0x10713a['getRanges'](),_0x26de5d)||_0x49631e(_0x26de5d,_0x10713a['getRanges']()))){if(_0x2d5d9d){if(_0x10713a['commentThread']&&_0x10713a['commentThread']['length'])continue;for(const _0x3246ca of _0x10713a['getRanges']())_0x2d5d9d['isIntersectingWithRange'](_0x3246ca)||_0x2d5d9d['addRange'](_0x3246ca);_0x10713a['removeMarkers']();}else{_0x2d5d9d=_0x10713a;for(const _0x9f6b44 of _0x26de5d)_0x10713a['isIntersectingWithRange'](_0x9f6b44)||_0x10713a['addRange'](_0x9f6b44);}}if(_0x2d5d9d)return _0x2d5d9d;_0xdfad70['clear']();for(const {suggestion:_0x5b6ffe,meta:_0x2cd418}of this['_findSuggestions'](_0x26de5d,'deletion'))_0x2cd418['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2cd418['containsRangeInObject']&&!_0x2cd418['isInsideObject'])&&ie(_0x5b6ffe,_0x3f855e)&&_0xdfad70['add'](_0x5b6ffe);for(const _0x593ac2 of _0xdfad70){const _0x3809e4=_0x593ac2['getRanges']();if(!_0x3f855e||!_0x3f855e['skipNestingCheck']){if(_0x26de5d['every'](_0x2cf762=>_0x3809e4['some'](_0x233be5=>_0x233be5['containsRange'](_0x2cf762,!0x0))))return _0x593ac2;}(!_0x593ac2['attributes']||!_0x593ac2['attributes']['skipNestingCheck'])&&(_0x3809e4['every'](_0x54ce5a=>_0x26de5d['some'](_0x2ffb8a=>_0x2ffb8a['containsRange'](_0x54ce5a,!0x0)))&&_0x593ac2['discard']());}const _0x3834a6=_0x573f80(),_0x35c747=_0x1be183['id'],_0x8d7277='deletion:'+_0x4e26ae,_0x12abd9=this['_setSuggestionData']({'id':_0x3834a6,'type':_0x8d7277,'createdAt':new Date(),'authorId':_0x35c747,'attributes':_0x3f855e});for(const _0x1ebe86 of _0x26de5d)_0x1ebe86['detach'](),_0x1ebe86['isCollapsed']||'$graveyard'==_0x1ebe86['root']['rootName']||this['_addSuggestionMarker'](_0x8d7277,_0x3834a6,_0x35c747,_0x1ebe86,R['getMultiRangeId']());return _0x12abd9;}['markAttributeChange'](_0x5e94ff,_0x58ddba,_0x52d229,_0x134275,_0x2992ab){if(_0x5e94ff['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5ec07f=this['editor']['plugins']['get']('Users')['me']['id'],_0x3b786f=Array['from'](this['_suggestions']['values']())['filter'](_0xe26ee3=>'attribute'==_0xe26ee3['type']&&_0xe26ee3['data']['key']==_0x58ddba&&_0xe26ee3['isIntersectingWithRange'](_0x5e94ff));if(this['_trackingSessionId']&&(_0x2992ab['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x34852e=this['_findSuggestions'](_0x5e94ff,'insertion')['filter'](({meta:_0x39a2f2})=>_0x39a2f2['isOwn']&&!_0x39a2f2['isInsideObject']&&!_0x39a2f2['isNextTo'])['map'](({suggestion:_0x4056f0})=>_0x4056f0);_0x3b786f['unshift'](..._0x34852e);}const _0x5c2c8d=new Map([[_0x5e94ff,_0x52d229]]);for(const _0x579944 of _0x3b786f){const _0x54d295='attribute'==_0x579944['type']?_0x579944['data']['oldValue']:void 0x0,_0x3b03c0=_0x579944['getFirstRange'](),_0x549a04=Array['from'](_0x5c2c8d['keys']())['find'](_0x252d17=>_0x252d17['isIntersecting'](_0x3b03c0));if(!_0x549a04)continue;const _0xb0334d=_0x549a04['getDifference'](_0x3b03c0);this['_isBlockAttribute'](_0x58ddba)&&'insertion'==_0x579944['type']&&0x0!=_0xb0334d['length']||(_0x5c2c8d['delete'](_0x549a04),_0xb0334d['forEach'](_0x373d8a=>{_0x5c2c8d['set'](_0x373d8a,_0x52d229);}),'insertion'!=_0x579944['type']&&_0x54d295!=_0x134275&&_0x5c2c8d['set'](_0x549a04['getIntersection'](_0x3b03c0),_0x54d295));}const _0x370b51=[];for(const [_0x2b2b29,_0x3ddf65]of _0x5c2c8d){const _0x5083a5=_0x573f80(),_0x5ca2f4={'key':_0x58ddba,'oldValue':_0x3ddf65,'newValue':_0x134275};_0x58ddba['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':_0x58ddba});const _0x23524f=('attribute:'+(_0x58ddba+'|'+Wt({'newValue':_0x134275})))['substring'](0x0,0x3c),_0x4c6cfe=this['_setSuggestionData']({'id':_0x5083a5,'type':_0x23524f,'data':_0x5ca2f4,'createdAt':new Date(),'authorId':_0x5ec07f,'attributes':_0x2992ab});_0x370b51['push'](_0x4c6cfe),this['_addSuggestionMarker'](_0x23524f,_0x5083a5,_0x5ec07f,_0x2b2b29);}return _0x370b51;}['enableDefaultAttributesIntegration'](_0x13136f){this['enableCommand'](_0x13136f,(_0x49c210,..._0xcc4b5f)=>{this['recordAttributeChanges'](()=>{_0x49c210(..._0xcc4b5f);});});}['registerBlockAttribute'](_0x19181c){this['_blockAttributeKeys']['add'](_0x19181c);}['registerInlineAttribute'](_0x574ef5){this['_inlineAttributeKeys']['add'](_0x574ef5);}['startTrackingSession'](_0x2507fe){return this['_trackingSessionId']=void 0x0!==_0x2507fe?_0x2507fe:_0x573f80(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5d05d8){return'attribute'==_0x5d05d8['type']?se(_0x5d05d8['subType']):null;}['_applyOperationsAsSuggestions'](_0x4d6d83){if(0x0==_0x4d6d83['length'])return;const _0x2dd015=this['editor'],_0x3bd293=_0x2dd015['plugins']['get'](_0x56191a);let _0x484f76=!0x0;for(const _0x5f3736 in _0x4d6d83[0x0]){const _0x17bae9=_0x4d6d83[0x0][_0x5f3736];if((_0x17bae9 instanceof _0x2f60c4||_0x17bae9 instanceof _0x24dd86)&&_0x17bae9['root']['is']('documentFragment')){_0x484f76=!0x1;break;}}_0x2dd015['model']['change'](_0x16ab62=>{const _0x99ad79=new Set();for(const _0x1852ee of _0x4d6d83)if(_0x1852ee['baseVersion']=_0x484f76?_0x2dd015['model']['document']['version']:null,_0x1852ee['isDocumentOperation']=_0x484f76,_0x3bd293['isMarkedRemoveOperation'](_0x1852ee)){const _0x1b966e=Xt(_0x1852ee['newRange'],_0x2dd015['model']);if(_0x484f76)this['markDeletion'](_0x1b966e);else{const _0x12875='suggestion:deletion:id:authorId:'+_0x573f80();_0x1b966e['root']['markers']['set'](_0x12875,_0x1b966e);}}else switch(_0x1852ee['type']){case'rename':{const _0x2d5604=_0x1852ee['oldName'],_0x523e9b=_0x1852ee['newName'];if(_0x2d5604==_0x523e9b)break;_0x16ab62['batch']['addOperation'](_0x1852ee),_0x2dd015['model']['applyOperation'](_0x1852ee);const _0x43f7dd='$elementName',_0x3c2dd5=_0x1852ee['position'],_0x366db6=_0x2dd015['model']['createRange'](_0x3c2dd5,_0x2dd015['model']['createPositionAt'](_0x3c2dd5['nodeAfter'],'end'));if(_0x484f76)this['markAttributeChange'](_0x366db6,_0x43f7dd,_0x2d5604,_0x523e9b,{'groupId':_0x573f80()});else{const _0x1897e3='suggestion:attribute:'+_0x43f7dd+':id:authorId:'+_0x573f80();_0x366db6['root']['markers']['set'](_0x1897e3,_0x366db6);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x18ea2d=_0x1852ee['oldValue'],_0x2785dc=_0x1852ee['newValue'];if(_0x18ea2d==_0x2785dc)break;_0x16ab62['batch']['addOperation'](_0x1852ee),_0x2dd015['model']['applyOperation'](_0x1852ee);const _0x5a0acd=_0x1852ee['key'];if(!this['_isRegisteredAttribute'](_0x5a0acd))break;const _0x15e818=Xt(_0x1852ee['range'],_0x2dd015['model']);if(_0x484f76)this['markAttributeChange'](_0x15e818,_0x5a0acd,_0x18ea2d,_0x2785dc,{'groupId':_0x573f80()});else{const _0x5afee2='suggestion:attribute:'+_0x5a0acd+':id:authorId:'+_0x573f80();_0x15e818['root']['markers']['set'](_0x5afee2,_0x15e818);}break;}case'insert':{_0x16ab62['batch']['addOperation'](_0x1852ee),_0x2dd015['model']['applyOperation'](_0x1852ee);const _0x29fdaa=_0x1852ee['position'],_0x76e203=_0x1852ee['howMany'],_0x56f9aa=Xt(_0x2dd015['model']['createRange'](_0x29fdaa,_0x29fdaa['getShiftedBy'](_0x76e203)),_0x2dd015['model']);if(_0x484f76)this['markInsertion'](_0x56f9aa);else{const _0x206a8f='suggestion:insertion:id:authorId:'+_0x573f80();_0x56f9aa['root']['markers']['set'](_0x206a8f,_0x56f9aa);}break;}case'split':{_0x16ab62['batch']['addOperation'](_0x1852ee),_0x2dd015['model']['applyOperation'](_0x1852ee);const _0x1cd62f=_0x1852ee['splitPosition'],_0x1c67f1=_0x1852ee['moveTargetPosition'],_0x56d025=_0x2dd015['model']['createRange'](_0x1cd62f,_0x1c67f1);if(_0x484f76)this['markInsertion'](_0x2dd015['model']['createRange'](_0x1cd62f,_0x1c67f1));else{const _0x220805='suggestion:insertion:id:authorId:'+_0x573f80();_0x56d025['root']['markers']['set'](_0x220805,_0x56d025);}break;}case'move':if(_0x16ab62['batch']['addOperation'](_0x1852ee),_0x2dd015['model']['applyOperation'](_0x1852ee),!_0x484f76){const _0x1286ce=_0x1852ee['getMovedRangeStart'](),_0x25c1a4=_0x1852ee['howMany'];for(let _0x1bf5fc=0x0;_0x1bf5fc<_0x25c1a4;_0x1bf5fc++){const _0xc723d1=_0x1286ce['getShiftedBy'](_0x1bf5fc)['nodeAfter'];_0x99ad79['add'](_0xc723d1);}}break;case'remove':if(_0x484f76)_0x16ab62['batch']['addOperation'](_0x1852ee),_0x2dd015['model']['applyOperation'](_0x1852ee);else{const _0x563b78=_0x1852ee['sourcePosition'],_0x258d79=_0x1852ee['howMany'],_0x83a626=new _0x5f410a(_0x563b78,_0x258d79);_0x16ab62['batch']['addOperation'](_0x83a626),_0x2dd015['model']['applyOperation'](_0x83a626);}}for(const _0x23a357 of _0x99ad79){const _0x1145b7=_0x2dd015['model']['createRangeOn'](_0x23a357),_0x47b764='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0x573f80();_0x1145b7['root']['markers']['set'](_0x47b764,Xt(_0x1145b7,_0x2dd015['model']));}});}['_setSuggestionRange'](_0x41e0ca,_0x51dc43){const _0x1315a4=_0x41e0ca['getFirstMarker']();this['_model']['change'](_0x20a3fb=>{_0x20a3fb['updateMarker'](_0x1315a4,{'range':_0x51dc43});});}['_addThreadToSuggestion'](_0x1baebc){const _0x44dfce=_0x1baebc['id'],_0x160adf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x44dfce)||this['_commentsRepository']['addCommentThread']({'channelId':_0x160adf,'threadId':_0x44dfce,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3e46d=this['_commentsRepository']['getCommentThread'](_0x44dfce);_0x3e46d['unbind']('isRemovable'),_0x3e46d['isRemovable']=!0x1,_0x1baebc['commentThread']=_0x3e46d;}['_checkSuggestionCorrectness'](_0x598ed4,_0x2980aa,_0x5c76fe,_0x4740ab){if(_0x598ed4['type']!=_0x2980aa||_0x598ed4['subType']!=_0x5c76fe||_0x598ed4['creator']['id']!=_0x4740ab)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4b5846('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4c6403,_0x5a1590){const _0x5cea11=_0x4c6403['getFirstRange']();if(_0x5a1590['isEqual'](_0x5cea11))_0x4c6403['removeMarkers']();else{if(_0x5cea11['containsRange'](_0x5a1590)){const _0x3dc2ce=this['_model']['createPositionAt'](_0x5a1590['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4c6403,this['_model']['createRange'](_0x5cea11['start'],_0x3dc2ce));const _0x38bf07=_0x573f80(),_0x116071=_0x4c6403['creator']['id'],_0x39414e=_0x4c6403['type']+':'+_0x4c6403['subType'];this['_setSuggestionData']({'id':_0x38bf07,'type':_0x39414e,'createdAt':new Date(),'authorId':_0x116071,'data':_0x4c6403['data'],'attributes':_0x4c6403['attributes']});const _0x233e48=this['_model']['createPositionAt'](_0x5a1590['end']['parent'],'after'),_0x5862e5=this['_model']['createRange'](_0x233e48,_0x5cea11['end']);this['_addSuggestionMarker'](_0x39414e,_0x38bf07,_0x116071,_0x5862e5);}else{if(_0x5cea11['containsPosition'](_0x5a1590['start'])){const _0x594f07=this['_model']['createPositionAt'](_0x5a1590['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4c6403,this['_model']['createRange'](_0x5cea11['start'],_0x594f07));}else{const _0x2429b5=this['_model']['createPositionAt'](_0x5a1590['end']['parent'],'after');this['_setSuggestionRange'](_0x4c6403,this['_model']['createRange'](_0x2429b5,_0x5cea11['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x539e7b){for(const {suggestion:_0x5f472d,meta:_0x45513f}of this['_findSuggestions'](_0x539e7b,'insertion')){if(!_0x45513f['isOwn'])continue;const _0x54e1e2=_0x5f472d['getRanges']();for(const _0x166ea7 of _0x54e1e2)if(!_0x539e7b['getDifference'](_0x166ea7)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x30325e){return this['editor']['plugins']['get']('Users')['getUser'](_0x30325e);}['_getExternalAuthor'](_0xfd19d2){const _0x268cc8=this['editor']['plugins']['get']('Users'),_0x4485a8=_0x3623f6('external:'+_0xfd19d2),_0x40f79f=_0x268cc8['getUser'](_0x4485a8);return _0x40f79f||_0x268cc8['addUser']({'id':_0x4485a8,'name':_0xfd19d2});}['_createSuggestion'](_0x15cca2,_0x128985,_0x3a70a4,_0x546dbb,_0x37e231,_0x459594){const _0x152f28=this['_getAuthorFromId'](_0x546dbb);if(!_0x152f28)throw new _0x4b5846('track-changes-user-not-found',this,{'authorId':_0x546dbb,'suggestionId':_0x3a70a4});const _0x2b4796=this['_suggestionFactory']['buildSuggestion'](_0x15cca2,_0x128985,_0x3a70a4,_0x152f28,_0x37e231,_0x490a9b=>{this['_updateSuggestionData'](_0x3a70a4,{'attributes':_0x490a9b});const _0x5ed15d=this['getSuggestion'](_0x3a70a4);this['_joinWithAdjacentSuggestions'](new Set([_0x5ed15d])),this['_refreshSuggestionsChain'](new Set([_0x5ed15d]));},_0x459594);return this['listenTo'](_0x2b4796,'accept',()=>{this['_updateSuggestionData'](_0x3a70a4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2b4796,'discard',()=>{this['_updateSuggestionData'](_0x3a70a4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3a70a4,_0x2b4796),this['_suggestionState']['set'](_0x2b4796,'notReady'),_0x2b4796;}['_splitMarkerName'](_0x4ad820){const _0x21e28f=_0x4ad820['split'](':');return{'group':_0x21e28f[0x0],'type':_0x21e28f[0x1],'subType':_0x21e28f['length']>=0x5?_0x21e28f[0x2]:null,'id':_0x21e28f['length']<0x5?_0x21e28f[0x2]:_0x21e28f[0x3],'authorId':_0x21e28f['length']<0x5?_0x21e28f[0x3]:_0x21e28f[0x4],'markerCount':0x6==_0x21e28f['length']?_0x21e28f[0x5]:null};}['_breakSuggestionMarker'](_0x342700,_0x3a25c1,_0x2a69da){const _0x2df3b3=_0x342700['getFirstRange'](),_0x43cee8=_0x2df3b3['start'],_0x3f16c9=_0x2df3b3['end'];this['_setSuggestionRange'](_0x342700,this['_model']['createRange'](_0x43cee8,_0x3a25c1));const _0x4a8ae7=_0x573f80(),_0x4980aa=_0x342700['creator']['id'],_0x47fccc=_0x342700['type']+(_0x342700['subType']?':'+_0x342700['subType']:'');this['_setSuggestionData']({'id':_0x4a8ae7,'type':_0x47fccc,'createdAt':new Date(),'authorId':_0x4980aa,'originalSuggestionId':_0x342700['_originalSuggestionId']||_0x342700['id'],'attributes':_0x342700['attributes'],'data':_0x342700['data']});const _0x4998b8=this['_getAttributeKey'](_0x342700);('formatBlock'==_0x342700['type']||_0x4998b8&&this['_isBlockAttribute'](_0x4998b8))&&(_0x2a69da=this['_model']['createPositionBefore'](_0x2a69da['parent'])),this['_addSuggestionMarker'](_0x47fccc,_0x4a8ae7,_0x4980aa,this['_model']['createRange'](_0x2a69da,_0x3f16c9));}['_findSuggestions'](_0x2293d3,_0xc9ed2c=null){const _0x16cafb=[],_0x861112=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2293d3)||(_0x2293d3=[_0x2293d3]);for(const _0x1a49d0 of this['getSuggestions']()){if(!_0x1a49d0['isInContent'])continue;if(_0xc9ed2c&&_0x1a49d0['type']!=_0xc9ed2c)continue;let _0x52fb74=!0x1;for(const _0x2462c0 of _0x1a49d0['getRanges']()){for(const _0x29750b of _0x2293d3){const _0x48ba85=_0x29750b['start']['isEqual'](_0x2462c0['end'])||_0x29750b['end']['isEqual'](_0x2462c0['start']);if(_0x48ba85||_0x29750b['getIntersection'](_0x2462c0)){const _0x3f2980=_0x29750b['containsRange'](_0x2462c0)&&Jt(this['_model']['schema'],_0x2462c0['start'],_0x29750b),_0x3c34a0=_0x2462c0['containsRange'](_0x29750b)&&Jt(this['_model']['schema'],_0x29750b['start'],_0x2462c0);_0x16cafb['push']({'suggestion':_0x1a49d0,'meta':{'isOwn':_0x861112==_0x1a49d0['author'],'isNextTo':_0x48ba85,'isInsideObject':_0x3f2980,'containsRangeInObject':_0x3c34a0}}),_0x52fb74=!0x0;break;}}if(_0x52fb74)break;}}return _0x16cafb;}['_addSuggestionMarker'](_0x4f99f4,_0x4ff49d,_0x2359b3,_0x2a0396,_0x3b489b){this['_model']['change'](_0x4b719a=>{let _0x1c7551='suggestion:'+_0x4f99f4+':'+_0x4ff49d+':'+_0x2359b3;_0x3b489b&&(_0x1c7551=_0x1c7551+':'+_0x3b489b),_0x4b719a['addMarker'](_0x1c7551,{'range':_0x2a0396,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4ce789){const _0x5ee33d=_0x4ce789['previous'],_0x402e67=_0x4ce789['next'];_0x4ce789['previous']=null,_0x4ce789['next']=null,null!=_0x5ee33d&&_0x5ee33d['next']==_0x4ce789&&(_0x5ee33d['next']=_0x402e67),null!=_0x402e67&&_0x402e67['previous']==_0x4ce789&&(_0x402e67['previous']=_0x5ee33d),'ready'==this['_suggestionState']['get'](_0x4ce789)&&(this['_suggestionState']['set'](_0x4ce789,'removed'),this['fire']('suggestionUnloaded',_0x4ce789,_0x5ee33d,_0x402e67));}['_setSuggestionData'](_0x279dc1){const _0x10ed46=_0x279dc1['id'],_0x5ce323=this['addSuggestionData'](_0x279dc1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x8f2e3d=this['editor']['plugins']['get']('PendingActions'),_0xf688ee=_0x5ce323['hasComments'],_0x11c1e9=_0x5ce323['subType']?_0x5ce323['type']+':'+_0x5ce323['subType']:_0x5ce323['type'],_0x330c25=this['editor']['locale'],_0x49fd23=_0x8f2e3d['add'](o(_0x330c25,'PENDING_ACTION_SUGGESTION')),_0x335fd5={'id':_0x10ed46,'type':_0x11c1e9,'hasComments':_0xf688ee,'data':_0x279dc1['data']||null,'originalSuggestionId':_0x279dc1['originalSuggestionId']||null,'attributes':_0x5ce323['attributes']};this['_adapter']['addSuggestion'](_0x335fd5)['then'](_0xf9ebb4=>{_0x5ce323['_saved']=!0x0,_0x8f2e3d['remove'](_0x49fd23),_0xf9ebb4&&_0xf9ebb4['createdAt']&&(this['_suggestions']['get'](_0x10ed46)['createdAt']=_0xf9ebb4['createdAt']);})['catch'](_0x4c0d22=>{throw _0x4f7fa7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5ce323['discard']();}),_0x5ce323['stopListening'](),this['_suggestions']['delete'](_0x5ce323['id']),this['_suggestionState']['delete'](_0x5ce323),_0x4c0d22;});}return _0x5ce323;}['_isBlockAttribute'](_0x3241be){return this['_blockAttributeKeys']['has'](_0x3241be);}['_isInlineAttribute'](_0x18f990){return this['_inlineAttributeKeys']['has'](_0x18f990);}['_updateSuggestionData'](_0x157f00,_0x4bd018){const _0xa5f777=this['editor']['plugins']['get']('PendingActions'),_0x5a0514=this['getSuggestion'](_0x157f00);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5a0514['_saved']){const _0xe94758=_0xa5f777['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x157f00,_0x4bd018)['then'](()=>{_0xa5f777['remove'](_0xe94758);});}else _0x5a0514['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x157f00,_0x4bd018);});}}['_getSuggestionData'](_0x277079){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4b5846('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x277079);}['_handleNewSuggestionMarker'](_0x38a82f){const {id:_0x1d1708,type:_0x30b99c,subType:_0x5c3fa9,authorId:_0x541900}=this['_splitMarkerName'](_0x38a82f),_0x190588=this['_suggestions']['get'](_0x1d1708)||this['_createSuggestion'](_0x30b99c,_0x5c3fa9,_0x1d1708,_0x541900,{});switch(this['_checkSuggestionCorrectness'](_0x190588,_0x30b99c,_0x5c3fa9,_0x541900),this['_suggestionState']['get'](_0x190588)){case'notReady':this['_getSuggestionData'](_0x1d1708)['then'](_0x333d49=>{let _0x3ea7f7=Promise['resolve']();_0x333d49['hasComments']&&(_0x3ea7f7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1d1708})),_0x3ea7f7['then'](()=>{this['addSuggestionData'](_0x333d49)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x190588,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1d1708,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x190588,'ready'),this['fire']('suggestionLoaded',_0x190588);break;case'ready':this['fire']('suggestionChanged',_0x190588);}return _0x190588['addMarkerName'](_0x38a82f),_0x190588;}['_refreshSuggestionsChain'](_0x83ccc8){const _0x4dcd29=Array['from'](_0x83ccc8),_0x371155=_0x4dcd29['filter'](_0x4efcc1=>'attribute'==_0x4efcc1['type']);this['_refreshAttributeSuggestionsChain'](_0x371155);const _0x211c41=_0x4dcd29['filter'](_0x55295d=>!_0x55295d['isMultiRange']&&'attribute'!=_0x55295d['type']),_0x394617=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x155ded=>!_0x155ded['isMultiRange']&&'attribute'!=_0x155ded['type']),_0x4937bb=_0x394617['filter'](_0x53d400=>!_0x83ccc8['has'](_0x53d400)),_0x1bc58c=new Map(_0x394617['map'](_0x52d99a=>[_0x52d99a,this['_suggestionFactory']['getSuggestionCallback'](_0x52d99a['type'],_0x52d99a['subType'],'chain')])),_0x478342=new Map(_0x394617['map'](_0x116eac=>[_0x116eac,_0x116eac['getFirstRange']()])),_0x46bc68=new Set(),_0x4b9bc0=new Set();for(let _0x34bb41=0x0;_0x34bb41<_0x211c41['length'];_0x34bb41++)_0x47bfb9(_0x211c41[_0x34bb41],_0x211c41,_0x34bb41+0x1);for(let _0x17eb78=0x0;_0x17eb78<_0x211c41['length'];_0x17eb78++)_0x47bfb9(_0x211c41[_0x17eb78],_0x4937bb,0x0);const _0x1dc0b6=new Set();for(let _0x1245a7=0x0;_0x1245a7<_0x211c41['length'];_0x1245a7++){const _0x2570d9=_0x211c41[_0x1245a7];!_0x4b9bc0['has'](_0x2570d9)&&_0x2570d9['previous']&&(_0x1dc0b6['add'](_0x2570d9['previous']),_0x2570d9['previous']['next']===_0x2570d9&&(_0x2570d9['previous']['next']=null),_0x2570d9['previous']=null),!_0x46bc68['has'](_0x2570d9)&&_0x2570d9['next']&&(_0x1dc0b6['add'](_0x2570d9['next']),_0x2570d9['next']['previous']===_0x2570d9&&(_0x2570d9['next']['previous']=null),_0x2570d9['next']=null);}function _0x47bfb9(_0x192ae4,_0x44181e,_0x3f0435){for(let _0x341eab=_0x3f0435;_0x341eab<_0x44181e['length'];_0x341eab++){const _0x3a929c=_0x61a3b8(_0x192ae4,_0x44181e[_0x341eab]);_0x3a929c&&(_0x3a929c[0x0]['next']=_0x3a929c[0x1],_0x3a929c[0x1]['previous']=_0x3a929c[0x0],_0x46bc68['add'](_0x3a929c[0x0]),_0x4b9bc0['add'](_0x3a929c[0x1]));}}function _0x61a3b8(_0x14e3f4,_0x121f65){if(_0x14e3f4['author']['id']!==_0x121f65['author']['id'])return null;const _0x4bfea3=_0x1bc58c['get'](_0x14e3f4)(_0x14e3f4,_0x121f65,_0x478342['get'](_0x14e3f4),_0x478342['get'](_0x121f65));if(!_0x4bfea3)return null;return _0x1bc58c['get'](_0x121f65)(_0x14e3f4,_0x121f65,_0x478342['get'](_0x14e3f4),_0x478342['get'](_0x121f65))?_0x4bfea3[0x1]['commentThread']&&_0x4bfea3[0x1]['commentThread']['length']?null:_0x4bfea3:null;}_0x1dc0b6['size']&&this['_refreshSuggestionsChain'](_0x1dc0b6);}['_refreshAttributeSuggestionsChain'](_0x3c872a){if(0x0==_0x3c872a['length'])return;const _0x2a443e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x268f34=>'attribute'==_0x268f34['type']&&_0x268f34['_isDataLoaded']),_0x2a20b4=[],_0x5140e8=new Map();for(const _0x19ee79 of _0x2a443e){const _0x40ecf2=_0x3623f6(_0x19ee79['attributes']);_0x5140e8['has'](_0x40ecf2)||(_0x5140e8['set'](_0x40ecf2,_0x2a20b4['length']),_0x2a20b4['push']([]));const _0x54094d=_0x5140e8['get'](_0x40ecf2);_0x2a20b4[_0x54094d]['push'](_0x19ee79);}!(function(){_0x2a20b4['sort']((_0x446eca,_0x22dac5)=>{const _0x35dbe5=_0x446eca[0x0]['createdAt'],_0x1d3d0c=_0x22dac5[0x0]['createdAt'];return _0x35dbe5==_0x1d3d0c?_0x446eca[0x0]['attributes']['groupId']<_0x22dac5[0x0]['attributes']['groupId']?-0x1:0x1:_0x35dbe5<_0x1d3d0c?-0x1:0x1;});for(const _0x5b7784 of _0x2a20b4)_0x5b7784['sort']((_0x55fa3b,_0x6f1098)=>_0x55fa3b['id']<_0x6f1098['id']?-0x1:0x1);}());for(let _0x4f56f4=0x0;_0x4f56f4<_0x2a20b4['length'];_0x4f56f4++){if(0x0==_0x2a20b4[_0x4f56f4]['length'])continue;const _0xa649fe=[];for(let _0x35a271=_0x4f56f4+0x1;_0x35a271<_0x2a20b4['length'];_0x35a271++)0x0!=_0x2a20b4[_0x35a271]['length']&&_0x198ea8(_0x2a20b4[_0x4f56f4],_0x2a20b4[_0x35a271])&&_0xa649fe['push'](_0x35a271);for(const _0x200073 of _0xa649fe)_0x2a20b4[_0x4f56f4]=_0x2a20b4[_0x4f56f4]['concat'](_0x2a20b4[_0x200073]),_0x2a20b4[_0x200073]=[];}for(const _0x42f692 of _0x2a20b4)for(let _0x383d7b=0x0;_0x383d7b<_0x42f692['length'];_0x383d7b++){const _0x9e0ee8=_0x42f692[_0x383d7b+0x1]||null;_0x42f692[_0x383d7b]['next']!==_0x9e0ee8&&(_0x42f692[_0x383d7b]['next']=_0x9e0ee8);}for(const _0x2b0fec of _0x2a20b4)for(let _0xeca9c4=0x0;_0xeca9c4<_0x2b0fec['length'];_0xeca9c4++){const _0x251997=_0x2b0fec[_0xeca9c4-0x1]||null;_0x2b0fec[_0xeca9c4]['previous']!==_0x251997&&(_0x2b0fec[_0xeca9c4]['previous']=_0x251997);}function _0x198ea8(_0x6c405a,_0x5571ae){if(_0x6c405a[0x0]['attributes']['groupId']!==_0x5571ae[0x0]['attributes']['groupId']&&_0x6c405a[0x0]['author']!==_0x5571ae[0x0]['author'])return!0x1;if(!function(_0x589e11,_0x59a422){if(!_0x589e11['hasComments']&&!_0x59a422['hasComments'])return!0x0;if(_0x589e11['hasComments']&&_0x59a422['hasComments'])return!0x1;if(_0x589e11['hasComments']&&_0x59a422['createdAt']<_0x589e11['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x59a422['hasComments']&&_0x589e11['createdAt']<_0x59a422['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x6c405a[0x0],_0x5571ae[0x0]))return!0x1;const _0x42d09a=Gt(_0x6c405a[0x0]['attributes'],['groupId','trackingSessionId']),_0x1325f0=Gt(_0x5571ae[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xbcf3a8(_0x42d09a,_0x1325f0))return!0x1;if(_0x6c405a[0x0]['attributes']['groupId']==_0x5571ae[0x0]['attributes']['groupId'])return!0x0;if(_0x6c405a[0x0]['attributes']['trackingSessionId']!==_0x5571ae[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x6c405a['every'](_0x318dac=>_0x5571ae['some'](_0x22f77b=>_0x318dac['getFirstRange']()['isEqual'](_0x22f77b['getFirstRange']())))&&_0x5571ae['every'](_0xf7fa23=>_0x6c405a['some'](_0x22811e=>_0xf7fa23['getFirstRange']()['isEqual'](_0x22811e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x22528a){const _0x35e0a4=Array['from'](_0x22528a),_0x582375=this['getSuggestions']({'skipNotAttached':!0x0}),_0x26aa9d=_0x582375['filter'](_0x261b88=>!_0x22528a['has'](_0x261b88)),_0x2dad9b=new Map(_0x35e0a4['map'](_0x34f5da=>[_0x34f5da,this['_suggestionFactory']['getSuggestionCallback'](_0x34f5da['type'],_0x34f5da['subType'],'join')])),_0x39cfa5=new Map(_0x582375['map'](_0x51e8dc=>[_0x51e8dc,_0x51e8dc['getRanges']()]));for(let _0x1509b0=0x0;_0x1509b0<_0x35e0a4['length'];_0x1509b0++){if(_0x4e227e(this,_0x35e0a4[_0x1509b0],_0x35e0a4,_0x1509b0+0x1))return!0x0;}for(let _0x9eec4d=0x0;_0x9eec4d<_0x35e0a4['length'];_0x9eec4d++){if(_0x4e227e(this,_0x35e0a4[_0x9eec4d],_0x26aa9d,0x0))return!0x0;}return!0x1;function _0x4e227e(_0x4a2cfa,_0x4db4bb,_0x9ad596,_0x5b69f0){for(let _0x29df9b=_0x5b69f0;_0x29df9b<_0x9ad596['length'];_0x29df9b++){const _0x4b2edb=_0x9ad596[_0x29df9b];if(_0x4b2edb['type']!==_0x4db4bb['type']||_0x4b2edb['author']['id']!==_0x4db4bb['author']['id']||_0x4b2edb['subType']!==_0x4db4bb['subType'])continue;if(!ee(_0x4db4bb,_0x4b2edb))continue;if('attribute'==_0x4db4bb['type']&&_0x4db4bb['data']['oldValue']!=_0x4b2edb['data']['oldValue'])continue;if('attribute'==_0x4db4bb['type']&&_0x4a2cfa['_isBlockAttribute'](_0x4db4bb['data']['key']))continue;if('formatBlock'==_0x4db4bb['type']){const _0x1178cf=_0x4a2cfa['editor']['model'],_0xf5808d=_0x4db4bb['getContainedElement']();if(_0xf5808d&&(_0x1178cf['schema']['isObject'](_0xf5808d)||_0x1178cf['schema']['isLimit'](_0xf5808d)))continue;}const _0x51e71d=_0x2dad9b['get'](_0x4db4bb),_0x254080=_0x39cfa5['get'](_0x4db4bb),_0x2cf295=_0x39cfa5['get'](_0x4b2edb),_0x3953ac=_0x4db4bb['commentThread']&&_0x4db4bb['commentThread']['length'],_0x544d42=_0x4b2edb['commentThread']&&_0x4b2edb['commentThread']['length'];if(!_0x3953ac&&_0x51e71d(_0x2cf295,_0x254080))return _0x4a2cfa['_joinSuggestions'](_0x4b2edb,_0x4db4bb),_0x39cfa5['delete'](_0x4db4bb),!0x0;if(!_0x544d42&&_0x51e71d(_0x254080,_0x2cf295))return _0x4a2cfa['_joinSuggestions'](_0x4db4bb,_0x4b2edb),_0x39cfa5['delete'](_0x4b2edb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x495886,_0x10d4eb){if(_0x495886['isMultiRange']){for(const _0x5cb79d of _0x10d4eb['getRanges']())_0x495886['addRange'](_0x5cb79d);}else{const _0x5a7992=_0x10d4eb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x495886,this['_model']['createRange'](_0x495886['getFirstRange']()['start'],_0x5a7992));}_0x10d4eb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x70c093,_0x546d2b,_0x1e7d25){const _0x4c23e1=_0x70c093['startsWith']('format')||_0x70c093['startsWith']('attribute')?'FORMATTING':_0x70c093['toUpperCase']();return o(this['editor']['locale'],_0x546d2b+'_'+_0x4c23e1+'_SUGGESTION_ANNOUNCEMENT',_0x1e7d25);}['_initAriaMarkerChangeAnnouncements'](){const _0x39c1fc=this['editor'];if(!_0x39c1fc['ui'])return;const {ariaLiveAnnouncer:_0x56866e}=_0x39c1fc['ui'];_0x18e029(this['_model'],({left:_0x9fbcb9,entered:_0x3fce4e})=>{for(const _0x111557 of _0x9fbcb9){const {group:_0x571272,type:_0x3f9805}=this['_splitMarkerName'](_0x111557['name']);if('suggestion'===_0x571272){_0x56866e['announce'](this['_getMarkerAnnouncementText'](_0x3f9805,'LEAVE'));break;}}for(const _0x5ca3e9 of _0x3fce4e){const {group:_0x2fec63,type:_0x358529}=this['_splitMarkerName'](_0x5ca3e9['name']);if('suggestion'===_0x2fec63){_0x56866e['announce'](this['_getMarkerAnnouncementText'](_0x358529,'ENTER',_0x59e26d(_0x23d5dc)));break;}}});}['_processAttributeChanges'](_0x3f7edd){if(this['_recordAttributeSuggestions'])return!0x1;const _0x54804b=this['editor'],_0xee8ec4=_0x54804b['model']['document']['differ']['getChanges']();if(0x0==_0xee8ec4['length'])return!0x1;const _0x339c78=[],_0x77aab6=_0xee8ec4['filter'](_0x38ea4b=>'attribute'==_0x38ea4b['type']),_0x12aab0=_0xee8ec4['filter'](_0x16184d=>'insert'==_0x16184d['type']&&'$text'!=_0x16184d['name']),_0x5398c7=_0xee8ec4['filter'](_0x3372d3=>'remove'==_0x3372d3['type']&&'$text'!=_0x3372d3['name']);for(const _0x5c5e8a of _0x77aab6)_0x339c78['push']({'key':_0x5c5e8a['attributeKey'],'newValue':_0x5c5e8a['attributeNewValue'],'oldValue':_0x5c5e8a['attributeOldValue'],'range':Yt(_0x5c5e8a['range'],_0x54804b['model'])});for(const _0xdc4e18 of _0x12aab0){const _0x3c45b4=_0x5398c7['find'](_0xf908b2=>_0xf908b2['position']['isEqual'](_0xdc4e18['position']));_0x3c45b4&&_0x339c78['push']({'key':m,'newValue':_0xdc4e18['name'],'oldValue':_0x3c45b4['name'],'range':_0x54804b['model']['createRangeOn'](_0xdc4e18['position']['nodeAfter'])});}return 0x0!=_0x339c78['length']&&this['_reduceExistingSuggestions'](_0x3f7edd,_0x339c78);}['_processAttributeSuggestions'](_0x1c3d9a){let _0x992f1d=!0x1;const _0x3dd21a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x7cfbdd=>_0x7cfbdd['data']['newRange']&&_0x7cfbdd['name']['startsWith']('suggestion:attribute:'));for(const _0x39c0c9 of _0x3dd21a){const {subType:_0xdf0500,id:_0x635b2c}=this['_splitMarkerName'](_0x39c0c9['name']),_0x224148=_0xdf0500['split']('|')[0x0];for(const _0x139f6f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x139f6f['id']!=_0x635b2c&&'attribute'==_0x139f6f['type']&&_0x139f6f['data']&&_0x139f6f['data']['key']==_0x224148&&_0x139f6f['getFirstRange']()['isIntersecting'](_0x39c0c9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x139f6f,_0x39c0c9['data']['newRange'],_0x1c3d9a),_0x992f1d=!0x0);}return _0x992f1d;}['recordAttributeChanges'](_0x2debbc){this['_recordAttributeSuggestions']=!0x0,_0x2debbc();}['_isRegisteredAttribute'](_0x2a9fa0){const _0x5a34a1=this['_isBlockAttribute'](_0x2a9fa0),_0x438dbd=this['_isInlineAttribute'](_0x2a9fa0);return _0x5a34a1||_0x438dbd;}['_reduceExistingSuggestions'](_0x2decc6,_0x9beee){if(0x0==_0x9beee['length'])return!0x1;let _0x1ae900=!0x1;for(const _0x50f236 of _0x9beee){const _0x22fe2e=this['_findSuggestions'](_0x50f236['range'],'attribute')['filter'](_0x4ae0f7=>!_0x4ae0f7['meta']['isNextTo'])['map'](_0x4217a4=>_0x4217a4['suggestion']),_0x3d2ce0=_0x3623f6({'newValue':_0x50f236['newValue']});_0x22fe2e['filter'](_0x245861=>{const [_0x3c7c65,_0x1f2870]=_0x245861['subType']['split']('|');return _0x3c7c65==_0x50f236['key']&&_0x1f2870!=_0x3d2ce0;})['forEach'](_0x412fc8=>{this['_reduceSuggestionAttributeRange'](_0x412fc8,_0x50f236['range'],_0x2decc6),_0x1ae900=!0x0;});}return _0x1ae900;}['_reduceSuggestionAttributeRange'](_0xb4c947,_0x1d6801,_0x38ddd4){const _0x56af08=_0xb4c947['getFirstRange']()['getDifference'](_0x1d6801);0x0!==_0x56af08['length']?0x1!==_0x56af08['length']?this['_breakSuggestionMarker'](_0xb4c947,_0x1d6801['start'],_0x1d6801['end']):this['_setSuggestionRange'](_0xb4c947,_0x56af08[0x0]):_0x38ddd4['removeMarker'](_0xb4c947['getFirstMarker']());}}class Lt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x9f4c16){this['_editor']=_0x9f4c16,this['_model']=_0x9f4c16['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x213ec3,_0x2392f7,_0x22473f,_0x4629c5,_0xca1f91,_0x3e87cb,_0x126bf0){return new R(this['_model'],{'type':_0x213ec3,'subType':_0x2392f7,'id':_0x22473f,'originalSuggestionId':_0x126bf0,'author':_0x4629c5,'creator':_0x4629c5,'attributes':_0xca1f91,'onAttributesChange':_0x3e87cb,'onAccept':(..._0x3e3a7a)=>this['getSuggestionCallback'](_0x213ec3,_0x2392f7,'accept')(..._0x3e3a7a),'onDiscard':(..._0x56be65)=>this['getSuggestionCallback'](_0x213ec3,_0x2392f7,'discard')(..._0x56be65)});}['registerCustomCallback'](_0x51aa7b,_0x76235,_0x43cc41,_0x474635){const _0x49d482=_0x51aa7b+':'+_0x76235+':'+_0x43cc41;this['_customCallbacks']['set'](_0x49d482,_0x474635);}['getSuggestionCallback'](_0x2711a1,_0x326567,_0x19a047){const _0x7370a3=_0x2711a1+':'+_0x326567+':'+_0x19a047;return this['_customCallbacks']['get'](_0x7370a3)||this['_defaultCallbacks']['get'](_0x2711a1+':'+_0x19a047);}['_registerDefaultCallbacks'](){const _0x1d31a3=()=>!0x1,_0x56a3af=_0x360ef5=>{_0x360ef5['sort']((_0x25018f,_0x5b5d42)=>_0x25018f['start']['isBefore'](_0x5b5d42['start'])?0x1:-0x1),this['_model']['change'](_0x274549=>{for(const _0x4eda27 of _0x360ef5){let _0xe3272e;_0xe3272e=_0x4eda27['end']['isAtEnd']&&_0x4eda27['end']['parent']==_0x4eda27['start']['nodeAfter']?_0x274549['createSelection'](_0x4eda27['start']['nodeAfter'],'on'):_0x274549['createSelection'](_0x4eda27),this['_model']['deleteContent'](_0xe3272e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3844fb=(_0x5406bd,_0x1c0503)=>{_0x1c0503&&this['_model']['change'](_0x283354=>{const {commandName:_0x4ade24,commandParams:_0xfe8470=[]}=_0x1c0503,_0x135c6a=_0x5406bd['map'](_0x4cdda6=>(Kt(_0x4cdda6)&&(_0x4cdda6=this['_model']['createRange'](_0x4cdda6['end'])),_0x4cdda6))['filter'](_0x4dd329=>'$graveyard'!==_0x4dd329['root']['rootName']);if(_0x135c6a['length']<0x1)return;const _0xb67f84=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x23103a=>_0x35191f['fromRange'](_0x23103a));_0x283354['setSelection'](_0x135c6a);for(const _0x3b2910 of this['_editor']['commands']['commands']())_0x3b2910['refresh']();_0xfe8470['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4ade24,..._0xfe8470);const _0x185515=_0xb67f84['filter'](_0x3176fb=>'$graveyard'!=_0x3176fb['root']['rootName']);_0x185515['length']>0x0&&_0x283354['setSelection'](_0x185515);for(const _0x1eae23 of _0xb67f84)_0x1eae23['detach']();});},_0x1b34ba=(_0x4c8331,_0x41b3f3)=>0x1==_0x4c8331['length']&&0x1==_0x41b3f3['length']&&_0x4c8331[0x0]['end']['isEqual'](_0x41b3f3[0x0]['start']),_0x50d4d0=(_0x7130b6,_0x5579ee,_0xaf38d8,_0x5d1e3a)=>te(_0x7130b6,_0x5579ee,_0xaf38d8,_0x5d1e3a)?[_0x7130b6,_0x5579ee]:te(_0x5579ee,_0x7130b6,_0x5d1e3a,_0xaf38d8)?[_0x5579ee,_0x7130b6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1d31a3),this['_defaultCallbacks']['set']('insertion:discard',_0x56a3af),this['_defaultCallbacks']['set']('insertion:join',_0x1b34ba),this['_defaultCallbacks']['set']('insertion:chain',_0x50d4d0),this['_defaultCallbacks']['set']('deletion:accept',_0x56a3af),this['_defaultCallbacks']['set']('deletion:discard',_0x1d31a3),this['_defaultCallbacks']['set']('deletion:join',_0x1b34ba),this['_defaultCallbacks']['set']('deletion:chain',_0x50d4d0),this['_defaultCallbacks']['set']('formatInline:accept',_0x3844fb),this['_defaultCallbacks']['set']('formatInline:discard',_0x1d31a3),this['_defaultCallbacks']['set']('formatInline:join',_0x1b34ba),this['_defaultCallbacks']['set']('formatInline:chain',_0x1d31a3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3844fb),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1d31a3),this['_defaultCallbacks']['set']('formatBlock:join',_0x1b34ba),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1d31a3),this['_defaultCallbacks']['set']('attribute:accept',_0x1d31a3),this['_defaultCallbacks']['set']('attribute:discard',(_0x5bfb63,_0x18cc5d)=>{if(!_0x18cc5d)return;const _0x4b6f5b=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x55ec96=>{if(_0x18cc5d['key']==m)for(const _0x4e94ad of _0x5bfb63){const _0x4f90f5=_0x4e94ad['start']['nodeAfter'],_0x167a4d=_0x18cc5d['oldValue'];_0x55ec96['rename'](_0x4f90f5,_0x167a4d);}else{if(_0x4b6f5b['_isBlockAttribute'](_0x18cc5d['key'])){for(const _0x4b5e91 of _0x5bfb63)void 0x0!==_0x18cc5d['oldValue']?_0x55ec96['setAttribute'](_0x18cc5d['key'],_0x18cc5d['oldValue'],_0x4b5e91['start']['nodeAfter']):_0x55ec96['removeAttribute'](_0x18cc5d['key'],_0x4b5e91['start']['nodeAfter']);}else{for(const _0x5257bc of _0x5bfb63)_0x18cc5d['oldValue']?_0x55ec96['setAttribute'](_0x18cc5d['key'],_0x18cc5d['oldValue'],_0x5257bc):_0x55ec96['removeAttribute'](_0x18cc5d['key'],_0x5257bc);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1b34ba);}}function Jt(_0x35a538,_0x57f9b6,_0x487fb9){for(const _0xaaa1f9 of _0x57f9b6['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xaaa1f9['root']==_0xaaa1f9)return!0x1;if(!_0x487fb9['containsItem'](_0xaaa1f9))return!0x1;if(_0x35a538['isObject'](_0xaaa1f9)||_0x35a538['isLimit'](_0xaaa1f9))return!0x0;}return!0x1;}function Kt(_0x45f994){return _0x45f994['end']['parent']==_0x45f994['start']['nodeAfter']&&_0x45f994['end']['isAtStart'];}function Ht(_0x16948b,_0x385c65,_0x24536b,_0x5b3554){const _0x5d8b4f=_0x54505d=>!_0x54505d['item']['is']('$textProxy')&&!_0x5b3554['isObject'](_0x54505d['item']),_0x9e8610=_0x16948b['start']['getLastMatchingPosition'](_0x5d8b4f),_0xdcead8=_0x16948b['end']['getLastMatchingPosition'](_0x5d8b4f,{'direction':'backward'});return(!_0x16948b['start']['isEqual'](_0x9e8610)||!_0x16948b['end']['isEqual'](_0xdcead8))&&(_0x9e8610['isBefore'](_0xdcead8)?_0x24536b['updateMarker'](_0x385c65,{'range':_0x24536b['createRange'](_0x9e8610,_0xdcead8)}):_0x24536b['removeMarker'](_0x385c65),!0x0);}function Wt(_0x299566){return _0x3623f6(_0x299566);}function qt(_0x5aa6cb){const _0x571d86=_0x5aa6cb['start']['nodeAfter'];return _0x571d86&&_0x571d86['is']('element');}function zt(_0x5da4fa){return Kt(_0x5da4fa)||function(_0x1fd812){return _0x1fd812['start']['parent']==_0x1fd812['end']['nodeBefore']&&_0x1fd812['start']['isAtEnd'];}(_0x5da4fa);}function Qt(_0x25d4bf,_0x1337f8){try{const _0x413e38=_0x25d4bf['getRange']();for(const _0x95dad of _0x1337f8)if(_0x25d4bf!==_0x95dad&&_0x413e38&&_0x413e38['isIntersecting'](_0x95dad['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Xt(_0x36a8fb,_0x3b847a){const _0x50aebf=_0x36a8fb['end']['nodeBefore'];if(_0x50aebf&&_0x50aebf['is']('element')&&_0x3b847a['schema']['isBlock'](_0x50aebf)&&!_0x3b847a['schema']['isObject'](_0x50aebf)){const _0x5ca169=_0x3b847a['createPositionAt'](_0x50aebf,'end');return _0x3b847a['createRange'](_0x36a8fb['start'],_0x5ca169);}return _0x36a8fb;}function Yt(_0x258ca8,_0x1d5553){return null==_0x258ca8['end']['nodeBefore']&&_0x258ca8['end']['parent']==_0x258ca8['start']['nodeAfter']?Zt(_0x258ca8['start']['nodeAfter'],_0x1d5553):_0x258ca8;}function Zt(_0x2e9145,_0x380c84){const _0x31dd7f=_0x380c84['schema']['isObject'](_0x2e9145)||_0x380c84['schema']['isSelectable'](_0x2e9145);return _0x380c84['createRange'](_0x380c84['createPositionAt'](_0x2e9145,'before'),_0x31dd7f?_0x380c84['createPositionAfter'](_0x2e9145):_0x380c84['createPositionAt'](_0x2e9145,'end'));}function te(_0x4a9a10,_0x33f45e,_0x24efbc,_0xd829e){return!!ee(_0x4a9a10,_0x33f45e)&&_0x24efbc['end']['isEqual'](_0xd829e['start']);}function ee(_0x24eebd,_0x19b504){if(!_0x24eebd['_isDataLoaded']||!_0x19b504['_isDataLoaded'])return!0x1;const _0x6815b2=new Set(Object['keys'](_0x24eebd['attributes'])),_0x3962b6=new Set(Object['keys'](_0x19b504['attributes']));if(_0x6815b2['delete']('groupId'),_0x3962b6['delete']('groupId'),0x0==_0x6815b2['size']&&0x0==_0x3962b6['size'])return!0x0;if(_0x6815b2['size']!=_0x3962b6['size'])return!0x1;const _0x50b072={..._0x24eebd['attributes']},_0xb3185b={..._0x19b504['attributes']};return delete _0x50b072['groupId'],delete _0xb3185b['groupId'],JSON['stringify'](_0x50b072)==JSON['stringify'](_0xb3185b);}function ie(_0x45ea82,_0x4bb6c5){const _0x34a6cd=ne(_0x45ea82['attributes']),_0x219a15=ne(_0x4bb6c5);if(!_0x45ea82['_isDataLoaded'])return!0x1;for(const _0x2c17b7 of Object['keys'](_0x219a15))if(!_0xbcf3a8(_0x34a6cd[_0x2c17b7],_0x219a15[_0x2c17b7]))return!0x1;return!0x0;}function ne(_0x5af057){const _0x15d650=Object['assign']({},_0x5af057);return delete _0x15d650['skipNestingCheck'],delete _0x15d650['tablePasteChainId'],_0x15d650;}function se(_0x198884){return _0x198884['split']('|')[0x0];}class be extends/* #__PURE__ -- @preserve */
26
- _0x525c04(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5ea0ba,_0xe3bb52,_0x433b79,_0x460307){super(),this['model']=_0xe3bb52,this['view']=_0x433b79,this['commentThreadController']=_0x460307,this['_editor']=_0x5ea0ba,this['_acceptCommand']=_0x5ea0ba['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5ea0ba['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3acf46,_0x4558f5)=>_0x3acf46||_0x4558f5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x482993=>_0x482993&&this['_editor']['model']['canEditAt'](_0xe3bb52['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x19ea75=>_0x19ea75&&this['_editor']['model']['canEditAt'](_0xe3bb52['getRanges']())),this['_pendingAction']=null,_0x433b79['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x433b79,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x433b79,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x433b79,'change:isDirty',()=>{_0x433b79['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 _0x268272=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x268272);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x302463{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4a19d8,_0x28b975,_0x435a1a,_0xa68d21){super(_0x4a19d8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x567ab5(_0x4a19d8,o(_0x4a19d8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x28b975['authoredAt']),this['bind']('authoredAt')['to'](_0x28b975),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',_0x28b975,'authoredAt',this,'descriptionParts',(_0x6dd4f5,_0x5140e4,_0x4c8c24)=>{const _0x5e0a42=_0x4c8c24['map'](_0x3c7e95=>ls(_0x3c7e95['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x6dd4f5-0x1,_0x28b975['author']['name'],_0x5140e4?_0xa68d21['formatDateTime'](_0x5140e4):'',new DOMParser()['parseFromString'](_0x5e0a42,'text/html')['body']['textContent']]);}),this['focusables']=new _0x180284(),this['focusTracker']=new _0x1bc739(),this['keystrokes']=new _0x31729b(),this['focusCycler']=new _0x4a1c64({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x571466=>_0x571466['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x28b975,this['_localUser']=_0x435a1a,this['_config']=_0xa68d21,_0xa68d21['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x48487a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x541524}=this['_config'];this['commentsListView']=new _0x541524(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',_0x2d6000=>_0x2d6000+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3b6459,_0x4a4337)=>_0x3b6459||!!_0x4a4337);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x248557}=this['_config'],_0x55e4f6=new _0x248557(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5cd486=_0x55e4f6['commentInputView'];return _0x55e4f6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5cd486,'value',(_0x119549,_0x2fa580,_0x1a3b31)=>!!_0x1a3b31||_0x119549&&!_0x2fa580),_0x5cd486['on']('submit',(_0x3ee81d,_0x3ee096)=>{this['fire']('addComment',_0x3ee096),_0x5cd486['editor']['setData']('');}),_0x5cd486['on']('cancel',()=>this['focus']()),_0x5cd486['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x55e4f6;}}class Te extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x1aac25,_0x530c56,_0xa74538,_0x37de0e){super(_0x1aac25,_0x530c56,_0xa74538,_0x37de0e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x129ca9=>_0x129ca9&&_0x129ca9[0x0]?_0x129ca9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x171017,_0xc2568a)=>{let _0x2ad345='';for(const _0x4c1026 of _0x171017)_0x2ad345+='<p>'+ls(_0x4c1026['content'],_0x4c1026['color'])+'</p>';return _0xc2568a?_0x2ad345:_0x50f9b3(_0x2ad345,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x37de0e['SuggestionView'](_0x1aac25,_0x530c56,{'formatDateTime':_0x37de0e['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 _0x437f9b=this['bindTemplate'],_0x13cc83=[this['suggestionView']];return this['commentsListView']&&_0x13cc83['push'](this['commentsListView']),this['commentThreadInputView']&&_0x13cc83['push'](this['commentThreadInputView']),_0x13cc83['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x437f9b['if']('isActive','ck-suggestion-wrapper--active'),_0x437f9b['to']('type',_0x4e1fe3=>'ck-suggestion-'+_0x4e1fe3),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':_0x437f9b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x13cc83};}['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 Le extends _0x302463{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3188f8,_0x477d49,_0x6b50a3){super(_0x3188f8),this['_model']=_0x477d49,this['_config']=_0x6b50a3,this['set']('description',''),this['bind']('authoredAt')['to'](_0x477d49),this['acceptButton']=this['_createButton'](o(_0x3188f8,'Accept\x20suggestion'),_0x5ba9a4,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3188f8,'Discard\x20suggestion'),_0x410e59,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4a34b5(_0x3188f8,_0x477d49['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x180284([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1bc739(),this['keystrokes']=new _0x31729b(),this['focusCycler']=new _0x4a1c64({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x460020=>_0x460020['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x32e40b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x32e40b['innerHTML']=this['description'],this['on']('change:description',(_0x693956,_0x3e4a30,_0x4b9983)=>{_0x32e40b['innerHTML']=_0x4b9983;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x138f55=this['bindTemplate'],_0x5b52ef=[{'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':_0x138f55['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x138f55['to']('authoredAt',_0x4f6a7b=>this['_config']['formatDateTime'](_0x4f6a7b))}]}]},{'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']&&_0x5b52ef['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':_0x5b52ef}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x553bdd,_0x2dd3f1,_0x4d2f6f,_0x4cb53c,_0x17d82a){const _0x35f4c9=new _0x1ed099(this['locale']);return _0x35f4c9['set']({'label':_0x553bdd,'icon':_0x2dd3f1,'tooltip':!0x0,'tooltipPosition':_0x17d82a}),_0x35f4c9['extendTemplate']({'attributes':{'class':_0x4d2f6f}}),_0x35f4c9['on']('execute',()=>{this['fire'](_0x4cb53c,this['_model']['id']);}),_0x35f4c9;}['_setupKeyboardNavigation'](){const _0x3f67ba=this['element'];this['keystrokes']['listenTo'](_0x3f67ba);for(const _0x2b6066 of this['focusables'])this['focusTracker']['add'](_0x2b6066['element']),this['keystrokes']['listenTo'](_0x2b6066['element']);this['keystrokes']['set']('enter',(_0xb1808b,_0x4d0ae1)=>{_0x3f67ba===_0xb1808b['target']&&(this['focusCycler']['focusFirst'](),_0x4d0ae1());}),this['keystrokes']['set']('esc',(_0x519eb5,_0x12ea15)=>{_0x3f67ba!==_0x519eb5['target']&&(this['focus'](),_0x12ea15());});}}class u extends _0x1bca86{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x52e77f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c1cb8){super(_0x3c1cb8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xd9ed01=this['editor']['config'];_0xd9ed01['define']('trackChanges.SuggestionThreadView',Te),_0xd9ed01['define']('trackChanges.SuggestionView',Le),_0xd9ed01['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xd9ed01['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xebde14,_0x503369){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1e31ab,_0x3d5b84]of this['_handleControllerBuffer']){const _0x1ca9dd=this['_suggestionToController']['has'](_0x1e31ab);_0x1ca9dd||_0x3d5b84?_0x1ca9dd&&_0x3d5b84&&this['_destroyController'](_0x1e31ab):this['_initializeController'](_0x1e31ab);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xebde14,_0x503369);}['init'](){const _0x3177a7=this['editor'],_0xf2ba81=_0x3177a7['plugins']['get']('TrackChangesEditing'),_0x5ea29f=_0x3177a7['plugins']['get']('Annotations'),_0x38c3fb=_0x3177a7['plugins']['get']('EditorAnnotations'),_0x123752=_0x3177a7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x38c3fb['addSourceCollector'](()=>{const _0x426644=[];for(const [_0x18a258,_0x412c01]of Array['from'](this['_suggestionToController'])){const _0x58ce2a=_0x18a258['getAllAdjacentSuggestions'](),_0x75f2d6=[];for(const _0x57e19e of _0x58ce2a){if(!_0x57e19e['isInContent'])continue;if(_0x57e19e['isMultiRange']){_0x75f2d6['push'](..._0x57e19e['getRanges']());continue;}const _0xfd3a67=_0x57e19e['getFirstRange']();if(_0x75f2d6['length']>0x0){const _0x3abfff=_0x75f2d6[0x0]['getJoined'](_0xfd3a67);if(_0x3abfff){_0x75f2d6[0x0]=_0x3abfff;continue;}}_0x75f2d6['push'](_0xfd3a67);}_0x426644['push']([_0x412c01['view'],_0x75f2d6]);}return _0x426644;}),this['listenTo'](_0xf2ba81,'suggestionLoaded',(_0x591d13,_0x3a8b88)=>{this['listenTo'](_0x3a8b88,'change:previous',(_0x1d3612,_0x3cabb7,_0x2a6390,_0x53603f)=>{_0x3a8b88['isInContent']&&(null==_0x2a6390?(this['_updateController'](_0x53603f['head']),this['_handleSuggestionControllerDelayed'](_0x3a8b88,!0x1)):(this['_updateController'](_0x2a6390['head']),null==_0x53603f&&this['_handleSuggestionControllerDelayed'](_0x3a8b88,!0x0)));}),null!==_0x3a8b88['previous']?this['_updateController'](_0x3a8b88['head']):this['_handleSuggestionControllerDelayed'](_0x3a8b88,!0x1);}),this['listenTo'](_0xf2ba81,'suggestionUnloaded',(_0x2c248b,_0x2a6812,_0x271556)=>{this['stopListening'](_0x2a6812,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2a6812),this['_suggestionToController']['has'](_0x2a6812)&&this['_destroyController'](_0x2a6812),_0x271556&&this['_updateController'](_0x271556['head']);}),this['listenTo'](_0xf2ba81,'suggestionChanged',(_0x1f246c,_0x1d06fc)=>{this['_updateController'](_0x1d06fc);}),this['listenTo'](_0x5ea29f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x123752,'addComment',(_0x2eaf38,{threadId:_0x5d7ba3,isFromAdapter:_0x477564})=>{if(_0x477564||!_0xf2ba81['hasSuggestion'](_0x5d7ba3))return;const _0x157727=_0xf2ba81['getSuggestion'](_0x5d7ba3);this['_suggestionToController']['get'](_0x157727)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1ef2c4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd8f0fb;for(const _0x5e8dde in _0x1ef2c4){const _0xc16d41=_0x5e8dde,_0xb96cfc=_0x1ef2c4[_0xc16d41];if('trackChangesLicenseKeyValid'==_0xb96cfc||'trackChangesLicenseKeyInvalid'==_0xb96cfc||'trackChangesLicenseKeyExpired'==_0xb96cfc||'trackChangesLicenseKeyDomainLimit'==_0xb96cfc||'trackChangesLicenseKeyNotAllowed'==_0xb96cfc||'trackChangesLicenseKeyEvaluationLimit'==_0xb96cfc||'trackChangesLicenseKeyTrialLimit'==_0xb96cfc||'trackChangesLicenseKeyUsageLimit'==_0xb96cfc){delete _0x1ef2c4[_0xc16d41],_0xd8f0fb=_0xb96cfc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xd8f0fb&&_0x1ef2c4['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xd8f0fb&&_0x1ef2c4['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xd8f0fb&&_0x1ef2c4['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xd8f0fb&&_0x1ef2c4['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xd8f0fb&&_0x1ef2c4['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xd8f0fb&&_0x1ef2c4['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xd8f0fb&&_0x1ef2c4['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x369b4a){const _0x355c27=this['_suggestionToController']['get'](_0x369b4a);if(!_0x355c27)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x355c27['view'])||null;}['getSuggestionForAnnotation'](_0x3c623d){const _0x13837e=this['_viewToController']['get'](_0x3c623d['innerView']);return _0x13837e?_0x13837e['model']:null;}['_refreshActiveMarkers'](){const _0x520153=this['editor']['plugins']['get']('Annotations'),_0x51bd05=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d3bd5=Array['from'](_0x520153['activeAnnotations'],_0x2339d5=>_0x2339d5['innerView'])['filter'](_0x514565=>this['_viewToController']['has'](_0x514565)),_0x2e2582=[];for(const _0x1594f9 of _0x1d3bd5){const _0x3132d8=this['_viewToController']['get'](_0x1594f9)['model']['getAllAdjacentSuggestions']();_0x2e2582['push'](..._0x3132d8['reduce']((_0x1572f4,_0x59be12)=>[..._0x1572f4,..._0x59be12['getMarkerNames']()],[]));}_0x51bd05['activeMarkers']=_0x2e2582;}['_addUIComponentsToFactory'](){const _0x339b0b=this['editor'],_0x1c5133=_0x339b0b['locale'],_0x45991f=o(_0x1c5133,'Track\x20changes'),_0x55b070=new _0xeedcbe([{'type':'switchbutton','model':new _0x277d09({'withText':!0x0,'isToggleable':!0x0,'label':_0x45991f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x277d09({'withText':!0x0,'label':o(_0x1c5133,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x277d09({'withText':!0x0,'label':o(_0x1c5133,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x277d09({'withText':!0x0,'label':o(_0x1c5133,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x277d09({'withText':!0x0,'label':o(_0x1c5133,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x339b0b['plugins']['has']('TrackChangesPreview')&&_0x55b070['addMany']([{'type':'separator'},{'type':'button','model':new _0x277d09({'withText':!0x0,'label':o(_0x1c5133,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3e90ff of _0x55b070)if(ve(_0x3e90ff)){const _0x397ed9=_0x339b0b['commands']['get'](_0x3e90ff['model']['commandName']);_0x3e90ff['model']['bind']('isOn','isEnabled')['to'](_0x397ed9,'value','isEnabled');}_0x339b0b['ui']['componentFactory']['add']('trackChanges',_0x450cb3=>this['_createToolbarButton'](_0x450cb3,_0x55b070,_0x45991f)),_0x339b0b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4ac93c=>this['_createMenuBarMenu'](_0x4ac93c,_0x55b070,_0x45991f));}['_createToolbarButton'](_0x2a4033,_0x1d1b69,_0x1a2bff){const _0x4fafb9=_0x4694c4(_0x2a4033,_0x44697c),_0x2a4b88=this['editor']['commands']['get']('trackChanges');_0x4fafb9['buttonView']['set']({'tooltip':_0x1a2bff,'label':_0x1a2bff,'icon':_0x140ece}),_0x4fafb9['buttonView']['bind']('isOn')['to'](_0x2a4b88,'value'),_0x4fafb9['buttonView']['on']('execute',()=>{_0x2a4b88['execute'](),this['editor']['editing']['view']['focus']();}),_0xe21f8e(_0x4fafb9,_0x1d1b69,{'role':'menu'});const _0x3ea275=[];for(const _0x9dc53e of _0x1d1b69)ve(_0x9dc53e)&&_0x3ea275['push'](this['editor']['commands']['get'](_0x9dc53e['model']['commandName']));const _0x3f873f=_0x4fafb9['buttonView'];return _0x3f873f['actionView']['unbind']('isEnabled'),_0x3f873f['arrowView']['unbind']('isEnabled'),_0x3f873f['actionView']['bind']('isEnabled')['to'](_0x2a4b88,'isEnabled'),_0x3f873f['arrowView']['bind']('isEnabled')['toMany'](_0x3ea275,'isEnabled',(..._0xf4005b)=>_0xf4005b['some'](_0x3f387b=>_0x3f387b)),_0x4fafb9['on']('execute',_0x97d698=>{this['editor']['execute'](_0x97d698['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4fafb9;}['_createMenuBarMenu'](_0x3f9f0b,_0x56518b,_0x11a787){const _0x2968d=new _0x257436(_0x3f9f0b),_0x5b7e55=this['editor']['commands']['get']('trackChanges');_0x2968d['buttonView']['set']({'label':_0x11a787,'icon':_0x140ece});const _0x5b7e32=new _0x579a05(_0x3f9f0b);for(const _0x150448 of _0x56518b){if('separator'==_0x150448['type']){_0x5b7e32['items']['add'](new _0x509549(_0x3f9f0b));continue;}const _0x4ccd5b=new _0x2989f2(_0x3f9f0b,_0x2968d),_0x2ee763=new _0x553772(_0x3f9f0b),_0x4f9025=_0x150448['model'];_0x2ee763['bind'](...Object['keys'](_0x4f9025))['to'](_0x4f9025),_0x2ee763['delegate']('execute')['to'](_0x2968d),_0x2ee763['on']('execute',()=>{this['editor']['execute'](_0x4f9025['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ccd5b['children']['add'](_0x2ee763),_0x5b7e32['items']['add'](_0x4ccd5b);}return _0x2968d['bind']('isEnabled')['to'](_0x5b7e55,'isEnabled'),_0x2968d['panelView']['children']['add'](_0x5b7e32),_0x2968d;}['_initializeController'](_0x4f15d3){const _0x497f75=this['editor'],_0x253374=_0x497f75['config'],_0x4413f6=_0x497f75['plugins']['get']('Annotations'),_0x5d7c59=_0x497f75['plugins']['get']('CommentsRepository'),_0x4f3af0=_0x497f75['plugins']['get']('EditorAnnotations'),_0x4ea818=_0x497f75['plugins']['get'](_0x52e77f)['me'],_0x1fa422=_0x253374['get']('trackChanges')['SuggestionThreadView'],_0x1164c5=_0x253374['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1a8d70,CommentThreadInputView:_0x5bafe1}=_0x497f75['plugins']['get']('CommentsUI');let _0x522d8c,_0x4e854a,_0x5d80d4;this['_annotationViews']['has'](_0x4f15d3['id'])?(_0x4e854a=this['_annotationViews']['get'](_0x4f15d3['id']),_0x522d8c=_0x4e854a['mainView']):(_0x522d8c=new _0x1fa422(_0x497f75['locale'],_0x4f15d3,_0x4ea818,{'disableComments':this['_disableComments'],'editorConfig':{..._0x253374['get']('comments.editorConfig'),'licenseKey':_0x253374['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x253374['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x253374['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x253374['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x47b19c(_0x253374['get']('locale'),_0x497f75['locale']),'CommentView':_0x253374['get']('comments')['CommentView'],'CommentsListView':_0x1a8d70,'CommentThreadInputView':_0x5bafe1,'SuggestionView':_0x1164c5}),_0x522d8c['suggestionView']['acceptButton']['on']('execute',()=>{_0x497f75['editing']['view']['focus']();}),_0x522d8c['suggestionView']['discardButton']['on']('execute',()=>{_0x497f75['editing']['view']['focus']();}),_0x4e854a=_0x4413f6['createAnnotationView'](this['editor']['locale'],_0x522d8c),_0x4e854a['bind']('isDirty')['to'](_0x522d8c,'isDirty'),_0x4e854a['bind']('length')['to'](_0x522d8c),_0x4e854a['bind']('type')['to'](_0x522d8c,'type',_0x36c228=>'suggestion-'+_0x36c228),_0x522d8c['on']('escape',()=>{_0x5d80d4['fire']('escape');}),this['_annotationViews']['set'](_0x4f15d3['id'],_0x4e854a));const _0x4326c5=_0x5d7c59['createCommentThreadController'](_0x4f15d3['commentThread'],_0x522d8c),_0x48dc00=new be(_0x497f75,_0x4f15d3,_0x522d8c,_0x4326c5),_0x1aeb56=_0x4f15d3['getAllAdjacentSuggestions']()['filter'](_0x5241bf=>_0x5241bf['isInContent']);_0x522d8c['descriptionParts']=_0x497f75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1aeb56),this['_suggestionToController']['set'](_0x4f15d3,_0x48dc00),this['_viewToController']['set'](_0x522d8c,_0x48dc00);const _0x13a98d=()=>{const _0x51681d=[],_0xb87e8a=_0x4f15d3['getAllAdjacentSuggestions']()['filter'](_0x2aa5dd=>_0x2aa5dd['isInContent']);for(const _0x201d05 of _0xb87e8a)_0x51681d['push'](..._0x201d05['getMarkers']());return _0x1bd493(_0x497f75['editing'],_0x51681d);};_0x5d80d4=_0x4413f6['createAnnotation']({'view':_0x4e854a,'target':_0x13a98d,'type':()=>'suggestion-'+_0x48dc00['view']['type'],'isVisible':!!_0x13a98d()}),_0x5d7c59['_bindAnnotationToEditors'](_0x522d8c,_0x5d80d4),_0x4413f6['add'](_0x5d80d4),_0x4f3af0['registerAnnotation'](_0x5d80d4);}['_destroyController'](_0x5b92e7){const _0xa7d25e=this['editor']['plugins']['get']('CommentsRepository'),_0x31b427=this['editor']['plugins']['get']('Annotations'),_0x86b825=this['_suggestionToController']['get'](_0x5b92e7),_0xfcaeec=_0x86b825['view'],_0x9c4521=_0x31b427['getByInnerView'](_0xfcaeec);_0xa7d25e['_unbindEditors'](_0xfcaeec),_0x9c4521&&_0x31b427['remove'](_0x9c4521),this['_suggestionToController']['delete'](_0x5b92e7),this['_viewToController']['delete'](_0xfcaeec),_0x86b825['destroy']();}['_updateController'](_0x48aec0){if(!_0x48aec0['isInContent']||!this['_suggestionToController']['has'](_0x48aec0))return;const _0x1508a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35561a=this['_suggestionToController']['get'](_0x48aec0),_0x177574=_0x48aec0['getAllAdjacentSuggestions']();_0x35561a['view']['descriptionParts']=_0x1508a0['descriptionFactory']['getDescriptions'](_0x177574);}['destroy'](){for(const _0x250910 of this['_suggestionToController']['keys']())this['_destroyController'](_0x250910);for(const _0x375935 of this['_annotationViews']['values']())_0x375935['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ve(_0x535422){return'model'in _0x535422;}class Ve extends _0x1bca86{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x48c4dc){this['editor']['plugins']['get'](d)['adapter']=_0x48c4dc;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2cd4a8){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2cd4a8);}['getSuggestions']({skipNotAttached:_0x508165=!0x1,toJSON:_0xf0215b=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x508165,'toJSON':_0xf0215b});}['getSuggestion'](_0xa5d22d){return this['editor']['plugins']['get'](d)['getSuggestion'](_0xa5d22d);}}const p=['Pagination'];class ce extends _0x1bca86{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3252ab=this['editor'];if(_0x3252ab['config']['define']('trackChangesData.editorCreator',_0x1ba7a3=>{const _0x5c2d59=_0x3252ab['model']['document']['getRootNames']()['reduce']((_0xd2b5cc,_0x41d932)=>(_0xd2b5cc[_0x41d932]='',_0xd2b5cc),{});return _0x3252ab['constructor']['create'](_0x5c2d59,_0x1ba7a3);}),'function'!=typeof _0x3252ab['config']['get']('trackChangesData')['editorCreator'])throw new _0x4b5846('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x14b3b3){return P(this['editor'],!0x0,_0x14b3b3);}['getDataWithDiscardedSuggestions'](_0x54aaef){return P(this['editor'],!0x1,_0x54aaef);}}class ze extends _0x1bca86{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x517f8d){function _0x3200bd(_0x6c1122){return _0x6c1122['map'](_0x282f2b=>String['fromCharCode'](_0x282f2b))['join']('');}super(_0x517f8d),this['result']='end',_0x517f8d[_0x3200bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3200bd([0x76,0x69,0x65,0x77])][_0x3200bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3200bd([0x61,0x75,0x74,0x6f]),_0x517f8d[_0x3200bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3200bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3200bd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3200bd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3200bd([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 Ke(_0x2f1d7e){return void 0x0!==_0x2f1d7e['getRootsAttributes'];}async function P(_0x5d395d,_0x4abbda,_0x981963){const _0x3a322a=_0x9f66cf(_0x5d395d,p);_0x3a322a['plugins']['push'](d,ze),_0x3a322a['rootsAttributes']=Ke(_0x5d395d)?_0x5d395d['getRootsAttributes']():void 0x0;const _0x3acd84=document['createDocumentFragment'](),_0x8a01e9=_0x5d395d['config']['get']('trackChangesData')['editorCreator'],_0x34c5e0=await _0x8a01e9(_0x3a322a,()=>function(_0x18d358){const _0x488df7=document['createElement']('div');return _0x18d358['appendChild'](_0x488df7),_0x488df7;}(_0x3acd84));!function(_0x1250eb,_0x5849cc){const _0x1628b9=_0x1250eb['model']['document']['getRootNames']()['reduce']((_0x2025fd,_0x4e1c3a)=>(_0x2025fd[_0x4e1c3a]=_0x1250eb['data']['get']({'rootName':_0x4e1c3a}),_0x2025fd),{}),_0x3c8c13=_0x1250eb['plugins']['get']('Users')['users']['map'](_0x42bac7=>({'id':_0x42bac7['id'],'name':_0x42bac7['name']})),_0x57cdc9=_0x1250eb['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3aec9d=_0x1250eb['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3d9cc6=_0x5849cc['plugins']['get']('Users'),_0x53f94c=_0x5849cc['plugins']['get']('TrackChangesEditing'),_0x403b61=_0x5849cc['plugins']['get']('CommentsRepository');for(const _0x55ce85 of _0x403b61['getCommentThreads']())_0x55ce85['remove']();for(const _0x5df6ab of _0x3c8c13)_0x3d9cc6['getUser'](_0x5df6ab['id'])||_0x3d9cc6['addUser'](_0x5df6ab);_0x3d9cc6['me']||_0x3d9cc6['useAnonymousUser']();for(const _0xe850f8 of _0x3aec9d)_0x403b61['addCommentThread'](_0xe850f8);for(const _0x3ddb64 of _0x57cdc9)_0x53f94c['addSuggestionData'](_0x3ddb64);_0x5849cc['data']['set'](_0x1628b9);}(_0x5d395d,_0x34c5e0),_0x34c5e0['execute'](_0x4abbda?'acceptAllSuggestions':'discardAllSuggestions');const _0x576a73=Ke(_0x34c5e0)?_0x34c5e0['getFullData'](_0x981963):_0x34c5e0['data']['get'](_0x981963);return await _0x34c5e0['destroy'](),_0x576a73;}class _e extends _0x302463{['options'];constructor(_0x33f20c,_0x8be254){super(_0x33f20c),this['options']=_0x8be254,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'](_0x178b88,_0x545496){if(!this['element'])return;const _0x2e2802=[];for(const [_0x432ab3,_0x35e665]of _0x178b88){const _0x460bf3=document['createElement']('div');_0x460bf3['setAttribute']('data-ck-root-name',_0x432ab3),_0x460bf3['className']=_0x35e665['classes']+'\x20ck-track-changes-preview__root-container',_0x460bf3['innerHTML']=_0x35e665['content'],_0x2e2802['push'](_0x460bf3);}_0x545496(this['element'],_0x2e2802),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x19904a{constructor(_0x282dd8){super(_0x282dd8),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x440634=this['editor'],_0x3bd3f8=_0x440634['locale'],_0x575005=_0x440634['plugins']['get']('Dialog');let _0x27bd8a;const _0x58bf3b=function(_0x1cd3be){const _0x2dc7ec={};if('editables'in _0x1cd3be['ui']['view']){for(const [_0x251725,_0x5d8d3e]of Object['entries'](_0x1cd3be['ui']['view']['editables']))_0x2dc7ec[_0x251725]=_0x5d8d3e['element'];}else _0x2dc7ec[_0x1cd3be['model']['document']['getRootNames']()[0x0]]=_0x1cd3be['ui']['view']['editable']['element'];return _0x2dc7ec;}(_0x440634),_0x181075=function(_0x262f89){let _0x1d464b=0x0;for(const _0x16bdeb of Object['values'](_0x262f89))_0x1d464b=Math['max'](_0x1d464b,_0x16bdeb['getBoundingClientRect']()['width']);let _0x32222a=0x0;for(const _0x4f3b64 of Object['values'](_0x262f89))_0x32222a+=_0x4f3b64['getBoundingClientRect']()['height'];const _0xaa8d62=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x35b6ba=Math['min'](_0x32222a,_0xaa8d62);return{'width':_0x1d464b,'height':_0x35b6ba};}(_0x58bf3b);_0x575005['show']({'id':'finalContentPreview','title':o(_0x3bd3f8,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x3bd3f8,{'dialogRects':_0x181075}),'onHide':()=>{_0x27bd8a['detachFromDom']();},'onShow':()=>{_0x440634['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1dd52b=>{const _0x12d298=this['_standarizeRootsData'](_0x1dd52b,_0x440634,_0x58bf3b);_0x575005['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x12d298,_0x440634['config']['get']('trackChanges.preview.renderFunction'));}),_0x27bd8a=new _0x483eeb(_0x3bd3f8,[_0x575005['view']]),_0x27bd8a['attachToDom'](),_0x27bd8a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x440634['once']('destroy',()=>{_0x27bd8a['detachFromDom']();});const _0x15d086=_0x575005['view']['headerView']['class'];_0x575005['view']['headerView']['class']=_0x15d086?_0x15d086+'\x20ck-reset_all':'ck-reset_all',_0x575005['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x575005['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x51cc69=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2bd0f4=_0x51cc69['previewMode'],_0x22b489={};if('$labels'===_0x2bd0f4){for(const _0x285ac5 of _0x51cc69['getMergeFieldsIds']())_0x22b489[_0x285ac5]=_0x51cc69['getLabel'](_0x285ac5)||_0x285ac5;}else{const _0x16b3b4='$defaultValues'===_0x2bd0f4?_0x51cc69['getDefaultValues']():_0x51cc69['getDataSetValues'](_0x2bd0f4,!0x0);for(const _0x270ae7 of Object['entries'](_0x16b3b4)){const [_0x4fc53c,_0x431836]=_0x270ae7;_0x22b489[_0x4fc53c]=null!==_0x431836?_0x431836:_0x51cc69['getLabel'](_0x4fc53c)||_0x4fc53c;}}return{'mergeFieldsData':_0x22b489};}['_standarizeRootsData'](_0x207d12,_0xd34e18,_0x29a56a){let _0x32ed31;if('string'==typeof _0x207d12){const _0x36de71=_0xd34e18['model']['document']['getRootNames']()[0x0];_0x32ed31={[_0x36de71]:_0x207d12};}else _0x32ed31=_0x207d12;const _0x12bc48=this['_fixMediaEmbeds'](_0x32ed31,_0xd34e18),_0x43a710=function(_0x48089a,_0x1cebfe){for(const [_0x2e8bd1,_0x1d3dc8]of _0x48089a)_0x1d3dc8['classes']=_0x1cebfe[_0x2e8bd1]['classList']['value']['replace']('ck-focused','');return _0x48089a;}(this['_sortRoots'](_0xd34e18)['reduce']((_0x496c0b,_0x36a444)=>(_0x496c0b['push']([_0x36a444,{'content':_0x12bc48[_0x36a444],'classes':''}]),_0x496c0b),[]),_0x29a56a);return _0x43a710;}['_fixMediaEmbeds'](_0x175b02,_0x35c174){if(!_0x35c174['plugins']['has']('MediaEmbedEditing'))return _0x175b02;const _0x284edd=_0x35c174['plugins']['get']('MediaEmbedEditing');for(const [_0x5f35ef,_0x40b92a]of Object['entries'](_0x175b02)){const _0x3a0b60=document['createElement']('div');_0x3a0b60['innerHTML']=_0x40b92a,(_0x3a0b60['querySelectorAll']('figure.media')['forEach'](_0x3dc8e0=>{const _0x4920b8=_0x3dc8e0['querySelector']('oembed');if(_0x4920b8){const _0x50bf05=_0x4920b8['getAttribute']('url');if(_0x50bf05){const _0x3f2ec5=_0x284edd['registry']['getMediaViewElement'](new _0x4606e3(_0x35c174['editing']['view']['document']),_0x50bf05,{'elementName':'','renderForEditingView':!0x0}),_0x164ae7=document['createElement']('div');_0x164ae7['classList']['add']('ck-media__wrapper'),_0x3f2ec5['render'](_0x164ae7,_0x35c174['editing']['view']['domConverter']),_0x4920b8['replaceWith'](_0x164ae7);}}}),_0x175b02[_0x5f35ef]=_0x3a0b60['innerHTML']);}return _0x175b02;}['_sortRoots'](_0x26015a){if(!function(_0x4d29e2){return void 0x0!==_0x4d29e2['getRootsAttributes'];}(_0x26015a))return _0x26015a['model']['document']['getRootNames']();const _0x4244a3=[],_0x2d5984=new Map();for(const _0x4213d3 of _0x26015a['model']['document']['getRootNames']()){const _0x105692=_0x26015a['editing']['view']['getDomRoot'](_0x4213d3)['getClientRects']()['item'](0x0);_0x4244a3['push'](_0x4213d3),_0x2d5984['set'](_0x4213d3,_0x105692);}return _0x4244a3['sort']((_0xcfa3e9,_0x57c92e)=>{const _0x3e3168=_0x2d5984['get'](_0xcfa3e9),_0x18eae3=_0x2d5984['get'](_0x57c92e);return _0x3e3168['y']-_0x18eae3['y']||_0x3e3168['x']-_0x18eae3['x'];}),_0x4244a3;}}class Xe extends _0x1bca86{static get['requires'](){return[ce,_0x21e0ca];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ec90c){super(_0x3ec90c),_0x3ec90c['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x3ec90c['config']['define']('trackChanges.preview.renderFunction',(_0x1a2850,_0x29d239)=>{for(const _0x502f5a of _0x29d239)_0x1a2850['appendChild'](_0x502f5a);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Te as SuggestionThreadView,Le as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x5855f0,Plugin as _0xbac36c,PendingActions as _0x5c16d8}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2625a8,ObservableMixin as _0x164d6b,uid as _0x5f1f2a,priorities as _0xadc6c0,insertToPriorityArray as _0x58d5a0,toArray as _0x2f3c64,logWarning as _0x1c3ecd,getEnvKeystrokeText as _0x1d00a9,FocusTracker as _0x4d8216,KeystrokeHandler as _0x2798bd,Collection as _0xf053a2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x393dab,IconCancel as _0x4b79db,IconTrackChanges as _0x37048d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x559df4,View as _0x58281a,ViewCollection as _0x18dd77,FocusCycler as _0x42cc66,UIModel as _0x47c2af,createDropdown as _0x553e74,SplitButtonView as _0x29a0e3,addListToDropdown as _0x4284a8,MenuBarMenuView as _0x574f5f,MenuBarMenuListView as _0x91081e,ListSeparatorView as _0x38f5a3,MenuBarMenuListItemView as _0x141bbc,MenuBarMenuListItemButtonView as _0x6d594c,BodyCollection as _0x52d770,Dialog as _0x433ab5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x67f2a0,DocumentCompare as _0x3cca4d,hashObject as _0x55aabf,surroundingMarkersDetector as _0x5c74d5,FOCUS_ANNOTATION_KEYSTROKE as _0x1fe260,AriaDescriptionView as _0x184032,setupThreadKeyboardNavigation as _0x5cc435,trimHtml as _0x399e2e,UserView as _0x448a0a,LateFocusButtonView as _0x3c0694,getDateTimeFormatter as _0x1d587d,getAllMarkersDomElementsSorted as _0x5d3efd,sanitizeEditorConfig as _0x2fb0cd}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x39d8bf,ModelLiveRange as _0x5ac46d,ModelLivePosition as _0x56e277,ModelPosition as _0x4c5941,ModelRange as _0x1b4199,_DetachOperation as _0x2a48f7,ViewDowncastWriter as _0x2644eb}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2b3b46,toWidget as _0x327748}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5df889,set as _0x44dec6,isEqual as _0x1b05aa,unset as _0x3f72b0,omit as Gt}from'es-toolkit/compat';import{Delete as _0x591b2e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4a7e38}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x41df14}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5855f0{['_enabledCommands'];constructor(_0x3f4443,_0x5f1fc8){super(_0x3f4443),this['_enabledCommands']=_0x5f1fc8,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 _0x5146bf of this['editor']['commands']['commands']())_0x5146bf['affectsData']&&!this['_enabledCommands']['has'](_0x5146bf)&&_0x5146bf['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x9989f7 of this['editor']['commands']['commands']())_0x9989f7['affectsData']&&!this['_enabledCommands']['has'](_0x9989f7)&&_0x9989f7['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x5855f0{['_suggestions'];constructor(_0x2c448e,_0x3c0929){super(_0x2c448e),this['_suggestions']=_0x3c0929,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3e358b){const _0x1f0633=this['_suggestions']['get'](_0x3e358b);if(!_0x1f0633)throw new _0x2625a8('track-changes-accept-suggestion-not-found',this);const _0x4756db=_0x1f0633['getRanges']();this['editor']['model']['canEditAt'](_0x4756db)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1f0633);}}class O extends _0x5855f0{['_suggestions'];constructor(_0x308f84,_0x52f013){super(_0x308f84),this['_suggestions']=_0x52f013,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3cc8ea){const _0x2bc345=this['_suggestions']['get'](_0x3cc8ea);if(!_0x2bc345)throw new _0x2625a8('track-changes-discard-suggestion-not-found',this);const _0x444486=_0x2bc345['getRanges']();this['editor']['model']['canEditAt'](_0x444486)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2bc345);}}function ls(_0x1da952,_0x5ebe29){let _0x19918c='';return _0x19918c+=_0x1da952['split']('*')['map']((_0x3db6fa,_0x442069)=>_0x442069%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x3db6fa)+'</span>':tn(_0x3db6fa))['join'](''),_0x5ebe29&&(_0x19918c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5ebe29['value']+'\x22\x20title=\x22'+_0x5ebe29['title']+'\x22></span>'),_0x19918c;}function tn(_0x33c8d9){const _0x3ce0c0=document['createElement']('span');return _0x3ce0c0['innerText']=_0x33c8d9,_0x3ce0c0['innerHTML'];}function ts(_0x1fd5a4){return _0x1fd5a4['sort']((_0x405139,_0x592801)=>'attribute'===_0x405139['type']&&'attribute'!==_0x592801['type']?-0x1:'attribute'!==_0x405139['type']&&'attribute'===_0x592801['type']?0x1:'deletion'==_0x405139['type']&&'deletion'!=_0x592801['type']?-0x1:'deletion'!=_0x405139['type']&&'deletion'==_0x592801['type']?0x1:0x0);}function to(_0xb19a54,_0x474fcf){let _0x3c7ca1,_0x5c58dd=0x0;const _0x5b17ea=[],_0x4eb35f=_0x474fcf['schema'];for(;_0x5c58dd<_0xb19a54['length'];){const _0x53d72d=_0xb19a54[_0x5c58dd],_0x3b69a6=_0xb19a54[_0x5c58dd+0x1];_0x3c7ca1||(_0x3c7ca1=_0x474fcf['createPositionBefore'](_0x53d72d)),nn(_0x474fcf,_0x53d72d,_0x3b69a6)||(_0x5b17ea['push'](_0x474fcf['createRange'](_0x3c7ca1,_0x4eb35f['isObject'](_0x53d72d)?_0x474fcf['createPositionAfter'](_0x53d72d):_0x474fcf['createPositionAt'](_0x53d72d,'end'))),_0x3c7ca1=null),_0x5c58dd++;}return _0x5b17ea;}function nn(_0x1b4d99,_0xb8149c,_0x2c7f61){if(!_0x2c7f61)return!0x1;const _0x5cec71=_0x1b4d99['createPositionAfter'](_0xb8149c),_0x88336e=_0x1b4d99['createPositionBefore'](_0x2c7f61);return _0x5cec71['isTouching'](_0x88336e);}function rs(_0x44dc5c,_0x26f2cc,_0x529ddc){for(;_0x529ddc['length'];){const _0x4714f8=_0x529ddc['splice'](0x0,0x64);_0x44dc5c['change'](()=>{for(const _0xf39042 of _0x4714f8)_0xf39042['isInContent']&&_0x26f2cc['execute'](_0xf39042['id']);});}}class x extends _0x5855f0{['_command'];['_suggestions'];constructor(_0x146fda,_0x2cb69b,_0x512b54){super(_0x146fda),this['_command']=_0x2cb69b,this['_suggestions']=_0x512b54,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x21bbf8=Array['from'](this['_suggestions']['values']())['some'](_0xa326f=>_0xa326f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x21bbf8;}['execute'](){const _0x5e2a42=ts(Array['from'](this['_suggestions']['values']()));for(const _0x360154 of _0x5e2a42){const _0x543182=_0x360154['getRanges']();if(!this['editor']['model']['canEditAt'](_0x543182))return;}rs(this['editor']['model'],this['_command'],_0x5e2a42);}}class E extends _0x5855f0{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1733d2,_0x3f8c6d,_0xe8ee8f){super(_0x1733d2),this['_command']=_0x3f8c6d,this['_suggestions']=_0xe8ee8f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x23130c=this['editor']['model']['document']['selection'],_0x5c9af2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x51a9a8,_0x3eeca8){const _0x3ab08f=Array['from'](_0x51a9a8['getRanges']()),_0x276a81=new Set();for(const _0x44de15 of _0x3eeca8)if(_0x44de15['isInContent']){for(const _0x2151a3 of _0x3ab08f)for(const _0x22c351 of _0x44de15['getRanges']())(_0x2151a3['isIntersecting'](_0x22c351)||_0x51a9a8['isCollapsed']&&!_0x44de15['isMultiRange']&&_0x44de15['next']&&_0x22c351['end']['isTouching'](_0x2151a3['start']))&&_0x276a81['add'](_0x44de15);}return _0x276a81;}(_0x23130c,_0x5c9af2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4bc861=ts(Array['from'](this['_selectedSuggestions']));for(const _0x15a366 of _0x4bc861){const _0x3d7714=_0x15a366['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3d7714))return;}rs(this['editor']['model'],this['_command'],_0x4bc861);}}class R extends/* #__PURE__ -- @preserve */
24
+ _0x164d6b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x17a188,_0xee388b){super(),this['id']=_0xee388b['id'],this['type']=_0xee388b['type'],this['subType']=_0xee388b['subType']||null,this['author']=_0xee388b['author'],this['creator']=_0xee388b['creator']||_0xee388b['author'],this['isExternal']=Boolean(_0xee388b['attributes']&&_0xee388b['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xee388b['originalSuggestionId']||null,this['_model']=_0x17a188,this['_onAccept']=_0xee388b['onAccept'],this['_onDiscard']=_0xee388b['onDiscard'],this['_onAttributesChange']=_0xee388b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xee388b['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 _0x181206=this;for(;_0x181206['previous'];)_0x181206=_0x181206['previous'];return _0x181206;}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'](_0x275d39){this['_markerNames']['add'](_0x275d39);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x31082b=>this['_model']['markers']['get'](_0x31082b))['filter'](_0x20b2fb=>_0x20b2fb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x573723=>{for(const _0x36a8f8 of this['getMarkers']())_0x573723['removeMarker'](_0x36a8f8);}),this['_markerNames']['clear']();}['removeMarker'](_0x19c032){this['_model']['change'](_0x43e233=>{_0x43e233['removeMarker'](_0x19c032);}),this['_markerNames']['delete'](_0x19c032);}['addRange'](_0x438fac){const _0x3b2c3c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x3b2c3c),this['_model']['change'](_0x48dd76=>{_0x48dd76['addMarker'](_0x3b2c3c,{'range':_0x438fac,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x12afb6){for(const _0x3e9a85 of this['getRanges']())if(_0x3e9a85['isIntersecting'](_0x12afb6))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x178cd7=>_0x178cd7['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xe3180a,_0x560d02)=>[..._0xe3180a,..._0x560d02['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x23ebaf=this['getRanges']();if(0x1!=_0x23ebaf['length'])return null;const _0x2c77a5=_0x23ebaf[0x0],_0x5323ae=_0x2c77a5['start']['nodeAfter'],_0x1d924a=_0x2c77a5['end']['nodeBefore'];return _0x5323ae instanceof _0x39d8bf?_0x5323ae!=_0x1d924a?null:_0x5323ae: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 _0x41d829=[];let _0x1436bd=this['head'];for(;_0x1436bd;)_0x41d829['push'](_0x1436bd),_0x1436bd=_0x1436bd['next'];return _0x41d829;}['setAttribute'](_0x35d3d7,_0x3b62c6){const _0x3a48c8=_0x5df889(this['attributes']);_0x44dec6(_0x3a48c8,_0x35d3d7,_0x3b62c6),_0x1b05aa(_0x3a48c8,this['attributes'])||(this['attributes']=_0x3a48c8,this['_onAttributesChange'](_0x3a48c8));}['removeAttribute'](_0x5c9f15){const _0x2d9494=_0x5df889(this['attributes']);_0x3f72b0(_0x2d9494,_0x5c9f15),_0x1b05aa(_0x2d9494,this['attributes'])||(this['attributes']=_0x2d9494,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 _0x5f1f2a()['substr'](0x1,0x5);}}function o(_0x1a7198,_0x4422a3,_0x3cc131){const _0x4ee58e=_0x1a7198['t'],t=_0x1a7198['t'];switch(_0x4422a3){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',_0x3cc131);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3cc131);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3cc131);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3cc131);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3cc131);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',_0x3cc131);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3cc131);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',_0x3cc131);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3cc131);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3cc131);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3cc131);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3cc131);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3cc131);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3cc131);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3cc131);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3cc131);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3cc131);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3cc131);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3cc131);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3cc131);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3cc131);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3cc131);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3cc131);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3cc131);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3cc131);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'},_0x3cc131);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3cc131);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3cc131);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3cc131);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3cc131);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3cc131);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3cc131);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3cc131);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'},_0x3cc131);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3cc131);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3cc131);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3cc131);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3cc131);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'},_0x3cc131);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3cc131);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'},_0x3cc131);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x3cc131);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3cc131);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'},_0x3cc131);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3cc131);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'},_0x3cc131);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3cc131);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3cc131);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'},_0x3cc131);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3cc131);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 _0x4ee58e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3cc131);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4ee58e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3cc131);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3cc131);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'},_0x3cc131);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'},_0x3cc131);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'},_0x3cc131);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4422a3;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5c6b58,_0x7cfb29){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5c6b58,this['_locale']=_0x7cfb29;}['getDescriptions'](_0x55390e){const _0x5c5968=[],_0x59e274=new Set(),_0x10284c=new Set();for(let _0x14c051=0x0;_0x14c051<_0x55390e['length'];_0x14c051++){const _0x43dbb2=_0x55390e[_0x14c051];if(!_0x43dbb2['isInContent'])continue;const _0x2bc451=this['_handleCustomCallbackDescription'](_0x43dbb2);if(_0x2bc451){if(null!=_0x43dbb2['subType']){if(_0x59e274['has'](_0x43dbb2['subType']))continue;_0x59e274['add'](_0x43dbb2['subType']);}_0x5c5968['push'](_0x2bc451);}else{if('attribute'==_0x43dbb2['type']){const _0x47fe8f=_0x43dbb2['data']['key'];if(_0x10284c['has'](_0x47fe8f))continue;_0x10284c['add'](_0x43dbb2['data']['key']),_0x47fe8f==m?this['_handleRenameSuggestionDescription'](_0x5c5968,_0x43dbb2):this['_handleAttributeSuggestionDescription'](_0x5c5968,_0x43dbb2);continue;}'insertion'!=_0x43dbb2['type']&&'deletion'!=_0x43dbb2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5c5968,_0x43dbb2,_0x55390e[_0x14c051+0x1]);}}return this['_resolveDescriptionItems'](_0x5c5968);}['registerDescriptionCallback'](_0x30e219){this['_customCallbacks']['push'](_0x30e219);}['registerElementLabel'](_0x143d31,_0x2b0cb7,_0x1c15f8=_0xadc6c0['normal']){'function'==typeof _0x143d31?_0x58d5a0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x143d31,'label':_0x2b0cb7,'priority':_0x1c15f8}):this['_itemLabels']['set'](_0x143d31,_0x2b0cb7);}['registerAttributeLabel'](_0x15bf6f,_0x1e2f74){this['_attributeLabels']['set'](_0x15bf6f,_0x1e2f74);}['getItemLabel'](_0xdbc896,_0x251604=0x1){let _0x120ffe;for(const _0x3bab16 of this['_itemLabelsCallbacks'])if(_0x3bab16['matchingCallback'](_0xdbc896)){_0x120ffe=_0x3bab16['label'];break;}return _0x120ffe||(_0x120ffe=this['_itemLabels']['get'](_0xdbc896['name'])),_0x120ffe?_0x120ffe(_0x251604):0x1!==_0x251604?_0x251604+'\x20'+_0xdbc896['name']+'s':''+_0xdbc896['name'];}['_addDescriptionItems'](_0x218f6d,_0x3ad0bf){const _0x4b039f=_0x3ad0bf['getFirstRange']()['getWalker'](),_0x332382='insertion'==_0x3ad0bf['type']?'add':'remove';for(const _0xc0ed41 of _0x4b039f){const _0x5d0cce=_0xc0ed41['item'],_0x47d7d3=_0x218f6d[_0x218f6d['length']-0x1];if(_0x5d0cce['is']('$textProxy'))_0x47d7d3&&_0x47d7d3['type']['indexOf']('Container')>-0x1&&_0x218f6d['pop'](),_0x47d7d3&&'text'==_0x47d7d3['type']?_0x47d7d3[_0x332382]+=_0x5d0cce['data']:_0x218f6d['push']({'type':'text','add':'add'==_0x332382?_0x5d0cce['data']:'','remove':'remove'==_0x332382?_0x5d0cce['data']:''});else{if(this['_schema']['isObject'](_0x5d0cce)){const _0x452427=_0x5d0cce;if(_0x47d7d3&&_0x47d7d3['type']['indexOf']('Container')>-0x1&&_0x218f6d['pop'](),'elementEnd'==_0xc0ed41['type'])continue;_0x47d7d3&&_0x47d7d3['type']==_0x332382+'Object'&&_0x47d7d3['element']['name']==_0x452427['name']?_0x47d7d3['quantity']++:_0x218f6d['push']({'type':_0x332382+'Object','element':_0x452427,'quantity':0x1}),_0x4b039f['skip'](_0x7d1fac=>!('elementEnd'==_0x7d1fac['type']&&_0x7d1fac['item']==_0x5d0cce));}else{if(this['_schema']['checkChild'](_0x5d0cce,'$text')||_0x5d0cce['is']('element','softBreak')){const _0x3f89e4=_0x5d0cce;if('add'==_0x332382&&'elementStart'==_0xc0ed41['type']||'remove'==_0x332382&&'elementEnd'==_0xc0ed41['type'])continue;if(_0x47d7d3&&-0x1==_0x47d7d3['type']['indexOf']('Container')){'text'==_0x47d7d3['type']&&(_0x47d7d3[_0x332382]+='\x0a');continue;}let _0x1bc41e;if(_0x1bc41e='add'==_0x332382?_0x3f89e4['nextSibling']&&!this['_schema']['isObject'](_0x3f89e4['nextSibling'])?_0x3f89e4['nextSibling']:null:_0x3f89e4['previousSibling']&&!this['_schema']['isObject'](_0x3f89e4['previousSibling'])?_0x3f89e4['previousSibling']:null,_0x3f89e4['isEmpty']||_0x1bc41e&&_0x1bc41e['isEmpty']){const _0x18bf9b=_0x1bc41e&&_0x1bc41e['isEmpty']?_0x1bc41e:_0x3f89e4;_0x47d7d3&&_0x47d7d3['type']==_0x332382+'EmptyContainer'&&_0x47d7d3['element']['name']==_0x18bf9b['name']?_0x47d7d3['quantity']++:_0x218f6d['push']({'type':_0x332382+'EmptyContainer','element':_0x18bf9b,'quantity':0x1});}else _0x218f6d['push']({'type':_0x332382+'Container','element':_0x3f89e4});}}}}}['_resolveDescriptionItems'](_0x545542){const _0x210480=this['_locale'],_0x1122a7=[],_0x4049f2=[],_0x33805a=[];for(const _0x5c6b46 of _0x545542)switch(_0x5c6b46['type']){case'text':if(_0x5c6b46['add']=_0x5c6b46['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5c6b46['remove']=_0x5c6b46['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5c6b46['add']&&''!=_0x5c6b46['remove']){_0x1122a7['push']({'type':'replace','content':o(_0x210480,'REPLACE_TEXT',['\x22'+_0x5c6b46['remove']+'\x22','\x22'+_0x5c6b46['add']+'\x22'])});continue;}if(null!=_0x5c6b46['add']['match'](/^ +$/)){_0x1122a7['push']({'type':'insertion','content':o(_0x210480,'*Insert:*\x20%0',o(_0x210480,'ELEMENT_SPACE',_0x5c6b46['add']['length']))});continue;}if(null!=_0x5c6b46['remove']['match'](/^ +$/)){_0x1122a7['push']({'type':'deletion','content':o(_0x210480,'*Remove:*\x20%0',o(_0x210480,'ELEMENT_SPACE',_0x5c6b46['remove']['length']))});continue;}if(''!=_0x5c6b46['add']){_0x1122a7['push']({'type':'insertion','content':o(_0x210480,'*Insert:*\x20%0','\x22'+_0x5c6b46['add']+'\x22')});continue;}_0x1122a7['push']({'type':'deletion','content':o(_0x210480,'*Remove:*\x20%0','\x22'+_0x5c6b46['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1122a7['push']({'type':'insertion','content':o(_0x210480,'*Insert:*\x20%0',this['getItemLabel'](_0x5c6b46['element'],_0x5c6b46['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1122a7['push']({'type':'deletion','content':o(_0x210480,'*Remove:*\x20%0',this['getItemLabel'](_0x5c6b46['element'],_0x5c6b46['quantity']))});continue;case'addContainer':_0x1122a7['push']({'type':'insertion','content':o(_0x210480,'*Split:*\x20%0',this['getItemLabel'](_0x5c6b46['element'],_0x5c6b46['quantity']))});continue;case'removeContainer':_0x1122a7['push']({'type':'deletion','content':o(_0x210480,'*Merge:*\x20%0',this['getItemLabel'](_0x5c6b46['element'],_0x5c6b46['quantity']))});continue;case'addFormat':_0x4049f2['push'](_0x5c6b46['key']);continue;case'removeFormat':_0x33805a['push'](_0x5c6b46['key']);continue;default:_0x1122a7['push'](_0x5c6b46);}if(_0x4049f2['length']){const _0x12e328=_0x4049f2['map'](_0x2228e2=>this['_attributeLabels']['has'](_0x2228e2)?this['_attributeLabels']['get'](_0x2228e2):_0x2228e2)['join'](',\x20');_0x1122a7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x12e328)});}if(_0x33805a['length']){const _0x244e3a=_0x33805a['map'](_0x25c7e5=>this['_attributeLabels']['has'](_0x25c7e5)?this['_attributeLabels']['get'](_0x25c7e5):_0x25c7e5)['join'](',\x20');_0x1122a7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x244e3a)});}return _0x1122a7;}['_handleCustomCallbackDescription'](_0x25c417){for(const _0x22c809 of this['_customCallbacks']){const _0x172143=_0x22c809(_0x25c417);if(_0x172143&&'type'in _0x172143)return _0x172143;}}['_handleAttributeSuggestionDescription'](_0x3f860d,_0x251f7b){const _0x148c0c=_0x251f7b['data'],_0x594843=void 0x0===_0x148c0c['newValue']?'removeFormat':'addFormat';_0x3f860d['push']({'type':_0x594843,'key':_0x148c0c['key']});}['_handleRenameSuggestionDescription'](_0x1d37c5,_0x34360c){_0x1d37c5['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x34360c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4101de,_0x40d454,_0x4150b6){if(this['_addDescriptionItems'](_0x4101de,_0x40d454),_0x4150b6&&_0x4150b6['getFirstRange']()&&!_0x40d454['getFirstRange']()['end']['isEqual'](_0x4150b6['getFirstRange']()['start'])){const _0x5e8027=_0x4101de[_0x4101de['length']-0x1],_0x12195e='insertion'==_0x40d454['type']?'add':'remove';_0x5e8027&&'text'==_0x5e8027['type']&&(_0x5e8027[_0x12195e]+='\x0a');}}}class V extends _0xbac36c{['afterInit'](){const _0x2676b1=this['editor'],_0x4084c9=_0x2676b1['plugins']['get']('TrackChangesEditing');_0x2676b1['commands']['get']('showAIAssistant')&&_0x4084c9['enableCommand']('showAIAssistant');}}class F extends _0xbac36c{['afterInit'](){const _0x991c30=this['editor'],_0xabe4df=_0x991c30['locale'];if(!_0x991c30['plugins']['has']('AlignmentEditing'))return;const _0x2de3ed=_0x991c30['plugins']['get']('TrackChangesEditing');_0x2de3ed['enableDefaultAttributesIntegration']('alignment'),_0x2de3ed['registerBlockAttribute']('alignment'),_0x2de3ed['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xabe4df,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3205d3=this['editor'],_0x1d16cb=_0x3205d3['locale'];_0x3205d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c8583=>{if('formatBlock'!=_0x2c8583['type'])return;const {data:_0x5a7234}=_0x2c8583;if(_0x5a7234&&'alignment'==_0x5a7234['commandName']){const _0x26ef9e=_0x5a7234['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1d16cb,'*Format:*\x20%0',function(_0x18cbd1){switch(_0x18cbd1){case'left':return o(_0x1d16cb,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1d16cb,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1d16cb,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1d16cb,'FORMAT_JUSTIFY_TEXT');}}(_0x26ef9e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xbac36c{['afterInit'](){const _0x55ada2=this['editor'],_0x20b4d1=_0x55ada2['plugins']['get']('TrackChangesEditing'),_0x36fce5=_0x55ada2['locale'];for(const _0x2c7407 of ti){if(!_0x55ada2['plugins']['has'](_0x2c7407))continue;const _0x14d9fa=_0x2c7407['slice'](0x0,-0x7)['toLowerCase'](),_0xc362ae='FORMAT_'+_0x14d9fa['toUpperCase']();_0x20b4d1['enableDefaultAttributesIntegration'](_0x14d9fa),_0x20b4d1['registerInlineAttribute'](_0x14d9fa),_0x20b4d1['descriptionFactory']['registerAttributeLabel'](_0x14d9fa,o(_0x36fce5,_0xc362ae));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e6a4f=this['editor'],_0x2ec2b3=_0x2e6a4f['locale'],_0x3d9443=_0x2e6a4f['plugins']['get']('TrackChangesEditing');function _0x33d5af(_0x307a60,_0xd2e519){_0x3d9443['descriptionFactory']['registerDescriptionCallback'](_0x177c61=>{if('formatInline'!=_0x177c61['type'])return;const {data:_0x5a6aad}=_0x177c61;return _0x5a6aad&&_0x5a6aad['commandName']===_0x307a60?_0x5a6aad['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ec2b3,'*Format:*\x20%0',_0xd2e519)}:{'type':'format','content':o(_0x2ec2b3,'*Remove\x20format:*\x20%0',_0xd2e519)}:void 0x0;});}_0x33d5af('bold',o(_0x2ec2b3,'FORMAT_BOLD')),_0x33d5af('italic',o(_0x2ec2b3,'FORMAT_ITALIC')),_0x33d5af('underline',o(_0x2ec2b3,'FORMAT_UNDERLINE')),_0x33d5af('code',o(_0x2ec2b3,'FORMAT_CODE')),_0x33d5af('strikethrough',o(_0x2ec2b3,'FORMAT_STRIKETHROUGH')),_0x33d5af('subscript',o(_0x2ec2b3,'FORMAT_SUBSCRIPT')),_0x33d5af('superscript',o(_0x2ec2b3,'FORMAT_SUPERSCRIPT'));}}class L extends _0xbac36c{['afterInit'](){const _0x5a791d=this['editor'],_0x33afae=_0x5a791d['locale'];if(!_0x5a791d['plugins']['has']('BlockQuoteEditing'))return;const _0x5261e9=_0x5a791d['plugins']['get']('TrackChangesEditing'),_0x189c3f=this['editor']['commands']['get']('blockQuote');_0x5261e9['enableCommand']('blockQuote',(_0x10d984,_0xf5dd34={})=>{const _0x3c6f3c=this['editor']['model']['document']['selection'],_0x3edf91=_0xf5dd34&&void 0x0!==_0xf5dd34['forceValue']?_0xf5dd34['forceValue']:!_0x189c3f['value'];let _0x5931d4=[];if(_0x3edf91){const _0x5ceba6=Array['from'](_0x3c6f3c['getSelectedBlocks']())['filter'](_0x439480=>oo(_0x439480)||function(_0x2d668d,_0x577a9a){const _0x49deb2=_0x577a9a['checkChild'](_0x2d668d['parent'],'blockQuote'),_0x13163d=_0x577a9a['checkChild'](['$root','blockQuote'],_0x2d668d);return _0x49deb2&&_0x13163d;}(_0x439480,this['editor']['model']['schema']));_0x5931d4=to(_0x5ceba6,_0x5a791d['model']);}else{const _0x526a86=Array['from'](_0x3c6f3c['getSelectedBlocks']())['filter'](_0x516880=>oo(_0x516880));_0x5931d4=to(_0x526a86,_0x5a791d['model']);}_0x5a791d['model']['change'](()=>{for(const _0x582b8d of _0x5931d4)_0x5261e9['markBlockFormat'](_0x582b8d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3edf91}]});});}),_0x5261e9['descriptionFactory']['registerDescriptionCallback'](_0x52890d=>{const {data:_0x288a5b}=_0x52890d;if(_0x288a5b&&'blockQuote'==_0x288a5b['commandName']){const _0x32a19e=o(_0x33afae,'ELEMENT_BLOCK_QUOTE');return _0x288a5b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33afae,'*Set\x20format:*\x20%0',_0x32a19e)}:{'type':'format','content':o(_0x33afae,'*Remove\x20format:*\x20%0',_0x32a19e)};}});}}function oo(_0x21061a){return'blockQuote'==_0x21061a['parent']['name'];}class J extends _0xbac36c{['afterInit'](){const _0xc11e7e=this['editor'],_0x3086a8=_0xc11e7e['locale'],_0x883f3=_0xc11e7e['plugins']['get']('TrackChangesEditing');_0xc11e7e['plugins']['has']('BookmarkEditing')&&(_0x883f3['enableCommand']('insertBookmark'),_0x883f3['enableDefaultAttributesIntegration']('updateBookmark'),_0x883f3['registerBlockAttribute']('bookmarkId'),_0x883f3['descriptionFactory']['registerDescriptionCallback'](_0x448d39=>{if('insertion'!=_0x448d39['type']&&'deletion'!=_0x448d39['type']&&'attribute'!=_0x448d39['type'])return;const _0x19df08=_0x448d39['getContainedElement']();if(null==_0x19df08)return;if(!_0x19df08['is']('element','bookmark'))return;const _0x2f130a=_0x19df08['getAttribute']('bookmarkId');if('insertion'==_0x448d39['type'])return{'type':'insertion','content':o(_0x3086a8,'*Insert:*\x20%0','\x22'+_0x2f130a+'\x22\x20'+o(_0x3086a8,'ELEMENT_BOOKMARK'))};if('deletion'==_0x448d39['type'])return{'type':'deletion','content':o(_0x3086a8,'*Remove:*\x20%0','\x22'+_0x2f130a+'\x22\x20'+o(_0x3086a8,'ELEMENT_BOOKMARK'))};const {data:_0x33f1a1}=_0x448d39;if(!_0x33f1a1||'bookmarkId'!=_0x33f1a1['key'])return;return{'type':'format','content':o(_0x3086a8,'*Set\x20bookmark:*\x20%0','\x22'+_0x33f1a1['newValue']+'\x22')};}));}}class K extends _0xbac36c{['afterInit'](){const _0x194371=this['editor'];_0x194371['plugins']['has']('CaseChange')&&(_0x194371['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x194371['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x194371['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0xbac36c{['afterInit'](){const _0x30135d=this['editor'];_0x30135d['commands']['get']('ckbox')&&_0x30135d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0xbac36c{['afterInit'](){const _0x35da0=this['editor'];if(!_0x35da0['plugins']['has']('CodeBlock'))return;const _0x402212=_0x35da0['plugins']['get']('TrackChangesEditing'),_0x1ae6f1=_0x35da0['locale'],_0x557c22=_0x35da0['config']['get']('codeBlock')['languages'],_0x221c73=_0x35da0['commands']['get']('codeBlock');_0x402212['enableCommand']('indentCodeBlock'),_0x402212['enableCommand']('outdentCodeBlock'),_0x402212['enableCommand']('codeBlock',(_0x1a201a,_0x443c04={})=>{const _0x3901e1=_0x35da0['model'],_0x15f03f=_0x35da0['model']['document']['selection'],_0x36e877=_0x443c04&&void 0x0!==_0x443c04['forceValue']?_0x443c04['forceValue']:!_0x221c73['value'];let _0x16f503;_0x443c04['language']||(_0x443c04['language']=_0x557c22[0x0]['language']),_0x16f503=_0x36e877?Array['from'](_0x15f03f['getSelectedBlocks']())['filter'](_0x258f43=>co(_0x258f43)||function(_0x2597d2,_0x4bda12){if(_0x2597d2['is']('rootElement')||_0x4bda12['isLimit'](_0x2597d2))return!0x1;return _0x4bda12['checkChild'](_0x2597d2['parent'],'codeBlock');}(_0x258f43,_0x3901e1['schema'])):Array['from'](_0x15f03f['getSelectedBlocks']())['filter'](_0x11989b=>co(_0x11989b));const _0xc68fcc=to(_0x16f503,_0x3901e1);_0x3901e1['change'](()=>{for(const _0x7aa102 of _0xc68fcc)_0x402212['markBlockFormat'](_0x7aa102,{'commandName':'codeBlock','commandParams':[{..._0x443c04,'forceValue':_0x36e877}],'formatGroupId':'blockName'});});}),(_0x402212['descriptionFactory']['registerElementLabel']('codeBlock',_0x1f776b=>o(_0x1ae6f1,'ELEMENT_CODE_BLOCK',_0x1f776b)),_0x402212['descriptionFactory']['registerDescriptionCallback'](_0x103584=>{if('formatBlock'!=_0x103584['type'])return;const _0x42246f=_0x1ae6f1['t'],{data:_0x4d4fb1}=_0x103584;if(!_0x4d4fb1||'codeBlock'!=_0x4d4fb1['commandName'])return;const _0x13febe=_0x4d4fb1['commandParams'][0x0]['language'],_0x1e227a=_0x42246f(_0x557c22['find'](_0x4aa427=>_0x4aa427['language']===_0x13febe)['label'])['toLowerCase']();return _0x4d4fb1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ae6f1,'*Set\x20format:*\x20%0',o(_0x1ae6f1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1e227a+')')}:{'type':'format','content':o(_0x1ae6f1,'*Remove\x20format:*\x20%0',o(_0x1ae6f1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x14d437){return'codeBlock'==_0x14d437['name'];}class q extends _0xbac36c{['afterInit'](){const _0xe214de=this['editor'];if(!_0xe214de['plugins']['has']('CommentsEditing'))return;_0xe214de['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2228e4,_0x4dab81,_0x1209d2){const _0x2c6464=[];for(const _0x55c6e5 of _0x4dab81['getItems']())_0x55c6e5['hasAttribute'](_0x2228e4)&&_0x2c6464['push'](_0x1209d2['createRangeOn'](_0x55c6e5));return _0x2c6464;}function Ge(_0x4a385f,_0xaf14db,{showActiveMarker:_0x205eec=!0x0}={}){const _0x24c09c=_0x4a385f['plugins']['get']('TrackChangesEditing');return(_0xc59522,_0xb09781,_0x5bdfef)=>{if(!_0x5bdfef['consumable']['test'](_0xb09781['markerRange'],_0xc59522['name']))return;const _0x540afd=_0xb09781['markerRange']['getWalker'](),_0x4e5771=_0xb09781['markerRange']['start'],_0x1888c8=_0x4a385f['model']['schema'];let _0x3c6090=null,_0x4de0de=null,_0x142714=!0x1,_0x4406bd=!0x1;for(const _0x2061b4 of _0x540afd){const _0xe536e0=_0x2061b4['item'];_0x142714=_0x142714||_0x1888c8['isContent'](_0xe536e0);const _0x2abe72=_0x5bdfef['mapper']['toViewElement'](_0xe536e0);if(_0x2abe72&&_0x2abe72['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2061b4['type']&&(_0x1888c8['isBlock'](_0xe536e0)&&!_0x1888c8['isLimit'](_0xe536e0)&&(_0xe536e0['nextSibling']||_0x4e5771['isAtEnd']?_0x3c6090&&_0x3c6090['parent']==_0xe536e0||(_0x3c6090=_0xe536e0,_0xff5e5f(_0x2061b4['previousPosition']),_0x4406bd=!0x0):_0x4de0de=_0x4de0de||_0x2061b4['previousPosition']));}function _0xff5e5f(_0x4915c){const {id:_0x3150d7,authorId:_0x3ce60c}=_0x24c09c['_splitMarkerName'](_0xb09781['markerName']),_0xe16379=_0x5bdfef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xaf14db,'data-suggestion':_0x3150d7,'data-author-id':_0x3ce60c}),_0x5aa73f=_0x5bdfef['mapper']['toViewPosition'](_0x4915c);_0x205eec&&_0x24c09c['activeMarkers']['includes'](_0xb09781['markerName'])&&_0x5bdfef['writer']['addClass']('ck-suggestion-marker--active',_0xe16379),_0x5bdfef['writer']['insert'](_0x5aa73f,_0xe16379),_0x5bdfef['mapper']['bindElementToMarker'](_0xe16379,_0xb09781['markerName']);}_0x142714||_0x4406bd||!_0x4de0de||_0xff5e5f(_0x4de0de);};}class z extends _0xbac36c{static get['requires'](){return[_0x591b2e];}['init'](){const _0x3d50dd=this['editor'],_0x1a849e=_0x3d50dd['plugins']['get']('TrackChangesEditing');_0x1a849e['enableCommand']('delete');const _0x1948b6=_0x3d50dd['commands']['get']('deleteForward');_0x1a849e['enableCommand']('deleteForward',(_0x41f16e,_0x3a0398={})=>{const _0x3fa813=_0x3d50dd['model']['createSelection'](_0x3d50dd['model']['document']['selection']);_0x3fa813['isCollapsed']&&_0x3d50dd['model']['modifySelection'](_0x3fa813,{'direction':'forward','unit':_0x3a0398['unit']});const _0x13cd8a=_0x3fa813['getFirstRange'](),_0x1f3811=_0x5ac46d['fromRange'](_0x13cd8a);let _0x1fdc7f;_0x41f16e(_0x3a0398),_0x1fdc7f='$graveyard'==_0x1f3811['root']['rootName']?_0x3d50dd['model']['createRange'](_0x13cd8a['start']):_0x3d50dd['model']['createRange'](_0x1f3811['start'],_0x1f3811['end']),_0x1f3811['detach'](),_0x3d50dd['model']['enqueueChange'](_0x1948b6['buffer']['batch'],_0x570eaf=>{_0x1948b6['buffer']['lock'](),_0x570eaf['setSelection'](_0x570eaf['createRange'](_0x1fdc7f['end'])),_0x1948b6['buffer']['unlock']();});}),_0x3d50dd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0x3d50dd,'merge'),{'priority':'high'}),_0x3d50dd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x23e4fa,_0x739500,_0x8b2283)=>{_0x8b2283['options']['showSuggestionHighlights']&&Ge(_0x3d50dd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x23e4fa,_0x739500,_0x8b2283);},{'priority':'high'}),_0x3d50dd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x8042ec,_0x5d1903,_0x262679)=>{const _0x1edb4f=_0x262679['mapper']['markerNameToElements'](_0x5d1903['markerName']);if(_0x1edb4f){for(const _0x16369e of _0x1edb4f)_0x16369e['is']('uiElement')&&(_0x262679['mapper']['unbindElementFromMarkerName'](_0x16369e,_0x5d1903['markerName']),_0x262679['writer']['remove'](_0x16369e));}},{'priority':'high'});}}class Q extends _0xbac36c{['afterInit'](){const _0x5c270a=this['editor'];if(!_0x5c270a['plugins']['has']('ListEditing'))return;const _0x20d86d=_0x5c270a['locale'],_0x5afa94=_0x5c270a['plugins']['get']('TrackChangesEditing'),_0x29242b=_0x5c270a['plugins']['has']('TodoListEditing'),_0x2d4667=!!_0x5c270a['config']['get']('list.multiBlock');function _0x397370(_0x6f30a9){return{'type':'format','content':''+o(_0x20d86d,'*Set\x20format:*\x20%0',_0x6f30a9)};}function _0x178a04(_0x3618f6){return{'type':'format','content':''+o(_0x20d86d,'*Remove\x20format:*\x20%0',_0x3618f6)};}_0x5afa94['enableDefaultAttributesIntegration']('numberedList'),_0x5afa94['enableDefaultAttributesIntegration']('bulletedList'),_0x5afa94['enableDefaultAttributesIntegration']('customNumberedList'),_0x5afa94['enableDefaultAttributesIntegration']('customBulletedList'),_0x5afa94['enableDefaultAttributesIntegration']('indentList'),_0x5afa94['enableDefaultAttributesIntegration']('outdentList'),_0x5afa94['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5afa94['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5afa94['registerBlockAttribute']('listItemId'),_0x5afa94['registerBlockAttribute']('listType'),_0x5afa94['registerBlockAttribute']('listIndent'),_0x2d4667&&(_0x5afa94['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5afa94['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x29242b&&(_0x5afa94['enableDefaultAttributesIntegration']('todoList'),_0x5afa94['enableDefaultAttributesIntegration']('checkTodoList'),_0x5afa94['registerBlockAttribute']('todoListChecked'),_0x5afa94['descriptionFactory']['registerDescriptionCallback'](_0x4aa94e=>{const {data:_0x5f0f73}=_0x4aa94e;if(_0x5f0f73&&'todoListChecked'==_0x5f0f73['key'])return{'type':'format','content':_0x5f0f73['newValue']?o(_0x20d86d,'*Check\x20item*'):o(_0x20d86d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x51440d=>{if(_0x51440d['batch']['isUndo'])return!0x1;let _0xac3e77=!0x1;const _0x38fb99=_0x5afa94['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2cbc19=>'todoListChecked'===_0x5afa94['_getAttributeKey'](_0x2cbc19));for(const _0x3a1de4 of _0x38fb99){'todo'!=_0x3a1de4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5afa94['_findSuggestions'](_0x3a1de4['getFirstRange'](),'attribute')['find'](_0x234eea=>'listType'===_0x5afa94['_getAttributeKey'](_0x234eea['suggestion']))||(_0x51440d['removeMarker'](_0x3a1de4['getFirstMarker']()),_0xac3e77=!0x0));}return _0xac3e77;})),_0x5afa94['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x20d86d,'FORMAT_INDENT'));const _0x16a216={'type':'format','content':''};_0x5afa94['descriptionFactory']['registerDescriptionCallback'](_0x938ce7=>{const {data:_0x421fd7}=_0x938ce7;if(!_0x421fd7||'listType'!=_0x421fd7['key'])return;let _0x45b8c6=_0x938ce7['head'];for(;_0x45b8c6;){if(_0x45b8c6['data']&&(('listStyle'==_0x45b8c6['data']['key']||'listMarkerStyle'==_0x45b8c6['data']['key'])&&(_0x45b8c6['data']['newValue']&&'default'!=_0x45b8c6['data']['newValue']||'default'!=_0x45b8c6['data']['oldValue']&&!_0x421fd7['newValue'])||!_0x2d4667&&_0x45b8c6['data']['key']==m))return _0x16a216;_0x45b8c6=_0x45b8c6['next'];}if(null==_0x421fd7['newValue'])switch(_0x421fd7['oldValue']){case'bulleted':return _0x178a04(o(_0x20d86d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x178a04(o(_0x20d86d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x178a04(o(_0x20d86d,'ELEMENT_TODO_LIST'));}switch(_0x421fd7['newValue']){case'bulleted':return _0x397370(o(_0x20d86d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x397370(o(_0x20d86d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x397370(o(_0x20d86d,'ELEMENT_TODO_LIST'));}}),_0x5afa94['descriptionFactory']['registerDescriptionCallback'](_0x59477b=>{const {data:_0x445ac1}=_0x59477b;if(_0x445ac1&&'listIndent'==_0x445ac1['key'])return null==_0x445ac1['newValue']||null==_0x445ac1['oldValue']&&0x0==_0x445ac1['newValue']?_0x16a216:void 0x0;}),_0x5afa94['descriptionFactory']['registerDescriptionCallback'](_0x38d15b=>{if('attribute'!=_0x38d15b['type'])return;const {data:_0x51d123}=_0x38d15b;if(!_0x51d123||'listItemId'!=_0x51d123['key'])return;const _0x4b4d29=Be(_0x38d15b);return'newValue'==_0x4b4d29?{'type':'format','content':o(_0x20d86d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4b4d29?{'type':'format','content':o(_0x20d86d,'*Split:*\x20list\x20item')}:_0x16a216;}),_0x5c270a['model']['document']['registerPostFixer'](_0x2d9488=>this['listItemIdFixer'](_0x2d9488)),_0x5c270a['model']['document']['registerPostFixer'](_0x114908=>this['noTrackChangesFixer'](_0x114908)),_0x5c270a['model']['document']['on']('change:data',(_0x5c526f,_0x4ee30b)=>{if(_0x4ee30b['isUndo']||!_0x4ee30b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x17319e){if(_0x17319e['batch']['isUndo']||!_0x17319e['batch']['isLocal'])return!0x1;let _0xe2bfd0=!0x1;const _0x305ded=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c0d2a=>_0x1c0d2a['data']&&'listItemId'==_0x1c0d2a['data']['key'])['filter'](_0x2c73ee=>_0x2c73ee['data']['newValue']&&_0x2c73ee['data']['oldValue']);for(const _0x220499 of _0x305ded)Be(_0x220499)||(_0x17319e['removeMarker'](_0x220499['getFirstMarker']()),_0xe2bfd0=!0x0);return _0xe2bfd0;}['noTrackChangesFixer'](_0x554277){if(_0x554277['batch']['isUndo']||!_0x554277['batch']['isLocal'])return!0x1;const _0x18b6af=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x18b6af['trackChangesCommand']['value'])return!0x1;let _0x409925=!0x1;const _0x40e539=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2807e1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x48f5b3=>'attribute'==_0x48f5b3['type'])['filter'](_0x49bb5f=>_0x40e539['includes'](_0x49bb5f['attributeKey']));if(0x0==_0x2807e1['length'])return _0x409925;for(const _0x44db01 of _0x2807e1){const _0x15a959=_0x18b6af['_findSuggestions'](_0x44db01['range'],'attribute')['filter'](_0xb7126c=>!_0xb7126c['meta']['isNextTo'])['map'](_0x5aee6c=>_0x5aee6c['suggestion'])['filter'](_0x2a320a=>{const _0x46a1e0=_0x18b6af['_getAttributeKey'](_0x2a320a);return _0x40e539['includes'](_0x46a1e0);});if(_0x15a959['length']){for(const _0x2234e7 of _0x15a959)_0x554277['removeMarker'](_0x2234e7['getFirstMarker']());_0x409925=!0x0;}}return _0x409925;}['assureChains'](){const _0x2e7c48=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17eb64=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x41f6ce;const _0x1a72a8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4683a3=>{if(_0x4683a3['data']['oldRange']||!_0x4683a3['data']['newRange'])return null;if(!_0x4683a3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x7c3d1f}=_0x2e7c48['_splitMarkerName'](_0x4683a3['name']);if(!_0x2e7c48['hasSuggestion'](_0x7c3d1f))return null;const _0x43b655=_0x2e7c48['getSuggestion'](_0x7c3d1f);return _0x17eb64['includes'](_0x43b655['data']['key']);})['map'](_0x38edbb=>{const {id:_0x5b8198}=_0x2e7c48['_splitMarkerName'](_0x38edbb['name']),_0x1d179f=_0x2e7c48['getSuggestion'](_0x5b8198);return _0x41f6ce=_0x1d179f['attributes']['groupId'],_0x1d179f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1a72a8['size'])return;const _0xb20cd8=_0x2e7c48['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x330b90=>'attribute'==_0x330b90['type']&&_0x330b90['data']&&_0x17eb64['includes'](_0x330b90['data']['key'])&&_0x330b90['attributes']['groupId']!=_0x41f6ce)['map'](_0x10cffd=>({'listItem':_0x10cffd['getFirstRange']()['start']['nodeAfter'],'groupId':_0x10cffd['attributes']['groupId']})),_0x236882=new Set();for(const {groupId:_0x5a3344,listItem:_0x2874aa}of _0xb20cd8)_0x1a72a8['has'](_0x2874aa)&&_0x236882['add'](_0x5a3344);for(const _0x388b7c of _0x2e7c48['getSuggestions']())_0x236882['has'](_0x388b7c['attributes']['groupId'])&&_0x388b7c['setAttribute']('groupId',_0x41f6ce);}['_supportLegacySuggestions'](){const _0x11c272=this['editor'],_0x52ac9c=_0x11c272['locale'],_0x14599f=_0x11c272['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x14599f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4f6119,_0x2ca2cf){const _0x44c433=[];for(let _0x3495cd of _0x4f6119)_0x3495cd['start']['nodeAfter']===_0x3495cd['end']['parent']&&(_0x3495cd=_0x11c272['model']['createRange'](_0x11c272['model']['createPositionAt'](_0x3495cd['start']['nodeAfter'],0x0))),_0x44c433['push'](_0x3495cd);_0x11c272['model']['change'](_0x23202d=>{const _0x19cc93=_0x11c272['model']['document']['selection'],_0x284c2b=Array['from'](_0x19cc93['getRanges']())['map'](_0x368fe2=>_0x5ac46d['fromRange'](_0x368fe2));_0x23202d['setSelection'](_0x44c433),_0x11c272['commands']['get'](_0x2ca2cf['commandName'])['refresh'](),_0x2ca2cf['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x11c272['execute'](_0x2ca2cf['commandName'],..._0x2ca2cf['commandParams']),_0x23202d['setSelection'](_0x284c2b);for(const _0x522ce1 of _0x284c2b)_0x522ce1['detach']();});}),_0x14599f['descriptionFactory']['registerElementLabel'](function(_0x4a8989){const _0x468435=!_0x11c272['model']['schema']['isObject'](_0x4a8989),_0x4e2fa2=_0x4a8989['previousSibling'],_0x1e8aa5=_0x4a8989['nextSibling'],_0x544d22=_0x4a8989['getAttribute']('listItemId'),_0xb7ebe4=!_0x4e2fa2||_0x4e2fa2['getAttribute']('listItemId')!==_0x544d22,_0x4843e0=!_0x1e8aa5||_0x1e8aa5['getAttribute']('listItemId')!==_0x544d22;return _0x468435&&Boolean(_0x544d22)&&_0xb7ebe4&&_0x4843e0;},_0xe3ecd6=>o(_0x52ac9c,'ELEMENT_LIST_ITEM',_0xe3ecd6));}['_registerLegacyDescription'](){const _0x33f2d1=this['editor'],_0x3ac59b=_0x33f2d1['locale'];function _0x4e354a(_0x13b904){const _0x1ce37e=_0x33f2d1['commands']['get']('bulletedList')['value'],_0x3dfb15=_0x33f2d1['commands']['get']('numberedList')['value'];return'numberedList'===_0x13b904?_0x1ce37e:_0x3dfb15;}_0x33f2d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x15dcef){if('formatBlock'!=_0x15dcef['type'])return;const {data:_0xb2276c}=_0x15dcef;if(!_0xb2276c)return;let _0xd5cdb1,_0x1f767a,_0x587461,_0x1d12c9;switch(_0xb2276c['commandName']){case'bulletedList':_0x587461=_0xb2276c['commandParams'][0x0]['forceValue'],_0x1d12c9=_0x4e354a(_0xb2276c['commandName']),_0xd5cdb1=_0x587461?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d12c9&&_0x33f2d1['config']['get']('list.multiBlock')||(_0xd5cdb1='*Change\x20to:*\x20%0'),_0x1f767a={'type':'format','content':o(_0x3ac59b,_0xd5cdb1,o(_0x3ac59b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x587461=_0xb2276c['commandParams'][0x0]['forceValue'],_0x1d12c9=_0x4e354a(_0xb2276c['commandName']),_0xd5cdb1=_0x587461?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d12c9&&_0x33f2d1['config']['get']('list.multiBlock')||(_0xd5cdb1='*Change\x20to:*\x20%0'),_0x1f767a={'type':'format','content':o(_0x3ac59b,_0xd5cdb1,o(_0x3ac59b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xd5cdb1='*Indent:*\x20%0',_0x1f767a={'type':'format','content':o(_0x3ac59b,_0xd5cdb1,o(_0x3ac59b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xd5cdb1=function(_0x2160f2){const _0x27a011=_0x2160f2['getFirstRange']();let _0xd722a0=_0x27a011['start']['nodeAfter'];for(;_0xd722a0&&_0x27a011['containsItem'](_0xd722a0);){if(_0xd722a0['getAttribute']('listIndent')>0x0)return!0x1;_0xd722a0=_0xd722a0['nextSibling'];}return!0x0;}(_0x15dcef)?o(_0x3ac59b,'*Format:*\x20remove\x20from\x20%0',o(_0x3ac59b,function(_0x258de7){return'ELEMENT_'+_0x258de7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x15dcef))):o(_0x3ac59b,'*Outdent:*\x20%0',o(_0x3ac59b,'ELEMENT_LIST_ITEM')),_0x1f767a={'type':'format','content':_0xd5cdb1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xb2276c['multipleBlocks']&&(_0xd5cdb1='*Merge:*\x20%0',_0x1f767a={'type':'deletion','content':o(_0x3ac59b,_0xd5cdb1,o(_0x3ac59b,'ELEMENT_LIST_ITEM'))});}return _0x1f767a;});}}function Be(_0x37d28a){let _0x91fa06=_0x37d28a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x91fa06;){const _0x327945=_0x91fa06['getAttribute']('listItemId');if(!_0x327945)return!0x1;if(_0x327945==_0x37d28a['data']['newValue'])return'newValue';if(_0x327945==_0x37d28a['data']['oldValue'])return'oldValue';_0x91fa06=_0x91fa06['previousSibling'];}return!0x1;}class X extends _0xbac36c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x348372=this['editor']['config']['get']('list.properties'),_0x567b2b=this['editor']['plugins']['get']('TrackChangesEditing');_0x348372['styles']&&(_0x567b2b['enableDefaultAttributesIntegration']('listStyle'),_0x567b2b['registerBlockAttribute']('listStyle')),_0x348372['reversed']&&(_0x567b2b['enableDefaultAttributesIntegration']('listReversed'),_0x567b2b['registerBlockAttribute']('listReversed')),_0x348372['startIndex']&&(_0x567b2b['enableDefaultAttributesIntegration']('listStart'),_0x567b2b['registerBlockAttribute']('listStart'));const _0x5d9433={'type':'format','content':''};_0x567b2b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x345ae2=this['editor']['locale'];_0x567b2b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x345ae2,'FORMAT_LIST_REVERSED')),_0x567b2b['descriptionFactory']['registerDescriptionCallback'](_0x41803f=>{const {data:_0x31cf78}=_0x41803f;if(_0x31cf78&&'listReversed'==_0x31cf78['key'])return null==_0x31cf78['newValue']||0x0==_0x31cf78['newValue']&&null==_0x31cf78['oldValue']?_0x5d9433:void 0x0;}),_0x567b2b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x345ae2,'FORMAT_LIST_START')),_0x567b2b['descriptionFactory']['registerDescriptionCallback'](_0x5ac895=>{const {data:_0x4857d2}=_0x5ac895;if(_0x4857d2&&'listStart'==_0x4857d2['key'])return null==_0x4857d2['newValue']||0x1==_0x4857d2['newValue']&&null==_0x4857d2['oldValue']?_0x5d9433:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xb32db1=>{if(_0xb32db1['batch']['isUndo'])return!0x1;let _0x1e7583=!0x1;const _0x561835=_0x567b2b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3af7f2=>{const _0x1b83a0=_0x567b2b['_getAttributeKey'](_0x3af7f2);return'listStart'==_0x1b83a0||'listReversed'==_0x1b83a0;});for(const _0x51a0bd of _0x561835){const _0x135603=_0x51a0bd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x135603||'customNumbered'==_0x135603)continue;_0x567b2b['_findSuggestions'](_0x51a0bd['getFirstRange'](),'attribute')['find'](_0x30b7a2=>'listType'==_0x567b2b['_getAttributeKey'](_0x30b7a2['suggestion']))||(_0xb32db1['removeMarker'](_0x51a0bd['getFirstMarker']()),_0x1e7583=!0x0);}return _0x1e7583;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x27689b){const _0x57235a=this['editor']['locale'],{data:_0x2bfb41}=_0x27689b,_0x190f00={'type':'format','content':''};if(!_0x2bfb41||'listStyle'!=_0x2bfb41['key'])return;if(!_0x2bfb41['oldValue'])return'default'==_0x2bfb41['newValue']?_0x190f00:{'type':'format','content':''+o(_0x57235a,'*Set\x20format:*\x20%0',o(_0x57235a,this['_getTranslationKeyForListStyle'](_0x2bfb41['newValue'])))};if(!_0x2bfb41['newValue']){if('default'==_0x2bfb41['oldValue'])return _0x190f00;let _0x4ab313=_0x27689b['head'];for(;_0x4ab313;){if(_0x4ab313['data']&&'listType'==_0x4ab313['data']['key']&&_0x4ab313['data']['newValue'])return _0x190f00;_0x4ab313=_0x4ab313['next'];}return{'type':'format','content':''+o(_0x57235a,'*Remove\x20format:*\x20%0',o(_0x57235a,this['_getTranslationKeyForListStyle'](_0x2bfb41['oldValue'])))};}if('default'!=_0x2bfb41['newValue'])return{'type':'format','content':''+o(_0x57235a,'*Set\x20format:*\x20%0',o(_0x57235a,this['_getTranslationKeyForListStyle'](_0x2bfb41['newValue'])))};let _0x1f0f51=_0x27689b['head'];for(;_0x1f0f51;){if(_0x1f0f51['data']&&'listType'==_0x1f0f51['data']['key']&&_0x1f0f51['data']['newValue']&&_0x1f0f51['data']['oldValue'])return _0x190f00;_0x1f0f51=_0x1f0f51['next'];}return{'type':'format','content':o(_0x57235a,'*Set\x20format:*\x20%0',o(_0x57235a,'ELEMENT_'+_0x27689b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2a019d=this['editor'],_0x13838b=_0x2a019d['locale'];_0x2a019d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x200fb4=>{if('formatBlock'!=_0x200fb4['type'])return;const {data:_0x5999f7}=_0x200fb4;if(!_0x5999f7)return;let _0x51e0c2,_0x4b7aa6;switch(_0x5999f7['commandName']){case'listStyle':_0x51e0c2='*Change\x20to:*\x20%0',_0x4b7aa6={'type':'format','content':o(_0x13838b,_0x51e0c2,o(_0x13838b,this['_getTranslationKeyForListStyle'](_0x5999f7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x51e0c2=_0x5999f7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4b7aa6={'type':'format','content':o(_0x13838b,_0x51e0c2)};break;case'listStart':_0x51e0c2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b7aa6={'type':'format','content':o(_0x13838b,_0x51e0c2,_0x5999f7['commandParams'][0x0]['startIndex'])};}return _0x4b7aa6;});}['_getTranslationKeyForListStyle'](_0x4fb134){return'ELEMENT_'+function(_0x4facdf){if(Re['includes'](_0x4facdf))return'bulleted';if(Fe['includes'](_0x4facdf))return'numbered';return null;}(_0x4fb134)['toUpperCase']()+'_LIST_'+_0x4fb134['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Fe=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Y extends _0xbac36c{['afterInit'](){const _0xbf2fd0=this['editor'];_0xbf2fd0['commands']['get']('emoji')&&_0xbf2fd0['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Z extends _0xbac36c{static get['requires'](){return[_0x4a7e38];}['init'](){const _0x1e5185=this['editor'],_0x33df41=_0x1e5185['plugins']['get']('TrackChangesEditing'),_0x4c5ed3=_0x1e5185['commands']['get']('enter');_0x33df41['enableCommand']('enter',()=>{_0x1e5185['model']['change'](_0x26014f=>{const _0x10128b=_0x1e5185['model']['document']['selection'],_0x4d81c7=_0x10128b['getFirstPosition'](),_0x4c025e=_0x5ac46d['fromRange'](_0x10128b['getFirstRange']());if(_0x4c5ed3['enterBlock'](_0x26014f)){const _0x40e9d2=_0x1e5185['model']['createPositionAt'](_0x4d81c7['parent']['nextSibling'],0x0),_0x72dbf9=_0x26014f['createRange'](_0x4d81c7,_0x40e9d2);_0x33df41['markInsertion'](_0x72dbf9);}else _0x26014f['setSelection'](_0x26014f['createRange'](_0x4c025e['end']));_0x4c025e['detach'](),_0x4c5ed3['fire']('afterExecute',{'writer':_0x26014f});});}),_0x1e5185['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0x1e5185,'split'),{'priority':'high'}),_0x1e5185['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x537a86,_0x2fbe61,_0x51852e)=>{const _0x2db701=_0x51852e['mapper']['markerNameToElements'](_0x2fbe61['markerName']);if(_0x2db701){for(const _0xfedcf6 of _0x2db701)_0xfedcf6['hasClass']('ck-suggestion-marker-split')&&(_0x51852e['mapper']['unbindElementFromMarkerName'](_0xfedcf6,_0x2fbe61['markerName']),_0x51852e['writer']['remove'](_0xfedcf6));}},{'priority':'high'}),_0x1e5185['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x13e7c2,_0x515817,_0x516ba5)=>{_0x516ba5['options']['showSuggestionHighlights']&&Ge(_0x1e5185,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x13e7c2,_0x515817,_0x516ba5);},{'priority':'high'});}}class tt extends _0xbac36c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5d7815=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d7815['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5d7815['enableCommand']('findNext'),_0x5d7815['enableCommand']('findPrevious'),_0x5d7815['enableCommand']('replace'),_0x5d7815['enableCommand']('replaceAll');}['handleFindCommand'](_0x49402b,_0x17f24d,_0x8a8693={}){const _0x10f5c3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x49402b(_0x217dfe=>{let _0x307754=('string'==typeof _0x17f24d?_0x10f5c3['findByTextCallback'](_0x17f24d,_0x8a8693):_0x17f24d)(_0x217dfe);Array['isArray'](_0x307754)&&(_0x307754={'results':_0x307754,'searchText':'string'==typeof _0x17f24d?_0x17f24d:''});const _0x2b926c=_0x307754['results']['filter'](_0x2f641c=>!0x1===this['_isInDeletionRange'](_0x2f641c,_0x217dfe['item']));return{..._0x307754,'results':_0x2b926c};},_0x8a8693);}['_isInDeletionRange'](_0x37eb13,_0x549df5){const _0x5b33cb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x549df5,_0x37eb13['start']),this['editor']['model']['createPositionAt'](_0x549df5,_0x37eb13['end']));for(const _0x3df405 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5b33cb['getIntersection'](_0x3df405['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class et extends _0xbac36c{['afterInit'](){const _0x13a07b=this['editor']['locale'],_0x169e7c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x438bbd,commandName:_0x47a819}of eo)this['editor']['plugins']['has'](_0x438bbd)&&(_0x169e7c['enableDefaultAttributesIntegration'](_0x47a819),_0x169e7c['registerInlineAttribute'](_0x47a819));_0x169e7c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x13a07b,'FORMAT_FONT_SIZE')),_0x169e7c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x13a07b,'FORMAT_FONT_FAMILY')),_0x169e7c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x13a07b,'FORMAT_FONT_COLOR')),_0x169e7c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x13a07b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x539dab=this['editor'],_0x6b202c=_0x539dab['locale'];_0x539dab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19b8fa=>{const _0x2a2718=_0x6b202c['t'];if('formatInline'!=_0x19b8fa['type'])return;const {data:_0x10edd7}=_0x19b8fa;if(null!=_0x10edd7){if('fontSize'==_0x10edd7['commandName']){const _0x4f598c=_0x10edd7['commandParams'][0x0]['value'];if(_0x4f598c){const _0x516b96=_0x2a2718(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x27ce47=>_0x27ce47['model']==_0x4f598c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x6b202c,'*Set\x20font\x20size:*\x20%0',_0x516b96)};}return{'type':'format','content':o(_0x6b202c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x10edd7['commandName']){const _0x58c20a=_0x10edd7['commandParams'][0x0]['value'];return _0x58c20a?{'type':'format','content':o(_0x6b202c,'*Set\x20font\x20family:*\x20%0',_0x58c20a)}:{'type':'format','content':o(_0x6b202c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x10edd7['commandName']){const _0x5224e6=_0x10edd7['commandParams'][0x0]['value'];if(_0x5224e6){const _0xfeec50=_0x559df4(this['editor']['config']['get']('fontColor.colors'))['find'](_0xab9c84=>_0xab9c84['model']==_0x5224e6);let _0x30315a=_0x5224e6,_0xa8268c='';return _0xfeec50&&(_0x30315a=_0xfeec50['label'],_0xa8268c=_0x2a2718(_0x30315a)['toLowerCase']()),{'type':'format','content':o(_0x6b202c,'*Set\x20font\x20color:*\x20%0',_0xa8268c)['trim'](),'color':{'value':_0x5224e6,'title':_0xa8268c||_0x30315a}};}return{'type':'format','content':o(_0x6b202c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x10edd7['commandName']){const _0x393b27=_0x10edd7['commandParams'][0x0]['value'];if(_0x393b27){const _0x2935c5=_0x559df4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x463aa2=>_0x463aa2['model']==_0x393b27);let _0x2a8f52=_0x393b27,_0x561796='';return _0x2935c5&&(_0x2a8f52=_0x2935c5['label'],_0x561796=_0x2a2718(_0x2a8f52)['toLowerCase']()),{'type':'format','content':o(_0x6b202c,'*Set\x20font\x20background\x20color:*\x20%0',_0x561796)['trim'](),'color':{'value':_0x393b27,'title':_0x561796||_0x2a8f52}};}return{'type':'format','content':o(_0x6b202c,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0xbac36c{['afterInit'](){const _0x5a41a5=this['editor'],_0x207c39=_0x5a41a5['plugins']['get']('TrackChangesEditing'),_0x504cd4=_0x5a41a5['commands']['get']('copyFormat'),_0x28c9b0=_0x5a41a5['commands']['get']('pasteFormat');_0x504cd4&&_0x28c9b0&&(_0x207c39['enableDefaultAttributesIntegration']('pasteFormat'),_0x207c39['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x413cca=this['editor'],_0x53a5ab=_0x413cca['locale'];_0x413cca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x411379=>{if('formatBlock'!=_0x411379['type']&&'formatInline'!=_0x411379['type'])return;const {data:_0x23b58c}=_0x411379;if(_0x23b58c&&'pasteFormat'===_0x23b58c['commandName']){const _0x26db77=[],_0x419370=_0x23b58c['commandParams'][0x0];for(const [_0x34c01d,_0x2103dd]of Object['entries'](_0x419370))_0x26db77['push'](ro(_0x413cca,_0x34c01d,_0x2103dd));return _0x26db77['length']?{'type':'format','content':o(_0x53a5ab,'*Set\x20format\x20to:*\x20%0',_0x26db77['join'](',\x20'))}:{'type':'format','content':o(_0x53a5ab,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3954bf,_0x4da6e6,_0x3d4693){const _0x16affc=_0x3954bf['locale']['t'],_0xb75aa4=_0x4da6e6['split'](/(?=[A-Z])/)['join']('\x20'),_0x18172e=_0x16affc(_0xb75aa4['charAt'](0x0)['toUpperCase']()+_0xb75aa4['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3d4693)return _0x18172e;if('fontColor'===_0x4da6e6||'fontBackgroundColor'===_0x4da6e6){const _0x1d2fe0=_0x559df4(_0x3954bf['config']['get']('fontColor.colors'))['find'](_0x598cb1=>_0x598cb1['model']==_0x3d4693);return _0x18172e+'\x20('+(_0x1d2fe0?_0x16affc(_0x1d2fe0['label'])['toLowerCase']():_0x3d4693)+')';}if('fontSize'===_0x4da6e6&&isNaN(parseFloat(_0x3d4693))){const _0x1a5712=_0x3954bf['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3954bf['config']['get']('fontSize.options'))['find'](_0x43243e=>_0x43243e['model']==_0x3d4693);return _0x18172e+'\x20('+(_0x1a5712?_0x16affc(_0x1a5712['title'])['toLowerCase']():_0x3d4693)+')';}return _0x18172e+'\x20('+_0x3d4693+')';}class nt extends _0xbac36c{['_headingOptions'];['afterInit'](){const _0x31eeed=this['editor'];if(!_0x31eeed['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x31eeed['config']['get']('heading.options');const _0x55f6b5=_0x31eeed['locale'],_0x1b72ac=_0x31eeed['plugins']['get']('TrackChangesEditing');_0x1b72ac['enableDefaultAttributesIntegration']('heading');for(const _0x8efaf4 of this['_headingOptions'])'paragraph'!=_0x8efaf4['model']&&_0x1b72ac['descriptionFactory']['registerElementLabel'](_0x8efaf4['model'],_0x4d881e=>{const _0x129f36=this['_getHeadingLevel'](_0x8efaf4['model']);return null!==_0x129f36?_0x45c4cf(_0x4d881e,_0x129f36):_0x3d8b2c(_0x4d881e,_0x8efaf4['title']);});function _0x45c4cf(_0x3fff58,_0x764c66){return o(_0x55f6b5,'ELEMENT_HEADING',[_0x3fff58,_0x764c66]);}function _0x3d8b2c(_0x362de8,_0x386add){return o(_0x55f6b5,'ELEMENT_HEADING_CUSTOM',[_0x362de8,_0x386add]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6ecf6e=this['editor'],_0x55ee0d=_0x6ecf6e['locale'];function _0xbdc7b2(_0x13ce5e,_0x4ec50d){return o(_0x55ee0d,'ELEMENT_HEADING_CUSTOM',[_0x13ce5e,_0x4ec50d]);}_0x6ecf6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bfda4=>{if('formatBlock'!=_0x4bfda4['type'])return;const {data:_0x1e40bb}=_0x4bfda4;if(_0x1e40bb&&'heading'==_0x1e40bb['commandName']){const _0x4c720f=_0x1e40bb['commandParams'][0x0]['value'],_0x5207b3=this['_getHeadingLevel'](_0x4c720f);if(null!==_0x5207b3)return{'type':'format','content':o(_0x55ee0d,'*Change\x20to:*\x20%0',(_0x7b75f=0x1,_0x4ed5bf=_0x5207b3,o(_0x55ee0d,'ELEMENT_HEADING',[_0x7b75f,_0x4ed5bf])))};const _0x4c3fa8=this['_headingOptions']['find'](_0x1c9a70=>_0x1c9a70['model']===_0x4c720f)['title'];return{'type':'format','content':o(_0x55ee0d,'*Change\x20to:*\x20%0',_0xbdc7b2(0x1,_0x4c3fa8))};}var _0x7b75f,_0x4ed5bf;});}['_getHeadingLevel'](_0x1a36c7){const _0x3ae5f1=_0x1a36c7['match'](/^heading(\d+)/);if(_0x3ae5f1)return _0x3ae5f1[0x1];const _0x3cde86=this['_headingOptions']?.['find'](_0x249a7e=>_0x249a7e['model']==_0x1a36c7);if(_0x3cde86&&_0x3cde86['view']){const _0x4e633d=_0x3cde86['view'],_0x2f3e9e=(_0x4e633d['name']??_0x4e633d)['match'](/^h(\d+)/);if(_0x2f3e9e)return _0x2f3e9e[0x1];}return null;}}class st extends _0xbac36c{['afterInit'](){const _0x346663=this['editor'];if(!_0x346663['plugins']['has']('HighlightEditing'))return;const _0xd3466d=_0x346663['plugins']['get']('TrackChangesEditing'),_0x275550=_0x346663['locale'];_0xd3466d['enableDefaultAttributesIntegration']('highlight'),_0xd3466d['registerInlineAttribute']('highlight'),_0xd3466d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x275550,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc70a4e=this['editor'],_0x242705=_0xc70a4e['locale'];_0xc70a4e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e1870=>{if('formatInline'!=_0x5e1870['type'])return;const {data:_0x53df7c}=_0x5e1870;if(_0x53df7c&&'highlight'==_0x53df7c['commandName']){const _0x9134a=_0x242705['t'],_0x326a2c=_0x53df7c['commandParams'][0x0]['value'];if(_0x326a2c){const _0x4bfd8a=_0xc70a4e['config']['get']('highlight.options')['find'](_0x16891b=>_0x16891b['model']==_0x326a2c),_0x1771cb=_0x9134a(_0x4bfd8a['title'])['toLowerCase']();return{'type':'format','content':o(_0x242705,'*Set\x20highlight:*\x20%0',_0x1771cb),'color':{'value':_0x4bfd8a['color'],'title':_0x4bfd8a['title']}};}return{'type':'format','content':o(_0x242705,'*Remove\x20highlight*',o(_0x242705,'FORMAT_HIGHLIGHT'))};}});}}class ot extends _0xbac36c{['afterInit'](){const _0x3aa516=this['editor'];if(!_0x3aa516['plugins']['has']('HorizontalLineEditing'))return;_0x3aa516['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x302c09=_0x3aa516['plugins']['get']('TrackChangesEditing'),_0x32d041=_0x3aa516['locale'];_0x302c09['descriptionFactory']['registerElementLabel']('horizontalLine',_0x464d63=>o(_0x32d041,'ELEMENT_HORIZONTAL_LINE',_0x464d63)),_0x3aa516['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1d214d,{writer:_0x246525,options:_0x1f7a5e})=>{if(!_0x1f7a5e['showSuggestionHighlights'])return null;const _0x4e0fb4=_0x246525['createContainerElement']('div'),_0x2315c3=_0x246525['createEmptyElement']('hr');return _0x246525['addClass']('ck-horizontal-line',_0x4e0fb4),_0x246525['insert'](_0x246525['createPositionAt'](_0x4e0fb4,0x0),_0x2315c3),_0x4e0fb4;},'converterPriority':'high'});}}class rt extends _0xbac36c{['afterInit'](){const _0x1be641=this['editor'];if(!_0x1be641['plugins']['has']('HtmlEmbed'))return;const _0x56dd52=_0x1be641['plugins']['get']('TrackChangesEditing'),_0x5c5e4e=_0x1be641['locale'];_0x56dd52['descriptionFactory']['registerElementLabel']('rawHtml',_0x35c92a=>o(_0x5c5e4e,'ELEMENT_HTML_EMBED',_0x35c92a)),_0x56dd52['enableDefaultAttributesIntegration']('htmlEmbed'),_0x56dd52['registerBlockAttribute']('value'),_0x56dd52['descriptionFactory']['registerDescriptionCallback'](_0x23dc64=>{if('attribute'!=_0x23dc64['type'])return;const {data:_0x2d9be5}=_0x23dc64;if(_0x2d9be5&&'value'==_0x2d9be5['key']&&_0x23dc64['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x41350f=o(_0x5c5e4e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5c5e4e,'*Change\x20%0\x20content*',_0x41350f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dcd65=this['editor'],_0x2d9dc8=_0x1dcd65['locale'];_0x1dcd65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28919b=>{if('formatBlock'!=_0x28919b['type'])return;const {data:_0xf0523b}=_0x28919b;if(_0xf0523b&&'htmlEmbed'==_0xf0523b['commandName']){const _0x39a4a3=o(_0x2d9dc8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2d9dc8,'*Change\x20%0\x20content*',_0x39a4a3)};}});}}class at extends _0xbac36c{['afterInit'](){const _0x1dab32=this['editor'];if(!_0x1dab32['plugins']['has']('ImageEditing'))return;const _0x4bac03=_0x1dab32['plugins']['get']('TrackChangesEditing'),_0x552052=_0x1dab32['plugins']['get']('ImageUtils'),_0x58c26c=_0x1dab32['locale'];_0x4bac03['enableCommand']('insertImage'),_0x4bac03['descriptionFactory']['registerElementLabel']('imageBlock',_0x26c182=>o(_0x58c26c,'ELEMENT_IMAGE',_0x26c182)),_0x4bac03['descriptionFactory']['registerElementLabel']('imageInline',_0x3dfca1=>o(_0x58c26c,'ELEMENT_INLINE_IMAGE',_0x3dfca1)),_0x4bac03['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x58c26c,'ELEMENT_CAPTION')),_0x1dab32['plugins']['has']('ImageUploadEditing')&&_0x4bac03['enableCommand']('uploadImage'),_0x1dab32['plugins']['has']('ImageBlockEditing')&&_0x1dab32['plugins']['has']('ImageInlineEditing')&&(_0x4bac03['enableCommand']('imageTypeInline',(_0x3e29e1,_0x188518)=>{const _0x2eed42=_0x552052['getClosestSelectedImageElement'](_0x1dab32['model']['document']['selection']);_0x1dab32['model']['change'](()=>{_0x4bac03['markBlockFormat'](_0x2eed42,{'commandName':'imageTypeInline','commandParams':[_0x188518]},[],'convertBlockImageToInline');});}),_0x4bac03['enableCommand']('imageTypeBlock',(_0x52b779,_0x1cf7d8)=>{_0x1dab32['model']['change'](_0x11e7c3=>{let _0x53ebcc=_0x552052['getClosestSelectedImageElement'](_0x1dab32['model']['document']['selection']),_0x1a5a19=_0x11e7c3['createRangeOn'](_0x53ebcc);const _0x45b903=_0x56e277['fromPosition'](_0x1a5a19['start'],'toPrevious'),_0x442875=_0x56e277['fromPosition'](_0x1a5a19['end'],'toNext');_0x4bac03['forceDefaultExecution'](()=>_0x52b779(_0x1cf7d8)),_0x53ebcc=_0x552052['getClosestSelectedImageElement'](_0x1dab32['model']['document']['selection']),_0x1a5a19=_0x11e7c3['createRangeOn'](_0x53ebcc);const _0x2c3f3c=_0x11e7c3['createRange'](_0x45b903,_0x442875);_0x45b903['detach'](),_0x442875['detach'](),_0x4bac03['markBlockFormat'](_0x53ebcc,{'commandName':'imageTypeInline','commandParams':[_0x1cf7d8]},[],'convertInlineImageToBlock'),_0x2c3f3c['start']['isBefore'](_0x1a5a19['start'])&&_0x4bac03['markInsertion'](_0x11e7c3['createRange'](_0x2c3f3c['start'],_0x1a5a19['start']),'convertInlineImageToBlock'),_0x1a5a19['end']['isBefore'](_0x2c3f3c['end'])&&_0x4bac03['markInsertion'](_0x11e7c3['createRange'](_0x1a5a19['end'],_0x2c3f3c['end']),'convertInlineImageToBlock');});}),_0x4bac03['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4bac03['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4bac03['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4bac03['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4bac03['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4bac03['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3cd371])=>{const _0x3c9b51=_0x4bac03['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4f2bea=_0x3cd371['start'],_0x398d17=_0x3cd371['end'];const _0x29b36e=_0x1dab32['model']['schema']['getNearestSelectionRange'](_0x4f2bea,'backward'),_0x4cd783=_0x1dab32['model']['schema']['getNearestSelectionRange'](_0x398d17,'forward');_0x29b36e['isCollapsed']&&(_0x4f2bea=_0x29b36e['start']),_0x4cd783['isCollapsed']&&(_0x398d17=_0x4cd783['end']),_0x3c9b51([_0x1dab32['model']['createRange'](_0x4f2bea,_0x398d17)]);}),_0x4bac03['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x53ca8e),_0x4bac03['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x53ca8e)),_0x1dab32['plugins']['has']('ImageCaptionEditing')&&(_0x4bac03['enableCommand']('toggleImageCaption',(_0x320f49,_0x380f25)=>{const _0x4a6908=_0x1dab32['plugins']['get']('ImageCaptionUtils');let _0x1db99e=_0x552052['getClosestSelectedImageElement'](_0x1dab32['model']['document']['selection']),_0x5396e6=_0x4a6908['getCaptionFromImageModelElement'](_0x1db99e);_0x1dab32['model']['change'](()=>{if(_0x5396e6)return void _0x4bac03['markDeletion'](_0x1dab32['model']['createRangeOn'](_0x5396e6));const _0x2c5bdb=_0x552052['isBlockImage'](_0x1db99e);_0x320f49(_0x380f25),_0x1db99e=_0x552052['getClosestSelectedImageElement'](_0x1dab32['model']['document']['selection']),_0x5396e6=_0x4a6908['getCaptionFromImageModelElement'](_0x1db99e),_0x4bac03['markInsertion'](_0x1dab32['model']['createRangeOn'](_0x5396e6),_0x2c5bdb?null:'imageCaption');});}),_0x4bac03['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x53ca8e));const _0x2e40fe=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xda5c3c(_0x38193a,_0x58b8d7){const _0x3ba3db=_0x2e40fe['findIndex'](({type:_0x14e00a,subType:_0x2d2f76})=>_0x38193a['type']==_0x14e00a&&_0x38193a['subType']==_0x2d2f76),_0x6ea0b3=_0x2e40fe['findIndex'](({type:_0x586793,subType:_0x47845e})=>_0x58b8d7['type']==_0x586793&&_0x58b8d7['subType']==_0x47845e);if(_0x3ba3db<0x0||_0x6ea0b3<0x0)return!0x1;const _0x58ba84=_0x38193a['getFirstRange'](),_0x3306b7=_0x58b8d7['getFirstRange']();if((0x0==_0x3ba3db||0x1==_0x3ba3db)&&0x2==_0x6ea0b3&&_0x58ba84['isIntersecting'](_0x3306b7))return!0x0;if(0x2==_0x3ba3db&&0x3==_0x6ea0b3){const _0x362f59=_0x4bac03['_findSuggestions'](_0x58ba84,'insertion')['filter'](({suggestion:_0x53b3ff,meta:_0x1e843a})=>_0x1e843a['isOwn']&&'convertInlineImageToBlock'==_0x53b3ff['subType']);if(_0x362f59['length']>0x1&&_0x3306b7['end']['isEqual'](_0x58ba84['start']))return!0x0;if(0x1==_0x362f59['length']&&(_0x58ba84['start']['isEqual'](_0x3306b7['end'])||_0x58ba84['end']['isEqual'](_0x3306b7['start'])))return!0x0;}if(0x3==_0x3ba3db&&0x3==_0x6ea0b3&&_0x58ba84['start']['isBefore'](_0x3306b7['start'])){const _0x111186=_0x58ba84['end']['nodeAfter'],_0x292af9=_0x3306b7['start']['nodeBefore'];return _0x552052['isBlockImage'](_0x111186)&&_0x111186===_0x292af9;}return!0x1;}function _0x53ca8e(_0x36f7c9,_0x3b161e){return _0xda5c3c(_0x36f7c9,_0x3b161e)?[_0x36f7c9,_0x3b161e]:_0xda5c3c(_0x3b161e,_0x36f7c9)?[_0x3b161e,_0x36f7c9]:null;}_0x1dab32['plugins']['has']('ImageResize')&&(_0x4bac03['enableDefaultAttributesIntegration']('resizeImage'),_0x4bac03['registerBlockAttribute']('resizedWidth'),_0x4bac03['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x58c26c,'FORMAT_IMAGE_SIZE'))),_0x1dab32['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4bac03['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4bac03['registerBlockAttribute']('alt')),_0x1dab32['plugins']['has']('PictureEditing')&&(_0x4bac03['registerBlockAttribute']('sources'),_0x4bac03['descriptionFactory']['registerDescriptionCallback'](_0x5850f6=>{if('attribute'!=_0x5850f6['type'])return;const {data:_0x57ad05}=_0x5850f6;return _0x57ad05&&'sources'==_0x57ad05['key']?{'type':'format','content':''}:void 0x0;})),_0x1dab32['plugins']['has']('ImageSizeAttributes')&&(_0x4bac03['registerBlockAttribute']('width'),_0x4bac03['registerBlockAttribute']('height'),_0x4bac03['descriptionFactory']['registerDescriptionCallback'](_0x349e15=>{if('attribute'!=_0x349e15['type'])return;const {data:_0x2c9083}=_0x349e15;return!_0x2c9083||'width'!=_0x2c9083['key']&&'height'!=_0x2c9083['key']?void 0x0:{'type':'format','content':''};})),_0x4bac03['descriptionFactory']['registerDescriptionCallback'](_0x51eae0=>{if(!!_0x2e40fe['find'](({type:_0x562c25,subType:_0x1b7a8e})=>_0x51eae0['type']==_0x562c25&&_0x51eae0['subType']==_0x1b7a8e))return _0x51eae0['previous']?{}:void 0x0;}),_0x4bac03['descriptionFactory']['registerDescriptionCallback'](_0x1686cf=>{if('insertion'==_0x1686cf['type']||'deletion'==_0x1686cf['type']){const _0x250e17=_0x1686cf['getContainedElement']();if(_0x250e17&&_0x250e17['is']('element','caption'))return{'type':'insertion'==_0x1686cf['type']?'addObject':'removeObject','element':_0x250e17,'quantity':0x1};}}),_0x4bac03['descriptionFactory']['registerDescriptionCallback'](_0x439b2e=>'formatBlock'==_0x439b2e['type']&&'convertInlineImageToBlock'==_0x439b2e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x439b2e['type']&&'convertBlockImageToInline'==_0x439b2e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4bac03['descriptionFactory']['registerDescriptionCallback'](_0x3744ae=>{if('attribute'!=_0x3744ae['type'])return;const {data:_0x54bff3}=_0x3744ae;if(!_0x54bff3||'alt'!=_0x54bff3['key'])return;const _0x3dc53d=_0x54bff3['newValue'];return _0x3dc53d?{'type':'format','content':o(_0x58c26c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3dc53d+'\x22')}:{'type':'format','content':o(_0x58c26c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d9b97=this['editor'],_0xa4f12=_0x3d9b97['locale'];_0x3d9b97['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d56ab=>{if('formatBlock'!=_0x3d56ab['type']&&'formatInline'!=_0x3d56ab['type'])return;const {data:_0x464aef}=_0x3d56ab;if(_0x464aef){if('imageTextAlternative'==_0x464aef['commandName']){const _0x4d0bc8=_0x464aef['commandParams'][0x0]['newValue'];return _0x4d0bc8?{'type':'format','content':o(_0xa4f12,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4d0bc8+'\x22')}:{'type':'format','content':o(_0xa4f12,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x464aef['commandName']){const _0x1df4cb=_0x464aef['commandParams'][0x0]['width'];return _0x1df4cb?{'type':'format','content':o(_0xa4f12,'*Set\x20image\x20width:*\x20%0',_0x1df4cb)}:{'type':'format','content':o(_0xa4f12,'*Reset\x20image\x20width*')};}}});}}class ct extends _0xbac36c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2a0feb=this['editor']['locale'],_0x5e9212=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e9212['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5e9212['registerBlockAttribute']('src'),_0x5e9212['descriptionFactory']['registerDescriptionCallback'](_0x2b9266=>{if('attribute'!=_0x2b9266['type'])return;const {data:_0x3d6cc1}=_0x2b9266;return _0x3d6cc1&&'src'==_0x3d6cc1['key']?_0x3d6cc1['newValue']&&_0x3d6cc1['oldValue']?{'type':'format','content':o(_0x2a0feb,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x50e687=this['editor']['plugins']['get']('TrackChangesEditing');_0x50e687['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x50e687['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50e687['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x50e687['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34aced=this['editor'],_0x33cd81=_0x34aced['locale'];_0x34aced['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dfd79=>{if('formatBlock'!=_0x2dfd79['type']&&'formatInline'!=_0x2dfd79['type'])return;const {data:_0x3248cd}=_0x2dfd79;if(!_0x3248cd||'replaceImageSource'!=_0x3248cd['commandName'])return;return{'type':'format','content':o(_0x33cd81,'*Format:*\x20replace\x20image\x20URL')};});}}class ut extends _0xbac36c{['afterInit'](){const _0x2dbd24=this['editor'];if(!_0x2dbd24['plugins']['has']('ImageStyleEditing'))return;const _0x3860f9=_0x2dbd24['plugins']['get']('TrackChangesEditing'),_0x2c208f=_0x2dbd24['plugins']['get']('ImageUtils'),_0x521ead={};_0x3860f9['enableCommand']('imageStyle',(_0x3a2618,_0x2f7ade)=>{const _0xb6723a=_0x2dbd24['plugins']['get']('Users')['me'],_0x161961=_0x2dbd24['commands']['get']('imageStyle');let _0x2c7ac1=_0x2c208f['getClosestSelectedImageElement'](_0x2dbd24['model']['document']['selection']),_0x5ec170=_0x2dbd24['model']['createRangeOn'](_0x2c7ac1),_0x51f6b2=_0x161961['value'];if(_0x51f6b2==_0x2f7ade['value'])return;const _0x5282f3={'commandName':'imageStyle','commandParams':[_0x2f7ade],'formatGroupId':_0x5f1f2a()};_0x2dbd24['model']['change'](()=>{if(_0x3860f9['getSuggestions']()['filter'](_0x6497be=>_0x6497be['isInContent']&&_0xb6723a==_0x6497be['author']&&('formatBlock'==_0x6497be['type']||'formatInline'==_0x6497be['type'])&&('imageStylePreApply'==_0x6497be['subType']||'imageStylePostApply'==_0x6497be['subType'])&&_0x6497be['getFirstRange']()['isEqual'](_0x5ec170))['forEach'](_0x23f681=>_0x3860f9['discardSuggestion'](_0x23f681['head'])),_0x2c7ac1=_0x2c208f['getClosestSelectedImageElement'](_0x2dbd24['model']['document']['selection']),_0x5ec170=_0x2dbd24['model']['createRangeOn'](_0x2c7ac1),_0x161961['refresh'](),_0x2dbd24['commands']['get']('imageTypeInline')['refresh'](),_0x2dbd24['commands']['get']('imageTypeBlock')['refresh'](),_0x51f6b2=_0x161961['value'],_0x51f6b2!=_0x2f7ade['value'])return _0x2c208f['isInlineImage'](_0x2c7ac1)&&_0x161961['shouldConvertImageType'](_0x2f7ade['value'],_0x2c7ac1)?(_0x3a2618({..._0x2f7ade,'setImageSizes':!0x1}),_0x2c7ac1=_0x2c208f['getClosestSelectedImageElement'](_0x2dbd24['model']['document']['selection']),void _0x3860f9['markBlockFormat'](_0x2c7ac1,{..._0x5282f3,'commandReversedParams':[{'value':_0x51f6b2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c208f['isBlockImage'](_0x2c7ac1)?_0x3860f9['markBlockFormat'](_0x2c7ac1,_0x5282f3,[],'imageStylePostApply'):_0x3860f9['markInlineFormat'](_0x5ec170,_0x5282f3,'imageStylePostApply'));});});for(const _0xa62067 of _0x2dbd24['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x521ead[_0xa62067['name']]=_0xa62067['title']['toLowerCase']();_0x3860f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3860f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3860f9['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3860f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x130e8e])=>{_0x2c208f['setImageNaturalSizeAttributes'](_0x130e8e['getContainedElement']());}),_0x3860f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x27c7fc,_0x434225)=>{_0x3860f9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x27c7fc,{'commandName':_0x434225['commandName'],'commandParams':_0x434225['commandReversedParams']});}),_0x3860f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x380361,_0x1ea4d9){if(_0x11433f(_0x380361,_0x1ea4d9))return[_0x380361,_0x1ea4d9];if(_0x11433f(_0x1ea4d9,_0x380361))return[_0x1ea4d9,_0x380361];return null;});const _0x17fecc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x11433f(_0xf345e8,_0x3735dd){const _0x45495a=_0x17fecc['findIndex'](({type:_0x31a0cb,subType:_0x2da32e})=>_0xf345e8['type']==_0x31a0cb&&_0xf345e8['subType']==_0x2da32e),_0x2421d6=_0x17fecc['findIndex'](({type:_0x3ef84d,subType:_0x54c655})=>_0x3735dd['type']==_0x3ef84d&&_0x3735dd['subType']==_0x54c655);if(_0x45495a<0x0||_0x2421d6<0x0)return!0x1;const _0x4a637f=_0xf345e8['getFirstRange'](),_0x3a9e5d=_0x3735dd['getFirstRange']();if((0x0==_0x45495a||0x1==_0x45495a)&&0x2==_0x2421d6&&_0x4a637f['isIntersecting'](_0x3a9e5d))return!0x0;if(0x2==_0x45495a&&0x3==_0x2421d6){const _0x49af20=_0x3860f9['_findSuggestions'](_0x4a637f,'insertion')['filter'](({suggestion:_0x37ea11,meta:_0x30fb57})=>_0x30fb57['isOwn']&&'convertInlineImageToBlock'==_0x37ea11['subType']);if(_0x49af20['length']>0x1&&_0x3a9e5d['end']['isEqual'](_0x4a637f['start']))return!0x0;if(0x1==_0x49af20['length']&&(_0x4a637f['start']['isEqual'](_0x3a9e5d['end'])||_0x4a637f['end']['isEqual'](_0x3a9e5d['start'])))return!0x0;}if(0x3==_0x45495a&&0x3==_0x2421d6&&_0x4a637f['start']['isBefore'](_0x3a9e5d['start'])){const _0x4ceddf=_0x4a637f['end']['nodeAfter'],_0x1efbcb=_0x3a9e5d['start']['nodeBefore'];return _0x2c208f['isBlockImage'](_0x4ceddf)&&_0x4ceddf===_0x1efbcb;}return!0x1;}_0x2dbd24['model']['document']['registerPostFixer'](()=>{let _0x2caadc=!0x1;const _0x52e3ff=Array['from'](_0x2dbd24['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x143fc6,data:_0x49b6a9}of _0x52e3ff){const {group:_0x160eec,type:_0x55daf4,subType:_0x4504a0,id:_0x21da32}=_0x3860f9['_splitMarkerName'](_0x143fc6);if('suggestion'==_0x160eec&&_0x3860f9['hasSuggestion'](_0x21da32)){if('formatBlock'==_0x55daf4&&('imageStylePreApply'==_0x4504a0||'imageStylePostApply'==_0x4504a0)){const _0x5d0001=_0x3860f9['getSuggestion'](_0x21da32);if(_0x49b6a9['newRange']){const _0x95025a=_0x5d0001['getFirstRange']()['getContainedElement']();if(_0x2c208f['isBlockImage'](_0x95025a))continue;_0x3860f9['discardSuggestion'](_0x5d0001),_0x2caadc=!0x0;}}if('insertion'==_0x55daf4&&'imageCaption'==_0x4504a0&&!_0x49b6a9['newRange']){const _0x303f67=_0x3860f9['getSuggestion'](_0x21da32);_0x303f67['next']&&_0x303f67['next']['isInContent']&&(_0x3860f9['discardSuggestion'](_0x303f67['next']),_0x2caadc=!0x0);}}}return _0x2caadc;}),this['_registerLegacyDescription'](_0x521ead);}['_registerLegacyDescription'](_0x19ae6c){const _0x522735=this['editor'],_0x25a7cd=_0x522735['locale'];_0x522735['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31716f=>{if('formatBlock'!=_0x31716f['type']&&'formatInline'!=_0x31716f['type'])return;const {data:_0x348b62}=_0x31716f;if(!_0x348b62||'imageStyle'!=_0x348b62['commandName'])return;const _0xdfcad1=_0x348b62['commandParams'][0x0]['value'];return _0x3a38ce('side'===_0xdfcad1?o(_0x25a7cd,'FORMAT_SIDE_IMAGE'):_0x19ae6c[_0xdfcad1]||_0xdfcad1);function _0x3a38ce(_0x353f54){return{'type':'format','content':o(_0x25a7cd,'*Format:*\x20%0',_0x353f54)};}});}}class ft extends _0xbac36c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1d46d4){super(_0x1d46d4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x464e69=this['editor'],_0x357066=_0x464e69['commands']['get']('importWord'),_0x3e1d75=_0x464e69['commands']['get']('trackChanges');_0x357066&&(_0x357066['on']('execute',(_0x464486,[,_0x4459af])=>{this['_trackChangesValueDuringImport']=_0x3e1d75['value'],_0x4459af['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x357066,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x357066,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3e1d75['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x464e69['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x54a43a,_0x3d94a0){const {suggestions:_0x1d87f5}=_0x3d94a0,_0x27e896=this['editor']['commands']['get']('trackChanges'),_0x429a2f=_0x27e896['value'];this['_trackChangesValueDuringImport']!==_0x429a2f&&(_0x27e896['execute'](),this['_trackChangesExecuted']=!0x0),_0x1d87f5&&_0x1d87f5['forEach'](({id:_0x5d36aa,type:_0x522f32,author:_0x5ac0fa,created_at:_0x55735e})=>{const _0xb421bb={'id':_0x5d36aa,'type':_0x522f32,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5ac0fa,'createdAt':_0x55735e?new Date(_0x55735e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb421bb);});}}class ht extends _0xbac36c{['afterInit'](){const _0xf4e600=this['editor'],_0x2c8a9b=_0xf4e600['plugins']['get']('TrackChangesEditing');if(_0xf4e600['plugins']['has']('IndentEditing')&&(_0x2c8a9b['enableCommand']('indent'),_0x2c8a9b['enableCommand']('outdent')),_0xf4e600['plugins']['has']('IndentBlock')){for(const _0x26284b of['indentBlock','outdentBlock'])_0x2c8a9b['enableDefaultAttributesIntegration'](_0x26284b);}const _0x35f4b0=_0xf4e600['locale'];_0x2c8a9b['registerBlockAttribute']('blockIndent'),_0x2c8a9b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x35f4b0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17b6eb=this['editor'],_0x18ac8a=_0x17b6eb['locale'],_0x1f8920=_0x17b6eb['plugins']['get']('TrackChangesEditing');_0x1f8920['descriptionFactory']['registerDescriptionCallback'](_0x25fda2=>{if('formatBlock'!=_0x25fda2['type'])return;const {data:_0x1a1a89}=_0x25fda2;if(!_0x1a1a89)return;if('indentBlock'!=_0x1a1a89['commandName']&&'outdentBlock'!=_0x1a1a89['commandName'])return;const _0x7adf26=_0x25fda2['getItems']()[0x0],_0x27739d=_0x1f8920['descriptionFactory']['getItemLabel'](_0x7adf26);return'indentBlock'==_0x1a1a89['commandName']?{'type':'format','content':o(_0x18ac8a,'*Indent:*\x20%0',_0x27739d)}:'outdentBlock'==_0x1a1a89['commandName']?{'type':'format','content':o(_0x18ac8a,'*Outdent:*\x20%0',_0x27739d)}:void 0x0;});}}class gt extends _0xbac36c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0xbac36c{['afterInit'](){const _0x105d1f=this['editor'];if(!_0x105d1f['plugins']['has']('LinkEditing'))return;const _0x58127a=_0x105d1f['plugins']['get']('TrackChangesEditing'),_0x3c412c=_0x105d1f['commands']['get']('link');_0x58127a['enableDefaultAttributesIntegration']('link'),_0x58127a['enableDefaultAttributesIntegration']('unlink'),_0x58127a['registerInlineAttribute']('linkHref');for(const _0x1b6dab of _0x3c412c['manualDecorators'])_0x58127a['registerInlineAttribute'](_0x1b6dab['id']),_0x58127a['descriptionFactory']['registerAttributeLabel'](_0x1b6dab['id'],'link\x20('+_0x1b6dab['label']['toLowerCase']()+')');_0x58127a['descriptionFactory']['registerDescriptionCallback'](_0x18627e=>{if('attribute'!=_0x18627e['type'])return;const {data:_0x8f6f7b}=_0x18627e;if(!_0x8f6f7b||'linkHref'!=_0x8f6f7b['key'])return;const _0x36a000=_0x8f6f7b['newValue'],_0x2e5e42=_0x105d1f['locale'];return{'type':'format','content':null==_0x36a000?o(_0x2e5e42,'*Remove\x20link*'):o(_0x2e5e42,'*Set\x20link:*\x20%0','\x22'+_0x36a000+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c4d66=this['editor'],_0x1a04bd=_0x4c4d66['locale'];_0x4c4d66['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xabbbd6=>{if('formatInline'!=_0xabbbd6['type'])return;const {data:_0x2d51e3}=_0xabbbd6;if(_0x2d51e3){if('link'==_0x2d51e3['commandName']){const _0x118c46=_0x2d51e3['commandParams'][0x0];return{'type':'format','content':o(_0x1a04bd,'*Set\x20link:*\x20%0','\x22'+_0x118c46+'\x22')};}return'unlink'==_0x2d51e3['commandName']?{'type':'format','content':o(_0x1a04bd,'*Remove\x20link*')}:void 0x0;}});}}class dt extends _0xbac36c{['afterInit'](){const _0xb171a4=this['editor'],_0x26fd2c=_0xb171a4['locale'];if(!_0xb171a4['plugins']['has']('LegacyListEditing'))return;const _0x5cdb46=_0xb171a4['plugins']['get']('TrackChangesEditing'),_0x1af5f6=_0xb171a4['plugins']['has']('LegacyTodoListEditing');function _0x3b4ffd(_0x5df45c){return()=>{const _0x1192ae=_0xb171a4['model']['document']['selection'],_0x4e0c83=_0xb171a4['commands']['get'](_0x5df45c);if(_0x4e0c83['value'])return void _0xb171a4['execute']('paragraph',{});const _0xea5b57=_0x5df45c['slice'](0x0,-0x4),_0x21cf73=function(_0x31da0d,_0x17f6d2,_0x2fd3c6){let _0x2e95c0=Array['from'](_0x31da0d)['filter'](_0x1371ee=>function(_0x1d7f07,_0x26ec95){return _0x26ec95['checkChild'](_0x1d7f07['parent'],'listItem')&&!_0x26ec95['isObject'](_0x1d7f07);}(_0x1371ee,_0x2fd3c6));_0x2e95c0=_0x2e95c0['filter'](_0x2b3a02=>!_0x2b3a02['is']('element','listItem')||_0x2b3a02['getAttribute']('listType')!=_0x17f6d2);const _0x53af1a=new Set();for(const _0x4750dd of _0x2e95c0)_0x4750dd['is']('element','listItem')?_0x53af1a['add'](Ne(_0x4750dd)):_0x53af1a['add'](_0x4750dd);return Array['from'](_0x53af1a);}(_0x1192ae['getSelectedBlocks'](),_0xea5b57,_0xb171a4['model']['schema']);_0xb171a4['model']['change'](()=>{for(const _0x3ead4f of _0x21cf73)_0x5cdb46['markBlockFormat'](_0x3ead4f,{'commandName':_0x5df45c,'commandParams':[{'forceValue':!_0x4e0c83['value']}],'formatGroupId':'blockName'},Se(_0x3ead4f));});};}function _0x51bff7(_0x3c21b6){return()=>{const _0xa747cb=function(_0x25145a){let _0x18deea=Array['from'](_0x25145a);const _0x5d3c47=_0x18deea['findIndex'](_0x364825=>'listItem'!=_0x364825['name']);return _0x5d3c47>-0x1&&(_0x18deea=_0x18deea['slice'](0x0,_0x5d3c47)),_0x18deea;}(_0xb171a4['model']['document']['selection']['getSelectedBlocks']()),_0x2645da=_0xb171a4['model']['createRange'](_0xb171a4['model']['createPositionAt'](_0xa747cb[0x0],'before'),_0xb171a4['model']['createPositionAt'](_0xa747cb[_0xa747cb['length']-0x1],'end'));_0xb171a4['model']['change'](()=>{_0x5cdb46['markBlockFormat'](_0x2645da,{'commandName':_0x3c21b6,'commandParams':[],'formatGroupId':'listIndent'},function(_0x24e911){const _0x273d6a=new Set();for(const _0x782504 of _0x24e911){let _0x286cbb=_0x782504['nextSibling'];for(;_0x286cbb&&_0x286cbb['getAttribute']('listIndent')>_0x782504['getAttribute']('listIndent');)_0x273d6a['add'](_0x286cbb),_0x286cbb=_0x286cbb['nextSibling'];}return Array['from'](_0x273d6a);}(_0xa747cb));});};}_0x5cdb46['enableCommand']('numberedList',_0x3b4ffd('numberedList')),_0x5cdb46['enableCommand']('bulletedList',_0x3b4ffd('bulletedList')),_0x1af5f6&&_0x5cdb46['enableCommand']('todoList',_0x3b4ffd('todoList')),_0x5cdb46['enableCommand']('indentList',_0x51bff7('indentList')),_0x5cdb46['enableCommand']('outdentList',_0x51bff7('outdentList')),_0x1af5f6&&_0x5cdb46['enableCommand']('checkTodoList',()=>{const _0x5b6d58=_0xb171a4['commands']['get']('checkTodoList'),_0x5a224f=Array['from'](_0x5b6d58['_selectedElements']);_0x5a224f['filter'](_0x31fecf=>_0x31fecf['getAttribute']('todoListChecked')!=_0x5b6d58['value']),_0xb171a4['model']['change'](()=>{for(const _0x2578dc of _0x5a224f)_0x5cdb46['markBlockFormat'](_0x2578dc,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5b6d58['value']}]});});}),_0x5cdb46['descriptionFactory']['registerElementLabel']('listItem',_0x428f01=>o(_0x26fd2c,'ELEMENT_LIST_ITEM',_0x428f01)),_0x5cdb46['descriptionFactory']['registerDescriptionCallback'](_0x2726cb=>{if('formatBlock'!=_0x2726cb['type']&&'formatInline'!=_0x2726cb['type'])return;const {data:_0x2055b9}=_0x2726cb;if(_0x2055b9){if('numberedList'==_0x2055b9['commandName']||'bulletedList'==_0x2055b9['commandName']||'todoList'==_0x2055b9['commandName'])switch(_0x2055b9['commandName']['replace']('List','')){case'bulleted':return _0x30cef8(o(_0x26fd2c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30cef8(o(_0x26fd2c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30cef8(o(_0x26fd2c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2055b9['commandName'])return{'type':'format','content':o(_0x26fd2c,'*Indent:*\x20%0',o(_0x26fd2c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2055b9['commandName'])return{'type':'format','content':o(_0x26fd2c,'*Outdent:*\x20%0',o(_0x26fd2c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2055b9['commandName'])return _0x2055b9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26fd2c,'*Check\x20item*')}:{'type':'format','content':o(_0x26fd2c,'*Uncheck\x20item*')};}function _0x30cef8(_0x521822){return{'type':'format','content':o(_0x26fd2c,'*Change\x20to:*\x20%0',_0x521822)};}});}}function Ne(_0x501e65){const _0x5efc64=_0x501e65['getAttribute']('listIndent');if(0x0==_0x5efc64)return _0x501e65;let _0x59b346=_0x501e65;for(;_0x501e65['previousSibling']&&_0x501e65['previousSibling']['is']('element','listItem');){const _0x2ad96d=_0x501e65['previousSibling']['getAttribute']('listIndent');if(_0x2ad96d==_0x5efc64)_0x59b346=_0x501e65['previousSibling'];else{if(_0x2ad96d<_0x5efc64)break;}_0x501e65=_0x501e65['previousSibling'];}return _0x59b346;}function Se(_0x244be8){const _0x1de8bd=[];if(_0x244be8['is']('element','listItem')&&_0x244be8['getAttribute']('listIndent')>0x0){let _0xd16764=_0x244be8['nextSibling'];for(;_0xd16764&&'listItem'==_0xd16764['name']&&_0xd16764['getAttribute']('listIndent')==_0x244be8['getAttribute']('listIndent');)_0x1de8bd['push'](_0xd16764),_0xd16764=_0xd16764['nextSibling'];}return _0x1de8bd;}class mt extends _0xbac36c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x28a1b1=this['editor']['config']['get']('list.properties'),_0x470371=this['editor']['plugins']['get']('TrackChangesEditing');_0x28a1b1['styles']&&_0x470371['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x28a1b1['reversed']&&_0x470371['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x28a1b1['startIndex']&&_0x470371['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x470371['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1ea842,_0x43b57b={}){const _0x39b8d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20b6f8=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x39b8d3['markMultiRangeBlockFormat'](_0x20b6f8,{'commandName':'listStyle','commandParams':[{'type':_0x43b57b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5db076,_0xf6af95={}){const _0x5cc736=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4330b6=this['_getSuggestionBlocks'](_0x448103=>_0x448103['is']('element','listItem')&&'numbered'===_0x448103['getAttribute']('listType'));if(_0x4330b6['length']<0x1)return;const _0x1c7efa=_0x4330b6['map'](_0x26f937=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26f937,'before'),this['editor']['model']['createPositionAt'](_0x26f937,0x0)));this['editor']['model']['change'](()=>{_0x5cc736['markMultiRangeBlockFormat'](_0x1c7efa,{'commandName':'listReversed','commandParams':[{'reversed':_0xf6af95['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2663d5,_0x10cd54={}){const _0x12bc4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ca417=this['_getSuggestionBlocks'](_0x57f644=>_0x57f644['is']('element','listItem')&&'numbered'===_0x57f644['getAttribute']('listType'));if(_0x3ca417['length']<0x1)return;const _0x1c006a=_0x3ca417['map'](_0x798f05=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x798f05,'before'),this['editor']['model']['createPositionAt'](_0x798f05,0x0)));this['editor']['model']['change'](()=>{_0x12bc4f['markMultiRangeBlockFormat'](_0x1c006a,{'commandName':'listStart','commandParams':[{'startIndex':_0x10cd54['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4b3cdc){if('formatBlock'!=_0x4b3cdc['type']&&'formatInline'!=_0x4b3cdc['type'])return;const _0x3d51c5=this['editor']['locale'],{data:_0x3587c6}=_0x4b3cdc;if(!_0x3587c6)return;let _0x28661d,_0x4457af;switch(_0x3587c6['commandName']){case'listStyle':_0x28661d='*Change\x20to:*\x20%0',_0x4457af={'type':'format','content':o(_0x3d51c5,_0x28661d,o(_0x3d51c5,this['_getTranslationKeyForListStyle'](_0x3587c6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x28661d=_0x3587c6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4457af={'type':'format','content':o(_0x3d51c5,_0x28661d)};break;case'listStart':_0x28661d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4457af={'type':'format','content':o(_0x3d51c5,_0x28661d,_0x3587c6['commandParams'][0x0]['startIndex'])};}return _0x4457af;}['_getSuggestionBlocksForListStyle'](){const _0x470dc5=this['editor']['plugins']['get']('LegacyListUtils');let _0x3d3039=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3d3039[0x0]?.['is']('element','listItem')&&_0x3d3039['unshift'](..._0x470dc5['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3d3039[_0x3d3039['length']-0x1]?.['is']('element','listItem')&&_0x3d3039['push'](..._0x470dc5['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3d3039=[...new Set(_0x3d3039)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3d3039=_0x3d3039['filter'](_0x42d4bb=>_0x42d4bb['is']('element','listItem'))),_0x3d3039;}['_getSuggestionBlocks'](_0x201bc8){const _0x299936=this['editor']['plugins']['get']('LegacyListUtils');let _0x360736=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x201bc8)['map'](_0x54f7b1=>{const _0x1114d6=this['editor']['model']['createPositionAt'](_0x54f7b1,0x0);return[..._0x299936['getSiblingNodes'](_0x1114d6,'backward'),..._0x299936['getSiblingNodes'](_0x1114d6,'forward')];})['flat']();return _0x360736=[...new Set(_0x360736)],_0x360736;}['_getTranslationKeyForListStyle'](_0x2417f5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2417f5)||'default')['toUpperCase']()+'_LIST_'+_0x2417f5['toUpperCase']()['replace'](/-/g,'_');}}class pt extends _0xbac36c{['afterInit'](){const _0x13d0da=this['editor'];if(!_0x13d0da['plugins']['has']('MediaEmbedEditing'))return;const _0x5c3817=_0x13d0da['plugins']['get']('TrackChangesEditing'),_0x3fbc1d=_0x13d0da['locale'];_0x5c3817['enableCommand']('mediaEmbed'),_0x5c3817['descriptionFactory']['registerElementLabel']('media',_0x1910ff=>o(_0x3fbc1d,'ELEMENT_MEDIA',_0x1910ff)),_0x13d0da['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3f90c4,{writer:_0x2c662e,options:_0xf6c47c})=>{if(_0xf6c47c['showSuggestionHighlights'])return _0x2c662e['createEmptyElement']('div');},'converterPriority':'high'}),_0x13d0da['data']['downcastDispatcher']['on']('attribute:url:media',(_0x45d7db,_0x4fd6e0,_0x1e0a0d)=>{_0x1e0a0d['options']['showSuggestionHighlights']&&_0x45d7db['stop']();},{'priority':'high'});}}class kt extends _0xbac36c{['afterInit'](){const _0x49d510=this['editor'];_0x49d510['plugins']['has']('MentionEditing')&&_0x49d510['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0xbac36c{['afterInit'](){const _0x1e3d85=this['editor'];if(!_0x1e3d85['plugins']['has']('MergeFieldsEditing'))return;const _0x3e06a4=_0x1e3d85['plugins']['get']('TrackChangesEditing'),_0x5f5269=_0x1e3d85['locale'];_0x3e06a4['enableCommand']('insertMergeField'),_0x3e06a4['enableCommand']('insertMergeFieldBlock'),_0x3e06a4['enableCommand']('insertMergeFieldImage'),_0x3e06a4['descriptionFactory']['registerElementLabel']('mergeField',_0xf1a292=>o(_0x5f5269,'ELEMENT_MERGE_FIELD',_0xf1a292)),_0x3e06a4['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4a8dbe=>o(_0x5f5269,'ELEMENT_MERGE_FIELD',_0x4a8dbe)),_0x3e06a4['descriptionFactory']['registerDescriptionCallback'](_0x42ef34=>{if('insertion'!=_0x42ef34['type']&&'deletion'!=_0x42ef34['type'])return;const _0x1ac715=_0x42ef34['getContainedElement']();if(null==_0x1ac715)return;const _0x5f33fb=_0x1e3d85['plugins']['get']('MergeFieldsEditing');let _0x412123;switch(_0x5f33fb['getMergeFieldType'](_0x1ac715)){case null:return;case'image':{const _0x3a26f0=_0x5f33fb['unwrapAffixes'](_0x1ac715['getAttribute']('src'));_0x412123=_0x5f33fb['getLabel'](_0x3a26f0)||_0x3a26f0;break;}default:{const _0x2254e6=_0x1ac715['getAttribute']('id');_0x412123=_0x5f33fb['getLabel'](_0x2254e6)||_0x2254e6;break;}}return'insertion'==_0x42ef34['type']?{'type':'insertion','content':o(_0x5f5269,'*Insert:*\x20%0','\x22'+_0x412123+'\x22\x20'+o(_0x5f5269,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5f5269,'*Remove:*\x20%0','\x22'+_0x412123+'\x22\x20'+o(_0x5f5269,'ELEMENT_MERGE_FIELD'))};});}}class bt extends _0xbac36c{['afterInit'](){const _0x40ef8d=this['editor'],_0x3e6f47=_0x40ef8d['plugins']['get']('TrackChangesEditing');_0x40ef8d['plugins']['has']('MultiLevelList')&&(_0x3e6f47['enableDefaultAttributesIntegration']('multiLevelList'),_0x3e6f47['registerBlockAttribute']('listMarkerStyle'),_0x3e6f47['descriptionFactory']['registerDescriptionCallback'](_0x5a9547=>this['handleDescriptions'](_0x5a9547)));}['handleDescriptions'](_0x491c38){const _0x4a7206=this['editor']['locale'],{data:_0x385271}=_0x491c38,_0x40c785={'type':'format','content':''};if(_0x385271&&'listMarkerStyle'==_0x385271['key']){if(!_0x385271['oldValue'])return{'type':'format','content':o(_0x4a7206,'*Set\x20format:*\x20%0',o(_0x4a7206,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x385271['newValue']+')'};if(!_0x385271['newValue']){let _0x5e37ab=_0x491c38['head'];for(;_0x5e37ab;){if(_0x5e37ab['data']&&'listType'==_0x5e37ab['data']['key']&&_0x5e37ab['data']['newValue'])return _0x40c785;_0x5e37ab=_0x5e37ab['next'];}return{'type':'format','content':o(_0x4a7206,'*Remove\x20format:*\x20%0',o(_0x4a7206,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x385271['oldValue']+')'};}}}}class yt extends _0xbac36c{['afterInit'](){const _0x4bec63=this['editor'];if(!_0x4bec63['plugins']['has']('PageBreakEditing'))return;_0x4bec63['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2190ec=_0x4bec63['plugins']['get']('TrackChangesEditing'),_0x8b7982=_0x4bec63['locale'];_0x2190ec['descriptionFactory']['registerElementLabel']('pageBreak',_0x43d903=>o(_0x8b7982,'ELEMENT_PAGE_BREAK',_0x43d903));}}class St extends _0xbac36c{['afterInit'](){const _0x5a4cff=this['editor'];if(!_0x5a4cff['plugins']['has']('Paragraph'))return;const _0x4f8aeb=_0x5a4cff['locale'],_0x2c4154=_0x5a4cff['plugins']['get']('TrackChangesEditing');_0x2c4154['descriptionFactory']['registerElementLabel']('paragraph',_0xd08269=>o(_0x4f8aeb,'ELEMENT_PARAGRAPH',_0xd08269)),_0x2c4154['enableDefaultAttributesIntegration']('paragraph'),_0x2c4154['enableCommand']('insertParagraph'),_0x5a4cff['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5a4cff),{'priority':'highest'}),_0x5a4cff['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3cdd25,_0x2f9a9c,_0x2fb57c)=>{_0x2fb57c['options']['showSuggestionHighlights']&&nr(_0x5a4cff,{'showActiveMarker':!0x1})(_0x3cdd25,_0x2f9a9c,_0x2fb57c);},{'priority':'highest'});const _0x33adb9=_0x2c4154['descriptionFactory'];_0x33adb9['registerDescriptionCallback'](_0x47a775=>{if('insertion'!==_0x47a775['type'])return;const {start:_0x30bd60,end:_0x1a0bdb}=_0x47a775['getFirstRange']();if(!_0x30bd60['isTouching'](_0x1a0bdb)||!_0x30bd60['nodeAfter'])return;const _0x46f822=_0x5a4cff['model']['schema'],_0x42faf8=_0x30bd60['nodeAfter'];return _0x46f822['isBlock'](_0x42faf8)&&!_0x46f822['isLimit'](_0x42faf8)&&_0x46f822['checkChild'](_0x42faf8,'$text')?{'type':'insertion','content':o(_0x4f8aeb,'*Insert:*\x20%0',_0x33adb9['getItemLabel'](_0x42faf8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5989f0=this['editor'],_0x381d21=_0x5989f0['locale'];_0x5989f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44a2f2=>{if('formatBlock'!=_0x44a2f2['type'])return;const {data:_0x150db7}=_0x44a2f2;return _0x150db7&&'paragraph'==_0x150db7['commandName']?{'type':'format','content':o(_0x381d21,'*Change\x20to:*\x20%0',o(_0x381d21,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x349203,{showActiveMarker:_0x1f9041=!0x0}={}){return(_0x5b4b8c,_0x1b71d9,_0x5a92b2)=>{const _0x2bde31=_0x349203['plugins']['get']('TrackChangesEditing'),_0x212761=_0x1b71d9['markerRange']['start'],_0x4c3396=_0x1b71d9['markerRange']['end'],_0x46be6a=_0x349203['model']['schema'];if(!_0x212761['isTouching'](_0x4c3396)||!_0x212761['nodeAfter'])return;const _0x53c419=_0x212761['nodeAfter'];if(_0x46be6a['isBlock'](_0x53c419)&&!_0x46be6a['isLimit'](_0x53c419)&&_0x46be6a['checkChild'](_0x53c419,'$text')){if(!_0x5a92b2['consumable']['consume'](_0x1b71d9['markerRange'],_0x5b4b8c['name']))return;const {id:_0x3a6ded,authorId:_0x3b7a9b}=_0x2bde31['_splitMarkerName'](_0x1b71d9['markerName']),_0xd8f35b=_0x5a92b2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x3a6ded,'data-author-id':_0x3b7a9b}),_0x5718a5=_0x5a92b2['mapper']['toViewPosition'](_0x4c3396);_0x1f9041&&_0x2bde31['activeMarkers']['includes'](_0x1b71d9['markerName'])&&_0x5a92b2['writer']['addClass']('ck-suggestion-marker--active',_0xd8f35b),_0x5a92b2['writer']['insert'](_0x5718a5,_0xd8f35b),_0x5a92b2['mapper']['bindElementToMarker'](_0xd8f35b,_0x1b71d9['markerName']);}};}class jt extends _0xbac36c{['afterInit'](){const _0x1049a8=this['editor'];_0x1049a8['commands']['get']('replaceSource')&&_0x1049a8['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class It extends _0xbac36c{['afterInit'](){const _0x2acd40=this['editor'];if(!_0x2acd40['plugins']['has']('RemoveFormatEditing'))return;_0x2acd40['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dca99=this['editor'];_0x2dca99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x548c=>{if('formatBlock'!=_0x548c['type']&&'formatInline'!=_0x548c['type'])return;const {data:_0x2b86cc}=_0x548c;return _0x2b86cc&&'removeFormat'==_0x2b86cc['commandName']?{'type':'format','content':o(_0x2dca99['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0xbac36c{['afterInit'](){const _0x1bfded=this['editor'];if(!_0x1bfded['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x56572b=_0x1bfded['plugins']['get']('TrackChangesEditing');_0x56572b['enableCommand']('goToPreviousRestrictedEditingException'),_0x56572b['enableCommand']('goToNextRestrictedEditingException');const _0x3e62b7=_0x1bfded['plugins']['get']('RestrictedEditingModeEditing');_0x3e62b7['enableCommand']('trackChanges'),_0x3e62b7['enableCommand']('acceptSuggestion'),_0x3e62b7['enableCommand']('discardSuggestion'),_0x3e62b7['enableCommand']('acceptAllSuggestions'),_0x3e62b7['enableCommand']('discardAllSuggestions'),_0x3e62b7['enableCommand']('acceptSelectedSuggestions'),_0x3e62b7['enableCommand']('discardSelectedSuggestions');}}class _t extends _0xbac36c{['afterInit'](){const _0x5bcec3=this['editor'];if(!_0x5bcec3['plugins']['has']('ShiftEnter'))return;const _0x11cb1c=_0x5bcec3['plugins']['get']('TrackChangesEditing');_0x11cb1c['enableCommand']('shiftEnter'),_0x5bcec3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ee(_0x5bcec3),{'priority':'high'}),_0x5bcec3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ee(_0x5bcec3),{'priority':'high'}),_0x5bcec3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x44f6cb,_0x70327a,_0x3710f8)=>{_0x3710f8['options']['showSuggestionHighlights']&&Ee(_0x5bcec3,{'showActiveMarker':!0x1})(_0x44f6cb,_0x70327a,_0x3710f8);}),_0x11cb1c['descriptionFactory']['registerElementLabel']('softBreak',_0x2d1015=>o(_0x5bcec3['locale'],'ELEMENT_LINE_BREAK',_0x2d1015));}}function Ee(_0xc1325a,{showActiveMarker:_0x5b70d9=!0x0}={}){return(_0x17e452,_0x213385,_0x59dcf9)=>{const _0x44a305=_0xc1325a['plugins']['get']('TrackChangesEditing');if(!_0x59dcf9['consumable']['test'](_0x213385['markerRange'],_0x17e452['name']))return;const _0x28d9da=_0xc1325a['model'];for(const _0x1aeefb of _0x213385['markerRange']['getItems']()){if(!_0x1aeefb['is']('element','softBreak'))continue;const _0x15fb44='deletion'==_0x213385['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x430d94,authorId:_0xb66ad6}=_0x44a305['_splitMarkerName'](_0x213385['markerName']),_0x1f87fc=_0x59dcf9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x15fb44,'data-suggestion':_0x430d94,'data-author-id':_0xb66ad6}),_0x3fe9e2=_0x59dcf9['mapper']['toViewPosition'](_0x28d9da['createPositionBefore'](_0x1aeefb));_0x5b70d9&&_0x44a305['activeMarkers']['includes'](_0x213385['markerName'])&&_0x59dcf9['writer']['addClass']('ck-suggestion-marker--active',_0x1f87fc),_0x59dcf9['writer']['insert'](_0x3fe9e2,_0x1f87fc),_0x59dcf9['mapper']['bindElementToMarker'](_0x1f87fc,_0x213385['markerName']);}};}class vt extends _0xbac36c{['afterInit'](){const _0x8ece3=this['editor'],_0x569ef9=_0x8ece3['model'],_0x5a8873=_0x8ece3['locale'];if(!_0x8ece3['plugins']['has']('StandardEditingModeEditing'))return;const _0x2ab3df=_0x8ece3['plugins']['get']('TrackChangesEditing'),_0x11b90c='restrictedEditingException',_0x1c2541=_0x8ece3['commands']['get'](_0x11b90c);_0x2ab3df['enableCommand'](_0x11b90c,(_0x5cd02b,_0x114cba={})=>{const _0x5d59ec=_0x569ef9['document']['selection'];if(_0x5d59ec['isCollapsed'])return void _0x5cd02b(_0x114cba);const _0xa40fd0=void 0x0!==_0x114cba['forceValue']?_0x114cba['forceValue']:!_0x1c2541['value'];_0x569ef9['change'](()=>{const _0x1c6daf=Array['from'](_0x5d59ec['getRanges']());for(const _0x5b8bb5 of _0x1c6daf){const _0x152148=_0xa40fd0?[_0x5b8bb5]:io(_0x11b90c,_0x5b8bb5,_0x569ef9);for(const _0x277099 of _0x152148)_0x2ab3df['markInlineFormat'](_0x277099,{'commandName':_0x11b90c,'commandParams':[{'forceValue':_0xa40fd0}]});}});}),_0x2ab3df['descriptionFactory']['registerDescriptionCallback'](_0x4fd5b2=>{if('formatBlock'!=_0x4fd5b2['type']&&'formatInline'!=_0x4fd5b2['type'])return;const {data:_0x5e0ed6}=_0x4fd5b2;return _0x5e0ed6&&_0x5e0ed6['commandName']==_0x11b90c?_0x5e0ed6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a8873,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5a8873,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Ct extends _0xbac36c{['afterInit'](){const _0x2e049e=this['editor'];if(!_0x2e049e['plugins']['has']('Style')||!_0x2e049e['plugins']['has']('DataSchema'))return;const _0x5726d4=_0x2e049e['plugins']['get']('TrackChangesEditing'),_0x4d8633=_0x2e049e['locale'],_0x2bc1bc=_0x2e049e['config']['get']('style')||{},_0x20008e=_0x2e049e['plugins']['get']('GeneralHtmlSupport'),_0x1da15f=_0x2e049e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2e049e['plugins']['get']('DataSchema'),_0x2bc1bc['definitions']);_0x5726d4['enableDefaultAttributesIntegration']('style');const _0x2e3c6f=new Set();for(const _0x200f8b of _0x1da15f['block']){const _0x4c1b3a=_0x20008e['getGhsAttributeNameForElement'](_0x200f8b['element']);_0x2e3c6f['add'](_0x4c1b3a);}const _0x1a0ea1=new Set();for(const _0x8cee74 of _0x1da15f['inline']){const _0x66365d=_0x20008e['getGhsAttributeNameForElement'](_0x8cee74['element']);_0x1a0ea1['add'](_0x66365d);for(const _0x34e9c1 of _0x8cee74['ghsAttributes'])_0x1a0ea1['add'](_0x34e9c1);}for(const _0x3852ff of _0x2e3c6f)_0x5726d4['registerBlockAttribute'](_0x3852ff),_0x5726d4['descriptionFactory']['registerAttributeLabel'](_0x3852ff,o(_0x4d8633,'FORMAT_STYLE'));for(const _0x47f94c of _0x1a0ea1)_0x5726d4['registerInlineAttribute'](_0x47f94c),_0x5726d4['descriptionFactory']['registerAttributeLabel'](_0x47f94c,o(_0x4d8633,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39489b=this['editor'],_0x1bf2dc=_0x39489b['locale'];_0x39489b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fb582=>{if('formatBlock'!=_0x2fb582['type']&&'formatInline'!=_0x2fb582['type'])return;const {data:_0x3e741b}=_0x2fb582;return _0x3e741b&&'style'===_0x3e741b['commandName']?_0x3e741b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1bf2dc,'*Set\x20format:*\x20%0',_0x3e741b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1bf2dc,'*Remove\x20format:*\x20%0',_0x3e741b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class $t extends _0xbac36c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3e7d96){super(_0x3e7d96),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x304a06=this['editor'],_0x481c51=_0x304a06['model']['document']['selection'];if(!_0x304a06['plugins']['has']('TableEditing'))return;const _0x1d6889=_0x304a06['locale'],_0x13e835=_0x304a06['plugins']['get']('TrackChangesEditing'),_0x2039f8=_0x304a06['plugins']['get']('TableUtils');_0x13e835['descriptionFactory']['registerElementLabel']('table',_0x37c46f=>o(_0x1d6889,'ELEMENT_TABLE',_0x37c46f)),this['_setupColumnsRowsFixing'](),_0x13e835['enableCommand']('insertTable'),_0x13e835['enableCommand']('selectTableRow'),_0x13e835['enableCommand']('selectTableColumn');for(const _0xa48ed1 of['insertTableRowAbove','insertTableRowBelow']){const _0x1cacd7=_0x304a06['commands']['get'](_0xa48ed1);_0x13e835['enableCommand'](_0xa48ed1,_0x1fddf5=>{_0x304a06['model']['change'](_0x109c6f=>{_0x1fddf5();const _0x3db914='above'===_0x1cacd7['order'],_0x2210b7=_0x2039f8['getSelectionAffectedTableCells'](_0x481c51),_0x2f9df5=_0x2039f8['getRowIndexes'](_0x2210b7),_0x13f7a1=_0x3db914?_0x2f9df5['first']-0x1:_0x2f9df5['last']+0x1,_0x146ebe=_0x2210b7[0x0]['findAncestor']('table'),_0x626bfd=_0x2039f8['createTableWalker'](_0x146ebe,{'startRow':_0x13f7a1,'endRow':_0x13f7a1}),_0x1c4965=Array['from'](_0x626bfd)['map'](_0x8887f5=>_0x109c6f['createRangeOn'](_0x8887f5['cell']));_0x13e835['markMultiRangeInsertion'](_0x1c4965,'tableRow');});});}for(const _0xb00221 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1f572f=_0x304a06['commands']['get'](_0xb00221);_0x13e835['enableCommand'](_0xb00221,_0x5c73b1=>{_0x304a06['model']['change'](_0x2c662f=>{_0x5c73b1();const _0x13807a='left'===_0x1f572f['order'],_0x123e19=_0x2039f8['getSelectionAffectedTableCells'](_0x481c51),_0x144361=_0x2039f8['getColumnIndexes'](_0x123e19),_0x4f9e7c=_0x13807a?_0x144361['first']-0x1:_0x144361['last']+0x1,_0x4761a6=_0x123e19[0x0]['findAncestor']('table'),_0x449e9e=_0x2039f8['createTableWalker'](_0x4761a6,{'startRow':0x0,'column':_0x4f9e7c,'includeAllSlots':!0x1}),_0x16d659=Array['from'](_0x449e9e)['map'](_0x168755=>_0x2c662f['createRangeOn'](_0x168755['cell']));_0x13e835['markMultiRangeInsertion'](_0x16d659,'tableColumn');});});}for(const _0x4c59fb of['removeTableRow','removeTableColumn']){const _0xd5b8df=_0x4c59fb['substr'](0xb),_0x358702=_0xd5b8df['toLowerCase'](),_0x4b6102=_0x358702['substr'](0x0,0x3)+'span',_0x1fde75='table'+_0xd5b8df,_0x832876='min'+_0xd5b8df,_0x3f6875='max'+_0xd5b8df;_0x13e835['enableCommand'](_0x4c59fb,()=>{_0x304a06['model']['change'](_0x437b3d=>{const _0x17c723=_0x2039f8['getSelectionAffectedTableCells'](_0x481c51),_0x8b3e10=_0x17c723[0x0]['findAncestor']('table');let _0x1926db;if('removeTableRow'==_0x4c59fb){const _0x51375f=_0x2039f8['getRowIndexes'](_0x17c723);_0x1926db={'startRow':_0x51375f['first'],'endRow':_0x51375f['last'],'includeAllSlots':!0x0};}else{const _0x279f9c=_0x2039f8['getColumnIndexes'](_0x17c723);_0x1926db={'startColumn':_0x279f9c['first'],'endColumn':_0x279f9c['last'],'includeAllSlots':!0x0};}const _0x1bc0d9=_0x2039f8['createTableWalker'](_0x8b3e10,_0x1926db),_0x17fdf3=Array['from'](_0x1bc0d9)['map'](({cell:_0x4ebe31})=>_0x4ebe31),_0x1820f8=We(_0x17fdf3['filter'](_0x35c05a=>_0x35c05a['hasAttribute'](_0x4b6102))),_0x222595=We(_0x17fdf3['filter'](_0x383c21=>!_0x383c21['hasAttribute'](_0x4b6102)))['map'](_0x8376ec=>_0x437b3d['createRangeOn'](_0x8376ec)),_0x5402d6=_0x13e835['markMultiRangeDeletion'](_0x222595,_0x1fde75);if(_0x5402d6&&('tableRow'==_0x5402d6['subType']||'tableColumn'==_0x5402d6['subType'])){const _0x250345=this['_getSuggestionCoords'](_0x5402d6);for(const _0x19aeb9 of _0x1820f8){const _0x202c6c=_0x437b3d['createRangeOn'](_0x19aeb9),_0x27239c=_0x2039f8['getCellLocation'](_0x19aeb9),_0x12d9a3=_0x19aeb9['getAttribute'](_0x4b6102)-0x1,_0x9cf1c8=_0x250345[_0x832876],_0x5b442b=_0x250345[_0x3f6875];_0x9cf1c8<=_0x27239c[_0x358702]&&_0x27239c[_0x358702]+_0x12d9a3<=_0x5b442b&&_0x5402d6['addRange'](_0x202c6c);}}});});}function _0x270eb4(_0x3dbe23){const _0x1a8360=Array['from'](_0x481c51['getRanges']())['map'](_0x146c71=>_0x5ac46d['fromRange'](_0x146c71));_0x304a06['model']['change'](_0x1f998e=>{const _0xcc30be=_0x1f998e['batch'];_0x3dbe23=_0x3dbe23['filter'](_0x19b53c=>'$graveyard'!=_0x19b53c['root']['rootName']),_0x1f998e['setSelection'](_0x3dbe23),_0x304a06['commands']['get']('removeTableRow')['refresh'](),_0x304a06['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x304a06['model']['enqueueChange'](()=>{_0x304a06['model']['enqueueChange'](_0xcc30be,_0x245281=>{const _0x2dcd9a=_0x1a8360['filter'](_0x18619c=>'$graveyard'!=_0x18619c['root']['rootName']);_0x2dcd9a['length']>0x0&&_0x245281['setSelection'](_0x2dcd9a);for(const _0x182c29 of _0x1a8360)_0x182c29['detach']();});});});}function _0x494499(_0x2366bc){_0x304a06['model']['change'](_0x34e627=>{const _0x12d2bf=Array['from'](_0x481c51['getRanges']())['map'](_0x2c6a7e=>_0x5ac46d['fromRange'](_0x2c6a7e)),_0x5d5f5b=[];for(const _0x4f3ff0 of _0x2366bc)for(const _0xa3edbc of _0x4f3ff0['getItems']({'shallow':!0x0}))_0x5d5f5b['push'](_0xa3edbc);for(const _0x389f9a of _0x5d5f5b)'$graveyard'!=_0x389f9a['root']['rootName']&&(_0x34e627['setSelection'](_0x34e627['createPositionAt'](_0x389f9a,0x0)),_0x304a06['commands']['get']('removeTableColumn')['refresh'](),_0x304a06['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x103fea=_0x12d2bf['filter'](_0xf5abba=>'$graveyard'!=_0xf5abba['root']['rootName']);_0x103fea['length']>0x0&&_0x34e627['setSelection'](_0x103fea);for(const _0x4fa5a8 of _0x12d2bf)_0x4fa5a8['detach']();});}function _0x4c6c5b(_0x2371ad,_0x37c18e){return _0x37c18e['every'](_0x43fb8a=>_0x2371ad['some'](_0x1c4ee8=>_0x1c4ee8['end']['isEqual'](_0x43fb8a['start'])||_0x43fb8a['end']['isEqual'](_0x1c4ee8['start'])));}function _0x1a9c03(_0x201f89,_0x331cbb){return!_0x201f89['some'](_0x282b9a=>_0x331cbb['some'](_0x5c6acd=>_0x282b9a['isIntersecting'](_0x5c6acd)))&&_0x201f89['some'](_0x19fded=>_0x331cbb['some'](_0x4636f1=>_0x19fded['end']['isTouching'](_0x4636f1['start'])));}_0x304a06['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x541b86,_0x5bb074,_0x4d1d30)=>{if(!_0x4d1d30['options']['showSuggestionHighlights'])return;const _0xb4e57c=_0x5bb074['item'];if(!_0xb4e57c||!_0xb4e57c['is']('element','tableCell'))return;const _0x362863=_0x4d1d30['mapper']['toViewElement'](_0xb4e57c);if(_0x362863){const {id:_0x1aed67,authorId:_0x59fe86}=_0x13e835['_splitMarkerName'](_0x5bb074['markerName']);_0x2b3b46(_0x362863,_0x4d1d30['writer'],(_0x2822b7,_0x31de98,_0x2e047e)=>{_0x2e047e['addClass'](_0x2f3c64(_0x31de98['classes']),_0x2822b7),_0x2e047e['setAttribute']('data-suggestion-id',_0x1aed67,_0x2822b7),_0x2e047e['setAttribute']('data-author-id',_0x59fe86,_0x2822b7);},(_0x51600f,_0x23f4fe,_0xf121f)=>{_0xf121f['removeClass'](_0x2f3c64(_0x23f4fe['classes']),_0x51600f),_0xf121f['removeAttribute']('data-suggestion-id',_0x51600f),_0xf121f['removeAttribute']('data-author-id',_0x51600f);});}},{'priority':'highest'}),_0x13e835['descriptionFactory']['registerDescriptionCallback'](_0x2c6fb2=>{if('insertion'!=_0x2c6fb2['type']&&'deletion'!=_0x2c6fb2['type'])return;const _0x5b96e3=_0x2c6fb2['getContainedElement']();if(null!=_0x5b96e3&&_0x5b96e3['is']('element','table')){if('insertion'==_0x2c6fb2['type']){const _0x50acf1=_0x2c6fb2['getItems']()['filter'](_0x262219=>_0x262219['is']('$textProxy'))['map'](_0x11d4e2=>_0x11d4e2['data']);if(_0x50acf1['length'])return{'type':'insertion','content':o(_0x1d6889,'*Insert:*\x20%0',o(_0x1d6889,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x50acf1['join']('\x20')+'\x22'))};}if('deletion'==_0x2c6fb2['type']){const _0x58699d=_0x2c6fb2['getItems']()['filter'](_0x4982ea=>_0x4982ea['is']('$textProxy'))['map'](_0x5582ca=>_0x5582ca['data']);if(_0x58699d['length'])return{'type':'deletion','content':o(_0x1d6889,'*Remove:*\x20%0',o(_0x1d6889,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x58699d['join']('\x20')+'\x22'))};}}}),_0x13e835['descriptionFactory']['registerDescriptionCallback'](_0x309c20=>{if('tableRow'==_0x309c20['subType']){const _0x3bf15f=_0x309c20['getItems']()['filter'](_0x63478=>_0x63478['is']('$textProxy'))['map'](_0x4dd5a0=>_0x4dd5a0['data']),_0x3040cf=this['_getSuggestionCoords'](_0x309c20),_0x3bff9a=_0x3040cf['maxRow']-_0x3040cf['minRow']+0x1;if('insertion'==_0x309c20['type'])return _0x3bf15f['length']?{'type':'insertion','content':o(_0x1d6889,'*Insert:*\x20%0',o(_0x1d6889,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3bff9a,'\x22'+_0x3bf15f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1d6889,'*Insert:*\x20%0',o(_0x1d6889,'ELEMENT_TABLE_ROW',_0x3bff9a))};if('deletion'==_0x309c20['type'])return _0x3bf15f['length']?{'type':'deletion','content':o(_0x1d6889,'*Remove:*\x20%0',o(_0x1d6889,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3bff9a,'\x22'+_0x3bf15f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1d6889,'*Remove:*\x20%0',o(_0x1d6889,'ELEMENT_TABLE_ROW',_0x3bff9a))};}if('tableColumn'==_0x309c20['subType']){const _0x5316a3=_0x309c20['getItems']()['filter'](_0x5ef57b=>_0x5ef57b['is']('$textProxy'))['map'](_0x1ef390=>_0x1ef390['data']),_0x5e2ae3=this['_getSuggestionCoords'](_0x309c20),_0x104a98=_0x5e2ae3['maxColumn']-_0x5e2ae3['minColumn']+0x1;if('insertion'==_0x309c20['type'])return _0x5316a3['length']?{'type':'insertion','content':o(_0x1d6889,'*Insert:*\x20%0',o(_0x1d6889,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x104a98,'\x22'+_0x5316a3['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1d6889,'*Insert:*\x20%0',o(_0x1d6889,'ELEMENT_TABLE_COLUMN',_0x104a98))};if('deletion'==_0x309c20['type'])return _0x5316a3['length']?{'type':'deletion','content':o(_0x1d6889,'*Remove:*\x20%0',o(_0x1d6889,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x104a98,'\x22'+_0x5316a3['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1d6889,'*Remove:*\x20%0',o(_0x1d6889,'ELEMENT_TABLE_COLUMN',_0x104a98))};}}),_0x13e835['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x270eb4),_0x13e835['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x270eb4),_0x13e835['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x494499),_0x13e835['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x494499),_0x13e835['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4c6c5b),_0x13e835['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4c6c5b),_0x13e835['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1a9c03),_0x13e835['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1a9c03);}['_acceptFormatSuggestionCallbackFactory'](){const _0x451c38=this['editor'],_0x4ecec2=_0x451c38['model']['document']['selection'];return(_0x159eaa,_0x4c1ed1)=>{_0x451c38['model']['change'](_0x27e764=>{const {commandName:_0x1650d8,commandParams:_0x871af6}=_0x4c1ed1;let _0x2af52e=_0x159eaa[0x0]['end']['nodeBefore'];_0x871af6&&_0x871af6[0x0]&&!0x1===_0x871af6[0x0]['forceValue']&&(_0x2af52e=_0x159eaa[0x0]['start']['nodeAfter']);const _0x501043=_0x27e764['createRangeIn'](_0x2af52e);if('$graveyard'==_0x501043['root']['rootName'])return;const _0x53d6a9=Array['from'](_0x4ecec2['getRanges']())['map'](_0x3d0e0b=>_0x5ac46d['fromRange'](_0x3d0e0b));_0x27e764['setSelection'](_0x501043),_0x451c38['commands']['get'](_0x1650d8)['refresh'](),_0x871af6['push']({'forceDefaultExecution':!0x0}),_0x451c38['execute'](_0x1650d8,..._0x871af6);const _0x37223e=_0x53d6a9['filter'](_0x5a3a31=>'$graveyard'!=_0x5a3a31['root']['rootName']);_0x37223e['length']>0x0&&_0x27e764['setSelection'](_0x37223e);for(const _0x173120 of _0x53d6a9)_0x173120['detach']();});};}['_getCoordsForCells'](_0x3997da){const _0x1d5fae=this['editor']['plugins']['get']('TableUtils');let _0x1424a4=Number['MAX_SAFE_INTEGER'],_0x20a1d3=Number['MIN_SAFE_INTEGER'],_0x582458=Number['MAX_SAFE_INTEGER'],_0x5400a3=Number['MIN_SAFE_INTEGER'];for(const _0x1f52fa of _0x3997da){if('$graveyard'==_0x1f52fa['root']['rootName'])continue;const {row:_0x2fbba3,column:_0x5a4474}=_0x1d5fae['getCellLocation'](_0x1f52fa),_0x1bc6e8=_0x1f52fa['hasAttribute']('rowspan')?_0x1f52fa['getAttribute']('rowspan')-0x1:0x0,_0x3d69de=_0x1f52fa['hasAttribute']('colspan')?_0x1f52fa['getAttribute']('colspan')-0x1:0x0;_0x1424a4=_0x2fbba3<_0x1424a4?_0x2fbba3:_0x1424a4,_0x20a1d3=_0x2fbba3+_0x1bc6e8>_0x20a1d3?_0x2fbba3+_0x1bc6e8:_0x20a1d3,_0x582458=_0x5a4474<_0x582458?_0x5a4474:_0x582458,_0x5400a3=_0x5a4474+_0x3d69de>_0x5400a3?_0x5a4474+_0x3d69de:_0x5400a3;}return{'minRow':_0x1424a4,'maxRow':_0x20a1d3,'minColumn':_0x582458,'maxColumn':_0x5400a3};}['_setupColumnsRowsFixing'](){const _0x346811=this['editor'],_0x259769=_0x346811['plugins']['get']('TrackChangesEditing'),_0x29fda8=_0x346811['plugins']['get']('TableUtils');_0x346811['model']['document']['on']('change:data',()=>{const _0x39d37e=Array['from'](_0x346811['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x369d32,data:_0xfb5c94}of _0x39d37e){const {group:_0x528b27,id:_0x3dfb77,subType:_0x5eecf4}=_0x259769['_splitMarkerName'](_0x369d32);if('suggestion'!=_0x528b27)continue;if(null!=_0xfb5c94['oldRange'])continue;const _0x20f295=_0x259769['getSuggestion'](_0x3dfb77);this['_tablePostFixingSubtypes']['includes'](_0x5eecf4)&&this['_tableSuggestions']['add'](_0x20f295);}},{'priority':'low'});const _0x5a6e66=(_0x337662,_0xc9fdef)=>{let _0x5e6c3a=!0x1;const _0x10e92e=_0xc9fdef['createRangeOn'](_0x337662),_0xe176c6=_0x337662['findAncestor']('table'),_0x124e33=_0x29fda8['getCellLocation'](_0x337662);for(const _0x54151d of this['_tableSuggestions']){const _0x25e800=_0x54151d['subType'],_0x20f94d=_0x25e800['startsWith']('tablePaste'),_0x48c4be=_0x25e800['substr'](_0x20f94d?0xa:0x5),_0x4a05ed=_0x48c4be['toLowerCase'](),_0x30eeeb=_0x4a05ed['substr'](0x0,0x3)+'span',_0x3c248e='min'+_0x48c4be,_0x1e23b7='max'+_0x48c4be;if(!_0x54151d['isInContent'])continue;if(_0xe176c6!=_0x54151d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x54151d['isIntersectingWithRange'](_0x10e92e))continue;const _0x21d48b=_0x337662['hasAttribute'](_0x30eeeb)?_0x337662['getAttribute'](_0x30eeeb)-0x1:0x0,_0x1712d2=this['_getSuggestionCoords'](_0x54151d),_0x3b6c39=_0x1712d2[_0x3c248e],_0x5a0c8f=_0x1712d2[_0x1e23b7];_0x3b6c39<=_0x124e33[_0x4a05ed]&&_0x124e33[_0x4a05ed]+_0x21d48b<=_0x5a0c8f&&(_0x54151d['addRange'](_0x10e92e),_0x5e6c3a=!0x0);}return _0x5e6c3a;};_0x346811['model']['document']['registerPostFixer'](_0x3654cf=>{let _0x4f9752=!0x1;for(const _0x4e74a9 of _0x346811['model']['document']['differ']['getChanges']())if('insert'==_0x4e74a9['type']){if('tableRow'==_0x4e74a9['name']){for(const _0x444968 of _0x4e74a9['position']['nodeAfter']['getChildren']())_0x4f9752=_0x4f9752||_0x5a6e66(_0x444968,_0x3654cf);}else'tableCell'==_0x4e74a9['name']&&(_0x4f9752=_0x4f9752||_0x5a6e66(_0x4e74a9['position']['nodeAfter'],_0x3654cf));}return _0x4f9752;});}['_getSuggestionCoords'](_0x40789b){return this['_getCoordsForCells'](_0x40789b['getRanges']()['map'](_0x4503ac=>_0x4503ac['start']['nodeAfter']));}}function We(_0x2e893f){return Array['from'](new Set(_0x2e893f)['values']());}class Nt extends _0xbac36c{static get['requires'](){return[$t];}['afterInit'](){const _0x3ce048=this['editor'],_0x4376fa=_0x3ce048['model']['document']['selection'],_0x1c93c8=_0x3ce048['locale'];if(!_0x3ce048['plugins']['has']('TableEditing'))return;const _0x3d5aac=_0x3ce048['plugins']['get']('TrackChangesEditing'),_0x51d3c2=_0x3ce048['plugins']['get']('TableUtils'),_0x591762=_0x3ce048['plugins']['get']($t);_0x591762['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3d5aac['enableCommand']('mergeTableCells',()=>{const _0x33ff89=_0x51d3c2['getSelectionAffectedTableCells'](_0x3ce048['model']['document']['selection']);_0x3ce048['model']['change'](()=>{_0x3d5aac['markMultiRangeBlockFormat'](_0x33ff89,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3ce048['commands']['get']('mergeTableCells')['on']('execute',(_0x324917,_0x36983c)=>{_0x3ce048['commands']['get']('trackChanges')['value']&&(_0x36983c['length']>0x0&&_0x36983c[_0x36983c['length']-0x1]&&_0x36983c[_0x36983c['length']-0x1]['forceDefaultExecution']||_0x3d5aac['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x324917['stop']());},{'priority':'highest'});for(const _0x399bd4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2588a3=_0x3ce048['commands']['get'](_0x399bd4);_0x3d5aac['enableCommand'](_0x399bd4,()=>{const _0x556e23=_0x3ce048['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x451563=>_0x451563['is']('element','tableCell')),_0x4316f4=_0x2588a3['value'];_0x3ce048['model']['change'](()=>{_0x3d5aac['markMultiRangeBlockFormat']([_0x556e23,_0x4316f4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2240c4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x56617b=_0x3ce048['commands']['get'](_0x2240c4);_0x3d5aac['enableCommand'](_0x2240c4,()=>{const _0x1f30d8=_0x51d3c2['getSelectionAffectedTableCells'](_0x3ce048['model']['document']['selection'])[0x0],_0x5ca4a8=_0x1f30d8['findAncestor']('table'),{column:_0x5ea176,row:_0x14e08a}=_0x51d3c2['getCellLocation'](_0x1f30d8);let _0x3cb76f=[];if('horizontally'==_0x56617b['direction']){const _0x38f277=_0x51d3c2['createTableWalker'](_0x5ca4a8,{'startRow':_0x14e08a,'endRow':_0x14e08a,'includeAllSlots':!0x0});_0x3cb76f=Array['from'](_0x38f277)['map'](_0x2fb056=>_0x2fb056['cell']);}else{const _0x2c4bd5=_0x51d3c2['createTableWalker'](_0x5ca4a8,{'column':_0x5ea176,'includeAllSlots':!0x0});_0x3cb76f=Array['from'](_0x2c4bd5)['map'](_0x23758a=>_0x23758a['cell']);}_0x3ce048['model']['change'](_0xe8d413=>{_0x3d5aac['markBlockFormat'](_0xe8d413['createRangeOn'](_0x1f30d8),{'commandName':_0x2240c4,'commandParams':[]},_0x3cb76f,_0x2240c4);});});}_0x3d5aac['descriptionFactory']['registerDescriptionCallback'](_0x41ddfb=>{if('formatBlock'!=_0x41ddfb['type']&&'formatInline'!=_0x41ddfb['type'])return;const {data:_0x28052c}=_0x41ddfb;return _0x28052c&&'mergeTableCells'==_0x28052c['commandName']?{'type':'format','content':o(_0x1c93c8,'*Merge\x20cells*')}:void 0x0;}),_0x3d5aac['descriptionFactory']['registerDescriptionCallback'](_0x396842=>{if('formatBlock'!=_0x396842['type']&&'formatInline'!=_0x396842['type'])return;const {data:_0x45bd87}=_0x396842;return _0x45bd87?'splitTableCellVertically'==_0x45bd87['commandName']?{'type':'format','content':o(_0x1c93c8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x45bd87['commandName']?{'type':'format','content':o(_0x1c93c8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x44a363=_0x591762['_acceptFormatSuggestionCallbackFactory']();for(const _0x427261 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3d5aac['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x427261,'accept',_0x44a363);for(const _0x19613f of['splitTableCellVertically','splitTableCellHorizontally'])_0x3d5aac['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x19613f,'accept',_0x44a363);_0x3d5aac['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x41fe35=>{_0x3ce048['model']['change'](_0x21a7d2=>{const _0x2cf9df=Array['from'](_0x4376fa['getRanges']())['map'](_0x1f6484=>_0x5ac46d['fromRange'](_0x1f6484));_0x21a7d2['setSelection'](_0x41fe35),_0x3ce048['commands']['get']('mergeTableCells')['refresh'](),_0x3ce048['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5e742f=_0x2cf9df['filter'](_0x266c10=>'$graveyard'!=_0x266c10['root']['rootName']);_0x5e742f['length']>0x0&&_0x21a7d2['setSelection'](_0x5e742f);for(const _0x527662 of _0x2cf9df)_0x527662['detach']();});});for(const _0x325a17 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x17c715=_0x3ce048['commands']['get'](_0x325a17);_0x17c715['on']('set:isEnabled',(_0x2cd410,_0x80652c,_0x3ab9bf)=>{if(_0x3ab9bf){const _0x51b780=_0x3ce048['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x178f10=>_0x178f10['is']('element','tableCell'));this['_areMergableCells'](_0x17c715['value'],_0x51b780)||(_0x2cd410['return']=!0x1,_0x2cd410['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3a2de3=this['editor']['commands']['get']('mergeTableCells'),_0x44e9f4=this['editor']['plugins']['get']('TableUtils');if(!_0x3a2de3['isEnabled'])return!0x1;const _0xba5062=_0x44e9f4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3f0894 of _0xba5062)for(const _0xce723a of _0xba5062)if(_0x3f0894!=_0xce723a&&!this['_areMergableCells'](_0x3f0894,_0xce723a))return!0x1;return!0x0;}['_areMergableCells'](_0x5cc4db,_0x23fc5e){const _0xd483d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x435428=this['editor']['model']['createRangeOn'](_0x5cc4db),_0x64afff=this['editor']['model']['createRangeOn'](_0x23fc5e),_0x4a3a5e=new Set(),_0x51db7c=new Set();for(const _0x75d408 of _0xd483d0['getSuggestions']())if(('insertion'==_0x75d408['type']||'deletion'==_0x75d408['type']||'mergeTableCells'==_0x75d408['subType'])&&_0x75d408['isInContent']){for(const _0x31bd8e of _0x75d408['getRanges']())_0x31bd8e['containsRange'](_0x435428,!0x0)&&_0x4a3a5e['add'](_0x75d408['type']+':'+_0x75d408['author']['id']),_0x31bd8e['containsRange'](_0x64afff,!0x0)&&_0x51db7c['add'](_0x75d408['type']+':'+_0x75d408['author']['id']);}if(_0x4a3a5e['size']!=_0x51db7c['size'])return!0x1;for(const _0x25dd18 of _0x4a3a5e)if(!_0x51db7c['has'](_0x25dd18))return!0x1;return!0x0;}}class Dt extends _0xbac36c{static get['requires'](){return[$t];}['afterInit'](){const _0xf7e665=this['editor'];if(!_0xf7e665['plugins']['has']('TableEditing'))return;const _0x1f1d16=_0xf7e665['locale'],_0x89d967=_0xf7e665['plugins']['get']('TrackChangesEditing');_0x89d967['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x89d967['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x89d967['registerBlockAttribute']('headingRows'),_0x89d967['registerBlockAttribute']('headingColumns'),_0x89d967['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1f1d16,'FORMAT_HEADER_ROW')),_0x89d967['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1f1d16,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x967bd0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5deaca=this['editor']['plugins']['get']('TableUtils'),_0x13c251=this['editor']['plugins']['get']($t)['_acceptFormatSuggestionCallbackFactory']();function _0x377616({showActiveMarker:_0x561f89=!0x0,setDataAttribute:_0x516b20=!0x0}={}){return(_0x3edca4,_0x56a3d9,_0xb954ff)=>{const {type:_0x469e37,id:_0x3bdc37}=_0x967bd0['_splitMarkerName'](_0x56a3d9['markerName']);if(!_0x967bd0['hasSuggestion'](_0x3bdc37))return;const _0x5b3f0=_0x967bd0['getSuggestion'](_0x3bdc37),_0x4aed42=_0x5b3f0['data'];if('formatBlock'!=_0x5b3f0['type']||!_0x4aed42||'setTableColumnHeader'!=_0x4aed42['commandName'])return;if(_0x56a3d9['item'])return void _0x3edca4['stop']();if(!_0xb954ff['consumable']['consume'](_0x56a3d9['markerRange'],_0x3edca4['name']))return;const _0x458adf=_0x56a3d9['markerRange']['start']['nodeAfter'],_0xff7f81=_0x56a3d9['markerRange']['end']['nodeBefore'],_0x429b89=_0x458adf['parent']['parent'],{column:_0x49af4a}=_0x5deaca['getCellLocation'](_0x458adf),{column:_0x12cdb4}=_0x5deaca['getCellLocation'](_0xff7f81);for(let _0x3b3d71=_0x49af4a;_0x3b3d71<=_0x12cdb4;_0x3b3d71++){const _0x533e21=_0x5deaca['createTableWalker'](_0x429b89,{'column':_0x3b3d71,'includeAllSlots':!0x1});for(const _0x5b14bf of _0x533e21){const _0x4846dd=_0x5b14bf['cell'],_0x38d37a=_0xb954ff['mapper']['toViewElement'](_0x4846dd);_0xb954ff['writer']['addClass']('ck-suggestion-marker-'+_0x469e37,_0x38d37a),_0x516b20&&_0xb954ff['writer']['setAttribute']('data-suggestion',_0x3bdc37,_0x38d37a),_0xb954ff['mapper']['bindElementToMarker'](_0x38d37a,_0x56a3d9['markerName']),_0x561f89&&(_0x967bd0['activeMarkers']['includes'](_0x56a3d9['markerName'])?_0xb954ff['writer']['addClass']('ck-suggestion-marker--active',_0x38d37a):_0xb954ff['writer']['removeClass']('ck-suggestion-marker--active',_0x38d37a));}}};}_0x967bd0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x13c251),_0x967bd0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x13c251),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x377616(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x49124e,_0x1c6208,_0x518a6e)=>{_0x518a6e['options']['showSuggestionHighlights']&&_0x377616({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x49124e,_0x1c6208,_0x518a6e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x189c17,_0x556255,_0x2896d9)=>{const {type:_0x1de26a,id:_0x10c089}=_0x967bd0['_splitMarkerName'](_0x556255['markerName']);if(!_0x967bd0['hasSuggestion'](_0x10c089))return;const _0x1aa85e=_0x967bd0['getSuggestion'](_0x10c089),_0x399be3=_0x1aa85e['data'];if('formatBlock'!=_0x1aa85e['type']||!_0x399be3||'setTableColumnHeader'!=_0x399be3['commandName'])return;const _0x171b3d=_0x2896d9['mapper']['markerNameToElements'](_0x556255['markerName']);if(_0x171b3d){for(const _0x14173c of _0x171b3d)_0x2896d9['writer']['removeClass']('ck-suggestion-marker-'+_0x1de26a,_0x14173c),_0x2896d9['writer']['removeClass']('ck-suggestion-marker--active',_0x14173c),_0x2896d9['writer']['removeAttribute']('data-suggestion',_0x14173c),_0x2896d9['mapper']['unbindElementFromMarkerName'](_0x14173c,_0x556255['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x289490=this['editor'],_0x3f8eb1=_0x289490['locale'];function _0x49fd0a(_0x5d667a){return{'type':'format','content':o(_0x3f8eb1,'*Format:*\x20%0',_0x5d667a)};}_0x289490['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x268bdc=>{if('formatBlock'!=_0x268bdc['type'])return;const {data:_0x52c494}=_0x268bdc;if(_0x52c494){if('setTableRowHeader'==_0x52c494['commandName']){const _0x4971b6=_0x52c494['commandParams'][0x0]['forceValue'];return _0x49fd0a(o(_0x3f8eb1,_0x4971b6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x52c494['commandName']){const _0x23801e=_0x52c494['commandParams'][0x0]['forceValue'];return _0x49fd0a(o(_0x3f8eb1,_0x23801e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Mt extends _0xbac36c{['afterInit'](){const _0x282353=this['editor'],_0x280ef9=_0x282353['locale'],_0x215262=_0x282353['plugins']['get']('TrackChangesEditing');function _0x4ee858(_0x4be5d8){return{'type':'format','content':''+o(_0x280ef9,'*Set\x20table\x20type:*\x20%0',_0x4be5d8)};}_0x282353['plugins']['has']('TableLayout')&&(_0x215262['enableCommand']('insertTableLayout'),_0x215262['enableDefaultAttributesIntegration']('tableType'),_0x215262['registerBlockAttribute']('tableType'),_0x215262['descriptionFactory']['registerElementLabel'](_0x536348=>_0x536348['is']('element','table')&&'layout'===_0x536348['getAttribute']('tableType'),_0xce0230=>o(_0x280ef9,'ELEMENT_LAYOUT_TABLE',_0xce0230)),_0x215262['descriptionFactory']['registerDescriptionCallback'](_0x2ba79d=>{const {data:_0x1788d1}=_0x2ba79d;if(_0x1788d1&&'tableType'==_0x1788d1['key'])switch(_0x1788d1['newValue']){case'layout':return _0x4ee858(o(_0x280ef9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4ee858(o(_0x280ef9,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Oe['map'](_0x26b024=>[_0x26b024,null]));class Bt extends _0xbac36c{static get['requires'](){return[$t];}['afterInit'](){const _0x37b8a6=this['editor'];if(!_0x37b8a6['plugins']['has']('TableClipboard'))return;const _0x3c384e=_0x37b8a6['plugins']['get']('TrackChangesEditing'),_0x5e2ff8=_0x37b8a6['plugins']['get']('TableUtils'),_0x1f3b28=_0x37b8a6['plugins']['get']($t),_0x31fd9f=_0x37b8a6['plugins']['get']('TableClipboard'),_0x417c23=_0x37b8a6['plugins']['get']('TableSelection'),_0x4ff3f6=_0x37b8a6['plugins']['get'](_0x41df14);_0x1f3b28['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x37b8a6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x37b8a6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4e72be=null,_0x258fcc=!0x1;_0x4ff3f6['on']('contentInsertion',(_0x2b4de7,_0x35a78a)=>{_0x258fcc='paste'===_0x35a78a['method'];}),_0x37b8a6['model']['on']('insertContent',(_0x53726c,_0x4b814a)=>{if(!_0x258fcc&&null===_0x417c23['getSelectedTableCells']())return;const [_0x384fc0,_0x1f81fc]=_0x4b814a,_0x2a62d7=_0x4b814a[_0x4b814a['length']-0x1];_0x2a62d7&&_0x2a62d7['forceDefaultExecution']||_0x3c384e['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x48c398,_0x2bdd09,_0x358a6a,_0x15dd56,_0x2b13e4){if(_0x2bdd09&&!_0x2bdd09['is']('documentSelection'))return!0x1;const _0x503d70=_0x2b13e4['getTableIfOnlyTableInContent'](_0x48c398,_0x358a6a);if(!_0x503d70||!He(_0x503d70,void 0x0,_0x15dd56))return!0x1;const _0x4ec18b=_0x15dd56['getSelectionAffectedTableCells'](_0x358a6a['document']['selection']);if(!_0x4ec18b['length'])return!0x1;const _0x4b9352=_0x4ec18b[0x0]['findAncestor']('table'),_0x28300d=_0x15dd56['getRowIndexes'](_0x4ec18b),_0x1e7e3a=_0x15dd56['getColumnIndexes'](_0x4ec18b),_0x32977c={'startRow':_0x28300d['first'],'endRow':_0x28300d['last'],'startColumn':_0x1e7e3a['first'],'endColumn':_0x1e7e3a['last']};return 0x1==_0x4ec18b['length']&&(_0x32977c['endRow']+=_0x15dd56['getRows'](_0x503d70)-0x1,_0x32977c['endColumn']+=_0x15dd56['getColumns'](_0x503d70)-0x1),He(_0x4b9352,_0x32977c,_0x15dd56);}(_0x384fc0,_0x1f81fc,_0x37b8a6['model'],_0x5e2ff8,_0x31fd9f)&&(_0x53726c['stop'](),_0x4e72be={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x37b8a6['model']['change'](()=>{_0x37b8a6['model']['insertContent'](_0x4b814a[0x0],_0x4b814a[0x1],_0x4b814a[0x2],{'forceDefaultExecution':!0x0});const _0xdccbdb=_0x5f1f2a(),{rowInsertionRanges:_0x5155da,columnInsertionRanges:_0x17004c,insertionRanges:_0x5bf3e8,deletionRanges:_0x3ed309,cells:_0x2f860c}=_0x4e72be;_0x5155da['length']&&_0x3c384e['markMultiRangeInsertion'](_0x5155da,'tablePasteRow',{'tablePasteChainId':_0xdccbdb}),_0x17004c['length']&&_0x3c384e['markMultiRangeInsertion'](_0x17004c,'tablePasteColumn',{'tablePasteChainId':_0xdccbdb}),_0x5bf3e8['length']&&(_0x3c384e['markMultiRangeInsertion'](_0x5bf3e8,'tablePaste',{'tablePasteChainId':_0xdccbdb,'skipNestingCheck':!0x0}),_0x5bf3e8['forEach'](_0x4825d8=>_0x4825d8['detach']?.())),_0x3ed309['length']&&(_0x3c384e['markMultiRangeDeletion'](_0x3ed309,'tablePaste',{'tablePasteChainId':_0xdccbdb,'skipNestingCheck':!0x0}),_0x3ed309['forEach'](_0x29a609=>_0x29a609['detach']?.()));const _0x4d71df=_0x3c384e['markMultiRangeBlockFormat'](_0x2f860c['map'](({element:_0x5d54a8})=>_0x5d54a8),{'formatGroupId':_0x5f1f2a()},[],'tablePasteCell',{'tablePasteChainId':_0xdccbdb});if(_0x4d71df){const _0x362169=_0x4d71df['getMarkers'](),_0x588aa2=[];for(const {element:_0x423311,attributes:_0x10317b}of _0x2f860c){if(!_0x10317b)continue;const _0x319da4=_0x37b8a6['model']['createRangeOn'](_0x423311),_0x47e581=_0x362169['find'](_0x3f4f42=>_0x3f4f42['getRange']()['isEqual'](_0x319da4));_0x47e581&&_0x588aa2['push']([_0x47e581['name'],_0x10317b]);}_0x588aa2['length']&&_0x4d71df['setAttribute']('markerAttributes',Object['fromEntries'](_0x588aa2));}_0x4e72be=null;}));},{'priority':_0xadc6c0['high']+0xa}),_0x4ff3f6['on']('contentInsertion',()=>{_0x258fcc=!0x1;},{'priority':'lowest'}),_0x37b8a6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x24dcca,_0x4e2837)=>{const [_0x52de2b,_0x4781bb,,_0x308f73]=_0x4e2837;if(!_0x4e72be)return;_0x24dcca['stop']();const _0x19193c=_0x52de2b['cell'],_0x5bce36=_0x4781bb,_0x254fcc=De(_0x19193c),_0x1d8cce=De(_0x5bce36);_0x24dcca['return']=_0x19193c;let _0x4368b6=null,_0x1c3204=null;if(_0x1d8cce||_0x254fcc){if(_0x254fcc&&!_0x1d8cce){_0x308f73['remove'](_0x19193c['getChild'](0x0));for(const _0x34f4d4 of Array['from'](_0x5bce36['getChildren']()))_0x308f73['insert'](_0x34f4d4,_0x19193c,'end');const _0x23022c=_0x4e72be['rowInsertionIndexes']['includes'](_0x52de2b['row']),_0x320e16=_0x4e72be['columnInsertionIndexes']['includes'](_0x52de2b['column']);_0x23022c||_0x320e16||(_0x4368b6=_0x5ac46d['fromRange'](_0x308f73['createRangeIn'](_0x19193c)));}else _0x1d8cce&&!_0x254fcc&&(_0x1c3204=_0x308f73['createRangeIn'](_0x19193c));}else{const _0x46b967=_0x308f73['createElement']('tableCellSuggestion'),_0xbcc1d8=_0x308f73['createElement']('tableCellSuggestion');_0x308f73['wrap'](_0x308f73['createRangeIn'](_0x19193c),_0xbcc1d8),_0x308f73['insert'](_0x46b967,_0x19193c,0x0);for(const _0x195513 of Array['from'](_0x5bce36['getChildren']()))_0x308f73['insert'](_0x195513,_0x46b967,'end');_0x4368b6=_0x5ac46d['fromRange'](_0x308f73['createRangeOn'](_0x46b967)),_0x1c3204=_0x5ac46d['fromRange'](_0x308f73['createRangeOn'](_0xbcc1d8));}const _0x3d81ff=Array['from'](_0x5bce36['getAttributes']())['filter'](([_0x51c846])=>Oe['includes'](_0x51c846));_0x4e72be['cells']['push']({'element':_0x19193c,'attributes':_0x3d81ff['length']?Object['fromEntries'](_0x3d81ff):null}),_0x4368b6&&_0x4e72be['insertionRanges']['push'](_0x4368b6),_0x1c3204&&_0x4e72be['deletionRanges']['push'](_0x1c3204);},{'priority':'high'}),_0x5e2ff8['on']('insertColumns',(_0x22e2fe,_0x52ccf0)=>{const [_0x581b8b,_0x44a401={}]=_0x52ccf0;if(!_0x4e72be)return;const _0x4b063a=_0x44a401['at']||0x0,_0x3e24fe=_0x44a401['columns']||0x1;_0x4e72be['columnInsertionIndexes']=new Array(_0x3e24fe)['fill'](_0x4b063a)['map']((_0x312586,_0x36a681)=>_0x312586+_0x36a681);for(const {cell:_0xe15eaa}of _0x5e2ff8['createTableWalker'](_0x581b8b,{'startColumn':_0x4b063a,'endColumn':_0x4b063a+_0x3e24fe-0x1}))_0x4e72be['columnInsertionRanges']['push'](_0x37b8a6['model']['createRangeOn'](_0xe15eaa));},{'priority':'low'}),_0x5e2ff8['on']('insertRows',(_0x49a0c5,_0x256eb8)=>{const [_0x1c137e,_0x5728ae={}]=_0x256eb8;if(!_0x4e72be)return;const _0x1e6a5e=_0x5728ae['at']||0x0,_0x4e7e38=_0x5728ae['rows']||0x1;_0x4e72be['rowInsertionIndexes']=new Array(_0x4e7e38)['fill'](_0x1e6a5e)['map']((_0x102a0b,_0x20d44e)=>_0x102a0b+_0x20d44e);for(const {cell:_0xc1ab6f}of _0x5e2ff8['createTableWalker'](_0x1c137e,{'startRow':_0x1e6a5e,'endRow':_0x1e6a5e+_0x4e7e38-0x1}))_0x4e72be['rowInsertionRanges']['push'](_0x37b8a6['model']['createRangeOn'](_0xc1ab6f));},{'priority':'low'}),_0x3c384e['descriptionFactory']['registerDescriptionCallback'](_0x3b0e0d=>{if(_0x3b0e0d['subType']&&_0x3b0e0d['subType']['startsWith']('tablePaste'))return _0x3b0e0d['previous']?{}:{'type':'insertion','content':o(_0x37b8a6['locale'],'*Replace\x20table\x20cells*')};});const _0x10c5e3=()=>!0x1;for(const _0xcef9d8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3c384e['_suggestionFactory']['registerCustomCallback']('insertion',_0xcef9d8,'join',_0x10c5e3),_0x3c384e['_suggestionFactory']['registerCustomCallback']('deletion',_0xcef9d8,'join',_0x10c5e3),_0x3c384e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xcef9d8,'join',_0x10c5e3);_0x3c384e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x10c5e3),_0x3c384e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x429f51,_0x2e9924,_0x1a9f17)=>{const _0x57c04b=_0x429f51['map'](_0x20ad9b=>_0x20ad9b['getContainedElement']())['filter'](_0x5ae37e=>_0x5ae37e),_0x10cb4a=new Map(_0x57c04b['map'](_0xee41dd=>[_0xee41dd,null]));if(_0x4e72be){for(const {element:_0x34bf7d,attributes:_0x40a832}of _0x4e72be['cells'])_0x40a832&&_0x10cb4a['set'](_0x34bf7d,_0x40a832);}else{if(_0x1a9f17&&_0x1a9f17['markerAttributes'])for(const [_0x54c4da,_0x46a560]of Object['entries'](_0x1a9f17['markerAttributes'])){const _0x36612c=_0x37b8a6['model']['markers']['get'](_0x54c4da),_0x9f62e1=_0x36612c?_0x36612c['getRange']()['getContainedElement']():null;_0x9f62e1&&_0x10cb4a['set'](_0x9f62e1,_0x46a560);}}_0x37b8a6['model']['change'](_0x1b01b0=>{for(const [_0x503baf,_0x191b3c]of _0x10cb4a)_0x1b01b0['setAttributes']({...Ue,..._0x191b3c},_0x503baf);});});const _0x46347b=(_0x5715b6,_0x196d32)=>{_0x3c384e['_suggestionFactory']['registerCustomCallback'](_0x5715b6,'tablePaste',_0x196d32,(_0x29e961,_0x9fe036,_0x573beb)=>{_0x37b8a6['model']['change'](_0x3fcbd3=>{const _0x56c7ac=[];for(const _0x20e786 of _0x29e961){const _0x3d2982=_0x20e786['start']['nodeAfter'];_0x3d2982['is']('element','tableCellSuggestion')&&_0x56c7ac['push'](_0x3d2982);}_0x3c384e['_suggestionFactory']['getSuggestionCallback'](_0x5715b6,null,_0x196d32)(_0x29e961,_0x9fe036,_0x573beb);for(const _0x257562 of _0x56c7ac)'$graveyard'!=_0x257562['root']['rootName']&&_0x3fcbd3['unwrap'](_0x257562);});});};_0x46347b('insertion','accept'),_0x46347b('insertion','discard'),_0x46347b('deletion','accept'),_0x46347b('deletion','discard'),_0x3c384e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1e4548=>{const _0x1da820=_0x1e4548['map'](_0xfc286c=>_0xfc286c['getContainedElement']()),_0xf70533=_0x1da820[0x0]['findAncestor']('table'),{minRow:_0xa70abd,maxRow:_0x5ab5e0}=_0x1f3b28['_getCoordsForCells'](_0x1da820);_0x5e2ff8['removeRows'](_0xf70533,{'at':_0xa70abd,'rows':_0x5ab5e0-_0xa70abd+0x1});}),_0x3c384e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x69cf48=>{const _0x407d8e=_0x69cf48['map'](_0x10160a=>_0x10160a['getContainedElement']()),_0x5eabd8=_0x407d8e[0x0]['findAncestor']('table'),{minColumn:_0x301326,maxColumn:_0x4d70d8}=_0x1f3b28['_getCoordsForCells'](_0x407d8e);_0x5e2ff8['removeColumns'](_0x5eabd8,{'at':_0x301326,'columns':_0x4d70d8-_0x301326+0x1});});const _0x5cef46=(_0x3c7609,_0x1cf7be)=>{if(!_0x1cf7be['subType']||!_0x1cf7be['subType']['startsWith']('tablePaste'))return;const _0x42d65e=_0x1cf7be['attributes']['tablePasteChainId'],_0x38e44b=_0x3c384e['getSuggestions']()['filter'](_0x2d1dff=>_0x2d1dff['isInContent']&&_0x2d1dff['attributes']&&_0x2d1dff['attributes']['tablePasteChainId']==_0x42d65e);_0x38e44b['length']&&_0x1cf7be['getAllAdjacentSuggestions']()['length']!=_0x38e44b['length']&&_0x38e44b['reduce']((_0x4c0d80,_0x5cd760)=>(_0x4c0d80['next']=_0x5cd760,_0x5cd760['previous']=_0x4c0d80,_0x5cd760));};function _0x9bcd7(_0x407a01,_0x23d6fd=!0x0){const {id:_0x20eaa4,authorId:_0x55b746}=_0x3c384e['_splitMarkerName'](_0x407a01['markerName']),_0x48bd6a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x33c608=_0x3c384e['activeMarkers']['includes'](_0x407a01['markerName']);return _0x33c608&&_0x48bd6a['push']('ck-suggestion-marker--active'),{'classes':_0x48bd6a,'attributes':{'data-suggestion':_0x20eaa4,'data-author-id':_0x55b746},'priority':_0x33c608&&_0x23d6fd?0xbc2:0xbb8};}_0x3c384e['on']('suggestionLoaded',_0x5cef46,{'priority':'high'}),_0x3c384e['on']('suggestionUnloaded',_0x5cef46,{'priority':'high'}),_0x37b8a6['model']['document']['registerPostFixer'](()=>{let _0x5abcb0=!0x1;const _0x569113=Array['from'](_0x37b8a6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x186ed8,data:_0x27042d}of _0x569113){const {group:_0x8bbadf,type:_0x3dce5b,id:_0x167a33}=_0x3c384e['_splitMarkerName'](_0x186ed8);if('suggestion'!=_0x8bbadf||'deletion'!=_0x3dce5b||_0x27042d['oldRange'])continue;if(!_0x3c384e['hasSuggestion'](_0x167a33))continue;const _0x12086a=_0x3c384e['getSuggestion'](_0x167a33)['getRanges'](),_0x4100f1=_0x37b8a6['plugins']['get']('Users')['me'];for(const _0x497bff of _0x3c384e['getSuggestions']()){if(!_0x497bff['isInContent']||_0x497bff['author']!=_0x4100f1)continue;if('formatBlock'!=_0x497bff['type']||'tablePasteCell'!=_0x497bff['subType'])continue;if(_0x497bff['getRanges']()['every'](_0x5ccdba=>_0x12086a['some'](_0x1447e3=>_0x1447e3['containsRange'](_0x5ccdba,!0x0)))){for(const _0x5ef4ea of _0x497bff['getAllAdjacentSuggestions']())_0x5ef4ea['isInContent']&&(_0x5ef4ea['discard'](),_0x5abcb0=!0x0);}}}return _0x5abcb0;}),_0x37b8a6['model']['document']['registerPostFixer'](_0x34d7c7=>{const _0x30e1de=_0x37b8a6['commands']['get']('redo');if(!_0x30e1de||!_0x30e1de['_createdBatches']['has'](_0x34d7c7['batch']))return!0x1;let _0x31b46b=!0x1;const _0x2b32d6=_0x37b8a6['plugins']['get']('Users')['me'],_0x1a8c50=_0x37b8a6['model']['document']['differ']['getChanges'](),_0x19c213=Array['from'](_0x37b8a6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x20eb65,data:_0x30e316})=>{const {group:_0x4f0d5c,subType:_0x403a44,authorId:_0x2c95a0}=_0x3c384e['_splitMarkerName'](_0x20eb65);return'suggestion'==_0x4f0d5c&&'tablePaste'==_0x403a44&&_0x2c95a0==_0x2b32d6['id']&&!_0x30e316['oldRange'];});for(const _0x8c4be6 of _0x1a8c50){if('insert'!=_0x8c4be6['type']||'tableCellSuggestion'!=_0x8c4be6['name']||0x1!=_0x8c4be6['length'])continue;const _0x48ebdc=_0x34d7c7['createRange'](_0x8c4be6['position'],_0x8c4be6['position']['getShiftedBy'](0x1));if(!_0x19c213['find'](({data:_0xc55f2e})=>_0xc55f2e['newRange']['isEqual'](_0x48ebdc))){for(const {name:_0x79d0f8,data:_0x55ee92}of _0x19c213)if(_0x48ebdc['containsRange'](_0x55ee92['newRange'])){_0x34d7c7['updateMarker'](_0x79d0f8,{'range':_0x48ebdc}),_0x31b46b=!0x0;break;}}}return _0x31b46b;}),_0x37b8a6['model']['document']['registerPostFixer'](_0x56f7d8=>{let _0x5b50ec=!0x1;const _0xcd1181=_0x37b8a6['plugins']['get']('Users')['me'],_0x4c3718=_0x3c384e['getSuggestions']()['filter'](_0x53ca34=>_0x53ca34['isInContent']&&_0x53ca34['author']==_0xcd1181),_0x302e69=new Set(),_0x2182f1=new Set();for(const _0x256e95 of _0x4c3718)if('tablePaste'==_0x256e95['subType'])for(const _0x44f5ba of _0x256e95['getMarkers']()){const _0x1be088=_0x44f5ba['getRange']()['getContainedElement']();if(_0x1be088){if(_0x1be088['is']('element','tableCellSuggestion')&&De(_0x1be088)){_0x256e95['removeMarker'](_0x44f5ba['name']),_0x302e69['add'](_0x1be088),_0x5b50ec=!0x0;const _0x388dba=_0x1be088['nextSibling'],_0xbec1cd=_0x1be088['previousSibling'],_0x105120=_0x388dba&&_0x388dba['is']('element','tableCellSuggestion'),_0x4e6a83=_0xbec1cd&&_0xbec1cd['is']('element','tableCellSuggestion');_0x105120&&!_0x302e69['has'](_0x388dba)&&_0x2182f1['add'](_0x388dba),_0x4e6a83&&!_0x302e69['has'](_0xbec1cd)&&_0x2182f1['add'](_0xbec1cd);}else _0x1be088['is']('element','paragraph')&&_0x1be088['isEmpty']&&(_0x256e95['removeMarker'](_0x44f5ba['name']),_0x5b50ec=!0x0);}}else{if('tablePasteCell'==_0x256e95['subType']){if(!_0x256e95['attributes']||!_0x256e95['attributes']['tablePasteChainId'])continue;const _0x287047=_0x256e95['attributes']['markerAttributes'];if(_0x287047&&Object['keys'](_0x287047)['length'])continue;const _0x197b22=_0x256e95['attributes']['tablePasteChainId'];let _0x32883d=!0x0,_0x1c9a75=!0x0;for(const _0x575de0 of _0x4c3718)if(_0x575de0['subType']&&_0x575de0['subType']['startsWith']('tablePaste')){if(!_0x575de0['attributes']['tablePasteChainId']){_0x1c9a75=!0x1;break;}if(_0x575de0['id']!=_0x256e95['id']&&_0x575de0['attributes']['tablePasteChainId']==_0x197b22){_0x32883d=!0x1;break;}}_0x1c9a75&&_0x32883d&&(_0x256e95['removeMarkers'](),_0x5b50ec=!0x0);}}for(const _0x5e6b73 of _0x302e69)_0x56f7d8['remove'](_0x5e6b73);for(const _0x4c9194 of _0x2182f1)_0x56f7d8['unwrap'](_0x4c9194);return _0x5b50ec;}),_0x37b8a6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1ce5d9=>_0x9bcd7(_0x1ce5d9),'converterPriority':'high'}),_0x37b8a6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xda5e4a,_0x454662)=>_0x454662['options']['showSuggestionHighlights']?_0x9bcd7(_0xda5e4a,!0x1):null,'converterPriority':'high'});const _0x3ce5c5=_0x37b8a6['editing']['view'];this['listenTo'](_0x3ce5c5['document'],'clipboardOutput',(_0x12ccbc,_0x2bd579)=>{const _0x2978a5=[];for(const _0x32edbe of _0x3ce5c5['createRangeIn'](_0x2bd579['content'])['getItems']())_0x32edbe['is']('element','suggestion-td')&&_0x2978a5['push'](_0x32edbe);_0x3ce5c5['change'](_0x30abce=>{for(const _0x1c0753 of _0x2978a5)_0x30abce['move'](_0x30abce['createRangeIn'](_0x1c0753),_0x30abce['createPositionBefore'](_0x1c0753)),_0x30abce['remove'](_0x1c0753);});});}}function De(_0x121a8c){if(_0x121a8c['isEmpty'])return!0x0;const _0x521e1e=_0x121a8c['getChild'](0x0);return _0x521e1e['is']('element','paragraph')&&_0x521e1e['isEmpty'];}function He(_0x45c2bd,_0x533dab={},_0x1ca37f){for(const {isAnchor:_0x4feb81,cellHeight:_0x124704,cellWidth:_0xeca4b5}of _0x1ca37f['createTableWalker'](_0x45c2bd,{'includeAllSlots':!0x0,..._0x533dab}))if(!_0x4feb81||0x1!=_0x124704||0x1!=_0xeca4b5)return!0x1;return!0x0;}class Tt extends _0xbac36c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x51f742=this['editor']['plugins']['get']('TrackChangesEditing');_0x51f742['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x51f742['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x51f742['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51f742['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x51f742['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x51f742['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x11ad25,_0xeaacbc){const _0x3e2320=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54d251=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3e4b07=_0xeaacbc['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x55bb4c=_0x54d251['getColumnGroupElement'](_0x3e4b07);let _0x136233=_0x55bb4c?_0x54d251['getTableColumnsWidths'](_0x55bb4c):null,_0x33f1ad=_0x3e4b07['getAttribute']('tableWidth')||null;const _0x4c53cc=_0xeaacbc['tableWidth']||_0x33f1ad,_0x300635=_0xeaacbc['columnWidths']||_0x136233,_0x5212df=this['editor']['plugins']['get']('Users')['me'];for(const _0x56c159 of _0x3e2320['getSuggestions']()){const _0x2d6956=_0x56c159['getContainedElement']();if('resizeTable'===_0x56c159['subType']&&_0x2d6956===_0x3e4b07){_0x56c159['author']!==_0x5212df&&_0x56c159['discard']();const _0x345247=_0x56c159['data']['commandParams'];_0x33f1ad=_0x345247[0x0]['tableWidth'],_0x136233=_0x345247[0x0]['columnWidths'];break;}}_0x11ad25({'table':_0x3e4b07,'tableWidth':_0x4c53cc,'columnWidths':_0x300635}),_0x3e2320['markBlockFormat'](_0x3e4b07,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x33f1ad,'columnWidths':_0x136233}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4c6579){if('formatBlock'!=_0x4c6579['type']&&'formatInline'!=_0x4c6579['type'])return;const {data:_0x17507e}=_0x4c6579;if(_0x17507e&&'resizeTable'===_0x17507e['formatGroupId']){const _0x190dce='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x190dce)};}}}class Ot extends _0xbac36c{['afterInit'](){const _0x27a7c6=this['editor'];_0x27a7c6['plugins']['has']('Template')&&_0x27a7c6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class xt extends _0xbac36c{['afterInit'](){const _0x11d2de=this['editor'];if(!_0x11d2de['commands']['get']('insertTableOfContents'))return;_0x11d2de['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4ed583=_0x11d2de['plugins']['get']('TrackChangesEditing'),_0x43c3b9=_0x11d2de['locale'];_0x4ed583['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2ace68=>o(_0x43c3b9,'ELEMENT_TABLE_OF_CONTENTS',_0x2ace68));}}class Et extends _0xbac36c{['afterInit'](){const _0x4130a8=this['editor'];if(!_0x4130a8['plugins']['has']('Title'))return;const _0x45be6f=_0x4130a8['plugins']['get']('TrackChangesEditing');_0x45be6f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4130a8['locale'],'ELEMENT_TITLE')),_0x4130a8['model']['document']['registerPostFixer'](_0x15efb1=>{let _0x1e0311=!0x1;const _0x5b1c35=Array['from'](_0x4130a8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25c053,data:_0x1d6f1c}of _0x5b1c35){const {group:_0x46fe4a}=_0x45be6f['_splitMarkerName'](_0x25c053);if('suggestion'!==_0x46fe4a||!_0x1d6f1c['newRange'])continue;const _0x10beda=_0x1d6f1c['newRange'],_0x152881=_0x10beda['end']['nodeBefore'];if(!_0x152881||!_0x152881['is']('element','title-content'))continue;if(!_0x10beda['start']['isTouching'](_0x10beda['end']))continue;const _0x869cc4=_0x4130a8['model']['schema']['getNearestSelectionRange'](_0x10beda['end'],'forward');if(_0x869cc4&&_0x869cc4['isCollapsed']){const _0x2a318a=_0x15efb1['createRange'](_0x10beda['start'],_0x869cc4['start']);_0x2a318a['isEqual'](_0x10beda)||(_0x15efb1['updateMarker'](_0x25c053,{'range':_0x2a318a}),_0x1e0311=!0x0);}_0x1e0311||(_0x15efb1['removeMarker'](_0x25c053),_0x1e0311=!0x0);}return _0x1e0311;});}}class Rt extends _0xbac36c{['afterInit'](){const _0x1e48c6=this['editor'],_0x19452e=_0x1e48c6['plugins']['get']('TrackChangesEditing');_0x1e48c6['plugins']['has']('Uploadcare')&&(_0x19452e['enableCommand']('uploadcare'),_0x1e48c6['plugins']['has']('UploadcareImageEdit')&&(_0x19452e['enableCommand']('uploadcareImageEdit'),_0x19452e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x19452e['registerBlockAttribute']('uploadcareImageId'),_0x19452e['descriptionFactory']['registerDescriptionCallback'](_0x5a544e=>{if('attribute'!=_0x5a544e['type'])return;const {data:_0x24b6a3}=_0x5a544e;return _0x24b6a3&&'uploadcareImageId'==_0x24b6a3['key']?{'type':'format','content':''}:void 0x0;})));}}class Ut extends _0xbac36c{['afterInit'](){const _0x435ed5=this['editor'],_0x73033c=_0x435ed5['plugins']['get']('TrackChangesEditing');_0x435ed5['plugins']['has']('UndoEditing')&&(_0x73033c['enableCommand']('undo'),_0x73033c['enableCommand']('redo'));}}class Vt extends _0xbac36c{static get['requires'](){return[$t];}['afterInit'](){const _0x38e392=this['editor'];if(!_0x38e392['plugins']['has']('TableCaptionEditing'))return;_0x38e392['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ft extends _0xbac36c{['tableProperties'];['tableCellProperties'];constructor(_0x44a517){super(_0x44a517),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 _0x2da4e0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4e96ba of this['tableProperties'])_0x2da4e0['enableCommand'](_0x4e96ba,(_0x12677c,_0x3e7549)=>{const _0x3d24d6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4e96ba,[_0x3d24d6],this['tableProperties'],'tableProperties',_0x12677c,_0x3e7549);});_0x2da4e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2da4e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2da4e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xe726e1,_0xebddf)=>this['handleDiscardAction'](this['tableProperties'],_0xe726e1,_0xebddf)),_0x2da4e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3bad7a of this['tableCellProperties'])_0x2da4e0['enableCommand'](_0x3bad7a,(_0x32dd7c,_0x14fc56)=>{const _0x509e5c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3bad7a,_0x509e5c,this['tableCellProperties'],'tableCellProperties',_0x32dd7c,_0x14fc56);});_0x2da4e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2da4e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2da4e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xb4cc1a,_0x421a4a)=>this['handleDiscardAction'](this['tableCellProperties'],_0xb4cc1a,_0x421a4a)),_0x2da4e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2da4e0['descriptionFactory']['registerDescriptionCallback'](_0x5a5ff5=>this['handleSuggestionDescription'](_0x5a5ff5)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x38e0de,_0x46a473,_0x5bb16a,_0x588da7,_0x366454,_0x195d99){const _0x4ca7bd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x195d99['batch'],()=>{for(const _0x4133d5 of _0x46a473){if(this['_getSuggestion'](_0x4133d5,_0x588da7))_0x366454(_0x195d99);else{const _0x3349b0={};for(const _0x36a60a of _0x5bb16a){const _0x23efb9=_0x4133d5['getAttribute'](_0x36a60a);void 0x0!==_0x23efb9&&(_0x3349b0[_0x36a60a]=_0x23efb9);}_0x366454(_0x195d99),_0x4ca7bd['markBlockFormat'](_0x4133d5,{'commandParams':[_0x3349b0]},[],_0x588da7);}}});}['handleDiscardAction'](_0x5c16c7,_0x150180,_0x1f1d13){const _0x41c473=_0x150180[0x0]['start']['nodeAfter'],_0x115001=_0x1f1d13['commandParams'][0x0];this['editor']['model']['change'](_0x26e334=>{for(const _0x1ef768 of _0x5c16c7)void 0x0!==_0x115001[_0x1ef768]?_0x26e334['setAttribute'](_0x1ef768,_0x115001[_0x1ef768],_0x41c473):_0x26e334['removeAttribute'](_0x1ef768,_0x41c473);});}['handleSuggestionDescription'](_0xdf4563){if(_0xdf4563['data'])switch(_0xdf4563['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5279d0,_0x32272c){const _0x32d719=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5d7b67 of _0x32d719['getSuggestions']({'skipNotAttached':!0x0})){const _0xd5826b=_0x5d7b67['getContainedElement']();if(_0x5d7b67['subType']===_0x32272c&&_0xd5826b===_0x5279d0)return _0x5d7b67;}return null;}['_registerTablePropertiesAttributes'](){const _0x413471=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c2b3c=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x162699 of _0x5c2b3c){const _0x1be17f=_0x162699['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x413471['registerBlockAttribute'](_0x162699),_0x413471['descriptionFactory']['registerAttributeLabel'](_0x162699,o(this['editor']['locale'],'FORMAT_'+_0x1be17f));}}}class Pt extends _0xbac36c{['afterInit'](){const _0x32c26c=this['editor'];if(!_0x32c26c['plugins']['has']('LineHeight'))return;const _0x397f1e=_0x32c26c['plugins']['get']('TrackChangesEditing'),_0x4dbf4f=_0x32c26c['locale'];_0x397f1e['enableDefaultAttributesIntegration']('lineHeight'),_0x397f1e['registerBlockAttribute']('lineHeight'),_0x397f1e['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4dbf4f,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xbac36c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x67f2a0,_0x5c16d8,_0x3cca4d,V,F,G,L,J,H,K,W,q,z,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,ct,ft,ht,gt,dt,mt,bt,lt,Q,Pt,X,pt,kt,wt,yt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Vt,Bt,Tt,xt,Ft,Ot,Et,Rt,Ut];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5300b2){super(_0x5300b2),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5a0457,_0x1f5e19,_0x35ea0f,_0x27e14b)=>{this['_model']['change'](()=>{for(const _0x3bcde8 of[..._0x27e14b,..._0x35ea0f])this['_model']['markers']['has'](_0x3bcde8)&&_0x5300b2['editing']['reconvertMarker'](_0x3bcde8);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Lt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5300b2['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x5300b2['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5300b2['config']['get']('trackChanges.trackFormatChanges'),_0x5300b2['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5300b2['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5300b2,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5d3186=this['editor'],_0xf0a19f=(_0x15c542,_0x24c49a)=>{if('attribute'!=_0x15c542)return'ck-suggestion-marker-'+_0x15c542;const _0x4f1b53=_0x24c49a['split']('|')[0x0];return this['_isBlockAttribute'](_0x4f1b53)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5d3186['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x59dd65=>{const {id:_0x4ff60d,authorId:_0x35b44d,type:_0x2688ad,subType:_0x5bd536}=this['_splitMarkerName'](_0x59dd65['markerName']),_0x57fa6d=['ck-suggestion-marker',_0xf0a19f(_0x2688ad,_0x5bd536)];let _0x2b3eac=0xbb8;return this['activeMarkers']['includes'](_0x59dd65['markerName'])&&(_0x57fa6d['push']('ck-suggestion-marker--active'),_0x2b3eac=0xbc2),'deletion'==_0x2688ad&&(_0x2b3eac+=0x5),{'classes':_0x57fa6d,'attributes':{'data-suggestion':_0x4ff60d,'data-author-id':_0x35b44d},'priority':_0x2b3eac};}}),_0x5d3186['conversion']['for']('dataDowncast')['add'](_0x5da3dc=>{_0x5da3dc['on']('addMarker:suggestion',(_0x30f07d,_0xdfaf0,_0x266056)=>{if(!_0x266056['options']['showSuggestionHighlights'])return;const _0x5d72b2=_0xdfaf0['item'];if(!_0x5d72b2)return;const _0x2005c5=_0x266056['mapper']['toViewElement'](_0x5d72b2);_0x5d3186['model']['schema']['isObject'](_0x5d72b2)&&_0x2005c5&&!_0x2005c5['getCustomProperty']('widget')&&_0x2005c5['is']('containerElement')&&_0x327748(_0x2005c5,_0x266056['writer']);},{'priority':'high'});}),_0x5d3186['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xa27733,_0x4da940)=>{if(!_0x4da940['options']['showSuggestionHighlights'])return null;const {id:_0x3ae122,authorId:_0x46d471,type:_0x4dc665,subType:_0x3a9535}=this['_splitMarkerName'](_0xa27733['markerName']);return{'classes':['ck-suggestion-marker',_0xf0a19f(_0x4dc665,_0x3a9535)],'priority':0xbb8,'attributes':{'data-suggestion':_0x3ae122,'data-author-id':_0x46d471}};}});const _0x5cbeaf=({showActiveMarkers:_0x5b3a40=!0x0,isAttributeSuggestion:_0xae610b=!0x1}={})=>(_0x39226f,_0x36fbd8,_0x3fe27a)=>{if(!_0x36fbd8['item'])return;const {id:_0x51155f,authorId:_0x4126ac,subType:_0x54f439}=this['_splitMarkerName'](_0x36fbd8['markerName']);if(_0xae610b){const _0x1b001e=se(_0x54f439);if(!this['_isBlockAttribute'](_0x1b001e))return;}if(_0x36fbd8['item']['is']('selection'))return void _0x3fe27a['consumable']['consume'](_0x36fbd8['item'],_0x39226f['name']);const _0x2c938d=_0x3fe27a['mapper']['toViewElement'](_0x36fbd8['item']);if(_0x36fbd8['item']['is']('element')&&_0x5d3186['model']['schema']['isBlock'](_0x36fbd8['item'])&&!_0x2c938d['getCustomProperty']('addHighlight')){_0x3fe27a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2c938d),_0x3fe27a['writer']['setAttribute']('data-suggestion',_0x51155f,_0x2c938d),_0x3fe27a['writer']['setAttribute']('data-author-id',_0x4126ac,_0x2c938d),_0x3fe27a['mapper']['bindElementToMarker'](_0x2c938d,_0x36fbd8['markerName']),_0x5b3a40&&(this['activeMarkers']['includes'](_0x36fbd8['markerName'])?_0x3fe27a['writer']['addClass']('ck-suggestion-marker--active',_0x2c938d):_0x3fe27a['writer']['removeClass']('ck-suggestion-marker--active',_0x2c938d));for(const _0x477c78 of _0x5d3186['model']['createRangeIn'](_0x36fbd8['item'])['getItems']())_0x3fe27a['consumable']['consume'](_0x477c78,_0x39226f['name']);_0x3fe27a['consumable']['consume'](_0x36fbd8['item'],_0x39226f['name']);}};_0x5d3186['conversion']['for']('dataDowncast')['add'](_0x191bec=>{_0x191bec['on']('addMarker:suggestion:formatBlock',(_0x1d327a,_0x211c1d,_0x5c6b21)=>{_0x5c6b21['options']['showSuggestionHighlights']&&_0x5cbeaf({'showActiveMarkers':!0x1})(_0x1d327a,_0x211c1d,_0x5c6b21);},{'priority':'highest'});}),_0x5d3186['conversion']['for']('dataDowncast')['add'](_0x43d25d=>{_0x43d25d['on']('addMarker:suggestion:attribute',(_0x4ec669,_0x4eda38,_0x28ff39)=>{_0x28ff39['options']['showSuggestionHighlights']&&_0x5cbeaf({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4ec669,_0x4eda38,_0x28ff39);},{'priority':'highest'});}),_0x5d3186['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x382053,_0xe60e94)=>{if(_0xe60e94['options']['showSuggestionHighlights']){const {id:_0x271071,authorId:_0x308641}=this['_splitMarkerName'](_0x382053);return _0x382053['includes'](':split')||_0x382053['includes'](':merge')?{'group':'suggestion','name':_0x382053['substr'](0xb),'attributes':{'data-suggestion':_0x271071,'data-author-id':_0x308641}}:null;}return{'group':'suggestion','name':_0x382053['substr'](0xb)};}}),_0x5d3186['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2353e3,{writer:_0x511212})=>{let _0x129d37='suggestion:'+_0x2353e3['getAttribute']('suggestion-type')+':'+_0x2353e3['getAttribute']('id');return _0x2353e3['getAttribute']('marker-count')&&(_0x129d37+=':'+_0x2353e3['getAttribute']('marker-count')),_0x511212['createElement']('$marker',{'data-name':_0x129d37});}}),_0x5d3186['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5d3186['conversion']['for']('editingDowncast')['add'](_0x1d8897=>{_0x1d8897['on']('addMarker:suggestion:formatBlock',_0x5cbeaf(),{'priority':'high'});}),_0x5d3186['conversion']['for']('editingDowncast')['add'](_0x18b731=>{_0x18b731['on']('addMarker:suggestion:attribute',_0x5cbeaf({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5d3186['conversion']['for']('editingDowncast')['add'](_0xfdd656=>{_0xfdd656['on']('removeMarker:suggestion:formatBlock',(_0xb5d313,_0x15756d,_0x4dbaf5)=>{const _0x28ed66=_0x4dbaf5['mapper']['markerNameToElements'](_0x15756d['markerName']);if(_0x28ed66){for(const _0x22d0f9 of _0x28ed66)_0x22d0f9['getCustomProperty']('addHighlight')||(_0x4dbaf5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x22d0f9),_0x4dbaf5['writer']['removeAttribute']('data-suggestion',_0x22d0f9),_0x4dbaf5['writer']['removeAttribute']('data-author-id',_0x22d0f9),_0x4dbaf5['mapper']['unbindElementFromMarkerName'](_0x22d0f9,_0x15756d['markerName']));}},{'priority':'high'});}),_0x5d3186['conversion']['for']('editingDowncast')['add'](_0x5218d1=>{_0x5218d1['on']('removeMarker:suggestion:attribute',(_0x12b2bc,_0x28185a,_0x57636f)=>{const _0xf342ea=_0x57636f['mapper']['markerNameToElements'](_0x28185a['markerName']);if(!_0xf342ea)return;const {subType:_0x289e17}=this['_splitMarkerName'](_0x28185a['markerName']),_0x13ad62=se(_0x289e17);if(this['_isBlockAttribute'](_0x13ad62)){for(const _0x1dcfe0 of _0xf342ea)_0x1dcfe0['getCustomProperty']('addHighlight')||(_0x57636f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1dcfe0),_0x57636f['writer']['removeAttribute']('data-suggestion',_0x1dcfe0),_0x57636f['writer']['removeAttribute']('data-author-id',_0x1dcfe0),_0x57636f['mapper']['unbindElementFromMarkerName'](_0x1dcfe0,_0x28185a['markerName']));}},{'priority':'high'});}),_0x5d3186['model']['document']['registerPostFixer'](_0x462c4a=>{let _0x472b13=!0x1;const _0x320e58=Array['from'](_0x5d3186['model']['document']['differ']['getChangedMarkers']()),_0x56323d=new Set();for(const {name:_0xd56603,data:_0x43e106}of _0x320e58){const {group:_0x1aba0d,type:_0x483d79,subType:_0x43a0fa,id:_0x3ec995}=this['_splitMarkerName'](_0xd56603);if('suggestion'!==_0x1aba0d)continue;const _0x1d8b4e=_0x43a0fa?'suggestion:'+_0x483d79+':'+_0x43a0fa+':'+_0x3ec995:'suggestion:'+_0x483d79+':'+_0x3ec995,_0x3a53e4=_0x5d3186['model']['markers']['getMarkersGroup'](_0x1d8b4e),_0x314727=_0x5d3186['model']['markers']['get'](_0xd56603),_0x340ab6=this['_suggestions']['get'](_0x3ec995);if(null!=_0x43e106['newRange']){'formatInline'==_0x483d79&&(_0x472b13=_0x472b13||Ht(_0x43e106['newRange'],_0xd56603,_0x462c4a,_0x5d3186['model']['schema']));const _0x1dcb3f='attribute'==_0x483d79&&this['_isBlockAttribute'](_0x43a0fa['split']('|')[0x0]),_0x5cd716='attribute'==_0x483d79&&this['_isInlineAttribute'](_0x43a0fa['split']('|')[0x0]);if(_0x43e106['newRange']['isCollapsed']||'$graveyard'==_0x43e106['newRange']['root']['rootName']||'formatBlock'==_0x483d79&&!qt(_0x43e106['newRange'])||_0x1dcb3f&&!qt(_0x43e106['newRange'])||_0x5cd716&&zt(_0x43e106['newRange'])||'deletion'==_0x483d79&&zt(_0x43e106['newRange'])||_0x314727&&Qt(_0x314727,_0x3a53e4))_0x462c4a['removeMarker'](_0xd56603),_0x472b13=!0x0;else{if(!_0x340ab6||!_0x340ab6['isInContent'])continue;if(_0x43e106['newRange']&&_0x43e106['oldRange']&&_0x43e106['newRange']['isEqual'](_0x43e106['oldRange']))continue;_0x56323d['add'](_0x340ab6);}}}return _0x56323d['size']>0x0&&(_0x472b13=!!this['_joinWithAdjacentSuggestions'](_0x56323d)||_0x472b13),_0x472b13;}),_0x5d3186['model']['document']['registerPostFixer'](_0x3f0e84=>{let _0x403352=!0x1;for(const _0x2f2c06 of _0x5d3186['model']['document']['differ']['getChanges']())if('insert'==_0x2f2c06['type'])for(const _0x53bc8b of this['_suggestions']['values']()){if(_0x53bc8b['isMultiRange']||!_0x53bc8b['isInContent'])continue;const _0x4d8275='formatBlock'==_0x53bc8b['type'],_0x1f6fef=this['_getAttributeKey'](_0x53bc8b),_0x1736d6=_0x1f6fef&&this['_isBlockAttribute'](_0x1f6fef);if(!_0x4d8275&&!_0x1736d6)continue;const _0x94dabb=_0x53bc8b['getFirstRange']();if(_0x94dabb['start']['parent']!=_0x94dabb['end']['parent']&&!_0x94dabb['end']['isAtEnd']){const _0x4caa19=_0x5d3186['model']['createPositionAt'](_0x94dabb['start']['nodeAfter'],'end'),_0x281951=_0x5d3186['model']['createRange'](_0x94dabb['start'],_0x4caa19);_0x3f0e84['updateMarker'](_0x53bc8b['getFirstMarker'](),{'range':_0x281951}),_0x403352=!0x0;}}return _0x403352;}),_0x5d3186['model']['document']['registerPostFixer'](_0x548800=>this['_processAttributeChanges'](_0x548800)),_0x5d3186['model']['document']['registerPostFixer'](_0x26ee16=>!_0x26ee16['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x26ee16)),_0x5d3186['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5d3186['model']['document']['on']('change:data',(_0xe95d1c,_0x386e8d)=>{if(!_0x386e8d['isLocal']||_0x386e8d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4b2d10=_0x5d3186['model']['document']['differ']['getChanges']();if(0x0==_0x4b2d10['length'])return;const _0x358229=[],_0x52366f=_0x4b2d10['filter'](_0x27b1ab=>'attribute'==_0x27b1ab['type']),_0x5127e8=_0x4b2d10['filter'](_0x4b35a2=>'insert'==_0x4b35a2['type']&&'$text'!=_0x4b35a2['name']);for(const _0x549519 of _0x52366f)this['_isRegisteredAttribute'](_0x549519['attributeKey'])&&_0x358229['push']({'key':_0x549519['attributeKey'],'newValue':_0x549519['attributeNewValue'],'oldValue':_0x549519['attributeOldValue'],'range':Yt(_0x549519['range'],_0x5d3186['model'])});for(const _0x39baf2 of _0x5127e8){if('rename'!=_0x39baf2['action']&&'refresh'!=_0x39baf2['action'])continue;const _0x517e12=Zt(_0x39baf2['position']['nodeAfter'],_0x5d3186['model']),_0x4ff78e=_0x39baf2['before'];'rename'==_0x39baf2['action']&&_0x358229['push']({'key':m,'newValue':_0x39baf2['name'],'oldValue':_0x4ff78e['name'],'range':_0x517e12});for(const [_0x2bef81,_0x3f160d]of _0x4ff78e['attributes']){if(!this['_isRegisteredAttribute'](_0x2bef81))continue;const _0x8c65a8=_0x39baf2['attributes']['get'](_0x2bef81);_0x3f160d!==_0x8c65a8&&_0x358229['push']({'key':_0x2bef81,'newValue':_0x8c65a8,'oldValue':_0x3f160d,'range':_0x517e12});}for(const [_0x4456e3,_0x56d496]of _0x39baf2['attributes'])this['_isRegisteredAttribute'](_0x4456e3)&&(_0x4ff78e['attributes']['has'](_0x4456e3)||_0x358229['push']({'key':_0x4456e3,'newValue':_0x56d496,'oldValue':null,'range':_0x517e12}));}0x0!=_0x358229['length']&&_0x5d3186['model']['enqueueChange'](_0x386e8d,_0x3d3fc5=>{const _0x5c0e58=_0x5f1f2a();for(const {range:_0x113ec6,key:_0x393f6b,oldValue:_0xb0b301,newValue:_0x3b009f}of _0x358229)this['markAttributeChange'](_0x113ec6,_0x393f6b,_0xb0b301,_0x3b009f,{'groupId':_0x5c0e58});this['_reduceExistingSuggestions'](_0x3d3fc5,_0x358229);});},{'priority':'lowest'}),_0x5d3186['model']['markers']['on']('update:suggestion',(_0x3bbb73,_0xdd20ac,_0x2a3c2b)=>{if(null==_0x2a3c2b){const {id:_0x17802b}=this['_splitMarkerName'](_0xdd20ac['name']),_0x187a85=this['_suggestions']['get'](_0x17802b);_0x187a85&&_0x187a85['addMarkerName'](_0xdd20ac['name']);}}),_0x5d3186['model']['document']['on']('change:data',()=>{const _0x61af20=Array['from'](_0x5d3186['model']['document']['differ']['getChangedMarkers']())['filter'](_0xd41565=>'suggestion'===this['_splitMarkerName'](_0xd41565['name'])['group']);if(0x0===_0x61af20['length'])return;_0x61af20['sort']((_0x4266b5,_0x5dfe01)=>{const _0x2ba9f2=_0x4266b5['data']['oldRange'],_0x222965=_0x5dfe01['data']['oldRange'];return null===_0x2ba9f2&&null===_0x222965?0x0:null===_0x2ba9f2&&null!==_0x222965?-0x1:null!==_0x2ba9f2&&null===_0x222965?0x1:_0x2ba9f2['start']['isBefore'](_0x222965['start'])?-0x1:0x1;});const _0x474c8c=new Set(),_0x436fbf=new Set();for(const {name:_0x3e3931,data:_0x4452ee}of _0x61af20){const {id:_0x3e4886}=this['_splitMarkerName'](_0x3e3931);if(null===_0x4452ee['oldRange']){const _0xf6f555=this['_handleNewSuggestionMarker'](_0x3e3931);_0x436fbf['add'](_0xf6f555);}else{const _0x3bbbd5=this['_suggestions']['get'](_0x3e4886);null!==_0x4452ee['newRange']||_0x3bbbd5['isInContent']?(_0x474c8c['add'](_0x3bbbd5['head']),_0x436fbf['add'](_0x3bbbd5)):this['_removeSuggestion'](_0x3bbbd5);}}_0x436fbf['size']>0x0&&this['_refreshSuggestionsChain'](_0x436fbf);for(const _0x414a38 of _0x474c8c)this['fire']('suggestionChanged',_0x414a38);}),_0x5d3186['model']['on']('applyOperation',(_0x2e7221,_0x345de9)=>{const _0x2dde9c=_0x345de9[0x0];if(!this['_suggestions']['size'])return;if(!_0x2dde9c['isDocumentOperation'])return;if(_0x2dde9c['batch']['isUndo']||!_0x2dde9c['batch']['isLocal'])return;let _0x5508ad,_0x3e5c23;switch(_0x2dde9c['type']){case'insert':_0x5508ad=_0x5d3186['model']['createPositionAt'](_0x2dde9c['position']),_0x3e5c23=_0x5508ad['getShiftedBy'](_0x2dde9c['howMany']);break;case'split':_0x5508ad=_0x5d3186['model']['createPositionAt'](_0x2dde9c['splitPosition']),_0x3e5c23=_0x5d3186['model']['createPositionAt'](_0x2dde9c['moveTargetPosition']);break;case'move':_0x5508ad=_0x5d3186['model']['createPositionAt'](_0x2dde9c['targetPosition']),_0x3e5c23=_0x5508ad['getShiftedBy'](_0x2dde9c['howMany']);break;default:return;}const _0x2f433a=_0x5d3186['model']['createRange'](_0x5508ad,_0x3e5c23);_0x5d3186['model']['change'](()=>{for(const {suggestion:_0x30faeb,meta:_0x26e456}of this['_findSuggestions'](_0x2f433a)){if(_0x30faeb['isMultiRange'])continue;if('formatInline'==_0x30faeb['type'])continue;const _0xfc1014=this['_getAttributeKey'](_0x30faeb);if(_0xfc1014&&this['_isBlockAttribute'](_0xfc1014)&&'split'!=_0x2dde9c['type'])continue;const _0x309035=_0x30faeb['data']&&_0x30faeb['data']['multipleBlocks'];('formatBlock'!=_0x30faeb['type']||'split'==_0x2dde9c['type']&&!_0x309035)&&(_0x26e456['containsRangeInObject']||'insertion'==_0x30faeb['type']&&_0x26e456['isOwn']||_0x30faeb['getFirstRange']()['containsRange'](_0x2f433a)&&this['_breakSuggestionMarker'](_0x30faeb,_0x5508ad,_0x3e5c23));}});},{'priority':'lowest'}),_0x5d3186['model']['on']('deleteContent',(_0x3d31b3,_0x607b4e)=>{const _0x1a5882=_0x607b4e[0x0],_0x4270f5=_0x607b4e[0x1];if(_0x4270f5&&_0x4270f5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1a5882['isCollapsed'])return;const _0x1b1374=_0x5d3186['model']['schema'],{start:_0x2be9f3,end:_0x11c03c}=_0x1a5882['getFirstRange'](),_0x4c8d91=_0x2be9f3['nodeAfter']&&_0x1b1374['isLimit'](_0x2be9f3['nodeAfter'])?null:_0x1b1374['getNearestSelectionRange'](_0x2be9f3,'forward'),_0xf4e653=_0x11c03c['nodeBefore']&&_0x1b1374['isLimit'](_0x11c03c['nodeBefore'])?null:_0x1b1374['getNearestSelectionRange'](_0x11c03c,'backward'),_0x39ba15=_0x5d3186['model']['createRange'](_0x4c8d91?_0x4c8d91['start']:_0x2be9f3,_0xf4e653?_0xf4e653['end']:_0x11c03c);_0x5d3186['model']['change'](_0x348c66=>{this['markDeletion'](_0x39ba15);const _0x8e04cf=_0x5d3186['model']['schema']['getNearestSelectionRange'](_0x39ba15['start']);_0x1a5882['is']('documentSelection')?_0x348c66['setSelection'](_0x8e04cf):_0x1a5882['setTo'](_0x8e04cf);}),_0x3d31b3['stop']();},{'priority':_0xadc6c0['normal']+0xa}),_0x5d3186['model']['on']('insertContent',(_0x5ce1c4,_0x5c06bc)=>{const _0x55cb97=_0x5c06bc[_0x5c06bc['length']-0x1];_0x55cb97&&_0x55cb97['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5d3186['model']['change'](()=>{let _0x2e58b4=_0x5d3186['model']['insertContent'](_0x5c06bc[0x0],_0x5c06bc[0x1],_0x5c06bc[0x2],{'forceDefaultExecution':!0x0});if(!_0x2e58b4)return;_0x5ce1c4['return']=_0x2e58b4['clone']();const _0x496373=_0x2e58b4['end']['nodeBefore'],_0x27bb96=_0x5d3186['model']['schema'];_0x496373&&_0x27bb96['isBlock'](_0x496373)&&!_0x27bb96['isObject'](_0x496373)&&(_0x2e58b4=_0x5d3186['model']['createRange'](_0x2e58b4['start'],_0x5d3186['model']['createPositionAt'](_0x496373,'end'))),this['markInsertion'](_0x2e58b4);}),_0x5ce1c4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4fd4c6=new T(_0x5d3186,this['_suggestions']);_0x5d3186['commands']['add']('acceptSuggestion',_0x4fd4c6),this['enableCommand']('acceptSuggestion');const _0x3e8682=new O(_0x5d3186,this['_suggestions']);_0x5d3186['commands']['add']('discardSuggestion',_0x3e8682),this['enableCommand']('discardSuggestion'),_0x5d3186['commands']['add']('acceptAllSuggestions',new x(_0x5d3186,_0x4fd4c6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5d3186['commands']['add']('discardAllSuggestions',new x(_0x5d3186,_0x3e8682,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5d3186['commands']['add']('acceptSelectedSuggestions',new E(_0x5d3186,_0x4fd4c6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5d3186['commands']['add']('discardSelectedSuggestions',new E(_0x5d3186,_0x3e8682,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2cc17c=_0x5d3186['plugins']['get']('CommentsRepository');this['listenTo'](_0x2cc17c,'addComment',(_0x2a2339,{threadId:_0x8d6b76})=>{const _0x323733=this['_suggestions']['get'](_0x8d6b76);_0x323733&&_0x323733['commentThread']&&0x1===_0x323733['commentThread']['length']&&this['_updateSuggestionData'](_0x8d6b76,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2cc17c,'removeComment',(_0x4a2133,{threadId:_0x1b1827})=>{const _0x21a59d=this['_suggestions']['get'](_0x1b1827);_0x21a59d&&_0x21a59d['commentThread']&&!_0x21a59d['commentThread']['length']&&this['_updateSuggestionData'](_0x1b1827,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5d4fb7){const _0x421a5a=_0x5d738b([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x3e0501=0x6b0f5e6f,_0x5502b3=0x6b082a0f^_0x3e0501,_0x4562cf=window[_0x5d738b([0x44,0x61,0x74,0x65])][_0x5d738b([0x6e,0x6f,0x77])](),_0x1fee30=_0x5d4fb7[_0x5d738b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x221fcd=new window[(_0x5d738b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5742f5=>{_0x1fee30[_0x5d738b([0x6f,0x6e,0x63,0x65])](_0x5d738b([0x72,0x65,0x61,0x64,0x79]),_0x5742f5);}),_0x27e550={[_0x5d738b([0x6b,0x74,0x79])]:_0x5d738b([0x45,0x43]),[_0x5d738b([0x75,0x73,0x65])]:_0x5d738b([0x73,0x69,0x67]),[_0x5d738b([0x63,0x72,0x76])]:_0x5d738b([0x50,0x2d,0x32,0x35,0x36]),[_0x5d738b([0x78])]:_0x5d738b([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]),[_0x5d738b([0x79])]:_0x5d738b([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]),[_0x5d738b([0x61,0x6c,0x67])]:_0x5d738b([0x45,0x53,0x32,0x35,0x36])},_0x4edaf5=_0x1fee30[_0x5d738b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d738b([0x67,0x65,0x74])](_0x5d738b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a4793(){let _0x30e909,_0x23a5c7=null,_0x27b182=null;try{if(_0x4edaf5==_0x5d738b([0x47,0x50,0x4c]))return _0x5d738b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30e909=_0x5ddfb3(),!_0x30e909)return _0x5d738b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x30e909[_0x5d738b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x27b182=_0x55572d(_0x30e909[_0x5d738b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30e909[_0x5d738b([0x6a,0x74,0x69])])),await _0x1fc17a()?_0x2997e0()?_0x5011d5()?_0x5d738b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x586dc6()?(_0x30e909[_0x5d738b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d738b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x23a5c7=_0x478905(_0x5d738b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x30e909[_0x5d738b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d738b([0x74,0x72,0x69,0x61,0x6c])&&(_0x23a5c7=_0x478905(_0x5d738b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4dfd5d()):_0x5d738b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d738b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d738b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d738b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5011d5(){const _0x1cb482=[_0x5d738b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d738b([0x74,0x72,0x69,0x61,0x6c])][_0x5d738b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30e909[_0x5d738b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4562cf/0x3e8:0xe10*_0x5502b3;return _0x30e909[_0x5d738b([0x65,0x78,0x70])]<_0x1cb482;}function _0x2997e0(){const _0x4c6d30=_0x30e909[_0x5d738b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4c6d30)return!0x1;if(_0x4c6d30[_0x5d738b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d738b([0x2a])))return!0x0;if(_0x4c6d30[_0x5d738b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d738b([0x54,0x43])))return!0x0;if(_0x4c6d30[_0x5d738b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d738b([0x52,0x54,0x43]))){if(_0x4d3eba())return!0x0;if(_0xf622e2()||_0x323878())return!0x0;}return!0x1;}function _0x586dc6(){const _0x5c7f06=_0x30e909[_0x5d738b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c7f06||0x0==_0x5c7f06[_0x5d738b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xecbbc4}=new URL(window[_0x5d738b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c7f06[_0x5d738b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xecbbc4))return!0x0;const _0x5d8457=_0xecbbc4[_0x5d738b([0x73,0x70,0x6c,0x69,0x74])](_0x5d738b([0x2e]));return _0x5c7f06[_0x5d738b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c65ef=>_0x3c65ef[_0x5d738b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d738b([0x2a])))[_0x5d738b([0x6d,0x61,0x70])](_0x3bd96f=>_0x3bd96f[_0x5d738b([0x73,0x70,0x6c,0x69,0x74])](_0x5d738b([0x2e])))[_0x5d738b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x173cfa=>_0x173cfa[_0x5d738b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d8457[_0x5d738b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d738b([0x6d,0x61,0x70])](_0x22f574=>Array(_0x5d8457[_0x5d738b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22f574[_0x5d738b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d738b([0x66,0x69,0x6c,0x6c])](_0x22f574[0x0]===_0x5d738b([0x2a])?_0x5d738b([0x2a]):'')[_0x5d738b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22f574))[_0x5d738b([0x73,0x6f,0x6d,0x65])](_0x5552c6=>_0x5d8457[_0x5d738b([0x65,0x76,0x65,0x72,0x79])]((_0x243ad0,_0x5d344e)=>_0x5552c6[_0x5d344e]===_0x243ad0||_0x5552c6[_0x5d344e]===_0x5d738b([0x2a])));}function _0x4dfd5d(){return _0x23a5c7&&_0x27b182?new window[(_0x5d738b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22cdbc,_0x1c7a81)=>{_0x23a5c7[_0x5d738b([0x74,0x68,0x65,0x6e])](_0x22cdbc,_0x1c7a81),_0x27b182[_0x5d738b([0x74,0x68,0x65,0x6e])](_0x5cf9fc=>{_0x5cf9fc!=_0x5d738b([0x56,0x61,0x6c,0x69,0x64])&&_0x22cdbc(_0x5cf9fc);},_0x1c7a81);}):_0x23a5c7||_0x27b182||_0x5d738b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55572d(_0x3e7973,_0x1ffadb){return new window[(_0x5d738b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5081e9=>{if(_0x2b6da2())return _0x5081e9(_0x5d738b([0x56,0x61,0x6c,0x69,0x64]));_0x3bafbc(),_0x1fee30[_0x5d738b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d738b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x20ac3d=!0x1;const _0x4945a6=_0x5f1f2a();function _0x3f9510(_0x38e9ce){return!!_0x38e9ce&&(typeof _0x38e9ce===_0x5d738b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38e9ce===_0x5d738b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38e9ce[_0x5d738b([0x74,0x68,0x65,0x6e])]===_0x5d738b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38e9ce[_0x5d738b([0x63,0x61,0x74,0x63,0x68])]===_0x5d738b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f65b0(_0x312e9a){_0x2f2bb8(_0x312e9a)[_0x5d738b([0x74,0x68,0x65,0x6e])](_0x25c257=>{if(!_0x25c257||_0x25c257[_0x5d738b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d738b([0x6f,0x6b]))return _0x5d738b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2aa3e7(_0x4089e9(_0x4945a6+_0x1ffadb))!=_0x25c257[_0x5d738b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d738b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d738b([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d738b([0x74,0x68,0x65,0x6e])](_0x13de1c=>(_0x207be3(),_0x13de1c),()=>{const _0x465ec9=_0x3b9545();return null==_0x465ec9?(_0x207be3(),_0x5d738b([0x56,0x61,0x6c,0x69,0x64])):_0x5d738b(_0x4562cf-_0x465ec9>(0x4f03da6f^_0x3e0501)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d738b([0x74,0x68,0x65,0x6e])](_0x5081e9)[_0x5d738b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5081e9(_0x5d738b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x264cfd=0x6b39b0ef^_0x3e0501;function _0x207be3(){const _0x290d3f=_0x5d738b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2aa3e7(_0x4089e9(_0x3e7973)),_0x22c5e1=_0x5785e9(_0x2aa3e7(window[_0x5d738b([0x4d,0x61,0x74,0x68])][_0x5d738b([0x63,0x65,0x69,0x6c])](_0x4562cf/_0x264cfd)));window[_0x5d738b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d738b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x290d3f,_0x22c5e1);}function _0x3b9545(){const _0x53afca=_0x5d738b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2aa3e7(_0x4089e9(_0x3e7973)),_0x3fbb8e=window[_0x5d738b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d738b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53afca);return _0x3fbb8e?window[_0x5d738b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5785e9(_0x3fbb8e),0x10)*_0x264cfd:null;}function _0x2f2bb8(_0x34b672){return new window[(_0x5d738b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33fcfa,_0x408928)=>{_0x34b672[_0x5d738b([0x74,0x68,0x65,0x6e])](_0x33fcfa,_0x408928),window[_0x5d738b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x408928,0x6b0e8aaf^_0x3e0501);});}}_0x1fee30[_0x5d738b([0x6f,0x6e])](_0x5d738b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f8898,_0xe6a65f)=>{if(_0xe6a65f[0x0]!=_0x3e7973)return _0x5081e9(_0x5d738b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe6a65f[0x1]={..._0xe6a65f[0x1],[_0x5d738b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4945a6};},{[_0x5d738b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d738b([0x68,0x69,0x67,0x68])}),_0x1fee30[_0x5d738b([0x6f,0x6e])](_0x5d738b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x118415=>{_0x3f9510(_0x118415[_0x5d738b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x20ac3d=!0x0,_0x3f65b0(_0x118415[_0x5d738b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d738b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d738b([0x6c,0x6f,0x77])}),_0x221fcd[_0x5d738b([0x74,0x68,0x65,0x6e])](()=>{_0x20ac3d||_0x5081e9(_0x5d738b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b6da2(){return _0x1fee30[_0x5d738b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d738b([0x76,0x69,0x65,0x77])][_0x5d738b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d738b([0x61,0x75,0x74,0x6f]);}function _0x3bafbc(){_0x1fee30[_0x5d738b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d738b([0x76,0x69,0x65,0x77])][_0x5d738b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d738b([0x61,0x75,0x74,0x6f]);}}function _0x478905(_0x1a68e3){const _0xbc7ec2=[new window[(_0x5d738b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3db3cd=>setTimeout(_0x3db3cd,0x6b0660a3^_0x3e0501)),_0x221fcd[_0x5d738b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d738b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xba5470=>{let _0x4cb987=0x0;_0x1fee30[_0x5d738b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d738b([0x6f,0x6e])](_0x5d738b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2e2c8c,_0x536d4c)=>{_0x536d4c[0x0][_0x5d738b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4cb987++,_0x4cb987==(0x6b0f5f97^_0x3e0501)&&(_0xba5470(),_0x2e2c8c[_0x5d738b([0x6f,0x66,0x66])]());});}))];return window[_0x5d738b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d738b([0x72,0x61,0x63,0x65])](_0xbc7ec2)[_0x5d738b([0x74,0x68,0x65,0x6e])](()=>_0x1a68e3);}async function _0x463943(){await _0x221fcd,_0x1fee30[_0x5d738b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d738b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d8439,_0x1fee30[_0x5d738b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d738b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d8439,_0x1fee30[_0x5d738b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d738b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4d3eba(){return _0x1050e0(_0x5d738b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3aa94c(_0x5d738b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5d738b([0x73,0x74,0x61,0x74,0x65])]==_0x5d738b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xf622e2(){return _0x1050e0(_0x5d738b([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 _0x323878(){return _0x1050e0(_0x5d738b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x53cf18(_0x4cf651){const _0x1bb50c=_0x34a742();_0x1fee30[_0x1bb50c]=_0x5d738b([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4cf651,_0x4cf651!=_0x5d738b([0x56,0x61,0x6c,0x69,0x64])&&_0x463943();}function _0x34a742(){const _0x1354eb=window[_0x5d738b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d738b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d738b([0x6e,0x6f,0x77])]())[_0x5d738b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d738b([0x2e]),'');let _0x45e7dd=_0x5d738b([0x67]);for(let _0x5b5211=0x0;_0x5b5211<_0x1354eb[_0x5d738b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b5211+=0x2){let _0x4e0101=window[_0x5d738b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1354eb[_0x5d738b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b5211,_0x5b5211+0x2));_0x4e0101>=_0x421a5a[_0x5d738b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e0101-=_0x421a5a[_0x5d738b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45e7dd+=_0x421a5a[_0x4e0101];}return _0x45e7dd;}function _0x5ddfb3(){const _0x1a2359=_0x4edaf5[_0x5d738b([0x73,0x70,0x6c,0x69,0x74])](_0x5d738b([0x2e]));if(0x3!=_0x1a2359[_0x5d738b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40491e(_0x1a2359[0x1]);function _0x40491e(_0x1c21ab){const _0x5b7a0e=_0xd684b7(_0x1c21ab);return _0x5b7a0e&&_0x4f834b()?_0x5b7a0e:null;function _0x4f834b(){const _0x4aaae4=_0x5b7a0e[_0x5d738b([0x6a,0x74,0x69])],_0xa1a998=window[_0x5d738b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4aaae4[_0x5d738b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4aaae4[_0x5d738b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3491db={..._0x5b7a0e,[_0x5d738b([0x6a,0x74,0x69])]:_0x4aaae4[_0x5d738b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4aaae4[_0x5d738b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3491db[_0x5d738b([0x76,0x63])],_0x4089e9(_0x3491db)==_0xa1a998;}}}async function _0x1fc17a(){let _0x1f3d52=!0x0;try{const _0x5e7a14=_0x4edaf5[_0x5d738b([0x73,0x70,0x6c,0x69,0x74])](_0x5d738b([0x2e])),[_0x146423,_0x597282,_0x291b88]=_0x5e7a14;return _0x597557(_0x146423),await _0xe553de(_0x146423,_0x597282,_0x291b88),_0x1f3d52;}catch{return!0x1;}function _0x597557(_0x35fc7b){const _0x314ad1=_0xd684b7(_0x35fc7b);_0x314ad1&&_0x314ad1[_0x5d738b([0x61,0x6c,0x67])]==_0x5d738b([0x45,0x53,0x32,0x35,0x36])||(_0x1f3d52=!0x1);}async function _0xe553de(_0x19e615,_0x4eba25,_0x76fd37){const _0x509524=window[_0x5d738b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d738b([0x66,0x72,0x6f,0x6d])](_0x27bba1(_0x76fd37),_0x3871b2=>_0x3871b2[_0x5d738b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f000d=new window[(_0x5d738b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d738b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19e615+_0x5d738b([0x2e])+_0x4eba25),_0x3db039=window[_0x5d738b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d738b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3db039)return;const _0x5df2c2=await _0x3db039[_0x5d738b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d738b([0x6a,0x77,0x6b]),_0x27e550,{[_0x5d738b([0x6e,0x61,0x6d,0x65])]:_0x5d738b([0x45,0x43,0x44,0x53,0x41]),[_0x5d738b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d738b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d738b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3db039[_0x5d738b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d738b([0x6e,0x61,0x6d,0x65])]:_0x5d738b([0x45,0x43,0x44,0x53,0x41]),[_0x5d738b([0x68,0x61,0x73,0x68])]:{[_0x5d738b([0x6e,0x61,0x6d,0x65])]:_0x5d738b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5df2c2,_0x509524,_0x2f000d)||(_0x1f3d52=!0x1);}}function _0xd684b7(_0x270e64){return _0x270e64[_0x5d738b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d738b([0x65,0x79]))?JSON[_0x5d738b([0x70,0x61,0x72,0x73,0x65])](_0x27bba1(_0x270e64)):null;}function _0x27bba1(_0x5012ed){return window[_0x5d738b([0x61,0x74,0x6f,0x62])](_0x5012ed[_0x5d738b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d738b([0x2b]))[_0x5d738b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d738b([0x2f])));}function _0x4089e9(_0x5344e6){let _0x3946ff=0x1505;function _0x253f2e(_0x473d07){for(let _0xca05ff=0x0;_0xca05ff<_0x473d07[_0x5d738b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xca05ff++){const _0x1e39bf=_0x473d07[_0x5d738b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xca05ff);_0x3946ff=(_0x3946ff<<0x5)+_0x3946ff+_0x1e39bf,_0x3946ff&=_0x3946ff;}}function _0x597d26(_0x10e980){Array[_0x5d738b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10e980)?_0x10e980[_0x5d738b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x597d26):_0x10e980&&typeof _0x10e980==_0x5d738b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d738b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10e980)[_0x5d738b([0x73,0x6f,0x72,0x74])]()[_0x5d738b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30c6ee,_0x498148])=>{_0x253f2e(_0x30c6ee),_0x597d26(_0x498148);}):_0x253f2e(window[_0x5d738b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10e980));}return _0x597d26(_0x5344e6),_0x3946ff>>>0x0;}function _0x2aa3e7(_0x36e090){return _0x36e090[_0x5d738b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d738b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d738b([0x30]));}function _0x5785e9(_0x3b9bce){return _0x3b9bce[_0x5d738b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d738b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d738b([0x6a,0x6f,0x69,0x6e])]('');}function _0x1050e0(_0x5945e2){return _0x1fee30[_0x5d738b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5d738b([0x68,0x61,0x73])](_0x5945e2);}function _0x3aa94c(_0x5d9afa){return _0x1fee30[_0x5d738b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5d738b([0x67,0x65,0x74])](_0x5d9afa);}function _0x5d8439(){}function _0x5d738b(_0x86adba){return _0x86adba['map'](_0x3cd927=>String['fromCharCode'](_0x3cd927))['join']('');}_0x53cf18(await _0x3a4793());}(this);}set['adapter'](_0xcf9bfd){if(this['_adapter'])throw new _0x2625a8('track-changes-adapter-already-set',this);this['_adapter']=_0xcf9bfd;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x270ec5=!0x1,toJSON:_0x4ceef3=!0x1}={}){const _0x3a0f0f=[];for(const _0x1f0a41 of this['_suggestions']['values']())_0x270ec5&&!_0x1f0a41['isInContent']||_0x3a0f0f['push'](_0x1f0a41);return _0x4ceef3?_0x3a0f0f['map'](_0x883387=>_0x883387['toJSON']()):_0x3a0f0f;}['getSuggestion'](_0x272381){const _0xd80134=this['_suggestions']['get'](_0x272381);if(!_0xd80134)throw new _0x2625a8('track-changes-suggestion-not-found',this);return _0xd80134;}['hasSuggestion'](_0xfaee85){return this['_suggestions']['has'](_0xfaee85);}['addSuggestionData'](_0x55ad25){const {authorId:_0x163d7c,id:_0x8f2d11,originalSuggestionId:_0x3b828a,attributes:_0x2db490}=_0x55ad25,[_0x386f9b,_0x384c6e]=_0x55ad25['type']['split'](':'),_0x22e907=this['_suggestions']['get'](_0x8f2d11)||this['_createSuggestion'](_0x386f9b,_0x384c6e,_0x8f2d11,_0x163d7c,_0x2db490,_0x3b828a);if(this['_addThreadToSuggestion'](_0x22e907),this['_checkSuggestionCorrectness'](_0x22e907,_0x386f9b,_0x384c6e||null,_0x163d7c),_0x22e907['createdAt']=_0x55ad25['createdAt'],_0x22e907['_isDataLoaded']=!0x0,_0x2db490&&_0x2db490['@external']){const _0x3a33d8=_0x2db490['@external'],_0x33b0a8=this['_getExternalAuthor'](_0x3a33d8['authorName']);_0x22e907['authoredAt']=_0x3a33d8['createdAt'],_0x22e907['author']=_0x33b0a8,_0x22e907['isExternal']=!0x0;}else _0x22e907['authoredAt']=_0x55ad25['createdAt'];switch(_0x55ad25['data']&&(_0x22e907['data']=_0x55ad25['data']),_0x55ad25['attributes']&&(_0x22e907['attributes']=_0x55ad25['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x22e907['_saved']=!0x0),this['_suggestionState']['get'](_0x22e907)){case'notReady':this['_suggestionState']['set'](_0x22e907,'dataReady');break;case'markerReady':_0x22e907['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x22e907])),this['_refreshSuggestionsChain'](new Set([_0x22e907])),this['_suggestionState']['set'](_0x22e907,'ready'),this['fire']('suggestionLoaded',_0x22e907)):this['_suggestionState']['set'](_0x22e907,'removed');}return _0x22e907;}['acceptSuggestion'](_0x601c63){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xbfda61 of _0x601c63['getAllAdjacentSuggestions']())_0xbfda61['accept']();});});}['discardSuggestion'](_0xce5065){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1d2eff of _0xce5065['getAllAdjacentSuggestions']())_0x1d2eff['discard']();});});}['enableCommand'](_0x354a12,_0x60b2db){const _0x379fb7=this['editor']['commands']['get'](_0x354a12);if(!_0x379fb7)throw new _0x2625a8('track-changes-command-not-found',this,{'commandName':_0x354a12});if(this['_enabledCommands']['has'](_0x379fb7))throw new _0x2625a8('track-changes-enable-command-twice',this,{'commandName':_0x354a12});this['_enabledCommands']['add'](_0x379fb7),_0x60b2db&&_0x379fb7['on']('execute',(_0x5e9551,_0x24321c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x24321c['length']>0x0&&_0x24321c[_0x24321c['length']-0x1]&&_0x24321c[_0x24321c['length']-0x1]['forceDefaultExecution']?_0x24321c['pop']():(_0x5e9551['return']=_0x60b2db((..._0x4c3cce)=>_0x379fb7['execute'](..._0x4c3cce,{'forceDefaultExecution':!0x0}),..._0x24321c),_0x5e9551['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5a2e29){let _0xc59fc0,_0x5868c5;const _0x44602b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xc59fc0=_0x5a2e29();}catch(_0x3dfc6c){_0x5868c5=_0x3dfc6c;}return _0x44602b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5868c5&&_0x2625a8['rethrowUnexpectedError'](_0x5868c5,this),_0xc59fc0;}['markInsertion'](_0x4b492e,_0x5af9af=null,_0xd22ee2={}){if(_0x4b492e['isCollapsed'])return null;const _0x56d5d3=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xd22ee2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5340df,meta:_0x17ad08}of this['_findSuggestions'](_0x4b492e,'insertion'))if(_0x17ad08['isOwn']){if(!_0x17ad08['isNextTo']){if(_0x17ad08['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ie(_0x5340df,_0xd22ee2))continue;return _0x5340df;}if(ie(_0x5340df,_0xd22ee2))return _0x5340df;this['_breakSuggestionMarker'](_0x5340df,_0x4b492e['start'],_0x4b492e['end']);break;}if(_0x5af9af==_0x5340df['subType']&&ie(_0x5340df,_0xd22ee2)){const _0x30613a=_0x5340df['getFirstRange']();return _0x30613a['start']['isEqual'](_0x4b492e['end'])?this['_setSuggestionRange'](_0x5340df,this['_model']['createRange'](_0x4b492e['start'],_0x30613a['end'])):this['_setSuggestionRange'](_0x5340df,this['_model']['createRange'](_0x30613a['start'],_0x4b492e['end'])),_0x5340df;}}const _0x44235d=_0x5f1f2a(),_0x3be507=_0x56d5d3['id'],_0x5c4978=_0x5af9af?'insertion:'+_0x5af9af:'insertion',_0x3285d2=this['_setSuggestionData']({'id':_0x44235d,'type':_0x5c4978,'createdAt':new Date(),'authorId':_0x3be507,'attributes':_0xd22ee2});return this['_addSuggestionMarker'](_0x5c4978,_0x44235d,_0x3be507,_0x4b492e),_0x3285d2;}['markMultiRangeInsertion'](_0x27743f,_0x29c7e7='multi',_0x4c2400={}){const _0x183774=this['editor']['plugins']['get']('Users')['me'],_0x2b2056=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x29c7e7,'join');this['_trackingSessionId']&&(_0x4c2400['trackingSessionId']=this['_trackingSessionId']);for(const _0x29c9be of this['getSuggestions']())if(_0x29c9be['author']['id']==_0x183774['id']&&'insertion'==_0x29c9be['type']&&_0x29c9be['subType']==_0x29c7e7&&ie(_0x29c9be,_0x4c2400)&&(_0x2b2056(_0x29c9be['getRanges'](),_0x27743f)||_0x2b2056(_0x27743f,_0x29c9be['getRanges']()))){for(const _0x4051f6 of _0x27743f)_0x29c9be['addRange'](_0x4051f6);return _0x29c9be;}for(const {suggestion:_0x427fe6,meta:_0x27b805}of this['_findSuggestions'](_0x27743f,'insertion')){if(!_0x27b805['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x27b805['containsRangeInObject'])continue;if(!ie(_0x427fe6,_0x4c2400))continue;let _0xfc3a6=!0x0;for(const _0x13d428 of _0x427fe6['getRanges']())for(const _0x34707f of _0x27743f)if(!_0x13d428['containsRange'](_0x34707f)){_0xfc3a6=!0x1;break;}if(_0xfc3a6)return _0x427fe6;}const _0x1f5573=_0x5f1f2a(),_0x363c16=_0x183774['id'],_0x4ba4e3='insertion:'+_0x29c7e7,_0x584186=this['_setSuggestionData']({'id':_0x1f5573,'type':_0x4ba4e3,'createdAt':new Date(),'authorId':_0x363c16,'attributes':_0x4c2400});for(const _0x3445c9 of _0x27743f)this['_addSuggestionMarker'](_0x4ba4e3,_0x1f5573,_0x363c16,_0x3445c9,R['getMultiRangeId']());return _0x584186;}['markInlineFormat'](_0x51c108,_0x18f5df,_0x4ff29e=null,_0x3e8a50={}){if(_0x4ff29e=_0x4ff29e||Wt(_0x18f5df),_0x51c108['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3e8a50['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5c9769=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4ff29e,'accept');return this['forceDefaultExecution'](()=>_0x5c9769([_0x51c108],_0x18f5df,_0x3e8a50)),null;}const _0x34db95=this['editor']['plugins']['get']('Users')['me'],_0x8d5c25=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xc89bd7,meta:_0x48cd38}of this['_findSuggestions'](_0x51c108,'insertion'))_0x48cd38['isOwn']&&!_0x48cd38['isInsideObject']&&_0x8d5c25['push'](..._0xc89bd7['getRanges']());}const _0x561392=function(_0x1abcdc,_0x17d899){const _0x4dbb1d=[];for(const _0x3ce807 of _0x17d899){const _0x4b1dfc=_0x1abcdc['getIntersection'](_0x3ce807);_0x4b1dfc&&_0x4dbb1d['push'](_0x4b1dfc);}return _0x4dbb1d;}(_0x51c108,_0x8d5c25),_0x1b3316=function(_0x357a2f,_0x170d75){const _0x199bc3=[_0x357a2f];for(const _0x44e536 of _0x170d75){let _0x2242d5=0x0;for(;_0x2242d5<_0x199bc3['length'];){const _0x17bb12=_0x199bc3[_0x2242d5]['getDifference'](_0x44e536);_0x199bc3['splice'](_0x2242d5,0x1,..._0x17bb12),_0x2242d5+=_0x17bb12['length'];}}return _0x199bc3;}(_0x51c108,_0x8d5c25);_0x561392['length']&&this['_model']['change'](()=>{for(const _0xd28f63 of _0x561392){const _0x4c4b58=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4ff29e,'accept');this['forceDefaultExecution'](()=>_0x4c4b58([_0xd28f63],_0x18f5df,_0x3e8a50));}});for(const _0x3c8da9 of _0x1b3316){let _0x4d373e=null,_0x500be7=_0x3c8da9['start'],_0x4e34bc=_0x3c8da9['end'];for(const {suggestion:_0x38000e,meta:_0x4b4c39}of this['_findSuggestions'](_0x3c8da9,'formatInline')){if(!_0x4b4c39['isOwn'])continue;if(_0x38000e['subType']!=_0x4ff29e)continue;if(!ie(_0x38000e,_0x3e8a50))continue;const _0x2aaa13=_0x38000e['getFirstRange']();if(_0x2aaa13['containsRange'](_0x3c8da9,!0x0))return null;_0x500be7=_0x500be7['isBefore'](_0x2aaa13['start'])?_0x500be7:_0x2aaa13['start'],_0x4e34bc=_0x4e34bc['isAfter'](_0x2aaa13['end'])?_0x4e34bc:_0x2aaa13['end'],_0x4d373e?_0x2aaa13['start']['isBefore'](_0x4d373e['getFirstRange']()['start'])?(_0x4d373e['removeMarkers'](),_0x4d373e=_0x38000e):_0x38000e['removeMarkers']():_0x4d373e=_0x38000e;}const _0x474fa5=this['_model']['createRange'](_0x500be7,_0x4e34bc);if(_0x4d373e)this['_setSuggestionRange'](_0x4d373e,_0x474fa5);else{const _0x1588c4=_0x5f1f2a(),_0x408fde=_0x34db95['id'];this['_setSuggestionData']({'id':_0x1588c4,'type':'formatInline:'+_0x4ff29e,'data':_0x18f5df,'createdAt':new Date(),'authorId':_0x408fde,'attributes':_0x3e8a50}),this['_addSuggestionMarker']('formatInline:'+_0x4ff29e,_0x1588c4,_0x408fde,_0x474fa5);}}return null;}['markBlockFormat'](_0x46b41d,_0x19d470,_0x51a629=[],_0x2cf9d9=null,_0x278925={}){_0x19d470['formatGroupId']||(_0x19d470['formatGroupId']=_0x19d470['commandName']),_0x19d470['multipleBlocks']=_0x46b41d['is']('range'),_0x2cf9d9=_0x2cf9d9||Wt(_0x19d470);const _0x336caa=_0x51a629['map'](_0x400a73=>Zt(_0x400a73,this['_model'])),_0x4696f5=_0x46b41d['is']('range')?_0x46b41d:Zt(_0x46b41d,this['_model']);if(this['_trackingSessionId']&&(_0x278925['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xdc548f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2cf9d9,'accept');return this['forceDefaultExecution'](()=>_0xdc548f([_0x4696f5],_0x19d470,_0x278925)),null;}_0x336caa['push'](_0x4696f5);let _0x2ad78d=!0x0;for(const _0x4d8750 of _0x336caa)if(!this['_rangeIsInLocalUserInsertion'](_0x4d8750)){_0x2ad78d=!0x1;break;}if(_0x2ad78d&&'always'!==this['_trackFormatChanges']){const _0x42b1b2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2cf9d9,'accept');return this['forceDefaultExecution'](()=>_0x42b1b2([_0x4696f5],_0x19d470,_0x278925)),null;}let _0x5f27fa=null,_0x1af0ee=_0x4696f5['start'],_0x5ba1fb=_0x4696f5['end'];for(const {suggestion:_0x3ad1ae,meta:_0x31f26c}of this['_findSuggestions'](_0x4696f5,'formatBlock')){if(!_0x31f26c['isOwn'])continue;if(_0x31f26c['isNextTo']||_0x31f26c['containsRangeInObject']||_0x31f26c['isInsideObject'])continue;if(_0x3ad1ae['data']['formatGroupId']!=_0x19d470['formatGroupId'])continue;if(!ie(_0x3ad1ae,_0x278925))continue;const _0x32c943=_0x3ad1ae['getFirstRange']();if(_0x3ad1ae['subType']==_0x2cf9d9){if(_0x32c943['containsRange'](_0x4696f5,!0x0))return null;_0x1af0ee=_0x1af0ee['isBefore'](_0x32c943['start'])?_0x1af0ee:_0x32c943['start'],_0x5ba1fb=_0x5ba1fb['isAfter'](_0x32c943['end'])?_0x5ba1fb:_0x32c943['end'],_0x5f27fa?_0x32c943['start']['isBefore'](_0x5f27fa['getFirstRange']()['start'])?(_0x5f27fa['removeMarkers'](),_0x5f27fa=_0x3ad1ae):_0x3ad1ae['removeMarkers']():_0x5f27fa=_0x3ad1ae;}else{const _0x30e9b7=_0x4696f5['getIntersection'](_0x32c943);this['_cutOutSuggestionMarker'](_0x3ad1ae,_0x30e9b7);}}const _0x4d62c9=this['editor']['plugins']['get']('Users')['me'],_0x17352e=_0x5f1f2a(),_0x486b08=_0x4d62c9['id'];if(_0x5f27fa)return this['_setSuggestionRange'](_0x5f27fa,this['_model']['createRange'](_0x1af0ee,_0x5ba1fb)),_0x5f27fa;{const _0x58d570=this['_setSuggestionData']({'id':_0x17352e,'type':'formatBlock:'+_0x2cf9d9,'data':_0x19d470,'createdAt':new Date(),'authorId':_0x486b08,'attributes':_0x278925});return this['_addSuggestionMarker']('formatBlock:'+_0x2cf9d9,_0x17352e,_0x486b08,this['_model']['createRange'](_0x1af0ee,_0x5ba1fb)),_0x58d570;}}['markMultiRangeBlockFormat'](_0xc99d37,_0x5b20ec,_0xe11ac0=[],_0x1d75b5=null,_0x11b1bc={}){_0x5b20ec['formatGroupId']||(_0x5b20ec['formatGroupId']=_0x5b20ec['commandName']);const _0x2008a7=_0xc99d37[0x0];_0x5b20ec['multipleBlocks']=_0x2008a7['is']('range'),_0x1d75b5=_0x1d75b5||Wt(_0x5b20ec);const _0x1e40d5=_0xe11ac0['map'](_0x40b31f=>Zt(_0x40b31f,this['_model'])),_0xfa3c52=_0x2008a7['is']('range')?_0xc99d37:_0xc99d37['map'](_0x2f0e2f=>Zt(_0x2f0e2f,this['_model']));if(this['_trackingSessionId']&&(_0x11b1bc['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3569e1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d75b5,'accept');return this['forceDefaultExecution'](()=>_0x3569e1(_0xfa3c52,_0x5b20ec,_0x11b1bc)),null;}_0x1e40d5['push'](..._0xfa3c52);let _0x3f86fe=!0x0;for(const _0x2a5940 of _0x1e40d5)if(!this['_rangeIsInLocalUserInsertion'](_0x2a5940)){_0x3f86fe=!0x1;break;}if(_0x3f86fe&&'always'!==this['_trackFormatChanges']){const _0x49157b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d75b5,'accept');return this['forceDefaultExecution'](()=>_0x49157b(_0xfa3c52,_0x5b20ec,_0x11b1bc)),null;}const _0x2bdd82=this['editor']['plugins']['get']('Users')['me'];for(const _0x283f27 of this['getSuggestions']()){const _0x81b72f=_0x283f27['data'];if(_0x283f27['author']['id']!=_0x2bdd82['id'])continue;if('formatBlock'!=_0x283f27['type']||_0x81b72f['formatGroupId']!=_0x5b20ec['formatGroupId'])continue;if(!ie(_0x283f27,_0x11b1bc))continue;const _0x209cb7=_0x283f27['subType']==_0x1d75b5;for(let _0x3fd453=0x0;_0x3fd453<_0xfa3c52['length'];_0x3fd453++){const _0x3cb456=_0xfa3c52[_0x3fd453];for(const _0x47b50d of _0x283f27['getMarkers']()){const _0x55824d=_0x47b50d['getRange']();if(_0x3cb456['isEqual'](_0x55824d)){_0x209cb7?(_0xfa3c52['splice'](_0x3fd453,0x1),_0x3fd453--):_0x283f27['removeMarker'](_0x47b50d['name']);break;}}}}if(0x0==_0xfa3c52['length'])return null;const _0x1dfba2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d75b5,'join');for(const _0xac5828 of this['getSuggestions']()){const _0x5bd82a=_0xac5828['data'];if(_0xac5828['author']['id']==_0x2bdd82['id']&&('formatBlock'==_0xac5828['type']&&_0x5bd82a['formatGroupId']==_0x5b20ec['formatGroupId']&&_0xac5828['subType']==_0x1d75b5&&ie(_0xac5828,_0x11b1bc)&&(_0x1dfba2(_0xac5828['getRanges'](),_0xfa3c52)||_0x1dfba2(_0xfa3c52,_0xac5828['getRanges']())))){for(const _0x3bfd20 of _0xfa3c52)_0xac5828['addRange'](_0x3bfd20);return _0xac5828;}}const _0x1613a5=_0x5f1f2a(),_0x237585=_0x2bdd82['id'],_0x1aa7c0='formatBlock:'+_0x1d75b5,_0x43753f=this['_setSuggestionData']({'id':_0x1613a5,'type':_0x1aa7c0,'data':_0x5b20ec,'createdAt':new Date(),'authorId':_0x237585,'attributes':_0x11b1bc});for(const _0x299f73 of _0xfa3c52)this['_addSuggestionMarker'](_0x1aa7c0,_0x1613a5,_0x237585,_0x299f73,R['getMultiRangeId']());return _0x43753f;}['markDeletion'](_0x1e1628,_0x3901b4=null,_0x30856a={}){if(_0x1e1628['isCollapsed'])return null;const _0x555bb5=this['editor']['plugins']['get']('Users')['me'],_0x24acd1=new _0x5ac46d(_0x1e1628['start'],_0x1e1628['end']);this['_trackingSessionId']&&(_0x30856a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5799ce,meta:_0x241a97}of this['_findSuggestions'](_0x24acd1,'insertion'))if(_0x241a97['isOwn']&&!_0x241a97['isNextTo']){if(_0x5799ce['isMultiRange']){const _0x190dc6=_0x5799ce['getRanges']()['filter'](_0x145d5b=>'$graveyard'!=_0x145d5b['root']['rootName']);_0x190dc6['every'](_0x2a2557=>_0x24acd1['containsRange'](_0x2a2557,!0x0))&&_0x5799ce['discard']();if(_0x190dc6['some'](_0x3d93a1=>_0x3d93a1['containsRange'](_0x24acd1,!0x0))){const _0x20b5f5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3901b4,'accept');return this['forceDefaultExecution'](()=>_0x20b5f5([_0x24acd1],null,_0x30856a)),null;}}else{const _0x2b3b0c=_0x24acd1['getIntersection'](_0x5799ce['getFirstRange']());null!==_0x2b3b0c&&_0x5799ce['_onDiscard']([_0x2b3b0c],null,_0x30856a);}}if(_0x24acd1['detach'](),_0x24acd1['isCollapsed']||'$graveyard'==_0x24acd1['root']['rootName'])return null;let _0x573169=null,_0x4a7d3f=_0x24acd1['start'],_0x46f0a1=_0x24acd1['end'];const _0x706695=this['_findSuggestions'](_0x24acd1,'deletion');for(const {suggestion:_0x3efd32,meta:_0x2141b9}of _0x706695){const _0x502b6d=this['_model']['createRange'](_0x4a7d3f,_0x46f0a1);if(_0x2141b9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2141b9['containsRangeInObject']&&!_0x2141b9['isInsideObject'])){if(_0x3efd32['isMultiRange']){if(!ie(_0x3efd32,_0x30856a))continue;let _0x2f7388=!0x0;for(const _0x25db68 of _0x3efd32['getRanges']()){if(_0x25db68['containsRange'](_0x502b6d,!0x0))return _0x3efd32;_0x502b6d['containsRange'](_0x25db68)||(_0x2f7388=!0x1);}_0x2f7388&&_0x3efd32['discard']();}else{const _0x468a4b=_0x3efd32['getFirstRange']();if(_0x468a4b['containsRange'](_0x502b6d,!0x0))return _0x3efd32;if(!ie(_0x3efd32,_0x30856a)){_0x502b6d['containsRange'](_0x468a4b)?_0x3efd32['removeMarkers']():_0x468a4b['containsPosition'](_0x4a7d3f)?_0x4a7d3f=_0x468a4b['end']:_0x468a4b['containsPosition'](_0x46f0a1)&&(_0x46f0a1=_0x468a4b['start']);continue;}_0x4a7d3f=_0x4a7d3f['isBefore'](_0x468a4b['start'])?_0x4a7d3f:_0x468a4b['start'],_0x46f0a1=_0x46f0a1['isAfter'](_0x468a4b['end'])?_0x46f0a1:_0x468a4b['end'],_0x30856a=Object['assign']({},_0x3efd32['attributes']),_0x573169?_0x468a4b['start']['isBefore'](_0x573169['getFirstRange']()['start'])?(_0x573169['removeMarkers'](),_0x573169=_0x3efd32):_0x3efd32['removeMarkers']():_0x573169=_0x3efd32;}}}if(_0x573169)return this['_setSuggestionRange'](_0x573169,this['_model']['createRange'](_0x4a7d3f,_0x46f0a1)),_0x573169;{const _0x53b153=_0x5f1f2a(),_0x360397=this['_model']['createRange'](_0x4a7d3f,_0x46f0a1),_0x14304b=_0x555bb5['id'],_0x2c22c6=_0x3901b4?'deletion:'+_0x3901b4:'deletion',_0xf7673a=this['_setSuggestionData']({'id':_0x53b153,'type':_0x2c22c6,'createdAt':new Date(),'authorId':_0x14304b,'attributes':_0x30856a});return this['_addSuggestionMarker'](_0x2c22c6,_0x53b153,_0x14304b,_0x360397),_0xf7673a;}}['markMultiRangeDeletion'](_0x391d7d,_0xbd6699='multi',_0x1b7bf1={}){const _0x410908=this['editor']['plugins']['get']('Users')['me'],_0x5af2c9=_0x391d7d['map'](_0xf65493=>new _0x5ac46d(_0xf65493['start'],_0xf65493['end'])),_0x28262f=new Set();this['_trackingSessionId']&&(_0x1b7bf1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x500972,meta:_0x2f0396}of this['_findSuggestions'](_0x5af2c9,'insertion'))_0x2f0396['isOwn']&&!_0x2f0396['isNextTo']&&_0x28262f['add'](_0x500972);for(const _0x247e38 of _0x28262f)if(_0x247e38['isMultiRange']){const _0x48f0bd=_0x247e38['getRanges']();(!_0x247e38['attributes']||!_0x247e38['attributes']['skipNestingCheck'])&&(_0x48f0bd['every'](_0x3502cb=>_0x5af2c9['some'](_0xe2ce35=>_0xe2ce35['containsRange'](_0x3502cb,!0x0)))&&_0x247e38['discard']());if(_0x5af2c9['every'](_0xf8be38=>_0x48f0bd['some'](_0x4cfb1e=>_0x4cfb1e['containsRange'](_0xf8be38,!0x0)))){const _0xcd2acd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xbd6699,'accept');return this['forceDefaultExecution'](()=>_0xcd2acd(_0x391d7d,null,_0x1b7bf1)),null;}}else{const _0x4370cc=_0x247e38['getFirstRange']();_0x5af2c9['some'](_0x3e5ee2=>_0x3e5ee2['containsRange'](_0x4370cc,!0x0))&&_0x247e38['discard']();if(_0x5af2c9['every'](_0x516685=>_0x4370cc['containsRange'](_0x516685,!0x0))){const _0x494bd3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xbd6699,'accept');return this['forceDefaultExecution'](()=>_0x494bd3(_0x5af2c9,null,_0x1b7bf1)),null;}}const _0x4d4dab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xbd6699,'join');let _0x303bab=null;for(const _0x1aa36a of this['getSuggestions']())if(_0x1aa36a['author']['id']==_0x410908['id']&&_0x1aa36a['isInContent']&&'deletion'==_0x1aa36a['type']&&_0x1aa36a['subType']==_0xbd6699&&ie(_0x1aa36a,_0x1b7bf1)&&(_0x4d4dab(_0x1aa36a['getRanges'](),_0x5af2c9)||_0x4d4dab(_0x5af2c9,_0x1aa36a['getRanges']()))){if(_0x303bab){if(_0x1aa36a['commentThread']&&_0x1aa36a['commentThread']['length'])continue;for(const _0x18463e of _0x1aa36a['getRanges']())_0x303bab['isIntersectingWithRange'](_0x18463e)||_0x303bab['addRange'](_0x18463e);_0x1aa36a['removeMarkers']();}else{_0x303bab=_0x1aa36a;for(const _0x267e2d of _0x5af2c9)_0x1aa36a['isIntersectingWithRange'](_0x267e2d)||_0x1aa36a['addRange'](_0x267e2d);}}if(_0x303bab)return _0x303bab;_0x28262f['clear']();for(const {suggestion:_0x41f8c4,meta:_0x261411}of this['_findSuggestions'](_0x5af2c9,'deletion'))_0x261411['isOwn']&&(this['_mergeNestedSuggestions']||!_0x261411['containsRangeInObject']&&!_0x261411['isInsideObject'])&&ie(_0x41f8c4,_0x1b7bf1)&&_0x28262f['add'](_0x41f8c4);for(const _0x20122c of _0x28262f){const _0x27a309=_0x20122c['getRanges']();if(!_0x1b7bf1||!_0x1b7bf1['skipNestingCheck']){if(_0x5af2c9['every'](_0x3496b6=>_0x27a309['some'](_0x4d5788=>_0x4d5788['containsRange'](_0x3496b6,!0x0))))return _0x20122c;}(!_0x20122c['attributes']||!_0x20122c['attributes']['skipNestingCheck'])&&(_0x27a309['every'](_0x5acf4a=>_0x5af2c9['some'](_0x5973e0=>_0x5973e0['containsRange'](_0x5acf4a,!0x0)))&&_0x20122c['discard']());}const _0x4f14a6=_0x5f1f2a(),_0x3ba142=_0x410908['id'],_0x1a7fa6='deletion:'+_0xbd6699,_0x3ed399=this['_setSuggestionData']({'id':_0x4f14a6,'type':_0x1a7fa6,'createdAt':new Date(),'authorId':_0x3ba142,'attributes':_0x1b7bf1});for(const _0x3fa769 of _0x5af2c9)_0x3fa769['detach'](),_0x3fa769['isCollapsed']||'$graveyard'==_0x3fa769['root']['rootName']||this['_addSuggestionMarker'](_0x1a7fa6,_0x4f14a6,_0x3ba142,_0x3fa769,R['getMultiRangeId']());return _0x3ed399;}['markAttributeChange'](_0x2d1e53,_0x3ee494,_0x4bf948,_0x30ca2d,_0x181731){if(_0x2d1e53['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x373b2a=this['editor']['plugins']['get']('Users')['me']['id'],_0xdaca72=Array['from'](this['_suggestions']['values']())['filter'](_0x18160e=>'attribute'==_0x18160e['type']&&_0x18160e['data']['key']==_0x3ee494&&_0x18160e['isIntersectingWithRange'](_0x2d1e53));if(this['_trackingSessionId']&&(_0x181731['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1b8cec=this['_findSuggestions'](_0x2d1e53,'insertion')['filter'](({meta:_0x98eee3})=>_0x98eee3['isOwn']&&!_0x98eee3['isInsideObject']&&!_0x98eee3['isNextTo'])['map'](({suggestion:_0x4f767b})=>_0x4f767b);_0xdaca72['unshift'](..._0x1b8cec);}const _0x5866e7=new Map([[_0x2d1e53,_0x4bf948]]);for(const _0xb5c70f of _0xdaca72){const _0xb5a3ed='attribute'==_0xb5c70f['type']?_0xb5c70f['data']['oldValue']:void 0x0,_0x579108=_0xb5c70f['getFirstRange'](),_0x46645d=Array['from'](_0x5866e7['keys']())['find'](_0x35d6f5=>_0x35d6f5['isIntersecting'](_0x579108));if(!_0x46645d)continue;const _0x3975b8=_0x46645d['getDifference'](_0x579108);this['_isBlockAttribute'](_0x3ee494)&&'insertion'==_0xb5c70f['type']&&0x0!=_0x3975b8['length']||(_0x5866e7['delete'](_0x46645d),_0x3975b8['forEach'](_0x403737=>{_0x5866e7['set'](_0x403737,_0x4bf948);}),'insertion'!=_0xb5c70f['type']&&_0xb5a3ed!=_0x30ca2d&&_0x5866e7['set'](_0x46645d['getIntersection'](_0x579108),_0xb5a3ed));}const _0x376432=[];for(const [_0x45ef0c,_0x48e369]of _0x5866e7){const _0x34ee24=_0x5f1f2a(),_0x5934a4={'key':_0x3ee494,'oldValue':_0x48e369,'newValue':_0x30ca2d};_0x3ee494['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':_0x3ee494});const _0x15aea9=('attribute:'+(_0x3ee494+'|'+Wt({'newValue':_0x30ca2d})))['substring'](0x0,0x3c),_0x34c6a8=this['_setSuggestionData']({'id':_0x34ee24,'type':_0x15aea9,'data':_0x5934a4,'createdAt':new Date(),'authorId':_0x373b2a,'attributes':_0x181731});_0x376432['push'](_0x34c6a8),this['_addSuggestionMarker'](_0x15aea9,_0x34ee24,_0x373b2a,_0x45ef0c);}return _0x376432;}['enableDefaultAttributesIntegration'](_0x1cedaf){this['enableCommand'](_0x1cedaf,(_0x26f0be,..._0x2294c3)=>{this['recordAttributeChanges'](()=>{_0x26f0be(..._0x2294c3);});});}['registerBlockAttribute'](_0x289a01){this['_blockAttributeKeys']['add'](_0x289a01);}['registerInlineAttribute'](_0x18e8b9){this['_inlineAttributeKeys']['add'](_0x18e8b9);}['startTrackingSession'](_0x403ae9){return this['_trackingSessionId']=void 0x0!==_0x403ae9?_0x403ae9:_0x5f1f2a(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2872c6){return'attribute'==_0x2872c6['type']?se(_0x2872c6['subType']):null;}['_applyOperationsAsSuggestions'](_0x4f462a){if(0x0==_0x4f462a['length'])return;const _0x4f09e0=this['editor'],_0xda6983=_0x4f09e0['plugins']['get'](_0x3cca4d);let _0x338f66=!0x0;for(const _0x4e90e1 in _0x4f462a[0x0]){const _0x1971a7=_0x4f462a[0x0][_0x4e90e1];if((_0x1971a7 instanceof _0x4c5941||_0x1971a7 instanceof _0x1b4199)&&_0x1971a7['root']['is']('documentFragment')){_0x338f66=!0x1;break;}}_0x4f09e0['model']['change'](_0x3c8fd2=>{const _0x258eaf=new Set();for(const _0x17ff3d of _0x4f462a)if(_0x17ff3d['baseVersion']=_0x338f66?_0x4f09e0['model']['document']['version']:null,_0x17ff3d['isDocumentOperation']=_0x338f66,_0xda6983['isMarkedRemoveOperation'](_0x17ff3d)){const _0x3e4cd7=Xt(_0x17ff3d['newRange'],_0x4f09e0['model']);if(_0x338f66)this['markDeletion'](_0x3e4cd7);else{const _0x44dee9='suggestion:deletion:id:authorId:'+_0x5f1f2a();_0x3e4cd7['root']['markers']['set'](_0x44dee9,_0x3e4cd7);}}else switch(_0x17ff3d['type']){case'rename':{const _0x30b669=_0x17ff3d['oldName'],_0x2ee3ba=_0x17ff3d['newName'];if(_0x30b669==_0x2ee3ba)break;_0x3c8fd2['batch']['addOperation'](_0x17ff3d),_0x4f09e0['model']['applyOperation'](_0x17ff3d);const _0x5707ce='$elementName',_0x172eef=_0x17ff3d['position'],_0x4d9779=_0x4f09e0['model']['createRange'](_0x172eef,_0x4f09e0['model']['createPositionAt'](_0x172eef['nodeAfter'],'end'));if(_0x338f66)this['markAttributeChange'](_0x4d9779,_0x5707ce,_0x30b669,_0x2ee3ba,{'groupId':_0x5f1f2a()});else{const _0x107908='suggestion:attribute:'+_0x5707ce+':id:authorId:'+_0x5f1f2a();_0x4d9779['root']['markers']['set'](_0x107908,_0x4d9779);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x53060d=_0x17ff3d['oldValue'],_0x576a33=_0x17ff3d['newValue'];if(_0x53060d==_0x576a33)break;_0x3c8fd2['batch']['addOperation'](_0x17ff3d),_0x4f09e0['model']['applyOperation'](_0x17ff3d);const _0x581e69=_0x17ff3d['key'];if(!this['_isRegisteredAttribute'](_0x581e69))break;const _0xf37545=Xt(_0x17ff3d['range'],_0x4f09e0['model']);if(_0x338f66)this['markAttributeChange'](_0xf37545,_0x581e69,_0x53060d,_0x576a33,{'groupId':_0x5f1f2a()});else{const _0x32774a='suggestion:attribute:'+_0x581e69+':id:authorId:'+_0x5f1f2a();_0xf37545['root']['markers']['set'](_0x32774a,_0xf37545);}break;}case'insert':{_0x3c8fd2['batch']['addOperation'](_0x17ff3d),_0x4f09e0['model']['applyOperation'](_0x17ff3d);const _0x1d2712=_0x17ff3d['position'],_0x92e7ef=_0x17ff3d['howMany'],_0x2fb72e=Xt(_0x4f09e0['model']['createRange'](_0x1d2712,_0x1d2712['getShiftedBy'](_0x92e7ef)),_0x4f09e0['model']);if(_0x338f66)this['markInsertion'](_0x2fb72e);else{const _0x504023='suggestion:insertion:id:authorId:'+_0x5f1f2a();_0x2fb72e['root']['markers']['set'](_0x504023,_0x2fb72e);}break;}case'split':{_0x3c8fd2['batch']['addOperation'](_0x17ff3d),_0x4f09e0['model']['applyOperation'](_0x17ff3d);const _0x391e17=_0x17ff3d['splitPosition'],_0x122343=_0x17ff3d['moveTargetPosition'],_0x216c08=_0x4f09e0['model']['createRange'](_0x391e17,_0x122343);if(_0x338f66)this['markInsertion'](_0x4f09e0['model']['createRange'](_0x391e17,_0x122343));else{const _0x1d4b4f='suggestion:insertion:id:authorId:'+_0x5f1f2a();_0x216c08['root']['markers']['set'](_0x1d4b4f,_0x216c08);}break;}case'move':if(_0x3c8fd2['batch']['addOperation'](_0x17ff3d),_0x4f09e0['model']['applyOperation'](_0x17ff3d),!_0x338f66){const _0x363908=_0x17ff3d['getMovedRangeStart'](),_0xf3d536=_0x17ff3d['howMany'];for(let _0x5d9750=0x0;_0x5d9750<_0xf3d536;_0x5d9750++){const _0x38ce50=_0x363908['getShiftedBy'](_0x5d9750)['nodeAfter'];_0x258eaf['add'](_0x38ce50);}}break;case'remove':if(_0x338f66)_0x3c8fd2['batch']['addOperation'](_0x17ff3d),_0x4f09e0['model']['applyOperation'](_0x17ff3d);else{const _0x1c26b3=_0x17ff3d['sourcePosition'],_0x50d7e4=_0x17ff3d['howMany'],_0x3e6ba8=new _0x2a48f7(_0x1c26b3,_0x50d7e4);_0x3c8fd2['batch']['addOperation'](_0x3e6ba8),_0x4f09e0['model']['applyOperation'](_0x3e6ba8);}}for(const _0x2b1019 of _0x258eaf){const _0x3a67b0=_0x4f09e0['model']['createRangeOn'](_0x2b1019),_0x4f67c0='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0x5f1f2a();_0x3a67b0['root']['markers']['set'](_0x4f67c0,Xt(_0x3a67b0,_0x4f09e0['model']));}});}['_setSuggestionRange'](_0x45b691,_0x44e41f){const _0x3590be=_0x45b691['getFirstMarker']();this['_model']['change'](_0x55117c=>{_0x55117c['updateMarker'](_0x3590be,{'range':_0x44e41f});});}['_addThreadToSuggestion'](_0x51f05a){const _0x1d324e=_0x51f05a['id'],_0x38a209=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1d324e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x38a209,'threadId':_0x1d324e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3feda6=this['_commentsRepository']['getCommentThread'](_0x1d324e);_0x3feda6['unbind']('isRemovable'),_0x3feda6['isRemovable']=!0x1,_0x51f05a['commentThread']=_0x3feda6;}['_checkSuggestionCorrectness'](_0x37e7d2,_0x776578,_0x2231d0,_0x36a4e3){if(_0x37e7d2['type']!=_0x776578||_0x37e7d2['subType']!=_0x2231d0||_0x37e7d2['creator']['id']!=_0x36a4e3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2625a8('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x36cad4,_0x2b7e8e){const _0x5c78db=_0x36cad4['getFirstRange']();if(_0x2b7e8e['isEqual'](_0x5c78db))_0x36cad4['removeMarkers']();else{if(_0x5c78db['containsRange'](_0x2b7e8e)){const _0x2be59b=this['_model']['createPositionAt'](_0x2b7e8e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x36cad4,this['_model']['createRange'](_0x5c78db['start'],_0x2be59b));const _0x17409d=_0x5f1f2a(),_0x4b5f28=_0x36cad4['creator']['id'],_0x24f947=_0x36cad4['type']+':'+_0x36cad4['subType'];this['_setSuggestionData']({'id':_0x17409d,'type':_0x24f947,'createdAt':new Date(),'authorId':_0x4b5f28,'data':_0x36cad4['data'],'attributes':_0x36cad4['attributes']});const _0x57f500=this['_model']['createPositionAt'](_0x2b7e8e['end']['parent'],'after'),_0x5cd6c6=this['_model']['createRange'](_0x57f500,_0x5c78db['end']);this['_addSuggestionMarker'](_0x24f947,_0x17409d,_0x4b5f28,_0x5cd6c6);}else{if(_0x5c78db['containsPosition'](_0x2b7e8e['start'])){const _0x18ec4e=this['_model']['createPositionAt'](_0x2b7e8e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x36cad4,this['_model']['createRange'](_0x5c78db['start'],_0x18ec4e));}else{const _0x18a6d6=this['_model']['createPositionAt'](_0x2b7e8e['end']['parent'],'after');this['_setSuggestionRange'](_0x36cad4,this['_model']['createRange'](_0x18a6d6,_0x5c78db['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x32f2b6){for(const {suggestion:_0x2b6aa8,meta:_0x31a5ed}of this['_findSuggestions'](_0x32f2b6,'insertion')){if(!_0x31a5ed['isOwn'])continue;const _0x2c2e09=_0x2b6aa8['getRanges']();for(const _0x47b4ee of _0x2c2e09)if(!_0x32f2b6['getDifference'](_0x47b4ee)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x6043d){return this['editor']['plugins']['get']('Users')['getUser'](_0x6043d);}['_getExternalAuthor'](_0x3dc763){const _0x3f8d55=this['editor']['plugins']['get']('Users'),_0x2f6131=_0x55aabf('external:'+_0x3dc763),_0x3e8997=_0x3f8d55['getUser'](_0x2f6131);return _0x3e8997||_0x3f8d55['addUser']({'id':_0x2f6131,'name':_0x3dc763});}['_createSuggestion'](_0x5df569,_0xf92014,_0x10848c,_0xe99f63,_0x33db51,_0x27bb61){const _0xcc7d35=this['_getAuthorFromId'](_0xe99f63);if(!_0xcc7d35)throw new _0x2625a8('track-changes-user-not-found',this,{'authorId':_0xe99f63,'suggestionId':_0x10848c});const _0x2bd172=this['_suggestionFactory']['buildSuggestion'](_0x5df569,_0xf92014,_0x10848c,_0xcc7d35,_0x33db51,_0x904f4a=>{this['_updateSuggestionData'](_0x10848c,{'attributes':_0x904f4a});const _0xceb62d=this['getSuggestion'](_0x10848c);this['_joinWithAdjacentSuggestions'](new Set([_0xceb62d])),this['_refreshSuggestionsChain'](new Set([_0xceb62d]));},_0x27bb61);return this['listenTo'](_0x2bd172,'accept',()=>{this['_updateSuggestionData'](_0x10848c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2bd172,'discard',()=>{this['_updateSuggestionData'](_0x10848c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x10848c,_0x2bd172),this['_suggestionState']['set'](_0x2bd172,'notReady'),_0x2bd172;}['_splitMarkerName'](_0x5b58be){const _0x2421b9=_0x5b58be['split'](':');return{'group':_0x2421b9[0x0],'type':_0x2421b9[0x1],'subType':_0x2421b9['length']>=0x5?_0x2421b9[0x2]:null,'id':_0x2421b9['length']<0x5?_0x2421b9[0x2]:_0x2421b9[0x3],'authorId':_0x2421b9['length']<0x5?_0x2421b9[0x3]:_0x2421b9[0x4],'markerCount':0x6==_0x2421b9['length']?_0x2421b9[0x5]:null};}['_breakSuggestionMarker'](_0x3d8bc4,_0x202ad4,_0x10659c){const _0x2b34b3=_0x3d8bc4['getFirstRange'](),_0x52a9d3=_0x2b34b3['start'],_0x3f913a=_0x2b34b3['end'];this['_setSuggestionRange'](_0x3d8bc4,this['_model']['createRange'](_0x52a9d3,_0x202ad4));const _0x16283f=_0x5f1f2a(),_0x231fb5=_0x3d8bc4['creator']['id'],_0x3ec493=_0x3d8bc4['type']+(_0x3d8bc4['subType']?':'+_0x3d8bc4['subType']:'');this['_setSuggestionData']({'id':_0x16283f,'type':_0x3ec493,'createdAt':new Date(),'authorId':_0x231fb5,'originalSuggestionId':_0x3d8bc4['_originalSuggestionId']||_0x3d8bc4['id'],'attributes':_0x3d8bc4['attributes'],'data':_0x3d8bc4['data']});const _0x1a1651=this['_getAttributeKey'](_0x3d8bc4);('formatBlock'==_0x3d8bc4['type']||_0x1a1651&&this['_isBlockAttribute'](_0x1a1651))&&(_0x10659c=this['_model']['createPositionBefore'](_0x10659c['parent'])),this['_addSuggestionMarker'](_0x3ec493,_0x16283f,_0x231fb5,this['_model']['createRange'](_0x10659c,_0x3f913a));}['_findSuggestions'](_0x5d27c6,_0x3e7b9b=null){const _0x16992b=[],_0x1031fa=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5d27c6)||(_0x5d27c6=[_0x5d27c6]);for(const _0x11fad8 of this['getSuggestions']()){if(!_0x11fad8['isInContent'])continue;if(_0x3e7b9b&&_0x11fad8['type']!=_0x3e7b9b)continue;let _0x32c373=!0x1;for(const _0x3f8916 of _0x11fad8['getRanges']()){for(const _0x4fd201 of _0x5d27c6){const _0x3001cf=_0x4fd201['start']['isEqual'](_0x3f8916['end'])||_0x4fd201['end']['isEqual'](_0x3f8916['start']);if(_0x3001cf||_0x4fd201['getIntersection'](_0x3f8916)){const _0x1cd0fc=_0x4fd201['containsRange'](_0x3f8916)&&Jt(this['_model']['schema'],_0x3f8916['start'],_0x4fd201),_0x1a5593=_0x3f8916['containsRange'](_0x4fd201)&&Jt(this['_model']['schema'],_0x4fd201['start'],_0x3f8916);_0x16992b['push']({'suggestion':_0x11fad8,'meta':{'isOwn':_0x1031fa==_0x11fad8['author'],'isNextTo':_0x3001cf,'isInsideObject':_0x1cd0fc,'containsRangeInObject':_0x1a5593}}),_0x32c373=!0x0;break;}}if(_0x32c373)break;}}return _0x16992b;}['_addSuggestionMarker'](_0x31b3e6,_0x298a9f,_0x46d9bb,_0x5500e6,_0x5db0fc){this['_model']['change'](_0x3027fb=>{let _0x24bda0='suggestion:'+_0x31b3e6+':'+_0x298a9f+':'+_0x46d9bb;_0x5db0fc&&(_0x24bda0=_0x24bda0+':'+_0x5db0fc),_0x3027fb['addMarker'](_0x24bda0,{'range':_0x5500e6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x48bec5){const _0x35eddd=_0x48bec5['previous'],_0x42a946=_0x48bec5['next'];_0x48bec5['previous']=null,_0x48bec5['next']=null,null!=_0x35eddd&&_0x35eddd['next']==_0x48bec5&&(_0x35eddd['next']=_0x42a946),null!=_0x42a946&&_0x42a946['previous']==_0x48bec5&&(_0x42a946['previous']=_0x35eddd),'ready'==this['_suggestionState']['get'](_0x48bec5)&&(this['_suggestionState']['set'](_0x48bec5,'removed'),this['fire']('suggestionUnloaded',_0x48bec5,_0x35eddd,_0x42a946));}['_setSuggestionData'](_0x255a3a){const _0x2e83bf=_0x255a3a['id'],_0x345c61=this['addSuggestionData'](_0x255a3a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1ad1d0=this['editor']['plugins']['get']('PendingActions'),_0x12e279=_0x345c61['hasComments'],_0x156ca6=_0x345c61['subType']?_0x345c61['type']+':'+_0x345c61['subType']:_0x345c61['type'],_0x402836=this['editor']['locale'],_0x2911f9=_0x1ad1d0['add'](o(_0x402836,'PENDING_ACTION_SUGGESTION')),_0x50466f={'id':_0x2e83bf,'type':_0x156ca6,'hasComments':_0x12e279,'data':_0x255a3a['data']||null,'originalSuggestionId':_0x255a3a['originalSuggestionId']||null,'attributes':_0x345c61['attributes']};this['_adapter']['addSuggestion'](_0x50466f)['then'](_0x66800f=>{_0x345c61['_saved']=!0x0,_0x1ad1d0['remove'](_0x2911f9),_0x66800f&&_0x66800f['createdAt']&&(this['_suggestions']['get'](_0x2e83bf)['createdAt']=_0x66800f['createdAt']);})['catch'](_0x38b2b1=>{throw _0x1c3ecd('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x345c61['discard']();}),_0x345c61['stopListening'](),this['_suggestions']['delete'](_0x345c61['id']),this['_suggestionState']['delete'](_0x345c61),_0x38b2b1;});}return _0x345c61;}['_isBlockAttribute'](_0x55e197){return this['_blockAttributeKeys']['has'](_0x55e197);}['_isInlineAttribute'](_0xbd8843){return this['_inlineAttributeKeys']['has'](_0xbd8843);}['_updateSuggestionData'](_0x296ba4,_0x5d5179){const _0x2a9fe4=this['editor']['plugins']['get']('PendingActions'),_0x2313d2=this['getSuggestion'](_0x296ba4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2313d2['_saved']){const _0x51dc50=_0x2a9fe4['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x296ba4,_0x5d5179)['then'](()=>{_0x2a9fe4['remove'](_0x51dc50);});}else _0x2313d2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x296ba4,_0x5d5179);});}}['_getSuggestionData'](_0x4f01b7){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2625a8('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4f01b7);}['_handleNewSuggestionMarker'](_0x485492){const {id:_0x57b2c6,type:_0x3ccf56,subType:_0x4f4167,authorId:_0x422901}=this['_splitMarkerName'](_0x485492),_0x295be8=this['_suggestions']['get'](_0x57b2c6)||this['_createSuggestion'](_0x3ccf56,_0x4f4167,_0x57b2c6,_0x422901,{});switch(this['_checkSuggestionCorrectness'](_0x295be8,_0x3ccf56,_0x4f4167,_0x422901),this['_suggestionState']['get'](_0x295be8)){case'notReady':this['_getSuggestionData'](_0x57b2c6)['then'](_0x2db25a=>{let _0x2087f2=Promise['resolve']();_0x2db25a['hasComments']&&(_0x2087f2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x57b2c6})),_0x2087f2['then'](()=>{this['addSuggestionData'](_0x2db25a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x295be8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x57b2c6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x295be8,'ready'),this['fire']('suggestionLoaded',_0x295be8);break;case'ready':this['fire']('suggestionChanged',_0x295be8);}return _0x295be8['addMarkerName'](_0x485492),_0x295be8;}['_refreshSuggestionsChain'](_0x38f756){const _0x530fe6=Array['from'](_0x38f756),_0x54034e=_0x530fe6['filter'](_0x1279cb=>'attribute'==_0x1279cb['type']);this['_refreshAttributeSuggestionsChain'](_0x54034e);const _0x3ab04f=_0x530fe6['filter'](_0xcca7e1=>!_0xcca7e1['isMultiRange']&&'attribute'!=_0xcca7e1['type']),_0x593c6a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50d3c3=>!_0x50d3c3['isMultiRange']&&'attribute'!=_0x50d3c3['type']),_0x547d00=_0x593c6a['filter'](_0x2c45d1=>!_0x38f756['has'](_0x2c45d1)),_0x2978ba=new Map(_0x593c6a['map'](_0x86abfa=>[_0x86abfa,this['_suggestionFactory']['getSuggestionCallback'](_0x86abfa['type'],_0x86abfa['subType'],'chain')])),_0x3252a3=new Map(_0x593c6a['map'](_0x34b517=>[_0x34b517,_0x34b517['getFirstRange']()])),_0x1a90a7=new Set(),_0x419d71=new Set();for(let _0x133755=0x0;_0x133755<_0x3ab04f['length'];_0x133755++)_0x28c2cb(_0x3ab04f[_0x133755],_0x3ab04f,_0x133755+0x1);for(let _0x2361d7=0x0;_0x2361d7<_0x3ab04f['length'];_0x2361d7++)_0x28c2cb(_0x3ab04f[_0x2361d7],_0x547d00,0x0);const _0x26862b=new Set();for(let _0x1c41ea=0x0;_0x1c41ea<_0x3ab04f['length'];_0x1c41ea++){const _0x48be5e=_0x3ab04f[_0x1c41ea];!_0x419d71['has'](_0x48be5e)&&_0x48be5e['previous']&&(_0x26862b['add'](_0x48be5e['previous']),_0x48be5e['previous']['next']===_0x48be5e&&(_0x48be5e['previous']['next']=null),_0x48be5e['previous']=null),!_0x1a90a7['has'](_0x48be5e)&&_0x48be5e['next']&&(_0x26862b['add'](_0x48be5e['next']),_0x48be5e['next']['previous']===_0x48be5e&&(_0x48be5e['next']['previous']=null),_0x48be5e['next']=null);}function _0x28c2cb(_0x5c44c4,_0x4a9609,_0x3eda86){for(let _0x29a24f=_0x3eda86;_0x29a24f<_0x4a9609['length'];_0x29a24f++){const _0x44db68=_0x5cd71a(_0x5c44c4,_0x4a9609[_0x29a24f]);_0x44db68&&(_0x44db68[0x0]['next']=_0x44db68[0x1],_0x44db68[0x1]['previous']=_0x44db68[0x0],_0x1a90a7['add'](_0x44db68[0x0]),_0x419d71['add'](_0x44db68[0x1]));}}function _0x5cd71a(_0x23f16f,_0x899103){if(_0x23f16f['author']['id']!==_0x899103['author']['id'])return null;const _0x3b43ba=_0x2978ba['get'](_0x23f16f)(_0x23f16f,_0x899103,_0x3252a3['get'](_0x23f16f),_0x3252a3['get'](_0x899103));if(!_0x3b43ba)return null;return _0x2978ba['get'](_0x899103)(_0x23f16f,_0x899103,_0x3252a3['get'](_0x23f16f),_0x3252a3['get'](_0x899103))?_0x3b43ba[0x1]['commentThread']&&_0x3b43ba[0x1]['commentThread']['length']?null:_0x3b43ba:null;}_0x26862b['size']&&this['_refreshSuggestionsChain'](_0x26862b);}['_refreshAttributeSuggestionsChain'](_0xe238e1){if(0x0==_0xe238e1['length'])return;const _0x1fe8d6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13d0c3=>'attribute'==_0x13d0c3['type']&&_0x13d0c3['_isDataLoaded']),_0x267465=[],_0x1cb7e4=new Map();for(const _0x3e7e37 of _0x1fe8d6){const _0x18f8f3=_0x55aabf(_0x3e7e37['attributes']);_0x1cb7e4['has'](_0x18f8f3)||(_0x1cb7e4['set'](_0x18f8f3,_0x267465['length']),_0x267465['push']([]));const _0x5f0810=_0x1cb7e4['get'](_0x18f8f3);_0x267465[_0x5f0810]['push'](_0x3e7e37);}!(function(){_0x267465['sort']((_0x26be8d,_0x1010a0)=>{const _0x385037=_0x26be8d[0x0]['createdAt'],_0xeac3c3=_0x1010a0[0x0]['createdAt'];return _0x385037==_0xeac3c3?_0x26be8d[0x0]['attributes']['groupId']<_0x1010a0[0x0]['attributes']['groupId']?-0x1:0x1:_0x385037<_0xeac3c3?-0x1:0x1;});for(const _0x253b63 of _0x267465)_0x253b63['sort']((_0x1fbb0d,_0x3b45cd)=>_0x1fbb0d['id']<_0x3b45cd['id']?-0x1:0x1);}());for(let _0x1f5b9f=0x0;_0x1f5b9f<_0x267465['length'];_0x1f5b9f++){if(0x0==_0x267465[_0x1f5b9f]['length'])continue;const _0x49747a=[];for(let _0x2e1553=_0x1f5b9f+0x1;_0x2e1553<_0x267465['length'];_0x2e1553++)0x0!=_0x267465[_0x2e1553]['length']&&_0xdf1913(_0x267465[_0x1f5b9f],_0x267465[_0x2e1553])&&_0x49747a['push'](_0x2e1553);for(const _0x4ef4a0 of _0x49747a)_0x267465[_0x1f5b9f]=_0x267465[_0x1f5b9f]['concat'](_0x267465[_0x4ef4a0]),_0x267465[_0x4ef4a0]=[];}for(const _0x2a16b6 of _0x267465)for(let _0x4dd6e2=0x0;_0x4dd6e2<_0x2a16b6['length'];_0x4dd6e2++){const _0x2200c9=_0x2a16b6[_0x4dd6e2+0x1]||null;_0x2a16b6[_0x4dd6e2]['next']!==_0x2200c9&&(_0x2a16b6[_0x4dd6e2]['next']=_0x2200c9);}for(const _0x46d789 of _0x267465)for(let _0x5ac21f=0x0;_0x5ac21f<_0x46d789['length'];_0x5ac21f++){const _0x2143b9=_0x46d789[_0x5ac21f-0x1]||null;_0x46d789[_0x5ac21f]['previous']!==_0x2143b9&&(_0x46d789[_0x5ac21f]['previous']=_0x2143b9);}function _0xdf1913(_0x483d04,_0x3bc7f2){if(_0x483d04[0x0]['attributes']['groupId']!==_0x3bc7f2[0x0]['attributes']['groupId']&&_0x483d04[0x0]['author']!==_0x3bc7f2[0x0]['author'])return!0x1;if(!function(_0x2813d1,_0x5b899f){if(!_0x2813d1['hasComments']&&!_0x5b899f['hasComments'])return!0x0;if(_0x2813d1['hasComments']&&_0x5b899f['hasComments'])return!0x1;if(_0x2813d1['hasComments']&&_0x5b899f['createdAt']<_0x2813d1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5b899f['hasComments']&&_0x2813d1['createdAt']<_0x5b899f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x483d04[0x0],_0x3bc7f2[0x0]))return!0x1;const _0x816f1=Gt(_0x483d04[0x0]['attributes'],['groupId','trackingSessionId']),_0x4d7b0b=Gt(_0x3bc7f2[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1b05aa(_0x816f1,_0x4d7b0b))return!0x1;if(_0x483d04[0x0]['attributes']['groupId']==_0x3bc7f2[0x0]['attributes']['groupId'])return!0x0;if(_0x483d04[0x0]['attributes']['trackingSessionId']!==_0x3bc7f2[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x483d04['every'](_0x1cdcc0=>_0x3bc7f2['some'](_0x2d650b=>_0x1cdcc0['getFirstRange']()['isEqual'](_0x2d650b['getFirstRange']())))&&_0x3bc7f2['every'](_0x2c5984=>_0x483d04['some'](_0x2cbf60=>_0x2c5984['getFirstRange']()['isEqual'](_0x2cbf60['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x108169){const _0x38fa43=Array['from'](_0x108169),_0x11c7d4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x453e98=_0x11c7d4['filter'](_0x5f4475=>!_0x108169['has'](_0x5f4475)),_0xede393=new Map(_0x38fa43['map'](_0x535ebb=>[_0x535ebb,this['_suggestionFactory']['getSuggestionCallback'](_0x535ebb['type'],_0x535ebb['subType'],'join')])),_0x4e41c5=new Map(_0x11c7d4['map'](_0x1875f2=>[_0x1875f2,_0x1875f2['getRanges']()]));for(let _0x492113=0x0;_0x492113<_0x38fa43['length'];_0x492113++){if(_0x6340fc(this,_0x38fa43[_0x492113],_0x38fa43,_0x492113+0x1))return!0x0;}for(let _0x1480c4=0x0;_0x1480c4<_0x38fa43['length'];_0x1480c4++){if(_0x6340fc(this,_0x38fa43[_0x1480c4],_0x453e98,0x0))return!0x0;}return!0x1;function _0x6340fc(_0x5162fe,_0x77bc5f,_0x43fd3c,_0x38644a){for(let _0x5b496b=_0x38644a;_0x5b496b<_0x43fd3c['length'];_0x5b496b++){const _0xe5dec3=_0x43fd3c[_0x5b496b];if(_0xe5dec3['type']!==_0x77bc5f['type']||_0xe5dec3['author']['id']!==_0x77bc5f['author']['id']||_0xe5dec3['subType']!==_0x77bc5f['subType'])continue;if(!ee(_0x77bc5f,_0xe5dec3))continue;if('attribute'==_0x77bc5f['type']&&_0x77bc5f['data']['oldValue']!=_0xe5dec3['data']['oldValue'])continue;if('attribute'==_0x77bc5f['type']&&_0x5162fe['_isBlockAttribute'](_0x77bc5f['data']['key']))continue;if('formatBlock'==_0x77bc5f['type']){const _0xa6b3b0=_0x5162fe['editor']['model'],_0xc15a30=_0x77bc5f['getContainedElement']();if(_0xc15a30&&(_0xa6b3b0['schema']['isObject'](_0xc15a30)||_0xa6b3b0['schema']['isLimit'](_0xc15a30)))continue;}const _0x24a2e7=_0xede393['get'](_0x77bc5f),_0x42c7b8=_0x4e41c5['get'](_0x77bc5f),_0x38e5b0=_0x4e41c5['get'](_0xe5dec3),_0x4bdad1=_0x77bc5f['commentThread']&&_0x77bc5f['commentThread']['length'],_0x578692=_0xe5dec3['commentThread']&&_0xe5dec3['commentThread']['length'];if(!_0x4bdad1&&_0x24a2e7(_0x38e5b0,_0x42c7b8))return _0x5162fe['_joinSuggestions'](_0xe5dec3,_0x77bc5f),_0x4e41c5['delete'](_0x77bc5f),!0x0;if(!_0x578692&&_0x24a2e7(_0x42c7b8,_0x38e5b0))return _0x5162fe['_joinSuggestions'](_0x77bc5f,_0xe5dec3),_0x4e41c5['delete'](_0xe5dec3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x11a8fd,_0x437011){if(_0x11a8fd['isMultiRange']){for(const _0xf515ca of _0x437011['getRanges']())_0x11a8fd['addRange'](_0xf515ca);}else{const _0x5b6f05=_0x437011['getFirstRange']()['end'];this['_setSuggestionRange'](_0x11a8fd,this['_model']['createRange'](_0x11a8fd['getFirstRange']()['start'],_0x5b6f05));}_0x437011['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4e6dfb,_0x2a6b5e,_0xa4a579){const _0x1c458e=_0x4e6dfb['startsWith']('format')||_0x4e6dfb['startsWith']('attribute')?'FORMATTING':_0x4e6dfb['toUpperCase']();return o(this['editor']['locale'],_0x2a6b5e+'_'+_0x1c458e+'_SUGGESTION_ANNOUNCEMENT',_0xa4a579);}['_initAriaMarkerChangeAnnouncements'](){const _0x54b9ff=this['editor'];if(!_0x54b9ff['ui'])return;const {ariaLiveAnnouncer:_0x75a99e}=_0x54b9ff['ui'];_0x5c74d5(this['_model'],({left:_0x175dd2,entered:_0x24f24c})=>{for(const _0x111a20 of _0x175dd2){const {group:_0x338110,type:_0x22c856}=this['_splitMarkerName'](_0x111a20['name']);if('suggestion'===_0x338110){_0x75a99e['announce'](this['_getMarkerAnnouncementText'](_0x22c856,'LEAVE'));break;}}for(const _0x56e040 of _0x24f24c){const {group:_0x313b00,type:_0x4d867a}=this['_splitMarkerName'](_0x56e040['name']);if('suggestion'===_0x313b00){_0x75a99e['announce'](this['_getMarkerAnnouncementText'](_0x4d867a,'ENTER',_0x1d00a9(_0x1fe260)));break;}}});}['_processAttributeChanges'](_0x5b0719){if(this['_recordAttributeSuggestions'])return!0x1;const _0x50f861=this['editor'],_0x3ab569=_0x50f861['model']['document']['differ']['getChanges']();if(0x0==_0x3ab569['length'])return!0x1;const _0x515bf8=[],_0x59c9a0=_0x3ab569['filter'](_0x2a7d30=>'attribute'==_0x2a7d30['type']),_0x166327=_0x3ab569['filter'](_0x45394c=>'insert'==_0x45394c['type']&&'$text'!=_0x45394c['name']),_0x18f09e=_0x3ab569['filter'](_0x98d0fb=>'remove'==_0x98d0fb['type']&&'$text'!=_0x98d0fb['name']);for(const _0x20ba3b of _0x59c9a0)_0x515bf8['push']({'key':_0x20ba3b['attributeKey'],'newValue':_0x20ba3b['attributeNewValue'],'oldValue':_0x20ba3b['attributeOldValue'],'range':Yt(_0x20ba3b['range'],_0x50f861['model'])});for(const _0xa2c5a1 of _0x166327){const _0x1c4295=_0x18f09e['find'](_0x48c052=>_0x48c052['position']['isEqual'](_0xa2c5a1['position']));_0x1c4295&&_0x515bf8['push']({'key':m,'newValue':_0xa2c5a1['name'],'oldValue':_0x1c4295['name'],'range':_0x50f861['model']['createRangeOn'](_0xa2c5a1['position']['nodeAfter'])});}return 0x0!=_0x515bf8['length']&&this['_reduceExistingSuggestions'](_0x5b0719,_0x515bf8);}['_processAttributeSuggestions'](_0x109b51){let _0x1dcdb4=!0x1;const _0x47b87d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3dd6ff=>_0x3dd6ff['data']['newRange']&&_0x3dd6ff['name']['startsWith']('suggestion:attribute:'));for(const _0x2f335c of _0x47b87d){const {subType:_0x48dfec,id:_0x4e441c}=this['_splitMarkerName'](_0x2f335c['name']),_0x2f2e1e=_0x48dfec['split']('|')[0x0];for(const _0x3f2ac1 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3f2ac1['id']!=_0x4e441c&&'attribute'==_0x3f2ac1['type']&&_0x3f2ac1['data']&&_0x3f2ac1['data']['key']==_0x2f2e1e&&_0x3f2ac1['getFirstRange']()['isIntersecting'](_0x2f335c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3f2ac1,_0x2f335c['data']['newRange'],_0x109b51),_0x1dcdb4=!0x0);}return _0x1dcdb4;}['recordAttributeChanges'](_0x431c89){this['_recordAttributeSuggestions']=!0x0,_0x431c89();}['_isRegisteredAttribute'](_0x4446c4){const _0x572593=this['_isBlockAttribute'](_0x4446c4),_0x5c0d02=this['_isInlineAttribute'](_0x4446c4);return _0x572593||_0x5c0d02;}['_reduceExistingSuggestions'](_0x1d5967,_0x3d71e7){if(0x0==_0x3d71e7['length'])return!0x1;let _0x332143=!0x1;for(const _0x4433ba of _0x3d71e7){const _0x1b4bb3=this['_findSuggestions'](_0x4433ba['range'],'attribute')['filter'](_0x2f870e=>!_0x2f870e['meta']['isNextTo'])['map'](_0x40b0ec=>_0x40b0ec['suggestion']),_0x17d1f1=_0x55aabf({'newValue':_0x4433ba['newValue']});_0x1b4bb3['filter'](_0x3e838d=>{const [_0x7e08eb,_0x257850]=_0x3e838d['subType']['split']('|');return _0x7e08eb==_0x4433ba['key']&&_0x257850!=_0x17d1f1;})['forEach'](_0x11af43=>{this['_reduceSuggestionAttributeRange'](_0x11af43,_0x4433ba['range'],_0x1d5967),_0x332143=!0x0;});}return _0x332143;}['_reduceSuggestionAttributeRange'](_0x32269,_0x230be6,_0x3ce667){const _0x5127fa=_0x32269['getFirstRange']()['getDifference'](_0x230be6);0x0!==_0x5127fa['length']?0x1!==_0x5127fa['length']?this['_breakSuggestionMarker'](_0x32269,_0x230be6['start'],_0x230be6['end']):this['_setSuggestionRange'](_0x32269,_0x5127fa[0x0]):_0x3ce667['removeMarker'](_0x32269['getFirstMarker']());}}class Lt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1d2628){this['_editor']=_0x1d2628,this['_model']=_0x1d2628['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x13a143,_0x120512,_0x29e7e3,_0x349fc4,_0x30c528,_0x335740,_0x340f35){return new R(this['_model'],{'type':_0x13a143,'subType':_0x120512,'id':_0x29e7e3,'originalSuggestionId':_0x340f35,'author':_0x349fc4,'creator':_0x349fc4,'attributes':_0x30c528,'onAttributesChange':_0x335740,'onAccept':(..._0x3f4a8e)=>this['getSuggestionCallback'](_0x13a143,_0x120512,'accept')(..._0x3f4a8e),'onDiscard':(..._0x3de530)=>this['getSuggestionCallback'](_0x13a143,_0x120512,'discard')(..._0x3de530)});}['registerCustomCallback'](_0x215f52,_0x48a87e,_0x1d2c8b,_0x525e96){const _0x3496ac=_0x215f52+':'+_0x48a87e+':'+_0x1d2c8b;this['_customCallbacks']['set'](_0x3496ac,_0x525e96);}['getSuggestionCallback'](_0x168c60,_0x15820d,_0x5291f5){const _0x5ad3f6=_0x168c60+':'+_0x15820d+':'+_0x5291f5;return this['_customCallbacks']['get'](_0x5ad3f6)||this['_defaultCallbacks']['get'](_0x168c60+':'+_0x5291f5);}['_registerDefaultCallbacks'](){const _0x38f2ba=()=>!0x1,_0x1de222=_0x23b577=>{_0x23b577['sort']((_0x51eebc,_0x195e54)=>_0x51eebc['start']['isBefore'](_0x195e54['start'])?0x1:-0x1),this['_model']['change'](_0x42118f=>{for(const _0x218791 of _0x23b577){let _0x34c8f3;_0x34c8f3=_0x218791['end']['isAtEnd']&&_0x218791['end']['parent']==_0x218791['start']['nodeAfter']?_0x42118f['createSelection'](_0x218791['start']['nodeAfter'],'on'):_0x42118f['createSelection'](_0x218791),this['_model']['deleteContent'](_0x34c8f3,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x309a58=(_0x318934,_0x368c80)=>{_0x368c80&&this['_model']['change'](_0xb760bb=>{const {commandName:_0x21b35f,commandParams:_0x3b533c=[]}=_0x368c80,_0x4b9e59=_0x318934['map'](_0x4466ed=>(Kt(_0x4466ed)&&(_0x4466ed=this['_model']['createRange'](_0x4466ed['end'])),_0x4466ed))['filter'](_0x487e84=>'$graveyard'!==_0x487e84['root']['rootName']);if(_0x4b9e59['length']<0x1)return;const _0x471f6e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x317070=>_0x5ac46d['fromRange'](_0x317070));_0xb760bb['setSelection'](_0x4b9e59);for(const _0x5d0ef7 of this['_editor']['commands']['commands']())_0x5d0ef7['refresh']();_0x3b533c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x21b35f,..._0x3b533c);const _0x3e03c1=_0x471f6e['filter'](_0x19ca55=>'$graveyard'!=_0x19ca55['root']['rootName']);_0x3e03c1['length']>0x0&&_0xb760bb['setSelection'](_0x3e03c1);for(const _0xbd3aa3 of _0x471f6e)_0xbd3aa3['detach']();});},_0x48f590=(_0x4a1a59,_0x45d61a)=>0x1==_0x4a1a59['length']&&0x1==_0x45d61a['length']&&_0x4a1a59[0x0]['end']['isEqual'](_0x45d61a[0x0]['start']),_0x2ffc54=(_0x411314,_0x31db90,_0x22ce53,_0xd160d9)=>te(_0x411314,_0x31db90,_0x22ce53,_0xd160d9)?[_0x411314,_0x31db90]:te(_0x31db90,_0x411314,_0xd160d9,_0x22ce53)?[_0x31db90,_0x411314]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x38f2ba),this['_defaultCallbacks']['set']('insertion:discard',_0x1de222),this['_defaultCallbacks']['set']('insertion:join',_0x48f590),this['_defaultCallbacks']['set']('insertion:chain',_0x2ffc54),this['_defaultCallbacks']['set']('deletion:accept',_0x1de222),this['_defaultCallbacks']['set']('deletion:discard',_0x38f2ba),this['_defaultCallbacks']['set']('deletion:join',_0x48f590),this['_defaultCallbacks']['set']('deletion:chain',_0x2ffc54),this['_defaultCallbacks']['set']('formatInline:accept',_0x309a58),this['_defaultCallbacks']['set']('formatInline:discard',_0x38f2ba),this['_defaultCallbacks']['set']('formatInline:join',_0x48f590),this['_defaultCallbacks']['set']('formatInline:chain',_0x38f2ba),this['_defaultCallbacks']['set']('formatBlock:accept',_0x309a58),this['_defaultCallbacks']['set']('formatBlock:discard',_0x38f2ba),this['_defaultCallbacks']['set']('formatBlock:join',_0x48f590),this['_defaultCallbacks']['set']('formatBlock:chain',_0x38f2ba),this['_defaultCallbacks']['set']('attribute:accept',_0x38f2ba),this['_defaultCallbacks']['set']('attribute:discard',(_0x5300e5,_0x367592)=>{if(!_0x367592)return;const _0x74a55b=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4f931e=>{if(_0x367592['key']==m)for(const _0x1f5752 of _0x5300e5){const _0x3a379e=_0x1f5752['start']['nodeAfter'],_0x18d8ea=_0x367592['oldValue'];_0x4f931e['rename'](_0x3a379e,_0x18d8ea);}else{if(_0x74a55b['_isBlockAttribute'](_0x367592['key'])){for(const _0x39c456 of _0x5300e5)void 0x0!==_0x367592['oldValue']?_0x4f931e['setAttribute'](_0x367592['key'],_0x367592['oldValue'],_0x39c456['start']['nodeAfter']):_0x4f931e['removeAttribute'](_0x367592['key'],_0x39c456['start']['nodeAfter']);}else{for(const _0x14e588 of _0x5300e5)_0x367592['oldValue']?_0x4f931e['setAttribute'](_0x367592['key'],_0x367592['oldValue'],_0x14e588):_0x4f931e['removeAttribute'](_0x367592['key'],_0x14e588);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x48f590);}}function Jt(_0x162dae,_0x2f7765,_0x5cb873){for(const _0x2b6bc4 of _0x2f7765['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2b6bc4['root']==_0x2b6bc4)return!0x1;if(!_0x5cb873['containsItem'](_0x2b6bc4))return!0x1;if(_0x162dae['isObject'](_0x2b6bc4)||_0x162dae['isLimit'](_0x2b6bc4))return!0x0;}return!0x1;}function Kt(_0x572651){return _0x572651['end']['parent']==_0x572651['start']['nodeAfter']&&_0x572651['end']['isAtStart'];}function Ht(_0x1e02ae,_0x35e3ef,_0x24dd6d,_0x49db5d){const _0x2e923a=_0x24c290=>!_0x24c290['item']['is']('$textProxy')&&!_0x49db5d['isObject'](_0x24c290['item']),_0x8a2cf4=_0x1e02ae['start']['getLastMatchingPosition'](_0x2e923a),_0x27c0a8=_0x1e02ae['end']['getLastMatchingPosition'](_0x2e923a,{'direction':'backward'});return(!_0x1e02ae['start']['isEqual'](_0x8a2cf4)||!_0x1e02ae['end']['isEqual'](_0x27c0a8))&&(_0x8a2cf4['isBefore'](_0x27c0a8)?_0x24dd6d['updateMarker'](_0x35e3ef,{'range':_0x24dd6d['createRange'](_0x8a2cf4,_0x27c0a8)}):_0x24dd6d['removeMarker'](_0x35e3ef),!0x0);}function Wt(_0x530c5f){return _0x55aabf(_0x530c5f);}function qt(_0x5adc1e){const _0x1a8547=_0x5adc1e['start']['nodeAfter'];return _0x1a8547&&_0x1a8547['is']('element');}function zt(_0x321b66){return Kt(_0x321b66)||function(_0x591aa7){return _0x591aa7['start']['parent']==_0x591aa7['end']['nodeBefore']&&_0x591aa7['start']['isAtEnd'];}(_0x321b66);}function Qt(_0x38910c,_0x4a21b5){try{const _0x2e8dc0=_0x38910c['getRange']();for(const _0x349a08 of _0x4a21b5)if(_0x38910c!==_0x349a08&&_0x2e8dc0&&_0x2e8dc0['isIntersecting'](_0x349a08['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Xt(_0x43f847,_0x3f2156){const _0xef9e5b=_0x43f847['end']['nodeBefore'];if(_0xef9e5b&&_0xef9e5b['is']('element')&&_0x3f2156['schema']['isBlock'](_0xef9e5b)&&!_0x3f2156['schema']['isObject'](_0xef9e5b)){const _0x131b86=_0x3f2156['createPositionAt'](_0xef9e5b,'end');return _0x3f2156['createRange'](_0x43f847['start'],_0x131b86);}return _0x43f847;}function Yt(_0x3ac909,_0x127211){return null==_0x3ac909['end']['nodeBefore']&&_0x3ac909['end']['parent']==_0x3ac909['start']['nodeAfter']?Zt(_0x3ac909['start']['nodeAfter'],_0x127211):_0x3ac909;}function Zt(_0x413ce8,_0x534fbf){const _0x164cec=_0x534fbf['schema']['isObject'](_0x413ce8)||_0x534fbf['schema']['isSelectable'](_0x413ce8);return _0x534fbf['createRange'](_0x534fbf['createPositionAt'](_0x413ce8,'before'),_0x164cec?_0x534fbf['createPositionAfter'](_0x413ce8):_0x534fbf['createPositionAt'](_0x413ce8,'end'));}function te(_0x1b3bc9,_0x5cc540,_0x1ee681,_0xfc04d7){return!!ee(_0x1b3bc9,_0x5cc540)&&_0x1ee681['end']['isEqual'](_0xfc04d7['start']);}function ee(_0x4e85da,_0x4bae17){if(!_0x4e85da['_isDataLoaded']||!_0x4bae17['_isDataLoaded'])return!0x1;const _0x33b7db=new Set(Object['keys'](_0x4e85da['attributes'])),_0xf1a2ee=new Set(Object['keys'](_0x4bae17['attributes']));if(_0x33b7db['delete']('groupId'),_0xf1a2ee['delete']('groupId'),0x0==_0x33b7db['size']&&0x0==_0xf1a2ee['size'])return!0x0;if(_0x33b7db['size']!=_0xf1a2ee['size'])return!0x1;const _0x5dbc13={..._0x4e85da['attributes']},_0x1c285b={..._0x4bae17['attributes']};return delete _0x5dbc13['groupId'],delete _0x1c285b['groupId'],JSON['stringify'](_0x5dbc13)==JSON['stringify'](_0x1c285b);}function ie(_0x33e985,_0x2cb469){const _0x49a8dc=ne(_0x33e985['attributes']),_0x20e522=ne(_0x2cb469);if(!_0x33e985['_isDataLoaded'])return!0x1;for(const _0x289eab of Object['keys'](_0x20e522))if(!_0x1b05aa(_0x49a8dc[_0x289eab],_0x20e522[_0x289eab]))return!0x1;return!0x0;}function ne(_0x1b254e){const _0x1f1e29=Object['assign']({},_0x1b254e);return delete _0x1f1e29['skipNestingCheck'],delete _0x1f1e29['tablePasteChainId'],_0x1f1e29;}function se(_0x15950a){return _0x15950a['split']('|')[0x0];}class be extends/* #__PURE__ -- @preserve */
26
+ _0x164d6b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2a5782,_0x4a9620,_0x52b5be,_0x1a9707){super(),this['model']=_0x4a9620,this['view']=_0x52b5be,this['commentThreadController']=_0x1a9707,this['_editor']=_0x2a5782,this['_acceptCommand']=_0x2a5782['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2a5782['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x45d7fb,_0x510c53)=>_0x45d7fb||_0x510c53),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x44118a=>_0x44118a&&this['_editor']['model']['canEditAt'](_0x4a9620['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x8deb79=>_0x8deb79&&this['_editor']['model']['canEditAt'](_0x4a9620['getRanges']())),this['_pendingAction']=null,_0x52b5be['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x52b5be,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x52b5be,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x52b5be,'change:isDirty',()=>{_0x52b5be['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 _0x4259fe=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4259fe);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x58281a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x816f3f,_0x405f23,_0x2e26d6,_0x4e071b){super(_0x816f3f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x184032(_0x816f3f,o(_0x816f3f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x405f23['authoredAt']),this['bind']('authoredAt')['to'](_0x405f23),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',_0x405f23,'authoredAt',this,'descriptionParts',(_0x53c691,_0x5e211e,_0x4a91ee)=>{const _0xe045e6=_0x4a91ee['map'](_0x505155=>ls(_0x505155['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x53c691-0x1,_0x405f23['author']['name'],_0x5e211e?_0x4e071b['formatDateTime'](_0x5e211e):'',new DOMParser()['parseFromString'](_0xe045e6,'text/html')['body']['textContent']]);}),this['focusables']=new _0x18dd77(),this['focusTracker']=new _0x4d8216(),this['keystrokes']=new _0x2798bd(),this['focusCycler']=new _0x42cc66({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x59b9e3=>_0x59b9e3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x405f23,this['_localUser']=_0x2e26d6,this['_config']=_0x4e071b,_0x4e071b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5cc435(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2a2b8d}=this['_config'];this['commentsListView']=new _0x2a2b8d(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',_0x150774=>_0x150774+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1dcfc3,_0x2f4116)=>_0x1dcfc3||!!_0x2f4116);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1d4d7e}=this['_config'],_0x12cd1b=new _0x1d4d7e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x198228=_0x12cd1b['commentInputView'];return _0x12cd1b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x198228,'value',(_0x94af39,_0x1dcc06,_0x5b8c47)=>!!_0x5b8c47||_0x94af39&&!_0x1dcc06),_0x198228['on']('submit',(_0x567735,_0xea8979)=>{this['fire']('addComment',_0xea8979),_0x198228['editor']['setData']('');}),_0x198228['on']('cancel',()=>this['focus']()),_0x198228['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x12cd1b;}}class Te extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x146177,_0x80b545,_0x42a4e7,_0x51b2f7){super(_0x146177,_0x80b545,_0x42a4e7,_0x51b2f7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4e9067=>_0x4e9067&&_0x4e9067[0x0]?_0x4e9067[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5965e7,_0x3c9ff2)=>{let _0x34abed='';for(const _0x37014b of _0x5965e7)_0x34abed+='<p>'+ls(_0x37014b['content'],_0x37014b['color'])+'</p>';return _0x3c9ff2?_0x34abed:_0x399e2e(_0x34abed,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x51b2f7['SuggestionView'](_0x146177,_0x80b545,{'formatDateTime':_0x51b2f7['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 _0x5efb7=this['bindTemplate'],_0xadf869=[this['suggestionView']];return this['commentsListView']&&_0xadf869['push'](this['commentsListView']),this['commentThreadInputView']&&_0xadf869['push'](this['commentThreadInputView']),_0xadf869['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5efb7['if']('isActive','ck-suggestion-wrapper--active'),_0x5efb7['to']('type',_0x309739=>'ck-suggestion-'+_0x309739),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':_0x5efb7['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xadf869};}['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 Le extends _0x58281a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x377262,_0xd7d9ba,_0x1ae192){super(_0x377262),this['_model']=_0xd7d9ba,this['_config']=_0x1ae192,this['set']('description',''),this['bind']('authoredAt')['to'](_0xd7d9ba),this['acceptButton']=this['_createButton'](o(_0x377262,'Accept\x20suggestion'),_0x393dab,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x377262,'Discard\x20suggestion'),_0x4b79db,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x448a0a(_0x377262,_0xd7d9ba['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x18dd77([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4d8216(),this['keystrokes']=new _0x2798bd(),this['focusCycler']=new _0x42cc66({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x426e1e=>_0x426e1e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x8f7556=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x8f7556['innerHTML']=this['description'],this['on']('change:description',(_0x1a008d,_0x23dea0,_0x166255)=>{_0x8f7556['innerHTML']=_0x166255;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5578f9=this['bindTemplate'],_0x5801d6=[{'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':_0x5578f9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5578f9['to']('authoredAt',_0x186151=>this['_config']['formatDateTime'](_0x186151))}]}]},{'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']&&_0x5801d6['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':_0x5801d6}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x1f6603,_0x1ee969,_0x2a3215,_0x25de76,_0x55c421){const _0x26f338=new _0x3c0694(this['locale']);return _0x26f338['set']({'label':_0x1f6603,'icon':_0x1ee969,'tooltip':!0x0,'tooltipPosition':_0x55c421}),_0x26f338['extendTemplate']({'attributes':{'class':_0x2a3215}}),_0x26f338['on']('execute',()=>{this['fire'](_0x25de76,this['_model']['id']);}),_0x26f338;}['_setupKeyboardNavigation'](){const _0x52f239=this['element'];this['keystrokes']['listenTo'](_0x52f239);for(const _0x101405 of this['focusables'])this['focusTracker']['add'](_0x101405['element']),this['keystrokes']['listenTo'](_0x101405['element']);this['keystrokes']['set']('enter',(_0x303b5e,_0x1b53b2)=>{_0x52f239===_0x303b5e['target']&&(this['focusCycler']['focusFirst'](),_0x1b53b2());}),this['keystrokes']['set']('esc',(_0x52229f,_0x3f0e5e)=>{_0x52f239!==_0x52229f['target']&&(this['focus'](),_0x3f0e5e());});}}class u extends _0xbac36c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x67f2a0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e4f58){super(_0x3e4f58),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x52d04f=this['editor']['config'];_0x52d04f['define']('trackChanges.SuggestionThreadView',Te),_0x52d04f['define']('trackChanges.SuggestionView',Le),_0x52d04f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x52d04f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x23a560,_0x81181a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3ee1e2,_0x1a3b1f]of this['_handleControllerBuffer']){const _0x47160b=this['_suggestionToController']['has'](_0x3ee1e2);_0x47160b||_0x1a3b1f?_0x47160b&&_0x1a3b1f&&this['_destroyController'](_0x3ee1e2):this['_initializeController'](_0x3ee1e2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x23a560,_0x81181a);}['init'](){const _0x5da564=this['editor'],_0x354608=_0x5da564['plugins']['get']('TrackChangesEditing'),_0x4a98c8=_0x5da564['plugins']['get']('Annotations'),_0x2b8304=_0x5da564['plugins']['get']('EditorAnnotations'),_0x325591=_0x5da564['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2b8304['addSourceCollector'](()=>{const _0x250daa=[];for(const [_0x405ecb,_0x5500a1]of Array['from'](this['_suggestionToController'])){const _0xd13ec=_0x405ecb['getAllAdjacentSuggestions'](),_0x5a66e9=[];for(const _0x3bbe31 of _0xd13ec){if(!_0x3bbe31['isInContent'])continue;if(_0x3bbe31['isMultiRange']){_0x5a66e9['push'](..._0x3bbe31['getRanges']());continue;}const _0x27f5b4=_0x3bbe31['getFirstRange']();if(_0x5a66e9['length']>0x0){const _0x2c4246=_0x5a66e9[0x0]['getJoined'](_0x27f5b4);if(_0x2c4246){_0x5a66e9[0x0]=_0x2c4246;continue;}}_0x5a66e9['push'](_0x27f5b4);}_0x250daa['push']([_0x5500a1['view'],_0x5a66e9]);}return _0x250daa;}),this['listenTo'](_0x354608,'suggestionLoaded',(_0x3210b2,_0x28660f)=>{this['listenTo'](_0x28660f,'change:previous',(_0xb10644,_0x43ed79,_0x5dd678,_0x183d8d)=>{_0x28660f['isInContent']&&(null==_0x5dd678?(this['_updateController'](_0x183d8d['head']),this['_handleSuggestionControllerDelayed'](_0x28660f,!0x1)):(this['_updateController'](_0x5dd678['head']),null==_0x183d8d&&this['_handleSuggestionControllerDelayed'](_0x28660f,!0x0)));}),null!==_0x28660f['previous']?this['_updateController'](_0x28660f['head']):this['_handleSuggestionControllerDelayed'](_0x28660f,!0x1);}),this['listenTo'](_0x354608,'suggestionUnloaded',(_0x4d8172,_0x2c62dc,_0x136a08)=>{this['stopListening'](_0x2c62dc,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2c62dc),this['_suggestionToController']['has'](_0x2c62dc)&&this['_destroyController'](_0x2c62dc),_0x136a08&&this['_updateController'](_0x136a08['head']);}),this['listenTo'](_0x354608,'suggestionChanged',(_0x2cdf4e,_0x1a4679)=>{this['_updateController'](_0x1a4679);}),this['listenTo'](_0x4a98c8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x325591,'addComment',(_0x1b9e17,{threadId:_0x1de379,isFromAdapter:_0x50b342})=>{if(_0x50b342||!_0x354608['hasSuggestion'](_0x1de379))return;const _0x2ec3ad=_0x354608['getSuggestion'](_0x1de379);this['_suggestionToController']['get'](_0x2ec3ad)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4fb909=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb75efd;for(const _0xe2faa in _0x4fb909){const _0x4dfef8=_0xe2faa,_0x20e109=_0x4fb909[_0x4dfef8];if('trackChangesLicenseKeyValid'==_0x20e109||'trackChangesLicenseKeyInvalid'==_0x20e109||'trackChangesLicenseKeyExpired'==_0x20e109||'trackChangesLicenseKeyDomainLimit'==_0x20e109||'trackChangesLicenseKeyNotAllowed'==_0x20e109||'trackChangesLicenseKeyEvaluationLimit'==_0x20e109||'trackChangesLicenseKeyTrialLimit'==_0x20e109||'trackChangesLicenseKeyUsageLimit'==_0x20e109){delete _0x4fb909[_0x4dfef8],_0xb75efd=_0x20e109,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xb75efd&&_0x4fb909['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xb75efd&&_0x4fb909['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xb75efd&&_0x4fb909['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xb75efd&&_0x4fb909['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xb75efd&&_0x4fb909['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xb75efd&&_0x4fb909['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xb75efd&&_0x4fb909['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3df9eb){const _0x39ba14=this['_suggestionToController']['get'](_0x3df9eb);if(!_0x39ba14)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x39ba14['view'])||null;}['getSuggestionForAnnotation'](_0xfb2c2d){const _0x415657=this['_viewToController']['get'](_0xfb2c2d['innerView']);return _0x415657?_0x415657['model']:null;}['_refreshActiveMarkers'](){const _0x778c55=this['editor']['plugins']['get']('Annotations'),_0x312c63=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3dce17=Array['from'](_0x778c55['activeAnnotations'],_0x3449ce=>_0x3449ce['innerView'])['filter'](_0x41ce38=>this['_viewToController']['has'](_0x41ce38)),_0x3499ec=[];for(const _0x4c6562 of _0x3dce17){const _0x4c41fc=this['_viewToController']['get'](_0x4c6562)['model']['getAllAdjacentSuggestions']();_0x3499ec['push'](..._0x4c41fc['reduce']((_0x304748,_0x4e3dff)=>[..._0x304748,..._0x4e3dff['getMarkerNames']()],[]));}_0x312c63['activeMarkers']=_0x3499ec;}['_addUIComponentsToFactory'](){const _0x14b223=this['editor'],_0xbc1717=_0x14b223['locale'],_0x403ec1=o(_0xbc1717,'Track\x20changes'),_0x3c1b88=new _0xf053a2([{'type':'switchbutton','model':new _0x47c2af({'withText':!0x0,'isToggleable':!0x0,'label':_0x403ec1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x47c2af({'withText':!0x0,'label':o(_0xbc1717,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x47c2af({'withText':!0x0,'label':o(_0xbc1717,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x47c2af({'withText':!0x0,'label':o(_0xbc1717,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x47c2af({'withText':!0x0,'label':o(_0xbc1717,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x14b223['plugins']['has']('TrackChangesPreview')&&_0x3c1b88['addMany']([{'type':'separator'},{'type':'button','model':new _0x47c2af({'withText':!0x0,'label':o(_0xbc1717,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x39bec0 of _0x3c1b88)if(ve(_0x39bec0)){const _0x551c7=_0x14b223['commands']['get'](_0x39bec0['model']['commandName']);_0x39bec0['model']['bind']('isOn','isEnabled')['to'](_0x551c7,'value','isEnabled');}_0x14b223['ui']['componentFactory']['add']('trackChanges',_0x3c5ed1=>this['_createToolbarButton'](_0x3c5ed1,_0x3c1b88,_0x403ec1)),_0x14b223['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3efaad=>this['_createMenuBarMenu'](_0x3efaad,_0x3c1b88,_0x403ec1));}['_createToolbarButton'](_0x2ea891,_0x3f593b,_0x54c3b0){const _0x51efe3=_0x553e74(_0x2ea891,_0x29a0e3),_0x432e29=this['editor']['commands']['get']('trackChanges');_0x51efe3['buttonView']['set']({'tooltip':_0x54c3b0,'label':_0x54c3b0,'icon':_0x37048d}),_0x51efe3['buttonView']['bind']('isOn')['to'](_0x432e29,'value'),_0x51efe3['buttonView']['on']('execute',()=>{_0x432e29['execute'](),this['editor']['editing']['view']['focus']();}),_0x4284a8(_0x51efe3,_0x3f593b,{'role':'menu'});const _0x13365c=[];for(const _0x5df27f of _0x3f593b)ve(_0x5df27f)&&_0x13365c['push'](this['editor']['commands']['get'](_0x5df27f['model']['commandName']));const _0x3304df=_0x51efe3['buttonView'];return _0x3304df['actionView']['unbind']('isEnabled'),_0x3304df['arrowView']['unbind']('isEnabled'),_0x3304df['actionView']['bind']('isEnabled')['to'](_0x432e29,'isEnabled'),_0x3304df['arrowView']['bind']('isEnabled')['toMany'](_0x13365c,'isEnabled',(..._0x539eb6)=>_0x539eb6['some'](_0x1ab5ee=>_0x1ab5ee)),_0x51efe3['on']('execute',_0x1fbb9b=>{this['editor']['execute'](_0x1fbb9b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x51efe3;}['_createMenuBarMenu'](_0x56094d,_0x3282a8,_0x56eb3a){const _0x3c49ce=new _0x574f5f(_0x56094d),_0x583081=this['editor']['commands']['get']('trackChanges');_0x3c49ce['buttonView']['set']({'label':_0x56eb3a,'icon':_0x37048d});const _0x35ad1c=new _0x91081e(_0x56094d);for(const _0x45be86 of _0x3282a8){if('separator'==_0x45be86['type']){_0x35ad1c['items']['add'](new _0x38f5a3(_0x56094d));continue;}const _0x199e49=new _0x141bbc(_0x56094d,_0x3c49ce),_0x322f57=new _0x6d594c(_0x56094d),_0x38c16a=_0x45be86['model'];_0x322f57['bind'](...Object['keys'](_0x38c16a))['to'](_0x38c16a),_0x322f57['delegate']('execute')['to'](_0x3c49ce),_0x322f57['on']('execute',()=>{this['editor']['execute'](_0x38c16a['commandName']),this['editor']['editing']['view']['focus']();}),_0x199e49['children']['add'](_0x322f57),_0x35ad1c['items']['add'](_0x199e49);}return _0x3c49ce['bind']('isEnabled')['to'](_0x583081,'isEnabled'),_0x3c49ce['panelView']['children']['add'](_0x35ad1c),_0x3c49ce;}['_initializeController'](_0x18eb4c){const _0x299338=this['editor'],_0x592c1c=_0x299338['config'],_0x5cd0db=_0x299338['plugins']['get']('Annotations'),_0x46576e=_0x299338['plugins']['get']('CommentsRepository'),_0x3852e0=_0x299338['plugins']['get']('EditorAnnotations'),_0x2d1b58=_0x299338['plugins']['get'](_0x67f2a0)['me'],_0x365e38=_0x592c1c['get']('trackChanges')['SuggestionThreadView'],_0x4c1c5d=_0x592c1c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x28f8be,CommentThreadInputView:_0x4fe429}=_0x299338['plugins']['get']('CommentsUI');let _0xc4bd0f,_0x5844fb,_0x45e751;this['_annotationViews']['has'](_0x18eb4c['id'])?(_0x5844fb=this['_annotationViews']['get'](_0x18eb4c['id']),_0xc4bd0f=_0x5844fb['mainView']):(_0xc4bd0f=new _0x365e38(_0x299338['locale'],_0x18eb4c,_0x2d1b58,{'disableComments':this['_disableComments'],'editorConfig':{..._0x592c1c['get']('comments.editorConfig'),'licenseKey':_0x592c1c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x592c1c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x592c1c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x592c1c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1d587d(_0x592c1c['get']('locale'),_0x299338['locale']),'CommentView':_0x592c1c['get']('comments')['CommentView'],'CommentsListView':_0x28f8be,'CommentThreadInputView':_0x4fe429,'SuggestionView':_0x4c1c5d}),_0xc4bd0f['suggestionView']['acceptButton']['on']('execute',()=>{_0x299338['editing']['view']['focus']();}),_0xc4bd0f['suggestionView']['discardButton']['on']('execute',()=>{_0x299338['editing']['view']['focus']();}),_0x5844fb=_0x5cd0db['createAnnotationView'](this['editor']['locale'],_0xc4bd0f),_0x5844fb['bind']('isDirty')['to'](_0xc4bd0f,'isDirty'),_0x5844fb['bind']('length')['to'](_0xc4bd0f),_0x5844fb['bind']('type')['to'](_0xc4bd0f,'type',_0x122490=>'suggestion-'+_0x122490),_0xc4bd0f['on']('escape',()=>{_0x45e751['fire']('escape');}),this['_annotationViews']['set'](_0x18eb4c['id'],_0x5844fb));const _0x8e6a1a=_0x46576e['createCommentThreadController'](_0x18eb4c['commentThread'],_0xc4bd0f),_0x3cc7b1=new be(_0x299338,_0x18eb4c,_0xc4bd0f,_0x8e6a1a),_0x144b3d=_0x18eb4c['getAllAdjacentSuggestions']()['filter'](_0x151098=>_0x151098['isInContent']);_0xc4bd0f['descriptionParts']=_0x299338['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x144b3d),this['_suggestionToController']['set'](_0x18eb4c,_0x3cc7b1),this['_viewToController']['set'](_0xc4bd0f,_0x3cc7b1);const _0xc67cd8=()=>{const _0x522343=[],_0x251072=_0x18eb4c['getAllAdjacentSuggestions']()['filter'](_0x4e0de6=>_0x4e0de6['isInContent']);for(const _0x2295e6 of _0x251072)_0x522343['push'](..._0x2295e6['getMarkers']());return _0x5d3efd(_0x299338['editing'],_0x522343);};_0x45e751=_0x5cd0db['createAnnotation']({'view':_0x5844fb,'target':_0xc67cd8,'type':()=>'suggestion-'+_0x3cc7b1['view']['type'],'isVisible':!!_0xc67cd8()}),_0x46576e['_bindAnnotationToEditors'](_0xc4bd0f,_0x45e751),_0x5cd0db['add'](_0x45e751),_0x3852e0['registerAnnotation'](_0x45e751);}['_destroyController'](_0x68693d){const _0x483ce3=this['editor']['plugins']['get']('CommentsRepository'),_0x14933e=this['editor']['plugins']['get']('Annotations'),_0x428dd4=this['_suggestionToController']['get'](_0x68693d),_0x45da96=_0x428dd4['view'],_0x5b6769=_0x14933e['getByInnerView'](_0x45da96);_0x483ce3['_unbindEditors'](_0x45da96),_0x5b6769&&_0x14933e['remove'](_0x5b6769),this['_suggestionToController']['delete'](_0x68693d),this['_viewToController']['delete'](_0x45da96),_0x428dd4['destroy']();}['_updateController'](_0x5b92ba){if(!_0x5b92ba['isInContent']||!this['_suggestionToController']['has'](_0x5b92ba))return;const _0x5f48cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46ed1f=this['_suggestionToController']['get'](_0x5b92ba),_0xf705b7=_0x5b92ba['getAllAdjacentSuggestions']();_0x46ed1f['view']['descriptionParts']=_0x5f48cd['descriptionFactory']['getDescriptions'](_0xf705b7);}['destroy'](){for(const _0x2257b1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2257b1);for(const _0x13c9bb of this['_annotationViews']['values']())_0x13c9bb['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ve(_0x4b2416){return'model'in _0x4b2416;}class Ve extends _0xbac36c{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x48f7fc){this['editor']['plugins']['get'](d)['adapter']=_0x48f7fc;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x84fd60){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x84fd60);}['getSuggestions']({skipNotAttached:_0x4c7484=!0x1,toJSON:_0x4808ff=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x4c7484,'toJSON':_0x4808ff});}['getSuggestion'](_0x1297c2){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1297c2);}}const p=['Pagination'];class ce extends _0xbac36c{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2784cc=this['editor'];if(_0x2784cc['config']['define']('trackChangesData.editorCreator',_0x1a590c=>{const _0x4bcca8=_0x2784cc['model']['document']['getRootNames']()['reduce']((_0x4c704f,_0xe35926)=>(_0x4c704f[_0xe35926]='',_0x4c704f),{});return _0x2784cc['constructor']['create'](_0x4bcca8,_0x1a590c);}),'function'!=typeof _0x2784cc['config']['get']('trackChangesData')['editorCreator'])throw new _0x2625a8('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x146d0b){return P(this['editor'],!0x0,_0x146d0b);}['getDataWithDiscardedSuggestions'](_0x2e544b){return P(this['editor'],!0x1,_0x2e544b);}}class ze extends _0xbac36c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20895a){function _0x4f6d2e(_0x28fe66){return _0x28fe66['map'](_0x4dd848=>String['fromCharCode'](_0x4dd848))['join']('');}super(_0x20895a),this['result']='end',_0x20895a[_0x4f6d2e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f6d2e([0x76,0x69,0x65,0x77])][_0x4f6d2e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f6d2e([0x61,0x75,0x74,0x6f]),_0x20895a[_0x4f6d2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4f6d2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f6d2e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4f6d2e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4f6d2e([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 Ke(_0x4ad91b){return void 0x0!==_0x4ad91b['getRootsAttributes'];}async function P(_0xa1a231,_0x4c5f29,_0x16d422){const _0xaaff20=_0x2fb0cd(_0xa1a231,p);_0xaaff20['plugins']['push'](d,ze),_0xaaff20['rootsAttributes']=Ke(_0xa1a231)?_0xa1a231['getRootsAttributes']():void 0x0;const _0x3264ec=document['createDocumentFragment'](),_0x3cb989=_0xa1a231['config']['get']('trackChangesData')['editorCreator'],_0x4133e0=await _0x3cb989(_0xaaff20,()=>function(_0x133e8d){const _0x56c813=document['createElement']('div');return _0x133e8d['appendChild'](_0x56c813),_0x56c813;}(_0x3264ec));!function(_0x5083f5,_0x356394){const _0x7da991=_0x5083f5['model']['document']['getRootNames']()['reduce']((_0x48f2b0,_0x18acc4)=>(_0x48f2b0[_0x18acc4]=_0x5083f5['data']['get']({'rootName':_0x18acc4}),_0x48f2b0),{}),_0x1ca629=_0x5083f5['plugins']['get']('Users')['users']['map'](_0x551968=>({'id':_0x551968['id'],'name':_0x551968['name']})),_0x31aae1=_0x5083f5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xd29665=_0x5083f5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2dbde1=_0x356394['plugins']['get']('Users'),_0x28b115=_0x356394['plugins']['get']('TrackChangesEditing'),_0xbbc960=_0x356394['plugins']['get']('CommentsRepository');for(const _0x1b6a28 of _0xbbc960['getCommentThreads']())_0x1b6a28['remove']();for(const _0x3ac087 of _0x1ca629)_0x2dbde1['getUser'](_0x3ac087['id'])||_0x2dbde1['addUser'](_0x3ac087);_0x2dbde1['me']||_0x2dbde1['useAnonymousUser']();for(const _0x48081e of _0xd29665)_0xbbc960['addCommentThread'](_0x48081e);for(const _0x18b0cb of _0x31aae1)_0x28b115['addSuggestionData'](_0x18b0cb);_0x356394['data']['set'](_0x7da991);}(_0xa1a231,_0x4133e0),_0x4133e0['execute'](_0x4c5f29?'acceptAllSuggestions':'discardAllSuggestions');const _0x4c95a0=Ke(_0x4133e0)?_0x4133e0['getFullData'](_0x16d422):_0x4133e0['data']['get'](_0x16d422);return await _0x4133e0['destroy'](),_0x4c95a0;}class _e extends _0x58281a{['options'];constructor(_0x2578f2,_0x2306b8){super(_0x2578f2),this['options']=_0x2306b8,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'](_0x424a7d,_0x3b6082){if(!this['element'])return;const _0x5c167d=[];for(const [_0xf25fc3,_0x3e5961]of _0x424a7d){const _0x8ddd55=document['createElement']('div');_0x8ddd55['setAttribute']('data-ck-root-name',_0xf25fc3),_0x8ddd55['className']=_0x3e5961['classes']+'\x20ck-track-changes-preview__root-container',_0x8ddd55['innerHTML']=_0x3e5961['content'],_0x5c167d['push'](_0x8ddd55);}_0x3b6082(this['element'],_0x5c167d),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x5855f0{constructor(_0x414c78){super(_0x414c78),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x595c14=this['editor'],_0x5a61f2=_0x595c14['locale'],_0x483275=_0x595c14['plugins']['get']('Dialog');let _0x511a4a;const _0x1499d1=function(_0x22e1a1){const _0x4b6c39={};if('editables'in _0x22e1a1['ui']['view']){for(const [_0xf00db5,_0x240283]of Object['entries'](_0x22e1a1['ui']['view']['editables']))_0x4b6c39[_0xf00db5]=_0x240283['element'];}else _0x4b6c39[_0x22e1a1['model']['document']['getRootNames']()[0x0]]=_0x22e1a1['ui']['view']['editable']['element'];return _0x4b6c39;}(_0x595c14),_0xdf9327=function(_0x36ca73){let _0x16f377=0x0;for(const _0x1aad4b of Object['values'](_0x36ca73))_0x16f377=Math['max'](_0x16f377,_0x1aad4b['getBoundingClientRect']()['width']);let _0x6dc538=0x0;for(const _0x374977 of Object['values'](_0x36ca73))_0x6dc538+=_0x374977['getBoundingClientRect']()['height'];const _0x34b843=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x80db47=Math['min'](_0x6dc538,_0x34b843);return{'width':_0x16f377,'height':_0x80db47};}(_0x1499d1);_0x483275['show']({'id':'finalContentPreview','title':o(_0x5a61f2,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x5a61f2,{'dialogRects':_0xdf9327}),'onHide':()=>{_0x511a4a['detachFromDom']();},'onShow':()=>{_0x595c14['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x59163b=>{const _0x438437=this['_standarizeRootsData'](_0x59163b,_0x595c14,_0x1499d1);_0x483275['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x438437,_0x595c14['config']['get']('trackChanges.preview.renderFunction'));}),_0x511a4a=new _0x52d770(_0x5a61f2,[_0x483275['view']]),_0x511a4a['attachToDom'](),_0x511a4a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x595c14['once']('destroy',()=>{_0x511a4a['detachFromDom']();});const _0x3ae064=_0x483275['view']['headerView']['class'];_0x483275['view']['headerView']['class']=_0x3ae064?_0x3ae064+'\x20ck-reset_all':'ck-reset_all',_0x483275['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x483275['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5e2c0b=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1b9447=_0x5e2c0b['previewMode'],_0x22c5bb={};if('$labels'===_0x1b9447){for(const _0x548386 of _0x5e2c0b['getMergeFieldsIds']())_0x22c5bb[_0x548386]=_0x5e2c0b['getLabel'](_0x548386)||_0x548386;}else{const _0x44fcb5='$defaultValues'===_0x1b9447?_0x5e2c0b['getDefaultValues']():_0x5e2c0b['getDataSetValues'](_0x1b9447,!0x0);for(const _0x49e01c of Object['entries'](_0x44fcb5)){const [_0x5cd903,_0xfaa6c7]=_0x49e01c;_0x22c5bb[_0x5cd903]=null!==_0xfaa6c7?_0xfaa6c7:_0x5e2c0b['getLabel'](_0x5cd903)||_0x5cd903;}}return{'mergeFieldsData':_0x22c5bb};}['_standarizeRootsData'](_0x3a1bc9,_0x102545,_0x510c85){let _0x42b93d;if('string'==typeof _0x3a1bc9){const _0x601363=_0x102545['model']['document']['getRootNames']()[0x0];_0x42b93d={[_0x601363]:_0x3a1bc9};}else _0x42b93d=_0x3a1bc9;const _0x49b595=this['_fixMediaEmbeds'](_0x42b93d,_0x102545),_0x4916a7=function(_0x59700b,_0x562fda){for(const [_0x50b5f8,_0x1ee5c6]of _0x59700b)_0x1ee5c6['classes']=_0x562fda[_0x50b5f8]['classList']['value']['replace']('ck-focused','');return _0x59700b;}(this['_sortRoots'](_0x102545)['reduce']((_0x3b9a4a,_0x1a02f3)=>(_0x3b9a4a['push']([_0x1a02f3,{'content':_0x49b595[_0x1a02f3],'classes':''}]),_0x3b9a4a),[]),_0x510c85);return _0x4916a7;}['_fixMediaEmbeds'](_0x3de5ee,_0x4ca324){if(!_0x4ca324['plugins']['has']('MediaEmbedEditing'))return _0x3de5ee;const _0x27a34f=_0x4ca324['plugins']['get']('MediaEmbedEditing');for(const [_0x5d2781,_0x3ed2fa]of Object['entries'](_0x3de5ee)){const _0x1e07ce=document['createElement']('div');_0x1e07ce['innerHTML']=_0x3ed2fa,(_0x1e07ce['querySelectorAll']('figure.media')['forEach'](_0x480dab=>{const _0x35414f=_0x480dab['querySelector']('oembed');if(_0x35414f){const _0x3d24ff=_0x35414f['getAttribute']('url');if(_0x3d24ff){const _0x5410fa=_0x27a34f['registry']['getMediaViewElement'](new _0x2644eb(_0x4ca324['editing']['view']['document']),_0x3d24ff,{'elementName':'','renderForEditingView':!0x0}),_0x295d41=document['createElement']('div');_0x295d41['classList']['add']('ck-media__wrapper'),_0x5410fa['render'](_0x295d41,_0x4ca324['editing']['view']['domConverter']),_0x35414f['replaceWith'](_0x295d41);}}}),_0x3de5ee[_0x5d2781]=_0x1e07ce['innerHTML']);}return _0x3de5ee;}['_sortRoots'](_0x116eb7){if(!function(_0x4966c5){return void 0x0!==_0x4966c5['getRootsAttributes'];}(_0x116eb7))return _0x116eb7['model']['document']['getRootNames']();const _0x47c366=[],_0x3300ed=new Map();for(const _0x40a4b1 of _0x116eb7['model']['document']['getRootNames']()){const _0x443fd9=_0x116eb7['editing']['view']['getDomRoot'](_0x40a4b1)['getClientRects']()['item'](0x0);_0x47c366['push'](_0x40a4b1),_0x3300ed['set'](_0x40a4b1,_0x443fd9);}return _0x47c366['sort']((_0xf9068e,_0x93a58e)=>{const _0xb3c0d1=_0x3300ed['get'](_0xf9068e),_0x179dc5=_0x3300ed['get'](_0x93a58e);return _0xb3c0d1['y']-_0x179dc5['y']||_0xb3c0d1['x']-_0x179dc5['x'];}),_0x47c366;}}class Xe extends _0xbac36c{static get['requires'](){return[ce,_0x433ab5];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36d266){super(_0x36d266),_0x36d266['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x36d266['config']['define']('trackChanges.preview.renderFunction',(_0x4d2779,_0x4f8a22)=>{for(const _0x592952 of _0x4f8a22)_0x4d2779['appendChild'](_0x592952);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Te as SuggestionThreadView,Le as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};